From ac4880c3befb45b15495d5709a885d2678091d82 Mon Sep 17 00:00:00 2001 From: johnnyq Date: Wed, 18 Nov 2026 19:35:34 -0500 Subject: [PATCH] Update bundled libraries: ImapEngine 1.25.12 with STARTTLS and command validation fixes, PHPMailer 7.2.0, TinyMCE 8.10.2, HTMLPurifier 4.19.1, stripe-php 21.3.3, Bootstrap 5.3.9, AdminLTE 4.10.2, Chart.js 4.6.1, DataTables 3.1.5, intl-tel-input 29.5.11 and FullCalendar 7.1.5, drop committed HTMLPurifier cache files and fix the cache path in .gitignore --- .gitignore | 12 +- CHANGELOG.md | 6 +- libs/DataTables/datatables.min.css | 4 +- libs/DataTables/datatables.min.js | 10 +- libs/PHPMailer/README.md | 2 +- libs/PHPMailer/VERSION | 2 +- libs/PHPMailer/composer.json | 2 +- libs/PHPMailer/language/phpmailer.lang-fr.php | 2 + libs/PHPMailer/src/DSNConfigurator.php | 7 +- libs/PHPMailer/src/PHPMailer.php | 57 +- libs/PHPMailer/src/POP3.php | 2 +- libs/PHPMailer/src/SMTP.php | 70 +- libs/adminlte/css/adminlte-colors-v3.min.css | 2 +- libs/adminlte/css/adminlte.min.css | 4 +- libs/adminlte/js/adminlte.min.js | 4 +- libs/bootstrap/js/bootstrap.bundle.min.js | 6 +- libs/chart.js/chart.umd.min.js | 8 +- libs/composer.lock | 14 +- libs/fullcalendar/fullcalendar.global.js | 3518 +++++++++++---- libs/fullcalendar/skeleton.css | 333 +- libs/fullcalendar/themes/classic/global.js | 2 +- libs/htmlpurifier/HTMLPurifier.standalone.php | 768 ++-- .../ConfigSchema/Interchange/Directive.php | 2 +- .../HTMLPurifier/ConfigSchema/schema.ser | 2 +- .../schema/Attr.IDPrefixLocal.txt | 6 +- .../ConfigSchema/schema/CSS.MaxImgLength.txt | 2 +- .../schema/Core.ConvertDocumentToFragment.txt | 3 +- .../schema/Core.EscapeNonASCIICharacters.txt | 2 +- .../ConfigSchema/schema/Core.LexerImpl.txt | 2 +- .../ConfigSchema/schema/Core.RemoveBlanks.txt | 10 + .../ConfigSchema/schema/HTML.MaxImgLength.txt | 2 +- .../ConfigSchema/schema/HTML.SafeIframe.txt | 2 +- .../schema/URI.AllowedSymbols.txt | 7 + .../schema/URI.SafeIframeHosts.txt | 14 + ...918a13a428a8482a8a449792a5a8747582b5,1.ser | Bin 29975 -> 0 bytes ...c0a322b208e83d22d3aef33ecb184bc71d31,1.ser | Bin 95583 -> 0 bytes ...e061fc6632c745df51b43504cb541c9339de,1.ser | Bin 516 -> 0 bytes .../Filter/ExtractStyleBlocks.php | 338 +- .../HTMLPurifier/Filter/YouTube.php | 4 +- .../standalone/HTMLPurifier/Lexer/PH5P.php | 4 +- .../HTMLPurifier/Printer/ConfigForm.php | 5 + libs/intl-tel-input/css/intlTelInput.min.css | 2 +- .../js/intlTelInputWithUtils.min.js | 4 +- libs/stripe-php/CHANGELOG.md | 3 + libs/stripe-php/VERSION | 2 +- libs/stripe-php/data/ca-certificates.crt | 3776 ++--------------- libs/stripe-php/lib/Stripe.php | 2 +- libs/tinymce/icons/default/icons.min.js | 2 +- libs/tinymce/models/dom/model.min.js | 2 +- libs/tinymce/plugins/accordion/plugin.min.js | 2 +- libs/tinymce/plugins/advlist/plugin.min.js | 2 +- libs/tinymce/plugins/image/plugin.min.js | 2 +- libs/tinymce/plugins/link/plugin.min.js | 2 +- libs/tinymce/plugins/media/plugin.min.js | 2 +- .../skins/ui/oxide-dark/content.inline.js | 2 +- .../ui/oxide-dark/content.inline.min.css | 2 +- libs/tinymce/skins/ui/oxide-dark/content.js | 2 +- .../skins/ui/oxide-dark/content.min.css | 2 +- libs/tinymce/skins/ui/oxide-dark/skin.js | 2 +- libs/tinymce/skins/ui/oxide-dark/skin.min.css | 2 +- libs/tinymce/skins/ui/oxide/content.inline.js | 2 +- .../skins/ui/oxide/content.inline.min.css | 2 +- libs/tinymce/skins/ui/oxide/content.js | 2 +- libs/tinymce/skins/ui/oxide/content.min.css | 2 +- libs/tinymce/skins/ui/oxide/skin.js | 2 +- libs/tinymce/skins/ui/oxide/skin.min.css | 2 +- .../skins/ui/tinymce-5-dark/content.inline.js | 2 +- .../ui/tinymce-5-dark/content.inline.min.css | 2 +- .../skins/ui/tinymce-5-dark/content.js | 2 +- .../skins/ui/tinymce-5-dark/content.min.css | 2 +- libs/tinymce/skins/ui/tinymce-5-dark/skin.js | 2 +- .../skins/ui/tinymce-5-dark/skin.min.css | 2 +- .../skins/ui/tinymce-5/content.inline.js | 2 +- .../skins/ui/tinymce-5/content.inline.min.css | 2 +- libs/tinymce/skins/ui/tinymce-5/content.js | 2 +- .../skins/ui/tinymce-5/content.min.css | 2 +- libs/tinymce/skins/ui/tinymce-5/skin.js | 2 +- libs/tinymce/skins/ui/tinymce-5/skin.min.css | 2 +- libs/tinymce/themes/silver/theme.min.js | 2 +- libs/tinymce/tinymce.d.ts | 4 +- libs/tinymce/tinymce.min.js | 6 +- libs/vendor/composer/installed.json | 16 +- libs/vendor/composer/installed.php | 6 +- .../directorytree/imapengine/composer.json | 2 +- .../imapengine/src/Attachment.php | 2 +- .../imapengine/src/Connection/ImapCommand.php | 8 + .../src/Connection/ImapConnection.php | 10 +- .../imapengine/src/Connection/ImapParser.php | 8 +- .../src/Connection/ImapTokenizer.php | 159 +- .../imapengine/src/MessageQuery.php | 49 +- .../imapengine/src/Support/Assert.php | 40 + .../imapengine/src/Support/Str.php | 37 +- 92 files changed, 4197 insertions(+), 5243 deletions(-) create mode 100644 libs/htmlpurifier/standalone/HTMLPurifier/ConfigSchema/schema/Core.RemoveBlanks.txt create mode 100644 libs/htmlpurifier/standalone/HTMLPurifier/ConfigSchema/schema/URI.AllowedSymbols.txt create mode 100644 libs/htmlpurifier/standalone/HTMLPurifier/ConfigSchema/schema/URI.SafeIframeHosts.txt delete mode 100644 libs/htmlpurifier/standalone/HTMLPurifier/DefinitionCache/Serializer/CSS/4.15.0,4114918a13a428a8482a8a449792a5a8747582b5,1.ser delete mode 100644 libs/htmlpurifier/standalone/HTMLPurifier/DefinitionCache/Serializer/HTML/4.15.0,f474c0a322b208e83d22d3aef33ecb184bc71d31,1.ser delete mode 100644 libs/htmlpurifier/standalone/HTMLPurifier/DefinitionCache/Serializer/URI/4.15.0,b359e061fc6632c745df51b43504cb541c9339de,1.ser create mode 100644 libs/vendor/directorytree/imapengine/src/Support/Assert.php diff --git a/.gitignore b/.gitignore index 5fd8b281e..983fe6552 100644 --- a/.gitignore +++ b/.gitignore @@ -35,12 +35,12 @@ uploads/canned_responses/* uploads/quote_images/* !uploads/quote_images/index.php .idea/* -plugins/htmlpurifier/standalone/HTMLPurifier/DefinitionCache/Serializer/HTML/* -!plugins/htmlpurifier/standalone/HTMLPurifier/DefinitionCache/Serializer/HTML/.gitkeep -plugins/htmlpurifier/standalone/HTMLPurifier/DefinitionCache/Serializer/URI/* -!plugins/htmlpurifier/standalone/HTMLPurifier/DefinitionCache/Serializer/URI/.gitkeep -plugins/htmlpurifier/standalone/HTMLPurifier/DefinitionCache/Serializer/CSS/* -!plugins/htmlpurifier/standalone/HTMLPurifier/DefinitionCache/Serializer/CSS/.gitkeep +libs/htmlpurifier/standalone/HTMLPurifier/DefinitionCache/Serializer/HTML/* +!libs/htmlpurifier/standalone/HTMLPurifier/DefinitionCache/Serializer/HTML/.gitkeep +libs/htmlpurifier/standalone/HTMLPurifier/DefinitionCache/Serializer/URI/* +!libs/htmlpurifier/standalone/HTMLPurifier/DefinitionCache/Serializer/URI/.gitkeep +libs/htmlpurifier/standalone/HTMLPurifier/DefinitionCache/Serializer/CSS/* +!libs/htmlpurifier/standalone/HTMLPurifier/DefinitionCache/Serializer/CSS/.gitkeep .vscode/settings.json admin/custom/* !admin/custom/readme.php diff --git a/CHANGELOG.md b/CHANGELOG.md index 9c8213229..230a50b05 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,7 +6,7 @@ This file documents all notable changes made to ITFlow. ### Upgrading -Update from Maintenance > Update — Queue Update hands the job to cron, which updates the files and applies this release's thirty-two database changes (3.6.6 to 3.9.8) in the same pass. They add four tables for RMM providers and their alerts, a setting for device actions and one for API keys in the address, a column marking the emails the mail queue clears once sent, a column and a table for agent banners, two columns for ticket statuses with a setting for the "ticket assigned" message, a column on tickets with a setting for the "no response" message, a table for who a ticket's email replies go to, the settings for Quick tickets, columns on recurring tickets and recurring invoices for booking and making them ahead, two columns on ticket replies for when their time was worked, the settings for cron alerts, a table and a setting for labor costs, a column on users for API / service accounts, columns on tickets and recurring tickets for how long booked work takes, a column each on recurring tickets and calendar events for repeating on a weekday, three columns on agents' settings for their calendar color, what their calendar shows and their own time zone, and a table for the agents helping on a ticket, three columns on quote lines with three settings for what a quote line costs and how it is priced, a column each on quote lines and products with a setting for their pictures, two settings and a column on tickets for keeping project tickets apart, a table for your other offices with a column each on agents and invites for which one they work from, three settings for the emails and notices your agents get about their tickets, three settings for sending and reading Microsoft 365 mail through Microsoft Graph, five tables, four settings and a role permission for purchase orders, five settings for switching Dispatch, Bookkeeping, Purchasing, Trips and the calendar on and off, and eight tables, three columns and two settings for the Knowledge Base, who can read its articles, what its readers think of them and their files, a column on documents for how often each is reviewed, and change nothing that is there. Nothing else is required. Purchasing starts off - switch it on in Admin > Settings > Modules - and so does the Knowledge Base's public help center, in Admin > Settings > Knowledge Base. This release has twelve security fixes - see Security. On Apache, ITFlow's own .htaccess now sends security headers: if you show ITFlow inside a frame on another website, it will now refuse to load there. On nginx, add the same headers to your server block if you want them - see Developer Updates. +Update from Maintenance > Update — Queue Update hands the job to cron, which updates the files and applies this release's thirty-two database changes (3.6.6 to 3.9.8) in the same pass. They add four tables for RMM providers and their alerts, a setting for device actions and one for API keys in the address, a column marking the emails the mail queue clears once sent, a column and a table for agent banners, two columns for ticket statuses with a setting for the "ticket assigned" message, a column on tickets with a setting for the "no response" message, a table for who a ticket's email replies go to, the settings for Quick tickets, columns on recurring tickets and recurring invoices for booking and making them ahead, two columns on ticket replies for when their time was worked, the settings for cron alerts, a table and a setting for labor costs, a column on users for API / service accounts, columns on tickets and recurring tickets for how long booked work takes, a column each on recurring tickets and calendar events for repeating on a weekday, three columns on agents' settings for their calendar color, what their calendar shows and their own time zone, and a table for the agents helping on a ticket, three columns on quote lines with three settings for what a quote line costs and how it is priced, a column each on quote lines and products with a setting for their pictures, two settings and a column on tickets for keeping project tickets apart, a table for your other offices with a column each on agents and invites for which one they work from, three settings for the emails and notices your agents get about their tickets, three settings for sending and reading Microsoft 365 mail through Microsoft Graph, five tables, four settings and a role permission for purchase orders, five settings for switching Dispatch, Bookkeeping, Purchasing, Trips and the calendar on and off, and eight tables, three columns and two settings for the Knowledge Base, who can read its articles, what its readers think of them and their files, a column on documents for how often each is reviewed, and change nothing that is there. Nothing else is required. Purchasing starts off - switch it on in Admin > Settings > Modules - and so does the Knowledge Base's public help center, in Admin > Settings > Knowledge Base. This release has thirteen security fixes - see Security. On Apache, ITFlow's own .htaccess now sends security headers: if you show ITFlow inside a frame on another website, it will now refuse to load there. On nginx, add the same headers to your server block if you want them - see Developer Updates. ### Security @@ -24,6 +24,7 @@ Update from Maintenance > Update — Queue Update hands the job to cron, which u - Uploads: a file opened straight from ITFlow's uploads folder - an HTML or SVG file someone uploaded, say - could run scripts as ITFlow. Files there are now never run, and every page says not to guess a file's type, not to send its address to other sites, and not to be shown inside another site's frame. These are Apache settings; on nginx add them yourself. Found by Mountaineer IT. - Client portal: saving a card now only finishes the card setup the contact started, for their own client's Stripe customer. Found by Mountaineer IT. - Clients and contacts: Send Email to several clients or contacts needs Modify on clients, not View, and is no longer offered to agents who can only view. Found by Mountaineer IT. +- Ticket email: with a mailbox set to TLS encryption (usually port 143), if the encrypted connection couldn't be set up - the server's certificate failed the check, say, or something on the network got in the way - ITFlow went on and signed in to the mailbox without encryption, sending its password as plain text. It now stops and says the encrypted connection failed. This came with the update to the library ITFlow reads mailboxes with, which also refuses message numbers and flags that carry extra mail server commands - ITFlow only ever sends its own, so that part is a precaution. ### New Features & Updates @@ -142,6 +143,7 @@ Update from Maintenance > Update — Queue Update hands the job to cron, which u - Modules: Admin > Settings > Modules has five more switches, to take out of ITFlow what your business doesn't use - Dispatch, which comes with Ticketing; Bookkeeping, Purchasing and Trips, which come with invoicing; and the Calendar. Each part is off while the one it comes with is, and shows faded under it. Switched off, a part leaves the menus, the dashboard, search, the reports and the API, and its pages and windows say it is off. Nothing in it is deleted - switched back on, it is all there. Dispatch, Bookkeeping, Trips and the Calendar start on, as before. - Bookkeeping: switch it off when your books are kept somewhere else. Accounts, Transactions, Transfers, Reconcile and the statement imports go, and nobody picks an account: payments and income go into the default payment account, and expenses come out of the default expense account - both in Admin > Settings > Defaults, or the first account when there's no default. An expense is paid by The business or Paid personally. The dashboard leaves out the account balances, and the Tax Package its Accounts section. - Calendar: switched off, the calendar, its events and the calendar feeds go - a subscribed calendar stops getting them. Tickets are still booked from the ticket and on Dispatch, and booked work still shows on the dashboard. +- Updated the libraries ITFlow is built on: the one that reads ticket mailboxes, the one that sends email, the text editor, the one that cleans up email and document HTML before it is shown, Stripe, the page styling, the charts, the tables, the calendar and the phone number fields. Nothing changes in how they look or work. The text editor's update fixes a security problem in its media plugin, which ITFlow doesn't use. ### Bug Fixes @@ -190,6 +192,7 @@ Update from Maintenance > Update — Queue Update hands the job to cron, which u - Tickets: moving a ticket to another client left the old client's watchers on it, so they kept getting its emails. Watchers who aren't on your team or contacts at the new client now come off it, and the ticket's history says how many. Found by Mountaineer IT. - Leads: clients marked as leads showed up in nearly every list of clients to pick from - new assets, contacts, credentials, documents, invoices, trips, expenses, events, contracts and the rest - and in the client switcher, the report and transaction filters and template use, crowding out the clients you work for. Leads are left out of those now. A lead still shows where it belongs: on its own pages, where anything you add is for it; in a record that's already for it; in the quote pickers, after the clients and marked Lead; and in global search, after the clients and marked Lead. Find the rest on the Leads tab of Clients. - Across clients: as All Client Docs, it listed assets, credentials and the rest of the IT documentation with IT documentation switched off in Admin > Settings > Modules. It now has only Contacts, Locations and Vendors then, as each client's menu does. +- Email sent with Microsoft 365 or Google sign-in: when the mail server turned down ITFlow's sign-in, the email failed on its From address with "Authentication required" in Maintenance > Mail Queue, as if the address were the problem. It now fails saying the sign-in didn't work. ### Developer Updates @@ -299,6 +302,7 @@ Update from Maintenance > Update — Queue Update hands the job to cron, which u - Email replies to tickets: `emailReplyText()` in `functions/email.php` replaces the two cuts at `EMAIL_REPLY_MARKER` in `addReply()` (`cron/ticket_email_parser.php`). It keeps what is above the line when `emailReplyHasText()` finds words there - not an "On ... wrote:" line, Outlook's From/Sent/To/Subject, "Original Message", `>` lines or "Sent from my" - and adds what follows the quote: after the blockquote the line is in (counting nested blockquotes), or, when the line was quoted with `>`, the unquoted lines. With neither, the whole email with a note. - Invoice autopay shown: `invoiceAutopay()` in `functions/billing_pay.php` reads the recurring invoice's `recurring_payments` row with its saved card and provider - the method in words, a problem (provider off, or the card's expiry before the due date), the last `Stripe autopay failed` history on the invoice and when it was set up - and `invoiceAutopayStatus()` turns that and `invoiceState()` into a tone, a short label, a sentence and a detail line, for `agent/invoice.php`, `agent/invoices.php` (an `autopay` column in its query) and `guest/guest_view_invoice.php`. - Knowledge Base files, PDF and AI review; documents' own review cadence: database 3.9.8 adds `kb_article_files` (name, reference name kept under `uploads/kb/
/files/`, size, who and when; cascading with the article) and `documents.document_review_months` (NULL goes by the template, 0 is never). `kbFilesReady()`, `kbArticleFiles()`, `kbArticleSaveFiles()` (`checkFileUpload()` with `fileUploadExtensions()`, `KB_ARTICLE_MAX_FILES`), `kbArticleRemoveFile()`, `kbArticleCopyFileRows()`, `kbArticleFileRow()`, `kbFileSend()` and `kbFilesListHtml()`; the files are sent by `agent/kb_file.php`, `client/kb_file.php` (`kbClientSql()`) and `guest/kb_file.php` (`kbPublicOn()` and `kbPublicSql()`). Handlers `upload_kb_article_files`, `delete_kb_article_file`, `set_kb_article_summary` and `export_kb_article` (TCPDF, purified content) in `agent/post/kb.php`. `aiKbArticleReview()` in `functions/ai_document.php` (AI feature `kb_article_review`), through `ai_kb_article_review` in `agent/ajax.php`, with `agent/modals/kb/kb_article_review.php`; the answer parsing is now `aiReviewAnswer()`, shared with `aiDocumentReview()`, and the review window's script moved out of `document_review.php` into `js/ai_review.js`, which both use (`data-ai-review-url`, `data-ai-review-param`, `data-ai-review-id`, `data-ai-review-secrets`). `documentReviewOwnReady()` gates on 3.9.8; `documentReviewMonthsSql()` gives the cadence (own, or the current template's), which `documentReviewDueSql()` and `documentsReviewDue()` (now a LEFT JOIN on templates, with `review_months`) use; `documentReviewState()` takes `document_review_months` and returns `months` and `own`. `set_document_review` in `agent/post/document.php` keeps `document_updated_at`. +- Libraries: directorytree/imapengine v1.25.6 to v1.25.12 (Composer - `libs/composer.lock`, `libs/vendor/composer/installed.json` and `installed.php` updated to match, `libs/composer.json` still asks for `^1.24`); PHPMailer 7.1.1 to 7.2.0; TinyMCE 8.9.2 to 8.10.2; HTMLPurifier 4.15.0 to 4.19.1; stripe-php 21.3.2 to 21.3.3; Bootstrap 5.3.8 to 5.3.9; AdminLTE 4.9.1 to 4.10.2; Chart.js 4.5.1 to 4.6.1; DataTables 3.1.2 to 3.1.5; intl-tel-input 29.2.3 to 29.5.11; FullCalendar 7.1.0 to 7.1.5. The files are each release's own, in the layout already in `libs/`: ImapEngine, PHPMailer and stripe-php as `git archive` of the tag (as Composer's dist zip), the rest from npm, TinyMCE keeping its `license.md` and `langs/README.md`. HTMLPurifier's standalone build is made with the release's `maintenance/generate-standalone.php`, and the three 4.15.0 definition cache files that had been committed are gone - `.gitignore` named the old `plugins/htmlpurifier/` path, and now names `libs/htmlpurifier/`. The DataTables files are the download builder's `bs5/dt-3.1.5` build, put together from the `datatables.net` and `datatables.net-bs5` packages the way the builder does (the 3.1.2 files rebuilt this way match the old ones byte for byte). ImapEngine 1.25.12 disconnects when STARTTLS fails rather than carrying on over plain TCP (the parser maps a mailbox's `tls` to `starttls`), and checks sequence sets and flags in new `Support\Assert`. PHPMailer 7.2.0 reports a rejected XOAUTH2 token sent after a 334 (any long token, so every Microsoft 365 one) as failed rather than accepted; it deprecates `parseAddresses()` and the `pcre8` validator, which ITFlow doesn't use. TinyMCE's advisory GHSA-mf2p-h6hf-fcwm is in the `media` plugin, which neither `js/app.js` nor `js/portal.js` loads. HTMLPurifier gives the same output as 4.15.0 on all 4,503 ticket replies, ticket details, articles and documents in the demo data and a set of hostile samples, with the settings ITFlow uses. Left as they are: TCPDF 6.11.3 (6.11.4 only adds a deprecation notice ahead of 7.x, a different library underneath), stripe-php 22 and 23 (major versions) and Font Awesome 5.15.4. ## [26.11.8] diff --git a/libs/DataTables/datatables.min.css b/libs/DataTables/datatables.min.css index 07143f0ff..cfe734cf7 100644 --- a/libs/DataTables/datatables.min.css +++ b/libs/DataTables/datatables.min.css @@ -4,10 +4,10 @@ * * To rebuild or modify this file with the latest versions of the included * software please visit: - * https://datatables.net/download/#bs5/dt-3.1.2 + * https://datatables.net/download/#bs5/dt-3.1.5 * * Included libraries: - * DataTables 3.1.2 + * DataTables 3.1.5 */ /*! DataTables Bootstrap 5 integration diff --git a/libs/DataTables/datatables.min.js b/libs/DataTables/datatables.min.js index 351adcf00..3715e79a1 100644 --- a/libs/DataTables/datatables.min.js +++ b/libs/DataTables/datatables.min.js @@ -4,19 +4,19 @@ * * To rebuild or modify this file with the latest versions of the included * software please visit: - * https://datatables.net/download/#bs5/dt-3.1.2 + * https://datatables.net/download/#bs5/dt-3.1.5 * * Included libraries: - * DataTables 3.1.2 + * DataTables 3.1.5 */ -/*! DataTables 3.1.2 +/*! DataTables 3.1.5 * Copyright (c) SpryMedia Ltd - datatables.net/license */ -(t=>{"function"==typeof define&&define.amd?define([],function(){return t(window,document)}):"object"==typeof exports?"undefined"==typeof window?module.exports=function(e){return e=e||window,t(e,e.document)}:module.exports=t(window,window.document):window.DataTable=t(window,document)})(function(A,T){let _=/['\u00A0,$£€¥%\u2009\u202F\u20BD\u20a9\u20BArfkɃΞ]/gi,j=/<([^>]*>)/g,C=new RegExp("(\\"+["/",".","*","+","?","|","(",")","[","]","{","}","\\","$","^","-"].join("|\\")+")","g");var O=Object.freeze({__proto__:null,isoTimezone:/[T\s]\d{2}.*?(Z|[+-]\d{2}(?::?\d{2})?)$/,reDate:/^\d{2,4}[./-]\d{1,2}[./-]\d{1,2}([T ]{1}\d{1,2}[:.]\d{2}([.:]\d{2})?)?$/,reFormattedNumeric:_,reHtml:j,reNewLines:/[\r\n\u2028]/g,reRegexCharacters:C});let N=Math.pow(2,28),S=function(e,t){var r;return"string"!=typeof e?e:(r=e.normalize?e.normalize("NFD"):e).length!==e.length?(!0===t?e+" ":"")+r.replace(/[\u0300-\u036f]/g,""):r},R=function(e,t=""){if(!e||"string"!=typeof e)return e;if(e.length>N)throw new Error("Exceeded max str len");let r,n=e.replace(j,t);for(;(n=(r=n).replace(/