@sheetxl/studio-vanilla 0.4.21 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/browser/cjs/2QmtjcI-saz2rkIA.cjs +6 -0
- package/browser/cjs/3UFq2FybsZfoS4JL.cjs +6 -0
- package/browser/cjs/B-fFQgxMHns-eg-y.cjs +6 -0
- package/browser/cjs/{n6CXzSocLW_BCO8w.cjs → B2hhcNzdkhGrH1O6.cjs} +6 -6
- package/browser/cjs/BASsCVA0ArIVtY7I.cjs +6 -0
- package/browser/cjs/BAxy7pwmXg8SI_oi.cjs +6 -0
- package/browser/cjs/BCwHln5zBNJSn0bb.cjs +6 -0
- package/browser/cjs/BQYUcoxlHrpI0-pX.cjs +6 -0
- package/browser/cjs/BVbQCweLw_r05vPF.cjs +15 -0
- package/browser/cjs/BYJxHR3K0UQJ8mYe.cjs +6 -0
- package/browser/cjs/Ba8eoGTjjWBH8TbP.cjs +6 -0
- package/browser/cjs/BdCoVNJwhPpWfQw2.cjs +6 -0
- package/browser/cjs/BkZzUVGQfrUTPE_K.cjs +6 -0
- package/browser/cjs/BlpCu5z9eT8rzsZl.cjs +6 -0
- package/browser/cjs/BlqTaZ2U_mKVK2lb.cjs +6 -0
- package/browser/cjs/BpeteRa_oZ-wN4Yl.cjs +6 -0
- package/browser/cjs/BxqDS9XynU5GFbP7.cjs +16 -0
- package/browser/cjs/ByB_fmjdLNTv0T0U.cjs +145 -0
- package/browser/cjs/C-6TpShR6Bn0HnEd.cjs +7 -0
- package/browser/cjs/C5T_oiCG4PwTFSZA.cjs +6 -0
- package/browser/cjs/C5e1IjdRuLyAQqNX.cjs +7 -0
- package/browser/cjs/CAZoVQtxsVdAtVKy.cjs +6 -0
- package/browser/cjs/CBS2kMyEf0c_PUbQ.cjs +12 -0
- package/browser/cjs/CO7VEOXret0qr-X3.cjs +6 -0
- package/browser/cjs/CVIlAq9nwlOXfHMl.cjs +161 -0
- package/browser/cjs/CZEOikBcE4OIr49t.cjs +6 -0
- package/browser/cjs/Ce8AVRntRnXZtgzH.cjs +6 -0
- package/browser/cjs/ClEZHGlmkSIz6S1O.cjs +6 -0
- package/browser/cjs/CvO-oyQ3syx7EGUA.cjs +6 -0
- package/browser/cjs/CwqvcNlwUtXJrzsk.cjs +6 -0
- package/browser/cjs/D-su0R92LmYTQVL3.cjs +11 -0
- package/browser/cjs/D178aT-dgy-ngzYG.cjs +6 -0
- package/browser/cjs/D5z-zqUVI3G9JXBC.cjs +1501 -0
- package/browser/cjs/D68uE8Ovq38Aj-88.cjs +330 -0
- package/browser/cjs/D8mjDoZ4Yyous_Fc.cjs +6 -0
- package/browser/cjs/DASsVvQwE2-IWxLR.cjs +6 -0
- package/browser/cjs/DBavSByKdf-juvFm.cjs +32 -0
- package/browser/cjs/DHRZzqw46ad6Mtw6.cjs +6 -0
- package/browser/cjs/DJZBxKlTP03_1kyT.cjs +6 -0
- package/browser/cjs/DKq35Q191eW-MovK.cjs +6 -0
- package/browser/cjs/DMUFBhoYpT3ai2Sb.cjs +6 -0
- package/browser/cjs/DX2XUDUIVBx4UFrJ.cjs +6 -0
- package/browser/cjs/DdzEWCcupF-0WS8y.cjs +11 -0
- package/browser/cjs/Dg9j6yGv8nrILfzN.cjs +6 -0
- package/browser/cjs/DjB9MJwDT6_HgF4U.cjs +6 -0
- package/browser/cjs/Dl5mwbo0ahDUm0he.cjs +6 -0
- package/browser/cjs/DmT6vIsFpZJ2c8cx.cjs +15 -0
- package/browser/cjs/Hi6aVJR9PyRbNYjO.cjs +6 -0
- package/browser/cjs/K7QHOvYV_yvLLjsS.cjs +6 -0
- package/browser/cjs/LhLQSvaxn8yxAIwj.cjs +6 -0
- package/browser/cjs/MgEzGw411nlqjqfH.cjs +42 -0
- package/browser/cjs/WJXT0W6bS3bZdAUV.cjs +6 -0
- package/browser/cjs/f_Vbi-Lelt9tKZrz.cjs +19 -0
- package/browser/cjs/index.cjs +2 -80
- package/browser/cjs/tNT3tUxdeIp_Iq2Y.cjs +7 -0
- package/browser/cjs/vNEwUuTKk3qucC3P.cjs +6 -0
- package/browser/cjs/xMzLyo_gIl82xG8k.cjs +6 -0
- package/browser/cjs/yc1bXLJ1yRhBFy0X.cjs +124 -0
- package/browser/esm/2fFz5u9jPgrNzcVF.mjs +21 -0
- package/browser/esm/2kXHnuU_uz-F9i1S.mjs +44550 -0
- package/browser/esm/5F1_gQbzWEFsWO0i.mjs +84 -0
- package/browser/esm/9MchcnSGrYDjX4zQ.mjs +46 -0
- package/browser/esm/Af7aikoKHz0rpjfv.mjs +10 -0
- package/browser/esm/B1Kc7dS9N2PVqxMT.mjs +10 -0
- package/browser/esm/B8ePgT5XZ0JlU3T6.mjs +1352 -0
- package/browser/esm/B8uy0BSOVjfUw27f.mjs +12 -0
- package/browser/esm/BFweWj2oKpTGl7m3.mjs +1672 -0
- package/browser/esm/BLseM2hNBI2PgQaX.mjs +13391 -0
- package/browser/esm/BUNUi9F3xbjfUKty.mjs +24 -0
- package/browser/esm/BV3ROKbw5yMVArqX.mjs +10 -0
- package/browser/esm/BXKXqOluLdKs4-V0.mjs +3802 -0
- package/browser/esm/BZpMA4DGM1kbVAKF.mjs +10 -0
- package/browser/esm/Bg59p3YlNG6o7-M3.mjs +260 -0
- package/browser/esm/BlFzVqIUaXFtDy81.mjs +10 -0
- package/browser/esm/BtBECeJ4mwD7SUx8.mjs +3936 -0
- package/browser/esm/Buw1VxSLsNI8pSYS.mjs +5585 -0
- package/browser/esm/BxoWypkKac-_VAm5.mjs +39 -0
- package/browser/esm/By3EkyTg3ZYh63C7.mjs +56 -0
- package/browser/esm/CDu4VlyMAQ3nxTQG.mjs +10 -0
- package/browser/esm/CJ9ZL3uskq3W6s-m.mjs +10 -0
- package/browser/esm/CP_sGa9QGT2Nq5ym.mjs +1702 -0
- package/browser/esm/CaIFrnjL0xBOtFfM.mjs +10 -0
- package/browser/esm/CeP-AnEtOGkuxLqE.mjs +10 -0
- package/browser/esm/CjScjxhY2mD7nPZA.mjs +633 -0
- package/browser/esm/CozWNYg-NXzV84fz.mjs +10 -0
- package/browser/esm/Cprnt9pNXzIiMmkN.mjs +29 -0
- package/browser/esm/Cq-wjvtZ92uenxU1.mjs +20 -0
- package/browser/esm/CsVeeu8D1A8I-BbH.mjs +1575 -0
- package/browser/esm/CzMxOWYq4nqRtKmm.mjs +1366 -0
- package/browser/esm/D9MGSJr45cVRF75O.mjs +1466 -0
- package/browser/esm/DAUV_w2uv0nHdk5N.mjs +10 -0
- package/browser/esm/DIypkIIonThPr-Vt.mjs +47 -0
- package/browser/esm/DOG1CaEQVF1sTUFi.mjs +10 -0
- package/browser/esm/DOv9FndcEVmQ2LJK.mjs +392 -0
- package/browser/esm/DSCVDOwTpDzUVuFj.mjs +10 -0
- package/browser/esm/DYF-8AnNDaQUy3aL.mjs +2344 -0
- package/browser/esm/Dd0avXHDTPFrx-ot.mjs +44 -0
- package/browser/esm/DdQY6IuT4OziHv5i.mjs +48 -0
- package/browser/esm/DfRKIODWn8ElqMWa.mjs +425 -0
- package/browser/esm/Dfbzljrnj4KrvtaN.mjs +10 -0
- package/browser/esm/DfdWpPG9ZcbRBGUg.mjs +10 -0
- package/browser/esm/Di8JLQMx61fnrhOn.mjs +10 -0
- package/browser/esm/DirXlaTG7TKxrqSR.mjs +10 -0
- package/browser/esm/DjGdyf6zsnIMRkQb.mjs +41 -0
- package/browser/esm/Dm4Fun7UoovVHafs.mjs +147 -0
- package/browser/esm/DwpS4SI4gT1eqfOs.mjs +10 -0
- package/browser/esm/DzZDYedlR-CIW2TI.mjs +21 -0
- package/browser/esm/HlyDPlaZCA3IOmF2.mjs +2081 -0
- package/browser/esm/PzIeb5aTX9JzTTfm.mjs +424 -0
- package/browser/esm/{NBuS53B7u8hItiXf.mjs → QPkYQWSepZNIhJst.mjs} +937 -933
- package/browser/esm/UENfAV2nBd83yFu7.mjs +10 -0
- package/browser/esm/YYqCu_-Z9nzvEseu.mjs +10 -0
- package/browser/esm/aEhgzbKqmuKv1oqm.mjs +10 -0
- package/browser/esm/bxGRTnY732xGNtpL.mjs +10 -0
- package/browser/esm/index.mjs +4 -176
- package/browser/esm/zQSjT9VbN7kMDV88.mjs +21 -0
- package/cdn/assets/2fFz5u9jPgrNzcVF.js +21 -0
- package/cdn/assets/7ZUzaBw_VH3Cvii1.js +1702 -0
- package/cdn/assets/7bmIdE8Moi7orOeU.js +50 -0
- package/cdn/assets/Af7aikoKHz0rpjfv.js +10 -0
- package/cdn/assets/B1Kc7dS9N2PVqxMT.js +10 -0
- package/cdn/assets/B6QHusAaPSos46yi.js +3802 -0
- package/cdn/assets/B8ePgT5XZ0JlU3T6.js +1352 -0
- package/cdn/assets/B8uy0BSOVjfUw27f.js +12 -0
- package/cdn/assets/BFweWj2oKpTGl7m3.js +1672 -0
- package/cdn/assets/BGF-bSrwdriQTytG.js +1466 -0
- package/cdn/assets/BLseM2hNBI2PgQaX.js +13391 -0
- package/cdn/assets/BQvzpOcCO8uM_ZaF.js +46 -0
- package/cdn/assets/BUNUi9F3xbjfUKty.js +24 -0
- package/cdn/assets/BV3ROKbw5yMVArqX.js +10 -0
- package/cdn/assets/BZpMA4DGM1kbVAKF.js +10 -0
- package/cdn/assets/BlFzVqIUaXFtDy81.js +10 -0
- package/cdn/assets/BrwV_8GjxcVuWuUk.js +44377 -0
- package/cdn/assets/C7SHJrlOqTIZCB3t.js +41 -0
- package/cdn/assets/CCbJipmDawMQQxRJ.js +36 -0
- package/cdn/assets/CDu4VlyMAQ3nxTQG.js +10 -0
- package/cdn/assets/CEcpUxbZ1W-G1EPq.js +2346 -0
- package/cdn/assets/CJ9ZL3uskq3W6s-m.js +10 -0
- package/cdn/assets/CaIFrnjL0xBOtFfM.js +10 -0
- package/cdn/assets/CaN0O_koLgCkhgEh.js +1575 -0
- package/cdn/assets/CeP-AnEtOGkuxLqE.js +10 -0
- package/cdn/assets/CjScjxhY2mD7nPZA.js +633 -0
- package/cdn/assets/ClkFsS16G5memDzX.js +22 -0
- package/cdn/assets/CmUGAy0Bu36DiwJO.js +84 -0
- package/cdn/assets/CozWNYg-NXzV84fz.js +10 -0
- package/cdn/assets/CsYr_9x-OIQSqGIL.js +27 -0
- package/cdn/assets/CzEv6qEIPTHOwOdU.js +2083 -0
- package/cdn/assets/CzMF1riupKc6HLGE.js +6481 -0
- package/cdn/assets/CzMxOWYq4nqRtKmm.js +1366 -0
- package/cdn/assets/D-W_ANt_qJ9dfGy9.js +425 -0
- package/cdn/assets/DAI9BFZBDQlMP1v4.js +149 -0
- package/cdn/assets/DAUV_w2uv0nHdk5N.js +10 -0
- package/cdn/assets/DOG1CaEQVF1sTUFi.js +10 -0
- package/cdn/assets/DSCVDOwTpDzUVuFj.js +10 -0
- package/cdn/assets/DSv3gXCV9xifjdta.js +23 -0
- package/cdn/assets/DaYZ-afnc3QhJo5R.js +58 -0
- package/cdn/assets/Dfbzljrnj4KrvtaN.js +10 -0
- package/cdn/assets/DfdWpPG9ZcbRBGUg.js +10 -0
- package/cdn/assets/Di8JLQMx61fnrhOn.js +10 -0
- package/cdn/assets/DirXlaTG7TKxrqSR.js +10 -0
- package/cdn/assets/DivRRrwWTqpDEOsE.js +392 -0
- package/cdn/assets/DlGa-wREL0uZB2Nx.js +43 -0
- package/cdn/assets/DlMH1vSjXgvZMwQJ.js +90 -0
- package/cdn/assets/Dml7K4XhLTRwUDTY.js +27 -0
- package/cdn/assets/DwpS4SI4gT1eqfOs.js +10 -0
- package/cdn/assets/G0GROjU63_EPzAF7.js +241 -0
- package/cdn/assets/NoCZPCkSed8lQpNi.js +46 -0
- package/cdn/assets/O-MB9oo65vbYOjfG.js +260 -0
- package/cdn/assets/PzIeb5aTX9JzTTfm.js +424 -0
- package/cdn/assets/UENfAV2nBd83yFu7.js +10 -0
- package/cdn/assets/V2bW77WyjoyjJMvZ.js +5585 -0
- package/cdn/assets/YJiNeqIJTFYDQPxS.js +3936 -0
- package/cdn/assets/YYqCu_-Z9nzvEseu.js +10 -0
- package/cdn/assets/Yp0FxpbZyyvU_u6y.js +49 -0
- package/cdn/assets/aEhgzbKqmuKv1oqm.js +10 -0
- package/cdn/assets/bxGRTnY732xGNtpL.js +10 -0
- package/cdn/assets/djN8Su_7GYF42GqX.js +21 -0
- package/cdn/assets/m-A0SfNBx32zKuZU.js +29 -0
- package/cdn/assets/uvZYEIW4EfvcdsXG.js +12 -0
- package/cdn/assets/zZGhctwBXNlAYrJr.js +21 -0
- package/cdn/index.js +2 -2
- package/cdn/loader.js +1 -1
- package/package.json +3 -3
- package/cdn/assets/CY8njwo06MWkoPz2.js +0 -21
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";/**
|
|
2
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.5.0
|
|
3
|
+
*
|
|
4
|
+
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
|
+
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
|
+
*/Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});exports.default={ASC:{s:"Converts a string to full-width characters to half-width. Uses the double-byte character set (DBCS).",p:{text:{d:"is a text or a reference to a cell containing text"}},h:"DBCS"},ARRAYTOTEXT:{s:"Returns a text representation of an array",p:{array:{d:"the array to represent as text"},format:{d:"0 for relaxed format, 1 for strict format",v:0}}},CHAR:{s:"Returns the character specified by the code number from the character set for your computer",p:{number:{d:"is a number between 1 and 255 specifying which character you want"}}},CLEAN:{s:"Removes all nonprintable characters from text",p:{text:{d:"is the text you want to clean"}}},CODE:{s:"Returns the Unicode value of the first character in a text string",p:{text:{d:"is the text string whose Unicode value you want"}}},CONCAT:{s:"Concatenates a list or range of text strings",p:{text:{d:"text1,text2,... are 1 to 252 text strings or ranges to be joined"}}},CONCATENATE:{s:"Joins several text strings into one text string",p:{text:{d:"text1, text2,... are 1 to 252 text strings or ranges to be joined"}},c:"Compatibility"},DETECTLANGUAGE:{s:"Detects the language of a given text.",p:{text:{d:"is the text to detect the language of"}},h:"Unimplemented"},DBCS:{s:"Changes half-width characters to full-width characters. Uses the double-byte character set (DBCS).",p:{text:{d:"is a text or a reference to a cell containing text"}},h:"DBCS"},DOLLAR:{s:"Converts a number to text in currency format",p:{number:{d:"is the number to convert"},decimals:{d:"is the number of digits to the right of the decimal point",v:2}}},EXACT:{s:"Checks whether two text strings are exactly the same, and returns TRUE or FALSE. EXACT is case-sensitive",p:{text1:{d:"is the first text string"},text2:{d:"is the second text string"}}},FIND:{s:"Returns the starting position of one text string within another text string. FIND is case-sensitive",p:{findText:{d:"Returns the starting position of one text string within another text string. FIND is case-sensitive"},withinText:{d:"is the text you want to search"},startNum:{d:"specifies the character at which to start the search. The first character in Within_text is character number 1",v:1}}},FINDB:{s:"Finds the starting position of one text string with another text string. FINDB is case-sensitive. Use with double-byte characters.",p:{findText:{d:"is the text you want to find"},withinText:{d:"is the text you want to search"},startNum:{d:"is the position in within_text to start searching",v:1}},h:"DBCS"},FIXED:{s:"Rounds a number to the specified number of decimals and returns the result as text with or without commas",p:{number:{d:"is the number you want to round and convert to text"},decimals:{d:"is the number of digits to the right of the decimal point",v:2},noCommas:{d:"is a logical value: do not display commas in the returned text = TRUE; do display commas in the returned text = FALSE",v:!1}}},LEFT:{s:"Returns the specified number of characters from the start of a text string",p:{text:{d:"is the text string from which you want to extract characters"},numChars:{d:"specifies how many characters you want LEFT to extract",v:1}}},LEFTB:{s:"Returns the leftmost num_bytes characters from text. Uses double-byte characters.",p:{text:{d:"is the text string from which you want to extract characters"},numBytes:{d:"is the number of bytes to extract",v:1}},h:"DBCS"},LEN:{s:"Returns the number of characters in a text string",p:{text:{d:"is the text whose length you want to find. Spaces count as characters"}}},LENB:{s:"Returns the number of bytes in a text string. Uses double-byte characters.",p:{text:{d:"is the text string from which you want to extract characters"}}},LOWER:{s:"Converts all letters in a text string to lowercase",p:{text:{d:"is the text you want to convert to lowercase. Characters in Text that are not letters are not changed"}}},MID:{s:"Returns the characters from the middle of a text string, given a starting position and length",p:{text:{d:"is the text string from which you want to extract characters"},startNum:{d:"is the position of the first character you want to extract"},numChars:{d:"specifies how many characters to return from Text"}}},MIDB:{s:"Returns characters from the middle of a text string. Uses double-byte characters.",p:{text:{d:"is the text string from which you want to extract characters"},startNum:{d:"is the position of the first character you want to extract"},numBytes:{d:"is the number of bytes to extract"}},h:"DBCS"},NUMBERVALUE:{s:"Converts text to number in a locale-independent manner",p:{text:{d:"is the text string you want to convert"},decimalSeparator:{d:"is the character that separates the integer part from the decimal part of the number",v:"."},groupSeparator:{d:"is the character that separates groups of thousands",v:","}}},PERCENTOF:{s:"Returns the percentage of a subset of a given data set",p:{dataSubset:{d:"is the subset"},dataAll:{d:"is the data set"}},h:"Unimplemented"},PHONETIC:{s:"Returns the phonetic spelling of a text string",p:{reference:{d:"Text string or a reference to a single cell or a range of cells that contain a furigana text string"}},h:"Unimplemented"},PROPER:{s:"Converts the first letter of each word in a text string to uppercase",p:{text:{d:"is the text string you want to convert"}}},REGEXEXTRACT:{s:"Extracts substrings of 'text' based on the provided REGEX 'pattern'",p:{text:{d:"is the text string from which you want to extract characters"},pattern:{d:"The regular expression to be applied"},returnMode:{d:"Specify which matches to return",v:0},caseSensitivity:{d:"Whether the match is case sensitive",v:!1}},h:"Unimplemented"},REGEXREPLACE:{s:"Returns 'text', with 'replacement' in place of matches with 'pattern'",p:{text:{d:"is the text string from which you want to extract characters"},pattern:{d:"The regular expression to be applied"},replacement:{d:"The replacement string"},occurrence:{d:"The occurrence of the match to replace",v:0},caseSensitivity:{d:"Whether the match is case sensitive",v:!1}},h:"Unimplemented"},REGEXTEST:{s:"Checks whether the input matches the pattern, and returns TRUE or FALSE",p:{text:{d:"is the text string to be checked"},pattern:{d:"is the regular expression to be applied"},caseSensitivity:{d:"Whether the match is case sensitive",v:!1}},h:"Unimplemented"},REPLACE:{s:"Replaces part of a text string with a different text string",p:{oldText:{d:"is the text string to be changed"},startNum:{d:"is the position of the first character you want to replace"},numChars:{d:"is the number of characters to replace"},newText:{d:"is the text string that will replace old_text"}}},REPLACEB:{s:"Replaces part of a text string with a different text string using the number of bytes. Uses the double-byte character set (DBCS).",p:{oldText:{d:"is the text string to be changed"},startNum:{d:"is the position of the first character you want to replace"},numBytes:{d:"is the number of bytes to replace"},newText:{d:"is the text string that will replace old_text"}},h:"DBCS"},REPT:{s:"Repeats text a given number of times",p:{text:{d:"is the text you want to repeat"},numberTimes:{d:"is the number of times you want to repeat text"}}},RIGHT:{s:"Returns the specified number of characters from the end of a text string",p:{text:{d:"is the text string that contains the characters you want to extract"},numChars:{d:"specifies how many characters you want to extract",v:1}}},RIGHTB:{s:"Returns the rightmost num_bytes characters from text. Uses double-byte characters.",p:{text:{d:"is the text string from which you want to extract characters"},numBytes:{d:"is the number of bytes to extract",v:1}}},SEARCH:{s:"Returns the number of the character at which a specific character or text string is first found, reading left to right (not case-sensitive)",p:{findText:{d:"Returns the number of the character at which a specific character or text string is first found, reading left to right (not case-sensitive)"},withinText:{d:"is the text in which you want to search for Find_text"},startNum:{d:"is the character number in Within_text, counting from the left, at which you want to start searching",v:1}}},SEARCHB:{s:"Returns the number of the character at which a specific character or text string is first found, reading left to right (not case-sensitive). Uses the double-byte character set (DBCS).",p:{findText:{d:"Returns the number of the character at which a specific character or text string is first found, reading left to right (not case-sensitive)"},withinText:{d:"is the text in which you want to search for Find_text"},startBytes:{d:"is the character number in Within_text, counting from the left, at which you want to start searching",v:1}},h:"DBCS"},SUBSTITUTE:{s:"Replaces existing text with new text in a text string",p:{text:{d:"is the text or the reference to a cell containing text in which you want to substitute characters"},oldText:{d:"is the existing text you want to replace. If the case of Old_text does not match the case of text, SUBSTITUTE will not replace the text"},newText:{d:"is the text you want to replace Old_text with"},instanceNum:{d:"specifies which occurrence of Old_text you want to replace. If omitted, every instance of Old_text is replaced"}}},T:{s:"Checks whether a value is text, and returns the text if it is, or returns double quotes (empty text) if it is not",p:{value:{d:"is the value to test"}}},TEXT:{s:"Converts a value to text in a specific number format",p:{value:{d:"is a number, a formula that evaluates to a numeric value, or a reference to a cell containing a numeric value"},formatText:{d:"is a text string that defines the number format to use"}}},TEXTAFTER:{s:"Returns text that's after delimiting characters.",p:{text:{d:"The text you want to search for the delimiter."},delimiter:{d:"The character or string to use as a delimiter."},instanceNum:{d:"The desired occurrence of delimiter. The default is 1. A negative number searches from the end.",v:1},matchMode:{d:"Searches the text for a delimiter match. By default, a case-sensitive match is done.",v:0},matchEnd:{d:"Whether to match the delimiter against the end of text. By default, they're not matched.",v:0},ifNotFound:{d:"Returned if no match is found. By default, #N/A is returned.",v:"undefined"}}},TEXTJOIN:{s:"Concatenates a list or range of text strings using a delimiter",p:{delimiter:{d:"Character or string to insert between each text item"},ignoreEmpty:{d:"if TRUE(default), ignores empty cells"},text:{d:"text1,text2,... are 1 to 252 text strings or ranges to be joined"}}},TEXTSPLIT:{s:"Splits text into rows or columns using delimiters.",p:{text:{d:"The text to split"},colDelimiter:{d:"The column delimiter(s) - can be string or array of strings"},rowDelimiter:{d:"The row delimiter(s), null/undefined means no row splitting",v:null},ignoreEmpty:{d:"Whether to ignore empty values (defaults to `false`)",v:!1},matchMode:{d:"Whether to use case-sensitive (0) or case-insensitive (1) match (defaults to `0`)",v:0},padWith:{d:"Value to use for padding if matrix is uneven (defaults to `#N/A`)",v:"undefined"}}},TEXTBEFORE:{s:"Returns text that's before delimiting characters.",p:{text:{d:"The text you want to search for the delimiter."},delimiter:{d:"The character or string to use as a delimiter."},instanceNum:{d:"The desired occurrence of delimiter. The default is 1. A negative number searches from the end.",v:1},matchMode:{d:"Whether to use case-sensitive (0) or case-insensitive (1) match (defaults to `0`)",v:0},matchEnd:{d:"Whether to match the delimiter against the end of text. By default, they're not matched.",v:0},ifNotFound:{d:"Returned if no match is found. By default, #N/A is returned.",v:"undefined"}}},TRANSLATE:{s:"Translate a text string from one language to another using the Microsoft Translator service.",p:{text:{d:"The text to translate."},sourceLanguage:{d:"Specifiy the source language your text is currently in. Expressed as a two-letter language code."},targetLanguage:{d:"Specifiy the source language you want your text to be translated to. Expressed as a two-letter language code."}},h:"Unimplemented"},TRIM:{s:"Removes all spaces from text except for single spaces between words.",p:{text:{d:"The text from which you want to remove extra spaces."}}},UNICHAR:{s:"Returns the Unicode character referenced by the given numeric value",p:{number:{d:"is the Unicode number representing a character"}}},UNICODE:{s:"Returns the number (code point) corresponding to the first character of the text",p:{text:{d:"is the character that you want the Unicode value of"}}},UPPER:{s:"Converts a text string to all uppercase letters",p:{text:{d:"is the text you want converted to uppercase, a reference or a text string"}}},VALUE:{s:"Converts a text string that represents a number to a number",p:{text:{d:"is the text enclosed in quotation marks or a reference to a cell containing the text you want to convert"}}},VALUETOTEXT:{s:"Returns a text representation of a value",p:{value:{d:"the value to represent as text"},format:{d:"the format of the text",v:0}}}};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";/**
|
|
2
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.5.0
|
|
3
|
+
*
|
|
4
|
+
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
|
+
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
|
+
*/Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});exports.TypeScriptCompiler=class{constructor(r={}){this.workerWrapper=null}async getWorkerWrapper(){if(this.workerWrapper)return this.workerWrapper;const{createCompilerWorker:r}=await Promise.resolve().then(()=>require("./D5z-zqUVI3G9JXBC.cjs"));return this.workerWrapper=await r(),this.workerWrapper}async compileModule(r){try{return(await this.getWorkerWrapper()).execute(r)}catch(e){throw console.error("Failed to compile using worker:",e),e}}terminate(){this.workerWrapper?.terminate(),this.workerWrapper=null}};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";/**
|
|
2
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.5.0
|
|
3
|
+
*
|
|
4
|
+
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
|
+
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
|
+
*/Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("./D68uE8Ovq38Aj-88.cjs");let $=null,L=null;const le={compilerOptions:{target:"esnext"}},se=async()=>`
|
|
7
|
+
interface FirstTest {
|
|
8
|
+
isTrue?: boolean;
|
|
9
|
+
}
|
|
10
|
+
`,Q=new Map([["IReferenceRange","r"],["IRange","l"]]),Z=new Map([["IWorkbook","workbook"],["ISheet","sheet"],["ICellRanges","ranges"],["ICellRange","range"],["IFormulaContext","context"]]),V=(T,S)=>{Array.from(S.keys()).forEach(z=>{const P=S.get(z);S.set(`${T}.${z}`,P)})},ce=new Map([["Scalar","*"],["FormulaError.Known",b.M.Error],["Date","Date"],["JSON","JSON"]]),de=new Map([]),U="SheetXL";V(U,Q),V(U,Z),V(U,de);const ue=new Map([["Promise",()=>({async:!0})],["Observable",()=>({stream:!0})]]);let R=null;async function pe(){if(R)return R;try{return await(await Promise.resolve().then(()=>require("./BAxy7pwmXg8SI_oi.cjs"))).initialize()}catch(T){throw R=null,T}finally{R=null}}exports.compileModule=async function(T){const S=T?.source??null;if(!S)return null;const z=(T.disableBundle||T.declarationsOnly)??!1,P=[se(),pe()],X=await Promise.all(P),ee=X[0],n=X[1];let C="",j=null;const O=[],te={allowJs:!0,declaration:!1,sourceMap:!1,inlineSourceMap:!1,inlineSources:!1,isolatedModules:!0,preserveConstEnums:!1,module:99,noResolve:!0,emitDeclarationOnly:!1,target:n.ScriptTarget.ES2020},A="script",I=`${A}.ts`,_="lib.d.ts",H="global.d.ts",F={[I]:S,[_]:`
|
|
11
|
+
/**
|
|
12
|
+
* Represents the completion of an asynchronous operation
|
|
13
|
+
*/
|
|
14
|
+
interface Promise<T> {
|
|
15
|
+
/**
|
|
16
|
+
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
17
|
+
* resolved value cannot be modified from the callback.
|
|
18
|
+
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
19
|
+
* @returns A Promise for the completion of the callback.
|
|
20
|
+
*/
|
|
21
|
+
finally(onfinally?: (() => void) | undefined | null): Promise<T>;
|
|
22
|
+
}
|
|
23
|
+
`,[H]:ee},ne={getSourceFile:(e,o,y,r)=>n.createSourceFile(e,F[e],n.ScriptTarget.Latest,!0),fileExists:e=>F[e]!==void 0,readFile:e=>F[e],writeFile:(e,o)=>{F[e]=o},getCurrentDirectory:()=>"./",getCanonicalFileName:e=>e,useCaseSensitiveFileNames:()=>!0,getDefaultLibFileName:e=>_,getNewLine:()=>`
|
|
24
|
+
`},q=n.createProgram([I,H],te,ne),D=q.getTypeChecker(),re=q.getSourceFile(I),W=q.emit();W.diagnostics.length>0&&console.warn(W.diagnostics),C=F[`${A}.js`];const N=(e,o,y,r)=>{if(e){if(e.kind===n.SyntaxKind.NumberKeyword)o.scalar=b.M.Number;else if(e.kind===n.SyntaxKind.StringKeyword)o.scalar=b.M.String;else if(e.kind===n.SyntaxKind.BooleanKeyword)o.scalar=b.M.Boolean;else if(e.kind===n.SyntaxKind.UndefinedKeyword||e.kind===n.SyntaxKind.NullKeyword||e.kind===n.SyntaxKind.VoidKeyword){if(r)return void h(e,new Error(`'undefined' is not a valid type for input: '${e?.parent?.name?.escapedText}'.`));o.scalar=b.M.Null}else if(e.kind===n.SyntaxKind.BigIntKeyword)o.scalar=b.M.Number;else if(e.kind===n.SyntaxKind.AnyKeyword)o.scalar=b.M.Null;else if(e.kind===n.SyntaxKind.ArrayType){const i=e.elementType;if(!i)return void h(e,new Error(`'Array' must be typed: '${e?.parent?.name?.escapedText}'.`));o.arrayDepth=(o.arrayDepth??0)+1,N(i,o,y,r)}else if(e.kind!==n.SyntaxKind.TupleType&&e.kind===n.SyntaxKind.TypeReference){const i=e.typeName?.getText?.()??null,f=Q.get(i);let m=!1;f&&(o.range=f,m=!0);const x=ce.get(i);if(x&&(o.scalar=x),x!==void 0&&(m=!0),r){const c=Z.get(i);if(c)return c}else{const c=ue.get(i);if(c){const l={...o,...c()};let t=0;if(l.async&&t++,l.stream&&t++,t>1)return void h(e,new Error(`'${i}' cannot have multiple modifiers: '${e?.parent?.name?.escapedText}'.`));o=l,m=!0}}if(!m)return void h("node",new Error(`'${i}' is not a valid type: '${e?.parent?.name?.escapedText}'.`));const p=e.typeArguments;if(p){if(p.length!==1)return void h(e,new Error(`'${i}' must be typed with exactly 1 type: '${e?.parent?.name?.escapedText}'.`));N(p[0],o,y,r)}}}else h(e,new Error(`Type is not defined for '${o?.name??"return"}'.`))},k=[],h=(e,o)=>{k.push(o)};if(n.forEachChild(re,e=>{if(y=e,(n.getCombinedModifierFlags(y)&n.ModifierFlags.Export)!==0&&n.isFunctionDeclaration(e)){const r={},i={parameters:{}},f=e?.name?.getText();try{r.name=f;const m=D.getSymbolAtLocation(e.name).getDocumentationComment(D);if(m&&m.length>0&&m[0].text){let l=m[0].text;l=l.replace(/[\r\n]+/g,"\\n").trim(),i.summary=l}const x={};N(e.type,x,r,!1),r.returnType=x;const p={};o=e,(n.getCombinedModifierFlags(o)&n.ModifierFlags.Default)!==0&&(p.default=!0,j=f),Object.keys(p).length>0&&(r.behavior=p),r.parameters=[];const c=new Map;for(let l=0;l<e.parameters.length;l++){const t=e.parameters[l],s={};s.name=t.name?.getText();const E=N(t.type,s,r,!0);if(E){if(r.parameters.length!==0){const v=e?.parent,u=v?.name?.getText();return void h(e,new Error(`'${r.name}' contexts must be the first parameter: '${u}'.`))}r.context=E;continue}let g;if((t.initializer!==void 0&&t.initializer!==null||t.questionToken!==void 0&&t.questionToken!==null)&&(s.optional=!0,t.initializer))try{g=t.initializer.kind===n.SyntaxKind.StringLiteral?t.initializer.text:t.initializer.kind===n.SyntaxKind.NumericLiteral?parseFloat(t.initializer.text):t.initializer.kind===n.SyntaxKind.TrueKeyword||t.initializer.kind===n.SyntaxKind.FalseKeyword?t.initializer.kind===n.SyntaxKind.TrueKeyword:t.initializer.kind===n.SyntaxKind.NullKeyword?null:t.initializer.kind===n.SyntaxKind.ObjectLiteralExpression||t.initializer.kind===n.SyntaxKind.ArrayLiteralExpression?t.initializer.getText():t.initializer.getText?.()}catch(v){console.warn(`Couldn't extract default value for parameter '${s.name}'`,v)}t.dotDotDotToken&&(s.rest=!0),r.parameters.push(s);const d={description:""};i.parameters[s.name]=d;const a=D.getSymbolAtLocation(t.name).getDocumentationComment(D);a&&a.length>0&&a[0].text&&(d.description=a[0].text),g!==void 0&&(d.defaultValue=g),c.set(s.name,s)}if(e.jsDoc&&e.jsDoc.length>0){const l=e.jsDoc;for(let t=0;t<l.length;t++){const s=l[t]?.tags;if(s)for(let E=0;E<s.length;E++){const g=s[E];let d=g?.tagName?.text;if(!d)continue;d=d.toLowerCase();let a=g.comment;const v=d==="hidden";if((typeof a=="string"||v)&&(typeof a=="string"&&(a=a.replace(/[\r\n]+/g,"\\n").trim()),v||!a||(a=a.split(/\\n/)[0],a&&a.length!==0))){if(a&&typeof a=="string"){const u=/\{@link(code|plain)?\s+([^}|]+)(?:\s*\|\s*([^}]+))?\}/g;let w,K=a,M=[];for(;(w=u.exec(a))!==null;){const[B,J,oe,G]=w,ae=[oe.trim()];G&&ae.push(G.trim())}a=K,M.length>0&&d==="see"&&(i.links||(i.links=[]),i.links.push(...M))}if(d==="name"){const u=a;u!==f&&(i.name=u)}else if(d!=="description"){if(d==="summary"){const u=a;u&&(i.summary=u)}else if(d==="param"){const u=g.name?.text,w=c.get(u);if(!w){k.push(new Error(`Parameter '${u}' not found in function '${f}'.`));continue}if(g.typeExpression&&g.typeExpression.type)try{const K=g.typeExpression.type;if(K.kind===n.SyntaxKind.UnionType){const M=[];w.enums=M,K.types.forEach(B=>{if(B.kind===n.SyntaxKind.LiteralType){const J=B.literal.text;J&&M.push(J)}})}}catch(K){console.warn("Error parsing JSDoc type expression:",K)}}else if(d==="returns"||d==="return")r.returnType.description=a;else if(d==="category")i.category=a;else if(d==="hidden"){let u=!0;const w=a?.toLowerCase();w==="false"?u=!1:w!=="true"&&(u=a),u!==!1&&(i.hidden=u??!0)}}}}}}Object.keys(r.returnType).length===0&&delete r.returnType,O.push([r,i])}catch(m){h(e,new Error(`'${f}': ${m.message}`))}}var o,y}),k.length>0)throw console.warn(k),new Error("There were compilation errors.",{cause:k});if(O.length===0)throw new Error("No exported functions.");const ie=`${b.Yt.uuidV4()}-script`;try{z||k.length!==0||(C=await async function(e,o,y="/script.js",r="__SHEETXL"){try{const i=await async function(){if($)return $;if(L){if(await L,!$)throw new Error("ESBuild initialization promise resolved, but instance is not available.");return $}let c,l;L=new Promise((t,s)=>{c=t,l=s});try{const{initialize:t}=await Promise.resolve().then(()=>require("./K7QHOvYV_yvLLjsS.cjs"));return $=await t(),c(),$}catch(t){throw console.error("Failed to import or initialize esbuild:",t),L=null,l(t),t}}(),f="@sheetxl/primitives",m=`
|
|
25
|
+
export const FormulaContext = globalThis.${r}?.FormulaContext;
|
|
26
|
+
export const ScalarType = globalThis.${r}?.ScalarType;
|
|
27
|
+
export const Observable = globalThis.${r}?.Observable;
|
|
28
|
+
export const IRange = globalThis.${r}?.IRange;
|
|
29
|
+
export const FormulaError = globalThis.${r}?.FormulaError;
|
|
30
|
+
// Add more exports as needed
|
|
31
|
+
`,x={name:"sheetxl-esbuild-in-memory",setup(c){const l="sheetxl-"+new Date().getTime();c.onResolve({filter:new RegExp(`^(${y.replace("/","\\/")}|${f})$`)},t=>({path:t.path,namespace:l})),c.onResolve({filter:/.*/},t=>{if(t.namespace!==l)return console.warn(`esbuild: Treating import "${t.path}" as external.`),{path:t.path,external:!0}}),c.onLoad({filter:/.*/,namespace:l},t=>{let s;if(t.path===y)s=o;else{if(t.path!==f)return{errors:[{text:`Cannot load unknown path in ${l}: ${t.path}`}]};s=m}return{contents:s,loader:"ts"}})}},p=await i.build({entryPoints:[y],bundle:!0,write:!1,format:"esm",plugins:[x],sourcemap:"inline",tsconfigRaw:le,minify:!0,platform:"neutral"});if(p.outputFiles&&p.outputFiles.length>0)return p.outputFiles[0].text;throw p.errors&&p.errors.length>0?new Error(`esbuild bundling failed: ${p.errors.map(c=>c.text).join(`
|
|
32
|
+
`)}`):new Error("esbuild did not produce an output file.")}catch(i){throw console.error("esbuild bundling process failed:",i),i}}(0,C,A))}catch{console.warn("Error bundling script")}const Y={functions:O,commitId:ie,source:S,name:"Script",language:"typescript",compiled:C};return j&&(Y.autoRun=j),Y};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";/**
|
|
2
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.5.0
|
|
3
|
+
*
|
|
4
|
+
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
|
+
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
|
+
*/Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./D68uE8Ovq38Aj-88.cjs"),I=["Ok","Cancel"],j=t.reactExports.memo(E=>{const{initialValue:T,context:x,onOption:m,onValidateOption:p,onInputOption:d,onDone:l,options:g=I,defaultOption:r=g?.[0],cancelOption:i="Cancel",sx:b,...v}=E,[o,y]=t.reactExports.useState(T),[C,F]=t.reactExports.useState(!1),u=t.reactExports.useCallback(async(e,a)=>!0,[]),c=t.T(async e=>{d?.(o,e),m?.(e,e===i,e===r),l?.()},[o,d,l,m,i,r]),O=t.T(async e=>{e.keyCode===t.to.Enter&&await u?.(o,null)!==!1&&c(r)},[o,c]),S=t.T(e=>{y(e.target.value),u?.(e.target.value,null)},[p]),k=t.T(async e=>{let a=await Promise.resolve(p?.(e));try{a!==!1&&(a=await Promise.resolve(u?.(o,e))??!0)}catch{}return a??!0},[p]),[h,f]=t.reactExports.useState(t.Ft.Styles.lookupStyle(o).formatType??t.Ft.Type.Custom);t.reactExports.useEffect(()=>{f(t.Ft.Styles.lookupStyle(o).formatType??t.Ft.Type.Custom)},[o]);const R=t.reactExports.useMemo(()=>{const e=t.Ft.Styles.lookupPrimary(),a=n=>t.jsxRuntimeExports.jsx(t.MenuItem,{value:n,children:n},n),s=Object.keys(e).map(n=>a(e[n].formatType));return s.push(a(t.Ft.Type.Custom)),s},[]),P=t.reactExports.useCallback(e=>{const a=e.target.value;f(a);const s=t.Ft.Styles.lookupDefault(a);s&&y(s)},[]),w=t.reactExports.useMemo(()=>{const e=x();return e.createTemporaryCell({value:e.getValue()??12345,style:{numberFormat:o}})},[h,o,x]);return t.jsxRuntimeExports.jsx(t.S3,{title:"Number Format",options:g,onDone:l,onOption:e=>c(e),onValidateOption:k,defaultOption:r,cancelOption:i,autoFocusSel:".autoFocus",sx:{width:"580px",...b},...v,children:t.jsxRuntimeExports.jsxs(t.Box,{sx:{paddingTop:e=>e.spacing(1),paddingBottom:e=>e.spacing(0),rowGap:e=>e.spacing(1),display:"flex",flexDirection:"column"},children:[t.jsxRuntimeExports.jsxs(t.FormControl,{sx:{minWidth:135},size:"small",children:[t.jsxRuntimeExports.jsx(t.InputLabel,{children:"Category"}),t.jsxRuntimeExports.jsx(t.Select,{value:h,label:"Category",onChange:P,sx:{backgroundImage:`linear-gradient(${t.alpha("#fff",t.getOverlayAlpha(5))}, ${t.alpha("#fff",t.getOverlayAlpha(5))})`},children:R})]}),t.jsxRuntimeExports.jsx(t.FormControl,{sx:{paddingTop:e=>e.spacing(1.5),minWidth:135,width:"100%"},size:"small",children:t.jsxRuntimeExports.jsx(t.TextField,{label:"Code",onFocus:e=>{C||e.target?.select(),F(!0)},sx:{"& .MuiFormHelperText-root":{marginTop:e=>e.spacing(.5)}},InputLabelProps:{shrink:!0},InputProps:{inputProps:{className:"autoFocus",spellCheck:!1,autoComplete:"off",sx:{paddingTop:e=>e.spacing(1.25),paddingBottom:e=>e.spacing(.75),backgroundImage:`linear-gradient(${t.alpha("#fff",t.getOverlayAlpha(5))}, ${t.alpha("#fff",t.getOverlayAlpha(5))})`}}},value:o,onChange:S,onKeyDown:O,onContextMenu:e=>{e.stopPropagation()}})}),t.jsxRuntimeExports.jsxs(t.Box,{children:[t.jsxRuntimeExports.jsx(t.Typography,{variant:"caption",component:"div",sx:{paddingLeft:e=>e.spacing(2)},children:"Preview"}),t.jsxRuntimeExports.jsx(t.Typography,{variant:"body2",component:"div",sx:{borderRadius:e=>`${e.shape.borderRadius}px`,padding:e=>e.spacing(1),border:e=>`1px solid ${e.palette.grey[400]}`},children:w.getNumberFormat().displayText||"(empty)"})]})]})})});exports.NumberFormatDialog=j,exports.default=j;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";/**
|
|
2
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.5.0
|
|
3
|
+
*
|
|
4
|
+
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
|
+
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
|
+
*/Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./D68uE8Ovq38Aj-88.cjs"),I=["Ok","Cancel"],y=e.reactExports.memo(T=>{const{initialHyperlink:o=null,initialDisplay:E=null,onUpdateHyperlink:c,context:s,onOption:d,onValidateOption:r,onDone:i,options:x=I,defaultOption:p=x?.[0],cancelOption:l="Cancel",sx:k,...C}=T,O=e.reactExports.useMemo(()=>(o??s?.()?.getHyperlink())!==null,[]),g=e.reactExports.useMemo(()=>{let t=null,n=null;o&&(typeof o=="string"?n=o:t=o);const f=t??s?.()?.getHyperlink();return{address:n??f?.getAddress()??"",textToDisplay:f?.getDisplayText()??""}},[o,s]),[a,j]=e.reactExports.useState(g.address),[u,b]=e.reactExports.useState(()=>{const t=s?.().toTextUnformatted()??E;return t===g.address?"":t}),[v,m]=e.reactExports.useState(!1),F=e.reactExports.useCallback(t=>{b(t.target.value)},[]),h=e.reactExports.useCallback(async(t,n)=>null,[]),P=e.T(async t=>{t!==l&&c?.(a===""?null:{address:a},u),d?.(t,t===l,t===p),i?.()},[a,u,c,i,d,p,l]),D=e.T(t=>{j(t.target.value),h(t.target.value,null)},[r]),H=e.T(async t=>{let n=await Promise.resolve(r?.(t));try{n!==!1&&(n=await h(a,t))}catch{}return n??!0},[r]);return e.jsxRuntimeExports.jsx(e.S3,{title:(O?"Edit":"Insert")+" Link",options:x,onDone:i,onOption:t=>P(t),onValidateOption:H,defaultOption:p,cancelOption:l,autoFocusSel:".autoFocus",sx:{width:"480px",...k},...C,children:e.jsxRuntimeExports.jsxs(e.Box,{sx:{paddingTop:t=>t.spacing(1),paddingBottom:t=>t.spacing(0),rowGap:t=>t.spacing(1),display:"flex",flexDirection:"column"},children:[e.jsxRuntimeExports.jsx(e.FormControl,{sx:{paddingTop:t=>t.spacing(1.5),minWidth:135,width:"100%"},size:"small",children:e.jsxRuntimeExports.jsx(e.TextField,{label:"Address",placeholder:"Enter a url or cell reference.",onFocus:t=>{v||t.target?.select(),m(!0)},sx:{"& .MuiFormHelperText-root":{marginTop:t=>t.spacing(.5)}},InputLabelProps:{shrink:!0},InputProps:{inputProps:{className:"autoFocus",spellCheck:!1,autoComplete:"off",sx:{paddingTop:t=>t.spacing(1.25),paddingBottom:t=>t.spacing(.75),backgroundImage:`linear-gradient(${e.alpha("#fff",e.getOverlayAlpha(5))}, ${e.alpha("#fff",e.getOverlayAlpha(5))})`}}},value:a,onChange:D,onContextMenu:t=>{t.stopPropagation()}})}),e.jsxRuntimeExports.jsx(e.FormControl,{sx:{paddingTop:t=>t.spacing(1.5),minWidth:135,width:"100%"},size:"small",children:e.jsxRuntimeExports.jsx(e.TextField,{label:"Display Text",placeholder:a?.startsWith("#")?a.substring(1):a,onFocus:()=>{m(!0)},sx:{"& .MuiFormHelperText-root":{marginTop:t=>t.spacing(.5)}},InputLabelProps:{shrink:!0},InputProps:{inputProps:{spellCheck:!1,autoComplete:"off",sx:{paddingTop:t=>t.spacing(1.25),paddingBottom:t=>t.spacing(.75),backgroundImage:`linear-gradient(${e.alpha("#fff",e.getOverlayAlpha(5))}, ${e.alpha("#fff",e.getOverlayAlpha(5))})`}}},value:u,onChange:F,onContextMenu:t=>{t.stopPropagation()}})})]})})});exports.HyperlinkDialog=y,exports.default=y;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";/**
|
|
2
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.5.0
|
|
3
|
+
*
|
|
4
|
+
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
|
+
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
|
+
*/Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./D68uE8Ovq38Aj-88.cjs"),d=e.reactExports.memo(g=>{const{title:u,onHide:h,autoFocusSel:j=".range-input input",context:R,notifier:i=e.Bt,command:a,commands:r,...f}=g,[y,l]=e.reactExports.useState(!1),[x,c]=e.reactExports.useState(!1),m=e.reactExports.useRef(null),[B,E]=e.reactExports.useReducer(t=>t+1,0),[b,{width:N}]=e.No();e.go(a);const s=R??a.context(),o=s.table(),[S,w]=e.reactExports.useState(()=>o?s.getNames().getRanges(o.getRange()):null),C=e.reactExports.useMemo(()=>o?.getName()??"",[o]);e.ht(s.table(),{onAnchorCoordsChange(t){w(s.getNames().getRanges(t.getRange()))},onProtectedChange(t){E()}});const v=e.T(t=>{s?.table().setName(t)},[s]),T=e.T(t=>{s?.table().resize(t.at(0))},[s]);let p=null;return s.table()||(p=e.jsxRuntimeExports.jsx("div",{style:{position:"absolute",top:"0",left:"0",width:"100%",height:"100%",opacity:1,display:"flex",alignItems:"center",justifyItems:"center",justifyContent:"center",boxSizing:"border-box"},children:e.jsxRuntimeExports.jsx("div",{children:"No table selected"})})),e.jsxRuntimeExports.jsx(e.z8,{ref:m,title:u??"Table Details",initialPosition:{y:"35"},autoFocusSel:j,onHide:h,onFocus:()=>l(!0),onBlur:t=>{m?.current?.contains(t.relatedTarget)||l(!1)},PaperProps:{elevation:y?3:1},...f,children:e.jsxRuntimeExports.jsxs(e.DialogContent,{dividers:!0,ref:b,sx:{display:"flex",flexDirection:"column",position:"relative",paddingLeft:t=>t.spacing(1.5),paddingRight:t=>t.spacing(1.5)},children:[e.jsxRuntimeExports.jsxs(e.Box,{sx:{display:"flex",flexDirection:"column",transition:"opacity 60ms",opacity:s.table()?1:0},children:[e.jsxRuntimeExports.jsx(e.Box,{sx:{display:"flex",flexDirection:"row",gap:t=>t.spacing(1)},children:e.jsxRuntimeExports.jsx(e.Box,{sx:{display:"flex",flexDirection:"column",maxWidth:"100%",boxSizing:"border-box",paddingLeft:t=>t.spacing(2),paddingRight:t=>t.spacing(2)},children:e.jsxRuntimeExports.jsxs(e.Box,{sx:{display:"flex",flexDirection:"column",alignItems:"center"},children:[e.jsxRuntimeExports.jsx(e.zp,{formName:"name",defaultInput:C,value:o?.getName()??"No table",onChangeInput:v,onValidate:t=>{o&&o.getName().toLowerCase()===t.toLowerCase()||s?.getNames().validateName(t)},disabled:o?.isProtected()??!0,onFocus:t=>{x||t.target?.select(),c(!0)}}),e.jsxRuntimeExports.jsx(e.Wp,{formName:"range",value:S,onChangeInput:T,resolvedAddress:s.getNames().getRanges.bind(s.getNames()),disabled:o?.isProtected()??!0,onFocus:t=>{x||t.target?.select(),c(!0)}})]})})}),e.jsxRuntimeExports.jsxs(e.Box,{sx:{minHeight:"10px",flex:"1 1 100%",display:"flex",flexDirection:"column",gap:t=>t.spacing(.5),marginTop:t=>t.spacing(1)},children:[e.jsxRuntimeExports.jsx(e.m6,{orientation:"horizontal",sx:{marginTop:t=>t.spacing(1.5),marginBottom:t=>t.spacing(.75)}}),e.jsxRuntimeExports.jsx(e.Sm,{disabled:o?.isProtected(),styleOptions:o?.getStyleOptions()??null,onStyleOptionsChange:t=>{o.updateStyleOptions(t)},showHeaderRow:o?.getShowHeaders(),onShowHeaderRowChange:t=>{try{o.setShowHeaders(t)}catch(n){i.showError(n)}},showTotalRow:o?.getShowTotals(),onShowTotalRowChange:t=>{try{o.setShowTotals(t)}catch(n){i.showError(n)}},showFilterButton:o?.getFilter()?o.getShowFilterButton():null,onShowFilterButtonChange:t=>{try{o.setShowFilterButton(t)}catch(n){i.showError(n)}}}),e.jsxRuntimeExports.jsx(e.Box,{sx:{display:"flex",alignItems:"center",justifyContent:"center",flexDirection:"column",marginTop:t=>t.spacing(2),marginBottom:t=>t.spacing(1)},children:e.jsxRuntimeExports.jsx(e.Rp,{table:o,styles:s.styles(),bodyStyle:s.bodyStyle(),cellHeight:30,isLive:!0})}),e.jsxRuntimeExports.jsx(e.m6,{orientation:"horizontal"}),e.jsxRuntimeExports.jsxs(e.Box,{sx:{display:"flex",flexDirection:"column",justifyContent:"center"},children:[e.jsxRuntimeExports.jsx(e.X8,{variant:e.vo.Menuitem,command:r.getCommand("convertTableToRange"),commandState:o,icon:e.p2(e.jsxRuntimeExports.jsx(e.l4,{}))}),e.jsxRuntimeExports.jsx(e.X8,{variant:e.vo.Menuitem,commandState:o,command:r.getCommand("deleteTable"),icon:e.p2(e.jsxRuntimeExports.jsx(e.l4,{}))})]})]})]}),p]})})});exports.TableDetailsWindow=d,exports.default=d;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";/**
|
|
2
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.5.0
|
|
3
|
+
*
|
|
4
|
+
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
|
+
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
|
+
*/Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});exports.default={DATE:{s:"Returns the number that represents the date in Microsoft Excel date-time code",p:{year:{d:"is a number from 1900 or 1904 (depending on the workbook's date system) to 9999"},month:{d:"is a number from 1 to 12 representing the month of the year"},day:{d:"is a number from 1 to 31 representing the day of the month"}}},DATEDIF:{s:"Returns the number of days between two dates",p:{startDate:{d:"is a serial date number that represents the start date"},endDate:{d:"is a serial date number that represents the end date"},unit:{d:"is a string that specifies the unit of time to use"}},h:"Legacy"},DATESTRING:{s:"Returns NA.",p:{number:{d:"is a number that is ignored"}},h:"Legacy"},DATEVALUE:{s:"Converts a date in the form of text to a number that represents the date in Microsoft Excel date-time code",p:{dateText:{d:"is text that represents a date in a Microsoft Excel date format, between 1/1/1900 or 1/1/1904 (depending on the workbook's date system) and 12/31/9999"}}},DAY:{s:"Returns the day of the month, a number from 1 to 31.",p:{serialOrString:{d:"is a number in the date-time code used by Excel or text in time format, such as 16:48:00 or 4:48:00 PM"}}},DAYS:{s:"Returns the number of days between the two dates.",p:{endDate:{d:"start_date and end_date are the two dates between which you want to know the number of days"},startDate:{d:"start_date and end_date are the two dates between which you want to know the number of days"}}},DAYS360:{s:"Returns the number of days between two dates based on a 360-day year (twelve 30-day months)",p:{startDate:{d:"start_date and end_date are the two dates between which you want to know the number of days"},endDate:{d:"start_date and end_date are the two dates between which you want to know the number of days"},method:{d:"is a logical value specifying the calculation method: U.S. (NASD) = FALSE; European = TRUE.",v:!1}}},EDATE:{s:"Returns the serial number of the date that is the indicated number of months before or after the start date",p:{startDate:{d:"is a serial date number that represents the start date"},months:{d:"is the number of months before or after start_date"}}},EOMONTH:{s:"Returns the serial number of the last day of the month before or after a specified number of months",p:{startDate:{d:"is a serial date number that represents the start date"},months:{d:"is the number of months before or after the start_date"}}},HOUR:{s:"Returns the hour as a number from 0 (12:00 A.M.) to 23 (11:00 P.M.).",p:{serialOrString:{d:"is a number in the date-time code used by Excel or text in time format, such as 16:48:00 or 4:48:00 PM"}}},ISOWEEKNUM:{s:"Returns the ISO week number in the year for a given date",p:{serialOrString:{d:"is a number in the date-time code used by Excel or text in time format, such as 16:48:00 or 4:48:00 PM"}}},MINUTE:{s:"Returns the minute, a number from 0 to 59.",p:{serialOrString:{d:"is a number in the date-time code used by Excel or text in time format, such as 16:48:00 or 4:48:00 PM"}}},MONTH:{s:"Returns the month, a number from 1 (January) to 12 (December).",p:{serialOrString:{d:"is a number in the date-time code used by Excel"}}},NETWORKDAYS:{s:"Returns the number of whole workdays between two dates",p:{startDate:{d:"is a serial date number that represents the start date"},endDate:{d:"is a serial date number that represents the end date"},holidays:{d:"is an optional set of one or more serial date numbers to exclude from the working calendar, such as state and federal holidays and floating holidays",v:null}}},"NETWORKDAYS.INTL":{s:"Returns the number of whole workdays between two dates with custom weekend parameters",p:{startDate:{d:"is a serial date number that represents the start date"},endDate:{d:"is a serial date number that represents the end date"},weekend:{d:"is a number or string specifying when weekends occur",v:1},holidays:{d:"is an optional set of one or more serial date numbers to exclude from the working calendar, such as state and federal holidays and floating holidays",v:null}}},NOW:{s:"Returns the current date and time formatted as a date and time.",p:{}},SECOND:{s:"Returns the second, a number from 0 to 59.",p:{serialOrString:{d:"is a number in the date-time code used by Excel or text in time format, such as 16:48:23 or 4:48:47 PM"}}},TIME:{s:"Converts hours, minutes, and seconds given as numbers to an Excel serial number, formatted with a time format",p:{hour:{d:"is a number from 0 to 23 representing the hour"},minute:{d:"is a number from 0 to 59 representing the minute"},second:{d:"is a number from 0 to 59 representing the second"}}},TIMEVALUE:{s:"Converts a text time to an Excel serial number for a time, a number from 0 (12:00:00 AM) to 0.999988426 (11:59:59 PM). Format the number with a time format after entering the formula",p:{timeText:{d:"is a text string that gives a time in any one of the Excel time formats (date information in the string is ignored)"}}},TODAY:{s:"Returns the current date formatted as a date.",p:{}},WEEKDAY:{s:"Returns a number from 1 to 7 identifying the day of the week of a date.",p:{serialOrString:{d:"is a number that represents a date"},returnType:{d:"is a number: for Sunday=1 through Saturday=7, use 1; for Monday=1 through Sunday=7, use 2; for Monday=0 through Sunday=6, use 3",v:1}}},WEEKNUM:{s:"Returns the week number in the year",p:{serialOrString:{d:"is the date-time code used by Excel for date and time calculation"},returnType:{d:"is a number (1 or 2) that determines the type of the return value",v:1}}},WORKDAY:{s:"Returns the serial number of the date before or after a specified number of workdays",p:{startDate:{d:"is a serial date number that represents the start date"},days:{d:"is the number of nonweekend and non-holiday days before or after start_date"},holidays:{d:"is an optional array of one or more serial date numbers to exclude from the working calendar, such as state and federal holidays and floating holidays",v:null}}},"WORKDAY.INTL":{s:"Returns the serial number of the date before or after a specified number of workdays with custom weekend parameters",p:{startDate:{d:"is a serial date number that represents the start date"},days:{d:"is the number of nonweekend and non-holiday days before or after start_date"},weekend:{d:"is a number or string specifying when weekends occur",v:1},holidays:{d:"is an optional array of one or more serial date numbers to exclude from the working calendar, such as state and federal holidays and floating holidays",v:null}}},YEAR:{s:"Returns the year of a date, an integer in the range 1900 - 9999.",p:{serialOrString:{d:"is a number in the date-time code used by Excel"}}},YEARFRAC:{s:"Returns the year fraction representing the number of whole days between start_date and end_date",p:{startDate:{d:"is a serial date number that represents the start date"},endDate:{d:"is a serial date number that represents the end date"},basis:{d:"is the type of day count basis to use",v:0}}}};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";/**
|
|
2
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.5.0
|
|
3
|
+
*
|
|
4
|
+
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
|
+
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
|
+
*/Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"}),exports.getCrypto=async function(){return window.crypto};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";/**
|
|
2
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.5.0
|
|
3
|
+
*
|
|
4
|
+
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
|
+
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
|
+
*/Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var nr,x={},te={};function ke(){if(nr)return te;function S(a,h){return h===void 0&&(h=Object),h&&typeof h.getOwnPropertyDescriptors=="function"&&(a=h.create(null,h.getOwnPropertyDescriptors(a))),h&&typeof h.freeze=="function"?h.freeze(a):a}function c(a,h){return Object.prototype.hasOwnProperty.call(a,h)}nr=1;var A=S({allowfullscreen:!0,async:!0,autofocus:!0,autoplay:!0,checked:!0,controls:!0,default:!0,defer:!0,disabled:!0,formnovalidate:!0,hidden:!0,ismap:!0,itemscope:!0,loop:!0,multiple:!0,muted:!0,nomodule:!0,novalidate:!0,open:!0,playsinline:!0,readonly:!0,required:!0,reversed:!0,selected:!0}),_=S({area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0}),g=S({script:!1,style:!1,textarea:!0,title:!0});function m(a){return a===H.HTML}var H=S({HTML:"text/html",XML_APPLICATION:"application/xml",XML_TEXT:"text/xml",XML_XHTML_APPLICATION:"application/xhtml+xml",XML_SVG_IMAGE:"image/svg+xml"}),J=Object.keys(H).map(function(a){return H[a]}),Q=S({HTML:"http://www.w3.org/1999/xhtml",SVG:"http://www.w3.org/2000/svg",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/"});return te.assign=function(a,h){if(a===null||typeof a!="object")throw new TypeError("target is not an object");for(var p in h)c(h,p)&&(a[p]=h[p]);return a},te.find=function(a,h,p){if(p===void 0&&(p=Array.prototype),a&&typeof p.find=="function")return p.find.call(a,h);for(var oe=0;oe<a.length;oe++)if(c(a,oe)){var P=a[oe];if(h.call(void 0,P,oe,a))return P}},te.freeze=S,te.HTML_BOOLEAN_ATTRIBUTES=A,te.HTML_RAW_TEXT_ELEMENTS=g,te.HTML_VOID_ELEMENTS=_,te.hasDefaultHTMLNamespace=function(a){return m(a)||a===H.XML_XHTML_APPLICATION},te.hasOwn=c,te.isHTMLBooleanAttribute=function(a){return c(A,a.toLowerCase())},te.isHTMLRawTextElement=function(a){var h=a.toLowerCase();return c(g,h)&&!g[h]},te.isHTMLEscapableRawTextElement=function(a){var h=a.toLowerCase();return c(g,h)&&g[h]},te.isHTMLMimeType=m,te.isHTMLVoidElement=function(a){return c(_,a.toLowerCase())},te.isValidMimeType=function(a){return J.indexOf(a)>-1},te.MIME_TYPE=H,te.NAMESPACE=Q,te}var or,Pe={};function Xe(){if(or)return Pe;function S(a,h){a.prototype=Object.create(Error.prototype,{constructor:{value:a},name:{value:a.name,enumerable:!0,writable:h}})}or=1;var c=ke().freeze({Error:"Error",IndexSizeError:"IndexSizeError",DomstringSizeError:"DomstringSizeError",HierarchyRequestError:"HierarchyRequestError",WrongDocumentError:"WrongDocumentError",InvalidCharacterError:"InvalidCharacterError",NoDataAllowedError:"NoDataAllowedError",NoModificationAllowedError:"NoModificationAllowedError",NotFoundError:"NotFoundError",NotSupportedError:"NotSupportedError",InUseAttributeError:"InUseAttributeError",InvalidStateError:"InvalidStateError",SyntaxError:"SyntaxError",InvalidModificationError:"InvalidModificationError",NamespaceError:"NamespaceError",InvalidAccessError:"InvalidAccessError",ValidationError:"ValidationError",TypeMismatchError:"TypeMismatchError",SecurityError:"SecurityError",NetworkError:"NetworkError",AbortError:"AbortError",URLMismatchError:"URLMismatchError",QuotaExceededError:"QuotaExceededError",TimeoutError:"TimeoutError",InvalidNodeTypeError:"InvalidNodeTypeError",DataCloneError:"DataCloneError",EncodingError:"EncodingError",NotReadableError:"NotReadableError",UnknownError:"UnknownError",ConstraintError:"ConstraintError",DataError:"DataError",TransactionInactiveError:"TransactionInactiveError",ReadOnlyError:"ReadOnlyError",VersionError:"VersionError",OperationError:"OperationError",NotAllowedError:"NotAllowedError",OptOutError:"OptOutError"}),A=Object.keys(c);function _(a){return typeof a=="number"&&a>=1&&a<=25}function g(a,h){var p;_(a)?(this.name=A[a],this.message=h||""):(this.message=a,this.name=typeof(p=h)=="string"&&p.substring(p.length-c.Error.length)===c.Error?h:c.Error),Error.captureStackTrace&&Error.captureStackTrace(this,g)}S(g,!0),Object.defineProperties(g.prototype,{code:{enumerable:!0,get:function(){var a=A.indexOf(this.name);return _(a)?a:0}}});for(var m={INDEX_SIZE_ERR:1,DOMSTRING_SIZE_ERR:2,HIERARCHY_REQUEST_ERR:3,WRONG_DOCUMENT_ERR:4,INVALID_CHARACTER_ERR:5,NO_DATA_ALLOWED_ERR:6,NO_MODIFICATION_ALLOWED_ERR:7,NOT_FOUND_ERR:8,NOT_SUPPORTED_ERR:9,INUSE_ATTRIBUTE_ERR:10,INVALID_STATE_ERR:11,SYNTAX_ERR:12,INVALID_MODIFICATION_ERR:13,NAMESPACE_ERR:14,INVALID_ACCESS_ERR:15,VALIDATION_ERR:16,TYPE_MISMATCH_ERR:17,SECURITY_ERR:18,NETWORK_ERR:19,ABORT_ERR:20,URL_MISMATCH_ERR:21,QUOTA_EXCEEDED_ERR:22,TIMEOUT_ERR:23,INVALID_NODE_TYPE_ERR:24,DATA_CLONE_ERR:25},H=Object.entries(m),J=0;J<H.length;J++)g[H[J][0]]=H[J][1];function Q(a,h){this.message=a,this.locator=h,Error.captureStackTrace&&Error.captureStackTrace(this,Q)}return S(Q),Pe.DOMException=g,Pe.DOMExceptionName=c,Pe.ExceptionCode=m,Pe.ParseError=Q,Pe}var ar,ir,$={},O={};function fr(){if(ar)return O;function S(k){try{typeof k!="function"&&(k=RegExp);var V=new k("𝌆","u").exec("𝌆");return!!V&&V[0].length===2}catch{}return!1}ar=1;var c=S();function A(k){if(k.source[0]!=="[")throw new Error(k+" can not be used with chars");return k.source.slice(1,k.source.lastIndexOf("]"))}function _(k,V){if(k.source[0]!=="[")throw new Error("/"+k.source+"/ can not be used with chars_without");if(!V||typeof V!="string")throw new Error(JSON.stringify(V)+" is not a valid search");if(k.source.indexOf(V)===-1)throw new Error('"'+V+'" is not is /'+k.source+"/");if(V==="-"&&k.source.indexOf(V)!==1)throw new Error('"'+V+'" is not at the first postion of /'+k.source+"/");return new RegExp(k.source.replace(V,""),c?"u":"")}function g(k){var V=this;return new RegExp(Array.prototype.slice.call(arguments).map(function(se){var be=typeof se=="string";if(be&&V===void 0&&se==="|")throw new Error("use regg instead of reg to wrap expressions with `|`!");return be?se:se.source}).join(""),c?"mu":"m")}function m(k){if(arguments.length===0)throw new Error("no parameters provided");return g.apply(m,["(?:"].concat(Array.prototype.slice.call(arguments),[")"]))}var H=/[-\x09\x0A\x0D\x20-\x2C\x2E-\uD7FF\uE000-\uFFFD]/;c&&(H=g("[",A(H),"\\u{10000}-\\u{10FFFF}","]"));var J=/[\x20\x09\x0D\x0A]/,Q=A(J),a=g(J,"+"),h=g(J,"*"),p=/[:_a-zA-Z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/;c&&(p=g("[",A(p),"\\u{10000}-\\u{10FFFF}","]"));var oe=g("[",A(p),A(/[-.0-9\xB7]/),A(/[\u0300-\u036F\u203F-\u2040]/),"]"),P=g(p,oe,"*"),W=g(oe,"+"),me=g("&",P,";"),ce=m(/&#[0-9]+;|&#x[0-9a-fA-F]+;/),le=m(me,"|",ce),ae=g("%",P,";"),l=m(g('"',m(/[^%&"]/,"|",ae,"|",le),"*",'"'),"|",g("'",m(/[^%&']/,"|",ae,"|",le),"*","'")),y=m('"',m(/[^<&"]/,"|",le),"*",'"',"|","'",m(/[^<&']/,"|",le),"*","'"),o=g(_(p,":"),_(oe,":"),"*"),i=g(o,m(":",o),"?"),d=g("^",i,"$"),N=g("(",i,")"),T=m(/"[^"]*"|'[^']*'/),u=g(/^<\?/,"(",P,")",m(a,"(",H,"*?)"),"?",/\?>/),D=/[\x20\x0D\x0Aa-zA-Z0-9-'()+,./:=?;!*#@$_%]/,E=m('"',D,'*"',"|","'",_(D,"'"),"*'"),w="<!--",I=g(w,m(_(H,"-"),"|",g("-",_(H,"-"))),"*","-->"),f="#PCDATA",F=m(g(/\(/,h,f,m(h,/\|/,h,i),"*",h,/\)\*/),"|",g(/\(/,h,f,h,/\)/)),C=m("EMPTY","|","ANY","|",F,"|",g(/\([^>]+\)/,/[?*+]?/)),ne=g("<!ELEMENT",a,m(i,"|",ae),a,m(C,"|",ae),h,">"),M=g("NOTATION",a,/\(/,h,P,m(h,/\|/,h,P),"*",h,/\)/),Ee=g(/\(/,h,W,m(h,/\|/,h,W),"*",h,/\)/),j=m(M,"|",Ee),q=m(/CDATA|ID|IDREF|IDREFS|ENTITY|ENTITIES|NMTOKEN|NMTOKENS/,"|",j),ee=m(/#REQUIRED|#IMPLIED/,"|",m(m("#FIXED",a),"?",y)),G=g("<!ATTLIST",a,P,m(a,P,a,q,a,ee),"*",h,">"),Y="about:legacy-compat",ve=m('"'+Y+'"',"|","'"+Y+"'"),Ne="SYSTEM",de="PUBLIC",v=m(m(Ne,a,T),"|",m(de,a,E,a,T)),Te=g("^",m(m(Ne,a,"(?<SystemLiteralOnly>",T,")"),"|",m(de,a,"(?<PubidLiteral>",E,")",a,"(?<SystemLiteral>",T,")"))),fe=m(a,"NDATA",a,P),ie="<!ENTITY",Re=g(ie,a,P,a,m(l,"|",m(v,fe,"?")),h,">"),ye=m(l,"|",v),De=m(Re,"|",g(ie,a,"%",a,P,a,ye,h,">")),ue=g(de,a,E),X=g("<!NOTATION",a,P,a,m(v,"|",ue),h,">"),ge=g(h,"=",h),Se=/1[.]\d+/,_e=g(a,"version",ge,m("'",Se,"'","|",'"',Se,'"')),Ie=/[A-Za-z][-A-Za-z0-9._]*/,Ae=g(/^<\?xml/,_e,m(a,"encoding",ge,m('"',Ie,'"',"|","'",Ie,"'")),"?",m(a,"standalone",ge,m("'",m("yes","|","no"),"'","|",'"',m("yes","|","no"),'"')),"?",h,/\?>/),L=g(H,"*?",/\]\]>/),K=g(/<!\[CDATA\[/,L);return O.chars=A,O.chars_without=_,O.detectUnicodeSupport=S,O.reg=g,O.regg=m,O.ABOUT_LEGACY_COMPAT=Y,O.ABOUT_LEGACY_COMPAT_SystemLiteral=ve,O.AttlistDecl=G,O.CDATA_START="<![CDATA[",O.CDATA_END="]]>",O.CDSect=K,O.Char=H,O.Comment=I,O.COMMENT_START=w,O.COMMENT_END="-->",O.DOCTYPE_DECL_START="<!DOCTYPE",O.elementdecl=ne,O.EntityDecl=De,O.EntityValue=l,O.ExternalID=v,O.ExternalID_match=Te,O.Name=P,O.NotationDecl=X,O.Reference=le,O.PEReference=ae,O.PI=u,O.PUBLIC=de,O.PubidLiteral=E,O.QName=i,O.QName_exact=d,O.QName_group=N,O.S=a,O.SChar_s=Q,O.S_OPT=h,O.SYSTEM=Ne,O.SystemLiteral=T,O.UNICODE_REPLACEMENT_CHARACTER="�",O.UNICODE_SUPPORT=c,O.XMLDecl=Ae,O}function hr(){if(ir)return $;ir=1;var S=ke(),c=S.find,A=S.hasDefaultHTMLNamespace,_=S.hasOwn,g=S.isHTMLMimeType,m=S.isHTMLRawTextElement,H=S.isHTMLVoidElement,J=S.MIME_TYPE,Q=S.NAMESPACE,a=Symbol(),h=Xe(),p=h.DOMException,oe=h.DOMExceptionName,P=fr();function W(e){if(e!==a)throw new TypeError("Illegal constructor")}function me(e){return e!==""}function ce(e,r){return _(e,r)||(e[r]=!0),e}function le(e){if(!e)return[];var r,t=(r=e)?r.split(/[\t\n\f\r ]+/).filter(me):[];return Object.keys(t.reduce(ce,{}))}function ae(e){if(!P.QName_exact.test(e))throw new p(p.INVALID_CHARACTER_ERR,'invalid character in qualified name "'+e+'"')}function l(e,r){ae(r),e=e||null;var t=null,n=r;if(r.indexOf(":")>=0){var s=r.split(":");t=s[0],n=s[1]}if(t!==null&&e===null)throw new p(p.NAMESPACE_ERR,"prefix is non-null and namespace is null");if(t==="xml"&&e!==S.NAMESPACE.XML)throw new p(p.NAMESPACE_ERR,'prefix is "xml" and namespace is not the XML namespace');if((t==="xmlns"||r==="xmlns")&&e!==S.NAMESPACE.XMLNS)throw new p(p.NAMESPACE_ERR,'either qualifiedName or prefix is "xmlns" and namespace is not the XMLNS namespace');if(e===S.NAMESPACE.XMLNS&&t!=="xmlns"&&r!=="xmlns")throw new p(p.NAMESPACE_ERR,'namespace is the XMLNS namespace and neither qualifiedName nor prefix is "xmlns"');return[e,t,n]}function y(e,r){for(var t in e)_(e,t)&&(r[t]=e[t])}function o(e,r){var t=e.prototype;if(!(t instanceof r)){let n=function(){};n.prototype=r.prototype,y(t,n=new n),e.prototype=t=n}t.constructor!=e&&(typeof e!="function"&&console.error("unknown Class:"+e),t.constructor=e)}var i={},d=i.ELEMENT_NODE=1,N=i.ATTRIBUTE_NODE=2,T=i.TEXT_NODE=3,u=i.CDATA_SECTION_NODE=4,D=i.ENTITY_REFERENCE_NODE=5,E=i.ENTITY_NODE=6,w=i.PROCESSING_INSTRUCTION_NODE=7,I=i.COMMENT_NODE=8,f=i.DOCUMENT_NODE=9,F=i.DOCUMENT_TYPE_NODE=10,C=i.DOCUMENT_FRAGMENT_NODE=11,ne=i.NOTATION_NODE=12,M=S.freeze({DOCUMENT_POSITION_DISCONNECTED:1,DOCUMENT_POSITION_PRECEDING:2,DOCUMENT_POSITION_FOLLOWING:4,DOCUMENT_POSITION_CONTAINS:8,DOCUMENT_POSITION_CONTAINED_BY:16,DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC:32});function Ee(e,r){if(r.length<e.length)return Ee(r,e);var t=null;for(var n in e){if(e[n]!==r[n])return t;t=e[n]}return t}function j(e){return e.guid||(e.guid=Math.random()),e.guid}function q(){}function ee(e,r){this._node=e,this._refresh=r,G(this)}function G(e){var r=e._node._inc||e._node.ownerDocument._inc;if(e._inc!==r){var t=e._refresh(e._node);if(rr(e,"length",t.length),!e.$$length||t.length<e.$$length)for(var n=t.length;n in e;n++)_(e,n)&&delete e[n];y(t,e),e._inc=r}}function Y(){}function ve(e,r){for(var t=0;t<e.length;){if(e[t]===r)return t;t++}}function Ne(e,r,t){var n=ve(r,t);if(n>=0){for(var s=r.length-1;n<=s;)r[n]=r[++n];if(r.length=s,e){var b=e.ownerDocument;b&&Re(b,e,t),t.ownerElement=null}}}function de(){}function v(e){W(e)}function Te(e){return(e=="<"?"<":e==">"&&">")||e=="&"&&"&"||e=='"'&&"""||"&#"+e.charCodeAt()+";"}function fe(e,r){if(r(e))return!0;if(e=e.firstChild)do if(fe(e,r))return!0;while(e=e.nextSibling)}function ie(e,r){W(e);var t=r||{};this.ownerDocument=this,this.contentType=t.contentType||J.XML_APPLICATION,this.type=g(this.contentType)?"html":"xml"}function Re(e,r,t,n){e&&e._inc++,t.namespaceURI===Q.XMLNS&&delete r._nsMap[t.prefix?t.localName:""]}function ye(e,r,t){if(e&&e._inc){e._inc++;var n=r.childNodes;if(t&&!t.nextSibling)n[n.length++]=t;else{for(var s=r.firstChild,b=0;s;)n[b++]=s,s=s.nextSibling;n.length=b,delete n[n.length]}}}function De(e,r){if(e!==r.parentNode)throw new p(p.NOT_FOUND_ERR,"child's parent is not parent");var t=r.previousSibling,n=r.nextSibling;return t?t.nextSibling=n:e.firstChild=n,n?n.previousSibling=t:e.lastChild=t,ye(e.ownerDocument,e),r.parentNode=null,r.previousSibling=null,r.nextSibling=null,r}function ue(e){return e&&e.nodeType===v.DOCUMENT_TYPE_NODE}function X(e){return e&&e.nodeType===v.ELEMENT_NODE}function ge(e){return e&&e.nodeType===v.TEXT_NODE}function Se(e,r){var t=e.childNodes||[];if(c(t,X)||ue(r))return!1;var n=c(t,ue);return!(r&&n&&t.indexOf(n)>t.indexOf(r))}function _e(e,r){var t=e.childNodes||[];if(c(t,function(s){return X(s)&&s!==r}))return!1;var n=c(t,ue);return!(r&&n&&t.indexOf(n)>t.indexOf(r))}function Ie(e,r,t){var n=e.childNodes||[],s=r.childNodes||[];if(r.nodeType===v.DOCUMENT_FRAGMENT_NODE){var b=s.filter(X);if(b.length>1||c(s,ge))throw new p(p.HIERARCHY_REQUEST_ERR,"More than one element or text in fragment");if(b.length===1&&!Se(e,t))throw new p(p.HIERARCHY_REQUEST_ERR,"Element in fragment can not be inserted before doctype")}if(X(r)&&!Se(e,t))throw new p(p.HIERARCHY_REQUEST_ERR,"Only one element can be added and only after doctype");if(ue(r)){if(c(n,ue))throw new p(p.HIERARCHY_REQUEST_ERR,"Only one doctype is allowed");var U=c(n,X);if(t&&n.indexOf(U)<n.indexOf(t))throw new p(p.HIERARCHY_REQUEST_ERR,"Doctype can only be inserted before an element");if(!t&&U)throw new p(p.HIERARCHY_REQUEST_ERR,"Doctype can not be appended since element is present")}}function Ae(e,r,t){var n=e.childNodes||[],s=r.childNodes||[];if(r.nodeType===v.DOCUMENT_FRAGMENT_NODE){var b=s.filter(X);if(b.length>1||c(s,ge))throw new p(p.HIERARCHY_REQUEST_ERR,"More than one element or text in fragment");if(b.length===1&&!_e(e,t))throw new p(p.HIERARCHY_REQUEST_ERR,"Element in fragment can not be inserted before doctype")}if(X(r)&&!_e(e,t))throw new p(p.HIERARCHY_REQUEST_ERR,"Only one element can be added and only after doctype");if(ue(r)){if(c(n,function(R){return ue(R)&&R!==t}))throw new p(p.HIERARCHY_REQUEST_ERR,"Only one doctype is allowed");var U=c(n,X);if(t&&n.indexOf(U)<n.indexOf(t))throw new p(p.HIERARCHY_REQUEST_ERR,"Doctype can only be inserted before an element")}}function L(e,r,t,n){(function(B,Z,z){if(!(pe=B)||pe.nodeType!==v.DOCUMENT_NODE&&pe.nodeType!==v.DOCUMENT_FRAGMENT_NODE&&pe.nodeType!==v.ELEMENT_NODE)throw new p(p.HIERARCHY_REQUEST_ERR,"Unexpected parent node type "+B.nodeType);var pe;if(z&&z.parentNode!==B)throw new p(p.NOT_FOUND_ERR,"child not in parent");if(!function(re){return re&&(re.nodeType===v.CDATA_SECTION_NODE||re.nodeType===v.COMMENT_NODE||re.nodeType===v.DOCUMENT_FRAGMENT_NODE||re.nodeType===v.DOCUMENT_TYPE_NODE||re.nodeType===v.ELEMENT_NODE||re.nodeType===v.PROCESSING_INSTRUCTION_NODE||re.nodeType===v.TEXT_NODE)}(Z)||ue(Z)&&B.nodeType!==v.DOCUMENT_NODE)throw new p(p.HIERARCHY_REQUEST_ERR,"Unexpected node type "+Z.nodeType+" for parent node type "+B.nodeType)})(e,r,t),e.nodeType===v.DOCUMENT_NODE&&(n||Ie)(e,r,t);var s=r.parentNode;if(s&&s.removeChild(r),r.nodeType===C){var b=r.firstChild;if(b==null)return r;var U=r.lastChild}else b=U=r;var R=t?t.previousSibling:e.lastChild;b.previousSibling=R,U.nextSibling=t,R?R.nextSibling=b:e.firstChild=b,t==null?e.lastChild=U:t.previousSibling=U;do b.parentNode=e;while(b!==U&&(b=b.nextSibling));return ye(e.ownerDocument||e,e,r),r.nodeType==C&&(r.firstChild=r.lastChild=null),r}function K(e){W(e),this._nsMap=Object.create(null)}function k(e){W(e),this.namespaceURI=null,this.prefix=null,this.ownerElement=null}function V(e){W(e)}function se(e){W(e)}function be(e){W(e)}function xe(e){W(e)}function Be(e){W(e)}function je(e){W(e)}function ze(e){W(e)}function Fe(e){W(e)}function He(e){W(e)}function Ge(e){W(e)}function $e(){}function Je(e){var r=[],t=this.nodeType===f&&this.documentElement||this,n=t.prefix,s=t.namespaceURI;if(s&&n==null&&(n=t.lookupPrefix(s))==null)var b=[{namespace:s,prefix:null}];return Le(this,r,e,b),r.join("")}function Ke(e,r,t){var n=e.prefix||"",s=e.namespaceURI;if(!s||n==="xml"&&s===Q.XML||s===Q.XMLNS)return!1;for(var b=t.length;b--;){var U=t[b];if(U.prefix===n)return U.namespace!==s}return!0}function Qe(e,r,t){e.push(" ",r,'="',t.replace(/[<>&"\t\n\r]/g,Te),'"')}function Le(e,r,t,n){n||(n=[]);var s=(e.nodeType===f?e:e.ownerDocument).type==="html";if(t){if(!(e=t(e)))return;if(typeof e=="string")return void r.push(e)}switch(e.nodeType){case d:var b=e.attributes,U=b.length,R=e.firstChild,B=e.tagName,Z=B;if(!s&&!e.prefix&&e.namespaceURI){for(var z,pe=0;pe<b.length;pe++)if(b.item(pe).name==="xmlns"){z=b.item(pe).value;break}if(!z){for(var re=n.length-1;re>=0;re--)if((he=n[re]).prefix===""&&he.namespace===e.namespaceURI){z=he.namespace;break}}if(z!==e.namespaceURI)for(re=n.length-1;re>=0;re--){var he;if((he=n[re]).namespace===e.namespaceURI){he.prefix&&(Z=he.prefix+":"+B);break}}}r.push("<",Z);for(var Oe=0;Oe<U;Oe++)(we=b.item(Oe)).prefix=="xmlns"?n.push({prefix:we.localName,namespace:we.value}):we.nodeName=="xmlns"&&n.push({prefix:"",namespace:we.value});for(Oe=0;Oe<U;Oe++){var we,Me,Ye;Ke(we=b.item(Oe),0,n)&&(Qe(r,(Me=we.prefix||"")?"xmlns:"+Me:"xmlns",Ye=we.namespaceURI),n.push({prefix:Me,namespace:Ye})),Le(we,r,t,n)}B===Z&&Ke(e,0,n)&&(Qe(r,(Me=e.prefix||"")?"xmlns:"+Me:"xmlns",Ye=e.namespaceURI),n.push({prefix:Me,namespace:Ye}));var Ze=!R;if(Ze&&(s||e.namespaceURI===Q.HTML)&&(Ze=H(B)),Ze)r.push("/>");else{if(r.push(">"),s&&m(B))for(;R;)R.data?r.push(R.data):Le(R,r,t,n.slice()),R=R.nextSibling;else for(;R;)Le(R,r,t,n.slice()),R=R.nextSibling;r.push("</",Z,">")}return;case f:case C:for(R=e.firstChild;R;)Le(R,r,t,n.slice()),R=R.nextSibling;return;case N:return Qe(r,e.name,e.value);case T:return r.push(e.data.replace(/[<&>]/g,Te));case u:return r.push(P.CDATA_START,e.data,P.CDATA_END);case I:return r.push(P.COMMENT_START,e.data,P.COMMENT_END);case F:var tr=e.publicId,qe=e.systemId;return r.push(P.DOCTYPE_DECL_START," ",e.name),tr?(r.push(" ",P.PUBLIC," ",tr),qe&&qe!=="."&&r.push(" ",qe)):qe&&qe!=="."&&r.push(" ",P.SYSTEM," ",qe),e.internalSubset&&r.push(" [",e.internalSubset,"]"),void r.push(">");case w:return r.push("<?",e.target," ",e.data,"?>");case D:return r.push("&",e.nodeName,";");default:r.push("??",e.nodeName)}}function er(e,r,t){var n;switch(r.nodeType){case d:(n=r.cloneNode(!1)).ownerDocument=e;case C:break;case N:t=!0}if(n||(n=r.cloneNode(!1)),n.ownerDocument=e,n.parentNode=null,t)for(var s=r.firstChild;s;)n.appendChild(er(e,s,t)),s=s.nextSibling;return n}function We(e,r,t){var n=new r.constructor(a);for(var s in r)if(_(r,s)){var b=r[s];typeof b!="object"&&b!=n[s]&&(n[s]=b)}switch(r.childNodes&&(n.childNodes=new q),n.ownerDocument=e,n.nodeType){case d:var U=r.attributes,R=n.attributes=new Y,B=U.length;R._ownerElement=n;for(var Z=0;Z<B;Z++)n.setAttributeNode(We(e,U.item(Z),!0));break;case N:t=!0}if(t)for(var z=r.firstChild;z;)n.appendChild(We(e,z,t)),z=z.nextSibling;return n}function rr(e,r,t){e[r]=t}q.prototype={length:0,item:function(e){return e>=0&&e<this.length?this[e]:null},toString:function(e){for(var r=[],t=0;t<this.length;t++)Le(this[t],r,e);return r.join("")},filter:function(e){return Array.prototype.filter.call(this,e)},indexOf:function(e){return Array.prototype.indexOf.call(this,e)}},q.prototype[Symbol.iterator]=function(){var e=this,r=0;return{next:function(){return r<e.length?{value:e[r++],done:!1}:{done:!0}},return:function(){return{done:!0}}}},ee.prototype.item=function(e){return G(this),this[e]||null},o(ee,q),Y.prototype={length:0,item:q.prototype.item,getNamedItem:function(e){this._ownerElement&&this._ownerElement._isInHTMLDocumentAndNamespace()&&(e=e.toLowerCase());for(var r=0;r<this.length;){var t=this[r];if(t.nodeName===e)return t;r++}return null},setNamedItem:function(e){var r=e.ownerElement;if(r&&r!==this._ownerElement)throw new p(p.INUSE_ATTRIBUTE_ERR);var t=this.getNamedItemNS(e.namespaceURI,e.localName);return t===e?e:(function(n,s,b,U){if(U?s[ve(s,U)]=b:(s[s.length]=b,s.length++),n){b.ownerElement=n;var R=n.ownerDocument;R&&(U&&Re(R,n,U),Z=n,z=b,(B=R)&&B._inc++,z.namespaceURI===Q.XMLNS&&(Z._nsMap[z.prefix?z.localName:""]=z.value))}var B,Z,z}(this._ownerElement,this,e,t),t)},setNamedItemNS:function(e){return this.setNamedItem(e)},removeNamedItem:function(e){var r=this.getNamedItem(e);if(!r)throw new p(p.NOT_FOUND_ERR,e);return Ne(this._ownerElement,this,r),r},removeNamedItemNS:function(e,r){var t=this.getNamedItemNS(e,r);if(!t)throw new p(p.NOT_FOUND_ERR,e?e+" : "+r:r);return Ne(this._ownerElement,this,t),t},getNamedItemNS:function(e,r){e||(e=null);for(var t=0;t<this.length;){var n=this[t];if(n.localName===r&&n.namespaceURI===e)return n;t++}return null}},Y.prototype[Symbol.iterator]=function(){var e=this,r=0;return{next:function(){return r<e.length?{value:e[r++],done:!1}:{done:!0}},return:function(){return{done:!0}}}},de.prototype={hasFeature:function(e,r){return!0},createDocument:function(e,r,t){var n=J.XML_APPLICATION;e===Q.HTML?n=J.XML_XHTML_APPLICATION:e===Q.SVG&&(n=J.XML_SVG_IMAGE);var s=new ie(a,{contentType:n});if(s.implementation=this,s.childNodes=new q,s.doctype=t||null,t&&s.appendChild(t),r){var b=s.createElementNS(e,r);s.appendChild(b)}return s},createDocumentType:function(e,r,t,n){ae(e);var s=new Be(a);return s.name=e,s.nodeName=e,s.publicId=r||"",s.systemId=t||"",s.internalSubset=n||"",s.childNodes=new q,s},createHTMLDocument:function(e){var r=new ie(a,{contentType:J.HTML});if(r.implementation=this,r.childNodes=new q,e!==!1){r.doctype=this.createDocumentType("html"),r.doctype.ownerDocument=r,r.appendChild(r.doctype);var t=r.createElement("html");r.appendChild(t);var n=r.createElement("head");if(t.appendChild(n),typeof e=="string"){var s=r.createElement("title");s.appendChild(r.createTextNode(e)),n.appendChild(s)}t.appendChild(r.createElement("body"))}return r}},v.prototype={firstChild:null,lastChild:null,previousSibling:null,nextSibling:null,parentNode:null,get parentElement(){return this.parentNode&&this.parentNode.nodeType===this.ELEMENT_NODE?this.parentNode:null},childNodes:null,ownerDocument:null,nodeValue:null,namespaceURI:null,prefix:null,localName:null,baseURI:"about:blank",get isConnected(){var e=this.getRootNode();return e&&e.nodeType===e.DOCUMENT_NODE},contains:function(e){if(!e)return!1;var r=e;do{if(this===r)return!0;r=e.parentNode}while(r);return!1},getRootNode:function(e){var r=this;do{if(!r.parentNode)return r;r=r.parentNode}while(r)},isEqualNode:function(e){if(!e||this.nodeType!==e.nodeType)return!1;switch(this.nodeType){case this.DOCUMENT_TYPE_NODE:if(this.name!==e.name||this.publicId!==e.publicId||this.systemId!==e.systemId)return!1;break;case this.ELEMENT_NODE:if(this.namespaceURI!==e.namespaceURI||this.prefix!==e.prefix||this.localName!==e.localName||this.attributes.length!==e.attributes.length)return!1;for(var r=0;r<this.attributes.length;r++){var t=this.attributes.item(r);if(!t.isEqualNode(e.getAttributeNodeNS(t.namespaceURI,t.localName)))return!1}break;case this.ATTRIBUTE_NODE:if(this.namespaceURI!==e.namespaceURI||this.localName!==e.localName||this.value!==e.value)return!1;break;case this.PROCESSING_INSTRUCTION_NODE:if(this.target!==e.target||this.data!==e.data)return!1;break;case this.TEXT_NODE:case this.COMMENT_NODE:if(this.data!==e.data)return!1}if(this.childNodes.length!==e.childNodes.length)return!1;for(r=0;r<this.childNodes.length;r++)if(!this.childNodes[r].isEqualNode(e.childNodes[r]))return!1;return!0},isSameNode:function(e){return this===e},insertBefore:function(e,r){return L(this,e,r)},replaceChild:function(e,r){L(this,e,r,Ae),r&&this.removeChild(r)},removeChild:function(e){return De(this,e)},appendChild:function(e){return this.insertBefore(e,null)},hasChildNodes:function(){return this.firstChild!=null},cloneNode:function(e){return We(this.ownerDocument||this,this,e)},normalize:function(){for(var e=this.firstChild;e;){var r=e.nextSibling;r&&r.nodeType==T&&e.nodeType==T?(this.removeChild(r),e.appendData(r.data)):(e.normalize(),e=r)}},isSupported:function(e,r){return this.ownerDocument.implementation.hasFeature(e,r)},lookupPrefix:function(e){for(var r=this;r;){var t=r._nsMap;if(t){for(var n in t)if(_(t,n)&&t[n]===e)return n}r=r.nodeType==N?r.ownerDocument:r.parentNode}return null},lookupNamespaceURI:function(e){for(var r=this;r;){var t=r._nsMap;if(t&&_(t,e))return t[e];r=r.nodeType==N?r.ownerDocument:r.parentNode}return null},isDefaultNamespace:function(e){return this.lookupPrefix(e)==null},compareDocumentPosition:function(e){if(this===e)return 0;var r=e,t=this,n=null,s=null;if(r instanceof k&&(r=(n=r).ownerElement),t instanceof k&&(t=(s=t).ownerElement,n&&r&&t===r))for(var b,U=0;b=t.attributes[U];U++){if(b===n)return M.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC+M.DOCUMENT_POSITION_PRECEDING;if(b===s)return M.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC+M.DOCUMENT_POSITION_FOLLOWING}if(!r||!t||t.ownerDocument!==r.ownerDocument)return M.DOCUMENT_POSITION_DISCONNECTED+M.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC+(j(t.ownerDocument)>j(r.ownerDocument)?M.DOCUMENT_POSITION_FOLLOWING:M.DOCUMENT_POSITION_PRECEDING);if(s&&r===t)return M.DOCUMENT_POSITION_CONTAINS+M.DOCUMENT_POSITION_PRECEDING;if(n&&r===t)return M.DOCUMENT_POSITION_CONTAINED_BY+M.DOCUMENT_POSITION_FOLLOWING;for(var R=[],B=r.parentNode;B;){if(!s&&B===t)return M.DOCUMENT_POSITION_CONTAINED_BY+M.DOCUMENT_POSITION_FOLLOWING;R.push(B),B=B.parentNode}R.reverse();for(var Z=[],z=t.parentNode;z;){if(!n&&z===r)return M.DOCUMENT_POSITION_CONTAINS+M.DOCUMENT_POSITION_PRECEDING;Z.push(z),z=z.parentNode}Z.reverse();var pe=Ee(R,Z);for(var re in pe.childNodes){var he=pe.childNodes[re];if(he===t)return M.DOCUMENT_POSITION_FOLLOWING;if(he===r)return M.DOCUMENT_POSITION_PRECEDING;if(Z.indexOf(he)>=0)return M.DOCUMENT_POSITION_FOLLOWING;if(R.indexOf(he)>=0)return M.DOCUMENT_POSITION_PRECEDING}return 0}},y(i,v),y(i,v.prototype),y(M,v),y(M,v.prototype),ie.prototype={implementation:null,nodeName:"#document",nodeType:f,doctype:null,documentElement:null,_inc:1,insertBefore:function(e,r){if(e.nodeType===C){for(var t=e.firstChild;t;){var n=t.nextSibling;this.insertBefore(t,r),t=n}return e}return L(this,e,r),e.ownerDocument=this,this.documentElement===null&&e.nodeType===d&&(this.documentElement=e),e},removeChild:function(e){var r=De(this,e);return r===this.documentElement&&(this.documentElement=null),r},replaceChild:function(e,r){L(this,e,r,Ae),e.ownerDocument=this,r&&this.removeChild(r),X(e)&&(this.documentElement=e)},importNode:function(e,r){return er(this,e,r)},getElementById:function(e){var r=null;return fe(this.documentElement,function(t){if(t.nodeType==d&&t.getAttribute("id")==e)return r=t,!0}),r},createElement:function(e){var r=new K(a);return r.ownerDocument=this,this.type==="html"&&(e=e.toLowerCase()),A(this.contentType)&&(r.namespaceURI=Q.HTML),r.nodeName=e,r.tagName=e,r.localName=e,r.childNodes=new q,(r.attributes=new Y)._ownerElement=r,r},createDocumentFragment:function(){var e=new He(a);return e.ownerDocument=this,e.childNodes=new q,e},createTextNode:function(e){var r=new se(a);return r.ownerDocument=this,r.childNodes=new q,r.appendData(e),r},createComment:function(e){var r=new be(a);return r.ownerDocument=this,r.childNodes=new q,r.appendData(e),r},createCDATASection:function(e){var r=new xe(a);return r.ownerDocument=this,r.childNodes=new q,r.appendData(e),r},createProcessingInstruction:function(e,r){var t=new Ge(a);return t.ownerDocument=this,t.childNodes=new q,t.nodeName=t.target=e,t.nodeValue=t.data=r,t},createAttribute:function(e){if(!P.QName_exact.test(e))throw new p(p.INVALID_CHARACTER_ERR,'invalid character in name "'+e+'"');return this.type==="html"&&(e=e.toLowerCase()),this._createAttribute(e)},_createAttribute:function(e){var r=new k(a);return r.ownerDocument=this,r.childNodes=new q,r.name=e,r.nodeName=e,r.localName=e,r.specified=!0,r},createEntityReference:function(e){if(!P.Name.test(e))throw new p(p.INVALID_CHARACTER_ERR,'not a valid xml name "'+e+'"');if(this.type==="html")throw new p("document is an html document",oe.NotSupportedError);var r=new Fe(a);return r.ownerDocument=this,r.childNodes=new q,r.nodeName=e,r},createElementNS:function(e,r){var t=l(e,r),n=new K(a),s=n.attributes=new Y;return n.childNodes=new q,n.ownerDocument=this,n.nodeName=r,n.tagName=r,n.namespaceURI=t[0],n.prefix=t[1],n.localName=t[2],s._ownerElement=n,n},createAttributeNS:function(e,r){var t=l(e,r),n=new k(a);return n.ownerDocument=this,n.childNodes=new q,n.nodeName=r,n.name=r,n.specified=!0,n.namespaceURI=t[0],n.prefix=t[1],n.localName=t[2],n}},o(ie,v),K.prototype={nodeType:d,attributes:null,getQualifiedName:function(){return this.prefix?this.prefix+":"+this.localName:this.localName},_isInHTMLDocumentAndNamespace:function(){return this.ownerDocument.type==="html"&&this.namespaceURI===Q.HTML},hasAttributes:function(){return!(!this.attributes||!this.attributes.length)},hasAttribute:function(e){return!!this.getAttributeNode(e)},getAttribute:function(e){var r=this.getAttributeNode(e);return r?r.value:null},getAttributeNode:function(e){return this._isInHTMLDocumentAndNamespace()&&(e=e.toLowerCase()),this.attributes.getNamedItem(e)},setAttribute:function(e,r){this._isInHTMLDocumentAndNamespace()&&(e=e.toLowerCase());var t=this.getAttributeNode(e);t?t.value=t.nodeValue=""+r:((t=this.ownerDocument._createAttribute(e)).value=t.nodeValue=""+r,this.setAttributeNode(t))},removeAttribute:function(e){var r=this.getAttributeNode(e);r&&this.removeAttributeNode(r)},setAttributeNode:function(e){return this.attributes.setNamedItem(e)},setAttributeNodeNS:function(e){return this.attributes.setNamedItemNS(e)},removeAttributeNode:function(e){return this.attributes.removeNamedItem(e.nodeName)},removeAttributeNS:function(e,r){var t=this.getAttributeNodeNS(e,r);t&&this.removeAttributeNode(t)},hasAttributeNS:function(e,r){return this.getAttributeNodeNS(e,r)!=null},getAttributeNS:function(e,r){var t=this.getAttributeNodeNS(e,r);return t?t.value:null},setAttributeNS:function(e,r,t){var n=l(e,r)[2],s=this.getAttributeNodeNS(e,n);s?s.value=s.nodeValue=""+t:((s=this.ownerDocument.createAttributeNS(e,r)).value=s.nodeValue=""+t,this.setAttributeNode(s))},getAttributeNodeNS:function(e,r){return this.attributes.getNamedItemNS(e,r)},getElementsByClassName:function(e){var r=le(e);return new ee(this,function(t){var n=[];return r.length>0&&fe(t,function(s){if(s!==t&&s.nodeType===d){var b=s.getAttribute("class");if(b){var U=e===b;if(!U){var R=le(b);U=r.every((B=R,function(Z){return B&&B.indexOf(Z)!==-1}))}U&&n.push(s)}}var B}),n})},getElementsByTagName:function(e){var r=(this.nodeType===f?this:this.ownerDocument).type==="html",t=e.toLowerCase();return new ee(this,function(n){var s=[];return fe(n,function(b){b!==n&&b.nodeType===d&&(e==="*"||b.getQualifiedName()===(r&&b.namespaceURI===Q.HTML?t:e))&&s.push(b)}),s})},getElementsByTagNameNS:function(e,r){return new ee(this,function(t){var n=[];return fe(t,function(s){s===t||s.nodeType!==d||e!=="*"&&s.namespaceURI!==e||r!=="*"&&s.localName!=r||n.push(s)}),n})}},ie.prototype.getElementsByClassName=K.prototype.getElementsByClassName,ie.prototype.getElementsByTagName=K.prototype.getElementsByTagName,ie.prototype.getElementsByTagNameNS=K.prototype.getElementsByTagNameNS,o(K,v),k.prototype.nodeType=N,o(k,v),V.prototype={data:"",substringData:function(e,r){return this.data.substring(e,e+r)},appendData:function(e){e=this.data+e,this.nodeValue=this.data=e,this.length=e.length},insertData:function(e,r){this.replaceData(e,0,r)},deleteData:function(e,r){this.replaceData(e,r,"")},replaceData:function(e,r,t){t=this.data.substring(0,e)+t+this.data.substring(e+r),this.nodeValue=this.data=t,this.length=t.length}},o(V,v),se.prototype={nodeName:"#text",nodeType:T,splitText:function(e){var r=this.data,t=r.substring(e);r=r.substring(0,e),this.data=this.nodeValue=r,this.length=r.length;var n=this.ownerDocument.createTextNode(t);return this.parentNode&&this.parentNode.insertBefore(n,this.nextSibling),n}},o(se,V),be.prototype={nodeName:"#comment",nodeType:I},o(be,V),xe.prototype={nodeName:"#cdata-section",nodeType:u},o(xe,se),Be.prototype.nodeType=F,o(Be,v),je.prototype.nodeType=ne,o(je,v),ze.prototype.nodeType=E,o(ze,v),Fe.prototype.nodeType=D,o(Fe,v),He.prototype.nodeName="#document-fragment",He.prototype.nodeType=C,o(He,v),Ge.prototype.nodeType=w,o(Ge,V),$e.prototype.serializeToString=function(e,r){return Je.call(e,r)},v.prototype.toString=Je;try{if(Object.defineProperty){let e=function(r){switch(r.nodeType){case d:case C:var t=[];for(r=r.firstChild;r;)r.nodeType!==7&&r.nodeType!==8&&t.push(e(r)),r=r.nextSibling;return t.join("");default:return r.nodeValue}};Object.defineProperty(ee.prototype,"length",{get:function(){return G(this),this.$$length}}),Object.defineProperty(v.prototype,"textContent",{get:function(){return e(this)},set:function(r){switch(this.nodeType){case d:case C:for(;this.firstChild;)this.removeChild(this.firstChild);(r||String(r))&&this.appendChild(this.ownerDocument.createTextNode(r));break;default:this.data=r,this.value=r,this.nodeValue=r}}}),rr=function(r,t,n){r["$$"+t]=n}}}catch{}return $._updateLiveList=G,$.Attr=k,$.CDATASection=xe,$.CharacterData=V,$.Comment=be,$.Document=ie,$.DocumentFragment=He,$.DocumentType=Be,$.DOMImplementation=de,$.Element=K,$.Entity=ze,$.EntityReference=Fe,$.LiveNodeList=ee,$.NamedNodeMap=Y,$.Node=v,$.NodeList=q,$.Notation=je,$.Text=se,$.ProcessingInstruction=Ge,$.XMLSerializer=$e,$}var sr,Ce={},lr={},cr,ur,pr,Ve={};function mr(){if(cr)return Ve;cr=1;var S=ke(),c=fr(),A=Xe(),_=S.isHTMLEscapableRawTextElement,g=S.isHTMLMimeType,m=S.isHTMLRawTextElement,H=S.hasOwn,J=S.NAMESPACE,Q=A.ParseError,a=A.DOMException;function h(){}h.prototype={parse:function(o,i,d){var N=this.domBuilder;N.startDocument(),ce(i,i=Object.create(null)),function(T,u,D,E,w){var I=g(E.mimeType);function f(L){var K=L[L.length-1]===";"?L:L+";";if(!I&&K!==L)return w.error("EntityRef: expecting ;"),L;var k=c.Reference.exec(K);if(!k||k[0].length!==K.length)return w.error("entity not matching Reference production: "+L),L;var V=K.slice(1,-1);return H(D,V)?D[V]:V.charAt(0)==="#"?function(se){if(se>65535){var be=55296+((se-=65536)>>10),xe=56320+(1023&se);return String.fromCharCode(be,xe)}return String.fromCharCode(se)}(parseInt(V.substr(1).replace("x","0x"))):(w.error("entity not found:"+L),L)}function F(L){if(L>G){var K=T.substring(G,L).replace(p,f);j&&C(G),E.characters(K,0,L-G),G=L}}function C(L,K){for(;L>=M&&(K=Ee.exec(T));)ne=K.index,M=ne+K[0].length,j.lineNumber++;j.columnNumber=L-ne+1}T.indexOf(c.UNICODE_REPLACEMENT_CHARACTER)>=0&&w.warning("Unicode replacement character detected, source encoding issues?");for(var ne=0,M=0,Ee=/.*(?:\r\n?|\n)|.*$/g,j=E.locator,q=[{currentNSMap:u}],ee=[],G=0;;){try{var Y=T.indexOf("<",G);if(Y<0){if(!I&&ee.length>0)return w.fatalError("unclosed xml tag(s): "+ee.join(", "));if(!T.substring(G).match(/^\s*$/)){var ve=E.doc,Ne=ve.createTextNode(T.substr(G));if(ve.documentElement)return w.error("Extra content at the end of the document");ve.appendChild(Ne),E.currentElement=Ne}return}if(Y>G){var de=T.substring(G,Y);I||ee.length!==0||(de=de.replace(new RegExp(c.S_OPT.source,"g"),""))&&w.error("Unexpected content outside root element: '"+de+"'"),F(Y)}switch(T.charAt(Y+1)){case"/":var v=T.indexOf(">",Y+2),Te=T.substring(Y+2,v>0?v:void 0);if(!Te)return w.fatalError("end tag name missing");var fe=v>0&&c.reg("^",c.QName_group,c.S_OPT,"$").exec(Te);if(!fe)return w.fatalError('end tag name contains invalid characters: "'+Te+'"');if(!E.currentElement&&!E.doc.documentElement)return;var ie=ee[ee.length-1]||E.currentElement.tagName||E.doc.documentElement.tagName||"";if(ie!==fe[1]){var Re=fe[1].toLowerCase();if(!I||ie.toLowerCase()!==Re)return w.fatalError('Opening and ending tag mismatch: "'+ie+'" != "'+Te+'"')}var ye=q.pop();ee.pop();var De=ye.localNSMap;if(E.endElement(ye.uri,ye.localName,ie),De)for(var ue in De)H(De,ue)&&E.endPrefixMapping(ue);v++;break;case"?":j&&C(Y),v=l(T,Y,E,w);break;case"!":j&&C(Y),v=ae(T,Y,E,w,I);break;default:j&&C(Y);var X=new y,ge=q[q.length-1].currentNSMap,Se=(v=P(T,Y,X,ge,f,w,I),X.length);if(X.closed||(I&&S.isHTMLVoidElement(X.tagName)?X.closed=!0:ee.push(X.tagName)),j&&Se){for(var _e=oe(j,{}),Ie=0;Ie<Se;Ie++){var Ae=X[Ie];C(Ae.offset),Ae.locator=oe(j,{})}E.locator=_e,W(X,E,ge)&&q.push(X),E.locator=j}else W(X,E,ge)&&q.push(X);I&&!X.closed?v=me(T,v,X.tagName,f,E):v++}}catch(L){if(L instanceof Q)throw L;if(L instanceof a)throw new Q(L.name+": "+L.message,E.locator,L);w.error("element parse error: "+L),v=-1}v>G?G=v:F(Math.max(Y,G)+1)}}(o,i,d,N,this.errorHandler),N.endDocument()}};var p=/&#?\w+;?/g;function oe(o,i){return i.lineNumber=o.lineNumber,i.columnNumber=o.columnNumber,i}function P(o,i,d,N,T,u,D){function E(ne,M,Ee){return H(d.attributeNames,ne)?u.fatalError("Attribute "+ne+" redefined"):!D&&M.indexOf("<")>=0?u.fatalError("Unescaped '<' not allowed in attributes values"):void d.addValue(ne,M.replace(/[\t\n\r]/g," ").replace(p,T),Ee)}for(var w,I=++i,f=0;;){var F=o.charAt(I);switch(F){case"=":if(f===1)w=o.slice(i,I),f=3;else{if(f!==2)throw new Error("attribute equal must after attrName");f=3}break;case"'":case'"':if(f===3||f===1){if(f===1&&(u.warning('attribute value must after "="'),w=o.slice(i,I)),i=I+1,!((I=o.indexOf(F,i))>0))throw new Error("attribute value no end '"+F+"' match");E(w,C=o.slice(i,I),i-1),f=5}else{if(f!=4)throw new Error('attribute value must after "="');E(w,C=o.slice(i,I),i),u.warning('attribute "'+w+'" missed start quot('+F+")!!"),i=I+1,f=5}break;case"/":switch(f){case 0:d.setTagName(o.slice(i,I));case 5:case 6:case 7:f=7,d.closed=!0;case 4:case 1:break;case 2:d.closed=!0;break;default:throw new Error("attribute invalid close char('/')")}break;case"":return u.error("unexpected end of input"),f==0&&d.setTagName(o.slice(i,I)),I;case">":switch(f){case 0:d.setTagName(o.slice(i,I));case 5:case 6:case 7:break;case 4:case 1:(C=o.slice(i,I)).slice(-1)==="/"&&(d.closed=!0,C=C.slice(0,-1));case 2:f===2&&(C=w),f==4?(u.warning('attribute "'+C+'" missed quot(")!'),E(w,C,i)):(D||u.warning('attribute "'+C+'" missed value!! "'+C+'" instead!!'),E(C,C,i));break;case 3:if(!D)return u.fatalError(`AttValue: ' or " expected`)}return I;case"":F=" ";default:if(F<=" ")switch(f){case 0:d.setTagName(o.slice(i,I)),f=6;break;case 1:w=o.slice(i,I),f=2;break;case 4:var C=o.slice(i,I);u.warning('attribute "'+C+'" missed quot(")!!'),E(w,C,i);case 5:f=6}else switch(f){case 2:D||u.warning('attribute "'+w+'" missed value!! "'+w+'" instead2!!'),E(w,w,i),i=I,f=1;break;case 5:u.warning('attribute space is required"'+w+'"!!');case 6:f=1,i=I;break;case 3:f=4,i=I;break;case 7:throw new Error("elements closed character '/' and '>' must be connected to")}}I++}}function W(o,i,d){for(var N=o.tagName,T=null,u=o.length;u--;){var D=o[u],E=D.qName,w=D.value;if((C=E.indexOf(":"))>0)var I=D.prefix=E.slice(0,C),f=E.slice(C+1),F=I==="xmlns"&&f;else f=E,I=null,F=E==="xmlns"&&"";D.localName=f,F!==!1&&(T==null&&(T=Object.create(null),ce(d,d=Object.create(null))),d[F]=T[F]=w,D.uri=J.XMLNS,i.startPrefixMapping(F,w))}for(u=o.length;u--;)(D=o[u]).prefix&&(D.prefix==="xml"&&(D.uri=J.XML),D.prefix!=="xmlns"&&(D.uri=d[D.prefix]));var C;(C=N.indexOf(":"))>0?(I=o.prefix=N.slice(0,C),f=o.localName=N.slice(C+1)):(I=null,f=o.localName=N);var ne=o.uri=d[I||""];if(i.startElement(ne,f,N,o),!o.closed)return o.currentNSMap=d,o.localNSMap=T,!0;if(i.endElement(ne,f,N),T)for(I in T)H(T,I)&&i.endPrefixMapping(I)}function me(o,i,d,N,T){var u=_(d);if(u||m(d)){var D=o.indexOf("</"+d+">",i),E=o.substring(i+1,D);return u&&(E=E.replace(p,N)),T.characters(E,0,E.length),D}return i+1}function ce(o,i){for(var d in o)H(o,d)&&(i[d]=o[d])}function le(o,i){var d=i;function N(D){return D=D||0,o.charAt(d+D)}function T(D){d+=D=D||1}function u(){return o.substring(d)}return{char:N,getIndex:function(){return d},getMatch:function(D){var E=c.reg("^",D).exec(u());return E?(T(E[0].length),E[0]):null},getSource:function(){return o},skip:T,skipBlanks:function(){for(var D=0;d<o.length;){var E=N();if(E!==" "&&E!==`
|
|
7
|
+
`&&E!==" "&&E!=="\r")return D;D++,T()}return-1},substringFromIndex:u,substringStartsWith:function(D){return o.substring(d,d+D.length)===D},substringStartsWithCaseInsensitive:function(D){return o.substring(d,d+D.length).toUpperCase()===D.toUpperCase()}}}function ae(o,i,d,N,T){var u=le(o,i);switch(T?u.char(2).toUpperCase():u.char(2)){case"-":var D=u.getMatch(c.Comment);return D?(d.comment(D,c.COMMENT_START.length,D.length-c.COMMENT_START.length-c.COMMENT_END.length),u.getIndex()):N.fatalError("comment is not well-formed at position "+u.getIndex());case"[":var E=u.getMatch(c.CDSect);return E?T||d.currentElement?(d.startCDATA(),d.characters(E,c.CDATA_START.length,E.length-c.CDATA_START.length-c.CDATA_END.length),d.endCDATA(),u.getIndex()):N.fatalError("CDATA outside of element"):N.fatalError("Invalid CDATA starting at position "+i);case"D":if(d.doc&&d.doc.documentElement)return N.fatalError("Doctype not allowed inside or after documentElement at position "+u.getIndex());if(T?!u.substringStartsWithCaseInsensitive(c.DOCTYPE_DECL_START):!u.substringStartsWith(c.DOCTYPE_DECL_START))return N.fatalError("Expected "+c.DOCTYPE_DECL_START+" at position "+u.getIndex());if(u.skip(c.DOCTYPE_DECL_START.length),u.skipBlanks()<1)return N.fatalError("Expected whitespace after "+c.DOCTYPE_DECL_START+" at position "+u.getIndex());var w={name:void 0,publicId:void 0,systemId:void 0,internalSubset:void 0};if(w.name=u.getMatch(c.Name),!w.name)return N.fatalError("doctype name missing or contains unexpected characters at position "+u.getIndex());if(T&&w.name.toLowerCase()!=="html"&&N.warning("Unexpected DOCTYPE in HTML document at position "+u.getIndex()),u.skipBlanks(),u.substringStartsWith(c.PUBLIC)||u.substringStartsWith(c.SYSTEM)){var I=c.ExternalID_match.exec(u.substringFromIndex());if(!I)return N.fatalError("doctype external id is not well-formed at position "+u.getIndex());I.groups.SystemLiteralOnly!==void 0?w.systemId=I.groups.SystemLiteralOnly:(w.systemId=I.groups.SystemLiteral,w.publicId=I.groups.PubidLiteral),u.skip(I[0].length)}else if(T&&u.substringStartsWithCaseInsensitive(c.SYSTEM)){if(u.skip(c.SYSTEM.length),u.skipBlanks()<1)return N.fatalError("Expected whitespace after "+c.SYSTEM+" at position "+u.getIndex());if(w.systemId=u.getMatch(c.ABOUT_LEGACY_COMPAT_SystemLiteral),!w.systemId)return N.fatalError("Expected "+c.ABOUT_LEGACY_COMPAT+" in single or double quotes after "+c.SYSTEM+" at position "+u.getIndex())}return T&&w.systemId&&!c.ABOUT_LEGACY_COMPAT_SystemLiteral.test(w.systemId)&&N.warning("Unexpected doctype.systemId in HTML document at position "+u.getIndex()),T||(u.skipBlanks(),w.internalSubset=function(f,F){function C(q,ee){var G=c.PI.exec(q.substringFromIndex());return G?G[1].toLowerCase()==="xml"?ee.fatalError("xml declaration is only allowed at the start of the document, but found at position "+q.getIndex()):(q.skip(G[0].length),G[0]):ee.fatalError("processing instruction is not well-formed at position "+q.getIndex())}var ne=f.getSource();if(f.char()==="["){f.skip(1);for(var M=f.getIndex();f.getIndex()<ne.length;){if(f.skipBlanks(),f.char()==="]"){var Ee=ne.substring(M,f.getIndex());return f.skip(1),Ee}var j=null;if(f.char()==="<"&&f.char(1)==="!")switch(f.char(2)){case"E":f.char(3)==="L"?j=f.getMatch(c.elementdecl):f.char(3)==="N"&&(j=f.getMatch(c.EntityDecl));break;case"A":j=f.getMatch(c.AttlistDecl);break;case"N":j=f.getMatch(c.NotationDecl);break;case"-":j=f.getMatch(c.Comment)}else if(f.char()==="<"&&f.char(1)==="?")j=C(f,F);else{if(f.char()!=="%")return F.fatalError("Error detected in Markup declaration");j=f.getMatch(c.PEReference)}if(!j)return F.fatalError("Error in internal subset at position "+f.getIndex())}return F.fatalError("doctype internal subset is not well-formed, missing ]")}}(u,N)),u.skipBlanks(),u.char()!==">"?N.fatalError("doctype not terminated with > at position "+u.getIndex()):(u.skip(1),d.startDTD(w.name,w.publicId,w.systemId,w.internalSubset),d.endDTD(),u.getIndex());default:return N.fatalError('Not well-formed XML starting with "<!" at position '+i)}}function l(o,i,d,N){var T=o.substring(i).match(c.PI);if(!T)return N.fatalError("Invalid processing instruction starting at position "+i);if(T[1].toLowerCase()==="xml"){if(i>0)return N.fatalError("processing instruction at position "+i+" is an xml declaration which is only at the start of the document");if(!c.XMLDecl.test(o.substring(i)))return N.fatalError("xml declaration is not well-formed")}return d.processingInstruction(T[1],T[2]),i+T[0].length}function y(){this.attributeNames=Object.create(null)}return y.prototype={setTagName:function(o){if(!c.QName_exact.test(o))throw new Error("invalid tagName:"+o);this.tagName=o},addValue:function(o,i,d){if(!c.QName_exact.test(o))throw new Error("invalid attribute:"+o);this.attributeNames[o]=this.length,this[this.length++]={qName:o,value:i,offset:d}},length:0,getLocalName:function(o){return this[o].localName},getLocator:function(o){return this[o].locator},getQName:function(o){return this[o].qName},getURI:function(o){return this[o].uri},getValue:function(o){return this[o].value}},Ve.XMLReader=h,Ve.parseUtils=le,Ve.parseDoctypeCommentOrCData=ae,Ve}function Er(){if(ur)return Ce;ur=1;var S=ke(),c=hr(),A=Xe(),_=function(){return sr||(sr=1,l=lr,y=ke().freeze,l.XML_ENTITIES=y({amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}),l.HTML_ENTITIES=y({Aacute:"Á",aacute:"á",Abreve:"Ă",abreve:"ă",ac:"∾",acd:"∿",acE:"∾̳",Acirc:"Â",acirc:"â",acute:"´",Acy:"А",acy:"а",AElig:"Æ",aelig:"æ",af:"",Afr:"𝔄",afr:"𝔞",Agrave:"À",agrave:"à",alefsym:"ℵ",aleph:"ℵ",Alpha:"Α",alpha:"α",Amacr:"Ā",amacr:"ā",amalg:"⨿",AMP:"&",amp:"&",And:"⩓",and:"∧",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsd:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",Aogon:"Ą",aogon:"ą",Aopf:"𝔸",aopf:"𝕒",ap:"≈",apacir:"⩯",apE:"⩰",ape:"≊",apid:"≋",apos:"'",ApplyFunction:"",approx:"≈",approxeq:"≊",Aring:"Å",aring:"å",Ascr:"𝒜",ascr:"𝒶",Assign:"≔",ast:"*",asymp:"≈",asympeq:"≍",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",awconint:"∳",awint:"⨑",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",Backslash:"∖",Barv:"⫧",barvee:"⊽",Barwed:"⌆",barwed:"⌅",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",Bcy:"Б",bcy:"б",bdquo:"„",becaus:"∵",Because:"∵",because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",Bernoullis:"ℬ",Beta:"Β",beta:"β",beth:"ℶ",between:"≬",Bfr:"𝔅",bfr:"𝔟",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bNot:"⫭",bnot:"⌐",Bopf:"𝔹",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxbox:"⧉",boxDL:"╗",boxDl:"╖",boxdL:"╕",boxdl:"┐",boxDR:"╔",boxDr:"╓",boxdR:"╒",boxdr:"┌",boxH:"═",boxh:"─",boxHD:"╦",boxHd:"╤",boxhD:"╥",boxhd:"┬",boxHU:"╩",boxHu:"╧",boxhU:"╨",boxhu:"┴",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxUL:"╝",boxUl:"╜",boxuL:"╛",boxul:"┘",boxUR:"╚",boxUr:"╙",boxuR:"╘",boxur:"└",boxV:"║",boxv:"│",boxVH:"╬",boxVh:"╫",boxvH:"╪",boxvh:"┼",boxVL:"╣",boxVl:"╢",boxvL:"╡",boxvl:"┤",boxVR:"╠",boxVr:"╟",boxvR:"╞",boxvr:"├",bprime:"‵",Breve:"˘",breve:"˘",brvbar:"¦",Bscr:"ℬ",bscr:"𝒷",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",Bumpeq:"≎",bumpeq:"≏",Cacute:"Ć",cacute:"ć",Cap:"⋒",cap:"∩",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",CapitalDifferentialD:"ⅅ",caps:"∩︀",caret:"⁁",caron:"ˇ",Cayleys:"ℭ",ccaps:"⩍",Ccaron:"Č",ccaron:"č",Ccedil:"Ç",ccedil:"ç",Ccirc:"Ĉ",ccirc:"ĉ",Cconint:"∰",ccups:"⩌",ccupssm:"⩐",Cdot:"Ċ",cdot:"ċ",cedil:"¸",Cedilla:"¸",cemptyv:"⦲",cent:"¢",CenterDot:"·",centerdot:"·",Cfr:"ℭ",cfr:"𝔠",CHcy:"Ч",chcy:"ч",check:"✓",checkmark:"✓",Chi:"Χ",chi:"χ",cir:"○",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",CircleDot:"⊙",circledR:"®",circledS:"Ⓢ",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",cirE:"⧃",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",clubs:"♣",clubsuit:"♣",Colon:"∷",colon:":",Colone:"⩴",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",Congruent:"≡",Conint:"∯",conint:"∮",ContourIntegral:"∮",Copf:"ℂ",copf:"𝕔",coprod:"∐",Coproduct:"∐",COPY:"©",copy:"©",copysr:"℗",CounterClockwiseContourIntegral:"∳",crarr:"↵",Cross:"⨯",cross:"✗",Cscr:"𝒞",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",Cup:"⋓",cup:"∪",cupbrcap:"⩈",CupCap:"≍",cupcap:"⩆",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",Dagger:"‡",dagger:"†",daleth:"ℸ",Darr:"↡",dArr:"⇓",darr:"↓",dash:"‐",Dashv:"⫤",dashv:"⊣",dbkarow:"⤏",dblac:"˝",Dcaron:"Ď",dcaron:"ď",Dcy:"Д",dcy:"д",DD:"ⅅ",dd:"ⅆ",ddagger:"‡",ddarr:"⇊",DDotrahd:"⤑",ddotseq:"⩷",deg:"°",Del:"∇",Delta:"Δ",delta:"δ",demptyv:"⦱",dfisht:"⥿",Dfr:"𝔇",dfr:"𝔡",dHar:"⥥",dharl:"⇃",dharr:"⇂",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",diam:"⋄",Diamond:"⋄",diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",DifferentialD:"ⅆ",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",DJcy:"Ђ",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",Dopf:"𝔻",dopf:"𝕕",Dot:"¨",dot:"˙",DotDot:"⃜",doteq:"≐",doteqdot:"≑",DotEqual:"≐",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrow:"↓",Downarrow:"⇓",downarrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",DownBreve:"̑",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",DownTeeArrow:"↧",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",Dscr:"𝒟",dscr:"𝒹",DScy:"Ѕ",dscy:"ѕ",dsol:"⧶",Dstrok:"Đ",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",DZcy:"Џ",dzcy:"џ",dzigrarr:"⟿",Eacute:"É",eacute:"é",easter:"⩮",Ecaron:"Ě",ecaron:"ě",ecir:"≖",Ecirc:"Ê",ecirc:"ê",ecolon:"≕",Ecy:"Э",ecy:"э",eDDot:"⩷",Edot:"Ė",eDot:"≑",edot:"ė",ee:"ⅇ",efDot:"≒",Efr:"𝔈",efr:"𝔢",eg:"⪚",Egrave:"È",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",Element:"∈",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",Emacr:"Ē",emacr:"ē",empty:"∅",emptyset:"∅",EmptySmallSquare:"◻",emptyv:"∅",EmptyVerySmallSquare:"▫",emsp:" ",emsp13:" ",emsp14:" ",ENG:"Ŋ",eng:"ŋ",ensp:" ",Eogon:"Ę",eogon:"ę",Eopf:"𝔼",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",Epsilon:"Ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",Equal:"⩵",equals:"=",EqualTilde:"≂",equest:"≟",Equilibrium:"⇌",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erarr:"⥱",erDot:"≓",Escr:"ℰ",escr:"ℯ",esdot:"≐",Esim:"⩳",esim:"≂",Eta:"Η",eta:"η",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",euro:"€",excl:"!",exist:"∃",Exists:"∃",expectation:"ℰ",ExponentialE:"ⅇ",exponentiale:"ⅇ",fallingdotseq:"≒",Fcy:"Ф",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",Ffr:"𝔉",ffr:"𝔣",filig:"fi",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",Fopf:"𝔽",fopf:"𝕗",ForAll:"∀",forall:"∀",fork:"⋔",forkv:"⫙",Fouriertrf:"ℱ",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",Fscr:"ℱ",fscr:"𝒻",gacute:"ǵ",Gamma:"Γ",gamma:"γ",Gammad:"Ϝ",gammad:"ϝ",gap:"⪆",Gbreve:"Ğ",gbreve:"ğ",Gcedil:"Ģ",Gcirc:"Ĝ",gcirc:"ĝ",Gcy:"Г",gcy:"г",Gdot:"Ġ",gdot:"ġ",gE:"≧",ge:"≥",gEl:"⪌",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",Gfr:"𝔊",gfr:"𝔤",Gg:"⋙",gg:"≫",ggg:"⋙",gimel:"ℷ",GJcy:"Ѓ",gjcy:"ѓ",gl:"≷",gla:"⪥",glE:"⪒",glj:"⪤",gnap:"⪊",gnapprox:"⪊",gnE:"≩",gne:"⪈",gneq:"⪈",gneqq:"≩",gnsim:"⋧",Gopf:"𝔾",gopf:"𝕘",grave:"`",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"𝒢",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",Gt:"≫",GT:">",gt:">",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:" ",half:"½",hamilt:"ℋ",HARDcy:"Ъ",hardcy:"ъ",hArr:"⇔",harr:"↔",harrcir:"⥈",harrw:"↭",Hat:"^",hbar:"ℏ",Hcirc:"Ĥ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",Hfr:"ℌ",hfr:"𝔥",HilbertSpace:"ℋ",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",Hopf:"ℍ",hopf:"𝕙",horbar:"―",HorizontalLine:"─",Hscr:"ℋ",hscr:"𝒽",hslash:"ℏ",Hstrok:"Ħ",hstrok:"ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"⁃",hyphen:"‐",Iacute:"Í",iacute:"í",ic:"",Icirc:"Î",icirc:"î",Icy:"И",icy:"и",Idot:"İ",IEcy:"Е",iecy:"е",iexcl:"¡",iff:"⇔",Ifr:"ℑ",ifr:"𝔦",Igrave:"Ì",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",IJlig:"IJ",ijlig:"ij",Im:"ℑ",Imacr:"Ī",imacr:"ī",image:"ℑ",ImaginaryI:"ⅈ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",imof:"⊷",imped:"Ƶ",Implies:"⇒",in:"∈",incare:"℅",infin:"∞",infintie:"⧝",inodot:"ı",Int:"∬",int:"∫",intcal:"⊺",integers:"ℤ",Integral:"∫",intercal:"⊺",Intersection:"⋂",intlarhk:"⨗",intprod:"⨼",InvisibleComma:"",InvisibleTimes:"",IOcy:"Ё",iocy:"ё",Iogon:"Į",iogon:"į",Iopf:"𝕀",iopf:"𝕚",Iota:"Ι",iota:"ι",iprod:"⨼",iquest:"¿",Iscr:"ℐ",iscr:"𝒾",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"",Itilde:"Ĩ",itilde:"ĩ",Iukcy:"І",iukcy:"і",Iuml:"Ï",iuml:"ï",Jcirc:"Ĵ",jcirc:"ĵ",Jcy:"Й",jcy:"й",Jfr:"𝔍",jfr:"𝔧",jmath:"ȷ",Jopf:"𝕁",jopf:"𝕛",Jscr:"𝒥",jscr:"𝒿",Jsercy:"Ј",jsercy:"ј",Jukcy:"Є",jukcy:"є",Kappa:"Κ",kappa:"κ",kappav:"ϰ",Kcedil:"Ķ",kcedil:"ķ",Kcy:"К",kcy:"к",Kfr:"𝔎",kfr:"𝔨",kgreen:"ĸ",KHcy:"Х",khcy:"х",KJcy:"Ќ",kjcy:"ќ",Kopf:"𝕂",kopf:"𝕜",Kscr:"𝒦",kscr:"𝓀",lAarr:"⇚",Lacute:"Ĺ",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",Lambda:"Λ",lambda:"λ",Lang:"⟪",lang:"⟨",langd:"⦑",langle:"⟨",lap:"⪅",Laplacetrf:"ℒ",laquo:"«",Larr:"↞",lArr:"⇐",larr:"←",larrb:"⇤",larrbfs:"⤟",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",lat:"⪫",lAtail:"⤛",latail:"⤙",late:"⪭",lates:"⪭︀",lBarr:"⤎",lbarr:"⤌",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",Lcaron:"Ľ",lcaron:"ľ",Lcedil:"Ļ",lcedil:"ļ",lceil:"⌈",lcub:"{",Lcy:"Л",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",lE:"≦",le:"≤",LeftAngleBracket:"⟨",LeftArrow:"←",Leftarrow:"⇐",leftarrow:"←",LeftArrowBar:"⇤",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",LeftRightArrow:"↔",Leftrightarrow:"⇔",leftrightarrow:"↔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTee:"⊣",LeftTeeArrow:"↤",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangle:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",LeftVectorBar:"⥒",lEg:"⪋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",Lfr:"𝔏",lfr:"𝔩",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",LJcy:"Љ",ljcy:"љ",Ll:"⋘",ll:"≪",llarr:"⇇",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",Lmidot:"Ŀ",lmidot:"ŀ",lmoust:"⎰",lmoustache:"⎰",lnap:"⪉",lnapprox:"⪉",lnE:"≨",lne:"⪇",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",LongLeftArrow:"⟵",Longleftarrow:"⟸",longleftarrow:"⟵",LongLeftRightArrow:"⟷",Longleftrightarrow:"⟺",longleftrightarrow:"⟷",longmapsto:"⟼",LongRightArrow:"⟶",Longrightarrow:"⟹",longrightarrow:"⟶",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",Lopf:"𝕃",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"",lrtri:"⊿",lsaquo:"‹",Lscr:"ℒ",lscr:"𝓁",Lsh:"↰",lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",Lstrok:"Ł",lstrok:"ł",Lt:"≪",LT:"<",lt:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"¯",male:"♂",malt:"✠",maltese:"✠",Map:"⤅",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",Mcy:"М",mcy:"м",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",mfr:"𝔪",mho:"℧",micro:"µ",mid:"∣",midast:"*",midcir:"⫰",middot:"·",minus:"−",minusb:"⊟",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",Mopf:"𝕄",mopf:"𝕞",mp:"∓",Mscr:"ℳ",mscr:"𝓂",mstpos:"∾",Mu:"Μ",mu:"μ",multimap:"⊸",mumap:"⊸",nabla:"∇",Nacute:"Ń",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natur:"♮",natural:"♮",naturals:"ℕ",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",Ncaron:"Ň",ncaron:"ň",Ncedil:"Ņ",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",Ncy:"Н",ncy:"н",ndash:"–",ne:"≠",nearhk:"⤤",neArr:"⇗",nearr:"↗",nearrow:"↗",nedot:"≐̸",NegativeMediumSpace:"",NegativeThickSpace:"",NegativeThinSpace:"",NegativeVeryThinSpace:"",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:`
|
|
8
|
+
`,nexist:"∄",nexists:"∄",Nfr:"𝔑",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",nGt:"≫⃒",ngt:"≯",ngtr:"≯",nGtv:"≫̸",nhArr:"⇎",nharr:"↮",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",NJcy:"Њ",njcy:"њ",nlArr:"⇍",nlarr:"↚",nldr:"‥",nlE:"≦̸",nle:"≰",nLeftarrow:"⇍",nleftarrow:"↚",nLeftrightarrow:"⇎",nleftrightarrow:"↮",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nLt:"≪⃒",nlt:"≮",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"",NonBreakingSpace:" ",Nopf:"ℕ",nopf:"𝕟",Not:"⫬",not:"¬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",npar:"∦",nparallel:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",npre:"⪯̸",nprec:"⊀",npreceq:"⪯̸",nrArr:"⇏",nrarr:"↛",nrarrc:"⤳̸",nrarrw:"↝̸",nRightarrow:"⇏",nrightarrow:"↛",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",Nscr:"𝒩",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",Ntilde:"Ñ",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",Nu:"Ν",nu:"ν",num:"#",numero:"№",numsp:" ",nvap:"≍⃒",nVDash:"⊯",nVdash:"⊮",nvDash:"⊭",nvdash:"⊬",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwArr:"⇖",nwarr:"↖",nwarrow:"↖",nwnear:"⤧",Oacute:"Ó",oacute:"ó",oast:"⊛",ocir:"⊚",Ocirc:"Ô",ocirc:"ô",Ocy:"О",ocy:"о",odash:"⊝",Odblac:"Ő",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",OElig:"Œ",oelig:"œ",ofcir:"⦿",Ofr:"𝔒",ofr:"𝔬",ogon:"˛",Ograve:"Ò",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",Omacr:"Ō",omacr:"ō",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"ο",omid:"⦶",ominus:"⊖",Oopf:"𝕆",oopf:"𝕠",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",operp:"⦹",oplus:"⊕",Or:"⩔",or:"∨",orarr:"↻",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",Oscr:"𝒪",oscr:"ℴ",Oslash:"Ø",oslash:"ø",osol:"⊘",Otilde:"Õ",otilde:"õ",Otimes:"⨷",otimes:"⊗",otimesas:"⨶",Ouml:"Ö",ouml:"ö",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",par:"∥",para:"¶",parallel:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",Pcy:"П",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",Pfr:"𝔓",pfr:"𝔭",Phi:"Φ",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",Pi:"Π",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plus:"+",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",Poincareplane:"ℌ",pointint:"⨕",Popf:"ℙ",popf:"𝕡",pound:"£",Pr:"⪻",pr:"≺",prap:"⪷",prcue:"≼",prE:"⪳",pre:"⪯",prec:"≺",precapprox:"⪷",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",precsim:"≾",Prime:"″",prime:"′",primes:"ℙ",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportion:"∷",Proportional:"∝",propto:"∝",prsim:"≾",prurel:"⊰",Pscr:"𝒫",pscr:"𝓅",Psi:"Ψ",psi:"ψ",puncsp:" ",Qfr:"𝔔",qfr:"𝔮",qint:"⨌",Qopf:"ℚ",qopf:"𝕢",qprime:"⁗",Qscr:"𝒬",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",QUOT:'"',quot:'"',rAarr:"⇛",race:"∽̱",Racute:"Ŕ",racute:"ŕ",radic:"√",raemptyv:"⦳",Rang:"⟫",rang:"⟩",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",Rarr:"↠",rArr:"⇒",rarr:"→",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",Rarrtl:"⤖",rarrtl:"↣",rarrw:"↝",rAtail:"⤜",ratail:"⤚",ratio:"∶",rationals:"ℚ",RBarr:"⤐",rBarr:"⤏",rbarr:"⤍",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",Rcaron:"Ř",rcaron:"ř",Rcedil:"Ŗ",rcedil:"ŗ",rceil:"⌉",rcub:"}",Rcy:"Р",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",Re:"ℜ",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",rect:"▭",REG:"®",reg:"®",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"⌋",Rfr:"ℜ",rfr:"𝔯",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",Rho:"Ρ",rho:"ρ",rhov:"ϱ",RightAngleBracket:"⟩",RightArrow:"→",Rightarrow:"⇒",rightarrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",Ropf:"ℝ",ropf:"𝕣",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"›",Rscr:"ℛ",rscr:"𝓇",Rsh:"↱",rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"⧴",ruluhar:"⥨",rx:"℞",Sacute:"Ś",sacute:"ś",sbquo:"‚",Sc:"⪼",sc:"≻",scap:"⪸",Scaron:"Š",scaron:"š",sccue:"≽",scE:"⪴",sce:"⪰",Scedil:"Ş",scedil:"ş",Scirc:"Ŝ",scirc:"ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",Scy:"С",scy:"с",sdot:"⋅",sdotb:"⊡",sdote:"⩦",searhk:"⤥",seArr:"⇘",searr:"↘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",Sfr:"𝔖",sfr:"𝔰",sfrown:"⌢",sharp:"♯",SHCHcy:"Щ",shchcy:"щ",SHcy:"Ш",shcy:"ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"∣",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"",Sigma:"Σ",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",SOFTcy:"Ь",softcy:"ь",sol:"/",solb:"⧄",solbar:"⌿",Sopf:"𝕊",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",squ:"□",Square:"□",square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squf:"▪",srarr:"→",Sscr:"𝒮",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",Star:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",Sub:"⋐",sub:"⊂",subdot:"⪽",subE:"⫅",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",Subset:"⋐",subset:"⊂",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succ:"≻",succapprox:"⪸",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",Sum:"∑",sum:"∑",sung:"♪",Sup:"⋑",sup:"⊃",sup1:"¹",sup2:"²",sup3:"³",supdot:"⪾",supdsub:"⫘",supE:"⫆",supe:"⊇",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",Supset:"⋑",supset:"⊃",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swArr:"⇙",swarr:"↙",swarrow:"↙",swnwar:"⤪",szlig:"ß",Tab:" ",target:"⌖",Tau:"Τ",tau:"τ",tbrk:"⎴",Tcaron:"Ť",tcaron:"ť",Tcedil:"Ţ",tcedil:"ţ",Tcy:"Т",tcy:"т",tdot:"⃛",telrec:"⌕",Tfr:"𝔗",tfr:"𝔱",there4:"∴",Therefore:"∴",therefore:"∴",Theta:"Θ",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",ThickSpace:" ",thinsp:" ",ThinSpace:" ",thkap:"≈",thksim:"∼",THORN:"Þ",thorn:"þ",Tilde:"∼",tilde:"˜",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",times:"×",timesb:"⊠",timesbar:"⨱",timesd:"⨰",tint:"∭",toea:"⤨",top:"⊤",topbot:"⌶",topcir:"⫱",Topf:"𝕋",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",TRADE:"™",trade:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",Tscr:"𝒯",tscr:"𝓉",TScy:"Ц",tscy:"ц",TSHcy:"Ћ",tshcy:"ћ",Tstrok:"Ŧ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",Uacute:"Ú",uacute:"ú",Uarr:"↟",uArr:"⇑",uarr:"↑",Uarrocir:"⥉",Ubrcy:"Ў",ubrcy:"ў",Ubreve:"Ŭ",ubreve:"ŭ",Ucirc:"Û",ucirc:"û",Ucy:"У",ucy:"у",udarr:"⇅",Udblac:"Ű",udblac:"ű",udhar:"⥮",ufisht:"⥾",Ufr:"𝔘",ufr:"𝔲",Ugrave:"Ù",ugrave:"ù",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",Umacr:"Ū",umacr:"ū",uml:"¨",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",uogon:"ų",Uopf:"𝕌",uopf:"𝕦",UpArrow:"↑",Uparrow:"⇑",uparrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",UpDownArrow:"↕",Updownarrow:"⇕",updownarrow:"↕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",Upsi:"ϒ",upsi:"υ",upsih:"ϒ",Upsilon:"Υ",upsilon:"υ",UpTee:"⊥",UpTeeArrow:"↥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",Uring:"Ů",uring:"ů",urtri:"◹",Uscr:"𝒰",uscr:"𝓊",utdot:"⋰",Utilde:"Ũ",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",Uuml:"Ü",uuml:"ü",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",vArr:"⇕",varr:"↕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",Vbar:"⫫",vBar:"⫨",vBarv:"⫩",Vcy:"В",vcy:"в",VDash:"⊫",Vdash:"⊩",vDash:"⊨",vdash:"⊢",Vdashl:"⫦",Vee:"⋁",vee:"∨",veebar:"⊻",veeeq:"≚",vellip:"⋮",Verbar:"‖",verbar:"|",Vert:"‖",vert:"|",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",Vopf:"𝕍",vopf:"𝕧",vprop:"∝",vrtri:"⊳",Vscr:"𝒱",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",Vvdash:"⊪",vzigzag:"⦚",Wcirc:"Ŵ",wcirc:"ŵ",wedbar:"⩟",Wedge:"⋀",wedge:"∧",wedgeq:"≙",weierp:"℘",Wfr:"𝔚",wfr:"𝔴",Wopf:"𝕎",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",Wscr:"𝒲",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",Xfr:"𝔛",xfr:"𝔵",xhArr:"⟺",xharr:"⟷",Xi:"Ξ",xi:"ξ",xlArr:"⟸",xlarr:"⟵",xmap:"⟼",xnis:"⋻",xodot:"⨀",Xopf:"𝕏",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrArr:"⟹",xrarr:"⟶",Xscr:"𝒳",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",Yacute:"Ý",yacute:"ý",YAcy:"Я",yacy:"я",Ycirc:"Ŷ",ycirc:"ŷ",Ycy:"Ы",ycy:"ы",yen:"¥",Yfr:"𝔜",yfr:"𝔶",YIcy:"Ї",yicy:"ї",Yopf:"𝕐",yopf:"𝕪",Yscr:"𝒴",yscr:"𝓎",YUcy:"Ю",yucy:"ю",Yuml:"Ÿ",yuml:"ÿ",Zacute:"Ź",zacute:"ź",Zcaron:"Ž",zcaron:"ž",Zcy:"З",zcy:"з",Zdot:"Ż",zdot:"ż",zeetrf:"ℨ",ZeroWidthSpace:"",Zeta:"Ζ",zeta:"ζ",Zfr:"ℨ",zfr:"𝔷",ZHcy:"Ж",zhcy:"ж",zigrarr:"⇝",Zopf:"ℤ",zopf:"𝕫",Zscr:"𝒵",zscr:"𝓏",zwj:"",zwnj:""}),l.entityMap=l.HTML_ENTITIES),lr;var l,y}(),g=mr(),m=c.DOMImplementation,H=S.hasDefaultHTMLNamespace,J=S.isHTMLMimeType,Q=S.isValidMimeType,a=S.MIME_TYPE,h=S.NAMESPACE,p=A.ParseError,oe=g.XMLReader;function P(l){return l.replace(/\r[\n\u0085]/g,`
|
|
9
|
+
`).replace(/[\r\u0085\u2028]/g,`
|
|
10
|
+
`)}function W(l){if((l=l||{}).locator===void 0&&(l.locator=!0),this.assign=l.assign||S.assign,this.domHandler=l.domHandler||me,this.onError=l.onError||l.errorHandler,l.errorHandler&&typeof l.errorHandler!="function")throw new TypeError("errorHandler object is no longer supported, switch to onError!");l.errorHandler&&l.errorHandler("warning","The `errorHandler` option has been deprecated, use `onError` instead!",this),this.normalizeLineEndings=l.normalizeLineEndings||P,this.locator=!!l.locator,this.xmlns=this.assign(Object.create(null),l.xmlns)}function me(l){var y=l||{};this.mimeType=y.mimeType||a.XML_APPLICATION,this.defaultNamespace=y.defaultNamespace||null,this.cdata=!1,this.currentElement=void 0,this.doc=void 0,this.locator=void 0,this.onError=y.onError}function ce(l,y){y.lineNumber=l.lineNumber,y.columnNumber=l.columnNumber}function le(l,y,o){return typeof l=="string"?l.substr(y,o):l.length>=y+o||y?new java.lang.String(l,y,o)+"":l}function ae(l,y){l.currentElement?l.currentElement.appendChild(y):l.doc.appendChild(y)}return W.prototype.parseFromString=function(l,y){if(!Q(y))throw new TypeError('DOMParser.parseFromString: the provided mimeType "'+y+'" is not valid.');var o=this.assign(Object.create(null),this.xmlns),i=_.XML_ENTITIES,d=o[""]||null;H(y)?(i=_.HTML_ENTITIES,d=h.HTML):y===a.XML_SVG_IMAGE&&(d=h.SVG),o[""]=d,o.xml=o.xml||h.XML;var N=new this.domHandler({mimeType:y,defaultNamespace:d,onError:this.onError}),T=this.locator?{}:void 0;this.locator&&N.setDocumentLocator(T);var u=new oe;return u.errorHandler=N,u.domBuilder=N,!S.isHTMLMimeType(y)&&typeof l!="string"&&u.errorHandler.fatalError("source is not a string"),u.parse(this.normalizeLineEndings(String(l)),o,i),N.doc.documentElement||u.errorHandler.fatalError("missing root element"),N.doc},me.prototype={startDocument:function(){var l=new m;this.doc=J(this.mimeType)?l.createHTMLDocument(!1):l.createDocument(this.defaultNamespace,"")},startElement:function(l,y,o,i){var d=this.doc,N=d.createElementNS(l,o||y),T=i.length;ae(this,N),this.currentElement=N,this.locator&&ce(this.locator,N);for(var u=0;u<T;u++){l=i.getURI(u);var D=i.getValue(u),E=(o=i.getQName(u),d.createAttributeNS(l,o));this.locator&&ce(i.getLocator(u),E),E.value=E.nodeValue=D,N.setAttributeNode(E)}},endElement:function(l,y,o){this.currentElement=this.currentElement.parentNode},startPrefixMapping:function(l,y){},endPrefixMapping:function(l){},processingInstruction:function(l,y){var o=this.doc.createProcessingInstruction(l,y);this.locator&&ce(this.locator,o),ae(this,o)},ignorableWhitespace:function(l,y,o){},characters:function(l,y,o){if(l=le.apply(this,arguments)){if(this.cdata)var i=this.doc.createCDATASection(l);else i=this.doc.createTextNode(l);this.currentElement?this.currentElement.appendChild(i):/^\s*$/.test(l)&&this.doc.appendChild(i),this.locator&&ce(this.locator,i)}},skippedEntity:function(l){},endDocument:function(){this.doc.normalize()},setDocumentLocator:function(l){l&&(l.lineNumber=0),this.locator=l},comment:function(l,y,o){l=le.apply(this,arguments);var i=this.doc.createComment(l);this.locator&&ce(this.locator,i),ae(this,i)},startCDATA:function(){this.cdata=!0},endCDATA:function(){this.cdata=!1},startDTD:function(l,y,o,i){var d=this.doc.implementation;if(d&&d.createDocumentType){var N=d.createDocumentType(l,y,o,i);this.locator&&ce(this.locator,N),ae(this,N),this.doc.doctype=N}},reportError:function(l,y){if(typeof this.onError=="function")try{this.onError(l,y,this)}catch(o){throw new p("Reporting "+l+' "'+y+'" caused '+o,this.locator)}else console.error("[xmldom "+l+"] "+y,function(o){if(o)return`
|
|
11
|
+
@#[line:`+o.lineNumber+",col:"+o.columnNumber+"]"}(this.locator))},warning:function(l){this.reportError("warning",l)},error:function(l){this.reportError("error",l)},fatalError:function(l){throw this.reportError("fatalError",l),new p(l,this.locator)}},"endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl".replace(/\w+/g,function(l){me.prototype[l]=function(){return null}}),Ce.__DOMHandler=me,Ce.DOMParser=W,Ce.normalizeLineEndings=P,Ce.onErrorStopParsing=function(l){if(l==="error")throw"onErrorStopParsing"},Ce.onWarningStopParsing=function(){throw"onWarningStopParsing"},Ce}var dr=function(){if(pr)return x;pr=1;var S=ke();x.assign=S.assign,x.hasDefaultHTMLNamespace=S.hasDefaultHTMLNamespace,x.isHTMLMimeType=S.isHTMLMimeType,x.isValidMimeType=S.isValidMimeType,x.MIME_TYPE=S.MIME_TYPE,x.NAMESPACE=S.NAMESPACE;var c=Xe();x.DOMException=c.DOMException,x.DOMExceptionName=c.DOMExceptionName,x.ExceptionCode=c.ExceptionCode,x.ParseError=c.ParseError;var A=hr();x.Attr=A.Attr,x.CDATASection=A.CDATASection,x.CharacterData=A.CharacterData,x.Comment=A.Comment,x.Document=A.Document,x.DocumentFragment=A.DocumentFragment,x.DocumentType=A.DocumentType,x.DOMImplementation=A.DOMImplementation,x.Element=A.Element,x.Entity=A.Entity,x.EntityReference=A.EntityReference,x.LiveNodeList=A.LiveNodeList,x.NamedNodeMap=A.NamedNodeMap,x.Node=A.Node,x.NodeList=A.NodeList,x.Notation=A.Notation,x.ProcessingInstruction=A.ProcessingInstruction,x.Text=A.Text,x.XMLSerializer=A.XMLSerializer;var _=Er();return x.DOMParser=_.DOMParser,x.onErrorStopParsing=_.onErrorStopParsing,x.onWarningStopParsing=_.onWarningStopParsing,x}();const gr=function(S,c){for(var A=0;A<c.length;A++){const _=c[A];if(typeof _!="string"&&!Array.isArray(_)){for(const g in _)if(g!=="default"&&!(g in S)){const m=Object.getOwnPropertyDescriptor(_,g);m&&Object.defineProperty(S,g,m.get?m:{enumerable:!0,get:()=>_[g]})}}}return Object.freeze(Object.defineProperty(S,Symbol.toStringTag,{value:"Module"}))}({__proto__:null,default:(Ue=dr,Ue&&Ue.__esModule&&Object.prototype.hasOwnProperty.call(Ue,"default")?Ue.default:Ue)},[dr]);var Ue;exports.i=gr;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";/**
|
|
2
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.5.0
|
|
3
|
+
*
|
|
4
|
+
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
|
+
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
|
+
*/Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./D68uE8Ovq38Aj-88.cjs"),G=e.createSvgIcon(e.jsxRuntimeExports.jsx("path",{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20z"}),"ArrowBack"),X=e.createSvgIcon(e.jsxRuntimeExports.jsx("path",{d:"m20 12-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8z"}),"ArrowDownward"),J=e.createSvgIcon(e.jsxRuntimeExports.jsx("path",{d:"m12 4-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z"}),"ArrowForward"),Q=e.createSvgIcon(e.jsxRuntimeExports.jsx("path",{d:"m4 12 1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8z"}),"ArrowUpward"),T=e.reactExports.memo(g=>{const{label:d,value:a,options:i,onSelect:p,tabIndex:f=0,...h}=g,[O,m]=e.reactExports.useState(()=>H(a,i));e.reactExports.useEffect(()=>{m(H(a,i))},[a,i]);const y=e.T(c=>{m(c.target.value),p?.(i[c.target.value])},[p,i]),r=e.reactExports.useMemo(()=>Object.keys(i).map(c=>e.jsxRuntimeExports.jsx(e.MenuItem,{value:c,children:c},c)),[i]);return e.jsxRuntimeExports.jsxs(e.FormControl,{sx:{minWidth:135},size:"small",children:[e.jsxRuntimeExports.jsx(e.InputLabel,{children:d}),e.jsxRuntimeExports.jsx(e.Select,{inputProps:{tabIndex:f},value:O,label:d,onChange:y,sx:{backgroundImage:`linear-gradient(${e.alpha("#fff",e.getOverlayAlpha(5))}, ${e.alpha("#fff",e.getOverlayAlpha(5))})`},...h,children:r})]})}),I={Workbook:"workbook",Sheet:"sheet"},z={enter:140,exit:140},Z={Formulas:e.Ie.Content.Formulas,Values:e.Ie.Content.Values,Notes:e.Ie.Content.Notes,Comments:e.Ie.Content.Comments},N={...Z};delete N.Values;const Y={"By Rows":!0,"By Columns":!1},H=(g,d)=>{const a=Object.keys(d);for(let i=0;i<a.length;i++){const p=a[i];if(d[p]===g)return p}},$=e.reactExports.memo(g=>{const{replace:d=!1,findText:a,replaceText:i,findOptions:p,replaceOptions:f,title:h,onHide:O,onFindOrReplace:m,...y}=g,r=e.reactExports.useRef(null),c=e.reactExports.useRef(null),S=e.reactExports.useRef(null),w=e.reactExports.useRef(null),k=e.reactExports.useRef(null),F=e.reactExports.useRef(null),A=(t,n)=>{n&&(n.start(t,{center:!1}),setTimeout(()=>n.stop(t),180))},[L,R]=e.reactExports.useState(!1),[C,W]=e.reactExports.useState(!1),[x,v]=e.reactExports.useState(d),[B,b]=e.reactExports.useState(!1),[D,P]=e.reactExports.useState(!1),[o,l]=e.reactExports.useState({findText:null,replaceText:null,replace:d,replaceOptions:{},findOptions:{matchCase:!1,matchEntireCell:!1,useRegex:!1,orientation:e.w.Orientation.Row,fields:[e.Ie.Content.Formulas]},scope:I.Sheet}),j=e.T(async(t,n,s,E)=>{if(!m)return;const u={...o};u.replaceOptions={...u.replaceOptions},u.findOptions={...u.findOptions},u.replaceOptions.maxCount=s?void 0:1,u.replace=n,n&&o.findOptions.fields?.[0]===e.Ie.Content.Values&&(u.findOptions.fields=[e.Ie.Content.Formulas]),u.findOptions.reverse=!t;const q=await m({autoFocus:E,...u});b(q===0)},[o,m]);e.reactExports.useEffect(()=>{b(!1)},[o,C,x]);const M=e.T((t,n)=>{if(t.keyCode===e.to.Enter){if(!o.findText)return;let s=!0,E=!1;t.shiftKey&&(s=!1),n?(t.ctrlKey&&t.altKey&&(E=!0),A(t,E?F.current:k.current)):A(t,s?w.current:S.current),j(s,n,E,!1)}},[o]),K=e.reactExports.useRef(null);e.reactExports.useLayoutEffect(()=>{l(t=>{const n={...t};n.findText=a&&a.length>0?a:t.findText??"",R(!0),i!==void 0&&(n.replaceText=i),p&&(n.findOptions={...n.findOptions,...p}),n.replaceText||(n.replaceText=""),n.replaceOptions&&(n.replaceOptions={...n.replaceOptions}),f&&(n.replaceOptions={...n.replaceOptions,...f}),o.findOptions.fields?.[0]||(o.findOptions.fields=[e.Ie.Content.Formulas]);const s=!(!f&&i===void 0);return s&&v(s),n}),D||K.current?.focus()},[a,i,p,f]),e.reactExports.useEffect(()=>{x?(o.findOptions.fields[0],e.Ie.Content.Values):R(!0)},[x]),e.reactExports.useEffect(()=>{if(L&&r.current&&o.findText===r.current.value)return r.current===document.activeElement||r.current.contains(document.activeElement)?(r.current?.select(),void R(!1)):void r.current.addEventListener("focus",()=>{r.current?.select(),R(!1)},{once:!0})},[L,o]);const[U,{width:V}]=e.No();return e.jsxRuntimeExports.jsx(e.z8,{ref:K,title:h??(x?"Find & Replace":"Find"),initialPosition:{y:"35"},autoFocusSel:".input",onHide:O,onFocus:()=>P(!0),onBlur:()=>{P(!1),b(!1)},PaperProps:{elevation:D?3:1},...y,children:e.jsxRuntimeExports.jsxs(e.DialogContent,{dividers:!0,ref:U,sx:{display:"flex",flexDirection:"column",paddingLeft:t=>t.spacing(1.5),paddingRight:t=>t.spacing(1.5)},onKeyDown:t=>{if(t.key==="h"&&t.ctrlKey)v(!0),r.current?.contains(document.activeElement)&&c.current?.focus();else if(t.key==="f"&&t.ctrlKey)r.current?.focus();else if(t.key==="c"&&t.altKey)l(n=>{const s={...n};return s.findOptions.matchCase=!n.findOptions.matchCase,s});else if(t.key==="e"&&t.altKey)l(n=>{const s={...n};return s.findOptions.matchEntireCell=!n.findOptions.matchEntireCell,s});else{if(t.key!=="r"||!t.altKey)return;l(n=>{const s={...n};return s.findOptions.useRegex=!n.findOptions.useRegex,s})}t.preventDefault()},children:[e.jsxRuntimeExports.jsxs(e.Box,{sx:{display:"flex",flexDirection:"row",gap:t=>t.spacing(1)},children:[e.jsxRuntimeExports.jsxs(e.Box,{sx:{display:"flex",flexDirection:"row",alignItems:"start",gap:t=>t.spacing(.25),paddingTop:"3px"},children:[e.jsxRuntimeExports.jsx(e.Re,{selected:C,onSelectToggle:t=>{W(t)},preventFocus:!0,label:"Toggle Additional Options",icon:e.p2(e.jsxRuntimeExports.jsx(e.b9,{}))}),e.jsxRuntimeExports.jsx(e.Re,{selected:x,onSelectToggle:t=>{v(t)},preventFocus:!0,label:"Toggle Replace",icon:e.p2(e.jsxRuntimeExports.jsx(e.g9,{})),shortcut:{key:x?"F":"H",modifiers:[e.Z.Ctrl]}})]}),e.jsxRuntimeExports.jsxs(e.Box,{sx:{display:"flex",flexDirection:"column",maxWidth:"100%",boxSizing:"border-box"},children:[e.jsxRuntimeExports.jsxs(e.Box,{sx:{display:"flex",flexDirection:"row",alignItems:"center"},children:[e.jsxRuntimeExports.jsx(e.TextField,{label:"Find",InputLabelProps:{shrink:!0},InputProps:{sx:{paddingRight:t=>t.spacing(1),minWidth:V>460?"20em":void 0,backgroundImage:`linear-gradient(${e.alpha("#fff",e.getOverlayAlpha(5))}, ${e.alpha("#fff",e.getOverlayAlpha(5))})`},inputProps:{draggable:!1,ref:r,className:"input",autoFocus:!0,spellCheck:!1,autoComplete:"off",sx:{paddingTop:t=>t.spacing(1.25),paddingBottom:t=>t.spacing(.75)}},endAdornment:e.jsxRuntimeExports.jsx(e.InputAdornment,{sx:{transform:"scale(0.75) translateX(16px)"},position:"end",children:e.jsxRuntimeExports.jsxs(e.Box,{sx:{display:"flex",alignItems:"center",flexDirection:"row",gap:"1px"},children:[e.jsxRuntimeExports.jsx(e.Re,{selected:o.findOptions.matchCase,onSelectToggle:t=>{l(n=>{const s={...n};return s.findOptions.matchCase=t,s})},label:"Match Case",shortcut:{key:"C",modifiers:[e.Z.Alt]},icon:e.p2(e.jsxRuntimeExports.jsx(e.x9,{}))}),e.jsxRuntimeExports.jsx(e.Re,{selected:o.findOptions.matchEntireCell,onSelectToggle:t=>{l(n=>{const s={...n};return s.findOptions.matchEntireCell=t,s})},label:"Match Entire Cell",shortcut:{key:"E",modifiers:[e.Z.Alt]},icon:e.p2(e.jsxRuntimeExports.jsx(e.V9,{}))}),e.jsxRuntimeExports.jsx(e.Re,{selected:o.findOptions.useRegex,onSelectToggle:t=>{l(n=>{const s={...n};return s.findOptions.useRegex=t,s})},label:"Use Regular Expression",shortcut:{key:"R",modifiers:[e.Z.Alt]},icon:e.p2(e.jsxRuntimeExports.jsx(e.M9,{}))})]})})},sx:{flex:"1 1 100%",marginRight:t=>t.spacing(1),"& .MuiOutlinedInput-notchedOutline":{borderColor:t=>B?`${t.palette.error.main} !important`:void 0},"& .MuiInputLabel-outlined":{color:t=>B?`${t.palette.error.main} !important`:void 0}},value:o.findText??"",onChange:t=>{l(n=>{const s={...n};return s.findText=t.target.value,s})},onKeyDown:t=>M(t,!1),onContextMenu:t=>{t.stopPropagation()}}),e.jsxRuntimeExports.jsx(e.Re,{selected:o.findOptions.reverse,onSelectToggle:t=>{j(!1,!1)},touchRippleRef:S,label:"",shortcut:{key:"Enter",modifiers:[e.Z.Shift]},icon:e.p2(o.findOptions.orientation!==e.w.Orientation.Column?e.jsxRuntimeExports.jsx(G,{}):e.jsxRuntimeExports.jsx(Q,{})),disabled:!o.findText}),e.jsxRuntimeExports.jsx(e.Re,{selected:!o.findOptions.reverse,onSelectToggle:t=>{j(!0,!1)},touchRippleRef:w,label:"Next Match",shortcut:{key:"Enter"},icon:e.p2(o.findOptions.orientation!==e.w.Orientation.Column?e.jsxRuntimeExports.jsx(J,{}):e.jsxRuntimeExports.jsx(X,{})),disabled:!o.findText})]}),e.jsxRuntimeExports.jsx(e.Collapse,{in:x,timeout:z,onExit:()=>{r.current?.focus()},children:e.jsxRuntimeExports.jsxs(e.Box,{sx:{display:"flex",flexDirection:"row",alignItems:"center",marginTop:t=>t.spacing(2)},children:[e.jsxRuntimeExports.jsx(e.TextField,{label:"Replace",InputLabelProps:{shrink:!0},InputProps:{sx:{paddingRight:t=>t.spacing(1),backgroundImage:`linear-gradient(${e.alpha("#fff",e.getOverlayAlpha(5))}, ${e.alpha("#fff",e.getOverlayAlpha(5))})`},inputProps:{ref:c,className:"input",spellCheck:!1,autoComplete:"off",sx:{paddingTop:t=>t.spacing(1.25),paddingBottom:t=>t.spacing(.75)}}},sx:{flex:"1 1 100%",marginRight:t=>t.spacing(1)},value:o.replaceText??"",onChange:t=>{l(n=>{const s={...n};return s.replaceText=t.target.value,s})},onKeyDown:t=>M(t,!0),onContextMenu:t=>{t.stopPropagation()}}),e.jsxRuntimeExports.jsx(e.Re,{onSelectToggle:t=>{j(!0,!0)},touchRippleRef:k,label:"Replace",shortcut:{key:"Enter"},icon:e.p2(e.jsxRuntimeExports.jsx(e.z9,{})),disabled:!o.findText}),e.jsxRuntimeExports.jsx(e.Re,{onSelectToggle:t=>{j(!0,!0,!0)},touchRippleRef:F,label:"Replace All",shortcut:{key:"Enter",modifiers:[e.Z.Ctrl,e.Z.Alt]},icon:e.p2(e.jsxRuntimeExports.jsx(e.H9,{})),disabled:!o.findText})]})})]})]}),e.jsxRuntimeExports.jsx(e.Collapse,{in:C,timeout:z,onExit:()=>{r.current?.focus()},children:e.jsxRuntimeExports.jsxs(e.Box,{sx:{minHeight:"10px",flex:"1 1 100%",display:"flex",flexDirection:"column",gap:t=>t.spacing(.5),marginTop:t=>t.spacing(1)},children:[e.jsxRuntimeExports.jsx(e.m6,{orientation:"horizontal",sx:{marginBottom:t=>t.spacing(1.5)}}),e.jsxRuntimeExports.jsxs(e.Box,{sx:{display:"flex",flexDirection:V>=413?"row":"column",justifyContent:"space-evenly",alignItems:"center",rowGap:t=>t.spacing(2)},tabIndex:-1,children:[e.jsxRuntimeExports.jsx(T,{label:"Within",value:o.scope,options:I,onSelect:t=>{l(n=>{const s={...n};return s.scope=t,s})}}),e.jsxRuntimeExports.jsx(T,{label:"Search",value:o.findOptions.orientation!==e.w.Orientation.Column,options:Y,onSelect:t=>{l(n=>{const s={...n};return s.findOptions.orientation=t?e.w.Orientation.Row:e.w.Orientation.Column,s})}}),e.jsxRuntimeExports.jsx(T,{label:"Look in",value:x&&o.findOptions.fields?.[0]===e.Ie.Content.Values?e.Ie.Content.Formulas:o.findOptions.fields?.[0],options:x?N:Z,onSelect:t=>{l(n=>{const s={...n};return s.findOptions.fields=[t],s})}})]})]})})]})})});exports.FindReplaceWindow=$,exports.ScopeOptions=I,exports.default=$;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";/**
|
|
2
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.5.0
|
|
3
|
+
*
|
|
4
|
+
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
|
+
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
|
+
*/Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});exports.default={CUBEKPIMEMBER:{s:"Returns a key performance indicator (KPI) property and displays the KPI name in the cell.",p:{connection:{d:"is the name of a connection to an OLAP cube"},kpiName:{d:"is the KPI name"},kpiProperty:{d:"is the KPI property"},caption:{d:"is the caption to be displayed in the cell"}},h:"Unimplemented"},CUBEMEMBER:{s:"Returns a member or tuple from the cube.",p:{connection:{d:"is the name of a connection to an OLAP cube"},memberExpression:{d:"is the expression representing the name of a member or tuple in the OLAP cube"},caption:{d:"is the caption to be displayed in the cell"}},h:"Unimplemented"},CUBEMEMBERPROPERTY:{s:"Returns the value of a member property from the cube.",p:{connection:{d:"is the name of a connection to an OLAP cube"},memberExpression:{d:"is the expression representing the name of a member in the OLAP cube"},kpiProperty:{d:"is the property name"}},h:"Unimplemented"},CUBERANKEDMEMBER:{s:"Returns the nth, or ranked, member in a set.",p:{connection:{d:"is the name of a connection to an OLAP cube"},setExpression:{d:"is the set from which the element is to be retrieved"},rank:{d:"is the rank of the element to be retrieved"},caption:{d:"is the caption to be displayed in the cell"}},h:"Unimplemented"},CUBESET:{s:"Defines a calculated set of members or tuples by sending a set expression to the cube on the server, which creates the set, and then returns that set to Microsoft Excel.",p:{connection:{d:"is the name of a connection to an OLAP cube"},setExpression:{d:"is the expression for the set"},caption:{d:"is the caption to be displayed in the cell"},sortOrder:{d:"is the sort order"},sortBy:{d:"is the sort by"}},h:"Unimplemented"},CUBESETCOUNT:{s:"Returns the number of items in a set.",p:{set:{d:"is the set whose elements are to be counted"}},h:"Unimplemented"},CUBEVALUE:{s:"Returns an aggregated value from the cube.",p:{connection:{d:"is the name of a connection to an OLAP cube"},memberExpression:{}},h:"Unimplemented"}};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";/**
|
|
2
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.5.0
|
|
3
|
+
*
|
|
4
|
+
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
|
+
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
|
+
*/Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});exports.default={ACOS:{s:"Returns the arccosine of a number, in radians in the range 0 to Pi. The arccosine is the angle whose cosine is Number",p:{number:{d:"is the cosine of the angle you want and must be from -1 to 1"}}},ACOSH:{s:"Returns the inverse hyperbolic cosine of a number",p:{number:{d:"is any real number equal to or greater than 1"}}},ACOT:{s:"Returns the arccotangent of a number, in radians in the range 0 to Pi.",p:{number:{d:"is the cotangent of the angle you want"}}},ACOTH:{s:"Returns the inverse hyperbolic cotangent of a number",p:{number:{d:"is the hyperbolic cotangent of the angle that you want"}}},ASIN:{s:"Returns the arcsine of a number in radians, in the range -Pi/2 to Pi/2",p:{number:{d:"is the sine of the angle you want and must be from -1 to 1"}}},ASINH:{s:"Returns the inverse hyperbolic sine of a number",p:{number:{d:"is any real number equal to or greater than 1"}}},ATAN:{s:"Returns the arctangent of a number in radians, in the range -Pi/2 to Pi/2",p:{number:{d:"is the tangent of the angle you want"}}},ATAN2:{s:"Returns the arctangent of the specified x- and y- coordinates, in radians between -Pi and Pi, excluding -Pi",p:{x:{d:"is the x-coordinate of the point"},y:{d:"is the y-coordinate of the point"}}},ATANH:{s:"Returns the inverse hyperbolic tangent of a number",p:{number:{d:"is any real number between -1 and 1 excluding -1 and 1"}}},COS:{s:"Returns the cosine of an angle",p:{number:{d:"is the angle in radians for which you want the cosine"}}},COSH:{s:"Returns the hyperbolic cosine of a number",p:{number:{d:"is any real number"}}},COT:{s:"Returns the cotangent of an angle",p:{number:{d:"is the angle in radians for which you want the cotangent"}}},COTH:{s:"Returns the hyperbolic cotangent of a number",p:{number:{d:"is the angle in radians for which you want the hyperbolic cotangent"}}},CSC:{s:"Returns the cosecant of an angle",p:{number:{d:"is the angle in radians for which you want the cosecant"}}},CSCH:{s:"Returns the hyperbolic cosecant of an angle",p:{number:{d:"is the angle in radians for which you want the hyperbolic cosecant"}}},SEC:{s:"Returns the secant of an angle",p:{number:{d:"is the angle in radians for which you want the secant"}}},SECH:{s:"Returns the hyperbolic secant of an angle",p:{number:{d:"is the angle in radians for which you want the hyperbolic secant"}}},SIN:{s:"Returns the sine of an angle",p:{number:{d:"is the angle in radians for which you want the sine. Degrees * PI()/180 = radians"}}},SINH:{s:"Returns the hyperbolic sine of a number",p:{number:{d:"is any real number"}}},TAN:{s:"Returns the tangent of an angle",p:{number:{d:"is the angle in radians for which you want the tangent. Degrees * PI()/180 = radians"}}},TANH:{s:"Returns the hyperbolic tangent of a number",p:{number:{d:"is any real number"}}}};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";/**
|
|
2
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.5.0
|
|
3
|
+
*
|
|
4
|
+
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
|
+
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
|
+
*/Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const yt=require("./D68uE8Ovq38Aj-88.cjs");var ct,pt={exports:{}},gt=(ct||(ct=1,pt.exports=function Y(){var Q,k=typeof self<"u"?self:typeof window<"u"?window:k!==void 0?k:{},P=!k.document&&!!k.postMessage,B=k.IS_PAPA_WORKER||!1,J={},mt=0,a={};function K(t){this._handle=null,this._finished=!1,this._completed=!1,this._halted=!1,this._input=null,this._baseIndex=0,this._partialLine="",this._rowCount=0,this._start=0,this._nextChunk=null,this.isFirstChunk=!0,this._completeResults={data:[],errors:[],meta:{}},function(e){var i=at(e);i.chunkSize=parseInt(i.chunkSize),e.step||e.chunk||(i.chunkSize=null),this._handle=new ht(i),(this._handle.streamer=this)._config=i}.call(this,t),this.parseChunk=function(e,i){var n=parseInt(this._config.skipFirstNLines)||0;if(this.isFirstChunk&&0<n){let l=this._config.newline;l||(r=this._config.quoteChar||'"',l=this._handle.guessLineEndings(e,r)),e=[...e.split(l).slice(n)].join(l)}this.isFirstChunk&&_(this._config.beforeFirstChunk)&&(r=this._config.beforeFirstChunk(e))!==void 0&&(e=r),this.isFirstChunk=!1,this._halted=!1,n=this._partialLine+e;var r=(this._partialLine="",this._handle.parse(n,this._baseIndex,!this._finished));if(!this._handle.paused()&&!this._handle.aborted()){if(e=r.meta.cursor,this._finished||(this._partialLine=n.substring(e-this._baseIndex),this._baseIndex=e),r&&r.data&&(this._rowCount+=r.data.length),n=this._finished||this._config.preview&&this._rowCount>=this._config.preview,B)k.postMessage({results:r,workerId:a.WORKER_ID,finished:n});else if(_(this._config.chunk)&&!i){if(this._config.chunk(r,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);this._completeResults=r=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(r.data),this._completeResults.errors=this._completeResults.errors.concat(r.errors),this._completeResults.meta=r.meta),this._completed||!n||!_(this._config.complete)||r&&r.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),n||r&&r.meta.paused||this._nextChunk(),r}this._halted=!0},this._sendError=function(e){_(this._config.error)?this._config.error(e):B&&this._config.error&&k.postMessage({workerId:a.WORKER_ID,error:e,finished:!1})}}function it(t){var e;(t=t||{}).chunkSize||(t.chunkSize=a.RemoteChunkSize),K.call(this,t),this._nextChunk=P?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(i){this._input=i,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(e=new XMLHttpRequest,this._config.withCredentials&&(e.withCredentials=this._config.withCredentials),P||(e.onload=$(this._chunkLoaded,this),e.onerror=$(this._chunkError,this)),e.open(this._config.downloadRequestBody?"POST":"GET",this._input,!P),this._config.downloadRequestHeaders){var i,n=this._config.downloadRequestHeaders;for(i in n)e.setRequestHeader(i,n[i])}var r;this._config.chunkSize&&(r=this._start+this._config.chunkSize-1,e.setRequestHeader("Range","bytes="+this._start+"-"+r));try{e.send(this._config.downloadRequestBody)}catch(l){this._chunkError(l.message)}P&&e.status===0&&this._chunkError()}},this._chunkLoaded=function(){var i;e.readyState===4&&(e.status<200||400<=e.status?this._chunkError():(this._start+=this._config.chunkSize||e.responseText.length,this._finished=!this._config.chunkSize||this._start>=((i=(i=e).getResponseHeader("Content-Range"))!==null?parseInt(i.substring(i.lastIndexOf("/")+1)):-1),this.parseChunk(e.responseText)))},this._chunkError=function(i){i=e.statusText||i,this._sendError(new Error(i))}}function rt(t){(t=t||{}).chunkSize||(t.chunkSize=a.LocalChunkSize),K.call(this,t);var e,i,n=typeof FileReader<"u";this.stream=function(r){this._input=r,i=r.slice||r.webkitSlice||r.mozSlice,n?((e=new FileReader).onload=$(this._chunkLoaded,this),e.onerror=$(this._chunkError,this)):e=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount<this._config.preview)||this._readChunk()},this._readChunk=function(){var r=this._input,l=(this._config.chunkSize&&(l=Math.min(this._start+this._config.chunkSize,this._input.size),r=i.call(r,this._start,l)),e.readAsText(r,this._config.encoding));n||this._chunkLoaded({target:{result:l}})},this._chunkLoaded=function(r){this._start+=this._config.chunkSize,this._finished=!this._config.chunkSize||this._start>=this._input.size,this.parseChunk(r.target.result)},this._chunkError=function(){this._sendError(e.error)}}function X(t){var e;K.call(this,t=t||{}),this.stream=function(i){return e=i,this._nextChunk()},this._nextChunk=function(){var i,n;if(!this._finished)return i=this._config.chunkSize,e=i?(n=e.substring(0,i),e.substring(i)):(n=e,""),this._finished=!e,this.parseChunk(n)}}function nt(t){K.call(this,t=t||{});var e=[],i=!0,n=!1;this.pause=function(){K.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){K.prototype.resume.apply(this,arguments),this._input.resume()},this.stream=function(r){this._input=r,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError)},this._checkIsFinished=function(){n&&e.length===1&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),e.length?this.parseChunk(e.shift()):i=!0},this._streamData=$(function(r){try{e.push(typeof r=="string"?r:r.toString(this._config.encoding)),i&&(i=!1,this._checkIsFinished(),this.parseChunk(e.shift()))}catch(l){this._streamError(l)}},this),this._streamError=$(function(r){this._streamCleanUp(),this._sendError(r)},this),this._streamEnd=$(function(){this._streamCleanUp(),n=!0,this._streamData("")},this),this._streamCleanUp=$(function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)},this)}function ht(t){var e,i,n,r,l=Math.pow(2,53),v=-l,M=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,w=/^((\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z)))$/,m=this,T=0,o=0,j=!1,u=!1,p=[],s={data:[],errors:[],meta:{}};function C(h){return t.skipEmptyLines==="greedy"?h.join("").trim()==="":h.length===1&&h[0].length===0}function R(){if(s&&n&&(z("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+a.DefaultDelimiter+"'"),n=!1),t.skipEmptyLines&&(s.data=s.data.filter(function(f){return!C(f)})),L()){let f=function(O,A){_(t.transformHeader)&&(O=t.transformHeader(O,A)),p.push(O)};if(s)if(Array.isArray(s.data[0])){for(var h=0;L()&&h<s.data.length;h++)s.data[h].forEach(f);s.data.splice(0,1)}else s.data.forEach(f)}function c(f,O){for(var A=t.header?{}:[],b=0;b<f.length;b++){var y=b,g=f[b];g=((U,d)=>{return S=U,t.dynamicTypingFunction&&t.dynamicTyping[S]===void 0&&(t.dynamicTyping[S]=t.dynamicTypingFunction(S)),(t.dynamicTyping[S]||t.dynamicTyping)===!0?d==="true"||d==="TRUE"||d!=="false"&&d!=="FALSE"&&((I=>{if(M.test(I)&&(I=parseFloat(I),v<I&&I<l))return 1})(d)?parseFloat(d):w.test(d)?new Date(d):d===""?null:d):d;var S})(y=t.header?b>=p.length?"__parsed_extra":p[b]:y,g=t.transform?t.transform(g,y):g),y==="__parsed_extra"?(A[y]=A[y]||[],A[y].push(g)):A[y]=g}return t.header&&(b>p.length?z("FieldMismatch","TooManyFields","Too many fields: expected "+p.length+" fields but parsed "+b,o+O):b<p.length&&z("FieldMismatch","TooFewFields","Too few fields: expected "+p.length+" fields but parsed "+b,o+O)),A}var E;s&&(t.header||t.dynamicTyping||t.transform)&&(E=1,!s.data.length||Array.isArray(s.data[0])?(s.data=s.data.map(c),E=s.data.length):s.data=c(s.data,0),t.header&&s.meta&&(s.meta.fields=p),o+=E)}function L(){return t.header&&p.length===0}function z(h,c,E,f){h={type:h,code:c,message:E},f!==void 0&&(h.row=f),s.errors.push(h)}_(t.step)&&(r=t.step,t.step=function(h){s=h,L()?R():(R(),s.data.length!==0&&(T+=h.data.length,t.preview&&T>t.preview?i.abort():(s.data=s.data[0],r(s,m))))}),this.parse=function(h,c,E){var f=t.quoteChar||'"';return t.newline||(t.newline=this.guessLineEndings(h,f)),n=!1,t.delimiter?_(t.delimiter)&&(t.delimiter=t.delimiter(h),s.meta.delimiter=t.delimiter):((f=((O,A,b,y,g)=>{var U,d,S,I;g=g||[","," ","|",";",a.RECORD_SEP,a.UNIT_SEP];for(var G=0;G<g.length;G++){for(var W,tt=g[G],F=0,D=0,x=0,q=(S=void 0,new st({comments:y,delimiter:tt,newline:A,preview:10}).parse(O)),H=0;H<q.data.length;H++)b&&C(q.data[H])?x++:(D+=W=q.data[H].length,S===void 0?S=W:0<W&&(F+=Math.abs(W-S),S=W));0<q.data.length&&(D/=q.data.length-x),(d===void 0||F<=d)&&(I===void 0||I<D)&&1.99<D&&(d=F,U=tt,I=D)}return{successful:!!(t.delimiter=U),bestDelimiter:U}})(h,t.newline,t.skipEmptyLines,t.comments,t.delimitersToGuess)).successful?t.delimiter=f.bestDelimiter:(n=!0,t.delimiter=a.DefaultDelimiter),s.meta.delimiter=t.delimiter),f=at(t),t.preview&&t.header&&f.preview++,e=h,i=new st(f),s=i.parse(e,c,E),R(),j?{meta:{paused:!0}}:s||{meta:{paused:!1}}},this.paused=function(){return j},this.pause=function(){j=!0,i.abort(),e=_(t.chunk)?"":e.substring(i.getCharIndex())},this.resume=function(){m.streamer._halted?(j=!1,m.streamer.parseChunk(e,!0)):setTimeout(m.resume,3)},this.aborted=function(){return u},this.abort=function(){u=!0,i.abort(),s.meta.aborted=!0,_(t.complete)&&t.complete(s),e=""},this.guessLineEndings=function(h,c){h=h.substring(0,1048576),c=new RegExp(V(c)+"([^]*?)"+V(c),"gm");var E=(h=h.replace(c,"")).split("\r");if(h=1<(c=h.split(`
|
|
7
|
+
`)).length&&c[0].length<E[0].length,E.length===1||h)return`
|
|
8
|
+
`;for(var f=0,O=0;O<E.length;O++)E[O][0]===`
|
|
9
|
+
`&&f++;return f>=E.length/2?`\r
|
|
10
|
+
`:"\r"}}function V(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function st(t){var e=(t=t||{}).delimiter,i=t.newline,n=t.comments,r=t.step,l=t.preview,v=t.fastMode,M=null,w=!1,m=t.quoteChar==null?'"':t.quoteChar,T=m;if(t.escapeChar!==void 0&&(T=t.escapeChar),(typeof e!="string"||-1<a.BAD_DELIMITERS.indexOf(e))&&(e=","),n===e)throw new Error("Comment character same as delimiter");n===!0?n="#":(typeof n!="string"||-1<a.BAD_DELIMITERS.indexOf(n))&&(n=!1),i!==`
|
|
11
|
+
`&&i!=="\r"&&i!==`\r
|
|
12
|
+
`&&(i=`
|
|
13
|
+
`);var o=0,j=!1;this.parse=function(u,p,s){if(typeof u!="string")throw new Error("Input must be a string");var C=u.length,R=e.length,L=i.length,z=n.length,h=_(r),c=[],E=[],f=[],O=o=0;if(!u)return F();if(v||v!==!1&&u.indexOf(m)===-1){for(var A=u.split(i),b=0;b<A.length;b++){if(f=A[b],o+=f.length,b!==A.length-1)o+=i.length;else if(s)return F();if(!n||f.substring(0,z)!==n){if(h){if(c=[],I(f.split(e)),D(),j)return F()}else I(f.split(e));if(l&&l<=b)return c=c.slice(0,l),F(!0)}}return F()}for(var y=u.indexOf(e,o),g=u.indexOf(i,o),U=new RegExp(V(T)+V(m),"g"),d=u.indexOf(m,o);;)if(u[o]===m)for(d=o,o++;;){if((d=u.indexOf(m,d+1))===-1)return s||E.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:c.length,index:o}),W();if(d===C-1)return W(u.substring(o,d).replace(U,m));if(m===T&&u[d+1]===T)d++;else if(m===T||d===0||u[d-1]!==T){y!==-1&&y<d+1&&(y=u.indexOf(e,d+1));var S=G((g=g!==-1&&g<d+1?u.indexOf(i,d+1):g)===-1?y:Math.min(y,g));if(u.substr(d+1+S,R)===e){f.push(u.substring(o,d).replace(U,m)),u[o=d+1+S+R]!==m&&(d=u.indexOf(m,o)),y=u.indexOf(e,o),g=u.indexOf(i,o);break}if(S=G(g),u.substring(d+1+S,d+1+S+L)===i){if(f.push(u.substring(o,d).replace(U,m)),tt(d+1+S+L),y=u.indexOf(e,o),d=u.indexOf(m,o),h&&(D(),j))return F();if(l&&c.length>=l)return F(!0);break}E.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:c.length,index:o}),d++}}else if(n&&f.length===0&&u.substring(o,o+z)===n){if(g===-1)return F();o=g+L,g=u.indexOf(i,o),y=u.indexOf(e,o)}else if(y!==-1&&(y<g||g===-1))f.push(u.substring(o,y)),o=y+R,y=u.indexOf(e,o);else{if(g===-1)break;if(f.push(u.substring(o,g)),tt(g+L),h&&(D(),j))return F();if(l&&c.length>=l)return F(!0)}return W();function I(x){c.push(x),O=o}function G(x){return x!==-1&&(x=u.substring(d+1,x))&&x.trim()===""?x.length:0}function W(x){return s||(x===void 0&&(x=u.substring(o)),f.push(x),o=C,I(f),h&&D()),F()}function tt(x){o=x,I(f),f=[],g=u.indexOf(i,o)}function F(x){if(t.header&&!p&&c.length&&!w){var q=c[0],H=Object.create(null),ot=new Set(q);let ft=!1;for(let Z=0;Z<q.length;Z++){let N=q[Z];if(H[N=_(t.transformHeader)?t.transformHeader(N,Z):N]){let et,lt=H[N];for(;et=N+"_"+lt,lt++,ot.has(et););ot.add(et),q[Z]=et,H[N]++,ft=!0,(M=M===null?{}:M)[et]=N}else H[N]=1,q[Z]=N;ot.add(N)}ft&&console.warn("Duplicate headers found and renamed."),w=!0}return{data:c,errors:E,meta:{delimiter:e,linebreak:i,aborted:j,truncated:!!x,cursor:O+(p||0),renamedHeaders:M}}}function D(){r(F()),c=[],E=[]}},this.abort=function(){j=!0},this.getCharIndex=function(){return o}}function _t(t){var e=t.data,i=J[e.workerId],n=!1;if(e.error)i.userError(e.error,e.file);else if(e.results&&e.results.data){var r={abort:function(){n=!0,ut(e.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:dt,resume:dt};if(_(i.userStep)){for(var l=0;l<e.results.data.length&&(i.userStep({data:e.results.data[l],errors:e.results.errors,meta:e.results.meta},r),!n);l++);delete e.results}else _(i.userChunk)&&(i.userChunk(e.results,r,e.file),delete e.results)}e.finished&&!n&&ut(e.workerId,e.results)}function ut(t,e){var i=J[t];_(i.userComplete)&&i.userComplete(e),i.terminate(),delete J[t]}function dt(){throw new Error("Not implemented.")}function at(t){if(typeof t!="object"||t===null)return t;var e,i=Array.isArray(t)?[]:{};for(e in t)i[e]=at(t[e]);return i}function $(t,e){return function(){t.apply(e,arguments)}}function _(t){return typeof t=="function"}return a.parse=function(t,e){var i,n=(e=e||{}).dynamicTyping||!1;if(_(n)&&(e.dynamicTypingFunction=n,n={}),e.dynamicTyping=n,e.transform=!!_(e.transform)&&e.transform,!e.worker||!a.WORKERS_SUPPORTED)return n=null,a.NODE_STREAM_INPUT,typeof t=="string"?(t=(i=t).charCodeAt(0)!==65279?i:i.slice(1),n=new(e.download?it:X)(e)):t.readable===!0&&_(t.read)&&_(t.on)?n=new nt(e):(k.File&&t instanceof File||t instanceof Object)&&(n=new rt(e)),n.stream(t);(n=(()=>{var r,l,v;return!!a.WORKERS_SUPPORTED&&(l=k.URL||k.webkitURL||null,v=Y.toString(),r=a.BLOB_URL||(a.BLOB_URL=l.createObjectURL(new Blob(["var global = (function() { if (typeof self !== 'undefined') { return self; } if (typeof window !== 'undefined') { return window; } if (typeof global !== 'undefined') { return global; } return {}; })(); global.IS_PAPA_WORKER=true; ","(",v,")();"],{type:"text/javascript"}))),(r=new k.Worker(r)).onmessage=_t,r.id=mt++,J[r.id]=r)})()).userStep=e.step,n.userChunk=e.chunk,n.userComplete=e.complete,n.userError=e.error,e.step=_(e.step),e.chunk=_(e.chunk),e.complete=_(e.complete),e.error=_(e.error),delete e.worker,n.postMessage({input:t,config:e,workerId:n.id})},a.unparse=function(t,e){var i=!1,n=!0,r=",",l=`\r
|
|
14
|
+
`,v='"',M=v+v,w=!1,m=null,T=!1,o=((()=>{if(typeof e=="object"){if(typeof e.delimiter!="string"||a.BAD_DELIMITERS.filter(function(p){return e.delimiter.indexOf(p)!==-1}).length||(r=e.delimiter),typeof e.quotes!="boolean"&&typeof e.quotes!="function"&&!Array.isArray(e.quotes)||(i=e.quotes),typeof e.skipEmptyLines!="boolean"&&typeof e.skipEmptyLines!="string"||(w=e.skipEmptyLines),typeof e.newline=="string"&&(l=e.newline),typeof e.quoteChar=="string"&&(v=e.quoteChar),typeof e.header=="boolean"&&(n=e.header),Array.isArray(e.columns)){if(e.columns.length===0)throw new Error("Option columns is empty");m=e.columns}e.escapeChar!==void 0&&(M=e.escapeChar+v),e.escapeFormulae instanceof RegExp?T=e.escapeFormulae:typeof e.escapeFormulae=="boolean"&&e.escapeFormulae&&(T=/^[=+\-@\t\r].*$/)}})(),new RegExp(V(v),"g"));if(typeof t=="string"&&(t=JSON.parse(t)),Array.isArray(t)){if(!t.length||Array.isArray(t[0]))return j(null,t,w);if(typeof t[0]=="object")return j(m||Object.keys(t[0]),t,w)}else if(typeof t=="object")return typeof t.data=="string"&&(t.data=JSON.parse(t.data)),Array.isArray(t.data)&&(t.fields||(t.fields=t.meta&&t.meta.fields||m),t.fields||(t.fields=Array.isArray(t.data[0])?t.fields:typeof t.data[0]=="object"?Object.keys(t.data[0]):[]),Array.isArray(t.data[0])||typeof t.data[0]=="object"||(t.data=[t.data])),j(t.fields||[],t.data||[],w);throw new Error("Unable to serialize unrecognized input");function j(p,s,C){var R="",L=(typeof p=="string"&&(p=JSON.parse(p)),typeof s=="string"&&(s=JSON.parse(s)),Array.isArray(p)&&0<p.length),z=!Array.isArray(s[0]);if(L&&n){for(var h=0;h<p.length;h++)0<h&&(R+=r),R+=u(p[h],h);0<s.length&&(R+=l)}for(var c=0;c<s.length;c++){var E=(L?p:s[c]).length,f=!1,O=L?Object.keys(s[c]).length===0:s[c].length===0;if(C&&!L&&(f=C==="greedy"?s[c].join("").trim()==="":s[c].length===1&&s[c][0].length===0),C==="greedy"&&L){for(var A=[],b=0;b<E;b++){var y=z?p[b]:b;A.push(s[c][y])}f=A.join("").trim()===""}if(!f){for(var g=0;g<E;g++){0<g&&!O&&(R+=r);var U=L&&z?p[g]:g;R+=u(s[c][U],g)}c<s.length-1&&(!C||0<E&&!O)&&(R+=l)}}return R}function u(p,s){var C,R;return p==null?"":p.constructor===Date?JSON.stringify(p).slice(1,25):(R=!1,T&&typeof p=="string"&&T.test(p)&&(p="'"+p,R=!0),C=p.toString().replace(o,M),(R=R||i===!0||typeof i=="function"&&i(p,s)||Array.isArray(i)&&i[s]||((L,z)=>{for(var h=0;h<z.length;h++)if(-1<L.indexOf(z[h]))return!0;return!1})(C,a.BAD_DELIMITERS)||-1<C.indexOf(r)||C.charAt(0)===" "||C.charAt(C.length-1)===" ")?v+C+v:C)}},a.RECORD_SEP="",a.UNIT_SEP="",a.BYTE_ORDER_MARK="\uFEFF",a.BAD_DELIMITERS=["\r",`
|
|
15
|
+
`,'"',a.BYTE_ORDER_MARK],a.WORKERS_SUPPORTED=!P&&!!k.Worker,a.NODE_STREAM_INPUT=1,a.LocalChunkSize=10485760,a.RemoteChunkSize=5242880,a.DefaultDelimiter=",",a.Parser=st,a.ParserHandle=ht,a.NetworkStreamer=it,a.FileStreamer=rt,a.StringStreamer=X,a.ReadableStreamStreamer=nt,k.jQuery&&((Q=k.jQuery).fn.parse=function(t){var e=t.config||{},i=[];return this.each(function(l){if(Q(this).prop("tagName").toUpperCase()!=="INPUT"||Q(this).attr("type").toLowerCase()!=="file"||!k.FileReader||!this.files||this.files.length===0)return!0;for(var v=0;v<this.files.length;v++)i.push({file:this.files[v],inputElem:this,instanceConfig:Q.extend({},e)})}),n(),this;function n(){if(i.length===0)_(t.complete)&&t.complete();else{var l,v,M,w=i[0];if(_(t.before)){var m=t.before(w.file,w.inputElem);if(typeof m=="object"){if(m.action==="abort")return l=w.file,v=w.inputElem,M=m.reason,void(_(t.error)&&t.error({name:"AbortError"},l,v,M));if(m.action==="skip")return void r();typeof m.config=="object"&&(w.instanceConfig=Q.extend(w.instanceConfig,m.config))}else if(m==="skip")return void r()}var T=w.instanceConfig.complete;w.instanceConfig.complete=function(o){_(T)&&T(o,w.file,w.inputElem),r()},a.parse(w.file,w.instanceConfig)}}function r(){i.splice(0,1),n()}}),B&&(k.onmessage=function(t){t=t.data,a.WORKER_ID===void 0&&t&&(a.WORKER_ID=t.workerId),typeof t.input=="string"?k.postMessage({workerId:a.WORKER_ID,results:a.parse(t.input,t.config),finished:!0}):(k.File&&t.input instanceof File||t.input instanceof Object)&&(t=a.parse(t.input,t.config))&&k.postMessage({workerId:a.WORKER_ID,results:t,finished:!0})}),(it.prototype=Object.create(K.prototype)).constructor=it,(rt.prototype=Object.create(K.prototype)).constructor=rt,(X.prototype=Object.create(X.prototype)).constructor=X,(nt.prototype=Object.create(K.prototype)).constructor=nt,a}()),pt.exports);const kt=function(Y,Q){for(var k=0;k<Q.length;k++){const P=Q[k];if(typeof P!="string"&&!Array.isArray(P)){for(const B in P)if(B!=="default"&&!(B in Y)){const J=Object.getOwnPropertyDescriptor(P,B);J&&Object.defineProperty(Y,B,J.get?J:{enumerable:!0,get:()=>P[B]})}}}return Object.freeze(Object.defineProperty(Y,Symbol.toStringTag,{value:"Module"}))}({__proto__:null,default:yt.Gg(gt)},[gt]);exports.p=kt;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";/**
|
|
2
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.5.0
|
|
3
|
+
*
|
|
4
|
+
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
|
+
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
|
+
*/Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});exports.default={CONVERT:{s:"Converts a number from one measurement system to another",p:{number:{d:"is the value in from_unit to convert."},fromUnit:{d:"is the units for number."},toUnit:{d:"is the units for the result"}}}};
|