From 90c5e65ed291a8ff48b4ad8450eb9c846d2a96cd Mon Sep 17 00:00:00 2001 From: iOS Date: Fri, 16 Dec 2022 11:24:42 +0100 Subject: [PATCH] test --- .obsidian/appearance.json | 3 +- .obsidian/community-plugins.json | 17 +- .obsidian/graph.json | 2 +- .../{obsidian-3d-graph => 3d-graph}/main.js | 1303 +- .../manifest.json | 4 +- .../obisidian-3d-graph-1.0.1.zip} | Bin 410744 -> 410712 bytes .../styles.css | 2 +- .obsidian/plugins/cmdr/data.json | 73 + .obsidian/plugins/cmdr/main.js | 9 + .obsidian/plugins/cmdr/manifest.json | 10 + .obsidian/plugins/cmdr/styles.css | 1 + .obsidian/plugins/copy-as-html/main.js | 61 +- .obsidian/plugins/copy-as-html/manifest.json | 4 +- .../data.json | 51 - .../customizable-page-header-buttons/main.js | 60 - .../manifest.json | 10 - .../styles.css | 50 - .obsidian/plugins/emoji-shortcodes/data.json | 10 + .obsidian/plugins/emoji-shortcodes/main.js | 60 +- .../plugins/emoji-shortcodes/manifest.json | 9 +- .obsidian/plugins/emoji-shortcodes/styles.css | 8 + .obsidian/plugins/list-style/main.js | 72 + .obsidian/plugins/list-style/manifest.json | 10 + .obsidian/plugins/meld-encrypt/main.js | 1449 +- .obsidian/plugins/meld-encrypt/manifest.json | 4 +- .obsidian/plugins/meld-encrypt/styles.css | 2 + .../plugins/multi-column-markdown/main.js | 263 +- .../multi-column-markdown/manifest.json | 5 +- .../plugins/multi-column-markdown/styles.css | 12 + .../plugins/obsidian-account-linker/main.js | 408 + .../obsidian-account-linker/manifest.json | 10 + .../obsidian-account-linker/styles.css | 30 + .../obsidian-activity-history/data.json | 178 +- .../plugins/obsidian-advanced-uri/main.js | 270 +- .../obsidian-advanced-uri/manifest.json | 2 +- .obsidian/plugins/obsidian-commits/data.json | 1667 +- .../plugins/obsidian-full-calendar/data.json | 32 +- .../plugins/obsidian-full-calendar/main.js | 16993 ++++-- .../obsidian-full-calendar/manifest.json | 2 +- .../plugins/obsidian-full-calendar/styles.css | 39 +- .../obsidian-media-db-plugin/data.json | 681 +- .../plugins/obsidian-media-db-plugin/main.js | 701 +- .../obsidian-media-db-plugin/manifest.json | 2 +- .../obsidian-media-db-plugin/styles.css | 34 +- .../obsidian-minimal-settings/manifest.json | 3 +- .../obsidian-reminder-plugin/data.json | 200 +- .../plugins/obsidian-reminder-plugin/main.js | 35790 +++++------- .../obsidian-reminder-plugin/manifest.json | 4 +- .../obsidian-reminder-plugin/styles.css | 125 +- .../obsidian-scroll-to-top-plugin/main.js | 262 + .../manifest.json | 10 + .../obsidian-scroll-to-top-plugin/styles.css | 146 + .../obsidian-snippet-downloader/data.json | 23 + .../obsidian-snippet-downloader/main.js | 1844 + .../obsidian-snippet-downloader/manifest.json | 10 + .../obsidian-snippet-downloader/styles.css | 18 + .../plugins/obsidian-tasks-plugin/main.js | 52 +- .../obsidian-tasks-plugin/manifest.json | 2 +- .../plugins/obsidian-tasks-plugin/styles.css | 139 +- .obsidian/plugins/obsidian42-brat/data.json | 1 + .obsidian/plugins/plugins-galore/data.json | 10 + .obsidian/plugins/podnotes/main.js | 159 +- .obsidian/plugins/podnotes/manifest.json | 2 +- .obsidian/plugins/quickadd/data.json | 3 +- .obsidian/plugins/quickadd/main.js | 48767 +++++++++++----- .obsidian/plugins/quickadd/manifest.json | 20 +- .obsidian/plugins/quickadd/styles.css | 8 +- .obsidian/plugins/simple-time-tracker/main.js | 6 + .../plugins/simple-time-tracker/manifest.json | 2 +- .../plugins/table-editor-obsidian/main.js | 15 +- .../table-editor-obsidian/manifest.json | 6 +- .../plugins/table-editor-obsidian/styles.css | 51 +- .obsidian/plugins/templater-obsidian/main.js | 2160 +- .../plugins/templater-obsidian/manifest.json | 2 +- .../plugins/templater-obsidian/styles.css | 8 +- .obsidian/snippets/MCL Gallery Cards.css | 264 + .obsidian/snippets/MCL Multi Column.css | 465 + .obsidian/snippets/MCL Wide Views.css | 326 + .obsidian/themes/AnuPpuccin/manifest.json | 14 +- .obsidian/themes/AnuPpuccin/theme.css | 1392 +- .obsidian/themes/GitHub theme/manifest.json | 2 +- .obsidian/themes/GitHub theme/theme.css | 579 +- .obsidian/workspace-mobile.json | 59 +- 00.01 Admin/Calendars/2022-01-22.md | 2 +- 00.01 Admin/Calendars/2022-02-28.md | 2 +- 00.01 Admin/Calendars/2022-03-05.md | 2 +- 00.01 Admin/Calendars/2022-08-25.md | 2 +- 00.01 Admin/Calendars/2022-10-17.md | 2 +- 00.01 Admin/Calendars/2022-10-23.md | 4 +- 00.01 Admin/Calendars/2022-11-02.md | 2 +- 00.01 Admin/Calendars/2022-11-03.md | 116 + 00.01 Admin/Calendars/2022-11-04.md | 115 + 00.01 Admin/Calendars/2022-11-05.md | 114 + 00.01 Admin/Calendars/2022-11-06.md | 115 + 00.01 Admin/Calendars/2022-11-07.md | 114 + 00.01 Admin/Calendars/2022-11-08.md | 114 + 00.01 Admin/Calendars/2022-11-09.md | 114 + .../Calendars/2022-11-10 Dinner @ Swiss Re.md | 12 - 00.01 Admin/Calendars/2022-11-10.md | 115 + 00.01 Admin/Calendars/2022-11-11.md | 114 + 00.01 Admin/Calendars/2022-11-12.md | 114 + .../2022-11-13 PSG - AJ Auxerre (5-0).md | 13 + 00.01 Admin/Calendars/2022-11-13.md | 114 + 00.01 Admin/Calendars/2022-11-14.md | 114 + 00.01 Admin/Calendars/2022-11-15.md | 115 + 00.01 Admin/Calendars/2022-11-16.md | 115 + 00.01 Admin/Calendars/2022-11-17.md | 114 + 00.01 Admin/Calendars/2022-11-18.md | 114 + ... ๐Ÿ’ Fianรงailles Marguerite & Arnold.md} | 4 +- 00.01 Admin/Calendars/2022-11-19.md | 115 + 00.01 Admin/Calendars/2022-11-20 Mallorca.md | 10 + 00.01 Admin/Calendars/2022-11-20.md | 114 + 00.01 Admin/Calendars/2022-11-21.md | 114 + .../2022-11-22 France - Australie (4-1).md | 13 + 00.01 Admin/Calendars/2022-11-22.md | 114 + 00.01 Admin/Calendars/2022-11-23.md | 114 + 00.01 Admin/Calendars/2022-11-24.md | 114 + 00.01 Admin/Calendars/2022-11-25.md | 114 + .../2022-11-26 France - Denmark (2-1).md | 16 + 00.01 Admin/Calendars/2022-11-26.md | 114 + 00.01 Admin/Calendars/2022-11-27.md | 115 + 00.01 Admin/Calendars/2022-11-28.md | 114 + 00.01 Admin/Calendars/2022-11-29.md | 114 + .../2022-11-30 Tunisia - France (1-1).md | 12 + .../Calendars/2022-11-30 ZSC - HC Ajoie.md | 12 + 00.01 Admin/Calendars/2022-11-30.md | 117 + 00.01 Admin/Calendars/2022-12-01.md | 114 + 00.01 Admin/Calendars/2022-12-02.md | 114 + 00.01 Admin/Calendars/2022-12-03.md | 114 + .../2022-12-04 France - Pologne (3-1).md | 14 + 00.01 Admin/Calendars/2022-12-04.md | 115 + 00.01 Admin/Calendars/2022-12-05.md | 117 + 00.01 Admin/Calendars/2022-12-06.md | 114 + 00.01 Admin/Calendars/2022-12-07.md | 114 + 00.01 Admin/Calendars/2022-12-08.md | 114 + 00.01 Admin/Calendars/2022-12-09.md | 114 + ...022-12-10 โšฝ France - Angleterre (2-1).md | 14 + .../Calendars/2022-12-10 โ›ท๏ธ Arosa.md | 12 + 00.01 Admin/Calendars/2022-12-10.md | 114 + 00.01 Admin/Calendars/2022-12-11.md | 114 + 00.01 Admin/Calendars/2022-12-12.md | 114 + 00.01 Admin/Calendars/2022-12-13.md | 114 + .../2022-12-14 โšฝ๏ธ Maroc - France (0-2).md | 14 + 00.01 Admin/Calendars/2022-12-14.md | 116 + 00.01 Admin/Calendars/2022-12-15.md | 116 + .../2022-12-16 ๐Ÿงš๐Ÿผ Meg in LDN.md | 10 + 00.01 Admin/Calendars/2022-12-16.md | 114 + .../2022-12-18 France - Argentine.md | 8 + ...ฐโ€โ™€๏ธ Mariage civil Eloi et Zรฉlie.md | 13 + .../Calendars/2023-02-14 Bayern - PSG.md | 13 + .../Calendars/2023-03-08 PSG - Bayern.md | 13 + ...2023-04-29 Mariage Marguerite & Arnold.md} | 11 +- 00.01 Admin/Templates/Template Person.md | 8 +- 00.01 Admin/Test Sheet 2.md | 5 + 00.02 Inbox/Say Nothing.md | 86 + ...ing Revelations About Sam Bankman-Fried.md | 101 + 00.03 News/A Matter of Honor.md | 412 + ...Cruelty in Louisiana Juvenile Detention.md | 439 + 00.03 News/Bad Faith at Second Mesa.md | 282 + ...s and judges encourage extreme measures.md | 613 + ...Roman Egypt Was Such a Strange Province.md | 152 + ...gent Parties, sex amid 'unwinnable war'.md | 167 + ...he History of Native Americans Backward.md | 69 + ...ican Intelligenceโ€™s Years of Conflict.md | 2 +- ... one, in a tragedy seen across the U.S..md | 221 + 00.03 News/Extreme Heat Will Change Us.md | 733 + ...h Would You Pay to Save Your Pet's Life.md | 215 + ...oiseโ€™ a Disaster Movie for Our Moment.md | 231 + ...had to โ€˜nanny himโ€™ through lockdown.md | 2 +- 00.03 News/How Saudi Arabia Sees the World.md | 87 + ...ies-Old Culture From Putinโ€™s Invasion.md | 149 + ...Bryant no-catch changed the NFL forever.md | 275 + ...li for Anticipating the Future of Music.md | 132 + ...f soccer became the story of everything.md | 157 + ...inst General Salvador Cienfuegos Zepeda.md | 395 + ...ritain a riskier bet for bond investors.md | 2 +- ...the hard way that Britain is not the US.md | 2 +- ... put her in power โ€” and shattered her.md | 4 +- ...adame Palatine ร  la cour du Roi Soleil.md | 127 + ...Babylonโ€™ Star on Navigating Hollywood.md | 122 + .../Meet the World's Top 'Chess Detective'.md | 139 + ...sissippi's Welfare Messโ€”And America's.md | 2 +- .../Murder and Loathing in Las Vegas.md | 302 + ...Couldnโ€™t Reveal on the Campaign Trail.md | 2 +- .../PM to fill out party questionnaire.md | 2 +- ...ints, and the malleable nature of truth.md | 389 + .../Secrets of the Christmas Tree Trade.md | 247 + 00.03 News/Swamp Boy Medical Mystery.md | 331 + ...n Guns, and Police Face an Armed Public.md | 2 +- ...-hop idols react to Rock Hall shoutouts.md | 221 + .../The Beautiful, Brutal World of Bonsai.md | 243 + ...and the Myth of the Perfect Perpetrator.md | 63 + ...nd the Case That Came Back to Haunt Him.md | 301 + .../The Most Lawless County in Texas.md | 563 + ...he Opioid Epidemic Is Killing Black Men.md | 219 + ...Zevon Left the โ€˜Late Showโ€™ Building.md | 2 +- 00.03 News/The Power of Emotional Honesty.md | 2 +- ...eturn of James Cameron, Box Office King.md | 208 + ... Sordid Saga of Hunter Bidenโ€™s Laptop.md | 2 +- ... Perry Canโ€™t Believe He Lived to Tell.md | 6 +- ...ysterious Death of Mrs. Jerry Lee Lewis.md | 71 + 00.03 News/The Too-Muchness of Bono.md | 183 + ...g hockeyโ€™s signature offensive weapon.md | 121 + ...ehicle boom is ravaging the environment.md | 278 + ...sday cult isnโ€™t to blame Marina Hyde.md | 2 +- ...mother, a fire and a Milwaukee landlord.md | 909 + ...233 million. Then they lived like kings.md | 163 + 00.03 News/True Grit.md | 295 + ...onger Enjoying Himself โ€” And It Shows.md | 79 + ...rump Tapesโ€™ reveal about Bob Woodward.md | 4 +- ...ling with themselves again Marina Hyde.md | 2 +- 00.03 News/Who Will Remove My IUD.md | 89 + ...he Bush Dynasty Die With George P. Bush.md | 3 +- ...™ what itโ€™s like to get hit by an SUV.md | 151 + ...o the Ukrainians defending Snake Island.md | 201 + ...peaker of the House - Los Angeles Times.md | 267 + ... - MARK TILDESLEY - Production Designer.md | 48 + .../Bookmarks - Mac applications.md | 3 +- 00.08 Bookmarks/Bookmarks - Media.md | 3 +- 00.08 Bookmarks/Bookmarks - Obsidian.md | 36 +- .../Bookmarks - Selfhosted Apps.md | 3 +- .../Bookmarks - Travels & Sport.md | 86 + 00.08 Bookmarks/Bookmarks - Utilities.md | 3 +- 00.08 Bookmarks/Bookmarks - Webpages.md | 12 + 00.08 Bookmarks/Bookmarks - Work.md | 3 +- 01.01 Life Orga/@Finances.md | 4 +- 01.01 Life Orga/@Life Admin.md | 4 +- 01.01 Life Orga/@Personal projects.md | 2 +- 01.02 Home/@Shopping list.md | 9 +- 01.02 Home/Bandes Dessinรฉes.md | 3 + 01.02 Home/Household.md | 50 +- 01.02 Home/Life - Practical infos.md | 21 +- 01.03 Family/Aglaรฉ de Villeneuve.md | 9 +- 01.03 Family/Amรฉlie Solanet.md | 5 - 01.03 Family/Eustache Bรฉdier.md | 3 +- 01.03 Family/Gabrielle Bรฉdier.md | 3 +- 01.03 Family/Marc de Villeneuve.md | 3 +- 01.03 Family/Pierre Bรฉdier.md | 3 +- 01.03 Family/Sรฉraphine Priso Le Bastart.md | 5 +- 01.04 MRCK/@@MRCK.md | 4 +- 01.04 MRCK/Pet note.md | 80 + 02.02 Paris/@@Paris.md | 13 + 02.03 Zรผrich/@Restaurants Zรผrich.md | 6 + 02.03 Zรผrich/@Sport Zรผrich.md | 13 + 02.03 Zรผrich/Apotheke.md | 113 + 02.03 Zรผrich/Le Montmartre.md | 114 + 02.03 Zรผrich/Rex Automobile CH.md | 113 + .../Soumission.md | 1 + .../Sรฉrotonine.md | 4 +- 03.02 Travels/@Africa.md | 2 +- 03.02 Travels/@Bahrein.md | 2 +- 03.02 Travels/@Dubaรฏ.md | 2 +- 03.02 Travels/@France.md | 2 +- 03.02 Travels/@Italy.md | 2 +- 03.02 Travels/@Spain.md | 2 +- 03.02 Travels/@Switzerland.md | 2 +- 03.02 Travels/@United States.md | 2 +- 03.02 Travels/Ethiopian holiday.md | 2 +- 03.02 Travels/Flumseberg.md | 114 + .../Francisco Podesta.md | 2 +- 03.02 Travels/Geneva.md | 1 + 03.02 Travels/Iridike Polo Club.md | 3 +- 03.02 Travels/Jazz Route (US).md | 2 +- 03.02 Travels/Madrid.md | 137 + 03.02 Travels/Mallorca.md | 157 + 03.02 Travels/Marseille.md | 4 +- .../Mountain hikes in Switzerland.md | 2 +- 03.02 Travels/RSA - Wine region.md | 3 +- 03.02 Travels/Skiing in Switzerland.md | 2 +- 03.02 Travels/Son Ginard Polo Club.md | 112 + .../Harissa, Squash & Chickpea stew.md | 6 +- 03.03 Food & Wine/Lemon Chicken.md | 148 + 03.04 Cinematheque/@Cinematheque.md | 4 +- 03.04 Cinematheque/Die Another Day (2002).md | 99 + 03.04 Cinematheque/Jaws (1975).md | 99 + 03.04 Cinematheque/Mars Attacks! (1996).md | 98 + 03.04 Cinematheque/Mean Streets (1973).md | 93 + 03.04 Cinematheque/Quadrophenia (1979).md | 93 + 03.04 Cinematheque/Reservoir Dogs (1992).md | 94 + 03.04 Cinematheque/The Bureau (2015โ€“).md | 123 + .../The World Is Not Enough (1999).md | 100 + .../Tomorrow Never Dies (1997).md | 99 + 04.01 lebv.org/WebPublishing Tasks.md | 2 +- 04.01 lebv.org/lebv Research Tasks.md | 6 +- 05.01 Computer setup/Privacy & Security.md | 2 +- 05.01 Computer setup/Storage and Syncing.md | 3 +- 05.02 Networks/Configuring UFW.md | 16 +- 06.02 Investments/Aragon.md | 4 +- 06.02 Investments/Chainlink.md | 4 +- 06.02 Investments/Crypto Tasks.md | 25 +- 06.02 Investments/EOS.md | 4 +- 06.02 Investments/Enjin.md | 4 +- 06.02 Investments/Equity Tasks.md | 14 +- 06.02 Investments/Holochain.md | 4 +- 06.02 Investments/Nimbus.md | 4 +- 06.02 Investments/Ocean Protocol.md | 4 +- 06.02 Investments/Polkadot.md | 2 +- 06.02 Investments/VC Tasks.md | 14 +- archive.md | 0 299 files changed, 92728 insertions(+), 43861 deletions(-) rename .obsidian/plugins/{obsidian-3d-graph => 3d-graph}/main.js (94%) rename .obsidian/plugins/{obsidian-3d-graph => 3d-graph}/manifest.json (77%) rename .obsidian/plugins/{obsidian-3d-graph/obisidian-3d-graph-1.0.0.zip => 3d-graph/obisidian-3d-graph-1.0.1.zip} (99%) rename .obsidian/plugins/{obsidian-3d-graph => 3d-graph}/styles.css (98%) create mode 100644 .obsidian/plugins/cmdr/data.json create mode 100644 .obsidian/plugins/cmdr/main.js create mode 100644 .obsidian/plugins/cmdr/manifest.json create mode 100644 .obsidian/plugins/cmdr/styles.css delete mode 100644 .obsidian/plugins/customizable-page-header-buttons/data.json delete mode 100644 .obsidian/plugins/customizable-page-header-buttons/main.js delete mode 100644 .obsidian/plugins/customizable-page-header-buttons/manifest.json delete mode 100644 .obsidian/plugins/customizable-page-header-buttons/styles.css create mode 100644 .obsidian/plugins/emoji-shortcodes/data.json create mode 100644 .obsidian/plugins/list-style/main.js create mode 100644 .obsidian/plugins/list-style/manifest.json create mode 100644 .obsidian/plugins/obsidian-account-linker/main.js create mode 100644 .obsidian/plugins/obsidian-account-linker/manifest.json create mode 100644 .obsidian/plugins/obsidian-account-linker/styles.css create mode 100644 .obsidian/plugins/obsidian-scroll-to-top-plugin/main.js create mode 100644 .obsidian/plugins/obsidian-scroll-to-top-plugin/manifest.json create mode 100644 .obsidian/plugins/obsidian-scroll-to-top-plugin/styles.css create mode 100644 .obsidian/plugins/obsidian-snippet-downloader/data.json create mode 100644 .obsidian/plugins/obsidian-snippet-downloader/main.js create mode 100644 .obsidian/plugins/obsidian-snippet-downloader/manifest.json create mode 100644 .obsidian/plugins/obsidian-snippet-downloader/styles.css create mode 100644 .obsidian/snippets/MCL Gallery Cards.css create mode 100644 .obsidian/snippets/MCL Multi Column.css create mode 100644 .obsidian/snippets/MCL Wide Views.css create mode 100644 00.01 Admin/Calendars/2022-11-03.md create mode 100644 00.01 Admin/Calendars/2022-11-04.md create mode 100644 00.01 Admin/Calendars/2022-11-05.md create mode 100644 00.01 Admin/Calendars/2022-11-06.md create mode 100644 00.01 Admin/Calendars/2022-11-07.md create mode 100644 00.01 Admin/Calendars/2022-11-08.md create mode 100644 00.01 Admin/Calendars/2022-11-09.md delete mode 100644 00.01 Admin/Calendars/2022-11-10 Dinner @ Swiss Re.md create mode 100644 00.01 Admin/Calendars/2022-11-10.md create mode 100644 00.01 Admin/Calendars/2022-11-11.md create mode 100644 00.01 Admin/Calendars/2022-11-12.md create mode 100644 00.01 Admin/Calendars/2022-11-13 PSG - AJ Auxerre (5-0).md create mode 100644 00.01 Admin/Calendars/2022-11-13.md create mode 100644 00.01 Admin/Calendars/2022-11-14.md create mode 100644 00.01 Admin/Calendars/2022-11-15.md create mode 100644 00.01 Admin/Calendars/2022-11-16.md create mode 100644 00.01 Admin/Calendars/2022-11-17.md create mode 100644 00.01 Admin/Calendars/2022-11-18.md rename 00.01 Admin/Calendars/{2022-11-19 Fianรงailles Marguerite & Arnold.md => 2022-11-19 ๐Ÿ’ Fianรงailles Marguerite & Arnold.md} (92%) create mode 100644 00.01 Admin/Calendars/2022-11-19.md create mode 100644 00.01 Admin/Calendars/2022-11-20 Mallorca.md create mode 100644 00.01 Admin/Calendars/2022-11-20.md create mode 100644 00.01 Admin/Calendars/2022-11-21.md create mode 100644 00.01 Admin/Calendars/2022-11-22 France - Australie (4-1).md create mode 100644 00.01 Admin/Calendars/2022-11-22.md create mode 100644 00.01 Admin/Calendars/2022-11-23.md create mode 100644 00.01 Admin/Calendars/2022-11-24.md create mode 100644 00.01 Admin/Calendars/2022-11-25.md create mode 100644 00.01 Admin/Calendars/2022-11-26 France - Denmark (2-1).md create mode 100644 00.01 Admin/Calendars/2022-11-26.md create mode 100644 00.01 Admin/Calendars/2022-11-27.md create mode 100644 00.01 Admin/Calendars/2022-11-28.md create mode 100644 00.01 Admin/Calendars/2022-11-29.md create mode 100644 00.01 Admin/Calendars/2022-11-30 Tunisia - France (1-1).md create mode 100644 00.01 Admin/Calendars/2022-11-30 ZSC - HC Ajoie.md create mode 100644 00.01 Admin/Calendars/2022-11-30.md create mode 100644 00.01 Admin/Calendars/2022-12-01.md create mode 100644 00.01 Admin/Calendars/2022-12-02.md create mode 100644 00.01 Admin/Calendars/2022-12-03.md create mode 100644 00.01 Admin/Calendars/2022-12-04 France - Pologne (3-1).md create mode 100644 00.01 Admin/Calendars/2022-12-04.md create mode 100644 00.01 Admin/Calendars/2022-12-05.md create mode 100644 00.01 Admin/Calendars/2022-12-06.md create mode 100644 00.01 Admin/Calendars/2022-12-07.md create mode 100644 00.01 Admin/Calendars/2022-12-08.md create mode 100644 00.01 Admin/Calendars/2022-12-09.md create mode 100644 00.01 Admin/Calendars/2022-12-10 โšฝ France - Angleterre (2-1).md create mode 100644 00.01 Admin/Calendars/2022-12-10 โ›ท๏ธ Arosa.md create mode 100644 00.01 Admin/Calendars/2022-12-10.md create mode 100644 00.01 Admin/Calendars/2022-12-11.md create mode 100644 00.01 Admin/Calendars/2022-12-12.md create mode 100644 00.01 Admin/Calendars/2022-12-13.md create mode 100644 00.01 Admin/Calendars/2022-12-14 โšฝ๏ธ Maroc - France (0-2).md create mode 100644 00.01 Admin/Calendars/2022-12-14.md create mode 100644 00.01 Admin/Calendars/2022-12-15.md create mode 100644 00.01 Admin/Calendars/2022-12-16 ๐Ÿงš๐Ÿผ Meg in LDN.md create mode 100644 00.01 Admin/Calendars/2022-12-16.md create mode 100644 00.01 Admin/Calendars/2022-12-18 France - Argentine.md create mode 100644 00.01 Admin/Calendars/2023-02-10 ๐Ÿ‘ฐโ€โ™€๏ธ Mariage civil Eloi et Zรฉlie.md create mode 100644 00.01 Admin/Calendars/2023-02-14 Bayern - PSG.md create mode 100644 00.01 Admin/Calendars/2023-03-08 PSG - Bayern.md rename 00.01 Admin/Calendars/{2023-01-14 Mariage Marguerite & Arnold.md => 2023-04-29 Mariage Marguerite & Arnold.md} (71%) create mode 100644 00.02 Inbox/Say Nothing.md create mode 100644 00.03 News/10 More Disturbing Revelations About Sam Bankman-Fried.md create mode 100644 00.03 News/A Matter of Honor.md create mode 100644 00.03 News/Abuse, Chaos and Cruelty in Louisiana Juvenile Detention.md create mode 100644 00.03 News/Bad Faith at Second Mesa.md create mode 100644 00.03 News/Bodybuilders dying as coaches and judges encourage extreme measures.md create mode 100644 00.03 News/Collections Why Roman Egypt Was Such a Strange Province.md create mode 100644 00.03 News/DEAโ€™s most corrupt agent Parties, sex amid 'unwinnable war'.md create mode 100644 00.03 News/Do We Have the History of Native Americans Backward.md create mode 100644 00.03 News/Drugs killed 8 friends, one by one, in a tragedy seen across the U.S..md create mode 100644 00.03 News/Extreme Heat Will Change Us.md create mode 100644 00.03 News/How Much Would You Pay to Save Your Pet's Life.md create mode 100644 00.03 News/How Noah Baumbach Made โ€˜White Noiseโ€™ a Disaster Movie for Our Moment.md create mode 100644 00.03 News/How Saudi Arabia Sees the World.md create mode 100644 00.03 News/How Ukrainians Are Protecting Their Centuries-Old Culture From Putinโ€™s Invasion.md create mode 100644 00.03 News/How the Dez Bryant no-catch changed the NFL forever.md create mode 100644 00.03 News/How the Record Industry Ruthlessly Punished Milli Vanilli for Anticipating the Future of Music.md create mode 100644 00.03 News/How the story of soccer became the story of everything.md create mode 100644 00.03 News/Inside the Case Against General Salvador Cienfuegos Zepeda.md create mode 100644 00.03 News/Madame Palatine ร  la cour du Roi Soleil.md create mode 100644 00.03 News/Margot Robbie Is Nobodyโ€™s Barbie The โ€˜Babylonโ€™ Star on Navigating Hollywood.md create mode 100644 00.03 News/Meet the World's Top 'Chess Detective'.md create mode 100644 00.03 News/Murder and Loathing in Las Vegas.md create mode 100644 00.03 News/Searching for Zarahemla A van, the Yucatรกn, five Latter-day Saints, and the malleable nature of truth.md create mode 100644 00.03 News/Secrets of the Christmas Tree Trade.md create mode 100644 00.03 News/Swamp Boy Medical Mystery.md create mode 100644 00.03 News/Thanked by Shady Eminem's hip-hop idols react to Rock Hall shoutouts.md create mode 100644 00.03 News/The Beautiful, Brutal World of Bonsai.md create mode 100644 00.03 News/The Harvey Weinstein Trial and the Myth of the Perfect Perpetrator.md create mode 100644 00.03 News/The Judge and the Case That Came Back to Haunt Him.md create mode 100644 00.03 News/The Most Lawless County in Texas.md create mode 100644 00.03 News/The Next Wave of the Opioid Epidemic Is Killing Black Men.md create mode 100644 00.03 News/The Return of James Cameron, Box Office King.md create mode 100644 00.03 News/The Strange and Mysterious Death of Mrs. Jerry Lee Lewis.md create mode 100644 00.03 News/The Too-Muchness of Bono.md create mode 100644 00.03 News/The death of NHL slap shots Why players are abandoning hockeyโ€™s signature offensive weapon.md create mode 100644 00.03 News/The dirty road to clean energy how Chinaโ€™s electric vehicle boom is ravaging the environment.md create mode 100644 00.03 News/The story of a young mother, a fire and a Milwaukee landlord.md create mode 100644 00.03 News/These three brothers scammed their investors out of $233 million. Then they lived like kings.md create mode 100644 00.03 News/True Grit.md create mode 100644 00.03 News/Trump Is No Longer Enjoying Himself โ€” And It Shows.md create mode 100644 00.03 News/Who Will Remove My IUD.md create mode 100644 00.03 News/โ€˜He was fast โ€ฆ he ran you right overโ€™ what itโ€™s like to get hit by an SUV.md create mode 100644 00.03 News/โ€˜Russian warship, go fuck yourselfโ€™ what happened next to the Ukrainians defending Snake Island.md create mode 100644 00.03 News/โ€˜Trumpโ€™s Kevinโ€™ McCarthy could soon be speaker of the House - Los Angeles Times.md create mode 100644 00.05 Media/Team Deakins - MARK TILDESLEY - Production Designer.md create mode 100644 00.08 Bookmarks/Bookmarks - Travels & Sport.md create mode 100644 01.04 MRCK/Pet note.md create mode 100644 02.03 Zรผrich/Apotheke.md create mode 100644 02.03 Zรผrich/Le Montmartre.md create mode 100644 02.03 Zรผrich/Rex Automobile CH.md rename {00.02 Inbox => 03.01 Reading list}/Soumission.md (96%) rename {00.02 Inbox => 03.01 Reading list}/Sรฉrotonine.md (96%) create mode 100644 03.02 Travels/Flumseberg.md rename {02.03 Zรผrich => 03.02 Travels}/Francisco Podesta.md (95%) create mode 100644 03.02 Travels/Madrid.md create mode 100644 03.02 Travels/Mallorca.md create mode 100644 03.02 Travels/Son Ginard Polo Club.md create mode 100644 03.03 Food & Wine/Lemon Chicken.md create mode 100644 03.04 Cinematheque/Die Another Day (2002).md create mode 100644 03.04 Cinematheque/Jaws (1975).md create mode 100644 03.04 Cinematheque/Mars Attacks! (1996).md create mode 100644 03.04 Cinematheque/Mean Streets (1973).md create mode 100644 03.04 Cinematheque/Quadrophenia (1979).md create mode 100644 03.04 Cinematheque/Reservoir Dogs (1992).md create mode 100644 03.04 Cinematheque/The Bureau (2015โ€“).md create mode 100644 03.04 Cinematheque/The World Is Not Enough (1999).md create mode 100644 03.04 Cinematheque/Tomorrow Never Dies (1997).md create mode 100644 archive.md diff --git a/.obsidian/appearance.json b/.obsidian/appearance.json index eed9f106..312dfb4f 100644 --- a/.obsidian/appearance.json +++ b/.obsidian/appearance.json @@ -12,7 +12,8 @@ "bulletp_relationship", "inline-block-embeds", "hyphenation_justification", - "big_icon_link" + "big_icon_link", + "MCL Multi Column" ], "accentColor": "#3a87fe" } \ No newline at end of file diff --git a/.obsidian/community-plugins.json b/.obsidian/community-plugins.json index 34fd491f..84ceca75 100644 --- a/.obsidian/community-plugins.json +++ b/.obsidian/community-plugins.json @@ -6,7 +6,6 @@ "buttons", "obsidian-commits", "copy-as-html", - "customizable-page-header-buttons", "customjs", "dataview", "obsidian-dice-roller", @@ -32,19 +31,16 @@ "obsidian42-brat", "url-into-selection", "quickadd", - "obsidian-react-components", "obsidian-reminder-plugin", "obsidian-sortable", "obsidian-stopwatch-plugin", "obsidian-task-collector", "taskbone-ocr-plugin", - "obsidian-tasks-plugin", "mrj-text-expand", "obsidian-tracker", "txt-as-md-obsidian", "obsidian-wikipedia", "obsidian-read-it-later", - "obsidian-full-calendar", "markdown-table-editor", "obsidian-book-search-plugin", "obsidian-media-db-plugin", @@ -60,9 +56,18 @@ "templater-obsidian", "obsidian-kanban", "plugins-galore", - "obsidian-3d-graph", "obsidian-rich-links", "auto-card-link", "simple-time-tracker", - "obsidian-dialogue-plugin" + "obsidian-dialogue-plugin", + "obsidian-scroll-to-top-plugin", + "obsidian-account-linker", + "cmdr", + "list-style", + "multi-column-markdown", + "obsidian-snippet-downloader", + "obsidian-full-calendar", + "obsidian-react-components", + "3d-graph", + "obsidian-tasks-plugin" ] \ No newline at end of file diff --git a/.obsidian/graph.json b/.obsidian/graph.json index 4374c7fc..bf791128 100644 --- a/.obsidian/graph.json +++ b/.obsidian/graph.json @@ -95,6 +95,6 @@ "repelStrength": 10, "linkStrength": 1, "linkDistance": 250, - "scale": 0.18364180158120558, + "scale": 0.13214067549723676, "close": true } \ No newline at end of file diff --git a/.obsidian/plugins/obsidian-3d-graph/main.js b/.obsidian/plugins/3d-graph/main.js similarity index 94% rename from .obsidian/plugins/obsidian-3d-graph/main.js rename to .obsidian/plugins/3d-graph/main.js index 96afc568..5db7cb2a 100644 --- a/.obsidian/plugins/obsidian-3d-graph/main.js +++ b/.obsidian/plugins/3d-graph/main.js @@ -3122,7 +3122,7 @@ var import_obsidian7 = require("obsidian"); var import_obsidian6 = require("obsidian"); // node_modules/three/build/three.module.js -var REVISION = "143"; +var REVISION = "146"; var MOUSE = { LEFT: 0, MIDDLE: 1, RIGHT: 2, ROTATE: 0, DOLLY: 1, PAN: 2 }; var TOUCH = { ROTATE: 0, PAN: 1, DOLLY_PAN: 2, DOLLY_ROTATE: 3 }; var CullFaceNone = 0; @@ -3134,7 +3134,6 @@ var VSMShadowMap = 3; var FrontSide = 0; var BackSide = 1; var DoubleSide = 2; -var FlatShading = 1; var NoBlending = 0; var NormalBlending = 1; var AdditiveBlending = 2; @@ -3328,6 +3327,38 @@ function isPowerOfTwo(value) { function floorPowerOfTwo(value) { return Math.pow(2, Math.floor(Math.log(value) / Math.LN2)); } +function denormalize(value, array) { + switch (array.constructor) { + case Float32Array: + return value; + case Uint16Array: + return value / 65535; + case Uint8Array: + return value / 255; + case Int16Array: + return Math.max(value / 32767, -1); + case Int8Array: + return Math.max(value / 127, -1); + default: + throw new Error("Invalid component type."); + } +} +function normalize(value, array) { + switch (array.constructor) { + case Float32Array: + return value; + case Uint16Array: + return Math.round(value * 65535); + case Uint8Array: + return Math.round(value * 255); + case Int16Array: + return Math.round(value * 32767); + case Int8Array: + return Math.round(value * 127); + default: + throw new Error("Invalid component type."); + } +} var Vector2 = class { constructor(x2 = 0, y2 = 0) { Vector2.prototype.isVector2 = true; @@ -3807,7 +3838,7 @@ var Matrix3 = class { }; function arrayNeedsUint32(array) { for (let i = array.length - 1; i >= 0; --i) { - if (array[i] > 65535) + if (array[i] >= 65535) return true; } return false; @@ -4118,10 +4149,10 @@ var Color = class { break; case "hsl": case "hsla": - if (color = /^\s*(\d*\.?\d+)\s*,\s*(\d+)\%\s*,\s*(\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(components)) { + if (color = /^\s*(\d*\.?\d+)\s*,\s*(\d*\.?\d+)\%\s*,\s*(\d*\.?\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(components)) { const h = parseFloat(color[1]) / 360; - const s = parseInt(color[2], 10) / 100; - const l = parseInt(color[3], 10) / 100; + const s = parseFloat(color[2]) / 100; + const l = parseFloat(color[3]) / 100; handleAlpha(color[4]); return this.setHSL(h, s, l, colorSpace); } @@ -4323,11 +4354,6 @@ var Color = class { this.r = attribute.getX(index5); this.g = attribute.getY(index5); this.b = attribute.getZ(index5); - if (attribute.normalized === true) { - this.r /= 255; - this.g /= 255; - this.b /= 255; - } return this; } toJSON() { @@ -5012,7 +5038,7 @@ var Vector4 = class { } }; var WebGLRenderTarget = class extends EventDispatcher { - constructor(width, height, options = {}) { + constructor(width = 1, height = 1, options = {}) { super(); this.isWebGLRenderTarget = true; this.width = width; @@ -5209,9 +5235,6 @@ var Quaternion = class { return this; } setFromEuler(euler, update4) { - if (!(euler && euler.isEuler)) { - throw new Error("THREE.Quaternion: .setFromEuler() now expects an Euler rotation rather than a Vector3 and order."); - } const x2 = euler._x, y2 = euler._y, z2 = euler._z, order = euler._order; const cos = Math.cos; const sin = Math.sin; @@ -6093,10 +6116,10 @@ var Box3 = class { _extents.subVectors(this.max, _center); _v0$2.subVectors(triangle.a, _center); _v1$7.subVectors(triangle.b, _center); - _v2$3.subVectors(triangle.c, _center); + _v2$4.subVectors(triangle.c, _center); _f0.subVectors(_v1$7, _v0$2); - _f1.subVectors(_v2$3, _v1$7); - _f2.subVectors(_v0$2, _v2$3); + _f1.subVectors(_v2$4, _v1$7); + _f2.subVectors(_v0$2, _v2$4); let axes = [ 0, -_f0.z, @@ -6126,16 +6149,16 @@ var Box3 = class { _f2.x, 0 ]; - if (!satForAxes(axes, _v0$2, _v1$7, _v2$3, _extents)) { + if (!satForAxes(axes, _v0$2, _v1$7, _v2$4, _extents)) { return false; } axes = [1, 0, 0, 0, 1, 0, 0, 0, 1]; - if (!satForAxes(axes, _v0$2, _v1$7, _v2$3, _extents)) { + if (!satForAxes(axes, _v0$2, _v1$7, _v2$4, _extents)) { return false; } _triangleNormal.crossVectors(_f0, _f1); axes = [_triangleNormal.x, _triangleNormal.y, _triangleNormal.z]; - return satForAxes(axes, _v0$2, _v1$7, _v2$3, _extents); + return satForAxes(axes, _v0$2, _v1$7, _v2$4, _extents); } clampPoint(point, target) { return target.copy(point).clamp(this.min, this.max); @@ -6198,7 +6221,7 @@ var _vector$b = /* @__PURE__ */ new Vector3(); var _box$3 = /* @__PURE__ */ new Box3(); var _v0$2 = /* @__PURE__ */ new Vector3(); var _v1$7 = /* @__PURE__ */ new Vector3(); -var _v2$3 = /* @__PURE__ */ new Vector3(); +var _v2$4 = /* @__PURE__ */ new Vector3(); var _f0 = /* @__PURE__ */ new Vector3(); var _f1 = /* @__PURE__ */ new Vector3(); var _f2 = /* @__PURE__ */ new Vector3(); @@ -6221,8 +6244,7 @@ function satForAxes(axes, v0, v1, v2, extents) { } var _box$2 = /* @__PURE__ */ new Box3(); var _v1$6 = /* @__PURE__ */ new Vector3(); -var _toFarthestPoint = /* @__PURE__ */ new Vector3(); -var _toPoint = /* @__PURE__ */ new Vector3(); +var _v2$3 = /* @__PURE__ */ new Vector3(); var Sphere = class { constructor(center = new Vector3(), radius = -1) { this.center = center; @@ -6304,24 +6326,36 @@ var Sphere = class { return this; } expandByPoint(point) { - _toPoint.subVectors(point, this.center); - const lengthSq = _toPoint.lengthSq(); + if (this.isEmpty()) { + this.center.copy(point); + this.radius = 0; + return this; + } + _v1$6.subVectors(point, this.center); + const lengthSq = _v1$6.lengthSq(); if (lengthSq > this.radius * this.radius) { const length = Math.sqrt(lengthSq); - const missingRadiusHalf = (length - this.radius) * 0.5; - this.center.add(_toPoint.multiplyScalar(missingRadiusHalf / length)); - this.radius += missingRadiusHalf; + const delta = (length - this.radius) * 0.5; + this.center.addScaledVector(_v1$6, delta / length); + this.radius += delta; } return this; } union(sphere) { + if (sphere.isEmpty()) { + return this; + } + if (this.isEmpty()) { + this.copy(sphere); + return this; + } if (this.center.equals(sphere.center) === true) { - _toFarthestPoint.set(0, 0, 1).multiplyScalar(sphere.radius); + this.radius = Math.max(this.radius, sphere.radius); } else { - _toFarthestPoint.subVectors(sphere.center, this.center).normalize().multiplyScalar(sphere.radius); + _v2$3.subVectors(sphere.center, this.center).setLength(sphere.radius); + this.expandByPoint(_v1$6.copy(sphere.center).add(_v2$3)); + this.expandByPoint(_v1$6.copy(sphere.center).sub(_v2$3)); } - this.expandByPoint(_v1$6.copy(sphere.center).add(_toFarthestPoint)); - this.expandByPoint(_v1$6.copy(sphere.center).sub(_toFarthestPoint)); return this; } equals(sphere) { @@ -6511,9 +6545,9 @@ var Ray = class { } if (tmin > tymax || tymin > tmax) return null; - if (tymin > tmin || tmin !== tmin) + if (tymin > tmin || isNaN(tmin)) tmin = tymin; - if (tymax < tmax || tmax !== tmax) + if (tymax < tmax || isNaN(tmax)) tmax = tymax; if (invdirz >= 0) { tzmin = (box.min.z - origin.z) * invdirz; @@ -7423,6 +7457,7 @@ var Object3D = class extends EventDispatcher { this.matrixWorld = new Matrix4(); this.matrixAutoUpdate = Object3D.DefaultMatrixAutoUpdate; this.matrixWorldNeedsUpdate = false; + this.matrixWorldAutoUpdate = Object3D.DefaultMatrixWorldAutoUpdate; this.layers = new Layers(); this.visible = true; this.castShadow = false; @@ -7664,12 +7699,15 @@ var Object3D = class extends EventDispatcher { } const children = this.children; for (let i = 0, l = children.length; i < l; i++) { - children[i].updateMatrixWorld(force); + const child = children[i]; + if (child.matrixWorldAutoUpdate === true || force === true) { + child.updateMatrixWorld(force); + } } } updateWorldMatrix(updateParents, updateChildren) { const parent = this.parent; - if (updateParents === true && parent !== null) { + if (updateParents === true && parent !== null && parent.matrixWorldAutoUpdate === true) { parent.updateWorldMatrix(true, false); } if (this.matrixAutoUpdate) @@ -7682,7 +7720,10 @@ var Object3D = class extends EventDispatcher { if (updateChildren === true) { const children = this.children; for (let i = 0, l = children.length; i < l; i++) { - children[i].updateWorldMatrix(false, true); + const child = children[i]; + if (child.matrixWorldAutoUpdate === true) { + child.updateWorldMatrix(false, true); + } } } } @@ -7850,6 +7891,7 @@ var Object3D = class extends EventDispatcher { this.matrixWorld.copy(source.matrixWorld); this.matrixAutoUpdate = source.matrixAutoUpdate; this.matrixWorldNeedsUpdate = source.matrixWorldNeedsUpdate; + this.matrixWorldAutoUpdate = source.matrixWorldAutoUpdate; this.layers.mask = source.layers.mask; this.visible = source.visible; this.castShadow = source.castShadow; @@ -7868,6 +7910,7 @@ var Object3D = class extends EventDispatcher { }; Object3D.DefaultUp = /* @__PURE__ */ new Vector3(0, 1, 0); Object3D.DefaultMatrixAutoUpdate = true; +Object3D.DefaultMatrixWorldAutoUpdate = true; var _v0$1 = /* @__PURE__ */ new Vector3(); var _v1$3 = /* @__PURE__ */ new Vector3(); var _v2$2 = /* @__PURE__ */ new Vector3(); @@ -8109,11 +8152,6 @@ var Material = class extends EventDispatcher { console.warn("THREE.Material: '" + key + "' parameter is undefined."); continue; } - if (key === "shading") { - console.warn("THREE." + this.type + ": .shading has been removed. Use the boolean .flatShading instead."); - this.flatShading = newValue === FlatShading ? true : false; - continue; - } const currentValue = this[key]; if (currentValue === void 0) { console.warn("THREE." + this.type + ": '" + key + "' is not a property of this material."); @@ -8259,7 +8297,7 @@ var Material = class extends EventDispatcher { data.thickness = this.thickness; if (this.thicknessMap && this.thicknessMap.isTexture) data.thicknessMap = this.thicknessMap.toJSON(meta).uuid; - if (this.attenuationDistance !== void 0) + if (this.attenuationDistance !== void 0 && this.attenuationDistance !== Infinity) data.attenuationDistance = this.attenuationDistance; if (this.attenuationColor !== void 0) data.attenuationColor = this.attenuationColor.getHex(); @@ -8508,66 +8546,6 @@ var BufferAttribute = class { this.array.set(array); return this; } - copyColorsArray(colors) { - const array = this.array; - let offset = 0; - for (let i = 0, l = colors.length; i < l; i++) { - let color = colors[i]; - if (color === void 0) { - console.warn("THREE.BufferAttribute.copyColorsArray(): color is undefined", i); - color = new Color(); - } - array[offset++] = color.r; - array[offset++] = color.g; - array[offset++] = color.b; - } - return this; - } - copyVector2sArray(vectors) { - const array = this.array; - let offset = 0; - for (let i = 0, l = vectors.length; i < l; i++) { - let vector = vectors[i]; - if (vector === void 0) { - console.warn("THREE.BufferAttribute.copyVector2sArray(): vector is undefined", i); - vector = new Vector2(); - } - array[offset++] = vector.x; - array[offset++] = vector.y; - } - return this; - } - copyVector3sArray(vectors) { - const array = this.array; - let offset = 0; - for (let i = 0, l = vectors.length; i < l; i++) { - let vector = vectors[i]; - if (vector === void 0) { - console.warn("THREE.BufferAttribute.copyVector3sArray(): vector is undefined", i); - vector = new Vector3(); - } - array[offset++] = vector.x; - array[offset++] = vector.y; - array[offset++] = vector.z; - } - return this; - } - copyVector4sArray(vectors) { - const array = this.array; - let offset = 0; - for (let i = 0, l = vectors.length; i < l; i++) { - let vector = vectors[i]; - if (vector === void 0) { - console.warn("THREE.BufferAttribute.copyVector4sArray(): vector is undefined", i); - vector = new Vector4(); - } - array[offset++] = vector.x; - array[offset++] = vector.y; - array[offset++] = vector.z; - array[offset++] = vector.w; - } - return this; - } applyMatrix3(m2) { if (this.itemSize === 2) { for (let i = 0, l = this.count; i < l; i++) { @@ -8613,41 +8591,70 @@ var BufferAttribute = class { return this; } getX(index5) { - return this.array[index5 * this.itemSize]; + let x2 = this.array[index5 * this.itemSize]; + if (this.normalized) + x2 = denormalize(x2, this.array); + return x2; } setX(index5, x2) { + if (this.normalized) + x2 = normalize(x2, this.array); this.array[index5 * this.itemSize] = x2; return this; } getY(index5) { - return this.array[index5 * this.itemSize + 1]; + let y2 = this.array[index5 * this.itemSize + 1]; + if (this.normalized) + y2 = denormalize(y2, this.array); + return y2; } setY(index5, y2) { + if (this.normalized) + y2 = normalize(y2, this.array); this.array[index5 * this.itemSize + 1] = y2; return this; } getZ(index5) { - return this.array[index5 * this.itemSize + 2]; + let z2 = this.array[index5 * this.itemSize + 2]; + if (this.normalized) + z2 = denormalize(z2, this.array); + return z2; } setZ(index5, z2) { + if (this.normalized) + z2 = normalize(z2, this.array); this.array[index5 * this.itemSize + 2] = z2; return this; } getW(index5) { - return this.array[index5 * this.itemSize + 3]; + let w = this.array[index5 * this.itemSize + 3]; + if (this.normalized) + w = denormalize(w, this.array); + return w; } setW(index5, w) { + if (this.normalized) + w = normalize(w, this.array); this.array[index5 * this.itemSize + 3] = w; return this; } setXY(index5, x2, y2) { index5 *= this.itemSize; + if (this.normalized) { + x2 = normalize(x2, this.array); + y2 = normalize(y2, this.array); + } this.array[index5 + 0] = x2; this.array[index5 + 1] = y2; return this; } setXYZ(index5, x2, y2, z2) { index5 *= this.itemSize; + if (this.normalized) { + x2 = normalize(x2, this.array); + y2 = normalize(y2, this.array); + z2 = normalize(z2, this.array); + } this.array[index5 + 0] = x2; this.array[index5 + 1] = y2; this.array[index5 + 2] = z2; @@ -8655,6 +8662,12 @@ var BufferAttribute = class { } setXYZW(index5, x2, y2, z2, w) { index5 *= this.itemSize; + if (this.normalized) { + x2 = normalize(x2, this.array); + y2 = normalize(y2, this.array); + z2 = normalize(z2, this.array); + w = normalize(w, this.array); + } this.array[index5 + 0] = x2; this.array[index5 + 1] = y2; this.array[index5 + 2] = z2; @@ -8683,6 +8696,18 @@ var BufferAttribute = class { data.updateRange = this.updateRange; return data; } + copyColorsArray() { + console.error("THREE.BufferAttribute: copyColorsArray() was removed in r144."); + } + copyVector2sArray() { + console.error("THREE.BufferAttribute: copyVector2sArray() was removed in r144."); + } + copyVector3sArray() { + console.error("THREE.BufferAttribute: copyVector3sArray() was removed in r144."); + } + copyVector4sArray() { + console.error("THREE.BufferAttribute: copyVector4sArray() was removed in r144."); + } }; var Uint16BufferAttribute = class extends BufferAttribute { constructor(array, itemSize, normalized) { @@ -9070,29 +9095,8 @@ var BufferGeometry = class extends EventDispatcher { normalAttribute.needsUpdate = true; } } - merge(geometry, offset) { - if (!(geometry && geometry.isBufferGeometry)) { - console.error("THREE.BufferGeometry.merge(): geometry not an instance of THREE.BufferGeometry.", geometry); - return; - } - if (offset === void 0) { - offset = 0; - console.warn("THREE.BufferGeometry.merge(): Overwriting original geometry, starting at offset=0. Use BufferGeometryUtils.mergeBufferGeometries() for lossless merge."); - } - const attributes = this.attributes; - for (const key in attributes) { - if (geometry.attributes[key] === void 0) - continue; - const attribute1 = attributes[key]; - const attributeArray1 = attribute1.array; - const attribute2 = geometry.attributes[key]; - const attributeArray2 = attribute2.array; - const attributeOffset = attribute2.itemSize * offset; - const length = Math.min(attributeArray2.length, attributeArray1.length - attributeOffset); - for (let i = 0, j = attributeOffset; i < length; i++, j++) { - attributeArray1[j] = attributeArray2[i]; - } - } + merge() { + console.error("THREE.BufferGeometry.merge() has been removed. Use THREE.BufferGeometryUtils.mergeBufferGeometries() instead."); return this; } normalizeNormals() { @@ -9655,9 +9659,6 @@ var ShaderMaterial = class extends Material { this.uniformsNeedUpdate = false; this.glslVersion = null; if (parameters !== void 0) { - if (parameters.attributes !== void 0) { - console.error("THREE.ShaderMaterial: attributes should now be defined in THREE.BufferGeometry instead."); - } this.setValues(parameters); } } @@ -9888,10 +9889,6 @@ var CubeCamera = class extends Object3D { constructor(near, far, renderTarget) { super(); this.type = "CubeCamera"; - if (renderTarget.isWebGLCubeRenderTarget !== true) { - console.error("THREE.CubeCamera: The constructor now expects an instance of WebGLCubeRenderTarget as third parameter."); - return; - } this.renderTarget = renderTarget; const cameraPX = new PerspectiveCamera(fov, aspect, near, far); cameraPX.layers = this.layers; @@ -9971,7 +9968,7 @@ var CubeTexture = class extends Texture { } }; var WebGLCubeRenderTarget = class extends WebGLRenderTarget { - constructor(size, options = {}) { + constructor(size = 1, options = {}) { super(size, size, options); this.isWebGLCubeRenderTarget = true; const image = { width: size, height: size, depth: 1 }; @@ -10453,7 +10450,7 @@ var color_pars_fragment = "#if defined( USE_COLOR_ALPHA )\n varying vec4 vColor; var color_pars_vertex = "#if defined( USE_COLOR_ALPHA )\n varying vec4 vColor;\n#elif defined( USE_COLOR ) || defined( USE_INSTANCING_COLOR )\n varying vec3 vColor;\n#endif"; var color_vertex = "#if defined( USE_COLOR_ALPHA )\n vColor = vec4( 1.0 );\n#elif defined( USE_COLOR ) || defined( USE_INSTANCING_COLOR )\n vColor = vec3( 1.0 );\n#endif\n#ifdef USE_COLOR\n vColor *= color;\n#endif\n#ifdef USE_INSTANCING_COLOR\n vColor.xyz *= instanceColor.xyz;\n#endif"; var common = "#define PI 3.141592653589793\n#define PI2 6.283185307179586\n#define PI_HALF 1.5707963267948966\n#define RECIPROCAL_PI 0.3183098861837907\n#define RECIPROCAL_PI2 0.15915494309189535\n#define EPSILON 1e-6\n#ifndef saturate\n#define saturate( a ) clamp( a, 0.0, 1.0 )\n#endif\n#define whiteComplement( a ) ( 1.0 - saturate( a ) )\nfloat pow2( const in float x ) { return x*x; }\nvec3 pow2( const in vec3 x ) { return x*x; }\nfloat pow3( const in float x ) { return x*x*x; }\nfloat pow4( const in float x ) { float x2 = x*x; return x2*x2; }\nfloat max3( const in vec3 v ) { return max( max( v.x, v.y ), v.z ); }\nfloat average( const in vec3 v ) { return dot( v, vec3( 0.3333333 ) ); }\nhighp float rand( const in vec2 uv ) {\n const highp float a = 12.9898, b = 78.233, c = 43758.5453;\n highp float dt = dot( uv.xy, vec2( a,b ) ), sn = mod( dt, PI );\n return fract( sin( sn ) * c );\n}\n#ifdef HIGH_PRECISION\n float precisionSafeLength( vec3 v ) { return length( v ); }\n#else\n float precisionSafeLength( vec3 v ) {\n float maxComponent = max3( abs( v ) );\n return length( v / maxComponent ) * maxComponent;\n }\n#endif\nstruct IncidentLight {\n vec3 color;\n vec3 direction;\n bool visible;\n};\nstruct ReflectedLight {\n vec3 directDiffuse;\n vec3 directSpecular;\n vec3 indirectDiffuse;\n vec3 indirectSpecular;\n};\nstruct GeometricContext {\n vec3 position;\n vec3 normal;\n vec3 viewDir;\n#ifdef USE_CLEARCOAT\n vec3 clearcoatNormal;\n#endif\n};\nvec3 transformDirection( in vec3 dir, in mat4 matrix ) {\n return normalize( ( matrix * vec4( dir, 0.0 ) ).xyz );\n}\nvec3 inverseTransformDirection( in vec3 dir, in mat4 matrix ) {\n return normalize( ( vec4( dir, 0.0 ) * matrix ).xyz );\n}\nmat3 transposeMat3( const in mat3 m ) {\n mat3 tmp;\n tmp[ 0 ] = vec3( m[ 0 ].x, m[ 1 ].x, m[ 2 ].x );\n tmp[ 1 ] = vec3( m[ 0 ].y, m[ 1 ].y, m[ 2 ].y );\n tmp[ 2 ] = vec3( m[ 0 ].z, m[ 1 ].z, m[ 2 ].z );\n return tmp;\n}\nfloat luminance( const in vec3 rgb ) {\n const vec3 weights = vec3( 0.2126729, 0.7151522, 0.0721750 );\n return dot( weights, rgb );\n}\nbool isPerspectiveMatrix( mat4 m ) {\n return m[ 2 ][ 3 ] == - 1.0;\n}\nvec2 equirectUv( in vec3 dir ) {\n float u = atan( dir.z, dir.x ) * RECIPROCAL_PI2 + 0.5;\n float v = asin( clamp( dir.y, - 1.0, 1.0 ) ) * RECIPROCAL_PI + 0.5;\n return vec2( u, v );\n}"; -var cube_uv_reflection_fragment = "#ifdef ENVMAP_TYPE_CUBE_UV\n #define cubeUV_minMipLevel 4.0\n #define cubeUV_minTileSize 16.0\n float getFace( vec3 direction ) {\n vec3 absDirection = abs( direction );\n float face = - 1.0;\n if ( absDirection.x > absDirection.z ) {\n if ( absDirection.x > absDirection.y )\n face = direction.x > 0.0 ? 0.0 : 3.0;\n else\n face = direction.y > 0.0 ? 1.0 : 4.0;\n } else {\n if ( absDirection.z > absDirection.y )\n face = direction.z > 0.0 ? 2.0 : 5.0;\n else\n face = direction.y > 0.0 ? 1.0 : 4.0;\n }\n return face;\n }\n vec2 getUV( vec3 direction, float face ) {\n vec2 uv;\n if ( face == 0.0 ) {\n uv = vec2( direction.z, direction.y ) / abs( direction.x );\n } else if ( face == 1.0 ) {\n uv = vec2( - direction.x, - direction.z ) / abs( direction.y );\n } else if ( face == 2.0 ) {\n uv = vec2( - direction.x, direction.y ) / abs( direction.z );\n } else if ( face == 3.0 ) {\n uv = vec2( - direction.z, direction.y ) / abs( direction.x );\n } else if ( face == 4.0 ) {\n uv = vec2( - direction.x, direction.z ) / abs( direction.y );\n } else {\n uv = vec2( direction.x, direction.y ) / abs( direction.z );\n }\n return 0.5 * ( uv + 1.0 );\n }\n vec3 bilinearCubeUV( sampler2D envMap, vec3 direction, float mipInt ) {\n float face = getFace( direction );\n float filterInt = max( cubeUV_minMipLevel - mipInt, 0.0 );\n mipInt = max( mipInt, cubeUV_minMipLevel );\n float faceSize = exp2( mipInt );\n vec2 uv = getUV( direction, face ) * ( faceSize - 2.0 ) + 1.0;\n if ( face > 2.0 ) {\n uv.y += faceSize;\n face -= 3.0;\n }\n uv.x += face * faceSize;\n uv.x += filterInt * 3.0 * cubeUV_minTileSize;\n uv.y += 4.0 * ( exp2( CUBEUV_MAX_MIP ) - faceSize );\n uv.x *= CUBEUV_TEXEL_WIDTH;\n uv.y *= CUBEUV_TEXEL_HEIGHT;\n #ifdef texture2DGradEXT\n return texture2DGradEXT( envMap, uv, vec2( 0.0 ), vec2( 0.0 ) ).rgb;\n #else\n return texture2D( envMap, uv ).rgb;\n #endif\n }\n #define r0 1.0\n #define v0 0.339\n #define m0 - 2.0\n #define r1 0.8\n #define v1 0.276\n #define m1 - 1.0\n #define r4 0.4\n #define v4 0.046\n #define m4 2.0\n #define r5 0.305\n #define v5 0.016\n #define m5 3.0\n #define r6 0.21\n #define v6 0.0038\n #define m6 4.0\n float roughnessToMip( float roughness ) {\n float mip = 0.0;\n if ( roughness >= r1 ) {\n mip = ( r0 - roughness ) * ( m1 - m0 ) / ( r0 - r1 ) + m0;\n } else if ( roughness >= r4 ) {\n mip = ( r1 - roughness ) * ( m4 - m1 ) / ( r1 - r4 ) + m1;\n } else if ( roughness >= r5 ) {\n mip = ( r4 - roughness ) * ( m5 - m4 ) / ( r4 - r5 ) + m4;\n } else if ( roughness >= r6 ) {\n mip = ( r5 - roughness ) * ( m6 - m5 ) / ( r5 - r6 ) + m5;\n } else {\n mip = - 2.0 * log2( 1.16 * roughness ); }\n return mip;\n }\n vec4 textureCubeUV( sampler2D envMap, vec3 sampleDir, float roughness ) {\n float mip = clamp( roughnessToMip( roughness ), m0, CUBEUV_MAX_MIP );\n float mipF = fract( mip );\n float mipInt = floor( mip );\n vec3 color0 = bilinearCubeUV( envMap, sampleDir, mipInt );\n if ( mipF == 0.0 ) {\n return vec4( color0, 1.0 );\n } else {\n vec3 color1 = bilinearCubeUV( envMap, sampleDir, mipInt + 1.0 );\n return vec4( mix( color0, color1, mipF ), 1.0 );\n }\n }\n#endif"; +var cube_uv_reflection_fragment = "#ifdef ENVMAP_TYPE_CUBE_UV\n #define cubeUV_minMipLevel 4.0\n #define cubeUV_minTileSize 16.0\n float getFace( vec3 direction ) {\n vec3 absDirection = abs( direction );\n float face = - 1.0;\n if ( absDirection.x > absDirection.z ) {\n if ( absDirection.x > absDirection.y )\n face = direction.x > 0.0 ? 0.0 : 3.0;\n else\n face = direction.y > 0.0 ? 1.0 : 4.0;\n } else {\n if ( absDirection.z > absDirection.y )\n face = direction.z > 0.0 ? 2.0 : 5.0;\n else\n face = direction.y > 0.0 ? 1.0 : 4.0;\n }\n return face;\n }\n vec2 getUV( vec3 direction, float face ) {\n vec2 uv;\n if ( face == 0.0 ) {\n uv = vec2( direction.z, direction.y ) / abs( direction.x );\n } else if ( face == 1.0 ) {\n uv = vec2( - direction.x, - direction.z ) / abs( direction.y );\n } else if ( face == 2.0 ) {\n uv = vec2( - direction.x, direction.y ) / abs( direction.z );\n } else if ( face == 3.0 ) {\n uv = vec2( - direction.z, direction.y ) / abs( direction.x );\n } else if ( face == 4.0 ) {\n uv = vec2( - direction.x, direction.z ) / abs( direction.y );\n } else {\n uv = vec2( direction.x, direction.y ) / abs( direction.z );\n }\n return 0.5 * ( uv + 1.0 );\n }\n vec3 bilinearCubeUV( sampler2D envMap, vec3 direction, float mipInt ) {\n float face = getFace( direction );\n float filterInt = max( cubeUV_minMipLevel - mipInt, 0.0 );\n mipInt = max( mipInt, cubeUV_minMipLevel );\n float faceSize = exp2( mipInt );\n vec2 uv = getUV( direction, face ) * ( faceSize - 2.0 ) + 1.0;\n if ( face > 2.0 ) {\n uv.y += faceSize;\n face -= 3.0;\n }\n uv.x += face * faceSize;\n uv.x += filterInt * 3.0 * cubeUV_minTileSize;\n uv.y += 4.0 * ( exp2( CUBEUV_MAX_MIP ) - faceSize );\n uv.x *= CUBEUV_TEXEL_WIDTH;\n uv.y *= CUBEUV_TEXEL_HEIGHT;\n #ifdef texture2DGradEXT\n return texture2DGradEXT( envMap, uv, vec2( 0.0 ), vec2( 0.0 ) ).rgb;\n #else\n return texture2D( envMap, uv ).rgb;\n #endif\n }\n #define cubeUV_r0 1.0\n #define cubeUV_v0 0.339\n #define cubeUV_m0 - 2.0\n #define cubeUV_r1 0.8\n #define cubeUV_v1 0.276\n #define cubeUV_m1 - 1.0\n #define cubeUV_r4 0.4\n #define cubeUV_v4 0.046\n #define cubeUV_m4 2.0\n #define cubeUV_r5 0.305\n #define cubeUV_v5 0.016\n #define cubeUV_m5 3.0\n #define cubeUV_r6 0.21\n #define cubeUV_v6 0.0038\n #define cubeUV_m6 4.0\n float roughnessToMip( float roughness ) {\n float mip = 0.0;\n if ( roughness >= cubeUV_r1 ) {\n mip = ( cubeUV_r0 - roughness ) * ( cubeUV_m1 - cubeUV_m0 ) / ( cubeUV_r0 - cubeUV_r1 ) + cubeUV_m0;\n } else if ( roughness >= cubeUV_r4 ) {\n mip = ( cubeUV_r1 - roughness ) * ( cubeUV_m4 - cubeUV_m1 ) / ( cubeUV_r1 - cubeUV_r4 ) + cubeUV_m1;\n } else if ( roughness >= cubeUV_r5 ) {\n mip = ( cubeUV_r4 - roughness ) * ( cubeUV_m5 - cubeUV_m4 ) / ( cubeUV_r4 - cubeUV_r5 ) + cubeUV_m4;\n } else if ( roughness >= cubeUV_r6 ) {\n mip = ( cubeUV_r5 - roughness ) * ( cubeUV_m6 - cubeUV_m5 ) / ( cubeUV_r5 - cubeUV_r6 ) + cubeUV_m5;\n } else {\n mip = - 2.0 * log2( 1.16 * roughness ); }\n return mip;\n }\n vec4 textureCubeUV( sampler2D envMap, vec3 sampleDir, float roughness ) {\n float mip = clamp( roughnessToMip( roughness ), cubeUV_m0, CUBEUV_MAX_MIP );\n float mipF = fract( mip );\n float mipInt = floor( mip );\n vec3 color0 = bilinearCubeUV( envMap, sampleDir, mipInt );\n if ( mipF == 0.0 ) {\n return vec4( color0, 1.0 );\n } else {\n vec3 color1 = bilinearCubeUV( envMap, sampleDir, mipInt + 1.0 );\n return vec4( mix( color0, color1, mipF ), 1.0 );\n }\n }\n#endif"; var defaultnormal_vertex = "vec3 transformedNormal = objectNormal;\n#ifdef USE_INSTANCING\n mat3 m = mat3( instanceMatrix );\n transformedNormal /= vec3( dot( m[ 0 ], m[ 0 ] ), dot( m[ 1 ], m[ 1 ] ), dot( m[ 2 ], m[ 2 ] ) );\n transformedNormal = m * transformedNormal;\n#endif\ntransformedNormal = normalMatrix * transformedNormal;\n#ifdef FLIP_SIDED\n transformedNormal = - transformedNormal;\n#endif\n#ifdef USE_TANGENT\n vec3 transformedTangent = ( modelViewMatrix * vec4( objectTangent, 0.0 ) ).xyz;\n #ifdef FLIP_SIDED\n transformedTangent = - transformedTangent;\n #endif\n#endif"; var displacementmap_pars_vertex = "#ifdef USE_DISPLACEMENTMAP\n uniform sampler2D displacementMap;\n uniform float displacementScale;\n uniform float displacementBias;\n#endif"; var displacementmap_vertex = "#ifdef USE_DISPLACEMENTMAP\n transformed += normalize( objectNormal ) * ( texture2D( displacementMap, vUv ).x * displacementScale + displacementBias );\n#endif"; @@ -10461,28 +10458,29 @@ var emissivemap_fragment = "#ifdef USE_EMISSIVEMAP\n vec4 emissiveColor = textur var emissivemap_pars_fragment = "#ifdef USE_EMISSIVEMAP\n uniform sampler2D emissiveMap;\n#endif"; var encodings_fragment = "gl_FragColor = linearToOutputTexel( gl_FragColor );"; var encodings_pars_fragment = "vec4 LinearToLinear( in vec4 value ) {\n return value;\n}\nvec4 LinearTosRGB( in vec4 value ) {\n return vec4( mix( pow( value.rgb, vec3( 0.41666 ) ) * 1.055 - vec3( 0.055 ), value.rgb * 12.92, vec3( lessThanEqual( value.rgb, vec3( 0.0031308 ) ) ) ), value.a );\n}"; -var envmap_fragment = "#ifdef USE_ENVMAP\n #ifdef ENV_WORLDPOS\n vec3 cameraToFrag;\n if ( isOrthographic ) {\n cameraToFrag = normalize( vec3( - viewMatrix[ 0 ][ 2 ], - viewMatrix[ 1 ][ 2 ], - viewMatrix[ 2 ][ 2 ] ) );\n } else {\n cameraToFrag = normalize( vWorldPosition - cameraPosition );\n }\n vec3 worldNormal = inverseTransformDirection( normal, viewMatrix );\n #ifdef ENVMAP_MODE_REFLECTION\n vec3 reflectVec = reflect( cameraToFrag, worldNormal );\n #else\n vec3 reflectVec = refract( cameraToFrag, worldNormal, refractionRatio );\n #endif\n #else\n vec3 reflectVec = vReflect;\n #endif\n #ifdef ENVMAP_TYPE_CUBE\n vec4 envColor = textureCube( envMap, vec3( flipEnvMap * reflectVec.x, reflectVec.yz ) );\n #elif defined( ENVMAP_TYPE_CUBE_UV )\n vec4 envColor = textureCubeUV( envMap, reflectVec, 0.0 );\n #else\n vec4 envColor = vec4( 0.0 );\n #endif\n #ifdef ENVMAP_BLENDING_MULTIPLY\n outgoingLight = mix( outgoingLight, outgoingLight * envColor.xyz, specularStrength * reflectivity );\n #elif defined( ENVMAP_BLENDING_MIX )\n outgoingLight = mix( outgoingLight, envColor.xyz, specularStrength * reflectivity );\n #elif defined( ENVMAP_BLENDING_ADD )\n outgoingLight += envColor.xyz * specularStrength * reflectivity;\n #endif\n#endif"; +var envmap_fragment = "#ifdef USE_ENVMAP\n #ifdef ENV_WORLDPOS\n vec3 cameraToFrag;\n if ( isOrthographic ) {\n cameraToFrag = normalize( vec3( - viewMatrix[ 0 ][ 2 ], - viewMatrix[ 1 ][ 2 ], - viewMatrix[ 2 ][ 2 ] ) );\n } else {\n cameraToFrag = normalize( vWorldPosition - cameraPosition );\n }\n vec3 worldNormal = inverseTransformDirection( normal, viewMatrix );\n #ifdef ENVMAP_MODE_REFLECTION\n vec3 reflectVec = reflect( cameraToFrag, worldNormal );\n #else\n vec3 reflectVec = refract( cameraToFrag, worldNormal, refractionRatio );\n #endif\n #else\n vec3 reflectVec = vReflect;\n #endif\n #ifdef ENVMAP_TYPE_CUBE\n vec4 envColor = textureCube( envMap, vec3( flipEnvMap * reflectVec.x, reflectVec.yz ) );\n #else\n vec4 envColor = vec4( 0.0 );\n #endif\n #ifdef ENVMAP_BLENDING_MULTIPLY\n outgoingLight = mix( outgoingLight, outgoingLight * envColor.xyz, specularStrength * reflectivity );\n #elif defined( ENVMAP_BLENDING_MIX )\n outgoingLight = mix( outgoingLight, envColor.xyz, specularStrength * reflectivity );\n #elif defined( ENVMAP_BLENDING_ADD )\n outgoingLight += envColor.xyz * specularStrength * reflectivity;\n #endif\n#endif"; var envmap_common_pars_fragment = "#ifdef USE_ENVMAP\n uniform float envMapIntensity;\n uniform float flipEnvMap;\n #ifdef ENVMAP_TYPE_CUBE\n uniform samplerCube envMap;\n #else\n uniform sampler2D envMap;\n #endif\n \n#endif"; -var envmap_pars_fragment = "#ifdef USE_ENVMAP\n uniform float reflectivity;\n #if defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) || defined( PHONG )\n #define ENV_WORLDPOS\n #endif\n #ifdef ENV_WORLDPOS\n varying vec3 vWorldPosition;\n uniform float refractionRatio;\n #else\n varying vec3 vReflect;\n #endif\n#endif"; -var envmap_pars_vertex = "#ifdef USE_ENVMAP\n #if defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) ||defined( PHONG )\n #define ENV_WORLDPOS\n #endif\n #ifdef ENV_WORLDPOS\n \n varying vec3 vWorldPosition;\n #else\n varying vec3 vReflect;\n uniform float refractionRatio;\n #endif\n#endif"; +var envmap_pars_fragment = "#ifdef USE_ENVMAP\n uniform float reflectivity;\n #if defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) || defined( PHONG ) || defined( LAMBERT )\n #define ENV_WORLDPOS\n #endif\n #ifdef ENV_WORLDPOS\n varying vec3 vWorldPosition;\n uniform float refractionRatio;\n #else\n varying vec3 vReflect;\n #endif\n#endif"; +var envmap_pars_vertex = "#ifdef USE_ENVMAP\n #if defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) || defined( PHONG ) || defined( LAMBERT )\n #define ENV_WORLDPOS\n #endif\n #ifdef ENV_WORLDPOS\n \n varying vec3 vWorldPosition;\n #else\n varying vec3 vReflect;\n uniform float refractionRatio;\n #endif\n#endif"; var envmap_vertex = "#ifdef USE_ENVMAP\n #ifdef ENV_WORLDPOS\n vWorldPosition = worldPosition.xyz;\n #else\n vec3 cameraToVertex;\n if ( isOrthographic ) {\n cameraToVertex = normalize( vec3( - viewMatrix[ 0 ][ 2 ], - viewMatrix[ 1 ][ 2 ], - viewMatrix[ 2 ][ 2 ] ) );\n } else {\n cameraToVertex = normalize( worldPosition.xyz - cameraPosition );\n }\n vec3 worldNormal = inverseTransformDirection( transformedNormal, viewMatrix );\n #ifdef ENVMAP_MODE_REFLECTION\n vReflect = reflect( cameraToVertex, worldNormal );\n #else\n vReflect = refract( cameraToVertex, worldNormal, refractionRatio );\n #endif\n #endif\n#endif"; var fog_vertex = "#ifdef USE_FOG\n vFogDepth = - mvPosition.z;\n#endif"; var fog_pars_vertex = "#ifdef USE_FOG\n varying float vFogDepth;\n#endif"; var fog_fragment = "#ifdef USE_FOG\n #ifdef FOG_EXP2\n float fogFactor = 1.0 - exp( - fogDensity * fogDensity * vFogDepth * vFogDepth );\n #else\n float fogFactor = smoothstep( fogNear, fogFar, vFogDepth );\n #endif\n gl_FragColor.rgb = mix( gl_FragColor.rgb, fogColor, fogFactor );\n#endif"; var fog_pars_fragment = "#ifdef USE_FOG\n uniform vec3 fogColor;\n varying float vFogDepth;\n #ifdef FOG_EXP2\n uniform float fogDensity;\n #else\n uniform float fogNear;\n uniform float fogFar;\n #endif\n#endif"; -var gradientmap_pars_fragment = "#ifdef USE_GRADIENTMAP\n uniform sampler2D gradientMap;\n#endif\nvec3 getGradientIrradiance( vec3 normal, vec3 lightDirection ) {\n float dotNL = dot( normal, lightDirection );\n vec2 coord = vec2( dotNL * 0.5 + 0.5, 0.0 );\n #ifdef USE_GRADIENTMAP\n return vec3( texture2D( gradientMap, coord ).r );\n #else\n return ( coord.x < 0.7 ) ? vec3( 0.7 ) : vec3( 1.0 );\n #endif\n}"; +var gradientmap_pars_fragment = "#ifdef USE_GRADIENTMAP\n uniform sampler2D gradientMap;\n#endif\nvec3 getGradientIrradiance( vec3 normal, vec3 lightDirection ) {\n float dotNL = dot( normal, lightDirection );\n vec2 coord = vec2( dotNL * 0.5 + 0.5, 0.0 );\n #ifdef USE_GRADIENTMAP\n return vec3( texture2D( gradientMap, coord ).r );\n #else\n vec2 fw = fwidth( coord ) * 0.5;\n return mix( vec3( 0.7 ), vec3( 1.0 ), smoothstep( 0.7 - fw.x, 0.7 + fw.x, coord.x ) );\n #endif\n}"; var lightmap_fragment = "#ifdef USE_LIGHTMAP\n vec4 lightMapTexel = texture2D( lightMap, vUv2 );\n vec3 lightMapIrradiance = lightMapTexel.rgb * lightMapIntensity;\n reflectedLight.indirectDiffuse += lightMapIrradiance;\n#endif"; var lightmap_pars_fragment = "#ifdef USE_LIGHTMAP\n uniform sampler2D lightMap;\n uniform float lightMapIntensity;\n#endif"; -var lights_lambert_vertex = "vec3 diffuse = vec3( 1.0 );\nGeometricContext geometry;\ngeometry.position = mvPosition.xyz;\ngeometry.normal = normalize( transformedNormal );\ngeometry.viewDir = ( isOrthographic ) ? vec3( 0, 0, 1 ) : normalize( -mvPosition.xyz );\nGeometricContext backGeometry;\nbackGeometry.position = geometry.position;\nbackGeometry.normal = -geometry.normal;\nbackGeometry.viewDir = geometry.viewDir;\nvLightFront = vec3( 0.0 );\nvIndirectFront = vec3( 0.0 );\n#ifdef DOUBLE_SIDED\n vLightBack = vec3( 0.0 );\n vIndirectBack = vec3( 0.0 );\n#endif\nIncidentLight directLight;\nfloat dotNL;\nvec3 directLightColor_Diffuse;\nvIndirectFront += getAmbientLightIrradiance( ambientLightColor );\nvIndirectFront += getLightProbeIrradiance( lightProbe, geometry.normal );\n#ifdef DOUBLE_SIDED\n vIndirectBack += getAmbientLightIrradiance( ambientLightColor );\n vIndirectBack += getLightProbeIrradiance( lightProbe, backGeometry.normal );\n#endif\n#if NUM_POINT_LIGHTS > 0\n #pragma unroll_loop_start\n for ( int i = 0; i < NUM_POINT_LIGHTS; i ++ ) {\n getPointLightInfo( pointLights[ i ], geometry, directLight );\n dotNL = dot( geometry.normal, directLight.direction );\n directLightColor_Diffuse = directLight.color;\n vLightFront += saturate( dotNL ) * directLightColor_Diffuse;\n #ifdef DOUBLE_SIDED\n vLightBack += saturate( - dotNL ) * directLightColor_Diffuse;\n #endif\n }\n #pragma unroll_loop_end\n#endif\n#if NUM_SPOT_LIGHTS > 0\n #pragma unroll_loop_start\n for ( int i = 0; i < NUM_SPOT_LIGHTS; i ++ ) {\n getSpotLightInfo( spotLights[ i ], geometry, directLight );\n dotNL = dot( geometry.normal, directLight.direction );\n directLightColor_Diffuse = directLight.color;\n vLightFront += saturate( dotNL ) * directLightColor_Diffuse;\n #ifdef DOUBLE_SIDED\n vLightBack += saturate( - dotNL ) * directLightColor_Diffuse;\n #endif\n }\n #pragma unroll_loop_end\n#endif\n#if NUM_DIR_LIGHTS > 0\n #pragma unroll_loop_start\n for ( int i = 0; i < NUM_DIR_LIGHTS; i ++ ) {\n getDirectionalLightInfo( directionalLights[ i ], geometry, directLight );\n dotNL = dot( geometry.normal, directLight.direction );\n directLightColor_Diffuse = directLight.color;\n vLightFront += saturate( dotNL ) * directLightColor_Diffuse;\n #ifdef DOUBLE_SIDED\n vLightBack += saturate( - dotNL ) * directLightColor_Diffuse;\n #endif\n }\n #pragma unroll_loop_end\n#endif\n#if NUM_HEMI_LIGHTS > 0\n #pragma unroll_loop_start\n for ( int i = 0; i < NUM_HEMI_LIGHTS; i ++ ) {\n vIndirectFront += getHemisphereLightIrradiance( hemisphereLights[ i ], geometry.normal );\n #ifdef DOUBLE_SIDED\n vIndirectBack += getHemisphereLightIrradiance( hemisphereLights[ i ], backGeometry.normal );\n #endif\n }\n #pragma unroll_loop_end\n#endif"; +var lights_lambert_fragment = "LambertMaterial material;\nmaterial.diffuseColor = diffuseColor.rgb;\nmaterial.specularStrength = specularStrength;"; +var lights_lambert_pars_fragment = "varying vec3 vViewPosition;\nstruct LambertMaterial {\n vec3 diffuseColor;\n float specularStrength;\n};\nvoid RE_Direct_Lambert( const in IncidentLight directLight, const in GeometricContext geometry, const in LambertMaterial material, inout ReflectedLight reflectedLight ) {\n float dotNL = saturate( dot( geometry.normal, directLight.direction ) );\n vec3 irradiance = dotNL * directLight.color;\n reflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n}\nvoid RE_IndirectDiffuse_Lambert( const in vec3 irradiance, const in GeometricContext geometry, const in LambertMaterial material, inout ReflectedLight reflectedLight ) {\n reflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n}\n#define RE_Direct RE_Direct_Lambert\n#define RE_IndirectDiffuse RE_IndirectDiffuse_Lambert\n#define Material_LightProbeLOD( material ) (0)"; var lights_pars_begin = "uniform bool receiveShadow;\nuniform vec3 ambientLightColor;\nuniform vec3 lightProbe[ 9 ];\nvec3 shGetIrradianceAt( in vec3 normal, in vec3 shCoefficients[ 9 ] ) {\n float x = normal.x, y = normal.y, z = normal.z;\n vec3 result = shCoefficients[ 0 ] * 0.886227;\n result += shCoefficients[ 1 ] * 2.0 * 0.511664 * y;\n result += shCoefficients[ 2 ] * 2.0 * 0.511664 * z;\n result += shCoefficients[ 3 ] * 2.0 * 0.511664 * x;\n result += shCoefficients[ 4 ] * 2.0 * 0.429043 * x * y;\n result += shCoefficients[ 5 ] * 2.0 * 0.429043 * y * z;\n result += shCoefficients[ 6 ] * ( 0.743125 * z * z - 0.247708 );\n result += shCoefficients[ 7 ] * 2.0 * 0.429043 * x * z;\n result += shCoefficients[ 8 ] * 0.429043 * ( x * x - y * y );\n return result;\n}\nvec3 getLightProbeIrradiance( const in vec3 lightProbe[ 9 ], const in vec3 normal ) {\n vec3 worldNormal = inverseTransformDirection( normal, viewMatrix );\n vec3 irradiance = shGetIrradianceAt( worldNormal, lightProbe );\n return irradiance;\n}\nvec3 getAmbientLightIrradiance( const in vec3 ambientLightColor ) {\n vec3 irradiance = ambientLightColor;\n return irradiance;\n}\nfloat getDistanceAttenuation( const in float lightDistance, const in float cutoffDistance, const in float decayExponent ) {\n #if defined ( PHYSICALLY_CORRECT_LIGHTS )\n float distanceFalloff = 1.0 / max( pow( lightDistance, decayExponent ), 0.01 );\n if ( cutoffDistance > 0.0 ) {\n distanceFalloff *= pow2( saturate( 1.0 - pow4( lightDistance / cutoffDistance ) ) );\n }\n return distanceFalloff;\n #else\n if ( cutoffDistance > 0.0 && decayExponent > 0.0 ) {\n return pow( saturate( - lightDistance / cutoffDistance + 1.0 ), decayExponent );\n }\n return 1.0;\n #endif\n}\nfloat getSpotAttenuation( const in float coneCosine, const in float penumbraCosine, const in float angleCosine ) {\n return smoothstep( coneCosine, penumbraCosine, angleCosine );\n}\n#if NUM_DIR_LIGHTS > 0\n struct DirectionalLight {\n vec3 direction;\n vec3 color;\n };\n uniform DirectionalLight directionalLights[ NUM_DIR_LIGHTS ];\n void getDirectionalLightInfo( const in DirectionalLight directionalLight, const in GeometricContext geometry, out IncidentLight light ) {\n light.color = directionalLight.color;\n light.direction = directionalLight.direction;\n light.visible = true;\n }\n#endif\n#if NUM_POINT_LIGHTS > 0\n struct PointLight {\n vec3 position;\n vec3 color;\n float distance;\n float decay;\n };\n uniform PointLight pointLights[ NUM_POINT_LIGHTS ];\n void getPointLightInfo( const in PointLight pointLight, const in GeometricContext geometry, out IncidentLight light ) {\n vec3 lVector = pointLight.position - geometry.position;\n light.direction = normalize( lVector );\n float lightDistance = length( lVector );\n light.color = pointLight.color;\n light.color *= getDistanceAttenuation( lightDistance, pointLight.distance, pointLight.decay );\n light.visible = ( light.color != vec3( 0.0 ) );\n }\n#endif\n#if NUM_SPOT_LIGHTS > 0\n struct SpotLight {\n vec3 position;\n vec3 direction;\n vec3 color;\n float distance;\n float decay;\n float coneCos;\n float penumbraCos;\n };\n uniform SpotLight spotLights[ NUM_SPOT_LIGHTS ];\n void getSpotLightInfo( const in SpotLight spotLight, const in GeometricContext geometry, out IncidentLight light ) {\n vec3 lVector = spotLight.position - geometry.position;\n light.direction = normalize( lVector );\n float angleCos = dot( light.direction, spotLight.direction );\n float spotAttenuation = getSpotAttenuation( spotLight.coneCos, spotLight.penumbraCos, angleCos );\n if ( spotAttenuation > 0.0 ) {\n float lightDistance = length( lVector );\n light.color = spotLight.color * spotAttenuation;\n light.color *= getDistanceAttenuation( lightDistance, spotLight.distance, spotLight.decay );\n light.visible = ( light.color != vec3( 0.0 ) );\n } else {\n light.color = vec3( 0.0 );\n light.visible = false;\n }\n }\n#endif\n#if NUM_RECT_AREA_LIGHTS > 0\n struct RectAreaLight {\n vec3 color;\n vec3 position;\n vec3 halfWidth;\n vec3 halfHeight;\n };\n uniform sampler2D ltc_1; uniform sampler2D ltc_2;\n uniform RectAreaLight rectAreaLights[ NUM_RECT_AREA_LIGHTS ];\n#endif\n#if NUM_HEMI_LIGHTS > 0\n struct HemisphereLight {\n vec3 direction;\n vec3 skyColor;\n vec3 groundColor;\n };\n uniform HemisphereLight hemisphereLights[ NUM_HEMI_LIGHTS ];\n vec3 getHemisphereLightIrradiance( const in HemisphereLight hemiLight, const in vec3 normal ) {\n float dotNL = dot( normal, hemiLight.direction );\n float hemiDiffuseWeight = 0.5 * dotNL + 0.5;\n vec3 irradiance = mix( hemiLight.groundColor, hemiLight.skyColor, hemiDiffuseWeight );\n return irradiance;\n }\n#endif"; var envmap_physical_pars_fragment = "#if defined( USE_ENVMAP )\n vec3 getIBLIrradiance( const in vec3 normal ) {\n #if defined( ENVMAP_TYPE_CUBE_UV )\n vec3 worldNormal = inverseTransformDirection( normal, viewMatrix );\n vec4 envMapColor = textureCubeUV( envMap, worldNormal, 1.0 );\n return PI * envMapColor.rgb * envMapIntensity;\n #else\n return vec3( 0.0 );\n #endif\n }\n vec3 getIBLRadiance( const in vec3 viewDir, const in vec3 normal, const in float roughness ) {\n #if defined( ENVMAP_TYPE_CUBE_UV )\n vec3 reflectVec = reflect( - viewDir, normal );\n reflectVec = normalize( mix( reflectVec, normal, roughness * roughness) );\n reflectVec = inverseTransformDirection( reflectVec, viewMatrix );\n vec4 envMapColor = textureCubeUV( envMap, reflectVec, roughness );\n return envMapColor.rgb * envMapIntensity;\n #else\n return vec3( 0.0 );\n #endif\n }\n#endif"; var lights_toon_fragment = "ToonMaterial material;\nmaterial.diffuseColor = diffuseColor.rgb;"; var lights_toon_pars_fragment = "varying vec3 vViewPosition;\nstruct ToonMaterial {\n vec3 diffuseColor;\n};\nvoid RE_Direct_Toon( const in IncidentLight directLight, const in GeometricContext geometry, const in ToonMaterial material, inout ReflectedLight reflectedLight ) {\n vec3 irradiance = getGradientIrradiance( geometry.normal, directLight.direction ) * directLight.color;\n reflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n}\nvoid RE_IndirectDiffuse_Toon( const in vec3 irradiance, const in GeometricContext geometry, const in ToonMaterial material, inout ReflectedLight reflectedLight ) {\n reflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n}\n#define RE_Direct RE_Direct_Toon\n#define RE_IndirectDiffuse RE_IndirectDiffuse_Toon\n#define Material_LightProbeLOD( material ) (0)"; var lights_phong_fragment = "BlinnPhongMaterial material;\nmaterial.diffuseColor = diffuseColor.rgb;\nmaterial.specularColor = specular;\nmaterial.specularShininess = shininess;\nmaterial.specularStrength = specularStrength;"; var lights_phong_pars_fragment = "varying vec3 vViewPosition;\nstruct BlinnPhongMaterial {\n vec3 diffuseColor;\n vec3 specularColor;\n float specularShininess;\n float specularStrength;\n};\nvoid RE_Direct_BlinnPhong( const in IncidentLight directLight, const in GeometricContext geometry, const in BlinnPhongMaterial material, inout ReflectedLight reflectedLight ) {\n float dotNL = saturate( dot( geometry.normal, directLight.direction ) );\n vec3 irradiance = dotNL * directLight.color;\n reflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n reflectedLight.directSpecular += irradiance * BRDF_BlinnPhong( directLight.direction, geometry.viewDir, geometry.normal, material.specularColor, material.specularShininess ) * material.specularStrength;\n}\nvoid RE_IndirectDiffuse_BlinnPhong( const in vec3 irradiance, const in GeometricContext geometry, const in BlinnPhongMaterial material, inout ReflectedLight reflectedLight ) {\n reflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n}\n#define RE_Direct RE_Direct_BlinnPhong\n#define RE_IndirectDiffuse RE_IndirectDiffuse_BlinnPhong\n#define Material_LightProbeLOD( material ) (0)"; -var lights_physical_fragment = "PhysicalMaterial material;\nmaterial.diffuseColor = diffuseColor.rgb * ( 1.0 - metalnessFactor );\nvec3 dxy = max( abs( dFdx( geometryNormal ) ), abs( dFdy( geometryNormal ) ) );\nfloat geometryRoughness = max( max( dxy.x, dxy.y ), dxy.z );\nmaterial.roughness = max( roughnessFactor, 0.0525 );material.roughness += geometryRoughness;\nmaterial.roughness = min( material.roughness, 1.0 );\n#ifdef IOR\n #ifdef SPECULAR\n float specularIntensityFactor = specularIntensity;\n vec3 specularColorFactor = specularColor;\n #ifdef USE_SPECULARINTENSITYMAP\n specularIntensityFactor *= texture2D( specularIntensityMap, vUv ).a;\n #endif\n #ifdef USE_SPECULARCOLORMAP\n specularColorFactor *= texture2D( specularColorMap, vUv ).rgb;\n #endif\n material.specularF90 = mix( specularIntensityFactor, 1.0, metalnessFactor );\n #else\n float specularIntensityFactor = 1.0;\n vec3 specularColorFactor = vec3( 1.0 );\n material.specularF90 = 1.0;\n #endif\n material.specularColor = mix( min( pow2( ( ior - 1.0 ) / ( ior + 1.0 ) ) * specularColorFactor, vec3( 1.0 ) ) * specularIntensityFactor, diffuseColor.rgb, metalnessFactor );\n#else\n material.specularColor = mix( vec3( 0.04 ), diffuseColor.rgb, metalnessFactor );\n material.specularF90 = 1.0;\n#endif\n#ifdef USE_CLEARCOAT\n material.clearcoat = clearcoat;\n material.clearcoatRoughness = clearcoatRoughness;\n material.clearcoatF0 = vec3( 0.04 );\n material.clearcoatF90 = 1.0;\n #ifdef USE_CLEARCOATMAP\n material.clearcoat *= texture2D( clearcoatMap, vUv ).x;\n #endif\n #ifdef USE_CLEARCOAT_ROUGHNESSMAP\n material.clearcoatRoughness *= texture2D( clearcoatRoughnessMap, vUv ).y;\n #endif\n material.clearcoat = saturate( material.clearcoat ); material.clearcoatRoughness = max( material.clearcoatRoughness, 0.0525 );\n material.clearcoatRoughness += geometryRoughness;\n material.clearcoatRoughness = min( material.clearcoatRoughness, 1.0 );\n#endif\n#ifdef USE_IRIDESCENCE\n material.iridescence = iridescence;\n material.iridescenceIOR = iridescenceIOR;\n #ifdef USE_IRIDESCENCEMAP\n material.iridescence *= texture2D( iridescenceMap, vUv ).r;\n #endif\n #ifdef USE_IRIDESCENCE_THICKNESSMAP\n material.iridescenceThickness = (iridescenceThicknessMaximum - iridescenceThicknessMinimum) * texture2D( iridescenceThicknessMap, vUv ).g + iridescenceThicknessMinimum;\n #else\n material.iridescenceThickness = iridescenceThicknessMaximum;\n #endif\n#endif\n#ifdef USE_SHEEN\n material.sheenColor = sheenColor;\n #ifdef USE_SHEENCOLORMAP\n material.sheenColor *= texture2D( sheenColorMap, vUv ).rgb;\n #endif\n material.sheenRoughness = clamp( sheenRoughness, 0.07, 1.0 );\n #ifdef USE_SHEENROUGHNESSMAP\n material.sheenRoughness *= texture2D( sheenRoughnessMap, vUv ).a;\n #endif\n#endif"; -var lights_physical_pars_fragment = "struct PhysicalMaterial {\n vec3 diffuseColor;\n float roughness;\n vec3 specularColor;\n float specularF90;\n #ifdef USE_CLEARCOAT\n float clearcoat;\n float clearcoatRoughness;\n vec3 clearcoatF0;\n float clearcoatF90;\n #endif\n #ifdef USE_IRIDESCENCE\n float iridescence;\n float iridescenceIOR;\n float iridescenceThickness;\n vec3 iridescenceFresnel;\n vec3 iridescenceF0;\n #endif\n #ifdef USE_SHEEN\n vec3 sheenColor;\n float sheenRoughness;\n #endif\n};\nvec3 clearcoatSpecular = vec3( 0.0 );\nvec3 sheenSpecular = vec3( 0.0 );\nfloat IBLSheenBRDF( const in vec3 normal, const in vec3 viewDir, const in float roughness) {\n float dotNV = saturate( dot( normal, viewDir ) );\n float r2 = roughness * roughness;\n float a = roughness < 0.25 ? -339.2 * r2 + 161.4 * roughness - 25.9 : -8.48 * r2 + 14.3 * roughness - 9.95;\n float b = roughness < 0.25 ? 44.0 * r2 - 23.7 * roughness + 3.26 : 1.97 * r2 - 3.27 * roughness + 0.72;\n float DG = exp( a * dotNV + b ) + ( roughness < 0.25 ? 0.0 : 0.1 * ( roughness - 0.25 ) );\n return saturate( DG * RECIPROCAL_PI );\n}\nvec2 DFGApprox( const in vec3 normal, const in vec3 viewDir, const in float roughness ) {\n float dotNV = saturate( dot( normal, viewDir ) );\n const vec4 c0 = vec4( - 1, - 0.0275, - 0.572, 0.022 );\n const vec4 c1 = vec4( 1, 0.0425, 1.04, - 0.04 );\n vec4 r = roughness * c0 + c1;\n float a004 = min( r.x * r.x, exp2( - 9.28 * dotNV ) ) * r.x + r.y;\n vec2 fab = vec2( - 1.04, 1.04 ) * a004 + r.zw;\n return fab;\n}\nvec3 EnvironmentBRDF( const in vec3 normal, const in vec3 viewDir, const in vec3 specularColor, const in float specularF90, const in float roughness ) {\n vec2 fab = DFGApprox( normal, viewDir, roughness );\n return specularColor * fab.x + specularF90 * fab.y;\n}\n#ifdef USE_IRIDESCENCE\nvoid computeMultiscatteringIridescence( const in vec3 normal, const in vec3 viewDir, const in vec3 specularColor, const in float specularF90, const in float iridescence, const in vec3 iridescenceF0, const in float roughness, inout vec3 singleScatter, inout vec3 multiScatter ) {\n#else\nvoid computeMultiscattering( const in vec3 normal, const in vec3 viewDir, const in vec3 specularColor, const in float specularF90, const in float roughness, inout vec3 singleScatter, inout vec3 multiScatter ) {\n#endif\n vec2 fab = DFGApprox( normal, viewDir, roughness );\n #ifdef USE_IRIDESCENCE\n vec3 Fr = mix( specularColor, iridescenceF0, iridescence );\n #else\n vec3 Fr = specularColor;\n #endif\n vec3 FssEss = Fr * fab.x + specularF90 * fab.y;\n float Ess = fab.x + fab.y;\n float Ems = 1.0 - Ess;\n vec3 Favg = Fr + ( 1.0 - Fr ) * 0.047619; vec3 Fms = FssEss * Favg / ( 1.0 - Ems * Favg );\n singleScatter += FssEss;\n multiScatter += Fms * Ems;\n}\n#if NUM_RECT_AREA_LIGHTS > 0\n void RE_Direct_RectArea_Physical( const in RectAreaLight rectAreaLight, const in GeometricContext geometry, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) {\n vec3 normal = geometry.normal;\n vec3 viewDir = geometry.viewDir;\n vec3 position = geometry.position;\n vec3 lightPos = rectAreaLight.position;\n vec3 halfWidth = rectAreaLight.halfWidth;\n vec3 halfHeight = rectAreaLight.halfHeight;\n vec3 lightColor = rectAreaLight.color;\n float roughness = material.roughness;\n vec3 rectCoords[ 4 ];\n rectCoords[ 0 ] = lightPos + halfWidth - halfHeight; rectCoords[ 1 ] = lightPos - halfWidth - halfHeight;\n rectCoords[ 2 ] = lightPos - halfWidth + halfHeight;\n rectCoords[ 3 ] = lightPos + halfWidth + halfHeight;\n vec2 uv = LTC_Uv( normal, viewDir, roughness );\n vec4 t1 = texture2D( ltc_1, uv );\n vec4 t2 = texture2D( ltc_2, uv );\n mat3 mInv = mat3(\n vec3( t1.x, 0, t1.y ),\n vec3( 0, 1, 0 ),\n vec3( t1.z, 0, t1.w )\n );\n vec3 fresnel = ( material.specularColor * t2.x + ( vec3( 1.0 ) - material.specularColor ) * t2.y );\n reflectedLight.directSpecular += lightColor * fresnel * LTC_Evaluate( normal, viewDir, position, mInv, rectCoords );\n reflectedLight.directDiffuse += lightColor * material.diffuseColor * LTC_Evaluate( normal, viewDir, position, mat3( 1.0 ), rectCoords );\n }\n#endif\nvoid RE_Direct_Physical( const in IncidentLight directLight, const in GeometricContext geometry, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) {\n float dotNL = saturate( dot( geometry.normal, directLight.direction ) );\n vec3 irradiance = dotNL * directLight.color;\n #ifdef USE_CLEARCOAT\n float dotNLcc = saturate( dot( geometry.clearcoatNormal, directLight.direction ) );\n vec3 ccIrradiance = dotNLcc * directLight.color;\n clearcoatSpecular += ccIrradiance * BRDF_GGX( directLight.direction, geometry.viewDir, geometry.clearcoatNormal, material.clearcoatF0, material.clearcoatF90, material.clearcoatRoughness );\n #endif\n #ifdef USE_SHEEN\n sheenSpecular += irradiance * BRDF_Sheen( directLight.direction, geometry.viewDir, geometry.normal, material.sheenColor, material.sheenRoughness );\n #endif\n #ifdef USE_IRIDESCENCE\n reflectedLight.directSpecular += irradiance * BRDF_GGX_Iridescence( directLight.direction, geometry.viewDir, geometry.normal, material.specularColor, material.specularF90, material.iridescence, material.iridescenceFresnel, material.roughness );\n #else\n reflectedLight.directSpecular += irradiance * BRDF_GGX( directLight.direction, geometry.viewDir, geometry.normal, material.specularColor, material.specularF90, material.roughness );\n #endif\n reflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n}\nvoid RE_IndirectDiffuse_Physical( const in vec3 irradiance, const in GeometricContext geometry, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) {\n reflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n}\nvoid RE_IndirectSpecular_Physical( const in vec3 radiance, const in vec3 irradiance, const in vec3 clearcoatRadiance, const in GeometricContext geometry, const in PhysicalMaterial material, inout ReflectedLight reflectedLight) {\n #ifdef USE_CLEARCOAT\n clearcoatSpecular += clearcoatRadiance * EnvironmentBRDF( geometry.clearcoatNormal, geometry.viewDir, material.clearcoatF0, material.clearcoatF90, material.clearcoatRoughness );\n #endif\n #ifdef USE_SHEEN\n sheenSpecular += irradiance * material.sheenColor * IBLSheenBRDF( geometry.normal, geometry.viewDir, material.sheenRoughness );\n #endif\n vec3 singleScattering = vec3( 0.0 );\n vec3 multiScattering = vec3( 0.0 );\n vec3 cosineWeightedIrradiance = irradiance * RECIPROCAL_PI;\n #ifdef USE_IRIDESCENCE\n computeMultiscatteringIridescence( geometry.normal, geometry.viewDir, material.specularColor, material.specularF90, material.iridescence, material.iridescenceFresnel, material.roughness, singleScattering, multiScattering );\n #else\n computeMultiscattering( geometry.normal, geometry.viewDir, material.specularColor, material.specularF90, material.roughness, singleScattering, multiScattering );\n #endif\n vec3 totalScattering = singleScattering + multiScattering;\n vec3 diffuse = material.diffuseColor * ( 1.0 - max( max( totalScattering.r, totalScattering.g ), totalScattering.b ) );\n reflectedLight.indirectSpecular += radiance * singleScattering;\n reflectedLight.indirectSpecular += multiScattering * cosineWeightedIrradiance;\n reflectedLight.indirectDiffuse += diffuse * cosineWeightedIrradiance;\n}\n#define RE_Direct RE_Direct_Physical\n#define RE_Direct_RectArea RE_Direct_RectArea_Physical\n#define RE_IndirectDiffuse RE_IndirectDiffuse_Physical\n#define RE_IndirectSpecular RE_IndirectSpecular_Physical\nfloat computeSpecularOcclusion( const in float dotNV, const in float ambientOcclusion, const in float roughness ) {\n return saturate( pow( dotNV + ambientOcclusion, exp2( - 16.0 * roughness - 1.0 ) ) - 1.0 + ambientOcclusion );\n}"; -var lights_fragment_begin = "\nGeometricContext geometry;\ngeometry.position = - vViewPosition;\ngeometry.normal = normal;\ngeometry.viewDir = ( isOrthographic ) ? vec3( 0, 0, 1 ) : normalize( vViewPosition );\n#ifdef USE_CLEARCOAT\n geometry.clearcoatNormal = clearcoatNormal;\n#endif\n#ifdef USE_IRIDESCENCE\n float dotNVi = saturate( dot( normal, geometry.viewDir ) );\n if ( material.iridescenceThickness == 0.0 ) {\n material.iridescence = 0.0;\n } else {\n material.iridescence = saturate( material.iridescence );\n }\n if ( material.iridescence > 0.0 ) {\n material.iridescenceFresnel = evalIridescence( 1.0, material.iridescenceIOR, dotNVi, material.iridescenceThickness, material.specularColor );\n material.iridescenceF0 = Schlick_to_F0( material.iridescenceFresnel, 1.0, dotNVi );\n }\n#endif\nIncidentLight directLight;\n#if ( NUM_POINT_LIGHTS > 0 ) && defined( RE_Direct )\n PointLight pointLight;\n #if defined( USE_SHADOWMAP ) && NUM_POINT_LIGHT_SHADOWS > 0\n PointLightShadow pointLightShadow;\n #endif\n #pragma unroll_loop_start\n for ( int i = 0; i < NUM_POINT_LIGHTS; i ++ ) {\n pointLight = pointLights[ i ];\n getPointLightInfo( pointLight, geometry, directLight );\n #if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_POINT_LIGHT_SHADOWS )\n pointLightShadow = pointLightShadows[ i ];\n directLight.color *= all( bvec2( directLight.visible, receiveShadow ) ) ? getPointShadow( pointShadowMap[ i ], pointLightShadow.shadowMapSize, pointLightShadow.shadowBias, pointLightShadow.shadowRadius, vPointShadowCoord[ i ], pointLightShadow.shadowCameraNear, pointLightShadow.shadowCameraFar ) : 1.0;\n #endif\n RE_Direct( directLight, geometry, material, reflectedLight );\n }\n #pragma unroll_loop_end\n#endif\n#if ( NUM_SPOT_LIGHTS > 0 ) && defined( RE_Direct )\n SpotLight spotLight;\n #if defined( USE_SHADOWMAP ) && NUM_SPOT_LIGHT_SHADOWS > 0\n SpotLightShadow spotLightShadow;\n #endif\n #pragma unroll_loop_start\n for ( int i = 0; i < NUM_SPOT_LIGHTS; i ++ ) {\n spotLight = spotLights[ i ];\n getSpotLightInfo( spotLight, geometry, directLight );\n #if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS )\n spotLightShadow = spotLightShadows[ i ];\n directLight.color *= all( bvec2( directLight.visible, receiveShadow ) ) ? getShadow( spotShadowMap[ i ], spotLightShadow.shadowMapSize, spotLightShadow.shadowBias, spotLightShadow.shadowRadius, vSpotShadowCoord[ i ] ) : 1.0;\n #endif\n RE_Direct( directLight, geometry, material, reflectedLight );\n }\n #pragma unroll_loop_end\n#endif\n#if ( NUM_DIR_LIGHTS > 0 ) && defined( RE_Direct )\n DirectionalLight directionalLight;\n #if defined( USE_SHADOWMAP ) && NUM_DIR_LIGHT_SHADOWS > 0\n DirectionalLightShadow directionalLightShadow;\n #endif\n #pragma unroll_loop_start\n for ( int i = 0; i < NUM_DIR_LIGHTS; i ++ ) {\n directionalLight = directionalLights[ i ];\n getDirectionalLightInfo( directionalLight, geometry, directLight );\n #if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_DIR_LIGHT_SHADOWS )\n directionalLightShadow = directionalLightShadows[ i ];\n directLight.color *= all( bvec2( directLight.visible, receiveShadow ) ) ? getShadow( directionalShadowMap[ i ], directionalLightShadow.shadowMapSize, directionalLightShadow.shadowBias, directionalLightShadow.shadowRadius, vDirectionalShadowCoord[ i ] ) : 1.0;\n #endif\n RE_Direct( directLight, geometry, material, reflectedLight );\n }\n #pragma unroll_loop_end\n#endif\n#if ( NUM_RECT_AREA_LIGHTS > 0 ) && defined( RE_Direct_RectArea )\n RectAreaLight rectAreaLight;\n #pragma unroll_loop_start\n for ( int i = 0; i < NUM_RECT_AREA_LIGHTS; i ++ ) {\n rectAreaLight = rectAreaLights[ i ];\n RE_Direct_RectArea( rectAreaLight, geometry, material, reflectedLight );\n }\n #pragma unroll_loop_end\n#endif\n#if defined( RE_IndirectDiffuse )\n vec3 iblIrradiance = vec3( 0.0 );\n vec3 irradiance = getAmbientLightIrradiance( ambientLightColor );\n irradiance += getLightProbeIrradiance( lightProbe, geometry.normal );\n #if ( NUM_HEMI_LIGHTS > 0 )\n #pragma unroll_loop_start\n for ( int i = 0; i < NUM_HEMI_LIGHTS; i ++ ) {\n irradiance += getHemisphereLightIrradiance( hemisphereLights[ i ], geometry.normal );\n }\n #pragma unroll_loop_end\n #endif\n#endif\n#if defined( RE_IndirectSpecular )\n vec3 radiance = vec3( 0.0 );\n vec3 clearcoatRadiance = vec3( 0.0 );\n#endif"; +var lights_physical_fragment = "PhysicalMaterial material;\nmaterial.diffuseColor = diffuseColor.rgb * ( 1.0 - metalnessFactor );\nvec3 dxy = max( abs( dFdx( geometryNormal ) ), abs( dFdy( geometryNormal ) ) );\nfloat geometryRoughness = max( max( dxy.x, dxy.y ), dxy.z );\nmaterial.roughness = max( roughnessFactor, 0.0525 );material.roughness += geometryRoughness;\nmaterial.roughness = min( material.roughness, 1.0 );\n#ifdef IOR\n material.ior = ior;\n #ifdef SPECULAR\n float specularIntensityFactor = specularIntensity;\n vec3 specularColorFactor = specularColor;\n #ifdef USE_SPECULARINTENSITYMAP\n specularIntensityFactor *= texture2D( specularIntensityMap, vUv ).a;\n #endif\n #ifdef USE_SPECULARCOLORMAP\n specularColorFactor *= texture2D( specularColorMap, vUv ).rgb;\n #endif\n material.specularF90 = mix( specularIntensityFactor, 1.0, metalnessFactor );\n #else\n float specularIntensityFactor = 1.0;\n vec3 specularColorFactor = vec3( 1.0 );\n material.specularF90 = 1.0;\n #endif\n material.specularColor = mix( min( pow2( ( material.ior - 1.0 ) / ( material.ior + 1.0 ) ) * specularColorFactor, vec3( 1.0 ) ) * specularIntensityFactor, diffuseColor.rgb, metalnessFactor );\n#else\n material.specularColor = mix( vec3( 0.04 ), diffuseColor.rgb, metalnessFactor );\n material.specularF90 = 1.0;\n#endif\n#ifdef USE_CLEARCOAT\n material.clearcoat = clearcoat;\n material.clearcoatRoughness = clearcoatRoughness;\n material.clearcoatF0 = vec3( 0.04 );\n material.clearcoatF90 = 1.0;\n #ifdef USE_CLEARCOATMAP\n material.clearcoat *= texture2D( clearcoatMap, vUv ).x;\n #endif\n #ifdef USE_CLEARCOAT_ROUGHNESSMAP\n material.clearcoatRoughness *= texture2D( clearcoatRoughnessMap, vUv ).y;\n #endif\n material.clearcoat = saturate( material.clearcoat ); material.clearcoatRoughness = max( material.clearcoatRoughness, 0.0525 );\n material.clearcoatRoughness += geometryRoughness;\n material.clearcoatRoughness = min( material.clearcoatRoughness, 1.0 );\n#endif\n#ifdef USE_IRIDESCENCE\n material.iridescence = iridescence;\n material.iridescenceIOR = iridescenceIOR;\n #ifdef USE_IRIDESCENCEMAP\n material.iridescence *= texture2D( iridescenceMap, vUv ).r;\n #endif\n #ifdef USE_IRIDESCENCE_THICKNESSMAP\n material.iridescenceThickness = (iridescenceThicknessMaximum - iridescenceThicknessMinimum) * texture2D( iridescenceThicknessMap, vUv ).g + iridescenceThicknessMinimum;\n #else\n material.iridescenceThickness = iridescenceThicknessMaximum;\n #endif\n#endif\n#ifdef USE_SHEEN\n material.sheenColor = sheenColor;\n #ifdef USE_SHEENCOLORMAP\n material.sheenColor *= texture2D( sheenColorMap, vUv ).rgb;\n #endif\n material.sheenRoughness = clamp( sheenRoughness, 0.07, 1.0 );\n #ifdef USE_SHEENROUGHNESSMAP\n material.sheenRoughness *= texture2D( sheenRoughnessMap, vUv ).a;\n #endif\n#endif"; +var lights_physical_pars_fragment = "struct PhysicalMaterial {\n vec3 diffuseColor;\n float roughness;\n vec3 specularColor;\n float specularF90;\n #ifdef USE_CLEARCOAT\n float clearcoat;\n float clearcoatRoughness;\n vec3 clearcoatF0;\n float clearcoatF90;\n #endif\n #ifdef USE_IRIDESCENCE\n float iridescence;\n float iridescenceIOR;\n float iridescenceThickness;\n vec3 iridescenceFresnel;\n vec3 iridescenceF0;\n #endif\n #ifdef USE_SHEEN\n vec3 sheenColor;\n float sheenRoughness;\n #endif\n #ifdef IOR\n float ior;\n #endif\n #ifdef USE_TRANSMISSION\n float transmission;\n float transmissionAlpha;\n float thickness;\n float attenuationDistance;\n vec3 attenuationColor;\n #endif\n};\nvec3 clearcoatSpecular = vec3( 0.0 );\nvec3 sheenSpecular = vec3( 0.0 );\nfloat IBLSheenBRDF( const in vec3 normal, const in vec3 viewDir, const in float roughness ) {\n float dotNV = saturate( dot( normal, viewDir ) );\n float r2 = roughness * roughness;\n float a = roughness < 0.25 ? -339.2 * r2 + 161.4 * roughness - 25.9 : -8.48 * r2 + 14.3 * roughness - 9.95;\n float b = roughness < 0.25 ? 44.0 * r2 - 23.7 * roughness + 3.26 : 1.97 * r2 - 3.27 * roughness + 0.72;\n float DG = exp( a * dotNV + b ) + ( roughness < 0.25 ? 0.0 : 0.1 * ( roughness - 0.25 ) );\n return saturate( DG * RECIPROCAL_PI );\n}\nvec2 DFGApprox( const in vec3 normal, const in vec3 viewDir, const in float roughness ) {\n float dotNV = saturate( dot( normal, viewDir ) );\n const vec4 c0 = vec4( - 1, - 0.0275, - 0.572, 0.022 );\n const vec4 c1 = vec4( 1, 0.0425, 1.04, - 0.04 );\n vec4 r = roughness * c0 + c1;\n float a004 = min( r.x * r.x, exp2( - 9.28 * dotNV ) ) * r.x + r.y;\n vec2 fab = vec2( - 1.04, 1.04 ) * a004 + r.zw;\n return fab;\n}\nvec3 EnvironmentBRDF( const in vec3 normal, const in vec3 viewDir, const in vec3 specularColor, const in float specularF90, const in float roughness ) {\n vec2 fab = DFGApprox( normal, viewDir, roughness );\n return specularColor * fab.x + specularF90 * fab.y;\n}\n#ifdef USE_IRIDESCENCE\nvoid computeMultiscatteringIridescence( const in vec3 normal, const in vec3 viewDir, const in vec3 specularColor, const in float specularF90, const in float iridescence, const in vec3 iridescenceF0, const in float roughness, inout vec3 singleScatter, inout vec3 multiScatter ) {\n#else\nvoid computeMultiscattering( const in vec3 normal, const in vec3 viewDir, const in vec3 specularColor, const in float specularF90, const in float roughness, inout vec3 singleScatter, inout vec3 multiScatter ) {\n#endif\n vec2 fab = DFGApprox( normal, viewDir, roughness );\n #ifdef USE_IRIDESCENCE\n vec3 Fr = mix( specularColor, iridescenceF0, iridescence );\n #else\n vec3 Fr = specularColor;\n #endif\n vec3 FssEss = Fr * fab.x + specularF90 * fab.y;\n float Ess = fab.x + fab.y;\n float Ems = 1.0 - Ess;\n vec3 Favg = Fr + ( 1.0 - Fr ) * 0.047619; vec3 Fms = FssEss * Favg / ( 1.0 - Ems * Favg );\n singleScatter += FssEss;\n multiScatter += Fms * Ems;\n}\n#if NUM_RECT_AREA_LIGHTS > 0\n void RE_Direct_RectArea_Physical( const in RectAreaLight rectAreaLight, const in GeometricContext geometry, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) {\n vec3 normal = geometry.normal;\n vec3 viewDir = geometry.viewDir;\n vec3 position = geometry.position;\n vec3 lightPos = rectAreaLight.position;\n vec3 halfWidth = rectAreaLight.halfWidth;\n vec3 halfHeight = rectAreaLight.halfHeight;\n vec3 lightColor = rectAreaLight.color;\n float roughness = material.roughness;\n vec3 rectCoords[ 4 ];\n rectCoords[ 0 ] = lightPos + halfWidth - halfHeight; rectCoords[ 1 ] = lightPos - halfWidth - halfHeight;\n rectCoords[ 2 ] = lightPos - halfWidth + halfHeight;\n rectCoords[ 3 ] = lightPos + halfWidth + halfHeight;\n vec2 uv = LTC_Uv( normal, viewDir, roughness );\n vec4 t1 = texture2D( ltc_1, uv );\n vec4 t2 = texture2D( ltc_2, uv );\n mat3 mInv = mat3(\n vec3( t1.x, 0, t1.y ),\n vec3( 0, 1, 0 ),\n vec3( t1.z, 0, t1.w )\n );\n vec3 fresnel = ( material.specularColor * t2.x + ( vec3( 1.0 ) - material.specularColor ) * t2.y );\n reflectedLight.directSpecular += lightColor * fresnel * LTC_Evaluate( normal, viewDir, position, mInv, rectCoords );\n reflectedLight.directDiffuse += lightColor * material.diffuseColor * LTC_Evaluate( normal, viewDir, position, mat3( 1.0 ), rectCoords );\n }\n#endif\nvoid RE_Direct_Physical( const in IncidentLight directLight, const in GeometricContext geometry, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) {\n float dotNL = saturate( dot( geometry.normal, directLight.direction ) );\n vec3 irradiance = dotNL * directLight.color;\n #ifdef USE_CLEARCOAT\n float dotNLcc = saturate( dot( geometry.clearcoatNormal, directLight.direction ) );\n vec3 ccIrradiance = dotNLcc * directLight.color;\n clearcoatSpecular += ccIrradiance * BRDF_GGX( directLight.direction, geometry.viewDir, geometry.clearcoatNormal, material.clearcoatF0, material.clearcoatF90, material.clearcoatRoughness );\n #endif\n #ifdef USE_SHEEN\n sheenSpecular += irradiance * BRDF_Sheen( directLight.direction, geometry.viewDir, geometry.normal, material.sheenColor, material.sheenRoughness );\n #endif\n #ifdef USE_IRIDESCENCE\n reflectedLight.directSpecular += irradiance * BRDF_GGX_Iridescence( directLight.direction, geometry.viewDir, geometry.normal, material.specularColor, material.specularF90, material.iridescence, material.iridescenceFresnel, material.roughness );\n #else\n reflectedLight.directSpecular += irradiance * BRDF_GGX( directLight.direction, geometry.viewDir, geometry.normal, material.specularColor, material.specularF90, material.roughness );\n #endif\n reflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n}\nvoid RE_IndirectDiffuse_Physical( const in vec3 irradiance, const in GeometricContext geometry, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) {\n reflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n}\nvoid RE_IndirectSpecular_Physical( const in vec3 radiance, const in vec3 irradiance, const in vec3 clearcoatRadiance, const in GeometricContext geometry, const in PhysicalMaterial material, inout ReflectedLight reflectedLight) {\n #ifdef USE_CLEARCOAT\n clearcoatSpecular += clearcoatRadiance * EnvironmentBRDF( geometry.clearcoatNormal, geometry.viewDir, material.clearcoatF0, material.clearcoatF90, material.clearcoatRoughness );\n #endif\n #ifdef USE_SHEEN\n sheenSpecular += irradiance * material.sheenColor * IBLSheenBRDF( geometry.normal, geometry.viewDir, material.sheenRoughness );\n #endif\n vec3 singleScattering = vec3( 0.0 );\n vec3 multiScattering = vec3( 0.0 );\n vec3 cosineWeightedIrradiance = irradiance * RECIPROCAL_PI;\n #ifdef USE_IRIDESCENCE\n computeMultiscatteringIridescence( geometry.normal, geometry.viewDir, material.specularColor, material.specularF90, material.iridescence, material.iridescenceFresnel, material.roughness, singleScattering, multiScattering );\n #else\n computeMultiscattering( geometry.normal, geometry.viewDir, material.specularColor, material.specularF90, material.roughness, singleScattering, multiScattering );\n #endif\n vec3 totalScattering = singleScattering + multiScattering;\n vec3 diffuse = material.diffuseColor * ( 1.0 - max( max( totalScattering.r, totalScattering.g ), totalScattering.b ) );\n reflectedLight.indirectSpecular += radiance * singleScattering;\n reflectedLight.indirectSpecular += multiScattering * cosineWeightedIrradiance;\n reflectedLight.indirectDiffuse += diffuse * cosineWeightedIrradiance;\n}\n#define RE_Direct RE_Direct_Physical\n#define RE_Direct_RectArea RE_Direct_RectArea_Physical\n#define RE_IndirectDiffuse RE_IndirectDiffuse_Physical\n#define RE_IndirectSpecular RE_IndirectSpecular_Physical\nfloat computeSpecularOcclusion( const in float dotNV, const in float ambientOcclusion, const in float roughness ) {\n return saturate( pow( dotNV + ambientOcclusion, exp2( - 16.0 * roughness - 1.0 ) ) - 1.0 + ambientOcclusion );\n}"; +var lights_fragment_begin = "\nGeometricContext geometry;\ngeometry.position = - vViewPosition;\ngeometry.normal = normal;\ngeometry.viewDir = ( isOrthographic ) ? vec3( 0, 0, 1 ) : normalize( vViewPosition );\n#ifdef USE_CLEARCOAT\n geometry.clearcoatNormal = clearcoatNormal;\n#endif\n#ifdef USE_IRIDESCENCE\n float dotNVi = saturate( dot( normal, geometry.viewDir ) );\n if ( material.iridescenceThickness == 0.0 ) {\n material.iridescence = 0.0;\n } else {\n material.iridescence = saturate( material.iridescence );\n }\n if ( material.iridescence > 0.0 ) {\n material.iridescenceFresnel = evalIridescence( 1.0, material.iridescenceIOR, dotNVi, material.iridescenceThickness, material.specularColor );\n material.iridescenceF0 = Schlick_to_F0( material.iridescenceFresnel, 1.0, dotNVi );\n }\n#endif\nIncidentLight directLight;\n#if ( NUM_POINT_LIGHTS > 0 ) && defined( RE_Direct )\n PointLight pointLight;\n #if defined( USE_SHADOWMAP ) && NUM_POINT_LIGHT_SHADOWS > 0\n PointLightShadow pointLightShadow;\n #endif\n #pragma unroll_loop_start\n for ( int i = 0; i < NUM_POINT_LIGHTS; i ++ ) {\n pointLight = pointLights[ i ];\n getPointLightInfo( pointLight, geometry, directLight );\n #if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_POINT_LIGHT_SHADOWS )\n pointLightShadow = pointLightShadows[ i ];\n directLight.color *= all( bvec2( directLight.visible, receiveShadow ) ) ? getPointShadow( pointShadowMap[ i ], pointLightShadow.shadowMapSize, pointLightShadow.shadowBias, pointLightShadow.shadowRadius, vPointShadowCoord[ i ], pointLightShadow.shadowCameraNear, pointLightShadow.shadowCameraFar ) : 1.0;\n #endif\n RE_Direct( directLight, geometry, material, reflectedLight );\n }\n #pragma unroll_loop_end\n#endif\n#if ( NUM_SPOT_LIGHTS > 0 ) && defined( RE_Direct )\n SpotLight spotLight;\n vec4 spotColor;\n vec3 spotLightCoord;\n bool inSpotLightMap;\n #if defined( USE_SHADOWMAP ) && NUM_SPOT_LIGHT_SHADOWS > 0\n SpotLightShadow spotLightShadow;\n #endif\n #pragma unroll_loop_start\n for ( int i = 0; i < NUM_SPOT_LIGHTS; i ++ ) {\n spotLight = spotLights[ i ];\n getSpotLightInfo( spotLight, geometry, directLight );\n #if ( UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS_WITH_MAPS )\n #define SPOT_LIGHT_MAP_INDEX UNROLLED_LOOP_INDEX\n #elif ( UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS )\n #define SPOT_LIGHT_MAP_INDEX NUM_SPOT_LIGHT_MAPS\n #else\n #define SPOT_LIGHT_MAP_INDEX ( UNROLLED_LOOP_INDEX - NUM_SPOT_LIGHT_SHADOWS + NUM_SPOT_LIGHT_SHADOWS_WITH_MAPS )\n #endif\n #if ( SPOT_LIGHT_MAP_INDEX < NUM_SPOT_LIGHT_MAPS )\n spotLightCoord = vSpotLightCoord[ i ].xyz / vSpotLightCoord[ i ].w;\n inSpotLightMap = all( lessThan( abs( spotLightCoord * 2. - 1. ), vec3( 1.0 ) ) );\n spotColor = texture2D( spotLightMap[ SPOT_LIGHT_MAP_INDEX ], spotLightCoord.xy );\n directLight.color = inSpotLightMap ? directLight.color * spotColor.rgb : directLight.color;\n #endif\n #undef SPOT_LIGHT_MAP_INDEX\n #if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS )\n spotLightShadow = spotLightShadows[ i ];\n directLight.color *= all( bvec2( directLight.visible, receiveShadow ) ) ? getShadow( spotShadowMap[ i ], spotLightShadow.shadowMapSize, spotLightShadow.shadowBias, spotLightShadow.shadowRadius, vSpotLightCoord[ i ] ) : 1.0;\n #endif\n RE_Direct( directLight, geometry, material, reflectedLight );\n }\n #pragma unroll_loop_end\n#endif\n#if ( NUM_DIR_LIGHTS > 0 ) && defined( RE_Direct )\n DirectionalLight directionalLight;\n #if defined( USE_SHADOWMAP ) && NUM_DIR_LIGHT_SHADOWS > 0\n DirectionalLightShadow directionalLightShadow;\n #endif\n #pragma unroll_loop_start\n for ( int i = 0; i < NUM_DIR_LIGHTS; i ++ ) {\n directionalLight = directionalLights[ i ];\n getDirectionalLightInfo( directionalLight, geometry, directLight );\n #if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_DIR_LIGHT_SHADOWS )\n directionalLightShadow = directionalLightShadows[ i ];\n directLight.color *= all( bvec2( directLight.visible, receiveShadow ) ) ? getShadow( directionalShadowMap[ i ], directionalLightShadow.shadowMapSize, directionalLightShadow.shadowBias, directionalLightShadow.shadowRadius, vDirectionalShadowCoord[ i ] ) : 1.0;\n #endif\n RE_Direct( directLight, geometry, material, reflectedLight );\n }\n #pragma unroll_loop_end\n#endif\n#if ( NUM_RECT_AREA_LIGHTS > 0 ) && defined( RE_Direct_RectArea )\n RectAreaLight rectAreaLight;\n #pragma unroll_loop_start\n for ( int i = 0; i < NUM_RECT_AREA_LIGHTS; i ++ ) {\n rectAreaLight = rectAreaLights[ i ];\n RE_Direct_RectArea( rectAreaLight, geometry, material, reflectedLight );\n }\n #pragma unroll_loop_end\n#endif\n#if defined( RE_IndirectDiffuse )\n vec3 iblIrradiance = vec3( 0.0 );\n vec3 irradiance = getAmbientLightIrradiance( ambientLightColor );\n irradiance += getLightProbeIrradiance( lightProbe, geometry.normal );\n #if ( NUM_HEMI_LIGHTS > 0 )\n #pragma unroll_loop_start\n for ( int i = 0; i < NUM_HEMI_LIGHTS; i ++ ) {\n irradiance += getHemisphereLightIrradiance( hemisphereLights[ i ], geometry.normal );\n }\n #pragma unroll_loop_end\n #endif\n#endif\n#if defined( RE_IndirectSpecular )\n vec3 radiance = vec3( 0.0 );\n vec3 clearcoatRadiance = vec3( 0.0 );\n#endif"; var lights_fragment_maps = "#if defined( RE_IndirectDiffuse )\n #ifdef USE_LIGHTMAP\n vec4 lightMapTexel = texture2D( lightMap, vUv2 );\n vec3 lightMapIrradiance = lightMapTexel.rgb * lightMapIntensity;\n irradiance += lightMapIrradiance;\n #endif\n #if defined( USE_ENVMAP ) && defined( STANDARD ) && defined( ENVMAP_TYPE_CUBE_UV )\n iblIrradiance += getIBLIrradiance( geometry.normal );\n #endif\n#endif\n#if defined( USE_ENVMAP ) && defined( RE_IndirectSpecular )\n radiance += getIBLRadiance( geometry.viewDir, geometry.normal, material.roughness );\n #ifdef USE_CLEARCOAT\n clearcoatRadiance += getIBLRadiance( geometry.viewDir, geometry.clearcoatNormal, material.clearcoatRoughness );\n #endif\n#endif"; var lights_fragment_end = "#if defined( RE_IndirectDiffuse )\n RE_IndirectDiffuse( irradiance, geometry, material, reflectedLight );\n#endif\n#if defined( RE_IndirectSpecular )\n RE_IndirectSpecular( radiance, iblIrradiance, clearcoatRadiance, geometry, material, reflectedLight );\n#endif"; var logdepthbuf_fragment = "#if defined( USE_LOGDEPTHBUF ) && defined( USE_LOGDEPTHBUF_EXT )\n gl_FragDepthEXT = vIsPerspective == 0.0 ? gl_FragCoord.z : log2( vFragDepth ) * logDepthBufFC * 0.5;\n#endif"; @@ -10499,7 +10497,7 @@ var morphcolor_vertex = "#if defined( USE_MORPHCOLORS ) && defined( MORPHTARGETS var morphnormal_vertex = "#ifdef USE_MORPHNORMALS\n objectNormal *= morphTargetBaseInfluence;\n #ifdef MORPHTARGETS_TEXTURE\n for ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) {\n if ( morphTargetInfluences[ i ] != 0.0 ) objectNormal += getMorph( gl_VertexID, i, 1 ).xyz * morphTargetInfluences[ i ];\n }\n #else\n objectNormal += morphNormal0 * morphTargetInfluences[ 0 ];\n objectNormal += morphNormal1 * morphTargetInfluences[ 1 ];\n objectNormal += morphNormal2 * morphTargetInfluences[ 2 ];\n objectNormal += morphNormal3 * morphTargetInfluences[ 3 ];\n #endif\n#endif"; var morphtarget_pars_vertex = "#ifdef USE_MORPHTARGETS\n uniform float morphTargetBaseInfluence;\n #ifdef MORPHTARGETS_TEXTURE\n uniform float morphTargetInfluences[ MORPHTARGETS_COUNT ];\n uniform sampler2DArray morphTargetsTexture;\n uniform ivec2 morphTargetsTextureSize;\n vec4 getMorph( const in int vertexIndex, const in int morphTargetIndex, const in int offset ) {\n int texelIndex = vertexIndex * MORPHTARGETS_TEXTURE_STRIDE + offset;\n int y = texelIndex / morphTargetsTextureSize.x;\n int x = texelIndex - y * morphTargetsTextureSize.x;\n ivec3 morphUV = ivec3( x, y, morphTargetIndex );\n return texelFetch( morphTargetsTexture, morphUV, 0 );\n }\n #else\n #ifndef USE_MORPHNORMALS\n uniform float morphTargetInfluences[ 8 ];\n #else\n uniform float morphTargetInfluences[ 4 ];\n #endif\n #endif\n#endif"; var morphtarget_vertex = "#ifdef USE_MORPHTARGETS\n transformed *= morphTargetBaseInfluence;\n #ifdef MORPHTARGETS_TEXTURE\n for ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) {\n if ( morphTargetInfluences[ i ] != 0.0 ) transformed += getMorph( gl_VertexID, i, 0 ).xyz * morphTargetInfluences[ i ];\n }\n #else\n transformed += morphTarget0 * morphTargetInfluences[ 0 ];\n transformed += morphTarget1 * morphTargetInfluences[ 1 ];\n transformed += morphTarget2 * morphTargetInfluences[ 2 ];\n transformed += morphTarget3 * morphTargetInfluences[ 3 ];\n #ifndef USE_MORPHNORMALS\n transformed += morphTarget4 * morphTargetInfluences[ 4 ];\n transformed += morphTarget5 * morphTargetInfluences[ 5 ];\n transformed += morphTarget6 * morphTargetInfluences[ 6 ];\n transformed += morphTarget7 * morphTargetInfluences[ 7 ];\n #endif\n #endif\n#endif"; -var normal_fragment_begin = "float faceDirection = gl_FrontFacing ? 1.0 : - 1.0;\n#ifdef FLAT_SHADED\n vec3 fdx = vec3( dFdx( vViewPosition.x ), dFdx( vViewPosition.y ), dFdx( vViewPosition.z ) );\n vec3 fdy = vec3( dFdy( vViewPosition.x ), dFdy( vViewPosition.y ), dFdy( vViewPosition.z ) );\n vec3 normal = normalize( cross( fdx, fdy ) );\n#else\n vec3 normal = normalize( vNormal );\n #ifdef DOUBLE_SIDED\n normal = normal * faceDirection;\n #endif\n #ifdef USE_TANGENT\n vec3 tangent = normalize( vTangent );\n vec3 bitangent = normalize( vBitangent );\n #ifdef DOUBLE_SIDED\n tangent = tangent * faceDirection;\n bitangent = bitangent * faceDirection;\n #endif\n #if defined( TANGENTSPACE_NORMALMAP ) || defined( USE_CLEARCOAT_NORMALMAP )\n mat3 vTBN = mat3( tangent, bitangent, normal );\n #endif\n #endif\n#endif\nvec3 geometryNormal = normal;"; +var normal_fragment_begin = "float faceDirection = gl_FrontFacing ? 1.0 : - 1.0;\n#ifdef FLAT_SHADED\n vec3 fdx = dFdx( vViewPosition );\n vec3 fdy = dFdy( vViewPosition );\n vec3 normal = normalize( cross( fdx, fdy ) );\n#else\n vec3 normal = normalize( vNormal );\n #ifdef DOUBLE_SIDED\n normal = normal * faceDirection;\n #endif\n #ifdef USE_TANGENT\n vec3 tangent = normalize( vTangent );\n vec3 bitangent = normalize( vBitangent );\n #ifdef DOUBLE_SIDED\n tangent = tangent * faceDirection;\n bitangent = bitangent * faceDirection;\n #endif\n #if defined( TANGENTSPACE_NORMALMAP ) || defined( USE_CLEARCOAT_NORMALMAP )\n mat3 vTBN = mat3( tangent, bitangent, normal );\n #endif\n #endif\n#endif\nvec3 geometryNormal = normal;"; var normal_fragment_maps = "#ifdef OBJECTSPACE_NORMALMAP\n normal = texture2D( normalMap, vUv ).xyz * 2.0 - 1.0;\n #ifdef FLIP_SIDED\n normal = - normal;\n #endif\n #ifdef DOUBLE_SIDED\n normal = normal * faceDirection;\n #endif\n normal = normalize( normalMatrix * normal );\n#elif defined( TANGENTSPACE_NORMALMAP )\n vec3 mapN = texture2D( normalMap, vUv ).xyz * 2.0 - 1.0;\n mapN.xy *= normalScale;\n #ifdef USE_TANGENT\n normal = normalize( vTBN * mapN );\n #else\n normal = perturbNormal2Arb( - vViewPosition, normal, mapN, faceDirection );\n #endif\n#elif defined( USE_BUMPMAP )\n normal = perturbNormalArb( - vViewPosition, normal, dHdxy_fwd(), faceDirection );\n#endif"; var normal_pars_fragment = "#ifndef FLAT_SHADED\n varying vec3 vNormal;\n #ifdef USE_TANGENT\n varying vec3 vTangent;\n varying vec3 vBitangent;\n #endif\n#endif"; var normal_pars_vertex = "#ifndef FLAT_SHADED\n varying vec3 vNormal;\n #ifdef USE_TANGENT\n varying vec3 vTangent;\n varying vec3 vBitangent;\n #endif\n#endif"; @@ -10509,18 +10507,18 @@ var clearcoat_normal_fragment_begin = "#ifdef USE_CLEARCOAT\n vec3 clearcoatNorm var clearcoat_normal_fragment_maps = "#ifdef USE_CLEARCOAT_NORMALMAP\n vec3 clearcoatMapN = texture2D( clearcoatNormalMap, vUv ).xyz * 2.0 - 1.0;\n clearcoatMapN.xy *= clearcoatNormalScale;\n #ifdef USE_TANGENT\n clearcoatNormal = normalize( vTBN * clearcoatMapN );\n #else\n clearcoatNormal = perturbNormal2Arb( - vViewPosition, clearcoatNormal, clearcoatMapN, faceDirection );\n #endif\n#endif"; var clearcoat_pars_fragment = "#ifdef USE_CLEARCOATMAP\n uniform sampler2D clearcoatMap;\n#endif\n#ifdef USE_CLEARCOAT_ROUGHNESSMAP\n uniform sampler2D clearcoatRoughnessMap;\n#endif\n#ifdef USE_CLEARCOAT_NORMALMAP\n uniform sampler2D clearcoatNormalMap;\n uniform vec2 clearcoatNormalScale;\n#endif"; var iridescence_pars_fragment = "#ifdef USE_IRIDESCENCEMAP\n uniform sampler2D iridescenceMap;\n#endif\n#ifdef USE_IRIDESCENCE_THICKNESSMAP\n uniform sampler2D iridescenceThicknessMap;\n#endif"; -var output_fragment = "#ifdef OPAQUE\ndiffuseColor.a = 1.0;\n#endif\n#ifdef USE_TRANSMISSION\ndiffuseColor.a *= transmissionAlpha + 0.1;\n#endif\ngl_FragColor = vec4( outgoingLight, diffuseColor.a );"; -var packing = "vec3 packNormalToRGB( const in vec3 normal ) {\n return normalize( normal ) * 0.5 + 0.5;\n}\nvec3 unpackRGBToNormal( const in vec3 rgb ) {\n return 2.0 * rgb.xyz - 1.0;\n}\nconst float PackUpscale = 256. / 255.;const float UnpackDownscale = 255. / 256.;\nconst vec3 PackFactors = vec3( 256. * 256. * 256., 256. * 256., 256. );\nconst vec4 UnpackFactors = UnpackDownscale / vec4( PackFactors, 1. );\nconst float ShiftRight8 = 1. / 256.;\nvec4 packDepthToRGBA( const in float v ) {\n vec4 r = vec4( fract( v * PackFactors ), v );\n r.yzw -= r.xyz * ShiftRight8; return r * PackUpscale;\n}\nfloat unpackRGBAToDepth( const in vec4 v ) {\n return dot( v, UnpackFactors );\n}\nvec4 pack2HalfToRGBA( vec2 v ) {\n vec4 r = vec4( v.x, fract( v.x * 255.0 ), v.y, fract( v.y * 255.0 ) );\n return vec4( r.x - r.y / 255.0, r.y, r.z - r.w / 255.0, r.w );\n}\nvec2 unpackRGBATo2Half( vec4 v ) {\n return vec2( v.x + ( v.y / 255.0 ), v.z + ( v.w / 255.0 ) );\n}\nfloat viewZToOrthographicDepth( const in float viewZ, const in float near, const in float far ) {\n return ( viewZ + near ) / ( near - far );\n}\nfloat orthographicDepthToViewZ( const in float linearClipZ, const in float near, const in float far ) {\n return linearClipZ * ( near - far ) - near;\n}\nfloat viewZToPerspectiveDepth( const in float viewZ, const in float near, const in float far ) {\n return ( ( near + viewZ ) * far ) / ( ( far - near ) * viewZ );\n}\nfloat perspectiveDepthToViewZ( const in float invClipZ, const in float near, const in float far ) {\n return ( near * far ) / ( ( far - near ) * invClipZ - far );\n}"; +var output_fragment = "#ifdef OPAQUE\ndiffuseColor.a = 1.0;\n#endif\n#ifdef USE_TRANSMISSION\ndiffuseColor.a *= material.transmissionAlpha + 0.1;\n#endif\ngl_FragColor = vec4( outgoingLight, diffuseColor.a );"; +var packing = "vec3 packNormalToRGB( const in vec3 normal ) {\n return normalize( normal ) * 0.5 + 0.5;\n}\nvec3 unpackRGBToNormal( const in vec3 rgb ) {\n return 2.0 * rgb.xyz - 1.0;\n}\nconst float PackUpscale = 256. / 255.;const float UnpackDownscale = 255. / 256.;\nconst vec3 PackFactors = vec3( 256. * 256. * 256., 256. * 256., 256. );\nconst vec4 UnpackFactors = UnpackDownscale / vec4( PackFactors, 1. );\nconst float ShiftRight8 = 1. / 256.;\nvec4 packDepthToRGBA( const in float v ) {\n vec4 r = vec4( fract( v * PackFactors ), v );\n r.yzw -= r.xyz * ShiftRight8; return r * PackUpscale;\n}\nfloat unpackRGBAToDepth( const in vec4 v ) {\n return dot( v, UnpackFactors );\n}\nvec2 packDepthToRG( in highp float v ) {\n return packDepthToRGBA( v ).yx;\n}\nfloat unpackRGToDepth( const in highp vec2 v ) {\n return unpackRGBAToDepth( vec4( v.xy, 0.0, 0.0 ) );\n}\nvec4 pack2HalfToRGBA( vec2 v ) {\n vec4 r = vec4( v.x, fract( v.x * 255.0 ), v.y, fract( v.y * 255.0 ) );\n return vec4( r.x - r.y / 255.0, r.y, r.z - r.w / 255.0, r.w );\n}\nvec2 unpackRGBATo2Half( vec4 v ) {\n return vec2( v.x + ( v.y / 255.0 ), v.z + ( v.w / 255.0 ) );\n}\nfloat viewZToOrthographicDepth( const in float viewZ, const in float near, const in float far ) {\n return ( viewZ + near ) / ( near - far );\n}\nfloat orthographicDepthToViewZ( const in float linearClipZ, const in float near, const in float far ) {\n return linearClipZ * ( near - far ) - near;\n}\nfloat viewZToPerspectiveDepth( const in float viewZ, const in float near, const in float far ) {\n return ( ( near + viewZ ) * far ) / ( ( far - near ) * viewZ );\n}\nfloat perspectiveDepthToViewZ( const in float invClipZ, const in float near, const in float far ) {\n return ( near * far ) / ( ( far - near ) * invClipZ - far );\n}"; var premultiplied_alpha_fragment = "#ifdef PREMULTIPLIED_ALPHA\n gl_FragColor.rgb *= gl_FragColor.a;\n#endif"; var project_vertex = "vec4 mvPosition = vec4( transformed, 1.0 );\n#ifdef USE_INSTANCING\n mvPosition = instanceMatrix * mvPosition;\n#endif\nmvPosition = modelViewMatrix * mvPosition;\ngl_Position = projectionMatrix * mvPosition;"; var dithering_fragment = "#ifdef DITHERING\n gl_FragColor.rgb = dithering( gl_FragColor.rgb );\n#endif"; var dithering_pars_fragment = "#ifdef DITHERING\n vec3 dithering( vec3 color ) {\n float grid_position = rand( gl_FragCoord.xy );\n vec3 dither_shift_RGB = vec3( 0.25 / 255.0, -0.25 / 255.0, 0.25 / 255.0 );\n dither_shift_RGB = mix( 2.0 * dither_shift_RGB, -2.0 * dither_shift_RGB, grid_position );\n return color + dither_shift_RGB;\n }\n#endif"; var roughnessmap_fragment = "float roughnessFactor = roughness;\n#ifdef USE_ROUGHNESSMAP\n vec4 texelRoughness = texture2D( roughnessMap, vUv );\n roughnessFactor *= texelRoughness.g;\n#endif"; var roughnessmap_pars_fragment = "#ifdef USE_ROUGHNESSMAP\n uniform sampler2D roughnessMap;\n#endif"; -var shadowmap_pars_fragment = "#ifdef USE_SHADOWMAP\n #if NUM_DIR_LIGHT_SHADOWS > 0\n uniform sampler2D directionalShadowMap[ NUM_DIR_LIGHT_SHADOWS ];\n varying vec4 vDirectionalShadowCoord[ NUM_DIR_LIGHT_SHADOWS ];\n struct DirectionalLightShadow {\n float shadowBias;\n float shadowNormalBias;\n float shadowRadius;\n vec2 shadowMapSize;\n };\n uniform DirectionalLightShadow directionalLightShadows[ NUM_DIR_LIGHT_SHADOWS ];\n #endif\n #if NUM_SPOT_LIGHT_SHADOWS > 0\n uniform sampler2D spotShadowMap[ NUM_SPOT_LIGHT_SHADOWS ];\n varying vec4 vSpotShadowCoord[ NUM_SPOT_LIGHT_SHADOWS ];\n struct SpotLightShadow {\n float shadowBias;\n float shadowNormalBias;\n float shadowRadius;\n vec2 shadowMapSize;\n };\n uniform SpotLightShadow spotLightShadows[ NUM_SPOT_LIGHT_SHADOWS ];\n #endif\n #if NUM_POINT_LIGHT_SHADOWS > 0\n uniform sampler2D pointShadowMap[ NUM_POINT_LIGHT_SHADOWS ];\n varying vec4 vPointShadowCoord[ NUM_POINT_LIGHT_SHADOWS ];\n struct PointLightShadow {\n float shadowBias;\n float shadowNormalBias;\n float shadowRadius;\n vec2 shadowMapSize;\n float shadowCameraNear;\n float shadowCameraFar;\n };\n uniform PointLightShadow pointLightShadows[ NUM_POINT_LIGHT_SHADOWS ];\n #endif\n float texture2DCompare( sampler2D depths, vec2 uv, float compare ) {\n return step( compare, unpackRGBAToDepth( texture2D( depths, uv ) ) );\n }\n vec2 texture2DDistribution( sampler2D shadow, vec2 uv ) {\n return unpackRGBATo2Half( texture2D( shadow, uv ) );\n }\n float VSMShadow (sampler2D shadow, vec2 uv, float compare ){\n float occlusion = 1.0;\n vec2 distribution = texture2DDistribution( shadow, uv );\n float hard_shadow = step( compare , distribution.x );\n if (hard_shadow != 1.0 ) {\n float distance = compare - distribution.x ;\n float variance = max( 0.00000, distribution.y * distribution.y );\n float softness_probability = variance / (variance + distance * distance ); softness_probability = clamp( ( softness_probability - 0.3 ) / ( 0.95 - 0.3 ), 0.0, 1.0 ); occlusion = clamp( max( hard_shadow, softness_probability ), 0.0, 1.0 );\n }\n return occlusion;\n }\n float getShadow( sampler2D shadowMap, vec2 shadowMapSize, float shadowBias, float shadowRadius, vec4 shadowCoord ) {\n float shadow = 1.0;\n shadowCoord.xyz /= shadowCoord.w;\n shadowCoord.z += shadowBias;\n bvec4 inFrustumVec = bvec4 ( shadowCoord.x >= 0.0, shadowCoord.x <= 1.0, shadowCoord.y >= 0.0, shadowCoord.y <= 1.0 );\n bool inFrustum = all( inFrustumVec );\n bvec2 frustumTestVec = bvec2( inFrustum, shadowCoord.z <= 1.0 );\n bool frustumTest = all( frustumTestVec );\n if ( frustumTest ) {\n #if defined( SHADOWMAP_TYPE_PCF )\n vec2 texelSize = vec2( 1.0 ) / shadowMapSize;\n float dx0 = - texelSize.x * shadowRadius;\n float dy0 = - texelSize.y * shadowRadius;\n float dx1 = + texelSize.x * shadowRadius;\n float dy1 = + texelSize.y * shadowRadius;\n float dx2 = dx0 / 2.0;\n float dy2 = dy0 / 2.0;\n float dx3 = dx1 / 2.0;\n float dy3 = dy1 / 2.0;\n shadow = (\n texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx0, dy0 ), shadowCoord.z ) +\n texture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy0 ), shadowCoord.z ) +\n texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx1, dy0 ), shadowCoord.z ) +\n texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx2, dy2 ), shadowCoord.z ) +\n texture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy2 ), shadowCoord.z ) +\n texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx3, dy2 ), shadowCoord.z ) +\n texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx0, 0.0 ), shadowCoord.z ) +\n texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx2, 0.0 ), shadowCoord.z ) +\n texture2DCompare( shadowMap, shadowCoord.xy, shadowCoord.z ) +\n texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx3, 0.0 ), shadowCoord.z ) +\n texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx1, 0.0 ), shadowCoord.z ) +\n texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx2, dy3 ), shadowCoord.z ) +\n texture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy3 ), shadowCoord.z ) +\n texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx3, dy3 ), shadowCoord.z ) +\n texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx0, dy1 ), shadowCoord.z ) +\n texture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy1 ), shadowCoord.z ) +\n texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx1, dy1 ), shadowCoord.z )\n ) * ( 1.0 / 17.0 );\n #elif defined( SHADOWMAP_TYPE_PCF_SOFT )\n vec2 texelSize = vec2( 1.0 ) / shadowMapSize;\n float dx = texelSize.x;\n float dy = texelSize.y;\n vec2 uv = shadowCoord.xy;\n vec2 f = fract( uv * shadowMapSize + 0.5 );\n uv -= f * texelSize;\n shadow = (\n texture2DCompare( shadowMap, uv, shadowCoord.z ) +\n texture2DCompare( shadowMap, uv + vec2( dx, 0.0 ), shadowCoord.z ) +\n texture2DCompare( shadowMap, uv + vec2( 0.0, dy ), shadowCoord.z ) +\n texture2DCompare( shadowMap, uv + texelSize, shadowCoord.z ) +\n mix( texture2DCompare( shadowMap, uv + vec2( -dx, 0.0 ), shadowCoord.z ), \n texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, 0.0 ), shadowCoord.z ),\n f.x ) +\n mix( texture2DCompare( shadowMap, uv + vec2( -dx, dy ), shadowCoord.z ), \n texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, dy ), shadowCoord.z ),\n f.x ) +\n mix( texture2DCompare( shadowMap, uv + vec2( 0.0, -dy ), shadowCoord.z ), \n texture2DCompare( shadowMap, uv + vec2( 0.0, 2.0 * dy ), shadowCoord.z ),\n f.y ) +\n mix( texture2DCompare( shadowMap, uv + vec2( dx, -dy ), shadowCoord.z ), \n texture2DCompare( shadowMap, uv + vec2( dx, 2.0 * dy ), shadowCoord.z ),\n f.y ) +\n mix( mix( texture2DCompare( shadowMap, uv + vec2( -dx, -dy ), shadowCoord.z ), \n texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, -dy ), shadowCoord.z ),\n f.x ),\n mix( texture2DCompare( shadowMap, uv + vec2( -dx, 2.0 * dy ), shadowCoord.z ), \n texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, 2.0 * dy ), shadowCoord.z ),\n f.x ),\n f.y )\n ) * ( 1.0 / 9.0 );\n #elif defined( SHADOWMAP_TYPE_VSM )\n shadow = VSMShadow( shadowMap, shadowCoord.xy, shadowCoord.z );\n #else\n shadow = texture2DCompare( shadowMap, shadowCoord.xy, shadowCoord.z );\n #endif\n }\n return shadow;\n }\n vec2 cubeToUV( vec3 v, float texelSizeY ) {\n vec3 absV = abs( v );\n float scaleToCube = 1.0 / max( absV.x, max( absV.y, absV.z ) );\n absV *= scaleToCube;\n v *= scaleToCube * ( 1.0 - 2.0 * texelSizeY );\n vec2 planar = v.xy;\n float almostATexel = 1.5 * texelSizeY;\n float almostOne = 1.0 - almostATexel;\n if ( absV.z >= almostOne ) {\n if ( v.z > 0.0 )\n planar.x = 4.0 - v.x;\n } else if ( absV.x >= almostOne ) {\n float signX = sign( v.x );\n planar.x = v.z * signX + 2.0 * signX;\n } else if ( absV.y >= almostOne ) {\n float signY = sign( v.y );\n planar.x = v.x + 2.0 * signY + 2.0;\n planar.y = v.z * signY - 2.0;\n }\n return vec2( 0.125, 0.25 ) * planar + vec2( 0.375, 0.75 );\n }\n float getPointShadow( sampler2D shadowMap, vec2 shadowMapSize, float shadowBias, float shadowRadius, vec4 shadowCoord, float shadowCameraNear, float shadowCameraFar ) {\n vec2 texelSize = vec2( 1.0 ) / ( shadowMapSize * vec2( 4.0, 2.0 ) );\n vec3 lightToPosition = shadowCoord.xyz;\n float dp = ( length( lightToPosition ) - shadowCameraNear ) / ( shadowCameraFar - shadowCameraNear ); dp += shadowBias;\n vec3 bd3D = normalize( lightToPosition );\n #if defined( SHADOWMAP_TYPE_PCF ) || defined( SHADOWMAP_TYPE_PCF_SOFT ) || defined( SHADOWMAP_TYPE_VSM )\n vec2 offset = vec2( - 1, 1 ) * shadowRadius * texelSize.y;\n return (\n texture2DCompare( shadowMap, cubeToUV( bd3D + offset.xyy, texelSize.y ), dp ) +\n texture2DCompare( shadowMap, cubeToUV( bd3D + offset.yyy, texelSize.y ), dp ) +\n texture2DCompare( shadowMap, cubeToUV( bd3D + offset.xyx, texelSize.y ), dp ) +\n texture2DCompare( shadowMap, cubeToUV( bd3D + offset.yyx, texelSize.y ), dp ) +\n texture2DCompare( shadowMap, cubeToUV( bd3D, texelSize.y ), dp ) +\n texture2DCompare( shadowMap, cubeToUV( bd3D + offset.xxy, texelSize.y ), dp ) +\n texture2DCompare( shadowMap, cubeToUV( bd3D + offset.yxy, texelSize.y ), dp ) +\n texture2DCompare( shadowMap, cubeToUV( bd3D + offset.xxx, texelSize.y ), dp ) +\n texture2DCompare( shadowMap, cubeToUV( bd3D + offset.yxx, texelSize.y ), dp )\n ) * ( 1.0 / 9.0 );\n #else\n return texture2DCompare( shadowMap, cubeToUV( bd3D, texelSize.y ), dp );\n #endif\n }\n#endif"; -var shadowmap_pars_vertex = "#ifdef USE_SHADOWMAP\n #if NUM_DIR_LIGHT_SHADOWS > 0\n uniform mat4 directionalShadowMatrix[ NUM_DIR_LIGHT_SHADOWS ];\n varying vec4 vDirectionalShadowCoord[ NUM_DIR_LIGHT_SHADOWS ];\n struct DirectionalLightShadow {\n float shadowBias;\n float shadowNormalBias;\n float shadowRadius;\n vec2 shadowMapSize;\n };\n uniform DirectionalLightShadow directionalLightShadows[ NUM_DIR_LIGHT_SHADOWS ];\n #endif\n #if NUM_SPOT_LIGHT_SHADOWS > 0\n uniform mat4 spotShadowMatrix[ NUM_SPOT_LIGHT_SHADOWS ];\n varying vec4 vSpotShadowCoord[ NUM_SPOT_LIGHT_SHADOWS ];\n struct SpotLightShadow {\n float shadowBias;\n float shadowNormalBias;\n float shadowRadius;\n vec2 shadowMapSize;\n };\n uniform SpotLightShadow spotLightShadows[ NUM_SPOT_LIGHT_SHADOWS ];\n #endif\n #if NUM_POINT_LIGHT_SHADOWS > 0\n uniform mat4 pointShadowMatrix[ NUM_POINT_LIGHT_SHADOWS ];\n varying vec4 vPointShadowCoord[ NUM_POINT_LIGHT_SHADOWS ];\n struct PointLightShadow {\n float shadowBias;\n float shadowNormalBias;\n float shadowRadius;\n vec2 shadowMapSize;\n float shadowCameraNear;\n float shadowCameraFar;\n };\n uniform PointLightShadow pointLightShadows[ NUM_POINT_LIGHT_SHADOWS ];\n #endif\n#endif"; -var shadowmap_vertex = "#ifdef USE_SHADOWMAP\n #if NUM_DIR_LIGHT_SHADOWS > 0 || NUM_SPOT_LIGHT_SHADOWS > 0 || NUM_POINT_LIGHT_SHADOWS > 0\n vec3 shadowWorldNormal = inverseTransformDirection( transformedNormal, viewMatrix );\n vec4 shadowWorldPosition;\n #endif\n #if NUM_DIR_LIGHT_SHADOWS > 0\n #pragma unroll_loop_start\n for ( int i = 0; i < NUM_DIR_LIGHT_SHADOWS; i ++ ) {\n shadowWorldPosition = worldPosition + vec4( shadowWorldNormal * directionalLightShadows[ i ].shadowNormalBias, 0 );\n vDirectionalShadowCoord[ i ] = directionalShadowMatrix[ i ] * shadowWorldPosition;\n }\n #pragma unroll_loop_end\n #endif\n #if NUM_SPOT_LIGHT_SHADOWS > 0\n #pragma unroll_loop_start\n for ( int i = 0; i < NUM_SPOT_LIGHT_SHADOWS; i ++ ) {\n shadowWorldPosition = worldPosition + vec4( shadowWorldNormal * spotLightShadows[ i ].shadowNormalBias, 0 );\n vSpotShadowCoord[ i ] = spotShadowMatrix[ i ] * shadowWorldPosition;\n }\n #pragma unroll_loop_end\n #endif\n #if NUM_POINT_LIGHT_SHADOWS > 0\n #pragma unroll_loop_start\n for ( int i = 0; i < NUM_POINT_LIGHT_SHADOWS; i ++ ) {\n shadowWorldPosition = worldPosition + vec4( shadowWorldNormal * pointLightShadows[ i ].shadowNormalBias, 0 );\n vPointShadowCoord[ i ] = pointShadowMatrix[ i ] * shadowWorldPosition;\n }\n #pragma unroll_loop_end\n #endif\n#endif"; -var shadowmask_pars_fragment = "float getShadowMask() {\n float shadow = 1.0;\n #ifdef USE_SHADOWMAP\n #if NUM_DIR_LIGHT_SHADOWS > 0\n DirectionalLightShadow directionalLight;\n #pragma unroll_loop_start\n for ( int i = 0; i < NUM_DIR_LIGHT_SHADOWS; i ++ ) {\n directionalLight = directionalLightShadows[ i ];\n shadow *= receiveShadow ? getShadow( directionalShadowMap[ i ], directionalLight.shadowMapSize, directionalLight.shadowBias, directionalLight.shadowRadius, vDirectionalShadowCoord[ i ] ) : 1.0;\n }\n #pragma unroll_loop_end\n #endif\n #if NUM_SPOT_LIGHT_SHADOWS > 0\n SpotLightShadow spotLight;\n #pragma unroll_loop_start\n for ( int i = 0; i < NUM_SPOT_LIGHT_SHADOWS; i ++ ) {\n spotLight = spotLightShadows[ i ];\n shadow *= receiveShadow ? getShadow( spotShadowMap[ i ], spotLight.shadowMapSize, spotLight.shadowBias, spotLight.shadowRadius, vSpotShadowCoord[ i ] ) : 1.0;\n }\n #pragma unroll_loop_end\n #endif\n #if NUM_POINT_LIGHT_SHADOWS > 0\n PointLightShadow pointLight;\n #pragma unroll_loop_start\n for ( int i = 0; i < NUM_POINT_LIGHT_SHADOWS; i ++ ) {\n pointLight = pointLightShadows[ i ];\n shadow *= receiveShadow ? getPointShadow( pointShadowMap[ i ], pointLight.shadowMapSize, pointLight.shadowBias, pointLight.shadowRadius, vPointShadowCoord[ i ], pointLight.shadowCameraNear, pointLight.shadowCameraFar ) : 1.0;\n }\n #pragma unroll_loop_end\n #endif\n #endif\n return shadow;\n}"; +var shadowmap_pars_fragment = "#if NUM_SPOT_LIGHT_COORDS > 0\n varying vec4 vSpotLightCoord[ NUM_SPOT_LIGHT_COORDS ];\n#endif\n#if NUM_SPOT_LIGHT_MAPS > 0\n uniform sampler2D spotLightMap[ NUM_SPOT_LIGHT_MAPS ];\n#endif\n#ifdef USE_SHADOWMAP\n #if NUM_DIR_LIGHT_SHADOWS > 0\n uniform sampler2D directionalShadowMap[ NUM_DIR_LIGHT_SHADOWS ];\n varying vec4 vDirectionalShadowCoord[ NUM_DIR_LIGHT_SHADOWS ];\n struct DirectionalLightShadow {\n float shadowBias;\n float shadowNormalBias;\n float shadowRadius;\n vec2 shadowMapSize;\n };\n uniform DirectionalLightShadow directionalLightShadows[ NUM_DIR_LIGHT_SHADOWS ];\n #endif\n #if NUM_SPOT_LIGHT_SHADOWS > 0\n uniform sampler2D spotShadowMap[ NUM_SPOT_LIGHT_SHADOWS ];\n struct SpotLightShadow {\n float shadowBias;\n float shadowNormalBias;\n float shadowRadius;\n vec2 shadowMapSize;\n };\n uniform SpotLightShadow spotLightShadows[ NUM_SPOT_LIGHT_SHADOWS ];\n #endif\n #if NUM_POINT_LIGHT_SHADOWS > 0\n uniform sampler2D pointShadowMap[ NUM_POINT_LIGHT_SHADOWS ];\n varying vec4 vPointShadowCoord[ NUM_POINT_LIGHT_SHADOWS ];\n struct PointLightShadow {\n float shadowBias;\n float shadowNormalBias;\n float shadowRadius;\n vec2 shadowMapSize;\n float shadowCameraNear;\n float shadowCameraFar;\n };\n uniform PointLightShadow pointLightShadows[ NUM_POINT_LIGHT_SHADOWS ];\n #endif\n float texture2DCompare( sampler2D depths, vec2 uv, float compare ) {\n return step( compare, unpackRGBAToDepth( texture2D( depths, uv ) ) );\n }\n vec2 texture2DDistribution( sampler2D shadow, vec2 uv ) {\n return unpackRGBATo2Half( texture2D( shadow, uv ) );\n }\n float VSMShadow (sampler2D shadow, vec2 uv, float compare ){\n float occlusion = 1.0;\n vec2 distribution = texture2DDistribution( shadow, uv );\n float hard_shadow = step( compare , distribution.x );\n if (hard_shadow != 1.0 ) {\n float distance = compare - distribution.x ;\n float variance = max( 0.00000, distribution.y * distribution.y );\n float softness_probability = variance / (variance + distance * distance ); softness_probability = clamp( ( softness_probability - 0.3 ) / ( 0.95 - 0.3 ), 0.0, 1.0 ); occlusion = clamp( max( hard_shadow, softness_probability ), 0.0, 1.0 );\n }\n return occlusion;\n }\n float getShadow( sampler2D shadowMap, vec2 shadowMapSize, float shadowBias, float shadowRadius, vec4 shadowCoord ) {\n float shadow = 1.0;\n shadowCoord.xyz /= shadowCoord.w;\n shadowCoord.z += shadowBias;\n bvec4 inFrustumVec = bvec4 ( shadowCoord.x >= 0.0, shadowCoord.x <= 1.0, shadowCoord.y >= 0.0, shadowCoord.y <= 1.0 );\n bool inFrustum = all( inFrustumVec );\n bvec2 frustumTestVec = bvec2( inFrustum, shadowCoord.z <= 1.0 );\n bool frustumTest = all( frustumTestVec );\n if ( frustumTest ) {\n #if defined( SHADOWMAP_TYPE_PCF )\n vec2 texelSize = vec2( 1.0 ) / shadowMapSize;\n float dx0 = - texelSize.x * shadowRadius;\n float dy0 = - texelSize.y * shadowRadius;\n float dx1 = + texelSize.x * shadowRadius;\n float dy1 = + texelSize.y * shadowRadius;\n float dx2 = dx0 / 2.0;\n float dy2 = dy0 / 2.0;\n float dx3 = dx1 / 2.0;\n float dy3 = dy1 / 2.0;\n shadow = (\n texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx0, dy0 ), shadowCoord.z ) +\n texture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy0 ), shadowCoord.z ) +\n texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx1, dy0 ), shadowCoord.z ) +\n texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx2, dy2 ), shadowCoord.z ) +\n texture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy2 ), shadowCoord.z ) +\n texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx3, dy2 ), shadowCoord.z ) +\n texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx0, 0.0 ), shadowCoord.z ) +\n texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx2, 0.0 ), shadowCoord.z ) +\n texture2DCompare( shadowMap, shadowCoord.xy, shadowCoord.z ) +\n texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx3, 0.0 ), shadowCoord.z ) +\n texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx1, 0.0 ), shadowCoord.z ) +\n texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx2, dy3 ), shadowCoord.z ) +\n texture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy3 ), shadowCoord.z ) +\n texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx3, dy3 ), shadowCoord.z ) +\n texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx0, dy1 ), shadowCoord.z ) +\n texture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy1 ), shadowCoord.z ) +\n texture2DCompare( shadowMap, shadowCoord.xy + vec2( dx1, dy1 ), shadowCoord.z )\n ) * ( 1.0 / 17.0 );\n #elif defined( SHADOWMAP_TYPE_PCF_SOFT )\n vec2 texelSize = vec2( 1.0 ) / shadowMapSize;\n float dx = texelSize.x;\n float dy = texelSize.y;\n vec2 uv = shadowCoord.xy;\n vec2 f = fract( uv * shadowMapSize + 0.5 );\n uv -= f * texelSize;\n shadow = (\n texture2DCompare( shadowMap, uv, shadowCoord.z ) +\n texture2DCompare( shadowMap, uv + vec2( dx, 0.0 ), shadowCoord.z ) +\n texture2DCompare( shadowMap, uv + vec2( 0.0, dy ), shadowCoord.z ) +\n texture2DCompare( shadowMap, uv + texelSize, shadowCoord.z ) +\n mix( texture2DCompare( shadowMap, uv + vec2( -dx, 0.0 ), shadowCoord.z ),\n texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, 0.0 ), shadowCoord.z ),\n f.x ) +\n mix( texture2DCompare( shadowMap, uv + vec2( -dx, dy ), shadowCoord.z ),\n texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, dy ), shadowCoord.z ),\n f.x ) +\n mix( texture2DCompare( shadowMap, uv + vec2( 0.0, -dy ), shadowCoord.z ),\n texture2DCompare( shadowMap, uv + vec2( 0.0, 2.0 * dy ), shadowCoord.z ),\n f.y ) +\n mix( texture2DCompare( shadowMap, uv + vec2( dx, -dy ), shadowCoord.z ),\n texture2DCompare( shadowMap, uv + vec2( dx, 2.0 * dy ), shadowCoord.z ),\n f.y ) +\n mix( mix( texture2DCompare( shadowMap, uv + vec2( -dx, -dy ), shadowCoord.z ),\n texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, -dy ), shadowCoord.z ),\n f.x ),\n mix( texture2DCompare( shadowMap, uv + vec2( -dx, 2.0 * dy ), shadowCoord.z ),\n texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, 2.0 * dy ), shadowCoord.z ),\n f.x ),\n f.y )\n ) * ( 1.0 / 9.0 );\n #elif defined( SHADOWMAP_TYPE_VSM )\n shadow = VSMShadow( shadowMap, shadowCoord.xy, shadowCoord.z );\n #else\n shadow = texture2DCompare( shadowMap, shadowCoord.xy, shadowCoord.z );\n #endif\n }\n return shadow;\n }\n vec2 cubeToUV( vec3 v, float texelSizeY ) {\n vec3 absV = abs( v );\n float scaleToCube = 1.0 / max( absV.x, max( absV.y, absV.z ) );\n absV *= scaleToCube;\n v *= scaleToCube * ( 1.0 - 2.0 * texelSizeY );\n vec2 planar = v.xy;\n float almostATexel = 1.5 * texelSizeY;\n float almostOne = 1.0 - almostATexel;\n if ( absV.z >= almostOne ) {\n if ( v.z > 0.0 )\n planar.x = 4.0 - v.x;\n } else if ( absV.x >= almostOne ) {\n float signX = sign( v.x );\n planar.x = v.z * signX + 2.0 * signX;\n } else if ( absV.y >= almostOne ) {\n float signY = sign( v.y );\n planar.x = v.x + 2.0 * signY + 2.0;\n planar.y = v.z * signY - 2.0;\n }\n return vec2( 0.125, 0.25 ) * planar + vec2( 0.375, 0.75 );\n }\n float getPointShadow( sampler2D shadowMap, vec2 shadowMapSize, float shadowBias, float shadowRadius, vec4 shadowCoord, float shadowCameraNear, float shadowCameraFar ) {\n vec2 texelSize = vec2( 1.0 ) / ( shadowMapSize * vec2( 4.0, 2.0 ) );\n vec3 lightToPosition = shadowCoord.xyz;\n float dp = ( length( lightToPosition ) - shadowCameraNear ) / ( shadowCameraFar - shadowCameraNear ); dp += shadowBias;\n vec3 bd3D = normalize( lightToPosition );\n #if defined( SHADOWMAP_TYPE_PCF ) || defined( SHADOWMAP_TYPE_PCF_SOFT ) || defined( SHADOWMAP_TYPE_VSM )\n vec2 offset = vec2( - 1, 1 ) * shadowRadius * texelSize.y;\n return (\n texture2DCompare( shadowMap, cubeToUV( bd3D + offset.xyy, texelSize.y ), dp ) +\n texture2DCompare( shadowMap, cubeToUV( bd3D + offset.yyy, texelSize.y ), dp ) +\n texture2DCompare( shadowMap, cubeToUV( bd3D + offset.xyx, texelSize.y ), dp ) +\n texture2DCompare( shadowMap, cubeToUV( bd3D + offset.yyx, texelSize.y ), dp ) +\n texture2DCompare( shadowMap, cubeToUV( bd3D, texelSize.y ), dp ) +\n texture2DCompare( shadowMap, cubeToUV( bd3D + offset.xxy, texelSize.y ), dp ) +\n texture2DCompare( shadowMap, cubeToUV( bd3D + offset.yxy, texelSize.y ), dp ) +\n texture2DCompare( shadowMap, cubeToUV( bd3D + offset.xxx, texelSize.y ), dp ) +\n texture2DCompare( shadowMap, cubeToUV( bd3D + offset.yxx, texelSize.y ), dp )\n ) * ( 1.0 / 9.0 );\n #else\n return texture2DCompare( shadowMap, cubeToUV( bd3D, texelSize.y ), dp );\n #endif\n }\n#endif"; +var shadowmap_pars_vertex = "#if NUM_SPOT_LIGHT_COORDS > 0\n uniform mat4 spotLightMatrix[ NUM_SPOT_LIGHT_COORDS ];\n varying vec4 vSpotLightCoord[ NUM_SPOT_LIGHT_COORDS ];\n#endif\n#ifdef USE_SHADOWMAP\n #if NUM_DIR_LIGHT_SHADOWS > 0\n uniform mat4 directionalShadowMatrix[ NUM_DIR_LIGHT_SHADOWS ];\n varying vec4 vDirectionalShadowCoord[ NUM_DIR_LIGHT_SHADOWS ];\n struct DirectionalLightShadow {\n float shadowBias;\n float shadowNormalBias;\n float shadowRadius;\n vec2 shadowMapSize;\n };\n uniform DirectionalLightShadow directionalLightShadows[ NUM_DIR_LIGHT_SHADOWS ];\n #endif\n #if NUM_SPOT_LIGHT_SHADOWS > 0\n struct SpotLightShadow {\n float shadowBias;\n float shadowNormalBias;\n float shadowRadius;\n vec2 shadowMapSize;\n };\n uniform SpotLightShadow spotLightShadows[ NUM_SPOT_LIGHT_SHADOWS ];\n #endif\n #if NUM_POINT_LIGHT_SHADOWS > 0\n uniform mat4 pointShadowMatrix[ NUM_POINT_LIGHT_SHADOWS ];\n varying vec4 vPointShadowCoord[ NUM_POINT_LIGHT_SHADOWS ];\n struct PointLightShadow {\n float shadowBias;\n float shadowNormalBias;\n float shadowRadius;\n vec2 shadowMapSize;\n float shadowCameraNear;\n float shadowCameraFar;\n };\n uniform PointLightShadow pointLightShadows[ NUM_POINT_LIGHT_SHADOWS ];\n #endif\n#endif"; +var shadowmap_vertex = "#if defined( USE_SHADOWMAP ) || ( NUM_SPOT_LIGHT_COORDS > 0 )\n #if NUM_DIR_LIGHT_SHADOWS > 0 || NUM_SPOT_LIGHT_COORDS > 0 || NUM_POINT_LIGHT_SHADOWS > 0\n vec3 shadowWorldNormal = inverseTransformDirection( transformedNormal, viewMatrix );\n vec4 shadowWorldPosition;\n #endif\n #if NUM_DIR_LIGHT_SHADOWS > 0\n #pragma unroll_loop_start\n for ( int i = 0; i < NUM_DIR_LIGHT_SHADOWS; i ++ ) {\n shadowWorldPosition = worldPosition + vec4( shadowWorldNormal * directionalLightShadows[ i ].shadowNormalBias, 0 );\n vDirectionalShadowCoord[ i ] = directionalShadowMatrix[ i ] * shadowWorldPosition;\n }\n #pragma unroll_loop_end\n #endif\n #if NUM_SPOT_LIGHT_COORDS > 0\n #pragma unroll_loop_start\n for ( int i = 0; i < NUM_SPOT_LIGHT_COORDS; i ++ ) {\n shadowWorldPosition = worldPosition;\n #if ( defined( USE_SHADOWMAP ) && UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS )\n shadowWorldPosition.xyz += shadowWorldNormal * spotLightShadows[ i ].shadowNormalBias;\n #endif\n vSpotLightCoord[ i ] = spotLightMatrix[ i ] * shadowWorldPosition;\n }\n #pragma unroll_loop_end\n #endif\n #if NUM_POINT_LIGHT_SHADOWS > 0\n #pragma unroll_loop_start\n for ( int i = 0; i < NUM_POINT_LIGHT_SHADOWS; i ++ ) {\n shadowWorldPosition = worldPosition + vec4( shadowWorldNormal * pointLightShadows[ i ].shadowNormalBias, 0 );\n vPointShadowCoord[ i ] = pointShadowMatrix[ i ] * shadowWorldPosition;\n }\n #pragma unroll_loop_end\n #endif\n#endif"; +var shadowmask_pars_fragment = "float getShadowMask() {\n float shadow = 1.0;\n #ifdef USE_SHADOWMAP\n #if NUM_DIR_LIGHT_SHADOWS > 0\n DirectionalLightShadow directionalLight;\n #pragma unroll_loop_start\n for ( int i = 0; i < NUM_DIR_LIGHT_SHADOWS; i ++ ) {\n directionalLight = directionalLightShadows[ i ];\n shadow *= receiveShadow ? getShadow( directionalShadowMap[ i ], directionalLight.shadowMapSize, directionalLight.shadowBias, directionalLight.shadowRadius, vDirectionalShadowCoord[ i ] ) : 1.0;\n }\n #pragma unroll_loop_end\n #endif\n #if NUM_SPOT_LIGHT_SHADOWS > 0\n SpotLightShadow spotLight;\n #pragma unroll_loop_start\n for ( int i = 0; i < NUM_SPOT_LIGHT_SHADOWS; i ++ ) {\n spotLight = spotLightShadows[ i ];\n shadow *= receiveShadow ? getShadow( spotShadowMap[ i ], spotLight.shadowMapSize, spotLight.shadowBias, spotLight.shadowRadius, vSpotLightCoord[ i ] ) : 1.0;\n }\n #pragma unroll_loop_end\n #endif\n #if NUM_POINT_LIGHT_SHADOWS > 0\n PointLightShadow pointLight;\n #pragma unroll_loop_start\n for ( int i = 0; i < NUM_POINT_LIGHT_SHADOWS; i ++ ) {\n pointLight = pointLightShadows[ i ];\n shadow *= receiveShadow ? getPointShadow( pointShadowMap[ i ], pointLight.shadowMapSize, pointLight.shadowBias, pointLight.shadowRadius, vPointShadowCoord[ i ], pointLight.shadowCameraNear, pointLight.shadowCameraFar ) : 1.0;\n }\n #pragma unroll_loop_end\n #endif\n #endif\n return shadow;\n}"; var skinbase_vertex = "#ifdef USE_SKINNING\n mat4 boneMatX = getBoneMatrix( skinIndex.x );\n mat4 boneMatY = getBoneMatrix( skinIndex.y );\n mat4 boneMatZ = getBoneMatrix( skinIndex.z );\n mat4 boneMatW = getBoneMatrix( skinIndex.w );\n#endif"; var skinning_pars_vertex = "#ifdef USE_SKINNING\n uniform mat4 bindMatrix;\n uniform mat4 bindMatrixInverse;\n uniform highp sampler2D boneTexture;\n uniform int boneTextureSize;\n mat4 getBoneMatrix( const in float i ) {\n float j = i * 4.0;\n float x = mod( j, float( boneTextureSize ) );\n float y = floor( j / float( boneTextureSize ) );\n float dx = 1.0 / float( boneTextureSize );\n float dy = 1.0 / float( boneTextureSize );\n y = dy * ( y + 0.5 );\n vec4 v1 = texture2D( boneTexture, vec2( dx * ( x + 0.5 ), y ) );\n vec4 v2 = texture2D( boneTexture, vec2( dx * ( x + 1.5 ), y ) );\n vec4 v3 = texture2D( boneTexture, vec2( dx * ( x + 2.5 ), y ) );\n vec4 v4 = texture2D( boneTexture, vec2( dx * ( x + 3.5 ), y ) );\n mat4 bone = mat4( v1, v2, v3, v4 );\n return bone;\n }\n#endif"; var skinning_vertex = "#ifdef USE_SKINNING\n vec4 skinVertex = bindMatrix * vec4( transformed, 1.0 );\n vec4 skinned = vec4( 0.0 );\n skinned += boneMatX * skinVertex * skinWeight.x;\n skinned += boneMatY * skinVertex * skinWeight.y;\n skinned += boneMatZ * skinVertex * skinWeight.z;\n skinned += boneMatW * skinVertex * skinWeight.w;\n transformed = ( bindMatrixInverse * skinned ).xyz;\n#endif"; @@ -10529,19 +10527,21 @@ var specularmap_fragment = "float specularStrength;\n#ifdef USE_SPECULARMAP\n ve var specularmap_pars_fragment = "#ifdef USE_SPECULARMAP\n uniform sampler2D specularMap;\n#endif"; var tonemapping_fragment = "#if defined( TONE_MAPPING )\n gl_FragColor.rgb = toneMapping( gl_FragColor.rgb );\n#endif"; var tonemapping_pars_fragment = "#ifndef saturate\n#define saturate( a ) clamp( a, 0.0, 1.0 )\n#endif\nuniform float toneMappingExposure;\nvec3 LinearToneMapping( vec3 color ) {\n return toneMappingExposure * color;\n}\nvec3 ReinhardToneMapping( vec3 color ) {\n color *= toneMappingExposure;\n return saturate( color / ( vec3( 1.0 ) + color ) );\n}\nvec3 OptimizedCineonToneMapping( vec3 color ) {\n color *= toneMappingExposure;\n color = max( vec3( 0.0 ), color - 0.004 );\n return pow( ( color * ( 6.2 * color + 0.5 ) ) / ( color * ( 6.2 * color + 1.7 ) + 0.06 ), vec3( 2.2 ) );\n}\nvec3 RRTAndODTFit( vec3 v ) {\n vec3 a = v * ( v + 0.0245786 ) - 0.000090537;\n vec3 b = v * ( 0.983729 * v + 0.4329510 ) + 0.238081;\n return a / b;\n}\nvec3 ACESFilmicToneMapping( vec3 color ) {\n const mat3 ACESInputMat = mat3(\n vec3( 0.59719, 0.07600, 0.02840 ), vec3( 0.35458, 0.90834, 0.13383 ),\n vec3( 0.04823, 0.01566, 0.83777 )\n );\n const mat3 ACESOutputMat = mat3(\n vec3( 1.60475, -0.10208, -0.00327 ), vec3( -0.53108, 1.10813, -0.07276 ),\n vec3( -0.07367, -0.00605, 1.07602 )\n );\n color *= toneMappingExposure / 0.6;\n color = ACESInputMat * color;\n color = RRTAndODTFit( color );\n color = ACESOutputMat * color;\n return saturate( color );\n}\nvec3 CustomToneMapping( vec3 color ) { return color; }"; -var transmission_fragment = "#ifdef USE_TRANSMISSION\n float transmissionAlpha = 1.0;\n float transmissionFactor = transmission;\n float thicknessFactor = thickness;\n #ifdef USE_TRANSMISSIONMAP\n transmissionFactor *= texture2D( transmissionMap, vUv ).r;\n #endif\n #ifdef USE_THICKNESSMAP\n thicknessFactor *= texture2D( thicknessMap, vUv ).g;\n #endif\n vec3 pos = vWorldPosition;\n vec3 v = normalize( cameraPosition - pos );\n vec3 n = inverseTransformDirection( normal, viewMatrix );\n vec4 transmission = getIBLVolumeRefraction(\n n, v, roughnessFactor, material.diffuseColor, material.specularColor, material.specularF90,\n pos, modelMatrix, viewMatrix, projectionMatrix, ior, thicknessFactor,\n attenuationColor, attenuationDistance );\n totalDiffuse = mix( totalDiffuse, transmission.rgb, transmissionFactor );\n transmissionAlpha = mix( transmissionAlpha, transmission.a, transmissionFactor );\n#endif"; -var transmission_pars_fragment = "#ifdef USE_TRANSMISSION\n uniform float transmission;\n uniform float thickness;\n uniform float attenuationDistance;\n uniform vec3 attenuationColor;\n #ifdef USE_TRANSMISSIONMAP\n uniform sampler2D transmissionMap;\n #endif\n #ifdef USE_THICKNESSMAP\n uniform sampler2D thicknessMap;\n #endif\n uniform vec2 transmissionSamplerSize;\n uniform sampler2D transmissionSamplerMap;\n uniform mat4 modelMatrix;\n uniform mat4 projectionMatrix;\n varying vec3 vWorldPosition;\n vec3 getVolumeTransmissionRay( const in vec3 n, const in vec3 v, const in float thickness, const in float ior, const in mat4 modelMatrix ) {\n vec3 refractionVector = refract( - v, normalize( n ), 1.0 / ior );\n vec3 modelScale;\n modelScale.x = length( vec3( modelMatrix[ 0 ].xyz ) );\n modelScale.y = length( vec3( modelMatrix[ 1 ].xyz ) );\n modelScale.z = length( vec3( modelMatrix[ 2 ].xyz ) );\n return normalize( refractionVector ) * thickness * modelScale;\n }\n float applyIorToRoughness( const in float roughness, const in float ior ) {\n return roughness * clamp( ior * 2.0 - 2.0, 0.0, 1.0 );\n }\n vec4 getTransmissionSample( const in vec2 fragCoord, const in float roughness, const in float ior ) {\n float framebufferLod = log2( transmissionSamplerSize.x ) * applyIorToRoughness( roughness, ior );\n #ifdef texture2DLodEXT\n return texture2DLodEXT( transmissionSamplerMap, fragCoord.xy, framebufferLod );\n #else\n return texture2D( transmissionSamplerMap, fragCoord.xy, framebufferLod );\n #endif\n }\n vec3 applyVolumeAttenuation( const in vec3 radiance, const in float transmissionDistance, const in vec3 attenuationColor, const in float attenuationDistance ) {\n if ( attenuationDistance == 0.0 ) {\n return radiance;\n } else {\n vec3 attenuationCoefficient = -log( attenuationColor ) / attenuationDistance;\n vec3 transmittance = exp( - attenuationCoefficient * transmissionDistance ); return transmittance * radiance;\n }\n }\n vec4 getIBLVolumeRefraction( const in vec3 n, const in vec3 v, const in float roughness, const in vec3 diffuseColor,\n const in vec3 specularColor, const in float specularF90, const in vec3 position, const in mat4 modelMatrix,\n const in mat4 viewMatrix, const in mat4 projMatrix, const in float ior, const in float thickness,\n const in vec3 attenuationColor, const in float attenuationDistance ) {\n vec3 transmissionRay = getVolumeTransmissionRay( n, v, thickness, ior, modelMatrix );\n vec3 refractedRayExit = position + transmissionRay;\n vec4 ndcPos = projMatrix * viewMatrix * vec4( refractedRayExit, 1.0 );\n vec2 refractionCoords = ndcPos.xy / ndcPos.w;\n refractionCoords += 1.0;\n refractionCoords /= 2.0;\n vec4 transmittedLight = getTransmissionSample( refractionCoords, roughness, ior );\n vec3 attenuatedColor = applyVolumeAttenuation( transmittedLight.rgb, length( transmissionRay ), attenuationColor, attenuationDistance );\n vec3 F = EnvironmentBRDF( n, v, specularColor, specularF90, roughness );\n return vec4( ( 1.0 - F ) * attenuatedColor * diffuseColor, transmittedLight.a );\n }\n#endif"; +var transmission_fragment = "#ifdef USE_TRANSMISSION\n material.transmission = transmission;\n material.transmissionAlpha = 1.0;\n material.thickness = thickness;\n material.attenuationDistance = attenuationDistance;\n material.attenuationColor = attenuationColor;\n #ifdef USE_TRANSMISSIONMAP\n material.transmission *= texture2D( transmissionMap, vUv ).r;\n #endif\n #ifdef USE_THICKNESSMAP\n material.thickness *= texture2D( thicknessMap, vUv ).g;\n #endif\n vec3 pos = vWorldPosition;\n vec3 v = normalize( cameraPosition - pos );\n vec3 n = inverseTransformDirection( normal, viewMatrix );\n vec4 transmission = getIBLVolumeRefraction(\n n, v, material.roughness, material.diffuseColor, material.specularColor, material.specularF90,\n pos, modelMatrix, viewMatrix, projectionMatrix, material.ior, material.thickness,\n material.attenuationColor, material.attenuationDistance );\n material.transmissionAlpha = mix( material.transmissionAlpha, transmission.a, material.transmission );\n totalDiffuse = mix( totalDiffuse, transmission.rgb, material.transmission );\n#endif"; +var transmission_pars_fragment = "#ifdef USE_TRANSMISSION\n uniform float transmission;\n uniform float thickness;\n uniform float attenuationDistance;\n uniform vec3 attenuationColor;\n #ifdef USE_TRANSMISSIONMAP\n uniform sampler2D transmissionMap;\n #endif\n #ifdef USE_THICKNESSMAP\n uniform sampler2D thicknessMap;\n #endif\n uniform vec2 transmissionSamplerSize;\n uniform sampler2D transmissionSamplerMap;\n uniform mat4 modelMatrix;\n uniform mat4 projectionMatrix;\n varying vec3 vWorldPosition;\n vec3 getVolumeTransmissionRay( const in vec3 n, const in vec3 v, const in float thickness, const in float ior, const in mat4 modelMatrix ) {\n vec3 refractionVector = refract( - v, normalize( n ), 1.0 / ior );\n vec3 modelScale;\n modelScale.x = length( vec3( modelMatrix[ 0 ].xyz ) );\n modelScale.y = length( vec3( modelMatrix[ 1 ].xyz ) );\n modelScale.z = length( vec3( modelMatrix[ 2 ].xyz ) );\n return normalize( refractionVector ) * thickness * modelScale;\n }\n float applyIorToRoughness( const in float roughness, const in float ior ) {\n return roughness * clamp( ior * 2.0 - 2.0, 0.0, 1.0 );\n }\n vec4 getTransmissionSample( const in vec2 fragCoord, const in float roughness, const in float ior ) {\n float framebufferLod = log2( transmissionSamplerSize.x ) * applyIorToRoughness( roughness, ior );\n #ifdef texture2DLodEXT\n return texture2DLodEXT( transmissionSamplerMap, fragCoord.xy, framebufferLod );\n #else\n return texture2D( transmissionSamplerMap, fragCoord.xy, framebufferLod );\n #endif\n }\n vec3 applyVolumeAttenuation( const in vec3 radiance, const in float transmissionDistance, const in vec3 attenuationColor, const in float attenuationDistance ) {\n if ( isinf( attenuationDistance ) ) {\n return radiance;\n } else {\n vec3 attenuationCoefficient = -log( attenuationColor ) / attenuationDistance;\n vec3 transmittance = exp( - attenuationCoefficient * transmissionDistance ); return transmittance * radiance;\n }\n }\n vec4 getIBLVolumeRefraction( const in vec3 n, const in vec3 v, const in float roughness, const in vec3 diffuseColor,\n const in vec3 specularColor, const in float specularF90, const in vec3 position, const in mat4 modelMatrix,\n const in mat4 viewMatrix, const in mat4 projMatrix, const in float ior, const in float thickness,\n const in vec3 attenuationColor, const in float attenuationDistance ) {\n vec3 transmissionRay = getVolumeTransmissionRay( n, v, thickness, ior, modelMatrix );\n vec3 refractedRayExit = position + transmissionRay;\n vec4 ndcPos = projMatrix * viewMatrix * vec4( refractedRayExit, 1.0 );\n vec2 refractionCoords = ndcPos.xy / ndcPos.w;\n refractionCoords += 1.0;\n refractionCoords /= 2.0;\n vec4 transmittedLight = getTransmissionSample( refractionCoords, roughness, ior );\n vec3 attenuatedColor = applyVolumeAttenuation( transmittedLight.rgb, length( transmissionRay ), attenuationColor, attenuationDistance );\n vec3 F = EnvironmentBRDF( n, v, specularColor, specularF90, roughness );\n return vec4( ( 1.0 - F ) * attenuatedColor * diffuseColor, transmittedLight.a );\n }\n#endif"; var uv_pars_fragment = "#if ( defined( USE_UV ) && ! defined( UVS_VERTEX_ONLY ) )\n varying vec2 vUv;\n#endif"; var uv_pars_vertex = "#ifdef USE_UV\n #ifdef UVS_VERTEX_ONLY\n vec2 vUv;\n #else\n varying vec2 vUv;\n #endif\n uniform mat3 uvTransform;\n#endif"; var uv_vertex = "#ifdef USE_UV\n vUv = ( uvTransform * vec3( uv, 1 ) ).xy;\n#endif"; var uv2_pars_fragment = "#if defined( USE_LIGHTMAP ) || defined( USE_AOMAP )\n varying vec2 vUv2;\n#endif"; var uv2_pars_vertex = "#if defined( USE_LIGHTMAP ) || defined( USE_AOMAP )\n attribute vec2 uv2;\n varying vec2 vUv2;\n uniform mat3 uv2Transform;\n#endif"; var uv2_vertex = "#if defined( USE_LIGHTMAP ) || defined( USE_AOMAP )\n vUv2 = ( uv2Transform * vec3( uv2, 1 ) ).xy;\n#endif"; -var worldpos_vertex = "#if defined( USE_ENVMAP ) || defined( DISTANCE ) || defined ( USE_SHADOWMAP ) || defined ( USE_TRANSMISSION )\n vec4 worldPosition = vec4( transformed, 1.0 );\n #ifdef USE_INSTANCING\n worldPosition = instanceMatrix * worldPosition;\n #endif\n worldPosition = modelMatrix * worldPosition;\n#endif"; -var vertex$g = "varying vec2 vUv;\nuniform mat3 uvTransform;\nvoid main() {\n vUv = ( uvTransform * vec3( uv, 1 ) ).xy;\n gl_Position = vec4( position.xy, 1.0, 1.0 );\n}"; -var fragment$g = "uniform sampler2D t2D;\nvarying vec2 vUv;\nvoid main() {\n gl_FragColor = texture2D( t2D, vUv );\n #ifdef DECODE_VIDEO_TEXTURE\n gl_FragColor = vec4( mix( pow( gl_FragColor.rgb * 0.9478672986 + vec3( 0.0521327014 ), vec3( 2.4 ) ), gl_FragColor.rgb * 0.0773993808, vec3( lessThanEqual( gl_FragColor.rgb, vec3( 0.04045 ) ) ) ), gl_FragColor.w );\n #endif\n #include \n #include \n}"; +var worldpos_vertex = "#if defined( USE_ENVMAP ) || defined( DISTANCE ) || defined ( USE_SHADOWMAP ) || defined ( USE_TRANSMISSION ) || NUM_SPOT_LIGHT_COORDS > 0\n vec4 worldPosition = vec4( transformed, 1.0 );\n #ifdef USE_INSTANCING\n worldPosition = instanceMatrix * worldPosition;\n #endif\n worldPosition = modelMatrix * worldPosition;\n#endif"; +var vertex$h = "varying vec2 vUv;\nuniform mat3 uvTransform;\nvoid main() {\n vUv = ( uvTransform * vec3( uv, 1 ) ).xy;\n gl_Position = vec4( position.xy, 1.0, 1.0 );\n}"; +var fragment$h = "uniform sampler2D t2D;\nvarying vec2 vUv;\nvoid main() {\n gl_FragColor = texture2D( t2D, vUv );\n #ifdef DECODE_VIDEO_TEXTURE\n gl_FragColor = vec4( mix( pow( gl_FragColor.rgb * 0.9478672986 + vec3( 0.0521327014 ), vec3( 2.4 ) ), gl_FragColor.rgb * 0.0773993808, vec3( lessThanEqual( gl_FragColor.rgb, vec3( 0.04045 ) ) ) ), gl_FragColor.w );\n #endif\n #include \n #include \n}"; +var vertex$g = "varying vec3 vWorldDirection;\n#include \nvoid main() {\n vWorldDirection = transformDirection( position, modelMatrix );\n #include \n #include \n gl_Position.z = gl_Position.w;\n}"; +var fragment$g = "#ifdef ENVMAP_TYPE_CUBE\n uniform samplerCube envMap;\n#elif defined( ENVMAP_TYPE_CUBE_UV )\n uniform sampler2D envMap;\n#endif\nuniform float flipEnvMap;\nuniform float backgroundBlurriness;\nvarying vec3 vWorldDirection;\n#include \nvoid main() {\n #ifdef ENVMAP_TYPE_CUBE\n vec4 texColor = textureCube( envMap, vec3( flipEnvMap * vWorldDirection.x, vWorldDirection.yz ) );\n #elif defined( ENVMAP_TYPE_CUBE_UV )\n vec4 texColor = textureCubeUV( envMap, vWorldDirection, backgroundBlurriness );\n #else\n vec4 texColor = vec4( 0.0, 0.0, 0.0, 1.0 );\n #endif\n gl_FragColor = texColor;\n #include \n #include \n}"; var vertex$f = "varying vec3 vWorldDirection;\n#include \nvoid main() {\n vWorldDirection = transformDirection( position, modelMatrix );\n #include \n #include \n gl_Position.z = gl_Position.w;\n}"; -var fragment$f = "#include \nuniform float opacity;\nvarying vec3 vWorldDirection;\n#include \nvoid main() {\n vec3 vReflect = vWorldDirection;\n #include \n gl_FragColor = envColor;\n gl_FragColor.a *= opacity;\n #include \n #include \n}"; +var fragment$f = "uniform samplerCube tCube;\nuniform float tFlip;\nuniform float opacity;\nvarying vec3 vWorldDirection;\nvoid main() {\n vec4 texColor = textureCube( tCube, vec3( tFlip * vWorldDirection.x, vWorldDirection.yz ) );\n gl_FragColor = texColor;\n gl_FragColor.a *= opacity;\n #include \n #include \n}"; var vertex$e = "#include \n#include \n#include \n#include \n#include \n#include \n#include \nvarying vec2 vHighPrecisionZW;\nvoid main() {\n #include \n #include \n #ifdef USE_DISPLACEMENTMAP\n #include \n #include \n #include \n #endif\n #include \n #include \n #include \n #include \n #include \n #include \n #include \n vHighPrecisionZW = gl_Position.zw;\n}"; var fragment$e = "#if DEPTH_PACKING == 3200\n uniform float opacity;\n#endif\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvarying vec2 vHighPrecisionZW;\nvoid main() {\n #include \n vec4 diffuseColor = vec4( 1.0 );\n #if DEPTH_PACKING == 3200\n diffuseColor.a = opacity;\n #endif\n #include \n #include \n #include \n #include \n float fragCoordZ = 0.5 * vHighPrecisionZW[0] / vHighPrecisionZW[1] + 0.5;\n #if DEPTH_PACKING == 3200\n gl_FragColor = vec4( vec3( 1.0 - fragCoordZ ), opacity );\n #elif DEPTH_PACKING == 3201\n gl_FragColor = packDepthToRGBA( fragCoordZ );\n #endif\n}"; var vertex$d = "#define DISTANCE\nvarying vec3 vWorldPosition;\n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n #include \n #include \n #ifdef USE_DISPLACEMENTMAP\n #include \n #include \n #include \n #endif\n #include \n #include \n #include \n #include \n #include \n #include \n #include \n vWorldPosition = worldPosition.xyz;\n}"; @@ -10551,15 +10551,15 @@ var fragment$c = "uniform sampler2D tEquirect;\nvarying vec3 vWorldDirection;\n# var vertex$b = "uniform float scale;\nattribute float lineDistance;\nvarying float vLineDistance;\n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n vLineDistance = scale * lineDistance;\n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n}"; var fragment$b = "uniform vec3 diffuse;\nuniform float opacity;\nuniform float dashSize;\nuniform float totalSize;\nvarying float vLineDistance;\n#include \n#include \n#include \n#include \n#include \nvoid main() {\n #include \n if ( mod( vLineDistance, totalSize ) > dashSize ) {\n discard;\n }\n vec3 outgoingLight = vec3( 0.0 );\n vec4 diffuseColor = vec4( diffuse, opacity );\n #include \n #include \n outgoingLight = diffuseColor.rgb;\n #include \n #include \n #include \n #include \n #include \n}"; var vertex$a = "#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n #include \n #include \n #include \n #include \n #if defined ( USE_ENVMAP ) || defined ( USE_SKINNING )\n #include \n #include \n #include \n #include \n #include \n #endif\n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n}"; -var fragment$a = "uniform vec3 diffuse;\nuniform float opacity;\n#ifndef FLAT_SHADED\n varying vec3 vNormal;\n#endif\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n #include \n vec4 diffuseColor = vec4( diffuse, opacity );\n #include \n #include \n #include \n #include \n #include \n #include \n ReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );\n #ifdef USE_LIGHTMAP\n vec4 lightMapTexel = texture2D( lightMap, vUv2 );\n reflectedLight.indirectDiffuse += lightMapTexel.rgb * lightMapIntensity * RECIPROCAL_PI;\n #else\n reflectedLight.indirectDiffuse += vec3( 1.0 );\n #endif\n #include \n reflectedLight.indirectDiffuse *= diffuseColor.rgb;\n vec3 outgoingLight = reflectedLight.indirectDiffuse;\n #include \n #include \n #include \n #include \n #include \n #include \n #include \n}"; -var vertex$9 = "#define LAMBERT\nvarying vec3 vLightFront;\nvarying vec3 vIndirectFront;\n#ifdef DOUBLE_SIDED\n varying vec3 vLightBack;\n varying vec3 vIndirectBack;\n#endif\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n}"; -var fragment$9 = "uniform vec3 diffuse;\nuniform vec3 emissive;\nuniform float opacity;\nvarying vec3 vLightFront;\nvarying vec3 vIndirectFront;\n#ifdef DOUBLE_SIDED\n varying vec3 vLightBack;\n varying vec3 vIndirectBack;\n#endif\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n #include \n vec4 diffuseColor = vec4( diffuse, opacity );\n ReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );\n vec3 totalEmissiveRadiance = emissive;\n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #ifdef DOUBLE_SIDED\n reflectedLight.indirectDiffuse += ( gl_FrontFacing ) ? vIndirectFront : vIndirectBack;\n #else\n reflectedLight.indirectDiffuse += vIndirectFront;\n #endif\n #include \n reflectedLight.indirectDiffuse *= BRDF_Lambert( diffuseColor.rgb );\n #ifdef DOUBLE_SIDED\n reflectedLight.directDiffuse = ( gl_FrontFacing ) ? vLightFront : vLightBack;\n #else\n reflectedLight.directDiffuse = vLightFront;\n #endif\n reflectedLight.directDiffuse *= BRDF_Lambert( diffuseColor.rgb ) * getShadowMask();\n #include \n vec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + totalEmissiveRadiance;\n #include \n #include \n #include \n #include \n #include \n #include \n #include \n}"; +var fragment$a = "uniform vec3 diffuse;\nuniform float opacity;\n#ifndef FLAT_SHADED\n varying vec3 vNormal;\n#endif\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n #include \n vec4 diffuseColor = vec4( diffuse, opacity );\n #include \n #include \n #include \n #include \n #include \n #include \n ReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );\n #ifdef USE_LIGHTMAP\n vec4 lightMapTexel = texture2D( lightMap, vUv2 );\n reflectedLight.indirectDiffuse += lightMapTexel.rgb * lightMapIntensity * RECIPROCAL_PI;\n #else\n reflectedLight.indirectDiffuse += vec3( 1.0 );\n #endif\n #include \n reflectedLight.indirectDiffuse *= diffuseColor.rgb;\n vec3 outgoingLight = reflectedLight.indirectDiffuse;\n #include \n #include \n #include \n #include \n #include \n #include \n #include \n}"; +var vertex$9 = "#define LAMBERT\nvarying vec3 vViewPosition;\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n vViewPosition = - mvPosition.xyz;\n #include \n #include \n #include \n #include \n}"; +var fragment$9 = "#define LAMBERT\nuniform vec3 diffuse;\nuniform vec3 emissive;\nuniform float opacity;\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n #include \n vec4 diffuseColor = vec4( diffuse, opacity );\n ReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );\n vec3 totalEmissiveRadiance = emissive;\n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n vec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + totalEmissiveRadiance;\n #include \n #include \n #include \n #include \n #include \n #include \n #include \n}"; var vertex$8 = "#define MATCAP\nvarying vec3 vViewPosition;\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n vViewPosition = - mvPosition.xyz;\n}"; var fragment$8 = "#define MATCAP\nuniform vec3 diffuse;\nuniform float opacity;\nuniform sampler2D matcap;\nvarying vec3 vViewPosition;\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n #include \n vec4 diffuseColor = vec4( diffuse, opacity );\n #include \n #include \n #include \n #include \n #include \n #include \n #include \n vec3 viewDir = normalize( vViewPosition );\n vec3 x = normalize( vec3( viewDir.z, 0.0, - viewDir.x ) );\n vec3 y = cross( viewDir, x );\n vec2 uv = vec2( dot( x, normal ), dot( y, normal ) ) * 0.495 + 0.5;\n #ifdef USE_MATCAP\n vec4 matcapColor = texture2D( matcap, uv );\n #else\n vec4 matcapColor = vec4( vec3( mix( 0.2, 0.8, uv.y ) ), 1.0 );\n #endif\n vec3 outgoingLight = diffuseColor.rgb * matcapColor.rgb;\n #include \n #include \n #include \n #include \n #include \n #include \n}"; var vertex$7 = "#define NORMAL\n#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( TANGENTSPACE_NORMALMAP )\n varying vec3 vViewPosition;\n#endif\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( TANGENTSPACE_NORMALMAP )\n vViewPosition = - mvPosition.xyz;\n#endif\n}"; var fragment$7 = "#define NORMAL\nuniform float opacity;\n#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( TANGENTSPACE_NORMALMAP )\n varying vec3 vViewPosition;\n#endif\n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n #include \n #include \n #include \n #include \n gl_FragColor = vec4( packNormalToRGB( normal ), opacity );\n #ifdef OPAQUE\n gl_FragColor.a = 1.0;\n #endif\n}"; var vertex$6 = "#define PHONG\nvarying vec3 vViewPosition;\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n vViewPosition = - mvPosition.xyz;\n #include \n #include \n #include \n #include \n}"; -var fragment$6 = "#define PHONG\nuniform vec3 diffuse;\nuniform vec3 emissive;\nuniform vec3 specular;\nuniform float shininess;\nuniform float opacity;\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n #include \n vec4 diffuseColor = vec4( diffuse, opacity );\n ReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );\n vec3 totalEmissiveRadiance = emissive;\n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n vec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + reflectedLight.directSpecular + reflectedLight.indirectSpecular + totalEmissiveRadiance;\n #include \n #include \n #include \n #include \n #include \n #include \n #include \n}"; +var fragment$6 = "#define PHONG\nuniform vec3 diffuse;\nuniform vec3 emissive;\nuniform vec3 specular;\nuniform float shininess;\nuniform float opacity;\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n #include \n vec4 diffuseColor = vec4( diffuse, opacity );\n ReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );\n vec3 totalEmissiveRadiance = emissive;\n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n vec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + reflectedLight.directSpecular + reflectedLight.indirectSpecular + totalEmissiveRadiance;\n #include \n #include \n #include \n #include \n #include \n #include \n #include \n}"; var vertex$5 = "#define STANDARD\nvarying vec3 vViewPosition;\n#ifdef USE_TRANSMISSION\n varying vec3 vWorldPosition;\n#endif\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n vViewPosition = - mvPosition.xyz;\n #include \n #include \n #include \n#ifdef USE_TRANSMISSION\n vWorldPosition = worldPosition.xyz;\n#endif\n}"; var fragment$5 = "#define STANDARD\n#ifdef PHYSICAL\n #define IOR\n #define SPECULAR\n#endif\nuniform vec3 diffuse;\nuniform vec3 emissive;\nuniform float roughness;\nuniform float metalness;\nuniform float opacity;\n#ifdef IOR\n uniform float ior;\n#endif\n#ifdef SPECULAR\n uniform float specularIntensity;\n uniform vec3 specularColor;\n #ifdef USE_SPECULARINTENSITYMAP\n uniform sampler2D specularIntensityMap;\n #endif\n #ifdef USE_SPECULARCOLORMAP\n uniform sampler2D specularColorMap;\n #endif\n#endif\n#ifdef USE_CLEARCOAT\n uniform float clearcoat;\n uniform float clearcoatRoughness;\n#endif\n#ifdef USE_IRIDESCENCE\n uniform float iridescence;\n uniform float iridescenceIOR;\n uniform float iridescenceThicknessMinimum;\n uniform float iridescenceThicknessMaximum;\n#endif\n#ifdef USE_SHEEN\n uniform vec3 sheenColor;\n uniform float sheenRoughness;\n #ifdef USE_SHEENCOLORMAP\n uniform sampler2D sheenColorMap;\n #endif\n #ifdef USE_SHEENROUGHNESSMAP\n uniform sampler2D sheenRoughnessMap;\n #endif\n#endif\nvarying vec3 vViewPosition;\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n #include \n vec4 diffuseColor = vec4( diffuse, opacity );\n ReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );\n vec3 totalEmissiveRadiance = emissive;\n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n vec3 totalDiffuse = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse;\n vec3 totalSpecular = reflectedLight.directSpecular + reflectedLight.indirectSpecular;\n #include \n vec3 outgoingLight = totalDiffuse + totalSpecular + totalEmissiveRadiance;\n #ifdef USE_SHEEN\n float sheenEnergyComp = 1.0 - 0.157 * max3( material.sheenColor );\n outgoingLight = outgoingLight * sheenEnergyComp + sheenSpecular;\n #endif\n #ifdef USE_CLEARCOAT\n float dotNVcc = saturate( dot( geometry.clearcoatNormal, geometry.viewDir ) );\n vec3 Fcc = F_Schlick( material.clearcoatF0, material.clearcoatF90, dotNVcc );\n outgoingLight = outgoingLight * ( 1.0 - material.clearcoat * Fcc ) + clearcoatSpecular * material.clearcoat;\n #endif\n #include \n #include \n #include \n #include \n #include \n #include \n}"; var vertex$4 = "#define TOON\nvarying vec3 vViewPosition;\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n #include \n vViewPosition = - mvPosition.xyz;\n #include \n #include \n #include \n}"; @@ -10612,7 +10612,8 @@ var ShaderChunk = { gradientmap_pars_fragment, lightmap_fragment, lightmap_pars_fragment, - lights_lambert_vertex, + lights_lambert_fragment, + lights_lambert_pars_fragment, lights_pars_begin, lights_toon_fragment, lights_toon_pars_fragment, @@ -10676,8 +10677,10 @@ var ShaderChunk = { uv2_pars_vertex, uv2_vertex, worldpos_vertex, - background_vert: vertex$g, - background_frag: fragment$g, + background_vert: vertex$h, + background_frag: fragment$h, + backgroundCube_vert: vertex$g, + backgroundCube_frag: fragment$g, cube_vert: vertex$f, cube_frag: fragment$f, depth_vert: vertex$e, @@ -10798,8 +10801,9 @@ var UniformsLib = { shadowRadius: {}, shadowMapSize: {} } }, + spotLightMap: { value: [] }, spotShadowMap: { value: [] }, - spotShadowMatrix: { value: [] }, + spotLightMatrix: { value: [] }, pointLights: { value: [], properties: { color: {}, position: {}, @@ -10872,6 +10876,9 @@ var ShaderLib = { UniformsLib.aomap, UniformsLib.lightmap, UniformsLib.emissivemap, + UniformsLib.bumpmap, + UniformsLib.normalmap, + UniformsLib.displacementmap, UniformsLib.fog, UniformsLib.lights, { @@ -11018,13 +11025,21 @@ var ShaderLib = { vertexShader: ShaderChunk.background_vert, fragmentShader: ShaderChunk.background_frag }, + backgroundCube: { + uniforms: { + envMap: { value: null }, + flipEnvMap: { value: -1 }, + backgroundBlurriness: { value: 0 } + }, + vertexShader: ShaderChunk.backgroundCube_vert, + fragmentShader: ShaderChunk.backgroundCube_frag + }, cube: { - uniforms: /* @__PURE__ */ mergeUniforms([ - UniformsLib.envmap, - { - opacity: { value: 1 } - } - ]), + uniforms: { + tCube: { value: null }, + tFlip: { value: -1 }, + opacity: { value: 1 } + }, vertexShader: ShaderChunk.cube_vert, fragmentShader: ShaderChunk.cube_frag }, @@ -11099,7 +11114,7 @@ ShaderLib.physical = { vertexShader: ShaderChunk.meshphysical_vert, fragmentShader: ShaderChunk.meshphysical_frag }; -function WebGLBackground(renderer3, cubemaps, state, objects, alpha, premultipliedAlpha) { +function WebGLBackground(renderer3, cubemaps, cubeuvmaps, state, objects, alpha, premultipliedAlpha) { const clearColor = new Color(0); let clearAlpha = alpha === true ? 0 : 1; let planeMesh; @@ -11111,7 +11126,8 @@ function WebGLBackground(renderer3, cubemaps, state, objects, alpha, premultipli let forceClear = false; let background = scene3.isScene === true ? scene3.background : null; if (background && background.isTexture) { - background = cubemaps.get(background); + const usePMREM = scene3.backgroundBlurriness > 0; + background = (usePMREM ? cubeuvmaps : cubemaps).get(background); } const xr = renderer3.xr; const session = xr.getSession && xr.getSession(); @@ -11131,9 +11147,9 @@ function WebGLBackground(renderer3, cubemaps, state, objects, alpha, premultipli if (boxMesh === void 0) { boxMesh = new Mesh(new BoxGeometry(1, 1, 1), new ShaderMaterial({ name: "BackgroundCubeMaterial", - uniforms: cloneUniforms(ShaderLib.cube.uniforms), - vertexShader: ShaderLib.cube.vertexShader, - fragmentShader: ShaderLib.cube.fragmentShader, + uniforms: cloneUniforms(ShaderLib.backgroundCube.uniforms), + vertexShader: ShaderLib.backgroundCube.vertexShader, + fragmentShader: ShaderLib.backgroundCube.fragmentShader, side: BackSide, depthTest: false, depthWrite: false, @@ -11153,6 +11169,7 @@ function WebGLBackground(renderer3, cubemaps, state, objects, alpha, premultipli } boxMesh.material.uniforms.envMap.value = background; boxMesh.material.uniforms.flipEnvMap.value = background.isCubeTexture && background.isRenderTargetTexture === false ? -1 : 1; + boxMesh.material.uniforms.backgroundBlurriness.value = scene3.backgroundBlurriness; if (currentBackground !== background || currentBackgroundVersion !== background.version || currentTonemapping !== renderer3.toneMapping) { boxMesh.material.needsUpdate = true; currentBackground = background; @@ -12759,23 +12776,6 @@ function numericalSort(a2, b) { function absNumericalSort(a2, b) { return Math.abs(b[1]) - Math.abs(a2[1]); } -function denormalize(morph, attribute) { - let denominator = 1; - const array = attribute.isInterleavedBufferAttribute ? attribute.data.array : attribute.array; - if (array instanceof Int8Array) - denominator = 127; - else if (array instanceof Uint8Array) - denominator = 255; - else if (array instanceof Uint16Array) - denominator = 65535; - else if (array instanceof Int16Array) - denominator = 32767; - else if (array instanceof Int32Array) - denominator = 2147483647; - else - console.error("THREE.WebGLMorphtargets: Unsupported morph attribute data type: ", array); - morph.divideScalar(denominator); -} function WebGLMorphtargets(gl, capabilities, textures) { const influencesList = {}; const morphInfluences = new Float32Array(8); @@ -12832,8 +12832,6 @@ function WebGLMorphtargets(gl, capabilities, textures) { const stride = j * vertexDataStride; if (hasMorphPosition === true) { morph.fromBufferAttribute(morphTarget, j); - if (morphTarget.normalized === true) - denormalize(morph, morphTarget); buffer[offset + stride + 0] = morph.x; buffer[offset + stride + 1] = morph.y; buffer[offset + stride + 2] = morph.z; @@ -12841,8 +12839,6 @@ function WebGLMorphtargets(gl, capabilities, textures) { } if (hasMorphNormals === true) { morph.fromBufferAttribute(morphNormal, j); - if (morphNormal.normalized === true) - denormalize(morph, morphNormal); buffer[offset + stride + 4] = morph.x; buffer[offset + stride + 5] = morph.y; buffer[offset + stride + 6] = morph.z; @@ -12850,8 +12846,6 @@ function WebGLMorphtargets(gl, capabilities, textures) { } if (hasMorphColors === true) { morph.fromBufferAttribute(morphColor, j); - if (morphColor.normalized === true) - denormalize(morph, morphColor); buffer[offset + stride + 8] = morph.x; buffer[offset + stride + 9] = morph.y; buffer[offset + stride + 10] = morph.z; @@ -13145,24 +13139,51 @@ function setValueV1i(gl, v) { } function setValueV2i(gl, v) { const cache = this.cache; - if (arraysEqual(cache, v)) - return; - gl.uniform2iv(this.addr, v); - copyArray(cache, v); + if (v.x !== void 0) { + if (cache[0] !== v.x || cache[1] !== v.y) { + gl.uniform2i(this.addr, v.x, v.y); + cache[0] = v.x; + cache[1] = v.y; + } + } else { + if (arraysEqual(cache, v)) + return; + gl.uniform2iv(this.addr, v); + copyArray(cache, v); + } } function setValueV3i(gl, v) { const cache = this.cache; - if (arraysEqual(cache, v)) - return; - gl.uniform3iv(this.addr, v); - copyArray(cache, v); + if (v.x !== void 0) { + if (cache[0] !== v.x || cache[1] !== v.y || cache[2] !== v.z) { + gl.uniform3i(this.addr, v.x, v.y, v.z); + cache[0] = v.x; + cache[1] = v.y; + cache[2] = v.z; + } + } else { + if (arraysEqual(cache, v)) + return; + gl.uniform3iv(this.addr, v); + copyArray(cache, v); + } } function setValueV4i(gl, v) { const cache = this.cache; - if (arraysEqual(cache, v)) - return; - gl.uniform4iv(this.addr, v); - copyArray(cache, v); + if (v.x !== void 0) { + if (cache[0] !== v.x || cache[1] !== v.y || cache[2] !== v.z || cache[3] !== v.w) { + gl.uniform4i(this.addr, v.x, v.y, v.z, v.w); + cache[0] = v.x; + cache[1] = v.y; + cache[2] = v.z; + cache[3] = v.w; + } + } else { + if (arraysEqual(cache, v)) + return; + gl.uniform4iv(this.addr, v); + copyArray(cache, v); + } } function setValueV1ui(gl, v) { const cache = this.cache; @@ -13173,24 +13194,51 @@ function setValueV1ui(gl, v) { } function setValueV2ui(gl, v) { const cache = this.cache; - if (arraysEqual(cache, v)) - return; - gl.uniform2uiv(this.addr, v); - copyArray(cache, v); + if (v.x !== void 0) { + if (cache[0] !== v.x || cache[1] !== v.y) { + gl.uniform2ui(this.addr, v.x, v.y); + cache[0] = v.x; + cache[1] = v.y; + } + } else { + if (arraysEqual(cache, v)) + return; + gl.uniform2uiv(this.addr, v); + copyArray(cache, v); + } } function setValueV3ui(gl, v) { const cache = this.cache; - if (arraysEqual(cache, v)) - return; - gl.uniform3uiv(this.addr, v); - copyArray(cache, v); + if (v.x !== void 0) { + if (cache[0] !== v.x || cache[1] !== v.y || cache[2] !== v.z) { + gl.uniform3ui(this.addr, v.x, v.y, v.z); + cache[0] = v.x; + cache[1] = v.y; + cache[2] = v.z; + } + } else { + if (arraysEqual(cache, v)) + return; + gl.uniform3uiv(this.addr, v); + copyArray(cache, v); + } } function setValueV4ui(gl, v) { const cache = this.cache; - if (arraysEqual(cache, v)) - return; - gl.uniform4uiv(this.addr, v); - copyArray(cache, v); + if (v.x !== void 0) { + if (cache[0] !== v.x || cache[1] !== v.y || cache[2] !== v.z || cache[3] !== v.w) { + gl.uniform4ui(this.addr, v.x, v.y, v.z, v.w); + cache[0] = v.x; + cache[1] = v.y; + cache[2] = v.z; + cache[3] = v.w; + } + } else { + if (arraysEqual(cache, v)) + return; + gl.uniform4uiv(this.addr, v); + copyArray(cache, v); + } } function setValueT1(gl, v, textures) { const cache = this.cache; @@ -13338,33 +13386,49 @@ function setValueV4uiArray(gl, v) { gl.uniform4uiv(this.addr, v); } function setValueT1Array(gl, v, textures) { + const cache = this.cache; const n = v.length; const units = allocTexUnits(textures, n); - gl.uniform1iv(this.addr, units); + if (!arraysEqual(cache, units)) { + gl.uniform1iv(this.addr, units); + copyArray(cache, units); + } for (let i = 0; i !== n; ++i) { textures.setTexture2D(v[i] || emptyTexture, units[i]); } } function setValueT3DArray(gl, v, textures) { + const cache = this.cache; const n = v.length; const units = allocTexUnits(textures, n); - gl.uniform1iv(this.addr, units); + if (!arraysEqual(cache, units)) { + gl.uniform1iv(this.addr, units); + copyArray(cache, units); + } for (let i = 0; i !== n; ++i) { textures.setTexture3D(v[i] || empty3dTexture, units[i]); } } function setValueT6Array(gl, v, textures) { + const cache = this.cache; const n = v.length; const units = allocTexUnits(textures, n); - gl.uniform1iv(this.addr, units); + if (!arraysEqual(cache, units)) { + gl.uniform1iv(this.addr, units); + copyArray(cache, units); + } for (let i = 0; i !== n; ++i) { textures.setTextureCube(v[i] || emptyCubeTexture, units[i]); } } function setValueT2DArrayArray(gl, v, textures) { + const cache = this.cache; const n = v.length; const units = allocTexUnits(textures, n); - gl.uniform1iv(this.addr, units); + if (!arraysEqual(cache, units)) { + gl.uniform1iv(this.addr, units); + copyArray(cache, units); + } for (let i = 0; i !== n; ++i) { textures.setTexture2DArray(v[i] || emptyArrayTexture, units[i]); } @@ -13638,7 +13702,8 @@ function filterEmptyLine(string) { return string !== ""; } function replaceLightNums(string, parameters) { - return string.replace(/NUM_DIR_LIGHTS/g, parameters.numDirLights).replace(/NUM_SPOT_LIGHTS/g, parameters.numSpotLights).replace(/NUM_RECT_AREA_LIGHTS/g, parameters.numRectAreaLights).replace(/NUM_POINT_LIGHTS/g, parameters.numPointLights).replace(/NUM_HEMI_LIGHTS/g, parameters.numHemiLights).replace(/NUM_DIR_LIGHT_SHADOWS/g, parameters.numDirLightShadows).replace(/NUM_SPOT_LIGHT_SHADOWS/g, parameters.numSpotLightShadows).replace(/NUM_POINT_LIGHT_SHADOWS/g, parameters.numPointLightShadows); + const numSpotLightCoords = parameters.numSpotLightShadows + parameters.numSpotLightMaps - parameters.numSpotLightShadowsWithMaps; + return string.replace(/NUM_DIR_LIGHTS/g, parameters.numDirLights).replace(/NUM_SPOT_LIGHTS/g, parameters.numSpotLights).replace(/NUM_SPOT_LIGHT_MAPS/g, parameters.numSpotLightMaps).replace(/NUM_SPOT_LIGHT_COORDS/g, numSpotLightCoords).replace(/NUM_RECT_AREA_LIGHTS/g, parameters.numRectAreaLights).replace(/NUM_POINT_LIGHTS/g, parameters.numPointLights).replace(/NUM_HEMI_LIGHTS/g, parameters.numHemiLights).replace(/NUM_DIR_LIGHT_SHADOWS/g, parameters.numDirLightShadows).replace(/NUM_SPOT_LIGHT_SHADOWS_WITH_MAPS/g, parameters.numSpotLightShadowsWithMaps).replace(/NUM_SPOT_LIGHT_SHADOWS/g, parameters.numSpotLightShadows).replace(/NUM_POINT_LIGHT_SHADOWS/g, parameters.numPointLightShadows); } function replaceClippingPlaneNums(string, parameters) { return string.replace(/NUM_CLIPPING_PLANES/g, parameters.numClippingPlanes).replace(/UNION_CLIPPING_PLANES/g, parameters.numClippingPlanes - parameters.numClipIntersection); @@ -13654,14 +13719,9 @@ function includeReplacer(match, include) { } return resolveIncludes(string); } -var deprecatedUnrollLoopPattern = /#pragma unroll_loop[\s]+?for \( int i \= (\d+)\; i < (\d+)\; i \+\+ \) \{([\s\S]+?)(?=\})\}/g; var unrollLoopPattern = /#pragma unroll_loop_start\s+for\s*\(\s*int\s+i\s*=\s*(\d+)\s*;\s*i\s*<\s*(\d+)\s*;\s*i\s*\+\+\s*\)\s*{([\s\S]+?)}\s+#pragma unroll_loop_end/g; function unrollLoops(string) { - return string.replace(unrollLoopPattern, loopReplacer).replace(deprecatedUnrollLoopPattern, deprecatedLoopReplacer); -} -function deprecatedLoopReplacer(match, start, end, snippet) { - console.warn("WebGLProgram: #pragma unroll_loop shader syntax is deprecated. Please use #pragma unroll_loop_start syntax instead."); - return loopReplacer(match, start, end, snippet); + return string.replace(unrollLoopPattern, loopReplacer); } function loopReplacer(match, start, end, snippet) { let string = ""; @@ -14099,18 +14159,21 @@ var WebGLShaderCache = class { } _getShaderCacheForMaterial(material) { const cache = this.materialCache; - if (cache.has(material) === false) { - cache.set(material, /* @__PURE__ */ new Set()); + let set2 = cache.get(material); + if (set2 === void 0) { + set2 = /* @__PURE__ */ new Set(); + cache.set(material, set2); } - return cache.get(material); + return set2; } _getShaderStage(code) { const cache = this.shaderCache; - if (cache.has(code) === false) { - const stage = new WebGLShaderStage(code); + let stage = cache.get(code); + if (stage === void 0) { + stage = new WebGLShaderStage(code); cache.set(code, stage); } - return cache.get(code); + return stage; } }; var WebGLShaderStage = class { @@ -14257,11 +14320,13 @@ function WebGLPrograms(renderer3, cubemaps, cubeuvmaps, extensions, capabilities numDirLights: lights.directional.length, numPointLights: lights.point.length, numSpotLights: lights.spot.length, + numSpotLightMaps: lights.spotLightMap.length, numRectAreaLights: lights.rectArea.length, numHemiLights: lights.hemi.length, numDirLightShadows: lights.directionalShadowMap.length, numPointLightShadows: lights.pointShadowMap.length, numSpotLightShadows: lights.spotShadowMap.length, + numSpotLightShadowsWithMaps: lights.numSpotLightShadowsWithMaps, numClippingPlanes: clipping.numPlanes, numClipIntersection: clipping.numIntersection, dithering: material.dithering, @@ -14322,11 +14387,13 @@ function WebGLPrograms(renderer3, cubemaps, cubeuvmaps, extensions, capabilities array.push(parameters.numDirLights); array.push(parameters.numPointLights); array.push(parameters.numSpotLights); + array.push(parameters.numSpotLightMaps); array.push(parameters.numHemiLights); array.push(parameters.numRectAreaLights); array.push(parameters.numDirLightShadows); array.push(parameters.numPointLightShadows); array.push(parameters.numSpotLightShadows); + array.push(parameters.numSpotLightShadowsWithMaps); array.push(parameters.shadowMapType); array.push(parameters.toneMapping); array.push(parameters.numClippingPlanes); @@ -14401,58 +14468,58 @@ function WebGLPrograms(renderer3, cubemaps, cubeuvmaps, extensions, capabilities _programLayers.enable(31); if (parameters.uvsVertexOnly) _programLayers.enable(32); - if (parameters.fog) - _programLayers.enable(33); array.push(_programLayers.mask); _programLayers.disableAll(); - if (parameters.useFog) + if (parameters.fog) _programLayers.enable(0); - if (parameters.flatShading) + if (parameters.useFog) _programLayers.enable(1); - if (parameters.logarithmicDepthBuffer) + if (parameters.flatShading) _programLayers.enable(2); - if (parameters.skinning) + if (parameters.logarithmicDepthBuffer) _programLayers.enable(3); - if (parameters.morphTargets) + if (parameters.skinning) _programLayers.enable(4); - if (parameters.morphNormals) + if (parameters.morphTargets) _programLayers.enable(5); - if (parameters.morphColors) + if (parameters.morphNormals) _programLayers.enable(6); - if (parameters.premultipliedAlpha) + if (parameters.morphColors) _programLayers.enable(7); - if (parameters.shadowMapEnabled) + if (parameters.premultipliedAlpha) _programLayers.enable(8); - if (parameters.physicallyCorrectLights) + if (parameters.shadowMapEnabled) _programLayers.enable(9); - if (parameters.doubleSided) + if (parameters.physicallyCorrectLights) _programLayers.enable(10); - if (parameters.flipSided) + if (parameters.doubleSided) _programLayers.enable(11); - if (parameters.useDepthPacking) + if (parameters.flipSided) _programLayers.enable(12); - if (parameters.dithering) + if (parameters.useDepthPacking) _programLayers.enable(13); - if (parameters.specularIntensityMap) + if (parameters.dithering) _programLayers.enable(14); - if (parameters.specularColorMap) + if (parameters.specularIntensityMap) _programLayers.enable(15); - if (parameters.transmission) + if (parameters.specularColorMap) _programLayers.enable(16); - if (parameters.transmissionMap) + if (parameters.transmission) _programLayers.enable(17); - if (parameters.thicknessMap) + if (parameters.transmissionMap) _programLayers.enable(18); - if (parameters.sheen) + if (parameters.thicknessMap) _programLayers.enable(19); - if (parameters.sheenColorMap) + if (parameters.sheen) _programLayers.enable(20); - if (parameters.sheenRoughnessMap) + if (parameters.sheenColorMap) _programLayers.enable(21); - if (parameters.decodeVideoTexture) + if (parameters.sheenRoughnessMap) _programLayers.enable(22); - if (parameters.opaque) + if (parameters.decodeVideoTexture) _programLayers.enable(23); + if (parameters.opaque) + _programLayers.enable(24); array.push(_programLayers.mask); } function getUniforms(material) { @@ -14650,16 +14717,17 @@ function WebGLRenderList() { function WebGLRenderLists() { let lists = /* @__PURE__ */ new WeakMap(); function get2(scene3, renderCallDepth) { + const listArray = lists.get(scene3); let list; - if (lists.has(scene3) === false) { + if (listArray === void 0) { list = new WebGLRenderList(); lists.set(scene3, [list]); } else { - if (renderCallDepth >= lists.get(scene3).length) { + if (renderCallDepth >= listArray.length) { list = new WebGLRenderList(); - lists.get(scene3).push(list); + listArray.push(list); } else { - list = lists.get(scene3)[renderCallDepth]; + list = listArray[renderCallDepth]; } } return list; @@ -14769,8 +14837,8 @@ function ShadowUniformsCache() { }; } var nextVersion = 0; -function shadowCastingLightsFirst(lightA, lightB) { - return (lightB.castShadow ? 1 : 0) - (lightA.castShadow ? 1 : 0); +function shadowCastingAndTexturingLightsFirst(lightA, lightB) { + return (lightB.castShadow ? 2 : 0) - (lightA.castShadow ? 2 : 0) + (lightB.map ? 1 : 0) - (lightA.map ? 1 : 0); } function WebGLLights(extensions, capabilities) { const cache = new UniformsCache(); @@ -14785,7 +14853,8 @@ function WebGLLights(extensions, capabilities) { hemiLength: -1, numDirectionalShadows: -1, numPointShadows: -1, - numSpotShadows: -1 + numSpotShadows: -1, + numSpotMaps: -1 }, ambient: [0, 0, 0], probe: [], @@ -14794,9 +14863,10 @@ function WebGLLights(extensions, capabilities) { directionalShadowMap: [], directionalShadowMatrix: [], spot: [], + spotLightMap: [], spotShadow: [], spotShadowMap: [], - spotShadowMatrix: [], + spotLightMatrix: [], rectArea: [], rectAreaLTC1: null, rectAreaLTC2: null, @@ -14804,7 +14874,8 @@ function WebGLLights(extensions, capabilities) { pointShadow: [], pointShadowMap: [], pointShadowMatrix: [], - hemi: [] + hemi: [], + numSpotLightShadowsWithMaps: 0 }; for (let i = 0; i < 9; i++) state.probe.push(new Vector3()); @@ -14823,7 +14894,9 @@ function WebGLLights(extensions, capabilities) { let numDirectionalShadows = 0; let numPointShadows = 0; let numSpotShadows = 0; - lights.sort(shadowCastingLightsFirst); + let numSpotMaps = 0; + let numSpotShadowsWithMaps = 0; + lights.sort(shadowCastingAndTexturingLightsFirst); const scaleFactor = physicallyCorrectLights !== true ? Math.PI : 1; for (let i = 0, l = lights.length; i < l; i++) { const light = lights[i]; @@ -14864,8 +14937,17 @@ function WebGLLights(extensions, capabilities) { uniforms.coneCos = Math.cos(light.angle); uniforms.penumbraCos = Math.cos(light.angle * (1 - light.penumbra)); uniforms.decay = light.decay; + state.spot[spotLength] = uniforms; + const shadow = light.shadow; + if (light.map) { + state.spotLightMap[numSpotMaps] = light.map; + numSpotMaps++; + shadow.updateMatrices(light); + if (light.castShadow) + numSpotShadowsWithMaps++; + } + state.spotLightMatrix[spotLength] = shadow.matrix; if (light.castShadow) { - const shadow = light.shadow; const shadowUniforms = shadowCache.get(light); shadowUniforms.shadowBias = shadow.bias; shadowUniforms.shadowNormalBias = shadow.normalBias; @@ -14873,10 +14955,8 @@ function WebGLLights(extensions, capabilities) { shadowUniforms.shadowMapSize = shadow.mapSize; state.spotShadow[spotLength] = shadowUniforms; state.spotShadowMap[spotLength] = shadowMap; - state.spotShadowMatrix[spotLength] = light.shadow.matrix; numSpotShadows++; } - state.spot[spotLength] = uniforms; spotLength++; } else if (light.isRectAreaLight) { const uniforms = cache.get(light); @@ -14934,7 +15014,7 @@ function WebGLLights(extensions, capabilities) { state.ambient[1] = g; state.ambient[2] = b; const hash = state.hash; - if (hash.directionalLength !== directionalLength || hash.pointLength !== pointLength || hash.spotLength !== spotLength || hash.rectAreaLength !== rectAreaLength || hash.hemiLength !== hemiLength || hash.numDirectionalShadows !== numDirectionalShadows || hash.numPointShadows !== numPointShadows || hash.numSpotShadows !== numSpotShadows) { + if (hash.directionalLength !== directionalLength || hash.pointLength !== pointLength || hash.spotLength !== spotLength || hash.rectAreaLength !== rectAreaLength || hash.hemiLength !== hemiLength || hash.numDirectionalShadows !== numDirectionalShadows || hash.numPointShadows !== numPointShadows || hash.numSpotShadows !== numSpotShadows || hash.numSpotMaps !== numSpotMaps) { state.directional.length = directionalLength; state.spot.length = spotLength; state.rectArea.length = rectAreaLength; @@ -14948,7 +15028,9 @@ function WebGLLights(extensions, capabilities) { state.spotShadowMap.length = numSpotShadows; state.directionalShadowMatrix.length = numDirectionalShadows; state.pointShadowMatrix.length = numPointShadows; - state.spotShadowMatrix.length = numSpotShadows; + state.spotLightMatrix.length = numSpotShadows + numSpotMaps - numSpotShadowsWithMaps; + state.spotLightMap.length = numSpotMaps; + state.numSpotLightShadowsWithMaps = numSpotShadowsWithMaps; hash.directionalLength = directionalLength; hash.pointLength = pointLength; hash.spotLength = spotLength; @@ -14957,6 +15039,7 @@ function WebGLLights(extensions, capabilities) { hash.numDirectionalShadows = numDirectionalShadows; hash.numPointShadows = numPointShadows; hash.numSpotShadows = numSpotShadows; + hash.numSpotMaps = numSpotMaps; state.version = nextVersion++; } } @@ -15054,16 +15137,17 @@ function WebGLRenderState(extensions, capabilities) { function WebGLRenderStates(extensions, capabilities) { let renderStates = /* @__PURE__ */ new WeakMap(); function get2(scene3, renderCallDepth = 0) { + const renderStateArray = renderStates.get(scene3); let renderState; - if (renderStates.has(scene3) === false) { + if (renderStateArray === void 0) { renderState = new WebGLRenderState(extensions, capabilities); renderStates.set(scene3, [renderState]); } else { - if (renderCallDepth >= renderStates.get(scene3).length) { + if (renderCallDepth >= renderStateArray.length) { renderState = new WebGLRenderState(extensions, capabilities); - renderStates.get(scene3).push(renderState); + renderStateArray.push(renderState); } else { - renderState = renderStates.get(scene3)[renderCallDepth]; + renderState = renderStateArray[renderCallDepth]; } } return renderState; @@ -15383,37 +15467,33 @@ function WebGLState(gl, extensions, capabilities) { }, setFunc: function(depthFunc) { if (currentDepthFunc !== depthFunc) { - if (depthFunc) { - switch (depthFunc) { - case NeverDepth: - gl.depthFunc(512); - break; - case AlwaysDepth: - gl.depthFunc(519); - break; - case LessDepth: - gl.depthFunc(513); - break; - case LessEqualDepth: - gl.depthFunc(515); - break; - case EqualDepth: - gl.depthFunc(514); - break; - case GreaterEqualDepth: - gl.depthFunc(518); - break; - case GreaterDepth: - gl.depthFunc(516); - break; - case NotEqualDepth: - gl.depthFunc(517); - break; - default: - gl.depthFunc(515); - } - } else { - gl.depthFunc(515); + switch (depthFunc) { + case NeverDepth: + gl.depthFunc(512); + break; + case AlwaysDepth: + gl.depthFunc(519); + break; + case LessDepth: + gl.depthFunc(513); + break; + case LessEqualDepth: + gl.depthFunc(515); + break; + case EqualDepth: + gl.depthFunc(514); + break; + case GreaterEqualDepth: + gl.depthFunc(518); + break; + case GreaterDepth: + gl.depthFunc(516); + break; + case NotEqualDepth: + gl.depthFunc(517); + break; + default: + gl.depthFunc(515); } currentDepthFunc = depthFunc; } @@ -15830,16 +15910,24 @@ function WebGLState(gl, extensions, capabilities) { currentTextureSlot = webglSlot; } } - function bindTexture(webglType, webglTexture) { - if (currentTextureSlot === null) { - activeTexture(); + function bindTexture(webglType, webglTexture, webglSlot) { + if (webglSlot === void 0) { + if (currentTextureSlot === null) { + webglSlot = 33984 + maxTextures - 1; + } else { + webglSlot = currentTextureSlot; + } } - let boundTexture = currentBoundTextures[currentTextureSlot]; + let boundTexture = currentBoundTextures[webglSlot]; if (boundTexture === void 0) { boundTexture = { type: void 0, texture: void 0 }; - currentBoundTextures[currentTextureSlot] = boundTexture; + currentBoundTextures[webglSlot] = boundTexture; } if (boundTexture.type !== webglType || boundTexture.texture !== webglTexture) { + if (currentTextureSlot !== webglSlot) { + gl.activeTexture(webglSlot); + currentTextureSlot = webglSlot; + } gl.bindTexture(webglType, webglTexture || emptyTextures[webglType]); boundTexture.type = webglType; boundTexture.texture = webglTexture; @@ -15860,6 +15948,13 @@ function WebGLState(gl, extensions, capabilities) { console.error("THREE.WebGLState:", error); } } + function compressedTexImage3D() { + try { + gl.compressedTexImage3D.apply(gl, arguments); + } catch (error) { + console.error("THREE.WebGLState:", error); + } + } function texSubImage2D() { try { gl.texSubImage2D.apply(gl, arguments); @@ -15881,6 +15976,13 @@ function WebGLState(gl, extensions, capabilities) { console.error("THREE.WebGLState:", error); } } + function compressedTexSubImage3D() { + try { + gl.compressedTexSubImage3D.apply(gl, arguments); + } catch (error) { + console.error("THREE.WebGLState:", error); + } + } function texStorage2D() { try { gl.texStorage2D.apply(gl, arguments); @@ -16023,6 +16125,7 @@ function WebGLState(gl, extensions, capabilities) { bindTexture, unbindTexture, compressedTexImage2D, + compressedTexImage3D, texImage2D, texImage3D, updateUBOMapping, @@ -16032,6 +16135,7 @@ function WebGLState(gl, extensions, capabilities) { texSubImage2D, texSubImage3D, compressedTexSubImage2D, + compressedTexSubImage3D, scissor, viewport, reset @@ -16044,7 +16148,7 @@ function WebGLTextures(_gl, extensions, state, properties, capabilities, utils, const maxTextureSize = capabilities.maxTextureSize; const maxSamples = capabilities.maxSamples; const multisampledRTTExt = extensions.has("WEBGL_multisampled_render_to_texture") ? extensions.get("WEBGL_multisampled_render_to_texture") : null; - const supportsInvalidateFramebuffer = /OculusBrowser/g.test(navigator.userAgent); + const supportsInvalidateFramebuffer = /OculusBrowser/g.test(typeof navigator === "undefined" ? "" : navigator.userAgent); const _videoTextures = /* @__PURE__ */ new WeakMap(); let _canvas2; const _sources = /* @__PURE__ */ new WeakMap(); @@ -16098,7 +16202,7 @@ function WebGLTextures(_gl, extensions, state, properties, capabilities, utils, function generateMipmap(target) { _gl.generateMipmap(target); } - function getInternalFormat(internalFormatName, glFormat, glType, encoding, isVideoTexture = false) { + function getInternalFormat(internalFormatName, glFormat, glType, encoding, forceLinearEncoding = false) { if (isWebGL2 === false) return glFormat; if (internalFormatName !== null) { @@ -16129,7 +16233,7 @@ function WebGLTextures(_gl, extensions, state, properties, capabilities, utils, if (glType === 5131) internalFormat = 34842; if (glType === 5121) - internalFormat = encoding === sRGBEncoding && isVideoTexture === false ? 35907 : 32856; + internalFormat = encoding === sRGBEncoding && forceLinearEncoding === false ? 35907 : 32856; if (glType === 32819) internalFormat = 32854; if (glType === 32820) @@ -16257,6 +16361,7 @@ function WebGLTextures(_gl, extensions, state, properties, capabilities, utils, const array = []; array.push(texture.wrapS); array.push(texture.wrapT); + array.push(texture.wrapR || 0); array.push(texture.magFilter); array.push(texture.minFilter); array.push(texture.anisotropy); @@ -16285,8 +16390,7 @@ function WebGLTextures(_gl, extensions, state, properties, capabilities, utils, return; } } - state.activeTexture(33984 + slot); - state.bindTexture(3553, textureProperties.__webglTexture); + state.bindTexture(3553, textureProperties.__webglTexture, 33984 + slot); } function setTexture2DArray(texture, slot) { const textureProperties = properties.get(texture); @@ -16294,8 +16398,7 @@ function WebGLTextures(_gl, extensions, state, properties, capabilities, utils, uploadTexture(textureProperties, texture, slot); return; } - state.activeTexture(33984 + slot); - state.bindTexture(35866, textureProperties.__webglTexture); + state.bindTexture(35866, textureProperties.__webglTexture, 33984 + slot); } function setTexture3D(texture, slot) { const textureProperties = properties.get(texture); @@ -16303,8 +16406,7 @@ function WebGLTextures(_gl, extensions, state, properties, capabilities, utils, uploadTexture(textureProperties, texture, slot); return; } - state.activeTexture(33984 + slot); - state.bindTexture(32879, textureProperties.__webglTexture); + state.bindTexture(32879, textureProperties.__webglTexture, 33984 + slot); } function setTextureCube(texture, slot) { const textureProperties = properties.get(texture); @@ -16312,8 +16414,7 @@ function WebGLTextures(_gl, extensions, state, properties, capabilities, utils, uploadCubeTexture(textureProperties, texture, slot); return; } - state.activeTexture(33984 + slot); - state.bindTexture(34067, textureProperties.__webglTexture); + state.bindTexture(34067, textureProperties.__webglTexture, 33984 + slot); } const wrappingToGL = { [RepeatWrapping]: 10497, @@ -16401,15 +16502,16 @@ function WebGLTextures(_gl, extensions, state, properties, capabilities, utils, } function uploadTexture(textureProperties, texture, slot) { let textureType = 3553; - if (texture.isDataArrayTexture) + if (texture.isDataArrayTexture || texture.isCompressedArrayTexture) textureType = 35866; if (texture.isData3DTexture) textureType = 32879; const forceUpload = initTexture(textureProperties, texture); const source = texture.source; - state.activeTexture(33984 + slot); - state.bindTexture(textureType, textureProperties.__webglTexture); - if (source.version !== source.__currentVersion || forceUpload === true) { + state.bindTexture(textureType, textureProperties.__webglTexture, 33984 + slot); + const sourceProperties = properties.get(source); + if (source.version !== sourceProperties.__version || forceUpload === true) { + state.activeTexture(33984 + slot); _gl.pixelStorei(37440, texture.flipY); _gl.pixelStorei(37441, texture.premultiplyAlpha); _gl.pixelStorei(3317, texture.unpackAlignment); @@ -16423,7 +16525,7 @@ function WebGLTextures(_gl, extensions, state, properties, capabilities, utils, let mipmap; const mipmaps = texture.mipmaps; const useTexStorage = isWebGL2 && texture.isVideoTexture !== true; - const allocateMemory = source.__currentVersion === void 0 || forceUpload === true; + const allocateMemory = sourceProperties.__version === void 0 || forceUpload === true; const levels = getMipLevels(texture, image, supportsMips); if (texture.isDepthTexture) { glInternalFormat = 6402; @@ -16489,26 +16591,52 @@ function WebGLTextures(_gl, extensions, state, properties, capabilities, utils, } } } else if (texture.isCompressedTexture) { - if (useTexStorage && allocateMemory) { - state.texStorage2D(3553, levels, glInternalFormat, mipmaps[0].width, mipmaps[0].height); - } - for (let i = 0, il = mipmaps.length; i < il; i++) { - mipmap = mipmaps[i]; - if (texture.format !== RGBAFormat) { - if (glFormat !== null) { - if (useTexStorage) { - state.compressedTexSubImage2D(3553, i, 0, 0, mipmap.width, mipmap.height, glFormat, mipmap.data); + if (texture.isCompressedArrayTexture) { + if (useTexStorage && allocateMemory) { + state.texStorage3D(35866, levels, glInternalFormat, mipmaps[0].width, mipmaps[0].height, image.depth); + } + for (let i = 0, il = mipmaps.length; i < il; i++) { + mipmap = mipmaps[i]; + if (texture.format !== RGBAFormat) { + if (glFormat !== null) { + if (useTexStorage) { + state.compressedTexSubImage3D(35866, i, 0, 0, 0, mipmap.width, mipmap.height, image.depth, glFormat, mipmap.data, 0, 0); + } else { + state.compressedTexImage3D(35866, i, glInternalFormat, mipmap.width, mipmap.height, image.depth, 0, mipmap.data, 0, 0); + } } else { - state.compressedTexImage2D(3553, i, glInternalFormat, mipmap.width, mipmap.height, 0, mipmap.data); + console.warn("THREE.WebGLRenderer: Attempt to load unsupported compressed texture format in .uploadTexture()"); } } else { - console.warn("THREE.WebGLRenderer: Attempt to load unsupported compressed texture format in .uploadTexture()"); + if (useTexStorage) { + state.texSubImage3D(35866, i, 0, 0, 0, mipmap.width, mipmap.height, image.depth, glFormat, glType, mipmap.data); + } else { + state.texImage3D(35866, i, glInternalFormat, mipmap.width, mipmap.height, image.depth, 0, glFormat, glType, mipmap.data); + } } - } else { - if (useTexStorage) { - state.texSubImage2D(3553, i, 0, 0, mipmap.width, mipmap.height, glFormat, glType, mipmap.data); + } + } else { + if (useTexStorage && allocateMemory) { + state.texStorage2D(3553, levels, glInternalFormat, mipmaps[0].width, mipmaps[0].height); + } + for (let i = 0, il = mipmaps.length; i < il; i++) { + mipmap = mipmaps[i]; + if (texture.format !== RGBAFormat) { + if (glFormat !== null) { + if (useTexStorage) { + state.compressedTexSubImage2D(3553, i, 0, 0, mipmap.width, mipmap.height, glFormat, mipmap.data); + } else { + state.compressedTexImage2D(3553, i, glInternalFormat, mipmap.width, mipmap.height, 0, mipmap.data); + } + } else { + console.warn("THREE.WebGLRenderer: Attempt to load unsupported compressed texture format in .uploadTexture()"); + } } else { - state.texImage2D(3553, i, glInternalFormat, mipmap.width, mipmap.height, 0, glFormat, glType, mipmap.data); + if (useTexStorage) { + state.texSubImage2D(3553, i, 0, 0, mipmap.width, mipmap.height, glFormat, glType, mipmap.data); + } else { + state.texImage2D(3553, i, glInternalFormat, mipmap.width, mipmap.height, 0, glFormat, glType, mipmap.data); + } } } } @@ -16571,7 +16699,7 @@ function WebGLTextures(_gl, extensions, state, properties, capabilities, utils, if (textureNeedsGenerateMipmaps(texture, supportsMips)) { generateMipmap(textureType); } - source.__currentVersion = source.version; + sourceProperties.__version = source.version; if (texture.onUpdate) texture.onUpdate(texture); } @@ -16582,9 +16710,10 @@ function WebGLTextures(_gl, extensions, state, properties, capabilities, utils, return; const forceUpload = initTexture(textureProperties, texture); const source = texture.source; - state.activeTexture(33984 + slot); - state.bindTexture(34067, textureProperties.__webglTexture); - if (source.version !== source.__currentVersion || forceUpload === true) { + state.bindTexture(34067, textureProperties.__webglTexture, 33984 + slot); + const sourceProperties = properties.get(source); + if (source.version !== sourceProperties.__version || forceUpload === true) { + state.activeTexture(33984 + slot); _gl.pixelStorei(37440, texture.flipY); _gl.pixelStorei(37441, texture.premultiplyAlpha); _gl.pixelStorei(3317, texture.unpackAlignment); @@ -16602,7 +16731,7 @@ function WebGLTextures(_gl, extensions, state, properties, capabilities, utils, } const image = cubeImage[0], supportsMips = isPowerOfTwo$1(image) || isWebGL2, glFormat = utils.convert(texture.format, texture.encoding), glType = utils.convert(texture.type), glInternalFormat = getInternalFormat(texture.internalFormat, glFormat, glType, texture.encoding); const useTexStorage = isWebGL2 && texture.isVideoTexture !== true; - const allocateMemory = source.__currentVersion === void 0 || forceUpload === true; + const allocateMemory = sourceProperties.__version === void 0 || forceUpload === true; let levels = getMipLevels(texture, image, supportsMips); setTextureParameters(34067, texture, supportsMips); let mipmaps; @@ -16676,7 +16805,7 @@ function WebGLTextures(_gl, extensions, state, properties, capabilities, utils, if (textureNeedsGenerateMipmaps(texture, supportsMips)) { generateMipmap(34067); } - source.__currentVersion = source.version; + sourceProperties.__version = source.version; if (texture.onUpdate) texture.onUpdate(texture); } @@ -16697,7 +16826,7 @@ function WebGLTextures(_gl, extensions, state, properties, capabilities, utils, state.bindFramebuffer(36160, framebuffer); if (useMultisampledRTT(renderTarget)) { multisampledRTTExt.framebufferTexture2DMultisampleEXT(36160, attachment, textureTarget, properties.get(texture).__webglTexture, 0, getRenderTargetSamples(renderTarget)); - } else { + } else if (textureTarget === 3553 || textureTarget >= 34069 && textureTarget <= 34074) { _gl.framebufferTexture2D(36160, attachment, textureTarget, properties.get(texture).__webglTexture, 0); } state.bindFramebuffer(36160, null); @@ -16865,7 +16994,7 @@ function WebGLTextures(_gl, extensions, state, properties, capabilities, utils, _gl.bindRenderbuffer(36161, renderTargetProperties.__webglColorRenderbuffer[i]); const glFormat = utils.convert(texture2.format, texture2.encoding); const glType = utils.convert(texture2.type); - const glInternalFormat = getInternalFormat(texture2.internalFormat, glFormat, glType, texture2.encoding); + const glInternalFormat = getInternalFormat(texture2.internalFormat, glFormat, glType, texture2.encoding, renderTarget.isXRRenderTarget === true); const samples = getRenderTargetSamples(renderTarget); _gl.renderbufferStorageMultisample(36161, samples, glInternalFormat, renderTarget.width, renderTarget.height); _gl.framebufferRenderbuffer(36160, 36064 + i, 36161, renderTargetProperties.__webglColorRenderbuffer[i]); @@ -17599,7 +17728,8 @@ var WebXRManager = class extends EventDispatcher { newRenderTarget = new WebGLRenderTarget(glBaseLayer.framebufferWidth, glBaseLayer.framebufferHeight, { format: RGBAFormat, type: UnsignedByteType, - encoding: renderer3.outputEncoding + encoding: renderer3.outputEncoding, + stencilBuffer: attributes.stencil }); } else { let depthFormat = null; @@ -17731,11 +17861,8 @@ var WebXRManager = class extends EventDispatcher { updateCamera(cameras2[i], parent); } cameraVR.matrixWorld.decompose(cameraVR.position, cameraVR.quaternion, cameraVR.scale); - camera3.position.copy(cameraVR.position); - camera3.quaternion.copy(cameraVR.quaternion); - camera3.scale.copy(cameraVR.scale); camera3.matrix.copy(cameraVR.matrix); - camera3.matrixWorld.copy(cameraVR.matrixWorld); + camera3.matrix.decompose(camera3.position, camera3.quaternion, camera3.scale); const children = camera3.children; for (let i = 0, l = children.length; i < l; i++) { children[i].updateMatrixWorld(true); @@ -18510,7 +18637,7 @@ function WebGLRenderer(parameters = {}) { materials = new WebGLMaterials(_this, properties); renderLists = new WebGLRenderLists(); renderStates = new WebGLRenderStates(extensions, capabilities); - background = new WebGLBackground(_this, cubemaps, state, objects, _alpha, _premultipliedAlpha); + background = new WebGLBackground(_this, cubemaps, cubeuvmaps, state, objects, _alpha, _premultipliedAlpha); shadowMap = new WebGLShadowMap(_this, objects, capabilities); uniformsGroups = new WebGLUniformsGroups(_gl, info, capabilities, state); bufferRenderer = new WebGLBufferRenderer(_gl, extensions, info, capabilities); @@ -18785,6 +18912,19 @@ function WebGLRenderer(parameters = {}) { } }; this.compile = function(scene3, camera3) { + function prepare(material, scene4, object) { + if (material.transparent === true && material.side === DoubleSide) { + material.side = BackSide; + material.needsUpdate = true; + getProgram(material, scene4, object); + material.side = FrontSide; + material.needsUpdate = true; + getProgram(material, scene4, object); + material.side = DoubleSide; + } else { + getProgram(material, scene4, object); + } + } currentRenderState = renderStates.get(scene3); currentRenderState.init(); renderStateStack.push(currentRenderState); @@ -18803,10 +18943,10 @@ function WebGLRenderer(parameters = {}) { if (Array.isArray(material)) { for (let i = 0; i < material.length; i++) { const material2 = material[i]; - getProgram(material2, scene3, object); + prepare(material2, scene3, object); } } else { - getProgram(material, scene3, object); + prepare(material, scene3, object); } } }); @@ -18842,9 +18982,9 @@ function WebGLRenderer(parameters = {}) { } if (_isContextLost === true) return; - if (scene3.autoUpdate === true) + if (scene3.matrixWorldAutoUpdate === true) scene3.updateMatrixWorld(); - if (camera3.parent === null) + if (camera3.parent === null && camera3.matrixWorldAutoUpdate === true) camera3.updateMatrixWorld(); if (xr.enabled === true && xr.isPresenting === true) { if (xr.cameraAutoUpdate === true) @@ -19101,7 +19241,8 @@ function WebGLRenderer(parameters = {}) { uniforms.directionalShadowMap.value = lights.state.directionalShadowMap; uniforms.directionalShadowMatrix.value = lights.state.directionalShadowMatrix; uniforms.spotShadowMap.value = lights.state.spotShadowMap; - uniforms.spotShadowMatrix.value = lights.state.spotShadowMatrix; + uniforms.spotLightMatrix.value = lights.state.spotLightMatrix; + uniforms.spotLightMap.value = lights.state.spotLightMap; uniforms.pointShadowMap.value = lights.state.pointShadowMap; uniforms.pointShadowMatrix.value = lights.state.pointShadowMatrix; } @@ -19252,6 +19393,10 @@ function WebGLRenderer(parameters = {}) { materialProperties.receiveShadow = object.receiveShadow; p_uniforms.setValue(_gl, "receiveShadow", object.receiveShadow); } + if (material.isMeshGouraudMaterial && material.envMap !== null) { + m_uniforms.envMap.value = envMap; + m_uniforms.flipEnvMap.value = envMap.isCubeTexture && envMap.isRenderTargetTexture === false ? -1 : 1; + } if (refreshMaterial) { p_uniforms.setValue(_gl, "toneMappingExposure", _this.toneMappingExposure); if (materialProperties.needsLights) { @@ -19336,6 +19481,9 @@ function WebGLRenderer(parameters = {}) { _currentActiveCubeFace = activeCubeFace; _currentActiveMipmapLevel = activeMipmapLevel; let useDefaultFramebuffer = true; + let framebuffer = null; + let isCube = false; + let isRenderTarget3D = false; if (renderTarget) { const renderTargetProperties = properties.get(renderTarget); if (renderTargetProperties.__useDefaultFramebuffer !== void 0) { @@ -19346,13 +19494,8 @@ function WebGLRenderer(parameters = {}) { } else if (renderTargetProperties.__hasExternalTextures) { textures.rebindTextures(renderTarget, properties.get(renderTarget.texture).__webglTexture, properties.get(renderTarget.depthTexture).__webglTexture); } - } - let framebuffer = null; - let isCube = false; - let isRenderTarget3D = false; - if (renderTarget) { const texture = renderTarget.texture; - if (texture.isData3DTexture || texture.isDataArrayTexture) { + if (texture.isData3DTexture || texture.isDataArrayTexture || texture.isCompressedArrayTexture) { isRenderTarget3D = true; } const __webglFramebuffer = properties.get(renderTarget).__webglFramebuffer; @@ -19490,7 +19633,7 @@ function WebGLRenderer(parameters = {}) { if (srcTexture.isDataTexture || srcTexture.isData3DTexture) { _gl.texSubImage3D(glTarget, level, position.x, position.y, position.z, width, height, depth, glFormat, glType, image.data); } else { - if (srcTexture.isCompressedTexture) { + if (srcTexture.isCompressedArrayTexture) { console.warn("THREE.WebGLRenderer.copyTextureToTexture3D: untested support for compressed srcTexture."); _gl.compressedTexSubImage3D(glTarget, level, position.x, position.y, position.z, width, height, depth, glFormat, image.data); } else { @@ -19511,7 +19654,7 @@ function WebGLRenderer(parameters = {}) { textures.setTextureCube(texture, 0); } else if (texture.isData3DTexture) { textures.setTexture3D(texture, 0); - } else if (texture.isDataArrayTexture) { + } else if (texture.isDataArrayTexture || texture.isCompressedArrayTexture) { textures.setTexture2DArray(texture, 0); } else { textures.setTexture2D(texture, 0); @@ -19540,8 +19683,8 @@ var Scene = class extends Object3D { this.background = null; this.environment = null; this.fog = null; + this.backgroundBlurriness = 0; this.overrideMaterial = null; - this.autoUpdate = true; if (typeof __THREE_DEVTOOLS__ !== "undefined") { __THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("observe", { detail: this })); } @@ -19554,9 +19697,9 @@ var Scene = class extends Object3D { this.environment = source.environment.clone(); if (source.fog !== null) this.fog = source.fog.clone(); + this.backgroundBlurriness = source.backgroundBlurriness; if (source.overrideMaterial !== null) this.overrideMaterial = source.overrideMaterial.clone(); - this.autoUpdate = source.autoUpdate; this.matrixAutoUpdate = source.matrixAutoUpdate; return this; } @@ -19564,8 +19707,18 @@ var Scene = class extends Object3D { const data = super.toJSON(meta); if (this.fog !== null) data.object.fog = this.fog.toJSON(); + if (this.backgroundBlurriness > 0) + data.backgroundBlurriness = this.backgroundBlurriness; return data; } + get autoUpdate() { + console.warn("THREE.Scene: autoUpdate was renamed to matrixWorldAutoUpdate in r144."); + return this.matrixWorldAutoUpdate; + } + set autoUpdate(value) { + console.warn("THREE.Scene: autoUpdate was renamed to matrixWorldAutoUpdate in r144."); + this.matrixWorldAutoUpdate = value; + } }; var LineBasicMaterial = class extends Material { constructor(parameters) { @@ -20771,6 +20924,14 @@ var MeshLambertMaterial = class extends Material { this.emissive = new Color(0); this.emissiveIntensity = 1; this.emissiveMap = null; + this.bumpMap = null; + this.bumpScale = 1; + this.normalMap = null; + this.normalMapType = TangentSpaceNormalMap; + this.normalScale = new Vector2(1, 1); + this.displacementMap = null; + this.displacementScale = 1; + this.displacementBias = 0; this.specularMap = null; this.alphaMap = null; this.envMap = null; @@ -20781,6 +20942,7 @@ var MeshLambertMaterial = class extends Material { this.wireframeLinewidth = 1; this.wireframeLinecap = "round"; this.wireframeLinejoin = "round"; + this.flatShading = false; this.fog = true; this.setValues(parameters); } @@ -20795,6 +20957,14 @@ var MeshLambertMaterial = class extends Material { this.emissive.copy(source.emissive); this.emissiveMap = source.emissiveMap; this.emissiveIntensity = source.emissiveIntensity; + this.bumpMap = source.bumpMap; + this.bumpScale = source.bumpScale; + this.normalMap = source.normalMap; + this.normalMapType = source.normalMapType; + this.normalScale.copy(source.normalScale); + this.displacementMap = source.displacementMap; + this.displacementScale = source.displacementScale; + this.displacementBias = source.displacementBias; this.specularMap = source.specularMap; this.alphaMap = source.alphaMap; this.envMap = source.envMap; @@ -20805,6 +20975,7 @@ var MeshLambertMaterial = class extends Material { this.wireframeLinewidth = source.wireframeLinewidth; this.wireframeLinecap = source.wireframeLinecap; this.wireframeLinejoin = source.wireframeLinejoin; + this.flatShading = source.flatShading; this.fog = source.fog; return this; } @@ -21554,8 +21725,7 @@ var LightShadow = class { _projScreenMatrix$1.multiplyMatrices(shadowCamera.projectionMatrix, shadowCamera.matrixWorldInverse); this._frustum.setFromProjectionMatrix(_projScreenMatrix$1); shadowMatrix.set(0.5, 0, 0, 0.5, 0, 0.5, 0, 0.5, 0, 0, 0.5, 0.5, 0, 0, 0, 1); - shadowMatrix.multiply(shadowCamera.projectionMatrix); - shadowMatrix.multiply(shadowCamera.matrixWorldInverse); + shadowMatrix.multiply(_projScreenMatrix$1); } getViewport(viewportIndex) { return this._viewports[viewportIndex]; @@ -21679,7 +21849,7 @@ var _nodeRe = /* @__PURE__ */ /(WCOD+)?/.source.replace("WCOD", _wordCharOrDot); var _objectRe = /* @__PURE__ */ /(?:\.(WC+)(?:\[(.+)\])?)?/.source.replace("WC", _wordChar); var _propertyRe = /* @__PURE__ */ /\.(WC+)(?:\[(.+)\])?/.source.replace("WC", _wordChar); var _trackRe = new RegExp("^" + _directoryRe + _nodeRe + _objectRe + _propertyRe + "$"); -var _supportedObjectNames = ["material", "materials", "bones"]; +var _supportedObjectNames = ["material", "materials", "bones", "map"]; var Composite = class { constructor(targetGroup, path, optionalParsedPath) { const parsedPath = optionalParsedPath || PropertyBinding.parseTrackName(path); @@ -21908,6 +22078,21 @@ var PropertyBinding = class { } } break; + case "map": + if ("map" in targetObject) { + targetObject = targetObject.map; + break; + } + if (!targetObject.material) { + console.error("THREE.PropertyBinding: Can not bind to material as node does not have a material.", this); + return; + } + if (!targetObject.material.map) { + console.error("THREE.PropertyBinding: Can not bind to material.map as node.material does not have a map.", this); + return; + } + targetObject = targetObject.material.map; + break; default: if (targetObject[objectName] === void 0) { console.error("THREE.PropertyBinding: Can not bind to objectName of node undefined.", this); @@ -25176,10 +25361,10 @@ var three$1 = window.THREE ? window.THREE : { BufferAttribute, Matrix4, Vector3, - SphereBufferGeometry: SphereGeometry, - CylinderBufferGeometry: CylinderGeometry, - TubeBufferGeometry: TubeGeometry, - ConeBufferGeometry: ConeGeometry, + SphereGeometry, + CylinderGeometry, + TubeGeometry, + ConeGeometry, Line, LineBasicMaterial, QuadraticBezierCurve3, @@ -25528,7 +25713,7 @@ var ForceGraph = index2({ if (!line.geometry.type.match(/^Cylinder(Buffer)?Geometry$/)) { var linkWidth = Math.ceil(linkWidthAccessor(link) * 10) / 10; var r = linkWidth / 2; - var geometry = new three$1.CylinderBufferGeometry(r, r, 1, state.linkResolution, 1, false); + var geometry = new three$1.CylinderGeometry(r, r, 1, state.linkResolution, 1, false); geometry[applyMatrix4Fn](new three$1.Matrix4().makeTranslation(0, 1 / 2, 0)); geometry[applyMatrix4Fn](new three$1.Matrix4().makeRotationX(Math.PI / 2)); line.geometry.dispose(); @@ -25551,7 +25736,7 @@ var ForceGraph = index2({ } var _linkWidth = Math.ceil(linkWidthAccessor(link) * 10) / 10; var _r = _linkWidth / 2; - var _geometry3 = new three$1.TubeBufferGeometry(curve, curveResolution, _r, state.linkResolution, false); + var _geometry3 = new three$1.TubeGeometry(curve, curveResolution, _r, state.linkResolution, false); line.geometry.dispose(); line.geometry = _geometry3; } @@ -25696,7 +25881,7 @@ var ForceGraph = index2({ var particleWidthAccessor = accessor_fn_module_default(state.linkDirectionalParticleWidth); var photonR = Math.ceil(particleWidthAccessor(link) * 10) / 10 / 2; var numSegments = state.linkDirectionalParticleResolution; - var particleGeometry = new three$1.SphereBufferGeometry(photonR, numSegments, numSegments); + var particleGeometry = new three$1.SphereGeometry(photonR, numSegments, numSegments); var linkColorAccessor = accessor_fn_module_default(state.linkColor); var particleColorAccessor = accessor_fn_module_default(state.linkDirectionalParticleColor); var photonColor = particleColorAccessor(link) || linkColorAccessor(link) || "#f0f0f0"; @@ -25805,7 +25990,7 @@ var ForceGraph = index2({ var numSegments = state.nodeResolution; if (!obj.geometry.type.match(/^Sphere(Buffer)?Geometry$/) || obj.geometry.parameters.radius !== radius || obj.geometry.parameters.widthSegments !== numSegments) { if (!sphereGeometries.hasOwnProperty(val)) { - sphereGeometries[val] = new three$1.SphereBufferGeometry(radius, numSegments, numSegments); + sphereGeometries[val] = new three$1.SphereGeometry(radius, numSegments, numSegments); } obj.geometry.dispose(); obj.geometry = sphereGeometries[val]; @@ -25894,7 +26079,7 @@ var ForceGraph = index2({ var numSegments = state.linkResolution; if (!obj.geometry.type.match(/^Cylinder(Buffer)?Geometry$/) || obj.geometry.parameters.radiusTop !== r || obj.geometry.parameters.radialSegments !== numSegments) { if (!cylinderGeometries.hasOwnProperty(linkWidth)) { - var geometry = new three$1.CylinderBufferGeometry(r, r, 1, numSegments, 1, false); + var geometry = new three$1.CylinderGeometry(r, r, 1, numSegments, 1, false); geometry[applyMatrix4Fn](new three$1.Matrix4().makeTranslation(0, 1 / 2, 0)); geometry[applyMatrix4Fn](new three$1.Matrix4().makeRotationX(Math.PI / 2)); cylinderGeometries[linkWidth] = geometry; @@ -25947,7 +26132,7 @@ var ForceGraph = index2({ var arrowLength = arrowLengthAccessor(link); var numSegments = state.linkDirectionalArrowResolution; if (!obj.geometry.type.match(/^Cone(Buffer)?Geometry$/) || obj.geometry.parameters.height !== arrowLength || obj.geometry.parameters.radialSegments !== numSegments) { - var coneGeometry = new three$1.ConeBufferGeometry(arrowLength * 0.25, arrowLength, numSegments); + var coneGeometry = new three$1.ConeGeometry(arrowLength * 0.25, arrowLength, numSegments); coneGeometry.translate(0, arrowLength / 2, 0); coneGeometry.rotateX(Math.PI / 2); obj.geometry.dispose(); @@ -25984,7 +26169,7 @@ var ForceGraph = index2({ particleGeometry = curPhoton.geometry; } else { if (!particleGeometries.hasOwnProperty(photonR)) { - particleGeometries[photonR] = new three$1.SphereBufferGeometry(photonR, numSegments, numSegments); + particleGeometries[photonR] = new three$1.SphereGeometry(photonR, numSegments, numSegments); } particleGeometry = particleGeometries[photonR]; curPhoton && curPhoton.geometry.dispose(); @@ -26134,10 +26319,6 @@ var _endEvent = { type: "end" }; var TrackballControls = class extends EventDispatcher { constructor(object, domElement) { super(); - if (domElement === void 0) - console.warn('THREE.TrackballControls: The second parameter "domElement" is now mandatory.'); - if (domElement === document) - console.error('THREE.TrackballControls: "document" should not be used as the target "domElement". Please use "renderer.domElement" instead.'); const scope = this; const STATE = { NONE: -1, ROTATE: 0, ZOOM: 1, PAN: 2, TOUCH_ROTATE: 3, TOUCH_ZOOM_PAN: 4 }; this.object = object; @@ -26506,8 +26687,14 @@ var TrackballControls = class extends EventDispatcher { break; case 2: _state = STATE.TOUCH_ZOOM_PAN; - _moveCurr.copy(getMouseOnCircle(event.pageX - _movePrev.x, event.pageY - _movePrev.y)); - _movePrev.copy(_moveCurr); + for (let i = 0; i < _pointers.length; i++) { + if (_pointers[i].pointerId !== event.pointerId) { + const position = _pointerPositions[_pointers[i].pointerId]; + _moveCurr.copy(getMouseOnCircle(position.x, position.y)); + _movePrev.copy(_moveCurr); + break; + } + } break; } scope.dispatchEvent(_endEvent); @@ -26569,10 +26756,6 @@ var _endEvent2 = { type: "end" }; var OrbitControls = class extends EventDispatcher { constructor(object, domElement) { super(); - if (domElement === void 0) - console.warn('THREE.OrbitControls: The second parameter "domElement" is now mandatory.'); - if (domElement === document) - console.error('THREE.OrbitControls: "document" should not be used as the target "domElement". Please use "renderer.domElement" instead.'); this.object = object; this.domElement = domElement; this.domElement.style.touchAction = "none"; @@ -27218,10 +27401,6 @@ var _changeEvent3 = { type: "change" }; var FlyControls = class extends EventDispatcher { constructor(object, domElement) { super(); - if (domElement === void 0) { - console.warn('THREE.FlyControls: The second parameter "domElement" is now mandatory.'); - domElement = document; - } this.object = object; this.domElement = domElement; this.movementSpeed = 1; @@ -27233,7 +27412,7 @@ var FlyControls = class extends EventDispatcher { const lastQuaternion = new Quaternion(); const lastPosition = new Vector3(); this.tmpQuaternion = new Quaternion(); - this.mouseStatus = 0; + this.status = 0; this.moveState = { up: 0, down: 0, left: 0, right: 0, forward: 0, back: 0, pitchUp: 0, pitchDown: 0, yawLeft: 0, yawRight: 0, rollLeft: 0, rollRight: 0 }; this.moveVector = new Vector3(0, 0, 0); this.rotationVector = new Vector3(0, 0, 0); @@ -27332,9 +27511,9 @@ var FlyControls = class extends EventDispatcher { this.updateMovementVector(); this.updateRotationVector(); }; - this.mousedown = function(event) { + this.pointerdown = function(event) { if (this.dragToLook) { - this.mouseStatus++; + this.status++; } else { switch (event.button) { case 0: @@ -27347,8 +27526,8 @@ var FlyControls = class extends EventDispatcher { this.updateMovementVector(); } }; - this.mousemove = function(event) { - if (!this.dragToLook || this.mouseStatus > 0) { + this.pointermove = function(event) { + if (!this.dragToLook || this.status > 0) { const container = this.getContainerDimensions(); const halfWidth = container.size[0] / 2; const halfHeight = container.size[1] / 2; @@ -27357,9 +27536,9 @@ var FlyControls = class extends EventDispatcher { this.updateRotationVector(); } }; - this.mouseup = function(event) { + this.pointerup = function(event) { if (this.dragToLook) { - this.mouseStatus--; + this.status--; this.moveState.yawLeft = this.moveState.pitchDown = 0; } else { switch (event.button) { @@ -27414,21 +27593,21 @@ var FlyControls = class extends EventDispatcher { }; this.dispose = function() { this.domElement.removeEventListener("contextmenu", contextmenu); - this.domElement.removeEventListener("mousedown", _mousedown); - this.domElement.removeEventListener("mousemove", _mousemove); - this.domElement.removeEventListener("mouseup", _mouseup); + this.domElement.removeEventListener("pointerdown", _pointerdown); + this.domElement.removeEventListener("pointermove", _pointermove); + this.domElement.removeEventListener("pointerup", _pointerup); window.removeEventListener("keydown", _keydown); window.removeEventListener("keyup", _keyup); }; - const _mousemove = this.mousemove.bind(this); - const _mousedown = this.mousedown.bind(this); - const _mouseup = this.mouseup.bind(this); + const _pointermove = this.pointermove.bind(this); + const _pointerdown = this.pointerdown.bind(this); + const _pointerup = this.pointerup.bind(this); const _keydown = this.keydown.bind(this); const _keyup = this.keyup.bind(this); this.domElement.addEventListener("contextmenu", contextmenu); - this.domElement.addEventListener("mousemove", _mousemove); - this.domElement.addEventListener("mousedown", _mousedown); - this.domElement.addEventListener("mouseup", _mouseup); + this.domElement.addEventListener("pointerdown", _pointerdown); + this.domElement.addEventListener("pointermove", _pointermove); + this.domElement.addEventListener("pointerup", _pointerup); window.addEventListener("keydown", _keydown); window.addEventListener("keyup", _keyup); this.updateMovementVector(); @@ -27485,6 +27664,8 @@ var Pass = class { render() { console.error("THREE.Pass: .render() must be implemented in derived pass."); } + dispose() { + } }; var _camera = new OrthographicCamera(-1, 1, 1, -1, 0, 1); var _geometry = new BufferGeometry(); @@ -27542,6 +27723,10 @@ var ShaderPass = class extends Pass { this.fsQuad.render(renderer3); } } + dispose() { + this.material.dispose(); + this.fsQuad.dispose(); + } }; // node_modules/three/examples/jsm/postprocessing/MaskPass.js @@ -27723,6 +27908,11 @@ var EffectComposer = class { this._pixelRatio = pixelRatio; this.setSize(this._width, this._height); } + dispose() { + this.renderTarget1.dispose(); + this.renderTarget2.dispose(); + this.copyPass.dispose(); + } }; var _camera2 = new OrthographicCamera(-1, 1, 1, -1, 0, 1); var _geometry2 = new BufferGeometry(); @@ -29563,7 +29753,7 @@ var threeRenderObjects = index2({ state.camera.updateProjectionMatrix(); } if (changedProps.hasOwnProperty("skyRadius") && state.skyRadius) { - state.controls.hasOwnProperty("maxDistance") && changedProps.skyRadius && (state.controls.maxDistance = state.skyRadius); + state.controls.hasOwnProperty("maxDistance") && changedProps.skyRadius && (state.controls.maxDistance = Math.min(state.controls.maxDistance, state.skyRadius)); state.camera.far = state.skyRadius * 2.5; state.camera.updateProjectionMatrix(); state.skysphere.geometry = new three2.SphereGeometry(state.skyRadius); @@ -30075,7 +30265,15 @@ function getGraphObj(object) { var GroupSettings = class { constructor(groups) { this.groups = []; - this.groups = groups || this.groups; + this.groups = groups != null ? groups : this.groups; + } + static fromStore(store) { + return new GroupSettings(store == null ? void 0 : store.groups); + } + toObject() { + return { + groups: this.groups + }; } }; var NodeGroup = class { @@ -30109,14 +30307,15 @@ var EventBus_default = new EventBus(); // src/views/graph/ForceGraph.ts var ForceGraph2 = class { - constructor(rootHtmlElement, isLocalGraph) { + constructor(plugin, rootHtmlElement, isLocalGraph) { this.highlightedNodes = /* @__PURE__ */ new Set(); this.highlightedLinks = /* @__PURE__ */ new Set(); this.getGraphData = () => { - if (this.isLocalGraph && Graph3dPlugin.openFileState.value) { - this.graph = Graph3dPlugin.globalGraph.clone().getLocalGraph(Graph3dPlugin.openFileState.value); + if (this.isLocalGraph && this.plugin.openFileState.value) { + this.graph = this.plugin.globalGraph.clone().getLocalGraph(this.plugin.openFileState.value); + console.log(this.graph); } else { - this.graph = Graph3dPlugin.globalGraph.clone(); + this.graph = this.plugin.globalGraph.clone(); } return this.graph; }; @@ -30129,7 +30328,7 @@ var ForceGraph2 = class { } else if (data.currentPath === "display.linkWidth") { this.instance.linkWidth(data.newValue); } else if (data.currentPath === "display.particleSize") { - this.instance.linkDirectionalParticleWidth(Graph3dPlugin.getSettings().display.particleSize); + this.instance.linkDirectionalParticleWidth(this.plugin.getSettings().display.particleSize); } this.instance.refresh(); }; @@ -30138,10 +30337,10 @@ var ForceGraph2 = class { }; this.getNodeColor = (node) => { if (this.isHighlightedNode(node)) { - return node === this.hoveredNode ? Graph3dPlugin.theme.interactiveAccentHover : Graph3dPlugin.theme.interactiveAccent; + return node === this.hoveredNode ? this.plugin.theme.interactiveAccentHover : this.plugin.theme.textAccent; } else { - let color = Graph3dPlugin.theme.textMuted; - Graph3dPlugin.getSettings().groups.groups.forEach((group) => { + let color = this.plugin.theme.textMuted; + this.plugin.getSettings().groups.groups.forEach((group) => { if (NodeGroup.matches(group.query, node)) color = group.color; }); @@ -30149,7 +30348,7 @@ var ForceGraph2 = class { } }; this.doShowNode = (node) => { - return Graph3dPlugin.getSettings().filters.doShowOrphans || node.links.length > 0; + return this.plugin.getSettings().filters.doShowOrphans || node.links.length > 0; }; this.onNodeHover = (node) => { if (!node && !this.highlightedNodes.size || node && this.hoveredNode === node) @@ -30162,7 +30361,7 @@ var ForceGraph2 = class { if (nodeLinks) nodeLinks.forEach((link) => this.highlightedLinks.add(link)); } - this.hoveredNode = node || null; + this.hoveredNode = node != null ? node : null; this.updateHighlight(); }; this.isHighlightedLink = (link) => { @@ -30172,7 +30371,7 @@ var ForceGraph2 = class { return this.highlightedNodes.has(node.id); }; this.createLinks = () => { - this.instance.linkWidth((link) => this.isHighlightedLink(link) ? Graph3dPlugin.getSettings().display.linkThickness * 1.5 : Graph3dPlugin.getSettings().display.linkThickness).linkDirectionalParticles((link) => this.isHighlightedLink(link) ? Graph3dPlugin.getSettings().display.particleCount : 0).linkDirectionalParticleWidth(Graph3dPlugin.getSettings().display.particleSize).onLinkHover(this.onLinkHover).linkColor((link) => this.isHighlightedLink(link) ? Graph3dPlugin.theme.interactiveAccent : Graph3dPlugin.theme.textMuted); + this.instance.linkWidth((link) => this.isHighlightedLink(link) ? this.plugin.getSettings().display.linkThickness * 1.5 : this.plugin.getSettings().display.linkThickness).linkDirectionalParticles((link) => this.isHighlightedLink(link) ? this.plugin.getSettings().display.particleCount : 0).linkDirectionalParticleWidth(this.plugin.getSettings().display.particleSize).onLinkHover(this.onLinkHover).linkColor((link) => this.isHighlightedLink(link) ? this.plugin.theme.textAccent : this.plugin.theme.textMuted); }; this.onLinkHover = (link) => { this.clearHighlights(); @@ -30189,13 +30388,15 @@ var ForceGraph2 = class { }; this.rootHtmlElement = rootHtmlElement; this.isLocalGraph = isLocalGraph; + this.plugin = plugin; + console.log("ForceGraph constructor", rootHtmlElement); this.createGraph(); this.initListeners(); } initListeners() { - Graph3dPlugin.settingsState.onChange(this.onSettingsStateChanged); + this.plugin.settingsState.onChange(this.onSettingsStateChanged); if (this.isLocalGraph) - Graph3dPlugin.openFileState.onChange(this.refreshGraphData); + this.plugin.openFileState.onChange(this.refreshGraphData); EventBus_default.on("graph-changed", this.refreshGraphData); } createGraph() { @@ -30208,16 +30409,16 @@ var ForceGraph2 = class { this.rootHtmlElement.innerWidth, this.rootHtmlElement.innerHeight ]; - this.instance = _3dForceGraph()(this.rootHtmlElement).graphData(this.getGraphData()).nodeLabel((node) => `
${node.name}
`).nodeRelSize(Graph3dPlugin.getSettings().display.nodeSize).backgroundColor(rgba(0, 0, 0, 0)).width(width).height(height); + this.instance = _3dForceGraph()(this.rootHtmlElement).graphData(this.getGraphData()).nodeLabel((node) => `
${node.name}
`).nodeRelSize(this.plugin.getSettings().display.nodeSize).backgroundColor(rgba(0, 0, 0, 0)).width(width).height(height); } - update_dimensions() { + updateDimensions() { const [width, height] = [ this.rootHtmlElement.offsetWidth, this.rootHtmlElement.offsetHeight ]; - this.set_dimensions(width, height); + this.setDimensions(width, height); } - set_dimensions(width, height) { + setDimensions(width, height) { this.instance.width(width); this.instance.height(height); } @@ -30263,11 +30464,8 @@ var TreeItem = class extends HTMLDivElement { this.appendChildren(); } }; -try { - if (customElements.get("tree-item") === void 0) { - customElements.define("tree-item", TreeItem, { extends: "div" }); - } -} catch (e) { +if (typeof customElements.get("tree-item") === "undefined") { + customElements.define("tree-item", TreeItem, { extends: "div" }); } // src/views/atomics/SimpleSliderSetting.ts @@ -30340,7 +30538,15 @@ var DisplaySettingsView_default = DisplaySettingsView; var FilterSettings = class { constructor(doShowOrphans) { this.doShowOrphans = true; - this.doShowOrphans = doShowOrphans || this.doShowOrphans; + this.doShowOrphans = doShowOrphans != null ? doShowOrphans : this.doShowOrphans; + } + static fromStore(store) { + return new FilterSettings(store == null ? void 0 : store.doShowOrphans); + } + toObject() { + return { + doShowOrphans: this.doShowOrphans + }; } }; @@ -30351,10 +30557,21 @@ var DisplaySettings = class { this.linkThickness = 5; this.particleSize = 6; this.particleCount = 4; - this.nodeSize = nodeSize || this.nodeSize; - this.linkThickness = linkThickness || this.linkThickness; - this.particleSize = particleSize || this.particleSize; - this.particleCount = particleCount || this.particleCount; + this.nodeSize = nodeSize != null ? nodeSize : this.nodeSize; + this.linkThickness = linkThickness != null ? linkThickness : this.linkThickness; + this.particleSize = particleSize != null ? particleSize : this.particleSize; + this.particleCount = particleCount != null ? particleCount : this.particleCount; + } + static fromStore(store) { + return new DisplaySettings(store == null ? void 0 : store.nodeSize, store == null ? void 0 : store.linkThickness, store == null ? void 0 : store.particleSize, store == null ? void 0 : store.particleCount); + } + toObject() { + return { + nodeSize: this.nodeSize, + linkThickness: this.linkThickness, + particleSize: this.particleSize, + particleCount: this.particleCount + }; } }; @@ -30466,14 +30683,14 @@ var ColorPicker = (containerEl, value, onChange13) => { var ColorPicker_default = ColorPicker; // src/views/settings/categories/GroupSettingsView.ts -var GroupSettingsView = (groupSettings, containerEl) => { +var GroupSettingsView = (groupSettings, containerEl, theme) => { NodeGroups(groupSettings, containerEl); - AddNodeGroupButton(groupSettings, containerEl); + AddNodeGroupButton(groupSettings, containerEl, theme); groupSettings.onChange((change) => { if (change.currentPath === "groups" && change.type === "add" || change.type === "delete") { containerEl.empty(); NodeGroups(groupSettings, containerEl); - AddNodeGroupButton(groupSettings, containerEl); + AddNodeGroupButton(groupSettings, containerEl, theme); } }); }; @@ -30490,16 +30707,16 @@ var NodeGroups = (groupSettings, containerEl) => { }); }); }; -var AddNodeGroupButton = (groupSettings, containerEl) => { +var AddNodeGroupButton = (groupSettings, containerEl, theme) => { var _a; (_a = containerEl.querySelector(".graph-color-button-container")) == null ? void 0 : _a.remove(); const buttonContainer = containerEl.createDiv({ cls: "graph-color-button-container" }); new import_obsidian3.ButtonComponent(buttonContainer).setClass("mod-cta").setButtonText("Add Group").onClick(() => { - groupSettings.value.groups.push(new NodeGroup("", Graph3dPlugin.theme.textMuted)); + groupSettings.value.groups.push(new NodeGroup("", theme.textMuted)); containerEl.empty(); - GroupSettingsView(groupSettings, containerEl); + GroupSettingsView(groupSettings, containerEl, theme); }); }; var GroupSettingItem = (group, containerEl, onDelete) => { @@ -30527,8 +30744,8 @@ var FilterSettingsView_default = FilterSettingsView; // src/views/settings/GraphSettingsView.ts var GraphSettingsView = class extends HTMLDivElement { - constructor() { - super(...arguments); + constructor(settingsState, theme) { + super(); this.isCollapsedState = new State(true); this.callbackUnregisterHandles = []; this.onIsCollapsedChanged = (stateChange) => { @@ -30536,17 +30753,20 @@ var GraphSettingsView = class extends HTMLDivElement { this.toggleCollapsed(collapsed); }; this.onSettingsButtonClicked = () => { + console.log("settings button clicked"); this.isCollapsedState.value = !this.isCollapsedState.value; }; + this.settingsState = settingsState; + this.theme = theme; } async connectedCallback() { this.classList.add("graph-settings-view"); this.settingsButton = new import_obsidian5.ExtraButtonComponent(this).setIcon("settings").setTooltip("Open graph settings").onClick(this.onSettingsButtonClicked); this.graphControls = this.createDiv({ cls: "graph-controls" }); this.appendGraphControlsItems(this.graphControls.createDiv({ cls: "control-buttons" })); - this.appendSetting(Graph3dPlugin.settingsState.createSubState("value.filters", FilterSettings), "Filters", FilterSettingsView_default); - this.appendSetting(Graph3dPlugin.settingsState.createSubState("value.groups", GroupSettings), "Groups", GroupSettingsView_default); - this.appendSetting(Graph3dPlugin.settingsState.createSubState("value.display", DisplaySettings), "Display", DisplaySettingsView_default); + this.appendSetting(this.settingsState.createSubState("value.filters", FilterSettings), "Filters", FilterSettingsView_default); + this.appendSetting(this.settingsState.createSubState("value.groups", GroupSettings), "Groups", (...args) => GroupSettingsView_default(...args, this.theme)); + this.appendSetting(this.settingsState.createSubState("value.display", DisplaySettings), "Display", DisplaySettingsView_default); this.initListeners(); this.toggleCollapsed(this.isCollapsedState.value); } @@ -30591,38 +30811,35 @@ var GraphSettingsView = class extends HTMLDivElement { this.callbackUnregisterHandles.forEach((handle) => handle()); } }; -try { - if (customElements.get("graph-settings-view") == null) { - customElements.define("graph-settings-view", GraphSettingsView, { - extends: "div" - }); - } -} catch (e) { +if (typeof customElements.get("graph-settings-view") === "undefined") { + customElements.define("graph-settings-view", GraphSettingsView, { + extends: "div" + }); } // src/views/graph/Graph3dView.ts var Graph3dView = class extends import_obsidian6.ItemView { - constructor(leaf, isLocalGraph = false) { + constructor(plugin, leaf, isLocalGraph = false) { super(leaf); this.isLocalGraph = isLocalGraph; + this.plugin = plugin; + } + onunload() { + var _a; + super.onunload(); + (_a = this.forceGraph) == null ? void 0 : _a.getInstance()._destructor(); } - onload() { - super.onload(); - const viewContent = this.getViewContent(); + showGraph() { + const viewContent = this.containerEl.querySelector(".view-content"); if (viewContent) { viewContent.classList.add("graph-3d-view"); this.appendGraph(viewContent); - const settings = new GraphSettingsView(); + const settings = new GraphSettingsView(this.plugin.settingsState, this.plugin.theme); viewContent.appendChild(settings); } else { console.error("Could not find view content"); } } - onunload() { - super.onunload(); - console.log("Unloading 3D Graph"); - this.forceGraph.getInstance()._destructor(); - } getDisplayText() { return "3D-Graph"; } @@ -30631,16 +30848,10 @@ var Graph3dView = class extends import_obsidian6.ItemView { } onResize() { super.onResize(); - const viewContent = this.getViewContent(); - if (viewContent) { - this.forceGraph.update_dimensions(); - } - } - getViewContent() { - return this.containerEl.querySelector(".view-content"); + this.forceGraph.updateDimensions(); } appendGraph(viewContent) { - this.forceGraph = new ForceGraph2(viewContent, this.isLocalGraph); + this.forceGraph = new ForceGraph2(this.plugin, viewContent, this.isLocalGraph); this.forceGraph.getInstance().onNodeClick((node, mouseEvent) => { const clickedNodeFile = this.app.vault.getFiles().find((f) => f.path === node.path); if (clickedNodeFile) { @@ -30661,13 +30872,22 @@ var GraphSettings = class { this.groups = groupOptions; this.display = displayOptions; } + static fromStore(store) { + return new GraphSettings(FilterSettings.fromStore(store == null ? void 0 : store.filters), GroupSettings.fromStore(store == null ? void 0 : store.groups), DisplaySettings.fromStore(store == null ? void 0 : store.display)); + } reset() { - this.filters = new FilterSettings(); - this.groups = new GroupSettings(); - this.display = new DisplaySettings(); + Object.assign(this.filters, new FilterSettings()); + Object.assign(this.groups, new GroupSettings()); + Object.assign(this.display, new DisplaySettings()); + } + toObject() { + return { + filters: this.filters.toObject(), + groups: this.groups.toObject(), + display: this.display.toObject() + }; } }; -var DEFAULT_SETTINGS = () => new GraphSettings(new FilterSettings(), new GroupSettings(), new DisplaySettings()); // src/graph/Link.ts var Link = class { @@ -30847,12 +31067,11 @@ var ObsidianTheme = class { this.backgroundModifierBorder = getComputedStyle(root).getPropertyValue("--background-modifier-border").trim(); this.backgroundModifierSuccess = getComputedStyle(root).getPropertyValue("--background-modifier-success").trim(); this.backgroundModifierError = getComputedStyle(root).getPropertyValue("--background-modifier-error").trim(); - this.textAccent = getComputedStyle(root).getPropertyValue("--text-accent").trim(); - this.textAccentHover = getComputedStyle(root).getPropertyValue("--text-accent-hover").trim(); + this.colorAccent = getComputedStyle(root).getPropertyValue("--color-accent").trim(); this.textNormal = getComputedStyle(root).getPropertyValue("--text-normal").trim(); this.textMuted = getComputedStyle(root).getPropertyValue("--text-muted").trim(); this.textFaint = getComputedStyle(root).getPropertyValue("--text-faint").trim(); - this.interactiveAccent = getComputedStyle(root).getPropertyValue("--interactive-accent").trim(); + this.textAccent = getComputedStyle(root).getPropertyValue("--text-accent").trim(); this.interactiveAccentHover = getComputedStyle(root).getPropertyValue("--interactive-accent-hover").trim(); } }; @@ -30869,29 +31088,35 @@ var shallowCompare = (obj1, obj2) => { var ShallowCompare_default = shallowCompare; // src/main.ts -var _Graph3dPlugin = class extends import_obsidian7.Plugin { +var Graph3dPlugin = class extends import_obsidian7.Plugin { constructor() { super(...arguments); + this.openFileState = new State(void 0); + this.cacheIsReady = new State(this.app.metadataCache.resolvedLinks !== void 0); + this.queuedGraphs = []; this.callbackUnregisterHandles = []; this.onGraphCacheReady = () => { - _Graph3dPlugin.cacheIsReady.value = true; + console.log("Graph cache is ready"); + this.cacheIsReady.value = true; this.onGraphCacheChanged(); }; this.onGraphCacheChanged = () => { - if (_Graph3dPlugin.cacheIsReady.value && !ShallowCompare_default(this._resolvedCache, this.app.metadataCache.resolvedLinks)) { + if (this.cacheIsReady.value && !ShallowCompare_default(this._resolvedCache, this.app.metadataCache.resolvedLinks)) { this._resolvedCache = structuredClone(this.app.metadataCache.resolvedLinks); - _Graph3dPlugin.globalGraph = Graph.createFromApp(this.app); + this.globalGraph = Graph.createFromApp(this.app); + } else { + console.log("changed but ", this.cacheIsReady.value, " and ", ShallowCompare_default(this._resolvedCache, this.app.metadataCache.resolvedLinks)); } }; this.onDoResetSettings = () => { - _Graph3dPlugin.settingsState.value.reset(); + this.settingsState.value.reset(); EventBus_default.trigger("did-reset-settings"); }; this.openLocalGraph = () => { var _a; const newFilePath = (_a = this.app.workspace.getActiveFile()) == null ? void 0 : _a.path; if (newFilePath) { - _Graph3dPlugin.openFileState.value = newFilePath; + this.openFileState.value = newFilePath; this.openGraph(true); } else { new import_obsidian7.Notice("No file is currently open"); @@ -30901,11 +31126,13 @@ var _Graph3dPlugin = class extends import_obsidian7.Plugin { this.openGraph(false); }; this.openGraph = (isLocalGraph) => { - const leaf = this.app.workspace.getLeaf(isLocalGraph); - if (_Graph3dPlugin.cacheIsReady.value) { - leaf == null ? void 0 : leaf.open(new Graph3dView(leaf, isLocalGraph)); + const leaf = this.app.workspace.getLeaf(isLocalGraph ? "split" : false); + const graphView = new Graph3dView(this, leaf, isLocalGraph); + leaf.open(graphView); + if (this.cacheIsReady.value) { + graphView.showGraph(); } else { - _Graph3dPlugin.queuedGraphs.push([leaf, isLocalGraph]); + this.queuedGraphs.push(graphView); } }; } @@ -30924,17 +31151,18 @@ var _Graph3dPlugin = class extends import_obsidian7.Plugin { }); } async init() { - await this.loadSettings(); - this.initStates(); + await this.initStates(); this.initListeners(); } - initStates() { - _Graph3dPlugin.settingsState = new State(this.settings); - _Graph3dPlugin.theme = new ObsidianTheme(this.app.workspace.containerEl); - _Graph3dPlugin.app = this.app; + async initStates() { + const settings = await this.loadSettings(); + this.settingsState = new State(settings); + this.theme = new ObsidianTheme(this.app.workspace.containerEl); + this.cacheIsReady.value = this.app.metadataCache.resolvedLinks !== void 0; + this.onGraphCacheChanged(); } initListeners() { - this.callbackUnregisterHandles.push(_Graph3dPlugin.settingsState.onChange(() => this.saveSettings())); + this.callbackUnregisterHandles.push(this.settingsState.onChange(() => this.saveSettings())); EventBus_default.on("do-reset-settings", this.onDoResetSettings); this.registerEvent(this.app.workspace.on("file-menu", (menu, file) => { if (!file) @@ -30945,52 +31173,37 @@ var _Graph3dPlugin = class extends import_obsidian7.Plugin { })); this.registerEvent(this.app.workspace.on("file-open", (file) => { if (file) - _Graph3dPlugin.openFileState.value = file.path; + this.openFileState.value = file.path; })); - this.callbackUnregisterHandles.push(_Graph3dPlugin.cacheIsReady.onChange((isReady) => { + this.callbackUnregisterHandles.push(this.cacheIsReady.onChange((isReady) => { if (isReady) { this.openQueuedGraphs(); } })); - this.app.metadataCache.on("resolved", this.onGraphCacheReady); - this.app.metadataCache.on("resolve", this.onGraphCacheChanged); + this.app.metadataCache.on("resolved", this.onGraphCacheReady.bind(this)); + this.app.metadataCache.on("resolve", this.onGraphCacheChanged.bind(this)); } openQueuedGraphs() { - _Graph3dPlugin.queuedGraphs.forEach(([leaf, isLocalGraph]) => { - leaf == null ? void 0 : leaf.open(new Graph3dView(leaf, isLocalGraph)); - }); - _Graph3dPlugin.queuedGraphs = []; + this.queuedGraphs.forEach((view) => view.showGraph()); + this.queuedGraphs = []; } async loadSettings() { - var _a; - const loadedData = await this.loadData(), defaultSettings = DEFAULT_SETTINGS(); - if (loadedData == null ? void 0 : loadedData.display) { - Object.assign(defaultSettings.display, loadedData.display); - } - if (loadedData == null ? void 0 : loadedData.filters) { - Object.assign(defaultSettings.filters, loadedData.filters); - } - if ((_a = loadedData == null ? void 0 : loadedData.groups) == null ? void 0 : _a.groups) { - defaultSettings.groups.groups = loadedData.groups.groups.map((groupObj) => Object.assign(new NodeGroup("", ""), groupObj)); - } - this.settings = defaultSettings; + const loadedData = await this.loadData(), settings = GraphSettings.fromStore(loadedData); + return settings; } async saveSettings() { - await this.saveData(this.settings); + console.log("saveSettings:", this.settingsState.getRawValue().toObject()); + await this.saveData(this.settingsState.getRawValue().toObject()); } onunload() { super.onunload(); this.callbackUnregisterHandles.forEach((handle) => handle()); EventBus_default.off("do-reset-settings", this.onDoResetSettings); } - static getSettings() { - return _Graph3dPlugin.settingsState.value; + getSettings() { + return this.settingsState.value; } }; -var Graph3dPlugin = _Graph3dPlugin; -Graph3dPlugin.openFileState = new State(void 0); -Graph3dPlugin.cacheIsReady = new State(false); -Graph3dPlugin.queuedGraphs = []; /** * @license * Copyright 2010-2022 Three.js Authors diff --git a/.obsidian/plugins/obsidian-3d-graph/manifest.json b/.obsidian/plugins/3d-graph/manifest.json similarity index 77% rename from .obsidian/plugins/obsidian-3d-graph/manifest.json rename to .obsidian/plugins/3d-graph/manifest.json index 08c93423..2ccd5701 100644 --- a/.obsidian/plugins/obsidian-3d-graph/manifest.json +++ b/.obsidian/plugins/3d-graph/manifest.json @@ -1,7 +1,7 @@ { - "id": "obsidian-3d-graph", + "id": "3d-graph", "name": "3D Graph", - "version": "1.0.0", + "version": "1.0.3", "description": "A 3D Graph for Obsidian", "author": "Alexander Weichart", "authorUrl": "https://github.com/AlexW00", diff --git a/.obsidian/plugins/obsidian-3d-graph/obisidian-3d-graph-1.0.0.zip b/.obsidian/plugins/3d-graph/obisidian-3d-graph-1.0.1.zip similarity index 99% rename from .obsidian/plugins/obsidian-3d-graph/obisidian-3d-graph-1.0.0.zip rename to .obsidian/plugins/3d-graph/obisidian-3d-graph-1.0.1.zip index 56f67c1cab91e72210fea8cabfcddb930fe72f64..e58b6475f8c8a2c9538ea0b568df1125bb358630 100644 GIT binary patch delta 504 zcmey-A$g-ik~hGcnT3l11UTFsC-Um3Ggu_Q-@g|~mR4{xFtPyI%nS@Hl|Tg`r6M4O zAf?m0?ARwf0e{Vc8fS-0+IJ7LQO zR2r%PG~6k6x|Ji6Nz>~b*<@{i5fD?;k{pl7dAX}XWNECxafyf2KaRFk( ztPnjQ1=SV|Wa`|R0wf)PnDtHXA|NFW#3$DQ2_P~o2o+IwGcKW==IkPEFw{~U|pT5D4 ujfaDkff=Y3S%HKzn=&g1x zm>GeX35Y>#79eKb9>dIb!WN`yVuA&Vo{bBVn7DxAp+JMp7|o~aIkKTDn4agzCR^{G z4wM)11(8r!_;|fEb9PAQX_iyA;lZGpf}Jk_co40kJSA zM5wUT4agA4jf8Od?={#&3BRx3zgJTmD3S!kLO|>Qk=27x)*wSvA?)khLv$QLnzeY# z6IBF&3p4Iss;3nXr=0Es|Q&7lQAhMhEo7a3jymjN>3fw&ZiFZKfo`S)@#O+X$H znFn|?GRZN+BWU_uCpH@vpad{#M5e!YV&eh@_4G_LMUpGqvoD7n-5&l!G%o%0B*4qfdBvi diff --git a/.obsidian/plugins/obsidian-3d-graph/styles.css b/.obsidian/plugins/3d-graph/styles.css similarity index 98% rename from .obsidian/plugins/obsidian-3d-graph/styles.css rename to .obsidian/plugins/3d-graph/styles.css index 38f6517b..d0730f9d 100644 --- a/.obsidian/plugins/obsidian-3d-graph/styles.css +++ b/.obsidian/plugins/3d-graph/styles.css @@ -44,7 +44,7 @@ .graph-3d-view .graph-settings-view > .clickable-icon { position: absolute; top: 8px; - left: 8px; + right: 8px; } .graph-3d-view .node-label { diff --git a/.obsidian/plugins/cmdr/data.json b/.obsidian/plugins/cmdr/data.json new file mode 100644 index 00000000..ebbed384 --- /dev/null +++ b/.obsidian/plugins/cmdr/data.json @@ -0,0 +1,73 @@ +{ + "confirmDeletion": true, + "showAddCommand": true, + "debug": false, + "editorMenu": [], + "fileMenu": [ + { + "id": "garble-text:toggle-garble-text", + "icon": "align-justify", + "name": "Garble Text: Toggle Garble Text", + "mode": "any" + }, + { + "id": "obsidian-tasks-plugin:edit-task", + "icon": "list-checks", + "name": "Tasks: Create or edit task", + "mode": "any" + }, + { + "id": "editor:save-file", + "icon": "save", + "name": "Save current file", + "mode": "any" + } + ], + "leftRibbon": [], + "rightRibbon": [], + "titleBar": [], + "statusBar": [], + "pageHeader": [ + { + "id": "obsidian-map-view:convert-selection-to-location", + "icon": "map-pin", + "name": "Map View: Convert Selection to Geolocation", + "mode": "any" + }, + { + "id": "obsidian-media-db-plugin:open-media-db-search-modal", + "icon": "tv", + "name": "Media DB Plugin: Add new Media DB entry", + "mode": "any" + }, + { + "id": "obsidian-book-search-plugin:open-book-search-modal", + "icon": "book", + "name": "Book Search: Create new book note", + "mode": "any" + }, + { + "id": "auto-card-link:auto-card-link-paste-and-enhance", + "icon": "bookmark", + "name": "Auto Card Link: Paste URL and enhance to card link", + "mode": "any" + } + ], + "macros": [], + "explorer": [], + "hide": { + "statusbar": [], + "leftRibbon": [] + }, + "spacing": 8, + "advancedToolbar": { + "rowHeight": 48, + "rowCount": 2, + "spacing": 0, + "buttonWidth": 48, + "columnLayout": false, + "mappedIcons": [], + "tooltips": false, + "heightOffset": 0 + } +} \ No newline at end of file diff --git a/.obsidian/plugins/cmdr/main.js b/.obsidian/plugins/cmdr/main.js new file mode 100644 index 00000000..57e0966a --- /dev/null +++ b/.obsidian/plugins/cmdr/main.js @@ -0,0 +1,9 @@ +/* +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,vn=Object.defineProperties,gn=Object.getOwnPropertyDescriptor,bn=Object.getOwnPropertyDescriptors,Cn=Object.getOwnPropertyNames,He=Object.getOwnPropertySymbols;var pt=Object.prototype.hasOwnProperty,qt=Object.prototype.propertyIsEnumerable;var Ut=(t,o,e)=>o in t?Oe(t,o,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[o]=e,Fe=(t,o)=>{for(var e in o||(o={}))pt.call(o,e)&&Ut(t,e,o[e]);if(He)for(var e of He(o))qt.call(o,e)&&Ut(t,e,o[e]);return t},Xt=(t,o)=>vn(t,bn(o));var Jt=(t,o)=>{var e={};for(var n in t)pt.call(t,n)&&o.indexOf(n)<0&&(e[n]=t[n]);if(t!=null&&He)for(var n of He(t))o.indexOf(n)<0&&qt.call(t,n)&&(e[n]=t[n]);return e};var _n=(t,o)=>{for(var e in o)Oe(t,e,{get:o[e],enumerable:!0})},wn=(t,o,e,n)=>{if(o&&typeof o=="object"||typeof o=="function")for(let i of Cn(o))!pt.call(t,i)&&i!==e&&Oe(t,i,{get:()=>o[i],enumerable:!(n=gn(o,i))||n.enumerable});return t};var yn=t=>wn(Oe({},"__esModule",{value:!0}),t);var ri={};_n(ri,{default:()=>ct});module.exports=yn(ri);var ze=require("obsidian");var vt=require("obsidian");var jt={};var Yt={};var Zt={};var $t={"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 ft={"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 Gt={};var Kt={};var Qt={};var eo={};var to={};var oo={};var no={};var io={};var ao={};var ro={};var so={};var co={};var mo={};var lo={};var uo={};var po={};var fo={"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 ho={};var Jn={ar:jt,cs:Yt,da:Zt,de:$t,en:ft,"en-gb":Gt,es:Kt,fr:Qt,hi:eo,id:to,it:oo,ja:no,ko:io,nl:ao,nn:ro,pl:so,pt:co,"pt-br":mo,ro:lo,ru:uo,tr:po,"zh-cn":fo,"zh-tw":ho},ht=Jn[vt.moment.locale()];function m(t){return ht||console.error("Error: dictionary locale not found",vt.moment.locale()),ht&&ht[t]||ft[t]}var ne=class extends ze.FuzzySuggestModal{constructor(e){super(app);this.plugin=e,this.commands=Object.values(app.commands.commands),this.setPlaceholder(m("Choose a Command to add")),this.setInstructions([{command:"\u2191\u2193",purpose:m("to navigate")},{command:"\u21B5",purpose:m("to choose an icon")},{command:"esc",purpose:m("to cancel")}])}async awaitSelection(){return this.open(),new Promise((e,n)=>{this.onChooseItem=i=>e(i),this.onClose=()=>window.setTimeout(()=>n("No Command selected"),0)})}renderSuggestion(e,n){if(n.addClass("mod-complex"),n.createDiv({cls:"suggestion-content"}).createDiv({cls:"suggestion-title"}).setText(e.item.name),e.item.icon){let r=n.createDiv({cls:"suggestion-aux"});(0,ze.setIcon)(r.createSpan({cls:"suggestion-flair"}),e.item.icon)}}getItems(){return this.commands}getItemText(e){return e.name}onChooseItem(e,n){}};var vo={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}},go=["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 D=class extends We.FuzzySuggestModal{constructor(e){super(app);this.plugin=e,this.setPlaceholder(m("Choose a Icon for your new Command")),this.setInstructions([{command:"\u2191\u2193",purpose:m("to navigate")},{command:"\u21B5",purpose:m("to choose a custom icon")},{command:"esc",purpose:m("to cancel")}])}async awaitSelection(){return this.open(),new Promise((e,n)=>{this.onChooseItem=i=>e(i),this.onClose=()=>window.setTimeout(()=>n("No Icon selected"),0)})}renderSuggestion(e,n){n.addClass("mod-complex"),n.createDiv({cls:"suggestion-content"}).createDiv({cls:"suggestion-title"}).setText(e.item.replace(/-/g," ").replace(/(^\w{1})|(\s+\w{1})/g,c=>c.toUpperCase()));let r=n.createDiv({cls:"suggestion-aux"});(0,We.setIcon)(r.createSpan({cls:"suggestion-flair"}),e.item)}getItems(){return go}getItemText(e){return e}onChooseItem(e,n){}};var Ke=require("obsidian");var bo=require("obsidian");var q=class extends bo.SuggestModal{constructor(e){super(app);this.defaultName=e;this.setPlaceholder(m("Use a custom name")),this.resultContainerEl.style.display="none",this.setInstructions([{command:"",purpose:m("Choose a custom Name for your new Command")},{command:"\u21B5",purpose:m("to save")},{command:"esc",purpose:m("to cancel")}])}onOpen(){var i;super.onOpen(),this.inputEl.value=this.defaultName;let e=createDiv({cls:"cmdr-name-input-wrapper"});(i=this.inputEl.parentNode)==null||i.insertBefore(e,this.inputEl),e.appendChild(this.inputEl),e.parentElement.style.display="block";let n=createEl("button",{text:m("Save"),cls:"mod-cta"});n.onclick=r=>this.selectSuggestion(this.inputEl.value,r),e.appendChild(n)}async awaitSelection(){return this.open(),new Promise((e,n)=>{this.onChooseSuggestion=i=>e(i),this.onClose=()=>window.setTimeout(()=>n("No Name selected"),0)})}getSuggestions(e){return[e]}renderSuggestion(e,n){}onChooseSuggestion(e,n){}};var je,w,ko,jn,ye,Co,Mo,qe={},Io=[],Yn=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function ie(t,o){for(var e in o)t[e]=o[e];return t}function xo(t){var o=t.parentNode;o&&o.removeChild(t)}function a(t,o,e){var n,i,r,c={};for(r in o)r=="key"?n=o[r]:r=="ref"?i=o[r]:c[r]=o[r];if(arguments.length>2&&(c.children=arguments.length>3?je.call(arguments,2):e),typeof t=="function"&&t.defaultProps!=null)for(r in t.defaultProps)c[r]===void 0&&(c[r]=t.defaultProps[r]);return Ve(t,c,n,i,null)}function Ve(t,o,e,n,i){var r={type:t,props:o,key:e,ref:n,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:i==null?++ko:i};return i==null&&w.vnode!=null&&w.vnode(r),r}function R(t){return t.children}function Ue(t,o){this.props=t,this.context=o}function ke(t,o){if(o==null)return t.__?ke(t.__,t.__.__k.indexOf(t)+1):null;for(var e;o0?Ve(f.type,f.props,f.key,f.ref?f.ref:null,f.__v):f)!=null){if(f.__=e,f.__b=e.__b+1,(v=_[s])===null||v&&f.key==v.key&&f.type===v.type)_[s]=void 0;else for(g=0;g=e.__.length&&e.__.push({__V:Ye}),e.__[t]}function F(t){return $e=1,Kn(qo,t)}function Kn(t,o,e){var n=Ge(Me++,2);if(n.t=t,!n.__c&&(n.__=[e?e(o):qo(void 0,o),function(r){var c=n.__N?n.__N[0]:n.__[0],u=n.t(c,r);c!==u&&(n.__N=[u,n.__[1]],n.__c.setState({}))}],n.__c=O,!O.u)){O.u=!0;var i=O.shouldComponentUpdate;O.shouldComponentUpdate=function(r,c,u){if(!n.__c.__H)return!0;var l=n.__c.__H.__.filter(function(s){return s.__c});if(l.every(function(s){return!s.__N}))return!i||i.call(this,r,c,u);var h=!1;return l.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===r)&&(!i||i.call(this,r,c,u))}}return n.__N||n.__}function W(t,o){var e=Ge(Me++,3);!w.__s&&yt(e.__H,o)&&(e.__=t,e.i=o,O.__H.__h.push(e))}function Uo(t,o){var e=Ge(Me++,4);!w.__s&&yt(e.__H,o)&&(e.__=t,e.i=o,O.__h.push(e))}function ee(t){return $e=5,wt(function(){return{current:t}},[])}function wt(t,o){var e=Ge(Me++,7);return yt(e.__H,o)?(e.__V=t(),e.i=o,e.__h=t,e.__V):e.__}function Qn(){for(var t;t=Vo.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(Ze),t.__H.__h.forEach(_t),t.__H.__h=[]}catch(o){t.__H.__h=[],w.__e(o,t.__v)}}w.__b=function(t){O=null,Ro&&Ro(t)},w.__r=function(t){Ho&&Ho(t),Me=0;var o=(O=t.__c).__H;o&&(Ct===O?(o.__h=[],O.__h=[],o.__.forEach(function(e){e.__N&&(e.__=e.__N),e.__V=Ye,e.__N=e.i=void 0})):(o.__h.forEach(Ze),o.__h.forEach(_t),o.__h=[])),Ct=O},w.diffed=function(t){Oo&&Oo(t);var o=t.__c;o&&o.__H&&(o.__H.__h.length&&(Vo.push(o)!==1&&Do===w.requestAnimationFrame||((Do=w.requestAnimationFrame)||ei)(Qn)),o.__H.__.forEach(function(e){e.i&&(e.__H=e.i),e.__V!==Ye&&(e.__=e.__V),e.i=void 0,e.__V=Ye})),Ct=O=null},w.__c=function(t,o){o.some(function(e){try{e.__h.forEach(Ze),e.__h=e.__h.filter(function(n){return!n.__||_t(n)})}catch(n){o.some(function(i){i.__h&&(i.__h=[])}),o=[],w.__e(n,e.__v)}}),Fo&&Fo(t,o)},w.unmount=function(t){zo&&zo(t);var o,e=t.__c;e&&e.__H&&(e.__H.__.forEach(function(n){try{Ze(n)}catch(i){o=i}}),e.__H=void 0,o&&w.__e(o,e.__v))};var Wo=typeof requestAnimationFrame=="function";function ei(t){var o,e=function(){clearTimeout(n),Wo&&cancelAnimationFrame(o),setTimeout(t)},n=setTimeout(e,100);Wo&&(o=requestAnimationFrame(e))}function Ze(t){var o=O,e=t.__c;typeof e=="function"&&(t.__c=void 0,e()),O=o}function _t(t){var o=O;t.__c=t.__(),O=o}function yt(t,o){return!t||t.length!==o.length||o.some(function(e,n){return e!==t[n]})}function qo(t,o){return typeof o=="function"?o(t):o}var kt={};(function t(o,e,n,i){var r=!!(o.Worker&&o.Blob&&o.Promise&&o.OffscreenCanvas&&o.OffscreenCanvasRenderingContext2D&&o.HTMLCanvasElement&&o.HTMLCanvasElement.prototype.transferControlToOffscreen&&o.URL&&o.URL.createObjectURL);function c(){}function u(p){var d=e.exports.Promise,P=d!==void 0?d:o.Promise;return typeof P=="function"?new P(p):(p(c,c),null)}var l=function(){var p=Math.floor(16.666666666666668),d,P,M={},T=0;return typeof requestAnimationFrame=="function"&&typeof cancelAnimationFrame=="function"?(d=function(E){var I=Math.random();return M[I]=requestAnimationFrame(function x(B){T===B||T+p-1{(0,Ke.setIcon)(r.current,t,o)},[t,o]),a("div",Fe({ref:r},e))}function Z(t){let{isMobile:o,appId:e}=app;return t==="any"||t===e||t==="mobile"&&o||t==="desktop"&&!o}function Ie(t){var e;let o="";for(let n of t.hide.statusbar)o+=`div.status-bar-item.plugin-${n} {display: none !important; content-visibility: hidden;}`;for(let n of t.hide.leftRibbon)o+=`div.side-dock-ribbon-action[aria-label="${n}"] {display: none !important; content-visibility: hidden;}`;(e=document.head.querySelector("style#cmdr"))==null||e.remove(),o&&document.head.appendChild(createEl("style",{attr:{id:"cmdr"},text:o,type:"text/css"}))}async function Mt({target:t}){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 e=Xo.create(o,{resize:!0,useWorker:!0}),n=t.getBoundingClientRect();await e({particleCount:Ke.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 Qe(t){activeDocument.body.style.setProperty("--cmdr-spacing",`${t}px`)}function xe(t){let o=Object.keys(app.commands.commands).filter(n=>n.startsWith("cmdr:macro-"));for(let n of o)app.commands.removeCommand(n);let e=t.settings.macros;for(let[n,i]of Object.entries(e))t.addCommand({id:`macro-${n}`,name:i.name,callback:()=>{t.executeMacro(parseInt(n))}})}function oe(t){var n,i;let{classList:o,style:e}=document.body;e.setProperty("--at-button-height",((n=t.rowHeight)!=null?n:48)+"px"),e.setProperty("--at-button-width",((i=t.buttonWidth)!=null?i:48)+"px"),e.setProperty("--at-row-count",t.rowCount.toString()),e.setProperty("--at-spacing",t.spacing+"px"),e.setProperty("--at-offset",t.heightOffset+"px"),o.toggle("AT-multirow",t.rowCount>1),o.toggle("AT-row",!t.columnLayout),o.toggle("AT-column",t.columnLayout),o.toggle("AT-no-toolbar",t.rowCount===0)}function Jo(){let{classList:t,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"),t.remove("AT-multirow"),t.remove("AT-row"),t.remove("AT-column"),t.remove("AT-no-toolbar"),t.remove("advanced-toolbar")}function et(t){t.mappedIcons.forEach(o=>{let e=app.commands.commands[o.commandID];e?e.icon=o.iconID:t.mappedIcons.remove(o)})}var sn=require("obsidian");var Se=require("obsidian");var Yo=require("obsidian");function jo({modal:t}){return a(R,null,a("p",null,m("Are you sure you want to delete the Command?")),a("div",{className:"modal-button-container"},a("button",{className:"mod-warning",onClick:async()=>{t.plugin.settings.confirmDeletion=!1,t.plugin.saveSettings(),t.remove=!0,t.close()}},m("Remove and don't ask again")),a("button",{className:"mod-warning",onClick:()=>{t.remove=!0,t.close()}},m("Remove")),a("button",{onClick:()=>{t.remove=!1,t.close()}},m("Cancel"))))}var H=class extends Yo.Modal{constructor(e){super(app);this.plugin=e}async onOpen(){this.titleEl.innerText=m("Remove Command"),this.containerEl.style.zIndex="99",this.reactComponent=a(jo,{modal:this}),X(this.reactComponent,this.contentEl)}async didChooseRemove(){return this.open(),new Promise(e=>{this.onClose=()=>{var n;return e((n=this.remove)!=null?n:!1)}})}onClose(){X(null,this.contentEl)}};var j=class{constructor(o,e){this.plugin=o,this.pairs=e}};var be=class extends j{constructor(e,n){super(e,n);this.actions=new Map;this.init(),this.plugin.register(()=>this.actions.forEach((i,r)=>this.removeAction(r)))}getFileExplorers(){return app.workspace.getLeavesOfType("file-explorer")}init(){app.workspace.onLayoutReady(()=>{for(let e of this.pairs)Z(e.mode)&&(app.workspace.onLayoutReady(()=>{this.getFileExplorers().forEach(i=>{this.addAction(e,i)})}),this.plugin.registerEvent(app.workspace.on("layout-change",()=>{this.getFileExplorers().forEach(i=>{this.addAction(e,i)})})))})}reorder(){this.actions.forEach((e,n)=>this.removeAction(n,!0)),this.init()}async addCommand(e){this.pairs.push(e),app.workspace.onLayoutReady(()=>{this.getFileExplorers().forEach(i=>{this.addAction(e,i)})}),this.plugin.registerEvent(app.workspace.on("layout-change",()=>{this.getFileExplorers().forEach(i=>{this.addAction(e,i)})})),await this.plugin.saveSettings()}async removeCommand(e){this.pairs.remove(e),this.removeAction(e),await this.plugin.saveSettings()}buttonExists(e,n){return[...e.view.containerEl.querySelectorAll("div.nav-buttons-container > .cmdr.clickable-icon")].some(i=>i.getAttribute("data-cmdr")===n.icon+n.name)}addAction(e,n){var l,h,s,g,v;if(this.buttonExists(n,e))return;let i=createDiv({cls:"cmdr clickable-icon",attr:{"aria-label-position":"top","aria-label":e.name,"data-cmdr":e.icon+e.name}});this.actions.set(e,i),i.style.color=e.color==="#000000"||e.color===void 0?"inherit":e.color;let r=!1,c=()=>{i.empty(),(0,Se.setIcon)(i,e.icon,12),i.onclick=()=>app.commands.executeCommandById(e.id)},u=()=>{i.empty(),(0,Se.setIcon)(i,"trash",12),i.onclick=async()=>{(!this.plugin.settings.confirmDeletion||await new H(this.plugin).didChooseRemove())&&this.removeCommand(e)}};i.addEventListener("mouseleave",()=>{c(),r=!1}),i.addEventListener("mousemove",f=>{f.preventDefault(),f.stopImmediatePropagation(),f.shiftKey&&(r||u(),r=!0)}),i.addEventListener("contextmenu",f=>{f.stopImmediatePropagation(),new Se.Menu().addItem(b=>{b.setTitle(m("Add command")).setIcon("command").onClick(async()=>{let S=await V(this.plugin);this.addCommand(S)})}).addSeparator().addItem(b=>{b.setTitle(m("Change Icon")).setIcon("box").onClick(async()=>{let S=await new D(this.plugin).awaitSelection();S&&S!==e.icon&&(e.icon=S,await this.plugin.saveSettings(),this.reorder())})}).addItem(b=>{b.setTitle(m("Rename")).setIcon("text-cursor-input").onClick(async()=>{let S=await new q(e.name).awaitSelection();S&&S!==e.name&&(e.name=S,await this.plugin.saveSettings(),this.reorder())})}).addItem(b=>{b.dom.addClass("is-warning"),b.setTitle(m("Delete")).setIcon("lucide-trash").onClick(async()=>{(!this.plugin.settings.confirmDeletion||await new H(this.plugin).didChooseRemove())&&this.removeCommand(e)})}).showAtMouseEvent(f)}),c(),(v=(g=(s=(h=(l=n.view)==null?void 0:l.containerEl)==null?void 0:h.querySelector)==null?void 0:s.call(h,"div.nav-buttons-container"))==null?void 0:g.appendChild)==null||v.call(g,i)}removeAction(e,n=!1){let i=this.actions.get(e);if(!!i){if(n){i.remove(),this.actions.delete(e);return}i.addClass("cmdr-ribbon-removing"),i.addEventListener("transitionend",async()=>{i.remove(),this.actions.delete(e)})}}};var se=require("obsidian");var tt=class extends j{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,e,n,i,r){return c=>{var f;c.dom.addClass("cmdr"),c.dom.style.color=e.color==="#000000"||e.color===void 0?"inherit":e.color,c.setSection("cmdr"),c.dom.style.display="flex";let u=createDiv({cls:"cmdr-menu-more-options"}),l=null;u.addEventListener("click",b=>{b.preventDefault(),b.stopImmediatePropagation(),l?(l.hide(),l=null):l=new se.Menu().addItem(S=>{S.setTitle(m("Change Icon")).setIcon("box").onClick(async()=>{let C=await new D(n).awaitSelection();C&&C!==e.icon&&(e.icon=C,await n.saveSettings())})}).addItem(S=>{S.setTitle(m("Rename")).setIcon("text-cursor-input").onClick(async()=>{let C=await new q(e.name).awaitSelection();C&&C!==e.name&&(e.name=C,await n.saveSettings())})}).addItem(S=>{S.dom.addClass("is-warning"),S.setTitle(m("Delete")).setIcon("lucide-trash").onClick(async()=>{(!n.settings.confirmDeletion||await new H(n).didChooseRemove())&&v()})}).showAtMouseEvent(b)}),(0,se.setIcon)(u,"more-vertical",16),c.dom.append(u),c.setTitle((f=e.name)!=null?f:o.name).setIcon(e.icon).onClick(()=>app.commands.executeCommandById(e.id));let h=!1,s=()=>{u.style.display="none"},g=()=>{u.style.display="block"},v=async()=>{c.dom.addClass("cmdr-removing"),i.registerDomEvent(c.dom,"transitionend",()=>{c.dom.remove()}),r.remove(e),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,e,n){o.settings.showAddCommand&&e.addItem(i=>{i.setTitle(m("Add command")).setIcon("plus-circle").setSection("cmdr").onClick(async()=>{try{let r=await V(o);n.push(r),await o.saveSettings()}catch(r){console.log(r)}})})}},Pe=class extends tt{applyEditorMenuCommands(o){return async(e,n,i)=>{this.addCommandAddButton(o,e,o.settings.editorMenu);for(let r of o.settings.editorMenu){let c=G(r.id);!c||!Z(r.mode)||c.checkCallback&&!c.checkCallback(!0)||c.editorCheckCallback&&!c.editorCheckCallback(!0,n,i)||e.addItem(this.addRemovableCommand.call(this,c,r,o,e,o.settings.editorMenu))}}}},Ee=class extends tt{applyFileMenuCommands(o){return async(e,n,i,r)=>{this.addCommandAddButton(o,e,o.settings.fileMenu);for(let c of o.settings.fileMenu){let u=G(c.id);if(!!u&&!(u.checkCallback&&!u.checkCallback(!0))){if(u.editorCallback){if(!((r==null?void 0:r.view)instanceof se.MarkdownView))continue}else if(u.editorCheckCallback)if((r==null?void 0:r.view)instanceof se.MarkdownView){if(!u.editorCheckCallback(!0,r.view.editor,r.view))continue}else continue;e.addItem(this.addRemovableCommand.call(this,u,c,o,e,o.settings.fileMenu))}}}}};var ce=require("obsidian");var Ce=class extends j{constructor(e,n){super(e,n);this.buttons=new WeakMap;this.init()}addPageHeaderButton(e,n){let{id:i,icon:r,name:c}=n,{view:u}=e;if(!(u instanceof ce.ItemView))return;let l=this.buttonsFor(e,!0);if(!l||l.has(i))return;let h=u.addAction(r,c,()=>{app.workspace.setActiveLeaf(e,{focus:!0}),app.commands.executeCommandById(i)});l.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(m("Add command")).setIcon("command").onClick(async()=>{let v=await V(this.plugin);this.addCommand(v)})}).addSeparator().addItem(g=>{g.setTitle(m("Change Icon")).setIcon("box").onClick(async()=>{let v=await new D(this.plugin).awaitSelection();v&&v!==n.icon&&(n.icon=v,await this.plugin.saveSettings(),this.reorder())})}).addItem(g=>{g.setTitle(m("Rename")).setIcon("text-cursor-input").onClick(async()=>{let v=await new q(n.name).awaitSelection();v&&v!==n.name&&(n.name=v,await this.plugin.saveSettings(),this.reorder())})}).addItem(g=>{g.dom.addClass("is-warning"),g.setTitle(m("Delete")).setIcon("lucide-trash").onClick(async()=>{(!this.plugin.settings.confirmDeletion||await new H(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(e){var c;let{view:n}=e,i="cmdr-adder";if(!(n instanceof ce.ItemView)||(c=this.buttons.get(n))!=null&&c.has(i))return;let r=n.addAction("plus",m("Add new"),async()=>{this.addCommand(await V(this.plugin))});r.addClasses(["cmdr",i]),this.buttons.has(n)||this.buttons.set(n,new Map),this.buttons.get(n).set(i,r)}addButtonsToAllLeaves(e=!1){activeWindow.requestAnimationFrame(()=>app.workspace.iterateAllLeaves(n=>this.addButtonsToLeaf(n,e)))}removeButtonsFromAllLeaves(){activeWindow.requestAnimationFrame(()=>app.workspace.iterateAllLeaves(e=>this.removeButtonsFromLeaf(e)))}buttonsFor(e,n=!1){if(e.view instanceof ce.ItemView)return n&&!this.buttons.has(e.view)&&this.buttons.set(e.view,new Map),this.buttons.get(e.view)}addButtonsToLeaf(e,n=!1){var i;if(e.view instanceof ce.ItemView){if(n)this.removeButtonsFromLeaf(e);else if((i=this.buttonsFor(e))!=null&&i.size)return;for(let r=this.pairs.length-1;r>=0;r--){let c=this.pairs[r];Z(c.mode)&&this.addPageHeaderButton(e,c)}this.plugin.settings.showAddCommand&&this.addAdderButton(e)}}removeButtonsFromLeaf(e){let n=this.buttonsFor(e);if(n){for(let i of n.values())i.detach();n==null||n.clear()}}reorder(){this.addButtonsToAllLeaves(!0)}async addCommand(e){this.pairs.push(e),this.addButtonsToAllLeaves(!0),await this.plugin.saveSettings()}async removeCommand(e){this.pairs.remove(e),this.addButtonsToAllLeaves(!0),await this.plugin.saveSettings()}};var Q=require("obsidian");var _e=class extends j{constructor(e,n){super(n,n.settings[`${e}Ribbon`]);this.side=e;this.actions={},app.workspace.onLayoutReady(()=>{this.side==="right"?this.addActionContainer():this.ribbonEl=app.workspace.leftRibbon,this.addBtn=createDiv({cls:"cmdr side-dock-ribbon-action cmdr-adder",attr:{"aria-label-position":e==="left"?"right":"left","aria-label":m("Add new")}}),this.init()}),this.plugin.register(()=>{Q.Platform.isMobile?Object.keys(this.actions).forEach(i=>this.removeActionMobile(i)):Object.values(this.actions).forEach(i=>i.remove())})}async addCommand(e){var i;let n=G(e.id);n?this.addAction((i=e.name)!=null?i:n.name,e.icon,e,()=>app.commands.executeCommandById(e.id)):this.addAction(m("This Command seems to have been removed. {{command_name}}").replace("{{command_name}}",e.name||""),"trash",e,r=>{this.removeAction(r.target.getAttribute("aria-label")+"trash")}),this.pairs.push(e),await this.plugin.saveSettings()}async removeCommand(e){this.removeAction(e.name+e.icon),this.pairs.remove(e),await this.plugin.saveSettings()}reorder(){this.addBtn.remove(),Q.Platform.isMobile?Object.keys(this.actions).forEach(e=>this.removeActionMobile(e)):Object.values(this.actions).forEach(e=>e.remove()),this.init()}init(){for(let e of this.pairs)Z(e.mode)&&this.addAction(e.name,e.icon,e,()=>app.commands.executeCommandById(e.id));this.plugin.register(()=>this.addBtn.remove()),(0,Q.setIcon)(this.addBtn,"plus"),this.addBtn.onclick=async()=>{let e=await V(this.plugin);this.addCommand(e),this.reorder()},this.plugin.settings.showAddCommand&&app.workspace.onLayoutReady(()=>{var e,n;return(n=(e=this.ribbonEl.ribbonActionsEl)==null?void 0:e.append)==null?void 0:n.call(e,this.addBtn)})}addActionMobile(e,n,i){app.workspace.leftRibbon.orderedRibbonActions.push({cmdr__id:e+n,title:e,icon:n,callback:i})}removeActionMobile(e){app.workspace.leftRibbon.orderedRibbonActions=app.workspace.leftRibbon.orderedRibbonActions.filter(n=>n.cmdr__id!==e)}addAction(e,n,i,r){var s;let c=this.ribbonEl.makeRibbonActionButton(n,e,()=>{});if(c.addClass("cmdr"),c.style.color=i.color==="#000000"||i.color===void 0?"inherit":i.color,c.setAttribute("aria-label-position",this.side==="left"?"right":"left"),this.actions[e+n]=c,Q.Platform.isMobile){this.addActionMobile(e,n,r);return}let u=!1,l=()=>{c.empty(),(0,Q.setIcon)(c,n),c.onclick=r},h=()=>{c.empty(),(0,Q.setIcon)(c,"trash"),c.onclick=async()=>{(!this.plugin.settings.confirmDeletion||await new H(this.plugin).didChooseRemove())&&this.removeCommand(i)}};c.addEventListener("mouseleave",()=>{u=!1,l()}),c.addEventListener("mousemove",g=>{g.preventDefault(),g.stopImmediatePropagation(),g.shiftKey&&(u||h(),u=!0)}),c.addEventListener("contextmenu",g=>{g.stopImmediatePropagation(),new Q.Menu().addItem(v=>{v.setTitle(m("Add command")).setIcon("command").onClick(async()=>{let f=await V(this.plugin);this.addCommand(f)})}).addSeparator().addItem(v=>{v.setTitle(m("Change Icon")).setIcon("box").onClick(async()=>{let f=await new D(this.plugin).awaitSelection();f&&f!==i.icon&&(i.icon=f,await this.plugin.saveSettings(),this.reorder())})}).addItem(v=>{v.setTitle(m("Rename")).setIcon("text-cursor-input").onClick(async()=>{let f=await new q(i.name).awaitSelection();f&&f!==i.name&&(i.name=f,await this.plugin.saveSettings(),this.reorder())})}).addItem(v=>{v.dom.addClass("is-warning"),v.setTitle(m("Delete")).setIcon("lucide-trash").onClick(async()=>{(!this.plugin.settings.confirmDeletion||await new H(this.plugin).didChooseRemove())&&this.removeCommand(i)})}).showAtMouseEvent(g)}),l(),(s=this.ribbonEl.ribbonActionsEl)==null||s.append(c)}async removeAction(e){if(Q.Platform.isMobile){this.removeActionMobile(e);return}this.actions[e].addClass("cmdr-ribbon-removing"),this.actions[e].addEventListener("transitionend",()=>{this.actions[e].remove(),delete this.actions[e]})}addActionContainer(){let e=createDiv({cls:`side-dock-actions cmdr-${this.side}-ribbon`});this.ribbonEl.collapseButtonEl.insertAdjacentElement("afterend",e),this.ribbonEl.ribbonActionsEl=e,this.plugin.register(()=>e.remove())}};var de=require("obsidian");var we=class extends j{constructor(e,n){super(e,n);this.actions=new Map;this.addBtn=createDiv({cls:"cmdr status-bar-item cmdr-adder",attr:{"aria-label-position":"top","aria-label":m("Add new")}});this.init(),this.plugin.register(()=>this.actions.forEach((i,r)=>this.removeAction(r)))}init(){app.workspace.onLayoutReady(()=>{this.container=app.statusBar.containerEl;for(let e of this.pairs)G(e.id)||this.pairs.remove(e),Z(e.mode)&&this.addAction(e);this.plugin.saveSettings(),this.plugin.registerDomEvent(this.container,"contextmenu",e=>{e.target===this.container&&new de.Menu().addItem(n=>{n.setTitle(m("Add command")).setIcon("command").onClick(async()=>{let i=await V(this.plugin);this.addCommand(i)})}).showAtMouseEvent(e)}),this.plugin.register(()=>this.addBtn.remove()),(0,de.setIcon)(this.addBtn,"plus",12),this.addBtn.onclick=async()=>{let e=await V(this.plugin);this.addCommand(e),this.reorder()},this.plugin.settings.showAddCommand&&this.container.prepend(this.addBtn)})}reorder(){this.addBtn.remove(),this.actions.forEach((e,n)=>this.removeAction(n,!0)),this.init()}async addCommand(e){this.pairs.push(e),this.addAction(e),await this.plugin.saveSettings()}async removeCommand(e){this.pairs.remove(e),this.removeAction(e),await this.plugin.saveSettings()}addAction(e){let n=createDiv({cls:"cmdr status-bar-item clickable-icon",attr:{"aria-label-position":"top","aria-label":e.name}});this.actions.set(e,n),n.style.color=e.color==="#000000"||e.color===void 0?"inherit":e.color;let i=!1,r=()=>{n.empty(),(0,de.setIcon)(n,e.icon,12),n.onclick=()=>app.commands.executeCommandById(e.id)},c=()=>{n.empty(),(0,de.setIcon)(n,"trash",12),n.onclick=async()=>{(!this.plugin.settings.confirmDeletion||await new H(this.plugin).didChooseRemove())&&this.removeCommand(e)}};n.addEventListener("mouseleave",()=>{r(),i=!1}),n.addEventListener("mousemove",u=>{u.preventDefault(),u.stopImmediatePropagation(),u.shiftKey&&(i||c(),i=!0)}),n.addEventListener("contextmenu",u=>{u.stopImmediatePropagation(),new de.Menu().addItem(l=>{l.setTitle(m("Add command")).setIcon("command").onClick(async()=>{let h=await V(this.plugin);this.addCommand(h)})}).addSeparator().addItem(l=>{l.setTitle(m("Change Icon")).setIcon("box").onClick(async()=>{let h=await new D(this.plugin).awaitSelection();h&&h!==e.icon&&(e.icon=h,await this.plugin.saveSettings(),this.reorder())})}).addItem(l=>{l.setTitle(m("Rename")).setIcon("text-cursor-input").onClick(async()=>{let h=await new q(e.name).awaitSelection();h&&h!==e.name&&(e.name=h,await this.plugin.saveSettings(),this.reorder())})}).addItem(l=>{l.dom.addClass("is-warning"),l.setTitle(m("Delete")).setIcon("lucide-trash").onClick(async()=>{(!this.plugin.settings.confirmDeletion||await new H(this.plugin).didChooseRemove())&&this.removeCommand(e)})}).showAtMouseEvent(u)}),r(),this.container.prepend(n)}removeAction(e,n=!1){let i=this.actions.get(e);if(!!i){if(n){i.remove(),this.actions.delete(e);return}i.addClass("cmdr-ribbon-removing"),i.addEventListener("transitionend",async()=>{i.remove(),this.actions.delete(e)})}}};var Zo=require("obsidian");var rt=require("obsidian");var Y=require("obsidian");var xt=require("obsidian");function It(){return a("div",{className:"cmdr-credits"},a("span",null,m("By Johnny\u2728 and phibr0")))}var $o='';function me(){return a("div",{class:"cmdr-icon-wrapper",dangerouslySetInnerHTML:{__html:$o}})}function St({manifest:t}){let o=a("button",{className:"mod-cta",onClick:n=>{Mt(n),setTimeout(()=>location.replace("https://forms.gle/hPjn61G9bqqFb3256"),Math.random()*800+500)}},a(y,{icon:"message-square",size:20}),m("Leave feedback")),e=a("button",{className:"mod-cta",onClick:n=>{Mt(n),setTimeout(()=>location.replace("https://ko-fi.com/phibr0"),Math.random()*800+500)}},a(y,{icon:"coffee",size:20}),m("Support development"));return a("div",{className:"cmdr-about"},xt.Platform.isMobile&&[a("hr",null),o,e],xt.Platform.isDesktop&&[a("div",{className:"setting-item mod-toggle",style:{width:"100%",borderTop:"1px solid var(--background-modifier-border)",paddingTop:"18px"}},a("div",{className:"setting-item-info"},a("div",{className:"setting-item-name"},m("Leave feedback")),a("div",{className:"setting-item-description"},m("Share feedback, issues, and ideas with our feedback form."))),a("div",{className:"setting-item-control"},o)),a("div",{className:"setting-item mod-toggle",style:{width:"100%"}},a("div",{className:"setting-item-info"},a("div",{className:"setting-item-name"},m("Donate")),a("div",{className:"setting-item-description"},m("Consider donating to support development."))),a("div",{className:"setting-item-control"},e)),a("hr",null)],a(me,null),a("b",null,t.name),a(It,null),a("a",{className:"cmdr-version",href:"https://github.com/phibr0/obsidian-commander/releases/tag/"+t.version},t.version))}var U=require("obsidian");function Pt(t,o){if(t.empty(),new U.Setting(t).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 U.Setting(t).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 U.Setting(t).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)})),U.Platform.isMobile){let n=document.createDocumentFragment();n.appendChild(createEl("h3",{text:"Custom Icons"})),t.appendChild(n),o.getCommandsWithoutIcons().forEach(i=>{new U.Setting(t).setName(i.name).setDesc(`ID: ${i.id}`).addButton(r=>{var u;let c=r.buttonEl.createDiv({cls:"AT-settings-icon"});if(i.icon)(0,U.setIcon)(c,i.icon,20);else{let l=(u=o.settings.advancedToolbar.mappedIcons.find(h=>h.commandID===i.id))==null?void 0:u.iconID;l?(0,U.setIcon)(c,l,20):r.setButtonText("No Icon")}r.onClick(async()=>{let l=await new D(o).awaitSelection(),h=o.settings.advancedToolbar.mappedIcons.find(s=>s.commandID===i.id);h?h.iconID=l:o.settings.advancedToolbar.mappedIcons.push({commandID:i.id,iconID:l}),await o.saveSettings(),et(o.settings.advancedToolbar),Pt(t,o)})}).addExtraButton(r=>{r.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(),Pt(t,o),new U.Notice("If the default Icon doesn't appear, you might have to restart Obsidian.")})})})}let e=t.appendChild(createEl("div",{cls:"cmdr-sep-con",attr:{style:"margin-top: 64px"}}));e.appendChild(createEl("div",{text:"Advanced Settings",attr:{style:"margin-bottom: 8px; font-weight: bold"}})),new U.Setting(e).setName("Button Height").setDesc("Change the Height of each Button inside the Mobile Toolbar (in px).").addText(n=>{var i,r;return n.setValue((r=(i=o.settings.advancedToolbar.rowHeight)==null?void 0:i.toString())!=null?r:"48").setPlaceholder("48").onChange(async c=>{let u=Number(c),l=isNaN(u);n.inputEl.toggleClass("is-invalid",l),l||(o.settings.advancedToolbar.rowHeight=u,await o.saveSettings(),oe(o.settings.advancedToolbar))})}),new U.Setting(e).setName("Button Width").setDesc("Change the Width of each Button inside the Mobile Toolbar (in px).").addText(n=>{var i,r;return n.setValue((r=(i=o.settings.advancedToolbar.buttonWidth)==null?void 0:i.toString())!=null?r:"48").setPlaceholder("48").onChange(async c=>{let u=Number(c),l=isNaN(u);n.inputEl.toggleClass("is-invalid",l),l||(o.settings.advancedToolbar.buttonWidth=u,await o.saveSettings(),oe(o.settings.advancedToolbar))})}),new U.Setting(e).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 Et({plugin:t}){let o=ee(null);return W(()=>{Pt(o.current,t)},[]),a(R,null,a("div",{className:"cmdr-sep-con callout","data-callout":"info"},a("span",{className:"cmdr-callout-warning"},a(y,{icon:"alert-circle"})," ","Info"),a("p",{className:"cmdr-warning-description"},"The Toolbar is only available in Obsidian Mobile. ",U.Platform.isMobile&&a(R,null,"To configure which Commands show up in the Toolbar, open the Mobile Settings.")),U.Platform.isMobile&&a("button",{onClick:()=>{app.setting.openTabById("mobile")},className:"mod-cta"},"Open Mobile Settings")),a("div",{ref:o,style:{paddingBottom:"256px"}}))}var ue=require("obsidian");var Ko=require("obsidian");var Go=require("obsidian");var ot=({initialColor:t,onChange:o})=>{let e=ee(null);return W(()=>(e.current&&new Go.ColorComponent(e.current).setValue(t).onChange(o),()=>{var n,i;return(i=(n=e.current)==null?void 0:n.empty)==null?void 0:i.call(n)}),[o,t]),a("div",{ref:e,className:"cmdr-flex cmdr-items-center"})};function Tt({modal:t}){var o;return W(()=>{let e=()=>{this.forceUpdate()};return addEventListener("cmdr-icon-changed",e),()=>removeEventListener("cmdr-icon-changed",e)},[]),a("div",{className:"cmdr-mobile-modify-grid"},a("div",{className:"cmdr-mobile-modify-option",onClick:t.handleNewIcon},a("span",null,m("Icon")),a("span",{className:"cmdr-flex cmdr-gap-1"},a(y,{icon:t.pair.icon,size:20,className:"clickable-icon",style:{marginRight:"0px"}}),a(ot,{initialColor:(o=t.pair.color)!=null?o:"#000",onChange:t.handleColorChange}))),a("div",{className:"cmdr-mobile-modify-option"},a("span",null,m("Name")),a("input",{onBlur:({currentTarget:e})=>t.handleRename(e.value),type:"text",placeholder:m("Custom Name"),value:t.pair.name})),a("div",{className:"cmdr-mobile-modify-option"},a("select",{className:"dropdown",value:t.pair.mode,onChange:({currentTarget:e})=>t.handleModeChange(e.value)},a("option",{value:"any"},m("Add command to all devices")),a("option",{value:"mobile"},m("Add command only to mobile devices")),a("option",{value:"desktop"},m("Add command only to desktop devices")),a("option",{value:app.appId},m("Add command only to this device")))),a("div",{className:"modal-button-container"},a("button",{className:"mod-cta",onClick:()=>t.close()},m("Done"))))}var le=class extends Ko.Modal{constructor(e,n,i,r,c){super(app);this.pair=e;this.handleRename=n;this.handleNewIcon=i;this.handleModeChange=r;this.handleColorChange=c}async onOpen(){this.titleEl.innerText=this.pair.name,this.reactComponent=a(Tt,{modal:this}),X(this.reactComponent,this.contentEl)}onClose(){X(null,this.contentEl)}};function Te({value:t,handleChange:o,ariaLabel:e}){let[n,i]=F(!1),r=ee(null),[c,u]=F(0);return W(()=>{var l,h;(l=r==null?void 0:r.current)==null||l.select(),(h=r==null?void 0:r.current)==null||h.focus()}),a("div",{class:"cmdr-editable"},n?a("input",{type:"text",value:t,style:{width:c+25+"px"},onKeyDown:l=>{l.key==="Enter"&&l.target.value.length>0&&(i(!1),o(l))},onBlur:()=>i(!1),ref:r}):a("span",{onDblClick:({target:l})=>{u(l==null?void 0:l.offsetWidth),i(!0)},"aria-label":e},t))}function At({pair:t,handleRemove:o,handleDown:e,handleUp:n,handleNewIcon:i,handleRename:r,handleModeChange:c,handleColorChange:u}){var S;let l=G(t.id);if(!l)return a(R,null,ue.Platform.isDesktop&&a("div",{className:"setting-item mod-toggle"},a(y,{icon:"alert-triangle",size:20,className:"cmdr-icon clickable-icon mod-warning"}),a("div",{className:"setting-item-info"},a("div",{className:"setting-item-name"},t.name),a("div",{className:"setting-item-description"},m("This Command is not available on this device."))),a("div",{className:"setting-item-control"},a("button",{className:"mod-warning",style:"display: flex",onClick:o,"aria-label":m("Delete")},a(y,{icon:"lucide-trash"})))),ue.Platform.isMobile&&a("div",{className:"mobile-option-setting-item",onClick:()=>{new ue.Notice(m("This Command is not available on this device."))}},a("span",{className:"mobile-option-setting-item-remove-icon",onClick:o},a(y,{icon:"minus-with-circle",size:22,style:{color:"var(--text-error)"}})),a("span",{className:"mobile-option-setting-item-option-icon mod-warning"},a(y,{icon:"alert-triangle",size:22})),a("span",{className:"mobile-option-setting-item-name"},t.name)));let h=l.id.split(":").first(),s=app.plugins.manifests[h],g=!s,v=l.hasOwnProperty("checkCallback")||l.hasOwnProperty("editorCheckCallback"),f=oi(t.mode),b=t.mode.match(/desktop|mobile|any/)?t.mode[0].toUpperCase()+t.mode.substring(1):m("This device");return a(R,null,ue.Platform.isDesktop&&a("div",{className:"setting-item mod-toggle"},a(y,{icon:t.icon,size:20,"aria-label":m("Choose new"),onClick:i,className:"cmdr-icon clickable-icon"}),a("div",{className:"setting-item-info"},a("div",{className:"setting-item-name"},a(Te,{ariaLabel:m("Double click to rename"),handleChange:({target:C})=>{r(C==null?void 0:C.value)},value:t.name}),t.name!==l.name&&a("span",{style:"margin-left: .8ex"},"(",l.name,")")),a("div",{className:"setting-item-description"},m("Added by {{plugin_name}}.".replace("{{plugin_name}}",g?"Obsidian":s.name))," ",v?m("Warning: This is a checked Command, meaning it might not run under every circumstance."):"")),a("div",{className:"setting-item-control"},a(ot,{initialColor:(S=t.color)!=null?S:"#000",onChange:u}),a(y,{icon:"arrow-down",className:"setting-editor-extra-setting-button clickable-icon",onClick:e,"aria-label":m("Move down")}),a(y,{icon:"arrow-up",className:"setting-editor-extra-setting-button clickable-icon",onClick:n,"aria-label":m("Move up")}),a(y,{icon:f,className:"setting-editor-extra-setting-button clickable-icon",onClick:()=>c(),"aria-label":m("Change Mode (Currently: {{current_mode}})").replace("{{current_mode}}",b)}),a("button",{className:"mod-warning",style:"display: flex",onClick:o,"aria-label":m("Delete")},a(y,{icon:"lucide-trash"})))),ue.Platform.isMobile&&a("div",{className:"mobile-option-setting-item"},a("span",{className:"mobile-option-setting-item-remove-icon",onClick:o},a(y,{icon:"minus-with-circle",size:22,style:{color:"var(--text-error)"}})),a("span",{className:"mobile-option-setting-item-option-icon"},a(y,{icon:t.icon,size:22,onClick:()=>{new le(t,r,i,c,u).open()}})),a("span",{className:"mobile-option-setting-item-name",onClick:()=>{new le(t,r,i,c,u).open()}},t.name,t.name!==l.name&&a("span",{className:"cmdr-option-setting-name"},"(",l.name,")")),a("span",{className:"mobile-option-setting-item-option-icon"},a(y,{icon:"arrow-down",className:"clickable-icon",onClick:e}),a(y,{icon:"arrow-up",className:"clickable-icon",onClick:n}),a(y,{icon:"three-horizontal-bars",className:"clickable-icon",onClick:()=>{new le(t,r,i,c,u).open()}}))))}function oi(t){return t==="mobile"?"smartphone":t==="desktop"?"monitor":t==="any"?"cmdr-all-devices":"airplay"}function Nt(t,o,e){let n=o<0?t.length+o:o;if(n>=0&&n{if(n.mode.match(/desktop|mobile|any/)||n.mode===app.appId)return a(At,{key:n.id,pair:n,handleRemove:async()=>{(!o.settings.confirmDeletion||await new H(o).didChooseRemove())&&(await t.removeCommand(n),this.forceUpdate())},handleUp:()=>{Nt(t.pairs,i,i-1),t.reorder(),this.forceUpdate()},handleDown:()=>{Nt(t.pairs,i,i+1),t.reorder(),this.forceUpdate()},handleRename:async r=>{n.name=r,await o.saveSettings(),t.reorder(),this.forceUpdate()},handleNewIcon:async()=>{let r=await new D(o).awaitSelection();r&&r!==n.icon&&(n.icon=r,await o.saveSettings(),t.reorder(),this.forceUpdate()),dispatchEvent(new Event("cmdr-icon-changed"))},handleModeChange:async r=>{let c=["any","desktop","mobile",app.appId],u=c.indexOf(n.mode);u===3&&(u=-1),n.mode=r||c[u+1],await o.saveSettings(),t.reorder(),this.forceUpdate()},handleColorChange:async r=>{n.color=r,await o.saveSettings(),t.reorder()}})})),!t.pairs.some(n=>Z(n.mode)||n.mode.match(/mobile|desktop/))&&a("div",{class:"cmdr-commands-empty"},a(me,null),a("h3",null,m("No commands here!")),a("span",null,m("Would you like to add one now?"))),Qo.Platform.isMobile&&a("hr",null),a("div",{className:"cmdr-add-new-wrapper"},a("button",{className:"mod-cta",onClick:async()=>{let n=await V(o);await t.addCommand(n),t.reorder(),this.forceUpdate()}},m("Add command")))),e)}function nt({title:t,children:o}){let[e,n]=F(!1);return a("div",{className:"cmdr-accordion cmdr-sep-con","aria-expanded":e},a("div",{className:"cmdr-accordion-header",onClick:()=>{n(!e)}},a(y,{className:"cmdr-accordion-chevron clickable-icon",icon:"chevron-down",size:24}),a("span",null,t)),a("div",{className:"cmdr-accordion-content",style:{maxHeight:[o].flat().length*120+"px"}},o))}function Lt({name:t,description:o,children:e,className:n}){return a("div",{className:`setting-item ${n}`},a("div",{className:"setting-item-info"},a("div",{className:"setting-item-name"},t),a("div",{className:"setting-item-description"},o)),a("div",{className:"setting-item-control"},e))}function it(t){let[o,e]=F(t.value);return a(Lt,{name:t.name,description:t.description,className:"mod-toggle"},a("div",{className:`checkbox-container ${o?"is-enabled":""}`,onClick:()=>{e(!o),t.changeHandler(o)}}))}function Bt({name:t,description:o,changeHandler:e,value:n,hideLabel:i,showLabel:r}){let[c,u]=F(n);return a(Lt,{name:t,description:o,className:"mod-toggle"},a(y,{"aria-label":c?r:i,icon:c?"eye-off":"eye",size:20,className:"clickable-icon",onClick:()=>{u(!c),e(c)}}))}function at(t){var n,i,r;let[o,e]=F(t.value);return a(Lt,{description:t.description,name:t.name,className:"cmdr-slider"},a("div",null,a(Te,{ariaLabel:m("Double click to enter custom value"),value:o.toString(),handleChange:({target:c})=>{let u=Number(c.value);!isNaN(u)&&o!==u&&(e(u),t.changeHandler(u))}}),a("input",{class:"slider",type:"range",min:(n=t.min)!=null?n:"0",max:(i=t.max)!=null?i:"32",step:(r=t.step)!=null?r:"1",value:o,onPointerMove:({target:c})=>{o!==c.value&&(e(c.value),t.changeHandler(c.value))}})))}function en({plugin:t}){let[o,e]=F([]),n=t.settings.hide.leftRibbon;return W(()=>{e([...app.workspace.leftRibbon.ribbonActionsEl.children].filter(i=>!i.hasClass("cmdr")).map(i=>({name:i.getAttribute("aria-label"),icon:i.firstElementChild.className})))},[]),a(R,null,a("hr",null),a(nt,{title:m("Hide other Commands")},o.map(i=>a(Bt,{name:i.name,description:"",hideLabel:m("Hide"),showLabel:m("Show"),changeHandler:async r=>{r?n.contains(i.name)&&n.remove(i.name):n.push(i.name),Ie(t.settings),await t.saveSettings()},value:n.contains(i.name)}))))}function tn({plugin:t}){let o=t.settings.hide.statusbar,[e,n]=F([]);return W(()=>{let r=[...app.statusBar.containerEl.getElementsByClassName("status-bar-item")].map(c=>[...c.classList].find(u=>u.startsWith("plugin-"))).filter(c=>c).map(c=>c.substring(7));n(r.map(c=>app.plugins.manifests[c]||{id:c,name:c.replace(/-/g," ").replace(/(^\w{1})|(\s+\w{1})/g,u=>u.toUpperCase()),description:"Core Plugin"}))},[]),a(R,null,a("hr",null),a(nt,{title:m("Hide other Commands")},e.map(i=>a(Bt,{name:i.name,description:i.description,value:o.contains(i.id),hideLabel:m("Hide"),showLabel:m("Show"),changeHandler:async r=>{r?o.contains(i.id)&&o.remove(i.id):o.push(i.id),Ie(t.settings),await t.saveSettings()}}))))}var an=require("obsidian");var nn=require("obsidian");function on({plugin:t,macro:o,onSave:e,onCancel:n}){let[i,r]=F(o.name||"Macro Name"),[c,u]=F(o.icon||"star"),[l,h]=F(o.startup||!1),[s,g]=F(JSON.parse(JSON.stringify(o.macro))||[]),v=this.forceUpdate.bind(this),f=async()=>{let C=await new ne(t).awaitSelection();C&&g([...s,{action:0,commandId:C.id}])},b=async()=>{g([...s,{action:1,delay:250}])},S=async()=>{};return a("div",null,a("div",{class:"setting-item cmdr-mm-item"},a("div",null,a("span",null,"Name"),a("input",{type:"text",placeholder:"Macro Name",value:i,onChange:C=>r(C.currentTarget.value),width:"100%"})),a("div",null,a("span",null,"Icon"),a("button",{onClick:async()=>u(await new D(t).awaitSelection())},a(y,{icon:c})))),s.map((C,_)=>{switch(C.action){case 0:let z=G(C.commandId);return a("div",{class:"setting-item cmdr-mm-item"},a("div",null,a("button",{onClick:async()=>{let k=await new ne(t).awaitSelection();g(s.map((L,pe)=>pe===_?Xt(Fe({},L),{commandId:k.id}):L))}},(z==null?void 0:z.name)||"Cannot find Command")),a("div",null,a("div",{class:"cmdr-mm-action-options"},a(y,{class:"clickable-icon",icon:"arrow-down",onClick:()=>{if(_===s.length-1)return;let k=[...s],L=k[_];k[_]=k[_+1],k[_+1]=L,g(k)}}),a(y,{class:"clickable-icon",icon:"arrow-up",onClick:()=>{if(_===0)return;let k=[...s],L=k[_];k[_]=k[_-1],k[_-1]=L,g(k)}}),a(y,{class:"clickable-icon",icon:"cross",onClick:()=>{g(s.filter((k,L)=>L!==_))}}))));case 1:return a("div",{class:"setting-item cmdr-mm-item"},a("div",null,a(at,{name:"Delay",min:0,max:1e4,step:50,description:"Delay in milliseconds",value:C.delay,changeHandler:k=>C.delay=k})),a("div",null,a("div",{class:"cmdr-mm-action-options"},a(y,{class:"clickable-icon",icon:"arrow-down",onClick:()=>{if(_===s.length-1)return;let k=[...s],L=k[_];k[_]=k[_+1],k[_+1]=L,g(k)}}),a(y,{class:"clickable-icon",icon:"arrow-up",onClick:()=>{if(_===0)return;let k=[...s],L=k[_];k[_]=k[_-1],k[_-1]=L,g(k)}}),a(y,{class:"clickable-icon",icon:"cross",onClick:()=>{g(s.filter((k,L)=>L!==_))}}))));case 2:return a("div",null,"Editor: ",C.action);case 3:return a("div",null,"Loop: ",C.times)}}),a("div",{className:"setting-item cmdr-mm-actions cmdr-justify-between"},a("div",{className:"cmdr-flex cmdr-items-center cmdr-justify-self-start"},a("input",{type:"checkbox",id:"checkbox",checked:l,onChange:({target:C})=>{var _;h((_=C==null?void 0:C.checked)!=null?_:!1)}}),a("label",{htmlFor:"checkbox"},"Auto-Run on Startup")),a("div",null,a("button",{onClick:f},"Add Command"),a("button",{onClick:b},"Add Delay"))),a("div",{className:"cmdr-mm-control"},a("button",{class:s.length===0?"disabled":"mod-cta",disabled:s.length===0,onClick:()=>s.length&&e({macro:s,name:i,icon:c,startup:l})},"Save"),a("button",{onClick:n},"Cancel")))}var Ae=class extends nn.Modal{constructor(e,n,i){super(app);this.macro=n,this.plugin=e,this.onSave=i}onOpen(){this.titleEl.setText("Macro Builder"),X(a(on,{plugin:this.plugin,macro:this.macro,onSave:this.onSave,onCancel:this.close.bind(this)}),this.contentEl)}onClose(){X(null,this.contentEl)}};function Dt({plugin:t,macros:o}){let e=(i,r)=>{let c=l=>{o.splice(r!==void 0?r:o.length,r!==void 0?1:0,l),t.saveSettings(),this.forceUpdate(),xe(t),u.close()},u=new Ae(t,i,c);u.open()},n=i=>{o.splice(i,1),t.saveSettings(),this.forceUpdate(),xe(t)};return a(R,null,a("div",{className:"cmdr-sep-con"},o.map((i,r)=>a("div",{class:"setting-item mod-toggle"},a("div",{className:"setting-item-info"},a("div",{className:"setting-item-name"},i.name),a("div",{className:"setting-item-description"},i.macro.length," Actions")),a("div",{className:"setting-item-control"},a("button",{"aria-label":"Edit Macro",onClick:()=>e(i,r)},a(y,{icon:"lucide-pencil"})),a("button",{"aria-label":"Delete",class:"mod-warning",onClick:async()=>{(!t.settings.confirmDeletion||await new H(t).didChooseRemove())&&n(r)}},a(y,{icon:"trash"})))))),!o.length&&a("div",{class:"cmdr-commands-empty"},a(me,null),a("h3",null,"No Macros yet!"),a("span",null,m("Would you like to add one now?"))),an.Platform.isMobile&&a("hr",null),a("div",{className:"cmdr-add-new-wrapper"},a("button",{class:"mod-cta",onClick:()=>e({name:"",macro:[],icon:"star"})},"Add Macro")))}function Ne({plugin:t,mobileMode:o}){let[e,n]=F(0),[i,r]=F(!0),c=({key:l,shiftKey:h})=>{h&&l==="Tab"?e>0?n((e-1)%u.length):n(u.length-1):l==="Tab"&&n((e+1)%u.length)};W(()=>(addEventListener("keydown",c),()=>removeEventListener("keydown",c)),[e]),Y.Platform.isMobile&&W(()=>{let l=document.querySelector(".modal-setting-back-button"),h=l.cloneNode(!0);l.parentNode.replaceChild(h,l),r(!0)},[]),W(()=>{let l=document.querySelector(".modal-setting-back-button");!l||(i?(l.parentElement.lastChild.textContent="Commander",l.onclick=()=>app.setting.closeActiveTab()):(l.parentElement.lastChild.textContent=u[e].name,l.onclick=()=>r(!0)))},[i]);let u=wt(()=>[{name:m("General"),tab:a(R,null,a(it,{name:m("Always ask before removing?"),description:m("Always show a Popup to confirm deletion of a Command."),value:t.settings.confirmDeletion,changeHandler:async l=>{t.settings.confirmDeletion=!l,await t.saveSettings()}}),a(it,{value:t.settings.showAddCommand,name:m('Show "Add Command" Button'),description:m('Show the "Add Command" Button in every Menu.'),changeHandler:async l=>{t.settings.showAddCommand=!l,t.manager.pageHeader.reorder(),await t.saveSettings()}}),a(it,{value:t.settings.debug,name:m("Enable debugging"),description:m("Enable console output."),changeHandler:async l=>{t.settings.debug=!l,await t.saveSettings()}}),a(at,{value:t.settings.spacing,name:m("Choose custom spacing for Command Buttons"),description:m("Change the spacing between commands. You can set different values on mobile and desktop."),changeHandler:async l=>{Qe(l),t.settings.spacing=l,await t.saveSettings()}}))},{name:m("Left Ribbon"),tab:a(ae,{manager:t.manager.leftRibbon,plugin:t},a(en,{plugin:t}))},{name:m("Page Header"),tab:a(ae,{manager:t.manager.pageHeader,plugin:t},a("hr",null),a("div",{className:"cmdr-sep-con callout","data-callout":"warning"},a("span",{className:"cmdr-callout-warning"},a(y,{icon:"alert-triangle"})," ",m("Warning")),a("p",{className:"cmdr-warning-description"},m("As of Obsidian 0.16.0 you need to explicitly enable the View Header.")),a("button",{onClick:()=>{app.setting.openTabById("appearance"),setTimeout(()=>{var l,h,s;app.setting.activeTab.containerEl.scroll({behavior:"smooth",top:250}),(s=(h=(l=app.setting.activeTab.containerEl.querySelectorAll(".setting-item-heading")[1].nextSibling)==null?void 0:l.nextSibling)==null?void 0:h.nextSibling)==null||s.addClass("cmdr-cta")},50)},className:"mod-cta"},m("Open Appearance Settings"))))},{name:m("Statusbar"),tab:a(ae,{manager:t.manager.statusBar,plugin:t},a(tn,{plugin:t}))},{name:m("Editor Menu"),tab:a(ae,{manager:t.manager.editorMenu,plugin:t})},{name:m("File Menu"),tab:a(ae,{manager:t.manager.fileMenu,plugin:t})},{name:m("Explorer"),tab:a(ae,{manager:t.manager.explorerManager,plugin:t},a("hr",null),a("div",{className:"cmdr-sep-con callout","data-callout":"warning"},a("span",{className:"cmdr-callout-warning"},a(y,{icon:"alert-triangle"})," ",m("Warning")),a("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:Y.Platform.isMobile?"Mobile Toolbar":"Toolbar",tab:a(Et,{plugin:t})},{name:"Macros",tab:a(Dt,{plugin:t,macros:t.settings.macros})}],[]);return a(R,null,Y.Platform.isDesktop&&a("div",{className:"cmdr-setting-title"},a("h1",null,t.manifest.name)),(Y.Platform.isDesktop||i)&&a(ai,{tabs:u,activeTab:e,setActiveTab:n,setOpen:r}),a("div",{class:`cmdr-setting-content ${o?"cmdr-mobile":""}`},(Y.Platform.isDesktop||!i)&&u[e].tab,(Y.Platform.isMobile&&i||Y.Platform.isDesktop&&e===0)&&a(St,{manifest:t.manifest})))}function ai({tabs:t,activeTab:o,setActiveTab:e,setOpen:n}){let i=ee(null),r=c=>{var u;c.preventDefault(),(u=i.current)==null||u.scrollBy({left:c.deltaY>0?16:-16})};return W(()=>{let c=i.current;if(!(!c||Y.Platform.isMobile))return c.addEventListener("wheel",r),()=>c.removeEventListener("wheel",r)},[]),W(()=>{var c;return(c=document.querySelector(".cmdr-tab-active"))==null?void 0:c.scrollIntoView({behavior:"smooth",block:"nearest"})},[o]),a("nav",{class:`cmdr-setting-header ${Y.Platform.isMobile?"cmdr-mobile":""}`,ref:i},a("div",{class:`cmdr-setting-tab-group ${Y.Platform.isMobile?"vertical-tab-header-group-items":""}`},t.map((c,u)=>a("div",{className:`cmdr-tab ${o===u?"cmdr-tab-active":""} ${Y.Platform.isMobile?"vertical-tab-nav-item":""}`,onClick:()=>{e(u),n(!1)}},c.name,Y.Platform.isMobile&&a(y,{className:"vertical-tab-nav-item-chevron cmdr-block",icon:"chevron-right",size:24})))),Y.Platform.isDesktop&&a("div",{className:"cmdr-fill"}))}var Le=class extends rt.PluginSettingTab{constructor(e){super(app,e);this.plugin=e}display(){X(a(Ne,{plugin:this.plugin,mobileMode:rt.Platform.isMobile}),this.containerEl)}hide(){X(null,this.containerEl)}};var st=require("obsidian");var Be=class extends st.Modal{constructor(e){super(app);this.plugin=e,this.containerEl.addClass("cmdr-setting-modal")}onOpen(){let e=st.Platform.isMobile;X(a(Ne,{plugin:this.plugin,mobileMode:e}),this.contentEl)}onClose(){X(null,this.contentEl)}};var rn=require("obsidian");function Rt(){(0,rn.addIcon)("cmdr-all-devices",'')}var ct=class extends sn.Plugin{async executeStartupMacros(){let e=setTimeout(()=>{this.settings.macros.forEach((n,i)=>{n.startup&&this.executeMacro(i)})},1e3);this.register(()=>clearTimeout(e))}async executeMacro(e){let n=this.settings.macros[e];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(r=>setTimeout(r,i.delay));continue}case 2:continue;case 3:{for(let r=0;rnew Be(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(()=>{Ie(this.settings),xe(this),Qe(this.settings.spacing),oe(this.settings.advancedToolbar),et(this.settings.advancedToolbar),this.executeStartupMacros()})}onunload(){var e;(e=document.head.querySelector("style#cmdr"))==null||e.remove(),Jo()}async loadSettings(){let e=Object.assign({},vo,await this.loadData());this.settings=e}async saveSettings(){await this.saveData(this.settings)}listActiveToolbarCommands(){return this.app.vault.getConfig("mobileToolbarCommands")}getCommands(){let e=[];return this.listActiveToolbarCommands().forEach(n=>{let i=this.app.commands.commands[n];i&&e.push(i)}),e}getCommandsWithoutIcons(e=!0){let n=[];return this.getCommands().forEach(i=>{i&&!i.icon&&n.push(i)}),e&&this.getCommands().forEach(i=>{this.settings.advancedToolbar.mappedIcons.find(r=>r.commandID===i.id)&&n.push(i)}),n}}; + +/* by phibr0 */ diff --git a/.obsidian/plugins/cmdr/manifest.json b/.obsidian/plugins/cmdr/manifest.json new file mode 100644 index 00000000..662ecb77 --- /dev/null +++ b/.obsidian/plugins/cmdr/manifest.json @@ -0,0 +1,10 @@ +{ + "id": "cmdr", + "name": "Commander", + "version": "0.4.1", + "minAppVersion": "0.16.0", + "description": "Customize your workspace by adding commands everywhere, create Macros and supercharge your mobile toolbar.", + "author": "jsmorabito & phibr0", + "authorUrl": "https://github.com/phibr0", + "isDesktopOnly": false +} diff --git a/.obsidian/plugins/cmdr/styles.css b/.obsidian/plugins/cmdr/styles.css new file mode 100644 index 00000000..7b525cfe --- /dev/null +++ b/.obsidian/plugins/cmdr/styles.css @@ -0,0 +1 @@ +.cmdr{transition:transform .4s 0s}.cmdr.status-bar-item{margin:0}.cmdr-removing{transform:translate(100%);z-index:0}.cmdr-ribbon-removing{transform:scale(0)}.cmdr-setting-title{display:flex;align-items:baseline;justify-content:space-between}.cmdr-setting-title h1{font-weight:900;margin-top:6px;margin-bottom:12px}.cmdr-option-setting-name{margin-left:.8ex}.cmdr-base-component{padding:0 20px;margin-bottom:-18px}.cmdr-menu-more-options{color:var(--text-muted);position:absolute;right:6px;padding-top:2px;transform:scale(.9);transition:all .15s ease}.cmdr-menu-more-options:hover{color:var(--text-primary)}.cmdr-mobile .cmdr-credits{place-content:center}.cmdr-fill{border:2px solid #0000;width:100%}.cmdr-icon{height:20px;align-self:center}.cmdr-setting-modal>.modal{height:60vh;width:80vw}.cmdr-editable{display:inline-block}.cmdr-editable input{padding:0;border:none;height:unset;background-color:initial!important;border-bottom:1px solid var(--interactive-accent);border-radius:0}.cmdr-setting-content{height:calc(100% - 10rem)}.cmdr-setting-content .setting-item:first{border-top:none}.cmdr-commands-empty{display:flex;place-items:center;flex-flow:column;margin:2.5rem 0 1.25rem;place-content:center}.cmdr-commands-empty svg{width:100%}.cmdr-commands-empty h3{margin:8px 0;font-weight:900}.cmdr-sep-con:not(:empty){background-color:var(--background-primary);border:1px solid var(--background-modifier-border);padding:12px;border-radius:12px}.cmdr-sep-con:not(:empty) .setting-item:first-of-type{padding-top:0}.cmdr-sep-con:not(:empty) .setting-item:last-of-type{padding-bottom:0}.cmdr-sep-con:not(:empty) .cmdr-callout-warning{padding:var(--callout-title-padding);display:flex;gap:var(--size-4-1);font-size:var(--callout-title-size);color:rgb(var(--callout-color));line-height:var(--line-height-tight);font-weight:700}.cmdr-sep-con:not(:empty) p.cmdr-warning-description{margin:8px 0}.cmdr-accordion{margin-bottom:16px}.cmdr-accordion .cmdr-accordion-chevron{margin-left:0;margin-right:4px;height:24px}.cmdr-accordion .cmdr-accordion-chevron>svg{transition:all .25s ease}.cmdr-accordion .cmdr-accordion-content{max-height:1000px;transition:all .3s ease-in-out;overflow:hidden;margin-left:14px;padding-left:14px}.cmdr-accordion .cmdr-accordion-content .setting-item{padding-top:12px}.cmdr-accordion[aria-expanded=false] .cmdr-accordion-chevron>svg{transform:rotate(-90deg)}.cmdr-accordion[aria-expanded=false] .cmdr-accordion-content{max-height:0!important;transition:max-height .3s cubic-bezier(0,1,0,1)}.cmdr-accordion .cmdr-accordion-header{display:flex;cursor:var(--cursor)}.cmdr-accordion .cmdr-accordion-header span{font-weight:600;margin-top:0;align-self:end}.cmdr-add-new-wrapper{width:100%;margin-top:12px;margin-bottom:2rem;display:flex;justify-content:center;align-items:center}.cmdr-add-new-wrapper button{margin:0 24px}.cmdr-adder{opacity:0;transition:opacity .12s ease}.cmdr-adder:hover{opacity:1}.cmdr-adder.view-action{order:-1001}.cmdr-page-header{order:-1000}.cmdr-macro-builder .modal{height:80vh;width:95vw;padding:0}.cmdr-macro-builder .modal-close-button{z-index:99}.cmdr-macro-builder .modal-content{margin-top:0}.cmdr-macro-builder .cmdr-macro-icon{display:flex;justify-content:center}.cmdr-macro-builder .cmdr-macro-control{position:absolute;z-index:5;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;width:3em;top:0}.cmdr-macro-builder .cmdr-macro-control .cmdr-macro-button{background-color:var(--background-secondary-alt);aspect-ratio:1;display:flex;justify-content:center;align-items:center;border-radius:2px;outline:1px solid var(--background-modifier-border);padding:2px}.cmdr-setting-header{margin-bottom:24px;overflow-y:hidden;overflow-x:auto}.cmdr-setting-header .cmdr-setting-tab-group{display:flex;align-items:flex-end;border-bottom:2px solid var(--background-modifier-border)}.cmdr-setting-header.cmdr-mobile .cmdr-setting-tab-group{display:flex;flex-direction:column;align-items:flex-start;border:none}.cmdr-setting-header.cmdr-mobile .cmdr-setting-tab-group .cmdr-tab{border-left:none!important;border-right:none!important;border-top:none!important;transform:none;transition:color .2s ease;width:100%;display:flex;font-weight:500;justify-content:space-between}.cmdr-setting-header.cmdr-mobile .cmdr-setting-tab-group .cmdr-tab:first-child{margin-left:0}.cmdr-setting-header.cmdr-mobile .cmdr-setting-tab-group .cmdr-tab.cmdr-tab-active{transform:none}.cmdr-setting-header .cmdr-tab{padding:6px 8px;font-size:14px;font-weight:600;cursor:pointer;white-space:nowrap;border-left:2px solid #0000;border-right:2px solid #0000}.cmdr-setting-header .cmdr-tab:first-child{margin-left:6px}.cmdr-setting-header .cmdr-tab.cmdr-tab-active{transform:translateY(2px);border-radius:2px;border:2px solid var(--background-modifier-border);border-bottom-color:var(--background-primary)}.is-tablet .cmdr-tab{border:none!important;margin-bottom:2px;padding:10px;font-size:1.08em}.is-tablet .cmdr-tab,.is-tablet .cmdr-tab .cmdr-block{display:flex;align-items:center}.cmdr-mobile-modify-grid{padding:22px}.cmdr-mobile-modify-grid .cmdr-mobile-modify-option{display:flex;width:100%;justify-content:space-between;align-items:center;margin-bottom:16px}.cmdr-mobile-modify-grid .cmdr-mobile-modify-option>input{max-width:70%}.cmdr-mobile-modify-grid .cmdr-mobile-modify-option .dropdown{margin:auto}.cmdr-credits{display:flex}.cmdr-credits>span{color:var(--text-muted);font-size:14px}.cmdr-about{display:flex;flex-direction:column;align-items:center;padding-bottom:64px}.cmdr-about hr{width:100%;margin-top:0}.cmdr-about button{display:flex;align-items:center;height:2.6em;font-weight:700;gap:16px;border-radius:6px;margin-bottom:8px}.cmdr-about button:last-of-type{margin-bottom:32px}.cmdr-about .setting-item button{margin:0}.cmdr-about .cmdr-icon-wrapper{display:flex}.cmdr-about .cmdr-icon-wrapper>svg{width:70px;height:70px}.cmdr-about .cmdr-version{text-decoration:none;font-size:12px;color:var(--text-muted)}.cmdr-name-input-wrapper{display:flex;gap:8px;align-items:center}.cmdr-name-input-wrapper button{margin:8px}.cmdr-icon.clickable-icon.mod-warning{cursor:default}.cmdr-hider-title{display:flex;flex-direction:column;align-items:center}.cmdr-hider-title h3{margin-top:0;margin-bottom:8px;font-weight:900}.cmdr-hider-title p{margin-top:0;margin-bottom:26px;width:50%;text-align:center}.setting-item-control .cmdr-editable{width:2em;text-align:center}.setting-item-control .cmdr-editable input,.setting-item-control .cmdr-editable span{width:2em;color:var(--text-normal)}.cmdr-slider .setting-item-control>div{width:100%}.cmdr-slider input.slider{margin-left:4px}.view-action:not(:last-child){margin-right:var(--cmdr-spacing)}.status-bar-item:not(:last-child),.titlebar-button:not(:last-child){margin-right:calc(var(--cmdr-spacing) - 8px)}.side-dock-ribbon-action:not(:last-child){margin-bottom:calc(var(--cmdr-spacing) - 8px)}.cmdr-cta{position:relative}.cmdr-cta:after{content:"";position:absolute;top:-10%;width:104%;left:-2%;height:120%;outline:2px solid var(--color-accent);border-radius:1em;pointer-events:none}.cmdr-mm-item{display:flex;flex-direction:row!important;align-items:center!important;justify-content:space-between;padding:24px 0}.cmdr-mm-item>:first-child{flex-grow:1}.cmdr-mm-item>:last-child{display:flex}.cmdr-mm-item>*{display:flex;flex-direction:column}.cmdr-mm-item>*>span{margin-right:4px;margin-bottom:2px;font-size:12px;color:var(--text-muted);font-weight:700;margin-left:2px}.cmdr-mm-item .cmdr-slider{padding-bottom:0}.cmdr-mm-item .cmdr-slider .cmdr-editable{width:auto;font-size:smaller}.cmdr-mm-item .cmdr-slider .cmdr-editable span{color:var(--text-muted)}.cmdr-mm-actions{width:100%;display:flex;flex-direction:row!important;justify-content:end;gap:8px}.cmdr-mm-actions button{all:unset;cursor:pointer;color:var(--text-accent);padding:6px;border-radius:4px;transition:all .15s ease;text-transform:uppercase;font-weight:700;font-size:small}.cmdr-mm-actions button:hover{color:var(--text-accent-hover);background-color:var(--background-secondary)}.cmdr-mm-actions button:before{content:"+ "}.cmdr-mm-actions button:active{transform:scale(.98)}.cmdr-mm-control{margin-top:24px;width:100%;display:flex;justify-content:center;gap:8px}.cmdr-mm-action-text{opacity:0}.cmdr-mm-action-options{display:flex}.body{--at-button-height:48;--at-row-count:0}.AT-multirow.AT-row .mobile-toolbar-options-container{flex-flow:column wrap}.is-mobile .mobile-toolbar{position:sticky!important;z-index:5;margin-bottom:var(--at-offset)}.AT-always-shown .is-pinned .workspace-drawer-inner{margin-bottom:calc(var(--at-button-height)*var(--at-row-count) + var(--at-spacing))}.AT-multirow.AT-column .mobile-toolbar-options-container{flex-flow:row wrap;overflow-y:auto}.mobile-toolbar-option{height:var(--at-button-height);min-width:var(--at-button-width)}.AT-multirow .mobile-toolbar,.AT-multirow .mobile-toolbar-options-container{height:calc(var(--at-button-height)*var(--at-row-count) + var(--at-spacing))!important}.AT-no-toolbar .mobile-toolbar{display:none}.cmdr-block{display:block}.cmdr-flex{display:flex}.cmdr-items-center{align-items:center}.cmdr-justify-between{justify-content:space-between}.cmdr-gap-1{gap:.25rem}.cmdr-justify-self-start{justify-self:start} \ No newline at end of file diff --git a/.obsidian/plugins/copy-as-html/main.js b/.obsidian/plugins/copy-as-html/main.js index f6a2aa7e..91cbfcd1 100644 --- a/.obsidian/plugins/copy-as-html/main.js +++ b/.obsidian/plugins/copy-as-html/main.js @@ -149,72 +149,77 @@ var require_showdown = __commonJS({ }, smartIndentationFix: { defaultValue: false, - description: "Tries to smartly fix indentation in es6 strings", + describe: "Tries to smartly fix indentation in es6 strings", type: "boolean" }, disableForced4SpacesIndentedSublists: { defaultValue: false, - description: "Disables the requirement of indenting nested sublists by 4 spaces", + describe: "Disables the requirement of indenting nested sublists by 4 spaces", type: "boolean" }, simpleLineBreaks: { defaultValue: false, - description: "Parses simple line breaks as
(GFM Style)", + describe: "Parses simple line breaks as
(GFM Style)", type: "boolean" }, requireSpaceBeforeHeadingText: { defaultValue: false, - description: "Makes adding a space between `#` and the header text mandatory (GFM Style)", + describe: "Makes adding a space between `#` and the header text mandatory (GFM Style)", type: "boolean" }, ghMentions: { defaultValue: false, - description: "Enables github @mentions", + describe: "Enables github @mentions", type: "boolean" }, ghMentionsLink: { defaultValue: "https://github.com/{u}", - description: "Changes the link generated by @mentions. Only applies if ghMentions option is enabled.", + describe: "Changes the link generated by @mentions. Only applies if ghMentions option is enabled.", type: "string" }, encodeEmails: { defaultValue: true, - description: "Encode e-mail addresses through the use of Character Entities, transforming ASCII e-mail addresses into its equivalent decimal entities", + describe: "Encode e-mail addresses through the use of Character Entities, transforming ASCII e-mail addresses into its equivalent decimal entities", type: "boolean" }, openLinksInNewWindow: { defaultValue: false, - description: "Open all links in new windows", + describe: "Open all links in new windows", type: "boolean" }, backslashEscapesHTMLTags: { defaultValue: false, - description: "Support for HTML Tag escaping. ex:
foo
", + describe: "Support for HTML Tag escaping. ex:
foo
", type: "boolean" }, emoji: { defaultValue: false, - description: "Enable emoji support. Ex: `this is a :smile: emoji`", + describe: "Enable emoji support. Ex: `this is a :smile: emoji`", type: "boolean" }, underline: { defaultValue: false, - description: "Enable support for underline. Syntax is double or triple underscores: `__underline word__`. With this option enabled, underscores no longer parses into `` and ``", + describe: "Enable support for underline. Syntax is double or triple underscores: `__underline word__`. With this option enabled, underscores no longer parses into `` and ``", + type: "boolean" + }, + ellipsis: { + defaultValue: true, + describe: "Replaces three dots with the ellipsis unicode character", type: "boolean" }, completeHTMLDocument: { defaultValue: false, - description: "Outputs a complete html document, including ``, `` and `` tags", + describe: "Outputs a complete html document, including ``, `` and `` tags", type: "boolean" }, metadata: { defaultValue: false, - description: "Enable support for document metadata (defined at the top of the document between `\xAB\xAB\xAB` and `\xBB\xBB\xBB` or between `---` and `---`).", + describe: "Enable support for document metadata (defined at the top of the document between `\xAB\xAB\xAB` and `\xBB\xBB\xBB` or between `---` and `---`).", type: "boolean" }, splitAdjacentBlockquotes: { defaultValue: false, - description: "Split adjacent blockquote blocks", + describe: "Split adjacent blockquote blocks", type: "boolean" } }; @@ -2076,7 +2081,7 @@ var require_showdown = __commonJS({ for (var n = 0; n < node.childNodes.length; ++n) { var child = node.childNodes[n]; if (child.nodeType === 3) { - if (!/\S/.test(child.nodeValue)) { + if (!/\S/.test(child.nodeValue) && !/^[ ]+$/.test(child.nodeValue)) { node.removeChild(child); --n; } else { @@ -2155,12 +2160,12 @@ var require_showdown = __commonJS({ var ext = extension[a]; for (var i = 0; i < langExtensions.length; ++i) { if (langExtensions[i] === ext) { - langExtensions[i].splice(i, 1); + langExtensions.splice(i, 1); } } - for (var ii = 0; ii < outputModifiers.length; ++i) { + for (var ii = 0; ii < outputModifiers.length; ++ii) { if (outputModifiers[ii] === ext) { - outputModifiers[ii].splice(i, 1); + outputModifiers.splice(ii, 1); } } } @@ -2446,6 +2451,9 @@ var require_showdown = __commonJS({ }); showdown2.subParser("ellipsis", function(text, options, globals) { "use strict"; + if (!options.ellipsis) { + return text; + } text = globals.converter._dispatch("ellipsis.before", text, options, globals); text = text.replace(/\.\.\./g, "\u2026"); text = globals.converter._dispatch("ellipsis.after", text, options, globals); @@ -2481,7 +2489,7 @@ var require_showdown = __commonJS({ "use strict"; text = globals.converter._dispatch("encodeBackslashEscapes.before", text, options, globals); text = text.replace(/\\(\\)/g, showdown2.helper.escapeCharactersCallback); - text = text.replace(/\\([`*_{}\[\]()>#+.!~=|-])/g, showdown2.helper.escapeCharactersCallback); + text = text.replace(/\\([`*_{}\[\]()>#+.!~=|:-])/g, showdown2.helper.escapeCharactersCallback); text = globals.converter._dispatch("encodeBackslashEscapes.after", text, options, globals); return text; }); @@ -3092,10 +3100,13 @@ var require_showdown = __commonJS({ }); showdown2.subParser("stripLinkDefinitions", function(text, options, globals) { "use strict"; - var regex = /^ {0,3}\[(.+)]:[ \t]*\n?[ \t]*\s]+)>?(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*\n?[ \t]*(?:(\n*)["|'(](.+?)["|')][ \t]*)?(?:\n+|(?=ยจ0))/gm, base64Regex = /^ {0,3}\[(.+)]:[ \t]*\n?[ \t]*?(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*\n?[ \t]*(?:(\n*)["|'(](.+?)["|')][ \t]*)?(?:\n\n|(?=ยจ0)|(?=\n\[))/gm; + var regex = /^ {0,3}\[([^\]]+)]:[ \t]*\n?[ \t]*\s]+)>?(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*\n?[ \t]*(?:(\n*)["|'(](.+?)["|')][ \t]*)?(?:\n+|(?=ยจ0))/gm, base64Regex = /^ {0,3}\[([^\]]+)]:[ \t]*\n?[ \t]*?(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*\n?[ \t]*(?:(\n*)["|'(](.+?)["|')][ \t]*)?(?:\n\n|(?=ยจ0)|(?=\n\[))/gm; text += "\xA80"; var replaceFunc = function(wholeMatch, linkId, url, width, height, blankLines, title) { linkId = linkId.toLowerCase(); + if (text.toLowerCase().split(linkId).length - 1 < 2) { + return wholeMatch; + } if (url.match(/^data:.+?\/.+?;base64,/)) { globals.gUrls[linkId] = url.replace(/\s/g, ""); } else { @@ -3655,9 +3666,11 @@ var MarkdownToHTML = class extends import_obsidian.Plugin { } markdownToHTML(editor) { const converter = new showdown.Converter(); - let text = editor.getSelection(); - let noBrackets = text.replace(/\[\[(?:[^\]]+\|)?([^\]]+)\]\]/g, "$1"); - let html = converter.makeHtml(noBrackets).toString(); + converter.setFlavor("github"); + converter.setOption("ellipsis", false); + const text = editor.getSelection(); + const noBrackets = text.replace(/\[\[(?:[^\]]+\|)?([^\]]+)\]\]/g, "$1"); + const html = converter.makeHtml(noBrackets).toString(); const withDivWrapper = `
${html}
`; const blob = new Blob([withDivWrapper], { @@ -3672,4 +3685,4 @@ var MarkdownToHTML = class extends import_obsidian.Plugin { onunload() { } }; -/*! showdown v 1.9.1 - 02-11-2019 */ +/*! showdown v 2.1.0 - 21-04-2022 */ diff --git a/.obsidian/plugins/copy-as-html/manifest.json b/.obsidian/plugins/copy-as-html/manifest.json index c2ee0c1d..c6296ac2 100644 --- a/.obsidian/plugins/copy-as-html/manifest.json +++ b/.obsidian/plugins/copy-as-html/manifest.json @@ -1,10 +1,10 @@ { "id": "copy-as-html", "name": "Copy as HTML", - "version": "1.0.5", + "version": "1.0.6", "minAppVersion": "0.12.0", "description": "This is a simple plugin that converts the selected markdown to HTML and copies it to the clipboard.", "author": "Bailey Jennings", "authorUrl": "https://twitter.com/Bailey_Jennings", "isDesktopOnly": false -} +} \ No newline at end of file diff --git a/.obsidian/plugins/customizable-page-header-buttons/data.json b/.obsidian/plugins/customizable-page-header-buttons/data.json deleted file mode 100644 index 7be24348..00000000 --- a/.obsidian/plugins/customizable-page-header-buttons/data.json +++ /dev/null @@ -1,51 +0,0 @@ -{ - "enabledButtons": [ - { - "id": "obsidian-tasks-plugin:edit-task", - "icon": "number-list-glyph", - "name": "Tasks: Create or edit task", - "showButtons": "both" - }, - { - "id": "obsidian-map-view:convert-selection-to-location", - "icon": "lucide-map-pin", - "name": "Map View: Convert Selection to Geolocation", - "showButtons": "both" - }, - { - "id": "obsidian-media-db-plugin:open-media-db-search-modal", - "icon": "lucide-tv", - "name": "Media DB Plugin: Add new Media DB entry", - "showButtons": "both" - }, - { - "id": "obsidian-book-search-plugin:open-book-search-modal", - "icon": "lucide-book", - "name": "Book Search: Create new book note", - "showButtons": "both" - }, - { - "id": "garble-text:toggle-garble-text", - "icon": "three-horizontal-bars", - "name": "Garble Text: Toggle Garble Text", - "showButtons": "both" - }, - { - "id": "podnotes:create-podcast-note", - "icon": "audio-file", - "name": "PodNotes: Create Podcast Note", - "showButtons": "both" - }, - { - "id": "auto-card-link:auto-card-link-paste-and-enhance", - "icon": "lucide-bookmark", - "name": "Auto Card Link: Paste URL and enhance to card link", - "showButtons": "both" - } - ], - "desktop": false, - "titleLeft": [], - "titleRight": [], - "titleCenter": [], - "paneRelief": false -} \ No newline at end of file diff --git a/.obsidian/plugins/customizable-page-header-buttons/main.js b/.obsidian/plugins/customizable-page-header-buttons/main.js deleted file mode 100644 index 43598504..00000000 --- a/.obsidian/plugins/customizable-page-header-buttons/main.js +++ /dev/null @@ -1,60 +0,0 @@ -/* -THIS IS A GENERATED/BUNDLED FILE BY ESBUILD -If you want to view the source, visit the plugin's github repository: -https://github.com/kometenstaub/customizable-page-header-buttons - -This plugin is MIT-licensed: - - MIT License - - Copyright (c) 2021-2022 kometenstaub and contributors - - Permission is hereby granted, free of charge, to any person obtaining a copy - of this software and associated documentation files (the "Software"), to deal - in the Software without restriction, including without limitation the rights - to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - copies of the Software, and to permit persons to whom the Software is - furnished to do so, subject to the following conditions: - - The above copyright notice and this permission notice shall be included in all - copies or substantial portions of the Software. - - THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - SOFTWARE. - - -The commandSuggester, iconPicker, Obsidian icon names and the biggest part of the settings tab have been adapted from the Obsidian Customizable Sidebar Plugin (https://github.com/phibr0/obsidian-customizable-sidebar). -It is MIT-licensed: - MIT License - - Copyright (c) 2021 Phillip - - Permission is hereby granted, free of charge, to any person obtaining a copy - of this software and associated documentation files (the "Software"), to deal - in the Software without restriction, including without limitation the rights - to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - copies of the Software, and to permit persons to whom the Software is - furnished to do so, subject to the following conditions: - - The above copyright notice and this permission notice shall be included in all - copies or substantial portions of the Software. - - THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - SOFTWARE. - -The workspace monkey-patching uses code from monkey-around, which is ISC-licensed. -https://github.com/pjeby/monkey-around - -*/ - -var J=Object.create;var S=Object.defineProperty;var Q=Object.getOwnPropertyDescriptor;var X=Object.getOwnPropertyNames;var Y=Object.getPrototypeOf,Z=Object.prototype.hasOwnProperty;var j=n=>S(n,"__esModule",{value:!0});var ee=(n,i)=>{j(n);for(var e in i)S(n,e,{get:i[e],enumerable:!0})},te=(n,i,e)=>{if(i&&typeof i=="object"||typeof i=="function")for(let t of X(i))!Z.call(n,t)&&t!=="default"&&S(n,t,{get:()=>i[t],enumerable:!(e=Q(i,t))||e.enumerable});return n},C=n=>te(j(S(n!=null?J(Y(n)):{},"default",n&&n.__esModule&&"default"in n?{get:()=>n.default,enumerable:!0}:{value:n,enumerable:!0})),n);ee(exports,{default:()=>O});var r=C(require("obsidian"));function q(n,i){let e=Object.keys(i).map(t=>ie(n,t,i[t]));return e.length===1?e[0]:function(){e.forEach(t=>t())}}function ie(n,i,e){let t=n[i],l=n.hasOwnProperty(i),s=e(t);return t&&Object.setPrototypeOf(s,t),Object.setPrototypeOf(o,s),n[i]=o,u;function o(...c){return s===t&&n[i]===o&&u(),s.apply(this,c)}function u(){n[i]===o&&(l?n[i]=t:delete n[i]),s!==t&&(s=t,Object.setPrototypeOf(o,t||Function))}}var d=C(require("obsidian"));var V=C(require("obsidian"));var k=C(require("obsidian"));var x=C(require("obsidian"));var H=["add-note-glyph","any-key","audio-file","blocks","bold-glyph","box-glyph","bracket-glyph","broken-link","bullet-list-glyph","bullet-list","calendar-glyph","calendar-with-checkmark","check-in-circle","check-small","checkbox-glyph","checkmark","clock-glyph","clock","cloud","code-glyph","command-glyph","compress-glyph","create-new","cross-in-box","cross","crossed-star","dice-glyph","dice","document","documents","dot-network","double-down-arrow-glyph","double-up-arrow-glyph","down-arrow-with-tail","down-chevron-glyph","down-curly-arrow-glyph","duplicate-glyph","enlarge-glyph","enter","exit-fullscreen","expand-vertically","file-explorer-glyph","filled-pin","folder","forward-arrow","fullscreen","gear","github-glyph","go-to-file","graph-glyph","hashtag","heading-glyph","help","highlight-glyph","horizontal-split","image-file","image-glyph","import-glyph","indent-glyph","info","install","italic-glyph","keyboard-glyph","languages","left-arrow-with-tail","left-arrow","left-chevron-glyph","lines-of-text","link-glyph","link","links-coming-in","links-going-out","logo-crystal","magnifying-glass","merge-files-glyph","merge-files","microphone-filled","microphone","minus-with-circle","navigate-glyph","note-glyph","number-list-glyph","open-elsewhere-glyph","open-vault","pane-layout","paper-plane-glyph","paper-plane","paste-text","paste","paused","pdf-file","pencil","percent-sign-glyph","pin","play-audio-glyph","plus-minus-glyph","plus-with-circle","popup-open","presentation-glyph","presentation","price-tag-glyph","question-mark-glyph","quote-glyph","reading-glasses","redo-glyph","reset","restore-file-glyph","right-arrow-with-tail","right-arrow","right-chevron-glyph","right-triangle","run-command","scissors-glyph","scissors","search-glyph","search","select-all-text","sheets-in-box","split","stacked-levels","star-glyph","star-list","star","stop-audio-glyph","strikethrough-glyph","switch","sync-small","sync","tag-glyph","three-horizontal-bars","tomorrow-glyph","trash","two-blank-pages","undo-glyph","unindent-glyph","up-and-down-arrows","up-arrow-with-tail","up-chevron-glyph","up-curly-arrow-glyph","uppercase-lowercase-a","vault","vertical-split","vertical-three-dots","wand-glyph","wand","workspace-glyph","wrench-screwdriver-glyph","yesterday-glyph"],h="page-header-button",b="titlebar-button",M="titlebar-center",L=[b,h];function le(n){return n.includes(":")?n.split(":")[1].trim():n}function _(){let n=24;return x.Platform.isMobile?n=24:x.Platform.isDesktop&&(n=18),n}function E(n,i,e,t,l,s="a"){let o=le(n),u=l.concat([i]),c=createEl(s,{cls:u,attr:{"aria-label-position":"bottom","aria-label":o}});return(0,x.setIcon)(c,e,t),c}function I(n){for(let i=n.length;i>=0;i--)n[i]&&n[i].remove()}function R(n,i,e){let t=n.getElementsByClassName(`${e} ${h} ${i}`);t[0]&&t[0].remove()}function y(n){return n.getElementsByClassName("titlebar-text")[0]}function v(n){let i=n.getElementsByClassName("titlebar-text")[0];i&&i.detach()}function f(n,i){let e=i.getElementsByClassName(`${h} ${M}`)[0];if(e!==void 0){let t=e.parentElement;e.detach(),t&&t.insertBefore(n,t.children[0])}}function w(n){let e=D(n).getElementsByClassName(`${h} ${b}`);I(e)}function T(n){let i=createDiv({cls:[h,"titlebar-center"]}),e=n.getElementsByClassName("titlebar-inner")[0];return e&&e.insertBefore(i,e.children[0]),i}function $(){let n=[];app.workspace.iterateAllLeaves(i=>{n.push(i.view.containerEl)});for(let i=0;i0&&I(t)}}function z(n){let i=[];app.workspace.iterateAllLeaves(e=>{i.push(e.view.containerEl)});for(let e=0;e0&&I(e)}function p(n){let e=P(n).getElementsByClassName(h);e.length>0&&I(e)}function F(n,i){let e=A(i);R(e,n,b)}function U(n,i){let e=P(i);R(e,n,b)}function G(n,i){let e=D(i);R(e,n,b)}function A(n){return n.getElementsByClassName("titlebar-button-container mod-left")[0]}function P(n){return n.getElementsByClassName("titlebar-button-container mod-right")[0]}function D(n){return n.getElementsByClassName(`${h} ${M}`)[0]}var m=class extends k.FuzzySuggestModal{constructor(i,e,t,l=-1){super(i.app);this.plugin=i,this.command=e,this.type=t,this.index=l,this.setPlaceholder("Please pick an icon")}cap(i){return i.split(" ").map(t=>t[0].toUpperCase()+t.substring(1)).join(" ")}getItems(){return this.plugin.iconList}getItemText(i){return this.cap(i.replace("lucide-","").replace(/-/gi," "))}renderSuggestion(i,e){e.addClass("CS-icon-container");let t=e.createDiv({cls:"CS-icon"});(0,k.setIcon)(t,i.item),super.renderSuggestion(i,e)}async onChooseItem(i){let{id:e,name:t}=this.command,{settings:l}=this.plugin,s=0;if(this.type==="page"){let o="both";this.index===-1?o="both":o=l.enabledButtons[this.index].showButtons;let u={id:e,icon:i,name:t,showButtons:o};this.index===-1?l.enabledButtons.push(u):(l.enabledButtons[this.index]=u,new k.Notice("This change will take effect for new panes only."))}else{let o={id:e,icon:i,name:t};if(this.index===-1)if(this.type==="title-left")l.titleLeft.push(o);else if(this.type==="title-right")l.titleRight.push(o);else{let u=l.titleCenter.length;u!==0&&(s=u),l.titleCenter.push(o)}else if(this.type==="title-left")l.titleLeft[this.index]=o;else if(this.type==="title-right")l.titleRight[this.index]=o;else{let u=l.titleCenter.length;u!==0&&(s=u),l.titleCenter[this.index]=o}}if(await this.plugin.saveSettings(),this.type==="title-left")for(let o=0;o{dispatchEvent(new Event("TopBar-addedCommand"))},100)}};var B=class extends V.FuzzySuggestModal{constructor(i,e){super(i.app);this.plugin=i,this.type=e}pushToSettings(i,e,t){t==="titleRight"||t==="titleLeft"||t==="titleCenter"?i[t].push({id:e.id,icon:e.icon,name:e.name}):i.enabledButtons.push({id:e.id,icon:e.icon,name:e.name,showButtons:"both"})}getItems(){return this.app.commands.listCommands()}getItemText(i){return i.name}async onChooseItem(i,e){let{settings:t}=this.plugin,l=0;if(i.icon!==void 0){if(this.type==="page")this.pushToSettings(t,i,"enabledSettings");else if(this.type==="title-left")this.pushToSettings(t,i,"titleLeft");else if(this.type==="title-right")this.pushToSettings(t,i,"titleRight");else{let s=this.plugin.settings.titleCenter.length;s!==0&&(l=s),this.pushToSettings(t,i,"titleCenter")}if(await this.plugin.saveSettings(),this.type==="title-left")for(let s=0;s{dispatchEvent(new Event("TopBar-addedCommand"))},100)}else new m(this.plugin,i,this.type).open()}};var N=class extends d.PluginSettingTab{constructor(i,e){super(i,e);this.plugin=e,this.plugin.listener=()=>{this.display()},this.containerEl.addClass("page-header-button"),addEventListener("TopBar-addedCommand",this.plugin.listener)}display(){let{containerEl:i}=this,{settings:e}=this.plugin;i.empty(),i.createEl("h3",{text:"Page Header Buttons"}),i.createEl("p",{text:"The buttons are added in the order in which they are shown here."}),new d.Setting(i).setName("Show buttons on desktop").setDesc("By default, the buttons will only be shown in Obsidian Mobile.").addToggle(t=>{t.setValue(e.desktop).onChange(async l=>{if(e.desktop=l,await this.plugin.saveSettings(),this.display(),!l){for(let s of e.enabledButtons)s.showButtons="mobile";await this.plugin.saveSettings()}})}),new d.Setting(i).setName("Add Button").setDesc("Add a new button left to the switch edit/preview mode toggle.").addButton(t=>{t.setButtonText("Add Command").onClick(()=>{new B(this.plugin,"page").open()})}),this.app.plugins.plugins["pane-relief"]&&new d.Setting(i).setName("Pane Relief count").setDesc("Enable to show the pane relief history count next to back/forward buttons.").addToggle(t=>{t.setValue(e.paneRelief).onChange(async l=>{e.paneRelief=l,await this.plugin.saveSettings()})}),new d.Setting(i).setName("Button spacing").setDesc("Set the spacing for Page Header buttons.").addButton(t=>{t.setButtonText("Click to go to the Style settings. Requires the Style settings plugin."),t.onClick(l=>this.app.setting.openTabById("obsidian-style-settings"))});for(let t=0;t{u.addOption("both","Add button for both mobile and desktop.").addOption("mobile","Add button only for mobile.").addOption("desktop","Add button only for desktop.").setValue(l.showButtons).onChange(async c=>{l.showButtons=c,e.enabledButtons[t]=l,await this.plugin.saveSettings(),c==="desktop"&&d.Platform.isMobile?z(l.id):c==="mobile"&&d.Platform.isDesktop&&z(l.id)})}),t>0&&o.addExtraButton(u=>{u.setIcon("up-arrow-with-tail").setTooltip("Move button to the left").onClick(async()=>{e.enabledButtons[t]=e.enabledButtons[t-1],e.enabledButtons[t-1]=l,await this.plugin.saveSettings(),this.display()})}),t{u.setIcon("down-arrow-with-tail").setTooltip("Move button to the right").onClick(async()=>{e.enabledButtons[t]=e.enabledButtons[t+1],e.enabledButtons[t+1]=l,await this.plugin.saveSettings(),this.display()})}),o.addExtraButton(u=>{u.setIcon("trash").setTooltip("Remove Command").onClick(async()=>{e.enabledButtons.remove(l),z(l.id),await this.plugin.saveSettings(),this.display()})}).addExtraButton(u=>{u.setIcon("gear").setTooltip("Edit Icon").onClick(()=>{let c=e.enabledButtons.findIndex(a=>a===l);new m(this.plugin,l,"page",c).open()})}),o.nameEl.prepend(s),o.nameEl.addClass("CS-flex")}if(d.Platform.isDesktopApp){i.createEl("br"),i.createEl("h3",{text:"Titlebar buttons"}),i.createEl("h4",{text:"Left titlebar"}),new d.Setting(i).setName("Add Button").setDesc("Add a new button right to the back/forward buttons.").addButton(t=>{t.setButtonText("Add Command").onClick(()=>{new B(this.plugin,"title-left").open()})});for(let t=0;t0&&o.addExtraButton(u=>{u.setIcon("up-arrow-with-tail").setTooltip("Move button to the left").onClick(async()=>{e.titleLeft[t]=e.titleLeft[t-1],e.titleLeft[t-1]=l,await this.plugin.saveSettings();for(let c=0;c{u.setIcon("down-arrow-with-tail").setTooltip("Move button to the right").onClick(async()=>{e.titleLeft[t]=e.titleLeft[t+1],e.titleLeft[t+1]=l,await this.plugin.saveSettings();for(let c=0;c{u.setIcon("trash").setTooltip("Remove Command").onClick(async()=>{e.titleLeft.remove(l),await this.plugin.saveSettings();for(let c=0;c{u.setIcon("gear").setTooltip("Edit Icon").onClick(()=>{let c=e.titleLeft.findIndex(a=>a===l);new m(this.plugin,l,"title-left",c).open();for(let a=0;a{t.setButtonText("Add Command").onClick(()=>{new B(this.plugin,"title-right").open()})});for(let t=0;t0&&o.addExtraButton(u=>{u.setIcon("up-arrow-with-tail").setTooltip("Move button to the left").onClick(async()=>{e.titleRight[t]=e.titleRight[t-1],e.titleRight[t-1]=l,await this.plugin.saveSettings();for(let c=0;c{u.setIcon("down-arrow-with-tail").setTooltip("Move button to the right").onClick(async()=>{e.titleRight[t]=e.titleRight[t+1],e.titleRight[t+1]=l,await this.plugin.saveSettings();for(let c=0;c{u.setIcon("trash").setTooltip("Remove Command").onClick(async()=>{e.titleRight.remove(l),await this.plugin.saveSettings();for(let c=0;c{u.setIcon("gear").setTooltip("Edit Icon").onClick(()=>{let c=e.titleRight.findIndex(a=>a===l);new m(this.plugin,l,"title-right",c).open();for(let a=0;a{t.setButtonText("Add Command").onClick(()=>{new B(this.plugin,"title-center").open()})});for(let t=0;t0&&o.addExtraButton(u=>{u.setIcon("up-arrow-with-tail").setTooltip("Move button to the left").onClick(async()=>{e.titleCenter[t]=e.titleCenter[t-1],e.titleCenter[t-1]=l,await this.plugin.saveSettings();for(let c=0;c{u.setIcon("down-arrow-with-tail").setTooltip("Move button to the right").onClick(async()=>{e.titleCenter[t]=e.titleCenter[t+1],e.titleCenter[t+1]=l,await this.plugin.saveSettings();for(let c=0;c{u.setIcon("trash").setTooltip("Remove Command").onClick(async()=>{if(e.titleCenter.remove(l),await this.plugin.saveSettings(),this.plugin.settings.titleCenter.length===0)for(let c=0;c{u.setIcon("gear").setTooltip("Edit Icon").onClick(()=>{let c=e.titleCenter.findIndex(a=>a===l);new m(this.plugin,l,"title-center",c).open()})}),o.nameEl.prepend(s),o.nameEl.addClass("CS-flex")}}}};var K=["lucide-activity","lucide-airplay","lucide-alarm-check","lucide-alarm-clock-off","lucide-alarm-clock","lucide-alarm-minus","lucide-alarm-plus","lucide-album","lucide-alert-circle","lucide-alert-octagon","lucide-alert-triangle","lucide-align-center-horizontal","lucide-align-center","lucide-align-center-vertical","lucide-align-end-horizontal","lucide-align-end-vertical","lucide-align-horizontal-distribute-center","lucide-align-horizontal-distribute-end","lucide-align-horizontal-distribute-start","lucide-align-horizontal-justify-center","lucide-align-horizontal-justify-end","lucide-align-horizontal-justify-start","lucide-align-horizontal-space-around","lucide-align-horizontal-space-between","lucide-align-justify","lucide-align-left","lucide-align-right","lucide-align-start-horizontal","lucide-align-start-vertical","lucide-align-vertical-distribute-center","lucide-align-vertical-distribute-end","lucide-align-vertical-distribute-start","lucide-align-vertical-justify-center","lucide-align-vertical-justify-end","lucide-align-vertical-justify-start","lucide-align-vertical-space-around","lucide-align-vertical-space-between","lucide-anchor","lucide-aperture","lucide-archive","lucide-arrow-big-down","lucide-arrow-big-left","lucide-arrow-big-right","lucide-arrow-big-up","lucide-arrow-down-circle","lucide-arrow-down-left","lucide-arrow-down-right","lucide-arrow-down","lucide-arrow-left-circle","lucide-arrow-left-right","lucide-arrow-left","lucide-arrow-right-circle","lucide-arrow-right","lucide-arrow-up-circle","lucide-arrow-up-left","lucide-arrow-up-right","lucide-arrow-up","lucide-asterisk","lucide-at-sign","lucide-award","lucide-axe","lucide-banknote","lucide-bar-chart-2","lucide-bar-chart","lucide-baseline","lucide-battery-charging","lucide-battery-full","lucide-battery-low","lucide-battery-medium","lucide-battery","lucide-beaker","lucide-bell-minus","lucide-bell-off","lucide-bell-plus","lucide-bell-ring","lucide-bell","lucide-bike","lucide-binary","lucide-bitcoin","lucide-bluetooth-connected","lucide-bluetooth-off","lucide-bluetooth-searching","lucide-bluetooth","lucide-bold","lucide-bookmark-minus","lucide-bookmark-plus","lucide-bookmark","lucide-book-open","lucide-book","lucide-bot","lucide-box-select","lucide-box","lucide-briefcase","lucide-brush","lucide-bug","lucide-building","lucide-bus","lucide-calculator","lucide-calendar","lucide-camera-off","lucide-camera","lucide-carrot","lucide-car","lucide-cast","lucide-check-circle-2","lucide-check-circle","lucide-check-square","lucide-check","lucide-chevron-down","lucide-chevron-first","lucide-chevron-last","lucide-chevron-left","lucide-chevron-right","lucide-chevrons-down","lucide-chevrons-down-up","lucide-chevrons-left","lucide-chevrons-right","lucide-chevrons-up-down","lucide-chevrons-up","lucide-chevron-up","lucide-chrome","lucide-circle-slashed","lucide-circle","lucide-clipboard-check","lucide-clipboard-copy","lucide-clipboard-list","lucide-clipboard","lucide-clipboard-x","lucide-clock-1","lucide-clock-2","lucide-clock-3","lucide-clock-4","lucide-clock-5","lucide-clock-6","lucide-clock-7","lucide-clock-8","lucide-clock-9","lucide-clock-10","lucide-clock-11","lucide-clock-12","lucide-clock","lucide-cloud-drizzle","lucide-cloud-fog","lucide-cloud-hail","lucide-cloud-lightning","lucide-cloud-moon","lucide-cloud-off","lucide-cloud-rain","lucide-cloud-rain-wind","lucide-cloud-snow","lucide-cloud-sun","lucide-cloud","lucide-cloudy","lucide-clover","lucide-code-2","lucide-codepen","lucide-codesandbox","lucide-code","lucide-coffee","lucide-coins","lucide-columns","lucide-command","lucide-compass","lucide-contact","lucide-contrast","lucide-cookie","lucide-copyleft","lucide-copyright","lucide-copy","lucide-corner-down-left","lucide-corner-down-right","lucide-corner-left-down","lucide-corner-left-up","lucide-corner-right-down","lucide-corner-right-up","lucide-corner-up-left","lucide-corner-up-right","lucide-cpu","lucide-credit-card","lucide-crop","lucide-crosshair","lucide-cross","lucide-crown","lucide-currency","lucide-database","lucide-delete","lucide-disc","lucide-divide-circle","lucide-divide-square","lucide-divide","lucide-dollar-sign","lucide-download-cloud","lucide-download","lucide-dribbble","lucide-droplets","lucide-droplet","lucide-drumstick","lucide-edit-2","lucide-edit-3","lucide-edit","lucide-egg","lucide-equal-not","lucide-equal","lucide-euro","lucide-expand","lucide-external-link","lucide-eye-off","lucide-eye","lucide-facebook","lucide-fast-forward","lucide-feather","lucide-figma","lucide-file-check-2","lucide-file-check","lucide-file-code","lucide-file-digit","lucide-file-input","lucide-file-minus-2","lucide-file-minus","lucide-file-output","lucide-file-plus-2","lucide-file-plus","lucide-file-search","lucide-files","lucide-file","lucide-file-text","lucide-file-x-2","lucide-file-x","lucide-film","lucide-filter","lucide-flag","lucide-flag-triangle-left","lucide-flag-triangle-right","lucide-flame","lucide-flashlight-off","lucide-flashlight","lucide-flask-conical","lucide-flask-round","lucide-folder-minus","lucide-folder-open","lucide-folder-plus","lucide-folder","lucide-form-input","lucide-forward","lucide-framer","lucide-frown","lucide-function-square","lucide-gamepad-2","lucide-gamepad","lucide-gauge","lucide-gavel","lucide-gem","lucide-ghost","lucide-gift","lucide-git-branch-plus","lucide-git-branch","lucide-git-commit","lucide-github","lucide-gitlab","lucide-git-merge","lucide-git-pull-request","lucide-glasses","lucide-globe-2","lucide-globe","lucide-grab","lucide-graduation-cap","lucide-grid","lucide-grip-horizontal","lucide-grip-vertical","lucide-hammer","lucide-hand-metal","lucide-hand","lucide-hard-drive","lucide-hard-hat","lucide-hash","lucide-haze","lucide-headphones","lucide-heart","lucide-help-circle","lucide-hexagon","lucide-highlighter","lucide-history","lucide-home","lucide-image-minus","lucide-image-off","lucide-image-plus","lucide-image","lucide-import","lucide-inbox","lucide-indent","lucide-indian-rupee","lucide-infinity","lucide-info","lucide-inspect","lucide-instagram","lucide-italic","lucide-japanese-yen","lucide-keyboard","lucide-key","lucide-landmark","lucide-languages","lucide-laptop-2","lucide-laptop","lucide-lasso-select","lucide-lasso","lucide-layers","lucide-layout-dashboard","lucide-layout-grid","lucide-layout-list","lucide-layout","lucide-layout-template","lucide-library","lucide-life-buoy","lucide-lightbulb-off","lucide-lightbulb","lucide-link-2-off","lucide-link-2","lucide-linkedin","lucide-link","lucide-list-checks","lucide-list-minus","lucide-list-ordered","lucide-list-plus","lucide-list","lucide-list-x","lucide-loader-2","lucide-loader","lucide-locate-fixed","lucide-locate-off","lucide-locate","lucide-lock","lucide-log-in","lucide-log-out","lucide-mail","lucide-map-pin","lucide-map","lucide-maximize-2","lucide-maximize","lucide-megaphone","lucide-meh","lucide-menu","lucide-message-circle","lucide-message-square","lucide-mic-off","lucide-mic","lucide-minimize-2","lucide-minimize","lucide-minus-circle","lucide-minus-square","lucide-minus","lucide-monitor-off","lucide-monitor-speaker","lucide-monitor","lucide-moon","lucide-more-horizontal","lucide-more-vertical","lucide-mountain-snow","lucide-mountain","lucide-mouse-pointer-2","lucide-mouse-pointer-click","lucide-mouse-pointer","lucide-move-diagonal-2","lucide-move-diagonal","lucide-move-horizontal","lucide-move","lucide-move-vertical","lucide-music","lucide-navigation-2","lucide-navigation","lucide-network","lucide-octagon","lucide-option","lucide-outdent","lucide-package-check","lucide-package-minus","lucide-package-plus","lucide-package-search","lucide-package","lucide-package-x","lucide-palette","lucide-palmtree","lucide-paperclip","lucide-pause-circle","lucide-pause-octagon","lucide-pause","lucide-pencil","lucide-pen-tool","lucide-percent","lucide-person-standing","lucide-phone-call","lucide-phone-forwarded","lucide-phone-incoming","lucide-phone-missed","lucide-phone-off","lucide-phone-outgoing","lucide-phone","lucide-pie-chart","lucide-piggy-bank","lucide-pin","lucide-pipette","lucide-plane","lucide-play-circle","lucide-play","lucide-plug-zap","lucide-plus-circle","lucide-plus-square","lucide-plus","lucide-pocket","lucide-podcast","lucide-pointer","lucide-pound-sterling","lucide-power-off","lucide-power","lucide-printer","lucide-qr-code","lucide-quote","lucide-radio-receiver","lucide-radio","lucide-redo","lucide-refresh-ccw","lucide-refresh-cw","lucide-regex","lucide-repeat-1","lucide-repeat","lucide-reply-all","lucide-reply","lucide-rewind","lucide-rocking-chair","lucide-rotate-ccw","lucide-rotate-cw","lucide-rss","lucide-ruler","lucide-russian-ruble","lucide-save","lucide-scale","lucide-scan-line","lucide-scan","lucide-scissors","lucide-screen-share-off","lucide-screen-share","lucide-search","lucide-send","lucide-separator-horizontal","lucide-separator-vertical","lucide-server-crash","lucide-server-off","lucide-server","lucide-settings-2","lucide-settings","lucide-share-2","lucide-share","lucide-sheet","lucide-shield-alert","lucide-shield-check","lucide-shield-close","lucide-shield-off","lucide-shield","lucide-shirt","lucide-shopping-bag","lucide-shopping-cart","lucide-shovel","lucide-shrink","lucide-shuffle","lucide-sidebar-close","lucide-sidebar-open","lucide-sidebar","lucide-sigma","lucide-signal-high","lucide-signal-low","lucide-signal-medium","lucide-signal","lucide-signal-zero","lucide-skip-back","lucide-skip-forward","lucide-skull","lucide-slack","lucide-slash","lucide-sliders","lucide-smartphone-charging","lucide-smartphone","lucide-smile","lucide-snowflake","lucide-sort-asc","lucide-sort-desc","lucide-speaker","lucide-sprout","lucide-square","lucide-star-half","lucide-star","lucide-stop-circle","lucide-stretch-horizontal","lucide-stretch-vertical","lucide-strikethrough","lucide-subscript","lucide-sunrise","lucide-sunset","lucide-sun","lucide-superscript","lucide-swiss-franc","lucide-switch-camera","lucide-table","lucide-tablet","lucide-tag","lucide-target","lucide-tent","lucide-terminal-square","lucide-terminal","lucide-text-cursor-input","lucide-text-cursor","lucide-thermometer-snowflake","lucide-thermometer-sun","lucide-thermometer","lucide-thumbs-down","lucide-thumbs-up","lucide-ticket","lucide-timer-off","lucide-timer-reset","lucide-timer","lucide-toggle-left","lucide-toggle-right","lucide-tornado","lucide-trash-2","lucide-trash","lucide-trello","lucide-trending-down","lucide-trending-up","lucide-triangle","lucide-truck","lucide-tv-2","lucide-tv","lucide-twitch","lucide-twitter","lucide-type","lucide-umbrella","lucide-underline","lucide-undo","lucide-unlink-2","lucide-unlink","lucide-unlock","lucide-upload-cloud","lucide-upload","lucide-user-check","lucide-user-minus","lucide-user-plus","lucide-users","lucide-user","lucide-user-x","lucide-verified","lucide-vibrate","lucide-video-off","lucide-video","lucide-view","lucide-voicemail","lucide-volume-1","lucide-volume-2","lucide-volume","lucide-volume-x","lucide-wallet","lucide-wand","lucide-watch","lucide-waves","lucide-webcam","lucide-wifi-off","lucide-wifi","lucide-wind","lucide-wrap-text","lucide-wrench","lucide-x-circle","lucide-x-octagon","lucide-x-square","lucide-x","lucide-youtube","lucide-zap-off","lucide-zap","lucide-zoom-in","lucide-zoom-out"];var ne={enabledButtons:[],desktop:!1,titleLeft:[],titleRight:[],titleCenter:[],paneRelief:!1},O=class extends r.Plugin{constructor(){super(...arguments);this.iconList=H.concat(K);this.titlebarText=[];this.windows=[]}addPageHeaderButton(i,e){let{id:t,icon:l,name:s}=e,o=_(),c=E(s,t,l,o,["view-action",h]);this.settings.paneRelief&&(t==="app:go-forward"||t==="app:go-back")&&c.addClass("pane-relief"),i.prepend(c),this.registerDomEvent(c,"mousedown",a=>{a.button===0&&setTimeout(()=>{this.app.commands.executeCommandById(t)},5)})}addLeftTitleBarButton(i,e){let{id:t,icon:l,name:s}=e,u=E(s,t,l,15,L,"div");i.append(u),this.registerDomEvent(u,"click",()=>{this.app.commands.executeCommandById(t)})}addRightTitleBarButton(i,e){let{id:t,icon:l,name:s}=e,u=E(s,t,l,15,L,"div");i.insertBefore(u,i.children[0]),this.registerDomEvent(u,"click",()=>{this.app.commands.executeCommandById(t)})}addCenterTitleBarButton(i,e){let{id:t,icon:l,name:s}=e,u=E(s,t,l,15,L,"div");i.append(u),this.registerDomEvent(u,"click",()=>{this.app.commands.executeCommandById(t)})}addLeftTitleBarButtons(i){if(this.settings.titleLeft.length>0){let e=A(i);for(let t of this.settings.titleLeft)this.addLeftTitleBarButton(e,t)}}addRightTitleBarButtons(i){if(this.settings.titleRight.length>0){let e=P(i);for(let t=this.settings.titleRight.length-1;t>=0;t--)this.addRightTitleBarButton(e,this.settings.titleRight[t])}}addCenterTitleBarButtons(i){if(this.settings.titleCenter.length>0){let e=D(i);for(let t of this.settings.titleCenter)this.addCenterTitleBarButton(e,t)}}initTitleBar(i){if(this.addLeftTitleBarButtons(i),this.addRightTitleBarButtons(i),this.settings.titleCenter.length>0){let e=y(i);if(!this.titlebarText.contains(e)){this.titlebarText.push(e),v(i);let t=T(i);this.addCenterTitleBarButtons(i)}}}async onload(){if(console.log("loading Customizable Page Header Plugin"),await this.loadSettings(),this.addSettingTab(new N(this.app,this)),this.app.workspace.onLayoutReady(()=>{var i;if(r.Platform.isDesktopApp){this.windows.push(document),this.initTitleBar(document);let{children:e}=this.app.workspace.floatingSplit;if(e.length+1!==this.windows.length){for(let t of e)if(t instanceof r.WorkspaceWindow){let l=(i=t.getContainer())==null?void 0:i.doc;l&&(this.windows.push(l),this.initTitleBar(l))}}}(r.Platform.isMobile||this.settings.desktop)&&this.addButtonsToAllLeaves()}),r.Platform.isMobile||this.settings.desktop){let i=this;this.register(q(r.Workspace.prototype,{changeLayout(e){return async function(l){await e.call(this,l),i.addButtonsToAllLeaves()}}})),this.registerEvent(this.app.workspace.on("layout-change",()=>{let e=app.workspace.getActiveViewOfType(r.View);!e||this.addButtonsToLeaf(e.leaf)})),this.registerEvent(this.app.workspace.on("window-open",(e,t)=>{var s;let l=(s=e.getContainer())==null?void 0:s.doc;l&&(this.windows.push(l),this.initTitleBar(l))}))}}addButtonsToAllLeaves(){app.workspace.iterateAllLeaves(i=>this.addButtonsToLeaf(i)),app.workspace.onLayoutChange()}addButtonsToLeaf(i){var l;let e=i==null?void 0:i.view.containerEl,t=e==null?void 0:e.getElementsByClassName("view-actions")[0];if(!!t)for(let s=this.settings.enabledButtons.length-1;s>=0;s--)(l=t.getElementsByClassName(`view-action page-header-button ${this.settings.enabledButtons[s].id}`)[0])==null||l.detach(),(this.settings.enabledButtons[s].showButtons==="both"||this.settings.enabledButtons[s].showButtons==="mobile"&&r.Platform.isMobile||this.settings.enabledButtons[s].showButtons==="desktop"&&r.Platform.isDesktop)&&this.addPageHeaderButton(t,this.settings.enabledButtons[s])}onunload(){console.log("unloading Customizable Page Header Plugin"),$();for(let i=0;ithis.addButtonsToAllLeaves())}}; diff --git a/.obsidian/plugins/customizable-page-header-buttons/manifest.json b/.obsidian/plugins/customizable-page-header-buttons/manifest.json deleted file mode 100644 index 6d2a58db..00000000 --- a/.obsidian/plugins/customizable-page-header-buttons/manifest.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "id": "customizable-page-header-buttons", - "name": "Customizable Page Header and Title Bar", - "version": "4.6.2", - "minAppVersion": "0.15.4", - "description": "This plugin lets you add buttons for executing commands to the page header and on desktop to the title bar.", - "author": "kometenstaub", - "authorUrl": "https://github.com/kometenstaub", - "isDesktopOnly": false -} diff --git a/.obsidian/plugins/customizable-page-header-buttons/styles.css b/.obsidian/plugins/customizable-page-header-buttons/styles.css deleted file mode 100644 index c37dc160..00000000 --- a/.obsidian/plugins/customizable-page-header-buttons/styles.css +++ /dev/null @@ -1,50 +0,0 @@ -/* - MIT License - - Copyright (c) 2021-2022 kometenstaub and contributors - - Permission is hereby granted, free of charge, to any person obtaining a copy - of this software and associated documentation files (the "Software"), to deal - in the Software without restriction, including without limitation the rights - to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - copies of the Software, and to permit persons to whom the Software is - furnished to do so, subject to the following conditions: - - The above copyright notice and this permission notice shall be included in all - copies or substantial portions of the Software. - - THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - SOFTWARE. -*/ - -/* @settings - -name: Customizable Page Header and Title Bar -id: customizable-page-header-buttons -settings: - - - id: page-header-spacing-mobile - title: Page Header Button Spacing (mobile) - type: variable-number-slider - default: 12 - min: 0 - max: 30 - step: 1 - format: px - - - id: page-header-spacing-desktop - title: Page Header Button Spacing (desktop) - type: variable-number-slider - default: 8 - min: 0 - max: 30 - step: 1 - format: px -*/ - -.page-header-button.titlebar-center{flex-grow:1;font-size:12px;height:100%;left:0;letter-spacing:.05em;opacity:.8;position:absolute;text-align:center;top:0;width:100%}body:not(.is-mobile) .view-actions{align-items:center}body:not(.is-mobile) .view-action,body:not(.is-mobile) .view-action.pane-relief{display:flex;position:unset}body:not(.is-mobile) .view-action.pane-relief.app\:go-back:before,body:not(.is-mobile) .view-action.pane-relief.app\:go-forward:after{display:inline;font-size:1em;line-height:1;vertical-align:text-top}body:not(.is-mobile) .view-action.pane-relief.app\:go-forward:after{content:var(--pane-relief-forward-count);padding-left:.4em}body:not(.is-mobile) .view-action.pane-relief.app\:go-back:before{content:var(--pane-relief-backward-count);padding-right:.4em}body:not(.is-mobile) .view-action:not(:last-child){margin-right:var(--page-header-spacing-desktop)}body:not(.is-mobile) .pane-relief body:not(.no-svg-replace) svg{vertical-align:top}.is-mobile .view-actions{align-items:center}.is-mobile .view-action:not(:last-child){margin-right:var(--page-header-spacing-mobile)} \ No newline at end of file diff --git a/.obsidian/plugins/emoji-shortcodes/data.json b/.obsidian/plugins/emoji-shortcodes/data.json new file mode 100644 index 00000000..ab702979 --- /dev/null +++ b/.obsidian/plugins/emoji-shortcodes/data.json @@ -0,0 +1,10 @@ +{ + "immediateReplace": true, + "suggester": true, + "historyPriority": true, + "historyLimit": 100, + "history": [ + ":birthday:", + ":soccer:" + ] +} \ No newline at end of file diff --git a/.obsidian/plugins/emoji-shortcodes/main.js b/.obsidian/plugins/emoji-shortcodes/main.js index d567ddca..5a3b2e1b 100644 --- a/.obsidian/plugins/emoji-shortcodes/main.js +++ b/.obsidian/plugins/emoji-shortcodes/main.js @@ -777,7 +777,7 @@ const emoji = JSON.parse(`{ ":health_worker:": "๐Ÿง‘โ€โš•", ":hear_no_evil:": "๐Ÿ™‰", ":heard_mcdonald_islands:": "๐Ÿ‡ญโ€๐Ÿ‡ฒ", - ":heart:": "โค", + ":heart:": "โค๏ธ", ":heart_decoration:": "๐Ÿ’Ÿ", ":heart_eyes:": "๐Ÿ˜", ":heart_eyes_cat:": "๐Ÿ˜ป", @@ -1913,6 +1913,9 @@ EmojiMarkdownPostProcessor.emojiProcessor = (el) => { const DEFAULT_SETTINGS = { immediateReplace: true, suggester: true, + historyPriority: true, + historyLimit: 100, + history: [], }; class EmojiPluginSettingTab extends obsidian.PluginSettingTab { constructor(app, plugin) { @@ -1943,6 +1946,40 @@ class EmojiPluginSettingTab extends obsidian.PluginSettingTab { yield this.plugin.saveSettings(); })); }); + new obsidian.Setting(containerEl) + .setName('Use History Priority') + .setDesc('Suggester gives priority to recently used emoji.') + .addToggle(cb => { + cb.setValue(this.plugin.settings.historyPriority) + .onChange((value) => __awaiter(this, void 0, void 0, function* () { + this.plugin.settings.historyPriority = value; + yield this.plugin.saveSettings(); + this.display(); + })); + }); + if (this.plugin.settings.historyPriority) { + new obsidian.Setting(containerEl) + .setName('History Limit') + .setClass('ES-sub-setting') + .addText(cb => { + cb.setPlaceholder(String(DEFAULT_SETTINGS.historyLimit)) + .setValue(String(this.plugin.settings.historyLimit)) + .onChange((value) => __awaiter(this, void 0, void 0, function* () { + this.plugin.settings.historyLimit = value !== '' ? Number(value) : DEFAULT_SETTINGS.historyLimit; + yield this.plugin.saveSettings(); + })); + }); + new obsidian.Setting(containerEl) + .setName('Clear History') + .setClass('ES-sub-setting') + .addButton(cb => { + cb.setButtonText("Clear") + .onClick(() => __awaiter(this, void 0, void 0, function* () { + this.plugin.settings.history = []; + yield this.plugin.saveSettings(); + })); + }); + } new obsidian.Setting(containerEl) .setName('Donate') .setDesc('If you like this Plugin, consider donating to support continued development:') @@ -1965,13 +2002,27 @@ class EmojiShortcodesPlugin extends obsidian.Plugin { loadSettings() { return __awaiter(this, void 0, void 0, function* () { this.settings = Object.assign({}, DEFAULT_SETTINGS, yield this.loadData()); + this.updateEmojiList(); }); } saveSettings() { return __awaiter(this, void 0, void 0, function* () { yield this.saveData(this.settings); + this.updateEmojiList(); }); } + updateEmojiList() { + const set = new Set(this.settings.history); + this.emojiList = [...this.settings.history, ...Object.keys(emoji).filter(e => !set.has(e))]; + } + updateHistory(suggestion) { + if (!this.settings.historyPriority) + return; + const set = new Set([suggestion, ...this.settings.history]); + const history = [...set].slice(0, this.settings.historyLimit); + this.settings = Object.assign(this.settings, { history }); + this.saveSettings(); + } } class EmojiSuggester extends obsidian.EditorSuggest { constructor(plugin) { @@ -1997,8 +2048,8 @@ class EmojiSuggester extends obsidian.EditorSuggest { return null; } getSuggestions(context) { - let emoji_query = context.query.replace(':', ''); - return Object.keys(emoji).filter(p => p.includes(emoji_query)); + let emoji_query = context.query.replace(':', '').toLowerCase(); + return this.plugin.emojiList.filter(p => p.includes(emoji_query)); } renderSuggestion(suggestion, el) { const outer = el.createDiv({ cls: "ES-suggester-container" }); @@ -2009,9 +2060,10 @@ class EmojiSuggester extends obsidian.EditorSuggest { selectSuggestion(suggestion) { if (this.context) { this.context.editor.replaceRange(this.plugin.settings.immediateReplace ? emoji[suggestion] : `${suggestion} `, this.context.start, this.context.end); + this.plugin.updateHistory(suggestion); } } } module.exports = EmojiShortcodesPlugin; -//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWFpbi5qcyIsInNvdXJjZXMiOlsibm9kZV9tb2R1bGVzL3RzbGliL3RzbGliLmVzNi5qcyIsInNyYy9lbW9qaUxpc3QudHMiLCJzcmMvZW1vamlQb3N0UHJvY2Vzc29yLnRzIiwic3JjL3NldHRpbmdzLnRzIiwic3JjL21haW4udHMiXSwic291cmNlc0NvbnRlbnQiOm51bGwsIm5hbWVzIjpbIlBsdWdpblNldHRpbmdUYWIiLCJTZXR0aW5nIiw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ENBQUMsR0FBRyxDQUFBLEVBQUcsVUFBVSxDQUFHLENBQUEsQ0FBQSxFQUFFLElBQUksQ0FBQyxPQUFPLENBQUMsS0FBSyxFQUFFLElBQUksQ0FBQyxPQUFPLENBQUMsR0FBRyxDQUFDLENBQUM7QUFDakssWUFBQSxJQUFJLENBQUMsTUFBTSxDQUFDLGFBQWEsQ0FBQyxVQUFVLENBQUMsQ0FBQztBQUN0QyxTQUFBO0tBQ0Q7QUFDRDs7OzsifQ== diff --git a/.obsidian/plugins/emoji-shortcodes/manifest.json b/.obsidian/plugins/emoji-shortcodes/manifest.json index 1c844684..432f6235 100644 --- a/.obsidian/plugins/emoji-shortcodes/manifest.json +++ b/.obsidian/plugins/emoji-shortcodes/manifest.json @@ -1,10 +1,11 @@ { "id": "emoji-shortcodes", "name": "Emoji Shortcodes", - "version": "2.1.2", - "minAppVersion": "0.12.17", + "version": "2.2.0", + "minAppVersion": "1.0.0", "description": "This Plugin enables the use of Markdown Emoji Shortcodes :smile:", "author": "phibr0", "authorUrl": "https://github.com/phibr0", - "isDesktopOnly": false -} \ No newline at end of file + "isDesktopOnly": false, + "fundingUrl": "https://ko-fi.com/phibr0" +} diff --git a/.obsidian/plugins/emoji-shortcodes/styles.css b/.obsidian/plugins/emoji-shortcodes/styles.css index 41ef3cec..6791da60 100644 --- a/.obsidian/plugins/emoji-shortcodes/styles.css +++ b/.obsidian/plugins/emoji-shortcodes/styles.css @@ -21,3 +21,11 @@ a[href="https://ko-fi.com/phibr0"] border-top: solid var(--background-secondary) 1px; padding-left: 10px; } + +.ES-sub-setting { + padding-left: 2em; +} +.ES-sub-setting + .ES-sub-setting { + padding-left: 0; + margin-left: 2em; +} diff --git a/.obsidian/plugins/list-style/main.js b/.obsidian/plugins/list-style/main.js new file mode 100644 index 00000000..28f1dc44 --- /dev/null +++ b/.obsidian/plugins/list-style/main.js @@ -0,0 +1,72 @@ +/* +THIS IS A GENERATED/BUNDLED FILE BY ESBUILD +if you want to view the source, please visit the github repository of this plugin +*/ + +var __defProp = Object.defineProperty; +var __getOwnPropDesc = Object.getOwnPropertyDescriptor; +var __getOwnPropNames = Object.getOwnPropertyNames; +var __hasOwnProp = Object.prototype.hasOwnProperty; +var __export = (target, all) => { + for (var name in all) + __defProp(target, name, { get: all[name], enumerable: true }); +}; +var __copyProps = (to, from, except, desc) => { + if (from && typeof from === "object" || typeof from === "function") { + for (let key of __getOwnPropNames(from)) + if (!__hasOwnProp.call(to, key) && key !== except) + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); + } + return to; +}; +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); + +// main.ts +var main_exports = {}; +__export(main_exports, { + default: () => ListStylePlugin +}); +module.exports = __toCommonJS(main_exports); +var import_obsidian = require("obsidian"); +var shorthand = { + I: "upper-roman", + i: "lower-roman", + A: "upper-alpha", + a: "lower-alpha", + "01": "decimal-leading-zero", + "1": "decimal" +}; +var STYLE_MATCHER = /^\s*\{([A-Za-z-0-9]+)\}\s*/; +var ListStylePlugin = class extends import_obsidian.Plugin { + async onload() { + this.registerMarkdownPostProcessor((el) => { + el.querySelectorAll("ol").forEach((list) => { + const firstText = getFirstTextNode(list.querySelector("li")); + let match; + if (firstText && firstText.textContent && (match = firstText.textContent.match(STYLE_MATCHER))) { + if (shorthand[match[1]]) { + list.style.listStyleType = shorthand[match[1]]; + } else { + list.style.listStyleType = match[1]; + } + firstText.textContent = firstText.textContent.slice(match[0].length); + } + }); + }); + } +}; +function getFirstTextNode(node) { + if (node == null) + return null; + for (let i = 0; i < node.childNodes.length; i++) { + if (node.childNodes[i].nodeType == Node.TEXT_NODE) { + return node.childNodes[i]; + } else if (node.childNodes[i].hasChildNodes()) { + const childText = getFirstTextNode(node.childNodes[i]); + if (childText) { + return childText; + } + } + } + return null; +} diff --git a/.obsidian/plugins/list-style/manifest.json b/.obsidian/plugins/list-style/manifest.json new file mode 100644 index 00000000..59e4f2e1 --- /dev/null +++ b/.obsidian/plugins/list-style/manifest.json @@ -0,0 +1,10 @@ +{ + "id": "list-style", + "name": "Ordered List Style", + "version": "0.1.0", + "minAppVersion": "1.0.0", + "description": "Set ordered list style inline in Obsidian.md. Alphabetic lists, roman numeral lists, etc.", + "author": "Eric Rykwalder", + "authorUrl": "https://github.com/erykwalder/obsidian-list-style", + "isDesktopOnly": false +} diff --git a/.obsidian/plugins/meld-encrypt/main.js b/.obsidian/plugins/meld-encrypt/main.js index 2c71d155..b9009db5 100644 --- a/.obsidian/plugins/meld-encrypt/main.js +++ b/.obsidian/plugins/meld-encrypt/main.js @@ -2,7 +2,7 @@ var obsidian = require('obsidian'); -/*! ***************************************************************************** +/****************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any @@ -27,210 +27,180 @@ function __awaiter(thisArg, _arguments, P, generator) { }); } -class DecryptModal extends obsidian.Modal { - constructor(app, title, text = '', showButton) { - super(app); - this.decryptInPlace = false; - this.text = text; - this.titleEl.innerText = title; - this.showButton = showButton; +class MemoryCache { + constructor() { + this.values = new Map(); } - onOpen() { - let { contentEl } = this; - const textEl = contentEl.createDiv().createEl('textarea', { text: this.text }); - textEl.style.width = '100%'; - textEl.style.height = '100%'; - textEl.rows = 10; - textEl.readOnly = true; - //textEl.focus(); // Doesn't seem to work here... - setTimeout(() => { textEl.focus(); }, 100); //... but this does - const btnContainerEl = contentEl.createDiv(''); - if (this.showButton) { - const copyBtnEl = btnContainerEl.createEl('button', { text: 'Copy' }); - copyBtnEl.addEventListener('click', () => { - navigator.clipboard.writeText(textEl.value); - }); + put(key, value) { + //console.debug('MemoryCache.put', {key, value}); + this.values.set(key, value); + } + get(key, defaultValue) { + //console.debug('MemoryCache.get', {key, defaultValue}); + return this.values.has(key) ? this.values.get(key) : defaultValue; + } + getFirst(keys, defaultValue) { + //console.debug('MemoryCache.getFirst', {keys, defaultValue}); + for (let index = 0; index < keys.length; index++) { + const key = keys[index]; + if (this.containsKey(key)) { + return this.get(key, defaultValue); + } } - const decryptInPlaceBtnEl = btnContainerEl.createEl('button', { text: 'Decrypt in-place' }); - decryptInPlaceBtnEl.addEventListener('click', () => { - this.decryptInPlace = true; - this.close(); - }); - const cancelBtnEl = btnContainerEl.createEl('button', { text: 'Close' }); - cancelBtnEl.addEventListener('click', () => { - this.close(); - }); + return defaultValue; + } + containsKey(key) { + //console.debug('MemoryCache.containsKey', {key}); + return this.values.has(key); + } + getKeys() { + //console.debug('MemoryCache.getKeys'); + return Array.from(this.values.keys()); + } + clear() { + //console.debug('MemoryCache.clear'); + this.values.clear(); } } -class PasswordModal extends obsidian.Modal { - constructor(app, isEncrypting, confirmPassword, defaultPassword = null, hint) { - super(app); - this.password = null; - this.hint = null; - this.defaultPassword = null; - this.defaultPassword = defaultPassword; - this.confirmPassword = confirmPassword; - this.isEncrypting = isEncrypting; - this.hint = hint; - } - onOpen() { - var _a, _b, _c; - let { contentEl } = this; - contentEl.empty(); - contentEl.addClass('meld-e-password'); - if (obsidian.Platform.isMobile) { - contentEl.addClass('meld-e-platform-mobile'); - } - else if (obsidian.Platform.isDesktop) { - contentEl.addClass('meld-e-platform-desktop'); - } - /* Main password input row */ - const inputPwContainerEl = contentEl.createDiv({ cls: 'meld-e-row' }); - inputPwContainerEl.createSpan({ cls: 'meld-e-icon', text: '๐Ÿ”‘' }); - const pwInputEl = inputPwContainerEl.createEl('input', { type: 'password', value: (_a = this.defaultPassword) !== null && _a !== void 0 ? _a : '' }); - pwInputEl.placeholder = 'Enter your password'; - pwInputEl.focus(); - if (obsidian.Platform.isMobile) { - // Add 'Next' button for mobile - const inputInputNextBtnEl = inputPwContainerEl.createEl('button', { - text: 'โ†’', - cls: 'meld-e-button-next' - }); - inputInputNextBtnEl.addEventListener('click', (ev) => { - inputPasswordHandler(); - }); +class SessionPasswordService { + static setActive(isActive) { + SessionPasswordService.isActive = isActive; + if (!SessionPasswordService.isActive) { + this.clear(); } - /* End Main password input row */ - /* Confirm password input row */ - const confirmPwShown = this.confirmPassword; - const confirmPwContainerEl = contentEl.createDiv({ cls: 'meld-e-row' }); - confirmPwContainerEl.createSpan({ cls: 'meld-e-icon', text: '๐Ÿ”‘' }); - const pwConfirmInputEl = confirmPwContainerEl.createEl('input', { - type: 'password', - value: (_b = this.defaultPassword) !== null && _b !== void 0 ? _b : '' - }); - pwConfirmInputEl.placeholder = 'Confirm your password'; - const messageEl = contentEl.createDiv({ cls: 'meld-e-message' }); - messageEl.hide(); - if (obsidian.Platform.isMobile) { - // Add 'Next' button for mobile - const confirmInputNextBtnEl = confirmPwContainerEl.createEl('button', { - text: 'โ†’', - cls: 'meld-e-button-next' - }); - confirmInputNextBtnEl.addEventListener('click', (ev) => { - confirmPasswordHandler(); - }); - } - if (!confirmPwShown) { - confirmPwContainerEl.hide(); + } + /** + * + * @param minutesToExpire set to 0 to never expire + */ + static setAutoExpire(minutesToExpire) { + SessionPasswordService.baseMinutesToExpire = minutesToExpire; + SessionPasswordService.updateExpiryTime(); + } + static updateExpiryTime() { + if (SessionPasswordService.baseMinutesToExpire == 0 + || SessionPasswordService.baseMinutesToExpire == null) { + SessionPasswordService.expiryTime = null; } - /* End Confirm password input row */ - /* Hint input row */ - const hintInputShown = this.isEncrypting; - const inputHintContainerEl = contentEl.createDiv({ cls: 'meld-e-row' }); - inputHintContainerEl.createSpan({ cls: 'meld-e-icon', text: '๐Ÿ’ก' }); - const hintInputEl = inputHintContainerEl.createEl('input', { type: 'text', value: this.hint }); - hintInputEl.placeholder = 'Enter an optional password hint'; - if (obsidian.Platform.isMobile) { - // Add 'Next' button for mobile - const hintInputNextBtnEl = inputHintContainerEl.createEl('button', { - text: 'โ†’', - cls: 'meld-e-button-next' - }); - hintInputNextBtnEl.addEventListener('click', (ev) => { - hintPasswordHandler(); - }); + else { + SessionPasswordService.expiryTime = Date.now() + SessionPasswordService.baseMinutesToExpire * 1000 * 60; } - if (!hintInputShown) { - inputHintContainerEl.hide(); + console.debug('SessionPasswordService.updateExpiryTime', { expiryTime: SessionPasswordService.expiryTime }); + } + static put(pw, file) { + console.debug('SessionPasswordService.put', { pw, file }); + console.debug(file.parent.path); + this.cache.put(file.path, pw); + this.cache.put(file.parent.path, pw); + this.cache.put(file.basename, pw); + SessionPasswordService.updateExpiryTime(); + } + static getExact(file) { + this.clearIfExpired(); + SessionPasswordService.updateExpiryTime(); + return this.cache.get(file.path, SessionPasswordService.blankPasswordAndHint); + } + static getBestGuess(file) { + this.clearIfExpired(); + //console.debug('SessionPasswordService.getBestGuess', {file}) + SessionPasswordService.updateExpiryTime(); + const buestGuess = this.cache.getFirst([ + file.path, + file.parent.path, + file.basename + ], SessionPasswordService.blankPasswordAndHint); + console.debug('SessionPasswordService.getBestGuess', { file, buestGuess }); + return buestGuess; + } + static clearIfExpired() { + if (SessionPasswordService.expiryTime == null) { + return; } - /* End Hint input row */ - /* Hint text row */ - const spanHintContainerEl = contentEl.createDiv({ cls: 'meld-e-row' }); - spanHintContainerEl.createSpan({ cls: 'meld-e-icon', text: '๐Ÿ’ก' }); - spanHintContainerEl.createSpan({ cls: 'meld-e-hint', text: `Hint: '${this.hint}'` }); - if (hintInputShown || ((_c = this.hint) !== null && _c !== void 0 ? _c : '').length == 0) { - spanHintContainerEl.hide(); + if (Date.now() < SessionPasswordService.expiryTime) { + return; } - /* END Hint text row */ - const confirmPwButtonEl = contentEl.createEl('button', { - text: 'Confirm', - cls: 'meld-e-button-confirm' - }); - confirmPwButtonEl.addEventListener('click', (ev) => { - if (validate()) { - this.close(); - } - else { - pwInputEl.focus(); - } + this.clear(); + } + static clear() { + this.cache.clear(); + } +} +SessionPasswordService.isActive = true; +SessionPasswordService.blankPasswordAndHint = { password: '', hint: '' }; +SessionPasswordService.cache = new MemoryCache(); +SessionPasswordService.baseMinutesToExpire = 0; +SessionPasswordService.expiryTime = null; + +class MeldEncryptSettingsTab extends obsidian.PluginSettingTab { + constructor(app, plugin, settings, features) { + super(app, plugin); + this.plugin = plugin; + this.settings = settings; + this.features = features; + } + display() { + let { containerEl } = this; + containerEl.empty(); + containerEl.createEl('h1', { text: 'Settings for Meld Encrypt' }); + // build common settings + new obsidian.Setting(containerEl) + .setHeading() + .setName('Common Settings'); + new obsidian.Setting(containerEl) + .setName('Confirm password?') + .setDesc('Confirm password when encrypting.') + .addToggle(toggle => { + toggle + .setValue(this.settings.confirmPassword) + .onChange((value) => __awaiter(this, void 0, void 0, function* () { + this.settings.confirmPassword = value; + yield this.plugin.saveSettings(); + })); }); - const validate = () => { - if (confirmPwShown) { - if (pwInputEl.value != pwConfirmInputEl.value) { - // passwords don't match - messageEl.setText('Passwords don\'t match'); - messageEl.show(); - return false; - } - } - this.password = pwInputEl.value; - this.hint = hintInputEl.value; - return true; - }; - const inputPasswordHandler = () => { - if (confirmPwShown) { - pwConfirmInputEl.focus(); - return; - } - if (hintInputShown) { - hintInputEl.focus(); + const updateRememberPasswordSettingsUi = () => { + if (!this.settings.rememberPassword) { + pwTimeoutSetting.settingEl.hide(); return; } - if (validate()) { - this.close(); - } - }; - const confirmPasswordHandler = () => { - if (validate()) { - if (hintInputShown) { - hintInputEl.focus(); - } - else { - this.close(); - } - } - }; - const hintPasswordHandler = () => { - if (validate()) { - this.close(); - } - else { - pwInputEl.focus(); + pwTimeoutSetting.settingEl.show(); + const rememberPasswordTimeout = this.settings.rememberPasswordTimeout; + let timeoutString = `${rememberPasswordTimeout} minutes`; + if (rememberPasswordTimeout == 0) { + timeoutString = 'Never forget'; } + pwTimeoutSetting.setName(`Remember Password Timeout (${timeoutString})`); }; - hintInputEl.addEventListener('keypress', (ev) => { - if ((ev.code === 'Enter' || ev.code === 'NumpadEnter') - && pwInputEl.value.length > 0) { - ev.preventDefault(); - hintPasswordHandler(); - } + new obsidian.Setting(containerEl) + .setName('Remember password?') + .setDesc('Remember the last used passwords when encrypting or decrypting.') + .addToggle(toggle => { + toggle + .setValue(this.settings.rememberPassword) + .onChange((value) => __awaiter(this, void 0, void 0, function* () { + this.settings.rememberPassword = value; + yield this.plugin.saveSettings(); + SessionPasswordService.setActive(this.settings.rememberPassword); + updateRememberPasswordSettingsUi(); + })); }); - pwConfirmInputEl.addEventListener('keypress', (ev) => { - if ((ev.code === 'Enter' || ev.code === 'NumpadEnter') - && pwConfirmInputEl.value.length > 0) { - ev.preventDefault(); - confirmPasswordHandler(); - } + const pwTimeoutSetting = new obsidian.Setting(containerEl) + .setDesc('The number of minutes to remember passwords.') + .addSlider(slider => { + slider + .setLimits(0, 120, 5) + .setValue(this.settings.rememberPasswordTimeout) + .onChange((value) => __awaiter(this, void 0, void 0, function* () { + this.settings.rememberPasswordTimeout = value; + yield this.plugin.saveSettings(); + SessionPasswordService.setAutoExpire(this.settings.rememberPasswordTimeout); + updateRememberPasswordSettingsUi(); + })); }); - pwInputEl.addEventListener('keypress', (ev) => { - if ((ev.code === 'Enter' || ev.code === 'NumpadEnter') - && pwInputEl.value.length > 0) { - ev.preventDefault(); - inputPasswordHandler(); - } + updateRememberPasswordSettingsUi(); + // build feature settings + this.features.forEach(f => { + f.buildSettingsUi(containerEl, () => __awaiter(this, void 0, void 0, function* () { return yield this.plugin.saveSettings(); })); }); } } @@ -240,7 +210,7 @@ const utf8Encoder = new TextEncoder(); const utf8Decoder = new TextDecoder(); const iterations = 1000; const salt = utf8Encoder.encode('XHWnDAT6ehMVY2zD'); -class CryptoHelperV2 { +class CryptoHelper { deriveKey(password) { return __awaiter(this, void 0, void 0, function* () { const buffer = utf8Encoder.encode(password); @@ -257,7 +227,7 @@ class CryptoHelperV2 { return privateKey; }); } - encryptToBase64(text, password) { + encryptToBytes(text, password) { return __awaiter(this, void 0, void 0, function* () { const key = yield this.deriveKey(password); const textBytesToEncrypt = utf8Encoder.encode(text); @@ -267,8 +237,22 @@ class CryptoHelperV2 { const finalBytes = new Uint8Array(vector.byteLength + encryptedBytes.byteLength); finalBytes.set(vector, 0); finalBytes.set(encryptedBytes, vector.byteLength); + return finalBytes; + }); + } + convertToString(bytes) { + let result = ''; + for (let idx = 0; idx < bytes.length; idx++) { + // append to result + result += String.fromCharCode(bytes[idx]); + } + return result; + } + encryptToBase64(text, password) { + return __awaiter(this, void 0, void 0, function* () { + const finalBytes = yield this.encryptToBytes(text, password); //convert array to base64 - const base64Text = btoa(String.fromCharCode(...finalBytes)); + const base64Text = btoa(this.convertToString(finalBytes)); return base64Text; }); } @@ -279,14 +263,13 @@ class CryptoHelperV2 { } return new Uint8Array(result); } - decryptFromBase64(base64Encoded, password) { + decryptFromBytes(encryptedBytes, password) { return __awaiter(this, void 0, void 0, function* () { try { - let bytesToDecode = this.stringToArray(atob(base64Encoded)); // extract iv - const vector = bytesToDecode.slice(0, vectorSize); + const vector = encryptedBytes.slice(0, vectorSize); // extract encrypted text - const encryptedTextBytes = bytesToDecode.slice(vectorSize); + const encryptedTextBytes = encryptedBytes.slice(vectorSize); const key = yield this.deriveKey(password); // decrypt into bytes let decryptedBytes = yield crypto.subtle.decrypt({ name: 'AES-GCM', iv: vector }, key, encryptedTextBytes); @@ -300,7 +283,34 @@ class CryptoHelperV2 { } }); } -} + decryptFromBase64(base64Encoded, password) { + return __awaiter(this, void 0, void 0, function* () { + try { + let bytesToDecode = this.stringToArray(atob(base64Encoded)); + return yield this.decryptFromBytes(bytesToDecode, password); + // // extract iv + // const vector = bytesToDecode.slice(0,vectorSize); + // // extract encrypted text + // const encryptedTextBytes = bytesToDecode.slice(vectorSize); + // const key = await this.deriveKey(password); + // // decrypt into bytes + // let decryptedBytes = await crypto.subtle.decrypt( + // {name: 'AES-GCM', iv: vector}, + // key, + // encryptedTextBytes + // ); + // // convert bytes to text + // let decryptedText = utf8Decoder.decode(decryptedBytes); + // return decryptedText; + } + catch (e) { + //console.error(e); + return null; + } + }); + } +} + const algorithmObsolete = { name: 'AES-GCM', iv: new Uint8Array([196, 190, 240, 190, 188, 78, 41, 132, 15, 220, 84, 211]), @@ -316,6 +326,9 @@ class CryptoHelperObsolete { return key; }); } + /** + * @deprecated + */ encryptToBase64(text, password) { return __awaiter(this, void 0, void 0, function* () { let key = yield this.buildKey(password); @@ -355,94 +368,241 @@ class CryptoHelperObsolete { } } -class MeldEncryptSettingsTab extends obsidian.PluginSettingTab { - constructor(app, plugin) { - super(app, plugin); - this.plugin = plugin; +class DecryptModal extends obsidian.Modal { + constructor(app, title, text = '', showCopyButton) { + super(app); + this.decryptInPlace = false; + this.titleEl.setText(title); + this.text = text; + this.showCopyButton = showCopyButton; } - display() { - let { containerEl } = this; - containerEl.empty(); - containerEl.createEl('h2', { text: 'Settings for Meld Encrypt' }); - new obsidian.Setting(containerEl) - .setName('Expand selection to whole line?') - .setDesc('Partial selections will get expanded to the whole line.') - .addToggle(toggle => { - toggle - .setValue(this.plugin.settings.expandToWholeLines) - .onChange((value) => __awaiter(this, void 0, void 0, function* () { - this.plugin.settings.expandToWholeLines = value; - yield this.plugin.saveSettings(); - //this.updateSettingsUi(); - })); + onOpen() { + let { contentEl } = this; + let cTextArea; + const sText = new obsidian.Setting(contentEl) + .addTextArea(cb => { + cTextArea = cb; + cb.setValue(this.text); + cb.inputEl.setSelectionRange(0, 0); + cb.inputEl.readOnly = true; + cb.inputEl.rows = 10; + cb.inputEl.style.width = '100%'; + cb.inputEl.style.minHeight = '3em'; + cb.inputEl.style.resize = 'vertical'; }); - new obsidian.Setting(containerEl) - .setName('Confirm password?') - .setDesc('Confirm password when encrypting.') - .addToggle(toggle => { - toggle - .setValue(this.plugin.settings.confirmPassword) - .onChange((value) => __awaiter(this, void 0, void 0, function* () { - this.plugin.settings.confirmPassword = value; - yield this.plugin.saveSettings(); - this.updateSettingsUi(); - })); + sText.settingEl.querySelector('.setting-item-info').remove(); + const sActions = new obsidian.Setting(contentEl); + if (this.showCopyButton) { + sActions + .addButton(cb => { + cb + .setButtonText('Copy') + .onClick(evt => { + navigator.clipboard.writeText(cTextArea.getValue()); + new obsidian.Notice('Copied!'); + }); + if (!this.showCopyButton) ; + }); + } + sActions + .addButton(cb => { + cb + .setWarning() + .setButtonText('Decrypt in-place') + .onClick(evt => { + this.decryptInPlace = true; + this.close(); + }); }); - new obsidian.Setting(containerEl) - .setName('Copy button?') - .setDesc('Show a button to copy decrypted text.') - .addToggle(toggle => { - toggle - .setValue(this.plugin.settings.showButton) - .onChange((value) => __awaiter(this, void 0, void 0, function* () { - this.plugin.settings.showButton = value; - yield this.plugin.saveSettings(); - this.updateSettingsUi(); - })); + } +} + +class UiHelper { + /** + Check if the Settings modal is open + */ + static isSettingsModalOpen() { + return document.querySelector('.mod-settings') !== null; + } + static buildPasswordSetting({ container, name, desc = '', autoFocus = false, placeholder = '', initialValue = '', onChangeCallback, onEnterCallback, }) { + const sControl = new obsidian.Setting(container) + .setName(name) + .setDesc(desc) + .addButton(cb => { + cb + .setIcon('reading-glasses') + .onClick(evt => { + // toggle view password + const inputCtrl = sControl.components.find((bc, idx, obj) => bc instanceof obsidian.TextComponent); + if (inputCtrl instanceof obsidian.TextComponent) { + inputCtrl.inputEl.type = inputCtrl.inputEl.type == 'password' ? 'text' : 'password'; + } + }); + }) + .addText(tc => { + tc.setPlaceholder(placeholder); + tc.setValue(initialValue); + tc.inputEl.type = 'password'; + if (onChangeCallback != null) { + tc.onChange(onChangeCallback); + } + if (onEnterCallback != null) { + tc.inputEl.onkeydown = (ev) => { + if (ev.key === 'Enter') { + ev.preventDefault(); + onEnterCallback(tc.getValue()); + } + }; + } + if (autoFocus) { + setTimeout(() => tc.inputEl.focus(), 0); + } }); - new obsidian.Setting(containerEl) - .setName('Remember password?') - .setDesc('Remember the last used password for this session.') - .addToggle(toggle => { - toggle - .setValue(this.plugin.settings.rememberPassword) - .onChange((value) => __awaiter(this, void 0, void 0, function* () { - this.plugin.settings.rememberPassword = value; - yield this.plugin.saveSettings(); - this.updateSettingsUi(); - })); + return sControl; + } +} + +class PasswordModal extends obsidian.Modal { + constructor(app, isEncrypting, confirmPassword, defaultPassword = null, hint = null) { + super(app); + // input + this.defaultPassword = null; + this.defaultHint = null; + // output + this.resultConfirmed = false; + this.resultPassword = null; + this.resultHint = null; + this.defaultPassword = defaultPassword; + this.confirmPassword = confirmPassword; + this.isEncrypting = isEncrypting; + this.defaultHint = hint; + } + onOpen() { + var _a, _b; + let { contentEl } = this; + contentEl.empty(); + //this.contentEl.style.width = 'auto'; + this.invalidate(); + let password = (_a = this.defaultPassword) !== null && _a !== void 0 ? _a : ''; + let confirmPass = ''; + let hint = (_b = this.defaultHint) !== null && _b !== void 0 ? _b : ''; + new obsidian.Setting(contentEl).setHeading().setName(this.isEncrypting ? 'Encrypting' : 'Decrypting'); + /* Main password input*/ + UiHelper.buildPasswordSetting({ + container: contentEl, + name: 'Password:', + placeholder: this.isEncrypting ? '' : `Hint: ${this.defaultHint}`, + initialValue: password, + autoFocus: true, + onChangeCallback: (value) => { + password = value; + this.invalidate(); + }, + onEnterCallback: (value) => { + password = value; + this.invalidate(); + if (password.length > 0) { + if (sConfirmPassword.settingEl.isShown()) { + //tcConfirmPassword.inputEl.focus(); + const elInp = sConfirmPassword.components.find((bc) => bc instanceof obsidian.TextComponent); + if (elInp instanceof obsidian.TextComponent) { + elInp.inputEl.focus(); + } + } + else if (sHint.settingEl.isShown()) { + //tcHint.inputEl.focus(); + const elInp = sHint.components.find((bc) => bc instanceof obsidian.TextComponent); + if (elInp instanceof obsidian.TextComponent) { + elInp.inputEl.focus(); + } + } + else if (validate()) { + this.close(); + } + } + } }); - this.pwTimeoutSetting = new obsidian.Setting(containerEl) - .setName(this.buildPasswordTimeoutSettingName()) - .setDesc('The number of minutes to remember the last used password.') - .addSlider(slider => { - slider - .setLimits(0, 120, 5) - .setValue(this.plugin.settings.rememberPasswordTimeout) - .onChange((value) => __awaiter(this, void 0, void 0, function* () { - this.plugin.settings.rememberPasswordTimeout = value; - yield this.plugin.saveSettings(); - this.updateSettingsUi(); - })); + /* End Main password input row */ + /* Confirm password input row */ + const sConfirmPassword = UiHelper.buildPasswordSetting({ + container: contentEl, + name: 'Confirm Password:', + onChangeCallback: (value) => { + confirmPass = value; + this.invalidate(); + }, + onEnterCallback: (value) => { + confirmPass = value; + this.invalidate(); + if (confirmPass.length > 0) { + if (validate()) { + if (sHint.settingEl.isShown()) { + //tcHint.inputEl.focus(); + const elInp = sHint.components.find((bc) => bc instanceof obsidian.TextComponent); + if (elInp instanceof obsidian.TextComponent) { + elInp.inputEl.focus(); + } + } + } + } + } }); - this.updateSettingsUi(); - } - updateSettingsUi() { - this.pwTimeoutSetting.setName(this.buildPasswordTimeoutSettingName()); - if (this.plugin.settings.rememberPassword) { - this.pwTimeoutSetting.settingEl.show(); + if (!this.confirmPassword) { + sConfirmPassword.settingEl.hide(); } - else { - this.pwTimeoutSetting.settingEl.hide(); + /* End Confirm password input row */ + /* Hint input row */ + const sHint = new obsidian.Setting(contentEl) + .setName('Optional Password Hint') + .addText(tc => { + //tcHint = tc; + tc.inputEl.placeholder = `Password Hint`; + tc.setValue(hint); + tc.onChange(v => hint = v); + tc.inputEl.on('keypress', '*', (ev, target) => { + if (ev.key == 'Enter' + && target instanceof HTMLInputElement + && target.value.length > 0) { + ev.preventDefault(); + if (validate()) { + this.close(); + } + } + }); + }); + if (!this.isEncrypting) { + sHint.settingEl.hide(); } + /* END Hint text row */ + new obsidian.Setting(contentEl).addButton(cb => { + cb + .setButtonText('Confirm') + .onClick(evt => { + if (validate()) { + this.close(); + } + }); + }); + const validate = () => { + this.invalidate(); + sConfirmPassword.setDesc(''); + if (this.confirmPassword) { + if (password != confirmPass) { + // passwords don't match + sConfirmPassword.setDesc('Passwords don\'t match'); + return false; + } + } + this.resultConfirmed = true; + this.resultPassword = password; + this.resultHint = hint; + return true; + }; } - buildPasswordTimeoutSettingName() { - const value = this.plugin.settings.rememberPasswordTimeout; - let timeoutString = `${value} minutes`; - if (value == 0) { - timeoutString = 'Never forget'; - } - return `Remember Password Timeout (${timeoutString})`; + invalidate() { + this.resultConfirmed = false; + this.resultPassword = null; + this.resultHint = null; } } @@ -451,68 +611,65 @@ const _PREFIX_OBSOLETE = _PREFIX + ' '; const _PREFIX_A = _PREFIX + 'ฮฑ '; const _SUFFIX = ' ๐Ÿ”%%'; const _HINT = '๐Ÿ’ก'; -const DEFAULT_SETTINGS = { - expandToWholeLines: true, - confirmPassword: true, - showButton: false, - rememberPassword: true, - rememberPasswordTimeout: 30 -}; -class MeldEncrypt extends obsidian.Plugin { - onload() { +class FeatureInplaceEncrypt { + onload(plugin, settings) { return __awaiter(this, void 0, void 0, function* () { - yield this.loadSettings(); - this.addSettingTab(new MeldEncryptSettingsTab(this.app, this)); - this.addCommand({ + this.plugin = plugin; + this.pluginSettings = settings; + this.featureSettings = settings.featureInplaceEncrypt; + plugin.addCommand({ id: 'meld-encrypt', name: 'Encrypt/Decrypt', + icon: 'lock', editorCheckCallback: (checking, editor, view) => this.processEncryptDecryptCommand(checking, editor, view, false) }); - this.addCommand({ + plugin.addCommand({ id: 'meld-encrypt-in-place', name: 'Encrypt/Decrypt In-place', + icon: 'lock', editorCheckCallback: (checking, editor, view) => this.processEncryptDecryptCommand(checking, editor, view, true) }); - this.addCommand({ - id: 'meld-encrypt-note', - name: 'Encrypt/Decrypt Whole Note', - editorCheckCallback: (checking, editor, view) => this.processEncryptDecryptWholeNoteCommand(checking, editor, view) - }); }); } - loadSettings() { - return __awaiter(this, void 0, void 0, function* () { - this.settings = Object.assign({}, DEFAULT_SETTINGS, yield this.loadData()); - }); + onunload() { } - saveSettings() { - return __awaiter(this, void 0, void 0, function* () { - yield this.saveData(this.settings); + buildSettingsUi(containerEl, saveSettingCallback) { + new obsidian.Setting(containerEl) + .setHeading() + .setName('In-place Encryption Settings'); + // Selection encrypt feature settings below + new obsidian.Setting(containerEl) + .setName('Expand selection to whole line?') + .setDesc('Partial selections will get expanded to the whole line.') + .addToggle(toggle => { + toggle + .setValue(this.featureSettings.expandToWholeLines) + .onChange((value) => __awaiter(this, void 0, void 0, function* () { + this.featureSettings.expandToWholeLines = value; + yield saveSettingCallback(); + })); + }); + new obsidian.Setting(containerEl) + .setName('Copy button?') + .setDesc('Show a button to copy decrypted text.') + .addToggle(toggle => { + toggle + .setValue(this.featureSettings.showCopyButton) + .onChange((value) => __awaiter(this, void 0, void 0, function* () { + this.featureSettings.showCopyButton = value; + yield saveSettingCallback(); + })); }); - } - isSettingsModalOpen() { - return document.querySelector('.mod-settings') !== null; - } - processEncryptDecryptWholeNoteCommand(checking, editor, view) { - if (checking && this.isSettingsModalOpen()) { - // Settings is open, ensures this command can show up in other - // plugins which list commands e.g. customizable-sidebar - return true; - } - const startPos = editor.offsetToPos(0); - const endPos = { line: editor.lastLine(), ch: editor.getLine(editor.lastLine()).length }; - const selectionText = editor.getRange(startPos, endPos).trim(); - return this.processSelection(checking, editor, selectionText, startPos, endPos, true); } processEncryptDecryptCommand(checking, editor, view, decryptInPlace) { - if (checking && this.isSettingsModalOpen()) { + if (checking && UiHelper.isSettingsModalOpen()) { // Settings is open, ensures this command can show up in other // plugins which list commands e.g. customizable-sidebar return true; } let startPos = editor.getCursor('from'); let endPos = editor.getCursor('to'); - if (this.settings.expandToWholeLines) { + if (this.featureSettings.expandToWholeLines) { const startLine = startPos.line; startPos = { line: startLine, ch: 0 }; // want the start of the first line const endLine = endPos.line; @@ -577,7 +734,7 @@ class MeldEncrypt extends obsidian.Plugin { } return result; } - processSelection(checking, editor, selectionText, finalSelectionStart, finalSelectionEnd, decryptInPlace) { + processSelection(checking, editor, selectionText, finalSelectionStart, finalSelectionEnd, decryptInPlace, allowEncryption = true) { var _a; const selectionAnalysis = this.analyseSelection(selectionText); if (selectionAnalysis.isEmpty) { @@ -592,58 +749,61 @@ class MeldEncrypt extends obsidian.Plugin { } return false; } + if (selectionAnalysis.canEncrypt && !allowEncryption) { + return false; + } if (checking) { return true; } + const activeFile = this.plugin.app.workspace.getActiveFile(); // Fetch password from user - // determine default password - const isRememberPasswordExpired = !this.settings.rememberPassword - || (this.passwordLastUsedExpiry != null - && Date.now() > this.passwordLastUsedExpiry); - const confirmPassword = selectionAnalysis.canEncrypt && this.settings.confirmPassword; - if (isRememberPasswordExpired || confirmPassword) { - // forget password - this.passwordLastUsed = ''; - } - const pwModal = new PasswordModal(this.app, selectionAnalysis.canEncrypt, confirmPassword, this.passwordLastUsed, (_a = selectionAnalysis.decryptable) === null || _a === void 0 ? void 0 : _a.hint); - pwModal.onClose = () => { - var _a; - const pw = (_a = pwModal.password) !== null && _a !== void 0 ? _a : ''; - if (pw.length == 0) { + // determine default password and hint + let defaultPassword = ''; + let defaultHint = (_a = selectionAnalysis.decryptable) === null || _a === void 0 ? void 0 : _a.hint; + if (this.pluginSettings.rememberPassword) { + const bestGuessPasswordAndHint = SessionPasswordService.getBestGuess(activeFile); + console.debug({ bestGuessPasswordAndHint }); + defaultPassword = bestGuessPasswordAndHint.password; + defaultHint = defaultHint !== null && defaultHint !== void 0 ? defaultHint : bestGuessPasswordAndHint.hint; + } + const confirmPassword = selectionAnalysis.canEncrypt && this.pluginSettings.confirmPassword; + const pwModal = new PasswordModal(this.plugin.app, selectionAnalysis.canEncrypt, confirmPassword, defaultPassword, defaultHint); + pwModal.onClose = () => __awaiter(this, void 0, void 0, function* () { + var _b, _c; + if (!pwModal.resultConfirmed) { return; } - const hint = pwModal.hint; - // remember password? - if (this.settings.rememberPassword) { - this.passwordLastUsed = pw; - this.passwordLastUsedExpiry = - this.settings.rememberPasswordTimeout == 0 - ? null - : Date.now() + this.settings.rememberPasswordTimeout * 1000 * 60 // new expiry - ; - } + const pw = (_b = pwModal.resultPassword) !== null && _b !== void 0 ? _b : ''; + const hint = (_c = pwModal.resultHint) !== null && _c !== void 0 ? _c : ''; if (selectionAnalysis.canEncrypt) { const encryptable = new Encryptable(); encryptable.text = selectionText; encryptable.hint = hint; this.encryptSelection(editor, encryptable, pw, finalSelectionStart, finalSelectionEnd); + // remember password + SessionPasswordService.put({ password: pw, hint: hint }, activeFile); } else { + let decryptSuccess; if (selectionAnalysis.decryptable.version == 1) { - this.decryptSelection_a(editor, selectionAnalysis.decryptable, pw, finalSelectionStart, finalSelectionEnd, decryptInPlace); + decryptSuccess = yield this.decryptSelection_a(editor, selectionAnalysis.decryptable, pw, finalSelectionStart, finalSelectionEnd, decryptInPlace); } else { - this.decryptSelectionObsolete(editor, selectionAnalysis.decryptable, pw, finalSelectionStart, finalSelectionEnd, decryptInPlace); + decryptSuccess = yield this.decryptSelectionObsolete(editor, selectionAnalysis.decryptable, pw, finalSelectionStart, finalSelectionEnd, decryptInPlace); + } + // remember password? + if (decryptSuccess) { + SessionPasswordService.put({ password: pw, hint: hint }, activeFile); } } - }; + }); pwModal.open(); return true; } encryptSelection(editor, encryptable, password, finalSelectionStart, finalSelectionEnd) { return __awaiter(this, void 0, void 0, function* () { //encrypt - const crypto = new CryptoHelperV2(); + const crypto = new CryptoHelper(); const encodedText = this.encodeEncryption(yield crypto.encryptToBase64(encryptable.text, password), encryptable.hint); editor.setSelection(finalSelectionStart, finalSelectionEnd); editor.replaceSelection(encodedText); @@ -652,10 +812,11 @@ class MeldEncrypt extends obsidian.Plugin { decryptSelection_a(editor, decryptable, password, selectionStart, selectionEnd, decryptInPlace) { return __awaiter(this, void 0, void 0, function* () { // decrypt - const crypto = new CryptoHelperV2(); + const crypto = new CryptoHelper(); const decryptedText = yield crypto.decryptFromBase64(decryptable.base64CipherText, password); if (decryptedText === null) { new obsidian.Notice('โŒ Decryption failed!'); + return false; } else { if (decryptInPlace) { @@ -663,7 +824,7 @@ class MeldEncrypt extends obsidian.Plugin { editor.replaceSelection(decryptedText); } else { - const decryptModal = new DecryptModal(this.app, '๐Ÿ”“', decryptedText, this.settings.showButton); + const decryptModal = new DecryptModal(this.plugin.app, '๐Ÿ”“', decryptedText, this.featureSettings.showCopyButton); decryptModal.onClose = () => { editor.focus(); if (decryptModal.decryptInPlace) { @@ -674,6 +835,7 @@ class MeldEncrypt extends obsidian.Plugin { decryptModal.open(); } } + return true; }); } decryptSelectionObsolete(editor, decryptable, password, selectionStart, selectionEnd, decryptInPlace) { @@ -684,6 +846,7 @@ class MeldEncrypt extends obsidian.Plugin { const decryptedText = yield crypto.decryptFromBase64(base64CipherText, password); if (decryptedText === null) { new obsidian.Notice('โŒ Decryption failed!'); + return false; } else { if (decryptInPlace) { @@ -691,7 +854,7 @@ class MeldEncrypt extends obsidian.Plugin { editor.replaceSelection(decryptedText); } else { - const decryptModal = new DecryptModal(this.app, '๐Ÿ”“', decryptedText, this.settings.showButton); + const decryptModal = new DecryptModal(this.plugin.app, '๐Ÿ”“', decryptedText, this.featureSettings.showCopyButton); decryptModal.onClose = () => { editor.focus(); if (decryptModal.decryptInPlace) { @@ -702,6 +865,7 @@ class MeldEncrypt extends obsidian.Plugin { decryptModal.open(); } } + return true; }); } parseDecryptableContent(text) { @@ -719,8 +883,7 @@ class MeldEncrypt extends obsidian.Plugin { return null; // invalid format } // check if there is a hint - //console.table(content); - if (content.substr(0, _HINT.length) == _HINT) { + if (content.substring(0, _HINT.length) == _HINT) { const endHintMarker = content.indexOf(_HINT, _HINT.length); if (endHintMarker < 0) { return null; // invalid format @@ -731,7 +894,6 @@ class MeldEncrypt extends obsidian.Plugin { else { result.base64CipherText = content; } - //console.table(result); return result; } removeMarkers(text) { @@ -760,5 +922,588 @@ class Encryptable { class Decryptable { } +var EncryptedFileContentViewStateEnum; +(function (EncryptedFileContentViewStateEnum) { + EncryptedFileContentViewStateEnum[EncryptedFileContentViewStateEnum["init"] = 0] = "init"; + EncryptedFileContentViewStateEnum[EncryptedFileContentViewStateEnum["decryptNote"] = 1] = "decryptNote"; + EncryptedFileContentViewStateEnum[EncryptedFileContentViewStateEnum["editNote"] = 2] = "editNote"; + EncryptedFileContentViewStateEnum[EncryptedFileContentViewStateEnum["changePassword"] = 3] = "changePassword"; + EncryptedFileContentViewStateEnum[EncryptedFileContentViewStateEnum["newNote"] = 4] = "newNote"; +})(EncryptedFileContentViewStateEnum || (EncryptedFileContentViewStateEnum = {})); +const VIEW_TYPE_ENCRYPTED_FILE_CONTENT = "meld-encrypted-file-content-view"; +class EncryptedFileContentView extends obsidian.TextFileView { + constructor(leaf) { + super(leaf); + // State + this.currentView = EncryptedFileContentViewStateEnum.init; + this.encryptionPassword = ''; + this.hint = ''; + this.currentEditorText = ''; + //console.debug('EncryptedFileContentView.constructor', {leaf}); + 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(EncryptedFileContentViewStateEnum.decryptNote); + } + actionChangePassword() { + this.refreshView(EncryptedFileContentViewStateEnum.changePassword); + } + onPaneMenu(menu, source) { + //console.debug( {menu, source, 'view': this.currentView}); + if (source == 'tab-header' && this.currentView == EncryptedFileContentViewStateEnum.editNote) { + menu.addItem(m => { + m + .setSection('action') + .setIcon('lock') + .setTitle('Lock') + .onClick(() => this.actionLockFile()); + }); + menu.addItem(m => { + m + .setSection('action') + .setIcon('key') + .setTitle('Change Password') + .onClick(() => this.actionChangePassword()); + }); + } + super.onPaneMenu(menu, source); + } + createTitle(title) { + return this.contentEl.createDiv({ + text: `๐Ÿ” ${title} ๐Ÿ”`, + attr: { + style: 'margin-bottom:2em;' + } + }); + } + validatePassword(pw) { + if (pw.length == 0) { + return 'Password is too short'; + } + return ''; + } + validateConfirm(pw, cpw) { + const passwordMatch = pw === cpw; + return passwordMatch ? '' : 'Password doesn\'t match'; + } + createNewNoteView() { + //console.debug('createDecryptNoteView', { "hint": this.hint} ); + const container = this.createInputContainer(); + new obsidian.Setting(container) + .setDesc('Please provide a password and hint to start editing this note.'); + const submit = (password, confirm, hint) => __awaiter(this, void 0, void 0, function* () { + var validPw = this.validatePassword(password); + var validCpw = this.validateConfirm(password, confirm); + sPassword.setDesc(validPw); + sConfirm.setDesc(validCpw); + if (validPw.length === 0 && validCpw.length === 0) { + //set password and hint and open note + this.encryptionPassword = password; + this.hint = hint; + this.currentEditorText = this.file.basename; + yield this.encodeAndSave(); + SessionPasswordService.put({ password: password, hint: hint }, this.file); + this.refreshView(EncryptedFileContentViewStateEnum.editNote); + } + }); + const bestGuessPassAndHint = SessionPasswordService.getBestGuess(this.file); + let password = bestGuessPassAndHint.password; + let confirm = ''; + let hint = bestGuessPassAndHint.hint; + const sPassword = UiHelper.buildPasswordSetting({ + container, + name: 'Password:', + autoFocus: true, + initialValue: password, + onChangeCallback: (value) => { + password = value; + sPassword.setDesc(this.validatePassword(password)); + sConfirm.setDesc(this.validateConfirm(password, confirm)); + }, + onEnterCallback: (value) => { + password = value; + if (password.length > 0) { + sConfirm.controlEl.querySelector('input').focus(); + } + } + }); + const sConfirm = UiHelper.buildPasswordSetting({ + container, + name: 'Confirm:', + autoFocus: false, + onChangeCallback: (value) => { + confirm = value; + sPassword.setDesc(this.validatePassword(password)); + sConfirm.setDesc(this.validateConfirm(password, confirm)); + }, + onEnterCallback: (value) => { + confirm = value; + const passwordMatch = password === confirm; + if (passwordMatch) { + sHint.controlEl.querySelector('input').focus(); + } + } + }); + const sHint = new obsidian.Setting(container) + .setName("Hint:") + .addText((tc) => { + tc.setValue(hint); + tc.onChange(v => { + hint = v; + }); + }); + sHint.controlEl.on('keydown', '*', (ev) => { + if (ev.key === 'Enter') { + ev.preventDefault(); + submit(password, confirm, hint); + } + }); + new obsidian.Setting(container) + .addButton(bc => { + bc + .setCta() + .setIcon('go-to-file') + .setTooltip('Edit') + .onClick((ev) => submit(password, confirm, hint)); + }); + return container; + } + createDecryptNoteView() { + const container = this.createInputContainer(); + new obsidian.Setting(container) + .setDesc('Please provide a password to unlock this note.'); + const bestGuessPassAndHint = SessionPasswordService.getBestGuess(this.file); + this.encryptionPassword = bestGuessPassAndHint.password; + UiHelper.buildPasswordSetting({ + container, + name: 'Password:', + initialValue: this.encryptionPassword, + autoFocus: true, + placeholder: this.formatHint(this.hint), + onChangeCallback: (value) => { + this.encryptionPassword = value; + }, + onEnterCallback: () => __awaiter(this, void 0, void 0, function* () { return yield this.handleDecryptButtonClick(); }) + }); + new obsidian.Setting(container) + .addButton(bc => { + bc + .setCta() + .setIcon('checkmark') + .setTooltip('Unlock & Edit') + .onClick((evt) => this.handleDecryptButtonClick()); + }); + return container; + } + encodeAndSave() { + return __awaiter(this, void 0, void 0, function* () { + try { + //console.debug('encodeAndSave'); + var fileData = yield FileDataHelper.encode(this.encryptionPassword, this.hint, this.currentEditorText); + this.data = JsonFileEncoding.encode(fileData); + this.requestSave(); + } + catch (e) { + console.error(e); + new obsidian.Notice(e, 10000); + } + }); + } + createEditorView() { + //const container = this.contentEl.createEl('textarea'); + const container = this.contentEl.createDiv(); + container.contentEditable = 'true'; + container.style.flexGrow = '1'; + container.style.alignSelf = 'stretch'; + //container.value = this.currentEditorText + container.innerText = this.currentEditorText; + container.focus(); + container.on('input', '*', (ev, target) => __awaiter(this, void 0, void 0, function* () { + //console.debug('editor input',{ev, target}); + //this.currentEditorText = container.value; + this.currentEditorText = container.innerText; + yield this.encodeAndSave(); + })); + return container; + } + createInputContainer() { + return this.contentEl.createDiv({ + 'attr': { + 'style': 'width:100%; max-width:400px;' + } + }); + } + createChangePasswordView() { + const container = this.createInputContainer(); + let newPassword = ''; + let confirm = ''; + let newHint = ''; + const submit = (newPassword, confirm, newHint) => __awaiter(this, void 0, void 0, function* () { + var validPw = this.validatePassword(newPassword); + var validCpw = this.validateConfirm(newPassword, confirm); + sNewPassword.setDesc(validPw); + sConfirm.setDesc(validCpw); + if (validPw.length === 0 && validCpw.length === 0) { + //set password and hint and open note + //console.debug('createChangePasswordView submit'); + this.encryptionPassword = newPassword; + this.hint = newHint; + this.encodeAndSave(); + this.refreshView(EncryptedFileContentViewStateEnum.editNote); + new obsidian.Notice('Password and Hint were changed'); + } + }); + const sNewPassword = UiHelper.buildPasswordSetting({ + container, + name: 'New Password:', + autoFocus: true, + onChangeCallback: (value) => { + newPassword = value; + sNewPassword.setDesc(this.validatePassword(newPassword)); + sConfirm.setDesc(this.validateConfirm(newPassword, confirm)); + }, + onEnterCallback: (value) => { + newPassword = value; + if (newPassword.length > 0) { + sConfirm.controlEl.querySelector('input').focus(); + } + } + }); + const sConfirm = UiHelper.buildPasswordSetting({ + container, + name: 'Confirm:', + onChangeCallback: (value) => { + confirm = value; + sNewPassword.setDesc(this.validatePassword(newPassword)); + sConfirm.setDesc(this.validateConfirm(newPassword, confirm)); + }, + onEnterCallback: (value) => { + confirm = value; + // validate confirm + const passwordMatch = newPassword === confirm; + if (passwordMatch) { + sHint.controlEl.querySelector('input').focus(); + } + } + }); + const sHint = new obsidian.Setting(container) + .setName("New Hint:") + .addText((tc) => { + tc.onChange(v => { + newHint = v; + }); + }); + sHint.controlEl.on('keydown', '*', (ev) => { + if (ev.key === 'Enter') { + ev.preventDefault(); + submit(newPassword, confirm, newHint); + } + }); + new obsidian.Setting(container) + .addButton(bc => { + bc + .removeCta() + .setIcon('cross') + //.setButtonText('Cancel') + .setTooltip('Cancel') + .onClick(() => { + this.refreshView(EncryptedFileContentViewStateEnum.editNote); + }); + }).addButton(bc => { + bc + .setCta() + .setIcon('checkmark') + .setTooltip('Change Password') + //.setButtonText('Change Password') + .setWarning() + .onClick((ev) => { + submit(newPassword, confirm, newHint); + }); + }); + return container; + } + formatHint(hint) { + if (hint.length > 0) { + return `Hint: ${hint}`; + } + else { + return ''; + } + } + refreshView(newView) { + //console.debug('refreshView',{'currentView':this.currentView, newView}); + this.elActionIconLockNote.hide(); + this.elActionChangePassword.hide(); + // clear view + this.contentEl.empty(); + this.currentView = newView; + switch (this.currentView) { + case EncryptedFileContentViewStateEnum.newNote: + this.createTitle('This note will be encrypted'); + this.createNewNoteView(); + break; + case EncryptedFileContentViewStateEnum.decryptNote: + this.createTitle('This note is encrypted'); + this.createDecryptNoteView(); + break; + case EncryptedFileContentViewStateEnum.editNote: + this.elActionIconLockNote.show(); + this.elActionChangePassword.show(); + this.createTitle('This note is encrypted'); + this.createEditorView(); + break; + case EncryptedFileContentViewStateEnum.changePassword: + this.createTitle('Change encrypted note password'); + this.createChangePasswordView(); + break; + } + } + handleDecryptButtonClick() { + return __awaiter(this, void 0, void 0, function* () { + var fileData = JsonFileEncoding.decode(this.data); + //console.debug('Decrypt button', fileData); + const decryptedText = yield FileDataHelper.decrypt(fileData, this.encryptionPassword); + if (decryptedText === null) { + new obsidian.Notice('Decryption failed'); + } + else { + SessionPasswordService.put({ password: this.encryptionPassword, hint: this.hint }, this.file); + this.currentEditorText = decryptedText; + this.refreshView(EncryptedFileContentViewStateEnum.editNote); + } + }); + } + // important + canAcceptExtension(extension) { + //console.debug('EncryptedFileContentView.canAcceptExtension', {extension}); + return extension == 'encrypted'; + } + // important + getViewType() { + return VIEW_TYPE_ENCRYPTED_FILE_CONTENT; + } + // the data to show on the view + setViewData(data, clear) { + // console.debug('EncryptedFileContentView.setViewData', { + // data, + // clear, + // 'pass':this.encryptionPassword, + // //'mode':this.getMode(), + // //'mode-data':this.currentMode.get(), + // //'preview-mode-data':this.previewMode.get() + // }); + if (clear) { + var newView; + if (data === '') { + // blank new file + newView = EncryptedFileContentViewStateEnum.newNote; + } + else { + newView = EncryptedFileContentViewStateEnum.decryptNote; + } + // new file, we don't know what the password is yet + this.encryptionPassword = ''; + // json decode file data to get the Hint + var fileData = JsonFileEncoding.decode(this.data); + this.hint = fileData.hint; + this.refreshView(newView); + } + else { + this.leaf.detach(); + new obsidian.Notice('Multiple views of the same encrypted note isn\'t supported'); + } + } + // the data to save to disk + getViewData() { + // console.debug('EncryptedFileContentView.getViewData', { + // 'this':this, + // 'data':this.data, + // }); + return this.data; + } + clear() { + //console.debug('EncryptedFileContentView.clear'); + } +} +class FileData { + constructor(hint, encodedData) { + this.version = "1.0"; + this.hint = hint; + this.encodedData = encodedData; + } +} +class FileDataHelper { + static encode(pass, hint, text) { + return __awaiter(this, void 0, void 0, function* () { + const crypto = new CryptoHelper(); + const encryptedData = yield crypto.encryptToBase64(text, pass); + return new FileData(hint, encryptedData); + }); + } + static decrypt(data, pass) { + return __awaiter(this, void 0, void 0, function* () { + if (data.encodedData == '') { + return ''; + } + const crypto = new CryptoHelper(); + return yield crypto.decryptFromBase64(data.encodedData, pass); + }); + } +} +class JsonFileEncoding { + static encode(data) { + return JSON.stringify(data, null, 2); + } + static decode(encodedText) { + //console.debug('JsonFileEncoding.decode',{encodedText}); + if (encodedText === '') { + return new FileData("", ""); + } + return JSON.parse(encodedText); + } +} + +class FeatureWholeNoteEncrypt { + onload(plugin, settings) { + return __awaiter(this, void 0, void 0, function* () { + this.plugin = plugin; + this.settings = settings.featureWholeNoteEncrypt; + this.updateUiForSettings(); + this.plugin.registerView(VIEW_TYPE_ENCRYPTED_FILE_CONTENT, (leaf) => new EncryptedFileContentView(leaf)); + this.plugin.registerExtensions(['encrypted'], VIEW_TYPE_ENCRYPTED_FILE_CONTENT); + this.plugin.addCommand({ + id: 'meld-encrypt-create-new-note', + name: 'Create new encrypted note', + icon: 'lock', + checkCallback: (checking) => this.processCreateNewEncryptedNoteCommand(checking) + }); + }); + } + onunload() { + this.plugin.app.workspace.detachLeavesOfType(VIEW_TYPE_ENCRYPTED_FILE_CONTENT); + } + processCreateNewEncryptedNoteCommand(checking) { + //console.debug('processCreateNewEncryptedNoteCommand', {checking}); + try { + if (checking || UiHelper.isSettingsModalOpen()) { + return true; + } + let newFilename = obsidian.moment().format('[Untitled] YYYYMMDD hhmmss[.encrypted]'); + let newFileFolder; + const activeFile = this.plugin.app.workspace.getActiveFile(); + if (activeFile != null) { + newFileFolder = this.plugin.app.fileManager.getNewFileParent(activeFile.path); + } + else { + newFileFolder = this.plugin.app.fileManager.getNewFileParent(''); + } + const newFilepath = obsidian.normalizePath(newFileFolder.path + "/" + newFilename); + //console.debug('processCreateNewEncryptedNoteCommand', {newFilepath}); + this.plugin.app.vault.create(newFilepath, '').then(f => { + const leaf = this.plugin.app.workspace.getLeaf(false); + leaf.openFile(f); + }).catch(reason => { + new obsidian.Notice(reason, 10000); + }); + return true; + } + catch (e) { + console.error(e); + new obsidian.Notice(e, 10000); + } + } + buildSettingsUi(containerEl, saveSettingCallback) { + new obsidian.Setting(containerEl) + .setHeading() + .setName('Whole Note Encryption Settings'); + new obsidian.Setting(containerEl) + .setName('Add ribbon icon to create note') + .setDesc('Adds a ribbon icon to the left bar to create an encrypted note.') + .addToggle(toggle => { + toggle + .setValue(this.settings.addRibbonIconToCreateNote) + .onChange((value) => __awaiter(this, void 0, void 0, function* () { + this.settings.addRibbonIconToCreateNote = value; + yield saveSettingCallback(); + this.updateUiForSettings(); + })); + }); + } + updateUiForSettings() { + if (this.settings.addRibbonIconToCreateNote) { + // turn on ribbon icon + if (this.ribbonIconCreateNewNote == null) { + this.ribbonIconCreateNewNote = this.plugin.addRibbonIcon('lock', 'Create new encrypted note', (ev) => { + this.processCreateNewEncryptedNoteCommand(false); + }); + } + } + else { + // turn off ribbon icon + if (this.ribbonIconCreateNewNote != null) { + this.ribbonIconCreateNewNote.remove(); + this.ribbonIconCreateNewNote = null; + } + } + } +} + +class MeldEncrypt extends obsidian.Plugin { + constructor() { + super(...arguments); + this.enabledFeatures = []; + } + onload() { + return __awaiter(this, void 0, void 0, function* () { + // Settings + yield this.loadSettings(); + this.enabledFeatures.push(new FeatureWholeNoteEncrypt(), new FeatureInplaceEncrypt()); + this.addSettingTab(new MeldEncryptSettingsTab(this.app, this, this.settings, this.enabledFeatures)); + // End Settings + // load features + this.enabledFeatures.forEach((f) => __awaiter(this, void 0, void 0, function* () { + yield f.onload(this, this.settings); + })); + }); + } + onunload() { + this.enabledFeatures.forEach((f) => __awaiter(this, void 0, void 0, function* () { + f.onunload(); + })); + } + loadSettings() { + return __awaiter(this, void 0, void 0, function* () { + const DEFAULT_SETTINGS = { + confirmPassword: true, + rememberPassword: true, + rememberPasswordTimeout: 30, + featureWholeNoteEncrypt: { + addRibbonIconToCreateNote: true, + }, + featureInplaceEncrypt: { + expandToWholeLines: false, + showCopyButton: true, + } + }; + this.settings = Object.assign(DEFAULT_SETTINGS, yield this.loadData()); + // apply settings + SessionPasswordService.setActive(this.settings.rememberPassword); + SessionPasswordService.setAutoExpire(this.settings.rememberPasswordTimeout == 0 + ? null + : this.settings.rememberPasswordTimeout); + }); + } + saveSettings() { + return __awaiter(this, void 0, void 0, function* () { + yield this.saveData(this.settings); + }); + } +} + module.exports = MeldEncrypt; -//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWFpbi5qcyIsInNvdXJjZXMiOlsiLi4vbm9kZV9tb2R1bGVzL3RzbGliL3RzbGliLmVzNi5qcyIsIi4uL3NyYy9EZWNyeXB0TW9kYWwudHMiLCIuLi9zcmMvUGFzc3dvcmRNb2RhbC50cyIsIi4uL3NyYy9DcnlwdG9IZWxwZXIudHMiLCIuLi9zcmMvTWVsZEVuY3J5cHRTZXR0aW5nc1RhYi50cyIsIi4uL3NyYy9tYWluLnRzIl0sInNvdXJjZXNDb250ZW50IjpbIi8qISAqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKlxyXG5Db3B5cmlnaHQgKGMpIE1pY3Jvc29mdCBDb3Jwb3JhdGlvbi5cclxuXHJcblBlcm1pc3Npb24gdG8gdXNlLCBjb3B5LCBtb2RpZnksIGFuZC9vciBkaXN0cmlidXRlIHRoaXMgc29mdHdhcmUgZm9yIGFueVxyXG5wdXJwb3NlIHdpdGggb3Igd2l0aG91dCBmZWUgaXMgaGVyZWJ5IGdyYW50ZWQuXHJcblxyXG5USEUgU09GVFdBUkUgSVMgUFJPVklERUQgXCJBUyBJU1wiIEFORCBUSEUgQVVUSE9SIERJU0NMQUlNUyBBTEwgV0FSUkFOVElFUyBXSVRIXHJcblJFR0FSRCBUTyBUSElTIFNPRlRXQVJFIElOQ0xVRElORyBBTEwgSU1QTElFRCBXQVJSQU5USUVTIE9GIE1FUkNIQU5UQUJJTElUWVxyXG5BTkQgRklUTkVTUy4gSU4gTk8gRVZFTlQgU0hBTEwgVEhFIEFVVEhPUiBCRSBMSUFCTEUgRk9SIEFOWSBTU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ZHkgZXhlY3V0aW5nLlwiKTtcclxuICAgICAgICB3aGlsZSAoXykgdHJ5IHtcclxuICAgICAgICAgICAgaWYgKGYgPSAxLCB5ICYmICh0ID0gb3BbMF0gJiAyID8geVtcInJldHVyblwiXSA6IG9wWzBdID8geVtcInRocm93XCJdIHx8ICgodCA9IHlbXCJyZXR1cm5cIl0pICYmIHQuY2FsbCh5KSwgMCkgOiB5Lm5leHQpICYmICEodCA9IHQuY2FsbCh5LCBvcFsxXSkpLmRvbmUpIHJldHVybiB0O1xyXG4gICAgICAgICAgICBpZiAoeSA9IDAsIHQpIG9wID0gW29wWzBdICYgMiwgdC52YWx1ZV07XHJcbiAgICAgICAgICAgIHN3aXRjaCAob3BbMF0pIHtcclxuICAgICAgICAgICAgICAgIGNhc2UgMDogY2FzZSAxOiB0ID0gb3A7IGJyZWFrO1xyXG4gICAgICAgICAgICAgICAgY2FzZSA0OiBfLmxhYmVsKys7IHJldHVybiB7IHZhbHVlOiBvcFsxXSwgZG9uZTogZmFsc2UgfTtcclxuICAgICAgICAgICAgICAgIGNhc2UgNTogXy5sYWJlbCsrOyB5ID0gb3BbMV07IG9wID0gWzBdOyBjb250aW51ZTtcclxuICAgICAgICAgICAgICAgIGNhc2UgNzogb3AgPSBfLm9wcy5wb3AoKTsgXy50cnlzLnBvcCgpOyBjb250aW51ZTtcclxuICAgICAgICAgICAgICAgIGRlZmF1bHQ6XHJcbiAgICAgICAgICAgICAgICAgICAgaWYgKCEodCA9IF8udHJ5cywgdCA9IHQubGVuZ3RoID4gMCAmJiB0W3QubGVuZ3RoIC0gMV0pICYmIChvcFswXSA9PT0gNiB8fCBvcFswXSA9PT0gMikpIHsgXyA9IDA7IGNvbnRpbnVlOyB9XHJcbiAgICAgICAgICAgICAgICAgICAgaWYgKG9wWzBdID09PSAzICYmICghdCB8fCAob3BbMV0gPiB0WzBdICYmIG9wWzFdIDwgdFszXSkpKSB7IF8ubGFiZWwgPSBvcFsxXTsgYnJlYWs7IH1cclxuICA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Z24gfHwgZnVuY3Rpb24gX19hc3NpZ24odCkge1xyXG4gICAgICAgIGZvciAodmFyIHMsIGkgPSAxLCBuID0gYXJndW1lbnRzLmxlbmd0aDsgaSA8IG47IGkrKykge1xyXG4gICAgICAgICAgICBzID0gYXJndW1lbnRzW2ldO1xyXG4gICAgICAgICAgICBmb3IgKHZhciBwIGluIHMpIGlmIChPYmplY3QucHJvdG90eXBlLmhhc093blByb3BlcnR5LmNhbGwocywgcCkpIHRbcF0gPSBzW3BdO1xyXG4gICAgICAgIH1cclxuICAgICAgICByZXR1cm4gdDtcclxuICAgIH1cclxuICAgIHJldHVybiBfX2Fzc2lnbi5hcHBseSh0aGlzLCBhcmd1bWVudHMpO1xyXG59XHJcblxyXG5leHBvcnQgZnVuY3Rpb24gX19yZXN0KHMsIGUpIHtcclxuICAgIHZhciB0ID0ge307XHJcbiAgICBmb3IgKHZhciBwIGluIHMpIGlmIChPYmplY3QucHJvdG90eXBlLmhhc093blByb3BlcnR5LmNhbGwocywgcCkgJiYgZS5pbmRleE9mKHApIDwgMClcclxuICAgICAgICB0W3BdID0gc1twXTtcclxuICAgIGlmIChzICE9IG51bGwgJiYgdHlwZW9mIE9iamVjdC5nZXRPd25Qcm9wZXJ0eVN5bWJvbHMgPT09IFwiZnVuY3Rpb25cIilcclxuICAgICAgICBmb3IgKHZhciBpID0gMCwgcCA9IE9iamVjdC5nZXRPd25Qcm9wZXJ0eVN5bWJvbHMocyk7IGkgPCBwLmxlbmd0aDsgaSsrKSB7XHJcbiAgICAgICAgICAgIGlmIChlLmluZGV4T2YocFtpXSkgPCAwICYmIE9iamVjdC5wcm90b3R5cGUucHJvcGVydHlJc0VudW1lcmFibGUuY2FsbChzLCBwW2ldKSlcclxuICAgICAgICAgICAgICAgIHRbcFtpXV0gPSBzW3BbaV1dO1xyXG4gICAgICAgIH1cclxuICAgIHJldHVybiB0O1xyXG59XHJcblxyXG5leHBvcnQgZnVuY3Rpb24gX19kZWNvcmF0ZShkZWNvcmF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G9wOyBicmVhaztcclxuICAgICAgICAgICAgICAgIGNhc2UgNDogXy5sYWJlbCsrOyByZXR1cm4geyB2YWx1ZTogb3BbMV0sIGRvbmU6IGZhbHNlIH07XHJcbiAgICAgICAgICAgICAgICBjYXNlIDU6IF8ubGFiZWwrKzsgeSA9IG9wWzFdOyBvcCA9IFswXTsgY29udGludWU7XHJcbiAgICAgICAgICAgICAgICBjYXNlIDc6IG9wID0gXy5vcHMucG9wKCk7IF8udHJ5cy5wb3AoKTsgY29udGludWU7XHJcbiAgICAgICAgICAgICAgICBkZWZhdWx0OlxyXG4gICAgICAgICAgICAgICAgICAgIGlmICghKHQgPSBfLnRyeXMsIHQgPSB0Lmxlbmd0aCA+IDAgJiYgdFt0Lmxlbmd0aCAtIDFdKSAmJiAob3BbMF0gPT09IDYgfHwgb3BbMF0gPT09IDIpKSB7IF8gPSAwOyBjb250aW51ZTsgfVxyXG4gICAgICAgICAgICAgICAgICAgIGlmIChvcFswXSA9PT0gMyAmJiAoIXQgfHwgKG9wWzFdID4gdFswXSAmJiBvcFsxXSA8IHRbM10pKSkgeyBfLmxhYmVsID0gb3BbMV07IGJyZWFrOyB9XHJcbiAgICAgICAgICAgICAgICAgICAgaWYgKG9wWzBdID09PSA2ICYmIF8ubGFiZWwgPCB0WzFdKSB7IF8ubGFiZWwgPSB0WzFdOyB0ID0gb3A7IGJyZWFrOyB9XHJcbiAgICAgICAgICAgICAgICAgICAgaWYgKHQgJiYgXy5sYWJlbCA8IHRbMl0pIHsgXy5sYWJlbCA9IHRbMl07IF8ub3BzLnB1c2gob3ApOyBicmVhazsgfVxyXG4gICAgICAgICAgICAgICAgICAgIGlmICh0WzJdKSBfLm9wcy5wb3AoKTtcclxuICAgICAgICAgICAgICAgICAgICBfLnRyeXMucG9wKCk7IGNvbnRpbnVlO1xyXG4gICAgICAgICAgICB9XHJcbiAgICAgICAgICAgIG9wID0gYm9keS5jYWxsKHRoaXNBcmcsIF8pO1xyXG4gICAgICAgIH0gY2F0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x5IHtcclxuICAgICAgICB0cnkge1xyXG4gICAgICAgICAgICBpZiAociAmJiAhci5kb25lICYmIChtID0gaVtcInJldHVyblwiXSkpIG0uY2FsbChpKTtcclxuICAgICAgICB9XHJcbiAgICAgICAgZmluYWxseSB7IGlmIChlKSB0aHJvdyBlLmVycm9yOyB9XHJcbiAgICB9XHJcbiAgICByZXR1cm4gYXI7XHJcbn1cclxuXHJcbi8qKiBAZGVwcmVjYXRlZCAqL1xyXG5leHBvcnQgZnVuY3Rpb24gX19zcHJlYWQoKSB7XHJcbiAgICBmb3IgKHZhciBhciA9IFtdLCBpID0gMDsgaSA8IGFyZ3VtZW50cy5sZW5ndGg7IGkrKylcclxuICAgICAgICBhciA9IGFyLmNvbmNhdChfX3JlYWQoYXJndW1lbnRzW2ldKSk7XHJcbiAgICByZXR1cm4gYXI7XHJcbn1cclxuXHJcbi8qKiBAZGVwcmVjYXRlZCAqL1xyXG5leHBvcnQgZnVuY3Rpb24gX19zcHJlYWRBcnJheXMoKSB7XHJcbiAgICBmb3IgKHZhciBzID0gMCwgaSA9IDAsIGlsID0gYXJndW1lbnRzLmxlbmd0aDsgaSA8IGlsOyBpKyspIHMgKz0gYXJndW1lbnRzW2ldLmxlbmd0aDtcclxuICAgIGZvciAodmFyIHIgPSBBcnJheShzKSwgayA9IDAsIGkgPSAwOyBpIDwgaWw7IGkrKylcclxuICAgICAgICBmb3IgKHZhciBhID0gYXJndW1lbnRzW2ldLCBqID0gMCwgamwgPSBhLmxlbmd0aDsgaiA8IGpsOyBqKyssIGsrKylcclxuICAgICAgICAgICAgcltrXSA9IGFbal07XHJcbiAgICByZXR1cm4gcjtcclxufVxyXG5cclxuZXhwb3J0IGZ1bmN0aW9uIF9fc3ByZWFkQXJyYXkodG8sIGZyb20sIHBhY2spIHtcclxuICAgIGlmIChwYWNrIHx8IGFyZ3VtZW50cy5sZW5ndGggPT09IDIpIGZvciAodmFyIGkgPSAwLCBsID0gZnJvbS5sZW5ndGgsIGFyOyBpI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QXVCLEVBQUU7QUFDeEIsb0JBQUEseUJBQXlCLEVBQUUsSUFBSTtBQUMvQixpQkFBQTtBQUVELGdCQUFBLHFCQUFxQixFQUFDO0FBQ3JCLG9CQUFBLGtCQUFrQixFQUFFLEtBQUs7QUFDekIsb0JBQUEsY0FBYyxFQUFFLElBQUk7QUFDcEIsaUJBQUE7YUFDRCxDQUFBO0FBRUQsWUFBQSxJQUFJLENBQUMsUUFBUSxHQUFHLE1BQU0sQ0FBQyxNQUFNLENBQzVCLGdCQUFnQixFQUNoQixNQUFNLElBQUksQ0FBQyxRQUFRLEVBQUUsQ0FDckIsQ0FBQzs7WUFHRixzQkFBc0IsQ0FBQyxTQUFTLENBQUUsSUFBSSxDQUFDLFFBQVEsQ0FBQyxnQkFBZ0IsQ0FBRSxDQUFDO1lBQ25FLHNCQUFzQixDQUFDLGFBQWEsQ0FDbkMsSUFBSSxDQUFDLFFBQVEsQ0FBQyx1QkFBdUIsSUFBSSxDQUFDO0FBQzFDLGtCQUFFLElBQUk7QUFDTixrQkFBRSxJQUFJLENBQUMsUUFBUSxDQUFDLHVCQUF1QixDQUN2QyxDQUFDO1NBQ0YsQ0FBQSxDQUFBO0FBQUEsS0FBQTtJQUVLLFlBQVksR0FBQTs7WUFDakIsTUFBTSxJQUFJLENBQUMsUUFBUSxDQUFDLElBQUksQ0FBQyxRQUFRLENBQUMsQ0FBQztTQUNuQyxDQUFBLENBQUE7QUFBQSxLQUFBO0FBRUQ7Ozs7In0= diff --git a/.obsidian/plugins/meld-encrypt/manifest.json b/.obsidian/plugins/meld-encrypt/manifest.json index 58a8ba9e..a391f9db 100644 --- a/.obsidian/plugins/meld-encrypt/manifest.json +++ b/.obsidian/plugins/meld-encrypt/manifest.json @@ -1,9 +1,9 @@ { "id": "meld-encrypt", "name": "Meld Encrypt", - "version": "1.6.2", + "version": "2.0.3", "minAppVersion": "0.12.15", - "description": "Hide secrets in your notes", + "description": "Hide secrets in your valut", "author": "meld-cp", "authorUrl": "https://github.com/meld-cp/obsidian-encrypt", "isDesktopOnly": false diff --git a/.obsidian/plugins/meld-encrypt/styles.css b/.obsidian/plugins/meld-encrypt/styles.css index 9dba038d..e7d702ab 100644 --- a/.obsidian/plugins/meld-encrypt/styles.css +++ b/.obsidian/plugins/meld-encrypt/styles.css @@ -1,3 +1,5 @@ +/* DEPRECATED */ + .meld-e-row{ display: flex; margin-bottom: 1em; diff --git a/.obsidian/plugins/multi-column-markdown/main.js b/.obsidian/plugins/multi-column-markdown/main.js index 14f3e98b..42d8888c 100644 --- a/.obsidian/plugins/multi-column-markdown/main.js +++ b/.obsidian/plugins/multi-column-markdown/main.js @@ -84,6 +84,12 @@ var ContentOverflowType; ContentOverflowType[ContentOverflowType["scroll"] = 0] = "scroll"; ContentOverflowType[ContentOverflowType["hidden"] = 1] = "hidden"; })(ContentOverflowType || (ContentOverflowType = {})); +var AlignmentType; +(function (AlignmentType) { + AlignmentType[AlignmentType["left"] = 0] = "left"; + AlignmentType[AlignmentType["center"] = 1] = "center"; + AlignmentType[AlignmentType["right"] = 2] = "right"; +})(AlignmentType || (AlignmentType = {})); function getDefaultMultiColumnSettings() { return { numberOfColumns: 2, @@ -94,7 +100,8 @@ function getDefaultMultiColumnSettings() { columnSize: SingleColumnSize.medium, columnPosition: ColumnLayout.standard, columnSpacing: "", - contentOverflow: ContentOverflowType.scroll + contentOverflow: ContentOverflowType.scroll, + alignment: AlignmentType.left }; } @@ -176,6 +183,16 @@ const CONTENT_OVERFLOW_REGEX_ARR = [ ].map((value) => { return new RegExp(convertStringToSettingsRegex(value), "i"); }); +const ALIGNMENT_REGEX_ARR = [ + "alignment", + "align", + "content align", + "align content", + "text align", + "align text" +].map((value) => { + return new RegExp(convertStringToSettingsRegex(value), "i"); +}); /** * This function searches the settings string through each regex option. If one of the regex * values match, it returns the first group found by the regex. This is depended on proper @@ -293,6 +310,18 @@ function parseColumnSettings(settingsStr) { } parsedSettings.contentOverflow = overflowType; } + settingsData = getSettingsDataFromKeys(settingsLine, ALIGNMENT_REGEX_ARR); + if (settingsData !== null) { + let alignmentType = AlignmentType.left; + settingsData = settingsData.toLowerCase().trim(); + if (settingsData === "center") { + alignmentType = AlignmentType.center; + } + if (settingsData === "right") { + alignmentType = AlignmentType.right; + } + parsedSettings.alignment = alignmentType; + } } return parsedSettings; } @@ -567,32 +596,27 @@ function findSettingsCodeblock(text) { } return { found, startPosition, endPosition, matchLength }; } -const START_CODEBLOCK_REGEX_ARR = [ - "```multi-column-start", - "```start-multi-column" -].map((val) => { - return new RegExp(val); -}); +const CODEBLOCK_START_REGEX_STR = [ + "multi-column-start", + "start-multi-column" +].reduce((prev, cur) => { + if (prev === "") { + return cur; + } + return `${prev}|${cur}`; +}, ""); +const START_CODEBLOCK_REGEX = new RegExp(`\`\`\`(:?${CODEBLOCK_START_REGEX_STR})(.*?)\`\`\``, "ms"); function findStartCodeblock(text) { let found = false; let startPosition = -1; let endPosition = -1; let matchLength = 0; - for (let i = 0; i < START_CODEBLOCK_REGEX_ARR.length; i++) { - let regexData = START_CODEBLOCK_REGEX_ARR[i].exec(text); - if (regexData !== null && regexData.length > 0) { - found = true; - startPosition = regexData.index; - matchLength = regexData[0].length; - endPosition = startPosition + matchLength; - let remainingText = text.slice(endPosition); - regexData = CODEBLOCK_END_REGEX.exec(remainingText); - if (regexData !== null && regexData.length > 0) { - found = true; - endPosition += regexData.index + regexData[0].length; - } - break; - } + let regexData = START_CODEBLOCK_REGEX.exec(text); + if (regexData !== null && regexData.length > 0) { + found = true; + startPosition = regexData.index; + matchLength = regexData[0].length; + endPosition = startPosition + matchLength; } return { found, startPosition, endPosition, matchLength }; } @@ -931,7 +955,8 @@ function getElementRenderType(element) { * updated but should not always update the "dual render" aspect, so we add * a special case for that plugin and maybe others in the future. */ - if (hasDataview(element) === true) { + if (hasDataview(element) === true || + isInternalEmbed(element)) { return ElementRenderType.specialSingleElementRender; } /** @@ -1041,6 +1066,10 @@ function hasDataviewJS(element) { */ return canvas !== null && isDataviewJS; } +function isInternalEmbed(element) { + let isEmbed = element.getElementsByClassName("internal-embed").length !== 0; + return isEmbed; +} function getHeadingCollapseElement(element) { if (element === null) { return null; @@ -1184,6 +1213,9 @@ var MultiColumnLayoutCSS; MultiColumnLayoutCSS["ClonedElementType"] = "mcm-cloned-column-element"; MultiColumnLayoutCSS["ContentOverflowAutoScroll"] = "mcm-content-overflow-auto-scroll"; MultiColumnLayoutCSS["ContentOverflowHidden"] = "mcm-content-overflow-hidden"; + MultiColumnLayoutCSS["AlignmentLeft"] = "mcm-content-alignment-left"; + MultiColumnLayoutCSS["AlignmentCenter"] = "mcm-content-alignment-center"; + MultiColumnLayoutCSS["AlignmentRight"] = "mcm-content-alignment-right"; // ------------------------------------------------------ // MultiColumnLayoutCSS["SingleColumnSmall"] = "mcm-single-column-small"; MultiColumnLayoutCSS["SingleColumnMed"] = "mcm-single-column-medium"; @@ -1803,6 +1835,15 @@ class StandardMultiColumnRegionManager extends RegionManager { else { element.addClass(MultiColumnLayoutCSS.ContentOverflowAutoScroll); } + if (settings.alignment === AlignmentType.center) { + element.addClass(MultiColumnLayoutCSS.AlignmentCenter); + } + else if (settings.alignment === AlignmentType.right) { + element.addClass(MultiColumnLayoutCSS.AlignmentRight); + } + else { + element.addClass(MultiColumnLayoutCSS.AlignmentLeft); + } regionElements[i].elementContainer = element; // Otherwise we just make a copy of the original element to display. let clonedElement = regionElements[i].originalElement.cloneNode(true); @@ -2453,6 +2494,7 @@ class MultiColumnMarkdown_LivePreview_Widget extends view.WidgetType { leaf.view.containerEl.removeChild(el); } } + fixExternalLinks(el); return el; } } @@ -2482,35 +2524,81 @@ class MultiColumnMarkdown_DefinedSettings_LivePreview_Widget extends view.Widget function fixImageRender(el) { let fixedEl = el; let items = el.getElementsByClassName("internal-embed"); - if (items.length === 1) { - let embed = items[0]; - let alt = embed.getAttr("alt"); - let src = embed.getAttr("src"); - let aTFiles = app.vault.getAllLoadedFiles(); - let resourcePath = ""; - for (let i = 0; i < aTFiles.length; i++) { - let abstractFile = aTFiles[i]; - if (abstractFile instanceof obsidian.TFile === false) { - continue; - } - let file = abstractFile; - if (file.name === src && hasImageExtension(file.extension) === true) { - resourcePath = app.vault.getResourcePath(file); - break; - } + if (items.length !== 1) { + return el; + } + let embed = items[0]; + let customWidth = embed.attributes.getNamedItem("width"); + let alt = embed.getAttr("alt"); + let src = embed.getAttr("src"); + // If the link source is not an image we dont want to make any adjustments. + if (filenameIsImage(src) === false) { + return el; + } + // Try to find the image file in the vault. This is very inefficient but works for now. + let aTFiles = app.vault.getAllLoadedFiles(); + let resourcePath = ""; + for (let i = 0; i < aTFiles.length; i++) { + let abstractFile = aTFiles[i]; + if (abstractFile instanceof obsidian.TFile === false) { + continue; + } + let file = abstractFile; + if (file.name === src && isImageExtension(file.extension) === true) { + resourcePath = app.vault.getResourcePath(file); + break; } - if (alt === src && resourcePath !== "") { - fixedEl = createDiv({ - cls: "internal-embed image-embed is-loaded", - }); - fixedEl.setAttr("alt", alt); - let image = fixedEl.createEl("img"); - image.setAttr("src", resourcePath); + } + // If we found the resource path then we update the element to be a proper image render. + if (resourcePath !== "") { + fixedEl = createDiv({ + cls: "internal-embed image-embed is-loaded", + }); + fixedEl.setAttr("alt", alt); + let image = fixedEl.createEl("img"); + image.setAttr("src", resourcePath); + if (customWidth !== null) { + image.setAttr("width", customWidth.value); } } return fixedEl; } -function hasImageExtension(extension) { +function fixExternalLinks(el) { + let items = el.getElementsByClassName("external-link"); + for (let linkEl of Array.from(items)) { + let link = linkEl; + if (link === undefined || + link === null) { + continue; + } + // Remove the href from the link and setup an event listener to open the link in the default browser. + let href = link.getAttr("href"); + link.removeAttribute("href"); + link.addEventListener("click", (ev) => { + window.open(href); + }); + } + items = el.getElementsByClassName("internal-link"); + for (let linkEl of Array.from(items)) { + let link = linkEl; + if (link === undefined || + link === null) { + continue; + } + // Removing the href from internal links is all that seems to be required to fix the onclick. + link.removeAttribute("href"); + } + return el; +} +function filenameIsImage(filename) { + let parts = filename.split("."); + if (parts.length <= 1) { + return false; + } + let extension = parts.last(); + return isImageExtension(extension); +} +function isImageExtension(extension) { extension = extension.toLowerCase(); switch (extension) { case "png": @@ -2546,7 +2634,8 @@ const multiColumnMarkdown_StateField = state.StateField.define({ if (generated === true) { return; } - if (isEditorInLivePreview(transaction.state) === true) { + // Check if view is in live preview state. + if (transaction.state.field(obsidian.editorLivePreviewField) === false) { // console.debug("User disabled live preview.") return; } @@ -2712,15 +2801,6 @@ const multiColumnMarkdown_StateField = state.StateField.define({ return view.EditorView.decorations.from(field); }, }); -function isEditorInLivePreview(state) { - let mdView = state.field(obsidian.editorViewField); - let viewState = mdView.leaf.getViewState(); - let stateData = null; - if (viewState.state) { - stateData = viewState.state; - } - return (stateData && stateData.mode == "source" && stateData.source == true); -} /* * File: multi-column-markdown/src/main.ts @@ -2729,6 +2809,9 @@ function isEditorInLivePreview(state) { * * Copyright (c) 2022 Cameron Robinson */ +const DEFAULT_SETTINGS = { + renderOnMobile: true +}; const CODEBLOCK_START_STRS = [ "start-multi-column", "multi-column-start" @@ -2736,11 +2819,13 @@ const CODEBLOCK_START_STRS = [ class MultiColumnMarkdown extends obsidian.Plugin { constructor() { super(...arguments); + this.settings = DEFAULT_SETTINGS; this.globalManager = new GlobalDOMManager(); } onload() { return __awaiter(this, void 0, void 0, function* () { console.log("Loading multi-column markdown"); + yield this.loadSettings(); this.globalManager = new GlobalDOMManager(); this.registerEditorExtension(multiColumnMarkdown_StateField); for (let i = 0; i < CODEBLOCK_START_STRS.length; i++) { @@ -2748,6 +2833,20 @@ class MultiColumnMarkdown extends obsidian.Plugin { this.setupMarkdownCodeblockPostProcessor(startStr); } this.setupMarkdownPostProcessor(); + this.addCommand({ + id: `toggle-mobile-rendering-mcm`, + name: `Toggle Mobile Rendering - Multi-Column Markdown`, + callback: () => __awaiter(this, void 0, void 0, function* () { + this.settings.renderOnMobile = !this.settings.renderOnMobile; + yield this.saveSettings(); + console.log("render on mobile:", this.settings.renderOnMobile); + let noticeString = `Toggled mobile rendering ${this.settings.renderOnMobile ? "on" : "off"}.`; + if (obsidian.Platform.isMobile === true) { + noticeString += ` Please reload any open files for change to take effect.`; + } + new obsidian.Notice(noticeString); + }) + }); //TODO: Set up this as a modal to set settings automatically this.addCommand({ id: `insert-multi-column-region`, @@ -2796,17 +2895,26 @@ ${editor.getDoc().getSelection()}`); let lineOffset = 0; let numCodeblocksUpdated = 0; while (startCodeblock.found === true) { - let startReplaceLines = (docText.slice(0, startCodeblock.startPosition).split("\n").length - 1) + lineOffset; // -1 to Zero index the replace line + // Get the text of the settings block so we can check if it contains an ID, + // also so we can get the length of the first line, used to calculate where to append a new ID if needed let settingsText = docText.slice(startCodeblock.startPosition, startCodeblock.endPosition); + let firstLineOfCodeblockLength = settingsText.split("\n")[0].length; + // We need the lines before the block to know where to start replacing text + // and the lines including the block to know where to set our offset to after this iteration. + let linesBefore = docText.slice(0, startCodeblock.startPosition); + let startReplacementLineIndex = (linesBefore.split("\n").length - 1) + lineOffset; + let linesOf = docText.slice(0, startCodeblock.endPosition); + let endReplacementLineIndex = (linesOf.split("\n").length - 1) + lineOffset; let settingsID = parseStartRegionCodeBlockID(settingsText); if (settingsID === "") { - let replacementText = editor.getRange({ line: startReplaceLines, ch: 0 }, { line: startReplaceLines, ch: startCodeblock.matchLength }) + `\nID: ID_${getUID(4)}`; - editor.replaceRange(replacementText, { line: startReplaceLines, ch: 0 }, { line: startReplaceLines, ch: startCodeblock.matchLength }); - startReplaceLines += 1; // we added a line to the doc so update our offset. + // copy the first line of the codeblock and append a new ID, then replace the first line of the block + let replacementText = editor.getRange({ line: startReplacementLineIndex, ch: 0 }, { line: startReplacementLineIndex, ch: firstLineOfCodeblockLength }) + `\nID: ID_${getUID(4)}`; + editor.replaceRange(replacementText, { line: startReplacementLineIndex, ch: 0 }, { line: startReplacementLineIndex, ch: firstLineOfCodeblockLength }); + endReplacementLineIndex += 1; numCodeblocksUpdated += 1; } - lineOffset = startReplaceLines; - docText = docText.slice(startCodeblock.startPosition + startCodeblock.matchLength); + lineOffset = endReplacementLineIndex; + docText = docText.slice(startCodeblock.endPosition); startCodeblock = findStartCodeblock(docText); } /** @@ -2863,6 +2971,10 @@ ${editor.getDoc().getSelection()}`); } setupMarkdownPostProcessor() { this.registerMarkdownPostProcessor((el, ctx) => __awaiter(this, void 0, void 0, function* () { + if (this.settings.renderOnMobile === false && + obsidian.Platform.isMobile === true) { + return; + } const sourcePath = ctx.sourcePath; let fileDOMManager = this.globalManager.getFileManager(sourcePath); if (fileDOMManager === null) { @@ -3112,6 +3224,9 @@ ${editor.getDoc().getSelection()}`); codeBlockData = findStartCodeblock(fileText); } } + else { + console.error(`Error getting file from source path: ${sourcePath}`); + } let inBlock = false; for (let i = 0; i < docChildren.length; i++) { let child = docChildren[i]; @@ -3121,6 +3236,7 @@ ${editor.getDoc().getSelection()}`); let regionKey = ""; let blockData = isStartTagWithID(child.textContent); if (blockData.isStartTag === true) { + // If an old-style start tag. foundBlockData = true; if (blockData.hasKey === true) { let foundKey = getStartTagKey(child.textContent); @@ -3196,6 +3312,10 @@ ${editor.getDoc().getSelection()}`); setupMarkdownCodeblockPostProcessor(startStr) { this.registerMarkdownCodeBlockProcessor(startStr, (source, el, ctx) => { var _a; + if (this.settings.renderOnMobile === false && + obsidian.Platform.isMobile === true) { + return; + } const sourcePath = ctx.sourcePath; // Set up our CSS so that the codeblock only renders this data in reading mode // source/live preview mode is handled by the CM6 implementation. @@ -3212,7 +3332,10 @@ ${editor.getDoc().getSelection()}`); continue; } if (getLeafSourceMode(fileLeaf) === "source") { - return; + // This was added when implementing live preview, but the reason it was originally added appears to no longer be an issue. + // Removing the return from here to fix bug where opening multiple copies of the document causes regions to not render. + console.debug("Leaf of file is in source mode. Should we be ignoring post processing here?"); + // return; } } if (this.globalManager === null || this.globalManager === undefined) { @@ -3298,6 +3421,16 @@ ${editor.getDoc().getSelection()}`); } }); } + loadSettings() { + return __awaiter(this, void 0, void 0, function* () { + this.settings = Object.assign({}, DEFAULT_SETTINGS, yield this.loadData()); + }); + } + saveSettings() { + return __awaiter(this, void 0, void 0, function* () { + yield this.saveData(this.settings); + }); + } } function renderMarkdownFromLines(mdLines, sourcePath) { /** @@ -3316,4 +3449,4 @@ function renderMarkdownFromLines(mdLines, sourcePath) { } module.exports = MultiColumnMarkdown; -//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWFpbi5qcyIsInNvdXJjZXMiOlsibm9kZV9tb2R1bGVzL3RzbGliL3RzbGliLmVzNi5qcyIsInNyYy9yZWdpb25TZXR0aW5ncy50cyIsInNyYy91dGlsaXRpZXMvc2V0dGluZ3NQYXJzZXIudHMiLCJzcmMvdXRpbGl0aWVzL3RleHRQYXJzZXIudHMiLCJzcmMvdXRpbGl0aWVzL3V0aWxzLnRzIiwic3JjL3V0aWxpdGllcy9lbGVtZW50UmVuZGVyVHlwZVBhcnNlci50cyIsInNyYy9kb21fbWFuYWdlci9kb21PYmplY3QudHMiLCJzcmMvdXRpbGl0aWVzL2Nzc0RlZmluaXRpb25zLnRzIiwic3JjL2RvbV9tYW5hZ2VyL3JlZ2lvbmFsX21hbmFnZXJzL3JlZ2lvbk1hbmFnZXIudHMiLCJzcmMvZG9tX21hbmFnZXIvcmVnaW9uYWxfbWFuYWdlcnMvc3RhbmRhcmRNdWx0aUNvbHVtblJlZ2lvbk1hbmFnZXIudHMiLCJzcmMvZG9tX21hbmFnZXIvcmVnaW9uYWxfbWFuYWdlcnMvc2luZ2xlQ29sdW1uUmVnaW9uTWFuYWdlci50cyIsInNyYy9kb21fbWFuYWdlci9yZWdpb25hbF9tYW5hZ2Vycy9hdXRvTGF5b3V0UmVnaW9uTWFuYWdlci50cyIsInNyYy9kb21fbWFuYWdlci9yZWdpb25hbF9tYW5hZ2Vycy9yZWdpb25NYW5hZ2VyQ29udGFpbmVyLnRzIiwic3JjL2RvbV9tYW5hZ2VyL2RvbU1hbmFnZXIudHMiLCJzcmMvbGl2ZV9wcmV2aWV3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LSA+IDApICYmICEociA9IGkubmV4dCgpKS5kb25lKSBhci5wdXNoKHIudmFsdWUpO1xyXG4gICAgfVxyXG4gICAgY2F0Y2ggKGVycm9yKSB7IGUgPSB7IGVycm9yOiBlcnJvciB9OyB9XHJcbiAgICBmaW5hbGx5IHtcclxuICAgICAgICB0cnkge1xyXG4gICAgICAgICAgICBpZiAociAmJiAhci5kb25lICYmIChtID0gaVtcInJldHVyblwiXSkpIG0uY2FsbChpKTtcclxuICAgICAgICB9XHJcbiAgICAgICAgZmluYWxseSB7IGlmIChlKSB0aHJvdyBlLmVycm9yOyB9XHJcbiAgICB9XHJcbiAgICByZXR1cm4gYXI7XHJcbn1cclxuXHJcbi8qKiBAZGVwcmVjYXRlZCAqL1xyXG5leHBvcnQgZnVuY3Rpb24gX19zcHJlYWQoKSB7XHJcbiAgICBmb3IgKHZhciBhciA9IFtdLCBpID0gMDsgaSA8IGFyZ3VtZW50cy5sZW5ndGg7IGkrKylcclxuICAgICAgICBhciA9IGFyLmNvbmNhdChfX3JlYWQoYXJndW1lbnRzW2ldKSk7XHJcbiAgICByZXR1cm4gYXI7XHJcbn1cclxuXHJcbi8qKiBAZGVwcmVjYXRlZCAqL1xyXG5leHBvcnQgZnVuY3Rpb24gX19zcHJlYWRBcnJheXMoKSB7XHJcbiAgICBmb3IgKHZhciBzID0gMCwgaSA9IDAsIGlsID0gYXJndW1lbnRzLmxlbmd0aDsgaSA8IGlsOyBpKyspIHMgKz0gYXJndW1lbnRzW2ldLmxlbmd0aDtcclxuICAgIGZvciAodmFyIHIgPSBBcnJheShzKSwgayA9IDAsIGkgPSAwOyBpIDwgaWw7IGkrKylcclxuICAgICAgICBmb3IgKHZhciBhID0gYXJndW1lbnRzW2ldLCBqID0gMCwgamwgPSBhLmxlbmd0aDsgaiA8IGpsOyBqKyssIGsrKylcclxuICAgICAgICAgICAgcltrXSA9IGFbal07XHJcbiAgICByZXR1cm4gcjtcclxufVxyXG5cclxuZXhwb3J0IGZ1bmN0aW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VtblNwYWNpbmc6IHN0cmluZyxcbiAgICBjb250ZW50T3ZlcmZsb3c6IENvbnRlbnRPdmVyZmxvd1R5cGVcbn1cblxuZXhwb3J0IGZ1bmN0aW9uIGdldERlZmF1bHRNdWx0aUNvbHVtblNldHRpbmdzKCk6IE11bHRpQ29sdW1uU2V0dGluZ3Mge1xuXG4gICAgcmV0dXJuIHtcbiAgICAgICAgbnVtYmVyT2ZDb2x1bW5zOiAyLFxuICAgICAgICBjb2x1bW5MYXlvdXQ6IENvbHVtbkxheW91dC5zdGFuZGFyZCxcbiAgICAgICAgZHJhd0JvcmRlcjogdHJ1ZSxcbiAgICAgICAgZHJhd1NoYWRvdzogdHJ1ZSxcbiAgICAgICAgYXV0b0xheW91dDogZmFsc2UsXG4gICAgICAgIGNvbHVtblNpemU6IFNpbmdsZUNvbHVtblNpemUubWVkaXVtLFxuICAgICAgICBjb2x1bW5Qb3NpdGlvbjogQ29sdW1uTGF5b3V0LnN0YW5kYXJkLFxuICAgICAgICBjb2x1bW5TcGFjaW5nOiBcIlwiLFxuICAgICAgICBjb250ZW50T3ZlcmZsb3c6IENvbnRlbnRPdmVyZmxvd1R5cGUuc2Nyb2xsXG4gICAgfVxufSIsIi8qKlxuICogRmlsZTogL3NyYy91dGlsaXRpZXMvc2V0dGluZ3NQYXJzZXIudHMgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFxuICogQ3JlYXRlZCBEYXRlOiBGcmlkYXksIEp1bmUgM3JkIDIwMjIsIDg6MTYgcG0gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFxuICogQXV0aG9yOiBDYW1lcm9uIFJvYmluc29uICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFxuICogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFxuICogQ29weXJpZ2h0IChjKSAyMDIyIENhbWVyb24gUm9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VzZXJEZWZMYXlvdXQ7XG4gICAgICAgICAgICB9XG4gICAgICAgIH1cblxuICAgICAgICBzZXR0aW5nc0RhdGEgPSBnZXRTZXR0aW5nc0RhdGFGcm9tS2V5cyhzZXR0aW5nc0xpbmUsIERSQVdfQk9SREVSX1JFR0VYX0FSUilcbiAgICAgICAgaWYgKHNldHRpbmdzRGF0YSAhPT0gbnVsbCkge1xuXG4gICAgICAgICAgICBsZXQgaXNCb3JkZXJEcmF3bjogQm9yZGVyT3B0aW9uID0gKDxhbnk+Qm9yZGVyT3B0aW9uKVtzZXR0aW5nc0RhdGFdO1xuICAgICAgICAgICAgaWYgKGlzQm9yZGVyRHJhd24gIT09IHVuZGVmaW5lZCkge1xuICAgICAgICAgICAgICAgIHN3aXRjaCAoaXNCb3JkZXJEcmF3bikge1xuICAgICAgICAgICAgICAgICAgICBjYXNlIChCb3JkZXJPcHRpb24uZGlzYWJsZWQpOlxuICAgICAgICAgICAgICAgICAgICBjYXNlIChCb3JkZXJPcHRpb24ub2ZmKTpcbiAgICAgICAgICAgICAgICAgICAgY2FzZSAoQm9yZGVyT3B0aW9uLmZhbHNlKTpcbiAgICAgICAgICAgICAgICAgICAgICAgIHBhcnNlZFNldHRpbmdzLmRyYXdCb3JkZXIgPSBmYWxzZTtcbiAgICAgICAgICAgICAgICAgICAgICAgIGJyZWFrO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH1cbiAgICAgICAgfVxuXG4gICAgICAgIHNldHRpbmdzRGF0YSA9IGdldFNldHRpbmdzRGF0YUZyb21LZXlzKHNldHRpbmdzTGluZSwgRFJBV19TSEFET1dfUkVHRVhfQVJSKVxuICAgICAgICBpZiAoc2V0dGluZ3NEYXRhICE9PSBudWxsKSB7XG5cbiAgICAgICAgICAgIGxldCBpc1NoYWRvd0RyYXduOiBTaGFkb3dPcHRpb24gPSAoPGFueT5TaGFkb3dPcHRpb24pW3NldHRpbmdzRGF0YV07XG4gICAgICAgICAgICBpZiAoaXNTaGFkb3dEcmF3biAhPT0gdW5kZWZpbmVkKSB7XG4gICAgICAgICAgICAgICAgc3dpdGNoIChpc1NoYWRvd0RyYXduKSB7XG4gICAgICAgICAgICAgICAgICAgIGNhc2UgKFNoYWRvd09wdGlvbi5kaXNhYmxlZCk6XG4gICAgICAgICAgICAgICAgICAgIGNhc2UgKFNoYWRvd09wdGlvbi5vZmYpOlxuICAgICAgICAgICAgICAgICAgICBjYXNlIChTaGFkb3dPcHRpb24uZmFsc2UpOlxuICAgICAgICAgICAgICAgICAgICAgICAgcGFyc2VkU2V0dGluZ3MuZHJhd1NoYWRvdyA9IGZhbHNlO1xuICAgICAgICAgICAgICAgICAgICAgICAgYnJlYWs7XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfVxuICAgICAgICB9XG5cbiAgICAgICAgc2V0dGluZ3NEYXRhID0gZ2V0U2V0dGluZ3NEYXRhRnJvbUtleXMoc2V0dGluZ3NMaW5lLCBBVVRPX0xBWU9VVF9SRUdFWF9BUlIpXG4gICAgICAgIGlmIChzZXR0aW5nc0RhdGEgIT09IG51bGwpIHtcblxuICAgICAgICAgICAgaWYoc2V0dGluZ3NEYXRhID09PSBcInRydWVcIikge1xuICAgICAgICAgICAgICAgIHBhcnNlZFNldHRpbmdzLmF1dG9MYXlvdXQgPSB0cnVlXG4gICAgICAgICAgICB9XG4gICAgICAgIH1cblxuICAgICAgICBzZXR0aW5nc0RhdGEgPSBnZXRTZXR0aW5nc0RhdGFGcm9tS2V5cyhzZXR0aW5nc0xpbmUsIENPTFVNTl9TUEFDSU5HX1JFR0VYX0FSUik7XG4gICAgICAgIGlmKHNldHRpbmdzRGF0YSAhPT0gbnVsbCkge1xuXG4gICAgICAgICAgICBsZXQgcGFyc2VkID0gZ2V0TGVuZ3RoVW5pdChzZXR0aW5nc0RhdGEudHJpbSgpKTtcbiAgICAgICAgICAgIGxldCBzcGFjaW5nU3RyID0gXCJcIjtcblxuICAgICAgICAgICAgaWYocGFyc2VkLmlzVmFsaWQpIHtcblxuICAgICAgICAgICAgICAgIGxldCBub1VuaXRzU3RyID0gc2V0dGluZ3NEYXRhLnJlcGxhY2UocGFyc2VkLnVuaXRTdHIsIFwiXCIpLnRyaW0oKTtcbiAgICAgICAgICAgICAgICBsZXQgbm9Vbml0c051bSA9IHBhcnNlSW50KG5vVW5pdHNTdHIpO1xuICAgICAgICAgICAgICAgIGlmKGlzTmFOKG5vVW5pdHNOdW0pID09PSBmYWxzZSkge1xuXG4gICAgICAgICAgICAgICAgICAgIHNwYWNpbmdTdHIgPSBgJHtub1VuaXRzU3RyfSR7cGFyc2VkLnVuaXRTdHJ9YFxuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgIGVsc2Uge1xuICAgICAgICAgICAgICAgIFxuICAgICAgICAgICAgICAgIGxldCBub1VuaXRzTnVtID0gcGFyc2VJbnQoc2V0dGluZ3NEYXRhLnRyaW0oKSk7XG4gICAgICAgICAgICAgICAgaWYoaXNOYU4obm9Vbml0c051bSkgPT09IGZhbHNlKSB7XG5cbiAgICAgICAgICAgICAgICAgICAgc3BhY2luZ1N0ciA9IGAke25vVW5pdHNOdW19cHRgXG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICBwYXJzZWRTZXR0aW5ncy5jb2x1bW5TcGFjaW5nID0gc3BhY2luZ1N0cjtcbiAgICAgICAgfVxuXG4gICAgICAgIHNldHRpbmdzRGF0YSA9IGdldFNldHRpbmdzRGF0YUZyb21LZXlzKHNldHRpbmdzTGluZSwgQ09OVEVOVF9PVkVSRkxPV19SRUdFWF9BUlIpO1xuICAgICAgICBpZihzZXR0aW5nc0RhdGEgIT09IG51bGwpIHtcblxuICAgICAgICAgICAgbGV0IG92ZXJmbG93VHlwZSA9IENvbnRlbnRPdmVyZmxvd1R5cGUuc2Nyb2xsO1xuXG4gICAgICAgICAgICBzZXR0aW5nc0RhdGEgPSBzZXR0aW5nc0RhdGEudG9Mb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4dClcbiAgICAgICAgaWYocmVnZXhEYXRhICE9PSBudWxsICYmIHJlZ2V4RGF0YS5sZW5ndGggPiAwKSB7XG4gICAgICAgICAgICBmb3VuZCA9IHRydWU7XG4gICAgICAgICAgICBzdGFydFBvc2l0aW9uID0gcmVnZXhEYXRhLmluZGV4XG4gICAgICAgICAgICBtYXRjaExlbmd0aCA9IHJlZ2V4RGF0YVswXS5sZW5ndGg7XG4gICAgICAgICAgICBicmVhaztcbiAgICAgICAgfVxuICAgIH1cbiAgICBlbmRQb3NpdGlvbiA9IHN0YXJ0UG9zaXRpb24gKyBtYXRjaExlbmd0aDtcblxuICAgIHJldHVybiB7IGZvdW5kLCBzdGFydFBvc2l0aW9uLCBlbmRQb3NpdGlvbiwgbWF0Y2hMZW5ndGggfTtcbn1cblxuY29uc3QgQ09MX1JFR0VYX1NUUlM6IHN0cmluZ1tdID0gW1wiPT09ICpjb2x1bW4tZW5kICo9PT1cIixcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBcIj09PSAqZW5kLWNvbHVtbiAqPT09XCIsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgXCI9PT0gKmNvbHVtbi1icmVhayAqPT09XCIsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgXCI9PT0gKmJyZWFrLWNvbHVtbiAqPT09XCIsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgXCItLS0gKmNvbHVtbi1lbmQgKi0tLVwiLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFwiLS0tICplbmQtY29sdW1uICotLS1cIixcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBcIi0tLSAqY29sdW1uLWJyZWFrICotLS1cIixcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBcIi0tLSAqYnJlYWstY29sdW1uICotLS1cIl07XG5jb25zdCBDT0xfUkVHRVhfQVJSOiBSZWdFeHBbXSA9IFtdO1xuZm9yK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ICAgaWYoa2V5ICE9PSBudWxsKSB7XG4gICAgICAgICAgICAgICAgc3RhcnRCbG9ja0tleSA9IGtleTtcbiAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgbGluZXNBYm92ZUFycmF5ID0gbGluZXNBYm92ZUFycmF5LnNwbGljZSgxKVxuICAgICAgICAgICAgbGluZXNBYm92ZVN0ciA9IGxpbmVzQWJvdmVBcnJheS5yZWR1Y2UoKHByZXYsIGN1cnJlbnQpID0+IHtcbiAgICAgICAgICAgICAgICByZXR1cm4gcHJldiArIFwiXFxuXCIgICsgY3VycmVudDtcbiAgICAgICAgICAgIH0sIFwiXCIpO1xuXG4gICAgICAgICAgICBzdGFydFRhZ1NlYXJjaERhdGEgPSBmaW5kU3RhcnRUYWcobGluZXNBYm92ZVN0cik7XG4gICAgICAgIH1cbiAgICB9XG5cbiAgICBpZihzdGFydEJsb2NrS2V5ID09PSBcIlwiKSB7XG5cbiAgICAgICAgbGV0IGNvZGVCbG9ja0RhdGEgPSBwYXJzZUNvZGVCbG9ja1N0YXJ0KGxpbmVzQWJvdmVBcnJheSlcbiAgICAgICAgaWYoY29kZUJsb2NrRGF0YSAhPT0gbnVsbCkge1xuICAgICAgICAgICAgXG4gICAgICAgICAgICBzdGFydEJsb2NrS2V5ID0gY29kZUJsb2NrRGF0YS5pZDtcblxuICAgICAgICAgICAgaWYoY29kZUJsb2NrRGF0YS5pbmRleCA+IDApIHtcbiAgICAgICAgICAgICAgICBsaW5lc0Fib3ZlQXJyYXkgPSBsaW5lc0Fib3ZlQXJyYXkuc2xpY2UoY29kZUJsb2NrRGF0YS5pbmRleCArIDEpO1xuICAgICAgICAgICAgfVxuICAgICAgICB9XG4gICAgfVxuXG4gICAgcmV0dXJuIHsgc3RhcnRCbG9ja0tleSwgbGluZXNBYm92ZUFycmF5IH07XG59XG5cbmV4cG9ydCBmdW5jdGlvbiBnZXRTdGFydENvZGVCbG9ja0Fib3ZlTGluZShsaW5lc0Fib3ZlQXJyYXk6IHN0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XG4gKiBDcmVhdGVkIERhdGU6IFN1bmRheSwgTWF5IDIybmQgMjAyMiwgNzo0OSBwbSAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgKlxuICogQXV0aG9yOiBDYW1lcm9uIFJvYmluc29uICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICpcbiAqICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAqXG4gKiBDb3B5cmlnaHQgKGMpIDIwMjIgQ2FtZXJvbiBSb2JpbnNvbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgKlxuICovXG5cbmltcG9ydCB7IERPTU9iamVjdCwgRE9NT2JqZWN0VGFnLCBUYXNrTGlzdERPTU9iamVjdCB9IGZyb20gJy4uL2RvbU9iamVjdCc7XG5pbXBvcnQgeyBNdWx0aUNvbHVtblNldHRpbmdzLCBDb2x1bW5MYXlvdXQsIGdldERlZmF1bHRNdWx0aUNvbHVtblNldHRpbmdzIH0gZnJvbSBcIi4uLy4uL3JlZ2lvblNldHRpbmdzXCI7XG5pbXBvcnQgeyBNdWx0aUNvbHVtbkxheW91dENTUywgTXVsdGlDb2x1bW5TdHlsZUNTUyB9IGZyb20gJy4uLy4uL3V0aWxpdGllcy9jc3NEZWZpbml0aW9ucyc7XG5pbXBvcnQgeyBGaWxlRE9NTWFuYWdlciB9IGZyb20gJy4uL2RvbU1hbmFnZXInO1xuaW1wb3J0IHsgRWxlbWVudFJlbmRlclR5cGUsIGdldEVsZW1lbnRSZW5kZXJUeXBlIH0gZnJvbSAnc3JjL3V0aWxpdGllcy9lbGVtZW50UmVuZGVyVHlwZVBhcnNlcic7XG5pbXBvcnQgeyBSZWdpb25NYW5hZ2VyRGF0YSB9IGZyb20gJy4vcmVnaW9uTWFuYWdlckNvbnRhaW5lcic7XG5pbXBvcnQgeyBzZWFyY2hDaGlsZHJlbkZv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m9yKGxldCBpID0gc2libGluZ3NBYm92ZS5jaGlsZHJlbi5sZW5ndGggLSAxOyBpID49IDA7IGktLSkge1xuXG4gICAgICAgICAgICAgICAgbGV0IG9iaiA9IHNpYmxpbmdzQWJvdmUuY2hpbGRyZW5baV0gYXMgSFRNTEVsZW1lbnQ7XG4gICAgICAgICAgICAgICAgaWYob2JqLmlubmVyVGV4dCAhPT0gXCJcIikge1xuICAgICAgICAgICAgICAgIFxuICAgICAgICAgICAgICAgICAgICBwcmV2U2libGluZ0lubmVyVGV4dCA9IG9iai5pbm5lclRleHQ7XG4gICAgICAgICAgICAgICAgICAgIGJyZWFrO1xuICAgICAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgICAgIHByZXZTaWJsaW5nT2Zmc2V0Kys7XG4gICAgICAgICAgICB9XG5cbiAgICAgICAgICAgIGZvciAobGV0IGkgPSB0aGlzLmRvbUxpc3QubGVuZ3RoIC0gMTsgaSA+PSAwOyBpLS0pIHtcbiAgICAgICAgICAgICAgICBpZiAodGhpcy5kb21MaXN0W2ldLm5vZGVLZXkgPT09IHByZXZTaWJsaW5nSW5uZXJUZXh0KSB7XG4gICAgICAgICAgICAgICAgICAgIGFkZEF0SW5kZXggPSBpICsgMSArIHByZXZTaWJsaW5nT2Zmc2V0O1xuICAgICAgICAgICAgICAgICAgICBicmVhaztcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9XG4gICAgICAgIH1cblxuICAgICAgICBsZXQgbmV4dEVsSW5kZXggPSBhZGRBdEluZGV4O1xuICAgICAgICBsZXQgbmV4dE9ialRleHQgPSBcIlwiO1xuICAgICAgICBpZiAobmV4dE9iaiAhPT0gdW5kZWZpbmVkKSB7XG5cbiAgICAgICAgICAgIGxldCBmb3VuZE5leHQgPSBmYWxzZTtcbiAgICAgICAgICAgIG5leHRPYmpUZXh0ID0gbmV4dE9iai5pbm5lclRleHQ7XG5cbiAgICAgICAgICAgIGZvciAobGV0IGkgPSBhZGRBdEluZGV4OyBpI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FRNTENhbnZhc0VsZW1lbnQpOiBIVE1MQ2FudmFzRWxlbWVudCB7XG5cbiAgICAgICAgICAgICAgICAvL2NyZWF0ZSBhIG5ldyBjYW52YXNcbiAgICAgICAgICAgICAgICBsZXQgY2xvbmVkQ2FudmFzOiBIVE1MQ2FudmFzRWxlbWVudCA9IG9yaWdpbmFsQ2FudmFzLmNsb25lTm9kZSh0cnVlKSBhcyBIVE1MQ2FudmFzRWxlbWVudDtcbiAgICAgICAgICAgICAgICBsZXQgY29udGV4dDogQ2FudmFzUmVuZGVyaW5nQ29udGV4dDJEID0gY2xvbmVkQ2FudmFzLmdldENvbnRleHQoJzJkJyk7XG4gICAgICAgICAgICBcbiAgICAgICAgICAgICAgICAvL3NldCBkaW1lbnNpb25zXG4gICAgICAgICAgICAgICAgY2xvbmVkQ2FudmFzLndpZHRoID0gb3JpZ2luYWxDYW52YXMud2lkdGg7XG4gICAgICAgICAgICAgICAgY2xvbmVkQ2FudmFzLmhlaWdodCA9IG9yaWdpbmFsQ2FudmFzLmhlaWdodDtcblxuICAgICAgICAgICAgICAgIGlmKGNsb25lZENhbnZhcy53aWR0aCA9PT0gMCB8fCBjbG9uZWRDYW52YXMuaGVpZ2h0ID09PSAwKXtcbiAgICAgICAgICAgICAgICAgICAgLy8gRG9udCB3YW50IHRvIHJlbmRlciBpZiB0aGUgd2lkdGggaXMgMCBhcyBpdCB0aHJvd3MgYW4gZXJyb3JcbiAgICAgICAgICAgICAgICAgICAgLy8gd291bGQgaGFwcGVuIGlmIHRoZSBvbGQgY2FudmFzIGhhc250IGJlZW4gcmVuZGVyZWQgeWV0LlxuICAgICAgICAgICAgICAgICAgICByZXR1cm4gY2xvbmVkQ2FudmFzO1xuICAgICAgICAgICAgICAgIH0gXG5cbiAgICAgICAgICAgICAgICAvL2FwcGx5IHRoZSBvbGQgY2FudmFzIHRvIHRoZSBuZXcgb25lXG4gICAgICAgICAgICAgICAgY29udGV4dC5kcmF3SW1hZ2Uob3JpZ2luYWxDYW52YXMsIDAsIDApO1xuICAgICAgICAgICAgXG4gICAgICAgICAgICAgICAgLy9yZXR1cm4gdGhlIG5ldyBjYW52YXNcbiAgICAgICAgICAgICAgICByZXR1cm4gY2xvbmVkQ2FudmFzO1xuICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICBsZXQgY2FudmFzID0gc2VhcmNoQ2hpbGRyZW5Gb3JOb2RlVHlwZShvcmlnaW5hbEVsZW1lbnQsIFwiY2FudmFzXCIpO1xuICAgICAgICAgICAgaWYoY2FudmFzICE9PSBudWxsKSB7XG4gICAgICAgICAgICAgICAgXG4gICAgICAgICAgICAgICAgZG9tRWxlbWVudC51cGRhdGVDbG9uZWRFbGVtZW50KG9yaWdpbmFsRWxlbWVudC5jbG9uZU5vZGUodHJ1ZSkgYXMgSFRNTERpdkVsZW1lbnQpO1xuICAgICAgICAgICAgICAgIGNsb25lZEVsZW1lbnQgPSBkb21FbGVtZW50LmNsb25lZEVsZW1lbnQ7XG4gICAgICAgICAgICAgICAgY2xvbmVkRWxlbWVudC5hZGRDbGFzcyhNdWx0aUNvbHVtbkxheW91dENTUy5DbG9uZWRFbGVtZW50VHlwZSk7XG4gICAgICAgICAgICAgICAgY2xvbmVkRWxlbWVudC5yZW1vdmVDbGFzc2VzKFtNdWx0aUNvbHVtblN0eWxlQ1NTLlJlZ2lvbkNvbnRlbnQsIE11bHRpQ29sdW1uTGF5b3V0Q1NTLk9yaWdpbmFsRWxlbWVudFR5cGVdKTtcbiAgICAgICAgICAgICAgICBjb250YWluZXJFbGVtZW50LmFwcGVuZENoaWxkKGNsb25lZEVsZW1lbnQpO1xuXG4gICAgICAgICAgICAgICAgZm9yIChsZXQgaSA9IGNsb25lZEVsZW1lbnQuY2hpbGRyZW4ubGVuZ3RoIC0gMTsgaSA+PSAwOyBpLS0pIHtcbiAgICAgICAgICAgICAgICAgICAgY2xvbmVkRWxlbWVudC5jaGlsZHJlbltpXS5kZXRhY2goKTtcbiAgICAgICAgICAgICAgICB9XG4gIC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XG4gICAgICAgICAgICAgICAgY2FzZShDb2x1bW5MYXlvdXQuY2VudGVyKTpcbiAgICAgICAgICAgICAgICBjYXNlKENvbHVtbkxheW91dC50aGlyZCk6XG4gICAgICAgICAgICAgICAgICAgIGNvbHVtbkNvbnRlbnREaXZzLnB1c2gobXVsdGlDb2x1bW5QYXJlbnQuY3JlYXRlRGl2KHtcbiAgICAgICAgICAgICAgICAgICAgICAgIGNsczogYCR7TXVsdGlDb2x1bW5TdHlsZUNTUy5Db2x1bW5Db250ZW50fSAke011bHRpQ29sdW1uTGF5b3V0Q1NTLlR3b0VxdWFsQ29sdW1uc31gXG4gICAgICAgICAgICAgICAgICAgIH0pKTtcbiAgICAgICAgICAgICAgICAgICAgbXVsdGlDb2x1bW5QYXJlbnQuY3JlYXRlRGl2KHtcbiAgICAgICAgICAgICAgICAgICAgICAgIGNsczogYG1jbS1jb2x1bW4tc3BhY2VyYCxcbiAgICAgICAgICAgICAgICAgICAgICAgIGF0dHI6IHtcInN0eWxlXCI6IHN0eWxlU3RyfVxuICAgICAgICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgICAgICAgICAgY29sdW1uQ29udGVudERpdnMucHVzaChtdWx0aUNvbHVtblBhcmVudC5jcmVhdGVEaXYoe1xuICAgICAgICAgICAgICAgICAgICAgICAgY2xzOiBgJHtNdWx0aUNvbHVtblN0eWxlQ1NTLkNvbHVtbkNvbnRlbnR9ICR7TXVsdGlDb2x1bW5MYXlvdXRDU1MuVHdvRXF1YWxDb2x1bW5zfWBcbiAgICAgICAgICAgICAgICAgICAgfSkpO1xuICAgICAgICAgICAgICAgICAgICBicmVhaztcblxuICAgICAgICAgICAgICAgIGNhc2UoQ29sdW1uTGF5b3V0LmxlZnQpOlxuICAgICAgICAgICAgICAgIGNhc2UoQ29sdW1uTGF5b3V0LmZpcnN0KTpcbiAgICAgICAgICAgICAgICAgICAgY29sdW1uQ29udGVudERpdnMucHVzaChtdWx0aUNvbHVtblBhcmVudC5jcmVhdGVEaXYoe1xuICAgICAgICAgICAgICAgICAgICAgICAgY2xzOiBgJHtNdWx0aUNvbHVtblN0eWxlQ1NTLkNvbHVtbkNvbnRlbnR9ICR7TXVsdGlDb2x1bW5MYXlvdXRDU1MuVHdvQ29sdW1uTGFyZ2V9YFxuICAgICAgICAgICAgICAgICAgICB9KSk7XG4gICAgICAgICAgICAgICAgICAgIG11bHRpQ29sdW1uUGFyZW50LmNyZWF0ZURpdih7XG4gICAgICAgICAgICAgICAgICAgICAgICBjbHM6IGBtY20tY29sdW1uLXNwYWNlcmAsXG4gICAgICAgICAgICAgICAgICAgICAgICBhdHRyOiB7XCJzdHlsZVwiOiBzdHlsZVN0cn1cbiAgICAgICAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICAgICAgICAgIGNvbHVtbkNvbnRlbnREaXZzLnB1c2gobXVsdGlDb2x1bW5QYXJlbnQuY3JlYXRlRGl2KHtcbiAgICAgICAgICAgICAgICAgICAgICAgIGNsczogYCR7TXVsdGlDb2x1bW5TdHlsZUNTUy5Db2x1bW5Db250ZW50fSAke011bHRpQ29sdW1uTGF5b3V0Q1NTLlR3b0NvbHVtblNtYWxsfWBcbiAgICAgICAgICAgICAgICAgICAgfSkpO1xuICAgICAgICAgICAgICAgICAgICBicmVhaztcblxuICAgICAgICAgICAgICAgIGNhc2UoQ29sdW1uTGF5b3V0LnJpZ2h0KTpcbiAgICAgICAgICAgICAgICBjYXNlKENvbHVtbkxheW91dC5zZWNvbmQpOlxuICAgICAgICAgICAgICAgIGNhc2UoQ29sdW1uTGF5b3V0Lmxhc3QpOlxuICAgICAgICAgICAgICAgICAgICBjb2x1bW5Db250ZW50RGl2cy5wdXNoKG11bHRpQ29sdW1uUGFyZW50LmNyZWF0ZURpdih7XG4gICAgICAgICAgICAgICAgICAgICAgICBjbHM6IGAke011bHRpQ29sdW1uU3R5bGVDU1MuQ29sdW1uQ29udGVudH0gJHtNdWx0aUNvbHVtbkxheW91dENTUy5Ud29Db2x1bW5TbWFsbH1gXG4gICAgICAgICAgICAgICAgICAgIH0pKTtcbiAgICAgICAgICAgICAgICAgICAgbXVsdGlDb2x1bW5QYXJlbnQuY3JlYXRlRGl2KHtcbiAgICAgICAgICAgICAgICAgICAgICAgIGNsczogYG1jbS1jb2x1bW4tc3BhY2VyYCxcbiAgICAgICAgICAgICAgICAgICAgICAgIGF0dHI6IHtcInN0eWxlXCI6IHN0eWxlU3RyfVxuICAgICAgICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgICAgICAgICAgY29sdW1uQ29udGVudERpdnMucHVzaChtdWx0aUNvbHVtblBhcmVudC5jcmVhdGVEaXYoe1xuICAgICAgICAgICAgICAgICAgICAgICAgY2xzOiBgJHtNdWx0aUNvbHVtblN0eWxlQ1NTLkNvbHVtbkNvbnRlbnR9ICR7TXVsdGlDb2x1bW5MYXlvdXRDU1MuVHdvQ29sdW1uTGFyZ2V9YFxuICAgICAgICAgICAgICAgICAgICB9KSk7XG4gICAgICAgICAgICAgICAgICAgIGJyZWFrO1xuICAgICAgICAgICAgfVxuICAgICAgICB9XG4gICAgICAgIGVsc2UgaWYoc2V0dGluZ3MubnVtYmVyT2ZDb2x1bW5zID09PSAzKSB7XG5cbiAgICAgICAgICAgIHN3aXRjaChzZXR0aW5ncy5jb2x1bW5MYXlvdXQpIHtcbiAgICAgICAgICAgICAgICBjYXNlKENvbHVtbkxheW91dC5zdGFuZGFyZCk6XG4gICAgICAgICAgICAgICAgICAgIGNvbHVtbkNvbnRlbnREaXZzLnB1c2gobXVsdGlDb2x1bW5QYXJlbnQuY3JlYXRlRGl2KHtcbiAgICAgICAgICAgICAgICAgICAgICAgIGNsczogYCR7TXVsdGlDb2x1bW5TdHlsZUNTUy5Db2x1bW5Db250ZW50fSAke011bHRpQ29sdW1uTGF5b3V0Q1NTLlRocmVlRXF1YWxDb2x1bW5zfWBcbiAgICAgICAgICAgICAgICAgICAgfSkpO1xuICAgICAgICAgICAgICAgICAgICBtdWx0aUNvbHVtblBhcmVudC5jcmVhdGVEaXYoe1xuICAgICAgICAgICAgICAgICAgICAgICAgY2xzOiBgbWNtLWNvbHVtbi1zcGFjZXJgLFxuICAgICAgICAgICAgICAgICAgICAgICAgYXR0cjoge1wic3R5bGVcIjogc3R5bGVTdHJ9XG4gICAgICAgICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgICAgICAgICBjb2x1bW5Db250ZW50RGl2cy5wdXNoKG11bHRpQ29sdW1uUGFyZW50LmNyZWF0ZURpdih7XG4gICAgICAgICAgICAgICAgICAgICAgICBjbHM6IGAke011bHRpQ29sdW1uU3R5bGVDU1MuQ29sdW1uQ29udGVudH0gJHtNdWx0aUNvbHVtbkxheW91dENTUy5UaHJlZUVxdWFsQ29sdW1uc31gXG4gICAgICAgICAgICAgICAgICAgIH0pKTtcbiAgICAgICAgICAgICAgICAgICAgbXVsdGlDb2x1bW5QYXJlbnQuY3JlYXRlRGl2KHtcbiAgICAgICAgICAgICAgICAgICAgICAgIGNsczogYG1jbS1jb2x1bW4tc3BhY2VyYCxcbiAgICAgICAgICAgICAgICAgICAgICAgIGF0dHI6IHtcInN0eWxlXCI6IHN0eWxlU3RyfVxuICAgICAgICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgICAgICAgICAgY29sdW1uQ29udGVudERpdnMucHVzaChtdWx0aUNvbHVtblBhcmVudC5jcmVhdGVEaXYoe1xuICAgICAgICAgICAgICAgICAgICAgICAgY2xzOiBgJHtNdWx0aUNvbHVtblN0eWxlQ1NTLkNvbHVtbkNvbnRlbnR9ICR7TXVsdGlDb2x1bW5MYXlvdXRDU1MuVGhyZWVFcXVhbENvbHVtbnN9YFxuICAgICAgICAgICAgICAgICAgICB9KSk7XG4gICAgICAgICAgICAgICAgICAgIGJyZWFrO1xuXG4gICAgICAgICAgICAgICAgY2FzZShDb2x1bW5MYXlvdXQubGVmdCk6XG4gICAgICAgICAgICAgICAgY2FzZShDb2x1bW5MYXlvdXQuZmlyc3QpOlxuICAgICAgICAgICAgICAgICAgICBjb2x1bW5Db250ZW50RGl2cy5wdXNoKG11bHRpQ29sdW1uUGFyZW50LmNyZWF0ZURpdih7XG4gICAgICAgICAgICAgICAgICAgICAgICBjbHM6IGAke011bHRpQ29sdW1uU3R5bGVDU1MuQ29sdW1uQ29udGVudH0gJHtNdWx0aUNvbHVtbkxheW91dENTUy5UaHJlZUNvbHVtbl9MYXJnZX1gXG4gICAgICAgICAgICAgICAgICAgIH0pKTtcbiAgICAgICAgICAgICAgICAgICAgbXVsdGlDb2x1bW5QYXJlbnQuY3JlYXRlRGl2KHtcbiAgICAgICAgICAgICAgICAgICAgICAgIGNsczogYG1jbS1jb2x1bW4tc3BhY2VyYCxcbiAgICAgICAgICAgICAgICAgICAgICAgIGF0dHI6IHtcInN0eWxlXCI6IHN0eWxlU3RyfVxuICAgICAgICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgICAgICAgICAgY29sdW1uQ29udGVudERpdnMucHVzaChtdWx0aUNvbHVtblBhcmVudC5jcmVhdGVEaXYoe1xuICAgICAgICAgICAgICAgICAgICAgICAgY2xzOiBgJHtNdWx0aUNvbHVtblN0eWxlQ1NTLkNvbHVtbkNvbnRlbnR9ICR7TXVsdGlDb2x1bW5MYXlvdXRDU1MuVGhyZWVDb2x1bW5fU21hbGx9YFxuICAgICAgICAgICAgICAgICAgICB9KSk7XG4gICAgICAgICAgICAgICAgICAgIG11bHRpQ29sdW1uUGFyZW50LmNyZWF0ZURpdih7XG4gICAgICAgICAgICAgICAgICAgICAgICBjbHM6IGBtY20tY29sdW1uLXNwYWNlcmAsXG4gICAgICAgICAgICAgICAgICAgICAgICBhdHRyOiB7XCJzdHlsZVwiOiBzdHlsZVN0cn1cbiAgICAgICAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICAgICAgICAgIGNvbHVtbkNvbnRlbnREaXZzLnB1c2gobXVsdGlDb2x1bW5QYXJlbnQuY3JlYXRlRGl2KHtcbiAgICAgICAgICAgICAgICAgICAgICAgIGNsczogYCR7TXVsdGlDb2x1bW5TdHlsZUNTUy5Db2x1bW5Db250ZW50fSAke011bHRpQ29sdW1uTGF5b3V0Q1NTLlRocmVlQ29sdW1uX1NtYWxsfWBcbiAgICAgICAgICAgICAgICAgICAgfSkpO1xuICAgICAgICAgICAgICAgICAgICBicmVhaztcblxuICAgICAgICAgICAgICAgIGNhc2UoQ29sdW1uTGF5b3V0Lm1pZGRsZSk6XG4gICAgICAgICAgICAgICAgY2FzZShDb2x1bW5MYXlvdXQuY2VudGVyKTpcbiAgICAgICAgICAgICAgICBjYXNlKENvbHVtbkxheW91dC5zZWNvbmQpOlxuICAgICAgICAgICAgICAgICAgICBjb2x1bW5Db250ZW50RGl2cy5wdXNoKG11bHRpQ29sdW1uUGFyZW50LmNyZWF0ZURpdih7XG4gICAgICAgICAgICAgICAgICAgICAgICBjbHM6IGAke011bHRpQ29sdW1uU3R5bGVDU1MuQ29sdW1uQ29udGVudH0gJHtNdWx0aUNvbHVtbkxheW91dENTUy5UaHJlZUNvbHVtbl9TbWFsbH1gXG4gICAgICAgICAgICAgICAgICAgIH0pKTtcbiAgICAgICAgICAgICAgICAgICAgbXVsdGlDb2x1bW5QYXJlbnQuY3JlYXRlRGl2KHtcbiAgICAgICAgICAgICAgICAgICAgICAgIGNsczogYG1jbS1jb2x1bW4tc3BhY2VyYCxcbiAgICAgICAgICAgICAgICAgICAgICAgIGF0dHI6IHtcInN0eWxlXCI6IHN0eWxlU3RyfVxuICAgICAgICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgICAgICAgICAgY29sdW1uQ29udGVudERpdnMucHVzaChtdWx0aUNvbHVtblBhcmVudC5jcmVhdGVEaXYoe1xuICAgICAgICAgICAgICAgICAgICAgICAgY2xzOiBgJHtNdWx0aUNvbHVtblN0eWxlQ1NTLkNvbHVtbkNvbnRlbnR9ICR7TXVsdGlDb2x1bW5MYXlvdXRDU1MuVGhyZWVDb2x1bW5fTGFyZ2V9YFxuICAgICAgICAgICAgICAgICAgICB9KSk7XG4gICAgICAgICAgICAgICAgICAgIG11bHRpQ29sdW1uUGFyZW50LmNyZWF0ZURpdih7XG4gICAgICAgICAgICAgICAgICAgICAgICBjbHM6IGBtY20tY29sdW1uLXNwYWNlcmAsXG4gICAgICAgICAgICAgICAgICAgICAgICBhdHRyOiB7XCJzdHlsZVwiOiBzdHlsZVN0cn1cbiAgICAgICAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICAgICAgICAgIGNvbHVtbkNvbnRlbnREaXZzLnB1c2gobXVsdGlDb2x1bW5QYXJlbnQuY3JlYXRlRGl2KHtcbiAgICAgICAgICAgICAgICAgICAgICAgIGNsczogYCR7TXVsdGlDb2x1bW5TdHlsZUNTUy5Db2x1bW5Db250ZW50fSAke011bHRpQ29sdW1uTGF5b3V0Q1NTLlRocmVlQ29sdW1uX1NtYWxsfWBcbiAgICAgICAgICAgICAgICAgICAgfSkpO1xuICAgICAgICAgICAgICAgICAgICBicmVhaztcblxuICAgICAgICAgICAgICAgIGNhc2UoQ29sdW1uTGF5b3V0LnJpZ2h0KTpcbiAgICAgICAgICAgICAgICBjYXNlKENvbHVtbkxheW91dC50aGlyZCk6XG4gICAgICAgICAgICAgICAgY2FzZShDb2x1bW5MYXlvdXQubGFzdCk6XG4gICAgICAgICAgICAgICAgICAgIGNvbHVtbkNvbnRlbnREaXZzLnB1c2gobXVsdGlDb2x1bW5QYXJlbnQuY3JlYXRlRGl2KHtcbiAgICAgICAgICAgICAgICAgICAgICAgIGNsczogYCR7TXVsdGlDb2x1bW5TdHlsZUNTUy5Db2x1bW5Db250ZW50fSAke011bHRpQ29sdW1uTGF5b3V0Q1NTLlRocmVlQ29sdW1uX1NtYWxsfWBcbiAgICAgICAgICAgICAgICAgICAgfSkpO1xuICAgICAgICAgICAgICAgICAgICBtdWx0aUNvbHVtblBhcmVudC5jcmVhdGVEaXYoe1xuICAgICAgICAgICAgICAgICAgICAgICAgY2xzOiBgbWNtLWNvbHVtbi1zcGFjZXJgLFxuICAgICAgICAgICAgICAgICAgICAgICAgYXR0cjoge1wic3R5bGVcIjogc3R5bGVTdHJ9XG4gICAgICAgICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgICAgICAgICBjb2x1bW5Db250ZW50RGl2cy5wdXNoKG11bHRpQ29sdW1uUGFyZW50LmNyZWF0ZURpdih7XG4gICAgICAgICAgICAgICAgICAgICAgICBjbHM6IGAke011bHRpQ29sdW1uU3R5bGVDU1MuQ29sdW1uQ29udGVudH0gJHtNdWx0aUNvbHVtbkxheW91dENTUy5UaHJlZUNvbHVtbl9TbWFsbH1gXG4gICAgICAgICAgICAgICAgICAgIH0pKTtcbiAgICAgICAgICAgICAgICAgICAgbXVsdGlDb2x1bW5QYXJlbnQuY3JlYXRlRGl2KHtcbiAgICAgICAgICAgICAgICAgICAgICAgIGNsczogYG1jbS1jb2x1bW4tc3BhY2VyYCxcbiAgICAgICAgICAgICAgICAgICAgICAgIGF0dHI6IHtcInN0eWxlXCI6IHN0eWxlU3RyfVxuICAgICAgICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgICAgICAgICAgY29sdW1uQ29udGVudERpdnMucHVzaChtdWx0aUNvbHVtblBhcmVudC5jcmVhdGVEaXYoe1xuICAgICAgICAgICAgICAgICAgICAgICAgY2xzOiBgJHtNdWx0aUNvbHVtblN0eWxlQ1NTLkNvbHVtbkNvbnRlbnR9ICR7TXVsdGlDb2x1bW5MYXlvdXRDU1MuVGhyZWVDb2x1bW5fTGFyZ2V9YFxuICAgICAgICAgICAgICAgICAgICB9KSk7XG4gICAgICAgICAgICAgICAgICAgIGJyZWFrO1xuICAgICAgICAgICAgfVxuICAgICAgICB9XG5cbiAgICAgICAgcmV0dXJuIGNvbHVtbkNvbnRlbnREaXZzO1xuICAgIH1cblxuICAgIHB1YmxpYyBhYnN0cmFjdCByZW5kZXJSZWdpb25FbGVtZW50c1RvU2NyZWVuKCk6IHZvaWQ7XG4gICAgcHVibGljIGFic3RyYWN0IGV4cG9ydFJlZ2lvbkVsZW1lbnRzVG9QREYocGRmUGFyZW50RWxlbWVudDogSFRNTEVsZW1lbnQpOiB2b2lkO1xuICAgIHB1YmxpYyBhYnN0cmFjdCByZW5kZXJSZWdpb25FbGVtZW50c1RvTGl2ZVByZXZpZXcocGFyZW50RWxlbWVudDogSFRNTEVsZW1lbnQpOiB2b2lkXG59XG5cblxuZnVuY3Rpb24gZ2V0RWxlbWVudENsaWVudEhlaWdodChlbGVtZW50OiBIVE1MRWxlbWVudCwgcGFyZW50UmVuZGVyRWxlbWVudDogSFRNTERpdkVsZW1lbnQpOiBudW1iZXIge1xuXG4gICAgbGV0IGhlaWdodCA9IGVsZW1lbnQuY2xpZW50SGVpZ2h0O1xuICAgIGlmKGhlaWdodCA9PT0gMCkge1xuICAgICAgICBwYXJlbnRSZW5kZXJFbGVtZW50LmFwcGVuZENoaWxkKGVsZW1lbnQpO1xuICAgICAgICBoZWlnaHQgPSBlbGVtZW50LmNsaWVudEhlaWdodFxuICAgICAgICBwYXJlbnRSZW5kZXJFbGVtZW50LnJlbW92ZUNoaWxkKGVsZW1lbnQpO1xuICAgIH1cbiAgICByZXR1cm4gaGVpZ2h0XG59IiwiLyoqXG4gKiBGaWxlOiAvc3JjL2RvbV9tYW5hZ2VyL3JlZ2lvbmFsX21hbmFnZXJzL3JlZ2lvbkRPTU1hbmFnZXIudHMgICAgICAgICAgICAgICAgKlxuICogQ3JlYXRlZCBEYXRlOiBTdW5kYXksIE1heSAyMm5kIDIwMjIsIDc6NDYgcG0gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICpcbiAqIEF1dGhvcjogQ2FtZXJvbiBSb2JpbnNvbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAqXG4gKiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgKlxuICogQ29weXJpZ2h0IChjKSAyMDIyIENhbWVyb24gUm9iaW5z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iAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgZWxzZSB7XG4gICAgICAgICAgICAgICAgICAgIGVsZW1lbnQuYWRkQ2xhc3MoTXVsdGlDb2x1bW5MYXlvdXRDU1MuQ29udGVudE92ZXJmbG93QXV0b1Njcm9sbClcbiAgICAgICAgICAgICAgICB9XG5cbiAgICAgICAgICAgICAgICByZWdpb25FbGVtZW50c1tpXS5lbGVtZW50Q29udGFpbmVyID0gZWxlbWVudDtcblxuICAgICAgICAgICAgICAgIC8vIE90aGVyd2lzZSB3ZSBqdXN0IG1ha2UgYSBjb3B5IG9mIHRoZSBvcmlnaW5hbCBlbGVtZW50IHRvIGRpc3BsYXkuXG4gICAgICAgICAgICAgICAgbGV0IGNsb25lZEVsZW1lbnQgPSByZWdpb25FbGVtZW50c1tpXS5vcmlnaW5hbEVsZW1lbnQuY2xvbmVOb2RlKHRydWUpIGFzIEhUTUxEaXZFbGVtZW50O1xuICAgICAgICAgICAgICAgIGxldCBoZWFkaW5nQ29sbGFwc2VFbGVtZW50ID0gZ2V0SGVhZGluZ0NvbGxhcHNlRWxlbWVudChjbG9uZWRFbGVtZW50KTtcbiAgICAgICAgICAgICAgICBpZihoZWFkaW5nQ29sbGFwc2VFbGVtZW50ICE9PSBudWxsKSB7XG4gICAgICAgICAgICAgICAgICAgIC8vIFRoaXMgcmVtb3ZlcyB0aGUgY29sbGFwc2UgYXJyb3cgZnJvbSB0aGUgdmlldyBpZiBpdCBleGlzdHMuXG4gICAgICAgICAgICAgICAgICAgIGhlYWRpbmdDb2xsYXBzZUVsZW1lbnQuZGV0YWNoKCk7XG4gICAgICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICAgICAgcmVnaW9uRWxlbWVudHNbaV0uY2xvbmVkRWxlbWVudCA9IGNsb25lZEVsZW1lbnQ7XG4gICAgICAgICAgICAgICAgZWxlbWVudC5hcHBlbmRDaGlsZChjbG9uZWRFbGVtZW50KTtcblxuICAgICAgICAgICAgICAgIGlmIChyZWdpb25FbGVtZW50c1tpXSBpbnN0YW5jZW9mIFRhc2tMaXN0RE9NT2JqZWN0KSB7XG5cbiAgICAgICAgICAgICAgICAgICAgdGhpcy5maXhDbG9uZWRDaGVja0xpc3RCdXR0b25zKHJlZ2lvbkVsZW1lbnRzW2ldIGFzIFRhc2tMaXN0RE9NT2JqZWN0LCB0cnVlKTtcbiAgICAgICAgICAgICAgICB9XG5cbiAgICAgICAgICAgICAgICBpZiAoZWxlbWVudCAhPT0gbnVsbCAmJiByZWdpb25FbGVtZW50c1tpXS50YWcgIT09IERPTU9iamVjdFRhZy5jb2x1bW5CcmVhaykge1xuXG4gICAgICAgICAgICAgICAgICAgIGNvbHVtbkNvbnRlbnREaXZzW2NvbHVtbkluZGV4XS5hcHBlbmRDaGlsZChlbGVtZW50KTtcbiAgICAgICAgICAgICAgICB9XG5cbiAgICAgICAgICAgICAgICAvKipcbiAgICAgICAgICAgICAgICAgKiBJZiB0aGUgdGFnIGlzIGEgY29sdW1uIGJyZWFrIHdlIHVwZGF0ZSB0aGUgY29sdW1uIGluZGV4IGFmdGVyXG4gICAgICAgICAgICAgICAgICogYXBwZW5kaW5nIHRoZSBpdGVtIHRvIHRoZSBjb2x1bW4gZGl2LiBUaGlzIGtlZXBzIHRoZSBtYWluIERPTVxuICAgICAgICAgICAgICAgICAqIGNsZWFuZXIgYnkgcmVtb3Zpbmcgb3RoZXIgaXRlbXMgYW5kIHBsYWNpbmcgdGhlbSBhbGwgd2l0aGluXG4gICAgICAgICAgICAgICAgICogYSByZWdpb24gY29udGFpbmVyLlxuICAgICAgICAgICAgICAgICAqL1xuICAgICAgICAgICAgICAgIGlmIChyZWdpb25FbGVtZW50c1tpXS50YWcgPT09IERPTU9iamVjdFRhZy5jb2x1bW5CcmVhayAmJlxuICAgICAgICAgICAgICAgICAgICAoY29sdW1uSW5kZXggKyAxKSA8IHNldHRpbmdzLm51bWJlck9mQ29sdW1ucykge1xuXG4gICAgICAgICAgICAgICAgICAgIGNvbHVt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VsdGlDb2x1bW5MYXlvdXRDU1MuQ29sdW1uRHVhbEVsZW1lbnRDb250YWluZXIsXG4gICAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICAgICAgcmVnaW9uRWxlbWVudHNbaV0uZWxlbWVudENvbnRhaW5lciA9IGVsZW1lbnQ7XG5cbiAgICAgICAgICAgICAgICAvLyBPdGhlcndpc2Ugd2UganVzdCBtYWtlIGEgY29weSBvZiB0aGUgb3JpZ2luYWwgZWxlbWVudCB0byBkaXNwbGF5LlxuICAgICAgICAgICAgICAgIGxldCBjbG9uZWRFbGVtZW50ID0gcmVnaW9uRWxlbWVudHNbaV0ub3JpZ2luYWxFbGVtZW50LmNsb25lTm9kZSh0cnVlKSBhcyBIVE1MRGl2RWxlbWVudDtcbiAgICAgICAgICAgICAgICBsZXQgaGVhZGluZ0NvbGxhcHNlRWxlbWVudCA9IGdldEhlYWRpbmdDb2xsYXBzZUVsZW1lbnQoY2xvbmVkRWxlbWVudCk7XG4gICAgICAgICAgICAgICAgaWYoaGVhZGluZ0NvbGxhcHNlRWxlbWVudCAhPT0gbnVsbCkge1xuICAgICAgICAgICAgICAgICAgICAvLyBUaGlzIHJlbW92ZXMgdGhlIGNvbGxhcHNlIGFycm93IGZyb20gdGhlIHZpZXcgaWYgaXQgZXhpc3RzLlxuICAgICAgICAgICAgICAgICAgICBoZWFkaW5nQ29sbGFwc2VFbGVtZW50LmRldGFjaCgpO1xuICAgICAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgICAgIHJlZ2lvbkVsZW1lbnRzW2ldLmNsb25lZEVsZW1lbnQgPSBjbG9uZWRFbGVtZW50O1xuICAgICAgICAgICAgICAgIGVsZW1lbnQuYXBwZW5kQ2hpbGQoY2xvbmVkRWxlbWVudCk7XG5cbiAgICAgICAgICAgICAgICBpZiAocmVnaW9uRWxlbWVudHNbaV0gaW5zdGFuY2VvZiBUYXNrTGlzdERPTU9iamVjdCkge1xuXG4gICAgICAgICAgICAgICAgICAgIHRoaXMuZml4Q2xvbmVkQ2hlY2tMaXN0QnV0dG9ucyhyZWdpb25FbGVtZW50c1tpXSBhcyBUYXNrTGlzdERPTU9iamVjdCwgdHJ1ZSk7XG4gICAgICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICAgICAgaWYgKGVsZW1lbnQgIT09IG51bGwpIHtcblxuICAgICAgICAgICAgICAgICAgICBjb2x1bW5Db250ZW50RGl2LmFwcGVuZENoaWxkKGVsZW1lbnQpO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH1cbiAgICAgICAgfVxuICAgIH1cblxuICAgIGNyZWF0ZUNvbHVtbkNvbnRlbnREaXZzKG11bHRpQ29sdW1uUGFyZW50OiBIVE1MRGl2RWxlbWVudCk6IEhUTUxEaXZFbGVtZW50IHtcblxuICAgICAgICBsZXQgY29udGVudERpdiA9IG11bHRpQ29sdW1uUGFyZW50LmNyZWF0ZURpdih7XG4gICAgICAgICAgICBjbHM6IGAke011bHRpQ29sdW1uU3R5bGVDU1MuQ29sdW1uQ29udGVudH1gXG4gICAgICAgIH0pO1xuXG4gICAgICAgIGlmKHRoaXMucmVnaW9uYWxTZXR0aW5ncy5jb2x1bW5TaXplID09PSBTaW5nbGVDb2x1bW5TaXplLnNtYWxsKSB7XG4gICAgICAgICAgICBjb250ZW50RGl2LmFkZENsYXNzKGAke011bHRpQ29sdW1uTGF5b3V0Q1NTLlNpbmdsZUNvbHVtblNtYWxsfWApXG4gICAgICAgIH1cbiAgICAgICAgZWxzZSBpZih0aGlzLnJlZ2lvbmFsU2V0dGluZ3MuY29sdW1uU2l6ZSA9PT0gU2luZ2xlQ29sdW1uU2l6ZS5sYXJnZSkge1xuICAgICAgICAgICAgY29udGVudERpdi5hZGRDbGFzcyhgJHtNdWx0aUNvbHVtbkxheW91dENTUy5TaW5nbGVDb2x1bW5MYXJnZX1gKVxuICAgICAgICB9XG4gICAgICAgIGVsc2UgaWYodGhpcy5yZWdpb25hbFNldHRpbmdzLmNvbHVtblNpemUgP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b3V0LnJpZ2h0IHx8XG4gICAgICAgbGF5b3V0ID09PSBDb2x1bW5MYXlvdXQudGhpcmQgfHxcbiAgICAgICBsYXlvdXQgPT09IENvbHVtbkxheW91dC5sYXN0ICkge1xuIFxuICAgICAgICAgcmV0dXJuIHRydWU7XG4gICAgIH1cbiBcbiAgICAgcmV0dXJuIGZhbHNlXG59IiwiLyoqXG4gKiBGaWxlOiAvc3JjL2RvbV9tYW5hZ2VyL3JlZ2lvbmFsX21hbmFnZXJzL2F1dG9MYXlvdXRSZWdpb25NYW5hZ2VyLnRzICAgICAgICAgKlxuICogQ3JlYXRlZCBEYXRlOiBTdW5kYXksIE1heSAyMm5kIDIwMjIsIDEwOjIzIHBtICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICpcbiAqIEF1dGhvcjogQ2FtZXJvbiBSb2JpbnNvbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAqXG4gKiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgKlxuICogQ29weXJpZ2h0IChjKSAyMDIyIENhbWVyb24gUm9iaW5zb24gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICpcbiAqL1xuXG5pbXBvcnQgeyBET01PYmplY3QsIERPTU9iamVjdFRhZywgVGFza0xpc3RET01PYmplY3QgfSBmcm9tICcuLi9kb21PYmplY3QnO1xuaW1wb3J0IHsgTXVsdGlDb2x1bW5TZXR0aW5ncyB9IGZyb20gXCIuLi8uLi9yZWdpb25TZXR0aW5nc1wiO1xuaW1wb3J0IHsgTXVsdGlDb2x1bW5MYXlvdXRDU1MsIE11bHRpQ29sdW1uU3R5bGVDU1MgfSBmcm9tICcuLi8uLi91dGlsaXRpZXMvY3NzRGVmaW5pdGlvbnMnO1xuaW1wb3J0IHsgUmVnaW9uTWFuYWdlciB9IGZyb20gJy4vcmVnaW9uTWFuYWd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UmVuZGVyZWRIZWlnaHQgaWYgaXQgaXMgMCBhbmQgaWYgaXQgaXMgbm90IGFuIHVucmVuZGVyZWQgZWxlbWVudCBzdWNoIGFzIGEgZW5kcmVnaW9uIHRhZy5cbiAgICAgICAgICAgICAgICBpZihlbC5lbGVtZW50UmVuZGVyZWRIZWlnaHQgPT09IDAgJiZcbiAgICAgICAgICAgICAgICAgICAgZWwudGFnICE9PSBET01PYmplY3RUYWcuY29sdW1uQnJlYWsgJiZcbiAgICAgICAgICAgICAgICAgICAgZWwudGFnICE9PSBET01PYmplY3RUYWcuZW5kUmVnaW9uICYmXG4gICAgICAgICAgICAgICAgICAgIGVsLnRhZyAhPT0gRE9NT2JqZWN0VGFnLnJlZ2lvblNldHRpbmdzICYmXG4gICAgICAgICAgICAgICAgICAgIGVsLnRhZyAhPT0gRE9NT2JqZWN0VGFnLnN0YXJ0UmVnaW9uKSB7XG4gICAgXG4gICAgICAgICAgICAgICAgICAgIC8vIEFkZCBlbGVtZW50IHRvIHJlbmRlcmVkIGRpdiBzbyB3ZSBjYW4gZXh0cmFjdCB0aGUgcmVuZGVyZWQgaGVpZ2h0LlxuICAgICAgICAgICAgICAgICAgICBjb2x1bW5Db250ZW50RGl2c1swXS5hcHBlbmRDaGlsZChlbC5vcmlnaW5hbEVsZW1lbnQpXG4gICAgICAgICAgICAgICAgICAgIGVsLmVsZW1lbnRSZW5kZXJlZEhlaWdodCA9IGVsLm9yaWdpbmFsRWxlbWVudC5jbGllbnRIZWlnaHRcbiAgICAgICAgICAgICAgICAgICAgY29sdW1uQ29udGVudERpdnNbMF0ucmVtb3ZlQ2hpbGQoZWwub3JpZ2luYWxFbGVtZW50KVxuICAgICAgICAgICAgICAgIH1cbiAgICBcbiAgICAgICAgICAgICAgICByZXR1cm4gZWwuZWxlbWVudFJlbmRlcmVkSGVpZ2h0IFxuICAgICAgICAgICAgfSkucmVkdWNlKChwcmV2OiBudW1iZXIsIGN1cnI6IG51bWJlcikgPT4geyByZXR1cm4gcHJldiArIGN1cnIgfSwgMCk7XG4gICAgICAgICAgICBsZXQgbWF4Q29sdW1uQ29udGVudEhlaWdodCA9IE1hdGgudHJ1bmModG90YWxIZWlnaHQgLyBzZXR0aW5ncy5udW1iZXJPZkNvbHVtbnMpO1xuXG4gICAgICAgICAgICBmb3IobGV0IGkgPSAwOyBpIDwgY29sdW1uQ29udGVudERpdnMubGVuZ3RoOyBpKyspIHtcbiAgICAgICAgICAgICAgICBmb3IgKGxldCBqID0gY29sdW1uQ29udGVudERpdnNbaV0uY2hpbGRyZW4ubGVuZ3RoIC0gMTsgaiA+PSAwOyBqLS0pIHtcbiAgICAgICAgICAgICAgICAgICAgY29sdW1uQ29udGVudERpdnNbaV0uY2hpbGRyZW5bal0uZGV0YWNoKCk7XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICBsZXQgY29sdW1uSW5kZXggPSAwO1xuICAgICAgICAgICAgbGV0IGN1cnJlbnRDb2x1bW5IZWlnaHQgPSAwO1xuICAgICAgICAgICAgZnVuY3Rpb24gY2hlY2tTaG91bGRTd2l0Y2hDb2x1bW5zKG5leHRFbGVtZW50SGVpZ2h0OiBudW1iZXIpIHtcbiAgICBcbiAgICAgICAgICAgICAgICBpZiAoY3VycmVudENvbHVtbkhlaWdodCArIG5leHRFbGVtZW50SGVpZ2h0ID4gbWF4Q29sdW1uQ29udGVudEhlaWdodCAmJlxuICAgICAgICAgICAgICAgICAgICAoY29sdW1uSW5kZXggKyAxKSA8IHNldHRpbmdzLm51bWJlck9mQ29sdW1ucykge1xuICAgIFxuICAgICAgICAgICAgICAgICAgICBjb2x1bW5JbmRleCsrO1xuICAgICAgICAgICAgICAgICAgICBjdXJyZW50Q29sdW1uSGVpZ2h0ID0gMDtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9XG5cbiAgICAgICAgICAgIGZvciAobGV0IGkgPSAwOyBpIDwgcmVnaW9uRWxlbWVudHMubGVuZ3RoOyBpKyspIHtcblxuICAgICAgICAgICAgICAgIGlmIChyZWdpb25FbGVtZW50c1tpXS50YWcgPT09IERPTU9iamVjdFRhZy5ub25lIHx8XG4gICAgICAgICAgICAgICAgICAgIHJlZ2lvbkVsZW1lbnRzW2ldLnRhZyA9PT0gRE9NT2JqZWN0VGFnLmNvbHVtbkJyZWFrKSB7XG4gICAgXG4gICAgICAgICAgICAgICAgICAgIC8qKlxuICAgICAgICAgICAgICAgICAgICAgKiBIZXJlIHdlIGNoZWNrIGlmIHdlIG5lZWQgdG8gc3dhcCB0byB0aGUgbmV4dCBjb2x1bW4gZm9yIHRoZSBjdXJyZW50IGVsZW1lbnQuXG4gICAgICAgICAgICAgICAgICAgICAqIElmIHRoZSB1c2VyIHdhbnRzIHRvIGtlZXAgaGVhZGluZ3Mgd2l0aCB0aGUgY29udGVudCBiZWxvdyBpdCB3ZSBhbHNvIG1ha2Ugc3VyZVxuICAgICAgICAgICAgICAgICAgICAgKiB0aGF0IHRoZSBsYXN0IGl0ZW0gaW4gYSBjb2x1bW4gaXMgbm90IGEgaGVhZGVyIGVsZW1lbnQgYnkgdXNpbmcgdGhlIGhlYWRlciBhbmRcbiAgICAgICAgICAgICAgICAgICAgICogdGhlIG5leHQgZWxlbWVudCdzIGhlaWdodCBhcyB0aGUgaGVpZ2h0IHZhbHVlLiBcbiAgICAgICAgICAgICAgICAgICAgICovXG4gICAgICAgICAgICAgICAgICAgIGlmKGhhc0hlYWRlcihyZWdpb25FbGVtZW50c1tpXS5vcmlnaW5hbEVsZW1lbnQpID09PSB0cnVlKSB7IC8vIFRPRE86IEFkZCB0aGlzIGFzIHNlbGVjdGFibGUgb3B0aW9uLlxuICAgIFxuICAgICAgICAgICAgICAgICAgICAgICAgbGV0IGhlYWRlckFuZE5leHRFbGVtZW50SGVpZ2h0ID0gcmVnaW9uRWxlbWVudHNbaV0uZWxlbWVudFJlbmRlcmVkSGVpZ2h0O1xuICAgICAgICAgICAgICAgICAgICAgICAgaWYoaSA8IHJlZ2lvbkVsZW1lbnRzLmxlbmd0aCAtIDEpIHtcbiAgICBcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBoZWFkZXJBbmROZXh0RWxlbWVudEhlaWdodCArPSByZWdpb25FbGVtZW50c1tpICsgMV0uZWxlbWVudFJlbmRlcmVkSGVpZ2h0O1xuICAgICAgICAgICAgICAgICAgICAgICAgfVxuICAgIFxuICAgICAgICAgICAgICAgICAgICAgICAgY2hlY2tTaG91bGRTd2l0Y2hDb2x1bW5zKGhlYWRlckFuZE5leHRFbGVtZW50SGVpZ2h0KTtcbiAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICBlbHNlIHtcbiAgICBcbiAgICAgICAgICAgICAgICAgICAgICAgIGNoZWNrU2hvdWxkU3dpdGNoQ29sdW1ucyhyZWdpb25FbGVtZW50c1tpXS5lbGVtZW50UmVuZGVyZWRIZWlnaHQpO1xuICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgIGN1cnJlbnRDb2x1bW5IZWlnaHQgKz0gcmVnaW9uRWxlbWVudHNbaV0uZWxlbWVudFJlbmRlcmVkSGVpZ2h0XG4gICAgXG4gICAgXG4gICAgICAgICAgICAgICAgICAgIC8qKlxuICAgICAgICAgICAgICAgICAgICAgKiBXZSBzdG9yZSB0aGUgZWxlbWVudHMgaW4gYSB3cmFwcGVyIGNvbnRhaW5lciB1bnRpbCB3ZSBkZXRlcm1pbmUgaWYgd2Ugd2FudCB0byBcbiAgICAgICAgICAgICAgICAgICAgICogdXNlIHRoZSBvcmlnaW5hbCBlbGVtZW50IG9yIGEgY2xvbmUgb2YgdGhlIGVsZW1lbnQuIFRoaXMgaGVscHMgdXMgYnkgYWxsb3dpbmcgXG4gICAgICAgICAgICAgICAgICAgICAqIHVzIHRvIGNyZWF0ZSBhIHZpc3VhbCBvbmx5IGNsb25lIHdoaWxlIHRoZSB1cGRhdGUgbG9vcCBtb3ZlcyB0aGUgb3JpZ2luYWwgZWxlbWVudCBcbiAgICAgICAgICAgICAgICAgICAgICogaW50byB0aGUgY29sdW1ucy5cbiAgICAgICAgICAgICAgICAgICAgICovXG4gICAgICAgICAgICAgICAgICAgIGxldCBlbGVtZW50ID0gY3JlYXRlRGl2KHtcbiAgICAgICAgICAgICAgICAgICAgICAgIGNsczogTXVsdGlDb2x1bW5MYXlvdXRDU1MuQ29sdW1uRHVhbEVsZW1lbnRDb250YWluZXIsXG4gICAgICAgICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgICAgICAgICByZWdpb25FbGVtZW50c1tpXS5lbGVtZW50Q29udGFpbmVyID0gZWxlbWVudDtcbiAgICBcbiAgICAgICAgICAgICAgICAgICAgbGV0IGNsb25lZEVsZW1lbnQgPSByZWdpb25FbGVtZW50c1tpXS5jbG9uZWRFbGVtZW50O1xuICAgICAgICAgICAgICAgICAgICBpZihyZWdpb25FbGVtZW50c1tpXS5jbG9uZWRFbGVtZW50ID09PSBudWxsKSB7XG5cbiAgICAgICAgICAgICAgICAgICAgICAgIGNsb25lZEVsZW1lbnQgPSByZWdpb25FbGVtZW50c1tpXS5vcmlnaW5hbEVsZW1lbnQuY2xvbmVOb2RlKHRydWUpIGFzIEhUTUxEaXZFbGVtZW50O1xuICAgICAgICAgICAgICAgICAgICAgICAgbGV0IGhlYWRpbmdDb2xsYXBzZUVsZW1lbnQgPSBnZXRIZWFkaW5nQ29sbGFwc2VFbGVtZW50KGNsb25lZEVsZW1lbnQpO1xuICAgICAgICAgICAgICAgICAgICAgICAgaWYoaGVhZGluZ0NvbGxhcHNlRWxlbWVudCAhPT0gbnVsbCkge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIC8vIFRoaXMgcmVtb3ZlcyB0aGUgY29sbGFwc2UgYXJyb3cgZnJvbSB0aGUgdmlldyBpZiBpdCBleGlzdHMuXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgaGVhZGluZ0NvbGxhcHNlRWxlbWVudC5kZXRhY2goKTtcbiAgICAgICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgXG4gICAgICAgICAgICAgICAgICAgICAgICByZWdpb25FbGVtZW50c1tpXS5jbG9uZWRFbGVtZW50ID0gY2xvbmVkRWxlbWVudDtcbiAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICBlbGVtZW50LmFwcGVuZENoaWxkKGNsb25lZEVsZW1lbnQpO1xuICAgIFxuICAgICAgICAgICAgICAgICAgICBpZiAocmVnaW9uRWxlbWVudHNbaV0gaW5zdGFuY2VvZiBUYXNrTGlzdERPTU9iamVjdCkge1xuICAgIFxuICAgICAgICAgICAgICAgICAgICAgICAgdGhpcy5maXhDbG9uZWRDaGVja0xpc3RCdXR0b25zKHJlZ2lvbkVsZW1lbnRzW2ldIGFzIFRhc2tMaXN0RE9NT2JqZWN0LCB0cnVlKTtcbiAgICAgICAgICAgICAgICAgICAgfVxuICAgIFxuICAgICAgICAgICAgICAgICAgICBpZiAoZWxlbWVudCAhPT0gbnVsbCAmJiBcbiAgICAgICAgICAgICAgICAgICAgICAgIGNvbHVtbkNvbnRlbnREaXZzW2NvbHVtbkluZGV4XSAmJiBcbiAgICAgICAgICAgICAgICAgICAgICAgIHJlZ2lvbkVsZW1lbnRzW2ldLnRhZyAhPT0gRE9NT2JqZWN0VGFnLmNvbHVtbkJyZWFrKSB7XG4gICAgXG4gICAgICAgICAgICAgICAgICAgICAgICBjb2x1bW5Db250ZW50RGl2c1tjb2x1bW5JbmRleF0uYXBwZW5kQ2hpbGQoZWxlbWVudCk7XG4gICAgICAgICAgICAgICAgICAgICAgICByZWdpb25FbGVtZW50c1tpXS5lbGVtZW50UmVuZGVyZWRIZWlnaHQgPSBlbGVtZW50LmNsaWVudEhlaWdodDtcbiAgICAgICAgICAgICAgICAgICAgfVxuICAgIFxuICAgICAgICAgICAgICAgICAgICAvKipcbiAgICAgICAgICAgICAgICAgICAgICogSWYgdGhlIHRhZyBpcyBhIGNvbHVtbiBicmVhayB3ZSB1cGRhdGUgdGhlIGNvbHVtbiBpbmRleCBhZnRlclxuICAgICAgICAgICAgICAgICAgICAgKiBhcHBlbmRpbmcgdGhlIGl0ZW0gdG8gdGhlIGNvbHVtbiBkaXYuIFRoaXMga2VlcHMgdGhlIG1haW4gRE9NXG4gICAgICAgICAgICAgICAgICAgICAqIGNsZWFuZXIgYnkgcmVtb3Zpbmcgb3RoZXIgaXRlbXMgYW5kIHBsYWNpbmcgdGhlbSBhbGwgd2l0aGluXG4gICAgICAgICAgICAgICAgICAgICAqIGEgcmVnaW9uIGNvbnRhaW5lci5cbiAgICAgICAgICAgICAgICAgICAgICogXG4gICAgICAgICAgICAgICAgICAgICAqIFJlbW92aW5nIHRoZSBlbmQgY29sdW1uIHRhZyBhcyBhbiBvcHRpb24gZm9yIG5vdy5cbiAgICAgICAgICAgICAgICAgICAgICovXG4gICAgICAgICAgICAgICAgICAgIC8vIGlmIChyZWdpb25FbGVtZW50c1tpXS50YWcgPT09IERPTU9iamVjdFRhZy5jb2x1bW5CcmVhayAmJlxuICAgICAgICAgICAgICAgICAgICAvLyAgICAoY29sdW1uSW5kZXggKyAxKSA8IHNldHRpbmdzLm51bWJlck9mQ29sdW1ucykge1xuICAgIFxuICAgICAgICAgICAgICAgICAgICAvLyAgICAgY29sdW1uSW5kZXgrKztcbiAgICAgICAgICAgICAgICAgICAgLy8gICAgIGN1cnJlbnRDb2x1bW5IZWlnaHQgPSAwO1xuICAgICAgICAgICAgICAgICAgICAvLyB9XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfVxuICAgICAgICB9XG5cbiAgICAgICAgLyoqXG4gICAgICAgICAqIEF0dGVtcHQgdG8gYmFsYW5jZWQgdGhlIGVsZW1lbnRzLiBXZSBuZWVkIHRvIGl0ZXJhdGUgb3ZlciB0aGUgZWxlbWVudHMgbXVsdGlwbGUgdGltZXMgYmVjYXVzZVxuICAgICAgICAgKiBvdXIgaW5pdGlhbCBiYWxhbmNlIGVzdGltYXRlIG1heSBub3QgYm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AgICAgICAgICAgIGJyZWFrO1xuICAgICAgICAgICAgfVxuICAgICAgICB9XG4gICAgfVxuXG4gICAgcHVibGljIHVwZGF0ZVJlbmRlcmVkTWFya2Rvd24oKSB7XG5cbiAgICAgICAgZm9yIChsZXQgaSA9IDA7IGkgPCB0aGlzLmRvbUxpc3QubGVuZ3RoOyBpKyspIHtcblxuICAgICAgICAgICAgbGV0IGVsID0gdGhpcy5kb21MaXN0W2ldXG4gICAgICAgICAgICBsZXQgb3JpZ2luYWxDbGllbnRIZWlnaHQgPSAwO1xuICAgICAgICAgICAgaWYgKGVsLm9yaWdpbmFsRWxlbWVudCkge1xuICAgICAgICAgICAgICAgIG9yaWdpbmFsQ2xpZW50SGVpZ2h0ID0gZWwub3JpZ2luYWxFbGVtZW50LmNsaWVudEhlaWdodFxuICAgICAgICAgICAgfVxuICAgICAgICAgICAgbGV0IGNsb25lZENsaWVudEhlaWdodCA9IDA7XG4gICAgICAgICAgICBpZiAoZWwuY2xvbmVkRWxlbWVudCkge1xuICAgICAgICAgICAgICAgIGNsb25lZENsaWVudEhlaWdodCA9IGVsLmNsb25lZEVsZW1lbnQuY2xpZW50SGVpZ2h0XG4gICAgICAgICAgICB9XG5cbiAgICAgICAgICAgIGlmIChvcmlnaW5hbENsaWVudEhlaWdodCA8IGNsb25lZENsaWVudEhlaWdodCkge1xuICAgICAgICAgICAgICAgIHRoaXMuZG9tTGlzdFtpXS5lbGVtZW50UmVuZGVyZWRIZWlnaHQgPSBjbG9uZWRDbGllbnRIZWlnaHQ7XG4gICAgICAgICAgICB9XG4gICAgICAgICAgICBlbHNlIHtcbiAgICAgICAgICAgICAgICB0aGlzLmRvbUxpc3RbaV0uZWxlbWVudFJlbmRlcmVkSGVpZ2h0ID0gb3JpZ2luYWxDbGllbnRIZWlnaHQ7XG4gICAgICAgICAgICB9XG4gICAgICAgIH1cblxuICAgICAgICBsZXQgdmFsaWRDb2x1bW5zID0gdHJ1ZTtcbiAgICAgICAgaWYodGhpcy5jb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uZENoaWxkKGVsLm9yaWdpbmFsRWxlbWVudClcbiAgICAgICAgICAgICAgICAgICAgZWwuZWxlbWVudFJlbmRlcmVkSGVpZ2h0ID0gZWwub3JpZ2luYWxFbGVtZW50LmNsaWVudEhlaWdodFxuICAgICAgICAgICAgICAgICAgICB0aGlzLmNvbHVtblBhcmVudC5yZW1vdmVDaGlsZChlbC5vcmlnaW5hbEVsZW1lbnQpXG4gICAgICAgICAgICAgICAgfVxuICAgIFxuICAgICAgICAgICAgICAgIHJldHVybiBlbC5lbGVtZW50UmVuZGVyZWRIZWlnaHQgXG4gICAgICAgICAgICB9KS5yZWR1Y2UoKHByZXY6IG51bWJlciwgY3VycjogbnVtYmVyKSA9PiB7IHJldHVybiBwcmV2ICsgY3VyciB9LCAwKTtcbiAgICAgICAgICAgIGxldCBtYXhDb2x1bW5Db250ZW50SGVpZ2h0ID0gTWF0aC50cnVuYyh0b3RhbEhlaWdodCAvIHRoaXMucmVnaW9uYWxTZXR0aW5ncy5udW1iZXJPZkNvbHVtbnMpO1xuXG4gICAgICAgICAgICBmb3IobGV0IGkgPSAwOyBpIDwgdGhpcy5jb2x1bW5EaXZzLmxlbmd0aCAtIDE7IGkrKykge1xuXG4gICAgICAgICAgICAgICAgbGV0IGNvbHVtbkhlaWdodCA9IDBcbiAgICAgICAgICAgICAgICBmb3IobGV0IGogPSAwOyBqIDwgdGhpcy5jb2x1bW5EaXZzW2ldLmNoaWxkcmVuLmxlbmd0aDsgaisrKSB7XG4gICAgICAgICAgICAgICAgICAgIGNvbHVtbkhlaWdodCArPSB0aGlzLmNvbHVtbkRpdnNbaV0uY2hpbGRyZW5bal0uY2xpZW50SGVpZ2h0XG4gICAgICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICAgICAgaWYoY29sdW1uSGVpZ2h0ID4gbWF4Q29sdW1uQ29udGVudEhlaWdodCkge1xuICAgICAgICAgICAgICAgICAgICB2YWxpZENvbHVtbnMgPSBmYWxzZTtcbiAgICAgICAgICAgICAgICAgICAgYnJlYWs7XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfVxuICAgICAgICB9XG5cbiAgICAgICAgaWYodmFsaWRDb2x1bW5zID09PSBmYWxzZSkge1xuXG4gICAgICAgICAgICB0aGlzLnJlbmRlckNvbHVtbk1hcmtkb3duKHRoaXMucmVnaW9uUGFyZW50LCB0aGlzLmRvbUxpc3QsIHRoaXMucmVnaW9uYWxTZXR0aW5ncyk7XG4gICAgICAgIH1cblxuICAgICAgICBzdXBlci51cGRhdGVSZW5kZXJlZE1hcmtkb3duKCk7XG4gICAgfVxufVxuXG4iLCIvKipcbiAqIEZpbGU6IC9zcmMvZG9tX21hbmFnZXIvcmVnaW9uYWxfbWFuYWdlcnMvcmVnaW9uTWFuYWdlckNvbnRhaW5lci50cyAgICAgICAgICAqXG4gKiBDcmVhdGVkIERhdGU6IFN1bmRheSwgTWF5IDIybmQgMjAyMiwgNzo1MCBwbSAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgKlxuICogQXV0aG9yOiBDYW1lcm9uIFJvYmluc29uICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICpcbiAqICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAqXG4gKiBDb3B5cmlnaHQgKGMpIDIwMjIgQ2FtZXJvbiBSb2JpbnNvbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgKlxuICovXG5cbmltcG9ydCB7IHBhcnNlQ29sdW1uU2V0dGluZ3MsIHBhcnNlU2luZ2xlQ29sdW1uU2V0dGluZ3MgfSBmcm9tIFwiLi4vLi4vdXRpbGl0aWVzL3NldHRpbmdzUGFyc2VyXCI7XG5pbXBvcnQgeyBET01PYmplY3QgfSBmcm9tICcuLi9kb21PYmplY3QnO1xuaW1wb3J0IHsgTXVsdGlDb2x1bW5TZXR0aW5ncywgZ2V0RGV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IHRyeSBhZ2FpbiBsYXRlci5cIlxyXG4gICAgICAgICAgICAgICAgICAgICk7XHJcbiAgICAgICAgICAgICAgICB9XHJcbiAgICAgICAgICAgIH1cclxuICAgICAgICB9KTtcclxuXHJcbiAgICAgICAgdGhpcy5hZGRDb21tYW5kKHsgICAgICAgICAgICBcclxuICAgICAgICAgICAgaWQ6IGBhZGQtSURzLVRvLW11bHRpLWNvbHVtbi1yZWdpb25gLFxyXG4gICAgICAgICAgICBuYW1lOiBgRml4IE1pc3NpbmcgSURzIGZvciBNdWx0aS1Db2x1bW4gUmVnaW9uc2AsXHJcbiAgICAgICAgICAgIGVkaXRvckNhbGxiYWNrOiAoZWRpdG9yLCB2aWV3KSA9PiB7XHJcblxyXG4gICAgICAgICAgICAgICAgdHJ5IHtcclxuICAgICAgICAgICAgICAgICAgICAvKipcclxuICAgICAgICAgICAgICAgICAgICAgKiBOb3Qgc3VyZSBpZiB0aGVyZSBpcyBhbiBlYXNpZXIgd2F5IHRvIGRvIHRoaXMuXHJcbiAgICAgICAgICAgICAgICAgICAgICogXHJcbiAgICAgICAgICAgICAgICAgICAgICogR2V0IGFsbCBvZiB0aGUgbGluZXMgb2YgdGhlIGRvY3VtZW50IHNwbGl0IGJ5IG5ld2xpbmVzLlxyXG4gICAgICAgICAgICAgICAgICAgICAqL1xyXG4gICAgICAgICAgICAgICAgICAgIGxldCBkb2NUZXh0ID0gZWRpdG9yLmdldFJhbmdlKHsgbGluZTogMCwgY2g6IDAgfSwgeyBsaW5lOiBlZGl0b3IuZ2V0RG9jKCkubGluZUNvdW50KCksIGNoOiAwfSk7XHJcbiAgICAgICAgICAgICAgICAgICAgbGV0IGxpbmVzID0gZG9jVGV4dC5zcGxpdChcIlxcblwiKTtcclxuXHJcbiAgICAgICAgICAgICAgICAgICAgbGV0IHN0YXJ0Q29kZWJsb2NrID0gbXVsdGlDb2x1bW5QYXJzZXIuZmluZFN0YXJ0Q29kZWJsb2NrKGRvY1RleHQpO1xyXG4gICAgIC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2UocmVwbGFjZW1lbnRUZXh0LCB7IGxpbmU6IHN0YXJ0UmVwbGFjZUxpbmVzLCBjaDogMCB9LCBcclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB7IGxpbmU6IHN0YXJ0UmVwbGFjZUxpbmVzLCBjaDogc3RhcnRDb2RlYmxvY2subWF0Y2hMZW5ndGh9KTtcclxuXHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBzdGFydFJlcGxhY2VMaW5lcyArPSAxOyAvLyB3ZSBhZGRlZCBhIGxpbmUgdG8gdGhlIGRvYyBzbyB1cGRhdGUgb3VyIG9mZnNldC5cclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIG51bUNvZGVibG9ja3NVcGRhdGVkICs9IDE7XHJcbiAgICAgICAgICAgICAgICAgICAgICAgIH1cclxuICAgICAgICAgICAgICAgICAgICAgICAgbGluZU9mZnNldCA9IHN0YXJ0UmVwbGFjZUxpbmVzXHJcblxyXG4gICAgICAgICAgICAgICAgICAgICAgICBkb2NUZXh0ID0gZG9jVGV4dC5zbGljZShzdGFydENvZGVibG9jay5zdGFydFBvc2l0aW9uICsgc3RhcnRDb2RlYmxvY2subWF0Y2hMZW5ndGgpO1xyXG4gICAgICAgICAgICAgICAgICAgICAgICBzdGFydENvZGVibG9jayA9IG11bHRpQ29sdW1uUGFyc2VyLmZpbmRTdGFydENvZGVibG9jayhkb2NUZXh0KTtcclxuICAgICAgICAgICAgICAgICAgICB9XHJcblxyXG4gICAgICAgICAgICAgICAgICAgIC8qKlxyXG4gICAgICAgICAgICAgICAgICAgICAqIExvb3AgdGhyb3VnaCBhbGwgb2YgdGhlIGxpbmVzIGNoZWNraW5nIGlmIHRoZSBsaW5lIGlzIGEgXHJcbiAgICAgICAgICAgICAgICAgICAgICogc3RhcnQgdGFnIGFuZCBpZiBzbyBpcyBpdCBtaXNzaW5nIGFuIElELlxyXG4gICAgICAgICAgICAgICAgICAgICAqL1xyXG4gICAgICAgICAgICAgICAgICAgIGxldCBsaW5lc1dpdGhvdXRJRHMgPSBbXVxyXG4gICAgICAgICAgICAgICAgICAgIGxldCB0ZXh0V2l0aG91dElEcyA9IFtdXHJcbiAgICAgICAgICAgICAgICAgICAgZm9yKGxldCBpID0gMDsgaSA8IGxpbmVzLmxlbmd0aDsgaSsrKSB7XHJcblxyXG4gICAgICAgICAgICAgICAgICAgICAgICBsZXQgZGF0YSA9IG11bHRpQ29sdW1uUGFyc2VyLmlzU3RhcnRUYWdXaXRoSUQobGluZXNbaV0pO1xyXG4gICAgICAgICAgICAgICAgICAgICAgICBpZihkYXRhLmlzU3RhcnRUYWcgPT09IHRydWUgJiYgZGF0YS5oYXNLZXkgPT09IGZhbHNlKSB7XHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBsaW5lc1dpdGhvdXRJRHMucHVzaChpKTtcclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRleHRXaXRob3V0SURzLnB1c2gobGluZXNbaV0pXHJcbiAgICAgICAgICAgICAgICAgICAgICAgIH1cclxuICAgICAgICAgICAgICAgICAgICB9ICAgICAgICAgICAgICAgICAgICBcclxuXHJcbiAgICAgICAgICAgICAgICAgICAgaWYobGluZXNXaXRob3V0SURzLmxlbmd0aCA9PT0gMCAmJiBudW1Db2RlYmxvY2tzVXBkYXRlZCA9PT0gMCkge1xyXG4gICAgICAgICAgICAgICAgICAgICAgICBuZXcgTm90aWNlIChcIkZvdW5kIDAgbWlzc2luZyBJRHMgaW4gdGhlIGN1cnJlbnQgZG9jdW1lbnQuXCIpO1xyXG4gICAgICAgICAgICAgICAgICAgICAgICByZXR1cm47XHJcbiAgICAgICAgICAgICAgICAgICAgfVxyXG5cclxuICAgICAgICAgICAgICAgICAgICAvKipcclxuICAgICAgICAgICAgICAgICAgICAgKiBOb3cgbG9vcCB0aHJvdWdoIGVhY2ggbGluZSB0aGF0IGlzIG1pc3NpbmcgYW4gSUQgYW5kXHJcbiAgICAgICAgICAgICAgICAgICAgICogZ2VuZXJhdGUgYSByYW5kb20gSUQgYW5kIHJlcGxhY2UgdGhlIG9yaWdpbmFsIHRleHQuXHJcbiAgICAgICAgICAgICAgICAgICAgICovXHJcbiAgICAgICAgICAgICAgICAgICAgZm9yKGxldCBpID0gMDsgaSA8IGxpbmVzV2l0aG91dElEcy5sZW5ndGg7IGkrKykge1xyXG5cclxuICAgICAgICAgICAgICAgICAgICAgICAgbGV0IG9yaWdpbmFsVGV4dCA9IHRleHRXaXRob3V0SURzW2ldXHJcbiAgICAgICAgICAgICAgICAgICAgICAgIGxldCB0ZXh0ID0gb3JpZ2luYWxUZXh0O1xyXG4gICAgICAgICAgICAgICAgICAgICAgICB0ZXh0ID0gdGV4dC50cmltRW5kKCk7XHJcbiAgICAgICAgICAgICAgICAgICAgICAgIGlmKHRleHQuY2hhckF0KHRleHQubGVuZ3RoIC0gMSkgPT09IFwiOlwiKSB7XHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB0ZXh0ID0gdGV4dC5zbGljZSgwLCB0ZXh0Lmxlbmd0aC0xKTtcclxuICAgICAgICAgICAgICAgICAgICAgICAgfVxyXG4gICAgICAgICAgICAgICAgICAgICAgICB0ZXh0ID0gYCR7dGV4dH06IElEXyR7Z2V0VUlEKDQpfWA7XHJcblxyXG4gICAgICAgICAgICAgICAgICAgICAgICBlZGl0b3IucmVwbGFjZVJhbmdlKHRleHQsIHsgbGluZTogbGluZXNXaXRob3V0SURzW2ldLCBjaDogMCB9LCBcclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB7IGxpbmU6IGxpbmVzV2l0aG91dElEc1tpXSwgY2g6IG9yaWdpbmFsVGV4dC5sZW5ndGh9KTtcclxuICAgICAgICAgICAgICAgICAgICB9XHJcblxyXG4gICAgICAgICAgICAgICAgICAgIG5ldyBOb3RpY2UgKGBSZXBsYWNlZCAke2xpbmVzV2l0aG91dElEcy5sZW5ndGggKyBudW1Db2RlYmxvY2tzVXBkYXRlZH0gbWlzc2luZyBJRChzKSBpbiB0aGUgY3VycmVudCBkb2N1bWVudC5gKTtcclxuICAgICAgICAgICAgICAgIH0gY2F0Y2ggKGUpIHtcclxuICAgICAgICAgICAgICAgICAgICBuZXcgTm90aWNlKFxyXG4gICAgICAgICAgICAgICAgICAgICAgICBcIkVuY291bnRlcmVkIGFuIGVycm9yIGFkZGlnbiBJRHMgdG8gbXVsdGktY29sdW1uIHJlZ2lvbnMuIFBsZWFzZSB0cnkgYWdhaW4gbGF0ZXIuXCJcclxuICAgICAgICAgICAgICAgICAgICApO1xyXG4gICAgICAgICAgICAgICAgfVxyXG4gICAgICAgICAgICB9XHJcbiAgICAgICAgfSk7XHJcblxyXG4gICAgICAgIHRoaXMucmVnaXN0ZXJJbnRlcnZhbCh3aW5kb3cuc2V0SW50ZXJ2YWwoKCkgPT4ge1xyXG4gICAgICAgICAgICBcclxuICAgICAgICAgICAgdGhpcy5VcGRhdGVPcGVuRmlsZVByZXZpZXdzKCk7XHJcbiAgICAgICAgfSwgNTAwKSk7XHJcbiAgICB9XHJcblxyXG4gICAgVXBkYXRlT3BlbkZpbGVQcmV2aWV3cygpIHtcclxuXHJcbiAgICAgICAgbGV0IGZpbGVNYW5hZ2VycyA9IHRoaXMuZ2xvYmFsTWFuYWdlci5nZXRBbGxGaWxlTWFuYWdlcnMoKTtcclxuICAgICAgICBmaWxlTWFuYWdlcnMuZm9yRWFjaChlbGVtZW50ID0+IHtcclxuICAgICAgICAgICAgXHJcbiAgICAgICAgICAgIGxldCByZWdpb25hbE1hbmFnZXJzID0gZWxlbWVudC5nZXRBbGxSZWdpb25hbE1hbmFnZXJzKCk7XHJcbiAgICAgICAgICAgIHJlZ2lvbmFsTWFuYWdlcnMuZm9yRWFjaChyZWdpb25NYW5hZ2VyID0+IHtcclxuICAgICAgICAgICAgICAgIFxyXG4gICAgICAgICAgICAgICAgcmVnaW9uTWFuYWdlci51cGRhdGVSZW5kZXJlZ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gICAgICAgICAgICAvLyBHZXQgdGhlIGluZm8gZm9yIG91ciBjdXJyZW50IGNvbnRleHQgYW5kIHRoZW4gY2hlY2tcclxuICAgICAgICAgICAgLy8gaWYgdGhlIGVudGlyZSB0ZXh0IGNvbnRhaW5zIGEgc3RhcnQgdGFnLiBJZiB0aGVyZSBpc1xyXG4gICAgICAgICAgICAvLyBubyBzdGFydCB0YWcgaW4gdGhlIGRvY3VtZW50IHdlIGNhbiBqdXN0IHJldHVybiBhbmRcclxuICAgICAgICAgICAgLy8gaWdub3JlIHRoZSByZXN0IG9mIHRoZSBwYXJzaW5nLlxyXG4gICAgICAgICAgICBsZXQgaW5mbyA9IGN0eC5nZXRTZWN0aW9uSW5mbyhlbCk7XHJcblxyXG4gICAgICAgICAgICAvKipcclxuICAgICAgICAgICAgICogV2UgbmVlZCB0aGUgY29udGV4dCBpbmZvIHRvIHByb3Blcmx5IHBhcnNlIHNvIHJldHVybmluZyBoZXJlIFxyXG4gICAgICAgICAgICAgKiBpbmZvIGlzIG51bGwuIFRPRE86IFNldCBlcnJvciBpbiB2aWV3IGlmIHRoaXMgb2NjdXJzLlxyXG4gICAgICAgICAgICAgKi9cclxuICAgICAgICAgICAgaWYoIWluZm8pIHtcclxuXHJcbiAgICAgICAgICAgICAgICByZXR1cm47XHJcbiAgICAgICAgICAgIH1cclxuXHJcbiAgICAgICAgICAgIGxldCBkb2NTdHJpbmcgPSBpbmZvLnRleHQ7XHJcbiAgICAgICAgICAgIGxldCBkb2NMaW5lcyA9IGRvY1N0cmluZy5zcGxpdChcIlxcblwiKTtcclxuXHJcbiAgICAgICAgICAgIC8qKlxyXG4gICAgICAgICAgICAgKiBJZiB3ZSBlbmNvdW50ZXIgYSBzdGFydCB0YWcgb24gdGhlIGRvY3VtZW50IHdlIHNldCB0aGUgZmxhZyB0byBzdGFydFxyXG4gICAgICAgICAgICAgKiBwYXJzaW5nIHRoZSByZXN0IG9mIHRoZSBkb2N1bWVudC5cclxuICAgICAgICAgICAgICovXHJcbiAgICAgICAgICAgIGlmKG11bHRpQ29sdW1uUGFyc2VyLmNvbnRhaW5zU3RhcnRUYWcoZWwudGV4dENvbnRlbnQpIHx8IFxyXG4gICAgICAgICAgICAgICBtdWx0aUNvbHVtblBhcnNlci5jb250YWluc1N0YXJ0Q29kZUJsb2NrKGRvY1N0cmluZykpIHtcclxuXHJcbiAgICAgICAgICAgICAgICBmaWxlRE9NTWFuYWdlci5zZXRIYXNTdGFydFRhZygpO1xyXG4gICAgICAgICAgICB9XHJcblxyXG4gICAgICAgICAgICAvKiogXHJcbiAgICAgICAgICAgICAqIElmIHRoZSBkb2N1bWVudCBkb2VzIG5vdCBjb250YWluIGFueSBzdGFydCB0YWdzIHdlIGlnbm9yZSB0aGVcclxuICAgICAgICAgICAgICogcmVzdCBvZiB0aGUgcGFyc2luZy4gVGhpcyBpcyBvbmx5IHNldCB0byB0cnVlIG9uY2UgdGhlIGZpcnN0XHJcbiAgICAgICAgICAgICAqIHN0YXJ0IHRhZyBlbGVtZW50IGlzIHBhcnNlZCBhYm92ZS5cclxuICAgICAgICAgICAgICovXHJcbiAgICAgICAgICAgIGlmKGZpbGVET01NYW5hZ2VyLmdldEhhc1N0YXJ0VGFnKCkgPT09IGZhbHNlKSB7XHJcbiAgICAgICAgICAgICAgICByZXR1cm47XHJcbiAgICAgICAgICAgIH1cclxuXHJcbiAgICAgICAgICAgIC8qKlxyXG4gICAgICAgICAgICAgKiBUYWtlIHRoZSBpbmZvIHByb3ZpZGVkIGFuZCBnZW5lcmF0ZSB0aGUgcmVxdWlyZWQgdmFyaWFibGVzIGZyb20gXHJcbiAgICAgICAgICAgICAqIHRoZSBsaW5lIHN0YXJ0IGFuZCBlbmQgdmFsdWVzLlxyXG4gICAgICAgICAgICAgKi9cclxuICAgICAgICAgICAgbGV0IGxpbmVzQWJvdmVBcnJheSA9IGRvY0xpbmVzLnNsaWNlKDAsIGluZm8ubGluZVN0YXJ0KVxyXG4gICAgICAgICAgICBsZXQgbGluZ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24uXHJcbiAgICAgICAgICAgICAgICAgKi9cclxuICAgICAgICAgICAgICAgIGVsLmNoaWxkcmVuWzBdLmRldGFjaCgpO1xyXG4gICAgICAgICAgICAgICAgZWwuY2xhc3NMaXN0LmFkZChNdWx0aUNvbHVtbkxheW91dENTUy5SZWdpb25Sb290Q29udGFpbmVyRGl2KVxyXG4gICAgICAgICAgICAgICAgbGV0IHJlbmRlckVycm9yUmVnaW9uID0gZWwuY3JlYXRlRGl2KHtcclxuICAgICAgICAgICAgICAgICAgICBjbHM6IGAke011bHRpQ29sdW1uTGF5b3V0Q1NTLlJlZ2lvbkVycm9yQ29udGFpbmVyRGl2fSAke011bHRpQ29sdW1uU3R5bGVDU1MuUmVnaW9uRXJyb3JNZXNzYWdlfWAsXHJcbiAgICAgICAgICAgICAgICB9KTtcclxuICAgICAgICAgICAgICAgIGxldCByZW5kZXJDb2x1bW5SZWdpb24gPSBlbC5jcmVhdGVEaXYoe1xyXG4gICAgICAgICAgICAgICAgICAgIGNsczogTXVsdGlDb2x1bW5MYXlvdXRDU1MuUmVnaW9uQ29udGVudENvbnRhaW5lckRpdlxyXG4gICAgICAgICAgICAgICAgfSlcclxuXHJcbiAgICAgICAgICAgICAgICBsZXQgc3RhcnRCbG9ja0RhdGEgPSBtdWx0aUNvbHVtblBhcnNlci5nZXRTdGFydEJsb2NrQWJvdmVMaW5lKGxpbmVzT2ZFbGVtZW50KVxyXG4gICAgICAgICAgICAgICAgaWYoc3RhcnRCbG9ja0RhdGEgPT09IG51bGwpIHtcclxuICAgICAgICAgICAgICAgICAgICByZXR1cm47XHJcbiAgICAgICAgICAgICAgICB9XHJcbiAgICAgICAgICAgICAgICBcclxuICAgICAgICAgICAgICAgIGxldCByZWdpb25LZXkgPSBzdGFydEJsb2NrRGF0YS5zdGFydEJsb2NrS2V5O1xyXG4gICAgICAgICAgICAgICAgaWYoZmlsZURPTU1hbmFnZXIuY2hlY2tLZXlFeGlzdHMocmVnaW9uS2V5KSA9PT0gdHJ1ZSkge1xyXG5cclxuICAgICAgICAgICAgICAgICAgICBsZXQgeyBudW1iZXJPZlRhZ3MsIGtleXMgfSA9IG11bHRpQ29sdW1uUGFyc2VyLmNvdW50U3RhcnRUYWdzKGluZm8udGV4dCk7XHJcblxyXG4gICAgICAgICAgICAgICAgICAgIGxldCBudW1NYXRjaGVzID0gMDtcclxuICAgICAgICAgICAgICAgICAgICBmb3IobGV0IGkgPSAwOyBpIDwgbnVtYmVyT2ZUYWdzOyBpKyspIHtcclxuXHJcbiAgICAgICAgICAgICAgICAgICAgICAgIC8vIEJlY2F1c2Ugd2UgY2hlY2tlZCBpZiBrZXkgZXhpc3RzIG9uZSBvZiB0aGVzZSBoYXMgdG8gbWF0Y2guXHJcbiAgICAgICAgICAgICAgICAgICAgICAgIGlmKGtleXNbaV0gPT09IHJlZ2lvbktleSkge1xyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgbnVtTWF0Y2hlcysrO1xyXG4gICAgICAgICAgICAgICAgICAgICAgICB9XHJcbiAgICAgICAgICAgICAgICAgICAgfVxyXG5cclxuICAgICAgICAgICAgICAgICAgICAvLyBXZSBvbmx5IHdhbnQgdG8gZGlzcGxheSBhbiBlcnJvciBpZiB0aGVyZSBhcmUgbW9yZSB0aGFuIDIgb2YgdGhlIHNhbWUgaWQgYWNyb3NzXHJcbiAgICAgICAgICAgICAgICAgICAgLy8gdGhlIHdob2xlIGRvY3VtZW50LiBUaGlzIHByZXZlbnRzIGVycm9zIHdoZW4gb2JzaWRpYW4gcmVsb2FkcyB0aGUgd2hvbGUgZG9jdW1lbnRcclxuICAgICAgICAgICAgICAgICAgICAvLyBhbmQgdGhlcmUgYXJlIHR3byBvZiB0aGUgc2FtZSBrZXkgaW4gdGhlIG1hcC5cclxuICAgICAgICAgICAgICAgICAgICBpZihudW1NYXRjaGVzID49IDIpIHtcclxuICAgICAgICAgICAgICAgICAgICAgICAgaWYocmVnaW9uS2V5ID09PSBcIlwiKSB7XHJcbiAgICAgICAgICAg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cbiAgICAgICAgICAgICAgICBlbGVtZW50TWFya2Rvd25SZW5kZXJlci5vbnVubG9hZCA9ICgpID0+IHtcclxuICAgICAgICAgICAgICAgICAgICBpZihmaWxlRE9NTWFuYWdlcikge1xyXG4gICAgXHJcbiAgICAgICAgICAgICAgICAgICAgICAgIGZpbGVET01NYW5hZ2VyLnJlbW92ZVJlZ2lvbihzdGFydEJsb2NrRGF0YS5zdGFydEJsb2NrS2V5KTtcclxuICAgICAgICAgICAgICAgICAgICB9XHJcbiAgICAgICAgICAgICAgICB9O1xyXG4gICAgICAgICAgICAgICAgY3R4LmFkZENoaWxkKGVsZW1lbnRNYXJrZG93blJlbmRlcmVyKTtcclxuXHJcbiAgICAgICAgICAgICAgICAvKipcclxuICAgICAgICAgICAgICAgICAqIE5vdyB3ZSBoYXZlIGNyZWF0ZWQgb3VyIHJlZ2lvbmFsIG1hbmFnZXIgYW5kIGRlZmluZWQgd2hhdCBlbGVtZW50cyBcclxuICAgICAgICAgICAgICAgICAqIG5lZWQgdG8gYmUgcmVuZGVyZWQgaW50by4gU28gd2UgY2FuIHJldHVybiB3aXRob3V0IGFueSBtb3JlIHByb2Nlc3NpbmcuXHJcbiAgICAgICAgICAgICAgICAgKi9cclxuICAgICAgICAgICAgICAgIHJldHVyblxyXG4gICAgICAgICAgICB9XHJcbiAgICAgICAgICAgIC8vI2VuZHJlZ2lvbiBEZXByZWNpYXRlZCBTdGFydCBUYWdcclxuXHJcbiAgICAgICAgICAgIC8qKlxyXG4gICAgICAgICAgICAgKiBDaGVjayBpZiBhbnkgb2YgdGhlIGxpbmVzIGFib3ZlIHVzIGNvbnRhaW4gYSBzdGFydCBibG9jaywgYW5kIGlmXHJcbiAgICAgICAgICAgICAqIHNvIGdldCB0aGUgbGluZXMgZnJvbSBvdXIgY3VycmVudCBlbGVtZW50IHRvIHRoZSBzdGFydCBibG9jay5cclxuICAgICAgICAgICAgICovXHJcbiAgICAgICAgICAgIGxldCBzdGFydEJvY2tBYm92ZSA9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GQoZWwpO1xyXG4gICAgICAgICAgICBlbGVtZW50TWFya2Rvd25SZW5kZXJlci5vbnVubG9hZCA9ICgpID0+IHtcclxuXHJcbiAgICAgICAgICAgICAgICBpZihyZWdpb25hbENvbnRhaW5lciA9PT0gbnVsbCkge1xyXG4gICAgICAgICAgICAgICAgICAgIHJldHVyblxyXG4gICAgICAgICAgICAgICAgfVxyXG4gICAgICAgICAgICAgICAgXHJcbiAgICAgICAgICAgICAgICBsZXQgcmVnaW9uYWxNYW5hZ2VyOiBSZWdpb25NYW5hZ2VyID0gcmVnaW9uYWxDb250YWluZXIuZ2V0UmVnaW9uKCk7XHJcbiAgICAgICAgICAgICAgICBpZihyZWdpb25hbE1hbmFnZXIpIHtcclxuICAgICAgICAgICAgICAgICAgICBcclxuICAgICAgICAgICAgICAgICAgICAvLyBXZSBjYW4gYXR0ZW1wdCB0byB1cGRhdGUgdGhlIHZpZXcgaGVyZSBhZnRlciB0aGUgaXRlbSBpcyByZW1vdmVkXHJcbiAgICAgICAgICAgICAgICAgICAgLy8gYnV0IG5lZWQgdG8gZ2V0IHRoZSBpdGVtJ3MgcGFyZW50IGVsZW1lbnQgYmVmb3JlIHJlbW92aW5nIG9iamVjdCBmcm9tIG1hbmFnZXIuXHJcbiAgICAgICAgICAgICAgICAgICAgbGV0IHJlZ2lvblJlbmRlckRhdGE6IE11bHRpQ29sdW1uUmVuZGVyRGF0YSA9IHJlZ2lvbmFsTWFuYWdlci5nZXRSZWdpb25SZW5kZXJEYXRhKCk7XHJcblxyXG4gICAgICAgICAgICAgICAgICAgIHJlZ2lvbmFsTWFuYWdlci5yZW1vdmVPYmplY3QoY3VycmVudE9iamVjdC5VSUQpO1xyXG5cclxuICAgICAgICAgICAgICAgICAgICAvKipcclxuICAgICAgICAgICAgICAgICAgICAgKiBOZWVkIHRvIGNoZWNrIGhlcmUgaWYgZWxlbWVudCBpcyBudWxsIGFzIHRoaXMgY2xvc3VyZSB3aWxsIGJlIGNhbGxlZFxyXG4gICAgICAgICAgICAgICAgICAgICAqIHJlcGVhdGVkbHkgb24gZmlsZSBjaGFuZ2UuXHJcbiAgICAgICAgICAgICAgICAgICAgICovXHJcbiAgICAgICAgICAgICAgICAgICAgaWYocmVnaW9uUmVuZGVyRGF0YS5wYXJlbnRSZW5kZXJFbGVtZW50ID09PSBudWxsKSB7XHJcbiAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybjtcclxuICAgICAgICAgICAgICAgICAgICB9XHJcbiAgICAgICAgICAgICAgICAgICAgcmVnaW9uYWxNYW5hZ2VyLnJlbmRlclJlZ2lvbkVsZW1lbnRzVG9TY3JlZW4oKVxyXG4gICAgICAgICAgICAgICAgfVxyXG4gICAgICAgICAgICB9O1xyXG4gICAgICAgICAgICBjdHguYWRkQ2hpbGQoZWxlbWVudE1hcmtkb3duUmVuZGVyZXIpO1xyXG5cclxuICAgICAgICAgICAgbGV0IGVsZW1lbnRUZXh0U3BhY2VkID0gbGluZXNPZkVsZW1lbnQucmVkdWNlKChwcmV2LCBjdXJyKSA9PiB7XHJcbiAgICAgICAgICAgICAgICByZXR1cm4gcHJldiArIFwiXFxuXCIgKyBjdXJyO1xyXG4gICAgICAgICAgICB9KTtcclxuICAgICAgICAgICAgLyoqXHJcbiAgICAgICAgICAgICAqIE5vdyB3ZSBjaGVjayBpZiBvdXIgY3VycmVudCBlbGVtZW50IGlzIGEgc3BlY2lhbCBmbGFnIHNvIHdlIGNhblxyXG4gICAgICAgICAgICAgKiBwcm9wZXJseSBzZXQgdGhlIGVsZW1lbnQgdGFnIHdpdGhpbiB0aGUgcmVnaW9uYWwgbWFuYWdlci5cclxuICAgICAgICAgICAgICovXHJcbiAgICAgICAgICAgIGlmKG11bHRpQ29sdW1uUGFyc2VyLmNvbnRhaW5zRW5kVGFnKGVsLnRleHRDb250ZW50KSA9PT0gdHJ1ZSkge1xyXG5cclxuICAgICAgICAgICAgICAgIGN1cnJlbnRPYmplY3QuZWxlbWVudFR5cGUgPSBFbGVtZW50UmVuZ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xuXHJcbiAgICAgICAgICAgIGxldCBjaGlsZCA9IGRvY0NoaWxkcmVuW2ldO1xyXG4gICAgICAgICAgICBpZiAoY2hpbGQgaW5zdGFuY2VvZiBIVE1MRWxlbWVudCkge1xyXG4gICAgICAgICAgICAgICAgbGV0IGNoaWxkRWwgPSBjaGlsZCBhcyBIVE1MRWxlbWVudDtcclxuICAgICAgICAgICAgICAgIGlmIChpbkJsb2NrID09PSBmYWxzZSkge1xyXG4gICAgICAgICAgICAgICAgICAgIFxyXG4gICAgICAgICAgICAgICAgICAgIGxldCBmb3VuZEJsb2NrRGF0YSA9IGZhbHNlO1xyXG4gICAgICAgICAgICAgICAgICAgIGxldCByZWdpb25LZXkgPSBcIlwiO1xyXG5cclxuICAgICAgICAgICAgICAgICAgICBsZXQgYmxvY2tEYXRhID0gbXVsdGlDb2x1bW5QYXJzZXIuaXNTdGFydFRhZ1dpdGhJRChjaGlsZC50ZXh0Q29udGVudCk7XHJcbiAgICAgICAgICAgICAgICAgICAgaWYgKGJsb2NrRGF0YS5pc1N0YXJ0VGFnID09PSB0cnVlKSB7XHJcblxyXG4gICAgICAgICAgICAgICAgICAgICAgICBmb3VuZEJsb2NrRGF0YSA9IHRydWU7XHJcbiAgICAgICAgICAgICAgICAgICAgICAgIGlmIChibG9ja0RhdGEuaGFzS2V5ID09PSB0cnVlKSB7XHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBsZXQgZm91bmRLZXkgPSBtdWx0aUNvbHVtblBhcnNlci5nZXRTdGFydFRhZ0tleShjaGlsZC50ZXh0Q29udGVudCk7XHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBpZiAoZm91bmRLZXkgIT09IG51bGwpIHtcclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICByZWdpb25LZXkgPSBmb3VuZEtleTtcclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIH1cclxuICAgICAgICAgICAgICAgICAgICAgICAgfVxyXG4gICAgICAgICAgICAgICAgICAgIH1cclxuICAgICAgICAgICAgICAgICAgICBlbHNlIGlmKGJsb2NrRGF0YS5pc1N0YXJ0VGFnID09PSBmYWxzZSAmJiB0aGlzLmlzU3RhcnRDb2RlYmxvY2tJbkV4cG9ydChjaGlsZCkpIHtcclxuXHJcbiAgICAgICAgICAgICAgICAgICAgICAgIC8vIElmIHRoZSBzdGFydCB0YWcgZnJvbSB0aGUgb2xkIHZlcnNpb24gaXMgbnVsbCB3ZSB0aGVuIGNoZWNrIHRvIHNlZSBpZiB0aGUgZWxlbWVudCBpc1xyXG4gICAgICAgICAgICAgICAgICAgICAgICAvLyBhIGNvZGVibG9jayBzdGFydC4gSWYgaXQgaXMgd2UgdXNlIHRoZSBuZXh0IGF2YWlsYWJsZSBjb2RlYmxvY2sgZGF0YSB0byByZXRyaWV2ZSBvdXIgSUQuXHJcbiAgICAgICAgICAgICAgICAgICAgICAgIGxldCBjb2RlYmxvY2tUZXh0ID0gY29kZWJsb2NrU3RhcnRCbG9ja3Muc2hpZnQoKTtcclxuICAgICAgICAgICAgICAgICAgICAgICAgaWYoY29kZWJsb2NrVGV4dCA9PT0gdW5kZWZpbmVkKSB7XHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBjb25zb2xlLmVycm9yKFwiRm91bmQgdW5kZWZpbmVkIGNvZGVibG9jayBkYXRhIHdoZW4gZXhwb3J0aW5nLlwiKVxyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuO1xyXG4gICAgICAgICAgICAgICAgICAgICAgICB9XHJcblxyXG4gICAgICAgICAgICAgICAgICAgICAgICBsZXQgaWQgPSBwYXJzZVN0YXJ0UmVnaW9uQ29kZUJsb2NrSUQoY29kZWJsb2NrVGV4dCk7XHJcbiAgICAgICAgICAgICAgICAgICAgICAgIGlmKGlkICE9PSBcIlwiKSB7XHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBmb3VuZEJsb2NrRGF0YSA9IHRydWU7XHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICByZWdpb25LZXkgPSBpZDtcclxuICAgICAgICAgICAgICAgICAgICAgICAgfVxyXG4gICAgICAgICAgICAgICAgICAgIH1cclxuXHJcbiAgICAgICAgICAgICAgICAgICAgaWYoZm91bmRCbG9ja0RhdGEgPT09IHRydWUgJiYgcmVnaW9uS2V5ICE9PSBcIlwiKSB7XHJcblxyXG4gICAgICAgICAgICAgICAgICAgICAgICBpbkJsb2NrID0gdHJ1ZTtcclxuXHJcbiAgICAgICAgICAgICAgICAgICAgICAgIGZvciAobGV0IGkgPSBjaGlsZC5jaGlsZHJlbi5sZW5ndGggLSAxOyBpID49IDA7IGktLSkge1xyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgY2hpbGQuY2hpbGRyZW5baV0uZGV0YWNoKCk7XHJcbiAgICAgICAgICAgICAgICAgICAgICAgIH1cclxuICAgICAgICAgICAgICAgICAgICAgICAgY2hpbGQuaW5uZXJUZXh0ID0gXCJcIjtcclxuXHJcbiAgICAgICAgICAgICAgICAgICAgICAgIGNoaWxkLmNsYXNzTGlzdC5hZGQoTXVsdGlDb2x1bW5MYXlvdXRDU1MuUmVnaW9uUm9vdENvbnRhaW5lckRpdik7XHJcbiAgICAgICAgICAgICAgICAgICAgICAgIGxldCByZW5kZXJFcnJvclJlZ2lvbiA9IGNoaWxkLmNyZWF0ZURpdih7XHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBjbHM6IGAke011bHRpQ29sdW1uTGF5b3V0Q1NTLlJlZ2lvbkVycm9yQ29udGFpbmVyRGl2fSwgJHtNdWx0aUNvbHVtblN0eWxlQ1NTLlJlZ2lvbkVycm9yTWVzc2FnZX1gLFxyXG4gICAgICAgICAgICAgICAgICAgICAgICB9KTtcclxuICAgICAgICAgICAgICAgICAgICAgICAgbGV0IHJlbmRlckNvbHVtblJlZ2lvbiA9IGNoaWxkLmNyZWF0ZURpdih7XHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBjbHM6IE11bHRpQ29sdW1uTGF5b3V0Q1NTLlJlZ2lvbkNvbnRlbnRDb250YWluZXJEaXZcclxuICAgICAgICAgICAgICAgICAgICAgICAgfSk7XHJcblxyXG5cclxuICAgICAgICAgICAgICAgICAgICAgICAgbGV0IHJlZ2lvbmFsQ29udGFpbmVyOiBSZWdpb25NYW5hZ2VyQ29udGFpbmVyID0gZmlsZURPTU1hbmFnZXIuZ2V0UmVnaW9uYWxDb250YWluZXIocmVnaW9uS2V5KTtcclxuICAgICAgICAgICAgICAgICAgICAgICAgaWYgKHJlZ2lvbmFsQ29udGFpbmVyID09PSBudWxsKSB7XHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICByZW5kZXJFcnJvclJlZ2lvbi5pbm5lclRleHQgPSBcIkVycm9yIHJlbmRlcmluZyBtdWx0aS1jb2x1bW4gcmVnaW9uLlxcblBsZWFzZSBjbG9zZSBhbmQgcmVvcGVuIHRoZSBmaWxlLCB0aGVuIG1ha2Ugc3VyZSB5b3UgYXJlIGluIHJlYWRpbmcgbW9kZSBiZWZvcmUgZXhwb3J0aW5nLlwiO1xyXG4gICAgICAgICAgICAgICAgICAgICAgICB9XHJcbiAgICAgICAgICAgICAgICAgICAgICAgIGVsc2Uge1xyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgbGV0IHJlZ2lvbmFsTWFuYWdlcjogUmVnaW9uTWFuYWdlciA9IHJlZ2lvbmFsQ29udGFpbmVyLmdldFJlZ2lvbigpO1xyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgcmVnaW9uYWxNYW5hZ2VyLmV4cG9ydFJlZ2lvbkVsZW1lbnRzVG9QREYocmVuZGVyQ29sdW1uUmVnaW9uKTtcclxuICAgICAgICAgICAgICAgICAgICAgICAgfVxyXG4gICAgICAgICAgICAgICAgICAgIH1cclxuICAgICAgICAgICAgICAgIH1cclxuICAgICAgICAgICAgICAgIGVsc2Uge1xyXG5cclxuICAgICAgICAgICAgICAgICAgICBpZiAobXVsdGlDb2x1bW5QYXJzZXIuY29udGFpbnNFbmRUYWcoY2hpbGQudGV4dENvbnRlbnQpID09PSB0cnVlKSB7XHJcblxyXG4gICAgICAgICAgICAgICAgICAgICAgICBpbkJsb2NrID0gZmFsc2U7XHJcbiAgICAgICAgICAgICAgICAgICAgfVxyXG5cclxuICAgICAgICAgICAgICAgICAgICBjaGlsZHJlblRvUmVtb3ZlLnB1c2goY2hpbGQpO1xyXG4gICAgICAgICAgICAgICAgfVxyXG4gICAgICAgICAgICB9XHJcbiAgICAgICAgfVxyXG5cclxuICAgICAgICBjaGlsZHJlblRvUmVtb3ZlLmZvckVhY2goY2hpbGQgPT4ge1xyXG4gICAgICAgICAgICBpZihjaGlsZC5wYXJlbnRFbGVtZW50ID09PSBlbCkge1xyXG4gICAgICAgICAgICAgICAgZWwucmVtb3ZlQ2hpbGQoY2hpbGQpO1xyXG4gICAgICAgICAgICB9XHJcbiAgICAgICAgfSk7XHJcbiAgICB9XHJcblxyXG4gICAgY2hlY2tFeHBvcnRpbmcoZWxlbWVudDogSFRNTEVsZW1lbnQpOiBib29sZWFuIHtcclxuXHJcbiAgICAgICAgaWYoZWxlbWVudCA9PT0gbnVsbCkge1xyXG4gICAgICAgICAgICByZXR1cm4gZmFsc2U7XHJcbiAgICAgICAgfVxyXG5cclxuICAgICAgICBpZihlbGVtZW50LmNsYXNzTGlzdC5jb250YWlucyhcInByaW50XCIpKSB7XHJcbiAgICAgICAgICAgIHJldHVybiB0cnVlO1xyXG4gICAgICAgIH1cclxuXHJcbiAgICAgICAgaWYoZWxlbWVudC5wYXJlbnROb2RlICE9PSBudWxsKSB7XHJcbiAgICAgICAgICAgIHJldHVybiB0aGlzLmNoZWNrRXhwb3J0aW5nKGVsZW1lbnQucGFyZW50RWxlbWVudCk7XHJcbiAgICAgICAgfVxyXG5cclxuICAgICAgICByZXR1cm4gZmFsc2U7XHJcbiAgICB9XHJcblxyXG4gICAgc2V0dXBNYXJrZG93bkNvZGVibG9ja1Bvc3RQcm9jZXNzb3Ioc3RhcnR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WNrIHRoZSB0eXBlIG9mIHRoZSBsZWFmXHJcbiAgICAgICAgICAgIGxldCBmb3VuZEZpbGVMZWFmID0gZmFsc2U7XHJcbiAgICAgICAgICAgIGZvcihsZXQgaSA9IDA7IGkgPCBtYXJrZG93bkxlYXZlcy5sZW5ndGg7IGkrKykge1xyXG4gICAgICAgIFxyXG4gICAgICAgICAgICAgICAgbGV0IGZpbGVMZWFmID0gZ2V0RmlsZUxlYWYoc291cmNlUGF0aCk7XHJcbiAgICAgICAgICAgICAgICBpZihmaWxlTGVhZiA9PT0gbnVsbCkge1xyXG4gICAgICAgICAgICAgICAgICAgIGNvbnRpbnVlO1xyXG4gICAgICAgICAgICAgICAgfVxyXG4gICAgICAgICAgICAgICAgZm91bmRGaWxlTGVhZiA9IHRydWU7XHJcbiAgICAgICAgXHJcbiAgICAgICAgICAgICAgICBpZihnZXRMZWFmU291cmNlTW9kZShmaWxlTGVhZikgPT09IFwic291cmNlXCIpIHtcclxuICAgICAgICAgICAgICAgICAgICByZXR1cm47XHJcbiAgICAgICAgICAgICAgICB9XHJcbiAgICAgICAgICAgIH1cclxuICAgICAgICBcclxuICAgICAgICAgICAgaWYodGhpcy5nbG9iYWxNYW5hZ2VyID09PSBudWxsIHx8IHRoaXMuZ2xvYmFsTWFuYWdlciA9PT0gdW5kZWZpbmVkKSB7XHJcbiAgICAgICAgICAgICAgICAvLyBjb25zb2xlLmxvZyhcIkdsb2JhbCBtYW5hZ2VyIGlzIHVuZGVmaW5lZD9cIik7XHJcbiAgICAgICAgICAgICAgICByZXR1cm47XHJcbiAgICAgICAgICAgIH1cclxuXHJcbiAgICAgICAgICAgIGxldCBmaWxlRE9NTWFuYWdlciA9IHRoaXMuZ2xvYmFsTWFuYWdlci5nZXRGaWxlTWFuYWdlcihzb3VyY2VQYXRoKTtcclxuICAgICAgICAgICAgaWYoZmlsZURPTU1hbmFnZXIgPT09IG51bGwpIHtcclxuICAgICAgICAgICAgICAgIHJldHVybjtcclxuICAgICAgICAgICAgfVxyXG4gICAgICAgICAgICBcclxuICAgICAgICAgICAgLy8gU2V0IGZpbGUgdG8gaGF2ZSBzdGFydCB0YWcuXHJcbiAgICAgICAgICAgIGZpbGVET01NYW5hZ2VyLnNldEhhc1N0YXJ0VGFnKCk7XHJcbiAgICAgICAgXHJcbiAgICAgICAgICAgIC8vIEdldCB0aGUgaW5mbyBmb3Igb3VyIGN1cnJlbnQgY29udGV4dCBhbmQgdGhlbiBjaGVja1xyXG4gICAgICAgICAgICAvLyBpZiB0aGUgZW50aXJlIHRleHQgY29udGFpbnMgYSBzdGFydCB0YWcuIElmIHRoZXJlIGlzXHJcbiAgICAgICAgICAgIC8vIG5vIHN0YXJ0IHRhZyBpbiB0aGUgZG9jdW1lbnQgd2UgY2FuIGp1c3QgcmV0dXJuIGFuZFxyXG4gICAgICAgICAgICAvLyBpZ25vcmUgdGhlIHJlc3Qgb2YgdGhlIHBhcnNpbmcuXHJcbiAgICAgICAgICAgIGxldCBpbmZvID0gY3R4LmdldFNlY3Rpb25JbmZvKGVsKTtcclxuICAgICAgICBcclxuICAgICAgICAgICAgLyoqXHJcbiAgICAgICAgICAgICAqIFdlIG5lZWQgdGhlIGNvbnRleHQgaW5mbyB0byBwcm9wZXJseSBwYXJzZSBzbyByZXR1cm5pbmcgaGVyZSBcclxuICAgICAgICAgICAgICogaW5mbyBpcyBudWxsLiBUT0RPOiBTZXQgZXJyb3IgaW4gdmlldyBpZiB0aGlzIG9jY3Vycy5cclxuICAgICAgICAgICAgICovXHJcbiAgICAgICAgICAgIGlmKCFpbmZvKSB7XHJcbiAgICAgICAgICAgICAgICByZXR1cm47XHJcbiAgICAgICAgICAgIH1cclxuICAgICAgICBcclxuICAgICAgICAgICAgLyoqIFxyXG4gICAgICAgICAgICAgKiBTZXQgdXAgdGhlIGN1cnJlbnQgZWxlbWVudCB0byBhY3QgYXMgdGhlIHBhcmVudCBmb3IgdGhlIFxyXG4gICAgICAgICAgICAgKiBtdWx0aS1jb2x1bW4gcmVnaW9uLlxyXG4gICAgICAgICAgICAgKi9cclxuICAgICAgICAgICAgZWwuY2xhc3NMaXN0LmFkZChNdWx0aUNvbHVtbkxheW91dENTUy5SZWdpb25Sb290Q29udGFpbmVyRGl2KVxyXG4gICAgICAgICAgICBsZXQgcmVuZGVyRXJyb3JSZWdpb24gPSBlbC5jcmVhdGVEaXYoe1xyXG4gICAgICAgICAgICAgICAgY2xzOiBgJHtNdWx0aUNvbHVtbkxheW91dENTUy5SZWdpb25FcnJvckNvbnRhaW5lckRpdn0gJHtNdWx0aUNvbHVtblN0eWxlQ1NTLlJlZ2lvbkVycm9yTWVzc2FnZX1gLFxyXG4gICAgICAgICAgICB9KTtcclxuICAgICAgICAgICAgbGV0IHJlbmRlckNvbHVtblJlZ2lvbiA9IGVsLmNyZWF0ZURpdih7XHJcbiAgICAgICAgICAgICAgICBjbHM6IE11bHRpQ29sdW1uTGF5b3V0Q1NTLlJlZ2lvbkNvbnRlbnRDb250YWluZXJEaXZcclxuICAgICAgICAgICAgfSlcclxuICAgICAgICBcclxuICAgICAgICAgICAgbGV0IHJlZ2lvbktleSA9IHBhcnNlU3RhcnRSZWdpb25Db2RlQmxvY2tJRChzb3VyY2UpO1xyXG4gICAgICAgIFxyXG4gICAgICAgICAgICBsZXQgY3JlYXRlTmV3UmVnaW9uTWFuYWdlciA9IHRydWU7XHJcbiAgICAgICAgICAgIGlmKGZpbGVET01NYW5hZ2VyLmNoZWNrS2V5RXhpc3RzKHJlZ2lvbktleSkgPT09IHRydWUpIHtcclxuICAgICAgICAgICAgICAgIFxyXG4gICAgICAgICAgICAgICAgY3JlYXRlTmV3UmVnaW9uTWFuYWdlciA9IGZhbHNlO1xyXG4gICAgICAgICAgICAgICAgbGV0IHsgbnVtYmVyT2ZUYWdzLCBrZXlzIH0gPSBtdWx0aUNvbHVtblBhcnNlci5jb3VudFN0YXJ0VGFncyhpbmZvLnRleHQpO1xyXG4gICAgICAgIFxyXG4gICAgICAgICAgICAgICAgbGV0IG51bU1hdGNoZXMgPSAwO1xyXG4gICAgICAgICAgICAgICAgZm9yKGxldCBpID0gMDsgaSA8IG51bWJlck9mVGFnczsgaSsrKSB7XHJcbiAgICAgICAgXHJcbiAgICAgICAgICAgICAgICAgICAgLy8gQmVjYXVzZSB3ZSBjaGVja2VkIGlmIGtleSBleGlzdHMgb25lIG9mIHRoZXNlIGhhcyB0byBtYXRjaC5cclxuICAgICAgICAgICAgICAgICAgICBpZihrZXlzW2ldID09PSByZWdpb25LZXkpIHtcclxuICAgICAgICAgICAgICAgICAgICAgICAgbnVtTWF0Y2hlcysrO1xyXG4gICAgICAgICAgICAgICAgICAgIH1cclxuICAgICAgICAgICAgICAgIH1cclxuICAgICAgICBcclxuICAgICAgICAgICAgICAgIC8vIFdlIG9ubHkgd2FudCB0byBkaXNwbGF5IGFuIGVycm9yIGlmIHRoZXJlIGFyZSBtb3JlIHRoYW4gMiBvZiB0aGUgc2FtZSBpZCBhY3Jvc3NcclxuICAgICAgICAgICAgICAgIC8vIHRoZSB3aG9sZSBkb2N1bWVudC4gVGhpcyBwcmV2ZW50cyBlcnJvcyB3aGVuIG9ic2lkaWFuIHJlbG9hZHMgdGhlIHdob2xlIGRvY3VtZW50XHJcbiAgICAgICAgICAgICAgICAvLyBhbmQgdGhlcmUgYXJlIHR3byBvZiB0aGUgc2FtZSBrZXkgaW4gdGhlIG1hcC5cclxuICAgICAgICAgICAgICAgIGlmKG51bU1hdGNoZXMgPj0gMikge1xyXG4gICAgICAgICAgICAgICAgICAgIGlmKHJlZ2lvbktleSA9PT0gXCJcIikge1xyXG4gICAgICAgICAgICAgICAgICAgICAgICByZW5kZXJFcnJvclJlZ2lvbi5pbm5lclRleHQgPSBcIkZvdW5kIG11bHRpcGxlIHJlZ2lvbnMgd2l0aCBlbXB0eSBJRHMuIFBsZWFzZSBzZXQgYSB1bmlxdWUgSUQgYWZ0ZXIgZWFjaCBzdGFydCB0YWcuXFxuRUc6ICc9PT0gbXVsdGktY29sdW1uLXN0Y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QoZWwpO1xyXG4gICAgICAgICAgICAgICAgZmlsZURPTU1hbmFnZXIuY3JlYXRlUmVnaW9uYWxNYW5hZ2VyKHJlZ2lvbktleSwgZWwsIHJlbmRlckVycm9yUmVnaW9uLCByZW5kZXJDb2x1bW5SZWdpb24pO1xyXG4gICAgICAgIFxyXG4gICAgICAgICAgICAgICAgLy8gU2V0IHVwIHRoZSBvbiB1bmxvYWQgY2FsbGJhY2suIFRoaXMgY2FuIGJlIGNhbGxlZCBpZiB0aGUgdXNlciBjaGFuZ2VzXHJcbiAgICAgICAgICAgICAgICAvLyB0aGUgc3RhcnQvc2V0dGluZ3MgY29kZWJsb2NrIGluIGFueSB3YXkuIFdlIG9ubHkgd2FudCB0byB1bmxvYWRcclxuICAgICAgICAgICAgICAgIC8vIGlmIHRoZSBmaWxlIGlzIGJlaW5nIHJlbW92ZWQgZnJvbSB2aWV3LlxyXG4gICAgICAgICAgICAgICAgZWxlbWVudE1hcmtkb3duUmVuZGVyZXIub251bmxvYWQgPSAoKSA9PiB7XHJcbiAgICAgICAgXHJcbiAgICAgICAgICAgICAgICAgICAgaWYoZmlsZURPTU1hbmFnZXIgJiYgZmlsZVN0aWxsSW5WaWV3KHNvdXJjZVBhdGgpID09PSBmYWxzZSkge1xyXG4gICAgICAgIFxyXG4gICAgICAgICAgICAgICAgICAgICAgICAvLyBjb25zb2xlLmRlYnVnKFwiRmlsZSBub3QgaW4gYW55IG1hcmtkb3duIGxlYWYuIFJlbW92aW5nIHJlZ2lvbiBmcm9tIGRvbSBtYW5hZ2VyLlwiKVxyXG4gICAgICAgICAgICAgICAgICAgICAgICBmaWxlRE9NTWFuYWdlci5yZW1vdmVSZWdpb24ocmVnaW9uS2V5KTtcclxuICAgICAgICAgICAgICAgICAgICB9XHJcbiAgICAgICAgICAgICAgICB9O1xyXG4gICAgICAgICAgICAgICAgY3R4LmFkZENoaWxkKGVsZW1lbnRNYXJrZG93blJlbmRlcmVyKTtcclxuICAgICAgICAgICAgfVxyXG4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L3V0aWxpdGllcy9zZXR0aW5nc1BhcnNlci50cyAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgXG4gKiBDcmVhdGVkIERhdGU6IEZyaWRheSwgSnVuZSAzcmQgMjAyMiwgODoxNiBwbSAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgXG4gKiBBdXRob3I6IENhbWVyb24gUm9iaW5zb24gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgXG4gKiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgXG4gKiBDb3B5cmlnaHQgKGMpIDIwMjIgQ2FtZXJvbiBSb2JpbnNvbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgXG4gKi9cblxuaW1wb3J0IHsgTXVsdGlDb2x1bW5TZXR0aW5ncywgQ29sdW1uTGF5b3V0LCBCb3JkZXJPcHRpb24sIFNoYWRvd09wdGlvbiwgZ2V0RGVmYXVsdE11bHRpQ29sdW1uU2V0dGluZ3MsIFNpbmdsZUNvbHVtblNpemUsIENvbnRlbnRPdmVyZmxvd1R5cGUsIEFsaWdubWVudFR5cGUgfSBmcm9tIFwiLi4vcmVnaW9uU2V0dGluZ3NcIjtcblxuLyoqXG4gKiBIZXJlIHdlIGRlZmluZSBhbGwgb2YgdGhlIHZhbGlkIHNldHRpbmdzIHN0cmluZ3MgdGhhdCB0aGUgdXNlciBjYW4gZW50ZXIgZm9yIGVhY2ggc2V0dGluZyB0eXBlLlxuICogVGhlIHN0cmluZ3MgYXJlIHRoZW4gbWFwcGVkIHR3aWNlLCBmaXJzdCB0byBhIHZhbGlkIHJlZ2V4IHN0cmluZyB0aGF0IHNlYXJjaGVzIGZvciB0aGUgc2V0dGluZ1xuICogbmFtZSwgaWdub3JpbmcgYWxsIGV4dHJhIHNwYWNlcyBhbmQgbGV0dGVyIGNhc2UsIGFuZCB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9yZGVyT3B0aW9uKVtzZXR0aW5nc0RhdGFdO1xuICAgICAgICAgICAgaWYgKGlzQm9yZGVyRHJhd24gIT09IHVuZGVmaW5lZCkge1xuICAgICAgICAgICAgICAgIHN3aXRjaCAoaXNCb3JkZXJEcmF3bikge1xuICAgICAgICAgICAgICAgICAgICBjYXNlIChCb3JkZXJPcHRpb24uZGlzYWJsZWQpOlxuICAgICAgICAgICAgICAgICAgICBjYXNlIChCb3JkZXJPcHRpb24ub2ZmKTpcbiAgICAgICAgICAgICAgICAgICAgY2FzZSAoQm9yZGVyT3B0aW9uLmZhbHNlKTpcbiAgICAgICAgICAgICAgICAgICAgICAgIHBhcnNlZFNldHRpbmdzLmRyYXdCb3JkZXIgPSBmYWxzZTtcbiAgICAgICAgICAgICAgICAgICAgICAgIGJyZWFrO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH1cbiAgICAgICAgfVxuXG4gICAgICAgIHNldHRpbmdzRGF0YSA9IGdldFNldHRpbmdzRGF0YUZyb21LZXlzKHNldHRpbmdzTGluZSwgRFJBV19TSEFET1dfUkVHRVhfQVJSKVxuICAgICAgICBpZiAoc2V0dGluZ3NEYXRhICE9PSBudWxsKSB7XG5cbiAgICAgICAgICAgIGxldCBpc1NoYWRvd0RyYXduOiBTaGFkb3dPcHRpb24gPSAoPGFueT5TaGFkb3dPcHRpb24pW3NldHRpbmdzRGF0YV07XG4gICAgICAgICAgICBpZiAoaXNTaGFkb3dEcmF3biAhPT0gdW5kZWZpbmVkKSB7XG4gICAgICAgICAgICAgICAgc3dpdGNoIChpc1NoYWRvd0RyYXduKSB7XG4gICAgICAgICAgICAgICAgICAgIGNhc2UgKFNoYWRvd09wdGlvbi5kaXNhYmxlZCk6XG4gICAgICAgICAgICAgICAgICAgIGNhc2UgKFNoYWRvd09wdGlvbi5vZmYpOlxuICAgICAgICAgICAgICAgICAgICBjYXNlIChTaGFkb3dPcHRpb24uZmFsc2UpOlxuICAgICAgICAgICAgICAgICAgICAgICAgcGFyc2VkU2V0dGluZ3MuZHJhd1NoYWRvdyA9IGZhbHNlO1xuICAgICAgICAgICAgICAgICAgICAgICAgYnJlYWs7XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfVxuICAgICAgICB9XG5cbiAgICAgICAgc2V0dGluZ3NEYXRhID0gZ2V0U2V0dGluZ3NEYXRhRnJvbUtleXMoc2V0dGluZ3NMaW5lLCBBVVRPX0xBWU9VVF9SRUdFWF9BUlIpXG4gICAgICAgIGlmIChzZXR0aW5nc0RhdGEgIT09IG51bGwpIHtcblxuICAgICAgICAgICAgaWYoc2V0dGluZ3NEYXRhID09PSBcInRydWVcIikge1xuICAgICAgICAgICAgICAgIHBhcnNlZFNldHRpbmdzLmF1dG9MYXlvdXQgPSB0cnVlXG4gICAgICAgICAgICB9XG4gICAgICAgIH1cblxuICAgICAgICBzZXR0aW5nc0RhdGEgPSBnZXRTZXR0aW5nc0RhdGFGcm9tS2V5cyhzZXR0aW5nc0xpbmUsIENPTFVNTl9TUEFDSU5HX1JFR0VYX0FSUik7XG4gICAgICAgIGlmKHNldHRpbmdzRGF0YSAhPT0gbnVsbCkge1xuXG4gICAgICAgICAgICBsZXQgcGFyc2VkID0gZ2V0TGVuZ3RoVW5pdChzZXR0aW5nc0RhdGEudHJpbSgpKTtcbiAgICAgICAgICAgIGxldCBzcGFjaW5nU3RyID0gXCJcIjtcblxuICAgICAgICAgICAgaWYocGFyc2VkLmlzVmFsaWQpIHtcblxuICAgICAgICAgICAgICAgIGxldCBub1VuaXRzU3RyID0gc2V0dGluZ3NEYXRhLnJlcGxhY2UocGFyc2VkLnVuaXRTdHIsIFwiXCIpLnRyaW0oKTtcbiAgICAgICAgICAgICAgICBsZXQgbm9Vbml0c051bSA9IHBhcnNlSW50KG5vVW5pdHNTdHIpO1xuICAgICAgICAgICAgICAgIGlmKGlzTmFOKG5vVW5pdHNOdW0pID09PSBmYWxzZSkge1xuXG4gICAgICAgICAgICAgICAgICAgIHNwYWNpbmdTdHIgPSBgJHtub1VuaXRzU3RyfSR7cGFyc2VkLnVuaXRTdHJ9YFxuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgIGVsc2Uge1xuICAgICAgICAgICAgICAgIFxuICAgICAgICAgICAgICAgIGxldCBub1VuaXRzTnVtID0gcGFyc2VJbnQoc2V0dGluZ3NEYXRhLnRyaW0oKSk7XG4gICAgICAgICAgICAgICAgaWYoaXNOYU4obm9Vbml0c051bSkgPT09IGZhbHNlKSB7XG5cbiAgICAgICAgICAgICAgICAgICAgc3BhY2luZ1N0ciA9IGAke25vVW5pdHNOdW19cHRgXG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICBwYXJzZWRTZXR0aW5ncy5jb2x1bW5TcGFjaW5nID0gc3BhY2luZ1N0cjtcbiAgICAgICAgfVxuXG4gICAgICAgIHNldHRpbmdzRGF0YSA9IGdldFNldHRpbmdzRGF0YUZyb21LZXlzKHNldHRpbmdzTGluZSwgQ09OVEVOVF9PVkVSRkxPV19SRUdFWF9BUlIpO1xuICAgICAgICBpZihzZXR0aW5nc0RhdGEgIT09IG51bGwpIHtcblxuICAgICAgICAgICAgbGV0IG92ZXJmbG93VHlwZSA9IENvbnRlbnRPdmVyZmxvd1R5cGUuc2Nyb2xsO1xuXG4gICAgICAgICAgICBzZXR0aW5nc0RhdGEgPSBzZXR0aW5nc0RhdGEudG9Mb3dlckNhc2UoKS50cmltKCk7XG4gICAgICAgICAgICBpZihzZXR0aW5nc0RhdGEgPT09IFwiaGlkZGVuXCIpIHtcbiAgICAgICAgICAgICAgICBvdmVyZmxvd1R5cGUgPSBDb250ZW50T3ZlcmZsb3dUeXBlLmhpZGRlbjtcbiAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgcGFyc2VkU2V0dGluZ3MuY29udGVudE92ZXJmbG93ID0gb3ZlcmZsb3dUeXBlO1xuICAgICAgICB9XG4gICAgICAgIHNldHRpbmdz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AgICAgICAgICAgICAgIFwiPT09ICpicmVhay1jb2x1bW4gKj09PVwiLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFwiLS0tICpjb2x1bW4tZW5kICotLS1cIixcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBcIi0tLSAqZW5kLWNvbHVtbiAqLS0tXCIsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgXCItLS0gKmNvbHVtbi1icmVhayAqLS0tXCIsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgXCItLS0gKmJyZWFrLWNvbHVtbiAqLS0tXCJdO1xuY29uc3QgQ09MX1JFR0VYX0FSUjogUmVnRXhwW10gPSBbXTtcbmZvcihsZXQgaSA9IDA7IGkgPCBDT0xfUkVHRVhfU1RSUy5sZW5ndGg7IGkrKykge1xuICAgIENPTF9SRUdFWF9BUlIucHVzaChuZXcgUmVnRXhwKENPTF9SRUdFWF9TVFJTW2ldKSk7XG59XG5leHBvcnQgZnVuY3Rpb24gY29udGFpbnNDb2xFbmRUYWcodGV4dDogc3RyaW5nKTogYm9vbGVhbiB7XG5cbiAgICBsZXQgZm91bmQgPSBmYWxzZTtcbiAgICBmb3IobGV0IGkgPSAwOyBpPCBDT0xfUkVHRVhfQVJSLmxlbmd0aDsgaSsrKSB7XG5cbiAgICAgICAgaWYoQ09MX1JFR0VYX0FSUltpXS50ZXN0KHRleHQpKSB7XG4gICAgICAgICAgICBmb3VuZCA9IHRydWU7XG4gICAgICAgICAgICBicmVhaztcbiAgICAgICAgfVxuICAgIH1cblxuICAgIHJldHVybiBmb3VuZDtcbn1cblxuY29uc3QgQ09MX0VMRU1FTlRfSU5ORVJfVEVYVF9SRUdFWF9TVFJTOiBzdHJpbmdbXSA9IFtcIj0gKmNvbHVtbi1lbmQgKj1cIixcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBcIj0gKmVuZC1jb2x1bW4gKj1cIixcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBcIj0gKmNvbHVtbi1icmVhayAqPVwiLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFwiPSAqYnJlYWstY29sdW1uICo9XCJdXG5jb25zdCBDT0xfRUxFTUVOVF9JTk5FUl9URVhUX1JFR0VYX0FSUjogUmVnRXhwW10gPSBbXTtcbmZvcihsZXQgaSA9IDA7IGkgPCBDT0xfRUxFTUVOVF9JTk5FUl9URVhUX1JFR0VYX1NUUlMubGVuZ3RoOyBpKyspIHtcbiAgICBDT0xfRUxFTUVOVF9JTk5FUl9URVhUX1JFR0VYX0FSUi5wdXNoKG5ldyBSZWdFeHAoQ09MX0VMRU1FTlRfSU5ORVJfVEVYVF9SRUdFWF9TVFJTW2ldKSk7XG59XG5leHBvcnQgZnVuY3Rpb24gZWxJbm5lclRleHRDb250YWluc0NvbEVuZFRhZyh0ZXh0OiBzdHJpbmcpOiBib29sZWFuIHtcblxuICAgIGxldCBmb3VuZCA9IGZhbHNlO1xuICAgIGZvcihsZXQgaSA9IDA7IGk8IENPTF9FTEVNRU5UX0lOTkVSX1RFWFRfUkVHRVhfQVJSLmxlbmd0aDsgaSsrKSB7XG5cbiAgICAgICAgaWYoQ09MX0VMRU1FTlRfSU5ORVJfVEVYVF9SRUdFWF9BUlJbaV0udGVzdCh0ZXh0KSkge1xuICAgICAgICAgICAgZm91bmQgPSB0cnVlO1xuICAgICAgICAgICAgYnJlYWs7XG4gICAgICAgIH1cbiAgICB9XG5cbiAgICByZXR1cm4gZm91bmQ7XG59XG5cbmNvbnN0IENPTF9TRVRUSU5HU19SRUdFWF9TVFJTID0gW1wiYGBgc2V0dGluZ3NcIixcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFwiYGBgY29sdW1uLXNldHRpbmdzXCIsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBcImBgYG11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c3NhZ2UgPSBcIm1jbS1jb2x1bW4tZXJyb3ItbWVzc2FnZVwiLFxuICAgIFJlZ2lvblNldHRpbmdzID0gXCJtY20tY29sdW1uLXNldHRpbmdzLXdyYXBwZXJcIixcbiAgICBSZWdpb25Db250ZW50ID0gXCJtY20tY29sdW1uLWNvbnRlbnQtd3JhcHBlclwiLFxuICAgIFJlZ2lvbkVuZFRhZyA9IFwibWNtLWNvbHVtbi1lbmQtdGFnLXdyYXBwZXJcIixcbiAgICBDb2x1bW5FbmRUYWcgPSBcIm1jbS1jb2x1bW4tYnJlYWstdGFnLXdyYXBwZXJcIixcbiAgICBSZWdpb25TaGFkb3cgPSBcIm1jbS1yZWdpb24tc2hhZG93XCIsXG4gICAgQ29sdW1uU2hhZG93ID0gXCJtY20tY29sdW1uLXNoYWRvd1wiLFxuICAgIENvbHVtbkJvcmRlciA9IFwibWNtLWNvbHVtbi1ib3JkZXJcIixcbiAgICBDb2x1bW5Db250ZW50ID0gXCJtY20tY29sdW1uLWRpdlwiXG59IiwiLyoqXG4gKiBGaWxlOiAvc3JjL2RvbV9tYW5hZ2VyL3JlZ2lvbmFsX21hbmFnZXJzL1JlZ2lvbk1hbmFnZXIudHMgICAgICAgICAgICAgICAgICAgKlxuICogQ3JlYXRlZCBEYXRlOiBTdW5kYXksIE1heSAyMm5kIDIwMjIsIDc6NDkgcG0gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICpcbiAqIEF1dGhvcjogQ2FtZXJvbiBSb2JpbnNvbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAqXG4gKiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgKlxuICogQ29weXJpZ2h0IChjKSAyMDIyIENhbWVyb24gUm9iaW5zb24gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICpcbiAqL1xuXG5pbXBvcnQgey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TWFuYWdlckRhdGEge1xuXG4gICAgICAgIHJldHVybiB7XG4gICAgICAgICAgICBkb21MaXN0OiB0aGlzLmRvbUxpc3QsXG4gICAgICAgICAgICBkb21PYmplY3RNYXA6IHRoaXMuZG9tT2JqZWN0TWFwLFxuICAgICAgICAgICAgcmVnaW9uUGFyZW50OiB0aGlzLnJlZ2lvblBhcmVudCxcblxuICAgICAgICAgICAgZmlsZU1hbmFnZXI6IHRoaXMuZmlsZU1hbmFnZXIsXG4gICAgICAgICAgICByZWdpb25hbFNldHRpbmdzOiB0aGlzLnJlZ2lvbmFsU2V0dGluZ3MsXG5cbiAgICAgICAgICAgIHJlZ2lvbktleTogdGhpcy5yZWdpb25LZXksXG4gICAgICAgICAgICByb290RWxlbWVudDogbnVsbFxuICAgICAgICB9O1xuICAgIH1cblxuICAgIHB1YmxpYyBhZGRPYmplY3Qoc2libGluZ3NBYm92ZTogSFRNTERpdkVsZW1lbnQsIHNpYmxpbmdzQmVsb3c6IEhUTUxEaXZFbGVtZW50LCBvYmo6IERPTU9iamVjdCk6IG51bWJlciB7XG5cbiAgICAgICAgbGV0IG5leHRPYmogPSBzaWJsaW5nc0JlbG93LmNoaWxkcmVuWzBdIGFzIEhUTUxFbGVtZW50O1xuXG4gICAgICAgIGxldCBhZGRBdEluZGV4ID0gc2libGluZ3NBYm92ZS5jaGlsZHJlbi5sZW5ndGg7XG5cbiAgICAgICAgaWYgKHNpYmxpbmdzQWJvdmUuY2hpbGRyZW4ubGVuZ3RoID4gMCkge1xuXG4gICAgICAgICAgICAvKipcbiAgICAgICAgICAgICAqIFdlIHdhbnQgdG8gZmluZCB0aGUgZmlyc3Qgc2libGluZyB3aXRob3V0aCBcIlwiIGZvciBhbiBpbm5lciB0ZXh0IHNvIHdlIGNhbiB1c2UgdGhhdCB0byBhbmNob3Igb3VyXG4gICAgICAgICAgICAgKiBlbGVtZW50IGludG8gdGhlIGRvbUxpc3QuIEZvciBtb3N0IGl0ZW1zIHRoZSBmaXJzdCBlbGVtZW50IGJlZm9yZSBvdXIgbmV3IGVsZW1lbnQgd2lsbCBoYXZlIHRoZSBwcm9wZXJcbiAgICAgICAgICAgICAqIGlubmVyVGV4dC4gU29tZXRpbWVzIG90aGVyIGVsZW1lbnRzIGFyZSBlbXB0eSBhbmQgd2VyZSBjYXVzaW5nIGlzc3Vlcy5cbiAgICAgICAgICAgICAqIFxuICAgICAgICAgICAgICogTm93IHdlIGxvb3AgYmFjayB0aHJvdWdoIHRoZSBwcmV2aW91cyBzaWJsaW5ncyBsb29raW5nIGZvciB0aGUgZmlyc3Qgb25lIHdpdGggYSB2YWxpZCBpbm5lciB0ZXh0IGFuZCB1c2luZyB0aGF0IFxuICAgICAgICAgICAgICogYXMgdGhlIGFuY2hvciBhbmQgb2Zmc2V0dGluZyBvdXIgYWRkQXRJbmRleCBieSB0aGUgbnVtYmVyIG9mIGVtcHR5IHN0cmluZyBlbGVtZW50cyB3ZSBmb3VuZC5cbiAgICAgICAgICAgICAqL1xuICAgICAgICAgICAgbGV0IHByZXZTaWJsaW5nSW5uZXJUZXh0ID0gXCJcIlxuICAgICAgICAgICAgbGV0IHByZXZTaWJsaW5nT2Zmc2V0ID0gMDtcbiAgICAgICAgICAgIGZvcihsZXQgaSA9IHNpYmxpbmdzQWJvdmUuY2hpbGRyZW4ubGVuZ3RoIC0gMTsgaSA+PSAwOyBpLS0pIHtcblxuICAgICAgICAgICAgICAgIGxldCBvYmogPSBzaWJsaW5nc0Fib3ZlLmNoaWxkcmVuW2ldIGFzIEhUTUxFbGVtZW50O1xuICAgICAgICAgICAgICAgIGlmKG9iai5pbm5lclRleHQgIT09IFwiXCIpIHtcbiAgICAgICAgICAgICAgICBcbiAgICAgICAgICAgICAgICAgICAgcHJldlNpYmxpbmdJbm5lclRleHQgPSBvYmouaW5uZXJUZXh0O1xuICAgICAgICAgICAgICAgICAgICBicmVhaztcbiAgICAgICAgICAgICAgICB9XG5cbiAgICAgICAgICAgICAgICBwcmV2U2libGluZ09mZnNldCsrO1xuICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICBmb3IgKGxldCBpID0gdGhpcy5kb21MaXN0Lmxlbmd0aCAtIDE7IGkgPj0gMDsgaS0tKSB7XG4gICAgICAgICAgICAgICAgaWYgKHRoaXMuZG9tTGlzdFtpXS5ub2RlS2V5ID09PSBwcmV2U2libGluZ0lubmVyVGV4dCkge1xuICAgICAgICAgICAgICAgICAgICBhZGRBdEluZGV4ID0gaSArIDEgKyBwcmV2U2libGluZ09mZnNldDtcbiAgICAgICAgICAgICAgICAgICAgYnJlYWs7XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfVxuICAgICAgICB9XG5cbiAgICAgICAgbGV0IG5leHRFbEluZGV4ID0gYWRkQXRJbmRleDtcbiAgICAgICAgbGV0IG5leHRPYmpUZXh0ID0gXCJcIjtcbiAgICAgICAgaWYgKG5leHRPYmogIT09IHVuZGVmaW5lZCkge1xuXG4gICAgICAgICAgICBsZXQgZm91bmROZXh0ID0gZmFsc2U7XG4gICAgICAgICAgICBuZXh0T2JqVGV4dCA9IG5leHRPYmouaW5uZXJUZXh0O1xuXG4gICAgICAgICAgICBmb3IgKGxldCBpID0gYWRkQXRJbmRleDsgaSA8IHRoaXMuZG9tTGlzdC5sZW5ndGg7IGkrKykge1xuXG4gICAgICAgICAgICAgICAgaWYgKHRoaXMuZG9tTGlzdFtpXS5ub2RlS2V5ID09PSBuZXh0T2JqLmlubmVyVGV4dC50cmltKCkpIHtcblxuICAgICAgICAgICAgICAgICAgICBuZXh0RWxJbmRleCA9IGk7XG4gICAgICAgICAgICAgICAgICAgIGZvdW5kTmV4dCA9IHRydWU7XG4gICAgICAgICAgICAgICAgICAgIGJyZWFrO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH1cbiAgICAgICAgfVxuXG4gICAgICAgIC8vIGNvbnNvbGUubG9nKFwiIFByZXY6IFwiLCBBcnJheS5mcm9tKHNpYmxpbmdzQWJvdmUuY2hpbGRyZW4pL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AgLy9zZXQgZGltZW5zaW9uc1xuICAgICAgICAgICAgICAgIGNsb25lZENhbnZhcy53aWR0aCA9IG9yaWdpbmFsQ2FudmFzLndpZHRoO1xuICAgICAgICAgICAgICAgIGNsb25lZENhbnZhcy5oZWlnaHQgPSBvcmlnaW5hbENhbnZhcy5oZWlnaHQ7XG5cbiAgICAgICAgICAgICAgICBpZihjbG9uZWRDYW52YXMud2lkdGggPT09IDAgfHwgY2xvbmVkQ2FudmFzLmhlaWdodCA9PT0gMCl7XG4gICAgICAgICAgICAgICAgICAgIC8vIERvbnQgd2FudCB0byByZW5kZXIgaWYgdGhlIHdpZHRoIGlzIDAgYXMgaXQgdGhyb3dzIGFuIGVycm9yXG4gICAgICAgICAgICAgICAgICAgIC8vIHdvdWxkIGhhcHBlbiBpZiB0aGUgb2xkIGNhbnZhcyBoYXNudCBiZWVuIHJlbmRlcmVkIHlldC5cbiAgICAgICAgICAgICAgICAgICAgcmV0dXJuIGNsb25lZENhbnZhcztcbiAgICAgICAgICAgICAgICB9IFxuXG4gICAgICAgICAgICAgICAgLy9hcHBseSB0aGUgb2xkIGNhbnZhcyB0byB0aGUgbmV3IG9uZVxuICAgICAgICAgICAgICAgIGNvbnRleHQuZHJhd0ltYWdlKG9yaWdpbmFsQ2FudmFzLCAwLCAwKTtcbiAgICAgICAgICAgIFxuICAgICAgICAgICAgICAgIC8vcmV0dXJuIHRoZSBuZXcgY2FudmFzXG4gICAgICAgICAgICAgICAgcmV0dXJuIGNsb25lZENhbnZhcztcbiAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgbGV0IGNhbnZhcyA9IHNlYXJjaENoaWxkcmVuRm9yTm9kZVR5cGUob3JpZ2luYWxFbGVtZW50LCBcImNhbnZhc1wiKTtcbiAgICAgICAgICAgIGlmKGNhbnZhcyAhPT0gbnVsbCkge1xuICAgICAgICAgICAgICAgIFxuICAgICAgICAgICAgICAgIGRvbUVsZW1lbnQudXBkYXRlQ2xvbmVkRWxlbWVudChvcmlna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XJlbnQgZWxlbWVudC5cbiAgICAgKi9cbiAgICBnZXRDb2x1bW5Db250ZW50RGl2cyhzZXR0aW5nczogTXVsdGlDb2x1bW5TZXR0aW5ncywgbXVsdGlDb2x1bW5QYXJlbnQ6IEhUTUxEaXZFbGVtZW50KTogSFRNTERpdkVsZW1lbnRbXSB7XG5cbiAgICAgICAgbGV0IGNvbHVtbkNvbnRlbnREaXZzOiBIVE1MRGl2RWxlbWVudFtdID0gW11cbiAgICAgICAgbGV0IHN0eWxlU3RyOiBzdHJpbmcgPSBcIlwiXG4gICAgICAgIGlmKHNldHRpbmdzLmNvbHVtblNwYWNpbmcgIT09IFwiXCIpIHtcblxuICAgICAgICAgICAgc3R5bGVTdHIgPSBgbWFyZ2luLWlubGluZTogJHtzZXR0aW5ncy5jb2x1bW5TcGFjaW5nfTtgXG4gICAgICAgIH1cblxuICAgICAgICBpZihzZXR0aW5ncy5udW1iZXJPZkNvbHVtbnMgPT09IDIpIHtcblxuICAgICAgICAgICAgc3dpdGNoKHNldHRpbmdzLmNvbHVtbkxheW91dCkge1xuICAgICAgICAgICAgICAgIGNhc2UoQ29sdW1uTGF5b3V0LnN0YW5kYXJkKTpcbiAgICAgICAgICAgICAgICBjYXNlKENvbHVtbkxheW91dC5taWRkbGUpOlxuICAgICAgICAgICAgICAgIGNhc2UoQ29sdW1uTGF5b3V0LmNlbnRlcik6XG4gICAgICAgICAgICAgICAgY2FzZShDb2x1bW5MYXlvdXQudGhpcmQpOlxuICAgICAgICAgICAgICAgICAgICBjb2x1bW5Db250ZW50RGl2cy5wdXNoKG11bHRpQ29sdW1uUGFyZW50LmNyZWF0ZURpdih7XG4gICAgICAgICAgICAgICAgICAgICAgICBjbHM6IGAke011bHRpQ29sdW1uU3R5bGVDU1MuQ29sdW1uQ29udGVudH0gJHtNdWx0aUNvbHVtbkxheW91dENTUy5Ud29FcXVhbENvbHVtbnN9YFxuICAgICAgICAgICAgICAgICAgICB9KSk7XG4gICAgICAgICAgICAgICAgICAgIG11bHRpQ29sdW1uUGFyZW50LmNyZWF0ZURpdih7XG4gICAgICAgICAgICAgICAgICAgICAgICBjbHM6IGBtY20tY29sdW1uLXNwYWNlcmAsXG4gICAgICAgICAgICAgICAgICAgICAgICBhdHRyOiB7XCJzdHlsZVwiOiBzdHlsZVN0cn1cbiAgICAgICAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICAgICAgICAgIGNvbHVtbkNvbnRlbnREaXZzLnB1c2gobXVsdGlDb2x1bW5QYXJlbnQuY3JlYXRlRGl2KHtcbiAgICAgICAgICAgICAgICAgICAgICAgIGNsczogYCR7TXVsdGlDb2x1bW5TdHlsZUNTUy5Db2x1bW5Db250ZW50fSAke011bHRpQ29sdW1uTGF5b3V0Q1NTLlR3b0VxdWFsQ29sdW1uc31gXG4gICAgICAgICAgICAgICAgICAgIH0pKTtcbiAgICAgICAgICAgICAgICAgICAgYnJlYWs7XG5cbiAgICAgICAgICAgICAgICBjYXNlKENvbHVtbkxheW91dC5sZWZ0KTpcbiAgICAgICAgICAgICAgICBjYXNlKENvbHVtbkxheW91dC5maXJzdCk6XG4gICAgICAgICAgICAgICAgICAgIGNvbHVtbkNvbnRlbnREaXZzLnB1c2gobXVsdGlDb2x1bW5QYXJlbnQuY3JlYXRlRGl2KHtcbiAgICAgICAgICAgICAgICAgICAgICAgIGNsczogYCR7TXVsdGlDb2x1bW5TdHlsZUNTUy5Db2x1bW5Db250ZW50fSAke011bHRpQ29sdW1uTGF5b3V0Q1NTLlR3b0NvbHVtbkxhcmdlfWBcbiAgICAgICAgICAgICAgICAgICAgfSkpO1xuICAgICAgICAgICAgICAgICAgICBtdWx0aUNvbHVtblBhcmVudC5jcmVhdGVEaXYoe1xuICAgICAgICAgICAgICAgICAgICAgICAgY2xzOiBgbWNtLWNvbHVtbi1zcGFjZXJgLFxuICAgICAgICAgICAgICAgICAgICAgICAgYXR0cjoge1wic3R5bGVcIjogc3R5bGVTdHJ9XG4gICAgICAgICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgICAgICAgICBjb2x1bW5Db250ZW50RGl2cy5wdXNoKG11bHRpQ29sdW1uUGFyZW50LmNyZWF0ZURpdih7XG4gICAgICAgICAgICAgICAgICAgICAgICBjbHM6IGAke011bHRpQ29sdW1uU3R5bGVDU1MuQ29sdW1uQ29udGVudH0gJHtNdWx0aUNvbHVtbkxheW91dENTUy5Ud29Db2x1bW5TbWFsbH1gXG4gICAgICAgICAgICAgICAgICAgIH0pKTtcbiAgICAgICAgICAgICAgICAgICAgYnJlYWs7XG5cbiAgICAgICAgICAgICAgICBjYXNlKENvbHVtbkxheW91dC5yaWdodCk6XG4gICAgICAgICAgICAgICAgY2FzZShDb2x1bW5MYXlvdXQuc2Vjb25kKTpcbiAgICAgICAgICAgICAgICBjYXNlKENvbHVtbkxheW91dC5sYXN0KTpcbiAgICAgICAgICAgICAgICAgICAgY29sdW1uQ29udGVudERpdnMucHVzaChtdWx0aUNvbHVtblBhcmVudC5jcmVhdGVEaXYoe1xuICAgICAgICAgICAgICAgICAgICAgICAgY2xzOiBgJHtNdWx0aUNvbHVtblN0eWxlQ1NTLkNvbHVtbkNvbnRlbnR9ICR7TXVsdGlDb2x1bW5MYXlvdXRDU1MuVHdvQ29sdW1uU21hbGx9YFxuICAgICAgICAgICAgICAgICAgICB9KSk7XG4gICAgICAgICAgICAgICAgICAgIG11bHRpQ29sdW1uUGFyZW50LmNyZWF0ZURpdih7XG4gICAgICAgICAgICAgICAgICAgICAgICBjbHM6IGBtY20tY29sdW1uLXNwYWNlcmAsXG4gICAgICAgICAgICAgICAgICAgICAgICBhdHRyOiB7XCJzdHlsZVwiOiBzdHlsZVN0cn1cbiAgICAgICAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICAgICAgICAgIGNvbHVtbkNvbnRlbnREaXZzLnB1c2gobXVsdGlDb2x1bW5QYXJlbnQuY3JlYXRlRGl2KHtcbiAgICAgICAgICAgICAgICAgICAgICAgIGNsczogYCR7TXVsdGlDb2x1bW5TdHlsZUNTUy5Db2x1bW5Db250ZW50fSAke011bHRpQ29sdW1uTGF5b3V0Q1NTLlR3b0NvbHVtbkxhcmdlfWBcbiAgICAgICAgICAgICAgICAgICAgfSkpO1xuICAgICAgICAgICAgICAgICAgICBicmVhaztcbiAgICAgICAgICAgIH1cbiAgICAgICAgfVxuICAgICAgICBlbHNlIGlmKHNldHRpbmdzLm51bWJlck9mQ29sdW1ucyA9PT0gMykge1xuXG4gICAgICAgICAgICBzd2l0Y2goc2V0dGluZ3MuY29sdW1uTGF5b3V0KSB7XG4gICAgICAgICAgICAgICAgY2FzZShDb2x1bW5MYXlvdXQuc3RhbmRhcmQpOlxuICAgICAgICAgICAgICAgICAgICBjb2x1bW5Db250ZW50RGl2cy5wdXNoKG11bHRpQ29sdW1uUGFyZW50LmNyZWF0ZURpdih7XG4gICAgICAgICAgICAgICAgICAgICAgICBjbHM6IGAke011bHRpQ29sdW1uU3R5bGVDU1MuQ29sdW1uQ29udGVudH0gJHtNdWx0aUNvbHVtbkxheW91dENTUy5UaHJlZUVxdWFsQ29sdW1uc31gXG4gICAgICAgICAgICAgICAgICAgIH0pKTtcbiAgICAgICAgICAgICAgICAgICAgbXVsdGlDb2x1bW5QYXJlbnQuY3JlYXRlRGl2KHtcbiAgICAgICAgICAgICAgICAgICAgICAgIGNsczogYG1jbS1jb2x1bW4tc3BhY2VyYCxcbiAgICAgICAgICAgICAgICAgICAgICAgIGF0dHI6IHtcInN0eWxlXCI6IHN0eWxlU3RyfVxuICAgICAgICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgICAgICAgICAgY29sdW1uQ29udGVudERpdnMucHVzaChtdWx0aUNvbHVtblBhcmVudC5jcmVhdGVEaXYoe1xuICAgICAgICAgICAgICAgICAgICAgICAgY2xzOiBgJHtNdWx0aUNvbHVtblN0eWxlQ1NTLkNvbHVtbkNvbnRlbnR9ICR7TXVsdGlDb2x1bW5MYXlvdXRDU1MuVGhyZWVFcXVhbENvbHVtbnN9YFxuICAgICAgICAgICAgICAgICAgICB9KSk7XG4gICAgICAgICAgICAgICAgICAgIG11bHRpQ29sdW1uUGFyZW50LmNyZWF0ZURpdih7XG4gICAgICAgICAgICAgICAgICAgICAgICBjbHM6IGBtY20tY29sdW1uLXNwYWNlcmAsXG4gICAgICAgICAgICAgICAgICAgICAgICBhdHRyOiB7XCJzdHlsZVwiOiBzdHlsZVN0cn1cbiAgICAgICAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICAgICAgICAgIGNvbHVtbkNvbnRlbnREaXZzLnB1c2gobXVsdGlDb2x1bW5QYXJlbnQuY3JlYXRlRGl2KHtcbiAgICAgICAgICAgICAgICAgICAgICAgIGNsczogYCR7TXVsdGlDb2x1bW5TdHlsZUNTUy5Db2x1bW5Db250ZW50fSAke011bHRpQ29sdW1uTGF5b3V0Q1NTLlRocmVlRXF1YWxDb2x1bW5zfWBcbiAgICAgICAgICAgICAgICAgICAgfSkpO1xuICAgICAgICAgICAgICAgICAgICBicmVhaztcblxuICAgICAgICAgICAgICAgIGNhc2UoQ29sdW1uTGF5b3V0LmxlZnQpOlxuICAgICAgICAgICAgICAgIGNhc2UoQ29sdW1uTGF5b3V0LmZpcnN0KTpcbiAgICAgICAgICAgICAgICAgICAgY29sdW1uQ29udGVudERpdnMucHVzaChtdWx0aUNvbHVtblBhcmVudC5jcmVhdGVEaXYoe1xuICAgICAgICAgICAgICAgICAgICAgICAgY2xzOiBgJHtNdWx0aUNvbHVtblN0eWxlQ1NTLkNvbHVtbkNvbnRlbnR9ICR7TXVsdGlDb2x1bW5MYXlvdXRDU1MuVGhyZWVDb2x1bW5fTGFyZ2V9YFxuICAgICAgICAgICAgICAgICAgICB9KSk7XG4gICAgICAgICAgICAgICAgICAgIG11bHRpQ29sdW1uUGFyZW50LmNyZWF0ZURpdih7XG4gICAgICAgICAgICAgICAgICAgICAgICBjbHM6IGBtY20tY29sdW1uLXNwYWNlcmAsXG4gICAgICAgICAgICAgICAgICAgICAgICBhdHRyOiB7XCJzdHlsZVwiOiBzdHlsZVN0cn1cbiAgICAgICAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICAgICAgICAgIGNvbHVtbkNvbnRlbnREaXZzLnB1c2gobXVsdGlDb2x1bW5QYXJlbnQuY3JlYXRlRGl2KHtcbiAgICAgICAgICAgICAgICAgICAgICAgIGNsczogYCR7TXVsdGlDb2x1bW5TdHlsZUNTUy5Db2x1bW5Db250ZW50fSAke011bHRpQ29sdW1uTGF5b3V0Q1NTLlRocmVlQ29sdW1uX1NtYWxsfWBcbiAgICAgICAgICAgICAgICAgICAgfSkpO1xuICAgICAgICAgICAgICAgICAgICBtdWx0aUNvbHVtblBhcmVudC5jcmVhdGVEaXYoe1xuICAgICAgICAgICAgICAgICAgICAgICAgY2xzOiBgbWNtLWNvbHVtbi1zcGFjZXJgLFxuICAgICAgICAgICAgICAgICAgICAgICAgYXR0cjoge1wic3R5bGVcIjogc3R5bGVTdHJ9XG4gICAgICAgICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgICAgICAgICBjb2x1bW5Db250ZW50RGl2cy5wdXNoKG11bHRpQ29sdW1uUGFyZW50LmNyZWF0ZURpdih7XG4gICAgICAgICAgICAgICAgICAgICAgICBjbHM6IGAke011bHRpQ29sdW1uU3R5bGVDU1MuQ29sdW1uQ29udGVudH0gJHtNdWx0aUNvbHVtbkxheW91dENTUy5UaHJlZUNvbHVtbl9TbWFsbH1gXG4gICAgICAgICAgICAgICAgICAgIH0pKTtcbiAgICAgICAgICAgICAgICAgICAgYnJlYWs7XG5cbiAgICAgICAgICAgICAgICBjYXNlKENvbHVtbkxheW91dC5taWRkbGUpOlxuICAgICAgICAgICAgICAgIGNhc2UoQ29sdW1uTGF5b3V0LmNlbnRlcik6XG4gICAgICAgICAgICAgICAgY2FzZShDb2x1bW5MYXlvdXQuc2Vjb25kKTpcbiAgICAgICAgICAgICAgICAgICAgY29sdW1uQ29udGVudERpdnMucHVzaChtdWx0aUNvbHVtblBhcmVudC5jcmVhdGVEaXYoe1xuICAgICAgICAgICAgICAgICAgICAgICAgY2xzOiBgJHtNdWx0aUNvbHVtblN0eWxlQ1NTLkNvbHVtbkNvbnRlbnR9ICR7TXVsdGlDb2x1bW5MYXlvdXRDU1MuVGhyZWVDb2x1bW5fU21hbGx9YFxuICAgICAgICAgICAgICAgICAgICB9KSk7XG4gICAgICAgICAgICAgICAgICAgIG11bHRpQ29sdW1uUGFyZW50LmNyZWF0ZURpdih7XG4gICAgICAgICAgICAgICAgICAgICAgICBjbHM6IGBtY20tY29sdW1uLXNwYWNlcmAsXG4gICAgICAgICAgICAgICAgICAgICAgICBhdHRyOiB7XCJzdHlsZVwiOiBzdHlsZVN0cn1cbiAgICAgICAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICAgICAgICAgIGNvbHVtbkNvbnRlbnREaXZzLnB1c2gobXVsdGlDb2x1bW5QYXJlbnQuY3JlYXRlRGl2KHtcbiAgICAgICAgICAgICAgICAgICAgICAgIGNsczogYCR7TXVsdGlDb2x1bW5TdHlsZUNTUy5Db2x1bW5Db250ZW50fSAke011bHRpQ29sdW1uTGF5b3V0Q1NTLlRocmVlQ29sdW1uX0xhcmdlfWBcbiAgICAgICAgICAgICAgICAgICAgfSkpO1xuICAgICAgICAgICAgICAgICAgICBtdWx0aUNvbHVtblBhcmVudC5jcmVhdGVEaXYoe1xuICAgICAgICAgICAgICAgICAgICAgICAgY2xzOiBgbWNtLWNvbHVtbi1zcGFjZXJgLFxuICAgICAgICAgICAgICAgICAgICAgICAgYXR0cjoge1wic3R5bGVcIjogc3R5bGVTdHJ9XG4gICAgICAgICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgICAgICAgICBjb2x1bW5Db250ZW50RGl2cy5wdXNoKG11bHRpQ29sdW1uUGFyZW50LmNyZWF0ZURpdih7XG4gICAgICAgICAgICAgICAgICAgICAgICBjbHM6IGAke011bHRpQ29sdW1uU3R5bGVDU1MuQ29sdW1uQ29udGVudH0gJHtNdWx0aUNvbHVtbkxheW91dENTUy5UaHJlZUNvbHVtbl9TbWFsbH1gXG4gICAgICAgICAgICAgICAgICAgIH0pKTtcbiAgICAgICAgICAgICAgICAgICAgYnJlYWs7XG5cbiAgICAgICAgICAgICAgICBjYXNlKENvbHVtbkxheW91dC5yaWdodCk6XG4gICAgICAgICAgICAgICAgY2FzZShDb2x1bW5MYXlvdXQudGhpcmQpOlxuICAgICAgICAgICAgICAgIGNhc2UoQ29sdW1uTGF5b3V0Lmxhc3QpOlxuICAgICAgICAgICAgICAgICAgICBjb2x1bW5Db250ZW50RGl2cy5wdXNoKG11bHRpQ29sdW1uUGFyZW50LmNyZWF0ZURpdih7XG4gICAgICAgICAgICAgICAgICAgICAgICBjbHM6IGAke011bHRpQ29sdW1uU3R5bGVDU1MuQ29sdW1uQ29udGVudH0gJHtNdWx0aUNvbHVtbkxheW91dENTUy5UaHJlZUNvbHVtbl9TbWFsbH1gXG4gICAgICAgICAgICAgICAgICAgIH0pKTtcbiAgICAgICAgICAgICAgICAgICAgbXVsdGlDb2x1bW5QYXJlbnQuY3JlYXRlRGl2KHtcbiAgICAgICAgICAgICAgICAgICAgICAgIGNsczogYG1jbS1jb2x1bW4tc3BhY2VyYCxcbiAgICAgICAgICAgICAgICAgICAgICAgIGF0dHI6IHtcInN0eWxlXCI6IHN0eWxlU3RyfVxuICAgICAgICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgICAgICAgICAgY29sdW1uQ29udGVudERpdnMucHVzaChtdWx0aUNvbHVtblBhcmVudC5jcmVhdGVEaXYoe1xuICAgICAgICAgICAgICAgICAgICAgICAgY2xzOiBgJHtNdWx0aUNvbHVtblN0eWxlQ1NTLkNvbHVtbkNvbnRlbnR9ICR7TXVsdGlDb2x1bW5MYXlvdXRDU1MuVGhyZWVDb2x1bW5fU21hbGx9YFxuICAgICAgICAgICAgICAgICAgICB9KSk7XG4gICAgICAgICAgICAgICAgICAgIG11bHRpQ29sdW1uUGFyZW50LmNyZWF0ZURpdih7XG4gICAgICAgICAgICAgICAgICAgICAgICBjbHM6IGBtY20tY29sdW1uLXNwYWNlcmAsXG4gICAgICAgICAgICAgICAgICAgICAgICBhdHRyOiB7XCJzdHlsZVwiOiBzdHlsZVN0cn1cbiAgICAgICAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICAgICAgICAgIGNvbHVtbkNvbnRlbnREaXZzLnB1c2gobXVsdGlDb2x1bW5QYXJlbnQuY3JlYXRlRGl2KHtcbiAgICAgICAgICAgICAgICAgICAgICAgIGNsczogYCR7TXVsdGlDb2x1bW5TdHlsZUNTUy5Db2x1bW5Db250ZW50fSAke011bHRpQ29sdW1uTGF5b3V0Q1NTLlRocmVlQ29sdW1uX0xhcmdlfWBcbiAgICAgICAgICAgICAgICAgICAgfSkpO1xuICAgICAgICAgICAgICAgICAgICBicmVhaztcbiAgICAgICAgICAgIH1cbiAgICAgICAgfVxuXG4gICAgICAgIHJldHVybiBjb2x1bW5Db250ZW50RGl2cztcbiAgICB9XG5cbiAgICBwdWJsaWMgYWJzdHJhY3QgcmVuZGVyUmVnaW9uRWxlbWVudHNUb1NjcmVlbigpOiB2b2lkO1xuICAgIHB1YmxpYyBhYnN0cmFjdCBleHBvcnRSZWdpb25FbGVtZW50c1RvUERGKHBkZlBhcmVudEVsZW1lbnQ6IEhUTUxFbGVtZW50KTogdm9pZDtcbiAgICBwdWJsaWMgYWJzdHJhY3QgcmVuZGVyUmVnaW9uRWxlbWVudHNUb0xpdmVQcmV2aWV3KHBhcmVudEVsZW1lbnQ6IEhUTUxFbGVtZW50KTogdm9pZFxufVxuXG5cbmZ1bmN0aW9uIGdldEVsZW1lbnRDbGllbnRIZWlnaHQoZWxlbWVudDogSFRNTEVsZW1lbnQsIHBhcmVudFJlbmRlckVsZW1lbnQ6IEhUTUxEaXZFbGVtZW50KTogbnVtYmVyIHtcblxuICAgIGxldCBoZWlnaHQgPSBlbGVtZW50LmNsaWVudEhlaWdodDtcbiAgICBpZihoZWlnaHQgPT09IDApIHtcbiAgICAgICAgcGFyZW50UmVuZGVyRWxlbWVudC5hcHBlbmRDaGlsZChlbGVtZW50KTtcbiAgICAgICAgaGVpZ2h0ID0gZWxlbWVudC5jbGllbnRIZWlnaHRcbiAgICAgICAgcGFyZW50UmVuZGVyRWxlbWVudC5yZW1vdmVDaGlsZChlbGVtZW50KTtcbiAgICB9XG4gICAgcmV0dXJuIGhlaWdodFxufSIsIi8qKlxuICogRmlsZTogL3NyYy9kb21fbWFuYWdlci9yZWdpb25hbF9tYW5hZ2Vycy9yZWdpb25ET01NYW5hZ2VyLnRzICAgICAgICAgICAgICAgICpcbiAqIENyZWF0ZWQgRGF0ZTogU3VuZGF5LCBNYXkgMjJuZCAyMDIyLCA3OjQ2IHBtICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAqXG4gKiBBdXRob3I6IENhbWVyb24gUm9iaW5zb24gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgKlxuICogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICpcbiAqIENvcHlyaWdodCAoYykgMjAyMiBDYW1lcm9uIFJvYmluc29uICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAqXG4gKi9cblxuaW1wb3J0IHsgRE9NT2JqZWN0LCBET01PYmplY3RUYWcsIFRhc2tMaXN0RE9NT2JqZWN0IH0gZnJvbSAnLi4vZG9tT2JqZWN0JztcbmltcG9ydCB7IE11bHRpQ29sdW1uU2V0dGluZ3MsIENvbnRlbnRPdmVyZmxvd1R5cGUsIEFsaWdubWVudFR5cGUgfSBmcm9tIFwiLi4vLi4vcmVnaW9uU2V0dGluZ3NcIjtcbmltcG9ydCB7IE11bHRpQ29sdW1uTGF5b3V0Q1NTLCBNdWx0aUNvbHVtblN0eWxlQ1NTIH0gZnJvbSAnLi4vLi4vdXRpbGl0aWVzL2Nzc0RlZmluaXRpb25zJzt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ldCBpID0gMDsgaSA8IHJlZ2lvbkVsZW1lbnRzLmxlbmd0aDsgaSsrKSB7XG5cbiAgICAgICAgICAgIGlmIChyZWdpb25FbGVtZW50c1tpXS50YWcgPT09IERPTU9iamVjdFRhZy5ub25lIHx8XG4gICAgICAgICAgICAgICAgcmVnaW9uRWxlbWVudHNbaV0udGFnID09PSBET01PYmplY3RUYWcuY29sdW1uQnJlYWspIHtcblxuICAgICAgICAgICAgICAgIC8vIFdlIHN0b3JlIHRoZSBlbGVtZW50cyBpbiBhIHdyYXBwZXIgY29udGFpbmVyIHVudGlsIHdlIGRldGVybWluZVxuICAgICAgICAgICAgICAgIGxldCBlbGVtZW50ID0gY3JlYXRlRGl2KHtcbiAgICAgICAgICAgICAgICAgICAgY2xzOiBNdWx0aUNvbHVtbkxheW91dENTUy5Db2x1bW5EdWFsRWxlbWVudENvbnRhaW5lcixcbiAgICAgICAgICAgICAgICB9KTtcblxuICAgICAgICAgICAgICAgIGlmKHNldHRpbmdzLmNvbnRlbnRPdmVyZmxvdyA9PT0gQ29udGVudE92ZXJmbG93VHlwZS5oaWRkZW4pIHtcbiAgICAgICAgICAgICAgICAgICAgZWxlbWVudC5hZGRDbGFzcyhNdWx0aUNvbHVtbkxheW91dENTUy5Db250ZW50T3ZlcmZsb3dIaWRkZW4pXG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgIGVsc2Uge1xuICAgICAgICAgICAgICAgICAgICBlbGVtZW50LmFkZENsYXNzKE11bHRpQ29sdW1uTGF5b3V0Q1NTLkNvbnRlbnRPdmVyZmxvd0F1dG9TY3JvbGwpXG4gICAgICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICAgICAgaWYoc2V0dGluZ3MuYWxpZ25tZW50ID09PSBBbGlnbm1lbnRUeXBlLmNlbnRlcikge1xuICAgICAgICAgICAgICAgICAgICBlbGVtZW50LmFkZENsYXNzKE11bHRpQ29sdW1uTGF5b3V0Q1NTLkFsaWdubWVudENlbnRlcilcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgZWxzZSBpZiAoc2V0dGluZ3MuYWxpZ25tZW50ID09PSBBbGlnbm1lbnRUeXBlLnJpZ2h0KSB7XG4gICAgICAgICAgICAgICAgICAgIGVsZW1lbnQuYWRkQ2xhc3MoTXVsdGlDb2x1bW5MYXlvdXRDU1MuQWxpZ25tZW50UmlnaHQpXG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgIGVsc2Uge1xuICAgICAgICAgICAgICAgICAgICBlbGVtZW50LmFkZENsYXNzKE11bHRpQ29sdW1uTGF5b3V0Q1NTLkFsaWdubWVudExlZnQpXG4gICAgICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICAgICAgcmVnaW9uRWxlbWVudHNbaV0uZWxlbWVudENvbnRhaW5lciA9IGVsZW1lbnQ7XG5cbiAgICAgICAgICAgICAgICAvLyBPdGhlcndpc2Ugd2UganVzdCBtYWtlIGEgY29weSBvZiB0aGUgb3JpZ2luYWwgZWxlbWVudCB0byBkaXNwbGF5LlxuICAgICAgICAgICAgICAgIGxldCBjbG9uZWRFbGVtZW50ID0gcmVnaW9uRWxlbWVudHNbaV0ub3JpZ2luYWxFbGVtZW50LmNsb25lTm9kZSh0cnVlKSBhcyBIVE1MRGl2RWxlbWVudDtcbiAgICAgICAgICAgICAgICBsZXQgaGVhZGluZ0NvbGxhcHNlRWxlbWVudCA9IGdldEhlYWRpbmdDb2xsYXBzZUVsZW1lbnQoY2xvbmVkRWxlbWVudCk7XG4gICAgICAgICAgICAgICAgaWYoaGVhZGluZ0NvbGxhcHNlRWxlbWVudCAhPT0gbnVsbCkge1xuICAgICAgICAgICAgICAgICAgICAvLyBUaGlzIHJlbW92ZXMgdGhlIGNvbGxhcHNlIGFycm93IGZyb20gdGhlIHZpZXcgaWYgaXQgZXhpc3RzLlxuICAgICAgICAgICAgICAgICAgICBoZWFkaW5nQ29sbGFwc2VFbGVtZW50LmRldGFjaCgpO1xuICAgICAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgICAgIHJlZ2lvbkVsZW1lbnRzW2ldLmNsb25lZEVsZW1lbnQgPSBjbG9uZWRFbGVtZW50O1xuICAgICAgICAgICAgICAgIGVsZW1lbnQuYXBwZW5kQ2hpbGQoY2xvbmVkRWxlbWVudCk7XG5cbiAgICAgICAgICAgICAgICBpZiAocmVnaW9uRWxlbWVudHNbaV0gaW5zdGFuY2VvZiBUYXNrTGlzdERPTU9iamVjdCkge1xuXG4gICAgICAgICAgICAgICAgICAgIHRoaXMuZml4Q2xvbmVkQ2hlY2tMaXN0QnV0dG9ucyhyZWdpb25FbGVtZW50c1tpXSBhcyBUYXNrTGlzdERPTU9iamVjdCwgdHJ1ZSk7XG4gICAgICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICAgICAgaWYgKGVsZW1lbnQgIT09IG51bGwgJiYgcmVnaW9uRWxlbWVudHNbaV0udGFnICE9PSBET01PYmplY3RUYWcuY29sdW1uQnJlYWspIHtcblxuICAgICAgICAgICAgICAgICAgICBjb2x1bW5Db250ZW50RGl2c1tjb2x1bW5JbmRleF0uYXBwZW5kQ2hpbGQoZWxlbWVudCk7XG4gICAgICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICAgICAgLyoqXG4gICAgICAgICAgICAgICAgICogSWYgdGhlIHRhZyBpcyBhIGNvbHVtbiBicmVhayB3ZSB1cGRhdGUgdGhlIGNvbHVtbiBpbmRleCBhZnRlclxuICAgICAgICAgICAgICAgICAqIGFwcGVuZGluZyB0aGUgaXRlbSB0byB0aGUgY29sdW1uIGRpdi4gVGhpcyBrZWVwcyB0aGUgbWFpbiBET01cbiAgICAgICAgICAgICAgICAgKiBjbGVhbmVyIGJ5IHJlbW92aW5nIG90aGVyIGl0ZW1zIGFuZCBwbGFjaW5nIHRoZW0gYWxsIHdpdGhpblxuICAgICAgICAgICAgICAgICAqIGEgcmVnaW9uIGNvbnRhaW5lci5cbiAgICAgICAgICAgICAgICAgKi9cbiAgICAgICAgICAgICA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AgICAgICAgICAgICBlbGVtZW50LmFwcGVuZENoaWxkKGNsb25lZEVsZW1lbnQpO1xuXG4gICAgICAgICAgICAgICAgaWYgKHJlZ2lvbkVsZW1lbnRzW2ldIGluc3RhbmNlb2YgVGFza0xpc3RET01PYmplY3QpIHtcblxuICAgICAgICAgICAgICAgICAgICB0aGlzLmZpeENsb25lZENoZWNrTGlzdEJ1dHRvbnMocmVnaW9uRWxlbWVudHNbaV0gYXMgVGFza0xpc3RET01PYmplY3QsIHRydWUpO1xuICAgICAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgICAgIGlmIChlbGVtZW50ICE9PSBudWxsKSB7XG5cbiAgICAgICAgICAgICAgICAgICAgY29sdW1uQ29udGVudERpdi5hcHBlbmRDaGlsZChlbGVtZW50KTtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9XG4gICAgICAgIH1cbiAgICB9XG5cbiAgICBjcmVhdGVDb2x1bW5Db250ZW50RGl2cyhtdWx0aUNvbHVtblBhcmVudDogSFRNTERpdkVsZW1lbnQpOiBIVE1MRGl2RWxlbWVudCB7XG5cbiAgICAgICAgbGV0IGNvbnRlbnREaXYgPSBtdWx0aUNvbHVtblBhcmVudC5jcmVhdGVEaXYoe1xuICAgICAgICAgICAgY2xzOiBgJHtNdWx0aUNvbHVtblN0eWxlQ1NTLkNvbHVtbkNvbnRlbnR9YFxuICAgICAgICB9KTtcblxuICAgICAgICBpZih0aGlzLnJlZ2lvbmFsU2V0dGluZ3MuY29sdW1uU2l6ZSA9PT0gU2luZ2xlQ29sdW1uU2l6ZS5zbWFsbCkge1xuICAgICAgICAgICAgY29udGVudERpdi5hZGRDbGFzcyhgJHtNdWx0aUNvbHVtbkxheW91dENTUy5TaW5nbGVDb2x1bW5TbWFsbH1gKVxuICAgICAgICB9XG4gICAgICAgIGVsc2UgaWYodGhpcy5yZWdpb25hbFNldHRpbmdzLmNvbHVtblNpemUgPT09IFNpbmdsZUNvbHVtblNpemUubGFyZ2UpIHtcb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AgICAgIHJldHVybiB0cnVlO1xuICAgICB9XG4gXG4gICAgIHJldHVybiBmYWxzZVxufVxuXG5mdW5jdGlvbiBpc1JpZ2h0TGF5b3V0KGxheW91dDogQ29sdW1uTGF5b3V0KTogYm9vbGVhbiB7XG5cbiAgICBpZihsYXlvdXQgPT09IENvbHVtbkxheW91dC5yaWdodCB8fFxuICAgICAgIGxheW91dCA9PT0gQ29sdW1uTGF5b3V0LnRoaXJkIHx8XG4gICAgICAgbGF5b3V0ID09PSBDb2x1bW5MYXlvdXQubGFzdCApIHtcbiBcbiAgICAgICAgIHJldHVybiB0cnVlO1xuICAgICB9XG4gXG4gICAgIHJldHVybiBmYWxzZVxufSIsIi8qKlxuICogRmlsZTogL3NyYy9kb21fbWFuYWdlci9yZWdpb25hbF9tYW5hZ2Vycy9hdXRvTGF5b3V0UmVnaW9uTWFuYWdlci50cyAgICAgICAgICpcbiAqIENyZWF0ZWQgRGF0ZTogU3VuZGF5LCBNYXkgMjJuZCAyMDIyLCAxMDoyMyBwbSAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAqXG4gKiBBdXRob3I6IENhbWVyb24gUm9iaW5zb24gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgKlxuICogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICpcbiAqIENvcHlyaWdodCAoYykgMjAyMiBDYW1lcm9uIFJvYmluc29uICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAqXG4gKi9cblxuaW1wb3J0IHsgRE9NT2JqZWN0LCBET01PYmplY3RUYWcsIFRhc2tMaXN0RE9NT2JqZWN0IH0gZnJvbSAnLi4vZG9tT2JqZWN0JztcbmltcG9ydCB7IE11bHRpQ29sdW1uU2V0dGluZ3MgfSBmcm9tIFwiLi4vLi4vcmVnaW9uU2V0dGluZ3NcIjtcbmltcG9ydCB7IE11b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AgICAgICAgICAgICAgICAgICAgY29sdW1uSW5kZXgrKztcbiAgICAgICAgICAgICAgICAgICAgY3VycmVudENvbHVtbkhlaWdodCA9IDA7XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICBmb3IgKGxldCBpID0gMDsgaSA8IHJlZ2lvbkVsZW1lbnRzLmxlbmd0aDsgaSsrKSB7XG5cbiAgICAgICAgICAgICAgICBpZiAocmVnaW9uRWxlbWVudHNbaV0udGFnID09PSBET01PYmplY3RUYWcubm9uZSB8fFxuICAgICAgICAgICAgICAgICAgICByZWdpb25FbGVtZW50c1tpXS50YWcgPT09IERPTU9iamVjdFRhZy5jb2x1bW5CcmVhaykge1xuICAgIFxuICAgICAgICAgICAgICAgICAgICAvKipcbiAgICAgICAgICAgICAgICAgICAgICogSGVyZSB3ZSBjaGVjayBpZiB3ZSBuZWVkIHRvIHN3YXAgdG8gdGhlIG5leHQgY29sdW1uIGZvciB0aGUgY3VycmVudCBlbGVtZW50LlxuICAgICAgICAgICAgICAgICAgICAgKiBJZiB0aGUgdXNlciB3YW50cyB0byBrZWVwIGhlYWRpbmdzIHdpdGggdGhlIGNvbnRlbnQgYmVsb3cgaXQgd2UgYWxzbyBtYWtlIHN1cmVcbiAgICAgICAgICAgICAgICAgICAgICogdGhhdCB0aGUgbGFzdCBpdGVtIGluIGEgY29sdW1uIGlzIG5vdCBhIGhlYWRlciBlbGVtZW50IGJ5IHVzaW5nIHRoZSBoZWFkZXIgYW5kXG4gICAgICAgICAgICAgICAgICAgICAqIHRoZSBuZXh0IGVsZW1lbnQncyBoZWlnaHQgYXMgdGhlIGhlaWdodCB2YWx1ZS4gXG4gICAgICAgICAgICAgICAgICAgICAqL1xuICAgICAgICAgICAgICAgICAgICBpZihoYXNIZWFkZXIocmVnaW9uRWxlbWVudHNbaV0ub3JpZ2luYWxFbGVtZW50KSA9PT0gdHJ1ZSkgeyAvLyBUT0RPOiBBZGQgdGhpcyBhcyBzZWxlY3RhYmxlIG9wdGlvbi5cbiAgICBcbiAgICAgICAgICAgICAgICAgICAgICAgIGxldCBoZWFkZXJBbmROZXh0RWxlbWVudEhlaWdodCA9IHJlZ2lvbkVsZW1lbnRzW2ldLmVsZW1lbnRSZW5kZXJlZEhlaWdodDtcbiAgICAgICAgICAgICAgICAgICAgICAgIGlmKGkgPCByZWdpb25FbGVtZW50cy5sZW5ndGggLSAxKSB7XG4gICAgXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgaGVhZGVyQW5kTmV4dEVsZW1lbnRIZWlnaHQgKz0gcmVnaW9uRWxlbWVudHNbaSArIDFdLmVsZW1lbnRSZW5kZXJlZEhlaWdodDtcbiAgICAgICAgICAgICAgICAgICAgICAgIH1cbiAgICBcbiAgICAgICAgICAgICAgICAgICAgICAgIGNoZWNrU2hvdWxkU3dpdGNoQ29sdW1ucyhoZWFkZXJBbmROZXh0RWxlbWVudEhlaWdodCk7XG4gICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgICAgZWxzZSB7XG4gICAgXG4gICAgICAgICAgICAgICAgICAgICAgICBjaGVja1Nob3VsZFN3aXRjaENvbHVtbnMocmVnaW9uRWxlbWVudHNbaV0uZWxlbWVudFJlbmRlcmVkSGVpZ2h0KTtcbiAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICBjdXJyZW50Q29sdW1uSGVpZ2h0ICs9IHJlZ2lvbkVsZW1lbnRzW2ldLmVsZW1lbnRSZW5kZXJlZEhlaWdodFxuICAgIFxuICAgIFxuICAgICAgICAgICAgICAgICAgICAvKipcbiAgICAgICAgICAgICAgICAgICAgICogV2Ugc3RvcmUgdGhlIGVsZW1lbnRzIGluIGEgd3JhcHBlciBjb250YWluZXIgdW50aWwgd2UgZGV0ZXJtaW5lIGlmIHdlIHdhbnQgdG8gXG4gICAgICAgICAgICAgICAgICAgICAqIHVzZSB0aGUgb3JpZ2luYWwgZWxlbWVudCBvciBhIGNsb25lIG9mIHRoZSBlbGVtZW50LiBUaGlzIGhlbHBzIHVzIGJ5IGFsbG93aW5nIFxuICAgICAgICAgICAgICAgICAgICAgKiB1cyB0byBjcmVhdGUgYSB2aXN1YWwgb25seSBjbG9uZSB3aGlsZSB0aGUgdXBkYXRlIGxvb3AgbW92ZXMgdGhlIG9yaWdpbmFsIGVsZW1lbnQgXG4gICAgICAgICAgICAgICAgICAgICAqIGludG8gdGhlIGNvbHVtbnMuXG4gICAgICAgICAgICAgICAgICAgICAqL1xuICAgICAgICAgICAgICAgICAgICBsZXQgZWxlbWVudCA9IGNyZWF0ZURpdih7XG4gICAgICAgICAgICAgICAgICAgICAgICBjbHM6IE11bHRpQ29sdW1uTGF5b3V0Q1NTLkNvbHVtbkR1YWxFbGVtZW50Q29udGFpbmVyLFxuICAgICAgICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgICAgICAgICAgcmVnaW9uRWxlbWVudHNbaV0uZWxlbWVudENvbnRhaW5lciA9IGVsZW1lbnQ7XG4gICAgXG4gICAgICAgICAgICAgICAgICAgIGxldCBjbG9uZWRFbGVtZW50ID0gcmVnaW9uRWxlbWVudHNbaV0uY2xvbmVkRWxlbWVudDtcbiAgICAgICAgICAgICAgICAgICAgaWYocmVnaW9uRWxlbWVudHNbaV0uY2xvbmVkRWxlbWVudCA9PT0gbnVsbCkge1xuXG4gICAgICAgICAgICAgICAgICAgICAgICBjbG9uZWRFbGVtZW50ID0gcmVnaW9uRWxlbWVudHNbaV0ub3JpZ2luYWxFbGVtZW50LmNsb25lTm9kZSh0cnVlKSBhcyBIVE1MRGl2RWxlbWVudDtcbiAgICAgICAgICAgICAgICAgICAgICAgIGxldCBoZWFkaW5nQ29sbGFwc2VFbGVtZW50ID0gZ2V0SGVhZGluZ0NvbGxhcHNlRWxlbWVudChjbG9uZWRFbGVtZW50KTtcbiAgICAgICAgICAgICAgICAgICAgICAgIGlmKGhlYWRpbmdDb2xsYXBzZUVsZW1lbnQgIT09IG51bGwpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAvLyBUaGlzIHJlbW92ZXMgdGhlIGNvbGxhcHNlIGFycm93IGZyb20gdGhlIHZpZXcgaWYgaXQgZXhpc3RzLlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGhlYWRpbmdDb2xsYXBzZUVsZW1lbnQuZGV0YWNoKCk7XG4gICAgICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgIFxuICAgICAgICAgICAgICAgICAgICAgICAgcmVnaW9uRWxlbWVudHNbaV0uY2xvbmVkRWxlbWVudCA9IGNsb25lZEVsZW1lbnQ7XG4gICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgICAgZWxlbWVudC5hcHBlbmRDaGlsZChjbG9uZWRFbGVtZW50KTtcbiAgICBcbiAgICAgICAgICAgICAgICAgICAgaWYgKHJlZ2lvbkVsZW1lbnRzW2ldIGluc3RhbmNlb2YgVGFza0xpc3RET01PYmplY3QpIHtcbiAgICBcbiAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMuZml4Q2xvbmVkQ2hlY2tMaXN0QnV0dG9ucyhyZWdpb25FbGVtZW50c1tpXSBhcyBUYXNrTGlzdERPTU9iamVjdCwgdHJ1ZSk7XG4gICAgICAgICAgICAgICAgICAgIH1cbiAgICBcbiAgICAgICAgICAgICAgICAgICAgaWYgKGVsZW1lbnQgIT09IG51bGwgJiYgXG4gICAgICAgICAgICAgICAgICAgICAgICBjb2x1bW5Db250ZW50RGl2c1tjb2x1bW5JbmRleF0gJiYgXG4gICAgICAgICAgICAgICAgICAgICAgICByZWdpb25FbGVtZW50c1tpXS50YWcgIT09IERPTU9iamVjdFRhZy5jb2x1bW5CcmVhaykge1xuICAgIFxuICAgICAgICAgICAgICAgICAgICAgICAgY29sdW1uQ29udGVudERpdnNbY29sdW1uSW5kZXhdLmFwcGVuZENoaWxkKGVsZW1lbnQpO1xuICAgICAgICAgICAgICAgICAgICAgICAgcmVnaW9uRWxlbWVudHNbaV0uZWxlbWVudFJlbmRlcmVkSGVpZ2h0ID0gZWxlbWVudC5jbGllbnRIZWlnaHQ7XG4gICAgICAgICAgICAgICAgICAgIH1cbiAgICBcbiAgICAgICAgICAgICAgICAgICAgLyoqXG4gICAgICAgICAgICAgICAgICAgICAqIElmIHRoZSB0YWcgaXMgYSBjb2x1bW4gYnJlYWsgd2UgdXBkYXRlIHRoZSBjb2x1bW4gaW5kZXggYWZ0ZXJcbiAgICAgICAgICAgICAgICAgICAgICogYXBwZW5kaW5nIHRoZSBpdGVtIHRvIHRoZSBjb2x1bW4gZGl2LiBUaGlzIGtlZXBzIHRoZSBtYWluIERPTVxuICAgICAgICAgICAgICAgICAgICAgKiBjbGVhbmVyIGJ5IHJlbW92aW5nIG90aGVyIGl0ZW1zIGFuZCBwbGFjaW5nIHRoZW0gYWxsIHdpdGhpblxuICAgICAgICAgICAgICAgICAgICAgKiBhIHJlZ2lvbiBjb250YWluZXIuXG4gICAgICAgICAgICAgICAgICAgICAqIFxuICAgICAgICAgICAgICAgICAgICAgKiBSZW1vdmluZyB0aGUgZW5kIGNvbHVtbiB0YWcgYXMgYW4gb3B0aW9uIGZvciBub3cuXG4gICAgICAgICAgICAgICAgICAgICAqL1xuICAgICAgICAgICAgICAgICAgICAvLyBpZiAocmVnaW9uRWxlbWVudHNbaV0udGFnID09PSBET01PYmplY3RUYWcuY29sdW1uQnJlYWsgJiZcbiAgICAgICAgICAgICAgICAgICAgLy8gICAgKGNvbHVtbkluZGV4ICsgMSkgPCBzZXR0aW5ncy5udW1iZXJPZkNvbHVtbnMpIHtcbiAgICBcbiAgICAgICAgICAgICAgICAgICAgLy8gICAgIGNvbHVtbkluZGV4Kys7XG4gICAgICAgICAgICAgICAgICAgIC8vICAgICBjdXJyZW50Q29sdW1uSGVpZ2h0ID0gMDtcbiAgICAgICAgICAgICAgICAgICAgLy8gfVxuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH1cbiAgICAgICAgfVxuXG4gICAgICAgIC8qKlx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gICAqL1xuICAgICAgICBmb3IobGV0IGkgPSAwOyBpIDwgNTsgaSsrKSB7XG4gICAgICAgICAgICBcbiAgICAgICAgICAgIGJhbGFuY2VFbGVtZW50cygpXG5cbiAgICAgICAgICAgIGxldCBiYWxhbmNlZCA9IHRydWU7XG4gICAgICAgICAgICBmb3IobGV0IGogPSAwOyBqIDwgY29sdW1uQ29udGVudERpdnMubGVuZ3RoOyBqKyspIHtcblxuICAgICAgICAgICAgICAgIC8vIElmIHRoZSBjb2x1bW4gaGVpZ2h0cyBhcmUgdW5kZWZpbmVkIHdlIHNldCBkZWZhdWx0IHRvIHplcm8gc28gbm90IHRvIGVuY291bnRlciBhbiBlcnJvci5cbiAgICAgICAgICAgICAgICBpZighdGhpcy5wcmV2aW91c0NvbHVtbkhlaWdodHNbal0pIHtcbiAgICAgICAgICAgICAgICAgICAgdGhpcy5wcmV2aW91c0NvbHVtbkhlaWdodHMucHVzaCgwKVxuICAgICAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgICAgIC8vIGlmIHRoaXMgcmVuZGVyIGhlaWdodCBpcyBub3QgdGhlIHNhbWUgYXMgdGhlIHByZXZpb3VzIGhlaWdodCB3ZSBhcmUgc3RpbGwgYmFsYW5jaW5nLlxuICAgICAgICAgICAgICAgIGlmKHRoaXMucHJldmlvdXNDb2x1bW5IZWlnaHRzW2pdICE9PSBjb2x1bW5Db250ZW50RGl2c1tqXS5jbGllbnRIZWlnaHQpIHtcbiAgICAgICAgICAgICAgICAgICAgdGhpcy5wcmV2aW91c0NvbHVtbkhlaWdodHNbal0gPSBjb2x1bW5Db250ZW50RGl2c1tqXS5jbGllbnRIZWlnaHRcbiAgICAgICAgICAgICAgICAgICAgYmFsYW5jZWQgPSBmYWxzZVxuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgLy8gaWYgd2UgbWFkZSBpdCBvdXQgb2YgdGhlIGxvb3AgYW5kIGFsbCBvZiB0aGUgY29sdW1ucyB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zW2ldLmNoaWxkcmVuW2pdLmNsaWVudEhlaWdodFxuICAgICAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgICAgIGlmKGNvbHVtbkhlaWdodCA+IG1heENvbHVtbkNvbnRlbnRIZWlnaHQpIHtcbiAgICAgICAgICAgICAgICAgICAgdmFsaWRDb2x1bW5zID0gZmFsc2U7XG4gICAgICAgICAgICAgICAgICAgIGJyZWFrO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH1cbiAgICAgICAgfVxuXG4gICAgICAgIGlmKHZhbGlkQ29sdW1ucyA9PT0gZmFsc2UpIHtcblxuICAgICAgICAgICAgdGhpcy5yZW5kZXJDb2x1bW5NYXJrZG93bih0aGlzLnJlZ2lvblBhcmVudCwgdGhpcy5kb21MaXN0LCB0aGlzLnJlZ2lvbmFsU2V0dGluZ3MpO1xuICAgICAgICB9XG5cbiAgICAgICAgc3VwZXIudXBkYXRlUmVuZGVyZWRNYXJrZG93bigpO1xuICAgIH1cbn1cblxuIiwiLyoqXG4gKiBGaWxlOiAvc3JjL2RvbV9tYW5hZ2VyL3JlZ2lvbmFsX21hbmFnZXJzL3JlZ2lvbk1hbmFnZXJDb250YWluZXIudHMgICAgICAgICAgKlxuICogQ3JlYXRlZCBEYXRlOiBTdW5kYXksIE1heSAyMm5kIDIwMjIsIDc6NTAgcG0gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICpcbiAqIEF1dGhvcjogQ2FtZXJvbiBSb2JpbnNvbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAqXG4gKiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgKlxuICogQ29weXJpZ2h0IChjKSAyMDIyIENhbWVyb24gUm9iaW5zb24gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICpcbiAqL1xuXG5pbXBvcnQgeyBwYXJzZUN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5cGUoXCJtYXJrZG93blwiKTtcbiAgICAgICAgICAgIGlmIChsZWF2ZXMubGVuZ3RoID4gMCkge1xuICAgICAgICAgICAgICAgIGxlYWYgPSBsZWF2ZXNbMF07XG4gICAgICAgICAgICB9XG4gICAgICAgIH1cblxuICAgICAgICBpZiAodGhpcy5yZWdpb25NYW5hZ2VyKSB7XG5cbiAgICAgICAgICAgIGlmIChsZWFmKSB7XG4gICAgICAgICAgICAgICAgbGVhZi52aWV3LmNvbnRhaW5lckVsLmFwcGVuZENoaWxkKGVsKTtcbiAgICAgICAgICAgIH1cblxuICAgICAgICAgICAgdGhpcy5yZWdpb25NYW5hZ2VyLnJlbmRlclJlZ2lvbkVsZW1lbnRzVG9MaXZlUHJldmlldyhlbCk7XG5cbiAgICAgICAgICAgIGlmIChsZWFmKSB7XG4gICAgICAgICAgICAgICAgbGVhZi52aWV3LmNvbnRhaW5lckVsLnJlbW92ZUNoaWxkKGVsKTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgfVxuXG4gICAgICAgIGZpeEV4dGVybmFsTGlua3MoZWwpXG5cbiAgICAgICAgcmV0dXJuIGVsO1xuICAgIH1cbn1cblxuZXhwb3J0IGNsYXNzIE11bHRpQ29sdW1uTWFya2Rvd25fRGVmaW5lZFNldHRpbmdzX0xpdmVQcmV2aWV3X1dpZGdldCBleHRlbmRzIFdpZGdldFR5cGUge1xuXG4gICAgY29udGVudERhdGE6IHN0cmluZztcblxuICAgIGNvbnN0cnVjdG9yKGNvbnRlbnREYXRhOiBzdHJpbmcpIHtcbiAgICAgICAgc3VwZXIoKTtcblxuICAgICAgICB0aGlzLmNvbnRlbnREYXRhID0gY29udGVudERhdGE7XG4gICAgfVxuXG4gICAgdG9ET00oKSB7XG4gICAgICAgIC8vIENyZWF0ZSBvdXIgZWxlbWVudCB0byBob2xkIGFsbCBvZiB0aGUgbGl2ZSBwcmV2aWV3IGVsZW1lbnRzLlxuICAgICAgICBsZXQgZWwgPSBkb2N1bWVudC5jcmVh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cclxuICAgICAgICB0aGlzLmFkZENvbW1hbmQoeyAgICAgICAgICAgIFxyXG4gICAgICAgICAgICBpZDogYGluc2VydC1tdWx0aS1jb2x1bW4tcmVnaW9uYCxcclxuICAgICAgICAgICAgbmFtZTogYEluc2VydCBNdWx0aS1Db2x1bW4gUmVnaW9uYCxcclxuICAgICAgICAgICAgZWRpdG9yQ2FsbGJhY2s6IChlZGl0b3IsIHZpZXcpID0+IHtcclxuXHJcbiAgICAgICAgICAgICAgICB0cnkge1xyXG4gICAgICAgICAgICAgICAgICAgIGxldCBjdXJzb3JTdGFydFBvc2l0aW9uID0gZWRpdG9yLmdldEN1cnNvcihcImZyb21cIik7XHJcblxyXG4gICAgICAgICAgICAgICAgICAgIGVkaXRvci5nZXREb2MoKS5yZXBsYWNlU2VsZWN0aW9uKFxyXG5gXHJcblxcYFxcYFxcYHN0YXJ0LW11bHRpLWNvbHVtblxyXG5JRDogSURfJHtnZXRVSUQoNCl9XHJcbk51bWJlciBvZiBDb2x1bW5zOiAyXHJcbkxhcmdlc3QgQ29sdW1uOiBzdGFuZGFyZFxyXG5cXGBcXGBcXGBcclxuXHJcblxyXG5cclxuLS0tIGNvbHVtbi1lbmQgLS0tXHJcblxyXG5cclxuXHJcbj09PSBlbmQtbXVsdGktY29sdW1uXHJcblxyXG4ke2VkaXRvci5nZXREb2MoKS5nZXRTZWxlY3Rpb24oKX1gXHJcbiAgICAgICAgICAgICAgICAgICAgKTtcclxuICAgICAgICAgICAgICAgICAgICBcclxuICAgICAgICAgICAgICAgICAgICBjdXJzb3JTdGFydFBvc2l0aW9uLmxpbmUgPSBjdXJzb3JTdGFydFBvc2l0aW9uLmxpbmUgKyA3XHJcbiAgICAgICAgICAgICAgICAgICAgY3Vyc29yU3RhcnRQb3NpdGlvbi5jaCA9IDA7XHJcblxyXG4gICAgICAgICAgICAgICAgICAgIGVkaXRvci5zZXRDdXJzb3IoY3Vyc29yU3RhcnRQb3NpdGlvbik7XHJcbiAgICAgICAgICAgICAgICB9IGNhdGNoIChlKSB7XHJcbiAgICAgICAgICAgICAgICAgICAgbmV3IE5vdGljZShcclxuICAgICAgICAgICAgICAgICAgICAgICAgXCJFbmNvdW50ZXJlZCBhbiBlcnJvciBpbnNlcnRpbmcgYSBtdWx0aS1jb2x1bW4gcmVnaW9uLiBQbGVhc2UgdHJ5IGFnYWluIGxhdGVyLlwiXHJcbiAgICAgICAgICAgICAgICAgICAgKTtcclxuICAgICAgICAgICAgICAgIH1cclxuICAgICAgICAgICAgfVxyXG4gICAgICAgIH0pO1xyXG5cclxuICAgICAgICB0aGlzLmFkZENvbW1hbmQoeyAgICAgICAgICAgIFxyXG4gICAgICAgICAgICBpZDogYGFkZC1JRHMtVG8tbXVsdGktY29sdW1uLXJlZ2lvbmAsXHJcbiAgICAgICAgICAgIG5hbWU6IGBGaXggTWlzc2luZyBJRHMgZm9yIE11bHRpLUNvbHVtbiBSZWdpb25zYCxcclxuICAgICAgICAgICAgZWRpdG9yQ2FsbGJhY2s6IChlZGl0b3IsIHZpZXcpID0+IHtcclxuXHJcbiAgICAgICAgICAgICAgICB0cnkge1xyXG4gICAgICAgICAgICAgICAgICAgIC8qKlxyXG4gICAgICAgICAgICAgICAgICAgICAqIE5vdCBzdXJlIGlmIHRoZXJlIGlzIGFuIGVhc2llciB3YXkgdG8gZG8gdGhpcy5cclxuICAgICAgICAgICAgICAgICAgICAgKiBcclxuICAgICAgICAgICAgICAgICAgICAgKiBHZXQgYWxsIG9mIHRoZSBsaW5lcyBvZiB0aGUgZG9jdW1lbnQgc3BsaXQgYnkgbmV3bGluZXMuXHJcbiAgICAgICAgICAgICAgICAgICAgICovXHJcbiAgICAgICAgICAgICAgICAgICAgbGV0IGRvY1RleHQgPSBlZGl0b3IuZ2V0UmFuZ2UoeyBsaW5lOiAwLCBjaDogMCB9LCB7IGxpbmU6IGVkaXRvci5nZXREb2MoKS5saW5lQ291bnQoKSwgY2g6IDB9KTtcclxuICAgICAgICAgICAgICAgICAgICBsZXQgbGluZXMgPSBkb2NUZXh0LnNwbGl0KFwiXFxuXCIpO1xyXG5cclxuICAgICAgICAgICAgICAgICAgICBsZXQgc3RhcnRDb2RlYmxvY2sgPSBtdWx0aUNvbHVtblBhcnNlci5maW5kU3RhcnRDb2RlYmxvY2soZG9jVGV4dCk7XHJcbiAgICAgICAgICAgICAgICAgICAgbGV0IGxpbmVPZmZzZXQgPSAwO1xyXG4gICAgICAgICAgICAgICAgICAgIGxldCBudW1Db2RlYmxvY2tzVXBkYXRlZCA9IDA7XHJcbiAgICAgICAgICAgICAgICAgICAgd2hpbGUoc3RhcnRDb2RlYmxvY2suZm91bmQgPT09IHRydWUpIHtcclxuXHJcbiAgICAgICAgICAgICAgICAgICAgICAgIC8vIEdldCB0aGUgdGV4dCBvZiB0aGUgc2V0dGluZ3MgYmxvY2sgc28gd2UgY2FuIGNoZWNrIGlmIGl0IGNvbnRhaW5zIGFuIElELFxyXG4gICAgICAgICAgICAgICAgICAgICAgICAvLyBhbHNvIHNvIHdlIGNhbiBnZXQgdGhlIGxlbmd0aCBvZiB0aGUgZmlyc3QgbGluZSwgdXNlZCB0byBjYWxjdWxhdGUgd2hlcmUgdG8gYXBwZW5kIGEgbmV3IElEIGlmIG5lZWRlZFxyXG4gICAgICAgICAgICAgICAgICAgICAgICBsZXQgc2V0dGluZ3NUZXh0ID0gZG9jVGV4dC5zbGljZShzdGFydENvZGVibG9jay5zdGFydFBvc2l0aW9uLCBzdGFydENvZGVibG9jay5lbmRQb3NpdGlvbik7XHJcbiAgICAgICAgICAgICAgICAgICAgICAgIGxldCBmaXJzdExpbmVPZkNvZGVibG9ja0xlbmd0aCA9IHNldHRpbmdzVGV4dC5zcGxpdChcIlxcblwiKVswXS5sZW5ndGg7XHJcbiAgICAgICAgICAgICAgICAgICAgICAgIFxyXG4gICAgICAgICAgICAgICAgICAgICAgICAvLyBXZSBuZWVkIHRoZSBsaW5lcyBiZWZvcmUgdGhlIGJsb2NrIHRvIGtub3cgd2hlcmUgdG8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AgICAgICAgICAgICAgbGV0IHJlcGxhY2VtZW50VGV4dCA9IGVkaXRvci5nZXRSYW5nZSh7IGxpbmU6IHN0YXJ0UmVwbGFjZW1lbnRMaW5lSW5kZXgsIGNoOiAwIH0sIHsgbGluZTogc3RhcnRSZXBsYWNlbWVudExpbmVJbmRleCwgY2g6IGZpcnN0TGluZU9mQ29kZWJsb2NrTGVuZ3RofSkgKyBgXFxuSUQ6IElEXyR7Z2V0VUlEKDQpfWBcclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGVkaXRvci5yZXBsYWNlUmFuZ2UocmVwbGFjZW1lbnRUZXh0LCB7IGxpbmU6IHN0YXJ0UmVwbGFjZW1lbnRMaW5lSW5kZXgsIGNoOiAwIH0sIFxyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHsgbGluZTogc3RhcnRSZXBsYWNlbWVudExpbmVJbmRleCwgY2g6IGZpcnN0TGluZU9mQ29kZWJsb2NrTGVuZ3RofSk7XHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBlbmRSZXBsYWNlbWVudExpbmVJbmRleCArPSAxO1xyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgbnVtQ29kZWJsb2Nrc1VwZGF0ZWQgKz0gMTtcclxuICAgICAgICAgICAgICAgICAgICAgICAgfVxyXG5cclxuICAgICAgICAgICAgICAgICAgICAgICAgbGluZU9mZnNldCA9IGVuZFJlcGxhY2VtZW50TGluZUluZGV4XHJcbiAgICAgICAgICAgICAgICAgICAgICAgIGRvY1RleHQgPSBkb2NUZXh0LnNsaWNlKHN0YXJ0Q29kZWJsb2NrLmVuZFBvc2l0aW9uKTtcclxuICAgICAgICAgICAgICAgICAgICAgICAgc3RhcnRDb2RlYmxvY2sgPSBtdWx0aUNvbHVtblBhcnNlci5maW5kU3RhcnRDb2RlYmxvY2soZG9jVGV4dCk7XHJcbiAgICAgICAgICAgICAgICAgICAgfVxyXG5cclxuICAgICAgICAgICAgICAgICAgICAvKipcclxuICAgICAgICAgICAgICAgICAgICAgKiBMb29wIHRocm91Z2ggYWxsIG9mIHRoZSBsaW5lcyBjaGVja2luZyBpZiB0aGUgbGluZSBpcyBhIFxyXG4gICAgICAgICAgICAgICAgICAgICAqIHN0YXJ0IHRhZyBhbmQgaWYgc28gaXMgaXQgbWlzc2luZyBhbiBJRC5cclxuICAgICAgICAgICAgICAgICAgICAgKi9cclxuICAgICAgICAgICAgICAgICAgICBsZXQgbGluZXNXaXRob3V0SURzID0gW11cclxuICAgICAgICAgICAgICAgICAgICBsZXQgdGV4dFdpdGhvdXRJRHMgPSBbXVxyXG4gICAgICAgICAgICAgICAgICAgIGZvcihsZXQgaSA9IDA7IGkgPCBsaW5lcy5sZW5ndGg7IGkrKykge1xyXG5cclxuICAgICAgICAgICAgICAgICAgICAgICAgbGV0IGRhdGEgPSBtdWx0aUNvbHVtblBhcnNlci5pc1N0YXJ0VGFnV2l0aElEKGxpbmVzW2ldKTtcclxuICAgICAgICAgICAgICAgICAgICAgICAgaWYoZGF0YS5pc1N0YXJ0VGFnID09PSB0cnVlICYmIGRhdGEuaGFzS2V5ID09PSBmYWxzZSkge1xyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgbGluZXNXaXRob3V0SURzLnB1c2goaSk7XHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB0ZXh0V2l0aG91dElEcy5wdXNoKGxpbmVzW2ldKVxyXG4gICAgICAgICAgICAgICAgICAgICAgICB9XHJcbiAgICAgICAgICAgICAgICAgICAgfSAgICAgICAgICAgICAgICAgICAgXHJcblxyXG4gICAgICAgICAgICAgICAgICAgIGlmKGxpbmVzV2l0aG91dElEcy5sZW5ndGggPT09IDAgJiYgbnVtQ29kZWJsb2Nrc1VwZGF0ZWQgPT09IDApIHtcclxuICAgICAgICAgICAgICAgICAgICAgICAgbmV3IE5vdGljZSAoXCJGb3VuZCAwIG1pc3NpbmcgSURzIGluIHRoZSBjdXJyZW50IGRvY3VtZW50LlwiKTtcclxuICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuO1xyXG4gICAgICAgICAgICAgICAgICAgIH1cclxuXHJcbiAgICAgICAgICAgICAgICAgICAgLyoqXHJcbiAgICAgICAgICAgICAgICAgICAgICogTm93IGxvb3AgdGhyb3VnaCBlYWNoIGxpbmUgdGhhdCBpcyBtaXNzaW5nIGFuIElEIGFuZFxyXG4gICAgICAgICAgICAgICAgICAgICAqIGdlbmVyYXRlIGEgcmFuZG9tIElEIGFuZCByZXBsYWNlIHRoZSBvcmlnaW5hbCB0ZXh0LlxyXG4gICAgICAgICAgICAgICAgICAgICAqL1xyXG4gICAgICAgICAgICAgICAgICAgIGZvcihsZXQgaSA9IDA7IGkgPCBsaW5lc1dpdGhvdXRJRHMubGVuZ3RoOyBpKyspIHtcclxuXHJcbiAgICAgICAgICAgICAgICAgICAgICAgIGxldCBvcmlnaW5hbFRleHQgPSB0ZXh0V2l0aG91dElEc1tpXVxyXG4gICAgICAgICAgICAgICAgICAgICAgICBsZXQgdGV4dCA9IG9yaWdpbmFsVGV4dDtcclxuICAgICAgICAgICAgICAgICAgICAgICAgdGV4dCA9IHRleHQudHJpbUVuZCgpO1xyXG4gICAgICAgICAgICAgICAgICAgICAgICBpZih0ZXh0LmNoYXJBdCh0ZXh0Lmxlbmd0aCAtIDEpID09PSBcIjpcIikge1xyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgdGV4dCA9IHRleHQuc2xpY2UoMCwgdGV4dC5sZW5ndGgtMSk7XHJcbiAgICAgICAgICAgICAgICAgICAgICAgIH1cclxuICAgICAgICAgICAgICAgICAgICAgICAgdGV4dCA9IGAke3RleHR9OiBJRF8ke2dldFVJRCg0KX1gO1xyXG5cclxuICAgICAgICAgICAgICAgICAgICAgICAgZWRpdG9yLnJlcGxhY2VSYW5nZSh0ZXh0LCB7IGxpbmU6IGxpbmVzV2l0aG91dElEc1tpXSwgY2g6IDAgfSwgXHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgeyBsaW5lOiBsaW5lc1dpdGhvdXRJRHNbaV0sIGNoOiBvcmlnaW5hbFRleHQubGVuZ3RofSk7XHJcbiAgICAgICAgICAgICAgICAgICAgfVxyXG5cclxuICAgICAgICAgICAgICAgICAgICBuZXcgTm90aWNlIChgUmVwbGFjZWQgJHtsaW5lc1dpdGhvdXRJRHMubGVuZ3RoICsgbnVtQ29kZWJsb2Nrc1VwZGF0ZWR9IG1pc3NpbmcgSUQocykgaW4gdGhlIGN1cnJlbnQgZG9jdW1lbnQuYCk7XHJcbiAgICAgICAgICAgICAgICB9IGNhdGNoIChlKSB7XHJcbiAgICAgICAgICAgICAgICAgICAgbmV3IE5vdGljZShcclxuICAgICAgICAgICAgICAgICAgICAgICAgXCJFbmNvdW50ZXJlZCBhbiBlcnJvciBhZGRpZ24gSURzIHRvIG11bHRpLWNvbHVtbiByZWdpb25zLiBQbGVhc2UgdHJ5IGFnYWluIGxhdGVyLlwiXHJcbiAgICAgICAgICAgICAgICAgICAgKTtcclxuICAgICAgICAgICAgICAgIH1cclxuICAgICAgICAgICAgfVxyXG4gICAgICAgIH0pO1xyXG5cclxuICAgICAgICB0aGlzLnJlZ2lzdGVySW50ZXJ2YWwod2luZG93LnNldEludGVydmFsKCgpID0+IHtcclxuICAgICAgICAgICAgXHJcbiAgICAgICAgICAgIHRoaXMuVXBkYXRlT3BlbkZpbGVQcmV2aWV3cygpO1xyXG4gICAgICAgIH0sIDUwMCkpO1xyXG4gICAgfVxyXG5cclxuICAgIFVwZGF0ZU9wZW5GaWxlUHJldmlld3MoKSB7XHJcblxyXG4gICAgICAgIGxldCBmaWxlTWFuYWdlcnMgPSB0aGlzLmdsb2JhbE1hbmFnZXIuZ2V0QWxsRmlsZU1hbmFnZXJzKCk7XHJcbiAgICAgICAgZmlsZU1hbmFnZXJzLmZvckVhY2goZWxlbWVudCA9PiB7XHJcbiAgICAgICAgICAgIFxyXG4gICAgICAgICAgICBsZXQgcmVnaW9uYWxNYW5hZ2VycyA9IGVsZW1lbnQuZ2V0QWxsUmVnaW9uYWxNYW5hZ2VycygpO1xyXG4gICAgICAgICAgICByZWdpb25hbE1hbmFnZXJzLmZvckVhY2gocmVnaW9uTWFuYWdlciA9PiB7XHJcbiAgICAgICAgICAgICAgICBcclxuICAgICAgICAgICAgICAgIHJlZ2lvbk1hbmFnZXIudXBkYXRlUmVuZGVyZWRNYXJrZG93bigpXHJcbiAgICAgICAgICAgIH0pO1xyXG4gICAgICAgIH0pO1xyXG4gICAgfVxyXG5cclxuICAgIHNldHVwTWFya2Rvd25Qb3N0UHJvY2Vzc29yKCkge1xyXG4gICAgICAgIHRoaXMucmVnaXN0ZXJNYXJrZG93blBvc3RQcm9jZXNzb3IoYXN5bmMgKGVsLCBjdHgpID0+IHtcclxuXHJcbiAgICAgICAgICAgIGlmKHRoaXMuc2V0dGluZ3MucmVuZGVyT25Nb2JpbGUgPT09IGZhbHNlICYmXHJcbiAgICAgICAgICAgICAgIFBsYXRmb3JtLmlzTW9iaWxlID09PSB0cnVlKSB7XHJcbiAgICAgICAgICAgICAgICByZXR1cm47XHJcbiAgICAgICAgICAgIH1cclxuXHJcbiAgICAgICAgICAgIGNvbnN0IHNvdXJjZVBhdGggPSBjdHguc291cmNlUGF0aDtcclxuXHJcbiAgICAgICAgICAgIGxldCBmaWxlRE9NTWFuYWdlciA9IHRoaXMuZ2xvYmFsTWFuYWdlci5nZXRGaWxlTWFuYWdlcihzb3VyY2VQYXRoKTtcclxuICAgICAgICAgICAgaWYoZmlsZURPTU1hbmFnZXIgPT09IG51bGwpIHtcclxuICAgICAgICAgICAgICAgIGNvbnNvbGUubG9nKFwiRm91bmQgbnVsbCBET00gbWFuYWdlci4gQ291bGQgbm90IHByb2Nlc3MgbXVsdGktY29sdW1uIG1hcmtkb3duLlwiKVxyXG4gICAgICAgICAgICAgICAgcmV0dXJuO1xyXG4gICAgICAgICAgICB9XHJcblxyXG4gICAgICAgICAgICAvKipcclxuICAgICAgICAgICAgICogSGVyZSB3ZSBjaGVjayBpZiB0aGUgZXhwb3J0IFwicHJpbnRcIiBmbGFnIGlzIGluIHRoZSBET00gc28gd2UgY2FuIGRldGVybWluZSBpZiB3ZVxyXG4gICAgICAgICAgICAgKiBhcmUgZXhwb3J0aW5nIGFuZCBoYW5kbGUgdGhhdCBjYXNlLlxyXG4gICAgICAgICAgICAgKi9cclxuICAgICAgICAgICAgaWYodGhpcy5jaGVja0V4cG9ydGluZyhlbCkpIHtcclxuXHJcbiAgICAgICAgICAgICAgICB0aGlzLmV4cG9ydERvY3VtZW50VG9QREYoZWwsIGZpbGVET01NYW5hZ2VyLCBzb3VyY2VQYXRoKTtcclxuICAgICAgICAgICAgfVxyXG5cclxuICAgICAgICAgICAgLy8gR2V0IHRoZSBpbmZvIGZvciBvdXIgY3VycmVudCBjb250ZXh0IGFuZCB0aGVuIGNoZWNrXHJcbiAgICAgICAgICAgIC8vIGlmIHRoZSBlbnRpcmUgdGV4dCBjb250YWlucyBhIHN0YXJ0IHRhZy4gSWYgdGhlcmUgaXNcclxuICAgICAgICAgICAgLy8gbm8gc3RhcnQgdGFnIGluIHRoZSBkb2N1bWVudCB3ZSBjYW4ganVzdCByZXR1cm4gYW5kXHJcbiAgICAgICAgICAgIC8vIGlnbm9yZSB0aGUgcmVzdCBvZiB0aGUgcGFyc2luZy5cclxuICAgICAgICAgICAgbGV0IGluZm8gPSBjdHguZ2V0U2VjdGlvbkluZm8oZWwpO1xyXG5cclxuICAgICAgICAgICAgLyoqXHJcbiAgICAgICAgICAgICAqIFdlIG5lZWQgdGhlIGNvbnRleHQgaW5mbyB0byBwcm9wZXJseSBwYXJzZSBzbyByZXR1cm5pbmcgaGVyZSBcclxuICAgICAgICAgICAgICogaW5mbyBpcyBudWxsLiBUT0RPOiBTZXQgZXJyb3IgaW4gdmlldyBpZiB0aGlzIG9jY3Vycy5cclxuICAgICAgICAgICAgICovXHJcbiAgICAgICAgICAgIGlmKCFpbmZvKSB7XHJcblxyXG4gICAgICAgICAgICAgICAgcmV0dXJuO1xyXG4gICAgICAgICAgICB9XHJcblxyXG4gICAgICAgICAgICBsZXQgZG9jU3RyaW5nID0gaW5mby50ZXh0O1xyXG4gICAgICAgICAgICBsZXQgZG9jTGluZXMgPSBkb2NTdHJpbmcuc3BsaXQoXCJcXG5cIik7XHJcblxyXG4gICAgICAgICAgICAvKipcclxuICAgICAgICAgICAgICogSWYgd2UgZW5jb3VudGVyIGEgc3RhcnQgdGFnIG9uIHRoZSBkb2N1bWVudCB3ZSBzZXQgdGhlIGZsYWcgdG8gc3RhcnRcclxuICAgICAgICAgICAgICogcGFyc2luZyB0aGUgcmVzdCBvZiB0aGUgZG9jdW1lbnQuXHJcbiAgICAgICAgICAgICAqL1xyXG4gICAgICAgICAgICBpZihtdWx0aUNvbHVtblBhcnNlci5jb250YWluc1N0YXJ0VGFnKGVsLnRleHRDb250ZW50KSB8fCBcclxuICAgICAgICAgICAgICAgbXVsdGlDb2x1bW5QYXJzZXIuY29udGFpbnNTdGFydENvZGVCbG9jayhkb2NTdHJpbmcpKSB7XHJcblxyXG4gICAgICAgICAgICAgICAgZmlsZURPTU1hbmFnZXIuc2V0SGFzU3RhcnRUYWcoKTtcclxuICAgICAgICAgICAgfVxyXG5cclxuICAgICAgICAgICAgLyoqIFxyXG4gICAgICAgICAgICAgKiBJZiB0aGUgZG9jdW1lbnQgZG9lcyBub3QgY29udGFpbiBhbnkgc3RhcnQgdGFncyB3ZSBpZ25vcmUgdGhlXHJcbiAgICAgICAgICAgICAqIHJlc3Qgb2YgdGhlIHBhcnNpbmcuIFRoaXMgaXMgb25seSBzZXQgdG8gdHJ1ZSBvbmNlIHRoZSBmaXJzdFxyXG4gICAgICAgICAgICAgKiBzdGFydCB0YWcgZWxlbWVudCBpcyBwYXJzZWQgYWJvdmUuXHJcbiAgICAgICAgICAgICAqL1xyXG4gICAgICAgICAgICBpZihmaWxlRE9NTWFuYWdlci5nZXRIYXNTdGFydFRhZygpID09PSBmYWxzZSkge1xyXG4gICAgICAgICAgICAgICAgcmV0dXJuO1xyXG4gICAgICAgICAgICB9XHJcblxyXG4gICAgICAgICAgICAvKipcclxuICAgICAgICAgICAgICogVGFrZSB0aGUgaW5mbyBwcm92aWRlZCBhbmQgZ2VuZXJhdGUgdGhlIHJlcXVpcmVkIHZhcmlhYmxlcyBmcm9tIFxyXG4gICAgICAgICAgICAgKiB0aGUgbGluZSBzdGFydCBhbmQgZW5kIHZhbHVlcy5cclxuICAgICAgICAgICAgICovXHJcbiAgICAgICAgICAgIGxldCBsaW5lc0Fib3ZlQXJyYXkgPSBkb2NMaW5lcy5zbGljZSgwLCBpbmZvLmxpbmVTdGFydClcclxuICAgICAgICAgICAgbGV0IGxpbmVzT2ZFbGVtZW50ID0gZG9jTGluZXMuc2xpY2UoaW5mby5saW5lU3RhcnQsIGluZm8ubGluZUVuZCArIDEpO1xyXG4gICAgICAgICAgICBsZXQgdGV4dE9mRWxlbWVudCA9IGxpbmVzT2ZFbGVtZW50LmpvaW4oXCJcXG5cIilcclxuICAgICAgICAgICAgbGV0IGxpbmVzQmVsb3dBcnJheSA9IGRvY0xpbmVzLnNsaWNlKGluZm8ubGluZUVuZCArIDEpXHJcblxyXG4gICAgICAgICAgICAvLyNyZWdpb24gRGVwcmVjaWF0ZWQgU3RhcnQgVGFnXHJcbiAgICAgICAgICAgIC8qKlxyXG4gICAgICAgICAgICAgKiBJZiB0aGUgY3VycmVudCBsaW5lIGlzIGEgc3RhcnQgdGFnIHdlIHdhbnQgdG8gc2V0IHVwIHRoZVxyXG4gICAgICAgICAgICAgKiByZWdpb24gbWFuYWdlci4gVGhlIHJlZ2lvbmFsIG1hbmFnZXIgdGFrZXMgY2FyZVxyXG4gICAgICAgICAgICAgKiBvZiBhbGwgaXRlbXMgYmV0d2VlbiBpdCdzIHN0YXJ0IGFuZCBlbmQgdGFncyB3aGlsZSB0aGVcclxuICAgICAgICAgICAgICogZmlsZSBtYW5hZ2VyIHdlIGdvdCBhYm92ZSBhYm92ZSB0YWtlcyBjYXJlIG9mIGFsbCByZWdpb25hbCBcclxuICAgICAgICAgICAgICogbWFuYWdlcnMgaW4gZWFjaCBmaWxlLlxyXG4gICAgICAgICAgICAgKi9cclxuICAgICAgICAgICAgaWYobXVsdGlDb2x1bW5QYXJzZXIuY29udGFpbnNTdGFydFRhZyh0ZXh0T2ZFbGVtZW50KSkge1xyXG5cclxuICAgICAgICAgICAgICAgIC8qKiBcclxuICAgICAgICAgICAgICAgICAqIFNldCB1cCB0aGUgY3VycmVudCBlbGVtZW50IHRvIGFjdCBhcyB0aGUgcGFyZW50IGZvciB0aGUgXHJcbiAgICAgICAgICAgICAgICAgKiBtdWx0aS1jb2x1bW4gcmVnaW9uLlxyXG4gICAgICAgICAgICAgICAgICovXHJcbiAgICAgICAgICAgICAgICBlbC5jaGlsZHJlblswXS5kZXRhY2goKTtcclxuICAgICAgICAgICAgICAgIGVsLmNsYXNzTGlzdC5hZGQoTXVsdGlDb2x1bW5MYXlvdXRDU1MuUmVnaW9uUm9vdENvbnRhaW5lckRpdilcclxuICAgICAgICAgICAgICAgIGxldCByZW5kZXJFcnJvclJlZ2lvbiA9IGVsLmNyZWF0ZURpdih7XHJcbiAgICAgICAgICAgICAgICAgICAgY2xzOiBgJHtNdWx0aUNvbHVtbkxheW91dENTUy5SZWdpb25FcnJvckNvbnRhaW5lckRpdn0gJHtNdWx0aUNvbHVtblN0eWxlQ1NTLlJlZ2lvbkVycm9yTWVzc2FnZX1gLFxyXG4gICAgICAgICAgICAgICAgfSk7XHJcbiAgICAgICAgICAgICAgICBsZXQgcmVuZGVyQ29sdW1uUmVnaW9uID0gZWwuY3JlYXRlRGl2KHtcclxuICAgICAgICAgICAgICAgICAgICBjbHM6IE11bHRpQ29sdW1uTGF5b3V0Q1NTLlJlZ2lvbkNvbnRlbnRDb250YWluZXJEaXZcclxuICAgICAgICAgICAgICAgIH0pXHJcblxyXG4gICAgICAgICAgICAgICAgbGV0IHN0YXJ0QmxvY2tEYXRhID0gbXVsdGlDb2x1bW5QYXJzZXIuZ2V0U3RhcnRCbG9ja0Fib3ZlTGluZShsaW5lc09mRWxlbWVudClcclxuICAgICAgICAgICAgICAgIGlmKHN0YXJ0QmxvY2tEYXRhID09PSBudWxsKSB7XHJcbiAgICAgICAgICAgICAgICAgICAgcmV0dXJuO1xyXG4gICAgICAgICAgICAgICAgfVxyXG4gICAgICAgICAgICAgICAgXHJcbiAgICAgICAgICAgICAgICBsZXQgcmVnaW9uS2V5ID0gc3RhcnRCbG9ja0RhdGEuc3RhcnRCbG9ja0tleTtcclxuICAgICAgICAgICAgICAgIGlmKGZpbGVET01NYW5hZ2VyLmNoZWNrS2V5RXhpc3RzKHJlZ2lvbktleSkgPT09IHRydWUpIHtcclxuXHJcbiAgICAgICAgICAgICAgICAgICAgbGV0IHsgbnVtYmVyT2ZUYWdzLCBrZXlzIH0gPSBtdWx0aUNvbHVtblBhcnNlci5jb3VudFN0YXJ0VGFncyhpbmZvLnRleHQpO1xyXG5cclxuICAgICAgICAgICAgICAgICAgICBsZXQgbnVtTWF0Y2hlcyA9IDA7XHJcbiAgICAgICAgICAgICAgICAgICAgZm9yKGxldCBpID0gMDsgaSA8IG51bWJlck9mVGFnczsgaSsrKSB7XHJcblxyXG4gICAgICAgICAgICAgICAgICAgICAgICAvLyBCZWNhdXNlIHdlIGNoZWNrZWQgaWYga2V5IGV4aXN0cyBvbmUgb2YgdGhlc2UgaGFzIHRvIG1hdGNoLlxyXG4gICAgICAgICAgICAgICAgICAgICAgICBpZihrZXlzW2ldID09PSByZWdpb25LZXkpIHtcclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIG51bU1hdGNoZXMrKztcclxuICAgICAgICAgICAgICAgICAgICAgICAgfVxyXG4gICAgICAgICAgICAgICAgICAgIH1cclxuXHJcbiAgICAgICAgICAgICAgICAgICAgLy8gV2Ugb25seSB3YW50IHRvIGRpc3BsYXkgYW4gZXJyb3IgaWYgdGhlcmUgYXJlIG1vcmUgdGhhbiAyIG9mIHRoZSBzYW1lIGlkIGFjcm9zc1xyXG4gICAgICAgICAgICAgICAgICAgIC8vIHRoZSB3aG9sZSBkb2N1bWVudC4gVGhpcyBwcmV2ZW50cyBlcnJvcyB3aGVuIG9ic2lkaWFuIHJlbG9hZHMgdGhlIHdob2xlIGRvY3VtZW50XHJcbiAgICAgICAgICAgICAgICAgICAgLy8gYW5kIHRoZXJlIGFyZSB0d28gb2YgdGhlIHNhbWUga2V5IGluIHRoZSBtYXAuXHJcbiAgICAgICAgICAgICAgICAgICAgaWYobnVtTWF0Y2hlcyA+PSAyKSB7XHJcbiAgICAgICAgICAgICAgICAgICAgICAgIGlmKHJlZ2lvbktleSA9PT0gXCJcIikge1xyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgcmVuZGVyRXJyb3JSZWdpb24uaW5uZXJUZXh0ID0gXCJGb3VuZCBtdWx0aXBsZSByZWdpb25zIHdpdGggZW1wdHkgSURzLiBQbGVhc2Ugc2V0IGEgdW5pcXVlIElEIGFmdGVyIGVhY2ggc3RhcnQgdGFnLlxcbkVHOiAnPT09IG11bHRpLWNvbHVtbi1zdGFydDogcmFuZG9tSUQnXFxuT3IgdXNlICdGaXggTWlzc2luZyBJRHMnIGluIHRoZSBjb21tYW5kIHBhbGV0dGUgYW5kIHJlbG9hZCB0aGUgZG9jdW1lbnQuXCJcclxuICAgICAgICAgICAgICAgICAgICAgICAgfVxyXG4gICAgICAgICAgICAgICAgICAgICAgICBlbHNlIHtcclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHJlbmRlckVycm9yUmVnaW9uLmlubmVyVGV4dCA9IFwiUmVnaW9uIElEIGFscmVhZHkgZXhpc3RzIGluIGRvY3VtZW50LCBwbGVhc2Ugc2V0IGEgdW5pcXVlIElELlxcbkVHOiAnPT09IG11bHRpLWNvbHVtbi1zdGFydDogcmFuZG9tSUQnXCJcclxuICAgICAgICAgICAgICAgICAgICAgICAgfVxyXG4gICAgICAgICAgICAgICAgICAgICAgICByZXR1cm47XHJcbiAgICAgICAgICAgICAgICAgICAgfVxyXG4gICAgICAgICAgICAgICAgfVxyXG4gICAgICAgICAgICAgICAgZWwuaWQgPSBgTXVsdGlDb2x1bW5JRDoke3JlZ2lvbktleX1gXHJcblxyXG4gICAgICAgICAgICAgICAgbGV0IGVsZW1lbnRNYXJrZG93blJlbmRlcmVyID0gbmV3IE1hcmtkb3duUmVuZGVyQ2hpbGQoZWwpO1xyXG4gICAgICAgICAgICAgICAgZmlsZURPTU1hbmFnZXIuY3JlYXRlUmVnaW9uYWxNYW5hZ2VyKHJlZ2lvbktleSwgZWwsIHJlbmRlckVycm9yUmVnaW9uLCByZW5kZXJDb2x1bW5SZWdpb24pO1xyXG4gICAgICAgICAgICAgICAgZWxlbWVudE1hcmtkb3duUmVuZGVyZXIub251bmxvYWQgPSAoKSA9PiB7XHJcbiAgICAgICAgICAgICAgICAgICAgaWYoZmlsZURPTU1hbmFnZXIpIHtcclxuICAgIFxyXG4gICAgICAgICAgICAgICAgICAgICAgICBmaWxlRE9NTWFuYWdlci5yZW1vdmVSZWdpb24oc3RhcnRCbG9ja0RhdGEuc3RhcnRCbG9ja0tleSk7XHJcbiAgICAgICAgICAgICAgICAgICAgfVxyXG4gICAgICAgICAgICAgICAgfTtcclxuICAgICAgICAgICAgICAgIGN0eC5hZGRDaGlsZChlbGVtZW50TWFya2Rvd25SZW5kZXJlcik7XHJcblxyXG4gICAgICAgICAgICAgICAgLyoqXHJcbiAgICAgICAgICAgICAgICAgKiBOb3cgd2UgaGF2ZSBjcmVhdGVkIG91ciByZWdpb25hbCBtYW5hZ2VyIGFuZCBkZWZpbmVkIHdoYXQgZWxlbWVudHMgXHJcbiAgICAgICAgICAgICAgICAgKiBuZWVkIHRvIGJlIHJlbmRlcmVkIGludG8uIFNvIHdlIGNhbiByZXR1cm4gd2l0aG91dCBhbnkgbW9yZSBwcm9jZXNzaW5nLlxyXG4gICAgICAgICAgICAgICAgICovXHJcbiAgICAgICAgICAgICAgICByZXR1cm5cclxuICAgICAgICAgICAgfVxyXG4gICAgICAgICAgICAvLyNlbmRyZWdpb24gRGVwcmVjaWF0ZWQgU3RhcnQgVGFnXHJcblxyXG4gICAgICAgICAgICAvKipcclxuICAgICAgICAgICAgICogQ2hlY2sgaWYgYW55IG9mIHRoZSBsaW5lcyBhYm92ZSB1cyBjb250YWluIGEgc3RhcnQgYmxvY2ssIGFuZCBpZlxyXG4gICAgICAgICAgICAgKiBzbyBnZXQgdGhlIGxpbmVzIGZyb20gb3VyIGN1cnJlbnQgZWxlbWVudCB0byB0aGUgc3RhcnQgYmxvY2suXHJcbiAgICAgICAgICAgICAqL1xyXG4gICAgICAgICAgICBsZXQgc3RhcnRCb2NrQWJvdmUgPSBtdWx0aUNvbHVtblBhcnNlci5nZXRTdGFydEJsb2NrT3JDb2RlYmxvY2tBYm92ZUxpbmUobGluZXNBYm92ZUFycmF5KTtcclxuICAgICAgICAgICAgaWYoc3RhcnRCb2NrQWJvdmUgPT09IG51bGwpIHtcclxuICAgICAgICAgICAgICAgIHJldHVybjtcclxuICAgICAgICAgICAgfVxyXG4gICAgICAgICAgICAvKipcclxuICAgICAgICAgICAgICogV2Ugbm93IGtub3cgd2UncmUgd2l0aGluIGEgbXVsdGktY29sdW1uIHJlZ2lvbiwgc28gd2UgdXBkYXRlIG91clxyXG4gICAgICAgICAgICAgKiBsaXN0IG9mIGxpbmVzIGFib3ZlIHRvIGp1c3QgYmUgdGhlIGl0ZW1zIHdpdGhpbiB0aGlzIHJlZ2lvbi5cclxuICAgICAgICAgICAgICovXHJcbiAgICAgICAgICAgIGxpbmVzQWJvdmVBcnJheSA9IHN0YXJ0Qm9ja0Fib3ZlLmxpbmVzQWJvdmVBcnJheTtcclxuXHJcbiAgICAgICAgICAgIC8qKlxyXG4gICAgICAgICAgICAgKiBXZSB1c2UgdGhlIHN0YXJ0IGJsb2NrJ3Mga2V5IHRvIGdldCBvdXIgcmVn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mUgb3VyIGN1cnJlbnQgZWxlbWVudCB1cCB1bnRpbCB0aGVcclxuICAgICAgICAgICAgICogc3RhcnQgcmVnaW9uIHRhZyBhbmQgcmVuZGVyIHRoYXQgaW50byBhbiBIVE1MIGVsZW1lbnQuIFdlIHdpbGwgXHJcbiAgICAgICAgICAgICAqIHVzZSB0aGVzZSBlbGVtZW50cyB0byBkZXRlcm1pbmUgd2hlcmUgdG8gcGxhY2Ugb3VyIGN1cnJlbnQgZWxlbWVudC5cclxuICAgICAgICAgICAgICovXHJcbiAgICAgICAgICAgIGxldCBzaWJsaW5nc0Fib3ZlOiBIVE1MRGl2RWxlbWVudCA9IHJlbmRlck1hcmtkb3duRnJvbUxpbmVzKGxpbmVzQWJvdmVBcnJheSwgc291cmNlUGF0aCk7XHJcblxyXG4gICAgICAgICAgICBsZXQgc2libGluZ3NCZWxvdzogSFRNTERpdkVsZW1lbnQgPSByZW5kZXJNYXJrZG93bkZyb21MaW5lcyhsaW5lc0JlbG93QXJyYXksIHNvdXJjZVBhdGgpO1xyXG5cclxuICAgICAgICAgICAgLyoqXHJcbiAgICAgICAgICAgICAqIFNldCB1cCBvdXIgZG9tIG9iamVjdCB0byBiZSBhZGRlZCB0byB0aGUgbWFuYWdlci5cclxuICAgICAgICAgICAgICovXHJcbiAgICAgICAgICAgIGxldCBjdXJyZW50T2JqZWN0OiBET01PYmplY3QgPSBuZXcgRE9NT2JqZWN0KGVsLCBsaW5lc09mRWxlbWVudClcclxuICAgICAgICAgICAgZWwuaWQgPSBjdXJyZW50T2JqZWN0LlVJRDtcclxuXHJcbiAgICAgICAgICAgIGN1cnJlbnRPYmplY3QgPSBUYXNrTGlzdERPTU9iamVjdC5jaGVja0ZvclRhc2tMaXN0RWxlbWVudChjdXJyZW50T2JqZWN0KVxyXG5cclxuICAgICAgICAgICAgLyoqXHJcbiAgICAgICAgICAgICAqIE5vdyB3ZSBhZGQgdGhlIG9iamVjdCB0byB0aGUgbWFuYWdlciBhbmQgdGhlbiBzZXR1cCB0aGVcclxuICAgICAgICAgICAgICogY2FsbGJhY2sgZm9yIHdoZW4gdGhlIG9iamVjdCBpcyByZW1vdmVkIGZyb20gdmlldyB0aGF0IHdpbGwgcmVtb3ZlIFxyXG4gICAgICAgICAgICAgKiB0aGUgaXRlbSBmcm9tIHRoZSBtYW5hZ2VyLlxyXG4gICAgICAgICAgICAgKi9cclxuICAgICAgICAgICAgcmVnaW9uYWxNYW5hZ2VyLmFkZE9iamVjdChzaWJsaW5nc0Fib3ZlLCBzaWJsaW5nc0JlbG93LCBjdXJyZW50T2JqZWN0KTtcclxuXHJcbiAgICAgICAgICAgIGxldCBlbGVtZW50TWFya2Rvd25SZW5kZXJlciA9IG5ldyBNYXJrZG93blJlbmRlckNoaWxkKGVsKTtcclxuICAgICAgICAgICAgZWxlbWVudE1hcmtkb3duUmVuZGVyZXIub251bmxvYWQgPSAoKSA9PiB7XHJcblxyXG4gICAgICAgICAgICAgICAgaWYocmVnaW9uYWxDb250YWluZXIgPT09IG51bGwpIHtcclxuICAgICAgICAgICAgICAgICAgICByZXR1cm5cclxuICAgICAgICAgICAgICAgIH1cclxuICAgICAgICAgICAgICAgIFxyXG4gICAgICAgICAgICAgICAgbGV0IHJlZ2lvbmFsTWFuYWdlcjogUmVnaW9uTWFuYWdlciA9IHJlZ2lvbmFsQ29udGFpbmVyLmdldFJlZ2lvbigpO1xyXG4gICAgICAgICAgICAgICAgaWYocmVnaW9uYWxNYW5hZ2VyKSB7XHJcbiAgICAgICAgICAgICAgICAgICAgXHJcbiAgICAgICAgICAgICAgICAgICAgLy8gV2UgY2FuIGF0dGVtcHQgdG8gdXBkYXRlIHRoZSB2aWV3IGhlcmUgYWZ0ZXIgdGhlIGl0ZW0gaXMgcmVtb3ZlZFxyXG4gICAgICAgICAgICAgICAgICAgIC8vIGJ1dCBuZWVkIHRvIGdldCB0aGUgaXRlbSdzIHBhcmVudCBlbGVtZW50IGJlZm9yZSByZW1vdmluZyBvYmplY3QgZnJvbSBtYW5hZ2VyLlxyXG4gICAgICAgICAgICAgICAgICAgIGxldCByZWdpb25SZW5kZXJEYXRhOiBNdWx0aUNvbHVtblJlbmRlckRhdGEgPSByZWdpb25hbE1hbmFnZXIuZ2V0UmVnaW9uUmVuZGVyRGF0YSgpO1xyXG5cclxuICAgICAgICAgICAgICAgICAgICByZWdpb25hbE1hbmFnZXIucmVtb3ZlT2JqZWN0KGN1cnJlbnRPYmplY3QuVUlEKTtcclxuXHJcbiAgICAgICAgICAgICAgICAgICAgLyoqXHJcbiAgICAgICAgICAgICAgICAgICAgICogTmVlZCB0byBjaGVjayBoZXJlIGlmIGVsZW1lbnQgaXMgbnVsbCBhcyB0aGlzIGNsb3N1cmUgd2lsbCBiZSBjYWxsZWRcclxuICAgICAgICAgICAgICAgICAgICAgKiByZXBlYXRlZGx5IG9uIGZpbGUgY2hhbmdlLlxyXG4gICAgICAgICAgICAgICAgICAgICAqL1xyXG4gICAgICAgICAgICAgICAgICAgIGlmKHJlZ2lvblJlbmRlckRhdGEucGFyZW50UmVuZGVyRWxlbWVudCA9PT0gbnVsbCkge1xyXG4gICAgICAgICAgICAgICAgICAgICAgICByZXR1cm47XHJcbiAgICAgICAgICAgICAgICAgICAgfVxyXG4gICAgICAgICAgICAgICAgICAgIHJlZ2lvbmFsTWFuYWdlci5yZW5kZXJSZWdpb25FbGVtZW50c1RvU2NyZWVuKClcclxuICAgICAgICAgICAgICAgIH1cclxuICAgICAgICAgICAgfTtcclxuICAgICAgICAgICAgY3R4LmFkZENoaWxkKGVsZW1lbnRNYXJrZG93blJlbmRlcmVyKTtcclxuXHJcbiAgICAgICAgICAgIGxldCBlbGVtZW50VGV4dFNwYWNlZCA9IGxpbmVzT2ZFbGVtZW50LnJlZHVjZSgocHJldiwgY3VycikgPT4ge1xyXG4gICAgICAgICAgICAgICAgcmV0dXJuIHByZXYgKyBcIlxcblwiICsgY3VycjtcclxuICAgICAgICAgICAgfSk7XHJcbiAgICAgICAgICAgIC8qKlxyXG4gIC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cclxuICAgICAgICAgICAgfVxyXG4gICAgICAgICAgICBlbHNlIGlmKG11bHRpQ29sdW1uUGFyc2VyLmNvbnRhaW5zQ29sU2V0dGluZ3NUYWcoZWxlbWVudFRleHRTcGFjZWQpID09PSB0cnVlKSB7XHJcblxyXG4gICAgICAgICAgICAgICAgY3VycmVudE9iamVjdC5lbGVtZW50VHlwZSA9IEVsZW1lbnRSZW5kZXJUeXBlLnVuUmVuZGVyZWRcclxuICAgICAgICAgICAgICAgIGVsLmFkZENsYXNzKE11bHRpQ29sdW1uU3R5bGVDU1MuUmVnaW9uU2V0dGluZ3MpXHJcbiAgICAgICAgICAgICAgICByZWdpb25hbE1hbmFnZXIgPSByZWdpb25hbENvbnRhaW5lci5zZXRSZWdpb25TZXR0aW5ncyhlbGVtZW50VGV4dFNwYWNlZClcclxuICAgICAgICAgICAgICAgIHJlZ2lvbmFsTWFuYWdlci51cGRhdGVFbGVtZW50VGFnKGN1cnJlbnRPYmplY3QuVUlELCBET01PYmplY3RUYWcucmVnaW9uU2V0dGluZ3MpO1xyXG4gICAgICAgICAgICB9XHJcbiAgICAgICAgICAgIGVsc2Uge1xyXG4gICAgICAgICAgICAgICAgZWwuYWRkQ2xhc3MoTXVsdGlDb2x1bW5TdHlsZUNTUy5SZWdpb25Db250ZW50KVxyXG4gICAgICAgICAgICB9XHJcbiAgICAgICAgICAgIFxyXG4gICAgICAgICAgICByZWdpb25hbE1hbmFnZXIucmVuZGVyUmVnaW9uRWxlbWVudHNUb1NjcmVlbigpXHJcbiAgICAgICAgICAgIHJldHVybjtcclxuICAgICAgICB9KTtcclxuICAgIH1cclxuXHJcbiAgICBwcml2YXRlIGlzU3RhcnRDb2RlYmxvY2tJbkV4cG9ydChub2RlOiBIVE1MRWxlbWVudCk6IGJvb2xlYW4ge1xyXG5cclxuICAgICAgICBmb3IobGV0IGkgPSAwOyBpIDwgQ09ERUJMT0NLX1NUQVJUX1NUUlMubGVuZ3RoOyBpKyspIHtcclxuXHJcbiAgIC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LmVuZFBvc2l0aW9uKTtcclxuICAgICAgICAgICAgICAgIGNvZGVibG9ja1N0YXJ0QmxvY2tzLnB1c2goY29kZWJsb2NrVGV4dCk7XHJcblxyXG4gICAgICAgICAgICAgICAgY29kZUJsb2NrRGF0YSA9IG11bHRpQ29sdW1uUGFyc2VyLmZpbmRTdGFydENvZGVibG9jayhmaWxlVGV4dCk7XHJcbiAgICAgICAgICAgIH1cclxuICAgICAgICB9XHJcbiAgICAgICAgZWxzZSB7XHJcbiAgICAgICAgICAgIGNvbnNvbGUuZXJyb3IoYEVycm9yIGdldHRpbmcgZmlsZSBmcm9tIHNvdXJjZSBwYXRoOiAke3NvdXJjZVBhdGh9YClcclxuICAgICAgICB9XHJcblxyXG4gICAgICAgIGxldCBpbkJsb2NrID0gZmFsc2U7XHJcbiAgICAgICAgZm9yIChsZXQgaSA9IDA7IGkgPCBkb2NDaGlsZHJlbi5sZW5ndGg7IGkrKykge1xyXG5cclxuICAgICAgICAgICAgbGV0IGNoaWxkID0gZG9jQ2hpbGRyZW5baV07XHJcbiAgICAgICAgICAgIGlmIChjaGlsZCBpbnN0YW5jZW9mIEhUTUxFbGVtZW50KSB7XHJcbiAgICAgICAgICAgICAgICBsZXQgY2hpbGRFbCA9IGNoaWxkIGFzIEhUTUxFbGVtZW50O1xyXG4gICAgICAgICAgICAgICAgaWYgKGluQmxvY2sgPT09IGZhbHNlKSB7XHJcbiAgICAgICAgICAgICAgICAgICAgXHJcbiAgICAgICAgICAgICAgICAgICAgbGV0IGZvdW5kQmxvY2tEYXRhID0gZmFsc2U7XHJcbiAgICAgICAgICAgICAgICAgICAgbGV0IHJlZ2lvbktleSA9IFwiXCI7XHJcblxyXG4gICAgICAgICAgICAgICAgICAgIGxldCBibG9ja0RhdGEgPSBtdWx0aUNvbHVtblBhcnNlci5pc1N0YXJ0VGFnV2l0aElEKGNoaWxkLnRleHRDb250ZW50KTtcclxuICAgICAgICAgICAgICAgICAgICBpZiAoYmxvY2tEYXRhLmlzU3RhcnRUYWcgPT09IHRydWUpIHtcclxuXHJcbiAgICAgICAgICAgICAgICAgICAgICAgIC8vIElmIGFuIG9sZC1zdHlsZSBzdGFydCB0YWcuXHJcbiAgICAgICAgICAgICAgICAgICAgICAgIGZvdW5kQmxvY2tEYXRhID0gdHJ1ZTtcclxuICAgICAgICAgICAgICAgICAgICAgICAgaWYgKGJsb2NrRGF0YS5oYXNLZXkgPT09IHRydWUpIHtcclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGxldCBmb3VuZEtleSA9IG11bHRpQ29sdW1uUGFyc2VyLmdldFN0YXJ0VGFnS2V5KGNoaWxkLnRleHRDb250ZW50KTtcclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGlmIChmb3VuZEtleSAhPT0gbnVsbCkge1xyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHJlZ2lvbktleSA9IGZvdW5kS2V5O1xyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgfVxyXG4gICAgICAgICAgICAgICAgICAgICAgICB9XHJcbiAgICAgICAgICAgICAgICAgICAgfVxyXG4gICAgICAgICAgICAgICAgICAgIGVsc2UgaWYoYmxvY2tEYXRhLmlzU3RhcnRUYWcgPT09IGZhbHNlICYmIHRoaXMuaXNTdGFydENvZGVibG9ja0luRXhwb3J0KGNoaWxkKSkge1xyXG5cclxuICAgICAgICAgICAgICAgICAgICAgICAgLy8gSWYgdGhlIHN0YXJ0IHRhZyBmcm9tIHRoZSBvbGQgdmVyc2lvbiBpcyBudWxsIHdlIHRoZW4gY2hlY2sgdG8gc2VlIGlmIHRoZSBlbGVtZW50IGlzXHJcbiAgICAgICAgICAgICAgICAgICAgICAgIC8vIGEgY29kZWJsb2NrIHN0YXJ0LiBJZiBpdCBpcyB3ZSB1c2UgdGhlIG5leHQgYXZhaWxhYmxlIGNvZGVibG9jayBkYXRhIHRvIHJldHJpZXZlIG91ciBJRC5cclxuICAgICAgICAgICAgICAgICAgICAgICAgbGV0IGNvZGVibG9ja1RleHQgPSBjb2RlYmxvY2tTdGFydEJsb2Nrcy5zaGlmdCgpO1xyXG4gICAgICAgICAgICAgICAgICAgICAgICBpZihjb2RlYmxvY2tUZXh0ID09PSB1bmRlZmluZWQpIHtcclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGNvbnNvbGUuZXJyb3IoXCJGb3VuZCB1bmRlZmluZWQgY29kZWJsb2NrIGRhdGEgd2hlbiBleHBvcnRpbmcuXCIpXHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICByZXR1cm47XHJcbiAgICAgICAgICAgICAgICAgICAgICAgIH1cclxuXHJcbiAgICAgICAgICAgICAgICAgICAgICAgIGxldCBpZCA9IHBhcnNlU3RhcnRSZWdpb25Db2RlQmxvY2tJRChjb2RlYmxvY2tUZXh0KTtcclxuICAgICAgICAgICAgICAgICAgICAgICAgaWYoaWQgIT09IFwiXCIpIHtcclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGZvdW5kQmxvY2tEYXRhID0gdHJ1ZTtcclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHJlZ2lvbktleSA9IGlkO1xyXG4gICAgICAgICAgICAgICAgICAgICAgICB9XHJcbiAgICAgICAgICAgICAgICAgICAgfVxyXG5cclxuICAgICAgICAgICAgICAgICAgICBpZihmb3VuZEJsb2NrRGF0YSA9PT0gdHJ1ZSAmJiByZWdpb25LZXkgIT09IFwiXCIpIHtcclxuXHJcbiAgICAgICAgICAgICAgICAgICAgICAgIGluQmxvY2sgPSB0cnVlO1xyXG5cclxuICAgICAgICAgICAgICAgICAgICAgICAgZm9yIChsZXQgaSA9IGNoaWxkLmNoaWxkcmVuLmxlbmd0aCAtIDE7IGkgPj0gMDsgaS0tKSB7XHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBjaGlsZC5jaGlsZHJlbltpXS5kZXRhY2goKTtcclxuICAgICAgICAgICAgICAgICAgICAgICAgfVxyXG4gICAgICAgICAgICAgICAgICAgICAgICBjaGlsZC5pbm5lclRleHQgPSBcIlwiO1xyXG5cclxuICAgICAgICAgICAgICAgICAgICAgICAgY2hpbGQuY2xhc3NMaXN0LmFkZChNdWx0aUNvbHVtbkxheW91dENTUy5SZWdpb25Sb290Q29udGFpbmVyRGl2KTtcclxuICAgICAgICAgICAgICAgICAgICAgICAgbGV0IHJlbmRlckVycm9yUmVnaW9uID0gY2hpbGQuY3JlYXRlRGl2KHtcclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGNsczogYCR7TXVsdGlDb2x1bW5MYXlvdXRDU1MuUmVnaW9uRXJyb3JDb250YWluZXJEaXZ9LCAke011bHRpQ29sdW1uU3R5bGVDU1MuUmVnaW9uRXJyb3JNZXNzYWdlfWAsXHJcbiAgICAgICAgICAgICAgICAgICAgICAgIH0pO1xyXG4gICAgICAgICAgICAgICAgICAgICAgICBsZXQgcmVuZGVyQ29sdW1uUmVnaW9uID0gY2hpbGQuY3JlYXRlRGl2KHtcclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGNsczogTXVsdGlDb2x1bW5MYXlvdXRDU1MuUmVnaW9uQ29udGVudENvbnRhaW5lckRpdlxyXG4gICAgICAgICAgICAgICAgICAgICAgICB9KTtcclxuXHJcblxyXG4gICAgICAgICAgICAgICAgICAgICAgICBsZXQgcmVnaW9uYWxDb250YWluZXI6IFJlZ2lvbk1hbmFnZXJDb250YWluZXIgPSBmaWxlRE9NTWFuYWdlci5nZXRSZWdpb25hbENvbnRhaW5lcihyZWdpb25LZXkpO1xyXG4gICAgICAgICAgICAgICAgICAgICAgICBpZiAocmVnaW9uYWxDb250YWluZXIgPT09IG51bGwpIHtcclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHJlbmRlckVycm9yUmVnaW9uLmlubmVyVGV4dCA9IFwiRXJyb3IgcmVuZGVyaW5nIG11bHRpLWNvbHVtbiByZWdpb24uXFxuUGxlYXNlIGNsb3NlIGFuZCByZW9wZW4gdGhlIGZpbGUsIHRoZW4gbWFrZSBzdXJlIHlvdSBhcmUgaW4gcmVhZGluZyBtb2RlIGJlZm9yZSBleHBvcnRpbmcuXCI7XHJcbiAgICAgICAgICAgICAgICAgICAgICAgIH1cclxuICAgICAgICAgICAgICAgICAgICAgICAgZWxzZSB7XHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBsZXQgcmVnaW9uYWxNYW5hZ2VyOiBSZWdpb25NYW5hZ2VyID0gcmVnaW9uYWxDb250YWluZXIuZ2V0UmVnaW9uKCk7XHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICByZWdpb25hbE1hbmFnZXIuZXhwb3J0UmVnaW9uRWxlbWVudHNUb1BERihyZW5kZXJDb2x1bW5SZWdpb24pO1xyXG4gICAgICAgICAgICAgICAgICAgICAgICB9XHJcbiAgICAgICAgICAgICAgICAgICAgfVxyXG4gICAgICAgICAgICAgICAgfVxyXG4gICAgICAgICAgICAgICAgZWxzZSB7XHJcblxyXG4gICAgICAgICAgICAgICAgICAgIGlmIChtdWx0aUNvbHVtblBhcnNlci5jb250YWluc0VuZFRhZyhjaGlsZC50ZXh0Q29udGVudCkgPT09IHRydWUpIHtcclxuXHJcbiAgICAgICAgICAgICAgICAgICAgICAgIGluQmxvY2sgPSBmYWxzZTtcclxuICAgICAgICAgICAgICAgICAgICB9XHJcblxyXG4gICAgICAgICAgICAgICAgICAgIGNoaWxkcmVuVG9SZW1vdmUucHVzaChjaGlsZCk7XHJcbiAgICAgICAgICAgICAgICB9XHJcbiAgICAgICAgICAgIH1cclxuICAgICAgICB9XHJcblxyXG4gICAgICAgIGNoaWxkcmVuVG9SZW1vdmUuZm9yRWFjaChjaGlsZCA9PiB7XHJcbiAgICAgICAgICAgIGlmKGNoaWxkLnBhcmVudEVsZW1lbnQgPT09IGVsKSB7XHJcbiAgICAgICAgICAgICAgICBlbC5yZW1vdmVDaGlsZChjaGlsZCk7XHJcbiAgICAgICAgICAgIH1cclxuICAgICAgICB9KTtcclxuICAgIH1cclxuXHJcbiAgICBjaGVja0V4cG9ydGluZyhlbGVtZW50OiBIVE1MRWxlbWVudCk6IGJvb2xlYW4ge1xyXG5cclxuICAgICAgICBpZihlbGVtZW50ID09PSBudWxsKSB7XHJcbiAgICAgICAgICAgIHJldHVybiBmYWxzZTtcclxuICAgICAgICB9XHJcblxyXG4gICAgICAgIGlmKGVsZW1lbnQuY2xhc3NMaXN0LmNvbnRhaW5zKFwicHJpbnRcIikpIHtcclxuICAgICAgICAgICAgcmV0dXJuIHRydWU7XHJcbiAgICAgICAgfVxyXG5cclxuICAgICAgICBpZihlbGVtZW50LnBhcmVudE5vZGUgIT09IG51bGwpIHtcclxuICAgICAgICAgICAgcmV0dXJuIHRoaXMuY2hlY2tFeHBvcnRpbmcoZWxlbWVudC5wYXJlbnRFbGVtZW50KTtcclxuICAgICAgICB9XHJcblxyXG4gICAgICAgIHJldHVybiBmYWxzZTtcclxuICAgIH1cclxuXHJcbiAgICBzZXR1cE1hcmtkb3duQ29kZWJsb2NrUG9zdFByb2Nlc3NvcihzdGFydFN0cjogc3RyaW5nKSB7XHJcblxyXG4gICAgICAgIHRoaXMucmVnaXN0ZXJNYXJrZG93bkNvZGVCbG9ja1Byb2Nlc3NvcihzdGFydFN0ciwgKHNvdXJjZSwgZWwsIGN0eCkgPT4ge1xyXG5cclxuICAgICAgICAgICAgaWYodGhpcy5zZXR0aW5ncy5yZW5kZXJPbk1vYmlsZSA9PT0gZmFsc2UgJiZcclxuICAgICAgICAgICAgICAgIFBsYXRmb3JtLmlzTW9iaWxlID09PSB0cnVlKSB7XHJcbiBcclxuICAgICAgICAgICAgICAgICByZXR1cm47XHJcbiAgICAgICAgICAgIH1cclxuXHJcbiAgICAgICAgICAgIGNvbnN0IHNvdXJjZVBhdGggPSBjdHguc291cmNlUGF0aDtcclxuICAgICAgICBcclxuICAgICAgICAgICAgLy8gU2V0IHVwIG91ciBDU1Mgc28gdGhhdCB0aGUgY29kZWJsb2NrIG9ubHkgcmVuZGVycyB0aGlzIGRhdGEgaW4gcmVhZGluZy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gICAgICAgIGNvbnRpbnVlO1xyXG4gICAgICAgICAgICAgICAgfVxyXG4gICAgICAgICAgICAgICAgZm91bmRGaWxlTGVhZiA9IHRydWU7XHJcbiAgICAgICAgXHJcbiAgICAgICAgICAgICAgICBpZihnZXRMZWFmU291cmNlTW9kZShmaWxlTGVhZikgPT09IFwic291cmNlXCIpIHtcclxuICAgICAgICAgICAgICAgICAgICAvLyBUaGlzIHdhcyBhZGRlZCB3aGVuIGltcGxlbWVudGluZyBsaXZlIHByZXZpZXcsIGJ1dCB0aGUgcmVhc29uIGl0IHdhcyBvcmlnaW5hbGx5IGFkZGVkIGFwcGVhcnMgdG8gbm8gbG9uZ2VyIGJlIGFuIGlzc3VlLlxyXG4gICAgICAgICAgICAgICAgICAgIC8vIFJlbW92aW5nIHRoZSByZXR1cm4gZnJvbSBoZXJlIHRvIGZpeCBidWcgd2hlcmUgb3BlbmluZyBtdWx0aXBsZSBjb3BpZXMgb2YgdGhlIGRvY3VtZW50IGNhdXNlcyByZWdpb25zIHRvIG5vdCByZW5kZXIuXHJcbiAgICAgICAgICAgICAgICAgICAgY29uc29sZS5kZWJ1ZyhcIkxlYWYgb2YgZmlsZSBpcyBpbiBzb3VyY2UgbW9kZS4gU2hvdWxkIHdlIGJlIGlnbm9yaW5nIHBvc3QgcHJvY2Vzc2luZyBoZXJlP1wiKVxyXG4gICAgICAgICAgICAgICAgICAgIC8vIHJldHVybjtcclxuICAgICAgICAgICAgICAgIH1cclxuICAgICAgICAgICAgfVxyXG4gICAgICAgIFxyXG4gICAgICAgICAgICBpZih0aGlzLmdsb2JhbE1hbmFnZXIgPT09IG51bGwgfHwgdGhpcy5nbG9iYWxNYW5hZ2VyID09PSB1bmRlZmluZWQpIHtcclxuICAgICAgICAgICAgICAgIC8vIGNvbnNvbGUubG9nKFwiR2xvYmFsIG1hbmFnZXIgaXMgdW5kZWZpbmVkP1wiKTtcclxuICAgICAgICAgICAgICAgIHJldHVybjtcclxuICAgICAgICAgICAgfVxyXG5cclxuICAgICAgICAgICAgbGV0IGZpbGVET01NYW5hZ2VyID0gdGhpcy5nbG9iYWxNYW5hZ2VyLmdldEZpbGVNYW5hZ2VyKHNvdXJjZVBhdGgpO1xyXG4gICAgICAgICAgICBpZihmaWxlRE9NTWFuYWdlciA9PT0gbnVsbCkge1xyXG4gICAgICAgICAgICAgICAgcmV0dXJuO1xyXG4gICAgICAgICAgICB9XHJcbiAgICAgICAgICAgIFxyXG4gICAgICAgICAgICAvLyBTZXQgZmlsZSB0byBoYXZlIHN0YXJ0IHRhZy5cclxuICAgICAgICAgICAgZmlsZURPTU1hbmFnZXIuc2V0SGFzU3RhcnRUYWcoKTtcclxuICAgICAgICBcclxuICAgICAgICAgICAgLy8gR2V0IHRoZSBpbmZvIGZvciBvdXIgY3VycmVudCBjb250ZXh0IGFuZCB0aGVuIGNoZWNrXHJcbiAgICAgICAgICAgIC8vIGlmIHRoZSBlbnRpcmUgdGV4dCBjb250YWlucyBhIHN0YXJ0IHRhZy4gSWYgdGhlcmUgaXNcclxuICAgICAgICAgICAgLy8gbm8gc3RhcnQgdGFnIGluIHRoZSBkb2N1bWVudCB3ZSBjYW4ganVzdCByZXR1cm4gYW5kXHJcbiAgICAgICAgICAgIC8vIGlnbm9yZSB0aGUgcmVzdCBvZiB0aGUgcGFyc2luZy5cclxuICAgICAgICAgICAgbGV0IGluZm8gPSBjdHguZ2V0U2VjdGlvbkluZm8oZWwpO1xyXG4gICAgICAgIFxyXG4gICAgICAgICAgICAvKipcclxuICAgICAgICAgICAgICogV2UgbmVlZCB0aGUgY29udGV4dCBpbmZvIHRvIHByb3Blcmx5IHBhcnNlIHNvIHJldHVybmluZyBoZXJlIFxyXG4gICAgICAgICAgICAgKiBpbmZvIGlzIG51bGwuIFRPRE86IFNldCBlcnJvciBpbiB2aWV3IGlmIHRoaXMgb2NjdXJzLlxyXG4gICAgICAgICAgICAgKi9cclxuICAgICAgICAgICAgaWYoIWluZm8pIHtcclxuICAgICAgICAgICAgICAgIHJldHVybjtcclxuICAgICAgICAgICAgfVxyXG4gICAgICAgIFxyXG4gICAgICAgICAgICAvKiogXHJcbiAgICAgICAgICAgICAqIFNldCB1cCB0aGUgY3VycmVudCBlbGVtZW50IHRvIGFjdCBhcyB0aGUgcGFyZW50IGZvciB0aGUgXHJcbiAgICAgICAgICAgICAqIG11bHRpLWNvbHVtbiByZWdpb24uXHJcbiAgICAgICAgICAgICAqL1xyXG4gICAgICAgICAgICBlbC5jbGFzc0xpc3QuYWRkKE11bHRpQ29sdW1uTGF5b3V0Q1NTLlJlZ2lvblJvb3RDb250YWluZXJEaXYpXHJcbiAgICAgICAgICAgIGxldCByZW5kZXJFcnJvclJlZ2lvbiA9IGVsLmNyZWF0ZURpdih7XHJcbiAgICAgICAgICAgICAgICBjbHM6IGAke011bHRpQ29sdW1uTGF5b3V0Q1NTLlJlZ2lvbkVycm9yQ29udGFpbmVyRGl2fSAke011bHRpQ29sdW1uU3R5bGVDU1MuUmVnaW9uRXJyb3JNZXNzYWdlfWAsXHJcbiAgICAgICAgICAgIH0pO1xyXG4gICAgICAgICAgICBsZXQgcmVuZGVyQ29sdW1uUmVnaW9uID0gZWwuY3JlYXRlRGl2KHtcclxuICAgICAgICAgICAgICAgIGNsczogTXVsdGlDb2x1bW5MYXlvdXRDU1MuUmVnaW9uQ29udGVudENvbnRhaW5lckRpdlxyXG4gICAgICAgICAgICB9KVxyXG4gICAgICAgIFxyXG4gICAgICAgICAgICBsZXQgcmVnaW9uS2V5ID0gcGFyc2VTdGFydFJlZ2lvbkNvZGVCbG9ja0lEKHNvdXJjZSk7XHJcbiAgICAgICAgXHJcbiAgICAgICAgICAgIGxldCBjcmVhdGVOZXdSZWdpb25NYW5hZ2VyID0gdHJ1ZTtcclxuICAgICAgICAgICAgaWYoZmlsZURPTU1hbmFnZXIuY2hlY2tLZXlFeGlzdHMocmVnaW9uS2V5KSA9PT0gdHJ1ZSkge1xyXG4gICAgICAgICAgICAgICAgXHJcbiAgICAgICAgICAgICAgICBjcmVhdGVOZXdSZWdpb25NYW5hZ2VyID0gZmFsc2U7XHJcbiAgICAgICAgICAgICAgICBsZXQgeyBudW1iZXJPZlRhZ3MsIGtleXMgfSA9IG11bHRpQ29sdW1uUGFyc2VyLmNvdW50U3RhcnRUYWdzKGluZm8udGV4dCk7XHJcbiAgICAgICAgXHJcbiAgICAgICAgICAgICAgICBsZXQgbnVtTWF0Y2hlcyA9IDA7XHJcbiAgICAgICAgICAgICAgICBmb3IobGV0IGkgPSAwOyBpIDwgbnVtYmVyT2ZUYWdzOyBpKyspIHtcclxuICAgICAgICBcclxuICAgICAgICAgICAgICAgICAgICAvLyBCZWNhdXNlIHdlIGNoZWNrZWQgaWYga2V5IGV4aXN0cyBvbmUgb2YgdGhlc2UgaGFzIHRvIG1hdGNoLlxyXG4gICAgICAgICAgICAgICAgICAgIGlmKGtleXNbaV0gPT09IHJlZ2lvbktleSkge1xyXG4gICAgICAgICAgICAgICAgICAgICAgICBudW1NYXRjaGVzKys7XHJcbiAgICAgICAgICAgICAgICAgICAgfVxyXG4gICAgICAgICAgICAgICAgfVxyXG4gICAgICAgIFxyXG4gICAgICAgICAgICAgICAgLy8gV2Ugb25seSB3YW50IHRvIGRpc3BsYXkgYW4gZXJyb3IgaWYgdGhlcmUgYXJlIG1vcmUgdGhhbiAyIG9mIHRoZSBzYW1lIGlkIGFjcm9zc1xyXG4gICAgICAgICAgICAgICAgLy8gdGhlIHdob2xlIGRvY3VtZW50LiBUaGlzIHByZXZlbnRzIGVycm9zIHdoZW4gb2JzaWRpYW4gcmVsb2FkcyB0aGUgd2hvbGUgZG9jdW1lbnRcclxuICAgICAgICAgICAgICAgIC8vIGFuZCB0aGVyZSBhcmUgdHdvIG9mIHRoZSBzYW1lIGtleSBpbiB0aGUgbWFwLlxyXG4gICAgICAgICAgICAgICAgaWYobnVtTWF0Y2hlcyA+PSAyKSB7XHJcbiAgICAgICAgICAgICAgICAgICAgaWYocmVnaW9uS2V5ID09PSBcIlwiKSB7X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gICAgICAgICAgICAgICAgIGZpbGVET01NYW5hZ2VyLnJlbW92ZVJlZ2lvbihyZWdpb25LZXkpO1xyXG4gICAgICAgICAgICAgICAgICAgIH1cclxuICAgICAgICAgICAgICAgIH07XHJcbiAgICAgICAgICAgICAgICBjdHguYWRkQ2hpbGQoZWxlbWVudE1hcmtkb3duUmVuZGVyZXIpO1xyXG4gICAgICAgICAgICB9XHJcbiAgICAgICAgXHJcbiAgICAgICAgICAgIGxldCByZWdpb25hbE1hbmFnZXJDb250YWluZXIgPSBmaWxlRE9NTWFuYWdlci5nZXRSZWdpb25hbENvbnRhaW5lcihyZWdpb25LZXkpO1xyXG4gICAgICAgICAgICBpZihyZWdpb25hbE1hbmFnZXJDb250YWluZXIgIT09IG51bGwpIHtcclxuICAgICAgICBcclxuICAgICAgICAgICAgICAgIGxldCByZWdpb25hbE1hbmFnZXIgPSByZWdpb25hbE1hbmFnZXJDb250YWluZXIuc2V0UmVnaW9uU2V0dGluZ3Moc291cmNlKTtcclxuICAgICAgICAgICAgICAgIHJlZ2lvbmFsTWFuYWdlci5yZWdpb25QYXJlbnQgPSBlbDtcclxuICAgICAgICAgICAgfVxyXG4gICAgICAgIH0pXHJcbiAgICB9XHJcblxyXG4gICAgYXN5bmMgbG9hZFNldHRpbmdzKCkge1xyXG5cclxuXHRcdHRoaXMuc2V0dGluZ3MgPSBPYmplY3QuYXNzaWduKHt9LCBERUZBVUxUX1NFVFRJTkdTLCBhd2FpdCB0aGlzLmxvYWREYXRhKCkpO1xyXG5cdH1cclxuXHJcblx0YXN5bmMgc2F2ZVNldHRpbmdzKCkge1xyXG5cdFx0YXdhaXQgdGhpcy5zYXZlRGF0YSh0aGlzLnNldHRpbmdzKTtcclxuXHR9XHJcbn1cclxuXHJcblxyXG5leHBvcnQgdHlwZSBuZWFyYnlTaWJsaW5ncyA9IHsgXHJcbiAgICBzaWJsaW5nc0Fib3ZlOiBIVE1MRGl2RWxlbWVudCxcclxuICAgIGN1cnJlbnRPYmplY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/.obsidian/plugins/multi-column-markdown/manifest.json b/.obsidian/plugins/multi-column-markdown/manifest.json index e806c455..52c1bc6e 100644 --- a/.obsidian/plugins/multi-column-markdown/manifest.json +++ b/.obsidian/plugins/multi-column-markdown/manifest.json @@ -1,10 +1,11 @@ { "id": "multi-column-markdown", "name": "Multi-Column Markdown", - "version": "0.7.3", - "minAppVersion": "0.15.9", + "version": "0.7.6", + "minAppVersion": "1.0.3", "description": "This plugin adds functionality to create markdown documents with multiple columns of content viewable within Obsidian's preview mode", "author": "Cameron Robinson", + "fundingUrl": "https://www.buymeacoffee.com/ckrobinson", "authorUrl": "https://portfolio.ckrobinson.net", "isDesktopOnly": false } diff --git a/.obsidian/plugins/multi-column-markdown/styles.css b/.obsidian/plugins/multi-column-markdown/styles.css index e9503a17..c0f2c678 100644 --- a/.obsidian/plugins/multi-column-markdown/styles.css +++ b/.obsidian/plugins/multi-column-markdown/styles.css @@ -151,4 +151,16 @@ .mcm-content-overflow-auto-scroll { overflow-x: auto; +} + +.mcm-content-alignment-left { + text-align: left; +} + +.mcm-content-alignment-center { + text-align: center; +} + +.mcm-content-alignment-right { + text-align: right; } \ No newline at end of file diff --git a/.obsidian/plugins/obsidian-account-linker/main.js b/.obsidian/plugins/obsidian-account-linker/main.js new file mode 100644 index 00000000..a9d3b5bc --- /dev/null +++ b/.obsidian/plugins/obsidian-account-linker/main.js @@ -0,0 +1,408 @@ +/* +THIS IS A GENERATED/BUNDLED FILE BY ESBUILD +if you want to view the source, please visit the github repository of this plugin +*/ + +var __defProp = Object.defineProperty; +var __getOwnPropDesc = Object.getOwnPropertyDescriptor; +var __getOwnPropNames = Object.getOwnPropertyNames; +var __hasOwnProp = Object.prototype.hasOwnProperty; +var __export = (target, all) => { + for (var name in all) + __defProp(target, name, { get: all[name], enumerable: true }); +}; +var __copyProps = (to, from, except, desc) => { + if (from && typeof from === "object" || typeof from === "function") { + for (let key of __getOwnPropNames(from)) + if (!__hasOwnProp.call(to, key) && key !== except) + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); + } + return to; +}; +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); +var __async = (__this, __arguments, generator) => { + return new Promise((resolve, reject) => { + var fulfilled = (value) => { + try { + step(generator.next(value)); + } catch (e) { + reject(e); + } + }; + var rejected = (value) => { + try { + step(generator.throw(value)); + } catch (e) { + reject(e); + } + }; + var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected); + step((generator = generator.apply(__this, __arguments)).next()); + }); +}; + +// main.ts +var main_exports = {}; +__export(main_exports, { + default: () => AccountLinker +}); +module.exports = __toCommonJS(main_exports); +var import_obsidian3 = require("obsidian"); + +// src/settings/AccountLinkerSettingTab.ts +var import_obsidian2 = require("obsidian"); + +// src/control/utils.ts +function replaceTemplateText(beforeText, ctx) { + return beforeText.split("{{NAME}}").join(ctx.text).replace(/\{\{[^}]*\}\}/g, ""); +} +function isColor(code) { + return /^#[0-9A-Fa-f]{6}$/.test(code); +} +function isURL(link) { + return true; +} +function selectFontColor(backgroundColor) { + if (!isColor(backgroundColor)) { + return "#000000"; + } + const brightness = parseInt(backgroundColor.substring(1, 3), 16) * 0.299 + parseInt(backgroundColor.substring(3, 5), 16) * 0.587 + parseInt(backgroundColor.substring(5, 7), 16) * 0.114; + return Math.floor(brightness) >= 140 ? "#000000" : "#FFFFFF"; +} + +// src/drawing/drawAccountLink.ts +function drawAccountLink(a, config, text) { + a.empty(); + a.classList.add("frontmatter-accounts"); + const linkText = replaceTemplateText(config.urlTemplate, { text }); + if (isURL(linkText)) { + a.href = linkText; + } else { + a.href = ""; + } + const siteNameDiv = a.createEl("div"); + siteNameDiv.classList.add("frontmatter-accounts-sitename"); + siteNameDiv.innerText = config.name; + siteNameDiv.style.backgroundColor = isColor(config.color) ? config.color : "#ffffff"; + siteNameDiv.style.color = selectFontColor(config.color); + const labelText = replaceTemplateText(config.labelTemplate, { text }); + if (labelText != "") { + const labelDiv = a.createEl("div"); + labelDiv.classList.add("frontmatter-accounts-label"); + labelDiv.innerText = labelText; + } +} + +// src/settings/WebsiteEditModal.ts +var import_obsidian = require("obsidian"); +var descriptions = { + name: "Website name", + color: "Website image color(HEX)", + urlTemplate: "URL Replace Pattern", + labelTemplate: "Account Name Replace Pattern", + doesReverseResolution: "If on, it will reverse the account from the URL entered in the `accounts` field of the front matter", + previewBox: "", + saveButton: "" +}; +var WebsiteEditModal = class extends import_obsidian.Modal { + constructor(plugin, config, closeCallBack) { + super(plugin.app); + this.plugin = plugin; + this.config = config; + this.closeCallBack = closeCallBack; + } + onOpen() { + const config = this.config; + this.titleEl.setText("Website Config"); + const settings = { + name: new import_obsidian.Setting(this.contentEl).setName("Name").setDesc(descriptions.name).addText((cb) => { + cb.setValue(config.name).setPlaceholder("Twitter").onChange((value) => { + config.name = value; + this.updateText("name", settings); + this.updateDisplay(settings); + }); + }), + color: new import_obsidian.Setting(this.contentEl).setName("Color").setDesc(descriptions.color).addText((cb) => { + cb.setValue(config.color).setPlaceholder("#3e9cec").onChange((value) => { + config.color = value; + this.updateText("color", settings); + this.updateDisplay(settings); + }); + }), + urlTemplate: new import_obsidian.Setting(this.contentEl).setName("URL Template").setDesc(descriptions.urlTemplate).addText((cb) => { + cb.setValue(config.urlTemplate).setPlaceholder("https://twitter.com/{{NAME}}").onChange((value) => { + config.urlTemplate = value; + this.updateText("urlTemplate", settings); + this.updateDisplay(settings); + }); + }), + labelTemplate: new import_obsidian.Setting(this.contentEl).setName("Label Template").setDesc(descriptions.labelTemplate).addText((cb) => { + cb.setValue(config.labelTemplate).setPlaceholder("@{{NAME}}").onChange((value) => { + config.labelTemplate = value; + this.updateText("labelTemplate", settings); + this.updateDisplay(settings); + }); + }), + doesReverseResolution: new import_obsidian.Setting(this.contentEl).setName("Reverse Resolution(Unimplemented)").setDesc(descriptions.doesReverseResolution).addToggle((cb) => { + cb.setValue(config.doesReverseResolution).onChange((value) => { + config.doesReverseResolution = value; + this.updateText("doesReverseResolution", settings); + this.updateDisplay(settings); + }).setDisabled; + }), + previewBox: new import_obsidian.Setting(this.contentEl).setDesc(descriptions.previewBox).setName("Preview"), + saveButton: new import_obsidian.Setting(this.contentEl).setDesc(descriptions.saveButton).addButton((b) => { + b.setButtonText("Save").setDisabled(true).onClick((evt) => { + this.closeCallBack(config); + this.close(); + }); + }) + }; + ["name", "color", "urlTemplate", "labelTemplate", "doesReverseResolution"].forEach((key) => { + this.updateText(key, settings); + }); + this.updateDisplay(settings); + } + checkConfig(key) { + switch (key) { + case "name": + if (this.config.name == "") { + return "The name length must be greater than zero"; + } else if (["aliases", "alias", "tags", "tag", "cssclass", "publish", "accounts"].includes(this.config.name.toLowerCase())) { + return "The name must be something other"; + } else { + return ""; + } + case "color": + if (!isColor(this.config.color)) { + return "The color must be represented by `#` and a six-digit hexadecimal number"; + } else { + return ""; + } + case "urlTemplate": + if (!isURL(this.config.urlTemplate.replace(/\{\{[^}]*\}\}/g, ""))) { + return "URL is invalid"; + } else { + return ""; + } + case "labelTemplate": + return ""; + case "doesReverseResolution": + return ""; + } + } + updateText(key, settings) { + if (this.checkConfig(key) != "") { + settings[key].descEl.innerHTML = descriptions[key] + `
${this.checkConfig(key)}`; + } else { + settings[key].descEl.innerHTML = descriptions[key]; + } + } + updateDisplay(settings) { + let f = false; + ["name", "color", "urlTemplate", "labelTemplate", "doesReverseResolution"].forEach((key) => { + if (this.checkConfig(key) != "") { + f = true; + } + }); + settings.saveButton.setDisabled(f); + const linker = document.createElement("a"); + drawAccountLink(linker, this.config, "example"); + settings.previewBox.descEl.innerHTML = linker.outerHTML; + } +}; + +// src/control/websiteConfig.ts +var websiteConfig = class { + constructor() { + this.name = ""; + this.color = "#FFFFFF"; + this.urlTemplate = ""; + this.labelTemplate = ""; + this.doesReverseResolution = false; + } +}; + +// src/settings/AccountLinkerSettingTab.ts +var AccountLinkerSettingTab = class extends import_obsidian2.PluginSettingTab { + constructor(app, plugin) { + super(app, plugin); + this.plugin = plugin; + } + display() { + const { containerEl } = this; + containerEl.empty(); + const siteDiv = containerEl.createDiv(); + this.drawSites(siteDiv); + } + drawSites(div) { + div.empty(); + const websites = this.plugin.settings.websites; + websites.forEach((website, i) => { + const s = new import_obsidian2.Setting(div).setDesc(website.name).addButton((button) => { + button.onClick(() => { + const modal = new WebsiteEditModal(this.plugin, website, (config) => { + this.plugin.settings.websites[i] = config; + this.plugin.saveSettings(); + this.drawSites(div); + }); + modal.open(); + }); + button.setIcon("pencil"); + button.setTooltip("Edit"); + }).addButton((button) => { + button.onClick(() => { + this.plugin.settings.websites.remove(website); + this.plugin.saveSettings(); + this.drawSites(div); + }); + button.setIcon("cross"); + button.setTooltip("Remove"); + }); + const linker = document.createElement("a"); + drawAccountLink(linker, website, "example"); + s.descEl.innerHTML += linker.outerHTML; + }); + new import_obsidian2.Setting(div).addButton((button) => { + button.onClick(() => { + const modal = new WebsiteEditModal(this.plugin, new websiteConfig(), (config) => { + this.plugin.settings.websites.push(config); + this.plugin.saveSettings(); + this.drawSites(div); + }); + modal.open(); + }); + button.setIcon("plus-with-circle"); + button.setTooltip("New"); + }); + } +}; + +// src/settings/AccountLinkerSettings.ts +var DEFAULT_SETTINGS = { + websites: [ + { + name: "Twitter", + color: "#3e9cec", + urlTemplate: "https://twitter.com/{{NAME}}", + labelTemplate: "@{{NAME}}", + doesReverseResolution: false + }, + { + name: "Facebook", + color: "#3b5998", + urlTemplate: "https://www.facebook.com/{{NAME}}", + labelTemplate: "{{NAME}}", + doesReverseResolution: false + }, + { + name: "Instagram", + color: "#dc2477", + urlTemplate: "https://www.instagram.com/{{NAME}}", + labelTemplate: "@{{NAME}}", + doesReverseResolution: false + }, + { + name: "GitHub", + color: "#0a0c10", + urlTemplate: "https://github.com/{{NAME}}", + labelTemplate: "@{{NAME}}", + doesReverseResolution: false + }, + { + name: "Mail", + color: "#e7e7e7", + urlTemplate: "mailto:{{NAME}}", + labelTemplate: "{{NAME}}", + doesReverseResolution: false + }, + { + name: "Linktree", + color: "#3ea195", + urlTemplate: "https://linktr.ee/{{NAME}}", + labelTemplate: "{{NAME}}", + doesReverseResolution: false + } + ] +}; + +// src/drawing/frontmatterProcessor.ts +var frontmatterProcessor = (plugin) => (el, ctx) => __async(void 0, null, function* () { + const frontmatter = el.querySelector(".frontmatter"); + if (frontmatter !== null) { + const embed = el.querySelector(".internal-embed"); + if (embed !== null) { + return; + } + if (ctx.frontmatter) { + const siteDict = {}; + plugin.settings.websites.forEach((config) => { + if (!Object.keys(siteDict).includes(config.name.toLowerCase())) { + siteDict[config.name.toLowerCase()] = []; + } + siteDict[config.name.toLowerCase()].push(config); + }); + console.log(siteDict); + const accountList = []; + Object.keys(ctx.frontmatter).forEach((key) => { + if (Object.keys(siteDict).includes(key.toLowerCase())) { + const lk = key.toLowerCase(); + siteDict[lk].forEach((config) => { + frontMatterRecursion(ctx.frontmatter[key], config, accountList); + }); + } + }); + const target = el.querySelector(".frontmatter-container"); + if (accountList.length) { + target.innerHTML += ` +
+ +
+
+
+`; + const section = target.querySelector(".frontmatter-section-accounts"); + accountList.forEach((a) => { + const linkTag = section.createEl("a"); + drawAccountLink(linkTag, a.config, a.value); + }); + target.style.display = "block"; + } + } + } +}); +function frontMatterRecursion(value, config, accountList) { + if (typeof value === "string") { + accountList.push({ + config, + value + }); + } else { + value.forEach((v) => { + frontMatterRecursion(v, config, accountList); + }); + } +} + +// main.ts +var AccountLinker = class extends import_obsidian3.Plugin { + onload() { + return __async(this, null, function* () { + yield this.loadSettings(); + this.registerMarkdownPostProcessor(frontmatterProcessor(this)); + this.addSettingTab(new AccountLinkerSettingTab(this.app, this)); + }); + } + onunload() { + } + loadSettings() { + return __async(this, null, function* () { + this.settings = Object.assign({}, DEFAULT_SETTINGS, yield this.loadData()); + }); + } + saveSettings() { + return __async(this, null, function* () { + yield this.saveData(this.settings); + }); + } +}; diff --git a/.obsidian/plugins/obsidian-account-linker/manifest.json b/.obsidian/plugins/obsidian-account-linker/manifest.json new file mode 100644 index 00000000..dac417fa --- /dev/null +++ b/.obsidian/plugins/obsidian-account-linker/manifest.json @@ -0,0 +1,10 @@ +{ + "id": "obsidian-account-linker", + "name": "Account Linker", + "version": "1.0.1", + "minAppVersion": "0.12.0", + "description": "Plugin for describing external service accounts in the front matter", + "author": "qwegat", + "authorUrl": "https://github.com/qwegat", + "isDesktopOnly": false +} diff --git a/.obsidian/plugins/obsidian-account-linker/styles.css b/.obsidian/plugins/obsidian-account-linker/styles.css new file mode 100644 index 00000000..ab9dcd62 --- /dev/null +++ b/.obsidian/plugins/obsidian-account-linker/styles.css @@ -0,0 +1,30 @@ +.frontmatter-section-accounts{ + display: inline-flex; + flex-wrap: wrap; + align-items: center; +} + +.frontmatter-accounts { + background-color: var(--background-secondary-alt); + border-radius: 30px; + font-size: 0.9em; + border: 1px solid transparent; + white-space: nowrap; + overflow: hidden; + margin: 2px 4px; + display: inline-flex; + padding: 0; +} + +.frontmatter-accounts-sitename { + display: block; + padding: 2px 8px 2px 8px; + line-height: 19px; + margin: 0; +} +.frontmatter-accounts-label { + display: block; + padding: 2px 8px 2px 8px; + line-height: 19px; + margin: 0; +} \ 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 775e09d7..01d5bf3d 100644 --- a/.obsidian/plugins/obsidian-activity-history/data.json +++ b/.obsidian/plugins/obsidian-activity-history/data.json @@ -12,8 +12,8 @@ "checkpointList": [ { "path": "/", - "date": "2022-11-03", - "size": 8581587 + "date": "2022-12-16", + "size": 10262235 } ], "activityHistory": [ @@ -1210,7 +1210,179 @@ }, { "date": "2022-11-03", - "value": 25 + "value": 4556 + }, + { + "date": "2022-11-04", + "value": 42488 + }, + { + "date": "2022-11-05", + "value": 1459 + }, + { + "date": "2022-11-06", + "value": 293070 + }, + { + "date": "2022-11-07", + "value": 1285 + }, + { + "date": "2022-11-08", + "value": 17054 + }, + { + "date": "2022-11-09", + "value": 1147 + }, + { + "date": "2022-11-10", + "value": 2813 + }, + { + "date": "2022-11-11", + "value": 1550 + }, + { + "date": "2022-11-12", + "value": 1708 + }, + { + "date": "2022-11-13", + "value": 158796 + }, + { + "date": "2022-11-14", + "value": 2447 + }, + { + "date": "2022-11-15", + "value": 1527 + }, + { + "date": "2022-11-16", + "value": 1264 + }, + { + "date": "2022-11-17", + "value": 1138 + }, + { + "date": "2022-11-18", + "value": 3711 + }, + { + "date": "2022-11-19", + "value": 3457 + }, + { + "date": "2022-11-20", + "value": 1237 + }, + { + "date": "2022-11-21", + "value": 1108 + }, + { + "date": "2022-11-22", + "value": 310673 + }, + { + "date": "2022-11-23", + "value": 1185 + }, + { + "date": "2022-11-24", + "value": 1157 + }, + { + "date": "2022-11-25", + "value": 3435 + }, + { + "date": "2022-11-26", + "value": 2238 + }, + { + "date": "2022-11-27", + "value": 272188 + }, + { + "date": "2022-11-28", + "value": 1368 + }, + { + "date": "2022-11-29", + "value": 1108 + }, + { + "date": "2022-11-30", + "value": 1807 + }, + { + "date": "2022-12-01", + "value": 2441 + }, + { + "date": "2022-12-02", + "value": 3727 + }, + { + "date": "2022-12-03", + "value": 5008 + }, + { + "date": "2022-12-04", + "value": 258297 + }, + { + "date": "2022-12-05", + "value": 3716 + }, + { + "date": "2022-12-06", + "value": 3450 + }, + { + "date": "2022-12-07", + "value": 1264 + }, + { + "date": "2022-12-08", + "value": 1663 + }, + { + "date": "2022-12-09", + "value": 24711 + }, + { + "date": "2022-12-10", + "value": 1488 + }, + { + "date": "2022-12-11", + "value": 270119 + }, + { + "date": "2022-12-12", + "value": 1206 + }, + { + "date": "2022-12-13", + "value": 4859 + }, + { + "date": "2022-12-14", + "value": 11340 + }, + { + "date": "2022-12-15", + "value": 3680 + }, + { + "date": "2022-12-16", + "value": 5420 } ] } diff --git a/.obsidian/plugins/obsidian-advanced-uri/main.js b/.obsidian/plugins/obsidian-advanced-uri/main.js index 87469c8c..abe8a28a 100644 --- a/.obsidian/plugins/obsidian-advanced-uri/main.js +++ b/.obsidian/plugins/obsidian-advanced-uri/main.js @@ -3322,6 +3322,68 @@ function v4(options, buf, offset) { return stringify(rnds); } +var BlockUtils = /** @class */ (function () { + function BlockUtils() { + } + BlockUtils.getBlock = function (editor, file) { + var _a, _b; + var cursor = editor.getCursor("to"); + var fileCache = app.metadataCache.getFileCache(file); + var currentBlock = (_a = fileCache === null || fileCache === void 0 ? void 0 : fileCache.sections) === null || _a === void 0 ? void 0 : _a.find(function (section) { + return section.position.start.line <= cursor.line && + section.position.end.line >= cursor.line; + }); + if (currentBlock.type == "list") { + currentBlock = (_b = fileCache.listItems) === null || _b === void 0 ? void 0 : _b.find(function (list) { + if (list.position.start.line <= cursor.line && + list.position.end.line >= cursor.line) { + return list; + } + }); + } + return currentBlock; + }; + BlockUtils.getIdOfBlock = function (editor, block) { + var blockId = block.id; + if (blockId) { + return blockId; + } + // Add a block id + var sectionEnd = block.position.end; + var pos = { + ch: sectionEnd.col, + line: sectionEnd.line, + }; + var newId = Math.random().toString(36).substring(2, 8); + var spacer = BlockUtils.shouldInsertAfter(block) ? "\n\n" : " "; + editor.replaceRange(spacer + "^" + newId, pos); + return newId; + }; + BlockUtils.shouldInsertAfter = function (block) { + if (block.type) { + return [ + "blockquote", + "code", + "table", + "heading", + "comment", + "footnoteDefinition", + ].includes(block.type); + } + }; + BlockUtils.getBlockId = function () { + var view = app.workspace.getActiveViewOfType(obsidian.MarkdownView); + if (view) { + var editor = view.editor; + var file = view.file; + var block = this.getBlock(editor, file); + if (block) + return this.getIdOfBlock(editor, block); + } + }; + return BlockUtils; +}()); + //! All of these methods are taken from https://www.npmjs.com/package/obsidian-daily-notes-interface. function join() { var partSegments = []; @@ -3627,41 +3689,65 @@ var SettingsTab = /** @class */ (function (_super) { containerEl.createEl("h2", { text: this.plugin.manifest.name }); new obsidian.Setting(containerEl) .setName("Open file on write") - .addToggle(function (cb) { return cb.onChange(function (value) { + .addToggle(function (cb) { return cb + .setValue(_this.plugin.settings.openFileOnWrite) + .onChange(function (value) { _this.plugin.settings.openFileOnWrite = value; _this.plugin.saveSettings(); - }).setValue(_this.plugin.settings.openFileOnWrite); }); + }); }); new obsidian.Setting(containerEl) .setName("Open file on write in a new pane") .setDisabled(this.plugin.settings.openFileOnWrite) - .addToggle(function (cb) { return cb.onChange(function (value) { + .addToggle(function (cb) { return cb + .setValue(_this.plugin.settings.openFileOnWriteInNewPane) + .onChange(function (value) { _this.plugin.settings.openFileOnWriteInNewPane = value; _this.plugin.saveSettings(); - }).setValue(_this.plugin.settings.openFileOnWriteInNewPane); }); + }); }); new obsidian.Setting(containerEl) .setName("Open daily note in a new pane") - .addToggle(function (cb) { return cb.onChange(function (value) { + .addToggle(function (cb) { return cb + .setValue(_this.plugin.settings.openDailyInNewPane) + .onChange(function (value) { _this.plugin.settings.openDailyInNewPane = value; _this.plugin.saveSettings(); - }).setValue(_this.plugin.settings.openDailyInNewPane); }); + }); }); new obsidian.Setting(containerEl) .setName("Open file without write in new pane") - .addToggle(function (cb) { return cb.onChange(function (value) { + .addToggle(function (cb) { return cb + .setValue(_this.plugin.settings.openFileWithoutWriteInNewPane) + .onChange(function (value) { _this.plugin.settings.openFileWithoutWriteInNewPane = value; _this.plugin.saveSettings(); - }).setValue(_this.plugin.settings.openFileWithoutWriteInNewPane); }); + }); }); new obsidian.Setting(containerEl) .setName("Use UID instead of file paths") - .addToggle(function (cb) { return cb.onChange(function (value) { + .addToggle(function (cb) { return cb + .setValue(_this.plugin.settings.useUID) + .onChange(function (value) { _this.plugin.settings.useUID = value; _this.plugin.saveSettings(); - }).setValue(_this.plugin.settings.useUID); }); + _this.display(); + }); }); + if (this.plugin.settings.useUID) { + new obsidian.Setting(containerEl) + .setName("Add filepath parameter") + .setDesc("When using UID instead of file paths, you can still add the filepath parameter to know what this URI is about. It's NOT actually used.") + .addToggle(function (cb) { return cb + .setValue(_this.plugin.settings.addFilepathWhenUsingUID) + .onChange(function (value) { + _this.plugin.settings.addFilepathWhenUsingUID = value; + _this.plugin.saveSettings(); + }); }); + } new obsidian.Setting(containerEl) .setName("UID field in frontmatter") - .addText(function (cb) { return cb.onChange(function (value) { + .addText(function (cb) { return cb + .setValue(_this.plugin.settings.idField) + .onChange(function (value) { _this.plugin.settings.idField = value; _this.plugin.saveSettings(); - }).setValue(_this.plugin.settings.idField); }); + }); }); new obsidian.Setting(containerEl) .setName('Donate') .setDesc('If you like this Plugin, consider donating to support continued development.') @@ -3679,6 +3765,7 @@ var DEFAULT_SETTINGS = { openFileWithoutWriteInNewPane: false, idField: "id", useUID: false, + addFilepathWhenUsingUID: false, }; var AdvancedURI = /** @class */ (function (_super) { __extends(AdvancedURI, _super); @@ -3735,6 +3822,22 @@ var AdvancedURI = /** @class */ (function (_super) { }; } }); + this.addCommand({ + id: "copy-uri-block", + name: "copy URI for current block", + checkCallback: function (checking) { + var view = _this.app.workspace.getActiveViewOfType(obsidian.MarkdownView); + if (checking) + return view != undefined; + var id = BlockUtils.getBlockId(); + if (id) { + _this.copyURI({ + filepath: view.file.path, + block: id + }); + } + } + }); this.registerObsidianProtocolHandler("advanced-uri", function (e) { return __awaiter(_this, void 0, void 0, function () { var parameters, createdDailyNote, parameter, res, file, parentFolder, parentFolderPath, index, extension, moment_1, allDailyNotes, dailyNote, _a, _b; var _this = this; @@ -3838,6 +3941,9 @@ var AdvancedURI = /** @class */ (function (_super) { else if ((parameters.search || parameters.searchregex) && parameters.replace != undefined) { this.handleSearchAndReplace(parameters); } + else if (parameters.search) { + this.handleSearch(parameters); + } else if (parameters.filepath) { this.handleOpen(parameters); } @@ -4026,9 +4132,7 @@ var AdvancedURI = /** @class */ (function (_super) { parameters.filepath = this.getAlternativeFilePath(file); } } - return [4 /*yield*/, this.app.workspace.openLinkText(parameters.filepath, "/", undefined, { - state: { mode: "source" } - })]; + return [4 /*yield*/, this.open({ file: parameters.filepath, mode: "source", parameters: parameters })]; case 1: _a.sent(); view = this.app.workspace.getActiveViewOfType(obsidian.MarkdownView); @@ -4051,14 +4155,12 @@ var AdvancedURI = /** @class */ (function (_super) { return [3 /*break*/, 6]; case 2: if (!parameters.line) return [3 /*break*/, 4]; - return [4 /*yield*/, this.app.workspace.openLinkText(parameters.filepath, "/", undefined, { - state: { mode: "source" } - })]; + return [4 /*yield*/, this.open({ file: parameters.filepath, mode: "source", parameters: parameters })]; case 3: _a.sent(); this.setCursorInLine(parameters.line); return [3 /*break*/, 6]; - case 4: return [4 /*yield*/, this.app.workspace.openLinkText(parameters.filepath, "/", this.settings.openFileWithoutWriteInNewPane, this.getViewStateFromMode(parameters))]; + case 4: return [4 /*yield*/, this.open({ file: parameters.filepath, setting: this.settings.openFileWithoutWriteInNewPane, parameters: parameters })]; case 5: _a.sent(); _a.label = 6; @@ -4149,6 +4251,28 @@ var AdvancedURI = /** @class */ (function (_super) { }); }); }; + AdvancedURI.prototype.handleSearch = function (parameters) { + return __awaiter(this, void 0, void 0, function () { + var view, search; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: + if (!parameters.filepath) return [3 /*break*/, 2]; + return [4 /*yield*/, this.open({ file: parameters.filepath, parameters: parameters })]; + case 1: + _a.sent(); + _a.label = 2; + case 2: + view = this.app.workspace.getActiveViewOfType(obsidian.FileView); + view.currentMode.showSearch(); + search = view.currentMode.search; + search.searchInputEl.value = parameters.search; + search.searchInputEl.dispatchEvent(new Event("input")); + return [2 /*return*/]; + } + }); + }); + }; AdvancedURI.prototype.handleWrite = function (parameters, createdDailyNote) { var _a; if (createdDailyNote === void 0) { createdDailyNote = false; } @@ -4217,6 +4341,7 @@ var AdvancedURI = /** @class */ (function (_super) { case 17: if (!(!createdDailyNote && file instanceof obsidian.TFile)) return [3 /*break*/, 18]; new obsidian.Notice("File already exists"); + this.openExistingFileAndSetCursor(file.path, parameters); this.failure(parameters); return [3 /*break*/, 20]; case 18: return [4 /*yield*/, this.writeAndOpenFile(path, parameters.data, parameters)]; @@ -4240,7 +4365,7 @@ var AdvancedURI = /** @class */ (function (_super) { }; AdvancedURI.prototype.handleOpen = function (parameters) { return __awaiter(this, void 0, void 0, function () { - var fileIsAlreadyOpened, leaf, viewState, openInNewPane, view, cache, heading, view, cache, block, view; + var fileIsAlreadyOpened, leaf, viewState, view, cache, heading, view, cache, block, view; var _this = this; return __generator(this, function (_a) { switch (_a.label) { @@ -4265,9 +4390,13 @@ var AdvancedURI = /** @class */ (function (_super) { _a.sent(); _a.label = 2; case 2: - openInNewPane = parameters.newpane !== undefined ? parameters.newpane == "true" : this.settings.openFileWithoutWriteInNewPane; if (!(parameters.heading != undefined)) return [3 /*break*/, 4]; - return [4 /*yield*/, this.app.workspace.openLinkText(parameters.filepath + "#" + parameters.heading, "", openInNewPane, this.getViewStateFromMode(parameters))]; + return [4 /*yield*/, this.open({ + file: parameters.filepath + "#" + parameters.heading, + setting: this.settings.openFileWithoutWriteInNewPane, + parameters: parameters, + supportPopover: false, + })]; case 3: _a.sent(); view = this.app.workspace.getActiveViewOfType(obsidian.MarkdownView); @@ -4280,7 +4409,12 @@ var AdvancedURI = /** @class */ (function (_super) { return [3 /*break*/, 9]; case 4: if (!(parameters.block != undefined)) return [3 /*break*/, 6]; - return [4 /*yield*/, this.app.workspace.openLinkText(parameters.filepath + "#^" + parameters.block, "", openInNewPane, this.getViewStateFromMode(parameters))]; + return [4 /*yield*/, this.open({ + file: parameters.filepath + "#^" + parameters.block, + setting: this.settings.openFileWithoutWriteInNewPane, + parameters: parameters, + supportPopover: false, + })]; case 5: _a.sent(); view = this.app.workspace.getActiveViewOfType(obsidian.MarkdownView); @@ -4293,7 +4427,12 @@ var AdvancedURI = /** @class */ (function (_super) { return [3 /*break*/, 9]; case 6: if (!!fileIsAlreadyOpened) return [3 /*break*/, 8]; - return [4 /*yield*/, this.app.workspace.openLinkText(parameters.filepath, "", openInNewPane, this.getViewStateFromMode(parameters))]; + return [4 /*yield*/, this.open({ + file: parameters.filepath, + setting: this.settings.openFileWithoutWriteInNewPane, + parameters: parameters, + mode: parameters.line != undefined ? "source" : undefined + })]; case 7: _a.sent(); _a.label = 8; @@ -4409,8 +4548,7 @@ var AdvancedURI = /** @class */ (function (_super) { }; AdvancedURI.prototype.writeAndOpenFile = function (outputFileName, text, parameters) { return __awaiter(this, void 0, void 0, function () { - var file, parts, dir, base64regex, fileIsAlreadyOpened_1; - var _this = this; + var file, parts, dir, base64regex; return __generator(this, function (_a) { switch (_a.label) { case 0: @@ -4440,30 +4578,80 @@ var AdvancedURI = /** @class */ (function (_super) { _a.sent(); _a.label = 8; case 8: - if (!this.settings.openFileOnWrite) return [3 /*break*/, 11]; + this.openExistingFileAndSetCursor(outputFileName, parameters); + return [2 /*return*/, this.app.vault.getAbstractFileByPath(outputFileName)]; + } + }); + }); + }; + AdvancedURI.prototype.openExistingFileAndSetCursor = function (file, parameters) { + return __awaiter(this, void 0, void 0, function () { + var fileIsAlreadyOpened_1; + var _this = this; + return __generator(this, function (_a) { + switch (_a.label) { + case 0: + if (!this.settings.openFileOnWrite) return [3 /*break*/, 3]; fileIsAlreadyOpened_1 = false; this.app.workspace.iterateAllLeaves(function (leaf) { var _a; - if (((_a = leaf.view.file) === null || _a === void 0 ? void 0 : _a.path) === outputFileName) { + if (((_a = leaf.view.file) === null || _a === void 0 ? void 0 : _a.path) === file) { fileIsAlreadyOpened_1 = true; - _this.app.workspace.setActiveLeaf(leaf, true, true); + _this.app.workspace.setActiveLeaf(leaf, { focus: true }); } }); - if (!!fileIsAlreadyOpened_1) return [3 /*break*/, 10]; - return [4 /*yield*/, this.app.workspace.openLinkText(outputFileName, "", parameters.newpane !== undefined ? parameters.newpane == "true" : this.settings.openFileOnWriteInNewPane, this.getViewStateFromMode(parameters))]; - case 9: + if (!!fileIsAlreadyOpened_1) return [3 /*break*/, 2]; + return [4 /*yield*/, this.open({ file: file, setting: this.settings.openFileOnWriteInNewPane, parameters: parameters })]; + case 1: _a.sent(); - _a.label = 10; - case 10: + _a.label = 2; + case 2: if (parameters.line != undefined) { this.setCursorInLine(parameters.line); } - _a.label = 11; - case 11: return [2 /*return*/, this.app.vault.getAbstractFileByPath(outputFileName)]; + _a.label = 3; + case 3: return [2 /*return*/]; } }); }); }; + AdvancedURI.prototype.open = function (_a) { + var _this = this; + var file = _a.file, setting = _a.setting, parameters = _a.parameters, supportPopover = _a.supportPopover, mode = _a.mode; + if (parameters.openmode == "popover" && (supportPopover !== null && supportPopover !== void 0 ? supportPopover : true)) { + var hoverEditor = this.app.plugins.plugins["obsidian-hover-editor"]; + if (!hoverEditor) { + new obsidian.Notice("Cannot find Workspaces plugin. Please file an issue."); + this.failure(parameters); + } + var leaf_1 = hoverEditor.spawnPopover(undefined, function () { + _this.app.workspace.setActiveLeaf(leaf_1, { focus: true }); + }); + var tfile = file instanceof obsidian.TFile ? file : this.app.vault.getAbstractFileByPath(file); + leaf_1.openFile(tfile); + } + else { + var openMode = setting; + if (parameters.newpane !== undefined) { + openMode = parameters.newpane == "true"; + } + if (parameters.openmode !== undefined) { + if (parameters.openmode == "true" || parameters.openmode == "false") { + openMode = parameters.openmode == "true"; + } + else if (parameters.openmode == "popover") { + openMode = false; + } + else { + openMode = parameters.openmode; + } + } + if (openMode == "silent") { + return; + } + return this.app.workspace.openLinkText(file instanceof obsidian.TFile ? file.path : file, "", openMode, mode != undefined ? { state: { mode: mode } } : this.getViewStateFromMode(parameters)); + } + }; AdvancedURI.prototype.getEndAndBeginningOfHeading = function (file, heading) { var _a, _b; var cache = this.app.metadataCache.getFileCache(file); @@ -4516,6 +4704,11 @@ var AdvancedURI = /** @class */ (function (_super) { var view = this.app.workspace.getActiveViewOfType(obsidian.MarkdownView); if (!view) return; + var viewState = view.leaf.getViewState(); + if (viewState.state.mode !== "source") { + viewState.state.mode = "source"; + view.leaf.setViewState(viewState); + } var line = Math.min(rawLine - 1, view.editor.lineCount() - 1); view.editor.focus(); view.editor.setCursor({ line: line, ch: view.editor.getLine(line).length }); @@ -4634,7 +4827,8 @@ var AdvancedURI = /** @class */ (function (_super) { suffix = ""; file = this.app.vault.getAbstractFileByPath(parameters.filepath); if (!(this.settings.useUID && file instanceof obsidian.TFile)) return [3 /*break*/, 2]; - parameters.filepath = undefined; + if (!this.settings.addFilepathWhenUsingUID) + parameters.filepath = undefined; _a = parameters; return [4 /*yield*/, this.getUIDFromFile(file)]; case 1: @@ -4772,4 +4966,4 @@ var AdvancedURI = /** @class */ (function (_super) { }(obsidian.Plugin)); module.exports = AdvancedURI; -//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWFpbi5qcyIsInNvdXJjZXMiOlsibm9kZV9tb2R1bGVzL3RzbGliL3RzbGliLmVzNi5qcyIsIm5vZGVfbW9kdWxlcy9mZWF0aGVyLWljb25zL2Rpc3QvZmVhdGhlci5qcyIsIm5vZGVfbW9kdWxlcy9vYnNpZGlhbi1jb21tdW5pdHktbGliL2Rpc3QvdXRpbHMuanMiLCJub2RlX21vZHVsZXMvb2JzaWRpYW4tZGFpbHktbm90ZXMtaW50ZXJmYWNlL2Rpc3QvbWFpbi5qcyIsIm5vZGVfbW9kdWxlcy91dWlkL2Rpc3QvZXNtLWJyb3dzZXIvcm5nLmpzIiwibm9kZV9tb2R1bGVzL3V1aWQvZGlzdC9lc20tYnJvd3Nlci9yZWdleC5qcyIsIm5vZGVfbW9kdWxlcy91dWlkL2Rpc3QvZXNtLWJyb3dzZXIvdmFsaWRhdGUuanMiLCJub2RlX21vZHVsZXMvdXVpZC9kaXN0L2VzbS1icm93c2VyL3N0cmluZ2lmeS5qcyIsIm5vZGVfbW9kdWxlcy91dWlkL2Rpc3QvZXNtLWJyb3dzZXIvdjQuanMiLCJzcmMvZGFpbHlfbm90ZV91dGlscy50cyIsInNyYy9tb2RhbHMvY29tbWFuZF9tb2RhbC50cyIsInNyYy9tb2RhbHMvZW50ZXJfZGF0YV9tb2RhbC50cyIsInNyYy9tb2RhbHMvZmlsZV9tb2RhbC50cyIsInNyYy9tb2RhbHMvcmVwbGFjZV9tb2RhbC50cyIsInNyYy9tb2RhbHMvc2VhcmNoX21vZGFsLnRzIiwic3Jj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duID0gZnVuY3Rpb24oKSB7XHJcbiAgICBfX2Fzc2lnbiA9IE9iamVjdC5hc3NpZ24gfHwgZnVuY3Rpb24gX19hc3NpZ24odCkge1xyXG4gICAgICAgIGZvciAodmFyIHMsIGkgPSAxLCBuID0gYXJndW1lbnRzLmxlbmd0aDsgaSA8IG47IGkrKykge1xyXG4gICAgICAgICAgICBzID0gYXJndW1lbnRzW2ldO1xyXG4gICAgICAgICAgICBmb3IgKHZhciBwIGluIHMpIGlmIChPYmplY3QucHJvdG90eXBlLmhhc093blByb3BlcnR5LmNhbGwocywgcCkpIHRbcF0gPSBzW3BdO1xyXG4gICAgICAgIH1cclxuICAgICAgICByZXR1cm4gdDtcclxuICAgIH1cclxuICAgIHJldHVybiBfX2Fzc2lnbi5hcHBseSh0aGlzLCBhcmd1bWVudHMpO1xyXG59XHJcblxyXG5leHBvcnQgZnVuY3Rpb24gX19yZXN0KHMsIGUpIHtcclxuICAgIHZhciB0ID0ge307XHJcbiAgICBmb3IgKHZhciBwIGluIHMpIGlmIChPYmplY3QucHJvdG90eXBlLmhhc093blByb3BlcnR5LmNhbGwocywgcCkgJiYgZS5pbmRleE9mKHApIDwgMClcclxuICAgICAgICB0W3BdID0gc1twXTtcclxuICAgIGlmIChzICE9IG51bGwgJiYgdHlwZW9mIE9iamVjdC5nZXRPd25Qcm9wZXJ0eVN5bWJvbHMgPT09IFwiZnVuY3Rpb25cIilcclxuICAgICAgICBmb3IgKHZhciBpID0gMCwgcCA9IE9iamVjdC5nZXRPd25Qcm9wZXJ0eVN5bWJvbHMocyk7IGkgPCBwLmxlbmd0aDsgaSsrKSB7XHJcbiAgICAgICAgICAgIGlmIChlLmluZGV4T2YocFtpXSkgPCAwICYmIE9iamVjdC5wcm90b3R5cGUucHJvcGVydHlJc0VudW1lcmFibGUuY2FsbChzLCBwW2ldKSlcclxuICAgICAgICAgICAgICAgIHRbcFtpXV0gPSBzW3BbaV1dO1xyXG4gICAgICAgIH1cclxuICAgIHJldHVybiB0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BjYXNlIDE6IHQgPSBvcDsgYnJlYWs7XHJcbiAgICAgICAgICAgICAgICBjYXNlIDQ6IF8ubGFiZWwrKzsgcmV0dXJuIHsgdmFsdWU6IG9wWzFdLCBkb25lOiBmYWxzZSB9O1xyXG4gICAgICAgICAgICAgICAgY2FzZSA1OiBfLmxhYmVsKys7IHkgPSBvcFsxXTsgb3AgPSBbMF07IGNvbnRpbnVlO1xyXG4gICAgICAgICAgICAgICAgY2FzZSA3OiBvcCA9IF8ub3BzLnBvcCgpOyBfLnRyeXMucG9wKCk7IGNvbnRpbnVlO1xyXG4gICAgICAgICAgICAgICAgZGVmYXVsdDpcclxuICAgICAgICAgICAgICAgICAgICBpZiAoISh0ID0gXy50cnlzLCB0ID0gdC5sZW5ndGggPiAwICYmIHRbdC5sZW5ndGggLSAxXSkgJiYgKG9wWzBdID09PSA2IHx8IG9wWzBdID09PSAyKSkgeyBfID0gMDsgY29udGludWU7IH1cclxuICAgICAgICAgICAgICAgICAgICBpZiAob3BbMF0gPT09IDMgJiYgKCF0IHx8IChvcFsxXSA+IHRbMF0gJiYgb3BbMV0gPCB0WzNdKSkpIHsgXy5sYWJlbCA9IG9wWzFdOyBicmVhazsgfVxyXG4gICAgICAgICAgICAgICAgICAgIGlmIChvcFswXSA9PT0gNiAmJiBfLmxhYmVsIDwgdFsxXSkgeyBfLmxhYmVsID0gdFsxXTsgdCA9IG9wOyBicmVhazsgfVxyXG4gICAgICAgICAgICAgICAgICAgIGlmICh0ICYmIF8ubGFiZWwgPCB0WzJdKSB7IF8ubGFiZWwgPSB0WzJdOyBfLm9wcy5wdXNoKG9wKTsgYnJlYWs7IH1cclxuICAgICAgICAgICAgICAgICAgICBpZiAodFsyXSkgXy5vcHMucG9wKCk7XHJcbiAgICAgICAgICAgICAgICAgICAgXy50cnlzLnBvcCgpOyBjb250aW51ZTtcclxuICAgICAgICAgICAgfVxyXG4gICAgICAgICAgICBvcCA9IGJvZHkuY2FsbCh0aGlzQXJnLCBfKTtcclx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cbi8qISoqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqISpcXFxuICAhKioqIC4vbm9kZV9tb2R1bGVzL2NvcmUtanMvaW50ZXJuYWxzL2FuLW9iamVjdC5qcyAqKiohXG4gIFxcKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKiovXG4vKiEgbm8gc3RhdGljIGV4cG9ydHMgZm91bmQgKi9cbi8qKiovIChmdW5jdGlvbihtb2R1bGUsIGV4cG9ydHMsIF9fd2VicGFja19yZXF1aXJlX18pIHtcblxudmFyIGlzT2JqZWN0ID0gX193ZWJwYWNrX3JlcXVpcmVfXygvKiEgLi4vaW50ZXJuYWxzL2lzLW9iamVjdCAqLyBcIi4vbm9kZV9tb2R1bGVzL2NvcmUtanMvaW50ZXJuYWxzL2lzLW9iamVjdC5qc1wiKTtcblxubW9kdWxlLmV4cG9ydHMgPSBmdW5jdGlvbiAoaXQpIHtcbiAgaWYgKCFpc09iamVjdChpdCkpIHtcbiAgICB0aHJvdyBUeXBlRXJyb3IoU3RyaW5nKGl0KSArICcgaXMgbm90IGFuIG9iamVjdCcpO1xuICB9IHJldHVybiBpdDtcbn07XG5cblxuLyoqKi8gfSksXG5cbi8qKiovIFwiLi9ub2RlX21vZHVsZXMvY29yZS1qcy9pbnRlcm5hbHMvYXJyYXktZnJvbS5qc1wiOlxuLyohKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqISpcXFxuICAhKioqIC4vbm9kZV9tb2R1bGVzL2NvcmUtanMvaW50ZXJuYWxzL2FycmF5LWZyb20uanMgKioqIVxuICBcXCoqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKi9cbi8qISBubyBzdGF0aWMgZXhwb3J0cyBmb3VuZCAqL1xuLyoqKi8gKGZ1bmN0aW9uKG1vZHVsZSwgZXhwb3J0cywgX193ZWJwYWNrX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m4gIUlTX0lOQ0xVREVTICYmIC0xO1xuICB9O1xufTtcblxuXG4vKioqLyB9KSxcblxuLyoqKi8gXCIuL25vZGVfbW9kdWxlcy9jb3JlLWpzL2ludGVybmFscy9iaW5kLWNvbnRleHQuanNcIjpcbi8qISoqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqISpcXFxuICAhKioqIC4vbm9kZV9tb2R1bGVzL2NvcmUtanMvaW50ZXJuYWxzL2JpbmQtY29udGV4dC5qcyAqKiohXG4gIFxcKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKiovXG4vKiEgbm8gc3RhdGljIGV4cG9ydHMgZm91bmQgKi9cbi8qKiovIChmdW5jdGlvbihtb2R1bGUsIGV4cG9ydHMsIF9fd2VicGFja19yZXF1aXJlX18pIHtcblxudmFyIGFGdW5jdGlvbiA9IF9fd2VicGFja19yZXF1aXJlX18oLyohIC4uL2ludGVybmFscy9hLWZ1bmN0aW9uICovIFwiLi9ub2RlX21vZHVsZXMvY29yZS1qcy9pbnRlcm5hbHMvYS1mdW5jdGlvbi5qc1wiKTtcblxuLy8gb3B0aW9uYWwgLyBzaW1wbGUgY29udGV4dCBiaW5kaW5nXG5tb2R1bGUuZXhwb3J0cyA9IGZ1bmN0aW9uIChmbiwgdGhhdCwgbGVuZ3RoKSB7XG4gIGFGdW5jdGlvbihmbik7XG4gIGlmICh0aGF0ID09PSB1bmRlZmluZWQpIHJldHVybiBmbjtcbiAgc3dpdGNoIChsZW5ndGgpIHtcbiAgICBjYXNlIDA6IHJldHVybiBmdW5jdGlvbiAoKSB7XG4gICAgICByZXR1cm4gZm4uY2FsbCh0aGF0KTtcbiAgICB9O1xuICAgIGNhc2UgMTogcmV0dXJuIGZ1bmN0aW9uIChhKSB7XG4gICAgICByZXR1cm4gZm4uY2FsbCh0aGF0LCBhKTtcbiAgICB9O1xuICAgIGNhc2UgMjogcmV0dXJuIGZ1bmN0aW9uIChhLCBiKSB7XG4gICAgICByZXR1cm4gZm4uY2FsbCh0aGF0LCBhLCBiKTtcbiAgICB9O1xuICAgIGNhc2UgMzogcmV0dXJuIGZ1bmN0aW9uIChhLCBiLCBjKSB7XG4gICAgICByZXR1cm4gZm4uY2FsbCh0aGF0LCBhLCBiLCBjKTtcbiAgICB9O1xuICB9XG4gIHJldHVybiBmdW5jdGlvbiAoLyogLi4uYXJncyAqLykge1xuICAgIHJldHVybiBmbi5hcHBseSh0aGF0LCBhcmd1bWVudHMpO1xuICB9O1xufTtcblxuXG4vKioqLyB9KSxcblxuLyoqKi8gXCIuL25vZGVfbW9kdWxlcy9jb3JlLWpzL2ludGVybmFscy9jYWxsLXdpdGgtc2FmZS1pdGVyYXRpb24tY2xvc2luZy5qc1wiOlxuLyohKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKiEqXFxcbiAgISoqKiAuL25vZGVfbW9kdWxlcy9jb3JlLWpzL2ludGVybmFscy9jYWxsLXdpdGgtc2FmZS1pdGVyYXRpb24tY2xvc2luZy5qcyAqKiohXG4gIFxcKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKi9cbi8qISBubyBzdGF0aWMgZXhwb3J0cyBmb3VuZCAqL1xuLyoqKi8gKGZ1bmN0aW9uKG1vZHVsZSwgZXhwb3J0cywgX193ZWJwYWNrX3JlcXVpcmVfXykge1xuXG52YXIgYW5PYmplY3QgPSBfX3dlYnBhY2tfcmVxdWlyZV9fKC8qISAuLi9pbnRlcm5hbHMvYW4tb2JqZWN0ICovIFwiLi9ub2RlX21vZHVsZXMvY29yZS1qcy9pbnRlcm5hbHMvYW4tb2JqZWN0LmpzXCIpO1xuXG4vLyBjYWxsIHNvbWV0aGluZyBvbiBpdGVyYXRvciBzdGVwIHdpdGggc2FmZSBjbG9zaW5nIG9uIGVycm9yXG5tb2R1bGUuZXhwb3J0cyA9IGZ1bmN0aW9uIChpdGVyYXRvciwgZm4sIHZhbHVlLCBFTlRSSUVTKSB7XG4gIHRyeSB7XG4gICAgcmV0dXJuIEVOVFJJRVMgPyBmbihhbk9iamVjdCh2YWx1ZSlbMF0sIHZhbHVlWzFdKSA6IGZuKHZhbHVlKTtcbiAgLy8gNy40LjYgSXRlcmF0b3JDbG9zZShpdGVyYXRvciwgY29tcGxldGlvbilcbiAgfSBjYXRjaCAoZXJyb3IpIHtcbiAgICB2YXIgcmV0dXJuTWV0aG9kID0gaXRlcmF0b3JbJ3JldHVybiddO1xuICAgIGlmIChyZXR1cm5NZXRob2QgIT09IHVuZGVmaW5lZCkgYW5PYmplY3QocmV0dXJuTWV0aG9kLmNhbGwoaXRlcmF0b3IpKTtcbiAgICB0aHJvdyBlcnJvcjtcbiAgfVxufTtcblxuXG4vKioqLyB9KSxcblxuLyoqKi8gXCIuL25vZGVfbW9kdWxlcy9jb3JlLWpzL2ludGVybmFscy9jaGVjay1jb3JyZWN0bmVzcy1vZi1pdGVyYXRpb24uanNcIjpcbi8qISoqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqISpcXFxuICAhKioqIC4vbm9kZV9tb2R1bGVzL2NvcmUtanMvaW50ZXJuYWxzL2NoZWNrLWNvcnJlY3RuZXNzLW9mLWl0ZXJhdGlvbi5qcyAqKiohXG4gIFxcKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKiovXG4vKiEgbm8gc3RhdGljIGV4cG9ydHMgZm91bmQgKi9cbi8qKiovIChmdW5jdGlvbihtb2R1bGUsIGV4cG9ydHMsIF9fd2VicGFja19yZXF1aXJlX18pIHtcblxudmFyIHdlbGxLbm93blN5bWJvbCA9IF9fd2VicGFja19yZXF1aXJlX18oLyohIC4uL2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ZnVuY3Rpb24gKCkge1xuICAgICAgICAgIHJldHVybiB7IGRvbmU6IElURVJBVElPTl9TVVBQT1JUID0gdHJ1ZSB9O1xuICAgICAgICB9XG4gICAgICB9O1xuICAgIH07XG4gICAgZXhlYyhvYmplY3QpO1xuICB9IGNhdGNoIChlcnJvcikgeyAvKiBlbXB0eSAqLyB9XG4gIHJldHVybiBJVEVSQVRJT05fU1VQUE9SVDtcbn07XG5cblxuLyoqKi8gfSksXG5cbi8qKiovIFwiLi9ub2RlX21vZHVsZXMvY29yZS1qcy9pbnRlcm5hbHMvY2xhc3NvZi1yYXcuanNcIjpcbi8qISoqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKiohKlxcXG4gICEqKiogLi9ub2RlX21vZHVsZXMvY29yZS1qcy9pbnRlcm5hbHMvY2xhc3NvZi1yYXcuanMgKioqIVxuICBcXCoqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKiovXG4vKiEgbm8gc3RhdGljIGV4cG9ydHMgZm91bmQgKi9cbi8qKiovIChmdW5jdGlvbihtb2R1bGUsIGV4cG9ydHMpIHtcblxudmFyIHRvU3RyaW5nID0ge30udG9TdHJpbmc7XG5cbm1vZHVsZS5leHBvcnRzID0gZnVuY3Rpb24gKGl0KSB7XG4gIHJldHVybiB0b1N0cmluZy5jYWxsKGl0KS5zbGljZSg4LCAtMSk7XG59O1xuXG5cbi8qKiovIH0pLFxuXG4vKioqLyBcIi4vbm9kZV9tb2R1bGVzL2NvcmUtanMvaW50ZXJuYWxzL2NsYXNzb2YuanNcIjpcbi8qISoqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKiEqXFxcbiAgISoqKiAuL25vZGVfbW9kdWxlcy9jb3JlLWpzL2ludGVybmFscy9jbGFzc29mLmpzICoqKiFcbiAgXFwqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqK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XQgPT09IHVuZGVmaW5lZCA/ICdVbmRlZmluZWQnIDogaXQgPT09IG51bGwgPyAnTnVsbCdcbiAgICAvLyBAQHRvU3RyaW5nVGFnIGNhc2VcbiAgICA6IHR5cGVvZiAodGFnID0gdHJ5R2V0KE8gPSBPYmplY3QoaXQpLCBUT19TVFJJTkdfVEFHKSkgPT0gJ3N0cmluZycgPyB0YWdcbiAgICAvLyBidWlsdGluVGFnIGNhc2VcbiAgICA6IENPUlJFQ1RfQVJHVU1FTlRTID8gY2xhc3NvZlJhdyhPKVxuICAgIC8vIEVTMyBhcmd1bWVudHMgZmFsbGJhY2tcbiAgICA6IChyZXN1bHQgPSBjbGFzc29mUmF3KE8pKSA9PSAnT2JqZWN0JyAmJiB0eXBlb2YgTy5jYWxsZWUgPT0gJ2Z1bmN0aW9uJyA/ICdBcmd1bWVudHMnIDogcmVzdWx0O1xufTtcblxuXG4vKioqLyB9KSxcblxuLyoqKi8gXCIuL25vZGVfbW9kdWxlcy9jb3JlLWpzL2ludGVybmFscy9jb3B5LWNvbnN0cnVjdG9yLXByb3BlcnRpZXMuanNcIjpcbi8qISoqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqISpcXFxuICAhKioqIC4vbm9kZV9tb2R1bGVzL2NvcmUtanMvaW50ZXJuYWxzL2NvcHktY29uc3RydWN0b3ItcHJvcGVydGllcy5qcyAqKiohXG4gIFxcKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKiovXG4vKiEgbm8gc3RhdGljIGV4cG9ydHMgZm91bmQgKi9cbi8qKiovIChmdW5jdGlvbihtb2R1bGUsIGV4cG9ydHMsIF9fd2VicGFja19yZXF1aXJlX18pIHtcblxudmFyIGhhcyA9IF9fd2VicGFja19yZXF1aXJlX18oLyohIC4uL2ludGVybmFscy9oYXMgKi8gXCIuL25vZGVfbW9kdWxlcy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m9wZXJ0eS1kZXNjcmlwdG9yLmpzICoqKiFcbiAgXFwqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqL1xuLyohIG5vIHN0YXRpYyBleHBvcnRzIGZvdW5kICovXG4vKioqLyAoZnVuY3Rpb24obW9kdWxlLCBleHBvcnRzKSB7XG5cbm1vZHVsZS5leHBvcnRzID0gZnVuY3Rpb24gKGJpdG1hcCwgdmFsdWUpIHtcbiAgcmV0dXJuIHtcbiAgICBlbnVtZXJhYmxlOiAhKGJpdG1hcCAmIDEpLFxuICAgIGNvbmZpZ3VyYWJsZTogIShiaXRtYXAgJiAyKSxcbiAgICB3cml0YWJsZTogIShiaXRtYXAgJiA0KSxcbiAgICB2YWx1ZTogdmFsdWVcbiAgfTtcbn07XG5cblxuLyoqKi8gfSksXG5cbi8qKiovIFwiLi9ub2RlX21vZHVsZXMvY29yZS1qcy9pbnRlcm5hbHMvY3JlYXRlLXByb3BlcnR5LmpzXCI6XG4vKiEqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKiEqXFxcbiAgISoqKiAuL25vZGVfbW9kdWxlcy9jb3JlLWpzL2ludGVybmFscy9jcmVhdGUtcHJvcGVydHkuanMgKioqIVxuICBcXCoqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqL1xuLyohIG5vIHN0YXRpYyBleHBvcnRzIGZvdW5kICovXG4vKioqLyAoZnVuY3Rpb24obW9kdWxlLCBleHBvcnRzLCBfX3dlYnBhY2tfcmVxdWlyZV9fKSB7XG5cblwidXNlIHN0cmljdFwiO1xuXG52YXIgdG9QcmltaXRpdmUgPSBfX3dlYnBhY2tfcmVxdWlyZV9fKC8qISAuLi9pbnRlcm5hbHMvdG8tcHJpbWl0aXZlICovIFwiLi9ub2RlX21vZHVsZXMvY29yZS1qcy9pbnRlcm5hbHMv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ZHVsZXMvY29yZS1qcy9pbnRlcm5hbHMvZW51bS1idWcta2V5cy5qc1wiOlxuLyohKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqISpcXFxuICAhKioqIC4vbm9kZV9tb2R1bGVzL2NvcmUtanMvaW50ZXJuYWxzL2VudW0tYnVnLWtleXMuanMgKioqIVxuICBcXCoqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKi9cbi8qISBubyBzdGF0aWMgZXhwb3J0cyBmb3VuZCAqL1xuLyoqKi8gKGZ1bmN0aW9uKG1vZHVsZSwgZXhwb3J0cykge1xuXG4vLyBJRTgtIGRvbid0IGVudW0gYnVnIGtleXNcbm1vZHVsZS5leHBvcnRzID0gW1xuICAnY29uc3RydWN0b3InLFxuICAnaGFzT3duUHJvcGVydHknLFxuICAnaXNQcm90b3R5cGVPZicsXG4gICdwcm9wZXJ0eUlzRW51bWVyYWJsZScsXG4gICd0b0xvY2FsZVN0cmluZycsXG4gICd0b1N0cmluZycsXG4gICd2YWx1ZU9mJ1xuXTtcblxuXG4vKioqLyB9KSxcblxuLyoqKi8gXCIuL25vZGVfbW9kdWxlcy9jb3JlLWpzL2ludGVybmFscy9leHBvcnQuanNcIjpcbi8qISoqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqISpcXFxuICAhKioqIC4vbm9kZV9tb2R1bGVzL2NvcmUtanMvaW50ZXJuYWxzL2V4cG9ydC5qcyAqKiohXG4gIFxcKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKiovXG4vKiEgbm8gc3RhdGljIGV4cG9ydHMgZm91bmQgKi9cbi8qKiovIChmdW5jdGlvbihtb2R1bGUsIGV4cG9ydHMsIF9fd2VicGFja19yZXF1aXJlX18pIHtcblxudmFyIGdsb2JhbCA9IF9fd2VicGFja19yZXF1aXJlX18oLyohIC4uL2ludG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tcblxubW9kdWxlLmV4cG9ydHMgPSBmdW5jdGlvbiAoZXhlYykge1xuICB0cnkge1xuICAgIHJldHVybiAhIWV4ZWMoKTtcbiAgfSBjYXRjaCAoZXJyb3IpIHtcbiAgICByZXR1cm4gdHJ1ZTtcbiAgfVxufTtcblxuXG4vKioqLyB9KSxcblxuLyoqKi8gXCIuL25vZGVfbW9kdWxlcy9jb3JlLWpzL2ludGVybmFscy9mdW5jdGlvbi10by1zdHJpbmcuanNcIjpcbi8qISoqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqISpcXFxuICAhKioqIC4vbm9kZV9tb2R1bGVzL2NvcmUtanMvaW50ZXJuYWxzL2Z1bmN0aW9uLXRvLXN0cmluZy5qcyAqKiohXG4gIFxcKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKiovXG4vKiEgbm8gc3RhdGljIGV4cG9ydHMgZm91bmQgKi9cbi8qKiovIChmdW5jdGlvbihtb2R1bGUsIGV4cG9ydHMsIF9fd2VicGFja19yZXF1aXJlX18pIHtcblxudmFyIHNoYXJlZCA9IF9fd2VicGFja19yZXF1aXJlX18oLyohIC4uL2ludGVybmFscy9zaGFyZWQgKi8gXCIuL25vZGVfbW9kdWxlcy9jb3JlLWpzL2ludGVybmFscy9zaGFyZWQuanNcIik7XG5cbm1vZHVsZS5leHBvcnRzID0gc2hhcmVkKCduYXRpdmUtZnVuY3Rpb24tdG8tc3RyaW5nJywgRnVuY3Rpb24udG9TdHJpbmcpO1xuXG5cbi8qKiovIH0pLFxuXG4vKioqLyBcIi4vbm9kZV9tb2R1bGVzL2NvcmUtanMvaW50ZXJuYWxzL2dldC1pdGVyYXRvci1tZXRob2QuanNcIjpcbi8qISoqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKiEqXFxcbiAgISoqKiAuL25vZGVfbW9k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UNUSU9OICovfS5jYWxsKHRoaXMsIF9fd2VicGFja19yZXF1aXJlX18oLyohIC4vLi4vLi4vd2VicGFjay9idWlsZGluL2dsb2JhbC5qcyAqLyBcIi4vbm9kZV9tb2R1bGVzL3dlYnBhY2svYnVpbGRpbi9nbG9iYWwuanNcIikpKVxuXG4vKioqLyB9KSxcblxuLyoqKi8gXCIuL25vZGVfbW9kdWxlcy9jb3JlLWpzL2ludGVybmFscy9oYXMuanNcIjpcbi8qISoqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqISpcXFxuICAhKioqIC4vbm9kZV9tb2R1bGVzL2NvcmUtanMvaW50ZXJuYWxzL2hhcy5qcyAqKiohXG4gIFxcKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKiovXG4vKiEgbm8gc3RhdGljIGV4cG9ydHMgZm91bmQgKi9cbi8qKiovIChmdW5jdGlvbihtb2R1bGUsIGV4cG9ydHMpIHtcblxudmFyIGhhc093blByb3BlcnR5ID0ge30uaGFzT3duUHJvcGVydHk7XG5cbm1vZHVsZS5leHBvcnRzID0gZnVuY3Rpb24gKGl0LCBrZXkpIHtcbiAgcmV0dXJuIGhhc093blByb3BlcnR5LmNhbGwoaXQsIGtleSk7XG59O1xuXG5cbi8qKiovIH0pLFxuXG4vKioqLyBcIi4vbm9kZV9tb2R1bGVzL2NvcmUtanMvaW50ZXJuYWxzL2hpZGRlbi1rZXlzLmpzXCI6XG4vKiEqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqISpcXFxuICAhKioqIC4vbm9kZV9tb2R1bGVzL2NvcmUtanMvaW50ZXJuYWxzL2hpZGRlbi1rZXlzLmpzICoqKiFcbiAgXFwqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqL1xuLyohIG5vIHN0YXRpYyBleHBvcnRzIGZvdW5kICovXG4vKioqLyAoZnVuY3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9mIGl0ID09PSAnZnVuY3Rpb24nO1xufTtcblxuXG4vKioqLyB9KSxcblxuLyoqKi8gXCIuL25vZGVfbW9kdWxlcy9jb3JlLWpzL2ludGVybmFscy9pcy1wdXJlLmpzXCI6XG4vKiEqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKiohKlxcXG4gICEqKiogLi9ub2RlX21vZHVsZXMvY29yZS1qcy9pbnRlcm5hbHMvaXMtcHVyZS5qcyAqKiohXG4gIFxcKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqL1xuLyohIG5vIHN0YXRpYyBleHBvcnRzIGZvdW5kICovXG4vKioqLyAoZnVuY3Rpb24obW9kdWxlLCBleHBvcnRzKSB7XG5cbm1vZHVsZS5leHBvcnRzID0gZmFsc2U7XG5cblxuLyoqKi8gfSksXG5cbi8qKiovIFwiLi9ub2RlX21vZHVsZXMvY29yZS1qcy9pbnRlcm5hbHMvaXRlcmF0b3JzLWNvcmUuanNcIjpcbi8qISoqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKiohKlxcXG4gICEqKiogLi9ub2RlX21vZHVsZXMvY29yZS1qcy9pbnRlcm5hbHMvaXRlcmF0b3JzLWNvcmUuanMgKioqIVxuICBcXCoqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKiovXG4vKiEgbm8gc3RhdGljIGV4cG9ydHMgZm91bmQgKi9cbi8qKiovIChmdW5jdGlvbihtb2R1bGUsIGV4cG9ydHMsIF9fd2VicGFja19yZXF1aXJlX18pIHtcblxuXCJ1c2Ugc3RyaWN0XCI7XG5cbnZhciBnZXRQcm90b3R5cGVPZiA9IF9fd2VicGFja19yZXF1aXJlX18oLyohIC4uL2ludGVybmFscy9vYmplY3QtZ2V0LXByb3RvdHlwZS1vZiAqLyBcIi4vbm9kZV9tb2R1bGVzL2NvcmUtanM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ioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKiohKlxcXG4gICEqKiogLi9ub2RlX21vZHVsZXMvY29yZS1qcy9pbnRlcm5hbHMvaXRlcmF0b3JzLmpzICoqKiFcbiAgXFwqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKi9cbi8qISBubyBzdGF0aWMgZXhwb3J0cyBmb3VuZCAqL1xuLyoqKi8gKGZ1bmN0aW9uKG1vZHVsZSwgZXhwb3J0cykge1xuXG5tb2R1bGUuZXhwb3J0cyA9IHt9O1xuXG5cbi8qKiovIH0pLFxuXG4vKioqLyBcIi4vbm9kZV9tb2R1bGVzL2NvcmUtanMvaW50ZXJuYWxzL25hdGl2ZS1zeW1ib2wuanNcIjpcbi8qISoqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKiEqXFxcbiAgISoqKiAuL25vZGVfbW9kdWxlcy9jb3JlLWpzL2ludGVybmFscy9uYXRpdmUtc3ltYm9sLmpzICoqKiFcbiAgXFwqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKiovXG4vKiEgbm8gc3RhdGljIGV4cG9ydHMgZm91bmQgKi9cbi8qKiovIChmdW5jdGlvbihtb2R1bGUsIGV4cG9ydHMsIF9fd2VicGFja19yZXF1aXJlX18pIHtcblxudmFyIGZhaWxzID0gX193ZWJwYWNrX3JlcXVpcmVfXygvKiEgLi4vaW50ZXJuYWxzL2ZhaWxzICovIFwiLi9ub2RlX21vZHVsZXMvY29yZS1qcy9pbnRlcm5hbHMvZmFpbHMuanNcIik7XG5cbm1vZHVsZS5leHBvcnRzID0gISFPYmplY3QuZ2V0T3duUHJvcGVydHlTeW1ib2xzICYmICFmYWlscyhmdW5jdGlvbiAoKSB7XG4gIC8vIENocm9tZSAzOCBTeW1ib2wgaGFzIGluY29ycmVjdCB0b1N0cmluZyBjb252ZXJzaW9uXG4gIC8vIGVzbGludC1kaXNhYmxlLW5leHQtbGluZSBuby11bmRlZlxuICByZXR1cm4gIVN0cmluZyhTeW1ib2woKSk7XG59KTtcblxuXG4vKioqLyB9KSxcblxuLyoqKi8gXCIuL25vZGVfbW9kdWxlcy9jb3JlLWpzL2ludGVybmFscy9uYXRpdmUtd2Vhay1tYXAuanNcIjpcbi8qISoqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqISpcXFxuICAhKioqIC4vbm9kZV9tb2R1bGVzL2NvcmUtanMvaW50ZXJuYWxzL25hdGl2ZS13ZWFrLW1hcC5qcyAqKiohXG4gIFxcKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKiovXG4vKiEgbm8gc3RhdGljIGV4cG9ydHMgZm91bmQgKi9cbi8qKiovIChmdW5jdGlvbihtb2R1bGUsIGV4cG9ydHMsIF9fd2VicGFja19yZXF1aXJlX18pIHtcblxudmFyIGdsb2JhbCA9IF9fd2VicGFja19yZXF1aXJlX18oLyohIC4uL2ludGVybmFscy9nbG9iYWwgKi8gXCIuL25vZGVfbW9kdWxlcy9jb3JlLWpzL2ludGVybmFscy9nbG9iYWwuanNcIik7XG52YXIgbmF0aXZlRnVuY3Rpb25Ub1N0cmluZyA9IF9fd2VicGFja19yZXF1aXJlX18oLyohIC4uL2ludGVybmFscy9mdW5jdGlvbi10by1zdHJpbmcgKi8gXCIuL25vZGVfbW9kdWxlcy9jb3JlLWpzL2ludGVybmFscy9mdW5jdGlvbi10by1zdHJpbmcuanNcIik7XG5cbnZhciBXZWFrTWFwID0gZ2xvYmFsLldlYWtNYXA7XG5cbm1vZHVsZS5leHBvcnRzID0gdHlwZW9mIFdlYWtNYXAgPT09ICdmdW5jdGlvbicgJiYgL25hdGl2ZSBjb2RlLy50ZXN0KG5hdGl2ZUZ1bmN0aW9uVG9TdHJpbmcuY2FsbChXZWFrTWFwKSk7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KioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKiohKlxcXG4gICEqKiogLi9ub2RlX21vZHVsZXMvY29yZS1qcy9pbnRlcm5hbHMvb2JqZWN0LWdldC1vd24tcHJvcGVydHktc3ltYm9scy5qcyAqKiohXG4gIFxcKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqL1xuLyohIG5vIHN0YXRpYyBleHBvcnRzIGZvdW5kICovXG4vKioqLyAoZnVuY3Rpb24obW9kdWxlLCBleHBvcnRzKSB7XG5cbmV4cG9ydHMuZiA9IE9iamVjdC5nZXRPd25Qcm9wZXJ0eVN5bWJvbHM7XG5cblxuLyoqKi8gfSksXG5cbi8qKiovIFwiLi9ub2RlX21vZHVsZXMvY29yZS1qcy9pbnRlcm5hbHMvb2JqZWN0LWdldC1wcm90b3R5cGUtb2YuanNcIjpcbi8qISoqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKiohKlxcXG4gICEqKiogLi9ub2RlX21vZHVsZXMvY29yZS1qcy9pbnRlcm5hbHMvb2JqZWN0LWdldC1wcm90b3R5cGUtb2YuanMgKioqIVxuICBcXCoqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKiovXG4vKiEgbm8gc3RhdGljIGV4cG9ydHMgZm91bmQgKi9cbi8qKiovIChmdW5jdGlvbihtb2R1bGUsIGV4cG9ydHMsIF9fd2VicGFja19yZXF1aXJlX18pIHtcblxudmFyIGhhcyA9IF9fd2VicGFja19yZXF1aXJlX18oLyohIC4uL2ludGVybmFscy9oYXMgKi8gXCIuL25vZGVfbW9kdWxlcy9jb3JlLWpzL2ludGVybmFscy9oYXMuanNcIik7XG52YXIgdG9PYmplY3QgPSBfX3dlYnBhY2tfcmVxdWlyZV9fKC8qISAuLi9pbnRlcm5hbHMvdG8tb2J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0pLFxuXG4vKioqLyBcIi4vbm9kZV9tb2R1bGVzL2NvcmUtanMvaW50ZXJuYWxzL29iamVjdC1rZXlzLWludGVybmFsLmpzXCI6XG4vKiEqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqISpcXFxuICAhKioqIC4vbm9kZV9tb2R1bGVzL2NvcmUtanMvaW50ZXJuYWxzL29iamVjdC1rZXlzLWludGVybmFsLmpzICoqKiFcbiAgXFwqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqL1xuLyohIG5vIHN0YXRpYyBleHBvcnRzIGZvdW5kICovXG4vKioqLyAoZnVuY3Rpb24obW9kdWxlLCBleHBvcnRzLCBfX3dlYnBhY2tfcmVxdWlyZV9fKSB7XG5cbnZhciBoYXMgPSBfX3dlYnBhY2tfcmVxdWlyZV9fKC8qISAuLi9pbnRlcm5hbHMvaGFzICovIFwiLi9ub2RlX21vZHVsZXMvY29yZS1qcy9pbnRlcm5hbHMvaGFzLmpzXCIpO1xudmFyIHRvSW5kZXhlZE9iamVjdCA9IF9fd2VicGFja19yZXF1aXJlX18oLyohIC4uL2ludGVybmFscy90by1pbmRleGVkLW9iamVjdCAqLyBcIi4vbm9kZV9tb2R1bGVzL2NvcmUtanMvaW50ZXJuYWxzL3RvLWluZGV4ZWQtb2JqZWN0LmpzXCIpO1xudmFyIGFycmF5SW5jbHVkZXMgPSBfX3dlYnBhY2tfcmVxdWlyZV9fKC8qISAuLi9pbnRlcm5hbHMvYXJyYXktaW5jbHVkZXMgKi8gXCIuL25vZGVfbW9kdWxlcy9jb3JlLWpzL2ludGVybmFscy9hcnJheS1pbmNsdWRlcy5qc1wiKTtcbnZhciBoaWRkZW5LZXlzID0gX193ZWJwYWNrX3JlcXVpcmVfXygvKiEgLi4vaW50ZXJuYWxzL2hpZGRlbi1rZXlzICovIFwiLi9ub2RlX21vZHVsZXMvY29yZS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hY2tfcmVxdWlyZV9fKC8qISAuLi9pbnRlcm5hbHMvb2JqZWN0LWtleXMtaW50ZXJuYWwgKi8gXCIuL25vZGVfbW9kdWxlcy9jb3JlLWpzL2ludGVybmFscy9vYmplY3Qta2V5cy1pbnRlcm5hbC5qc1wiKTtcbnZhciBlbnVtQnVnS2V5cyA9IF9fd2VicGFja19yZXF1aXJlX18oLyohIC4uL2ludGVybmFscy9lbnVtLWJ1Zy1rZXlzICovIFwiLi9ub2RlX21vZHVsZXMvY29yZS1qcy9pbnRlcm5hbHMvZW51bS1idWcta2V5cy5qc1wiKTtcblxuLy8gMTkuMS4yLjE0IC8gMTUuMi4zLjE0IE9iamVjdC5rZXlzKE8pXG5tb2R1bGUuZXhwb3J0cyA9IE9iamVjdC5rZXlzIHx8IGZ1bmN0aW9uIGtleXMoTykge1xuICByZXR1cm4gaW50ZXJuYWxPYmplY3RLZXlzKE8sIGVudW1CdWdLZXlzKTtcbn07XG5cblxuLyoqKi8gfSksXG5cbi8qKiovIFwiLi9ub2RlX21vZHVsZXMvY29yZS1qcy9pbnRlcm5hbHMvb2JqZWN0LXByb3BlcnR5LWlzLWVudW1lcmFibGUuanNcIjpcbi8qISoqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKiohKlxcXG4gICEqKiogLi9ub2RlX21vZHVsZXMvY29yZS1qcy9pbnRlcm5hbHMvb2JqZWN0LXByb3BlcnR5LWlzLWVudW1lcmFibGUuanMgKioqIVxuICBcXCoqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKiovXG4vKiEgbm8gc3RhdGljIGV4cG9ydHMgZm91bmQgKi9cbi8qKiovIChmdW5jdGlvbihtb2R1bGUsIGV4cG9ydHMsIF9fd2VicGFja19yZXF1aXJlX18pIHtcblxuXCJ1c2Ugc3RyaWN0XCI7XG5cbnZhciBuYXRpdmV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IF9fd2VicGFja19yZXF1aXJlX18oLyohIC4uL2ludGVybmFscy9nbG9iYWwgKi8gXCIuL25vZGVfbW9kdWxlcy9jb3JlLWpzL2ludGVybmFscy9nbG9iYWwuanNcIik7XG5cblxuLyoqKi8gfSksXG5cbi8qKiovIFwiLi9ub2RlX21vZHVsZXMvY29yZS1qcy9pbnRlcm5hbHMvcmVkZWZpbmUuanNcIjpcbi8qISoqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKiohKlxcXG4gICEqKiogLi9ub2RlX21vZHVsZXMvY29yZS1qcy9pbnRlcm5hbHMvcmVkZWZpbmUuanMgKioqIVxuICBcXCoqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKiovXG4vKiEgbm8gc3RhdGljIGV4cG9ydHMgZm91bmQgKi9cbi8qKiovIChmdW5jdGlvbihtb2R1bGUsIGV4cG9ydHMsIF9fd2VicGFja19yZXF1aXJlX18pIHtcblxudmFyIGdsb2JhbCA9IF9fd2VicGFja19yZXF1aXJlX18oLyohIC4uL2ludGVybmFscy9nbG9iYWwgKi8gXCIuL25vZGVfbW9kdWxlcy9jb3JlLWpzL2ludGVybmFscy9nbG9iYWwuanNcIik7XG52YXIgc2hhcmVkID0gX193ZWJwYWNrX3JlcXVpcmVfXygvKiEgLi4vaW50ZXJuYWxzL3NoYXJlZCAqLyBcIi4vbm9kZV9tb2R1bGVzL2NvcmUtanMvaW50ZXJuYWxzL3NoYXJlZC5qc1wiKTtcbnZhciBoaWRlID0gX193ZWJwYWNrX3JlcXVpcmVfXygvKiEgLi4vaW50ZXJuYWxzL2hpZGUgKi8gXCIuL25vZGVfbW9kdWxlcy9jb3JlLWpzL2ludGVybmFscy9oaWRlLmpzXCIpO1xudmFyIGhhcyA9IF9fd2VicGFja19yZXF1aXJlX18oLyohIC4uL2ludGVybmFscy9oYXMgKi8gXCIuL25vZGVfbW9kdWxlcy9jb3JlLWpzL2ludGVybmFsc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aW9uJyAmJiBnZXRJbnRlcm5hbFN0YXRlKHRoaXMpLnNvdXJjZSB8fCBuYXRpdmVGdW5jdGlvblRvU3RyaW5nLmNhbGwodGhpcyk7XG59KTtcblxuXG4vKioqLyB9KSxcblxuLyoqKi8gXCIuL25vZGVfbW9kdWxlcy9jb3JlLWpzL2ludGVybmFscy9yZXF1aXJlLW9iamVjdC1jb2VyY2libGUuanNcIjpcbi8qISoqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqISpcXFxuICAhKioqIC4vbm9kZV9tb2R1bGVzL2NvcmUtanMvaW50ZXJuYWxzL3JlcXVpcmUtb2JqZWN0LWNvZXJjaWJsZS5qcyAqKiohXG4gIFxcKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKiovXG4vKiEgbm8gc3RhdGljIGV4cG9ydHMgZm91bmQgKi9cbi8qKiovIChmdW5jdGlvbihtb2R1bGUsIGV4cG9ydHMpIHtcblxuLy8gYFJlcXVpcmVPYmplY3RDb2VyY2libGVgIGFic3RyYWN0IG9wZXJhdGlvblxuLy8gaHR0cHM6Ly90YzM5LmdpdGh1Yi5pby9lY21hMjYyLyNzZWMtcmVxdWlyZW9iamVjdGNvZXJjaWJsZVxubW9kdWxlLmV4cG9ydHMgPSBmdW5jdGlvbiAoaXQpIHtcbiAgaWYgKGl0ID09IHVuZGVmaW5lZCkgdGhyb3cgVHlwZUVycm9yKFwiQ2FuJ3QgY2FsbCBtZXRob2Qgb24gXCIgKyBpdCk7XG4gIHJldHVybiBpdDtcbn07XG5cblxuLyoqKi8gfSksXG5cbi8qKiovIFwiLi9ub2RlX21vZHVsZXMvY29yZS1qcy9pbnRlcm5hbHMvc2V0LWdsb2JhbC5qc1wiOlxuLyohKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqISpcXFxuICAhKioqIC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3NoYXJlZC1rZXkuanNcIjpcbi8qISoqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKiEqXFxcbiAgISoqKiAuL25vZGVfbW9kdWxlcy9jb3JlLWpzL2ludGVybmFscy9zaGFyZWQta2V5LmpzICoqKiFcbiAgXFwqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKiovXG4vKiEgbm8gc3RhdGljIGV4cG9ydHMgZm91bmQgKi9cbi8qKiovIChmdW5jdGlvbihtb2R1bGUsIGV4cG9ydHMsIF9fd2VicGFja19yZXF1aXJlX18pIHtcblxudmFyIHNoYXJlZCA9IF9fd2VicGFja19yZXF1aXJlX18oLyohIC4uL2ludGVybmFscy9zaGFyZWQgKi8gXCIuL25vZGVfbW9kdWxlcy9jb3JlLWpzL2ludGVybmFscy9zaGFyZWQuanNcIik7XG52YXIgdWlkID0gX193ZWJwYWNrX3JlcXVpcmVfXygvKiEgLi4vaW50ZXJuYWxzL3VpZCAqLyBcIi4vbm9kZV9tb2R1bGVzL2NvcmUtanMvaW50ZXJuYWxzL3VpZC5qc1wiKTtcblxudmFyIGtleXMgPSBzaGFyZWQoJ2tleXMnKTtcblxubW9kdWxlLmV4cG9ydHMgPSBmdW5jdGlvbiAoa2V5KSB7XG4gIHJldHVybiBrZXlzW2tleV0gfHwgKGtleXNba2V5XSA9IHVpZChrZXkpKTtcbn07XG5cblxuLyoqKi8gfSksXG5cbi8qKiovIFwiLi9ub2RlX21vZHVsZXMvY29yZS1qcy9pbnRlcm5hbHMvc2hhcmVkLmpzXCI6XG4vKiEqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKiEqXFxcbiAgISoqKiAuL25vZGVfbW9kdWxlcy9jb3JlLWpzL2ludGVybmFscy9zaGFyZWQuanMgKioqIVxuICBcXCoqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqL1xu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7XG4gIHZhciBzaXplID0gUy5sZW5ndGg7XG4gIHZhciBmaXJzdCwgc2Vjb25kO1xuICBpZiAocG9zaXRpb24gPCAwIHx8IHBvc2l0aW9uID49IHNpemUpIHJldHVybiBDT05WRVJUX1RPX1NUUklORyA/ICcnIDogdW5kZWZpbmVkO1xuICBmaXJzdCA9IFMuY2hhckNvZGVBdChwb3NpdGlvbik7XG4gIHJldHVybiBmaXJzdCA8IDB4RDgwMCB8fCBmaXJzdCA+IDB4REJGRiB8fCBwb3NpdGlvbiArIDEgPT09IHNpemVcbiAgICB8fCAoc2Vjb25kID0gUy5jaGFyQ29kZUF0KHBvc2l0aW9uICsgMSkpIDwgMHhEQzAwIHx8IHNlY29uZCA+IDB4REZGRlxuICAgICAgPyBDT05WRVJUX1RPX1NUUklORyA/IFMuY2hhckF0KHBvc2l0aW9uKSA6IGZpcnN0XG4gICAgICA6IENPTlZFUlRfVE9fU1RSSU5HID8gUy5zbGljZShwb3NpdGlvbiwgcG9zaXRpb24gKyAyKSA6IChmaXJzdCAtIDB4RDgwMCA8PCAxMCkgKyAoc2Vjb25kIC0gMHhEQzAwKSArIDB4MTAwMDA7XG59O1xuXG5cbi8qKiovIH0pLFxuXG4vKioqLyBcIi4vbm9kZV9tb2R1bGVzL2NvcmUtanMvaW50ZXJuYWxzL3RvLWFic29sdXRlLWluZGV4LmpzXCI6XG4vKiEqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqISpcXFxuICAhKioqIC4vbm9kZV9tb2R1bGVzL2NvcmUtanMvaW50ZXJuYWxzL3RvLWFic29sdXRlLWluZGV4LmpzICoqKiFcbiAgXFwqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqL1xuLyohIG5vIHN0YXRpYyBleHBvcnRzIGZvdW5kICovXG4vKioqLyAoZnVuY3Rpb24obW9kdWxlLCBleHBvcnRzLCBfX3dlYnBhY2t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2NvcmUtanMvaW50ZXJuYWxzL3ZhbGlkYXRlLXNldC1wcm90b3R5cGUtb2YtYXJndW1lbnRzLmpzXCI6XG4vKiEqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqISpcXFxuICAhKioqIC4vbm9kZV9tb2R1bGVzL2NvcmUtanMvaW50ZXJuYWxzL3ZhbGlkYXRlLXNldC1wcm90b3R5cGUtb2YtYXJndW1lbnRzLmpzICoqKiFcbiAgXFwqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqL1xuLyohIG5vIHN0YXRpYyBleHBvcnRzIGZvdW5kICovXG4vKioqLyAoZnVuY3Rpb24obW9kdWxlLCBleHBvcnRzLCBfX3dlYnBhY2tfcmVxdWlyZV9fKSB7XG5cbnZhciBpc09iamVjdCA9IF9fd2VicGFja19yZXF1aXJlX18oLyohIC4uL2ludGVybmFscy9pcy1vYmplY3QgKi8gXCIuL25vZGVfbW9kdWxlcy9jb3JlLWpzL2ludGVybmFscy9pcy1vYmplY3QuanNcIik7XG52YXIgYW5PYmplY3QgPSBfX3dlYnBhY2tfcmVxdWlyZV9fKC8qISAuLi9pbnRlcm5hbHMvYW4tb2JqZWN0ICovIFwiLi9ub2RlX21vZHVsZXMvY29yZS1qcy9pbnRlcm5hbHMvYW4tb2JqZWN0LmpzXCIpO1xuXG5tb2R1bGUuZXhwb3J0cyA9IGZ1bmN0aW9uIChPLCBwcm90bykge1xuICBhbk9iamVjdChPKTtcbiAgaWYgKCFpc09iamVjdChwcm90bykgJiYgcHJvdG8gIT09IG51bGwpIHtcbiAgICB0aHJvdyBUeXBlRXJyb3IoXCJDYW4ndCBzZXQgXCIgKyBTdHJpbmcocHJvdG8pICsgJyBhcyBhIHByb3RvdHlwZScpO1xuICB9XG59O1xuXG5cbi8qKiovIH0pLFxuXG4vKioqL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CBtb21lbnQoKS5mb3JtYXQoXCJISDptbVwiKSlcbiAgICAgICAgICAgIC5yZXBsYWNlKC97e1xccyp0aXRsZVxccyp9fS9naSwgZmlsZW5hbWUpXG4gICAgICAgICAgICAucmVwbGFjZSgve3tcXHMqKGRhdGV8dGltZSlcXHMqKChbKy1dXFxkKykoW3lxbXdkaHNdKSk/XFxzKig6Lis/KT99fS9naSwgKF8sIF90aW1lT3JEYXRlLCBjYWxjLCB0aW1lRGVsdGEsIHVuaXQsIG1vbWVudEZvcm1hdCkgPT4ge1xuICAgICAgICAgICAgY29uc3Qgbm93ID0gbW9tZW50KCk7XG4gICAgICAgICAgICBjb25zdCBjdXJyZW50RGF0ZSA9IGRhdGUuY2xvbmUoKS5zZXQoe1xuICAgICAgICAgICAgICAgIGhvdXI6IG5vdy5nZXQoXCJob3VyXCIpLFxuICAgICAgICAgICAgICAgIG1pbnV0ZTogbm93LmdldChcIm1pbnV0ZVwiKSxcbiAgICAgICAgICAgICAgICBzZWNvbmQ6IG5vdy5nZXQoXCJzZWNvbmRcIiksXG4gICAgICAgICAgICB9KTtcbiAgICAgICAgICAgIGlmIChjYWxjKSB7XG4gICAgICAgICAgICAgICAgY3VycmVudERhdGUuYWRkKHBhcnNlSW50KHRpbWVEZWx0YSwgMTApLCB1bml0KTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgIGlmIChtb21lbnRGb3JtYXQpIHtcbiAgICAgICAgICAgICAgICByZXR1cm4gY3VycmVudERhdGUuZm9ybWF0KG1vbWVudEZvcm1hdC5zdWJzdHJpbmcoMSkudHJpbSgpKTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgIHJldHVybiBjdXJyZW50RGF0ZS5mb3JtYXQoZm9ybWF0KTtcbiAgICAgICAgfSlcbiAgICAgICAgICAgIC5yZXBsYWNlKC97e1xccyp5ZXN0ZXJkYXlcXHMqfX0vZ2ksIGRhdGUuY2xvbmUoKS5zdWJ0cmFjdCgxLCBcImRheVwiKS5mb3JtY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AgICAucmVwbGFjZSgve3tcXHMqKGRhdGV8dGltZSlcXHMqKChbKy1dXFxkKykoW3lxbXdkaHNdKSk/XFxzKig6Lis/KT99fS9naSwgKF8sIF90aW1lT3JEYXRlLCBjYWxjLCB0aW1lRGVsdGEsIHVuaXQsIG1vbWVudEZvcm1hdCkgPT4ge1xuICAgICAgICAgICAgY29uc3Qgbm93ID0gd2luZG93Lm1vbWVudCgpO1xuICAgICAgICAgICAgY29uc3QgY3VycmVudERhdGUgPSBkYXRlLmNsb25lKCkuc2V0KHtcbiAgICAgICAgICAgICAgICBob3VyOiBub3cuZ2V0KFwiaG91clwiKSxcbiAgICAgICAgICAgICAgICBtaW51dGU6IG5vdy5nZXQoXCJtaW51dGVcIiksXG4gICAgICAgICAgICAgICAgc2Vjb25kOiBub3cuZ2V0KFwic2Vjb25kXCIpLFxuICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICBpZiAoY2FsYykge1xuICAgICAgICAgICAgICAgIGN1cnJlbnREYXRlLmFkZChwYXJzZUludCh0aW1lRGVsdGEsIDEwKSwgdW5pdCk7XG4gICAgICAgICAgICB9XG4gICAgICAgICAgICBpZiAobW9tZW50Rm9ybWF0KSB7XG4gICAgICAgICAgICAgICAgcmV0dXJuIGN1cnJlbnREYXRlLmZvcm1hdChtb21lbnRGb3JtYXQuc3Vic3RyaW5nKDEpLnRyaW0oKSk7XG4gICAgICAgICAgICB9XG4gICAgICAgICAgICByZXR1cm4gY3VycmVudERhdGUuZm9ybWF0KGZvcm1hdCk7XG4gICAgICAgIH0pXG4gICAgICAgICAgICAucmVwbGFjZSgve3tcXHMqdGl0bGVcXHMqfX0vZ2ksIGZpbGVuYW1lKVxuICAgICAgICAgICAgLnJlcGxhY2UoL3t7XFxzKnRpbWVcXHMqfX0vZ2ksIHdpbmRvdy5tb21lbnQoKS5mb3JtYXQoXCJISDptbVwiKSlcbiAgICAgICAgICAgIC5yZXBsYWNlKC97e1xccyooc3VuZGF5fG1vbmRheXx0dWVzZGF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gpLnNldCh7XG4gICAgICAgICAgICAgICAgaG91cjogbm93LmdldChcImhvdXJcIiksXG4gICAgICAgICAgICAgICAgbWludXRlOiBub3cuZ2V0KFwibWludXRlXCIpLFxuICAgICAgICAgICAgICAgIHNlY29uZDogbm93LmdldChcInNlY29uZFwiKSxcbiAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgaWYgKGNhbGMpIHtcbiAgICAgICAgICAgICAgICBjdXJyZW50RGF0ZS5hZGQocGFyc2VJbnQodGltZURlbHRhLCAxMCksIHVuaXQpO1xuICAgICAgICAgICAgfVxuICAgICAgICAgICAgaWYgKG1vbWVudEZvcm1hdCkge1xuICAgICAgICAgICAgICAgIHJldHVybiBjdXJyZW50RGF0ZS5mb3JtYXQobW9tZW50Rm9ybWF0LnN1YnN0cmluZygxKS50cmltKCkpO1xuICAgICAgICAgICAgfVxuICAgICAgICAgICAgcmV0dXJuIGN1cnJlbnREYXRlLmZvcm1hdChmb3JtYXQpO1xuICAgICAgICB9KVxuICAgICAgICAgICAgLnJlcGxhY2UoL3t7XFxzKmRhdGVcXHMqfX0vZ2ksIGZpbGVuYW1lKVxuICAgICAgICAgICAgLnJlcGxhY2UoL3t7XFxzKnRpbWVcXHMqfX0vZ2ksIHdpbmRvdy5tb21lbnQoKS5mb3JtYXQoXCJISDptbVwiKSlcbiAgICAgICAgICAgIC5yZXBsYWNlKC97e1xccyp0aXRsZVxccyp9fS9naSwgZmlsZW5hbWUpKTtcbiAgICAgICAgLy8gZXNsaW50LWRpc2FibGUtbmV4dC1saW5lIEB0eXBlc2NyaXB0LWVzbGludC9uby1leHBsaWNpdC1hbnlcbiAgICAgICAgd2luZG93LmFwcC5mb2xkTWFuYWdlci5zYXZlKGNyZWF0ZWRGaWxlLCBJRm9sZEluZm8pO1xuICAgICAgICByZXR1cm4gY3JlYXRlZEZpbGU7XG4gICAgfVxuICAgIGNhdGNoIChlcnIpIHtcbiAgICAgICAgY29uc29sZS5lcnJvcihgRmFpbGVkIHRvIGN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JtYWxpemVkUGF0aCA9IGF3YWl0IGdldE5vdGVQYXRoKGZvbGRlciwgZmlsZW5hbWUpO1xuICAgIHRyeSB7XG4gICAgICAgIGNvbnN0IGNyZWF0ZWRGaWxlID0gYXdhaXQgdmF1bHQuY3JlYXRlKG5vcm1hbGl6ZWRQYXRoLCB0ZW1wbGF0ZUNvbnRlbnRzXG4gICAgICAgICAgICAucmVwbGFjZSgve3tcXHMqKGRhdGV8dGltZSlcXHMqKChbKy1dXFxkKykoW3lxbXdkaHNdKSk/XFxzKig6Lis/KT99fS9naSwgKF8sIF90aW1lT3JEYXRlLCBjYWxjLCB0aW1lRGVsdGEsIHVuaXQsIG1vbWVudEZvcm1hdCkgPT4ge1xuICAgICAgICAgICAgY29uc3Qgbm93ID0gd2luZG93Lm1vbWVudCgpO1xuICAgICAgICAgICAgY29uc3QgY3VycmVudERhdGUgPSBkYXRlLmNsb25lKCkuc2V0KHtcbiAgICAgICAgICAgICAgICBob3VyOiBub3cuZ2V0KFwiaG91clwiKSxcbiAgICAgICAgICAgICAgICBtaW51dGU6IG5vdy5nZXQoXCJtaW51dGVcIiksXG4gICAgICAgICAgICAgICAgc2Vjb25kOiBub3cuZ2V0KFwic2Vjb25kXCIpLFxuICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICBpZiAoY2FsYykge1xuICAgICAgICAgICAgICAgIGN1cnJlbnREYXRlLmFkZChwYXJzZUludCh0aW1lRGVsdGEsIDEwKSwgdW5pdCk7XG4gICAgICAgICAgICB9XG4gICAgICAgICAgICBpZiAobW9tZW50Rm9ybWF0KSB7XG4gICAgICAgICAgICAgICAgcmV0dXJuIGN1cnJlbnREYXRlLmZvcm1hdChtb21lbnRGb3JtYXQuc3Vic3RyaW5nKDEpLnRyaW0oKSk7XG4gICAgICAgICAgICB9XG4gICAgICAgICAgICByZXR1cm4gY3VycmVudERhdGUuZm9ybWF0KGZvcm1hdCk7XG4gICAgICAgIH0pXG4gICAgICAgICAgICAucmVwbGFjZSgve3tcX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SA9IGBXcml0ZSBcIiR7cXVlcnl9XCJgO1xuICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgICAgICAgICAgaWYgKG1vZGUpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIGRpc3BsYXkgPSBgT3BlbiBpbiAke21vZGV9IG1vZGVgO1xuICAgICAgICAgICAgICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgICAgICAgICAgICAgZGlzcGxheSA9IGBPcGVuYDtcbiAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICBzdWdnZXN0aW9ucy5wdXNoKHtcbiAgICAgICAgICAgICAgICAgICAgZGF0YTogcXVlcnksXG4gICAgICAgICAgICAgICAgICAgIGRpc3BsYXk6IGRpc3BsYXksXG4gICAgICAgICAgICAgICAgICAgIG1vZGU6IG1vZGUsXG4gICAgICAgICAgICAgICAgICAgIGZ1bmM6ICgpID0+IHtcbiAgICAgICAgICAgICAgICAgICAgICAgIGlmICh0aGlzLmZpbGUpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB0aGlzLnBsdWdpbi5jb3B5VVJJKHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgZmlsZXBhdGg6IHRoaXMuZmlsZSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgZGF0YTogcXVlcnksXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIG1vZGU6IG1vZGUgYXMgUGFyYW1ldGVyc1tcIm1vZGVcIl1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgICAgICAgICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgdGhpcy5wbHVnaW4uY29weVVSSSh7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGRhaWx5OiBcInRydWVcIixcbiAgICAgICAgICAgICAg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FjazogKCkgPT4gbmV3IEVudGVyRGF0YU1vZGFsKHRoaXMpLm9wZW4oKVxuICAgICAgICB9KTtcblxuICAgICAgICB0aGlzLmFkZENvbW1hbmQoe1xuICAgICAgICAgICAgaWQ6IFwiY29weS11cmktc2VhcmNoLWFuZC1yZXBsYWNlXCIsXG4gICAgICAgICAgICBuYW1lOiBcImNvcHkgVVJJIGZvciBzZWFyY2ggYW5kIHJlcGxhY2VcIixcbiAgICAgICAgICAgIGNhbGxiYWNrOiAoKSA9PiB7XG4gICAgICAgICAgICAgICAgY29uc3QgZmlsZU1vZGFsID0gbmV3IEZpbGVNb2RhbCh0aGlzLCBcIlVzZWQgZmlsZSBmb3Igc2VhcmNoIGFuZCByZXBsYWNlXCIpO1xuICAgICAgICAgICAgICAgIGZpbGVNb2RhbC5vcGVuKCk7XG4gICAgICAgICAgICAgICAgZmlsZU1vZGFsLm9uQ2hvb3NlSXRlbSA9IChmaWxlUGF0aDogRmlsZU1vZGFsRGF0YSkgPT4ge1xuICAgICAgICAgICAgICAgICAgICBjb25zdCBzZWFyY2hNb2RhbCA9IG5ldyBTZWFyY2hNb2RhbCh0aGlzKTtcbiAgICAgICAgICAgICAgICAgICAgc2VhcmNoTW9kYWwub3BlbigpO1xuICAgICAgICAgICAgICAgICAgICBzZWFyY2hNb2RhbC5vbkNob29zZVN1Z2dlc3Rpb24gPSAoaXRlbTogU2VhcmNoTW9kYWxEYXRhKSA9PiB7XG4gICAgICAgICAgICAgICAgICAgICAgICBuZXcgUmVwbGFjZU1vZGFsKHRoaXMsIGl0ZW0sIGZpbGVQYXRoPy5zb3VyY2UpLm9wZW4oKTtcbiAgICAgICAgICAgICAgICAgICAgfTtcbiAgICAgICAgICAgICAgICB9O1xuICAgICAgICAgICAgfSxcbiAgICAgICAgfSk7XG5cbiAgICAgICAgdGhpcy5hZGRDb21tYW5kKHtcbiAgICAgICAgICAgIGlkOiBcImNvcHktdXJpLWNvbW1hbmRcIixcbiAgICAgICAgICAgIG5hbW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ICAgICAgICAgICAgICAgICAgcmV0dXJuO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICBjb25zdCBtb21lbnQgPSB3aW5kb3cubW9tZW50KERhdGUubm93KCkpO1xuICAgICAgICAgICAgICAgIGNvbnN0IGFsbERhaWx5Tm90ZXMgPSBnZXRBbGxEYWlseU5vdGVzKCk7XG4gICAgICAgICAgICAgICAgbGV0IGRhaWx5Tm90ZSA9IGdldERhaWx5Tm90ZShtb21lbnQsIGFsbERhaWx5Tm90ZXMpO1xuICAgICAgICAgICAgICAgIGlmICghZGFpbHlOb3RlKSB7XG4gICAgICAgICAgICAgICAgICAgIC8vLyBQcmV2ZW50IGRhaWx5IG5vdGUgZnJvbSBiZWluZyBjcmVhdGVkIG9uIGV4aXN0aW5nIGNoZWNrXG4gICAgICAgICAgICAgICAgICAgIGlmIChwYXJhbWV0ZXJzLmV4aXN0cyA9PT0gXCJ0cnVlXCIpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIHBhcmFtZXRlcnMuZmlsZXBhdGggPSBhd2FpdCBnZXREYWlseU5vdGVQYXRoKG1vbWVudCk7XG4gICAgICAgICAgICAgICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICAgICAgICAgICAgICBkYWlseU5vdGUgPSBhd2FpdCBjcmVhdGVEYWlseU5vdGUobW9tZW50KTtcblxuICAgICAgICAgICAgICAgICAgICAgICAgLy8gZGVsYXkgdG8gbGV0IE9ic2lkaWFuIGluZGV4IGFuZCBnZW5lcmF0ZSBDYWNoZWRNZXRhZGF0YVxuICAgICAgICAgICAgICAgICAgICAgICAgYXdhaXQgbmV3IFByb21pc2UociA9PiBzZXRUaW1lb3V0KHIsIDUwMCkpO1xuXG4gICAgICAgICAgICAgICAgICAgICAgICBjcmVhdGVkRGFpbHlOb3RlID0gdHJ1ZTtcbiAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICBpZiAoZGFpbHlOb3Rl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yZWdpc3RlckV2ZW50KFxuICAgICAgICAgICAgdGhpcy5hcHAud29ya3NwYWNlLm9uKCdmaWxlLW1lbnUnLCAobWVudSwgZmlsZSwgc291cmNlKSA9PiB7XG4gICAgICAgICAgICAgICAgaWYgKCEoc291cmNlID09PSBcInBhbmUtbW9yZS1vcHRpb25zXCIgfHwgc291cmNlID09PSBcInRhYi1oZWFkZXJcIiB8fCBzb3VyY2UgPT0gXCJmaWxlLWV4cGxvcmVyLWNvbnRleHQtbWVudVwiKSkge1xuICAgICAgICAgICAgICAgICAgICByZXR1cm47XG4gICAgICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICAgICAgaWYgKCEoZmlsZSBpbnN0YW5jZW9mIFRGaWxlKSkge1xuICAgICAgICAgICAgICAgICAgICByZXR1cm47XG4gICAgICAgICAgICAgICAgfVxuXG4gICAgICAgICAgICAgICAgbWVudS5hZGRJdGVtKChpdGVtKSA9PiB7XG4gICAgICAgICAgICAgICAgICAgIGl0ZW1cbiAgICAgICAgICAgICAgICAgICAgICAgIC5zZXRUaXRsZShgQ29weSBBZHZhbmNlZCBVUklgKVxuICAgICAgICAgICAgICAgICAgICAgICAgLnNldEljb24oJ2xpbmsnKVxuICAgICAgICAgICAgICAgICAgICAgICAgLnNldFNlY3Rpb24oXCJpbmZvXCIpXG4gICAgICAgICAgICAgICAgICAgICAgICAub25DbGljaygoXykgPT4gdGhpcy5oYW5kbGVDb3B5RmlsZVVSSSh0cnVlLCBmaWxlKSk7XG4gICAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICB9KSk7XG4gICAgfVxuXG4gICAgYXN5bmMgaG9va1N1Y2Nlc3MocGFyYW1ldGVyczogUGFyYW1ldGVycywgZmlsZTogVEZpbGUpOiBQcm9taXNlPHZvaWQ+IHtcbiAgICAgICAgaWYgKCFwYXJhbWV0ZXJzW1wieC1zdWNjZXNzXCJdKSByZXR1cm47XG5cbiAgICAgICAgY29uc3Qgb3B0aW9ucyA9IHtcbiAgICAgICAgIC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GVGcm9udG1hdHRlcktleShwYXJhbWV0ZXJzOiBQYXJhbWV0ZXJzKSB7XG4gICAgICAgIGNvbnN0IGtleSA9IHBhcmFtZXRlcnMuZnJvbnRtYXR0ZXJrZXk7XG4gICAgICAgIGNvbnN0IGZyb250bWF0dGVyID0gdGhpcy5hcHAubWV0YWRhdGFDYWNoZS5nZXRDYWNoZShwYXJhbWV0ZXJzLmZpbGVwYXRoID8/IHRoaXMuYXBwLndvcmtzcGFjZS5nZXRBY3RpdmVGaWxlKCkucGF0aCkuZnJvbnRtYXR0ZXI7XG5cbiAgICAgICAgbGV0IHJlczogc3RyaW5nO1xuICAgICAgICBpZiAoa2V5LnN0YXJ0c1dpdGgoXCJbXCIpICYmIGtleS5lbmRzV2l0aChcIl1cIikpIHtcbiAgICAgICAgICAgIGNvbnN0IGxpc3QgPSBrZXkuc3Vic3RyaW5nKDEsIGtleS5sZW5ndGggLSAxKS5zcGxpdChcIixcIik7XG4gICAgICAgICAgICBsZXQgY2FjaGU6IGFueSA9IGZyb250bWF0dGVyO1xuICAgICAgICAgICAgZm9yIChjb25zdCBpdGVtIG9mIGxpc3QpIHtcbiAgICAgICAgICAgICAgICBpZiAoY2FjaGUgaW5zdGFuY2VvZiBBcnJheSkge1xuICAgICAgICAgICAgICAgICAgICBjb25zdCBpbmRleCA9IHBhcnNlSW50KGl0ZW0pO1xuICAgICAgICAgICAgICAgICAgICBpZiAoaW5kZXggPT0gTmFOKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICBjYWNoZSA9IGNhY2hlLmZpbmQoKGUpID0+IGUgPT0gaXRlbSk7XG4gICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgICAgY2FjaGUgPSBjYWNoZVtwYXJzZUludChpdGVtKV07XG4gICAgICAgICAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgICAgICAgICAgY2FjaGUgPSBjYWNoZVtpdGVtXTtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9X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gaWYgKHBhcmFtZXRlcnMubW9kZSkge1xuICAgICAgICAgICAgICAgIGlmIChwYXJhbWV0ZXJzLm1vZGUgPT0gXCJuZXdcIikge1xuICAgICAgICAgICAgICAgICAgICBjb25zdCBmaWxlID0gdGhpcy5hcHAubWV0YWRhdGFDYWNoZS5nZXRGaXJzdExpbmtwYXRoRGVzdChwYXJhbWV0ZXJzLmZpbGVwYXRoLCBcIi9cIik7XG4gICAgICAgICAgICAgICAgICAgIGlmIChmaWxlIGluc3RhbmNlb2YgVEZpbGUpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIHBhcmFtZXRlcnMuZmlsZXBhdGggPSB0aGlzLmdldEFsdGVybmF0aXZlRmlsZVBhdGgoZmlsZSk7XG4gICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgYXdhaXQgdGhpcy5hcHAud29ya3NwYWNlLm9wZW5MaW5rVGV4dChwYXJhbWV0ZXJzLmZpbGVwYXRoLCBcIi9cIiwgdW5kZWZpbmVkLCB7XG4gICAgICAgICAgICAgICAgICAgIHN0YXRlOiB7IG1vZGU6IFwic291cmNlXCIgfVxuICAgICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgICAgIGNvbnN0IHZpZXcgPSB0aGlzLmFwcC53b3Jrc3BhY2UuZ2V0QWN0aXZlVmlld09mVHlwZShNYXJrZG93blZpZXcpO1xuICAgICAgICAgICAgICAgIGlmICh2aWV3KSB7XG4gICAgICAgICAgICAgICAgICAgIGNvbnN0IGVkaXRvciA9IHZpZXcuZWRpdG9yO1xuICAgICAgICAgICAgICAgICAgICBjb25zdCBkYXRhID0gZWRpdG9yLmdldFZhbHVlKCk7XG4gICAgICAgICAgICAgICAgICAgIGlmIChwYXJhbWV0ZXJzLm1vZGUgPT09IFwiYXBwZW5kXCIpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIGVkaXRvci5zZXRWYWx1ZShkYXRhICsgXCJcXG5cIik7XG4gICAgICAgICAgICAgICAgICAgICAgICBjb25zdCBsaW5lcyA9IGVkaXRvci5saW5lQ291bnQoKTtcbiAgICAgICAgICAgICAgICAgICAgICAgIGVkaXRvci5zZXRDdXJzb3IoeyBjaDogMCwgbGluZTogbGluZXMgfSk7XG4gICAgICAgICAgICAgICAgICAgIH0gZWxzZSBpZiAocGFyYW1ldGVycy5tb2RlID09PSBcInByZXBlbmRcIikge1xuICAgICAgICAgICAgICAgICAgICAgICAgZWRpdG9yLnNldFZhbHVlKFwiXFxuXCIgKyBkYXRhKTtcbiAgICAgICAgICAgICAgICAgICAgICAgIGVkaXRvci5zZXRDdXJzb3IoeyBjaDogMCwgbGluZTogMCB9KTtcbiAgICAgICAgICAgICAgICAgICAgfSBlbHNlIGlmIChwYXJhbWV0ZXJzLm1vZGUgPT09IFwib3ZlcndyaXRlXCIpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIGVkaXRvci5zZXRWYWx1ZShcIlwiKTtcbiAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH0gZWxzZSBpZiAocGFyYW1ldGVycy5saW5lKSB7XG4gICAgICAgICAgICAgICAgYXdhaXQgdGhpcy5hcHAud29ya3NwYWNlLm9wZW5MaW5rVGV4dChwYXJhbWV0ZXJzLmZpbGVwYXRoLCBcIi9cIiwgdW5kZWZpbmVkLCB7XG4gICAgICAgICAgICAgICAgICAgIHN0YXRlOiB7IG1vZGU6IFwic291cmNlXCIgfVxuICAgICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgICAgIHRoaXMuc2V0Q3Vyc29ySW5MaW5lKHBhcmFtZXRlcnMubGluZSk7XG4gICAgICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgICAgIGF3YWl0IHRoaXMuYXBwLndvcmtzcGFjZS5vcGVuTGlua1RleHQocGFyYW1ldGVycy5maWxlcGF0aCwgXCIvXCIsIHRoaXMuc2V0dGluZ3Mub3BlbkZpbGVXaXRob3V0V3JpdGVJbk5ld1BhbmUsIHRoaXMuZ2V0Vmlld1N0YXRlRnJvbU1vZGUocGFyYW1ldGVycykpO1xuICAgICAgICAgICAgfVxuICAgICAgICB9XG4gICAgICAgIGlmIChwYXJhbWV0ZXJzLmNvbW1hbmRpZCkge1xuICAgICAgICAgICAgdGhpcy5hcHAuY29tbWFuZHMuZXhlY3V0ZUNvbW1hbmRCeUlkKHBhcmFtZXRlcnMuY29tbWFuZGlkKTtcbiAgICAgICAgfSBlbHNlIGlmIChwYXJhbWV0ZXJzLmNvbW1hbmRuYW1lKSB7XG4gICAgICAgICAgICBjb25zdCByYXdDb21tYW5kcyA9IHRoaXMuYXBwLmNvbW1hbmRzLmNvbW1hbmRzO1xuICAgICAgICAgICAgZm9yIChjb25zdCBjb21tYW5kIGluIHJhd0NvbW1hbmRzKSB7XG4gICAgICAgICAgICAgICAgaWYgKHJhd0NvbW1hbmRzW2NvbW1hbmRdLm5hbWUgPT09IHBhcmFtZXRlcnMuY29tbWFuZG5hbWUpIHtcbiAgICAgICAgICAgICAgICAgICAgaWYgKHJhd0NvbW1hbmRzW2NvbW1hbmRdLmNhbGxiYWNrKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICByYXdDb21tYW5kc1tjb21tYW5kXS5jYWxsYmFjaygpO1xuICAgICAgICAgICAgICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgICAgICAgICAgICAgcmF3Q29tbWFuZHNbY29tbWFuZF0uY2hlY2tDYWxsYmFjayhmYWxzZSk7XG4gICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgICAgYnJlYWs7XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfVxuICAgICAgICB9XG4gICAgICAgIHRoaXMuc3VjY2VzcyhwYXJhbWV0ZXJzKTtcbiAgICB9XG4gICAgYXN5bmMgaGFuZGxlRG9lc0ZpbGVFeGlzdChwYXJhbWV0ZXJzOiBQYXJhbWV0ZXJzKSB7XG4gICAgICAgIGNv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dGVVSURUb0ZpbGUodmlldy5maWxlLCBwYXJhbWV0ZXJzLnVpZCk7XG4gICAgICAgIH1cbiAgICAgICAgdGhpcy5zdWNjZXNzKHBhcmFtZXRlcnMpO1xuICAgIH1cblxuICAgIGFzeW5jIGFwcGVuZChmaWxlOiBURmlsZSB8IHN0cmluZywgcGFyYW1ldGVyczogUGFyYW1ldGVycyk6IFByb21pc2U8VEZpbGU+IHtcbiAgICAgICAgbGV0IHBhdGg6IHN0cmluZztcbiAgICAgICAgbGV0IGRhdGFUb1dyaXRlOiBzdHJpbmc7XG4gICAgICAgIGlmIChwYXJhbWV0ZXJzLmhlYWRpbmcpIHtcbiAgICAgICAgICAgIGlmIChmaWxlIGluc3RhbmNlb2YgVEZpbGUpIHtcbiAgICAgICAgICAgICAgICBwYXRoID0gZmlsZS5wYXRoO1xuICAgICAgICAgICAgICAgIGNvbnN0IGxpbmUgPSB0aGlzLmdldEVuZEFuZEJlZ2lubmluZ09mSGVhZGluZyhmaWxlLCBwYXJhbWV0ZXJzLmhlYWRpbmcpPy5sYXN0TGluZTtcbiAgICAgICAgICAgICAgICBpZiAobGluZSA9PT0gdW5kZWZpbmVkKSByZXR1cm47XG5cbiAgICAgICAgICAgICAgICBjb25zdCBkYXRhID0gYXdhaXQgdGhpcy5hcHAudmF1bHQucmVhZChmaWxlKTtcbiAgICAgICAgICAgICAgICBjb25zdCBsaW5lcyA9IGRhdGEuc3BsaXQoXCJcXG5cIik7XG5cbiAgICAgICAgICAgICAgICBsaW5lcy5zcGxpY2UobGluZSwgMCwgLi4ucGFyYW1ldGVycy5kYXRhLnNwbGl0KFwiXFxuXCIpKTtcbiAgICAgICAgICAgICAgICBkYXRhVG9Xcml0ZSA9IGxpbmVzLmpvaW4oXCJcXG5cIik7XG4gICAgICAgICAgICB9XG4gICAgICAgIH1cbiAgICAgICAgZWxzZSB7XG4gICAgICAgICAgICBsZXQgZmlsZURhdGE6IHN0cmluZztcbiAgICAgICAgICAgIGlmIChmaWxlIGlu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lsZSk7XG4gICAgICAgICAgICAgICAgY29uc3QgbGluZXMgPSBkYXRhLnNwbGl0KFwiXFxuXCIpO1xuXG4gICAgICAgICAgICAgICAgbGluZXMuc3BsaWNlKGxpbmUsIDAsIC4uLnBhcmFtZXRlcnMuZGF0YS5zcGxpdChcIlxcblwiKSk7XG4gICAgICAgICAgICAgICAgZGF0YVRvV3JpdGUgPSBsaW5lcy5qb2luKFwiXFxuXCIpO1xuICAgICAgICAgICAgfVxuXG4gICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICBpZiAoZmlsZSBpbnN0YW5jZW9mIFRGaWxlKSB7XG4gICAgICAgICAgICAgICAgY29uc3QgZmlsZURhdGEgPSBhd2FpdCB0aGlzLmFwcC52YXVsdC5yZWFkKGZpbGUpO1xuICAgICAgICAgICAgICAgIGNvbnN0IGNhY2hlID0gdGhpcy5hcHAubWV0YWRhdGFDYWNoZS5nZXRGaWxlQ2FjaGUoZmlsZSk7XG5cbiAgICAgICAgICAgICAgICBpZiAoY2FjaGUuZnJvbnRtYXR0ZXIpIHtcbiAgICAgICAgICAgICAgICAgICAgY29uc3QgbGluZSA9IGNhY2hlLmZyb250bWF0dGVyLnBvc2l0aW9uLmVuZC5saW5lO1xuICAgICAgICAgICAgICAgICAgICBjb25zdCBmaXJzdCA9IGZpbGVEYXRhLnNwbGl0KFwiXFxuXCIpLnNsaWNlKDAsIGxpbmUgKyAxKS5qb2luKFwiXFxuXCIpO1xuICAgICAgICAgICAgICAgICAgICBjb25zdCBsYXN0ID0gZmlsZURhdGEuc3BsaXQoXCJcXG5cIikuc2xpY2UobGluZSArIDEpLmpvaW4oXCJcXG5cIik7XG4gICAgICAgICAgICAgICAgICAgIGRhdGFUb1dyaXRlID0gZmlyc3QgKyBcIlxcblwiICsgcGFyYW1ldGVycy5kYXRhICsgXCJcXG5cIiArIGxhc3Q7XG5cbiAgICAgICAgICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgICAgICAgICBkYXRhVG9Xcml0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ICAgICAgICAgICAgIGF3YWl0IHRoaXMuYXBwLnZhdWx0LmNyZWF0ZUZvbGRlcihkaXIpO1xuICAgICAgICAgICAgfVxuICAgICAgICAgICAgY29uc3QgYmFzZTY0cmVnZXggPSAvXihbMC05YS16QS1aKy9dezR9KSooKFswLTlhLXpBLVorL117Mn09PSl8KFswLTlhLXpBLVorL117M309KSk/JC87XG4gICAgICAgICAgICBpZiAoYmFzZTY0cmVnZXgudGVzdCh0ZXh0KSkge1xuICAgICAgICAgICAgICAgIGF3YWl0IHRoaXMuYXBwLnZhdWx0LmNyZWF0ZUJpbmFyeShvdXRwdXRGaWxlTmFtZSwgYmFzZTY0VG9BcnJheUJ1ZmZlcih0ZXh0KSk7XG4gICAgICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgICAgIGF3YWl0IHRoaXMuYXBwLnZhdWx0LmNyZWF0ZShvdXRwdXRGaWxlTmFtZSwgdGV4dCk7XG4gICAgICAgICAgICB9XG4gICAgICAgIH1cblxuICAgICAgICBpZiAodGhpcy5zZXR0aW5ncy5vcGVuRmlsZU9uV3JpdGUpIHtcbiAgICAgICAgICAgIGxldCBmaWxlSXNBbHJlYWR5T3BlbmVkID0gZmFsc2U7XG4gICAgICAgICAgICB0aGlzLmFwcC53b3Jrc3BhY2UuaXRlcmF0ZUFsbExlYXZlcyhsZWFmID0+IHtcbiAgICAgICAgICAgICAgICBpZiAobGVhZi52aWV3LmZpbGU/LnBhdGggPT09IG91dHB1dEZpbGVOYW1lKSB7XG4gICAgICAgICAgICAgICAgICAgIGZpbGVJc0FscmVhZHlPcGVuZWQgPSB0cnVlO1xuICAgICAgICAgICAgICAgICAgICB0aGlzLmFwcC53b3Jrc3BhY2Uuc2V0QWN0aXZlTGVhZihsZWFmLCB0cnVlLCB0cnVlKTtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9KTtcblxuICAgICAgICAgICAgaWYgKCFmaWxlSXNBbHJlYWR5T3BlbmVkKVxuICAgICAgICAgICA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cm47XG4gICAgICAgIGNvbnN0IGxpbmUgPSBNYXRoLm1pbihyYXdMaW5lIC0gMSwgdmlldy5lZGl0b3IubGluZUNvdW50KCkgLSAxKTtcbiAgICAgICAgdmlldy5lZGl0b3IuZm9jdXMoKTtcbiAgICAgICAgdmlldy5lZGl0b3Iuc2V0Q3Vyc29yKHsgbGluZTogbGluZSwgY2g6IHZpZXcuZWRpdG9yLmdldExpbmUobGluZSkubGVuZ3RoIH0pO1xuICAgIH1cblxuICAgIGhhbmRsZUNvcHlGaWxlVVJJKHdpdGhvdXREYXRhOiBib29sZWFuLCBmaWxlPzogVEZpbGUpIHtcbiAgICAgICAgY29uc3QgdmlldyA9IHRoaXMuYXBwLndvcmtzcGFjZS5nZXRBY3RpdmVWaWV3T2ZUeXBlKE1hcmtkb3duVmlldyk7XG4gICAgICAgIGlmICghdmlldyAmJiAhZmlsZSkgcmV0dXJuO1xuICAgICAgICBpZiAodmlldykge1xuICAgICAgICAgICAgY29uc3QgcG9zID0gdmlldy5lZGl0b3IuZ2V0Q3Vyc29yKCk7XG4gICAgICAgICAgICBjb25zdCBjYWNoZSA9IHRoaXMuYXBwLm1ldGFkYXRhQ2FjaGUuZ2V0RmlsZUNhY2hlKHZpZXcuZmlsZSk7XG4gICAgICAgICAgICBpZiAoY2FjaGUuaGVhZGluZ3MpIHtcbiAgICAgICAgICAgICAgICBmb3IgKGNvbnN0IGhlYWRpbmcgb2YgY2FjaGUuaGVhZGluZ3MpIHtcbiAgICAgICAgICAgICAgICAgICAgaWYgKGhlYWRpbmcucG9zaXRpb24uc3RhcnQubGluZSA8PSBwb3MubGluZSAmJiBoZWFkaW5nLnBvc2l0aW9uLmVuZC5saW5lID49IHBvcy5saW5lKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICB0aGlzLmNvcHlVUkkoe1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGZpbGVwYXRoOiB2aWV3LmZpbGUucGF0aCxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBoZWFkaW5nOiBoZWFkaW5nLmhlYWRpbmdcbiAgICAgICAgICAgICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuO1xuICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfVxuICAgICAgICAgICAgaWYgKGNhY2hlLmJsb2Nrcykge1xuICAgICAgICAgICAgICAgIGZvciAoY29uc3QgYmxvY2tJRCBvZiBPYmplY3Qua2V5cyhjYWNoZS5ibG9ja3MpKSB7XG4gICAgICAgICAgICAgICAgICAgIGNvbnN0IGJsb2NrID0gY2FjaGUuYmxvY2tzW2Jsb2NrSURdO1xuICAgICAgICAgICAgICAgICAgICBpZiAoYmxvY2sucG9zaXRpb24uc3RhcnQubGluZSA8PSBwb3MubGluZSAmJiBibG9jay5wb3NpdGlvbi5lbmQubGluZSA+PSBwb3MubGluZSkge1xuICAgICAgICAgICAgICAgICAgICAgICAgdGhpcy5jb3B5VVJJKHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBmaWxlcGF0aDogdmlldy5maWxlLnBhdGgsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgYmxvY2s6IGJsb2NrSURcbiAgICAgICAgICAgICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuO1xuICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfVxuICAgICAgICB9XG5cbiAgICAgICAgaWYgKHdpdGhvdXREYXRhKSB7XG4gICAgICAgICAgICBjb25zdCBmaWxlMiA9IGZpbGUgPz8gdGhpcy5hcHAud29ya3NwYWNlLmdldEFjdGl2ZUZpbGUoKTtcbiAgICAgICAgICAgIGlmICghZmlsZTIpIHtcbiAgICAgICAgICAgICAgICBuZXcgTm90aWNlKFwiTm8gZmlsZSBvcGVuZWRcIik7XG4gICAgICAgICAgICAgICAgcmV0dXJuO1xuICAgICAgICAgIC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yIF9fYXNzaWduID0gZnVuY3Rpb24oKSB7XHJcbiAgICBfX2Fzc2lnbiA9IE9iamVjdC5hc3NpZ24gfHwgZnVuY3Rpb24gX19hc3NpZ24odCkge1xyXG4gICAgICAgIGZvciAodmFyIHMsIGkgPSAxLCBuID0gYXJndW1lbnRzLmxlbmd0aDsgaSA8IG47IGkrKykge1xyXG4gICAgICAgICAgICBzID0gYXJndW1lbnRzW2ldO1xyXG4gICAgICAgICAgICBmb3IgKHZhciBwIGluIHMpIGlmIChPYmplY3QucHJvdG90eXBlLmhhc093blByb3BlcnR5LmNhbGwocywgcCkpIHRbcF0gPSBzW3BdO1xyXG4gICAgICAgIH1cclxuICAgICAgICByZXR1cm4gdDtcclxuICAgIH1cclxuICAgIHJldHVybiBfX2Fzc2lnbi5hcHBseSh0aGlzLCBhcmd1bWVudHMpO1xyXG59XHJcblxyXG5leHBvcnQgZnVuY3Rpb24gX19yZXN0KHMsIGUpIHtcclxuICAgIHZhciB0ID0ge307XHJcbiAgICBmb3IgKHZhciBwIGluIHMpIGlmIChPYmplY3QucHJvdG90eXBlLmhhc093blByb3BlcnR5LmNhbGwocywgcCkgJiYgZS5pbmRleE9mKHApIDwgMClcclxuICAgICAgICB0W3BdID0gc1twXTtcclxuICAgIGlmIChzICE9IG51bGwgJiYgdHlwZW9mIE9iamVjdC5nZXRPd25Qcm9wZXJ0eVN5bWJvbHMgPT09IFwiZnVuY3Rpb25cIilcclxuICAgICAgICBmb3IgKHZhciBpID0gMCwgcCA9IE9iamVjdC5nZXRPd25Qcm9wZXJ0eVN5bWJvbHMocyk7IGkgPCBwLmxlbmd0aDsgaSsrKSB7XHJcbiAgICAgICAgICAgIGlmIChlLmluZGV4T2YocFtpXSkgPCAwICYmIE9iamVjdC5wcm90b3R5cGUucHJvcGVydHlJc0VudW1lcmFibGUuY2FsbChzLCBwW2ldKSlcclxuICAgICAgICAgICAgICAgIHRbcFtpXV0gPSBzW3BbaV1dO1xyXG4gICAgICAgIH1cclxuICA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gY2FzZSAwOiBjYXNlIDE6IHQgPSBvcDsgYnJlYWs7XHJcbiAgICAgICAgICAgICAgICBjYXNlIDQ6IF8ubGFiZWwrKzsgcmV0dXJuIHsgdmFsdWU6IG9wWzFdLCBkb25lOiBmYWxzZSB9O1xyXG4gICAgICAgICAgICAgICAgY2FzZSA1OiBfLmxhYmVsKys7IHkgPSBvcFsxXTsgb3AgPSBbMF07IGNvbnRpbnVlO1xyXG4gICAgICAgICAgICAgICAgY2FzZSA3OiBvcCA9IF8ub3BzLnBvcCgpOyBfLnRyeXMucG9wKCk7IGNvbnRpbnVlO1xyXG4gICAgICAgICAgICAgICAgZGVmYXVsdDpcclxuICAgICAgICAgICAgICAgICAgICBpZiAoISh0ID0gXy50cnlzLCB0ID0gdC5sZW5ndGggPiAwICYmIHRbdC5sZW5ndGggLSAxXSkgJiYgKG9wWzBdID09PSA2IHx8IG9wWzBdID09PSAyKSkgeyBfID0gMDsgY29udGludWU7IH1cclxuICAgICAgICAgICAgICAgICAgICBpZiAob3BbMF0gPT09IDMgJiYgKCF0IHx8IChvcFsxXSA+IHRbMF0gJiYgb3BbMV0gPCB0WzNdKSkpIHsgXy5sYWJlbCA9IG9wWzFdOyBicmVhazsgfVxyXG4gICAgICAgICAgICAgICAgICAgIGlmIChvcFswXSA9PT0gNiAmJiBfLmxhYmVsIDwgdFsxXSkgeyBfLmxhYmVsID0gdFsxXTsgdCA9IG9wOyBicmVhazsgfVxyXG4gICAgICAgICAgICAgICAgICAgIGlmICh0ICYmIF8ubGFiZWwgPCB0WzJdKSB7IF8ubGFiZWwgPSB0WzJdOyBfLm9wcy5wdXNoKG9wKTsgYnJlYWs7IH1cclxuICAgICAgICAgICAgICAgICAgICBpZiAodFsyXSkgXy5vcHMucG9wKCk7XHJcbiAgICAgICAgICAgICAgICAgICAgXy50cnlzLnBvcCgpOyBjb250aW51ZTtcclxuICAgICAgICAgICAgfVxyXG4gICAgICAgICAgICBvcCA9IGJvZHkuY2FsbCh0aGlzQXJ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XHJcbiAgICBpZiAobyAmJiB0eXBlb2Ygby5sZW5ndGggPT09IFwibnVtYmVyXCIpIHJldHVybiB7XHJcbiAgICAgICAgbmV4dDogZnVuY3Rpb24gKCkge1xyXG4gICAgICAgICAgICBpZiAobyAmJiBpID49IG8ubGVuZ3RoKSBvID0gdm9pZCAwO1xyXG4gICAgICAgICAgICByZXR1cm4geyB2YWx1ZTogbyAmJiBvW2krK10sIGRvbmU6ICFvIH07XHJcbiAgICAgICAgfVxyXG4gICAgfTtcclxuICAgIHRocm93IG5ldyBUeXBlRXJyb3IocyA/IFwiT2JqZWN0IGlzIG5vdCBpdGVyYWJsZS5cIiA6IFwiU3ltYm9sLml0ZXJhdG9yIGlzIG5vdCBkZWZpbmVkLlwiKTtcclxufVxyXG5cclxuZXhwb3J0IGZ1bmN0aW9uIF9fcmVhZChvLCBuKSB7XHJcbiAgICB2YXIgbSA9IHR5cGVvZiBTeW1ib2wgPT09IFwiZnVuY3Rpb25cIiAmJiBvW1N5bWJvbC5pdGVyYXRvcl07XHJcbiAgICBpZiAoIW0pIHJldHVybiBvO1xyXG4gICAgdmFyIGkgPSBtLmNhbGwobyksIHIsIGFyID0gW10sIGU7XHJcbiAgICB0cnkge1xyXG4gICAgICAgIHdoaWxlICgobiA9PT0gdm9pZCAwIHx8IG4tLSA+IDApICYmICEociA9IGkubmV4dCgpKS5kb25lKSBhci5wdXNoKHIudmFsdWUpO1xyXG4gICAgfVxyXG4gICAgY2F0Y2ggKGVycm9yKSB7IGUgPSB7IGVycm9yOiBlcnJvciB9OyB9XHJcbiAgICBmaW5hbGx5IHtcclxuICAgICAgICB0cnkge1xyXG4gICAgICAgICAgICBpZiAociAmJiAhci5kb25lICYmIChtID0gaVtcInJldHVyblwiXSkpIG0uY2FsbChpKTtcclxuICAgICAgICB9XHJcbiAgICAgICAgZmluYWxseSB7IGlmIChlKSB0aHJvdyBlLmVycm9yOyB9XHJcbiAgICB9XHJcbiAgICByZXR1cm4gYXI7XHJcbn1cclx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plY3QuanNcIjpcbi8qISoqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqISpcXFxuICAhKioqIC4vbm9kZV9tb2R1bGVzL2NvcmUtanMvaW50ZXJuYWxzL2FuLW9iamVjdC5qcyAqKiohXG4gIFxcKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKiovXG4vKiEgbm8gc3RhdGljIGV4cG9ydHMgZm91bmQgKi9cbi8qKiovIChmdW5jdGlvbihtb2R1bGUsIGV4cG9ydHMsIF9fd2VicGFja19yZXF1aXJlX18pIHtcblxudmFyIGlzT2JqZWN0ID0gX193ZWJwYWNrX3JlcXVpcmVfXygvKiEgLi4vaW50ZXJuYWxzL2lzLW9iamVjdCAqLyBcIi4vbm9kZV9tb2R1bGVzL2NvcmUtanMvaW50ZXJuYWxzL2lzLW9iamVjdC5qc1wiKTtcblxubW9kdWxlLmV4cG9ydHMgPSBmdW5jdGlvbiAoaXQpIHtcbiAgaWYgKCFpc09iamVjdChpdCkpIHtcbiAgICB0aHJvdyBUeXBlRXJyb3IoU3RyaW5nKGl0KSArICcgaXMgbm90IGFuIG9iamVjdCcpO1xuICB9IHJldHVybiBpdDtcbn07XG5cblxuLyoqKi8gfSksXG5cbi8qKiovIFwiLi9ub2RlX21vZHVsZXMvY29yZS1qcy9pbnRlcm5hbHMvYXJyYXktZnJvbS5qc1wiOlxuLyohKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqISpcXFxuICAhKioqIC4vbm9kZV9tb2R1bGVzL2NvcmUtanMvaW50ZXJuYWxzL2FycmF5LWZyb20uanMgKioqIVxuICBcXCoqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKi9cbi8qISBubyBzdGF0aWMgZXhwb3J0cyBmb3VuZCAqL1xuLyoqKi8gKGZ1bmN0aW9uKG1vZHVsZSwgZXhwb3J0cywgX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ICAgfSByZXR1cm4gIUlTX0lOQ0xVREVTICYmIC0xO1xuICB9O1xufTtcblxuXG4vKioqLyB9KSxcblxuLyoqKi8gXCIuL25vZGVfbW9kdWxlcy9jb3JlLWpzL2ludGVybmFscy9iaW5kLWNvbnRleHQuanNcIjpcbi8qISoqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqISpcXFxuICAhKioqIC4vbm9kZV9tb2R1bGVzL2NvcmUtanMvaW50ZXJuYWxzL2JpbmQtY29udGV4dC5qcyAqKiohXG4gIFxcKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKiovXG4vKiEgbm8gc3RhdGljIGV4cG9ydHMgZm91bmQgKi9cbi8qKiovIChmdW5jdGlvbihtb2R1bGUsIGV4cG9ydHMsIF9fd2VicGFja19yZXF1aXJlX18pIHtcblxudmFyIGFGdW5jdGlvbiA9IF9fd2VicGFja19yZXF1aXJlX18oLyohIC4uL2ludGVybmFscy9hLWZ1bmN0aW9uICovIFwiLi9ub2RlX21vZHVsZXMvY29yZS1qcy9pbnRlcm5hbHMvYS1mdW5jdGlvbi5qc1wiKTtcblxuLy8gb3B0aW9uYWwgLyBzaW1wbGUgY29udGV4dCBiaW5kaW5nXG5tb2R1bGUuZXhwb3J0cyA9IGZ1bmN0aW9uIChmbiwgdGhhdCwgbGVuZ3RoKSB7XG4gIGFGdW5jdGlvbihmbik7XG4gIGlmICh0aGF0ID09PSB1bmRlZmluZWQpIHJldHVybiBmbjtcbiAgc3dpdGNoIChsZW5ndGgpIHtcbiAgICBjYXNlIDA6IHJldHVybiBmdW5jdGlvbiAoKSB7XG4gICAgICByZXR1cm4gZm4uY2FsbCh0aGF0KTtcbiAgICB9O1xuICAgIGNhc2UgMTogcmV0dXJuIGZ1bmN0aW9uIChhKSB7XG4gICAgICByZXR1cm4gZm4uY2FsbCh0aGF0LCBhKTtcbiAgICB9O1xuICAgIGNhc2UgMjogcmV0dXJuIGZ1bmN0aW9uIChhLCBiKSB7XG4gICAgICByZXR1cm4gZm4uY2FsbCh0aGF0LCBhLCBiKTtcbiAgICB9O1xuICAgIGNhc2UgMzogcmV0dXJuIGZ1bmN0aW9uIChhLCBiLCBjKSB7XG4gICAgICByZXR1cm4gZm4uY2FsbCh0aGF0LCBhLCBiLCBjKTtcbiAgICB9O1xuICB9XG4gIHJldHVybiBmdW5jdGlvbiAoLyogLi4uYXJncyAqLykge1xuICAgIHJldHVybiBmbi5hcHBseSh0aGF0LCBhcmd1bWVudHMpO1xuICB9O1xufTtcblxuXG4vKioqLyB9KSxcblxuLyoqKi8gXCIuL25vZGVfbW9kdWxlcy9jb3JlLWpzL2ludGVybmFscy9jYWxsLXdpdGgtc2FmZS1pdGVyYXRpb24tY2xvc2luZy5qc1wiOlxuLyohKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKiEqXFxcbiAgISoqKiAuL25vZGVfbW9kdWxlcy9jb3JlLWpzL2ludGVybmFscy9jYWxsLXdpdGgtc2FmZS1pdGVyYXRpb24tY2xvc2luZy5qcyAqKiohXG4gIFxcKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKi9cbi8qISBubyBzdGF0aWMgZXhwb3J0cyBmb3VuZCAqL1xuLyoqKi8gKGZ1bmN0aW9uKG1vZHVsZSwgZXhwb3J0cywgX193ZWJwYWNrX3JlcXVpcmVfXykge1xuXG52YXIgYW5PYmplY3QgPSBfX3dlYnBhY2tfcmVxdWlyZV9fKC8qISAuLi9pbnRlcm5hbHMvYW4tb2JqZWN0ICovIFwiLi9ub2RlX21vZHVsZXMvY29yZS1qcy9pbnRlcm5hbHMvYW4tb2JqZWN0LmpzXCIpO1xuXG4vLyBjYWxsIHNvbWV0aGluZyBvbiBpdGVyYXRvciBzdGVwIHdpdGggc2FmZSBjbG9zaW5nIG9uIGVycm9yXG5tb2R1bGUuZXhwb3J0cyA9IGZ1bmN0aW9uIChpdGVyYXRvciwgZm4sIHZhbHVlLCBFTlRSSUVTKSB7XG4gIHRyeSB7XG4gICAgcmV0dXJuIEVOVFJJRVMgPyBmbihhbk9iamVjdCh2YWx1ZSlbMF0sIHZhbHVlWzFdKSA6IGZuKHZhbHVlKTtcbiAgLy8gNy40LjYgSXRlcmF0b3JDbG9zZShpdGVyYXRvciwgY29tcGxldGlvbilcbiAgfSBjYXRjaCAoZXJyb3IpIHtcbiAgICB2YXIgcmV0dXJuTWV0aG9kID0gaXRlcmF0b3JbJ3JldHVybiddO1xuICAgIGlmIChyZXR1cm5NZXRob2QgIT09IHVuZGVmaW5lZCkgYW5PYmplY3QocmV0dXJuTWV0aG9kLmNhbGwoaXRlcmF0b3IpKTtcbiAgICB0aHJvdyBlcnJvcjtcbiAgfVxufTtcblxuXG4vKioqLyB9KSxcblxuLyoqKi8gXCIuL25vZGVfbW9kdWxlcy9jb3JlLWpzL2ludGVybmFscy9jaGVjay1jb3JyZWN0bmVzcy1vZi1pdGVyYXRpb24uanNcIjpcbi8qISoqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqISpcXFxuICAhKioqIC4vbm9kZV9tb2R1bGVzL2NvcmUtanMvaW50ZXJuYWxzL2NoZWNrLWNvcnJlY3RuZXNzLW9mLWl0ZXJhdGlvbi5qcyAqKiohXG4gIFxcKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKiovXG4vKiEgbm8gc3RhdGljIGV4cG9ydHMgZm91bmQgKi9cbi8qKiovIChmdW5jdGlvbihtb2R1bGUsIGV4cG9ydHMsIF9fd2VicGFja19yZXF1aXJlX18pIHtcblxudmFyIHdlbGxLbm93blN5bWJvbCA9IF9fd2VicGFja19yZXF1aXJlX18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gICAgbmV4dDogZnVuY3Rpb24gKCkge1xuICAgICAgICAgIHJldHVybiB7IGRvbmU6IElURVJBVElPTl9TVVBQT1JUID0gdHJ1ZSB9O1xuICAgICAgICB9XG4gICAgICB9O1xuICAgIH07XG4gICAgZXhlYyhvYmplY3QpO1xuICB9IGNhdGNoIChlcnJvcikgeyAvKiBlbXB0eSAqLyB9XG4gIHJldHVybiBJVEVSQVRJT05fU1VQUE9SVDtcbn07XG5cblxuLyoqKi8gfSksXG5cbi8qKiovIFwiLi9ub2RlX21vZHVsZXMvY29yZS1qcy9pbnRlcm5hbHMvY2xhc3NvZi1yYXcuanNcIjpcbi8qISoqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKiohKlxcXG4gICEqKiogLi9ub2RlX21vZHVsZXMvY29yZS1qcy9pbnRlcm5hbHMvY2xhc3NvZi1yYXcuanMgKioqIVxuICBcXCoqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKiovXG4vKiEgbm8gc3RhdGljIGV4cG9ydHMgZm91bmQgKi9cbi8qKiovIChmdW5jdGlvbihtb2R1bGUsIGV4cG9ydHMpIHtcblxudmFyIHRvU3RyaW5nID0ge30udG9TdHJpbmc7XG5cbm1vZHVsZS5leHBvcnRzID0gZnVuY3Rpb24gKGl0KSB7XG4gIHJldHVybiB0b1N0cmluZy5jYWxsKGl0KS5zbGljZSg4LCAtMSk7XG59O1xuXG5cbi8qKiovIH0pLFxuXG4vKioqLyBcIi4vbm9kZV9tb2R1bGVzL2NvcmUtanMvaW50ZXJuYWxzL2NsYXNzb2YuanNcIjpcbi8qISoqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKiEqXFxcbiAgISoqKiAuL25vZGVfbW9kdWxlcy9jb3JlLWpzL2ludGVybmFscy9jbGFzc29mLmpzICoqKiFcbiAgXFwqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKio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ICByZXR1cm4gaXQgPT09IHVuZGVmaW5lZCA/ICdVbmRlZmluZWQnIDogaXQgPT09IG51bGwgPyAnTnVsbCdcbiAgICAvLyBAQHRvU3RyaW5nVGFnIGNhc2VcbiAgICA6IHR5cGVvZiAodGFnID0gdHJ5R2V0KE8gPSBPYmplY3QoaXQpLCBUT19TVFJJTkdfVEFHKSkgPT0gJ3N0cmluZycgPyB0YWdcbiAgICAvLyBidWlsdGluVGFnIGNhc2VcbiAgICA6IENPUlJFQ1RfQVJHVU1FTlRTID8gY2xhc3NvZlJhdyhPKVxuICAgIC8vIEVTMyBhcmd1bWVudHMgZmFsbGJhY2tcbiAgICA6IChyZXN1bHQgPSBjbGFzc29mUmF3KE8pKSA9PSAnT2JqZWN0JyAmJiB0eXBlb2YgTy5jYWxsZWUgPT0gJ2Z1bmN0aW9uJyA/ICdBcmd1bWVudHMnIDogcmVzdWx0O1xufTtcblxuXG4vKioqLyB9KSxcblxuLyoqKi8gXCIuL25vZGVfbW9kdWxlcy9jb3JlLWpzL2ludGVybmFscy9jb3B5LWNvbnN0cnVjdG9yLXByb3BlcnRpZXMuanNcIjpcbi8qISoqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqISpcXFxuICAhKioqIC4vbm9kZV9tb2R1bGVzL2NvcmUtanMvaW50ZXJuYWxzL2NvcHktY29uc3RydWN0b3ItcHJvcGVydGllcy5qcyAqKiohXG4gIFxcKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKiovXG4vKiEgbm8gc3RhdGljIGV4cG9ydHMgZm91bmQgKi9cbi8qKiovIChmdW5jdGlvbihtb2R1bGUsIGV4cG9ydHMsIF9fd2VicGFja19yZXF1aXJlX18pIHtcblxudmFyIGhhcyA9IF9fd2VicGFja19yZXF1aXJlX18oLyohIC4uL2ludGVybmFscy9oYXMgKi8gXCIuL25vZGV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yZWF0ZS1wcm9wZXJ0eS1kZXNjcmlwdG9yLmpzICoqKiFcbiAgXFwqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqL1xuLyohIG5vIHN0YXRpYyBleHBvcnRzIGZvdW5kICovXG4vKioqLyAoZnVuY3Rpb24obW9kdWxlLCBleHBvcnRzKSB7XG5cbm1vZHVsZS5leHBvcnRzID0gZnVuY3Rpb24gKGJpdG1hcCwgdmFsdWUpIHtcbiAgcmV0dXJuIHtcbiAgICBlbnVtZXJhYmxlOiAhKGJpdG1hcCAmIDEpLFxuICAgIGNvbmZpZ3VyYWJsZTogIShiaXRtYXAgJiAyKSxcbiAgICB3cml0YWJsZTogIShiaXRtYXAgJiA0KSxcbiAgICB2YWx1ZTogdmFsdWVcbiAgfTtcbn07XG5cblxuLyoqKi8gfSksXG5cbi8qKiovIFwiLi9ub2RlX21vZHVsZXMvY29yZS1qcy9pbnRlcm5hbHMvY3JlYXRlLXByb3BlcnR5LmpzXCI6XG4vKiEqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKiEqXFxcbiAgISoqKiAuL25vZGVfbW9kdWxlcy9jb3JlLWpzL2ludGVybmFscy9jcmVhdGUtcHJvcGVydHkuanMgKioqIVxuICBcXCoqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqL1xuLyohIG5vIHN0YXRpYyBleHBvcnRzIGZvdW5kICovXG4vKioqLyAoZnVuY3Rpb24obW9kdWxlLCBleHBvcnRzLCBfX3dlYnBhY2tfcmVxdWlyZV9fKSB7XG5cblwidXNlIHN0cmljdFwiO1xuXG52YXIgdG9QcmltaXRpdmUgPSBfX3dlYnBhY2tfcmVxdWlyZV9fKC8qISAuLi9pbnRlcm5hbHMvdG8tcHJpbWl0aXZlICovIFwiLi9ub2RlX21vZHVsZXMvY29yZS1qcy9pb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Li9ub2RlX21vZHVsZXMvY29yZS1qcy9pbnRlcm5hbHMvZW51bS1idWcta2V5cy5qc1wiOlxuLyohKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqISpcXFxuICAhKioqIC4vbm9kZV9tb2R1bGVzL2NvcmUtanMvaW50ZXJuYWxzL2VudW0tYnVnLWtleXMuanMgKioqIVxuICBcXCoqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKi9cbi8qISBubyBzdGF0aWMgZXhwb3J0cyBmb3VuZCAqL1xuLyoqKi8gKGZ1bmN0aW9uKG1vZHVsZSwgZXhwb3J0cykge1xuXG4vLyBJRTgtIGRvbid0IGVudW0gYnVnIGtleXNcbm1vZHVsZS5leHBvcnRzID0gW1xuICAnY29uc3RydWN0b3InLFxuICAnaGFzT3duUHJvcGVydHknLFxuICAnaXNQcm90b3R5cGVPZicsXG4gICdwcm9wZXJ0eUlzRW51bWVyYWJsZScsXG4gICd0b0xvY2FsZVN0cmluZycsXG4gICd0b1N0cmluZycsXG4gICd2YWx1ZU9mJ1xuXTtcblxuXG4vKioqLyB9KSxcblxuLyoqKi8gXCIuL25vZGVfbW9kdWxlcy9jb3JlLWpzL2ludGVybmFscy9leHBvcnQuanNcIjpcbi8qISoqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqISpcXFxuICAhKioqIC4vbm9kZV9tb2R1bGVzL2NvcmUtanMvaW50ZXJuYWxzL2V4cG9ydC5qcyAqKiohXG4gIFxcKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKiovXG4vKiEgbm8gc3RhdGljIGV4cG9ydHMgZm91bmQgKi9cbi8qKiovIChmdW5jdGlvbihtb2R1bGUsIGV4cG9ydHMsIF9fd2VicGFja19yZXF1aXJlX18pIHtcblxudmFyIGdsb2JhbCA9IF9fd2VicGFja19yZXF1aXJlX18oL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4cG9ydHMpIHtcblxubW9kdWxlLmV4cG9ydHMgPSBmdW5jdGlvbiAoZXhlYykge1xuICB0cnkge1xuICAgIHJldHVybiAhIWV4ZWMoKTtcbiAgfSBjYXRjaCAoZXJyb3IpIHtcbiAgICByZXR1cm4gdHJ1ZTtcbiAgfVxufTtcblxuXG4vKioqLyB9KSxcblxuLyoqKi8gXCIuL25vZGVfbW9kdWxlcy9jb3JlLWpzL2ludGVybmFscy9mdW5jdGlvbi10by1zdHJpbmcuanNcIjpcbi8qISoqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqISpcXFxuICAhKioqIC4vbm9kZV9tb2R1bGVzL2NvcmUtanMvaW50ZXJuYWxzL2Z1bmN0aW9uLXRvLXN0cmluZy5qcyAqKiohXG4gIFxcKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKiovXG4vKiEgbm8gc3RhdGljIGV4cG9ydHMgZm91bmQgKi9cbi8qKiovIChmdW5jdGlvbihtb2R1bGUsIGV4cG9ydHMsIF9fd2VicGFja19yZXF1aXJlX18pIHtcblxudmFyIHNoYXJlZCA9IF9fd2VicGFja19yZXF1aXJlX18oLyohIC4uL2ludGVybmFscy9zaGFyZWQgKi8gXCIuL25vZGVfbW9kdWxlcy9jb3JlLWpzL2ludGVybmFscy9zaGFyZWQuanNcIik7XG5cbm1vZHVsZS5leHBvcnRzID0gc2hhcmVkKCduYXRpdmUtZnVuY3Rpb24tdG8tc3RyaW5nJywgRnVuY3Rpb24udG9TdHJpbmcpO1xuXG5cbi8qKiovIH0pLFxuXG4vKioqLyBcIi4vbm9kZV9tb2R1bGVzL2NvcmUtanMvaW50ZXJuYWxzL2dldC1pdGVyYXRvci1tZXRob2QuanNcIjpcbi8qISoqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKiEqXFxcbiAgISoqKiAu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BWQVIgSU5KRUNUSU9OICovfS5jYWxsKHRoaXMsIF9fd2VicGFja19yZXF1aXJlX18oLyohIC4vLi4vLi4vd2VicGFjay9idWlsZGluL2dsb2JhbC5qcyAqLyBcIi4vbm9kZV9tb2R1bGVzL3dlYnBhY2svYnVpbGRpbi9nbG9iYWwuanNcIikpKVxuXG4vKioqLyB9KSxcblxuLyoqKi8gXCIuL25vZGVfbW9kdWxlcy9jb3JlLWpzL2ludGVybmFscy9oYXMuanNcIjpcbi8qISoqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqISpcXFxuICAhKioqIC4vbm9kZV9tb2R1bGVzL2NvcmUtanMvaW50ZXJuYWxzL2hhcy5qcyAqKiohXG4gIFxcKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKiovXG4vKiEgbm8gc3RhdGljIGV4cG9ydHMgZm91bmQgKi9cbi8qKiovIChmdW5jdGlvbihtb2R1bGUsIGV4cG9ydHMpIHtcblxudmFyIGhhc093blByb3BlcnR5ID0ge30uaGFzT3duUHJvcGVydHk7XG5cbm1vZHVsZS5leHBvcnRzID0gZnVuY3Rpb24gKGl0LCBrZXkpIHtcbiAgcmV0dXJuIGhhc093blByb3BlcnR5LmNhbGwoaXQsIGtleSk7XG59O1xuXG5cbi8qKiovIH0pLFxuXG4vKioqLyBcIi4vbm9kZV9tb2R1bGVzL2NvcmUtanMvaW50ZXJuYWxzL2hpZGRlbi1rZXlzLmpzXCI6XG4vKiEqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqISpcXFxuICAhKioqIC4vbm9kZV9tb2R1bGVzL2NvcmUtanMvaW50ZXJuYWxzL2hpZGRlbi1rZXlzLmpzICoqKiFcbiAgXFwqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqL1xuLyohIG5vIHN0YXRpYyBleHBvcnRzIGZvdW5kICovXG4vKio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xsIDogdHlwZW9mIGl0ID09PSAnZnVuY3Rpb24nO1xufTtcblxuXG4vKioqLyB9KSxcblxuLyoqKi8gXCIuL25vZGVfbW9kdWxlcy9jb3JlLWpzL2ludGVybmFscy9pcy1wdXJlLmpzXCI6XG4vKiEqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKiohKlxcXG4gICEqKiogLi9ub2RlX21vZHVsZXMvY29yZS1qcy9pbnRlcm5hbHMvaXMtcHVyZS5qcyAqKiohXG4gIFxcKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqL1xuLyohIG5vIHN0YXRpYyBleHBvcnRzIGZvdW5kICovXG4vKioqLyAoZnVuY3Rpb24obW9kdWxlLCBleHBvcnRzKSB7XG5cbm1vZHVsZS5leHBvcnRzID0gZmFsc2U7XG5cblxuLyoqKi8gfSksXG5cbi8qKiovIFwiLi9ub2RlX21vZHVsZXMvY29yZS1qcy9pbnRlcm5hbHMvaXRlcmF0b3JzLWNvcmUuanNcIjpcbi8qISoqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKiohKlxcXG4gICEqKiogLi9ub2RlX21vZHVsZXMvY29yZS1qcy9pbnRlcm5hbHMvaXRlcmF0b3JzLWNvcmUuanMgKioqIVxuICBcXCoqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKiovXG4vKiEgbm8gc3RhdGljIGV4cG9ydHMgZm91bmQgKi9cbi8qKiovIChmdW5jdGlvbihtb2R1bGUsIGV4cG9ydHMsIF9fd2VicGFja19yZXF1aXJlX18pIHtcblxuXCJ1c2Ugc3RyaWN0XCI7XG5cbnZhciBnZXRQcm90b3R5cGVPZiA9IF9fd2VicGFja19yZXF1aXJlX18oLyohIC4uL2ludGVybmFscy9vYmplY3QtZ2V0LXByb3RvdHlwZS1vZiAqLyBcIi4vbm9kZV9tb2R1bGV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uLyohKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKiohKlxcXG4gICEqKiogLi9ub2RlX21vZHVsZXMvY29yZS1qcy9pbnRlcm5hbHMvaXRlcmF0b3JzLmpzICoqKiFcbiAgXFwqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKi9cbi8qISBubyBzdGF0aWMgZXhwb3J0cyBmb3VuZCAqL1xuLyoqKi8gKGZ1bmN0aW9uKG1vZHVsZSwgZXhwb3J0cykge1xuXG5tb2R1bGUuZXhwb3J0cyA9IHt9O1xuXG5cbi8qKiovIH0pLFxuXG4vKioqLyBcIi4vbm9kZV9tb2R1bGVzL2NvcmUtanMvaW50ZXJuYWxzL25hdGl2ZS1zeW1ib2wuanNcIjpcbi8qISoqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKiEqXFxcbiAgISoqKiAuL25vZGVfbW9kdWxlcy9jb3JlLWpzL2ludGVybmFscy9uYXRpdmUtc3ltYm9sLmpzICoqKiFcbiAgXFwqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKiovXG4vKiEgbm8gc3RhdGljIGV4cG9ydHMgZm91bmQgKi9cbi8qKiovIChmdW5jdGlvbihtb2R1bGUsIGV4cG9ydHMsIF9fd2VicGFja19yZXF1aXJlX18pIHtcblxudmFyIGZhaWxzID0gX193ZWJwYWNrX3JlcXVpcmVfXygvKiEgLi4vaW50ZXJuYWxzL2ZhaWxzICovIFwiLi9ub2RlX21vZHVsZXMvY29yZS1qcy9pbnRlcm5hbHMvZmFpbHMuanNcIik7XG5cbm1vZHVsZS5leHBvcnRzID0gISFPYmplY3QuZ2V0T3duUHJvcGVydHlTeW1ib2xzICYmICFmYWlscyhmdW5jdGlvbiAoKSB7XG4gIC8vIENocm9tZSAzOCBTeW1ib2wgaGFzIGluY29ycmVjdCB0b1N0cmluZyBjb252ZXJzaW9uXG4gIC8vIGVzbGludC1kaXNhYmxlLW5leHQtbGluZSBuby11bmRlZlxuICByZXR1cm4gIVN0cmluZyhTeW1ib2woKSk7XG59KTtcblxuXG4vKioqLyB9KSxcblxuLyoqKi8gXCIuL25vZGVfbW9kdWxlcy9jb3JlLWpzL2ludGVybmFscy9uYXRpdmUtd2Vhay1tYXAuanNcIjpcbi8qISoqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqISpcXFxuICAhKioqIC4vbm9kZV9tb2R1bGVzL2NvcmUtanMvaW50ZXJuYWxzL25hdGl2ZS13ZWFrLW1hcC5qcyAqKiohXG4gIFxcKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKiovXG4vKiEgbm8gc3RhdGljIGV4cG9ydHMgZm91bmQgKi9cbi8qKiovIChmdW5jdGlvbihtb2R1bGUsIGV4cG9ydHMsIF9fd2VicGFja19yZXF1aXJlX18pIHtcblxudmFyIGdsb2JhbCA9IF9fd2VicGFja19yZXF1aXJlX18oLyohIC4uL2ludGVybmFscy9nbG9iYWwgKi8gXCIuL25vZGVfbW9kdWxlcy9jb3JlLWpzL2ludGVybmFscy9nbG9iYWwuanNcIik7XG52YXIgbmF0aXZlRnVuY3Rpb25Ub1N0cmluZyA9IF9fd2VicGFja19yZXF1aXJlX18oLyohIC4uL2ludGVybmFscy9mdW5jdGlvbi10by1zdHJpbmcgKi8gXCIuL25vZGVfbW9kdWxlcy9jb3JlLWpzL2ludGVybmFscy9mdW5jdGlvbi10by1zdHJpbmcuanNcIik7XG5cbnZhciBXZWFrTWFwID0gZ2xvYmFsLldlYWtNYXA7XG5cbm1vZHVsZS5leHBvcnRzID0gdHlwZW9mIFdlYWtNYXAgPT09ICdmdW5jdGlvbicgJiYgL25hdGl2ZSBjb2RlLy50ZXN0KG5hdGl2ZUZ1bmN0aW9uVG9TdHJpbmcuY2FsbChXZ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ioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKiohKlxcXG4gICEqKiogLi9ub2RlX21vZHVsZXMvY29yZS1qcy9pbnRlcm5hbHMvb2JqZWN0LWdldC1vd24tcHJvcGVydHktc3ltYm9scy5qcyAqKiohXG4gIFxcKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqL1xuLyohIG5vIHN0YXRpYyBleHBvcnRzIGZvdW5kICovXG4vKioqLyAoZnVuY3Rpb24obW9kdWxlLCBleHBvcnRzKSB7XG5cbmV4cG9ydHMuZiA9IE9iamVjdC5nZXRPd25Qcm9wZXJ0eVN5bWJvbHM7XG5cblxuLyoqKi8gfSksXG5cbi8qKiovIFwiLi9ub2RlX21vZHVsZXMvY29yZS1qcy9pbnRlcm5hbHMvb2JqZWN0LWdldC1wcm90b3R5cGUtb2YuanNcIjpcbi8qISoqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKiohKlxcXG4gICEqKiogLi9ub2RlX21vZHVsZXMvY29yZS1qcy9pbnRlcm5hbHMvb2JqZWN0LWdldC1wcm90b3R5cGUtb2YuanMgKioqIVxuICBcXCoqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKiovXG4vKiEgbm8gc3RhdGljIGV4cG9ydHMgZm91bmQgKi9cbi8qKiovIChmdW5jdGlvbihtb2R1bGUsIGV4cG9ydHMsIF9fd2VicGFja19yZXF1aXJlX18pIHtcblxudmFyIGhhcyA9IF9fd2VicGFja19yZXF1aXJlX18oLyohIC4uL2ludGVybmFscy9oYXMgKi8gXCIuL25vZGVfbW9kdWxlcy9jb3JlLWpzL2ludGVybmFscy9oYXMuanNcIik7XG52YXIgdG9PYmplY3QgPSBfX3dlYnBhY2tfcmVxdWlyZV9fKC8qISAuLi9pbnRlcm5h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5cbi8qKiovIH0pLFxuXG4vKioqLyBcIi4vbm9kZV9tb2R1bGVzL2NvcmUtanMvaW50ZXJuYWxzL29iamVjdC1rZXlzLWludGVybmFsLmpzXCI6XG4vKiEqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqISpcXFxuICAhKioqIC4vbm9kZV9tb2R1bGVzL2NvcmUtanMvaW50ZXJuYWxzL29iamVjdC1rZXlzLWludGVybmFsLmpzICoqKiFcbiAgXFwqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqL1xuLyohIG5vIHN0YXRpYyBleHBvcnRzIGZvdW5kICovXG4vKioqLyAoZnVuY3Rpb24obW9kdWxlLCBleHBvcnRzLCBfX3dlYnBhY2tfcmVxdWlyZV9fKSB7XG5cbnZhciBoYXMgPSBfX3dlYnBhY2tfcmVxdWlyZV9fKC8qISAuLi9pbnRlcm5hbHMvaGFzICovIFwiLi9ub2RlX21vZHVsZXMvY29yZS1qcy9pbnRlcm5hbHMvaGFzLmpzXCIpO1xudmFyIHRvSW5kZXhlZE9iamVjdCA9IF9fd2VicGFja19yZXF1aXJlX18oLyohIC4uL2ludGVybmFscy90by1pbmRleGVkLW9iamVjdCAqLyBcIi4vbm9kZV9tb2R1bGVzL2NvcmUtanMvaW50ZXJuYWxzL3RvLWluZGV4ZWQtb2JqZWN0LmpzXCIpO1xudmFyIGFycmF5SW5jbHVkZXMgPSBfX3dlYnBhY2tfcmVxdWlyZV9fKC8qISAuLi9pbnRlcm5hbHMvYXJyYXktaW5jbHVkZXMgKi8gXCIuL25vZGVfbW9kdWxlcy9jb3JlLWpzL2ludGVybmFscy9hcnJheS1pbmNsdWRlcy5qc1wiKTtcbnZhciBoaWRkZW5LZXlzID0gX193ZWJwYWNrX3JlcXVpcmVfXygvKiEgLi4vaW50ZXJuYWxzL2hpZGRlbi1rZXlzICovIFwiLi9ub2RlX21vZH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PSBfX3dlYnBhY2tfcmVxdWlyZV9fKC8qISAuLi9pbnRlcm5hbHMvb2JqZWN0LWtleXMtaW50ZXJuYWwgKi8gXCIuL25vZGVfbW9kdWxlcy9jb3JlLWpzL2ludGVybmFscy9vYmplY3Qta2V5cy1pbnRlcm5hbC5qc1wiKTtcbnZhciBlbnVtQnVnS2V5cyA9IF9fd2VicGFja19yZXF1aXJlX18oLyohIC4uL2ludGVybmFscy9lbnVtLWJ1Zy1rZXlzICovIFwiLi9ub2RlX21vZHVsZXMvY29yZS1qcy9pbnRlcm5hbHMvZW51bS1idWcta2V5cy5qc1wiKTtcblxuLy8gMTkuMS4yLjE0IC8gMTUuMi4zLjE0IE9iamVjdC5rZXlzKE8pXG5tb2R1bGUuZXhwb3J0cyA9IE9iamVjdC5rZXlzIHx8IGZ1bmN0aW9uIGtleXMoTykge1xuICByZXR1cm4gaW50ZXJuYWxPYmplY3RLZXlzKE8sIGVudW1CdWdLZXlzKTtcbn07XG5cblxuLyoqKi8gfSksXG5cbi8qKiovIFwiLi9ub2RlX21vZHVsZXMvY29yZS1qcy9pbnRlcm5hbHMvb2JqZWN0LXByb3BlcnR5LWlzLWVudW1lcmFibGUuanNcIjpcbi8qISoqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKiohKlxcXG4gICEqKiogLi9ub2RlX21vZHVsZXMvY29yZS1qcy9pbnRlcm5hbHMvb2JqZWN0LXByb3BlcnR5LWlzLWVudW1lcmFibGUuanMgKioqIVxuICBcXCoqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKiovXG4vKiEgbm8gc3RhdGljIGV4cG9ydHMgZm91bmQgKi9cbi8qKiovIChmdW5jdGlvbihtb2R1bGUsIGV4cG9ydHMsIF9fd2VicGFja19yZXF1aXJlX18pIHtcblxuXCJ1c2Ugc3RyaWN0XCI7XG5cbnZ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Xhwb3J0cyA9IF9fd2VicGFja19yZXF1aXJlX18oLyohIC4uL2ludGVybmFscy9nbG9iYWwgKi8gXCIuL25vZGVfbW9kdWxlcy9jb3JlLWpzL2ludGVybmFscy9nbG9iYWwuanNcIik7XG5cblxuLyoqKi8gfSksXG5cbi8qKiovIFwiLi9ub2RlX21vZHVsZXMvY29yZS1qcy9pbnRlcm5hbHMvcmVkZWZpbmUuanNcIjpcbi8qISoqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKiohKlxcXG4gICEqKiogLi9ub2RlX21vZHVsZXMvY29yZS1qcy9pbnRlcm5hbHMvcmVkZWZpbmUuanMgKioqIVxuICBcXCoqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKiovXG4vKiEgbm8gc3RhdGljIGV4cG9ydHMgZm91bmQgKi9cbi8qKiovIChmdW5jdGlvbihtb2R1bGUsIGV4cG9ydHMsIF9fd2VicGFja19yZXF1aXJlX18pIHtcblxudmFyIGdsb2JhbCA9IF9fd2VicGFja19yZXF1aXJlX18oLyohIC4uL2ludGVybmFscy9nbG9iYWwgKi8gXCIuL25vZGVfbW9kdWxlcy9jb3JlLWpzL2ludGVybmFscy9nbG9iYWwuanNcIik7XG52YXIgc2hhcmVkID0gX193ZWJwYWNrX3JlcXVpcmVfXygvKiEgLi4vaW50ZXJuYWxzL3NoYXJlZCAqLyBcIi4vbm9kZV9tb2R1bGVzL2NvcmUtanMvaW50ZXJuYWxzL3NoYXJlZC5qc1wiKTtcbnZhciBoaWRlID0gX193ZWJwYWNrX3JlcXVpcmVfXygvKiEgLi4vaW50ZXJuYWxzL2hpZGUgKi8gXCIuL25vZGVfbW9kdWxlcy9jb3JlLWpzL2ludGVybmFscy9oaWRlLmpzXCIpO1xudmFyIGhhcyA9IF9fd2VicGFja19yZXF1aXJlX18oLyohIC4uL2ludGVybmFscy9oYXMgKi8gXCIuL25vZGVfbW9kdWxlcy9jb3JlLWp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gJ2Z1bmN0aW9uJyAmJiBnZXRJbnRlcm5hbFN0YXRlKHRoaXMpLnNvdXJjZSB8fCBuYXRpdmVGdW5jdGlvblRvU3RyaW5nLmNhbGwodGhpcyk7XG59KTtcblxuXG4vKioqLyB9KSxcblxuLyoqKi8gXCIuL25vZGVfbW9kdWxlcy9jb3JlLWpzL2ludGVybmFscy9yZXF1aXJlLW9iamVjdC1jb2VyY2libGUuanNcIjpcbi8qISoqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqISpcXFxuICAhKioqIC4vbm9kZV9tb2R1bGVzL2NvcmUtanMvaW50ZXJuYWxzL3JlcXVpcmUtb2JqZWN0LWNvZXJjaWJsZS5qcyAqKiohXG4gIFxcKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKiovXG4vKiEgbm8gc3RhdGljIGV4cG9ydHMgZm91bmQgKi9cbi8qKiovIChmdW5jdGlvbihtb2R1bGUsIGV4cG9ydHMpIHtcblxuLy8gYFJlcXVpcmVPYmplY3RDb2VyY2libGVgIGFic3RyYWN0IG9wZXJhdGlvblxuLy8gaHR0cHM6Ly90YzM5LmdpdGh1Yi5pby9lY21hMjYyLyNzZWMtcmVxdWlyZW9iamVjdGNvZXJjaWJsZVxubW9kdWxlLmV4cG9ydHMgPSBmdW5jdGlvbiAoaXQpIHtcbiAgaWYgKGl0ID09IHVuZGVmaW5lZCkgdGhyb3cgVHlwZUVycm9yKFwiQ2FuJ3QgY2FsbCBtZXRob2Qgb24gXCIgKyBpdCk7XG4gIHJldHVybiBpdDtcbn07XG5cblxuLyoqKi8gfSksXG5cbi8qKiovIFwiLi9ub2RlX21vZHVsZXMvY29yZS1qcy9pbnRlcm5hbHMvc2V0LWdsb2JhbC5qc1wiOlxuLyohKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqISpcX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50ZXJuYWxzL3NoYXJlZC1rZXkuanNcIjpcbi8qISoqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKiEqXFxcbiAgISoqKiAuL25vZGVfbW9kdWxlcy9jb3JlLWpzL2ludGVybmFscy9zaGFyZWQta2V5LmpzICoqKiFcbiAgXFwqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKiovXG4vKiEgbm8gc3RhdGljIGV4cG9ydHMgZm91bmQgKi9cbi8qKiovIChmdW5jdGlvbihtb2R1bGUsIGV4cG9ydHMsIF9fd2VicGFja19yZXF1aXJlX18pIHtcblxudmFyIHNoYXJlZCA9IF9fd2VicGFja19yZXF1aXJlX18oLyohIC4uL2ludGVybmFscy9zaGFyZWQgKi8gXCIuL25vZGVfbW9kdWxlcy9jb3JlLWpzL2ludGVybmFscy9zaGFyZWQuanNcIik7XG52YXIgdWlkID0gX193ZWJwYWNrX3JlcXVpcmVfXygvKiEgLi4vaW50ZXJuYWxzL3VpZCAqLyBcIi4vbm9kZV9tb2R1bGVzL2NvcmUtanMvaW50ZXJuYWxzL3VpZC5qc1wiKTtcblxudmFyIGtleXMgPSBzaGFyZWQoJ2tleXMnKTtcblxubW9kdWxlLmV4cG9ydHMgPSBmdW5jdGlvbiAoa2V5KSB7XG4gIHJldHVybiBrZXlzW2tleV0gfHwgKGtleXNba2V5XSA9IHVpZChrZXkpKTtcbn07XG5cblxuLyoqKi8gfSksXG5cbi8qKiovIFwiLi9ub2RlX21vZHVsZXMvY29yZS1qcy9pbnRlcm5hbHMvc2hhcmVkLmpzXCI6XG4vKiEqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKiEqXFxcbiAgISoqKiAuL25vZGVfbW9kdWxlcy9jb3JlLWpzL2ludGVybmFscy9zaGFyZWQuanMgKioqIVxuICBcXCoqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKio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2VyKHBvcyk7XG4gIHZhciBzaXplID0gUy5sZW5ndGg7XG4gIHZhciBmaXJzdCwgc2Vjb25kO1xuICBpZiAocG9zaXRpb24gPCAwIHx8IHBvc2l0aW9uID49IHNpemUpIHJldHVybiBDT05WRVJUX1RPX1NUUklORyA/ICcnIDogdW5kZWZpbmVkO1xuICBmaXJzdCA9IFMuY2hhckNvZGVBdChwb3NpdGlvbik7XG4gIHJldHVybiBmaXJzdCA8IDB4RDgwMCB8fCBmaXJzdCA+IDB4REJGRiB8fCBwb3NpdGlvbiArIDEgPT09IHNpemVcbiAgICB8fCAoc2Vjb25kID0gUy5jaGFyQ29kZUF0KHBvc2l0aW9uICsgMSkpIDwgMHhEQzAwIHx8IHNlY29uZCA+IDB4REZGRlxuICAgICAgPyBDT05WRVJUX1RPX1NUUklORyA/IFMuY2hhckF0KHBvc2l0aW9uKSA6IGZpcnN0XG4gICAgICA6IENPTlZFUlRfVE9fU1RSSU5HID8gUy5zbGljZShwb3NpdGlvbiwgcG9zaXRpb24gKyAyKSA6IChmaXJzdCAtIDB4RDgwMCA8PCAxMCkgKyAoc2Vjb25kIC0gMHhEQzAwKSArIDB4MTAwMDA7XG59O1xuXG5cbi8qKiovIH0pLFxuXG4vKioqLyBcIi4vbm9kZV9tb2R1bGVzL2NvcmUtanMvaW50ZXJuYWxzL3RvLWFic29sdXRlLWluZGV4LmpzXCI6XG4vKiEqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqISpcXFxuICAhKioqIC4vbm9kZV9tb2R1bGVzL2NvcmUtanMvaW50ZXJuYWxzL3RvLWFic29sdXRlLWluZGV4LmpzICoqKiFcbiAgXFwqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqL1xuLyohIG5vIHN0YXRpYyBleHBvcnRzIGZvdW5kICovXG4vKioqLyAoZnVuY3Rpb24obW9kdWxlLCBleHBvcnRzLCBf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9tb2R1bGVzL2NvcmUtanMvaW50ZXJuYWxzL3ZhbGlkYXRlLXNldC1wcm90b3R5cGUtb2YtYXJndW1lbnRzLmpzXCI6XG4vKiEqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqISpcXFxuICAhKioqIC4vbm9kZV9tb2R1bGVzL2NvcmUtanMvaW50ZXJuYWxzL3ZhbGlkYXRlLXNldC1wcm90b3R5cGUtb2YtYXJndW1lbnRzLmpzICoqKiFcbiAgXFwqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqL1xuLyohIG5vIHN0YXRpYyBleHBvcnRzIGZvdW5kICovXG4vKioqLyAoZnVuY3Rpb24obW9kdWxlLCBleHBvcnRzLCBfX3dlYnBhY2tfcmVxdWlyZV9fKSB7XG5cbnZhciBpc09iamVjdCA9IF9fd2VicGFja19yZXF1aXJlX18oLyohIC4uL2ludGVybmFscy9pcy1vYmplY3QgKi8gXCIuL25vZGVfbW9kdWxlcy9jb3JlLWpzL2ludGVybmFscy9pcy1vYmplY3QuanNcIik7XG52YXIgYW5PYmplY3QgPSBfX3dlYnBhY2tfcmVxdWlyZV9fKC8qISAuLi9pbnRlcm5hbHMvYW4tb2JqZWN0ICovIFwiLi9ub2RlX21vZHVsZXMvY29yZS1qcy9pbnRlcm5hbHMvYW4tb2JqZWN0LmpzXCIpO1xuXG5tb2R1bGUuZXhwb3J0cyA9IGZ1bmN0aW9uIChPLCBwcm90bykge1xuICBhbk9iamVjdChPKTtcbiAgaWYgKCFpc09iamVjdChwcm90bykgJiYgcHJvdG8gIT09IG51bGwpIHtcbiAgICB0aHJvdyBUeXBlRXJyb3IoXCJDYW4ndCBzZXQgXCIgKyBTdHJpbmcocHJvdG8pICsgJyBhcyBhIHByb3RvdHlwZScpO1xuICB9XG59O1xuXG5cbi8qKiovIH0pL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FxzKn19L2dpLCBtb21lbnQoKS5mb3JtYXQoXCJISDptbVwiKSlcbiAgICAgICAgICAgIC5yZXBsYWNlKC97e1xccyp0aXRsZVxccyp9fS9naSwgZmlsZW5hbWUpXG4gICAgICAgICAgICAucmVwbGFjZSgve3tcXHMqKGRhdGV8dGltZSlcXHMqKChbKy1dXFxkKykoW3lxbXdkaHNdKSk/XFxzKig6Lis/KT99fS9naSwgKF8sIF90aW1lT3JEYXRlLCBjYWxjLCB0aW1lRGVsdGEsIHVuaXQsIG1vbWVudEZvcm1hdCkgPT4ge1xuICAgICAgICAgICAgY29uc3Qgbm93ID0gbW9tZW50KCk7XG4gICAgICAgICAgICBjb25zdCBjdXJyZW50RGF0ZSA9IGRhdGUuY2xvbmUoKS5zZXQoe1xuICAgICAgICAgICAgICAgIGhvdXI6IG5vdy5nZXQoXCJob3VyXCIpLFxuICAgICAgICAgICAgICAgIG1pbnV0ZTogbm93LmdldChcIm1pbnV0ZVwiKSxcbiAgICAgICAgICAgICAgICBzZWNvbmQ6IG5vdy5nZXQoXCJzZWNvbmRcIiksXG4gICAgICAgICAgICB9KTtcbiAgICAgICAgICAgIGlmIChjYWxjKSB7XG4gICAgICAgICAgICAgICAgY3VycmVudERhdGUuYWRkKHBhcnNlSW50KHRpbWVEZWx0YSwgMTApLCB1bml0KTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgIGlmIChtb21lbnRGb3JtYXQpIHtcbiAgICAgICAgICAgICAgICByZXR1cm4gY3VycmVudERhdGUuZm9ybWF0KG1vbWVudEZvcm1hdC5zdWJzdHJpbmcoMSkudHJpbSgpKTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgIHJldHVybiBjdXJyZW50RGF0ZS5mb3JtYXQoZm9ybWF0KTtcbiAgICAgICAgfSlcbiAgICAgICAgICAgIC5yZXBsYWNlKC97e1xccyp5ZXN0ZXJkYXlcXHMqfX0vZ2ksIGRhdGUuY2xvbmUoKS5zdWJ0cmFjdCgxLCBcImRheV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XG4gICAgICAgICAgICAucmVwbGFjZSgve3tcXHMqKGRhdGV8dGltZSlcXHMqKChbKy1dXFxkKykoW3lxbXdkaHNdKSk/XFxzKig6Lis/KT99fS9naSwgKF8sIF90aW1lT3JEYXRlLCBjYWxjLCB0aW1lRGVsdGEsIHVuaXQsIG1vbWVudEZvcm1hdCkgPT4ge1xuICAgICAgICAgICAgY29uc3Qgbm93ID0gd2luZG93Lm1vbWVudCgpO1xuICAgICAgICAgICAgY29uc3QgY3VycmVudERhdGUgPSBkYXRlLmNsb25lKCkuc2V0KHtcbiAgICAgICAgICAgICAgICBob3VyOiBub3cuZ2V0KFwiaG91clwiKSxcbiAgICAgICAgICAgICAgICBtaW51dGU6IG5vdy5nZXQoXCJtaW51dGVcIiksXG4gICAgICAgICAgICAgICAgc2Vjb25kOiBub3cuZ2V0KFwic2Vjb25kXCIpLFxuICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICBpZiAoY2FsYykge1xuICAgICAgICAgICAgICAgIGN1cnJlbnREYXRlLmFkZChwYXJzZUludCh0aW1lRGVsdGEsIDEwKSwgdW5pdCk7XG4gICAgICAgICAgICB9XG4gICAgICAgICAgICBpZiAobW9tZW50Rm9ybWF0KSB7XG4gICAgICAgICAgICAgICAgcmV0dXJuIGN1cnJlbnREYXRlLmZvcm1hdChtb21lbnRGb3JtYXQuc3Vic3RyaW5nKDEpLnRyaW0oKSk7XG4gICAgICAgICAgICB9XG4gICAgICAgICAgICByZXR1cm4gY3VycmVudERhdGUuZm9ybWF0KGZvcm1hdCk7XG4gICAgICAgIH0pXG4gICAgICAgICAgICAucmVwbGFjZSgve3tcXHMqdGl0bGVcXHMqfX0vZ2ksIGZpbGVuYW1lKVxuICAgICAgICAgICAgLnJlcGxhY2UoL3t7XFxzKnRpbWVcXHMqfX0vZ2ksIHdpbmRvdy5tb21lbnQoKS5mb3JtYXQoXCJISDptbVwiKSlcbiAgICAgICAgICAgIC5yZXBsYWNlKC97e1xccyooc3VuZGF5fG1vbmR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ZS5jbG9uZSgpLnNldCh7XG4gICAgICAgICAgICAgICAgaG91cjogbm93LmdldChcImhvdXJcIiksXG4gICAgICAgICAgICAgICAgbWludXRlOiBub3cuZ2V0KFwibWludXRlXCIpLFxuICAgICAgICAgICAgICAgIHNlY29uZDogbm93LmdldChcInNlY29uZFwiKSxcbiAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgaWYgKGNhbGMpIHtcbiAgICAgICAgICAgICAgICBjdXJyZW50RGF0ZS5hZGQocGFyc2VJbnQodGltZURlbHRhLCAxMCksIHVuaXQpO1xuICAgICAgICAgICAgfVxuICAgICAgICAgICAgaWYgKG1vbWVudEZvcm1hdCkge1xuICAgICAgICAgICAgICAgIHJldHVybiBjdXJyZW50RGF0ZS5mb3JtYXQobW9tZW50Rm9ybWF0LnN1YnN0cmluZygxKS50cmltKCkpO1xuICAgICAgICAgICAgfVxuICAgICAgICAgICAgcmV0dXJuIGN1cnJlbnREYXRlLmZvcm1hdChmb3JtYXQpO1xuICAgICAgICB9KVxuICAgICAgICAgICAgLnJlcGxhY2UoL3t7XFxzKmRhdGVcXHMqfX0vZ2ksIGZpbGVuYW1lKVxuICAgICAgICAgICAgLnJlcGxhY2UoL3t7XFxzKnRpbWVcXHMqfX0vZ2ksIHdpbmRvdy5tb21lbnQoKS5mb3JtYXQoXCJISDptbVwiKSlcbiAgICAgICAgICAgIC5yZXBsYWNlKC97e1xccyp0aXRsZVxccyp9fS9naSwgZmlsZW5hbWUpKTtcbiAgICAgICAgLy8gZXNsaW50LWRpc2FibGUtbmV4dC1saW5lIEB0eXBlc2NyaXB0LWVzbGludC9uby1leHBsaWNpdC1hbnlcbiAgICAgICAgd2luZG93LmFwcC5mb2xkTWFuYWdlci5zYXZlKGNyZWF0ZWRGaWxlLCBJRm9sZEluZm8pO1xuICAgICAgICByZXR1cm4gY3JlYXRlZEZpbGU7XG4gICAgfVxuICAgIGNhdGNoIChlcnIpIHtcbiAgICAgICAgY29uc29sZS5lcnJvcihgRmFp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ICBjb25zdCBub3JtYWxpemVkUGF0aCA9IGF3YWl0IGdldE5vdGVQYXRoKGZvbGRlciwgZmlsZW5hbWUpO1xuICAgIHRyeSB7XG4gICAgICAgIGNvbnN0IGNyZWF0ZWRGaWxlID0gYXdhaXQgdmF1bHQuY3JlYXRlKG5vcm1hbGl6ZWRQYXRoLCB0ZW1wbGF0ZUNvbnRlbnRzXG4gICAgICAgICAgICAucmVwbGFjZSgve3tcXHMqKGRhdGV8dGltZSlcXHMqKChbKy1dXFxkKykoW3lxbXdkaHNdKSk/XFxzKig6Lis/KT99fS9naSwgKF8sIF90aW1lT3JEYXRlLCBjYWxjLCB0aW1lRGVsdGEsIHVuaXQsIG1vbWVudEZvcm1hdCkgPT4ge1xuICAgICAgICAgICAgY29uc3Qgbm93ID0gd2luZG93Lm1vbWVudCgpO1xuICAgICAgICAgICAgY29uc3QgY3VycmVudERhdGUgPSBkYXRlLmNsb25lKCkuc2V0KHtcbiAgICAgICAgICAgICAgICBob3VyOiBub3cuZ2V0KFwiaG91clwiKSxcbiAgICAgICAgICAgICAgICBtaW51dGU6IG5vdy5nZXQoXCJtaW51dGVcIiksXG4gICAgICAgICAgICAgICAgc2Vjb25kOiBub3cuZ2V0KFwic2Vjb25kXCIpLFxuICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICBpZiAoY2FsYykge1xuICAgICAgICAgICAgICAgIGN1cnJlbnREYXRlLmFkZChwYXJzZUludCh0aW1lRGVsdGEsIDEwKSwgdW5pdCk7XG4gICAgICAgICAgICB9XG4gICAgICAgICAgICBpZiAobW9tZW50Rm9ybWF0KSB7XG4gICAgICAgICAgICAgICAgcmV0dXJuIGN1cnJlbnREYXRlLmZvcm1hdChtb21lbnRGb3JtYXQuc3Vic3RyaW5nKDEpLnRyaW0oKSk7XG4gICAgICAgICAgICB9XG4gICAgICAgICAgICByZXR1cm4gY3VycmVudERhdGUuZm9ybWF0KGZvcm1hdCk7XG4gICAgICAgIH0pXG4gICAgICAgICAgICAucmVwb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XG4gICAgICAgICAgICAgICAgICAgIGxpc3QucG9zaXRpb24uZW5kLmxpbmUgPj0gY3Vyc29yLmxpbmUpIHtcbiAgICAgICAgICAgICAgICAgICAgcmV0dXJuIGxpc3Q7XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfSk7XG4gICAgICAgIH1cbiAgICAgICAgcmV0dXJuIGN1cnJlbnRCbG9jaztcbiAgICB9XG5cbiAgICBwcml2YXRlIHN0YXRpYyBnZXRJZE9mQmxvY2soXG4gICAgICAgIGVkaXRvcjogRWRpdG9yLFxuICAgICAgICBibG9jazogU2VjdGlvbkNhY2hlIHwgTGlzdEl0ZW1DYWNoZSxcbiAgICApOiBzdHJpbmcge1xuICAgICAgICBjb25zdCBibG9ja0lkID0gYmxvY2suaWQ7XG5cbiAgICAgICAgaWYgKGJsb2NrSWQpIHtcbiAgICAgICAgICAgIHJldHVybiBibG9ja0lkO1xuICAgICAgICB9XG5cbiAgICAgICAgLy8gQWRkIGEgYmxvY2sgaWRcbiAgICAgICAgY29uc3Qgc2VjdGlvbkVuZCA9IGJsb2NrLnBvc2l0aW9uLmVuZDtcbiAgICAgICAgY29uc3QgcG9zID0ge1xuICAgICAgICAgICAgY2g6IHNlY3Rpb25FbmQuY29sLFxuICAgICAgICAgICAgbGluZTogc2VjdGlvbkVuZC5saW5lLFxuICAgICAgICB9O1xuXG4gICAgICAgIGNvbnN0IG5ld0lkID0gTWF0aC5yYW5kb20oKS50b1N0cmluZygzNikuc3Vic3RyaW5nKDIsIDgpO1xuICAgICAgICBjb25zdCBzcGFjZXIgPSBCbG9ja1V0aWxzLnNob3VsZEluc2VydEFmdGVyKGJsb2NrKSA/IFwiXFxuXFxuXCIgOiBcIiBcIjtcblxuICAgICAgICBlZGl0b3IucmVwbGFjZVJhbmdlKGAke3NwYWNlcn1eJHtuZXdJZH1gLCBwb3MpO1xuICAgICAgICByZXR1cm4gbmV3SWQ7XG4gICAgfVxuXG4gICAgcHJpdmF0ZSBzdGF0aWM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1Y3RvcihwbHVnaW46IEFkdmFuY2VkVVJJLCBwcml2YXRlIGZpbGU/OiBzdHJpbmcgfCB1bmRlZmluZWQpIHtcbiAgICAgICAgc3VwZXIocGx1Z2luLmFwcCk7XG4gICAgICAgIHRoaXMucGx1Z2luID0gcGx1Z2luO1xuICAgICAgICB0aGlzLnNldFBsYWNlaG9sZGVyKFwiVHlwZSB5b3VyIGRhdGEgdG8gYmUgd3JpdHRlbiB0byB0aGUgZmlsZSBvciBsZWF2ZSBpdCBlbXB0eSB0byBqdXN0IG9wZW4gaXRcIik7XG4gICAgfVxuXG5cbiAgICBnZXRTdWdnZXN0aW9ucyhxdWVyeTogc3RyaW5nKTogRW50ZXJEYXRhW10ge1xuICAgICAgICBpZiAocXVlcnkgPT0gXCJcIikgcXVlcnkgPSBudWxsO1xuXG4gICAgICAgIGxldCBzdWdnZXN0aW9uczogRW50ZXJEYXRhW10gPSBbXTtcbiAgICAgICAgZm9yIChjb25zdCBtb2RlIG9mIHRoaXMubW9kZXMpIHtcbiAgICAgICAgICAgIGlmICghKG1vZGUgPT09IFwib3ZlcndyaXRlXCIgJiYgIXF1ZXJ5KSkge1xuICAgICAgICAgICAgICAgIGxldCBkaXNwbGF5OiBzdHJpbmc7XG4gICAgICAgICAgICAgICAgaWYgKHF1ZXJ5KSB7XG4gICAgICAgICAgICAgICAgICAgIGlmIChtb2RlKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICBkaXNwbGF5ID0gYFdyaXRlIFwiJHtxdWVyeX1cIiBpbiAke21vZGV9IG1vZGVgO1xuICAgICAgICAgICAgICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgICAgICAgICAgICAgZGlzcGxheSA9IGBXcml0ZSBcIiR7cXVlcnl9XCJgO1xuICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgICAgICAgICAgaWYgKG1vZGUpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIGRpc3BsYXkgPSBgT3BlbiBpbiAke21vZGV9IG1vZGVgO1xuICAgICAgICAgICAgICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgICAgICAgICAgICAgZGlzcGxheSA9IGBPcGVuYDtcbiAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICBzdWdnZXN0aW9ucy5wdXNoKHtcbiAgICAgICAgICAgICAgICAgICAgZGF0YTogcXVlcnksXG4gICAgICAgICAgICAgICAgICAgIGRpc3BsYXk6IGRpc3BsYXksXG4gICAgICAgICAgICAgICAgICAgIG1vZGU6IG1vZGUsXG4gICAgICAgICAgICAgICAgICAgIGZ1bmM6ICgpID0+IHtcbiAgICAgICAgICAgICAgICAgICAgICAgIGlmICh0aGlzLmZpbGUpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB0aGlzLnBsdWdpbi5jb3B5VVJJKHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgZmlsZXBhdGg6IHRoaXMuZmlsZSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgZGF0YTogcXVlcnksXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIG1vZGU6IG1vZGUgYXMgUGFyYW1ldGVyc1tcIm1vZGVcIl1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgICAgICAgICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgdGhpcy5wbHVnaW4uY29weVVSSSh7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGRhaWx5OiBcInRydWVcIixcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgZGF0YTogcXVlcnksXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIG1vZGU6IG1vZGUgYXMgUGFyYW1ldGVyc1tcIm1vZGVcIl1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB9KTtcbiAgICAg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VxuICAgICAgICAgICAgLmFkZFRvZ2dsZShjYiA9PiBjYlxuICAgICAgICAgICAgICAgIC5zZXRWYWx1ZSh0aGlzLnBsdWdpbi5zZXR0aW5ncy5vcGVuRmlsZVdpdGhvdXRXcml0ZUluTmV3UGFuZSlcbiAgICAgICAgICAgICAgICAub25DaGFuZ2UodmFsdWUgPT4ge1xuICAgICAgICAgICAgICAgICAgICB0aGlzLnBsdWdpbi5zZXR0aW5ncy5vcGVuRmlsZVdpdGhvdXRXcml0ZUluTmV3UGFuZSA9IHZhbHVlO1xuICAgICAgICAgICAgICAgICAgICB0aGlzLnBsdWdpbi5zYXZlU2V0dGluZ3MoKTtcbiAgICAgICAgICAgICAgICB9KSk7XG5cbiAgICAgICAgbmV3IFNldHRpbmcoY29udGFpbmVyRWwpXG4gICAgICAgICAgICAuc2V0TmFtZShcIlVzZSBVSUQgaW5zdGVhZCBvZiBmaWxlIHBhdGhzXCIpXG4gICAgICAgICAgICAuYWRkVG9nZ2xlKGNiID0+IGNiXG4gICAgICAgICAgICAgICAgLnNldFZhbHVlKHRoaXMucGx1Z2luLnNldHRpbmdzLnVzZVVJRClcbiAgICAgICAgICAgICAgICAub25DaGFuZ2UodmFsdWUgPT4ge1xuICAgICAgICAgICAgICAgICAgICB0aGlzLnBsdWdpbi5zZXR0aW5ncy51c2VVSUQgPSB2YWx1ZTtcbiAgICAgICAgICAgICAgICAgICAgdGhpcy5wbHVnaW4uc2F2ZVNldHRpbmdzKCk7XG4gICAgICAgICAgICAgICAgICAgIHRoaXMuZGlzcGxheSgpO1xuICAgICAgICAgICAgICAgIH0pXG4gICAgICAgICAgICApO1xuXG4gICAgICAgIGlmICh0aGlzLnBsdWdpbi5zZXR0aW5ncy51c2VVSUQpIHtcbiAgICAgICAgICAgIG5ldyBTZXR0aW5nKGNvbnRhaW5lckVsKVxuICAgICAgICAgICAgICAgIC5zZXROYW1lKFwiQWRkIGZpbGVwYXRoIHBhcmFtZXRlclwiKVxuICAgICAgICAgICAg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wiY29weSBVUkkgZm9yIGRhaWx5IG5vdGVcIixcbiAgICAgICAgICAgIGNhbGxiYWNrOiAoKSA9PiBuZXcgRW50ZXJEYXRhTW9kYWwodGhpcykub3BlbigpXG4gICAgICAgIH0pO1xuXG4gICAgICAgIHRoaXMuYWRkQ29tbWFuZCh7XG4gICAgICAgICAgICBpZDogXCJjb3B5LXVyaS1zZWFyY2gtYW5kLXJlcGxhY2VcIixcbiAgICAgICAgICAgIG5hbWU6IFwiY29weSBVUkkgZm9yIHNlYXJjaCBhbmQgcmVwbGFjZVwiLFxuICAgICAgICAgICAgY2FsbGJhY2s6ICgpID0+IHtcbiAgICAgICAgICAgICAgICBjb25zdCBmaWxlTW9kYWwgPSBuZXcgRmlsZU1vZGFsKHRoaXMsIFwiVXNlZCBmaWxlIGZvciBzZWFyY2ggYW5kIHJlcGxhY2VcIik7XG4gICAgICAgICAgICAgICAgZmlsZU1vZGFsLm9wZW4oKTtcbiAgICAgICAgICAgICAgICBmaWxlTW9kYWwub25DaG9vc2VJdGVtID0gKGZpbGVQYXRoOiBGaWxlTW9kYWxEYXRhKSA9PiB7XG4gICAgICAgICAgICAgICAgICAgIGNvbnN0IHNlYXJjaE1vZGFsID0gbmV3IFNlYXJjaE1vZGFsKHRoaXMpO1xuICAgICAgICAgICAgICAgICAgICBzZWFyY2hNb2RhbC5vcGVuKCk7XG4gICAgICAgICAgICAgICAgICAgIHNlYXJjaE1vZGFsLm9uQ2hvb3NlU3VnZ2VzdGlvbiA9IChpdGVtOiBTZWFyY2hNb2RhbERhdGEpID0+IHtcbiAgICAgICAgICAgICAgICAgICAgICAgIG5ldyBSZXBsYWNlTW9kYWwodGhpcywgaXRlbSwgZmlsZVBhdGg/LnNvdXJjZSkub3BlbigpO1xuICAgICAgICAgICAgICAgICAgICB9O1xuICAgICAgICAgICAgICAgIH07XG4gICAgICAgICAgICB9LFxuICAgICAgICB9KTtcblxuICAgICAgICB0aGlzLmFkZENvbW1hbmQoe1xuICAgICAgICAgICAgaWQ6IFwiY29weS11cmktY29tbWFuZFwiLFxuICAgICAgICAgICAgbmFtZTogXCJjb3B5IFVSSSBmb3IgY29tbWFuZFwiLFxuICAgICAgICAgICAgY2FsbGJhY2s6ICgpID0+IHtcbiAgICAgICAgICAgICAgICBjb25zdCBmaWxlTW9kYWwgPSBuZXcgRmlsZU1vZGFsKHRoaXMsIFwiU2VsZWN0IGEgZmlsZSB0byBiZSBvcGVuZWQgYmVmb3JlIGV4ZWN1dGluZyB0aGUgY29tbWFuZFwiKTtcbiAgICAgICAgICAgICAgICBmaWxlTW9kYWwub3BlbigpO1xuICAgICAgICAgICAgICAgIGZpbGVNb2RhbC5vbkNob29zZUl0ZW0gPSAoaXRlbTogRmlsZU1vZGFsRGF0YSkgPT4ge1xuICAgICAgICAgICAgICAgICAgICBuZXcgQ29tbWFuZE1vZGFsKHRoaXMsIGl0ZW0/LnNvdXJjZSkub3BlbigpO1xuICAgICAgICAgICAgICAgIH07XG4gICAgICAgICAgICB9XG4gICAgICAgIH0pO1xuXG4gICAgICAgIHRoaXMuYWRkQ29tbWFuZCh7XG4gICAgICAgICAgICBpZDogXCJjb3B5LXVyaS1ibG9ja1wiLFxuICAgICAgICAgICAgbmFtZTogXCJjb3B5IFVSSSBmb3IgY3VycmVudCBibG9ja1wiLFxuICAgICAgICAgICAgY2hlY2tDYWxsYmFjazogKGNoZWNraW5nKSA9PiB7XG4gICAgICAgICAgICAgICAgY29uc3QgdmlldyA9IHRoaXMuYXBwLndvcmtzcGFjZS5nZXRBY3RpdmVWaWV3T2ZUeXBlKE1hcmtkb3duVmlldyk7XG4gICAgICAgICAgICAgICAgaWYgKGNoZWNraW5nKSByZXR1cm4gdmlldyAhPSB1bmRlZmluZWQ7XG4gICAgICAgICAgICAgICAgY29uc3QgaWQgPSBCbG9ja1V0aWxzLmdldEJsb2NrSWQoKTtcbiAgICAgICAgICAgICAgICBpZiAoaWQpIHtcbiAgICAgICAgICAgICAgICAgICAgdGhpcy5jb3B5VVJJKHtcbiAgICAgICAgICAgICAgICAgICAgICAgIGZpbGVwYXRoOiB2aWV3LmZpbGUucGF0aCxcbiAgICAgICAgICAgICAgICAgICAgICAgIGJsb2NrOiBpZFxuICAgICAgICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9XG4gICAgICAgIH0pO1xuXG4gICAgICAgIHRoaXMucmVnaXN0ZXJPYnNpZGlhblByb3RvY29sSGFuZGxlcihcImFkdmFuY2VkLXVyaVwiLCBhc3luYyAoZSkgPT4ge1xuICAgICAgICAgICAgY29uc3QgcGFyYW1ldGVycyA9IGUgYXMgdW5rbm93biBhcyBQYXJhbWV0ZXJzO1xuXG4gICAgICAgICAgICAvKiogQWxsb3dzIHdyaXRpbmcgdG8gbmV3IGNyZWF0ZWQgZGFpbHkgbm90ZSB3aXRob3V0IGFueSBgUGFyYW1ldGVycy5tb2RlYCAqL1xuICAgICAgICAgICAgbGV0IGNyZWF0ZWREYWlseU5vdGUgPSBmYWxzZTtcbiAgICAgICAgICAgIGZvciAoY29uc3QgcGFyYW1ldGVyIGluIHBhcmFtZXRlcnMpIHtcbiAgICAgICAgICAgICAgICAocGFyYW1ldGVycyBhcyBhbnkpW3BhcmFtZXRlcl0gPSBkZWNvZGVVUklDb21wb25lbnQoKHBhcmFtZXRlcnMgYXMgYW55KVtwYXJhbWV0ZXJdKTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgIHRoaXMubGFzdFBhcmFtZXRlcnMgPSB7IC4uLnBhcmFtZXRlcnMgfTtcbiAgICAgICAgICAgIGlmIChwYXJhbWV0ZXJzLnVpZCkge1xuICAgICAgICAgICAgICAgIGNvbnN0IHJlcyA9IHRoaXMuZ2V0RmlsZUZyb21VSUQocGFyYW1ldGVycy51aWQpPy5wYXRoO1xuICAgICAgICAgICAgICAgIGlmIChyZXMgIT0gdW5kZWZpbmVkKSB7XG4gICAgICAgICAgICAgICAgICAgIHBhcmFtZXRlcnMuZmlsZXBhdGgg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ZmlsZXBhdGgpIHtcbiAgICAgICAgICAgICAgICBwYXJhbWV0ZXJzLmZpbGVwYXRoID0gbm9ybWFsaXplUGF0aChwYXJhbWV0ZXJzLmZpbGVwYXRoKTtcbiAgICAgICAgICAgICAgICBjb25zdCBpbmRleCA9IHBhcmFtZXRlcnMuZmlsZXBhdGgubGFzdEluZGV4T2YoXCIuXCIpO1xuICAgICAgICAgICAgICAgIGNvbnN0IGV4dGVuc2lvbiA9IHBhcmFtZXRlcnMuZmlsZXBhdGguc3Vic3RyaW5nKGluZGV4IDwgMCA/IHBhcmFtZXRlcnMuZmlsZXBhdGgubGVuZ3RoIDogaW5kZXgpO1xuXG4gICAgICAgICAgICAgICAgaWYgKGV4dGVuc2lvbiA9PT0gXCJcIikge1xuICAgICAgICAgICAgICAgICAgICBwYXJhbWV0ZXJzLmZpbGVwYXRoID0gcGFyYW1ldGVycy5maWxlcGF0aCArIFwiLm1kXCI7XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfSBlbHNlIGlmIChwYXJhbWV0ZXJzLmRhaWx5ID09PSBcInRydWVcIikge1xuICAgICAgICAgICAgICAgIGlmICghYXBwSGFzRGFpbHlOb3Rlc1BsdWdpbkxvYWRlZCgpKSB7XG4gICAgICAgICAgICAgICAgICAgIG5ldyBOb3RpY2UoXCJEYWlseSBub3RlcyBwbHVnaW4gaXMgbm90IGxvYWRlZFwiKTtcbiAgICAgICAgICAgICAgICAgICAgcmV0dXJuO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICBjb25zdCBtb21lbnQgPSB3aW5kb3cubW9tZW50KERhdGUubm93KCkpO1xuICAgICAgICAgICAgICAgIGNvbnN0IGFsbERhaWx5Tm90ZXMgPSBnZXRBbGxEYWlseU5vdGVzKCk7XG4gICAgICAgICAgICAgICAgbGV0IGRhaWx5Tm90ZSA9IGdldERhaWx5Tm90ZShtb21lbnQsIGFsbERhaWx5Tm90ZXMpO1xuICAgICAgICAgICAgICAgIGlmICghZGFpbHlOb3RlKSB7XG4gICAgICAgICAgICAgICAgICAgIC8vLyBQcmV2ZW50IGRhaWx5IG5vdGUgZnJvbSBiZWluZyBjcmVhdGVkIG9uIGV4aXN0aW5nIGNoZWNrXG4gICAgICAgICAgICAgICAgICAgIGlmIChwYXJhbWV0ZXJzLmV4aXN0cyA9PT0gXCJ0cnVlXCIpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIHBhcmFtZXRlcnMuZmlsZXBhdGggPSBhd2FpdCBnZXREYWlseU5vdGVQYXRoKG1vbWVudCk7XG4gICAgICAgICAgICAgICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICAgICAgICAgICAgICBkYWlseU5vdGUgPSBhd2FpdCBjcmVhdGVEYWlseU5vdGUobW9tZW50KTtcblxuICAgICAgICAgICAgICAgICAgICAgICAgLy8gZGVsYXkgdG8gbGV0IE9ic2lkaWFuIGluZGV4IGFuZCBnZW5lcmF0ZSBDYWNoZWRNZXRhZGF0YVxuICAgICAgICAgICAgICAgICAgICAgICAgYXdhaXQgbmV3IFByb21pc2UociA9PiBzZXRUaW1lb3V0KHIsIDUwMCkpO1xuXG4gICAgICAgICAgICAgICAgICAgICAgICBjcmVhdGVkRGFpbHlOb3RlID0gdHJ1ZTtcbiAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICBpZiAoZGFpbHlOb3RlICE9PSB1bmRlZmluZWQpIHtcbiAgICAgICAgICAgICAgICAgICAgcGFyYW1ldGVycy5maWxlcGF0aCA9IGRhaWx5Tm90ZS5wYXRoO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgIGlmIChwYXJhbWV0ZXJzLmNsaXBib2FyZCA9PT0gXCJ0cnVlXCIpIHtcbiAgICAgICAgICAgICAgICBwYXJhbWV0ZXJzLmRhdGEgPSBhd2FpdCBuYXZpZ2F0b3IuY2xpcGJvYXJkLnJlYWRUZXh0KCk7XG4g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ICAgICAgIFwiaG9vay1nZXQtYWR2YW5jZWQtdXJpXCIsXG4gICAgICAgICAgICBhc3luYyAoZSkgPT4ge1xuICAgICAgICAgICAgICAgIGNvbnN0IHBhcmFtZXRlcnMgPSBlIGFzIHVua25vd24gYXMgSG9va1BhcmFtZXRlcnM7XG4gICAgICAgICAgICAgICAgZm9yIChjb25zdCBwYXJhbWV0ZXIgaW4gcGFyYW1ldGVycykge1xuICAgICAgICAgICAgICAgICAgICAocGFyYW1ldGVycyBhcyBhbnkpW3BhcmFtZXRlcl0gPSBkZWNvZGVVUklDb21wb25lbnQoKHBhcmFtZXRlcnMgYXMgYW55KVtwYXJhbWV0ZXJdKTtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgY29uc3QgYWN0aXZlTGVhZiA9IHRoaXMuYXBwLndvcmtzcGFjZS5hY3RpdmVMZWFmO1xuICAgICAgICAgICAgICAgIGNvbnN0IGZpbGUgPSBhY3RpdmVMZWFmLnZpZXcuZmlsZTtcbiAgICAgICAgICAgICAgICBpZiAoYWN0aXZlTGVhZiAmJiBmaWxlKSB7XG4gICAgICAgICAgICAgICAgICAgIHRoaXMuaG9va1N1Y2Nlc3MocGFyYW1ldGVycywgZmlsZSk7XG4gICAgICAgICAgICAgICAgfSBlbHNlIHtcblxuICAgICAgICAgICAgICAgICAgICB0aGlzLmZhaWx1cmUocGFyYW1ldGVycywgeyBlcnJvck1lc3NhZ2U6IFwiTm8gZmlsZSBvcGVuZWRcIiB9KTtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9KTtcblxuICAgICAgICB0aGlzLnJlZ2lzdGVyRXZlbnQoXG4gICAgICAgICAgICB0aGlzLmFwcC53b3Jrc3BhY2Uub24oJ2ZpbGUtbWVudScsIChtZW51LCBmaWxlLCBzb3VyY2UpID0+IHtcbiAgICAgICAgICAgICAgICBpZiAoIShzb3VyY2UgPT09IFwicGFuZS1tb3JlLW9wdGlvbnNcIiB8fCBzb3VyY2UgPT09IFwidGFiLWhlYWRlclwiIHx8IHNvdXJjZSA9PSBcImZpbGUtZXhwbG9yZXItY29udGV4dC1tZW51XCIpKSB7XG4gICAgICAgICAgICAgICAgICAgIHJldHVybjtcbiAgICAgICAgICAgICAgICB9XG5cbiAgICAgICAgICAgICAgICBpZiAoIShmaWxlIGluc3RhbmNlb2YgVEZpbGUpKSB7XG4gICAgICAgICAgICAgICAgICAgIHJldHVybjtcbiAgICAgICAgICAgICAgICB9XG5cbiAgICAgICAgICAgICAgICBtZW51LmFkZEl0ZW0oKGl0ZW0pID0+IHtcbiAgICAgICAgICAgICAgICAgICAgaXRlbVxuICAgICAgICAgICAgICAgICAgICAgICAgLnNldFRpdGxlKGBDb3B5IEFkdmFuY2VkIFVSSWApXG4gICAgICAgICAgICAgICAgICAgICAgICAuc2V0SWNvbignbGluaycpXG4gICAgICAgICAgICAgICAgICAgICAgICAuc2V0U2VjdGlvbihcImluZm9cIilcbiAgICAgICAgICAgICAgICAgICAgICAgIC5vbkNsaWNrKChfKSA9PiB0aGlzLmhhbmRsZUNvcHlGaWxlVVJJKHRydWUsIGZpbGUpKTtcbiAgICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgIH0pKTtcbiAgICB9XG5cbiAgICBhc3luYyBob29rU3VjY2VzcyhwYXJhbWV0ZXJzOiBQYXJhbWV0ZXJzLCBmaWxlOiBURmlsZSk6IFByb21pc2U8dm9pZD4ge1xuICAgICAgICBpZiAoIXBhcmFtZXRlcnNbXCJ4LXN1Y2Nlc3NcIl0pIHJldHVybjtcblxuICAgICAgICBjb25zdCBvcHRpb25zID0ge1xuICAgICAgICAgICAgdGl0bGU6IHN0cmlwTUQoZmlsZS5uYW1lKSxcbiAgICAgICAgICAgIGFkdmFuY2VkdXJpOiBhd2FpdCB0aGlzLmdlbmVyYXRlVVJJKHsgZmlsZXBhdGg6IGZpbGUucGF0aCB9LCBmYWxzZSksXG4gICAgICAgICAgICB1cmxrZXk6IFwiYWR2YW5jZWR1cmlcIixc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hcmFtZXRlcnMuZmlsZXBhdGggPz8gdGhpcy5hcHAud29ya3NwYWNlLmdldEFjdGl2ZUZpbGUoKS5wYXRoKS5mcm9udG1hdHRlcjtcblxuICAgICAgICBsZXQgcmVzOiBzdHJpbmc7XG4gICAgICAgIGlmIChrZXkuc3RhcnRzV2l0aChcIltcIikgJiYga2V5LmVuZHNXaXRoKFwiXVwiKSkge1xuICAgICAgICAgICAgY29uc3QgbGlzdCA9IGtleS5zdWJzdHJpbmcoMSwga2V5Lmxlbmd0aCAtIDEpLnNwbGl0KFwiLFwiKTtcbiAgICAgICAgICAgIGxldCBjYWNoZTogYW55ID0gZnJvbnRtYXR0ZXI7XG4gICAgICAgICAgICBmb3IgKGNvbnN0IGl0ZW0gb2YgbGlzdCkge1xuICAgICAgICAgICAgICAgIGlmIChjYWNoZSBpbnN0YW5jZW9mIEFycmF5KSB7XG4gICAgICAgICAgICAgICAgICAgIGNvbnN0IGluZGV4ID0gcGFyc2VJbnQoaXRlbSk7XG4gICAgICAgICAgICAgICAgICAgIGlmIChpbmRleCA9PSBOYU4pIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIGNhY2hlID0gY2FjaGUuZmluZCgoZSkgPT4gZSA9PSBpdGVtKTtcbiAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICBjYWNoZSA9IGNhY2hlW3BhcnNlSW50KGl0ZW0pXTtcbiAgICAgICAgICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgICAgICAgICBjYWNoZSA9IGNhY2hlW2l0ZW1dO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgIHJlcyA9IGNhY2hlO1xuICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgcmVzID0gZnJvbnRtYXR0ZXJba2V5XTtcbiAgICAgICAgfVxuXG4gICAgICAgIHRoaXMuY29weVRleHQocmVzKTtcbiAgICB9XG5cbiAgICBoYW5kbGVXb3Jrc3BhY2UocG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0KHBhcmFtZXRlcnMuZmlsZXBhdGgsIFwiL1wiKTtcbiAgICAgICAgICAgICAgICAgICAgaWYgKGZpbGUgaW5zdGFuY2VvZiBURmlsZSkge1xuICAgICAgICAgICAgICAgICAgICAgICAgcGFyYW1ldGVycy5maWxlcGF0aCA9IHRoaXMuZ2V0QWx0ZXJuYXRpdmVGaWxlUGF0aChmaWxlKTtcbiAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICBhd2FpdCB0aGlzLm9wZW4oeyBmaWxlOiBwYXJhbWV0ZXJzLmZpbGVwYXRoLCBtb2RlOiBcInNvdXJjZVwiLCBwYXJhbWV0ZXJzOiBwYXJhbWV0ZXJzIH0pO1xuICAgICAgICAgICAgICAgIGNvbnN0IHZpZXcgPSB0aGlzLmFwcC53b3Jrc3BhY2UuZ2V0QWN0aXZlVmlld09mVHlwZShNYXJrZG93blZpZXcpO1xuICAgICAgICAgICAgICAgIGlmICh2aWV3KSB7XG4gICAgICAgICAgICAgICAgICAgIGNvbnN0IGVkaXRvciA9IHZpZXcuZWRpdG9yO1xuICAgICAgICAgICAgICAgICAgICBjb25zdCBkYXRhID0gZWRpdG9yLmdldFZhbHVlKCk7XG4gICAgICAgICAgICAgICAgICAgIGlmIChwYXJhbWV0ZXJzLm1vZGUgPT09IFwiYXBwZW5kXCIpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIGVkaXRvci5zZXRWYWx1ZShkYXRhICsgXCJcXG5cIik7XG4gICAgICAgICAgICAgICAgICAgICAgICBjb25zdCBsaW5lcyA9IGVkaXRvci5saW5lQ291bnQoKTtcbiAgICAgICAgICAgICAgICAgICAgICAgIGVkaXRvci5zZXRDdXJzb3IoeyBjaDogMCwgbGluZTogbGluZXMgfSk7XG4gICAgICAgICAgICAgICAgICAgIH0gZWxzZSBpZiAocGFyYW1ldGVycy5tb2RlID09PSBcInByZXBlbmRcIikge1xuICAgICAgICAgICAgICAgICAgICAgICAgZ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pcy5hcHAuY29tbWFuZHMuY29tbWFuZHM7XG4gICAgICAgICAgICBmb3IgKGNvbnN0IGNvbW1hbmQgaW4gcmF3Q29tbWFuZHMpIHtcbiAgICAgICAgICAgICAgICBpZiAocmF3Q29tbWFuZHNbY29tbWFuZF0ubmFtZSA9PT0gcGFyYW1ldGVycy5jb21tYW5kbmFtZSkge1xuICAgICAgICAgICAgICAgICAgICBpZiAocmF3Q29tbWFuZHNbY29tbWFuZF0uY2FsbGJhY2spIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIHJhd0NvbW1hbmRzW2NvbW1hbmRdLmNhbGxiYWNrKCk7XG4gICAgICAgICAgICAgICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICAgICAgICAgICAgICByYXdDb21tYW5kc1tjb21tYW5kXS5jaGVja0NhbGxiYWNrKGZhbHNlKTtcbiAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICBicmVhaztcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9XG4gICAgICAgIH1cbiAgICAgICAgdGhpcy5zdWNjZXNzKHBhcmFtZXRlcnMpO1xuICAgIH1cbiAgICBhc3luYyBoYW5kbGVEb2VzRmlsZUV4aXN0KHBhcmFtZXRlcnM6IFBhcmFtZXRlcnMpIHtcbiAgICAgICAgY29uc3QgZXhpc3RzID0gYXdhaXQgdGhpcy5hcHAudmF1bHQuYWRhcHRlci5leGlzdHMocGFyYW1ldGVycy5maWxlcGF0aCk7XG5cbiAgICAgICAgdGhpcy5jb3B5VGV4dCgoZXhpc3RzID8gMSA6IDApLnRvU3RyaW5nKCkpO1xuICAgICAgICB0aGlzLnN1Y2Nlc3MocGFyYW1ldGVycyk7XG5cbiAgICB9XG4gICAgYXN5bmMgaGFuZGxlU2VhcmNoQW5kUmVwbGFjZShwYXJhbWV0ZXJzOiBQYXJhbWV0ZXJzKSB7XG4gICAgICAgIGxldCBmaWxlOiBURmlsZTtcbiAgICAgICAgaWYgKHBhcmFtZ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FuY2VvZiBURmlsZSkge1xuICAgICAgICAgICAgICAgICAgICBvdXRGaWxlID0gYXdhaXQgdGhpcy5wcmVwZW5kKGZpbGUsIHBhcmFtZXRlcnMpO1xuICAgICAgICAgICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICAgICAgICAgIG91dEZpbGUgPSBhd2FpdCB0aGlzLnByZXBlbmQocGF0aCwgcGFyYW1ldGVycyk7XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgIHRoaXMuc3VjY2VzcyhwYXJhbWV0ZXJzKTtcbiAgICAgICAgICAgIH0gZWxzZSBpZiAocGFyYW1ldGVycy5tb2RlID09PSBcImFwcGVuZFwiKSB7XG4gICAgICAgICAgICAgICAgaWYgKGZpbGUgaW5zdGFuY2VvZiBURmlsZSkge1xuICAgICAgICAgICAgICAgICAgICBvdXRGaWxlID0gYXdhaXQgdGhpcy5hcHBlbmQoZmlsZSwgcGFyYW1ldGVycyk7XG4gICAgICAgICAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgICAgICAgICAgb3V0RmlsZSA9IGF3YWl0IHRoaXMuYXBwZW5kKHBhdGgsIHBhcmFtZXRlcnMpO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICB0aGlzLnN1Y2Nlc3MocGFyYW1ldGVycyk7XG4gICAgICAgICAgICB9IGVsc2UgaWYgKHBhcmFtZXRlcnMubW9kZSA9PT0gXCJuZXdcIikge1xuICAgICAgICAgICAgICAgIGlmIChmaWxlIGluc3RhbmNlb2YgVEZpbGUpIHtcbiAgICAgICAgICAgICAgICAgICAgb3V0RmlsZSA9IGF3YWl0IHRoaXMud3JpdGVBbmRPcGVuRmlsZSh0aGlzLmdldEFsdGVybmF0aXZlRmlsZVBhdGgoZmlsZSksIHBhcmFtZXRlcnMuZGF0YSwgcGFyYW1ldGVycyk7XG4gICAgICAgICAgICAgICAgICAgIHRoaXMuaG9va1N1Y2Nlc3MocGFyYW1ldGVycywgb3V0RmlsZS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uKHtcbiAgICAgICAgICAgICAgICBmaWxlOiBwYXJhbWV0ZXJzLmZpbGVwYXRoICsgXCIjXlwiICsgcGFyYW1ldGVycy5ibG9jayxcbiAgICAgICAgICAgICAgICBzZXR0aW5nOiB0aGlzLnNldHRpbmdzLm9wZW5GaWxlV2l0aG91dFdyaXRlSW5OZXdQYW5lLFxuICAgICAgICAgICAgICAgIHBhcmFtZXRlcnM6IHBhcmFtZXRlcnMsXG4gICAgICAgICAgICAgICAgc3VwcG9ydFBvcG92ZXI6IGZhbHNlLFxuICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICBjb25zdCB2aWV3ID0gdGhpcy5hcHAud29ya3NwYWNlLmdldEFjdGl2ZVZpZXdPZlR5cGUoTWFya2Rvd25WaWV3KTtcbiAgICAgICAgICAgIGlmICghdmlldykgcmV0dXJuO1xuICAgICAgICAgICAgY29uc3QgY2FjaGUgPSB0aGlzLmFwcC5tZXRhZGF0YUNhY2hlLmdldEZpbGVDYWNoZSh2aWV3LmZpbGUpO1xuICAgICAgICAgICAgY29uc3QgYmxvY2sgPSBjYWNoZS5ibG9ja3NbcGFyYW1ldGVycy5ibG9ja107XG4gICAgICAgICAgICB2aWV3LmVkaXRvci5mb2N1cygpO1xuICAgICAgICAgICAgdmlldy5lZGl0b3Iuc2V0Q3Vyc29yKHsgbGluZTogYmxvY2sucG9zaXRpb24uc3RhcnQubGluZSwgY2g6IDAgfSk7XG4gICAgICAgIH1cbiAgICAgICAgZWxzZSB7XG4gICAgICAgICAgICBpZiAoIWZpbGVJc0FscmVhZHlPcGVuZWQpXG4gICAgICAgICAgICAgICAgYXdhaXQgdGhpcy5vcGVuKHtcbiAgICAgICAgICAgICAgICAgICAgZmlsZTogcGFyYW1ldGVycy5maWxlcGF0aCxcbiAgICAgICAgICAgICAgICAgICAgc2V0dGluZzogdGhpcy5zZXR0aW5ncy5vcGVuRmlsZVdpdGhvdXRXcml0ZUluTmV3UGFuZSxcbiAgICAgICAgICAgICAgICAgICAgcGFyYW1ldGVyczogcGFyYW1ldGVycyxcbiAgICAgICAgICAgICAgICAgICAgbW9kZTogcGFyYW1ldGVycy5saW5lICE9IHVuZGVmaW5lZCA/IFwic291cmNlXCIgOiB1bmRlZmluZWRcbiAgICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgIGlmIChwYXJhbWV0ZXJzLmxpbmUgIT0gdW5kZWZpbmVkKSB7XG4gICAgICAgICAgICAgICAgdGhpcy5zZXRDdXJzb3JJbkxpbmUocGFyYW1ldGVycy5saW5lKTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgfVxuICAgICAgICBpZiAocGFyYW1ldGVycy5tb2RlICE9IHVuZGVmaW5lZCkge1xuICAgICAgICAgICAgYXdhaXQgdGhpcy5zZXRDdXJzb3IocGFyYW1ldGVycy5tb2RlKTtcbiAgICAgICAgfVxuICAgICAgICBpZiAocGFyYW1ldGVycy51aWQpIHtcbiAgICAgICAgICAgIGNvbnN0IHZpZXcgPSB0aGlzLmFwcC53b3Jrc3BhY2UuZ2V0QWN0aXZlVmlld09mVHlwZShNYXJrZG93blZpZXcpO1xuXG4gICAgICAgICAgICB0aGlzLndyaXRlVUlEVG9GaWxlKHZpZXcuZmlsZSwgcGFyYW1ldGVycy51aWQpO1xuICAgICAgICB9XG4gICAgICAgIHRoaXMuc3VjY2VzcyhwYXJhbWV0ZXJzKTtcbiAgICB9XG5cbiAgICBhc3luYyBhcHBlbmQoZmlsZTogVEZpbGUgfCBzdHJpbmcsIHBhcmFtZXRlcnM6IFBhcmFtZXRlcnMpOiBQcm9taXNlPFRGaWxlPiB7XG4gICAgICAgIGxldCBwYXRoOiBzdHJpbmc7XG4gICAgICAgIGxldCBkYXRhVG9Xcml0ZTogc3RyaW5nO1xuICAgICAgICBpZiAocGFyYW1ldGVycy5oZWFkaW5nKSB7XG4gICAgICAgICAgICBpZiAoZmlsZSBpbnN0YW5jZW9mIFRGaWxlKSB7XG4gICAgICAgICAgICAgICAgcGF0aCA9IGZpbGUucGF0aDtcbiAgICAgICAgICAgICAgICBjb25zdCBsaW5lID0gdGhpcy5nZXRFbmRBbmRCZWdpbm5pbmdPZkhlYWRpbmcoZmlsZSwgcGFyYW1ldGVycy5oZWFkaW5nKT8ubGFzdExpbmU7XG4gICAgICAgICAgICAgICAgaWYgKGxpbmUgPT09IHVuZGVmaW5lZCkgcmV0dXJuO1xuXG4gICAgICAgICAgICAgICAgY29uc3QgZGF0YSA9IGF3YWl0IHRoaXMuYXBwLnZhdWx0LnJlYWQoZmlsZSk7XG4gICAgICAgICAgICAgICAgY29uc3QgbGluZXMgPSBkYXRhLnNwbGl0KFwiXFxuXCIpO1xuXG4gICAgICAgICAgICAgICAgbGluZXMuc3BsaWNlKGxpbmUsIDAsIC4uLnBhcmFtZXRlcnMuZGF0YS5zcGxpdChcIlxcblwiKSk7XG4gICAgICAgICAgICAgICAgZGF0YVRvV3JpdGUgPSBsaW5lcy5qb2luKFwiXFxuXCIpO1xuICAgICAgICAgICAgfVxuICAgICAgICB9XG4gICAgICAgIGVsc2Uge1xuICAgICAgICAgICAgbGV0IGZpbGVEYXRhOiBzdHJpbmc7XG4gICAgICAgICAgICBpZiAoZmlsZSBpbnN0YW5jZW9mIFRGaWxlKSB7XG4gICAgICAgICAgICAgICAgZmlsZURhdGEgPSBhd2FpdCB0aGlzLmFwcC52YXVsdC5yZWFkKGZpbGUpO1xuICAgICAgICAgICAgICAgIHBhdGggPSBmaWxlLnBhdGg7XG4gICAgICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgICAgIHBhdGggPSBmaWxlO1xuICAgICAgICAgICAgICAgIGZpbGVEYXRhID0gXCJcIjtcbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgIGRhdGFUb1dyaXRlID0gZmlsZURhdGEgKyBcIlxcblwiICsgcGFyYW1ldGVycy5kYXRhO1xuICAgICAgICB9XG4gICAgICAgIHJldHVybiB0aGlzLndyaXRlQW5kT3BlbkZpbGUocGF0aCwgZGF0YVRvV3JpdGUsIHBhcmFtZXRlcnMpO1xuICAgIH1cblxuICAgIGFzeW5jIHByZXBlbmQoZmlsZTogVEZpbGUgfCBzdHJpbmcsIHBhcmFtZXRlcnM6IFBhcmFtZXRlcnMpOiBQcm9taXNlPFRGaWxlPiB7XG4gICAgICAgIGxldCBwYXRoOiBzdHJpbmc7XG4gICAgICAgIGxldCBkYXRhVG9Xcml0ZTogc3RyaW5nO1xuICAgICAgICBpZiAocGFyYW1ldGVycy5oZWFkaW5nKSB7XG4gICAgICAgICAgICBpZiAoZmlsZSBpbnN0YW5jZW9mIFRGaWxlKSB7XG4gICAgICAgICAgICAgICAgcGF0aCA9IGZpbGUucGF0aDtcbiAgICAgICAgICAgICAgICBjb25zdCBsaW5lID0gdGhpcy5nZXRFbmRBbmRCZWdpbm5pbmdPZkhlYWRpbmcoZmlsZSwgcGFyYW1ldGVycy5oZWFkaW5nKT8uZmlyc3RMaW5lO1xuICAgICAgICAgICAgICAgIGlmIChsaW5lID09PSB1bmRlZmluZWQpIHJldHVybjtcblxuICAgICAgICAgICAgICAgIGNvbnN0IGRhdGEgPSBhd2FpdCB0aGlzLmFwcC52YXVsdC5yZWFkKGZpbGUpO1xuICAgICAgICAgICAgICAgIGNvbnN0IGxpbmVzID0gZGF0YS5zcGxpdChcIlxcblwiKTtcblxuICAgICAgICAgICAgICAgIGxpbmVzLnNwbGljZShsaW5lLCAwLCAuLi5wYXJhbWV0ZXJzLmRhdGEuc3BsaXQoXCJcXG5cIikpO1xuICAgICAgICAgICAgICAgIGRhdGFUb1dyaXRlID0gbGluZXMuam9pbihcIlxcblwiKTtcbiAgICAgICAgICAgIH1cblxuICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgaWYgKGZpbGUgaW5zdGFuY2VvZiBURmlsZSkge1xuICAgICAgICAgICAgICAgIGNvbnN0IGZpbGVEYXRhID0gYXdhaXQgdGhpcy5hcHAudmF1bHQucmVhZChmaWxlKTtcbiAgICAgICAgICAgICAgICBjb25zdCBjYWNoZSA9IHRo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4gICAgICAgICAgICB9KTtcbiAgICAgICAgICAgIGNvbnN0IHRmaWxlID0gZmlsZSBpbnN0YW5jZW9mIFRGaWxlID8gZmlsZSA6IHRoaXMuYXBwLnZhdWx0LmdldEFic3RyYWN0RmlsZUJ5UGF0aChmaWxlKSBhcyBURmlsZTtcbiAgICAgICAgICAgIGxlYWYub3BlbkZpbGUodGZpbGUpO1xuICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgbGV0IG9wZW5Nb2RlOiBPcGVuTW9kZSB8IGJvb2xlYW4gPSBzZXR0aW5nO1xuICAgICAgICAgICAgaWYgKHBhcmFtZXRlcnMubmV3cGFuZSAhPT0gdW5kZWZpbmVkKSB7XG4gICAgICAgICAgICAgICAgb3Blbk1vZGUgPSBwYXJhbWV0ZXJzLm5ld3BhbmUgPT0gXCJ0cnVlXCI7XG4gICAgICAgICAgICB9XG4gICAgICAgICAgICBpZiAocGFyYW1ldGVycy5vcGVubW9kZSAhPT0gdW5kZWZpbmVkKSB7XG4gICAgICAgICAgICAgICAgaWYgKHBhcmFtZXRlcnMub3Blbm1vZGUgPT0gXCJ0cnVlXCIgfHwgcGFyYW1ldGVycy5vcGVubW9kZSA9PSBcImZhbHNlXCIpIHtcbiAgICAgICAgICAgICAgICAgICAgb3Blbk1vZGUgPSBwYXJhbWV0ZXJzLm9wZW5tb2RlID09IFwidHJ1ZVwiO1xuICAgICAgICAgICAgICAgIH0gZWxzZSBpZiAocGFyYW1ldGVycy5vcGVubW9kZSA9PSBcInBvcG92ZXJcIikge1xuICAgICAgICAgICAgICAgICAgICBvcGVuTW9kZSA9IGZhbHNlO1xuICAgICAgICAgICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICAgICAgICAgIG9wZW5Nb2RlID0gcGFyYW1ldGVycy5vcGVubW9kZTtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9XG4gICAgICAgICAgICBpZiAob3Blbk1vZGUgPT0gXCJzaWxlbnRcIikge1xuICAgICAgICAg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3LmZpbGUucGF0aCxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBoZWFkaW5nOiBoZWFkaW5nLmhlYWRpbmdcbiAgICAgICAgICAgICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuO1xuICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfVxuICAgICAgICAgICAgaWYgKGNhY2hlLmJsb2Nrcykge1xuICAgICAgICAgICAgICAgIGZvciAoY29uc3QgYmxvY2tJRCBvZiBPYmplY3Qua2V5cyhjYWNoZS5ibG9ja3MpKSB7XG4gICAgICAgICAgICAgICAgICAgIGNvbnN0IGJsb2NrID0gY2FjaGUuYmxvY2tzW2Jsb2NrSURdO1xuICAgICAgICAgICAgICAgICAgICBpZiAoYmxvY2sucG9zaXRpb24uc3RhcnQubGluZSA8PSBwb3MubGluZSAmJiBibG9jay5wb3NpdGlvbi5lbmQubGluZSA+PSBwb3MubGluZSkge1xuICAgICAgICAgICAgICAgICAgICAgICAgdGhpcy5jb3B5VVJJKHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBmaWxlcGF0aDogdmlldy5maWxlLnBhdGgsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgYmxvY2s6IGJsb2NrSURcbiAgICAgICAgICAgICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuO1xuICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfVxuICAgICAgICB9XG5cbiAgICAgICAgaWYgKHdpdGhvdXREYXRhKSB7XG4gICAgICAgICAgICBjb25zdCBmaWxlMiA9IGZpbGUgPz8gdGhpcy5hcHAud29ya3NwYWNlLmdldEFjdGl2ZUZpbGUoKTtcbiAgICAgICAgICAgIGlmICghZmlsZTIpIHtcbiAgICAgICAgICAgICAgICBuZXcgTm90aWNlKFwiTm8gZmlsZSBvcGVuZWRcIik7XG4gICAgICAgICAgICAgICAgcmV0dXJuO1xuICAgICAgICAgICAgfVxuICAgICAgICAgICAgdGhpcy5jb3B5VVJJKHtcbiAgICAgICAgICAgICAgICBmaWxlcGF0aDogZmlsZTIucGF0aCxcbiAgICAgICAgICAgIH0pO1xuICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgY29uc3QgZmlsZU1vZGFsID0gbmV3IEZpbGVNb2RhbCh0aGlzLCBcIkNob29zZSBhIGZpbGVcIiwgZmFsc2UpO1xuICAgICAgICAgICAgZmlsZU1vZGFsLm9wZW4oKTtcbiAgICAgICAgICAgIGZpbGVNb2RhbC5vbkNob29zZUl0ZW0gPSAoaXRlbSwgXykgPT4ge1xuXG4gICAgICAgICAgICAgICAgbmV3IEVudGVyRGF0YU1vZGFsKHRoaXMsIGl0ZW0uc291cmNlKS5vcGVuKCk7XG5cbiAgICAgICAgICAgIH07XG4gICAgICAgIH1cblxuICAgIH1cblxuICAgIGhhbmRsZU9wZW5TZXR0aW5ncyhwYXJhbWV0ZXJzOiBQYXJhbWV0ZXJzKSB7XG4gICAgICAgIGlmICh0aGlzLmFwcC5zZXR0aW5nLmNvbnRhaW5lckVsLnBhcmVudEVsZW1lbnQgPT09IG51bGwpIHtcbiAgICAgICAgICAgIHRoaXMuYXBwLnNldHRpbmcub3BlbigpO1xuICAgICAgICB9XG4gICAgICAgIGlmIChwYXJhbWV0ZXJzLnNldHRpbmdpZCA9PSBcInBsdWdpbi1icm93c2VyXCIpIHtcbiAgICAgICAgICAgIHRoaXMuYXBwLnNldHRpbmcub3BlblRhYkJ5SWQoXCJjb21tdW5pdHktcGx1Z2luc1wiKTtcbiAgICAgICAgICAgIHRoaXMuYXBwLnNldHRpbmcuYWN0aXZlVGFiLmNvbnRhaW5lckVsLmZpbmQoXCIubW9kLWN0YVwiKS5jbGljaygpO1xuICAgICAgICB9IGVsc2UgaWYgKHBhcmFtZXRlcnMuc2V0dGluZ2lkID09IFwidGhlbWUtYnJvd3Nlclwi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BLENBQXlDQyxlQUFNLENBODVCOUM7Ozs7In0= diff --git a/.obsidian/plugins/obsidian-advanced-uri/manifest.json b/.obsidian/plugins/obsidian-advanced-uri/manifest.json index c699422b..199692ca 100644 --- a/.obsidian/plugins/obsidian-advanced-uri/manifest.json +++ b/.obsidian/plugins/obsidian-advanced-uri/manifest.json @@ -4,7 +4,7 @@ "description": "Advanced modes for Obsidian URI", "isDesktopOnly": false, "js": "main.js", - "version": "1.28.2", + "version": "1.31.1", "author": "Vinzent", "authorUrl": "https://github.com/Vinzent03" } diff --git a/.obsidian/plugins/obsidian-commits/data.json b/.obsidian/plugins/obsidian-commits/data.json index d4ac86c5..ae68bef5 100644 --- a/.obsidian/plugins/obsidian-commits/data.json +++ b/.obsidian/plugins/obsidian-commits/data.json @@ -896,7 +896,7 @@ }, "03.03 Food & Wine/Harissa, Squash & Chickpea stew.md": { "size": 2935, - "tags": 4, + "tags": 3, "links": 2 }, "03.03 Food & Wine/Salade Nicoise.md": { @@ -1135,9 +1135,9 @@ "links": 1 }, "02.02 Paris/@@Paris.md": { - "size": 2236, + "size": 2501, "tags": 1, - "links": 8 + "links": 9 }, "02.02 Paris/Villa Beaumarchais.md": { "size": 1019, @@ -1405,12 +1405,12 @@ "links": 1 }, "02.03 Zรผrich/@Sport Zรผrich.md": { - "size": 830, + "size": 975, "tags": 2, "links": 2 }, "02.03 Zรผrich/@Restaurants Zรผrich.md": { - "size": 2687, + "size": 3000, "tags": 2, "links": 3 }, @@ -1444,21 +1444,11 @@ "tags": 2, "links": 0 }, - "00.02 Inbox/Sรฉrotonine.md": { - "size": 1405, - "tags": 4, - "links": 1 - }, "00.02 Inbox/Under the Volcano.md": { "size": 1070, "tags": 4, "links": 1 }, - "00.02 Inbox/Soumission.md": { - "size": 1141, - "tags": 3, - "links": 1 - }, "00.02 Inbox/Torto Arado.md": { "size": 1465, "tags": 3, @@ -1835,7 +1825,7 @@ "links": 18 }, "05.02 Networks/Configuring UFW.md": { - "size": 14022, + "size": 15567, "tags": 2, "links": 7 }, @@ -1890,7 +1880,7 @@ "links": 1 }, "01.02 Home/Household.md": { - "size": 4836, + "size": 2402, "tags": 2, "links": 2 }, @@ -2095,7 +2085,7 @@ "links": 1 }, "01.01 Life Orga/@Finances.md": { - "size": 4217, + "size": 4682, "tags": 4, "links": 5 }, @@ -2181,7 +2171,7 @@ }, "00.03 News/PM to fill out party questionnaire.md": { "size": 6407, - "tags": 3, + "tags": 4, "links": 2 }, "00.06 Professional/Sameer Huda - gunnercooke llp.md": { @@ -2391,7 +2381,7 @@ }, "00.03 News/Will the Bush Dynasty Die With George P. Bush.md": { "size": 34634, - "tags": 4, + "tags": 5, "links": 2 }, "00.03 News/Google Search Is Dying.md": { @@ -2725,7 +2715,7 @@ "links": 2 }, "06.02 Investments/VC Tasks.md": { - "size": 3284, + "size": 1726, "tags": 3, "links": 7 }, @@ -2735,7 +2725,7 @@ "links": 6 }, "06.02 Investments/Crypto Tasks.md": { - "size": 5197, + "size": 2744, "tags": 3, "links": 12 }, @@ -2810,7 +2800,7 @@ "links": 3 }, "06.02 Investments/Equity Tasks.md": { - "size": 3091, + "size": 1597, "tags": 3, "links": 4 }, @@ -4275,8 +4265,8 @@ "links": 4 }, "03.02 Travels/Marseille.md": { - "size": 1390, - "tags": 0, + "size": 1544, + "tags": 2, "links": 1 }, "00.01 Admin/Calendars/2022-06-23.md": { @@ -4290,7 +4280,7 @@ "links": 7 }, "01.02 Home/Bandes Dessinรฉes.md": { - "size": 1193, + "size": 1326, "tags": 3, "links": 2 }, @@ -4611,7 +4601,7 @@ }, "00.03 News/How PMโ€™s former aide had to โ€˜nanny himโ€™ through lockdown.md": { "size": 16172, - "tags": 3, + "tags": 4, "links": 2 }, "00.01 Admin/Calendars/2022-08-01.md": { @@ -4761,7 +4751,7 @@ }, "00.03 News/Donald Trump and American Intelligenceโ€™s Years of Conflict.md": { "size": 9876, - "tags": 3, + "tags": 4, "links": 2 }, "00.03 News/YouTube Fraud Led to $23 Million in Royalties for 2 Men, IRS Says.md": { @@ -5295,7 +5285,7 @@ "links": 7 }, "03.02 Travels/@Switzerland.md": { - "size": 1197, + "size": 1336, "tags": 2, "links": 1 }, @@ -5389,11 +5379,6 @@ "tags": 0, "links": 9 }, - "00.01 Admin/Calendars/2023-01-14 Mariage Marguerite & Arnold.md": { - "size": 745, - "tags": 0, - "links": 4 - }, "05.01 Computer setup/Jellyfin.md": { "size": 3520, "tags": 5, @@ -5644,11 +5629,6 @@ "tags": 0, "links": 7 }, - "02.03 Zรผrich/Francisco Podesta.md": { - "size": 1746, - "tags": 4, - "links": 2 - }, "02.01 London/Callum Anderson.md": { "size": 1640, "tags": 3, @@ -5695,9 +5675,9 @@ "links": 9 }, "01.02 Home/Life - Practical infos.md": { - "size": 1390, + "size": 1740, "tags": 2, - "links": 10 + "links": 11 }, "00.01 Admin/Calendars/2022-09-18.md": { "size": 1196, @@ -5794,11 +5774,6 @@ "tags": 0, "links": 8 }, - "00.01 Admin/Calendars/2022-11-10 Dinner @ Swiss Re.md": { - "size": 193, - "tags": 0, - "links": 2 - }, "00.01 Admin/Calendars/2022-09-25.md": { "size": 1348, "tags": 0, @@ -5831,7 +5806,7 @@ }, "00.03 News/The Sordid Saga of Hunter Bidenโ€™s Laptop.md": { "size": 74112, - "tags": 3, + "tags": 4, "links": 2 }, "00.01 Admin/Calendars/2022-09-26.md": { @@ -5850,7 +5825,7 @@ "links": 1 }, "03.02 Travels/@United States.md": { - "size": 1188, + "size": 1309, "tags": 2, "links": 1 }, @@ -5931,7 +5906,7 @@ }, "00.03 News/The markets are in meltdown โ€“ but at least Kwasi Kwartengโ€™s doomsday cult isnโ€™t to blame Marina Hyde.md": { "size": 7687, - "tags": 3, + "tags": 4, "links": 2 }, "00.01 Admin/Templates/NewBookmark.md": { @@ -5977,7 +5952,7 @@ "00.08 Bookmarks/Bookmarks - Webpages.md": { "size": 1824, "tags": 0, - "links": 2 + "links": 3 }, "02.03 Zรผrich/Dar.md": { "size": 1567, @@ -5990,7 +5965,7 @@ "links": 7 }, "00.08 Bookmarks/Bookmarks - Mac applications.md": { - "size": 1265, + "size": 1481, "tags": 1, "links": 4 }, @@ -6030,7 +6005,7 @@ "links": 3 }, "00.08 Bookmarks/Bookmarks - Work.md": { - "size": 1280, + "size": 1410, "tags": 1, "links": 4 }, @@ -6192,7 +6167,7 @@ "01.04 MRCK/@@MRCK.md": { "size": 5416, "tags": 2, - "links": 7 + "links": 8 }, "01.04 MRCK/@Ireland.md": { "size": 1247, @@ -6301,12 +6276,12 @@ }, "00.03 News/Opinion A Lost Manuscript Shows the Fire Barack Obama Couldnโ€™t Reveal on the Campaign Trail.md": { "size": 20776, - "tags": 4, + "tags": 5, "links": 2 }, "00.03 News/Liz Truss has made Britain a riskier bet for bond investors.md": { "size": 6614, - "tags": 3, + "tags": 4, "links": 2 }, "00.03 News/Is There a Future for Late-Night Talk Shows.md": { @@ -6364,11 +6339,6 @@ "tags": 0, "links": 7 }, - "00.01 Admin/Calendars/2022-11-19 Fianรงailles Marguerite & Arnold.md": { - "size": 272, - "tags": 0, - "links": 4 - }, "00.01 Admin/Calendars/2023-05-20 Mariage JB & Camila.md": { "size": 188, "tags": 0, @@ -6486,33 +6456,33 @@ }, "00.03 News/Liz Trussโ€™ empty ambition put her in power โ€” and shattered her.md": { "size": 8224, - "tags": 3, - "links": 1 + "tags": 4, + "links": 2 }, "00.03 News/The Story Matthew Perry Canโ€™t Believe He Lived to Tell.md": { "size": 28252, "tags": 3, - "links": 1 + "links": 2 }, "00.03 News/Texas Goes Permitless on Guns, and Police Face an Armed Public.md": { "size": 14034, "tags": 4, - "links": 1 + "links": 2 }, "00.03 News/What โ€˜The Trump Tapesโ€™ reveal about Bob Woodward.md": { "size": 12264, - "tags": 4, - "links": 1 + "tags": 5, + "links": 2 }, "00.03 News/Mississippi's Welfare Messโ€”And America's.md": { "size": 11740, "tags": 3, - "links": 1 + "links": 2 }, "00.03 News/The Night Warren Zevon Left the โ€˜Late Showโ€™ Building.md": { "size": 22425, "tags": 3, - "links": 1 + "links": 2 }, "00.01 Admin/Templates/layout$highlight.md": { "size": 67, @@ -6538,458 +6508,1109 @@ "size": 254, "tags": 0, "links": 2 - } - }, - "commitTypes": { - "/": { - "Refactor": 1073, - "Create": 1064, - "Link": 2407, - "Expand": 1071 - } - }, - "dailyCommits": { - "/": { - "0": 71, - "1": 31, - "2": 21, - "3": 11, - "4": 16, - "5": 9, - "6": 57, - "7": 341, - "8": 508, - "9": 501, - "10": 384, - "11": 275, - "12": 206, - "13": 322, - "14": 282, - "15": 258, - "16": 272, - "17": 254, - "18": 437, - "19": 346, - "20": 266, - "21": 256, - "22": 339, - "23": 152 - } - }, - "weeklyCommits": { - "/": { - "Mon": 879, - "Tue": 908, - "Wed": 654, - "Thu": 495, - "Fri": 562, - "Sat": 0, - "Sun": 2117 - } - }, - "recentCommits": { - "/": { - "Expanded": [ - " 2022-11-02 Juventus - PSG (1-2) ", - " 2022-11-02 Juventus - PSG ", - " 2022-11-02 Juventus - PSG ", - " Toto ", - " Razzia ", - " Polo Park Zรผrich ", - " Shilla ", - " Rosi ", - " Schluessel ", - " No Idea ", - " Le Raymond Bar ", - " Monocle ", - " Luca2 ", - " Luigia ", - " Modo ", - " Le Mezzerie ", - " Iroquois ", - " La Baracca ", - " Gรผl ", - " La Stanza ", - " Kiosk ", - " La Rรฉserve ", - " Grande ", - " Dante ", - " Gestuet Homberg ", - " Ginger ", - " Dar ", - " Franzos ", - " Dolder Grand ", - " Daizy ", - " Baur's ", - " Cafรฉ des Amis ", - " Blaue Ente ", - " Bebek ", - " Cantinetta Antinori ", - " Bimi ", - " Afghan Anar ", - " Ace & Tate ", - " Alto ", - " 202 ", - " Template Person ", - " Template Place ", - " Francisco Podesta ", - " Ryan Anderson ", - " Callum Anderson ", - " Lucho Irazabal ", - " Nano Iturroz ", - " Timothรฉe Bรฉdier ", - " Pia Bousquiรฉ ", - " Marc de Villeneuve ", - " Louis Bรฉdier " - ], - "Created": [ - " 2022-11-02 ", - " aglaedevilleneuve@yahoo.fr ", - " 2022-11-01 ", - " Mail Import ", - " Rich text ", - " 2022-10-31 ", - " Untitled ", - " The Night Warren Zevon Left the โ€˜Late Showโ€™ Building ", - " Mississippi's Welfare Messโ€”And America's ", - " What โ€˜The Trump Tapesโ€™ reveal about Bob Woodward ", - " Texas Goes Permitless on Guns, and Police Face an Armed Public ", - " The Story Matthew Perry Canโ€™t Believe He Lived to Tell ", - " Liz Trussโ€™ empty ambition put her in power โ€” and shattered her ", - " 2022-10-30 ", - " 2022-10-30 ", - " Untitled ", - " 2022-10-29 PSG - Troyes ", - " 2022-10-29 ", - " Why Does Crypto Matter Matt Levine on BTC, ETH, Blockchain ", - " 2022-10-28 ", - " Hail Caesar! (2016) ", - " The Globetrotting Con Man and Suspected Spy Who Met With President Trump ", - " 2022-10-27 ", - " There Will Be Blood (2007) ", - " 2022-10-26 ", - " 2022-10-25 ", - " Searching for Justice, 35 Years After Katricia Dotson Was Killed by the Police ", - " The mysterious reappearance of Chinaโ€™s missing mega-influencer ", - " How a Chinese American Gangster Transformed Money Laundering for Drug Cartels ", - " What Happened to Maya ", - " Cuban missile crisis The man who saw too much - Deseret News ", - " How a New Anti-Woke Bank Stumbled ", - " 2022-10-24 ", - " Strange new phase of matter created in quantum computer acts like it has two time dimensions ", - " 2022-10-23 ", - " 2023-05-20 Mariage JB & Camila ", - " 2022-11-19 Fianรงailles Marguerite & Arnold ", - " Cafรฉ Hugo ", - " 2022-10-22 ", - " 2022-10-21 ", - " 36 Hours in Milan Things to Do and See ", - " 2022-10-20 ", - "", - " 2022-10-19 ", - " 2022-10-18 ", - " Arnold ", - " 2022-10-17 ", - " Test note ", - " Buttons 1.0 is Coming ", - " Is There a Future for Late-Night Talk Shows ", - " Liz Truss has made Britain a riskier bet for bond investors " - ], - "Renamed": [ - " 2022-11-02 Juventus - PSG (1-2) ", - " layout$highlight ", - " The Night Warren Zevon Left the โ€˜Late Showโ€™ Building ", - " Mississippi's Welfare Messโ€”And America's ", - " What โ€˜The Trump Tapesโ€™ reveal about Bob Woodward ", - " Texas Goes Permitless on Guns, and Police Face an Armed Public ", - " The Story Matthew Perry Canโ€™t Believe He Lived to Tell ", - " Liz Trussโ€™ empty ambition put her in power โ€” and shattered her ", - " 2022-10-29 PSG - Troyes (4-3) ", - " New York ", - " Why Does Crypto Matter Matt Levine on BTC, ETH, Blockchain ", - " Hail Caesar! (2016) ", - " The Globetrotting Con Man and Suspected Spy Who Met With President Trump ", - " There Will Be Blood (2007) ", - " Searching for Justice, 35 Years After Katricia Dotson Was Killed by the Police ", - " The mysterious reappearance of Chinaโ€™s missing mega-influencer ", - " How a Chinese American Gangster Transformed Money Laundering for Drug Cartels ", - " What Happened to Maya ", - " Cuban missile crisis The man who saw too much - Deseret News ", - " Empire of Pain ", - " Cafรฉ Hugo ", - " Strange new phase of matter created in quantum computer acts like it has two time dimensions ", - " 36 Hours in Milan Things to Do and See ", - "", - " Arnold Moulin ", - " Arnold Moulin ", - " 2022-10-16 PSG - Marseille (1-0) ", - " Is There a Future for Late-Night Talk Shows ", - " Liz Truss has made Britain a riskier bet for bond investors ", - " Opinion A Lost Manuscript Shows the Fire Barack Obama Couldnโ€™t Reveal on the Campaign Trail ", - " Gรผl ", - " 2022-10-15 ๐Ÿฝ Lunch w Marguerite & Arnold ", - " 2021-12-04 MRCK - lil dialogue ", - " A New Doorway to the Brain ", - " 2022-10-11 PSG - Benfica (1-1) ", - " Black Holes May Hide a Mind-Bending Secret About Our Universe ", - " Maison Agry ", - " Derborence ", - " What Does Sustainable Living Look Like Maybe Like Uruguay ", - " The Instagram capital of the world is a terrible place to be ", - " An American education ", - " Pooch list ", - " Belfast ", - " @Ireland ", - " @Belfast ", - " @@MRCK ", - " MRCK ", - " Belfast ", - " Voitures ", - " @Shopping list ", - " Why is a small Swedish automaker a decade ahead of the rest of the industry " - ], - "Tagged": [ - " French Onion Beef Noodle Soup ", - " Mississippi's Welfare Messโ€”And America's ", - " The Night Warren Zevon Left the โ€˜Late Showโ€™ Building ", - " What โ€˜The Trump Tapesโ€™ reveal about Bob Woodward ", - " Texas Goes Permitless on Guns, and Police Face an Armed Public ", - " Liz Trussโ€™ empty ambition put her in power โ€” and shattered her ", - " The Story Matthew Perry Canโ€™t Believe He Lived to Tell ", - " The Globetrotting Con Man and Suspected Spy Who Met With President Trump ", - " New York ", - " Why Does Crypto Matter Matt Levine on BTC, ETH, Blockchain ", - " Hail Caesar! (2016) ", - " The Globetrotting Con Man and Suspected Spy Who Met With President Trump ", - " There Will Be Blood (2007) ", - " Cowboys paid $2.4M over cheerleader allegations ", - " Searching for Justice, 35 Years After Katricia Dotson Was Killed by the Police ", - " The mysterious reappearance of Chinaโ€™s missing mega-influencer ", - " What Happened to Maya ", - " How a Chinese American Gangster Transformed Money Laundering for Drug Cartels ", - " Cuban missile crisis The man who saw too much - Deseret News ", - " Strange new phase of matter created in quantum computer acts like it has two time dimensions ", - " Cafรฉ Hugo ", - " Cafรฉ Hugo ", - " 36 Hours in Milan Things to Do and See ", - "", - " Arnold Moulin ", - " Is There a Future for Late-Night Talk Shows ", - " Opinion A Lost Manuscript Shows the Fire Barack Obama Couldnโ€™t Reveal on the Campaign Trail ", - " Liz Truss has made Britain a riskier bet for bond investors ", - " Gรผl ", - " League Tables ", - " Life - Practical infos ", - " League Tables ", - " Iridike Polo Club ", - " A New Doorway to the Brain ", - " Black Holes May Hide a Mind-Bending Secret About Our Universe ", - " Black Holes May Hide a Mind-Bending Secret About Our Universe ", - " Uyghur Exile ", - " Opso ", - " Maison Agry ", - " @Personal projects ", - " Empire of Pain ", - " Marc de Villeneuve ", - " Arnaud Chapal ", - " Marguerite de Villeneuve ", - " Evrard de Villeneuve ", - " Eloi de Villeneuve ", - " Opportune de Villeneuve ", - " Philomรจne de Villeneuve ", - " Hortense de Villeneuve ", - " Quentin de Villeneuve ", - " Noรฉmie de Villeneuve " - ], - "Refactored": [ - " Gรผl ", - " Test Sheet 2 ", - " 2022-10-18 ", - " Pooch list ", - " Belfast ", - " MRCK ", - " NewBookmark ", - " NewBookmark ", - " @Short breaks ", - " Florence ", - " @Short breaks ", - " Masseria Moroseta ", - " @Short breaks ", - " @Short breaks ", - " League Tables ", - " 2022-10-03 Meggi leaving to Belfast ", - " Zรผrich - Practical info ", - " Zรผrich - Practical info ", - " 2022-09-07 ", - " 2022-09-05 ", - " Test sheet ", - " Server Cloud ", - " Server Cloud ", - " Server Cloud ", - " Server Cloud ", - " Obsidian plugins ", - " @Main Dashboard ", - " @Cafรฉ Zรผrich ", - " Baur's ", - " Recommendation list (Zรผrich) ", - " 2022-01-23 ", - " SendFile ", - " NewFile1 ", - " Turkey With Glass Noodles ", - " Torched Banana Cake ", - " Ultimate Sugar Cookies ", - " Pastitsio ", - " Peperoncini Chicken ", - " Harissa-Honey Popcorn Chicken ", - " Churros with Bittersweet Chocolate Sauce ", - " Obsidian plugins ", - " Thai Basil Sauce Noodles with Jammy Eggs ", - " Thai Basil Sauce Noodles with Jammy Eggs ", - " Tous les hommes n'habitent pas le monde de la mรชme faรงon - Jean-Paul Dubois ", - " Template Recipe ", - " List of plugins ", - " Fresh Tomato Eggs in Purgatory with Chickpeas ", - " Fresh Tomato Eggs in Purgatory with Chickpeas ", - " DG - News Page ", - " Configuring Telegram bots ", - " How to Install Prometheus on Ubuntu 20.04 " - ], - "Deleted": [ - " aglaedevilleneuve@yahoo.fr ", - " Mail Import ", - " Rich text ", - " 2022-10-30 ", - " How a New Anti-Woke Bank Stumbled ", - " Test note ", - " Buttons 1.0 is Coming ", - " Empire of Pain ", - " The Wembanyama Effect How the buzz about Victor will influence NBA tanking and front office thinking this season ", - " The Genetic Freakโ€ Taking Over the Premier League ", - " Qui est Patrick Radden Keefe, lโ€™homme qui a rรฉvรฉlรฉ lโ€™affaire des opioรฏdes aux Etats-Unis ", - " The Daily - Florida After Hurricane Ian ", - " Obsidian plugins ", - " Test ", - " GitHub - iptv-orgiptv Collection of publicly available IPTV channels from all over the world ", - " Test ", - " Test ", - " The Daily - Putinโ€™s Escalation of the War in Ukraine ", - " You're Not Addicted to Technology. Here's What's Happening Instead. ", - " You're Not Addicted to Technology. Here's What's Happening Instead. ", - " hashcat - advanced password recovery ", - " Untitled ", - " Fat Leonard (Almost) Flees to Russia ", - " This Is What Lifeโ€™s Like in the Worldโ€™s Strictest Covid Zero City ", - " Goodbye Cron, Helloโ€ฆ - Francesco D'Alessio - Medium ", - " The Daily - Putinโ€™s Escalation of the War in Ukraine ", - " Zรผrich - Practical infos ", - " Untitled Kanban ", - " The Daily - Can the U.K. Remain United Without the Queen ", - " The Daily - Can the U.K. Remain United Without the Queen ", - " Teat linked card ", - " The Daily - Can the U.K. Remain United Without the Queen ", - " 2022-09-20 ", - " The Daily - How Queen Elizabeth II Preserved the Monarchy ", - " 2022-10-10 ", - " 2022-10-10 Return flight to Zรผrich ", - " 2022-10-23 Retour de Paris ", - " 2023-09-08 ", - " 2023-09-13 Back from NYC ", - " 2022-11-19 ๐Ÿ’ Fiancailles Marguerite & Arnold - Genรจve ", - " 2022-10-14 ๐Ÿš† Dรฉpart pour GVA ", - " Zรผrich - Practical info ", - " Kanban test ", - " The Daily - How Queen Elizabeth II Preserved the Monarchy ", - " The Daily - How Queen Elizabeth II Preserved the Monarchy ", - " 2022-09-17 Diner Raph & Dalia ร  la maison ", - " Test ", - " Untitled ", - " Test ", - " Test ", - " Test " - ], - "Linked": [ - " 2022-11-02 ", - " 2022-11-01 ", - " 2022-10-31 ", - " 2022-11-01 ", - " 2022-10-31 ", - " 2022-10-30 ", - " The Night Warren Zevon Left the โ€˜Late Showโ€™ Building ", - " Mississippi's Welfare Messโ€”And America's ", - " What โ€˜The Trump Tapesโ€™ reveal about Bob Woodward ", - " Texas Goes Permitless on Guns, and Police Face an Armed Public ", - " Liz Trussโ€™ empty ambition put her in power โ€” and shattered her ", - " The Story Matthew Perry Canโ€™t Believe He Lived to Tell ", - " The Globetrotting Con Man and Suspected Spy Who Met With President Trump ", - " Searching for Justice, 35 Years After Katricia Dotson Was Killed by the Police ", - " 2022-10-30 ", - " 2022-10-29 ", - " New York ", - " 2022-10-29 PSG - Troyes ", - " Bookmarks - Obsidian ", - " Cuban missile crisis The man who saw too much - Deseret News ", - " 2022-10-29 ", - " Why Does Crypto Matter Matt Levine on BTC, ETH, Blockchain ", - " 2022-10-28 ", - " 2022-10-27 ", - " Hail Caesar! (2016) ", - " The mysterious reappearance of Chinaโ€™s missing mega-influencer ", - " The Globetrotting Con Man and Suspected Spy Who Met With President Trump ", - " How a Chinese American Gangster Transformed Money Laundering for Drug Cartels ", - " What Happened to Maya ", - " 2022-10-27 ", - " There Will Be Blood (2007) ", - " 2022-10-26 ", - " 2022-10-25 ", - " Searching for Justice, 35 Years After Katricia Dotson Was Killed by the Police ", - " The mysterious reappearance of Chinaโ€™s missing mega-influencer ", - " What Happened to Maya ", - " How a Chinese American Gangster Transformed Money Laundering for Drug Cartels ", - " Cuban missile crisis The man who saw too much - Deseret News ", - " 2022-10-24 ", - " 2022-10-23 ", - " Empire of Pain ", - " Strange new phase of matter created in quantum computer acts like it has two time dimensions ", - "", - " Strange new phase of matter created in quantum computer acts like it has two time dimensions ", - " 2022-10-23 ", - " 2022-10-23 ", - " 2023-05-20 Mariage JB & Camila ", - " 2022-11-19 Fianรงailles Marguerite & Arnold ", - " 2022-10-22 ", - " Cafรฉ Hugo ", - " League Tables " - ], - "Removed Tags from": [ - " A view from across the river ", - " Meet Richard Fritz, Americaโ€™s Most Unelectable Elected Official Defector ", - " How PMโ€™s former aide had to โ€˜nanny himโ€™ through lockdown ", - " 2022-07-31 ", - " 2022-08-14 ", - " 2022-05-24 ", - " 2022-05-30 ", - " 2022-06-25 ", - " Le Miel de Paris ", - " What i learnt during my 3 days offline ", - " Migrants faced the worst of the gig economy, so they made their own delivery app ", - " Confessions of a Bitcoin Widow How a Dream Life Turned into a Nightmare The Walrus ", - " Lโ€™enquรชte ยซ Suisse Secrets ยป relance le dรฉbat sur la libertรฉ de la presse face au secret bancaire ", - " A Vibe Shift Is Coming ", - " Fresh Tomato Eggs in Purgatory with Chickpeas ", - " VPS Console Dialogue ", - " Cinematheque ", - " Le Miel de Paris ", - " Apple processes ", - " Bruxelles ", - " A Search for Family, a Love for Horses and How It All Led to Kentucky Derby Glory ", - " YouTube Fraud Led to $23 Million in Royalties for 2 Men, IRS Says ", - " How the NYPD Cracked the Michael K. Williams Overdose Case ", - " Two Professors Found What Creates a Mass Shooter. Will Politicians Pay Attention ", - " The Clove Club ", - " Flesh & Buns ", - " Monocle ", - " Comprendre l'islam ", - " Abri ", + }, + "00.01 Admin/Calendars/2022-11-03.md": { + "size": 1212, + "tags": 0, + "links": 6 + }, + "03.04 Cinematheque/The Bureau (2015โ€“).md": { + "size": 2630, + "tags": 1, + "links": 1 + }, + "00.01 Admin/Calendars/2022-11-04.md": { + "size": 1212, + "tags": 0, + "links": 5 + }, + "03.03 Food & Wine/Lemon Chicken.md": { + "size": 3490, + "tags": 1, + "links": 2 + }, + "00.03 News/How Ukrainians Are Protecting Their Centuries-Old Culture From Putinโ€™s Invasion.md": { + "size": 16616, + "tags": 3, + "links": 2 + }, + "00.01 Admin/Calendars/2022-11-05.md": { + "size": 1212, + "tags": 0, + "links": 5 + }, + "00.01 Admin/Calendars/2022-11-06.md": { + "size": 1190, + "tags": 0, + "links": 5 + }, + "03.02 Travels/Madrid.md": { + "size": 1870, + "tags": 2, + "links": 1 + }, + "00.05 Media/Team Deakins - MARK TILDESLEY - Production Designer.md": { + "size": 1276, + "tags": 0, + "links": 0 + }, + "02.03 Zรผrich/Le Montmartre.md": { + "size": 1484, + "tags": 0, + "links": 2 + }, + "00.03 News/The Strange and Mysterious Death of Mrs. Jerry Lee Lewis.md": { + "size": 7697, + "tags": 4, + "links": 2 + }, + "00.03 News/True Grit.md": { + "size": 54040, + "tags": 4, + "links": 2 + }, + "00.03 News/How Saudi Arabia Sees the World.md": { + "size": 17461, + "tags": 2, + "links": 2 + }, + "00.03 News/Abuse, Chaos and Cruelty in Louisiana Juvenile Detention.md": { + "size": 49244, + "tags": 4, + "links": 2 + }, + "00.03 News/The Most Lawless County in Texas.md": { + "size": 73546, + "tags": 3, + "links": 2 + }, + "00.03 News/The Too-Muchness of Bono.md": { + "size": 30962, + "tags": 3, + "links": 2 + }, + "00.03 News/Swamp Boy Medical Mystery.md": { + "size": 54413, + "tags": 3, + "links": 2 + }, + "00.01 Admin/Calendars/2022-11-07.md": { + "size": 1212, + "tags": 0, + "links": 5 + }, + "00.01 Admin/Calendars/2022-11-08.md": { + "size": 1212, + "tags": 0, + "links": 5 + }, + "00.03 News/Do We Have the History of Native Americans Backward.md": { + "size": 15737, + "tags": 3, + "links": 2 + }, + "00.01 Admin/Calendars/2022-11-09.md": { + "size": 1212, + "tags": 0, + "links": 6 + }, + "00.01 Admin/Calendars/2022-11-10.md": { + "size": 1212, + "tags": 0, + "links": 7 + }, + "03.01 Reading list/Sรฉrotonine.md": { + "size": 1405, + "tags": 4, + "links": 2 + }, + "00.02 Inbox/Say Nothing.md": { + "size": 1095, + "tags": 3, + "links": 2 + }, + "00.01 Admin/Calendars/2022-11-11.md": { + "size": 1076, + "tags": 0, + "links": 4 + }, + "00.01 Admin/Calendars/2022-11-30 ZSC - HC Ajoie.md": { + "size": 206, + "tags": 0, + "links": 3 + }, + "00.01 Admin/Calendars/2022-11-19 ๐Ÿ’ Fianรงailles Marguerite & Arnold.md": { + "size": 272, + "tags": 0, + "links": 4 + }, + "00.01 Admin/Calendars/2022-11-20 Mallorca.md": { + "size": 194, + "tags": 0, + "links": 4 + }, + "00.01 Admin/Calendars/2022-11-12.md": { + "size": 1212, + "tags": 0, + "links": 5 + }, + "00.01 Admin/Calendars/2023-04-29 Mariage Marguerite & Arnold.md": { + "size": 858, + "tags": 0, + "links": 4 + }, + "00.01 Admin/Calendars/2022-11-13.md": { + "size": 1212, + "tags": 0, + "links": 5 + }, + "00.01 Admin/Calendars/2022-11-13 PSG - AJ Auxerre (5-0).md": { + "size": 266, + "tags": 0, + "links": 2 + }, + "00.03 News/Meet the World's Top 'Chess Detective'.md": { + "size": 16572, + "tags": 3, + "links": 2 + }, + "00.03 News/Who Will Remove My IUD.md": { + "size": 16003, + "tags": 3, + "links": 2 + }, + "00.03 News/โ€˜Trumpโ€™s Kevinโ€™ McCarthy could soon be speaker of the House - Los Angeles Times.md": { + "size": 41381, + "tags": 3, + "links": 2 + }, + "00.03 News/How the Record Industry Ruthlessly Punished Milli Vanilli for Anticipating the Future of Music.md": { + "size": 14890, + "tags": 4, + "links": 2 + }, + "00.03 News/These three brothers scammed their investors out of $233 million. Then they lived like kings.md": { + "size": 34269, + "tags": 4, + "links": 2 + }, + "00.03 News/Bad Faith at Second Mesa.md": { + "size": 34358, + "tags": 4, + "links": 2 + }, + "00.01 Admin/Calendars/2023-02-14 Bayern - PSG.md": { + "size": 189, + "tags": 0, + "links": 2 + }, + "00.01 Admin/Calendars/2023-03-08 PSG - Bayern.md": { + "size": 188, + "tags": 0, + "links": 2 + }, + "00.01 Admin/Calendars/2022-11-14.md": { + "size": 1212, + "tags": 0, + "links": 4 + }, + "00.01 Admin/Calendars/2022-11-15.md": { + "size": 1212, + "tags": 0, + "links": 6 + }, + "00.01 Admin/Calendars/2022-11-16.md": { + "size": 1212, + "tags": 0, + "links": 6 + }, + "00.01 Admin/Calendars/2022-11-17.md": { + "size": 1212, + "tags": 0, + "links": 5 + }, + "00.01 Admin/Calendars/2022-11-18.md": { + "size": 1212, + "tags": 0, + "links": 5 + }, + "03.04 Cinematheque/Reservoir Dogs (1992).md": { + "size": 1996, + "tags": 1, + "links": 1 + }, + "00.01 Admin/Calendars/2022-11-19.md": { + "size": 1212, + "tags": 0, + "links": 7 + }, + "02.03 Zรผrich/Apotheke.md": { + "size": 1539, + "tags": 1, + "links": 2 + }, + "00.01 Admin/Calendars/2022-11-20.md": { + "size": 1212, + "tags": 0, + "links": 7 + }, + "00.01 Admin/Calendars/2022-11-21.md": { + "size": 1212, + "tags": 0, + "links": 4 + }, + "00.01 Admin/Calendars/2022-11-22.md": { + "size": 1212, + "tags": 0, + "links": 4 + }, + "00.03 News/DEAโ€™s most corrupt agent Parties, sex amid 'unwinnable war'.md": { + "size": 20708, + "tags": 4, + "links": 2 + }, + "00.03 News/The story of a young mother, a fire and a Milwaukee landlord.md": { + "size": 99392, + "tags": 3, + "links": 2 + }, + "00.03 News/10 More Disturbing Revelations About Sam Bankman-Fried.md": { + "size": 15790, + "tags": 4, + "links": 2 + }, + "00.03 News/The Next Wave of the Opioid Epidemic Is Killing Black Men.md": { + "size": 34954, + "tags": 4, + "links": 2 + }, + "00.03 News/Margot Robbie Is Nobodyโ€™s Barbie The โ€˜Babylonโ€™ Star on Navigating Hollywood.md": { + "size": 24547, + "tags": 3, + "links": 2 + }, + "00.03 News/The death of NHL slap shots Why players are abandoning hockeyโ€™s signature offensive weapon.md": { + "size": 11160, + "tags": 3, + "links": 2 + }, + "00.03 News/How the Dez Bryant no-catch changed the NFL forever.md": { + "size": 48177, + "tags": 4, + "links": 2 + }, + "00.03 News/Trump Is No Longer Enjoying Himself โ€” And It Shows.md": { + "size": 6690, + "tags": 3, + "links": 2 + }, + "00.03 News/How the story of soccer became the story of everything.md": { + "size": 46495, + "tags": 4, + "links": 1 + }, + "00.01 Admin/Calendars/2022-11-22 France - Australie (4-1).md": { + "size": 271, + "tags": 0, + "links": 3 + }, + "00.01 Admin/Calendars/2022-11-23.md": { + "size": 1212, + "tags": 0, + "links": 4 + }, + "00.01 Admin/Calendars/2022-11-24.md": { + "size": 1212, + "tags": 0, + "links": 4 + }, + "00.01 Admin/Calendars/2022-11-25.md": { + "size": 1212, + "tags": 0, + "links": 4 + }, + "00.01 Admin/Calendars/2022-11-26.md": { + "size": 1212, + "tags": 0, + "links": 4 + }, + "00.01 Admin/Calendars/2022-11-26 France - Denmark (2-1).md": { + "size": 288, + "tags": 0, + "links": 3 + }, + "00.01 Admin/Calendars/2022-11-27.md": { + "size": 1212, + "tags": 0, + "links": 8 + }, + "00.03 News/Murder and Loathing in Las Vegas.md": { + "size": 40090, + "tags": 5, + "links": 2 + }, + "00.03 News/How Much Would You Pay to Save Your Pet's Life.md": { + "size": 42289, + "tags": 2, + "links": 2 + }, + "00.03 News/The Judge and the Case That Came Back to Haunt Him.md": { + "size": 65779, + "tags": 3, + "links": 2 + }, + "00.03 News/โ€˜Russian warship, go fuck yourselfโ€™ what happened next to the Ukrainians defending Snake Island.md": { + "size": 31897, + "tags": 3, + "links": 2 + }, + "00.03 News/Thanked by Shady Eminem's hip-hop idols react to Rock Hall shoutouts.md": { + "size": 19430, + "tags": 3, + "links": 2 + }, + "00.03 News/Extreme Heat Will Change Us.md": { + "size": 19916, + "tags": 2, + "links": 2 + }, + "00.03 News/The Beautiful, Brutal World of Bonsai.md": { + "size": 43549, + "tags": 2, + "links": 2 + }, + "03.02 Travels/Mallorca.md": { + "size": 2279, + "tags": 3, + "links": 1 + }, + "archive.md": { + "size": 0, + "tags": 0, + "links": 0 + }, + "03.01 Reading list/Soumission.md": { + "size": 1141, + "tags": 3, + "links": 2 + }, + "00.01 Admin/Calendars/2022-11-28.md": { + "size": 1095, + "tags": 0, + "links": 4 + }, + "00.01 Admin/Calendars/2022-11-29.md": { + "size": 1212, + "tags": 0, + "links": 4 + }, + "00.01 Admin/Calendars/2022-11-30.md": { + "size": 1339, + "tags": 0, + "links": 6 + }, + "00.01 Admin/Calendars/2022-12-16 ๐Ÿงš๐Ÿผ Meg in LDN.md": { + "size": 198, + "tags": 0, + "links": 3 + }, + "00.01 Admin/Calendars/2023-02-10 ๐Ÿ‘ฐโ€โ™€๏ธ Mariage civil Eloi et Zรฉlie.md": { + "size": 180, + "tags": 0, + "links": 0 + }, + "00.01 Admin/Calendars/2022-11-30 Tunisia - France (1-1).md": { + "size": 233, + "tags": 0, + "links": 2 + }, + "01.04 MRCK/Pet note.md": { + "size": 908, + "tags": 3, + "links": 3 + }, + "00.01 Admin/Calendars/2022-12-01.md": { + "size": 1212, + "tags": 0, + "links": 4 + }, + "00.01 Admin/Calendars/2022-12-02.md": { + "size": 1100, + "tags": 0, + "links": 5 + }, + "03.04 Cinematheque/Mean Streets (1973).md": { + "size": 2003, + "tags": 1, + "links": 1 + }, + "00.01 Admin/Calendars/2022-12-03.md": { + "size": 1212, + "tags": 0, + "links": 5 + }, + "03.04 Cinematheque/Quadrophenia (1979).md": { + "size": 1985, + "tags": 1, + "links": 1 + }, + "03.02 Travels/Son Ginard Polo Club.md": { + "size": 1415, + "tags": 2, + "links": 2 + }, + "03.02 Travels/Francisco Podesta.md": { + "size": 1746, + "tags": 4, + "links": 3 + }, + "00.01 Admin/Calendars/2022-12-04.md": { + "size": 1212, + "tags": 0, + "links": 7 + }, + "00.03 News/โ€˜He was fast โ€ฆ he ran you right overโ€™ what itโ€™s like to get hit by an SUV.md": { + "size": 25810, + "tags": 4, + "links": 2 + }, + "00.03 News/The dirty road to clean energy how Chinaโ€™s electric vehicle boom is ravaging the environment.md": { + "size": 34399, + "tags": 4, + "links": 2 + }, + "00.03 News/How Noah Baumbach Made โ€˜White Noiseโ€™ a Disaster Movie for Our Moment.md": { + "size": 45401, + "tags": 3, + "links": 2 + }, + "00.03 News/The Return of James Cameron, Box Office King.md": { + "size": 40715, + "tags": 3, + "links": 2 + }, + "00.03 News/A Matter of Honor.md": { + "size": 68113, + "tags": 3, + "links": 2 + }, + "00.01 Admin/Calendars/2022-12-04 France - Pologne (3-1).md": { + "size": 290, + "tags": 0, + "links": 1 + }, + "00.03 News/Collections Why Roman Egypt Was Such a Strange Province.md": { + "size": 42823, + "tags": 4, + "links": 2 + }, + "00.01 Admin/Calendars/2022-12-05.md": { + "size": 1334, + "tags": 0, + "links": 10 + }, + "03.02 Travels/Flumseberg.md": { + "size": 1560, + "tags": 2, + "links": 2 + }, + "00.01 Admin/Calendars/2022-12-10 โ›ท๏ธ Arosa.md": { + "size": 241, + "tags": 0, + "links": 4 + }, + "03.04 Cinematheque/Tomorrow Never Dies (1997).md": { + "size": 2084, + "tags": 1, + "links": 1 + }, + "00.01 Admin/Calendars/2022-12-06.md": { + "size": 1212, + "tags": 0, + "links": 6 + }, + "00.01 Admin/Calendars/2022-12-07.md": { + "size": 1099, + "tags": 0, + "links": 4 + }, + "00.01 Admin/Calendars/2022-12-08.md": { + "size": 1212, + "tags": 0, + "links": 6 + }, + "00.01 Admin/Calendars/2022-12-09.md": { + "size": 1212, + "tags": 0, + "links": 4 + }, + "00.03 News/Madame Palatine ร  la cour du Roi Soleil.md": { + "size": 23056, + "tags": 5, + "links": 2 + }, + "00.01 Admin/Calendars/2022-12-10.md": { + "size": 1212, + "tags": 0, + "links": 4 + }, + "00.01 Admin/Calendars/2022-12-10 โšฝ France - Angleterre (2-1).md": { + "size": 272, + "tags": 0, + "links": 1 + }, + "00.01 Admin/Calendars/2022-12-11.md": { + "size": 1212, + "tags": 0, + "links": 6 + }, + "00.03 News/The Harvey Weinstein Trial and the Myth of the Perfect Perpetrator.md": { + "size": 11083, + "tags": 6, + "links": 2 + }, + "00.03 News/Drugs killed 8 friends, one by one, in a tragedy seen across the U.S..md": { + "size": 22383, + "tags": 3, + "links": 2 + }, + "00.03 News/Bodybuilders dying as coaches and judges encourage extreme measures.md": { + "size": 57347, + "tags": 6, + "links": 2 + }, + "00.03 News/Inside the Case Against General Salvador Cienfuegos Zepeda.md": { + "size": 81730, + "tags": 4, + "links": 2 + }, + "00.03 News/Secrets of the Christmas Tree Trade.md": { + "size": 38802, + "tags": 2, + "links": 2 + }, + "00.03 News/Searching for Zarahemla A van, the Yucatรกn, five Latter-day Saints, and the malleable nature of truth.md": { + "size": 55850, + "tags": 3, + "links": 1 + }, + "03.04 Cinematheque/The World Is Not Enough (1999).md": { + "size": 2088, + "tags": 1, + "links": 1 + }, + "00.01 Admin/Calendars/2022-12-12.md": { + "size": 1212, + "tags": 0, + "links": 4 + }, + "00.08 Bookmarks/Bookmarks - Travels & Sport.md": { + "size": 896, + "tags": 0, + "links": 5 + }, + "00.01 Admin/Calendars/2022-12-13.md": { + "size": 1103, + "tags": 0, + "links": 5 + }, + "03.04 Cinematheque/Jaws (1975).md": { + "size": 2069, + "tags": 1, + "links": 1 + }, + "00.01 Admin/Calendars/2022-12-14.md": { + "size": 1342, + "tags": 0, + "links": 6 + }, + "00.01 Admin/Calendars/2022-12-18 France - Argentine.md": { + "size": 113, + "tags": 0, + "links": 0 + }, + "00.01 Admin/Calendars/2022-12-14 โšฝ๏ธ Maroc - France (0-2).md": { + "size": 216, + "tags": 0, + "links": 1 + }, + "00.01 Admin/Calendars/2022-12-15.md": { + "size": 1334, + "tags": 0, + "links": 10 + }, + "03.04 Cinematheque/Mars Attacks! (1996).md": { + "size": 2085, + "tags": 1, + "links": 1 + }, + "03.04 Cinematheque/Die Another Day (2002).md": { + "size": 2099, + "tags": 1, + "links": 1 + }, + "00.01 Admin/Calendars/2022-12-16.md": { + "size": 1212, + "tags": 0, + "links": 4 + }, + "02.03 Zรผrich/Rex Automobile CH.md": { + "size": 1692, + "tags": 3, + "links": 1 + } + }, + "commitTypes": { + "/": { + "Refactor": 1170, + "Create": 1195, + "Link": 2711, + "Expand": 1147 + } + }, + "dailyCommits": { + "/": { + "0": 72, + "1": 32, + "2": 23, + "3": 11, + "4": 17, + "5": 9, + "6": 57, + "7": 368, + "8": 604, + "9": 555, + "10": 398, + "11": 287, + "12": 241, + "13": 333, + "14": 293, + "15": 308, + "16": 312, + "17": 331, + "18": 500, + "19": 373, + "20": 285, + "21": 289, + "22": 365, + "23": 160 + } + }, + "weeklyCommits": { + "/": { + "Mon": 925, + "Tue": 985, + "Wed": 705, + "Thu": 568, + "Fri": 634, + "Sat": 0, + "Sun": 2406 + } + }, + "recentCommits": { + "/": { + "Expanded": [ + " Life - Practical infos ", + " Rex Automobile CH ", + " Life - Practical infos ", + " Rex Automobile CH ", + " 2022-12-15 ", + " @@Paris ", + " 2022-12-18 France - Argentine ", + " 2022-12-14 Maroc - France ", + " Marseille ", + " @United States ", + " @Switzerland ", + " 2022-12-14 ", + " Bookmarks - Work ", + " Bookmarks - Travels & Sport ", + " 2022-12-10 โšฝ France - Angleterre ", + " 2022-12-10 โšฝ France - Angleterre ", + " Household ", + " Bandes Dessinรฉes ", + " Bookmarks - Mac applications ", + " Household ", + " 2022-12-10 โ›ท๏ธ Arosa ", + " Flumseberg ", + " 2022-12-05 ", + " @Sport Zรผrich ", + " Crypto Tasks ", + " 2022-12-10 โšฝ France - Angleterre ", + " 2022-12-10 France - ", + " 2022-12-10 France - ", + " 2022-12-04 France - Pologne (3-1) ", + " 2022-12-04 France - Pologne ", + " 2022-12-04 France - Pologne ", + " Son Ginard Polo Club ", + " VC Tasks ", + " 2022-12-04 France - Pologne ", + " Pet note ", + " 2022-11-30 Tunisia - France (1-1) ", + " 2023-02-10 ๐Ÿ‘ฐโ€โ™€๏ธ Mariage civil Eloi et Zรฉlie ", + " 2022-12-16 ๐Ÿงš๐Ÿผ Meg in LDN ", + " 2022-11-30 ", + " Household ", + " Household ", + " Mallorca ", + " Mallorca ", + " Mallorca ", + " 2022-11-26 France - Denmark ", + " Configuring UFW ", + " Equity Tasks ", + " 2022-11-22 France - Australie (4-1) ", + " @Restaurants Zรผrich ", + " Apotheke ", + " Household " + ], + "Created": [ + " Rex Automobile CH ", + " 2022-12-16 ", + " Die Another Day (2002) ", + " Mars Attacks! (1996) ", + " 2022-12-15 ", + " 2022-12-18 France - Argentine ", + " Life admin ", + " 2022-12-15 Test ", + " 2022-12-14 ", + " Jaws (1975) ", + " 2022-12-13 ", + " Bookmarks - Travels & Sport ", + " 2022-12-12 ", + " The World Is Not Enough (1999) ", + " Searching for Zarahemla A van, the Yucatรกn, five Latter-day Saints, and the malleable nature of truth ", + " Secrets of the Christmas Tree Trade ", + " Inside the Case Against General Salvador Cienfuegos Zepeda ", + " Bodybuilders dying as coaches and judges encourage extreme measures ", + " Drugs killed 8 friends, one by one, in a tragedy seen across the U.S. ", + " The Harvey Weinstein Trial and the Myth of the Perfect Perpetrator ", + " 2022-12-11 ", + " 2022-12-14 Maroc - France ", + " 2022-12-10 ", + " Madame Palatine ร  la cour du Roi Soleil ", + " 2022-12-09 ", + " 2022-12-08 ", + " 2022-12-07 ", + " 2022-12-06 ", + " Tomorrow Never Dies (1997) ", + " Tomorrow Never Dies (1997) ", + " 2022-12-10 โ›ท๏ธ Arosa ", + " Untitled ", + " 2022-12-05 ", + " Collections Why Roman Egypt Was Such a Strange Province ", + " 2022-12-10 France - ", + " A Matter of Honor ", + " The Return of James Cameron, Box Office King ", + " How Noah Baumbach Made โ€˜White Noiseโ€™ a Disaster Movie for Our Moment ", + " The dirty road to clean energy how Chinaโ€™s electric vehicle boom is ravaging the environment ", + " โ€˜He was fast โ€ฆ he ran you right overโ€™ what itโ€™s like to get hit by an SUV ", + " 2022-12-04 ", + " Untitled ", + " Quadrophenia (1979) ", + " 2022-12-03 ", + " Mean Streets (1973) ", + " 2022-12-02 ", + " 2022-12-04 France - Pologne ", + " 2022-12-01 ", + " Untitled ", + " 2023-02-10 ๐Ÿ‘ฐโ€โ™€๏ธ Mriage civil Eloi et Zรฉlie ", + " 2022-12-16 ๐Ÿงš๐Ÿผ Meg in LDN " + ], + "Renamed": [ + " Rex Automobile CH ", + " Die Another Day (2002) ", + " Mars Attacks! (1996) ", + " 2022-12-14 โšฝ๏ธ Maroc - France (0-2) ", + " 2022-12-14 โšฝ๏ธ Maroc - France ", + " Jaws (1975) ", + " Bookmarks - Travels & Sport ", + " The World Is Not Enough (1999) ", + " Searching for Zarahemla A van, the Yucatรกn, five Latter-day Saints, and the malleable nature of truth ", + " Secrets of the Christmas Tree Trade ", + " Inside the Case Against General Salvador Cienfuegos Zepeda ", + " Bodybuilders dying as coaches and judges encourage extreme measures ", + " Drugs killed 8 friends, one by one, in a tragedy seen across the U.S. ", + " The Harvey Weinstein Trial and the Myth of the Perfect Perpetrator ", + " 2022-12-10 โšฝ France - Angleterre (2-1) ", + " Madame Palatine ร  la cour du Roi Soleil ", + " Tomorrow Never Dies (1997) ", + " Flumseberg ", + " Flumseberg ", + " Collections Why Roman Egypt Was Such a Strange Province ", + " 2022-12-10 โšฝ France - Angleterre ", + " 2022-12-04 France - Pologne (3-1) ", + " A Matter of Honor ", + " The Return of James Cameron, Box Office King ", + " How Noah Baumbach Made โ€˜White Noiseโ€™ a Disaster Movie for Our Moment ", + " The dirty road to clean energy how Chinaโ€™s electric vehicle boom is ravaging the environment ", + " โ€˜He was fast โ€ฆ he ran you right overโ€™ what itโ€™s like to get hit by an SUV ", + " Francisco Podesta ", + " Son Ginard Polo Club ", + " Son Ginard Polo Club ", + " Quadrophenia (1979) ", + " Mean Streets (1973) ", + " Pet note ", + " 2022-11-30 Tunisia - France (1-1) ", + " 2023-02-10 ๐Ÿ‘ฐโ€โ™€๏ธ Mariage civil Eloi et Zรฉlie ", + " Soumission ", + " Mallorca ", + " The Beautiful, Brutal World of Bonsai ", + " Extreme Heat Will Change Us ", + " Thanked by Shady Eminem's hip-hop idols react to Rock Hall shoutouts ", + " โ€˜Russian warship, go fuck yourselfโ€™ what happened next to the Ukrainians defending Snake Island ", + " The Judge and the Case That Came Back to Haunt Him ", + " How Much Would You Pay to Save Your Pet's Life ", + " Murder and Loathing in Las Vegas ", + " 2022-11-26 France - Denmark (2-1) ", + " 2022-11-22 France - Australie (4-1) ", + " How the story of soccer became the story of everything ", + " Trump Is No Longer Enjoying Himself โ€” And It Shows ", + " How the Dez Bryant no-catch changed the NFL forever ", + " The death of NHL slap shots Why players are abandoning hockeyโ€™s signature offensive weapon ", + " Margot Robbie Is Nobodyโ€™s Barbie The โ€˜Babylonโ€™ Star on Navigating Hollywood " + ], + "Tagged": [ + " Rex Automobile CH ", + " Die Another Day (2002) ", + " Mars Attacks! (1996) ", + " Marseille ", + " Jaws (1975) ", + " The World Is Not Enough (1999) ", + " Searching for Zarahemla A van, the Yucatรกn, five Latter-day Saints, and the malleable nature of truth ", + " Searching for Zarahemla A van, the Yucatรกn, five Latter-day Saints, and the malleable nature of truth ", + " Secrets of the Christmas Tree Trade ", + " Bodybuilders dying as coaches and judges encourage extreme measures ", + " Inside the Case Against General Salvador Cienfuegos Zepeda ", + " Drugs killed 8 friends, one by one, in a tragedy seen across the U.S. ", + " The Harvey Weinstein Trial and the Myth of the Perfect Perpetrator ", + " Madame Palatine ร  la cour du Roi Soleil ", + " Tomorrow Never Dies (1997) ", + " Flumseberg ", + " Collections Why Roman Egypt Was Such a Strange Province ", + " A Matter of Honor ", + " The dirty road to clean energy how Chinaโ€™s electric vehicle boom is ravaging the environment ", + " How Noah Baumbach Made โ€˜White Noiseโ€™ a Disaster Movie for Our Moment ", + " The Return of James Cameron, Box Office King ", + " The dirty road to clean energy how Chinaโ€™s electric vehicle boom is ravaging the environment ", + " โ€˜He was fast โ€ฆ he ran you right overโ€™ what itโ€™s like to get hit by an SUV ", + " Son Ginard Polo Club ", + " Quadrophenia (1979) ", + " Mean Streets (1973) ", + " Pet note ", + " Mallorca ", + " Extreme Heat Will Change Us ", + " The Beautiful, Brutal World of Bonsai ", + " Thanked by Shady Eminem's hip-hop idols react to Rock Hall shoutouts ", + " The Judge and the Case That Came Back to Haunt Him ", + " โ€˜Russian warship, go fuck yourselfโ€™ what happened next to the Ukrainians defending Snake Island ", + " The Judge and the Case That Came Back to Haunt Him ", + " Murder and Loathing in Las Vegas ", + " How Much Would You Pay to Save Your Pet's Life ", + " How the story of soccer became the story of everything ", + " The death of NHL slap shots Why players are abandoning hockeyโ€™s signature offensive weapon ", + " How the Dez Bryant no-catch changed the NFL forever ", + " Trump Is No Longer Enjoying Himself โ€” And It Shows ", + " The Next Wave of the Opioid Epidemic Is Killing Black Men ", + " Margot Robbie Is Nobodyโ€™s Barbie The โ€˜Babylonโ€™ Star on Navigating Hollywood ", + " 10 More Disturbing Revelations About Sam Bankman-Fried ", + " โ€˜The Holeโ€™ Gruesome Accounts of Russian Occupation Emerge From Ukrainian Nuclear Plant ", + " The story of a young mother, a fire and a Milwaukee landlord ", + " DEAโ€™s most corrupt agent Parties, sex amid 'unwinnable war' ", + " Apotheke ", + " Reservoir Dogs (1992) ", + " PM to fill out party questionnaire ", + " The markets are in meltdown โ€“ but at least Kwasi Kwartengโ€™s doomsday cult isnโ€™t to blame Marina Hyde ", + " Opinion A Lost Manuscript Shows the Fire Barack Obama Couldnโ€™t Reveal on the Campaign Trail " + ], + "Refactored": [ + " VC Tasks ", + " Crypto Tasks ", + " Equity Tasks ", + " Household ", + " 2022-11-11 ", + " 2022-11-06 ", + " Gรผl ", + " Test Sheet 2 ", + " 2022-10-18 ", + " Pooch list ", + " Belfast ", + " MRCK ", + " NewBookmark ", + " NewBookmark ", + " @Short breaks ", + " Florence ", + " @Short breaks ", + " Masseria Moroseta ", + " @Short breaks ", + " @Short breaks ", + " League Tables ", + " 2022-10-03 Meggi leaving to Belfast ", + " Zรผrich - Practical info ", + " Zรผrich - Practical info ", + " 2022-09-07 ", + " 2022-09-05 ", + " Test sheet ", + " Server Cloud ", + " Server Cloud ", + " Server Cloud ", + " Server Cloud ", + " Obsidian plugins ", + " @Main Dashboard ", + " @Cafรฉ Zรผrich ", + " Baur's ", + " Recommendation list (Zรผrich) ", + " 2022-01-23 ", + " SendFile ", + " NewFile1 ", + " Turkey With Glass Noodles ", + " Torched Banana Cake ", + " Ultimate Sugar Cookies ", + " Pastitsio ", + " Peperoncini Chicken ", + " Harissa-Honey Popcorn Chicken ", + " Churros with Bittersweet Chocolate Sauce ", + " Obsidian plugins ", + " Thai Basil Sauce Noodles with Jammy Eggs ", + " Thai Basil Sauce Noodles with Jammy Eggs ", + " Tous les hommes n'habitent pas le monde de la mรชme faรงon - Jean-Paul Dubois ", + " Template Recipe " + ], + "Deleted": [ + " 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 ", + " aglaedevilleneuve@yahoo.fr ", + " Mail Import ", + " Rich text ", + " 2022-10-30 ", + " How a New Anti-Woke Bank Stumbled ", + " Test note ", + " Buttons 1.0 is Coming ", + " Empire of Pain ", + " The Wembanyama Effect How the buzz about Victor will influence NBA tanking and front office thinking this season ", + " The Genetic Freakโ€ Taking Over the Premier League ", + " Qui est Patrick Radden Keefe, lโ€™homme qui a rรฉvรฉlรฉ lโ€™affaire des opioรฏdes aux Etats-Unis ", + " The Daily - Florida After Hurricane Ian ", + " Obsidian plugins ", + " Test ", + " GitHub - iptv-orgiptv Collection of publicly available IPTV channels from all over the world ", + " Test ", + " Test ", + " The Daily - Putinโ€™s Escalation of the War in Ukraine ", + " You're Not Addicted to Technology. Here's What's Happening Instead. ", + " You're Not Addicted to Technology. Here's What's Happening Instead. ", + " hashcat - advanced password recovery ", + " Untitled ", + " Fat Leonard (Almost) Flees to Russia ", + " This Is What Lifeโ€™s Like in the Worldโ€™s Strictest Covid Zero City ", + " Goodbye Cron, Helloโ€ฆ - Francesco D'Alessio - Medium ", + " The Daily - Putinโ€™s Escalation of the War in Ukraine ", + " Zรผrich - Practical infos ", + " Untitled Kanban ", + " The Daily - Can the U.K. Remain United Without the Queen ", + " The Daily - Can the U.K. Remain United Without the Queen ", + " Teat linked card ", + " The Daily - Can the U.K. Remain United Without the Queen ", + " 2022-09-20 ", + " The Daily - How Queen Elizabeth II Preserved the Monarchy ", + " 2022-10-10 ", + " 2022-10-10 Return flight to Zรผrich ", + " 2022-10-23 Retour de Paris ", + " 2023-09-08 ", + " 2023-09-13 Back from NYC ", + " 2022-11-19 ๐Ÿ’ Fiancailles Marguerite & Arnold - Genรจve ", + " 2022-10-14 ๐Ÿš† Dรฉpart pour GVA ", + " Zรผrich - Practical info ", + " Kanban test ", + " The Daily - How Queen Elizabeth II Preserved the Monarchy " + ], + "Linked": [ + " Life - Practical infos ", + " Rex Automobile CH ", + " 2022-12-16 ", + " 2022-12-15 ", + " 2022-12-15 ", + " Die Another Day (2002) ", + " Mars Attacks! (1996) ", + " @@Paris ", + " 2022-12-15 ", + " 2022-12-15 ", + " 2022-12-14 ", + " 2022-12-14 ", + " 2022-12-13 ", + " Jaws (1975) ", + " 2022-12-13 ", + " Bookmarks - Webpages ", + " Bookmarks - Travels & Sport ", + " Inside the Case Against General Salvador Cienfuegos Zepeda ", + " The Harvey Weinstein Trial and the Myth of the Perfect Perpetrator ", + " Secrets of the Christmas Tree Trade ", + " Drugs killed 8 friends, one by one, in a tragedy seen across the U.S. ", + " 2022-12-12 ", + " 2022-12-11 ", + " 2022-12-11 ", + " The World Is Not Enough (1999) ", + " Bodybuilders dying as coaches and judges encourage extreme measures ", + " The Return of James Cameron, Box Office King ", + " Searching for Zarahemla A van, the Yucatรกn, five Latter-day Saints, and the malleable nature of truth ", + " Secrets of the Christmas Tree Trade ", + " Bodybuilders dying as coaches and judges encourage extreme measures ", + " Inside the Case Against General Salvador Cienfuegos Zepeda ", + " Drugs killed 8 friends, one by one, in a tragedy seen across the U.S. ", + " The Harvey Weinstein Trial and the Myth of the Perfect Perpetrator ", + " 2022-12-14 Maroc - France ", + " 2022-12-11 ", + " 2022-12-10 ", + " Madame Palatine ร  la cour du Roi Soleil ", + " Madame Palatine ร  la cour du Roi Soleil ", + " 2022-12-09 ", + " How Noah Baumbach Made โ€˜White Noiseโ€™ a Disaster Movie for Our Moment ", + " @@MRCK ", + " How Much Would You Pay to Save Your Pet's Life ", + " The Judge and the Case That Came Back to Haunt Him ", + " The dirty road to clean energy how Chinaโ€™s electric vehicle boom is ravaging the environment ", + " 2022-12-08 ", + " Murder and Loathing in Las Vegas ", + " 2022-12-08 ", + " 2022-12-06 ", + " 2022-12-07 ", + " Collections Why Roman Egypt Was Such a Strange Province ", + " A Matter of Honor " + ], + "Removed Tags from": [ + " Harissa, Squash & Chickpea stew ", + " A view from across the river ", + " Meet Richard Fritz, Americaโ€™s Most Unelectable Elected Official Defector ", + " How PMโ€™s former aide had to โ€˜nanny himโ€™ through lockdown ", + " 2022-07-31 ", + " 2022-08-14 ", + " 2022-05-24 ", + " 2022-05-30 ", + " 2022-06-25 ", + " Le Miel de Paris ", + " What i learnt during my 3 days offline ", + " Migrants faced the worst of the gig economy, so they made their own delivery app ", + " Confessions of a Bitcoin Widow How a Dream Life Turned into a Nightmare The Walrus ", + " Lโ€™enquรชte ยซ Suisse Secrets ยป relance le dรฉbat sur la libertรฉ de la presse face au secret bancaire ", + " A Vibe Shift Is Coming ", + " Fresh Tomato Eggs in Purgatory with Chickpeas ", + " VPS Console Dialogue ", + " Cinematheque ", + " Le Miel de Paris ", + " Apple processes ", + " Bruxelles ", + " A Search for Family, a Love for Horses and How It All Led to Kentucky Derby Glory ", + " YouTube Fraud Led to $23 Million in Royalties for 2 Men, IRS Says ", + " How the NYPD Cracked the Michael K. Williams Overdose Case ", + " Two Professors Found What Creates a Mass Shooter. Will Politicians Pay Attention ", + " The Clove Club ", + " Flesh & Buns ", + " Monocle ", + " Comprendre l'islam ", + " Abri ", " hLedger ", " Household ", " @@Recipes ", @@ -7010,8 +7631,7 @@ " Ethiopian holiday ", " Jazz Route (US) ", " RSA - Wine region ", - " @Short breaks ", - " @Reading master " + " @Short breaks " ], "Removed Links from": [ " 2022-01-22 ", @@ -7041,7 +7661,8 @@ " 2022-09-19 ", " @Short breaks ", " Bookmarks - Obsidian ", - " 2022-02-28 " + " 2022-02-28 ", + " 2022-12-14 " ] } }, diff --git a/.obsidian/plugins/obsidian-full-calendar/data.json b/.obsidian/plugins/obsidian-full-calendar/data.json index c25b74b3..262cc08f 100644 --- a/.obsidian/plugins/obsidian-full-calendar/data.json +++ b/.obsidian/plugins/obsidian-full-calendar/data.json @@ -4,34 +4,14 @@ "type": "local", "color": "#4d95f7", "directory": "00.01 Admin/Calendars" - }, - { - "type": "gcal", - "color": "#0056d6", - "url": "melchiorbv@gmail.com" - }, - { - "type": "gcal", - "color": "#ffc777", - "url": "en-gb.ch#holiday@group.v.calendar.google.com" - }, - { - "type": "gcal", - "color": "#fff76b", - "url": "en-gb.french#holiday@group.v.calendar.google.com" - }, - { - "type": "gcal", - "color": "#e4ef65", - "url": "en.uk#holiday@group.v.calendar.google.com" - }, - { - "type": "ical", - "color": "#52d6fc", - "url": "webcal://p55-caldav.icloud.com/published/2/MTc2MDQ3Mzc5MzQxNzYwNEi4Z5y74HWKzCeCFpoAsLkAo0RZ--Np5MpfvpB8PSbwberx4QERWgCnZ3nPIMqxgArJ0qcm9iNJ1gF8UAcL838" } ], "defaultCalendar": 0, "recursiveLocal": true, - "firstDay": 1 + "firstDay": 1, + "initialView": { + "desktop": "timeGridWeek", + "mobile": "timeGrid3Days" + }, + "timeFormat24h": true } \ No newline at end of file diff --git a/.obsidian/plugins/obsidian-full-calendar/main.js b/.obsidian/plugins/obsidian-full-calendar/main.js index ec145ae6..8e9db706 100644 --- a/.obsidian/plugins/obsidian-full-calendar/main.js +++ b/.obsidian/plugins/obsidian-full-calendar/main.js @@ -27,6 +27,18 @@ var __spreadValues = (a3, b3) => { }; var __spreadProps = (a3, b3) => __defProps(a3, __getOwnPropDescs(b3)); var __markAsModule = (target) => __defProp(target, "__esModule", { value: true }); +var __objRest = (source, exclude) => { + var target = {}; + for (var prop in source) + if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0) + target[prop] = source[prop]; + if (source != null && __getOwnPropSymbols) + for (var prop of __getOwnPropSymbols(source)) { + if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop)) + target[prop] = source[prop]; + } + return target; +}; var __commonJS = (cb, mod) => function __require() { return mod || (0, cb[Object.keys(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports; }; @@ -62,7 +74,7 @@ var __async = (__this, __arguments, generator) => { reject(e3); } }; - var step = (x3) => x3.done ? resolve(x3.value) : Promise.resolve(x3.value).then(fulfilled, rejected); + var step = (x4) => x4.done ? resolve(x4.value) : Promise.resolve(x4.value).then(fulfilled, rejected); step((generator = generator.apply(__this, __arguments)).next()); }); }; @@ -118,51 +130,51 @@ var require_tslib = __commonJS({ }; } })(function(exporter) { - var extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d3, b3) { - d3.__proto__ = b3; - } || function(d3, b3) { + var extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b3) { + d2.__proto__ = b3; + } || function(d2, b3) { for (var p3 in b3) if (Object.prototype.hasOwnProperty.call(b3, p3)) - d3[p3] = b3[p3]; + d2[p3] = b3[p3]; }; - __extends2 = function(d3, b3) { + __extends2 = function(d2, b3) { if (typeof b3 !== "function" && b3 !== null) throw new TypeError("Class extends value " + String(b3) + " is not a constructor or null"); - extendStatics(d3, b3); + extendStatics(d2, b3); function __() { - this.constructor = d3; + this.constructor = d2; } - d3.prototype = b3 === null ? Object.create(b3) : (__.prototype = b3.prototype, new __()); + d2.prototype = b3 === null ? Object.create(b3) : (__.prototype = b3.prototype, new __()); }; __assign2 = Object.assign || function(t3) { - for (var s3, i3 = 1, n2 = arguments.length; i3 < n2; i3++) { - s3 = arguments[i3]; - for (var p3 in s3) - if (Object.prototype.hasOwnProperty.call(s3, p3)) - t3[p3] = s3[p3]; + for (var s4, i3 = 1, n3 = arguments.length; i3 < n3; i3++) { + s4 = arguments[i3]; + for (var p3 in s4) + if (Object.prototype.hasOwnProperty.call(s4, p3)) + t3[p3] = s4[p3]; } return t3; }; - __rest2 = function(s3, e3) { + __rest2 = function(s4, e3) { var t3 = {}; - for (var p3 in s3) - if (Object.prototype.hasOwnProperty.call(s3, p3) && e3.indexOf(p3) < 0) - t3[p3] = s3[p3]; - if (s3 != null && typeof Object.getOwnPropertySymbols === "function") - for (var i3 = 0, p3 = Object.getOwnPropertySymbols(s3); i3 < p3.length; i3++) { - if (e3.indexOf(p3[i3]) < 0 && Object.prototype.propertyIsEnumerable.call(s3, p3[i3])) - t3[p3[i3]] = s3[p3[i3]]; + for (var p3 in s4) + if (Object.prototype.hasOwnProperty.call(s4, p3) && e3.indexOf(p3) < 0) + t3[p3] = s4[p3]; + if (s4 != null && typeof Object.getOwnPropertySymbols === "function") + for (var i3 = 0, p3 = Object.getOwnPropertySymbols(s4); i3 < p3.length; i3++) { + if (e3.indexOf(p3[i3]) < 0 && Object.prototype.propertyIsEnumerable.call(s4, p3[i3])) + t3[p3[i3]] = s4[p3[i3]]; } return t3; }; __decorate2 = function(decorators, target, key, desc) { - var c3 = arguments.length, r3 = c3 < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d3; + var c3 = arguments.length, r3 = c3 < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d2; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r3 = Reflect.decorate(decorators, target, key, desc); else for (var i3 = decorators.length - 1; i3 >= 0; i3--) - if (d3 = decorators[i3]) - r3 = (c3 < 3 ? d3(r3) : c3 > 3 ? d3(target, key, r3) : d3(target, key)) || r3; + if (d2 = decorators[i3]) + r3 = (c3 < 3 ? d2(r3) : c3 > 3 ? d2(target, key, r3) : d2(target, key)) || r3; return c3 > 3 && r3 && Object.defineProperty(target, key, r3), r3; }; __param2 = function(paramIndex, decorator) { @@ -206,13 +218,13 @@ var require_tslib = __commonJS({ if (t3[0] & 1) throw t3[1]; return t3[1]; - }, trys: [], ops: [] }, f3, y3, t3, g3; - return g3 = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g3[Symbol.iterator] = function() { + }, trys: [], ops: [] }, f3, y3, t3, g4; + return g4 = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g4[Symbol.iterator] = function() { return this; - }), g3; - function verb(n2) { + }), g4; + function verb(n3) { return function(v3) { - return step([n2, v3]); + return step([n3, v3]); }; } function step(op) { @@ -277,26 +289,26 @@ var require_tslib = __commonJS({ return { value: op[0] ? op[1] : void 0, done: true }; } }; - __exportStar2 = function(m2, o2) { - for (var p3 in m2) + __exportStar2 = function(m3, o2) { + for (var p3 in m3) if (p3 !== "default" && !Object.prototype.hasOwnProperty.call(o2, p3)) - __createBinding2(o2, m2, p3); + __createBinding2(o2, m3, p3); }; - __createBinding2 = Object.create ? function(o2, m2, k2, k22) { + __createBinding2 = Object.create ? function(o2, m3, k3, k22) { if (k22 === void 0) - k22 = k2; + k22 = k3; Object.defineProperty(o2, k22, { enumerable: true, get: function() { - return m2[k2]; + return m3[k3]; } }); - } : function(o2, m2, k2, k22) { + } : function(o2, m3, k3, k22) { if (k22 === void 0) - k22 = k2; - o2[k22] = m2[k2]; + k22 = k3; + o2[k22] = m3[k3]; }; __values2 = function(o2) { - var s3 = typeof Symbol === "function" && Symbol.iterator, m2 = s3 && o2[s3], i3 = 0; - if (m2) - return m2.call(o2); + var s4 = typeof Symbol === "function" && Symbol.iterator, m3 = s4 && o2[s4], i3 = 0; + if (m3) + return m3.call(o2); if (o2 && typeof o2.length === "number") return { next: function() { @@ -305,22 +317,22 @@ var require_tslib = __commonJS({ return { value: o2 && o2[i3++], done: !o2 }; } }; - throw new TypeError(s3 ? "Object is not iterable." : "Symbol.iterator is not defined."); + throw new TypeError(s4 ? "Object is not iterable." : "Symbol.iterator is not defined."); }; - __read2 = function(o2, n2) { - var m2 = typeof Symbol === "function" && o2[Symbol.iterator]; - if (!m2) + __read2 = function(o2, n3) { + var m3 = typeof Symbol === "function" && o2[Symbol.iterator]; + if (!m3) return o2; - var i3 = m2.call(o2), r3, ar = [], e3; + var i3 = m3.call(o2), r3, ar = [], e3; try { - while ((n2 === void 0 || n2-- > 0) && !(r3 = i3.next()).done) + while ((n3 === void 0 || n3-- > 0) && !(r3 = i3.next()).done) ar.push(r3.value); } catch (error) { e3 = { error }; } finally { try { - if (r3 && !r3.done && (m2 = i3["return"])) - m2.call(i3); + if (r3 && !r3.done && (m3 = i3["return"])) + m3.call(i3); } finally { if (e3) throw e3.error; @@ -334,16 +346,16 @@ var require_tslib = __commonJS({ return ar; }; __spreadArrays2 = function() { - for (var s3 = 0, i3 = 0, il = arguments.length; i3 < il; i3++) - s3 += arguments[i3].length; - for (var r3 = Array(s3), k2 = 0, i3 = 0; i3 < il; i3++) - for (var a3 = arguments[i3], j4 = 0, jl = a3.length; j4 < jl; j4++, k2++) - r3[k2] = a3[j4]; + for (var s4 = 0, i3 = 0, il = arguments.length; i3 < il; i3++) + s4 += arguments[i3].length; + for (var r3 = Array(s4), k3 = 0, i3 = 0; i3 < il; i3++) + for (var a3 = arguments[i3], j4 = 0, jl = a3.length; j4 < jl; j4++, k3++) + r3[k3] = a3[j4]; return r3; }; __spreadArray2 = function(to, from, pack) { if (pack || arguments.length === 2) - for (var i3 = 0, l3 = from.length, ar; i3 < l3; i3++) { + for (var i3 = 0, l4 = from.length, ar; i3 < l4; i3++) { if (ar || !(i3 in from)) { if (!ar) ar = Array.prototype.slice.call(from, 0, i3); @@ -358,21 +370,21 @@ var require_tslib = __commonJS({ __asyncGenerator2 = function(thisArg, _arguments, generator) { if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); - var g3 = generator.apply(thisArg, _arguments || []), i3, q3 = []; + var g4 = generator.apply(thisArg, _arguments || []), i3, q3 = []; return i3 = {}, verb("next"), verb("throw"), verb("return"), i3[Symbol.asyncIterator] = function() { return this; }, i3; - function verb(n2) { - if (g3[n2]) - i3[n2] = function(v3) { + function verb(n3) { + if (g4[n3]) + i3[n3] = function(v3) { return new Promise(function(a3, b3) { - q3.push([n2, v3, a3, b3]) > 1 || resume(n2, v3); + q3.push([n3, v3, a3, b3]) > 1 || resume(n3, v3); }); }; } - function resume(n2, v3) { + function resume(n3, v3) { try { - step(g3[n2](v3)); + step(g4[n3](v3)); } catch (e3) { settle(q3[0][3], e3); } @@ -398,29 +410,29 @@ var require_tslib = __commonJS({ }), verb("return"), i3[Symbol.iterator] = function() { return this; }, i3; - function verb(n2, f3) { - i3[n2] = o2[n2] ? function(v3) { - return (p3 = !p3) ? { value: __await2(o2[n2](v3)), done: n2 === "return" } : f3 ? f3(v3) : v3; + function verb(n3, f3) { + i3[n3] = o2[n3] ? function(v3) { + return (p3 = !p3) ? { value: __await2(o2[n3](v3)), done: n3 === "return" } : f3 ? f3(v3) : v3; } : f3; } }; __asyncValues2 = function(o2) { if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); - var m2 = o2[Symbol.asyncIterator], i3; - return m2 ? m2.call(o2) : (o2 = typeof __values2 === "function" ? __values2(o2) : o2[Symbol.iterator](), i3 = {}, verb("next"), verb("throw"), verb("return"), i3[Symbol.asyncIterator] = function() { + var m3 = o2[Symbol.asyncIterator], i3; + return m3 ? m3.call(o2) : (o2 = typeof __values2 === "function" ? __values2(o2) : o2[Symbol.iterator](), i3 = {}, verb("next"), verb("throw"), verb("return"), i3[Symbol.asyncIterator] = function() { return this; }, i3); - function verb(n2) { - i3[n2] = o2[n2] && function(v3) { + function verb(n3) { + i3[n3] = o2[n3] && function(v3) { return new Promise(function(resolve, reject) { - v3 = o2[n2](v3), settle(resolve, reject, v3.done, v3.value); + v3 = o2[n3](v3), settle(resolve, reject, v3.done, v3.value); }); }; } - function settle(resolve, reject, d3, v3) { + function settle(resolve, reject, d2, v3) { Promise.resolve(v3).then(function(v4) { - resolve({ value: v4, done: d3 }); + resolve({ value: v4, done: d2 }); }, reject); } }; @@ -442,9 +454,9 @@ var require_tslib = __commonJS({ return mod; var result = {}; if (mod != null) { - for (var k2 in mod) - if (k2 !== "default" && Object.prototype.hasOwnProperty.call(mod, k2)) - __createBinding2(result, mod, k2); + for (var k3 in mod) + if (k3 !== "default" && Object.prototype.hasOwnProperty.call(mod, k3)) + __createBinding2(result, mod, k3); } __setModuleDefault(result, mod); return result; @@ -682,10 +694,10 @@ var require_ical = __commonJS({ return number < 0 ? Math.ceil(number) : Math.floor(number); }, inherits: function(base, child, extra) { - function F2() { + function F3() { } - F2.prototype = base.prototype; - child.prototype = new F2(); + F3.prototype = base.prototype; + child.prototype = new F3(); if (extra) { ICAL3.helpers.extend(extra, child.prototype); } @@ -1057,25 +1069,25 @@ var require_ical = __commonJS({ }, toICAL: function(data) { var str = ""; - for (var k2 in data) { - if (!Object.prototype.hasOwnProperty.call(data, k2)) { + for (var k3 in data) { + if (!Object.prototype.hasOwnProperty.call(data, k3)) { continue; } - var val = data[k2]; - if (k2 == "until") { + var val = data[k3]; + if (k3 == "until") { if (val.length > 10) { val = icalValues["date-time"].toICAL(val); } else { val = icalValues.date.toICAL(val); } - } else if (k2 == "wkst") { + } else if (k3 == "wkst") { if (typeof val === "number") { val = ICAL3.Recur.numericDayToIcalDay(val); } } else if (Array.isArray(val)) { val = val.join(","); } - str += k2.toUpperCase() + "=" + val + ";"; + str += k3.toUpperCase() + "=" + val + ";"; } return str.substr(0, str.length - 1); }, @@ -1611,8 +1623,8 @@ var require_ical = __commonJS({ return value; }; stringify._rfc6868Unescape = function(val) { - return val.replace(/[\n^"]/g, function(x3) { - return RFC6868_REPLACE_MAP[x3]; + return val.replace(/[\n^"]/g, function(x4) { + return RFC6868_REPLACE_MAP[x4]; }); }; var RFC6868_REPLACE_MAP = { '"': "^'", "\n": "^n", "^": "^^" }; @@ -1863,8 +1875,8 @@ var require_ical = __commonJS({ return [result, value, valuePos]; }; parser._rfc6868Escape = function(val) { - return val.replace(/\^['n^]/g, function(x3) { - return RFC6868_REPLACE_MAP[x3]; + return val.replace(/\^['n^]/g, function(x4) { + return RFC6868_REPLACE_MAP[x4]; }); }; var RFC6868_REPLACE_MAP = { "^'": '"', "^n": "\n", "^^": "^" }; @@ -2648,7 +2660,7 @@ var require_ical = __commonJS({ isNegative: false, icalclass: "icalduration", icaltype: "duration", - clone: function clone() { + clone: function clone3() { return ICAL3.Duration.fromData(this); }, toSeconds: function toSeconds() { @@ -2949,8 +2961,8 @@ var require_ical = __commonJS({ } var dtstart = aComponent.getFirstProperty("dtstart").getFirstValue(); var change; - function convert_tzoffset(offset) { - return offset.factor * (offset.hours * 3600 + offset.minutes * 60); + function convert_tzoffset(offset2) { + return offset2.factor * (offset2.hours * 3600 + offset2.minutes * 60); } function init_changes() { var changebase = {}; @@ -3229,11 +3241,11 @@ var require_ical = __commonJS({ return ICAL3.Time._dowCache[dowCacheKey]; } var q3 = this.day; - var m2 = this.month + (this.month < 3 ? 12 : 0); - var Y2 = this.year - (this.month < 3 ? 1 : 0); - var h3 = q3 + Y2 + ICAL3.helpers.trunc((m2 + 1) * 26 / 10) + ICAL3.helpers.trunc(Y2 / 4); + var m3 = this.month + (this.month < 3 ? 12 : 0); + var Y = this.year - (this.month < 3 ? 1 : 0); + var h3 = q3 + Y + ICAL3.helpers.trunc((m3 + 1) * 26 / 10) + ICAL3.helpers.trunc(Y / 4); if (true) { - h3 += ICAL3.helpers.trunc(Y2 / 100) * 6 + ICAL3.helpers.trunc(Y2 / 400); + h3 += ICAL3.helpers.trunc(Y / 100) * 6 + ICAL3.helpers.trunc(Y / 400); } else { h3 += 5; } @@ -3315,7 +3327,7 @@ var require_ical = __commonJS({ return ICAL3.Time.getDominicalLetter(this.year); }, nthWeekDay: function icaltime_nthWeekDay(aDayOfWeek, aPos) { - var daysInMonth = ICAL3.Time.daysInMonth(this.month, this.year); + var daysInMonth2 = ICAL3.Time.daysInMonth(this.month, this.year); var weekday; var pos = aPos; var start = 0; @@ -3327,21 +3339,21 @@ var require_ical = __commonJS({ } start = otherDay.day; var startDow = otherDay.dayOfWeek(); - var offset = aDayOfWeek - startDow; - if (offset < 0) - offset += 7; - start += offset; + var offset2 = aDayOfWeek - startDow; + if (offset2 < 0) + offset2 += 7; + start += offset2; start -= aDayOfWeek; weekday = aDayOfWeek; } else { - otherDay.day = daysInMonth; + otherDay.day = daysInMonth2; var endDow = otherDay.dayOfWeek(); pos++; weekday = endDow - aDayOfWeek; if (weekday < 0) { weekday += 7; } - weekday = daysInMonth - weekday; + weekday = daysInMonth2 - weekday; } weekday += pos * 7; return start + weekday; @@ -3481,7 +3493,7 @@ var require_ical = __commonJS({ } }, _normalize: function icaltime_normalize() { - var isDate = this._time.isDate; + var isDate2 = this._time.isDate; if (this._time.isDate) { this._time.hour = 0; this._time.minute = 0; @@ -3493,7 +3505,7 @@ var require_ical = __commonJS({ adjust: function icaltime_adjust(aExtraDays, aExtraHours, aExtraMinutes, aExtraSeconds, aTime) { var minutesOverflow, hoursOverflow, daysOverflow = 0, yearsOverflow = 0; var second, minute, hour, day; - var daysInMonth; + var daysInMonth2; var time = aTime || this._time; if (!time.isDate) { second = time.second + aExtraSeconds; @@ -3528,8 +3540,8 @@ var require_ical = __commonJS({ day = time.day + aExtraDays + daysOverflow; if (day > 0) { for (; ; ) { - daysInMonth = ICAL3.Time.daysInMonth(time.month, time.year); - if (day <= daysInMonth) { + daysInMonth2 = ICAL3.Time.daysInMonth(time.month, time.year); + if (day <= daysInMonth2) { break; } time.month++; @@ -3537,7 +3549,7 @@ var require_ical = __commonJS({ time.year++; time.month = 1; } - day -= daysInMonth; + day -= daysInMonth2; } } else { while (day <= 0) { @@ -3570,8 +3582,8 @@ var require_ical = __commonJS({ if (this._cachedUnixTime !== null) { return this._cachedUnixTime; } - var offset = this.utcOffset(); - var ms = Date.UTC(this.year, this.month - 1, this.day, this.hour, this.minute, this.second - offset); + var offset2 = this.utcOffset(); + var ms = Date.UTC(this.year, this.month - 1, this.day, this.hour, this.minute, this.second - offset2); this._cachedUnixTime = ms / 1e3; return this._cachedUnixTime; }, @@ -3641,7 +3653,7 @@ var require_ical = __commonJS({ } return days; }; - ICAL3.Time.isLeapYear = function isLeapYear(year) { + ICAL3.Time.isLeapYear = function isLeapYear2(year) { if (year <= 1752) { return year % 4 == 0; } else { @@ -3825,12 +3837,12 @@ var require_ical = __commonJS({ }, toString: function toString() { var p22 = ICAL3.helpers.pad2; - var y3 = this.year, m2 = this.month, d3 = this.day; - var h3 = this.hour, mm = this.minute, s3 = this.second; - var hasYear = y3 !== null, hasMonth = m2 !== null, hasDay = d3 !== null; - var hasHour = h3 !== null, hasMinute = mm !== null, hasSecond = s3 !== null; - var datepart = (hasYear ? p22(y3) + (hasMonth || hasDay ? "-" : "") : hasMonth || hasDay ? "--" : "") + (hasMonth ? p22(m2) : "") + (hasDay ? "-" + p22(d3) : ""); - var timepart = (hasHour ? p22(h3) : "-") + (hasHour && hasMinute ? ":" : "") + (hasMinute ? p22(mm) : "") + (!hasHour && !hasMinute ? "-" : "") + (hasMinute && hasSecond ? ":" : "") + (hasSecond ? p22(s3) : ""); + var y3 = this.year, m3 = this.month, d2 = this.day; + var h3 = this.hour, mm = this.minute, s4 = this.second; + var hasYear = y3 !== null, hasMonth = m3 !== null, hasDay = d2 !== null; + var hasHour = h3 !== null, hasMinute = mm !== null, hasSecond = s4 !== null; + var datepart = (hasYear ? p22(y3) + (hasMonth || hasDay ? "-" : "") : hasMonth || hasDay ? "--" : "") + (hasMonth ? p22(m3) : "") + (hasDay ? "-" + p22(d2) : ""); + var timepart = (hasHour ? p22(h3) : "-") + (hasHour && hasMinute ? ":" : "") + (hasMinute ? p22(mm) : "") + (!hasHour && !hasMinute ? "-" : "") + (hasMinute && hasSecond ? ":" : "") + (hasSecond ? p22(s4) : ""); var zone; if (this.zone === ICAL3.Timezone.utcTimezone) { zone = "Z"; @@ -3839,8 +3851,8 @@ var require_ical = __commonJS({ } else if (this.zone === ICAL3.Timezone.localTimezone) { zone = ""; } else if (this.zone instanceof ICAL3.Timezone) { - var offset = ICAL3.UtcOffset.fromSeconds(this.zone.utcOffset(this)); - zone = offset.toString(); + var offset2 = ICAL3.UtcOffset.fromSeconds(this.zone.utcOffset(this)); + zone = offset2.toString(); } else { zone = ""; } @@ -3857,8 +3869,8 @@ var require_ical = __commonJS({ } }); ICAL3.VCardTime.fromDateAndOrTimeString = function(aValue, aIcalType) { - function part(v3, s3, e3) { - return v3 ? ICAL3.helpers.strictParseInt(v3.substr(s3, e3)) : null; + function part(v3, s4, e3) { + return v3 ? ICAL3.helpers.strictParseInt(v3.substr(s4, e3)) : null; } var parts = aValue.split("T"); var dt = parts[0], tmz = parts[1]; @@ -3936,7 +3948,7 @@ var require_ical = __commonJS({ dtstart: aStart }); }, - clone: function clone() { + clone: function clone3() { return new ICAL3.Recur(this.toJSON()); }, isFinite: function isfinite() { @@ -4003,15 +4015,15 @@ var require_ical = __commonJS({ if (this.interval > 1) { res.interval = this.interval; } - for (var k2 in this.parts) { - if (!this.parts.hasOwnProperty(k2)) { + for (var k3 in this.parts) { + if (!this.parts.hasOwnProperty(k3)) { continue; } - var kparts = this.parts[k2]; + var kparts = this.parts[k3]; if (Array.isArray(kparts) && kparts.length == 1) { - res[k2.toLowerCase()] = kparts[0]; + res[k3.toLowerCase()] = kparts[0]; } else { - res[k2.toLowerCase()] = ICAL3.helpers.clone(this.parts[k2]); + res[k3.toLowerCase()] = ICAL3.helpers.clone(this.parts[k3]); } } if (this.until) { @@ -4030,9 +4042,9 @@ var require_ical = __commonJS({ if (this.interval > 1) { str += ";INTERVAL=" + this.interval; } - for (var k2 in this.parts) { - if (this.parts.hasOwnProperty(k2)) { - str += ";" + k2 + "=" + this.parts[k2]; + for (var k3 in this.parts) { + if (this.parts.hasOwnProperty(k3)) { + str += ";" + k3 + "=" + this.parts[k3]; } } if (this.until) { @@ -4275,7 +4287,7 @@ var require_ical = __commonJS({ if (this.rule.freq == "MONTHLY" && this.has_by_data("BYDAY")) { var tempLast = null; var initLast = this.last.clone(); - var daysInMonth = ICAL3.Time.daysInMonth(this.last.month, this.last.year); + var daysInMonth2 = ICAL3.Time.daysInMonth(this.last.month, this.last.year); for (var i3 in this.by_data.BYDAY) { if (!this.by_data.BYDAY.hasOwnProperty(i3)) { continue; @@ -4288,13 +4300,13 @@ var require_ical = __commonJS({ if (pos >= 6 || pos <= -6) { throw new Error("Malformed values in BYDAY part"); } - if (dayOfMonth > daysInMonth || dayOfMonth <= 0) { + if (dayOfMonth > daysInMonth2 || dayOfMonth <= 0) { if (tempLast && tempLast.month == initLast.month) { continue; } - while (dayOfMonth > daysInMonth || dayOfMonth <= 0) { + while (dayOfMonth > daysInMonth2 || dayOfMonth <= 0) { this.increment_month(); - daysInMonth = ICAL3.Time.daysInMonth(this.last.month, this.last.year); + daysInMonth2 = ICAL3.Time.daysInMonth(this.last.month, this.last.year); dayOfMonth = this.last.nthWeekDay(dow, pos); } } @@ -4307,13 +4319,13 @@ var require_ical = __commonJS({ if (this.has_by_data("BYMONTHDAY")) { this._byDayAndMonthDay(true); } - if (this.last.day > daysInMonth || this.last.day == 0) { + if (this.last.day > daysInMonth2 || this.last.day == 0) { throw new Error("Malformed values in BYDAY part"); } } else if (this.has_by_data("BYMONTHDAY")) { if (this.last.day < 0) { - var daysInMonth = ICAL3.Time.daysInMonth(this.last.month, this.last.year); - this.last.day = daysInMonth + this.last.day + 1; + var daysInMonth2 = ICAL3.Time.daysInMonth(this.last.month, this.last.year); + this.last.day = daysInMonth2 + this.last.day + 1; } } }, @@ -4422,18 +4434,18 @@ var require_ical = __commonJS({ return end_of_data; }, normalizeByMonthDayRules: function(year, month, rules) { - var daysInMonth = ICAL3.Time.daysInMonth(month, year); + var daysInMonth2 = ICAL3.Time.daysInMonth(month, year); var newRules = []; var ruleIdx = 0; var len = rules.length; var rule; for (; ruleIdx < len; ruleIdx++) { rule = rules[ruleIdx]; - if (Math.abs(rule) > daysInMonth) { + if (Math.abs(rule) > daysInMonth2) { continue; } if (rule < 0) { - rule = daysInMonth + (rule + 1); + rule = daysInMonth2 + (rule + 1); } else if (rule === 0) { continue; } @@ -4453,11 +4465,11 @@ var require_ical = __commonJS({ var dateLen; var dayLen = byDay.length; var dataIsValid = 0; - var daysInMonth; + var daysInMonth2; var self2 = this; var lastDay = this.last.day; function initMonth() { - daysInMonth = ICAL3.Time.daysInMonth(self2.last.month, self2.last.year); + daysInMonth2 = ICAL3.Time.daysInMonth(self2.last.month, self2.last.year); byMonthDay = self2.normalizeByMonthDayRules(self2.last.year, self2.last.month, self2.by_data.BYMONTHDAY); dateLen = byMonthDay.length; while (byMonthDay[dateIdx] <= lastDay && !(isInit && byMonthDay[dateIdx] == lastDay) && dateIdx < dateLen - 1) { @@ -4478,7 +4490,7 @@ var require_ical = __commonJS({ while (!dataIsValid && monthsCounter) { monthsCounter--; date = lastDay + 1; - if (date > daysInMonth) { + if (date > daysInMonth2) { nextMonth(); continue; } @@ -4518,12 +4530,12 @@ var require_ical = __commonJS({ if (this.has_by_data("BYDAY") && this.has_by_data("BYMONTHDAY")) { data_valid = this._byDayAndMonthDay(); } else if (this.has_by_data("BYDAY")) { - var daysInMonth = ICAL3.Time.daysInMonth(this.last.month, this.last.year); + var daysInMonth2 = ICAL3.Time.daysInMonth(this.last.month, this.last.year); var setpos = 0; var setpos_total = 0; if (this.has_by_data("BYSETPOS")) { var last_day = this.last.day; - for (var day = 1; day <= daysInMonth; day++) { + for (var day = 1; day <= daysInMonth2; day++) { this.last.day = day; if (this.is_day_in_byday(this.last)) { setpos_total++; @@ -4535,7 +4547,7 @@ var require_ical = __commonJS({ this.last.day = last_day; } data_valid = 0; - for (var day = this.last.day + 1; day <= daysInMonth; day++) { + for (var day = this.last.day + 1; day <= daysInMonth2; day++) { this.last.day = day; if (this.is_day_in_byday(this.last)) { if (!this.has_by_data("BYSETPOS") || this.check_set_position(++setpos) || this.check_set_position(setpos - setpos_total - 1)) { @@ -4544,7 +4556,7 @@ var require_ical = __commonJS({ } } } - if (day > daysInMonth) { + if (day > daysInMonth2) { this.last.day = 1; this.increment_month(); if (this.is_day_in_byday(this.last)) { @@ -4561,12 +4573,12 @@ var require_ical = __commonJS({ this.by_indices.BYMONTHDAY = 0; this.increment_month(); } - var daysInMonth = ICAL3.Time.daysInMonth(this.last.month, this.last.year); + var daysInMonth2 = ICAL3.Time.daysInMonth(this.last.month, this.last.year); var day = this.by_data.BYMONTHDAY[this.by_indices.BYMONTHDAY]; if (day < 0) { - day = daysInMonth + day + 1; + day = daysInMonth2 + day + 1; } - if (day > daysInMonth) { + if (day > daysInMonth2) { this.last.day = 1; data_valid = this.is_day_in_byday(this.last); } else { @@ -4574,8 +4586,8 @@ var require_ical = __commonJS({ } } else { this.increment_month(); - var daysInMonth = ICAL3.Time.daysInMonth(this.last.month, this.last.year); - if (this.by_data.BYMONTHDAY[0] > daysInMonth) { + var daysInMonth2 = ICAL3.Time.daysInMonth(this.last.month, this.last.year); + if (this.by_data.BYMONTHDAY[0] > daysInMonth2) { data_valid = 0; } else { this.last.day = this.by_data.BYMONTHDAY[0]; @@ -4682,10 +4694,10 @@ var require_ical = __commonJS({ }, increment_monthday: function increment_monthday(inc) { for (var i3 = 0; i3 < inc; i3++) { - var daysInMonth = ICAL3.Time.daysInMonth(this.last.month, this.last.year); + var daysInMonth2 = ICAL3.Time.daysInMonth(this.last.month, this.last.year); this.last.day++; - if (this.last.day > daysInMonth) { - this.last.day -= daysInMonth; + if (this.last.day > daysInMonth2) { + this.last.day -= daysInMonth2; this.increment_month(); } } @@ -4795,8 +4807,8 @@ var require_ical = __commonJS({ var t32 = this.dtstart.clone(); var day_ = this.by_data.BYMONTHDAY[monthdaykey]; if (day_ < 0) { - var daysInMonth = ICAL3.Time.daysInMonth(t32.month, aYear); - day_ = day_ + daysInMonth + 1; + var daysInMonth2 = ICAL3.Time.daysInMonth(t32.month, aYear); + day_ = day_ + daysInMonth2 + 1; } t32.day = day_; t32.year = aYear; @@ -4809,14 +4821,14 @@ var require_ical = __commonJS({ continue; } var month_ = this.by_data.BYMONTH[monthkey]; - var daysInMonth = ICAL3.Time.daysInMonth(month_, aYear); + var daysInMonth2 = ICAL3.Time.daysInMonth(month_, aYear); for (var monthdaykey in this.by_data.BYMONTHDAY) { if (!this.by_data.BYMONTHDAY.hasOwnProperty(monthdaykey)) { continue; } var day_ = this.by_data.BYMONTHDAY[monthdaykey]; if (day_ < 0) { - day_ = day_ + daysInMonth + 1; + day_ = day_ + daysInMonth2 + 1; } t3.day = day_; t3.month = month_; @@ -4835,19 +4847,19 @@ var require_ical = __commonJS({ continue; } var month = this.by_data.BYMONTH[monthkey]; - var daysInMonth = ICAL3.Time.daysInMonth(month, aYear); + var daysInMonth2 = ICAL3.Time.daysInMonth(month, aYear); t3.year = aYear; t3.month = this.by_data.BYMONTH[monthkey]; t3.day = 1; t3.isDate = true; var first_dow = t3.dayOfWeek(); var doy_offset = t3.dayOfYear() - 1; - t3.day = daysInMonth; + t3.day = daysInMonth2; var last_dow = t3.dayOfWeek(); if (this.has_by_data("BYSETPOS")) { var set_pos_counter = 0; var by_month_day = []; - for (var day = 1; day <= daysInMonth; day++) { + for (var day = 1; day <= daysInMonth2; day++) { t3.day = day; if (this.is_day_in_byday(t3)) { by_month_day.push(day); @@ -4869,14 +4881,14 @@ var require_ical = __commonJS({ var dow = bydayParts[1]; var month_day; var first_matching_day = (dow + 7 - first_dow) % 7 + 1; - var last_matching_day = daysInMonth - (last_dow + 7 - dow) % 7; + var last_matching_day = daysInMonth2 - (last_dow + 7 - dow) % 7; if (pos == 0) { - for (var day = first_matching_day; day <= daysInMonth; day += 7) { + for (var day = first_matching_day; day <= daysInMonth2; day += 7) { this.days.push(doy_offset + day); } } else if (pos > 0) { month_day = first_matching_day + (pos - 1) * 7; - if (month_day <= daysInMonth) { + if (month_day <= daysInMonth2) { this.days.push(doy_offset + month_day); } } else { @@ -5638,7 +5650,7 @@ var require_object_assign = __commonJS({ "node_modules/object-assign/index.js"(exports, module2) { "use strict"; var getOwnPropertySymbols = Object.getOwnPropertySymbols; - var hasOwnProperty2 = Object.prototype.hasOwnProperty; + var hasOwnProperty3 = Object.prototype.hasOwnProperty; var propIsEnumerable = Object.prototype.propertyIsEnumerable; function toObject(val) { if (val === null || val === void 0) { @@ -5660,8 +5672,8 @@ var require_object_assign = __commonJS({ for (var i3 = 0; i3 < 10; i3++) { test2["_" + String.fromCharCode(i3)] = i3; } - var order2 = Object.getOwnPropertyNames(test2).map(function(n2) { - return test2[n2]; + var order2 = Object.getOwnPropertyNames(test2).map(function(n3) { + return test2[n3]; }); if (order2.join("") !== "0123456789") { return false; @@ -5682,10 +5694,10 @@ var require_object_assign = __commonJS({ var from; var to = toObject(target); var symbols; - for (var s3 = 1; s3 < arguments.length; s3++) { - from = Object(arguments[s3]); + for (var s4 = 1; s4 < arguments.length; s4++) { + from = Object(arguments[s4]); for (var key in from) { - if (hasOwnProperty2.call(from, key)) { + if (hasOwnProperty3.call(from, key)) { to[key] = from[key]; } } @@ -5992,7 +6004,7 @@ var require_react_development = __commonJS({ var init = lazyComponent._init; try { return getComponentName(init(payload)); - } catch (x3) { + } catch (x4) { return null; } } @@ -6000,7 +6012,7 @@ var require_react_development = __commonJS({ } return null; } - var hasOwnProperty2 = Object.prototype.hasOwnProperty; + var hasOwnProperty3 = Object.prototype.hasOwnProperty; var RESERVED_PROPS = { key: true, ref: true, @@ -6013,7 +6025,7 @@ var require_react_development = __commonJS({ } function hasValidRef(config2) { { - if (hasOwnProperty2.call(config2, "ref")) { + if (hasOwnProperty3.call(config2, "ref")) { var getter = Object.getOwnPropertyDescriptor(config2, "ref").get; if (getter && getter.isReactWarning) { return false; @@ -6024,7 +6036,7 @@ var require_react_development = __commonJS({ } function hasValidKey(config2) { { - if (hasOwnProperty2.call(config2, "key")) { + if (hasOwnProperty3.call(config2, "key")) { var getter = Object.getOwnPropertyDescriptor(config2, "key").get; if (getter && getter.isReactWarning) { return false; @@ -6130,7 +6142,7 @@ var require_react_development = __commonJS({ self2 = config2.__self === void 0 ? null : config2.__self; source = config2.__source === void 0 ? null : config2.__source; for (propName in config2) { - if (hasOwnProperty2.call(config2, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) { + if (hasOwnProperty3.call(config2, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) { props[propName] = config2[propName]; } } @@ -6201,7 +6213,7 @@ var require_react_development = __commonJS({ defaultProps = element.type.defaultProps; } for (propName in config2) { - if (hasOwnProperty2.call(config2, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) { + if (hasOwnProperty3.call(config2, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) { if (config2[propName] === void 0 && defaultProps !== void 0) { props[propName] = defaultProps[propName]; } else { @@ -6233,8 +6245,8 @@ var require_react_development = __commonJS({ "=": "=0", ":": "=2" }; - var escapedString = key.replace(escapeRegex, function(match) { - return escaperLookup[match]; + var escapedString = key.replace(escapeRegex, function(match2) { + return escaperLookup[match2]; }); return "$" + escapedString; } @@ -6344,11 +6356,11 @@ var require_react_development = __commonJS({ return result; } function countChildren(children) { - var n2 = 0; + var n3 = 0; mapChildren(children, function() { - n2++; + n3++; }); - return n2; + return n3; } function forEachChildren(children, forEachFunc, forEachContext) { mapChildren(children, function() { @@ -6656,7 +6668,7 @@ var require_react_development = __commonJS({ } return dispatcher.useContext(Context, unstable_observedBits); } - function useState4(initialState) { + function useState3(initialState) { var dispatcher = resolveDispatcher(); return dispatcher.useState(initialState); } @@ -6779,9 +6791,9 @@ var require_react_development = __commonJS({ if (prefix === void 0) { try { throw Error(); - } catch (x3) { - var match = x3.stack.trim().match(/\n( *(at )?)/); - prefix = match && match[1] || ""; + } catch (x4) { + var match2 = x4.stack.trim().match(/\n( *(at )?)/); + prefix = match2 && match2[1] || ""; } } return "\n" + prefix + name; @@ -6826,23 +6838,23 @@ var require_react_development = __commonJS({ if (typeof Reflect === "object" && Reflect.construct) { try { Reflect.construct(Fake, []); - } catch (x3) { - control = x3; + } catch (x4) { + control = x4; } Reflect.construct(fn, [], Fake); } else { try { Fake.call(); - } catch (x3) { - control = x3; + } catch (x4) { + control = x4; } fn.call(Fake.prototype); } } else { try { throw Error(); - } catch (x3) { - control = x3; + } catch (x4) { + control = x4; } fn(); } @@ -6850,19 +6862,19 @@ var require_react_development = __commonJS({ if (sample && control && typeof sample.stack === "string") { var sampleLines = sample.stack.split("\n"); var controlLines = control.stack.split("\n"); - var s3 = sampleLines.length - 1; + var s4 = sampleLines.length - 1; var c3 = controlLines.length - 1; - while (s3 >= 1 && c3 >= 0 && sampleLines[s3] !== controlLines[c3]) { + while (s4 >= 1 && c3 >= 0 && sampleLines[s4] !== controlLines[c3]) { c3--; } - for (; s3 >= 1 && c3 >= 0; s3--, c3--) { - if (sampleLines[s3] !== controlLines[c3]) { - if (s3 !== 1 || c3 !== 1) { + for (; s4 >= 1 && c3 >= 0; s4--, c3--) { + if (sampleLines[s4] !== controlLines[c3]) { + if (s4 !== 1 || c3 !== 1) { do { - s3--; + s4--; c3--; - if (c3 < 0 || sampleLines[s3] !== controlLines[c3]) { - var _frame = "\n" + sampleLines[s3].replace(" at new ", " at "); + if (c3 < 0 || sampleLines[s4] !== controlLines[c3]) { + var _frame = "\n" + sampleLines[s4].replace(" at new ", " at "); { if (typeof fn === "function") { componentFrameCache.set(fn, _frame); @@ -6870,7 +6882,7 @@ var require_react_development = __commonJS({ } return _frame; } - } while (s3 >= 1 && c3 >= 0); + } while (s4 >= 1 && c3 >= 0); } break; } @@ -6934,7 +6946,7 @@ var require_react_development = __commonJS({ var init = lazyComponent._init; try { return describeUnknownElementTypeFrameInDEV(init(payload), source, ownerFn); - } catch (x3) { + } catch (x4) { } } } @@ -7244,7 +7256,7 @@ var require_react_development = __commonJS({ exports.useMemo = useMemo; exports.useReducer = useReducer; exports.useRef = useRef2; - exports.useState = useState4; + exports.useState = useState3; exports.version = ReactVersion; })(); } @@ -8159,14 +8171,14 @@ var require_react_dom_development = __commonJS({ var ATTRIBUTE_NAME_CHAR = ATTRIBUTE_NAME_START_CHAR + "\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040"; var ROOT_ATTRIBUTE_NAME = "data-reactroot"; var VALID_ATTRIBUTE_NAME_REGEX = new RegExp("^[" + ATTRIBUTE_NAME_START_CHAR + "][" + ATTRIBUTE_NAME_CHAR + "]*$"); - var hasOwnProperty2 = Object.prototype.hasOwnProperty; + var hasOwnProperty3 = Object.prototype.hasOwnProperty; var illegalAttributeNameCache = {}; var validatedAttributeNameCache = {}; function isAttributeNameSafe(attributeName) { - if (hasOwnProperty2.call(validatedAttributeNameCache, attributeName)) { + if (hasOwnProperty3.call(validatedAttributeNameCache, attributeName)) { return true; } - if (hasOwnProperty2.call(illegalAttributeNameCache, attributeName)) { + if (hasOwnProperty3.call(illegalAttributeNameCache, attributeName)) { return false; } if (VALID_ATTRIBUTE_NAME_REGEX.test(attributeName)) { @@ -8701,9 +8713,9 @@ var require_react_dom_development = __commonJS({ if (prefix === void 0) { try { throw Error(); - } catch (x3) { - var match = x3.stack.trim().match(/\n( *(at )?)/); - prefix = match && match[1] || ""; + } catch (x4) { + var match2 = x4.stack.trim().match(/\n( *(at )?)/); + prefix = match2 && match2[1] || ""; } } return "\n" + prefix + name; @@ -8748,23 +8760,23 @@ var require_react_dom_development = __commonJS({ if (typeof Reflect === "object" && Reflect.construct) { try { Reflect.construct(Fake, []); - } catch (x3) { - control = x3; + } catch (x4) { + control = x4; } Reflect.construct(fn, [], Fake); } else { try { Fake.call(); - } catch (x3) { - control = x3; + } catch (x4) { + control = x4; } fn.call(Fake.prototype); } } else { try { throw Error(); - } catch (x3) { - control = x3; + } catch (x4) { + control = x4; } fn(); } @@ -8772,19 +8784,19 @@ var require_react_dom_development = __commonJS({ if (sample && control && typeof sample.stack === "string") { var sampleLines = sample.stack.split("\n"); var controlLines = control.stack.split("\n"); - var s3 = sampleLines.length - 1; + var s4 = sampleLines.length - 1; var c3 = controlLines.length - 1; - while (s3 >= 1 && c3 >= 0 && sampleLines[s3] !== controlLines[c3]) { + while (s4 >= 1 && c3 >= 0 && sampleLines[s4] !== controlLines[c3]) { c3--; } - for (; s3 >= 1 && c3 >= 0; s3--, c3--) { - if (sampleLines[s3] !== controlLines[c3]) { - if (s3 !== 1 || c3 !== 1) { + for (; s4 >= 1 && c3 >= 0; s4--, c3--) { + if (sampleLines[s4] !== controlLines[c3]) { + if (s4 !== 1 || c3 !== 1) { do { - s3--; + s4--; c3--; - if (c3 < 0 || sampleLines[s3] !== controlLines[c3]) { - var _frame = "\n" + sampleLines[s3].replace(" at new ", " at "); + if (c3 < 0 || sampleLines[s4] !== controlLines[c3]) { + var _frame = "\n" + sampleLines[s4].replace(" at new ", " at "); { if (typeof fn === "function") { componentFrameCache.set(fn, _frame); @@ -8792,7 +8804,7 @@ var require_react_dom_development = __commonJS({ } return _frame; } - } while (s3 >= 1 && c3 >= 0); + } while (s4 >= 1 && c3 >= 0); } break; } @@ -8861,7 +8873,7 @@ var require_react_dom_development = __commonJS({ var init = lazyComponent._init; try { return describeUnknownElementTypeFrameInDEV(init(payload), source, ownerFn); - } catch (x3) { + } catch (x4) { } } } @@ -8903,8 +8915,8 @@ var require_react_dom_development = __commonJS({ node = node.return; } while (node); return info; - } catch (x3) { - return "\nError generating stack: " + x3.message + "\n" + x3.stack; + } catch (x4) { + return "\nError generating stack: " + x4.message + "\n" + x4.stack; } } function getWrappedName(outerType, innerType, wrapperName) { @@ -8963,7 +8975,7 @@ var require_react_dom_development = __commonJS({ var init = lazyComponent._init; try { return getComponentName(init(payload)); - } catch (x3) { + } catch (x4) { return null; } } @@ -10772,8 +10784,8 @@ var require_react_dom_development = __commonJS({ var batchedUpdatesImpl = function(fn, bookkeeping) { return fn(bookkeeping); }; - var discreteUpdatesImpl = function(fn, a3, b3, c3, d3) { - return fn(a3, b3, c3, d3); + var discreteUpdatesImpl = function(fn, a3, b3, c3, d2) { + return fn(a3, b3, c3, d2); }; var flushDiscreteUpdatesImpl = function() { }; @@ -10811,11 +10823,11 @@ var require_react_dom_development = __commonJS({ finishEventHandler(); } } - function discreteUpdates(fn, a3, b3, c3, d3) { + function discreteUpdates(fn, a3, b3, c3, d2) { var prevIsInsideEventHandler = isInsideEventHandler; isInsideEventHandler = true; try { - return discreteUpdatesImpl(fn, a3, b3, c3, d3); + return discreteUpdatesImpl(fn, a3, b3, c3, d2); } finally { isInsideEventHandler = prevIsInsideEventHandler; if (!isInsideEventHandler) { @@ -10892,7 +10904,7 @@ var require_react_dom_development = __commonJS({ passiveBrowserEventsSupported = false; } } - function invokeGuardedCallbackProd(name, func, context, a3, b3, c3, d3, e3, f3) { + function invokeGuardedCallbackProd(name, func, context, a3, b3, c3, d2, e3, f3) { var funcArgs = Array.prototype.slice.call(arguments, 3); try { func.apply(context, funcArgs); @@ -10904,7 +10916,7 @@ var require_react_dom_development = __commonJS({ { if (typeof window !== "undefined" && typeof window.dispatchEvent === "function" && typeof document !== "undefined" && typeof document.createEvent === "function") { var fakeNode = document.createElement("react"); - invokeGuardedCallbackImpl = function invokeGuardedCallbackDev(name, func, context, a3, b3, c3, d3, e3, f3) { + invokeGuardedCallbackImpl = function invokeGuardedCallbackDev(name, func, context, a3, b3, c3, d2, e3, f3) { if (!(typeof document !== "undefined")) { { throw Error("The `document` global was defined when React was initialized, but is not defined anymore. This can happen in a test environment if a component schedules an update from an asynchronous callback, but the test has already finished running. To solve this, you can either unmount the component at the end of your test (and ensure that any asynchronous operations get canceled in `componentWillUnmount`), or you can change the test itself to be asynchronous."); @@ -10981,12 +10993,12 @@ var require_react_dom_development = __commonJS({ caughtError = error2; } }; - function invokeGuardedCallback(name, func, context, a3, b3, c3, d3, e3, f3) { + function invokeGuardedCallback(name, func, context, a3, b3, c3, d2, e3, f3) { hasError = false; caughtError = null; invokeGuardedCallbackImpl$1.apply(reporter, arguments); } - function invokeGuardedCallbackAndCatchFirstError(name, func, context, a3, b3, c3, d3, e3, f3) { + function invokeGuardedCallbackAndCatchFirstError(name, func, context, a3, b3, c3, d2, e3, f3) { invokeGuardedCallback.apply(this, arguments); if (hasError) { var error2 = clearCaughtError(); @@ -13140,8 +13152,8 @@ var require_react_dom_development = __commonJS({ } accumulateEnterLeaveTwoPhaseListeners(dispatchQueue, leave, enter, from, to); } - function is(x3, y3) { - return x3 === y3 && (x3 !== 0 || 1 / x3 === 1 / y3) || x3 !== x3 && y3 !== y3; + function is(x4, y3) { + return x4 === y3 && (x4 !== 0 || 1 / x4 === 1 / y3) || x4 !== x4 && y3 !== y3; } var objectIs = typeof Object.is === "function" ? Object.is : is; var hasOwnProperty$2 = Object.prototype.hasOwnProperty; @@ -13178,17 +13190,17 @@ var require_react_dom_development = __commonJS({ node = node.parentNode; } } - function getNodeForCharacterOffset(root2, offset) { + function getNodeForCharacterOffset(root2, offset2) { var node = getLeafNode(root2); var nodeStart = 0; var nodeEnd = 0; while (node) { if (node.nodeType === TEXT_NODE) { nodeEnd = nodeStart + node.textContent.length; - if (nodeStart <= offset && nodeEnd >= offset) { + if (nodeStart <= offset2 && nodeEnd >= offset2) { return { node, - offset: offset - nodeStart + offset: offset2 - nodeStart }; } nodeStart = nodeEnd; @@ -15679,7 +15691,7 @@ var require_react_dom_development = __commonJS({ var immediateQueueCallbackNode = null; var isFlushingSyncQueue = false; var initialTimeMs$1 = Scheduler_now$1(); - var now = initialTimeMs$1 < 1e4 ? Scheduler_now$1 : function() { + var now2 = initialTimeMs$1 < 1e4 ? Scheduler_now$1 : function() { return Scheduler_now$1() - initialTimeMs$1; }; function getCurrentPriorityLevel() { @@ -16206,14 +16218,14 @@ var require_react_dom_development = __commonJS({ var queue = workInProgress2.updateQueue; var currentQueue = current2.updateQueue; if (queue === currentQueue) { - var clone = { + var clone3 = { baseState: currentQueue.baseState, firstBaseUpdate: currentQueue.firstBaseUpdate, lastBaseUpdate: currentQueue.lastBaseUpdate, shared: currentQueue.shared, effects: currentQueue.effects }; - workInProgress2.updateQueue = clone; + workInProgress2.updateQueue = clone3; } } function createUpdate(eventTime, lane) { @@ -16260,7 +16272,7 @@ var require_react_dom_development = __commonJS({ if (firstBaseUpdate !== null) { var update = firstBaseUpdate; do { - var clone = { + var clone3 = { eventTime: update.eventTime, lane: update.lane, tag: update.tag, @@ -16269,10 +16281,10 @@ var require_react_dom_development = __commonJS({ next: null }; if (newLast === null) { - newFirst = newLast = clone; + newFirst = newLast = clone3; } else { - newLast.next = clone; - newLast = clone; + newLast.next = clone3; + newLast = clone3; } update = update.next; } while (update !== null); @@ -16410,7 +16422,7 @@ var require_react_dom_development = __commonJS({ var updateLane = update.lane; var updateEventTime = update.eventTime; if (!isSubsetOfLanes(renderLanes2, updateLane)) { - var clone = { + var clone3 = { eventTime: updateEventTime, lane: updateLane, tag: update.tag, @@ -16419,10 +16431,10 @@ var require_react_dom_development = __commonJS({ next: null }; if (newLastBaseUpdate === null) { - newFirstBaseUpdate = newLastBaseUpdate = clone; + newFirstBaseUpdate = newLastBaseUpdate = clone3; newBaseState = newState; } else { - newLastBaseUpdate = newLastBaseUpdate.next = clone; + newLastBaseUpdate = newLastBaseUpdate.next = clone3; } newLanes = mergeLanes(newLanes, updateLane); } else { @@ -17213,10 +17225,10 @@ var require_react_dom_development = __commonJS({ return existingChildren; } function useFiber(fiber, pendingProps) { - var clone = createWorkInProgress(fiber, pendingProps); - clone.index = 0; - clone.sibling = null; - return clone; + var clone3 = createWorkInProgress(fiber, pendingProps); + clone3.index = 0; + clone3.sibling = null; + return clone3; } function placeChild(newFiber, lastPlacedIndex, newIndex) { newFiber.index = newIndex; @@ -18513,7 +18525,7 @@ var require_react_dom_development = __commonJS({ do { var updateLane = update.lane; if (!isSubsetOfLanes(renderLanes, updateLane)) { - var clone = { + var clone3 = { lane: updateLane, action: update.action, eagerReducer: update.eagerReducer, @@ -18521,10 +18533,10 @@ var require_react_dom_development = __commonJS({ next: null }; if (newBaseQueueLast === null) { - newBaseQueueFirst = newBaseQueueLast = clone; + newBaseQueueFirst = newBaseQueueLast = clone3; newBaseState = newState; } else { - newBaseQueueLast = newBaseQueueLast.next = clone; + newBaseQueueLast = newBaseQueueLast.next = clone3; } currentlyRenderingFiber$1.lanes = mergeLanes(currentlyRenderingFiber$1.lanes, updateLane); markSkippedUpdateLanes(updateLane); @@ -20018,7 +20030,7 @@ var require_react_dom_development = __commonJS({ var init = lazyComponent._init; try { outerMemoType = init(payload); - } catch (x3) { + } catch (x4) { outerMemoType = null; } var outerPropTypes = outerMemoType && outerMemoType.propTypes; @@ -21609,7 +21621,7 @@ var require_react_dom_development = __commonJS({ row = row.sibling; } } - if (renderState.tail !== null && now() > getRenderTargetTime()) { + if (renderState.tail !== null && now2() > getRenderTargetTime()) { workInProgress2.flags |= DidCapture; didSuspendAlready = true; cutOffTailIfNeeded(renderState, false); @@ -21640,7 +21652,7 @@ var require_react_dom_development = __commonJS({ } return null; } - } else if (now() * 2 - renderState.renderingStartTime > getRenderTargetTime() && renderLanes2 !== OffscreenLane) { + } else if (now2() * 2 - renderState.renderingStartTime > getRenderTargetTime() && renderLanes2 !== OffscreenLane) { workInProgress2.flags |= DidCapture; didSuspendAlready = true; cutOffTailIfNeeded(renderState, false); @@ -21668,7 +21680,7 @@ var require_react_dom_development = __commonJS({ renderState.rendering = next; renderState.tail = next.sibling; renderState.lastEffect = workInProgress2.lastEffect; - renderState.renderingStartTime = now(); + renderState.renderingStartTime = now2(); next.sibling = null; var suspenseContext = suspenseStackCursor.current; if (didSuspendAlready) { @@ -22895,7 +22907,7 @@ var require_react_dom_development = __commonJS({ var workInProgressRootRenderTargetTime = Infinity; var RENDER_TIMEOUT_MS = 500; function resetRenderTimer() { - workInProgressRootRenderTargetTime = now() + RENDER_TIMEOUT_MS; + workInProgressRootRenderTargetTime = now2() + RENDER_TIMEOUT_MS; } function getRenderTargetTime() { return workInProgressRootRenderTargetTime; @@ -22928,12 +22940,12 @@ var require_react_dom_development = __commonJS({ } function requestEventTime() { if ((executionContext & (RenderContext | CommitContext)) !== NoContext) { - return now(); + return now2(); } if (currentEventTime !== NoTimestamp) { return currentEventTime; } - currentEventTime = now(); + currentEventTime = now2(); return currentEventTime; } function requestUpdateLane(fiber) { @@ -23124,7 +23136,7 @@ var require_react_dom_development = __commonJS({ var fatalError = workInProgressRootFatalError; prepareFreshStack(root2, NoLanes); markRootSuspended$1(root2, lanes); - ensureRootIsScheduled(root2, now()); + ensureRootIsScheduled(root2, now2()); throw fatalError; } var finishedWork = root2.current.alternate; @@ -23132,7 +23144,7 @@ var require_react_dom_development = __commonJS({ root2.finishedLanes = lanes; finishConcurrentRender(root2, exitStatus, lanes); } - ensureRootIsScheduled(root2, now()); + ensureRootIsScheduled(root2, now2()); if (root2.callbackNode === originalCallbackNode) { return performConcurrentWorkOnRoot.bind(null, root2); } @@ -23155,7 +23167,7 @@ var require_react_dom_development = __commonJS({ case RootSuspended: { markRootSuspended$1(root2, lanes); if (includesOnlyRetries(lanes) && !shouldForceFlushFallbacksInDEV()) { - var msUntilTimeout = globalMostRecentFallbackTime + FALLBACK_THROTTLE_MS - now(); + var msUntilTimeout = globalMostRecentFallbackTime + FALLBACK_THROTTLE_MS - now2(); if (msUntilTimeout > 10) { var nextLanes = getNextLanes(root2, NoLanes); if (nextLanes !== NoLanes) { @@ -23182,7 +23194,7 @@ var require_react_dom_development = __commonJS({ if (!shouldForceFlushFallbacksInDEV()) { var mostRecentEventTime = getMostRecentEventTime(root2, lanes); var eventTimeMs = mostRecentEventTime; - var timeElapsedMs = now() - eventTimeMs; + var timeElapsedMs = now2() - eventTimeMs; var _msUntilTimeout = jnd(timeElapsedMs) - timeElapsedMs; if (_msUntilTimeout > 10) { root2.timeoutHandle = scheduleTimeout(commitRoot.bind(null, root2), _msUntilTimeout); @@ -23245,14 +23257,14 @@ var require_react_dom_development = __commonJS({ var fatalError = workInProgressRootFatalError; prepareFreshStack(root2, NoLanes); markRootSuspended$1(root2, lanes); - ensureRootIsScheduled(root2, now()); + ensureRootIsScheduled(root2, now2()); throw fatalError; } var finishedWork = root2.current.alternate; root2.finishedWork = finishedWork; root2.finishedLanes = lanes; commitRoot(root2); - ensureRootIsScheduled(root2, now()); + ensureRootIsScheduled(root2, now2()); return null; } function flushDiscreteUpdates() { @@ -23273,7 +23285,7 @@ var require_react_dom_development = __commonJS({ rootsWithPendingDiscreteUpdates = null; roots.forEach(function(root2) { markDiscreteUpdatesExpired(root2); - ensureRootIsScheduled(root2, now()); + ensureRootIsScheduled(root2, now2()); }); } flushSyncCallbackQueue(); @@ -23304,12 +23316,12 @@ var require_react_dom_development = __commonJS({ } } } - function discreteUpdates$1(fn, a3, b3, c3, d3) { + function discreteUpdates$1(fn, a3, b3, c3, d2) { var prevExecutionContext = executionContext; executionContext |= DiscreteEventContext; { try { - return runWithPriority$1(UserBlockingPriority$2, fn.bind(null, a3, b3, c3, d3)); + return runWithPriority$1(UserBlockingPriority$2, fn.bind(null, a3, b3, c3, d2)); } finally { executionContext = prevExecutionContext; if (executionContext === NoContext) { @@ -23333,7 +23345,7 @@ var require_react_dom_development = __commonJS({ } } } - function flushSync(fn, a3) { + function flushSync3(fn, a3) { var prevExecutionContext = executionContext; if ((prevExecutionContext & (RenderContext | CommitContext)) !== NoContext) { { @@ -23451,7 +23463,7 @@ var require_react_dom_development = __commonJS({ } } function markCommitTimeOfFallback() { - globalMostRecentFallbackTime = now(); + globalMostRecentFallbackTime = now2(); } function markSkippedUpdateLanes(lane) { workInProgressRootSkippedLanes = mergeLanes(lane, workInProgressRootSkippedLanes); @@ -23859,7 +23871,7 @@ var require_react_dom_development = __commonJS({ { onCommitRoot$1(); } - ensureRootIsScheduled(root2, now()); + ensureRootIsScheduled(root2, now2()); if (hasUncaughtError) { hasUncaughtError = false; var _error3 = firstUncaughtError; @@ -24182,7 +24194,7 @@ var require_react_dom_development = __commonJS({ var eventTime = requestEventTime(); markRootPinged(root2, pingedLanes); if (workInProgressRoot === root2 && isSubsetOfLanes(workInProgressRootRenderLanes, pingedLanes)) { - if (workInProgressRootExitStatus === RootSuspendedWithDelay || workInProgressRootExitStatus === RootSuspended && includesOnlyRetries(workInProgressRootRenderLanes) && now() - globalMostRecentFallbackTime < FALLBACK_THROTTLE_MS) { + if (workInProgressRootExitStatus === RootSuspendedWithDelay || workInProgressRootExitStatus === RootSuspended && includesOnlyRetries(workInProgressRootRenderLanes) && now2() - globalMostRecentFallbackTime < FALLBACK_THROTTLE_MS) { prepareFreshStack(root2, NoLanes); } else { workInProgressRootPingedLanes = mergeLanes(workInProgressRootPingedLanes, pingedLanes); @@ -24656,7 +24668,7 @@ For more info, visit https://reactjs.org/link/mock-scheduler`); } var staleFamilies = update.staleFamilies, updatedFamilies = update.updatedFamilies; flushPassiveEffects(); - flushSync(function() { + flushSync3(function() { scheduleFibersWithFamiliesRecursively(root2.current, updatedFamilies, staleFamilies); }); } @@ -24667,7 +24679,7 @@ For more info, visit https://reactjs.org/link/mock-scheduler`); return; } flushPassiveEffects(); - flushSync(function() { + flushSync3(function() { updateContainer(element, root2, null, null); }); } @@ -26005,7 +26017,7 @@ For more info, visit https://reactjs.org/link/mock-scheduler`); exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = Internals; exports.createPortal = createPortal$1; exports.findDOMNode = findDOMNode; - exports.flushSync = flushSync; + exports.flushSync = flushSync3; exports.hydrate = hydrate; exports.render = render4; exports.unmountComponentAtNode = unmountComponentAtNode4; @@ -26031,4913 +26043,4319 @@ var require_react_dom = __commonJS({ } }); -// node_modules/luxon/build/cjs-browser/luxon.js -var require_luxon = __commonJS({ - "node_modules/luxon/build/cjs-browser/luxon.js"(exports) { - "use strict"; - Object.defineProperty(exports, "__esModule", { value: true }); - function _defineProperties(target, props) { - for (var i3 = 0; i3 < props.length; i3++) { - var descriptor = props[i3]; - descriptor.enumerable = descriptor.enumerable || false; - descriptor.configurable = true; - if ("value" in descriptor) - descriptor.writable = true; - Object.defineProperty(target, descriptor.key, descriptor); - } - } - function _createClass(Constructor, protoProps, staticProps) { - if (protoProps) - _defineProperties(Constructor.prototype, protoProps); - if (staticProps) - _defineProperties(Constructor, staticProps); - return Constructor; - } - function _extends() { - _extends = Object.assign || function(target) { - for (var i3 = 1; i3 < arguments.length; i3++) { - var source = arguments[i3]; - for (var key in source) { - if (Object.prototype.hasOwnProperty.call(source, key)) { - target[key] = source[key]; - } - } - } - return target; - }; - return _extends.apply(this, arguments); - } - function _inheritsLoose(subClass, superClass) { - subClass.prototype = Object.create(superClass.prototype); - subClass.prototype.constructor = subClass; - _setPrototypeOf(subClass, superClass); - } - function _getPrototypeOf(o2) { - _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf2(o3) { - return o3.__proto__ || Object.getPrototypeOf(o3); - }; - return _getPrototypeOf(o2); - } - function _setPrototypeOf(o2, p3) { - _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf2(o3, p4) { - o3.__proto__ = p4; - return o3; - }; - return _setPrototypeOf(o2, p3); - } - function _isNativeReflectConstruct() { - if (typeof Reflect === "undefined" || !Reflect.construct) - return false; - if (Reflect.construct.sham) - return false; - if (typeof Proxy === "function") - return true; - try { - Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() { - })); - return true; - } catch (e3) { - return false; - } - } - function _construct(Parent, args, Class) { - if (_isNativeReflectConstruct()) { - _construct = Reflect.construct; - } else { - _construct = function _construct2(Parent2, args2, Class2) { - var a3 = [null]; - a3.push.apply(a3, args2); - var Constructor = Function.bind.apply(Parent2, a3); - var instance = new Constructor(); - if (Class2) - _setPrototypeOf(instance, Class2.prototype); - return instance; - }; +// node_modules/moment/moment.js +var require_moment = __commonJS({ + "node_modules/moment/moment.js"(exports, module2) { + (function(global2, factory) { + typeof exports === "object" && typeof module2 !== "undefined" ? module2.exports = factory() : typeof define === "function" && define.amd ? define(factory) : global2.moment = factory(); + })(exports, function() { + "use strict"; + var hookCallback; + function hooks() { + return hookCallback.apply(null, arguments); } - return _construct.apply(null, arguments); - } - function _isNativeFunction(fn) { - return Function.toString.call(fn).indexOf("[native code]") !== -1; - } - function _wrapNativeSuper(Class) { - var _cache = typeof Map === "function" ? new Map() : void 0; - _wrapNativeSuper = function _wrapNativeSuper2(Class2) { - if (Class2 === null || !_isNativeFunction(Class2)) - return Class2; - if (typeof Class2 !== "function") { - throw new TypeError("Super expression must either be null or a function"); - } - if (typeof _cache !== "undefined") { - if (_cache.has(Class2)) - return _cache.get(Class2); - _cache.set(Class2, Wrapper); - } - function Wrapper() { - return _construct(Class2, arguments, _getPrototypeOf(this).constructor); - } - Wrapper.prototype = Object.create(Class2.prototype, { - constructor: { - value: Wrapper, - enumerable: false, - writable: true, - configurable: true - } - }); - return _setPrototypeOf(Wrapper, Class2); - }; - return _wrapNativeSuper(Class); - } - function _objectWithoutPropertiesLoose(source, excluded) { - if (source == null) - return {}; - var target = {}; - var sourceKeys = Object.keys(source); - var key, i3; - for (i3 = 0; i3 < sourceKeys.length; i3++) { - key = sourceKeys[i3]; - if (excluded.indexOf(key) >= 0) - continue; - target[key] = source[key]; + function setHookCallback(callback) { + hookCallback = callback; } - return target; - } - function _unsupportedIterableToArray(o2, minLen) { - if (!o2) - return; - if (typeof o2 === "string") - return _arrayLikeToArray(o2, minLen); - var n3 = Object.prototype.toString.call(o2).slice(8, -1); - if (n3 === "Object" && o2.constructor) - n3 = o2.constructor.name; - if (n3 === "Map" || n3 === "Set") - return Array.from(o2); - if (n3 === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n3)) - return _arrayLikeToArray(o2, minLen); - } - function _arrayLikeToArray(arr, len) { - if (len == null || len > arr.length) - len = arr.length; - for (var i3 = 0, arr2 = new Array(len); i3 < len; i3++) - arr2[i3] = arr[i3]; - return arr2; - } - function _createForOfIteratorHelperLoose(o2, allowArrayLike) { - var it = typeof Symbol !== "undefined" && o2[Symbol.iterator] || o2["@@iterator"]; - if (it) - return (it = it.call(o2)).next.bind(it); - if (Array.isArray(o2) || (it = _unsupportedIterableToArray(o2)) || allowArrayLike && o2 && typeof o2.length === "number") { - if (it) - o2 = it; - var i3 = 0; - return function() { - if (i3 >= o2.length) - return { - done: true - }; - return { - done: false, - value: o2[i3++] - }; - }; + function isArray(input) { + return input instanceof Array || Object.prototype.toString.call(input) === "[object Array]"; } - throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); - } - var LuxonError = /* @__PURE__ */ function(_Error) { - _inheritsLoose(LuxonError2, _Error); - function LuxonError2() { - return _Error.apply(this, arguments) || this; - } - return LuxonError2; - }(/* @__PURE__ */ _wrapNativeSuper(Error)); - var InvalidDateTimeError = /* @__PURE__ */ function(_LuxonError) { - _inheritsLoose(InvalidDateTimeError2, _LuxonError); - function InvalidDateTimeError2(reason) { - return _LuxonError.call(this, "Invalid DateTime: " + reason.toMessage()) || this; - } - return InvalidDateTimeError2; - }(LuxonError); - var InvalidIntervalError = /* @__PURE__ */ function(_LuxonError2) { - _inheritsLoose(InvalidIntervalError2, _LuxonError2); - function InvalidIntervalError2(reason) { - return _LuxonError2.call(this, "Invalid Interval: " + reason.toMessage()) || this; - } - return InvalidIntervalError2; - }(LuxonError); - var InvalidDurationError = /* @__PURE__ */ function(_LuxonError3) { - _inheritsLoose(InvalidDurationError2, _LuxonError3); - function InvalidDurationError2(reason) { - return _LuxonError3.call(this, "Invalid Duration: " + reason.toMessage()) || this; - } - return InvalidDurationError2; - }(LuxonError); - var ConflictingSpecificationError = /* @__PURE__ */ function(_LuxonError4) { - _inheritsLoose(ConflictingSpecificationError2, _LuxonError4); - function ConflictingSpecificationError2() { - return _LuxonError4.apply(this, arguments) || this; - } - return ConflictingSpecificationError2; - }(LuxonError); - var InvalidUnitError = /* @__PURE__ */ function(_LuxonError5) { - _inheritsLoose(InvalidUnitError2, _LuxonError5); - function InvalidUnitError2(unit) { - return _LuxonError5.call(this, "Invalid unit " + unit) || this; - } - return InvalidUnitError2; - }(LuxonError); - var InvalidArgumentError = /* @__PURE__ */ function(_LuxonError6) { - _inheritsLoose(InvalidArgumentError2, _LuxonError6); - function InvalidArgumentError2() { - return _LuxonError6.apply(this, arguments) || this; - } - return InvalidArgumentError2; - }(LuxonError); - var ZoneIsAbstractError = /* @__PURE__ */ function(_LuxonError7) { - _inheritsLoose(ZoneIsAbstractError2, _LuxonError7); - function ZoneIsAbstractError2() { - return _LuxonError7.call(this, "Zone is an abstract class") || this; - } - return ZoneIsAbstractError2; - }(LuxonError); - var n2 = "numeric"; - var s3 = "short"; - var l3 = "long"; - var DATE_SHORT = { - year: n2, - month: n2, - day: n2 - }; - var DATE_MED = { - year: n2, - month: s3, - day: n2 - }; - var DATE_MED_WITH_WEEKDAY = { - year: n2, - month: s3, - day: n2, - weekday: s3 - }; - var DATE_FULL = { - year: n2, - month: l3, - day: n2 - }; - var DATE_HUGE = { - year: n2, - month: l3, - day: n2, - weekday: l3 - }; - var TIME_SIMPLE = { - hour: n2, - minute: n2 - }; - var TIME_WITH_SECONDS = { - hour: n2, - minute: n2, - second: n2 - }; - var TIME_WITH_SHORT_OFFSET = { - hour: n2, - minute: n2, - second: n2, - timeZoneName: s3 - }; - var TIME_WITH_LONG_OFFSET = { - hour: n2, - minute: n2, - second: n2, - timeZoneName: l3 - }; - var TIME_24_SIMPLE = { - hour: n2, - minute: n2, - hourCycle: "h23" - }; - var TIME_24_WITH_SECONDS = { - hour: n2, - minute: n2, - second: n2, - hourCycle: "h23" - }; - var TIME_24_WITH_SHORT_OFFSET = { - hour: n2, - minute: n2, - second: n2, - hourCycle: "h23", - timeZoneName: s3 - }; - var TIME_24_WITH_LONG_OFFSET = { - hour: n2, - minute: n2, - second: n2, - hourCycle: "h23", - timeZoneName: l3 - }; - var DATETIME_SHORT = { - year: n2, - month: n2, - day: n2, - hour: n2, - minute: n2 - }; - var DATETIME_SHORT_WITH_SECONDS = { - year: n2, - month: n2, - day: n2, - hour: n2, - minute: n2, - second: n2 - }; - var DATETIME_MED = { - year: n2, - month: s3, - day: n2, - hour: n2, - minute: n2 - }; - var DATETIME_MED_WITH_SECONDS = { - year: n2, - month: s3, - day: n2, - hour: n2, - minute: n2, - second: n2 - }; - var DATETIME_MED_WITH_WEEKDAY = { - year: n2, - month: s3, - day: n2, - weekday: s3, - hour: n2, - minute: n2 - }; - var DATETIME_FULL = { - year: n2, - month: l3, - day: n2, - hour: n2, - minute: n2, - timeZoneName: s3 - }; - var DATETIME_FULL_WITH_SECONDS = { - year: n2, - month: l3, - day: n2, - hour: n2, - minute: n2, - second: n2, - timeZoneName: s3 - }; - var DATETIME_HUGE = { - year: n2, - month: l3, - day: n2, - weekday: l3, - hour: n2, - minute: n2, - timeZoneName: l3 - }; - var DATETIME_HUGE_WITH_SECONDS = { - year: n2, - month: l3, - day: n2, - weekday: l3, - hour: n2, - minute: n2, - second: n2, - timeZoneName: l3 - }; - function isUndefined(o2) { - return typeof o2 === "undefined"; - } - function isNumber(o2) { - return typeof o2 === "number"; - } - function isInteger(o2) { - return typeof o2 === "number" && o2 % 1 === 0; - } - function isString(o2) { - return typeof o2 === "string"; - } - function isDate(o2) { - return Object.prototype.toString.call(o2) === "[object Date]"; - } - function hasRelative() { - try { - return typeof Intl !== "undefined" && !!Intl.RelativeTimeFormat; - } catch (e3) { - return false; + function isObject(input) { + return input != null && Object.prototype.toString.call(input) === "[object Object]"; } - } - function maybeArray(thing) { - return Array.isArray(thing) ? thing : [thing]; - } - function bestBy(arr, by, compare) { - if (arr.length === 0) { - return void 0; + function hasOwnProp(a3, b3) { + return Object.prototype.hasOwnProperty.call(a3, b3); } - return arr.reduce(function(best, next) { - var pair = [by(next), next]; - if (!best) { - return pair; - } else if (compare(best[0], pair[0]) === best[0]) { - return best; + function isObjectEmpty(obj) { + if (Object.getOwnPropertyNames) { + return Object.getOwnPropertyNames(obj).length === 0; } else { - return pair; + var k3; + for (k3 in obj) { + if (hasOwnProp(obj, k3)) { + return false; + } + } + return true; } - }, null)[1]; - } - function pick(obj, keys) { - return keys.reduce(function(a3, k2) { - a3[k2] = obj[k2]; - return a3; - }, {}); - } - function hasOwnProperty2(obj, prop) { - return Object.prototype.hasOwnProperty.call(obj, prop); - } - function integerBetween(thing, bottom, top) { - return isInteger(thing) && thing >= bottom && thing <= top; - } - function floorMod(x3, n3) { - return x3 - n3 * Math.floor(x3 / n3); - } - function padStart2(input, n3) { - if (n3 === void 0) { - n3 = 2; - } - var isNeg = input < 0; - var padded; - if (isNeg) { - padded = "-" + ("" + -input).padStart(n3, "0"); - } else { - padded = ("" + input).padStart(n3, "0"); - } - return padded; - } - function parseInteger(string) { - if (isUndefined(string) || string === null || string === "") { - return void 0; - } else { - return parseInt(string, 10); - } - } - function parseFloating(string) { - if (isUndefined(string) || string === null || string === "") { - return void 0; - } else { - return parseFloat(string); } - } - function parseMillis(fraction) { - if (isUndefined(fraction) || fraction === null || fraction === "") { - return void 0; - } else { - var f3 = parseFloat("0." + fraction) * 1e3; - return Math.floor(f3); + function isUndefined2(input) { + return input === void 0; } - } - function roundTo(number, digits, towardZero) { - if (towardZero === void 0) { - towardZero = false; + function isNumber2(input) { + return typeof input === "number" || Object.prototype.toString.call(input) === "[object Number]"; } - var factor = Math.pow(10, digits), rounder = towardZero ? Math.trunc : Math.round; - return rounder(number * factor) / factor; - } - function isLeapYear(year) { - return year % 4 === 0 && (year % 100 !== 0 || year % 400 === 0); - } - function daysInYear(year) { - return isLeapYear(year) ? 366 : 365; - } - function daysInMonth(year, month) { - var modMonth = floorMod(month - 1, 12) + 1, modYear = year + (month - modMonth) / 12; - if (modMonth === 2) { - return isLeapYear(modYear) ? 29 : 28; - } else { - return [31, null, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31][modMonth - 1]; + function isDate2(input) { + return input instanceof Date || Object.prototype.toString.call(input) === "[object Date]"; } - } - function objToLocalTS(obj) { - var d3 = Date.UTC(obj.year, obj.month - 1, obj.day, obj.hour, obj.minute, obj.second, obj.millisecond); - if (obj.year < 100 && obj.year >= 0) { - d3 = new Date(d3); - d3.setUTCFullYear(d3.getUTCFullYear() - 1900); + function map(arr, fn) { + var res = [], i3; + for (i3 = 0; i3 < arr.length; ++i3) { + res.push(fn(arr[i3], i3)); + } + return res; } - return +d3; - } - function weeksInWeekYear(weekYear) { - var p1 = (weekYear + Math.floor(weekYear / 4) - Math.floor(weekYear / 100) + Math.floor(weekYear / 400)) % 7, last = weekYear - 1, p22 = (last + Math.floor(last / 4) - Math.floor(last / 100) + Math.floor(last / 400)) % 7; - return p1 === 4 || p22 === 3 ? 53 : 52; - } - function untruncateYear(year) { - if (year > 99) { - return year; - } else - return year > 60 ? 1900 + year : 2e3 + year; - } - function parseZoneInfo(ts, offsetFormat, locale, timeZone) { - if (timeZone === void 0) { - timeZone = null; - } - var date = new Date(ts), intlOpts = { - hourCycle: "h23", - year: "numeric", - month: "2-digit", - day: "2-digit", - hour: "2-digit", - minute: "2-digit" - }; - if (timeZone) { - intlOpts.timeZone = timeZone; - } - var modified = _extends({ - timeZoneName: offsetFormat - }, intlOpts); - var parsed = new Intl.DateTimeFormat(locale, modified).formatToParts(date).find(function(m2) { - return m2.type.toLowerCase() === "timezonename"; - }); - return parsed ? parsed.value : null; - } - function signedOffset(offHourStr, offMinuteStr) { - var offHour = parseInt(offHourStr, 10); - if (Number.isNaN(offHour)) { - offHour = 0; - } - var offMin = parseInt(offMinuteStr, 10) || 0, offMinSigned = offHour < 0 || Object.is(offHour, -0) ? -offMin : offMin; - return offHour * 60 + offMinSigned; - } - function asNumber(value) { - var numericValue = Number(value); - if (typeof value === "boolean" || value === "" || Number.isNaN(numericValue)) - throw new InvalidArgumentError("Invalid unit value " + value); - return numericValue; - } - function normalizeObject(obj, normalizer) { - var normalized = {}; - for (var u3 in obj) { - if (hasOwnProperty2(obj, u3)) { - var v3 = obj[u3]; - if (v3 === void 0 || v3 === null) - continue; - normalized[normalizer(u3)] = asNumber(v3); - } - } - return normalized; - } - function formatOffset(offset2, format) { - var hours = Math.trunc(Math.abs(offset2 / 60)), minutes = Math.trunc(Math.abs(offset2 % 60)), sign = offset2 >= 0 ? "+" : "-"; - switch (format) { - case "short": - return "" + sign + padStart2(hours, 2) + ":" + padStart2(minutes, 2); - case "narrow": - return "" + sign + hours + (minutes > 0 ? ":" + minutes : ""); - case "techie": - return "" + sign + padStart2(hours, 2) + padStart2(minutes, 2); - default: - throw new RangeError("Value format " + format + " is out of range for property format"); - } - } - function timeObject(obj) { - return pick(obj, ["hour", "minute", "second", "millisecond"]); - } - var ianaRegex = /[A-Za-z_+-]{1,256}(:?\/[A-Za-z0-9_+-]{1,256}(\/[A-Za-z0-9_+-]{1,256})?)?/; - var monthsLong = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"]; - var monthsShort = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"]; - var monthsNarrow = ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"]; - function months(length) { - switch (length) { - case "narrow": - return [].concat(monthsNarrow); - case "short": - return [].concat(monthsShort); - case "long": - return [].concat(monthsLong); - case "numeric": - return ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12"]; - case "2-digit": - return ["01", "02", "03", "04", "05", "06", "07", "08", "09", "10", "11", "12"]; - default: - return null; + function extend(a3, b3) { + for (var i3 in b3) { + if (hasOwnProp(b3, i3)) { + a3[i3] = b3[i3]; + } + } + if (hasOwnProp(b3, "toString")) { + a3.toString = b3.toString; + } + if (hasOwnProp(b3, "valueOf")) { + a3.valueOf = b3.valueOf; + } + return a3; } - } - var weekdaysLong = ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"]; - var weekdaysShort = ["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"]; - var weekdaysNarrow = ["M", "T", "W", "T", "F", "S", "S"]; - function weekdays(length) { - switch (length) { - case "narrow": - return [].concat(weekdaysNarrow); - case "short": - return [].concat(weekdaysShort); - case "long": - return [].concat(weekdaysLong); - case "numeric": - return ["1", "2", "3", "4", "5", "6", "7"]; - default: - return null; + function createUTC(input, format2, locale2, strict) { + return createLocalOrUTC(input, format2, locale2, strict, true).utc(); } - } - var meridiems = ["AM", "PM"]; - var erasLong = ["Before Christ", "Anno Domini"]; - var erasShort = ["BC", "AD"]; - var erasNarrow = ["B", "A"]; - function eras(length) { - switch (length) { - case "narrow": - return [].concat(erasNarrow); - case "short": - return [].concat(erasShort); - case "long": - return [].concat(erasLong); - default: - return null; + function defaultParsingFlags() { + return { + empty: false, + unusedTokens: [], + unusedInput: [], + overflow: -2, + charsLeftOver: 0, + nullInput: false, + invalidEra: null, + invalidMonth: null, + invalidFormat: false, + userInvalidated: false, + iso: false, + parsedDateParts: [], + era: null, + meridiem: null, + rfc2822: false, + weekdayMismatch: false + }; } - } - function meridiemForDateTime(dt) { - return meridiems[dt.hour < 12 ? 0 : 1]; - } - function weekdayForDateTime(dt, length) { - return weekdays(length)[dt.weekday - 1]; - } - function monthForDateTime(dt, length) { - return months(length)[dt.month - 1]; - } - function eraForDateTime(dt, length) { - return eras(length)[dt.year < 0 ? 0 : 1]; - } - function formatRelativeTime(unit, count, numeric, narrow) { - if (numeric === void 0) { - numeric = "always"; + function getParsingFlags(m3) { + if (m3._pf == null) { + m3._pf = defaultParsingFlags(); + } + return m3._pf; } - if (narrow === void 0) { - narrow = false; + var some; + if (Array.prototype.some) { + some = Array.prototype.some; + } else { + some = function(fun) { + var t3 = Object(this), len = t3.length >>> 0, i3; + for (i3 = 0; i3 < len; i3++) { + if (i3 in t3 && fun.call(this, t3[i3], i3, t3)) { + return true; + } + } + return false; + }; } - var units = { - years: ["year", "yr."], - quarters: ["quarter", "qtr."], - months: ["month", "mo."], - weeks: ["week", "wk."], - days: ["day", "day", "days"], - hours: ["hour", "hr."], - minutes: ["minute", "min."], - seconds: ["second", "sec."] - }; - var lastable = ["hours", "minutes", "seconds"].indexOf(unit) === -1; - if (numeric === "auto" && lastable) { - var isDay = unit === "days"; - switch (count) { - case 1: - return isDay ? "tomorrow" : "next " + units[unit][0]; - case -1: - return isDay ? "yesterday" : "last " + units[unit][0]; - case 0: - return isDay ? "today" : "this " + units[unit][0]; + function isValid(m3) { + if (m3._isValid == null) { + var flags = getParsingFlags(m3), parsedParts = some.call(flags.parsedDateParts, function(i3) { + return i3 != null; + }), isNowValid = !isNaN(m3._d.getTime()) && flags.overflow < 0 && !flags.empty && !flags.invalidEra && !flags.invalidMonth && !flags.invalidWeekday && !flags.weekdayMismatch && !flags.nullInput && !flags.invalidFormat && !flags.userInvalidated && (!flags.meridiem || flags.meridiem && parsedParts); + if (m3._strict) { + isNowValid = isNowValid && flags.charsLeftOver === 0 && flags.unusedTokens.length === 0 && flags.bigHour === void 0; + } + if (Object.isFrozen == null || !Object.isFrozen(m3)) { + m3._isValid = isNowValid; + } else { + return isNowValid; + } } + return m3._isValid; } - var isInPast = Object.is(count, -0) || count < 0, fmtValue = Math.abs(count), singular = fmtValue === 1, lilUnits = units[unit], fmtUnit = narrow ? singular ? lilUnits[1] : lilUnits[2] || lilUnits[1] : singular ? units[unit][0] : unit; - return isInPast ? fmtValue + " " + fmtUnit + " ago" : "in " + fmtValue + " " + fmtUnit; - } - function stringifyTokens(splits, tokenToString) { - var s4 = ""; - for (var _iterator = _createForOfIteratorHelperLoose(splits), _step; !(_step = _iterator()).done; ) { - var token = _step.value; - if (token.literal) { - s4 += token.val; + function createInvalid(flags) { + var m3 = createUTC(NaN); + if (flags != null) { + extend(getParsingFlags(m3), flags); } else { - s4 += tokenToString(token.val); - } - } - return s4; - } - var _macroTokenToFormatOpts = { - D: DATE_SHORT, - DD: DATE_MED, - DDD: DATE_FULL, - DDDD: DATE_HUGE, - t: TIME_SIMPLE, - tt: TIME_WITH_SECONDS, - ttt: TIME_WITH_SHORT_OFFSET, - tttt: TIME_WITH_LONG_OFFSET, - T: TIME_24_SIMPLE, - TT: TIME_24_WITH_SECONDS, - TTT: TIME_24_WITH_SHORT_OFFSET, - TTTT: TIME_24_WITH_LONG_OFFSET, - f: DATETIME_SHORT, - ff: DATETIME_MED, - fff: DATETIME_FULL, - ffff: DATETIME_HUGE, - F: DATETIME_SHORT_WITH_SECONDS, - FF: DATETIME_MED_WITH_SECONDS, - FFF: DATETIME_FULL_WITH_SECONDS, - FFFF: DATETIME_HUGE_WITH_SECONDS - }; - var Formatter = /* @__PURE__ */ function() { - Formatter2.create = function create(locale, opts) { - if (opts === void 0) { - opts = {}; + getParsingFlags(m3).userInvalidated = true; } - return new Formatter2(locale, opts); - }; - Formatter2.parseFormat = function parseFormat(fmt) { - var current = null, currentFull = "", bracketed = false; - var splits = []; - for (var i3 = 0; i3 < fmt.length; i3++) { - var c3 = fmt.charAt(i3); - if (c3 === "'") { - if (currentFull.length > 0) { - splits.push({ - literal: bracketed, - val: currentFull - }); - } - current = null; - currentFull = ""; - bracketed = !bracketed; - } else if (bracketed) { - currentFull += c3; - } else if (c3 === current) { - currentFull += c3; - } else { - if (currentFull.length > 0) { - splits.push({ - literal: false, - val: currentFull - }); - } - currentFull = c3; - current = c3; - } + return m3; + } + var momentProperties = hooks.momentProperties = [], updateInProgress = false; + function copyConfig(to2, from2) { + var i3, prop, val; + if (!isUndefined2(from2._isAMomentObject)) { + to2._isAMomentObject = from2._isAMomentObject; } - if (currentFull.length > 0) { - splits.push({ - literal: bracketed, - val: currentFull - }); + if (!isUndefined2(from2._i)) { + to2._i = from2._i; } - return splits; - }; - Formatter2.macroTokenToFormatOpts = function macroTokenToFormatOpts(token) { - return _macroTokenToFormatOpts[token]; - }; - function Formatter2(locale, formatOpts) { - this.opts = formatOpts; - this.loc = locale; - this.systemLoc = null; - } - var _proto = Formatter2.prototype; - _proto.formatWithSystemDefault = function formatWithSystemDefault(dt, opts) { - if (this.systemLoc === null) { - this.systemLoc = this.loc.redefaultToSystem(); - } - var df = this.systemLoc.dtFormatter(dt, _extends({}, this.opts, opts)); - return df.format(); - }; - _proto.formatDateTime = function formatDateTime(dt, opts) { - if (opts === void 0) { - opts = {}; + if (!isUndefined2(from2._f)) { + to2._f = from2._f; } - var df = this.loc.dtFormatter(dt, _extends({}, this.opts, opts)); - return df.format(); - }; - _proto.formatDateTimeParts = function formatDateTimeParts(dt, opts) { - if (opts === void 0) { - opts = {}; + if (!isUndefined2(from2._l)) { + to2._l = from2._l; } - var df = this.loc.dtFormatter(dt, _extends({}, this.opts, opts)); - return df.formatToParts(); - }; - _proto.resolvedOptions = function resolvedOptions(dt, opts) { - if (opts === void 0) { - opts = {}; + if (!isUndefined2(from2._strict)) { + to2._strict = from2._strict; } - var df = this.loc.dtFormatter(dt, _extends({}, this.opts, opts)); - return df.resolvedOptions(); - }; - _proto.num = function num(n3, p3) { - if (p3 === void 0) { - p3 = 0; + if (!isUndefined2(from2._tzm)) { + to2._tzm = from2._tzm; } - if (this.opts.forceSimple) { - return padStart2(n3, p3); + if (!isUndefined2(from2._isUTC)) { + to2._isUTC = from2._isUTC; } - var opts = _extends({}, this.opts); - if (p3 > 0) { - opts.padTo = p3; + if (!isUndefined2(from2._offset)) { + to2._offset = from2._offset; } - return this.loc.numberFormatter(opts).format(n3); - }; - _proto.formatDateTimeFromString = function formatDateTimeFromString(dt, fmt) { - var _this = this; - var knownEnglish = this.loc.listingMode() === "en", useDateTimeFormatter = this.loc.outputCalendar && this.loc.outputCalendar !== "gregory", string = function string2(opts, extract) { - return _this.loc.extract(dt, opts, extract); - }, formatOffset2 = function formatOffset3(opts) { - if (dt.isOffsetFixed && dt.offset === 0 && opts.allowZ) { - return "Z"; - } - return dt.isValid ? dt.zone.formatOffset(dt.ts, opts.format) : ""; - }, meridiem = function meridiem2() { - return knownEnglish ? meridiemForDateTime(dt) : string({ - hour: "numeric", - hourCycle: "h12" - }, "dayperiod"); - }, month = function month2(length, standalone) { - return knownEnglish ? monthForDateTime(dt, length) : string(standalone ? { - month: length - } : { - month: length, - day: "numeric" - }, "month"); - }, weekday = function weekday2(length, standalone) { - return knownEnglish ? weekdayForDateTime(dt, length) : string(standalone ? { - weekday: length - } : { - weekday: length, - month: "long", - day: "numeric" - }, "weekday"); - }, maybeMacro = function maybeMacro2(token) { - var formatOpts = Formatter2.macroTokenToFormatOpts(token); - if (formatOpts) { - return _this.formatWithSystemDefault(dt, formatOpts); - } else { - return token; - } - }, era = function era2(length) { - return knownEnglish ? eraForDateTime(dt, length) : string({ - era: length - }, "era"); - }, tokenToString = function tokenToString2(token) { - switch (token) { - case "S": - return _this.num(dt.millisecond); - case "u": - case "SSS": - return _this.num(dt.millisecond, 3); - case "s": - return _this.num(dt.second); - case "ss": - return _this.num(dt.second, 2); - case "uu": - return _this.num(Math.floor(dt.millisecond / 10), 2); - case "uuu": - return _this.num(Math.floor(dt.millisecond / 100)); - case "m": - return _this.num(dt.minute); - case "mm": - return _this.num(dt.minute, 2); - case "h": - return _this.num(dt.hour % 12 === 0 ? 12 : dt.hour % 12); - case "hh": - return _this.num(dt.hour % 12 === 0 ? 12 : dt.hour % 12, 2); - case "H": - return _this.num(dt.hour); - case "HH": - return _this.num(dt.hour, 2); - case "Z": - return formatOffset2({ - format: "narrow", - allowZ: _this.opts.allowZ - }); - case "ZZ": - return formatOffset2({ - format: "short", - allowZ: _this.opts.allowZ - }); - case "ZZZ": - return formatOffset2({ - format: "techie", - allowZ: _this.opts.allowZ - }); - case "ZZZZ": - return dt.zone.offsetName(dt.ts, { - format: "short", - locale: _this.loc.locale - }); - case "ZZZZZ": - return dt.zone.offsetName(dt.ts, { - format: "long", - locale: _this.loc.locale - }); - case "z": - return dt.zoneName; - case "a": - return meridiem(); - case "d": - return useDateTimeFormatter ? string({ - day: "numeric" - }, "day") : _this.num(dt.day); - case "dd": - return useDateTimeFormatter ? string({ - day: "2-digit" - }, "day") : _this.num(dt.day, 2); - case "c": - return _this.num(dt.weekday); - case "ccc": - return weekday("short", true); - case "cccc": - return weekday("long", true); - case "ccccc": - return weekday("narrow", true); - case "E": - return _this.num(dt.weekday); - case "EEE": - return weekday("short", false); - case "EEEE": - return weekday("long", false); - case "EEEEE": - return weekday("narrow", false); - case "L": - return useDateTimeFormatter ? string({ - month: "numeric", - day: "numeric" - }, "month") : _this.num(dt.month); - case "LL": - return useDateTimeFormatter ? string({ - month: "2-digit", - day: "numeric" - }, "month") : _this.num(dt.month, 2); - case "LLL": - return month("short", true); - case "LLLL": - return month("long", true); - case "LLLLL": - return month("narrow", true); - case "M": - return useDateTimeFormatter ? string({ - month: "numeric" - }, "month") : _this.num(dt.month); - case "MM": - return useDateTimeFormatter ? string({ - month: "2-digit" - }, "month") : _this.num(dt.month, 2); - case "MMM": - return month("short", false); - case "MMMM": - return month("long", false); - case "MMMMM": - return month("narrow", false); - case "y": - return useDateTimeFormatter ? string({ - year: "numeric" - }, "year") : _this.num(dt.year); - case "yy": - return useDateTimeFormatter ? string({ - year: "2-digit" - }, "year") : _this.num(dt.year.toString().slice(-2), 2); - case "yyyy": - return useDateTimeFormatter ? string({ - year: "numeric" - }, "year") : _this.num(dt.year, 4); - case "yyyyyy": - return useDateTimeFormatter ? string({ - year: "numeric" - }, "year") : _this.num(dt.year, 6); - case "G": - return era("short"); - case "GG": - return era("long"); - case "GGGGG": - return era("narrow"); - case "kk": - return _this.num(dt.weekYear.toString().slice(-2), 2); - case "kkkk": - return _this.num(dt.weekYear, 4); - case "W": - return _this.num(dt.weekNumber); - case "WW": - return _this.num(dt.weekNumber, 2); - case "o": - return _this.num(dt.ordinal); - case "ooo": - return _this.num(dt.ordinal, 3); - case "q": - return _this.num(dt.quarter); - case "qq": - return _this.num(dt.quarter, 2); - case "X": - return _this.num(Math.floor(dt.ts / 1e3)); - case "x": - return _this.num(dt.ts); - default: - return maybeMacro(token); - } - }; - return stringifyTokens(Formatter2.parseFormat(fmt), tokenToString); - }; - _proto.formatDurationFromString = function formatDurationFromString(dur, fmt) { - var _this2 = this; - var tokenToField = function tokenToField2(token) { - switch (token[0]) { - case "S": - return "millisecond"; - case "s": - return "second"; - case "m": - return "minute"; - case "h": - return "hour"; - case "d": - return "day"; - case "M": - return "month"; - case "y": - return "year"; - default: - return null; - } - }, tokenToString = function tokenToString2(lildur) { - return function(token) { - var mapped = tokenToField(token); - if (mapped) { - return _this2.num(lildur.get(mapped), token.length); - } else { - return token; + if (!isUndefined2(from2._pf)) { + to2._pf = getParsingFlags(from2); + } + if (!isUndefined2(from2._locale)) { + to2._locale = from2._locale; + } + if (momentProperties.length > 0) { + for (i3 = 0; i3 < momentProperties.length; i3++) { + prop = momentProperties[i3]; + val = from2[prop]; + if (!isUndefined2(val)) { + to2[prop] = val; } - }; - }, tokens = Formatter2.parseFormat(fmt), realTokens = tokens.reduce(function(found, _ref) { - var literal = _ref.literal, val = _ref.val; - return literal ? found : found.concat(val); - }, []), collapsed = dur.shiftTo.apply(dur, realTokens.map(tokenToField).filter(function(t3) { - return t3; - })); - return stringifyTokens(tokens, tokenToString(collapsed)); - }; - return Formatter2; - }(); - var Invalid = /* @__PURE__ */ function() { - function Invalid2(reason, explanation) { - this.reason = reason; - this.explanation = explanation; - } - var _proto = Invalid2.prototype; - _proto.toMessage = function toMessage() { - if (this.explanation) { - return this.reason + ": " + this.explanation; - } else { - return this.reason; + } } - }; - return Invalid2; - }(); - var Zone = /* @__PURE__ */ function() { - function Zone2() { + return to2; } - var _proto = Zone2.prototype; - _proto.offsetName = function offsetName(ts, opts) { - throw new ZoneIsAbstractError(); - }; - _proto.formatOffset = function formatOffset2(ts, format) { - throw new ZoneIsAbstractError(); - }; - _proto.offset = function offset2(ts) { - throw new ZoneIsAbstractError(); - }; - _proto.equals = function equals(otherZone) { - throw new ZoneIsAbstractError(); - }; - _createClass(Zone2, [{ - key: "type", - get: function get() { - throw new ZoneIsAbstractError(); - } - }, { - key: "name", - get: function get() { - throw new ZoneIsAbstractError(); - } - }, { - key: "isUniversal", - get: function get() { - throw new ZoneIsAbstractError(); - } - }, { - key: "isValid", - get: function get() { - throw new ZoneIsAbstractError(); - } - }]); - return Zone2; - }(); - var singleton$1 = null; - var SystemZone = /* @__PURE__ */ function(_Zone) { - _inheritsLoose(SystemZone2, _Zone); - function SystemZone2() { - return _Zone.apply(this, arguments) || this; - } - var _proto = SystemZone2.prototype; - _proto.offsetName = function offsetName(ts, _ref) { - var format = _ref.format, locale = _ref.locale; - return parseZoneInfo(ts, format, locale); - }; - _proto.formatOffset = function formatOffset$1(ts, format) { - return formatOffset(this.offset(ts), format); - }; - _proto.offset = function offset2(ts) { - return -new Date(ts).getTimezoneOffset(); - }; - _proto.equals = function equals(otherZone) { - return otherZone.type === "system"; - }; - _createClass(SystemZone2, [{ - key: "type", - get: function get() { - return "system"; - } - }, { - key: "name", - get: function get() { - return new Intl.DateTimeFormat().resolvedOptions().timeZone; - } - }, { - key: "isUniversal", - get: function get() { - return false; + function Moment(config2) { + copyConfig(this, config2); + this._d = new Date(config2._d != null ? config2._d.getTime() : NaN); + if (!this.isValid()) { + this._d = new Date(NaN); } - }, { - key: "isValid", - get: function get() { - return true; + if (updateInProgress === false) { + updateInProgress = true; + hooks.updateOffset(this); + updateInProgress = false; } - }], [{ - key: "instance", - get: function get() { - if (singleton$1 === null) { - singleton$1 = new SystemZone2(); - } - return singleton$1; - } - }]); - return SystemZone2; - }(Zone); - RegExp("^" + ianaRegex.source + "$"); - var dtfCache = {}; - function makeDTF(zone) { - if (!dtfCache[zone]) { - dtfCache[zone] = new Intl.DateTimeFormat("en-US", { - hour12: false, - timeZone: zone, - year: "numeric", - month: "2-digit", - day: "2-digit", - hour: "2-digit", - minute: "2-digit", - second: "2-digit" - }); } - return dtfCache[zone]; - } - var typeToPos = { - year: 0, - month: 1, - day: 2, - hour: 3, - minute: 4, - second: 5 - }; - function hackyOffset(dtf, date) { - var formatted = dtf.format(date).replace(/\u200E/g, ""), parsed = /(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(formatted), fMonth = parsed[1], fDay = parsed[2], fYear = parsed[3], fHour = parsed[4], fMinute = parsed[5], fSecond = parsed[6]; - return [fYear, fMonth, fDay, fHour, fMinute, fSecond]; - } - function partsOffset(dtf, date) { - var formatted = dtf.formatToParts(date), filled = []; - for (var i3 = 0; i3 < formatted.length; i3++) { - var _formatted$i = formatted[i3], type = _formatted$i.type, value = _formatted$i.value, pos = typeToPos[type]; - if (!isUndefined(pos)) { - filled[pos] = parseInt(value, 10); + function isMoment(obj) { + return obj instanceof Moment || obj != null && obj._isAMomentObject != null; + } + function warn(msg) { + if (hooks.suppressDeprecationWarnings === false && typeof console !== "undefined" && console.warn) { + console.warn("Deprecation warning: " + msg); } } - return filled; - } - var ianaZoneCache = {}; - var IANAZone = /* @__PURE__ */ function(_Zone) { - _inheritsLoose(IANAZone2, _Zone); - IANAZone2.create = function create(name) { - if (!ianaZoneCache[name]) { - ianaZoneCache[name] = new IANAZone2(name); + function deprecate(msg, fn) { + var firstTime = true; + return extend(function() { + if (hooks.deprecationHandler != null) { + hooks.deprecationHandler(null, msg); + } + if (firstTime) { + var args = [], arg, i3, key; + for (i3 = 0; i3 < arguments.length; i3++) { + arg = ""; + if (typeof arguments[i3] === "object") { + arg += "\n[" + i3 + "] "; + for (key in arguments[0]) { + if (hasOwnProp(arguments[0], key)) { + arg += key + ": " + arguments[0][key] + ", "; + } + } + arg = arg.slice(0, -2); + } else { + arg = arguments[i3]; + } + args.push(arg); + } + warn(msg + "\nArguments: " + Array.prototype.slice.call(args).join("") + "\n" + new Error().stack); + firstTime = false; + } + return fn.apply(this, arguments); + }, fn); + } + var deprecations = {}; + function deprecateSimple(name, msg) { + if (hooks.deprecationHandler != null) { + hooks.deprecationHandler(name, msg); } - return ianaZoneCache[name]; - }; - IANAZone2.resetCache = function resetCache() { - ianaZoneCache = {}; - dtfCache = {}; - }; - IANAZone2.isValidSpecifier = function isValidSpecifier(s4) { - return this.isValidZone(s4); - }; - IANAZone2.isValidZone = function isValidZone(zone) { - if (!zone) { - return false; + if (!deprecations[name]) { + warn(msg); + deprecations[name] = true; } - try { - new Intl.DateTimeFormat("en-US", { - timeZone: zone - }).format(); - return true; - } catch (e3) { - return false; + } + hooks.suppressDeprecationWarnings = false; + hooks.deprecationHandler = null; + function isFunction(input) { + return typeof Function !== "undefined" && input instanceof Function || Object.prototype.toString.call(input) === "[object Function]"; + } + function set(config2) { + var prop, i3; + for (i3 in config2) { + if (hasOwnProp(config2, i3)) { + prop = config2[i3]; + if (isFunction(prop)) { + this[i3] = prop; + } else { + this["_" + i3] = prop; + } + } } - }; - function IANAZone2(name) { - var _this; - _this = _Zone.call(this) || this; - _this.zoneName = name; - _this.valid = IANAZone2.isValidZone(name); - return _this; - } - var _proto = IANAZone2.prototype; - _proto.offsetName = function offsetName(ts, _ref) { - var format = _ref.format, locale = _ref.locale; - return parseZoneInfo(ts, format, locale, this.name); - }; - _proto.formatOffset = function formatOffset$1(ts, format) { - return formatOffset(this.offset(ts), format); - }; - _proto.offset = function offset2(ts) { - var date = new Date(ts); - if (isNaN(date)) - return NaN; - var dtf = makeDTF(this.name), _ref2 = dtf.formatToParts ? partsOffset(dtf, date) : hackyOffset(dtf, date), year = _ref2[0], month = _ref2[1], day = _ref2[2], hour = _ref2[3], minute = _ref2[4], second = _ref2[5]; - var adjustedHour = hour === 24 ? 0 : hour; - var asUTC = objToLocalTS({ - year, - month, - day, - hour: adjustedHour, - minute, - second, - millisecond: 0 - }); - var asTS = +date; - var over = asTS % 1e3; - asTS -= over >= 0 ? over : 1e3 + over; - return (asUTC - asTS) / (60 * 1e3); - }; - _proto.equals = function equals(otherZone) { - return otherZone.type === "iana" && otherZone.name === this.name; - }; - _createClass(IANAZone2, [{ - key: "type", - get: function get() { - return "iana"; - } - }, { - key: "name", - get: function get() { - return this.zoneName; - } - }, { - key: "isUniversal", - get: function get() { - return false; + this._config = config2; + this._dayOfMonthOrdinalParseLenient = new RegExp((this._dayOfMonthOrdinalParse.source || this._ordinalParse.source) + "|" + /\d{1,2}/.source); + } + function mergeConfigs(parentConfig, childConfig) { + var res = extend({}, parentConfig), prop; + for (prop in childConfig) { + if (hasOwnProp(childConfig, prop)) { + if (isObject(parentConfig[prop]) && isObject(childConfig[prop])) { + res[prop] = {}; + extend(res[prop], parentConfig[prop]); + extend(res[prop], childConfig[prop]); + } else if (childConfig[prop] != null) { + res[prop] = childConfig[prop]; + } else { + delete res[prop]; + } + } } - }, { - key: "isValid", - get: function get() { - return this.valid; - } - }]); - return IANAZone2; - }(Zone); - var singleton = null; - var FixedOffsetZone = /* @__PURE__ */ function(_Zone) { - _inheritsLoose(FixedOffsetZone2, _Zone); - FixedOffsetZone2.instance = function instance(offset2) { - return offset2 === 0 ? FixedOffsetZone2.utcInstance : new FixedOffsetZone2(offset2); - }; - FixedOffsetZone2.parseSpecifier = function parseSpecifier(s4) { - if (s4) { - var r3 = s4.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i); - if (r3) { - return new FixedOffsetZone2(signedOffset(r3[1], r3[2])); + for (prop in parentConfig) { + if (hasOwnProp(parentConfig, prop) && !hasOwnProp(childConfig, prop) && isObject(parentConfig[prop])) { + res[prop] = extend({}, res[prop]); } } - return null; - }; - function FixedOffsetZone2(offset2) { - var _this; - _this = _Zone.call(this) || this; - _this.fixed = offset2; - return _this; - } - var _proto = FixedOffsetZone2.prototype; - _proto.offsetName = function offsetName() { - return this.name; - }; - _proto.formatOffset = function formatOffset$1(ts, format) { - return formatOffset(this.fixed, format); - }; - _proto.offset = function offset2() { - return this.fixed; - }; - _proto.equals = function equals(otherZone) { - return otherZone.type === "fixed" && otherZone.fixed === this.fixed; - }; - _createClass(FixedOffsetZone2, [{ - key: "type", - get: function get() { - return "fixed"; - } - }, { - key: "name", - get: function get() { - return this.fixed === 0 ? "UTC" : "UTC" + formatOffset(this.fixed, "narrow"); - } - }, { - key: "isUniversal", - get: function get() { - return true; + return res; + } + function Locale2(config2) { + if (config2 != null) { + this.set(config2); } - }, { - key: "isValid", - get: function get() { - return true; + } + var keys; + if (Object.keys) { + keys = Object.keys; + } else { + keys = function(obj) { + var i3, res = []; + for (i3 in obj) { + if (hasOwnProp(obj, i3)) { + res.push(i3); + } + } + return res; + }; + } + var defaultCalendar = { + sameDay: "[Today at] LT", + nextDay: "[Tomorrow at] LT", + nextWeek: "dddd [at] LT", + lastDay: "[Yesterday at] LT", + lastWeek: "[Last] dddd [at] LT", + sameElse: "L" + }; + function calendar(key, mom, now3) { + var output = this._calendar[key] || this._calendar["sameElse"]; + return isFunction(output) ? output.call(mom, now3) : output; + } + function zeroFill(number, targetLength, forceSign) { + var absNumber = "" + Math.abs(number), zerosToFill = targetLength - absNumber.length, sign2 = number >= 0; + return (sign2 ? forceSign ? "+" : "" : "-") + Math.pow(10, Math.max(0, zerosToFill)).toString().substr(1) + absNumber; + } + var formattingTokens = /(\[[^\[]*\])|(\\)?([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, localFormattingTokens = /(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g, formatFunctions = {}, formatTokenFunctions = {}; + function addFormatToken(token2, padded, ordinal2, callback) { + var func = callback; + if (typeof callback === "string") { + func = function() { + return this[callback](); + }; } - }], [{ - key: "utcInstance", - get: function get() { - if (singleton === null) { - singleton = new FixedOffsetZone2(0); - } - return singleton; - } - }]); - return FixedOffsetZone2; - }(Zone); - var InvalidZone = /* @__PURE__ */ function(_Zone) { - _inheritsLoose(InvalidZone2, _Zone); - function InvalidZone2(zoneName) { - var _this; - _this = _Zone.call(this) || this; - _this.zoneName = zoneName; - return _this; - } - var _proto = InvalidZone2.prototype; - _proto.offsetName = function offsetName() { - return null; - }; - _proto.formatOffset = function formatOffset2() { - return ""; - }; - _proto.offset = function offset2() { - return NaN; - }; - _proto.equals = function equals() { - return false; - }; - _createClass(InvalidZone2, [{ - key: "type", - get: function get() { - return "invalid"; - } - }, { - key: "name", - get: function get() { - return this.zoneName; - } - }, { - key: "isUniversal", - get: function get() { - return false; + if (token2) { + formatTokenFunctions[token2] = func; } - }, { - key: "isValid", - get: function get() { - return false; + if (padded) { + formatTokenFunctions[padded[0]] = function() { + return zeroFill(func.apply(this, arguments), padded[1], padded[2]); + }; + } + if (ordinal2) { + formatTokenFunctions[ordinal2] = function() { + return this.localeData().ordinal(func.apply(this, arguments), token2); + }; } - }]); - return InvalidZone2; - }(Zone); - function normalizeZone(input, defaultZone2) { - if (isUndefined(input) || input === null) { - return defaultZone2; - } else if (input instanceof Zone) { - return input; - } else if (isString(input)) { - var lowered = input.toLowerCase(); - if (lowered === "local" || lowered === "system") - return defaultZone2; - else if (lowered === "utc" || lowered === "gmt") - return FixedOffsetZone.utcInstance; - else - return FixedOffsetZone.parseSpecifier(lowered) || IANAZone.create(input); - } else if (isNumber(input)) { - return FixedOffsetZone.instance(input); - } else if (typeof input === "object" && input.offset && typeof input.offset === "number") { - return input; - } else { - return new InvalidZone(input); } - } - var now = function now2() { - return Date.now(); - }; - var defaultZone = "system"; - var defaultLocale = null; - var defaultNumberingSystem = null; - var defaultOutputCalendar = null; - var throwOnInvalid; - var Settings = /* @__PURE__ */ function() { - function Settings2() { - } - Settings2.resetCaches = function resetCaches() { - Locale.resetCache(); - IANAZone.resetCache(); - }; - _createClass(Settings2, null, [{ - key: "now", - get: function get() { - return now; - }, - set: function set(n3) { - now = n3; + function removeFormattingTokens(input) { + if (input.match(/\[[\s\S]/)) { + return input.replace(/^\[|\]$/g, ""); } - }, { - key: "defaultZone", - get: function get() { - return normalizeZone(defaultZone, SystemZone.instance); - }, - set: function set(zone) { - defaultZone = zone; + return input.replace(/\\/g, ""); + } + function makeFormatFunction(format2) { + var array = format2.match(formattingTokens), i3, length; + for (i3 = 0, length = array.length; i3 < length; i3++) { + if (formatTokenFunctions[array[i3]]) { + array[i3] = formatTokenFunctions[array[i3]]; + } else { + array[i3] = removeFormattingTokens(array[i3]); + } } - }, { - key: "defaultLocale", - get: function get() { - return defaultLocale; - }, - set: function set(locale) { - defaultLocale = locale; + return function(mom) { + var output = "", i4; + for (i4 = 0; i4 < length; i4++) { + output += isFunction(array[i4]) ? array[i4].call(mom, format2) : array[i4]; + } + return output; + }; + } + function formatMoment(m3, format2) { + if (!m3.isValid()) { + return m3.localeData().invalidDate(); + } + format2 = expandFormat(format2, m3.localeData()); + formatFunctions[format2] = formatFunctions[format2] || makeFormatFunction(format2); + return formatFunctions[format2](m3); + } + function expandFormat(format2, locale2) { + var i3 = 5; + function replaceLongDateFormatTokens(input) { + return locale2.longDateFormat(input) || input; + } + localFormattingTokens.lastIndex = 0; + while (i3 >= 0 && localFormattingTokens.test(format2)) { + format2 = format2.replace(localFormattingTokens, replaceLongDateFormatTokens); + localFormattingTokens.lastIndex = 0; + i3 -= 1; + } + return format2; + } + var defaultLongDateFormat = { + 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 longDateFormat(key) { + var format2 = this._longDateFormat[key], formatUpper = this._longDateFormat[key.toUpperCase()]; + if (format2 || !formatUpper) { + return format2; + } + this._longDateFormat[key] = formatUpper.match(formattingTokens).map(function(tok) { + if (tok === "MMMM" || tok === "MM" || tok === "DD" || tok === "dddd") { + return tok.slice(1); + } + return tok; + }).join(""); + return this._longDateFormat[key]; + } + var defaultInvalidDate = "Invalid date"; + function invalidDate() { + return this._invalidDate; + } + var defaultOrdinal = "%d", defaultDayOfMonthOrdinalParse = /\d{1,2}/; + function ordinal(number) { + return this._ordinal.replace("%d", number); + } + var defaultRelativeTime = { + 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 relativeTime(number, withoutSuffix, string, isFuture) { + var output = this._relativeTime[string]; + return isFunction(output) ? output(number, withoutSuffix, string, isFuture) : output.replace(/%d/i, number); + } + function pastFuture(diff2, output) { + var format2 = this._relativeTime[diff2 > 0 ? "future" : "past"]; + return isFunction(format2) ? format2(output) : format2.replace(/%s/i, output); + } + var aliases = {}; + function addUnitAlias(unit, shorthand) { + var lowerCase = unit.toLowerCase(); + aliases[lowerCase] = aliases[lowerCase + "s"] = aliases[shorthand] = unit; + } + function normalizeUnits(units) { + return typeof units === "string" ? aliases[units] || aliases[units.toLowerCase()] : void 0; + } + function normalizeObjectUnits(inputObject) { + var normalizedInput = {}, normalizedProp, prop; + for (prop in inputObject) { + if (hasOwnProp(inputObject, prop)) { + normalizedProp = normalizeUnits(prop); + if (normalizedProp) { + normalizedInput[normalizedProp] = inputObject[prop]; + } + } + } + return normalizedInput; + } + var priorities = {}; + function addUnitPriority(unit, priority) { + priorities[unit] = priority; + } + function getPrioritizedUnits(unitsObj) { + var units = [], u3; + for (u3 in unitsObj) { + if (hasOwnProp(unitsObj, u3)) { + units.push({ unit: u3, priority: priorities[u3] }); + } + } + units.sort(function(a3, b3) { + return a3.priority - b3.priority; + }); + return units; + } + function isLeapYear2(year) { + return year % 4 === 0 && year % 100 !== 0 || year % 400 === 0; + } + function absFloor(number) { + if (number < 0) { + return Math.ceil(number) || 0; + } else { + return Math.floor(number); } - }, { - key: "defaultNumberingSystem", - get: function get() { - return defaultNumberingSystem; - }, - set: function set(numberingSystem) { - defaultNumberingSystem = numberingSystem; + } + function toInt(argumentForCoercion) { + var coercedNumber = +argumentForCoercion, value = 0; + if (coercedNumber !== 0 && isFinite(coercedNumber)) { + value = absFloor(coercedNumber); } - }, { - key: "defaultOutputCalendar", - get: function get() { - return defaultOutputCalendar; - }, - set: function set(outputCalendar) { - defaultOutputCalendar = outputCalendar; + return value; + } + function makeGetSet(unit, keepTime) { + return function(value) { + if (value != null) { + set$1(this, unit, value); + hooks.updateOffset(this, keepTime); + return this; + } else { + return get(this, unit); + } + }; + } + function get(mom, unit) { + return mom.isValid() ? mom._d["get" + (mom._isUTC ? "UTC" : "") + unit]() : NaN; + } + function set$1(mom, unit, value) { + if (mom.isValid() && !isNaN(value)) { + if (unit === "FullYear" && isLeapYear2(mom.year()) && mom.month() === 1 && mom.date() === 29) { + value = toInt(value); + mom._d["set" + (mom._isUTC ? "UTC" : "") + unit](value, mom.month(), daysInMonth2(value, mom.month())); + } else { + mom._d["set" + (mom._isUTC ? "UTC" : "") + unit](value); + } } - }, { - key: "throwOnInvalid", - get: function get() { - return throwOnInvalid; - }, - set: function set(t3) { - throwOnInvalid = t3; + } + function stringGet(units) { + units = normalizeUnits(units); + if (isFunction(this[units])) { + return this[units](); } - }]); - return Settings2; - }(); - var _excluded = ["base"]; - var _excluded2 = ["padTo", "floor"]; - var intlLFCache = {}; - function getCachedLF(locString, opts) { - if (opts === void 0) { - opts = {}; - } - var key = JSON.stringify([locString, opts]); - var dtf = intlLFCache[key]; - if (!dtf) { - dtf = new Intl.ListFormat(locString, opts); - intlLFCache[key] = dtf; - } - return dtf; - } - var intlDTCache = {}; - function getCachedDTF(locString, opts) { - if (opts === void 0) { - opts = {}; - } - var key = JSON.stringify([locString, opts]); - var dtf = intlDTCache[key]; - if (!dtf) { - dtf = new Intl.DateTimeFormat(locString, opts); - intlDTCache[key] = dtf; - } - return dtf; - } - var intlNumCache = {}; - function getCachedINF(locString, opts) { - if (opts === void 0) { - opts = {}; - } - var key = JSON.stringify([locString, opts]); - var inf = intlNumCache[key]; - if (!inf) { - inf = new Intl.NumberFormat(locString, opts); - intlNumCache[key] = inf; - } - return inf; - } - var intlRelCache = {}; - function getCachedRTF(locString, opts) { - if (opts === void 0) { - opts = {}; - } - var _opts = opts; - _opts.base; - var cacheKeyOpts = _objectWithoutPropertiesLoose(_opts, _excluded); - var key = JSON.stringify([locString, cacheKeyOpts]); - var inf = intlRelCache[key]; - if (!inf) { - inf = new Intl.RelativeTimeFormat(locString, opts); - intlRelCache[key] = inf; - } - return inf; - } - var sysLocaleCache = null; - function systemLocale() { - if (sysLocaleCache) { - return sysLocaleCache; - } else { - sysLocaleCache = new Intl.DateTimeFormat().resolvedOptions().locale; - return sysLocaleCache; + return this; } - } - function parseLocaleString(localeStr) { - var uIndex = localeStr.indexOf("-u-"); - if (uIndex === -1) { - return [localeStr]; - } else { - var options; - var smaller = localeStr.substring(0, uIndex); - try { - options = getCachedDTF(localeStr).resolvedOptions(); - } catch (e3) { - options = getCachedDTF(smaller).resolvedOptions(); + function stringSet(units, value) { + if (typeof units === "object") { + units = normalizeObjectUnits(units); + var prioritized = getPrioritizedUnits(units), i3; + for (i3 = 0; i3 < prioritized.length; i3++) { + this[prioritized[i3].unit](units[prioritized[i3].unit]); + } + } else { + units = normalizeUnits(units); + if (isFunction(this[units])) { + return this[units](value); + } } - var _options = options, numberingSystem = _options.numberingSystem, calendar = _options.calendar; - return [smaller, numberingSystem, calendar]; + return this; } - } - function intlConfigString(localeStr, numberingSystem, outputCalendar) { - if (outputCalendar || numberingSystem) { - localeStr += "-u"; - if (outputCalendar) { - localeStr += "-ca-" + outputCalendar; + var match1 = /\d/, match2 = /\d\d/, match3 = /\d{3}/, match4 = /\d{4}/, match6 = /[+-]?\d{6}/, match1to2 = /\d\d?/, match3to4 = /\d\d\d\d?/, match5to6 = /\d\d\d\d\d\d?/, match1to3 = /\d{1,3}/, match1to4 = /\d{1,4}/, match1to6 = /[+-]?\d{1,6}/, matchUnsigned = /\d+/, matchSigned = /[+-]?\d+/, matchOffset = /Z|[+-]\d\d:?\d\d/gi, matchShortOffset = /Z|[+-]\d\d(?::?\d\d)?/gi, matchTimestamp = /[+-]?\d+(\.\d{1,3})?/, matchWord = /[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i, regexes; + regexes = {}; + function addRegexToken(token2, regex, strictRegex) { + regexes[token2] = isFunction(regex) ? regex : function(isStrict, localeData2) { + return isStrict && strictRegex ? strictRegex : regex; + }; + } + function getParseRegexForToken(token2, config2) { + if (!hasOwnProp(regexes, token2)) { + return new RegExp(unescapeFormat(token2)); } - if (numberingSystem) { - localeStr += "-nu-" + numberingSystem; + return regexes[token2](config2._strict, config2._locale); + } + function unescapeFormat(s4) { + return regexEscape(s4.replace("\\", "").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g, function(matched, p1, p22, p3, p4) { + return p1 || p22 || p3 || p4; + })); + } + function regexEscape(s4) { + return s4.replace(/[-\/\\^$*+?.()|[\]{}]/g, "\\$&"); + } + var tokens = {}; + function addParseToken(token2, callback) { + var i3, func = callback; + if (typeof token2 === "string") { + token2 = [token2]; + } + if (isNumber2(callback)) { + func = function(input, array) { + array[callback] = toInt(input); + }; + } + for (i3 = 0; i3 < token2.length; i3++) { + tokens[token2[i3]] = func; } - return localeStr; - } else { - return localeStr; } - } - function mapMonths(f3) { - var ms = []; - for (var i3 = 1; i3 <= 12; i3++) { - var dt = DateTime3.utc(2016, i3, 1); - ms.push(f3(dt)); + function addWeekParseToken(token2, callback) { + addParseToken(token2, function(input, array, config2, token3) { + config2._w = config2._w || {}; + callback(input, config2._w, config2, token3); + }); } - return ms; - } - function mapWeekdays(f3) { - var ms = []; - for (var i3 = 1; i3 <= 7; i3++) { - var dt = DateTime3.utc(2016, 11, 13 + i3); - ms.push(f3(dt)); + function addTimeToArrayFromToken(token2, input, config2) { + if (input != null && hasOwnProp(tokens, token2)) { + tokens[token2](input, config2._a, config2, token2); + } } - return ms; - } - function listStuff(loc, length, defaultOK, englishFn, intlFn) { - var mode = loc.listingMode(defaultOK); - if (mode === "error") { - return null; - } else if (mode === "en") { - return englishFn(length); - } else { - return intlFn(length); + var YEAR = 0, MONTH = 1, DATE = 2, HOUR = 3, MINUTE = 4, SECOND = 5, MILLISECOND = 6, WEEK = 7, WEEKDAY = 8; + function mod(n3, x4) { + return (n3 % x4 + x4) % x4; } - } - function supportsFastNumbers(loc) { - if (loc.numberingSystem && loc.numberingSystem !== "latn") { - return false; + var indexOf; + if (Array.prototype.indexOf) { + indexOf = Array.prototype.indexOf; } else { - return loc.numberingSystem === "latn" || !loc.locale || loc.locale.startsWith("en") || new Intl.DateTimeFormat(loc.intl).resolvedOptions().numberingSystem === "latn"; - } - } - var PolyNumberFormatter = /* @__PURE__ */ function() { - function PolyNumberFormatter2(intl, forceSimple, opts) { - this.padTo = opts.padTo || 0; - this.floor = opts.floor || false; - opts.padTo; - opts.floor; - var otherOpts = _objectWithoutPropertiesLoose(opts, _excluded2); - if (!forceSimple || Object.keys(otherOpts).length > 0) { - var intlOpts = _extends({ - useGrouping: false - }, opts); - if (opts.padTo > 0) - intlOpts.minimumIntegerDigits = opts.padTo; - this.inf = getCachedINF(intl, intlOpts); - } - } - var _proto = PolyNumberFormatter2.prototype; - _proto.format = function format(i3) { - if (this.inf) { - var fixed = this.floor ? Math.floor(i3) : i3; - return this.inf.format(fixed); - } else { - var _fixed = this.floor ? Math.floor(i3) : roundTo(i3, 3); - return padStart2(_fixed, this.padTo); - } - }; - return PolyNumberFormatter2; - }(); - var PolyDateFormatter = /* @__PURE__ */ function() { - function PolyDateFormatter2(dt, intl, opts) { - this.opts = opts; - var z3; - if (dt.zone.isUniversal) { - var gmtOffset = -1 * (dt.offset / 60); - var offsetZ = gmtOffset >= 0 ? "Etc/GMT+" + gmtOffset : "Etc/GMT" + gmtOffset; - if (dt.offset !== 0 && IANAZone.create(offsetZ).valid) { - z3 = offsetZ; - this.dt = dt; - } else { - z3 = "UTC"; - if (opts.timeZoneName) { - this.dt = dt; - } else { - this.dt = dt.offset === 0 ? dt : DateTime3.fromMillis(dt.ts + dt.offset * 60 * 1e3); + indexOf = function(o2) { + var i3; + for (i3 = 0; i3 < this.length; ++i3) { + if (this[i3] === o2) { + return i3; } } - } else if (dt.zone.type === "system") { - this.dt = dt; - } else { - this.dt = dt; - z3 = dt.zone.name; - } - var intlOpts = _extends({}, this.opts); - if (z3) { - intlOpts.timeZone = z3; - } - this.dtf = getCachedDTF(intl, intlOpts); + return -1; + }; } - var _proto2 = PolyDateFormatter2.prototype; - _proto2.format = function format() { - return this.dtf.format(this.dt.toJSDate()); - }; - _proto2.formatToParts = function formatToParts() { - return this.dtf.formatToParts(this.dt.toJSDate()); - }; - _proto2.resolvedOptions = function resolvedOptions() { - return this.dtf.resolvedOptions(); - }; - return PolyDateFormatter2; - }(); - var PolyRelFormatter = /* @__PURE__ */ function() { - function PolyRelFormatter2(intl, isEnglish, opts) { - this.opts = _extends({ - style: "long" - }, opts); - if (!isEnglish && hasRelative()) { - this.rtf = getCachedRTF(intl, opts); - } - } - var _proto3 = PolyRelFormatter2.prototype; - _proto3.format = function format(count, unit) { - if (this.rtf) { - return this.rtf.format(count, unit); - } else { - return formatRelativeTime(unit, count, this.opts.numeric, this.opts.style !== "long"); + function daysInMonth2(year, month) { + if (isNaN(year) || isNaN(month)) { + return NaN; } - }; - _proto3.formatToParts = function formatToParts(count, unit) { - if (this.rtf) { - return this.rtf.formatToParts(count, unit); + var modMonth = mod(month, 12); + year += (month - modMonth) / 12; + return modMonth === 1 ? isLeapYear2(year) ? 29 : 28 : 31 - modMonth % 7 % 2; + } + addFormatToken("M", ["MM", 2], "Mo", function() { + return this.month() + 1; + }); + addFormatToken("MMM", 0, 0, function(format2) { + return this.localeData().monthsShort(this, format2); + }); + addFormatToken("MMMM", 0, 0, function(format2) { + return this.localeData().months(this, format2); + }); + addUnitAlias("month", "M"); + addUnitPriority("month", 8); + addRegexToken("M", match1to2); + addRegexToken("MM", match1to2, match2); + addRegexToken("MMM", function(isStrict, locale2) { + return locale2.monthsShortRegex(isStrict); + }); + addRegexToken("MMMM", function(isStrict, locale2) { + return locale2.monthsRegex(isStrict); + }); + addParseToken(["M", "MM"], function(input, array) { + array[MONTH] = toInt(input) - 1; + }); + addParseToken(["MMM", "MMMM"], function(input, array, config2, token2) { + var month = config2._locale.monthsParse(input, token2, config2._strict); + if (month != null) { + array[MONTH] = month; } else { - return []; + getParsingFlags(config2).invalidMonth = input; } - }; - return PolyRelFormatter2; - }(); - var Locale = /* @__PURE__ */ function() { - Locale2.fromOpts = function fromOpts(opts) { - return Locale2.create(opts.locale, opts.numberingSystem, opts.outputCalendar, opts.defaultToEN); - }; - Locale2.create = function create(locale, numberingSystem, outputCalendar, defaultToEN) { - if (defaultToEN === void 0) { - defaultToEN = false; - } - var specifiedLocale = locale || Settings.defaultLocale; - var localeR = specifiedLocale || (defaultToEN ? "en-US" : systemLocale()); - var numberingSystemR = numberingSystem || Settings.defaultNumberingSystem; - var outputCalendarR = outputCalendar || Settings.defaultOutputCalendar; - return new Locale2(localeR, numberingSystemR, outputCalendarR, specifiedLocale); - }; - Locale2.resetCache = function resetCache() { - sysLocaleCache = null; - intlDTCache = {}; - intlNumCache = {}; - intlRelCache = {}; - }; - Locale2.fromObject = function fromObject(_temp) { - var _ref = _temp === void 0 ? {} : _temp, locale = _ref.locale, numberingSystem = _ref.numberingSystem, outputCalendar = _ref.outputCalendar; - return Locale2.create(locale, numberingSystem, outputCalendar); - }; - function Locale2(locale, numbering, outputCalendar, specifiedLocale) { - var _parseLocaleString = parseLocaleString(locale), parsedLocale = _parseLocaleString[0], parsedNumberingSystem = _parseLocaleString[1], parsedOutputCalendar = _parseLocaleString[2]; - this.locale = parsedLocale; - this.numberingSystem = numbering || parsedNumberingSystem || null; - this.outputCalendar = outputCalendar || parsedOutputCalendar || null; - this.intl = intlConfigString(this.locale, this.numberingSystem, this.outputCalendar); - this.weekdaysCache = { - format: {}, - standalone: {} - }; - this.monthsCache = { - format: {}, - standalone: {} - }; - this.meridiemCache = null; - this.eraCache = {}; - this.specifiedLocale = specifiedLocale; - this.fastNumbersCached = null; - } - var _proto4 = Locale2.prototype; - _proto4.listingMode = function listingMode() { - var isActuallyEn = this.isEnglish(); - var hasNoWeirdness = (this.numberingSystem === null || this.numberingSystem === "latn") && (this.outputCalendar === null || this.outputCalendar === "gregory"); - return isActuallyEn && hasNoWeirdness ? "en" : "intl"; - }; - _proto4.clone = function clone2(alts) { - if (!alts || Object.getOwnPropertyNames(alts).length === 0) { - return this; + }); + var defaultLocaleMonths = "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), defaultLocaleMonthsShort = "Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"), MONTHS_IN_FORMAT = /D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/, defaultMonthsShortRegex = matchWord, defaultMonthsRegex = matchWord; + function localeMonths(m3, format2) { + if (!m3) { + return isArray(this._months) ? this._months : this._months["standalone"]; + } + return isArray(this._months) ? this._months[m3.month()] : this._months[(this._months.isFormat || MONTHS_IN_FORMAT).test(format2) ? "format" : "standalone"][m3.month()]; + } + function localeMonthsShort(m3, format2) { + if (!m3) { + return isArray(this._monthsShort) ? this._monthsShort : this._monthsShort["standalone"]; + } + return isArray(this._monthsShort) ? this._monthsShort[m3.month()] : this._monthsShort[MONTHS_IN_FORMAT.test(format2) ? "format" : "standalone"][m3.month()]; + } + function handleStrictParse(monthName, format2, strict) { + var i3, ii, mom, llc = monthName.toLocaleLowerCase(); + if (!this._monthsParse) { + this._monthsParse = []; + this._longMonthsParse = []; + this._shortMonthsParse = []; + for (i3 = 0; i3 < 12; ++i3) { + mom = createUTC([2e3, i3]); + this._shortMonthsParse[i3] = this.monthsShort(mom, "").toLocaleLowerCase(); + this._longMonthsParse[i3] = this.months(mom, "").toLocaleLowerCase(); + } + } + if (strict) { + if (format2 === "MMM") { + ii = indexOf.call(this._shortMonthsParse, llc); + return ii !== -1 ? ii : null; + } else { + ii = indexOf.call(this._longMonthsParse, llc); + return ii !== -1 ? ii : null; + } } else { - return Locale2.create(alts.locale || this.specifiedLocale, alts.numberingSystem || this.numberingSystem, alts.outputCalendar || this.outputCalendar, alts.defaultToEN || false); + if (format2 === "MMM") { + ii = indexOf.call(this._shortMonthsParse, llc); + if (ii !== -1) { + return ii; + } + ii = indexOf.call(this._longMonthsParse, llc); + return ii !== -1 ? ii : null; + } else { + ii = indexOf.call(this._longMonthsParse, llc); + if (ii !== -1) { + return ii; + } + ii = indexOf.call(this._shortMonthsParse, llc); + return ii !== -1 ? ii : null; + } } - }; - _proto4.redefaultToEN = function redefaultToEN(alts) { - if (alts === void 0) { - alts = {}; + } + function localeMonthsParse(monthName, format2, strict) { + var i3, mom, regex; + if (this._monthsParseExact) { + return handleStrictParse.call(this, monthName, format2, strict); } - return this.clone(_extends({}, alts, { - defaultToEN: true - })); - }; - _proto4.redefaultToSystem = function redefaultToSystem(alts) { - if (alts === void 0) { - alts = {}; + if (!this._monthsParse) { + this._monthsParse = []; + this._longMonthsParse = []; + this._shortMonthsParse = []; } - return this.clone(_extends({}, alts, { - defaultToEN: false - })); - }; - _proto4.months = function months$1(length, format, defaultOK) { - var _this = this; - if (format === void 0) { - format = false; - } - if (defaultOK === void 0) { - defaultOK = true; - } - return listStuff(this, length, defaultOK, months, function() { - var intl = format ? { - month: length, - day: "numeric" - } : { - month: length - }, formatStr = format ? "format" : "standalone"; - if (!_this.monthsCache[formatStr][length]) { - _this.monthsCache[formatStr][length] = mapMonths(function(dt) { - return _this.extract(dt, intl, "month"); - }); + for (i3 = 0; i3 < 12; i3++) { + mom = createUTC([2e3, i3]); + if (strict && !this._longMonthsParse[i3]) { + this._longMonthsParse[i3] = new RegExp("^" + this.months(mom, "").replace(".", "") + "$", "i"); + this._shortMonthsParse[i3] = new RegExp("^" + this.monthsShort(mom, "").replace(".", "") + "$", "i"); } - return _this.monthsCache[formatStr][length]; - }); - }; - _proto4.weekdays = function weekdays$1(length, format, defaultOK) { - var _this2 = this; - if (format === void 0) { - format = false; - } - if (defaultOK === void 0) { - defaultOK = true; - } - return listStuff(this, length, defaultOK, weekdays, function() { - var intl = format ? { - weekday: length, - year: "numeric", - month: "long", - day: "numeric" - } : { - weekday: length - }, formatStr = format ? "format" : "standalone"; - if (!_this2.weekdaysCache[formatStr][length]) { - _this2.weekdaysCache[formatStr][length] = mapWeekdays(function(dt) { - return _this2.extract(dt, intl, "weekday"); - }); - } - return _this2.weekdaysCache[formatStr][length]; - }); - }; - _proto4.meridiems = function meridiems$1(defaultOK) { - var _this3 = this; - if (defaultOK === void 0) { - defaultOK = true; - } - return listStuff(this, void 0, defaultOK, function() { - return meridiems; - }, function() { - if (!_this3.meridiemCache) { - var intl = { - hour: "numeric", - hourCycle: "h12" - }; - _this3.meridiemCache = [DateTime3.utc(2016, 11, 13, 9), DateTime3.utc(2016, 11, 13, 19)].map(function(dt) { - return _this3.extract(dt, intl, "dayperiod"); - }); + if (!strict && !this._monthsParse[i3]) { + regex = "^" + this.months(mom, "") + "|^" + this.monthsShort(mom, ""); + this._monthsParse[i3] = new RegExp(regex.replace(".", ""), "i"); } - return _this3.meridiemCache; - }); - }; - _proto4.eras = function eras$1(length, defaultOK) { - var _this4 = this; - if (defaultOK === void 0) { - defaultOK = true; - } - return listStuff(this, length, defaultOK, eras, function() { - var intl = { - era: length - }; - if (!_this4.eraCache[length]) { - _this4.eraCache[length] = [DateTime3.utc(-40, 1, 1), DateTime3.utc(2017, 1, 1)].map(function(dt) { - return _this4.extract(dt, intl, "era"); - }); + if (strict && format2 === "MMMM" && this._longMonthsParse[i3].test(monthName)) { + return i3; + } else if (strict && format2 === "MMM" && this._shortMonthsParse[i3].test(monthName)) { + return i3; + } else if (!strict && this._monthsParse[i3].test(monthName)) { + return i3; } - return _this4.eraCache[length]; - }); - }; - _proto4.extract = function extract(dt, intlOpts, field) { - var df = this.dtFormatter(dt, intlOpts), results = df.formatToParts(), matching = results.find(function(m2) { - return m2.type.toLowerCase() === field; - }); - return matching ? matching.value : null; - }; - _proto4.numberFormatter = function numberFormatter(opts) { - if (opts === void 0) { - opts = {}; } - return new PolyNumberFormatter(this.intl, opts.forceSimple || this.fastNumbers, opts); - }; - _proto4.dtFormatter = function dtFormatter(dt, intlOpts) { - if (intlOpts === void 0) { - intlOpts = {}; - } - return new PolyDateFormatter(dt, this.intl, intlOpts); - }; - _proto4.relFormatter = function relFormatter(opts) { - if (opts === void 0) { - opts = {}; - } - return new PolyRelFormatter(this.intl, this.isEnglish(), opts); - }; - _proto4.listFormatter = function listFormatter(opts) { - if (opts === void 0) { - opts = {}; + } + function setMonth(mom, value) { + var dayOfMonth; + if (!mom.isValid()) { + return mom; } - return getCachedLF(this.intl, opts); - }; - _proto4.isEnglish = function isEnglish() { - return this.locale === "en" || this.locale.toLowerCase() === "en-us" || new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us"); - }; - _proto4.equals = function equals(other) { - return this.locale === other.locale && this.numberingSystem === other.numberingSystem && this.outputCalendar === other.outputCalendar; - }; - _createClass(Locale2, [{ - key: "fastNumbers", - get: function get() { - if (this.fastNumbersCached == null) { - this.fastNumbersCached = supportsFastNumbers(this); + if (typeof value === "string") { + if (/^\d+$/.test(value)) { + value = toInt(value); + } else { + value = mom.localeData().monthsParse(value); + if (!isNumber2(value)) { + return mom; + } } - return this.fastNumbersCached; } - }]); - return Locale2; - }(); - function combineRegexes() { - for (var _len = arguments.length, regexes = new Array(_len), _key = 0; _key < _len; _key++) { - regexes[_key] = arguments[_key]; - } - var full = regexes.reduce(function(f3, r3) { - return f3 + r3.source; - }, ""); - return RegExp("^" + full + "$"); - } - function combineExtractors() { - for (var _len2 = arguments.length, extractors = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) { - extractors[_key2] = arguments[_key2]; - } - return function(m2) { - return extractors.reduce(function(_ref, ex) { - var mergedVals = _ref[0], mergedZone = _ref[1], cursor = _ref[2]; - var _ex = ex(m2, cursor), val = _ex[0], zone = _ex[1], next = _ex[2]; - return [_extends({}, mergedVals, val), mergedZone || zone, next]; - }, [{}, null, 1]).slice(0, 2); - }; - } - function parse4(s4) { - if (s4 == null) { - return [null, null]; + dayOfMonth = Math.min(mom.date(), daysInMonth2(mom.year(), value)); + mom._d["set" + (mom._isUTC ? "UTC" : "") + "Month"](value, dayOfMonth); + return mom; } - for (var _len3 = arguments.length, patterns = new Array(_len3 > 1 ? _len3 - 1 : 0), _key3 = 1; _key3 < _len3; _key3++) { - patterns[_key3 - 1] = arguments[_key3]; - } - for (var _i = 0, _patterns = patterns; _i < _patterns.length; _i++) { - var _patterns$_i = _patterns[_i], regex = _patterns$_i[0], extractor = _patterns$_i[1]; - var m2 = regex.exec(s4); - if (m2) { - return extractor(m2); + function getSetMonth(value) { + if (value != null) { + setMonth(this, value); + hooks.updateOffset(this, true); + return this; + } else { + return get(this, "Month"); } } - return [null, null]; - } - function simpleParse() { - for (var _len4 = arguments.length, keys = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) { - keys[_key4] = arguments[_key4]; + function getDaysInMonth() { + return daysInMonth2(this.year(), this.month()); } - return function(match2, cursor) { - var ret = {}; - var i3; - for (i3 = 0; i3 < keys.length; i3++) { - ret[keys[i3]] = parseInteger(match2[cursor + i3]); + function monthsShortRegex(isStrict) { + if (this._monthsParseExact) { + if (!hasOwnProp(this, "_monthsRegex")) { + computeMonthsParse.call(this); + } + if (isStrict) { + return this._monthsShortStrictRegex; + } else { + return this._monthsShortRegex; + } + } else { + if (!hasOwnProp(this, "_monthsShortRegex")) { + this._monthsShortRegex = defaultMonthsShortRegex; + } + return this._monthsShortStrictRegex && isStrict ? this._monthsShortStrictRegex : this._monthsShortRegex; } - return [ret, null, cursor + i3]; - }; - } - var offsetRegex = /(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/; - var isoTimeBaseRegex = /(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/; - var isoTimeRegex = RegExp("" + isoTimeBaseRegex.source + offsetRegex.source + "?"); - var isoTimeExtensionRegex = RegExp("(?:T" + isoTimeRegex.source + ")?"); - var isoYmdRegex = /([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/; - var isoWeekRegex = /(\d{4})-?W(\d\d)(?:-?(\d))?/; - var isoOrdinalRegex = /(\d{4})-?(\d{3})/; - var extractISOWeekData = simpleParse("weekYear", "weekNumber", "weekDay"); - var extractISOOrdinalData = simpleParse("year", "ordinal"); - var sqlYmdRegex = /(\d{4})-(\d\d)-(\d\d)/; - var sqlTimeRegex = RegExp(isoTimeBaseRegex.source + " ?(?:" + offsetRegex.source + "|(" + ianaRegex.source + "))?"); - var sqlTimeExtensionRegex = RegExp("(?: " + sqlTimeRegex.source + ")?"); - function int(match2, pos, fallback) { - var m2 = match2[pos]; - return isUndefined(m2) ? fallback : parseInteger(m2); - } - function extractISOYmd(match2, cursor) { - var item = { - year: int(match2, cursor), - month: int(match2, cursor + 1, 1), - day: int(match2, cursor + 2, 1) - }; - return [item, null, cursor + 3]; - } - function extractISOTime(match2, cursor) { - var item = { - hours: int(match2, cursor, 0), - minutes: int(match2, cursor + 1, 0), - seconds: int(match2, cursor + 2, 0), - milliseconds: parseMillis(match2[cursor + 3]) - }; - return [item, null, cursor + 4]; - } - function extractISOOffset(match2, cursor) { - var local = !match2[cursor] && !match2[cursor + 1], fullOffset = signedOffset(match2[cursor + 1], match2[cursor + 2]), zone = local ? null : FixedOffsetZone.instance(fullOffset); - return [{}, zone, cursor + 3]; - } - function extractIANAZone(match2, cursor) { - var zone = match2[cursor] ? IANAZone.create(match2[cursor]) : null; - return [{}, zone, cursor + 1]; - } - var isoTimeOnly = RegExp("^T?" + isoTimeBaseRegex.source + "$"); - var isoDuration = /^-?P(?:(?:(-?\d{1,9}(?:\.\d{1,9})?)Y)?(?:(-?\d{1,9}(?:\.\d{1,9})?)M)?(?:(-?\d{1,9}(?:\.\d{1,9})?)W)?(?:(-?\d{1,9}(?:\.\d{1,9})?)D)?(?:T(?:(-?\d{1,9}(?:\.\d{1,9})?)H)?(?:(-?\d{1,9}(?:\.\d{1,9})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,9}))?S)?)?)$/; - function extractISODuration(match2) { - var s4 = match2[0], yearStr = match2[1], monthStr = match2[2], weekStr = match2[3], dayStr = match2[4], hourStr = match2[5], minuteStr = match2[6], secondStr = match2[7], millisecondsStr = match2[8]; - var hasNegativePrefix = s4[0] === "-"; - var negativeSeconds = secondStr && secondStr[0] === "-"; - var maybeNegate = function maybeNegate2(num, force) { - if (force === void 0) { - force = false; - } - return num !== void 0 && (force || num && hasNegativePrefix) ? -num : num; - }; - return [{ - years: maybeNegate(parseFloating(yearStr)), - months: maybeNegate(parseFloating(monthStr)), - weeks: maybeNegate(parseFloating(weekStr)), - days: maybeNegate(parseFloating(dayStr)), - hours: maybeNegate(parseFloating(hourStr)), - minutes: maybeNegate(parseFloating(minuteStr)), - seconds: maybeNegate(parseFloating(secondStr), secondStr === "-0"), - milliseconds: maybeNegate(parseMillis(millisecondsStr), negativeSeconds) - }]; - } - var obsOffsets = { - 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 fromStrings(weekdayStr, yearStr, monthStr, dayStr, hourStr, minuteStr, secondStr) { - var result = { - year: yearStr.length === 2 ? untruncateYear(parseInteger(yearStr)) : parseInteger(yearStr), - month: monthsShort.indexOf(monthStr) + 1, - day: parseInteger(dayStr), - hour: parseInteger(hourStr), - minute: parseInteger(minuteStr) - }; - if (secondStr) - result.second = parseInteger(secondStr); - if (weekdayStr) { - result.weekday = weekdayStr.length > 3 ? weekdaysLong.indexOf(weekdayStr) + 1 : weekdaysShort.indexOf(weekdayStr) + 1; } - return result; - } - var rfc2822 = /^(?:(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\d)(\d\d)))$/; - function extractRFC2822(match2) { - var weekdayStr = match2[1], dayStr = match2[2], monthStr = match2[3], yearStr = match2[4], hourStr = match2[5], minuteStr = match2[6], secondStr = match2[7], obsOffset = match2[8], milOffset = match2[9], offHourStr = match2[10], offMinuteStr = match2[11], result = fromStrings(weekdayStr, yearStr, monthStr, dayStr, hourStr, minuteStr, secondStr); - var offset2; - if (obsOffset) { - offset2 = obsOffsets[obsOffset]; - } else if (milOffset) { - offset2 = 0; - } else { - offset2 = signedOffset(offHourStr, offMinuteStr); - } - return [result, new FixedOffsetZone(offset2)]; - } - function preprocessRFC2822(s4) { - return s4.replace(/\([^)]*\)|[\n\t]/g, " ").replace(/(\s\s+)/g, " ").trim(); - } - var rfc1123 = /^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/; - var rfc850 = /^(Monday|Tuesday|Wedsday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/; - var ascii = /^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/; - function extractRFC1123Or850(match2) { - var weekdayStr = match2[1], dayStr = match2[2], monthStr = match2[3], yearStr = match2[4], hourStr = match2[5], minuteStr = match2[6], secondStr = match2[7], result = fromStrings(weekdayStr, yearStr, monthStr, dayStr, hourStr, minuteStr, secondStr); - return [result, FixedOffsetZone.utcInstance]; - } - function extractASCII(match2) { - var weekdayStr = match2[1], monthStr = match2[2], dayStr = match2[3], hourStr = match2[4], minuteStr = match2[5], secondStr = match2[6], yearStr = match2[7], result = fromStrings(weekdayStr, yearStr, monthStr, dayStr, hourStr, minuteStr, secondStr); - return [result, FixedOffsetZone.utcInstance]; - } - var isoYmdWithTimeExtensionRegex = combineRegexes(isoYmdRegex, isoTimeExtensionRegex); - var isoWeekWithTimeExtensionRegex = combineRegexes(isoWeekRegex, isoTimeExtensionRegex); - var isoOrdinalWithTimeExtensionRegex = combineRegexes(isoOrdinalRegex, isoTimeExtensionRegex); - var isoTimeCombinedRegex = combineRegexes(isoTimeRegex); - var extractISOYmdTimeAndOffset = combineExtractors(extractISOYmd, extractISOTime, extractISOOffset); - var extractISOWeekTimeAndOffset = combineExtractors(extractISOWeekData, extractISOTime, extractISOOffset); - var extractISOOrdinalDateAndTime = combineExtractors(extractISOOrdinalData, extractISOTime, extractISOOffset); - var extractISOTimeAndOffset = combineExtractors(extractISOTime, extractISOOffset); - function parseISODate(s4) { - return parse4(s4, [isoYmdWithTimeExtensionRegex, extractISOYmdTimeAndOffset], [isoWeekWithTimeExtensionRegex, extractISOWeekTimeAndOffset], [isoOrdinalWithTimeExtensionRegex, extractISOOrdinalDateAndTime], [isoTimeCombinedRegex, extractISOTimeAndOffset]); - } - function parseRFC2822Date(s4) { - return parse4(preprocessRFC2822(s4), [rfc2822, extractRFC2822]); - } - function parseHTTPDate(s4) { - return parse4(s4, [rfc1123, extractRFC1123Or850], [rfc850, extractRFC1123Or850], [ascii, extractASCII]); - } - function parseISODuration(s4) { - return parse4(s4, [isoDuration, extractISODuration]); - } - var extractISOTimeOnly = combineExtractors(extractISOTime); - function parseISOTimeOnly(s4) { - return parse4(s4, [isoTimeOnly, extractISOTimeOnly]); - } - var sqlYmdWithTimeExtensionRegex = combineRegexes(sqlYmdRegex, sqlTimeExtensionRegex); - var sqlTimeCombinedRegex = combineRegexes(sqlTimeRegex); - var extractISOYmdTimeOffsetAndIANAZone = combineExtractors(extractISOYmd, extractISOTime, extractISOOffset, extractIANAZone); - var extractISOTimeOffsetAndIANAZone = combineExtractors(extractISOTime, extractISOOffset, extractIANAZone); - function parseSQL(s4) { - return parse4(s4, [sqlYmdWithTimeExtensionRegex, extractISOYmdTimeOffsetAndIANAZone], [sqlTimeCombinedRegex, extractISOTimeOffsetAndIANAZone]); - } - var INVALID$2 = "Invalid Duration"; - var lowOrderMatrix = { - weeks: { - days: 7, - hours: 7 * 24, - minutes: 7 * 24 * 60, - seconds: 7 * 24 * 60 * 60, - milliseconds: 7 * 24 * 60 * 60 * 1e3 - }, - days: { - hours: 24, - minutes: 24 * 60, - seconds: 24 * 60 * 60, - milliseconds: 24 * 60 * 60 * 1e3 - }, - hours: { - minutes: 60, - seconds: 60 * 60, - milliseconds: 60 * 60 * 1e3 - }, - minutes: { - seconds: 60, - milliseconds: 60 * 1e3 - }, - seconds: { - milliseconds: 1e3 + function monthsRegex(isStrict) { + if (this._monthsParseExact) { + if (!hasOwnProp(this, "_monthsRegex")) { + computeMonthsParse.call(this); + } + if (isStrict) { + return this._monthsStrictRegex; + } else { + return this._monthsRegex; + } + } else { + if (!hasOwnProp(this, "_monthsRegex")) { + this._monthsRegex = defaultMonthsRegex; + } + return this._monthsStrictRegex && isStrict ? this._monthsStrictRegex : this._monthsRegex; + } + } + function computeMonthsParse() { + function cmpLenRev(a3, b3) { + return b3.length - a3.length; + } + var shortPieces = [], longPieces = [], mixedPieces = [], i3, mom; + for (i3 = 0; i3 < 12; i3++) { + mom = createUTC([2e3, i3]); + shortPieces.push(this.monthsShort(mom, "")); + longPieces.push(this.months(mom, "")); + mixedPieces.push(this.months(mom, "")); + mixedPieces.push(this.monthsShort(mom, "")); + } + shortPieces.sort(cmpLenRev); + longPieces.sort(cmpLenRev); + mixedPieces.sort(cmpLenRev); + for (i3 = 0; i3 < 12; i3++) { + shortPieces[i3] = regexEscape(shortPieces[i3]); + longPieces[i3] = regexEscape(longPieces[i3]); + } + for (i3 = 0; i3 < 24; i3++) { + mixedPieces[i3] = regexEscape(mixedPieces[i3]); + } + this._monthsRegex = new RegExp("^(" + mixedPieces.join("|") + ")", "i"); + this._monthsShortRegex = this._monthsRegex; + this._monthsStrictRegex = new RegExp("^(" + longPieces.join("|") + ")", "i"); + this._monthsShortStrictRegex = new RegExp("^(" + shortPieces.join("|") + ")", "i"); + } + addFormatToken("Y", 0, 0, function() { + var y3 = this.year(); + return y3 <= 9999 ? zeroFill(y3, 4) : "+" + y3; + }); + addFormatToken(0, ["YY", 2], 0, function() { + return this.year() % 100; + }); + addFormatToken(0, ["YYYY", 4], 0, "year"); + addFormatToken(0, ["YYYYY", 5], 0, "year"); + addFormatToken(0, ["YYYYYY", 6, true], 0, "year"); + addUnitAlias("year", "y"); + addUnitPriority("year", 1); + addRegexToken("Y", matchSigned); + addRegexToken("YY", match1to2, match2); + addRegexToken("YYYY", match1to4, match4); + addRegexToken("YYYYY", match1to6, match6); + addRegexToken("YYYYYY", match1to6, match6); + addParseToken(["YYYYY", "YYYYYY"], YEAR); + addParseToken("YYYY", function(input, array) { + array[YEAR] = input.length === 2 ? hooks.parseTwoDigitYear(input) : toInt(input); + }); + addParseToken("YY", function(input, array) { + array[YEAR] = hooks.parseTwoDigitYear(input); + }); + addParseToken("Y", function(input, array) { + array[YEAR] = parseInt(input, 10); + }); + function daysInYear2(year) { + return isLeapYear2(year) ? 366 : 365; } - }; - var casualMatrix = _extends({ - years: { - quarters: 4, - months: 12, - weeks: 52, - days: 365, - hours: 365 * 24, - minutes: 365 * 24 * 60, - seconds: 365 * 24 * 60 * 60, - milliseconds: 365 * 24 * 60 * 60 * 1e3 - }, - quarters: { - months: 3, - weeks: 13, - days: 91, - hours: 91 * 24, - minutes: 91 * 24 * 60, - seconds: 91 * 24 * 60 * 60, - milliseconds: 91 * 24 * 60 * 60 * 1e3 - }, - months: { - weeks: 4, - days: 30, - hours: 30 * 24, - minutes: 30 * 24 * 60, - seconds: 30 * 24 * 60 * 60, - milliseconds: 30 * 24 * 60 * 60 * 1e3 - } - }, lowOrderMatrix); - var daysInYearAccurate = 146097 / 400; - var daysInMonthAccurate = 146097 / 4800; - var accurateMatrix = _extends({ - years: { - quarters: 4, - months: 12, - weeks: daysInYearAccurate / 7, - days: daysInYearAccurate, - hours: daysInYearAccurate * 24, - minutes: daysInYearAccurate * 24 * 60, - seconds: daysInYearAccurate * 24 * 60 * 60, - milliseconds: daysInYearAccurate * 24 * 60 * 60 * 1e3 - }, - quarters: { - months: 3, - weeks: daysInYearAccurate / 28, - days: daysInYearAccurate / 4, - hours: daysInYearAccurate * 24 / 4, - minutes: daysInYearAccurate * 24 * 60 / 4, - seconds: daysInYearAccurate * 24 * 60 * 60 / 4, - milliseconds: daysInYearAccurate * 24 * 60 * 60 * 1e3 / 4 - }, - months: { - weeks: daysInMonthAccurate / 7, - days: daysInMonthAccurate, - hours: daysInMonthAccurate * 24, - minutes: daysInMonthAccurate * 24 * 60, - seconds: daysInMonthAccurate * 24 * 60 * 60, - milliseconds: daysInMonthAccurate * 24 * 60 * 60 * 1e3 - } - }, lowOrderMatrix); - var orderedUnits$1 = ["years", "quarters", "months", "weeks", "days", "hours", "minutes", "seconds", "milliseconds"]; - var reverseUnits = orderedUnits$1.slice(0).reverse(); - function clone$1(dur, alts, clear) { - if (clear === void 0) { - clear = false; - } - var conf = { - values: clear ? alts.values : _extends({}, dur.values, alts.values || {}), - loc: dur.loc.clone(alts.loc), - conversionAccuracy: alts.conversionAccuracy || dur.conversionAccuracy + hooks.parseTwoDigitYear = function(input) { + return toInt(input) + (toInt(input) > 68 ? 1900 : 2e3); }; - return new Duration3(conf); - } - function antiTrunc(n3) { - return n3 < 0 ? Math.floor(n3) : Math.ceil(n3); - } - function convert(matrix, fromMap, fromUnit, toMap, toUnit) { - var conv = matrix[toUnit][fromUnit], raw = fromMap[fromUnit] / conv, sameSign = Math.sign(raw) === Math.sign(toMap[toUnit]), added = !sameSign && toMap[toUnit] !== 0 && Math.abs(raw) <= 1 ? antiTrunc(raw) : Math.trunc(raw); - toMap[toUnit] += added; - fromMap[fromUnit] -= added * conv; - } - function normalizeValues(matrix, vals) { - reverseUnits.reduce(function(previous, current) { - if (!isUndefined(vals[current])) { - if (previous) { - convert(matrix, vals, previous, vals, current); + var getSetYear = makeGetSet("FullYear", true); + function getIsLeapYear() { + return isLeapYear2(this.year()); + } + function createDate(y3, m3, d2, h3, M2, s4, ms) { + var date; + if (y3 < 100 && y3 >= 0) { + date = new Date(y3 + 400, m3, d2, h3, M2, s4, ms); + if (isFinite(date.getFullYear())) { + date.setFullYear(y3); } - return current; } else { - return previous; - } - }, null); - } - var Duration3 = /* @__PURE__ */ function() { - function Duration4(config2) { - var accurate = config2.conversionAccuracy === "longterm" || false; - this.values = config2.values; - this.loc = config2.loc || Locale.create(); - this.conversionAccuracy = accurate ? "longterm" : "casual"; - this.invalid = config2.invalid || null; - this.matrix = accurate ? accurateMatrix : casualMatrix; - this.isLuxonDuration = true; - } - Duration4.fromMillis = function fromMillis(count, opts) { - return Duration4.fromObject({ - milliseconds: count - }, opts); - }; - Duration4.fromObject = function fromObject(obj, opts) { - if (opts === void 0) { - opts = {}; + date = new Date(y3, m3, d2, h3, M2, s4, ms); } - if (obj == null || typeof obj !== "object") { - throw new InvalidArgumentError("Duration.fromObject: argument expected to be an object, got " + (obj === null ? "null" : typeof obj)); - } - return new Duration4({ - values: normalizeObject(obj, Duration4.normalizeUnit), - loc: Locale.fromObject(opts), - conversionAccuracy: opts.conversionAccuracy - }); - }; - Duration4.fromDurationLike = function fromDurationLike(durationLike) { - if (isNumber(durationLike)) { - return Duration4.fromMillis(durationLike); - } else if (Duration4.isDuration(durationLike)) { - return durationLike; - } else if (typeof durationLike === "object") { - return Duration4.fromObject(durationLike); + return date; + } + function createUTCDate(y3) { + var date, args; + if (y3 < 100 && y3 >= 0) { + args = Array.prototype.slice.call(arguments); + args[0] = y3 + 400; + date = new Date(Date.UTC.apply(null, args)); + if (isFinite(date.getUTCFullYear())) { + date.setUTCFullYear(y3); + } + } else { + date = new Date(Date.UTC.apply(null, arguments)); + } + return date; + } + function firstWeekOffset2(year, dow, doy) { + var fwd = 7 + dow - doy, fwdlw = (7 + createUTCDate(year, 0, fwd).getUTCDay() - dow) % 7; + return -fwdlw + fwd - 1; + } + function dayOfYearFromWeeks(year, week, weekday, dow, doy) { + var localWeekday = (7 + weekday - dow) % 7, weekOffset = firstWeekOffset2(year, dow, doy), dayOfYear = 1 + 7 * (week - 1) + localWeekday + weekOffset, resYear, resDayOfYear; + if (dayOfYear <= 0) { + resYear = year - 1; + resDayOfYear = daysInYear2(resYear) + dayOfYear; + } else if (dayOfYear > daysInYear2(year)) { + resYear = year + 1; + resDayOfYear = dayOfYear - daysInYear2(year); } else { - throw new InvalidArgumentError("Unknown duration argument " + durationLike + " of type " + typeof durationLike); + resYear = year; + resDayOfYear = dayOfYear; } - }; - Duration4.fromISO = function fromISO(text, opts) { - var _parseISODuration = parseISODuration(text), parsed = _parseISODuration[0]; - if (parsed) { - return Duration4.fromObject(parsed, opts); + return { + year: resYear, + dayOfYear: resDayOfYear + }; + } + function weekOfYear2(mom, dow, doy) { + var weekOffset = firstWeekOffset2(mom.year(), dow, doy), week = Math.floor((mom.dayOfYear() - weekOffset - 1) / 7) + 1, resWeek, resYear; + if (week < 1) { + resYear = mom.year() - 1; + resWeek = week + weeksInYear(resYear, dow, doy); + } else if (week > weeksInYear(mom.year(), dow, doy)) { + resWeek = week - weeksInYear(mom.year(), dow, doy); + resYear = mom.year() + 1; } else { - return Duration4.invalid("unparsable", 'the input "' + text + `" can't be parsed as ISO 8601`); + resYear = mom.year(); + resWeek = week; } + return { + week: resWeek, + year: resYear + }; + } + function weeksInYear(year, dow, doy) { + var weekOffset = firstWeekOffset2(year, dow, doy), weekOffsetNext = firstWeekOffset2(year + 1, dow, doy); + return (daysInYear2(year) - weekOffset + weekOffsetNext) / 7; + } + addFormatToken("w", ["ww", 2], "wo", "week"); + addFormatToken("W", ["WW", 2], "Wo", "isoWeek"); + addUnitAlias("week", "w"); + addUnitAlias("isoWeek", "W"); + addUnitPriority("week", 5); + addUnitPriority("isoWeek", 5); + addRegexToken("w", match1to2); + addRegexToken("ww", match1to2, match2); + addRegexToken("W", match1to2); + addRegexToken("WW", match1to2, match2); + addWeekParseToken(["w", "ww", "W", "WW"], function(input, week, config2, token2) { + week[token2.substr(0, 1)] = toInt(input); + }); + function localeWeek(mom) { + return weekOfYear2(mom, this._week.dow, this._week.doy).week; + } + var defaultLocaleWeek = { + dow: 0, + doy: 6 }; - Duration4.fromISOTime = function fromISOTime(text, opts) { - var _parseISOTimeOnly = parseISOTimeOnly(text), parsed = _parseISOTimeOnly[0]; - if (parsed) { - return Duration4.fromObject(parsed, opts); + function localeFirstDayOfWeek() { + return this._week.dow; + } + function localeFirstDayOfYear() { + return this._week.doy; + } + function getSetWeek(input) { + var week = this.localeData().week(this); + return input == null ? week : this.add((input - week) * 7, "d"); + } + function getSetISOWeek(input) { + var week = weekOfYear2(this, 1, 4).week; + return input == null ? week : this.add((input - week) * 7, "d"); + } + addFormatToken("d", 0, "do", "day"); + addFormatToken("dd", 0, 0, function(format2) { + return this.localeData().weekdaysMin(this, format2); + }); + addFormatToken("ddd", 0, 0, function(format2) { + return this.localeData().weekdaysShort(this, format2); + }); + addFormatToken("dddd", 0, 0, function(format2) { + return this.localeData().weekdays(this, format2); + }); + addFormatToken("e", 0, 0, "weekday"); + addFormatToken("E", 0, 0, "isoWeekday"); + addUnitAlias("day", "d"); + addUnitAlias("weekday", "e"); + addUnitAlias("isoWeekday", "E"); + addUnitPriority("day", 11); + addUnitPriority("weekday", 11); + addUnitPriority("isoWeekday", 11); + addRegexToken("d", match1to2); + addRegexToken("e", match1to2); + addRegexToken("E", match1to2); + addRegexToken("dd", function(isStrict, locale2) { + return locale2.weekdaysMinRegex(isStrict); + }); + addRegexToken("ddd", function(isStrict, locale2) { + return locale2.weekdaysShortRegex(isStrict); + }); + addRegexToken("dddd", function(isStrict, locale2) { + return locale2.weekdaysRegex(isStrict); + }); + addWeekParseToken(["dd", "ddd", "dddd"], function(input, week, config2, token2) { + var weekday = config2._locale.weekdaysParse(input, token2, config2._strict); + if (weekday != null) { + week.d = weekday; } else { - return Duration4.invalid("unparsable", 'the input "' + text + `" can't be parsed as ISO 8601`); + getParsingFlags(config2).invalidWeekday = input; } - }; - Duration4.invalid = function invalid(reason, explanation) { - if (explanation === void 0) { - explanation = null; + }); + addWeekParseToken(["d", "e", "E"], function(input, week, config2, token2) { + week[token2] = toInt(input); + }); + function parseWeekday(input, locale2) { + if (typeof input !== "string") { + return input; } - if (!reason) { - throw new InvalidArgumentError("need to specify a reason the Duration is invalid"); + if (!isNaN(input)) { + return parseInt(input, 10); } - var invalid2 = reason instanceof Invalid ? reason : new Invalid(reason, explanation); - if (Settings.throwOnInvalid) { - throw new InvalidDurationError(invalid2); + input = locale2.weekdaysParse(input); + if (typeof input === "number") { + return input; + } + return null; + } + function parseIsoWeekday(input, locale2) { + if (typeof input === "string") { + return locale2.weekdaysParse(input) % 7 || 7; + } + return isNaN(input) ? null : input; + } + function shiftWeekdays(ws, n3) { + return ws.slice(n3, 7).concat(ws.slice(0, n3)); + } + var defaultLocaleWeekdays = "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), defaultLocaleWeekdaysShort = "Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"), defaultLocaleWeekdaysMin = "Su_Mo_Tu_We_Th_Fr_Sa".split("_"), defaultWeekdaysRegex = matchWord, defaultWeekdaysShortRegex = matchWord, defaultWeekdaysMinRegex = matchWord; + function localeWeekdays(m3, format2) { + var weekdays2 = isArray(this._weekdays) ? this._weekdays : this._weekdays[m3 && m3 !== true && this._weekdays.isFormat.test(format2) ? "format" : "standalone"]; + return m3 === true ? shiftWeekdays(weekdays2, this._week.dow) : m3 ? weekdays2[m3.day()] : weekdays2; + } + function localeWeekdaysShort(m3) { + return m3 === true ? shiftWeekdays(this._weekdaysShort, this._week.dow) : m3 ? this._weekdaysShort[m3.day()] : this._weekdaysShort; + } + function localeWeekdaysMin(m3) { + return m3 === true ? shiftWeekdays(this._weekdaysMin, this._week.dow) : m3 ? this._weekdaysMin[m3.day()] : this._weekdaysMin; + } + function handleStrictParse$1(weekdayName, format2, strict) { + var i3, ii, mom, llc = weekdayName.toLocaleLowerCase(); + if (!this._weekdaysParse) { + this._weekdaysParse = []; + this._shortWeekdaysParse = []; + this._minWeekdaysParse = []; + for (i3 = 0; i3 < 7; ++i3) { + mom = createUTC([2e3, 1]).day(i3); + this._minWeekdaysParse[i3] = this.weekdaysMin(mom, "").toLocaleLowerCase(); + this._shortWeekdaysParse[i3] = this.weekdaysShort(mom, "").toLocaleLowerCase(); + this._weekdaysParse[i3] = this.weekdays(mom, "").toLocaleLowerCase(); + } + } + if (strict) { + if (format2 === "dddd") { + ii = indexOf.call(this._weekdaysParse, llc); + return ii !== -1 ? ii : null; + } else if (format2 === "ddd") { + ii = indexOf.call(this._shortWeekdaysParse, llc); + return ii !== -1 ? ii : null; + } else { + ii = indexOf.call(this._minWeekdaysParse, llc); + return ii !== -1 ? ii : null; + } } else { - return new Duration4({ - invalid: invalid2 - }); + if (format2 === "dddd") { + ii = indexOf.call(this._weekdaysParse, llc); + if (ii !== -1) { + return ii; + } + ii = indexOf.call(this._shortWeekdaysParse, llc); + if (ii !== -1) { + return ii; + } + ii = indexOf.call(this._minWeekdaysParse, llc); + return ii !== -1 ? ii : null; + } else if (format2 === "ddd") { + ii = indexOf.call(this._shortWeekdaysParse, llc); + if (ii !== -1) { + return ii; + } + ii = indexOf.call(this._weekdaysParse, llc); + if (ii !== -1) { + return ii; + } + ii = indexOf.call(this._minWeekdaysParse, llc); + return ii !== -1 ? ii : null; + } else { + ii = indexOf.call(this._minWeekdaysParse, llc); + if (ii !== -1) { + return ii; + } + ii = indexOf.call(this._weekdaysParse, llc); + if (ii !== -1) { + return ii; + } + ii = indexOf.call(this._shortWeekdaysParse, llc); + return ii !== -1 ? ii : null; + } } - }; - Duration4.normalizeUnit = function normalizeUnit2(unit) { - var normalized = { - year: "years", - years: "years", - quarter: "quarters", - quarters: "quarters", - month: "months", - months: "months", - week: "weeks", - weeks: "weeks", - day: "days", - days: "days", - hour: "hours", - hours: "hours", - minute: "minutes", - minutes: "minutes", - second: "seconds", - seconds: "seconds", - millisecond: "milliseconds", - milliseconds: "milliseconds" - }[unit ? unit.toLowerCase() : unit]; - if (!normalized) - throw new InvalidUnitError(unit); - return normalized; - }; - Duration4.isDuration = function isDuration(o2) { - return o2 && o2.isLuxonDuration || false; - }; - var _proto = Duration4.prototype; - _proto.toFormat = function toFormat(fmt, opts) { - if (opts === void 0) { - opts = {}; + } + function localeWeekdaysParse(weekdayName, format2, strict) { + var i3, mom, regex; + if (this._weekdaysParseExact) { + return handleStrictParse$1.call(this, weekdayName, format2, strict); } - var fmtOpts = _extends({}, opts, { - floor: opts.round !== false && opts.floor !== false - }); - return this.isValid ? Formatter.create(this.loc, fmtOpts).formatDurationFromString(this, fmt) : INVALID$2; - }; - _proto.toHuman = function toHuman(opts) { - var _this = this; - if (opts === void 0) { - opts = {}; - } - var l4 = orderedUnits$1.map(function(unit) { - var val = _this.values[unit]; - if (isUndefined(val)) { - return null; - } - return _this.loc.numberFormatter(_extends({ - style: "unit", - unitDisplay: "long" - }, opts, { - unit: unit.slice(0, -1) - })).format(val); - }).filter(function(n3) { - return n3; - }); - return this.loc.listFormatter(_extends({ - type: "conjunction", - style: opts.listStyle || "narrow" - }, opts)).format(l4); - }; - _proto.toObject = function toObject() { - if (!this.isValid) - return {}; - return _extends({}, this.values); - }; - _proto.toISO = function toISO() { - if (!this.isValid) - return null; - var s4 = "P"; - if (this.years !== 0) - s4 += this.years + "Y"; - if (this.months !== 0 || this.quarters !== 0) - s4 += this.months + this.quarters * 3 + "M"; - if (this.weeks !== 0) - s4 += this.weeks + "W"; - if (this.days !== 0) - s4 += this.days + "D"; - if (this.hours !== 0 || this.minutes !== 0 || this.seconds !== 0 || this.milliseconds !== 0) - s4 += "T"; - if (this.hours !== 0) - s4 += this.hours + "H"; - if (this.minutes !== 0) - s4 += this.minutes + "M"; - if (this.seconds !== 0 || this.milliseconds !== 0) - s4 += roundTo(this.seconds + this.milliseconds / 1e3, 3) + "S"; - if (s4 === "P") - s4 += "T0S"; - return s4; - }; - _proto.toISOTime = function toISOTime(opts) { - if (opts === void 0) { - opts = {}; + if (!this._weekdaysParse) { + this._weekdaysParse = []; + this._minWeekdaysParse = []; + this._shortWeekdaysParse = []; + this._fullWeekdaysParse = []; } - if (!this.isValid) - return null; - var millis = this.toMillis(); - if (millis < 0 || millis >= 864e5) - return null; - opts = _extends({ - suppressMilliseconds: false, - suppressSeconds: false, - includePrefix: false, - format: "extended" - }, opts); - var value = this.shiftTo("hours", "minutes", "seconds", "milliseconds"); - var fmt = opts.format === "basic" ? "hhmm" : "hh:mm"; - if (!opts.suppressSeconds || value.seconds !== 0 || value.milliseconds !== 0) { - fmt += opts.format === "basic" ? "ss" : ":ss"; - if (!opts.suppressMilliseconds || value.milliseconds !== 0) { - fmt += ".SSS"; - } - } - var str = value.toFormat(fmt); - if (opts.includePrefix) { - str = "T" + str; - } - return str; - }; - _proto.toJSON = function toJSON() { - return this.toISO(); - }; - _proto.toString = function toString() { - return this.toISO(); - }; - _proto.toMillis = function toMillis() { - return this.as("milliseconds"); - }; - _proto.valueOf = function valueOf() { - return this.toMillis(); - }; - _proto.plus = function plus(duration) { - if (!this.isValid) - return this; - var dur = Duration4.fromDurationLike(duration), result = {}; - for (var _iterator = _createForOfIteratorHelperLoose(orderedUnits$1), _step; !(_step = _iterator()).done; ) { - var k2 = _step.value; - if (hasOwnProperty2(dur.values, k2) || hasOwnProperty2(this.values, k2)) { - result[k2] = dur.get(k2) + this.get(k2); + for (i3 = 0; i3 < 7; i3++) { + mom = createUTC([2e3, 1]).day(i3); + if (strict && !this._fullWeekdaysParse[i3]) { + this._fullWeekdaysParse[i3] = new RegExp("^" + this.weekdays(mom, "").replace(".", "\\.?") + "$", "i"); + this._shortWeekdaysParse[i3] = new RegExp("^" + this.weekdaysShort(mom, "").replace(".", "\\.?") + "$", "i"); + this._minWeekdaysParse[i3] = new RegExp("^" + this.weekdaysMin(mom, "").replace(".", "\\.?") + "$", "i"); + } + if (!this._weekdaysParse[i3]) { + regex = "^" + this.weekdays(mom, "") + "|^" + this.weekdaysShort(mom, "") + "|^" + this.weekdaysMin(mom, ""); + this._weekdaysParse[i3] = new RegExp(regex.replace(".", ""), "i"); + } + if (strict && format2 === "dddd" && this._fullWeekdaysParse[i3].test(weekdayName)) { + return i3; + } else if (strict && format2 === "ddd" && this._shortWeekdaysParse[i3].test(weekdayName)) { + return i3; + } else if (strict && format2 === "dd" && this._minWeekdaysParse[i3].test(weekdayName)) { + return i3; + } else if (!strict && this._weekdaysParse[i3].test(weekdayName)) { + return i3; } } - return clone$1(this, { - values: result - }, true); - }; - _proto.minus = function minus(duration) { - if (!this.isValid) - return this; - var dur = Duration4.fromDurationLike(duration); - return this.plus(dur.negate()); - }; - _proto.mapUnits = function mapUnits(fn) { - if (!this.isValid) - return this; - var result = {}; - for (var _i = 0, _Object$keys = Object.keys(this.values); _i < _Object$keys.length; _i++) { - var k2 = _Object$keys[_i]; - result[k2] = asNumber(fn(this.values[k2], k2)); + } + function getSetDayOfWeek(input) { + if (!this.isValid()) { + return input != null ? this : NaN; } - return clone$1(this, { - values: result - }, true); - }; - _proto.get = function get(unit) { - return this[Duration4.normalizeUnit(unit)]; - }; - _proto.set = function set(values) { - if (!this.isValid) - return this; - var mixed = _extends({}, this.values, normalizeObject(values, Duration4.normalizeUnit)); - return clone$1(this, { - values: mixed - }); - }; - _proto.reconfigure = function reconfigure(_temp) { - var _ref = _temp === void 0 ? {} : _temp, locale = _ref.locale, numberingSystem = _ref.numberingSystem, conversionAccuracy = _ref.conversionAccuracy; - var loc = this.loc.clone({ - locale, - numberingSystem - }), opts = { - loc - }; - if (conversionAccuracy) { - opts.conversionAccuracy = conversionAccuracy; + var day = this._isUTC ? this._d.getUTCDay() : this._d.getDay(); + if (input != null) { + input = parseWeekday(input, this.localeData()); + return this.add(input - day, "d"); + } else { + return day; } - return clone$1(this, opts); - }; - _proto.as = function as(unit) { - return this.isValid ? this.shiftTo(unit).get(unit) : NaN; - }; - _proto.normalize = function normalize() { - if (!this.isValid) - return this; - var vals = this.toObject(); - normalizeValues(this.matrix, vals); - return clone$1(this, { - values: vals - }, true); - }; - _proto.shiftTo = function shiftTo() { - for (var _len = arguments.length, units = new Array(_len), _key = 0; _key < _len; _key++) { - units[_key] = arguments[_key]; + } + function getSetLocaleDayOfWeek(input) { + if (!this.isValid()) { + return input != null ? this : NaN; } - if (!this.isValid) - return this; - if (units.length === 0) { - return this; + var weekday = (this.day() + 7 - this.localeData()._week.dow) % 7; + return input == null ? weekday : this.add(input - weekday, "d"); + } + function getSetISODayOfWeek(input) { + if (!this.isValid()) { + return input != null ? this : NaN; + } + if (input != null) { + var weekday = parseIsoWeekday(input, this.localeData()); + return this.day(this.day() % 7 ? weekday : weekday - 7); + } else { + return this.day() || 7; } - units = units.map(function(u3) { - return Duration4.normalizeUnit(u3); + } + function weekdaysRegex(isStrict) { + if (this._weekdaysParseExact) { + if (!hasOwnProp(this, "_weekdaysRegex")) { + computeWeekdaysParse.call(this); + } + if (isStrict) { + return this._weekdaysStrictRegex; + } else { + return this._weekdaysRegex; + } + } else { + if (!hasOwnProp(this, "_weekdaysRegex")) { + this._weekdaysRegex = defaultWeekdaysRegex; + } + return this._weekdaysStrictRegex && isStrict ? this._weekdaysStrictRegex : this._weekdaysRegex; + } + } + function weekdaysShortRegex(isStrict) { + if (this._weekdaysParseExact) { + if (!hasOwnProp(this, "_weekdaysRegex")) { + computeWeekdaysParse.call(this); + } + if (isStrict) { + return this._weekdaysShortStrictRegex; + } else { + return this._weekdaysShortRegex; + } + } else { + if (!hasOwnProp(this, "_weekdaysShortRegex")) { + this._weekdaysShortRegex = defaultWeekdaysShortRegex; + } + return this._weekdaysShortStrictRegex && isStrict ? this._weekdaysShortStrictRegex : this._weekdaysShortRegex; + } + } + function weekdaysMinRegex(isStrict) { + if (this._weekdaysParseExact) { + if (!hasOwnProp(this, "_weekdaysRegex")) { + computeWeekdaysParse.call(this); + } + if (isStrict) { + return this._weekdaysMinStrictRegex; + } else { + return this._weekdaysMinRegex; + } + } else { + if (!hasOwnProp(this, "_weekdaysMinRegex")) { + this._weekdaysMinRegex = defaultWeekdaysMinRegex; + } + return this._weekdaysMinStrictRegex && isStrict ? this._weekdaysMinStrictRegex : this._weekdaysMinRegex; + } + } + function computeWeekdaysParse() { + function cmpLenRev(a3, b3) { + return b3.length - a3.length; + } + var minPieces = [], shortPieces = [], longPieces = [], mixedPieces = [], i3, mom, minp, shortp, longp; + for (i3 = 0; i3 < 7; i3++) { + mom = createUTC([2e3, 1]).day(i3); + minp = regexEscape(this.weekdaysMin(mom, "")); + shortp = regexEscape(this.weekdaysShort(mom, "")); + longp = regexEscape(this.weekdays(mom, "")); + minPieces.push(minp); + shortPieces.push(shortp); + longPieces.push(longp); + mixedPieces.push(minp); + mixedPieces.push(shortp); + mixedPieces.push(longp); + } + minPieces.sort(cmpLenRev); + shortPieces.sort(cmpLenRev); + longPieces.sort(cmpLenRev); + mixedPieces.sort(cmpLenRev); + this._weekdaysRegex = new RegExp("^(" + mixedPieces.join("|") + ")", "i"); + this._weekdaysShortRegex = this._weekdaysRegex; + this._weekdaysMinRegex = this._weekdaysRegex; + this._weekdaysStrictRegex = new RegExp("^(" + longPieces.join("|") + ")", "i"); + this._weekdaysShortStrictRegex = new RegExp("^(" + shortPieces.join("|") + ")", "i"); + this._weekdaysMinStrictRegex = new RegExp("^(" + minPieces.join("|") + ")", "i"); + } + function hFormat() { + return this.hours() % 12 || 12; + } + function kFormat() { + return this.hours() || 24; + } + addFormatToken("H", ["HH", 2], 0, "hour"); + addFormatToken("h", ["hh", 2], 0, hFormat); + addFormatToken("k", ["kk", 2], 0, kFormat); + addFormatToken("hmm", 0, 0, function() { + return "" + hFormat.apply(this) + zeroFill(this.minutes(), 2); + }); + addFormatToken("hmmss", 0, 0, function() { + return "" + hFormat.apply(this) + zeroFill(this.minutes(), 2) + zeroFill(this.seconds(), 2); + }); + addFormatToken("Hmm", 0, 0, function() { + return "" + this.hours() + zeroFill(this.minutes(), 2); + }); + addFormatToken("Hmmss", 0, 0, function() { + return "" + this.hours() + zeroFill(this.minutes(), 2) + zeroFill(this.seconds(), 2); + }); + function meridiem(token2, lowercase) { + addFormatToken(token2, 0, 0, function() { + return this.localeData().meridiem(this.hours(), this.minutes(), lowercase); }); - var built = {}, accumulated = {}, vals = this.toObject(); - var lastUnit; - for (var _iterator2 = _createForOfIteratorHelperLoose(orderedUnits$1), _step2; !(_step2 = _iterator2()).done; ) { - var k2 = _step2.value; - if (units.indexOf(k2) >= 0) { - lastUnit = k2; - var own = 0; - for (var ak in accumulated) { - own += this.matrix[ak][k2] * accumulated[ak]; - accumulated[ak] = 0; + } + meridiem("a", true); + meridiem("A", false); + addUnitAlias("hour", "h"); + addUnitPriority("hour", 13); + function matchMeridiem(isStrict, locale2) { + return locale2._meridiemParse; + } + addRegexToken("a", matchMeridiem); + addRegexToken("A", matchMeridiem); + addRegexToken("H", match1to2); + addRegexToken("h", match1to2); + addRegexToken("k", match1to2); + addRegexToken("HH", match1to2, match2); + addRegexToken("hh", match1to2, match2); + addRegexToken("kk", match1to2, match2); + addRegexToken("hmm", match3to4); + addRegexToken("hmmss", match5to6); + addRegexToken("Hmm", match3to4); + addRegexToken("Hmmss", match5to6); + addParseToken(["H", "HH"], HOUR); + addParseToken(["k", "kk"], function(input, array, config2) { + var kInput = toInt(input); + array[HOUR] = kInput === 24 ? 0 : kInput; + }); + addParseToken(["a", "A"], function(input, array, config2) { + config2._isPm = config2._locale.isPM(input); + config2._meridiem = input; + }); + addParseToken(["h", "hh"], function(input, array, config2) { + array[HOUR] = toInt(input); + getParsingFlags(config2).bigHour = true; + }); + addParseToken("hmm", function(input, array, config2) { + var pos = input.length - 2; + array[HOUR] = toInt(input.substr(0, pos)); + array[MINUTE] = toInt(input.substr(pos)); + getParsingFlags(config2).bigHour = true; + }); + addParseToken("hmmss", function(input, array, config2) { + var pos1 = input.length - 4, pos2 = input.length - 2; + array[HOUR] = toInt(input.substr(0, pos1)); + array[MINUTE] = toInt(input.substr(pos1, 2)); + array[SECOND] = toInt(input.substr(pos2)); + getParsingFlags(config2).bigHour = true; + }); + addParseToken("Hmm", function(input, array, config2) { + var pos = input.length - 2; + array[HOUR] = toInt(input.substr(0, pos)); + array[MINUTE] = toInt(input.substr(pos)); + }); + addParseToken("Hmmss", function(input, array, config2) { + var pos1 = input.length - 4, pos2 = input.length - 2; + array[HOUR] = toInt(input.substr(0, pos1)); + array[MINUTE] = toInt(input.substr(pos1, 2)); + array[SECOND] = toInt(input.substr(pos2)); + }); + function localeIsPM(input) { + return (input + "").toLowerCase().charAt(0) === "p"; + } + var defaultLocaleMeridiemParse = /[ap]\.?m?\.?/i, getSetHour = makeGetSet("Hours", true); + function localeMeridiem(hours2, minutes2, isLower) { + if (hours2 > 11) { + return isLower ? "pm" : "PM"; + } else { + return isLower ? "am" : "AM"; + } + } + var baseConfig = { + calendar: defaultCalendar, + longDateFormat: defaultLongDateFormat, + invalidDate: defaultInvalidDate, + ordinal: defaultOrdinal, + dayOfMonthOrdinalParse: defaultDayOfMonthOrdinalParse, + relativeTime: defaultRelativeTime, + months: defaultLocaleMonths, + monthsShort: defaultLocaleMonthsShort, + week: defaultLocaleWeek, + weekdays: defaultLocaleWeekdays, + weekdaysMin: defaultLocaleWeekdaysMin, + weekdaysShort: defaultLocaleWeekdaysShort, + meridiemParse: defaultLocaleMeridiemParse + }; + var locales = {}, localeFamilies = {}, globalLocale; + function commonPrefix(arr1, arr2) { + var i3, minl = Math.min(arr1.length, arr2.length); + for (i3 = 0; i3 < minl; i3 += 1) { + if (arr1[i3] !== arr2[i3]) { + return i3; + } + } + return minl; + } + function normalizeLocale(key) { + return key ? key.toLowerCase().replace("_", "-") : key; + } + function chooseLocale(names) { + var i3 = 0, j4, next, locale2, split; + while (i3 < names.length) { + split = normalizeLocale(names[i3]).split("-"); + j4 = split.length; + next = normalizeLocale(names[i3 + 1]); + next = next ? next.split("-") : null; + while (j4 > 0) { + locale2 = loadLocale(split.slice(0, j4).join("-")); + if (locale2) { + return locale2; + } + if (next && next.length >= j4 && commonPrefix(split, next) >= j4 - 1) { + break; } - if (isNumber(vals[k2])) { - own += vals[k2]; + j4--; + } + i3++; + } + return globalLocale; + } + function loadLocale(name) { + var oldLocale = null, aliasedRequire; + if (locales[name] === void 0 && typeof module2 !== "undefined" && module2 && module2.exports) { + try { + oldLocale = globalLocale._abbr; + aliasedRequire = require; + aliasedRequire("./locale/" + name); + getSetGlobalLocale(oldLocale); + } catch (e3) { + locales[name] = null; + } + } + return locales[name]; + } + function getSetGlobalLocale(key, values) { + var data; + if (key) { + if (isUndefined2(values)) { + data = getLocale(key); + } else { + data = defineLocale(key, values); + } + if (data) { + globalLocale = data; + } else { + if (typeof console !== "undefined" && console.warn) { + console.warn("Locale " + key + " not found. Did you forget to load it?"); } - var i3 = Math.trunc(own); - built[k2] = i3; - accumulated[k2] = (own * 1e3 - i3 * 1e3) / 1e3; - for (var down in vals) { - if (orderedUnits$1.indexOf(down) > orderedUnits$1.indexOf(k2)) { - convert(this.matrix, vals, down, built, k2); + } + } + return globalLocale._abbr; + } + function defineLocale(name, config2) { + if (config2 !== null) { + var locale2, parentConfig = baseConfig; + config2.abbr = name; + if (locales[name] != null) { + deprecateSimple("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."); + parentConfig = locales[name]._config; + } else if (config2.parentLocale != null) { + if (locales[config2.parentLocale] != null) { + parentConfig = locales[config2.parentLocale]._config; + } else { + locale2 = loadLocale(config2.parentLocale); + if (locale2 != null) { + parentConfig = locale2._config; + } else { + if (!localeFamilies[config2.parentLocale]) { + localeFamilies[config2.parentLocale] = []; + } + localeFamilies[config2.parentLocale].push({ + name, + config: config2 + }); + return null; } } - } else if (isNumber(vals[k2])) { - accumulated[k2] = vals[k2]; } - } - for (var key in accumulated) { - if (accumulated[key] !== 0) { - built[lastUnit] += key === lastUnit ? accumulated[key] : accumulated[key] / this.matrix[lastUnit][key]; + locales[name] = new Locale2(mergeConfigs(parentConfig, config2)); + if (localeFamilies[name]) { + localeFamilies[name].forEach(function(x4) { + defineLocale(x4.name, x4.config); + }); } + getSetGlobalLocale(name); + return locales[name]; + } else { + delete locales[name]; + return null; } - return clone$1(this, { - values: built - }, true).normalize(); - }; - _proto.negate = function negate() { - if (!this.isValid) - return this; - var negated = {}; - for (var _i2 = 0, _Object$keys2 = Object.keys(this.values); _i2 < _Object$keys2.length; _i2++) { - var k2 = _Object$keys2[_i2]; - negated[k2] = this.values[k2] === 0 ? 0 : -this.values[k2]; - } - return clone$1(this, { - values: negated - }, true); - }; - _proto.equals = function equals(other) { - if (!this.isValid || !other.isValid) { - return false; + } + function updateLocale(name, config2) { + if (config2 != null) { + var locale2, tmpLocale, parentConfig = baseConfig; + if (locales[name] != null && locales[name].parentLocale != null) { + locales[name].set(mergeConfigs(locales[name]._config, config2)); + } else { + tmpLocale = loadLocale(name); + if (tmpLocale != null) { + parentConfig = tmpLocale._config; + } + config2 = mergeConfigs(parentConfig, config2); + if (tmpLocale == null) { + config2.abbr = name; + } + locale2 = new Locale2(config2); + locale2.parentLocale = locales[name]; + locales[name] = locale2; + } + getSetGlobalLocale(name); + } else { + if (locales[name] != null) { + if (locales[name].parentLocale != null) { + locales[name] = locales[name].parentLocale; + if (name === getSetGlobalLocale()) { + getSetGlobalLocale(name); + } + } else if (locales[name] != null) { + delete locales[name]; + } + } + } + return locales[name]; + } + function getLocale(key) { + var locale2; + if (key && key._locale && key._locale._abbr) { + key = key._locale._abbr; + } + if (!key) { + return globalLocale; + } + if (!isArray(key)) { + locale2 = loadLocale(key); + if (locale2) { + return locale2; + } + key = [key]; + } + return chooseLocale(key); + } + function listLocales() { + return keys(locales); + } + function checkOverflow(m3) { + var overflow, a3 = m3._a; + if (a3 && getParsingFlags(m3).overflow === -2) { + overflow = a3[MONTH] < 0 || a3[MONTH] > 11 ? MONTH : a3[DATE] < 1 || a3[DATE] > daysInMonth2(a3[YEAR], a3[MONTH]) ? DATE : a3[HOUR] < 0 || a3[HOUR] > 24 || a3[HOUR] === 24 && (a3[MINUTE] !== 0 || a3[SECOND] !== 0 || a3[MILLISECOND] !== 0) ? HOUR : a3[MINUTE] < 0 || a3[MINUTE] > 59 ? MINUTE : a3[SECOND] < 0 || a3[SECOND] > 59 ? SECOND : a3[MILLISECOND] < 0 || a3[MILLISECOND] > 999 ? MILLISECOND : -1; + if (getParsingFlags(m3)._overflowDayOfYear && (overflow < YEAR || overflow > DATE)) { + overflow = DATE; + } + if (getParsingFlags(m3)._overflowWeeks && overflow === -1) { + overflow = WEEK; + } + if (getParsingFlags(m3)._overflowWeekday && overflow === -1) { + overflow = WEEKDAY; + } + getParsingFlags(m3).overflow = overflow; + } + return m3; + } + var extendedIsoRegex = /^\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)?)?$/, basicIsoRegex = /^\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)?)?$/, tzRegex = /Z|[+-]\d\d(?::?\d\d)?/, isoDates = [ + ["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/, false], + ["YYYY-DDD", /\d{4}-\d{3}/], + ["YYYY-MM", /\d{4}-\d\d/, false], + ["YYYYYYMMDD", /[+-]\d{10}/], + ["YYYYMMDD", /\d{8}/], + ["GGGG[W]WWE", /\d{4}W\d{3}/], + ["GGGG[W]WW", /\d{4}W\d{2}/, false], + ["YYYYDDD", /\d{7}/], + ["YYYYMM", /\d{6}/, false], + ["YYYY", /\d{4}/, false] + ], isoTimes = [ + ["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/] + ], aspNetJsonRegex = /^\/?Date\((-?\d+)/i, rfc28222 = /^(?:(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}))$/, obsOffsets2 = { + 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 configFromISO(config2) { + var i3, l4, string = config2._i, match5 = extendedIsoRegex.exec(string) || basicIsoRegex.exec(string), allowTime, dateFormat, timeFormat, tzFormat; + if (match5) { + getParsingFlags(config2).iso = true; + for (i3 = 0, l4 = isoDates.length; i3 < l4; i3++) { + if (isoDates[i3][1].exec(match5[1])) { + dateFormat = isoDates[i3][0]; + allowTime = isoDates[i3][2] !== false; + break; + } + } + if (dateFormat == null) { + config2._isValid = false; + return; + } + if (match5[3]) { + for (i3 = 0, l4 = isoTimes.length; i3 < l4; i3++) { + if (isoTimes[i3][1].exec(match5[3])) { + timeFormat = (match5[2] || " ") + isoTimes[i3][0]; + break; + } + } + if (timeFormat == null) { + config2._isValid = false; + return; + } + } + if (!allowTime && timeFormat != null) { + config2._isValid = false; + return; + } + if (match5[4]) { + if (tzRegex.exec(match5[4])) { + tzFormat = "Z"; + } else { + config2._isValid = false; + return; + } + } + config2._f = dateFormat + (timeFormat || "") + (tzFormat || ""); + configFromStringAndFormat(config2); + } else { + config2._isValid = false; } - if (!this.loc.equals(other.loc)) { - return false; + } + function extractFromRFC2822Strings(yearStr, monthStr, dayStr, hourStr, minuteStr, secondStr) { + var result = [ + untruncateYear2(yearStr), + defaultLocaleMonthsShort.indexOf(monthStr), + parseInt(dayStr, 10), + parseInt(hourStr, 10), + parseInt(minuteStr, 10) + ]; + if (secondStr) { + result.push(parseInt(secondStr, 10)); } - function eq(v1, v22) { - if (v1 === void 0 || v1 === 0) - return v22 === void 0 || v22 === 0; - return v1 === v22; + return result; + } + function untruncateYear2(yearStr) { + var year = parseInt(yearStr, 10); + if (year <= 49) { + return 2e3 + year; + } else if (year <= 999) { + return 1900 + year; } - for (var _iterator3 = _createForOfIteratorHelperLoose(orderedUnits$1), _step3; !(_step3 = _iterator3()).done; ) { - var u3 = _step3.value; - if (!eq(this.values[u3], other.values[u3])) { + return year; + } + function preprocessRFC28222(s4) { + return s4.replace(/\([^)]*\)|[\n\t]/g, " ").replace(/(\s\s+)/g, " ").replace(/^\s\s*/, "").replace(/\s\s*$/, ""); + } + function checkWeekday(weekdayStr, parsedInput, config2) { + if (weekdayStr) { + var weekdayProvided = defaultLocaleWeekdaysShort.indexOf(weekdayStr), weekdayActual = new Date(parsedInput[0], parsedInput[1], parsedInput[2]).getDay(); + if (weekdayProvided !== weekdayActual) { + getParsingFlags(config2).weekdayMismatch = true; + config2._isValid = false; return false; } } return true; - }; - _createClass(Duration4, [{ - key: "locale", - get: function get() { - return this.isValid ? this.loc.locale : null; - } - }, { - key: "numberingSystem", - get: function get() { - return this.isValid ? this.loc.numberingSystem : null; - } - }, { - key: "years", - get: function get() { - return this.isValid ? this.values.years || 0 : NaN; - } - }, { - key: "quarters", - get: function get() { - return this.isValid ? this.values.quarters || 0 : NaN; - } - }, { - key: "months", - get: function get() { - return this.isValid ? this.values.months || 0 : NaN; - } - }, { - key: "weeks", - get: function get() { - return this.isValid ? this.values.weeks || 0 : NaN; - } - }, { - key: "days", - get: function get() { - return this.isValid ? this.values.days || 0 : NaN; - } - }, { - key: "hours", - get: function get() { - return this.isValid ? this.values.hours || 0 : NaN; - } - }, { - key: "minutes", - get: function get() { - return this.isValid ? this.values.minutes || 0 : NaN; - } - }, { - key: "seconds", - get: function get() { - return this.isValid ? this.values.seconds || 0 : NaN; - } - }, { - key: "milliseconds", - get: function get() { - return this.isValid ? this.values.milliseconds || 0 : NaN; - } - }, { - key: "isValid", - get: function get() { - return this.invalid === null; - } - }, { - key: "invalidReason", - get: function get() { - return this.invalid ? this.invalid.reason : null; - } - }, { - key: "invalidExplanation", - get: function get() { - return this.invalid ? this.invalid.explanation : null; - } - }]); - return Duration4; - }(); - var INVALID$1 = "Invalid Interval"; - function validateStartEnd(start, end) { - if (!start || !start.isValid) { - return Interval.invalid("missing or invalid start"); - } else if (!end || !end.isValid) { - return Interval.invalid("missing or invalid end"); - } else if (end < start) { - return Interval.invalid("end before start", "The end of an interval must be after its start, but you had start=" + start.toISO() + " and end=" + end.toISO()); - } else { - return null; } - } - var Interval = /* @__PURE__ */ function() { - function Interval2(config2) { - this.s = config2.start; - this.e = config2.end; - this.invalid = config2.invalid || null; - this.isLuxonInterval = true; + function calculateOffset(obsOffset, militaryOffset, numOffset) { + if (obsOffset) { + return obsOffsets2[obsOffset]; + } else if (militaryOffset) { + return 0; + } else { + var hm = parseInt(numOffset, 10), m3 = hm % 100, h3 = (hm - m3) / 100; + return h3 * 60 + m3; + } } - Interval2.invalid = function invalid(reason, explanation) { - if (explanation === void 0) { - explanation = null; + function configFromRFC2822(config2) { + var match5 = rfc28222.exec(preprocessRFC28222(config2._i)), parsedArray; + if (match5) { + parsedArray = extractFromRFC2822Strings(match5[4], match5[3], match5[2], match5[5], match5[6], match5[7]); + if (!checkWeekday(match5[1], parsedArray, config2)) { + return; + } + config2._a = parsedArray; + config2._tzm = calculateOffset(match5[8], match5[9], match5[10]); + config2._d = createUTCDate.apply(null, config2._a); + config2._d.setUTCMinutes(config2._d.getUTCMinutes() - config2._tzm); + getParsingFlags(config2).rfc2822 = true; + } else { + config2._isValid = false; } - if (!reason) { - throw new InvalidArgumentError("need to specify a reason the Interval is invalid"); + } + function configFromString(config2) { + var matched = aspNetJsonRegex.exec(config2._i); + if (matched !== null) { + config2._d = new Date(+matched[1]); + return; } - var invalid2 = reason instanceof Invalid ? reason : new Invalid(reason, explanation); - if (Settings.throwOnInvalid) { - throw new InvalidIntervalError(invalid2); + configFromISO(config2); + if (config2._isValid === false) { + delete config2._isValid; } else { - return new Interval2({ - invalid: invalid2 - }); + return; } - }; - Interval2.fromDateTimes = function fromDateTimes(start, end) { - var builtStart = friendlyDateTime(start), builtEnd = friendlyDateTime(end); - var validateError = validateStartEnd(builtStart, builtEnd); - if (validateError == null) { - return new Interval2({ - start: builtStart, - end: builtEnd - }); + configFromRFC2822(config2); + if (config2._isValid === false) { + delete config2._isValid; } else { - return validateError; + return; } - }; - Interval2.after = function after(start, duration) { - var dur = Duration3.fromDurationLike(duration), dt = friendlyDateTime(start); - return Interval2.fromDateTimes(dt, dt.plus(dur)); - }; - Interval2.before = function before(end, duration) { - var dur = Duration3.fromDurationLike(duration), dt = friendlyDateTime(end); - return Interval2.fromDateTimes(dt.minus(dur), dt); - }; - Interval2.fromISO = function fromISO(text, opts) { - var _split = (text || "").split("/", 2), s4 = _split[0], e3 = _split[1]; - if (s4 && e3) { - var start, startIsValid; - try { - start = DateTime3.fromISO(s4, opts); - startIsValid = start.isValid; - } catch (e4) { - startIsValid = false; - } - var end, endIsValid; - try { - end = DateTime3.fromISO(e3, opts); - endIsValid = end.isValid; - } catch (e4) { - endIsValid = false; - } - if (startIsValid && endIsValid) { - return Interval2.fromDateTimes(start, end); - } - if (startIsValid) { - var dur = Duration3.fromISO(e3, opts); - if (dur.isValid) { - return Interval2.after(start, dur); - } - } else if (endIsValid) { - var _dur = Duration3.fromISO(s4, opts); - if (_dur.isValid) { - return Interval2.before(end, _dur); - } + if (config2._strict) { + config2._isValid = false; + } else { + hooks.createFromInputFallback(config2); + } + } + hooks.createFromInputFallback = deprecate("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.", function(config2) { + config2._d = new Date(config2._i + (config2._useUTC ? " UTC" : "")); + }); + function defaults(a3, b3, c3) { + if (a3 != null) { + return a3; + } + if (b3 != null) { + return b3; + } + return c3; + } + function currentDateArray(config2) { + var nowValue = new Date(hooks.now()); + if (config2._useUTC) { + return [ + nowValue.getUTCFullYear(), + nowValue.getUTCMonth(), + nowValue.getUTCDate() + ]; + } + return [nowValue.getFullYear(), nowValue.getMonth(), nowValue.getDate()]; + } + function configFromArray(config2) { + var i3, date, input = [], currentDate, expectedWeekday, yearToUse; + if (config2._d) { + return; + } + currentDate = currentDateArray(config2); + if (config2._w && config2._a[DATE] == null && config2._a[MONTH] == null) { + dayOfYearFromWeekInfo(config2); + } + if (config2._dayOfYear != null) { + yearToUse = defaults(config2._a[YEAR], currentDate[YEAR]); + if (config2._dayOfYear > daysInYear2(yearToUse) || config2._dayOfYear === 0) { + getParsingFlags(config2)._overflowDayOfYear = true; } + date = createUTCDate(yearToUse, 0, config2._dayOfYear); + config2._a[MONTH] = date.getUTCMonth(); + config2._a[DATE] = date.getUTCDate(); } - return Interval2.invalid("unparsable", 'the input "' + text + `" can't be parsed as ISO 8601`); - }; - Interval2.isInterval = function isInterval(o2) { - return o2 && o2.isLuxonInterval || false; - }; - var _proto = Interval2.prototype; - _proto.length = function length(unit) { - if (unit === void 0) { - unit = "milliseconds"; + for (i3 = 0; i3 < 3 && config2._a[i3] == null; ++i3) { + config2._a[i3] = input[i3] = currentDate[i3]; } - return this.isValid ? this.toDuration.apply(this, [unit]).get(unit) : NaN; - }; - _proto.count = function count(unit) { - if (unit === void 0) { - unit = "milliseconds"; + for (; i3 < 7; i3++) { + config2._a[i3] = input[i3] = config2._a[i3] == null ? i3 === 2 ? 1 : 0 : config2._a[i3]; } - if (!this.isValid) - return NaN; - var start = this.start.startOf(unit), end = this.end.startOf(unit); - return Math.floor(end.diff(start, unit).get(unit)) + 1; - }; - _proto.hasSame = function hasSame(unit) { - return this.isValid ? this.isEmpty() || this.e.minus(1).hasSame(this.s, unit) : false; - }; - _proto.isEmpty = function isEmpty() { - return this.s.valueOf() === this.e.valueOf(); - }; - _proto.isAfter = function isAfter(dateTime) { - if (!this.isValid) - return false; - return this.s > dateTime; - }; - _proto.isBefore = function isBefore(dateTime) { - if (!this.isValid) - return false; - return this.e <= dateTime; - }; - _proto.contains = function contains(dateTime) { - if (!this.isValid) - return false; - return this.s <= dateTime && this.e > dateTime; - }; - _proto.set = function set(_temp) { - var _ref = _temp === void 0 ? {} : _temp, start = _ref.start, end = _ref.end; - if (!this.isValid) - return this; - return Interval2.fromDateTimes(start || this.s, end || this.e); - }; - _proto.splitAt = function splitAt() { - var _this = this; - if (!this.isValid) - return []; - for (var _len = arguments.length, dateTimes = new Array(_len), _key = 0; _key < _len; _key++) { - dateTimes[_key] = arguments[_key]; - } - var sorted = dateTimes.map(friendlyDateTime).filter(function(d3) { - return _this.contains(d3); - }).sort(), results = []; - var s4 = this.s, i3 = 0; - while (s4 < this.e) { - var added = sorted[i3] || this.e, next = +added > +this.e ? this.e : added; - results.push(Interval2.fromDateTimes(s4, next)); - s4 = next; - i3 += 1; + if (config2._a[HOUR] === 24 && config2._a[MINUTE] === 0 && config2._a[SECOND] === 0 && config2._a[MILLISECOND] === 0) { + config2._nextDay = true; + config2._a[HOUR] = 0; } - return results; - }; - _proto.splitBy = function splitBy(duration) { - var dur = Duration3.fromDurationLike(duration); - if (!this.isValid || !dur.isValid || dur.as("milliseconds") === 0) { - return []; - } - var s4 = this.s, idx = 1, next; - var results = []; - while (s4 < this.e) { - var added = this.start.plus(dur.mapUnits(function(x3) { - return x3 * idx; - })); - next = +added > +this.e ? this.e : added; - results.push(Interval2.fromDateTimes(s4, next)); - s4 = next; - idx += 1; + config2._d = (config2._useUTC ? createUTCDate : createDate).apply(null, input); + expectedWeekday = config2._useUTC ? config2._d.getUTCDay() : config2._d.getDay(); + if (config2._tzm != null) { + config2._d.setUTCMinutes(config2._d.getUTCMinutes() - config2._tzm); } - return results; - }; - _proto.divideEqually = function divideEqually(numberOfParts) { - if (!this.isValid) - return []; - return this.splitBy(this.length() / numberOfParts).slice(0, numberOfParts); - }; - _proto.overlaps = function overlaps(other) { - return this.e > other.s && this.s < other.e; - }; - _proto.abutsStart = function abutsStart(other) { - if (!this.isValid) - return false; - return +this.e === +other.s; - }; - _proto.abutsEnd = function abutsEnd(other) { - if (!this.isValid) - return false; - return +other.e === +this.s; - }; - _proto.engulfs = function engulfs(other) { - if (!this.isValid) - return false; - return this.s <= other.s && this.e >= other.e; - }; - _proto.equals = function equals(other) { - if (!this.isValid || !other.isValid) { - return false; + if (config2._nextDay) { + config2._a[HOUR] = 24; } - return this.s.equals(other.s) && this.e.equals(other.e); - }; - _proto.intersection = function intersection(other) { - if (!this.isValid) - return this; - var s4 = this.s > other.s ? this.s : other.s, e3 = this.e < other.e ? this.e : other.e; - if (s4 >= e3) { - return null; - } else { - return Interval2.fromDateTimes(s4, e3); + if (config2._w && typeof config2._w.d !== "undefined" && config2._w.d !== expectedWeekday) { + getParsingFlags(config2).weekdayMismatch = true; } - }; - _proto.union = function union(other) { - if (!this.isValid) - return this; - var s4 = this.s < other.s ? this.s : other.s, e3 = this.e > other.e ? this.e : other.e; - return Interval2.fromDateTimes(s4, e3); - }; - Interval2.merge = function merge(intervals) { - var _intervals$sort$reduc = intervals.sort(function(a3, b3) { - return a3.s - b3.s; - }).reduce(function(_ref2, item) { - var sofar = _ref2[0], current = _ref2[1]; - if (!current) { - return [sofar, item]; - } else if (current.overlaps(item) || current.abutsStart(item)) { - return [sofar, current.union(item)]; - } else { - return [sofar.concat([current]), item]; + } + function dayOfYearFromWeekInfo(config2) { + var w4, weekYear, week, weekday, dow, doy, temp, weekdayOverflow, curWeek; + w4 = config2._w; + if (w4.GG != null || w4.W != null || w4.E != null) { + dow = 1; + doy = 4; + weekYear = defaults(w4.GG, config2._a[YEAR], weekOfYear2(createLocal(), 1, 4).year); + week = defaults(w4.W, 1); + weekday = defaults(w4.E, 1); + if (weekday < 1 || weekday > 7) { + weekdayOverflow = true; } - }, [[], null]), found = _intervals$sort$reduc[0], final = _intervals$sort$reduc[1]; - if (final) { - found.push(final); - } - return found; - }; - Interval2.xor = function xor(intervals) { - var _Array$prototype; - var start = null, currentCount = 0; - var results = [], ends = intervals.map(function(i4) { - return [{ - time: i4.s, - type: "s" - }, { - time: i4.e, - type: "e" - }]; - }), flattened = (_Array$prototype = Array.prototype).concat.apply(_Array$prototype, ends), arr = flattened.sort(function(a3, b3) { - return a3.time - b3.time; - }); - for (var _iterator = _createForOfIteratorHelperLoose(arr), _step; !(_step = _iterator()).done; ) { - var i3 = _step.value; - currentCount += i3.type === "s" ? 1 : -1; - if (currentCount === 1) { - start = i3.time; - } else { - if (start && +start !== +i3.time) { - results.push(Interval2.fromDateTimes(start, i3.time)); + } else { + dow = config2._locale._week.dow; + doy = config2._locale._week.doy; + curWeek = weekOfYear2(createLocal(), dow, doy); + weekYear = defaults(w4.gg, config2._a[YEAR], curWeek.year); + week = defaults(w4.w, curWeek.week); + if (w4.d != null) { + weekday = w4.d; + if (weekday < 0 || weekday > 6) { + weekdayOverflow = true; + } + } else if (w4.e != null) { + weekday = w4.e + dow; + if (w4.e < 0 || w4.e > 6) { + weekdayOverflow = true; } - start = null; + } else { + weekday = dow; } } - return Interval2.merge(results); - }; - _proto.difference = function difference() { - var _this2 = this; - for (var _len2 = arguments.length, intervals = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) { - intervals[_key2] = arguments[_key2]; - } - return Interval2.xor([this].concat(intervals)).map(function(i3) { - return _this2.intersection(i3); - }).filter(function(i3) { - return i3 && !i3.isEmpty(); - }); - }; - _proto.toString = function toString() { - if (!this.isValid) - return INVALID$1; - return "[" + this.s.toISO() + " \u2013 " + this.e.toISO() + ")"; - }; - _proto.toISO = function toISO(opts) { - if (!this.isValid) - return INVALID$1; - return this.s.toISO(opts) + "/" + this.e.toISO(opts); - }; - _proto.toISODate = function toISODate() { - if (!this.isValid) - return INVALID$1; - return this.s.toISODate() + "/" + this.e.toISODate(); - }; - _proto.toISOTime = function toISOTime(opts) { - if (!this.isValid) - return INVALID$1; - return this.s.toISOTime(opts) + "/" + this.e.toISOTime(opts); - }; - _proto.toFormat = function toFormat(dateFormat, _temp2) { - var _ref3 = _temp2 === void 0 ? {} : _temp2, _ref3$separator = _ref3.separator, separator = _ref3$separator === void 0 ? " \u2013 " : _ref3$separator; - if (!this.isValid) - return INVALID$1; - return "" + this.s.toFormat(dateFormat) + separator + this.e.toFormat(dateFormat); - }; - _proto.toDuration = function toDuration(unit, opts) { - if (!this.isValid) { - return Duration3.invalid(this.invalidReason); + if (week < 1 || week > weeksInYear(weekYear, dow, doy)) { + getParsingFlags(config2)._overflowWeeks = true; + } else if (weekdayOverflow != null) { + getParsingFlags(config2)._overflowWeekday = true; + } else { + temp = dayOfYearFromWeeks(weekYear, week, weekday, dow, doy); + config2._a[YEAR] = temp.year; + config2._dayOfYear = temp.dayOfYear; } - return this.e.diff(this.s, unit, opts); - }; - _proto.mapEndpoints = function mapEndpoints(mapFn) { - return Interval2.fromDateTimes(mapFn(this.s), mapFn(this.e)); - }; - _createClass(Interval2, [{ - key: "start", - get: function get() { - return this.isValid ? this.s : null; - } - }, { - key: "end", - get: function get() { - return this.isValid ? this.e : null; - } - }, { - key: "isValid", - get: function get() { - return this.invalidReason === null; - } - }, { - key: "invalidReason", - get: function get() { - return this.invalid ? this.invalid.reason : null; - } - }, { - key: "invalidExplanation", - get: function get() { - return this.invalid ? this.invalid.explanation : null; - } - }]); - return Interval2; - }(); - var Info = /* @__PURE__ */ function() { - function Info2() { } - Info2.hasDST = function hasDST(zone) { - if (zone === void 0) { - zone = Settings.defaultZone; - } - var proto = DateTime3.now().setZone(zone).set({ - month: 12 - }); - return !zone.isUniversal && proto.offset !== proto.set({ - month: 6 - }).offset; + hooks.ISO_8601 = function() { }; - Info2.isValidIANAZone = function isValidIANAZone(zone) { - return IANAZone.isValidZone(zone); + hooks.RFC_2822 = function() { }; - Info2.normalizeZone = function normalizeZone$1(input) { - return normalizeZone(input, Settings.defaultZone); - }; - Info2.months = function months2(length, _temp) { - if (length === void 0) { - length = "long"; + function configFromStringAndFormat(config2) { + if (config2._f === hooks.ISO_8601) { + configFromISO(config2); + return; } - var _ref = _temp === void 0 ? {} : _temp, _ref$locale = _ref.locale, locale = _ref$locale === void 0 ? null : _ref$locale, _ref$numberingSystem = _ref.numberingSystem, numberingSystem = _ref$numberingSystem === void 0 ? null : _ref$numberingSystem, _ref$locObj = _ref.locObj, locObj = _ref$locObj === void 0 ? null : _ref$locObj, _ref$outputCalendar = _ref.outputCalendar, outputCalendar = _ref$outputCalendar === void 0 ? "gregory" : _ref$outputCalendar; - return (locObj || Locale.create(locale, numberingSystem, outputCalendar)).months(length); - }; - Info2.monthsFormat = function monthsFormat(length, _temp2) { - if (length === void 0) { - length = "long"; + if (config2._f === hooks.RFC_2822) { + configFromRFC2822(config2); + return; } - var _ref2 = _temp2 === void 0 ? {} : _temp2, _ref2$locale = _ref2.locale, locale = _ref2$locale === void 0 ? null : _ref2$locale, _ref2$numberingSystem = _ref2.numberingSystem, numberingSystem = _ref2$numberingSystem === void 0 ? null : _ref2$numberingSystem, _ref2$locObj = _ref2.locObj, locObj = _ref2$locObj === void 0 ? null : _ref2$locObj, _ref2$outputCalendar = _ref2.outputCalendar, outputCalendar = _ref2$outputCalendar === void 0 ? "gregory" : _ref2$outputCalendar; - return (locObj || Locale.create(locale, numberingSystem, outputCalendar)).months(length, true); - }; - Info2.weekdays = function weekdays2(length, _temp3) { - if (length === void 0) { - length = "long"; + config2._a = []; + getParsingFlags(config2).empty = true; + var string = "" + config2._i, i3, parsedInput, tokens2, token2, skipped, stringLength = string.length, totalParsedInputLength = 0, era; + tokens2 = expandFormat(config2._f, config2._locale).match(formattingTokens) || []; + for (i3 = 0; i3 < tokens2.length; i3++) { + token2 = tokens2[i3]; + parsedInput = (string.match(getParseRegexForToken(token2, config2)) || [])[0]; + if (parsedInput) { + skipped = string.substr(0, string.indexOf(parsedInput)); + if (skipped.length > 0) { + getParsingFlags(config2).unusedInput.push(skipped); + } + string = string.slice(string.indexOf(parsedInput) + parsedInput.length); + totalParsedInputLength += parsedInput.length; + } + if (formatTokenFunctions[token2]) { + if (parsedInput) { + getParsingFlags(config2).empty = false; + } else { + getParsingFlags(config2).unusedTokens.push(token2); + } + addTimeToArrayFromToken(token2, parsedInput, config2); + } else if (config2._strict && !parsedInput) { + getParsingFlags(config2).unusedTokens.push(token2); + } } - var _ref3 = _temp3 === void 0 ? {} : _temp3, _ref3$locale = _ref3.locale, locale = _ref3$locale === void 0 ? null : _ref3$locale, _ref3$numberingSystem = _ref3.numberingSystem, numberingSystem = _ref3$numberingSystem === void 0 ? null : _ref3$numberingSystem, _ref3$locObj = _ref3.locObj, locObj = _ref3$locObj === void 0 ? null : _ref3$locObj; - return (locObj || Locale.create(locale, numberingSystem, null)).weekdays(length); - }; - Info2.weekdaysFormat = function weekdaysFormat(length, _temp4) { - if (length === void 0) { - length = "long"; + getParsingFlags(config2).charsLeftOver = stringLength - totalParsedInputLength; + if (string.length > 0) { + getParsingFlags(config2).unusedInput.push(string); } - var _ref4 = _temp4 === void 0 ? {} : _temp4, _ref4$locale = _ref4.locale, locale = _ref4$locale === void 0 ? null : _ref4$locale, _ref4$numberingSystem = _ref4.numberingSystem, numberingSystem = _ref4$numberingSystem === void 0 ? null : _ref4$numberingSystem, _ref4$locObj = _ref4.locObj, locObj = _ref4$locObj === void 0 ? null : _ref4$locObj; - return (locObj || Locale.create(locale, numberingSystem, null)).weekdays(length, true); - }; - Info2.meridiems = function meridiems2(_temp5) { - var _ref5 = _temp5 === void 0 ? {} : _temp5, _ref5$locale = _ref5.locale, locale = _ref5$locale === void 0 ? null : _ref5$locale; - return Locale.create(locale).meridiems(); - }; - Info2.eras = function eras2(length, _temp6) { - if (length === void 0) { - length = "short"; + if (config2._a[HOUR] <= 12 && getParsingFlags(config2).bigHour === true && config2._a[HOUR] > 0) { + getParsingFlags(config2).bigHour = void 0; } - var _ref6 = _temp6 === void 0 ? {} : _temp6, _ref6$locale = _ref6.locale, locale = _ref6$locale === void 0 ? null : _ref6$locale; - return Locale.create(locale, null, "gregory").eras(length); - }; - Info2.features = function features() { - return { - relative: hasRelative() - }; - }; - return Info2; - }(); - function dayDiff(earlier, later) { - var utcDayStart = function utcDayStart2(dt) { - return dt.toUTC(0, { - keepLocalTime: true - }).startOf("day").valueOf(); - }, ms = utcDayStart(later) - utcDayStart(earlier); - return Math.floor(Duration3.fromMillis(ms).as("days")); - } - function highOrderDiffs(cursor, later, units) { - var differs = [["years", function(a3, b3) { - return b3.year - a3.year; - }], ["quarters", function(a3, b3) { - return b3.quarter - a3.quarter; - }], ["months", function(a3, b3) { - return b3.month - a3.month + (b3.year - a3.year) * 12; - }], ["weeks", function(a3, b3) { - var days = dayDiff(a3, b3); - return (days - days % 7) / 7; - }], ["days", dayDiff]]; - var results = {}; - var lowestOrder, highWater; - for (var _i = 0, _differs = differs; _i < _differs.length; _i++) { - var _differs$_i = _differs[_i], unit = _differs$_i[0], differ = _differs$_i[1]; - if (units.indexOf(unit) >= 0) { - var _cursor$plus; - lowestOrder = unit; - var delta = differ(cursor, later); - highWater = cursor.plus((_cursor$plus = {}, _cursor$plus[unit] = delta, _cursor$plus)); - if (highWater > later) { - var _cursor$plus2; - cursor = cursor.plus((_cursor$plus2 = {}, _cursor$plus2[unit] = delta - 1, _cursor$plus2)); - delta -= 1; - } else { - cursor = highWater; - } - results[unit] = delta; + getParsingFlags(config2).parsedDateParts = config2._a.slice(0); + getParsingFlags(config2).meridiem = config2._meridiem; + config2._a[HOUR] = meridiemFixWrap(config2._locale, config2._a[HOUR], config2._meridiem); + era = getParsingFlags(config2).era; + if (era !== null) { + config2._a[YEAR] = config2._locale.erasConvertYear(era, config2._a[YEAR]); } + configFromArray(config2); + checkOverflow(config2); } - return [cursor, results, highWater, lowestOrder]; - } - function _diff(earlier, later, units, opts) { - var _highOrderDiffs = highOrderDiffs(earlier, later, units), cursor = _highOrderDiffs[0], results = _highOrderDiffs[1], highWater = _highOrderDiffs[2], lowestOrder = _highOrderDiffs[3]; - var remainingMillis = later - cursor; - var lowerOrderUnits = units.filter(function(u3) { - return ["hours", "minutes", "seconds", "milliseconds"].indexOf(u3) >= 0; - }); - if (lowerOrderUnits.length === 0) { - if (highWater < later) { - var _cursor$plus3; - highWater = cursor.plus((_cursor$plus3 = {}, _cursor$plus3[lowestOrder] = 1, _cursor$plus3)); + function meridiemFixWrap(locale2, hour, meridiem2) { + var isPm; + if (meridiem2 == null) { + return hour; } - if (highWater !== cursor) { - results[lowestOrder] = (results[lowestOrder] || 0) + remainingMillis / (highWater - cursor); + if (locale2.meridiemHour != null) { + return locale2.meridiemHour(hour, meridiem2); + } else if (locale2.isPM != null) { + isPm = locale2.isPM(meridiem2); + if (isPm && hour < 12) { + hour += 12; + } + if (!isPm && hour === 12) { + hour = 0; + } + return hour; + } else { + return hour; } } - var duration = Duration3.fromObject(results, opts); - if (lowerOrderUnits.length > 0) { - var _Duration$fromMillis; - return (_Duration$fromMillis = Duration3.fromMillis(remainingMillis, opts)).shiftTo.apply(_Duration$fromMillis, lowerOrderUnits).plus(duration); - } else { - return duration; - } - } - var numberingSystems = { - arab: "[\u0660-\u0669]", - arabext: "[\u06F0-\u06F9]", - bali: "[\u1B50-\u1B59]", - beng: "[\u09E6-\u09EF]", - deva: "[\u0966-\u096F]", - fullwide: "[\uFF10-\uFF19]", - gujr: "[\u0AE6-\u0AEF]", - hanidec: "[\u3007|\u4E00|\u4E8C|\u4E09|\u56DB|\u4E94|\u516D|\u4E03|\u516B|\u4E5D]", - khmr: "[\u17E0-\u17E9]", - knda: "[\u0CE6-\u0CEF]", - laoo: "[\u0ED0-\u0ED9]", - limb: "[\u1946-\u194F]", - mlym: "[\u0D66-\u0D6F]", - mong: "[\u1810-\u1819]", - mymr: "[\u1040-\u1049]", - orya: "[\u0B66-\u0B6F]", - tamldec: "[\u0BE6-\u0BEF]", - telu: "[\u0C66-\u0C6F]", - thai: "[\u0E50-\u0E59]", - tibt: "[\u0F20-\u0F29]", - latn: "\\d" - }; - var numberingSystemsUTF16 = { - arab: [1632, 1641], - arabext: [1776, 1785], - bali: [6992, 7001], - beng: [2534, 2543], - deva: [2406, 2415], - fullwide: [65296, 65303], - gujr: [2790, 2799], - khmr: [6112, 6121], - knda: [3302, 3311], - laoo: [3792, 3801], - limb: [6470, 6479], - mlym: [3430, 3439], - mong: [6160, 6169], - mymr: [4160, 4169], - orya: [2918, 2927], - tamldec: [3046, 3055], - telu: [3174, 3183], - thai: [3664, 3673], - tibt: [3872, 3881] - }; - var hanidecChars = numberingSystems.hanidec.replace(/[\[|\]]/g, "").split(""); - function parseDigits(str) { - var value = parseInt(str, 10); - if (isNaN(value)) { - value = ""; - for (var i3 = 0; i3 < str.length; i3++) { - var code = str.charCodeAt(i3); - if (str[i3].search(numberingSystems.hanidec) !== -1) { - value += hanidecChars.indexOf(str[i3]); - } else { - for (var key in numberingSystemsUTF16) { - var _numberingSystemsUTF = numberingSystemsUTF16[key], min = _numberingSystemsUTF[0], max = _numberingSystemsUTF[1]; - if (code >= min && code <= max) { - value += code - min; + function configFromStringAndArray(config2) { + var tempConfig, bestMoment, scoreToBeat, i3, currentScore, validFormatFound, bestFormatIsValid = false; + if (config2._f.length === 0) { + getParsingFlags(config2).invalidFormat = true; + config2._d = new Date(NaN); + return; + } + for (i3 = 0; i3 < config2._f.length; i3++) { + currentScore = 0; + validFormatFound = false; + tempConfig = copyConfig({}, config2); + if (config2._useUTC != null) { + tempConfig._useUTC = config2._useUTC; + } + tempConfig._f = config2._f[i3]; + configFromStringAndFormat(tempConfig); + if (isValid(tempConfig)) { + validFormatFound = true; + } + currentScore += getParsingFlags(tempConfig).charsLeftOver; + currentScore += getParsingFlags(tempConfig).unusedTokens.length * 10; + getParsingFlags(tempConfig).score = currentScore; + if (!bestFormatIsValid) { + if (scoreToBeat == null || currentScore < scoreToBeat || validFormatFound) { + scoreToBeat = currentScore; + bestMoment = tempConfig; + if (validFormatFound) { + bestFormatIsValid = true; } } + } else { + if (currentScore < scoreToBeat) { + scoreToBeat = currentScore; + bestMoment = tempConfig; + } } } - return parseInt(value, 10); - } else { - return value; + extend(config2, bestMoment || tempConfig); } - } - function digitRegex(_ref, append) { - var numberingSystem = _ref.numberingSystem; - if (append === void 0) { - append = ""; + function configFromObject(config2) { + if (config2._d) { + return; + } + var i3 = normalizeObjectUnits(config2._i), dayOrDate = i3.day === void 0 ? i3.date : i3.day; + config2._a = map([i3.year, i3.month, dayOrDate, i3.hour, i3.minute, i3.second, i3.millisecond], function(obj) { + return obj && parseInt(obj, 10); + }); + configFromArray(config2); + } + function createFromConfig(config2) { + var res = new Moment(checkOverflow(prepareConfig(config2))); + if (res._nextDay) { + res.add(1, "d"); + res._nextDay = void 0; + } + return res; + } + function prepareConfig(config2) { + var input = config2._i, format2 = config2._f; + config2._locale = config2._locale || getLocale(config2._l); + if (input === null || format2 === void 0 && input === "") { + return createInvalid({ nullInput: true }); + } + if (typeof input === "string") { + config2._i = input = config2._locale.preparse(input); + } + if (isMoment(input)) { + return new Moment(checkOverflow(input)); + } else if (isDate2(input)) { + config2._d = input; + } else if (isArray(format2)) { + configFromStringAndArray(config2); + } else if (format2) { + configFromStringAndFormat(config2); + } else { + configFromInput(config2); + } + if (!isValid(config2)) { + config2._d = null; + } + return config2; + } + function configFromInput(config2) { + var input = config2._i; + if (isUndefined2(input)) { + config2._d = new Date(hooks.now()); + } else if (isDate2(input)) { + config2._d = new Date(input.valueOf()); + } else if (typeof input === "string") { + configFromString(config2); + } else if (isArray(input)) { + config2._a = map(input.slice(0), function(obj) { + return parseInt(obj, 10); + }); + configFromArray(config2); + } else if (isObject(input)) { + configFromObject(config2); + } else if (isNumber2(input)) { + config2._d = new Date(input); + } else { + hooks.createFromInputFallback(config2); + } } - return new RegExp("" + numberingSystems[numberingSystem || "latn"] + append); - } - var MISSING_FTP = "missing Intl.DateTimeFormat.formatToParts support"; - function intUnit(regex, post) { - if (post === void 0) { - post = function post2(i3) { - return i3; - }; + function createLocalOrUTC(input, format2, locale2, strict, isUTC) { + var c3 = {}; + if (format2 === true || format2 === false) { + strict = format2; + format2 = void 0; + } + if (locale2 === true || locale2 === false) { + strict = locale2; + locale2 = void 0; + } + if (isObject(input) && isObjectEmpty(input) || isArray(input) && input.length === 0) { + input = void 0; + } + c3._isAMomentObject = true; + c3._useUTC = c3._isUTC = isUTC; + c3._l = locale2; + c3._i = input; + c3._f = format2; + c3._strict = strict; + return createFromConfig(c3); } - return { - regex, - deser: function deser(_ref) { - var s4 = _ref[0]; - return post(parseDigits(s4)); + function createLocal(input, format2, locale2, strict) { + return createLocalOrUTC(input, format2, locale2, strict, false); + } + var prototypeMin = deprecate("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/", function() { + var other = createLocal.apply(null, arguments); + if (this.isValid() && other.isValid()) { + return other < this ? this : other; + } else { + return createInvalid(); } - }; - } - var NBSP = String.fromCharCode(160); - var spaceOrNBSP = "( |" + NBSP + ")"; - var spaceOrNBSPRegExp = new RegExp(spaceOrNBSP, "g"); - function fixListRegex(s4) { - return s4.replace(/\./g, "\\.?").replace(spaceOrNBSPRegExp, spaceOrNBSP); - } - function stripInsensitivities(s4) { - return s4.replace(/\./g, "").replace(spaceOrNBSPRegExp, " ").toLowerCase(); - } - function oneOf(strings, startIndex) { - if (strings === null) { - return null; - } else { - return { - regex: RegExp(strings.map(fixListRegex).join("|")), - deser: function deser(_ref2) { - var s4 = _ref2[0]; - return strings.findIndex(function(i3) { - return stripInsensitivities(s4) === stripInsensitivities(i3); - }) + startIndex; + }), prototypeMax = deprecate("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/", function() { + var other = createLocal.apply(null, arguments); + if (this.isValid() && other.isValid()) { + return other > this ? this : other; + } else { + return createInvalid(); + } + }); + function pickBy(fn, moments) { + var res, i3; + if (moments.length === 1 && isArray(moments[0])) { + moments = moments[0]; + } + if (!moments.length) { + return createLocal(); + } + res = moments[0]; + for (i3 = 1; i3 < moments.length; ++i3) { + if (!moments[i3].isValid() || moments[i3][fn](res)) { + res = moments[i3]; + } + } + return res; + } + function min() { + var args = [].slice.call(arguments, 0); + return pickBy("isBefore", args); + } + function max() { + var args = [].slice.call(arguments, 0); + return pickBy("isAfter", args); + } + var now2 = function() { + return Date.now ? Date.now() : +new Date(); + }; + var ordering = [ + "year", + "quarter", + "month", + "week", + "day", + "hour", + "minute", + "second", + "millisecond" + ]; + function isDurationValid(m3) { + var key, unitHasDecimal = false, i3; + for (key in m3) { + if (hasOwnProp(m3, key) && !(indexOf.call(ordering, key) !== -1 && (m3[key] == null || !isNaN(m3[key])))) { + return false; } - }; - } - } - function offset(regex, groups) { - return { - regex, - deser: function deser(_ref3) { - var h3 = _ref3[1], m2 = _ref3[2]; - return signedOffset(h3, m2); - }, - groups - }; - } - function simple(regex) { - return { - regex, - deser: function deser(_ref4) { - var s4 = _ref4[0]; - return s4; } - }; - } - function escapeToken(value) { - return value.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g, "\\$&"); - } - function unitForToken(token, loc) { - var one = digitRegex(loc), two = digitRegex(loc, "{2}"), three = digitRegex(loc, "{3}"), four = digitRegex(loc, "{4}"), six = digitRegex(loc, "{6}"), oneOrTwo = digitRegex(loc, "{1,2}"), oneToThree = digitRegex(loc, "{1,3}"), oneToSix = digitRegex(loc, "{1,6}"), oneToNine = digitRegex(loc, "{1,9}"), twoToFour = digitRegex(loc, "{2,4}"), fourToSix = digitRegex(loc, "{4,6}"), literal = function literal2(t3) { - return { - regex: RegExp(escapeToken(t3.val)), - deser: function deser(_ref5) { - var s4 = _ref5[0]; - return s4; - }, - literal: true - }; - }, unitate = function unitate2(t3) { - if (token.literal) { - return literal(t3); - } - switch (t3.val) { - case "G": - return oneOf(loc.eras("short", false), 0); - case "GG": - return oneOf(loc.eras("long", false), 0); - case "y": - return intUnit(oneToSix); - case "yy": - return intUnit(twoToFour, untruncateYear); - case "yyyy": - return intUnit(four); - case "yyyyy": - return intUnit(fourToSix); - case "yyyyyy": - return intUnit(six); - case "M": - return intUnit(oneOrTwo); - case "MM": - return intUnit(two); - case "MMM": - return oneOf(loc.months("short", true, false), 1); - case "MMMM": - return oneOf(loc.months("long", true, false), 1); - case "L": - return intUnit(oneOrTwo); - case "LL": - return intUnit(two); - case "LLL": - return oneOf(loc.months("short", false, false), 1); - case "LLLL": - return oneOf(loc.months("long", false, false), 1); - case "d": - return intUnit(oneOrTwo); - case "dd": - return intUnit(two); - case "o": - return intUnit(oneToThree); - case "ooo": - return intUnit(three); - case "HH": - return intUnit(two); - case "H": - return intUnit(oneOrTwo); - case "hh": - return intUnit(two); - case "h": - return intUnit(oneOrTwo); - case "mm": - return intUnit(two); - case "m": - return intUnit(oneOrTwo); - case "q": - return intUnit(oneOrTwo); - case "qq": - return intUnit(two); - case "s": - return intUnit(oneOrTwo); - case "ss": - return intUnit(two); - case "S": - return intUnit(oneToThree); - case "SSS": - return intUnit(three); - case "u": - return simple(oneToNine); - case "uu": - return simple(oneOrTwo); - case "uuu": - return intUnit(one); - case "a": - return oneOf(loc.meridiems(), 0); - case "kkkk": - return intUnit(four); - case "kk": - return intUnit(twoToFour, untruncateYear); - case "W": - return intUnit(oneOrTwo); - case "WW": - return intUnit(two); - case "E": - case "c": - return intUnit(one); - case "EEE": - return oneOf(loc.weekdays("short", false, false), 1); - case "EEEE": - return oneOf(loc.weekdays("long", false, false), 1); - case "ccc": - return oneOf(loc.weekdays("short", true, false), 1); - case "cccc": - return oneOf(loc.weekdays("long", true, false), 1); - case "Z": - case "ZZ": - return offset(new RegExp("([+-]" + oneOrTwo.source + ")(?::(" + two.source + "))?"), 2); - case "ZZZ": - return offset(new RegExp("([+-]" + oneOrTwo.source + ")(" + two.source + ")?"), 2); - case "z": - return simple(/[a-z_+-/]{1,256}?/i); - default: - return literal(t3); + for (i3 = 0; i3 < ordering.length; ++i3) { + if (m3[ordering[i3]]) { + if (unitHasDecimal) { + return false; + } + if (parseFloat(m3[ordering[i3]]) !== toInt(m3[ordering[i3]])) { + unitHasDecimal = true; + } + } } - }; - var unit = unitate(token) || { - invalidReason: MISSING_FTP - }; - unit.token = token; - return unit; - } - var partTypeStyleToTokenVal = { - year: { - "2-digit": "yy", - numeric: "yyyyy" - }, - month: { - numeric: "M", - "2-digit": "MM", - short: "MMM", - long: "MMMM" - }, - day: { - numeric: "d", - "2-digit": "dd" - }, - weekday: { - short: "EEE", - long: "EEEE" - }, - dayperiod: "a", - dayPeriod: "a", - hour: { - numeric: "h", - "2-digit": "hh" - }, - minute: { - numeric: "m", - "2-digit": "mm" - }, - second: { - numeric: "s", - "2-digit": "ss" + return true; } - }; - function tokenForPart(part, locale, formatOpts) { - var type = part.type, value = part.value; - if (type === "literal") { - return { - literal: true, - val: value - }; + function isValid$1() { + return this._isValid; } - var style = formatOpts[type]; - var val = partTypeStyleToTokenVal[type]; - if (typeof val === "object") { - val = val[style]; + function createInvalid$1() { + return createDuration2(NaN); } - if (val) { - return { - literal: false, - val - }; + function Duration2(duration) { + var normalizedInput = normalizeObjectUnits(duration), years2 = normalizedInput.year || 0, quarters = normalizedInput.quarter || 0, months3 = normalizedInput.month || 0, weeks2 = normalizedInput.week || normalizedInput.isoWeek || 0, days2 = normalizedInput.day || 0, hours2 = normalizedInput.hour || 0, minutes2 = normalizedInput.minute || 0, seconds2 = normalizedInput.second || 0, milliseconds2 = normalizedInput.millisecond || 0; + this._isValid = isDurationValid(normalizedInput); + this._milliseconds = +milliseconds2 + seconds2 * 1e3 + minutes2 * 6e4 + hours2 * 1e3 * 60 * 60; + this._days = +days2 + weeks2 * 7; + this._months = +months3 + quarters * 3 + years2 * 12; + this._data = {}; + this._locale = getLocale(); + this._bubble(); } - return void 0; - } - function buildRegex(units) { - var re = units.map(function(u3) { - return u3.regex; - }).reduce(function(f3, r3) { - return f3 + "(" + r3.source + ")"; - }, ""); - return ["^" + re + "$", units]; - } - function match(input, regex, handlers) { - var matches = input.match(regex); - if (matches) { - var all = {}; - var matchIndex = 1; - for (var i3 in handlers) { - if (hasOwnProperty2(handlers, i3)) { - var h3 = handlers[i3], groups = h3.groups ? h3.groups + 1 : 1; - if (!h3.literal && h3.token) { - all[h3.token.val[0]] = h3.deser(matches.slice(matchIndex, matchIndex + groups)); - } - matchIndex += groups; - } + function isDuration(obj) { + return obj instanceof Duration2; + } + function absRound(number) { + if (number < 0) { + return Math.round(-1 * number) * -1; + } else { + return Math.round(number); } - return [matches, all]; - } else { - return [matches, {}]; } - } - function dateTimeFromMatches(matches) { - var toField = function toField2(token) { - switch (token) { - case "S": - return "millisecond"; - case "s": - return "second"; - case "m": - return "minute"; - case "h": - case "H": - return "hour"; - case "d": - return "day"; - case "o": - return "ordinal"; - case "L": - case "M": - return "month"; - case "y": - return "year"; - case "E": - case "c": - return "weekday"; - case "W": - return "weekNumber"; - case "k": - return "weekYear"; - case "q": - return "quarter"; - default: - return null; + function compareArrays(array1, array2, dontConvert) { + var len = Math.min(array1.length, array2.length), lengthDiff = Math.abs(array1.length - array2.length), diffs = 0, i3; + for (i3 = 0; i3 < len; i3++) { + if (dontConvert && array1[i3] !== array2[i3] || !dontConvert && toInt(array1[i3]) !== toInt(array2[i3])) { + diffs++; + } } - }; - var zone = null; - var specificOffset; - if (!isUndefined(matches.z)) { - zone = IANAZone.create(matches.z); + return diffs + lengthDiff; + } + function offset2(token2, separator) { + addFormatToken(token2, 0, 0, function() { + var offset3 = this.utcOffset(), sign2 = "+"; + if (offset3 < 0) { + offset3 = -offset3; + sign2 = "-"; + } + return sign2 + zeroFill(~~(offset3 / 60), 2) + separator + zeroFill(~~offset3 % 60, 2); + }); } - if (!isUndefined(matches.Z)) { - if (!zone) { - zone = new FixedOffsetZone(matches.Z); + offset2("Z", ":"); + offset2("ZZ", ""); + addRegexToken("Z", matchShortOffset); + addRegexToken("ZZ", matchShortOffset); + addParseToken(["Z", "ZZ"], function(input, array, config2) { + config2._useUTC = true; + config2._tzm = offsetFromString(matchShortOffset, input); + }); + var chunkOffset = /([\+\-]|\d\d)/gi; + function offsetFromString(matcher, string) { + var matches = (string || "").match(matcher), chunk, parts, minutes2; + if (matches === null) { + return null; + } + chunk = matches[matches.length - 1] || []; + parts = (chunk + "").match(chunkOffset) || ["-", 0, 0]; + minutes2 = +(parts[1] * 60) + toInt(parts[2]); + return minutes2 === 0 ? 0 : parts[0] === "+" ? minutes2 : -minutes2; + } + function cloneWithOffset(input, model) { + var res, diff2; + if (model._isUTC) { + res = model.clone(); + diff2 = (isMoment(input) || isDate2(input) ? input.valueOf() : createLocal(input).valueOf()) - res.valueOf(); + res._d.setTime(res._d.valueOf() + diff2); + hooks.updateOffset(res, false); + return res; + } else { + return createLocal(input).local(); } - specificOffset = matches.Z; } - if (!isUndefined(matches.q)) { - matches.M = (matches.q - 1) * 3 + 1; + function getDateOffset(m3) { + return -Math.round(m3._d.getTimezoneOffset()); } - if (!isUndefined(matches.h)) { - if (matches.h < 12 && matches.a === 1) { - matches.h += 12; - } else if (matches.h === 12 && matches.a === 0) { - matches.h = 0; + hooks.updateOffset = function() { + }; + function getSetOffset(input, keepLocalTime, keepMinutes) { + var offset3 = this._offset || 0, localAdjust; + if (!this.isValid()) { + return input != null ? this : NaN; + } + if (input != null) { + if (typeof input === "string") { + input = offsetFromString(matchShortOffset, input); + if (input === null) { + return this; + } + } else if (Math.abs(input) < 16 && !keepMinutes) { + input = input * 60; + } + if (!this._isUTC && keepLocalTime) { + localAdjust = getDateOffset(this); + } + this._offset = input; + this._isUTC = true; + if (localAdjust != null) { + this.add(localAdjust, "m"); + } + if (offset3 !== input) { + if (!keepLocalTime || this._changeInProgress) { + addSubtract(this, createDuration2(input - offset3, "m"), 1, false); + } else if (!this._changeInProgress) { + this._changeInProgress = true; + hooks.updateOffset(this, true); + this._changeInProgress = null; + } + } + return this; + } else { + return this._isUTC ? offset3 : getDateOffset(this); } } - if (matches.G === 0 && matches.y) { - matches.y = -matches.y; + function getSetZone(input, keepLocalTime) { + if (input != null) { + if (typeof input !== "string") { + input = -input; + } + this.utcOffset(input, keepLocalTime); + return this; + } else { + return -this.utcOffset(); + } } - if (!isUndefined(matches.u)) { - matches.S = parseMillis(matches.u); + function setOffsetToUTC(keepLocalTime) { + return this.utcOffset(0, keepLocalTime); } - var vals = Object.keys(matches).reduce(function(r3, k2) { - var f3 = toField(k2); - if (f3) { - r3[f3] = matches[k2]; + function setOffsetToLocal(keepLocalTime) { + if (this._isUTC) { + this.utcOffset(0, keepLocalTime); + this._isUTC = false; + if (keepLocalTime) { + this.subtract(getDateOffset(this), "m"); + } } - return r3; - }, {}); - return [vals, zone, specificOffset]; - } - var dummyDateTimeCache = null; - function getDummyDateTime() { - if (!dummyDateTimeCache) { - dummyDateTimeCache = DateTime3.fromMillis(1555555555555); + return this; } - return dummyDateTimeCache; - } - function maybeExpandMacroToken(token, locale) { - if (token.literal) { - return token; + function setOffsetToParsedOffset() { + if (this._tzm != null) { + this.utcOffset(this._tzm, false, true); + } else if (typeof this._i === "string") { + var tZone = offsetFromString(matchOffset, this._i); + if (tZone != null) { + this.utcOffset(tZone); + } else { + this.utcOffset(0, true); + } + } + return this; } - var formatOpts = Formatter.macroTokenToFormatOpts(token.val); - if (!formatOpts) { - return token; + function hasAlignedHourOffset(input) { + if (!this.isValid()) { + return false; + } + input = input ? createLocal(input).utcOffset() : 0; + return (this.utcOffset() - input) % 60 === 0; } - var formatter = Formatter.create(locale, formatOpts); - var parts = formatter.formatDateTimeParts(getDummyDateTime()); - var tokens = parts.map(function(p3) { - return tokenForPart(p3, locale, formatOpts); - }); - if (tokens.includes(void 0)) { - return token; + function isDaylightSavingTime() { + return this.utcOffset() > this.clone().month(0).utcOffset() || this.utcOffset() > this.clone().month(5).utcOffset(); } - return tokens; - } - function expandMacroTokens(tokens, locale) { - var _Array$prototype; - return (_Array$prototype = Array.prototype).concat.apply(_Array$prototype, tokens.map(function(t3) { - return maybeExpandMacroToken(t3, locale); - })); - } - function explainFromTokens(locale, input, format) { - var tokens = expandMacroTokens(Formatter.parseFormat(format), locale), units = tokens.map(function(t3) { - return unitForToken(t3, locale); - }), disqualifyingUnit = units.find(function(t3) { - return t3.invalidReason; - }); - if (disqualifyingUnit) { - return { - input, - tokens, - invalidReason: disqualifyingUnit.invalidReason - }; - } else { - var _buildRegex = buildRegex(units), regexString = _buildRegex[0], handlers = _buildRegex[1], regex = RegExp(regexString, "i"), _match = match(input, regex, handlers), rawMatches = _match[0], matches = _match[1], _ref6 = matches ? dateTimeFromMatches(matches) : [null, null, void 0], result = _ref6[0], zone = _ref6[1], specificOffset = _ref6[2]; - if (hasOwnProperty2(matches, "a") && hasOwnProperty2(matches, "H")) { - throw new ConflictingSpecificationError("Can't include meridiem when specifying 24-hour format"); + function isDaylightSavingTimeShifted() { + if (!isUndefined2(this._isDSTShifted)) { + return this._isDSTShifted; } - return { - input, - tokens, - regex, - rawMatches, - matches, - result, - zone, - specificOffset - }; + var c3 = {}, other; + copyConfig(c3, this); + c3 = prepareConfig(c3); + if (c3._a) { + other = c3._isUTC ? createUTC(c3._a) : createLocal(c3._a); + this._isDSTShifted = this.isValid() && compareArrays(c3._a, other.toArray()) > 0; + } else { + this._isDSTShifted = false; + } + return this._isDSTShifted; } - } - function parseFromTokens(locale, input, format) { - var _explainFromTokens = explainFromTokens(locale, input, format), result = _explainFromTokens.result, zone = _explainFromTokens.zone, specificOffset = _explainFromTokens.specificOffset, invalidReason = _explainFromTokens.invalidReason; - return [result, zone, specificOffset, invalidReason]; - } - var nonLeapLadder = [0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334]; - var leapLadder = [0, 31, 60, 91, 121, 152, 182, 213, 244, 274, 305, 335]; - function unitOutOfRange(unit, value) { - return new Invalid("unit out of range", "you specified " + value + " (of type " + typeof value + ") as a " + unit + ", which is invalid"); - } - function dayOfWeek(year, month, day) { - var js = new Date(Date.UTC(year, month - 1, day)).getUTCDay(); - return js === 0 ? 7 : js; - } - function computeOrdinal(year, month, day) { - return day + (isLeapYear(year) ? leapLadder : nonLeapLadder)[month - 1]; - } - function uncomputeOrdinal(year, ordinal) { - var table = isLeapYear(year) ? leapLadder : nonLeapLadder, month0 = table.findIndex(function(i3) { - return i3 < ordinal; - }), day = ordinal - table[month0]; - return { - month: month0 + 1, - day - }; - } - function gregorianToWeek(gregObj) { - var year = gregObj.year, month = gregObj.month, day = gregObj.day, ordinal = computeOrdinal(year, month, day), weekday = dayOfWeek(year, month, day); - var weekNumber = Math.floor((ordinal - weekday + 10) / 7), weekYear; - if (weekNumber < 1) { - weekYear = year - 1; - weekNumber = weeksInWeekYear(weekYear); - } else if (weekNumber > weeksInWeekYear(year)) { - weekYear = year + 1; - weekNumber = 1; - } else { - weekYear = year; - } - return _extends({ - weekYear, - weekNumber, - weekday - }, timeObject(gregObj)); - } - function weekToGregorian(weekData) { - var weekYear = weekData.weekYear, weekNumber = weekData.weekNumber, weekday = weekData.weekday, weekdayOfJan4 = dayOfWeek(weekYear, 1, 4), yearInDays = daysInYear(weekYear); - var ordinal = weekNumber * 7 + weekday - weekdayOfJan4 - 3, year; - if (ordinal < 1) { - year = weekYear - 1; - ordinal += daysInYear(year); - } else if (ordinal > yearInDays) { - year = weekYear + 1; - ordinal -= daysInYear(weekYear); - } else { - year = weekYear; - } - var _uncomputeOrdinal = uncomputeOrdinal(year, ordinal), month = _uncomputeOrdinal.month, day = _uncomputeOrdinal.day; - return _extends({ - year, - month, - day - }, timeObject(weekData)); - } - function gregorianToOrdinal(gregData) { - var year = gregData.year, month = gregData.month, day = gregData.day; - var ordinal = computeOrdinal(year, month, day); - return _extends({ - year, - ordinal - }, timeObject(gregData)); - } - function ordinalToGregorian(ordinalData) { - var year = ordinalData.year, ordinal = ordinalData.ordinal; - var _uncomputeOrdinal2 = uncomputeOrdinal(year, ordinal), month = _uncomputeOrdinal2.month, day = _uncomputeOrdinal2.day; - return _extends({ - year, - month, - day - }, timeObject(ordinalData)); - } - function hasInvalidWeekData(obj) { - var validYear = isInteger(obj.weekYear), validWeek = integerBetween(obj.weekNumber, 1, weeksInWeekYear(obj.weekYear)), validWeekday = integerBetween(obj.weekday, 1, 7); - if (!validYear) { - return unitOutOfRange("weekYear", obj.weekYear); - } else if (!validWeek) { - return unitOutOfRange("week", obj.week); - } else if (!validWeekday) { - return unitOutOfRange("weekday", obj.weekday); - } else - return false; - } - function hasInvalidOrdinalData(obj) { - var validYear = isInteger(obj.year), validOrdinal = integerBetween(obj.ordinal, 1, daysInYear(obj.year)); - if (!validYear) { - return unitOutOfRange("year", obj.year); - } else if (!validOrdinal) { - return unitOutOfRange("ordinal", obj.ordinal); - } else - return false; - } - function hasInvalidGregorianData(obj) { - var validYear = isInteger(obj.year), validMonth = integerBetween(obj.month, 1, 12), validDay = integerBetween(obj.day, 1, daysInMonth(obj.year, obj.month)); - if (!validYear) { - return unitOutOfRange("year", obj.year); - } else if (!validMonth) { - return unitOutOfRange("month", obj.month); - } else if (!validDay) { - return unitOutOfRange("day", obj.day); - } else - return false; - } - function hasInvalidTimeData(obj) { - var hour = obj.hour, minute = obj.minute, second = obj.second, millisecond = obj.millisecond; - var validHour = integerBetween(hour, 0, 23) || hour === 24 && minute === 0 && second === 0 && millisecond === 0, validMinute = integerBetween(minute, 0, 59), validSecond = integerBetween(second, 0, 59), validMillisecond = integerBetween(millisecond, 0, 999); - if (!validHour) { - return unitOutOfRange("hour", hour); - } else if (!validMinute) { - return unitOutOfRange("minute", minute); - } else if (!validSecond) { - return unitOutOfRange("second", second); - } else if (!validMillisecond) { - return unitOutOfRange("millisecond", millisecond); - } else - return false; - } - var INVALID = "Invalid DateTime"; - var MAX_DATE = 864e13; - function unsupportedZone(zone) { - return new Invalid("unsupported zone", 'the zone "' + zone.name + '" is not supported'); - } - function possiblyCachedWeekData(dt) { - if (dt.weekData === null) { - dt.weekData = gregorianToWeek(dt.c); - } - return dt.weekData; - } - function clone(inst, alts) { - var current = { - ts: inst.ts, - zone: inst.zone, - c: inst.c, - o: inst.o, - loc: inst.loc, - invalid: inst.invalid - }; - return new DateTime3(_extends({}, current, alts, { - old: current - })); - } - function fixOffset(localTS, o2, tz) { - var utcGuess = localTS - o2 * 60 * 1e3; - var o22 = tz.offset(utcGuess); - if (o2 === o22) { - return [utcGuess, o2]; + function isLocal() { + return this.isValid() ? !this._isUTC : false; } - utcGuess -= (o22 - o2) * 60 * 1e3; - var o3 = tz.offset(utcGuess); - if (o22 === o3) { - return [utcGuess, o22]; + function isUtcOffset() { + return this.isValid() ? this._isUTC : false; } - return [localTS - Math.min(o22, o3) * 60 * 1e3, Math.max(o22, o3)]; - } - function tsToObj(ts, offset2) { - ts += offset2 * 60 * 1e3; - var d3 = new Date(ts); - return { - year: d3.getUTCFullYear(), - month: d3.getUTCMonth() + 1, - day: d3.getUTCDate(), - hour: d3.getUTCHours(), - minute: d3.getUTCMinutes(), - second: d3.getUTCSeconds(), - millisecond: d3.getUTCMilliseconds() - }; - } - function objToTS(obj, offset2, zone) { - return fixOffset(objToLocalTS(obj), offset2, zone); - } - function adjustTime(inst, dur) { - var oPre = inst.o, year = inst.c.year + Math.trunc(dur.years), month = inst.c.month + Math.trunc(dur.months) + Math.trunc(dur.quarters) * 3, c3 = _extends({}, inst.c, { - year, - month, - day: Math.min(inst.c.day, daysInMonth(year, month)) + Math.trunc(dur.days) + Math.trunc(dur.weeks) * 7 - }), millisToAdd = Duration3.fromObject({ - years: dur.years - Math.trunc(dur.years), - quarters: dur.quarters - Math.trunc(dur.quarters), - months: dur.months - Math.trunc(dur.months), - weeks: dur.weeks - Math.trunc(dur.weeks), - days: dur.days - Math.trunc(dur.days), - hours: dur.hours, - minutes: dur.minutes, - seconds: dur.seconds, - milliseconds: dur.milliseconds - }).as("milliseconds"), localTS = objToLocalTS(c3); - var _fixOffset = fixOffset(localTS, oPre, inst.zone), ts = _fixOffset[0], o2 = _fixOffset[1]; - if (millisToAdd !== 0) { - ts += millisToAdd; - o2 = inst.zone.offset(ts); + function isUtc() { + return this.isValid() ? this._isUTC && this._offset === 0 : false; } - return { - ts, - o: o2 - }; - } - function parseDataToDateTime(parsed, parsedZone, opts, format, text, specificOffset) { - var setZone = opts.setZone, zone = opts.zone; - if (parsed && Object.keys(parsed).length !== 0) { - var interpretationZone = parsedZone || zone, inst = DateTime3.fromObject(parsed, _extends({}, opts, { - zone: interpretationZone, - specificOffset - })); - return setZone ? inst : inst.setZone(zone); - } else { - return DateTime3.invalid(new Invalid("unparsable", 'the input "' + text + `" can't be parsed as ` + format)); - } - } - function toTechFormat(dt, format, allowZ) { - if (allowZ === void 0) { - allowZ = true; - } - return dt.isValid ? Formatter.create(Locale.create("en-US"), { - allowZ, - forceSimple: true - }).formatDateTimeFromString(dt, format) : null; - } - function _toISODate(o2, extended) { - var longFormat = o2.c.year > 9999 || o2.c.year < 0; - var c3 = ""; - if (longFormat && o2.c.year >= 0) - c3 += "+"; - c3 += padStart2(o2.c.year, longFormat ? 6 : 4); - if (extended) { - c3 += "-"; - c3 += padStart2(o2.c.month); - c3 += "-"; - c3 += padStart2(o2.c.day); - } else { - c3 += padStart2(o2.c.month); - c3 += padStart2(o2.c.day); + var aspNetRegex = /^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/, isoRegex = /^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/; + function createDuration2(input, key) { + var duration = input, match5 = null, sign2, ret, diffRes; + if (isDuration(input)) { + duration = { + ms: input._milliseconds, + d: input._days, + M: input._months + }; + } else if (isNumber2(input) || !isNaN(+input)) { + duration = {}; + if (key) { + duration[key] = +input; + } else { + duration.milliseconds = +input; + } + } else if (match5 = aspNetRegex.exec(input)) { + sign2 = match5[1] === "-" ? -1 : 1; + duration = { + y: 0, + d: toInt(match5[DATE]) * sign2, + h: toInt(match5[HOUR]) * sign2, + m: toInt(match5[MINUTE]) * sign2, + s: toInt(match5[SECOND]) * sign2, + ms: toInt(absRound(match5[MILLISECOND] * 1e3)) * sign2 + }; + } else if (match5 = isoRegex.exec(input)) { + sign2 = match5[1] === "-" ? -1 : 1; + duration = { + y: parseIso(match5[2], sign2), + M: parseIso(match5[3], sign2), + w: parseIso(match5[4], sign2), + d: parseIso(match5[5], sign2), + h: parseIso(match5[6], sign2), + m: parseIso(match5[7], sign2), + s: parseIso(match5[8], sign2) + }; + } else if (duration == null) { + duration = {}; + } else if (typeof duration === "object" && ("from" in duration || "to" in duration)) { + diffRes = momentsDifference(createLocal(duration.from), createLocal(duration.to)); + duration = {}; + duration.ms = diffRes.milliseconds; + duration.M = diffRes.months; + } + ret = new Duration2(duration); + if (isDuration(input) && hasOwnProp(input, "_locale")) { + ret._locale = input._locale; + } + if (isDuration(input) && hasOwnProp(input, "_isValid")) { + ret._isValid = input._isValid; + } + return ret; + } + createDuration2.fn = Duration2.prototype; + createDuration2.invalid = createInvalid$1; + function parseIso(inp, sign2) { + var res = inp && parseFloat(inp.replace(",", ".")); + return (isNaN(res) ? 0 : res) * sign2; + } + function positiveMomentsDifference(base, other) { + var res = {}; + res.months = other.month() - base.month() + (other.year() - base.year()) * 12; + if (base.clone().add(res.months, "M").isAfter(other)) { + --res.months; + } + res.milliseconds = +other - +base.clone().add(res.months, "M"); + return res; + } + function momentsDifference(base, other) { + var res; + if (!(base.isValid() && other.isValid())) { + return { milliseconds: 0, months: 0 }; + } + other = cloneWithOffset(other, base); + if (base.isBefore(other)) { + res = positiveMomentsDifference(base, other); + } else { + res = positiveMomentsDifference(other, base); + res.milliseconds = -res.milliseconds; + res.months = -res.months; + } + return res; + } + function createAdder(direction, name) { + return function(val, period) { + var dur, tmp; + if (period !== null && !isNaN(+period)) { + deprecateSimple(name, "moment()." + name + "(period, number) is deprecated. Please use moment()." + name + "(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."); + tmp = val; + val = period; + period = tmp; + } + dur = createDuration2(val, period); + addSubtract(this, dur, direction); + return this; + }; } - return c3; - } - function _toISOTime(o2, extended, suppressSeconds, suppressMilliseconds, includeOffset) { - var c3 = padStart2(o2.c.hour); - if (extended) { - c3 += ":"; - c3 += padStart2(o2.c.minute); - if (o2.c.second !== 0 || !suppressSeconds) { - c3 += ":"; + function addSubtract(mom, duration, isAdding, updateOffset) { + var milliseconds2 = duration._milliseconds, days2 = absRound(duration._days), months3 = absRound(duration._months); + if (!mom.isValid()) { + return; } - } else { - c3 += padStart2(o2.c.minute); - } - if (o2.c.second !== 0 || !suppressSeconds) { - c3 += padStart2(o2.c.second); - if (o2.c.millisecond !== 0 || !suppressMilliseconds) { - c3 += "."; - c3 += padStart2(o2.c.millisecond, 3); - } - } - if (includeOffset) { - if (o2.isOffsetFixed && o2.offset === 0) { - c3 += "Z"; - } else if (o2.o < 0) { - c3 += "-"; - c3 += padStart2(Math.trunc(-o2.o / 60)); - c3 += ":"; - c3 += padStart2(Math.trunc(-o2.o % 60)); + updateOffset = updateOffset == null ? true : updateOffset; + if (months3) { + setMonth(mom, get(mom, "Month") + months3 * isAdding); + } + if (days2) { + set$1(mom, "Date", get(mom, "Date") + days2 * isAdding); + } + if (milliseconds2) { + mom._d.setTime(mom._d.valueOf() + milliseconds2 * isAdding); + } + if (updateOffset) { + hooks.updateOffset(mom, days2 || months3); + } + } + var add2 = createAdder(1, "add"), subtract = createAdder(-1, "subtract"); + function isString2(input) { + return typeof input === "string" || input instanceof String; + } + function isMomentInput(input) { + return isMoment(input) || isDate2(input) || isString2(input) || isNumber2(input) || isNumberOrStringArray(input) || isMomentInputObject(input) || input === null || input === void 0; + } + function isMomentInputObject(input) { + var objectTest = isObject(input) && !isObjectEmpty(input), propertyTest = false, properties = [ + "years", + "year", + "y", + "months", + "month", + "M", + "days", + "day", + "d", + "dates", + "date", + "D", + "hours", + "hour", + "h", + "minutes", + "minute", + "m", + "seconds", + "second", + "s", + "milliseconds", + "millisecond", + "ms" + ], i3, property; + for (i3 = 0; i3 < properties.length; i3 += 1) { + property = properties[i3]; + propertyTest = propertyTest || hasOwnProp(input, property); + } + return objectTest && propertyTest; + } + function isNumberOrStringArray(input) { + var arrayTest = isArray(input), dataTypeTest = false; + if (arrayTest) { + dataTypeTest = input.filter(function(item) { + return !isNumber2(item) && isString2(input); + }).length === 0; + } + return arrayTest && dataTypeTest; + } + function isCalendarSpec(input) { + var objectTest = isObject(input) && !isObjectEmpty(input), propertyTest = false, properties = [ + "sameDay", + "nextDay", + "lastDay", + "nextWeek", + "lastWeek", + "sameElse" + ], i3, property; + for (i3 = 0; i3 < properties.length; i3 += 1) { + property = properties[i3]; + propertyTest = propertyTest || hasOwnProp(input, property); + } + return objectTest && propertyTest; + } + function getCalendarFormat(myMoment, now3) { + var diff2 = myMoment.diff(now3, "days", true); + return diff2 < -6 ? "sameElse" : diff2 < -1 ? "lastWeek" : diff2 < 0 ? "lastDay" : diff2 < 1 ? "sameDay" : diff2 < 2 ? "nextDay" : diff2 < 7 ? "nextWeek" : "sameElse"; + } + function calendar$1(time, formats) { + if (arguments.length === 1) { + if (!arguments[0]) { + time = void 0; + formats = void 0; + } else if (isMomentInput(arguments[0])) { + time = arguments[0]; + formats = void 0; + } else if (isCalendarSpec(arguments[0])) { + formats = arguments[0]; + time = void 0; + } + } + var now3 = time || createLocal(), sod = cloneWithOffset(now3, this).startOf("day"), format2 = hooks.calendarFormat(this, sod) || "sameElse", output = formats && (isFunction(formats[format2]) ? formats[format2].call(this, now3) : formats[format2]); + return this.format(output || this.localeData().calendar(format2, this, createLocal(now3))); + } + function clone3() { + return new Moment(this); + } + function isAfter(input, units) { + var localInput = isMoment(input) ? input : createLocal(input); + if (!(this.isValid() && localInput.isValid())) { + return false; + } + units = normalizeUnits(units) || "millisecond"; + if (units === "millisecond") { + return this.valueOf() > localInput.valueOf(); } else { - c3 += "+"; - c3 += padStart2(Math.trunc(o2.o / 60)); - c3 += ":"; - c3 += padStart2(Math.trunc(o2.o % 60)); + return localInput.valueOf() < this.clone().startOf(units).valueOf(); } } - return c3; - } - var defaultUnitValues = { - month: 1, - day: 1, - hour: 0, - minute: 0, - second: 0, - millisecond: 0 - }; - var defaultWeekUnitValues = { - weekNumber: 1, - weekday: 1, - hour: 0, - minute: 0, - second: 0, - millisecond: 0 - }; - var defaultOrdinalUnitValues = { - ordinal: 1, - hour: 0, - minute: 0, - second: 0, - millisecond: 0 - }; - var orderedUnits = ["year", "month", "day", "hour", "minute", "second", "millisecond"]; - var orderedWeekUnits = ["weekYear", "weekNumber", "weekday", "hour", "minute", "second", "millisecond"]; - var orderedOrdinalUnits = ["year", "ordinal", "hour", "minute", "second", "millisecond"]; - function normalizeUnit(unit) { - var normalized = { - year: "year", - years: "year", - month: "month", - months: "month", - day: "day", - days: "day", - hour: "hour", - hours: "hour", - minute: "minute", - minutes: "minute", - quarter: "quarter", - quarters: "quarter", - second: "second", - seconds: "second", - millisecond: "millisecond", - milliseconds: "millisecond", - weekday: "weekday", - weekdays: "weekday", - weeknumber: "weekNumber", - weeksnumber: "weekNumber", - weeknumbers: "weekNumber", - weekyear: "weekYear", - weekyears: "weekYear", - ordinal: "ordinal" - }[unit.toLowerCase()]; - if (!normalized) - throw new InvalidUnitError(unit); - return normalized; - } - function quickDT(obj, opts) { - var zone = normalizeZone(opts.zone, Settings.defaultZone), loc = Locale.fromObject(opts), tsNow = Settings.now(); - var ts, o2; - if (!isUndefined(obj.year)) { - for (var _iterator = _createForOfIteratorHelperLoose(orderedUnits), _step; !(_step = _iterator()).done; ) { - var u3 = _step.value; - if (isUndefined(obj[u3])) { - obj[u3] = defaultUnitValues[u3]; - } - } - var invalid = hasInvalidGregorianData(obj) || hasInvalidTimeData(obj); - if (invalid) { - return DateTime3.invalid(invalid); - } - var offsetProvis = zone.offset(tsNow); - var _objToTS = objToTS(obj, offsetProvis, zone); - ts = _objToTS[0]; - o2 = _objToTS[1]; - } else { - ts = tsNow; - } - return new DateTime3({ - ts, - zone, - loc, - o: o2 - }); - } - function diffRelative(start, end, opts) { - var round = isUndefined(opts.round) ? true : opts.round, format = function format2(c3, unit2) { - c3 = roundTo(c3, round || opts.calendary ? 0 : 2, true); - var formatter = end.loc.clone(opts).relFormatter(opts); - return formatter.format(c3, unit2); - }, differ = function differ2(unit2) { - if (opts.calendary) { - if (!end.hasSame(start, unit2)) { - return end.startOf(unit2).diff(start.startOf(unit2), unit2).get(unit2); - } else - return 0; + function isBefore(input, units) { + var localInput = isMoment(input) ? input : createLocal(input); + if (!(this.isValid() && localInput.isValid())) { + return false; + } + units = normalizeUnits(units) || "millisecond"; + if (units === "millisecond") { + return this.valueOf() < localInput.valueOf(); } else { - return end.diff(start, unit2).get(unit2); + return this.clone().endOf(units).valueOf() < localInput.valueOf(); } - }; - if (opts.unit) { - return format(differ(opts.unit), opts.unit); } - for (var _iterator2 = _createForOfIteratorHelperLoose(opts.units), _step2; !(_step2 = _iterator2()).done; ) { - var unit = _step2.value; - var count = differ(unit); - if (Math.abs(count) >= 1) { - return format(count, unit); + function isBetween(from2, to2, units, inclusivity) { + var localFrom = isMoment(from2) ? from2 : createLocal(from2), localTo = isMoment(to2) ? to2 : createLocal(to2); + if (!(this.isValid() && localFrom.isValid() && localTo.isValid())) { + return false; } + inclusivity = inclusivity || "()"; + return (inclusivity[0] === "(" ? this.isAfter(localFrom, units) : !this.isBefore(localFrom, units)) && (inclusivity[1] === ")" ? this.isBefore(localTo, units) : !this.isAfter(localTo, units)); } - return format(start > end ? -0 : 0, opts.units[opts.units.length - 1]); - } - function lastOpts(argList) { - var opts = {}, args; - if (argList.length > 0 && typeof argList[argList.length - 1] === "object") { - opts = argList[argList.length - 1]; - args = Array.from(argList).slice(0, argList.length - 1); - } else { - args = Array.from(argList); - } - return [opts, args]; - } - var DateTime3 = /* @__PURE__ */ function() { - function DateTime4(config2) { - var zone = config2.zone || Settings.defaultZone; - var invalid = config2.invalid || (Number.isNaN(config2.ts) ? new Invalid("invalid input") : null) || (!zone.isValid ? unsupportedZone(zone) : null); - this.ts = isUndefined(config2.ts) ? Settings.now() : config2.ts; - var c3 = null, o2 = null; - if (!invalid) { - var unchanged = config2.old && config2.old.ts === this.ts && config2.old.zone.equals(zone); - if (unchanged) { - var _ref = [config2.old.c, config2.old.o]; - c3 = _ref[0]; - o2 = _ref[1]; - } else { - var ot = zone.offset(this.ts); - c3 = tsToObj(this.ts, ot); - invalid = Number.isNaN(c3.year) ? new Invalid("invalid input") : null; - c3 = invalid ? null : c3; - o2 = invalid ? null : ot; - } - } - this._zone = zone; - this.loc = config2.loc || Locale.create(); - this.invalid = invalid; - this.weekData = null; - this.c = c3; - this.o = o2; - this.isLuxonDateTime = true; - } - DateTime4.now = function now2() { - return new DateTime4({}); - }; - DateTime4.local = function local() { - var _lastOpts = lastOpts(arguments), opts = _lastOpts[0], args = _lastOpts[1], year = args[0], month = args[1], day = args[2], hour = args[3], minute = args[4], second = args[5], millisecond = args[6]; - return quickDT({ - year, - month, - day, - hour, - minute, - second, - millisecond - }, opts); - }; - DateTime4.utc = function utc() { - var _lastOpts2 = lastOpts(arguments), opts = _lastOpts2[0], args = _lastOpts2[1], year = args[0], month = args[1], day = args[2], hour = args[3], minute = args[4], second = args[5], millisecond = args[6]; - opts.zone = FixedOffsetZone.utcInstance; - return quickDT({ - year, - month, - day, - hour, - minute, - second, - millisecond - }, opts); - }; - DateTime4.fromJSDate = function fromJSDate(date, options) { - if (options === void 0) { - options = {}; + function isSame(input, units) { + var localInput = isMoment(input) ? input : createLocal(input), inputMs; + if (!(this.isValid() && localInput.isValid())) { + return false; } - var ts = isDate(date) ? date.valueOf() : NaN; - if (Number.isNaN(ts)) { - return DateTime4.invalid("invalid input"); + units = normalizeUnits(units) || "millisecond"; + if (units === "millisecond") { + return this.valueOf() === localInput.valueOf(); + } else { + inputMs = localInput.valueOf(); + return this.clone().startOf(units).valueOf() <= inputMs && inputMs <= this.clone().endOf(units).valueOf(); } - var zoneToUse = normalizeZone(options.zone, Settings.defaultZone); - if (!zoneToUse.isValid) { - return DateTime4.invalid(unsupportedZone(zoneToUse)); + } + function isSameOrAfter(input, units) { + return this.isSame(input, units) || this.isAfter(input, units); + } + function isSameOrBefore(input, units) { + return this.isSame(input, units) || this.isBefore(input, units); + } + function diff(input, units, asFloat) { + var that, zoneDelta, output; + if (!this.isValid()) { + return NaN; } - return new DateTime4({ - ts, - zone: zoneToUse, - loc: Locale.fromObject(options) - }); - }; - DateTime4.fromMillis = function fromMillis(milliseconds, options) { - if (options === void 0) { - options = {}; + that = cloneWithOffset(input, this); + if (!that.isValid()) { + return NaN; } - if (!isNumber(milliseconds)) { - throw new InvalidArgumentError("fromMillis requires a numerical input, but received a " + typeof milliseconds + " with value " + milliseconds); - } else if (milliseconds < -MAX_DATE || milliseconds > MAX_DATE) { - return DateTime4.invalid("Timestamp out of range"); - } else { - return new DateTime4({ - ts: milliseconds, - zone: normalizeZone(options.zone, Settings.defaultZone), - loc: Locale.fromObject(options) - }); + zoneDelta = (that.utcOffset() - this.utcOffset()) * 6e4; + units = normalizeUnits(units); + switch (units) { + case "year": + output = monthDiff(this, that) / 12; + break; + case "month": + output = monthDiff(this, that); + break; + case "quarter": + output = monthDiff(this, that) / 3; + break; + case "second": + output = (this - that) / 1e3; + break; + case "minute": + output = (this - that) / 6e4; + break; + case "hour": + output = (this - that) / 36e5; + break; + case "day": + output = (this - that - zoneDelta) / 864e5; + break; + case "week": + output = (this - that - zoneDelta) / 6048e5; + break; + default: + output = this - that; } - }; - DateTime4.fromSeconds = function fromSeconds(seconds, options) { - if (options === void 0) { - options = {}; + return asFloat ? output : absFloor(output); + } + function monthDiff(a3, b3) { + if (a3.date() < b3.date()) { + return -monthDiff(b3, a3); } - if (!isNumber(seconds)) { - throw new InvalidArgumentError("fromSeconds requires a numerical input"); + var wholeMonthDiff = (b3.year() - a3.year()) * 12 + (b3.month() - a3.month()), anchor = a3.clone().add(wholeMonthDiff, "months"), anchor2, adjust; + if (b3 - anchor < 0) { + anchor2 = a3.clone().add(wholeMonthDiff - 1, "months"); + adjust = (b3 - anchor) / (anchor - anchor2); } else { - return new DateTime4({ - ts: seconds * 1e3, - zone: normalizeZone(options.zone, Settings.defaultZone), - loc: Locale.fromObject(options) - }); + anchor2 = a3.clone().add(wholeMonthDiff + 1, "months"); + adjust = (b3 - anchor) / (anchor2 - anchor); } - }; - DateTime4.fromObject = function fromObject(obj, opts) { - if (opts === void 0) { - opts = {}; - } - obj = obj || {}; - var zoneToUse = normalizeZone(opts.zone, Settings.defaultZone); - if (!zoneToUse.isValid) { - return DateTime4.invalid(unsupportedZone(zoneToUse)); - } - var tsNow = Settings.now(), offsetProvis = !isUndefined(opts.specificOffset) ? opts.specificOffset : zoneToUse.offset(tsNow), normalized = normalizeObject(obj, normalizeUnit), containsOrdinal = !isUndefined(normalized.ordinal), containsGregorYear = !isUndefined(normalized.year), containsGregorMD = !isUndefined(normalized.month) || !isUndefined(normalized.day), containsGregor = containsGregorYear || containsGregorMD, definiteWeekDef = normalized.weekYear || normalized.weekNumber, loc = Locale.fromObject(opts); - if ((containsGregor || containsOrdinal) && definiteWeekDef) { - throw new ConflictingSpecificationError("Can't mix weekYear/weekNumber units with year/month/day or ordinals"); - } - if (containsGregorMD && containsOrdinal) { - throw new ConflictingSpecificationError("Can't mix ordinal dates with month/day"); - } - var useWeekData = definiteWeekDef || normalized.weekday && !containsGregor; - var units, defaultValues, objNow = tsToObj(tsNow, offsetProvis); - if (useWeekData) { - units = orderedWeekUnits; - defaultValues = defaultWeekUnitValues; - objNow = gregorianToWeek(objNow); - } else if (containsOrdinal) { - units = orderedOrdinalUnits; - defaultValues = defaultOrdinalUnitValues; - objNow = gregorianToOrdinal(objNow); - } else { - units = orderedUnits; - defaultValues = defaultUnitValues; - } - var foundFirst = false; - for (var _iterator3 = _createForOfIteratorHelperLoose(units), _step3; !(_step3 = _iterator3()).done; ) { - var u3 = _step3.value; - var v3 = normalized[u3]; - if (!isUndefined(v3)) { - foundFirst = true; - } else if (foundFirst) { - normalized[u3] = defaultValues[u3]; + return -(wholeMonthDiff + adjust) || 0; + } + hooks.defaultFormat = "YYYY-MM-DDTHH:mm:ssZ"; + hooks.defaultFormatUtc = "YYYY-MM-DDTHH:mm:ss[Z]"; + function toString() { + return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ"); + } + function toISOString(keepOffset) { + if (!this.isValid()) { + return null; + } + var utc = keepOffset !== true, m3 = utc ? this.clone().utc() : this; + if (m3.year() < 0 || m3.year() > 9999) { + return formatMoment(m3, utc ? "YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]" : "YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"); + } + if (isFunction(Date.prototype.toISOString)) { + if (utc) { + return this.toDate().toISOString(); } else { - normalized[u3] = objNow[u3]; + return new Date(this.valueOf() + this.utcOffset() * 60 * 1e3).toISOString().replace("Z", formatMoment(m3, "Z")); } } - var higherOrderInvalid = useWeekData ? hasInvalidWeekData(normalized) : containsOrdinal ? hasInvalidOrdinalData(normalized) : hasInvalidGregorianData(normalized), invalid = higherOrderInvalid || hasInvalidTimeData(normalized); - if (invalid) { - return DateTime4.invalid(invalid); + return formatMoment(m3, utc ? "YYYY-MM-DD[T]HH:mm:ss.SSS[Z]" : "YYYY-MM-DD[T]HH:mm:ss.SSSZ"); + } + function inspect() { + if (!this.isValid()) { + return "moment.invalid(/* " + this._i + " */)"; } - var gregorian = useWeekData ? weekToGregorian(normalized) : containsOrdinal ? ordinalToGregorian(normalized) : normalized, _objToTS2 = objToTS(gregorian, offsetProvis, zoneToUse), tsFinal = _objToTS2[0], offsetFinal = _objToTS2[1], inst = new DateTime4({ - ts: tsFinal, - zone: zoneToUse, - o: offsetFinal, - loc - }); - if (normalized.weekday && containsGregor && obj.weekday !== inst.weekday) { - return DateTime4.invalid("mismatched weekday", "you can't specify both a weekday of " + normalized.weekday + " and a date of " + inst.toISO()); + var func = "moment", zone = "", prefix, year, datetime, suffix; + if (!this.isLocal()) { + func = this.utcOffset() === 0 ? "moment.utc" : "moment.parseZone"; + zone = "Z"; } - return inst; - }; - DateTime4.fromISO = function fromISO(text, opts) { - if (opts === void 0) { - opts = {}; + prefix = "[" + func + '("]'; + year = 0 <= this.year() && this.year() <= 9999 ? "YYYY" : "YYYYYY"; + datetime = "-MM-DD[T]HH:mm:ss.SSS"; + suffix = zone + '[")]'; + return this.format(prefix + year + datetime + suffix); + } + function format(inputString) { + if (!inputString) { + inputString = this.isUtc() ? hooks.defaultFormatUtc : hooks.defaultFormat; } - var _parseISODate = parseISODate(text), vals = _parseISODate[0], parsedZone = _parseISODate[1]; - return parseDataToDateTime(vals, parsedZone, opts, "ISO 8601", text); - }; - DateTime4.fromRFC2822 = function fromRFC2822(text, opts) { - if (opts === void 0) { - opts = {}; + var output = formatMoment(this, inputString); + return this.localeData().postformat(output); + } + function from(time, withoutSuffix) { + if (this.isValid() && (isMoment(time) && time.isValid() || createLocal(time).isValid())) { + return createDuration2({ to: this, from: time }).locale(this.locale()).humanize(!withoutSuffix); + } else { + return this.localeData().invalidDate(); } - var _parseRFC2822Date = parseRFC2822Date(text), vals = _parseRFC2822Date[0], parsedZone = _parseRFC2822Date[1]; - return parseDataToDateTime(vals, parsedZone, opts, "RFC 2822", text); - }; - DateTime4.fromHTTP = function fromHTTP(text, opts) { - if (opts === void 0) { - opts = {}; + } + function fromNow(withoutSuffix) { + return this.from(createLocal(), withoutSuffix); + } + function to(time, withoutSuffix) { + if (this.isValid() && (isMoment(time) && time.isValid() || createLocal(time).isValid())) { + return createDuration2({ from: this, to: time }).locale(this.locale()).humanize(!withoutSuffix); + } else { + return this.localeData().invalidDate(); } - var _parseHTTPDate = parseHTTPDate(text), vals = _parseHTTPDate[0], parsedZone = _parseHTTPDate[1]; - return parseDataToDateTime(vals, parsedZone, opts, "HTTP", opts); - }; - DateTime4.fromFormat = function fromFormat(text, fmt, opts) { - if (opts === void 0) { - opts = {}; - } - if (isUndefined(text) || isUndefined(fmt)) { - throw new InvalidArgumentError("fromFormat requires an input string and a format"); - } - var _opts = opts, _opts$locale = _opts.locale, locale = _opts$locale === void 0 ? null : _opts$locale, _opts$numberingSystem = _opts.numberingSystem, numberingSystem = _opts$numberingSystem === void 0 ? null : _opts$numberingSystem, localeToUse = Locale.fromOpts({ - locale, - numberingSystem, - defaultToEN: true - }), _parseFromTokens = parseFromTokens(localeToUse, text, fmt), vals = _parseFromTokens[0], parsedZone = _parseFromTokens[1], specificOffset = _parseFromTokens[2], invalid = _parseFromTokens[3]; - if (invalid) { - return DateTime4.invalid(invalid); + } + function toNow(withoutSuffix) { + return this.to(createLocal(), withoutSuffix); + } + function locale(key) { + var newLocaleData; + if (key === void 0) { + return this._locale._abbr; } else { - return parseDataToDateTime(vals, parsedZone, opts, "format " + fmt, text, specificOffset); + newLocaleData = getLocale(key); + if (newLocaleData != null) { + this._locale = newLocaleData; + } + return this; } - }; - DateTime4.fromString = function fromString(text, fmt, opts) { - if (opts === void 0) { - opts = {}; + } + var lang = deprecate("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.", function(key) { + if (key === void 0) { + return this.localeData(); + } else { + return this.locale(key); } - return DateTime4.fromFormat(text, fmt, opts); - }; - DateTime4.fromSQL = function fromSQL(text, opts) { - if (opts === void 0) { - opts = {}; + }); + function localeData() { + return this._locale; + } + var MS_PER_SECOND = 1e3, MS_PER_MINUTE = 60 * MS_PER_SECOND, MS_PER_HOUR = 60 * MS_PER_MINUTE, MS_PER_400_YEARS = (365 * 400 + 97) * 24 * MS_PER_HOUR; + function mod$1(dividend, divisor) { + return (dividend % divisor + divisor) % divisor; + } + function localStartOfDate(y3, m3, d2) { + if (y3 < 100 && y3 >= 0) { + return new Date(y3 + 400, m3, d2) - MS_PER_400_YEARS; + } else { + return new Date(y3, m3, d2).valueOf(); } - var _parseSQL = parseSQL(text), vals = _parseSQL[0], parsedZone = _parseSQL[1]; - return parseDataToDateTime(vals, parsedZone, opts, "SQL", text); - }; - DateTime4.invalid = function invalid(reason, explanation) { - if (explanation === void 0) { - explanation = null; + } + function utcStartOfDate(y3, m3, d2) { + if (y3 < 100 && y3 >= 0) { + return Date.UTC(y3 + 400, m3, d2) - MS_PER_400_YEARS; + } else { + return Date.UTC(y3, m3, d2); } - if (!reason) { - throw new InvalidArgumentError("need to specify a reason the DateTime is invalid"); + } + function startOf(units) { + var time, startOfDate; + units = normalizeUnits(units); + if (units === void 0 || units === "millisecond" || !this.isValid()) { + return this; } - var invalid2 = reason instanceof Invalid ? reason : new Invalid(reason, explanation); - if (Settings.throwOnInvalid) { - throw new InvalidDateTimeError(invalid2); - } else { - return new DateTime4({ - invalid: invalid2 - }); + startOfDate = this._isUTC ? utcStartOfDate : localStartOfDate; + switch (units) { + case "year": + time = startOfDate(this.year(), 0, 1); + break; + case "quarter": + time = startOfDate(this.year(), this.month() - this.month() % 3, 1); + break; + case "month": + time = startOfDate(this.year(), this.month(), 1); + break; + case "week": + time = startOfDate(this.year(), this.month(), this.date() - this.weekday()); + break; + case "isoWeek": + time = startOfDate(this.year(), this.month(), this.date() - (this.isoWeekday() - 1)); + break; + case "day": + case "date": + time = startOfDate(this.year(), this.month(), this.date()); + break; + case "hour": + time = this._d.valueOf(); + time -= mod$1(time + (this._isUTC ? 0 : this.utcOffset() * MS_PER_MINUTE), MS_PER_HOUR); + break; + case "minute": + time = this._d.valueOf(); + time -= mod$1(time, MS_PER_MINUTE); + break; + case "second": + time = this._d.valueOf(); + time -= mod$1(time, MS_PER_SECOND); + break; } - }; - DateTime4.isDateTime = function isDateTime(o2) { - return o2 && o2.isLuxonDateTime || false; - }; - var _proto = DateTime4.prototype; - _proto.get = function get(unit) { - return this[unit]; - }; - _proto.resolvedLocaleOptions = function resolvedLocaleOptions(opts) { - if (opts === void 0) { - opts = {}; + this._d.setTime(time); + hooks.updateOffset(this, true); + return this; + } + function endOf(units) { + var time, startOfDate; + units = normalizeUnits(units); + if (units === void 0 || units === "millisecond" || !this.isValid()) { + return this; } - var _Formatter$create$res = Formatter.create(this.loc.clone(opts), opts).resolvedOptions(this), locale = _Formatter$create$res.locale, numberingSystem = _Formatter$create$res.numberingSystem, calendar = _Formatter$create$res.calendar; + startOfDate = this._isUTC ? utcStartOfDate : localStartOfDate; + switch (units) { + case "year": + time = startOfDate(this.year() + 1, 0, 1) - 1; + break; + case "quarter": + time = startOfDate(this.year(), this.month() - this.month() % 3 + 3, 1) - 1; + break; + case "month": + time = startOfDate(this.year(), this.month() + 1, 1) - 1; + break; + case "week": + time = startOfDate(this.year(), this.month(), this.date() - this.weekday() + 7) - 1; + break; + case "isoWeek": + time = startOfDate(this.year(), this.month(), this.date() - (this.isoWeekday() - 1) + 7) - 1; + break; + case "day": + case "date": + time = startOfDate(this.year(), this.month(), this.date() + 1) - 1; + break; + case "hour": + time = this._d.valueOf(); + time += MS_PER_HOUR - mod$1(time + (this._isUTC ? 0 : this.utcOffset() * MS_PER_MINUTE), MS_PER_HOUR) - 1; + break; + case "minute": + time = this._d.valueOf(); + time += MS_PER_MINUTE - mod$1(time, MS_PER_MINUTE) - 1; + break; + case "second": + time = this._d.valueOf(); + time += MS_PER_SECOND - mod$1(time, MS_PER_SECOND) - 1; + break; + } + this._d.setTime(time); + hooks.updateOffset(this, true); + return this; + } + function valueOf() { + return this._d.valueOf() - (this._offset || 0) * 6e4; + } + function unix() { + return Math.floor(this.valueOf() / 1e3); + } + function toDate() { + return new Date(this.valueOf()); + } + function toArray() { + var m3 = this; + return [ + m3.year(), + m3.month(), + m3.date(), + m3.hour(), + m3.minute(), + m3.second(), + m3.millisecond() + ]; + } + function toObject() { + var m3 = this; return { - locale, - numberingSystem, - outputCalendar: calendar + years: m3.year(), + months: m3.month(), + date: m3.date(), + hours: m3.hours(), + minutes: m3.minutes(), + seconds: m3.seconds(), + milliseconds: m3.milliseconds() }; - }; - _proto.toUTC = function toUTC(offset2, opts) { - if (offset2 === void 0) { - offset2 = 0; - } - if (opts === void 0) { - opts = {}; - } - return this.setZone(FixedOffsetZone.instance(offset2), opts); - }; - _proto.toLocal = function toLocal() { - return this.setZone(Settings.defaultZone); - }; - _proto.setZone = function setZone(zone, _temp) { - var _ref2 = _temp === void 0 ? {} : _temp, _ref2$keepLocalTime = _ref2.keepLocalTime, keepLocalTime = _ref2$keepLocalTime === void 0 ? false : _ref2$keepLocalTime, _ref2$keepCalendarTim = _ref2.keepCalendarTime, keepCalendarTime = _ref2$keepCalendarTim === void 0 ? false : _ref2$keepCalendarTim; - zone = normalizeZone(zone, Settings.defaultZone); - if (zone.equals(this.zone)) { - return this; - } else if (!zone.isValid) { - return DateTime4.invalid(unsupportedZone(zone)); + } + function toJSON() { + return this.isValid() ? this.toISOString() : null; + } + function isValid$2() { + return isValid(this); + } + function parsingFlags() { + return extend({}, getParsingFlags(this)); + } + function invalidAt() { + return getParsingFlags(this).overflow; + } + function creationData() { + return { + input: this._i, + format: this._f, + locale: this._locale, + isUTC: this._isUTC, + strict: this._strict + }; + } + addFormatToken("N", 0, 0, "eraAbbr"); + addFormatToken("NN", 0, 0, "eraAbbr"); + addFormatToken("NNN", 0, 0, "eraAbbr"); + addFormatToken("NNNN", 0, 0, "eraName"); + addFormatToken("NNNNN", 0, 0, "eraNarrow"); + addFormatToken("y", ["y", 1], "yo", "eraYear"); + addFormatToken("y", ["yy", 2], 0, "eraYear"); + addFormatToken("y", ["yyy", 3], 0, "eraYear"); + addFormatToken("y", ["yyyy", 4], 0, "eraYear"); + addRegexToken("N", matchEraAbbr); + addRegexToken("NN", matchEraAbbr); + addRegexToken("NNN", matchEraAbbr); + addRegexToken("NNNN", matchEraName); + addRegexToken("NNNNN", matchEraNarrow); + addParseToken(["N", "NN", "NNN", "NNNN", "NNNNN"], function(input, array, config2, token2) { + var era = config2._locale.erasParse(input, token2, config2._strict); + if (era) { + getParsingFlags(config2).era = era; } else { - var newTS = this.ts; - if (keepLocalTime || keepCalendarTime) { - var offsetGuess = zone.offset(this.ts); - var asObj = this.toObject(); - var _objToTS3 = objToTS(asObj, offsetGuess, zone); - newTS = _objToTS3[0]; - } - return clone(this, { - ts: newTS, - zone - }); + getParsingFlags(config2).invalidEra = input; } - }; - _proto.reconfigure = function reconfigure(_temp2) { - var _ref3 = _temp2 === void 0 ? {} : _temp2, locale = _ref3.locale, numberingSystem = _ref3.numberingSystem, outputCalendar = _ref3.outputCalendar; - var loc = this.loc.clone({ - locale, - numberingSystem, - outputCalendar - }); - return clone(this, { - loc - }); - }; - _proto.setLocale = function setLocale(locale) { - return this.reconfigure({ - locale - }); - }; - _proto.set = function set(values) { - if (!this.isValid) - return this; - var normalized = normalizeObject(values, normalizeUnit), settingWeekStuff = !isUndefined(normalized.weekYear) || !isUndefined(normalized.weekNumber) || !isUndefined(normalized.weekday), containsOrdinal = !isUndefined(normalized.ordinal), containsGregorYear = !isUndefined(normalized.year), containsGregorMD = !isUndefined(normalized.month) || !isUndefined(normalized.day), containsGregor = containsGregorYear || containsGregorMD, definiteWeekDef = normalized.weekYear || normalized.weekNumber; - if ((containsGregor || containsOrdinal) && definiteWeekDef) { - throw new ConflictingSpecificationError("Can't mix weekYear/weekNumber units with year/month/day or ordinals"); - } - if (containsGregorMD && containsOrdinal) { - throw new ConflictingSpecificationError("Can't mix ordinal dates with month/day"); - } - var mixed; - if (settingWeekStuff) { - mixed = weekToGregorian(_extends({}, gregorianToWeek(this.c), normalized)); - } else if (!isUndefined(normalized.ordinal)) { - mixed = ordinalToGregorian(_extends({}, gregorianToOrdinal(this.c), normalized)); + }); + addRegexToken("y", matchUnsigned); + addRegexToken("yy", matchUnsigned); + addRegexToken("yyy", matchUnsigned); + addRegexToken("yyyy", matchUnsigned); + addRegexToken("yo", matchEraYearOrdinal); + addParseToken(["y", "yy", "yyy", "yyyy"], YEAR); + addParseToken(["yo"], function(input, array, config2, token2) { + var match5; + if (config2._locale._eraYearOrdinalRegex) { + match5 = input.match(config2._locale._eraYearOrdinalRegex); + } + if (config2._locale.eraYearOrdinalParse) { + array[YEAR] = config2._locale.eraYearOrdinalParse(input, match5); } else { - mixed = _extends({}, this.toObject(), normalized); - if (isUndefined(normalized.day)) { - mixed.day = Math.min(daysInMonth(mixed.year, mixed.month), mixed.day); + array[YEAR] = parseInt(input, 10); + } + }); + function localeEras(m3, format2) { + var i3, l4, date, eras2 = this._eras || getLocale("en")._eras; + for (i3 = 0, l4 = eras2.length; i3 < l4; ++i3) { + switch (typeof eras2[i3].since) { + case "string": + date = hooks(eras2[i3].since).startOf("day"); + eras2[i3].since = date.valueOf(); + break; + } + switch (typeof eras2[i3].until) { + case "undefined": + eras2[i3].until = Infinity; + break; + case "string": + date = hooks(eras2[i3].until).startOf("day").valueOf(); + eras2[i3].until = date.valueOf(); + break; } } - var _objToTS4 = objToTS(mixed, this.o, this.zone), ts = _objToTS4[0], o2 = _objToTS4[1]; - return clone(this, { - ts, - o: o2 - }); - }; - _proto.plus = function plus(duration) { - if (!this.isValid) - return this; - var dur = Duration3.fromDurationLike(duration); - return clone(this, adjustTime(this, dur)); - }; - _proto.minus = function minus(duration) { - if (!this.isValid) - return this; - var dur = Duration3.fromDurationLike(duration).negate(); - return clone(this, adjustTime(this, dur)); - }; - _proto.startOf = function startOf(unit) { - if (!this.isValid) - return this; - var o2 = {}, normalizedUnit = Duration3.normalizeUnit(unit); - switch (normalizedUnit) { - case "years": - o2.month = 1; - case "quarters": - case "months": - o2.day = 1; - case "weeks": - case "days": - o2.hour = 0; - case "hours": - o2.minute = 0; - case "minutes": - o2.second = 0; - case "seconds": - o2.millisecond = 0; - break; + return eras2; + } + function localeErasParse(eraName, format2, strict) { + var i3, l4, eras2 = this.eras(), name, abbr, narrow; + eraName = eraName.toUpperCase(); + for (i3 = 0, l4 = eras2.length; i3 < l4; ++i3) { + name = eras2[i3].name.toUpperCase(); + abbr = eras2[i3].abbr.toUpperCase(); + narrow = eras2[i3].narrow.toUpperCase(); + if (strict) { + switch (format2) { + case "N": + case "NN": + case "NNN": + if (abbr === eraName) { + return eras2[i3]; + } + break; + case "NNNN": + if (name === eraName) { + return eras2[i3]; + } + break; + case "NNNNN": + if (narrow === eraName) { + return eras2[i3]; + } + break; + } + } else if ([name, abbr, narrow].indexOf(eraName) >= 0) { + return eras2[i3]; + } } - if (normalizedUnit === "weeks") { - o2.weekday = 1; + } + function localeErasConvertYear(era, year) { + var dir = era.since <= era.until ? 1 : -1; + if (year === void 0) { + return hooks(era.since).year(); + } else { + return hooks(era.since).year() + (year - era.offset) * dir; } - if (normalizedUnit === "quarters") { - var q3 = Math.ceil(this.month / 3); - o2.month = (q3 - 1) * 3 + 1; + } + function getEraName() { + var i3, l4, val, eras2 = this.localeData().eras(); + for (i3 = 0, l4 = eras2.length; i3 < l4; ++i3) { + val = this.clone().startOf("day").valueOf(); + if (eras2[i3].since <= val && val <= eras2[i3].until) { + return eras2[i3].name; + } + if (eras2[i3].until <= val && val <= eras2[i3].since) { + return eras2[i3].name; + } } - return this.set(o2); - }; - _proto.endOf = function endOf(unit) { - var _this$plus; - return this.isValid ? this.plus((_this$plus = {}, _this$plus[unit] = 1, _this$plus)).startOf(unit).minus(1) : this; - }; - _proto.toFormat = function toFormat(fmt, opts) { - if (opts === void 0) { - opts = {}; + return ""; + } + function getEraNarrow() { + var i3, l4, val, eras2 = this.localeData().eras(); + for (i3 = 0, l4 = eras2.length; i3 < l4; ++i3) { + val = this.clone().startOf("day").valueOf(); + if (eras2[i3].since <= val && val <= eras2[i3].until) { + return eras2[i3].narrow; + } + if (eras2[i3].until <= val && val <= eras2[i3].since) { + return eras2[i3].narrow; + } } - return this.isValid ? Formatter.create(this.loc.redefaultToEN(opts)).formatDateTimeFromString(this, fmt) : INVALID; - }; - _proto.toLocaleString = function toLocaleString(formatOpts, opts) { - if (formatOpts === void 0) { - formatOpts = DATE_SHORT; + return ""; + } + function getEraAbbr() { + var i3, l4, val, eras2 = this.localeData().eras(); + for (i3 = 0, l4 = eras2.length; i3 < l4; ++i3) { + val = this.clone().startOf("day").valueOf(); + if (eras2[i3].since <= val && val <= eras2[i3].until) { + return eras2[i3].abbr; + } + if (eras2[i3].until <= val && val <= eras2[i3].since) { + return eras2[i3].abbr; + } } - if (opts === void 0) { - opts = {}; + return ""; + } + function getEraYear() { + var i3, l4, dir, val, eras2 = this.localeData().eras(); + for (i3 = 0, l4 = eras2.length; i3 < l4; ++i3) { + dir = eras2[i3].since <= eras2[i3].until ? 1 : -1; + val = this.clone().startOf("day").valueOf(); + if (eras2[i3].since <= val && val <= eras2[i3].until || eras2[i3].until <= val && val <= eras2[i3].since) { + return (this.year() - hooks(eras2[i3].since).year()) * dir + eras2[i3].offset; + } } - return this.isValid ? Formatter.create(this.loc.clone(opts), formatOpts).formatDateTime(this) : INVALID; - }; - _proto.toLocaleParts = function toLocaleParts(opts) { - if (opts === void 0) { - opts = {}; + return this.year(); + } + function erasNameRegex(isStrict) { + if (!hasOwnProp(this, "_erasNameRegex")) { + computeErasParse.call(this); } - return this.isValid ? Formatter.create(this.loc.clone(opts), opts).formatDateTimeParts(this) : []; - }; - _proto.toISO = function toISO(_temp3) { - var _ref4 = _temp3 === void 0 ? {} : _temp3, _ref4$format = _ref4.format, format = _ref4$format === void 0 ? "extended" : _ref4$format, _ref4$suppressSeconds = _ref4.suppressSeconds, suppressSeconds = _ref4$suppressSeconds === void 0 ? false : _ref4$suppressSeconds, _ref4$suppressMillise = _ref4.suppressMilliseconds, suppressMilliseconds = _ref4$suppressMillise === void 0 ? false : _ref4$suppressMillise, _ref4$includeOffset = _ref4.includeOffset, includeOffset = _ref4$includeOffset === void 0 ? true : _ref4$includeOffset; - if (!this.isValid) { - return null; + return isStrict ? this._erasNameRegex : this._erasRegex; + } + function erasAbbrRegex(isStrict) { + if (!hasOwnProp(this, "_erasAbbrRegex")) { + computeErasParse.call(this); } - var ext = format === "extended"; - var c3 = _toISODate(this, ext); - c3 += "T"; - c3 += _toISOTime(this, ext, suppressSeconds, suppressMilliseconds, includeOffset); - return c3; - }; - _proto.toISODate = function toISODate(_temp4) { - var _ref5 = _temp4 === void 0 ? {} : _temp4, _ref5$format = _ref5.format, format = _ref5$format === void 0 ? "extended" : _ref5$format; - if (!this.isValid) { - return null; + return isStrict ? this._erasAbbrRegex : this._erasRegex; + } + function erasNarrowRegex(isStrict) { + if (!hasOwnProp(this, "_erasNarrowRegex")) { + computeErasParse.call(this); } - return _toISODate(this, format === "extended"); - }; - _proto.toISOWeekDate = function toISOWeekDate() { - return toTechFormat(this, "kkkk-'W'WW-c"); - }; - _proto.toISOTime = function toISOTime(_temp5) { - var _ref6 = _temp5 === void 0 ? {} : _temp5, _ref6$suppressMillise = _ref6.suppressMilliseconds, suppressMilliseconds = _ref6$suppressMillise === void 0 ? false : _ref6$suppressMillise, _ref6$suppressSeconds = _ref6.suppressSeconds, suppressSeconds = _ref6$suppressSeconds === void 0 ? false : _ref6$suppressSeconds, _ref6$includeOffset = _ref6.includeOffset, includeOffset = _ref6$includeOffset === void 0 ? true : _ref6$includeOffset, _ref6$includePrefix = _ref6.includePrefix, includePrefix = _ref6$includePrefix === void 0 ? false : _ref6$includePrefix, _ref6$format = _ref6.format, format = _ref6$format === void 0 ? "extended" : _ref6$format; - if (!this.isValid) { - return null; + return isStrict ? this._erasNarrowRegex : this._erasRegex; + } + function matchEraAbbr(isStrict, locale2) { + return locale2.erasAbbrRegex(isStrict); + } + function matchEraName(isStrict, locale2) { + return locale2.erasNameRegex(isStrict); + } + function matchEraNarrow(isStrict, locale2) { + return locale2.erasNarrowRegex(isStrict); + } + function matchEraYearOrdinal(isStrict, locale2) { + return locale2._eraYearOrdinalRegex || matchUnsigned; + } + function computeErasParse() { + var abbrPieces = [], namePieces = [], narrowPieces = [], mixedPieces = [], i3, l4, eras2 = this.eras(); + for (i3 = 0, l4 = eras2.length; i3 < l4; ++i3) { + namePieces.push(regexEscape(eras2[i3].name)); + abbrPieces.push(regexEscape(eras2[i3].abbr)); + narrowPieces.push(regexEscape(eras2[i3].narrow)); + mixedPieces.push(regexEscape(eras2[i3].name)); + mixedPieces.push(regexEscape(eras2[i3].abbr)); + mixedPieces.push(regexEscape(eras2[i3].narrow)); } - var c3 = includePrefix ? "T" : ""; - return c3 + _toISOTime(this, format === "extended", suppressSeconds, suppressMilliseconds, includeOffset); - }; - _proto.toRFC2822 = function toRFC2822() { - return toTechFormat(this, "EEE, dd LLL yyyy HH:mm:ss ZZZ", false); - }; - _proto.toHTTP = function toHTTP() { - return toTechFormat(this.toUTC(), "EEE, dd LLL yyyy HH:mm:ss 'GMT'"); - }; - _proto.toSQLDate = function toSQLDate() { - if (!this.isValid) { - return null; + this._erasRegex = new RegExp("^(" + mixedPieces.join("|") + ")", "i"); + this._erasNameRegex = new RegExp("^(" + namePieces.join("|") + ")", "i"); + this._erasAbbrRegex = new RegExp("^(" + abbrPieces.join("|") + ")", "i"); + this._erasNarrowRegex = new RegExp("^(" + narrowPieces.join("|") + ")", "i"); + } + addFormatToken(0, ["gg", 2], 0, function() { + return this.weekYear() % 100; + }); + addFormatToken(0, ["GG", 2], 0, function() { + return this.isoWeekYear() % 100; + }); + function addWeekYearFormatToken(token2, getter) { + addFormatToken(0, [token2, token2.length], 0, getter); + } + addWeekYearFormatToken("gggg", "weekYear"); + addWeekYearFormatToken("ggggg", "weekYear"); + addWeekYearFormatToken("GGGG", "isoWeekYear"); + addWeekYearFormatToken("GGGGG", "isoWeekYear"); + addUnitAlias("weekYear", "gg"); + addUnitAlias("isoWeekYear", "GG"); + addUnitPriority("weekYear", 1); + addUnitPriority("isoWeekYear", 1); + addRegexToken("G", matchSigned); + addRegexToken("g", matchSigned); + addRegexToken("GG", match1to2, match2); + addRegexToken("gg", match1to2, match2); + addRegexToken("GGGG", match1to4, match4); + addRegexToken("gggg", match1to4, match4); + addRegexToken("GGGGG", match1to6, match6); + addRegexToken("ggggg", match1to6, match6); + addWeekParseToken(["gggg", "ggggg", "GGGG", "GGGGG"], function(input, week, config2, token2) { + week[token2.substr(0, 2)] = toInt(input); + }); + addWeekParseToken(["gg", "GG"], function(input, week, config2, token2) { + week[token2] = hooks.parseTwoDigitYear(input); + }); + function getSetWeekYear(input) { + return getSetWeekYearHelper.call(this, input, this.week(), this.weekday(), this.localeData()._week.dow, this.localeData()._week.doy); + } + function getSetISOWeekYear(input) { + return getSetWeekYearHelper.call(this, input, this.isoWeek(), this.isoWeekday(), 1, 4); + } + function getISOWeeksInYear() { + return weeksInYear(this.year(), 1, 4); + } + function getISOWeeksInISOWeekYear() { + return weeksInYear(this.isoWeekYear(), 1, 4); + } + function getWeeksInYear() { + var weekInfo = this.localeData()._week; + return weeksInYear(this.year(), weekInfo.dow, weekInfo.doy); + } + function getWeeksInWeekYear() { + var weekInfo = this.localeData()._week; + return weeksInYear(this.weekYear(), weekInfo.dow, weekInfo.doy); + } + function getSetWeekYearHelper(input, week, weekday, dow, doy) { + var weeksTarget; + if (input == null) { + return weekOfYear2(this, dow, doy).year; + } else { + weeksTarget = weeksInYear(input, dow, doy); + if (week > weeksTarget) { + week = weeksTarget; + } + return setWeekAll.call(this, input, week, weekday, dow, doy); } - return _toISODate(this, true); - }; - _proto.toSQLTime = function toSQLTime(_temp6) { - var _ref7 = _temp6 === void 0 ? {} : _temp6, _ref7$includeOffset = _ref7.includeOffset, includeOffset = _ref7$includeOffset === void 0 ? true : _ref7$includeOffset, _ref7$includeZone = _ref7.includeZone, includeZone = _ref7$includeZone === void 0 ? false : _ref7$includeZone, _ref7$includeOffsetSp = _ref7.includeOffsetSpace, includeOffsetSpace = _ref7$includeOffsetSp === void 0 ? true : _ref7$includeOffsetSp; - var fmt = "HH:mm:ss.SSS"; - if (includeZone || includeOffset) { - if (includeOffsetSpace) { - fmt += " "; + } + function setWeekAll(weekYear, week, weekday, dow, doy) { + var dayOfYearData = dayOfYearFromWeeks(weekYear, week, weekday, dow, doy), date = createUTCDate(dayOfYearData.year, 0, dayOfYearData.dayOfYear); + this.year(date.getUTCFullYear()); + this.month(date.getUTCMonth()); + this.date(date.getUTCDate()); + return this; + } + addFormatToken("Q", 0, "Qo", "quarter"); + addUnitAlias("quarter", "Q"); + addUnitPriority("quarter", 7); + addRegexToken("Q", match1); + addParseToken("Q", function(input, array) { + array[MONTH] = (toInt(input) - 1) * 3; + }); + function getSetQuarter(input) { + return input == null ? Math.ceil((this.month() + 1) / 3) : this.month((input - 1) * 3 + this.month() % 3); + } + addFormatToken("D", ["DD", 2], "Do", "date"); + addUnitAlias("date", "D"); + addUnitPriority("date", 9); + addRegexToken("D", match1to2); + addRegexToken("DD", match1to2, match2); + addRegexToken("Do", function(isStrict, locale2) { + return isStrict ? locale2._dayOfMonthOrdinalParse || locale2._ordinalParse : locale2._dayOfMonthOrdinalParseLenient; + }); + addParseToken(["D", "DD"], DATE); + addParseToken("Do", function(input, array) { + array[DATE] = toInt(input.match(match1to2)[0]); + }); + var getSetDayOfMonth = makeGetSet("Date", true); + addFormatToken("DDD", ["DDDD", 3], "DDDo", "dayOfYear"); + addUnitAlias("dayOfYear", "DDD"); + addUnitPriority("dayOfYear", 4); + addRegexToken("DDD", match1to3); + addRegexToken("DDDD", match3); + addParseToken(["DDD", "DDDD"], function(input, array, config2) { + config2._dayOfYear = toInt(input); + }); + function getSetDayOfYear(input) { + var dayOfYear = Math.round((this.clone().startOf("day") - this.clone().startOf("year")) / 864e5) + 1; + return input == null ? dayOfYear : this.add(input - dayOfYear, "d"); + } + addFormatToken("m", ["mm", 2], 0, "minute"); + addUnitAlias("minute", "m"); + addUnitPriority("minute", 14); + addRegexToken("m", match1to2); + addRegexToken("mm", match1to2, match2); + addParseToken(["m", "mm"], MINUTE); + var getSetMinute = makeGetSet("Minutes", false); + addFormatToken("s", ["ss", 2], 0, "second"); + addUnitAlias("second", "s"); + addUnitPriority("second", 15); + addRegexToken("s", match1to2); + addRegexToken("ss", match1to2, match2); + addParseToken(["s", "ss"], SECOND); + var getSetSecond = makeGetSet("Seconds", false); + addFormatToken("S", 0, 0, function() { + return ~~(this.millisecond() / 100); + }); + addFormatToken(0, ["SS", 2], 0, function() { + return ~~(this.millisecond() / 10); + }); + addFormatToken(0, ["SSS", 3], 0, "millisecond"); + addFormatToken(0, ["SSSS", 4], 0, function() { + return this.millisecond() * 10; + }); + addFormatToken(0, ["SSSSS", 5], 0, function() { + return this.millisecond() * 100; + }); + addFormatToken(0, ["SSSSSS", 6], 0, function() { + return this.millisecond() * 1e3; + }); + addFormatToken(0, ["SSSSSSS", 7], 0, function() { + return this.millisecond() * 1e4; + }); + addFormatToken(0, ["SSSSSSSS", 8], 0, function() { + return this.millisecond() * 1e5; + }); + addFormatToken(0, ["SSSSSSSSS", 9], 0, function() { + return this.millisecond() * 1e6; + }); + addUnitAlias("millisecond", "ms"); + addUnitPriority("millisecond", 16); + addRegexToken("S", match1to3, match1); + addRegexToken("SS", match1to3, match2); + addRegexToken("SSS", match1to3, match3); + var token, getSetMillisecond; + for (token = "SSSS"; token.length <= 9; token += "S") { + addRegexToken(token, matchUnsigned); + } + function parseMs(input, array) { + array[MILLISECOND] = toInt(("0." + input) * 1e3); + } + for (token = "S"; token.length <= 9; token += "S") { + addParseToken(token, parseMs); + } + getSetMillisecond = makeGetSet("Milliseconds", false); + addFormatToken("z", 0, 0, "zoneAbbr"); + addFormatToken("zz", 0, 0, "zoneName"); + function getZoneAbbr() { + return this._isUTC ? "UTC" : ""; + } + function getZoneName() { + return this._isUTC ? "Coordinated Universal Time" : ""; + } + var proto = Moment.prototype; + proto.add = add2; + proto.calendar = calendar$1; + proto.clone = clone3; + proto.diff = diff; + proto.endOf = endOf; + proto.format = format; + proto.from = from; + proto.fromNow = fromNow; + proto.to = to; + proto.toNow = toNow; + proto.get = stringGet; + proto.invalidAt = invalidAt; + proto.isAfter = isAfter; + proto.isBefore = isBefore; + proto.isBetween = isBetween; + proto.isSame = isSame; + proto.isSameOrAfter = isSameOrAfter; + proto.isSameOrBefore = isSameOrBefore; + proto.isValid = isValid$2; + proto.lang = lang; + proto.locale = locale; + proto.localeData = localeData; + proto.max = prototypeMax; + proto.min = prototypeMin; + proto.parsingFlags = parsingFlags; + proto.set = stringSet; + proto.startOf = startOf; + proto.subtract = subtract; + proto.toArray = toArray; + proto.toObject = toObject; + proto.toDate = toDate; + proto.toISOString = toISOString; + proto.inspect = inspect; + if (typeof Symbol !== "undefined" && Symbol.for != null) { + proto[Symbol.for("nodejs.util.inspect.custom")] = function() { + return "Moment<" + this.format() + ">"; + }; + } + proto.toJSON = toJSON; + proto.toString = toString; + proto.unix = unix; + proto.valueOf = valueOf; + proto.creationData = creationData; + proto.eraName = getEraName; + proto.eraNarrow = getEraNarrow; + proto.eraAbbr = getEraAbbr; + proto.eraYear = getEraYear; + proto.year = getSetYear; + proto.isLeapYear = getIsLeapYear; + proto.weekYear = getSetWeekYear; + proto.isoWeekYear = getSetISOWeekYear; + proto.quarter = proto.quarters = getSetQuarter; + proto.month = getSetMonth; + proto.daysInMonth = getDaysInMonth; + proto.week = proto.weeks = getSetWeek; + proto.isoWeek = proto.isoWeeks = getSetISOWeek; + proto.weeksInYear = getWeeksInYear; + proto.weeksInWeekYear = getWeeksInWeekYear; + proto.isoWeeksInYear = getISOWeeksInYear; + proto.isoWeeksInISOWeekYear = getISOWeeksInISOWeekYear; + proto.date = getSetDayOfMonth; + proto.day = proto.days = getSetDayOfWeek; + proto.weekday = getSetLocaleDayOfWeek; + proto.isoWeekday = getSetISODayOfWeek; + proto.dayOfYear = getSetDayOfYear; + proto.hour = proto.hours = getSetHour; + proto.minute = proto.minutes = getSetMinute; + proto.second = proto.seconds = getSetSecond; + proto.millisecond = proto.milliseconds = getSetMillisecond; + proto.utcOffset = getSetOffset; + proto.utc = setOffsetToUTC; + proto.local = setOffsetToLocal; + proto.parseZone = setOffsetToParsedOffset; + proto.hasAlignedHourOffset = hasAlignedHourOffset; + proto.isDST = isDaylightSavingTime; + proto.isLocal = isLocal; + proto.isUtcOffset = isUtcOffset; + proto.isUtc = isUtc; + proto.isUTC = isUtc; + proto.zoneAbbr = getZoneAbbr; + proto.zoneName = getZoneName; + proto.dates = deprecate("dates accessor is deprecated. Use date instead.", getSetDayOfMonth); + proto.months = deprecate("months accessor is deprecated. Use month instead", getSetMonth); + proto.years = deprecate("years accessor is deprecated. Use year instead", getSetYear); + proto.zone = deprecate("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/", getSetZone); + proto.isDSTShifted = deprecate("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information", isDaylightSavingTimeShifted); + function createUnix(input) { + return createLocal(input * 1e3); + } + function createInZone() { + return createLocal.apply(null, arguments).parseZone(); + } + function preParsePostFormat(string) { + return string; + } + var proto$1 = Locale2.prototype; + proto$1.calendar = calendar; + proto$1.longDateFormat = longDateFormat; + proto$1.invalidDate = invalidDate; + proto$1.ordinal = ordinal; + proto$1.preparse = preParsePostFormat; + proto$1.postformat = preParsePostFormat; + proto$1.relativeTime = relativeTime; + proto$1.pastFuture = pastFuture; + proto$1.set = set; + proto$1.eras = localeEras; + proto$1.erasParse = localeErasParse; + proto$1.erasConvertYear = localeErasConvertYear; + proto$1.erasAbbrRegex = erasAbbrRegex; + proto$1.erasNameRegex = erasNameRegex; + proto$1.erasNarrowRegex = erasNarrowRegex; + proto$1.months = localeMonths; + proto$1.monthsShort = localeMonthsShort; + proto$1.monthsParse = localeMonthsParse; + proto$1.monthsRegex = monthsRegex; + proto$1.monthsShortRegex = monthsShortRegex; + proto$1.week = localeWeek; + proto$1.firstDayOfYear = localeFirstDayOfYear; + proto$1.firstDayOfWeek = localeFirstDayOfWeek; + proto$1.weekdays = localeWeekdays; + proto$1.weekdaysMin = localeWeekdaysMin; + proto$1.weekdaysShort = localeWeekdaysShort; + proto$1.weekdaysParse = localeWeekdaysParse; + proto$1.weekdaysRegex = weekdaysRegex; + proto$1.weekdaysShortRegex = weekdaysShortRegex; + proto$1.weekdaysMinRegex = weekdaysMinRegex; + proto$1.isPM = localeIsPM; + proto$1.meridiem = localeMeridiem; + function get$1(format2, index, field, setter) { + var locale2 = getLocale(), utc = createUTC().set(setter, index); + return locale2[field](utc, format2); + } + function listMonthsImpl(format2, index, field) { + if (isNumber2(format2)) { + index = format2; + format2 = void 0; + } + format2 = format2 || ""; + if (index != null) { + return get$1(format2, index, field, "month"); + } + var i3, out = []; + for (i3 = 0; i3 < 12; i3++) { + out[i3] = get$1(format2, i3, field, "month"); + } + return out; + } + function listWeekdaysImpl(localeSorted, format2, index, field) { + if (typeof localeSorted === "boolean") { + if (isNumber2(format2)) { + index = format2; + format2 = void 0; + } + format2 = format2 || ""; + } else { + format2 = localeSorted; + index = format2; + localeSorted = false; + if (isNumber2(format2)) { + index = format2; + format2 = void 0; } - if (includeZone) { - fmt += "z"; - } else if (includeOffset) { - fmt += "ZZ"; + format2 = format2 || ""; + } + var locale2 = getLocale(), shift = localeSorted ? locale2._week.dow : 0, i3, out = []; + if (index != null) { + return get$1(format2, (index + shift) % 7, field, "day"); + } + for (i3 = 0; i3 < 7; i3++) { + out[i3] = get$1(format2, (i3 + shift) % 7, field, "day"); + } + return out; + } + function listMonths(format2, index) { + return listMonthsImpl(format2, index, "months"); + } + function listMonthsShort(format2, index) { + return listMonthsImpl(format2, index, "monthsShort"); + } + function listWeekdays(localeSorted, format2, index) { + return listWeekdaysImpl(localeSorted, format2, index, "weekdays"); + } + function listWeekdaysShort(localeSorted, format2, index) { + return listWeekdaysImpl(localeSorted, format2, index, "weekdaysShort"); + } + function listWeekdaysMin(localeSorted, format2, index) { + return listWeekdaysImpl(localeSorted, format2, index, "weekdaysMin"); + } + getSetGlobalLocale("en", { + eras: [ + { + since: "0001-01-01", + until: Infinity, + offset: 1, + name: "Anno Domini", + narrow: "AD", + abbr: "AD" + }, + { + since: "0000-12-31", + until: -Infinity, + offset: 1, + name: "Before Christ", + narrow: "BC", + abbr: "BC" } + ], + dayOfMonthOrdinalParse: /\d{1,2}(th|st|nd|rd)/, + ordinal: function(number) { + var b3 = number % 10, output = toInt(number % 100 / 10) === 1 ? "th" : b3 === 1 ? "st" : b3 === 2 ? "nd" : b3 === 3 ? "rd" : "th"; + return number + output; } - return toTechFormat(this, fmt, true); - }; - _proto.toSQL = function toSQL(opts) { - if (opts === void 0) { - opts = {}; + }); + hooks.lang = deprecate("moment.lang is deprecated. Use moment.locale instead.", getSetGlobalLocale); + hooks.langData = deprecate("moment.langData is deprecated. Use moment.localeData instead.", getLocale); + var mathAbs = Math.abs; + function abs() { + var data = this._data; + this._milliseconds = mathAbs(this._milliseconds); + this._days = mathAbs(this._days); + this._months = mathAbs(this._months); + data.milliseconds = mathAbs(data.milliseconds); + data.seconds = mathAbs(data.seconds); + data.minutes = mathAbs(data.minutes); + data.hours = mathAbs(data.hours); + data.months = mathAbs(data.months); + data.years = mathAbs(data.years); + return this; + } + function addSubtract$1(duration, input, value, direction) { + var other = createDuration2(input, value); + duration._milliseconds += direction * other._milliseconds; + duration._days += direction * other._days; + duration._months += direction * other._months; + return duration._bubble(); + } + function add$1(input, value) { + return addSubtract$1(this, input, value, 1); + } + function subtract$1(input, value) { + return addSubtract$1(this, input, value, -1); + } + function absCeil(number) { + if (number < 0) { + return Math.floor(number); + } else { + return Math.ceil(number); + } + } + function bubble() { + var milliseconds2 = this._milliseconds, days2 = this._days, months3 = this._months, data = this._data, seconds2, minutes2, hours2, years2, monthsFromDays; + if (!(milliseconds2 >= 0 && days2 >= 0 && months3 >= 0 || milliseconds2 <= 0 && days2 <= 0 && months3 <= 0)) { + milliseconds2 += absCeil(monthsToDays(months3) + days2) * 864e5; + days2 = 0; + months3 = 0; + } + data.milliseconds = milliseconds2 % 1e3; + seconds2 = absFloor(milliseconds2 / 1e3); + data.seconds = seconds2 % 60; + minutes2 = absFloor(seconds2 / 60); + data.minutes = minutes2 % 60; + hours2 = absFloor(minutes2 / 60); + data.hours = hours2 % 24; + days2 += absFloor(hours2 / 24); + monthsFromDays = absFloor(daysToMonths(days2)); + months3 += monthsFromDays; + days2 -= absCeil(monthsToDays(monthsFromDays)); + years2 = absFloor(months3 / 12); + months3 %= 12; + data.days = days2; + data.months = months3; + data.years = years2; + return this; + } + function daysToMonths(days2) { + return days2 * 4800 / 146097; + } + function monthsToDays(months3) { + return months3 * 146097 / 4800; + } + function as(units) { + if (!this.isValid()) { + return NaN; } - if (!this.isValid) { - return null; + var days2, months3, milliseconds2 = this._milliseconds; + units = normalizeUnits(units); + if (units === "month" || units === "quarter" || units === "year") { + days2 = this._days + milliseconds2 / 864e5; + months3 = this._months + daysToMonths(days2); + switch (units) { + case "month": + return months3; + case "quarter": + return months3 / 3; + case "year": + return months3 / 12; + } + } else { + days2 = this._days + Math.round(monthsToDays(this._months)); + switch (units) { + case "week": + return days2 / 7 + milliseconds2 / 6048e5; + case "day": + return days2 + milliseconds2 / 864e5; + case "hour": + return days2 * 24 + milliseconds2 / 36e5; + case "minute": + return days2 * 1440 + milliseconds2 / 6e4; + case "second": + return days2 * 86400 + milliseconds2 / 1e3; + case "millisecond": + return Math.floor(days2 * 864e5) + milliseconds2; + default: + throw new Error("Unknown unit " + units); + } } - return this.toSQLDate() + " " + this.toSQLTime(opts); - }; - _proto.toString = function toString() { - return this.isValid ? this.toISO() : INVALID; - }; - _proto.valueOf = function valueOf() { - return this.toMillis(); - }; - _proto.toMillis = function toMillis() { - return this.isValid ? this.ts : NaN; - }; - _proto.toSeconds = function toSeconds() { - return this.isValid ? this.ts / 1e3 : NaN; - }; - _proto.toUnixInteger = function toUnixInteger() { - return this.isValid ? Math.floor(this.ts / 1e3) : NaN; - }; - _proto.toJSON = function toJSON() { - return this.toISO(); - }; - _proto.toBSON = function toBSON() { - return this.toJSDate(); - }; - _proto.toObject = function toObject(opts) { - if (opts === void 0) { - opts = {}; - } - if (!this.isValid) - return {}; - var base = _extends({}, this.c); - if (opts.includeConfig) { - base.outputCalendar = this.outputCalendar; - base.numberingSystem = this.loc.numberingSystem; - base.locale = this.loc.locale; - } - return base; - }; - _proto.toJSDate = function toJSDate() { - return new Date(this.isValid ? this.ts : NaN); - }; - _proto.diff = function diff(otherDateTime, unit, opts) { - if (unit === void 0) { - unit = "milliseconds"; - } - if (opts === void 0) { - opts = {}; - } - if (!this.isValid || !otherDateTime.isValid) { - return Duration3.invalid("created by diffing an invalid DateTime"); - } - var durOpts = _extends({ - locale: this.locale, - numberingSystem: this.numberingSystem - }, opts); - var units = maybeArray(unit).map(Duration3.normalizeUnit), otherIsLater = otherDateTime.valueOf() > this.valueOf(), earlier = otherIsLater ? this : otherDateTime, later = otherIsLater ? otherDateTime : this, diffed = _diff(earlier, later, units, durOpts); - return otherIsLater ? diffed.negate() : diffed; - }; - _proto.diffNow = function diffNow(unit, opts) { - if (unit === void 0) { - unit = "milliseconds"; + } + function valueOf$1() { + if (!this.isValid()) { + return NaN; } - if (opts === void 0) { - opts = {}; + return this._milliseconds + this._days * 864e5 + this._months % 12 * 2592e6 + toInt(this._months / 12) * 31536e6; + } + function makeAs(alias) { + return function() { + return this.as(alias); + }; + } + var asMilliseconds = makeAs("ms"), asSeconds = makeAs("s"), asMinutes = makeAs("m"), asHours = makeAs("h"), asDays = makeAs("d"), asWeeks = makeAs("w"), asMonths = makeAs("M"), asQuarters = makeAs("Q"), asYears = makeAs("y"); + function clone$1() { + return createDuration2(this); + } + function get$2(units) { + units = normalizeUnits(units); + return this.isValid() ? this[units + "s"]() : NaN; + } + function makeGetter(name) { + return function() { + return this.isValid() ? this._data[name] : NaN; + }; + } + var milliseconds = makeGetter("milliseconds"), seconds = makeGetter("seconds"), minutes = makeGetter("minutes"), hours = makeGetter("hours"), days = makeGetter("days"), months2 = makeGetter("months"), years = makeGetter("years"); + function weeks() { + return absFloor(this.days() / 7); + } + var round = Math.round, thresholds = { + ss: 44, + s: 45, + m: 45, + h: 22, + d: 26, + w: null, + M: 11 + }; + function substituteTimeAgo(string, number, withoutSuffix, isFuture, locale2) { + return locale2.relativeTime(number || 1, !!withoutSuffix, string, isFuture); + } + function relativeTime$1(posNegDuration, withoutSuffix, thresholds2, locale2) { + var duration = createDuration2(posNegDuration).abs(), seconds2 = round(duration.as("s")), minutes2 = round(duration.as("m")), hours2 = round(duration.as("h")), days2 = round(duration.as("d")), months3 = round(duration.as("M")), weeks2 = round(duration.as("w")), years2 = round(duration.as("y")), a3 = seconds2 <= thresholds2.ss && ["s", seconds2] || seconds2 < thresholds2.s && ["ss", seconds2] || minutes2 <= 1 && ["m"] || minutes2 < thresholds2.m && ["mm", minutes2] || hours2 <= 1 && ["h"] || hours2 < thresholds2.h && ["hh", hours2] || days2 <= 1 && ["d"] || days2 < thresholds2.d && ["dd", days2]; + if (thresholds2.w != null) { + a3 = a3 || weeks2 <= 1 && ["w"] || weeks2 < thresholds2.w && ["ww", weeks2]; + } + a3 = a3 || months3 <= 1 && ["M"] || months3 < thresholds2.M && ["MM", months3] || years2 <= 1 && ["y"] || ["yy", years2]; + a3[2] = withoutSuffix; + a3[3] = +posNegDuration > 0; + a3[4] = locale2; + return substituteTimeAgo.apply(null, a3); + } + function getSetRelativeTimeRounding(roundingFunction) { + if (roundingFunction === void 0) { + return round; + } + if (typeof roundingFunction === "function") { + round = roundingFunction; + return true; } - return this.diff(DateTime4.now(), unit, opts); - }; - _proto.until = function until(otherDateTime) { - return this.isValid ? Interval.fromDateTimes(this, otherDateTime) : this; - }; - _proto.hasSame = function hasSame(otherDateTime, unit) { - if (!this.isValid) + return false; + } + function getSetRelativeTimeThreshold(threshold, limit) { + if (thresholds[threshold] === void 0) { return false; - var inputMs = otherDateTime.valueOf(); - var adjustedToZone = this.setZone(otherDateTime.zone, { - keepLocalTime: true - }); - return adjustedToZone.startOf(unit) <= inputMs && inputMs <= adjustedToZone.endOf(unit); - }; - _proto.equals = function equals(other) { - return this.isValid && other.isValid && this.valueOf() === other.valueOf() && this.zone.equals(other.zone) && this.loc.equals(other.loc); - }; - _proto.toRelative = function toRelative(options) { - if (options === void 0) { - options = {}; } - if (!this.isValid) - return null; - var base = options.base || DateTime4.fromObject({}, { - zone: this.zone - }), padding = options.padding ? this < base ? -options.padding : options.padding : 0; - var units = ["years", "months", "days", "hours", "minutes", "seconds"]; - var unit = options.unit; - if (Array.isArray(options.unit)) { - units = options.unit; - unit = void 0; - } - return diffRelative(base, this.plus(padding), _extends({}, options, { - numeric: "always", - units, - unit - })); - }; - _proto.toRelativeCalendar = function toRelativeCalendar(options) { - if (options === void 0) { - options = {}; + if (limit === void 0) { + return thresholds[threshold]; } - if (!this.isValid) - return null; - return diffRelative(options.base || DateTime4.fromObject({}, { - zone: this.zone - }), this, _extends({}, options, { - numeric: "auto", - units: ["years", "months", "days"], - calendary: true - })); - }; - DateTime4.min = function min() { - for (var _len = arguments.length, dateTimes = new Array(_len), _key = 0; _key < _len; _key++) { - dateTimes[_key] = arguments[_key]; + thresholds[threshold] = limit; + if (threshold === "s") { + thresholds.ss = limit - 1; + } + return true; + } + function humanize(argWithSuffix, argThresholds) { + if (!this.isValid()) { + return this.localeData().invalidDate(); + } + var withSuffix = false, th = thresholds, locale2, output; + if (typeof argWithSuffix === "object") { + argThresholds = argWithSuffix; + argWithSuffix = false; + } + if (typeof argWithSuffix === "boolean") { + withSuffix = argWithSuffix; + } + if (typeof argThresholds === "object") { + th = Object.assign({}, thresholds, argThresholds); + if (argThresholds.s != null && argThresholds.ss == null) { + th.ss = argThresholds.s - 1; + } + } + locale2 = this.localeData(); + output = relativeTime$1(this, !withSuffix, th, locale2); + if (withSuffix) { + output = locale2.pastFuture(+this, output); + } + return locale2.postformat(output); + } + var abs$1 = Math.abs; + function sign(x4) { + return (x4 > 0) - (x4 < 0) || +x4; + } + function toISOString$1() { + if (!this.isValid()) { + return this.localeData().invalidDate(); + } + var seconds2 = abs$1(this._milliseconds) / 1e3, days2 = abs$1(this._days), months3 = abs$1(this._months), minutes2, hours2, years2, s4, total = this.asSeconds(), totalSign, ymSign, daysSign, hmsSign; + if (!total) { + return "P0D"; + } + minutes2 = absFloor(seconds2 / 60); + hours2 = absFloor(minutes2 / 60); + seconds2 %= 60; + minutes2 %= 60; + years2 = absFloor(months3 / 12); + months3 %= 12; + s4 = seconds2 ? seconds2.toFixed(3).replace(/\.?0+$/, "") : ""; + totalSign = total < 0 ? "-" : ""; + ymSign = sign(this._months) !== sign(total) ? "-" : ""; + daysSign = sign(this._days) !== sign(total) ? "-" : ""; + hmsSign = sign(this._milliseconds) !== sign(total) ? "-" : ""; + return totalSign + "P" + (years2 ? ymSign + years2 + "Y" : "") + (months3 ? ymSign + months3 + "M" : "") + (days2 ? daysSign + days2 + "D" : "") + (hours2 || minutes2 || seconds2 ? "T" : "") + (hours2 ? hmsSign + hours2 + "H" : "") + (minutes2 ? hmsSign + minutes2 + "M" : "") + (seconds2 ? hmsSign + s4 + "S" : ""); + } + var proto$2 = Duration2.prototype; + proto$2.isValid = isValid$1; + proto$2.abs = abs; + proto$2.add = add$1; + proto$2.subtract = subtract$1; + proto$2.as = as; + proto$2.asMilliseconds = asMilliseconds; + proto$2.asSeconds = asSeconds; + proto$2.asMinutes = asMinutes; + proto$2.asHours = asHours; + proto$2.asDays = asDays; + proto$2.asWeeks = asWeeks; + proto$2.asMonths = asMonths; + proto$2.asQuarters = asQuarters; + proto$2.asYears = asYears; + proto$2.valueOf = valueOf$1; + proto$2._bubble = bubble; + proto$2.clone = clone$1; + proto$2.get = get$2; + proto$2.milliseconds = milliseconds; + proto$2.seconds = seconds; + proto$2.minutes = minutes; + proto$2.hours = hours; + proto$2.days = days; + proto$2.weeks = weeks; + proto$2.months = months2; + proto$2.years = years; + proto$2.humanize = humanize; + proto$2.toISOString = toISOString$1; + proto$2.toString = toISOString$1; + proto$2.toJSON = toISOString$1; + proto$2.locale = locale; + proto$2.localeData = localeData; + proto$2.toIsoString = deprecate("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)", toISOString$1); + proto$2.lang = lang; + addFormatToken("X", 0, 0, "unix"); + addFormatToken("x", 0, 0, "valueOf"); + addRegexToken("x", matchSigned); + addRegexToken("X", matchTimestamp); + addParseToken("X", function(input, array, config2) { + config2._d = new Date(parseFloat(input) * 1e3); + }); + addParseToken("x", function(input, array, config2) { + config2._d = new Date(toInt(input)); + }); + hooks.version = "2.29.1"; + setHookCallback(createLocal); + hooks.fn = proto; + hooks.min = min; + hooks.max = max; + hooks.now = now2; + hooks.utc = createUTC; + hooks.unix = createUnix; + hooks.months = listMonths; + hooks.isDate = isDate2; + hooks.locale = getSetGlobalLocale; + hooks.invalid = createInvalid; + hooks.duration = createDuration2; + hooks.isMoment = isMoment; + hooks.weekdays = listWeekdays; + hooks.parseZone = createInZone; + hooks.localeData = getLocale; + hooks.isDuration = isDuration; + hooks.monthsShort = listMonthsShort; + hooks.weekdaysMin = listWeekdaysMin; + hooks.defineLocale = defineLocale; + hooks.updateLocale = updateLocale; + hooks.locales = listLocales; + hooks.weekdaysShort = listWeekdaysShort; + hooks.normalizeUnits = normalizeUnits; + hooks.relativeTimeRounding = getSetRelativeTimeRounding; + hooks.relativeTimeThreshold = getSetRelativeTimeThreshold; + hooks.calendarFormat = getCalendarFormat; + hooks.prototype = proto; + hooks.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" + }; + return hooks; + }); + } +}); + +// node_modules/obsidian-daily-notes-interface/dist/main.js +var require_main = __commonJS({ + "node_modules/obsidian-daily-notes-interface/dist/main.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + var obsidian = require("obsidian"); + var DEFAULT_DAILY_NOTE_FORMAT = "YYYY-MM-DD"; + var DEFAULT_WEEKLY_NOTE_FORMAT = "gggg-[W]ww"; + var DEFAULT_MONTHLY_NOTE_FORMAT = "YYYY-MM"; + var DEFAULT_QUARTERLY_NOTE_FORMAT = "YYYY-[Q]Q"; + var DEFAULT_YEARLY_NOTE_FORMAT = "YYYY"; + function shouldUsePeriodicNotesSettings(periodicity) { + var _a, _b; + const periodicNotes = window.app.plugins.getPlugin("periodic-notes"); + return periodicNotes && ((_b = (_a = periodicNotes.settings) == null ? void 0 : _a[periodicity]) == null ? void 0 : _b.enabled); + } + function getDailyNoteSettings4() { + var _a, _b, _c, _d; + try { + const { internalPlugins, plugins } = window.app; + if (shouldUsePeriodicNotesSettings("daily")) { + const { format: format2, folder: folder2, template: template2 } = ((_b = (_a = plugins.getPlugin("periodic-notes")) == null ? void 0 : _a.settings) == null ? void 0 : _b.daily) || {}; + return { + format: format2 || DEFAULT_DAILY_NOTE_FORMAT, + folder: (folder2 == null ? void 0 : folder2.trim()) || "", + template: (template2 == null ? void 0 : template2.trim()) || "" + }; } - if (!dateTimes.every(DateTime4.isDateTime)) { - throw new InvalidArgumentError("min requires all arguments be DateTimes"); + const { folder, format, template } = ((_d = (_c = internalPlugins.getPluginById("daily-notes")) == null ? void 0 : _c.instance) == null ? void 0 : _d.options) || {}; + return { + format: format || DEFAULT_DAILY_NOTE_FORMAT, + folder: (folder == null ? void 0 : folder.trim()) || "", + template: (template == null ? void 0 : template.trim()) || "" + }; + } catch (err) { + console.info("No custom daily note settings found!", err); + } + } + function getWeeklyNoteSettings() { + var _a, _b, _c, _d, _e, _f, _g; + try { + const pluginManager = window.app.plugins; + const calendarSettings = (_a = pluginManager.getPlugin("calendar")) == null ? void 0 : _a.options; + const periodicNotesSettings = (_c = (_b = pluginManager.getPlugin("periodic-notes")) == null ? void 0 : _b.settings) == null ? void 0 : _c.weekly; + if (shouldUsePeriodicNotesSettings("weekly")) { + return { + format: periodicNotesSettings.format || DEFAULT_WEEKLY_NOTE_FORMAT, + folder: ((_d = periodicNotesSettings.folder) == null ? void 0 : _d.trim()) || "", + template: ((_e = periodicNotesSettings.template) == null ? void 0 : _e.trim()) || "" + }; } - return bestBy(dateTimes, function(i3) { - return i3.valueOf(); - }, Math.min); - }; - DateTime4.max = function max() { - for (var _len2 = arguments.length, dateTimes = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) { - dateTimes[_key2] = arguments[_key2]; + const settings = calendarSettings || {}; + return { + format: settings.weeklyNoteFormat || DEFAULT_WEEKLY_NOTE_FORMAT, + folder: ((_f = settings.weeklyNoteFolder) == null ? void 0 : _f.trim()) || "", + template: ((_g = settings.weeklyNoteTemplate) == null ? void 0 : _g.trim()) || "" + }; + } catch (err) { + console.info("No custom weekly note settings found!", err); + } + } + function getMonthlyNoteSettings() { + var _a, _b, _c, _d; + const pluginManager = window.app.plugins; + try { + const settings = shouldUsePeriodicNotesSettings("monthly") && ((_b = (_a = pluginManager.getPlugin("periodic-notes")) == null ? void 0 : _a.settings) == null ? void 0 : _b.monthly) || {}; + return { + format: settings.format || DEFAULT_MONTHLY_NOTE_FORMAT, + folder: ((_c = settings.folder) == null ? void 0 : _c.trim()) || "", + template: ((_d = settings.template) == null ? void 0 : _d.trim()) || "" + }; + } catch (err) { + console.info("No custom monthly note settings found!", err); + } + } + function getQuarterlyNoteSettings() { + var _a, _b, _c, _d; + const pluginManager = window.app.plugins; + try { + const settings = shouldUsePeriodicNotesSettings("quarterly") && ((_b = (_a = pluginManager.getPlugin("periodic-notes")) == null ? void 0 : _a.settings) == null ? void 0 : _b.quarterly) || {}; + return { + format: settings.format || DEFAULT_QUARTERLY_NOTE_FORMAT, + folder: ((_c = settings.folder) == null ? void 0 : _c.trim()) || "", + template: ((_d = settings.template) == null ? void 0 : _d.trim()) || "" + }; + } catch (err) { + console.info("No custom quarterly note settings found!", err); + } + } + function getYearlyNoteSettings() { + var _a, _b, _c, _d; + const pluginManager = window.app.plugins; + try { + const settings = shouldUsePeriodicNotesSettings("yearly") && ((_b = (_a = pluginManager.getPlugin("periodic-notes")) == null ? void 0 : _a.settings) == null ? void 0 : _b.yearly) || {}; + return { + format: settings.format || DEFAULT_YEARLY_NOTE_FORMAT, + folder: ((_c = settings.folder) == null ? void 0 : _c.trim()) || "", + template: ((_d = settings.template) == null ? void 0 : _d.trim()) || "" + }; + } catch (err) { + console.info("No custom yearly note settings found!", err); + } + } + function join(...partSegments) { + let parts = []; + for (let i3 = 0, l4 = partSegments.length; i3 < l4; i3++) { + parts = parts.concat(partSegments[i3].split("/")); + } + const newParts = []; + for (let i3 = 0, l4 = parts.length; i3 < l4; i3++) { + const part = parts[i3]; + if (!part || part === ".") + continue; + else + newParts.push(part); + } + if (parts[0] === "") + newParts.unshift(""); + return newParts.join("/"); + } + function basename(fullPath) { + let base = fullPath.substring(fullPath.lastIndexOf("/") + 1); + if (base.lastIndexOf(".") != -1) + base = base.substring(0, base.lastIndexOf(".")); + return base; + } + function ensureFolderExists(path) { + return __async(this, null, function* () { + const dirs = path.replace(/\\/g, "/").split("/"); + dirs.pop(); + if (dirs.length) { + const dir = join(...dirs); + if (!window.app.vault.getAbstractFileByPath(dir)) { + yield window.app.vault.createFolder(dir); + } } - if (!dateTimes.every(DateTime4.isDateTime)) { - throw new InvalidArgumentError("max requires all arguments be DateTimes"); + }); + } + function getNotePath(directory, filename) { + return __async(this, null, function* () { + if (!filename.endsWith(".md")) { + filename += ".md"; } - return bestBy(dateTimes, function(i3) { - return i3.valueOf(); - }, Math.max); - }; - DateTime4.fromFormatExplain = function fromFormatExplain(text, fmt, options) { - if (options === void 0) { - options = {}; + const path = obsidian.normalizePath(join(directory, filename)); + yield ensureFolderExists(path); + return path; + }); + } + function getTemplateInfo(template) { + return __async(this, null, function* () { + const { metadataCache, vault } = window.app; + const templatePath = obsidian.normalizePath(template); + if (templatePath === "/") { + return Promise.resolve(["", null]); } - var _options = options, _options$locale = _options.locale, locale = _options$locale === void 0 ? null : _options$locale, _options$numberingSys = _options.numberingSystem, numberingSystem = _options$numberingSys === void 0 ? null : _options$numberingSys, localeToUse = Locale.fromOpts({ - locale, - numberingSystem, - defaultToEN: true - }); - return explainFromTokens(localeToUse, text, fmt); - }; - DateTime4.fromStringExplain = function fromStringExplain(text, fmt, options) { - if (options === void 0) { - options = {}; + try { + const templateFile = metadataCache.getFirstLinkpathDest(templatePath, ""); + const contents = yield vault.cachedRead(templateFile); + const IFoldInfo = window.app.foldManager.load(templateFile); + return [contents, IFoldInfo]; + } catch (err) { + console.error(`Failed to read the daily note template '${templatePath}'`, err); + new obsidian.Notice("Failed to read the daily note template"); + return ["", null]; } - return DateTime4.fromFormatExplain(text, fmt, options); + }); + } + function getDateUID(date, granularity = "day") { + const ts = date.clone().startOf(granularity).format(); + return `${granularity}-${ts}`; + } + function removeEscapedCharacters(format) { + return format.replace(/\[[^\]]*\]/g, ""); + } + function isFormatAmbiguous(format, granularity) { + if (granularity === "week") { + const cleanFormat = removeEscapedCharacters(format); + return /w{1,2}/i.test(cleanFormat) && (/M{1,4}/.test(cleanFormat) || /D{1,4}/.test(cleanFormat)); + } + return false; + } + function getDateFromFile(file, granularity) { + return getDateFromFilename(file.basename, granularity); + } + function getDateFromPath3(path, granularity) { + return getDateFromFilename(basename(path), granularity); + } + function getDateFromFilename(filename, granularity) { + const getSettings = { + day: getDailyNoteSettings4, + week: getWeeklyNoteSettings, + month: getMonthlyNoteSettings, + quarter: getQuarterlyNoteSettings, + year: getYearlyNoteSettings }; - _createClass(DateTime4, [{ - key: "isValid", - get: function get() { - return this.invalid === null; - } - }, { - key: "invalidReason", - get: function get() { - return this.invalid ? this.invalid.reason : null; - } - }, { - key: "invalidExplanation", - get: function get() { - return this.invalid ? this.invalid.explanation : null; - } - }, { - key: "locale", - get: function get() { - return this.isValid ? this.loc.locale : null; - } - }, { - key: "numberingSystem", - get: function get() { - return this.isValid ? this.loc.numberingSystem : null; - } - }, { - key: "outputCalendar", - get: function get() { - return this.isValid ? this.loc.outputCalendar : null; - } - }, { - key: "zone", - get: function get() { - return this._zone; - } - }, { - key: "zoneName", - get: function get() { - return this.isValid ? this.zone.name : null; - } - }, { - key: "year", - get: function get() { - return this.isValid ? this.c.year : NaN; - } - }, { - key: "quarter", - get: function get() { - return this.isValid ? Math.ceil(this.c.month / 3) : NaN; - } - }, { - key: "month", - get: function get() { - return this.isValid ? this.c.month : NaN; - } - }, { - key: "day", - get: function get() { - return this.isValid ? this.c.day : NaN; - } - }, { - key: "hour", - get: function get() { - return this.isValid ? this.c.hour : NaN; - } - }, { - key: "minute", - get: function get() { - return this.isValid ? this.c.minute : NaN; - } - }, { - key: "second", - get: function get() { - return this.isValid ? this.c.second : NaN; - } - }, { - key: "millisecond", - get: function get() { - return this.isValid ? this.c.millisecond : NaN; - } - }, { - key: "weekYear", - get: function get() { - return this.isValid ? possiblyCachedWeekData(this).weekYear : NaN; - } - }, { - key: "weekNumber", - get: function get() { - return this.isValid ? possiblyCachedWeekData(this).weekNumber : NaN; - } - }, { - key: "weekday", - get: function get() { - return this.isValid ? possiblyCachedWeekData(this).weekday : NaN; - } - }, { - key: "ordinal", - get: function get() { - return this.isValid ? gregorianToOrdinal(this.c).ordinal : NaN; - } - }, { - key: "monthShort", - get: function get() { - return this.isValid ? Info.months("short", { - locObj: this.loc - })[this.month - 1] : null; - } - }, { - key: "monthLong", - get: function get() { - return this.isValid ? Info.months("long", { - locObj: this.loc - })[this.month - 1] : null; - } - }, { - key: "weekdayShort", - get: function get() { - return this.isValid ? Info.weekdays("short", { - locObj: this.loc - })[this.weekday - 1] : null; - } - }, { - key: "weekdayLong", - get: function get() { - return this.isValid ? Info.weekdays("long", { - locObj: this.loc - })[this.weekday - 1] : null; - } - }, { - key: "offset", - get: function get() { - return this.isValid ? +this.o : NaN; - } - }, { - key: "offsetNameShort", - get: function get() { - if (this.isValid) { - return this.zone.offsetName(this.ts, { - format: "short", - locale: this.locale + const format = getSettings[granularity]().format.split("/").pop(); + const noteDate = window.moment(filename, format, true); + if (!noteDate.isValid()) { + return null; + } + if (isFormatAmbiguous(format, granularity)) { + if (granularity === "week") { + const cleanFormat = removeEscapedCharacters(format); + if (/w{1,2}/i.test(cleanFormat)) { + return window.moment(filename, format.replace(/M{1,4}/g, "").replace(/D{1,4}/g, ""), false); + } + } + } + return noteDate; + } + var DailyNotesFolderMissingError = class extends Error { + }; + function createDailyNote2(date) { + return __async(this, null, function* () { + const app = window.app; + const { vault } = app; + const moment2 = window.moment; + const { template, format, folder } = getDailyNoteSettings4(); + const [templateContents, IFoldInfo] = yield getTemplateInfo(template); + const filename = date.format(format); + const normalizedPath = yield getNotePath(folder, filename); + try { + const createdFile = yield vault.create(normalizedPath, templateContents.replace(/{{\s*date\s*}}/gi, filename).replace(/{{\s*time\s*}}/gi, moment2().format("HH:mm")).replace(/{{\s*title\s*}}/gi, filename).replace(/{{\s*(date|time)\s*(([+-]\d+)([yqmwdhs]))?\s*(:.+?)?}}/gi, (_3, _timeOrDate, calc, timeDelta, unit, momentFormat) => { + const now2 = moment2(); + const currentDate = date.clone().set({ + hour: now2.get("hour"), + minute: now2.get("minute"), + second: now2.get("second") }); - } else { - return null; + if (calc) { + currentDate.add(parseInt(timeDelta, 10), unit); + } + if (momentFormat) { + return currentDate.format(momentFormat.substring(1).trim()); + } + return currentDate.format(format); + }).replace(/{{\s*yesterday\s*}}/gi, date.clone().subtract(1, "day").format(format)).replace(/{{\s*tomorrow\s*}}/gi, date.clone().add(1, "d").format(format))); + app.foldManager.save(createdFile, IFoldInfo); + return createdFile; + } catch (err) { + console.error(`Failed to create file: '${normalizedPath}'`, err); + new obsidian.Notice("Unable to create new file."); + } + }); + } + function getDailyNote2(date, dailyNotes) { + var _a; + return (_a = dailyNotes[getDateUID(date, "day")]) != null ? _a : null; + } + function getAllDailyNotes3() { + const { vault } = window.app; + const { folder } = getDailyNoteSettings4(); + const dailyNotesFolder = vault.getAbstractFileByPath(obsidian.normalizePath(folder)); + if (!dailyNotesFolder) { + throw new DailyNotesFolderMissingError("Failed to find daily notes folder"); + } + const dailyNotes = {}; + obsidian.Vault.recurseChildren(dailyNotesFolder, (note) => { + if (note instanceof obsidian.TFile) { + const date = getDateFromFile(note, "day"); + if (date) { + const dateString = getDateUID(date, "day"); + dailyNotes[dateString] = note; } } - }, { - key: "offsetNameLong", - get: function get() { - if (this.isValid) { - return this.zone.offsetName(this.ts, { - format: "long", - locale: this.locale + }); + return dailyNotes; + } + var WeeklyNotesFolderMissingError = class extends Error { + }; + function getDaysOfWeek() { + const { moment: moment2 } = window; + let weekStart = moment2.localeData()._week.dow; + const daysOfWeek = [ + "sunday", + "monday", + "tuesday", + "wednesday", + "thursday", + "friday", + "saturday" + ]; + while (weekStart) { + daysOfWeek.push(daysOfWeek.shift()); + weekStart--; + } + return daysOfWeek; + } + function getDayOfWeekNumericalValue(dayOfWeekName) { + return getDaysOfWeek().indexOf(dayOfWeekName.toLowerCase()); + } + function createWeeklyNote(date) { + return __async(this, null, function* () { + const { vault } = window.app; + const { template, format, folder } = getWeeklyNoteSettings(); + const [templateContents, IFoldInfo] = yield getTemplateInfo(template); + const filename = date.format(format); + const normalizedPath = yield getNotePath(folder, filename); + try { + const createdFile = yield vault.create(normalizedPath, templateContents.replace(/{{\s*(date|time)\s*(([+-]\d+)([yqmwdhs]))?\s*(:.+?)?}}/gi, (_3, _timeOrDate, calc, timeDelta, unit, momentFormat) => { + const now2 = window.moment(); + const currentDate = date.clone().set({ + hour: now2.get("hour"), + minute: now2.get("minute"), + second: now2.get("second") }); - } else { - return null; + if (calc) { + currentDate.add(parseInt(timeDelta, 10), unit); + } + if (momentFormat) { + return currentDate.format(momentFormat.substring(1).trim()); + } + return currentDate.format(format); + }).replace(/{{\s*title\s*}}/gi, filename).replace(/{{\s*time\s*}}/gi, window.moment().format("HH:mm")).replace(/{{\s*(sunday|monday|tuesday|wednesday|thursday|friday|saturday)\s*:(.*?)}}/gi, (_3, dayOfWeek2, momentFormat) => { + const day = getDayOfWeekNumericalValue(dayOfWeek2); + return date.weekday(day).format(momentFormat.trim()); + })); + window.app.foldManager.save(createdFile, IFoldInfo); + return createdFile; + } catch (err) { + console.error(`Failed to create file: '${normalizedPath}'`, err); + new obsidian.Notice("Unable to create new file."); + } + }); + } + function getWeeklyNote(date, weeklyNotes) { + var _a; + return (_a = weeklyNotes[getDateUID(date, "week")]) != null ? _a : null; + } + function getAllWeeklyNotes() { + const weeklyNotes = {}; + if (!appHasWeeklyNotesPluginLoaded()) { + return weeklyNotes; + } + const { vault } = window.app; + const { folder } = getWeeklyNoteSettings(); + const weeklyNotesFolder = vault.getAbstractFileByPath(obsidian.normalizePath(folder)); + if (!weeklyNotesFolder) { + throw new WeeklyNotesFolderMissingError("Failed to find weekly notes folder"); + } + obsidian.Vault.recurseChildren(weeklyNotesFolder, (note) => { + if (note instanceof obsidian.TFile) { + const date = getDateFromFile(note, "week"); + if (date) { + const dateString = getDateUID(date, "week"); + weeklyNotes[dateString] = note; + } + } + }); + return weeklyNotes; + } + var MonthlyNotesFolderMissingError = class extends Error { + }; + function createMonthlyNote(date) { + return __async(this, null, function* () { + const { vault } = window.app; + const { template, format, folder } = getMonthlyNoteSettings(); + const [templateContents, IFoldInfo] = yield getTemplateInfo(template); + const filename = date.format(format); + const normalizedPath = yield getNotePath(folder, filename); + try { + const createdFile = yield vault.create(normalizedPath, templateContents.replace(/{{\s*(date|time)\s*(([+-]\d+)([yqmwdhs]))?\s*(:.+?)?}}/gi, (_3, _timeOrDate, calc, timeDelta, unit, momentFormat) => { + const now2 = window.moment(); + const currentDate = date.clone().set({ + hour: now2.get("hour"), + minute: now2.get("minute"), + second: now2.get("second") + }); + if (calc) { + currentDate.add(parseInt(timeDelta, 10), unit); + } + if (momentFormat) { + return currentDate.format(momentFormat.substring(1).trim()); + } + return currentDate.format(format); + }).replace(/{{\s*date\s*}}/gi, filename).replace(/{{\s*time\s*}}/gi, window.moment().format("HH:mm")).replace(/{{\s*title\s*}}/gi, filename)); + window.app.foldManager.save(createdFile, IFoldInfo); + return createdFile; + } catch (err) { + console.error(`Failed to create file: '${normalizedPath}'`, err); + new obsidian.Notice("Unable to create new file."); + } + }); + } + function getMonthlyNote(date, monthlyNotes) { + var _a; + return (_a = monthlyNotes[getDateUID(date, "month")]) != null ? _a : null; + } + function getAllMonthlyNotes() { + const monthlyNotes = {}; + if (!appHasMonthlyNotesPluginLoaded()) { + return monthlyNotes; + } + const { vault } = window.app; + const { folder } = getMonthlyNoteSettings(); + const monthlyNotesFolder = vault.getAbstractFileByPath(obsidian.normalizePath(folder)); + if (!monthlyNotesFolder) { + throw new MonthlyNotesFolderMissingError("Failed to find monthly notes folder"); + } + obsidian.Vault.recurseChildren(monthlyNotesFolder, (note) => { + if (note instanceof obsidian.TFile) { + const date = getDateFromFile(note, "month"); + if (date) { + const dateString = getDateUID(date, "month"); + monthlyNotes[dateString] = note; } } - }, { - key: "isOffsetFixed", - get: function get() { - return this.isValid ? this.zone.isUniversal : null; + }); + return monthlyNotes; + } + var QuarterlyNotesFolderMissingError = class extends Error { + }; + function createQuarterlyNote(date) { + return __async(this, null, function* () { + const { vault } = window.app; + const { template, format, folder } = getQuarterlyNoteSettings(); + const [templateContents, IFoldInfo] = yield getTemplateInfo(template); + const filename = date.format(format); + const normalizedPath = yield getNotePath(folder, filename); + try { + const createdFile = yield vault.create(normalizedPath, templateContents.replace(/{{\s*(date|time)\s*(([+-]\d+)([yqmwdhs]))?\s*(:.+?)?}}/gi, (_3, _timeOrDate, calc, timeDelta, unit, momentFormat) => { + const now2 = window.moment(); + const currentDate = date.clone().set({ + hour: now2.get("hour"), + minute: now2.get("minute"), + second: now2.get("second") + }); + if (calc) { + currentDate.add(parseInt(timeDelta, 10), unit); + } + if (momentFormat) { + return currentDate.format(momentFormat.substring(1).trim()); + } + return currentDate.format(format); + }).replace(/{{\s*date\s*}}/gi, filename).replace(/{{\s*time\s*}}/gi, window.moment().format("HH:mm")).replace(/{{\s*title\s*}}/gi, filename)); + window.app.foldManager.save(createdFile, IFoldInfo); + return createdFile; + } catch (err) { + console.error(`Failed to create file: '${normalizedPath}'`, err); + new obsidian.Notice("Unable to create new file."); } - }, { - key: "isInDST", - get: function get() { - if (this.isOffsetFixed) { - return false; - } else { - return this.offset > this.set({ - month: 1 - }).offset || this.offset > this.set({ - month: 5 - }).offset; - } - } - }, { - key: "isInLeapYear", - get: function get() { - return isLeapYear(this.year); - } - }, { - key: "daysInMonth", - get: function get() { - return daysInMonth(this.year, this.month); - } - }, { - key: "daysInYear", - get: function get() { - return this.isValid ? daysInYear(this.year) : NaN; - } - }, { - key: "weeksInWeekYear", - get: function get() { - return this.isValid ? weeksInWeekYear(this.weekYear) : NaN; - } - }], [{ - key: "DATE_SHORT", - get: function get() { - return DATE_SHORT; - } - }, { - key: "DATE_MED", - get: function get() { - return DATE_MED; - } - }, { - key: "DATE_MED_WITH_WEEKDAY", - get: function get() { - return DATE_MED_WITH_WEEKDAY; - } - }, { - key: "DATE_FULL", - get: function get() { - return DATE_FULL; - } - }, { - key: "DATE_HUGE", - get: function get() { - return DATE_HUGE; - } - }, { - key: "TIME_SIMPLE", - get: function get() { - return TIME_SIMPLE; - } - }, { - key: "TIME_WITH_SECONDS", - get: function get() { - return TIME_WITH_SECONDS; - } - }, { - key: "TIME_WITH_SHORT_OFFSET", - get: function get() { - return TIME_WITH_SHORT_OFFSET; - } - }, { - key: "TIME_WITH_LONG_OFFSET", - get: function get() { - return TIME_WITH_LONG_OFFSET; - } - }, { - key: "TIME_24_SIMPLE", - get: function get() { - return TIME_24_SIMPLE; - } - }, { - key: "TIME_24_WITH_SECONDS", - get: function get() { - return TIME_24_WITH_SECONDS; - } - }, { - key: "TIME_24_WITH_SHORT_OFFSET", - get: function get() { - return TIME_24_WITH_SHORT_OFFSET; - } - }, { - key: "TIME_24_WITH_LONG_OFFSET", - get: function get() { - return TIME_24_WITH_LONG_OFFSET; - } - }, { - key: "DATETIME_SHORT", - get: function get() { - return DATETIME_SHORT; - } - }, { - key: "DATETIME_SHORT_WITH_SECONDS", - get: function get() { - return DATETIME_SHORT_WITH_SECONDS; - } - }, { - key: "DATETIME_MED", - get: function get() { - return DATETIME_MED; - } - }, { - key: "DATETIME_MED_WITH_SECONDS", - get: function get() { - return DATETIME_MED_WITH_SECONDS; - } - }, { - key: "DATETIME_MED_WITH_WEEKDAY", - get: function get() { - return DATETIME_MED_WITH_WEEKDAY; - } - }, { - key: "DATETIME_FULL", - get: function get() { - return DATETIME_FULL; - } - }, { - key: "DATETIME_FULL_WITH_SECONDS", - get: function get() { - return DATETIME_FULL_WITH_SECONDS; - } - }, { - key: "DATETIME_HUGE", - get: function get() { - return DATETIME_HUGE; - } - }, { - key: "DATETIME_HUGE_WITH_SECONDS", - get: function get() { - return DATETIME_HUGE_WITH_SECONDS; - } - }]); - return DateTime4; - }(); - function friendlyDateTime(dateTimeish) { - if (DateTime3.isDateTime(dateTimeish)) { - return dateTimeish; - } else if (dateTimeish && dateTimeish.valueOf && isNumber(dateTimeish.valueOf())) { - return DateTime3.fromJSDate(dateTimeish); - } else if (dateTimeish && typeof dateTimeish === "object") { - return DateTime3.fromObject(dateTimeish); - } else { - throw new InvalidArgumentError("Unknown datetime argument: " + dateTimeish + ", of type " + typeof dateTimeish); - } - } - var VERSION = "2.3.1"; - exports.DateTime = DateTime3; - exports.Duration = Duration3; - exports.FixedOffsetZone = FixedOffsetZone; - exports.IANAZone = IANAZone; - exports.Info = Info; - exports.Interval = Interval; - exports.InvalidZone = InvalidZone; - exports.Settings = Settings; - exports.SystemZone = SystemZone; - exports.VERSION = VERSION; - exports.Zone = Zone; + }); + } + function getQuarterlyNote(date, quarterly) { + var _a; + return (_a = quarterly[getDateUID(date, "quarter")]) != null ? _a : null; + } + function getAllQuarterlyNotes() { + const quarterly = {}; + if (!appHasQuarterlyNotesPluginLoaded()) { + return quarterly; + } + const { vault } = window.app; + const { folder } = getQuarterlyNoteSettings(); + const quarterlyFolder = vault.getAbstractFileByPath(obsidian.normalizePath(folder)); + if (!quarterlyFolder) { + throw new QuarterlyNotesFolderMissingError("Failed to find quarterly notes folder"); + } + obsidian.Vault.recurseChildren(quarterlyFolder, (note) => { + if (note instanceof obsidian.TFile) { + const date = getDateFromFile(note, "quarter"); + if (date) { + const dateString = getDateUID(date, "quarter"); + quarterly[dateString] = note; + } + } + }); + return quarterly; + } + var YearlyNotesFolderMissingError = class extends Error { + }; + function createYearlyNote(date) { + return __async(this, null, function* () { + const { vault } = window.app; + const { template, format, folder } = getYearlyNoteSettings(); + const [templateContents, IFoldInfo] = yield getTemplateInfo(template); + const filename = date.format(format); + const normalizedPath = yield getNotePath(folder, filename); + try { + const createdFile = yield vault.create(normalizedPath, templateContents.replace(/{{\s*(date|time)\s*(([+-]\d+)([yqmwdhs]))?\s*(:.+?)?}}/gi, (_3, _timeOrDate, calc, timeDelta, unit, momentFormat) => { + const now2 = window.moment(); + const currentDate = date.clone().set({ + hour: now2.get("hour"), + minute: now2.get("minute"), + second: now2.get("second") + }); + if (calc) { + currentDate.add(parseInt(timeDelta, 10), unit); + } + if (momentFormat) { + return currentDate.format(momentFormat.substring(1).trim()); + } + return currentDate.format(format); + }).replace(/{{\s*date\s*}}/gi, filename).replace(/{{\s*time\s*}}/gi, window.moment().format("HH:mm")).replace(/{{\s*title\s*}}/gi, filename)); + window.app.foldManager.save(createdFile, IFoldInfo); + return createdFile; + } catch (err) { + console.error(`Failed to create file: '${normalizedPath}'`, err); + new obsidian.Notice("Unable to create new file."); + } + }); + } + function getYearlyNote(date, yearlyNotes) { + var _a; + return (_a = yearlyNotes[getDateUID(date, "year")]) != null ? _a : null; + } + function getAllYearlyNotes() { + const yearlyNotes = {}; + if (!appHasYearlyNotesPluginLoaded()) { + return yearlyNotes; + } + const { vault } = window.app; + const { folder } = getYearlyNoteSettings(); + const yearlyNotesFolder = vault.getAbstractFileByPath(obsidian.normalizePath(folder)); + if (!yearlyNotesFolder) { + throw new YearlyNotesFolderMissingError("Failed to find yearly notes folder"); + } + obsidian.Vault.recurseChildren(yearlyNotesFolder, (note) => { + if (note instanceof obsidian.TFile) { + const date = getDateFromFile(note, "year"); + if (date) { + const dateString = getDateUID(date, "year"); + yearlyNotes[dateString] = note; + } + } + }); + return yearlyNotes; + } + function appHasDailyNotesPluginLoaded2() { + var _a, _b; + const { app } = window; + const dailyNotesPlugin = app.internalPlugins.plugins["daily-notes"]; + if (dailyNotesPlugin && dailyNotesPlugin.enabled) { + return true; + } + const periodicNotes = app.plugins.getPlugin("periodic-notes"); + return periodicNotes && ((_b = (_a = periodicNotes.settings) == null ? void 0 : _a.daily) == null ? void 0 : _b.enabled); + } + function appHasWeeklyNotesPluginLoaded() { + var _a, _b; + const { app } = window; + if (app.plugins.getPlugin("calendar")) { + return true; + } + const periodicNotes = app.plugins.getPlugin("periodic-notes"); + return periodicNotes && ((_b = (_a = periodicNotes.settings) == null ? void 0 : _a.weekly) == null ? void 0 : _b.enabled); + } + function appHasMonthlyNotesPluginLoaded() { + var _a, _b; + const { app } = window; + const periodicNotes = app.plugins.getPlugin("periodic-notes"); + return periodicNotes && ((_b = (_a = periodicNotes.settings) == null ? void 0 : _a.monthly) == null ? void 0 : _b.enabled); + } + function appHasQuarterlyNotesPluginLoaded() { + var _a, _b; + const { app } = window; + const periodicNotes = app.plugins.getPlugin("periodic-notes"); + return periodicNotes && ((_b = (_a = periodicNotes.settings) == null ? void 0 : _a.quarterly) == null ? void 0 : _b.enabled); + } + function appHasYearlyNotesPluginLoaded() { + var _a, _b; + const { app } = window; + const periodicNotes = app.plugins.getPlugin("periodic-notes"); + return periodicNotes && ((_b = (_a = periodicNotes.settings) == null ? void 0 : _a.yearly) == null ? void 0 : _b.enabled); + } + function getPeriodicNoteSettings(granularity) { + const getSettings = { + day: getDailyNoteSettings4, + week: getWeeklyNoteSettings, + month: getMonthlyNoteSettings, + quarter: getQuarterlyNoteSettings, + year: getYearlyNoteSettings + }[granularity]; + return getSettings(); + } + function createPeriodicNote(granularity, date) { + const createFn = { + day: createDailyNote2, + month: createMonthlyNote, + week: createWeeklyNote + }; + return createFn[granularity](date); + } + exports.DEFAULT_DAILY_NOTE_FORMAT = DEFAULT_DAILY_NOTE_FORMAT; + exports.DEFAULT_MONTHLY_NOTE_FORMAT = DEFAULT_MONTHLY_NOTE_FORMAT; + exports.DEFAULT_QUARTERLY_NOTE_FORMAT = DEFAULT_QUARTERLY_NOTE_FORMAT; + exports.DEFAULT_WEEKLY_NOTE_FORMAT = DEFAULT_WEEKLY_NOTE_FORMAT; + exports.DEFAULT_YEARLY_NOTE_FORMAT = DEFAULT_YEARLY_NOTE_FORMAT; + exports.appHasDailyNotesPluginLoaded = appHasDailyNotesPluginLoaded2; + exports.appHasMonthlyNotesPluginLoaded = appHasMonthlyNotesPluginLoaded; + exports.appHasQuarterlyNotesPluginLoaded = appHasQuarterlyNotesPluginLoaded; + exports.appHasWeeklyNotesPluginLoaded = appHasWeeklyNotesPluginLoaded; + exports.appHasYearlyNotesPluginLoaded = appHasYearlyNotesPluginLoaded; + exports.createDailyNote = createDailyNote2; + exports.createMonthlyNote = createMonthlyNote; + exports.createPeriodicNote = createPeriodicNote; + exports.createQuarterlyNote = createQuarterlyNote; + exports.createWeeklyNote = createWeeklyNote; + exports.createYearlyNote = createYearlyNote; + exports.getAllDailyNotes = getAllDailyNotes3; + exports.getAllMonthlyNotes = getAllMonthlyNotes; + exports.getAllQuarterlyNotes = getAllQuarterlyNotes; + exports.getAllWeeklyNotes = getAllWeeklyNotes; + exports.getAllYearlyNotes = getAllYearlyNotes; + exports.getDailyNote = getDailyNote2; + exports.getDailyNoteSettings = getDailyNoteSettings4; + exports.getDateFromFile = getDateFromFile; + exports.getDateFromPath = getDateFromPath3; + exports.getDateUID = getDateUID; + exports.getMonthlyNote = getMonthlyNote; + exports.getMonthlyNoteSettings = getMonthlyNoteSettings; + exports.getPeriodicNoteSettings = getPeriodicNoteSettings; + exports.getQuarterlyNote = getQuarterlyNote; + exports.getQuarterlyNoteSettings = getQuarterlyNoteSettings; + exports.getTemplateInfo = getTemplateInfo; + exports.getWeeklyNote = getWeeklyNote; + exports.getWeeklyNoteSettings = getWeeklyNoteSettings; + exports.getYearlyNote = getYearlyNote; + exports.getYearlyNoteSettings = getYearlyNoteSettings; } }); @@ -31142,10 +30560,10 @@ var require_color_string = __commonJS({ "node_modules/color-string/index.js"(exports, module2) { var colorNames = require_color_name(); var swizzle = require_simple_swizzle(); - var hasOwnProperty2 = Object.hasOwnProperty; - var reverseNames = {}; + var hasOwnProperty3 = Object.hasOwnProperty; + var reverseNames = Object.create(null); for (name in colorNames) { - if (hasOwnProperty2.call(colorNames, name)) { + if (hasOwnProperty3.call(colorNames, name)) { reverseNames[colorNames[name]] = name; } } @@ -31187,58 +30605,58 @@ var require_color_string = __commonJS({ var per = /^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/; var keyword = /^(\w+)$/; var rgb = [0, 0, 0, 1]; - var match; + var match2; var i3; var hexAlpha; - if (match = string.match(hex)) { - hexAlpha = match[2]; - match = match[1]; + if (match2 = string.match(hex)) { + hexAlpha = match2[2]; + match2 = match2[1]; for (i3 = 0; i3 < 3; i3++) { var i22 = i3 * 2; - rgb[i3] = parseInt(match.slice(i22, i22 + 2), 16); + rgb[i3] = parseInt(match2.slice(i22, i22 + 2), 16); } if (hexAlpha) { rgb[3] = parseInt(hexAlpha, 16) / 255; } - } else if (match = string.match(abbr)) { - match = match[1]; - hexAlpha = match[3]; + } else if (match2 = string.match(abbr)) { + match2 = match2[1]; + hexAlpha = match2[3]; for (i3 = 0; i3 < 3; i3++) { - rgb[i3] = parseInt(match[i3] + match[i3], 16); + rgb[i3] = parseInt(match2[i3] + match2[i3], 16); } if (hexAlpha) { rgb[3] = parseInt(hexAlpha + hexAlpha, 16) / 255; } - } else if (match = string.match(rgba)) { + } else if (match2 = string.match(rgba)) { for (i3 = 0; i3 < 3; i3++) { - rgb[i3] = parseInt(match[i3 + 1], 0); + rgb[i3] = parseInt(match2[i3 + 1], 0); } - if (match[4]) { - if (match[5]) { - rgb[3] = parseFloat(match[4]) * 0.01; + if (match2[4]) { + if (match2[5]) { + rgb[3] = parseFloat(match2[4]) * 0.01; } else { - rgb[3] = parseFloat(match[4]); + rgb[3] = parseFloat(match2[4]); } } - } else if (match = string.match(per)) { + } else if (match2 = string.match(per)) { for (i3 = 0; i3 < 3; i3++) { - rgb[i3] = Math.round(parseFloat(match[i3 + 1]) * 2.55); + rgb[i3] = Math.round(parseFloat(match2[i3 + 1]) * 2.55); } - if (match[4]) { - if (match[5]) { - rgb[3] = parseFloat(match[4]) * 0.01; + if (match2[4]) { + if (match2[5]) { + rgb[3] = parseFloat(match2[4]) * 0.01; } else { - rgb[3] = parseFloat(match[4]); + rgb[3] = parseFloat(match2[4]); } } - } else if (match = string.match(keyword)) { - if (match[1] === "transparent") { + } else if (match2 = string.match(keyword)) { + if (match2[1] === "transparent") { return [0, 0, 0, 0]; } - if (!hasOwnProperty2.call(colorNames, match[1])) { + if (!hasOwnProperty3.call(colorNames, match2[1])) { return null; } - rgb = colorNames[match[1]]; + rgb = colorNames[match2[1]]; rgb[3] = 1; return rgb; } else { @@ -31255,14 +30673,14 @@ var require_color_string = __commonJS({ return null; } var hsl = /^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d\.]+)%\s*,?\s*([+-]?[\d\.]+)%\s*(?:[,|\/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/; - var match = string.match(hsl); - if (match) { - var alpha = parseFloat(match[4]); - var h3 = (parseFloat(match[1]) % 360 + 360) % 360; - var s3 = clamp(parseFloat(match[2]), 0, 100); - var l3 = clamp(parseFloat(match[3]), 0, 100); + var match2 = string.match(hsl); + if (match2) { + var alpha = parseFloat(match2[4]); + var h3 = (parseFloat(match2[1]) % 360 + 360) % 360; + var s4 = clamp(parseFloat(match2[2]), 0, 100); + var l4 = clamp(parseFloat(match2[3]), 0, 100); var a3 = clamp(isNaN(alpha) ? 1 : alpha, 0, 1); - return [h3, s3, l3, a3]; + return [h3, s4, l4, a3]; } return null; }; @@ -31271,14 +30689,14 @@ var require_color_string = __commonJS({ return null; } var hwb = /^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/; - var match = string.match(hwb); - if (match) { - var alpha = parseFloat(match[4]); - var h3 = (parseFloat(match[1]) % 360 + 360) % 360; - var w3 = clamp(parseFloat(match[2]), 0, 100); - var b3 = clamp(parseFloat(match[3]), 0, 100); + var match2 = string.match(hwb); + if (match2) { + var alpha = parseFloat(match2[4]); + var h3 = (parseFloat(match2[1]) % 360 + 360) % 360; + var w4 = clamp(parseFloat(match2[2]), 0, 100); + var b3 = clamp(parseFloat(match2[3]), 0, 100); var a3 = clamp(isNaN(alpha) ? 1 : alpha, 0, 1); - return [h3, w3, b3, a3]; + return [h3, w4, b3, a3]; } return null; }; @@ -31293,9 +30711,9 @@ var require_color_string = __commonJS({ cs.to.rgb.percent = function() { var rgba = swizzle(arguments); var r3 = Math.round(rgba[0] / 255 * 100); - var g3 = Math.round(rgba[1] / 255 * 100); + var g4 = Math.round(rgba[1] / 255 * 100); var b3 = Math.round(rgba[2] / 255 * 100); - return rgba.length < 4 || rgba[3] === 1 ? "rgb(" + r3 + "%, " + g3 + "%, " + b3 + "%)" : "rgba(" + r3 + "%, " + g3 + "%, " + b3 + "%, " + rgba[3] + ")"; + return rgba.length < 4 || rgba[3] === 1 ? "rgb(" + r3 + "%, " + g4 + "%, " + b3 + "%)" : "rgba(" + r3 + "%, " + g4 + "%, " + b3 + "%, " + rgba[3] + ")"; }; cs.to.hsl = function() { var hsla = swizzle(arguments); @@ -31330,7 +30748,7 @@ var require_conversions = __commonJS({ for (const key of Object.keys(cssKeywords)) { reverseKeywords[cssKeywords[key]] = key; } - var convert = { + var convert2 = { rgb: { channels: 3, labels: "rgb" }, hsl: { channels: 3, labels: "hsl" }, hsv: { channels: 3, labels: "hsv" }, @@ -31347,80 +30765,80 @@ var require_conversions = __commonJS({ apple: { channels: 3, labels: ["r16", "g16", "b16"] }, gray: { channels: 1, labels: ["gray"] } }; - module2.exports = convert; - for (const model of Object.keys(convert)) { - if (!("channels" in convert[model])) { + module2.exports = convert2; + for (const model of Object.keys(convert2)) { + if (!("channels" in convert2[model])) { throw new Error("missing channels property: " + model); } - if (!("labels" in convert[model])) { + if (!("labels" in convert2[model])) { throw new Error("missing channel labels property: " + model); } - if (convert[model].labels.length !== convert[model].channels) { + if (convert2[model].labels.length !== convert2[model].channels) { throw new Error("channel and label counts mismatch: " + model); } - const { channels, labels } = convert[model]; - delete convert[model].channels; - delete convert[model].labels; - Object.defineProperty(convert[model], "channels", { value: channels }); - Object.defineProperty(convert[model], "labels", { value: labels }); + const { channels, labels } = convert2[model]; + delete convert2[model].channels; + delete convert2[model].labels; + Object.defineProperty(convert2[model], "channels", { value: channels }); + Object.defineProperty(convert2[model], "labels", { value: labels }); } - convert.rgb.hsl = function(rgb) { + convert2.rgb.hsl = function(rgb) { const r3 = rgb[0] / 255; - const g3 = rgb[1] / 255; + const g4 = rgb[1] / 255; const b3 = rgb[2] / 255; - const min = Math.min(r3, g3, b3); - const max = Math.max(r3, g3, b3); + const min = Math.min(r3, g4, b3); + const max = Math.max(r3, g4, b3); const delta = max - min; let h3; - let s3; + let s4; if (max === min) { h3 = 0; } else if (r3 === max) { - h3 = (g3 - b3) / delta; - } else if (g3 === max) { + h3 = (g4 - b3) / delta; + } else if (g4 === max) { h3 = 2 + (b3 - r3) / delta; } else if (b3 === max) { - h3 = 4 + (r3 - g3) / delta; + h3 = 4 + (r3 - g4) / delta; } h3 = Math.min(h3 * 60, 360); if (h3 < 0) { h3 += 360; } - const l3 = (min + max) / 2; + const l4 = (min + max) / 2; if (max === min) { - s3 = 0; - } else if (l3 <= 0.5) { - s3 = delta / (max + min); + s4 = 0; + } else if (l4 <= 0.5) { + s4 = delta / (max + min); } else { - s3 = delta / (2 - max - min); + s4 = delta / (2 - max - min); } - return [h3, s3 * 100, l3 * 100]; + return [h3, s4 * 100, l4 * 100]; }; - convert.rgb.hsv = function(rgb) { + convert2.rgb.hsv = function(rgb) { let rdif; let gdif; let bdif; let h3; - let s3; + let s4; const r3 = rgb[0] / 255; - const g3 = rgb[1] / 255; + const g4 = rgb[1] / 255; const b3 = rgb[2] / 255; - const v3 = Math.max(r3, g3, b3); - const diff = v3 - Math.min(r3, g3, b3); + const v3 = Math.max(r3, g4, b3); + const diff = v3 - Math.min(r3, g4, b3); const diffc = function(c3) { return (v3 - c3) / 6 / diff + 1 / 2; }; if (diff === 0) { h3 = 0; - s3 = 0; + s4 = 0; } else { - s3 = diff / v3; + s4 = diff / v3; rdif = diffc(r3); - gdif = diffc(g3); + gdif = diffc(g4); bdif = diffc(b3); if (r3 === v3) { h3 = bdif - gdif; - } else if (g3 === v3) { + } else if (g4 === v3) { h3 = 1 / 3 + rdif - bdif; } else if (b3 === v3) { h3 = 2 / 3 + gdif - rdif; @@ -31433,33 +30851,33 @@ var require_conversions = __commonJS({ } return [ h3 * 360, - s3 * 100, + s4 * 100, v3 * 100 ]; }; - convert.rgb.hwb = function(rgb) { + convert2.rgb.hwb = function(rgb) { const r3 = rgb[0]; - const g3 = rgb[1]; + const g4 = rgb[1]; let b3 = rgb[2]; - const h3 = convert.rgb.hsl(rgb)[0]; - const w3 = 1 / 255 * Math.min(r3, Math.min(g3, b3)); - b3 = 1 - 1 / 255 * Math.max(r3, Math.max(g3, b3)); - return [h3, w3 * 100, b3 * 100]; + const h3 = convert2.rgb.hsl(rgb)[0]; + const w4 = 1 / 255 * Math.min(r3, Math.min(g4, b3)); + b3 = 1 - 1 / 255 * Math.max(r3, Math.max(g4, b3)); + return [h3, w4 * 100, b3 * 100]; }; - convert.rgb.cmyk = function(rgb) { + convert2.rgb.cmyk = function(rgb) { const r3 = rgb[0] / 255; - const g3 = rgb[1] / 255; + const g4 = rgb[1] / 255; const b3 = rgb[2] / 255; - const k2 = Math.min(1 - r3, 1 - g3, 1 - b3); - const c3 = (1 - r3 - k2) / (1 - k2) || 0; - const m2 = (1 - g3 - k2) / (1 - k2) || 0; - const y3 = (1 - b3 - k2) / (1 - k2) || 0; - return [c3 * 100, m2 * 100, y3 * 100, k2 * 100]; + const k3 = Math.min(1 - r3, 1 - g4, 1 - b3); + const c3 = (1 - r3 - k3) / (1 - k3) || 0; + const m3 = (1 - g4 - k3) / (1 - k3) || 0; + const y3 = (1 - b3 - k3) / (1 - k3) || 0; + return [c3 * 100, m3 * 100, y3 * 100, k3 * 100]; }; - function comparativeDistance(x3, y3) { - return (x3[0] - y3[0]) ** 2 + (x3[1] - y3[1]) ** 2 + (x3[2] - y3[2]) ** 2; + function comparativeDistance(x4, y3) { + return (x4[0] - y3[0]) ** 2 + (x4[1] - y3[1]) ** 2 + (x4[2] - y3[2]) ** 2; } - convert.rgb.keyword = function(rgb) { + convert2.rgb.keyword = function(rgb) { const reversed = reverseKeywords[rgb]; if (reversed) { return reversed; @@ -31476,54 +30894,54 @@ var require_conversions = __commonJS({ } return currentClosestKeyword; }; - convert.keyword.rgb = function(keyword) { + convert2.keyword.rgb = function(keyword) { return cssKeywords[keyword]; }; - convert.rgb.xyz = function(rgb) { + convert2.rgb.xyz = function(rgb) { let r3 = rgb[0] / 255; - let g3 = rgb[1] / 255; + let g4 = rgb[1] / 255; let b3 = rgb[2] / 255; r3 = r3 > 0.04045 ? ((r3 + 0.055) / 1.055) ** 2.4 : r3 / 12.92; - g3 = g3 > 0.04045 ? ((g3 + 0.055) / 1.055) ** 2.4 : g3 / 12.92; + g4 = g4 > 0.04045 ? ((g4 + 0.055) / 1.055) ** 2.4 : g4 / 12.92; b3 = b3 > 0.04045 ? ((b3 + 0.055) / 1.055) ** 2.4 : b3 / 12.92; - const x3 = r3 * 0.4124 + g3 * 0.3576 + b3 * 0.1805; - const y3 = r3 * 0.2126 + g3 * 0.7152 + b3 * 0.0722; - const z3 = r3 * 0.0193 + g3 * 0.1192 + b3 * 0.9505; - return [x3 * 100, y3 * 100, z3 * 100]; + const x4 = r3 * 0.4124 + g4 * 0.3576 + b3 * 0.1805; + const y3 = r3 * 0.2126 + g4 * 0.7152 + b3 * 0.0722; + const z3 = r3 * 0.0193 + g4 * 0.1192 + b3 * 0.9505; + return [x4 * 100, y3 * 100, z3 * 100]; }; - convert.rgb.lab = function(rgb) { - const xyz = convert.rgb.xyz(rgb); - let x3 = xyz[0]; + convert2.rgb.lab = function(rgb) { + const xyz = convert2.rgb.xyz(rgb); + let x4 = xyz[0]; let y3 = xyz[1]; let z3 = xyz[2]; - x3 /= 95.047; + x4 /= 95.047; y3 /= 100; z3 /= 108.883; - x3 = x3 > 8856e-6 ? x3 ** (1 / 3) : 7.787 * x3 + 16 / 116; + x4 = x4 > 8856e-6 ? x4 ** (1 / 3) : 7.787 * x4 + 16 / 116; y3 = y3 > 8856e-6 ? y3 ** (1 / 3) : 7.787 * y3 + 16 / 116; z3 = z3 > 8856e-6 ? z3 ** (1 / 3) : 7.787 * z3 + 16 / 116; - const l3 = 116 * y3 - 16; - const a3 = 500 * (x3 - y3); + const l4 = 116 * y3 - 16; + const a3 = 500 * (x4 - y3); const b3 = 200 * (y3 - z3); - return [l3, a3, b3]; + return [l4, a3, b3]; }; - convert.hsl.rgb = function(hsl) { + convert2.hsl.rgb = function(hsl) { const h3 = hsl[0] / 360; - const s3 = hsl[1] / 100; - const l3 = hsl[2] / 100; + const s4 = hsl[1] / 100; + const l4 = hsl[2] / 100; let t22; let t3; let val; - if (s3 === 0) { - val = l3 * 255; + if (s4 === 0) { + val = l4 * 255; return [val, val, val]; } - if (l3 < 0.5) { - t22 = l3 * (1 + s3); + if (l4 < 0.5) { + t22 = l4 * (1 + s4); } else { - t22 = l3 + s3 - l3 * s3; + t22 = l4 + s4 - l4 * s4; } - const t1 = 2 * l3 - t22; + const t1 = 2 * l4 - t22; const rgb = [0, 0, 0]; for (let i3 = 0; i3 < 3; i3++) { t3 = h3 + 1 / 3 * -(i3 - 1); @@ -31546,28 +30964,28 @@ var require_conversions = __commonJS({ } return rgb; }; - convert.hsl.hsv = function(hsl) { + convert2.hsl.hsv = function(hsl) { const h3 = hsl[0]; - let s3 = hsl[1] / 100; - let l3 = hsl[2] / 100; - let smin = s3; - const lmin = Math.max(l3, 0.01); - l3 *= 2; - s3 *= l3 <= 1 ? l3 : 2 - l3; + let s4 = hsl[1] / 100; + let l4 = hsl[2] / 100; + let smin = s4; + const lmin = Math.max(l4, 0.01); + l4 *= 2; + s4 *= l4 <= 1 ? l4 : 2 - l4; smin *= lmin <= 1 ? lmin : 2 - lmin; - const v3 = (l3 + s3) / 2; - const sv = l3 === 0 ? 2 * smin / (lmin + smin) : 2 * s3 / (l3 + s3); + const v3 = (l4 + s4) / 2; + const sv = l4 === 0 ? 2 * smin / (lmin + smin) : 2 * s4 / (l4 + s4); return [h3, sv * 100, v3 * 100]; }; - convert.hsv.rgb = function(hsv) { + convert2.hsv.rgb = function(hsv) { const h3 = hsv[0] / 60; - const s3 = hsv[1] / 100; + const s4 = hsv[1] / 100; let v3 = hsv[2] / 100; const hi = Math.floor(h3) % 6; const f3 = h3 - Math.floor(h3); - const p3 = 255 * v3 * (1 - s3); - const q3 = 255 * v3 * (1 - s3 * f3); - const t3 = 255 * v3 * (1 - s3 * (1 - f3)); + const p3 = 255 * v3 * (1 - s4); + const q3 = 255 * v3 * (1 - s4 * f3); + const t3 = 255 * v3 * (1 - s4 * (1 - f3)); v3 *= 255; switch (hi) { case 0: @@ -31584,22 +31002,22 @@ var require_conversions = __commonJS({ return [v3, p3, q3]; } }; - convert.hsv.hsl = function(hsv) { + convert2.hsv.hsl = function(hsv) { const h3 = hsv[0]; - const s3 = hsv[1] / 100; + const s4 = hsv[1] / 100; const v3 = hsv[2] / 100; const vmin = Math.max(v3, 0.01); let sl; - let l3; - l3 = (2 - s3) * v3; - const lmin = (2 - s3) * vmin; - sl = s3 * vmin; + let l4; + l4 = (2 - s4) * v3; + const lmin = (2 - s4) * vmin; + sl = s4 * vmin; sl /= lmin <= 1 ? lmin : 2 - lmin; sl = sl || 0; - l3 /= 2; - return [h3, sl * 100, l3 * 100]; + l4 /= 2; + return [h3, sl * 100, l4 * 100]; }; - convert.hwb.rgb = function(hwb) { + convert2.hwb.rgb = function(hwb) { const h3 = hwb[0] / 360; let wh = hwb[1] / 100; let bl = hwb[2] / 100; @@ -31615,112 +31033,112 @@ var require_conversions = __commonJS({ if ((i3 & 1) !== 0) { f3 = 1 - f3; } - const n2 = wh + f3 * (v3 - wh); + const n3 = wh + f3 * (v3 - wh); let r3; - let g3; + let g4; let b3; switch (i3) { default: case 6: case 0: r3 = v3; - g3 = n2; + g4 = n3; b3 = wh; break; case 1: - r3 = n2; - g3 = v3; + r3 = n3; + g4 = v3; b3 = wh; break; case 2: r3 = wh; - g3 = v3; - b3 = n2; + g4 = v3; + b3 = n3; break; case 3: r3 = wh; - g3 = n2; + g4 = n3; b3 = v3; break; case 4: - r3 = n2; - g3 = wh; + r3 = n3; + g4 = wh; b3 = v3; break; case 5: r3 = v3; - g3 = wh; - b3 = n2; + g4 = wh; + b3 = n3; break; } - return [r3 * 255, g3 * 255, b3 * 255]; + return [r3 * 255, g4 * 255, b3 * 255]; }; - convert.cmyk.rgb = function(cmyk) { + convert2.cmyk.rgb = function(cmyk) { const c3 = cmyk[0] / 100; - const m2 = cmyk[1] / 100; + const m3 = cmyk[1] / 100; const y3 = cmyk[2] / 100; - const k2 = cmyk[3] / 100; - const r3 = 1 - Math.min(1, c3 * (1 - k2) + k2); - const g3 = 1 - Math.min(1, m2 * (1 - k2) + k2); - const b3 = 1 - Math.min(1, y3 * (1 - k2) + k2); - return [r3 * 255, g3 * 255, b3 * 255]; + const k3 = cmyk[3] / 100; + const r3 = 1 - Math.min(1, c3 * (1 - k3) + k3); + const g4 = 1 - Math.min(1, m3 * (1 - k3) + k3); + const b3 = 1 - Math.min(1, y3 * (1 - k3) + k3); + return [r3 * 255, g4 * 255, b3 * 255]; }; - convert.xyz.rgb = function(xyz) { - const x3 = xyz[0] / 100; + convert2.xyz.rgb = function(xyz) { + const x4 = xyz[0] / 100; const y3 = xyz[1] / 100; const z3 = xyz[2] / 100; let r3; - let g3; + let g4; let b3; - r3 = x3 * 3.2406 + y3 * -1.5372 + z3 * -0.4986; - g3 = x3 * -0.9689 + y3 * 1.8758 + z3 * 0.0415; - b3 = x3 * 0.0557 + y3 * -0.204 + z3 * 1.057; + r3 = x4 * 3.2406 + y3 * -1.5372 + z3 * -0.4986; + g4 = x4 * -0.9689 + y3 * 1.8758 + z3 * 0.0415; + b3 = x4 * 0.0557 + y3 * -0.204 + z3 * 1.057; r3 = r3 > 31308e-7 ? 1.055 * r3 ** (1 / 2.4) - 0.055 : r3 * 12.92; - g3 = g3 > 31308e-7 ? 1.055 * g3 ** (1 / 2.4) - 0.055 : g3 * 12.92; + g4 = g4 > 31308e-7 ? 1.055 * g4 ** (1 / 2.4) - 0.055 : g4 * 12.92; b3 = b3 > 31308e-7 ? 1.055 * b3 ** (1 / 2.4) - 0.055 : b3 * 12.92; r3 = Math.min(Math.max(0, r3), 1); - g3 = Math.min(Math.max(0, g3), 1); + g4 = Math.min(Math.max(0, g4), 1); b3 = Math.min(Math.max(0, b3), 1); - return [r3 * 255, g3 * 255, b3 * 255]; + return [r3 * 255, g4 * 255, b3 * 255]; }; - convert.xyz.lab = function(xyz) { - let x3 = xyz[0]; + convert2.xyz.lab = function(xyz) { + let x4 = xyz[0]; let y3 = xyz[1]; let z3 = xyz[2]; - x3 /= 95.047; + x4 /= 95.047; y3 /= 100; z3 /= 108.883; - x3 = x3 > 8856e-6 ? x3 ** (1 / 3) : 7.787 * x3 + 16 / 116; + x4 = x4 > 8856e-6 ? x4 ** (1 / 3) : 7.787 * x4 + 16 / 116; y3 = y3 > 8856e-6 ? y3 ** (1 / 3) : 7.787 * y3 + 16 / 116; z3 = z3 > 8856e-6 ? z3 ** (1 / 3) : 7.787 * z3 + 16 / 116; - const l3 = 116 * y3 - 16; - const a3 = 500 * (x3 - y3); + const l4 = 116 * y3 - 16; + const a3 = 500 * (x4 - y3); const b3 = 200 * (y3 - z3); - return [l3, a3, b3]; + return [l4, a3, b3]; }; - convert.lab.xyz = function(lab) { - const l3 = lab[0]; + convert2.lab.xyz = function(lab) { + const l4 = lab[0]; const a3 = lab[1]; const b3 = lab[2]; - let x3; + let x4; let y3; let z3; - y3 = (l3 + 16) / 116; - x3 = a3 / 500 + y3; + y3 = (l4 + 16) / 116; + x4 = a3 / 500 + y3; z3 = y3 - b3 / 200; const y22 = y3 ** 3; - const x22 = x3 ** 3; + const x22 = x4 ** 3; const z22 = z3 ** 3; y3 = y22 > 8856e-6 ? y22 : (y3 - 16 / 116) / 7.787; - x3 = x22 > 8856e-6 ? x22 : (x3 - 16 / 116) / 7.787; + x4 = x22 > 8856e-6 ? x22 : (x4 - 16 / 116) / 7.787; z3 = z22 > 8856e-6 ? z22 : (z3 - 16 / 116) / 7.787; - x3 *= 95.047; + x4 *= 95.047; y3 *= 100; z3 *= 108.883; - return [x3, y3, z3]; + return [x4, y3, z3]; }; - convert.lab.lch = function(lab) { - const l3 = lab[0]; + convert2.lab.lch = function(lab) { + const l4 = lab[0]; const a3 = lab[1]; const b3 = lab[2]; let h3; @@ -31730,38 +31148,38 @@ var require_conversions = __commonJS({ h3 += 360; } const c3 = Math.sqrt(a3 * a3 + b3 * b3); - return [l3, c3, h3]; + return [l4, c3, h3]; }; - convert.lch.lab = function(lch) { - const l3 = lch[0]; + convert2.lch.lab = function(lch) { + const l4 = lch[0]; const c3 = lch[1]; const h3 = lch[2]; const hr = h3 / 360 * 2 * Math.PI; const a3 = c3 * Math.cos(hr); const b3 = c3 * Math.sin(hr); - return [l3, a3, b3]; + return [l4, a3, b3]; }; - convert.rgb.ansi16 = function(args, saturation = null) { - const [r3, g3, b3] = args; - let value = saturation === null ? convert.rgb.hsv(args)[2] : saturation; + convert2.rgb.ansi16 = function(args, saturation = null) { + const [r3, g4, b3] = args; + let value = saturation === null ? convert2.rgb.hsv(args)[2] : saturation; value = Math.round(value / 50); if (value === 0) { return 30; } - let ansi = 30 + (Math.round(b3 / 255) << 2 | Math.round(g3 / 255) << 1 | Math.round(r3 / 255)); + let ansi = 30 + (Math.round(b3 / 255) << 2 | Math.round(g4 / 255) << 1 | Math.round(r3 / 255)); if (value === 2) { ansi += 60; } return ansi; }; - convert.hsv.ansi16 = function(args) { - return convert.rgb.ansi16(convert.hsv.rgb(args), args[2]); + convert2.hsv.ansi16 = function(args) { + return convert2.rgb.ansi16(convert2.hsv.rgb(args), args[2]); }; - convert.rgb.ansi256 = function(args) { + convert2.rgb.ansi256 = function(args) { const r3 = args[0]; - const g3 = args[1]; + const g4 = args[1]; const b3 = args[2]; - if (r3 === g3 && g3 === b3) { + if (r3 === g4 && g4 === b3) { if (r3 < 8) { return 16; } @@ -31770,10 +31188,10 @@ var require_conversions = __commonJS({ } return Math.round((r3 - 8) / 247 * 24) + 232; } - const ansi = 16 + 36 * Math.round(r3 / 255 * 5) + 6 * Math.round(g3 / 255 * 5) + Math.round(b3 / 255 * 5); + const ansi = 16 + 36 * Math.round(r3 / 255 * 5) + 6 * Math.round(g4 / 255 * 5) + Math.round(b3 / 255 * 5); return ansi; }; - convert.ansi16.rgb = function(args) { + convert2.ansi16.rgb = function(args) { let color = args % 10; if (color === 0 || color === 7) { if (args > 50) { @@ -31784,11 +31202,11 @@ var require_conversions = __commonJS({ } const mult = (~~(args > 50) + 1) * 0.5; const r3 = (color & 1) * mult * 255; - const g3 = (color >> 1 & 1) * mult * 255; + const g4 = (color >> 1 & 1) * mult * 255; const b3 = (color >> 2 & 1) * mult * 255; - return [r3, g3, b3]; + return [r3, g4, b3]; }; - convert.ansi256.rgb = function(args) { + convert2.ansi256.rgb = function(args) { if (args >= 232) { const c3 = (args - 232) * 10 + 8; return [c3, c3, c3]; @@ -31796,38 +31214,38 @@ var require_conversions = __commonJS({ args -= 16; let rem; const r3 = Math.floor(args / 36) / 5 * 255; - const g3 = Math.floor((rem = args % 36) / 6) / 5 * 255; + const g4 = Math.floor((rem = args % 36) / 6) / 5 * 255; const b3 = rem % 6 / 5 * 255; - return [r3, g3, b3]; + return [r3, g4, b3]; }; - convert.rgb.hex = function(args) { + convert2.rgb.hex = function(args) { const integer = ((Math.round(args[0]) & 255) << 16) + ((Math.round(args[1]) & 255) << 8) + (Math.round(args[2]) & 255); const string = integer.toString(16).toUpperCase(); return "000000".substring(string.length) + string; }; - convert.hex.rgb = function(args) { - const match = args.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i); - if (!match) { + convert2.hex.rgb = function(args) { + const match2 = args.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i); + if (!match2) { return [0, 0, 0]; } - let colorString = match[0]; - if (match[0].length === 3) { + let colorString = match2[0]; + if (match2[0].length === 3) { colorString = colorString.split("").map((char) => { return char + char; }).join(""); } const integer = parseInt(colorString, 16); const r3 = integer >> 16 & 255; - const g3 = integer >> 8 & 255; + const g4 = integer >> 8 & 255; const b3 = integer & 255; - return [r3, g3, b3]; + return [r3, g4, b3]; }; - convert.rgb.hcg = function(rgb) { + convert2.rgb.hcg = function(rgb) { const r3 = rgb[0] / 255; - const g3 = rgb[1] / 255; + const g4 = rgb[1] / 255; const b3 = rgb[2] / 255; - const max = Math.max(Math.max(r3, g3), b3); - const min = Math.min(Math.min(r3, g3), b3); + const max = Math.max(Math.max(r3, g4), b3); + const min = Math.min(Math.min(r3, g4), b3); const chroma = max - min; let grayscale; let hue; @@ -31839,47 +31257,47 @@ var require_conversions = __commonJS({ if (chroma <= 0) { hue = 0; } else if (max === r3) { - hue = (g3 - b3) / chroma % 6; - } else if (max === g3) { + hue = (g4 - b3) / chroma % 6; + } else if (max === g4) { hue = 2 + (b3 - r3) / chroma; } else { - hue = 4 + (r3 - g3) / chroma; + hue = 4 + (r3 - g4) / chroma; } hue /= 6; hue %= 1; return [hue * 360, chroma * 100, grayscale * 100]; }; - convert.hsl.hcg = function(hsl) { - const s3 = hsl[1] / 100; - const l3 = hsl[2] / 100; - const c3 = l3 < 0.5 ? 2 * s3 * l3 : 2 * s3 * (1 - l3); + convert2.hsl.hcg = function(hsl) { + const s4 = hsl[1] / 100; + const l4 = hsl[2] / 100; + const c3 = l4 < 0.5 ? 2 * s4 * l4 : 2 * s4 * (1 - l4); let f3 = 0; if (c3 < 1) { - f3 = (l3 - 0.5 * c3) / (1 - c3); + f3 = (l4 - 0.5 * c3) / (1 - c3); } return [hsl[0], c3 * 100, f3 * 100]; }; - convert.hsv.hcg = function(hsv) { - const s3 = hsv[1] / 100; + convert2.hsv.hcg = function(hsv) { + const s4 = hsv[1] / 100; const v3 = hsv[2] / 100; - const c3 = s3 * v3; + const c3 = s4 * v3; let f3 = 0; if (c3 < 1) { f3 = (v3 - c3) / (1 - c3); } return [hsv[0], c3 * 100, f3 * 100]; }; - convert.hcg.rgb = function(hcg) { + convert2.hcg.rgb = function(hcg) { const h3 = hcg[0] / 360; const c3 = hcg[1] / 100; - const g3 = hcg[2] / 100; + const g4 = hcg[2] / 100; if (c3 === 0) { - return [g3 * 255, g3 * 255, g3 * 255]; + return [g4 * 255, g4 * 255, g4 * 255]; } const pure = [0, 0, 0]; const hi = h3 % 1 * 6; const v3 = hi % 1; - const w3 = 1 - v3; + const w4 = 1 - v3; let mg = 0; switch (Math.floor(hi)) { case 0: @@ -31888,7 +31306,7 @@ var require_conversions = __commonJS({ pure[2] = 0; break; case 1: - pure[0] = w3; + pure[0] = w4; pure[1] = 1; pure[2] = 0; break; @@ -31899,7 +31317,7 @@ var require_conversions = __commonJS({ break; case 3: pure[0] = 0; - pure[1] = w3; + pure[1] = w4; pure[2] = 1; break; case 4: @@ -31910,83 +31328,83 @@ var require_conversions = __commonJS({ default: pure[0] = 1; pure[1] = 0; - pure[2] = w3; + pure[2] = w4; } - mg = (1 - c3) * g3; + mg = (1 - c3) * g4; return [ (c3 * pure[0] + mg) * 255, (c3 * pure[1] + mg) * 255, (c3 * pure[2] + mg) * 255 ]; }; - convert.hcg.hsv = function(hcg) { + convert2.hcg.hsv = function(hcg) { const c3 = hcg[1] / 100; - const g3 = hcg[2] / 100; - const v3 = c3 + g3 * (1 - c3); + const g4 = hcg[2] / 100; + const v3 = c3 + g4 * (1 - c3); let f3 = 0; if (v3 > 0) { f3 = c3 / v3; } return [hcg[0], f3 * 100, v3 * 100]; }; - convert.hcg.hsl = function(hcg) { + convert2.hcg.hsl = function(hcg) { const c3 = hcg[1] / 100; - const g3 = hcg[2] / 100; - const l3 = g3 * (1 - c3) + 0.5 * c3; - let s3 = 0; - if (l3 > 0 && l3 < 0.5) { - s3 = c3 / (2 * l3); - } else if (l3 >= 0.5 && l3 < 1) { - s3 = c3 / (2 * (1 - l3)); - } - return [hcg[0], s3 * 100, l3 * 100]; + const g4 = hcg[2] / 100; + const l4 = g4 * (1 - c3) + 0.5 * c3; + let s4 = 0; + if (l4 > 0 && l4 < 0.5) { + s4 = c3 / (2 * l4); + } else if (l4 >= 0.5 && l4 < 1) { + s4 = c3 / (2 * (1 - l4)); + } + return [hcg[0], s4 * 100, l4 * 100]; }; - convert.hcg.hwb = function(hcg) { + convert2.hcg.hwb = function(hcg) { const c3 = hcg[1] / 100; - const g3 = hcg[2] / 100; - const v3 = c3 + g3 * (1 - c3); + const g4 = hcg[2] / 100; + const v3 = c3 + g4 * (1 - c3); return [hcg[0], (v3 - c3) * 100, (1 - v3) * 100]; }; - convert.hwb.hcg = function(hwb) { - const w3 = hwb[1] / 100; + convert2.hwb.hcg = function(hwb) { + const w4 = hwb[1] / 100; const b3 = hwb[2] / 100; const v3 = 1 - b3; - const c3 = v3 - w3; - let g3 = 0; + const c3 = v3 - w4; + let g4 = 0; if (c3 < 1) { - g3 = (v3 - c3) / (1 - c3); + g4 = (v3 - c3) / (1 - c3); } - return [hwb[0], c3 * 100, g3 * 100]; + return [hwb[0], c3 * 100, g4 * 100]; }; - convert.apple.rgb = function(apple) { + convert2.apple.rgb = function(apple) { return [apple[0] / 65535 * 255, apple[1] / 65535 * 255, apple[2] / 65535 * 255]; }; - convert.rgb.apple = function(rgb) { + convert2.rgb.apple = function(rgb) { return [rgb[0] / 255 * 65535, rgb[1] / 255 * 65535, rgb[2] / 255 * 65535]; }; - convert.gray.rgb = function(args) { + convert2.gray.rgb = function(args) { return [args[0] / 100 * 255, args[0] / 100 * 255, args[0] / 100 * 255]; }; - convert.gray.hsl = function(args) { + convert2.gray.hsl = function(args) { return [0, 0, args[0]]; }; - convert.gray.hsv = convert.gray.hsl; - convert.gray.hwb = function(gray) { + convert2.gray.hsv = convert2.gray.hsl; + convert2.gray.hwb = function(gray) { return [0, 100, gray[0]]; }; - convert.gray.cmyk = function(gray) { + convert2.gray.cmyk = function(gray) { return [0, 0, 0, gray[0]]; }; - convert.gray.lab = function(gray) { + convert2.gray.lab = function(gray) { return [gray[0], 0, 0]; }; - convert.gray.hex = function(gray) { + convert2.gray.hex = function(gray) { const val = Math.round(gray[0] / 100 * 255) & 255; const integer = (val << 16) + (val << 8) + val; const string = integer.toString(16).toUpperCase(); return "000000".substring(string.length) + string; }; - convert.rgb.gray = function(rgb) { + convert2.rgb.gray = function(rgb) { const val = (rgb[0] + rgb[1] + rgb[2]) / 3; return [val / 255 * 100]; }; @@ -32066,7 +31484,7 @@ var require_color_convert = __commonJS({ "node_modules/color-convert/index.js"(exports, module2) { var conversions = require_conversions(); var route = require_route(); - var convert = {}; + var convert2 = {}; var models = Object.keys(conversions); function wrapRaw(fn) { const wrappedFn = function(...args) { @@ -32107,18 +31525,18 @@ var require_color_convert = __commonJS({ return wrappedFn; } models.forEach((fromModel) => { - convert[fromModel] = {}; - Object.defineProperty(convert[fromModel], "channels", { value: conversions[fromModel].channels }); - Object.defineProperty(convert[fromModel], "labels", { value: conversions[fromModel].labels }); + convert2[fromModel] = {}; + Object.defineProperty(convert2[fromModel], "channels", { value: conversions[fromModel].channels }); + Object.defineProperty(convert2[fromModel], "labels", { value: conversions[fromModel].labels }); const routes = route(fromModel); const routeModels = Object.keys(routes); routeModels.forEach((toModel) => { const fn = routes[toModel]; - convert[fromModel][toModel] = wrapRounded(fn); - convert[fromModel][toModel].raw = wrapRaw(fn); + convert2[fromModel][toModel] = wrapRounded(fn); + convert2[fromModel][toModel].raw = wrapRaw(fn); }); }); - module2.exports = convert; + module2.exports = convert2; } }); @@ -32126,16 +31544,15 @@ var require_color_convert = __commonJS({ var require_color = __commonJS({ "node_modules/color/index.js"(exports, module2) { var colorString = require_color_string(); - var convert = require_color_convert(); - var _slice = [].slice; + var convert2 = require_color_convert(); var skippedModels = [ "keyword", "gray", "hex" ]; var hashedModelKeys = {}; - for (const model of Object.keys(convert)) { - hashedModelKeys[_slice.call(convert[model].labels).sort().join("")] = model; + for (const model of Object.keys(convert2)) { + hashedModelKeys[[...convert2[model].labels].sort().join("")] = model; } var limiters = {}; function Color2(object, model) { @@ -32145,7 +31562,7 @@ var require_color = __commonJS({ if (model && model in skippedModels) { model = null; } - if (model && !(model in convert)) { + if (model && !(model in convert2)) { throw new Error("Unknown model: " + model); } let i3; @@ -32156,7 +31573,7 @@ var require_color = __commonJS({ this.valpha = 1; } else if (object instanceof Color2) { this.model = object.model; - this.color = object.color.slice(); + this.color = [...object.color]; this.valpha = object.valpha; } else if (typeof object === "string") { const result = colorString.get(object); @@ -32164,13 +31581,13 @@ var require_color = __commonJS({ throw new Error("Unable to parse color from string: " + object); } this.model = result.model; - channels = convert[this.model].channels; + channels = convert2[this.model].channels; this.color = result.value.slice(0, channels); this.valpha = typeof result.value[channels] === "number" ? result.value[channels] : 1; } else if (object.length > 0) { this.model = model || "rgb"; - channels = convert[this.model].channels; - const newArray = _slice.call(object, 0, channels); + channels = convert2[this.model].channels; + const newArray = Array.prototype.slice.call(object, 0, channels); this.color = zeroArray(newArray, channels); this.valpha = typeof object[channels] === "number" ? object[channels] : 1; } else if (typeof object === "number") { @@ -32193,7 +31610,7 @@ var require_color = __commonJS({ throw new Error("Unable to parse color from object: " + JSON.stringify(object)); } this.model = hashedModelKeys[hashedKeys]; - const labels = convert[this.model].labels; + const { labels } = convert2[this.model]; const color = []; for (i3 = 0; i3 < labels.length; i3++) { color.push(object[labels[i3]]); @@ -32201,7 +31618,7 @@ var require_color = __commonJS({ this.color = zeroArray(color); } if (limiters[this.model]) { - channels = convert[this.model].channels; + channels = convert2[this.model].channels; for (i3 = 0; i3 < channels; i3++) { const limit = limiters[this.model][i3]; if (limit) { @@ -32224,21 +31641,21 @@ var require_color = __commonJS({ string(places) { let self2 = this.model in colorString.to ? this : this.rgb(); self2 = self2.round(typeof places === "number" ? places : 1); - const args = self2.valpha === 1 ? self2.color : self2.color.concat(this.valpha); + const args = self2.valpha === 1 ? self2.color : [...self2.color, this.valpha]; return colorString.to[self2.model](args); }, percentString(places) { const self2 = this.rgb().round(typeof places === "number" ? places : 1); - const args = self2.valpha === 1 ? self2.color : self2.color.concat(this.valpha); + const args = self2.valpha === 1 ? self2.color : [...self2.color, this.valpha]; return colorString.to.rgb.percent(args); }, array() { - return this.valpha === 1 ? this.color.slice() : this.color.concat(this.valpha); + return this.valpha === 1 ? [...this.color] : [...this.color, this.valpha]; }, object() { const result = {}; - const channels = convert[this.model].channels; - const labels = convert[this.model].labels; + const { channels } = convert2[this.model]; + const { labels } = convert2[this.model]; for (let i3 = 0; i3 < channels; i3++) { result[labels[i3]] = this.color[i3]; } @@ -32269,11 +31686,11 @@ var require_color = __commonJS({ }, round(places) { places = Math.max(places || 0, 0); - return new Color2(this.color.map(roundToPlace(places)).concat(this.valpha), this.model); + return new Color2([...this.color.map(roundToPlace(places)), this.valpha], this.model); }, alpha(value) { - if (arguments.length > 0) { - return new Color2(this.color.concat(Math.max(0, Math.min(1, value))), this.model); + if (value !== void 0) { + return new Color2([...this.color, Math.max(0, Math.min(1, value))], this.model); } return this.valpha; }, @@ -32293,26 +31710,26 @@ var require_color = __commonJS({ magenta: getset("cmyk", 1, maxfn(100)), yellow: getset("cmyk", 2, maxfn(100)), black: getset("cmyk", 3, maxfn(100)), - x: getset("xyz", 0, maxfn(100)), + x: getset("xyz", 0, maxfn(95.047)), y: getset("xyz", 1, maxfn(100)), - z: getset("xyz", 2, maxfn(100)), + z: getset("xyz", 2, maxfn(108.833)), l: getset("lab", 0, maxfn(100)), a: getset("lab", 1), b: getset("lab", 2), keyword(value) { - if (arguments.length > 0) { + if (value !== void 0) { return new Color2(value); } - return convert[this.model].keyword(this.color); + return convert2[this.model].keyword(this.color); }, hex(value) { - if (arguments.length > 0) { + if (value !== void 0) { return new Color2(value); } return colorString.to.hex(this.rgb().round().color); }, hexa(value) { - if (arguments.length > 0) { + if (value !== void 0) { return new Color2(value); } const rgbArray = this.rgb().round().color; @@ -32331,7 +31748,7 @@ var require_color = __commonJS({ const lum = []; for (const [i3, element] of rgb.entries()) { const chan = element / 255; - lum[i3] = chan <= 0.03928 ? chan / 12.92 : ((chan + 0.055) / 1.055) ** 2.4; + lum[i3] = chan <= 0.04045 ? chan / 12.92 : ((chan + 0.055) / 1.055) ** 2.4; } return 0.2126 * lum[0] + 0.7152 * lum[1] + 0.0722 * lum[2]; }, @@ -32345,14 +31762,14 @@ var require_color = __commonJS({ }, level(color2) { const contrastRatio = this.contrast(color2); - if (contrastRatio >= 7.1) { + if (contrastRatio >= 7) { return "AAA"; } return contrastRatio >= 4.5 ? "AA" : ""; }, isDark() { const rgb = this.rgb().color; - const yiq = (rgb[0] * 299 + rgb[1] * 587 + rgb[2] * 114) / 1e3; + const yiq = (rgb[0] * 2126 + rgb[1] * 7152 + rgb[2] * 722) / 1e4; return yiq < 128; }, isLight() { @@ -32421,52 +31838,52 @@ var require_color = __commonJS({ const color1 = mixinColor.rgb(); const color2 = this.rgb(); const p3 = weight === void 0 ? 0.5 : weight; - const w3 = 2 * p3 - 1; + const w4 = 2 * p3 - 1; const a3 = color1.alpha() - color2.alpha(); - const w1 = ((w3 * a3 === -1 ? w3 : (w3 + a3) / (1 + w3 * a3)) + 1) / 2; + const w1 = ((w4 * a3 === -1 ? w4 : (w4 + a3) / (1 + w4 * a3)) + 1) / 2; const w22 = 1 - w1; return Color2.rgb(w1 * color1.red() + w22 * color2.red(), w1 * color1.green() + w22 * color2.green(), w1 * color1.blue() + w22 * color2.blue(), color1.alpha() * p3 + color2.alpha() * (1 - p3)); } }; - for (const model of Object.keys(convert)) { + for (const model of Object.keys(convert2)) { if (skippedModels.includes(model)) { continue; } - const channels = convert[model].channels; - Color2.prototype[model] = function() { + const { channels } = convert2[model]; + Color2.prototype[model] = function(...args) { if (this.model === model) { return new Color2(this); } - if (arguments.length > 0) { - return new Color2(arguments, model); + if (args.length > 0) { + return new Color2(args, model); } - const newAlpha = typeof arguments[channels] === "number" ? channels : this.valpha; - return new Color2(assertArray(convert[this.model][model].raw(this.color)).concat(newAlpha), model); + return new Color2([...assertArray(convert2[this.model][model].raw(this.color)), this.valpha], model); }; - Color2[model] = function(color) { + Color2[model] = function(...args) { + let color = args[0]; if (typeof color === "number") { - color = zeroArray(_slice.call(arguments), channels); + color = zeroArray(args, channels); } return new Color2(color, model); }; } - function roundTo(number, places) { + function roundTo2(number, places) { return Number(number.toFixed(places)); } function roundToPlace(places) { return function(number) { - return roundTo(number, places); + return roundTo2(number, places); }; } function getset(model, channel, modifier) { model = Array.isArray(model) ? model : [model]; - for (const m2 of model) { - (limiters[m2] || (limiters[m2] = []))[channel] = modifier; + for (const m3 of model) { + (limiters[m3] || (limiters[m3] = []))[channel] = modifier; } model = model[0]; return function(value) { let result; - if (arguments.length > 0) { + if (value !== void 0) { if (modifier) { value = modifier(value); } @@ -32936,23 +32353,23 @@ var require_dav = __commonJS({ } else if (typeof define === "function" && define.amd) { define([], f3); } else { - var g3; + var g4; if (typeof window !== "undefined") { - g3 = window; + g4 = window; } else if (typeof global !== "undefined") { - g3 = global; + g4 = global; } else if (typeof self !== "undefined") { - g3 = self; + g4 = self; } else { - g3 = this; + g4 = this; } - g3.dav = f3(); + g4.dav = f3(); } })(function() { var define2, module3, exports2; - return function e3(t3, n2, r3) { - function s3(o3, u3) { - if (!n2[o3]) { + return function e3(t3, n3, r3) { + function s4(o3, u3) { + if (!n3[o3]) { if (!t3[o3]) { var a3 = typeof require == "function" && require; if (!u3 && a3) @@ -32962,18 +32379,18 @@ var require_dav = __commonJS({ var f3 = new Error("Cannot find module '" + o3 + "'"); throw f3.code = "MODULE_NOT_FOUND", f3; } - var l3 = n2[o3] = { exports: {} }; - t3[o3][0].call(l3.exports, function(e4) { - var n3 = t3[o3][1][e4]; - return s3(n3 ? n3 : e4); - }, l3, l3.exports, e3, t3, n2, r3); + var l4 = n3[o3] = { exports: {} }; + t3[o3][0].call(l4.exports, function(e4) { + var n4 = t3[o3][1][e4]; + return s4(n4 ? n4 : e4); + }, l4, l4.exports, e3, t3, n3, r3); } - return n2[o3].exports; + return n3[o3].exports; } var i3 = typeof require == "function" && require; for (var o2 = 0; o2 < r3.length; o2++) - s3(r3[o2]); - return s3; + s4(r3[o2]); + return s4; }({ 1: [function(require2, module4, exports3) { "use strict"; function _interopRequireWildcard(obj) { @@ -34949,7 +34366,7 @@ var require_dav = __commonJS({ return typeof credentials.expiration === "number" && Date.now() > credentials.expiration; } var getAccessToken = _co2["default"].wrap(regeneratorRuntime.mark(function callee$0$0(credentials, options) { - var sandbox, xhr, data, now, response; + var sandbox, xhr, data, now2, response; return regeneratorRuntime.wrap(function callee$0$0$(context$1$0) { while (1) switch (context$1$0.prev = context$1$0.next) { @@ -34967,14 +34384,14 @@ var require_dav = __commonJS({ client_secret: credentials.clientSecret, grant_type: "authorization_code" }); - now = Date.now(); + now2 = Date.now(); context$1$0.next = 9; return xhr.send(data); case 9: response = JSON.parse(xhr.responseText); credentials.accessToken = response.access_token; credentials.refreshToken = "refresh_token" in response ? response.refresh_token : null; - credentials.expiration = "expires_in" in response ? now + response.expires_in : null; + credentials.expiration = "expires_in" in response ? now2 + response.expires_in : null; return context$1$0.abrupt("return", response.access_token); case 14: case "end": @@ -34983,7 +34400,7 @@ var require_dav = __commonJS({ }, callee$0$0, this); })); var refreshAccessToken = _co2["default"].wrap(regeneratorRuntime.mark(function callee$0$0(credentials, options) { - var sandbox, xhr, data, now, response; + var sandbox, xhr, data, now2, response; return regeneratorRuntime.wrap(function callee$0$0$(context$1$0) { while (1) switch (context$1$0.prev = context$1$0.next) { @@ -35000,13 +34417,13 @@ var require_dav = __commonJS({ refresh_token: credentials.refreshToken, grant_type: "refresh_token" }); - now = Date.now(); + now2 = Date.now(); context$1$0.next = 9; return xhr.send(data); case 9: response = JSON.parse(xhr.responseText); credentials.accessToken = response.access_token; - credentials.expiration = "expires_in" in response ? now + response.expires_in : null; + credentials.expiration = "expires_in" in response ? now2 + response.expires_in : null; return context$1$0.abrupt("return", response.access_token); case 13: case "end": @@ -35470,16 +34887,16 @@ var require_dav = __commonJS({ return digit + 22 + 75 * (digit < 26) - ((flag != 0) << 5); } function adapt(delta, numPoints, firstTime) { - var k2 = 0; + var k3 = 0; delta = firstTime ? floor(delta / damp) : delta >> 1; delta += floor(delta / numPoints); - for (; delta > baseMinusTMin * tMax >> 1; k2 += base) { + for (; delta > baseMinusTMin * tMax >> 1; k3 += base) { delta = floor(delta / baseMinusTMin); } - return floor(k2 + (baseMinusTMin + 1) * delta / (delta + skew)); + return floor(k3 + (baseMinusTMin + 1) * delta / (delta + skew)); } function decode(input) { - var output = [], inputLength = input.length, out, i3 = 0, n2 = initialN, bias = initialBias, basic, j4, index, oldi, w3, k2, digit, t3, baseMinusT; + var output = [], inputLength = input.length, out, i3 = 0, n3 = initialN, bias = initialBias, basic, j4, index, oldi, w4, k3, digit, t3, baseMinusT; basic = input.lastIndexOf(delimiter); if (basic < 0) { basic = 0; @@ -35491,41 +34908,41 @@ var require_dav = __commonJS({ output.push(input.charCodeAt(j4)); } for (index = basic > 0 ? basic + 1 : 0; index < inputLength; ) { - for (oldi = i3, w3 = 1, k2 = base; ; k2 += base) { + for (oldi = i3, w4 = 1, k3 = base; ; k3 += base) { if (index >= inputLength) { error("invalid-input"); } digit = basicToDigit(input.charCodeAt(index++)); - if (digit >= base || digit > floor((maxInt - i3) / w3)) { + if (digit >= base || digit > floor((maxInt - i3) / w4)) { error("overflow"); } - i3 += digit * w3; - t3 = k2 <= bias ? tMin : k2 >= bias + tMax ? tMax : k2 - bias; + i3 += digit * w4; + t3 = k3 <= bias ? tMin : k3 >= bias + tMax ? tMax : k3 - bias; if (digit < t3) { break; } baseMinusT = base - t3; - if (w3 > floor(maxInt / baseMinusT)) { + if (w4 > floor(maxInt / baseMinusT)) { error("overflow"); } - w3 *= baseMinusT; + w4 *= baseMinusT; } out = output.length + 1; bias = adapt(i3 - oldi, out, oldi == 0); - if (floor(i3 / out) > maxInt - n2) { + if (floor(i3 / out) > maxInt - n3) { error("overflow"); } - n2 += floor(i3 / out); + n3 += floor(i3 / out); i3 %= out; - output.splice(i3++, 0, n2); + output.splice(i3++, 0, n3); } return ucs2encode(output); } function encode(input) { - var n2, delta, handledCPCount, basicLength, bias, j4, m2, q3, k2, t3, currentValue, output = [], inputLength, handledCPCountPlusOne, baseMinusT, qMinusT; + var n3, delta, handledCPCount, basicLength, bias, j4, m3, q3, k3, t3, currentValue, output = [], inputLength, handledCPCountPlusOne, baseMinusT, qMinusT; input = ucs2decode(input); inputLength = input.length; - n2 = initialN; + n3 = initialN; delta = 0; bias = initialBias; for (j4 = 0; j4 < inputLength; ++j4) { @@ -35539,26 +34956,26 @@ var require_dav = __commonJS({ output.push(delimiter); } while (handledCPCount < inputLength) { - for (m2 = maxInt, j4 = 0; j4 < inputLength; ++j4) { + for (m3 = maxInt, j4 = 0; j4 < inputLength; ++j4) { currentValue = input[j4]; - if (currentValue >= n2 && currentValue < m2) { - m2 = currentValue; + if (currentValue >= n3 && currentValue < m3) { + m3 = currentValue; } } handledCPCountPlusOne = handledCPCount + 1; - if (m2 - n2 > floor((maxInt - delta) / handledCPCountPlusOne)) { + if (m3 - n3 > floor((maxInt - delta) / handledCPCountPlusOne)) { error("overflow"); } - delta += (m2 - n2) * handledCPCountPlusOne; - n2 = m2; + delta += (m3 - n3) * handledCPCountPlusOne; + n3 = m3; for (j4 = 0; j4 < inputLength; ++j4) { currentValue = input[j4]; - if (currentValue < n2 && ++delta > maxInt) { + if (currentValue < n3 && ++delta > maxInt) { error("overflow"); } - if (currentValue == n2) { - for (q3 = delta, k2 = base; ; k2 += base) { - t3 = k2 <= bias ? tMin : k2 >= bias + tMax ? tMax : k2 - bias; + if (currentValue == n3) { + for (q3 = delta, k3 = base; ; k3 += base) { + t3 = k3 <= bias ? tMin : k3 >= bias + tMax ? tMax : k3 - bias; if (q3 < t3) { break; } @@ -35574,7 +34991,7 @@ var require_dav = __commonJS({ } } ++delta; - ++n2; + ++n3; } return output.join(""); } @@ -35618,7 +35035,7 @@ var require_dav = __commonJS({ }).call(this, typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {}); }, {}], 26: [function(require2, module4, exports3) { "use strict"; - function hasOwnProperty2(obj, prop) { + function hasOwnProperty3(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); } module4.exports = function(qs, sep, eq, options) { @@ -35639,22 +35056,22 @@ var require_dav = __commonJS({ len = maxKeys; } for (var i3 = 0; i3 < len; ++i3) { - var x3 = qs[i3].replace(regexp, "%20"), idx = x3.indexOf(eq), kstr, vstr, k2, v3; + var x4 = qs[i3].replace(regexp, "%20"), idx = x4.indexOf(eq), kstr, vstr, k3, v3; if (idx >= 0) { - kstr = x3.substr(0, idx); - vstr = x3.substr(idx + 1); + kstr = x4.substr(0, idx); + vstr = x4.substr(idx + 1); } else { - kstr = x3; + kstr = x4; vstr = ""; } - k2 = decodeURIComponent(kstr); + k3 = decodeURIComponent(kstr); v3 = decodeURIComponent(vstr); - if (!hasOwnProperty2(obj, k2)) { - obj[k2] = v3; - } else if (isArray(obj[k2])) { - obj[k2].push(v3); + if (!hasOwnProperty3(obj, k3)) { + obj[k3] = v3; + } else if (isArray(obj[k3])) { + obj[k3].push(v3); } else { - obj[k2] = [obj[k2], v3]; + obj[k3] = [obj[k3], v3]; } } return obj; @@ -35683,14 +35100,14 @@ var require_dav = __commonJS({ obj = void 0; } if (typeof obj === "object") { - return map(objectKeys(obj), function(k2) { - var ks = encodeURIComponent(stringifyPrimitive(k2)) + eq; - if (isArray(obj[k2])) { - return map(obj[k2], function(v3) { + return map(objectKeys(obj), function(k3) { + var ks = encodeURIComponent(stringifyPrimitive(k3)) + eq; + if (isArray(obj[k3])) { + return map(obj[k3], function(v3) { return ks + encodeURIComponent(stringifyPrimitive(v3)); }).join(sep); } else { - return ks + encodeURIComponent(stringifyPrimitive(obj[k2])); + return ks + encodeURIComponent(stringifyPrimitive(obj[k3])); } }).join(sep); } @@ -35769,7 +35186,7 @@ var require_dav = __commonJS({ return u3; } Url.prototype.parse = function(url, parseQueryString, slashesDenoteHost) { - if (!isString(url)) { + if (!isString2(url)) { throw new TypeError("Parameter 'url' must be a string, not " + typeof url); } var rest = url; @@ -35821,13 +35238,13 @@ var require_dav = __commonJS({ var ipv6Hostname = this.hostname[0] === "[" && this.hostname[this.hostname.length - 1] === "]"; if (!ipv6Hostname) { var hostparts = this.hostname.split(/\./); - for (var i3 = 0, l3 = hostparts.length; i3 < l3; i3++) { + for (var i3 = 0, l4 = hostparts.length; i3 < l4; i3++) { var part = hostparts[i3]; if (!part) continue; if (!part.match(hostnamePartPattern)) { var newpart = ""; - for (var j4 = 0, k2 = part.length; j4 < k2; j4++) { + for (var j4 = 0, k3 = part.length; j4 < k3; j4++) { if (part.charCodeAt(j4) > 127) { newpart += "x"; } else { @@ -35860,8 +35277,8 @@ var require_dav = __commonJS({ var domainArray = this.hostname.split("."); var newOut = []; for (var i3 = 0; i3 < domainArray.length; ++i3) { - var s3 = domainArray[i3]; - newOut.push(s3.match(/[^A-Za-z0-9_-]/) ? "xn--" + punycode.encode(s3) : s3); + var s4 = domainArray[i3]; + newOut.push(s4.match(/[^A-Za-z0-9_-]/) ? "xn--" + punycode.encode(s4) : s4); } this.hostname = newOut.join("."); } @@ -35877,7 +35294,7 @@ var require_dav = __commonJS({ } } if (!unsafeProtocol[lowerProto]) { - for (var i3 = 0, l3 = autoEscape.length; i3 < l3; i3++) { + for (var i3 = 0, l4 = autoEscape.length; i3 < l4; i3++) { var ae = autoEscape[i3]; var esc = encodeURIComponent(ae); if (esc === ae) { @@ -35910,14 +35327,14 @@ var require_dav = __commonJS({ } if (this.pathname || this.search) { var p3 = this.pathname || ""; - var s3 = this.search || ""; - this.path = p3 + s3; + var s4 = this.search || ""; + this.path = p3 + s4; } this.href = this.format(); return this; }; function urlFormat(obj) { - if (isString(obj)) + if (isString2(obj)) obj = urlParse(obj); if (!(obj instanceof Url)) return Url.prototype.format.call(obj); @@ -35956,8 +35373,8 @@ var require_dav = __commonJS({ hash = "#" + hash; if (search && search.charAt(0) !== "?") search = "?" + search; - pathname = pathname.replace(/[?#]/g, function(match) { - return encodeURIComponent(match); + pathname = pathname.replace(/[?#]/g, function(match2) { + return encodeURIComponent(match2); }); search = search.replace("#", "%23"); return protocol + host + pathname + search + hash; @@ -35974,14 +35391,14 @@ var require_dav = __commonJS({ return urlParse(source, false, true).resolveObject(relative); } Url.prototype.resolveObject = function(relative) { - if (isString(relative)) { + if (isString2(relative)) { var rel = new Url(); rel.parse(relative, false, true); relative = rel; } var result = new Url(); - Object.keys(this).forEach(function(k2) { - result[k2] = this[k2]; + Object.keys(this).forEach(function(k3) { + result[k3] = this[k3]; }, this); result.hash = relative.hash; if (relative.href === "") { @@ -35989,9 +35406,9 @@ var require_dav = __commonJS({ return result; } if (relative.slashes && !relative.protocol) { - Object.keys(relative).forEach(function(k2) { - if (k2 !== "protocol") - result[k2] = relative[k2]; + Object.keys(relative).forEach(function(k3) { + if (k3 !== "protocol") + result[k3] = relative[k3]; }); if (slashedProtocol[result.protocol] && result.hostname && !result.pathname) { result.path = result.pathname = "/"; @@ -36001,8 +35418,8 @@ var require_dav = __commonJS({ } if (relative.protocol && relative.protocol !== result.protocol) { if (!slashedProtocol[relative.protocol]) { - Object.keys(relative).forEach(function(k2) { - result[k2] = relative[k2]; + Object.keys(relative).forEach(function(k3) { + result[k3] = relative[k3]; }); result.href = result.format(); return result; @@ -36032,8 +35449,8 @@ var require_dav = __commonJS({ result.port = relative.port; if (result.pathname || result.search) { var p3 = result.pathname || ""; - var s3 = result.search || ""; - result.path = p3 + s3; + var s4 = result.search || ""; + result.path = p3 + s4; } result.slashes = result.slashes || relative.slashes; result.href = result.format(); @@ -36169,7 +35586,7 @@ var require_dav = __commonJS({ if (host) this.hostname = host; }; - function isString(arg) { + function isString2(arg) { return typeof arg === "string"; } function isObject(arg) { @@ -36342,9 +35759,9 @@ var require_dav = __commonJS({ throw error; } }; - function _locator(l3) { - if (l3) { - return "\n@" + (l3.systemId || "") + "#[line:" + l3.lineNumber + ",col:" + l3.columnNumber + "]"; + function _locator(l4) { + if (l4) { + return "\n@" + (l4.systemId || "") + "#[line:" + l4.lineNumber + ",col:" + l4.columnNumber + "]"; } } function _toString(chars, start, length) { @@ -36683,9 +36100,9 @@ var require_dav = __commonJS({ while (el) { var map = el._nsMap; if (map) { - for (var n2 in map) { - if (map[n2] == namespaceURI) { - return n2; + for (var n3 in map) { + if (map[n3] == namespaceURI) { + return n3; } } } @@ -37063,26 +36480,26 @@ var require_dav = __commonJS({ ; CharacterData.prototype = { data: "", - substringData: function(offset, count) { - return this.data.substring(offset, offset + count); + substringData: function(offset2, count) { + return this.data.substring(offset2, offset2 + count); }, appendData: function(text) { text = this.data + text; this.nodeValue = this.data = text; this.length = text.length; }, - insertData: function(offset, text) { - this.replaceData(offset, 0, text); + insertData: function(offset2, text) { + this.replaceData(offset2, 0, text); }, appendChild: function(newChild) { throw new Error(ExceptionMessage[HIERARCHY_REQUEST_ERR]); }, - deleteData: function(offset, count) { - this.replaceData(offset, count, ""); + deleteData: function(offset2, count) { + this.replaceData(offset2, count, ""); }, - replaceData: function(offset, count, text) { - var start = this.data.substring(0, offset); - var end = this.data.substring(offset + count); + replaceData: function(offset2, count, text) { + var start = this.data.substring(0, offset2); + var end = this.data.substring(offset2 + count); text = start + text + end; this.nodeValue = this.data = text; this.length = text.length; @@ -37095,10 +36512,10 @@ var require_dav = __commonJS({ Text.prototype = { nodeName: "#text", nodeType: TEXT_NODE, - splitText: function(offset) { + splitText: function(offset2) { var text = this.data; - var newText = text.substring(offset); - text = text.substring(0, offset); + var newText = text.substring(offset2); + text = text.substring(0, offset2); this.data = this.nodeValue = text; this.length = text.length; var newNode = this.ownerDocument.createTextNode(newText); @@ -37338,11 +36755,11 @@ var require_dav = __commonJS({ } function cloneNode(doc, node, deep) { var node2 = new node.constructor(); - for (var n2 in node) { - var v3 = node[n2]; + for (var n3 in node) { + var v3 = node[n3]; if (typeof v3 != "object") { - if (v3 != node2[n2]) { - node2[n2] = v3; + if (v3 != node2[n3]) { + node2[n3] = v3; } } } @@ -37451,11 +36868,11 @@ var require_dav = __commonJS({ var domBuilder = this.domBuilder; domBuilder.startDocument(); _copy(defaultNSMap, defaultNSMap = {}); - parse4(source, defaultNSMap, entityMap, domBuilder, this.errorHandler); + parse5(source, defaultNSMap, entityMap, domBuilder, this.errorHandler); domBuilder.endDocument(); } }; - function parse4(source, defaultNSMapCopy, entityMap, domBuilder, errorHandler) { + function parse5(source, defaultNSMapCopy, entityMap, domBuilder, errorHandler) { function fixedFromCharCode(code) { if (code > 65535) { code -= 65536; @@ -37466,11 +36883,11 @@ var require_dav = __commonJS({ } } function entityReplacer(a4) { - var k2 = a4.slice(1, -1); - if (k2 in entityMap) { - return entityMap[k2]; - } else if (k2.charAt(0) === "#") { - return fixedFromCharCode(parseInt(k2.substr(1).replace("x", "0x"))); + var k3 = a4.slice(1, -1); + if (k3 in entityMap) { + return entityMap[k3]; + } else if (k3.charAt(0) === "#") { + return fixedFromCharCode(parseInt(k3.substr(1).replace("x", "0x"))); } else { errorHandler.error("entity not found:" + a4); return a4; @@ -37484,10 +36901,10 @@ var require_dav = __commonJS({ start = end2; } } - function position(p3, m2) { - while (p3 >= lineEnd && (m2 = linePattern.exec(source))) { - lineStart = m2.index; - lineEnd = lineStart + m2[0].length; + function position(p3, m3) { + while (p3 >= lineEnd && (m3 = linePattern.exec(source))) { + lineStart = m3.index; + lineEnd = lineStart + m3[0].length; locator.lineNumber++; } locator.columnNumber = p3 - lineStart + 1; @@ -37609,24 +37026,24 @@ var require_dav = __commonJS({ var attrName; var value; var p3 = ++start; - var s3 = S_TAG; + var s4 = S_TAG; while (true) { var c3 = source.charAt(p3); switch (c3) { case "=": - if (s3 === S_ATTR) { + if (s4 === S_ATTR) { attrName = source.slice(start, p3); - s3 = S_EQ; - } else if (s3 === S_ATTR_SPACE) { - s3 = S_EQ; + s4 = S_EQ; + } else if (s4 === S_ATTR_SPACE) { + s4 = S_EQ; } else { throw new Error("attribute equal must after attrName"); } break; case "'": case '"': - if (s3 === S_EQ || s3 === S_ATTR) { - if (s3 === S_ATTR) { + if (s4 === S_EQ || s4 === S_ATTR) { + if (s4 === S_ATTR) { errorHandler.warning('attribute value must after "="'); attrName = source.slice(start, p3); } @@ -37635,28 +37052,28 @@ var require_dav = __commonJS({ if (p3 > 0) { value = source.slice(start, p3).replace(/&#?\w+;/g, entityReplacer); el.add(attrName, value, start - 1); - s3 = S_ATTR_END; + s4 = S_ATTR_END; } else { throw new Error("attribute value no end '" + c3 + "' match"); } - } else if (s3 == S_ATTR_NOQUOT_VALUE) { + } else if (s4 == S_ATTR_NOQUOT_VALUE) { value = source.slice(start, p3).replace(/&#?\w+;/g, entityReplacer); el.add(attrName, value, start); errorHandler.warning('attribute "' + attrName + '" missed start quot(' + c3 + ")!!"); start = p3 + 1; - s3 = S_ATTR_END; + s4 = S_ATTR_END; } else { throw new Error('attribute value must after "="'); } break; case "/": - switch (s3) { + switch (s4) { case S_TAG: el.setTagName(source.slice(start, p3)); case S_ATTR_END: case S_TAG_SPACE: case S_TAG_CLOSE: - s3 = S_TAG_CLOSE; + s4 = S_TAG_CLOSE; el.closed = true; case S_ATTR_NOQUOT_VALUE: case S_ATTR: @@ -37668,12 +37085,12 @@ var require_dav = __commonJS({ break; case "": errorHandler.error("unexpected end of input"); - if (s3 == S_TAG) { + if (s4 == S_TAG) { el.setTagName(source.slice(start, p3)); } return p3; case ">": - switch (s3) { + switch (s4) { case S_TAG: el.setTagName(source.slice(start, p3)); case S_ATTR_END: @@ -37688,10 +37105,10 @@ var require_dav = __commonJS({ value = value.slice(0, -1); } case S_ATTR_SPACE: - if (s3 === S_ATTR_SPACE) { + if (s4 === S_ATTR_SPACE) { value = attrName; } - if (s3 == S_ATTR_NOQUOT_VALUE) { + if (s4 == S_ATTR_NOQUOT_VALUE) { errorHandler.warning('attribute "' + value + '" missed quot(")!!'); el.add(attrName, value.replace(/&#?\w+;/g, entityReplacer), start); } else { @@ -37709,25 +37126,25 @@ var require_dav = __commonJS({ c3 = " "; default: if (c3 <= " ") { - switch (s3) { + switch (s4) { case S_TAG: el.setTagName(source.slice(start, p3)); - s3 = S_TAG_SPACE; + s4 = S_TAG_SPACE; break; case S_ATTR: attrName = source.slice(start, p3); - s3 = S_ATTR_SPACE; + s4 = S_ATTR_SPACE; break; case S_ATTR_NOQUOT_VALUE: var value = source.slice(start, p3).replace(/&#?\w+;/g, entityReplacer); errorHandler.warning('attribute "' + value + '" missed quot(")!!'); el.add(attrName, value, start); case S_ATTR_END: - s3 = S_TAG_SPACE; + s4 = S_TAG_SPACE; break; } } else { - switch (s3) { + switch (s4) { case S_ATTR_SPACE: var tagName = el.tagName; if (currentNSMap[""] !== "http://www.w3.org/1999/xhtml" || !attrName.match(/^(?:disabled|checked|selected)$/i)) { @@ -37735,16 +37152,16 @@ var require_dav = __commonJS({ } el.add(attrName, attrName, start); start = p3; - s3 = S_ATTR; + s4 = S_ATTR; break; case S_ATTR_END: errorHandler.warning('attribute space is required"' + attrName + '"!!'); case S_TAG_SPACE: - s3 = S_ATTR; + s4 = S_ATTR; start = p3; break; case S_EQ: - s3 = S_ATTR_NOQUOT_VALUE; + s4 = S_ATTR_NOQUOT_VALUE; start = p3; break; case S_TAG_CLOSE: @@ -37848,8 +37265,8 @@ var require_dav = __commonJS({ return pos < elStartEnd; } function _copy(source, target) { - for (var n2 in source) { - target[n2] = source[n2]; + for (var n3 in source) { + target[n3] = source[n3]; } } function parseDCC(source, start, domBuilder, errorHandler) { @@ -37893,10 +37310,10 @@ var require_dav = __commonJS({ function parseInstruction(source, start, domBuilder) { var end = source.indexOf("?>", start); if (end) { - var match = source.substring(start, end).match(/^<\?(\S*)\s*([\s\S]*?)\s*$/); - if (match) { - var len = match[0].length; - domBuilder.processingInstruction(match[1], match[2]); + var match2 = source.substring(start, end).match(/^<\?(\S*)\s*([\s\S]*?)\s*$/); + if (match2) { + var len = match2[0].length; + domBuilder.processingInstruction(match2[1], match2[2]); return end + 2; } else { return -1; @@ -37913,11 +37330,11 @@ var require_dav = __commonJS({ } this.tagName = tagName; }, - add: function(qName, value, offset) { + add: function(qName, value, offset2) { if (!tagNamePattern.test(qName)) { throw new Error("invalid attribute:" + qName); } - this[this.length++] = { qName, value, offset }; + this[this.length++] = { qName, value, offset: offset2 }; }, length: 0, getLocalName: function(i3) { @@ -37954,14 +37371,14 @@ var require_dav = __commonJS({ }; } function split(source, start) { - var match; + var match2; var buf = []; var reg = /'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g; reg.lastIndex = start; reg.exec(source); - while (match = reg.exec(source)) { - buf.push(match); - if (match[1]) + while (match2 = reg.exec(source)) { + buf.push(match2); + if (match2[1]) return buf; } } @@ -38140,10 +37557,10 @@ var require_co = __commonJS({ __export(exports, { default: () => FullCalendarPlugin }); -var import_obsidian8 = __toModule(require("obsidian")); +var import_obsidian12 = __toModule(require("obsidian")); -// src/view.ts -var import_obsidian7 = __toModule(require("obsidian")); +// src/ui/view.ts +var import_obsidian11 = __toModule(require("obsidian")); // node_modules/tslib/modules/index.js var import_tslib = __toModule(require_tslib()); @@ -38182,562 +37599,581 @@ var i; var t; var o; var r; -var f; -var e = {}; -var c = []; -var s = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i; -function a(n2, l3) { - for (var u3 in l3) - n2[u3] = l3[u3]; - return n2; -} -function h(n2) { - var l3 = n2.parentNode; - l3 && l3.removeChild(n2); -} -function v(l3, u3, i3) { +var f = {}; +var e = []; +var c = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i; +function s(n3, l4) { + for (var u3 in l4) + n3[u3] = l4[u3]; + return n3; +} +function a(n3) { + var l4 = n3.parentNode; + l4 && l4.removeChild(n3); +} +function h(l4, u3, i3) { var t3, o2, r3, f3 = {}; for (r3 in u3) r3 == "key" ? t3 = u3[r3] : r3 == "ref" ? o2 = u3[r3] : f3[r3] = u3[r3]; - if (arguments.length > 2 && (f3.children = arguments.length > 3 ? n.call(arguments, 2) : i3), typeof l3 == "function" && l3.defaultProps != null) - for (r3 in l3.defaultProps) - f3[r3] === void 0 && (f3[r3] = l3.defaultProps[r3]); - return y(l3, f3, t3, o2, null); + if (arguments.length > 2 && (f3.children = arguments.length > 3 ? n.call(arguments, 2) : i3), typeof l4 == "function" && l4.defaultProps != null) + for (r3 in l4.defaultProps) + f3[r3] === void 0 && (f3[r3] = l4.defaultProps[r3]); + return v(l4, f3, t3, o2, null); } -function y(n2, i3, t3, o2, r3) { - var f3 = { type: n2, props: i3, key: t3, ref: o2, __k: null, __: null, __b: 0, __e: null, __d: void 0, __c: null, __h: null, constructor: void 0, __v: r3 == null ? ++u : r3 }; +function v(n3, i3, t3, o2, r3) { + var f3 = { type: n3, props: i3, key: t3, ref: o2, __k: null, __: null, __b: 0, __e: null, __d: void 0, __c: null, __h: null, constructor: void 0, __v: r3 == null ? ++u : r3 }; return r3 == null && l.vnode != null && l.vnode(f3), f3; } -function p() { +function y() { return { current: null }; } -function d(n2) { - return n2.children; +function p(n3) { + return n3.children; } -function _(n2, l3) { - this.props = n2, this.context = l3; +function d(n3, l4) { + this.props = n3, this.context = l4; } -function k(n2, l3) { - if (l3 == null) - return n2.__ ? k(n2.__, n2.__.__k.indexOf(n2) + 1) : null; - for (var u3; l3 < n2.__k.length; l3++) - if ((u3 = n2.__k[l3]) != null && u3.__e != null) +function _(n3, l4) { + if (l4 == null) + return n3.__ ? _(n3.__, n3.__.__k.indexOf(n3) + 1) : null; + for (var u3; l4 < n3.__k.length; l4++) + if ((u3 = n3.__k[l4]) != null && u3.__e != null) return u3.__e; - return typeof n2.type == "function" ? k(n2) : null; -} -function b(n2) { - var l3, u3; - if ((n2 = n2.__) != null && n2.__c != null) { - for (n2.__e = n2.__c.base = null, l3 = 0; l3 < n2.__k.length; l3++) - if ((u3 = n2.__k[l3]) != null && u3.__e != null) { - n2.__e = n2.__c.base = u3.__e; + return typeof n3.type == "function" ? _(n3) : null; +} +function k(n3) { + var l4, u3; + if ((n3 = n3.__) != null && n3.__c != null) { + for (n3.__e = n3.__c.base = null, l4 = 0; l4 < n3.__k.length; l4++) + if ((u3 = n3.__k[l4]) != null && u3.__e != null) { + n3.__e = n3.__c.base = u3.__e; break; } - return b(n2); + return k(n3); } } -function m(n2) { - (!n2.__d && (n2.__d = true) && t.push(n2) && !g.__r++ || r !== l.debounceRendering) && ((r = l.debounceRendering) || o)(g); +function b(n3) { + (!n3.__d && (n3.__d = true) && t.push(n3) && !g.__r++ || o !== l.debounceRendering) && ((o = l.debounceRendering) || setTimeout)(g); } function g() { - for (var n2; g.__r = t.length; ) - n2 = t.sort(function(n3, l3) { - return n3.__v.__b - l3.__v.__b; - }), t = [], n2.some(function(n3) { - var l3, u3, i3, t3, o2, r3; - n3.__d && (o2 = (t3 = (l3 = n3).__v).__e, (r3 = l3.__P) && (u3 = [], (i3 = a({}, t3)).__v = t3.__v + 1, j(r3, t3, i3, l3.__n, r3.ownerSVGElement !== void 0, t3.__h != null ? [o2] : null, u3, o2 == null ? k(t3) : o2, t3.__h), z(u3, t3), t3.__e != o2 && b(t3))); + for (var n3; g.__r = t.length; ) + n3 = t.sort(function(n4, l4) { + return n4.__v.__b - l4.__v.__b; + }), t = [], n3.some(function(n4) { + var l4, u3, i3, t3, o2, r3; + n4.__d && (o2 = (t3 = (l4 = n4).__v).__e, (r3 = l4.__P) && (u3 = [], (i3 = s({}, t3)).__v = t3.__v + 1, j(r3, t3, i3, l4.__n, r3.ownerSVGElement !== void 0, t3.__h != null ? [o2] : null, u3, o2 == null ? _(t3) : o2, t3.__h), z(u3, t3), t3.__e != o2 && k(t3))); }); } -function w(n2, l3, u3, i3, t3, o2, r3, f3, s3, a3) { - var h3, v3, p3, _3, b3, m2, g3, w3 = i3 && i3.__k || c, A4 = w3.length; - for (u3.__k = [], h3 = 0; h3 < l3.length; h3++) - if ((_3 = u3.__k[h3] = (_3 = l3[h3]) == null || typeof _3 == "boolean" ? null : typeof _3 == "string" || typeof _3 == "number" || typeof _3 == "bigint" ? y(null, _3, null, null, _3) : Array.isArray(_3) ? y(d, { children: _3 }, null, null, null) : _3.__b > 0 ? y(_3.type, _3.props, _3.key, null, _3.__v) : _3) != null) { - if (_3.__ = u3, _3.__b = u3.__b + 1, (p3 = w3[h3]) === null || p3 && _3.key == p3.key && _3.type === p3.type) - w3[h3] = void 0; +function w(n3, l4, u3, i3, t3, o2, r3, c3, s4, a3) { + var h3, y3, d2, k3, b3, g4, w4, x4 = i3 && i3.__k || e, C3 = x4.length; + for (u3.__k = [], h3 = 0; h3 < l4.length; h3++) + if ((k3 = u3.__k[h3] = (k3 = l4[h3]) == null || typeof k3 == "boolean" ? null : typeof k3 == "string" || typeof k3 == "number" || typeof k3 == "bigint" ? v(null, k3, null, null, k3) : Array.isArray(k3) ? v(p, { children: k3 }, null, null, null) : k3.__b > 0 ? v(k3.type, k3.props, k3.key, k3.ref ? k3.ref : null, k3.__v) : k3) != null) { + if (k3.__ = u3, k3.__b = u3.__b + 1, (d2 = x4[h3]) === null || d2 && k3.key == d2.key && k3.type === d2.type) + x4[h3] = void 0; else - for (v3 = 0; v3 < A4; v3++) { - if ((p3 = w3[v3]) && _3.key == p3.key && _3.type === p3.type) { - w3[v3] = void 0; + for (y3 = 0; y3 < C3; y3++) { + if ((d2 = x4[y3]) && k3.key == d2.key && k3.type === d2.type) { + x4[y3] = void 0; break; } - p3 = null; + d2 = null; } - j(n2, _3, p3 = p3 || e, t3, o2, r3, f3, s3, a3), b3 = _3.__e, (v3 = _3.ref) && p3.ref != v3 && (g3 || (g3 = []), p3.ref && g3.push(p3.ref, null, _3), g3.push(v3, _3.__c || b3, _3)), b3 != null ? (m2 == null && (m2 = b3), typeof _3.type == "function" && _3.__k === p3.__k ? _3.__d = s3 = x(_3, s3, n2) : s3 = P(n2, _3, p3, w3, b3, s3), typeof u3.type == "function" && (u3.__d = s3)) : s3 && p3.__e == s3 && s3.parentNode != n2 && (s3 = k(p3)); + j(n3, k3, d2 = d2 || f, t3, o2, r3, c3, s4, a3), b3 = k3.__e, (y3 = k3.ref) && d2.ref != y3 && (w4 || (w4 = []), d2.ref && w4.push(d2.ref, null, k3), w4.push(y3, k3.__c || b3, k3)), b3 != null ? (g4 == null && (g4 = b3), typeof k3.type == "function" && k3.__k === d2.__k ? k3.__d = s4 = m(k3, s4, n3) : s4 = A(n3, k3, d2, x4, b3, s4), typeof u3.type == "function" && (u3.__d = s4)) : s4 && d2.__e == s4 && s4.parentNode != n3 && (s4 = _(d2)); } - for (u3.__e = m2, h3 = A4; h3--; ) - w3[h3] != null && (typeof u3.type == "function" && w3[h3].__e != null && w3[h3].__e == u3.__d && (u3.__d = k(i3, h3 + 1)), N(w3[h3], w3[h3])); - if (g3) - for (h3 = 0; h3 < g3.length; h3++) - M(g3[h3], g3[++h3], g3[++h3]); + for (u3.__e = g4, h3 = C3; h3--; ) + x4[h3] != null && N(x4[h3], x4[h3]); + if (w4) + for (h3 = 0; h3 < w4.length; h3++) + M(w4[h3], w4[++h3], w4[++h3]); } -function x(n2, l3, u3) { - for (var i3, t3 = n2.__k, o2 = 0; t3 && o2 < t3.length; o2++) - (i3 = t3[o2]) && (i3.__ = n2, l3 = typeof i3.type == "function" ? x(i3, l3, u3) : P(u3, i3, i3, t3, i3.__e, l3)); - return l3; +function m(n3, l4, u3) { + for (var i3, t3 = n3.__k, o2 = 0; t3 && o2 < t3.length; o2++) + (i3 = t3[o2]) && (i3.__ = n3, l4 = typeof i3.type == "function" ? m(i3, l4, u3) : A(u3, i3, i3, t3, i3.__e, l4)); + return l4; } -function A(n2, l3) { - return l3 = l3 || [], n2 == null || typeof n2 == "boolean" || (Array.isArray(n2) ? n2.some(function(n3) { - A(n3, l3); - }) : l3.push(n2)), l3; +function x(n3, l4) { + return l4 = l4 || [], n3 == null || typeof n3 == "boolean" || (Array.isArray(n3) ? n3.some(function(n4) { + x(n4, l4); + }) : l4.push(n3)), l4; } -function P(n2, l3, u3, i3, t3, o2) { +function A(n3, l4, u3, i3, t3, o2) { var r3, f3, e3; - if (l3.__d !== void 0) - r3 = l3.__d, l3.__d = void 0; + if (l4.__d !== void 0) + r3 = l4.__d, l4.__d = void 0; else if (u3 == null || t3 != o2 || t3.parentNode == null) n: - if (o2 == null || o2.parentNode !== n2) - n2.appendChild(t3), r3 = null; + if (o2 == null || o2.parentNode !== n3) + n3.appendChild(t3), r3 = null; else { - for (f3 = o2, e3 = 0; (f3 = f3.nextSibling) && e3 < i3.length; e3 += 2) + for (f3 = o2, e3 = 0; (f3 = f3.nextSibling) && e3 < i3.length; e3 += 1) if (f3 == t3) break n; - n2.insertBefore(t3, o2), r3 = o2; + n3.insertBefore(t3, o2), r3 = o2; } return r3 !== void 0 ? r3 : t3.nextSibling; } -function C(n2, l3, u3, i3, t3) { +function C(n3, l4, u3, i3, t3) { var o2; for (o2 in u3) - o2 === "children" || o2 === "key" || o2 in l3 || H(n2, o2, null, u3[o2], i3); - for (o2 in l3) - t3 && typeof l3[o2] != "function" || o2 === "children" || o2 === "key" || o2 === "value" || o2 === "checked" || u3[o2] === l3[o2] || H(n2, o2, l3[o2], u3[o2], i3); + o2 === "children" || o2 === "key" || o2 in l4 || H(n3, o2, null, u3[o2], i3); + for (o2 in l4) + t3 && typeof l4[o2] != "function" || o2 === "children" || o2 === "key" || o2 === "value" || o2 === "checked" || u3[o2] === l4[o2] || H(n3, o2, l4[o2], u3[o2], i3); } -function $(n2, l3, u3) { - l3[0] === "-" ? n2.setProperty(l3, u3) : n2[l3] = u3 == null ? "" : typeof u3 != "number" || s.test(l3) ? u3 : u3 + "px"; +function $(n3, l4, u3) { + l4[0] === "-" ? n3.setProperty(l4, u3) : n3[l4] = u3 == null ? "" : typeof u3 != "number" || c.test(l4) ? u3 : u3 + "px"; } -function H(n2, l3, u3, i3, t3) { +function H(n3, l4, u3, i3, t3) { var o2; n: - if (l3 === "style") + if (l4 === "style") if (typeof u3 == "string") - n2.style.cssText = u3; + n3.style.cssText = u3; else { - if (typeof i3 == "string" && (n2.style.cssText = i3 = ""), i3) - for (l3 in i3) - u3 && l3 in u3 || $(n2.style, l3, ""); + if (typeof i3 == "string" && (n3.style.cssText = i3 = ""), i3) + for (l4 in i3) + u3 && l4 in u3 || $(n3.style, l4, ""); if (u3) - for (l3 in u3) - i3 && u3[l3] === i3[l3] || $(n2.style, l3, u3[l3]); + for (l4 in u3) + i3 && u3[l4] === i3[l4] || $(n3.style, l4, u3[l4]); } - else if (l3[0] === "o" && l3[1] === "n") - o2 = l3 !== (l3 = l3.replace(/Capture$/, "")), l3 = l3.toLowerCase() in n2 ? l3.toLowerCase().slice(2) : l3.slice(2), n2.l || (n2.l = {}), n2.l[l3 + o2] = u3, u3 ? i3 || n2.addEventListener(l3, o2 ? T : I, o2) : n2.removeEventListener(l3, o2 ? T : I, o2); - else if (l3 !== "dangerouslySetInnerHTML") { + else if (l4[0] === "o" && l4[1] === "n") + o2 = l4 !== (l4 = l4.replace(/Capture$/, "")), l4 = l4.toLowerCase() in n3 ? l4.toLowerCase().slice(2) : l4.slice(2), n3.l || (n3.l = {}), n3.l[l4 + o2] = u3, u3 ? i3 || n3.addEventListener(l4, o2 ? T : I, o2) : n3.removeEventListener(l4, o2 ? T : I, o2); + else if (l4 !== "dangerouslySetInnerHTML") { if (t3) - l3 = l3.replace(/xlink[H:h]/, "h").replace(/sName$/, "s"); - else if (l3 !== "href" && l3 !== "list" && l3 !== "form" && l3 !== "tabIndex" && l3 !== "download" && l3 in n2) + l4 = l4.replace(/xlink(H|:h)/, "h").replace(/sName$/, "s"); + else if (l4 !== "href" && l4 !== "list" && l4 !== "form" && l4 !== "tabIndex" && l4 !== "download" && l4 in n3) try { - n2[l3] = u3 == null ? "" : u3; + n3[l4] = u3 == null ? "" : u3; break n; - } catch (n3) { + } catch (n4) { } - typeof u3 == "function" || (u3 != null && (u3 !== false || l3[0] === "a" && l3[1] === "r") ? n2.setAttribute(l3, u3) : n2.removeAttribute(l3)); + typeof u3 == "function" || (u3 == null || u3 === false && l4.indexOf("-") == -1 ? n3.removeAttribute(l4) : n3.setAttribute(l4, u3)); } } -function I(n2) { - this.l[n2.type + false](l.event ? l.event(n2) : n2); +function I(n3) { + this.l[n3.type + false](l.event ? l.event(n3) : n3); } -function T(n2) { - this.l[n2.type + true](l.event ? l.event(n2) : n2); +function T(n3) { + this.l[n3.type + true](l.event ? l.event(n3) : n3); } -function j(n2, u3, i3, t3, o2, r3, f3, e3, c3) { - var s3, h3, v3, y3, p3, k2, b3, m2, g3, x3, A4, P3 = u3.type; +function j(n3, u3, i3, t3, o2, r3, f3, e3, c3) { + var a3, h3, v3, y3, _3, k3, b3, g4, m3, x4, A3, C3, $3, H3, I3, T4 = u3.type; if (u3.constructor !== void 0) return null; - i3.__h != null && (c3 = i3.__h, e3 = u3.__e = i3.__e, u3.__h = null, r3 = [e3]), (s3 = l.__b) && s3(u3); + i3.__h != null && (c3 = i3.__h, e3 = u3.__e = i3.__e, u3.__h = null, r3 = [e3]), (a3 = l.__b) && a3(u3); try { n: - if (typeof P3 == "function") { - if (m2 = u3.props, g3 = (s3 = P3.contextType) && t3[s3.__c], x3 = s3 ? g3 ? g3.props.value : s3.__ : t3, i3.__c ? b3 = (h3 = u3.__c = i3.__c).__ = h3.__E : ("prototype" in P3 && P3.prototype.render ? u3.__c = h3 = new P3(m2, x3) : (u3.__c = h3 = new _(m2, x3), h3.constructor = P3, h3.render = O), g3 && g3.sub(h3), h3.props = m2, h3.state || (h3.state = {}), h3.context = x3, h3.__n = t3, v3 = h3.__d = true, h3.__h = []), h3.__s == null && (h3.__s = h3.state), P3.getDerivedStateFromProps != null && (h3.__s == h3.state && (h3.__s = a({}, h3.__s)), a(h3.__s, P3.getDerivedStateFromProps(m2, h3.__s))), y3 = h3.props, p3 = h3.state, v3) - P3.getDerivedStateFromProps == null && h3.componentWillMount != null && h3.componentWillMount(), h3.componentDidMount != null && h3.__h.push(h3.componentDidMount); + if (typeof T4 == "function") { + if (g4 = u3.props, m3 = (a3 = T4.contextType) && t3[a3.__c], x4 = a3 ? m3 ? m3.props.value : a3.__ : t3, i3.__c ? b3 = (h3 = u3.__c = i3.__c).__ = h3.__E : ("prototype" in T4 && T4.prototype.render ? u3.__c = h3 = new T4(g4, x4) : (u3.__c = h3 = new d(g4, x4), h3.constructor = T4, h3.render = O), m3 && m3.sub(h3), h3.props = g4, h3.state || (h3.state = {}), h3.context = x4, h3.__n = t3, v3 = h3.__d = true, h3.__h = [], h3._sb = []), h3.__s == null && (h3.__s = h3.state), T4.getDerivedStateFromProps != null && (h3.__s == h3.state && (h3.__s = s({}, h3.__s)), s(h3.__s, T4.getDerivedStateFromProps(g4, h3.__s))), y3 = h3.props, _3 = h3.state, v3) + T4.getDerivedStateFromProps == null && h3.componentWillMount != null && h3.componentWillMount(), h3.componentDidMount != null && h3.__h.push(h3.componentDidMount); else { - if (P3.getDerivedStateFromProps == null && m2 !== y3 && h3.componentWillReceiveProps != null && h3.componentWillReceiveProps(m2, x3), !h3.__e && h3.shouldComponentUpdate != null && h3.shouldComponentUpdate(m2, h3.__s, x3) === false || u3.__v === i3.__v) { - h3.props = m2, h3.state = h3.__s, u3.__v !== i3.__v && (h3.__d = false), h3.__v = u3, u3.__e = i3.__e, u3.__k = i3.__k, u3.__k.forEach(function(n3) { - n3 && (n3.__ = u3); - }), h3.__h.length && f3.push(h3); + if (T4.getDerivedStateFromProps == null && g4 !== y3 && h3.componentWillReceiveProps != null && h3.componentWillReceiveProps(g4, x4), !h3.__e && h3.shouldComponentUpdate != null && h3.shouldComponentUpdate(g4, h3.__s, x4) === false || u3.__v === i3.__v) { + for (h3.props = g4, h3.state = h3.__s, u3.__v !== i3.__v && (h3.__d = false), h3.__v = u3, u3.__e = i3.__e, u3.__k = i3.__k, u3.__k.forEach(function(n4) { + n4 && (n4.__ = u3); + }), A3 = 0; A3 < h3._sb.length; A3++) + h3.__h.push(h3._sb[A3]); + h3._sb = [], h3.__h.length && f3.push(h3); break n; } - h3.componentWillUpdate != null && h3.componentWillUpdate(m2, h3.__s, x3), h3.componentDidUpdate != null && h3.__h.push(function() { - h3.componentDidUpdate(y3, p3, k2); + h3.componentWillUpdate != null && h3.componentWillUpdate(g4, h3.__s, x4), h3.componentDidUpdate != null && h3.__h.push(function() { + h3.componentDidUpdate(y3, _3, k3); }); } - h3.context = x3, h3.props = m2, h3.state = h3.__s, (s3 = l.__r) && s3(u3), h3.__d = false, h3.__v = u3, h3.__P = n2, s3 = h3.render(h3.props, h3.state, h3.context), h3.state = h3.__s, h3.getChildContext != null && (t3 = a(a({}, t3), h3.getChildContext())), v3 || h3.getSnapshotBeforeUpdate == null || (k2 = h3.getSnapshotBeforeUpdate(y3, p3)), A4 = s3 != null && s3.type === d && s3.key == null ? s3.props.children : s3, w(n2, Array.isArray(A4) ? A4 : [A4], u3, i3, t3, o2, r3, f3, e3, c3), h3.base = u3.__e, u3.__h = null, h3.__h.length && f3.push(h3), b3 && (h3.__E = h3.__ = null), h3.__e = false; + if (h3.context = x4, h3.props = g4, h3.__v = u3, h3.__P = n3, C3 = l.__r, $3 = 0, "prototype" in T4 && T4.prototype.render) { + for (h3.state = h3.__s, h3.__d = false, C3 && C3(u3), a3 = h3.render(h3.props, h3.state, h3.context), H3 = 0; H3 < h3._sb.length; H3++) + h3.__h.push(h3._sb[H3]); + h3._sb = []; + } else + do { + h3.__d = false, C3 && C3(u3), a3 = h3.render(h3.props, h3.state, h3.context), h3.state = h3.__s; + } while (h3.__d && ++$3 < 25); + h3.state = h3.__s, h3.getChildContext != null && (t3 = s(s({}, t3), h3.getChildContext())), v3 || h3.getSnapshotBeforeUpdate == null || (k3 = h3.getSnapshotBeforeUpdate(y3, _3)), I3 = a3 != null && a3.type === p && a3.key == null ? a3.props.children : a3, w(n3, Array.isArray(I3) ? I3 : [I3], u3, i3, t3, o2, r3, f3, e3, c3), h3.base = u3.__e, u3.__h = null, h3.__h.length && f3.push(h3), b3 && (h3.__E = h3.__ = null), h3.__e = false; } else r3 == null && u3.__v === i3.__v ? (u3.__k = i3.__k, u3.__e = i3.__e) : u3.__e = L(i3.__e, u3, i3, t3, o2, r3, f3, c3); - (s3 = l.diffed) && s3(u3); - } catch (n3) { - u3.__v = null, (c3 || r3 != null) && (u3.__e = e3, u3.__h = !!c3, r3[r3.indexOf(e3)] = null), l.__e(n3, u3, i3); + (a3 = l.diffed) && a3(u3); + } catch (n4) { + u3.__v = null, (c3 || r3 != null) && (u3.__e = e3, u3.__h = !!c3, r3[r3.indexOf(e3)] = null), l.__e(n4, u3, i3); } } -function z(n2, u3) { - l.__c && l.__c(u3, n2), n2.some(function(u4) { +function z(n3, u3) { + l.__c && l.__c(u3, n3), n3.some(function(u4) { try { - n2 = u4.__h, u4.__h = [], n2.some(function(n3) { - n3.call(u4); + n3 = u4.__h, u4.__h = [], n3.some(function(n4) { + n4.call(u4); }); - } catch (n3) { - l.__e(n3, u4.__v); + } catch (n4) { + l.__e(n4, u4.__v); } }); } -function L(l3, u3, i3, t3, o2, r3, f3, c3) { - var s3, a3, v3, y3 = i3.props, p3 = u3.props, d3 = u3.type, _3 = 0; - if (d3 === "svg" && (o2 = true), r3 != null) { - for (; _3 < r3.length; _3++) - if ((s3 = r3[_3]) && "setAttribute" in s3 == !!d3 && (d3 ? s3.localName === d3 : s3.nodeType === 3)) { - l3 = s3, r3[_3] = null; +function L(l4, u3, i3, t3, o2, r3, e3, c3) { + var s4, h3, v3, y3 = i3.props, p3 = u3.props, d2 = u3.type, k3 = 0; + if (d2 === "svg" && (o2 = true), r3 != null) { + for (; k3 < r3.length; k3++) + if ((s4 = r3[k3]) && "setAttribute" in s4 == !!d2 && (d2 ? s4.localName === d2 : s4.nodeType === 3)) { + l4 = s4, r3[k3] = null; break; } } - if (l3 == null) { - if (d3 === null) + if (l4 == null) { + if (d2 === null) return document.createTextNode(p3); - l3 = o2 ? document.createElementNS("http://www.w3.org/2000/svg", d3) : document.createElement(d3, p3.is && p3), r3 = null, c3 = false; + l4 = o2 ? document.createElementNS("http://www.w3.org/2000/svg", d2) : document.createElement(d2, p3.is && p3), r3 = null, c3 = false; } - if (d3 === null) - y3 === p3 || c3 && l3.data === p3 || (l3.data = p3); + if (d2 === null) + y3 === p3 || c3 && l4.data === p3 || (l4.data = p3); else { - if (r3 = r3 && n.call(l3.childNodes), a3 = (y3 = i3.props || e).dangerouslySetInnerHTML, v3 = p3.dangerouslySetInnerHTML, !c3) { + if (r3 = r3 && n.call(l4.childNodes), h3 = (y3 = i3.props || f).dangerouslySetInnerHTML, v3 = p3.dangerouslySetInnerHTML, !c3) { if (r3 != null) - for (y3 = {}, _3 = 0; _3 < l3.attributes.length; _3++) - y3[l3.attributes[_3].name] = l3.attributes[_3].value; - (v3 || a3) && (v3 && (a3 && v3.__html == a3.__html || v3.__html === l3.innerHTML) || (l3.innerHTML = v3 && v3.__html || "")); + for (y3 = {}, k3 = 0; k3 < l4.attributes.length; k3++) + y3[l4.attributes[k3].name] = l4.attributes[k3].value; + (v3 || h3) && (v3 && (h3 && v3.__html == h3.__html || v3.__html === l4.innerHTML) || (l4.innerHTML = v3 && v3.__html || "")); } - if (C(l3, p3, y3, o2, c3), v3) + if (C(l4, p3, y3, o2, c3), v3) u3.__k = []; - else if (_3 = u3.props.children, w(l3, Array.isArray(_3) ? _3 : [_3], u3, i3, t3, o2 && d3 !== "foreignObject", r3, f3, r3 ? r3[0] : i3.__k && k(i3, 0), c3), r3 != null) - for (_3 = r3.length; _3--; ) - r3[_3] != null && h(r3[_3]); - c3 || ("value" in p3 && (_3 = p3.value) !== void 0 && (_3 !== l3.value || d3 === "progress" && !_3 || d3 === "option" && _3 !== y3.value) && H(l3, "value", _3, y3.value, false), "checked" in p3 && (_3 = p3.checked) !== void 0 && _3 !== l3.checked && H(l3, "checked", _3, y3.checked, false)); + else if (k3 = u3.props.children, w(l4, Array.isArray(k3) ? k3 : [k3], u3, i3, t3, o2 && d2 !== "foreignObject", r3, e3, r3 ? r3[0] : i3.__k && _(i3, 0), c3), r3 != null) + for (k3 = r3.length; k3--; ) + r3[k3] != null && a(r3[k3]); + c3 || ("value" in p3 && (k3 = p3.value) !== void 0 && (k3 !== l4.value || d2 === "progress" && !k3 || d2 === "option" && k3 !== y3.value) && H(l4, "value", k3, y3.value, false), "checked" in p3 && (k3 = p3.checked) !== void 0 && k3 !== l4.checked && H(l4, "checked", k3, y3.checked, false)); } - return l3; + return l4; } -function M(n2, u3, i3) { +function M(n3, u3, i3) { try { - typeof n2 == "function" ? n2(u3) : n2.current = u3; - } catch (n3) { - l.__e(n3, i3); + typeof n3 == "function" ? n3(u3) : n3.current = u3; + } catch (n4) { + l.__e(n4, i3); } } -function N(n2, u3, i3) { +function N(n3, u3, i3) { var t3, o2; - if (l.unmount && l.unmount(n2), (t3 = n2.ref) && (t3.current && t3.current !== n2.__e || M(t3, null, u3)), (t3 = n2.__c) != null) { + if (l.unmount && l.unmount(n3), (t3 = n3.ref) && (t3.current && t3.current !== n3.__e || M(t3, null, u3)), (t3 = n3.__c) != null) { if (t3.componentWillUnmount) try { t3.componentWillUnmount(); - } catch (n3) { - l.__e(n3, u3); + } catch (n4) { + l.__e(n4, u3); } - t3.base = t3.__P = null; + t3.base = t3.__P = null, n3.__c = void 0; } - if (t3 = n2.__k) + if (t3 = n3.__k) for (o2 = 0; o2 < t3.length; o2++) - t3[o2] && N(t3[o2], u3, typeof n2.type != "function"); - i3 || n2.__e == null || h(n2.__e), n2.__e = n2.__d = void 0; + t3[o2] && N(t3[o2], u3, i3 || typeof n3.type != "function"); + i3 || n3.__e == null || a(n3.__e), n3.__ = n3.__e = n3.__d = void 0; } -function O(n2, l3, u3) { - return this.constructor(n2, u3); +function O(n3, l4, u3) { + return this.constructor(n3, u3); } -function S(u3, i3, t3) { - var o2, r3, f3; - l.__ && l.__(u3, i3), r3 = (o2 = typeof t3 == "function") ? null : t3 && t3.__k || i3.__k, f3 = [], j(i3, u3 = (!o2 && t3 || i3).__k = v(d, null, [u3]), r3 || e, e, i3.ownerSVGElement !== void 0, !o2 && t3 ? [t3] : r3 ? null : i3.firstChild ? n.call(i3.childNodes) : null, f3, !o2 && t3 ? t3 : r3 ? r3.__e : i3.firstChild, o2), z(f3, u3); +function P(u3, i3, t3) { + var o2, r3, e3; + l.__ && l.__(u3, i3), r3 = (o2 = typeof t3 == "function") ? null : t3 && t3.__k || i3.__k, e3 = [], j(i3, u3 = (!o2 && t3 || i3).__k = h(p, null, [u3]), r3 || f, f, i3.ownerSVGElement !== void 0, !o2 && t3 ? [t3] : r3 ? null : i3.firstChild ? n.call(i3.childNodes) : null, e3, !o2 && t3 ? t3 : r3 ? r3.__e : i3.firstChild, o2), z(e3, u3); } -function D(n2, l3) { - var u3 = { __c: l3 = "__cC" + f++, __: n2, Consumer: function(n3, l4) { - return n3.children(l4); - }, Provider: function(n3) { +function B(n3, l4) { + var u3 = { __c: l4 = "__cC" + r++, __: n3, Consumer: function(n4, l5) { + return n4.children(l5); + }, Provider: function(n4) { var u4, i3; - return this.getChildContext || (u4 = [], (i3 = {})[l3] = this, this.getChildContext = function() { + return this.getChildContext || (u4 = [], (i3 = {})[l4] = this, this.getChildContext = function() { return i3; - }, this.shouldComponentUpdate = function(n4) { - this.props.value !== n4.value && u4.some(m); - }, this.sub = function(n4) { - u4.push(n4); - var l4 = n4.componentWillUnmount; - n4.componentWillUnmount = function() { - u4.splice(u4.indexOf(n4), 1), l4 && l4.call(n4); - }; - }), n3.children; + }, this.shouldComponentUpdate = function(n5) { + this.props.value !== n5.value && u4.some(b); + }, this.sub = function(n5) { + u4.push(n5); + var l5 = n5.componentWillUnmount; + n5.componentWillUnmount = function() { + u4.splice(u4.indexOf(n5), 1), l5 && l5.call(n5); + }; + }), n4.children; } }; return u3.Provider.__ = u3.Consumer.contextType = u3; } -n = c.slice, l = { __e: function(n2, l3) { - for (var u3, i3, t3; l3 = l3.__; ) - if ((u3 = l3.__c) && !u3.__) +n = e.slice, l = { __e: function(n3, l4, u3, i3) { + for (var t3, o2, r3; l4 = l4.__; ) + if ((t3 = l4.__c) && !t3.__) try { - if ((i3 = u3.constructor) && i3.getDerivedStateFromError != null && (u3.setState(i3.getDerivedStateFromError(n2)), t3 = u3.__d), u3.componentDidCatch != null && (u3.componentDidCatch(n2), t3 = u3.__d), t3) - return u3.__E = u3; - } catch (l4) { - n2 = l4; - } - throw n2; -} }, u = 0, i = function(n2) { - return n2 != null && n2.constructor === void 0; -}, _.prototype.setState = function(n2, l3) { + if ((o2 = t3.constructor) && o2.getDerivedStateFromError != null && (t3.setState(o2.getDerivedStateFromError(n3)), r3 = t3.__d), t3.componentDidCatch != null && (t3.componentDidCatch(n3, i3 || {}), r3 = t3.__d), r3) + return t3.__E = t3; + } catch (l5) { + n3 = l5; + } + throw n3; +} }, u = 0, i = function(n3) { + return n3 != null && n3.constructor === void 0; +}, d.prototype.setState = function(n3, l4) { var u3; - u3 = this.__s != null && this.__s !== this.state ? this.__s : this.__s = a({}, this.state), typeof n2 == "function" && (n2 = n2(a({}, u3), this.props)), n2 && a(u3, n2), n2 != null && this.__v && (l3 && this.__h.push(l3), m(this)); -}, _.prototype.forceUpdate = function(n2) { - this.__v && (this.__e = true, n2 && this.__h.push(n2), m(this)); -}, _.prototype.render = d, t = [], o = typeof Promise == "function" ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, g.__r = 0, f = 0; + u3 = this.__s != null && this.__s !== this.state ? this.__s : this.__s = s({}, this.state), typeof n3 == "function" && (n3 = n3(s({}, u3), this.props)), n3 && s(u3, n3), n3 != null && this.__v && (l4 && this._sb.push(l4), b(this)); +}, d.prototype.forceUpdate = function(n3) { + this.__v && (this.__e = true, n3 && this.__h.push(n3), b(this)); +}, d.prototype.render = p, t = [], g.__r = 0, r = 0; // node_modules/preact/hooks/dist/hooks.module.js var t2; -var u2; var r2; -var i2 = []; -var c2 = l.__b; -var f2 = l.__r; -var e2 = l.diffed; -var a2 = l.__c; -var v2 = l.unmount; -function x2() { - for (var t3; t3 = i2.shift(); ) - if (t3.__P) +var u2; +var i2; +var f2 = []; +var c2 = []; +var e2 = l.__b; +var a2 = l.__r; +var v2 = l.diffed; +var l2 = l.__c; +var m2 = l.unmount; +function b2() { + for (var t3; t3 = f2.shift(); ) + if (t3.__P && t3.__H) try { - t3.__H.__h.forEach(g2), t3.__H.__h.forEach(j2), t3.__H.__h = []; - } catch (u3) { - t3.__H.__h = [], l.__e(u3, t3.__v); - } -} -l.__b = function(n2) { - u2 = null, c2 && c2(n2); -}, l.__r = function(n2) { - f2 && f2(n2), t2 = 0; - var r3 = (u2 = n2.__c).__H; - r3 && (r3.__h.forEach(g2), r3.__h.forEach(j2), r3.__h = []); + t3.__H.__h.forEach(k2), t3.__H.__h.forEach(w2), t3.__H.__h = []; + } catch (r3) { + t3.__H.__h = [], l.__e(r3, t3.__v); + } +} +l.__b = function(n3) { + r2 = null, e2 && e2(n3); +}, l.__r = function(n3) { + a2 && a2(n3), t2 = 0; + var i3 = (r2 = n3.__c).__H; + i3 && (u2 === r2 ? (i3.__h = [], r2.__h = [], i3.__.forEach(function(n4) { + n4.__N && (n4.__ = n4.__N), n4.__V = c2, n4.__N = n4.i = void 0; + })) : (i3.__h.forEach(k2), i3.__h.forEach(w2), i3.__h = [])), u2 = r2; }, l.diffed = function(t3) { - e2 && e2(t3); + v2 && v2(t3); var o2 = t3.__c; - o2 && o2.__H && o2.__H.__h.length && (i2.push(o2) !== 1 && r2 === l.requestAnimationFrame || ((r2 = l.requestAnimationFrame) || function(n2) { - var t4, u3 = function() { - clearTimeout(r3), b2 && cancelAnimationFrame(t4), setTimeout(n2); - }, r3 = setTimeout(u3, 100); - b2 && (t4 = requestAnimationFrame(u3)); - })(x2)), u2 = null; -}, l.__c = function(t3, u3) { - u3.some(function(t4) { + o2 && o2.__H && (o2.__H.__h.length && (f2.push(o2) !== 1 && i2 === l.requestAnimationFrame || ((i2 = l.requestAnimationFrame) || j2)(b2)), o2.__H.__.forEach(function(n3) { + n3.i && (n3.__H = n3.i), n3.__V !== c2 && (n3.__ = n3.__V), n3.i = void 0, n3.__V = c2; + })), u2 = r2 = null; +}, l.__c = function(t3, r3) { + r3.some(function(t4) { try { - t4.__h.forEach(g2), t4.__h = t4.__h.filter(function(n2) { - return !n2.__ || j2(n2); + t4.__h.forEach(k2), t4.__h = t4.__h.filter(function(n3) { + return !n3.__ || w2(n3); }); - } catch (r3) { - u3.some(function(n2) { - n2.__h && (n2.__h = []); - }), u3 = [], l.__e(r3, t4.__v); + } catch (u3) { + r3.some(function(n3) { + n3.__h && (n3.__h = []); + }), r3 = [], l.__e(u3, t4.__v); } - }), a2 && a2(t3, u3); + }), l2 && l2(t3, r3); }, l.unmount = function(t3) { - v2 && v2(t3); - var u3, r3 = t3.__c; - r3 && r3.__H && (r3.__H.__.forEach(function(n2) { + m2 && m2(t3); + var r3, u3 = t3.__c; + u3 && u3.__H && (u3.__H.__.forEach(function(n3) { try { - g2(n2); - } catch (n3) { - u3 = n3; + k2(n3); + } catch (n4) { + r3 = n4; } - }), u3 && l.__e(u3, r3.__v)); + }), u3.__H = void 0, r3 && l.__e(r3, u3.__v)); }; -var b2 = typeof requestAnimationFrame == "function"; -function g2(n2) { - var t3 = u2, r3 = n2.__c; - typeof r3 == "function" && (n2.__c = void 0, r3()), u2 = t3; +var g2 = typeof requestAnimationFrame == "function"; +function j2(n3) { + var t3, r3 = function() { + clearTimeout(u3), g2 && cancelAnimationFrame(t3), setTimeout(n3); + }, u3 = setTimeout(r3, 100); + g2 && (t3 = requestAnimationFrame(r3)); +} +function k2(n3) { + var t3 = r2, u3 = n3.__c; + typeof u3 == "function" && (n3.__c = void 0, u3()), r2 = t3; } -function j2(n2) { - var t3 = u2; - n2.__c = n2.__(), u2 = t3; +function w2(n3) { + var t3 = r2; + n3.__c = n3.__(), r2 = t3; } // node_modules/preact/compat/dist/compat.module.js -function C2(n2, t3) { +function g3(n3, t3) { for (var e3 in t3) - n2[e3] = t3[e3]; - return n2; + n3[e3] = t3[e3]; + return n3; } -function S2(n2, t3) { - for (var e3 in n2) +function C2(n3, t3) { + for (var e3 in n3) if (e3 !== "__source" && !(e3 in t3)) return true; for (var r3 in t3) - if (r3 !== "__source" && n2[r3] !== t3[r3]) + if (r3 !== "__source" && n3[r3] !== t3[r3]) return true; return false; } -function E(n2) { - this.props = n2; +function w3(n3) { + this.props = n3; } -(E.prototype = new _()).isPureReactComponent = true, E.prototype.shouldComponentUpdate = function(n2, t3) { - return S2(this.props, n2) || S2(this.state, t3); +(w3.prototype = new d()).isPureReactComponent = true, w3.prototype.shouldComponentUpdate = function(n3, t3) { + return C2(this.props, n3) || C2(this.state, t3); }; -var w2 = l.__b; -l.__b = function(n2) { - n2.type && n2.type.__f && n2.ref && (n2.props.ref = n2.ref, n2.ref = null), w2 && w2(n2); +var x3 = l.__b; +l.__b = function(n3) { + n3.type && n3.type.__f && n3.ref && (n3.props.ref = n3.ref, n3.ref = null), x3 && x3(n3); }; -var R = typeof Symbol != "undefined" && Symbol.for && Symbol.for("react.forward_ref") || 3911; -var A3 = l.__e; -l.__e = function(n2, t3, e3) { - if (n2.then) { - for (var r3, u3 = t3; u3 = u3.__; ) - if ((r3 = u3.__c) && r3.__c) - return t3.__e == null && (t3.__e = e3.__e, t3.__k = e3.__k), r3.__c(n2, t3); - } - A3(n2, t3, e3); +var N2 = typeof Symbol != "undefined" && Symbol.for && Symbol.for("react.forward_ref") || 3911; +var T3 = l.__e; +l.__e = function(n3, t3, e3, r3) { + if (n3.then) { + for (var u3, o2 = t3; o2 = o2.__; ) + if ((u3 = o2.__c) && u3.__c) + return t3.__e == null && (t3.__e = e3.__e, t3.__k = e3.__k), u3.__c(n3, t3); + } + T3(n3, t3, e3, r3); }; -var O2 = l.unmount; -function L2() { +var I2 = l.unmount; +function L2(n3, t3, e3) { + return n3 && (n3.__c && n3.__c.__H && (n3.__c.__H.__.forEach(function(n4) { + typeof n4.__c == "function" && n4.__c(); + }), n3.__c.__H = null), (n3 = g3({}, n3)).__c != null && (n3.__c.__P === e3 && (n3.__c.__P = t3), n3.__c = null), n3.__k = n3.__k && n3.__k.map(function(n4) { + return L2(n4, t3, e3); + })), n3; +} +function U(n3, t3, e3) { + return n3 && (n3.__v = null, n3.__k = n3.__k && n3.__k.map(function(n4) { + return U(n4, t3, e3); + }), n3.__c && n3.__c.__P === t3 && (n3.__e && e3.insertBefore(n3.__e, n3.__d), n3.__c.__e = true, n3.__c.__P = e3)), n3; +} +function D() { this.__u = 0, this.t = null, this.__b = null; } -function U(n2) { - var t3 = n2.__.__c; - return t3 && t3.__e && t3.__e(n2); +function F2(n3) { + var t3 = n3.__.__c; + return t3 && t3.__a && t3.__a(n3); } -function M2() { +function V2() { this.u = null, this.o = null; } -l.unmount = function(n2) { - var t3 = n2.__c; - t3 && t3.__R && t3.__R(), t3 && n2.__h === true && (n2.type = null), O2 && O2(n2); -}, (L2.prototype = new _()).__c = function(n2, t3) { +l.unmount = function(n3) { + var t3 = n3.__c; + t3 && t3.__R && t3.__R(), t3 && n3.__h === true && (n3.type = null), I2 && I2(n3); +}, (D.prototype = new d()).__c = function(n3, t3) { var e3 = t3.__c, r3 = this; r3.t == null && (r3.t = []), r3.t.push(e3); - var u3 = U(r3.__v), o2 = false, i3 = function() { - o2 || (o2 = true, e3.__R = null, u3 ? u3(l3) : l3()); + var u3 = F2(r3.__v), o2 = false, i3 = function() { + o2 || (o2 = true, e3.__R = null, u3 ? u3(l4) : l4()); }; e3.__R = i3; - var l3 = function() { + var l4 = function() { if (!--r3.__u) { - if (r3.state.__e) { - var n3 = r3.state.__e; - r3.__v.__k[0] = function n4(t5, e4, r4) { - return t5 && (t5.__v = null, t5.__k = t5.__k && t5.__k.map(function(t6) { - return n4(t6, e4, r4); - }), t5.__c && t5.__c.__P === e4 && (t5.__e && r4.insertBefore(t5.__e, t5.__d), t5.__c.__e = true, t5.__c.__P = r4)), t5; - }(n3, n3.__c.__P, n3.__c.__O); + if (r3.state.__a) { + var n4 = r3.state.__a; + r3.__v.__k[0] = U(n4, n4.__c.__P, n4.__c.__O); } var t4; - for (r3.setState({ __e: r3.__b = null }); t4 = r3.t.pop(); ) + for (r3.setState({ __a: r3.__b = null }); t4 = r3.t.pop(); ) t4.forceUpdate(); } }, c3 = t3.__h === true; - r3.__u++ || c3 || r3.setState({ __e: r3.__b = r3.__v.__k[0] }), n2.then(i3, i3); -}, L2.prototype.componentWillUnmount = function() { + r3.__u++ || c3 || r3.setState({ __a: r3.__b = r3.__v.__k[0] }), n3.then(i3, i3); +}, D.prototype.componentWillUnmount = function() { this.t = []; -}, L2.prototype.render = function(n2, t3) { +}, D.prototype.render = function(n3, e3) { if (this.__b) { if (this.__v.__k) { - var e3 = document.createElement("div"), r3 = this.__v.__k[0].__c; - this.__v.__k[0] = function n3(t4, e4, r4) { - return t4 && (t4.__c && t4.__c.__H && (t4.__c.__H.__.forEach(function(n4) { - typeof n4.__c == "function" && n4.__c(); - }), t4.__c.__H = null), (t4 = C2({}, t4)).__c != null && (t4.__c.__P === r4 && (t4.__c.__P = e4), t4.__c = null), t4.__k = t4.__k && t4.__k.map(function(t5) { - return n3(t5, e4, r4); - })), t4; - }(this.__b, e3, r3.__O = r3.__P); + var r3 = document.createElement("div"), o2 = this.__v.__k[0].__c; + this.__v.__k[0] = L2(this.__b, r3, o2.__O = o2.__P); } this.__b = null; } - var u3 = t3.__e && v(d, null, n2.fallback); - return u3 && (u3.__h = null), [v(d, null, t3.__e ? null : n2.children), u3]; + var i3 = e3.__a && h(p, null, n3.fallback); + return i3 && (i3.__h = null), [h(p, null, e3.__a ? null : n3.children), i3]; }; -var T3 = function(n2, t3, e3) { - if (++e3[1] === e3[0] && n2.o.delete(t3), n2.props.revealOrder && (n2.props.revealOrder[0] !== "t" || !n2.o.size)) - for (e3 = n2.u; e3; ) { +var W = function(n3, t3, e3) { + if (++e3[1] === e3[0] && n3.o.delete(t3), n3.props.revealOrder && (n3.props.revealOrder[0] !== "t" || !n3.o.size)) + for (e3 = n3.u; e3; ) { for (; e3.length > 3; ) e3.pop()(); if (e3[1] < e3[0]) break; - n2.u = e3 = e3[2]; + n3.u = e3 = e3[2]; } }; -function D2(n2) { +function P2(n3) { return this.getChildContext = function() { - return n2.context; - }, n2.children; -} -function I2(n2) { - var t3 = this, e3 = n2.i; - t3.componentWillUnmount = function() { - S(null, t3.l), t3.l = null, t3.i = null; - }, t3.i && t3.i !== e3 && t3.componentWillUnmount(), n2.__v ? (t3.l || (t3.i = e3, t3.l = { nodeType: 1, parentNode: e3, childNodes: [], appendChild: function(n3) { - this.childNodes.push(n3), t3.i.appendChild(n3); - }, insertBefore: function(n3, e4) { - this.childNodes.push(n3), t3.i.appendChild(n3); - }, removeChild: function(n3) { - this.childNodes.splice(this.childNodes.indexOf(n3) >>> 1, 1), t3.i.removeChild(n3); - } }), S(v(D2, { context: t3.context }, n2.__v), t3.l)) : t3.l && t3.componentWillUnmount(); -} -function W(n2, t3) { - return v(I2, { __v: n2, i: t3 }); -} -(M2.prototype = new _()).__e = function(n2) { - var t3 = this, e3 = U(t3.__v), r3 = t3.o.get(n2); + return n3.context; + }, n3.children; +} +function $2(n3) { + var e3 = this, r3 = n3.i; + e3.componentWillUnmount = function() { + P(null, e3.l), e3.l = null, e3.i = null; + }, e3.i && e3.i !== r3 && e3.componentWillUnmount(), n3.__v ? (e3.l || (e3.i = r3, e3.l = { nodeType: 1, parentNode: r3, childNodes: [], appendChild: function(n4) { + this.childNodes.push(n4), e3.i.appendChild(n4); + }, insertBefore: function(n4, t3) { + this.childNodes.push(n4), e3.i.appendChild(n4); + }, removeChild: function(n4) { + this.childNodes.splice(this.childNodes.indexOf(n4) >>> 1, 1), e3.i.removeChild(n4); + } }), P(h(P2, { context: e3.context }, n3.__v), e3.l)) : e3.l && e3.componentWillUnmount(); +} +function j3(n3, e3) { + var r3 = h($2, { __v: n3, i: e3 }); + return r3.containerInfo = e3, r3; +} +(V2.prototype = new d()).__a = function(n3) { + var t3 = this, e3 = F2(t3.__v), r3 = t3.o.get(n3); return r3[0]++, function(u3) { var o2 = function() { - t3.props.revealOrder ? (r3.push(u3), T3(t3, n2, r3)) : u3(); + t3.props.revealOrder ? (r3.push(u3), W(t3, n3, r3)) : u3(); }; e3 ? e3(o2) : o2(); }; -}, M2.prototype.render = function(n2) { +}, V2.prototype.render = function(n3) { this.u = null, this.o = new Map(); - var t3 = A(n2.children); - n2.revealOrder && n2.revealOrder[0] === "b" && t3.reverse(); + var t3 = x(n3.children); + n3.revealOrder && n3.revealOrder[0] === "b" && t3.reverse(); for (var e3 = t3.length; e3--; ) this.o.set(t3[e3], this.u = [1, 0, this.u]); - return n2.children; -}, M2.prototype.componentDidUpdate = M2.prototype.componentDidMount = function() { - var n2 = this; + return n3.children; +}, V2.prototype.componentDidUpdate = V2.prototype.componentDidMount = function() { + var n3 = this; this.o.forEach(function(t3, e3) { - T3(n2, e3, t3); + W(n3, e3, t3); }); }; -var j3 = typeof Symbol != "undefined" && Symbol.for && Symbol.for("react.element") || 60103; -var P2 = /^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|marker(?!H|W|U)|overline|paint|stop|strikethrough|stroke|text(?!L)|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/; -var V = typeof document != "undefined"; -var z2 = function(n2) { - return (typeof Symbol != "undefined" && typeof Symbol() == "symbol" ? /fil|che|rad/i : /fil|che|ra/i).test(n2); +var z2 = typeof Symbol != "undefined" && Symbol.for && Symbol.for("react.element") || 60103; +var B2 = /^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/; +var H2 = typeof document != "undefined"; +var Z = function(n3) { + return (typeof Symbol != "undefined" && typeof Symbol() == "symbol" ? /fil|che|rad/i : /fil|che|ra/i).test(n3); }; -_.prototype.isReactComponent = {}, ["componentWillMount", "componentWillReceiveProps", "componentWillUpdate"].forEach(function(n2) { - Object.defineProperty(_.prototype, n2, { configurable: true, get: function() { - return this["UNSAFE_" + n2]; - }, set: function(t3) { - Object.defineProperty(this, n2, { configurable: true, writable: true, value: t3 }); +d.prototype.isReactComponent = {}, ["componentWillMount", "componentWillReceiveProps", "componentWillUpdate"].forEach(function(t3) { + Object.defineProperty(d.prototype, t3, { configurable: true, get: function() { + return this["UNSAFE_" + t3]; + }, set: function(n3) { + Object.defineProperty(this, t3, { configurable: true, writable: true, value: n3 }); } }); }); -var H2 = l.event; -function Z() { +var G = l.event; +function J() { } -function Y() { +function K() { return this.cancelBubble; } -function q2() { +function Q() { return this.defaultPrevented; } -l.event = function(n2) { - return H2 && (n2 = H2(n2)), n2.persist = Z, n2.isPropagationStopped = Y, n2.isDefaultPrevented = q2, n2.nativeEvent = n2; +l.event = function(n3) { + return G && (n3 = G(n3)), n3.persist = J, n3.isPropagationStopped = K, n3.isDefaultPrevented = Q, n3.nativeEvent = n3; }; -var G; -var J = { configurable: true, get: function() { +var X; +var nn = { configurable: true, get: function() { return this.class; } }; -var K = l.vnode; -l.vnode = function(n2) { - var t3 = n2.type, e3 = n2.props, r3 = e3; +var tn = l.vnode; +l.vnode = function(n3) { + var t3 = n3.type, e3 = n3.props, u3 = e3; if (typeof t3 == "string") { - var u3 = t3.indexOf("-") === -1; - for (var o2 in r3 = {}, e3) { - var i3 = e3[o2]; - V && o2 === "children" && t3 === "noscript" || o2 === "value" && "defaultValue" in e3 && i3 == null || (o2 === "defaultValue" && "value" in e3 && e3.value == null ? o2 = "value" : o2 === "download" && i3 === true ? i3 = "" : /ondoubleclick/i.test(o2) ? o2 = "ondblclick" : /^onchange(textarea|input)/i.test(o2 + t3) && !z2(e3.type) ? o2 = "oninput" : /^onfocus$/i.test(o2) ? o2 = "onfocusin" : /^onblur$/i.test(o2) ? o2 = "onfocusout" : /^on(Ani|Tra|Tou|BeforeInp|Compo)/.test(o2) ? o2 = o2.toLowerCase() : u3 && P2.test(o2) ? o2 = o2.replace(/[A-Z0-9]/, "-$&").toLowerCase() : i3 === null && (i3 = void 0), r3[o2] = i3); - } - t3 == "select" && r3.multiple && Array.isArray(r3.value) && (r3.value = A(e3.children).forEach(function(n3) { - n3.props.selected = r3.value.indexOf(n3.props.value) != -1; - })), t3 == "select" && r3.defaultValue != null && (r3.value = A(e3.children).forEach(function(n3) { - n3.props.selected = r3.multiple ? r3.defaultValue.indexOf(n3.props.value) != -1 : r3.defaultValue == n3.props.value; - })), n2.props = r3, e3.class != e3.className && (J.enumerable = "className" in e3, e3.className != null && (r3.class = e3.className), Object.defineProperty(r3, "className", J)); - } - n2.$$typeof = j3, K && K(n2); + var o2 = t3.indexOf("-") === -1; + for (var i3 in u3 = {}, e3) { + var l4 = e3[i3]; + H2 && i3 === "children" && t3 === "noscript" || i3 === "value" && "defaultValue" in e3 && l4 == null || (i3 === "defaultValue" && "value" in e3 && e3.value == null ? i3 = "value" : i3 === "download" && l4 === true ? l4 = "" : /ondoubleclick/i.test(i3) ? i3 = "ondblclick" : /^onchange(textarea|input)/i.test(i3 + t3) && !Z(e3.type) ? i3 = "oninput" : /^onfocus$/i.test(i3) ? i3 = "onfocusin" : /^onblur$/i.test(i3) ? i3 = "onfocusout" : /^on(Ani|Tra|Tou|BeforeInp|Compo)/.test(i3) ? i3 = i3.toLowerCase() : o2 && B2.test(i3) ? i3 = i3.replace(/[A-Z0-9]/g, "-$&").toLowerCase() : l4 === null && (l4 = void 0), /^oninput$/i.test(i3) && (i3 = i3.toLowerCase(), u3[i3] && (i3 = "oninputCapture")), u3[i3] = l4); + } + t3 == "select" && u3.multiple && Array.isArray(u3.value) && (u3.value = x(e3.children).forEach(function(n4) { + n4.props.selected = u3.value.indexOf(n4.props.value) != -1; + })), t3 == "select" && u3.defaultValue != null && (u3.value = x(e3.children).forEach(function(n4) { + n4.props.selected = u3.multiple ? u3.defaultValue.indexOf(n4.props.value) != -1 : u3.defaultValue == n4.props.value; + })), n3.props = u3, e3.class != e3.className && (nn.enumerable = "className" in e3, e3.className != null && (u3.class = e3.className), Object.defineProperty(u3, "className", nn)); + } + n3.$$typeof = z2, tn && tn(n3); }; -var Q = l.__r; -l.__r = function(n2) { - Q && Q(n2), G = n2.__c; +var en = l.__r; +l.__r = function(n3) { + en && en(n3), X = n3.__c; }; // node_modules/@fullcalendar/core/vdom.js @@ -38746,25 +38182,26 @@ if (globalObj.FullCalendarVDom) { console.warn("FullCalendar VDOM already loaded"); } else { globalObj.FullCalendarVDom = { - Component: _, - createElement: v, - render: S, - createRef: p, - Fragment: d, + Component: d, + createElement: h, + render: P, + createRef: y, + Fragment: p, createContext, - createPortal: W, - flushToDom, + createPortal: j3, + flushSync, unmountComponentAtNode }; } -function flushToDom() { +function flushSync(runBeforeFlush) { + runBeforeFlush(); var oldDebounceRendering = l.debounceRendering; var callbackQ = []; function execCallbackSync(callback) { callbackQ.push(callback); } l.debounceRendering = execCallbackSync; - S(v(FakeComponent, {}), document.createElement("div")); + P(h(FakeComponent, {}), document.createElement("div")); while (callbackQ.length) { callbackQ.shift()(); } @@ -38776,15 +38213,15 @@ var FakeComponent = function(_super) { return _super !== null && _super.apply(this, arguments) || this; } FakeComponent2.prototype.render = function() { - return v("div", {}); + return h("div", {}); }; FakeComponent2.prototype.componentDidMount = function() { this.setState({}); }; return FakeComponent2; -}(_); +}(d); function createContext(defaultValue) { - var ContextType = D(defaultValue); + var ContextType = B(defaultValue); var origProvider = ContextType.Provider; ContextType.Provider = function() { var _this = this; @@ -38814,7 +38251,7 @@ function createContext(defaultValue) { return ContextType; } function unmountComponentAtNode(node) { - S(null, node); + P(null, node); } // node_modules/@fullcalendar/common/vdom.js @@ -38828,7 +38265,7 @@ var createRef = FullCalendarVDom.createRef; var Fragment = FullCalendarVDom.Fragment; var createContext2 = FullCalendarVDom.createContext; var createPortal = FullCalendarVDom.createPortal; -var flushToDom2 = FullCalendarVDom.flushToDom; +var flushSync2 = FullCalendarVDom.flushSync; var unmountComponentAtNode2 = FullCalendarVDom.unmountComponentAtNode; // node_modules/@fullcalendar/common/main.js @@ -39080,8 +38517,8 @@ function flexibleCompare(a3, b3) { return a3 - b3; } function padStart(val, len) { - var s3 = String(val); - return "000".substr(0, len - s3.length) + s3; + var s4 = String(val); + return "000".substr(0, len - s4.length) + s4; } function formatWithOrdinals(formatter, args, fallbackText) { if (typeof formatter === "function") { @@ -39097,8 +38534,8 @@ function formatWithOrdinals(formatter, args, fallbackText) { function compareNumbers(a3, b3) { return a3 - b3; } -function isInt(n2) { - return n2 % 1 === 0; +function isInt(n3) { + return n3 % 1 === 0; } function computeSmallestCellWidth(cellEl) { var allWidthEl = cellEl.querySelector(".fc-scrollgrid-shrink-frame"); @@ -39112,19 +38549,19 @@ function computeSmallestCellWidth(cellEl) { return cellEl.getBoundingClientRect().width - allWidthEl.getBoundingClientRect().width + contentWidthEl.getBoundingClientRect().width; } var DAY_IDS = ["sun", "mon", "tue", "wed", "thu", "fri", "sat"]; -function addWeeks(m2, n2) { - var a3 = dateToUtcArray(m2); - a3[2] += n2 * 7; +function addWeeks(m3, n3) { + var a3 = dateToUtcArray(m3); + a3[2] += n3 * 7; return arrayToUtcDate(a3); } -function addDays(m2, n2) { - var a3 = dateToUtcArray(m2); - a3[2] += n2; +function addDays(m3, n3) { + var a3 = dateToUtcArray(m3); + a3[2] += n3; return arrayToUtcDate(a3); } -function addMs(m2, n2) { - var a3 = dateToUtcArray(m2); - a3[6] += n2; +function addMs(m3, n3) { + var a3 = dateToUtcArray(m3); + a3[6] += n3; return arrayToUtcDate(a3); } function diffWeeks(m0, m1) { @@ -39153,9 +38590,9 @@ function diffDayAndTime(m0, m1) { }; } function diffWholeWeeks(m0, m1) { - var d3 = diffWholeDays(m0, m1); - if (d3 !== null && d3 % 7 === 0) { - return d3 / 7; + var d2 = diffWholeDays(m0, m1); + if (d2 !== null && d2 % 7 === 0) { + return d2 / 7; } return null; } @@ -39165,51 +38602,51 @@ function diffWholeDays(m0, m1) { } return null; } -function startOfDay(m2) { +function startOfDay(m3) { return arrayToUtcDate([ - m2.getUTCFullYear(), - m2.getUTCMonth(), - m2.getUTCDate() + m3.getUTCFullYear(), + m3.getUTCMonth(), + m3.getUTCDate() ]); } -function startOfHour(m2) { +function startOfHour(m3) { return arrayToUtcDate([ - m2.getUTCFullYear(), - m2.getUTCMonth(), - m2.getUTCDate(), - m2.getUTCHours() + m3.getUTCFullYear(), + m3.getUTCMonth(), + m3.getUTCDate(), + m3.getUTCHours() ]); } -function startOfMinute(m2) { +function startOfMinute(m3) { return arrayToUtcDate([ - m2.getUTCFullYear(), - m2.getUTCMonth(), - m2.getUTCDate(), - m2.getUTCHours(), - m2.getUTCMinutes() + m3.getUTCFullYear(), + m3.getUTCMonth(), + m3.getUTCDate(), + m3.getUTCHours(), + m3.getUTCMinutes() ]); } -function startOfSecond(m2) { +function startOfSecond(m3) { return arrayToUtcDate([ - m2.getUTCFullYear(), - m2.getUTCMonth(), - m2.getUTCDate(), - m2.getUTCHours(), - m2.getUTCMinutes(), - m2.getUTCSeconds() + m3.getUTCFullYear(), + m3.getUTCMonth(), + m3.getUTCDate(), + m3.getUTCHours(), + m3.getUTCMinutes(), + m3.getUTCSeconds() ]); } function weekOfYear(marker, dow, doy) { var y3 = marker.getUTCFullYear(); - var w3 = weekOfGivenYear(marker, y3, dow, doy); - if (w3 < 1) { + var w4 = weekOfGivenYear(marker, y3, dow, doy); + if (w4 < 1) { return weekOfGivenYear(marker, y3 - 1, dow, doy); } var nextW = weekOfGivenYear(marker, y3 + 1, dow, doy); if (nextW >= 1) { - return Math.min(w3, nextW); + return Math.min(w4, nextW); } - return w3; + return w4; } function weekOfGivenYear(marker, year, dow, doy) { var firstWeekStart = arrayToUtcDate([year, 0, 1 + firstWeekOffset(year, dow, doy)]); @@ -39253,11 +38690,11 @@ function arrayToUtcDate(a3) { } return new Date(Date.UTC.apply(Date, a3)); } -function isValidDate(m2) { - return !isNaN(m2.valueOf()); +function isValidDate(m3) { + return !isNaN(m3.valueOf()); } -function timeAsMs(m2) { - return m2.getUTCHours() * 1e3 * 60 * 60 + m2.getUTCMinutes() * 1e3 * 60 + m2.getUTCSeconds() * 1e3 + m2.getUTCMilliseconds(); +function timeAsMs(m3) { + return m3.getUTCHours() * 1e3 * 60 * 60 + m3.getUTCMinutes() * 1e3 * 60 + m3.getUTCSeconds() * 1e3 + m3.getUTCMilliseconds(); } function createEventInstance(defId, range, forcedStartTzo, forcedEndTzo) { return { @@ -39492,15 +38929,15 @@ function createDuration(input, unit) { } return null; } -function parseString(s3) { - var m2 = PARSE_RE.exec(s3); - if (m2) { - var sign = m2[1] ? -1 : 1; +function parseString(s4) { + var m3 = PARSE_RE.exec(s4); + if (m3) { + var sign = m3[1] ? -1 : 1; return { years: 0, months: 0, - days: sign * (m2[2] ? parseInt(m2[2], 10) : 0), - milliseconds: sign * ((m2[3] ? parseInt(m2[3], 10) : 0) * 60 * 60 * 1e3 + (m2[4] ? parseInt(m2[4], 10) : 0) * 60 * 1e3 + (m2[5] ? parseInt(m2[5], 10) : 0) * 1e3 + (m2[6] ? parseInt(m2[6], 10) : 0)) + days: sign * (m3[2] ? parseInt(m3[2], 10) : 0), + milliseconds: sign * ((m3[3] ? parseInt(m3[3], 10) : 0) * 60 * 60 * 1e3 + (m3[4] ? parseInt(m3[4], 10) : 0) * 60 * 1e3 + (m3[5] ? parseInt(m3[5], 10) : 0) * 1e3 + (m3[6] ? parseInt(m3[6], 10) : 0)) }; } return null; @@ -39538,12 +38975,12 @@ function subtractDurations(d1, d0) { milliseconds: d1.milliseconds - d0.milliseconds }; } -function multiplyDuration(d3, n2) { +function multiplyDuration(d2, n3) { return { - years: d3.years * n2, - months: d3.months * n2, - days: d3.days * n2, - milliseconds: d3.milliseconds * n2 + years: d2.years * n3, + months: d2.months * n3, + days: d2.days * n3, + milliseconds: d2.milliseconds * n3 }; } function asRoughYears(dur) { @@ -39608,19 +39045,19 @@ function buildIsoString(marker, timeZoneOffset, stripZeroTime) { if (stripZeroTime === void 0) { stripZeroTime = false; } - var s3 = marker.toISOString(); - s3 = s3.replace(".000", ""); + var s4 = marker.toISOString(); + s4 = s4.replace(".000", ""); if (stripZeroTime) { - s3 = s3.replace("T00:00:00Z", ""); + s4 = s4.replace("T00:00:00Z", ""); } - if (s3.length > 10) { + if (s4.length > 10) { if (timeZoneOffset == null) { - s3 = s3.replace("Z", ""); + s4 = s4.replace("Z", ""); } else if (timeZoneOffset !== 0) { - s3 = s3.replace("Z", formatTimeZoneOffset(timeZoneOffset, true)); + s4 = s4.replace("Z", formatTimeZoneOffset(timeZoneOffset, true)); } } - return s3; + return s4; } function formatDayString(marker) { return marker.toISOString().replace(/T.*$/, ""); @@ -39825,8 +39262,8 @@ function buildNativeFormattingFunc(standardDateProps, extendedSettings, context) } else { format = normalFormat; } - var s3 = format.format(marker); - return postProcess(s3, date, standardDateProps, extendedSettings, context); + var s4 = format.format(marker); + return postProcess(s4, date, standardDateProps, extendedSettings, context); }; } function sanitizeSettings(standardDateProps, extendedSettings) { @@ -39845,46 +39282,46 @@ function sanitizeSettings(standardDateProps, extendedSettings) { delete extendedSettings.omitZeroMinute; } } -function postProcess(s3, date, standardDateProps, extendedSettings, context) { - s3 = s3.replace(LTR_RE, ""); +function postProcess(s4, date, standardDateProps, extendedSettings, context) { + s4 = s4.replace(LTR_RE, ""); if (standardDateProps.timeZoneName === "short") { - s3 = injectTzoStr(s3, context.timeZone === "UTC" || date.timeZoneOffset == null ? "UTC" : formatTimeZoneOffset(date.timeZoneOffset)); + s4 = injectTzoStr(s4, context.timeZone === "UTC" || date.timeZoneOffset == null ? "UTC" : formatTimeZoneOffset(date.timeZoneOffset)); } if (extendedSettings.omitCommas) { - s3 = s3.replace(COMMA_RE, "").trim(); + s4 = s4.replace(COMMA_RE, "").trim(); } if (extendedSettings.omitZeroMinute) { - s3 = s3.replace(":00", ""); + s4 = s4.replace(":00", ""); } if (extendedSettings.meridiem === false) { - s3 = s3.replace(MERIDIEM_RE, "").trim(); + s4 = s4.replace(MERIDIEM_RE, "").trim(); } else if (extendedSettings.meridiem === "narrow") { - s3 = s3.replace(MERIDIEM_RE, function(m0, m1) { + s4 = s4.replace(MERIDIEM_RE, function(m0, m1) { return m1.toLocaleLowerCase(); }); } else if (extendedSettings.meridiem === "short") { - s3 = s3.replace(MERIDIEM_RE, function(m0, m1) { + s4 = s4.replace(MERIDIEM_RE, function(m0, m1) { return m1.toLocaleLowerCase() + "m"; }); } else if (extendedSettings.meridiem === "lowercase") { - s3 = s3.replace(MERIDIEM_RE, function(m0) { + s4 = s4.replace(MERIDIEM_RE, function(m0) { return m0.toLocaleLowerCase(); }); } - s3 = s3.replace(MULTI_SPACE_RE, " "); - s3 = s3.trim(); - return s3; + s4 = s4.replace(MULTI_SPACE_RE, " "); + s4 = s4.trim(); + return s4; } -function injectTzoStr(s3, tzoStr) { +function injectTzoStr(s4, tzoStr) { var replaced = false; - s3 = s3.replace(UTC_RE, function() { + s4 = s4.replace(UTC_RE, function() { replaced = true; return tzoStr; }); if (!replaced) { - s3 += " " + tzoStr; + s4 += " " + tzoStr; } - return s3; + return s4; } function formatWeekNumber(num, weekText, weekTextLong, locale, display) { var parts = []; @@ -40269,13 +39706,14 @@ var CALENDAR_OPTION_REFINERS = { eventSources: identity }; var COMPLEX_OPTION_COMPARATORS = { - headerToolbar: isBoolComplexEqual, - footerToolbar: isBoolComplexEqual, - buttonText: isBoolComplexEqual, - buttonHints: isBoolComplexEqual, - buttonIcons: isBoolComplexEqual + headerToolbar: isMaybeObjectsEqual, + footerToolbar: isMaybeObjectsEqual, + buttonText: isMaybeObjectsEqual, + buttonHints: isMaybeObjectsEqual, + buttonIcons: isMaybeObjectsEqual, + dateIncrement: isMaybeObjectsEqual }; -function isBoolComplexEqual(a3, b3) { +function isMaybeObjectsEqual(a3, b3) { if (typeof a3 === "object" && typeof b3 === "object" && a3 && b3) { return isPropsEqual(a3, b3); } @@ -41467,17 +40905,17 @@ var CalendarApi = function() { var state = this.getCurrentData(); return state.dateEnv.toDate(state.currentDate); }; - CalendarApi2.prototype.formatDate = function(d3, formatter) { + CalendarApi2.prototype.formatDate = function(d2, formatter) { var dateEnv = this.getCurrentData().dateEnv; - return dateEnv.format(dateEnv.createMarker(d3), createFormatter(formatter)); + return dateEnv.format(dateEnv.createMarker(d2), createFormatter(formatter)); }; CalendarApi2.prototype.formatRange = function(d0, d1, settings) { var dateEnv = this.getCurrentData().dateEnv; return dateEnv.formatRange(dateEnv.createMarker(d0), dateEnv.createMarker(d1), createFormatter(settings), settings); }; - CalendarApi2.prototype.formatIso = function(d3, omitTime) { + CalendarApi2.prototype.formatIso = function(d2, omitTime) { var dateEnv = this.getCurrentData().dateEnv; - return dateEnv.formatIso(dateEnv.createMarker(d3), { omitTime }); + return dateEnv.formatIso(dateEnv.createMarker(d2), { omitTime }); }; CalendarApi2.prototype.select = function(dateOrObj, endDate) { var selectionInput; @@ -42122,14 +41560,14 @@ function createCalendarSystem(name) { var GregorianCalendarSystem = function() { function GregorianCalendarSystem2() { } - GregorianCalendarSystem2.prototype.getMarkerYear = function(d3) { - return d3.getUTCFullYear(); + GregorianCalendarSystem2.prototype.getMarkerYear = function(d2) { + return d2.getUTCFullYear(); }; - GregorianCalendarSystem2.prototype.getMarkerMonth = function(d3) { - return d3.getUTCMonth(); + GregorianCalendarSystem2.prototype.getMarkerMonth = function(d2) { + return d2.getUTCMonth(); }; - GregorianCalendarSystem2.prototype.getMarkerDay = function(d3) { - return d3.getUTCDate(); + GregorianCalendarSystem2.prototype.getMarkerDay = function(d2) { + return d2.getUTCDate(); }; GregorianCalendarSystem2.prototype.arrayToMarker = function(arr) { return arrayToUtcDate(arr); @@ -42142,17 +41580,17 @@ var GregorianCalendarSystem = function() { registerCalendarSystem("gregory", GregorianCalendarSystem); var ISO_RE = /^\s*(\d{4})(-?(\d{2})(-?(\d{2})([T ](\d{2}):?(\d{2})(:?(\d{2})(\.(\d+))?)?(Z|(([-+])(\d{2})(:?(\d{2}))?))?)?)?)?$/; function parse(str) { - var m2 = ISO_RE.exec(str); - if (m2) { - var marker = new Date(Date.UTC(Number(m2[1]), m2[3] ? Number(m2[3]) - 1 : 0, Number(m2[5] || 1), Number(m2[7] || 0), Number(m2[8] || 0), Number(m2[10] || 0), m2[12] ? Number("0." + m2[12]) * 1e3 : 0)); + var m3 = ISO_RE.exec(str); + if (m3) { + var marker = new Date(Date.UTC(Number(m3[1]), m3[3] ? Number(m3[3]) - 1 : 0, Number(m3[5] || 1), Number(m3[7] || 0), Number(m3[8] || 0), Number(m3[10] || 0), m3[12] ? Number("0." + m3[12]) * 1e3 : 0)); if (isValidDate(marker)) { var timeZoneOffset = null; - if (m2[13]) { - timeZoneOffset = (m2[15] === "-" ? -1 : 1) * (Number(m2[16] || 0) * 60 + Number(m2[18] || 0)); + if (m3[13]) { + timeZoneOffset = (m3[15] === "-" ? -1 : 1) * (Number(m3[16] || 0) * 60 + Number(m3[18] || 0)); } return { marker, - isTimeUnspecified: !m2[6], + isTimeUnspecified: !m3[6], timeZoneOffset }; } @@ -42219,8 +41657,8 @@ var DateEnv = function() { } return { marker, isTimeUnspecified: false, forcedTzo: null }; }; - DateEnv2.prototype.parse = function(s3) { - var parts = parse(s3); + DateEnv2.prototype.parse = function(s4) { + var parts = parse(s4); if (parts === null) { return null; } @@ -42257,14 +41695,14 @@ var DateEnv = function() { a3[6] -= dur.milliseconds; return this.calendarSystem.arrayToMarker(a3); }; - DateEnv2.prototype.addYears = function(marker, n2) { + DateEnv2.prototype.addYears = function(marker, n3) { var a3 = this.calendarSystem.markerToArray(marker); - a3[0] += n2; + a3[0] += n3; return this.calendarSystem.arrayToMarker(a3); }; - DateEnv2.prototype.addMonths = function(marker, n2) { + DateEnv2.prototype.addMonths = function(marker, n3) { var a3 = this.calendarSystem.markerToArray(marker); - a3[1] += n2; + a3[1] += n3; return this.calendarSystem.arrayToMarker(a3); }; DateEnv2.prototype.diffWholeYears = function(m0, m1) { @@ -42282,98 +41720,98 @@ var DateEnv = function() { return null; }; DateEnv2.prototype.greatestWholeUnit = function(m0, m1) { - var n2 = this.diffWholeYears(m0, m1); - if (n2 !== null) { - return { unit: "year", value: n2 }; + var n3 = this.diffWholeYears(m0, m1); + if (n3 !== null) { + return { unit: "year", value: n3 }; } - n2 = this.diffWholeMonths(m0, m1); - if (n2 !== null) { - return { unit: "month", value: n2 }; + n3 = this.diffWholeMonths(m0, m1); + if (n3 !== null) { + return { unit: "month", value: n3 }; } - n2 = diffWholeWeeks(m0, m1); - if (n2 !== null) { - return { unit: "week", value: n2 }; + n3 = diffWholeWeeks(m0, m1); + if (n3 !== null) { + return { unit: "week", value: n3 }; } - n2 = diffWholeDays(m0, m1); - if (n2 !== null) { - return { unit: "day", value: n2 }; + n3 = diffWholeDays(m0, m1); + if (n3 !== null) { + return { unit: "day", value: n3 }; } - n2 = diffHours(m0, m1); - if (isInt(n2)) { - return { unit: "hour", value: n2 }; + n3 = diffHours(m0, m1); + if (isInt(n3)) { + return { unit: "hour", value: n3 }; } - n2 = diffMinutes(m0, m1); - if (isInt(n2)) { - return { unit: "minute", value: n2 }; + n3 = diffMinutes(m0, m1); + if (isInt(n3)) { + return { unit: "minute", value: n3 }; } - n2 = diffSeconds(m0, m1); - if (isInt(n2)) { - return { unit: "second", value: n2 }; + n3 = diffSeconds(m0, m1); + if (isInt(n3)) { + return { unit: "second", value: n3 }; } return { unit: "millisecond", value: m1.valueOf() - m0.valueOf() }; }; - DateEnv2.prototype.countDurationsBetween = function(m0, m1, d3) { + DateEnv2.prototype.countDurationsBetween = function(m0, m1, d2) { var diff; - if (d3.years) { + if (d2.years) { diff = this.diffWholeYears(m0, m1); if (diff !== null) { - return diff / asRoughYears(d3); + return diff / asRoughYears(d2); } } - if (d3.months) { + if (d2.months) { diff = this.diffWholeMonths(m0, m1); if (diff !== null) { - return diff / asRoughMonths(d3); + return diff / asRoughMonths(d2); } } - if (d3.days) { + if (d2.days) { diff = diffWholeDays(m0, m1); if (diff !== null) { - return diff / asRoughDays(d3); + return diff / asRoughDays(d2); } } - return (m1.valueOf() - m0.valueOf()) / asRoughMs(d3); + return (m1.valueOf() - m0.valueOf()) / asRoughMs(d2); }; - DateEnv2.prototype.startOf = function(m2, unit) { + DateEnv2.prototype.startOf = function(m3, unit) { if (unit === "year") { - return this.startOfYear(m2); + return this.startOfYear(m3); } if (unit === "month") { - return this.startOfMonth(m2); + return this.startOfMonth(m3); } if (unit === "week") { - return this.startOfWeek(m2); + return this.startOfWeek(m3); } if (unit === "day") { - return startOfDay(m2); + return startOfDay(m3); } if (unit === "hour") { - return startOfHour(m2); + return startOfHour(m3); } if (unit === "minute") { - return startOfMinute(m2); + return startOfMinute(m3); } if (unit === "second") { - return startOfSecond(m2); + return startOfSecond(m3); } return null; }; - DateEnv2.prototype.startOfYear = function(m2) { + DateEnv2.prototype.startOfYear = function(m3) { return this.calendarSystem.arrayToMarker([ - this.calendarSystem.getMarkerYear(m2) + this.calendarSystem.getMarkerYear(m3) ]); }; - DateEnv2.prototype.startOfMonth = function(m2) { + DateEnv2.prototype.startOfMonth = function(m3) { return this.calendarSystem.arrayToMarker([ - this.calendarSystem.getMarkerYear(m2), - this.calendarSystem.getMarkerMonth(m2) + this.calendarSystem.getMarkerYear(m3), + this.calendarSystem.getMarkerMonth(m3) ]); }; - DateEnv2.prototype.startOfWeek = function(m2) { + DateEnv2.prototype.startOfWeek = function(m3) { return this.calendarSystem.arrayToMarker([ - this.calendarSystem.getMarkerYear(m2), - this.calendarSystem.getMarkerMonth(m2), - m2.getUTCDate() - (m2.getUTCDay() - this.weekDow + 7) % 7 + this.calendarSystem.getMarkerYear(m3), + this.calendarSystem.getMarkerMonth(m3), + m3.getUTCDate() - (m3.getUTCDay() - this.weekDow + 7) % 7 ]); }; DateEnv2.prototype.computeWeekNumber = function(marker) { @@ -42429,29 +41867,29 @@ var DateEnv = function() { } return arrayToUtcDate(this.namedTimeZoneImpl.timestampToArray(ms)); }; - DateEnv2.prototype.offsetForMarker = function(m2) { + DateEnv2.prototype.offsetForMarker = function(m3) { if (this.timeZone === "local") { - return -arrayToLocalDate(dateToUtcArray(m2)).getTimezoneOffset(); + return -arrayToLocalDate(dateToUtcArray(m3)).getTimezoneOffset(); } if (this.timeZone === "UTC") { return 0; } if (this.namedTimeZoneImpl) { - return this.namedTimeZoneImpl.offsetForArray(dateToUtcArray(m2)); + return this.namedTimeZoneImpl.offsetForArray(dateToUtcArray(m3)); } return null; }; - DateEnv2.prototype.toDate = function(m2, forcedTzo) { + DateEnv2.prototype.toDate = function(m3, forcedTzo) { if (this.timeZone === "local") { - return arrayToLocalDate(dateToUtcArray(m2)); + return arrayToLocalDate(dateToUtcArray(m3)); } if (this.timeZone === "UTC") { - return new Date(m2.valueOf()); + return new Date(m3.valueOf()); } if (!this.namedTimeZoneImpl) { - return new Date(m2.valueOf() - (forcedTzo || 0)); + return new Date(m3.valueOf() - (forcedTzo || 0)); } - return new Date(m2.valueOf() - this.namedTimeZoneImpl.offsetForArray(dateToUtcArray(m2)) * 1e3 * 60); + return new Date(m3.valueOf() - this.namedTimeZoneImpl.offsetForArray(dateToUtcArray(m3)) * 1e3 * 60); }; return DateEnv2; }(); @@ -43182,11 +42620,11 @@ var WindowScrollController = function(_super) { WindowScrollController2.prototype.getScrollLeft = function() { return window.pageXOffset; }; - WindowScrollController2.prototype.setScrollTop = function(n2) { - window.scroll(window.pageXOffset, n2); + WindowScrollController2.prototype.setScrollTop = function(n3) { + window.scroll(window.pageXOffset, n3); }; - WindowScrollController2.prototype.setScrollLeft = function(n2) { - window.scroll(n2, window.pageYOffset); + WindowScrollController2.prototype.setScrollLeft = function(n3) { + window.scroll(n3, window.pageYOffset); }; WindowScrollController2.prototype.getScrollWidth = function() { return document.documentElement.scrollWidth; @@ -43334,6 +42772,11 @@ var PureComponent = function(_super) { } return !compareObjs(this.props, nextProps, this.propEquality) || !compareObjs(this.state, nextState, this.stateEquality); }; + PureComponent2.prototype.safeSetState = function(newState) { + if (!compareObjs(this.state, __assign(__assign({}, this.state), newState), this.stateEquality)) { + this.setState(newState); + } + }; PureComponent2.addPropsEquality = addPropsEquality; PureComponent2.addStateEquality = addStateEquality; PureComponent2.contextType = ViewContextType; @@ -45324,10 +44767,10 @@ var CalendarDataManager = function() { var anyChanges = false; var extra = {}; for (var optionName in raw) { - if (raw[optionName] === currentRaw[optionName]) { + if (raw[optionName] === currentRaw[optionName] || COMPLEX_OPTION_COMPARATORS[optionName] && COMPLEX_OPTION_COMPARATORS[optionName](raw[optionName], currentRaw[optionName])) { refined[optionName] = currentRefined[optionName]; } else { - if (raw[optionName] === this.currentCalendarOptionsInput[optionName]) { + if (raw[optionName] === this.currentCalendarOptionsInput[optionName] || COMPLEX_OPTION_COMPARATORS[optionName] && COMPLEX_OPTION_COMPARATORS[optionName](raw[optionName], this.currentCalendarOptionsInput[optionName])) { if (optionName in this.currentCalendarOptionsRefined) { refined[optionName] = this.currentCalendarOptionsRefined[optionName]; } @@ -45957,11 +45400,14 @@ var CalendarContent = function(_super) { interactionSettingsStore[component.uid] = settings; }; _this.unregisterInteractiveComponent = function(component) { - for (var _i = 0, _a = _this.interactionsStore[component.uid]; _i < _a.length; _i++) { - var listener = _a[_i]; - listener.destroy(); + var listeners = _this.interactionsStore[component.uid]; + if (listeners) { + for (var _i = 0, listeners_1 = listeners; _i < listeners_1.length; _i++) { + var listener = listeners_1[_i]; + listener.destroy(); + } + delete _this.interactionsStore[component.uid]; } - delete _this.interactionsStore[component.uid]; delete interactionSettingsStore[component.uid]; }; _this.resizeRunner = new DelayedRunner(function() { @@ -46057,15 +45503,15 @@ var CalendarContent = function(_super) { }; return CalendarContent2; }(PureComponent); -function buildToolbarProps(viewSpec, dateProfile, dateProfileGenerator, currentDate, now, title) { - var todayInfo = dateProfileGenerator.build(now, void 0, false); +function buildToolbarProps(viewSpec, dateProfile, dateProfileGenerator, currentDate, now2, title) { + var todayInfo = dateProfileGenerator.build(now2, void 0, false); var prevInfo = dateProfileGenerator.buildPrev(dateProfile, currentDate, false); var nextInfo = dateProfileGenerator.buildNext(dateProfile, currentDate, false); return { title, activeButton: viewSpec.type, navUnit: viewSpec.singleUnit, - isTodayEnabled: todayInfo.isValid && !rangeContainsMarker(dateProfile.currentRange, now), + isTodayEnabled: todayInfo.isValid && !rangeContainsMarker(dateProfile.currentRange, now2), isPrevEnabled: prevInfo.isValid, isNextEnabled: nextInfo.isValid }; @@ -46946,7 +46392,7 @@ var SimpleScrollGrid = function(_super) { scrollerClientHeights: {} }; _this.handleSizing = function() { - _this.setState(__assign({ shrinkWidth: _this.computeShrinkWidth() }, _this.computeScrollerDims())); + _this.safeSetState(__assign({ shrinkWidth: _this.computeShrinkWidth() }, _this.computeScrollerDims())); }; return _this; } @@ -47500,18 +46946,19 @@ var Calendar = function(_super) { if (_this.isRendering) { _this.isRendered = true; var currentData_1 = _this.currentData; - render(createElement(CalendarRoot, { options: currentData_1.calendarOptions, theme: currentData_1.theme, emitter: currentData_1.emitter }, function(classNames, height, isHeightAuto, forPrint) { - _this.setClassNames(classNames); - _this.setHeight(height); - return createElement(CustomContentRenderContext.Provider, { value: _this.customContentRenderId }, createElement(CalendarContent, __assign({ isHeightAuto, forPrint }, currentData_1))); - }), _this.el); + flushSync2(function() { + render(createElement(CalendarRoot, { options: currentData_1.calendarOptions, theme: currentData_1.theme, emitter: currentData_1.emitter }, function(classNames, height, isHeightAuto, forPrint) { + _this.setClassNames(classNames); + _this.setHeight(height); + return createElement(CustomContentRenderContext.Provider, { value: _this.customContentRenderId }, createElement(CalendarContent, __assign({ isHeightAuto, forPrint }, currentData_1))); + }), _this.el); + }); } else if (_this.isRendered) { _this.isRendered = false; unmountComponentAtNode2(_this.el); _this.setClassNames([]); _this.setHeight(""); } - flushToDom2(); }; _this.el = el; _this.renderRunner = new DelayedRunner(_this.handleRenderRequest); @@ -47549,8 +46996,10 @@ var Calendar = function(_super) { } }; Calendar3.prototype.updateSize = function() { - _super.prototype.updateSize.call(this); - flushToDom2(); + var _this = this; + flushSync2(function() { + _super.prototype.updateSize.call(_this); + }); }; Calendar3.prototype.batchRendering = function(func) { this.renderRunner.pause("batchRendering"); @@ -48179,7 +47628,7 @@ var TableRow = function(_super) { var oldInstanceHeights = this.state.eventInstanceHeights; var newInstanceHeights = this.queryEventInstanceHeights(); var limitByContentHeight = props.dayMaxEvents === true || props.dayMaxEventRows === true; - this.setState({ + this.safeSetState({ eventInstanceHeights: __assign(__assign({}, oldInstanceHeights), newInstanceHeights), maxContentHeight: limitByContentHeight ? this.computeMaxContentHeight() : null }); @@ -50336,9 +49785,9 @@ var AutoScroller = function() { if (_this.isAnimating) { var edge = _this.computeBestEdge(_this.pointerScreenX + window.pageXOffset, _this.pointerScreenY + window.pageYOffset); if (edge) { - var now = getTime(); - _this.handleSide(edge, (now - _this.msSinceRequest) / 1e3); - _this.requestAnimation(now); + var now2 = getTime(); + _this.handleSide(edge, (now2 - _this.msSinceRequest) / 1e3); + _this.requestAnimation(now2); } else { _this.isAnimating = false; } @@ -50391,8 +49840,8 @@ var AutoScroller = function() { this.scrollCaches = null; } }; - AutoScroller2.prototype.requestAnimation = function(now) { - this.msSinceRequest = now; + AutoScroller2.prototype.requestAnimation = function(now2) { + this.msSinceRequest = now2; requestAnimationFrame(this.animate); }; AutoScroller2.prototype.handleSide = function(edge, seconds) { @@ -50417,8 +49866,9 @@ var AutoScroller = function() { AutoScroller2.prototype.computeBestEdge = function(left, top) { var edgeThreshold = this.edgeThreshold; var bestSide = null; - for (var _i = 0, _a = this.scrollCaches; _i < _a.length; _i++) { - var scrollCache = _a[_i]; + var scrollCaches = this.scrollCaches || []; + for (var _i = 0, scrollCaches_1 = scrollCaches; _i < scrollCaches_1.length; _i++) { + var scrollCache = scrollCaches_1[_i]; var rect = scrollCache.clientRect; var leftDist = left - rect.left; var rightDist = rect.right - left; @@ -51785,12 +51235,12 @@ var eventSourceDef2 = { } }; function parseGoogleCalendarId(url) { - var match; + var match2; if (/^[^/]+@([^/.]+\.)*(google|googlemail|gmail)\.com$/.test(url)) { return url; } - if ((match = /^https:\/\/www.googleapis.com\/calendar\/v3\/calendars\/([^/]*)/.exec(url)) || (match = /^https?:\/\/www.google.com\/calendar\/feeds\/([^/]*)/.exec(url))) { - return decodeURIComponent(match[1]); + if ((match2 = /^https:\/\/www.googleapis.com\/calendar\/v3\/calendars\/([^/]*)/.exec(url)) || (match2 = /^https?:\/\/www.google.com\/calendar\/feeds\/([^/]*)/.exec(url))) { + return decodeURIComponent(match2[1]); } return null; } @@ -52052,91 +51502,4072 @@ function buildNonDateProps(iCalEvent) { organizer: iCalEvent.organizer, description: iCalEvent.description } - }; -} -function extractEventUrl(iCalEvent) { - var urlProp = iCalEvent.component.getFirstProperty("url"); - return urlProp ? urlProp.getFirstValue() : ""; -} -function specifiesEnd(iCalEvent) { - return Boolean(iCalEvent.component.getFirstProperty("dtend")) || Boolean(iCalEvent.component.getFirstProperty("duration")); -} -var main6 = createPlugin({ - eventSourceDefs: [eventSourceDef3] -}); -var main_default6 = main6; - -// src/calendar.ts -function renderCalendar(containerEl, eventSources, settings) { - const isMobile = window.innerWidth < 500; - const { eventClick, select, modifyEvent, eventMouseEnter } = settings || {}; - const modifyEventCallback = modifyEvent && ((_0) => __async(this, [_0], function* ({ - event, - oldEvent, - revert - }) { - const success = yield modifyEvent(event, oldEvent); - if (!success) { - revert(); + }; +} +function extractEventUrl(iCalEvent) { + var urlProp = iCalEvent.component.getFirstProperty("url"); + return urlProp ? urlProp.getFirstValue() : ""; +} +function specifiesEnd(iCalEvent) { + return Boolean(iCalEvent.component.getFirstProperty("dtend")) || Boolean(iCalEvent.component.getFirstProperty("duration")); +} +var main6 = createPlugin({ + eventSourceDefs: [eventSourceDef3] +}); +var main_default6 = main6; + +// src/ui/calendar.ts +function renderCalendar(containerEl, eventSources, settings) { + var _a; + const isMobile = window.innerWidth < 500; + const { + eventClick, + select, + modifyEvent, + eventMouseEnter, + openContextMenuForEvent, + toggleTask + } = settings || {}; + const modifyEventCallback = modifyEvent && ((_0) => __async(this, [_0], function* ({ + event, + oldEvent, + revert + }) { + const success = yield modifyEvent(event, oldEvent); + if (!success) { + revert(); + } + })); + const cal = new Calendar(containerEl, __spreadProps(__spreadValues({ + plugins: [ + main_default, + main_default2, + main_default3, + main_default4, + main_default5, + main_default6 + ], + googleCalendarApiKey: "AIzaSyDIiklFwJXaLWuT_4y6I9ZRVVsPuf4xGrk", + initialView: ((_a = settings == null ? void 0 : settings.initialView) == null ? void 0 : _a[isMobile ? "mobile" : "desktop"]) || (isMobile ? "timeGrid3Days" : "timeGridWeek"), + nowIndicator: true, + scrollTimeReset: false, + headerToolbar: !isMobile ? { + left: "prev,next today", + center: "title", + right: "dayGridMonth,timeGridWeek,timeGridDay,listWeek" + } : false, + footerToolbar: isMobile ? { + right: "today,prev,next", + left: "timeGrid3Days,timeGridDay,listWeek" + } : false, + views: { + timeGridDay: { + type: "timeGrid", + duration: { days: 1 }, + buttonText: isMobile ? "1" : "day" + }, + timeGrid3Days: { + type: "timeGrid", + duration: { days: 3 }, + buttonText: "3" + } + }, + firstDay: settings == null ? void 0 : settings.firstDay + }, (settings == null ? void 0 : settings.timeFormat24h) && { + eventTimeFormat: { + hour: "numeric", + minute: "2-digit", + hour12: false + }, + slotLabelFormat: { + hour: "numeric", + minute: "2-digit", + hour12: false + } + }), { + eventSources, + eventClick, + selectable: select && true, + selectMirror: select && true, + select: select && ((info) => __async(this, null, function* () { + yield select(info.start, info.end, info.allDay, info.view.type); + info.view.calendar.unselect(); + })), + editable: modifyEvent && true, + eventDrop: modifyEventCallback, + eventResize: modifyEventCallback, + eventMouseEnter, + eventDidMount: ({ event, el, textColor }) => { + el.addEventListener("contextmenu", (e3) => { + e3.preventDefault(); + openContextMenuForEvent && openContextMenuForEvent(event, e3); + }); + if (toggleTask) { + if (event.extendedProps.isTask) { + const checkbox = document.createElement("input"); + checkbox.type = "checkbox"; + checkbox.checked = event.extendedProps.taskCompleted !== false; + checkbox.onclick = (e3) => __async(this, null, function* () { + e3.stopPropagation(); + if (e3.target) { + let ret = yield toggleTask(event, e3.target.checked); + if (!ret) { + e3.target.checked = !e3.target.checked; + } + } + }); + if (textColor == "black") { + checkbox.addClass("ofc-checkbox-black"); + } else { + checkbox.addClass("ofc-checkbox-white"); + } + if (checkbox.checked) { + el.addClass("ofc-task-completed"); + } + const container = el.querySelector(".fc-event-time") || el.querySelector(".fc-event-title") || el.querySelector(".fc-list-event-title"); + container == null ? void 0 : container.addClass("ofc-has-checkbox"); + container == null ? void 0 : container.prepend(checkbox); + } + } + }, + longPressDelay: 250 + })); + cal.render(); + return cal; +} + +// src/ui/modal.ts +var import_obsidian5 = __toModule(require("obsidian")); +var React2 = __toModule(require_react()); +var ReactDOM = __toModule(require_react_dom()); + +// node_modules/luxon/src/errors.js +var LuxonError = class extends Error { +}; +var InvalidDateTimeError = class extends LuxonError { + constructor(reason) { + super(`Invalid DateTime: ${reason.toMessage()}`); + } +}; +var InvalidIntervalError = class extends LuxonError { + constructor(reason) { + super(`Invalid Interval: ${reason.toMessage()}`); + } +}; +var InvalidDurationError = class extends LuxonError { + constructor(reason) { + super(`Invalid Duration: ${reason.toMessage()}`); + } +}; +var ConflictingSpecificationError = class extends LuxonError { +}; +var InvalidUnitError = class extends LuxonError { + constructor(unit) { + super(`Invalid unit ${unit}`); + } +}; +var InvalidArgumentError = class extends LuxonError { +}; +var ZoneIsAbstractError = class extends LuxonError { + constructor() { + super("Zone is an abstract class"); + } +}; + +// node_modules/luxon/src/impl/formats.js +var n2 = "numeric"; +var s3 = "short"; +var l3 = "long"; +var DATE_SHORT = { + year: n2, + month: n2, + day: n2 +}; +var DATE_MED = { + year: n2, + month: s3, + day: n2 +}; +var DATE_MED_WITH_WEEKDAY = { + year: n2, + month: s3, + day: n2, + weekday: s3 +}; +var DATE_FULL = { + year: n2, + month: l3, + day: n2 +}; +var DATE_HUGE = { + year: n2, + month: l3, + day: n2, + weekday: l3 +}; +var TIME_SIMPLE = { + hour: n2, + minute: n2 +}; +var TIME_WITH_SECONDS = { + hour: n2, + minute: n2, + second: n2 +}; +var TIME_WITH_SHORT_OFFSET = { + hour: n2, + minute: n2, + second: n2, + timeZoneName: s3 +}; +var TIME_WITH_LONG_OFFSET = { + hour: n2, + minute: n2, + second: n2, + timeZoneName: l3 +}; +var TIME_24_SIMPLE = { + hour: n2, + minute: n2, + hourCycle: "h23" +}; +var TIME_24_WITH_SECONDS = { + hour: n2, + minute: n2, + second: n2, + hourCycle: "h23" +}; +var TIME_24_WITH_SHORT_OFFSET = { + hour: n2, + minute: n2, + second: n2, + hourCycle: "h23", + timeZoneName: s3 +}; +var TIME_24_WITH_LONG_OFFSET = { + hour: n2, + minute: n2, + second: n2, + hourCycle: "h23", + timeZoneName: l3 +}; +var DATETIME_SHORT = { + year: n2, + month: n2, + day: n2, + hour: n2, + minute: n2 +}; +var DATETIME_SHORT_WITH_SECONDS = { + year: n2, + month: n2, + day: n2, + hour: n2, + minute: n2, + second: n2 +}; +var DATETIME_MED = { + year: n2, + month: s3, + day: n2, + hour: n2, + minute: n2 +}; +var DATETIME_MED_WITH_SECONDS = { + year: n2, + month: s3, + day: n2, + hour: n2, + minute: n2, + second: n2 +}; +var DATETIME_MED_WITH_WEEKDAY = { + year: n2, + month: s3, + day: n2, + weekday: s3, + hour: n2, + minute: n2 +}; +var DATETIME_FULL = { + year: n2, + month: l3, + day: n2, + hour: n2, + minute: n2, + timeZoneName: s3 +}; +var DATETIME_FULL_WITH_SECONDS = { + year: n2, + month: l3, + day: n2, + hour: n2, + minute: n2, + second: n2, + timeZoneName: s3 +}; +var DATETIME_HUGE = { + year: n2, + month: l3, + day: n2, + weekday: l3, + hour: n2, + minute: n2, + timeZoneName: l3 +}; +var DATETIME_HUGE_WITH_SECONDS = { + year: n2, + month: l3, + day: n2, + weekday: l3, + hour: n2, + minute: n2, + second: n2, + timeZoneName: l3 +}; + +// node_modules/luxon/src/impl/util.js +function isUndefined(o2) { + return typeof o2 === "undefined"; +} +function isNumber(o2) { + return typeof o2 === "number"; +} +function isInteger(o2) { + return typeof o2 === "number" && o2 % 1 === 0; +} +function isString(o2) { + return typeof o2 === "string"; +} +function isDate(o2) { + return Object.prototype.toString.call(o2) === "[object Date]"; +} +function hasRelative() { + try { + return typeof Intl !== "undefined" && !!Intl.RelativeTimeFormat; + } catch (e3) { + return false; + } +} +function maybeArray(thing) { + return Array.isArray(thing) ? thing : [thing]; +} +function bestBy(arr, by, compare) { + if (arr.length === 0) { + return void 0; + } + return arr.reduce((best, next) => { + const pair = [by(next), next]; + if (!best) { + return pair; + } else if (compare(best[0], pair[0]) === best[0]) { + return best; + } else { + return pair; + } + }, null)[1]; +} +function pick(obj, keys) { + return keys.reduce((a3, k3) => { + a3[k3] = obj[k3]; + return a3; + }, {}); +} +function hasOwnProperty2(obj, prop) { + return Object.prototype.hasOwnProperty.call(obj, prop); +} +function integerBetween(thing, bottom, top) { + return isInteger(thing) && thing >= bottom && thing <= top; +} +function floorMod(x4, n3) { + return x4 - n3 * Math.floor(x4 / n3); +} +function padStart2(input, n3 = 2) { + const isNeg = input < 0; + let padded; + if (isNeg) { + padded = "-" + ("" + -input).padStart(n3, "0"); + } else { + padded = ("" + input).padStart(n3, "0"); + } + return padded; +} +function parseInteger(string) { + if (isUndefined(string) || string === null || string === "") { + return void 0; + } else { + return parseInt(string, 10); + } +} +function parseFloating(string) { + if (isUndefined(string) || string === null || string === "") { + return void 0; + } else { + return parseFloat(string); + } +} +function parseMillis(fraction) { + if (isUndefined(fraction) || fraction === null || fraction === "") { + return void 0; + } else { + const f3 = parseFloat("0." + fraction) * 1e3; + return Math.floor(f3); + } +} +function roundTo(number, digits, towardZero = false) { + const factor = 10 ** digits, rounder = towardZero ? Math.trunc : Math.round; + return rounder(number * factor) / factor; +} +function isLeapYear(year) { + return year % 4 === 0 && (year % 100 !== 0 || year % 400 === 0); +} +function daysInYear(year) { + return isLeapYear(year) ? 366 : 365; +} +function daysInMonth(year, month) { + const modMonth = floorMod(month - 1, 12) + 1, modYear = year + (month - modMonth) / 12; + if (modMonth === 2) { + return isLeapYear(modYear) ? 29 : 28; + } else { + return [31, null, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31][modMonth - 1]; + } +} +function objToLocalTS(obj) { + let d2 = Date.UTC(obj.year, obj.month - 1, obj.day, obj.hour, obj.minute, obj.second, obj.millisecond); + if (obj.year < 100 && obj.year >= 0) { + d2 = new Date(d2); + d2.setUTCFullYear(d2.getUTCFullYear() - 1900); + } + return +d2; +} +function weeksInWeekYear(weekYear) { + const p1 = (weekYear + Math.floor(weekYear / 4) - Math.floor(weekYear / 100) + Math.floor(weekYear / 400)) % 7, last = weekYear - 1, p22 = (last + Math.floor(last / 4) - Math.floor(last / 100) + Math.floor(last / 400)) % 7; + return p1 === 4 || p22 === 3 ? 53 : 52; +} +function untruncateYear(year) { + if (year > 99) { + return year; + } else + return year > 60 ? 1900 + year : 2e3 + year; +} +function parseZoneInfo(ts, offsetFormat, locale, timeZone = null) { + const date = new Date(ts), intlOpts = { + hourCycle: "h23", + year: "numeric", + month: "2-digit", + day: "2-digit", + hour: "2-digit", + minute: "2-digit" + }; + if (timeZone) { + intlOpts.timeZone = timeZone; + } + const modified = __spreadValues({ timeZoneName: offsetFormat }, intlOpts); + const parsed = new Intl.DateTimeFormat(locale, modified).formatToParts(date).find((m3) => m3.type.toLowerCase() === "timezonename"); + return parsed ? parsed.value : null; +} +function signedOffset(offHourStr, offMinuteStr) { + let offHour = parseInt(offHourStr, 10); + if (Number.isNaN(offHour)) { + offHour = 0; + } + const offMin = parseInt(offMinuteStr, 10) || 0, offMinSigned = offHour < 0 || Object.is(offHour, -0) ? -offMin : offMin; + return offHour * 60 + offMinSigned; +} +function asNumber(value) { + const numericValue = Number(value); + if (typeof value === "boolean" || value === "" || Number.isNaN(numericValue)) + throw new InvalidArgumentError(`Invalid unit value ${value}`); + return numericValue; +} +function normalizeObject(obj, normalizer) { + const normalized = {}; + for (const u3 in obj) { + if (hasOwnProperty2(obj, u3)) { + const v3 = obj[u3]; + if (v3 === void 0 || v3 === null) + continue; + normalized[normalizer(u3)] = asNumber(v3); + } + } + return normalized; +} +function formatOffset(offset2, format) { + const hours = Math.trunc(Math.abs(offset2 / 60)), minutes = Math.trunc(Math.abs(offset2 % 60)), sign = offset2 >= 0 ? "+" : "-"; + switch (format) { + case "short": + return `${sign}${padStart2(hours, 2)}:${padStart2(minutes, 2)}`; + case "narrow": + return `${sign}${hours}${minutes > 0 ? `:${minutes}` : ""}`; + case "techie": + return `${sign}${padStart2(hours, 2)}${padStart2(minutes, 2)}`; + default: + throw new RangeError(`Value format ${format} is out of range for property format`); + } +} +function timeObject(obj) { + return pick(obj, ["hour", "minute", "second", "millisecond"]); +} +var ianaRegex = /[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/; + +// node_modules/luxon/src/impl/english.js +var monthsLong = [ + "January", + "February", + "March", + "April", + "May", + "June", + "July", + "August", + "September", + "October", + "November", + "December" +]; +var monthsShort = [ + "Jan", + "Feb", + "Mar", + "Apr", + "May", + "Jun", + "Jul", + "Aug", + "Sep", + "Oct", + "Nov", + "Dec" +]; +var monthsNarrow = ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"]; +function months(length) { + switch (length) { + case "narrow": + return [...monthsNarrow]; + case "short": + return [...monthsShort]; + case "long": + return [...monthsLong]; + case "numeric": + return ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12"]; + case "2-digit": + return ["01", "02", "03", "04", "05", "06", "07", "08", "09", "10", "11", "12"]; + default: + return null; + } +} +var weekdaysLong = [ + "Monday", + "Tuesday", + "Wednesday", + "Thursday", + "Friday", + "Saturday", + "Sunday" +]; +var weekdaysShort = ["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"]; +var weekdaysNarrow = ["M", "T", "W", "T", "F", "S", "S"]; +function weekdays(length) { + switch (length) { + case "narrow": + return [...weekdaysNarrow]; + case "short": + return [...weekdaysShort]; + case "long": + return [...weekdaysLong]; + case "numeric": + return ["1", "2", "3", "4", "5", "6", "7"]; + default: + return null; + } +} +var meridiems = ["AM", "PM"]; +var erasLong = ["Before Christ", "Anno Domini"]; +var erasShort = ["BC", "AD"]; +var erasNarrow = ["B", "A"]; +function eras(length) { + switch (length) { + case "narrow": + return [...erasNarrow]; + case "short": + return [...erasShort]; + case "long": + return [...erasLong]; + default: + return null; + } +} +function meridiemForDateTime(dt) { + return meridiems[dt.hour < 12 ? 0 : 1]; +} +function weekdayForDateTime(dt, length) { + return weekdays(length)[dt.weekday - 1]; +} +function monthForDateTime(dt, length) { + return months(length)[dt.month - 1]; +} +function eraForDateTime(dt, length) { + return eras(length)[dt.year < 0 ? 0 : 1]; +} +function formatRelativeTime(unit, count, numeric = "always", narrow = false) { + const units = { + years: ["year", "yr."], + quarters: ["quarter", "qtr."], + months: ["month", "mo."], + weeks: ["week", "wk."], + days: ["day", "day", "days"], + hours: ["hour", "hr."], + minutes: ["minute", "min."], + seconds: ["second", "sec."] + }; + const lastable = ["hours", "minutes", "seconds"].indexOf(unit) === -1; + if (numeric === "auto" && lastable) { + const isDay = unit === "days"; + switch (count) { + case 1: + return isDay ? "tomorrow" : `next ${units[unit][0]}`; + case -1: + return isDay ? "yesterday" : `last ${units[unit][0]}`; + case 0: + return isDay ? "today" : `this ${units[unit][0]}`; + default: + } + } + const isInPast = Object.is(count, -0) || count < 0, fmtValue = Math.abs(count), singular = fmtValue === 1, lilUnits = units[unit], fmtUnit = narrow ? singular ? lilUnits[1] : lilUnits[2] || lilUnits[1] : singular ? units[unit][0] : unit; + return isInPast ? `${fmtValue} ${fmtUnit} ago` : `in ${fmtValue} ${fmtUnit}`; +} + +// node_modules/luxon/src/impl/formatter.js +function stringifyTokens(splits, tokenToString) { + let s4 = ""; + for (const token of splits) { + if (token.literal) { + s4 += token.val; + } else { + s4 += tokenToString(token.val); + } + } + return s4; +} +var macroTokenToFormatOpts = { + D: DATE_SHORT, + DD: DATE_MED, + DDD: DATE_FULL, + DDDD: DATE_HUGE, + t: TIME_SIMPLE, + tt: TIME_WITH_SECONDS, + ttt: TIME_WITH_SHORT_OFFSET, + tttt: TIME_WITH_LONG_OFFSET, + T: TIME_24_SIMPLE, + TT: TIME_24_WITH_SECONDS, + TTT: TIME_24_WITH_SHORT_OFFSET, + TTTT: TIME_24_WITH_LONG_OFFSET, + f: DATETIME_SHORT, + ff: DATETIME_MED, + fff: DATETIME_FULL, + ffff: DATETIME_HUGE, + F: DATETIME_SHORT_WITH_SECONDS, + FF: DATETIME_MED_WITH_SECONDS, + FFF: DATETIME_FULL_WITH_SECONDS, + FFFF: DATETIME_HUGE_WITH_SECONDS +}; +var Formatter = class { + static create(locale, opts = {}) { + return new Formatter(locale, opts); + } + static parseFormat(fmt) { + let current = null, currentFull = "", bracketed = false; + const splits = []; + for (let i3 = 0; i3 < fmt.length; i3++) { + const c3 = fmt.charAt(i3); + if (c3 === "'") { + if (currentFull.length > 0) { + splits.push({ literal: bracketed, val: currentFull }); + } + current = null; + currentFull = ""; + bracketed = !bracketed; + } else if (bracketed) { + currentFull += c3; + } else if (c3 === current) { + currentFull += c3; + } else { + if (currentFull.length > 0) { + splits.push({ literal: false, val: currentFull }); + } + currentFull = c3; + current = c3; + } + } + if (currentFull.length > 0) { + splits.push({ literal: bracketed, val: currentFull }); + } + return splits; + } + static macroTokenToFormatOpts(token) { + return macroTokenToFormatOpts[token]; + } + constructor(locale, formatOpts) { + this.opts = formatOpts; + this.loc = locale; + this.systemLoc = null; + } + formatWithSystemDefault(dt, opts) { + if (this.systemLoc === null) { + this.systemLoc = this.loc.redefaultToSystem(); + } + const df = this.systemLoc.dtFormatter(dt, __spreadValues(__spreadValues({}, this.opts), opts)); + return df.format(); + } + formatDateTime(dt, opts = {}) { + const df = this.loc.dtFormatter(dt, __spreadValues(__spreadValues({}, this.opts), opts)); + return df.format(); + } + formatDateTimeParts(dt, opts = {}) { + const df = this.loc.dtFormatter(dt, __spreadValues(__spreadValues({}, this.opts), opts)); + return df.formatToParts(); + } + resolvedOptions(dt, opts = {}) { + const df = this.loc.dtFormatter(dt, __spreadValues(__spreadValues({}, this.opts), opts)); + return df.resolvedOptions(); + } + num(n3, p3 = 0) { + if (this.opts.forceSimple) { + return padStart2(n3, p3); + } + const opts = __spreadValues({}, this.opts); + if (p3 > 0) { + opts.padTo = p3; + } + return this.loc.numberFormatter(opts).format(n3); + } + formatDateTimeFromString(dt, fmt) { + const knownEnglish = this.loc.listingMode() === "en", useDateTimeFormatter = this.loc.outputCalendar && this.loc.outputCalendar !== "gregory", string = (opts, extract) => this.loc.extract(dt, opts, extract), formatOffset2 = (opts) => { + if (dt.isOffsetFixed && dt.offset === 0 && opts.allowZ) { + return "Z"; + } + return dt.isValid ? dt.zone.formatOffset(dt.ts, opts.format) : ""; + }, meridiem = () => knownEnglish ? meridiemForDateTime(dt) : string({ hour: "numeric", hourCycle: "h12" }, "dayperiod"), month = (length, standalone) => knownEnglish ? monthForDateTime(dt, length) : string(standalone ? { month: length } : { month: length, day: "numeric" }, "month"), weekday = (length, standalone) => knownEnglish ? weekdayForDateTime(dt, length) : string(standalone ? { weekday: length } : { weekday: length, month: "long", day: "numeric" }, "weekday"), maybeMacro = (token) => { + const formatOpts = Formatter.macroTokenToFormatOpts(token); + if (formatOpts) { + return this.formatWithSystemDefault(dt, formatOpts); + } else { + return token; + } + }, era = (length) => knownEnglish ? eraForDateTime(dt, length) : string({ era: length }, "era"), tokenToString = (token) => { + switch (token) { + case "S": + return this.num(dt.millisecond); + case "u": + case "SSS": + return this.num(dt.millisecond, 3); + case "s": + return this.num(dt.second); + case "ss": + return this.num(dt.second, 2); + case "uu": + return this.num(Math.floor(dt.millisecond / 10), 2); + case "uuu": + return this.num(Math.floor(dt.millisecond / 100)); + case "m": + return this.num(dt.minute); + case "mm": + return this.num(dt.minute, 2); + case "h": + return this.num(dt.hour % 12 === 0 ? 12 : dt.hour % 12); + case "hh": + return this.num(dt.hour % 12 === 0 ? 12 : dt.hour % 12, 2); + case "H": + return this.num(dt.hour); + case "HH": + return this.num(dt.hour, 2); + case "Z": + return formatOffset2({ format: "narrow", allowZ: this.opts.allowZ }); + case "ZZ": + return formatOffset2({ format: "short", allowZ: this.opts.allowZ }); + case "ZZZ": + return formatOffset2({ format: "techie", allowZ: this.opts.allowZ }); + case "ZZZZ": + return dt.zone.offsetName(dt.ts, { format: "short", locale: this.loc.locale }); + case "ZZZZZ": + return dt.zone.offsetName(dt.ts, { format: "long", locale: this.loc.locale }); + case "z": + return dt.zoneName; + case "a": + return meridiem(); + case "d": + return useDateTimeFormatter ? string({ day: "numeric" }, "day") : this.num(dt.day); + case "dd": + return useDateTimeFormatter ? string({ day: "2-digit" }, "day") : this.num(dt.day, 2); + case "c": + return this.num(dt.weekday); + case "ccc": + return weekday("short", true); + case "cccc": + return weekday("long", true); + case "ccccc": + return weekday("narrow", true); + case "E": + return this.num(dt.weekday); + case "EEE": + return weekday("short", false); + case "EEEE": + return weekday("long", false); + case "EEEEE": + return weekday("narrow", false); + case "L": + return useDateTimeFormatter ? string({ month: "numeric", day: "numeric" }, "month") : this.num(dt.month); + case "LL": + return useDateTimeFormatter ? string({ month: "2-digit", day: "numeric" }, "month") : this.num(dt.month, 2); + case "LLL": + return month("short", true); + case "LLLL": + return month("long", true); + case "LLLLL": + return month("narrow", true); + case "M": + return useDateTimeFormatter ? string({ month: "numeric" }, "month") : this.num(dt.month); + case "MM": + return useDateTimeFormatter ? string({ month: "2-digit" }, "month") : this.num(dt.month, 2); + case "MMM": + return month("short", false); + case "MMMM": + return month("long", false); + case "MMMMM": + return month("narrow", false); + case "y": + return useDateTimeFormatter ? string({ year: "numeric" }, "year") : this.num(dt.year); + case "yy": + return useDateTimeFormatter ? string({ year: "2-digit" }, "year") : this.num(dt.year.toString().slice(-2), 2); + case "yyyy": + return useDateTimeFormatter ? string({ year: "numeric" }, "year") : this.num(dt.year, 4); + case "yyyyyy": + return useDateTimeFormatter ? string({ year: "numeric" }, "year") : this.num(dt.year, 6); + case "G": + return era("short"); + case "GG": + return era("long"); + case "GGGGG": + return era("narrow"); + case "kk": + return this.num(dt.weekYear.toString().slice(-2), 2); + case "kkkk": + return this.num(dt.weekYear, 4); + case "W": + return this.num(dt.weekNumber); + case "WW": + return this.num(dt.weekNumber, 2); + case "o": + return this.num(dt.ordinal); + case "ooo": + return this.num(dt.ordinal, 3); + case "q": + return this.num(dt.quarter); + case "qq": + return this.num(dt.quarter, 2); + case "X": + return this.num(Math.floor(dt.ts / 1e3)); + case "x": + return this.num(dt.ts); + default: + return maybeMacro(token); + } + }; + return stringifyTokens(Formatter.parseFormat(fmt), tokenToString); + } + formatDurationFromString(dur, fmt) { + const tokenToField = (token) => { + switch (token[0]) { + case "S": + return "millisecond"; + case "s": + return "second"; + case "m": + return "minute"; + case "h": + return "hour"; + case "d": + return "day"; + case "w": + return "week"; + case "M": + return "month"; + case "y": + return "year"; + default: + return null; + } + }, tokenToString = (lildur) => (token) => { + const mapped = tokenToField(token); + if (mapped) { + return this.num(lildur.get(mapped), token.length); + } else { + return token; + } + }, tokens = Formatter.parseFormat(fmt), realTokens = tokens.reduce((found, { literal, val }) => literal ? found : found.concat(val), []), collapsed = dur.shiftTo(...realTokens.map(tokenToField).filter((t3) => t3)); + return stringifyTokens(tokens, tokenToString(collapsed)); + } +}; + +// node_modules/luxon/src/impl/invalid.js +var Invalid = class { + constructor(reason, explanation) { + this.reason = reason; + this.explanation = explanation; + } + toMessage() { + if (this.explanation) { + return `${this.reason}: ${this.explanation}`; + } else { + return this.reason; + } + } +}; + +// node_modules/luxon/src/zone.js +var Zone = class { + get type() { + throw new ZoneIsAbstractError(); + } + get name() { + throw new ZoneIsAbstractError(); + } + get ianaName() { + return this.name; + } + get isUniversal() { + throw new ZoneIsAbstractError(); + } + offsetName(ts, opts) { + throw new ZoneIsAbstractError(); + } + formatOffset(ts, format) { + throw new ZoneIsAbstractError(); + } + offset(ts) { + throw new ZoneIsAbstractError(); + } + equals(otherZone) { + throw new ZoneIsAbstractError(); + } + get isValid() { + throw new ZoneIsAbstractError(); + } +}; + +// node_modules/luxon/src/zones/systemZone.js +var singleton = null; +var SystemZone = class extends Zone { + static get instance() { + if (singleton === null) { + singleton = new SystemZone(); + } + return singleton; + } + get type() { + return "system"; + } + get name() { + return new Intl.DateTimeFormat().resolvedOptions().timeZone; + } + get isUniversal() { + return false; + } + offsetName(ts, { format, locale }) { + return parseZoneInfo(ts, format, locale); + } + formatOffset(ts, format) { + return formatOffset(this.offset(ts), format); + } + offset(ts) { + return -new Date(ts).getTimezoneOffset(); + } + equals(otherZone) { + return otherZone.type === "system"; + } + get isValid() { + return true; + } +}; + +// node_modules/luxon/src/zones/IANAZone.js +var dtfCache = {}; +function makeDTF(zone) { + if (!dtfCache[zone]) { + dtfCache[zone] = new Intl.DateTimeFormat("en-US", { + hour12: false, + timeZone: zone, + year: "numeric", + month: "2-digit", + day: "2-digit", + hour: "2-digit", + minute: "2-digit", + second: "2-digit", + era: "short" + }); + } + return dtfCache[zone]; +} +var typeToPos = { + year: 0, + month: 1, + day: 2, + era: 3, + hour: 4, + minute: 5, + second: 6 +}; +function hackyOffset(dtf, date) { + const formatted = dtf.format(date).replace(/\u200E/g, ""), parsed = /(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(formatted), [, fMonth, fDay, fYear, fadOrBc, fHour, fMinute, fSecond] = parsed; + return [fYear, fMonth, fDay, fadOrBc, fHour, fMinute, fSecond]; +} +function partsOffset(dtf, date) { + const formatted = dtf.formatToParts(date); + const filled = []; + for (let i3 = 0; i3 < formatted.length; i3++) { + const { type, value } = formatted[i3]; + const pos = typeToPos[type]; + if (type === "era") { + filled[pos] = value; + } else if (!isUndefined(pos)) { + filled[pos] = parseInt(value, 10); + } + } + return filled; +} +var ianaZoneCache = {}; +var IANAZone = class extends Zone { + static create(name) { + if (!ianaZoneCache[name]) { + ianaZoneCache[name] = new IANAZone(name); + } + return ianaZoneCache[name]; + } + static resetCache() { + ianaZoneCache = {}; + dtfCache = {}; + } + static isValidSpecifier(s4) { + return this.isValidZone(s4); + } + static isValidZone(zone) { + if (!zone) { + return false; + } + try { + new Intl.DateTimeFormat("en-US", { timeZone: zone }).format(); + return true; + } catch (e3) { + return false; + } + } + constructor(name) { + super(); + this.zoneName = name; + this.valid = IANAZone.isValidZone(name); + } + get type() { + return "iana"; + } + get name() { + return this.zoneName; + } + get isUniversal() { + return false; + } + offsetName(ts, { format, locale }) { + return parseZoneInfo(ts, format, locale, this.name); + } + formatOffset(ts, format) { + return formatOffset(this.offset(ts), format); + } + offset(ts) { + const date = new Date(ts); + if (isNaN(date)) + return NaN; + const dtf = makeDTF(this.name); + let [year, month, day, adOrBc, hour, minute, second] = dtf.formatToParts ? partsOffset(dtf, date) : hackyOffset(dtf, date); + if (adOrBc === "BC") { + year = -Math.abs(year) + 1; + } + const adjustedHour = hour === 24 ? 0 : hour; + const asUTC = objToLocalTS({ + year, + month, + day, + hour: adjustedHour, + minute, + second, + millisecond: 0 + }); + let asTS = +date; + const over = asTS % 1e3; + asTS -= over >= 0 ? over : 1e3 + over; + return (asUTC - asTS) / (60 * 1e3); + } + equals(otherZone) { + return otherZone.type === "iana" && otherZone.name === this.name; + } + get isValid() { + return this.valid; + } +}; + +// node_modules/luxon/src/zones/fixedOffsetZone.js +var singleton2 = null; +var FixedOffsetZone = class extends Zone { + static get utcInstance() { + if (singleton2 === null) { + singleton2 = new FixedOffsetZone(0); + } + return singleton2; + } + static instance(offset2) { + return offset2 === 0 ? FixedOffsetZone.utcInstance : new FixedOffsetZone(offset2); + } + static parseSpecifier(s4) { + if (s4) { + const r3 = s4.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i); + if (r3) { + return new FixedOffsetZone(signedOffset(r3[1], r3[2])); + } + } + return null; + } + constructor(offset2) { + super(); + this.fixed = offset2; + } + get type() { + return "fixed"; + } + get name() { + return this.fixed === 0 ? "UTC" : `UTC${formatOffset(this.fixed, "narrow")}`; + } + get ianaName() { + if (this.fixed === 0) { + return "Etc/UTC"; + } else { + return `Etc/GMT${formatOffset(-this.fixed, "narrow")}`; + } + } + offsetName() { + return this.name; + } + formatOffset(ts, format) { + return formatOffset(this.fixed, format); + } + get isUniversal() { + return true; + } + offset() { + return this.fixed; + } + equals(otherZone) { + return otherZone.type === "fixed" && otherZone.fixed === this.fixed; + } + get isValid() { + return true; + } +}; + +// node_modules/luxon/src/zones/invalidZone.js +var InvalidZone = class extends Zone { + constructor(zoneName) { + super(); + this.zoneName = zoneName; + } + get type() { + return "invalid"; + } + get name() { + return this.zoneName; + } + get isUniversal() { + return false; + } + offsetName() { + return null; + } + formatOffset() { + return ""; + } + offset() { + return NaN; + } + equals() { + return false; + } + get isValid() { + return false; + } +}; + +// node_modules/luxon/src/impl/zoneUtil.js +function normalizeZone(input, defaultZone2) { + let offset2; + if (isUndefined(input) || input === null) { + return defaultZone2; + } else if (input instanceof Zone) { + return input; + } else if (isString(input)) { + const lowered = input.toLowerCase(); + if (lowered === "local" || lowered === "system") + return defaultZone2; + else if (lowered === "utc" || lowered === "gmt") + return FixedOffsetZone.utcInstance; + else + return FixedOffsetZone.parseSpecifier(lowered) || IANAZone.create(input); + } else if (isNumber(input)) { + return FixedOffsetZone.instance(input); + } else if (typeof input === "object" && input.offset && typeof input.offset === "number") { + return input; + } else { + return new InvalidZone(input); + } +} + +// node_modules/luxon/src/settings.js +var now = () => Date.now(); +var defaultZone = "system"; +var defaultLocale = null; +var defaultNumberingSystem = null; +var defaultOutputCalendar = null; +var throwOnInvalid; +var Settings = class { + static get now() { + return now; + } + static set now(n3) { + now = n3; + } + static set defaultZone(zone) { + defaultZone = zone; + } + static get defaultZone() { + return normalizeZone(defaultZone, SystemZone.instance); + } + static get defaultLocale() { + return defaultLocale; + } + static set defaultLocale(locale) { + defaultLocale = locale; + } + static get defaultNumberingSystem() { + return defaultNumberingSystem; + } + static set defaultNumberingSystem(numberingSystem) { + defaultNumberingSystem = numberingSystem; + } + static get defaultOutputCalendar() { + return defaultOutputCalendar; + } + static set defaultOutputCalendar(outputCalendar) { + defaultOutputCalendar = outputCalendar; + } + static get throwOnInvalid() { + return throwOnInvalid; + } + static set throwOnInvalid(t3) { + throwOnInvalid = t3; + } + static resetCaches() { + Locale.resetCache(); + IANAZone.resetCache(); + } +}; + +// node_modules/luxon/src/impl/locale.js +var intlLFCache = {}; +function getCachedLF(locString, opts = {}) { + const key = JSON.stringify([locString, opts]); + let dtf = intlLFCache[key]; + if (!dtf) { + dtf = new Intl.ListFormat(locString, opts); + intlLFCache[key] = dtf; + } + return dtf; +} +var intlDTCache = {}; +function getCachedDTF(locString, opts = {}) { + const key = JSON.stringify([locString, opts]); + let dtf = intlDTCache[key]; + if (!dtf) { + dtf = new Intl.DateTimeFormat(locString, opts); + intlDTCache[key] = dtf; + } + return dtf; +} +var intlNumCache = {}; +function getCachedINF(locString, opts = {}) { + const key = JSON.stringify([locString, opts]); + let inf = intlNumCache[key]; + if (!inf) { + inf = new Intl.NumberFormat(locString, opts); + intlNumCache[key] = inf; + } + return inf; +} +var intlRelCache = {}; +function getCachedRTF(locString, opts = {}) { + const _a = opts, { base } = _a, cacheKeyOpts = __objRest(_a, ["base"]); + const key = JSON.stringify([locString, cacheKeyOpts]); + let inf = intlRelCache[key]; + if (!inf) { + inf = new Intl.RelativeTimeFormat(locString, opts); + intlRelCache[key] = inf; + } + return inf; +} +var sysLocaleCache = null; +function systemLocale() { + if (sysLocaleCache) { + return sysLocaleCache; + } else { + sysLocaleCache = new Intl.DateTimeFormat().resolvedOptions().locale; + return sysLocaleCache; + } +} +function parseLocaleString(localeStr) { + const uIndex = localeStr.indexOf("-u-"); + if (uIndex === -1) { + return [localeStr]; + } else { + let options; + const smaller = localeStr.substring(0, uIndex); + try { + options = getCachedDTF(localeStr).resolvedOptions(); + } catch (e3) { + options = getCachedDTF(smaller).resolvedOptions(); + } + const { numberingSystem, calendar } = options; + return [smaller, numberingSystem, calendar]; + } +} +function intlConfigString(localeStr, numberingSystem, outputCalendar) { + if (outputCalendar || numberingSystem) { + localeStr += "-u"; + if (outputCalendar) { + localeStr += `-ca-${outputCalendar}`; + } + if (numberingSystem) { + localeStr += `-nu-${numberingSystem}`; + } + return localeStr; + } else { + return localeStr; + } +} +function mapMonths(f3) { + const ms = []; + for (let i3 = 1; i3 <= 12; i3++) { + const dt = DateTime.utc(2016, i3, 1); + ms.push(f3(dt)); + } + return ms; +} +function mapWeekdays(f3) { + const ms = []; + for (let i3 = 1; i3 <= 7; i3++) { + const dt = DateTime.utc(2016, 11, 13 + i3); + ms.push(f3(dt)); + } + return ms; +} +function listStuff(loc, length, defaultOK, englishFn, intlFn) { + const mode = loc.listingMode(defaultOK); + if (mode === "error") { + return null; + } else if (mode === "en") { + return englishFn(length); + } else { + return intlFn(length); + } +} +function supportsFastNumbers(loc) { + if (loc.numberingSystem && loc.numberingSystem !== "latn") { + return false; + } else { + return loc.numberingSystem === "latn" || !loc.locale || loc.locale.startsWith("en") || new Intl.DateTimeFormat(loc.intl).resolvedOptions().numberingSystem === "latn"; + } +} +var PolyNumberFormatter = class { + constructor(intl, forceSimple, opts) { + this.padTo = opts.padTo || 0; + this.floor = opts.floor || false; + const _a = opts, { padTo, floor } = _a, otherOpts = __objRest(_a, ["padTo", "floor"]); + if (!forceSimple || Object.keys(otherOpts).length > 0) { + const intlOpts = __spreadValues({ useGrouping: false }, opts); + if (opts.padTo > 0) + intlOpts.minimumIntegerDigits = opts.padTo; + this.inf = getCachedINF(intl, intlOpts); + } + } + format(i3) { + if (this.inf) { + const fixed = this.floor ? Math.floor(i3) : i3; + return this.inf.format(fixed); + } else { + const fixed = this.floor ? Math.floor(i3) : roundTo(i3, 3); + return padStart2(fixed, this.padTo); + } + } +}; +var PolyDateFormatter = class { + constructor(dt, intl, opts) { + this.opts = opts; + let z3; + if (dt.zone.isUniversal) { + const gmtOffset = -1 * (dt.offset / 60); + const offsetZ = gmtOffset >= 0 ? `Etc/GMT+${gmtOffset}` : `Etc/GMT${gmtOffset}`; + if (dt.offset !== 0 && IANAZone.create(offsetZ).valid) { + z3 = offsetZ; + this.dt = dt; + } else { + z3 = "UTC"; + if (opts.timeZoneName) { + this.dt = dt; + } else { + this.dt = dt.offset === 0 ? dt : DateTime.fromMillis(dt.ts + dt.offset * 60 * 1e3); + } + } + } else if (dt.zone.type === "system") { + this.dt = dt; + } else { + this.dt = dt; + z3 = dt.zone.name; + } + const intlOpts = __spreadValues({}, this.opts); + if (z3) { + intlOpts.timeZone = z3; + } + this.dtf = getCachedDTF(intl, intlOpts); + } + format() { + return this.dtf.format(this.dt.toJSDate()); + } + formatToParts() { + return this.dtf.formatToParts(this.dt.toJSDate()); + } + resolvedOptions() { + return this.dtf.resolvedOptions(); + } +}; +var PolyRelFormatter = class { + constructor(intl, isEnglish, opts) { + this.opts = __spreadValues({ style: "long" }, opts); + if (!isEnglish && hasRelative()) { + this.rtf = getCachedRTF(intl, opts); + } + } + format(count, unit) { + if (this.rtf) { + return this.rtf.format(count, unit); + } else { + return formatRelativeTime(unit, count, this.opts.numeric, this.opts.style !== "long"); + } + } + formatToParts(count, unit) { + if (this.rtf) { + return this.rtf.formatToParts(count, unit); + } else { + return []; + } + } +}; +var Locale = class { + static fromOpts(opts) { + return Locale.create(opts.locale, opts.numberingSystem, opts.outputCalendar, opts.defaultToEN); + } + static create(locale, numberingSystem, outputCalendar, defaultToEN = false) { + const specifiedLocale = locale || Settings.defaultLocale; + const localeR = specifiedLocale || (defaultToEN ? "en-US" : systemLocale()); + const numberingSystemR = numberingSystem || Settings.defaultNumberingSystem; + const outputCalendarR = outputCalendar || Settings.defaultOutputCalendar; + return new Locale(localeR, numberingSystemR, outputCalendarR, specifiedLocale); + } + static resetCache() { + sysLocaleCache = null; + intlDTCache = {}; + intlNumCache = {}; + intlRelCache = {}; + } + static fromObject({ locale, numberingSystem, outputCalendar } = {}) { + return Locale.create(locale, numberingSystem, outputCalendar); + } + constructor(locale, numbering, outputCalendar, specifiedLocale) { + const [parsedLocale, parsedNumberingSystem, parsedOutputCalendar] = parseLocaleString(locale); + this.locale = parsedLocale; + this.numberingSystem = numbering || parsedNumberingSystem || null; + this.outputCalendar = outputCalendar || parsedOutputCalendar || null; + this.intl = intlConfigString(this.locale, this.numberingSystem, this.outputCalendar); + this.weekdaysCache = { format: {}, standalone: {} }; + this.monthsCache = { format: {}, standalone: {} }; + this.meridiemCache = null; + this.eraCache = {}; + this.specifiedLocale = specifiedLocale; + this.fastNumbersCached = null; + } + get fastNumbers() { + if (this.fastNumbersCached == null) { + this.fastNumbersCached = supportsFastNumbers(this); + } + return this.fastNumbersCached; + } + listingMode() { + const isActuallyEn = this.isEnglish(); + const hasNoWeirdness = (this.numberingSystem === null || this.numberingSystem === "latn") && (this.outputCalendar === null || this.outputCalendar === "gregory"); + return isActuallyEn && hasNoWeirdness ? "en" : "intl"; + } + clone(alts) { + if (!alts || Object.getOwnPropertyNames(alts).length === 0) { + return this; + } else { + return Locale.create(alts.locale || this.specifiedLocale, alts.numberingSystem || this.numberingSystem, alts.outputCalendar || this.outputCalendar, alts.defaultToEN || false); + } + } + redefaultToEN(alts = {}) { + return this.clone(__spreadProps(__spreadValues({}, alts), { defaultToEN: true })); + } + redefaultToSystem(alts = {}) { + return this.clone(__spreadProps(__spreadValues({}, alts), { defaultToEN: false })); + } + months(length, format = false, defaultOK = true) { + return listStuff(this, length, defaultOK, months, () => { + const intl = format ? { month: length, day: "numeric" } : { month: length }, formatStr = format ? "format" : "standalone"; + if (!this.monthsCache[formatStr][length]) { + this.monthsCache[formatStr][length] = mapMonths((dt) => this.extract(dt, intl, "month")); + } + return this.monthsCache[formatStr][length]; + }); + } + weekdays(length, format = false, defaultOK = true) { + return listStuff(this, length, defaultOK, weekdays, () => { + const intl = format ? { weekday: length, year: "numeric", month: "long", day: "numeric" } : { weekday: length }, formatStr = format ? "format" : "standalone"; + if (!this.weekdaysCache[formatStr][length]) { + this.weekdaysCache[formatStr][length] = mapWeekdays((dt) => this.extract(dt, intl, "weekday")); + } + return this.weekdaysCache[formatStr][length]; + }); + } + meridiems(defaultOK = true) { + return listStuff(this, void 0, defaultOK, () => meridiems, () => { + if (!this.meridiemCache) { + const intl = { hour: "numeric", hourCycle: "h12" }; + this.meridiemCache = [DateTime.utc(2016, 11, 13, 9), DateTime.utc(2016, 11, 13, 19)].map((dt) => this.extract(dt, intl, "dayperiod")); + } + return this.meridiemCache; + }); + } + eras(length, defaultOK = true) { + return listStuff(this, length, defaultOK, eras, () => { + const intl = { era: length }; + if (!this.eraCache[length]) { + this.eraCache[length] = [DateTime.utc(-40, 1, 1), DateTime.utc(2017, 1, 1)].map((dt) => this.extract(dt, intl, "era")); + } + return this.eraCache[length]; + }); + } + extract(dt, intlOpts, field) { + const df = this.dtFormatter(dt, intlOpts), results = df.formatToParts(), matching = results.find((m3) => m3.type.toLowerCase() === field); + return matching ? matching.value : null; + } + numberFormatter(opts = {}) { + return new PolyNumberFormatter(this.intl, opts.forceSimple || this.fastNumbers, opts); + } + dtFormatter(dt, intlOpts = {}) { + return new PolyDateFormatter(dt, this.intl, intlOpts); + } + relFormatter(opts = {}) { + return new PolyRelFormatter(this.intl, this.isEnglish(), opts); + } + listFormatter(opts = {}) { + return getCachedLF(this.intl, opts); + } + isEnglish() { + return this.locale === "en" || this.locale.toLowerCase() === "en-us" || new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us"); + } + equals(other) { + return this.locale === other.locale && this.numberingSystem === other.numberingSystem && this.outputCalendar === other.outputCalendar; + } +}; + +// node_modules/luxon/src/impl/regexParser.js +function combineRegexes(...regexes) { + const full = regexes.reduce((f3, r3) => f3 + r3.source, ""); + return RegExp(`^${full}$`); +} +function combineExtractors(...extractors) { + return (m3) => extractors.reduce(([mergedVals, mergedZone, cursor], ex) => { + const [val, zone, next] = ex(m3, cursor); + return [__spreadValues(__spreadValues({}, mergedVals), val), zone || mergedZone, next]; + }, [{}, null, 1]).slice(0, 2); +} +function parse3(s4, ...patterns) { + if (s4 == null) { + return [null, null]; + } + for (const [regex, extractor] of patterns) { + const m3 = regex.exec(s4); + if (m3) { + return extractor(m3); + } + } + return [null, null]; +} +function simpleParse(...keys) { + return (match2, cursor) => { + const ret = {}; + let i3; + for (i3 = 0; i3 < keys.length; i3++) { + ret[keys[i3]] = parseInteger(match2[cursor + i3]); + } + return [ret, null, cursor + i3]; + }; +} +var offsetRegex = /(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/; +var isoExtendedZone = `(?:${offsetRegex.source}?(?:\\[(${ianaRegex.source})\\])?)?`; +var isoTimeBaseRegex = /(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/; +var isoTimeRegex = RegExp(`${isoTimeBaseRegex.source}${isoExtendedZone}`); +var isoTimeExtensionRegex = RegExp(`(?:T${isoTimeRegex.source})?`); +var isoYmdRegex = /([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/; +var isoWeekRegex = /(\d{4})-?W(\d\d)(?:-?(\d))?/; +var isoOrdinalRegex = /(\d{4})-?(\d{3})/; +var extractISOWeekData = simpleParse("weekYear", "weekNumber", "weekDay"); +var extractISOOrdinalData = simpleParse("year", "ordinal"); +var sqlYmdRegex = /(\d{4})-(\d\d)-(\d\d)/; +var sqlTimeRegex = RegExp(`${isoTimeBaseRegex.source} ?(?:${offsetRegex.source}|(${ianaRegex.source}))?`); +var sqlTimeExtensionRegex = RegExp(`(?: ${sqlTimeRegex.source})?`); +function int(match2, pos, fallback) { + const m3 = match2[pos]; + return isUndefined(m3) ? fallback : parseInteger(m3); +} +function extractISOYmd(match2, cursor) { + const item = { + year: int(match2, cursor), + month: int(match2, cursor + 1, 1), + day: int(match2, cursor + 2, 1) + }; + return [item, null, cursor + 3]; +} +function extractISOTime(match2, cursor) { + const item = { + hours: int(match2, cursor, 0), + minutes: int(match2, cursor + 1, 0), + seconds: int(match2, cursor + 2, 0), + milliseconds: parseMillis(match2[cursor + 3]) + }; + return [item, null, cursor + 4]; +} +function extractISOOffset(match2, cursor) { + const local = !match2[cursor] && !match2[cursor + 1], fullOffset = signedOffset(match2[cursor + 1], match2[cursor + 2]), zone = local ? null : FixedOffsetZone.instance(fullOffset); + return [{}, zone, cursor + 3]; +} +function extractIANAZone(match2, cursor) { + const zone = match2[cursor] ? IANAZone.create(match2[cursor]) : null; + return [{}, zone, cursor + 1]; +} +var isoTimeOnly = RegExp(`^T?${isoTimeBaseRegex.source}$`); +var isoDuration = /^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/; +function extractISODuration(match2) { + const [s4, yearStr, monthStr, weekStr, dayStr, hourStr, minuteStr, secondStr, millisecondsStr] = match2; + const hasNegativePrefix = s4[0] === "-"; + const negativeSeconds = secondStr && secondStr[0] === "-"; + const maybeNegate = (num, force = false) => num !== void 0 && (force || num && hasNegativePrefix) ? -num : num; + return [ + { + years: maybeNegate(parseFloating(yearStr)), + months: maybeNegate(parseFloating(monthStr)), + weeks: maybeNegate(parseFloating(weekStr)), + days: maybeNegate(parseFloating(dayStr)), + hours: maybeNegate(parseFloating(hourStr)), + minutes: maybeNegate(parseFloating(minuteStr)), + seconds: maybeNegate(parseFloating(secondStr), secondStr === "-0"), + milliseconds: maybeNegate(parseMillis(millisecondsStr), negativeSeconds) + } + ]; +} +var obsOffsets = { + 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 fromStrings(weekdayStr, yearStr, monthStr, dayStr, hourStr, minuteStr, secondStr) { + const result = { + year: yearStr.length === 2 ? untruncateYear(parseInteger(yearStr)) : parseInteger(yearStr), + month: monthsShort.indexOf(monthStr) + 1, + day: parseInteger(dayStr), + hour: parseInteger(hourStr), + minute: parseInteger(minuteStr) + }; + if (secondStr) + result.second = parseInteger(secondStr); + if (weekdayStr) { + result.weekday = weekdayStr.length > 3 ? weekdaysLong.indexOf(weekdayStr) + 1 : weekdaysShort.indexOf(weekdayStr) + 1; + } + return result; +} +var rfc2822 = /^(?:(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\d)(\d\d)))$/; +function extractRFC2822(match2) { + const [ + , + weekdayStr, + dayStr, + monthStr, + yearStr, + hourStr, + minuteStr, + secondStr, + obsOffset, + milOffset, + offHourStr, + offMinuteStr + ] = match2, result = fromStrings(weekdayStr, yearStr, monthStr, dayStr, hourStr, minuteStr, secondStr); + let offset2; + if (obsOffset) { + offset2 = obsOffsets[obsOffset]; + } else if (milOffset) { + offset2 = 0; + } else { + offset2 = signedOffset(offHourStr, offMinuteStr); + } + return [result, new FixedOffsetZone(offset2)]; +} +function preprocessRFC2822(s4) { + return s4.replace(/\([^)]*\)|[\n\t]/g, " ").replace(/(\s\s+)/g, " ").trim(); +} +var rfc1123 = /^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/; +var rfc850 = /^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/; +var ascii = /^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/; +function extractRFC1123Or850(match2) { + const [, weekdayStr, dayStr, monthStr, yearStr, hourStr, minuteStr, secondStr] = match2, result = fromStrings(weekdayStr, yearStr, monthStr, dayStr, hourStr, minuteStr, secondStr); + return [result, FixedOffsetZone.utcInstance]; +} +function extractASCII(match2) { + const [, weekdayStr, monthStr, dayStr, hourStr, minuteStr, secondStr, yearStr] = match2, result = fromStrings(weekdayStr, yearStr, monthStr, dayStr, hourStr, minuteStr, secondStr); + return [result, FixedOffsetZone.utcInstance]; +} +var isoYmdWithTimeExtensionRegex = combineRegexes(isoYmdRegex, isoTimeExtensionRegex); +var isoWeekWithTimeExtensionRegex = combineRegexes(isoWeekRegex, isoTimeExtensionRegex); +var isoOrdinalWithTimeExtensionRegex = combineRegexes(isoOrdinalRegex, isoTimeExtensionRegex); +var isoTimeCombinedRegex = combineRegexes(isoTimeRegex); +var extractISOYmdTimeAndOffset = combineExtractors(extractISOYmd, extractISOTime, extractISOOffset, extractIANAZone); +var extractISOWeekTimeAndOffset = combineExtractors(extractISOWeekData, extractISOTime, extractISOOffset, extractIANAZone); +var extractISOOrdinalDateAndTime = combineExtractors(extractISOOrdinalData, extractISOTime, extractISOOffset, extractIANAZone); +var extractISOTimeAndOffset = combineExtractors(extractISOTime, extractISOOffset, extractIANAZone); +function parseISODate(s4) { + return parse3(s4, [isoYmdWithTimeExtensionRegex, extractISOYmdTimeAndOffset], [isoWeekWithTimeExtensionRegex, extractISOWeekTimeAndOffset], [isoOrdinalWithTimeExtensionRegex, extractISOOrdinalDateAndTime], [isoTimeCombinedRegex, extractISOTimeAndOffset]); +} +function parseRFC2822Date(s4) { + return parse3(preprocessRFC2822(s4), [rfc2822, extractRFC2822]); +} +function parseHTTPDate(s4) { + return parse3(s4, [rfc1123, extractRFC1123Or850], [rfc850, extractRFC1123Or850], [ascii, extractASCII]); +} +function parseISODuration(s4) { + return parse3(s4, [isoDuration, extractISODuration]); +} +var extractISOTimeOnly = combineExtractors(extractISOTime); +function parseISOTimeOnly(s4) { + return parse3(s4, [isoTimeOnly, extractISOTimeOnly]); +} +var sqlYmdWithTimeExtensionRegex = combineRegexes(sqlYmdRegex, sqlTimeExtensionRegex); +var sqlTimeCombinedRegex = combineRegexes(sqlTimeRegex); +var extractISOTimeOffsetAndIANAZone = combineExtractors(extractISOTime, extractISOOffset, extractIANAZone); +function parseSQL(s4) { + return parse3(s4, [sqlYmdWithTimeExtensionRegex, extractISOYmdTimeAndOffset], [sqlTimeCombinedRegex, extractISOTimeOffsetAndIANAZone]); +} + +// node_modules/luxon/src/duration.js +var INVALID = "Invalid Duration"; +var lowOrderMatrix = { + weeks: { + days: 7, + hours: 7 * 24, + minutes: 7 * 24 * 60, + seconds: 7 * 24 * 60 * 60, + milliseconds: 7 * 24 * 60 * 60 * 1e3 + }, + days: { + hours: 24, + minutes: 24 * 60, + seconds: 24 * 60 * 60, + milliseconds: 24 * 60 * 60 * 1e3 + }, + hours: { minutes: 60, seconds: 60 * 60, milliseconds: 60 * 60 * 1e3 }, + minutes: { seconds: 60, milliseconds: 60 * 1e3 }, + seconds: { milliseconds: 1e3 } +}; +var casualMatrix = __spreadValues({ + years: { + quarters: 4, + months: 12, + weeks: 52, + days: 365, + hours: 365 * 24, + minutes: 365 * 24 * 60, + seconds: 365 * 24 * 60 * 60, + milliseconds: 365 * 24 * 60 * 60 * 1e3 + }, + quarters: { + months: 3, + weeks: 13, + days: 91, + hours: 91 * 24, + minutes: 91 * 24 * 60, + seconds: 91 * 24 * 60 * 60, + milliseconds: 91 * 24 * 60 * 60 * 1e3 + }, + months: { + weeks: 4, + days: 30, + hours: 30 * 24, + minutes: 30 * 24 * 60, + seconds: 30 * 24 * 60 * 60, + milliseconds: 30 * 24 * 60 * 60 * 1e3 + } +}, lowOrderMatrix); +var daysInYearAccurate = 146097 / 400; +var daysInMonthAccurate = 146097 / 4800; +var accurateMatrix = __spreadValues({ + years: { + quarters: 4, + months: 12, + weeks: daysInYearAccurate / 7, + days: daysInYearAccurate, + hours: daysInYearAccurate * 24, + minutes: daysInYearAccurate * 24 * 60, + seconds: daysInYearAccurate * 24 * 60 * 60, + milliseconds: daysInYearAccurate * 24 * 60 * 60 * 1e3 + }, + quarters: { + months: 3, + weeks: daysInYearAccurate / 28, + days: daysInYearAccurate / 4, + hours: daysInYearAccurate * 24 / 4, + minutes: daysInYearAccurate * 24 * 60 / 4, + seconds: daysInYearAccurate * 24 * 60 * 60 / 4, + milliseconds: daysInYearAccurate * 24 * 60 * 60 * 1e3 / 4 + }, + months: { + weeks: daysInMonthAccurate / 7, + days: daysInMonthAccurate, + hours: daysInMonthAccurate * 24, + minutes: daysInMonthAccurate * 24 * 60, + seconds: daysInMonthAccurate * 24 * 60 * 60, + milliseconds: daysInMonthAccurate * 24 * 60 * 60 * 1e3 + } +}, lowOrderMatrix); +var orderedUnits = [ + "years", + "quarters", + "months", + "weeks", + "days", + "hours", + "minutes", + "seconds", + "milliseconds" +]; +var reverseUnits = orderedUnits.slice(0).reverse(); +function clone(dur, alts, clear = false) { + const conf = { + values: clear ? alts.values : __spreadValues(__spreadValues({}, dur.values), alts.values || {}), + loc: dur.loc.clone(alts.loc), + conversionAccuracy: alts.conversionAccuracy || dur.conversionAccuracy + }; + return new Duration(conf); +} +function antiTrunc(n3) { + return n3 < 0 ? Math.floor(n3) : Math.ceil(n3); +} +function convert(matrix, fromMap, fromUnit, toMap, toUnit) { + const conv = matrix[toUnit][fromUnit], raw = fromMap[fromUnit] / conv, sameSign = Math.sign(raw) === Math.sign(toMap[toUnit]), added = !sameSign && toMap[toUnit] !== 0 && Math.abs(raw) <= 1 ? antiTrunc(raw) : Math.trunc(raw); + toMap[toUnit] += added; + fromMap[fromUnit] -= added * conv; +} +function normalizeValues(matrix, vals) { + reverseUnits.reduce((previous, current) => { + if (!isUndefined(vals[current])) { + if (previous) { + convert(matrix, vals, previous, vals, current); + } + return current; + } else { + return previous; + } + }, null); +} +var Duration = class { + constructor(config2) { + const accurate = config2.conversionAccuracy === "longterm" || false; + this.values = config2.values; + this.loc = config2.loc || Locale.create(); + this.conversionAccuracy = accurate ? "longterm" : "casual"; + this.invalid = config2.invalid || null; + this.matrix = accurate ? accurateMatrix : casualMatrix; + this.isLuxonDuration = true; + } + static fromMillis(count, opts) { + return Duration.fromObject({ milliseconds: count }, opts); + } + static fromObject(obj, opts = {}) { + if (obj == null || typeof obj !== "object") { + throw new InvalidArgumentError(`Duration.fromObject: argument expected to be an object, got ${obj === null ? "null" : typeof obj}`); + } + return new Duration({ + values: normalizeObject(obj, Duration.normalizeUnit), + loc: Locale.fromObject(opts), + conversionAccuracy: opts.conversionAccuracy + }); + } + static fromDurationLike(durationLike) { + if (isNumber(durationLike)) { + return Duration.fromMillis(durationLike); + } else if (Duration.isDuration(durationLike)) { + return durationLike; + } else if (typeof durationLike === "object") { + return Duration.fromObject(durationLike); + } else { + throw new InvalidArgumentError(`Unknown duration argument ${durationLike} of type ${typeof durationLike}`); + } + } + static fromISO(text, opts) { + const [parsed] = parseISODuration(text); + if (parsed) { + return Duration.fromObject(parsed, opts); + } else { + return Duration.invalid("unparsable", `the input "${text}" can't be parsed as ISO 8601`); + } + } + static fromISOTime(text, opts) { + const [parsed] = parseISOTimeOnly(text); + if (parsed) { + return Duration.fromObject(parsed, opts); + } else { + return Duration.invalid("unparsable", `the input "${text}" can't be parsed as ISO 8601`); + } + } + static invalid(reason, explanation = null) { + if (!reason) { + throw new InvalidArgumentError("need to specify a reason the Duration is invalid"); + } + const invalid = reason instanceof Invalid ? reason : new Invalid(reason, explanation); + if (Settings.throwOnInvalid) { + throw new InvalidDurationError(invalid); + } else { + return new Duration({ invalid }); + } + } + static normalizeUnit(unit) { + const normalized = { + year: "years", + years: "years", + quarter: "quarters", + quarters: "quarters", + month: "months", + months: "months", + week: "weeks", + weeks: "weeks", + day: "days", + days: "days", + hour: "hours", + hours: "hours", + minute: "minutes", + minutes: "minutes", + second: "seconds", + seconds: "seconds", + millisecond: "milliseconds", + milliseconds: "milliseconds" + }[unit ? unit.toLowerCase() : unit]; + if (!normalized) + throw new InvalidUnitError(unit); + return normalized; + } + static isDuration(o2) { + return o2 && o2.isLuxonDuration || false; + } + get locale() { + return this.isValid ? this.loc.locale : null; + } + get numberingSystem() { + return this.isValid ? this.loc.numberingSystem : null; + } + toFormat(fmt, opts = {}) { + const fmtOpts = __spreadProps(__spreadValues({}, opts), { + floor: opts.round !== false && opts.floor !== false + }); + return this.isValid ? Formatter.create(this.loc, fmtOpts).formatDurationFromString(this, fmt) : INVALID; + } + toHuman(opts = {}) { + const l4 = orderedUnits.map((unit) => { + const val = this.values[unit]; + if (isUndefined(val)) { + return null; + } + return this.loc.numberFormatter(__spreadProps(__spreadValues({ style: "unit", unitDisplay: "long" }, opts), { unit: unit.slice(0, -1) })).format(val); + }).filter((n3) => n3); + return this.loc.listFormatter(__spreadValues({ type: "conjunction", style: opts.listStyle || "narrow" }, opts)).format(l4); + } + toObject() { + if (!this.isValid) + return {}; + return __spreadValues({}, this.values); + } + toISO() { + if (!this.isValid) + return null; + let s4 = "P"; + if (this.years !== 0) + s4 += this.years + "Y"; + if (this.months !== 0 || this.quarters !== 0) + s4 += this.months + this.quarters * 3 + "M"; + if (this.weeks !== 0) + s4 += this.weeks + "W"; + if (this.days !== 0) + s4 += this.days + "D"; + if (this.hours !== 0 || this.minutes !== 0 || this.seconds !== 0 || this.milliseconds !== 0) + s4 += "T"; + if (this.hours !== 0) + s4 += this.hours + "H"; + if (this.minutes !== 0) + s4 += this.minutes + "M"; + if (this.seconds !== 0 || this.milliseconds !== 0) + s4 += roundTo(this.seconds + this.milliseconds / 1e3, 3) + "S"; + if (s4 === "P") + s4 += "T0S"; + return s4; + } + toISOTime(opts = {}) { + if (!this.isValid) + return null; + const millis = this.toMillis(); + if (millis < 0 || millis >= 864e5) + return null; + opts = __spreadValues({ + suppressMilliseconds: false, + suppressSeconds: false, + includePrefix: false, + format: "extended" + }, opts); + const value = this.shiftTo("hours", "minutes", "seconds", "milliseconds"); + let fmt = opts.format === "basic" ? "hhmm" : "hh:mm"; + if (!opts.suppressSeconds || value.seconds !== 0 || value.milliseconds !== 0) { + fmt += opts.format === "basic" ? "ss" : ":ss"; + if (!opts.suppressMilliseconds || value.milliseconds !== 0) { + fmt += ".SSS"; + } + } + let str = value.toFormat(fmt); + if (opts.includePrefix) { + str = "T" + str; + } + return str; + } + toJSON() { + return this.toISO(); + } + toString() { + return this.toISO(); + } + toMillis() { + return this.as("milliseconds"); + } + valueOf() { + return this.toMillis(); + } + plus(duration) { + if (!this.isValid) + return this; + const dur = Duration.fromDurationLike(duration), result = {}; + for (const k3 of orderedUnits) { + if (hasOwnProperty2(dur.values, k3) || hasOwnProperty2(this.values, k3)) { + result[k3] = dur.get(k3) + this.get(k3); + } + } + return clone(this, { values: result }, true); + } + minus(duration) { + if (!this.isValid) + return this; + const dur = Duration.fromDurationLike(duration); + return this.plus(dur.negate()); + } + mapUnits(fn) { + if (!this.isValid) + return this; + const result = {}; + for (const k3 of Object.keys(this.values)) { + result[k3] = asNumber(fn(this.values[k3], k3)); + } + return clone(this, { values: result }, true); + } + get(unit) { + return this[Duration.normalizeUnit(unit)]; + } + set(values) { + if (!this.isValid) + return this; + const mixed = __spreadValues(__spreadValues({}, this.values), normalizeObject(values, Duration.normalizeUnit)); + return clone(this, { values: mixed }); + } + reconfigure({ locale, numberingSystem, conversionAccuracy } = {}) { + const loc = this.loc.clone({ locale, numberingSystem }), opts = { loc }; + if (conversionAccuracy) { + opts.conversionAccuracy = conversionAccuracy; + } + return clone(this, opts); + } + as(unit) { + return this.isValid ? this.shiftTo(unit).get(unit) : NaN; + } + normalize() { + if (!this.isValid) + return this; + const vals = this.toObject(); + normalizeValues(this.matrix, vals); + return clone(this, { values: vals }, true); + } + shiftTo(...units) { + if (!this.isValid) + return this; + if (units.length === 0) { + return this; + } + units = units.map((u3) => Duration.normalizeUnit(u3)); + const built = {}, accumulated = {}, vals = this.toObject(); + let lastUnit; + for (const k3 of orderedUnits) { + if (units.indexOf(k3) >= 0) { + lastUnit = k3; + let own = 0; + for (const ak in accumulated) { + own += this.matrix[ak][k3] * accumulated[ak]; + accumulated[ak] = 0; + } + if (isNumber(vals[k3])) { + own += vals[k3]; + } + const i3 = Math.trunc(own); + built[k3] = i3; + accumulated[k3] = (own * 1e3 - i3 * 1e3) / 1e3; + for (const down in vals) { + if (orderedUnits.indexOf(down) > orderedUnits.indexOf(k3)) { + convert(this.matrix, vals, down, built, k3); + } + } + } else if (isNumber(vals[k3])) { + accumulated[k3] = vals[k3]; + } + } + for (const key in accumulated) { + if (accumulated[key] !== 0) { + built[lastUnit] += key === lastUnit ? accumulated[key] : accumulated[key] / this.matrix[lastUnit][key]; + } + } + return clone(this, { values: built }, true).normalize(); + } + negate() { + if (!this.isValid) + return this; + const negated = {}; + for (const k3 of Object.keys(this.values)) { + negated[k3] = this.values[k3] === 0 ? 0 : -this.values[k3]; + } + return clone(this, { values: negated }, true); + } + get years() { + return this.isValid ? this.values.years || 0 : NaN; + } + get quarters() { + return this.isValid ? this.values.quarters || 0 : NaN; + } + get months() { + return this.isValid ? this.values.months || 0 : NaN; + } + get weeks() { + return this.isValid ? this.values.weeks || 0 : NaN; + } + get days() { + return this.isValid ? this.values.days || 0 : NaN; + } + get hours() { + return this.isValid ? this.values.hours || 0 : NaN; + } + get minutes() { + return this.isValid ? this.values.minutes || 0 : NaN; + } + get seconds() { + return this.isValid ? this.values.seconds || 0 : NaN; + } + get milliseconds() { + return this.isValid ? this.values.milliseconds || 0 : NaN; + } + get isValid() { + return this.invalid === null; + } + get invalidReason() { + return this.invalid ? this.invalid.reason : null; + } + get invalidExplanation() { + return this.invalid ? this.invalid.explanation : null; + } + equals(other) { + if (!this.isValid || !other.isValid) { + return false; + } + if (!this.loc.equals(other.loc)) { + return false; + } + function eq(v1, v22) { + if (v1 === void 0 || v1 === 0) + return v22 === void 0 || v22 === 0; + return v1 === v22; + } + for (const u3 of orderedUnits) { + if (!eq(this.values[u3], other.values[u3])) { + return false; + } + } + return true; + } +}; + +// node_modules/luxon/src/interval.js +var INVALID2 = "Invalid Interval"; +function validateStartEnd(start, end) { + if (!start || !start.isValid) { + return Interval.invalid("missing or invalid start"); + } else if (!end || !end.isValid) { + return Interval.invalid("missing or invalid end"); + } else if (end < start) { + return Interval.invalid("end before start", `The end of an interval must be after its start, but you had start=${start.toISO()} and end=${end.toISO()}`); + } else { + return null; + } +} +var Interval = class { + constructor(config2) { + this.s = config2.start; + this.e = config2.end; + this.invalid = config2.invalid || null; + this.isLuxonInterval = true; + } + static invalid(reason, explanation = null) { + if (!reason) { + throw new InvalidArgumentError("need to specify a reason the Interval is invalid"); + } + const invalid = reason instanceof Invalid ? reason : new Invalid(reason, explanation); + if (Settings.throwOnInvalid) { + throw new InvalidIntervalError(invalid); + } else { + return new Interval({ invalid }); + } + } + static fromDateTimes(start, end) { + const builtStart = friendlyDateTime(start), builtEnd = friendlyDateTime(end); + const validateError = validateStartEnd(builtStart, builtEnd); + if (validateError == null) { + return new Interval({ + start: builtStart, + end: builtEnd + }); + } else { + return validateError; + } + } + static after(start, duration) { + const dur = Duration.fromDurationLike(duration), dt = friendlyDateTime(start); + return Interval.fromDateTimes(dt, dt.plus(dur)); + } + static before(end, duration) { + const dur = Duration.fromDurationLike(duration), dt = friendlyDateTime(end); + return Interval.fromDateTimes(dt.minus(dur), dt); + } + static fromISO(text, opts) { + const [s4, e3] = (text || "").split("/", 2); + if (s4 && e3) { + let start, startIsValid; + try { + start = DateTime.fromISO(s4, opts); + startIsValid = start.isValid; + } catch (e4) { + startIsValid = false; + } + let end, endIsValid; + try { + end = DateTime.fromISO(e3, opts); + endIsValid = end.isValid; + } catch (e4) { + endIsValid = false; + } + if (startIsValid && endIsValid) { + return Interval.fromDateTimes(start, end); + } + if (startIsValid) { + const dur = Duration.fromISO(e3, opts); + if (dur.isValid) { + return Interval.after(start, dur); + } + } else if (endIsValid) { + const dur = Duration.fromISO(s4, opts); + if (dur.isValid) { + return Interval.before(end, dur); + } + } + } + return Interval.invalid("unparsable", `the input "${text}" can't be parsed as ISO 8601`); + } + static isInterval(o2) { + return o2 && o2.isLuxonInterval || false; + } + get start() { + return this.isValid ? this.s : null; + } + get end() { + return this.isValid ? this.e : null; + } + get isValid() { + return this.invalidReason === null; + } + get invalidReason() { + return this.invalid ? this.invalid.reason : null; + } + get invalidExplanation() { + return this.invalid ? this.invalid.explanation : null; + } + length(unit = "milliseconds") { + return this.isValid ? this.toDuration(...[unit]).get(unit) : NaN; + } + count(unit = "milliseconds") { + if (!this.isValid) + return NaN; + const start = this.start.startOf(unit), end = this.end.startOf(unit); + return Math.floor(end.diff(start, unit).get(unit)) + 1; + } + hasSame(unit) { + return this.isValid ? this.isEmpty() || this.e.minus(1).hasSame(this.s, unit) : false; + } + isEmpty() { + return this.s.valueOf() === this.e.valueOf(); + } + isAfter(dateTime) { + if (!this.isValid) + return false; + return this.s > dateTime; + } + isBefore(dateTime) { + if (!this.isValid) + return false; + return this.e <= dateTime; + } + contains(dateTime) { + if (!this.isValid) + return false; + return this.s <= dateTime && this.e > dateTime; + } + set({ start, end } = {}) { + if (!this.isValid) + return this; + return Interval.fromDateTimes(start || this.s, end || this.e); + } + splitAt(...dateTimes) { + if (!this.isValid) + return []; + const sorted = dateTimes.map(friendlyDateTime).filter((d2) => this.contains(d2)).sort(), results = []; + let { s: s4 } = this, i3 = 0; + while (s4 < this.e) { + const added = sorted[i3] || this.e, next = +added > +this.e ? this.e : added; + results.push(Interval.fromDateTimes(s4, next)); + s4 = next; + i3 += 1; + } + return results; + } + splitBy(duration) { + const dur = Duration.fromDurationLike(duration); + if (!this.isValid || !dur.isValid || dur.as("milliseconds") === 0) { + return []; + } + let { s: s4 } = this, idx = 1, next; + const results = []; + while (s4 < this.e) { + const added = this.start.plus(dur.mapUnits((x4) => x4 * idx)); + next = +added > +this.e ? this.e : added; + results.push(Interval.fromDateTimes(s4, next)); + s4 = next; + idx += 1; + } + return results; + } + divideEqually(numberOfParts) { + if (!this.isValid) + return []; + return this.splitBy(this.length() / numberOfParts).slice(0, numberOfParts); + } + overlaps(other) { + return this.e > other.s && this.s < other.e; + } + abutsStart(other) { + if (!this.isValid) + return false; + return +this.e === +other.s; + } + abutsEnd(other) { + if (!this.isValid) + return false; + return +other.e === +this.s; + } + engulfs(other) { + if (!this.isValid) + return false; + return this.s <= other.s && this.e >= other.e; + } + equals(other) { + if (!this.isValid || !other.isValid) { + return false; + } + return this.s.equals(other.s) && this.e.equals(other.e); + } + intersection(other) { + if (!this.isValid) + return this; + const s4 = this.s > other.s ? this.s : other.s, e3 = this.e < other.e ? this.e : other.e; + if (s4 >= e3) { + return null; + } else { + return Interval.fromDateTimes(s4, e3); + } + } + union(other) { + if (!this.isValid) + return this; + const s4 = this.s < other.s ? this.s : other.s, e3 = this.e > other.e ? this.e : other.e; + return Interval.fromDateTimes(s4, e3); + } + static merge(intervals) { + const [found, final] = intervals.sort((a3, b3) => a3.s - b3.s).reduce(([sofar, current], item) => { + if (!current) { + return [sofar, item]; + } else if (current.overlaps(item) || current.abutsStart(item)) { + return [sofar, current.union(item)]; + } else { + return [sofar.concat([current]), item]; + } + }, [[], null]); + if (final) { + found.push(final); + } + return found; + } + static xor(intervals) { + let start = null, currentCount = 0; + const results = [], ends = intervals.map((i3) => [ + { time: i3.s, type: "s" }, + { time: i3.e, type: "e" } + ]), flattened = Array.prototype.concat(...ends), arr = flattened.sort((a3, b3) => a3.time - b3.time); + for (const i3 of arr) { + currentCount += i3.type === "s" ? 1 : -1; + if (currentCount === 1) { + start = i3.time; + } else { + if (start && +start !== +i3.time) { + results.push(Interval.fromDateTimes(start, i3.time)); + } + start = null; + } + } + return Interval.merge(results); + } + difference(...intervals) { + return Interval.xor([this].concat(intervals)).map((i3) => this.intersection(i3)).filter((i3) => i3 && !i3.isEmpty()); + } + toString() { + if (!this.isValid) + return INVALID2; + return `[${this.s.toISO()} \u2013 ${this.e.toISO()})`; + } + toISO(opts) { + if (!this.isValid) + return INVALID2; + return `${this.s.toISO(opts)}/${this.e.toISO(opts)}`; + } + toISODate() { + if (!this.isValid) + return INVALID2; + return `${this.s.toISODate()}/${this.e.toISODate()}`; + } + toISOTime(opts) { + if (!this.isValid) + return INVALID2; + return `${this.s.toISOTime(opts)}/${this.e.toISOTime(opts)}`; + } + toFormat(dateFormat, { separator = " \u2013 " } = {}) { + if (!this.isValid) + return INVALID2; + return `${this.s.toFormat(dateFormat)}${separator}${this.e.toFormat(dateFormat)}`; + } + toDuration(unit, opts) { + if (!this.isValid) { + return Duration.invalid(this.invalidReason); + } + return this.e.diff(this.s, unit, opts); + } + mapEndpoints(mapFn) { + return Interval.fromDateTimes(mapFn(this.s), mapFn(this.e)); + } +}; + +// node_modules/luxon/src/info.js +var Info = class { + static hasDST(zone = Settings.defaultZone) { + const proto = DateTime.now().setZone(zone).set({ month: 12 }); + return !zone.isUniversal && proto.offset !== proto.set({ month: 6 }).offset; + } + static isValidIANAZone(zone) { + return IANAZone.isValidZone(zone); + } + static normalizeZone(input) { + return normalizeZone(input, Settings.defaultZone); + } + static months(length = "long", { locale = null, numberingSystem = null, locObj = null, outputCalendar = "gregory" } = {}) { + return (locObj || Locale.create(locale, numberingSystem, outputCalendar)).months(length); + } + static monthsFormat(length = "long", { locale = null, numberingSystem = null, locObj = null, outputCalendar = "gregory" } = {}) { + return (locObj || Locale.create(locale, numberingSystem, outputCalendar)).months(length, true); + } + static weekdays(length = "long", { locale = null, numberingSystem = null, locObj = null } = {}) { + return (locObj || Locale.create(locale, numberingSystem, null)).weekdays(length); + } + static weekdaysFormat(length = "long", { locale = null, numberingSystem = null, locObj = null } = {}) { + return (locObj || Locale.create(locale, numberingSystem, null)).weekdays(length, true); + } + static meridiems({ locale = null } = {}) { + return Locale.create(locale).meridiems(); + } + static eras(length = "short", { locale = null } = {}) { + return Locale.create(locale, null, "gregory").eras(length); + } + static features() { + return { relative: hasRelative() }; + } +}; + +// node_modules/luxon/src/impl/diff.js +function dayDiff(earlier, later) { + const utcDayStart = (dt) => dt.toUTC(0, { keepLocalTime: true }).startOf("day").valueOf(), ms = utcDayStart(later) - utcDayStart(earlier); + return Math.floor(Duration.fromMillis(ms).as("days")); +} +function highOrderDiffs(cursor, later, units) { + const differs = [ + ["years", (a3, b3) => b3.year - a3.year], + ["quarters", (a3, b3) => b3.quarter - a3.quarter], + ["months", (a3, b3) => b3.month - a3.month + (b3.year - a3.year) * 12], + [ + "weeks", + (a3, b3) => { + const days = dayDiff(a3, b3); + return (days - days % 7) / 7; + } + ], + ["days", dayDiff] + ]; + const results = {}; + let lowestOrder, highWater; + for (const [unit, differ] of differs) { + if (units.indexOf(unit) >= 0) { + lowestOrder = unit; + let delta = differ(cursor, later); + highWater = cursor.plus({ [unit]: delta }); + if (highWater > later) { + cursor = cursor.plus({ [unit]: delta - 1 }); + delta -= 1; + } else { + cursor = highWater; + } + results[unit] = delta; + } + } + return [cursor, results, highWater, lowestOrder]; +} +function diff_default(earlier, later, units, opts) { + let [cursor, results, highWater, lowestOrder] = highOrderDiffs(earlier, later, units); + const remainingMillis = later - cursor; + const lowerOrderUnits = units.filter((u3) => ["hours", "minutes", "seconds", "milliseconds"].indexOf(u3) >= 0); + if (lowerOrderUnits.length === 0) { + if (highWater < later) { + highWater = cursor.plus({ [lowestOrder]: 1 }); + } + if (highWater !== cursor) { + results[lowestOrder] = (results[lowestOrder] || 0) + remainingMillis / (highWater - cursor); + } + } + const duration = Duration.fromObject(results, opts); + if (lowerOrderUnits.length > 0) { + return Duration.fromMillis(remainingMillis, opts).shiftTo(...lowerOrderUnits).plus(duration); + } else { + return duration; + } +} + +// node_modules/luxon/src/impl/digits.js +var numberingSystems = { + arab: "[\u0660-\u0669]", + arabext: "[\u06F0-\u06F9]", + bali: "[\u1B50-\u1B59]", + beng: "[\u09E6-\u09EF]", + deva: "[\u0966-\u096F]", + fullwide: "[\uFF10-\uFF19]", + gujr: "[\u0AE6-\u0AEF]", + hanidec: "[\u3007|\u4E00|\u4E8C|\u4E09|\u56DB|\u4E94|\u516D|\u4E03|\u516B|\u4E5D]", + khmr: "[\u17E0-\u17E9]", + knda: "[\u0CE6-\u0CEF]", + laoo: "[\u0ED0-\u0ED9]", + limb: "[\u1946-\u194F]", + mlym: "[\u0D66-\u0D6F]", + mong: "[\u1810-\u1819]", + mymr: "[\u1040-\u1049]", + orya: "[\u0B66-\u0B6F]", + tamldec: "[\u0BE6-\u0BEF]", + telu: "[\u0C66-\u0C6F]", + thai: "[\u0E50-\u0E59]", + tibt: "[\u0F20-\u0F29]", + latn: "\\d" +}; +var numberingSystemsUTF16 = { + arab: [1632, 1641], + arabext: [1776, 1785], + bali: [6992, 7001], + beng: [2534, 2543], + deva: [2406, 2415], + fullwide: [65296, 65303], + gujr: [2790, 2799], + khmr: [6112, 6121], + knda: [3302, 3311], + laoo: [3792, 3801], + limb: [6470, 6479], + mlym: [3430, 3439], + mong: [6160, 6169], + mymr: [4160, 4169], + orya: [2918, 2927], + tamldec: [3046, 3055], + telu: [3174, 3183], + thai: [3664, 3673], + tibt: [3872, 3881] +}; +var hanidecChars = numberingSystems.hanidec.replace(/[\[|\]]/g, "").split(""); +function parseDigits(str) { + let value = parseInt(str, 10); + if (isNaN(value)) { + value = ""; + for (let i3 = 0; i3 < str.length; i3++) { + const code = str.charCodeAt(i3); + if (str[i3].search(numberingSystems.hanidec) !== -1) { + value += hanidecChars.indexOf(str[i3]); + } else { + for (const key in numberingSystemsUTF16) { + const [min, max] = numberingSystemsUTF16[key]; + if (code >= min && code <= max) { + value += code - min; + } + } + } + } + return parseInt(value, 10); + } else { + return value; + } +} +function digitRegex({ numberingSystem }, append = "") { + return new RegExp(`${numberingSystems[numberingSystem || "latn"]}${append}`); +} + +// node_modules/luxon/src/impl/tokenParser.js +var MISSING_FTP = "missing Intl.DateTimeFormat.formatToParts support"; +function intUnit(regex, post = (i3) => i3) { + return { regex, deser: ([s4]) => post(parseDigits(s4)) }; +} +var NBSP = String.fromCharCode(160); +var spaceOrNBSP = `[ ${NBSP}]`; +var spaceOrNBSPRegExp = new RegExp(spaceOrNBSP, "g"); +function fixListRegex(s4) { + return s4.replace(/\./g, "\\.?").replace(spaceOrNBSPRegExp, spaceOrNBSP); +} +function stripInsensitivities(s4) { + return s4.replace(/\./g, "").replace(spaceOrNBSPRegExp, " ").toLowerCase(); +} +function oneOf(strings, startIndex) { + if (strings === null) { + return null; + } else { + return { + regex: RegExp(strings.map(fixListRegex).join("|")), + deser: ([s4]) => strings.findIndex((i3) => stripInsensitivities(s4) === stripInsensitivities(i3)) + startIndex + }; + } +} +function offset(regex, groups) { + return { regex, deser: ([, h3, m3]) => signedOffset(h3, m3), groups }; +} +function simple(regex) { + return { regex, deser: ([s4]) => s4 }; +} +function escapeToken(value) { + return value.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g, "\\$&"); +} +function unitForToken(token, loc) { + const one = digitRegex(loc), two = digitRegex(loc, "{2}"), three = digitRegex(loc, "{3}"), four = digitRegex(loc, "{4}"), six = digitRegex(loc, "{6}"), oneOrTwo = digitRegex(loc, "{1,2}"), oneToThree = digitRegex(loc, "{1,3}"), oneToSix = digitRegex(loc, "{1,6}"), oneToNine = digitRegex(loc, "{1,9}"), twoToFour = digitRegex(loc, "{2,4}"), fourToSix = digitRegex(loc, "{4,6}"), literal = (t3) => ({ regex: RegExp(escapeToken(t3.val)), deser: ([s4]) => s4, literal: true }), unitate = (t3) => { + if (token.literal) { + return literal(t3); + } + switch (t3.val) { + case "G": + return oneOf(loc.eras("short", false), 0); + case "GG": + return oneOf(loc.eras("long", false), 0); + case "y": + return intUnit(oneToSix); + case "yy": + return intUnit(twoToFour, untruncateYear); + case "yyyy": + return intUnit(four); + case "yyyyy": + return intUnit(fourToSix); + case "yyyyyy": + return intUnit(six); + case "M": + return intUnit(oneOrTwo); + case "MM": + return intUnit(two); + case "MMM": + return oneOf(loc.months("short", true, false), 1); + case "MMMM": + return oneOf(loc.months("long", true, false), 1); + case "L": + return intUnit(oneOrTwo); + case "LL": + return intUnit(two); + case "LLL": + return oneOf(loc.months("short", false, false), 1); + case "LLLL": + return oneOf(loc.months("long", false, false), 1); + case "d": + return intUnit(oneOrTwo); + case "dd": + return intUnit(two); + case "o": + return intUnit(oneToThree); + case "ooo": + return intUnit(three); + case "HH": + return intUnit(two); + case "H": + return intUnit(oneOrTwo); + case "hh": + return intUnit(two); + case "h": + return intUnit(oneOrTwo); + case "mm": + return intUnit(two); + case "m": + return intUnit(oneOrTwo); + case "q": + return intUnit(oneOrTwo); + case "qq": + return intUnit(two); + case "s": + return intUnit(oneOrTwo); + case "ss": + return intUnit(two); + case "S": + return intUnit(oneToThree); + case "SSS": + return intUnit(three); + case "u": + return simple(oneToNine); + case "uu": + return simple(oneOrTwo); + case "uuu": + return intUnit(one); + case "a": + return oneOf(loc.meridiems(), 0); + case "kkkk": + return intUnit(four); + case "kk": + return intUnit(twoToFour, untruncateYear); + case "W": + return intUnit(oneOrTwo); + case "WW": + return intUnit(two); + case "E": + case "c": + return intUnit(one); + case "EEE": + return oneOf(loc.weekdays("short", false, false), 1); + case "EEEE": + return oneOf(loc.weekdays("long", false, false), 1); + case "ccc": + return oneOf(loc.weekdays("short", true, false), 1); + case "cccc": + return oneOf(loc.weekdays("long", true, false), 1); + case "Z": + case "ZZ": + return offset(new RegExp(`([+-]${oneOrTwo.source})(?::(${two.source}))?`), 2); + case "ZZZ": + return offset(new RegExp(`([+-]${oneOrTwo.source})(${two.source})?`), 2); + case "z": + return simple(/[a-z_+-/]{1,256}?/i); + default: + return literal(t3); + } + }; + const unit = unitate(token) || { + invalidReason: MISSING_FTP + }; + unit.token = token; + return unit; +} +var partTypeStyleToTokenVal = { + year: { + "2-digit": "yy", + numeric: "yyyyy" + }, + month: { + numeric: "M", + "2-digit": "MM", + short: "MMM", + long: "MMMM" + }, + day: { + numeric: "d", + "2-digit": "dd" + }, + weekday: { + short: "EEE", + long: "EEEE" + }, + dayperiod: "a", + dayPeriod: "a", + hour: { + numeric: "h", + "2-digit": "hh" + }, + minute: { + numeric: "m", + "2-digit": "mm" + }, + second: { + numeric: "s", + "2-digit": "ss" + } +}; +function tokenForPart(part, locale, formatOpts) { + const { type, value } = part; + if (type === "literal") { + return { + literal: true, + val: value + }; + } + const style = formatOpts[type]; + let val = partTypeStyleToTokenVal[type]; + if (typeof val === "object") { + val = val[style]; + } + if (val) { + return { + literal: false, + val + }; + } + return void 0; +} +function buildRegex(units) { + const re = units.map((u3) => u3.regex).reduce((f3, r3) => `${f3}(${r3.source})`, ""); + return [`^${re}$`, units]; +} +function match(input, regex, handlers) { + const matches = input.match(regex); + if (matches) { + const all = {}; + let matchIndex = 1; + for (const i3 in handlers) { + if (hasOwnProperty2(handlers, i3)) { + const h3 = handlers[i3], groups = h3.groups ? h3.groups + 1 : 1; + if (!h3.literal && h3.token) { + all[h3.token.val[0]] = h3.deser(matches.slice(matchIndex, matchIndex + groups)); + } + matchIndex += groups; + } + } + return [matches, all]; + } else { + return [matches, {}]; + } +} +function dateTimeFromMatches(matches) { + const toField = (token) => { + switch (token) { + case "S": + return "millisecond"; + case "s": + return "second"; + case "m": + return "minute"; + case "h": + case "H": + return "hour"; + case "d": + return "day"; + case "o": + return "ordinal"; + case "L": + case "M": + return "month"; + case "y": + return "year"; + case "E": + case "c": + return "weekday"; + case "W": + return "weekNumber"; + case "k": + return "weekYear"; + case "q": + return "quarter"; + default: + return null; + } + }; + let zone = null; + let specificOffset; + if (!isUndefined(matches.z)) { + zone = IANAZone.create(matches.z); + } + if (!isUndefined(matches.Z)) { + if (!zone) { + zone = new FixedOffsetZone(matches.Z); + } + specificOffset = matches.Z; + } + if (!isUndefined(matches.q)) { + matches.M = (matches.q - 1) * 3 + 1; + } + if (!isUndefined(matches.h)) { + if (matches.h < 12 && matches.a === 1) { + matches.h += 12; + } else if (matches.h === 12 && matches.a === 0) { + matches.h = 0; + } + } + if (matches.G === 0 && matches.y) { + matches.y = -matches.y; + } + if (!isUndefined(matches.u)) { + matches.S = parseMillis(matches.u); + } + const vals = Object.keys(matches).reduce((r3, k3) => { + const f3 = toField(k3); + if (f3) { + r3[f3] = matches[k3]; + } + return r3; + }, {}); + return [vals, zone, specificOffset]; +} +var dummyDateTimeCache = null; +function getDummyDateTime() { + if (!dummyDateTimeCache) { + dummyDateTimeCache = DateTime.fromMillis(1555555555555); + } + return dummyDateTimeCache; +} +function maybeExpandMacroToken(token, locale) { + if (token.literal) { + return token; + } + const formatOpts = Formatter.macroTokenToFormatOpts(token.val); + if (!formatOpts) { + return token; + } + const formatter = Formatter.create(locale, formatOpts); + const parts = formatter.formatDateTimeParts(getDummyDateTime()); + const tokens = parts.map((p3) => tokenForPart(p3, locale, formatOpts)); + if (tokens.includes(void 0)) { + return token; + } + return tokens; +} +function expandMacroTokens(tokens, locale) { + return Array.prototype.concat(...tokens.map((t3) => maybeExpandMacroToken(t3, locale))); +} +function explainFromTokens(locale, input, format) { + const tokens = expandMacroTokens(Formatter.parseFormat(format), locale), units = tokens.map((t3) => unitForToken(t3, locale)), disqualifyingUnit = units.find((t3) => t3.invalidReason); + if (disqualifyingUnit) { + return { input, tokens, invalidReason: disqualifyingUnit.invalidReason }; + } else { + const [regexString, handlers] = buildRegex(units), regex = RegExp(regexString, "i"), [rawMatches, matches] = match(input, regex, handlers), [result, zone, specificOffset] = matches ? dateTimeFromMatches(matches) : [null, null, void 0]; + if (hasOwnProperty2(matches, "a") && hasOwnProperty2(matches, "H")) { + throw new ConflictingSpecificationError("Can't include meridiem when specifying 24-hour format"); + } + return { input, tokens, regex, rawMatches, matches, result, zone, specificOffset }; + } +} +function parseFromTokens(locale, input, format) { + const { result, zone, specificOffset, invalidReason } = explainFromTokens(locale, input, format); + return [result, zone, specificOffset, invalidReason]; +} + +// node_modules/luxon/src/impl/conversions.js +var nonLeapLadder = [0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334]; +var leapLadder = [0, 31, 60, 91, 121, 152, 182, 213, 244, 274, 305, 335]; +function unitOutOfRange(unit, value) { + return new Invalid("unit out of range", `you specified ${value} (of type ${typeof value}) as a ${unit}, which is invalid`); +} +function dayOfWeek(year, month, day) { + const d2 = new Date(Date.UTC(year, month - 1, day)); + if (year < 100 && year >= 0) { + d2.setUTCFullYear(d2.getUTCFullYear() - 1900); + } + const js = d2.getUTCDay(); + return js === 0 ? 7 : js; +} +function computeOrdinal(year, month, day) { + return day + (isLeapYear(year) ? leapLadder : nonLeapLadder)[month - 1]; +} +function uncomputeOrdinal(year, ordinal) { + const table = isLeapYear(year) ? leapLadder : nonLeapLadder, month0 = table.findIndex((i3) => i3 < ordinal), day = ordinal - table[month0]; + return { month: month0 + 1, day }; +} +function gregorianToWeek(gregObj) { + const { year, month, day } = gregObj, ordinal = computeOrdinal(year, month, day), weekday = dayOfWeek(year, month, day); + let weekNumber = Math.floor((ordinal - weekday + 10) / 7), weekYear; + if (weekNumber < 1) { + weekYear = year - 1; + weekNumber = weeksInWeekYear(weekYear); + } else if (weekNumber > weeksInWeekYear(year)) { + weekYear = year + 1; + weekNumber = 1; + } else { + weekYear = year; + } + return __spreadValues({ weekYear, weekNumber, weekday }, timeObject(gregObj)); +} +function weekToGregorian(weekData) { + const { weekYear, weekNumber, weekday } = weekData, weekdayOfJan4 = dayOfWeek(weekYear, 1, 4), yearInDays = daysInYear(weekYear); + let ordinal = weekNumber * 7 + weekday - weekdayOfJan4 - 3, year; + if (ordinal < 1) { + year = weekYear - 1; + ordinal += daysInYear(year); + } else if (ordinal > yearInDays) { + year = weekYear + 1; + ordinal -= daysInYear(weekYear); + } else { + year = weekYear; + } + const { month, day } = uncomputeOrdinal(year, ordinal); + return __spreadValues({ year, month, day }, timeObject(weekData)); +} +function gregorianToOrdinal(gregData) { + const { year, month, day } = gregData; + const ordinal = computeOrdinal(year, month, day); + return __spreadValues({ year, ordinal }, timeObject(gregData)); +} +function ordinalToGregorian(ordinalData) { + const { year, ordinal } = ordinalData; + const { month, day } = uncomputeOrdinal(year, ordinal); + return __spreadValues({ year, month, day }, timeObject(ordinalData)); +} +function hasInvalidWeekData(obj) { + const validYear = isInteger(obj.weekYear), validWeek = integerBetween(obj.weekNumber, 1, weeksInWeekYear(obj.weekYear)), validWeekday = integerBetween(obj.weekday, 1, 7); + if (!validYear) { + return unitOutOfRange("weekYear", obj.weekYear); + } else if (!validWeek) { + return unitOutOfRange("week", obj.week); + } else if (!validWeekday) { + return unitOutOfRange("weekday", obj.weekday); + } else + return false; +} +function hasInvalidOrdinalData(obj) { + const validYear = isInteger(obj.year), validOrdinal = integerBetween(obj.ordinal, 1, daysInYear(obj.year)); + if (!validYear) { + return unitOutOfRange("year", obj.year); + } else if (!validOrdinal) { + return unitOutOfRange("ordinal", obj.ordinal); + } else + return false; +} +function hasInvalidGregorianData(obj) { + const validYear = isInteger(obj.year), validMonth = integerBetween(obj.month, 1, 12), validDay = integerBetween(obj.day, 1, daysInMonth(obj.year, obj.month)); + if (!validYear) { + return unitOutOfRange("year", obj.year); + } else if (!validMonth) { + return unitOutOfRange("month", obj.month); + } else if (!validDay) { + return unitOutOfRange("day", obj.day); + } else + return false; +} +function hasInvalidTimeData(obj) { + const { hour, minute, second, millisecond } = obj; + const validHour = integerBetween(hour, 0, 23) || hour === 24 && minute === 0 && second === 0 && millisecond === 0, validMinute = integerBetween(minute, 0, 59), validSecond = integerBetween(second, 0, 59), validMillisecond = integerBetween(millisecond, 0, 999); + if (!validHour) { + return unitOutOfRange("hour", hour); + } else if (!validMinute) { + return unitOutOfRange("minute", minute); + } else if (!validSecond) { + return unitOutOfRange("second", second); + } else if (!validMillisecond) { + return unitOutOfRange("millisecond", millisecond); + } else + return false; +} + +// node_modules/luxon/src/datetime.js +var INVALID3 = "Invalid DateTime"; +var MAX_DATE = 864e13; +function unsupportedZone(zone) { + return new Invalid("unsupported zone", `the zone "${zone.name}" is not supported`); +} +function possiblyCachedWeekData(dt) { + if (dt.weekData === null) { + dt.weekData = gregorianToWeek(dt.c); + } + return dt.weekData; +} +function clone2(inst, alts) { + const current = { + ts: inst.ts, + zone: inst.zone, + c: inst.c, + o: inst.o, + loc: inst.loc, + invalid: inst.invalid + }; + return new DateTime(__spreadProps(__spreadValues(__spreadValues({}, current), alts), { old: current })); +} +function fixOffset(localTS, o2, tz) { + let utcGuess = localTS - o2 * 60 * 1e3; + const o22 = tz.offset(utcGuess); + if (o2 === o22) { + return [utcGuess, o2]; + } + utcGuess -= (o22 - o2) * 60 * 1e3; + const o3 = tz.offset(utcGuess); + if (o22 === o3) { + return [utcGuess, o22]; + } + return [localTS - Math.min(o22, o3) * 60 * 1e3, Math.max(o22, o3)]; +} +function tsToObj(ts, offset2) { + ts += offset2 * 60 * 1e3; + const d2 = new Date(ts); + return { + year: d2.getUTCFullYear(), + month: d2.getUTCMonth() + 1, + day: d2.getUTCDate(), + hour: d2.getUTCHours(), + minute: d2.getUTCMinutes(), + second: d2.getUTCSeconds(), + millisecond: d2.getUTCMilliseconds() + }; +} +function objToTS(obj, offset2, zone) { + return fixOffset(objToLocalTS(obj), offset2, zone); +} +function adjustTime(inst, dur) { + const oPre = inst.o, year = inst.c.year + Math.trunc(dur.years), month = inst.c.month + Math.trunc(dur.months) + Math.trunc(dur.quarters) * 3, c3 = __spreadProps(__spreadValues({}, inst.c), { + year, + month, + day: Math.min(inst.c.day, daysInMonth(year, month)) + Math.trunc(dur.days) + Math.trunc(dur.weeks) * 7 + }), millisToAdd = Duration.fromObject({ + years: dur.years - Math.trunc(dur.years), + quarters: dur.quarters - Math.trunc(dur.quarters), + months: dur.months - Math.trunc(dur.months), + weeks: dur.weeks - Math.trunc(dur.weeks), + days: dur.days - Math.trunc(dur.days), + hours: dur.hours, + minutes: dur.minutes, + seconds: dur.seconds, + milliseconds: dur.milliseconds + }).as("milliseconds"), localTS = objToLocalTS(c3); + let [ts, o2] = fixOffset(localTS, oPre, inst.zone); + if (millisToAdd !== 0) { + ts += millisToAdd; + o2 = inst.zone.offset(ts); + } + return { ts, o: o2 }; +} +function parseDataToDateTime(parsed, parsedZone, opts, format, text, specificOffset) { + const { setZone, zone } = opts; + if (parsed && Object.keys(parsed).length !== 0) { + const interpretationZone = parsedZone || zone, inst = DateTime.fromObject(parsed, __spreadProps(__spreadValues({}, opts), { + zone: interpretationZone, + specificOffset + })); + return setZone ? inst : inst.setZone(zone); + } else { + return DateTime.invalid(new Invalid("unparsable", `the input "${text}" can't be parsed as ${format}`)); + } +} +function toTechFormat(dt, format, allowZ = true) { + return dt.isValid ? Formatter.create(Locale.create("en-US"), { + allowZ, + forceSimple: true + }).formatDateTimeFromString(dt, format) : null; +} +function toISODate(o2, extended) { + const longFormat = o2.c.year > 9999 || o2.c.year < 0; + let c3 = ""; + if (longFormat && o2.c.year >= 0) + c3 += "+"; + c3 += padStart2(o2.c.year, longFormat ? 6 : 4); + if (extended) { + c3 += "-"; + c3 += padStart2(o2.c.month); + c3 += "-"; + c3 += padStart2(o2.c.day); + } else { + c3 += padStart2(o2.c.month); + c3 += padStart2(o2.c.day); + } + return c3; +} +function toISOTime(o2, extended, suppressSeconds, suppressMilliseconds, includeOffset, extendedZone) { + let c3 = padStart2(o2.c.hour); + if (extended) { + c3 += ":"; + c3 += padStart2(o2.c.minute); + if (o2.c.second !== 0 || !suppressSeconds) { + c3 += ":"; + } + } else { + c3 += padStart2(o2.c.minute); + } + if (o2.c.second !== 0 || !suppressSeconds) { + c3 += padStart2(o2.c.second); + if (o2.c.millisecond !== 0 || !suppressMilliseconds) { + c3 += "."; + c3 += padStart2(o2.c.millisecond, 3); + } + } + if (includeOffset) { + if (o2.isOffsetFixed && o2.offset === 0 && !extendedZone) { + c3 += "Z"; + } else if (o2.o < 0) { + c3 += "-"; + c3 += padStart2(Math.trunc(-o2.o / 60)); + c3 += ":"; + c3 += padStart2(Math.trunc(-o2.o % 60)); + } else { + c3 += "+"; + c3 += padStart2(Math.trunc(o2.o / 60)); + c3 += ":"; + c3 += padStart2(Math.trunc(o2.o % 60)); + } + } + if (extendedZone) { + c3 += "[" + o2.zone.ianaName + "]"; + } + return c3; +} +var defaultUnitValues = { + month: 1, + day: 1, + hour: 0, + minute: 0, + second: 0, + millisecond: 0 +}; +var defaultWeekUnitValues = { + weekNumber: 1, + weekday: 1, + hour: 0, + minute: 0, + second: 0, + millisecond: 0 +}; +var defaultOrdinalUnitValues = { + ordinal: 1, + hour: 0, + minute: 0, + second: 0, + millisecond: 0 +}; +var orderedUnits2 = ["year", "month", "day", "hour", "minute", "second", "millisecond"]; +var orderedWeekUnits = [ + "weekYear", + "weekNumber", + "weekday", + "hour", + "minute", + "second", + "millisecond" +]; +var orderedOrdinalUnits = ["year", "ordinal", "hour", "minute", "second", "millisecond"]; +function normalizeUnit(unit) { + const normalized = { + year: "year", + years: "year", + month: "month", + months: "month", + day: "day", + days: "day", + hour: "hour", + hours: "hour", + minute: "minute", + minutes: "minute", + quarter: "quarter", + quarters: "quarter", + second: "second", + seconds: "second", + millisecond: "millisecond", + milliseconds: "millisecond", + weekday: "weekday", + weekdays: "weekday", + weeknumber: "weekNumber", + weeksnumber: "weekNumber", + weeknumbers: "weekNumber", + weekyear: "weekYear", + weekyears: "weekYear", + ordinal: "ordinal" + }[unit.toLowerCase()]; + if (!normalized) + throw new InvalidUnitError(unit); + return normalized; +} +function quickDT(obj, opts) { + const zone = normalizeZone(opts.zone, Settings.defaultZone), loc = Locale.fromObject(opts), tsNow = Settings.now(); + let ts, o2; + if (!isUndefined(obj.year)) { + for (const u3 of orderedUnits2) { + if (isUndefined(obj[u3])) { + obj[u3] = defaultUnitValues[u3]; + } + } + const invalid = hasInvalidGregorianData(obj) || hasInvalidTimeData(obj); + if (invalid) { + return DateTime.invalid(invalid); + } + const offsetProvis = zone.offset(tsNow); + [ts, o2] = objToTS(obj, offsetProvis, zone); + } else { + ts = tsNow; + } + return new DateTime({ ts, zone, loc, o: o2 }); +} +function diffRelative(start, end, opts) { + const round = isUndefined(opts.round) ? true : opts.round, format = (c3, unit) => { + c3 = roundTo(c3, round || opts.calendary ? 0 : 2, true); + const formatter = end.loc.clone(opts).relFormatter(opts); + return formatter.format(c3, unit); + }, differ = (unit) => { + if (opts.calendary) { + if (!end.hasSame(start, unit)) { + return end.startOf(unit).diff(start.startOf(unit), unit).get(unit); + } else + return 0; + } else { + return end.diff(start, unit).get(unit); + } + }; + if (opts.unit) { + return format(differ(opts.unit), opts.unit); + } + for (const unit of opts.units) { + const count = differ(unit); + if (Math.abs(count) >= 1) { + return format(count, unit); + } + } + return format(start > end ? -0 : 0, opts.units[opts.units.length - 1]); +} +function lastOpts(argList) { + let opts = {}, args; + if (argList.length > 0 && typeof argList[argList.length - 1] === "object") { + opts = argList[argList.length - 1]; + args = Array.from(argList).slice(0, argList.length - 1); + } else { + args = Array.from(argList); + } + return [opts, args]; +} +var DateTime = class { + constructor(config2) { + const zone = config2.zone || Settings.defaultZone; + let invalid = config2.invalid || (Number.isNaN(config2.ts) ? new Invalid("invalid input") : null) || (!zone.isValid ? unsupportedZone(zone) : null); + this.ts = isUndefined(config2.ts) ? Settings.now() : config2.ts; + let c3 = null, o2 = null; + if (!invalid) { + const unchanged = config2.old && config2.old.ts === this.ts && config2.old.zone.equals(zone); + if (unchanged) { + [c3, o2] = [config2.old.c, config2.old.o]; + } else { + const ot = zone.offset(this.ts); + c3 = tsToObj(this.ts, ot); + invalid = Number.isNaN(c3.year) ? new Invalid("invalid input") : null; + c3 = invalid ? null : c3; + o2 = invalid ? null : ot; + } + } + this._zone = zone; + this.loc = config2.loc || Locale.create(); + this.invalid = invalid; + this.weekData = null; + this.c = c3; + this.o = o2; + this.isLuxonDateTime = true; + } + static now() { + return new DateTime({}); + } + static local() { + const [opts, args] = lastOpts(arguments), [year, month, day, hour, minute, second, millisecond] = args; + return quickDT({ year, month, day, hour, minute, second, millisecond }, opts); + } + static utc() { + const [opts, args] = lastOpts(arguments), [year, month, day, hour, minute, second, millisecond] = args; + opts.zone = FixedOffsetZone.utcInstance; + return quickDT({ year, month, day, hour, minute, second, millisecond }, opts); + } + static fromJSDate(date, options = {}) { + const ts = isDate(date) ? date.valueOf() : NaN; + if (Number.isNaN(ts)) { + return DateTime.invalid("invalid input"); + } + const zoneToUse = normalizeZone(options.zone, Settings.defaultZone); + if (!zoneToUse.isValid) { + return DateTime.invalid(unsupportedZone(zoneToUse)); + } + return new DateTime({ + ts, + zone: zoneToUse, + loc: Locale.fromObject(options) + }); + } + static fromMillis(milliseconds, options = {}) { + if (!isNumber(milliseconds)) { + throw new InvalidArgumentError(`fromMillis requires a numerical input, but received a ${typeof milliseconds} with value ${milliseconds}`); + } else if (milliseconds < -MAX_DATE || milliseconds > MAX_DATE) { + return DateTime.invalid("Timestamp out of range"); + } else { + return new DateTime({ + ts: milliseconds, + zone: normalizeZone(options.zone, Settings.defaultZone), + loc: Locale.fromObject(options) + }); + } + } + static fromSeconds(seconds, options = {}) { + if (!isNumber(seconds)) { + throw new InvalidArgumentError("fromSeconds requires a numerical input"); + } else { + return new DateTime({ + ts: seconds * 1e3, + zone: normalizeZone(options.zone, Settings.defaultZone), + loc: Locale.fromObject(options) + }); + } + } + static fromObject(obj, opts = {}) { + obj = obj || {}; + const zoneToUse = normalizeZone(opts.zone, Settings.defaultZone); + if (!zoneToUse.isValid) { + return DateTime.invalid(unsupportedZone(zoneToUse)); + } + const tsNow = Settings.now(), offsetProvis = !isUndefined(opts.specificOffset) ? opts.specificOffset : zoneToUse.offset(tsNow), normalized = normalizeObject(obj, normalizeUnit), containsOrdinal = !isUndefined(normalized.ordinal), containsGregorYear = !isUndefined(normalized.year), containsGregorMD = !isUndefined(normalized.month) || !isUndefined(normalized.day), containsGregor = containsGregorYear || containsGregorMD, definiteWeekDef = normalized.weekYear || normalized.weekNumber, loc = Locale.fromObject(opts); + if ((containsGregor || containsOrdinal) && definiteWeekDef) { + throw new ConflictingSpecificationError("Can't mix weekYear/weekNumber units with year/month/day or ordinals"); + } + if (containsGregorMD && containsOrdinal) { + throw new ConflictingSpecificationError("Can't mix ordinal dates with month/day"); + } + const useWeekData = definiteWeekDef || normalized.weekday && !containsGregor; + let units, defaultValues, objNow = tsToObj(tsNow, offsetProvis); + if (useWeekData) { + units = orderedWeekUnits; + defaultValues = defaultWeekUnitValues; + objNow = gregorianToWeek(objNow); + } else if (containsOrdinal) { + units = orderedOrdinalUnits; + defaultValues = defaultOrdinalUnitValues; + objNow = gregorianToOrdinal(objNow); + } else { + units = orderedUnits2; + defaultValues = defaultUnitValues; + } + let foundFirst = false; + for (const u3 of units) { + const v3 = normalized[u3]; + if (!isUndefined(v3)) { + foundFirst = true; + } else if (foundFirst) { + normalized[u3] = defaultValues[u3]; + } else { + normalized[u3] = objNow[u3]; + } + } + const higherOrderInvalid = useWeekData ? hasInvalidWeekData(normalized) : containsOrdinal ? hasInvalidOrdinalData(normalized) : hasInvalidGregorianData(normalized), invalid = higherOrderInvalid || hasInvalidTimeData(normalized); + if (invalid) { + return DateTime.invalid(invalid); + } + const gregorian = useWeekData ? weekToGregorian(normalized) : containsOrdinal ? ordinalToGregorian(normalized) : normalized, [tsFinal, offsetFinal] = objToTS(gregorian, offsetProvis, zoneToUse), inst = new DateTime({ + ts: tsFinal, + zone: zoneToUse, + o: offsetFinal, + loc + }); + if (normalized.weekday && containsGregor && obj.weekday !== inst.weekday) { + return DateTime.invalid("mismatched weekday", `you can't specify both a weekday of ${normalized.weekday} and a date of ${inst.toISO()}`); + } + return inst; + } + static fromISO(text, opts = {}) { + const [vals, parsedZone] = parseISODate(text); + return parseDataToDateTime(vals, parsedZone, opts, "ISO 8601", text); + } + static fromRFC2822(text, opts = {}) { + const [vals, parsedZone] = parseRFC2822Date(text); + return parseDataToDateTime(vals, parsedZone, opts, "RFC 2822", text); + } + static fromHTTP(text, opts = {}) { + const [vals, parsedZone] = parseHTTPDate(text); + return parseDataToDateTime(vals, parsedZone, opts, "HTTP", opts); + } + static fromFormat(text, fmt, opts = {}) { + if (isUndefined(text) || isUndefined(fmt)) { + throw new InvalidArgumentError("fromFormat requires an input string and a format"); + } + const { locale = null, numberingSystem = null } = opts, localeToUse = Locale.fromOpts({ + locale, + numberingSystem, + defaultToEN: true + }), [vals, parsedZone, specificOffset, invalid] = parseFromTokens(localeToUse, text, fmt); + if (invalid) { + return DateTime.invalid(invalid); + } else { + return parseDataToDateTime(vals, parsedZone, opts, `format ${fmt}`, text, specificOffset); + } + } + static fromString(text, fmt, opts = {}) { + return DateTime.fromFormat(text, fmt, opts); + } + static fromSQL(text, opts = {}) { + const [vals, parsedZone] = parseSQL(text); + return parseDataToDateTime(vals, parsedZone, opts, "SQL", text); + } + static invalid(reason, explanation = null) { + if (!reason) { + throw new InvalidArgumentError("need to specify a reason the DateTime is invalid"); + } + const invalid = reason instanceof Invalid ? reason : new Invalid(reason, explanation); + if (Settings.throwOnInvalid) { + throw new InvalidDateTimeError(invalid); + } else { + return new DateTime({ invalid }); + } + } + static isDateTime(o2) { + return o2 && o2.isLuxonDateTime || false; + } + get(unit) { + return this[unit]; + } + get isValid() { + return this.invalid === null; + } + get invalidReason() { + return this.invalid ? this.invalid.reason : null; + } + get invalidExplanation() { + return this.invalid ? this.invalid.explanation : null; + } + get locale() { + return this.isValid ? this.loc.locale : null; + } + get numberingSystem() { + return this.isValid ? this.loc.numberingSystem : null; + } + get outputCalendar() { + return this.isValid ? this.loc.outputCalendar : null; + } + get zone() { + return this._zone; + } + get zoneName() { + return this.isValid ? this.zone.name : null; + } + get year() { + return this.isValid ? this.c.year : NaN; + } + get quarter() { + return this.isValid ? Math.ceil(this.c.month / 3) : NaN; + } + get month() { + return this.isValid ? this.c.month : NaN; + } + get day() { + return this.isValid ? this.c.day : NaN; + } + get hour() { + return this.isValid ? this.c.hour : NaN; + } + get minute() { + return this.isValid ? this.c.minute : NaN; + } + get second() { + return this.isValid ? this.c.second : NaN; + } + get millisecond() { + return this.isValid ? this.c.millisecond : NaN; + } + get weekYear() { + return this.isValid ? possiblyCachedWeekData(this).weekYear : NaN; + } + get weekNumber() { + return this.isValid ? possiblyCachedWeekData(this).weekNumber : NaN; + } + get weekday() { + return this.isValid ? possiblyCachedWeekData(this).weekday : NaN; + } + get ordinal() { + return this.isValid ? gregorianToOrdinal(this.c).ordinal : NaN; + } + get monthShort() { + return this.isValid ? Info.months("short", { locObj: this.loc })[this.month - 1] : null; + } + get monthLong() { + return this.isValid ? Info.months("long", { locObj: this.loc })[this.month - 1] : null; + } + get weekdayShort() { + return this.isValid ? Info.weekdays("short", { locObj: this.loc })[this.weekday - 1] : null; + } + get weekdayLong() { + return this.isValid ? Info.weekdays("long", { locObj: this.loc })[this.weekday - 1] : null; + } + get offset() { + return this.isValid ? +this.o : NaN; + } + get offsetNameShort() { + if (this.isValid) { + return this.zone.offsetName(this.ts, { + format: "short", + locale: this.locale + }); + } else { + return null; + } + } + get offsetNameLong() { + if (this.isValid) { + return this.zone.offsetName(this.ts, { + format: "long", + locale: this.locale + }); + } else { + return null; + } + } + get isOffsetFixed() { + return this.isValid ? this.zone.isUniversal : null; + } + get isInDST() { + if (this.isOffsetFixed) { + return false; + } else { + return this.offset > this.set({ month: 1, day: 1 }).offset || this.offset > this.set({ month: 5 }).offset; + } + } + get isInLeapYear() { + return isLeapYear(this.year); + } + get daysInMonth() { + return daysInMonth(this.year, this.month); + } + get daysInYear() { + return this.isValid ? daysInYear(this.year) : NaN; + } + get weeksInWeekYear() { + return this.isValid ? weeksInWeekYear(this.weekYear) : NaN; + } + resolvedLocaleOptions(opts = {}) { + const { locale, numberingSystem, calendar } = Formatter.create(this.loc.clone(opts), opts).resolvedOptions(this); + return { locale, numberingSystem, outputCalendar: calendar }; + } + toUTC(offset2 = 0, opts = {}) { + return this.setZone(FixedOffsetZone.instance(offset2), opts); + } + toLocal() { + return this.setZone(Settings.defaultZone); + } + setZone(zone, { keepLocalTime = false, keepCalendarTime = false } = {}) { + zone = normalizeZone(zone, Settings.defaultZone); + if (zone.equals(this.zone)) { + return this; + } else if (!zone.isValid) { + return DateTime.invalid(unsupportedZone(zone)); + } else { + let newTS = this.ts; + if (keepLocalTime || keepCalendarTime) { + const offsetGuess = zone.offset(this.ts); + const asObj = this.toObject(); + [newTS] = objToTS(asObj, offsetGuess, zone); + } + return clone2(this, { ts: newTS, zone }); + } + } + reconfigure({ locale, numberingSystem, outputCalendar } = {}) { + const loc = this.loc.clone({ locale, numberingSystem, outputCalendar }); + return clone2(this, { loc }); + } + setLocale(locale) { + return this.reconfigure({ locale }); + } + set(values) { + if (!this.isValid) + return this; + const normalized = normalizeObject(values, normalizeUnit), settingWeekStuff = !isUndefined(normalized.weekYear) || !isUndefined(normalized.weekNumber) || !isUndefined(normalized.weekday), containsOrdinal = !isUndefined(normalized.ordinal), containsGregorYear = !isUndefined(normalized.year), containsGregorMD = !isUndefined(normalized.month) || !isUndefined(normalized.day), containsGregor = containsGregorYear || containsGregorMD, definiteWeekDef = normalized.weekYear || normalized.weekNumber; + if ((containsGregor || containsOrdinal) && definiteWeekDef) { + throw new ConflictingSpecificationError("Can't mix weekYear/weekNumber units with year/month/day or ordinals"); + } + if (containsGregorMD && containsOrdinal) { + throw new ConflictingSpecificationError("Can't mix ordinal dates with month/day"); + } + let mixed; + if (settingWeekStuff) { + mixed = weekToGregorian(__spreadValues(__spreadValues({}, gregorianToWeek(this.c)), normalized)); + } else if (!isUndefined(normalized.ordinal)) { + mixed = ordinalToGregorian(__spreadValues(__spreadValues({}, gregorianToOrdinal(this.c)), normalized)); + } else { + mixed = __spreadValues(__spreadValues({}, this.toObject()), normalized); + if (isUndefined(normalized.day)) { + mixed.day = Math.min(daysInMonth(mixed.year, mixed.month), mixed.day); + } + } + const [ts, o2] = objToTS(mixed, this.o, this.zone); + return clone2(this, { ts, o: o2 }); + } + plus(duration) { + if (!this.isValid) + return this; + const dur = Duration.fromDurationLike(duration); + return clone2(this, adjustTime(this, dur)); + } + minus(duration) { + if (!this.isValid) + return this; + const dur = Duration.fromDurationLike(duration).negate(); + return clone2(this, adjustTime(this, dur)); + } + startOf(unit) { + if (!this.isValid) + return this; + const o2 = {}, normalizedUnit = Duration.normalizeUnit(unit); + switch (normalizedUnit) { + case "years": + o2.month = 1; + case "quarters": + case "months": + o2.day = 1; + case "weeks": + case "days": + o2.hour = 0; + case "hours": + o2.minute = 0; + case "minutes": + o2.second = 0; + case "seconds": + o2.millisecond = 0; + break; + case "milliseconds": + break; + } + if (normalizedUnit === "weeks") { + o2.weekday = 1; + } + if (normalizedUnit === "quarters") { + const q3 = Math.ceil(this.month / 3); + o2.month = (q3 - 1) * 3 + 1; + } + return this.set(o2); + } + endOf(unit) { + return this.isValid ? this.plus({ [unit]: 1 }).startOf(unit).minus(1) : this; + } + toFormat(fmt, opts = {}) { + return this.isValid ? Formatter.create(this.loc.redefaultToEN(opts)).formatDateTimeFromString(this, fmt) : INVALID3; + } + toLocaleString(formatOpts = DATE_SHORT, opts = {}) { + return this.isValid ? Formatter.create(this.loc.clone(opts), formatOpts).formatDateTime(this) : INVALID3; + } + toLocaleParts(opts = {}) { + return this.isValid ? Formatter.create(this.loc.clone(opts), opts).formatDateTimeParts(this) : []; + } + toISO({ + format = "extended", + suppressSeconds = false, + suppressMilliseconds = false, + includeOffset = true, + extendedZone = false + } = {}) { + if (!this.isValid) { + return null; + } + const ext = format === "extended"; + let c3 = toISODate(this, ext); + c3 += "T"; + c3 += toISOTime(this, ext, suppressSeconds, suppressMilliseconds, includeOffset, extendedZone); + return c3; + } + toISODate({ format = "extended" } = {}) { + if (!this.isValid) { + return null; + } + return toISODate(this, format === "extended"); + } + toISOWeekDate() { + return toTechFormat(this, "kkkk-'W'WW-c"); + } + toISOTime({ + suppressMilliseconds = false, + suppressSeconds = false, + includeOffset = true, + includePrefix = false, + extendedZone = false, + format = "extended" + } = {}) { + if (!this.isValid) { + return null; + } + let c3 = includePrefix ? "T" : ""; + return c3 + toISOTime(this, format === "extended", suppressSeconds, suppressMilliseconds, includeOffset, extendedZone); + } + toRFC2822() { + return toTechFormat(this, "EEE, dd LLL yyyy HH:mm:ss ZZZ", false); + } + toHTTP() { + return toTechFormat(this.toUTC(), "EEE, dd LLL yyyy HH:mm:ss 'GMT'"); + } + toSQLDate() { + if (!this.isValid) { + return null; + } + return toISODate(this, true); + } + toSQLTime({ includeOffset = true, includeZone = false, includeOffsetSpace = true } = {}) { + let fmt = "HH:mm:ss.SSS"; + if (includeZone || includeOffset) { + if (includeOffsetSpace) { + fmt += " "; + } + if (includeZone) { + fmt += "z"; + } else if (includeOffset) { + fmt += "ZZ"; + } + } + return toTechFormat(this, fmt, true); + } + toSQL(opts = {}) { + if (!this.isValid) { + return null; + } + return `${this.toSQLDate()} ${this.toSQLTime(opts)}`; + } + toString() { + return this.isValid ? this.toISO() : INVALID3; + } + valueOf() { + return this.toMillis(); + } + toMillis() { + return this.isValid ? this.ts : NaN; + } + toSeconds() { + return this.isValid ? this.ts / 1e3 : NaN; + } + toUnixInteger() { + return this.isValid ? Math.floor(this.ts / 1e3) : NaN; + } + toJSON() { + return this.toISO(); + } + toBSON() { + return this.toJSDate(); + } + toObject(opts = {}) { + if (!this.isValid) + return {}; + const base = __spreadValues({}, this.c); + if (opts.includeConfig) { + base.outputCalendar = this.outputCalendar; + base.numberingSystem = this.loc.numberingSystem; + base.locale = this.loc.locale; + } + return base; + } + toJSDate() { + return new Date(this.isValid ? this.ts : NaN); + } + diff(otherDateTime, unit = "milliseconds", opts = {}) { + if (!this.isValid || !otherDateTime.isValid) { + return Duration.invalid("created by diffing an invalid DateTime"); + } + const durOpts = __spreadValues({ locale: this.locale, numberingSystem: this.numberingSystem }, opts); + const units = maybeArray(unit).map(Duration.normalizeUnit), otherIsLater = otherDateTime.valueOf() > this.valueOf(), earlier = otherIsLater ? this : otherDateTime, later = otherIsLater ? otherDateTime : this, diffed = diff_default(earlier, later, units, durOpts); + return otherIsLater ? diffed.negate() : diffed; + } + diffNow(unit = "milliseconds", opts = {}) { + return this.diff(DateTime.now(), unit, opts); + } + until(otherDateTime) { + return this.isValid ? Interval.fromDateTimes(this, otherDateTime) : this; + } + hasSame(otherDateTime, unit) { + if (!this.isValid) + return false; + const inputMs = otherDateTime.valueOf(); + const adjustedToZone = this.setZone(otherDateTime.zone, { keepLocalTime: true }); + return adjustedToZone.startOf(unit) <= inputMs && inputMs <= adjustedToZone.endOf(unit); + } + equals(other) { + return this.isValid && other.isValid && this.valueOf() === other.valueOf() && this.zone.equals(other.zone) && this.loc.equals(other.loc); + } + toRelative(options = {}) { + if (!this.isValid) + return null; + const base = options.base || DateTime.fromObject({}, { zone: this.zone }), padding = options.padding ? this < base ? -options.padding : options.padding : 0; + let units = ["years", "months", "days", "hours", "minutes", "seconds"]; + let unit = options.unit; + if (Array.isArray(options.unit)) { + units = options.unit; + unit = void 0; + } + return diffRelative(base, this.plus(padding), __spreadProps(__spreadValues({}, options), { + numeric: "always", + units, + unit + })); + } + toRelativeCalendar(options = {}) { + if (!this.isValid) + return null; + return diffRelative(options.base || DateTime.fromObject({}, { zone: this.zone }), this, __spreadProps(__spreadValues({}, options), { + numeric: "auto", + units: ["years", "months", "days"], + calendary: true + })); + } + static min(...dateTimes) { + if (!dateTimes.every(DateTime.isDateTime)) { + throw new InvalidArgumentError("min requires all arguments be DateTimes"); + } + return bestBy(dateTimes, (i3) => i3.valueOf(), Math.min); + } + static max(...dateTimes) { + if (!dateTimes.every(DateTime.isDateTime)) { + throw new InvalidArgumentError("max requires all arguments be DateTimes"); } - })); - const cal = new Calendar(containerEl, { - plugins: [ - main_default, - main_default2, - main_default3, - main_default4, - main_default5, - main_default6 - ], - googleCalendarApiKey: "AIzaSyDIiklFwJXaLWuT_4y6I9ZRVVsPuf4xGrk", - initialView: isMobile ? "timeGrid3Days" : "timeGridWeek", - nowIndicator: true, - scrollTimeReset: false, - headerToolbar: isMobile ? { - right: "today,prev,next", - left: "timeGrid3Days,timeGridDay,listWeek" - } : { - left: "prev,next today", - center: "title", - right: "dayGridMonth,timeGridWeek,timeGridDay,listWeek" - }, - views: { - timeGridDay: { - type: "timeGrid", - duration: { days: 1 }, - buttonText: isMobile ? "1" : "day" - }, - timeGrid3Days: { - type: "timeGrid", - duration: { days: 3 }, - buttonText: "3" - } - }, - firstDay: settings == null ? void 0 : settings.firstDay, - eventSources, - eventClick, - selectable: select && true, - selectMirror: select && true, - select: select && ((info) => __async(this, null, function* () { - yield select(info.start, info.end, info.allDay); - info.view.calendar.unselect(); - })), - editable: modifyEvent && true, - eventDrop: modifyEventCallback, - eventResize: modifyEventCallback, - eventMouseEnter - }); - cal.render(); - return cal; + return bestBy(dateTimes, (i3) => i3.valueOf(), Math.max); + } + static fromFormatExplain(text, fmt, options = {}) { + const { locale = null, numberingSystem = null } = options, localeToUse = Locale.fromOpts({ + locale, + numberingSystem, + defaultToEN: true + }); + return explainFromTokens(localeToUse, text, fmt); + } + static fromStringExplain(text, fmt, options = {}) { + return DateTime.fromFormatExplain(text, fmt, options); + } + static get DATE_SHORT() { + return DATE_SHORT; + } + static get DATE_MED() { + return DATE_MED; + } + static get DATE_MED_WITH_WEEKDAY() { + return DATE_MED_WITH_WEEKDAY; + } + static get DATE_FULL() { + return DATE_FULL; + } + static get DATE_HUGE() { + return DATE_HUGE; + } + static get TIME_SIMPLE() { + return TIME_SIMPLE; + } + static get TIME_WITH_SECONDS() { + return TIME_WITH_SECONDS; + } + static get TIME_WITH_SHORT_OFFSET() { + return TIME_WITH_SHORT_OFFSET; + } + static get TIME_WITH_LONG_OFFSET() { + return TIME_WITH_LONG_OFFSET; + } + static get TIME_24_SIMPLE() { + return TIME_24_SIMPLE; + } + static get TIME_24_WITH_SECONDS() { + return TIME_24_WITH_SECONDS; + } + static get TIME_24_WITH_SHORT_OFFSET() { + return TIME_24_WITH_SHORT_OFFSET; + } + static get TIME_24_WITH_LONG_OFFSET() { + return TIME_24_WITH_LONG_OFFSET; + } + static get DATETIME_SHORT() { + return DATETIME_SHORT; + } + static get DATETIME_SHORT_WITH_SECONDS() { + return DATETIME_SHORT_WITH_SECONDS; + } + static get DATETIME_MED() { + return DATETIME_MED; + } + static get DATETIME_MED_WITH_SECONDS() { + return DATETIME_MED_WITH_SECONDS; + } + static get DATETIME_MED_WITH_WEEKDAY() { + return DATETIME_MED_WITH_WEEKDAY; + } + static get DATETIME_FULL() { + return DATETIME_FULL; + } + static get DATETIME_FULL_WITH_SECONDS() { + return DATETIME_FULL_WITH_SECONDS; + } + static get DATETIME_HUGE() { + return DATETIME_HUGE; + } + static get DATETIME_HUGE_WITH_SECONDS() { + return DATETIME_HUGE_WITH_SECONDS; + } +}; +function friendlyDateTime(dateTimeish) { + if (DateTime.isDateTime(dateTimeish)) { + return dateTimeish; + } else if (dateTimeish && dateTimeish.valueOf && isNumber(dateTimeish.valueOf())) { + return DateTime.fromJSDate(dateTimeish); + } else if (dateTimeish && typeof dateTimeish === "object") { + return DateTime.fromObject(dateTimeish); + } else { + throw new InvalidArgumentError(`Unknown datetime argument: ${dateTimeish}, of type ${typeof dateTimeish}`); + } } -// src/modal.ts -var import_obsidian3 = __toModule(require("obsidian")); -var React2 = __toModule(require_react()); -var ReactDOM = __toModule(require_react_dom()); - -// src/components/EditEvent.tsx +// src/ui/components/EditEvent.tsx var React = __toModule(require_react()); var import_react = __toModule(require_react()); function makeChangeListener(setState, fromString) { @@ -52191,9 +55622,10 @@ var EditEvent = ({ const [endDate, setEndDate] = (0, import_react.useState)(initialEvent && initialEvent.type === "single" ? initialEvent.endDate : void 0); let initialStartTime = ""; let initialEndTime = ""; - if (initialEvent && initialEvent.allDay === false) { - initialStartTime = initialEvent.startTime || ""; - initialEndTime = initialEvent.endTime || ""; + if (initialEvent && (initialEvent.allDay === false || initialEvent.allDay === void 0)) { + const { startTime: startTime2, endTime: endTime2 } = initialEvent; + initialStartTime = startTime2 || ""; + initialEndTime = endTime2 || ""; } const [startTime, setStartTime] = (0, import_react.useState)(initialStartTime); const [endTime, setEndTime] = (0, import_react.useState)(initialEndTime); @@ -52203,6 +55635,8 @@ var EditEvent = ({ const [daysOfWeek, setDaysOfWeek] = (0, import_react.useState)(((initialEvent == null ? void 0 : initialEvent.type) === "recurring" ? initialEvent.daysOfWeek : []) || []); const [allDay, setAllDay] = (0, import_react.useState)((initialEvent == null ? void 0 : initialEvent.allDay) || false); const [calendarIndex, setCalendarIndex] = (0, import_react.useState)(defaultCalendarIndex); + const [complete, setComplete] = (0, import_react.useState)((initialEvent == null ? void 0 : initialEvent.type) === "single" && initialEvent.completed !== null && initialEvent.completed !== void 0 ? initialEvent.completed : false); + const [isTask, setIsTask] = (0, import_react.useState)((initialEvent == null ? void 0 : initialEvent.type) === "single" && initialEvent.completed !== void 0 && initialEvent.completed !== null); const titleRef = (0, import_react.useRef)(null); (0, import_react.useEffect)(() => { if (titleRef.current) { @@ -52218,7 +55652,8 @@ var EditEvent = ({ endRecur: endRecur || void 0 } : { date, - endDate + endDate, + completed: isTask ? complete : null }), calendarIndex); }); return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement("div", null, /* @__PURE__ */ React.createElement("p", { @@ -52234,32 +55669,33 @@ var EditEvent = ({ value: title, placeholder: "Add title", required: true, - onChange: makeChangeListener(setTitle, (x3) => x3) + onChange: makeChangeListener(setTitle, (x4) => x4) })), /* @__PURE__ */ React.createElement("p", null, /* @__PURE__ */ React.createElement("select", { id: "calendar", value: calendarIndex, onChange: makeChangeListener(setCalendarIndex, parseInt) - }, calendars.filter((cal) => cal.type === "local").map((cal, idx) => /* @__PURE__ */ React.createElement("option", { + }, calendars.flatMap((cal) => cal.type === "local" || cal.type === "dailynote" ? [cal] : []).map((cal, idx) => /* @__PURE__ */ React.createElement("option", { key: idx, - value: idx - }, cal.directory)))), /* @__PURE__ */ React.createElement("p", null, !isRecurring && /* @__PURE__ */ React.createElement("input", { + value: idx, + disabled: !((initialEvent == null ? void 0 : initialEvent.title) === void 0 || calendars[calendarIndex].type === cal.type) + }, cal.type === "local" ? cal.directory : "Daily Note")))), /* @__PURE__ */ React.createElement("p", null, !isRecurring && /* @__PURE__ */ React.createElement("input", { type: "date", id: "date", value: date, required: !isRecurring, - onChange: makeChangeListener(setDate, (x3) => x3) + onChange: makeChangeListener(setDate, (x4) => x4) }), allDay ? /* @__PURE__ */ React.createElement(React.Fragment, null) : /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement("input", { type: "time", id: "startTime", value: startTime, required: true, - onChange: makeChangeListener(setStartTime, (x3) => x3) + onChange: makeChangeListener(setStartTime, (x4) => x4) }), "-", /* @__PURE__ */ React.createElement("input", { type: "time", id: "endTime", value: endTime, required: true, - onChange: makeChangeListener(setEndTime, (x3) => x3) + onChange: makeChangeListener(setEndTime, (x4) => x4) }))), /* @__PURE__ */ React.createElement("p", null, /* @__PURE__ */ React.createElement("label", { htmlFor: "allDay" }, "All day event "), /* @__PURE__ */ React.createElement("input", { @@ -52281,13 +55717,29 @@ var EditEvent = ({ type: "date", id: "startDate", value: date, - onChange: makeChangeListener(setDate, (x3) => x3) + onChange: makeChangeListener(setDate, (x4) => x4) }), "and stops recurring", /* @__PURE__ */ React.createElement("input", { type: "date", id: "endDate", value: endRecur, - onChange: makeChangeListener(setEndRecur, (x3) => x3) - }))), /* @__PURE__ */ React.createElement("p", { + onChange: makeChangeListener(setEndRecur, (x4) => x4) + }))), /* @__PURE__ */ React.createElement("p", null, /* @__PURE__ */ React.createElement("label", { + htmlFor: "task" + }, "Task Event "), /* @__PURE__ */ React.createElement("input", { + id: "task", + checked: isTask, + onChange: (e3) => { + setIsTask(e3.target.checked); + }, + type: "checkbox" + })), isTask && /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement("label", { + htmlFor: "taskStatus" + }, "Complete? "), /* @__PURE__ */ React.createElement("input", { + id: "taskStatus", + checked: !(complete === false || complete === void 0), + onChange: (e3) => setComplete(e3.target.checked ? DateTime.now().toISO() : false), + type: "checkbox" + })), /* @__PURE__ */ React.createElement("p", { style: { display: "flex", justifyContent: "space-between", @@ -52308,26 +55760,30 @@ var EditEvent = ({ }, "Delete Event"))))); }; -// src/frontmatter.ts -var import_luxon2 = __toModule(require_luxon()); +// src/models/Event.ts var import_obsidian = __toModule(require("obsidian")); -// src/dateUtil.ts -var import_luxon = __toModule(require_luxon()); +// src/fullcalendar_interop.ts var parseTime = (time) => { - let parsed = import_luxon.DateTime.fromFormat(time, "h:mm a"); + let parsed = DateTime.fromFormat(time, "h:mm a"); + if (parsed.invalidReason) { + parsed = DateTime.fromFormat(time, "HH:mm"); + } if (parsed.invalidReason) { - parsed = import_luxon.DateTime.fromFormat(time, "HH:mm"); + console.error(`FC: Error parsing time string '${time}': ${parsed.invalidReason}'`); + return null; } - return import_luxon.Duration.fromISOTime(parsed.toISOTime({ + return Duration.fromISOTime(parsed.toISOTime({ includeOffset: false, includePrefix: false })); }; var normalizeTimeString = (time) => { - if (!time) - time = ""; - return parseTime(time).toISOTime({ + const parsed = parseTime(time); + if (!parsed) { + return null; + } + return parsed.toISOTime({ suppressMilliseconds: true, includePrefix: false, suppressSeconds: true @@ -52338,14 +55794,24 @@ var add = (date, time) => { let minutes = time.minutes; return date.set({ hour: hours, minute: minutes }); }; -var getTime2 = (date) => import_luxon.DateTime.fromJSDate(date).toISOTime({ +var getTime2 = (date) => DateTime.fromJSDate(date).toISOTime({ suppressMilliseconds: true, includeOffset: false, suppressSeconds: true }); -var getDate = (date) => import_luxon.DateTime.fromJSDate(date).toISODate(); - -// src/frontmatter.ts +var getDate = (date) => DateTime.fromJSDate(date).toISODate(); +var combineDateTimeStrings = (date, time) => { + const parsedDate = DateTime.fromISO(date); + if (parsedDate.invalidReason) { + console.error(`FC: Error parsing time string '${date}': ${parsedDate.invalidReason}`); + return null; + } + const parsedTime = parseTime(time); + if (!parsedTime) { + return null; + } + return add(parsedDate, parsedTime).toISO(); +}; var DAYS = "UMTWRFS"; function dateEndpointsToFrontmatter(start, end, allDay) { const date = getDate(start); @@ -52360,7 +55826,7 @@ function dateEndpointsToFrontmatter(start, end, allDay) { endTime: getTime2(end) }); } -function parseFrontmatter(id, frontmatter) { +function toEventInput(id, frontmatter) { let event = { id, title: frontmatter.title, @@ -52370,7 +55836,8 @@ function parseFrontmatter(id, frontmatter) { event = __spreadProps(__spreadValues({}, event), { daysOfWeek: frontmatter.daysOfWeek.map((c3) => DAYS.indexOf(c3)), startRecur: frontmatter.startRecur, - endRecur: frontmatter.endRecur + endRecur: frontmatter.endRecur, + extendedProps: { isTask: false } }); if (!frontmatter.allDay) { event = __spreadProps(__spreadValues({}, event), { @@ -52380,20 +55847,39 @@ function parseFrontmatter(id, frontmatter) { } } else { if (!frontmatter.allDay) { + const start = combineDateTimeStrings(frontmatter.date, frontmatter.startTime); + if (!start) { + return null; + } + let end = void 0; + if (frontmatter.endTime) { + end = combineDateTimeStrings(frontmatter.endDate || frontmatter.date, frontmatter.endTime); + if (!end) { + return null; + } + } event = __spreadProps(__spreadValues({}, event), { - start: add(import_luxon2.DateTime.fromISO(frontmatter.date), parseTime(frontmatter.startTime || "")).toISO(), - end: frontmatter.endTime ? add(import_luxon2.DateTime.fromISO(frontmatter.endDate || frontmatter.date), parseTime(frontmatter.endTime)).toISO() : void 0 + start, + end, + extendedProps: { + isTask: frontmatter.completed !== void 0 && frontmatter.completed !== null, + taskCompleted: frontmatter.completed + } }); } else { event = __spreadProps(__spreadValues({}, event), { start: frontmatter.date, - end: frontmatter.endDate || void 0 + end: frontmatter.endDate || void 0, + extendedProps: { + isTask: frontmatter.completed !== void 0 && frontmatter.completed !== null, + taskCompleted: frontmatter.completed + } }); } } return event; } -function eventApiToFrontmatter(event) { +function fromEventApi(event) { const isRecurring = event.extendedProps.daysOfWeek !== void 0; const startDate = getDate(event.start); const endDate = getDate(event.end); @@ -52408,11 +55894,173 @@ function eventApiToFrontmatter(event) { daysOfWeek: event.extendedProps.daysOfWeek.map((i3) => DAYS[i3]), startRecur: event.extendedProps.startRecur && getDate(event.extendedProps.startRecur), endRecur: event.extendedProps.endRecur && getDate(event.extendedProps.endRecur) - } : __spreadValues({ + } : __spreadProps(__spreadValues({ type: "single", date: startDate - }, startDate !== endDate ? { endDate } : {})); + }, startDate !== endDate ? { endDate } : {}), { + completed: event.extendedProps.taskCompleted + })); +} + +// src/types.ts +var PLUGIN_SLUG = "full-calendar-plugin"; +function validateEvent(obj) { + if (obj === void 0) { + return null; + } + if (!obj.title) { + return null; + } + if (!obj.allDay && !obj.startTime) { + return null; + } + const timeInfo = obj.allDay ? { allDay: true } : { + startTime: obj.startTime, + endTime: obj.endTime + }; + if (obj.type === void 0 || obj.type === "single") { + if (!obj.date) { + return null; + } + return __spreadValues({ + title: obj.title, + type: "single", + date: obj.date, + endDate: obj.endDate, + completed: obj.completed + }, timeInfo); + } else if (obj.type === "recurring") { + if (obj.daysOfWeek === void 0) { + return null; + } + return __spreadValues({ + title: obj.title, + type: "recurring", + daysOfWeek: obj.daysOfWeek, + startRecur: obj.startRecur, + endRecur: obj.endRecur + }, timeInfo); + } + return null; +} +function makeDefaultPartialCalendarSource(type) { + if (type === "icloud") { + return { + type, + color: getComputedStyle(document.body).getPropertyValue("--interactive-accent").trim(), + url: "https://caldav.icloud.com" + }; + } + return { + type, + color: getComputedStyle(document.body).getPropertyValue("--interactive-accent").trim() + }; +} +var FCError = class { + constructor(message) { + this.message = message; + } +}; + +// src/models/util.ts +function getColors(color) { + let textVar = getComputedStyle(document.body).getPropertyValue("--text-on-accent"); + if (color) { + const m3 = color.slice(1).match(color.length == 7 ? /(\S{2})/g : /(\S{1})/g); + if (m3) { + const r3 = parseInt(m3[0], 16), g4 = parseInt(m3[1], 16), b3 = parseInt(m3[2], 16); + const brightness = (r3 * 299 + g4 * 587 + b3 * 114) / 1e3; + if (brightness > 150) { + textVar = "black"; + } + } + } + return { + color: color || getComputedStyle(document.body).getPropertyValue("--interactive-accent"), + textColor: textVar + }; +} + +// src/models/Event.ts +function basenameFromEvent(event) { + switch (event.type) { + case "single": + case void 0: + return `${event.date} ${event.title}`; + case "recurring": + return `(Every ${event.daysOfWeek.join(",")}) ${event.title})`; + } } +var _CalendarEvent = class { + constructor(cache, vault, data) { + this.cache = cache; + this.vault = vault; + this._data = data; + } + get isTask() { + return this._data.type === "single" && this._data.completed !== void 0 && this._data.completed !== null; + } + get idForCalendar() { + return this.PREFIX + _CalendarEvent.ID_SEPARATOR + this.identifier; + } + toCalendarEvent() { + return toEventInput(this.idForCalendar, this.data); + } + get data() { + return __spreadValues({}, this._data); + } + addTo(calendar, source) { + let event = this.toCalendarEvent(); + if (!event) { + console.error("Malformed event, will not add to calendar.", this); + return; + } + calendar.addEvent(__spreadValues(__spreadValues({}, event), getColors(source.color))); + } +}; +var CalendarEvent = _CalendarEvent; +CalendarEvent.ID_SEPARATOR = "::"; +var EditableEvent = class extends CalendarEvent { + constructor(cache, vault, data) { + super(cache, vault, data); + } + get editable() { + return true; + } + setIsTask(isTask) { + return __async(this, null, function* () { + if (this._data.type !== "single") { + return; + } + if (isTask && (this._data.completed === void 0 || this._data.completed === null)) { + yield this.setData(__spreadProps(__spreadValues({}, this._data), { completed: false })); + } else if (!isTask) { + yield this.setData(__spreadProps(__spreadValues({}, this._data), { completed: null })); + } + }); + } +}; +var LocalEvent = class extends EditableEvent { + constructor(cache, vault, data, directory, filename) { + super(cache, vault, data); + this.directory = directory; + this.filename = filename; + } + get file() { + const file = this.vault.getAbstractFileByPath(this.path); + if (file instanceof import_obsidian.TFile) { + return file; + } else { + throw new FCError(`Cannot find file for event at path ${this.path}.`); + } + } +}; + +// src/models/NoteEvent.ts +var import_obsidian3 = __toModule(require("obsidian")); + +// src/serialization/frontmatter.ts +var import_obsidian2 = __toModule(require("obsidian")); var FRONTMATTER_SEPARATOR = "---"; function hasFrontmatter(page) { return page.indexOf(FRONTMATTER_SEPARATOR) === 0 && page.slice(3).indexOf(FRONTMATTER_SEPARATOR) !== -1; @@ -52445,8 +56093,8 @@ function stringifyYamlAtom(v3) { } return result; } -function stringifyYamlLine(k2, v3) { - return `${String(k2)}: ${stringifyYamlAtom(v3)}`; +function stringifyYamlLine(k3, v3) { + return `${String(k3)}: ${stringifyYamlAtom(v3)}`; } function modifyFrontmatter(vault, file, modifications) { return __async(this, null, function* () { @@ -52455,13 +56103,13 @@ function modifyFrontmatter(vault, file, modifications) { const frontmatter = (_a = extractFrontmatter(page)) == null ? void 0 : _a.split("\n"); let newFrontmatter = []; if (!frontmatter) { - newFrontmatter = Object.entries(modifications).filter(([k2, v3]) => v3 !== void 0).map(([k2, v3]) => stringifyYamlLine(k2, v3)); + newFrontmatter = Object.entries(modifications).filter(([k3, v3]) => v3 !== void 0).map(([k3, v3]) => stringifyYamlLine(k3, v3)); page = "\n" + page; } else { const linesAdded = new Set(); for (let i3 = 0; i3 < frontmatter.length; i3++) { const line = frontmatter[i3]; - const obj = (0, import_obsidian.parseYaml)(line); + const obj = (0, import_obsidian2.parseYaml)(line); if (!obj) { continue; } @@ -52478,121 +56126,13 @@ function modifyFrontmatter(vault, file, modifications) { newFrontmatter.push(line); } } - newFrontmatter.push(...Object.keys(modifications).filter((k2) => !linesAdded.has(k2)).filter((k2) => modifications[k2] !== void 0).map((k2) => stringifyYamlLine(k2, modifications[k2]))); + newFrontmatter.push(...Object.keys(modifications).filter((k3) => !linesAdded.has(k3)).filter((k3) => modifications[k3] !== void 0).map((k3) => stringifyYamlLine(k3, modifications[k3]))); } const newPage = replaceFrontmatter(page, newFrontmatter.join("\n") + "\n"); yield vault.modify(file, newPage); }); } -// src/models/Event.ts -function basenameFromEvent(event) { - switch (event.type) { - case "single": - case void 0: - return `${event.date} ${event.title}`; - case "recurring": - return `(Every ${event.daysOfWeek.join(",")}) ${event.title})`; - } -} -var _CalendarEvent = class { - constructor(cache, vault, data) { - this.cache = cache; - this.vault = vault; - this._data = data; - } - get idForCalendar() { - return this.PREFIX + _CalendarEvent.ID_SEPARATOR + this.identifier; - } - toCalendarEvent() { - return parseFrontmatter(this.idForCalendar, this.data); - } - get data() { - return __spreadValues({}, this._data); - } - addTo(calendar, source) { - calendar.addEvent(__spreadValues({ - color: source.color || getComputedStyle(document.body).getPropertyValue("--interactive-accent"), - textColor: getComputedStyle(document.body).getPropertyValue("--text-on-accent") - }, this.toCalendarEvent())); - } -}; -var CalendarEvent = _CalendarEvent; -CalendarEvent.ID_SEPARATOR = "::"; -var EditableEvent = class extends CalendarEvent { - constructor(cache, vault, data) { - super(cache, vault, data); - } - get editable() { - return true; - } -}; -var LocalEvent = class extends EditableEvent { -}; - -// src/models/NoteEvent.ts -var import_obsidian2 = __toModule(require("obsidian")); - -// src/types.ts -var PLUGIN_SLUG = "full-calendar-plugin"; -function validateFrontmatter(obj) { - if (obj === void 0) { - return null; - } - if (!obj.title) { - return null; - } - if (!obj.allDay && !obj.startTime) { - return null; - } - const timeInfo = obj.allDay ? { allDay: true } : { - allDay: false, - startTime: obj.startTime, - endTime: obj.endTime - }; - if (obj.type === void 0 || obj.type === "single") { - if (!obj.date) { - return null; - } - return __spreadValues({ - title: obj.title, - type: "single", - date: obj.date, - endDate: obj.endDate - }, timeInfo); - } else if (obj.type === "recurring") { - if (obj.daysOfWeek === void 0) { - return null; - } - return __spreadValues({ - title: obj.title, - type: "recurring", - daysOfWeek: obj.daysOfWeek, - startRecur: obj.startRecur, - endRecur: obj.endRecur - }, timeInfo); - } - return null; -} -function makeDefaultPartialCalendarSource(type) { - if (type === "icloud") { - return { - type, - color: getComputedStyle(document.body).getPropertyValue("--interactive-accent").trim(), - url: "https://caldav.icloud.com" - }; - } - return { - type, - color: getComputedStyle(document.body).getPropertyValue("--interactive-accent").trim() - }; -} -var FCError = class { - constructor(message) { - this.message = message; - } -}; - // src/models/NoteEvent.ts var _NoteEvent = class extends LocalEvent { get path() { @@ -52605,9 +56145,7 @@ var _NoteEvent = class extends LocalEvent { return _NoteEvent.ID_PREFIX; } constructor(cache, vault, data, { directory, filename }) { - super(cache, vault, data); - this.directory = directory; - this.filename = filename; + super(cache, vault, data, directory, filename); } static create(cache, vault, directory, data) { return __async(this, null, function* () { @@ -52634,7 +56172,7 @@ var _NoteEvent = class extends LocalEvent { } static fromFile(cache, vault, file) { var _a; - let data = validateFrontmatter((_a = cache.getFileCache(file)) == null ? void 0 : _a.frontmatter); + let data = validateEvent((_a = cache.getFileCache(file)) == null ? void 0 : _a.frontmatter); if (!data) return null; if (!data.title) { @@ -52647,7 +56185,7 @@ var _NoteEvent = class extends LocalEvent { } static fromPath(cache, vault, path) { const file = vault.getAbstractFileByPath(path); - if (!(file instanceof import_obsidian2.TFile)) { + if (!(file instanceof import_obsidian3.TFile)) { throw new FCError(`File not found at path: ${path}`); } const event = this.fromFile(cache, vault, file); @@ -52663,17 +56201,9 @@ var _NoteEvent = class extends LocalEvent { } delete() { return __async(this, null, function* () { - yield this.vault.delete(this.file); + yield this.vault.trash(this.file, true); }); } - get file() { - const file = this.vault.getAbstractFileByPath(this.path); - if (file instanceof import_obsidian2.TFile) { - return file; - } else { - throw new FCError(`Cannot find file for NoteEvent at path ${this.path}.`); - } - } setDirectory(newDirectory) { return __async(this, null, function* () { if (this.directory.startsWith(newDirectory)) { @@ -52742,23 +56272,372 @@ var _CalDAVEvent = class extends CalendarEvent { var CalDAVEvent = _CalDAVEvent; CalDAVEvent.ID_PREFIX = "caldav"; +// src/models/DailyNoteEvent.ts +var import_moment = __toModule(require_moment()); +var import_obsidian4 = __toModule(require("obsidian")); +var import_obsidian_daily_notes_interface2 = __toModule(require_main()); + +// src/serialization/inline.ts +var parseBool = (s4) => s4 === "true" ? true : s4 === "false" ? false : s4; +var fieldRegex = /\[([^\]]+):: ?([^\]]+)\]/g; +function getInlineAttributes(s4) { + return Object.fromEntries(Array.from(s4.matchAll(fieldRegex)).map((m3) => [m3[1], parseBool(m3[2])])); +} +var getHeadingPosition = (headingText, metadata, endOfDoc) => { + if (!metadata.headings) { + return null; + } + let level = null; + let startingPos = null; + let endingPos = null; + for (const heading of metadata.headings) { + if (!level && heading.heading === headingText) { + level = heading.level; + startingPos = heading.position; + } else if (level && heading.level <= level) { + endingPos = heading.position; + break; + } + } + if (!level || !startingPos) { + return null; + } + return { start: startingPos.end, end: (endingPos == null ? void 0 : endingPos.start) || endOfDoc }; +}; +var getListsUnderHeading = (headingText, metadata) => { + var _a, _b, _c; + if (!metadata.listItems) { + return []; + } + const endOfDoc = (_b = (_a = metadata.sections) == null ? void 0 : _a.last()) == null ? void 0 : _b.position.end; + if (!endOfDoc) { + return []; + } + const headingPos = getHeadingPosition(headingText, metadata, endOfDoc); + if (!headingPos) { + return []; + } + return (_c = metadata.listItems) == null ? void 0 : _c.filter((l4) => headingPos.start.offset < l4.position.start.offset && l4.position.end.offset <= headingPos.end.offset); +}; +var listRegex = /^(\s*)\-\s+(\[(.)\]\s+)?/; +var checkboxRegex = /^\s*\-\s+\[(.)\]\s+/; +var checkboxTodo = (s4) => { + const match2 = s4.match(checkboxRegex); + if (!match2 || !match2[1]) { + return null; + } + return match2[1] === " " ? false : match2[1]; +}; +var getInlineEventFromLine = (text, globalAttrs) => { + const attrs = getInlineAttributes(text); + if (Object.keys(attrs).length === 0) { + return null; + } + return validateEvent(__spreadValues(__spreadValues({ + title: text.replace(listRegex, "").replace(fieldRegex, "").trim(), + completed: checkboxTodo(text) + }, globalAttrs), attrs)); +}; +function getAllInlineEventsFromFile(fileText, listItems, fileGlobalAttrs) { + const lines = fileText.split("\n"); + const listItemText = listItems.map((i3) => i3.position.start.line).map((idx) => ({ lineNumber: idx, text: lines[idx] })); + return listItemText.map((l4) => ({ + lineNumber: l4.lineNumber, + event: getInlineEventFromLine(l4.text, __spreadProps(__spreadValues({}, fileGlobalAttrs), { + type: "single" + })) + })).flatMap(({ event, lineNumber }) => event ? [{ event, lineNumber }] : []); +} +function withFile(vault, file, processText) { + return (params) => __async(this, null, function* () { + const modifiedFile = processText(yield vault.read(file), params); + if (!modifiedFile) { + return; + } + return vault.modify(file, modifiedFile); + }); +} +var generateInlineAttributes = (attrs) => { + return Object.entries(attrs).map(([k3, v3]) => `[${k3}:: ${v3}]`).join(" "); +}; +var makeListItem = (data, whitespacePrefix = "") => { + const { completed, title } = data; + const checkbox = (() => { + if (completed !== null && completed !== void 0) { + return `[${completed ? "x" : " "}]`; + } + return null; + })(); + const attrs = __spreadValues({}, data); + delete attrs["completed"]; + delete attrs["title"]; + delete attrs["type"]; + delete attrs["date"]; + for (const key of Object.keys(attrs)) { + if (attrs[key] === void 0 || attrs[key] === null) { + delete attrs[key]; + } + } + if (!attrs["allDay"]) { + delete attrs["allDay"]; + } + return `${whitespacePrefix}- ${checkbox || ""} ${title} ${generateInlineAttributes(attrs)}`; +}; +var modifyListItem = (page, { lineNumber, data }) => { + let lines = page.split("\n"); + let line = lines[lineNumber]; + const listMatch = line.match(listRegex); + if (!listMatch) { + console.warn("Tried modifying a list item with a position that wasn't a list item", { lineNumber, line }); + return null; + } + lines[lineNumber] = makeListItem(data, listMatch[1]); + return lines.join("\n"); +}; +var addToHeading = (page, { heading, item, headingText }) => { + let lines = page.split("\n"); + const listItem = makeListItem(item); + if (heading) { + const headingLine = heading.position.start.line; + lines.splice(headingLine + 1, 0, listItem); + } else { + lines.push(`## ${headingText}`); + lines.push(listItem); + } + return lines.join("\n"); +}; + +// src/models/DailyNoteSource.ts +var import_obsidian_daily_notes_interface = __toModule(require_main()); + +// src/models/EventSource.ts +var EventSource = class { +}; + +// src/models/DailyNoteSource.ts +var DATE_FORMAT = "YYYY-MM-DD"; +var DailyNoteSource = class extends EventSource { + constructor(vault, cache, info) { + super(); + this.vault = vault; + this.cache = cache; + this.info = info; + } + getAllEventDataFromFile(f3) { + return __async(this, null, function* () { + var _a; + const fileDate = (_a = (0, import_obsidian_daily_notes_interface.getDateFromPath)(f3.path, "day")) == null ? void 0 : _a.format(DATE_FORMAT); + if (!fileDate) { + return null; + } + const cache = this.cache.getFileCache(f3); + if (!cache) { + return null; + } + const listItems = getListsUnderHeading(this.info.heading, cache); + const text = yield this.vault.cachedRead(f3); + return getAllInlineEventsFromFile(text, listItems, { + date: fileDate + }); + }); + } + getAllEventsFromFile(f3) { + return __async(this, null, function* () { + var _a; + let i3 = 0; + return (_a = yield this.getAllEventDataFromFile(f3)) == null ? void 0 : _a.map(({ event, lineNumber }) => { + const evt = toEventInput(`dailynote::${f3.path}::${i3}`, event); + if (evt) { + ++i3; + evt.extendedProps = __spreadProps(__spreadValues({}, evt.extendedProps || {}), { + lineNumber + }); + } + return evt; + }); + }); + } + toApi() { + return __async(this, null, function* () { + if (!(0, import_obsidian_daily_notes_interface.appHasDailyNotesPluginLoaded)()) { + console.warn("Daily note calendar can't be loaded without daily notes plugin."); + return new FCError("Daily note calendar cannot be loaded without daily notes plugin."); + } + const notes = (0, import_obsidian_daily_notes_interface.getAllDailyNotes)(); + const events = (yield Promise.all(Object.values(notes).map((f3) => this.getAllEventsFromFile(f3)))).flat().flatMap((e3) => e3 ? [e3] : []); + return __spreadValues({ + events + }, getColors(this.info.color)); + }); + } +}; + +// src/models/DailyNoteEvent.ts +var _DailyNoteEvent = class extends LocalEvent { + constructor(cache, vault, data, { + directory, + filename, + heading, + lineNumber + }) { + super(cache, vault, data, directory, filename); + this.lineNumber = lineNumber; + this.heading = heading; + } + openIn(leaf) { + return __async(this, null, function* () { + yield leaf.openFile(this.file); + if (leaf.view instanceof import_obsidian4.MarkdownView) { + leaf.view.editor.setCursor({ + line: this.lineNumber, + ch: 0 + }); + } + }); + } + static fromFile(cache, vault, file, lineNumber, heading) { + return __async(this, null, function* () { + var _a; + const contents = yield vault.read(file); + const lines = contents.split("\n"); + const line = lines[lineNumber]; + const date = (_a = (0, import_obsidian_daily_notes_interface2.getDateFromPath)(file.path, "day")) == null ? void 0 : _a.format(DATE_FORMAT); + if (!date) { + return null; + } + const event = getInlineEventFromLine(line, { date }); + if (!event) { + return null; + } + return new _DailyNoteEvent(cache, vault, event, { + directory: file.parent.path, + filename: file.name, + lineNumber, + heading + }); + }); + } + static fromPath(cache, vault, path, lineNumber, heading) { + return __async(this, null, function* () { + const file = vault.getAbstractFileByPath(path); + if (!(file instanceof import_obsidian4.TFile)) { + throw new FCError(`File not found at path: ${path}`); + } + return this.fromFile(cache, vault, file, lineNumber, heading); + }); + } + get path() { + return `${this.directory}/${this.filename}`; + } + static create(cache, vault, heading, data) { + return __async(this, null, function* () { + var _a, _b; + if (data.type === "recurring") { + return null; + } + const m3 = (0, import_moment.default)(data.date); + let file = (0, import_obsidian_daily_notes_interface2.getDailyNote)(m3, (0, import_obsidian_daily_notes_interface2.getAllDailyNotes)()); + if (!file) { + file = yield (0, import_obsidian_daily_notes_interface2.createDailyNote)(m3); + } + yield vault.cachedRead(file); + const headingCache = (_b = (_a = cache.getFileCache(file)) == null ? void 0 : _a.headings) == null ? void 0 : _b.find((h3) => h3.heading == heading); + let contents = yield vault.read(file); + contents = addToHeading(contents, { + heading: headingCache, + item: data, + headingText: heading + }); + yield vault.modify(file, contents); + }); + } + setData(newData) { + return __async(this, null, function* () { + const oldData = this.data; + if (newData.type === "recurring" || oldData.type === "recurring") { + throw new Error("Recurring events in daily notes are not supported."); + } + if (newData.endDate || oldData.endDate) { + throw new Error("Multi-day events in daily notes are not supported."); + } + this._data = newData; + if (newData.date !== oldData.date) { + const m3 = (0, import_moment.default)(newData.date); + let note = (0, import_obsidian_daily_notes_interface2.getDailyNote)(m3, (0, import_obsidian_daily_notes_interface2.getAllDailyNotes)()); + if (!note) { + note = yield (0, import_obsidian_daily_notes_interface2.createDailyNote)(m3); + } + yield this.removeFromFile(); + yield this.addToFile(note); + } else { + yield withFile(this.vault, this.file, modifyListItem)({ lineNumber: this.lineNumber, data: newData }); + } + }); + } + removeFromFile() { + return __async(this, null, function* () { + const file = this.file; + let lines = (yield this.vault.read(file)).split("\n"); + lines.splice(this.lineNumber, 1); + yield this.vault.modify(file, lines.join("\n")); + this.lineNumber = -1; + }); + } + addToFile(file) { + return __async(this, null, function* () { + var _a, _b; + const heading = (_b = (_a = this.cache.getFileCache(file)) == null ? void 0 : _a.headings) == null ? void 0 : _b.find((h3) => h3.heading == this.heading); + if (this.data.type !== "single") { + throw new FCError("Daily note calendar does not support recurring events."); + } + yield withFile(this.vault, file, addToHeading)({ heading, item: this.data, headingText: this.heading }); + this.directory = file.parent.path; + this.filename = file.name; + }); + } + delete() { + return __async(this, null, function* () { + this.removeFromFile(); + }); + } + get identifier() { + return `${this.path}${CalendarEvent.ID_SEPARATOR}${this.lineNumber}`; + } + get PREFIX() { + return _DailyNoteEvent.ID_PREFIX; + } +}; +var DailyNoteEvent = _DailyNoteEvent; +DailyNoteEvent.ID_PREFIX = "dailynote"; + // src/models/index.ts -function eventFromCalendarId(cache, vault, id) { +function eventFromApi(cache, vault, settings, event) { return __async(this, null, function* () { - const [prefix, ...rest] = id.split("::"); - const info = rest.join("::"); + const [prefix, ...rest] = event.id.split(CalendarEvent.ID_SEPARATOR); switch (prefix) { case ICSEvent.ID_PREFIX: case CalDAVEvent.ID_PREFIX: throw new FCError("Cannot create instance of ICS event given its ID."); - case NoteEvent.ID_PREFIX: - return NoteEvent.fromPath(cache, vault, info); + case NoteEvent.ID_PREFIX: { + const path = rest.join(CalendarEvent.ID_SEPARATOR); + return NoteEvent.fromPath(cache, vault, path); + } + case DailyNoteEvent.ID_PREFIX: { + const [path, idx] = rest; + const { lineNumber } = event.extendedProps; + const dailyNoteCal = settings.calendarSources.flatMap((c3) => c3.type === "dailynote" ? [c3] : [])[0]; + if (!dailyNoteCal) { + throw new FCError("Daily note calendar not loaded."); + } + return DailyNoteEvent.fromPath(cache, vault, path, lineNumber, dailyNoteCal.heading); + } } }); } -// src/modal.ts -var EventModal = class extends import_obsidian3.Modal { +// src/ui/modal.ts +var import_obsidian_daily_notes_interface3 = __toModule(require_main()); +var EventModal = class extends import_obsidian5.Modal { constructor(app, plugin, calendar, event) { super(app); this.plugin = plugin; @@ -52769,16 +56648,16 @@ var EventModal = class extends import_obsidian3.Modal { return __async(this, null, function* () { let frontmatter = null; if (input instanceof EventApi) { - const event = yield eventFromCalendarId(this.app.metadataCache, this.app.vault, input.id); + const event = yield eventFromApi(this.app.metadataCache, this.app.vault, this.plugin.settings, input); if (event) { this.data = event.data; this.event = event; this.open(); } else { - new import_obsidian3.Notice("Full Calendar: No frontmatter to edit for selected event."); - console.warn("Full Calendar: No frontmatter to edit for selected event."); + new import_obsidian5.Notice("Full Calendar: Selected event cannot be edited."); + console.warn("Full Calendar: Selected event cannot be edited.", input); } - } else if (input instanceof import_obsidian3.TFile) { + } else if (input instanceof import_obsidian5.TFile) { const e3 = NoteEvent.fromFile(this.app.metadataCache, this.app.vault, input); frontmatter = e3 == null ? void 0 : e3.data; this.file = input; @@ -52792,36 +56671,47 @@ var EventModal = class extends import_obsidian3.Modal { return __async(this, null, function* () { const { contentEl } = this; yield this.plugin.loadSettings(); + const calIdx = (() => { + const event = this.event; + if (!event) { + return null; + } + if (!(event instanceof LocalEvent)) { + return null; + } + return this.plugin.settings.calendarSources.flatMap((c3) => c3.type == "local" || c3.type == "dailynote" ? [c3] : []).findIndex((c3) => event.directory.startsWith(c3.type === "local" ? c3.directory : (0, import_obsidian_daily_notes_interface3.getDailyNoteSettings)().folder || "::UNMATCHABLE::")); + })(); ReactDOM.render(React2.createElement(EditEvent, { initialEvent: this.data, submit: (data, calendarIndex) => __async(this, null, function* () { - const source = this.plugin.settings.calendarSources.filter((s3) => s3.type === "local")[calendarIndex]; - if (source.type !== "local") { - new import_obsidian3.Notice("Sorry, remote sync is currently read-only."); - this.close(); - return; - } - const directory = source.directory; + const source = this.plugin.settings.calendarSources.flatMap((s4) => s4.type === "local" || s4.type === "dailynote" ? [s4] : [])[calendarIndex]; try { - if (this.file && !this.event) { - NoteEvent.upgrade(this.app.metadataCache, this.app.vault, this.file, data); - } else if (!this.event) { - NoteEvent.create(this.app.metadataCache, this.app.vault, directory, data); + if (!this.event) { + if (source.type === "local") { + const directory = source.directory; + if (this.file) { + NoteEvent.upgrade(this.app.metadataCache, this.app.vault, this.file, data); + } else { + NoteEvent.create(this.app.metadataCache, this.app.vault, directory, data); + } + } else if (source.type === "dailynote") { + DailyNoteEvent.create(this.app.metadataCache, this.app.vault, source.heading, data); + } } else { if (this.event instanceof EditableEvent) { yield this.event.setData(data); - if (this.event instanceof NoteEvent) { - yield this.event.setDirectory(directory); + if (source.type === "local" && this.event instanceof NoteEvent) { + yield this.event.setDirectory(source.directory); } } } } catch (e3) { - new import_obsidian3.Notice(e3.message); + new import_obsidian5.Notice(e3.message); } finally { this.close(); } }), - defaultCalendarIndex: this.plugin.settings.defaultCalendar, + defaultCalendarIndex: calIdx || this.plugin.settings.defaultCalendar, calendars: this.plugin.settings.calendarSources, open: this.event instanceof LocalEvent ? () => __async(this, null, function* () { if (this.event instanceof LocalEvent) { @@ -52844,7 +56734,7 @@ var EventModal = class extends import_obsidian3.Modal { ReactDOM.unmountComponentAtNode(contentEl); } }; -var ReactModal = class extends import_obsidian3.Modal { +var ReactModal = class extends import_obsidian5.Modal { constructor(app, onOpenCallback) { super(app); this.onOpenCallback = onOpenCallback; @@ -52861,8 +56751,8 @@ var ReactModal = class extends import_obsidian3.Modal { } }; -// src/models/EventSource.ts -var import_obsidian5 = __toModule(require("obsidian")); +// src/models/IcsSource.ts +var import_obsidian6 = __toModule(require("obsidian")); // vendor/fullcalendar-ical/ical-expander/IcalExpander.js var ICAL2 = __toModule(require_ical()); @@ -53000,14 +56890,115 @@ function specifiesEnd2(iCalEvent) { return Boolean(iCalEvent.component.getFirstProperty("dtend")) || Boolean(iCalEvent.component.getFirstProperty("duration")); } -// src/models/EventSource.ts +// src/models/IcsSource.ts +var IcsSource = class extends EventSource { + constructor(info) { + super(); + this.info = info; + } + toApi() { + return __async(this, null, function* () { + let url = this.info.url; + if (url.startsWith("webcal")) { + url = "https" + url.slice("webcal".length); + } + let expander = null; + const getExpander = () => __async(this, null, function* () { + if (expander !== null) { + return expander; + } + try { + let text = yield (0, import_obsidian6.request)({ + url, + method: "GET" + }); + expander = makeICalExpander(text); + return expander; + } catch (e3) { + console.error(`Error loading calendar from ${url}`); + console.error(e3); + return new FCError(`There was an error loading a calendar. Check the console for full details.`); + } + }); + return __spreadValues({ + events: function(_0) { + return __async(this, arguments, function* ({ start, end }) { + const ical = yield getExpander(); + if (ical instanceof FCError) { + throw new Error("Could not get calendar: " + ical.message); + } + const events = expandICalEvents2(ical, { + start, + end + }); + return events; + }); + }, + editable: false + }, getColors(this.info.color)); + }); + } +}; + +// src/models/NoteSource.ts +var import_obsidian7 = __toModule(require("obsidian")); +var NoteSource = class extends EventSource { + constructor(vault, cache, info) { + super(); + this.vault = vault; + this.cache = cache; + this.info = info; + } + getEventInputsFromPath(recursive, path) { + return __async(this, null, function* () { + const eventFolder = this.vault.getAbstractFileByPath(path || this.info.directory); + if (!(eventFolder instanceof import_obsidian7.TFolder)) { + return new FCError("Directory"); + } + let events = []; + for (let file of eventFolder.children) { + if (file instanceof import_obsidian7.TFile) { + let event = NoteEvent.fromFile(this.cache, this.vault, file); + if (event) { + let calEvent = event.toCalendarEvent(); + if (calEvent) { + events.push(calEvent); + } else { + console.error("FC: Event malformed, will not add to calendar.", event); + } + } + } else if (recursive) { + const childEvents = yield this.getEventInputsFromPath(recursive, file.path); + if (childEvents instanceof FCError) { + return childEvents; + } + events.push(...childEvents); + } + } + return events; + }); + } + toApi(recursive = false) { + return __async(this, null, function* () { + const events = yield this.getEventInputsFromPath(recursive); + if (events instanceof FCError) { + return events; + } + return __spreadValues({ + events + }, getColors(this.info.color)); + }); + } +}; + +// src/models/RemoteSource.ts var import_color = __toModule(require_color()); var dav = __toModule(require_dav()); -// src/transport.ts +// src/caldav/transport.ts var import_co = __toModule(require_co()); var import_dav = __toModule(require_dav()); -var import_obsidian4 = __toModule(require("obsidian")); +var import_obsidian8 = __toModule(require("obsidian")); var RequestBridge = class { constructor(credentials) { this.headers = {}; @@ -53043,7 +57034,7 @@ var Basic = class extends import_dav.transport.Transport { transformRequest(requestBridge); let result; try { - let response = (0, import_obsidian4.request)({ + let response = (0, import_obsidian8.request)({ url, method: request3.method, contentType: requestBridge.contentType, @@ -53062,104 +57053,7 @@ var Basic = class extends import_dav.transport.Transport { } }; -// src/models/EventSource.ts -var EventSource = class { -}; -var NoteSource = class extends EventSource { - constructor(vault, cache, info) { - super(); - this.vault = vault; - this.cache = cache; - this.info = info; - } - getEventInputsFromPath(recursive, path) { - return __async(this, null, function* () { - const eventFolder = this.vault.getAbstractFileByPath(path || this.info.directory); - if (!(eventFolder instanceof import_obsidian5.TFolder)) { - return new FCError("Directory"); - } - let events = []; - for (let file of eventFolder.children) { - if (file instanceof import_obsidian5.TFile) { - let event = NoteEvent.fromFile(this.cache, this.vault, file); - if (event) { - events.push(event.toCalendarEvent()); - } - } else if (recursive) { - const childEvents = yield this.getEventInputsFromPath(recursive, file.path); - if (childEvents instanceof FCError) { - return childEvents; - } - events.push(...childEvents); - } - } - return events; - }); - } - toApi(recursive = false) { - return __async(this, null, function* () { - const events = yield this.getEventInputsFromPath(recursive); - if (events instanceof FCError) { - return events; - } - return { - events, - textColor: getComputedStyle(document.body).getPropertyValue("--text-on-accent"), - color: this.info.color || getComputedStyle(document.body).getPropertyValue("--interactive-accent") - }; - }); - } -}; -var IcsSource = class extends EventSource { - constructor(info) { - super(); - this.info = info; - } - toApi() { - return __async(this, null, function* () { - let url = this.info.url; - if (url.startsWith("webcal")) { - url = "https" + url.slice("webcal".length); - } - let expander = null; - const getExpander = () => __async(this, null, function* () { - if (expander !== null) { - return expander; - } - try { - let text = yield (0, import_obsidian5.request)({ - url, - method: "GET" - }); - expander = makeICalExpander(text); - return expander; - } catch (e3) { - console.error(`Error loading calendar from ${url}`); - console.error(e3); - return new FCError(`There was an error loading a calendar. Check the console for full details.`); - } - }); - return { - events: function(_0) { - return __async(this, arguments, function* ({ start, end }) { - const ical = yield getExpander(); - if (ical instanceof FCError) { - throw new Error("Could not get calendar: " + ical.message); - } - const events = expandICalEvents2(ical, { - start, - end - }); - return events; - }); - }, - editable: false, - textColor: getComputedStyle(document.body).getPropertyValue("--text-on-accent"), - color: this.info.color || getComputedStyle(document.body).getPropertyValue("--interactive-accent") - }; - }); - } -}; +// src/models/RemoteSource.ts var RemoteSource = class extends EventSource { constructor(info) { super(); @@ -53248,7 +57142,7 @@ var RemoteSource = class extends EventSource { ]; } }); - return { + return __spreadValues({ events: function(_0) { return __async(this, arguments, function* ({ start, end }) { const icals = yield getExpanders(); @@ -53267,18 +57161,17 @@ var RemoteSource = class extends EventSource { return events; }); }, - editable: false, - textColor: getComputedStyle(document.body).getPropertyValue("--text-on-accent"), - color: this.info.color || getComputedStyle(document.body).getPropertyValue("--interactive-accent") - }; + editable: false + }, getColors(this.info.color)); }); } }; -// src/settings.ts -var import_obsidian6 = __toModule(require("obsidian")); +// src/ui/settings.ts +var import_obsidian10 = __toModule(require("obsidian")); -// src/components/CalendarSetting.tsx +// src/ui/components/CalendarSetting.tsx +var import_obsidian9 = __toModule(require("obsidian")); var React3 = __toModule(require_react()); function DirectorySetting({ source @@ -53297,6 +57190,25 @@ function DirectorySetting({ } })); } +function HeadingSetting({ + source +}) { + let sourceWithHeading = source; + return /* @__PURE__ */ React3.createElement("div", { + className: "setting-item-control", + style: { display: "block", textAlign: "center" } + }, /* @__PURE__ */ React3.createElement("span", null, "Under heading"), " ", /* @__PURE__ */ React3.createElement("input", { + disabled: true, + type: "text", + value: sourceWithHeading.heading, + style: { + marginLeft: 4, + marginRight: 4 + } + }), " ", /* @__PURE__ */ React3.createElement("span", { + style: { paddingRight: ".5rem" } + }, "in daily notes")); +} function UrlSetting({ source }) { @@ -53362,6 +57274,8 @@ var CalendarSettingRow = ({ style: { maxWidth: "15%" } }, "\u2715"), setting.type === "local" ? /* @__PURE__ */ React3.createElement(DirectorySetting, { source: setting + }) : setting.type === "dailynote" ? /* @__PURE__ */ React3.createElement(HeadingSetting, { + source: setting }) : /* @__PURE__ */ React3.createElement(UrlSetting, { source: setting }), isCalDAV && /* @__PURE__ */ React3.createElement(NameSetting, { @@ -53389,9 +57303,9 @@ var CalendarSettings = class extends React3.Component { render() { return /* @__PURE__ */ React3.createElement("div", { style: { width: "100%" } - }, this.state.sources.map((s3, idx) => /* @__PURE__ */ React3.createElement(CalendarSettingRow, { + }, this.state.sources.map((s4, idx) => /* @__PURE__ */ React3.createElement(CalendarSettingRow, { key: idx, - setting: s3, + setting: s4, onColorChange: (color) => this.setState((state, props) => ({ sources: [ ...state.sources.slice(0, idx), @@ -53411,6 +57325,10 @@ var CalendarSettings = class extends React3.Component { className: "setting-item-control" }, this.state.dirty && /* @__PURE__ */ React3.createElement("button", { onClick: () => { + if (this.state.sources.filter((s4) => s4.type === "dailynote").length > 1) { + new import_obsidian9.Notice("Only one daily note calendar is allowed."); + return; + } this.props.submit(this.state.sources.map((elt) => elt)); this.setState({ dirty: false }); }, @@ -53422,7 +57340,7 @@ var CalendarSettings = class extends React3.Component { } }; -// src/components/AddCalendarSource.tsx +// src/ui/components/AddCalendarSource.tsx var React4 = __toModule(require_react()); var import_react2 = __toModule(require_react()); function DirectorySelect({ @@ -53446,8 +57364,8 @@ function DirectorySelect({ }, /* @__PURE__ */ React4.createElement("select", { required: true, value: sourceWithDirectory.directory || "", - onChange: changeListener((x3) => __spreadProps(__spreadValues({}, sourceWithDirectory), { - directory: x3 + onChange: changeListener((x4) => __spreadProps(__spreadValues({}, sourceWithDirectory), { + directory: x4 })) }, /* @__PURE__ */ React4.createElement("option", { value: "", @@ -53477,7 +57395,7 @@ function ColorPicker({ type: "color", value: source.color, style: { maxWidth: "25%", minWidth: "3rem" }, - onChange: changeListener((x3) => __spreadProps(__spreadValues({}, source), { color: x3 })) + onChange: changeListener((x4) => __spreadProps(__spreadValues({}, source), { color: x4 })) }))); } function UrlInput({ @@ -53499,8 +57417,8 @@ function UrlInput({ required: true, type: "text", value: sourceWithUrl.url || "", - onChange: changeListener((x3) => __spreadProps(__spreadValues({}, sourceWithUrl), { - url: x3 + onChange: changeListener((x4) => __spreadProps(__spreadValues({}, sourceWithUrl), { + url: x4 })) }))); } @@ -53523,8 +57441,46 @@ function UsernameInput({ required: true, type: "text", value: sourceWithUsername.username || "", - onChange: changeListener((x3) => __spreadProps(__spreadValues({}, sourceWithUsername), { - username: x3 + onChange: changeListener((x4) => __spreadProps(__spreadValues({}, sourceWithUsername), { + username: x4 + })) + }))); +} +function HeadingInput({ + source, + changeListener, + headings +}) { + let sourceWithHeading = source; + return /* @__PURE__ */ React4.createElement("div", { + className: "setting-item" + }, /* @__PURE__ */ React4.createElement("div", { + className: "setting-item-info" + }, /* @__PURE__ */ React4.createElement("div", { + className: "setting-item-name" + }, "Heading"), /* @__PURE__ */ React4.createElement("div", { + className: "setting-item-description" + }, "Heading to store events under in the daily note.")), /* @__PURE__ */ React4.createElement("div", { + className: "setting-item-control" + }, headings.length > 0 ? /* @__PURE__ */ React4.createElement("select", { + required: true, + value: sourceWithHeading.heading || "", + onChange: changeListener((x4) => __spreadProps(__spreadValues({}, sourceWithHeading), { + heading: x4 + })) + }, /* @__PURE__ */ React4.createElement("option", { + value: "", + disabled: true, + hidden: true + }, "Choose a heading"), headings.map((o2, idx) => /* @__PURE__ */ React4.createElement("option", { + key: idx, + value: o2 + }, o2))) : /* @__PURE__ */ React4.createElement("input", { + required: true, + type: "text", + value: sourceWithHeading.heading || "", + onChange: changeListener((x4) => __spreadProps(__spreadValues({}, sourceWithHeading), { + heading: x4 })) }))); } @@ -53547,14 +57503,15 @@ function PasswordInput({ required: true, type: "password", value: sourceWithPassword.password || "", - onChange: changeListener((x3) => __spreadProps(__spreadValues({}, sourceWithPassword), { - password: x3 + onChange: changeListener((x4) => __spreadProps(__spreadValues({}, sourceWithPassword), { + password: x4 })) }))); } var AddCalendarSource = ({ source, directories, + headings, submit }) => { const isCalDAV = source.type === "caldav" || source.type === "icloud"; @@ -53583,10 +57540,14 @@ var AddCalendarSource = ({ source: setting, changeListener: makeChangeListener2, directories - }), source.type !== "local" && source.type !== "icloud" && /* @__PURE__ */ React4.createElement(UrlInput, { + }), source.type === "dailynote" && /* @__PURE__ */ React4.createElement(HeadingInput, { + source: setting, + changeListener: makeChangeListener2, + headings + }), source.type === "gcal" || source.type === "ical" || source.type === "caldav" ? /* @__PURE__ */ React4.createElement(UrlInput, { source: setting, changeListener: makeChangeListener2 - }), isCalDAV && /* @__PURE__ */ React4.createElement(UsernameInput, { + }) : null, isCalDAV && /* @__PURE__ */ React4.createElement(UsernameInput, { source: setting, changeListener: makeChangeListener2 }), isCalDAV && /* @__PURE__ */ React4.createElement(PasswordInput, { @@ -53605,14 +57566,20 @@ var AddCalendarSource = ({ }, submitText))))); }; -// src/settings.ts +// src/ui/settings.ts var ReactDOM2 = __toModule(require_react_dom()); var import_react3 = __toModule(require_react()); +var import_obsidian_daily_notes_interface4 = __toModule(require_main()); var DEFAULT_SETTINGS = { calendarSources: [], defaultCalendar: 0, recursiveLocal: false, - firstDay: 0 + firstDay: 0, + initialView: { + desktop: "timeGridWeek", + mobile: "timeGrid3Days" + }, + timeFormat24h: false }; var WEEKDAYS = [ "Sunday", @@ -53623,11 +57590,25 @@ var WEEKDAYS = [ "Friday", "Saturday" ]; +var INITIAL_VIEW_OPTIONS = { + DESKTOP: { + timeGridDay: "Day", + timeGridWeek: "Week", + dayGridMonth: "Month", + listWeek: "List" + }, + MOBILE: { + timeGrid3Days: "3 Days", + timeGridDay: "Day", + listWeek: "List" + } +}; function addCalendarButton(app, plugin, containerEl, submitCallback, listUsedDirectories) { let dropdown; - const directories = app.vault.getAllLoadedFiles().filter((f3) => f3 instanceof import_obsidian6.TFolder).map((f3) => f3.path); - return new import_obsidian6.Setting(containerEl).setName("Calendars").setDesc("Add calendar").addDropdown((d3) => dropdown = d3.addOptions({ - local: "Local", + const directories = app.vault.getAllLoadedFiles().filter((f3) => f3 instanceof import_obsidian10.TFolder).map((f3) => f3.path); + return new import_obsidian10.Setting(containerEl).setName("Calendars").setDesc("Add calendar").addDropdown((d2) => dropdown = d2.addOptions({ + local: "Full note", + dailynote: "Daily Note", icloud: "iCloud", caldav: "CalDAV", ical: "Remote (.ics format)" @@ -53636,16 +57617,29 @@ function addCalendarButton(app, plugin, containerEl, submitCallback, listUsedDir button.setIcon("plus-with-circle"); button.onClick(() => { let modal = new ReactModal(app, () => __async(this, null, function* () { + var _a, _b; yield plugin.loadSettings(); - const usedDirectories = (listUsedDirectories ? listUsedDirectories : () => plugin.settings.calendarSources.map((s3) => s3.type === "local" && s3.directory).filter((s3) => !!s3))(); + const usedDirectories = (listUsedDirectories ? listUsedDirectories : () => plugin.settings.calendarSources.map((s4) => s4.type === "local" && s4.directory).filter((s4) => !!s4))(); + let headings = []; + let { template } = (0, import_obsidian_daily_notes_interface4.getDailyNoteSettings)(); + if (template) { + if (!template.endsWith(".md")) { + template += ".md"; + } + const file = app.vault.getAbstractFileByPath(template); + if (file instanceof import_obsidian10.TFile) { + headings = ((_b = (_a = app.metadataCache.getFileCache(file)) == null ? void 0 : _a.headings) == null ? void 0 : _b.map((h3) => h3.heading)) || []; + } + } return (0, import_react3.createElement)(AddCalendarSource, { source: makeDefaultPartialCalendarSource(dropdown.getValue()), directories: directories.filter((dir) => usedDirectories.indexOf(dir) === -1), + headings, submit: (source) => __async(this, null, function* () { if (source.type === "caldav" || source.type === "icloud") { let sources = yield new RemoteSource(source).importCalendars(); if (sources instanceof FCError) { - new import_obsidian6.Notice(sources.message); + new import_obsidian10.Notice(sources.message); } else { sources.forEach((source2) => submitCallback(source2)); } @@ -53660,7 +57654,7 @@ function addCalendarButton(app, plugin, containerEl, submitCallback, listUsedDir }); }); } -var FullCalendarSettingTab = class extends import_obsidian6.PluginSettingTab { +var FullCalendarSettingTab = class extends import_obsidian10.PluginSettingTab { constructor(app, plugin) { super(app, plugin); this.plugin = plugin; @@ -53669,15 +57663,27 @@ var FullCalendarSettingTab = class extends import_obsidian6.PluginSettingTab { return __async(this, null, function* () { const { containerEl } = this; containerEl.empty(); - containerEl.createEl("h2", { text: "Events settings" }); - new import_obsidian6.Setting(containerEl).setName("Recursive event folders").setDesc("Search through sub-folders for events").addToggle((toggle) => { - toggle.setValue(this.plugin.settings.recursiveLocal); - toggle.onChange((val) => __async(this, null, function* () { - this.plugin.settings.recursiveLocal = val; + containerEl.createEl("h2", { text: "Calendar Preferences" }); + new import_obsidian10.Setting(containerEl).setName("Desktop Initial View").setDesc("Choose the initial view range on desktop devices.").addDropdown((dropdown) => { + Object.entries(INITIAL_VIEW_OPTIONS.DESKTOP).forEach(([value, display]) => { + dropdown.addOption(value, display); + }); + dropdown.setValue(this.plugin.settings.initialView.desktop); + dropdown.onChange((initialView) => __async(this, null, function* () { + this.plugin.settings.initialView.desktop = initialView; yield this.plugin.saveSettings(); })); }); - new import_obsidian6.Setting(containerEl).setName("Starting Day of the Week").setDesc("Choose what day of the week to start.").addDropdown((dropdown) => { + new import_obsidian10.Setting(containerEl).setName("Mobile Initial View").setDesc("Choose the initial view range on mobile devices.").addDropdown((dropdown) => { + Object.entries(INITIAL_VIEW_OPTIONS.MOBILE).forEach(([value, display]) => { + dropdown.addOption(value, display); + }); + dropdown.setValue(this.plugin.settings.initialView.mobile); + dropdown.onChange((initialView) => __async(this, null, function* () { + this.plugin.settings.initialView.mobile = initialView; + })); + }); + new import_obsidian10.Setting(containerEl).setName("Starting Day of the Week").setDesc("Choose what day of the week to start.").addDropdown((dropdown) => { WEEKDAYS.forEach((day, code) => { dropdown.addOption(code.toString(), day); }); @@ -53687,9 +57693,25 @@ var FullCalendarSettingTab = class extends import_obsidian6.PluginSettingTab { yield this.plugin.saveSettings(); })); }); + new import_obsidian10.Setting(containerEl).setName("24-hour format").setDesc("Display the time in a 24-hour format.").addToggle((toggle) => { + toggle.setValue(this.plugin.settings.timeFormat24h); + toggle.onChange((val) => __async(this, null, function* () { + this.plugin.settings.timeFormat24h = val; + yield this.plugin.saveSettings(); + })); + }); + containerEl.createEl("h2", { text: "Events settings" }); + new import_obsidian10.Setting(containerEl).setName("Recursive event folders").setDesc("Search through sub-folders for events").addToggle((toggle) => { + toggle.setValue(this.plugin.settings.recursiveLocal); + toggle.onChange((val) => __async(this, null, function* () { + this.plugin.settings.recursiveLocal = val; + yield this.plugin.saveSettings(); + })); + }); + containerEl.createEl("h2", { text: "Manage Calendars" }); addCalendarButton(this.app, this.plugin, containerEl, (source) => __async(this, null, function* () { sourceList.addSource(source); - }), () => sourceList.state.sources.map((s3) => s3.type === "local" && s3.directory).filter((s3) => !!s3)); + }), () => sourceList.state.sources.map((s4) => s4.type === "local" && s4.directory).filter((s4) => !!s4)); const sourcesDiv = containerEl.createDiv(); sourcesDiv.style.display = "block"; let sourceList = ReactDOM2.render((0, import_react3.createElement)(CalendarSettings, { @@ -53703,7 +57725,7 @@ var FullCalendarSettingTab = class extends import_obsidian6.PluginSettingTab { } }; -// src/onboard.ts +// src/ui/onboard.ts function renderOnboarding(app, plugin, el) { el.style.height = "100%"; const nocal = el.createDiv(); @@ -53724,9 +57746,10 @@ function renderOnboarding(app, plugin, el) { })); } -// src/view.ts +// src/ui/view.ts +var import_obsidian_daily_notes_interface5 = __toModule(require_main()); var FULL_CALENDAR_VIEW_TYPE = "full-calendar-view"; -var CalendarView = class extends import_obsidian7.ItemView { +var CalendarView = class extends import_obsidian11.ItemView { constructor(leaf, plugin) { super(leaf); this.plugin = plugin; @@ -53740,42 +57763,74 @@ var CalendarView = class extends import_obsidian7.ItemView { return "Calendar"; } onCacheUpdate(file) { - var _a; - const source = this.plugin.settings.calendarSources.find((c3) => c3.type === "local" && file.path.startsWith(c3.directory)); - const event = NoteEvent.fromFile(this.app.metadataCache, this.app.vault, file); - if (!event) { - return; - } - let calendarEvent = (_a = this.calendar) == null ? void 0 : _a.getEventById(event.idForCalendar); - if (this.calendar && source && event) { - if (calendarEvent) { - calendarEvent.remove(); + return __async(this, null, function* () { + var _a; + if (!this.calendar) { + return; } - event.addTo(this.calendar, source); - } + const source = this.plugin.settings.calendarSources.find((c3) => c3.type === "local" && file.path.startsWith(c3.directory)); + const dailyNoteSettings = (0, import_obsidian_daily_notes_interface5.getDailyNoteSettings)(); + if (source) { + const event = NoteEvent.fromFile(this.app.metadataCache, this.app.vault, file); + if (!event) { + return; + } + let calendarEvent = this.calendar.getEventById(event.idForCalendar); + if (source && event) { + if (calendarEvent) { + calendarEvent.remove(); + } + event.addTo(this.calendar, source); + } + } else if (dailyNoteSettings.folder && file.path.startsWith(dailyNoteSettings.folder)) { + const source2 = this.plugin.settings.calendarSources.find((c3) => c3.type === "dailynote"); + if (!source2 || source2.type !== "dailynote") { + console.warn("Daily note calendar not loaded."); + return; + } + const s4 = new DailyNoteSource(this.app.vault, this.app.metadataCache, source2); + const newEvents = (_a = yield s4.getAllEventsFromFile(file)) == null ? void 0 : _a.flatMap((e3) => e3 ? [e3] : []); + let idx = 0; + let calendarEvent = null; + const oldEvents = {}; + while (calendarEvent = this.calendar.getEventById(`dailynote::${file.path}::${idx++}`)) { + oldEvents[calendarEvent.id] = calendarEvent; + } + Object.values(oldEvents).forEach((e3) => { + e3.remove(); + }); + if (!newEvents) { + return; + } + newEvents.forEach((newEvent) => { + var _a2; + (_a2 = this.calendar) == null ? void 0 : _a2.addEvent(__spreadValues(__spreadValues({}, newEvent), getColors(source2.color))); + }); + } + }); } onOpen() { return __async(this, null, function* () { yield this.plugin.loadSettings(); - const noteSourcePromises = this.plugin.settings.calendarSources.flatMap((s3) => s3.type === "local" ? [s3] : []).map((s3) => new NoteSource(this.app.vault, this.app.metadataCache, s3)).map((ns2) => ns2.toApi(this.plugin.settings.recursiveLocal)); + const noteSourcePromises = this.plugin.settings.calendarSources.flatMap((s4) => s4.type === "local" ? [s4] : []).map((s4) => new NoteSource(this.app.vault, this.app.metadataCache, s4)).map((ns2) => ns2.toApi(this.plugin.settings.recursiveLocal)); const container = this.containerEl.children[1]; container.empty(); let calendarEl = container.createEl("div"); const noteSourceResults = yield Promise.all(noteSourcePromises); - const sources = noteSourceResults.flatMap((s3) => s3 instanceof FCError ? [] : [s3]); - if (sources.length === 0 && this.plugin.settings.calendarSources.filter((s3) => s3.type === "ical" || s3.type === "caldav" || s3.type === "icloud").length === 0) { + const sources = noteSourceResults.flatMap((s4) => s4 instanceof FCError ? [] : [s4]); + if (sources.length === 0 && this.plugin.settings.calendarSources.filter((s4) => s4.type === "ical" || s4.type === "caldav" || s4.type === "icloud" || s4.type === "dailynote").length === 0) { renderOnboarding(this.app, this.plugin, calendarEl); return; } - let errs = noteSourceResults.flatMap((s3) => s3 instanceof FCError ? [s3] : []); + let errs = noteSourceResults.flatMap((s4) => s4 instanceof FCError ? [s4] : []); for (const err of errs) { - new import_obsidian7.Notice(err.message); + new import_obsidian11.Notice(err.message); } this.calendar = renderCalendar(calendarEl, sources, { eventClick: (info) => __async(this, null, function* () { if (info.jsEvent.getModifierState("Control") || info.jsEvent.getModifierState("Meta")) { let file = this.app.vault.getAbstractFileByPath(info.event.id); - if (file instanceof import_obsidian7.TFile) { + if (file instanceof import_obsidian11.TFile) { let leaf = this.app.workspace.getMostRecentLeaf(); yield leaf.openFile(file); } @@ -53783,27 +57838,30 @@ var CalendarView = class extends import_obsidian7.ItemView { new EventModal(this.app, this.plugin, this.calendar).editInModal(info.event); } }), - select: (start, end, allDay) => __async(this, null, function* () { + select: (start, end, allDay, viewType) => __async(this, null, function* () { + if (viewType === "dayGridMonth") { + end.setDate(end.getDate() - 1); + } const partialEvent = dateEndpointsToFrontmatter(start, end, allDay); let modal = new EventModal(this.app, this.plugin, this.calendar, partialEvent); modal.open(); }), modifyEvent: (newEvent, oldEvent) => __async(this, null, function* () { try { - const existingEvent = yield eventFromCalendarId(this.app.metadataCache, this.app.vault, oldEvent.id); + const existingEvent = yield eventFromApi(this.app.metadataCache, this.app.vault, this.plugin.settings, oldEvent); if (!existingEvent) { return false; } - const frontmatter = eventApiToFrontmatter(newEvent); + const frontmatter = fromEventApi(newEvent); yield existingEvent.setData(frontmatter); } catch (e3) { - new import_obsidian7.Notice(e3.message); + new import_obsidian11.Notice(e3.message); return false; } return true; }), eventMouseEnter: (info) => __async(this, null, function* () { - const event = yield eventFromCalendarId(this.app.metadataCache, this.app.vault, info.event.id); + const event = yield eventFromApi(this.app.metadataCache, this.app.vault, this.plugin.settings, info.event); if (event instanceof LocalEvent) { this.app.workspace.trigger("hover-link", { event: info.jsEvent, @@ -53815,20 +57873,88 @@ var CalendarView = class extends import_obsidian7.ItemView { }); } }), - firstDay: this.plugin.settings.firstDay + firstDay: this.plugin.settings.firstDay, + initialView: this.plugin.settings.initialView, + timeFormat24h: this.plugin.settings.timeFormat24h, + openContextMenuForEvent: (e3, mouseEvent) => __async(this, null, function* () { + const menu = new import_obsidian11.Menu(this.app); + const event = yield eventFromApi(this.app.metadataCache, this.app.vault, this.plugin.settings, e3); + if (event instanceof EditableEvent) { + if (!event.isTask) { + menu.addItem((item) => item.setTitle("Turn into task").onClick(() => __async(this, null, function* () { + yield event.setIsTask(true); + }))); + } else { + menu.addItem((item) => item.setTitle("Remove checkbox").onClick(() => __async(this, null, function* () { + yield event.setIsTask(false); + }))); + } + } + if (event instanceof LocalEvent) { + menu.addSeparator(); + menu.addItem((item) => item.setTitle("Go to note").onClick(() => { + let leaf = this.app.workspace.getMostRecentLeaf(); + event.openIn(leaf); + new import_obsidian11.Notice(`Opening "${e3.title}"`); + })); + menu.addItem((item) => item.setTitle("Delete").onClick(() => __async(this, null, function* () { + yield event.delete(); + new import_obsidian11.Notice(`Deleted event "${e3.title}".`); + }))); + } else { + menu.addItem((item) => { + item.setTitle("No actions available on remote events").setDisabled(true); + }); + } + menu.showAtMouseEvent(mouseEvent); + }), + toggleTask: (e3, isDone) => __async(this, null, function* () { + const event = yield eventFromApi(this.app.metadataCache, this.app.vault, this.plugin.settings, e3); + if (!event) { + return false; + } + const newData = event.data; + if (newData.type !== "single") { + return false; + } + if (isDone) { + const completionDate = DateTime.now().toISO(); + newData.completed = completionDate; + } else { + newData.completed = false; + } + try { + event.setData(newData); + } catch (e4) { + if (e4 instanceof FCError) { + new import_obsidian11.Notice(e4.message); + } + return false; + } + return true; + }) }); - this.plugin.settings.calendarSources.flatMap((s3) => s3.type === "ical" ? [s3] : []).map((s3) => new IcsSource(s3)).map((s3) => s3.toApi()).forEach((resultPromise) => resultPromise.then((result) => { + window.calendar = this.calendar; + this.plugin.settings.calendarSources.flatMap((s4) => s4.type === "ical" ? [s4] : []).map((s4) => new IcsSource(s4)).map((s4) => s4.toApi()).forEach((resultPromise) => resultPromise.then((result) => { var _a; if (result instanceof FCError) { - new import_obsidian7.Notice(result.message); + new import_obsidian11.Notice(result.message); } else { (_a = this.calendar) == null ? void 0 : _a.addEventSource(result); } })); - this.plugin.settings.calendarSources.flatMap((s3) => s3.type === "caldav" || s3.type === "icloud" ? [s3] : []).map((s3) => new RemoteSource(s3)).map((s3) => s3.toApi()).forEach((resultPromise) => resultPromise.then((result) => { + this.plugin.settings.calendarSources.flatMap((s4) => s4.type === "caldav" || s4.type === "icloud" ? [s4] : []).map((s4) => new RemoteSource(s4)).map((s4) => s4.toApi()).forEach((resultPromise) => resultPromise.then((result) => { var _a; if (result instanceof FCError) { - new import_obsidian7.Notice(result.message); + new import_obsidian11.Notice(result.message); + } else { + (_a = this.calendar) == null ? void 0 : _a.addEventSource(result); + } + })); + this.plugin.settings.calendarSources.flatMap((s4) => s4.type === "dailynote" ? [s4] : []).map((s4) => new DailyNoteSource(this.app.vault, this.app.metadataCache, s4)).map((s4) => s4.toApi()).forEach((resultPromise) => resultPromise.then((result) => { + var _a; + if (result instanceof FCError) { + new import_obsidian11.Notice(result.message); } else { (_a = this.calendar) == null ? void 0 : _a.addEventSource(result); } @@ -53836,7 +57962,7 @@ var CalendarView = class extends import_obsidian7.ItemView { this.registerEvent(this.app.metadataCache.on("changed", this.cacheCallback)); this.registerEvent(this.app.vault.on("delete", (file) => { var _a; - if (file instanceof import_obsidian7.TFile) { + if (file instanceof import_obsidian11.TFile) { let id = NoteEvent.ID_PREFIX + CalendarEvent.ID_SEPARATOR + file.path; const event = (_a = this.calendar) == null ? void 0 : _a.getEventById(id); if (event) { @@ -53850,7 +57976,7 @@ var CalendarView = class extends import_obsidian7.ItemView { if (oldEvent) { oldEvent.remove(); } - if (file instanceof import_obsidian7.TFile) { + if (file instanceof import_obsidian11.TFile) { this.onCacheUpdate(file); } })); @@ -53872,12 +57998,12 @@ var CalendarView = class extends import_obsidian7.ItemView { }; // src/main.ts -var FullCalendarPlugin = class extends import_obsidian8.Plugin { +var FullCalendarPlugin = class extends import_obsidian12.Plugin { constructor() { super(...arguments); this.settings = DEFAULT_SETTINGS; this.renderCalendar = renderCalendar; - this.processFrontmatter = parseFrontmatter; + this.processFrontmatter = toEventInput; } activateView() { return __async(this, null, function* () { @@ -53915,7 +58041,7 @@ var FullCalendarPlugin = class extends import_obsidian8.Plugin { id: "full-calendar-upgrade-note", name: "Upgrade note to event", callback: () => { - const view = this.app.workspace.getActiveViewOfType(import_obsidian8.MarkdownView); + const view = this.app.workspace.getActiveViewOfType(import_obsidian12.MarkdownView); if (view) { const file = view.file; new EventModal(this.app, this, null).editInModal(file); @@ -53948,9 +58074,9 @@ object-assign @license MIT */ /*! -FullCalendar v5.10.1 +FullCalendar v5.11.3 Docs & License: https://fullcalendar.io/ -(c) 2021 Adam Shaw +(c) 2022 Adam Shaw */ /*! ***************************************************************************** Copyright (c) Microsoft Corporation. @@ -54012,3 +58138,8 @@ PERFORMANCE OF THIS SOFTWARE. * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ +//! authors : Tim Wood, Iskren Chernev, Moment.js contributors +//! license : MIT +//! moment.js +//! momentjs.com +//! version : 2.29.1 diff --git a/.obsidian/plugins/obsidian-full-calendar/manifest.json b/.obsidian/plugins/obsidian-full-calendar/manifest.json index b7b27d2b..eb35271d 100644 --- a/.obsidian/plugins/obsidian-full-calendar/manifest.json +++ b/.obsidian/plugins/obsidian-full-calendar/manifest.json @@ -1,7 +1,7 @@ { "id": "obsidian-full-calendar", "name": "Full Calendar", - "version": "0.6.1", + "version": "0.9.1", "minAppVersion": "0.12.0", "description": "Obsidian integration with Full Calendar (fullcalendar.io)", "author": "Davis Haupt", diff --git a/.obsidian/plugins/obsidian-full-calendar/styles.css b/.obsidian/plugins/obsidian-full-calendar/styles.css index c6b159fa..386b3e2c 100644 --- a/.obsidian/plugins/obsidian-full-calendar/styles.css +++ b/.obsidian/plugins/obsidian-full-calendar/styles.css @@ -1,4 +1,7 @@ -/* src/overrides.css */ +/* src/ui/overrides.css */ +.is-phone .fc { + height: calc(100% - 4rem); +} .fc { height: 100%; --fc-button-text-color: var(--text-normal); @@ -18,17 +21,47 @@ --fc-now-indicator-color: var(--text-error-hover); --fc-more-link-bg-color: var(--background-primary-alt); --fc-more-link-text-color: var(--text-accent); - --fc-today-bg-color: var(--background-modifier-box-shadow); + --fc-today-bg-color: var(--background-modifier-cover); --fc-neutral-text-color: var(--text-muted); --fc-neutral-bg-color: var(--interactive-normal); - --fc-event-selected-overlay-color: var(--background-secondary-alt); --fc-highlight-color: var(--text-highlight-bg); --fc-bg-event-color: var(--background-modifier-success); --fc-non-business-color: var(--background-modifier-box-shadow); } +.fc a { + text-decoration-line: none; +} .fc-button-active { color: var(--text-on-accent) !important; } +.fc .fc-button { + border: 0px solid transparent !important; + line-height: 1 !important; + padding: var(--size-4-1) var(--size-4-3) !important; +} +.ofc-has-checkbox { + display: flex !important; +} +.ofc-has-checkbox.fc-list-event-title { + align-items: center; +} +.ofc-task-completed .fc-event-title { + text-decoration: line-through; +} +.ofc-task-completed .fc-list-event-title { + text-decoration: line-through; +} +.ofc-task-completed { + opacity: 0.8; +} +.ofc-checkbox-white { + border-color: white !important; + border-width: 1px !important; +} +.ofc-checkbox-black { + border-color: black !important; + border-width: 1px !important; +} /* node_modules/@fullcalendar/common/main.css */ .fc-not-allowed, diff --git a/.obsidian/plugins/obsidian-media-db-plugin/data.json b/.obsidian/plugins/obsidian-media-db-plugin/data.json index 810f196f..b5c1373b 100644 --- a/.obsidian/plugins/obsidian-media-db-plugin/data.json +++ b/.obsidian/plugins/obsidian-media-db-plugin/data.json @@ -1,5 +1,4 @@ { - "folder": "00.02 Inbox", "OMDbKey": "3b1c31d2", "sfwFilter": true, "useCustomYamlStringifier": true, @@ -9,14 +8,692 @@ "gameTemplate": "Template Game.md", "wikiTemplate": "Template Wiki.md", "musicReleaseTemplate": "Template Music.md", + "boardgameTemplate": "", "movieFileNameTemplate": "{{ title }} ({{ year }})", "seriesFileNameTemplate": "{{ title }} ({{ year }})", "gameFileNameTemplate": "{{ title }} ({{ year }})", "wikiFileNameTemplate": "{{ title }}", "musicReleaseFileNameTemplate": "{{ title }} (by {{ ENUM:artists }} - {{ year }})", + "boardgameFileNameTemplate": "{{ title }} ({{ year }})", "moviePropertyConversionRules": "", "seriesPropertyConversionRules": "", "gamePropertyConversionRules": "", "wikiPropertyConversionRules": "", - "musicReleasePropertyConversionRules": "" + "musicReleasePropertyConversionRules": "", + "boardgamePropertyConversionRules": "", + "movieFolder": "00.02 Inbox", + "seriesFolder": "00.02 Inbox", + "gameFolder": "00.02 Inbox", + "wikiFolder": "00.02 Inbox", + "musicReleaseFolder": "00.02 Inbox", + "boardgameFolder": "", + "propertyMappingModels": [ + { + "type": "movie", + "properties": [ + { + "property": "type", + "newProperty": "", + "mapping": "default", + "locked": true + }, + { + "property": "subType", + "newProperty": "", + "mapping": "default", + "locked": false + }, + { + "property": "title", + "newProperty": "", + "mapping": "default", + "locked": false + }, + { + "property": "englishTitle", + "newProperty": "", + "mapping": "default", + "locked": false + }, + { + "property": "year", + "newProperty": "", + "mapping": "default", + "locked": false + }, + { + "property": "dataSource", + "newProperty": "", + "mapping": "default", + "locked": true + }, + { + "property": "url", + "newProperty": "", + "mapping": "default", + "locked": false + }, + { + "property": "id", + "newProperty": "", + "mapping": "default", + "locked": true + }, + { + "property": "genres", + "newProperty": "", + "mapping": "default", + "locked": false + }, + { + "property": "producer", + "newProperty": "", + "mapping": "default", + "locked": false + }, + { + "property": "duration", + "newProperty": "", + "mapping": "default", + "locked": false + }, + { + "property": "onlineRating", + "newProperty": "", + "mapping": "default", + "locked": false + }, + { + "property": "actors", + "newProperty": "", + "mapping": "default", + "locked": false + }, + { + "property": "image", + "newProperty": "", + "mapping": "default", + "locked": false + }, + { + "property": "released", + "newProperty": "", + "mapping": "default", + "locked": false + }, + { + "property": "streamingServices", + "newProperty": "", + "mapping": "default", + "locked": false + }, + { + "property": "premiere", + "newProperty": "", + "mapping": "default", + "locked": false + }, + { + "property": "watched", + "newProperty": "", + "mapping": "default", + "locked": false + }, + { + "property": "lastWatched", + "newProperty": "", + "mapping": "default", + "locked": false + }, + { + "property": "personalRating", + "newProperty": "", + "mapping": "default", + "locked": false + }, + { + "property": "tags", + "newProperty": "", + "mapping": "default", + "locked": false + } + ] + }, + { + "type": "series", + "properties": [ + { + "property": "type", + "newProperty": "", + "mapping": "default", + "locked": true + }, + { + "property": "subType", + "newProperty": "", + "mapping": "default", + "locked": false + }, + { + "property": "title", + "newProperty": "", + "mapping": "default", + "locked": false + }, + { + "property": "englishTitle", + "newProperty": "", + "mapping": "default", + "locked": false + }, + { + "property": "year", + "newProperty": "", + "mapping": "default", + "locked": false + }, + { + "property": "dataSource", + "newProperty": "", + "mapping": "default", + "locked": true + }, + { + "property": "url", + "newProperty": "", + "mapping": "default", + "locked": false + }, + { + "property": "id", + "newProperty": "", + "mapping": "default", + "locked": true + }, + { + "property": "genres", + "newProperty": "", + "mapping": "default", + "locked": false + }, + { + "property": "studios", + "newProperty": "", + "mapping": "default", + "locked": false + }, + { + "property": "episodes", + "newProperty": "", + "mapping": "default", + "locked": false + }, + { + "property": "duration", + "newProperty": "", + "mapping": "default", + "locked": false + }, + { + "property": "onlineRating", + "newProperty": "", + "mapping": "default", + "locked": false + }, + { + "property": "actors", + "newProperty": "", + "mapping": "default", + "locked": false + }, + { + "property": "image", + "newProperty": "", + "mapping": "default", + "locked": false + }, + { + "property": "released", + "newProperty": "", + "mapping": "default", + "locked": false + }, + { + "property": "streamingServices", + "newProperty": "", + "mapping": "default", + "locked": false + }, + { + "property": "airing", + "newProperty": "", + "mapping": "default", + "locked": false + }, + { + "property": "airedFrom", + "newProperty": "", + "mapping": "default", + "locked": false + }, + { + "property": "airedTo", + "newProperty": "", + "mapping": "default", + "locked": false + }, + { + "property": "watched", + "newProperty": "", + "mapping": "default", + "locked": false + }, + { + "property": "lastWatched", + "newProperty": "", + "mapping": "default", + "locked": false + }, + { + "property": "personalRating", + "newProperty": "", + "mapping": "default", + "locked": false + }, + { + "property": "tags", + "newProperty": "", + "mapping": "default", + "locked": false + } + ] + }, + { + "type": "game", + "properties": [ + { + "property": "type", + "newProperty": "", + "mapping": "default", + "locked": true + }, + { + "property": "subType", + "newProperty": "", + "mapping": "default", + "locked": false + }, + { + "property": "title", + "newProperty": "", + "mapping": "default", + "locked": false + }, + { + "property": "englishTitle", + "newProperty": "", + "mapping": "default", + "locked": false + }, + { + "property": "year", + "newProperty": "", + "mapping": "default", + "locked": false + }, + { + "property": "dataSource", + "newProperty": "", + "mapping": "default", + "locked": true + }, + { + "property": "url", + "newProperty": "", + "mapping": "default", + "locked": false + }, + { + "property": "id", + "newProperty": "", + "mapping": "default", + "locked": true + }, + { + "property": "genres", + "newProperty": "", + "mapping": "default", + "locked": false + }, + { + "property": "onlineRating", + "newProperty": "", + "mapping": "default", + "locked": false + }, + { + "property": "image", + "newProperty": "", + "mapping": "default", + "locked": false + }, + { + "property": "released", + "newProperty": "", + "mapping": "default", + "locked": false + }, + { + "property": "releaseDate", + "newProperty": "", + "mapping": "default", + "locked": false + }, + { + "property": "played", + "newProperty": "", + "mapping": "default", + "locked": false + }, + { + "property": "personalRating", + "newProperty": "", + "mapping": "default", + "locked": false + }, + { + "property": "tags", + "newProperty": "", + "mapping": "default", + "locked": false + } + ] + }, + { + "type": "wiki", + "properties": [ + { + "property": "type", + "newProperty": "", + "mapping": "default", + "locked": true + }, + { + "property": "subType", + "newProperty": "", + "mapping": "default", + "locked": false + }, + { + "property": "title", + "newProperty": "", + "mapping": "default", + "locked": false + }, + { + "property": "englishTitle", + "newProperty": "", + "mapping": "default", + "locked": false + }, + { + "property": "year", + "newProperty": "", + "mapping": "default", + "locked": false + }, + { + "property": "dataSource", + "newProperty": "", + "mapping": "default", + "locked": true + }, + { + "property": "url", + "newProperty": "", + "mapping": "default", + "locked": false + }, + { + "property": "id", + "newProperty": "", + "mapping": "default", + "locked": true + }, + { + "property": "wikiUrl", + "newProperty": "", + "mapping": "default", + "locked": false + }, + { + "property": "lastUpdated", + "newProperty": "", + "mapping": "default", + "locked": false + }, + { + "property": "length", + "newProperty": "", + "mapping": "default", + "locked": false + }, + { + "property": "tags", + "newProperty": "", + "mapping": "default", + "locked": false + } + ] + }, + { + "type": "musicRelease", + "properties": [ + { + "property": "type", + "newProperty": "", + "mapping": "default", + "locked": true + }, + { + "property": "subType", + "newProperty": "", + "mapping": "default", + "locked": false + }, + { + "property": "title", + "newProperty": "", + "mapping": "default", + "locked": false + }, + { + "property": "englishTitle", + "newProperty": "", + "mapping": "default", + "locked": false + }, + { + "property": "year", + "newProperty": "", + "mapping": "default", + "locked": false + }, + { + "property": "dataSource", + "newProperty": "", + "mapping": "default", + "locked": true + }, + { + "property": "url", + "newProperty": "", + "mapping": "default", + "locked": false + }, + { + "property": "id", + "newProperty": "", + "mapping": "default", + "locked": true + }, + { + "property": "genres", + "newProperty": "", + "mapping": "default", + "locked": false + }, + { + "property": "artists", + "newProperty": "", + "mapping": "default", + "locked": false + }, + { + "property": "rating", + "newProperty": "", + "mapping": "default", + "locked": false + }, + { + "property": "personalRating", + "newProperty": "", + "mapping": "default", + "locked": false + }, + { + "property": "tags", + "newProperty": "", + "mapping": "default", + "locked": false + } + ] + }, + { + "type": "boardgame", + "properties": [ + { + "property": "type", + "newProperty": "", + "mapping": "default", + "locked": true + }, + { + "property": "subType", + "newProperty": "", + "mapping": "default", + "locked": false + }, + { + "property": "title", + "newProperty": "", + "mapping": "default", + "locked": false + }, + { + "property": "englishTitle", + "newProperty": "", + "mapping": "default", + "locked": false + }, + { + "property": "year", + "newProperty": "", + "mapping": "default", + "locked": false + }, + { + "property": "dataSource", + "newProperty": "", + "mapping": "default", + "locked": true + }, + { + "property": "url", + "newProperty": "", + "mapping": "default", + "locked": false + }, + { + "property": "id", + "newProperty": "", + "mapping": "default", + "locked": true + }, + { + "property": "genres", + "newProperty": "", + "mapping": "default", + "locked": false + }, + { + "property": "onlineRating", + "newProperty": "", + "mapping": "default", + "locked": false + }, + { + "property": "minPlayers", + "newProperty": "", + "mapping": "default", + "locked": false + }, + { + "property": "maxPlayers", + "newProperty": "", + "mapping": "default", + "locked": false + }, + { + "property": "playtime", + "newProperty": "", + "mapping": "default", + "locked": false + }, + { + "property": "publishers", + "newProperty": "", + "mapping": "default", + "locked": false + }, + { + "property": "complexityRating", + "newProperty": "", + "mapping": "default", + "locked": false + }, + { + "property": "image", + "newProperty": "", + "mapping": "default", + "locked": false + }, + { + "property": "released", + "newProperty": "", + "mapping": "default", + "locked": false + }, + { + "property": "played", + "newProperty": "", + "mapping": "default", + "locked": false + }, + { + "property": "personalRating", + "newProperty": "", + "mapping": "default", + "locked": false + }, + { + "property": "tags", + "newProperty": "", + "mapping": "default", + "locked": false + } + ] + } + ], + "folder": "00.02 Inbox" } \ No newline at end of file diff --git a/.obsidian/plugins/obsidian-media-db-plugin/main.js b/.obsidian/plugins/obsidian-media-db-plugin/main.js index 660d5938..3f4dd9df 100644 --- a/.obsidian/plugins/obsidian-media-db-plugin/main.js +++ b/.obsidian/plugins/obsidian-media-db-plugin/main.js @@ -68,10 +68,10 @@ var __async = (__this, __arguments, generator) => { __export(exports, { default: () => MediaDbPlugin }); -var import_obsidian15 = __toModule(require("obsidian")); +var import_obsidian17 = __toModule(require("obsidian")); // src/settings/Settings.ts -var import_obsidian5 = __toModule(require("obsidian")); +var import_obsidian6 = __toModule(require("obsidian")); // src/settings/suggesters/FolderSuggest.ts var import_obsidian2 = __toModule(require("obsidian")); @@ -1655,19 +1655,13 @@ var createPopper = /* @__PURE__ */ popperGenerator({ var pluginName = "obsidian-media-db-plugin"; var contactEmail = "m.projects.code@gmail.com"; var mediaDbTag = "mediaDB"; -var mediaDbVersion = "0.4.1"; -var debug = true; +var mediaDbVersion = "0.5.0"; function wrapAround(value, size) { if (size <= 0) { throw Error("size may not be zero or negative"); } return mod(value, size); } -function debugLog(o) { - if (debug) { - console.log(o); - } -} function containsOnlyLettersAndUnderscores(str) { return /^[a-zA-Z_]+$/.test(str); } @@ -1675,26 +1669,25 @@ function replaceIllegalFileNameCharactersInString(string) { return string.replace(/[\\,#%&{}/*<>$"@.?]*/g, "").replace(/:+/g, " -"); } function replaceTags(template, mediaTypeModel) { - const resolvedTemplate = template.replace(new RegExp("{{.*?}}", "g"), (match) => replaceTag(match, mediaTypeModel)); - return resolvedTemplate; + return template.replace(new RegExp("{{.*?}}", "g"), (match) => replaceTag(match, mediaTypeModel)); } function replaceTag(match, mediaTypeModel) { let tag = match; tag = tag.substring(2); tag = tag.substring(0, tag.length - 2); tag = tag.trim(); - let parts = tag.split(":"); + const parts = tag.split(":"); if (parts.length === 1) { - let path = parts[0].split("."); - let obj = traverseMetaData(path, mediaTypeModel); + const path = parts[0].split("."); + const obj = traverseMetaData(path, mediaTypeModel); if (obj === void 0) { return "{{ INVALID TEMPLATE TAG - object undefined }}"; } return obj; } else if (parts.length === 2) { - let operator = parts[0]; - let path = parts[1].split("."); - let obj = traverseMetaData(path, mediaTypeModel); + const operator = parts[0]; + const path = parts[1].split("."); + const obj = traverseMetaData(path, mediaTypeModel); if (obj === void 0) { return "{{ INVALID TEMPLATE TAG - object undefined }}"; } @@ -1715,7 +1708,7 @@ function replaceTag(match, mediaTypeModel) { } function traverseMetaData(path, mediaTypeModel) { let o = mediaTypeModel; - for (let part of path) { + for (const part of path) { if (o !== void 0) { o = o[part]; } @@ -1723,11 +1716,11 @@ function traverseMetaData(path, mediaTypeModel) { return o; } function markdownTable(content) { - let rows = content.length; + const rows = content.length; if (rows === 0) { return ""; } - let columns = content[0].length; + const columns = content[0].length; if (columns === 0) { return ""; } @@ -1736,7 +1729,7 @@ function markdownTable(content) { return ""; } } - let longestStringInColumns = []; + const longestStringInColumns = []; for (let i = 0; i < columns; i++) { let longestStringInColumn = 0; for (const row of content) { @@ -1795,6 +1788,11 @@ function migrateObject(object, oldData, defaultData) { object[key] = oldData.hasOwnProperty(key) ? oldData[key] : defaultData[key]; } } +function unCamelCase(str) { + return str.replace(/([a-z])([A-Z])/g, "$1 $2").replace(/\b([A-Z]+)([A-Z])([a-z])/, "$1 $2$3").replace(/^./, function(str2) { + return str2.toUpperCase(); + }); +} // src/settings/suggesters/Suggest.ts var Suggest = class { @@ -2022,7 +2020,9 @@ function insert(target, node, anchor) { target.insertBefore(node, anchor || null); } function detach(node) { - node.parentNode.removeChild(node); + if (node.parentNode) { + node.parentNode.removeChild(node); + } } function destroy_each(iterations, detaching) { for (let i = 0; i < iterations.length; i += 1) { @@ -3276,6 +3276,9 @@ var MediaType; MediaType2["BoardGame"] = "boardgame"; })(MediaType || (MediaType = {})); +// src/utils/MediaTypeManager.ts +var import_obsidian5 = __toModule(require("obsidian")); + // src/models/MediaTypeModel.ts var MediaTypeModel = class { constructor() { @@ -3307,8 +3310,10 @@ var MovieModel = class extends MediaTypeModel { this.producer = void 0; this.duration = void 0; this.onlineRating = void 0; + this.actors = void 0; this.image = void 0; this.released = void 0; + this.streamingServices = void 0; this.premiere = void 0; this.userData = { watched: void 0, @@ -3341,8 +3346,10 @@ var SeriesModel = class extends MediaTypeModel { this.episodes = void 0; this.duration = void 0; this.onlineRating = void 0; + this.actors = void 0; this.image = void 0; this.released = void 0; + this.streamingServices = void 0; this.airing = void 0; this.airedFrom = void 0; this.airedTo = void 0; @@ -3466,6 +3473,11 @@ var BoardGameModel = class extends MediaTypeModel { super(); this.genres = void 0; this.onlineRating = void 0; + this.minPlayers = void 0; + this.maxPlayers = void 0; + this.playtime = void 0; + this.publishers = void 0; + this.complexityRating = void 0; this.image = void 0; this.released = void 0; this.userData = { @@ -3510,6 +3522,15 @@ var MediaTypeManager = class { this.mediaTemplateMap.set(MediaType.MusicRelease, settings.musicReleaseTemplate); this.mediaTemplateMap.set(MediaType.BoardGame, settings.boardgameTemplate); } + updateFolders(settings) { + this.mediaFolderMap = new Map(); + this.mediaFolderMap.set(MediaType.Movie, settings.movieFolder); + this.mediaFolderMap.set(MediaType.Series, settings.seriesFolder); + this.mediaFolderMap.set(MediaType.Game, settings.gameFolder); + this.mediaFolderMap.set(MediaType.Wiki, settings.wikiFolder); + this.mediaFolderMap.set(MediaType.MusicRelease, settings.musicReleaseFolder); + this.mediaFolderMap.set(MediaType.BoardGame, settings.boardgameFolder); + } getFileName(mediaTypeModel) { return replaceTags(this.mediaFileNameTemplateMap.get(mediaTypeModel.getMediaType()), mediaTypeModel); } @@ -3527,6 +3548,23 @@ var MediaTypeManager = class { return replaceTags(template, mediaTypeModel); }); } + getFolder(mediaTypeModel, app) { + return __async(this, null, function* () { + let folderPath = this.mediaFolderMap.get(mediaTypeModel.getMediaType()); + if (!folderPath) { + folderPath = `/`; + } + console.log(folderPath); + if (!(yield app.vault.adapter.exists(folderPath))) { + yield app.vault.createFolder(folderPath); + } + const folder = app.vault.getAbstractFileByPath(folderPath); + if (!(folder instanceof import_obsidian5.TFolder)) { + throw Error(`Expected ${folder} to be instance of TFolder`); + } + return folder; + }); + } createMediaTypeModelFromMediaType(obj, mediaType) { if (mediaType === MediaType.Movie) { return new MovieModel(obj); @@ -3547,7 +3585,6 @@ var MediaTypeManager = class { // src/settings/Settings.ts var DEFAULT_SETTINGS = { - folder: "Media DB", OMDbKey: "", sfwFilter: true, useCustomYamlStringifier: true, @@ -3570,11 +3607,17 @@ var DEFAULT_SETTINGS = { wikiPropertyConversionRules: "", musicReleasePropertyConversionRules: "", boardgamePropertyConversionRules: "", + movieFolder: "Media DB/movies", + seriesFolder: "Media DB/series", + gameFolder: "Media DB/games", + wikiFolder: "Media DB/wiki", + musicReleaseFolder: "Media DB/music", + boardgameFolder: "Media DB/boardgames", propertyMappingModels: [] }; var lockedPropertyMappings = ["type", "id", "dataSource"]; function getDefaultSettings(plugin) { - let defaultSettings = DEFAULT_SETTINGS; + const defaultSettings = DEFAULT_SETTINGS; const propertyMappingModels = []; for (const mediaType of MEDIA_TYPES) { const model = plugin.mediaTypeManager.createMediaTypeModelFromMediaType({}, mediaType); @@ -3588,7 +3631,7 @@ function getDefaultSettings(plugin) { defaultSettings.propertyMappingModels = propertyMappingModels; return defaultSettings; } -var MediaDbSettingTab = class extends import_obsidian5.PluginSettingTab { +var MediaDbSettingTab = class extends import_obsidian6.PluginSettingTab { constructor(app, plugin) { super(app, plugin); this.plugin = plugin; @@ -3597,74 +3640,110 @@ var MediaDbSettingTab = class extends import_obsidian5.PluginSettingTab { const { containerEl } = this; containerEl.empty(); containerEl.createEl("h2", { text: "Media DB Plugin Settings" }); - new import_obsidian5.Setting(containerEl).setName("New file location").setDesc("New media db entries will be placed here.").addSearch((cb) => { - new FolderSuggest(this.app, cb.inputEl); - cb.setPlaceholder("Example: folder1/folder2").setValue(this.plugin.settings.folder).onChange((data) => { - this.plugin.settings.folder = data; - this.plugin.saveSettings(); - }); - }); - new import_obsidian5.Setting(containerEl).setName("OMDb API key").setDesc('API key for "www.omdbapi.com".').addText((cb) => { + new import_obsidian6.Setting(containerEl).setName("OMDb API key").setDesc('API key for "www.omdbapi.com".').addText((cb) => { cb.setPlaceholder("API key").setValue(this.plugin.settings.OMDbKey).onChange((data) => { this.plugin.settings.OMDbKey = data; this.plugin.saveSettings(); }); }); - new import_obsidian5.Setting(containerEl).setName("SFW filter").setDesc("Only shows SFW results for APIs that offer filtering.").addToggle((cb) => { + new import_obsidian6.Setting(containerEl).setName("SFW filter").setDesc("Only shows SFW results for APIs that offer filtering.").addToggle((cb) => { cb.setValue(this.plugin.settings.sfwFilter).onChange((data) => { this.plugin.settings.sfwFilter = data; this.plugin.saveSettings(); }); }); - new import_obsidian5.Setting(containerEl).setName("YAML formatter").setDesc("Add optional quotation marks around strings in the metadata block.").addToggle((cb) => { + new import_obsidian6.Setting(containerEl).setName("YAML formatter").setDesc("Add optional quotation marks around strings in the metadata block.").addToggle((cb) => { cb.setValue(this.plugin.settings.useCustomYamlStringifier).onChange((data) => { this.plugin.settings.useCustomYamlStringifier = data; this.plugin.saveSettings(); }); }); - new import_obsidian5.Setting(containerEl).setName("Resolve {{ tags }} in templates").setDesc("Whether to resolve {{ tags }} in templates. The spaces inside the curly braces are important.").addToggle((cb) => { + new import_obsidian6.Setting(containerEl).setName("Resolve {{ tags }} in templates").setDesc("Whether to resolve {{ tags }} in templates. The spaces inside the curly braces are important.").addToggle((cb) => { cb.setValue(this.plugin.settings.templates).onChange((data) => { this.plugin.settings.templates = data; this.plugin.saveSettings(); }); }); + containerEl.createEl("h3", { text: "New File Location" }); + new import_obsidian6.Setting(containerEl).setName("Movie Folder").setDesc("Where newly imported movies should be places.").addSearch((cb) => { + new FolderSuggest(this.app, cb.inputEl); + cb.setPlaceholder(DEFAULT_SETTINGS.movieFolder).setValue(this.plugin.settings.movieFolder).onChange((data) => { + this.plugin.settings.movieFolder = data; + this.plugin.saveSettings(); + }); + }); + new import_obsidian6.Setting(containerEl).setName("Series Folder").setDesc("Where newly imported series should be places.").addSearch((cb) => { + new FolderSuggest(this.app, cb.inputEl); + cb.setPlaceholder(DEFAULT_SETTINGS.seriesFolder).setValue(this.plugin.settings.seriesFolder).onChange((data) => { + this.plugin.settings.seriesFolder = data; + this.plugin.saveSettings(); + }); + }); + new import_obsidian6.Setting(containerEl).setName("Game Folder").setDesc("Where newly imported games should be places.").addSearch((cb) => { + new FolderSuggest(this.app, cb.inputEl); + cb.setPlaceholder(DEFAULT_SETTINGS.gameFolder).setValue(this.plugin.settings.gameFolder).onChange((data) => { + this.plugin.settings.gameFolder = data; + this.plugin.saveSettings(); + }); + }); + new import_obsidian6.Setting(containerEl).setName("Wiki Folder").setDesc("Where newly imported wiki articles should be places.").addSearch((cb) => { + new FolderSuggest(this.app, cb.inputEl); + cb.setPlaceholder(DEFAULT_SETTINGS.wikiFolder).setValue(this.plugin.settings.wikiFolder).onChange((data) => { + this.plugin.settings.wikiFolder = data; + this.plugin.saveSettings(); + }); + }); + new import_obsidian6.Setting(containerEl).setName("Music Folder").setDesc("Where newly imported music should be places.").addSearch((cb) => { + new FolderSuggest(this.app, cb.inputEl); + cb.setPlaceholder(DEFAULT_SETTINGS.musicReleaseFolder).setValue(this.plugin.settings.musicReleaseFolder).onChange((data) => { + this.plugin.settings.musicReleaseFolder = data; + this.plugin.saveSettings(); + }); + }); + new import_obsidian6.Setting(containerEl).setName("Board Game Folder").setDesc("Where newly imported board games should be places.").addSearch((cb) => { + new FileSuggest(this.app, cb.inputEl); + cb.setPlaceholder(DEFAULT_SETTINGS.boardgameFolder).setValue(this.plugin.settings.boardgameFolder).onChange((data) => { + this.plugin.settings.boardgameFolder = data; + this.plugin.saveSettings(); + }); + }); containerEl.createEl("h3", { text: "Template Settings" }); - new import_obsidian5.Setting(containerEl).setName("Movie template").setDesc("Template file to be used when creating a new note for a movie.").addSearch((cb) => { + new import_obsidian6.Setting(containerEl).setName("Movie template").setDesc("Template file to be used when creating a new note for a movie.").addSearch((cb) => { new FileSuggest(this.app, cb.inputEl); cb.setPlaceholder("Example: movieTemplate.md").setValue(this.plugin.settings.movieTemplate).onChange((data) => { this.plugin.settings.movieTemplate = data; this.plugin.saveSettings(); }); }); - new import_obsidian5.Setting(containerEl).setName("Series template").setDesc("Template file to be used when creating a new note for a series.").addSearch((cb) => { + new import_obsidian6.Setting(containerEl).setName("Series template").setDesc("Template file to be used when creating a new note for a series.").addSearch((cb) => { new FileSuggest(this.app, cb.inputEl); cb.setPlaceholder("Example: seriesTemplate.md").setValue(this.plugin.settings.seriesTemplate).onChange((data) => { this.plugin.settings.seriesTemplate = data; this.plugin.saveSettings(); }); }); - new import_obsidian5.Setting(containerEl).setName("Game template").setDesc("Template file to be used when creating a new note for a game.").addSearch((cb) => { + new import_obsidian6.Setting(containerEl).setName("Game template").setDesc("Template file to be used when creating a new note for a game.").addSearch((cb) => { new FileSuggest(this.app, cb.inputEl); cb.setPlaceholder("Example: gameTemplate.md").setValue(this.plugin.settings.gameTemplate).onChange((data) => { this.plugin.settings.gameTemplate = data; this.plugin.saveSettings(); }); }); - new import_obsidian5.Setting(containerEl).setName("Wiki template").setDesc("Template file to be used when creating a new note for a wiki entry.").addSearch((cb) => { + new import_obsidian6.Setting(containerEl).setName("Wiki template").setDesc("Template file to be used when creating a new note for a wiki entry.").addSearch((cb) => { new FileSuggest(this.app, cb.inputEl); cb.setPlaceholder("Example: wikiTemplate.md").setValue(this.plugin.settings.wikiTemplate).onChange((data) => { this.plugin.settings.wikiTemplate = data; this.plugin.saveSettings(); }); }); - new import_obsidian5.Setting(containerEl).setName("Music Release template").setDesc("Template file to be used when creating a new note for a music release.").addSearch((cb) => { + new import_obsidian6.Setting(containerEl).setName("Music Release template").setDesc("Template file to be used when creating a new note for a music release.").addSearch((cb) => { new FileSuggest(this.app, cb.inputEl); cb.setPlaceholder("Example: musicReleaseTemplate.md").setValue(this.plugin.settings.musicReleaseTemplate).onChange((data) => { this.plugin.settings.musicReleaseTemplate = data; this.plugin.saveSettings(); }); }); - new import_obsidian5.Setting(containerEl).setName("Board Game template").setDesc("Template file to be used when creating a new note for a boardgame.").addSearch((cb) => { + new import_obsidian6.Setting(containerEl).setName("Board Game template").setDesc("Template file to be used when creating a new note for a boardgame.").addSearch((cb) => { new FileSuggest(this.app, cb.inputEl); cb.setPlaceholder("Example: boardgameTemplate.md").setValue(this.plugin.settings.boardgameTemplate).onChange((data) => { this.plugin.settings.boardgameTemplate = data; @@ -3672,44 +3751,44 @@ var MediaDbSettingTab = class extends import_obsidian5.PluginSettingTab { }); }); containerEl.createEl("h3", { text: "File Name Settings" }); - new import_obsidian5.Setting(containerEl).setName("Movie file name template").setDesc("Template for the file name used when creating a new note for a movie.").addText((cb) => { + new import_obsidian6.Setting(containerEl).setName("Movie file name template").setDesc("Template for the file name used when creating a new note for a movie.").addText((cb) => { cb.setPlaceholder(`Example: ${DEFAULT_SETTINGS.movieFileNameTemplate}`).setValue(this.plugin.settings.movieFileNameTemplate).onChange((data) => { this.plugin.settings.movieFileNameTemplate = data; this.plugin.saveSettings(); }); }); - new import_obsidian5.Setting(containerEl).setName("Series file name template").setDesc("Template for the file name used when creating a new note for a series.").addText((cb) => { + new import_obsidian6.Setting(containerEl).setName("Series file name template").setDesc("Template for the file name used when creating a new note for a series.").addText((cb) => { cb.setPlaceholder(`Example: ${DEFAULT_SETTINGS.seriesFileNameTemplate}`).setValue(this.plugin.settings.seriesFileNameTemplate).onChange((data) => { this.plugin.settings.seriesFileNameTemplate = data; this.plugin.saveSettings(); }); }); - new import_obsidian5.Setting(containerEl).setName("Game file name template").setDesc("Template for the file name used when creating a new note for a game.").addText((cb) => { + new import_obsidian6.Setting(containerEl).setName("Game file name template").setDesc("Template for the file name used when creating a new note for a game.").addText((cb) => { cb.setPlaceholder(`Example: ${DEFAULT_SETTINGS.gameFileNameTemplate}`).setValue(this.plugin.settings.gameFileNameTemplate).onChange((data) => { this.plugin.settings.gameFileNameTemplate = data; this.plugin.saveSettings(); }); }); - new import_obsidian5.Setting(containerEl).setName("Wiki file name template").setDesc("Template for the file name used when creating a new note for a wiki entry.").addText((cb) => { + new import_obsidian6.Setting(containerEl).setName("Wiki file name template").setDesc("Template for the file name used when creating a new note for a wiki entry.").addText((cb) => { cb.setPlaceholder(`Example: ${DEFAULT_SETTINGS.wikiFileNameTemplate}`).setValue(this.plugin.settings.wikiFileNameTemplate).onChange((data) => { this.plugin.settings.wikiFileNameTemplate = data; this.plugin.saveSettings(); }); }); - new import_obsidian5.Setting(containerEl).setName("Music Release file name template").setDesc("Template for the file name used when creating a new note for a music release.").addText((cb) => { + new import_obsidian6.Setting(containerEl).setName("Music Release file name template").setDesc("Template for the file name used when creating a new note for a music release.").addText((cb) => { cb.setPlaceholder(`Example: ${DEFAULT_SETTINGS.musicReleaseFileNameTemplate}`).setValue(this.plugin.settings.musicReleaseFileNameTemplate).onChange((data) => { this.plugin.settings.musicReleaseFileNameTemplate = data; this.plugin.saveSettings(); }); }); - new import_obsidian5.Setting(containerEl).setName("Board Game file name template").setDesc("Template for the file name used when creating a new note for a boardgame.").addText((cb) => { + new import_obsidian6.Setting(containerEl).setName("Board Game file name template").setDesc("Template for the file name used when creating a new note for a boardgame.").addText((cb) => { cb.setPlaceholder(`Example: ${DEFAULT_SETTINGS.boardgameFileNameTemplate}`).setValue(this.plugin.settings.boardgameFileNameTemplate).onChange((data) => { this.plugin.settings.boardgameFileNameTemplate = data; this.plugin.saveSettings(); }); }); containerEl.createEl("h3", { text: "Property Mappings" }); - let propertyMappingExplanation = containerEl.createEl("div"); + const propertyMappingExplanation = containerEl.createEl("div"); propertyMappingExplanation.innerHTML = `

Allow you to remap the metadata fields of newly created media db entries.

@@ -3728,7 +3807,7 @@ var MediaDbSettingTab = class extends import_obsidian5.PluginSettingTab { props: { models: this.plugin.settings.propertyMappingModels.map((x) => x.copy()), save: (model) => { - let propertyMappingModels = []; + const propertyMappingModels = []; for (const model2 of this.plugin.settings.propertyMappingModels) { if (model2.type === model.type) { propertyMappingModels.push(model); @@ -3737,7 +3816,7 @@ var MediaDbSettingTab = class extends import_obsidian5.PluginSettingTab { } } this.plugin.settings.propertyMappingModels = propertyMappingModels; - new import_obsidian5.Notice(`MDB: Property Mappings for ${model.type} saved successfully.`); + new import_obsidian6.Notice(`MDB: Property Mappings for ${model.type} saved successfully.`); this.plugin.saveSettings(); } } @@ -3813,7 +3892,7 @@ var OMDbAPI = class extends APIModel { this.apiName = "OMDbAPI"; this.apiDescription = "A free API for Movies, Series and Games."; this.apiUrl = "http://www.omdbapi.com/"; - this.types = ["movie", "series"]; + this.types = [MediaType.Movie, MediaType.Series, MediaType.Game]; this.typeMappings = new Map(); this.typeMappings.set("movie", "movie"); this.typeMappings.set("series", "series"); @@ -3837,8 +3916,8 @@ var OMDbAPI = class extends APIModel { if (!data.Search) { return []; } - debugLog(data.Search); - let ret = []; + console.debug(data.Search); + const ret = []; for (const result of data.Search) { const type = this.typeMappings.get(result.Type.toLowerCase()); if (type === void 0) { @@ -3878,7 +3957,7 @@ var OMDbAPI = class extends APIModel { } getById(id) { return __async(this, null, function* () { - var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r; + var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v; console.log(`MDB | api "${this.apiName}" queried by ID`); const searchUrl = `http://www.omdbapi.com/?i=${encodeURIComponent(id)}&apikey=${this.plugin.settings.OMDbKey}`; const fetchData = yield fetch(searchUrl); @@ -3889,7 +3968,7 @@ var OMDbAPI = class extends APIModel { throw Error(`MDB | Received status code ${fetchData.status} from an API.`); } const result = yield fetchData.json(); - debugLog(result); + console.debug(result); if (result.Response === "False") { throw Error(`MDB | Received error from ${this.apiName}: ${result.Error}`); } @@ -3910,9 +3989,11 @@ var OMDbAPI = class extends APIModel { producer: (_c = result.Director) != null ? _c : "unknown", duration: (_d = result.Runtime) != null ? _d : "unknown", onlineRating: Number.parseFloat((_e = result.imdbRating) != null ? _e : 0), - image: (_f = result.Poster) != null ? _f : "", + actors: (_g = (_f = result.Actors) == null ? void 0 : _f.split(", ")) != null ? _g : [], + image: (_h = result.Poster) != null ? _h : "", released: true, - premiere: (_g = new Date(result.Released).toLocaleDateString()) != null ? _g : "unknown", + streamingServices: [], + premiere: (_i = new Date(result.Released).toLocaleDateString()) != null ? _i : "unknown", userData: { watched: false, lastWatched: "", @@ -3929,15 +4010,17 @@ var OMDbAPI = class extends APIModel { dataSource: this.apiName, url: `https://www.imdb.com/title/${result.imdbID}/`, id: result.imdbID, - genres: (_i = (_h = result.Genre) == null ? void 0 : _h.split(", ")) != null ? _i : [], + genres: (_k = (_j = result.Genre) == null ? void 0 : _j.split(", ")) != null ? _k : [], studios: [result.Director], episodes: 0, - duration: (_j = result.Runtime) != null ? _j : "unknown", - onlineRating: Number.parseFloat((_k = result.imdbRating) != null ? _k : 0), - image: (_l = result.Poster) != null ? _l : "", + duration: (_l = result.Runtime) != null ? _l : "unknown", + onlineRating: Number.parseFloat((_m = result.imdbRating) != null ? _m : 0), + actors: (_o = (_n = result.Actors) == null ? void 0 : _n.split(", ")) != null ? _o : [], + image: (_p = result.Poster) != null ? _p : "", released: true, + streamingServices: [], airing: false, - airedFrom: (_m = new Date(result.Released).toLocaleDateString()) != null ? _m : "unknown", + airedFrom: (_q = new Date(result.Released).toLocaleDateString()) != null ? _q : "unknown", airedTo: "unknown", userData: { watched: false, @@ -3955,11 +4038,11 @@ var OMDbAPI = class extends APIModel { dataSource: this.apiName, url: `https://www.imdb.com/title/${result.imdbID}/`, id: result.imdbID, - genres: (_o = (_n = result.Genre) == null ? void 0 : _n.split(", ")) != null ? _o : [], - onlineRating: Number.parseFloat((_p = result.imdbRating) != null ? _p : 0), - image: (_q = result.Poster) != null ? _q : "", + genres: (_s = (_r = result.Genre) == null ? void 0 : _r.split(", ")) != null ? _s : [], + onlineRating: Number.parseFloat((_t = result.imdbRating) != null ? _t : 0), + image: (_u = result.Poster) != null ? _u : "", released: true, - releaseDate: (_r = new Date(result.Released).toLocaleDateString()) != null ? _r : "unknown", + releaseDate: (_v = new Date(result.Released).toLocaleDateString()) != null ? _v : "unknown", userData: { played: false, personalRating: 0 @@ -3980,7 +4063,7 @@ var MALAPI = class extends APIModel { this.apiName = "MALAPI"; this.apiDescription = "A free API for Anime. Some results may take a long time to load."; this.apiUrl = "https://jikan.moe/"; - this.types = ["movie", "series", "anime"]; + this.types = [MediaType.Movie, MediaType.Series]; this.typeMappings = new Map(); this.typeMappings.set("movie", "movie"); this.typeMappings.set("special", "special"); @@ -3993,13 +4076,13 @@ var MALAPI = class extends APIModel { console.log(`MDB | api "${this.apiName}" queried by Title`); const searchUrl = `https://api.jikan.moe/v4/anime?q=${encodeURIComponent(title)}&limit=20${this.plugin.settings.sfwFilter ? "&sfw" : ""}`; const fetchData = yield fetch(searchUrl); - debugLog(fetchData); + console.debug(fetchData); if (fetchData.status !== 200) { throw Error(`MDB | Received status code ${fetchData.status} from an API.`); } const data = yield fetchData.json(); - debugLog(data); - let ret = []; + console.debug(data); + const ret = []; for (const result of data.data) { const type = this.typeMappings.get((_a = result.type) == null ? void 0 : _a.toLowerCase()); if (type === void 0) { @@ -4037,15 +4120,15 @@ var MALAPI = class extends APIModel { } getById(id) { return __async(this, null, function* () { - var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _A, _B, _C, _D, _E, _F, _G, _H, _I, _J, _K, _L, _M, _N, _O, _P, _Q, _R, _S, _T, _U, _V, _W, _X, _Y, _Z, __, _$; + var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _A, _B, _C, _D, _E, _F, _G, _H, _I, _J, _K, _L, _M, _N, _O, _P, _Q, _R, _S, _T, _U, _V, _W, _X, _Y, _Z, __, _$, _aa, _ba, _ca, _da, _ea, _fa; console.log(`MDB | api "${this.apiName}" queried by ID`); - const searchUrl = `https://api.jikan.moe/v4/anime/${encodeURIComponent(id)}`; + const searchUrl = `https://api.jikan.moe/v4/anime/${encodeURIComponent(id)}/full`; const fetchData = yield fetch(searchUrl); if (fetchData.status !== 200) { throw Error(`MDB | Received status code ${fetchData.status} from an API.`); } const data = yield fetchData.json(); - debugLog(data); + console.debug(data); const result = data.data; const type = this.typeMappings.get((_a = result.type) == null ? void 0 : _a.toLowerCase()); if (type === void 0) { @@ -4061,9 +4144,11 @@ var MALAPI = class extends APIModel { producer: (_k = (_j = result.studios) == null ? void 0 : _j.map((x) => x.name).join(", ")) != null ? _k : "unknown", duration: (_l = result.duration) != null ? _l : "unknown", onlineRating: (_m = result.score) != null ? _m : 0, + actors: [], image: (_p = (_o = (_n = result.images) == null ? void 0 : _n.jpg) == null ? void 0 : _o.image_url) != null ? _p : "", released: true, premiere: (_r = new Date((_q = result.aired) == null ? void 0 : _q.from).toLocaleDateString()) != null ? _r : "unknown", + streamingServices: (_t = (_s = result.streaming) == null ? void 0 : _s.map((x) => x.name)) != null ? _t : [], userData: { watched: false, lastWatched: "", @@ -4076,18 +4161,20 @@ var MALAPI = class extends APIModel { const model = new MovieModel({ subType: type, title: result.title, - englishTitle: (_s = result.title_english) != null ? _s : result.title, - year: (_x = (_w = result.year) != null ? _w : (_v = (_u = (_t = result.aired) == null ? void 0 : _t.prop) == null ? void 0 : _u.from) == null ? void 0 : _v.year) != null ? _x : "", + englishTitle: (_u = result.title_english) != null ? _u : result.title, + year: (_z = (_y = result.year) != null ? _y : (_x = (_w = (_v = result.aired) == null ? void 0 : _v.prop) == null ? void 0 : _w.from) == null ? void 0 : _x.year) != null ? _z : "", dataSource: this.apiName, url: result.url, id: result.mal_id, - genres: (_z = (_y = result.genres) == null ? void 0 : _y.map((x) => x.name)) != null ? _z : [], - producer: (_B = (_A = result.studios) == null ? void 0 : _A.map((x) => x.name).join(", ")) != null ? _B : "unknown", - duration: (_C = result.duration) != null ? _C : "unknown", - onlineRating: (_D = result.score) != null ? _D : 0, - image: (_G = (_F = (_E = result.images) == null ? void 0 : _E.jpg) == null ? void 0 : _F.image_url) != null ? _G : "", + genres: (_B = (_A = result.genres) == null ? void 0 : _A.map((x) => x.name)) != null ? _B : [], + producer: (_D = (_C = result.studios) == null ? void 0 : _C.map((x) => x.name).join(", ")) != null ? _D : "unknown", + duration: (_E = result.duration) != null ? _E : "unknown", + onlineRating: (_F = result.score) != null ? _F : 0, + actors: [], + image: (_I = (_H = (_G = result.images) == null ? void 0 : _G.jpg) == null ? void 0 : _H.image_url) != null ? _I : "", released: true, - premiere: (_I = new Date((_H = result.aired) == null ? void 0 : _H.from).toLocaleDateString()) != null ? _I : "unknown", + premiere: (_K = new Date((_J = result.aired) == null ? void 0 : _J.from).toLocaleDateString()) != null ? _K : "unknown", + streamingServices: (_M = (_L = result.streaming) == null ? void 0 : _L.map((x) => x.name)) != null ? _M : [], userData: { watched: false, lastWatched: "", @@ -4099,20 +4186,21 @@ var MALAPI = class extends APIModel { const model = new SeriesModel({ subType: type, title: result.title, - englishTitle: (_J = result.title_english) != null ? _J : result.title, - year: (_O = (_N = result.year) != null ? _N : (_M = (_L = (_K = result.aired) == null ? void 0 : _K.prop) == null ? void 0 : _L.from) == null ? void 0 : _M.year) != null ? _O : "", + englishTitle: (_N = result.title_english) != null ? _N : result.title, + year: (_S = (_R = result.year) != null ? _R : (_Q = (_P = (_O = result.aired) == null ? void 0 : _O.prop) == null ? void 0 : _P.from) == null ? void 0 : _Q.year) != null ? _S : "", dataSource: this.apiName, url: result.url, id: result.mal_id, - genres: (_Q = (_P = result.genres) == null ? void 0 : _P.map((x) => x.name)) != null ? _Q : [], - studios: (_S = (_R = result.studios) == null ? void 0 : _R.map((x) => x.name)) != null ? _S : [], + genres: (_U = (_T = result.genres) == null ? void 0 : _T.map((x) => x.name)) != null ? _U : [], + studios: (_W = (_V = result.studios) == null ? void 0 : _V.map((x) => x.name)) != null ? _W : [], episodes: result.episodes, - duration: (_T = result.duration) != null ? _T : "unknown", - onlineRating: (_U = result.score) != null ? _U : 0, - image: (_X = (_W = (_V = result.images) == null ? void 0 : _V.jpg) == null ? void 0 : _W.image_url) != null ? _X : "", + duration: (_X = result.duration) != null ? _X : "unknown", + onlineRating: (_Y = result.score) != null ? _Y : 0, + streamingServices: (__ = (_Z = result.streaming) == null ? void 0 : _Z.map((x) => x.name)) != null ? __ : [], + image: (_ba = (_aa = (_$ = result.images) == null ? void 0 : _$.jpg) == null ? void 0 : _aa.image_url) != null ? _ba : "", released: true, - airedFrom: (_Z = new Date((_Y = result.aired) == null ? void 0 : _Y.from).toLocaleDateString()) != null ? _Z : "unknown", - airedTo: (_$ = new Date((__ = result.aired) == null ? void 0 : __.to).toLocaleDateString()) != null ? _$ : "unknown", + airedFrom: (_da = new Date((_ca = result.aired) == null ? void 0 : _ca.from).toLocaleDateString()) != null ? _da : "unknown", + airedTo: (_fa = new Date((_ea = result.aired) == null ? void 0 : _ea.to).toLocaleDateString()) != null ? _fa : "unknown", airing: result.airing, userData: { watched: false, @@ -4135,20 +4223,20 @@ var WikipediaAPI = class extends APIModel { this.apiName = "Wikipedia API"; this.apiDescription = "The API behind Wikipedia"; this.apiUrl = "https://www.wikipedia.com"; - this.types = ["wiki"]; + this.types = [MediaType.Wiki]; } searchByTitle(title) { return __async(this, null, function* () { console.log(`MDB | api "${this.apiName}" queried by Title`); const searchUrl = `https://en.wikipedia.org/w/api.php?action=query&list=search&srsearch=${encodeURIComponent(title)}&srlimit=20&utf8=&format=json&origin=*`; const fetchData = yield fetch(searchUrl); - debugLog(fetchData); + console.debug(fetchData); if (fetchData.status !== 200) { throw Error(`MDB | Received status code ${fetchData.status} from an API.`); } const data = yield fetchData.json(); - debugLog(data); - let ret = []; + console.debug(data); + const ret = []; for (const result of data.query.search) { ret.push(new WikiModel({ type: "wiki", @@ -4172,7 +4260,7 @@ var WikipediaAPI = class extends APIModel { throw Error(`MDB | Received status code ${fetchData.status} from an API.`); } const data = yield fetchData.json(); - debugLog(data); + console.debug(data); const result = Object.entries((_a = data == null ? void 0 : data.query) == null ? void 0 : _a.pages)[0][1]; const model = new WikiModel({ type: "wiki", @@ -4193,7 +4281,7 @@ var WikipediaAPI = class extends APIModel { }; // src/api/apis/MusicBrainzAPI.ts -var import_obsidian6 = __toModule(require("obsidian")); +var import_obsidian7 = __toModule(require("obsidian")); var MusicBrainzAPI = class extends APIModel { constructor(plugin) { super(); @@ -4201,25 +4289,25 @@ var MusicBrainzAPI = class extends APIModel { this.apiName = "MusicBrainz API"; this.apiDescription = "Free API for music albums."; this.apiUrl = "https://musicbrainz.org/"; - this.types = ["music"]; + this.types = [MediaType.MusicRelease]; } searchByTitle(title) { return __async(this, null, function* () { console.log(`MDB | api "${this.apiName}" queried by Title`); const searchUrl = `https://musicbrainz.org/ws/2/release-group?query=${encodeURIComponent(title)}&limit=20&fmt=json`; - const fetchData = yield (0, import_obsidian6.requestUrl)({ + const fetchData = yield (0, import_obsidian7.requestUrl)({ url: searchUrl, headers: { "User-Agent": `${pluginName}/${mediaDbVersion} (${contactEmail})` } }); - debugLog(fetchData); + console.debug(fetchData); if (fetchData.status !== 200) { throw Error(`MDB | Received status code ${fetchData.status} from an API.`); } const data = yield fetchData.json; - debugLog(data); - let ret = []; + console.debug(data); + const ret = []; for (const result of data["release-groups"]) { ret.push(new MusicReleaseModel({ type: "musicRelease", @@ -4240,7 +4328,7 @@ var MusicBrainzAPI = class extends APIModel { return __async(this, null, function* () { console.log(`MDB | api "${this.apiName}" queried by ID`); const searchUrl = `https://musicbrainz.org/ws/2/release-group/${encodeURIComponent(id)}?inc=releases+artists+tags+ratings+genres&fmt=json`; - const fetchData = yield (0, import_obsidian6.requestUrl)({ + const fetchData = yield (0, import_obsidian7.requestUrl)({ url: searchUrl, headers: { "User-Agent": `${pluginName}/${mediaDbVersion} (${contactEmail})` @@ -4250,7 +4338,7 @@ var MusicBrainzAPI = class extends APIModel { throw Error(`MDB | Received status code ${fetchData.status} from an API.`); } const data = yield fetchData.json; - debugLog(data); + console.debug(data); const result = data; const model = new MusicReleaseModel({ type: "musicRelease", @@ -4274,7 +4362,7 @@ var MusicBrainzAPI = class extends APIModel { }; // src/api/apis/SteamAPI.ts -var import_obsidian7 = __toModule(require("obsidian")); +var import_obsidian8 = __toModule(require("obsidian")); var SteamAPI = class extends APIModel { constructor(plugin) { super(); @@ -4282,7 +4370,7 @@ var SteamAPI = class extends APIModel { this.apiName = "SteamAPI"; this.apiDescription = "A free API for all Steam games."; this.apiUrl = "http://www.steampowered.com/"; - this.types = ["games"]; + this.types = [MediaType.Game]; this.typeMappings = new Map(); this.typeMappings.set("game", "game"); } @@ -4290,15 +4378,15 @@ var SteamAPI = class extends APIModel { return __async(this, null, function* () { console.log(`MDB | api "${this.apiName}" queried by Title`); const searchUrl = `http://api.steampowered.com/ISteamApps/GetAppList/v0002/?format=json`; - const fetchData = yield (0, import_obsidian7.requestUrl)({ + const fetchData = yield (0, import_obsidian8.requestUrl)({ url: searchUrl }); if (fetchData.status !== 200) { throw Error(`MDB | Received status code ${fetchData.status} from an API.`); } const data = yield fetchData.json; - debugLog(data); - let filteredData = []; + console.debug(data); + const filteredData = []; for (const app of data.applist.apps) { if (app.name.toLowerCase().includes(title.toLowerCase())) { filteredData.push(app); @@ -4307,7 +4395,7 @@ var SteamAPI = class extends APIModel { break; } } - let ret = []; + const ret = []; for (const result of filteredData) { ret.push(new GameModel({ type: MediaType.Game, @@ -4325,14 +4413,14 @@ var SteamAPI = class extends APIModel { return __async(this, null, function* () { var _a, _b, _c, _d, _e, _f, _g, _h; console.log(`MDB | api "${this.apiName}" queried by ID`); - const searchUrl = `http://store.steampowered.com/api/appdetails?appids=${encodeURIComponent(id)}`; - const fetchData = yield (0, import_obsidian7.requestUrl)({ + const searchUrl = `http://store.steampowered.com/api/appdetails?appids=${encodeURIComponent(id)}&l=en`; + const fetchData = yield (0, import_obsidian8.requestUrl)({ url: searchUrl }); if (fetchData.status !== 200) { throw Error(`MDB | Received status code ${fetchData.status} from an API.`); } - debugLog(yield fetchData.json); + console.debug(yield fetchData.json); let result; for (const [key, value] of Object.entries(yield fetchData.json)) { if (key === String(id)) { @@ -4342,7 +4430,7 @@ var SteamAPI = class extends APIModel { if (!result) { throw Error(`MDB | API returned invalid data.`); } - debugLog(result); + console.debug(result); const model = new GameModel({ type: MediaType.Game, title: result.name, @@ -4367,7 +4455,7 @@ var SteamAPI = class extends APIModel { }; // src/api/apis/BoardGameGeekAPI.ts -var import_obsidian8 = __toModule(require("obsidian")); +var import_obsidian9 = __toModule(require("obsidian")); var BoardGameGeekAPI = class extends APIModel { constructor(plugin) { super(); @@ -4375,14 +4463,14 @@ var BoardGameGeekAPI = class extends APIModel { this.apiName = "BoardGameGeekAPI"; this.apiDescription = "A free API for BoardGameGeek things."; this.apiUrl = "https://api.geekdo.com/xmlapi"; - this.types = ["boardgames"]; + this.types = [MediaType.BoardGame]; } searchByTitle(title) { return __async(this, null, function* () { - var _a, _b; + var _a, _b, _c, _d; console.log(`MDB | api "${this.apiName}" queried by Title`); const searchUrl = `${this.apiUrl}/search?search=${encodeURIComponent(title)}`; - const fetchData = yield (0, import_obsidian8.requestUrl)({ + const fetchData = yield (0, import_obsidian9.requestUrl)({ url: searchUrl }); if (fetchData.status !== 200) { @@ -4390,12 +4478,12 @@ var BoardGameGeekAPI = class extends APIModel { } const data = fetchData.text; const response = new window.DOMParser().parseFromString(data, "text/xml"); - debugLog(response); - let ret = []; + console.debug(response); + const ret = []; for (const boardgame of Array.from(response.querySelectorAll("boardgame"))) { const id = boardgame.attributes.getNamedItem("objectid").value; - const title2 = boardgame.querySelector("name").textContent; - const year = (_b = (_a = boardgame.querySelector("yearpublished")) == null ? void 0 : _a.textContent) != null ? _b : ""; + const title2 = (_b = (_a = boardgame.querySelector("name[primary=true]")) == null ? void 0 : _a.textContent) != null ? _b : boardgame.querySelector("name").textContent; + const year = (_d = (_c = boardgame.querySelector("yearpublished")) == null ? void 0 : _c.textContent) != null ? _d : ""; ret.push(new BoardGameModel({ dataSource: this.apiName, id, @@ -4409,10 +4497,10 @@ var BoardGameGeekAPI = class extends APIModel { } getById(id) { return __async(this, null, function* () { - var _a, _b, _c, _d, _e, _f; + var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n; console.log(`MDB | api "${this.apiName}" queried by ID`); const searchUrl = `${this.apiUrl}/boardgame/${encodeURIComponent(id)}?stats=1`; - const fetchData = yield (0, import_obsidian8.requestUrl)({ + const fetchData = yield (0, import_obsidian9.requestUrl)({ url: searchUrl }); if (fetchData.status !== 200) { @@ -4420,13 +4508,18 @@ var BoardGameGeekAPI = class extends APIModel { } const data = fetchData.text; const response = new window.DOMParser().parseFromString(data, "text/xml"); - debugLog(response); + console.debug(response); const boardgame = response.querySelector("boardgame"); - const title = boardgame.querySelector("name").textContent; + const title = boardgame.querySelector("name[primary=true]").textContent; const year = (_b = (_a = boardgame.querySelector("yearpublished")) == null ? void 0 : _a.textContent) != null ? _b : ""; const image = (_d = (_c = boardgame.querySelector("image")) == null ? void 0 : _c.textContent) != null ? _d : void 0; - const onlineRating = Number.parseFloat((_f = (_e = boardgame.querySelector("statistics ratings average")) == null ? void 0 : _e.textContent) != null ? _f : ""); + const onlineRating = Number.parseFloat((_f = (_e = boardgame.querySelector("statistics ratings average")) == null ? void 0 : _e.textContent) != null ? _f : "0"); const genres = Array.from(boardgame.querySelectorAll("boardgamecategory")).map((n) => n.textContent); + const complexityRating = Number.parseFloat((_h = (_g = boardgame.querySelector("averageweight")) == null ? void 0 : _g.textContent) != null ? _h : "0"); + const minPlayers = Number.parseFloat((_j = (_i = boardgame.querySelector("minplayers")) == null ? void 0 : _i.textContent) != null ? _j : "0"); + const maxPlayers = Number.parseFloat((_l = (_k = boardgame.querySelector("maxplayers")) == null ? void 0 : _k.textContent) != null ? _l : "0"); + const playtime = ((_n = (_m = boardgame.querySelector("playingtime")) == null ? void 0 : _m.textContent) != null ? _n : "unknown") + " minutes"; + const publishers = Array.from(boardgame.querySelectorAll("boardgamepublisher")).map((n) => n.textContent); const model = new BoardGameModel({ title, englishTitle: title, @@ -4436,6 +4529,11 @@ var BoardGameGeekAPI = class extends APIModel { id, genres, onlineRating, + complexityRating, + minPlayers, + maxPlayers, + playtime, + publishers, image, released: true, userData: { @@ -4547,8 +4645,8 @@ ${YAMLConverter.calculateSpacing(indentation)} ${objKey}: ${YAMLConverter.toY }; // src/modals/MediaDbFolderImportModal.ts -var import_obsidian9 = __toModule(require("obsidian")); -var MediaDbFolderImportModal = class extends import_obsidian9.Modal { +var import_obsidian10 = __toModule(require("obsidian")); +var MediaDbFolderImportModal = class extends import_obsidian10.Modal { constructor(app, plugin, onSubmit) { super(app); this.plugin = plugin; @@ -4565,7 +4663,7 @@ var MediaDbFolderImportModal = class extends import_obsidian9.Modal { const apiSelectorWrapper = contentEl.createEl("div", { cls: "media-db-plugin-list-wrapper" }); const apiSelectorTextWrapper = apiSelectorWrapper.createEl("div", { cls: "media-db-plugin-list-text-wrapper" }); apiSelectorTextWrapper.createEl("span", { text: "API to search", cls: "media-db-plugin-list-text" }); - const apiSelectorComponent = new import_obsidian9.DropdownComponent(apiSelectorWrapper); + const apiSelectorComponent = new import_obsidian10.DropdownComponent(apiSelectorWrapper); apiSelectorComponent.onChange((value) => { this.selectedApi = value; }); @@ -4582,14 +4680,14 @@ var MediaDbFolderImportModal = class extends import_obsidian9.Modal { cls: "media-db-plugin-list-text" }); const appendContentToggleComponentWrapper = appendContentToggleElementWrapper.createEl("div", { cls: "media-db-plugin-list-toggle" }); - const appendContentToggle = new import_obsidian9.ToggleComponent(appendContentToggleElementWrapper); + const appendContentToggle = new import_obsidian10.ToggleComponent(appendContentToggleElementWrapper); appendContentToggle.setValue(false); appendContentToggle.onChange((value) => this.appendContent = value); appendContentToggleComponentWrapper.appendChild(appendContentToggle.toggleEl); contentEl.createDiv({ cls: "media-db-plugin-spacer" }); contentEl.createEl("h3", { text: "The name of the metadata field that should be used as the title to query." }); const placeholder = "title"; - const titleFieldNameComponent = new import_obsidian9.TextComponent(contentEl); + const titleFieldNameComponent = new import_obsidian10.TextComponent(contentEl); titleFieldNameComponent.inputEl.style.width = "100%"; titleFieldNameComponent.setPlaceholder(placeholder); titleFieldNameComponent.onChange((value) => this.titleFieldName = value); @@ -4600,7 +4698,7 @@ var MediaDbFolderImportModal = class extends import_obsidian9.Modal { }); contentEl.appendChild(titleFieldNameComponent.inputEl); contentEl.createDiv({ cls: "media-db-plugin-spacer" }); - new import_obsidian9.Setting(contentEl).addButton((btn) => { + new import_obsidian10.Setting(contentEl).addButton((btn) => { btn.setButtonText("Cancel"); btn.onClick(() => this.close()); btn.buttonEl.addClass("media-db-plugin-button"); @@ -4621,8 +4719,8 @@ var MediaDbFolderImportModal = class extends import_obsidian9.Modal { }; // src/modals/MediaDbAdvancedSearchModal.ts -var import_obsidian10 = __toModule(require("obsidian")); -var MediaDbAdvancedSearchModal = class extends import_obsidian10.Modal { +var import_obsidian11 = __toModule(require("obsidian")); +var MediaDbAdvancedSearchModal = class extends import_obsidian11.Modal { constructor(plugin, advancedSearchModalOptions) { advancedSearchModalOptions = Object.assign({}, ADVANCED_SEARCH_MODAL_DEFAULT_OPTIONS, advancedSearchModalOptions); super(plugin.app); @@ -4648,12 +4746,12 @@ var MediaDbAdvancedSearchModal = class extends import_obsidian10.Modal { search() { return __async(this, null, function* () { if (!this.query || this.query.length < 3) { - new import_obsidian10.Notice("MDB | Query too short"); + new import_obsidian11.Notice("MDB | Query too short"); return; } const apis = this.selectedApis.filter((x) => x.selected).map((x) => x.name); if (apis.length === 0) { - new import_obsidian10.Notice("MDB | No API selected"); + new import_obsidian11.Notice("MDB | No API selected"); return; } if (!this.isBusy) { @@ -4668,7 +4766,7 @@ var MediaDbAdvancedSearchModal = class extends import_obsidian10.Modal { const { contentEl } = this; contentEl.createEl("h2", { text: this.title }); const placeholder = "Search by title"; - const searchComponent = new import_obsidian10.TextComponent(contentEl); + const searchComponent = new import_obsidian11.TextComponent(contentEl); searchComponent.inputEl.style.width = "100%"; searchComponent.setPlaceholder(placeholder); searchComponent.setValue(this.query); @@ -4684,7 +4782,7 @@ var MediaDbAdvancedSearchModal = class extends import_obsidian10.Modal { apiToggleTextWrapper.createEl("span", { text: api.apiName, cls: "media-db-plugin-list-text" }); apiToggleTextWrapper.createEl("small", { text: api.apiDescription, cls: "media-db-plugin-list-text" }); const apiToggleComponentWrapper = apiToggleListElementWrapper.createEl("div", { cls: "media-db-plugin-list-toggle" }); - const apiToggleComponent = new import_obsidian10.ToggleComponent(apiToggleComponentWrapper); + const apiToggleComponent = new import_obsidian11.ToggleComponent(apiToggleComponentWrapper); apiToggleComponent.setTooltip(api.apiName); apiToggleComponent.setValue(this.selectedApis.find((x) => x.name === api.apiName).selected); apiToggleComponent.onChange((value) => { @@ -4693,7 +4791,7 @@ var MediaDbAdvancedSearchModal = class extends import_obsidian10.Modal { apiToggleComponentWrapper.appendChild(apiToggleComponent.toggleEl); } contentEl.createDiv({ cls: "media-db-plugin-spacer" }); - new import_obsidian10.Setting(contentEl).addButton((btn) => { + new import_obsidian11.Setting(contentEl).addButton((btn) => { btn.setButtonText("Cancel"); btn.onClick(() => this.close()); btn.buttonEl.addClass("media-db-plugin-button"); @@ -4715,8 +4813,8 @@ var MediaDbAdvancedSearchModal = class extends import_obsidian10.Modal { }; // src/modals/MediaDbIdSearchModal.ts -var import_obsidian11 = __toModule(require("obsidian")); -var MediaDbIdSearchModal = class extends import_obsidian11.Modal { +var import_obsidian12 = __toModule(require("obsidian")); +var MediaDbIdSearchModal = class extends import_obsidian12.Modal { constructor(plugin, idSearchModalOptions) { idSearchModalOptions = Object.assign({}, ID_SEARCH_MODAL_DEFAULT_OPTIONS, idSearchModalOptions); super(plugin.app); @@ -4738,11 +4836,11 @@ var MediaDbIdSearchModal = class extends import_obsidian11.Modal { search() { return __async(this, null, function* () { if (!this.query) { - new import_obsidian11.Notice("MDB | no Id entered"); + new import_obsidian12.Notice("MDB | no Id entered"); return; } if (!this.selectedApi) { - new import_obsidian11.Notice("MDB | No API selected"); + new import_obsidian12.Notice("MDB | No API selected"); return; } if (!this.isBusy) { @@ -4757,7 +4855,7 @@ var MediaDbIdSearchModal = class extends import_obsidian11.Modal { const { contentEl } = this; contentEl.createEl("h2", { text: this.title }); const placeholder = "Search by id"; - const searchComponent = new import_obsidian11.TextComponent(contentEl); + const searchComponent = new import_obsidian12.TextComponent(contentEl); searchComponent.inputEl.style.width = "100%"; searchComponent.setPlaceholder(placeholder); searchComponent.onChange((value) => this.query = value); @@ -4768,7 +4866,7 @@ var MediaDbIdSearchModal = class extends import_obsidian11.Modal { const apiSelectorWrapper = contentEl.createEl("div", { cls: "media-db-plugin-list-wrapper" }); const apiSelectorTExtWrapper = apiSelectorWrapper.createEl("div", { cls: "media-db-plugin-list-text-wrapper" }); apiSelectorTExtWrapper.createEl("span", { text: "API to search", cls: "media-db-plugin-list-text" }); - const apiSelectorComponent = new import_obsidian11.DropdownComponent(apiSelectorWrapper); + const apiSelectorComponent = new import_obsidian12.DropdownComponent(apiSelectorWrapper); apiSelectorComponent.onChange((value) => { this.selectedApi = value; }); @@ -4777,7 +4875,7 @@ var MediaDbIdSearchModal = class extends import_obsidian11.Modal { } apiSelectorWrapper.appendChild(apiSelectorComponent.selectEl); contentEl.createDiv({ cls: "media-db-plugin-spacer" }); - new import_obsidian11.Setting(contentEl).addButton((btn) => { + new import_obsidian12.Setting(contentEl).addButton((btn) => { btn.setButtonText("Cancel"); btn.onClick(() => this.close()); btn.buttonEl.addClass("media-db-plugin-button"); @@ -4799,7 +4897,7 @@ var MediaDbIdSearchModal = class extends import_obsidian11.Modal { }; // src/modals/SelectModal.ts -var import_obsidian12 = __toModule(require("obsidian")); +var import_obsidian13 = __toModule(require("obsidian")); // src/modals/SelectModalElement.ts var SelectModalElement = class { @@ -4868,7 +4966,7 @@ var SelectModalElement = class { }; // src/modals/SelectModal.ts -var SelectModal = class extends import_obsidian12.Modal { +var SelectModal = class extends import_obsidian13.Modal { constructor(app, elements, allowMultiSelect = true) { super(app); this.allowMultiSelect = allowMultiSelect; @@ -4931,7 +5029,7 @@ var SelectModal = class extends import_obsidian12.Modal { i += 1; } (_a = this.selectModalElements.first()) == null ? void 0 : _a.element.scrollIntoView(); - const bottomSettingRow = new import_obsidian12.Setting(contentEl); + const bottomSettingRow = new import_obsidian13.Setting(contentEl); bottomSettingRow.addButton((btn) => { btn.setButtonText("Cancel"); btn.onClick(() => this.close()); @@ -5039,11 +5137,11 @@ var MediaDbSearchResultModal = class extends SelectModal { }; // src/utils/ModalHelper.ts -var import_obsidian14 = __toModule(require("obsidian")); +var import_obsidian16 = __toModule(require("obsidian")); // src/modals/MediaDbPreviewModal.ts -var import_obsidian13 = __toModule(require("obsidian")); -var MediaDbPreviewModal = class extends import_obsidian13.Modal { +var import_obsidian14 = __toModule(require("obsidian")); +var MediaDbPreviewModal = class extends import_obsidian14.Modal { constructor(plugin, previewModalOptions) { previewModalOptions = Object.assign({}, PREVIEW_MODAL_DEFAULT_OPTIONS, previewModalOptions); super(plugin.app); @@ -5060,24 +5158,24 @@ var MediaDbPreviewModal = class extends import_obsidian13.Modal { } preview() { return __async(this, null, function* () { - let { contentEl } = this; + const { contentEl } = this; contentEl.addClass("media-db-plugin-preview-modal"); contentEl.createEl("h2", { text: this.title }); const previewWrapper = contentEl.createDiv({ cls: "media-db-plugin-preview-wrapper" }); - for (let result of this.elements) { + for (const result of this.elements) { previewWrapper.createEl("h3", { text: result.englishTitle }); const fileDiv = previewWrapper.createDiv(); let fileContent = yield this.plugin.generateMediaDbNoteContents(result, this.createNoteOptions); fileContent = ` ${fileContent} `; - import_obsidian13.MarkdownRenderer.renderMarkdown(fileContent, fileDiv, null, null); + import_obsidian14.MarkdownRenderer.renderMarkdown(fileContent, fileDiv, null, null); } contentEl.createDiv({ cls: "media-db-plugin-spacer" }); - const bottomSettingRow = new import_obsidian13.Setting(contentEl); + const bottomSettingRow = new import_obsidian14.Setting(contentEl); bottomSettingRow.addButton((btn) => { btn.setButtonText("Cancel"); - btn.onClick(() => this.closeCallback()); + btn.onClick(() => this.close()); btn.buttonEl.addClass("media-db-plugin-button"); this.cancelButton = btn; }); @@ -5098,6 +5196,99 @@ ${fileContent} } }; +// src/modals/MediaDbSearchModal.ts +var import_obsidian15 = __toModule(require("obsidian")); +var MediaDbSearchModal = class extends import_obsidian15.Modal { + constructor(plugin, searchModalOptions) { + searchModalOptions = Object.assign({}, SEARCH_MODAL_DEFAULT_OPTIONS, searchModalOptions); + super(plugin.app); + this.plugin = plugin; + this.selectedTypes = []; + this.title = searchModalOptions.modalTitle; + this.query = searchModalOptions.prefilledSearchString; + for (const mediaType of MEDIA_TYPES) { + this.selectedTypes.push({ name: mediaType, selected: searchModalOptions.preselectedTypes.contains(mediaType) }); + } + } + setSubmitCallback(submitCallback) { + this.submitCallback = submitCallback; + } + setCloseCallback(closeCallback) { + this.closeCallback = closeCallback; + } + keyPressCallback(event) { + if (event.key === "Enter") { + this.search(); + } + } + search() { + return __async(this, null, function* () { + if (!this.query || this.query.length < 3) { + new import_obsidian15.Notice("MDB | Query too short"); + return; + } + const types = this.selectedTypes.filter((x) => x.selected).map((x) => x.name); + if (types.length === 0) { + new import_obsidian15.Notice("MDB | No Type selected"); + return; + } + if (!this.isBusy) { + this.isBusy = true; + this.searchBtn.setDisabled(false); + this.searchBtn.setButtonText("Searching..."); + this.submitCallback({ query: this.query, types }); + } + }); + } + onOpen() { + const { contentEl } = this; + contentEl.createEl("h2", { text: this.title }); + const placeholder = "Search by title"; + const searchComponent = new import_obsidian15.TextComponent(contentEl); + searchComponent.inputEl.style.width = "100%"; + searchComponent.setPlaceholder(placeholder); + searchComponent.setValue(this.query); + searchComponent.onChange((value) => this.query = value); + searchComponent.inputEl.addEventListener("keydown", this.keyPressCallback.bind(this)); + contentEl.appendChild(searchComponent.inputEl); + searchComponent.inputEl.focus(); + contentEl.createDiv({ cls: "media-db-plugin-spacer" }); + contentEl.createEl("h3", { text: "APIs to search" }); + for (const mediaType of MEDIA_TYPES) { + const apiToggleListElementWrapper = contentEl.createEl("div", { cls: "media-db-plugin-list-wrapper" }); + const apiToggleTextWrapper = apiToggleListElementWrapper.createEl("div", { cls: "media-db-plugin-list-text-wrapper" }); + apiToggleTextWrapper.createEl("span", { text: unCamelCase(mediaType), cls: "media-db-plugin-list-text" }); + const apiToggleComponentWrapper = apiToggleListElementWrapper.createEl("div", { cls: "media-db-plugin-list-toggle" }); + const apiToggleComponent = new import_obsidian15.ToggleComponent(apiToggleComponentWrapper); + apiToggleComponent.setTooltip(unCamelCase(mediaType)); + apiToggleComponent.setValue(this.selectedTypes.find((x) => x.name === mediaType).selected); + apiToggleComponent.onChange((value) => { + this.selectedTypes.find((x) => x.name === mediaType).selected = value; + }); + apiToggleComponentWrapper.appendChild(apiToggleComponent.toggleEl); + } + contentEl.createDiv({ cls: "media-db-plugin-spacer" }); + new import_obsidian15.Setting(contentEl).addButton((btn) => { + btn.setButtonText("Cancel"); + btn.onClick(() => this.close()); + btn.buttonEl.addClass("media-db-plugin-button"); + }).addButton((btn) => { + btn.setButtonText("Ok"); + btn.setCta(); + btn.onClick(() => { + this.search(); + }); + btn.buttonEl.addClass("media-db-plugin-button"); + this.searchBtn = btn; + }); + } + onClose() { + this.closeCallback(); + const { contentEl } = this; + contentEl.empty(); + } +}; + // src/utils/ModalHelper.ts var ModalResultCode; (function(ModalResultCode2) { @@ -5106,6 +5297,11 @@ var ModalResultCode; ModalResultCode2[ModalResultCode2["CLOSE"] = 2] = "CLOSE"; ModalResultCode2[ModalResultCode2["ERROR"] = 3] = "ERROR"; })(ModalResultCode || (ModalResultCode = {})); +var SEARCH_MODAL_DEFAULT_OPTIONS = { + modalTitle: "Media DB Search", + preselectedTypes: [], + prefilledSearchString: "" +}; var ADVANCED_SEARCH_MODAL_DEFAULT_OPTIONS = { modalTitle: "Media DB Advanced Search", preselectedAPIs: [], @@ -5131,10 +5327,51 @@ var ModalHelper = class { constructor(plugin) { this.plugin = plugin; } + createSearchModal(searchModalOptions) { + return __async(this, null, function* () { + const modal = new MediaDbSearchModal(this.plugin, searchModalOptions); + const res = yield new Promise((resolve) => { + modal.setSubmitCallback((res2) => resolve({ code: 0, data: res2 })); + modal.setCloseCallback((err) => { + if (err) { + resolve({ code: 3, error: err }); + } + resolve({ code: 2 }); + }); + modal.open(); + }); + return { searchModalResult: res, searchModal: modal }; + }); + } + openSearchModal(searchModalOptions, submitCallback) { + return __async(this, null, function* () { + const { searchModalResult, searchModal } = yield this.createSearchModal(searchModalOptions); + console.debug(`MDB | searchModal closed with code ${searchModalResult.code}`); + if (searchModalResult.code === 3) { + console.warn(searchModalResult.error); + new import_obsidian16.Notice(searchModalResult.error.toString()); + searchModal.close(); + return void 0; + } + if (searchModalResult.code === 2) { + return void 0; + } + try { + const callbackRes = yield submitCallback(searchModalResult.data); + searchModal.close(); + return callbackRes; + } catch (e) { + console.warn(e); + new import_obsidian16.Notice(e.toString()); + searchModal.close(); + return void 0; + } + }); + } createAdvancedSearchModal(advancedSearchModalOptions) { return __async(this, null, function* () { const modal = new MediaDbAdvancedSearchModal(this.plugin, advancedSearchModalOptions); - const res = yield new Promise((resolve, reject) => { + const res = yield new Promise((resolve) => { modal.setSubmitCallback((res2) => resolve({ code: 0, data: res2 })); modal.setCloseCallback((err) => { if (err) { @@ -5150,9 +5387,10 @@ var ModalHelper = class { openAdvancedSearchModal(advancedSearchModalOptions, submitCallback) { return __async(this, null, function* () { const { advancedSearchModalResult, advancedSearchModal } = yield this.createAdvancedSearchModal(advancedSearchModalOptions); + console.debug(`MDB | advencedSearchModal closed with code ${advancedSearchModalResult.code}`); if (advancedSearchModalResult.code === 3) { console.warn(advancedSearchModalResult.error); - new import_obsidian14.Notice(advancedSearchModalResult.error.toString()); + new import_obsidian16.Notice(advancedSearchModalResult.error.toString()); advancedSearchModal.close(); return void 0; } @@ -5160,13 +5398,12 @@ var ModalHelper = class { return void 0; } try { - let callbackRes; - callbackRes = yield submitCallback(advancedSearchModalResult.data); + const callbackRes = yield submitCallback(advancedSearchModalResult.data); advancedSearchModal.close(); return callbackRes; } catch (e) { console.warn(e); - new import_obsidian14.Notice(e.toString()); + new import_obsidian16.Notice(e.toString()); advancedSearchModal.close(); return void 0; } @@ -5175,7 +5412,7 @@ var ModalHelper = class { createIdSearchModal(idSearchModalOptions) { return __async(this, null, function* () { const modal = new MediaDbIdSearchModal(this.plugin, idSearchModalOptions); - const res = yield new Promise((resolve, reject) => { + const res = yield new Promise((resolve) => { modal.setSubmitCallback((res2) => resolve({ code: 0, data: res2 })); modal.setCloseCallback((err) => { if (err) { @@ -5191,9 +5428,10 @@ var ModalHelper = class { openIdSearchModal(idSearchModalOptions, submitCallback) { return __async(this, null, function* () { const { idSearchModalResult, idSearchModal } = yield this.createIdSearchModal(idSearchModalOptions); + console.debug(`MDB | idSearchModal closed with code ${idSearchModalResult.code}`); if (idSearchModalResult.code === 3) { console.warn(idSearchModalResult.error); - new import_obsidian14.Notice(idSearchModalResult.error.toString()); + new import_obsidian16.Notice(idSearchModalResult.error.toString()); idSearchModal.close(); return void 0; } @@ -5201,13 +5439,12 @@ var ModalHelper = class { return void 0; } try { - let callbackRes; - callbackRes = yield submitCallback(idSearchModalResult.data); + const callbackRes = yield submitCallback(idSearchModalResult.data); idSearchModal.close(); return callbackRes; } catch (e) { console.warn(e); - new import_obsidian14.Notice(e.toString()); + new import_obsidian16.Notice(e.toString()); idSearchModal.close(); return void 0; } @@ -5216,7 +5453,7 @@ var ModalHelper = class { createSelectModal(selectModalOptions) { return __async(this, null, function* () { const modal = new MediaDbSearchResultModal(this.plugin, selectModalOptions); - const res = yield new Promise((resolve, reject) => { + const res = yield new Promise((resolve) => { modal.setSubmitCallback((res2) => resolve({ code: 0, data: res2 })); modal.setSkipCallback(() => resolve({ code: 1 })); modal.setCloseCallback((err) => { @@ -5233,9 +5470,10 @@ var ModalHelper = class { openSelectModal(selectModalOptions, submitCallback) { return __async(this, null, function* () { const { selectModalResult, selectModal } = yield this.createSelectModal(selectModalOptions); + console.debug(`MDB | selectModal closed with code ${selectModalResult.code}`); if (selectModalResult.code === 3) { console.warn(selectModalResult.error); - new import_obsidian14.Notice(selectModalResult.error.toString()); + new import_obsidian16.Notice(selectModalResult.error.toString()); selectModal.close(); return void 0; } @@ -5246,13 +5484,12 @@ var ModalHelper = class { return void 0; } try { - let callbackRes; - callbackRes = yield submitCallback(selectModalResult.data); + const callbackRes = yield submitCallback(selectModalResult.data); selectModal.close(); return callbackRes; } catch (e) { console.warn(e); - new import_obsidian14.Notice(e.toString()); + new import_obsidian16.Notice(e.toString()); selectModal.close(); return; } @@ -5261,7 +5498,7 @@ var ModalHelper = class { createPreviewModal(previewModalOptions) { return __async(this, null, function* () { const modal = new MediaDbPreviewModal(this.plugin, previewModalOptions); - const res = yield new Promise((resolve, reject) => { + const res = yield new Promise((resolve) => { modal.setSubmitCallback((res2) => resolve({ code: 0, data: res2 })); modal.setCloseCallback((err) => { if (err) { @@ -5277,9 +5514,10 @@ var ModalHelper = class { openPreviewModal(previewModalOptions, submitCallback) { return __async(this, null, function* () { const { previewModalResult, previewModal } = yield this.createPreviewModal(previewModalOptions); + console.debug(`MDB | previewModal closed with code ${previewModalResult.code}`); if (previewModalResult.code === 3) { console.warn(previewModalResult.error); - new import_obsidian14.Notice(previewModalResult.error.toString()); + new import_obsidian16.Notice(previewModalResult.error.toString()); previewModal.close(); return void 0; } @@ -5287,13 +5525,12 @@ var ModalHelper = class { return void 0; } try { - let callbackRes; - callbackRes = yield submitCallback(previewModalResult.data); + const callbackRes = yield submitCallback(previewModalResult.data); previewModal.close(); return callbackRes; } catch (e) { console.warn(e); - new import_obsidian14.Notice(e.toString()); + new import_obsidian16.Notice(e.toString()); previewModal.close(); return; } @@ -5302,7 +5539,7 @@ var ModalHelper = class { }; // src/main.ts -var MediaDbPlugin = class extends import_obsidian15.Plugin { +var MediaDbPlugin = class extends import_obsidian17.Plugin { constructor() { super(...arguments); this.frontMatterRexExpPattern = "^(---)\\n[\\s\\S]*?\\n---"; @@ -5322,10 +5559,11 @@ var MediaDbPlugin = class extends import_obsidian15.Plugin { yield this.loadSettings(); this.addSettingTab(new MediaDbSettingTab(this.app, this)); this.mediaTypeManager.updateTemplates(this.settings); - const ribbonIconEl = this.addRibbonIcon("database", "Add new Media DB entry", (evt) => this.createEntryWithAdvancedSearchModal()); + this.mediaTypeManager.updateFolders(this.settings); + const ribbonIconEl = this.addRibbonIcon("database", "Add new Media DB entry", () => this.createEntryWithAdvancedSearchModal()); ribbonIconEl.addClass("obsidian-media-db-plugin-ribbon-class"); this.registerEvent(this.app.workspace.on("file-menu", (menu, file) => { - if (file instanceof import_obsidian15.TFolder) { + if (file instanceof import_obsidian17.TFolder) { menu.addItem((item) => { item.setTitle("Import folder as Media DB entries").setIcon("database").onClick(() => this.createEntriesFromFolder(file)); }); @@ -5333,12 +5571,24 @@ var MediaDbPlugin = class extends import_obsidian15.Plugin { })); this.addCommand({ id: "open-media-db-search-modal", - name: "Add new Media DB entry", + name: "Create Media DB entry", + callback: () => this.createEntryWithSearchModal() + }); + for (const mediaType of MEDIA_TYPES) { + this.addCommand({ + id: `open-media-db-search-modal-with-${mediaType}`, + name: `Create Media DB entry (${unCamelCase(mediaType)})`, + callback: () => this.createEntryWithSearchModal({ preselectedTypes: [mediaType] }) + }); + } + this.addCommand({ + id: "open-media-db-advanced-search-modal", + name: "Create Media DB entry (advanced search)", callback: () => this.createEntryWithAdvancedSearchModal() }); this.addCommand({ id: "open-media-db-id-search-modal", - name: "Add new Media DB entry by id", + name: "Create Media DB entry by id", callback: () => this.createEntryWithIdSearchModal() }); this.addCommand({ @@ -5384,7 +5634,7 @@ var MediaDbPlugin = class extends import_obsidian15.Plugin { } createLinkWithSearchModal() { return __async(this, null, function* () { - let apiSearchResults = yield this.modalHelper.openAdvancedSearchModal({}, (advancedSearchModalData) => __async(this, null, function* () { + const apiSearchResults = yield this.modalHelper.openAdvancedSearchModal({}, (advancedSearchModalData) => __async(this, null, function* () { return yield this.apiManager.query(advancedSearchModalData.query, advancedSearchModalData.apis); })); if (!apiSearchResults) { @@ -5397,19 +5647,43 @@ var MediaDbPlugin = class extends import_obsidian15.Plugin { return; } const link = `[${selectResults[0].title}](${selectResults[0].url})`; - const view = this.app.workspace.getActiveViewOfType(import_obsidian15.MarkdownView); + const view = this.app.workspace.getActiveViewOfType(import_obsidian17.MarkdownView); if (view) { view.editor.replaceRange(link, view.editor.getCursor()); } }); } - createEntryWithSearchModal() { + createEntryWithSearchModal(searchModalOptions) { return __async(this, null, function* () { + let types = []; + let apiSearchResults = yield this.modalHelper.openSearchModal(searchModalOptions != null ? searchModalOptions : {}, (searchModalData) => __async(this, null, function* () { + types = searchModalData.types; + const apis = this.apiManager.apis.filter((x) => x.hasTypeOverlap(searchModalData.types)).map((x) => x.apiName); + return yield this.apiManager.query(searchModalData.query, apis); + })); + if (!apiSearchResults) { + return; + } + apiSearchResults = apiSearchResults.filter((x) => types.contains(x.type)); + let selectResults; + let proceed; + while (!proceed) { + selectResults = yield this.modalHelper.openSelectModal({ elements: apiSearchResults }, (selectModalData) => __async(this, null, function* () { + return yield this.queryDetails(selectModalData.selected); + })); + if (!selectResults) { + return; + } + proceed = yield this.modalHelper.openPreviewModal({ elements: selectResults }, (previewModalData) => __async(this, null, function* () { + return previewModalData.confirmed; + })); + } + yield this.createMediaDbNotes(selectResults); }); } createEntryWithAdvancedSearchModal() { return __async(this, null, function* () { - let apiSearchResults = yield this.modalHelper.openAdvancedSearchModal({}, (advancedSearchModalData) => __async(this, null, function* () { + const apiSearchResults = yield this.modalHelper.openAdvancedSearchModal({}, (advancedSearchModalData) => __async(this, null, function* () { return yield this.apiManager.query(advancedSearchModalData.query, advancedSearchModalData.apis); })); if (!apiSearchResults) { @@ -5458,13 +5732,13 @@ var MediaDbPlugin = class extends import_obsidian15.Plugin { } queryDetails(models) { return __async(this, null, function* () { - let detailModels = []; + const detailModels = []; for (const model of models) { try { detailModels.push(yield this.apiManager.queryDetailedInfo(model)); } catch (e) { console.warn(e); - new import_obsidian15.Notice(e.toString()); + new import_obsidian17.Notice(e.toString()); } } return detailModels; @@ -5474,11 +5748,14 @@ var MediaDbPlugin = class extends import_obsidian15.Plugin { return __async(this, null, function* () { try { console.debug("MDB | creating new note"); - let fileContent = yield this.generateMediaDbNoteContents(mediaTypeModel, options); + const fileContent = yield this.generateMediaDbNoteContents(mediaTypeModel, options); + if (!options.folder) { + options.folder = yield this.mediaTypeManager.getFolder(mediaTypeModel, this.app); + } yield this.createNote(this.mediaTypeManager.getFileName(mediaTypeModel), fileContent, options); } catch (e) { console.warn(e); - new import_obsidian15.Notice(e.toString()); + new import_obsidian17.Notice(e.toString()); } }); } @@ -5490,7 +5767,7 @@ var MediaDbPlugin = class extends import_obsidian15.Plugin { ({ fileMetadata, fileContent } = yield this.attachFile(fileMetadata, fileContent, options.attachFile)); ({ fileMetadata, fileContent } = yield this.attachTemplate(fileMetadata, fileContent, template)); fileContent = `--- -${this.settings.useCustomYamlStringifier ? YAMLConverter.toYaml(fileMetadata) : (0, import_obsidian15.stringifyYaml)(fileMetadata)}--- +${this.settings.useCustomYamlStringifier ? YAMLConverter.toYaml(fileMetadata) : (0, import_obsidian17.stringifyYaml)(fileMetadata)}--- ` + fileContent; return fileContent; }); @@ -5500,7 +5777,7 @@ ${this.settings.useCustomYamlStringifier ? YAMLConverter.toYaml(fileMetadata) : if (!fileToAttach) { return { fileMetadata, fileContent }; } - let attachFileMetadata = this.getMetadataFromFileCache(fileToAttach); + const attachFileMetadata = this.getMetadataFromFileCache(fileToAttach); fileMetadata = Object.assign(attachFileMetadata, fileMetadata); let attachFileContent = yield this.app.vault.read(fileToAttach); const regExp = new RegExp(this.frontMatterRexExpPattern); @@ -5515,7 +5792,7 @@ ${this.settings.useCustomYamlStringifier ? YAMLConverter.toYaml(fileMetadata) : if (!template) { return { fileMetadata, fileContent }; } - let templateMetadata = this.getMetaDataFromFileContent(template); + const templateMetadata = this.getMetaDataFromFileContent(template); fileMetadata = Object.assign(templateMetadata, fileMetadata); const regExp = new RegExp(this.frontMatterRexExpPattern); const attachFileContent = template.replace(regExp, ""); @@ -5536,7 +5813,7 @@ ${this.settings.useCustomYamlStringifier ? YAMLConverter.toYaml(fileMetadata) : } frontMatter = frontMatter.substring(4); frontMatter = frontMatter.substring(0, frontMatter.length - 3); - metadata = (0, import_obsidian15.parseYaml)(frontMatter); + metadata = (0, import_obsidian17.parseYaml)(frontMatter); if (!metadata) { metadata = {}; } @@ -5556,10 +5833,7 @@ ${this.settings.useCustomYamlStringifier ? YAMLConverter.toYaml(fileMetadata) : createNote(fileName, fileContent, options) { return __async(this, null, function* () { var _a; - const folder = (_a = options.folder) != null ? _a : this.app.vault.getAbstractFileByPath(this.settings.folder); - if (!folder) { - yield this.app.vault.createFolder(folder.path); - } + const folder = (_a = options.folder) != null ? _a : this.app.vault.getAbstractFileByPath("/"); fileName = replaceIllegalFileNameCharactersInString(fileName); const filePath = `${folder.path}/${fileName}.md`; const file = this.app.vault.getAbstractFileByPath(filePath); @@ -5590,7 +5864,7 @@ ${this.settings.useCustomYamlStringifier ? YAMLConverter.toYaml(fileMetadata) : if (!(metadata == null ? void 0 : metadata.type) || !(metadata == null ? void 0 : metadata.dataSource) || !(metadata == null ? void 0 : metadata.id)) { throw new Error("MDB | active note is not a Media DB entry or is missing metadata"); } - let oldMediaTypeModel = this.mediaTypeManager.createMediaTypeModelFromMediaType(metadata, metadata.type); + const oldMediaTypeModel = this.mediaTypeManager.createMediaTypeModelFromMediaType(metadata, metadata.type); let newMediaTypeModel = yield this.apiManager.queryDetailedInfoById(metadata.id, metadata.dataSource); if (!newMediaTypeModel) { return; @@ -5608,20 +5882,20 @@ ${this.settings.useCustomYamlStringifier ? YAMLConverter.toYaml(fileMetadata) : return __async(this, null, function* () { const erroredFiles = []; let canceled = false; - const { selectedAPI, titleFieldName, appendContent } = yield new Promise((resolve, reject) => { + const { selectedAPI, titleFieldName, appendContent } = yield new Promise((resolve) => { new MediaDbFolderImportModal(this.app, this, (selectedAPI2, titleFieldName2, appendContent2) => { resolve({ selectedAPI: selectedAPI2, titleFieldName: titleFieldName2, appendContent: appendContent2 }); }).open(); }); for (const child of folder.children) { - if (child instanceof import_obsidian15.TFile) { + if (child instanceof import_obsidian17.TFile) { const file = child; if (canceled) { erroredFiles.push({ filePath: file.path, error: "user canceled" }); continue; } - let metadata = this.getMetadataFromFileCache(file); - let title = metadata[titleFieldName]; + const metadata = this.getMetadataFromFileCache(file); + const title = metadata[titleFieldName]; if (!title) { erroredFiles.push({ filePath: file.path, error: `metadata field '${titleFieldName}' not found or empty` }); continue; @@ -5637,7 +5911,7 @@ ${this.settings.useCustomYamlStringifier ? YAMLConverter.toYaml(fileMetadata) : erroredFiles.push({ filePath: file.path, error: `no search results` }); continue; } - let { selectModalResult, selectModal } = yield this.modalHelper.createSelectModal({ elements: results, skipButton: true, modalTitle: `Results for '${title}'` }); + const { selectModalResult, selectModal } = yield this.modalHelper.createSelectModal({ elements: results, skipButton: true, modalTitle: `Results for '${title}'` }); if (selectModalResult.code === ModalResultCode.ERROR) { erroredFiles.push({ filePath: file.path, error: selectModalResult.error.message }); selectModal.close(); @@ -5670,13 +5944,13 @@ ${this.settings.useCustomYamlStringifier ? YAMLConverter.toYaml(fileMetadata) : } createErroredFilesReport(erroredFiles) { return __async(this, null, function* () { - const title = `bulk import error report ${dateTimeToString(new Date())}`; - const filePath = `${this.settings.folder.replace(/\/$/, "")}/${title}.md`; + const title = `MDB - bulk import error report ${dateTimeToString(new Date())}`; + const filePath = `${title}.md`; const table = [["file", "error"]].concat(erroredFiles.map((x) => [x.filePath, x.error])); - let fileContent = `# ${title} + const fileContent = `# ${title} ${markdownTable(table)}`; - const targetFile = yield this.app.vault.create(filePath, fileContent); + yield this.app.vault.create(filePath, fileContent); }); } loadSettings() { @@ -5684,15 +5958,15 @@ ${markdownTable(table)}`; const diskSettings = yield this.loadData(); const defaultSettings = getDefaultSettings(this); const loadedSettings = Object.assign({}, defaultSettings, diskSettings); - let newPropertyMappings = []; + const newPropertyMappings = []; for (const defaultPropertyMappingModel of defaultSettings.propertyMappingModels) { - let newPropertyMappingModel = loadedSettings.propertyMappingModels.find((x) => x.type === defaultPropertyMappingModel.type); + const newPropertyMappingModel = loadedSettings.propertyMappingModels.find((x) => x.type === defaultPropertyMappingModel.type); if (newPropertyMappingModel === void 0) { newPropertyMappings.push(defaultPropertyMappingModel); } else { - let newProperties = []; + const newProperties = []; for (const defaultProperty of defaultPropertyMappingModel.properties) { - let newProperty = newPropertyMappingModel.properties.find((x) => x.property === defaultProperty.property); + const newProperty = newPropertyMappingModel.properties.find((x) => x.property === defaultProperty.property); if (newProperty === void 0) { newProperties.push(defaultProperty); } else { @@ -5709,6 +5983,7 @@ ${markdownTable(table)}`; saveSettings() { return __async(this, null, function* () { this.mediaTypeManager.updateTemplates(this.settings); + this.mediaTypeManager.updateFolders(this.settings); yield this.saveData(this.settings); }); } diff --git a/.obsidian/plugins/obsidian-media-db-plugin/manifest.json b/.obsidian/plugins/obsidian-media-db-plugin/manifest.json index 9e5e7969..096f75c5 100644 --- a/.obsidian/plugins/obsidian-media-db-plugin/manifest.json +++ b/.obsidian/plugins/obsidian-media-db-plugin/manifest.json @@ -1,7 +1,7 @@ { "id": "obsidian-media-db-plugin", "name": "Media DB Plugin", - "version": "0.4.1", + "version": "0.5.0", "minAppVersion": "0.14.0", "description": "A plugin that can query multiple APIs for movies, series, anime, games, music and wiki articles, and import them into your vault.", "author": "Moritz Jung", diff --git a/.obsidian/plugins/obsidian-media-db-plugin/styles.css b/.obsidian/plugins/obsidian-media-db-plugin/styles.css index 5a7b78d9..15cdeaee 100644 --- a/.obsidian/plugins/obsidian-media-db-plugin/styles.css +++ b/.obsidian/plugins/obsidian-media-db-plugin/styles.css @@ -6,19 +6,17 @@ } .media-db-plugin-list-toggle { - } .media-db-plugin-list-text-wrapper { flex: 1; } - .media-db-plugin-list-text { display: block; } -small.media-db-plugin-list-text{ +small.media-db-plugin-list-text { color: var(--text-muted); } @@ -68,33 +66,33 @@ small.media-db-plugin-list-text{ /* region property mappings */ .media-db-plugin-property-mappings-model-container { - border: 1px solid var(--background-modifier-border); + border: 1px solid var(--background-modifier-border); border-radius: 5px; - padding: 10px; - width: 100%; + padding: 10px; + width: 100%; } .media-db-plugin-property-mappings-container { - margin: 10px 0; - display: flex; + margin: 10px 0; + display: flex; flex-direction: column; - gap: 5px; + gap: 5px; } .media-db-plugin-property-mapping-element { - display: flex; + display: flex; flex-direction: row; - gap: 10px; + gap: 10px; } .media-db-plugin-property-mapping-element-property-name-wrapper { - min-width: 160px; - background: var(--background-modifier-form-field); - padding: 2px 5px; + min-width: 160px; + background: var(--background-modifier-form-field); + padding: 2px 5px; border-radius: 5px; - display: flex; - align-items: center; + display: flex; + align-items: center; } .media-db-plugin-property-mapping-element-property-name { @@ -106,12 +104,12 @@ small.media-db-plugin-list-text{ } .media-db-plugin-property-mapping-to { - display: flex; + display: flex; align-items: center; } .media-db-plugin-property-mapping-validation { - color: var(--text-error); + color: var(--text-error); margin-bottom: 5px; } diff --git a/.obsidian/plugins/obsidian-minimal-settings/manifest.json b/.obsidian/plugins/obsidian-minimal-settings/manifest.json index d6b0a00a..bc8cde7d 100644 --- a/.obsidian/plugins/obsidian-minimal-settings/manifest.json +++ b/.obsidian/plugins/obsidian-minimal-settings/manifest.json @@ -1,10 +1,11 @@ { "id": "obsidian-minimal-settings", "name": "Minimal Theme Settings", - "version": "6.1.0", + "version": "6.1.1", "minAppVersion": "0.16.0", "description": "Change the colors, fonts and features of Minimal Theme.", "author": "@kepano", "authorUrl": "https://www.twitter.com/kepano", + "fundingUrl": "https://www.buymeacoffee.com/kepano", "isDesktopOnly": false } \ No newline at end of file diff --git a/.obsidian/plugins/obsidian-reminder-plugin/data.json b/.obsidian/plugins/obsidian-reminder-plugin/data.json index a09dd086..a40379e4 100644 --- a/.obsidian/plugins/obsidian-reminder-plugin/data.json +++ b/.obsidian/plugins/obsidian-reminder-plugin/data.json @@ -2,11 +2,6 @@ "scanned": true, "reminders": { "05.01 Computer setup/Storage and Syncing.md": [ - { - "title": ":cloud: [[Storage and Syncing|Storage & Sync]]: Backup Volumes to [[Sync|Sync.com]] %%done_del%%", - "time": "2022-12-12", - "rowNumber": 182 - }, { "title": "Backup [[Storage and Syncing#Instructions for Anchor|Anchor Wallet]] %%done_del%%", "time": "2023-01-05", @@ -30,7 +25,12 @@ { "title": ":camera: [[Storage and Syncing|Storage & Sync]]: Transfer pictures to ED %%done_del%%", "time": "2023-01-12", - "rowNumber": 184 + "rowNumber": 185 + }, + { + "title": ":cloud: [[Storage and Syncing|Storage & Sync]]: Backup Volumes to [[Sync|Sync.com]] %%done_del%%", + "time": "2023-03-13", + "rowNumber": 182 } ], "06.01 Finances/hLedger.md": [ @@ -116,31 +116,31 @@ } ], "04.01 lebv.org/WebPublishing Tasks.md": [ - { - "title": ":fleur_de_lis: [[WebPublishing Tasks|Website]]: Replace integration with Discord with [[Element|Element.io]]", - "time": "2022-12-15", - "rowNumber": 74 - }, { "title": ":fleur_de_lis: [[WebPublishing Tasks|Website]]: Upgrade UltimateMember to [[WebPublishing Tasks#UltimateMember Pro|Pro]]", "time": "2023-06-30", "rowNumber": 73 + }, + { + "title": ":fleur_de_lis: [[WebPublishing Tasks|Website]]: Replace integration with Discord with [[Element|Element.io]]", + "time": "2023-12-15", + "rowNumber": 74 } ], "04.01 lebv.org/lebv Research Tasks.md": [ { "title": ":fleur_de_lis: [[lebv Research Tasks|Research]]: Lieux: que sont devenus Fleurimont & Le Pavillon aujourd'hui?", - "time": "2022-11-15", + "time": "2023-02-15", "rowNumber": 72 }, { "title": ":fleur_de_lis: [[lebv Research Tasks|Research]]: membres de la famille: reprendre les citations militaires (promotion/dรฉcoration)", - "time": "2022-11-15", + "time": "2023-02-15", "rowNumber": 73 }, { "title": ":fleur_de_lis: [[lebv Research Tasks|Research]]: membres de la famille: รฉplucher les mentions du Nobiliaire de Guyenne & Gascogne", - "time": "2022-11-20", + "time": "2023-02-20", "rowNumber": 74 } ], @@ -196,7 +196,7 @@ "01.03 Family/Sรฉraphine Priso Le Bastart.md": [ { "title": ":birthday: **[[Sรฉraphine Priso Le Bastart|Sรฉraphine]]**", - "time": "2022-11-27", + "time": "2023-11-27", "rowNumber": 100 } ], @@ -217,7 +217,7 @@ "01.03 Family/Marc de Villeneuve.md": [ { "title": ":birthday: **[[Marc de Villeneuve|Marc BV]]**", - "time": "2022-12-04", + "time": "2023-12-04", "rowNumber": 105 } ], @@ -238,7 +238,7 @@ "01.03 Family/Pierre Bรฉdier.md": [ { "title": ":birthday: **[[Pierre Bรฉdier|Bon Papa]]**", - "time": "2022-12-07", + "time": "2023-12-07", "rowNumber": 106 } ], @@ -273,7 +273,7 @@ "01.03 Family/Gabrielle Bรฉdier.md": [ { "title": ":birthday: **[[Gabrielle Bรฉdier|Gabrielle]]**", - "time": "2022-11-12", + "time": "2023-11-12", "rowNumber": 105 } ], @@ -336,50 +336,55 @@ "01.03 Family/Eustache Bรฉdier.md": [ { "title": ":birthday: **[[Eustache Bรฉdier|Eustache]]**", - "time": "2022-12-08", + "time": "2023-12-08", "rowNumber": 105 } ], "01.02 Home/Household.md": [ { "title": "๐Ÿ›Ž ๐Ÿงป REMINDER [[Household]]: check need for toilet paper %%done_del%%", - "time": "2022-11-07", - "rowNumber": 96 + "time": "2022-12-19", + "rowNumber": 88 }, { "title": "โ™ป [[Household]]: *Paper* recycling collection %%done_del%%", - "time": "2022-11-08", + "time": "2022-12-20", "rowNumber": 75 }, { "title": ":bed: [[Household]] Change bedsheets %%done_del%%", - "time": "2022-11-12", - "rowNumber": 107 + "time": "2022-12-24", + "rowNumber": 91 }, { "title": "โ™ป [[Household]]: *Cardboard* recycling collection %%done_del%%", - "time": "2022-11-15", - "rowNumber": 81 + "time": "2022-12-27", + "rowNumber": 77 + }, + { + "title": ":couch_and_lamp: [[Household]]: Replace the sofa", + "time": "2022-12-31", + "rowNumber": 59 + }, + { + "title": "๐Ÿ›Ž๏ธ ๐Ÿ’ต [[Household]]: Pay rent %%done_del%%", + "time": "2022-12-31", + "rowNumber": 85 }, { "title": "๐Ÿ›Ž ๐Ÿ› REMINDER [[Household]]: Monthly shop in France %%done_del%%", - "time": "2022-11-26", - "rowNumber": 92 + "time": "2022-12-31", + "rowNumber": 87 }, { "title": ":coffee: [[Household]]: Buy a Cappuccino machine", - "time": "2022-11-30", + "time": "2023-03-31", "rowNumber": 58 }, { "title": ":bed: [[Household]]: Buy bed-side tables", - "time": "2022-11-30", + "time": "2023-03-31", "rowNumber": 60 - }, - { - "title": ":couch_and_lamp: [[Household]]: Replace the sofa", - "time": "2022-12-31", - "rowNumber": 59 } ], "01.03 Family/Pia Bousquiรฉ.md": [ @@ -399,21 +404,21 @@ "01.01 Life Orga/@Finances.md": [ { "title": ":heavy_dollar_sign: [[@Finances]]: update crypto prices within Obsidian", - "time": "2022-11-08", + "time": "2023-01-10", "rowNumber": 118 } ], "01.01 Life Orga/@Personal projects.md": [ - { - "title": ":fleur_de_lis: Continue [[@lebv.org Tasks|lebv.org]]", - "time": "2022-11-28", - "rowNumber": 78 - }, { "title": ":art: Continuer ร  construire un petit trousseau d'[[@Personal projects#art|art]]", "time": "2023-02-21", "rowNumber": 76 }, + { + "title": ":fleur_de_lis: Continue [[@lebv.org Tasks|lebv.org]]", + "time": "2023-02-28", + "rowNumber": 78 + }, { "title": "๐Ÿ–‹ Caligraph & frame life mementos", "time": "2023-06-30", @@ -429,7 +434,7 @@ { "title": ":birthday: **[[Aglaรฉ de Villeneuve|Aglaรฉ]]**", "time": "2023-02-25", - "rowNumber": 105 + "rowNumber": 100 } ], "01.03 Family/Elise Bรฉdier.md": [ @@ -439,60 +444,34 @@ "rowNumber": 105 } ], - "01.01 Life Orga/@Life Admin.md": [ - { - "title": ":iphone: [[@Life Admin]]: Cancel UK mobile line", - "time": "2022-11-30", - "rowNumber": 77 - } - ], - "06.02 Investments/VC Tasks.md": [ - { - "title": "๐Ÿ’ฐ[[VC Tasks#internet alerts|monitor VC news and publications]] %%done_del%%", - "time": "2022-11-04", - "rowNumber": 74 - } - ], "06.02 Investments/Crypto Tasks.md": [ { - "title": "๐Ÿ’ฐ[[Crypto Tasks#internet alerts|monitor Crypto news and publications]] %%done_del%%", - "time": "2022-11-04", - "rowNumber": 74 + "title": ":ballot_box: [[Crypto Tasks]]: Vote for [[EOS]] block producers %%done_del%%", + "time": "2023-01-03", + "rowNumber": 75 }, { "title": ":chart: Check [[Nimbus]] earnings %%done_del%%", - "time": "2022-11-14", - "rowNumber": 92 - }, - { - "title": ":ballot_box: [[Crypto Tasks]]: Vote for [[EOS]] block producers %%done_del%%", - "time": "2022-12-06", - "rowNumber": 87 - } - ], - "06.02 Investments/Equity Tasks.md": [ - { - "title": "๐Ÿ’ฐ[[Equity Tasks#internet alerts|monitor Equity news and publications]] %%done_del%%", - "time": "2022-11-04", - "rowNumber": 74 + "time": "2023-01-09", + "rowNumber": 76 } ], "05.02 Networks/Configuring UFW.md": [ { "title": "๐Ÿ–ฅ [[Selfhosting]], [[Configuring UFW|Firewall]] Get IP addresses caught by Postfix %%done_del%%", - "time": "2022-11-05", + "time": "2022-12-17", "rowNumber": 239 }, { "title": "๐Ÿ–ฅ [[Selfhosting]], [[Configuring UFW|Firewall]]: Update the Blocked IP list", - "time": "2022-11-05", - "rowNumber": 280 + "time": "2022-12-17", + "rowNumber": 286 } ], "00.01 Admin/Calendars/2022-01-22.md": [ { "title": "22:46 :moneybag: [[2022-01-22|Memo]], [[@Finances]]: GBP account re moving to ZH", - "time": "2022-11-30", + "time": "2022-12-30", "rowNumber": 87 } ], @@ -500,13 +479,13 @@ { "title": ":birthday: **[[Amรฉlie Solanet|Amรฉlie]]**", "time": "2023-06-27", - "rowNumber": 105 + "rowNumber": 100 } ], "05.01 Computer setup/Privacy & Security.md": [ { "title": "an instance of [[Element]]", - "time": "2022-12-31", + "time": "2023-12-31", "rowNumber": 169 } ], @@ -518,11 +497,6 @@ } ], "00.01 Admin/Calendars/2022-08-25.md": [ - { - "title": "12:59 :ice_hockey: [[2022-08-25|Memo]], [[@Sport Zรผrich|Sport in Zรผrich]]: go to a game of ZSC", - "time": "2022-11-30", - "rowNumber": 89 - }, { "title": "13:01 :soccer: [[2022-08-25|Memo]], [[@Sport Zรผrich|Sport in Zรผrich]]: go to see the FC Zรผrich", "time": "2023-02-27", @@ -539,7 +513,7 @@ "00.08 Bookmarks/Bookmarks - Media.md": [ { "title": ":label: [[Bookmarks - Media]]: review bookmarls", - "time": "2022-11-07", + "time": "2023-02-07", "rowNumber": 80 } ], @@ -553,35 +527,35 @@ "00.08 Bookmarks/Bookmarks - Obsidian.md": [ { "title": ":label: [[Bookmarks - Obsidian]]: Review bookmarks", - "time": "2022-11-15", - "rowNumber": 308 + "time": "2023-02-15", + "rowNumber": 297 } ], "00.08 Bookmarks/Bookmarks - Selfhosted Apps.md": [ { "title": ":label: [[Bookmarks - Selfhosted apps]]: Review bookmarks", - "time": "2022-11-22", + "time": "2023-02-22", "rowNumber": 196 } ], "00.08 Bookmarks/Bookmarks - Utilities.md": [ { "title": ":label: [[Bookmarks - Utilities]]: review bookmarks", - "time": "2022-12-02", + "time": "2023-03-02", "rowNumber": 172 } ], "00.08 Bookmarks/Bookmarks - Mac applications.md": [ { "title": ":label: [[Bookmarks - Mac applications]]: review bookmarks", - "time": "2022-12-09", + "time": "2023-03-09", "rowNumber": 82 } ], "00.08 Bookmarks/Bookmarks - Work.md": [ { - "title": ":label: [[Bookmarks - Work]]: review bookmarks", - "time": "2022-12-16", + "title": ":label: [[Bookmarks - Work]]: review bookmarks %%done_del%%", + "time": "2023-03-16", "rowNumber": 71 } ], @@ -589,36 +563,52 @@ { "title": ":birthday: **[[@@MRCK|Meggi-mo]]'s Papa** (1962)", "time": "2023-02-02", - "rowNumber": 280 + "rowNumber": 282 }, { "title": ":birthday: **[[@@MRCK|Meggi-mo]]**", "time": "2023-02-28", - "rowNumber": 278 + "rowNumber": 280 }, { "title": "[[@@MRCK|Meggi-mo]] Saint Patrick's Day", "time": "2023-03-17", - "rowNumber": 282 + "rowNumber": 284 } ], - "00.01 Admin/Calendars/2022-10-17.md": [ + "00.08 Bookmarks/Bookmarks - Travels & Sport.md": [ { - "title": "12:25 :phone: [[@life admin]]: call EE and cancel line", + "title": ":label: [[Bookmarks - Travels & Sport]]: review bookmarks", + "time": "2023-12-23", + "rowNumber": 82 + } + ], + "00.08 Bookmarks/Bookmarks - Webpages.md": [ + { + "title": ":label: [[Bookmarks - Webpages]]: review bookmarks", + "time": "2023-12-30", + "rowNumber": 113 + } + ], + "00.01 Admin/Calendars/2022-12-14.md": [ + { + "title": "16:26 :car: [[@Life admin|Admin]], [[2022-12-14|Memo]]: replace windscreen wipers & cleaning liquid", "time": "2022-12-31", - "rowNumber": 83 + "rowNumber": 84 } ], - "00.01 Admin/Calendars/2022-10-23.md": [ + "00.01 Admin/Calendars/2022-12-15.md": [ { - "title": "11:47 :hotel: [[@Life admin|Admin]]: book airbnb in Geneva for M&A's engagement party", - "time": "2022-11-05", + "title": "12:16 :moneybag: [[2022-12-15|Memo]], [[@Investment master|Investment]], [[Equity Investments|Equity]]: liquidate Saxo account positions", + "time": "2022-12-26", "rowNumber": 83 - }, + } + ], + "02.02 Paris/@@Paris.md": [ { - "title": "11:49 :hotel: [[@Life admin|Admin]]: book airbnb for M&A's wedding", - "time": "2022-11-05", - "rowNumber": 84 + "title": ":birthday: **Virginie Parent**, [[@@Paris|Paris]] %%done_del%%", + "time": "2023-12-12", + "rowNumber": 115 } ] }, diff --git a/.obsidian/plugins/obsidian-reminder-plugin/main.js b/.obsidian/plugins/obsidian-reminder-plugin/main.js index 75360e97..b3a7cc0e 100644 --- a/.obsidian/plugins/obsidian-reminder-plugin/main.js +++ b/.obsidian/plugins/obsidian-reminder-plugin/main.js @@ -1,21621 +1,17151 @@ /* -THIS IS A GENERATED/BUNDLED FILE BY ROLLUP -if you want to view the source visit the plugins github repository +THIS IS A GENERATED/BUNDLED FILE BY ESBUILD +if you want to view the source, please visit the github repository of this plugin */ -'use strict'; - -var obsidian = require('obsidian'); -var state = require('@codemirror/state'); -var view = require('@codemirror/view'); - -/*! ***************************************************************************** -Copyright (c) Microsoft Corporation. - -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH -REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY -AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, -INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM -LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR -OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR -PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */ -/* global Reflect, Promise */ - -var extendStatics = function(d, b) { - extendStatics = Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || - function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; - return extendStatics(d, b); -}; - -function __extends(d, b) { - if (typeof b !== "function" && b !== null) - throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); - extendStatics(d, b); - function __() { this.constructor = d; } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); -} - -var __assign = function() { - __assign = Object.assign || function __assign(t) { - for (var s, i = 1, n = arguments.length; i < n; i++) { - s = arguments[i]; - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; - } - return t; - }; - return __assign.apply(this, arguments); -}; - -function __awaiter(thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -} - -/** @deprecated */ -function __spreadArrays() { - for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length; - for (var r = Array(s), k = 0, i = 0; i < il; i++) - for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++) - r[k] = a[j]; - return r; -} - -/** - * Represents TODO items in Markdown. - * - * This class shouldn't break original line. - */ -class Todo { - constructor(lineIndex, prefix, check, suffix, body) { - this.lineIndex = lineIndex; - this.prefix = prefix; - this.check = check; - this.suffix = suffix; - this.body = body; - } - static parse(lineIndex, line) { - const match = Todo.regexp.exec(line); - if (match) { - return new Todo(lineIndex, match.groups['prefix'], match.groups['check'], match.groups['suffix'], match.groups['body']); - } - return null; - } - toMarkdown() { - return `${this.prefix}${this.check}${this.suffix}${this.body}`; - } - isChecked() { - return this.check === 'x'; - } - setChecked(checked) { - this.check = checked ? 'x' : ' '; - } - clone() { - return Todo.parse(this.lineIndex, this.toMarkdown()); - } -} -// e.g: ' - [x] hello' -// prefix: ' - [ ' -// check: 'x' -// suffix: '] ' -// body: hello -Todo.regexp = /^(?((> ?)*)?\s*[\-\*] \[)(?.)(?\]\s+)(?.*)$/; -class MarkdownDocument { - constructor(file, content) { - this.file = file; - this.lines = []; - this.todos = []; - this.parse(content); - } - parse(content) { - this.lines = content.split("\n"); - this.todos = []; - this.lines.forEach((line, lineIndex) => { - const todo = Todo.parse(lineIndex, line); - if (todo) { - this.todos.push(todo); - } - }); - } - getTodos() { - return this.todos; - } - insertTodo(lineIndex, todo) { - todo.lineIndex = lineIndex; - this.lines.splice(lineIndex, 0, todo.toMarkdown()); - let todoIndex = -1; - for (const i in this.todos) { - const todo = this.todos[i]; - if (todo.lineIndex >= lineIndex) { - if (todoIndex < 0) { - todoIndex = parseInt(i); - } - todo.lineIndex++; - } - } - if (todoIndex <= 0) { - this.todos.splice(0, 0, todo); - } - else { - this.todos.splice(todoIndex, 0, todo); - } - } - getTodo(lineIndex) { - const found = this.todos.find(todo => todo.lineIndex === lineIndex); - if (found == null) { - return null; - } - return found; - } - applyChanges() { - // apply changes of TODO items to lines - this.todos.forEach(todo => { - this.lines[todo.lineIndex] = todo.toMarkdown(); - }); - } - toMarkdown() { - this.applyChanges(); - return this.lines.join('\n'); - } -} - -class ConstantReference { - constructor(_value) { - this._value = _value; - } - get value() { - return this._value; - } -} -class Reference { - constructor(_value) { - this._value = _value; - this.onChangeFunctions = []; - } - onChanged(listener) { - this.onChangeFunctions.push(listener); - } - get value() { - return this._value; - } - set value(value) { - const oldValue = this._value; - this._value = value; - this.onChangeFunctions.forEach((f) => { - f(oldValue, value); - }); - } -} - -var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {}; - -function createCommonjsModule(fn) { - var module = { exports: {} }; - return fn(module, module.exports), module.exports; -} - -function commonjsRequire (path) { - throw new Error('Could not dynamically require "' + path + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.'); -} - -var moment = createCommonjsModule(function (module, exports) { -(function (global, factory) { - module.exports = factory() ; -}(commonjsGlobal, (function () { - var hookCallback; +"use strict"; +var __create = Object.create; +var __defProp = Object.defineProperty; +var __getOwnPropDesc = Object.getOwnPropertyDescriptor; +var __getOwnPropNames = Object.getOwnPropertyNames; +var __getProtoOf = Object.getPrototypeOf; +var __hasOwnProp = Object.prototype.hasOwnProperty; +var __commonJS = (cb, mod) => function __require() { + return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports; +}; +var __export = (target, all) => { + for (var name in all) + __defProp(target, name, { get: all[name], enumerable: true }); +}; +var __copyProps = (to, from, except, desc) => { + if (from && typeof from === "object" || typeof from === "function") { + for (let key of __getOwnPropNames(from)) + if (!__hasOwnProp.call(to, key) && key !== except) + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); + } + return to; +}; +var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps( + isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, + mod +)); +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); +var __async = (__this, __arguments, generator) => { + return new Promise((resolve, reject) => { + var fulfilled = (value) => { + try { + step(generator.next(value)); + } catch (e) { + reject(e); + } + }; + var rejected = (value) => { + try { + step(generator.throw(value)); + } catch (e) { + reject(e); + } + }; + var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected); + step((generator = generator.apply(__this, __arguments)).next()); + }); +}; - function hooks() { +// node_modules/moment/moment.js +var require_moment = __commonJS({ + "node_modules/moment/moment.js"(exports, module2) { + (function(global2, factory) { + typeof exports === "object" && typeof module2 !== "undefined" ? module2.exports = factory() : typeof define === "function" && define.amd ? define(factory) : global2.moment = factory(); + })(exports, function() { + "use strict"; + var hookCallback; + function hooks() { return hookCallback.apply(null, arguments); - } - - // This is done to register the method called with moment() - // without creating circular dependencies. - function setHookCallback(callback) { + } + function setHookCallback(callback) { hookCallback = callback; - } - - function isArray(input) { - return ( - input instanceof Array || - Object.prototype.toString.call(input) === '[object Array]' - ); - } - - function isObject(input) { - // IE8 will treat undefined and null as object if it wasn't for - // input != null - return ( - input != null && - Object.prototype.toString.call(input) === '[object Object]' - ); - } - - function hasOwnProp(a, b) { + } + function isArray2(input) { + return input instanceof Array || Object.prototype.toString.call(input) === "[object Array]"; + } + function isObject(input) { + return input != null && Object.prototype.toString.call(input) === "[object Object]"; + } + function hasOwnProp(a, b) { return Object.prototype.hasOwnProperty.call(a, b); - } - - function isObjectEmpty(obj) { + } + function isObjectEmpty(obj) { if (Object.getOwnPropertyNames) { - return Object.getOwnPropertyNames(obj).length === 0; + return Object.getOwnPropertyNames(obj).length === 0; } else { - var k; - for (k in obj) { - if (hasOwnProp(obj, k)) { - return false; - } + var k; + for (k in obj) { + if (hasOwnProp(obj, k)) { + return false; } - return true; + } + return true; } - } - - function isUndefined(input) { + } + function isUndefined(input) { return input === void 0; - } - - function isNumber(input) { - return ( - typeof input === 'number' || - Object.prototype.toString.call(input) === '[object Number]' - ); - } - - function isDate(input) { - return ( - input instanceof Date || - Object.prototype.toString.call(input) === '[object Date]' - ); - } - - function map(arr, fn) { - var res = [], - i; - for (i = 0; i < arr.length; ++i) { - res.push(fn(arr[i], i)); + } + function isNumber2(input) { + return typeof input === "number" || Object.prototype.toString.call(input) === "[object Number]"; + } + function isDate(input) { + return input instanceof Date || Object.prototype.toString.call(input) === "[object Date]"; + } + function map(arr, fn) { + var res = [], i, arrLen = arr.length; + for (i = 0; i < arrLen; ++i) { + res.push(fn(arr[i], i)); } return res; - } - - function extend(a, b) { + } + function extend(a, b) { for (var i in b) { - if (hasOwnProp(b, i)) { - a[i] = b[i]; - } + if (hasOwnProp(b, i)) { + a[i] = b[i]; + } } - - if (hasOwnProp(b, 'toString')) { - a.toString = b.toString; + if (hasOwnProp(b, "toString")) { + a.toString = b.toString; } - - if (hasOwnProp(b, 'valueOf')) { - a.valueOf = b.valueOf; + if (hasOwnProp(b, "valueOf")) { + a.valueOf = b.valueOf; } - return a; - } - - function createUTC(input, format, locale, strict) { - return createLocalOrUTC(input, format, locale, strict, true).utc(); - } - - function defaultParsingFlags() { - // We need to deep clone this object. + } + function createUTC(input, format2, locale2, strict) { + return createLocalOrUTC(input, format2, locale2, strict, true).utc(); + } + function defaultParsingFlags() { return { - empty: false, - unusedTokens: [], - unusedInput: [], - overflow: -2, - charsLeftOver: 0, - nullInput: false, - invalidEra: null, - invalidMonth: null, - invalidFormat: false, - userInvalidated: false, - iso: false, - parsedDateParts: [], - era: null, - meridiem: null, - rfc2822: false, - weekdayMismatch: false, + empty: false, + unusedTokens: [], + unusedInput: [], + overflow: -2, + charsLeftOver: 0, + nullInput: false, + invalidEra: null, + invalidMonth: null, + invalidFormat: false, + userInvalidated: false, + iso: false, + parsedDateParts: [], + era: null, + meridiem: null, + rfc2822: false, + weekdayMismatch: false }; - } - - function getParsingFlags(m) { + } + function getParsingFlags(m) { if (m._pf == null) { - m._pf = defaultParsingFlags(); + m._pf = defaultParsingFlags(); } return m._pf; - } - - var some; - if (Array.prototype.some) { + } + var some; + if (Array.prototype.some) { some = Array.prototype.some; - } else { - some = function (fun) { - var t = Object(this), - len = t.length >>> 0, - i; - - for (i = 0; i < len; i++) { - if (i in t && fun.call(this, t[i], i, t)) { - return true; - } + } else { + some = function(fun) { + var t = Object(this), len = t.length >>> 0, i; + for (i = 0; i < len; i++) { + if (i in t && fun.call(this, t[i], i, t)) { + return true; } - - return false; + } + return false; }; - } - - function isValid(m) { + } + function isValid(m) { if (m._isValid == null) { - var flags = getParsingFlags(m), - parsedParts = some.call(flags.parsedDateParts, function (i) { - return i != null; - }), - isNowValid = - !isNaN(m._d.getTime()) && - flags.overflow < 0 && - !flags.empty && - !flags.invalidEra && - !flags.invalidMonth && - !flags.invalidWeekday && - !flags.weekdayMismatch && - !flags.nullInput && - !flags.invalidFormat && - !flags.userInvalidated && - (!flags.meridiem || (flags.meridiem && parsedParts)); - - if (m._strict) { - isNowValid = - isNowValid && - flags.charsLeftOver === 0 && - flags.unusedTokens.length === 0 && - flags.bigHour === undefined; - } - - if (Object.isFrozen == null || !Object.isFrozen(m)) { - m._isValid = isNowValid; - } else { - return isNowValid; - } + var flags = getParsingFlags(m), parsedParts = some.call(flags.parsedDateParts, function(i) { + return i != null; + }), isNowValid = !isNaN(m._d.getTime()) && flags.overflow < 0 && !flags.empty && !flags.invalidEra && !flags.invalidMonth && !flags.invalidWeekday && !flags.weekdayMismatch && !flags.nullInput && !flags.invalidFormat && !flags.userInvalidated && (!flags.meridiem || flags.meridiem && parsedParts); + if (m._strict) { + isNowValid = isNowValid && flags.charsLeftOver === 0 && flags.unusedTokens.length === 0 && flags.bigHour === void 0; + } + if (Object.isFrozen == null || !Object.isFrozen(m)) { + m._isValid = isNowValid; + } else { + return isNowValid; + } } return m._isValid; - } - - function createInvalid(flags) { + } + function createInvalid(flags) { var m = createUTC(NaN); if (flags != null) { - extend(getParsingFlags(m), flags); + extend(getParsingFlags(m), flags); } else { - getParsingFlags(m).userInvalidated = true; + getParsingFlags(m).userInvalidated = true; } - return m; - } - - // Plugins that add properties should also add the key here (null value), - // so we can properly clone ourselves. - var momentProperties = (hooks.momentProperties = []), - updateInProgress = false; - - function copyConfig(to, from) { - var i, prop, val; - - if (!isUndefined(from._isAMomentObject)) { - to._isAMomentObject = from._isAMomentObject; + } + var momentProperties = hooks.momentProperties = [], updateInProgress = false; + function copyConfig(to2, from2) { + var i, prop, val, momentPropertiesLen = momentProperties.length; + if (!isUndefined(from2._isAMomentObject)) { + to2._isAMomentObject = from2._isAMomentObject; } - if (!isUndefined(from._i)) { - to._i = from._i; + if (!isUndefined(from2._i)) { + to2._i = from2._i; } - if (!isUndefined(from._f)) { - to._f = from._f; + if (!isUndefined(from2._f)) { + to2._f = from2._f; } - if (!isUndefined(from._l)) { - to._l = from._l; + if (!isUndefined(from2._l)) { + to2._l = from2._l; } - if (!isUndefined(from._strict)) { - to._strict = from._strict; + if (!isUndefined(from2._strict)) { + to2._strict = from2._strict; } - if (!isUndefined(from._tzm)) { - to._tzm = from._tzm; + if (!isUndefined(from2._tzm)) { + to2._tzm = from2._tzm; } - if (!isUndefined(from._isUTC)) { - to._isUTC = from._isUTC; + if (!isUndefined(from2._isUTC)) { + to2._isUTC = from2._isUTC; } - if (!isUndefined(from._offset)) { - to._offset = from._offset; + if (!isUndefined(from2._offset)) { + to2._offset = from2._offset; } - if (!isUndefined(from._pf)) { - to._pf = getParsingFlags(from); + if (!isUndefined(from2._pf)) { + to2._pf = getParsingFlags(from2); } - if (!isUndefined(from._locale)) { - to._locale = from._locale; + if (!isUndefined(from2._locale)) { + to2._locale = from2._locale; } - - if (momentProperties.length > 0) { - for (i = 0; i < momentProperties.length; i++) { - prop = momentProperties[i]; - val = from[prop]; - if (!isUndefined(val)) { - to[prop] = val; - } + if (momentPropertiesLen > 0) { + for (i = 0; i < momentPropertiesLen; i++) { + prop = momentProperties[i]; + val = from2[prop]; + if (!isUndefined(val)) { + to2[prop] = val; } + } } - - return to; - } - - // Moment prototype object - function Moment(config) { + return to2; + } + function Moment2(config) { copyConfig(this, config); this._d = new Date(config._d != null ? config._d.getTime() : NaN); if (!this.isValid()) { - this._d = new Date(NaN); + this._d = new Date(NaN); } - // Prevent infinite loop in case updateOffset creates new moment - // objects. if (updateInProgress === false) { - updateInProgress = true; - hooks.updateOffset(this); - updateInProgress = false; + updateInProgress = true; + hooks.updateOffset(this); + updateInProgress = false; } - } - - function isMoment(obj) { - return ( - obj instanceof Moment || (obj != null && obj._isAMomentObject != null) - ); - } - - function warn(msg) { - if ( - hooks.suppressDeprecationWarnings === false && - typeof console !== 'undefined' && - console.warn - ) { - console.warn('Deprecation warning: ' + msg); + } + function isMoment(obj) { + return obj instanceof Moment2 || obj != null && obj._isAMomentObject != null; + } + function warn(msg) { + if (hooks.suppressDeprecationWarnings === false && typeof console !== "undefined" && console.warn) { + console.warn("Deprecation warning: " + msg); } - } - - function deprecate(msg, fn) { + } + function deprecate(msg, fn) { var firstTime = true; - - return extend(function () { - if (hooks.deprecationHandler != null) { - hooks.deprecationHandler(null, msg); - } - if (firstTime) { - var args = [], - arg, - i, - key; - for (i = 0; i < arguments.length; i++) { - arg = ''; - if (typeof arguments[i] === 'object') { - arg += '\n[' + i + '] '; - for (key in arguments[0]) { - if (hasOwnProp(arguments[0], key)) { - arg += key + ': ' + arguments[0][key] + ', '; - } - } - arg = arg.slice(0, -2); // Remove trailing comma and space - } else { - arg = arguments[i]; - } - args.push(arg); + return extend(function() { + if (hooks.deprecationHandler != null) { + hooks.deprecationHandler(null, msg); + } + if (firstTime) { + var args = [], arg, i, key, argLen = arguments.length; + for (i = 0; i < argLen; i++) { + arg = ""; + if (typeof arguments[i] === "object") { + arg += "\n[" + i + "] "; + for (key in arguments[0]) { + if (hasOwnProp(arguments[0], key)) { + arg += key + ": " + arguments[0][key] + ", "; + } } - warn( - msg + - '\nArguments: ' + - Array.prototype.slice.call(args).join('') + - '\n' + - new Error().stack - ); - firstTime = false; + arg = arg.slice(0, -2); + } else { + arg = arguments[i]; + } + args.push(arg); } - return fn.apply(this, arguments); + warn( + msg + "\nArguments: " + Array.prototype.slice.call(args).join("") + "\n" + new Error().stack + ); + firstTime = false; + } + return fn.apply(this, arguments); }, fn); - } - - var deprecations = {}; - - function deprecateSimple(name, msg) { + } + var deprecations = {}; + function deprecateSimple(name, msg) { if (hooks.deprecationHandler != null) { - hooks.deprecationHandler(name, msg); + hooks.deprecationHandler(name, msg); } if (!deprecations[name]) { - warn(msg); - deprecations[name] = true; + warn(msg); + deprecations[name] = true; } - } - - hooks.suppressDeprecationWarnings = false; - hooks.deprecationHandler = null; - - function isFunction(input) { - return ( - (typeof Function !== 'undefined' && input instanceof Function) || - Object.prototype.toString.call(input) === '[object Function]' - ); - } - - function set(config) { + } + hooks.suppressDeprecationWarnings = false; + hooks.deprecationHandler = null; + function isFunction(input) { + return typeof Function !== "undefined" && input instanceof Function || Object.prototype.toString.call(input) === "[object Function]"; + } + function set(config) { var prop, i; for (i in config) { - if (hasOwnProp(config, i)) { - prop = config[i]; - if (isFunction(prop)) { - this[i] = prop; - } else { - this['_' + i] = prop; - } + if (hasOwnProp(config, i)) { + prop = config[i]; + if (isFunction(prop)) { + this[i] = prop; + } else { + this["_" + i] = prop; } + } } this._config = config; - // Lenient ordinal parsing accepts just a number in addition to - // number + (possibly) stuff coming from _dayOfMonthOrdinalParse. - // TODO: Remove "ordinalParse" fallback in next major release. this._dayOfMonthOrdinalParseLenient = new RegExp( - (this._dayOfMonthOrdinalParse.source || this._ordinalParse.source) + - '|' + - /\d{1,2}/.source + (this._dayOfMonthOrdinalParse.source || this._ordinalParse.source) + "|" + /\d{1,2}/.source ); - } - - function mergeConfigs(parentConfig, childConfig) { - var res = extend({}, parentConfig), - prop; + } + function mergeConfigs(parentConfig, childConfig) { + var res = extend({}, parentConfig), prop; for (prop in childConfig) { - if (hasOwnProp(childConfig, prop)) { - if (isObject(parentConfig[prop]) && isObject(childConfig[prop])) { - res[prop] = {}; - extend(res[prop], parentConfig[prop]); - extend(res[prop], childConfig[prop]); - } else if (childConfig[prop] != null) { - res[prop] = childConfig[prop]; - } else { - delete res[prop]; - } + if (hasOwnProp(childConfig, prop)) { + if (isObject(parentConfig[prop]) && isObject(childConfig[prop])) { + res[prop] = {}; + extend(res[prop], parentConfig[prop]); + extend(res[prop], childConfig[prop]); + } else if (childConfig[prop] != null) { + res[prop] = childConfig[prop]; + } else { + delete res[prop]; } + } } for (prop in parentConfig) { - if ( - hasOwnProp(parentConfig, prop) && - !hasOwnProp(childConfig, prop) && - isObject(parentConfig[prop]) - ) { - // make sure changes to properties don't modify parent config - res[prop] = extend({}, res[prop]); - } + if (hasOwnProp(parentConfig, prop) && !hasOwnProp(childConfig, prop) && isObject(parentConfig[prop])) { + res[prop] = extend({}, res[prop]); + } } return res; - } - - function Locale(config) { + } + function Locale(config) { if (config != null) { - this.set(config); + this.set(config); } - } - - var keys; - - if (Object.keys) { + } + var keys; + if (Object.keys) { keys = Object.keys; - } else { - keys = function (obj) { - var i, - res = []; - for (i in obj) { - if (hasOwnProp(obj, i)) { - res.push(i); - } + } else { + keys = function(obj) { + var i, res = []; + for (i in obj) { + if (hasOwnProp(obj, i)) { + res.push(i); } - return res; + } + return res; }; - } - - var defaultCalendar = { - sameDay: '[Today at] LT', - nextDay: '[Tomorrow at] LT', - nextWeek: 'dddd [at] LT', - lastDay: '[Yesterday at] LT', - lastWeek: '[Last] dddd [at] LT', - sameElse: 'L', - }; - - function calendar(key, mom, now) { - var output = this._calendar[key] || this._calendar['sameElse']; - return isFunction(output) ? output.call(mom, now) : output; - } - - function zeroFill(number, targetLength, forceSign) { - var absNumber = '' + Math.abs(number), - zerosToFill = targetLength - absNumber.length, - sign = number >= 0; - return ( - (sign ? (forceSign ? '+' : '') : '-') + - Math.pow(10, Math.max(0, zerosToFill)).toString().substr(1) + - absNumber - ); - } - - var formattingTokens = /(\[[^\[]*\])|(\\)?([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, - localFormattingTokens = /(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g, - formatFunctions = {}, - formatTokenFunctions = {}; - - // token: 'M' - // padded: ['MM', 2] - // ordinal: 'Mo' - // callback: function () { this.month() + 1 } - function addFormatToken(token, padded, ordinal, callback) { + } + var defaultCalendar = { + sameDay: "[Today at] LT", + nextDay: "[Tomorrow at] LT", + nextWeek: "dddd [at] LT", + lastDay: "[Yesterday at] LT", + lastWeek: "[Last] dddd [at] LT", + sameElse: "L" + }; + function calendar(key, mom, now2) { + var output = this._calendar[key] || this._calendar["sameElse"]; + return isFunction(output) ? output.call(mom, now2) : output; + } + function zeroFill(number, targetLength, forceSign) { + var absNumber = "" + Math.abs(number), zerosToFill = targetLength - absNumber.length, sign2 = number >= 0; + return (sign2 ? forceSign ? "+" : "" : "-") + Math.pow(10, Math.max(0, zerosToFill)).toString().substr(1) + absNumber; + } + var formattingTokens = /(\[[^\[]*\])|(\\)?([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, localFormattingTokens = /(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g, formatFunctions = {}, formatTokenFunctions = {}; + function addFormatToken(token2, padded, ordinal2, callback) { var func = callback; - if (typeof callback === 'string') { - func = function () { - return this[callback](); - }; + if (typeof callback === "string") { + func = function() { + return this[callback](); + }; } - if (token) { - formatTokenFunctions[token] = func; + if (token2) { + formatTokenFunctions[token2] = func; } if (padded) { - formatTokenFunctions[padded[0]] = function () { - return zeroFill(func.apply(this, arguments), padded[1], padded[2]); - }; - } - if (ordinal) { - formatTokenFunctions[ordinal] = function () { - return this.localeData().ordinal( - func.apply(this, arguments), - token - ); - }; + formatTokenFunctions[padded[0]] = function() { + return zeroFill(func.apply(this, arguments), padded[1], padded[2]); + }; + } + if (ordinal2) { + formatTokenFunctions[ordinal2] = function() { + return this.localeData().ordinal( + func.apply(this, arguments), + token2 + ); + }; } - } - - function removeFormattingTokens(input) { + } + function removeFormattingTokens(input) { if (input.match(/\[[\s\S]/)) { - return input.replace(/^\[|\]$/g, ''); + return input.replace(/^\[|\]$/g, ""); } - return input.replace(/\\/g, ''); - } - - function makeFormatFunction(format) { - var array = format.match(formattingTokens), - i, - length; - + return input.replace(/\\/g, ""); + } + function makeFormatFunction(format2) { + var array = format2.match(formattingTokens), i, length; for (i = 0, length = array.length; i < length; i++) { - if (formatTokenFunctions[array[i]]) { - array[i] = formatTokenFunctions[array[i]]; - } else { - array[i] = removeFormattingTokens(array[i]); - } + if (formatTokenFunctions[array[i]]) { + array[i] = formatTokenFunctions[array[i]]; + } else { + array[i] = removeFormattingTokens(array[i]); + } } - - return function (mom) { - var output = '', - i; - for (i = 0; i < length; i++) { - output += isFunction(array[i]) - ? array[i].call(mom, format) - : array[i]; - } - return output; + return function(mom) { + var output = "", i2; + for (i2 = 0; i2 < length; i2++) { + output += isFunction(array[i2]) ? array[i2].call(mom, format2) : array[i2]; + } + return output; }; - } - - // format date using native date object - function formatMoment(m, format) { + } + function formatMoment(m, format2) { if (!m.isValid()) { - return m.localeData().invalidDate(); + return m.localeData().invalidDate(); } - - format = expandFormat(format, m.localeData()); - formatFunctions[format] = - formatFunctions[format] || makeFormatFunction(format); - - return formatFunctions[format](m); - } - - function expandFormat(format, locale) { + format2 = expandFormat(format2, m.localeData()); + formatFunctions[format2] = formatFunctions[format2] || makeFormatFunction(format2); + return formatFunctions[format2](m); + } + function expandFormat(format2, locale2) { var i = 5; - function replaceLongDateFormatTokens(input) { - return locale.longDateFormat(input) || input; + return locale2.longDateFormat(input) || input; } - localFormattingTokens.lastIndex = 0; - while (i >= 0 && localFormattingTokens.test(format)) { - format = format.replace( - localFormattingTokens, - replaceLongDateFormatTokens - ); - localFormattingTokens.lastIndex = 0; - i -= 1; - } - - return format; - } - - var defaultLongDateFormat = { - 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 longDateFormat(key) { - var format = this._longDateFormat[key], - formatUpper = this._longDateFormat[key.toUpperCase()]; - - if (format || !formatUpper) { - return format; - } - - this._longDateFormat[key] = formatUpper - .match(formattingTokens) - .map(function (tok) { - if ( - tok === 'MMMM' || - tok === 'MM' || - tok === 'DD' || - tok === 'dddd' - ) { - return tok.slice(1); - } - return tok; - }) - .join(''); - + while (i >= 0 && localFormattingTokens.test(format2)) { + format2 = format2.replace( + localFormattingTokens, + replaceLongDateFormatTokens + ); + localFormattingTokens.lastIndex = 0; + i -= 1; + } + return format2; + } + var defaultLongDateFormat = { + 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 longDateFormat(key) { + var format2 = this._longDateFormat[key], formatUpper = this._longDateFormat[key.toUpperCase()]; + if (format2 || !formatUpper) { + return format2; + } + this._longDateFormat[key] = formatUpper.match(formattingTokens).map(function(tok) { + if (tok === "MMMM" || tok === "MM" || tok === "DD" || tok === "dddd") { + return tok.slice(1); + } + return tok; + }).join(""); return this._longDateFormat[key]; - } - - var defaultInvalidDate = 'Invalid date'; - - function invalidDate() { + } + var defaultInvalidDate = "Invalid date"; + function invalidDate() { return this._invalidDate; - } - - var defaultOrdinal = '%d', - defaultDayOfMonthOrdinalParse = /\d{1,2}/; - - function ordinal(number) { - return this._ordinal.replace('%d', number); - } - - var defaultRelativeTime = { - 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 relativeTime(number, withoutSuffix, string, isFuture) { + } + var defaultOrdinal = "%d", defaultDayOfMonthOrdinalParse = /\d{1,2}/; + function ordinal(number) { + return this._ordinal.replace("%d", number); + } + var defaultRelativeTime = { + 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 relativeTime(number, withoutSuffix, string, isFuture) { var output = this._relativeTime[string]; - return isFunction(output) - ? output(number, withoutSuffix, string, isFuture) - : output.replace(/%d/i, number); - } - - function pastFuture(diff, output) { - var format = this._relativeTime[diff > 0 ? 'future' : 'past']; - return isFunction(format) ? format(output) : format.replace(/%s/i, output); - } - - var aliases = {}; - - function addUnitAlias(unit, shorthand) { + return isFunction(output) ? output(number, withoutSuffix, string, isFuture) : output.replace(/%d/i, number); + } + function pastFuture(diff2, output) { + var format2 = this._relativeTime[diff2 > 0 ? "future" : "past"]; + return isFunction(format2) ? format2(output) : format2.replace(/%s/i, output); + } + var aliases = {}; + function addUnitAlias(unit, shorthand) { var lowerCase = unit.toLowerCase(); - aliases[lowerCase] = aliases[lowerCase + 's'] = aliases[shorthand] = unit; - } - - function normalizeUnits(units) { - return typeof units === 'string' - ? aliases[units] || aliases[units.toLowerCase()] - : undefined; - } - - function normalizeObjectUnits(inputObject) { - var normalizedInput = {}, - normalizedProp, - prop; - + aliases[lowerCase] = aliases[lowerCase + "s"] = aliases[shorthand] = unit; + } + function normalizeUnits(units) { + return typeof units === "string" ? aliases[units] || aliases[units.toLowerCase()] : void 0; + } + function normalizeObjectUnits(inputObject) { + var normalizedInput = {}, normalizedProp, prop; for (prop in inputObject) { - if (hasOwnProp(inputObject, prop)) { - normalizedProp = normalizeUnits(prop); - if (normalizedProp) { - normalizedInput[normalizedProp] = inputObject[prop]; - } + if (hasOwnProp(inputObject, prop)) { + normalizedProp = normalizeUnits(prop); + if (normalizedProp) { + normalizedInput[normalizedProp] = inputObject[prop]; } + } } - return normalizedInput; - } - - var priorities = {}; - - function addUnitPriority(unit, priority) { + } + var priorities = {}; + function addUnitPriority(unit, priority) { priorities[unit] = priority; - } - - function getPrioritizedUnits(unitsObj) { - var units = [], - u; + } + function getPrioritizedUnits(unitsObj) { + var units = [], u; for (u in unitsObj) { - if (hasOwnProp(unitsObj, u)) { - units.push({ unit: u, priority: priorities[u] }); - } + if (hasOwnProp(unitsObj, u)) { + units.push({ unit: u, priority: priorities[u] }); + } } - units.sort(function (a, b) { - return a.priority - b.priority; + units.sort(function(a, b) { + return a.priority - b.priority; }); return units; - } - - function isLeapYear(year) { - return (year % 4 === 0 && year % 100 !== 0) || year % 400 === 0; - } - - function absFloor(number) { + } + function isLeapYear(year) { + return year % 4 === 0 && year % 100 !== 0 || year % 400 === 0; + } + function absFloor(number) { if (number < 0) { - // -0 -> 0 - return Math.ceil(number) || 0; + return Math.ceil(number) || 0; } else { - return Math.floor(number); + return Math.floor(number); } - } - - function toInt(argumentForCoercion) { - var coercedNumber = +argumentForCoercion, - value = 0; - + } + function toInt(argumentForCoercion) { + var coercedNumber = +argumentForCoercion, value = 0; if (coercedNumber !== 0 && isFinite(coercedNumber)) { - value = absFloor(coercedNumber); + value = absFloor(coercedNumber); } - return value; - } - - function makeGetSet(unit, keepTime) { - return function (value) { - if (value != null) { - set$1(this, unit, value); - hooks.updateOffset(this, keepTime); - return this; - } else { - return get(this, unit); - } + } + function makeGetSet(unit, keepTime) { + return function(value) { + if (value != null) { + set$1(this, unit, value); + hooks.updateOffset(this, keepTime); + return this; + } else { + return get(this, unit); + } }; - } - - function get(mom, unit) { - return mom.isValid() - ? mom._d['get' + (mom._isUTC ? 'UTC' : '') + unit]() - : NaN; - } - - function set$1(mom, unit, value) { + } + function get(mom, unit) { + return mom.isValid() ? mom._d["get" + (mom._isUTC ? "UTC" : "") + unit]() : NaN; + } + function set$1(mom, unit, value) { if (mom.isValid() && !isNaN(value)) { - if ( - unit === 'FullYear' && - isLeapYear(mom.year()) && - mom.month() === 1 && - mom.date() === 29 - ) { - value = toInt(value); - mom._d['set' + (mom._isUTC ? 'UTC' : '') + unit]( - value, - mom.month(), - daysInMonth(value, mom.month()) - ); - } else { - mom._d['set' + (mom._isUTC ? 'UTC' : '') + unit](value); - } + if (unit === "FullYear" && isLeapYear(mom.year()) && mom.month() === 1 && mom.date() === 29) { + value = toInt(value); + mom._d["set" + (mom._isUTC ? "UTC" : "") + unit]( + value, + mom.month(), + daysInMonth(value, mom.month()) + ); + } else { + mom._d["set" + (mom._isUTC ? "UTC" : "") + unit](value); + } } - } - - // MOMENTS - - function stringGet(units) { + } + function stringGet(units) { units = normalizeUnits(units); if (isFunction(this[units])) { - return this[units](); + return this[units](); } return this; - } - - function stringSet(units, value) { - if (typeof units === 'object') { - units = normalizeObjectUnits(units); - var prioritized = getPrioritizedUnits(units), - i; - for (i = 0; i < prioritized.length; i++) { - this[prioritized[i].unit](units[prioritized[i].unit]); - } + } + function stringSet(units, value) { + if (typeof units === "object") { + units = normalizeObjectUnits(units); + var prioritized = getPrioritizedUnits(units), i, prioritizedLen = prioritized.length; + for (i = 0; i < prioritizedLen; i++) { + this[prioritized[i].unit](units[prioritized[i].unit]); + } } else { - units = normalizeUnits(units); - if (isFunction(this[units])) { - return this[units](value); - } + units = normalizeUnits(units); + if (isFunction(this[units])) { + return this[units](value); + } } return this; - } - - var match1 = /\d/, // 0 - 9 - match2 = /\d\d/, // 00 - 99 - match3 = /\d{3}/, // 000 - 999 - match4 = /\d{4}/, // 0000 - 9999 - match6 = /[+-]?\d{6}/, // -999999 - 999999 - match1to2 = /\d\d?/, // 0 - 99 - match3to4 = /\d\d\d\d?/, // 999 - 9999 - match5to6 = /\d\d\d\d\d\d?/, // 99999 - 999999 - match1to3 = /\d{1,3}/, // 0 - 999 - match1to4 = /\d{1,4}/, // 0 - 9999 - match1to6 = /[+-]?\d{1,6}/, // -999999 - 999999 - matchUnsigned = /\d+/, // 0 - inf - matchSigned = /[+-]?\d+/, // -inf - inf - matchOffset = /Z|[+-]\d\d:?\d\d/gi, // +00:00 -00:00 +0000 -0000 or Z - matchShortOffset = /Z|[+-]\d\d(?::?\d\d)?/gi, // +00 -00 +00:00 -00:00 +0000 -0000 or Z - matchTimestamp = /[+-]?\d+(\.\d{1,3})?/, // 123456789 123456789.123 - // any word (or two) characters or numbers including two/three word month in arabic. - // includes scottish gaelic two word and hyphenated months - matchWord = /[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i, - regexes; - - regexes = {}; - - function addRegexToken(token, regex, strictRegex) { - regexes[token] = isFunction(regex) - ? regex - : function (isStrict, localeData) { - return isStrict && strictRegex ? strictRegex : regex; - }; - } - - function getParseRegexForToken(token, config) { - if (!hasOwnProp(regexes, token)) { - return new RegExp(unescapeFormat(token)); + } + var match1 = /\d/, match2 = /\d\d/, match3 = /\d{3}/, match4 = /\d{4}/, match6 = /[+-]?\d{6}/, match1to2 = /\d\d?/, match3to4 = /\d\d\d\d?/, match5to6 = /\d\d\d\d\d\d?/, match1to3 = /\d{1,3}/, match1to4 = /\d{1,4}/, match1to6 = /[+-]?\d{1,6}/, matchUnsigned = /\d+/, matchSigned = /[+-]?\d+/, matchOffset = /Z|[+-]\d\d:?\d\d/gi, matchShortOffset = /Z|[+-]\d\d(?::?\d\d)?/gi, matchTimestamp = /[+-]?\d+(\.\d{1,3})?/, matchWord = /[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i, regexes; + regexes = {}; + function addRegexToken(token2, regex, strictRegex) { + regexes[token2] = isFunction(regex) ? regex : function(isStrict, localeData2) { + return isStrict && strictRegex ? strictRegex : regex; + }; + } + function getParseRegexForToken(token2, config) { + if (!hasOwnProp(regexes, token2)) { + return new RegExp(unescapeFormat(token2)); } - - return regexes[token](config._strict, config._locale); - } - - // Code from http://stackoverflow.com/questions/3561493/is-there-a-regexp-escape-function-in-javascript - function unescapeFormat(s) { + return regexes[token2](config._strict, config._locale); + } + function unescapeFormat(s) { return regexEscape( - s - .replace('\\', '') - .replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g, function ( - matched, - p1, - p2, - p3, - p4 - ) { - return p1 || p2 || p3 || p4; - }) + s.replace("\\", "").replace( + /\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g, + function(matched, p1, p2, p3, p4) { + return p1 || p2 || p3 || p4; + } + ) ); - } - - function regexEscape(s) { - return s.replace(/[-\/\\^$*+?.()|[\]{}]/g, '\\$&'); - } - - var tokens = {}; - - function addParseToken(token, callback) { - var i, - func = callback; - if (typeof token === 'string') { - token = [token]; - } - if (isNumber(callback)) { - func = function (input, array) { - array[callback] = toInt(input); - }; + } + function regexEscape(s) { + return s.replace(/[-\/\\^$*+?.()|[\]{}]/g, "\\$&"); + } + var tokens = {}; + function addParseToken(token2, callback) { + var i, func = callback, tokenLen; + if (typeof token2 === "string") { + token2 = [token2]; } - for (i = 0; i < token.length; i++) { - tokens[token[i]] = func; + if (isNumber2(callback)) { + func = function(input, array) { + array[callback] = toInt(input); + }; } - } - - function addWeekParseToken(token, callback) { - addParseToken(token, function (input, array, config, token) { - config._w = config._w || {}; - callback(input, config._w, config, token); + tokenLen = token2.length; + for (i = 0; i < tokenLen; i++) { + tokens[token2[i]] = func; + } + } + function addWeekParseToken(token2, callback) { + addParseToken(token2, function(input, array, config, token3) { + config._w = config._w || {}; + callback(input, config._w, config, token3); }); - } - - function addTimeToArrayFromToken(token, input, config) { - if (input != null && hasOwnProp(tokens, token)) { - tokens[token](input, config._a, config, token); + } + function addTimeToArrayFromToken(token2, input, config) { + if (input != null && hasOwnProp(tokens, token2)) { + tokens[token2](input, config._a, config, token2); } - } - - var YEAR = 0, - MONTH = 1, - DATE = 2, - HOUR = 3, - MINUTE = 4, - SECOND = 5, - MILLISECOND = 6, - WEEK = 7, - WEEKDAY = 8; - - function mod(n, x) { - return ((n % x) + x) % x; - } - - var indexOf; - - if (Array.prototype.indexOf) { + } + var YEAR = 0, MONTH = 1, DATE = 2, HOUR = 3, MINUTE = 4, SECOND = 5, MILLISECOND = 6, WEEK = 7, WEEKDAY = 8; + function mod(n, x) { + return (n % x + x) % x; + } + var indexOf; + if (Array.prototype.indexOf) { indexOf = Array.prototype.indexOf; - } else { - indexOf = function (o) { - // I know - var i; - for (i = 0; i < this.length; ++i) { - if (this[i] === o) { - return i; - } + } else { + indexOf = function(o) { + var i; + for (i = 0; i < this.length; ++i) { + if (this[i] === o) { + return i; } - return -1; + } + return -1; }; - } - - function daysInMonth(year, month) { + } + function daysInMonth(year, month) { if (isNaN(year) || isNaN(month)) { - return NaN; + return NaN; } var modMonth = mod(month, 12); year += (month - modMonth) / 12; - return modMonth === 1 - ? isLeapYear(year) - ? 29 - : 28 - : 31 - ((modMonth % 7) % 2); - } - - // FORMATTING - - addFormatToken('M', ['MM', 2], 'Mo', function () { + return modMonth === 1 ? isLeapYear(year) ? 29 : 28 : 31 - modMonth % 7 % 2; + } + addFormatToken("M", ["MM", 2], "Mo", function() { return this.month() + 1; - }); - - addFormatToken('MMM', 0, 0, function (format) { - return this.localeData().monthsShort(this, format); - }); - - addFormatToken('MMMM', 0, 0, function (format) { - return this.localeData().months(this, format); - }); - - // ALIASES - - addUnitAlias('month', 'M'); - - // PRIORITY - - addUnitPriority('month', 8); - - // PARSING - - addRegexToken('M', match1to2); - addRegexToken('MM', match1to2, match2); - addRegexToken('MMM', function (isStrict, locale) { - return locale.monthsShortRegex(isStrict); - }); - addRegexToken('MMMM', function (isStrict, locale) { - return locale.monthsRegex(isStrict); - }); - - addParseToken(['M', 'MM'], function (input, array) { + }); + addFormatToken("MMM", 0, 0, function(format2) { + return this.localeData().monthsShort(this, format2); + }); + addFormatToken("MMMM", 0, 0, function(format2) { + return this.localeData().months(this, format2); + }); + addUnitAlias("month", "M"); + addUnitPriority("month", 8); + addRegexToken("M", match1to2); + addRegexToken("MM", match1to2, match2); + addRegexToken("MMM", function(isStrict, locale2) { + return locale2.monthsShortRegex(isStrict); + }); + addRegexToken("MMMM", function(isStrict, locale2) { + return locale2.monthsRegex(isStrict); + }); + addParseToken(["M", "MM"], function(input, array) { array[MONTH] = toInt(input) - 1; - }); - - addParseToken(['MMM', 'MMMM'], function (input, array, config, token) { - var month = config._locale.monthsParse(input, token, config._strict); - // if we didn't find a month name, mark the date as invalid. + }); + addParseToken(["MMM", "MMMM"], function(input, array, config, token2) { + var month = config._locale.monthsParse(input, token2, config._strict); if (month != null) { - array[MONTH] = month; + array[MONTH] = month; } else { - getParsingFlags(config).invalidMonth = input; + getParsingFlags(config).invalidMonth = input; } - }); - - // LOCALES - - var defaultLocaleMonths = 'January_February_March_April_May_June_July_August_September_October_November_December'.split( - '_' - ), - defaultLocaleMonthsShort = 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split( - '_' - ), - MONTHS_IN_FORMAT = /D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/, - defaultMonthsShortRegex = matchWord, - defaultMonthsRegex = matchWord; - - function localeMonths(m, format) { + }); + var defaultLocaleMonths = "January_February_March_April_May_June_July_August_September_October_November_December".split( + "_" + ), defaultLocaleMonthsShort = "Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"), MONTHS_IN_FORMAT = /D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/, defaultMonthsShortRegex = matchWord, defaultMonthsRegex = matchWord; + function localeMonths(m, format2) { if (!m) { - return isArray(this._months) - ? this._months - : this._months['standalone']; - } - return isArray(this._months) - ? this._months[m.month()] - : this._months[ - (this._months.isFormat || MONTHS_IN_FORMAT).test(format) - ? 'format' - : 'standalone' - ][m.month()]; - } - - function localeMonthsShort(m, format) { + return isArray2(this._months) ? this._months : this._months["standalone"]; + } + return isArray2(this._months) ? this._months[m.month()] : this._months[(this._months.isFormat || MONTHS_IN_FORMAT).test(format2) ? "format" : "standalone"][m.month()]; + } + function localeMonthsShort(m, format2) { if (!m) { - return isArray(this._monthsShort) - ? this._monthsShort - : this._monthsShort['standalone']; + return isArray2(this._monthsShort) ? this._monthsShort : this._monthsShort["standalone"]; } - return isArray(this._monthsShort) - ? this._monthsShort[m.month()] - : this._monthsShort[ - MONTHS_IN_FORMAT.test(format) ? 'format' : 'standalone' - ][m.month()]; - } - - function handleStrictParse(monthName, format, strict) { - var i, - ii, - mom, - llc = monthName.toLocaleLowerCase(); + return isArray2(this._monthsShort) ? this._monthsShort[m.month()] : this._monthsShort[MONTHS_IN_FORMAT.test(format2) ? "format" : "standalone"][m.month()]; + } + function handleStrictParse(monthName, format2, strict) { + var i, ii, mom, llc = monthName.toLocaleLowerCase(); if (!this._monthsParse) { - // this is not used - this._monthsParse = []; - this._longMonthsParse = []; - this._shortMonthsParse = []; - for (i = 0; i < 12; ++i) { - mom = createUTC([2000, i]); - this._shortMonthsParse[i] = this.monthsShort( - mom, - '' - ).toLocaleLowerCase(); - this._longMonthsParse[i] = this.months(mom, '').toLocaleLowerCase(); - } + this._monthsParse = []; + this._longMonthsParse = []; + this._shortMonthsParse = []; + for (i = 0; i < 12; ++i) { + mom = createUTC([2e3, i]); + this._shortMonthsParse[i] = this.monthsShort( + mom, + "" + ).toLocaleLowerCase(); + this._longMonthsParse[i] = this.months(mom, "").toLocaleLowerCase(); + } } - if (strict) { - if (format === 'MMM') { - ii = indexOf.call(this._shortMonthsParse, llc); - return ii !== -1 ? ii : null; - } else { - ii = indexOf.call(this._longMonthsParse, llc); - return ii !== -1 ? ii : null; - } + if (format2 === "MMM") { + ii = indexOf.call(this._shortMonthsParse, llc); + return ii !== -1 ? ii : null; + } else { + ii = indexOf.call(this._longMonthsParse, llc); + return ii !== -1 ? ii : null; + } } else { - if (format === 'MMM') { - ii = indexOf.call(this._shortMonthsParse, llc); - if (ii !== -1) { - return ii; - } - ii = indexOf.call(this._longMonthsParse, llc); - return ii !== -1 ? ii : null; - } else { - ii = indexOf.call(this._longMonthsParse, llc); - if (ii !== -1) { - return ii; - } - ii = indexOf.call(this._shortMonthsParse, llc); - return ii !== -1 ? ii : null; + if (format2 === "MMM") { + ii = indexOf.call(this._shortMonthsParse, llc); + if (ii !== -1) { + return ii; } + ii = indexOf.call(this._longMonthsParse, llc); + return ii !== -1 ? ii : null; + } else { + ii = indexOf.call(this._longMonthsParse, llc); + if (ii !== -1) { + return ii; + } + ii = indexOf.call(this._shortMonthsParse, llc); + return ii !== -1 ? ii : null; + } } - } - - function localeMonthsParse(monthName, format, strict) { + } + function localeMonthsParse(monthName, format2, strict) { var i, mom, regex; - if (this._monthsParseExact) { - return handleStrictParse.call(this, monthName, format, strict); + return handleStrictParse.call(this, monthName, format2, strict); } - if (!this._monthsParse) { - this._monthsParse = []; - this._longMonthsParse = []; - this._shortMonthsParse = []; + this._monthsParse = []; + this._longMonthsParse = []; + this._shortMonthsParse = []; } - - // TODO: add sorting - // Sorting makes sure if one month (or abbr) is a prefix of another - // see sorting in computeMonthsParse for (i = 0; i < 12; i++) { - // make the regex if we don't have it already - mom = createUTC([2000, i]); - if (strict && !this._longMonthsParse[i]) { - this._longMonthsParse[i] = new RegExp( - '^' + this.months(mom, '').replace('.', '') + '$', - 'i' - ); - this._shortMonthsParse[i] = new RegExp( - '^' + this.monthsShort(mom, '').replace('.', '') + '$', - 'i' - ); - } - if (!strict && !this._monthsParse[i]) { - regex = - '^' + this.months(mom, '') + '|^' + this.monthsShort(mom, ''); - this._monthsParse[i] = new RegExp(regex.replace('.', ''), 'i'); - } - // test the regex - if ( - strict && - format === 'MMMM' && - this._longMonthsParse[i].test(monthName) - ) { - return i; - } else if ( - strict && - format === 'MMM' && - this._shortMonthsParse[i].test(monthName) - ) { - return i; - } else if (!strict && this._monthsParse[i].test(monthName)) { - return i; - } + mom = createUTC([2e3, i]); + if (strict && !this._longMonthsParse[i]) { + this._longMonthsParse[i] = new RegExp( + "^" + this.months(mom, "").replace(".", "") + "$", + "i" + ); + this._shortMonthsParse[i] = new RegExp( + "^" + this.monthsShort(mom, "").replace(".", "") + "$", + "i" + ); + } + if (!strict && !this._monthsParse[i]) { + regex = "^" + this.months(mom, "") + "|^" + this.monthsShort(mom, ""); + this._monthsParse[i] = new RegExp(regex.replace(".", ""), "i"); + } + if (strict && format2 === "MMMM" && this._longMonthsParse[i].test(monthName)) { + return i; + } else if (strict && format2 === "MMM" && this._shortMonthsParse[i].test(monthName)) { + return i; + } else if (!strict && this._monthsParse[i].test(monthName)) { + return i; + } } - } - - // MOMENTS - - function setMonth(mom, value) { + } + function setMonth(mom, value) { var dayOfMonth; - if (!mom.isValid()) { - // No op - return mom; - } - - if (typeof value === 'string') { - if (/^\d+$/.test(value)) { - value = toInt(value); - } else { - value = mom.localeData().monthsParse(value); - // TODO: Another silent failure? - if (!isNumber(value)) { - return mom; - } + return mom; + } + if (typeof value === "string") { + if (/^\d+$/.test(value)) { + value = toInt(value); + } else { + value = mom.localeData().monthsParse(value); + if (!isNumber2(value)) { + return mom; } + } } - dayOfMonth = Math.min(mom.date(), daysInMonth(mom.year(), value)); - mom._d['set' + (mom._isUTC ? 'UTC' : '') + 'Month'](value, dayOfMonth); + mom._d["set" + (mom._isUTC ? "UTC" : "") + "Month"](value, dayOfMonth); return mom; - } - - function getSetMonth(value) { + } + function getSetMonth(value) { if (value != null) { - setMonth(this, value); - hooks.updateOffset(this, true); - return this; + setMonth(this, value); + hooks.updateOffset(this, true); + return this; } else { - return get(this, 'Month'); + return get(this, "Month"); } - } - - function getDaysInMonth() { + } + function getDaysInMonth() { return daysInMonth(this.year(), this.month()); - } - - function monthsShortRegex(isStrict) { + } + function monthsShortRegex(isStrict) { if (this._monthsParseExact) { - if (!hasOwnProp(this, '_monthsRegex')) { - computeMonthsParse.call(this); - } - if (isStrict) { - return this._monthsShortStrictRegex; - } else { - return this._monthsShortRegex; - } + if (!hasOwnProp(this, "_monthsRegex")) { + computeMonthsParse.call(this); + } + if (isStrict) { + return this._monthsShortStrictRegex; + } else { + return this._monthsShortRegex; + } } else { - if (!hasOwnProp(this, '_monthsShortRegex')) { - this._monthsShortRegex = defaultMonthsShortRegex; - } - return this._monthsShortStrictRegex && isStrict - ? this._monthsShortStrictRegex - : this._monthsShortRegex; + if (!hasOwnProp(this, "_monthsShortRegex")) { + this._monthsShortRegex = defaultMonthsShortRegex; + } + return this._monthsShortStrictRegex && isStrict ? this._monthsShortStrictRegex : this._monthsShortRegex; } - } - - function monthsRegex(isStrict) { + } + function monthsRegex(isStrict) { if (this._monthsParseExact) { - if (!hasOwnProp(this, '_monthsRegex')) { - computeMonthsParse.call(this); - } - if (isStrict) { - return this._monthsStrictRegex; - } else { - return this._monthsRegex; - } + if (!hasOwnProp(this, "_monthsRegex")) { + computeMonthsParse.call(this); + } + if (isStrict) { + return this._monthsStrictRegex; + } else { + return this._monthsRegex; + } } else { - if (!hasOwnProp(this, '_monthsRegex')) { - this._monthsRegex = defaultMonthsRegex; - } - return this._monthsStrictRegex && isStrict - ? this._monthsStrictRegex - : this._monthsRegex; + if (!hasOwnProp(this, "_monthsRegex")) { + this._monthsRegex = defaultMonthsRegex; + } + return this._monthsStrictRegex && isStrict ? this._monthsStrictRegex : this._monthsRegex; } - } - - function computeMonthsParse() { + } + function computeMonthsParse() { function cmpLenRev(a, b) { - return b.length - a.length; + return b.length - a.length; } - - var shortPieces = [], - longPieces = [], - mixedPieces = [], - i, - mom; + var shortPieces = [], longPieces = [], mixedPieces = [], i, mom; for (i = 0; i < 12; i++) { - // make the regex if we don't have it already - mom = createUTC([2000, i]); - shortPieces.push(this.monthsShort(mom, '')); - longPieces.push(this.months(mom, '')); - mixedPieces.push(this.months(mom, '')); - mixedPieces.push(this.monthsShort(mom, '')); - } - // Sorting makes sure if one month (or abbr) is a prefix of another it - // will match the longer piece. + mom = createUTC([2e3, i]); + shortPieces.push(this.monthsShort(mom, "")); + longPieces.push(this.months(mom, "")); + mixedPieces.push(this.months(mom, "")); + mixedPieces.push(this.monthsShort(mom, "")); + } shortPieces.sort(cmpLenRev); longPieces.sort(cmpLenRev); mixedPieces.sort(cmpLenRev); for (i = 0; i < 12; i++) { - shortPieces[i] = regexEscape(shortPieces[i]); - longPieces[i] = regexEscape(longPieces[i]); + shortPieces[i] = regexEscape(shortPieces[i]); + longPieces[i] = regexEscape(longPieces[i]); } for (i = 0; i < 24; i++) { - mixedPieces[i] = regexEscape(mixedPieces[i]); + mixedPieces[i] = regexEscape(mixedPieces[i]); } - - this._monthsRegex = new RegExp('^(' + mixedPieces.join('|') + ')', 'i'); + this._monthsRegex = new RegExp("^(" + mixedPieces.join("|") + ")", "i"); this._monthsShortRegex = this._monthsRegex; this._monthsStrictRegex = new RegExp( - '^(' + longPieces.join('|') + ')', - 'i' + "^(" + longPieces.join("|") + ")", + "i" ); this._monthsShortStrictRegex = new RegExp( - '^(' + shortPieces.join('|') + ')', - 'i' + "^(" + shortPieces.join("|") + ")", + "i" ); - } - - // FORMATTING - - addFormatToken('Y', 0, 0, function () { + } + addFormatToken("Y", 0, 0, function() { var y = this.year(); - return y <= 9999 ? zeroFill(y, 4) : '+' + y; - }); - - addFormatToken(0, ['YY', 2], 0, function () { + return y <= 9999 ? zeroFill(y, 4) : "+" + y; + }); + addFormatToken(0, ["YY", 2], 0, function() { return this.year() % 100; - }); - - addFormatToken(0, ['YYYY', 4], 0, 'year'); - addFormatToken(0, ['YYYYY', 5], 0, 'year'); - addFormatToken(0, ['YYYYYY', 6, true], 0, 'year'); - - // ALIASES - - addUnitAlias('year', 'y'); - - // PRIORITIES - - addUnitPriority('year', 1); - - // PARSING - - addRegexToken('Y', matchSigned); - addRegexToken('YY', match1to2, match2); - addRegexToken('YYYY', match1to4, match4); - addRegexToken('YYYYY', match1to6, match6); - addRegexToken('YYYYYY', match1to6, match6); - - addParseToken(['YYYYY', 'YYYYYY'], YEAR); - addParseToken('YYYY', function (input, array) { - array[YEAR] = - input.length === 2 ? hooks.parseTwoDigitYear(input) : toInt(input); - }); - addParseToken('YY', function (input, array) { + }); + addFormatToken(0, ["YYYY", 4], 0, "year"); + addFormatToken(0, ["YYYYY", 5], 0, "year"); + addFormatToken(0, ["YYYYYY", 6, true], 0, "year"); + addUnitAlias("year", "y"); + addUnitPriority("year", 1); + addRegexToken("Y", matchSigned); + addRegexToken("YY", match1to2, match2); + addRegexToken("YYYY", match1to4, match4); + addRegexToken("YYYYY", match1to6, match6); + addRegexToken("YYYYYY", match1to6, match6); + addParseToken(["YYYYY", "YYYYYY"], YEAR); + addParseToken("YYYY", function(input, array) { + array[YEAR] = input.length === 2 ? hooks.parseTwoDigitYear(input) : toInt(input); + }); + addParseToken("YY", function(input, array) { array[YEAR] = hooks.parseTwoDigitYear(input); - }); - addParseToken('Y', function (input, array) { + }); + addParseToken("Y", function(input, array) { array[YEAR] = parseInt(input, 10); - }); - - // HELPERS - - function daysInYear(year) { + }); + function daysInYear(year) { return isLeapYear(year) ? 366 : 365; - } - - // HOOKS - - hooks.parseTwoDigitYear = function (input) { - return toInt(input) + (toInt(input) > 68 ? 1900 : 2000); - }; - - // MOMENTS - - var getSetYear = makeGetSet('FullYear', true); - - function getIsLeapYear() { + } + hooks.parseTwoDigitYear = function(input) { + return toInt(input) + (toInt(input) > 68 ? 1900 : 2e3); + }; + var getSetYear = makeGetSet("FullYear", true); + function getIsLeapYear() { return isLeapYear(this.year()); - } - - function createDate(y, m, d, h, M, s, ms) { - // can't just apply() to create a date: - // https://stackoverflow.com/q/181348 + } + function createDate(y, m, d, h, M, s, ms) { var date; - // the date constructor remaps years 0-99 to 1900-1999 if (y < 100 && y >= 0) { - // preserve leap years using a full 400 year cycle, then reset - date = new Date(y + 400, m, d, h, M, s, ms); - if (isFinite(date.getFullYear())) { - date.setFullYear(y); - } + date = new Date(y + 400, m, d, h, M, s, ms); + if (isFinite(date.getFullYear())) { + date.setFullYear(y); + } } else { - date = new Date(y, m, d, h, M, s, ms); + date = new Date(y, m, d, h, M, s, ms); } - return date; - } - - function createUTCDate(y) { + } + function createUTCDate(y) { var date, args; - // the Date.UTC function remaps years 0-99 to 1900-1999 if (y < 100 && y >= 0) { - args = Array.prototype.slice.call(arguments); - // preserve leap years using a full 400 year cycle, then reset - args[0] = y + 400; - date = new Date(Date.UTC.apply(null, args)); - if (isFinite(date.getUTCFullYear())) { - date.setUTCFullYear(y); - } + args = Array.prototype.slice.call(arguments); + args[0] = y + 400; + date = new Date(Date.UTC.apply(null, args)); + if (isFinite(date.getUTCFullYear())) { + date.setUTCFullYear(y); + } } else { - date = new Date(Date.UTC.apply(null, arguments)); + date = new Date(Date.UTC.apply(null, arguments)); } - return date; - } - - // start-of-first-week - start-of-year - function firstWeekOffset(year, dow, doy) { - var // first-week day -- which january is always in the first week (4 for iso, 1 for other) - fwd = 7 + dow - doy, - // first-week day local weekday -- which local weekday is fwd - fwdlw = (7 + createUTCDate(year, 0, fwd).getUTCDay() - dow) % 7; - + } + function firstWeekOffset(year, dow, doy) { + var fwd = 7 + dow - doy, fwdlw = (7 + createUTCDate(year, 0, fwd).getUTCDay() - dow) % 7; return -fwdlw + fwd - 1; - } - - // https://en.wikipedia.org/wiki/ISO_week_date#Calculating_a_date_given_the_year.2C_week_number_and_weekday - function dayOfYearFromWeeks(year, week, weekday, dow, doy) { - var localWeekday = (7 + weekday - dow) % 7, - weekOffset = firstWeekOffset(year, dow, doy), - dayOfYear = 1 + 7 * (week - 1) + localWeekday + weekOffset, - resYear, - resDayOfYear; - + } + function dayOfYearFromWeeks(year, week, weekday, dow, doy) { + var localWeekday = (7 + weekday - dow) % 7, weekOffset = firstWeekOffset(year, dow, doy), dayOfYear = 1 + 7 * (week - 1) + localWeekday + weekOffset, resYear, resDayOfYear; if (dayOfYear <= 0) { - resYear = year - 1; - resDayOfYear = daysInYear(resYear) + dayOfYear; + resYear = year - 1; + resDayOfYear = daysInYear(resYear) + dayOfYear; } else if (dayOfYear > daysInYear(year)) { - resYear = year + 1; - resDayOfYear = dayOfYear - daysInYear(year); + resYear = year + 1; + resDayOfYear = dayOfYear - daysInYear(year); } else { - resYear = year; - resDayOfYear = dayOfYear; + resYear = year; + resDayOfYear = dayOfYear; } - return { - year: resYear, - dayOfYear: resDayOfYear, + year: resYear, + dayOfYear: resDayOfYear }; - } - - function weekOfYear(mom, dow, doy) { - var weekOffset = firstWeekOffset(mom.year(), dow, doy), - week = Math.floor((mom.dayOfYear() - weekOffset - 1) / 7) + 1, - resWeek, - resYear; - + } + function weekOfYear(mom, dow, doy) { + var weekOffset = firstWeekOffset(mom.year(), dow, doy), week = Math.floor((mom.dayOfYear() - weekOffset - 1) / 7) + 1, resWeek, resYear; if (week < 1) { - resYear = mom.year() - 1; - resWeek = week + weeksInYear(resYear, dow, doy); + resYear = mom.year() - 1; + resWeek = week + weeksInYear(resYear, dow, doy); } else if (week > weeksInYear(mom.year(), dow, doy)) { - resWeek = week - weeksInYear(mom.year(), dow, doy); - resYear = mom.year() + 1; + resWeek = week - weeksInYear(mom.year(), dow, doy); + resYear = mom.year() + 1; } else { - resYear = mom.year(); - resWeek = week; + resYear = mom.year(); + resWeek = week; } - return { - week: resWeek, - year: resYear, + week: resWeek, + year: resYear }; - } - - function weeksInYear(year, dow, doy) { - var weekOffset = firstWeekOffset(year, dow, doy), - weekOffsetNext = firstWeekOffset(year + 1, dow, doy); + } + function weeksInYear(year, dow, doy) { + var weekOffset = firstWeekOffset(year, dow, doy), weekOffsetNext = firstWeekOffset(year + 1, dow, doy); return (daysInYear(year) - weekOffset + weekOffsetNext) / 7; - } - - // FORMATTING - - addFormatToken('w', ['ww', 2], 'wo', 'week'); - addFormatToken('W', ['WW', 2], 'Wo', 'isoWeek'); - - // ALIASES - - addUnitAlias('week', 'w'); - addUnitAlias('isoWeek', 'W'); - - // PRIORITIES - - addUnitPriority('week', 5); - addUnitPriority('isoWeek', 5); - - // PARSING - - addRegexToken('w', match1to2); - addRegexToken('ww', match1to2, match2); - addRegexToken('W', match1to2); - addRegexToken('WW', match1to2, match2); - - addWeekParseToken(['w', 'ww', 'W', 'WW'], function ( - input, - week, - config, - token - ) { - week[token.substr(0, 1)] = toInt(input); - }); - - // HELPERS - - // LOCALES - - function localeWeek(mom) { + } + addFormatToken("w", ["ww", 2], "wo", "week"); + addFormatToken("W", ["WW", 2], "Wo", "isoWeek"); + addUnitAlias("week", "w"); + addUnitAlias("isoWeek", "W"); + addUnitPriority("week", 5); + addUnitPriority("isoWeek", 5); + addRegexToken("w", match1to2); + addRegexToken("ww", match1to2, match2); + addRegexToken("W", match1to2); + addRegexToken("WW", match1to2, match2); + addWeekParseToken( + ["w", "ww", "W", "WW"], + function(input, week, config, token2) { + week[token2.substr(0, 1)] = toInt(input); + } + ); + function localeWeek(mom) { return weekOfYear(mom, this._week.dow, this._week.doy).week; - } - - var defaultLocaleWeek = { - dow: 0, // Sunday is the first day of the week. - doy: 6, // The week that contains Jan 6th is the first week of the year. - }; - - function localeFirstDayOfWeek() { + } + var defaultLocaleWeek = { + dow: 0, + doy: 6 + }; + function localeFirstDayOfWeek() { return this._week.dow; - } - - function localeFirstDayOfYear() { + } + function localeFirstDayOfYear() { return this._week.doy; - } - - // MOMENTS - - function getSetWeek(input) { + } + function getSetWeek(input) { var week = this.localeData().week(this); - return input == null ? week : this.add((input - week) * 7, 'd'); - } - - function getSetISOWeek(input) { + return input == null ? week : this.add((input - week) * 7, "d"); + } + function getSetISOWeek(input) { var week = weekOfYear(this, 1, 4).week; - return input == null ? week : this.add((input - week) * 7, 'd'); - } - - // FORMATTING - - addFormatToken('d', 0, 'do', 'day'); - - addFormatToken('dd', 0, 0, function (format) { - return this.localeData().weekdaysMin(this, format); - }); - - addFormatToken('ddd', 0, 0, function (format) { - return this.localeData().weekdaysShort(this, format); - }); - - addFormatToken('dddd', 0, 0, function (format) { - return this.localeData().weekdays(this, format); - }); - - addFormatToken('e', 0, 0, 'weekday'); - addFormatToken('E', 0, 0, 'isoWeekday'); - - // ALIASES - - addUnitAlias('day', 'd'); - addUnitAlias('weekday', 'e'); - addUnitAlias('isoWeekday', 'E'); - - // PRIORITY - addUnitPriority('day', 11); - addUnitPriority('weekday', 11); - addUnitPriority('isoWeekday', 11); - - // PARSING - - addRegexToken('d', match1to2); - addRegexToken('e', match1to2); - addRegexToken('E', match1to2); - addRegexToken('dd', function (isStrict, locale) { - return locale.weekdaysMinRegex(isStrict); - }); - addRegexToken('ddd', function (isStrict, locale) { - return locale.weekdaysShortRegex(isStrict); - }); - addRegexToken('dddd', function (isStrict, locale) { - return locale.weekdaysRegex(isStrict); - }); - - addWeekParseToken(['dd', 'ddd', 'dddd'], function (input, week, config, token) { - var weekday = config._locale.weekdaysParse(input, token, config._strict); - // if we didn't get a weekday name, mark the date as invalid + return input == null ? week : this.add((input - week) * 7, "d"); + } + addFormatToken("d", 0, "do", "day"); + addFormatToken("dd", 0, 0, function(format2) { + return this.localeData().weekdaysMin(this, format2); + }); + addFormatToken("ddd", 0, 0, function(format2) { + return this.localeData().weekdaysShort(this, format2); + }); + addFormatToken("dddd", 0, 0, function(format2) { + return this.localeData().weekdays(this, format2); + }); + addFormatToken("e", 0, 0, "weekday"); + addFormatToken("E", 0, 0, "isoWeekday"); + addUnitAlias("day", "d"); + addUnitAlias("weekday", "e"); + addUnitAlias("isoWeekday", "E"); + addUnitPriority("day", 11); + addUnitPriority("weekday", 11); + addUnitPriority("isoWeekday", 11); + addRegexToken("d", match1to2); + addRegexToken("e", match1to2); + addRegexToken("E", match1to2); + addRegexToken("dd", function(isStrict, locale2) { + return locale2.weekdaysMinRegex(isStrict); + }); + addRegexToken("ddd", function(isStrict, locale2) { + return locale2.weekdaysShortRegex(isStrict); + }); + addRegexToken("dddd", function(isStrict, locale2) { + return locale2.weekdaysRegex(isStrict); + }); + addWeekParseToken(["dd", "ddd", "dddd"], function(input, week, config, token2) { + var weekday = config._locale.weekdaysParse(input, token2, config._strict); if (weekday != null) { - week.d = weekday; + week.d = weekday; } else { - getParsingFlags(config).invalidWeekday = input; + getParsingFlags(config).invalidWeekday = input; } - }); - - addWeekParseToken(['d', 'e', 'E'], function (input, week, config, token) { - week[token] = toInt(input); - }); - - // HELPERS - - function parseWeekday(input, locale) { - if (typeof input !== 'string') { - return input; + }); + addWeekParseToken(["d", "e", "E"], function(input, week, config, token2) { + week[token2] = toInt(input); + }); + function parseWeekday2(input, locale2) { + if (typeof input !== "string") { + return input; } - if (!isNaN(input)) { - return parseInt(input, 10); + return parseInt(input, 10); } - - input = locale.weekdaysParse(input); - if (typeof input === 'number') { - return input; + input = locale2.weekdaysParse(input); + if (typeof input === "number") { + return input; } - return null; - } - - function parseIsoWeekday(input, locale) { - if (typeof input === 'string') { - return locale.weekdaysParse(input) % 7 || 7; + } + function parseIsoWeekday(input, locale2) { + if (typeof input === "string") { + return locale2.weekdaysParse(input) % 7 || 7; } return isNaN(input) ? null : input; - } - - // LOCALES - function shiftWeekdays(ws, n) { + } + function shiftWeekdays(ws, n) { return ws.slice(n, 7).concat(ws.slice(0, n)); - } - - var defaultLocaleWeekdays = 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split( - '_' - ), - defaultLocaleWeekdaysShort = 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'), - defaultLocaleWeekdaysMin = 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'), - defaultWeekdaysRegex = matchWord, - defaultWeekdaysShortRegex = matchWord, - defaultWeekdaysMinRegex = matchWord; - - function localeWeekdays(m, format) { - var weekdays = isArray(this._weekdays) - ? this._weekdays - : this._weekdays[ - m && m !== true && this._weekdays.isFormat.test(format) - ? 'format' - : 'standalone' - ]; - return m === true - ? shiftWeekdays(weekdays, this._week.dow) - : m - ? weekdays[m.day()] - : weekdays; - } - - function localeWeekdaysShort(m) { - return m === true - ? shiftWeekdays(this._weekdaysShort, this._week.dow) - : m - ? this._weekdaysShort[m.day()] - : this._weekdaysShort; - } - - function localeWeekdaysMin(m) { - return m === true - ? shiftWeekdays(this._weekdaysMin, this._week.dow) - : m - ? this._weekdaysMin[m.day()] - : this._weekdaysMin; - } - - function handleStrictParse$1(weekdayName, format, strict) { - var i, - ii, - mom, - llc = weekdayName.toLocaleLowerCase(); + } + var defaultLocaleWeekdays = "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), defaultLocaleWeekdaysShort = "Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"), defaultLocaleWeekdaysMin = "Su_Mo_Tu_We_Th_Fr_Sa".split("_"), defaultWeekdaysRegex = matchWord, defaultWeekdaysShortRegex = matchWord, defaultWeekdaysMinRegex = matchWord; + function localeWeekdays(m, format2) { + var weekdays = isArray2(this._weekdays) ? this._weekdays : this._weekdays[m && m !== true && this._weekdays.isFormat.test(format2) ? "format" : "standalone"]; + return m === true ? shiftWeekdays(weekdays, this._week.dow) : m ? weekdays[m.day()] : weekdays; + } + function localeWeekdaysShort(m) { + return m === true ? shiftWeekdays(this._weekdaysShort, this._week.dow) : m ? this._weekdaysShort[m.day()] : this._weekdaysShort; + } + function localeWeekdaysMin(m) { + return m === true ? shiftWeekdays(this._weekdaysMin, this._week.dow) : m ? this._weekdaysMin[m.day()] : this._weekdaysMin; + } + function handleStrictParse$1(weekdayName, format2, strict) { + var i, ii, mom, llc = weekdayName.toLocaleLowerCase(); if (!this._weekdaysParse) { - this._weekdaysParse = []; - this._shortWeekdaysParse = []; - this._minWeekdaysParse = []; - - for (i = 0; i < 7; ++i) { - mom = createUTC([2000, 1]).day(i); - this._minWeekdaysParse[i] = this.weekdaysMin( - mom, - '' - ).toLocaleLowerCase(); - this._shortWeekdaysParse[i] = this.weekdaysShort( - mom, - '' - ).toLocaleLowerCase(); - this._weekdaysParse[i] = this.weekdays(mom, '').toLocaleLowerCase(); - } + this._weekdaysParse = []; + this._shortWeekdaysParse = []; + this._minWeekdaysParse = []; + for (i = 0; i < 7; ++i) { + mom = createUTC([2e3, 1]).day(i); + this._minWeekdaysParse[i] = this.weekdaysMin( + mom, + "" + ).toLocaleLowerCase(); + this._shortWeekdaysParse[i] = this.weekdaysShort( + mom, + "" + ).toLocaleLowerCase(); + this._weekdaysParse[i] = this.weekdays(mom, "").toLocaleLowerCase(); + } } - if (strict) { - if (format === 'dddd') { - ii = indexOf.call(this._weekdaysParse, llc); - return ii !== -1 ? ii : null; - } else if (format === 'ddd') { - ii = indexOf.call(this._shortWeekdaysParse, llc); - return ii !== -1 ? ii : null; - } else { - ii = indexOf.call(this._minWeekdaysParse, llc); - return ii !== -1 ? ii : null; - } + if (format2 === "dddd") { + ii = indexOf.call(this._weekdaysParse, llc); + return ii !== -1 ? ii : null; + } else if (format2 === "ddd") { + ii = indexOf.call(this._shortWeekdaysParse, llc); + return ii !== -1 ? ii : null; + } else { + ii = indexOf.call(this._minWeekdaysParse, llc); + return ii !== -1 ? ii : null; + } } else { - if (format === 'dddd') { - ii = indexOf.call(this._weekdaysParse, llc); - if (ii !== -1) { - return ii; - } - ii = indexOf.call(this._shortWeekdaysParse, llc); - if (ii !== -1) { - return ii; - } - ii = indexOf.call(this._minWeekdaysParse, llc); - return ii !== -1 ? ii : null; - } else if (format === 'ddd') { - ii = indexOf.call(this._shortWeekdaysParse, llc); - if (ii !== -1) { - return ii; - } - ii = indexOf.call(this._weekdaysParse, llc); - if (ii !== -1) { - return ii; - } - ii = indexOf.call(this._minWeekdaysParse, llc); - return ii !== -1 ? ii : null; - } else { - ii = indexOf.call(this._minWeekdaysParse, llc); - if (ii !== -1) { - return ii; - } - ii = indexOf.call(this._weekdaysParse, llc); - if (ii !== -1) { - return ii; - } - ii = indexOf.call(this._shortWeekdaysParse, llc); - return ii !== -1 ? ii : null; + if (format2 === "dddd") { + ii = indexOf.call(this._weekdaysParse, llc); + if (ii !== -1) { + return ii; } + ii = indexOf.call(this._shortWeekdaysParse, llc); + if (ii !== -1) { + return ii; + } + ii = indexOf.call(this._minWeekdaysParse, llc); + return ii !== -1 ? ii : null; + } else if (format2 === "ddd") { + ii = indexOf.call(this._shortWeekdaysParse, llc); + if (ii !== -1) { + return ii; + } + ii = indexOf.call(this._weekdaysParse, llc); + if (ii !== -1) { + return ii; + } + ii = indexOf.call(this._minWeekdaysParse, llc); + return ii !== -1 ? ii : null; + } else { + ii = indexOf.call(this._minWeekdaysParse, llc); + if (ii !== -1) { + return ii; + } + ii = indexOf.call(this._weekdaysParse, llc); + if (ii !== -1) { + return ii; + } + ii = indexOf.call(this._shortWeekdaysParse, llc); + return ii !== -1 ? ii : null; + } } - } - - function localeWeekdaysParse(weekdayName, format, strict) { + } + function localeWeekdaysParse(weekdayName, format2, strict) { var i, mom, regex; - if (this._weekdaysParseExact) { - return handleStrictParse$1.call(this, weekdayName, format, strict); + return handleStrictParse$1.call(this, weekdayName, format2, strict); } - if (!this._weekdaysParse) { - this._weekdaysParse = []; - this._minWeekdaysParse = []; - this._shortWeekdaysParse = []; - this._fullWeekdaysParse = []; + this._weekdaysParse = []; + this._minWeekdaysParse = []; + this._shortWeekdaysParse = []; + this._fullWeekdaysParse = []; } - for (i = 0; i < 7; i++) { - // make the regex if we don't have it already - - mom = createUTC([2000, 1]).day(i); - if (strict && !this._fullWeekdaysParse[i]) { - this._fullWeekdaysParse[i] = new RegExp( - '^' + this.weekdays(mom, '').replace('.', '\\.?') + '$', - 'i' - ); - this._shortWeekdaysParse[i] = new RegExp( - '^' + this.weekdaysShort(mom, '').replace('.', '\\.?') + '$', - 'i' - ); - this._minWeekdaysParse[i] = new RegExp( - '^' + this.weekdaysMin(mom, '').replace('.', '\\.?') + '$', - 'i' - ); - } - if (!this._weekdaysParse[i]) { - regex = - '^' + - this.weekdays(mom, '') + - '|^' + - this.weekdaysShort(mom, '') + - '|^' + - this.weekdaysMin(mom, ''); - this._weekdaysParse[i] = new RegExp(regex.replace('.', ''), 'i'); - } - // test the regex - if ( - strict && - format === 'dddd' && - this._fullWeekdaysParse[i].test(weekdayName) - ) { - return i; - } else if ( - strict && - format === 'ddd' && - this._shortWeekdaysParse[i].test(weekdayName) - ) { - return i; - } else if ( - strict && - format === 'dd' && - this._minWeekdaysParse[i].test(weekdayName) - ) { - return i; - } else if (!strict && this._weekdaysParse[i].test(weekdayName)) { - return i; - } + mom = createUTC([2e3, 1]).day(i); + if (strict && !this._fullWeekdaysParse[i]) { + this._fullWeekdaysParse[i] = new RegExp( + "^" + this.weekdays(mom, "").replace(".", "\\.?") + "$", + "i" + ); + this._shortWeekdaysParse[i] = new RegExp( + "^" + this.weekdaysShort(mom, "").replace(".", "\\.?") + "$", + "i" + ); + this._minWeekdaysParse[i] = new RegExp( + "^" + this.weekdaysMin(mom, "").replace(".", "\\.?") + "$", + "i" + ); + } + if (!this._weekdaysParse[i]) { + regex = "^" + this.weekdays(mom, "") + "|^" + this.weekdaysShort(mom, "") + "|^" + this.weekdaysMin(mom, ""); + this._weekdaysParse[i] = new RegExp(regex.replace(".", ""), "i"); + } + if (strict && format2 === "dddd" && this._fullWeekdaysParse[i].test(weekdayName)) { + return i; + } else if (strict && format2 === "ddd" && this._shortWeekdaysParse[i].test(weekdayName)) { + return i; + } else if (strict && format2 === "dd" && this._minWeekdaysParse[i].test(weekdayName)) { + return i; + } else if (!strict && this._weekdaysParse[i].test(weekdayName)) { + return i; + } } - } - - // MOMENTS - - function getSetDayOfWeek(input) { + } + function getSetDayOfWeek(input) { if (!this.isValid()) { - return input != null ? this : NaN; + return input != null ? this : NaN; } var day = this._isUTC ? this._d.getUTCDay() : this._d.getDay(); if (input != null) { - input = parseWeekday(input, this.localeData()); - return this.add(input - day, 'd'); + input = parseWeekday2(input, this.localeData()); + return this.add(input - day, "d"); } else { - return day; + return day; } - } - - function getSetLocaleDayOfWeek(input) { + } + function getSetLocaleDayOfWeek(input) { if (!this.isValid()) { - return input != null ? this : NaN; + return input != null ? this : NaN; } var weekday = (this.day() + 7 - this.localeData()._week.dow) % 7; - return input == null ? weekday : this.add(input - weekday, 'd'); - } - - function getSetISODayOfWeek(input) { + return input == null ? weekday : this.add(input - weekday, "d"); + } + function getSetISODayOfWeek(input) { if (!this.isValid()) { - return input != null ? this : NaN; + return input != null ? this : NaN; } - - // behaves the same as moment#day except - // as a getter, returns 7 instead of 0 (1-7 range instead of 0-6) - // as a setter, sunday should belong to the previous week. - if (input != null) { - var weekday = parseIsoWeekday(input, this.localeData()); - return this.day(this.day() % 7 ? weekday : weekday - 7); + var weekday = parseIsoWeekday(input, this.localeData()); + return this.day(this.day() % 7 ? weekday : weekday - 7); } else { - return this.day() || 7; + return this.day() || 7; } - } - - function weekdaysRegex(isStrict) { + } + function weekdaysRegex(isStrict) { if (this._weekdaysParseExact) { - if (!hasOwnProp(this, '_weekdaysRegex')) { - computeWeekdaysParse.call(this); - } - if (isStrict) { - return this._weekdaysStrictRegex; - } else { - return this._weekdaysRegex; - } + if (!hasOwnProp(this, "_weekdaysRegex")) { + computeWeekdaysParse.call(this); + } + if (isStrict) { + return this._weekdaysStrictRegex; + } else { + return this._weekdaysRegex; + } } else { - if (!hasOwnProp(this, '_weekdaysRegex')) { - this._weekdaysRegex = defaultWeekdaysRegex; - } - return this._weekdaysStrictRegex && isStrict - ? this._weekdaysStrictRegex - : this._weekdaysRegex; + if (!hasOwnProp(this, "_weekdaysRegex")) { + this._weekdaysRegex = defaultWeekdaysRegex; + } + return this._weekdaysStrictRegex && isStrict ? this._weekdaysStrictRegex : this._weekdaysRegex; } - } - - function weekdaysShortRegex(isStrict) { + } + function weekdaysShortRegex(isStrict) { if (this._weekdaysParseExact) { - if (!hasOwnProp(this, '_weekdaysRegex')) { - computeWeekdaysParse.call(this); - } - if (isStrict) { - return this._weekdaysShortStrictRegex; - } else { - return this._weekdaysShortRegex; - } + if (!hasOwnProp(this, "_weekdaysRegex")) { + computeWeekdaysParse.call(this); + } + if (isStrict) { + return this._weekdaysShortStrictRegex; + } else { + return this._weekdaysShortRegex; + } } else { - if (!hasOwnProp(this, '_weekdaysShortRegex')) { - this._weekdaysShortRegex = defaultWeekdaysShortRegex; - } - return this._weekdaysShortStrictRegex && isStrict - ? this._weekdaysShortStrictRegex - : this._weekdaysShortRegex; + if (!hasOwnProp(this, "_weekdaysShortRegex")) { + this._weekdaysShortRegex = defaultWeekdaysShortRegex; + } + return this._weekdaysShortStrictRegex && isStrict ? this._weekdaysShortStrictRegex : this._weekdaysShortRegex; } - } - - function weekdaysMinRegex(isStrict) { + } + function weekdaysMinRegex(isStrict) { if (this._weekdaysParseExact) { - if (!hasOwnProp(this, '_weekdaysRegex')) { - computeWeekdaysParse.call(this); - } - if (isStrict) { - return this._weekdaysMinStrictRegex; - } else { - return this._weekdaysMinRegex; - } + if (!hasOwnProp(this, "_weekdaysRegex")) { + computeWeekdaysParse.call(this); + } + if (isStrict) { + return this._weekdaysMinStrictRegex; + } else { + return this._weekdaysMinRegex; + } } else { - if (!hasOwnProp(this, '_weekdaysMinRegex')) { - this._weekdaysMinRegex = defaultWeekdaysMinRegex; - } - return this._weekdaysMinStrictRegex && isStrict - ? this._weekdaysMinStrictRegex - : this._weekdaysMinRegex; + if (!hasOwnProp(this, "_weekdaysMinRegex")) { + this._weekdaysMinRegex = defaultWeekdaysMinRegex; + } + return this._weekdaysMinStrictRegex && isStrict ? this._weekdaysMinStrictRegex : this._weekdaysMinRegex; } - } - - function computeWeekdaysParse() { + } + function computeWeekdaysParse() { function cmpLenRev(a, b) { - return b.length - a.length; + return b.length - a.length; } - - var minPieces = [], - shortPieces = [], - longPieces = [], - mixedPieces = [], - i, - mom, - minp, - shortp, - longp; + var minPieces = [], shortPieces = [], longPieces = [], mixedPieces = [], i, mom, minp, shortp, longp; for (i = 0; i < 7; i++) { - // make the regex if we don't have it already - mom = createUTC([2000, 1]).day(i); - minp = regexEscape(this.weekdaysMin(mom, '')); - shortp = regexEscape(this.weekdaysShort(mom, '')); - longp = regexEscape(this.weekdays(mom, '')); - minPieces.push(minp); - shortPieces.push(shortp); - longPieces.push(longp); - mixedPieces.push(minp); - mixedPieces.push(shortp); - mixedPieces.push(longp); - } - // Sorting makes sure if one weekday (or abbr) is a prefix of another it - // will match the longer piece. + mom = createUTC([2e3, 1]).day(i); + minp = regexEscape(this.weekdaysMin(mom, "")); + shortp = regexEscape(this.weekdaysShort(mom, "")); + longp = regexEscape(this.weekdays(mom, "")); + minPieces.push(minp); + shortPieces.push(shortp); + longPieces.push(longp); + mixedPieces.push(minp); + mixedPieces.push(shortp); + mixedPieces.push(longp); + } minPieces.sort(cmpLenRev); shortPieces.sort(cmpLenRev); longPieces.sort(cmpLenRev); mixedPieces.sort(cmpLenRev); - - this._weekdaysRegex = new RegExp('^(' + mixedPieces.join('|') + ')', 'i'); + this._weekdaysRegex = new RegExp("^(" + mixedPieces.join("|") + ")", "i"); this._weekdaysShortRegex = this._weekdaysRegex; this._weekdaysMinRegex = this._weekdaysRegex; - this._weekdaysStrictRegex = new RegExp( - '^(' + longPieces.join('|') + ')', - 'i' + "^(" + longPieces.join("|") + ")", + "i" ); this._weekdaysShortStrictRegex = new RegExp( - '^(' + shortPieces.join('|') + ')', - 'i' + "^(" + shortPieces.join("|") + ")", + "i" ); this._weekdaysMinStrictRegex = new RegExp( - '^(' + minPieces.join('|') + ')', - 'i' + "^(" + minPieces.join("|") + ")", + "i" ); - } - - // FORMATTING - - function hFormat() { + } + function hFormat() { return this.hours() % 12 || 12; - } - - function kFormat() { + } + function kFormat() { return this.hours() || 24; - } - - addFormatToken('H', ['HH', 2], 0, 'hour'); - addFormatToken('h', ['hh', 2], 0, hFormat); - addFormatToken('k', ['kk', 2], 0, kFormat); - - addFormatToken('hmm', 0, 0, function () { - return '' + hFormat.apply(this) + zeroFill(this.minutes(), 2); - }); - - addFormatToken('hmmss', 0, 0, function () { - return ( - '' + - hFormat.apply(this) + - zeroFill(this.minutes(), 2) + - zeroFill(this.seconds(), 2) - ); - }); - - addFormatToken('Hmm', 0, 0, function () { - return '' + this.hours() + zeroFill(this.minutes(), 2); - }); - - addFormatToken('Hmmss', 0, 0, function () { - return ( - '' + - this.hours() + - zeroFill(this.minutes(), 2) + - zeroFill(this.seconds(), 2) - ); - }); - - function meridiem(token, lowercase) { - addFormatToken(token, 0, 0, function () { - return this.localeData().meridiem( - this.hours(), - this.minutes(), - lowercase - ); + } + addFormatToken("H", ["HH", 2], 0, "hour"); + addFormatToken("h", ["hh", 2], 0, hFormat); + addFormatToken("k", ["kk", 2], 0, kFormat); + addFormatToken("hmm", 0, 0, function() { + return "" + hFormat.apply(this) + zeroFill(this.minutes(), 2); + }); + addFormatToken("hmmss", 0, 0, function() { + return "" + hFormat.apply(this) + zeroFill(this.minutes(), 2) + zeroFill(this.seconds(), 2); + }); + addFormatToken("Hmm", 0, 0, function() { + return "" + this.hours() + zeroFill(this.minutes(), 2); + }); + addFormatToken("Hmmss", 0, 0, function() { + return "" + this.hours() + zeroFill(this.minutes(), 2) + zeroFill(this.seconds(), 2); + }); + function meridiem(token2, lowercase) { + addFormatToken(token2, 0, 0, function() { + return this.localeData().meridiem( + this.hours(), + this.minutes(), + lowercase + ); }); - } - - meridiem('a', true); - meridiem('A', false); - - // ALIASES - - addUnitAlias('hour', 'h'); - - // PRIORITY - addUnitPriority('hour', 13); - - // PARSING - - function matchMeridiem(isStrict, locale) { - return locale._meridiemParse; - } - - addRegexToken('a', matchMeridiem); - addRegexToken('A', matchMeridiem); - addRegexToken('H', match1to2); - addRegexToken('h', match1to2); - addRegexToken('k', match1to2); - addRegexToken('HH', match1to2, match2); - addRegexToken('hh', match1to2, match2); - addRegexToken('kk', match1to2, match2); - - addRegexToken('hmm', match3to4); - addRegexToken('hmmss', match5to6); - addRegexToken('Hmm', match3to4); - addRegexToken('Hmmss', match5to6); - - addParseToken(['H', 'HH'], HOUR); - addParseToken(['k', 'kk'], function (input, array, config) { + } + meridiem("a", true); + meridiem("A", false); + addUnitAlias("hour", "h"); + addUnitPriority("hour", 13); + function matchMeridiem(isStrict, locale2) { + return locale2._meridiemParse; + } + addRegexToken("a", matchMeridiem); + addRegexToken("A", matchMeridiem); + addRegexToken("H", match1to2); + addRegexToken("h", match1to2); + addRegexToken("k", match1to2); + addRegexToken("HH", match1to2, match2); + addRegexToken("hh", match1to2, match2); + addRegexToken("kk", match1to2, match2); + addRegexToken("hmm", match3to4); + addRegexToken("hmmss", match5to6); + addRegexToken("Hmm", match3to4); + addRegexToken("Hmmss", match5to6); + addParseToken(["H", "HH"], HOUR); + addParseToken(["k", "kk"], function(input, array, config) { var kInput = toInt(input); array[HOUR] = kInput === 24 ? 0 : kInput; - }); - addParseToken(['a', 'A'], function (input, array, config) { + }); + addParseToken(["a", "A"], function(input, array, config) { config._isPm = config._locale.isPM(input); config._meridiem = input; - }); - addParseToken(['h', 'hh'], function (input, array, config) { + }); + addParseToken(["h", "hh"], function(input, array, config) { array[HOUR] = toInt(input); getParsingFlags(config).bigHour = true; - }); - addParseToken('hmm', function (input, array, config) { + }); + addParseToken("hmm", function(input, array, config) { var pos = input.length - 2; array[HOUR] = toInt(input.substr(0, pos)); array[MINUTE] = toInt(input.substr(pos)); getParsingFlags(config).bigHour = true; - }); - addParseToken('hmmss', function (input, array, config) { - var pos1 = input.length - 4, - pos2 = input.length - 2; + }); + addParseToken("hmmss", function(input, array, config) { + var pos1 = input.length - 4, pos2 = input.length - 2; array[HOUR] = toInt(input.substr(0, pos1)); array[MINUTE] = toInt(input.substr(pos1, 2)); array[SECOND] = toInt(input.substr(pos2)); getParsingFlags(config).bigHour = true; - }); - addParseToken('Hmm', function (input, array, config) { + }); + addParseToken("Hmm", function(input, array, config) { var pos = input.length - 2; array[HOUR] = toInt(input.substr(0, pos)); array[MINUTE] = toInt(input.substr(pos)); - }); - addParseToken('Hmmss', function (input, array, config) { - var pos1 = input.length - 4, - pos2 = input.length - 2; + }); + addParseToken("Hmmss", function(input, array, config) { + var pos1 = input.length - 4, pos2 = input.length - 2; array[HOUR] = toInt(input.substr(0, pos1)); array[MINUTE] = toInt(input.substr(pos1, 2)); array[SECOND] = toInt(input.substr(pos2)); - }); - - // LOCALES - - function localeIsPM(input) { - // IE8 Quirks Mode & IE7 Standards Mode do not allow accessing strings like arrays - // Using charAt should be more compatible. - return (input + '').toLowerCase().charAt(0) === 'p'; - } - - var defaultLocaleMeridiemParse = /[ap]\.?m?\.?/i, - // Setting the hour should keep the time, because the user explicitly - // specified which hour they want. So trying to maintain the same hour (in - // a new timezone) makes sense. Adding/subtracting hours does not follow - // this rule. - getSetHour = makeGetSet('Hours', true); - - function localeMeridiem(hours, minutes, isLower) { - if (hours > 11) { - return isLower ? 'pm' : 'PM'; + }); + function localeIsPM(input) { + return (input + "").toLowerCase().charAt(0) === "p"; + } + var defaultLocaleMeridiemParse = /[ap]\.?m?\.?/i, getSetHour = makeGetSet("Hours", true); + function localeMeridiem(hours2, minutes2, isLower) { + if (hours2 > 11) { + return isLower ? "pm" : "PM"; } else { - return isLower ? 'am' : 'AM'; + return isLower ? "am" : "AM"; } - } - - var baseConfig = { + } + var baseConfig = { calendar: defaultCalendar, longDateFormat: defaultLongDateFormat, invalidDate: defaultInvalidDate, ordinal: defaultOrdinal, dayOfMonthOrdinalParse: defaultDayOfMonthOrdinalParse, relativeTime: defaultRelativeTime, - months: defaultLocaleMonths, monthsShort: defaultLocaleMonthsShort, - week: defaultLocaleWeek, - weekdays: defaultLocaleWeekdays, weekdaysMin: defaultLocaleWeekdaysMin, weekdaysShort: defaultLocaleWeekdaysShort, - - meridiemParse: defaultLocaleMeridiemParse, - }; - - // internal storage for locale config files - var locales = {}, - localeFamilies = {}, - globalLocale; - - function commonPrefix(arr1, arr2) { - var i, - minl = Math.min(arr1.length, arr2.length); + meridiemParse: defaultLocaleMeridiemParse + }; + var locales = {}, localeFamilies = {}, globalLocale; + function commonPrefix(arr1, arr2) { + var i, minl = Math.min(arr1.length, arr2.length); for (i = 0; i < minl; i += 1) { - if (arr1[i] !== arr2[i]) { - return i; - } + if (arr1[i] !== arr2[i]) { + return i; + } } return minl; - } - - function normalizeLocale(key) { - return key ? key.toLowerCase().replace('_', '-') : key; - } - - // pick the locale from the array - // try ['en-au', 'en-gb'] as 'en-au', 'en-gb', 'en', as in move through the list trying each - // substring from most specific to least, but move to the next array item if it's a more specific variant than the current root - function chooseLocale(names) { - var i = 0, - j, - next, - locale, - split; - + } + function normalizeLocale(key) { + return key ? key.toLowerCase().replace("_", "-") : key; + } + function chooseLocale(names) { + var i = 0, j, next, locale2, split2; while (i < names.length) { - split = normalizeLocale(names[i]).split('-'); - j = split.length; - next = normalizeLocale(names[i + 1]); - next = next ? next.split('-') : null; - while (j > 0) { - locale = loadLocale(split.slice(0, j).join('-')); - if (locale) { - return locale; - } - if ( - next && - next.length >= j && - commonPrefix(split, next) >= j - 1 - ) { - //the next array item is better than a shallower substring of this one - break; - } - j--; + split2 = normalizeLocale(names[i]).split("-"); + j = split2.length; + next = normalizeLocale(names[i + 1]); + next = next ? next.split("-") : null; + while (j > 0) { + locale2 = loadLocale(split2.slice(0, j).join("-")); + if (locale2) { + return locale2; + } + if (next && next.length >= j && commonPrefix(split2, next) >= j - 1) { + break; } - i++; + j--; + } + i++; } return globalLocale; - } - - function loadLocale(name) { - var oldLocale = null, - aliasedRequire; - // TODO: Find a better way to register and load all the locales in Node - if ( - locales[name] === undefined && - 'object' !== 'undefined' && - module && - module.exports - ) { - try { - oldLocale = globalLocale._abbr; - aliasedRequire = commonjsRequire; - aliasedRequire('./locale/' + name); - getSetGlobalLocale(oldLocale); - } catch (e) { - // mark as not found to avoid repeating expensive file require call causing high CPU - // when trying to find en-US, en_US, en-us for every format call - locales[name] = null; // null means not found - } + } + function isLocaleNameSane(name) { + return name.match("^[^/\\\\]*$") != null; + } + function loadLocale(name) { + var oldLocale = null, aliasedRequire; + if (locales[name] === void 0 && typeof module2 !== "undefined" && module2 && module2.exports && isLocaleNameSane(name)) { + try { + oldLocale = globalLocale._abbr; + aliasedRequire = require; + aliasedRequire("./locale/" + name); + getSetGlobalLocale(oldLocale); + } catch (e) { + locales[name] = null; + } } return locales[name]; - } - - // This function will load locale and then set the global locale. If - // no arguments are passed in, it will simply return the current global - // locale key. - function getSetGlobalLocale(key, values) { + } + function getSetGlobalLocale(key, values) { var data; if (key) { - if (isUndefined(values)) { - data = getLocale(key); - } else { - data = defineLocale(key, values); - } - - if (data) { - // moment.duration._locale = moment._locale = data; - globalLocale = data; - } else { - if (typeof console !== 'undefined' && console.warn) { - //warn user if arguments are passed but the locale could not be set - console.warn( - 'Locale ' + key + ' not found. Did you forget to load it?' - ); - } + if (isUndefined(values)) { + data = getLocale(key); + } else { + data = defineLocale(key, values); + } + if (data) { + globalLocale = data; + } else { + if (typeof console !== "undefined" && console.warn) { + console.warn( + "Locale " + key + " not found. Did you forget to load it?" + ); } + } } - return globalLocale._abbr; - } - - function defineLocale(name, config) { + } + function defineLocale(name, config) { if (config !== null) { - var locale, - parentConfig = baseConfig; - config.abbr = name; - if (locales[name] != null) { - deprecateSimple( - '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.' - ); - parentConfig = locales[name]._config; - } else if (config.parentLocale != null) { - if (locales[config.parentLocale] != null) { - parentConfig = locales[config.parentLocale]._config; - } else { - locale = loadLocale(config.parentLocale); - if (locale != null) { - parentConfig = locale._config; - } else { - if (!localeFamilies[config.parentLocale]) { - localeFamilies[config.parentLocale] = []; - } - localeFamilies[config.parentLocale].push({ - name: name, - config: config, - }); - return null; - } + var locale2, parentConfig = baseConfig; + config.abbr = name; + if (locales[name] != null) { + deprecateSimple( + "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." + ); + parentConfig = locales[name]._config; + } else if (config.parentLocale != null) { + if (locales[config.parentLocale] != null) { + parentConfig = locales[config.parentLocale]._config; + } else { + locale2 = loadLocale(config.parentLocale); + if (locale2 != null) { + parentConfig = locale2._config; + } else { + if (!localeFamilies[config.parentLocale]) { + localeFamilies[config.parentLocale] = []; } - } - locales[name] = new Locale(mergeConfigs(parentConfig, config)); - - if (localeFamilies[name]) { - localeFamilies[name].forEach(function (x) { - defineLocale(x.name, x.config); + localeFamilies[config.parentLocale].push({ + name, + config }); + return null; + } } - - // backwards compat for now: also set the locale - // make sure we set the locale AFTER all child locales have been - // created, so we won't end up with the child locale set. - getSetGlobalLocale(name); - - return locales[name]; + } + locales[name] = new Locale(mergeConfigs(parentConfig, config)); + if (localeFamilies[name]) { + localeFamilies[name].forEach(function(x) { + defineLocale(x.name, x.config); + }); + } + getSetGlobalLocale(name); + return locales[name]; } else { - // useful for testing - delete locales[name]; - return null; + delete locales[name]; + return null; } - } - - function updateLocale(name, config) { + } + function updateLocale(name, config) { if (config != null) { - var locale, - tmpLocale, - parentConfig = baseConfig; - - if (locales[name] != null && locales[name].parentLocale != null) { - // Update existing child locale in-place to avoid memory-leaks - locales[name].set(mergeConfigs(locales[name]._config, config)); - } else { - // MERGE - tmpLocale = loadLocale(name); - if (tmpLocale != null) { - parentConfig = tmpLocale._config; - } - config = mergeConfigs(parentConfig, config); - if (tmpLocale == null) { - // updateLocale is called for creating a new locale - // Set abbr so it will have a name (getters return - // undefined otherwise). - config.abbr = name; - } - locale = new Locale(config); - locale.parentLocale = locales[name]; - locales[name] = locale; + var locale2, tmpLocale, parentConfig = baseConfig; + if (locales[name] != null && locales[name].parentLocale != null) { + locales[name].set(mergeConfigs(locales[name]._config, config)); + } else { + tmpLocale = loadLocale(name); + if (tmpLocale != null) { + parentConfig = tmpLocale._config; } - - // backwards compat for now: also set the locale - getSetGlobalLocale(name); + config = mergeConfigs(parentConfig, config); + if (tmpLocale == null) { + config.abbr = name; + } + locale2 = new Locale(config); + locale2.parentLocale = locales[name]; + locales[name] = locale2; + } + getSetGlobalLocale(name); } else { - // pass null for config to unupdate, useful for tests - if (locales[name] != null) { - if (locales[name].parentLocale != null) { - locales[name] = locales[name].parentLocale; - if (name === getSetGlobalLocale()) { - getSetGlobalLocale(name); - } - } else if (locales[name] != null) { - delete locales[name]; - } + if (locales[name] != null) { + if (locales[name].parentLocale != null) { + locales[name] = locales[name].parentLocale; + if (name === getSetGlobalLocale()) { + getSetGlobalLocale(name); + } + } else if (locales[name] != null) { + delete locales[name]; } + } } return locales[name]; - } - - // returns locale data - function getLocale(key) { - var locale; - + } + function getLocale(key) { + var locale2; if (key && key._locale && key._locale._abbr) { - key = key._locale._abbr; + key = key._locale._abbr; } - if (!key) { - return globalLocale; + return globalLocale; } - - if (!isArray(key)) { - //short-circuit everything else - locale = loadLocale(key); - if (locale) { - return locale; - } - key = [key]; + if (!isArray2(key)) { + locale2 = loadLocale(key); + if (locale2) { + return locale2; + } + key = [key]; } - return chooseLocale(key); - } - - function listLocales() { + } + function listLocales() { return keys(locales); - } - - function checkOverflow(m) { - var overflow, - a = m._a; - + } + function checkOverflow(m) { + var overflow, a = m._a; if (a && getParsingFlags(m).overflow === -2) { - overflow = - a[MONTH] < 0 || a[MONTH] > 11 - ? MONTH - : a[DATE] < 1 || a[DATE] > daysInMonth(a[YEAR], a[MONTH]) - ? DATE - : a[HOUR] < 0 || - a[HOUR] > 24 || - (a[HOUR] === 24 && - (a[MINUTE] !== 0 || - a[SECOND] !== 0 || - a[MILLISECOND] !== 0)) - ? HOUR - : a[MINUTE] < 0 || a[MINUTE] > 59 - ? MINUTE - : a[SECOND] < 0 || a[SECOND] > 59 - ? SECOND - : a[MILLISECOND] < 0 || a[MILLISECOND] > 999 - ? MILLISECOND - : -1; - - if ( - getParsingFlags(m)._overflowDayOfYear && - (overflow < YEAR || overflow > DATE) - ) { - overflow = DATE; - } - if (getParsingFlags(m)._overflowWeeks && overflow === -1) { - overflow = WEEK; - } - if (getParsingFlags(m)._overflowWeekday && overflow === -1) { - overflow = WEEKDAY; - } - - getParsingFlags(m).overflow = overflow; + overflow = a[MONTH] < 0 || a[MONTH] > 11 ? MONTH : a[DATE] < 1 || a[DATE] > daysInMonth(a[YEAR], a[MONTH]) ? DATE : a[HOUR] < 0 || a[HOUR] > 24 || a[HOUR] === 24 && (a[MINUTE] !== 0 || a[SECOND] !== 0 || a[MILLISECOND] !== 0) ? HOUR : a[MINUTE] < 0 || a[MINUTE] > 59 ? MINUTE : a[SECOND] < 0 || a[SECOND] > 59 ? SECOND : a[MILLISECOND] < 0 || a[MILLISECOND] > 999 ? MILLISECOND : -1; + if (getParsingFlags(m)._overflowDayOfYear && (overflow < YEAR || overflow > DATE)) { + overflow = DATE; + } + if (getParsingFlags(m)._overflowWeeks && overflow === -1) { + overflow = WEEK; + } + if (getParsingFlags(m)._overflowWeekday && overflow === -1) { + overflow = WEEKDAY; + } + getParsingFlags(m).overflow = overflow; } - return m; - } - - // iso 8601 regex - // 0000-00-00 0000-W00 or 0000-W00-0 + T + 00 or 00:00 or 00:00:00 or 00:00:00.000 + +00:00 or +0000 or +00) - var extendedIsoRegex = /^\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)?)?$/, - basicIsoRegex = /^\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)?)?$/, - tzRegex = /Z|[+-]\d\d(?::?\d\d)?/, - isoDates = [ - ['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/, false], - ['YYYY-DDD', /\d{4}-\d{3}/], - ['YYYY-MM', /\d{4}-\d\d/, false], - ['YYYYYYMMDD', /[+-]\d{10}/], - ['YYYYMMDD', /\d{8}/], - ['GGGG[W]WWE', /\d{4}W\d{3}/], - ['GGGG[W]WW', /\d{4}W\d{2}/, false], - ['YYYYDDD', /\d{7}/], - ['YYYYMM', /\d{6}/, false], - ['YYYY', /\d{4}/, false], - ], - // iso time formats and regexes - isoTimes = [ - ['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/], - ], - aspNetJsonRegex = /^\/?Date\((-?\d+)/i, - // RFC 2822 regex: For details see https://tools.ietf.org/html/rfc2822#section-3.3 - rfc2822 = /^(?:(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}))$/, - obsOffsets = { - 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, - }; - - // date from iso format - function configFromISO(config) { - var i, - l, - string = config._i, - match = extendedIsoRegex.exec(string) || basicIsoRegex.exec(string), - allowTime, - dateFormat, - timeFormat, - tzFormat; - + } + var extendedIsoRegex = /^\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)?)?$/, basicIsoRegex = /^\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)?)?$/, tzRegex = /Z|[+-]\d\d(?::?\d\d)?/, isoDates = [ + ["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/, false], + ["YYYY-DDD", /\d{4}-\d{3}/], + ["YYYY-MM", /\d{4}-\d\d/, false], + ["YYYYYYMMDD", /[+-]\d{10}/], + ["YYYYMMDD", /\d{8}/], + ["GGGG[W]WWE", /\d{4}W\d{3}/], + ["GGGG[W]WW", /\d{4}W\d{2}/, false], + ["YYYYDDD", /\d{7}/], + ["YYYYMM", /\d{6}/, false], + ["YYYY", /\d{4}/, false] + ], isoTimes = [ + ["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/] + ], aspNetJsonRegex = /^\/?Date\((-?\d+)/i, rfc2822 = /^(?:(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}))$/, obsOffsets = { + 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 configFromISO(config) { + var i, l, string = config._i, match = extendedIsoRegex.exec(string) || basicIsoRegex.exec(string), allowTime, dateFormat, timeFormat, tzFormat, isoDatesLen = isoDates.length, isoTimesLen = isoTimes.length; if (match) { - getParsingFlags(config).iso = true; - - for (i = 0, l = isoDates.length; i < l; i++) { - if (isoDates[i][1].exec(match[1])) { - dateFormat = isoDates[i][0]; - allowTime = isoDates[i][2] !== false; - break; - } + getParsingFlags(config).iso = true; + for (i = 0, l = isoDatesLen; i < l; i++) { + if (isoDates[i][1].exec(match[1])) { + dateFormat = isoDates[i][0]; + allowTime = isoDates[i][2] !== false; + break; } - if (dateFormat == null) { - config._isValid = false; - return; - } - if (match[3]) { - for (i = 0, l = isoTimes.length; i < l; i++) { - if (isoTimes[i][1].exec(match[3])) { - // match[2] should be 'T' or space - timeFormat = (match[2] || ' ') + isoTimes[i][0]; - break; - } - } - if (timeFormat == null) { - config._isValid = false; - return; - } + } + if (dateFormat == null) { + config._isValid = false; + return; + } + if (match[3]) { + for (i = 0, l = isoTimesLen; i < l; i++) { + if (isoTimes[i][1].exec(match[3])) { + timeFormat = (match[2] || " ") + isoTimes[i][0]; + break; + } } - if (!allowTime && timeFormat != null) { - config._isValid = false; - return; + if (timeFormat == null) { + config._isValid = false; + return; } - if (match[4]) { - if (tzRegex.exec(match[4])) { - tzFormat = 'Z'; - } else { - config._isValid = false; - return; - } + } + if (!allowTime && timeFormat != null) { + config._isValid = false; + return; + } + if (match[4]) { + if (tzRegex.exec(match[4])) { + tzFormat = "Z"; + } else { + config._isValid = false; + return; } - config._f = dateFormat + (timeFormat || '') + (tzFormat || ''); - configFromStringAndFormat(config); + } + config._f = dateFormat + (timeFormat || "") + (tzFormat || ""); + configFromStringAndFormat(config); } else { - config._isValid = false; + config._isValid = false; } - } - - function extractFromRFC2822Strings( - yearStr, - monthStr, - dayStr, - hourStr, - minuteStr, - secondStr - ) { + } + function extractFromRFC2822Strings(yearStr, monthStr, dayStr, hourStr, minuteStr, secondStr) { var result = [ - untruncateYear(yearStr), - defaultLocaleMonthsShort.indexOf(monthStr), - parseInt(dayStr, 10), - parseInt(hourStr, 10), - parseInt(minuteStr, 10), + untruncateYear(yearStr), + defaultLocaleMonthsShort.indexOf(monthStr), + parseInt(dayStr, 10), + parseInt(hourStr, 10), + parseInt(minuteStr, 10) ]; - if (secondStr) { - result.push(parseInt(secondStr, 10)); + result.push(parseInt(secondStr, 10)); } - return result; - } - - function untruncateYear(yearStr) { + } + function untruncateYear(yearStr) { var year = parseInt(yearStr, 10); if (year <= 49) { - return 2000 + year; + return 2e3 + year; } else if (year <= 999) { - return 1900 + year; + return 1900 + year; } return year; - } - - function preprocessRFC2822(s) { - // Remove comments and folding whitespace and replace multiple-spaces with a single space - return s - .replace(/\([^)]*\)|[\n\t]/g, ' ') - .replace(/(\s\s+)/g, ' ') - .replace(/^\s\s*/, '') - .replace(/\s\s*$/, ''); - } - - function checkWeekday(weekdayStr, parsedInput, config) { + } + function preprocessRFC2822(s) { + return s.replace(/\([^()]*\)|[\n\t]/g, " ").replace(/(\s\s+)/g, " ").replace(/^\s\s*/, "").replace(/\s\s*$/, ""); + } + function checkWeekday(weekdayStr, parsedInput, config) { if (weekdayStr) { - // TODO: Replace the vanilla JS Date object with an independent day-of-week check. - var weekdayProvided = defaultLocaleWeekdaysShort.indexOf(weekdayStr), - weekdayActual = new Date( - parsedInput[0], - parsedInput[1], - parsedInput[2] - ).getDay(); - if (weekdayProvided !== weekdayActual) { - getParsingFlags(config).weekdayMismatch = true; - config._isValid = false; - return false; - } + var weekdayProvided = defaultLocaleWeekdaysShort.indexOf(weekdayStr), weekdayActual = new Date( + parsedInput[0], + parsedInput[1], + parsedInput[2] + ).getDay(); + if (weekdayProvided !== weekdayActual) { + getParsingFlags(config).weekdayMismatch = true; + config._isValid = false; + return false; + } } return true; - } - - function calculateOffset(obsOffset, militaryOffset, numOffset) { + } + function calculateOffset(obsOffset, militaryOffset, numOffset) { if (obsOffset) { - return obsOffsets[obsOffset]; + return obsOffsets[obsOffset]; } else if (militaryOffset) { - // the only allowed military tz is Z - return 0; + return 0; } else { - var hm = parseInt(numOffset, 10), - m = hm % 100, - h = (hm - m) / 100; - return h * 60 + m; + var hm = parseInt(numOffset, 10), m = hm % 100, h = (hm - m) / 100; + return h * 60 + m; } - } - - // date and time from ref 2822 format - function configFromRFC2822(config) { - var match = rfc2822.exec(preprocessRFC2822(config._i)), - parsedArray; + } + function configFromRFC2822(config) { + var match = rfc2822.exec(preprocessRFC2822(config._i)), parsedArray; if (match) { - parsedArray = extractFromRFC2822Strings( - match[4], - match[3], - match[2], - match[5], - match[6], - match[7] - ); - if (!checkWeekday(match[1], parsedArray, config)) { - return; - } - - config._a = parsedArray; - config._tzm = calculateOffset(match[8], match[9], match[10]); - - config._d = createUTCDate.apply(null, config._a); - config._d.setUTCMinutes(config._d.getUTCMinutes() - config._tzm); - - getParsingFlags(config).rfc2822 = true; + parsedArray = extractFromRFC2822Strings( + match[4], + match[3], + match[2], + match[5], + match[6], + match[7] + ); + if (!checkWeekday(match[1], parsedArray, config)) { + return; + } + config._a = parsedArray; + config._tzm = calculateOffset(match[8], match[9], match[10]); + config._d = createUTCDate.apply(null, config._a); + config._d.setUTCMinutes(config._d.getUTCMinutes() - config._tzm); + getParsingFlags(config).rfc2822 = true; } else { - config._isValid = false; + config._isValid = false; } - } - - // date from 1) ASP.NET, 2) ISO, 3) RFC 2822 formats, or 4) optional fallback if parsing isn't strict - function configFromString(config) { + } + function configFromString(config) { var matched = aspNetJsonRegex.exec(config._i); if (matched !== null) { - config._d = new Date(+matched[1]); - return; + config._d = new Date(+matched[1]); + return; } - configFromISO(config); if (config._isValid === false) { - delete config._isValid; + delete config._isValid; } else { - return; + return; } - configFromRFC2822(config); if (config._isValid === false) { - delete config._isValid; + delete config._isValid; } else { - return; + return; } - if (config._strict) { - config._isValid = false; + config._isValid = false; } else { - // Final attempt, use Input Fallback - hooks.createFromInputFallback(config); + hooks.createFromInputFallback(config); } - } - - hooks.createFromInputFallback = deprecate( - 'value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), ' + - 'which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are ' + - 'discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.', - function (config) { - config._d = new Date(config._i + (config._useUTC ? ' UTC' : '')); + } + hooks.createFromInputFallback = deprecate( + "value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.", + function(config) { + config._d = new Date(config._i + (config._useUTC ? " UTC" : "")); } - ); - - // Pick the first defined of two or three arguments. - function defaults(a, b, c) { + ); + function defaults(a, b, c) { if (a != null) { - return a; + return a; } if (b != null) { - return b; + return b; } return c; - } - - function currentDateArray(config) { - // hooks is actually the exported moment object + } + function currentDateArray(config) { var nowValue = new Date(hooks.now()); if (config._useUTC) { - return [ - nowValue.getUTCFullYear(), - nowValue.getUTCMonth(), - nowValue.getUTCDate(), - ]; + return [ + nowValue.getUTCFullYear(), + nowValue.getUTCMonth(), + nowValue.getUTCDate() + ]; } return [nowValue.getFullYear(), nowValue.getMonth(), nowValue.getDate()]; - } - - // convert an array to a date. - // the array should mirror the parameters below - // note: all values past the year are optional and will default to the lowest possible value. - // [year, month, day , hour, minute, second, millisecond] - function configFromArray(config) { - var i, - date, - input = [], - currentDate, - expectedWeekday, - yearToUse; - + } + function configFromArray(config) { + var i, date, input = [], currentDate, expectedWeekday, yearToUse; if (config._d) { - return; + return; } - currentDate = currentDateArray(config); - - //compute day of the year from weeks and weekdays if (config._w && config._a[DATE] == null && config._a[MONTH] == null) { - dayOfYearFromWeekInfo(config); + dayOfYearFromWeekInfo(config); } - - //if the day of the year is set, figure out what it is if (config._dayOfYear != null) { - yearToUse = defaults(config._a[YEAR], currentDate[YEAR]); - - if ( - config._dayOfYear > daysInYear(yearToUse) || - config._dayOfYear === 0 - ) { - getParsingFlags(config)._overflowDayOfYear = true; - } - - date = createUTCDate(yearToUse, 0, config._dayOfYear); - config._a[MONTH] = date.getUTCMonth(); - config._a[DATE] = date.getUTCDate(); + yearToUse = defaults(config._a[YEAR], currentDate[YEAR]); + if (config._dayOfYear > daysInYear(yearToUse) || config._dayOfYear === 0) { + getParsingFlags(config)._overflowDayOfYear = true; + } + date = createUTCDate(yearToUse, 0, config._dayOfYear); + config._a[MONTH] = date.getUTCMonth(); + config._a[DATE] = date.getUTCDate(); } - - // Default to current date. - // * if no year, month, day of month are given, default to today - // * if day of month is given, default month and year - // * if month is given, default only year - // * if year is given, don't default anything for (i = 0; i < 3 && config._a[i] == null; ++i) { - config._a[i] = input[i] = currentDate[i]; + config._a[i] = input[i] = currentDate[i]; } - - // Zero out whatever was not defaulted, including time for (; i < 7; i++) { - config._a[i] = input[i] = - config._a[i] == null ? (i === 2 ? 1 : 0) : config._a[i]; + config._a[i] = input[i] = config._a[i] == null ? i === 2 ? 1 : 0 : config._a[i]; } - - // Check for 24:00:00.000 - if ( - config._a[HOUR] === 24 && - config._a[MINUTE] === 0 && - config._a[SECOND] === 0 && - config._a[MILLISECOND] === 0 - ) { - config._nextDay = true; - config._a[HOUR] = 0; + if (config._a[HOUR] === 24 && config._a[MINUTE] === 0 && config._a[SECOND] === 0 && config._a[MILLISECOND] === 0) { + config._nextDay = true; + config._a[HOUR] = 0; } - config._d = (config._useUTC ? createUTCDate : createDate).apply( - null, - input + null, + input ); - expectedWeekday = config._useUTC - ? config._d.getUTCDay() - : config._d.getDay(); - - // Apply timezone offset from input. The actual utcOffset can be changed - // with parseZone. + expectedWeekday = config._useUTC ? config._d.getUTCDay() : config._d.getDay(); if (config._tzm != null) { - config._d.setUTCMinutes(config._d.getUTCMinutes() - config._tzm); + config._d.setUTCMinutes(config._d.getUTCMinutes() - config._tzm); } - if (config._nextDay) { - config._a[HOUR] = 24; + config._a[HOUR] = 24; } - - // check for mismatching day of week - if ( - config._w && - typeof config._w.d !== 'undefined' && - config._w.d !== expectedWeekday - ) { - getParsingFlags(config).weekdayMismatch = true; + if (config._w && typeof config._w.d !== "undefined" && config._w.d !== expectedWeekday) { + getParsingFlags(config).weekdayMismatch = true; } - } - - function dayOfYearFromWeekInfo(config) { + } + function dayOfYearFromWeekInfo(config) { var w, weekYear, week, weekday, dow, doy, temp, weekdayOverflow, curWeek; - w = config._w; if (w.GG != null || w.W != null || w.E != null) { - dow = 1; - doy = 4; - - // TODO: We need to take the current isoWeekYear, but that depends on - // how we interpret now (local, utc, fixed offset). So create - // a now version of current config (take local/utc/offset flags, and - // create now). - weekYear = defaults( - w.GG, - config._a[YEAR], - weekOfYear(createLocal(), 1, 4).year - ); - week = defaults(w.W, 1); - weekday = defaults(w.E, 1); - if (weekday < 1 || weekday > 7) { - weekdayOverflow = true; - } + dow = 1; + doy = 4; + weekYear = defaults( + w.GG, + config._a[YEAR], + weekOfYear(createLocal(), 1, 4).year + ); + week = defaults(w.W, 1); + weekday = defaults(w.E, 1); + if (weekday < 1 || weekday > 7) { + weekdayOverflow = true; + } } else { - dow = config._locale._week.dow; - doy = config._locale._week.doy; - - curWeek = weekOfYear(createLocal(), dow, doy); - - weekYear = defaults(w.gg, config._a[YEAR], curWeek.year); - - // Default to current week. - week = defaults(w.w, curWeek.week); - - if (w.d != null) { - // weekday -- low day numbers are considered next week - weekday = w.d; - if (weekday < 0 || weekday > 6) { - weekdayOverflow = true; - } - } else if (w.e != null) { - // local weekday -- counting starts from beginning of week - weekday = w.e + dow; - if (w.e < 0 || w.e > 6) { - weekdayOverflow = true; - } - } else { - // default to beginning of week - weekday = dow; + dow = config._locale._week.dow; + doy = config._locale._week.doy; + curWeek = weekOfYear(createLocal(), dow, doy); + weekYear = defaults(w.gg, config._a[YEAR], curWeek.year); + week = defaults(w.w, curWeek.week); + if (w.d != null) { + weekday = w.d; + if (weekday < 0 || weekday > 6) { + weekdayOverflow = true; + } + } else if (w.e != null) { + weekday = w.e + dow; + if (w.e < 0 || w.e > 6) { + weekdayOverflow = true; } + } else { + weekday = dow; + } } if (week < 1 || week > weeksInYear(weekYear, dow, doy)) { - getParsingFlags(config)._overflowWeeks = true; + getParsingFlags(config)._overflowWeeks = true; } else if (weekdayOverflow != null) { - getParsingFlags(config)._overflowWeekday = true; + getParsingFlags(config)._overflowWeekday = true; } else { - temp = dayOfYearFromWeeks(weekYear, week, weekday, dow, doy); - config._a[YEAR] = temp.year; - config._dayOfYear = temp.dayOfYear; + temp = dayOfYearFromWeeks(weekYear, week, weekday, dow, doy); + config._a[YEAR] = temp.year; + config._dayOfYear = temp.dayOfYear; } - } - - // constant that refers to the ISO standard - hooks.ISO_8601 = function () {}; - - // constant that refers to the RFC 2822 form - hooks.RFC_2822 = function () {}; - - // date from string and format string - function configFromStringAndFormat(config) { - // TODO: Move this to another part of the creation flow to prevent circular deps + } + hooks.ISO_8601 = function() { + }; + hooks.RFC_2822 = function() { + }; + function configFromStringAndFormat(config) { if (config._f === hooks.ISO_8601) { - configFromISO(config); - return; + configFromISO(config); + return; } if (config._f === hooks.RFC_2822) { - configFromRFC2822(config); - return; + configFromRFC2822(config); + return; } config._a = []; getParsingFlags(config).empty = true; - - // This array is used to make a Date, either with `new Date` or `Date.UTC` - var string = '' + config._i, - i, - parsedInput, - tokens, - token, - skipped, - stringLength = string.length, - totalParsedInputLength = 0, - era; - - tokens = - expandFormat(config._f, config._locale).match(formattingTokens) || []; - - for (i = 0; i < tokens.length; i++) { - token = tokens[i]; - parsedInput = (string.match(getParseRegexForToken(token, config)) || - [])[0]; - if (parsedInput) { - skipped = string.substr(0, string.indexOf(parsedInput)); - if (skipped.length > 0) { - getParsingFlags(config).unusedInput.push(skipped); - } - string = string.slice( - string.indexOf(parsedInput) + parsedInput.length - ); - totalParsedInputLength += parsedInput.length; + var string = "" + config._i, i, parsedInput, tokens2, token2, skipped, stringLength = string.length, totalParsedInputLength = 0, era, tokenLen; + tokens2 = expandFormat(config._f, config._locale).match(formattingTokens) || []; + tokenLen = tokens2.length; + for (i = 0; i < tokenLen; i++) { + token2 = tokens2[i]; + parsedInput = (string.match(getParseRegexForToken(token2, config)) || [])[0]; + if (parsedInput) { + skipped = string.substr(0, string.indexOf(parsedInput)); + if (skipped.length > 0) { + getParsingFlags(config).unusedInput.push(skipped); } - // don't parse if it's not a known token - if (formatTokenFunctions[token]) { - if (parsedInput) { - getParsingFlags(config).empty = false; - } else { - getParsingFlags(config).unusedTokens.push(token); - } - addTimeToArrayFromToken(token, parsedInput, config); - } else if (config._strict && !parsedInput) { - getParsingFlags(config).unusedTokens.push(token); + string = string.slice( + string.indexOf(parsedInput) + parsedInput.length + ); + totalParsedInputLength += parsedInput.length; + } + if (formatTokenFunctions[token2]) { + if (parsedInput) { + getParsingFlags(config).empty = false; + } else { + getParsingFlags(config).unusedTokens.push(token2); } + addTimeToArrayFromToken(token2, parsedInput, config); + } else if (config._strict && !parsedInput) { + getParsingFlags(config).unusedTokens.push(token2); + } } - - // add remaining unparsed input length to the string - getParsingFlags(config).charsLeftOver = - stringLength - totalParsedInputLength; + getParsingFlags(config).charsLeftOver = stringLength - totalParsedInputLength; if (string.length > 0) { - getParsingFlags(config).unusedInput.push(string); + getParsingFlags(config).unusedInput.push(string); } - - // clear _12h flag if hour is <= 12 - if ( - config._a[HOUR] <= 12 && - getParsingFlags(config).bigHour === true && - config._a[HOUR] > 0 - ) { - getParsingFlags(config).bigHour = undefined; + if (config._a[HOUR] <= 12 && getParsingFlags(config).bigHour === true && config._a[HOUR] > 0) { + getParsingFlags(config).bigHour = void 0; } - getParsingFlags(config).parsedDateParts = config._a.slice(0); getParsingFlags(config).meridiem = config._meridiem; - // handle meridiem config._a[HOUR] = meridiemFixWrap( - config._locale, - config._a[HOUR], - config._meridiem + config._locale, + config._a[HOUR], + config._meridiem ); - - // handle era era = getParsingFlags(config).era; if (era !== null) { - config._a[YEAR] = config._locale.erasConvertYear(era, config._a[YEAR]); + config._a[YEAR] = config._locale.erasConvertYear(era, config._a[YEAR]); } - configFromArray(config); checkOverflow(config); - } - - function meridiemFixWrap(locale, hour, meridiem) { + } + function meridiemFixWrap(locale2, hour, meridiem2) { var isPm; - - if (meridiem == null) { - // nothing to do - return hour; - } - if (locale.meridiemHour != null) { - return locale.meridiemHour(hour, meridiem); - } else if (locale.isPM != null) { - // Fallback - isPm = locale.isPM(meridiem); - if (isPm && hour < 12) { - hour += 12; - } - if (!isPm && hour === 12) { - hour = 0; - } - return hour; + if (meridiem2 == null) { + return hour; + } + if (locale2.meridiemHour != null) { + return locale2.meridiemHour(hour, meridiem2); + } else if (locale2.isPM != null) { + isPm = locale2.isPM(meridiem2); + if (isPm && hour < 12) { + hour += 12; + } + if (!isPm && hour === 12) { + hour = 0; + } + return hour; } else { - // this is not supposed to happen - return hour; + return hour; } - } - - // date from string and array of format strings - function configFromStringAndArray(config) { - var tempConfig, - bestMoment, - scoreToBeat, - i, - currentScore, - validFormatFound, - bestFormatIsValid = false; - - if (config._f.length === 0) { - getParsingFlags(config).invalidFormat = true; - config._d = new Date(NaN); - return; - } - - for (i = 0; i < config._f.length; i++) { - currentScore = 0; - validFormatFound = false; - tempConfig = copyConfig({}, config); - if (config._useUTC != null) { - tempConfig._useUTC = config._useUTC; - } - tempConfig._f = config._f[i]; - configFromStringAndFormat(tempConfig); - - if (isValid(tempConfig)) { - validFormatFound = true; + } + function configFromStringAndArray(config) { + var tempConfig, bestMoment, scoreToBeat, i, currentScore, validFormatFound, bestFormatIsValid = false, configfLen = config._f.length; + if (configfLen === 0) { + getParsingFlags(config).invalidFormat = true; + config._d = new Date(NaN); + return; + } + for (i = 0; i < configfLen; i++) { + currentScore = 0; + validFormatFound = false; + tempConfig = copyConfig({}, config); + if (config._useUTC != null) { + tempConfig._useUTC = config._useUTC; + } + tempConfig._f = config._f[i]; + configFromStringAndFormat(tempConfig); + if (isValid(tempConfig)) { + validFormatFound = true; + } + currentScore += getParsingFlags(tempConfig).charsLeftOver; + currentScore += getParsingFlags(tempConfig).unusedTokens.length * 10; + getParsingFlags(tempConfig).score = currentScore; + if (!bestFormatIsValid) { + if (scoreToBeat == null || currentScore < scoreToBeat || validFormatFound) { + scoreToBeat = currentScore; + bestMoment = tempConfig; + if (validFormatFound) { + bestFormatIsValid = true; + } } - - // if there is any input that was not parsed add a penalty for that format - currentScore += getParsingFlags(tempConfig).charsLeftOver; - - //or tokens - currentScore += getParsingFlags(tempConfig).unusedTokens.length * 10; - - getParsingFlags(tempConfig).score = currentScore; - - if (!bestFormatIsValid) { - if ( - scoreToBeat == null || - currentScore < scoreToBeat || - validFormatFound - ) { - scoreToBeat = currentScore; - bestMoment = tempConfig; - if (validFormatFound) { - bestFormatIsValid = true; - } - } - } else { - if (currentScore < scoreToBeat) { - scoreToBeat = currentScore; - bestMoment = tempConfig; - } + } else { + if (currentScore < scoreToBeat) { + scoreToBeat = currentScore; + bestMoment = tempConfig; } + } } - extend(config, bestMoment || tempConfig); - } - - function configFromObject(config) { + } + function configFromObject(config) { if (config._d) { - return; + return; } - - var i = normalizeObjectUnits(config._i), - dayOrDate = i.day === undefined ? i.date : i.day; + var i = normalizeObjectUnits(config._i), dayOrDate = i.day === void 0 ? i.date : i.day; config._a = map( - [i.year, i.month, dayOrDate, i.hour, i.minute, i.second, i.millisecond], - function (obj) { - return obj && parseInt(obj, 10); - } + [i.year, i.month, dayOrDate, i.hour, i.minute, i.second, i.millisecond], + function(obj) { + return obj && parseInt(obj, 10); + } ); - configFromArray(config); - } - - function createFromConfig(config) { - var res = new Moment(checkOverflow(prepareConfig(config))); + } + function createFromConfig(config) { + var res = new Moment2(checkOverflow(prepareConfig(config))); if (res._nextDay) { - // Adding is smart enough around DST - res.add(1, 'd'); - res._nextDay = undefined; + res.add(1, "d"); + res._nextDay = void 0; } - return res; - } - - function prepareConfig(config) { - var input = config._i, - format = config._f; - + } + function prepareConfig(config) { + var input = config._i, format2 = config._f; config._locale = config._locale || getLocale(config._l); - - if (input === null || (format === undefined && input === '')) { - return createInvalid({ nullInput: true }); + if (input === null || format2 === void 0 && input === "") { + return createInvalid({ nullInput: true }); } - - if (typeof input === 'string') { - config._i = input = config._locale.preparse(input); + if (typeof input === "string") { + config._i = input = config._locale.preparse(input); } - if (isMoment(input)) { - return new Moment(checkOverflow(input)); + return new Moment2(checkOverflow(input)); } else if (isDate(input)) { - config._d = input; - } else if (isArray(format)) { - configFromStringAndArray(config); - } else if (format) { - configFromStringAndFormat(config); + config._d = input; + } else if (isArray2(format2)) { + configFromStringAndArray(config); + } else if (format2) { + configFromStringAndFormat(config); } else { - configFromInput(config); + configFromInput(config); } - if (!isValid(config)) { - config._d = null; + config._d = null; } - return config; - } - - function configFromInput(config) { + } + function configFromInput(config) { var input = config._i; if (isUndefined(input)) { - config._d = new Date(hooks.now()); + config._d = new Date(hooks.now()); } else if (isDate(input)) { - config._d = new Date(input.valueOf()); - } else if (typeof input === 'string') { - configFromString(config); - } else if (isArray(input)) { - config._a = map(input.slice(0), function (obj) { - return parseInt(obj, 10); - }); - configFromArray(config); + config._d = new Date(input.valueOf()); + } else if (typeof input === "string") { + configFromString(config); + } else if (isArray2(input)) { + config._a = map(input.slice(0), function(obj) { + return parseInt(obj, 10); + }); + configFromArray(config); } else if (isObject(input)) { - configFromObject(config); - } else if (isNumber(input)) { - // from milliseconds - config._d = new Date(input); + configFromObject(config); + } else if (isNumber2(input)) { + config._d = new Date(input); } else { - hooks.createFromInputFallback(config); + hooks.createFromInputFallback(config); } - } - - function createLocalOrUTC(input, format, locale, strict, isUTC) { + } + function createLocalOrUTC(input, format2, locale2, strict, isUTC) { var c = {}; - - if (format === true || format === false) { - strict = format; - format = undefined; + if (format2 === true || format2 === false) { + strict = format2; + format2 = void 0; } - - if (locale === true || locale === false) { - strict = locale; - locale = undefined; + if (locale2 === true || locale2 === false) { + strict = locale2; + locale2 = void 0; + } + if (isObject(input) && isObjectEmpty(input) || isArray2(input) && input.length === 0) { + input = void 0; } - - if ( - (isObject(input) && isObjectEmpty(input)) || - (isArray(input) && input.length === 0) - ) { - input = undefined; - } - // object construction must be done this way. - // https://github.com/moment/moment/issues/1423 c._isAMomentObject = true; c._useUTC = c._isUTC = isUTC; - c._l = locale; + c._l = locale2; c._i = input; - c._f = format; + c._f = format2; c._strict = strict; - return createFromConfig(c); - } - - function createLocal(input, format, locale, strict) { - return createLocalOrUTC(input, format, locale, strict, false); - } - - var prototypeMin = deprecate( - 'moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/', - function () { - var other = createLocal.apply(null, arguments); - if (this.isValid() && other.isValid()) { - return other < this ? this : other; - } else { - return createInvalid(); - } - } - ), - prototypeMax = deprecate( - 'moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/', - function () { - var other = createLocal.apply(null, arguments); - if (this.isValid() && other.isValid()) { - return other > this ? this : other; - } else { - return createInvalid(); - } - } - ); - - // Pick a moment m from moments so that m[fn](other) is true for all - // other. This relies on the function fn to be transitive. - // - // moments should either be an array of moment objects or an array, whose - // first element is an array of moment objects. - function pickBy(fn, moments) { + } + function createLocal(input, format2, locale2, strict) { + return createLocalOrUTC(input, format2, locale2, strict, false); + } + var prototypeMin = deprecate( + "moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/", + function() { + var other = createLocal.apply(null, arguments); + if (this.isValid() && other.isValid()) { + return other < this ? this : other; + } else { + return createInvalid(); + } + } + ), prototypeMax = deprecate( + "moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/", + function() { + var other = createLocal.apply(null, arguments); + if (this.isValid() && other.isValid()) { + return other > this ? this : other; + } else { + return createInvalid(); + } + } + ); + function pickBy(fn, moments) { var res, i; - if (moments.length === 1 && isArray(moments[0])) { - moments = moments[0]; + if (moments.length === 1 && isArray2(moments[0])) { + moments = moments[0]; } if (!moments.length) { - return createLocal(); + return createLocal(); } res = moments[0]; for (i = 1; i < moments.length; ++i) { - if (!moments[i].isValid() || moments[i][fn](res)) { - res = moments[i]; - } + if (!moments[i].isValid() || moments[i][fn](res)) { + res = moments[i]; + } } return res; - } - - // TODO: Use [].sort instead? - function min() { + } + function min() { var args = [].slice.call(arguments, 0); - - return pickBy('isBefore', args); - } - - function max() { + return pickBy("isBefore", args); + } + function max() { var args = [].slice.call(arguments, 0); - - return pickBy('isAfter', args); - } - - var now = function () { + return pickBy("isAfter", args); + } + var now = function() { return Date.now ? Date.now() : +new Date(); - }; - - var ordering = [ - 'year', - 'quarter', - 'month', - 'week', - 'day', - 'hour', - 'minute', - 'second', - 'millisecond', - ]; - - function isDurationValid(m) { - var key, - unitHasDecimal = false, - i; + }; + var ordering = [ + "year", + "quarter", + "month", + "week", + "day", + "hour", + "minute", + "second", + "millisecond" + ]; + function isDurationValid(m) { + var key, unitHasDecimal = false, i, orderLen = ordering.length; for (key in m) { - if ( - hasOwnProp(m, key) && - !( - indexOf.call(ordering, key) !== -1 && - (m[key] == null || !isNaN(m[key])) - ) - ) { - return false; - } + if (hasOwnProp(m, key) && !(indexOf.call(ordering, key) !== -1 && (m[key] == null || !isNaN(m[key])))) { + return false; + } } - - for (i = 0; i < ordering.length; ++i) { - if (m[ordering[i]]) { - if (unitHasDecimal) { - return false; // only allow non-integers for smallest unit - } - if (parseFloat(m[ordering[i]]) !== toInt(m[ordering[i]])) { - unitHasDecimal = true; - } + for (i = 0; i < orderLen; ++i) { + if (m[ordering[i]]) { + if (unitHasDecimal) { + return false; + } + if (parseFloat(m[ordering[i]]) !== toInt(m[ordering[i]])) { + unitHasDecimal = true; } + } } - return true; - } - - function isValid$1() { + } + function isValid$1() { return this._isValid; - } - - function createInvalid$1() { + } + function createInvalid$1() { return createDuration(NaN); - } - - function Duration(duration) { - var normalizedInput = normalizeObjectUnits(duration), - years = normalizedInput.year || 0, - quarters = normalizedInput.quarter || 0, - months = normalizedInput.month || 0, - weeks = normalizedInput.week || normalizedInput.isoWeek || 0, - days = normalizedInput.day || 0, - hours = normalizedInput.hour || 0, - minutes = normalizedInput.minute || 0, - seconds = normalizedInput.second || 0, - milliseconds = normalizedInput.millisecond || 0; - + } + function Duration(duration) { + var normalizedInput = normalizeObjectUnits(duration), years2 = normalizedInput.year || 0, quarters = normalizedInput.quarter || 0, months2 = normalizedInput.month || 0, weeks2 = normalizedInput.week || normalizedInput.isoWeek || 0, days2 = normalizedInput.day || 0, hours2 = normalizedInput.hour || 0, minutes2 = normalizedInput.minute || 0, seconds2 = normalizedInput.second || 0, milliseconds2 = normalizedInput.millisecond || 0; this._isValid = isDurationValid(normalizedInput); - - // representation for dateAddRemove - this._milliseconds = - +milliseconds + - seconds * 1e3 + // 1000 - minutes * 6e4 + // 1000 * 60 - hours * 1000 * 60 * 60; //using 1000 * 60 * 60 instead of 36e5 to avoid floating point rounding errors https://github.com/moment/moment/issues/2978 - // Because of dateAddRemove treats 24 hours as different from a - // day when working around DST, we need to store them separately - this._days = +days + weeks * 7; - // It is impossible to translate months into days without knowing - // which months you are are talking about, so we have to store - // it separately. - this._months = +months + quarters * 3 + years * 12; - + this._milliseconds = +milliseconds2 + seconds2 * 1e3 + minutes2 * 6e4 + hours2 * 1e3 * 60 * 60; + this._days = +days2 + weeks2 * 7; + this._months = +months2 + quarters * 3 + years2 * 12; this._data = {}; - this._locale = getLocale(); - this._bubble(); - } - - function isDuration(obj) { + } + function isDuration(obj) { return obj instanceof Duration; - } - - function absRound(number) { + } + function absRound(number) { if (number < 0) { - return Math.round(-1 * number) * -1; + return Math.round(-1 * number) * -1; } else { - return Math.round(number); + return Math.round(number); } - } - - // compare two arrays, return the number of differences - function compareArrays(array1, array2, dontConvert) { - var len = Math.min(array1.length, array2.length), - lengthDiff = Math.abs(array1.length - array2.length), - diffs = 0, - i; + } + function compareArrays(array1, array2, dontConvert) { + var len = Math.min(array1.length, array2.length), lengthDiff = Math.abs(array1.length - array2.length), diffs = 0, i; for (i = 0; i < len; i++) { - if ( - (dontConvert && array1[i] !== array2[i]) || - (!dontConvert && toInt(array1[i]) !== toInt(array2[i])) - ) { - diffs++; - } + if (dontConvert && array1[i] !== array2[i] || !dontConvert && toInt(array1[i]) !== toInt(array2[i])) { + diffs++; + } } return diffs + lengthDiff; - } - - // FORMATTING - - function offset(token, separator) { - addFormatToken(token, 0, 0, function () { - var offset = this.utcOffset(), - sign = '+'; - if (offset < 0) { - offset = -offset; - sign = '-'; - } - return ( - sign + - zeroFill(~~(offset / 60), 2) + - separator + - zeroFill(~~offset % 60, 2) - ); + } + function offset(token2, separator) { + addFormatToken(token2, 0, 0, function() { + var offset2 = this.utcOffset(), sign2 = "+"; + if (offset2 < 0) { + offset2 = -offset2; + sign2 = "-"; + } + return sign2 + zeroFill(~~(offset2 / 60), 2) + separator + zeroFill(~~offset2 % 60, 2); }); - } - - offset('Z', ':'); - offset('ZZ', ''); - - // PARSING - - addRegexToken('Z', matchShortOffset); - addRegexToken('ZZ', matchShortOffset); - addParseToken(['Z', 'ZZ'], function (input, array, config) { + } + offset("Z", ":"); + offset("ZZ", ""); + addRegexToken("Z", matchShortOffset); + addRegexToken("ZZ", matchShortOffset); + addParseToken(["Z", "ZZ"], function(input, array, config) { config._useUTC = true; config._tzm = offsetFromString(matchShortOffset, input); - }); - - // HELPERS - - // timezone chunker - // '+10:00' > ['10', '00'] - // '-1530' > ['-15', '30'] - var chunkOffset = /([\+\-]|\d\d)/gi; - - function offsetFromString(matcher, string) { - var matches = (string || '').match(matcher), - chunk, - parts, - minutes; - + }); + var chunkOffset = /([\+\-]|\d\d)/gi; + function offsetFromString(matcher, string) { + var matches = (string || "").match(matcher), chunk, parts, minutes2; if (matches === null) { - return null; + return null; } - chunk = matches[matches.length - 1] || []; - parts = (chunk + '').match(chunkOffset) || ['-', 0, 0]; - minutes = +(parts[1] * 60) + toInt(parts[2]); - - return minutes === 0 ? 0 : parts[0] === '+' ? minutes : -minutes; - } - - // Return a moment from input, that is local/utc/zone equivalent to model. - function cloneWithOffset(input, model) { - var res, diff; + parts = (chunk + "").match(chunkOffset) || ["-", 0, 0]; + minutes2 = +(parts[1] * 60) + toInt(parts[2]); + return minutes2 === 0 ? 0 : parts[0] === "+" ? minutes2 : -minutes2; + } + function cloneWithOffset(input, model) { + var res, diff2; if (model._isUTC) { - res = model.clone(); - diff = - (isMoment(input) || isDate(input) - ? input.valueOf() - : createLocal(input).valueOf()) - res.valueOf(); - // Use low-level api, because this fn is low-level api. - res._d.setTime(res._d.valueOf() + diff); - hooks.updateOffset(res, false); - return res; + res = model.clone(); + diff2 = (isMoment(input) || isDate(input) ? input.valueOf() : createLocal(input).valueOf()) - res.valueOf(); + res._d.setTime(res._d.valueOf() + diff2); + hooks.updateOffset(res, false); + return res; } else { - return createLocal(input).local(); + return createLocal(input).local(); } - } - - function getDateOffset(m) { - // On Firefox.24 Date#getTimezoneOffset returns a floating point. - // https://github.com/moment/moment/pull/1871 + } + function getDateOffset(m) { return -Math.round(m._d.getTimezoneOffset()); - } - - // HOOKS - - // This function will be called whenever a moment is mutated. - // It is intended to keep the offset in sync with the timezone. - hooks.updateOffset = function () {}; - - // MOMENTS - - // keepLocalTime = true means only change the timezone, without - // affecting the local hour. So 5:31:26 +0300 --[utcOffset(2, true)]--> - // 5:31:26 +0200 It is possible that 5:31:26 doesn't exist with offset - // +0200, so we adjust the time as needed, to be valid. - // - // Keeping the time actually adds/subtracts (one hour) - // from the actual represented time. That is why we call updateOffset - // a second time. In case it wants us to change the offset again - // _changeInProgress == true case, then we have to adjust, because - // there is no such time in the given timezone. - function getSetOffset(input, keepLocalTime, keepMinutes) { - var offset = this._offset || 0, - localAdjust; + } + hooks.updateOffset = function() { + }; + function getSetOffset(input, keepLocalTime, keepMinutes) { + var offset2 = this._offset || 0, localAdjust; if (!this.isValid()) { - return input != null ? this : NaN; + return input != null ? this : NaN; } if (input != null) { - if (typeof input === 'string') { - input = offsetFromString(matchShortOffset, input); - if (input === null) { - return this; - } - } else if (Math.abs(input) < 16 && !keepMinutes) { - input = input * 60; - } - if (!this._isUTC && keepLocalTime) { - localAdjust = getDateOffset(this); + if (typeof input === "string") { + input = offsetFromString(matchShortOffset, input); + if (input === null) { + return this; } - this._offset = input; - this._isUTC = true; - if (localAdjust != null) { - this.add(localAdjust, 'm'); - } - if (offset !== input) { - if (!keepLocalTime || this._changeInProgress) { - addSubtract( - this, - createDuration(input - offset, 'm'), - 1, - false - ); - } else if (!this._changeInProgress) { - this._changeInProgress = true; - hooks.updateOffset(this, true); - this._changeInProgress = null; - } + } else if (Math.abs(input) < 16 && !keepMinutes) { + input = input * 60; + } + if (!this._isUTC && keepLocalTime) { + localAdjust = getDateOffset(this); + } + this._offset = input; + this._isUTC = true; + if (localAdjust != null) { + this.add(localAdjust, "m"); + } + if (offset2 !== input) { + if (!keepLocalTime || this._changeInProgress) { + addSubtract( + this, + createDuration(input - offset2, "m"), + 1, + false + ); + } else if (!this._changeInProgress) { + this._changeInProgress = true; + hooks.updateOffset(this, true); + this._changeInProgress = null; } - return this; + } + return this; } else { - return this._isUTC ? offset : getDateOffset(this); + return this._isUTC ? offset2 : getDateOffset(this); } - } - - function getSetZone(input, keepLocalTime) { + } + function getSetZone(input, keepLocalTime) { if (input != null) { - if (typeof input !== 'string') { - input = -input; - } - - this.utcOffset(input, keepLocalTime); - - return this; + if (typeof input !== "string") { + input = -input; + } + this.utcOffset(input, keepLocalTime); + return this; } else { - return -this.utcOffset(); + return -this.utcOffset(); } - } - - function setOffsetToUTC(keepLocalTime) { + } + function setOffsetToUTC(keepLocalTime) { return this.utcOffset(0, keepLocalTime); - } - - function setOffsetToLocal(keepLocalTime) { + } + function setOffsetToLocal(keepLocalTime) { if (this._isUTC) { - this.utcOffset(0, keepLocalTime); - this._isUTC = false; - - if (keepLocalTime) { - this.subtract(getDateOffset(this), 'm'); - } + this.utcOffset(0, keepLocalTime); + this._isUTC = false; + if (keepLocalTime) { + this.subtract(getDateOffset(this), "m"); + } } return this; - } - - function setOffsetToParsedOffset() { + } + function setOffsetToParsedOffset() { if (this._tzm != null) { - this.utcOffset(this._tzm, false, true); - } else if (typeof this._i === 'string') { - var tZone = offsetFromString(matchOffset, this._i); - if (tZone != null) { - this.utcOffset(tZone); - } else { - this.utcOffset(0, true); - } + this.utcOffset(this._tzm, false, true); + } else if (typeof this._i === "string") { + var tZone = offsetFromString(matchOffset, this._i); + if (tZone != null) { + this.utcOffset(tZone); + } else { + this.utcOffset(0, true); + } } return this; - } - - function hasAlignedHourOffset(input) { + } + function hasAlignedHourOffset(input) { if (!this.isValid()) { - return false; + return false; } input = input ? createLocal(input).utcOffset() : 0; - return (this.utcOffset() - input) % 60 === 0; - } - - function isDaylightSavingTime() { - return ( - this.utcOffset() > this.clone().month(0).utcOffset() || - this.utcOffset() > this.clone().month(5).utcOffset() - ); - } - - function isDaylightSavingTimeShifted() { + } + function isDaylightSavingTime() { + return this.utcOffset() > this.clone().month(0).utcOffset() || this.utcOffset() > this.clone().month(5).utcOffset(); + } + function isDaylightSavingTimeShifted() { if (!isUndefined(this._isDSTShifted)) { - return this._isDSTShifted; + return this._isDSTShifted; } - - var c = {}, - other; - + var c = {}, other; copyConfig(c, this); c = prepareConfig(c); - if (c._a) { - other = c._isUTC ? createUTC(c._a) : createLocal(c._a); - this._isDSTShifted = - this.isValid() && compareArrays(c._a, other.toArray()) > 0; + other = c._isUTC ? createUTC(c._a) : createLocal(c._a); + this._isDSTShifted = this.isValid() && compareArrays(c._a, other.toArray()) > 0; } else { - this._isDSTShifted = false; + this._isDSTShifted = false; } - return this._isDSTShifted; - } - - function isLocal() { + } + function isLocal() { return this.isValid() ? !this._isUTC : false; - } - - function isUtcOffset() { + } + function isUtcOffset() { return this.isValid() ? this._isUTC : false; - } - - function isUtc() { + } + function isUtc() { return this.isValid() ? this._isUTC && this._offset === 0 : false; - } - - // ASP.NET json date format regex - var aspNetRegex = /^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/, - // from http://docs.closure-library.googlecode.com/git/closure_goog_date_date.js.source.html - // somewhat more in line with 4.4.3.2 2004 spec, but allows decimal anywhere - // and further modified to allow for strings containing both week and day - isoRegex = /^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/; - - function createDuration(input, key) { - var duration = input, - // matching against regexp is expensive, do it on demand - match = null, - sign, - ret, - diffRes; - + } + var aspNetRegex = /^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/, isoRegex = /^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/; + function createDuration(input, key) { + var duration = input, match = null, sign2, ret, diffRes; if (isDuration(input)) { - duration = { - ms: input._milliseconds, - d: input._days, - M: input._months, - }; - } else if (isNumber(input) || !isNaN(+input)) { - duration = {}; - if (key) { - duration[key] = +input; - } else { - duration.milliseconds = +input; - } - } else if ((match = aspNetRegex.exec(input))) { - sign = match[1] === '-' ? -1 : 1; - duration = { - y: 0, - d: toInt(match[DATE]) * sign, - h: toInt(match[HOUR]) * sign, - m: toInt(match[MINUTE]) * sign, - s: toInt(match[SECOND]) * sign, - ms: toInt(absRound(match[MILLISECOND] * 1000)) * sign, // the millisecond decimal point is included in the match - }; - } else if ((match = isoRegex.exec(input))) { - sign = match[1] === '-' ? -1 : 1; - duration = { - y: parseIso(match[2], sign), - M: parseIso(match[3], sign), - w: parseIso(match[4], sign), - d: parseIso(match[5], sign), - h: parseIso(match[6], sign), - m: parseIso(match[7], sign), - s: parseIso(match[8], sign), - }; + duration = { + ms: input._milliseconds, + d: input._days, + M: input._months + }; + } else if (isNumber2(input) || !isNaN(+input)) { + duration = {}; + if (key) { + duration[key] = +input; + } else { + duration.milliseconds = +input; + } + } else if (match = aspNetRegex.exec(input)) { + sign2 = match[1] === "-" ? -1 : 1; + duration = { + y: 0, + d: toInt(match[DATE]) * sign2, + h: toInt(match[HOUR]) * sign2, + m: toInt(match[MINUTE]) * sign2, + s: toInt(match[SECOND]) * sign2, + ms: toInt(absRound(match[MILLISECOND] * 1e3)) * sign2 + }; + } else if (match = isoRegex.exec(input)) { + sign2 = match[1] === "-" ? -1 : 1; + duration = { + y: parseIso(match[2], sign2), + M: parseIso(match[3], sign2), + w: parseIso(match[4], sign2), + d: parseIso(match[5], sign2), + h: parseIso(match[6], sign2), + m: parseIso(match[7], sign2), + s: parseIso(match[8], sign2) + }; } else if (duration == null) { - // checks for null or undefined - duration = {}; - } else if ( - typeof duration === 'object' && - ('from' in duration || 'to' in duration) - ) { - diffRes = momentsDifference( - createLocal(duration.from), - createLocal(duration.to) - ); - - duration = {}; - duration.ms = diffRes.milliseconds; - duration.M = diffRes.months; + duration = {}; + } else if (typeof duration === "object" && ("from" in duration || "to" in duration)) { + diffRes = momentsDifference( + createLocal(duration.from), + createLocal(duration.to) + ); + duration = {}; + duration.ms = diffRes.milliseconds; + duration.M = diffRes.months; } - ret = new Duration(duration); - - if (isDuration(input) && hasOwnProp(input, '_locale')) { - ret._locale = input._locale; + if (isDuration(input) && hasOwnProp(input, "_locale")) { + ret._locale = input._locale; } - - if (isDuration(input) && hasOwnProp(input, '_isValid')) { - ret._isValid = input._isValid; + if (isDuration(input) && hasOwnProp(input, "_isValid")) { + ret._isValid = input._isValid; } - return ret; - } - - createDuration.fn = Duration.prototype; - createDuration.invalid = createInvalid$1; - - function parseIso(inp, sign) { - // We'd normally use ~~inp for this, but unfortunately it also - // converts floats to ints. - // inp may be undefined, so careful calling replace on it. - var res = inp && parseFloat(inp.replace(',', '.')); - // apply sign while we're at it - return (isNaN(res) ? 0 : res) * sign; - } - - function positiveMomentsDifference(base, other) { + } + createDuration.fn = Duration.prototype; + createDuration.invalid = createInvalid$1; + function parseIso(inp, sign2) { + var res = inp && parseFloat(inp.replace(",", ".")); + return (isNaN(res) ? 0 : res) * sign2; + } + function positiveMomentsDifference(base, other) { var res = {}; - - res.months = - other.month() - base.month() + (other.year() - base.year()) * 12; - if (base.clone().add(res.months, 'M').isAfter(other)) { - --res.months; + res.months = other.month() - base.month() + (other.year() - base.year()) * 12; + if (base.clone().add(res.months, "M").isAfter(other)) { + --res.months; } - - res.milliseconds = +other - +base.clone().add(res.months, 'M'); - + res.milliseconds = +other - +base.clone().add(res.months, "M"); return res; - } - - function momentsDifference(base, other) { + } + function momentsDifference(base, other) { var res; if (!(base.isValid() && other.isValid())) { - return { milliseconds: 0, months: 0 }; + return { milliseconds: 0, months: 0 }; } - other = cloneWithOffset(other, base); if (base.isBefore(other)) { - res = positiveMomentsDifference(base, other); + res = positiveMomentsDifference(base, other); } else { - res = positiveMomentsDifference(other, base); - res.milliseconds = -res.milliseconds; - res.months = -res.months; + res = positiveMomentsDifference(other, base); + res.milliseconds = -res.milliseconds; + res.months = -res.months; } - return res; - } - - // TODO: remove 'name' arg after deprecation is removed - function createAdder(direction, name) { - return function (val, period) { - var dur, tmp; - //invert the arguments, but complain about it - if (period !== null && !isNaN(+period)) { - deprecateSimple( - name, - 'moment().' + - name + - '(period, number) is deprecated. Please use moment().' + - name + - '(number, period). ' + - 'See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info.' - ); - tmp = val; - val = period; - period = tmp; - } - - dur = createDuration(val, period); - addSubtract(this, dur, direction); - return this; + } + function createAdder(direction, name) { + return function(val, period) { + var dur, tmp; + if (period !== null && !isNaN(+period)) { + deprecateSimple( + name, + "moment()." + name + "(period, number) is deprecated. Please use moment()." + name + "(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info." + ); + tmp = val; + val = period; + period = tmp; + } + dur = createDuration(val, period); + addSubtract(this, dur, direction); + return this; }; - } - - function addSubtract(mom, duration, isAdding, updateOffset) { - var milliseconds = duration._milliseconds, - days = absRound(duration._days), - months = absRound(duration._months); - + } + function addSubtract(mom, duration, isAdding, updateOffset) { + var milliseconds2 = duration._milliseconds, days2 = absRound(duration._days), months2 = absRound(duration._months); if (!mom.isValid()) { - // No op - return; + return; } - updateOffset = updateOffset == null ? true : updateOffset; - - if (months) { - setMonth(mom, get(mom, 'Month') + months * isAdding); + if (months2) { + setMonth(mom, get(mom, "Month") + months2 * isAdding); } - if (days) { - set$1(mom, 'Date', get(mom, 'Date') + days * isAdding); + if (days2) { + set$1(mom, "Date", get(mom, "Date") + days2 * isAdding); } - if (milliseconds) { - mom._d.setTime(mom._d.valueOf() + milliseconds * isAdding); + if (milliseconds2) { + mom._d.setTime(mom._d.valueOf() + milliseconds2 * isAdding); } if (updateOffset) { - hooks.updateOffset(mom, days || months); + hooks.updateOffset(mom, days2 || months2); } - } - - var add = createAdder(1, 'add'), - subtract = createAdder(-1, 'subtract'); - - function isString(input) { - return typeof input === 'string' || input instanceof String; - } - - // type MomentInput = Moment | Date | string | number | (number | string)[] | MomentInputObject | void; // null | undefined - function isMomentInput(input) { - return ( - isMoment(input) || - isDate(input) || - isString(input) || - isNumber(input) || - isNumberOrStringArray(input) || - isMomentInputObject(input) || - input === null || - input === undefined - ); - } - - function isMomentInputObject(input) { - var objectTest = isObject(input) && !isObjectEmpty(input), - propertyTest = false, - properties = [ - 'years', - 'year', - 'y', - 'months', - 'month', - 'M', - 'days', - 'day', - 'd', - 'dates', - 'date', - 'D', - 'hours', - 'hour', - 'h', - 'minutes', - 'minute', - 'm', - 'seconds', - 'second', - 's', - 'milliseconds', - 'millisecond', - 'ms', - ], - i, - property; - - for (i = 0; i < properties.length; i += 1) { - property = properties[i]; - propertyTest = propertyTest || hasOwnProp(input, property); + } + var add2 = createAdder(1, "add"), subtract = createAdder(-1, "subtract"); + function isString(input) { + return typeof input === "string" || input instanceof String; + } + function isMomentInput(input) { + return isMoment(input) || isDate(input) || isString(input) || isNumber2(input) || isNumberOrStringArray(input) || isMomentInputObject(input) || input === null || input === void 0; + } + function isMomentInputObject(input) { + var objectTest = isObject(input) && !isObjectEmpty(input), propertyTest = false, properties = [ + "years", + "year", + "y", + "months", + "month", + "M", + "days", + "day", + "d", + "dates", + "date", + "D", + "hours", + "hour", + "h", + "minutes", + "minute", + "m", + "seconds", + "second", + "s", + "milliseconds", + "millisecond", + "ms" + ], i, property, propertyLen = properties.length; + for (i = 0; i < propertyLen; i += 1) { + property = properties[i]; + propertyTest = propertyTest || hasOwnProp(input, property); } - return objectTest && propertyTest; - } - - function isNumberOrStringArray(input) { - var arrayTest = isArray(input), - dataTypeTest = false; + } + function isNumberOrStringArray(input) { + var arrayTest = isArray2(input), dataTypeTest = false; if (arrayTest) { - dataTypeTest = - input.filter(function (item) { - return !isNumber(item) && isString(input); - }).length === 0; + dataTypeTest = input.filter(function(item) { + return !isNumber2(item) && isString(input); + }).length === 0; } return arrayTest && dataTypeTest; - } - - function isCalendarSpec(input) { - var objectTest = isObject(input) && !isObjectEmpty(input), - propertyTest = false, - properties = [ - 'sameDay', - 'nextDay', - 'lastDay', - 'nextWeek', - 'lastWeek', - 'sameElse', - ], - i, - property; - + } + function isCalendarSpec(input) { + var objectTest = isObject(input) && !isObjectEmpty(input), propertyTest = false, properties = [ + "sameDay", + "nextDay", + "lastDay", + "nextWeek", + "lastWeek", + "sameElse" + ], i, property; for (i = 0; i < properties.length; i += 1) { - property = properties[i]; - propertyTest = propertyTest || hasOwnProp(input, property); + property = properties[i]; + propertyTest = propertyTest || hasOwnProp(input, property); } - return objectTest && propertyTest; - } - - function getCalendarFormat(myMoment, now) { - var diff = myMoment.diff(now, 'days', true); - return diff < -6 - ? 'sameElse' - : diff < -1 - ? 'lastWeek' - : diff < 0 - ? 'lastDay' - : diff < 1 - ? 'sameDay' - : diff < 2 - ? 'nextDay' - : diff < 7 - ? 'nextWeek' - : 'sameElse'; - } - - function calendar$1(time, formats) { - // Support for single parameter, formats only overload to the calendar function + } + function getCalendarFormat(myMoment, now2) { + var diff2 = myMoment.diff(now2, "days", true); + return diff2 < -6 ? "sameElse" : diff2 < -1 ? "lastWeek" : diff2 < 0 ? "lastDay" : diff2 < 1 ? "sameDay" : diff2 < 2 ? "nextDay" : diff2 < 7 ? "nextWeek" : "sameElse"; + } + function calendar$1(time, formats) { if (arguments.length === 1) { - if (!arguments[0]) { - time = undefined; - formats = undefined; - } else if (isMomentInput(arguments[0])) { - time = arguments[0]; - formats = undefined; - } else if (isCalendarSpec(arguments[0])) { - formats = arguments[0]; - time = undefined; - } + if (!arguments[0]) { + time = void 0; + formats = void 0; + } else if (isMomentInput(arguments[0])) { + time = arguments[0]; + formats = void 0; + } else if (isCalendarSpec(arguments[0])) { + formats = arguments[0]; + time = void 0; + } } - // We want to compare the start of today, vs this. - // Getting start-of-today depends on whether we're local/utc/offset or not. - var now = time || createLocal(), - sod = cloneWithOffset(now, this).startOf('day'), - format = hooks.calendarFormat(this, sod) || 'sameElse', - output = - formats && - (isFunction(formats[format]) - ? formats[format].call(this, now) - : formats[format]); - + var now2 = time || createLocal(), sod = cloneWithOffset(now2, this).startOf("day"), format2 = hooks.calendarFormat(this, sod) || "sameElse", output = formats && (isFunction(formats[format2]) ? formats[format2].call(this, now2) : formats[format2]); return this.format( - output || this.localeData().calendar(format, this, createLocal(now)) + output || this.localeData().calendar(format2, this, createLocal(now2)) ); - } - - function clone() { - return new Moment(this); - } - - function isAfter(input, units) { + } + function clone() { + return new Moment2(this); + } + function isAfter(input, units) { var localInput = isMoment(input) ? input : createLocal(input); if (!(this.isValid() && localInput.isValid())) { - return false; + return false; } - units = normalizeUnits(units) || 'millisecond'; - if (units === 'millisecond') { - return this.valueOf() > localInput.valueOf(); + units = normalizeUnits(units) || "millisecond"; + if (units === "millisecond") { + return this.valueOf() > localInput.valueOf(); } else { - return localInput.valueOf() < this.clone().startOf(units).valueOf(); + return localInput.valueOf() < this.clone().startOf(units).valueOf(); } - } - - function isBefore(input, units) { + } + function isBefore(input, units) { var localInput = isMoment(input) ? input : createLocal(input); if (!(this.isValid() && localInput.isValid())) { - return false; + return false; } - units = normalizeUnits(units) || 'millisecond'; - if (units === 'millisecond') { - return this.valueOf() < localInput.valueOf(); + units = normalizeUnits(units) || "millisecond"; + if (units === "millisecond") { + return this.valueOf() < localInput.valueOf(); } else { - return this.clone().endOf(units).valueOf() < localInput.valueOf(); + return this.clone().endOf(units).valueOf() < localInput.valueOf(); } - } - - function isBetween(from, to, units, inclusivity) { - var localFrom = isMoment(from) ? from : createLocal(from), - localTo = isMoment(to) ? to : createLocal(to); + } + function isBetween(from2, to2, units, inclusivity) { + var localFrom = isMoment(from2) ? from2 : createLocal(from2), localTo = isMoment(to2) ? to2 : createLocal(to2); if (!(this.isValid() && localFrom.isValid() && localTo.isValid())) { - return false; + return false; } - inclusivity = inclusivity || '()'; - return ( - (inclusivity[0] === '(' - ? this.isAfter(localFrom, units) - : !this.isBefore(localFrom, units)) && - (inclusivity[1] === ')' - ? this.isBefore(localTo, units) - : !this.isAfter(localTo, units)) - ); - } - - function isSame(input, units) { - var localInput = isMoment(input) ? input : createLocal(input), - inputMs; + inclusivity = inclusivity || "()"; + return (inclusivity[0] === "(" ? this.isAfter(localFrom, units) : !this.isBefore(localFrom, units)) && (inclusivity[1] === ")" ? this.isBefore(localTo, units) : !this.isAfter(localTo, units)); + } + function isSame(input, units) { + var localInput = isMoment(input) ? input : createLocal(input), inputMs; if (!(this.isValid() && localInput.isValid())) { - return false; + return false; } - units = normalizeUnits(units) || 'millisecond'; - if (units === 'millisecond') { - return this.valueOf() === localInput.valueOf(); + units = normalizeUnits(units) || "millisecond"; + if (units === "millisecond") { + return this.valueOf() === localInput.valueOf(); } else { - inputMs = localInput.valueOf(); - return ( - this.clone().startOf(units).valueOf() <= inputMs && - inputMs <= this.clone().endOf(units).valueOf() - ); + inputMs = localInput.valueOf(); + return this.clone().startOf(units).valueOf() <= inputMs && inputMs <= this.clone().endOf(units).valueOf(); } - } - - function isSameOrAfter(input, units) { + } + function isSameOrAfter(input, units) { return this.isSame(input, units) || this.isAfter(input, units); - } - - function isSameOrBefore(input, units) { + } + function isSameOrBefore(input, units) { return this.isSame(input, units) || this.isBefore(input, units); - } - - function diff(input, units, asFloat) { + } + function diff(input, units, asFloat) { var that, zoneDelta, output; - if (!this.isValid()) { - return NaN; + return NaN; } - that = cloneWithOffset(input, this); - if (!that.isValid()) { - return NaN; + return NaN; } - zoneDelta = (that.utcOffset() - this.utcOffset()) * 6e4; - units = normalizeUnits(units); - switch (units) { - case 'year': - output = monthDiff(this, that) / 12; - break; - case 'month': - output = monthDiff(this, that); - break; - case 'quarter': - output = monthDiff(this, that) / 3; - break; - case 'second': - output = (this - that) / 1e3; - break; // 1000 - case 'minute': - output = (this - that) / 6e4; - break; // 1000 * 60 - case 'hour': - output = (this - that) / 36e5; - break; // 1000 * 60 * 60 - case 'day': - output = (this - that - zoneDelta) / 864e5; - break; // 1000 * 60 * 60 * 24, negate dst - case 'week': - output = (this - that - zoneDelta) / 6048e5; - break; // 1000 * 60 * 60 * 24 * 7, negate dst - default: - output = this - that; + case "year": + output = monthDiff(this, that) / 12; + break; + case "month": + output = monthDiff(this, that); + break; + case "quarter": + output = monthDiff(this, that) / 3; + break; + case "second": + output = (this - that) / 1e3; + break; + case "minute": + output = (this - that) / 6e4; + break; + case "hour": + output = (this - that) / 36e5; + break; + case "day": + output = (this - that - zoneDelta) / 864e5; + break; + case "week": + output = (this - that - zoneDelta) / 6048e5; + break; + default: + output = this - that; } - return asFloat ? output : absFloor(output); - } - - function monthDiff(a, b) { + } + function monthDiff(a, b) { if (a.date() < b.date()) { - // end-of-month calculations work correct when the start month has more - // days than the end month. - return -monthDiff(b, a); - } - // difference in months - var wholeMonthDiff = (b.year() - a.year()) * 12 + (b.month() - a.month()), - // b is in (anchor - 1 month, anchor + 1 month) - anchor = a.clone().add(wholeMonthDiff, 'months'), - anchor2, - adjust; - + return -monthDiff(b, a); + } + var wholeMonthDiff = (b.year() - a.year()) * 12 + (b.month() - a.month()), anchor = a.clone().add(wholeMonthDiff, "months"), anchor2, adjust; if (b - anchor < 0) { - anchor2 = a.clone().add(wholeMonthDiff - 1, 'months'); - // linear across the month - adjust = (b - anchor) / (anchor - anchor2); + anchor2 = a.clone().add(wholeMonthDiff - 1, "months"); + adjust = (b - anchor) / (anchor - anchor2); } else { - anchor2 = a.clone().add(wholeMonthDiff + 1, 'months'); - // linear across the month - adjust = (b - anchor) / (anchor2 - anchor); + anchor2 = a.clone().add(wholeMonthDiff + 1, "months"); + adjust = (b - anchor) / (anchor2 - anchor); } - - //check for negative zero, return zero if negative zero return -(wholeMonthDiff + adjust) || 0; - } - - hooks.defaultFormat = 'YYYY-MM-DDTHH:mm:ssZ'; - hooks.defaultFormatUtc = 'YYYY-MM-DDTHH:mm:ss[Z]'; - - function toString() { - return this.clone().locale('en').format('ddd MMM DD YYYY HH:mm:ss [GMT]ZZ'); - } - - function toISOString(keepOffset) { + } + hooks.defaultFormat = "YYYY-MM-DDTHH:mm:ssZ"; + hooks.defaultFormatUtc = "YYYY-MM-DDTHH:mm:ss[Z]"; + function toString() { + return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ"); + } + function toISOString(keepOffset) { if (!this.isValid()) { - return null; + return null; } - var utc = keepOffset !== true, - m = utc ? this.clone().utc() : this; + var utc = keepOffset !== true, m = utc ? this.clone().utc() : this; if (m.year() < 0 || m.year() > 9999) { - return formatMoment( - m, - utc - ? 'YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]' - : 'YYYYYY-MM-DD[T]HH:mm:ss.SSSZ' - ); + return formatMoment( + m, + utc ? "YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]" : "YYYYYY-MM-DD[T]HH:mm:ss.SSSZ" + ); } if (isFunction(Date.prototype.toISOString)) { - // native implementation is ~50x faster, use it when we can - if (utc) { - return this.toDate().toISOString(); - } else { - return new Date(this.valueOf() + this.utcOffset() * 60 * 1000) - .toISOString() - .replace('Z', formatMoment(m, 'Z')); - } + if (utc) { + return this.toDate().toISOString(); + } else { + return new Date(this.valueOf() + this.utcOffset() * 60 * 1e3).toISOString().replace("Z", formatMoment(m, "Z")); + } } return formatMoment( - m, - utc ? 'YYYY-MM-DD[T]HH:mm:ss.SSS[Z]' : 'YYYY-MM-DD[T]HH:mm:ss.SSSZ' + m, + utc ? "YYYY-MM-DD[T]HH:mm:ss.SSS[Z]" : "YYYY-MM-DD[T]HH:mm:ss.SSSZ" ); - } - - /** - * Return a human readable representation of a moment that can - * also be evaluated to get a new moment which is the same - * - * @link https://nodejs.org/dist/latest/docs/api/util.html#util_custom_inspect_function_on_objects - */ - function inspect() { + } + function inspect() { if (!this.isValid()) { - return 'moment.invalid(/* ' + this._i + ' */)'; + return "moment.invalid(/* " + this._i + " */)"; } - var func = 'moment', - zone = '', - prefix, - year, - datetime, - suffix; + var func = "moment", zone = "", prefix, year, datetime, suffix; if (!this.isLocal()) { - func = this.utcOffset() === 0 ? 'moment.utc' : 'moment.parseZone'; - zone = 'Z'; + func = this.utcOffset() === 0 ? "moment.utc" : "moment.parseZone"; + zone = "Z"; } - prefix = '[' + func + '("]'; - year = 0 <= this.year() && this.year() <= 9999 ? 'YYYY' : 'YYYYYY'; - datetime = '-MM-DD[T]HH:mm:ss.SSS'; + prefix = "[" + func + '("]'; + year = 0 <= this.year() && this.year() <= 9999 ? "YYYY" : "YYYYYY"; + datetime = "-MM-DD[T]HH:mm:ss.SSS"; suffix = zone + '[")]'; - return this.format(prefix + year + datetime + suffix); - } - - function format(inputString) { + } + function format(inputString) { if (!inputString) { - inputString = this.isUtc() - ? hooks.defaultFormatUtc - : hooks.defaultFormat; + inputString = this.isUtc() ? hooks.defaultFormatUtc : hooks.defaultFormat; } var output = formatMoment(this, inputString); return this.localeData().postformat(output); - } - - function from(time, withoutSuffix) { - if ( - this.isValid() && - ((isMoment(time) && time.isValid()) || createLocal(time).isValid()) - ) { - return createDuration({ to: this, from: time }) - .locale(this.locale()) - .humanize(!withoutSuffix); + } + function from(time, withoutSuffix) { + if (this.isValid() && (isMoment(time) && time.isValid() || createLocal(time).isValid())) { + return createDuration({ to: this, from: time }).locale(this.locale()).humanize(!withoutSuffix); } else { - return this.localeData().invalidDate(); + return this.localeData().invalidDate(); } - } - - function fromNow(withoutSuffix) { + } + function fromNow(withoutSuffix) { return this.from(createLocal(), withoutSuffix); - } - - function to(time, withoutSuffix) { - if ( - this.isValid() && - ((isMoment(time) && time.isValid()) || createLocal(time).isValid()) - ) { - return createDuration({ from: this, to: time }) - .locale(this.locale()) - .humanize(!withoutSuffix); + } + function to(time, withoutSuffix) { + if (this.isValid() && (isMoment(time) && time.isValid() || createLocal(time).isValid())) { + return createDuration({ from: this, to: time }).locale(this.locale()).humanize(!withoutSuffix); } else { - return this.localeData().invalidDate(); + return this.localeData().invalidDate(); } - } - - function toNow(withoutSuffix) { + } + function toNow(withoutSuffix) { return this.to(createLocal(), withoutSuffix); - } - - // If passed a locale key, it will set the locale for this - // instance. Otherwise, it will return the locale configuration - // variables for this instance. - function locale(key) { + } + function locale(key) { var newLocaleData; - - if (key === undefined) { - return this._locale._abbr; + if (key === void 0) { + return this._locale._abbr; } else { - newLocaleData = getLocale(key); - if (newLocaleData != null) { - this._locale = newLocaleData; - } - return this; + newLocaleData = getLocale(key); + if (newLocaleData != null) { + this._locale = newLocaleData; + } + return this; } - } - - var lang = deprecate( - 'moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.', - function (key) { - if (key === undefined) { - return this.localeData(); - } else { - return this.locale(key); - } + } + var lang = deprecate( + "moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.", + function(key) { + if (key === void 0) { + return this.localeData(); + } else { + return this.locale(key); + } } - ); - - function localeData() { + ); + function localeData() { return this._locale; - } - - var MS_PER_SECOND = 1000, - MS_PER_MINUTE = 60 * MS_PER_SECOND, - MS_PER_HOUR = 60 * MS_PER_MINUTE, - MS_PER_400_YEARS = (365 * 400 + 97) * 24 * MS_PER_HOUR; - - // actual modulo - handles negative numbers (for dates before 1970): - function mod$1(dividend, divisor) { - return ((dividend % divisor) + divisor) % divisor; - } - - function localStartOfDate(y, m, d) { - // the date constructor remaps years 0-99 to 1900-1999 + } + var MS_PER_SECOND = 1e3, MS_PER_MINUTE = 60 * MS_PER_SECOND, MS_PER_HOUR = 60 * MS_PER_MINUTE, MS_PER_400_YEARS = (365 * 400 + 97) * 24 * MS_PER_HOUR; + function mod$1(dividend, divisor) { + return (dividend % divisor + divisor) % divisor; + } + function localStartOfDate(y, m, d) { if (y < 100 && y >= 0) { - // preserve leap years using a full 400 year cycle, then reset - return new Date(y + 400, m, d) - MS_PER_400_YEARS; + return new Date(y + 400, m, d) - MS_PER_400_YEARS; } else { - return new Date(y, m, d).valueOf(); + return new Date(y, m, d).valueOf(); } - } - - function utcStartOfDate(y, m, d) { - // Date.UTC remaps years 0-99 to 1900-1999 + } + function utcStartOfDate(y, m, d) { if (y < 100 && y >= 0) { - // preserve leap years using a full 400 year cycle, then reset - return Date.UTC(y + 400, m, d) - MS_PER_400_YEARS; + return Date.UTC(y + 400, m, d) - MS_PER_400_YEARS; } else { - return Date.UTC(y, m, d); + return Date.UTC(y, m, d); } - } - - function startOf(units) { + } + function startOf(units) { var time, startOfDate; units = normalizeUnits(units); - if (units === undefined || units === 'millisecond' || !this.isValid()) { - return this; + if (units === void 0 || units === "millisecond" || !this.isValid()) { + return this; } - startOfDate = this._isUTC ? utcStartOfDate : localStartOfDate; - switch (units) { - case 'year': - time = startOfDate(this.year(), 0, 1); - break; - case 'quarter': - time = startOfDate( - this.year(), - this.month() - (this.month() % 3), - 1 - ); - break; - case 'month': - time = startOfDate(this.year(), this.month(), 1); - break; - case 'week': - time = startOfDate( - this.year(), - this.month(), - this.date() - this.weekday() - ); - break; - case 'isoWeek': - time = startOfDate( - this.year(), - this.month(), - this.date() - (this.isoWeekday() - 1) - ); - break; - case 'day': - case 'date': - time = startOfDate(this.year(), this.month(), this.date()); - break; - case 'hour': - time = this._d.valueOf(); - time -= mod$1( - time + (this._isUTC ? 0 : this.utcOffset() * MS_PER_MINUTE), - MS_PER_HOUR - ); - break; - case 'minute': - time = this._d.valueOf(); - time -= mod$1(time, MS_PER_MINUTE); - break; - case 'second': - time = this._d.valueOf(); - time -= mod$1(time, MS_PER_SECOND); - break; + case "year": + time = startOfDate(this.year(), 0, 1); + break; + case "quarter": + time = startOfDate( + this.year(), + this.month() - this.month() % 3, + 1 + ); + break; + case "month": + time = startOfDate(this.year(), this.month(), 1); + break; + case "week": + time = startOfDate( + this.year(), + this.month(), + this.date() - this.weekday() + ); + break; + case "isoWeek": + time = startOfDate( + this.year(), + this.month(), + this.date() - (this.isoWeekday() - 1) + ); + break; + case "day": + case "date": + time = startOfDate(this.year(), this.month(), this.date()); + break; + case "hour": + time = this._d.valueOf(); + time -= mod$1( + time + (this._isUTC ? 0 : this.utcOffset() * MS_PER_MINUTE), + MS_PER_HOUR + ); + break; + case "minute": + time = this._d.valueOf(); + time -= mod$1(time, MS_PER_MINUTE); + break; + case "second": + time = this._d.valueOf(); + time -= mod$1(time, MS_PER_SECOND); + break; } - this._d.setTime(time); hooks.updateOffset(this, true); return this; - } - - function endOf(units) { + } + function endOf(units) { var time, startOfDate; units = normalizeUnits(units); - if (units === undefined || units === 'millisecond' || !this.isValid()) { - return this; + if (units === void 0 || units === "millisecond" || !this.isValid()) { + return this; } - startOfDate = this._isUTC ? utcStartOfDate : localStartOfDate; - switch (units) { - case 'year': - time = startOfDate(this.year() + 1, 0, 1) - 1; - break; - case 'quarter': - time = - startOfDate( - this.year(), - this.month() - (this.month() % 3) + 3, - 1 - ) - 1; - break; - case 'month': - time = startOfDate(this.year(), this.month() + 1, 1) - 1; - break; - case 'week': - time = - startOfDate( - this.year(), - this.month(), - this.date() - this.weekday() + 7 - ) - 1; - break; - case 'isoWeek': - time = - startOfDate( - this.year(), - this.month(), - this.date() - (this.isoWeekday() - 1) + 7 - ) - 1; - break; - case 'day': - case 'date': - time = startOfDate(this.year(), this.month(), this.date() + 1) - 1; - break; - case 'hour': - time = this._d.valueOf(); - time += - MS_PER_HOUR - - mod$1( - time + (this._isUTC ? 0 : this.utcOffset() * MS_PER_MINUTE), - MS_PER_HOUR - ) - - 1; - break; - case 'minute': - time = this._d.valueOf(); - time += MS_PER_MINUTE - mod$1(time, MS_PER_MINUTE) - 1; - break; - case 'second': - time = this._d.valueOf(); - time += MS_PER_SECOND - mod$1(time, MS_PER_SECOND) - 1; - break; + case "year": + time = startOfDate(this.year() + 1, 0, 1) - 1; + break; + case "quarter": + time = startOfDate( + this.year(), + this.month() - this.month() % 3 + 3, + 1 + ) - 1; + break; + case "month": + time = startOfDate(this.year(), this.month() + 1, 1) - 1; + break; + case "week": + time = startOfDate( + this.year(), + this.month(), + this.date() - this.weekday() + 7 + ) - 1; + break; + case "isoWeek": + time = startOfDate( + this.year(), + this.month(), + this.date() - (this.isoWeekday() - 1) + 7 + ) - 1; + break; + case "day": + case "date": + time = startOfDate(this.year(), this.month(), this.date() + 1) - 1; + break; + case "hour": + time = this._d.valueOf(); + time += MS_PER_HOUR - mod$1( + time + (this._isUTC ? 0 : this.utcOffset() * MS_PER_MINUTE), + MS_PER_HOUR + ) - 1; + break; + case "minute": + time = this._d.valueOf(); + time += MS_PER_MINUTE - mod$1(time, MS_PER_MINUTE) - 1; + break; + case "second": + time = this._d.valueOf(); + time += MS_PER_SECOND - mod$1(time, MS_PER_SECOND) - 1; + break; } - this._d.setTime(time); hooks.updateOffset(this, true); return this; - } - - function valueOf() { - return this._d.valueOf() - (this._offset || 0) * 60000; - } - - function unix() { - return Math.floor(this.valueOf() / 1000); - } - - function toDate() { + } + function valueOf() { + return this._d.valueOf() - (this._offset || 0) * 6e4; + } + function unix() { + return Math.floor(this.valueOf() / 1e3); + } + function toDate() { return new Date(this.valueOf()); - } - - function toArray() { + } + function toArray2() { var m = this; return [ - m.year(), - m.month(), - m.date(), - m.hour(), - m.minute(), - m.second(), - m.millisecond(), + m.year(), + m.month(), + m.date(), + m.hour(), + m.minute(), + m.second(), + m.millisecond() ]; - } - - function toObject() { + } + function toObject() { var m = this; return { - years: m.year(), - months: m.month(), - date: m.date(), - hours: m.hours(), - minutes: m.minutes(), - seconds: m.seconds(), - milliseconds: m.milliseconds(), + years: m.year(), + months: m.month(), + date: m.date(), + hours: m.hours(), + minutes: m.minutes(), + seconds: m.seconds(), + milliseconds: m.milliseconds() }; - } - - function toJSON() { - // new Date(NaN).toJSON() === null + } + function toJSON() { return this.isValid() ? this.toISOString() : null; - } - - function isValid$2() { + } + function isValid$2() { return isValid(this); - } - - function parsingFlags() { + } + function parsingFlags() { return extend({}, getParsingFlags(this)); - } - - function invalidAt() { + } + function invalidAt() { return getParsingFlags(this).overflow; - } - - function creationData() { + } + function creationData() { return { - input: this._i, - format: this._f, - locale: this._locale, - isUTC: this._isUTC, - strict: this._strict, + input: this._i, + format: this._f, + locale: this._locale, + isUTC: this._isUTC, + strict: this._strict }; - } - - addFormatToken('N', 0, 0, 'eraAbbr'); - addFormatToken('NN', 0, 0, 'eraAbbr'); - addFormatToken('NNN', 0, 0, 'eraAbbr'); - addFormatToken('NNNN', 0, 0, 'eraName'); - addFormatToken('NNNNN', 0, 0, 'eraNarrow'); - - addFormatToken('y', ['y', 1], 'yo', 'eraYear'); - addFormatToken('y', ['yy', 2], 0, 'eraYear'); - addFormatToken('y', ['yyy', 3], 0, 'eraYear'); - addFormatToken('y', ['yyyy', 4], 0, 'eraYear'); - - addRegexToken('N', matchEraAbbr); - addRegexToken('NN', matchEraAbbr); - addRegexToken('NNN', matchEraAbbr); - addRegexToken('NNNN', matchEraName); - addRegexToken('NNNNN', matchEraNarrow); - - addParseToken(['N', 'NN', 'NNN', 'NNNN', 'NNNNN'], function ( - input, - array, - config, - token - ) { - var era = config._locale.erasParse(input, token, config._strict); - if (era) { + } + addFormatToken("N", 0, 0, "eraAbbr"); + addFormatToken("NN", 0, 0, "eraAbbr"); + addFormatToken("NNN", 0, 0, "eraAbbr"); + addFormatToken("NNNN", 0, 0, "eraName"); + addFormatToken("NNNNN", 0, 0, "eraNarrow"); + addFormatToken("y", ["y", 1], "yo", "eraYear"); + addFormatToken("y", ["yy", 2], 0, "eraYear"); + addFormatToken("y", ["yyy", 3], 0, "eraYear"); + addFormatToken("y", ["yyyy", 4], 0, "eraYear"); + addRegexToken("N", matchEraAbbr); + addRegexToken("NN", matchEraAbbr); + addRegexToken("NNN", matchEraAbbr); + addRegexToken("NNNN", matchEraName); + addRegexToken("NNNNN", matchEraNarrow); + addParseToken( + ["N", "NN", "NNN", "NNNN", "NNNNN"], + function(input, array, config, token2) { + var era = config._locale.erasParse(input, token2, config._strict); + if (era) { getParsingFlags(config).era = era; - } else { + } else { getParsingFlags(config).invalidEra = input; + } } - }); - - addRegexToken('y', matchUnsigned); - addRegexToken('yy', matchUnsigned); - addRegexToken('yyy', matchUnsigned); - addRegexToken('yyyy', matchUnsigned); - addRegexToken('yo', matchEraYearOrdinal); - - addParseToken(['y', 'yy', 'yyy', 'yyyy'], YEAR); - addParseToken(['yo'], function (input, array, config, token) { + ); + addRegexToken("y", matchUnsigned); + addRegexToken("yy", matchUnsigned); + addRegexToken("yyy", matchUnsigned); + addRegexToken("yyyy", matchUnsigned); + addRegexToken("yo", matchEraYearOrdinal); + addParseToken(["y", "yy", "yyy", "yyyy"], YEAR); + addParseToken(["yo"], function(input, array, config, token2) { var match; if (config._locale._eraYearOrdinalRegex) { - match = input.match(config._locale._eraYearOrdinalRegex); + match = input.match(config._locale._eraYearOrdinalRegex); } - if (config._locale.eraYearOrdinalParse) { - array[YEAR] = config._locale.eraYearOrdinalParse(input, match); + array[YEAR] = config._locale.eraYearOrdinalParse(input, match); } else { - array[YEAR] = parseInt(input, 10); + array[YEAR] = parseInt(input, 10); } - }); - - function localeEras(m, format) { - var i, - l, - date, - eras = this._eras || getLocale('en')._eras; + }); + function localeEras(m, format2) { + var i, l, date, eras = this._eras || getLocale("en")._eras; for (i = 0, l = eras.length; i < l; ++i) { - switch (typeof eras[i].since) { - case 'string': - // truncate time - date = hooks(eras[i].since).startOf('day'); - eras[i].since = date.valueOf(); - break; - } - - switch (typeof eras[i].until) { - case 'undefined': - eras[i].until = +Infinity; - break; - case 'string': - // truncate time - date = hooks(eras[i].until).startOf('day').valueOf(); - eras[i].until = date.valueOf(); - break; - } - } + switch (typeof eras[i].since) { + case "string": + date = hooks(eras[i].since).startOf("day"); + eras[i].since = date.valueOf(); + break; + } + switch (typeof eras[i].until) { + case "undefined": + eras[i].until = Infinity; + break; + case "string": + date = hooks(eras[i].until).startOf("day").valueOf(); + eras[i].until = date.valueOf(); + break; + } + } return eras; - } - - function localeErasParse(eraName, format, strict) { - var i, - l, - eras = this.eras(), - name, - abbr, - narrow; + } + function localeErasParse(eraName, format2, strict) { + var i, l, eras = this.eras(), name, abbr, narrow; eraName = eraName.toUpperCase(); - for (i = 0, l = eras.length; i < l; ++i) { - name = eras[i].name.toUpperCase(); - abbr = eras[i].abbr.toUpperCase(); - narrow = eras[i].narrow.toUpperCase(); - - if (strict) { - switch (format) { - case 'N': - case 'NN': - case 'NNN': - if (abbr === eraName) { - return eras[i]; - } - break; - - case 'NNNN': - if (name === eraName) { - return eras[i]; - } - break; - - case 'NNNNN': - if (narrow === eraName) { - return eras[i]; - } - break; + name = eras[i].name.toUpperCase(); + abbr = eras[i].abbr.toUpperCase(); + narrow = eras[i].narrow.toUpperCase(); + if (strict) { + switch (format2) { + case "N": + case "NN": + case "NNN": + if (abbr === eraName) { + return eras[i]; + } + break; + case "NNNN": + if (name === eraName) { + return eras[i]; } - } else if ([name, abbr, narrow].indexOf(eraName) >= 0) { - return eras[i]; + break; + case "NNNNN": + if (narrow === eraName) { + return eras[i]; + } + break; } + } else if ([name, abbr, narrow].indexOf(eraName) >= 0) { + return eras[i]; + } } - } - - function localeErasConvertYear(era, year) { - var dir = era.since <= era.until ? +1 : -1; - if (year === undefined) { - return hooks(era.since).year(); + } + function localeErasConvertYear(era, year) { + var dir = era.since <= era.until ? 1 : -1; + if (year === void 0) { + return hooks(era.since).year(); } else { - return hooks(era.since).year() + (year - era.offset) * dir; + return hooks(era.since).year() + (year - era.offset) * dir; } - } - - function getEraName() { - var i, - l, - val, - eras = this.localeData().eras(); + } + function getEraName() { + var i, l, val, eras = this.localeData().eras(); for (i = 0, l = eras.length; i < l; ++i) { - // truncate time - val = this.clone().startOf('day').valueOf(); - - if (eras[i].since <= val && val <= eras[i].until) { - return eras[i].name; - } - if (eras[i].until <= val && val <= eras[i].since) { - return eras[i].name; - } + val = this.clone().startOf("day").valueOf(); + if (eras[i].since <= val && val <= eras[i].until) { + return eras[i].name; + } + if (eras[i].until <= val && val <= eras[i].since) { + return eras[i].name; + } } - - return ''; - } - - function getEraNarrow() { - var i, - l, - val, - eras = this.localeData().eras(); + return ""; + } + function getEraNarrow() { + var i, l, val, eras = this.localeData().eras(); for (i = 0, l = eras.length; i < l; ++i) { - // truncate time - val = this.clone().startOf('day').valueOf(); - - if (eras[i].since <= val && val <= eras[i].until) { - return eras[i].narrow; - } - if (eras[i].until <= val && val <= eras[i].since) { - return eras[i].narrow; - } + val = this.clone().startOf("day").valueOf(); + if (eras[i].since <= val && val <= eras[i].until) { + return eras[i].narrow; + } + if (eras[i].until <= val && val <= eras[i].since) { + return eras[i].narrow; + } } - - return ''; - } - - function getEraAbbr() { - var i, - l, - val, - eras = this.localeData().eras(); + return ""; + } + function getEraAbbr() { + var i, l, val, eras = this.localeData().eras(); for (i = 0, l = eras.length; i < l; ++i) { - // truncate time - val = this.clone().startOf('day').valueOf(); - - if (eras[i].since <= val && val <= eras[i].until) { - return eras[i].abbr; - } - if (eras[i].until <= val && val <= eras[i].since) { - return eras[i].abbr; - } + val = this.clone().startOf("day").valueOf(); + if (eras[i].since <= val && val <= eras[i].until) { + return eras[i].abbr; + } + if (eras[i].until <= val && val <= eras[i].since) { + return eras[i].abbr; + } } - - return ''; - } - - function getEraYear() { - var i, - l, - dir, - val, - eras = this.localeData().eras(); + return ""; + } + function getEraYear() { + var i, l, dir, val, eras = this.localeData().eras(); for (i = 0, l = eras.length; i < l; ++i) { - dir = eras[i].since <= eras[i].until ? +1 : -1; - - // truncate time - val = this.clone().startOf('day').valueOf(); - - if ( - (eras[i].since <= val && val <= eras[i].until) || - (eras[i].until <= val && val <= eras[i].since) - ) { - return ( - (this.year() - hooks(eras[i].since).year()) * dir + - eras[i].offset - ); - } + dir = eras[i].since <= eras[i].until ? 1 : -1; + val = this.clone().startOf("day").valueOf(); + if (eras[i].since <= val && val <= eras[i].until || eras[i].until <= val && val <= eras[i].since) { + return (this.year() - hooks(eras[i].since).year()) * dir + eras[i].offset; + } } - return this.year(); - } - - function erasNameRegex(isStrict) { - if (!hasOwnProp(this, '_erasNameRegex')) { - computeErasParse.call(this); + } + function erasNameRegex(isStrict) { + if (!hasOwnProp(this, "_erasNameRegex")) { + computeErasParse.call(this); } return isStrict ? this._erasNameRegex : this._erasRegex; - } - - function erasAbbrRegex(isStrict) { - if (!hasOwnProp(this, '_erasAbbrRegex')) { - computeErasParse.call(this); + } + function erasAbbrRegex(isStrict) { + if (!hasOwnProp(this, "_erasAbbrRegex")) { + computeErasParse.call(this); } return isStrict ? this._erasAbbrRegex : this._erasRegex; - } - - function erasNarrowRegex(isStrict) { - if (!hasOwnProp(this, '_erasNarrowRegex')) { - computeErasParse.call(this); + } + function erasNarrowRegex(isStrict) { + if (!hasOwnProp(this, "_erasNarrowRegex")) { + computeErasParse.call(this); } return isStrict ? this._erasNarrowRegex : this._erasRegex; - } - - function matchEraAbbr(isStrict, locale) { - return locale.erasAbbrRegex(isStrict); - } - - function matchEraName(isStrict, locale) { - return locale.erasNameRegex(isStrict); - } - - function matchEraNarrow(isStrict, locale) { - return locale.erasNarrowRegex(isStrict); - } - - function matchEraYearOrdinal(isStrict, locale) { - return locale._eraYearOrdinalRegex || matchUnsigned; - } - - function computeErasParse() { - var abbrPieces = [], - namePieces = [], - narrowPieces = [], - mixedPieces = [], - i, - l, - eras = this.eras(); - + } + function matchEraAbbr(isStrict, locale2) { + return locale2.erasAbbrRegex(isStrict); + } + function matchEraName(isStrict, locale2) { + return locale2.erasNameRegex(isStrict); + } + function matchEraNarrow(isStrict, locale2) { + return locale2.erasNarrowRegex(isStrict); + } + function matchEraYearOrdinal(isStrict, locale2) { + return locale2._eraYearOrdinalRegex || matchUnsigned; + } + function computeErasParse() { + var abbrPieces = [], namePieces = [], narrowPieces = [], mixedPieces = [], i, l, eras = this.eras(); for (i = 0, l = eras.length; i < l; ++i) { - namePieces.push(regexEscape(eras[i].name)); - abbrPieces.push(regexEscape(eras[i].abbr)); - narrowPieces.push(regexEscape(eras[i].narrow)); - - mixedPieces.push(regexEscape(eras[i].name)); - mixedPieces.push(regexEscape(eras[i].abbr)); - mixedPieces.push(regexEscape(eras[i].narrow)); - } - - this._erasRegex = new RegExp('^(' + mixedPieces.join('|') + ')', 'i'); - this._erasNameRegex = new RegExp('^(' + namePieces.join('|') + ')', 'i'); - this._erasAbbrRegex = new RegExp('^(' + abbrPieces.join('|') + ')', 'i'); + namePieces.push(regexEscape(eras[i].name)); + abbrPieces.push(regexEscape(eras[i].abbr)); + narrowPieces.push(regexEscape(eras[i].narrow)); + mixedPieces.push(regexEscape(eras[i].name)); + mixedPieces.push(regexEscape(eras[i].abbr)); + mixedPieces.push(regexEscape(eras[i].narrow)); + } + this._erasRegex = new RegExp("^(" + mixedPieces.join("|") + ")", "i"); + this._erasNameRegex = new RegExp("^(" + namePieces.join("|") + ")", "i"); + this._erasAbbrRegex = new RegExp("^(" + abbrPieces.join("|") + ")", "i"); this._erasNarrowRegex = new RegExp( - '^(' + narrowPieces.join('|') + ')', - 'i' + "^(" + narrowPieces.join("|") + ")", + "i" ); - } - - // FORMATTING - - addFormatToken(0, ['gg', 2], 0, function () { + } + addFormatToken(0, ["gg", 2], 0, function() { return this.weekYear() % 100; - }); - - addFormatToken(0, ['GG', 2], 0, function () { + }); + addFormatToken(0, ["GG", 2], 0, function() { return this.isoWeekYear() % 100; - }); - - function addWeekYearFormatToken(token, getter) { - addFormatToken(0, [token, token.length], 0, getter); - } - - addWeekYearFormatToken('gggg', 'weekYear'); - addWeekYearFormatToken('ggggg', 'weekYear'); - addWeekYearFormatToken('GGGG', 'isoWeekYear'); - addWeekYearFormatToken('GGGGG', 'isoWeekYear'); - - // ALIASES - - addUnitAlias('weekYear', 'gg'); - addUnitAlias('isoWeekYear', 'GG'); - - // PRIORITY - - addUnitPriority('weekYear', 1); - addUnitPriority('isoWeekYear', 1); - - // PARSING - - addRegexToken('G', matchSigned); - addRegexToken('g', matchSigned); - addRegexToken('GG', match1to2, match2); - addRegexToken('gg', match1to2, match2); - addRegexToken('GGGG', match1to4, match4); - addRegexToken('gggg', match1to4, match4); - addRegexToken('GGGGG', match1to6, match6); - addRegexToken('ggggg', match1to6, match6); - - addWeekParseToken(['gggg', 'ggggg', 'GGGG', 'GGGGG'], function ( - input, - week, - config, - token - ) { - week[token.substr(0, 2)] = toInt(input); - }); - - addWeekParseToken(['gg', 'GG'], function (input, week, config, token) { - week[token] = hooks.parseTwoDigitYear(input); - }); - - // MOMENTS - - function getSetWeekYear(input) { + }); + function addWeekYearFormatToken(token2, getter) { + addFormatToken(0, [token2, token2.length], 0, getter); + } + addWeekYearFormatToken("gggg", "weekYear"); + addWeekYearFormatToken("ggggg", "weekYear"); + addWeekYearFormatToken("GGGG", "isoWeekYear"); + addWeekYearFormatToken("GGGGG", "isoWeekYear"); + addUnitAlias("weekYear", "gg"); + addUnitAlias("isoWeekYear", "GG"); + addUnitPriority("weekYear", 1); + addUnitPriority("isoWeekYear", 1); + addRegexToken("G", matchSigned); + addRegexToken("g", matchSigned); + addRegexToken("GG", match1to2, match2); + addRegexToken("gg", match1to2, match2); + addRegexToken("GGGG", match1to4, match4); + addRegexToken("gggg", match1to4, match4); + addRegexToken("GGGGG", match1to6, match6); + addRegexToken("ggggg", match1to6, match6); + addWeekParseToken( + ["gggg", "ggggg", "GGGG", "GGGGG"], + function(input, week, config, token2) { + week[token2.substr(0, 2)] = toInt(input); + } + ); + addWeekParseToken(["gg", "GG"], function(input, week, config, token2) { + week[token2] = hooks.parseTwoDigitYear(input); + }); + function getSetWeekYear(input) { return getSetWeekYearHelper.call( - this, - input, - this.week(), - this.weekday(), - this.localeData()._week.dow, - this.localeData()._week.doy + this, + input, + this.week(), + this.weekday(), + this.localeData()._week.dow, + this.localeData()._week.doy ); - } - - function getSetISOWeekYear(input) { + } + function getSetISOWeekYear(input) { return getSetWeekYearHelper.call( - this, - input, - this.isoWeek(), - this.isoWeekday(), - 1, - 4 + this, + input, + this.isoWeek(), + this.isoWeekday(), + 1, + 4 ); - } - - function getISOWeeksInYear() { + } + function getISOWeeksInYear() { return weeksInYear(this.year(), 1, 4); - } - - function getISOWeeksInISOWeekYear() { + } + function getISOWeeksInISOWeekYear() { return weeksInYear(this.isoWeekYear(), 1, 4); - } - - function getWeeksInYear() { + } + function getWeeksInYear() { var weekInfo = this.localeData()._week; return weeksInYear(this.year(), weekInfo.dow, weekInfo.doy); - } - - function getWeeksInWeekYear() { + } + function getWeeksInWeekYear() { var weekInfo = this.localeData()._week; return weeksInYear(this.weekYear(), weekInfo.dow, weekInfo.doy); - } - - function getSetWeekYearHelper(input, week, weekday, dow, doy) { + } + function getSetWeekYearHelper(input, week, weekday, dow, doy) { var weeksTarget; if (input == null) { - return weekOfYear(this, dow, doy).year; + return weekOfYear(this, dow, doy).year; } else { - weeksTarget = weeksInYear(input, dow, doy); - if (week > weeksTarget) { - week = weeksTarget; - } - return setWeekAll.call(this, input, week, weekday, dow, doy); + weeksTarget = weeksInYear(input, dow, doy); + if (week > weeksTarget) { + week = weeksTarget; + } + return setWeekAll.call(this, input, week, weekday, dow, doy); } - } - - function setWeekAll(weekYear, week, weekday, dow, doy) { - var dayOfYearData = dayOfYearFromWeeks(weekYear, week, weekday, dow, doy), - date = createUTCDate(dayOfYearData.year, 0, dayOfYearData.dayOfYear); - + } + function setWeekAll(weekYear, week, weekday, dow, doy) { + var dayOfYearData = dayOfYearFromWeeks(weekYear, week, weekday, dow, doy), date = createUTCDate(dayOfYearData.year, 0, dayOfYearData.dayOfYear); this.year(date.getUTCFullYear()); this.month(date.getUTCMonth()); this.date(date.getUTCDate()); return this; - } - - // FORMATTING - - addFormatToken('Q', 0, 'Qo', 'quarter'); - - // ALIASES - - addUnitAlias('quarter', 'Q'); - - // PRIORITY - - addUnitPriority('quarter', 7); - - // PARSING - - addRegexToken('Q', match1); - addParseToken('Q', function (input, array) { + } + addFormatToken("Q", 0, "Qo", "quarter"); + addUnitAlias("quarter", "Q"); + addUnitPriority("quarter", 7); + addRegexToken("Q", match1); + addParseToken("Q", function(input, array) { array[MONTH] = (toInt(input) - 1) * 3; - }); - - // MOMENTS - - function getSetQuarter(input) { - return input == null - ? Math.ceil((this.month() + 1) / 3) - : this.month((input - 1) * 3 + (this.month() % 3)); - } - - // FORMATTING - - addFormatToken('D', ['DD', 2], 'Do', 'date'); - - // ALIASES - - addUnitAlias('date', 'D'); - - // PRIORITY - addUnitPriority('date', 9); - - // PARSING - - addRegexToken('D', match1to2); - addRegexToken('DD', match1to2, match2); - addRegexToken('Do', function (isStrict, locale) { - // TODO: Remove "ordinalParse" fallback in next major release. - return isStrict - ? locale._dayOfMonthOrdinalParse || locale._ordinalParse - : locale._dayOfMonthOrdinalParseLenient; - }); - - addParseToken(['D', 'DD'], DATE); - addParseToken('Do', function (input, array) { + }); + function getSetQuarter(input) { + return input == null ? Math.ceil((this.month() + 1) / 3) : this.month((input - 1) * 3 + this.month() % 3); + } + addFormatToken("D", ["DD", 2], "Do", "date"); + addUnitAlias("date", "D"); + addUnitPriority("date", 9); + addRegexToken("D", match1to2); + addRegexToken("DD", match1to2, match2); + addRegexToken("Do", function(isStrict, locale2) { + return isStrict ? locale2._dayOfMonthOrdinalParse || locale2._ordinalParse : locale2._dayOfMonthOrdinalParseLenient; + }); + addParseToken(["D", "DD"], DATE); + addParseToken("Do", function(input, array) { array[DATE] = toInt(input.match(match1to2)[0]); - }); - - // MOMENTS - - var getSetDayOfMonth = makeGetSet('Date', true); - - // FORMATTING - - addFormatToken('DDD', ['DDDD', 3], 'DDDo', 'dayOfYear'); - - // ALIASES - - addUnitAlias('dayOfYear', 'DDD'); - - // PRIORITY - addUnitPriority('dayOfYear', 4); - - // PARSING - - addRegexToken('DDD', match1to3); - addRegexToken('DDDD', match3); - addParseToken(['DDD', 'DDDD'], function (input, array, config) { + }); + var getSetDayOfMonth = makeGetSet("Date", true); + addFormatToken("DDD", ["DDDD", 3], "DDDo", "dayOfYear"); + addUnitAlias("dayOfYear", "DDD"); + addUnitPriority("dayOfYear", 4); + addRegexToken("DDD", match1to3); + addRegexToken("DDDD", match3); + addParseToken(["DDD", "DDDD"], function(input, array, config) { config._dayOfYear = toInt(input); - }); - - // HELPERS - - // MOMENTS - - function getSetDayOfYear(input) { - var dayOfYear = - Math.round( - (this.clone().startOf('day') - this.clone().startOf('year')) / 864e5 - ) + 1; - return input == null ? dayOfYear : this.add(input - dayOfYear, 'd'); - } - - // FORMATTING - - addFormatToken('m', ['mm', 2], 0, 'minute'); - - // ALIASES - - addUnitAlias('minute', 'm'); - - // PRIORITY - - addUnitPriority('minute', 14); - - // PARSING - - addRegexToken('m', match1to2); - addRegexToken('mm', match1to2, match2); - addParseToken(['m', 'mm'], MINUTE); - - // MOMENTS - - var getSetMinute = makeGetSet('Minutes', false); - - // FORMATTING - - addFormatToken('s', ['ss', 2], 0, 'second'); - - // ALIASES - - addUnitAlias('second', 's'); - - // PRIORITY - - addUnitPriority('second', 15); - - // PARSING - - addRegexToken('s', match1to2); - addRegexToken('ss', match1to2, match2); - addParseToken(['s', 'ss'], SECOND); - - // MOMENTS - - var getSetSecond = makeGetSet('Seconds', false); - - // FORMATTING - - addFormatToken('S', 0, 0, function () { + }); + function getSetDayOfYear(input) { + var dayOfYear = Math.round( + (this.clone().startOf("day") - this.clone().startOf("year")) / 864e5 + ) + 1; + return input == null ? dayOfYear : this.add(input - dayOfYear, "d"); + } + addFormatToken("m", ["mm", 2], 0, "minute"); + addUnitAlias("minute", "m"); + addUnitPriority("minute", 14); + addRegexToken("m", match1to2); + addRegexToken("mm", match1to2, match2); + addParseToken(["m", "mm"], MINUTE); + var getSetMinute = makeGetSet("Minutes", false); + addFormatToken("s", ["ss", 2], 0, "second"); + addUnitAlias("second", "s"); + addUnitPriority("second", 15); + addRegexToken("s", match1to2); + addRegexToken("ss", match1to2, match2); + addParseToken(["s", "ss"], SECOND); + var getSetSecond = makeGetSet("Seconds", false); + addFormatToken("S", 0, 0, function() { return ~~(this.millisecond() / 100); - }); - - addFormatToken(0, ['SS', 2], 0, function () { + }); + addFormatToken(0, ["SS", 2], 0, function() { return ~~(this.millisecond() / 10); - }); - - addFormatToken(0, ['SSS', 3], 0, 'millisecond'); - addFormatToken(0, ['SSSS', 4], 0, function () { + }); + addFormatToken(0, ["SSS", 3], 0, "millisecond"); + addFormatToken(0, ["SSSS", 4], 0, function() { return this.millisecond() * 10; - }); - addFormatToken(0, ['SSSSS', 5], 0, function () { + }); + addFormatToken(0, ["SSSSS", 5], 0, function() { return this.millisecond() * 100; - }); - addFormatToken(0, ['SSSSSS', 6], 0, function () { - return this.millisecond() * 1000; - }); - addFormatToken(0, ['SSSSSSS', 7], 0, function () { - return this.millisecond() * 10000; - }); - addFormatToken(0, ['SSSSSSSS', 8], 0, function () { - return this.millisecond() * 100000; - }); - addFormatToken(0, ['SSSSSSSSS', 9], 0, function () { - return this.millisecond() * 1000000; - }); - - // ALIASES - - addUnitAlias('millisecond', 'ms'); - - // PRIORITY - - addUnitPriority('millisecond', 16); - - // PARSING - - addRegexToken('S', match1to3, match1); - addRegexToken('SS', match1to3, match2); - addRegexToken('SSS', match1to3, match3); - - var token, getSetMillisecond; - for (token = 'SSSS'; token.length <= 9; token += 'S') { + }); + addFormatToken(0, ["SSSSSS", 6], 0, function() { + return this.millisecond() * 1e3; + }); + addFormatToken(0, ["SSSSSSS", 7], 0, function() { + return this.millisecond() * 1e4; + }); + addFormatToken(0, ["SSSSSSSS", 8], 0, function() { + return this.millisecond() * 1e5; + }); + addFormatToken(0, ["SSSSSSSSS", 9], 0, function() { + return this.millisecond() * 1e6; + }); + addUnitAlias("millisecond", "ms"); + addUnitPriority("millisecond", 16); + addRegexToken("S", match1to3, match1); + addRegexToken("SS", match1to3, match2); + addRegexToken("SSS", match1to3, match3); + var token, getSetMillisecond; + for (token = "SSSS"; token.length <= 9; token += "S") { addRegexToken(token, matchUnsigned); - } - - function parseMs(input, array) { - array[MILLISECOND] = toInt(('0.' + input) * 1000); - } - - for (token = 'S'; token.length <= 9; token += 'S') { + } + function parseMs(input, array) { + array[MILLISECOND] = toInt(("0." + input) * 1e3); + } + for (token = "S"; token.length <= 9; token += "S") { addParseToken(token, parseMs); - } - - getSetMillisecond = makeGetSet('Milliseconds', false); - - // FORMATTING - - addFormatToken('z', 0, 0, 'zoneAbbr'); - addFormatToken('zz', 0, 0, 'zoneName'); - - // MOMENTS - - function getZoneAbbr() { - return this._isUTC ? 'UTC' : ''; - } - - function getZoneName() { - return this._isUTC ? 'Coordinated Universal Time' : ''; - } - - var proto = Moment.prototype; - - proto.add = add; - proto.calendar = calendar$1; - proto.clone = clone; - proto.diff = diff; - proto.endOf = endOf; - proto.format = format; - proto.from = from; - proto.fromNow = fromNow; - proto.to = to; - proto.toNow = toNow; - proto.get = stringGet; - proto.invalidAt = invalidAt; - proto.isAfter = isAfter; - proto.isBefore = isBefore; - proto.isBetween = isBetween; - proto.isSame = isSame; - proto.isSameOrAfter = isSameOrAfter; - proto.isSameOrBefore = isSameOrBefore; - proto.isValid = isValid$2; - proto.lang = lang; - proto.locale = locale; - proto.localeData = localeData; - proto.max = prototypeMax; - proto.min = prototypeMin; - proto.parsingFlags = parsingFlags; - proto.set = stringSet; - proto.startOf = startOf; - proto.subtract = subtract; - proto.toArray = toArray; - proto.toObject = toObject; - proto.toDate = toDate; - proto.toISOString = toISOString; - proto.inspect = inspect; - if (typeof Symbol !== 'undefined' && Symbol.for != null) { - proto[Symbol.for('nodejs.util.inspect.custom')] = function () { - return 'Moment<' + this.format() + '>'; + } + getSetMillisecond = makeGetSet("Milliseconds", false); + addFormatToken("z", 0, 0, "zoneAbbr"); + addFormatToken("zz", 0, 0, "zoneName"); + function getZoneAbbr() { + return this._isUTC ? "UTC" : ""; + } + function getZoneName() { + return this._isUTC ? "Coordinated Universal Time" : ""; + } + var proto = Moment2.prototype; + proto.add = add2; + proto.calendar = calendar$1; + proto.clone = clone; + proto.diff = diff; + proto.endOf = endOf; + proto.format = format; + proto.from = from; + proto.fromNow = fromNow; + proto.to = to; + proto.toNow = toNow; + proto.get = stringGet; + proto.invalidAt = invalidAt; + proto.isAfter = isAfter; + proto.isBefore = isBefore; + proto.isBetween = isBetween; + proto.isSame = isSame; + proto.isSameOrAfter = isSameOrAfter; + proto.isSameOrBefore = isSameOrBefore; + proto.isValid = isValid$2; + proto.lang = lang; + proto.locale = locale; + proto.localeData = localeData; + proto.max = prototypeMax; + proto.min = prototypeMin; + proto.parsingFlags = parsingFlags; + proto.set = stringSet; + proto.startOf = startOf; + proto.subtract = subtract; + proto.toArray = toArray2; + proto.toObject = toObject; + proto.toDate = toDate; + proto.toISOString = toISOString; + proto.inspect = inspect; + if (typeof Symbol !== "undefined" && Symbol.for != null) { + proto[Symbol.for("nodejs.util.inspect.custom")] = function() { + return "Moment<" + this.format() + ">"; }; - } - proto.toJSON = toJSON; - proto.toString = toString; - proto.unix = unix; - proto.valueOf = valueOf; - proto.creationData = creationData; - proto.eraName = getEraName; - proto.eraNarrow = getEraNarrow; - proto.eraAbbr = getEraAbbr; - proto.eraYear = getEraYear; - proto.year = getSetYear; - proto.isLeapYear = getIsLeapYear; - proto.weekYear = getSetWeekYear; - proto.isoWeekYear = getSetISOWeekYear; - proto.quarter = proto.quarters = getSetQuarter; - proto.month = getSetMonth; - proto.daysInMonth = getDaysInMonth; - proto.week = proto.weeks = getSetWeek; - proto.isoWeek = proto.isoWeeks = getSetISOWeek; - proto.weeksInYear = getWeeksInYear; - proto.weeksInWeekYear = getWeeksInWeekYear; - proto.isoWeeksInYear = getISOWeeksInYear; - proto.isoWeeksInISOWeekYear = getISOWeeksInISOWeekYear; - proto.date = getSetDayOfMonth; - proto.day = proto.days = getSetDayOfWeek; - proto.weekday = getSetLocaleDayOfWeek; - proto.isoWeekday = getSetISODayOfWeek; - proto.dayOfYear = getSetDayOfYear; - proto.hour = proto.hours = getSetHour; - proto.minute = proto.minutes = getSetMinute; - proto.second = proto.seconds = getSetSecond; - proto.millisecond = proto.milliseconds = getSetMillisecond; - proto.utcOffset = getSetOffset; - proto.utc = setOffsetToUTC; - proto.local = setOffsetToLocal; - proto.parseZone = setOffsetToParsedOffset; - proto.hasAlignedHourOffset = hasAlignedHourOffset; - proto.isDST = isDaylightSavingTime; - proto.isLocal = isLocal; - proto.isUtcOffset = isUtcOffset; - proto.isUtc = isUtc; - proto.isUTC = isUtc; - proto.zoneAbbr = getZoneAbbr; - proto.zoneName = getZoneName; - proto.dates = deprecate( - 'dates accessor is deprecated. Use date instead.', + } + proto.toJSON = toJSON; + proto.toString = toString; + proto.unix = unix; + proto.valueOf = valueOf; + proto.creationData = creationData; + proto.eraName = getEraName; + proto.eraNarrow = getEraNarrow; + proto.eraAbbr = getEraAbbr; + proto.eraYear = getEraYear; + proto.year = getSetYear; + proto.isLeapYear = getIsLeapYear; + proto.weekYear = getSetWeekYear; + proto.isoWeekYear = getSetISOWeekYear; + proto.quarter = proto.quarters = getSetQuarter; + proto.month = getSetMonth; + proto.daysInMonth = getDaysInMonth; + proto.week = proto.weeks = getSetWeek; + proto.isoWeek = proto.isoWeeks = getSetISOWeek; + proto.weeksInYear = getWeeksInYear; + proto.weeksInWeekYear = getWeeksInWeekYear; + proto.isoWeeksInYear = getISOWeeksInYear; + proto.isoWeeksInISOWeekYear = getISOWeeksInISOWeekYear; + proto.date = getSetDayOfMonth; + proto.day = proto.days = getSetDayOfWeek; + proto.weekday = getSetLocaleDayOfWeek; + proto.isoWeekday = getSetISODayOfWeek; + proto.dayOfYear = getSetDayOfYear; + proto.hour = proto.hours = getSetHour; + proto.minute = proto.minutes = getSetMinute; + proto.second = proto.seconds = getSetSecond; + proto.millisecond = proto.milliseconds = getSetMillisecond; + proto.utcOffset = getSetOffset; + proto.utc = setOffsetToUTC; + proto.local = setOffsetToLocal; + proto.parseZone = setOffsetToParsedOffset; + proto.hasAlignedHourOffset = hasAlignedHourOffset; + proto.isDST = isDaylightSavingTime; + proto.isLocal = isLocal; + proto.isUtcOffset = isUtcOffset; + proto.isUtc = isUtc; + proto.isUTC = isUtc; + proto.zoneAbbr = getZoneAbbr; + proto.zoneName = getZoneName; + proto.dates = deprecate( + "dates accessor is deprecated. Use date instead.", getSetDayOfMonth - ); - proto.months = deprecate( - 'months accessor is deprecated. Use month instead', + ); + proto.months = deprecate( + "months accessor is deprecated. Use month instead", getSetMonth - ); - proto.years = deprecate( - 'years accessor is deprecated. Use year instead', + ); + proto.years = deprecate( + "years accessor is deprecated. Use year instead", getSetYear - ); - proto.zone = deprecate( - 'moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/', + ); + proto.zone = deprecate( + "moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/", getSetZone - ); - proto.isDSTShifted = deprecate( - 'isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information', + ); + proto.isDSTShifted = deprecate( + "isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information", isDaylightSavingTimeShifted - ); - - function createUnix(input) { - return createLocal(input * 1000); - } - - function createInZone() { + ); + function createUnix(input) { + return createLocal(input * 1e3); + } + function createInZone() { return createLocal.apply(null, arguments).parseZone(); - } - - function preParsePostFormat(string) { + } + function preParsePostFormat(string) { return string; - } - - var proto$1 = Locale.prototype; - - proto$1.calendar = calendar; - proto$1.longDateFormat = longDateFormat; - proto$1.invalidDate = invalidDate; - proto$1.ordinal = ordinal; - proto$1.preparse = preParsePostFormat; - proto$1.postformat = preParsePostFormat; - proto$1.relativeTime = relativeTime; - proto$1.pastFuture = pastFuture; - proto$1.set = set; - proto$1.eras = localeEras; - proto$1.erasParse = localeErasParse; - proto$1.erasConvertYear = localeErasConvertYear; - proto$1.erasAbbrRegex = erasAbbrRegex; - proto$1.erasNameRegex = erasNameRegex; - proto$1.erasNarrowRegex = erasNarrowRegex; - - proto$1.months = localeMonths; - proto$1.monthsShort = localeMonthsShort; - proto$1.monthsParse = localeMonthsParse; - proto$1.monthsRegex = monthsRegex; - proto$1.monthsShortRegex = monthsShortRegex; - proto$1.week = localeWeek; - proto$1.firstDayOfYear = localeFirstDayOfYear; - proto$1.firstDayOfWeek = localeFirstDayOfWeek; - - proto$1.weekdays = localeWeekdays; - proto$1.weekdaysMin = localeWeekdaysMin; - proto$1.weekdaysShort = localeWeekdaysShort; - proto$1.weekdaysParse = localeWeekdaysParse; - - proto$1.weekdaysRegex = weekdaysRegex; - proto$1.weekdaysShortRegex = weekdaysShortRegex; - proto$1.weekdaysMinRegex = weekdaysMinRegex; - - proto$1.isPM = localeIsPM; - proto$1.meridiem = localeMeridiem; - - function get$1(format, index, field, setter) { - var locale = getLocale(), - utc = createUTC().set(setter, index); - return locale[field](utc, format); - } - - function listMonthsImpl(format, index, field) { - if (isNumber(format)) { - index = format; - format = undefined; + } + var proto$1 = Locale.prototype; + proto$1.calendar = calendar; + proto$1.longDateFormat = longDateFormat; + proto$1.invalidDate = invalidDate; + proto$1.ordinal = ordinal; + proto$1.preparse = preParsePostFormat; + proto$1.postformat = preParsePostFormat; + proto$1.relativeTime = relativeTime; + proto$1.pastFuture = pastFuture; + proto$1.set = set; + proto$1.eras = localeEras; + proto$1.erasParse = localeErasParse; + proto$1.erasConvertYear = localeErasConvertYear; + proto$1.erasAbbrRegex = erasAbbrRegex; + proto$1.erasNameRegex = erasNameRegex; + proto$1.erasNarrowRegex = erasNarrowRegex; + proto$1.months = localeMonths; + proto$1.monthsShort = localeMonthsShort; + proto$1.monthsParse = localeMonthsParse; + proto$1.monthsRegex = monthsRegex; + proto$1.monthsShortRegex = monthsShortRegex; + proto$1.week = localeWeek; + proto$1.firstDayOfYear = localeFirstDayOfYear; + proto$1.firstDayOfWeek = localeFirstDayOfWeek; + proto$1.weekdays = localeWeekdays; + proto$1.weekdaysMin = localeWeekdaysMin; + proto$1.weekdaysShort = localeWeekdaysShort; + proto$1.weekdaysParse = localeWeekdaysParse; + proto$1.weekdaysRegex = weekdaysRegex; + proto$1.weekdaysShortRegex = weekdaysShortRegex; + proto$1.weekdaysMinRegex = weekdaysMinRegex; + proto$1.isPM = localeIsPM; + proto$1.meridiem = localeMeridiem; + function get$1(format2, index, field, setter) { + var locale2 = getLocale(), utc = createUTC().set(setter, index); + return locale2[field](utc, format2); + } + function listMonthsImpl(format2, index, field) { + if (isNumber2(format2)) { + index = format2; + format2 = void 0; } - - format = format || ''; - + format2 = format2 || ""; if (index != null) { - return get$1(format, index, field, 'month'); + return get$1(format2, index, field, "month"); } - - var i, - out = []; + var i, out = []; for (i = 0; i < 12; i++) { - out[i] = get$1(format, i, field, 'month'); + out[i] = get$1(format2, i, field, "month"); } return out; - } - - // () - // (5) - // (fmt, 5) - // (fmt) - // (true) - // (true, 5) - // (true, fmt, 5) - // (true, fmt) - function listWeekdaysImpl(localeSorted, format, index, field) { - if (typeof localeSorted === 'boolean') { - if (isNumber(format)) { - index = format; - format = undefined; - } - - format = format || ''; + } + function listWeekdaysImpl(localeSorted, format2, index, field) { + if (typeof localeSorted === "boolean") { + if (isNumber2(format2)) { + index = format2; + format2 = void 0; + } + format2 = format2 || ""; } else { - format = localeSorted; - index = format; - localeSorted = false; - - if (isNumber(format)) { - index = format; - format = undefined; - } - - format = format || ''; + format2 = localeSorted; + index = format2; + localeSorted = false; + if (isNumber2(format2)) { + index = format2; + format2 = void 0; + } + format2 = format2 || ""; } - - var locale = getLocale(), - shift = localeSorted ? locale._week.dow : 0, - i, - out = []; - + var locale2 = getLocale(), shift = localeSorted ? locale2._week.dow : 0, i, out = []; if (index != null) { - return get$1(format, (index + shift) % 7, field, 'day'); + return get$1(format2, (index + shift) % 7, field, "day"); } - for (i = 0; i < 7; i++) { - out[i] = get$1(format, (i + shift) % 7, field, 'day'); + out[i] = get$1(format2, (i + shift) % 7, field, "day"); } return out; - } - - function listMonths(format, index) { - return listMonthsImpl(format, index, 'months'); - } - - function listMonthsShort(format, index) { - return listMonthsImpl(format, index, 'monthsShort'); - } - - function listWeekdays(localeSorted, format, index) { - return listWeekdaysImpl(localeSorted, format, index, 'weekdays'); - } - - function listWeekdaysShort(localeSorted, format, index) { - return listWeekdaysImpl(localeSorted, format, index, 'weekdaysShort'); - } - - function listWeekdaysMin(localeSorted, format, index) { - return listWeekdaysImpl(localeSorted, format, index, 'weekdaysMin'); - } - - getSetGlobalLocale('en', { + } + function listMonths(format2, index) { + return listMonthsImpl(format2, index, "months"); + } + function listMonthsShort(format2, index) { + return listMonthsImpl(format2, index, "monthsShort"); + } + function listWeekdays(localeSorted, format2, index) { + return listWeekdaysImpl(localeSorted, format2, index, "weekdays"); + } + function listWeekdaysShort(localeSorted, format2, index) { + return listWeekdaysImpl(localeSorted, format2, index, "weekdaysShort"); + } + function listWeekdaysMin(localeSorted, format2, index) { + return listWeekdaysImpl(localeSorted, format2, index, "weekdaysMin"); + } + getSetGlobalLocale("en", { eras: [ - { - since: '0001-01-01', - until: +Infinity, - offset: 1, - name: 'Anno Domini', - narrow: 'AD', - abbr: 'AD', - }, - { - since: '0000-12-31', - until: -Infinity, - offset: 1, - name: 'Before Christ', - narrow: 'BC', - abbr: 'BC', - }, + { + since: "0001-01-01", + until: Infinity, + offset: 1, + name: "Anno Domini", + narrow: "AD", + abbr: "AD" + }, + { + since: "0000-12-31", + until: -Infinity, + offset: 1, + name: "Before Christ", + narrow: "BC", + abbr: "BC" + } ], dayOfMonthOrdinalParse: /\d{1,2}(th|st|nd|rd)/, - ordinal: function (number) { - var b = number % 10, - output = - toInt((number % 100) / 10) === 1 - ? 'th' - : b === 1 - ? 'st' - : b === 2 - ? 'nd' - : b === 3 - ? 'rd' - : 'th'; - return number + output; - }, - }); - - // Side effect imports - - hooks.lang = deprecate( - 'moment.lang is deprecated. Use moment.locale instead.', + ordinal: function(number) { + var b = number % 10, output = toInt(number % 100 / 10) === 1 ? "th" : b === 1 ? "st" : b === 2 ? "nd" : b === 3 ? "rd" : "th"; + return number + output; + } + }); + hooks.lang = deprecate( + "moment.lang is deprecated. Use moment.locale instead.", getSetGlobalLocale - ); - hooks.langData = deprecate( - 'moment.langData is deprecated. Use moment.localeData instead.', + ); + hooks.langData = deprecate( + "moment.langData is deprecated. Use moment.localeData instead.", getLocale - ); - - var mathAbs = Math.abs; - - function abs() { + ); + var mathAbs = Math.abs; + function abs() { var data = this._data; - this._milliseconds = mathAbs(this._milliseconds); this._days = mathAbs(this._days); this._months = mathAbs(this._months); - data.milliseconds = mathAbs(data.milliseconds); data.seconds = mathAbs(data.seconds); data.minutes = mathAbs(data.minutes); data.hours = mathAbs(data.hours); data.months = mathAbs(data.months); data.years = mathAbs(data.years); - return this; - } - - function addSubtract$1(duration, input, value, direction) { + } + function addSubtract$1(duration, input, value, direction) { var other = createDuration(input, value); - duration._milliseconds += direction * other._milliseconds; duration._days += direction * other._days; duration._months += direction * other._months; - return duration._bubble(); - } - - // supports only 2.0-style add(1, 's') or add(duration) - function add$1(input, value) { + } + function add$1(input, value) { return addSubtract$1(this, input, value, 1); - } - - // supports only 2.0-style subtract(1, 's') or subtract(duration) - function subtract$1(input, value) { + } + function subtract$1(input, value) { return addSubtract$1(this, input, value, -1); - } - - function absCeil(number) { + } + function absCeil(number) { if (number < 0) { - return Math.floor(number); + return Math.floor(number); } else { - return Math.ceil(number); - } - } - - function bubble() { - var milliseconds = this._milliseconds, - days = this._days, - months = this._months, - data = this._data, - seconds, - minutes, - hours, - years, - monthsFromDays; - - // if we have a mix of positive and negative values, bubble down first - // check: https://github.com/moment/moment/issues/2166 - if ( - !( - (milliseconds >= 0 && days >= 0 && months >= 0) || - (milliseconds <= 0 && days <= 0 && months <= 0) - ) - ) { - milliseconds += absCeil(monthsToDays(months) + days) * 864e5; - days = 0; - months = 0; + return Math.ceil(number); } - - // The following code bubbles up values, see the tests for - // examples of what that means. - data.milliseconds = milliseconds % 1000; - - seconds = absFloor(milliseconds / 1000); - data.seconds = seconds % 60; - - minutes = absFloor(seconds / 60); - data.minutes = minutes % 60; - - hours = absFloor(minutes / 60); - data.hours = hours % 24; - - days += absFloor(hours / 24); - - // convert days to months - monthsFromDays = absFloor(daysToMonths(days)); - months += monthsFromDays; - days -= absCeil(monthsToDays(monthsFromDays)); - - // 12 months -> 1 year - years = absFloor(months / 12); - months %= 12; - - data.days = days; - data.months = months; - data.years = years; - + } + function bubble() { + var milliseconds2 = this._milliseconds, days2 = this._days, months2 = this._months, data = this._data, seconds2, minutes2, hours2, years2, monthsFromDays; + if (!(milliseconds2 >= 0 && days2 >= 0 && months2 >= 0 || milliseconds2 <= 0 && days2 <= 0 && months2 <= 0)) { + milliseconds2 += absCeil(monthsToDays(months2) + days2) * 864e5; + days2 = 0; + months2 = 0; + } + data.milliseconds = milliseconds2 % 1e3; + seconds2 = absFloor(milliseconds2 / 1e3); + data.seconds = seconds2 % 60; + minutes2 = absFloor(seconds2 / 60); + data.minutes = minutes2 % 60; + hours2 = absFloor(minutes2 / 60); + data.hours = hours2 % 24; + days2 += absFloor(hours2 / 24); + monthsFromDays = absFloor(daysToMonths(days2)); + months2 += monthsFromDays; + days2 -= absCeil(monthsToDays(monthsFromDays)); + years2 = absFloor(months2 / 12); + months2 %= 12; + data.days = days2; + data.months = months2; + data.years = years2; return this; - } - - function daysToMonths(days) { - // 400 years have 146097 days (taking into account leap year rules) - // 400 years have 12 months === 4800 - return (days * 4800) / 146097; - } - - function monthsToDays(months) { - // the reverse of daysToMonths - return (months * 146097) / 4800; - } - - function as(units) { + } + function daysToMonths(days2) { + return days2 * 4800 / 146097; + } + function monthsToDays(months2) { + return months2 * 146097 / 4800; + } + function as(units) { if (!this.isValid()) { - return NaN; + return NaN; } - var days, - months, - milliseconds = this._milliseconds; - + var days2, months2, milliseconds2 = this._milliseconds; units = normalizeUnits(units); - - if (units === 'month' || units === 'quarter' || units === 'year') { - days = this._days + milliseconds / 864e5; - months = this._months + daysToMonths(days); - switch (units) { - case 'month': - return months; - case 'quarter': - return months / 3; - case 'year': - return months / 12; - } + if (units === "month" || units === "quarter" || units === "year") { + days2 = this._days + milliseconds2 / 864e5; + months2 = this._months + daysToMonths(days2); + switch (units) { + case "month": + return months2; + case "quarter": + return months2 / 3; + case "year": + return months2 / 12; + } } else { - // handle milliseconds separately because of floating point math errors (issue #1867) - days = this._days + Math.round(monthsToDays(this._months)); - switch (units) { - case 'week': - return days / 7 + milliseconds / 6048e5; - case 'day': - return days + milliseconds / 864e5; - case 'hour': - return days * 24 + milliseconds / 36e5; - case 'minute': - return days * 1440 + milliseconds / 6e4; - case 'second': - return days * 86400 + milliseconds / 1000; - // Math.floor prevents floating point math errors here - case 'millisecond': - return Math.floor(days * 864e5) + milliseconds; - default: - throw new Error('Unknown unit ' + units); - } + days2 = this._days + Math.round(monthsToDays(this._months)); + switch (units) { + case "week": + return days2 / 7 + milliseconds2 / 6048e5; + case "day": + return days2 + milliseconds2 / 864e5; + case "hour": + return days2 * 24 + milliseconds2 / 36e5; + case "minute": + return days2 * 1440 + milliseconds2 / 6e4; + case "second": + return days2 * 86400 + milliseconds2 / 1e3; + case "millisecond": + return Math.floor(days2 * 864e5) + milliseconds2; + default: + throw new Error("Unknown unit " + units); + } } - } - - // TODO: Use this.as('ms')? - function valueOf$1() { + } + function valueOf$1() { if (!this.isValid()) { - return NaN; + return NaN; } - return ( - this._milliseconds + - this._days * 864e5 + - (this._months % 12) * 2592e6 + - toInt(this._months / 12) * 31536e6 - ); - } - - function makeAs(alias) { - return function () { - return this.as(alias); + return this._milliseconds + this._days * 864e5 + this._months % 12 * 2592e6 + toInt(this._months / 12) * 31536e6; + } + function makeAs(alias) { + return function() { + return this.as(alias); }; - } - - var asMilliseconds = makeAs('ms'), - asSeconds = makeAs('s'), - asMinutes = makeAs('m'), - asHours = makeAs('h'), - asDays = makeAs('d'), - asWeeks = makeAs('w'), - asMonths = makeAs('M'), - asQuarters = makeAs('Q'), - asYears = makeAs('y'); - - function clone$1() { + } + var asMilliseconds = makeAs("ms"), asSeconds = makeAs("s"), asMinutes = makeAs("m"), asHours = makeAs("h"), asDays = makeAs("d"), asWeeks = makeAs("w"), asMonths = makeAs("M"), asQuarters = makeAs("Q"), asYears = makeAs("y"); + function clone$1() { return createDuration(this); - } - - function get$2(units) { + } + function get$2(units) { units = normalizeUnits(units); - return this.isValid() ? this[units + 's']() : NaN; - } - - function makeGetter(name) { - return function () { - return this.isValid() ? this._data[name] : NaN; + return this.isValid() ? this[units + "s"]() : NaN; + } + function makeGetter(name) { + return function() { + return this.isValid() ? this._data[name] : NaN; }; - } - - var milliseconds = makeGetter('milliseconds'), - seconds = makeGetter('seconds'), - minutes = makeGetter('minutes'), - hours = makeGetter('hours'), - days = makeGetter('days'), - months = makeGetter('months'), - years = makeGetter('years'); - - function weeks() { + } + var milliseconds = makeGetter("milliseconds"), seconds = makeGetter("seconds"), minutes = makeGetter("minutes"), hours = makeGetter("hours"), days = makeGetter("days"), months = makeGetter("months"), years = makeGetter("years"); + function weeks() { return absFloor(this.days() / 7); - } - - var round = Math.round, - thresholds = { - ss: 44, // a few seconds to seconds - s: 45, // seconds to minute - m: 45, // minutes to hour - h: 22, // hours to day - d: 26, // days to month/week - w: null, // weeks to month - M: 11, // months to year - }; - - // helper function for moment.fn.from, moment.fn.fromNow, and moment.duration.fn.humanize - function substituteTimeAgo(string, number, withoutSuffix, isFuture, locale) { - return locale.relativeTime(number || 1, !!withoutSuffix, string, isFuture); - } - - function relativeTime$1(posNegDuration, withoutSuffix, thresholds, locale) { - var duration = createDuration(posNegDuration).abs(), - seconds = round(duration.as('s')), - minutes = round(duration.as('m')), - hours = round(duration.as('h')), - days = round(duration.as('d')), - months = round(duration.as('M')), - weeks = round(duration.as('w')), - years = round(duration.as('y')), - a = - (seconds <= thresholds.ss && ['s', seconds]) || - (seconds < thresholds.s && ['ss', seconds]) || - (minutes <= 1 && ['m']) || - (minutes < thresholds.m && ['mm', minutes]) || - (hours <= 1 && ['h']) || - (hours < thresholds.h && ['hh', hours]) || - (days <= 1 && ['d']) || - (days < thresholds.d && ['dd', days]); - - if (thresholds.w != null) { - a = - a || - (weeks <= 1 && ['w']) || - (weeks < thresholds.w && ['ww', weeks]); - } - a = a || - (months <= 1 && ['M']) || - (months < thresholds.M && ['MM', months]) || - (years <= 1 && ['y']) || ['yy', years]; - + } + var round = Math.round, thresholds = { + ss: 44, + s: 45, + m: 45, + h: 22, + d: 26, + w: null, + M: 11 + }; + function substituteTimeAgo(string, number, withoutSuffix, isFuture, locale2) { + return locale2.relativeTime(number || 1, !!withoutSuffix, string, isFuture); + } + function relativeTime$1(posNegDuration, withoutSuffix, thresholds2, locale2) { + var duration = createDuration(posNegDuration).abs(), seconds2 = round(duration.as("s")), minutes2 = round(duration.as("m")), hours2 = round(duration.as("h")), days2 = round(duration.as("d")), months2 = round(duration.as("M")), weeks2 = round(duration.as("w")), years2 = round(duration.as("y")), a = seconds2 <= thresholds2.ss && ["s", seconds2] || seconds2 < thresholds2.s && ["ss", seconds2] || minutes2 <= 1 && ["m"] || minutes2 < thresholds2.m && ["mm", minutes2] || hours2 <= 1 && ["h"] || hours2 < thresholds2.h && ["hh", hours2] || days2 <= 1 && ["d"] || days2 < thresholds2.d && ["dd", days2]; + if (thresholds2.w != null) { + a = a || weeks2 <= 1 && ["w"] || weeks2 < thresholds2.w && ["ww", weeks2]; + } + a = a || months2 <= 1 && ["M"] || months2 < thresholds2.M && ["MM", months2] || years2 <= 1 && ["y"] || ["yy", years2]; a[2] = withoutSuffix; a[3] = +posNegDuration > 0; - a[4] = locale; + a[4] = locale2; return substituteTimeAgo.apply(null, a); - } - - // This function allows you to set the rounding function for relative time strings - function getSetRelativeTimeRounding(roundingFunction) { - if (roundingFunction === undefined) { - return round; + } + function getSetRelativeTimeRounding(roundingFunction) { + if (roundingFunction === void 0) { + return round; } - if (typeof roundingFunction === 'function') { - round = roundingFunction; - return true; + if (typeof roundingFunction === "function") { + round = roundingFunction; + return true; } return false; - } - - // This function allows you to set a threshold for relative time strings - function getSetRelativeTimeThreshold(threshold, limit) { - if (thresholds[threshold] === undefined) { - return false; + } + function getSetRelativeTimeThreshold(threshold, limit) { + if (thresholds[threshold] === void 0) { + return false; } - if (limit === undefined) { - return thresholds[threshold]; + if (limit === void 0) { + return thresholds[threshold]; } thresholds[threshold] = limit; - if (threshold === 's') { - thresholds.ss = limit - 1; + if (threshold === "s") { + thresholds.ss = limit - 1; } return true; - } - - function humanize(argWithSuffix, argThresholds) { + } + function humanize(argWithSuffix, argThresholds) { if (!this.isValid()) { - return this.localeData().invalidDate(); + return this.localeData().invalidDate(); } - - var withSuffix = false, - th = thresholds, - locale, - output; - - if (typeof argWithSuffix === 'object') { - argThresholds = argWithSuffix; - argWithSuffix = false; + var withSuffix = false, th = thresholds, locale2, output; + if (typeof argWithSuffix === "object") { + argThresholds = argWithSuffix; + argWithSuffix = false; } - if (typeof argWithSuffix === 'boolean') { - withSuffix = argWithSuffix; + if (typeof argWithSuffix === "boolean") { + withSuffix = argWithSuffix; } - if (typeof argThresholds === 'object') { - th = Object.assign({}, thresholds, argThresholds); - if (argThresholds.s != null && argThresholds.ss == null) { - th.ss = argThresholds.s - 1; - } + if (typeof argThresholds === "object") { + th = Object.assign({}, thresholds, argThresholds); + if (argThresholds.s != null && argThresholds.ss == null) { + th.ss = argThresholds.s - 1; + } } - - locale = this.localeData(); - output = relativeTime$1(this, !withSuffix, th, locale); - + locale2 = this.localeData(); + output = relativeTime$1(this, !withSuffix, th, locale2); if (withSuffix) { - output = locale.pastFuture(+this, output); + output = locale2.pastFuture(+this, output); } - - return locale.postformat(output); - } - - var abs$1 = Math.abs; - - function sign(x) { + return locale2.postformat(output); + } + var abs$1 = Math.abs; + function sign(x) { return (x > 0) - (x < 0) || +x; - } - - function toISOString$1() { - // for ISO strings we do not use the normal bubbling rules: - // * milliseconds bubble up until they become hours - // * days do not bubble at all - // * months bubble up until they become years - // This is because there is no context-free conversion between hours and days - // (think of clock changes) - // and also not between days and months (28-31 days per month) + } + function toISOString$1() { if (!this.isValid()) { - return this.localeData().invalidDate(); + return this.localeData().invalidDate(); } - - var seconds = abs$1(this._milliseconds) / 1000, - days = abs$1(this._days), - months = abs$1(this._months), - minutes, - hours, - years, - s, - total = this.asSeconds(), - totalSign, - ymSign, - daysSign, - hmsSign; - + var seconds2 = abs$1(this._milliseconds) / 1e3, days2 = abs$1(this._days), months2 = abs$1(this._months), minutes2, hours2, years2, s, total = this.asSeconds(), totalSign, ymSign, daysSign, hmsSign; if (!total) { - // this is the same as C#'s (Noda) and python (isodate)... - // but not other JS (goog.date) - return 'P0D'; - } - - // 3600 seconds -> 60 minutes -> 1 hour - minutes = absFloor(seconds / 60); - hours = absFloor(minutes / 60); - seconds %= 60; - minutes %= 60; - - // 12 months -> 1 year - years = absFloor(months / 12); - months %= 12; - - // inspired by https://github.com/dordille/moment-isoduration/blob/master/moment.isoduration.js - s = seconds ? seconds.toFixed(3).replace(/\.?0+$/, '') : ''; - - totalSign = total < 0 ? '-' : ''; - ymSign = sign(this._months) !== sign(total) ? '-' : ''; - daysSign = sign(this._days) !== sign(total) ? '-' : ''; - hmsSign = sign(this._milliseconds) !== sign(total) ? '-' : ''; - - return ( - totalSign + - 'P' + - (years ? ymSign + years + 'Y' : '') + - (months ? ymSign + months + 'M' : '') + - (days ? daysSign + days + 'D' : '') + - (hours || minutes || seconds ? 'T' : '') + - (hours ? hmsSign + hours + 'H' : '') + - (minutes ? hmsSign + minutes + 'M' : '') + - (seconds ? hmsSign + s + 'S' : '') - ); - } - - var proto$2 = Duration.prototype; - - proto$2.isValid = isValid$1; - proto$2.abs = abs; - proto$2.add = add$1; - proto$2.subtract = subtract$1; - proto$2.as = as; - proto$2.asMilliseconds = asMilliseconds; - proto$2.asSeconds = asSeconds; - proto$2.asMinutes = asMinutes; - proto$2.asHours = asHours; - proto$2.asDays = asDays; - proto$2.asWeeks = asWeeks; - proto$2.asMonths = asMonths; - proto$2.asQuarters = asQuarters; - proto$2.asYears = asYears; - proto$2.valueOf = valueOf$1; - proto$2._bubble = bubble; - proto$2.clone = clone$1; - proto$2.get = get$2; - proto$2.milliseconds = milliseconds; - proto$2.seconds = seconds; - proto$2.minutes = minutes; - proto$2.hours = hours; - proto$2.days = days; - proto$2.weeks = weeks; - proto$2.months = months; - proto$2.years = years; - proto$2.humanize = humanize; - proto$2.toISOString = toISOString$1; - proto$2.toString = toISOString$1; - proto$2.toJSON = toISOString$1; - proto$2.locale = locale; - proto$2.localeData = localeData; - - proto$2.toIsoString = deprecate( - 'toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)', + return "P0D"; + } + minutes2 = absFloor(seconds2 / 60); + hours2 = absFloor(minutes2 / 60); + seconds2 %= 60; + minutes2 %= 60; + years2 = absFloor(months2 / 12); + months2 %= 12; + s = seconds2 ? seconds2.toFixed(3).replace(/\.?0+$/, "") : ""; + totalSign = total < 0 ? "-" : ""; + ymSign = sign(this._months) !== sign(total) ? "-" : ""; + daysSign = sign(this._days) !== sign(total) ? "-" : ""; + hmsSign = sign(this._milliseconds) !== sign(total) ? "-" : ""; + return totalSign + "P" + (years2 ? ymSign + years2 + "Y" : "") + (months2 ? ymSign + months2 + "M" : "") + (days2 ? daysSign + days2 + "D" : "") + (hours2 || minutes2 || seconds2 ? "T" : "") + (hours2 ? hmsSign + hours2 + "H" : "") + (minutes2 ? hmsSign + minutes2 + "M" : "") + (seconds2 ? hmsSign + s + "S" : ""); + } + var proto$2 = Duration.prototype; + proto$2.isValid = isValid$1; + proto$2.abs = abs; + proto$2.add = add$1; + proto$2.subtract = subtract$1; + proto$2.as = as; + proto$2.asMilliseconds = asMilliseconds; + proto$2.asSeconds = asSeconds; + proto$2.asMinutes = asMinutes; + proto$2.asHours = asHours; + proto$2.asDays = asDays; + proto$2.asWeeks = asWeeks; + proto$2.asMonths = asMonths; + proto$2.asQuarters = asQuarters; + proto$2.asYears = asYears; + proto$2.valueOf = valueOf$1; + proto$2._bubble = bubble; + proto$2.clone = clone$1; + proto$2.get = get$2; + proto$2.milliseconds = milliseconds; + proto$2.seconds = seconds; + proto$2.minutes = minutes; + proto$2.hours = hours; + proto$2.days = days; + proto$2.weeks = weeks; + proto$2.months = months; + proto$2.years = years; + proto$2.humanize = humanize; + proto$2.toISOString = toISOString$1; + proto$2.toString = toISOString$1; + proto$2.toJSON = toISOString$1; + proto$2.locale = locale; + proto$2.localeData = localeData; + proto$2.toIsoString = deprecate( + "toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)", toISOString$1 - ); - proto$2.lang = lang; - - // FORMATTING - - addFormatToken('X', 0, 0, 'unix'); - addFormatToken('x', 0, 0, 'valueOf'); - - // PARSING - - addRegexToken('x', matchSigned); - addRegexToken('X', matchTimestamp); - addParseToken('X', function (input, array, config) { - config._d = new Date(parseFloat(input) * 1000); - }); - addParseToken('x', function (input, array, config) { + ); + proto$2.lang = lang; + addFormatToken("X", 0, 0, "unix"); + addFormatToken("x", 0, 0, "valueOf"); + addRegexToken("x", matchSigned); + addRegexToken("X", matchTimestamp); + addParseToken("X", function(input, array, config) { + config._d = new Date(parseFloat(input) * 1e3); + }); + addParseToken("x", function(input, array, config) { config._d = new Date(toInt(input)); + }); + hooks.version = "2.29.4"; + setHookCallback(createLocal); + hooks.fn = proto; + hooks.min = min; + hooks.max = max; + hooks.now = now; + hooks.utc = createUTC; + hooks.unix = createUnix; + hooks.months = listMonths; + hooks.isDate = isDate; + hooks.locale = getSetGlobalLocale; + hooks.invalid = createInvalid; + hooks.duration = createDuration; + hooks.isMoment = isMoment; + hooks.weekdays = listWeekdays; + hooks.parseZone = createInZone; + hooks.localeData = getLocale; + hooks.isDuration = isDuration; + hooks.monthsShort = listMonthsShort; + hooks.weekdaysMin = listWeekdaysMin; + hooks.defineLocale = defineLocale; + hooks.updateLocale = updateLocale; + hooks.locales = listLocales; + hooks.weekdaysShort = listWeekdaysShort; + hooks.normalizeUnits = normalizeUnits; + hooks.relativeTimeRounding = getSetRelativeTimeRounding; + hooks.relativeTimeThreshold = getSetRelativeTimeThreshold; + hooks.calendarFormat = getCalendarFormat; + hooks.prototype = proto; + hooks.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" + }; + return hooks; }); - - //! moment.js - - hooks.version = '2.29.1'; - - setHookCallback(createLocal); - - hooks.fn = proto; - hooks.min = min; - hooks.max = max; - hooks.now = now; - hooks.utc = createUTC; - hooks.unix = createUnix; - hooks.months = listMonths; - hooks.isDate = isDate; - hooks.locale = getSetGlobalLocale; - hooks.invalid = createInvalid; - hooks.duration = createDuration; - hooks.isMoment = isMoment; - hooks.weekdays = listWeekdays; - hooks.parseZone = createInZone; - hooks.localeData = getLocale; - hooks.isDuration = isDuration; - hooks.monthsShort = listMonthsShort; - hooks.weekdaysMin = listWeekdaysMin; - hooks.defineLocale = defineLocale; - hooks.updateLocale = updateLocale; - hooks.locales = listLocales; - hooks.weekdaysShort = listWeekdaysShort; - hooks.normalizeUnits = normalizeUnits; - hooks.relativeTimeRounding = getSetRelativeTimeRounding; - hooks.relativeTimeThreshold = getSetRelativeTimeThreshold; - hooks.calendarFormat = getCalendarFormat; - hooks.prototype = proto; - - // currently HTML5 input type only supports 24-hour formats - hooks.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', // - }; - - return hooks; - -}))); + } }); -class DateTime$2 { - constructor(time, _hasTimePart) { - this.time = time; - this._hasTimePart = _hasTimePart; - } - static now() { - return new DateTime$2(moment(), true); - } - static parse(time) { - if (time.length > 10) { - return new DateTime$2(moment(time, "YYYY-MM-DD HH:mm"), true); - } - else { - return new DateTime$2(moment(time, "YYYY-MM-DD"), false); - } - } - static duration(from, to, unit, defaultTime) { - return to.fixedTime(defaultTime).diff(from.fixedTime(defaultTime), unit); - } - getTimeInMillis(defaultTime) { - return this.fixedTime(defaultTime).valueOf(); - } - format(format, defaultTime) { - return this.fixedTime(defaultTime).format(format); - } - toYYYYMMMM(defaultTime) { - return this.fixedTime(defaultTime).format("YYYY, MMMM"); - } - toYYYYMMDD(defaultTime) { - return this.fixedTime(defaultTime).format("YYYY-MM-DD"); - } - add(amount, unit, defaultTime) { - return new DateTime$2(this.fixedTime(defaultTime).clone().add(amount, unit), this._hasTimePart); - } - fixedTime(defaultTime) { - if (this._hasTimePart) { - return this.time; - } - if (defaultTime === undefined) { - return this.time; - } - return this.time.clone().add(defaultTime.minutes, "minutes"); - } - get hasTimePart() { - return this._hasTimePart; - } - moment() { - return this.time; - } - isValid() { - return this.time.isValid(); - } - clone(hasTimePart) { - const withTimePart = hasTimePart == null ? this._hasTimePart : hasTimePart; - const clone = this.time.clone(); - return new DateTime$2(clone, withTimePart); - } - toString() { - if (this._hasTimePart) { - return this.format("YYYY-MM-DD HH:mm"); - } - else { - return this.format("YYYY-MM-DD"); - } - } - equals(time) { - return this._hasTimePart === time._hasTimePart - && this.time.isSame(time.time); - } -} -class Time$1 { - constructor(hour, minute) { - this.hour = hour; - this.minute = minute; - } - static parse(text) { - if (!text.match(/^\d{1,2}:\d{1,2}$/)) { - throw `Unexpected format time(${text}). Time must be HH:mm.`; - } - const s = text.split(":"); - if (s.length !== 2) { - throw `Unexpected format time(${text}). time must be HH:mm.`; +// node_modules/rrule/node_modules/tslib/tslib.js +var require_tslib = __commonJS({ + "node_modules/rrule/node_modules/tslib/tslib.js"(exports, module2) { + var __extends2; + var __assign2; + var __rest2; + var __decorate2; + var __param2; + var __metadata2; + var __awaiter2; + var __generator2; + var __exportStar2; + var __values2; + var __read2; + var __spread2; + var __spreadArrays2; + var __await2; + var __asyncGenerator2; + var __asyncDelegator2; + var __asyncValues2; + var __makeTemplateObject2; + var __importStar2; + var __importDefault2; + var __classPrivateFieldGet2; + var __classPrivateFieldSet2; + var __createBinding2; + (function(factory) { + var root = typeof global === "object" ? global : typeof self === "object" ? self : typeof this === "object" ? this : {}; + if (typeof define === "function" && define.amd) { + define("tslib", ["exports"], function(exports2) { + factory(createExporter(root, createExporter(exports2))); + }); + } else if (typeof module2 === "object" && typeof module2.exports === "object") { + factory(createExporter(root, createExporter(module2.exports))); + } else { + factory(createExporter(root)); + } + function createExporter(exports2, previous) { + if (exports2 !== root) { + if (typeof Object.create === "function") { + Object.defineProperty(exports2, "__esModule", { value: true }); + } else { + exports2.__esModule = true; + } } - const hour = parseInt(s[0]); - const minute = parseInt(s[1]); - if (hour > 23 || hour < 0) { - throw `hour must be 0~23`; + return function(id, v) { + return exports2[id] = previous ? previous(id, v) : v; + }; + } + })(function(exporter) { + var extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d, b) { + d.__proto__ = b; + } || function(d, b) { + for (var p in b) + if (b.hasOwnProperty(p)) + d[p] = b[p]; + }; + __extends2 = function(d, b) { + extendStatics(d, b); + function __() { + this.constructor = d; } - if (minute > 59 || minute < 0) { - throw `minute must be 0~59`; + d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); + }; + __assign2 = Object.assign || function(t) { + for (var s, i = 1, n = arguments.length; i < n; i++) { + s = arguments[i]; + for (var p in s) + if (Object.prototype.hasOwnProperty.call(s, p)) + t[p] = s[p]; + } + return t; + }; + __rest2 = function(s, e) { + var t = {}; + for (var p in s) + if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) + t[p] = s[p]; + if (s != null && typeof Object.getOwnPropertySymbols === "function") + for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { + if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) + t[p[i]] = s[p[i]]; + } + return t; + }; + __decorate2 = function(decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") + r = Reflect.decorate(decorators, target, key, desc); + else + for (var i = decorators.length - 1; i >= 0; i--) + if (d = decorators[i]) + r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; + }; + __param2 = function(paramIndex, decorator) { + return function(target, key) { + decorator(target, key, paramIndex); + }; + }; + __metadata2 = function(metadataKey, metadataValue) { + if (typeof Reflect === "object" && typeof Reflect.metadata === "function") + return Reflect.metadata(metadataKey, metadataValue); + }; + __awaiter2 = function(thisArg, _arguments, P, generator) { + function adopt(value) { + return value instanceof P ? value : new P(function(resolve) { + resolve(value); + }); } - return new Time$1(hour, minute); - } - get minutes() { - return this.hour * 60 + this.minute; - } - toString() { - const pad = (n) => { - if (n < 10) { - return "0" + n; + return new (P || (P = Promise))(function(resolve, reject) { + function fulfilled(value) { + try { + step(generator.next(value)); + } catch (e) { + reject(e); } - return "" + n; - }; - return `${pad(this.hour)}:${pad(this.minute)}`; - } -} -function add(amount, unit) { - return () => { - return new DateTime$2(moment(), true).add(amount, unit); - }; -} -function inMinutes(minutes) { - return add(minutes, "minutes"); -} -function inHours(hours) { - return add(hours, "hours"); -} -function inDays(days) { - return add(days, "days"); -} -function inWeeks(weeks) { - return add(weeks, "weeks"); -} -function inMonths(months) { - return add(months, "months"); -} -function inYears(years) { - return add(years, "years"); -} -function nextWeekday(weekday) { - return () => { - const today = moment(); - if (today.isoWeekday() <= weekday) { - return new DateTime$2(today.isoWeekday(weekday), false); + } + function rejected(value) { + try { + step(generator["throw"](value)); + } catch (e) { + reject(e); + } + } + function step(result) { + result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); + } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); + }; + __generator2 = function(thisArg, body) { + var _ = { label: 0, sent: function() { + if (t[0] & 1) + throw t[1]; + return t[1]; + }, trys: [], ops: [] }, f, y, t, g; + return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { + return this; + }), g; + function verb(n) { + return function(v) { + return step([n, v]); + }; + } + function step(op) { + if (f) + throw new TypeError("Generator is already executing."); + while (_) + try { + if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) + return t; + if (y = 0, t) + op = [op[0] & 2, t.value]; + switch (op[0]) { + case 0: + case 1: + t = op; + break; + case 4: + _.label++; + return { value: op[1], done: false }; + case 5: + _.label++; + y = op[1]; + op = [0]; + continue; + case 7: + op = _.ops.pop(); + _.trys.pop(); + continue; + default: + if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { + _ = 0; + continue; + } + if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) { + _.label = op[1]; + break; + } + if (op[0] === 6 && _.label < t[1]) { + _.label = t[1]; + t = op; + break; + } + if (t && _.label < t[2]) { + _.label = t[2]; + _.ops.push(op); + break; + } + if (t[2]) + _.ops.pop(); + _.trys.pop(); + continue; + } + op = body.call(thisArg, _); + } catch (e) { + op = [6, e]; + y = 0; + } finally { + f = t = 0; + } + if (op[0] & 5) + throw op[1]; + return { value: op[0] ? op[1] : void 0, done: true }; } - else { - return new DateTime$2(today.add(1, "weeks").isoWeekday(weekday), false); + }; + __createBinding2 = function(o, m, k, k2) { + if (k2 === void 0) + k2 = k; + o[k2] = m[k]; + }; + __exportStar2 = function(m, exports2) { + for (var p in m) + if (p !== "default" && !exports2.hasOwnProperty(p)) + exports2[p] = m[p]; + }; + __values2 = function(o) { + var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; + if (m) + return m.call(o); + if (o && typeof o.length === "number") + return { + next: function() { + if (o && i >= o.length) + o = void 0; + return { value: o && o[i++], done: !o }; + } + }; + throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); + }; + __read2 = function(o, n) { + var m = typeof Symbol === "function" && o[Symbol.iterator]; + if (!m) + return o; + var i = m.call(o), r, ar = [], e; + try { + while ((n === void 0 || n-- > 0) && !(r = i.next()).done) + ar.push(r.value); + } catch (error) { + e = { error }; + } finally { + try { + if (r && !r.done && (m = i["return"])) + m.call(i); + } finally { + if (e) + throw e.error; + } } - }; -} -function tomorrow() { - return () => { - return new DateTime$2(moment().add(1, "days"), false); - }; -} -function nextWeek() { - return () => { - return new DateTime$2(moment().add(1, "weeks"), false); - }; -} -function nextMonth() { - return () => { - return new DateTime$2(moment().add(1, "months"), false); - }; -} -function nextYear() { - return () => { - return new DateTime$2(moment().add(1, "years"), false); - }; -} -class Later { - constructor(label, later) { - this.label = label; - this.later = later; - } -} -function parseLaters(laters) { - return laters.split("\n").map(l => parseLater(l.trim())); -} -function parseLater(later) { - later = later.toLowerCase(); - if (later.startsWith("in")) { - const tokens = later.split(" "); - if (tokens.length !== 3) { - throw `Unsupported format. Should be 'In N (minutes|hours)'`; - } - const n = tokens[1] === "a" || tokens[1] === "an" ? 1 : parseInt(tokens[1]); - switch (tokens[2]) { - case "minute": - case "minutes": - { - const unit = n == 1 ? "minute" : "minutes"; - return new Later(`In ${n} ${unit}`, inMinutes(n)); - } - case "hour": - case "hours": - { - const unit = n == 1 ? "hour" : "hours"; - return new Later(`In ${n} ${unit}`, inHours(n)); - } - case "day": - case "days": - { - const unit = n == 1 ? "day" : "days"; - return new Later(`In ${n} ${unit}`, inDays(n)); - } - case "week": - case "weeks": - { - const unit = n == 1 ? "week" : "weeks"; - return new Later(`In ${n} ${unit}`, inWeeks(n)); - } - case "month": - case "months": - { - const unit = n == 1 ? "month" : "months"; - return new Later(`In ${n} ${unit}`, inMonths(n)); - } - case "year": - case "years": - { - const unit = n == 1 ? "year" : "years"; - return new Later(`In ${n} ${unit}`, inYears(n)); - } + return ar; + }; + __spread2 = function() { + for (var ar = [], i = 0; i < arguments.length; i++) + ar = ar.concat(__read2(arguments[i])); + return ar; + }; + __spreadArrays2 = function() { + for (var s = 0, i = 0, il = arguments.length; i < il; i++) + s += arguments[i].length; + for (var r = Array(s), k = 0, i = 0; i < il; i++) + for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++) + r[k] = a[j]; + return r; + }; + __await2 = function(v) { + return this instanceof __await2 ? (this.v = v, this) : new __await2(v); + }; + __asyncGenerator2 = function(thisArg, _arguments, generator) { + if (!Symbol.asyncIterator) + throw new TypeError("Symbol.asyncIterator is not defined."); + var g = generator.apply(thisArg, _arguments || []), i, q = []; + return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function() { + return this; + }, i; + function verb(n) { + if (g[n]) + i[n] = function(v) { + return new Promise(function(a, b) { + q.push([n, v, a, b]) > 1 || resume(n, v); + }); + }; } - } - else if (later.startsWith("next")) { - const weekday = later.substring(5); - switch (weekday) { - case "sunday": - return new Later("Next Sunday", nextWeekday(0)); - case "monday": - return new Later("Next Monday", nextWeekday(1)); - case "tuesday": - return new Later("Next Tuesday", nextWeekday(2)); - case "wednesday": - return new Later("Next Wednesday", nextWeekday(3)); - case "thursday": - return new Later("Next Thursday", nextWeekday(4)); - case "friday": - return new Later("Next Friday", nextWeekday(5)); - case "saturday": - return new Later("Next Saturday", nextWeekday(6)); - case "day": - return new Later("Tomorrow", tomorrow()); - case "week": - return new Later("Next week", nextWeek()); - case "month": - return new Later("Next month", nextMonth()); - case "year": - return new Later("Next year", nextYear()); - default: - throw `Unsupported weekday: ${weekday}`; + function resume(n, v) { + try { + step(g[n](v)); + } catch (e) { + settle(q[0][3], e); + } } - } - else if (later === "tomorrow") { - return new Later("Tomorrow", tomorrow()); - } - throw `Unsupported format: ${later}`; -} -[ - new Later("In 30 minutes", inMinutes(30)), - new Later("In 1 hours", inHours(1)), - new Later("In 3 hours", inHours(3)), - new Later("Tomorrow", tomorrow()), - new Later("Next week", nextWeek()), -]; -class DateTimeFormatter { - constructor() { - this.dateFormat = new ConstantReference("YYYY-MM-DD"); - this.dateTimeFormat = new ConstantReference("YYYY-MM-DD HH:mm"); - this.strict = new ConstantReference(false); - } - setTimeFormat(dateFormat, dateTimeFormat, strict) { - this.dateFormat = dateFormat; - this.dateTimeFormat = dateTimeFormat; - this.strict = strict; - } - parse(text) { - const parsed = this.doParse(text, true); - if (parsed != null) { - return parsed; + function step(r) { + r.value instanceof __await2 ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } - if (this.strict.value) { - return null; + function fulfill(value) { + resume("next", value); } - return this.doParse(text, false); - } - doParse(text, strict) { - const dateTime = moment(text, this.dateTimeFormat.value, strict); - if (dateTime.isValid()) { - return new DateTime$2(dateTime, true); + function reject(value) { + resume("throw", value); } - const date = moment(text, this.dateFormat.value, strict); - if (date.isValid()) { - return new DateTime$2(date, false); + function settle(f, v) { + if (f(v), q.shift(), q.length) + resume(q[0][0], q[0][1]); } - return null; - } - toString(time) { - if (time.hasTimePart) { - return time.format(this.dateTimeFormat.value); + }; + __asyncDelegator2 = function(o) { + var i, p; + return i = {}, verb("next"), verb("throw", function(e) { + throw e; + }), verb("return"), i[Symbol.iterator] = function() { + return this; + }, i; + function verb(n, f) { + i[n] = o[n] ? function(v) { + return (p = !p) ? { value: __await2(o[n](v)), done: n === "return" } : f ? f(v) : v; + } : f; + } + }; + __asyncValues2 = function(o) { + if (!Symbol.asyncIterator) + throw new TypeError("Symbol.asyncIterator is not defined."); + var m = o[Symbol.asyncIterator], i; + return m ? m.call(o) : (o = typeof __values2 === "function" ? __values2(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function() { + return this; + }, i); + function verb(n) { + i[n] = o[n] && function(v) { + return new Promise(function(resolve, reject) { + v = o[n](v), settle(resolve, reject, v.done, v.value); + }); + }; } - else { - return time.format(this.dateFormat.value); + function settle(resolve, reject, d, v) { + Promise.resolve(v).then(function(v2) { + resolve({ value: v2, done: d }); + }, reject); } - } -} -const DATE_TIME_FORMATTER = new DateTimeFormatter(); - -class Reminder$1 { - constructor(file, title, time, rowNumber, done) { - this.file = file; - this.title = title; - this.time = time; - this.rowNumber = rowNumber; - this.done = done; - // To avoid duplicate notification, set this flag true before notification and set false on notification done. - this.muteNotification = false; - /* Given that `muteNotification` above is playing double duty, we need a flag - * that lets us serialize reminder display to prevent overload problems on - * mobile. - * - * It should be set to `true` before the reminder is displayed, and then set - * to false once the reminder is dealt with. - */ - this.beingDisplayed = false; - } - key() { - return this.file + this.title + this.time.toString(); - } - equals(reminder) { - return this.rowNumber === reminder.rowNumber - && this.title === reminder.title - && this.time.equals(reminder.time) - && this.file === reminder.file; - } - getFileName() { - const p = this.file.split(/[\/\\]/); - return p[p.length - 1].replace(/^(.*?)(\..+)?$/, "$1"); - } - static extractFileName(path) { - const p = path.split(/[\/\\]/); - return p[p.length - 1].replace(/^(.*?)(\..+)?$/, "$1"); - } -} -class Reminders { - constructor(onChange) { - this.onChange = onChange; - this.fileToReminders = new Map(); - this.reminders = []; - } - getExpiredReminders(defaultTime) { - const now = new Date().getTime(); - const result = []; - for (let i = 0; i < this.reminders.length; i++) { - const reminder = this.reminders[i]; - if (reminder.time.getTimeInMillis(defaultTime) <= now) { - result.push(reminder); - } - else { - break; - } + }; + __makeTemplateObject2 = function(cooked, raw) { + if (Object.defineProperty) { + Object.defineProperty(cooked, "raw", { value: raw }); + } else { + cooked.raw = raw; } + return cooked; + }; + __importStar2 = function(mod) { + if (mod && mod.__esModule) + return mod; + var result = {}; + if (mod != null) { + for (var k in mod) + if (Object.hasOwnProperty.call(mod, k)) + result[k] = mod[k]; + } + result["default"] = mod; return result; - } - byDate(date) { - return this.reminders.filter(reminder => reminder.time.toYYYYMMDD() === date.toYYYYMMDD()); - } - removeReminder(reminder) { - console.debug("Remove reminder: %o", reminder); - this.reminders.remove(reminder); - const file = this.fileToReminders.get(reminder.file); - if (file) { - file.remove(reminder); - if (file.length === 0) { - this.fileToReminders.delete(reminder.file); - } + }; + __importDefault2 = function(mod) { + return mod && mod.__esModule ? mod : { "default": mod }; + }; + __classPrivateFieldGet2 = function(receiver, privateMap) { + if (!privateMap.has(receiver)) { + throw new TypeError("attempted to get private field on non-instance"); + } + return privateMap.get(receiver); + }; + __classPrivateFieldSet2 = function(receiver, privateMap, value) { + if (!privateMap.has(receiver)) { + throw new TypeError("attempted to set private field on non-instance"); } - this.onChange(); + privateMap.set(receiver, value); + return value; + }; + exporter("__extends", __extends2); + exporter("__assign", __assign2); + exporter("__rest", __rest2); + exporter("__decorate", __decorate2); + exporter("__param", __param2); + exporter("__metadata", __metadata2); + exporter("__awaiter", __awaiter2); + exporter("__generator", __generator2); + exporter("__exportStar", __exportStar2); + exporter("__createBinding", __createBinding2); + exporter("__values", __values2); + exporter("__read", __read2); + exporter("__spread", __spread2); + exporter("__spreadArrays", __spreadArrays2); + exporter("__await", __await2); + exporter("__asyncGenerator", __asyncGenerator2); + exporter("__asyncDelegator", __asyncDelegator2); + exporter("__asyncValues", __asyncValues2); + exporter("__makeTemplateObject", __makeTemplateObject2); + exporter("__importStar", __importStar2); + exporter("__importDefault", __importDefault2); + exporter("__classPrivateFieldGet", __classPrivateFieldGet2); + exporter("__classPrivateFieldSet", __classPrivateFieldSet2); + }); + } +}); + +// node_modules/luxon/build/cjs-browser/luxon.js +var require_luxon = __commonJS({ + "node_modules/luxon/build/cjs-browser/luxon.js"(exports) { + "use strict"; + Object.defineProperty(exports, "__esModule", { value: true }); + function _defineProperties(target, props) { + for (var i = 0; i < props.length; i++) { + var descriptor = props[i]; + descriptor.enumerable = descriptor.enumerable || false; + descriptor.configurable = true; + if ("value" in descriptor) + descriptor.writable = true; + Object.defineProperty(target, descriptor.key, descriptor); + } } - clear() { - this.fileToReminders.clear(); - this.reminders = []; - this.onChange(); + function _createClass(Constructor, protoProps, staticProps) { + if (protoProps) + _defineProperties(Constructor.prototype, protoProps); + if (staticProps) + _defineProperties(Constructor, staticProps); + return Constructor; + } + function _inheritsLoose(subClass, superClass) { + subClass.prototype = Object.create(superClass.prototype); + subClass.prototype.constructor = subClass; + subClass.__proto__ = superClass; + } + function _getPrototypeOf(o) { + _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf2(o2) { + return o2.__proto__ || Object.getPrototypeOf(o2); + }; + return _getPrototypeOf(o); } - removeFile(filePath) { - if (this.fileToReminders.delete(filePath)) { - this.sortReminders(); - return true; - } - return false; + function _setPrototypeOf(o, p) { + _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf2(o2, p2) { + o2.__proto__ = p2; + return o2; + }; + return _setPrototypeOf(o, p); } - replaceFile(filePath, reminders) { - // migrate notificationVisible property - const oldReminders = this.fileToReminders.get(filePath); - if (oldReminders) { - if (this.equals(oldReminders, reminders)) { - return false; - } - const reminderToNotificationVisible = new Map(); - for (const reminder of oldReminders) { - reminderToNotificationVisible.set(reminder.key(), reminder.muteNotification); - } - for (const reminder of reminders) { - const visible = reminderToNotificationVisible.get(reminder.key()); - reminderToNotificationVisible.set(reminder.key(), reminder.muteNotification); - if (visible !== undefined) { - reminder.muteNotification = visible; - } - } - } - // update - this.fileToReminders.set(filePath, reminders); - this.sortReminders(); + function _isNativeReflectConstruct() { + if (typeof Reflect === "undefined" || !Reflect.construct) + return false; + if (Reflect.construct.sham) + return false; + if (typeof Proxy === "function") return true; - } - equals(r1, r2) { - if (r1.length !== r2.length) { - return false; - } - this.sort(r1); - this.sort(r2); - for (const i in r1) { - const reminder1 = r1[i]; - const reminder2 = r2[i]; - if (reminder1 == null && reminder2 != null) { - return false; - } - if (reminder2 == null && reminder1 != null) { - return false; - } - if (reminder1 == null && reminder2 == null) { - continue; - } - if (!reminder1.equals(reminder2)) { - return false; - } - } + try { + Date.prototype.toString.call(Reflect.construct(Date, [], function() { + })); return true; + } catch (e) { + return false; + } } - sortReminders() { - const reminders = []; - for (const r of this.fileToReminders.values()) { - reminders.push(...r); - } - this.sort(reminders); - this.reminders = reminders; - this.onChange(); - } - sort(reminders) { - reminders.sort((a, b) => { - var _a, _b; - const d = a.time.getTimeInMillis((_a = this.reminderTime) === null || _a === void 0 ? void 0 : _a.value) - - b.time.getTimeInMillis((_b = this.reminderTime) === null || _b === void 0 ? void 0 : _b.value); - return d > 0 ? 1 : d < 0 ? -1 : 0; + function _construct(Parent, args, Class) { + if (_isNativeReflectConstruct()) { + _construct = Reflect.construct; + } else { + _construct = function _construct2(Parent2, args2, Class2) { + var a = [null]; + a.push.apply(a, args2); + var Constructor = Function.bind.apply(Parent2, a); + var instance8 = new Constructor(); + if (Class2) + _setPrototypeOf(instance8, Class2.prototype); + return instance8; + }; + } + return _construct.apply(null, arguments); + } + function _isNativeFunction(fn) { + return Function.toString.call(fn).indexOf("[native code]") !== -1; + } + function _wrapNativeSuper(Class) { + var _cache = typeof Map === "function" ? /* @__PURE__ */ new Map() : void 0; + _wrapNativeSuper = function _wrapNativeSuper2(Class2) { + if (Class2 === null || !_isNativeFunction(Class2)) + return Class2; + if (typeof Class2 !== "function") { + throw new TypeError("Super expression must either be null or a function"); + } + if (typeof _cache !== "undefined") { + if (_cache.has(Class2)) + return _cache.get(Class2); + _cache.set(Class2, Wrapper); + } + function Wrapper() { + return _construct(Class2, arguments, _getPrototypeOf(this).constructor); + } + Wrapper.prototype = Object.create(Class2.prototype, { + constructor: { + value: Wrapper, + enumerable: false, + writable: true, + configurable: true + } }); + return _setPrototypeOf(Wrapper, Class2); + }; + return _wrapNativeSuper(Class); + } + function _objectWithoutPropertiesLoose(source, excluded) { + if (source == null) + return {}; + var target = {}; + var sourceKeys = Object.keys(source); + var key, i; + for (i = 0; i < sourceKeys.length; i++) { + key = sourceKeys[i]; + if (excluded.indexOf(key) >= 0) + continue; + target[key] = source[key]; + } + return target; } -} -function generateGroup(time, now, reminderTime) { - const days = DateTime$2.duration(now, time, "days", reminderTime); - if (days > 30) { - return new Group(time.toYYYYMMMM(reminderTime), (time) => time.format("MM/DD", reminderTime)); - } - if (days >= 7) { - return new Group("Over 1 week", (time) => time.format("MM/DD", reminderTime)); - } - if (time.toYYYYMMDD(reminderTime) === now.toYYYYMMDD(reminderTime)) { - const todaysGroup = new Group("Today", (time) => time.format("HH:mm", reminderTime)); - todaysGroup.isToday = true; - return todaysGroup; + function _unsupportedIterableToArray(o, minLen) { + if (!o) + return; + if (typeof o === "string") + return _arrayLikeToArray(o, minLen); + var n2 = Object.prototype.toString.call(o).slice(8, -1); + if (n2 === "Object" && o.constructor) + n2 = o.constructor.name; + if (n2 === "Map" || n2 === "Set") + return Array.from(n2); + if (n2 === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n2)) + return _arrayLikeToArray(o, minLen); + } + function _arrayLikeToArray(arr, len) { + if (len == null || len > arr.length) + len = arr.length; + for (var i = 0, arr2 = new Array(len); i < len; i++) + arr2[i] = arr[i]; + return arr2; + } + function _createForOfIteratorHelperLoose(o) { + var i = 0; + if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { + if (Array.isArray(o) || (o = _unsupportedIterableToArray(o))) + return function() { + if (i >= o.length) + return { + done: true + }; + return { + done: false, + value: o[i++] + }; + }; + throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); + } + i = o[Symbol.iterator](); + return i.next.bind(i); } - if (time.toYYYYMMDD(reminderTime) === - now.add(1, "days", reminderTime).toYYYYMMDD()) { - return new Group("Tomorrow", (time) => time.format("HH:mm", reminderTime)); + var LuxonError = /* @__PURE__ */ function(_Error) { + _inheritsLoose(LuxonError2, _Error); + function LuxonError2() { + return _Error.apply(this, arguments) || this; + } + return LuxonError2; + }(/* @__PURE__ */ _wrapNativeSuper(Error)); + var InvalidDateTimeError = /* @__PURE__ */ function(_LuxonError) { + _inheritsLoose(InvalidDateTimeError2, _LuxonError); + function InvalidDateTimeError2(reason) { + return _LuxonError.call(this, "Invalid DateTime: " + reason.toMessage()) || this; + } + return InvalidDateTimeError2; + }(LuxonError); + var InvalidIntervalError = /* @__PURE__ */ function(_LuxonError2) { + _inheritsLoose(InvalidIntervalError2, _LuxonError2); + function InvalidIntervalError2(reason) { + return _LuxonError2.call(this, "Invalid Interval: " + reason.toMessage()) || this; + } + return InvalidIntervalError2; + }(LuxonError); + var InvalidDurationError = /* @__PURE__ */ function(_LuxonError3) { + _inheritsLoose(InvalidDurationError2, _LuxonError3); + function InvalidDurationError2(reason) { + return _LuxonError3.call(this, "Invalid Duration: " + reason.toMessage()) || this; + } + return InvalidDurationError2; + }(LuxonError); + var ConflictingSpecificationError = /* @__PURE__ */ function(_LuxonError4) { + _inheritsLoose(ConflictingSpecificationError2, _LuxonError4); + function ConflictingSpecificationError2() { + return _LuxonError4.apply(this, arguments) || this; + } + return ConflictingSpecificationError2; + }(LuxonError); + var InvalidUnitError = /* @__PURE__ */ function(_LuxonError5) { + _inheritsLoose(InvalidUnitError2, _LuxonError5); + function InvalidUnitError2(unit) { + return _LuxonError5.call(this, "Invalid unit " + unit) || this; + } + return InvalidUnitError2; + }(LuxonError); + var InvalidArgumentError = /* @__PURE__ */ function(_LuxonError6) { + _inheritsLoose(InvalidArgumentError2, _LuxonError6); + function InvalidArgumentError2() { + return _LuxonError6.apply(this, arguments) || this; + } + return InvalidArgumentError2; + }(LuxonError); + var ZoneIsAbstractError = /* @__PURE__ */ function(_LuxonError7) { + _inheritsLoose(ZoneIsAbstractError2, _LuxonError7); + function ZoneIsAbstractError2() { + return _LuxonError7.call(this, "Zone is an abstract class") || this; + } + return ZoneIsAbstractError2; + }(LuxonError); + var n = "numeric"; + var s = "short"; + var l = "long"; + var DATE_SHORT = { + year: n, + month: n, + day: n + }; + var DATE_MED = { + year: n, + month: s, + day: n + }; + var DATE_MED_WITH_WEEKDAY = { + year: n, + month: s, + day: n, + weekday: s + }; + var DATE_FULL = { + year: n, + month: l, + day: n + }; + var DATE_HUGE = { + year: n, + month: l, + day: n, + weekday: l + }; + var TIME_SIMPLE = { + hour: n, + minute: n + }; + var TIME_WITH_SECONDS = { + hour: n, + minute: n, + second: n + }; + var TIME_WITH_SHORT_OFFSET = { + hour: n, + minute: n, + second: n, + timeZoneName: s + }; + var TIME_WITH_LONG_OFFSET = { + hour: n, + minute: n, + second: n, + timeZoneName: l + }; + var TIME_24_SIMPLE = { + hour: n, + minute: n, + hour12: false + }; + var TIME_24_WITH_SECONDS = { + hour: n, + minute: n, + second: n, + hour12: false + }; + var TIME_24_WITH_SHORT_OFFSET = { + hour: n, + minute: n, + second: n, + hour12: false, + timeZoneName: s + }; + var TIME_24_WITH_LONG_OFFSET = { + hour: n, + minute: n, + second: n, + hour12: false, + timeZoneName: l + }; + var DATETIME_SHORT = { + year: n, + month: n, + day: n, + hour: n, + minute: n + }; + var DATETIME_SHORT_WITH_SECONDS = { + year: n, + month: n, + day: n, + hour: n, + minute: n, + second: n + }; + var DATETIME_MED = { + year: n, + month: s, + day: n, + hour: n, + minute: n + }; + var DATETIME_MED_WITH_SECONDS = { + year: n, + month: s, + day: n, + hour: n, + minute: n, + second: n + }; + var DATETIME_MED_WITH_WEEKDAY = { + year: n, + month: s, + day: n, + weekday: s, + hour: n, + minute: n + }; + var DATETIME_FULL = { + year: n, + month: l, + day: n, + hour: n, + minute: n, + timeZoneName: s + }; + var DATETIME_FULL_WITH_SECONDS = { + year: n, + month: l, + day: n, + hour: n, + minute: n, + second: n, + timeZoneName: s + }; + var DATETIME_HUGE = { + year: n, + month: l, + day: n, + weekday: l, + hour: n, + minute: n, + timeZoneName: l + }; + var DATETIME_HUGE_WITH_SECONDS = { + year: n, + month: l, + day: n, + weekday: l, + hour: n, + minute: n, + second: n, + timeZoneName: l + }; + function isUndefined(o) { + return typeof o === "undefined"; } - return new Group(time.format("M/DD (ddd)", reminderTime), (time) => time.format("HH:mm", reminderTime)); -} -class Group { - constructor(name, timeToStringFunc) { - this.name = name; - this.timeToStringFunc = timeToStringFunc; - this.isToday = false; - this.isOverdue = false; + function isNumber2(o) { + return typeof o === "number"; } - timeToString(time) { - return this.timeToStringFunc(time); + function isInteger(o) { + return typeof o === "number" && o % 1 === 0; } -} -function groupReminders(sortedReminders, reminderTime) { - const now = DateTime$2.now(); - const result = []; - let currentReminders = []; - const overdueReminders = []; - // Always shows today's group - let previousGroup = generateGroup(now, now, reminderTime); - for (let i = 0; i < sortedReminders.length; i++) { - const r = sortedReminders[i]; - if (r.muteNotification) { - overdueReminders.push(r); - continue; - } - const group = generateGroup(r.time, now, reminderTime); - if (group.name !== previousGroup.name) { - if (currentReminders.length > 0 || previousGroup.isToday) { - result.push(new GroupedReminder(previousGroup, currentReminders)); - } - currentReminders = []; - } - currentReminders.push(r); - previousGroup = group; + function isString(o) { + return typeof o === "string"; } - if (currentReminders.length > 0) { - result.push(new GroupedReminder(previousGroup, currentReminders)); + function isDate(o) { + return Object.prototype.toString.call(o) === "[object Date]"; } - if (overdueReminders.length > 0) { - const overdueGroup = new Group("Overdue", (time) => time.format("HH:mm", reminderTime)); - overdueGroup.isOverdue = true; - result.splice(0, 0, new GroupedReminder(overdueGroup, overdueReminders)); - console.log(overdueGroup); - console.log(result); + function hasIntl() { + try { + return typeof Intl !== "undefined" && Intl.DateTimeFormat; + } catch (e) { + return false; + } } - return result; -} -class GroupedReminder { - constructor(group, reminders) { - this.group = group; - this.reminders = reminders; + function hasFormatToParts() { + return !isUndefined(Intl.DateTimeFormat.prototype.formatToParts); } - get name() { - return this.group.name; + function hasRelative() { + try { + return typeof Intl !== "undefined" && !!Intl.RelativeTimeFormat; + } catch (e) { + return false; + } } - get isOverdue() { - return this.group.isOverdue; + function maybeArray(thing) { + return Array.isArray(thing) ? thing : [thing]; } - timeToString(time) { - return this.group.timeToString(time); + function bestBy(arr, by, compare) { + if (arr.length === 0) { + return void 0; + } + return arr.reduce(function(best, next) { + var pair = [by(next), next]; + if (!best) { + return pair; + } else if (compare(best[0], pair[0]) === best[0]) { + return best; + } else { + return pair; + } + }, null)[1]; } -} - -class ReminderFormatParameterKey { - constructor(key, defaultValue) { - this.key = key; - this.defaultValue = defaultValue; + function pick(obj, keys) { + return keys.reduce(function(a, k) { + a[k] = obj[k]; + return a; + }, {}); } -} -ReminderFormatParameterKey.now = new ReminderFormatParameterKey("now", DateTime$2.now()); -ReminderFormatParameterKey.useCustomEmojiForTasksPlugin = new ReminderFormatParameterKey("useCustomEmojiForTasksPlugin", false); -ReminderFormatParameterKey.removeTagsForTasksPlugin = new ReminderFormatParameterKey("removeTagsForTasksPlugin", false); -ReminderFormatParameterKey.linkDatesToDailyNotes = new ReminderFormatParameterKey("linkDatesToDailyNotes", false); -ReminderFormatParameterKey.strictDateFormat = new ReminderFormatParameterKey("strictDateFormat", false); -class ReminderFormatConfig { - constructor() { - this.parameters = new Map(); - } - /** - * Set parameter for this format. - * - * @param key parameter key - */ - setParameter(key, value) { - this.parameters.set(key.key, () => value.value); - } - /** - * Set parameter for this format. - * - * @param key parameter key - */ - setParameterFunc(key, f) { - this.parameters.set(key.key, f); - } - setParameterValue(key, value) { - this.parameters.set(key.key, () => value); - } - getParameter(key) { - const value = this.parameters.get(key.key); - if (value == null) { - return key.defaultValue; - } - return value(); + function hasOwnProperty(obj, prop) { + return Object.prototype.hasOwnProperty.call(obj, prop); } -} -class TodoBasedReminderFormat { - constructor() { - this.config = new ReminderFormatConfig(); + function integerBetween(thing, bottom, top) { + return isInteger(thing) && thing >= bottom && thing <= top; } - setConfig(config) { - this.config = config; + function floorMod(x, n2) { + return x - n2 * Math.floor(x / n2); } - parse(doc) { - return doc.getTodos() - .map(todo => { - const parsed = this.parseValidReminder(todo); - if (parsed == null) { - return null; - } - const title = parsed.getTitle(); - if (title == null) { - return null; - } - const time = parsed.getTime(); - if (time == null) { - return null; - } - return new Reminder$1(doc.file, title, time, todo.lineIndex, todo.isChecked()); - }) - .filter((reminder) => reminder != null); - } - modify(doc, reminder, edit) { - return __awaiter(this, void 0, void 0, function* () { - const todo = doc.getTodo(reminder.rowNumber); - if (todo === null) { - console.warn("Not a todo: reminder=%o", reminder); - return false; - } - const parsed = this.parseValidReminder(todo); - if (parsed === null) { - return false; - } - if (!this.modifyReminder(doc, todo, parsed, edit)) { - return false; - } - todo.body = parsed.toMarkdown(); - return true; - }); + function padStart2(input, n2) { + if (n2 === void 0) { + n2 = 2; + } + var minus = input < 0 ? "-" : ""; + var target = minus ? input * -1 : input; + var result; + if (target.toString().length < n2) { + result = ("0".repeat(n2) + target).slice(-n2); + } else { + result = target.toString(); + } + return "" + minus + result; } - parseValidReminder(todo) { - const parsed = this.parseReminder(todo); - if (parsed === null) { - return null; - } - if (!this.isValidReminder(parsed)) { - return null; - } - return parsed; + function parseInteger(string) { + if (isUndefined(string) || string === null || string === "") { + return void 0; + } else { + return parseInt(string, 10); + } } - isValidReminder(reminder) { - return reminder.getTime() !== null; + function parseMillis(fraction) { + if (isUndefined(fraction) || fraction === null || fraction === "") { + return void 0; + } else { + var f = parseFloat("0." + fraction) * 1e3; + return Math.floor(f); + } } - modifyReminder(doc, todo, parsed, edit) { - if (edit.rawTime !== undefined) { - if (!parsed.setRawTime(edit.rawTime)) { - console.warn("The reminder doesn't support raw time: parsed=%o", parsed); - return false; - } - } - else if (edit.time !== undefined) { - parsed.setTime(edit.time); - } - if (edit.checked !== undefined) { - todo.setChecked(edit.checked); - } - return true; + function roundTo(number, digits, towardZero) { + if (towardZero === void 0) { + towardZero = false; + } + var factor = Math.pow(10, digits), rounder = towardZero ? Math.trunc : Math.round; + return rounder(number * factor) / factor; } - appendReminder(line, time) { - const todo = Todo.parse(0, line); - if (todo == null) { - return null; - } - let parsed = this.parseReminder(todo); - if (parsed != null) { - parsed.setTime(time); - } - else { - parsed = this.newReminder(todo.body, time); - parsed.setTime(time); - } - todo.body = parsed.toMarkdown(); - return todo.toMarkdown(); + function isLeapYear(year) { + return year % 4 === 0 && (year % 100 !== 0 || year % 400 === 0); } - isStrictDateFormat() { - return this.config.getParameter(ReminderFormatParameterKey.strictDateFormat); + function daysInYear(year) { + return isLeapYear(year) ? 366 : 365; } -} -class CompositeReminderFormat { - constructor() { - this.formats = []; - } - setConfig(config) { - this.config = config; - this.syncConfig(); - } - parse(doc) { - const reminders = []; - for (const format of this.formats) { - const parsed = format.parse(doc); - if (parsed == null) { - continue; - } - reminders.push(...parsed); - } - return reminders; - } - modify(doc, reminder, edit) { - return __awaiter(this, void 0, void 0, function* () { - for (const format of this.formats) { - const modified = yield format.modify(doc, reminder, edit); - if (modified) { - return true; - } - } - return false; - }); - } - resetFormat(formats) { - this.formats = formats; - this.syncConfig(); - } - syncConfig() { - if (this.config == null) { - return; - } - this.formats.forEach(f => f.setConfig(this.config)); - } - appendReminder(line, time) { - if (this.formats[0] == null) { - return null; - } - return this.formats[0].appendReminder(line, time); - } -} - -class DefaultReminderModel { - constructor(linkDatesToDailyNotes, title1, time, title2) { - this.linkDatesToDailyNotes = linkDatesToDailyNotes; - this.title1 = title1; - this.time = time; - this.title2 = title2; - } - static parse(line, linkDatesToDailyNotes) { - if (linkDatesToDailyNotes == null) { - linkDatesToDailyNotes = false; - } - const result = DefaultReminderModel.regexp.exec(line); - if (result == null) { - return null; - } - const title1 = result.groups['title1']; - let time = result.groups['time']; - if (time == null) { - return null; - } - const title2 = result.groups['title2']; - if (linkDatesToDailyNotes) { - time = time.replace("[[", ""); - time = time.replace("]]", ""); - } - return new DefaultReminderModel(linkDatesToDailyNotes, title1, time, title2); + function daysInMonth(year, month) { + var modMonth = floorMod(month - 1, 12) + 1, modYear = year + (month - modMonth) / 12; + if (modMonth === 2) { + return isLeapYear(modYear) ? 29 : 28; + } else { + return [31, null, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31][modMonth - 1]; + } } - getTitle() { - return `${this.title1.trim()} ${this.title2.trim()}`.trim(); + function objToLocalTS(obj) { + var d = Date.UTC(obj.year, obj.month - 1, obj.day, obj.hour, obj.minute, obj.second, obj.millisecond); + if (obj.year < 100 && obj.year >= 0) { + d = new Date(d); + d.setUTCFullYear(d.getUTCFullYear() - 1900); + } + return +d; } - getTime() { - return DATE_TIME_FORMATTER.parse(this.time); + function weeksInWeekYear(weekYear) { + var p1 = (weekYear + Math.floor(weekYear / 4) - Math.floor(weekYear / 100) + Math.floor(weekYear / 400)) % 7, last = weekYear - 1, p2 = (last + Math.floor(last / 4) - Math.floor(last / 100) + Math.floor(last / 400)) % 7; + return p1 === 4 || p2 === 3 ? 53 : 52; } - setTime(time) { - this.time = DATE_TIME_FORMATTER.toString(time); + function untruncateYear(year) { + if (year > 99) { + return year; + } else + return year > 60 ? 1900 + year : 2e3 + year; } - setRawTime(rawTime) { - this.time = rawTime; - return true; + function parseZoneInfo(ts, offsetFormat, locale, timeZone) { + if (timeZone === void 0) { + timeZone = null; + } + var date = new Date(ts), intlOpts = { + hour12: false, + year: "numeric", + month: "2-digit", + day: "2-digit", + hour: "2-digit", + minute: "2-digit" + }; + if (timeZone) { + intlOpts.timeZone = timeZone; + } + var modified = Object.assign({ + timeZoneName: offsetFormat + }, intlOpts), intl = hasIntl(); + if (intl && hasFormatToParts()) { + var parsed = new Intl.DateTimeFormat(locale, modified).formatToParts(date).find(function(m) { + return m.type.toLowerCase() === "timezonename"; + }); + return parsed ? parsed.value : null; + } else if (intl) { + var without = new Intl.DateTimeFormat(locale, intlOpts).format(date), included = new Intl.DateTimeFormat(locale, modified).format(date), diffed = included.substring(without.length), trimmed = diffed.replace(/^[, \u200e]+/, ""); + return trimmed; + } else { + return null; + } } - toMarkdown() { - let result = `${this.title1}(@${this.time})${this.title2}`; - if (!this.linkDatesToDailyNotes) { - return result; - } - let time = DATE_TIME_FORMATTER.parse(this.time); - if (!time) { - return result; + function signedOffset(offHourStr, offMinuteStr) { + var offHour = parseInt(offHourStr, 10); + if (Number.isNaN(offHour)) { + offHour = 0; + } + var offMin = parseInt(offMinuteStr, 10) || 0, offMinSigned = offHour < 0 || Object.is(offHour, -0) ? -offMin : offMin; + return offHour * 60 + offMinSigned; + } + function asNumber(value) { + var numericValue = Number(value); + if (typeof value === "boolean" || value === "" || Number.isNaN(numericValue)) + throw new InvalidArgumentError("Invalid unit value " + value); + return numericValue; + } + function normalizeObject(obj, normalizer, nonUnitKeys) { + var normalized = {}; + for (var u in obj) { + if (hasOwnProperty(obj, u)) { + if (nonUnitKeys.indexOf(u) >= 0) + continue; + var v = obj[u]; + if (v === void 0 || v === null) + continue; + normalized[normalizer(u)] = asNumber(v); } - const date = DATE_TIME_FORMATTER.toString(time.clone(false)); - return result.replace(date, `[[${date}]]`); + } + return normalized; + } + function formatOffset(offset2, format) { + var hours = Math.trunc(Math.abs(offset2 / 60)), minutes = Math.trunc(Math.abs(offset2 % 60)), sign = offset2 >= 0 ? "+" : "-"; + switch (format) { + case "short": + return "" + sign + padStart2(hours, 2) + ":" + padStart2(minutes, 2); + case "narrow": + return "" + sign + hours + (minutes > 0 ? ":" + minutes : ""); + case "techie": + return "" + sign + padStart2(hours, 2) + padStart2(minutes, 2); + default: + throw new RangeError("Value format " + format + " is out of range for property format"); + } } -} -DefaultReminderModel.regexp = /^(?.*?)\(@(?

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(n=>{let i=B();n.setPlaceholder("e.g. #task or TODO").setValue(i.globalFilter).onChange(s=>J(this,null,function*(){pt({globalFilter:s}),yield this.plugin.saveSettings()}))}),new Rt.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(n=>{let i=B();n.setValue(i.removeGlobalFilter).onChange(s=>J(this,null,function*(){pt({removeGlobalFilter:s}),yield this.plugin.saveSettings()}))}),t.createEl("h4",{text:"Date Settings"}),new Rt.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(n=>{let i=B();n.setValue(i.setDoneDate).onChange(s=>J(this,null,function*(){pt({setDoneDate:s}),yield this.plugin.saveSettings()}))}),new Rt.Setting(t).setName("Use filename as Scheduled date for undated tasks").setDesc(qn.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(n=>{let i=B();n.setValue(i.useFilenameAsScheduledDate).onChange(s=>J(this,null,function*(){pt({useFilenameAsScheduledDate:s}),yield this.plugin.saveSettings()}))}),new Rt.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(n=>J(this,null,function*(){let i=B();yield this.plugin.saveSettings(),n.setValue(qn.renderFolderArray(i.filenameAsDateFolders)).onChange(s=>J(this,null,function*(){let a=qn.parseCommaSeparatedFolders(s);pt({filenameAsDateFolders:a}),yield this.plugin.saveSettings()}))})),t.createEl("h4",{text:"Auto-suggest Settings"}),new Rt.Setting(t).setName("Auto-suggest task content").setDesc("Enabling this will open an intelligent suggest menu while typing inside a recognized task line.").addToggle(n=>{let i=B();n.setValue(i.autoSuggestInEditor).onChange(s=>J(this,null,function*(){pt({autoSuggestInEditor:s}),yield this.plugin.saveSettings()}))}),new Rt.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(n=>{let i=B();n.setLimits(0,3,1).setValue(i.autoSuggestMinMatch).setDynamicTooltip().onChange(s=>J(this,null,function*(){pt({autoSuggestMinMatch:s}),yield this.plugin.saveSettings()}))}),new Rt.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(n=>{let i=B();n.setLimits(3,12,1).setValue(i.autoSuggestMaxItems).setDynamicTooltip().onChange(s=>J(this,null,function*(){pt({autoSuggestMaxItems:s}),yield this.plugin.saveSettings()}))}),t.createEl("h4",{text:"Dialog Settings"}),new Rt.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(n=>{let i=B();n.setValue(i.provideAccessKeys).onChange(s=>J(this,null,function*(){pt({provideAccessKeys:s}),yield this.plugin.saveSettings()}))})}static parseCommaSeparatedFolders(t){return t.split(",").map(n=>n.trim()).map(n=>n.replace(/^\/|\/$/g,"")).filter(n=>n!=="")}static renderFolderArray(t){return t.join(",")}},fs=qn;fs.createFragmentWithHTML=t=>createFragment(n=>n.createDiv().innerHTML=t);var O_=require("obsidian");var uA=`${Wt}${Lt}${Yt}`;function M_(r,e,t){let n=[];n=n.concat(dA(r,e,t)),n=n.concat(fA(r,e,t));let i=cA(r,t),s=Ud(r,/([a-zA-Z'_-]*)/g,e),a=!1;if(s&&s.length>0){let o=s[0];if(o.length>=Math.max(1,t.autoSuggestMinMatch)){let u=i.filter(l=>l.displayText.toLowerCase().includes(o.toLowerCase()));for(let l of u)n.push({suggestionType:"match",displayText:l.displayText,appendText:l.appendText,insertAt:s.index,insertSkip:o.length}),a=!0}}return!a&&t.autoSuggestMinMatch===0&&(n=n.concat(i)),n.length>0&&!n.some(o=>o.suggestionType==="match")&&n.unshift({suggestionType:"empty",displayText:"\u23CE",appendText:` +`}),n=n.slice(0,t.autoSuggestMaxItems),n}function lA(r){if(Object.values(we).some(e=>e.length>0&&r.includes(e)))return!0}function cA(r,e){let t=[];return r.includes(Yt)||t.push({displayText:`${Yt} due date`,appendText:`${Yt} `}),r.includes(Wt)||t.push({displayText:`${Wt} start date`,appendText:`${Wt} `}),r.includes(Lt)||t.push({displayText:`${Lt} scheduled date`,appendText:`${Lt} `}),lA(r)||(t.push({displayText:`${we.High} high priority`,appendText:`${we.High} `}),t.push({displayText:`${we.Medium} medium priority`,appendText:`${we.Medium} `}),t.push({displayText:`${we.Low} low priority`,appendText:`${we.Low} `})),r.includes(qt)||t.push({displayText:`${qt} recurring (repeat)`,appendText:`${qt} `}),t}function dA(r,e,t){let n=["today","tomorrow","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","next week","next month","next year"],i=[],s=new RegExp(`([${uA}])\\s*([0-9a-zA-Z ]*)`,"ug"),a=Ud(r,s,e);if(a&&a.length>=2){let o=a[1],u=a[2];if(u.length1?cr.parseDate(On(u),!0):null;l&&l.isValid()&&i.push({displayText:`${l.format(M.dateFormat)}`,appendText:`${o} ${l.format(M.dateFormat)} `,insertAt:a.index,insertSkip:a[0].length});let c=1,d=5,f=n.filter(h=>u&&u.length>=c&&h.toLowerCase().includes(u.toLowerCase())).slice(0,d);f.length===0&&(f=n.slice(0,d));for(let h of f){let m=`${cr.parseDate(h,!0).format(M.dateFormat)}`;i.push({suggestionType:"match",displayText:`${h} (${m})`,appendText:`${o} ${m} `,insertAt:a.index,insertSkip:a[0].length})}}return i}function fA(r,e,t){var o;let n=["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"],i=[],s=new RegExp(`(${qt})\\s*([0-9a-zA-Z ]*)`,"ug"),a=Ud(r,s,e);if(a&&a.length>=2){let u=a[1],l=a[2];if(l.length0){let h=(o=Me.fromText({recurrenceRuleText:l,startDate:null,scheduledDate:null,dueDate:null}))==null?void 0:o.toText();if(h){let g=`${u} ${h} `;if(i.push({suggestionType:"match",displayText:`\u2705 ${h}`,appendText:g,insertAt:a.index,insertSkip:a[0].length}),a[0]==g)return[]}}let c=1,d=t.autoSuggestMaxItems/2,f=n.filter(h=>l&&l.length>=c&&h.toLowerCase().includes(l.toLowerCase())).slice(0,d);f.length===0&&l.trim().length===0&&(f=n.slice(0,d));for(let h of f)i.push({suggestionType:"match",displayText:`${h}`,appendText:`${u} ${h} `,insertAt:a.index,insertSkip:a[0].length})}return i}function Ud(r,e,t){let n=r.matchAll(e);for(let i of n)if((i==null?void 0:i.index)&&i.index<=t&&t<=i.index+i[0].length)return i;return[]}var to=class extends O_.EditorSuggest{constructor(t,n){super(t);this.settings=n}onTrigger(t,n,i){if(!this.settings.autoSuggestInEditor)return null;let s=n.getLine(t.line);return s.contains(this.settings.globalFilter)&&s.match(M.taskRegex)?{start:{line:t.line,ch:0},end:{line:t.line,ch:s.length},query:s}:null}getSuggestions(t){let n=t.query,i=t.editor.getCursor(),s=M_(n,i.ch,this.settings),a=[];for(let o of s)a.push(ft(De({},o),{context:t}));return a}renderSuggestion(t,n){n.setText(t.displayText)}selectSuggestion(t,n){var u,l,c;let i=t.context.editor;if(t.suggestionType==="empty"){this.close();let d=new KeyboardEvent("keydown",{code:"Enter",key:"Enter"});(l=(u=i==null?void 0:i.cm)==null?void 0:u.contentDOM)==null||l.dispatchEvent(d);return}let s=t.context.editor.getCursor(),a={line:s.line,ch:(c=t.insertAt)!=null?c:s.ch},o=t.insertSkip?{line:s.line,ch:a.ch+t.insertSkip}:void 0;t.context.editor.replaceRange(t.appendText,a,o),t.context.editor.setCursor({line:s.line,ch:a.ch+t.appendText.length})}};var ro=class extends P_.Plugin{onload(){return J(this,null,function*(){console.log('loading plugin "tasks"'),yield this.loadSettings(),this.addSettingTab(new fs({plugin:this})),of({metadataCache:this.app.metadataCache,vault:this.app.vault});let t=new Pa({obsidianEvents:this.app.workspace});this.cache=new br({metadataCache:this.app.metadataCache,vault:this.app.vault,events:t}),this.inlineRenderer=new Aa({plugin:this}),this.queryRenderer=new Ja({plugin:this,events:t}),this.registerEditorExtension(d_()),this.registerEditorSuggest(new to(this.app,B())),new Oa({plugin:this})})}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();pt(t)})}saveSettings(){return J(this,null,function*(){yield this.saveData(B())})}}; diff --git a/.obsidian/plugins/obsidian-tasks-plugin/manifest.json b/.obsidian/plugins/obsidian-tasks-plugin/manifest.json index 211c3654..e25658fa 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": "1.16.0", + "version": "1.20.0", "minAppVersion": "0.14.6", "description": "Task management for Obsidian", "author": "Martin Schenck and Clare Macrae", diff --git a/.obsidian/plugins/obsidian-tasks-plugin/styles.css b/.obsidian/plugins/obsidian-tasks-plugin/styles.css index 90589ac3..04091f5c 100644 --- a/.obsidian/plugins/obsidian-tasks-plugin/styles.css +++ b/.obsidian/plugins/obsidian-tasks-plugin/styles.css @@ -1,3 +1,13 @@ +.plugin-tasks-query-explanation{ + /* Prevent long explanation lines wrapping, so they are more readable, + especially on small screens. + + A horizontal scroll bar will be displayed, if the explanation + is too wide to fit. + */ + --code-white-space: pre; +} + .tasks-count { color: var(--text-faint); padding-left: 20px; @@ -8,6 +18,7 @@ background-color: var(--text-faint); mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20aria-hidden%3D%22true%22%20focusable%3D%22false%22%20width%3D%221em%22%20height%3D%221em%22%20style%3D%22-ms-transform%3A%20rotate(360deg)%3B%20-webkit-transform%3A%20rotate(360deg)%3B%20transform%3A%20rotate(360deg)%3B%22%20preserveAspectRatio%3D%22xMidYMid%20meet%22%20viewBox%3D%220%200%201536%201536%22%3E%3Cpath%20d%3D%22M363%201408l91-91l-235-235l-91%2091v107h128v128h107zm523-928q0-22-22-22q-10%200-17%207l-542%20542q-7%207-7%2017q0%2022%2022%2022q10%200%2017-7l542-542q7-7%207-17zm-54-192l416%20416l-832%20832H0v-416zm683%2096q0%2053-37%2090l-166%20166l-416-416l166-165q36-38%2090-38q53%200%2091%2038l235%20234q37%2039%2037%2091z%22%20fill%3D%22%23626262%22%2F%3E%3C%2Fsvg%3E"); -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20aria-hidden%3D%22true%22%20focusable%3D%22false%22%20width%3D%221em%22%20height%3D%221em%22%20style%3D%22-ms-transform%3A%20rotate(360deg)%3B%20-webkit-transform%3A%20rotate(360deg)%3B%20transform%3A%20rotate(360deg)%3B%22%20preserveAspectRatio%3D%22xMidYMid%20meet%22%20viewBox%3D%220%200%201536%201536%22%3E%3Cpath%20d%3D%22M363%201408l91-91l-235-235l-91%2091v107h128v128h107zm523-928q0-22-22-22q-10%200-17%207l-542%20542q-7%207-7%2017q0%2022%2022%2022q10%200%2017-7l542-542q7-7%207-17zm-54-192l416%20416l-832%20832H0v-416zm683%2096q0%2053-37%2090l-166%20166l-416-416l166-165q36-38%2090-38q53%200%2091%2038l235%20234q37%2039%2037%2091z%22%20fill%3D%22%23626262%22%2F%3E%3C%2Fsvg%3E"); + mask-size: contain; -webkit-mask-size: contain; display: inline-block; width: 1em; @@ -49,58 +60,140 @@ font-weight: bold; } -.tasks-modal label { - margin: 5px 0 5px 0; +.tasks-modal-section + .tasks-modal-section { + margin-top: 16px; } -.tasks-modal input[type="text"] { - width: 100%; +.tasks-modal-section label { + display: inline-block; + margin-bottom: 4px; } -.tasks-modal hr { - margin: 10px 0 10px 0; +.tasks-modal-section label > span { + display: inline-block; } -.tasks-modal-date { - margin-bottom: 10px; +.tasks-modal .with-accesskeys .accesskey-first::first-letter, +.tasks-modal .with-accesskeys .accesskey { + text-decoration: underline; + text-underline-offset: 1pt; +} + +.tasks-modal-buttons { + display: grid; + grid-template-columns: 3fr 1fr; + column-gap: .5em; } .tasks-modal label + input[type="checkbox"] { margin-left: 0.67em; + top: 2px; } -.tasks-modal-priority { - line-height: 1.41; - white-space: nowrap; +.tasks-modal input[type="text"] { + width: 100%; } -.tasks-modal-priority input { - margin-left: 1.5em; +.tasks-modal-priorities { + display: grid; + grid-template-columns: 4em 5em 5em 7em 5em; + grid-column-gap: 1.33em; +} + +.tasks-modal-priorities span { + line-height: 1.41; + white-space: nowrap; } -.tasks-modal-priority label { +.tasks-modal-priorities label { border-radius: var(--input-radius); padding: 2px 3px; } -.tasks-modal-priority input:focus + label { +.tasks-modal-priorities input:focus + label { box-shadow: 0 0 0 2px var(--background-modifier-border-focus); border-color: var(--background-modifier-border-focus); } -.tasks-modal-priority label > span:nth-child(2) { - display: inline-block; +.tasks-modal-priorities input:checked + label > span:first-child { + font-weight: bold; } -.tasks-modal-priority input:not(:checked) + label > span:first-child { +.tasks-modal-priorities input:not(:checked) + label > span:nth-child(2) { filter: grayscale(100%) opacity(60%); } -.tasks-modal-priority label > span:nth-child(2)::first-letter { - text-decoration: underline; - text-underline-offset: 1pt; +.tasks-modal-dates { + display: grid; + grid-template-columns: 5.5em auto; + column-gap: .5em; + row-gap: 5px; +} + +.tasks-modal-dates > label { + grid-column: 1; + margin-top: 6px; +} + +.tasks-modal-dates > input, .tasks-modal-dates > code { + grid-column: 2; + align-items: stretch; +} + +.tasks-modal-dates > code { + margin-bottom: 5px; +} + +.tasks-modal-dates > div { + grid-column-start: 1; + grid-column-end: 3; +} + +.tasks-modal-status { + display: flex; + justify-content: space-between; +} + +@media (max-width: 649px) { + .tasks-modal-priorities { + grid-template-columns: 4em 7.5em 5em; + margin-bottom: -10px; + } + .tasks-modal-priorities > label { + grid-row: 1 / span 2; + } + .tasks-modal-dates { + grid-template-columns: 1fr; + } + .tasks-modal-dates > label { + margin: 0; + } + .tasks-modal-dates > input, .tasks-modal-dates > code { + grid-column: 1; + } + .tasks-modal-dates > div { + grid-column-end: 1; + } + .tasks-modal-status { + display: block; + } +} + +@media (max-width: 399px) { + .tasks-modal-priorities { + grid-template-columns: 4em auto; + } + .tasks-modal-priorities > label { + grid-row: 1 / span 4; + } } -.tasks-modal-priority input:checked + label > span:nth-child(2) { - text-shadow: 0px 0px 1px var(--text-normal); +@media (max-width: 259px) { + .tasks-modal-priorities { + grid-template-columns: 1fr; + margin-bottom: 0; + } + .tasks-modal-priorities > label { + grid-row: 1; + } } diff --git a/.obsidian/plugins/obsidian42-brat/data.json b/.obsidian/plugins/obsidian42-brat/data.json index 40185765..20d0b95c 100644 --- a/.obsidian/plugins/obsidian42-brat/data.json +++ b/.obsidian/plugins/obsidian42-brat/data.json @@ -1,5 +1,6 @@ { "pluginList": [ + "thingnotok/obsidian-google-mail", "GamerGirlandCo/obsidian-task-completer/", "joethei/obsidian-tagcloud", "Quorafind/Obsidian-Memos", diff --git a/.obsidian/plugins/plugins-galore/data.json b/.obsidian/plugins/plugins-galore/data.json index cad5ace3..4f37f7a8 100644 --- a/.obsidian/plugins/plugins-galore/data.json +++ b/.obsidian/plugins/plugins-galore/data.json @@ -19,6 +19,16 @@ "type": "github" }, "version": "1.0.0" + }, + "3d-graph": { + "repo": { + "domain": "github.com", + "owner": "AlexW00", + "name": "obsidian-3d-graph", + "url": "https://github.com/AlexW00/obsidian-3d-graph", + "type": "github" + }, + "version": "1.0.1" } } } \ No newline at end of file diff --git a/.obsidian/plugins/podnotes/main.js b/.obsidian/plugins/podnotes/main.js index fb31e518..c56a4a95 100644 --- a/.obsidian/plugins/podnotes/main.js +++ b/.obsidian/plugins/podnotes/main.js @@ -579,14 +579,14 @@ var FeedParser = class { const descriptionEl = item.querySelector("description"); const pubDateEl = item.querySelector("pubDate"); const itunesImageEl = item.querySelector("image"); - if (!titleEl || !streamUrlEl || !descriptionEl || !pubDateEl) { + if (!titleEl || !streamUrlEl || !pubDateEl) { console.log(titleEl, streamUrlEl, linkEl, descriptionEl, pubDateEl); throw new Error("Invalid RSS feed"); } const title = titleEl.textContent || ""; const streamUrl = streamUrlEl.getAttribute("url") || ""; const url = (linkEl == null ? void 0 : linkEl.textContent) || ""; - const description = descriptionEl.textContent || ""; + const description = (descriptionEl == null ? void 0 : descriptionEl.textContent) || ""; const pubDate = new Date(pubDateEl.textContent); const artworkUrl = (itunesImageEl == null ? void 0 : itunesImageEl.getAttribute("href")) || ((_a = this.feed) == null ? void 0 : _a.artworkUrl); return { @@ -1594,8 +1594,8 @@ function checkStringIsUrl(url) { try { return new URL(url); } catch (e) { + return null; } - return null; } // src/ui/obsidian/Text.svelte @@ -4111,69 +4111,74 @@ function getUrlExtension(url) { } // src/TemplateEngine.ts -function TemplateEngine(template, tags) { - return template.replace(/\{\{(.*?)(:\s*?.+?)?\}\}/g, (match, tagId, params) => { - const tagValue = tags[tagId.toLowerCase()]; - if (tagValue === null || tagValue === void 0) { - const fuse = new Fuse(Object.keys(tags), { - shouldSort: true, - findAllMatches: false, - threshold: 0.4, - isCaseSensitive: false - }); - const similarTag = fuse.search(tagId); - new import_obsidian9.Notice(`Tag ${tagId} is invalid.${similarTag.length > 0 ? ` Did you mean ${similarTag[0].item}?` : ""}`); - return match; - } - if (typeof tagValue === "function") { - if (params) { - const splitParams = params.slice(1).split(","); - const args = Array.isArray(splitParams) ? splitParams : [params]; - return tagValue(...args); +function useTemplateEngine() { + const tags = {}; + function addTag(tag, value) { + tags[tag] = value; + } + function replacer(template) { + return template.replace(/\{\{(.*?)(:\s*?.+?)?\}\}/g, (match, tagId, params) => { + const tagValue = tags[tagId.toLowerCase()]; + if (tagValue === null || tagValue === void 0) { + const fuse = new Fuse(Object.keys(tags), { + shouldSort: true, + findAllMatches: false, + threshold: 0.4, + isCaseSensitive: false + }); + const similarTag = fuse.search(tagId); + new import_obsidian9.Notice(`Tag ${tagId} is invalid.${similarTag.length > 0 ? ` Did you mean ${similarTag[0].item}?` : ""}`); + return match; + } + if (typeof tagValue === "function") { + if (params) { + const splitParams = params.slice(1).split(","); + const args = Array.isArray(splitParams) ? splitParams : [params]; + return tagValue(...args); + } + return tagValue(); } - return tagValue(); - } - return tagValue; - }); + return tagValue; + }); + } + return [replacer, addTag]; } function NoteTemplateEngine(template, episode) { var _a; - return TemplateEngine(template, { - "title": episode.title, - "description": (prependToLines) => { - if (prependToLines) { - return (0, import_obsidian9.htmlToMarkdown)(episode.description).split("\n").map(prepend(prependToLines)).join("\n"); - } - return (0, import_obsidian9.htmlToMarkdown)(episode.description); - }, - "url": episode.url, - "date": (format2) => episode.episodeDate ? window.moment(episode.episodeDate).format(format2 != null ? format2 : "YYYY-MM-DD") : "", - "podcast": episode.podcastName, - "artwork": (_a = episode.artworkUrl) != null ? _a : "" + const [replacer, addTag] = useTemplateEngine(); + addTag("title", episode.title); + addTag("description", (prependToLines) => { + if (prependToLines) { + return (0, import_obsidian9.htmlToMarkdown)(episode.description).split("\n").map((str) => `${prependToLines}${str}`).join("\n"); + } + return (0, import_obsidian9.htmlToMarkdown)(episode.description); }); -} -function prepend(prepend2) { - return (str) => `${prepend2}${str}`; + addTag("safetitle", replaceIllegalFileNameCharactersInString(episode.title)); + addTag("url", episode.url); + addTag("date", (format2) => episode.episodeDate ? window.moment(episode.episodeDate).format(format2 != null ? format2 : "YYYY-MM-DD") : ""); + addTag("podcast", episode.podcastName); + addTag("artwork", (_a = episode.artworkUrl) != null ? _a : ""); + return replacer(template); } function TimestampTemplateEngine(template) { - return TemplateEngine(template, { - "time": (format2) => get_store_value(plugin).api.getPodcastTimeFormatted(format2 != null ? format2 : "HH:mm:ss"), - "linktime": (format2) => get_store_value(plugin).api.getPodcastTimeFormatted(format2 != null ? format2 : "HH:mm:ss", true) - }); + const [replacer, addTag] = useTemplateEngine(); + addTag("time", (format2) => get_store_value(plugin).api.getPodcastTimeFormatted(format2 != null ? format2 : "HH:mm:ss")); + addTag("linktime", (format2) => get_store_value(plugin).api.getPodcastTimeFormatted(format2 != null ? format2 : "HH:mm:ss", true)); + return replacer(template); } function FilePathTemplateEngine(template, episode) { - return TemplateEngine(template, { - "title": replaceIllegalFileNameCharactersInString(episode.title), - "podcast": replaceIllegalFileNameCharactersInString(episode.podcastName) - }); + const [replacer, addTag] = useTemplateEngine(); + addTag("title", replaceIllegalFileNameCharactersInString(episode.title)); + addTag("podcast", replaceIllegalFileNameCharactersInString(episode.podcastName)); + return replacer(template); } function DownloadPathTemplateEngine(template, episode) { const templateExtension = getUrlExtension(template); const templateWithoutExtension = templateExtension ? template.replace(templateExtension, "") : template; - return TemplateEngine(templateWithoutExtension, { - "title": replaceIllegalFileNameCharactersInString(episode.title), - "podcast": replaceIllegalFileNameCharactersInString(episode.podcastName) - }); + const [replacer, addTag] = useTemplateEngine(); + addTag("title", replaceIllegalFileNameCharactersInString(episode.title)); + addTag("podcast", replaceIllegalFileNameCharactersInString(episode.podcastName)); + return replacer(templateWithoutExtension); } function replaceIllegalFileNameCharactersInString(string) { return string.replace(/[\\,#%&{}/*<>$'":@\u2023|?]*/g, "").replace(/\n/, " ").replace(" ", " "); @@ -6282,22 +6287,22 @@ var import_obsidian14 = require("obsidian"); // src/createPodcastNote.ts var import_obsidian12 = require("obsidian"); + +// src/utility/addExtension.ts +function addExtension(path, extension) { + const ext = extension.startsWith(".") ? extension : `.${extension}`; + return path.endsWith(ext) ? path : `${path}${ext}`; +} + +// src/createPodcastNote.ts function createPodcastNote(episode) { return __async(this, null, function* () { const pluginInstance = get_store_value(plugin); const filePath = FilePathTemplateEngine(pluginInstance.settings.note.path, episode); - const filePathDotMd = filePath.endsWith(".md") ? filePath : `${filePath}.md`; + const filePathDotMd = addExtension(filePath, "md"); const content = NoteTemplateEngine(pluginInstance.settings.note.template, episode); - const createOrGetFile = (path, content2) => __async(this, null, function* () { - const file = getPodcastNote(episode); - if (file) { - new import_obsidian12.Notice(`Note for "${pluginInstance.api.podcast.title}" already exists`); - return file; - } - return yield app.vault.create(path, content2); - }); try { - const file = yield createOrGetFile(filePathDotMd, content); + const file = yield createFileIfNotExists(filePathDotMd, content, episode); app.workspace.getLeaf().openFile(file); } catch (error) { console.error(error); @@ -6308,7 +6313,7 @@ function createPodcastNote(episode) { function getPodcastNote(episode) { const pluginInstance = get_store_value(plugin); const filePath = FilePathTemplateEngine(pluginInstance.settings.note.path, episode); - const filePathDotMd = filePath.endsWith(".md") ? filePath : `${filePath}.md`; + const filePathDotMd = addExtension(filePath, "md"); const file = app.vault.getAbstractFileByPath(filePathDotMd); if (!file || !(file instanceof import_obsidian12.TFile)) { return null; @@ -6323,6 +6328,24 @@ function openPodcastNote(epiosode) { } app.workspace.getLeaf().openFile(file); } +function createFileIfNotExists(path, content, episode, createFolder = true) { + return __async(this, null, function* () { + const file = getPodcastNote(episode); + if (file) { + new import_obsidian12.Notice(`Note for "${episode.title}" already exists`); + return file; + } + const foldersInPath = path.split("/").slice(0, -1); + for (let i = 0; i < foldersInPath.length; i++) { + const folderPath = foldersInPath.slice(0, i + 1).join("/"); + const folder = app.vault.getAbstractFileByPath(folderPath); + if (!folder && createFolder) { + yield app.vault.createFolder(folderPath); + } + } + return yield app.vault.create(path, content); + }); +} // src/downloadEpisode.ts var import_obsidian13 = require("obsidian"); @@ -6562,9 +6585,9 @@ function spawnEpisodeContextMenu(episode, event, disabledMenuItems) { menu.showAtMouseEvent(event); } -// src/utility/createUrlObjectFromFilePath.ts +// src/utility/createMediaUrlObjectFromFilePath.ts var import_obsidian15 = require("obsidian"); -function createUrlObjectFromFilePath(filePath) { +function createMediaUrlObjectFromFilePath(filePath) { return __async(this, null, function* () { const file = app.vault.getAbstractFileByPath(filePath); if (!file || !(file instanceof import_obsidian15.TFile)) @@ -7212,7 +7235,7 @@ function instance19($$self, $$props, $$invalidate) { const downloadedEpisode = downloadedEpisodes.getEpisode(episode); if (!downloadedEpisode) return ""; - return createUrlObjectFromFilePath(downloadedEpisode.filePath); + return createMediaUrlObjectFromFilePath(downloadedEpisode.filePath); } else { return episode.streamUrl; } @@ -8548,7 +8571,7 @@ var PodNotes = class extends import_obsidian18.Plugin { description: "", podcastName: "local file", url: app.fileManager.generateMarkdownLink(file, ""), - streamUrl: yield createUrlObjectFromFilePath(file.path), + streamUrl: yield createMediaUrlObjectFromFilePath(file.path), episodeDate: new Date(file.stat.ctime) }; if (!downloadedEpisodes.isEpisodeDownloaded(localEpisode)) { diff --git a/.obsidian/plugins/podnotes/manifest.json b/.obsidian/plugins/podnotes/manifest.json index dec773bc..33b01889 100644 --- a/.obsidian/plugins/podnotes/manifest.json +++ b/.obsidian/plugins/podnotes/manifest.json @@ -1,7 +1,7 @@ { "id": "podnotes", "name": "PodNotes", - "version": "2.1.4", + "version": "2.3.1", "minAppVersion": "0.15.9", "description": "Helps you write notes on podcasts.", "author": "Christian B. B. Houmann", diff --git a/.obsidian/plugins/quickadd/data.json b/.obsidian/plugins/quickadd/data.json index 2079ce75..7b7dd969 100644 --- a/.obsidian/plugins/quickadd/data.json +++ b/.obsidian/plugins/quickadd/data.json @@ -44,5 +44,6 @@ "runOnStartup": false } ], - "inputPrompt": "single-line" + "inputPrompt": "single-line", + "devMode": false } \ No newline at end of file diff --git a/.obsidian/plugins/quickadd/main.js b/.obsidian/plugins/quickadd/main.js index 738125ad..8e3e58df 100644 --- a/.obsidian/plugins/quickadd/main.js +++ b/.obsidian/plugins/quickadd/main.js @@ -1,3086 +1,26010 @@ -'use strict'; - -var obsidian = require('obsidian'); - -function _interopNamespace(e) { - if (e && e.__esModule) return e; - var n = Object.create(null); - if (e) { - Object.keys(e).forEach(function (k) { - if (k !== 'default') { - var d = Object.getOwnPropertyDescriptor(e, k); - Object.defineProperty(n, k, d.get ? d : { - enumerable: true, - get: function () { return e[k]; } - }); +/* +THIS IS A GENERATED/BUNDLED FILE BY ESBUILD +if you want to view the source, please visit the github repository of this plugin +*/ + +var __create = Object.create; +var __defProp = Object.defineProperty; +var __getOwnPropDesc = Object.getOwnPropertyDescriptor; +var __getOwnPropNames = Object.getOwnPropertyNames; +var __getProtoOf = Object.getPrototypeOf; +var __hasOwnProp = Object.prototype.hasOwnProperty; +var __commonJS = (cb, mod) => function __require() { + return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports; +}; +var __export = (target, all) => { + for (var name in all) + __defProp(target, name, { get: all[name], enumerable: true }); +}; +var __copyProps = (to, from, except, desc) => { + if (from && typeof from === "object" || typeof from === "function") { + for (let key of __getOwnPropNames(from)) + if (!__hasOwnProp.call(to, key) && key !== except) + __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); + } + return to; +}; +var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps( + isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, + mod +)); +var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); + +// node_modules/.pnpm/tslib@2.4.1/node_modules/tslib/tslib.js +var require_tslib = __commonJS({ + "node_modules/.pnpm/tslib@2.4.1/node_modules/tslib/tslib.js"(exports, module2) { + var __extends2; + var __assign2; + var __rest2; + var __decorate2; + var __param2; + var __metadata2; + var __awaiter2; + var __generator2; + var __exportStar2; + var __values2; + var __read2; + var __spread2; + var __spreadArrays2; + var __spreadArray2; + var __await2; + var __asyncGenerator2; + var __asyncDelegator2; + var __asyncValues2; + var __makeTemplateObject2; + var __importStar2; + var __importDefault2; + var __classPrivateFieldGet2; + var __classPrivateFieldSet2; + var __classPrivateFieldIn2; + var __createBinding2; + (function(factory) { + var root = typeof global === "object" ? global : typeof self === "object" ? self : typeof this === "object" ? this : {}; + if (typeof define === "function" && define.amd) { + define("tslib", ["exports"], function(exports2) { + factory(createExporter(root, createExporter(exports2))); + }); + } else if (typeof module2 === "object" && typeof module2.exports === "object") { + factory(createExporter(root, createExporter(module2.exports))); + } else { + factory(createExporter(root)); + } + function createExporter(exports2, previous) { + if (exports2 !== root) { + if (typeof Object.create === "function") { + Object.defineProperty(exports2, "__esModule", { value: true }); + } else { + exports2.__esModule = true; + } + } + return function(id, v) { + return exports2[id] = previous ? previous(id, v) : v; + }; + } + })(function(exporter) { + var extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d, b) { + d.__proto__ = b; + } || function(d, b) { + for (var p in b) + if (Object.prototype.hasOwnProperty.call(b, p)) + d[p] = b[p]; + }; + __extends2 = function(d, b) { + if (typeof b !== "function" && b !== null) + throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); + extendStatics(d, b); + function __() { + this.constructor = d; + } + d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); + }; + __assign2 = Object.assign || function(t) { + for (var s, i = 1, n = arguments.length; i < n; i++) { + s = arguments[i]; + for (var p in s) + if (Object.prototype.hasOwnProperty.call(s, p)) + t[p] = s[p]; + } + return t; + }; + __rest2 = function(s, e) { + var t = {}; + for (var p in s) + if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) + t[p] = s[p]; + if (s != null && typeof Object.getOwnPropertySymbols === "function") + for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { + if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) + t[p[i]] = s[p[i]]; + } + return t; + }; + __decorate2 = function(decorators, target, key, desc) { + var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; + if (typeof Reflect === "object" && typeof Reflect.decorate === "function") + r = Reflect.decorate(decorators, target, key, desc); + else + for (var i = decorators.length - 1; i >= 0; i--) + if (d = decorators[i]) + r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; + return c > 3 && r && Object.defineProperty(target, key, r), r; + }; + __param2 = function(paramIndex, decorator) { + return function(target, key) { + decorator(target, key, paramIndex); + }; + }; + __metadata2 = function(metadataKey, metadataValue) { + if (typeof Reflect === "object" && typeof Reflect.metadata === "function") + return Reflect.metadata(metadataKey, metadataValue); + }; + __awaiter2 = function(thisArg, _arguments, P, generator) { + function adopt(value) { + return value instanceof P ? value : new P(function(resolve) { + resolve(value); + }); + } + return new (P || (P = Promise))(function(resolve, reject) { + function fulfilled(value) { + try { + step(generator.next(value)); + } catch (e) { + reject(e); + } + } + function rejected(value) { + try { + step(generator["throw"](value)); + } catch (e) { + reject(e); } + } + function step(result) { + result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); + } + step((generator = generator.apply(thisArg, _arguments || [])).next()); }); - } - n["default"] = e; - return Object.freeze(n); -} - -var obsidian__namespace = /*#__PURE__*/_interopNamespace(obsidian); - -function noop() { } -function assign(tar, src) { - // @ts-ignore - for (const k in src) - tar[k] = src[k]; - return tar; -} -function run(fn) { - return fn(); -} -function blank_object() { - return Object.create(null); -} -function run_all(fns) { - fns.forEach(run); -} -function is_function(thing) { - return typeof thing === 'function'; -} -function safe_not_equal(a, b) { - return a != a ? b == b : a !== b || ((a && typeof a === 'object') || typeof a === 'function'); -} -function is_empty(obj) { - return Object.keys(obj).length === 0; -} -function create_slot(definition, ctx, $$scope, fn) { - if (definition) { - const slot_ctx = get_slot_context(definition, ctx, $$scope, fn); - return definition[0](slot_ctx); - } -} -function get_slot_context(definition, ctx, $$scope, fn) { - return definition[1] && fn - ? assign($$scope.ctx.slice(), definition[1](fn(ctx))) - : $$scope.ctx; -} -function get_slot_changes(definition, $$scope, dirty, fn) { - if (definition[2] && fn) { - const lets = definition[2](fn(dirty)); - if ($$scope.dirty === undefined) { - return lets; + }; + __generator2 = function(thisArg, body) { + var _ = { label: 0, sent: function() { + if (t[0] & 1) + throw t[1]; + return t[1]; + }, trys: [], ops: [] }, f, y, t, g; + return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { + return this; + }), g; + function verb(n) { + return function(v) { + return step([n, v]); + }; } - if (typeof lets === 'object') { - const merged = []; - const len = Math.max($$scope.dirty.length, lets.length); - for (let i = 0; i < len; i += 1) { - merged[i] = $$scope.dirty[i] | lets[i]; + function step(op) { + if (f) + throw new TypeError("Generator is already executing."); + while (g && (g = 0, op[0] && (_ = 0)), _) + try { + if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) + return t; + if (y = 0, t) + op = [op[0] & 2, t.value]; + switch (op[0]) { + case 0: + case 1: + t = op; + break; + case 4: + _.label++; + return { value: op[1], done: false }; + case 5: + _.label++; + y = op[1]; + op = [0]; + continue; + case 7: + op = _.ops.pop(); + _.trys.pop(); + continue; + default: + if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { + _ = 0; + continue; + } + if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) { + _.label = op[1]; + break; + } + if (op[0] === 6 && _.label < t[1]) { + _.label = t[1]; + t = op; + break; + } + if (t && _.label < t[2]) { + _.label = t[2]; + _.ops.push(op); + break; + } + if (t[2]) + _.ops.pop(); + _.trys.pop(); + continue; + } + op = body.call(thisArg, _); + } catch (e) { + op = [6, e]; + y = 0; + } finally { + f = t = 0; } - return merged; + if (op[0] & 5) + throw op[1]; + return { value: op[0] ? op[1] : void 0, done: true }; } - return $$scope.dirty | lets; - } - return $$scope.dirty; -} -function update_slot_base(slot, slot_definition, ctx, $$scope, slot_changes, get_slot_context_fn) { - if (slot_changes) { - const slot_context = get_slot_context(slot_definition, ctx, $$scope, get_slot_context_fn); - slot.p(slot_context, slot_changes); - } -} -function get_all_dirty_from_scope($$scope) { - if ($$scope.ctx.length > 32) { - const dirty = []; - const length = $$scope.ctx.length / 32; - for (let i = 0; i < length; i++) { - dirty[i] = -1; + }; + __exportStar2 = function(m, o) { + for (var p in m) + if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p)) + __createBinding2(o, m, p); + }; + __createBinding2 = Object.create ? function(o, m, k, k2) { + if (k2 === void 0) + k2 = k; + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { + return m[k]; + } }; } - return dirty; - } - return -1; -} -function action_destroyer(action_result) { - return action_result && is_function(action_result.destroy) ? action_result.destroy : noop; -} -function append(target, node) { - target.appendChild(node); -} -function append_styles(target, style_sheet_id, styles) { - const append_styles_to = get_root_for_style(target); - if (!append_styles_to.getElementById(style_sheet_id)) { - const style = element('style'); - style.id = style_sheet_id; - style.textContent = styles; - append_stylesheet(append_styles_to, style); - } -} -function get_root_for_style(node) { - if (!node) - return document; - const root = node.getRootNode ? node.getRootNode() : node.ownerDocument; - if (root && root.host) { - return root; - } - return node.ownerDocument; -} -function append_stylesheet(node, style) { - append(node.head || node, style); -} -function insert(target, node, anchor) { - target.insertBefore(node, anchor || null); -} -function detach(node) { - node.parentNode.removeChild(node); -} -function destroy_each(iterations, detaching) { - for (let i = 0; i < iterations.length; i += 1) { - if (iterations[i]) - iterations[i].d(detaching); - } -} -function element(name) { - return document.createElement(name); -} -function svg_element(name) { - return document.createElementNS('http://www.w3.org/2000/svg', name); -} -function text(data) { - return document.createTextNode(data); -} -function space() { - return text(' '); -} -function empty() { - return text(''); -} -function listen(node, event, handler, options) { - node.addEventListener(event, handler, options); - return () => node.removeEventListener(event, handler, options); -} -function attr(node, attribute, value) { - if (value == null) - node.removeAttribute(attribute); - else if (node.getAttribute(attribute) !== value) - node.setAttribute(attribute, value); -} -function set_svg_attributes(node, attributes) { - for (const key in attributes) { - attr(node, key, attributes[key]); - } -} -function to_number(value) { - return value === '' ? null : +value; -} -function children(element) { - return Array.from(element.childNodes); -} -function set_data(text, data) { - data = '' + data; - if (text.wholeText !== data) - text.data = data; -} -function set_input_value(input, value) { - input.value = value == null ? '' : value; -} -function select_option(select, value) { - for (let i = 0; i < select.options.length; i += 1) { - const option = select.options[i]; - if (option.__value === value) { - option.selected = true; - return; + Object.defineProperty(o, k2, desc); + } : function(o, m, k, k2) { + if (k2 === void 0) + k2 = k; + o[k2] = m[k]; + }; + __values2 = function(o) { + var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; + if (m) + return m.call(o); + if (o && typeof o.length === "number") + return { + next: function() { + if (o && i >= o.length) + o = void 0; + return { value: o && o[i++], done: !o }; + } + }; + throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); + }; + __read2 = function(o, n) { + var m = typeof Symbol === "function" && o[Symbol.iterator]; + if (!m) + return o; + var i = m.call(o), r, ar = [], e; + try { + while ((n === void 0 || n-- > 0) && !(r = i.next()).done) + ar.push(r.value); + } catch (error) { + e = { error }; + } finally { + try { + if (r && !r.done && (m = i["return"])) + m.call(i); + } finally { + if (e) + throw e.error; + } } - } - select.selectedIndex = -1; // no option should be selected -} -function select_value(select) { - const selected_option = select.querySelector(':checked') || select.options[0]; - return selected_option && selected_option.__value; -} -function toggle_class(element, name, toggle) { - element.classList[toggle ? 'add' : 'remove'](name); -} -function custom_event(type, detail, bubbles = false) { - const e = document.createEvent('CustomEvent'); - e.initCustomEvent(type, bubbles, false, detail); - return e; -} - -let current_component; -function set_current_component(component) { - current_component = component; -} -function get_current_component() { - if (!current_component) - throw new Error('Function called outside component initialization'); - return current_component; -} -function onMount(fn) { - get_current_component().$$.on_mount.push(fn); -} -function createEventDispatcher() { - const component = get_current_component(); - return (type, detail) => { - const callbacks = component.$$.callbacks[type]; - if (callbacks) { - // TODO are there situations where events could be dispatched - // in a server (non-DOM) environment? - const event = custom_event(type, detail); - callbacks.slice().forEach(fn => { - fn.call(component, event); + return ar; + }; + __spread2 = function() { + for (var ar = [], i = 0; i < arguments.length; i++) + ar = ar.concat(__read2(arguments[i])); + return ar; + }; + __spreadArrays2 = function() { + for (var s = 0, i = 0, il = arguments.length; i < il; i++) + s += arguments[i].length; + for (var r = Array(s), k = 0, i = 0; i < il; i++) + for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++) + r[k] = a[j]; + return r; + }; + __spreadArray2 = function(to, from, pack) { + if (pack || arguments.length === 2) + for (var i = 0, l = from.length, ar; i < l; i++) { + if (ar || !(i in from)) { + if (!ar) + ar = Array.prototype.slice.call(from, 0, i); + ar[i] = from[i]; + } + } + return to.concat(ar || Array.prototype.slice.call(from)); + }; + __await2 = function(v) { + return this instanceof __await2 ? (this.v = v, this) : new __await2(v); + }; + __asyncGenerator2 = function(thisArg, _arguments, generator) { + if (!Symbol.asyncIterator) + throw new TypeError("Symbol.asyncIterator is not defined."); + var g = generator.apply(thisArg, _arguments || []), i, q = []; + return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function() { + return this; + }, i; + function verb(n) { + if (g[n]) + i[n] = function(v) { + return new Promise(function(a, b) { + q.push([n, v, a, b]) > 1 || resume(n, v); + }); + }; + } + function resume(n, v) { + try { + step(g[n](v)); + } catch (e) { + settle(q[0][3], e); + } + } + function step(r) { + r.value instanceof __await2 ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); + } + function fulfill(value) { + resume("next", value); + } + function reject(value) { + resume("throw", value); + } + function settle(f, v) { + if (f(v), q.shift(), q.length) + resume(q[0][0], q[0][1]); + } + }; + __asyncDelegator2 = function(o) { + var i, p; + return i = {}, verb("next"), verb("throw", function(e) { + throw e; + }), verb("return"), i[Symbol.iterator] = function() { + return this; + }, i; + function verb(n, f) { + i[n] = o[n] ? function(v) { + return (p = !p) ? { value: __await2(o[n](v)), done: n === "return" } : f ? f(v) : v; + } : f; + } + }; + __asyncValues2 = function(o) { + if (!Symbol.asyncIterator) + throw new TypeError("Symbol.asyncIterator is not defined."); + var m = o[Symbol.asyncIterator], i; + return m ? m.call(o) : (o = typeof __values2 === "function" ? __values2(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function() { + return this; + }, i); + function verb(n) { + i[n] = o[n] && function(v) { + return new Promise(function(resolve, reject) { + v = o[n](v), settle(resolve, reject, v.done, v.value); }); + }; } - }; -} -// TODO figure out if we still want to support -// shorthand events, or if we want to implement -// a real bubbling mechanism -function bubble(component, event) { - const callbacks = component.$$.callbacks[event.type]; - if (callbacks) { - // @ts-ignore - callbacks.slice().forEach(fn => fn.call(this, event)); - } -} - -const dirty_components = []; -const binding_callbacks = []; -const render_callbacks = []; -const flush_callbacks = []; -const resolved_promise = Promise.resolve(); -let update_scheduled = false; -function schedule_update() { - if (!update_scheduled) { - update_scheduled = true; - resolved_promise.then(flush); - } -} -function add_render_callback(fn) { - render_callbacks.push(fn); -} -function add_flush_callback(fn) { - flush_callbacks.push(fn); -} -// flush() calls callbacks in this order: -// 1. All beforeUpdate callbacks, in order: parents before children -// 2. All bind:this callbacks, in reverse order: children before parents. -// 3. All afterUpdate callbacks, in order: parents before children. EXCEPT -// for afterUpdates called during the initial onMount, which are called in -// reverse order: children before parents. -// Since callbacks might update component values, which could trigger another -// call to flush(), the following steps guard against this: -// 1. During beforeUpdate, any updated components will be added to the -// dirty_components array and will cause a reentrant call to flush(). Because -// the flush index is kept outside the function, the reentrant call will pick -// up where the earlier call left off and go through all dirty components. The -// current_component value is saved and restored so that the reentrant call will -// not interfere with the "parent" flush() call. -// 2. bind:this callbacks cannot trigger new flush() calls. -// 3. During afterUpdate, any updated components will NOT have their afterUpdate -// callback called a second time; the seen_callbacks set, outside the flush() -// function, guarantees this behavior. -const seen_callbacks = new Set(); -let flushidx = 0; // Do *not* move this inside the flush() function -function flush() { - const saved_component = current_component; - do { - // first, call beforeUpdate functions - // and update components - while (flushidx < dirty_components.length) { - const component = dirty_components[flushidx]; - flushidx++; - set_current_component(component); - update(component.$$); - } - set_current_component(null); - dirty_components.length = 0; - flushidx = 0; - while (binding_callbacks.length) - binding_callbacks.pop()(); - // then, once components are updated, call - // afterUpdate functions. This may cause - // subsequent updates... - for (let i = 0; i < render_callbacks.length; i += 1) { - const callback = render_callbacks[i]; - if (!seen_callbacks.has(callback)) { - // ...so guard against infinite loops - seen_callbacks.add(callback); - callback(); - } - } - render_callbacks.length = 0; - } while (dirty_components.length); - while (flush_callbacks.length) { - flush_callbacks.pop()(); - } - update_scheduled = false; - seen_callbacks.clear(); - set_current_component(saved_component); -} -function update($$) { - if ($$.fragment !== null) { - $$.update(); - run_all($$.before_update); - const dirty = $$.dirty; - $$.dirty = [-1]; - $$.fragment && $$.fragment.p($$.ctx, dirty); - $$.after_update.forEach(add_render_callback); - } -} -const outroing = new Set(); -let outros; -function group_outros() { - outros = { - r: 0, - c: [], - p: outros // parent group - }; -} -function check_outros() { - if (!outros.r) { - run_all(outros.c); - } - outros = outros.p; -} -function transition_in(block, local) { - if (block && block.i) { - outroing.delete(block); - block.i(local); - } -} -function transition_out(block, local, detach, callback) { - if (block && block.o) { - if (outroing.has(block)) - return; - outroing.add(block); - outros.c.push(() => { - outroing.delete(block); - if (callback) { - if (detach) - block.d(1); - callback(); - } - }); - block.o(local); - } -} -function outro_and_destroy_block(block, lookup) { - transition_out(block, 1, 1, () => { - lookup.delete(block.key); + function settle(resolve, reject, d, v) { + Promise.resolve(v).then(function(v2) { + resolve({ value: v2, done: d }); + }, reject); + } + }; + __makeTemplateObject2 = function(cooked, raw) { + if (Object.defineProperty) { + Object.defineProperty(cooked, "raw", { value: raw }); + } else { + cooked.raw = raw; + } + return cooked; + }; + var __setModuleDefault = Object.create ? function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); + } : function(o, v) { + o["default"] = v; + }; + __importStar2 = function(mod) { + if (mod && mod.__esModule) + return mod; + var result = {}; + if (mod != null) { + for (var k in mod) + if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) + __createBinding2(result, mod, k); + } + __setModuleDefault(result, mod); + return result; + }; + __importDefault2 = function(mod) { + return mod && mod.__esModule ? mod : { "default": mod }; + }; + __classPrivateFieldGet2 = function(receiver, state, kind, f) { + if (kind === "a" && !f) + throw new TypeError("Private accessor was defined without a getter"); + if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) + throw new TypeError("Cannot read private member from an object whose class did not declare it"); + return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver); + }; + __classPrivateFieldSet2 = function(receiver, state, value, kind, f) { + if (kind === "m") + throw new TypeError("Private method is not writable"); + if (kind === "a" && !f) + throw new TypeError("Private accessor was defined without a setter"); + if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) + throw new TypeError("Cannot write private member to an object whose class did not declare it"); + return kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value), value; + }; + __classPrivateFieldIn2 = function(state, receiver) { + if (receiver === null || typeof receiver !== "object" && typeof receiver !== "function") + throw new TypeError("Cannot use 'in' operator on non-object"); + return typeof state === "function" ? receiver === state : state.has(receiver); + }; + exporter("__extends", __extends2); + exporter("__assign", __assign2); + exporter("__rest", __rest2); + exporter("__decorate", __decorate2); + exporter("__param", __param2); + exporter("__metadata", __metadata2); + exporter("__awaiter", __awaiter2); + exporter("__generator", __generator2); + exporter("__exportStar", __exportStar2); + exporter("__createBinding", __createBinding2); + exporter("__values", __values2); + exporter("__read", __read2); + exporter("__spread", __spread2); + exporter("__spreadArrays", __spreadArrays2); + exporter("__spreadArray", __spreadArray2); + exporter("__await", __await2); + exporter("__asyncGenerator", __asyncGenerator2); + exporter("__asyncDelegator", __asyncDelegator2); + exporter("__asyncValues", __asyncValues2); + exporter("__makeTemplateObject", __makeTemplateObject2); + exporter("__importStar", __importStar2); + exporter("__importDefault", __importDefault2); + exporter("__classPrivateFieldGet", __classPrivateFieldGet2); + exporter("__classPrivateFieldSet", __classPrivateFieldSet2); + exporter("__classPrivateFieldIn", __classPrivateFieldIn2); }); -} -function update_keyed_each(old_blocks, dirty, get_key, dynamic, ctx, list, lookup, node, destroy, create_each_block, next, get_context) { - let o = old_blocks.length; - let n = list.length; - let i = o; - const old_indexes = {}; - while (i--) - old_indexes[old_blocks[i].key] = i; - const new_blocks = []; - const new_lookup = new Map(); - const deltas = new Map(); - i = n; - while (i--) { - const child_ctx = get_context(ctx, list, i); - const key = get_key(child_ctx); - let block = lookup.get(key); - if (!block) { - block = create_each_block(key, child_ctx); - block.c(); - } - else if (dynamic) { - block.p(child_ctx, dirty); - } - new_lookup.set(key, new_blocks[i] = block); - if (key in old_indexes) - deltas.set(key, Math.abs(i - old_indexes[key])); - } - const will_move = new Set(); - const did_move = new Set(); - function insert(block) { - transition_in(block, 1); - block.m(node, next); - lookup.set(block.key, block); - next = block.first; - n--; - } - while (o && n) { - const new_block = new_blocks[n - 1]; - const old_block = old_blocks[o - 1]; - const new_key = new_block.key; - const old_key = old_block.key; - if (new_block === old_block) { - // do nothing - next = new_block.first; - o--; - n--; - } - else if (!new_lookup.has(old_key)) { - // remove old block - destroy(old_block, lookup); - o--; - } - else if (!lookup.has(new_key) || will_move.has(new_key)) { - insert(new_block); - } - else if (did_move.has(old_key)) { - o--; - } - else if (deltas.get(new_key) > deltas.get(old_key)) { - did_move.add(new_key); - insert(new_block); - } - else { - will_move.add(old_key); - o--; - } - } - while (o--) { - const old_block = old_blocks[o]; - if (!new_lookup.has(old_block.key)) - destroy(old_block, lookup); - } - while (n) - insert(new_blocks[n - 1]); - return new_blocks; -} + } +}); -function get_spread_update(levels, updates) { - const update = {}; - const to_null_out = {}; - const accounted_for = { $$scope: 1 }; - let i = levels.length; - while (i--) { - const o = levels[i]; - const n = updates[i]; - if (n) { - for (const key in o) { - if (!(key in n)) - to_null_out[key] = 1; +// node_modules/.pnpm/react@18.2.0/node_modules/react/cjs/react.development.js +var require_react_development = __commonJS({ + "node_modules/.pnpm/react@18.2.0/node_modules/react/cjs/react.development.js"(exports, module2) { + "use strict"; + if (true) { + (function() { + "use strict"; + if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== "undefined" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart === "function") { + __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error()); + } + var ReactVersion = "18.2.0"; + var REACT_ELEMENT_TYPE = Symbol.for("react.element"); + var REACT_PORTAL_TYPE = Symbol.for("react.portal"); + var REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"); + var REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"); + var REACT_PROFILER_TYPE = Symbol.for("react.profiler"); + var REACT_PROVIDER_TYPE = Symbol.for("react.provider"); + var REACT_CONTEXT_TYPE = Symbol.for("react.context"); + var REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"); + var REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"); + var REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"); + var REACT_MEMO_TYPE = Symbol.for("react.memo"); + var REACT_LAZY_TYPE = Symbol.for("react.lazy"); + var REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen"); + var MAYBE_ITERATOR_SYMBOL = Symbol.iterator; + var FAUX_ITERATOR_SYMBOL = "@@iterator"; + function getIteratorFn(maybeIterable) { + if (maybeIterable === null || typeof maybeIterable !== "object") { + return null; + } + var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]; + if (typeof maybeIterator === "function") { + return maybeIterator; + } + return null; + } + var ReactCurrentDispatcher = { + current: null + }; + var ReactCurrentBatchConfig = { + transition: null + }; + var ReactCurrentActQueue = { + current: null, + isBatchingLegacy: false, + didScheduleLegacyUpdate: false + }; + var ReactCurrentOwner = { + current: null + }; + var ReactDebugCurrentFrame = {}; + var currentExtraStackFrame = null; + function setExtraStackFrame(stack) { + { + currentExtraStackFrame = stack; + } + } + { + ReactDebugCurrentFrame.setExtraStackFrame = function(stack) { + { + currentExtraStackFrame = stack; } - for (const key in n) { - if (!accounted_for[key]) { - update[key] = n[key]; - accounted_for[key] = 1; - } + }; + ReactDebugCurrentFrame.getCurrentStack = null; + ReactDebugCurrentFrame.getStackAddendum = function() { + var stack = ""; + if (currentExtraStackFrame) { + stack += currentExtraStackFrame; + } + var impl = ReactDebugCurrentFrame.getCurrentStack; + if (impl) { + stack += impl() || ""; } - levels[i] = n; + return stack; + }; + } + var enableScopeAPI = false; + var enableCacheElement = false; + var enableTransitionTracing = false; + var enableLegacyHidden = false; + var enableDebugTracing = false; + var ReactSharedInternals = { + ReactCurrentDispatcher, + ReactCurrentBatchConfig, + ReactCurrentOwner + }; + { + ReactSharedInternals.ReactDebugCurrentFrame = ReactDebugCurrentFrame; + ReactSharedInternals.ReactCurrentActQueue = ReactCurrentActQueue; } - else { - for (const key in o) { - accounted_for[key] = 1; + function warn(format3) { + { + { + for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { + args[_key - 1] = arguments[_key]; + } + printWarning("warn", format3, args); } + } } - } - for (const key in to_null_out) { - if (!(key in update)) - update[key] = undefined; - } - return update; -} - -function bind(component, name, callback) { - const index = component.$$.props[name]; - if (index !== undefined) { - component.$$.bound[index] = callback; - callback(component.$$.ctx[index]); - } -} -function create_component(block) { - block && block.c(); -} -function mount_component(component, target, anchor, customElement) { - const { fragment, on_mount, on_destroy, after_update } = component.$$; - fragment && fragment.m(target, anchor); - if (!customElement) { - // onMount happens before the initial afterUpdate - add_render_callback(() => { - const new_on_destroy = on_mount.map(run).filter(is_function); - if (on_destroy) { - on_destroy.push(...new_on_destroy); + function error(format3) { + { + { + for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) { + args[_key2 - 1] = arguments[_key2]; + } + printWarning("error", format3, args); } - else { - // Edge case - component was destroyed immediately, - // most likely as a result of a binding initialising - run_all(new_on_destroy); + } + } + function printWarning(level, format3, args) { + { + var ReactDebugCurrentFrame2 = ReactSharedInternals.ReactDebugCurrentFrame; + var stack = ReactDebugCurrentFrame2.getStackAddendum(); + if (stack !== "") { + format3 += "%s"; + args = args.concat([stack]); } - component.$$.on_mount = []; - }); - } - after_update.forEach(add_render_callback); -} -function destroy_component(component, detaching) { - const $$ = component.$$; - if ($$.fragment !== null) { - run_all($$.on_destroy); - $$.fragment && $$.fragment.d(detaching); - // TODO null out other refs, including component.$$ (but need to - // preserve final state?) - $$.on_destroy = $$.fragment = null; - $$.ctx = []; - } -} -function make_dirty(component, i) { - if (component.$$.dirty[0] === -1) { - dirty_components.push(component); - schedule_update(); - component.$$.dirty.fill(0); - } - component.$$.dirty[(i / 31) | 0] |= (1 << (i % 31)); -} -function init(component, options, instance, create_fragment, not_equal, props, append_styles, dirty = [-1]) { - const parent_component = current_component; - set_current_component(component); - const $$ = component.$$ = { - fragment: null, - ctx: null, - // state - props, - update: noop, - not_equal, - bound: blank_object(), - // lifecycle - on_mount: [], - on_destroy: [], - on_disconnect: [], - before_update: [], - after_update: [], - context: new Map(options.context || (parent_component ? parent_component.$$.context : [])), - // everything else - callbacks: blank_object(), - dirty, - skip_bound: false, - root: options.target || parent_component.$$.root - }; - append_styles && append_styles($$.root); - let ready = false; - $$.ctx = instance - ? instance(component, options.props || {}, (i, ret, ...rest) => { - const value = rest.length ? rest[0] : ret; - if ($$.ctx && not_equal($$.ctx[i], $$.ctx[i] = value)) { - if (!$$.skip_bound && $$.bound[i]) - $$.bound[i](value); - if (ready) - make_dirty(component, i); - } - return ret; - }) - : []; - $$.update(); - ready = true; - run_all($$.before_update); - // `false` as a special case of no DOM component - $$.fragment = create_fragment ? create_fragment($$.ctx) : false; - if (options.target) { - if (options.hydrate) { - const nodes = children(options.target); - // eslint-disable-next-line @typescript-eslint/no-non-null-assertion - $$.fragment && $$.fragment.l(nodes); - nodes.forEach(detach); - } - else { - // eslint-disable-next-line @typescript-eslint/no-non-null-assertion - $$.fragment && $$.fragment.c(); - } - if (options.intro) - transition_in(component.$$.fragment); - mount_component(component, options.target, options.anchor, options.customElement); - flush(); - } - set_current_component(parent_component); -} -/** - * Base class for Svelte components. Used when dev=false. - */ -class SvelteComponent { - $destroy() { - destroy_component(this, 1); - this.$destroy = noop; + var argsWithFormat = args.map(function(item) { + return String(item); + }); + argsWithFormat.unshift("Warning: " + format3); + Function.prototype.apply.call(console[level], console, argsWithFormat); + } + } + var didWarnStateUpdateForUnmountedComponent = {}; + function warnNoop(publicInstance, callerName) { + { + var _constructor = publicInstance.constructor; + var componentName = _constructor && (_constructor.displayName || _constructor.name) || "ReactClass"; + var warningKey = componentName + "." + callerName; + if (didWarnStateUpdateForUnmountedComponent[warningKey]) { + return; + } + error("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.", callerName, componentName); + didWarnStateUpdateForUnmountedComponent[warningKey] = true; + } + } + var ReactNoopUpdateQueue = { + isMounted: function(publicInstance) { + return false; + }, + enqueueForceUpdate: function(publicInstance, callback, callerName) { + warnNoop(publicInstance, "forceUpdate"); + }, + enqueueReplaceState: function(publicInstance, completeState, callback, callerName) { + warnNoop(publicInstance, "replaceState"); + }, + enqueueSetState: function(publicInstance, partialState, callback, callerName) { + warnNoop(publicInstance, "setState"); + } + }; + var assign2 = Object.assign; + var emptyObject = {}; + { + Object.freeze(emptyObject); + } + function Component(props, context, updater) { + this.props = props; + this.context = context; + this.refs = emptyObject; + this.updater = updater || ReactNoopUpdateQueue; + } + Component.prototype.isReactComponent = {}; + Component.prototype.setState = function(partialState, callback) { + if (typeof partialState !== "object" && typeof partialState !== "function" && partialState != null) { + throw new Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables."); + } + this.updater.enqueueSetState(this, partialState, callback, "setState"); + }; + Component.prototype.forceUpdate = function(callback) { + this.updater.enqueueForceUpdate(this, callback, "forceUpdate"); + }; + { + var deprecatedAPIs = { + isMounted: ["isMounted", "Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."], + replaceState: ["replaceState", "Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."] + }; + var defineDeprecationWarning = function(methodName, info) { + Object.defineProperty(Component.prototype, methodName, { + get: function() { + warn("%s(...) is deprecated in plain JavaScript React classes. %s", info[0], info[1]); + return void 0; + } + }); + }; + for (var fnName in deprecatedAPIs) { + if (deprecatedAPIs.hasOwnProperty(fnName)) { + defineDeprecationWarning(fnName, deprecatedAPIs[fnName]); + } + } + } + function ComponentDummy() { + } + ComponentDummy.prototype = Component.prototype; + function PureComponent(props, context, updater) { + this.props = props; + this.context = context; + this.refs = emptyObject; + this.updater = updater || ReactNoopUpdateQueue; + } + var pureComponentPrototype = PureComponent.prototype = new ComponentDummy(); + pureComponentPrototype.constructor = PureComponent; + assign2(pureComponentPrototype, Component.prototype); + pureComponentPrototype.isPureReactComponent = true; + function createRef() { + var refObject = { + current: null + }; + { + Object.seal(refObject); + } + return refObject; + } + var isArrayImpl = Array.isArray; + function isArray2(a) { + return isArrayImpl(a); + } + function typeName(value) { + { + var hasToStringTag = typeof Symbol === "function" && Symbol.toStringTag; + var type = hasToStringTag && value[Symbol.toStringTag] || value.constructor.name || "Object"; + return type; + } + } + function willCoercionThrow(value) { + { + try { + testStringCoercion(value); + return false; + } catch (e) { + return true; + } + } + } + function testStringCoercion(value) { + return "" + value; + } + function checkKeyStringCoercion(value) { + { + if (willCoercionThrow(value)) { + error("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", typeName(value)); + return testStringCoercion(value); + } + } + } + function getWrappedName(outerType, innerType, wrapperName) { + var displayName = outerType.displayName; + if (displayName) { + return displayName; + } + var functionName = innerType.displayName || innerType.name || ""; + return functionName !== "" ? wrapperName + "(" + functionName + ")" : wrapperName; + } + function getContextName(type) { + return type.displayName || "Context"; + } + function getComponentNameFromType(type) { + if (type == null) { + return null; + } + { + if (typeof type.tag === "number") { + error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."); + } + } + if (typeof type === "function") { + return type.displayName || type.name || null; + } + if (typeof type === "string") { + return type; + } + switch (type) { + case REACT_FRAGMENT_TYPE: + return "Fragment"; + case REACT_PORTAL_TYPE: + return "Portal"; + case REACT_PROFILER_TYPE: + return "Profiler"; + case REACT_STRICT_MODE_TYPE: + return "StrictMode"; + case REACT_SUSPENSE_TYPE: + return "Suspense"; + case REACT_SUSPENSE_LIST_TYPE: + return "SuspenseList"; + } + if (typeof type === "object") { + switch (type.$$typeof) { + case REACT_CONTEXT_TYPE: + var context = type; + return getContextName(context) + ".Consumer"; + case REACT_PROVIDER_TYPE: + var provider = type; + return getContextName(provider._context) + ".Provider"; + case REACT_FORWARD_REF_TYPE: + return getWrappedName(type, type.render, "ForwardRef"); + case REACT_MEMO_TYPE: + var outerName = type.displayName || null; + if (outerName !== null) { + return outerName; + } + return getComponentNameFromType(type.type) || "Memo"; + case REACT_LAZY_TYPE: { + var lazyComponent = type; + var payload = lazyComponent._payload; + var init2 = lazyComponent._init; + try { + return getComponentNameFromType(init2(payload)); + } catch (x) { + return null; + } + } + } + } + return null; + } + var hasOwnProperty = Object.prototype.hasOwnProperty; + var RESERVED_PROPS = { + key: true, + ref: true, + __self: true, + __source: true + }; + var specialPropKeyWarningShown, specialPropRefWarningShown, didWarnAboutStringRefs; + { + didWarnAboutStringRefs = {}; + } + function hasValidRef(config) { + { + if (hasOwnProperty.call(config, "ref")) { + var getter = Object.getOwnPropertyDescriptor(config, "ref").get; + if (getter && getter.isReactWarning) { + return false; + } + } + } + return config.ref !== void 0; + } + function hasValidKey(config) { + { + if (hasOwnProperty.call(config, "key")) { + var getter = Object.getOwnPropertyDescriptor(config, "key").get; + if (getter && getter.isReactWarning) { + return false; + } + } + } + return config.key !== void 0; + } + function defineKeyPropWarningGetter(props, displayName) { + var warnAboutAccessingKey = function() { + { + if (!specialPropKeyWarningShown) { + specialPropKeyWarningShown = true; + error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", displayName); + } + } + }; + warnAboutAccessingKey.isReactWarning = true; + Object.defineProperty(props, "key", { + get: warnAboutAccessingKey, + configurable: true + }); + } + function defineRefPropWarningGetter(props, displayName) { + var warnAboutAccessingRef = function() { + { + if (!specialPropRefWarningShown) { + specialPropRefWarningShown = true; + error("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", displayName); + } + } + }; + warnAboutAccessingRef.isReactWarning = true; + Object.defineProperty(props, "ref", { + get: warnAboutAccessingRef, + configurable: true + }); + } + function warnIfStringRefCannotBeAutoConverted(config) { + { + if (typeof config.ref === "string" && ReactCurrentOwner.current && config.__self && ReactCurrentOwner.current.stateNode !== config.__self) { + var componentName = getComponentNameFromType(ReactCurrentOwner.current.type); + if (!didWarnAboutStringRefs[componentName]) { + error('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', componentName, config.ref); + didWarnAboutStringRefs[componentName] = true; + } + } + } + } + var ReactElement = function(type, key, ref, self2, source, owner, props) { + var element2 = { + $$typeof: REACT_ELEMENT_TYPE, + type, + key, + ref, + props, + _owner: owner + }; + { + element2._store = {}; + Object.defineProperty(element2._store, "validated", { + configurable: false, + enumerable: false, + writable: true, + value: false + }); + Object.defineProperty(element2, "_self", { + configurable: false, + enumerable: false, + writable: false, + value: self2 + }); + Object.defineProperty(element2, "_source", { + configurable: false, + enumerable: false, + writable: false, + value: source + }); + if (Object.freeze) { + Object.freeze(element2.props); + Object.freeze(element2); + } + } + return element2; + }; + function createElement3(type, config, children2) { + var propName; + var props = {}; + var key = null; + var ref = null; + var self2 = null; + var source = null; + if (config != null) { + if (hasValidRef(config)) { + ref = config.ref; + { + warnIfStringRefCannotBeAutoConverted(config); + } + } + if (hasValidKey(config)) { + { + checkKeyStringCoercion(config.key); + } + key = "" + config.key; + } + self2 = config.__self === void 0 ? null : config.__self; + source = config.__source === void 0 ? null : config.__source; + for (propName in config) { + if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) { + props[propName] = config[propName]; + } + } + } + var childrenLength = arguments.length - 2; + if (childrenLength === 1) { + props.children = children2; + } else if (childrenLength > 1) { + var childArray = Array(childrenLength); + for (var i = 0; i < childrenLength; i++) { + childArray[i] = arguments[i + 2]; + } + { + if (Object.freeze) { + Object.freeze(childArray); + } + } + props.children = childArray; + } + if (type && type.defaultProps) { + var defaultProps = type.defaultProps; + for (propName in defaultProps) { + if (props[propName] === void 0) { + props[propName] = defaultProps[propName]; + } + } + } + { + if (key || ref) { + var displayName = typeof type === "function" ? type.displayName || type.name || "Unknown" : type; + if (key) { + defineKeyPropWarningGetter(props, displayName); + } + if (ref) { + defineRefPropWarningGetter(props, displayName); + } + } + } + return ReactElement(type, key, ref, self2, source, ReactCurrentOwner.current, props); + } + function cloneAndReplaceKey(oldElement, newKey) { + var newElement = ReactElement(oldElement.type, newKey, oldElement.ref, oldElement._self, oldElement._source, oldElement._owner, oldElement.props); + return newElement; + } + function cloneElement(element2, config, children2) { + if (element2 === null || element2 === void 0) { + throw new Error("React.cloneElement(...): The argument must be a React element, but you passed " + element2 + "."); + } + var propName; + var props = assign2({}, element2.props); + var key = element2.key; + var ref = element2.ref; + var self2 = element2._self; + var source = element2._source; + var owner = element2._owner; + if (config != null) { + if (hasValidRef(config)) { + ref = config.ref; + owner = ReactCurrentOwner.current; + } + if (hasValidKey(config)) { + { + checkKeyStringCoercion(config.key); + } + key = "" + config.key; + } + var defaultProps; + if (element2.type && element2.type.defaultProps) { + defaultProps = element2.type.defaultProps; + } + for (propName in config) { + if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) { + if (config[propName] === void 0 && defaultProps !== void 0) { + props[propName] = defaultProps[propName]; + } else { + props[propName] = config[propName]; + } + } + } + } + var childrenLength = arguments.length - 2; + if (childrenLength === 1) { + props.children = children2; + } else if (childrenLength > 1) { + var childArray = Array(childrenLength); + for (var i = 0; i < childrenLength; i++) { + childArray[i] = arguments[i + 2]; + } + props.children = childArray; + } + return ReactElement(element2.type, key, ref, self2, source, owner, props); + } + function isValidElement(object) { + return typeof object === "object" && object !== null && object.$$typeof === REACT_ELEMENT_TYPE; + } + var SEPARATOR = "."; + var SUBSEPARATOR = ":"; + function escape(key) { + var escapeRegex = /[=:]/g; + var escaperLookup = { + "=": "=0", + ":": "=2" + }; + var escapedString = key.replace(escapeRegex, function(match) { + return escaperLookup[match]; + }); + return "$" + escapedString; + } + var didWarnAboutMaps = false; + var userProvidedKeyEscapeRegex = /\/+/g; + function escapeUserProvidedKey(text2) { + return text2.replace(userProvidedKeyEscapeRegex, "$&/"); + } + function getElementKey(element2, index) { + if (typeof element2 === "object" && element2 !== null && element2.key != null) { + { + checkKeyStringCoercion(element2.key); + } + return escape("" + element2.key); + } + return index.toString(36); + } + function mapIntoArray(children2, array, escapedPrefix, nameSoFar, callback) { + var type = typeof children2; + if (type === "undefined" || type === "boolean") { + children2 = null; + } + var invokeCallback = false; + if (children2 === null) { + invokeCallback = true; + } else { + switch (type) { + case "string": + case "number": + invokeCallback = true; + break; + case "object": + switch (children2.$$typeof) { + case REACT_ELEMENT_TYPE: + case REACT_PORTAL_TYPE: + invokeCallback = true; + } + } + } + if (invokeCallback) { + var _child = children2; + var mappedChild = callback(_child); + var childKey = nameSoFar === "" ? SEPARATOR + getElementKey(_child, 0) : nameSoFar; + if (isArray2(mappedChild)) { + var escapedChildKey = ""; + if (childKey != null) { + escapedChildKey = escapeUserProvidedKey(childKey) + "/"; + } + mapIntoArray(mappedChild, array, escapedChildKey, "", function(c) { + return c; + }); + } else if (mappedChild != null) { + if (isValidElement(mappedChild)) { + { + if (mappedChild.key && (!_child || _child.key !== mappedChild.key)) { + checkKeyStringCoercion(mappedChild.key); + } + } + mappedChild = cloneAndReplaceKey( + mappedChild, + escapedPrefix + (mappedChild.key && (!_child || _child.key !== mappedChild.key) ? escapeUserProvidedKey("" + mappedChild.key) + "/" : "") + childKey + ); + } + array.push(mappedChild); + } + return 1; + } + var child; + var nextName; + var subtreeCount = 0; + var nextNamePrefix = nameSoFar === "" ? SEPARATOR : nameSoFar + SUBSEPARATOR; + if (isArray2(children2)) { + for (var i = 0; i < children2.length; i++) { + child = children2[i]; + nextName = nextNamePrefix + getElementKey(child, i); + subtreeCount += mapIntoArray(child, array, escapedPrefix, nextName, callback); + } + } else { + var iteratorFn = getIteratorFn(children2); + if (typeof iteratorFn === "function") { + var iterableChildren = children2; + { + if (iteratorFn === iterableChildren.entries) { + if (!didWarnAboutMaps) { + warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."); + } + didWarnAboutMaps = true; + } + } + var iterator = iteratorFn.call(iterableChildren); + var step; + var ii = 0; + while (!(step = iterator.next()).done) { + child = step.value; + nextName = nextNamePrefix + getElementKey(child, ii++); + subtreeCount += mapIntoArray(child, array, escapedPrefix, nextName, callback); + } + } else if (type === "object") { + var childrenString = String(children2); + throw new Error("Objects are not valid as a React child (found: " + (childrenString === "[object Object]" ? "object with keys {" + Object.keys(children2).join(", ") + "}" : childrenString) + "). If you meant to render a collection of children, use an array instead."); + } + } + return subtreeCount; + } + function mapChildren(children2, func, context) { + if (children2 == null) { + return children2; + } + var result = []; + var count = 0; + mapIntoArray(children2, result, "", "", function(child) { + return func.call(context, child, count++); + }); + return result; + } + function countChildren(children2) { + var n = 0; + mapChildren(children2, function() { + n++; + }); + return n; + } + function forEachChildren(children2, forEachFunc, forEachContext) { + mapChildren(children2, function() { + forEachFunc.apply(this, arguments); + }, forEachContext); + } + function toArray(children2) { + return mapChildren(children2, function(child) { + return child; + }) || []; + } + function onlyChild(children2) { + if (!isValidElement(children2)) { + throw new Error("React.Children.only expected to receive a single React element child."); + } + return children2; + } + function createContext2(defaultValue) { + var context = { + $$typeof: REACT_CONTEXT_TYPE, + _currentValue: defaultValue, + _currentValue2: defaultValue, + _threadCount: 0, + Provider: null, + Consumer: null, + _defaultValue: null, + _globalName: null + }; + context.Provider = { + $$typeof: REACT_PROVIDER_TYPE, + _context: context + }; + var hasWarnedAboutUsingNestedContextConsumers = false; + var hasWarnedAboutUsingConsumerProvider = false; + var hasWarnedAboutDisplayNameOnConsumer = false; + { + var Consumer = { + $$typeof: REACT_CONTEXT_TYPE, + _context: context + }; + Object.defineProperties(Consumer, { + Provider: { + get: function() { + if (!hasWarnedAboutUsingConsumerProvider) { + hasWarnedAboutUsingConsumerProvider = true; + error("Rendering is not supported and will be removed in a future major release. Did you mean to render instead?"); + } + return context.Provider; + }, + set: function(_Provider) { + context.Provider = _Provider; + } + }, + _currentValue: { + get: function() { + return context._currentValue; + }, + set: function(_currentValue) { + context._currentValue = _currentValue; + } + }, + _currentValue2: { + get: function() { + return context._currentValue2; + }, + set: function(_currentValue2) { + context._currentValue2 = _currentValue2; + } + }, + _threadCount: { + get: function() { + return context._threadCount; + }, + set: function(_threadCount) { + context._threadCount = _threadCount; + } + }, + Consumer: { + get: function() { + if (!hasWarnedAboutUsingNestedContextConsumers) { + hasWarnedAboutUsingNestedContextConsumers = true; + error("Rendering is not supported and will be removed in a future major release. Did you mean to render instead?"); + } + return context.Consumer; + } + }, + displayName: { + get: function() { + return context.displayName; + }, + set: function(displayName) { + if (!hasWarnedAboutDisplayNameOnConsumer) { + warn("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.", displayName); + hasWarnedAboutDisplayNameOnConsumer = true; + } + } + } + }); + context.Consumer = Consumer; + } + { + context._currentRenderer = null; + context._currentRenderer2 = null; + } + return context; + } + var Uninitialized = -1; + var Pending = 0; + var Resolved = 1; + var Rejected = 2; + function lazyInitializer(payload) { + if (payload._status === Uninitialized) { + var ctor = payload._result; + var thenable = ctor(); + thenable.then(function(moduleObject2) { + if (payload._status === Pending || payload._status === Uninitialized) { + var resolved = payload; + resolved._status = Resolved; + resolved._result = moduleObject2; + } + }, function(error2) { + if (payload._status === Pending || payload._status === Uninitialized) { + var rejected = payload; + rejected._status = Rejected; + rejected._result = error2; + } + }); + if (payload._status === Uninitialized) { + var pending = payload; + pending._status = Pending; + pending._result = thenable; + } + } + if (payload._status === Resolved) { + var moduleObject = payload._result; + { + if (moduleObject === void 0) { + error("lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))\n\nDid you accidentally put curly braces around the import?", moduleObject); + } + } + { + if (!("default" in moduleObject)) { + error("lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))", moduleObject); + } + } + return moduleObject.default; + } else { + throw payload._result; + } + } + function lazy(ctor) { + var payload = { + _status: Uninitialized, + _result: ctor + }; + var lazyType = { + $$typeof: REACT_LAZY_TYPE, + _payload: payload, + _init: lazyInitializer + }; + { + var defaultProps; + var propTypes; + Object.defineProperties(lazyType, { + defaultProps: { + configurable: true, + get: function() { + return defaultProps; + }, + set: function(newDefaultProps) { + error("React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."); + defaultProps = newDefaultProps; + Object.defineProperty(lazyType, "defaultProps", { + enumerable: true + }); + } + }, + propTypes: { + configurable: true, + get: function() { + return propTypes; + }, + set: function(newPropTypes) { + error("React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."); + propTypes = newPropTypes; + Object.defineProperty(lazyType, "propTypes", { + enumerable: true + }); + } + } + }); + } + return lazyType; + } + function forwardRef(render) { + { + if (render != null && render.$$typeof === REACT_MEMO_TYPE) { + error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."); + } else if (typeof render !== "function") { + error("forwardRef requires a render function but was given %s.", render === null ? "null" : typeof render); + } else { + if (render.length !== 0 && render.length !== 2) { + error("forwardRef render functions accept exactly two parameters: props and ref. %s", render.length === 1 ? "Did you forget to use the ref parameter?" : "Any additional parameter will be undefined."); + } + } + if (render != null) { + if (render.defaultProps != null || render.propTypes != null) { + error("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?"); + } + } + } + var elementType = { + $$typeof: REACT_FORWARD_REF_TYPE, + render + }; + { + var ownName; + Object.defineProperty(elementType, "displayName", { + enumerable: false, + configurable: true, + get: function() { + return ownName; + }, + set: function(name) { + ownName = name; + if (!render.name && !render.displayName) { + render.displayName = name; + } + } + }); + } + return elementType; + } + var REACT_MODULE_REFERENCE; + { + REACT_MODULE_REFERENCE = Symbol.for("react.module.reference"); + } + function isValidElementType(type) { + if (typeof type === "string" || typeof type === "function") { + return true; + } + if (type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || enableDebugTracing || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || enableLegacyHidden || type === REACT_OFFSCREEN_TYPE || enableScopeAPI || enableCacheElement || enableTransitionTracing) { + return true; + } + if (typeof type === "object" && type !== null) { + if (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_MODULE_REFERENCE || type.getModuleId !== void 0) { + return true; + } + } + return false; + } + function memo(type, compare) { + { + if (!isValidElementType(type)) { + error("memo: The first argument must be a component. Instead received: %s", type === null ? "null" : typeof type); + } + } + var elementType = { + $$typeof: REACT_MEMO_TYPE, + type, + compare: compare === void 0 ? null : compare + }; + { + var ownName; + Object.defineProperty(elementType, "displayName", { + enumerable: false, + configurable: true, + get: function() { + return ownName; + }, + set: function(name) { + ownName = name; + if (!type.name && !type.displayName) { + type.displayName = name; + } + } + }); + } + return elementType; + } + function resolveDispatcher() { + var dispatcher = ReactCurrentDispatcher.current; + { + if (dispatcher === null) { + error("Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem."); + } + } + return dispatcher; + } + function useContext2(Context) { + var dispatcher = resolveDispatcher(); + { + if (Context._context !== void 0) { + var realContext = Context._context; + if (realContext.Consumer === Context) { + error("Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be removed in a future major release. Did you mean to call useContext(Context) instead?"); + } else if (realContext.Provider === Context) { + error("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?"); + } + } + } + return dispatcher.useContext(Context); + } + function useState(initialState) { + var dispatcher = resolveDispatcher(); + return dispatcher.useState(initialState); + } + function useReducer(reducer, initialArg, init2) { + var dispatcher = resolveDispatcher(); + return dispatcher.useReducer(reducer, initialArg, init2); + } + function useRef(initialValue) { + var dispatcher = resolveDispatcher(); + return dispatcher.useRef(initialValue); + } + function useEffect(create, deps) { + var dispatcher = resolveDispatcher(); + return dispatcher.useEffect(create, deps); + } + function useInsertionEffect(create, deps) { + var dispatcher = resolveDispatcher(); + return dispatcher.useInsertionEffect(create, deps); + } + function useLayoutEffect(create, deps) { + var dispatcher = resolveDispatcher(); + return dispatcher.useLayoutEffect(create, deps); + } + function useCallback(callback, deps) { + var dispatcher = resolveDispatcher(); + return dispatcher.useCallback(callback, deps); + } + function useMemo(create, deps) { + var dispatcher = resolveDispatcher(); + return dispatcher.useMemo(create, deps); + } + function useImperativeHandle(ref, create, deps) { + var dispatcher = resolveDispatcher(); + return dispatcher.useImperativeHandle(ref, create, deps); + } + function useDebugValue(value, formatterFn) { + { + var dispatcher = resolveDispatcher(); + return dispatcher.useDebugValue(value, formatterFn); + } + } + function useTransition() { + var dispatcher = resolveDispatcher(); + return dispatcher.useTransition(); + } + function useDeferredValue(value) { + var dispatcher = resolveDispatcher(); + return dispatcher.useDeferredValue(value); + } + function useId() { + var dispatcher = resolveDispatcher(); + return dispatcher.useId(); + } + function useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot) { + var dispatcher = resolveDispatcher(); + return dispatcher.useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot); + } + var disabledDepth = 0; + var prevLog; + var prevInfo; + var prevWarn; + var prevError; + var prevGroup; + var prevGroupCollapsed; + var prevGroupEnd; + function disabledLog() { + } + disabledLog.__reactDisabledLog = true; + function disableLogs() { + { + if (disabledDepth === 0) { + prevLog = console.log; + prevInfo = console.info; + prevWarn = console.warn; + prevError = console.error; + prevGroup = console.group; + prevGroupCollapsed = console.groupCollapsed; + prevGroupEnd = console.groupEnd; + var props = { + configurable: true, + enumerable: true, + value: disabledLog, + writable: true + }; + Object.defineProperties(console, { + info: props, + log: props, + warn: props, + error: props, + group: props, + groupCollapsed: props, + groupEnd: props + }); + } + disabledDepth++; + } + } + function reenableLogs() { + { + disabledDepth--; + if (disabledDepth === 0) { + var props = { + configurable: true, + enumerable: true, + writable: true + }; + Object.defineProperties(console, { + log: assign2({}, props, { + value: prevLog + }), + info: assign2({}, props, { + value: prevInfo + }), + warn: assign2({}, props, { + value: prevWarn + }), + error: assign2({}, props, { + value: prevError + }), + group: assign2({}, props, { + value: prevGroup + }), + groupCollapsed: assign2({}, props, { + value: prevGroupCollapsed + }), + groupEnd: assign2({}, props, { + value: prevGroupEnd + }) + }); + } + if (disabledDepth < 0) { + error("disabledDepth fell below zero. This is a bug in React. Please file an issue."); + } + } + } + var ReactCurrentDispatcher$1 = ReactSharedInternals.ReactCurrentDispatcher; + var prefix; + function describeBuiltInComponentFrame(name, source, ownerFn) { + { + if (prefix === void 0) { + try { + throw Error(); + } catch (x) { + var match = x.stack.trim().match(/\n( *(at )?)/); + prefix = match && match[1] || ""; + } + } + return "\n" + prefix + name; + } + } + var reentry = false; + var componentFrameCache; + { + var PossiblyWeakMap = typeof WeakMap === "function" ? WeakMap : Map; + componentFrameCache = new PossiblyWeakMap(); + } + function describeNativeComponentFrame(fn2, construct) { + if (!fn2 || reentry) { + return ""; + } + { + var frame = componentFrameCache.get(fn2); + if (frame !== void 0) { + return frame; + } + } + var control; + reentry = true; + var previousPrepareStackTrace = Error.prepareStackTrace; + Error.prepareStackTrace = void 0; + var previousDispatcher; + { + previousDispatcher = ReactCurrentDispatcher$1.current; + ReactCurrentDispatcher$1.current = null; + disableLogs(); + } + try { + if (construct) { + var Fake = function() { + throw Error(); + }; + Object.defineProperty(Fake.prototype, "props", { + set: function() { + throw Error(); + } + }); + if (typeof Reflect === "object" && Reflect.construct) { + try { + Reflect.construct(Fake, []); + } catch (x) { + control = x; + } + Reflect.construct(fn2, [], Fake); + } else { + try { + Fake.call(); + } catch (x) { + control = x; + } + fn2.call(Fake.prototype); + } + } else { + try { + throw Error(); + } catch (x) { + control = x; + } + fn2(); + } + } catch (sample) { + if (sample && control && typeof sample.stack === "string") { + var sampleLines = sample.stack.split("\n"); + var controlLines = control.stack.split("\n"); + var s = sampleLines.length - 1; + var c = controlLines.length - 1; + while (s >= 1 && c >= 0 && sampleLines[s] !== controlLines[c]) { + c--; + } + for (; s >= 1 && c >= 0; s--, c--) { + if (sampleLines[s] !== controlLines[c]) { + if (s !== 1 || c !== 1) { + do { + s--; + c--; + if (c < 0 || sampleLines[s] !== controlLines[c]) { + var _frame = "\n" + sampleLines[s].replace(" at new ", " at "); + if (fn2.displayName && _frame.includes("")) { + _frame = _frame.replace("", fn2.displayName); + } + { + if (typeof fn2 === "function") { + componentFrameCache.set(fn2, _frame); + } + } + return _frame; + } + } while (s >= 1 && c >= 0); + } + break; + } + } + } + } finally { + reentry = false; + { + ReactCurrentDispatcher$1.current = previousDispatcher; + reenableLogs(); + } + Error.prepareStackTrace = previousPrepareStackTrace; + } + var name = fn2 ? fn2.displayName || fn2.name : ""; + var syntheticFrame = name ? describeBuiltInComponentFrame(name) : ""; + { + if (typeof fn2 === "function") { + componentFrameCache.set(fn2, syntheticFrame); + } + } + return syntheticFrame; + } + function describeFunctionComponentFrame(fn2, source, ownerFn) { + { + return describeNativeComponentFrame(fn2, false); + } + } + function shouldConstruct(Component2) { + var prototype = Component2.prototype; + return !!(prototype && prototype.isReactComponent); + } + function describeUnknownElementTypeFrameInDEV(type, source, ownerFn) { + if (type == null) { + return ""; + } + if (typeof type === "function") { + { + return describeNativeComponentFrame(type, shouldConstruct(type)); + } + } + if (typeof type === "string") { + return describeBuiltInComponentFrame(type); + } + switch (type) { + case REACT_SUSPENSE_TYPE: + return describeBuiltInComponentFrame("Suspense"); + case REACT_SUSPENSE_LIST_TYPE: + return describeBuiltInComponentFrame("SuspenseList"); + } + if (typeof type === "object") { + switch (type.$$typeof) { + case REACT_FORWARD_REF_TYPE: + return describeFunctionComponentFrame(type.render); + case REACT_MEMO_TYPE: + return describeUnknownElementTypeFrameInDEV(type.type, source, ownerFn); + case REACT_LAZY_TYPE: { + var lazyComponent = type; + var payload = lazyComponent._payload; + var init2 = lazyComponent._init; + try { + return describeUnknownElementTypeFrameInDEV(init2(payload), source, ownerFn); + } catch (x) { + } + } + } + } + return ""; + } + var loggedTypeFailures = {}; + var ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame; + function setCurrentlyValidatingElement(element2) { + { + if (element2) { + var owner = element2._owner; + var stack = describeUnknownElementTypeFrameInDEV(element2.type, element2._source, owner ? owner.type : null); + ReactDebugCurrentFrame$1.setExtraStackFrame(stack); + } else { + ReactDebugCurrentFrame$1.setExtraStackFrame(null); + } + } + } + function checkPropTypes(typeSpecs, values, location, componentName, element2) { + { + var has = Function.call.bind(hasOwnProperty); + for (var typeSpecName in typeSpecs) { + if (has(typeSpecs, typeSpecName)) { + var error$1 = void 0; + try { + if (typeof typeSpecs[typeSpecName] !== "function") { + var err = Error((componentName || "React class") + ": " + location + " type `" + typeSpecName + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof typeSpecs[typeSpecName] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."); + err.name = "Invariant Violation"; + throw err; + } + error$1 = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"); + } catch (ex) { + error$1 = ex; + } + if (error$1 && !(error$1 instanceof Error)) { + setCurrentlyValidatingElement(element2); + error("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", componentName || "React class", location, typeSpecName, typeof error$1); + setCurrentlyValidatingElement(null); + } + if (error$1 instanceof Error && !(error$1.message in loggedTypeFailures)) { + loggedTypeFailures[error$1.message] = true; + setCurrentlyValidatingElement(element2); + error("Failed %s type: %s", location, error$1.message); + setCurrentlyValidatingElement(null); + } + } + } + } + } + function setCurrentlyValidatingElement$1(element2) { + { + if (element2) { + var owner = element2._owner; + var stack = describeUnknownElementTypeFrameInDEV(element2.type, element2._source, owner ? owner.type : null); + setExtraStackFrame(stack); + } else { + setExtraStackFrame(null); + } + } + } + var propTypesMisspellWarningShown; + { + propTypesMisspellWarningShown = false; + } + function getDeclarationErrorAddendum() { + if (ReactCurrentOwner.current) { + var name = getComponentNameFromType(ReactCurrentOwner.current.type); + if (name) { + return "\n\nCheck the render method of `" + name + "`."; + } + } + return ""; + } + function getSourceInfoErrorAddendum(source) { + if (source !== void 0) { + var fileName = source.fileName.replace(/^.*[\\\/]/, ""); + var lineNumber = source.lineNumber; + return "\n\nCheck your code at " + fileName + ":" + lineNumber + "."; + } + return ""; + } + function getSourceInfoErrorAddendumForProps(elementProps) { + if (elementProps !== null && elementProps !== void 0) { + return getSourceInfoErrorAddendum(elementProps.__source); + } + return ""; + } + var ownerHasKeyUseWarning = {}; + function getCurrentComponentErrorInfo(parentType) { + var info = getDeclarationErrorAddendum(); + if (!info) { + var parentName = typeof parentType === "string" ? parentType : parentType.displayName || parentType.name; + if (parentName) { + info = "\n\nCheck the top-level render call using <" + parentName + ">."; + } + } + return info; + } + function validateExplicitKey(element2, parentType) { + if (!element2._store || element2._store.validated || element2.key != null) { + return; + } + element2._store.validated = true; + var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType); + if (ownerHasKeyUseWarning[currentComponentErrorInfo]) { + return; + } + ownerHasKeyUseWarning[currentComponentErrorInfo] = true; + var childOwner = ""; + if (element2 && element2._owner && element2._owner !== ReactCurrentOwner.current) { + childOwner = " It was passed a child from " + getComponentNameFromType(element2._owner.type) + "."; + } + { + setCurrentlyValidatingElement$1(element2); + error('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', currentComponentErrorInfo, childOwner); + setCurrentlyValidatingElement$1(null); + } + } + function validateChildKeys(node, parentType) { + if (typeof node !== "object") { + return; + } + if (isArray2(node)) { + for (var i = 0; i < node.length; i++) { + var child = node[i]; + if (isValidElement(child)) { + validateExplicitKey(child, parentType); + } + } + } else if (isValidElement(node)) { + if (node._store) { + node._store.validated = true; + } + } else if (node) { + var iteratorFn = getIteratorFn(node); + if (typeof iteratorFn === "function") { + if (iteratorFn !== node.entries) { + var iterator = iteratorFn.call(node); + var step; + while (!(step = iterator.next()).done) { + if (isValidElement(step.value)) { + validateExplicitKey(step.value, parentType); + } + } + } + } + } + } + function validatePropTypes(element2) { + { + var type = element2.type; + if (type === null || type === void 0 || typeof type === "string") { + return; + } + var propTypes; + if (typeof type === "function") { + propTypes = type.propTypes; + } else if (typeof type === "object" && (type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_MEMO_TYPE)) { + propTypes = type.propTypes; + } else { + return; + } + if (propTypes) { + var name = getComponentNameFromType(type); + checkPropTypes(propTypes, element2.props, "prop", name, element2); + } else if (type.PropTypes !== void 0 && !propTypesMisspellWarningShown) { + propTypesMisspellWarningShown = true; + var _name = getComponentNameFromType(type); + error("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", _name || "Unknown"); + } + if (typeof type.getDefaultProps === "function" && !type.getDefaultProps.isReactClassApproved) { + error("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead."); + } + } + } + function validateFragmentProps(fragment) { + { + var keys = Object.keys(fragment.props); + for (var i = 0; i < keys.length; i++) { + var key = keys[i]; + if (key !== "children" && key !== "key") { + setCurrentlyValidatingElement$1(fragment); + error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", key); + setCurrentlyValidatingElement$1(null); + break; + } + } + if (fragment.ref !== null) { + setCurrentlyValidatingElement$1(fragment); + error("Invalid attribute `ref` supplied to `React.Fragment`."); + setCurrentlyValidatingElement$1(null); + } + } + } + function createElementWithValidation(type, props, children2) { + var validType = isValidElementType(type); + if (!validType) { + var info = ""; + if (type === void 0 || typeof type === "object" && type !== null && Object.keys(type).length === 0) { + info += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."; + } + var sourceInfo = getSourceInfoErrorAddendumForProps(props); + if (sourceInfo) { + info += sourceInfo; + } else { + info += getDeclarationErrorAddendum(); + } + var typeString; + if (type === null) { + typeString = "null"; + } else if (isArray2(type)) { + typeString = "array"; + } else if (type !== void 0 && type.$$typeof === REACT_ELEMENT_TYPE) { + typeString = "<" + (getComponentNameFromType(type.type) || "Unknown") + " />"; + info = " Did you accidentally export a JSX literal instead of a component?"; + } else { + typeString = typeof type; + } + { + error("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", typeString, info); + } + } + var element2 = createElement3.apply(this, arguments); + if (element2 == null) { + return element2; + } + if (validType) { + for (var i = 2; i < arguments.length; i++) { + validateChildKeys(arguments[i], type); + } + } + if (type === REACT_FRAGMENT_TYPE) { + validateFragmentProps(element2); + } else { + validatePropTypes(element2); + } + return element2; + } + var didWarnAboutDeprecatedCreateFactory = false; + function createFactoryWithValidation(type) { + var validatedFactory = createElementWithValidation.bind(null, type); + validatedFactory.type = type; + { + if (!didWarnAboutDeprecatedCreateFactory) { + didWarnAboutDeprecatedCreateFactory = true; + warn("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead."); + } + Object.defineProperty(validatedFactory, "type", { + enumerable: false, + get: function() { + warn("Factory.type is deprecated. Access the class directly before passing it to createFactory."); + Object.defineProperty(this, "type", { + value: type + }); + return type; + } + }); + } + return validatedFactory; + } + function cloneElementWithValidation(element2, props, children2) { + var newElement = cloneElement.apply(this, arguments); + for (var i = 2; i < arguments.length; i++) { + validateChildKeys(arguments[i], newElement.type); + } + validatePropTypes(newElement); + return newElement; + } + function startTransition(scope, options) { + var prevTransition = ReactCurrentBatchConfig.transition; + ReactCurrentBatchConfig.transition = {}; + var currentTransition = ReactCurrentBatchConfig.transition; + { + ReactCurrentBatchConfig.transition._updatedFibers = /* @__PURE__ */ new Set(); + } + try { + scope(); + } finally { + ReactCurrentBatchConfig.transition = prevTransition; + { + if (prevTransition === null && currentTransition._updatedFibers) { + var updatedFibersCount = currentTransition._updatedFibers.size; + if (updatedFibersCount > 10) { + warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."); + } + currentTransition._updatedFibers.clear(); + } + } + } + } + var didWarnAboutMessageChannel = false; + var enqueueTaskImpl = null; + function enqueueTask(task) { + if (enqueueTaskImpl === null) { + try { + var requireString = ("require" + Math.random()).slice(0, 7); + var nodeRequire = module2 && module2[requireString]; + enqueueTaskImpl = nodeRequire.call(module2, "timers").setImmediate; + } catch (_err) { + enqueueTaskImpl = function(callback) { + { + if (didWarnAboutMessageChannel === false) { + didWarnAboutMessageChannel = true; + if (typeof MessageChannel === "undefined") { + error("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."); + } + } + } + var channel = new MessageChannel(); + channel.port1.onmessage = callback; + channel.port2.postMessage(void 0); + }; + } + } + return enqueueTaskImpl(task); + } + var actScopeDepth = 0; + var didWarnNoAwaitAct = false; + function act(callback) { + { + var prevActScopeDepth = actScopeDepth; + actScopeDepth++; + if (ReactCurrentActQueue.current === null) { + ReactCurrentActQueue.current = []; + } + var prevIsBatchingLegacy = ReactCurrentActQueue.isBatchingLegacy; + var result; + try { + ReactCurrentActQueue.isBatchingLegacy = true; + result = callback(); + if (!prevIsBatchingLegacy && ReactCurrentActQueue.didScheduleLegacyUpdate) { + var queue = ReactCurrentActQueue.current; + if (queue !== null) { + ReactCurrentActQueue.didScheduleLegacyUpdate = false; + flushActQueue(queue); + } + } + } catch (error2) { + popActScope(prevActScopeDepth); + throw error2; + } finally { + ReactCurrentActQueue.isBatchingLegacy = prevIsBatchingLegacy; + } + if (result !== null && typeof result === "object" && typeof result.then === "function") { + var thenableResult = result; + var wasAwaited = false; + var thenable = { + then: function(resolve, reject) { + wasAwaited = true; + thenableResult.then(function(returnValue2) { + popActScope(prevActScopeDepth); + if (actScopeDepth === 0) { + recursivelyFlushAsyncActWork(returnValue2, resolve, reject); + } else { + resolve(returnValue2); + } + }, function(error2) { + popActScope(prevActScopeDepth); + reject(error2); + }); + } + }; + { + if (!didWarnNoAwaitAct && typeof Promise !== "undefined") { + Promise.resolve().then(function() { + }).then(function() { + if (!wasAwaited) { + didWarnNoAwaitAct = true; + error("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"); + } + }); + } + } + return thenable; + } else { + var returnValue = result; + popActScope(prevActScopeDepth); + if (actScopeDepth === 0) { + var _queue = ReactCurrentActQueue.current; + if (_queue !== null) { + flushActQueue(_queue); + ReactCurrentActQueue.current = null; + } + var _thenable = { + then: function(resolve, reject) { + if (ReactCurrentActQueue.current === null) { + ReactCurrentActQueue.current = []; + recursivelyFlushAsyncActWork(returnValue, resolve, reject); + } else { + resolve(returnValue); + } + } + }; + return _thenable; + } else { + var _thenable2 = { + then: function(resolve, reject) { + resolve(returnValue); + } + }; + return _thenable2; + } + } + } + } + function popActScope(prevActScopeDepth) { + { + if (prevActScopeDepth !== actScopeDepth - 1) { + error("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "); + } + actScopeDepth = prevActScopeDepth; + } + } + function recursivelyFlushAsyncActWork(returnValue, resolve, reject) { + { + var queue = ReactCurrentActQueue.current; + if (queue !== null) { + try { + flushActQueue(queue); + enqueueTask(function() { + if (queue.length === 0) { + ReactCurrentActQueue.current = null; + resolve(returnValue); + } else { + recursivelyFlushAsyncActWork(returnValue, resolve, reject); + } + }); + } catch (error2) { + reject(error2); + } + } else { + resolve(returnValue); + } + } + } + var isFlushing = false; + function flushActQueue(queue) { + { + if (!isFlushing) { + isFlushing = true; + var i = 0; + try { + for (; i < queue.length; i++) { + var callback = queue[i]; + do { + callback = callback(true); + } while (callback !== null); + } + queue.length = 0; + } catch (error2) { + queue = queue.slice(i + 1); + throw error2; + } finally { + isFlushing = false; + } + } + } + } + var createElement$1 = createElementWithValidation; + var cloneElement$1 = cloneElementWithValidation; + var createFactory = createFactoryWithValidation; + var Children = { + map: mapChildren, + forEach: forEachChildren, + count: countChildren, + toArray, + only: onlyChild + }; + exports.Children = Children; + exports.Component = Component; + exports.Fragment = REACT_FRAGMENT_TYPE; + exports.Profiler = REACT_PROFILER_TYPE; + exports.PureComponent = PureComponent; + exports.StrictMode = REACT_STRICT_MODE_TYPE; + exports.Suspense = REACT_SUSPENSE_TYPE; + exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = ReactSharedInternals; + exports.cloneElement = cloneElement$1; + exports.createContext = createContext2; + exports.createElement = createElement$1; + exports.createFactory = createFactory; + exports.createRef = createRef; + exports.forwardRef = forwardRef; + exports.isValidElement = isValidElement; + exports.lazy = lazy; + exports.memo = memo; + exports.startTransition = startTransition; + exports.unstable_act = act; + exports.useCallback = useCallback; + exports.useContext = useContext2; + exports.useDebugValue = useDebugValue; + exports.useDeferredValue = useDeferredValue; + exports.useEffect = useEffect; + exports.useId = useId; + exports.useImperativeHandle = useImperativeHandle; + exports.useInsertionEffect = useInsertionEffect; + exports.useLayoutEffect = useLayoutEffect; + exports.useMemo = useMemo; + exports.useReducer = useReducer; + exports.useRef = useRef; + exports.useState = useState; + exports.useSyncExternalStore = useSyncExternalStore; + exports.useTransition = useTransition; + exports.version = ReactVersion; + if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== "undefined" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop === "function") { + __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error()); + } + })(); + } + } +}); + +// node_modules/.pnpm/react@18.2.0/node_modules/react/index.js +var require_react = __commonJS({ + "node_modules/.pnpm/react@18.2.0/node_modules/react/index.js"(exports, module2) { + "use strict"; + if (false) { + module2.exports = null; + } else { + module2.exports = require_react_development(); + } + } +}); + +// node_modules/.pnpm/scheduler@0.23.0/node_modules/scheduler/cjs/scheduler.development.js +var require_scheduler_development = __commonJS({ + "node_modules/.pnpm/scheduler@0.23.0/node_modules/scheduler/cjs/scheduler.development.js"(exports) { + "use strict"; + if (true) { + (function() { + "use strict"; + if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== "undefined" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart === "function") { + __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error()); + } + var enableSchedulerDebugging = false; + var enableProfiling = false; + var frameYieldMs = 5; + function push(heap, node) { + var index = heap.length; + heap.push(node); + siftUp(heap, node, index); + } + function peek(heap) { + return heap.length === 0 ? null : heap[0]; + } + function pop(heap) { + if (heap.length === 0) { + return null; + } + var first = heap[0]; + var last = heap.pop(); + if (last !== first) { + heap[0] = last; + siftDown(heap, last, 0); + } + return first; + } + function siftUp(heap, node, i) { + var index = i; + while (index > 0) { + var parentIndex = index - 1 >>> 1; + var parent = heap[parentIndex]; + if (compare(parent, node) > 0) { + heap[parentIndex] = node; + heap[index] = parent; + index = parentIndex; + } else { + return; + } + } + } + function siftDown(heap, node, i) { + var index = i; + var length = heap.length; + var halfLength = length >>> 1; + while (index < halfLength) { + var leftIndex = (index + 1) * 2 - 1; + var left2 = heap[leftIndex]; + var rightIndex = leftIndex + 1; + var right2 = heap[rightIndex]; + if (compare(left2, node) < 0) { + if (rightIndex < length && compare(right2, left2) < 0) { + heap[index] = right2; + heap[rightIndex] = node; + index = rightIndex; + } else { + heap[index] = left2; + heap[leftIndex] = node; + index = leftIndex; + } + } else if (rightIndex < length && compare(right2, node) < 0) { + heap[index] = right2; + heap[rightIndex] = node; + index = rightIndex; + } else { + return; + } + } + } + function compare(a, b) { + var diff = a.sortIndex - b.sortIndex; + return diff !== 0 ? diff : a.id - b.id; + } + var ImmediatePriority = 1; + var UserBlockingPriority = 2; + var NormalPriority = 3; + var LowPriority = 4; + var IdlePriority = 5; + function markTaskErrored(task, ms) { + } + var hasPerformanceNow = typeof performance === "object" && typeof performance.now === "function"; + if (hasPerformanceNow) { + var localPerformance = performance; + exports.unstable_now = function() { + return localPerformance.now(); + }; + } else { + var localDate = Date; + var initialTime = localDate.now(); + exports.unstable_now = function() { + return localDate.now() - initialTime; + }; + } + var maxSigned31BitInt = 1073741823; + var IMMEDIATE_PRIORITY_TIMEOUT = -1; + var USER_BLOCKING_PRIORITY_TIMEOUT = 250; + var NORMAL_PRIORITY_TIMEOUT = 5e3; + var LOW_PRIORITY_TIMEOUT = 1e4; + var IDLE_PRIORITY_TIMEOUT = maxSigned31BitInt; + var taskQueue = []; + var timerQueue = []; + var taskIdCounter = 1; + var currentTask = null; + var currentPriorityLevel = NormalPriority; + var isPerformingWork = false; + var isHostCallbackScheduled = false; + var isHostTimeoutScheduled = false; + var localSetTimeout = typeof setTimeout === "function" ? setTimeout : null; + var localClearTimeout = typeof clearTimeout === "function" ? clearTimeout : null; + var localSetImmediate = typeof setImmediate !== "undefined" ? setImmediate : null; + var isInputPending = typeof navigator !== "undefined" && navigator.scheduling !== void 0 && navigator.scheduling.isInputPending !== void 0 ? navigator.scheduling.isInputPending.bind(navigator.scheduling) : null; + function advanceTimers(currentTime) { + var timer = peek(timerQueue); + while (timer !== null) { + if (timer.callback === null) { + pop(timerQueue); + } else if (timer.startTime <= currentTime) { + pop(timerQueue); + timer.sortIndex = timer.expirationTime; + push(taskQueue, timer); + } else { + return; + } + timer = peek(timerQueue); + } + } + function handleTimeout(currentTime) { + isHostTimeoutScheduled = false; + advanceTimers(currentTime); + if (!isHostCallbackScheduled) { + if (peek(taskQueue) !== null) { + isHostCallbackScheduled = true; + requestHostCallback(flushWork); + } else { + var firstTimer = peek(timerQueue); + if (firstTimer !== null) { + requestHostTimeout(handleTimeout, firstTimer.startTime - currentTime); + } + } + } + } + function flushWork(hasTimeRemaining, initialTime2) { + isHostCallbackScheduled = false; + if (isHostTimeoutScheduled) { + isHostTimeoutScheduled = false; + cancelHostTimeout(); + } + isPerformingWork = true; + var previousPriorityLevel = currentPriorityLevel; + try { + if (enableProfiling) { + try { + return workLoop(hasTimeRemaining, initialTime2); + } catch (error) { + if (currentTask !== null) { + var currentTime = exports.unstable_now(); + markTaskErrored(currentTask, currentTime); + currentTask.isQueued = false; + } + throw error; + } + } else { + return workLoop(hasTimeRemaining, initialTime2); + } + } finally { + currentTask = null; + currentPriorityLevel = previousPriorityLevel; + isPerformingWork = false; + } + } + function workLoop(hasTimeRemaining, initialTime2) { + var currentTime = initialTime2; + advanceTimers(currentTime); + currentTask = peek(taskQueue); + while (currentTask !== null && !enableSchedulerDebugging) { + if (currentTask.expirationTime > currentTime && (!hasTimeRemaining || shouldYieldToHost())) { + break; + } + var callback = currentTask.callback; + if (typeof callback === "function") { + currentTask.callback = null; + currentPriorityLevel = currentTask.priorityLevel; + var didUserCallbackTimeout = currentTask.expirationTime <= currentTime; + var continuationCallback = callback(didUserCallbackTimeout); + currentTime = exports.unstable_now(); + if (typeof continuationCallback === "function") { + currentTask.callback = continuationCallback; + } else { + if (currentTask === peek(taskQueue)) { + pop(taskQueue); + } + } + advanceTimers(currentTime); + } else { + pop(taskQueue); + } + currentTask = peek(taskQueue); + } + if (currentTask !== null) { + return true; + } else { + var firstTimer = peek(timerQueue); + if (firstTimer !== null) { + requestHostTimeout(handleTimeout, firstTimer.startTime - currentTime); + } + return false; + } + } + function unstable_runWithPriority(priorityLevel, eventHandler) { + switch (priorityLevel) { + case ImmediatePriority: + case UserBlockingPriority: + case NormalPriority: + case LowPriority: + case IdlePriority: + break; + default: + priorityLevel = NormalPriority; + } + var previousPriorityLevel = currentPriorityLevel; + currentPriorityLevel = priorityLevel; + try { + return eventHandler(); + } finally { + currentPriorityLevel = previousPriorityLevel; + } + } + function unstable_next(eventHandler) { + var priorityLevel; + switch (currentPriorityLevel) { + case ImmediatePriority: + case UserBlockingPriority: + case NormalPriority: + priorityLevel = NormalPriority; + break; + default: + priorityLevel = currentPriorityLevel; + break; + } + var previousPriorityLevel = currentPriorityLevel; + currentPriorityLevel = priorityLevel; + try { + return eventHandler(); + } finally { + currentPriorityLevel = previousPriorityLevel; + } + } + function unstable_wrapCallback(callback) { + var parentPriorityLevel = currentPriorityLevel; + return function() { + var previousPriorityLevel = currentPriorityLevel; + currentPriorityLevel = parentPriorityLevel; + try { + return callback.apply(this, arguments); + } finally { + currentPriorityLevel = previousPriorityLevel; + } + }; + } + function unstable_scheduleCallback(priorityLevel, callback, options) { + var currentTime = exports.unstable_now(); + var startTime2; + if (typeof options === "object" && options !== null) { + var delay = options.delay; + if (typeof delay === "number" && delay > 0) { + startTime2 = currentTime + delay; + } else { + startTime2 = currentTime; + } + } else { + startTime2 = currentTime; + } + var timeout; + switch (priorityLevel) { + case ImmediatePriority: + timeout = IMMEDIATE_PRIORITY_TIMEOUT; + break; + case UserBlockingPriority: + timeout = USER_BLOCKING_PRIORITY_TIMEOUT; + break; + case IdlePriority: + timeout = IDLE_PRIORITY_TIMEOUT; + break; + case LowPriority: + timeout = LOW_PRIORITY_TIMEOUT; + break; + case NormalPriority: + default: + timeout = NORMAL_PRIORITY_TIMEOUT; + break; + } + var expirationTime = startTime2 + timeout; + var newTask = { + id: taskIdCounter++, + callback, + priorityLevel, + startTime: startTime2, + expirationTime, + sortIndex: -1 + }; + if (startTime2 > currentTime) { + newTask.sortIndex = startTime2; + push(timerQueue, newTask); + if (peek(taskQueue) === null && newTask === peek(timerQueue)) { + if (isHostTimeoutScheduled) { + cancelHostTimeout(); + } else { + isHostTimeoutScheduled = true; + } + requestHostTimeout(handleTimeout, startTime2 - currentTime); + } + } else { + newTask.sortIndex = expirationTime; + push(taskQueue, newTask); + if (!isHostCallbackScheduled && !isPerformingWork) { + isHostCallbackScheduled = true; + requestHostCallback(flushWork); + } + } + return newTask; + } + function unstable_pauseExecution() { + } + function unstable_continueExecution() { + if (!isHostCallbackScheduled && !isPerformingWork) { + isHostCallbackScheduled = true; + requestHostCallback(flushWork); + } + } + function unstable_getFirstCallbackNode() { + return peek(taskQueue); + } + function unstable_cancelCallback(task) { + task.callback = null; + } + function unstable_getCurrentPriorityLevel() { + return currentPriorityLevel; + } + var isMessageLoopRunning = false; + var scheduledHostCallback = null; + var taskTimeoutID = -1; + var frameInterval = frameYieldMs; + var startTime = -1; + function shouldYieldToHost() { + var timeElapsed = exports.unstable_now() - startTime; + if (timeElapsed < frameInterval) { + return false; + } + return true; + } + function requestPaint() { + } + function forceFrameRate(fps) { + if (fps < 0 || fps > 125) { + console["error"]("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"); + return; + } + if (fps > 0) { + frameInterval = Math.floor(1e3 / fps); + } else { + frameInterval = frameYieldMs; + } + } + var performWorkUntilDeadline = function() { + if (scheduledHostCallback !== null) { + var currentTime = exports.unstable_now(); + startTime = currentTime; + var hasTimeRemaining = true; + var hasMoreWork = true; + try { + hasMoreWork = scheduledHostCallback(hasTimeRemaining, currentTime); + } finally { + if (hasMoreWork) { + schedulePerformWorkUntilDeadline(); + } else { + isMessageLoopRunning = false; + scheduledHostCallback = null; + } + } + } else { + isMessageLoopRunning = false; + } + }; + var schedulePerformWorkUntilDeadline; + if (typeof localSetImmediate === "function") { + schedulePerformWorkUntilDeadline = function() { + localSetImmediate(performWorkUntilDeadline); + }; + } else if (typeof MessageChannel !== "undefined") { + var channel = new MessageChannel(); + var port = channel.port2; + channel.port1.onmessage = performWorkUntilDeadline; + schedulePerformWorkUntilDeadline = function() { + port.postMessage(null); + }; + } else { + schedulePerformWorkUntilDeadline = function() { + localSetTimeout(performWorkUntilDeadline, 0); + }; + } + function requestHostCallback(callback) { + scheduledHostCallback = callback; + if (!isMessageLoopRunning) { + isMessageLoopRunning = true; + schedulePerformWorkUntilDeadline(); + } + } + function requestHostTimeout(callback, ms) { + taskTimeoutID = localSetTimeout(function() { + callback(exports.unstable_now()); + }, ms); + } + function cancelHostTimeout() { + localClearTimeout(taskTimeoutID); + taskTimeoutID = -1; + } + var unstable_requestPaint = requestPaint; + var unstable_Profiling = null; + exports.unstable_IdlePriority = IdlePriority; + exports.unstable_ImmediatePriority = ImmediatePriority; + exports.unstable_LowPriority = LowPriority; + exports.unstable_NormalPriority = NormalPriority; + exports.unstable_Profiling = unstable_Profiling; + exports.unstable_UserBlockingPriority = UserBlockingPriority; + exports.unstable_cancelCallback = unstable_cancelCallback; + exports.unstable_continueExecution = unstable_continueExecution; + exports.unstable_forceFrameRate = forceFrameRate; + exports.unstable_getCurrentPriorityLevel = unstable_getCurrentPriorityLevel; + exports.unstable_getFirstCallbackNode = unstable_getFirstCallbackNode; + exports.unstable_next = unstable_next; + exports.unstable_pauseExecution = unstable_pauseExecution; + exports.unstable_requestPaint = unstable_requestPaint; + exports.unstable_runWithPriority = unstable_runWithPriority; + exports.unstable_scheduleCallback = unstable_scheduleCallback; + exports.unstable_shouldYield = shouldYieldToHost; + exports.unstable_wrapCallback = unstable_wrapCallback; + if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== "undefined" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop === "function") { + __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error()); + } + })(); + } + } +}); + +// node_modules/.pnpm/scheduler@0.23.0/node_modules/scheduler/index.js +var require_scheduler = __commonJS({ + "node_modules/.pnpm/scheduler@0.23.0/node_modules/scheduler/index.js"(exports, module2) { + "use strict"; + if (false) { + module2.exports = null; + } else { + module2.exports = require_scheduler_development(); + } + } +}); + +// node_modules/.pnpm/react-dom@18.2.0_react@18.2.0/node_modules/react-dom/cjs/react-dom.development.js +var require_react_dom_development = __commonJS({ + "node_modules/.pnpm/react-dom@18.2.0_react@18.2.0/node_modules/react-dom/cjs/react-dom.development.js"(exports) { + "use strict"; + if (true) { + (function() { + "use strict"; + if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== "undefined" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart === "function") { + __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error()); + } + var React4 = require_react(); + var Scheduler = require_scheduler(); + var ReactSharedInternals = React4.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; + var suppressWarning = false; + function setSuppressWarning(newSuppressWarning) { + { + suppressWarning = newSuppressWarning; + } + } + function warn(format3) { + { + if (!suppressWarning) { + for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { + args[_key - 1] = arguments[_key]; + } + printWarning("warn", format3, args); + } + } + } + function error(format3) { + { + if (!suppressWarning) { + for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) { + args[_key2 - 1] = arguments[_key2]; + } + printWarning("error", format3, args); + } + } + } + function printWarning(level, format3, args) { + { + var ReactDebugCurrentFrame2 = ReactSharedInternals.ReactDebugCurrentFrame; + var stack = ReactDebugCurrentFrame2.getStackAddendum(); + if (stack !== "") { + format3 += "%s"; + args = args.concat([stack]); + } + var argsWithFormat = args.map(function(item) { + return String(item); + }); + argsWithFormat.unshift("Warning: " + format3); + Function.prototype.apply.call(console[level], console, argsWithFormat); + } + } + var FunctionComponent = 0; + var ClassComponent = 1; + var IndeterminateComponent = 2; + var HostRoot = 3; + var HostPortal = 4; + var HostComponent = 5; + var HostText = 6; + var Fragment = 7; + var Mode = 8; + var ContextConsumer = 9; + var ContextProvider = 10; + var ForwardRef = 11; + var Profiler = 12; + var SuspenseComponent = 13; + var MemoComponent = 14; + var SimpleMemoComponent = 15; + var LazyComponent = 16; + var IncompleteClassComponent = 17; + var DehydratedFragment = 18; + var SuspenseListComponent = 19; + var ScopeComponent = 21; + var OffscreenComponent = 22; + var LegacyHiddenComponent = 23; + var CacheComponent = 24; + var TracingMarkerComponent = 25; + var enableClientRenderFallbackOnTextMismatch = true; + var enableNewReconciler = false; + var enableLazyContextPropagation = false; + var enableLegacyHidden = false; + var enableSuspenseAvoidThisFallback = false; + var disableCommentsAsDOMContainers = true; + var enableCustomElementPropertySupport = false; + var warnAboutStringRefs = false; + var enableSchedulingProfiler = true; + var enableProfilerTimer = true; + var enableProfilerCommitHooks = true; + var allNativeEvents = /* @__PURE__ */ new Set(); + var registrationNameDependencies = {}; + var possibleRegistrationNames = {}; + function registerTwoPhaseEvent(registrationName, dependencies) { + registerDirectEvent(registrationName, dependencies); + registerDirectEvent(registrationName + "Capture", dependencies); + } + function registerDirectEvent(registrationName, dependencies) { + { + if (registrationNameDependencies[registrationName]) { + error("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.", registrationName); + } + } + registrationNameDependencies[registrationName] = dependencies; + { + var lowerCasedName = registrationName.toLowerCase(); + possibleRegistrationNames[lowerCasedName] = registrationName; + if (registrationName === "onDoubleClick") { + possibleRegistrationNames.ondblclick = registrationName; + } + } + for (var i = 0; i < dependencies.length; i++) { + allNativeEvents.add(dependencies[i]); + } + } + var canUseDOM = !!(typeof window !== "undefined" && typeof window.document !== "undefined" && typeof window.document.createElement !== "undefined"); + var hasOwnProperty = Object.prototype.hasOwnProperty; + function typeName(value) { + { + var hasToStringTag = typeof Symbol === "function" && Symbol.toStringTag; + var type = hasToStringTag && value[Symbol.toStringTag] || value.constructor.name || "Object"; + return type; + } + } + function willCoercionThrow(value) { + { + try { + testStringCoercion(value); + return false; + } catch (e) { + return true; + } + } + } + function testStringCoercion(value) { + return "" + value; + } + function checkAttributeStringCoercion(value, attributeName) { + { + if (willCoercionThrow(value)) { + error("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before before using it here.", attributeName, typeName(value)); + return testStringCoercion(value); + } + } + } + function checkKeyStringCoercion(value) { + { + if (willCoercionThrow(value)) { + error("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", typeName(value)); + return testStringCoercion(value); + } + } + } + function checkPropStringCoercion(value, propName) { + { + if (willCoercionThrow(value)) { + error("The provided `%s` prop is an unsupported type %s. This value must be coerced to a string before before using it here.", propName, typeName(value)); + return testStringCoercion(value); + } + } + } + function checkCSSPropertyStringCoercion(value, propName) { + { + if (willCoercionThrow(value)) { + error("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before before using it here.", propName, typeName(value)); + return testStringCoercion(value); + } + } + } + function checkHtmlStringCoercion(value) { + { + if (willCoercionThrow(value)) { + error("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before before using it here.", typeName(value)); + return testStringCoercion(value); + } + } + } + function checkFormFieldValueStringCoercion(value) { + { + if (willCoercionThrow(value)) { + error("Form field values (value, checked, defaultValue, or defaultChecked props) must be strings, not %s. This value must be coerced to a string before before using it here.", typeName(value)); + return testStringCoercion(value); + } + } + } + var RESERVED = 0; + var STRING = 1; + var BOOLEANISH_STRING = 2; + var BOOLEAN = 3; + var OVERLOADED_BOOLEAN = 4; + var NUMERIC = 5; + var POSITIVE_NUMERIC = 6; + var ATTRIBUTE_NAME_START_CHAR = ":A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD"; + var ATTRIBUTE_NAME_CHAR = ATTRIBUTE_NAME_START_CHAR + "\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040"; + var VALID_ATTRIBUTE_NAME_REGEX = new RegExp("^[" + ATTRIBUTE_NAME_START_CHAR + "][" + ATTRIBUTE_NAME_CHAR + "]*$"); + var illegalAttributeNameCache = {}; + var validatedAttributeNameCache = {}; + function isAttributeNameSafe(attributeName) { + if (hasOwnProperty.call(validatedAttributeNameCache, attributeName)) { + return true; + } + if (hasOwnProperty.call(illegalAttributeNameCache, attributeName)) { + return false; + } + if (VALID_ATTRIBUTE_NAME_REGEX.test(attributeName)) { + validatedAttributeNameCache[attributeName] = true; + return true; + } + illegalAttributeNameCache[attributeName] = true; + { + error("Invalid attribute name: `%s`", attributeName); + } + return false; + } + function shouldIgnoreAttribute(name, propertyInfo, isCustomComponentTag) { + if (propertyInfo !== null) { + return propertyInfo.type === RESERVED; + } + if (isCustomComponentTag) { + return false; + } + if (name.length > 2 && (name[0] === "o" || name[0] === "O") && (name[1] === "n" || name[1] === "N")) { + return true; + } + return false; + } + function shouldRemoveAttributeWithWarning(name, value, propertyInfo, isCustomComponentTag) { + if (propertyInfo !== null && propertyInfo.type === RESERVED) { + return false; + } + switch (typeof value) { + case "function": + case "symbol": + return true; + case "boolean": { + if (isCustomComponentTag) { + return false; + } + if (propertyInfo !== null) { + return !propertyInfo.acceptsBooleans; + } else { + var prefix2 = name.toLowerCase().slice(0, 5); + return prefix2 !== "data-" && prefix2 !== "aria-"; + } + } + default: + return false; + } + } + function shouldRemoveAttribute(name, value, propertyInfo, isCustomComponentTag) { + if (value === null || typeof value === "undefined") { + return true; + } + if (shouldRemoveAttributeWithWarning(name, value, propertyInfo, isCustomComponentTag)) { + return true; + } + if (isCustomComponentTag) { + return false; + } + if (propertyInfo !== null) { + switch (propertyInfo.type) { + case BOOLEAN: + return !value; + case OVERLOADED_BOOLEAN: + return value === false; + case NUMERIC: + return isNaN(value); + case POSITIVE_NUMERIC: + return isNaN(value) || value < 1; + } + } + return false; + } + function getPropertyInfo(name) { + return properties.hasOwnProperty(name) ? properties[name] : null; + } + function PropertyInfoRecord(name, type, mustUseProperty, attributeName, attributeNamespace, sanitizeURL2, removeEmptyString) { + this.acceptsBooleans = type === BOOLEANISH_STRING || type === BOOLEAN || type === OVERLOADED_BOOLEAN; + this.attributeName = attributeName; + this.attributeNamespace = attributeNamespace; + this.mustUseProperty = mustUseProperty; + this.propertyName = name; + this.type = type; + this.sanitizeURL = sanitizeURL2; + this.removeEmptyString = removeEmptyString; + } + var properties = {}; + var reservedProps = [ + "children", + "dangerouslySetInnerHTML", + "defaultValue", + "defaultChecked", + "innerHTML", + "suppressContentEditableWarning", + "suppressHydrationWarning", + "style" + ]; + reservedProps.forEach(function(name) { + properties[name] = new PropertyInfoRecord( + name, + RESERVED, + false, + name, + null, + false, + false + ); + }); + [["acceptCharset", "accept-charset"], ["className", "class"], ["htmlFor", "for"], ["httpEquiv", "http-equiv"]].forEach(function(_ref) { + var name = _ref[0], attributeName = _ref[1]; + properties[name] = new PropertyInfoRecord( + name, + STRING, + false, + attributeName, + null, + false, + false + ); + }); + ["contentEditable", "draggable", "spellCheck", "value"].forEach(function(name) { + properties[name] = new PropertyInfoRecord( + name, + BOOLEANISH_STRING, + false, + name.toLowerCase(), + null, + false, + false + ); + }); + ["autoReverse", "externalResourcesRequired", "focusable", "preserveAlpha"].forEach(function(name) { + properties[name] = new PropertyInfoRecord( + name, + BOOLEANISH_STRING, + false, + name, + null, + false, + false + ); + }); + [ + "allowFullScreen", + "async", + "autoFocus", + "autoPlay", + "controls", + "default", + "defer", + "disabled", + "disablePictureInPicture", + "disableRemotePlayback", + "formNoValidate", + "hidden", + "loop", + "noModule", + "noValidate", + "open", + "playsInline", + "readOnly", + "required", + "reversed", + "scoped", + "seamless", + "itemScope" + ].forEach(function(name) { + properties[name] = new PropertyInfoRecord( + name, + BOOLEAN, + false, + name.toLowerCase(), + null, + false, + false + ); + }); + [ + "checked", + "multiple", + "muted", + "selected" + ].forEach(function(name) { + properties[name] = new PropertyInfoRecord( + name, + BOOLEAN, + true, + name, + null, + false, + false + ); + }); + [ + "capture", + "download" + ].forEach(function(name) { + properties[name] = new PropertyInfoRecord( + name, + OVERLOADED_BOOLEAN, + false, + name, + null, + false, + false + ); + }); + [ + "cols", + "rows", + "size", + "span" + ].forEach(function(name) { + properties[name] = new PropertyInfoRecord( + name, + POSITIVE_NUMERIC, + false, + name, + null, + false, + false + ); + }); + ["rowSpan", "start"].forEach(function(name) { + properties[name] = new PropertyInfoRecord( + name, + NUMERIC, + false, + name.toLowerCase(), + null, + false, + false + ); + }); + var CAMELIZE = /[\-\:]([a-z])/g; + var capitalize = function(token) { + return token[1].toUpperCase(); + }; + [ + "accent-height", + "alignment-baseline", + "arabic-form", + "baseline-shift", + "cap-height", + "clip-path", + "clip-rule", + "color-interpolation", + "color-interpolation-filters", + "color-profile", + "color-rendering", + "dominant-baseline", + "enable-background", + "fill-opacity", + "fill-rule", + "flood-color", + "flood-opacity", + "font-family", + "font-size", + "font-size-adjust", + "font-stretch", + "font-style", + "font-variant", + "font-weight", + "glyph-name", + "glyph-orientation-horizontal", + "glyph-orientation-vertical", + "horiz-adv-x", + "horiz-origin-x", + "image-rendering", + "letter-spacing", + "lighting-color", + "marker-end", + "marker-mid", + "marker-start", + "overline-position", + "overline-thickness", + "paint-order", + "panose-1", + "pointer-events", + "rendering-intent", + "shape-rendering", + "stop-color", + "stop-opacity", + "strikethrough-position", + "strikethrough-thickness", + "stroke-dasharray", + "stroke-dashoffset", + "stroke-linecap", + "stroke-linejoin", + "stroke-miterlimit", + "stroke-opacity", + "stroke-width", + "text-anchor", + "text-decoration", + "text-rendering", + "underline-position", + "underline-thickness", + "unicode-bidi", + "unicode-range", + "units-per-em", + "v-alphabetic", + "v-hanging", + "v-ideographic", + "v-mathematical", + "vector-effect", + "vert-adv-y", + "vert-origin-x", + "vert-origin-y", + "word-spacing", + "writing-mode", + "xmlns:xlink", + "x-height" + ].forEach(function(attributeName) { + var name = attributeName.replace(CAMELIZE, capitalize); + properties[name] = new PropertyInfoRecord( + name, + STRING, + false, + attributeName, + null, + false, + false + ); + }); + [ + "xlink:actuate", + "xlink:arcrole", + "xlink:role", + "xlink:show", + "xlink:title", + "xlink:type" + ].forEach(function(attributeName) { + var name = attributeName.replace(CAMELIZE, capitalize); + properties[name] = new PropertyInfoRecord( + name, + STRING, + false, + attributeName, + "http://www.w3.org/1999/xlink", + false, + false + ); + }); + [ + "xml:base", + "xml:lang", + "xml:space" + ].forEach(function(attributeName) { + var name = attributeName.replace(CAMELIZE, capitalize); + properties[name] = new PropertyInfoRecord( + name, + STRING, + false, + attributeName, + "http://www.w3.org/XML/1998/namespace", + false, + false + ); + }); + ["tabIndex", "crossOrigin"].forEach(function(attributeName) { + properties[attributeName] = new PropertyInfoRecord( + attributeName, + STRING, + false, + attributeName.toLowerCase(), + null, + false, + false + ); + }); + var xlinkHref = "xlinkHref"; + properties[xlinkHref] = new PropertyInfoRecord( + "xlinkHref", + STRING, + false, + "xlink:href", + "http://www.w3.org/1999/xlink", + true, + false + ); + ["src", "href", "action", "formAction"].forEach(function(attributeName) { + properties[attributeName] = new PropertyInfoRecord( + attributeName, + STRING, + false, + attributeName.toLowerCase(), + null, + true, + true + ); + }); + var isJavaScriptProtocol = /^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*\:/i; + var didWarn = false; + function sanitizeURL(url) { + { + if (!didWarn && isJavaScriptProtocol.test(url)) { + didWarn = true; + error("A future version of React will block javascript: URLs as a security precaution. Use event handlers instead if you can. If you need to generate unsafe HTML try using dangerouslySetInnerHTML instead. React was passed %s.", JSON.stringify(url)); + } + } + } + function getValueForProperty(node, name, expected, propertyInfo) { + { + if (propertyInfo.mustUseProperty) { + var propertyName = propertyInfo.propertyName; + return node[propertyName]; + } else { + { + checkAttributeStringCoercion(expected, name); + } + if (propertyInfo.sanitizeURL) { + sanitizeURL("" + expected); + } + var attributeName = propertyInfo.attributeName; + var stringValue = null; + if (propertyInfo.type === OVERLOADED_BOOLEAN) { + if (node.hasAttribute(attributeName)) { + var value = node.getAttribute(attributeName); + if (value === "") { + return true; + } + if (shouldRemoveAttribute(name, expected, propertyInfo, false)) { + return value; + } + if (value === "" + expected) { + return expected; + } + return value; + } + } else if (node.hasAttribute(attributeName)) { + if (shouldRemoveAttribute(name, expected, propertyInfo, false)) { + return node.getAttribute(attributeName); + } + if (propertyInfo.type === BOOLEAN) { + return expected; + } + stringValue = node.getAttribute(attributeName); + } + if (shouldRemoveAttribute(name, expected, propertyInfo, false)) { + return stringValue === null ? expected : stringValue; + } else if (stringValue === "" + expected) { + return expected; + } else { + return stringValue; + } + } + } + } + function getValueForAttribute(node, name, expected, isCustomComponentTag) { + { + if (!isAttributeNameSafe(name)) { + return; + } + if (!node.hasAttribute(name)) { + return expected === void 0 ? void 0 : null; + } + var value = node.getAttribute(name); + { + checkAttributeStringCoercion(expected, name); + } + if (value === "" + expected) { + return expected; + } + return value; + } + } + function setValueForProperty(node, name, value, isCustomComponentTag) { + var propertyInfo = getPropertyInfo(name); + if (shouldIgnoreAttribute(name, propertyInfo, isCustomComponentTag)) { + return; + } + if (shouldRemoveAttribute(name, value, propertyInfo, isCustomComponentTag)) { + value = null; + } + if (isCustomComponentTag || propertyInfo === null) { + if (isAttributeNameSafe(name)) { + var _attributeName = name; + if (value === null) { + node.removeAttribute(_attributeName); + } else { + { + checkAttributeStringCoercion(value, name); + } + node.setAttribute(_attributeName, "" + value); + } + } + return; + } + var mustUseProperty = propertyInfo.mustUseProperty; + if (mustUseProperty) { + var propertyName = propertyInfo.propertyName; + if (value === null) { + var type = propertyInfo.type; + node[propertyName] = type === BOOLEAN ? false : ""; + } else { + node[propertyName] = value; + } + return; + } + var attributeName = propertyInfo.attributeName, attributeNamespace = propertyInfo.attributeNamespace; + if (value === null) { + node.removeAttribute(attributeName); + } else { + var _type = propertyInfo.type; + var attributeValue; + if (_type === BOOLEAN || _type === OVERLOADED_BOOLEAN && value === true) { + attributeValue = ""; + } else { + { + { + checkAttributeStringCoercion(value, attributeName); + } + attributeValue = "" + value; + } + if (propertyInfo.sanitizeURL) { + sanitizeURL(attributeValue.toString()); + } + } + if (attributeNamespace) { + node.setAttributeNS(attributeNamespace, attributeName, attributeValue); + } else { + node.setAttribute(attributeName, attributeValue); + } + } + } + var REACT_ELEMENT_TYPE = Symbol.for("react.element"); + var REACT_PORTAL_TYPE = Symbol.for("react.portal"); + var REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"); + var REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"); + var REACT_PROFILER_TYPE = Symbol.for("react.profiler"); + var REACT_PROVIDER_TYPE = Symbol.for("react.provider"); + var REACT_CONTEXT_TYPE = Symbol.for("react.context"); + var REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"); + var REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"); + var REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"); + var REACT_MEMO_TYPE = Symbol.for("react.memo"); + var REACT_LAZY_TYPE = Symbol.for("react.lazy"); + var REACT_SCOPE_TYPE = Symbol.for("react.scope"); + var REACT_DEBUG_TRACING_MODE_TYPE = Symbol.for("react.debug_trace_mode"); + var REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen"); + var REACT_LEGACY_HIDDEN_TYPE = Symbol.for("react.legacy_hidden"); + var REACT_CACHE_TYPE = Symbol.for("react.cache"); + var REACT_TRACING_MARKER_TYPE = Symbol.for("react.tracing_marker"); + var MAYBE_ITERATOR_SYMBOL = Symbol.iterator; + var FAUX_ITERATOR_SYMBOL = "@@iterator"; + function getIteratorFn(maybeIterable) { + if (maybeIterable === null || typeof maybeIterable !== "object") { + return null; + } + var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]; + if (typeof maybeIterator === "function") { + return maybeIterator; + } + return null; + } + var assign2 = Object.assign; + var disabledDepth = 0; + var prevLog; + var prevInfo; + var prevWarn; + var prevError; + var prevGroup; + var prevGroupCollapsed; + var prevGroupEnd; + function disabledLog() { + } + disabledLog.__reactDisabledLog = true; + function disableLogs() { + { + if (disabledDepth === 0) { + prevLog = console.log; + prevInfo = console.info; + prevWarn = console.warn; + prevError = console.error; + prevGroup = console.group; + prevGroupCollapsed = console.groupCollapsed; + prevGroupEnd = console.groupEnd; + var props = { + configurable: true, + enumerable: true, + value: disabledLog, + writable: true + }; + Object.defineProperties(console, { + info: props, + log: props, + warn: props, + error: props, + group: props, + groupCollapsed: props, + groupEnd: props + }); + } + disabledDepth++; + } + } + function reenableLogs() { + { + disabledDepth--; + if (disabledDepth === 0) { + var props = { + configurable: true, + enumerable: true, + writable: true + }; + Object.defineProperties(console, { + log: assign2({}, props, { + value: prevLog + }), + info: assign2({}, props, { + value: prevInfo + }), + warn: assign2({}, props, { + value: prevWarn + }), + error: assign2({}, props, { + value: prevError + }), + group: assign2({}, props, { + value: prevGroup + }), + groupCollapsed: assign2({}, props, { + value: prevGroupCollapsed + }), + groupEnd: assign2({}, props, { + value: prevGroupEnd + }) + }); + } + if (disabledDepth < 0) { + error("disabledDepth fell below zero. This is a bug in React. Please file an issue."); + } + } + } + var ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher; + var prefix; + function describeBuiltInComponentFrame(name, source, ownerFn) { + { + if (prefix === void 0) { + try { + throw Error(); + } catch (x) { + var match = x.stack.trim().match(/\n( *(at )?)/); + prefix = match && match[1] || ""; + } + } + return "\n" + prefix + name; + } + } + var reentry = false; + var componentFrameCache; + { + var PossiblyWeakMap = typeof WeakMap === "function" ? WeakMap : Map; + componentFrameCache = new PossiblyWeakMap(); + } + function describeNativeComponentFrame(fn2, construct) { + if (!fn2 || reentry) { + return ""; + } + { + var frame = componentFrameCache.get(fn2); + if (frame !== void 0) { + return frame; + } + } + var control; + reentry = true; + var previousPrepareStackTrace = Error.prepareStackTrace; + Error.prepareStackTrace = void 0; + var previousDispatcher; + { + previousDispatcher = ReactCurrentDispatcher.current; + ReactCurrentDispatcher.current = null; + disableLogs(); + } + try { + if (construct) { + var Fake = function() { + throw Error(); + }; + Object.defineProperty(Fake.prototype, "props", { + set: function() { + throw Error(); + } + }); + if (typeof Reflect === "object" && Reflect.construct) { + try { + Reflect.construct(Fake, []); + } catch (x) { + control = x; + } + Reflect.construct(fn2, [], Fake); + } else { + try { + Fake.call(); + } catch (x) { + control = x; + } + fn2.call(Fake.prototype); + } + } else { + try { + throw Error(); + } catch (x) { + control = x; + } + fn2(); + } + } catch (sample) { + if (sample && control && typeof sample.stack === "string") { + var sampleLines = sample.stack.split("\n"); + var controlLines = control.stack.split("\n"); + var s = sampleLines.length - 1; + var c = controlLines.length - 1; + while (s >= 1 && c >= 0 && sampleLines[s] !== controlLines[c]) { + c--; + } + for (; s >= 1 && c >= 0; s--, c--) { + if (sampleLines[s] !== controlLines[c]) { + if (s !== 1 || c !== 1) { + do { + s--; + c--; + if (c < 0 || sampleLines[s] !== controlLines[c]) { + var _frame = "\n" + sampleLines[s].replace(" at new ", " at "); + if (fn2.displayName && _frame.includes("")) { + _frame = _frame.replace("", fn2.displayName); + } + { + if (typeof fn2 === "function") { + componentFrameCache.set(fn2, _frame); + } + } + return _frame; + } + } while (s >= 1 && c >= 0); + } + break; + } + } + } + } finally { + reentry = false; + { + ReactCurrentDispatcher.current = previousDispatcher; + reenableLogs(); + } + Error.prepareStackTrace = previousPrepareStackTrace; + } + var name = fn2 ? fn2.displayName || fn2.name : ""; + var syntheticFrame = name ? describeBuiltInComponentFrame(name) : ""; + { + if (typeof fn2 === "function") { + componentFrameCache.set(fn2, syntheticFrame); + } + } + return syntheticFrame; + } + function describeClassComponentFrame(ctor, source, ownerFn) { + { + return describeNativeComponentFrame(ctor, true); + } + } + function describeFunctionComponentFrame(fn2, source, ownerFn) { + { + return describeNativeComponentFrame(fn2, false); + } + } + function shouldConstruct(Component) { + var prototype = Component.prototype; + return !!(prototype && prototype.isReactComponent); + } + function describeUnknownElementTypeFrameInDEV(type, source, ownerFn) { + if (type == null) { + return ""; + } + if (typeof type === "function") { + { + return describeNativeComponentFrame(type, shouldConstruct(type)); + } + } + if (typeof type === "string") { + return describeBuiltInComponentFrame(type); + } + switch (type) { + case REACT_SUSPENSE_TYPE: + return describeBuiltInComponentFrame("Suspense"); + case REACT_SUSPENSE_LIST_TYPE: + return describeBuiltInComponentFrame("SuspenseList"); + } + if (typeof type === "object") { + switch (type.$$typeof) { + case REACT_FORWARD_REF_TYPE: + return describeFunctionComponentFrame(type.render); + case REACT_MEMO_TYPE: + return describeUnknownElementTypeFrameInDEV(type.type, source, ownerFn); + case REACT_LAZY_TYPE: { + var lazyComponent = type; + var payload = lazyComponent._payload; + var init2 = lazyComponent._init; + try { + return describeUnknownElementTypeFrameInDEV(init2(payload), source, ownerFn); + } catch (x) { + } + } + } + } + return ""; + } + function describeFiber(fiber) { + var owner = fiber._debugOwner ? fiber._debugOwner.type : null; + var source = fiber._debugSource; + switch (fiber.tag) { + case HostComponent: + return describeBuiltInComponentFrame(fiber.type); + case LazyComponent: + return describeBuiltInComponentFrame("Lazy"); + case SuspenseComponent: + return describeBuiltInComponentFrame("Suspense"); + case SuspenseListComponent: + return describeBuiltInComponentFrame("SuspenseList"); + case FunctionComponent: + case IndeterminateComponent: + case SimpleMemoComponent: + return describeFunctionComponentFrame(fiber.type); + case ForwardRef: + return describeFunctionComponentFrame(fiber.type.render); + case ClassComponent: + return describeClassComponentFrame(fiber.type); + default: + return ""; + } + } + function getStackByFiberInDevAndProd(workInProgress2) { + try { + var info = ""; + var node = workInProgress2; + do { + info += describeFiber(node); + node = node.return; + } while (node); + return info; + } catch (x) { + return "\nError generating stack: " + x.message + "\n" + x.stack; + } + } + function getWrappedName(outerType, innerType, wrapperName) { + var displayName = outerType.displayName; + if (displayName) { + return displayName; + } + var functionName = innerType.displayName || innerType.name || ""; + return functionName !== "" ? wrapperName + "(" + functionName + ")" : wrapperName; + } + function getContextName(type) { + return type.displayName || "Context"; + } + function getComponentNameFromType(type) { + if (type == null) { + return null; + } + { + if (typeof type.tag === "number") { + error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."); + } + } + if (typeof type === "function") { + return type.displayName || type.name || null; + } + if (typeof type === "string") { + return type; + } + switch (type) { + case REACT_FRAGMENT_TYPE: + return "Fragment"; + case REACT_PORTAL_TYPE: + return "Portal"; + case REACT_PROFILER_TYPE: + return "Profiler"; + case REACT_STRICT_MODE_TYPE: + return "StrictMode"; + case REACT_SUSPENSE_TYPE: + return "Suspense"; + case REACT_SUSPENSE_LIST_TYPE: + return "SuspenseList"; + } + if (typeof type === "object") { + switch (type.$$typeof) { + case REACT_CONTEXT_TYPE: + var context = type; + return getContextName(context) + ".Consumer"; + case REACT_PROVIDER_TYPE: + var provider = type; + return getContextName(provider._context) + ".Provider"; + case REACT_FORWARD_REF_TYPE: + return getWrappedName(type, type.render, "ForwardRef"); + case REACT_MEMO_TYPE: + var outerName = type.displayName || null; + if (outerName !== null) { + return outerName; + } + return getComponentNameFromType(type.type) || "Memo"; + case REACT_LAZY_TYPE: { + var lazyComponent = type; + var payload = lazyComponent._payload; + var init2 = lazyComponent._init; + try { + return getComponentNameFromType(init2(payload)); + } catch (x) { + return null; + } + } + } + } + return null; + } + function getWrappedName$1(outerType, innerType, wrapperName) { + var functionName = innerType.displayName || innerType.name || ""; + return outerType.displayName || (functionName !== "" ? wrapperName + "(" + functionName + ")" : wrapperName); + } + function getContextName$1(type) { + return type.displayName || "Context"; + } + function getComponentNameFromFiber(fiber) { + var tag = fiber.tag, type = fiber.type; + switch (tag) { + case CacheComponent: + return "Cache"; + case ContextConsumer: + var context = type; + return getContextName$1(context) + ".Consumer"; + case ContextProvider: + var provider = type; + return getContextName$1(provider._context) + ".Provider"; + case DehydratedFragment: + return "DehydratedFragment"; + case ForwardRef: + return getWrappedName$1(type, type.render, "ForwardRef"); + case Fragment: + return "Fragment"; + case HostComponent: + return type; + case HostPortal: + return "Portal"; + case HostRoot: + return "Root"; + case HostText: + return "Text"; + case LazyComponent: + return getComponentNameFromType(type); + case Mode: + if (type === REACT_STRICT_MODE_TYPE) { + return "StrictMode"; + } + return "Mode"; + case OffscreenComponent: + return "Offscreen"; + case Profiler: + return "Profiler"; + case ScopeComponent: + return "Scope"; + case SuspenseComponent: + return "Suspense"; + case SuspenseListComponent: + return "SuspenseList"; + case TracingMarkerComponent: + return "TracingMarker"; + case ClassComponent: + case FunctionComponent: + case IncompleteClassComponent: + case IndeterminateComponent: + case MemoComponent: + case SimpleMemoComponent: + if (typeof type === "function") { + return type.displayName || type.name || null; + } + if (typeof type === "string") { + return type; + } + break; + } + return null; + } + var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame; + var current = null; + var isRendering = false; + function getCurrentFiberOwnerNameInDevOrNull() { + { + if (current === null) { + return null; + } + var owner = current._debugOwner; + if (owner !== null && typeof owner !== "undefined") { + return getComponentNameFromFiber(owner); + } + } + return null; + } + function getCurrentFiberStackInDev() { + { + if (current === null) { + return ""; + } + return getStackByFiberInDevAndProd(current); + } + } + function resetCurrentFiber() { + { + ReactDebugCurrentFrame.getCurrentStack = null; + current = null; + isRendering = false; + } + } + function setCurrentFiber(fiber) { + { + ReactDebugCurrentFrame.getCurrentStack = fiber === null ? null : getCurrentFiberStackInDev; + current = fiber; + isRendering = false; + } + } + function getCurrentFiber() { + { + return current; + } + } + function setIsRendering(rendering) { + { + isRendering = rendering; + } + } + function toString3(value) { + return "" + value; + } + function getToStringValue(value) { + switch (typeof value) { + case "boolean": + case "number": + case "string": + case "undefined": + return value; + case "object": + { + checkFormFieldValueStringCoercion(value); + } + return value; + default: + return ""; + } + } + var hasReadOnlyValue = { + button: true, + checkbox: true, + image: true, + hidden: true, + radio: true, + reset: true, + submit: true + }; + function checkControlledValueProps(tagName, props) { + { + if (!(hasReadOnlyValue[props.type] || props.onChange || props.onInput || props.readOnly || props.disabled || props.value == null)) { + error("You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`."); + } + if (!(props.onChange || props.readOnly || props.disabled || props.checked == null)) { + error("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`."); + } + } + } + function isCheckable(elem) { + var type = elem.type; + var nodeName = elem.nodeName; + return nodeName && nodeName.toLowerCase() === "input" && (type === "checkbox" || type === "radio"); + } + function getTracker(node) { + return node._valueTracker; + } + function detachTracker(node) { + node._valueTracker = null; + } + function getValueFromNode(node) { + var value = ""; + if (!node) { + return value; + } + if (isCheckable(node)) { + value = node.checked ? "true" : "false"; + } else { + value = node.value; + } + return value; + } + function trackValueOnNode(node) { + var valueField = isCheckable(node) ? "checked" : "value"; + var descriptor = Object.getOwnPropertyDescriptor(node.constructor.prototype, valueField); + { + checkFormFieldValueStringCoercion(node[valueField]); + } + var currentValue = "" + node[valueField]; + if (node.hasOwnProperty(valueField) || typeof descriptor === "undefined" || typeof descriptor.get !== "function" || typeof descriptor.set !== "function") { + return; + } + var get3 = descriptor.get, set2 = descriptor.set; + Object.defineProperty(node, valueField, { + configurable: true, + get: function() { + return get3.call(this); + }, + set: function(value) { + { + checkFormFieldValueStringCoercion(value); + } + currentValue = "" + value; + set2.call(this, value); + } + }); + Object.defineProperty(node, valueField, { + enumerable: descriptor.enumerable + }); + var tracker = { + getValue: function() { + return currentValue; + }, + setValue: function(value) { + { + checkFormFieldValueStringCoercion(value); + } + currentValue = "" + value; + }, + stopTracking: function() { + detachTracker(node); + delete node[valueField]; + } + }; + return tracker; + } + function track(node) { + if (getTracker(node)) { + return; + } + node._valueTracker = trackValueOnNode(node); + } + function updateValueIfChanged(node) { + if (!node) { + return false; + } + var tracker = getTracker(node); + if (!tracker) { + return true; + } + var lastValue = tracker.getValue(); + var nextValue = getValueFromNode(node); + if (nextValue !== lastValue) { + tracker.setValue(nextValue); + return true; + } + return false; + } + function getActiveElement(doc) { + doc = doc || (typeof document !== "undefined" ? document : void 0); + if (typeof doc === "undefined") { + return null; + } + try { + return doc.activeElement || doc.body; + } catch (e) { + return doc.body; + } + } + var didWarnValueDefaultValue = false; + var didWarnCheckedDefaultChecked = false; + var didWarnControlledToUncontrolled = false; + var didWarnUncontrolledToControlled = false; + function isControlled(props) { + var usesChecked = props.type === "checkbox" || props.type === "radio"; + return usesChecked ? props.checked != null : props.value != null; + } + function getHostProps(element2, props) { + var node = element2; + var checked = props.checked; + var hostProps = assign2({}, props, { + defaultChecked: void 0, + defaultValue: void 0, + value: void 0, + checked: checked != null ? checked : node._wrapperState.initialChecked + }); + return hostProps; + } + function initWrapperState(element2, props) { + { + checkControlledValueProps("input", props); + if (props.checked !== void 0 && props.defaultChecked !== void 0 && !didWarnCheckedDefaultChecked) { + error("%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://reactjs.org/link/controlled-components", getCurrentFiberOwnerNameInDevOrNull() || "A component", props.type); + didWarnCheckedDefaultChecked = true; + } + if (props.value !== void 0 && props.defaultValue !== void 0 && !didWarnValueDefaultValue) { + error("%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://reactjs.org/link/controlled-components", getCurrentFiberOwnerNameInDevOrNull() || "A component", props.type); + didWarnValueDefaultValue = true; + } + } + var node = element2; + var defaultValue = props.defaultValue == null ? "" : props.defaultValue; + node._wrapperState = { + initialChecked: props.checked != null ? props.checked : props.defaultChecked, + initialValue: getToStringValue(props.value != null ? props.value : defaultValue), + controlled: isControlled(props) + }; + } + function updateChecked(element2, props) { + var node = element2; + var checked = props.checked; + if (checked != null) { + setValueForProperty(node, "checked", checked, false); + } + } + function updateWrapper(element2, props) { + var node = element2; + { + var controlled = isControlled(props); + if (!node._wrapperState.controlled && controlled && !didWarnUncontrolledToControlled) { + error("A component is changing an uncontrolled input to be controlled. This is likely caused by the value changing from undefined to a defined value, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://reactjs.org/link/controlled-components"); + didWarnUncontrolledToControlled = true; + } + if (node._wrapperState.controlled && !controlled && !didWarnControlledToUncontrolled) { + error("A component is changing a controlled input to be uncontrolled. This is likely caused by the value changing from a defined to undefined, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://reactjs.org/link/controlled-components"); + didWarnControlledToUncontrolled = true; + } + } + updateChecked(element2, props); + var value = getToStringValue(props.value); + var type = props.type; + if (value != null) { + if (type === "number") { + if (value === 0 && node.value === "" || node.value != value) { + node.value = toString3(value); + } + } else if (node.value !== toString3(value)) { + node.value = toString3(value); + } + } else if (type === "submit" || type === "reset") { + node.removeAttribute("value"); + return; + } + { + if (props.hasOwnProperty("value")) { + setDefaultValue(node, props.type, value); + } else if (props.hasOwnProperty("defaultValue")) { + setDefaultValue(node, props.type, getToStringValue(props.defaultValue)); + } + } + { + if (props.checked == null && props.defaultChecked != null) { + node.defaultChecked = !!props.defaultChecked; + } + } + } + function postMountWrapper(element2, props, isHydrating2) { + var node = element2; + if (props.hasOwnProperty("value") || props.hasOwnProperty("defaultValue")) { + var type = props.type; + var isButton = type === "submit" || type === "reset"; + if (isButton && (props.value === void 0 || props.value === null)) { + return; + } + var initialValue = toString3(node._wrapperState.initialValue); + if (!isHydrating2) { + { + if (initialValue !== node.value) { + node.value = initialValue; + } + } + } + { + node.defaultValue = initialValue; + } + } + var name = node.name; + if (name !== "") { + node.name = ""; + } + { + node.defaultChecked = !node.defaultChecked; + node.defaultChecked = !!node._wrapperState.initialChecked; + } + if (name !== "") { + node.name = name; + } + } + function restoreControlledState(element2, props) { + var node = element2; + updateWrapper(node, props); + updateNamedCousins(node, props); + } + function updateNamedCousins(rootNode, props) { + var name = props.name; + if (props.type === "radio" && name != null) { + var queryRoot = rootNode; + while (queryRoot.parentNode) { + queryRoot = queryRoot.parentNode; + } + { + checkAttributeStringCoercion(name, "name"); + } + var group = queryRoot.querySelectorAll("input[name=" + JSON.stringify("" + name) + '][type="radio"]'); + for (var i = 0; i < group.length; i++) { + var otherNode = group[i]; + if (otherNode === rootNode || otherNode.form !== rootNode.form) { + continue; + } + var otherProps = getFiberCurrentPropsFromNode(otherNode); + if (!otherProps) { + throw new Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported."); + } + updateValueIfChanged(otherNode); + updateWrapper(otherNode, otherProps); + } + } + } + function setDefaultValue(node, type, value) { + if (type !== "number" || getActiveElement(node.ownerDocument) !== node) { + if (value == null) { + node.defaultValue = toString3(node._wrapperState.initialValue); + } else if (node.defaultValue !== toString3(value)) { + node.defaultValue = toString3(value); + } + } + } + var didWarnSelectedSetOnOption = false; + var didWarnInvalidChild = false; + var didWarnInvalidInnerHTML = false; + function validateProps(element2, props) { + { + if (props.value == null) { + if (typeof props.children === "object" && props.children !== null) { + React4.Children.forEach(props.children, function(child) { + if (child == null) { + return; + } + if (typeof child === "string" || typeof child === "number") { + return; + } + if (!didWarnInvalidChild) { + didWarnInvalidChild = true; + error("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to