@sheetxl/studio-mui 0.1.98
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/LICENSE.md +11 -0
- package/README.md +24 -0
- package/build/browser/cjs/4XrhSt2xtUIXkiCt.cjs +1516 -0
- package/build/browser/cjs/B3EvhaQf456RMc1Q.cjs +6 -0
- package/build/browser/cjs/B3kl467PN2cpvrfz.cjs +12 -0
- package/build/browser/cjs/B5LCoenQbQmzic16.cjs +314 -0
- package/build/browser/cjs/BBuyHZwFlDRvHzBH.cjs +7 -0
- package/build/browser/cjs/BGoG_ROASNB2owBR.cjs +28 -0
- package/build/browser/cjs/BJ6Da8vZLjAl44pz.cjs +6 -0
- package/build/browser/cjs/BL_UVvG75SFsFaT3.cjs +6 -0
- package/build/browser/cjs/BNDoTytIOGtVh5l9.cjs +6 -0
- package/build/browser/cjs/BQOyVCuOdwDja_VV.cjs +42 -0
- package/build/browser/cjs/BRiPktKUmeJipjaa.cjs +6 -0
- package/build/browser/cjs/BabbNVs5iKg49rfk.cjs +6 -0
- package/build/browser/cjs/BcOX5vODdThWbKrR.cjs +6 -0
- package/build/browser/cjs/BchlMljYmXDs0Ol2.cjs +6 -0
- package/build/browser/cjs/BmYZvm13acvbFhOu.cjs +6 -0
- package/build/browser/cjs/BmbsW1n0-CkF3ITF.cjs +6 -0
- package/build/browser/cjs/BnCUyGP_ERKmL3ZR.cjs +6 -0
- package/build/browser/cjs/BtP4E1_yhMjpfbr5.cjs +6 -0
- package/build/browser/cjs/C3E9wmSfmgYmXfJN.cjs +205 -0
- package/build/browser/cjs/C3Hl78e9qfEHxJYc.cjs +6 -0
- package/build/browser/cjs/CEvRH8aOx3etutK_.cjs +17 -0
- package/build/browser/cjs/CLZSdaBnKDfb142R.cjs +6 -0
- package/build/browser/cjs/CN1cS39WcNrcPVqS.cjs +129 -0
- package/build/browser/cjs/CSH1hUnHovjo8Lb8.cjs +6 -0
- package/build/browser/cjs/CTNt3asYQRA-MROc.cjs +47 -0
- package/build/browser/cjs/C_JZEtvgcli6T7Wg.cjs +11 -0
- package/build/browser/cjs/CbaYZmvS8u-p_Z8Z.cjs +6 -0
- package/build/browser/cjs/Cc-4c3DRm96wq5rj.cjs +12 -0
- package/build/browser/cjs/CnY6DbatGmPyylfU.cjs +20 -0
- package/build/browser/cjs/CqkQGfzNax6GmZFo.cjs +6 -0
- package/build/browser/cjs/D2AF0a4vbNKzFxzA.cjs +21 -0
- package/build/browser/cjs/D4y1iYdx8sdwQ50T.cjs +6 -0
- package/build/browser/cjs/D5cF1EnyvnPY2IxS.cjs +150 -0
- package/build/browser/cjs/DA1-OPTYQTepGKEg.cjs +11 -0
- package/build/browser/cjs/DJDMVDpUqlEKYLjt.cjs +6 -0
- package/build/browser/cjs/DLXLJ8SNNjwM5C-P.cjs +6 -0
- package/build/browser/cjs/DV8lOsZBgyx7MTBW.cjs +6 -0
- package/build/browser/cjs/DZAPn_d9mpvfRzsb.cjs +6 -0
- package/build/browser/cjs/DaicqO_9d1hYzyB_.cjs +11 -0
- package/build/browser/cjs/Dfh6eMCbAjW14fdh.cjs +6 -0
- package/build/browser/cjs/DhI2lgDZL8GqBejN.cjs +6 -0
- package/build/browser/cjs/Ds6s8fpzOZsd2m1r.cjs +6 -0
- package/build/browser/cjs/DvIWGmDT5uBVQ5zH.cjs +16 -0
- package/build/browser/cjs/DvLgu20RiaayrJcW.cjs +7 -0
- package/build/browser/cjs/Dvhwt25gyHzxQLrp.cjs +6 -0
- package/build/browser/cjs/DvwApJM_CVrlpLxn.cjs +6 -0
- package/build/browser/cjs/DwVYzo4a05DMfta_.cjs +28 -0
- package/build/browser/cjs/NYdqUauA5i2q33UZ.cjs +6 -0
- package/build/browser/cjs/S2Xfq-KDgoT7ipPC.cjs +25 -0
- package/build/browser/cjs/TOZQZr9ZZ_Q-jdQZ.cjs +6 -0
- package/build/browser/cjs/bJuLOalXTwrshZL3.cjs +16 -0
- package/build/browser/cjs/eh9refYW4Gm25cmW.cjs +6 -0
- package/build/browser/cjs/hKqcVeb_8_4M79xj.cjs +6 -0
- package/build/browser/cjs/index.cjs +7 -0
- package/build/browser/cjs/is17hbP-kpOIBRP3.cjs +6 -0
- package/build/browser/cjs/pNY789kHWwRQXqse.cjs +17 -0
- package/build/browser/cjs/qJcc3ALtLWml32LU.cjs +18 -0
- package/build/browser/cjs/vWgVoELLfZ2ff1xL.cjs +6 -0
- package/build/browser/esm/2kwF7RVUWBY1zsgG.mjs +16 -0
- package/build/browser/esm/7Imk0owJj7oNHR7v.mjs +48 -0
- package/build/browser/esm/AuNwPf0DXe0twn35.mjs +1592 -0
- package/build/browser/esm/B1Kw9U_AxCk0Aq9f.mjs +59 -0
- package/build/browser/esm/B9l1_Tfw_tMhKCNB.mjs +437 -0
- package/build/browser/esm/B9winT3ff8rc4sbn.mjs +490 -0
- package/build/browser/esm/BEo9XX1sHmVjScSm.mjs +16 -0
- package/build/browser/esm/BGTcOBCyrTTlov_i.mjs +13399 -0
- package/build/browser/esm/BMGddfMXtKQ9AXQS.mjs +16 -0
- package/build/browser/esm/BQSa7N7QMGysdZdU.mjs +3932 -0
- package/build/browser/esm/BVEuc_3fLG2GN34k.mjs +16 -0
- package/build/browser/esm/BVh9YUwiSov8wcyY.mjs +1708 -0
- package/build/browser/esm/BZt5yM_TvoPXqdeA.mjs +3867 -0
- package/build/browser/esm/BfU8KdaB9wrEPWM-.mjs +16 -0
- package/build/browser/esm/BjUaiSvRZnas-HJW.mjs +16 -0
- package/build/browser/esm/BqiVaoAYJJqPrCUZ.mjs +16 -0
- package/build/browser/esm/BtMqJ5CRpKuAC4UQ.mjs +1486 -0
- package/build/browser/esm/BwvMR2cgGwFn8hAL.mjs +36 -0
- package/build/browser/esm/BxU3eVA-Adrnq7ZJ.mjs +1372 -0
- package/build/browser/esm/C00coampLNiXjWJJ.mjs +436 -0
- package/build/browser/esm/C6nh1rvYnAg2w2V2.mjs +838 -0
- package/build/browser/esm/C8gc149K34Zi2lP2.mjs +16 -0
- package/build/browser/esm/CGSkuCZY1EmTUNlQ.mjs +52 -0
- package/build/browser/esm/CKXzosgZX8Xe3l59.mjs +16 -0
- package/build/browser/esm/CNYANG0Z7mhGYo00.mjs +859 -0
- package/build/browser/esm/CV_FNw2i_aEc5nwA.mjs +16 -0
- package/build/browser/esm/CYSj0-zys2FKWgnb.mjs +18 -0
- package/build/browser/esm/CbTs5cvVaP1vPCYD.mjs +2248 -0
- package/build/browser/esm/CfAob8gGydmX1xQu.mjs +16 -0
- package/build/browser/esm/ChGigf2OPu7d44Km.mjs +16 -0
- package/build/browser/esm/CnzGN0S6zOfL_3SS.mjs +1358 -0
- package/build/browser/esm/CpyeUtXgDmrcMESB.mjs +52 -0
- package/build/browser/esm/CrEGjvQKhAcdw5sY.mjs +16 -0
- package/build/browser/esm/CtrrmHx9YbrOithw.mjs +152 -0
- package/build/browser/esm/CzAM0pDdZ7sjGgn9.mjs +86 -0
- package/build/browser/esm/D0oVDcgRUMZ9MHzu.mjs +41 -0
- package/build/browser/esm/D54Fpmnd9MzCzp-Z.mjs +16 -0
- package/build/browser/esm/D78-3ghInxscHLVq.mjs +23 -0
- package/build/browser/esm/DEpR6b4DMs-va6RS.mjs +43734 -0
- package/build/browser/esm/DEsqE49cIQZ8AqCe.mjs +398 -0
- package/build/browser/esm/DGe70xvBhc62ZVZz.mjs +2410 -0
- package/build/browser/esm/DXapJ5_yR4E8vDaK.mjs +1685 -0
- package/build/browser/esm/DjAZeDxBIBZsRTm3.mjs +24 -0
- package/build/browser/esm/DttdPwwDTcRX4uwL.mjs +44 -0
- package/build/browser/esm/FXcO0MVElhw9cc3v.mjs +49 -0
- package/build/browser/esm/GpycqJcrwTRtjEqA.mjs +16 -0
- package/build/browser/esm/HCE-tMxyVd0m-PgN.mjs +16 -0
- package/build/browser/esm/OCdyQRicV8KxUwMt.mjs +16 -0
- package/build/browser/esm/UukTgmLv7or2mhlB.mjs +16 -0
- package/build/browser/esm/_cuE13TWr3oEoKGP.mjs +34 -0
- package/build/browser/esm/aIlK3Ybu-1T4WHPv.mjs +640 -0
- package/build/browser/esm/bFSkTthAEOn7gv5x.mjs +16 -0
- package/build/browser/esm/bOhN6up-rdLRp82s.mjs +5588 -0
- package/build/browser/esm/index.mjs +85 -0
- package/build/browser/esm/ng3JdG4_hi9SgtHk.mjs +16 -0
- package/build/browser/esm/o6U2z4gZ7GE4QKZD.mjs +16 -0
- package/build/browser/esm/psav3cvsBQQczhPL.mjs +16 -0
- package/build/browser/esm/vn0iS301yg2hAbYd.mjs +51 -0
- package/build/licenses/dependencies.txt +1341 -0
- package/build/node/assets/style.css +1 -0
- package/build/node/esm/2kwF7RVUWBY1zsgG.mjs +16 -0
- package/build/node/esm/B-Xlyl81h27-bnvO.mjs +16 -0
- package/build/node/esm/B1_NYsn5D8x9QedP.mjs +307 -0
- package/build/node/esm/BCA5bxOeDA8k1Bm1.mjs +16 -0
- package/build/node/esm/BEo9XX1sHmVjScSm.mjs +16 -0
- package/build/node/esm/BIfdVpnJR1TZwCPR.mjs +1378 -0
- package/build/node/esm/BIqDzNJtkm-dyH0v.mjs +154 -0
- package/build/node/esm/BMGddfMXtKQ9AXQS.mjs +16 -0
- package/build/node/esm/BUOdfqhtCh8lhOhm.mjs +4000 -0
- package/build/node/esm/BYbE15S73xgn7S5E.mjs +88 -0
- package/build/node/esm/BfU8KdaB9wrEPWM-.mjs +16 -0
- package/build/node/esm/BkyivirgeiDKFSjk.mjs +16 -0
- package/build/node/esm/Bm1RqNJ-XvHpJW9z.mjs +831 -0
- package/build/node/esm/BqiVaoAYJJqPrCUZ.mjs +16 -0
- package/build/node/esm/Bx-30HInllXS7M_J.mjs +41 -0
- package/build/node/esm/Bx3lQBEvcqhxffT-.mjs +1726 -0
- package/build/node/esm/BxsKlaBFnb5wNq6R.mjs +53 -0
- package/build/node/esm/C4PMhNAV0KpPsKFj.mjs +24 -0
- package/build/node/esm/C7x3L6HtPhZjSrrZ.mjs +471 -0
- package/build/node/esm/C8gc149K34Zi2lP2.mjs +16 -0
- package/build/node/esm/CK-kn1p9NGRVM_h7.mjs +16 -0
- package/build/node/esm/CKR6snAwSONs7kfL.mjs +19 -0
- package/build/node/esm/CKXzosgZX8Xe3l59.mjs +16 -0
- package/build/node/esm/CLE_RHHvsDeoZ9Zd.mjs +561 -0
- package/build/node/esm/CMKci_5THkcJ-w9a.mjs +80 -0
- package/build/node/esm/CVU9bu6AnxcgkEwq.mjs +13466 -0
- package/build/node/esm/CfAob8gGydmX1xQu.mjs +16 -0
- package/build/node/esm/ChGigf2OPu7d44Km.mjs +16 -0
- package/build/node/esm/CkvkuPSf4R_DqArg.mjs +5648 -0
- package/build/node/esm/CnBMj0oJAyr9ZbjP.mjs +23 -0
- package/build/node/esm/CrEGjvQKhAcdw5sY.mjs +16 -0
- package/build/node/esm/Crx9i_8dm3OQsk_T.mjs +28 -0
- package/build/node/esm/CwUulbiMQH11aF4x.mjs +16 -0
- package/build/node/esm/D0Lh0V1tkdJPxZnI.mjs +392 -0
- package/build/node/esm/D54Fpmnd9MzCzp-Z.mjs +16 -0
- package/build/node/esm/D5bg3v_W8K9MVp0j.mjs +1711 -0
- package/build/node/esm/D8F08tiG98tM_voL.mjs +16 -0
- package/build/node/esm/DR7o1DOIK9zdiBgS.mjs +50 -0
- package/build/node/esm/DYEgm2kd3haV-Ml8.mjs +1246 -0
- package/build/node/esm/DfzhmhZ4I0Zurcqn.mjs +44 -0
- package/build/node/esm/Dg_ERnlsy5hwbzMA.mjs +1498 -0
- package/build/node/esm/Dt4cj_0sWgvt4FGj.mjs +92 -0
- package/build/node/esm/GpycqJcrwTRtjEqA.mjs +16 -0
- package/build/node/esm/LlkIFFfAjLiQ5Or6.mjs +3840 -0
- package/build/node/esm/OCdyQRicV8KxUwMt.mjs +16 -0
- package/build/node/esm/QATDL2FGAYcVnd33.mjs +49 -0
- package/build/node/esm/SvgA2TyqJYOzheuf.mjs +26 -0
- package/build/node/esm/VZ150KIUh5JVRqpk.mjs +52 -0
- package/build/node/esm/XRLHatWlgABiuBDS.mjs +52 -0
- package/build/node/esm/bFSkTthAEOn7gv5x.mjs +16 -0
- package/build/node/esm/index.mjs +44754 -0
- package/build/node/esm/lgtVRbg712G5Ba-x.mjs +60 -0
- package/build/node/esm/ng3JdG4_hi9SgtHk.mjs +16 -0
- package/build/node/esm/psav3cvsBQQczhPL.mjs +16 -0
- package/build/node/esm/zWnN2OzbhzCc6T7u.mjs +86 -0
- package/build/package.json +84 -0
- package/build/types/index.d.ts +1848 -0
- package/package.json +100 -0
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";/**
|
|
2
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.0.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 ce,ue,ne={},ee={},U={},oe={},H={};function Ne(){if(ue)return H;ue=1;var g=H&&H.__awaiter||function(e,t,o,n){return new(o||(o=Promise))(function(r,s){function l(O){try{D(n.next(O))}catch(c){s(c)}}function f(O){try{D(n.throw(O))}catch(c){s(c)}}function D(O){var c;O.done?r(O.value):(c=O.value,c instanceof o?c:new o(function(i){i(c)})).then(l,f)}D((n=n.apply(e,t||[])).next())})},x=H&&H.__generator||function(e,t){var o,n,r,s,l={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return s={next:f(0),throw:f(1),return:f(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function f(D){return function(O){return function(c){if(o)throw new TypeError("Generator is already executing.");for(;l;)try{if(o=1,n&&(r=2&c[0]?n.return:c[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,c[1])).done)return r;switch(n=0,r&&(c=[2&c[0],r.value]),c[0]){case 0:case 1:r=c;break;case 4:return l.label++,{value:c[1],done:!1};case 5:l.label++,n=c[1],c=[0];continue;case 7:c=l.ops.pop(),l.trys.pop();continue;default:if(!((r=(r=l.trys).length>0&&r[r.length-1])||c[0]!==6&&c[0]!==2)){l=0;continue}if(c[0]===3&&(!r||c[1]>r[0]&&c[1]<r[3])){l.label=c[1];break}if(c[0]===6&&l.label<r[1]){l.label=r[1],r=c;break}if(r&&l.label<r[2]){l.label=r[2],l.ops.push(c);break}r[2]&&l.ops.pop(),l.trys.pop();continue}c=t.call(e,l)}catch(i){c=[6,i],n=0}finally{o=r=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([D,O])}}};Object.defineProperty(H,"__esModule",{value:!0}),H.JsDelivrSourceResolver=void 0;var j=function(){function e(){}return e.prototype.resolvePackageJson=function(t,o,n){return g(this,void 0,void 0,function(){return x(this,function(r){switch(r.label){case 0:return[4,this.resolveFile("https://cdn.jsdelivr.net/npm/".concat(t).concat(o?"@".concat(o):"").concat(n?"/".concat(n):"","/package.json"))];case 1:return[2,r.sent()]}})})},e.prototype.resolveSourceFile=function(t,o,n){return g(this,void 0,void 0,function(){return x(this,function(r){switch(r.label){case 0:return[4,this.resolveFile("https://cdn.jsdelivr.net/npm/".concat(t).concat(o?"@".concat(o):"","/").concat(n))];case 1:return[2,r.sent()]}})})},e.prototype.resolveFile=function(t){return g(this,void 0,void 0,function(){var o;return x(this,function(n){switch(n.label){case 0:return[4,fetch(t,{method:"GET"})];case 1:return(o=n.sent()).ok?[4,o.text()]:[3,3];case 2:return[2,n.sent()];case 3:if(o.status===404)return[2,""];throw Error("Error other than 404 while fetching from Unpkg at ".concat(t));case 4:return[2]}})})},e}();return H.JsDelivrSourceResolver=j,H}var le,pe,he,N={},V={};function se(){if(pe)return le;function g(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function x(e,t){for(var o,n="",r=0,s=-1,l=0,f=0;f<=e.length;++f){if(f<e.length)o=e.charCodeAt(f);else{if(o===47)break;o=47}if(o===47){if(s!==f-1&&l!==1)if(s!==f-1&&l===2){if(n.length<2||r!==2||n.charCodeAt(n.length-1)!==46||n.charCodeAt(n.length-2)!==46){if(n.length>2){var D=n.lastIndexOf("/");if(D!==n.length-1){D===-1?(n="",r=0):r=(n=n.slice(0,D)).length-1-n.lastIndexOf("/"),s=f,l=0;continue}}else if(n.length===2||n.length===1){n="",r=0,s=f,l=0;continue}}t&&(n.length>0?n+="/..":n="..",r=2)}else n.length>0?n+="/"+e.slice(s+1,f):n=e.slice(s+1,f),r=f-s-1;s=f,l=0}else o===46&&l!==-1?++l:l=-1}return n}pe=1;var j={resolve:function(){for(var e,t="",o=!1,n=arguments.length-1;n>=-1&&!o;n--){var r;n>=0?r=arguments[n]:(e===void 0&&(e=process.cwd()),r=e),g(r),r.length!==0&&(t=r+"/"+t,o=r.charCodeAt(0)===47)}return t=x(t,!o),o?t.length>0?"/"+t:"/":t.length>0?t:"."},normalize:function(e){if(g(e),e.length===0)return".";var t=e.charCodeAt(0)===47,o=e.charCodeAt(e.length-1)===47;return(e=x(e,!t)).length!==0||t||(e="."),e.length>0&&o&&(e+="/"),t?"/"+e:e},isAbsolute:function(e){return g(e),e.length>0&&e.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var e,t=0;t<arguments.length;++t){var o=arguments[t];g(o),o.length>0&&(e===void 0?e=o:e+="/"+o)}return e===void 0?".":j.normalize(e)},relative:function(e,t){if(g(e),g(t),e===t||(e=j.resolve(e))===(t=j.resolve(t)))return"";for(var o=1;o<e.length&&e.charCodeAt(o)===47;++o);for(var n=e.length,r=n-o,s=1;s<t.length&&t.charCodeAt(s)===47;++s);for(var l=t.length-s,f=r<l?r:l,D=-1,O=0;O<=f;++O){if(O===f){if(l>f){if(t.charCodeAt(s+O)===47)return t.slice(s+O+1);if(O===0)return t.slice(s+O)}else r>f&&(e.charCodeAt(o+O)===47?D=O:O===0&&(D=0));break}var c=e.charCodeAt(o+O);if(c!==t.charCodeAt(s+O))break;c===47&&(D=O)}var i="";for(O=o+D+1;O<=n;++O)O!==n&&e.charCodeAt(O)!==47||(i.length===0?i+="..":i+="/..");return i.length>0?i+t.slice(s+D):(s+=D,t.charCodeAt(s)===47&&++s,t.slice(s))},_makeLong:function(e){return e},dirname:function(e){if(g(e),e.length===0)return".";for(var t=e.charCodeAt(0),o=t===47,n=-1,r=!0,s=e.length-1;s>=1;--s)if((t=e.charCodeAt(s))===47){if(!r){n=s;break}}else r=!1;return n===-1?o?"/":".":o&&n===1?"//":e.slice(0,n)},basename:function(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');g(e);var o,n=0,r=-1,s=!0;if(t!==void 0&&t.length>0&&t.length<=e.length){if(t.length===e.length&&t===e)return"";var l=t.length-1,f=-1;for(o=e.length-1;o>=0;--o){var D=e.charCodeAt(o);if(D===47){if(!s){n=o+1;break}}else f===-1&&(s=!1,f=o+1),l>=0&&(D===t.charCodeAt(l)?--l===-1&&(r=o):(l=-1,r=f))}return n===r?r=f:r===-1&&(r=e.length),e.slice(n,r)}for(o=e.length-1;o>=0;--o)if(e.charCodeAt(o)===47){if(!s){n=o+1;break}}else r===-1&&(s=!1,r=o+1);return r===-1?"":e.slice(n,r)},extname:function(e){g(e);for(var t=-1,o=0,n=-1,r=!0,s=0,l=e.length-1;l>=0;--l){var f=e.charCodeAt(l);if(f!==47)n===-1&&(r=!1,n=l+1),f===46?t===-1?t=l:s!==1&&(s=1):t!==-1&&(s=-1);else if(!r){o=l+1;break}}return t===-1||n===-1||s===0||s===1&&t===n-1&&t===o+1?"":e.slice(t,n)},format:function(e){if(e===null||typeof e!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return o=(t=e).dir||t.root,n=t.base||(t.name||"")+(t.ext||""),o?o===t.root?o+n:o+"/"+n:n;var t,o,n},parse:function(e){g(e);var t={root:"",dir:"",base:"",ext:"",name:""};if(e.length===0)return t;var o,n=e.charCodeAt(0),r=n===47;r?(t.root="/",o=1):o=0;for(var s=-1,l=0,f=-1,D=!0,O=e.length-1,c=0;O>=o;--O)if((n=e.charCodeAt(O))!==47)f===-1&&(D=!1,f=O+1),n===46?s===-1?s=O:c!==1&&(c=1):s!==-1&&(c=-1);else if(!D){l=O+1;break}return s===-1||f===-1||c===0||c===1&&s===f-1&&s===l+1?f!==-1&&(t.base=t.name=l===0&&r?e.slice(1,f):e.slice(l,f)):(l===0&&r?(t.name=e.slice(1,s),t.base=e.slice(1,f)):(t.name=e.slice(l,s),t.base=e.slice(l,f)),t.ext=e.slice(s,f)),l>0?t.dir=e.slice(0,l-1):r&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};return j.posix=j,le=j}var fe,te={};function Ie(){if(fe)return te;fe=1;var g=te&&te.__importDefault||function(j){return j&&j.__esModule?j:{default:j}};Object.defineProperty(te,"__esModule",{value:!0}),te.importResourcePathToString=void 0;var x=g(se());return te.importResourcePathToString=function(j){var e;switch(j.kind){case"package":return x.default.join(j.packageName,(e=j.importPath)!==null&&e!==void 0?e:"","package.json");case"relative":return x.default.join(j.sourcePath,j.importPath);case"relative-in-package":return x.default.join(j.packageName,j.sourcePath,j.importPath)}},te}var de,ie={};function ve(){return de||(de=1,Object.defineProperty(ie,"__esModule",{value:!0}),ie.invokeUpdate=void 0,ie.invokeUpdate=function(g,x){var j,e="".concat(g.type,": ");switch(g.type){case"CodeChanged":case"ResolveNewImports":e+="";break;case"LookedUpTypeFile":e+='"'.concat(g.path,'" was ').concat(g.success?"sucessfully":"not sucessfully"," looked up");break;case"AttemptedLookUpFile":e+='"'.concat(g.path,'" was ').concat(g.success?"sucessfully":"not sucessfully"," attempted to looked up");break;case"LookedUpPackage":e+='package.json for package "'.concat(g.package,'" was ').concat(g.success?"sucessfully":"not sucessfully"," looked up").concat(g.definitelyTyped?" (found in definitely typed repo)":"");break;case"LoadedFromCache":e+='"'.concat(g.importPath,'" was loaded from cache');break;case"StoredToCache":e+='"'.concat(g.importPath,'" was stored to cache')}e.endsWith(": ")&&(e=e.slice(void 0,-2)),(j=x.onUpdate)===null||j===void 0||j.call(x,g,e)}),ie}var ye,ge,me,be,ae={};function ke(){if(ye)return ae;ye=1,Object.defineProperty(ae,"__esModule",{value:!0}),ae.RecursionDepth=void 0;var g=function(){function x(j,e,t){e===void 0&&(e=0),t===void 0&&(t=0),this.options=j,this.fileRecursionDepth=e,this.packageRecursionDepth=t}return x.prototype.nextPackage=function(){return new x(this.options,this.fileRecursionDepth,this.packageRecursionDepth+1)},x.prototype.nextFile=function(){return new x(this.options,this.fileRecursionDepth+1,this.packageRecursionDepth)},x.prototype.same=function(){return new x(this.options,this.fileRecursionDepth,this.packageRecursionDepth)},x.prototype.shouldStop=function(){return this.options.fileRecursionDepth>0&&this.fileRecursionDepth>=this.options.fileRecursionDepth||this.options.packageRecursionDepth>0&&this.packageRecursionDepth>=this.options.packageRecursionDepth},x}();return ae.RecursionDepth=g,ae}function Le(){if(me)return U;me=1;var g=U&&U.__assign||function(){return g=Object.assign||function(i){for(var b,k=1,A=arguments.length;k<A;k++)for(var y in b=arguments[k])Object.prototype.hasOwnProperty.call(b,y)&&(i[y]=b[y]);return i},g.apply(this,arguments)},x=U&&U.__createBinding||(Object.create?function(i,b,k,A){A===void 0&&(A=k);var y=Object.getOwnPropertyDescriptor(b,k);y&&!("get"in y?!b.__esModule:y.writable||y.configurable)||(y={enumerable:!0,get:function(){return b[k]}}),Object.defineProperty(i,A,y)}:function(i,b,k,A){A===void 0&&(A=k),i[A]=b[k]}),j=U&&U.__setModuleDefault||(Object.create?function(i,b){Object.defineProperty(i,"default",{enumerable:!0,value:b})}:function(i,b){i.default=b}),e=U&&U.__importStar||function(i){if(i&&i.__esModule)return i;var b={};if(i!=null)for(var k in i)k!=="default"&&Object.prototype.hasOwnProperty.call(i,k)&&x(b,i,k);return j(b,i),b},t=U&&U.__awaiter||function(i,b,k,A){return new(k||(k=Promise))(function(y,T){function E(X){try{Z(A.next(X))}catch(R){T(R)}}function Y(X){try{Z(A.throw(X))}catch(R){T(R)}}function Z(X){var R;X.done?y(X.value):(R=X.value,R instanceof k?R:new k(function(G){G(R)})).then(E,Y)}Z((A=A.apply(i,b||[])).next())})},o=U&&U.__generator||function(i,b){var k,A,y,T,E={label:0,sent:function(){if(1&y[0])throw y[1];return y[1]},trys:[],ops:[]};return T={next:Y(0),throw:Y(1),return:Y(2)},typeof Symbol=="function"&&(T[Symbol.iterator]=function(){return this}),T;function Y(Z){return function(X){return function(R){if(k)throw new TypeError("Generator is already executing.");for(;E;)try{if(k=1,A&&(y=2&R[0]?A.return:R[0]?A.throw||((y=A.return)&&y.call(A),0):A.next)&&!(y=y.call(A,R[1])).done)return y;switch(A=0,y&&(R=[2&R[0],y.value]),R[0]){case 0:case 1:y=R;break;case 4:return E.label++,{value:R[1],done:!1};case 5:E.label++,A=R[1],R=[0];continue;case 7:R=E.ops.pop(),E.trys.pop();continue;default:if(!((y=(y=E.trys).length>0&&y[y.length-1])||R[0]!==6&&R[0]!==2)){E=0;continue}if(R[0]===3&&(!y||R[1]>y[0]&&R[1]<y[3])){E.label=R[1];break}if(R[0]===6&&E.label<y[1]){E.label=y[1],y=R;break}if(y&&E.label<y[2]){E.label=y[2],E.ops.push(R);break}y[2]&&E.ops.pop(),E.trys.pop();continue}R=b.call(i,E)}catch(G){R=[6,G],A=0}finally{k=y=0}if(5&R[0])throw R[1];return{value:R[0]?R[1]:void 0,done:!0}}([Z,X])}}},n=U&&U.__values||function(i){var b=typeof Symbol=="function"&&Symbol.iterator,k=b&&i[b],A=0;if(k)return k.call(i);if(i&&typeof i.length=="number")return{next:function(){return i&&A>=i.length&&(i=void 0),{value:i&&i[A++],done:!i}}};throw new TypeError(b?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(U,"__esModule",{value:!0}),U.AutoTypingsCore=void 0;var r=function(){if(ce)return oe;ce=1,Object.defineProperty(oe,"__esModule",{value:!0}),oe.DummySourceCache=void 0;var i=function(){function b(){}return b.prototype.getFile=function(k){return Promise.resolve(void 0)},b.prototype.isFileAvailable=function(k){return Promise.resolve(!1)},b.prototype.storeFile=function(k,A){return Promise.resolve(void 0)},b.prototype.clear=function(){return Promise.resolve(void 0)},b}();return oe.DummySourceCache=i,oe}(),s=Ne(),l=function(){if(ge)return N;ge=1;var i=N&&N.__assign||function(){return i=Object.assign||function(_){for(var a,h=1,v=arguments.length;h<v;h++)for(var u in a=arguments[h])Object.prototype.hasOwnProperty.call(a,u)&&(_[u]=a[u]);return _},i.apply(this,arguments)},b=N&&N.__createBinding||(Object.create?function(_,a,h,v){v===void 0&&(v=h);var u=Object.getOwnPropertyDescriptor(a,h);u&&!("get"in u?!a.__esModule:u.writable||u.configurable)||(u={enumerable:!0,get:function(){return a[h]}}),Object.defineProperty(_,v,u)}:function(_,a,h,v){v===void 0&&(v=h),_[v]=a[h]}),k=N&&N.__setModuleDefault||(Object.create?function(_,a){Object.defineProperty(_,"default",{enumerable:!0,value:a})}:function(_,a){_.default=a}),A=N&&N.__importStar||function(_){if(_&&_.__esModule)return _;var a={};if(_!=null)for(var h in _)h!=="default"&&Object.prototype.hasOwnProperty.call(_,h)&&b(a,_,h);return k(a,_),a},y=N&&N.__awaiter||function(_,a,h,v){return new(h||(h=Promise))(function(u,S){function m(C){try{p(v.next(C))}catch(d){S(d)}}function w(C){try{p(v.throw(C))}catch(d){S(d)}}function p(C){var d;C.done?u(C.value):(d=C.value,d instanceof h?d:new h(function(P){P(d)})).then(m,w)}p((v=v.apply(_,a||[])).next())})},T=N&&N.__generator||function(_,a){var h,v,u,S,m={label:0,sent:function(){if(1&u[0])throw u[1];return u[1]},trys:[],ops:[]};return S={next:w(0),throw:w(1),return:w(2)},typeof Symbol=="function"&&(S[Symbol.iterator]=function(){return this}),S;function w(p){return function(C){return function(d){if(h)throw new TypeError("Generator is already executing.");for(;m;)try{if(h=1,v&&(u=2&d[0]?v.return:d[0]?v.throw||((u=v.return)&&u.call(v),0):v.next)&&!(u=u.call(v,d[1])).done)return u;switch(v=0,u&&(d=[2&d[0],u.value]),d[0]){case 0:case 1:u=d;break;case 4:return m.label++,{value:d[1],done:!1};case 5:m.label++,v=d[1],d=[0];continue;case 7:d=m.ops.pop(),m.trys.pop();continue;default:if(!((u=(u=m.trys).length>0&&u[u.length-1])||d[0]!==6&&d[0]!==2)){m=0;continue}if(d[0]===3&&(!u||d[1]>u[0]&&d[1]<u[3])){m.label=d[1];break}if(d[0]===6&&m.label<u[1]){m.label=u[1],u=d;break}if(u&&m.label<u[2]){m.label=u[2],m.ops.push(d);break}u[2]&&m.ops.pop(),m.trys.pop();continue}d=a.call(_,m)}catch(P){d=[6,P],v=0}finally{h=u=0}if(5&d[0])throw d[1];return{value:d[0]?d[1]:void 0,done:!0}}([p,C])}}},E=N&&N.__values||function(_){var a=typeof Symbol=="function"&&Symbol.iterator,h=a&&_[a],v=0;if(h)return h.call(_);if(_&&typeof _.length=="number")return{next:function(){return _&&v>=_.length&&(_=void 0),{value:_&&_[v++],done:!_}}};throw new TypeError(a?"Object is not iterable.":"Symbol.iterator is not defined.")},Y=N&&N.__read||function(_,a){var h=typeof Symbol=="function"&&_[Symbol.iterator];if(!h)return _;var v,u,S=h.call(_),m=[];try{for(;(a===void 0||a-- >0)&&!(v=S.next()).done;)m.push(v.value)}catch(w){u={error:w}}finally{try{v&&!v.done&&(h=S.return)&&h.call(S)}finally{if(u)throw u.error}}return m};Object.defineProperty(N,"__esModule",{value:!0}),N.ImportResolver=void 0;var Z=function(){if(he)return V;he=1;var _=V&&V.__createBinding||(Object.create?function(w,p,C,d){d===void 0&&(d=C);var P=Object.getOwnPropertyDescriptor(p,C);P&&!("get"in P?!p.__esModule:P.writable||P.configurable)||(P={enumerable:!0,get:function(){return p[C]}}),Object.defineProperty(w,d,P)}:function(w,p,C,d){d===void 0&&(d=C),w[d]=p[C]}),a=V&&V.__setModuleDefault||(Object.create?function(w,p){Object.defineProperty(w,"default",{enumerable:!0,value:p})}:function(w,p){w.default=p}),h=V&&V.__importStar||function(w){if(w&&w.__esModule)return w;var p={};if(w!=null)for(var C in w)C!=="default"&&Object.prototype.hasOwnProperty.call(w,C)&&_(p,w,C);return a(p,w),p},v=V&&V.__read||function(w,p){var C=typeof Symbol=="function"&&w[Symbol.iterator];if(!C)return w;var d,P,I=C.call(w),L=[];try{for(;(p===void 0||p-- >0)&&!(d=I.next()).done;)L.push(d.value)}catch(M){P={error:M}}finally{try{d&&!d.done&&(C=I.return)&&C.call(I)}finally{if(P)throw P.error}}return L},u=V&&V.__spreadArray||function(w,p,C){if(C||arguments.length===2)for(var d,P=0,I=p.length;P<I;P++)!d&&P in p||(d||(d=Array.prototype.slice.call(p,0,P)),d[P]=p[P]);return w.concat(d||Array.prototype.slice.call(p))};Object.defineProperty(V,"__esModule",{value:!0}),V.DependencyParser=void 0;var S=h(se()),m=function(){function w(){this.REGEX_CLEAN=/[\n|\r]/g,this.REGEX_DETECT_IMPORT=/(?:(?:(?:import)|(?:export))(?:.)*?from\s+["']([^"']+)["'])|(?:((?:require|import))(?:\s+)?\(["']([^"']+)["']\))|(?:\/+\s+<reference\s+path=["']([^"']+)["']\s+\/>)/g,this.REGEX_NODE_MODULE=/^node:([\w\W\/]+)$/}return w.prototype.parseDependencies=function(p,C){var d=this;return u([],v(p.matchAll(this.REGEX_DETECT_IMPORT)),!1).map(function(P){var I,L;return(L=(I=P[1])!==null&&I!==void 0?I:P[2])!==null&&L!==void 0?L:P[3]}).filter(function(P){return!!P}).map(function(P){return d.resolvePath(P,C)})},w.prototype.resolvePath=function(p,C){var d=p.match(this.REGEX_NODE_MODULE);if(d)return{kind:"relative-in-package",packageName:"@types/node",importPath:"".concat(d[1],".d.ts"),sourcePath:""};if(typeof C=="string"){if(p.startsWith("."))return{kind:"relative",importPath:p,sourcePath:C};if(p.startsWith("@")){var P=p.split("/");return{kind:"package",packageName:"".concat(P[0],"/").concat(P[1]),importPath:P.slice(2).join("/")}}return{kind:"package",packageName:(P=p.split("/"))[0],importPath:P.slice(1).join("/")}}switch(C.kind){case"package":throw Error("TODO?");case"relative":throw Error("TODO2?");case"relative-in-package":return p.startsWith(".")?{kind:"relative-in-package",packageName:C.packageName,sourcePath:S.join(C.sourcePath,C.importPath),importPath:p}:p.startsWith("@")?(P=p.split("/"),{kind:"package",packageName:"".concat(P[0],"/").concat(P[1]),importPath:P.slice(2).join("/")}):{kind:"package",packageName:(P=p.split("/"))[0],importPath:P.slice(1).join("/")}}},w}();return V.DependencyParser=m,V}(),X=Ie(),R=A(se()),G=ve(),Me=ke(),Ue=function(){function _(a){var h,v;if(this.options=a,this.loadedFiles=[],this.dependencyParser=new Z.DependencyParser,this.cache=a.sourceCache,this.sourceResolver=a.sourceResolver,this.newImportsResolved=!1,this.monaco=a.monaco,a.preloadPackages&&a.versions){this.versions=a.versions;try{for(var u=E(Object.entries(a.versions)),S=u.next();!S.done;S=u.next()){var m=Y(S.value,2),w=m[0];m[1],this.resolveImport({kind:"package",packageName:w,importPath:""},new Me.RecursionDepth(this.options)).catch(function(p){console.error(p)})}}catch(p){h={error:p}}finally{try{S&&!S.done&&(v=u.return)&&v.call(u)}finally{if(h)throw h.error}}}}return _.prototype.wereNewImportsResolved=function(){return this.newImportsResolved},_.prototype.resetNewImportsResolved=function(){this.newImportsResolved=!1},_.prototype.resolveImportsInFile=function(a,h,v){var u,S,m;return y(this,void 0,void 0,function(){var w,p,C,d,P,I,L,M;return T(this,function(F){switch(F.label){case 0:if(v.shouldStop())return[2];w=this.dependencyParser.parseDependencies(a,h),F.label=1;case 1:F.trys.push([1,8,9,10]),p=E(w),C=p.next(),F.label=2;case 2:if(C.done)return[3,7];d=C.value,F.label=3;case 3:return F.trys.push([3,5,,6]),[4,this.resolveImport(d,v)];case 4:return F.sent(),[3,6];case 5:return P=F.sent(),this.options.onError?(S=(u=this.options).onError)===null||S===void 0||S.call(u,(m=P.message)!==null&&m!==void 0?m:P):console.error(P),[3,6];case 6:return C=p.next(),[3,2];case 7:return[3,10];case 8:return I=F.sent(),L={error:I},[3,10];case 9:try{C&&!C.done&&(M=p.return)&&M.call(p)}finally{if(L)throw L.error}return[7];case 10:return[2]}})})},_.prototype.resolveImport=function(a,h){return y(this,void 0,void 0,function(){var v,u;return T(this,function(S){switch(S.label){case 0:if(v=this.hashImportResourcePath(a),this.loadedFiles.includes(v))return[2];switch(this.loadedFiles.push(v),a.kind){case"package":return[3,1];case"relative":return[3,5];case"relative-in-package":return[3,6]}return[3,8];case 1:return[4,this.resolveImportFromPackageRoot(a)];case 2:return(u=S.sent())?[4,this.resolveImportInPackage(u,h.nextPackage().nextFile())]:[3,4];case 3:case 7:return[2,S.sent()];case 4:return[3,8];case 5:throw Error("Not implemented yet");case 6:return[4,this.resolveImportInPackage(a,h.nextFile())];case 8:return[2]}})})},_.prototype.resolveImportInPackage=function(a,h){return y(this,void 0,void 0,function(){var v,u,S;return T(this,function(m){switch(m.label){case 0:return[4,this.loadSourceFileContents(a)];case 1:return(v=m.sent())?(u=v.source,S=v.at,this.createModel(u,this.monaco.Uri.parse(this.options.fileRootPath+R.join("node_modules/".concat(a.packageName),S))),[4,this.resolveImportsInFile(u,{kind:"relative-in-package",packageName:a.packageName,sourcePath:R.dirname(S),importPath:""},h)]):[3,3];case 2:m.sent(),m.label=3;case 3:return[2]}})})},_.prototype.resolveImportFromPackageRoot=function(a){var h,v,u,S,m,w,p,C,d;return y(this,void 0,void 0,function(){var P,I,L,M,F,B,re,J,W;return T(this,function($){switch($.label){case 0:return P={type:"LookedUpPackage",package:a.packageName,definitelyTyped:!1,success:!1},!this.options.onlySpecifiedPackages||(h=this.versions)!==null&&h!==void 0&&h[a.packageName]||(v=this.versions)!==null&&v!==void 0&&v["@types/"+a.packageName]?(I=(S=(u=a.importPath)===null||u===void 0?void 0:u.length)!==null&&S!==void 0&&S,L=I?"/".concat(a.importPath):"",[4,this.resolvePackageJson(a.packageName,(m=this.versions)===null||m===void 0?void 0:m[a.packageName],I?a.importPath:void 0)]):((0,G.invokeUpdate)(P,this.options),[2]);case 1:return(M=$.sent())||!I?[3,3]:[4,this.resolvePackageJson(a.packageName,(w=this.versions)===null||w===void 0?void 0:w[a.packageName])];case 2:M=$.sent(),L="",$.label=3;case 3:return M?(F=JSON.parse(M)).typings||F.types?(W=F.typings||F.types,this.createModel(M,this.monaco.Uri.parse("".concat(this.options.fileRootPath,"node_modules/").concat(a.packageName).concat(L,"/package.json"))),(0,G.invokeUpdate)({type:"LookedUpPackage",package:a.packageName,definitelyTyped:!1,success:!0},this.options),this.setVersion(a.packageName,F.version),[2,{kind:"relative-in-package",packageName:a.packageName,sourcePath:"",importPath:R.join((p=a.importPath)!==null&&p!==void 0?p:"",W.startsWith("./")?W.slice(2):W)}]):[3,4]:[3,7];case 4:return B="@types/".concat(a.packageName.startsWith("@")?a.packageName.slice(1).replace(/\//,"__"):a.packageName),[4,this.resolvePackageJson(B,(C=this.versions)===null||C===void 0?void 0:C[B])];case 5:if(re=$.sent()){if((J=JSON.parse(re)).typings||J.types)return W=J.typings||J.types,this.createModel(re,this.monaco.Uri.parse("".concat(this.options.fileRootPath,"node_modules/").concat(B,"/package.json"))),(0,G.invokeUpdate)({type:"LookedUpPackage",package:B,definitelyTyped:!0,success:!0},this.options),this.setVersion(B,J.version),[2,{kind:"relative-in-package",packageName:B,sourcePath:"",importPath:R.join((d=a.importPath)!==null&&d!==void 0?d:"",W.startsWith("./")?W.slice(2):W)}];(0,G.invokeUpdate)(P,this.options)}else(0,G.invokeUpdate)(P,this.options);$.label=6;case 6:return[3,8];case 7:(0,G.invokeUpdate)(P,this.options),$.label=8;case 8:return[2]}})})},_.prototype.loadSourceFileContents=function(a){return y(this,void 0,void 0,function(){var h,v,u,S,m,w,p,C,d,P,I,L,M,F,B,re;return T(this,function(J){switch(J.label){case 0:return h=R.join(a.packageName,a.sourcePath,a.importPath),v={type:"LookedUpTypeFile",path:h,definitelyTyped:!1,success:!1},u=a.packageName,S=this.getVersion(a.packageName),(m=[".d.ts","/index.d.ts",".ts",".tsx","/index.ts","/index.tsx"]).map(function(W){return a.importPath.endsWith(W)}).reduce(function(W,$){return W||$},!1)?[4,this.resolveSourceFile(u,S,R.join(a.sourcePath,a.importPath))]:[3,2];case 1:return(F=J.sent())?[2,{source:F,at:R.join(a.sourcePath,a.importPath)}]:[3,9];case 2:J.trys.push([2,7,8,9]),w=E(m),p=w.next(),J.label=3;case 3:return p.done?[3,6]:(C=p.value,d=R.join(a.sourcePath,a.importPath),M=(C===".d.ts"&&d.endsWith(".js")?d.slice(0,-3):d)+C,[4,this.resolveSourceFile(u,S,M)]);case 4:if(F=J.sent(),(0,G.invokeUpdate)({type:"AttemptedLookUpFile",path:R.join(u,M),success:!!F},this.options),F)return(0,G.invokeUpdate)({type:"LookedUpTypeFile",path:R.join(u,M),success:!0},this.options),[2,{source:F,at:M}];J.label=5;case 5:return p=w.next(),[3,3];case 6:return[3,9];case 7:return P=J.sent(),B={error:P},[3,9];case 8:try{p&&!p.done&&(re=w.return)&&re.call(w)}finally{if(B)throw B.error}return[7];case 9:return[4,this.resolvePackageJson(u,S,R.join(a.sourcePath,a.importPath))];case 10:return(I=J.sent())&&(L=JSON.parse(I).types)?(M=R.join(a.sourcePath,a.importPath,L),[4,this.resolveSourceFile(u,S,M)]):[3,12];case 11:if(F=J.sent())return(0,G.invokeUpdate)({type:"LookedUpTypeFile",path:R.join(u,M),success:!0},this.options),[2,{source:F,at:M}];J.label=12;case 12:return(0,G.invokeUpdate)(v,this.options),[2,null]}})})},_.prototype.getVersion=function(a){var h;return(h=this.versions)===null||h===void 0?void 0:h[a]},_.prototype.setVersions=function(a){var h,v;this.versions=a,(v=(h=this.options).onUpdateVersions)===null||v===void 0||v.call(h,a)},_.prototype.setVersion=function(a,h){var v;this.setVersions(i(i({},this.versions),((v={})[a]=h,v)))},_.prototype.createModel=function(a,h){h=h.with({path:h.path.replace("@types/","")}),this.monaco.editor.getModel(h)||(this.monaco.editor.createModel(a,"typescript",h),this.newImportsResolved=!0)},_.prototype.hashImportResourcePath=function(a){return(0,X.importResourcePathToString)(a)},_.prototype.resolvePackageJson=function(a,h,v){return y(this,void 0,void 0,function(){var u,S,m,w;return T(this,function(p){switch(p.label){case 0:return u=R.join(a+(h?"@".concat(h):""),v??"","package.json"),S=!1,m=void 0,this.cache.isFileAvailable?[4,this.cache.isFileAvailable(u)]:[3,2];case 1:return S=p.sent(),[3,4];case 2:return[4,this.cache.getFile(u)];case 3:m=p.sent(),S=m!==void 0,p.label=4;case 4:return S?m==null?[3,5]:(w=m,[3,7]):[3,8];case 5:return[4,this.cache.getFile(u)];case 6:w=p.sent(),p.label=7;case 7:return[2,w];case 8:return[4,this.sourceResolver.resolvePackageJson(a,h,v)];case 9:return(m=p.sent())&&this.cache.storeFile(u,m),[2,m]}})})},_.prototype.resolveSourceFile=function(a,h,v){return y(this,void 0,void 0,function(){var u,S,m,w;return T(this,function(p){switch(p.label){case 0:return u=R.join(a+(h?"@".concat(h):""),v),S=!1,m=void 0,this.cache.isFileAvailable?[4,this.cache.isFileAvailable(u)]:[3,2];case 1:return S=p.sent(),[3,4];case 2:return[4,this.cache.getFile(u)];case 3:m=p.sent(),S=m!==void 0,p.label=4;case 4:return S?((0,G.invokeUpdate)({type:"LoadedFromCache",importPath:u},this.options),m==null?[3,5]:(w=m,[3,7])):[3,8];case 5:return[4,this.cache.getFile(u)];case 6:w=p.sent(),p.label=7;case 7:return[2,w];case 8:return[4,this.sourceResolver.resolveSourceFile(a,h,v)];case 9:return(m=p.sent())&&((0,G.invokeUpdate)({type:"StoredToCache",importPath:u},this.options),this.cache.storeFile(u,m)),[2,m]}})})},_}();return N.ImportResolver=Ue,N}(),f=e(se()),D=ve(),O=ke(),c=function(){function i(b,k){var A=this;this.editor=b,this.options=k,this.disposables=[],this.importResolver=new l.ImportResolver(k);var y=b.onDidChangeModelContent(function(T){A.debouncedResolveContents()});this.disposables.push(y),this.resolveContents(),k.dontAdaptEditorOptions||k.monaco.languages.typescript.typescriptDefaults.setCompilerOptions(g(g({},k.monaco.languages.typescript.typescriptDefaults.getCompilerOptions()),{moduleResolution:k.monaco.languages.typescript.ModuleResolutionKind.NodeJs,allowSyntheticDefaultImports:!0,rootDir:k.fileRootPath}))}return i.create=function(b,k){var A,y;return t(this,void 0,void 0,function(){var T;return o(this,function(E){if(k?.shareCache&&k.sourceCache&&!i.sharedCache&&(i.sharedCache=k.sourceCache),!(T=k?.monaco))throw new Error("monacoInstance not found, you can specify the monaco instance via options.monaco");return[2,new i(b,g(g({fileRootPath:"inmemory://model/",onlySpecifiedPackages:!1,preloadPackages:!1,shareCache:!1,dontAdaptEditorOptions:!1,dontRefreshModelValueAfterResolvement:!1,sourceCache:(A=i.sharedCache)!==null&&A!==void 0?A:new r.DummySourceCache,sourceResolver:(y=k?.sourceResolver)!==null&&y!==void 0?y:new s.JsDelivrSourceResolver,debounceDuration:4e3,fileRecursionDepth:10,packageRecursionDepth:3},k),{monaco:T}))]})})},i.prototype.dispose=function(){var b,k;try{for(var A=n(this.disposables),y=A.next();!y.done;y=A.next())y.value.dispose()}catch(T){b={error:T}}finally{try{y&&!y.done&&(k=A.return)&&k.call(A)}finally{if(b)throw b.error}}},i.prototype.setVersions=function(b){this.importResolver.setVersions(b),this.options.versions=b},i.prototype.clearCache=function(){return t(this,void 0,void 0,function(){return o(this,function(b){switch(b.label){case 0:return[4,this.options.sourceCache.clear()];case 1:return b.sent(),[2]}})})},i.prototype.debouncedResolveContents=function(){var b=this;this.isResolving||((0,D.invokeUpdate)({type:"CodeChanged"},this.options),this.options.debounceDuration<=0?this.resolveContents():(this.debounceTimer!==void 0&&clearTimeout(this.debounceTimer),this.debounceTimer=setTimeout(function(){return t(b,void 0,void 0,function(){return o(this,function(k){switch(k.label){case 0:return[4,this.resolveContents()];case 1:return k.sent(),this.debounceTimer=void 0,[2]}})})},this.options.debounceDuration)))},i.prototype.resolveContents=function(){var b;return t(this,void 0,void 0,function(){var k,A,y,T;return o(this,function(E){switch(E.label){case 0:if(this.isResolving=!0,(0,D.invokeUpdate)({type:"ResolveNewImports"},this.options),!(k=this.editor.getModel()))throw Error("No model");A=k.getLinesContent(),E.label=1;case 1:return E.trys.push([1,3,,4]),[4,this.importResolver.resolveImportsInFile(A.join(`
|
|
7
|
+
`),f.dirname(k.uri.toString()),new O.RecursionDepth(this.options))];case 2:return E.sent(),[3,4];case 3:if(y=E.sent(),!this.options.onError)throw y;return this.options.onError((b=y.message)!==null&&b!==void 0?b:y),[3,4];case 4:return this.importResolver.wereNewImportsResolved()&&(this.options.dontRefreshModelValueAfterResolvement||(T=this.editor.getPosition(),k.setValue(k.getValue()),T&&this.editor.setPosition(T)),this.importResolver.resetNewImportsResolved()),this.isResolving=!1,[2]}})})},i}();return U.AutoTypingsCore=c,U}var we,z={},_e,Pe,Oe,je,Re,Ce,Se,xe,Ae={},De={},Ee={},Te={},Q={};const Ge=function(g,x){for(var j=0;j<x.length;j++){const e=x[j];if(typeof e!="string"&&!Array.isArray(e)){for(const t in e)if(t!=="default"&&!(t in g)){const o=Object.getOwnPropertyDescriptor(e,t);o&&Object.defineProperty(g,t,o.get?o:{enumerable:!0,get:()=>e[t]})}}}return Object.freeze(Object.defineProperty(g,Symbol.toStringTag,{value:"Module"}))}({__proto__:null},[xe?Se:(xe=1,Ce||(Ce=1,q=ne,Fe=ne&&ne.__createBinding||(Object.create?function(g,x,j,e){e===void 0&&(e=j);var t=Object.getOwnPropertyDescriptor(x,j);t&&!("get"in t?!x.__esModule:t.writable||t.configurable)||(t={enumerable:!0,get:function(){return x[j]}}),Object.defineProperty(g,e,t)}:function(g,x,j,e){e===void 0&&(e=j),g[e]=x[j]}),K=ne&&ne.__exportStar||function(g,x){for(var j in g)j==="default"||Object.prototype.hasOwnProperty.call(x,j)||Fe(x,g,j)},Object.defineProperty(q,"__esModule",{value:!0}),K(function(){if(be)return ee;be=1;var g,x=ee&&ee.__extends||(g=function(e,t){return(g=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,n){o.__proto__=n}||function(o,n){for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(o[r]=n[r])})(e,t)},function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function o(){this.constructor=e}g(e,t),e.prototype=t===null?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(ee,"__esModule",{value:!0}),ee.AutoTypings=void 0;var j=function(e){function t(o,n){return e.call(this,o,n)||this}return x(t,e),t}(Le().AutoTypingsCore);return ee.AutoTypings=j,ee}(),q),K(Ie(),q),K(function(){if(we)return z;we=1;var g=z&&z.__awaiter||function(t,o,n,r){return new(n||(n=Promise))(function(s,l){function f(c){try{O(r.next(c))}catch(i){l(i)}}function D(c){try{O(r.throw(c))}catch(i){l(i)}}function O(c){var i;c.done?s(c.value):(i=c.value,i instanceof n?i:new n(function(b){b(i)})).then(f,D)}O((r=r.apply(t,o||[])).next())})},x=z&&z.__generator||function(t,o){var n,r,s,l,f={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]};return l={next:D(0),throw:D(1),return:D(2)},typeof Symbol=="function"&&(l[Symbol.iterator]=function(){return this}),l;function D(O){return function(c){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;f;)try{if(n=1,r&&(s=2&i[0]?r.return:i[0]?r.throw||((s=r.return)&&s.call(r),0):r.next)&&!(s=s.call(r,i[1])).done)return s;switch(r=0,s&&(i=[2&i[0],s.value]),i[0]){case 0:case 1:s=i;break;case 4:return f.label++,{value:i[1],done:!1};case 5:f.label++,r=i[1],i=[0];continue;case 7:i=f.ops.pop(),f.trys.pop();continue;default:if(!((s=(s=f.trys).length>0&&s[s.length-1])||i[0]!==6&&i[0]!==2)){f=0;continue}if(i[0]===3&&(!s||i[1]>s[0]&&i[1]<s[3])){f.label=i[1];break}if(i[0]===6&&f.label<s[1]){f.label=s[1],s=i;break}if(s&&f.label<s[2]){f.label=s[2],f.ops.push(i);break}s[2]&&f.ops.pop(),f.trys.pop();continue}i=o.call(t,f)}catch(b){i=[6,b],r=0}finally{n=s=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([O,c])}}},j=z&&z.__values||function(t){var o=typeof Symbol=="function"&&Symbol.iterator,n=o&&t[o],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(o?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(z,"__esModule",{value:!0}),z.LocalStorageCache=void 0;var e=function(){function t(){this.localCache={}}return t.prototype.getFile=function(o){var n;return g(this,void 0,void 0,function(){return x(this,function(r){try{return[2,(n=localStorage.getItem(t.LOCALSTORAGE_PREFIX+o))!==null&&n!==void 0?n:void 0]}catch{return[2,this.localCache[o]]}return[2]})})},t.prototype.storeFile=function(o,n){return g(this,void 0,void 0,function(){return x(this,function(r){this.localCache[o]=n;try{localStorage.setItem(t.LOCALSTORAGE_PREFIX+o,n)}catch{}return[2]})})},t.prototype.clear=function(){return g(this,void 0,void 0,function(){var o,n,r,s,l,f,D;return x(this,function(O){for(this.localCache={},o=[],n=0;n<localStorage.length;n++)(l=localStorage.key(n))!=null&&l.startsWith(t.LOCALSTORAGE_PREFIX)&&o.push(l);try{for(r=j(o),s=r.next();!s.done;s=r.next())l=s.value,localStorage.removeItem(l)}catch(c){f={error:c}}finally{try{s&&!s.done&&(D=r.return)&&D.call(r)}finally{if(f)throw f.error}}return[2]})})},t.LOCALSTORAGE_PREFIX="__autotyper_cache_",t}();return z.LocalStorageCache=e,z}(),q),K((_e||(_e=1,Object.defineProperty(Ae,"__esModule",{value:!0})),Ae),q),K((Pe||(Pe=1,Object.defineProperty(De,"__esModule",{value:!0})),De),q),K((Oe||(Oe=1,Object.defineProperty(Ee,"__esModule",{value:!0})),Ee),q),K((je||(je=1,Object.defineProperty(Te,"__esModule",{value:!0})),Te),q),K(function(){if(Re)return Q;Re=1;var g=Q&&Q.__awaiter||function(e,t,o,n){return new(o||(o=Promise))(function(r,s){function l(O){try{D(n.next(O))}catch(c){s(c)}}function f(O){try{D(n.throw(O))}catch(c){s(c)}}function D(O){var c;O.done?r(O.value):(c=O.value,c instanceof o?c:new o(function(i){i(c)})).then(l,f)}D((n=n.apply(e,t||[])).next())})},x=Q&&Q.__generator||function(e,t){var o,n,r,s,l={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return s={next:f(0),throw:f(1),return:f(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function f(D){return function(O){return function(c){if(o)throw new TypeError("Generator is already executing.");for(;l;)try{if(o=1,n&&(r=2&c[0]?n.return:c[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,c[1])).done)return r;switch(n=0,r&&(c=[2&c[0],r.value]),c[0]){case 0:case 1:r=c;break;case 4:return l.label++,{value:c[1],done:!1};case 5:l.label++,n=c[1],c=[0];continue;case 7:c=l.ops.pop(),l.trys.pop();continue;default:if(!((r=(r=l.trys).length>0&&r[r.length-1])||c[0]!==6&&c[0]!==2)){l=0;continue}if(c[0]===3&&(!r||c[1]>r[0]&&c[1]<r[3])){l.label=c[1];break}if(c[0]===6&&l.label<r[1]){l.label=r[1],r=c;break}if(r&&l.label<r[2]){l.label=r[2],l.ops.push(c);break}r[2]&&l.ops.pop(),l.trys.pop();continue}c=t.call(e,l)}catch(i){c=[6,i],n=0}finally{o=r=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([D,O])}}};Object.defineProperty(Q,"__esModule",{value:!0}),Q.UnpkgSourceResolver=void 0;var j=function(){function e(){}return e.prototype.resolvePackageJson=function(t,o,n){return g(this,void 0,void 0,function(){return x(this,function(r){switch(r.label){case 0:return[4,this.resolveFile("https://unpkg.com/".concat(t).concat(o?"@".concat(o):"").concat(n?"/".concat(n):"","/package.json"))];case 1:return[2,r.sent()]}})})},e.prototype.resolveSourceFile=function(t,o,n){return g(this,void 0,void 0,function(){return x(this,function(r){switch(r.label){case 0:return[4,this.resolveFile("https://unpkg.com/".concat(t).concat(o?"@".concat(o):"","/").concat(n))];case 1:return[2,r.sent()]}})})},e.prototype.resolveFile=function(t){return g(this,void 0,void 0,function(){var o;return x(this,function(n){switch(n.label){case 0:return[4,fetch(t,{method:"GET"})];case 1:return(o=n.sent()).ok?[4,o.text()]:[3,3];case 2:return[2,n.sent()];case 3:if(o.status===404)return[2,""];throw Error("Error other than 404 while fetching from Unpkg at ".concat(t));case 4:return[2]}})})},e}();return Q.UnpkgSourceResolver=j,Q}(),q),K(Ne(),q)),Se=ne)]);var q,Fe,K;exports.c=Ge;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";/**
|
|
2
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.0.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"});/**
|
|
7
|
+
* @license @sheetxl/sdk - A high-performance, embeddable spreadsheet engine. - v0.0.0
|
|
8
|
+
*
|
|
9
|
+
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
10
|
+
* License: The license can be found at https://www.sheetxl.com/license.
|
|
11
|
+
*//**
|
|
12
|
+
* @license @sheetxl/scripting - SheetXL scripting utilities including TypeScript compilation. - v0.0.0
|
|
13
|
+
*
|
|
14
|
+
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
15
|
+
* License: The license can be found at https://www.sheetxl.com/license.
|
|
16
|
+
*//**
|
|
17
|
+
* @license @sheetxl/utils - Utils - Utilities used by most SheetXL components. - v0.1.93
|
|
18
|
+
*
|
|
19
|
+
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
20
|
+
* License: The license can be found at https://www.sheetxl.com/license.
|
|
21
|
+
*/const h="text/html",b="text/plain",L="image/png",Ct=Object.freeze({left:0,top:0}),Mt=Object.freeze({left:0,top:0,bottom:0,right:0}),Rt=Object.freeze({x:0,y:0,width:0,height:0});Object.freeze(Object.defineProperty({__proto__:null,EmptyBounds:Rt,EmptyRect:Mt,EmptyTopLeft:Ct},Symbol.toStringTag,{value:"Module"}));const m="column",j="row",At=Object.freeze({colIndex:0,rowIndex:0}),Ft=Object.freeze({colStart:0,rowStart:0,colEnd:0,rowEnd:0}),yt=(e,t)=>e.colStart===t.colStart?e.rowStart-t.rowStart:e.colStart-t.colStart,gt=(e,t)=>e.rowStart===t.rowStart?e.colStart-t.colStart:e.rowStart-t.rowStart,Lt=(e,t)=>e.rowEnd===t.rowEnd?t.colEnd-e.colEnd:t.rowEnd-e.rowEnd,Pt=(e,t)=>e.colEnd===t.colEnd?t.rowEnd-e.rowEnd:t.colEnd-e.colEnd,J=(e,t)=>e.colIndex===t.colIndex?e.rowIndex-t.rowIndex:e.colIndex-t.colIndex,H=(e,t)=>e.rowIndex===t.rowIndex?e.colIndex-t.colIndex:e.rowIndex-t.rowIndex,bt=(e=j,t=!1)=>t?e!==m?Lt:Pt:e!==m?gt:yt,K=(e,t)=>e===t||!(!e||!t)&&e.rowIndex===t.rowIndex&&e.colIndex===t.colIndex,D=(e,t)=>e===t||!(!e||!t)&&e.rowStart===t.rowStart&&e.rowEnd===t.rowEnd&&e.colStart===t.colStart&&e.colEnd===t.colEnd,$=(e,t)=>!(!e||!t||e.colStart>t.colEnd||t.colStart>e.colEnd||e.rowStart>t.rowEnd||t.rowStart>e.rowEnd),Y=(e,t)=>{if(e===t)return!0;if(!e||!t||e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(!D(e[r],t[r]))return!1;return!0},P=(e,t,r)=>{if(!e&&!t)return null;if(!e)return r?t:{...t};if(!t)return r?e:{...e};const n=Math.min(e.colStart,t.colStart),o=Math.min(e.rowStart,t.rowStart),a=Math.max(e.colEnd,t.colEnd),i=Math.max(e.rowEnd,t.rowEnd);let l=r;return l?(l.colStart=n,l.rowStart=o,l.colEnd=a,l.rowEnd=i):l={colStart:n,rowStart:o,colEnd:a,rowEnd:i},l},Z=(e,t)=>{if(!t||t.length===0)return e;const r={...e};for(let n=0;n<t.length;n++){const o=t[n];$(r,o)&&(r.rowStart=Math.min(r.rowStart,o.rowStart),r.colStart=Math.min(r.colStart,o.colStart),r.rowEnd=Math.max(r.rowEnd,o.rowEnd),r.colEnd=Math.max(r.colEnd,o.colEnd))}return r},Ut=[null,null],kt=(e,t,r)=>{if(e[0].value===e[1].value)return t};function X(e,t=2,r,n=j,o){let a=[...e];if(t<=0||e.length<=1)return a;let i=n===m,l=0,s=!1;do{const c=a.sort(bt(i?j:m));a=[],a.push(c[0]);const d=c.length;let w=0,u=c[0],f=u.colStart,p=u.rowStart,x=u.colEnd,_=u.rowEnd;for(let A=1;A<d;A++){const g=c[A];let G=!1;if(G=i?u&&p===g.rowStart&&_===g.rowEnd&&x+1===g.colStart:u&&f===g.colStart&&x===g.colEnd&&_+1===g.rowStart,G){let S={colStart:f,rowStart:p,colEnd:i?g.colEnd:x,rowEnd:i?_:g.rowEnd};if(u.value!==void 0&&(S.value=u.value),r){const F=o??[null,null];F[0]=u,F[1]=g,S=r(F,S,n)}if(S){a[w]=S,s=!0,u=S,f=u.colStart,p=u.rowStart,x=u.colEnd,_=u.rowEnd;continue}}a[++w]=g,u=g,f=u.colStart,p=u.rowStart,x=u.colEnd,_=u.rowEnd}l++,i=!i,l===1&&(s=!0)}while(l<t&&s&&a.length>1);return a}Object.freeze(Object.defineProperty({__proto__:null,EmptyCell:At,EmptyRange:Ft,cellToRange:(e,t)=>{if(!e)return null;let r=t;return r||(r={...e},delete r.colIndex,delete r.rowIndex),r.colStart=e.colIndex??0,r.rowStart=e.rowIndex??0,r.colEnd=e.colIndex??0,r.rowEnd=e.rowIndex??0,r},columnFirstCellComparator:J,columnFirstRangeComparator:yt,createCellComparator:(e=j,t=!1)=>t?e!==m?(r,n)=>r.rowIndex===n.rowIndex?n.colIndex-r.colIndex:n.rowIndex-r.rowIndex:(r,n)=>r.colIndex===n.colIndex?n.rowIndex-r.rowIndex:n.colIndex-r.colIndex:e!==m?H:J,createConflatingRanges:(e,t=!1)=>{const r=[];let n,o,a=Number.MIN_SAFE_INTEGER,i=Number.MIN_SAFE_INTEGER;return{append:(l,s,c)=>{let d=!0;const w=c!==void 0;if(w){const p=e?e(o,c,t):o===c?c:void 0;p===void 0?d=!1:c=p}if(d&&s===i+1&&l===a)return t?n.rowEnd=s:n.colEnd=s,i=s,void(o=c);n&&r.push(n);const u=t?l:s,f=t?s:l;n={colStart:u,rowStart:f,colEnd:u,rowEnd:f},w&&(n.value=c),a=l,i=s,o=c},done:l=>(n&&(r.push(n),n=null),l?X(r,3,l===!0?kt:l,t?m:j,Ut):r)}},createRangeComparator:bt,defaultRange:(e,t,r)=>e?r?(r.colStart=e.colStart??t.colStart,r.rowStart=e.rowStart??t.rowStart,r.colEnd=e.colEnd??t.colEnd,r.rowEnd=e.rowEnd??t.rowEnd,r):{colStart:e.colStart??t.colStart,rowStart:e.rowStart??t.rowStart,colEnd:e.colEnd??t.colEnd,rowEnd:e.rowEnd??t.rowEnd}:t,extendRangeToIntersectingRanges:Z,extendRangeToUnionRanges:(e,t)=>{if(!t||t.length===0)return e;let r=e,n=null;for(;!D(r,n);)n=r,r=Z(n,t);return r},indexOfCoords:(e,t)=>{const r={colStart:e.colIndex,rowStart:e.rowIndex,colEnd:e.colIndex,rowEnd:e.rowIndex};for(let n=t.length-1;n>=0;n--)if($(r,t[n]))return n;return-1},intersectRanges:(e,t,r)=>{if(!e)return r?t:{...t};if(!t)return r?e:{...e};if(!e&&!t||e.rowStart>t.rowEnd||e.rowEnd<t.rowStart||e.colStart>t.colEnd||e.colEnd<t.colStart)return null;const n=Math.max(e.colStart,t.colStart),o=Math.max(e.rowStart,t.rowStart),a=Math.min(e.colEnd,t.colEnd),i=Math.min(e.rowEnd,t.rowEnd);let l=r;return l?(l.colStart=n,l.rowStart=o,l.colEnd=a,l.rowEnd=i):l={colStart:n,rowStart:o,colEnd:a,rowEnd:i},l},isCellWithinRange:(e,t)=>!(!e||!t||e.rowIndex<t.rowStart||e.rowIndex>t.rowEnd||e.colIndex<t.colStart||e.colIndex>t.colEnd),isEqualCells:K,isEqualRanges:D,isEqualRangesArrays:Y,isEqualSelectionCoords:(e,t)=>e===t||!(!e||!t)&&e.rangeIndex===t.rangeIndex&&!!K(e.cell,t.cell)&&Y(e.ranges,t.ranges),isRangeWithinRange:(e,t)=>!(e.rowStart<t.rowStart||e.rowEnd>t.rowEnd||e.colStart<t.colStart||e.colEnd>t.colEnd),isRangesIntersect:$,isSingleCell:e=>!!e&&e.rowEnd===e.rowStart&&e.colStart===e.colEnd,isValidRange:e=>!(!e||typeof e.colStart!="number"||e.colStart<0||typeof e.colEnd!="number"||e.colEnd<e.colStart||typeof e.rowStart!="number"||e.rowStart<0||typeof e.rowEnd!="number"||e.rowEnd<e.rowStart),mergeRangedValues:X,rowFirstCellComparator:H,rowFirstRangeComparator:gt,sanitizeRange:e=>e?{colStart:e.colIndex??e.colStart??0,rowStart:e.rowIndex??e.rowStart??0,colEnd:e.colIndex??e.colEnd??0,rowEnd:e.rowIndex??e.rowEnd??0}:null,translateRange:(e,t=-e.rowStart,r=-e.colStart,n)=>n?(n.colStart=e.colStart+r,n.rowStart=e.rowStart+t,n.colEnd=e.colEnd+r,n.rowEnd=e.rowEnd+t,n):{colStart:e.colStart+r,rowStart:e.rowStart+t,colEnd:e.colEnd+r,rowEnd:e.rowEnd+t},unionRanges:P,unionRangesArrays:(e,t,r)=>{if(!e||e.length===0)return null;if(e.length===1&&!t)return e[0];let n=e[0];for(let o=1;o<e.length;o++)n=P(n,e[o],r);return t&&(n=P(n,t,r)),n}},Symbol.toStringTag,{value:"Module"}));const Nt=typeof Symbol=="function"&&Symbol.for?Symbol.for("react.element"):60103;function Bt(e){return function(t){return!!t&&typeof t=="object"}(e)&&!function(t){const r=Object.prototype.toString.call(t);return r==="[object RegExp]"||r==="[object Date]"||t.$$typeof===Nt}(e)}function I(e,t){return t.clone!==!1&&t.isMergeableObject(e)?E((r=e,Array.isArray(r)?[]:{}),e,t):e;var r}function zt(e,t,r){return e.concat(t).map(function(n){return I(n,r)})}function Q(e){return Object.keys(e).concat((t=e,Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(r){return Object.propertyIsEnumerable.call(t,r)}):[]));var t}function tt(e,t){try{return t in e}catch{return!1}}function E(e,t,r){(r=r||{}).arrayMerge=r.arrayMerge||zt,r.isMergeableObject=r.isMergeableObject||Bt,r.cloneUnlessOtherwiseSpecified=I;const n=Array.isArray(t);return n===Array.isArray(e)?n?r.arrayMerge(e,t,r):function(o,a,i){const l={};return i.isMergeableObject(o)&&Q(o).forEach(function(s){l[s]=I(o[s],i)}),Q(a).forEach(function(s){var c,d;tt(c=o,d=s)&&(!Object.hasOwnProperty.call(c,d)||!Object.propertyIsEnumerable.call(c,d))||(tt(o,s)&&i.isMergeableObject(a[s])?l[s]=function(w,u){if(!u.customMerge)return E;const f=u.customMerge(w);return typeof f=="function"?f:E}(s,i)(o[s],a[s],i):l[s]=I(a[s],i))}),l}(e,t,r):I(t,r)}E.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(r,n){return E(r,n,t)},{})};const qt=Object.freeze([]),Dt=Object.freeze({}),et=e=>e,R=()=>"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){let t=16*Math.random()|0;return(e==="x"?t:3&t|8).toString(16)}),mt=(e,t)=>e===t||!(!Array.isArray(e)||!Array.isArray(t)||e.length!==t.length)&&e.every((r,n)=>r===t[n]),O=e=>typeof e=="object"&&!Array.isArray(e)&&e!==null,Et=e=>typeof e!="object"||Array.isArray(e)||e===null?e:(Object.keys(e).forEach(function(t){e[t]&&typeof e[t]=="object"?Et(e[t]):e[t]!==null&&e[t]!==void 0||delete e[t],typeof e[t]=="object"&&Object.keys(e[t]).length===0&&delete e[t]}),Object.keys(e).length===0?null:e),$t=(e,t)=>!(e!==t&&!mt(e,t)&&!e.isEqual?.(t)),St=(e,t,r=$t)=>{if(e==null||e===t)return null;if(!e||typeof e!="object"||Array.isArray(e)||e.isImmutable?.())return r(e,t)?null:e;const n=Object.keys(e);if(n.length===0)return null;let o=!1;for(let a=0;a<n.length;a++){const i=n[a];St(e[i],t?.[i],r)===null&&(o=!0,delete e[i])}return o&&Object.keys(e).length===0?null:void 0},rt=typeof performance=="object"&&typeof performance.now=="function"?()=>performance.now():()=>Date.now(),nt=e=>e==null,ot=(e,t)=>!(t.left>e.right||t.right<e.left||t.top>e.bottom||t.bottom<e.top),at=!(typeof window>"u"||!window.document||!window.document.createElement),y={Windows:"windows",MacOS:"macos",IOS:"ios",Linux:"linux",Android:"android",Safari:"safari",Firefox:"firefox",Node:"node",Unknown:"unknown"},T=()=>{if(vt())return y.Node;const e=globalThis.navigator!==void 0&&globalThis.navigator.userAgent?globalThis.navigator.userAgent.toLowerCase():"";return e?/(win32|win64|windows|wince)/i.test(e)?y.Windows:/(macintosh|macintel|macppc|mac68k|macos)/i.test(e)?y.MacOS:/(iphone|ipad|ipod)/i.test(e)?y.IOS:/android/.test(e)?y.Android:/linux/.test(e)?y.Linux:/^((?!chrome|android|).)*safari/i.test(e)?y.Safari:/^((?!chrome|android|Seamonkey).)*firefox/i.test(e)?y.Firefox:y.Unknown:y.Unknown};function vt(){return typeof process<"u"&&process.release?.name==="node"||(typeof process<"u"&&process.browser,!1)}const it=(e,t=!1)=>(document.hasFocus()||t)&&(e===document.activeElement||e?.contains(document.activeElement)),xt=Object.freeze(Object.defineProperty({__proto__:null,EmptyArray:qt,EmptyObject:Dt,OSType:y,arrayMove:function(e,t,r){const n=e.slice();return n.splice(r<0?n.length+r:r,0,n.splice(t,1)[0]),n},asNumber:e=>{const t=1*e;return Number.isFinite(t)?t:0},camelToPrettyCase:e=>e.length===1?e.toUpperCase():e.replace(/([A-Z])/g," $1").replace(/^./,function(t){return t.toUpperCase()}).trim(),canUseDOM:at,cancelTimeout:e=>{cancelAnimationFrame(e.id)},castToString:e=>e==null||e===void 0?"":typeof e!="string"?""+e:e,cloneObject:e=>nt(e)?e:JSON.parse(JSON.stringify(e)),consoleWithNoSource:(...e)=>new Promise(t=>{setTimeout(()=>{Function("console.log.apply(console, arguments)").apply(null,e),t()})}),debounce:function(e,t=300,r=!1){let n,o,a,i,l=0;function s(){let d=Date.now()-l;d<t&&d>=0?n=setTimeout(s,t-d):(n=null,r||(i=e.apply(a,o),a=o=null))}t==null&&(t=100);const c=function(){a=globalThis,o=arguments,l=Date.now();var d=r&&!n;return n||(n=setTimeout(s,t)),d&&(i=e.apply(a,o),a=o=null),i};return c.clear=function(){n&&(clearTimeout(n),n=null)},c.flush=function(){n&&(i=e.apply(a,o),a=o=null,clearTimeout(n),n=null)},c},deepEqual:function e(t,r){if(t===r)return!0;if(t&&r&&typeof t=="object"&&typeof r=="object"){if(t.constructor!==r.constructor)return!1;let n,o,a;if(Array.isArray(t)){if(n=t.length,n!=r.length)return!1;for(o=n;o--!==0;)if(!e(t[o],r[o]))return!1;return!0}if(t instanceof Map&&r instanceof Map){if(t.size!==r.size)return!1;for(o of t.entries())if(!r.has(o[0]))return!1;for(o of t.entries())if(!e(o[1],r.get(o[0])))return!1;return!0}if(t instanceof Set&&r instanceof Set){if(t.size!==r.size)return!1;for(o of t.entries())if(!r.has(o[0]))return!1;return!0}if(ArrayBuffer.isView(t)&&ArrayBuffer.isView(r)){if(n=t.length,n!=r.length)return!1;for(o=n;o--!==0;)if(t[o]!==r[o])return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if(a=Object.keys(t),n=a.length,n!==Object.keys(r).length)return!1;for(o=n;o--!==0;)if(!Object.prototype.hasOwnProperty.call(r,a[o]))return!1;for(o=n;o--!==0;){let i=a[o];if(!(i==="_owner"&&t.$$typeof||e(t[i],r[i])))return!1}return!0}return t!=t&&r!=r},deepFreeze:function e(t){return Object.freeze(t),Object.keys(t).forEach(r=>{typeof t[r]!="object"||t[r]===null||Object.isFrozen(t[r])||e(t[r])}),t},deepMerge:E,diffValues:(e,t)=>{const r={},n=Object.keys(t),o=n.length;for(let a=0;a<o;a++){const i=n[a];e[i]!==t[i]&&(e[i]===void 0?r[i]=t[i]:r[i]=e[i])}return Object.keys(r).length===0?null:r},findEqualOrGreater:function(e,t,r=et){let n=0,o=e.length-1;for(;n<=o;){let a=Math.floor((n+o)/2),i=r(e[a]);if(i===t)return a;i<t?n=a+1:o=a-1}return n},findEqualOrLesser:function(e,t,r=et){let n=e.length-1,o=0;for(;n>=o;){let a=Math.floor((n+o)/2),i=r(e[a]);if(i===t)return a;i>t?n=a-1:o=a+1}return n},findNextStep:(e,t=!0,r=15,n=10,o=400)=>{const a=Math.max(e-n,0)+(t?1:-1);return Math.min(o,Math[t?"ceil":"floor"](a/r)*r+n)},getBuildEnv:()=>"browser2-build",getDPI:()=>{let e=1;return typeof window=="object"&&(e=window.devicePixelRatio||1),e},getFromPath:(e,t)=>{const r=t.split(".");let n=e;for(let o=0;o<r.length;o++){const a=r[o];if(!n)return null;let i=n[a];if(typeof i=="function"&&(i=i.bind(n)()),!i||!O(i))return i;n=i}return n??null},getOS:T,hasFocus:it,isDefined:e=>e!=null,isEmpty:e=>e==null||e==="",isEqualArrays:mt,isEqualBounds:(e,t)=>e===t||!(e&&!t||t&&!e)&&e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height,isEqualObjectKeys:(e,t)=>{if(e===t)return!0;if(e&&!t||t&&!e)return!1;const r=Object.keys(e);if(r.length!==Object.keys(t).length)return!1;for(let n=0;n<r.length;n++)if(e[r[n]]!==t[r[n]])return!1;return!0},isNode:vt,isNullOrUndefined:nt,isNumeric:e=>{const t=1*e;return Number.isFinite(t)&&typeof t=="number"},isObject:O,isPromiseLike:e=>!!e&&typeof e.then=="function",isRectInsideRect:(e,t)=>e.top>=t.top&&e.bottom<=t.bottom&&e.left>=t.left&&e.right<=t.right,isRectIntersect:ot,mergeContentful:(...e)=>{const t=e.length;if(t>0&&e[t-1]!==void 0&&!O(e[t-1]))return e[t-1];let r=e[0]||{};for(let n=1;n<t;n++)r=E(r,e[n]||{},{arrayMerge:(o,a)=>[...a]});return r},nextTick:e=>{typeof window<"u"&&typeof window.requestAnimationFrame=="function"?window.requestAnimationFrame(()=>{e()}):(typeof setImmediate=="function"?setImmediate:setTimeout)(()=>{e()})},openFileDialog:(e="*.*")=>new Promise((t,r)=>{if(!at)return void r("Unable to open dialog with no dom.");const n=document.createElement("input");n.type="file",n.accept=e;let o=null,a=!1;globalThis.addEventListener?.("focus",()=>{setTimeout(()=>{o||a||(a=!0,t(null))},1e3)},{once:!0,passive:!0}),n.onchange=()=>{if(o=n.files[0],o){if(a)return void console.warn("File open detected after faux cancel.",o);t(o)}},n.autofocus=!0,n.click()}),rafThrottle:e=>{let t,r=!1,n=function(){r=!1,e(t)};return function(o){t=o,t&&t.persist&&t.persist(),r||(r=!0,requestAnimationFrame(n))}},removeEmptyProperties:Et,removeEqualValues:St,removeListenerAll:e=>{if(!e)return[];for(let t=0;t<e.length;t++)e[t]&&e[t]();return[]},requestTimeout:(e,t)=>{const r=rt(),n={id:requestAnimationFrame(function o(){rt()-r>=t?e.call(null):n.id=requestAnimationFrame(o)})};return n},roundAccurately:(e,t=0)=>{if(e==null||!isFinite(e))return null;const r=10**t;return Number(Math.round(e*r)/r)},setToPath:(e,t,r)=>{const n=t.split(".");let o=e;if(!o)throw new Error("Can not set path to a null path.");for(let a=0;o&&a<n.length-1;a++){const i=n[a];let l=o[i];if(l==null&&(l={},o[i]=l),!O(l))throw new Error("Can not set path to a non object path.");o=l}if(typeof r!="number"&&typeof r!="boolean"&&typeof r!="string"&&!O(r))throw new Error(`Can not set path to ${r} that is not a a supported primitive.`);return o[n[n.length-1]]=r,e},splitNumber:e=>{let t=Math.abs(e);if(isNaN(t)||!isFinite(e))return null;let r=0|t,n=t-r,o=0,a=0,i=1;if(n>5e-8)for(;a<8&&Math.abs(o/i-n)>5e-8;)a++,i*=10,o=Math.round(n*i);return{ip:Math.trunc(e),fp:o,ipLength:Math.ceil(Math.log10(r+1)),fpLength:a}},subtractRect:(e,t,r=!1)=>{if(!t)return[e];if(!ot(e,t))return[];const n=[];let o=e;const a=()=>{t.top>o.top&&t.top<o.bottom&&(n.push({...o,bottom:t.top}),o={...o,top:t.top})},i=()=>{t.bottom>o.top&&t.bottom<o.bottom&&(n.push({...o,top:t.bottom}),o={...o,bottom:t.bottom})},l=()=>{t.right>o.left&&t.right<o.right&&(n.push({...o,left:t.right}),o={...o,right:t.right})},s=()=>{t.left>o.left&&t.left<o.right&&(n.push({...o,right:t.left}),o={...o,left:t.left})};return r?(s(),l(),a(),i()):(a(),i(),l(),s()),n},textToKey:e=>e.replace(/[^a-zA-Z0-9]/g,"").toLowerCase(),throttle:function(e,t){let r=null;return(...n)=>{const o=Date.now();(!r||o-r>=t)&&(r=o,e(...n))}},toSafeJSON:function e(t){if(t===null||typeof t!="object")return t;if(typeof t.toJSON=="function")return t.toJSON();if(Array.isArray(t))return t.map(n=>e(n));if(typeof t.toString=="function"&&t.toString!==Object.prototype.toString)return t.toString();const r={};for(const n in t)t.hasOwnProperty(n)&&(r[n]=e(t[n]));return r},transpose:e=>{if(!e)return e;const t=e.length,r=e[0].length,n=[];for(let o=0;o<r;o++)n[o]=Array(t);for(let o=0;o<t;o++)for(let a=0;a<r;a++)n[a][o]=e[o][a];return n},uuidV4:R,validEnumValue:(e,t)=>{if(!Object.values(e).includes(t))throw new Error(`Invalid type: ${t??"null"}. Must be one of: ${Object.values(t).join(", ")}.`)},whenFocus:async(e,t=!1)=>new Promise(r=>{it(e,t)?r(!0):e.addEventListener("focusin",()=>{r(!0)},{once:!0}),e.focus()})},Symbol.toStringTag,{value:"Module"}));Object.freeze(Object.defineProperty({__proto__:null,MESSAGE_ERROR_INVALID_ARG:e=>`Invalid argument: '${e}'.`},Symbol.toStringTag,{value:"Module"}));const _t=e=>{const t=new Uint8Array(e),r=t.byteLength;let n="";for(let o=0;o<r;o++)n+=String.fromCharCode(t[o]);if(typeof window<"u"&&typeof globalThis.btoa=="function")return globalThis.btoa(n);if(typeof Buffer<"u")return Buffer.from(n,"binary").toString("base64");throw new Error("Unsupported environment")},W=e=>new Promise((t,r)=>{if(e)if(typeof FileReader<"u"){const n=new FileReader;n.onload=()=>{t(n.result)},n.onerror=()=>{r(n.error)},n.readAsText(e)}else if(typeof Buffer<"u"){const n=o=>Buffer.from(o).toString("utf-8");e.arrayBuffer().then(o=>{t(n(o))}).catch(o=>{r(o)})}else r(new Error("Unsupported environment"));else t("")});Object.freeze(Object.defineProperty({__proto__:null,DEFAULT_MIME_TYPE:"*/*",arrayBufferToBase64:_t,base64ToArrayBuffer:e=>{const t=typeof window<"u"&&typeof globalThis.atob=="function"?globalThis.atob(e):Buffer.from(e,"base64").toString("binary"),r=t.length,n=new Uint8Array(r);for(let o=0;o<r;o++)n[o]=t.charCodeAt(o);return n.buffer},blobToString:W},Symbol.toStringTag,{value:"Module"}));const Ot="data:image/png;base64,",It="Unable to resolve image.",lt=e=>new Promise(async(t,r)=>{let n=null;try{n=new Image,n.src=e,n.addEventListener("load",function(){t({width:n.naturalWidth,height:n.naturalHeight})},{once:!0}),n.addEventListener("error",function(){URL.revokeObjectURL(e),r("Invalid Image")},{once:!0}),await n.decode("sync")}catch{n?.src&&URL.revokeObjectURL(n.src)}n||r(It)}),U="image/svg+xml";var st,ct;Object.freeze(Object.defineProperty({__proto__:null,DATA_URL_PNG_PREFIX:Ot,getImageDataUrl:(e,t=1)=>new Promise(async(r,n)=>{let o=null;try{o=new Image,o.src=e,o.addEventListener("load",function(){try{const a=document.createElement("canvas");a.width=o.naturalWidth,a.height=o.naturalHeight,a.getContext("2d").drawImage(o,0,0);const i=a.toDataURL("image/png",t);r({elemImg:o,dataUrl:i})}catch(a){URL.revokeObjectURL(e),n(a)}},{once:!0}),o.addEventListener("error",function(){URL.revokeObjectURL(e),n("Invalid Image")},{once:!0}),await o.decode("sync")}catch{o?.src&&URL.revokeObjectURL(o.src)}o||n(It)}),loadImageDetails:async(e,t=null)=>{let r=null;const n=async()=>{try{const a=t??"image/*",i=URL.createObjectURL(new Blob([e],{type:a})),l=await lt(i);r={mimeType:a,naturalDimensions:l,asUrl:i}}catch{}},o=async()=>{try{const a=new TextDecoder().decode(e),i=URL.createObjectURL(new Blob([a],{type:U})),l=await lt(i);r={mimeType:t??U,naturalDimensions:l,asUrl:i,asSVGText:a}}catch{}};if(t===U?await o():t.startsWith("image/")?await n():(await n(),r||await o()),!r)throw new Error("Failed to load image");return r}},Symbol.toStringTag,{value:"Module"})),(ct=st||(st={})).resolveTypedUpdates=(e,t,r,n)=>{if(e===null)return e;if(e===void 0)return n;let o=e;if(t?.shorthand){const s=t?.shorthand(e,r);s!==void 0&&(o=s)}if(o!==null&&t?.getSubType){const s=t.getSubType(o);s&&(t=s)}const a=t?.properties,i=t?.arrayType??!1;let l=o;if(t&&t.merge&&l&&n)l=t.merge(l,n,r);else if(!i&&a){const s=Object.keys({...o,...n});l=null;for(let c=0;c<s.length;c++){const d=s[c];let w,u=o[d];if(u!==void 0){const f=a[d];w=f?(0,ct.resolveTypedUpdates)(u,f,r,n?.[d]):u}else w=n?.[d];w!=null&&(l=l??{},l[d]=w)}}return l};const ut=`The Safari browser does not support advanced copy and paste.
|
|
22
|
+
Copy and paste will be limited to within the browser tab.
|
|
23
|
+
|
|
24
|
+
Please use Chrome or Edge if external copy and paste is required.`,k=`You do not have permissions to access the clipboard.
|
|
25
|
+
All copy and paste operations will be limited to the browser tab.`,jt={Safari:`The Safari browser does not support advanced copy and paste.
|
|
26
|
+
Copy and paste will be limited to within the browser tab.
|
|
27
|
+
|
|
28
|
+
Please use Chrome or Edge if external copy and paste is required.`,Perms:k,PermsWrite:T()===y.Safari?ut:k,PermsRead:T()===y.Safari?ut:k},N=async()=>new Promise(e=>{document.hasFocus()?e():globalThis.addEventListener?.("focus",()=>{e()},{once:!0}),document.activeElement.focus?.()}),B=async(e,t,r)=>{if(T()===y.Safari)return await r(new Error(jt.Safari));try{const n=async i=>{try{return await i()}catch(l){if(l.message?.includes("Document is not focused"))return!1;throw l}},o=await globalThis?.navigator?.permissions?.query({name:e,allowWithoutGesture:!0,allowWithoutSanitization:!0});let a=!1;if(o.state==="prompt"&&(a=await n(t)),a||o.state!=="granted"||(a=await t()),!a)return await r(new Error(o.state))}catch(n){return n.message==="No valid data on clipboard"||n.name==="DataError"?void 0:await r(n)}},Tt=async e=>{try{return await e.read({unsanitized:[h]})}catch{}return await e.read()};if(!globalThis.ClipboardItem){const e=(r,n)=>new Blob([n],{type:r});class t{constructor(n,o){this._items={},this._types=Object.keys(n);const a={},i=Object.keys(n);for(let l=0;l<i.length;l++){const s=i[l];let c=n[s];a[s]=typeof c=="string"?e(s,c):c}this._items=a,this._presentationStyle=o?.presentationStyle??"unspecified"}get types(){return this._types}getType(n){return Promise.resolve(this._items[n])}supports(n){return!0}}globalThis.ClipboardItem=t}const V=async(e,t=h)=>new Promise(async(r,n)=>{try{const o=await(async(a,i)=>{if(!a)return null;const l=await Tt(a);let s=!1;for(let c=0;!s&&l&&c<l.length;c++)if(s=l[c].types.includes(i),s)return await l[c].getType(i);return s?void 0:null})(e,t);if(o){const a=new FileReader;a.onload=()=>{r(a.result)},a.onerror=()=>{r("")},a.readAsText(o)}else r("")}catch(o){n(o)}}),dt=async(e,t=h)=>{const r=await V(e,t);if(!r)return null;let n=null;try{n=new DOMParser().parseFromString(r,h)}catch{console.warn("Can't parse html from clipboard.")}return n},C="clipboard-uuid",v="web text/uuid",ft=e=>`<div style="display:none" ${C}="${e}"/>`,Wt=(e,t)=>{let r=null;try{const n=new DOMParser().parseFromString(t,h);n.body.firstElementChild.setAttribute(C,e),r=n.getElementsByTagName("body")[0].innerHTML}catch(n){console.warn("Can't embed uuid.",n)}return r},pt=(e,t)=>{if(!t||!e)return!1;try{const r=t.querySelectorAll(`[${C}="${e}"]`);if(r&&r.length===1)return!0;if(t.querySelector("parsererror"))throw new Error("We are unable to parse node");return!1}catch{return!1}};class wt{constructor(t){if(t?.nativeClipboard===void 0||t?.nativeClipboard===!0)try{this._nativeClipboard=globalThis?.navigator.clipboard}catch{t?.nativeClipboard===!0&&console.warn("NativeClipboard option set to true but no native clipboard available.")}else this._nativeClipboard=t?.nativeClipboard===!1?null:t?.nativeClipboard;this._disableCheckOnFocus=t?.disableCheckOnFocus??!1,this._init()}async _checkForChanges(){this._nativeClipboard&&this._state&&!this._disableCheckOnFocus&&await B("clipboard-read",async()=>{await N();const t=await V(this._nativeClipboard,v);if(!this._state||t&&t===this._state.uuid)return!0;const r=await dt(this._nativeClipboard,h);return!this._state||(pt(this._state.uuid,r)||this.clear(),!0)},async t=>{t?.message==="denied"||t.message?.includes("Document is not focused")||T()===y.Safari||console.warn("Unable to detect clipboard changes: ",t)})}_init(){const t=this;this._listeners=new Map,this._listenersCapture=new Map,this._state=null,this._nativeClipboard&&(this._onFocus=()=>{t._checkForChanges()},this._onBlur=()=>{globalThis.addEventListener?.("focus",t._onFocus,{once:!0})},globalThis.addEventListener?.("blur",this._onBlur),this._nativeClipboard.addEventListener("clipboardchange",r=>{t._checkForChanges()}))}async read(){if(!this._nativeClipboard)return this._state?.items??null;const t=this;return await B("clipboard-read",async()=>{if(await N(),this._state?.uuid){const r=await V(this._nativeClipboard,v);if(r&&r===t._state.uuid)return!0;const n=await dt(this._nativeClipboard,h);if(pt(t._state?.uuid,n))return!0}return t._state={items:await Tt(this._nativeClipboard),uuid:null,ref:null},this.dispatchEvent(new Event("clipboardread")),!0},async r=>{this.dispatchEvent(new Event("clipboarderrorread"))}),this._state?.items??[]}async write(t){return this._write({uuid:R(),items:t,ref:null})}async _write(t){if(!this._nativeClipboard)return this._state=t,this.dispatchEvent(new Event("clipboardwrite")),this.dispatchEvent(new Event("clipboardchange")),null;const r=this,n=[],o=t.uuid;let a=t.items??[];const i=()=>{r._state={uuid:o,ref:t.ref,items:n},r.dispatchEvent(new Event("clipboardwrite")),r.dispatchEvent(new Event("clipboardchange"))};await B("clipboard-write",async()=>{await N(),o&&a.length===0&&(a.push(new ClipboardItem({[v]:new Blob([o],{type:v})})),a.push(new ClipboardItem({[h]:new Blob([ft(o)],{type:h})})));for(let l=0;l<Math.min(1,a.length);l++){const s=a[l];let c=s.types.indexOf(h),d=null;if(c!==-1){const f=await s.getType(h);d=await W(f),d&&(d=Wt(o,d))}if(!d&&s.types.includes(b)){const f=await s.getType(b);if(f){let p=null;typeof f=="string"?(console.warn("text as string",f),p=f):p=await W(f),p&&(d=`<div ${C}="${o}">${p}</div>`)}}if(!d&&s.types.includes(L)){const f=await s.getType(L),p=_t(await f.arrayBuffer());d=`<div ${C}="${o}"><img src="${Ot+p}"/></div>`}!d&&o&&(d=ft(o));const w=new Blob([d??""],{type:h}),u={};for(let f=0;f<s.types.length;f++){const p=s.types[f];u[p]=f===c?w:s.getType(p)}d&&c===-1&&(u[h]=w),o&&(u[v]=new Blob([o],{type:v})),n.push(new ClipboardItem(u))}try{n&&n.length!==0?await this._nativeClipboard.write(n):await(async l=>{l&&await l.writeText("")})(this._nativeClipboard)}catch(l){l.message?.includes("Document is not focused")||console.warn("Unable to write to native clipboard: ",l)}return i(),!0},async l=>{this.dispatchEvent(new Event("clipboarderrorwrite")),i()})}async writeReference(t){if(!t)return void this.clear();let r=null;const n={};try{const a=await t.toText?.()??null;a&&(n[b]=new Blob([a??""],{type:b}))}catch(a){r=a}try{const a=await t.toHtml?.()??null;a&&(n[h]=new Blob([a],{type:h}))}catch(a){r=a,console.warn("export to html",a)}try{const a=await t.toImage?.()??null;a&&(n[L]=a)}catch(a){r=a,console.warn("export to png",a)}const o=this._write({uuid:R(),ref:t,items:Object.keys(n).length>0?[new ClipboardItem(n)]:null});if(r)throw r;return o}clear(t=!1){this._state&&(this._state=null,t&&this._write({uuid:null,ref:null,items:null}),this.dispatchEvent(new Event("clipboardwrite")),this.dispatchEvent(new Event("clipboardchange")))}async readReference(){return await this.read(),this._state?.ref??null}readText(){return new Promise(async(t,r)=>{const n=await this.read();let o=null;for(let i=0;!o&&n&&i<n.length;i++)n[i].types.includes(b)&&(o=await n[i].getType(b));if(!o)return void t("");const a=new FileReader;a.onload=()=>{t(a.result)},a.readAsText(o),a.onerror=i=>{r(i)}})}async writeText(t){const r=[new ClipboardItem({[b]:new Blob([t],{type:b})})];return this._write({uuid:R(),items:r,ref:null})}addEventListener(t,r,n={}){const o=n?.capture?this._listenersCapture:this._listeners;let a=o.get(t);a||(a=new Map,o.set(t,a)),a.set(r,typeof n=="boolean"?{}:n)}dispatchEvent(t){if(!t)return;const r=n=>{const o=n.get(t.type);o&&o.forEach((a,i)=>{try{typeof i=="function"?i(t):i.handleEvent&&i.handleEvent(t),a.once&&o.delete(i)}catch(l){console.warn(l)}})};return r(this._listenersCapture),r(this._listeners),!0}removeEventListener(t,r,n){const o=n?.capture?this._listenersCapture:this._listeners,a=o.get(t);a&&(a.delete(r),a.size===0&&o.delete(t))}close(){globalThis.removeEventListener?.("focus",this._onFocus),globalThis.removeEventListener?.("blur",this._onBlur)}}var z;(z=wt||(wt={})).ErrorMessages=jt,z.Global=new z;let ht=null,q=null,M=null;const Vt=Object.freeze({compileTypescript:async function(e){if(!e?.source)return null;if(q&&xt.deepEqual(q,e))return ht;const t=await async function(){if(M)return M;const{TypeScriptCompiler:n}=await Promise.resolve().then(()=>require("./BchlMljYmXDs0Ol2.cjs"));return M=new n,M}(),r=await t.compileModule(e);return ht=r,q=e,r}}),Gt=Object.freeze(Object.defineProperty({__proto__:null,ScriptingUtils:Vt},Symbol.toStringTag,{value:"Module"}));exports.$=xt,exports.i=Gt;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";/**
|
|
2
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.0.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
|
+
*/function I(t){return Array.isArray?Array.isArray(t):ne(t)==="[object Array]"}function v(t){return typeof t=="string"}function te(t){return typeof t=="number"}function ae(t){return t===!0||t===!1||function(e){return ie(e)&&e!==null}(t)&&ne(t)=="[object Boolean]"}function ie(t){return typeof t=="object"}function F(t){return t!=null}function K(t){return!t.trim().length}function ne(t){return t==null?t===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(t)}Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const G=Object.prototype.hasOwnProperty;class le{constructor(e){this._keys=[],this._keyMap={};let i=0;e.forEach(n=>{let s=se(n);this._keys.push(s),this._keyMap[s.id]=s,i+=s.weight}),this._keys.forEach(n=>{n.weight/=i})}get(e){return this._keyMap[e]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function se(t){let e=null,i=null,n=null,s=1,c=null;if(v(t)||I(t))n=t,e=H(t),i=q(t);else{if(!G.call(t,"name"))throw new Error((o=>`Missing ${o} property in key`)("name"));const u=t.name;if(n=u,G.call(t,"weight")&&(s=t.weight,s<=0))throw new Error((o=>`Property 'weight' in key '${o}' must be a positive integer`)(u));e=H(u),i=q(u),c=t.getFn}return{path:e,id:i,weight:s,src:n,getFn:c}}function H(t){return I(t)?t:t.split(".")}function q(t){return I(t)?t.join("."):t}var l={isCaseSensitive:!1,ignoreDiacritics:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(t,e)=>t.score===e.score?t.idx<e.idx?-1:1:t.score<e.score?-1:1,includeMatches:!1,findAllMatches:!1,minMatchCharLength:1,location:0,threshold:.6,distance:100,useExtendedSearch:!1,getFn:function(t,e){let i=[],n=!1;const s=(c,u,o)=>{if(F(c))if(u[o]){const r=c[u[o]];if(!F(r))return;if(o===u.length-1&&(v(r)||te(r)||ae(r)))i.push(function(a){return a==null?"":function(h){if(typeof h=="string")return h;let g=h+"";return g=="0"&&1/h==-1/0?"-0":g}(a)}(r));else if(I(r)){n=!0;for(let a=0,h=r.length;a<h;a+=1)s(r[a],u,o+1)}else u.length&&s(r,u,o+1)}else i.push(c)};return s(t,v(e)?e.split("."):e,0),n?i:i[0]},ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1};const de=/[^ ]+/g;class T{constructor({getFn:e=l.getFn,fieldNormWeight:i=l.fieldNormWeight}={}){this.norm=function(n=1,s=3){const c=new Map,u=Math.pow(10,s);return{get(o){const r=o.match(de).length;if(c.has(r))return c.get(r);const a=1/Math.pow(r,.5*n),h=parseFloat(Math.round(a*u)/u);return c.set(r,h),h},clear(){c.clear()}}}(i,3),this.getFn=e,this.isCreated=!1,this.setIndexRecords()}setSources(e=[]){this.docs=e}setIndexRecords(e=[]){this.records=e}setKeys(e=[]){this.keys=e,this._keysMap={},e.forEach((i,n)=>{this._keysMap[i.id]=n})}create(){!this.isCreated&&this.docs.length&&(this.isCreated=!0,v(this.docs[0])?this.docs.forEach((e,i)=>{this._addString(e,i)}):this.docs.forEach((e,i)=>{this._addObject(e,i)}),this.norm.clear())}add(e){const i=this.size();v(e)?this._addString(e,i):this._addObject(e,i)}removeAt(e){this.records.splice(e,1);for(let i=e,n=this.size();i<n;i+=1)this.records[i].i-=1}getValueForItemAtKeyId(e,i){return e[this._keysMap[i]]}size(){return this.records.length}_addString(e,i){if(!F(e)||K(e))return;let n={v:e,i,n:this.norm.get(e)};this.records.push(n)}_addObject(e,i){let n={i,$:{}};this.keys.forEach((s,c)=>{let u=s.getFn?s.getFn(e):this.getFn(e,s.path);if(F(u)){if(I(u)){let o=[];const r=[{nestedArrIndex:-1,value:u}];for(;r.length;){const{nestedArrIndex:a,value:h}=r.pop();if(F(h))if(v(h)&&!K(h)){let g={v:h,i:a,n:this.norm.get(h)};o.push(g)}else I(h)&&h.forEach((g,d)=>{r.push({nestedArrIndex:d,value:g})})}n.$[c]=o}else if(v(u)&&!K(u)){let o={v:u,n:this.norm.get(u)};n.$[c]=o}}}),this.records.push(n)}toJSON(){return{keys:this.keys,records:this.records}}}function re(t,e,{getFn:i=l.getFn,fieldNormWeight:n=l.fieldNormWeight}={}){const s=new T({getFn:i,fieldNormWeight:n});return s.setKeys(t.map(se)),s.setSources(e),s.create(),s}function W(t,{errors:e=0,currentLocation:i=0,expectedLocation:n=0,distance:s=l.distance,ignoreLocation:c=l.ignoreLocation}={}){const u=e/t.length;if(c)return u;const o=Math.abs(n-i);return s?u+o/s:o?1:u}const b=32;function ge(t,e,i,{location:n=l.location,distance:s=l.distance,threshold:c=l.threshold,findAllMatches:u=l.findAllMatches,minMatchCharLength:o=l.minMatchCharLength,includeMatches:r=l.includeMatches,ignoreLocation:a=l.ignoreLocation}={}){if(e.length>b)throw new Error(`Pattern length exceeds max of ${b}.`);const h=e.length,g=t.length,d=Math.max(0,Math.min(n,g));let f=c,A=d;const C=o>1||r,p=C?Array(g):[];let E;for(;(E=t.indexOf(e,A))>-1;){let D=W(e,{currentLocation:E,expectedLocation:d,distance:s,ignoreLocation:a});if(f=Math.min(D,f),A=E+h,C){let B=0;for(;B<h;)p[E+B]=1,B+=1}}A=-1;let y=[],k=1,M=h+g;const $=1<<h-1;for(let D=0;D<h;D+=1){let B=0,L=M;for(;B<L;)W(e,{errors:D,currentLocation:d+L,expectedLocation:d,distance:s,ignoreLocation:a})<=f?B=L:M=L,L=Math.floor((M-B)/2+B);M=L;let N=Math.max(1,d-L+1),x=u?g:Math.min(d+L,g)+h,_=Array(x+2);_[x+1]=(1<<D)-1;for(let m=x;m>=N;m-=1){let R=m-1,j=i[t.charAt(R)];if(C&&(p[R]=+!!j),_[m]=(_[m+1]<<1|1)&j,D&&(_[m]|=(y[m+1]|y[m])<<1|1|y[m+1]),_[m]&$&&(k=W(e,{errors:D,currentLocation:R,expectedLocation:d,distance:s,ignoreLocation:a}),k<=f)){if(f=k,A=R,A<=d)break;N=Math.max(1,2*d-A)}}if(W(e,{errors:D+1,currentLocation:d,expectedLocation:d,distance:s,ignoreLocation:a})>f)break;y=_}const S={isMatch:A>=0,score:Math.max(.001,k)};if(C){const D=function(B=[],L=l.minMatchCharLength){let N=[],x=-1,_=-1,m=0;for(let R=B.length;m<R;m+=1){let j=B[m];j&&x===-1?x=m:j||x===-1||(_=m-1,_-x+1>=L&&N.push([x,_]),x=-1)}return B[m-1]&&m-x>=L&&N.push([x,m-1]),N}(p,o);D.length?r&&(S.indices=D):S.isMatch=!1}return S}function fe(t){let e={};for(let i=0,n=t.length;i<n;i+=1){const s=t.charAt(i);e[s]=(e[s]||0)|1<<n-i-1}return e}const z=String.prototype.normalize?t=>t.normalize("NFD").replace(/[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C04\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u192B\u1930-\u193B\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ABE\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF2-\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA880\uA881\uA8B4-\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F]/g,""):t=>t;class ue{constructor(e,{location:i=l.location,threshold:n=l.threshold,distance:s=l.distance,includeMatches:c=l.includeMatches,findAllMatches:u=l.findAllMatches,minMatchCharLength:o=l.minMatchCharLength,isCaseSensitive:r=l.isCaseSensitive,ignoreDiacritics:a=l.ignoreDiacritics,ignoreLocation:h=l.ignoreLocation}={}){if(this.options={location:i,threshold:n,distance:s,includeMatches:c,findAllMatches:u,minMatchCharLength:o,isCaseSensitive:r,ignoreDiacritics:a,ignoreLocation:h},e=r?e:e.toLowerCase(),e=a?z(e):e,this.pattern=e,this.chunks=[],!this.pattern.length)return;const g=(f,A)=>{this.chunks.push({pattern:f,alphabet:fe(f),startIndex:A})},d=this.pattern.length;if(d>b){let f=0;const A=d%b,C=d-A;for(;f<C;)g(this.pattern.substr(f,b),f),f+=b;if(A){const p=d-b;g(this.pattern.substr(p),p)}}else g(this.pattern,0)}searchIn(e){const{isCaseSensitive:i,ignoreDiacritics:n,includeMatches:s}=this.options;if(e=i?e:e.toLowerCase(),e=n?z(e):e,this.pattern===e){let C={isMatch:!0,score:0};return s&&(C.indices=[[0,e.length-1]]),C}const{location:c,distance:u,threshold:o,findAllMatches:r,minMatchCharLength:a,ignoreLocation:h}=this.options;let g=[],d=0,f=!1;this.chunks.forEach(({pattern:C,alphabet:p,startIndex:E})=>{const{isMatch:y,score:k,indices:M}=ge(e,C,p,{location:c+E,distance:u,threshold:o,findAllMatches:r,minMatchCharLength:a,includeMatches:s,ignoreLocation:h});y&&(f=!0),d+=k,y&&M&&(g=[...g,...M])});let A={isMatch:f,score:f?d/this.chunks.length:1};return f&&s&&(A.indices=g),A}}class w{constructor(e){this.pattern=e}static isMultiMatch(e){return X(e,this.multiRegex)}static isSingleMatch(e){return X(e,this.singleRegex)}search(){}}function X(t,e){const i=t.match(e);return i?i[1]:null}class ce extends w{constructor(e,{location:i=l.location,threshold:n=l.threshold,distance:s=l.distance,includeMatches:c=l.includeMatches,findAllMatches:u=l.findAllMatches,minMatchCharLength:o=l.minMatchCharLength,isCaseSensitive:r=l.isCaseSensitive,ignoreDiacritics:a=l.ignoreDiacritics,ignoreLocation:h=l.ignoreLocation}={}){super(e),this._bitapSearch=new ue(e,{location:i,threshold:n,distance:s,includeMatches:c,findAllMatches:u,minMatchCharLength:o,isCaseSensitive:r,ignoreDiacritics:a,ignoreLocation:h})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(e){return this._bitapSearch.searchIn(e)}}class oe extends w{constructor(e){super(e)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(e){let i,n=0;const s=[],c=this.pattern.length;for(;(i=e.indexOf(this.pattern,n))>-1;)n=i+c,s.push([i,n-1]);const u=!!s.length;return{isMatch:u,score:u?0:1,indices:s}}}const J=[class extends w{constructor(t){super(t)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(t){const e=t===this.pattern;return{isMatch:e,score:e?0:1,indices:[0,this.pattern.length-1]}}},oe,class extends w{constructor(t){super(t)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(t){const e=t.startsWith(this.pattern);return{isMatch:e,score:e?0:1,indices:[0,this.pattern.length-1]}}},class extends w{constructor(t){super(t)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(t){const e=!t.startsWith(this.pattern);return{isMatch:e,score:e?0:1,indices:[0,t.length-1]}}},class extends w{constructor(t){super(t)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(t){const e=!t.endsWith(this.pattern);return{isMatch:e,score:e?0:1,indices:[0,t.length-1]}}},class extends w{constructor(t){super(t)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(t){const e=t.endsWith(this.pattern);return{isMatch:e,score:e?0:1,indices:[t.length-this.pattern.length,t.length-1]}}},class extends w{constructor(t){super(t)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(t){const e=t.indexOf(this.pattern)===-1;return{isMatch:e,score:e?0:1,indices:[0,t.length-1]}}},ce],Y=J.length,Ae=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,pe=new Set([ce.type,oe.type]);class Ce{constructor(e,{isCaseSensitive:i=l.isCaseSensitive,ignoreDiacritics:n=l.ignoreDiacritics,includeMatches:s=l.includeMatches,minMatchCharLength:c=l.minMatchCharLength,ignoreLocation:u=l.ignoreLocation,findAllMatches:o=l.findAllMatches,location:r=l.location,threshold:a=l.threshold,distance:h=l.distance}={}){this.query=null,this.options={isCaseSensitive:i,ignoreDiacritics:n,includeMatches:s,minMatchCharLength:c,findAllMatches:o,ignoreLocation:u,location:r,threshold:a,distance:h},e=i?e:e.toLowerCase(),e=n?z(e):e,this.pattern=e,this.query=function(g,d={}){return g.split("|").map(f=>{let A=f.trim().split(Ae).filter(p=>p&&!!p.trim()),C=[];for(let p=0,E=A.length;p<E;p+=1){const y=A[p];let k=!1,M=-1;for(;!k&&++M<Y;){const $=J[M];let S=$.isMultiMatch(y);S&&(C.push(new $(S,d)),k=!0)}if(!k)for(M=-1;++M<Y;){const $=J[M];let S=$.isSingleMatch(y);if(S){C.push(new $(S,d));break}}}return C})}(this.pattern,this.options)}static condition(e,i){return i.useExtendedSearch}searchIn(e){const i=this.query;if(!i)return{isMatch:!1,score:1};const{includeMatches:n,isCaseSensitive:s,ignoreDiacritics:c}=this.options;e=s?e:e.toLowerCase(),e=c?z(e):e;let u=0,o=[],r=0;for(let a=0,h=i.length;a<h;a+=1){const g=i[a];o.length=0,u=0;for(let d=0,f=g.length;d<f;d+=1){const A=g[d],{isMatch:C,indices:p,score:E}=A.search(e);if(!C){r=0,u=0,o.length=0;break}if(u+=1,r+=E,n){const y=A.constructor.type;pe.has(y)?o=[...o,...p]:o.push(p)}}if(u){let d={isMatch:!0,score:r/u};return n&&(d.indices=o),d}}return{isMatch:!1,score:1}}}const V=[];function Q(t,e){for(let i=0,n=V.length;i<n;i+=1){let s=V[i];if(s.condition(t,e))return new s(t,e)}return new ue(t,e)}const U="$and",me="$or",Z="$path",Me="$val",P=t=>!(!t[U]&&!t[me]),ee=t=>({[U]:Object.keys(t).map(e=>({[e]:t[e]}))});function he(t,e,{auto:i=!0}={}){const n=s=>{let c=Object.keys(s);const u=(r=>!!r[Z])(s);if(!u&&c.length>1&&!P(s))return n(ee(s));if((r=>!I(r)&&ie(r)&&!P(r))(s)){const r=u?s[Z]:c[0],a=u?s[Me]:s[r];if(!v(a))throw new Error((g=>`Invalid value for key ${g}`)(r));const h={keyId:q(r),pattern:a};return i&&(h.searcher=Q(a,e)),h}let o={children:[],operator:c[0]};return c.forEach(r=>{const a=s[r];I(a)&&a.forEach(h=>{o.children.push(n(h))})}),o};return P(t)||(t=ee(t)),n(t)}function Fe(t,e){const i=t.matches;e.matches=[],F(i)&&i.forEach(n=>{if(!F(n.indices)||!n.indices.length)return;const{indices:s,value:c}=n;let u={indices:s,value:c};n.key&&(u.key=n.key.src),n.idx>-1&&(u.refIndex=n.idx),e.matches.push(u)})}function Ee(t,e){e.score=t.score}class O{constructor(e,i={},n){this.options={...l,...i},this.options.useExtendedSearch,this._keyStore=new le(this.options.keys),this.setCollection(e,n)}setCollection(e,i){if(this._docs=e,i&&!(i instanceof T))throw new Error("Incorrect 'index' type");this._myIndex=i||re(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(e){F(e)&&(this._docs.push(e),this._myIndex.add(e))}remove(e=()=>!1){const i=[];for(let n=0,s=this._docs.length;n<s;n+=1){const c=this._docs[n];e(c,n)&&(this.removeAt(n),n-=1,s-=1,i.push(c))}return i}removeAt(e){this._docs.splice(e,1),this._myIndex.removeAt(e)}getIndex(){return this._myIndex}search(e,{limit:i=-1}={}){const{includeMatches:n,includeScore:s,shouldSort:c,sortFn:u,ignoreFieldNorm:o}=this.options;let r=v(e)?v(this._docs[0])?this._searchStringList(e):this._searchObjectList(e):this._searchLogical(e);return function(a,{ignoreFieldNorm:h=l.ignoreFieldNorm}){a.forEach(g=>{let d=1;g.matches.forEach(({key:f,norm:A,score:C})=>{const p=f?f.weight:null;d*=Math.pow(C===0&&p?Number.EPSILON:C,(p||1)*(h?1:A))}),g.score=d})}(r,{ignoreFieldNorm:o}),c&&r.sort(u),te(i)&&i>-1&&(r=r.slice(0,i)),function(a,h,{includeMatches:g=l.includeMatches,includeScore:d=l.includeScore}={}){const f=[];return g&&f.push(Fe),d&&f.push(Ee),a.map(A=>{const{idx:C}=A,p={item:h[C],refIndex:C};return f.length&&f.forEach(E=>{E(A,p)}),p})}(r,this._docs,{includeMatches:n,includeScore:s})}_searchStringList(e){const i=Q(e,this.options),{records:n}=this._myIndex,s=[];return n.forEach(({v:c,i:u,n:o})=>{if(!F(c))return;const{isMatch:r,score:a,indices:h}=i.searchIn(c);r&&s.push({item:c,idx:u,matches:[{score:a,value:c,norm:o,indices:h}]})}),s}_searchLogical(e){const i=he(e,this.options),n=(o,r,a)=>{if(!o.children){const{keyId:g,searcher:d}=o,f=this._findMatches({key:this._keyStore.get(g),value:this._myIndex.getValueForItemAtKeyId(r,g),searcher:d});return f&&f.length?[{idx:a,item:r,matches:f}]:[]}const h=[];for(let g=0,d=o.children.length;g<d;g+=1){const f=o.children[g],A=n(f,r,a);if(A.length)h.push(...A);else if(o.operator===U)return[]}return h},s=this._myIndex.records,c={},u=[];return s.forEach(({$:o,i:r})=>{if(F(o)){let a=n(i,o,r);a.length&&(c[r]||(c[r]={idx:r,item:o,matches:[]},u.push(c[r])),a.forEach(({matches:h})=>{c[r].matches.push(...h)}))}}),u}_searchObjectList(e){const i=Q(e,this.options),{keys:n,records:s}=this._myIndex,c=[];return s.forEach(({$:u,i:o})=>{if(!F(u))return;let r=[];n.forEach((a,h)=>{r.push(...this._findMatches({key:a,value:u[h],searcher:i}))}),r.length&&c.push({idx:o,item:u,matches:r})}),c}_findMatches({key:e,value:i,searcher:n}){if(!F(i))return[];let s=[];if(I(i))i.forEach(({v:c,i:u,n:o})=>{if(!F(c))return;const{isMatch:r,score:a,indices:h}=n.searchIn(c);r&&s.push({score:a,key:e,value:c,idx:u,norm:o,indices:h})});else{const{v:c,n:u}=i,{isMatch:o,score:r,indices:a}=n.searchIn(c);o&&s.push({score:r,key:e,value:c,norm:u,indices:a})}return s}}O.version="7.1.0",O.createIndex=re,O.parseIndex=function(t,{getFn:e=l.getFn,fieldNormWeight:i=l.fieldNormWeight}={}){const{keys:n,records:s}=t,c=new T({getFn:e,fieldNormWeight:i});return c.setKeys(n),c.setIndexRecords(s),c},O.config=l,O.parseQuery=he,function(...t){V.push(...t)}(Ce),exports.default=O;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";/**
|
|
2
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.0.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 s=require("react/jsx-runtime"),a=require("react"),t=require("./B5LCoenQbQmzic16.cjs"),p=require("@mui/material"),O=require("@mui/system"),H=["Input"],L=a.memo(a.forwardRef((T,$)=>{const{initialValue:w="",onOption:F,onValidateOption:l,onInputOption:u,onValidateInputOption:r,onDone:c,inputProps:d,inputLabel:S,inputType:P,inputPlaceHolder:b,options:g=H,autoFocusSel:v=".autoFocus",cancelOption:m,defaultOption:f=g?.[0],...C}=T,[I,j]=a.useState(!1),[n,q]=a.useState(w),[k,N]=a.useState(""),[V,B]=a.useState(!0),i=t.s0(async(e,o)=>{if(!r)return!0;const x=await r?.(e,o);N(x?.message??"");const y=x?.valid??!0;return B(y),y},[r]),h=t.s0(async e=>{u?.(n,e)},[n,u,c,F,m,f]),D=t.s0(async e=>{e.keyCode===t.Z0.Enter&&await i?.(n,null)},[n,h]),M=t.s0(e=>{q(e.target.value),i?.(e.target.value,null)},[l]),E=t.s0(async e=>{let o=await i(n,e);try{o!==!1&&(o=await i(n,e))}catch{}return o??!0},[n,l]);return s.jsx(t.E8,{options:g,onDone:c,onOption:(e,o)=>{o||h(e)},onValidateOption:E,cancelOption:m,defaultOption:f,autoFocusSel:v,...C,children:s.jsx(p.Box,{sx:{paddingTop:e=>e.spacing(1),paddingBottom:e=>e.spacing(0)},children:s.jsx(p.FormControl,{sx:{paddingTop:e=>e.spacing(1.5),minWidth:135,width:"100%"},size:"small",children:s.jsx(p.TextField,{onFocus:e=>{I||e.target?.select(),j(!0)},type:P,label:S,helperText:k||" ",sx:{width:"100%","& .MuiFormHelperText-root":{marginTop:e=>e.spacing(.5),color:V?void 0:"error.main"}},InputLabelProps:{shrink:!0},InputProps:{inputProps:{placeholder:b,spellCheck:!1,autoComplete:"off",...d,className:t.A0("autoFocus",d?.className),sx:{paddingTop:e=>e.spacing(1.25),paddingBottom:e=>e.spacing(.75),backgroundImage:`linear-gradient(${O.alpha("#fff",t.Ne(5))}, ${O.alpha("#fff",t.Ne(5))})`}}},value:n,onChange:M,onKeyDown:D,onContextMenu:e=>{e.stopPropagation()}})})})})}));exports.default=L;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";/**
|
|
2
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.0.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,42 @@
|
|
|
1
|
+
"use strict";/**
|
|
2
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.0.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 P=require("react/jsx-runtime"),w=require("react"),Nu=require("@mui/material"),$=require("./B5LCoenQbQmzic16.cjs");var Iu=$.requirePropTypes();const de=$.getDefaultExportFromCjs(Iu);function xe(t){return xe=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},xe(t)}var Vu=/^\s+/,Xu=/\s+$/;function _(t,n){if(n=n||{},(t=t||"")instanceof _)return t;if(!(this instanceof _))return new _(t,n);var e=function(r){var o={r:0,g:0,b:0},u=1,a=null,s=null,i=null,c=!1,l=!1;typeof r=="string"&&(r=function(d){d=d.replace(Vu,"").replace(Xu,"").toLowerCase();var f,b=!1;if(Ze[d])d=Ze[d],b=!0;else if(d=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};return(f=B.rgb.exec(d))?{r:f[1],g:f[2],b:f[3]}:(f=B.rgba.exec(d))?{r:f[1],g:f[2],b:f[3],a:f[4]}:(f=B.hsl.exec(d))?{h:f[1],s:f[2],l:f[3]}:(f=B.hsla.exec(d))?{h:f[1],s:f[2],l:f[3],a:f[4]}:(f=B.hsv.exec(d))?{h:f[1],s:f[2],v:f[3]}:(f=B.hsva.exec(d))?{h:f[1],s:f[2],v:f[3],a:f[4]}:(f=B.hex8.exec(d))?{r:D(f[1]),g:D(f[2]),b:D(f[3]),a:Mt(f[4]),format:b?"name":"hex8"}:(f=B.hex6.exec(d))?{r:D(f[1]),g:D(f[2]),b:D(f[3]),format:b?"name":"hex"}:(f=B.hex4.exec(d))?{r:D(f[1]+""+f[1]),g:D(f[2]+""+f[2]),b:D(f[3]+""+f[3]),a:Mt(f[4]+""+f[4]),format:b?"name":"hex8"}:(f=B.hex3.exec(d))?{r:D(f[1]+""+f[1]),g:D(f[2]+""+f[2]),b:D(f[3]+""+f[3]),format:b?"name":"hex"}:!1}(r)),xe(r)=="object"&&(V(r.r)&&V(r.g)&&V(r.b)?(h=r.r,p=r.g,v=r.b,o={r:255*k(h,255),g:255*k(p,255),b:255*k(v,255)},c=!0,l=String(r.r).substr(-1)==="%"?"prgb":"rgb"):V(r.h)&&V(r.s)&&V(r.v)?(a=fe(r.s),s=fe(r.v),o=function(d,f,b){d=6*k(d,360),f=k(f,100),b=k(b,100);var g=Math.floor(d),y=d-g,x=b*(1-f),j=b*(1-y*f),C=b*(1-(1-y)*f),R=g%6,L=[b,j,x,x,C,b][R],T=[C,b,b,j,x,x][R],O=[x,x,C,b,b,j][R];return{r:255*L,g:255*T,b:255*O}}(r.h,a,s),c=!0,l="hsv"):V(r.h)&&V(r.s)&&V(r.l)&&(a=fe(r.s),i=fe(r.l),o=function(d,f,b){var g,y,x;function j(L,T,O){return O<0&&(O+=1),O>1&&(O-=1),O<1/6?L+6*(T-L)*O:O<.5?T:O<2/3?L+(T-L)*(2/3-O)*6:L}if(d=k(d,360),f=k(f,100),b=k(b,100),f===0)g=y=x=b;else{var C=b<.5?b*(1+f):b+f-b*f,R=2*b-C;g=j(R,C,d+1/3),y=j(R,C,d),x=j(R,C,d-1/3)}return{r:255*g,g:255*y,b:255*x}}(r.h,a,i),c=!0,l="hsl"),r.hasOwnProperty("a")&&(u=r.a));var h,p,v;return u=bu(u),{ok:c,format:r.format||l,r:Math.min(255,Math.max(o.r,0)),g:Math.min(255,Math.max(o.g,0)),b:Math.min(255,Math.max(o.b,0)),a:u}}(t);this._originalInput=t,this._r=e.r,this._g=e.g,this._b=e.b,this._a=e.a,this._roundA=Math.round(100*this._a)/100,this._format=n.format||e.format,this._gradientType=n.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=e.ok}function wt(t,n,e){t=k(t,255),n=k(n,255),e=k(e,255);var r,o,u=Math.max(t,n,e),a=Math.min(t,n,e),s=(u+a)/2;if(u==a)r=o=0;else{var i=u-a;switch(o=s>.5?i/(2-u-a):i/(u+a),u){case t:r=(n-e)/i+(n<e?6:0);break;case n:r=(e-t)/i+2;break;case e:r=(t-n)/i+4}r/=6}return{h:r,s:o,l:s}}function _t(t,n,e){t=k(t,255),n=k(n,255),e=k(e,255);var r,o,u=Math.max(t,n,e),a=Math.min(t,n,e),s=u,i=u-a;if(o=u===0?0:i/u,u==a)r=0;else{switch(u){case t:r=(n-e)/i+(n<e?6:0);break;case n:r=(e-t)/i+2;break;case e:r=(t-n)/i+4}r/=6}return{h:r,s:o,v:s}}function xt(t,n,e,r){var o=[z(Math.round(t).toString(16)),z(Math.round(n).toString(16)),z(Math.round(e).toString(16))];return r&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function jt(t,n,e,r){return[z(vu(r)),z(Math.round(t).toString(16)),z(Math.round(n).toString(16)),z(Math.round(e).toString(16))].join("")}function qu(t,n){n=n===0?0:n||10;var e=_(t).toHsl();return e.s-=n/100,e.s=Me(e.s),_(e)}function Yu(t,n){n=n===0?0:n||10;var e=_(t).toHsl();return e.s+=n/100,e.s=Me(e.s),_(e)}function Gu(t){return _(t).desaturate(100)}function Ku(t,n){n=n===0?0:n||10;var e=_(t).toHsl();return e.l+=n/100,e.l=Me(e.l),_(e)}function Ju(t,n){n=n===0?0:n||10;var e=_(t).toRgb();return e.r=Math.max(0,Math.min(255,e.r-Math.round(-n/100*255))),e.g=Math.max(0,Math.min(255,e.g-Math.round(-n/100*255))),e.b=Math.max(0,Math.min(255,e.b-Math.round(-n/100*255))),_(e)}function Qu(t,n){n=n===0?0:n||10;var e=_(t).toHsl();return e.l-=n/100,e.l=Me(e.l),_(e)}function Zu(t,n){var e=_(t).toHsl(),r=(e.h+n)%360;return e.h=r<0?360+r:r,_(e)}function es(t){var n=_(t).toHsl();return n.h=(n.h+180)%360,_(n)}function Ot(t,n){if(isNaN(n)||n<=0)throw new Error("Argument to polyad must be a positive number");for(var e=_(t).toHsl(),r=[_(t)],o=360/n,u=1;u<n;u++)r.push(_({h:(e.h+u*o)%360,s:e.s,l:e.l}));return r}function ts(t){var n=_(t).toHsl(),e=n.h;return[_(t),_({h:(e+72)%360,s:n.s,l:n.l}),_({h:(e+216)%360,s:n.s,l:n.l})]}function rs(t,n,e){n=n||6,e=e||30;var r=_(t).toHsl(),o=360/e,u=[_(t)];for(r.h=(r.h-(o*n>>1)+720)%360;--n;)r.h=(r.h+o)%360,u.push(_(r));return u}function ns(t,n){n=n||6;for(var e=_(t).toHsv(),r=e.h,o=e.s,u=e.v,a=[],s=1/n;n--;)a.push(_({h:r,s:o,v:u})),u=(u+s)%1;return a}_.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var t=this.toRgb();return(299*t.r+587*t.g+114*t.b)/1e3},getLuminance:function(){var t,n,e,r=this.toRgb();return t=r.r/255,n=r.g/255,e=r.b/255,.2126*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.7152*(n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))+.0722*(e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4))},setAlpha:function(t){return this._a=bu(t),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var t=_t(this._r,this._g,this._b);return{h:360*t.h,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=_t(this._r,this._g,this._b),n=Math.round(360*t.h),e=Math.round(100*t.s),r=Math.round(100*t.v);return this._a==1?"hsv("+n+", "+e+"%, "+r+"%)":"hsva("+n+", "+e+"%, "+r+"%, "+this._roundA+")"},toHsl:function(){var t=wt(this._r,this._g,this._b);return{h:360*t.h,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=wt(this._r,this._g,this._b),n=Math.round(360*t.h),e=Math.round(100*t.s),r=Math.round(100*t.l);return this._a==1?"hsl("+n+", "+e+"%, "+r+"%)":"hsla("+n+", "+e+"%, "+r+"%, "+this._roundA+")"},toHex:function(t){return xt(this._r,this._g,this._b,t)},toHexString:function(t){return"#"+this.toHex(t)},toHex8:function(t){return function(n,e,r,o,u){var a=[z(Math.round(n).toString(16)),z(Math.round(e).toString(16)),z(Math.round(r).toString(16)),z(vu(o))];return u&&a[0].charAt(0)==a[0].charAt(1)&&a[1].charAt(0)==a[1].charAt(1)&&a[2].charAt(0)==a[2].charAt(1)&&a[3].charAt(0)==a[3].charAt(1)?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0)+a[3].charAt(0):a.join("")}(this._r,this._g,this._b,this._a,t)},toHex8String:function(t){return"#"+this.toHex8(t)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(100*k(this._r,255))+"%",g:Math.round(100*k(this._g,255))+"%",b:Math.round(100*k(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(100*k(this._r,255))+"%, "+Math.round(100*k(this._g,255))+"%, "+Math.round(100*k(this._b,255))+"%)":"rgba("+Math.round(100*k(this._r,255))+"%, "+Math.round(100*k(this._g,255))+"%, "+Math.round(100*k(this._b,255))+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":!(this._a<1)&&(os[xt(this._r,this._g,this._b,!0)]||!1)},toFilter:function(t){var n="#"+jt(this._r,this._g,this._b,this._a),e=n,r=this._gradientType?"GradientType = 1, ":"";if(t){var o=_(t);e="#"+jt(o._r,o._g,o._b,o._a)}return"progid:DXImageTransform.Microsoft.gradient("+r+"startColorstr="+n+",endColorstr="+e+")"},toString:function(t){var n=!!t;t=t||this._format;var e=!1,r=this._a<1&&this._a>=0;return n||!r||t!=="hex"&&t!=="hex6"&&t!=="hex3"&&t!=="hex4"&&t!=="hex8"&&t!=="name"?(t==="rgb"&&(e=this.toRgbString()),t==="prgb"&&(e=this.toPercentageRgbString()),t!=="hex"&&t!=="hex6"||(e=this.toHexString()),t==="hex3"&&(e=this.toHexString(!0)),t==="hex4"&&(e=this.toHex8String(!0)),t==="hex8"&&(e=this.toHex8String()),t==="name"&&(e=this.toName()),t==="hsl"&&(e=this.toHslString()),t==="hsv"&&(e=this.toHsvString()),e||this.toHexString()):t==="name"&&this._a===0?this.toName():this.toRgbString()},clone:function(){return _(this.toString())},_applyModification:function(t,n){var e=t.apply(null,[this].concat([].slice.call(n)));return this._r=e._r,this._g=e._g,this._b=e._b,this.setAlpha(e._a),this},lighten:function(){return this._applyModification(Ku,arguments)},brighten:function(){return this._applyModification(Ju,arguments)},darken:function(){return this._applyModification(Qu,arguments)},desaturate:function(){return this._applyModification(qu,arguments)},saturate:function(){return this._applyModification(Yu,arguments)},greyscale:function(){return this._applyModification(Gu,arguments)},spin:function(){return this._applyModification(Zu,arguments)},_applyCombination:function(t,n){return t.apply(null,[this].concat([].slice.call(n)))},analogous:function(){return this._applyCombination(rs,arguments)},complement:function(){return this._applyCombination(es,arguments)},monochromatic:function(){return this._applyCombination(ns,arguments)},splitcomplement:function(){return this._applyCombination(ts,arguments)},triad:function(){return this._applyCombination(Ot,[3])},tetrad:function(){return this._applyCombination(Ot,[4])}},_.fromRatio=function(t,n){if(xe(t)=="object"){var e={};for(var r in t)t.hasOwnProperty(r)&&(e[r]=r==="a"?t[r]:fe(t[r]));t=e}return _(t,n)},_.equals=function(t,n){return!(!t||!n)&&_(t).toRgbString()==_(n).toRgbString()},_.random=function(){return _.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})},_.mix=function(t,n,e){e=e===0?0:e||50;var r=_(t).toRgb(),o=_(n).toRgb(),u=e/100;return _({r:(o.r-r.r)*u+r.r,g:(o.g-r.g)*u+r.g,b:(o.b-r.b)*u+r.b,a:(o.a-r.a)*u+r.a})},_.readability=function(t,n){var e=_(t),r=_(n);return(Math.max(e.getLuminance(),r.getLuminance())+.05)/(Math.min(e.getLuminance(),r.getLuminance())+.05)},_.isReadable=function(t,n,e){var r,o,u=_.readability(t,n);switch(o=!1,(r=function(a){var s,i;return s=((a=a||{level:"AA",size:"small"}).level||"AA").toUpperCase(),i=(a.size||"small").toLowerCase(),s!=="AA"&&s!=="AAA"&&(s="AA"),i!=="small"&&i!=="large"&&(i="small"),{level:s,size:i}}(e)).level+r.size){case"AAsmall":case"AAAlarge":o=u>=4.5;break;case"AAlarge":o=u>=3;break;case"AAAsmall":o=u>=7}return o},_.mostReadable=function(t,n,e){var r,o,u,a,s=null,i=0;o=(e=e||{}).includeFallbackColors,u=e.level,a=e.size;for(var c=0;c<n.length;c++)(r=_.readability(t,n[c]))>i&&(i=r,s=_(n[c]));return _.isReadable(t,s,{level:u,size:a})||!o?s:(e.includeFallbackColors=!1,_.mostReadable(t,["#fff","#000"],e))};var Ze=_.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},os=_.hexNames=function(t){var n={};for(var e in t)t.hasOwnProperty(e)&&(n[t[e]]=e);return n}(Ze);function bu(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}function k(t,n){(function(r){return typeof r=="string"&&r.indexOf(".")!=-1&&parseFloat(r)===1})(t)&&(t="100%");var e=function(r){return typeof r=="string"&&r.indexOf("%")!=-1}(t);return t=Math.min(n,Math.max(0,parseFloat(t))),e&&(t=parseInt(t*n,10)/100),Math.abs(t-n)<1e-6?1:t%n/parseFloat(n)}function Me(t){return Math.min(1,Math.max(0,t))}function D(t){return parseInt(t,16)}function z(t){return t.length==1?"0"+t:""+t}function fe(t){return t<=1&&(t=100*t+"%"),t}function vu(t){return Math.round(255*parseFloat(t)).toString(16)}function Mt(t){return D(t)/255}var Y,be,ve,B=(be="[\\s|\\(]+("+(Y="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+Y+")[,|\\s]+("+Y+")\\s*\\)?",ve="[\\s|\\(]+("+Y+")[,|\\s]+("+Y+")[,|\\s]+("+Y+")[,|\\s]+("+Y+")\\s*\\)?",{CSS_UNIT:new RegExp(Y),rgb:new RegExp("rgb"+be),rgba:new RegExp("rgba"+ve),hsl:new RegExp("hsl"+be),hsla:new RegExp("hsla"+ve),hsv:new RegExp("hsv"+be),hsva:new RegExp("hsva"+ve),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function V(t){return!!B.CSS_UNIT.exec(t)}var St,Et,Ct,At,kt,Rt,Pt,Tt,Lt,Ut,Ft,Dt,Bt,zt,Ht,Wt,$t,Nt,It,Vt,Xt,qt,Yt,Gt,Kt,Jt,Qt,Zt,F={},re={};function gu(){if(Et)return St;Et=1;var t=typeof $.commonjsGlobal=="object"&&$.commonjsGlobal&&$.commonjsGlobal.Object===Object&&$.commonjsGlobal;return St=t}function N(){if(At)return Ct;At=1;var t=gu(),n=typeof self=="object"&&self&&self.Object===Object&&self,e=t||n||Function("return this")();return Ct=e}function le(){if(Rt)return kt;Rt=1;var t=N().Symbol;return kt=t}function J(){if(Dt)return Ft;Dt=1;var t=le(),n=function(){if(Tt)return Pt;Tt=1;var o=le(),u=Object.prototype,a=u.hasOwnProperty,s=u.toString,i=o?o.toStringTag:void 0;return Pt=function(c){var l=a.call(c,i),h=c[i];try{c[i]=void 0;var p=!0}catch{}var v=s.call(c);return p&&(l?c[i]=h:delete c[i]),v}}(),e=function(){if(Ut)return Lt;Ut=1;var o=Object.prototype.toString;return Lt=function(u){return o.call(u)}}(),r=t?t.toStringTag:void 0;return Ft=function(o){return o==null?o===void 0?"[object Undefined]":"[object Null]":r&&r in Object(o)?n(o):e(o)}}function H(){if(zt)return Bt;zt=1;var t=Array.isArray;return Bt=t}function X(){return Wt?Ht:(Wt=1,Ht=function(t){return t!=null&&typeof t=="object"})}function is(){if(qt)return Xt;qt=1;var t=(Vt||(Vt=1,It=function(e){return function(r,o,u){for(var a=-1,s=Object(r),i=u(r),c=i.length;c--;){var l=i[e?c:++a];if(o(s[l],l,s)===!1)break}return r}}),It),n=t();return Xt=n}function yu(){if(Zt)return Qt;Zt=1;var t=function(){if(Jt)return Kt;Jt=1;var a=J(),s=X();return Kt=function(i){return s(i)&&a(i)=="[object Arguments]"}}(),n=X(),e=Object.prototype,r=e.hasOwnProperty,o=e.propertyIsEnumerable,u=t(function(){return arguments}())?t:function(a){return n(a)&&r.call(a,"callee")&&!o.call(a,"callee")};return Qt=u}var er,tr,rr,nr,or,ir,ar,ur,sr,cr,fr,Ae={exports:{}};function tt(){return rr||(rr=1,function(t,n){var e=N(),r=tr?er:(tr=1,er=function(){return!1}),o=n&&!n.nodeType&&n,u=o&&t&&!t.nodeType&&t,a=u&&u.exports===o?e.Buffer:void 0,s=(a?a.isBuffer:void 0)||r;t.exports=s}(Ae,Ae.exports)),Ae.exports}function mu(){if(or)return nr;or=1;var t=/^(?:0|[1-9]\d*)$/;return nr=function(n,e){var r=typeof n;return!!(e=e??9007199254740991)&&(r=="number"||r!="symbol"&&t.test(n))&&n>-1&&n%1==0&&n<e}}function rt(){return ar?ir:(ar=1,ir=function(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=9007199254740991})}function nt(){return fr?cr:(fr=1,cr=function(t){return function(n){return t(n)}})}var lr,hr,pr,dr,br,vr,gr,yr,mr,wr,_r,xr,jr,Or,Mr,Sr,Er,Cr,Ar,kr,Rr,Pr,Tr,Lr,Ur,Fr,Dr,Br,zr,Hr,Wr,$r,Nr,ke,Ir,Vr,Xr,qr,Yr,Gr,Kr,Re,Jr,Pe,Qr,Zr,en,Te,tn,rn,nn,on,an,un,sn,cn,fn,ln,hn,pn,dn,bn,vn,gn,yn,mn,wn,_n,xn,jn,On,Mn,Sn,En,Cn,An,kn,Rn,Pn,Tn,Ln,Un,Fn,Dn,Bn,zn,Hn,Wn,$n,Nn,In,Vn,Xn,qn,Yn,Gn,Kn,Jn,Qn,Zn,eo,to,ro,no,oo,io,ao,uo,so,co,fo,lo,ho,po,bo,vo,go,Le,yo,mo,wo,_o,xo,jo,Oo,Mo,So,Ue,Eo,Co,Ao,ko,Ro,Po,To,Lo,Uo,Fo,Do,Fe,Bo,zo,Ho,Wo,$o,No,Io,Vo,Xo,qo,Yo,Go,Ko,De,Jo,Be,Qo,Zo,ei,ti,ri,ni,oi,ii,ai,ui,si,ci,fi,li,hi,pi,di,bi,vi,ze,gi,yi,mi,wi,_i,xi,ji,He,Oi,Mi,Si,Ei,Ci,We,Ai,ki,Ri,Pi,Ti,Li,Ui,Fi,Di,Bi,zi,Hi,Wi,$e,$i,Ni,Ii,Ne,Vi,Xi,qi,Yi,Ie={exports:{}};function ot(){return lr||(lr=1,function(t,n){var e=gu(),r=n&&!n.nodeType&&n,o=r&&t&&!t.nodeType&&t,u=o&&o.exports===r&&e.process,a=function(){try{var s=o&&o.require&&o.require("util").types;return s||u&&u.binding&&u.binding("util")}catch{}}();t.exports=a}(Ie,Ie.exports)),Ie.exports}function wu(){if(pr)return hr;pr=1;var t=function(){if(sr)return ur;sr=1;var u=J(),a=rt(),s=X(),i={};return i["[object Float32Array]"]=i["[object Float64Array]"]=i["[object Int8Array]"]=i["[object Int16Array]"]=i["[object Int32Array]"]=i["[object Uint8Array]"]=i["[object Uint8ClampedArray]"]=i["[object Uint16Array]"]=i["[object Uint32Array]"]=!0,i["[object Arguments]"]=i["[object Array]"]=i["[object ArrayBuffer]"]=i["[object Boolean]"]=i["[object DataView]"]=i["[object Date]"]=i["[object Error]"]=i["[object Function]"]=i["[object Map]"]=i["[object Number]"]=i["[object Object]"]=i["[object RegExp]"]=i["[object Set]"]=i["[object String]"]=i["[object WeakMap]"]=!1,ur=function(c){return s(c)&&a(c.length)&&!!i[u(c)]}}(),n=nt(),e=ot(),r=e&&e.isTypedArray,o=r?n(r):t;return hr=o}function _u(){if(br)return dr;br=1;var t=(Gt||(Gt=1,Yt=function(s,i){for(var c=-1,l=Array(s);++c<s;)l[c]=i(c);return l}),Yt),n=yu(),e=H(),r=tt(),o=mu(),u=wu(),a=Object.prototype.hasOwnProperty;return dr=function(s,i){var c=e(s),l=!c&&n(s),h=!c&&!l&&r(s),p=!c&&!l&&!h&&u(s),v=c||l||h||p,d=v?t(s.length,String):[],f=d.length;for(var b in s)!i&&!a.call(s,b)||v&&(b=="length"||h&&(b=="offset"||b=="parent")||p&&(b=="buffer"||b=="byteLength"||b=="byteOffset")||o(b,f))||d.push(b);return d}}function it(){if(gr)return vr;gr=1;var t=Object.prototype;return vr=function(n){var e=n&&n.constructor;return n===(typeof e=="function"&&e.prototype||t)}}function xu(){return mr?yr:(mr=1,yr=function(t,n){return function(e){return t(n(e))}})}function as(){if(jr)return xr;jr=1;var t=it(),n=function(){if(_r)return wr;_r=1;var r=xu()(Object.keys,Object);return wr=r}(),e=Object.prototype.hasOwnProperty;return xr=function(r){if(!t(r))return n(r);var o=[];for(var u in Object(r))e.call(r,u)&&u!="constructor"&&o.push(u);return o}}function ue(){return Mr?Or:(Mr=1,Or=function(t){var n=typeof t;return t!=null&&(n=="object"||n=="function")})}function ju(){if(Er)return Sr;Er=1;var t=J(),n=ue();return Sr=function(e){if(!n(e))return!1;var r=t(e);return r=="[object Function]"||r=="[object GeneratorFunction]"||r=="[object AsyncFunction]"||r=="[object Proxy]"}}function Se(){if(Ar)return Cr;Ar=1;var t=ju(),n=rt();return Cr=function(e){return e!=null&&n(e.length)&&!t(e)}}function he(){if(Rr)return kr;Rr=1;var t=_u(),n=as(),e=Se();return kr=function(r){return e(r)?t(r):n(r)}}function Ou(){if(Tr)return Pr;Tr=1;var t=is(),n=he();return Pr=function(e,r){return e&&t(e,r,n)}}function Mu(){return Ur?Lr:(Ur=1,Lr=function(t){return t})}function at(){if(zr)return Br;zr=1;var t=Ou(),n=function(){if(Dr)return Fr;Dr=1;var e=Mu();return Fr=function(r){return typeof r=="function"?r:e}}();return Br=function(e,r){return e&&t(e,n(r))}}function ut(){if(Wr)return Hr;Wr=1;var t=xu()(Object.getPrototypeOf,Object);return Hr=t}function Su(){return Ir||(Ir=1,ke=function(t,n){for(var e=-1,r=t==null?0:t.length,o=Array(r);++e<r;)o[e]=n(t[e],e,t);return o}),ke}function st(){return Yr?qr:(Yr=1,qr=function(t,n){return t===n||t!=t&&n!=n})}function ge(){if(Kr)return Gr;Kr=1;var t=st();return Gr=function(n,e){for(var r=n.length;r--;)if(t(n[r][0],e))return r;return-1}}function _e(){if(nn)return rn;nn=1;var t=Xr?Vr:(Xr=1,Vr=function(){this.__data__=[],this.size=0}),n=function(){if(Jr)return Re;Jr=1;var a=ge(),s=Array.prototype.splice;return Re=function(i){var c=this.__data__,l=a(c,i);return!(l<0||(l==c.length-1?c.pop():s.call(c,l,1),--this.size,0))},Re}(),e=function(){if(Qr)return Pe;Qr=1;var a=ge();return Pe=function(s){var i=this.__data__,c=a(i,s);return c<0?void 0:i[c][1]},Pe}(),r=function(){if(en)return Zr;en=1;var a=ge();return Zr=function(s){return a(this.__data__,s)>-1}}(),o=function(){if(tn)return Te;tn=1;var a=ge();return Te=function(s,i){var c=this.__data__,l=a(c,s);return l<0?(++this.size,c.push([s,i])):c[l][1]=i,this},Te}();function u(a){var s=-1,i=a==null?0:a.length;for(this.clear();++s<i;){var c=a[s];this.set(c[0],c[1])}}return u.prototype.clear=t,u.prototype.delete=n,u.prototype.get=e,u.prototype.has=r,u.prototype.set=o,rn=u}function us(){if(vn)return bn;vn=1;var t,n=function(){if(dn)return pn;dn=1;var r=N()["__core-js_shared__"];return pn=r}(),e=(t=/[^.]+$/.exec(n&&n.keys&&n.keys.IE_PROTO||""))?"Symbol(src)_1."+t:"";return bn=function(r){return!!e&&e in r}}function Eu(){if(yn)return gn;yn=1;var t=Function.prototype.toString;return gn=function(n){if(n!=null){try{return t.call(n)}catch{}try{return n+""}catch{}}return""}}function K(){if(On)return jn;On=1;var t=function(){if(wn)return mn;wn=1;var e=ju(),r=us(),o=ue(),u=Eu(),a=/^\[object .+?Constructor\]$/,s=Function.prototype,i=Object.prototype,c=s.toString,l=i.hasOwnProperty,h=RegExp("^"+c.call(l).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");return mn=function(p){return!(!o(p)||r(p))&&(e(p)?h:a).test(u(p))}}(),n=xn?_n:(xn=1,_n=function(e,r){return e?.[r]});return jn=function(e,r){var o=n(e,r);return t(o)?o:void 0}}function ct(){if(Sn)return Mn;Sn=1;var t=K()(N(),"Map");return Mn=t}function ye(){if(Cn)return En;Cn=1;var t=K()(Object,"create");return En=t}function ss(){if(Hn)return zn;Hn=1;var t=function(){if(kn)return An;kn=1;var a=ye();return An=function(){this.__data__=a?a(null):{},this.size=0}}(),n=Pn?Rn:(Pn=1,Rn=function(a){var s=this.has(a)&&delete this.__data__[a];return this.size-=s?1:0,s}),e=function(){if(Ln)return Tn;Ln=1;var a=ye(),s=Object.prototype.hasOwnProperty;return Tn=function(i){var c=this.__data__;if(a){var l=c[i];return l==="__lodash_hash_undefined__"?void 0:l}return s.call(c,i)?c[i]:void 0}}(),r=function(){if(Fn)return Un;Fn=1;var a=ye(),s=Object.prototype.hasOwnProperty;return Un=function(i){var c=this.__data__;return a?c[i]!==void 0:s.call(c,i)}}(),o=function(){if(Bn)return Dn;Bn=1;var a=ye();return Dn=function(s,i){var c=this.__data__;return this.size+=this.has(s)?0:1,c[s]=a&&i===void 0?"__lodash_hash_undefined__":i,this}}();function u(a){var s=-1,i=a==null?0:a.length;for(this.clear();++s<i;){var c=a[s];this.set(c[0],c[1])}}return u.prototype.clear=t,u.prototype.delete=n,u.prototype.get=e,u.prototype.has=r,u.prototype.set=o,zn=u}function me(){if(Xn)return Vn;Xn=1;var t=In?Nn:(In=1,Nn=function(n){var e=typeof n;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?n!=="__proto__":n===null});return Vn=function(n,e){var r=n.__data__;return t(e)?r[typeof e=="string"?"string":"hash"]:r.map}}function ft(){if(ro)return to;ro=1;var t=function(){if($n)return Wn;$n=1;var a=ss(),s=_e(),i=ct();return Wn=function(){this.size=0,this.__data__={hash:new a,map:new(i||s),string:new a}}}(),n=function(){if(Yn)return qn;Yn=1;var a=me();return qn=function(s){var i=a(this,s).delete(s);return this.size-=i?1:0,i}}(),e=function(){if(Kn)return Gn;Kn=1;var a=me();return Gn=function(s){return a(this,s).get(s)}}(),r=function(){if(Qn)return Jn;Qn=1;var a=me();return Jn=function(s){return a(this,s).has(s)}}(),o=function(){if(eo)return Zn;eo=1;var a=me();return Zn=function(s,i){var c=a(this,s),l=c.size;return c.set(s,i),this.size+=c.size==l?0:1,this}}();function u(a){var s=-1,i=a==null?0:a.length;for(this.clear();++s<i;){var c=a[s];this.set(c[0],c[1])}}return u.prototype.clear=t,u.prototype.delete=n,u.prototype.get=e,u.prototype.has=r,u.prototype.set=o,to=u}function lt(){if(ao)return io;ao=1;var t=_e(),n=function(){if(an)return on;an=1;var s=_e();return on=function(){this.__data__=new s,this.size=0}}(),e=sn?un:(sn=1,un=function(s){var i=this.__data__,c=i.delete(s);return this.size=i.size,c}),r=fn?cn:(fn=1,cn=function(s){return this.__data__.get(s)}),o=hn?ln:(hn=1,ln=function(s){return this.__data__.has(s)}),u=function(){if(oo)return no;oo=1;var s=_e(),i=ct(),c=ft();return no=function(l,h){var p=this.__data__;if(p instanceof s){var v=p.__data__;if(!i||v.length<199)return v.push([l,h]),this.size=++p.size,this;p=this.__data__=new c(v)}return p.set(l,h),this.size=p.size,this}}();function a(s){var i=this.__data__=new t(s);this.size=i.size}return a.prototype.clear=n,a.prototype.delete=e,a.prototype.get=r,a.prototype.has=o,a.prototype.set=u,io=a}function cs(){if(ho)return lo;ho=1;var t=ft(),n=so?uo:(so=1,uo=function(o){return this.__data__.set(o,"__lodash_hash_undefined__"),this}),e=fo?co:(fo=1,co=function(o){return this.__data__.has(o)});function r(o){var u=-1,a=o==null?0:o.length;for(this.__data__=new t;++u<a;)this.add(o[u])}return r.prototype.add=r.prototype.push=n,r.prototype.has=e,lo=r}function Cu(){if(yo)return Le;yo=1;var t=cs(),n=(bo||(bo=1,po=function(r,o){for(var u=-1,a=r==null?0:r.length;++u<a;)if(o(r[u],u,r))return!0;return!1}),po),e=go?vo:(go=1,vo=function(r,o){return r.has(o)});return Le=function(r,o,u,a,s,i){var c=1&u,l=r.length,h=o.length;if(l!=h&&!(c&&h>l))return!1;var p=i.get(r),v=i.get(o);if(p&&v)return p==o&&v==r;var d=-1,f=!0,b=2&u?new t:void 0;for(i.set(r,o),i.set(o,r);++d<l;){var g=r[d],y=o[d];if(a)var x=c?a(y,g,d,o,r,i):a(g,y,d,r,o,i);if(x!==void 0){if(x)continue;f=!1;break}if(b){if(!n(o,function(j,C){if(!e(b,C)&&(g===j||s(g,j,u,a,i)))return b.push(C)})){f=!1;break}}else if(g!==y&&!s(g,y,u,a,i)){f=!1;break}}return i.delete(r),i.delete(o),f},Le}function Au(){if(wo)return mo;wo=1;var t=N().Uint8Array;return mo=t}function fs(){if(So)return Mo;So=1;var t=le(),n=Au(),e=st(),r=Cu(),o=(xo||(xo=1,_o=function(i){var c=-1,l=Array(i.size);return i.forEach(function(h,p){l[++c]=[p,h]}),l}),_o),u=(Oo||(Oo=1,jo=function(i){var c=-1,l=Array(i.size);return i.forEach(function(h){l[++c]=h}),l}),jo),a=t?t.prototype:void 0,s=a?a.valueOf:void 0;return Mo=function(i,c,l,h,p,v,d){switch(l){case"[object DataView]":if(i.byteLength!=c.byteLength||i.byteOffset!=c.byteOffset)return!1;i=i.buffer,c=c.buffer;case"[object ArrayBuffer]":return!(i.byteLength!=c.byteLength||!v(new n(i),new n(c)));case"[object Boolean]":case"[object Date]":case"[object Number]":return e(+i,+c);case"[object Error]":return i.name==c.name&&i.message==c.message;case"[object RegExp]":case"[object String]":return i==c+"";case"[object Map]":var f=o;case"[object Set]":var b=1&h;if(f||(f=u),i.size!=c.size&&!b)return!1;var g=d.get(i);if(g)return g==c;h|=2,d.set(i,c);var y=r(f(i),f(c),h,p,v,d);return d.delete(i),y;case"[object Symbol]":if(s)return s.call(i)==s.call(c)}return!1}}function ku(){return Eo||(Eo=1,Ue=function(t,n){for(var e=-1,r=n.length,o=t.length;++e<r;)t[o+e]=n[e];return t}),Ue}function Ru(){if(Ao)return Co;Ao=1;var t=ku(),n=H();return Co=function(e,r,o){var u=r(e);return n(e)?u:t(u,o(e))}}function Pu(){return To?Po:(To=1,Po=function(){return[]})}function ht(){if(Uo)return Lo;Uo=1;var t=(Ro||(Ro=1,ko=function(o,u){for(var a=-1,s=o==null?0:o.length,i=0,c=[];++a<s;){var l=o[a];u(l,a,o)&&(c[i++]=l)}return c}),ko),n=Pu(),e=Object.prototype.propertyIsEnumerable,r=Object.getOwnPropertySymbols;return Lo=r?function(o){return o==null?[]:(o=Object(o),t(r(o),function(u){return e.call(o,u)}))}:n}function Tu(){if(Do)return Fo;Do=1;var t=Ru(),n=ht(),e=he();return Fo=function(r){return t(r,e,n)}}function Ee(){if(Yo)return qo;Yo=1;var t=function(){if(Ho)return zo;Ho=1;var y=K()(N(),"DataView");return zo=y}(),n=ct(),e=function(){if($o)return Wo;$o=1;var y=K()(N(),"Promise");return Wo=y}(),r=function(){if(Io)return No;Io=1;var y=K()(N(),"Set");return No=y}(),o=function(){if(Xo)return Vo;Xo=1;var y=K()(N(),"WeakMap");return Vo=y}(),u=J(),a=Eu(),s="[object Map]",i="[object Promise]",c="[object Set]",l="[object WeakMap]",h="[object DataView]",p=a(t),v=a(n),d=a(e),f=a(r),b=a(o),g=u;return(t&&g(new t(new ArrayBuffer(1)))!=h||n&&g(new n)!=s||e&&g(e.resolve())!=i||r&&g(new r)!=c||o&&g(new o)!=l)&&(g=function(y){var x=u(y),j=x=="[object Object]"?y.constructor:void 0,C=j?a(j):"";if(C)switch(C){case p:return h;case v:return s;case d:return i;case f:return c;case b:return l}return x}),qo=g}function ls(){if(Ko)return Go;Ko=1;var t=lt(),n=Cu(),e=fs(),r=function(){if(Bo)return Fe;Bo=1;var p=Tu(),v=Object.prototype.hasOwnProperty;return Fe=function(d,f,b,g,y,x){var j=1&b,C=p(d),R=C.length;if(R!=p(f).length&&!j)return!1;for(var L=R;L--;){var T=C[L];if(!(j?T in f:v.call(f,T)))return!1}var O=x.get(d),S=x.get(f);if(O&&S)return O==f&&S==d;var m=!0;x.set(d,f),x.set(f,d);for(var M=j;++L<R;){var E=d[T=C[L]],I=f[T];if(g)var W=j?g(I,E,T,f,d,x):g(E,I,T,d,f,x);if(!(W===void 0?E===I||y(E,I,b,g,x):W)){m=!1;break}M||(M=T=="constructor")}if(m&&!M){var U=d.constructor,A=f.constructor;U==A||!("constructor"in d)||!("constructor"in f)||typeof U=="function"&&U instanceof U&&typeof A=="function"&&A instanceof A||(m=!1)}return x.delete(d),x.delete(f),m},Fe}(),o=Ee(),u=H(),a=tt(),s=wu(),i="[object Arguments]",c="[object Array]",l="[object Object]",h=Object.prototype.hasOwnProperty;return Go=function(p,v,d,f,b,g){var y=u(p),x=u(v),j=y?c:o(p),C=x?c:o(v),R=(j=j==i?l:j)==l,L=(C=C==i?l:C)==l,T=j==C;if(T&&a(p)){if(!a(v))return!1;y=!0,R=!1}if(T&&!R)return g||(g=new t),y||s(p)?n(p,v,d,f,b,g):e(p,v,j,d,f,b,g);if(!(1&d)){var O=R&&h.call(p,"__wrapped__"),S=L&&h.call(v,"__wrapped__");if(O||S){var m=O?p.value():p,M=S?v.value():v;return g||(g=new t),b(m,M,d,f,g)}}return!!T&&(g||(g=new t),r(p,v,d,f,b,g))}}function Lu(){if(Jo)return De;Jo=1;var t=ls(),n=X();return De=function e(r,o,u,a,s){return r===o||(r==null||o==null||!n(r)&&!n(o)?r!=r&&o!=o:t(r,o,u,a,e,s))},De}function Uu(){if(ei)return Zo;ei=1;var t=ue();return Zo=function(n){return n==n&&!t(n)}}function Fu(){return oi?ni:(oi=1,ni=function(t,n){return function(e){return e!=null&&e[t]===n&&(n!==void 0||t in Object(e))}})}function hs(){if(ai)return ii;ai=1;var t=function(){if(Qo)return Be;Qo=1;var r=lt(),o=Lu();return Be=function(u,a,s,i){var c=s.length,l=c,h=!i;if(u==null)return!l;for(u=Object(u);c--;){var p=s[c];if(h&&p[2]?p[1]!==u[p[0]]:!(p[0]in u))return!1}for(;++c<l;){var v=(p=s[c])[0],d=u[v],f=p[1];if(h&&p[2]){if(d===void 0&&!(v in u))return!1}else{var b=new r;if(i)var g=i(d,f,v,u,a,b);if(!(g===void 0?o(f,d,3,i,b):g))return!1}}return!0},Be}(),n=function(){if(ri)return ti;ri=1;var r=Uu(),o=he();return ti=function(u){for(var a=o(u),s=a.length;s--;){var i=a[s],c=u[i];a[s]=[i,c,r(c)]}return a}}(),e=Fu();return ii=function(r){var o=n(r);return o.length==1&&o[0][2]?e(o[0][0],o[0][1]):function(u){return u===r||t(u,r,o)}}}function pt(){if(si)return ui;si=1;var t=J(),n=X();return ui=function(e){return typeof e=="symbol"||n(e)&&t(e)=="[object Symbol]"}}function dt(){if(fi)return ci;fi=1;var t=H(),n=pt(),e=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,r=/^\w*$/;return ci=function(o,u){if(t(o))return!1;var a=typeof o;return!(a!="number"&&a!="symbol"&&a!="boolean"&&o!=null&&!n(o))||r.test(o)||!e.test(o)||u!=null&&o in Object(u)}}function ps(){if(di)return pi;di=1;var t=function(){if(hi)return li;hi=1;var n=ft();function e(r,o){if(typeof r!="function"||o!=null&&typeof o!="function")throw new TypeError("Expected a function");var u=function(){var a=arguments,s=o?o.apply(this,a):a[0],i=u.cache;if(i.has(s))return i.get(s);var c=r.apply(this,a);return u.cache=i.set(s,c)||i,c};return u.cache=new(e.Cache||n),u}return e.Cache=n,li=e}();return pi=function(n){var e=t(n,function(o){return r.size===500&&r.clear(),o}),r=e.cache;return e}}function ds(){if(mi)return yi;mi=1;var t=function(){if(gi)return ze;gi=1;var n=le(),e=Su(),r=H(),o=pt(),u=n?n.prototype:void 0,a=u?u.toString:void 0;return ze=function s(i){if(typeof i=="string")return i;if(r(i))return e(i,s)+"";if(o(i))return a?a.call(i):"";var c=i+"";return c=="0"&&1/i==-1/0?"-0":c},ze}();return yi=function(n){return n==null?"":t(n)}}function Du(){if(_i)return wi;_i=1;var t=H(),n=dt(),e=function(){if(vi)return bi;vi=1;var o=ps(),u=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,a=/\\(\\)?/g,s=o(function(i){var c=[];return i.charCodeAt(0)===46&&c.push(""),i.replace(u,function(l,h,p,v){c.push(p?v.replace(a,"$1"):h||l)}),c});return bi=s}(),r=ds();return wi=function(o,u){return t(o)?o:n(o,u)?[o]:e(r(o))}}function Ce(){if(ji)return xi;ji=1;var t=pt();return xi=function(n){if(typeof n=="string"||t(n))return n;var e=n+"";return e=="0"&&1/n==-1/0?"-0":e}}function Bu(){if(Oi)return He;Oi=1;var t=Du(),n=Ce();return He=function(e,r){for(var o=0,u=(r=t(r,e)).length;e!=null&&o<u;)e=e[n(r[o++])];return o&&o==u?e:void 0},He}function bs(){if(Ri)return ki;Ri=1;var t=Ci?Ei:(Ci=1,Ei=function(e,r){return e!=null&&r in Object(e)}),n=function(){if(Ai)return We;Ai=1;var e=Du(),r=yu(),o=H(),u=mu(),a=rt(),s=Ce();return We=function(i,c,l){for(var h=-1,p=(c=e(c,i)).length,v=!1;++h<p;){var d=s(c[h]);if(!(v=i!=null&&l(i,d)))break;i=i[d]}return v||++h!=p?v:!!(p=i==null?0:i.length)&&a(p)&&u(d,p)&&(o(i)||r(i))},We}();return ki=function(e,r){return e!=null&&n(e,r,t)}}function vs(){if(Ti)return Pi;Ti=1;var t=Lu(),n=function(){if(Si)return Mi;Si=1;var s=Bu();return Mi=function(i,c,l){var h=i==null?void 0:s(i,c);return h===void 0?l:h}}(),e=bs(),r=dt(),o=Uu(),u=Fu(),a=Ce();return Pi=function(s,i){return r(s)&&o(i)?u(a(s),i):function(c){var l=n(c,s);return l===void 0&&l===i?e(c,s):t(i,l,3)}}}function gs(){if(zi)return Bi;zi=1;var t=Ui?Li:(Ui=1,Li=function(o){return function(u){return u?.[o]}}),n=function(){if(Di)return Fi;Di=1;var o=Bu();return Fi=function(u){return function(a){return o(a,u)}}}(),e=dt(),r=Ce();return Bi=function(o){return e(o)?t(r(o)):n(o)}}function ys(){if(Ii)return Ni;Ii=1;var t=Ou(),n=function(){if($i)return $e;$i=1;var r=Se();return $e=function(o,u){return function(a,s){if(a==null)return a;if(!r(a))return o(a,s);for(var i=a.length,c=u?i:-1,l=Object(a);(u?c--:++c<i)&&s(l[c],c,l)!==!1;);return a}},$e}(),e=n(t);return Ni=e}function ms(){if(qi)return Xi;qi=1;var t=Su(),n=function(){if(Wi)return Hi;Wi=1;var o=hs(),u=vs(),a=Mu(),s=H(),i=gs();return Hi=function(c){return typeof c=="function"?c:c==null?a:typeof c=="object"?s(c)?u(c[0],c[1]):o(c):i(c)}}(),e=function(){if(Vi)return Ne;Vi=1;var o=ys(),u=Se();return Ne=function(a,s){var i=-1,c=u(a)?Array(a.length):[];return o(a,function(l,h,p){c[++i]=s(l,h,p)}),c},Ne}(),r=H();return Xi=function(o,u){return(r(o)?t:e)(o,n(u,3))}}function ws(){if(Yi)return re;Yi=1,Object.defineProperty(re,"__esModule",{value:!0}),re.flattenNames=void 0;var t=function(){if(Nt)return $t;Nt=1;var i=J(),c=H(),l=X();return $t=function(h){return typeof h=="string"||!c(h)&&l(h)&&i(h)=="[object String]"}}(),n=a(t),e=a(at()),r=function(){if(Nr)return $r;Nr=1;var i=J(),c=ut(),l=X(),h=Function.prototype,p=Object.prototype,v=h.toString,d=p.hasOwnProperty,f=v.call(Object);return $r=function(b){if(!l(b)||i(b)!="[object Object]")return!1;var g=c(b);if(g===null)return!0;var y=d.call(g,"constructor")&&g.constructor;return typeof y=="function"&&y instanceof y&&v.call(y)==f}}(),o=a(r),u=a(ms());function a(i){return i&&i.__esModule?i:{default:i}}var s=re.flattenNames=function i(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],l=[];return(0,u.default)(c,function(h){Array.isArray(h)?i(h).map(function(p){return l.push(p)}):(0,o.default)(h)?(0,e.default)(h,function(p,v){p===!0&&l.push(v),l.push(v+"-"+p)}):(0,n.default)(h)&&l.push(h)}),l};return re.default=s,re}var Gi,Ki,Ji,Qi,Zi,ea,ta,ra,Ve,na,oa,ia,aa,ua,sa,ca,fa,la,ha,pa,ne={};function zu(){if(ea)return Zi;ea=1;var t=function(){if(Qi)return Ji;Qi=1;var n=K(),e=function(){try{var r=n(Object,"defineProperty");return r({},"",{}),r}catch{}}();return Ji=e}();return Zi=function(n,e,r){e=="__proto__"&&t?t(n,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):n[e]=r}}function Hu(){if(ra)return ta;ra=1;var t=zu(),n=st(),e=Object.prototype.hasOwnProperty;return ta=function(r,o,u){var a=r[o];e.call(r,o)&&n(a,u)&&(u!==void 0||o in r)||t(r,o,u)}}function we(){if(na)return Ve;na=1;var t=Hu(),n=zu();return Ve=function(e,r,o,u){var a=!o;o||(o={});for(var s=-1,i=r.length;++s<i;){var c=r[s],l=u?u(o[c],e[c],c,o,e):void 0;l===void 0&&(l=e[c]),a?n(o,c,l):t(o,c,l)}return o},Ve}function _s(){if(ca)return sa;ca=1;var t=ue(),n=it(),e=ua?aa:(ua=1,aa=function(o){var u=[];if(o!=null)for(var a in Object(o))u.push(a);return u}),r=Object.prototype.hasOwnProperty;return sa=function(o){if(!t(o))return e(o);var u=n(o),a=[];for(var s in o)(s!="constructor"||!u&&r.call(o,s))&&a.push(s);return a}}function Xe(){if(la)return fa;la=1;var t=_u(),n=_s(),e=Se();return fa=function(r){return e(r)?t(r,!0):n(r)}}var da,ba,va,ga,ya,ma,wa,_a,xa,ja,Oa,Ma,Sa,Ea,Ca,Aa,ka,Ra,Pa,Ta,La,Ua,Fa,Da,Ba,za,Ha,Wa,$a,Na,Ia,Va,Xa,qa,Ya,Ga,Ka,qe,Ja,Qa,Za,eu,Ye={exports:{}};function tu(){if(wa)return ma;wa=1;var t=ku(),n=ut(),e=ht(),r=Pu(),o=Object.getOwnPropertySymbols;return ma=o?function(u){for(var a=[];u;)t(a,e(u)),u=n(u);return a}:r}function Ge(){if(Ca)return Ea;Ca=1;var t=Au();return Ea=function(n){var e=new n.constructor(n.byteLength);return new t(e).set(new t(n)),e}}function xs(){if(Ba)return Da;Ba=1;var t=Ge(),n=function(){if(ka)return Aa;ka=1;var u=Ge();return Aa=function(a,s){var i=s?u(a.buffer):a.buffer;return new a.constructor(i,a.byteOffset,a.byteLength)}}(),e=function(){if(Pa)return Ra;Pa=1;var u=/\w*$/;return Ra=function(a){var s=new a.constructor(a.source,u.exec(a));return s.lastIndex=a.lastIndex,s}}(),r=function(){if(La)return Ta;La=1;var u=le(),a=u?u.prototype:void 0,s=a?a.valueOf:void 0;return Ta=function(i){return s?Object(s.call(i)):{}}}(),o=function(){if(Fa)return Ua;Fa=1;var u=Ge();return Ua=function(a,s){var i=s?u(a.buffer):a.buffer;return new a.constructor(i,a.byteOffset,a.length)}}();return Da=function(u,a,s){var i=u.constructor;switch(a){case"[object ArrayBuffer]":return t(u);case"[object Boolean]":case"[object Date]":return new i(+u);case"[object DataView]":return n(u,s);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return o(u,s);case"[object Map]":case"[object Set]":return new i;case"[object Number]":case"[object String]":return new i(u);case"[object RegExp]":return e(u);case"[object Symbol]":return r(u)}}}function js(){if($a)return Wa;$a=1;var t=function(){if(Ha)return za;Ha=1;var r=ue(),o=Object.create,u=function(){function a(){}return function(s){if(!r(s))return{};if(o)return o(s);a.prototype=s;var i=new a;return a.prototype=void 0,i}}();return za=u}(),n=ut(),e=it();return Wa=function(r){return typeof r.constructor!="function"||e(r)?{}:t(n(r))}}function Os(){if(Xa)return Va;Xa=1;var t=function(){if(Ia)return Na;Ia=1;var u=Ee(),a=X();return Na=function(s){return a(s)&&u(s)=="[object Map]"}}(),n=nt(),e=ot(),r=e&&e.isMap,o=r?n(r):t;return Va=o}function Ms(){if(Ka)return Ga;Ka=1;var t=function(){if(Ya)return qa;Ya=1;var u=Ee(),a=X();return qa=function(s){return a(s)&&u(s)=="[object Set]"}}(),n=nt(),e=ot(),r=e&&e.isSet,o=r?n(r):t;return Ga=o}function Ss(){if(Ja)return qe;Ja=1;var t=lt(),n=(Ki||(Ki=1,Gi=function(S,m){for(var M=-1,E=S==null?0:S.length;++M<E&&m(S[M],M,S)!==!1;);return S}),Gi),e=Hu(),r=function(){if(ia)return oa;ia=1;var S=we(),m=he();return oa=function(M,E){return M&&S(E,m(E),M)}}(),o=function(){if(pa)return ha;pa=1;var S=we(),m=Xe();return ha=function(M,E){return M&&S(E,m(E),M)}}(),u=(da||(da=1,function(S,m){var M=N(),E=m&&!m.nodeType&&m,I=E&&S&&!S.nodeType&&S,W=I&&I.exports===E?M.Buffer:void 0,U=W?W.allocUnsafe:void 0;S.exports=function(A,Z){if(Z)return A.slice();var G=A.length,pe=U?U(G):new A.constructor(G);return A.copy(pe),pe}}(Ye,Ye.exports)),Ye.exports),a=(va||(va=1,ba=function(S,m){var M=-1,E=S.length;for(m||(m=Array(E));++M<E;)m[M]=S[M];return m}),ba),s=function(){if(ya)return ga;ya=1;var S=we(),m=ht();return ga=function(M,E){return S(M,m(M),E)}}(),i=function(){if(xa)return _a;xa=1;var S=we(),m=tu();return _a=function(M,E){return S(M,m(M),E)}}(),c=Tu(),l=function(){if(Oa)return ja;Oa=1;var S=Ru(),m=tu(),M=Xe();return ja=function(E){return S(E,M,m)}}(),h=Ee(),p=function(){if(Sa)return Ma;Sa=1;var S=Object.prototype.hasOwnProperty;return Ma=function(m){var M=m.length,E=new m.constructor(M);return M&&typeof m[0]=="string"&&S.call(m,"index")&&(E.index=m.index,E.input=m.input),E}}(),v=xs(),d=js(),f=H(),b=tt(),g=Os(),y=ue(),x=Ms(),j=he(),C=Xe(),R="[object Arguments]",L="[object Function]",T="[object Object]",O={};return O[R]=O["[object Array]"]=O["[object ArrayBuffer]"]=O["[object DataView]"]=O["[object Boolean]"]=O["[object Date]"]=O["[object Float32Array]"]=O["[object Float64Array]"]=O["[object Int8Array]"]=O["[object Int16Array]"]=O["[object Int32Array]"]=O["[object Map]"]=O["[object Number]"]=O[T]=O["[object RegExp]"]=O["[object Set]"]=O["[object String]"]=O["[object Symbol]"]=O["[object Uint8Array]"]=O["[object Uint8ClampedArray]"]=O["[object Uint16Array]"]=O["[object Uint32Array]"]=!0,O["[object Error]"]=O[L]=O["[object WeakMap]"]=!1,qe=function S(m,M,E,I,W,U){var A,Z=1&M,G=2&M,pe=4&M;if(E&&(A=W?E(m,I,W,U):E(m)),A!==void 0)return A;if(!y(m))return m;var vt=f(m);if(vt){if(A=p(m),!Z)return a(m,A)}else{var ee=h(m),gt=ee==L||ee=="[object GeneratorFunction]";if(b(m))return u(m,Z);if(ee==T||ee==R||gt&&!W){if(A=G||gt?{}:d(m),!Z)return G?i(m,o(A,m)):s(m,r(A,m))}else{if(!O[ee])return W?m:{};A=v(m,ee,Z)}}U||(U=new t);var yt=U.get(m);if(yt)return yt;U.set(m,A),x(m)?m.forEach(function(q){A.add(S(q,M,E,q,m,U))}):g(m)&&m.forEach(function(q,te){A.set(te,S(q,M,E,te,m,U))});var mt=vt?void 0:(pe?G?l:c:G?C:j)(m);return n(mt||m,function(q,te){mt&&(q=m[te=q]),e(A,te,S(q,M,E,te,m,U))}),A},qe}function Es(){if(eu)return ne;eu=1,Object.defineProperty(ne,"__esModule",{value:!0}),ne.mergeClasses=void 0;var t=r(at()),n=r(function(){if(Za)return Qa;Za=1;var u=Ss();return Qa=function(a){return u(a,5)}}()),e=Object.assign||function(u){for(var a=1;a<arguments.length;a++){var s=arguments[a];for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&(u[i]=s[i])}return u};function r(u){return u&&u.__esModule?u:{default:u}}var o=ne.mergeClasses=function(u){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],s=u.default&&(0,n.default)(u.default)||{};return a.map(function(i){var c=u[i];return c&&(0,t.default)(c,function(l,h){s[h]||(s[h]={}),s[h]=e({},s[h],c[h])}),i}),s};return ne.default=o,ne}var ru,oe={},nu,ie={};function Cs(){if(nu)return ie;nu=1,Object.defineProperty(ie,"__esModule",{value:!0}),ie.hover=void 0;var t,n=Object.assign||function(u){for(var a=1;a<arguments.length;a++){var s=arguments[a];for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&(u[i]=s[i])}return u},e=(t=w)&&t.__esModule?t:{default:t};function r(u,a){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!a||typeof a!="object"&&typeof a!="function"?u:a}var o=ie.hover=function(u){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"span";return function(s){function i(){var c,l,h;(function(f,b){if(!(f instanceof b))throw new TypeError("Cannot call a class as a function")})(this,i);for(var p=arguments.length,v=Array(p),d=0;d<p;d++)v[d]=arguments[d];return l=h=r(this,(c=i.__proto__||Object.getPrototypeOf(i)).call.apply(c,[this].concat(v))),h.state={hover:!1},h.handleMouseOver=function(){return h.setState({hover:!0})},h.handleMouseOut=function(){return h.setState({hover:!1})},h.render=function(){return e.default.createElement(a,{onMouseOver:h.handleMouseOver,onMouseOut:h.handleMouseOut},e.default.createElement(u,n({},h.props,h.state)))},r(h,l)}return function(c,l){if(typeof l!="function"&&l!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof l);c.prototype=Object.create(l&&l.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),l&&(Object.setPrototypeOf?Object.setPrototypeOf(c,l):c.__proto__=l)}(i,s),i}(e.default.Component)};return ie.default=o,ie}var ou,ae={};function As(){if(ou)return ae;ou=1,Object.defineProperty(ae,"__esModule",{value:!0}),ae.active=void 0;var t,n=Object.assign||function(u){for(var a=1;a<arguments.length;a++){var s=arguments[a];for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&(u[i]=s[i])}return u},e=(t=w)&&t.__esModule?t:{default:t};function r(u,a){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!a||typeof a!="object"&&typeof a!="function"?u:a}var o=ae.active=function(u){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"span";return function(s){function i(){var c,l,h;(function(f,b){if(!(f instanceof b))throw new TypeError("Cannot call a class as a function")})(this,i);for(var p=arguments.length,v=Array(p),d=0;d<p;d++)v[d]=arguments[d];return l=h=r(this,(c=i.__proto__||Object.getPrototypeOf(i)).call.apply(c,[this].concat(v))),h.state={active:!1},h.handleMouseDown=function(){return h.setState({active:!0})},h.handleMouseUp=function(){return h.setState({active:!1})},h.render=function(){return e.default.createElement(a,{onMouseDown:h.handleMouseDown,onMouseUp:h.handleMouseUp},e.default.createElement(u,n({},h.props,h.state)))},r(h,l)}return function(c,l){if(typeof l!="function"&&l!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof l);c.prototype=Object.create(l&&l.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),l&&(Object.setPrototypeOf?Object.setPrototypeOf(c,l):c.__proto__=l)}(i,s),i}(e.default.Component)};return ae.default=o,ae}var iu,au,Ke={},ks=function(){if(au)return F;au=1,Object.defineProperty(F,"__esModule",{value:!0}),F.ReactCSS=F.loop=F.handleActive=F.handleHover=F.hover=void 0;var t=s(ws()),n=s(Es()),e=function(){if(ru)return oe;ru=1,Object.defineProperty(oe,"__esModule",{value:!0}),oe.autoprefix=void 0;var c,l=at(),h=(c=l)&&c.__esModule?c:{default:c},p=Object.assign||function(f){for(var b=1;b<arguments.length;b++){var g=arguments[b];for(var y in g)Object.prototype.hasOwnProperty.call(g,y)&&(f[y]=g[y])}return f},v={borderRadius:function(f){return{msBorderRadius:f,MozBorderRadius:f,OBorderRadius:f,WebkitBorderRadius:f,borderRadius:f}},boxShadow:function(f){return{msBoxShadow:f,MozBoxShadow:f,OBoxShadow:f,WebkitBoxShadow:f,boxShadow:f}},userSelect:function(f){return{WebkitTouchCallout:f,KhtmlUserSelect:f,MozUserSelect:f,msUserSelect:f,WebkitUserSelect:f,userSelect:f}},flex:function(f){return{WebkitBoxFlex:f,MozBoxFlex:f,WebkitFlex:f,msFlex:f,flex:f}},flexBasis:function(f){return{WebkitFlexBasis:f,flexBasis:f}},justifyContent:function(f){return{WebkitJustifyContent:f,justifyContent:f}},transition:function(f){return{msTransition:f,MozTransition:f,OTransition:f,WebkitTransition:f,transition:f}},transform:function(f){return{msTransform:f,MozTransform:f,OTransform:f,WebkitTransform:f,transform:f}},absolute:function(f){var b=f&&f.split(" ");return{position:"absolute",top:b&&b[0],right:b&&b[1],bottom:b&&b[2],left:b&&b[3]}},extend:function(f,b){return b[f]||{extend:f}}},d=oe.autoprefix=function(f){var b={};return(0,h.default)(f,function(g,y){var x={};(0,h.default)(g,function(j,C){var R=v[C];R?x=p({},x,R(j)):x[C]=j}),b[y]=x}),b};return oe.default=d,oe}(),r=s(e),o=s(Cs()),u=s(As()),a=s((iu||(iu=1,Object.defineProperty(Ke,"__esModule",{value:!0}),Ke.default=function(c,l){var h={},p=function(v){var d=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1];h[v]=d};return c===0&&p("first-child"),c===l-1&&p("last-child"),(c===0||c%2==0)&&p("even"),Math.abs(c%2)===1&&p("odd"),p("nth-child",c),h}),Ke));function s(c){return c&&c.__esModule?c:{default:c}}F.hover=o.default,F.handleHover=o.default,F.handleActive=u.default,F.loop=a.default;var i=F.ReactCSS=function(c){for(var l=arguments.length,h=Array(l>1?l-1:0),p=1;p<l;p++)h[p-1]=arguments[p];var v=(0,t.default)(h),d=(0,n.default)(c,v);return(0,r.default)(d)};return F.default=i,F}();const Q=$.getDefaultExportFromCjs(ks);var Je={},Rs=function(t,n,e,r){var o=t+"-"+n+"-"+e+(r?"-server":"");if(Je[o])return Je[o];var u=function(a,s,i,c){if(typeof document>"u"&&!c)return null;var l=c?new c:document.createElement("canvas");l.width=2*i,l.height=2*i;var h=l.getContext("2d");return h?(h.fillStyle=a,h.fillRect(0,0,l.width,l.height),h.fillStyle=s,h.fillRect(0,0,i,i),h.translate(i,i),h.fillRect(0,0,i,i),l.toDataURL()):null}(t,n,e,r);return Je[o]=u,u},uu=Object.assign||function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])}return t},bt=function(t){var n=t.white,e=t.grey,r=t.size,o=t.renderers,u=t.borderRadius,a=t.boxShadow,s=t.children,i=Q({default:{grid:{borderRadius:u,boxShadow:a,absolute:"0px 0px 0px 0px",background:"url("+Rs(n,e,r,o.canvas)+") center left"}}});return w.isValidElement(s)?w.cloneElement(s,uu({},s.props,{style:uu({},s.props.style,i.grid)})):w.createElement("div",{style:i.grid})};bt.defaultProps={size:8,white:"transparent",grey:"rgba(0,0,0,.08)",renderers:{}};var Ps=Object.assign||function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])}return t},Ts=function(){function t(n,e){for(var r=0;r<e.length;r++){var o=e[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(n,o.key,o)}}return function(n,e,r){return e&&t(n.prototype,e),r&&t(n,r),n}}();function su(t,n){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!n||typeof n!="object"&&typeof n!="function"?t:n}var Ls=function(){function t(){var n,e,r;(function(s,i){if(!(s instanceof i))throw new TypeError("Cannot call a class as a function")})(this,t);for(var o=arguments.length,u=Array(o),a=0;a<o;a++)u[a]=arguments[a];return e=r=su(this,(n=t.__proto__||Object.getPrototypeOf(t)).call.apply(n,[this].concat(u))),r.handleChange=function(s){var i=function(c,l,h,p,v){var d=v.clientWidth,f=v.clientHeight,b=typeof c.pageX=="number"?c.pageX:c.touches[0].pageX,g=typeof c.pageY=="number"?c.pageY:c.touches[0].pageY,y=b-(v.getBoundingClientRect().left+window.pageXOffset),x=g-(v.getBoundingClientRect().top+window.pageYOffset);if(h==="vertical"){var j=void 0;if(j=x<0?0:x>f?1:Math.round(100*x/f)/100,l.a!==j)return{h:l.h,s:l.s,l:l.l,a:j,source:"rgb"}}else{var C=void 0;if(p!==(C=y<0?0:y>d?1:Math.round(100*y/d)/100))return{h:l.h,s:l.s,l:l.l,a:C,source:"rgb"}}return null}(s,r.props.hsl,r.props.direction,r.props.a,r.container);i&&typeof r.props.onChange=="function"&&r.props.onChange(i,s)},r.handleMouseDown=function(s){r.handleChange(s),window.addEventListener("mousemove",r.handleChange),window.addEventListener("mouseup",r.handleMouseUp)},r.handleMouseUp=function(){r.unbindEventListeners()},r.unbindEventListeners=function(){window.removeEventListener("mousemove",r.handleChange),window.removeEventListener("mouseup",r.handleMouseUp)},su(r,e)}return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(n,e):n.__proto__=e)}(t,w.PureComponent||w.Component),Ts(t,[{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"render",value:function(){var n=this,e=this.props.rgb,r=Q({default:{alpha:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius},checkboard:{absolute:"0px 0px 0px 0px",overflow:"hidden",borderRadius:this.props.radius},gradient:{absolute:"0px 0px 0px 0px",background:"linear-gradient(to right, rgba("+e.r+","+e.g+","+e.b+`, 0) 0%,
|
|
7
|
+
rgba(`+e.r+","+e.g+","+e.b+", 1) 100%)",boxShadow:this.props.shadow,borderRadius:this.props.radius},container:{position:"relative",height:"100%",margin:"0 3px"},pointer:{position:"absolute",left:100*e.a+"%"},slider:{width:"4px",borderRadius:"1px",height:"8px",boxShadow:"0 0 2px rgba(0, 0, 0, .6)",background:"#fff",marginTop:"1px",transform:"translateX(-2px)"}},vertical:{gradient:{background:"linear-gradient(to bottom, rgba("+e.r+","+e.g+","+e.b+`, 0) 0%,
|
|
8
|
+
rgba(`+e.r+","+e.g+","+e.b+", 1) 100%)"},pointer:{left:0,top:100*e.a+"%"}},overwrite:Ps({},this.props.style)},{vertical:this.props.direction==="vertical",overwrite:!0});return w.createElement("div",{style:r.alpha},w.createElement("div",{style:r.checkboard},w.createElement(bt,{renderers:this.props.renderers})),w.createElement("div",{style:r.gradient}),w.createElement("div",{style:r.container,ref:function(o){return n.container=o},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},w.createElement("div",{style:r.pointer},this.props.pointer?w.createElement(this.props.pointer,this.props):w.createElement("div",{style:r.slider}))))}}]),t}(),Us=function(){function t(n,e){for(var r=0;r<e.length;r++){var o=e[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(n,o.key,o)}}return function(n,e,r){return e&&t(n.prototype,e),r&&t(n,r),n}}(),Fs=[38,40],Ds=1,se=function(){function t(n){(function(r,o){if(!(r instanceof o))throw new TypeError("Cannot call a class as a function")})(this,t);var e=function(r,o){if(!r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!o||typeof o!="object"&&typeof o!="function"?r:o}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return e.handleBlur=function(){e.state.blurValue&&e.setState({value:e.state.blurValue,blurValue:null})},e.handleChange=function(r){e.setUpdatedValue(r.target.value,r)},e.handleKeyDown=function(r){var o,u=function(i){return Number(String(i).replace(/%/g,""))}(r.target.value);if(!isNaN(u)&&(o=r.keyCode,Fs.indexOf(o)>-1)){var a=e.getArrowOffset(),s=r.keyCode===38?u+a:u-a;e.setUpdatedValue(s,r)}},e.handleDrag=function(r){if(e.props.dragLabel){var o=Math.round(e.props.value+r.movementX);o>=0&&o<=e.props.dragMax&&e.props.onChange&&e.props.onChange(e.getValueObjectWithLabel(o),r)}},e.handleMouseDown=function(r){e.props.dragLabel&&(r.preventDefault(),e.handleDrag(r),window.addEventListener("mousemove",e.handleDrag),window.addEventListener("mouseup",e.handleMouseUp))},e.handleMouseUp=function(){e.unbindEventListeners()},e.unbindEventListeners=function(){window.removeEventListener("mousemove",e.handleDrag),window.removeEventListener("mouseup",e.handleMouseUp)},e.state={value:String(n.value).toUpperCase(),blurValue:String(n.value).toUpperCase()},e.inputId="rc-editable-input-"+Ds++,e}return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(n,e):n.__proto__=e)}(t,w.PureComponent||w.Component),Us(t,[{key:"componentDidUpdate",value:function(n,e){this.props.value===this.state.value||n.value===this.props.value&&e.value===this.state.value||(this.input===document.activeElement?this.setState({blurValue:String(this.props.value).toUpperCase()}):this.setState({value:String(this.props.value).toUpperCase(),blurValue:!this.state.blurValue&&String(this.props.value).toUpperCase()}))}},{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"getValueObjectWithLabel",value:function(n){return function(e,r,o){return r in e?Object.defineProperty(e,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[r]=o,e}({},this.props.label,n)}},{key:"getArrowOffset",value:function(){return this.props.arrowOffset||1}},{key:"setUpdatedValue",value:function(n,e){var r=this.props.label?this.getValueObjectWithLabel(n):n;this.props.onChange&&this.props.onChange(r,e),this.setState({value:n})}},{key:"render",value:function(){var n=this,e=Q({default:{wrap:{position:"relative"}},"user-override":{wrap:this.props.style&&this.props.style.wrap?this.props.style.wrap:{},input:this.props.style&&this.props.style.input?this.props.style.input:{},label:this.props.style&&this.props.style.label?this.props.style.label:{}},"dragLabel-true":{label:{cursor:"ew-resize"}}},{"user-override":!0},this.props);return w.createElement("div",{style:e.wrap},w.createElement("input",{id:this.inputId,style:e.input,ref:function(r){return n.input=r},value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,onBlur:this.handleBlur,placeholder:this.props.placeholder,spellCheck:"false"}),this.props.label&&!this.props.hideLabel?w.createElement("label",{htmlFor:this.inputId,style:e.label,onMouseDown:this.handleMouseDown},this.props.label):null)}}]),t}(),Bs=function(){function t(n,e){for(var r=0;r<e.length;r++){var o=e[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(n,o.key,o)}}return function(n,e,r){return e&&t(n.prototype,e),r&&t(n,r),n}}();function cu(t,n){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!n||typeof n!="object"&&typeof n!="function"?t:n}var zs=function(){function t(){var n,e,r;(function(s,i){if(!(s instanceof i))throw new TypeError("Cannot call a class as a function")})(this,t);for(var o=arguments.length,u=Array(o),a=0;a<o;a++)u[a]=arguments[a];return e=r=cu(this,(n=t.__proto__||Object.getPrototypeOf(t)).call.apply(n,[this].concat(u))),r.handleChange=function(s){var i=function(c,l,h,p){var v=p.clientWidth,d=p.clientHeight,f=typeof c.pageX=="number"?c.pageX:c.touches[0].pageX,b=typeof c.pageY=="number"?c.pageY:c.touches[0].pageY,g=f-(p.getBoundingClientRect().left+window.pageXOffset),y=b-(p.getBoundingClientRect().top+window.pageYOffset);if(l==="vertical"){var x=void 0;if(x=y<0?359:y>d?0:360*(-100*y/d+100)/100,h.h!==x)return{h:x,s:h.s,l:h.l,a:h.a,source:"hsl"}}else{var j=void 0;if(j=g<0?0:g>v?359:100*g/v*360/100,h.h!==j)return{h:j,s:h.s,l:h.l,a:h.a,source:"hsl"}}return null}(s,r.props.direction,r.props.hsl,r.container);i&&typeof r.props.onChange=="function"&&r.props.onChange(i,s)},r.handleMouseDown=function(s){r.handleChange(s),window.addEventListener("mousemove",r.handleChange),window.addEventListener("mouseup",r.handleMouseUp)},r.handleMouseUp=function(){r.unbindEventListeners()},cu(r,e)}return function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(n,e):n.__proto__=e)}(t,w.PureComponent||w.Component),Bs(t,[{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"unbindEventListeners",value:function(){window.removeEventListener("mousemove",this.handleChange),window.removeEventListener("mouseup",this.handleMouseUp)}},{key:"render",value:function(){var n=this,e=this.props.direction,r=e===void 0?"horizontal":e,o=Q({default:{hue:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius,boxShadow:this.props.shadow},container:{padding:"0 2px",position:"relative",height:"100%",borderRadius:this.props.radius},pointer:{position:"absolute",left:100*this.props.hsl.h/360+"%"},slider:{marginTop:"1px",width:"4px",borderRadius:"1px",height:"8px",boxShadow:"0 0 2px rgba(0, 0, 0, .6)",background:"#fff",transform:"translateX(-2px)"}},vertical:{pointer:{left:"0px",top:-100*this.props.hsl.h/360+100+"%"}}},{vertical:r==="vertical"});return w.createElement("div",{style:o.hue},w.createElement("div",{className:"hue-"+r,style:o.container,ref:function(u){return n.container=u},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},w.createElement("style",null,`
|
|
9
|
+
.hue-horizontal {
|
|
10
|
+
background: linear-gradient(to right, #f00 0%, #ff0 17%, #0f0
|
|
11
|
+
33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);
|
|
12
|
+
background: -webkit-linear-gradient(to right, #f00 0%, #ff0
|
|
13
|
+
17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.hue-vertical {
|
|
17
|
+
background: linear-gradient(to top, #f00 0%, #ff0 17%, #0f0 33%,
|
|
18
|
+
#0ff 50%, #00f 67%, #f0f 83%, #f00 100%);
|
|
19
|
+
background: -webkit-linear-gradient(to top, #f00 0%, #ff0 17%,
|
|
20
|
+
#0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);
|
|
21
|
+
}
|
|
22
|
+
`),w.createElement("div",{style:o.pointer},this.props.pointer?w.createElement(this.props.pointer,this.props):w.createElement("div",{style:o.slider}))))}}]),t}(),Hs=typeof global=="object"&&global&&global.Object===Object&&global,Ws=typeof self=="object"&&self&&self.Object===Object&&self,Wu=Hs||Ws||Function("return this")(),je=Wu.Symbol,$u=Object.prototype,$s=$u.hasOwnProperty,Ns=$u.toString,ce=je?je.toStringTag:void 0,Is=Object.prototype.toString,fu=je?je.toStringTag:void 0;function Vs(t){return t==null?t===void 0?"[object Undefined]":"[object Null]":fu&&fu in Object(t)?function(n){var e=$s.call(n,ce),r=n[ce];try{n[ce]=void 0;var o=!0}catch{}var u=Ns.call(n);return o&&(e?n[ce]=r:delete n[ce]),u}(t):function(n){return Is.call(n)}(t)}function Oe(t){var n=typeof t;return t!=null&&(n=="object"||n=="function")}de.string,de.oneOf([0,1,2,3,4,5]),de.number,de.object;var Qe=function(){return Wu.Date.now()},Xs=/\s/,qs=/^\s+/;function Ys(t){return t&&t.slice(0,function(n){for(var e=n.length;e--&&Xs.test(n.charAt(e)););return e}(t)+1).replace(qs,"")}var Gs=/^[-+]0x[0-9a-f]+$/i,Ks=/^0b[01]+$/i,Js=/^0o[0-7]+$/i,Qs=parseInt;function lu(t){if(typeof t=="number")return t;if(function(r){return typeof r=="symbol"||function(o){return o!=null&&typeof o=="object"}(r)&&Vs(r)=="[object Symbol]"}(t))return NaN;if(Oe(t)){var n=typeof t.valueOf=="function"?t.valueOf():t;t=Oe(n)?n+"":n}if(typeof t!="string")return t===0?t:+t;t=Ys(t);var e=Ks.test(t);return e||Js.test(t)?Qs(t.slice(2),e?2:8):Gs.test(t)?NaN:+t}var Zs=Math.max,ec=Math.min;function tc(t,n,e){var r,o,u,a,s,i,c=0,l=!1,h=!1,p=!0;if(typeof t!="function")throw new TypeError("Expected a function");function v(y){var x=r,j=o;return r=o=void 0,c=y,a=t.apply(j,x)}function d(y){var x=y-i;return i===void 0||x>=n||x<0||h&&y-c>=u}function f(){var y=Qe();if(d(y))return b(y);s=setTimeout(f,function(x){var j=n-(x-i);return h?ec(j,u-(x-c)):j}(y))}function b(y){return s=void 0,p&&r?v(y):(r=o=void 0,a)}function g(){var y=Qe(),x=d(y);if(r=arguments,o=this,i=y,x){if(s===void 0)return function(j){return c=j,s=setTimeout(f,n),l?v(j):a}(i);if(h)return clearTimeout(s),s=setTimeout(f,n),v(i)}return s===void 0&&(s=setTimeout(f,n)),a}return n=lu(n)||0,Oe(e)&&(l=!!e.leading,u=(h="maxWait"in e)?Zs(lu(e.maxWait)||0,n):u,p="trailing"in e?!!e.trailing:p),g.cancel=function(){s!==void 0&&clearTimeout(s),c=0,r=i=o=s=void 0},g.flush=function(){return s===void 0?a:b(Qe())},g}var rc=function(){function t(n,e){for(var r=0;r<e.length;r++){var o=e[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(n,o.key,o)}}return function(n,e,r){return e&&t(n.prototype,e),r&&t(n,r),n}}();(function(){function t(n){(function(r,o){if(!(r instanceof o))throw new TypeError("Cannot call a class as a function")})(this,t);var e=function(r,o){if(!r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!o||typeof o!="object"&&typeof o!="function"?r:o}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,n));return e.handleChange=function(r){typeof e.props.onChange=="function"&&e.throttle(e.props.onChange,function(o,u,a){var s=a.getBoundingClientRect(),i=s.width,c=s.height,l=typeof o.pageX=="number"?o.pageX:o.touches[0].pageX,h=typeof o.pageY=="number"?o.pageY:o.touches[0].pageY,p=l-(a.getBoundingClientRect().left+window.pageXOffset),v=h-(a.getBoundingClientRect().top+window.pageYOffset);p<0?p=0:p>i&&(p=i),v<0?v=0:v>c&&(v=c);var d=p/i,f=1-v/c;return{h:u.h,s:d,v:f,a:u.a,source:"hsv"}}(r,e.props.hsl,e.container),r)},e.handleMouseDown=function(r){e.handleChange(r);var o=e.getContainerRenderWindow();o.addEventListener("mousemove",e.handleChange),o.addEventListener("mouseup",e.handleMouseUp)},e.handleMouseUp=function(){e.unbindEventListeners()},e.throttle=function(r,o,u){var a=!0,s=!0;if(typeof r!="function")throw new TypeError("Expected a function");return Oe(u)&&(a="leading"in u?!!u.leading:a,s="trailing"in u?!!u.trailing:s),tc(r,o,{leading:a,maxWait:o,trailing:s})}(function(r,o,u){r(o,u)},50),e}(function(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(n,e):n.__proto__=e)})(t,w.PureComponent||w.Component),rc(t,[{key:"componentWillUnmount",value:function(){this.throttle.cancel(),this.unbindEventListeners()}},{key:"getContainerRenderWindow",value:function(){for(var n=this.container,e=window;!e.document.contains(n)&&e.parent!==e;)e=e.parent;return e}},{key:"unbindEventListeners",value:function(){var n=this.getContainerRenderWindow();n.removeEventListener("mousemove",this.handleChange),n.removeEventListener("mouseup",this.handleMouseUp)}},{key:"render",value:function(){var n=this,e=this.props.style||{},r=e.color,o=e.white,u=e.black,a=e.pointer,s=e.circle,i=Q({default:{color:{absolute:"0px 0px 0px 0px",background:"hsl("+this.props.hsl.h+",100%, 50%)",borderRadius:this.props.radius},white:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius},black:{absolute:"0px 0px 0px 0px",boxShadow:this.props.shadow,borderRadius:this.props.radius},pointer:{position:"absolute",top:-100*this.props.hsv.v+100+"%",left:100*this.props.hsv.s+"%",cursor:"default"},circle:{width:"4px",height:"4px",boxShadow:`0 0 0 1.5px #fff, inset 0 0 1px 1px rgba(0,0,0,.3),
|
|
23
|
+
0 0 1px 2px rgba(0,0,0,.4)`,borderRadius:"50%",cursor:"hand",transform:"translate(-2px, -2px)"}},custom:{color:r,white:o,black:u,pointer:a,circle:s}},{custom:!!this.props.style});return w.createElement("div",{style:i.color,ref:function(c){return n.container=c},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},w.createElement("style",null,`
|
|
24
|
+
.saturation-white {
|
|
25
|
+
background: -webkit-linear-gradient(to right, #fff, rgba(255,255,255,0));
|
|
26
|
+
background: linear-gradient(to right, #fff, rgba(255,255,255,0));
|
|
27
|
+
}
|
|
28
|
+
.saturation-black {
|
|
29
|
+
background: -webkit-linear-gradient(to top, #000, rgba(0,0,0,0));
|
|
30
|
+
background: linear-gradient(to top, #000, rgba(0,0,0,0));
|
|
31
|
+
}
|
|
32
|
+
`),w.createElement("div",{style:i.white,className:"saturation-white"},w.createElement("div",{style:i.black,className:"saturation-black"}),w.createElement("div",{style:i.pointer},this.props.pointer?w.createElement(this.props.pointer,this.props):w.createElement("div",{style:i.circle}))))}}])})();var nc=Object.assign||function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])}return t},oc=function(){function t(n,e){for(var r=0;r<e.length;r++){var o=e[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(n,o.key,o)}}return function(n,e,r){return e&&t(n.prototype,e),r&&t(n,r),n}}();function hu(t,n){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!n||typeof n!="object"&&typeof n!="function"?t:n}var pu=Object.assign||function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])}return t};(function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"span";(function(){function e(){var r,o,u;(function(c,l){if(!(c instanceof l))throw new TypeError("Cannot call a class as a function")})(this,e);for(var a=arguments.length,s=Array(a),i=0;i<a;i++)s[i]=arguments[i];return o=u=hu(this,(r=e.__proto__||Object.getPrototypeOf(e)).call.apply(r,[this].concat(s))),u.state={focus:!1},u.handleFocus=function(){return u.setState({focus:!0})},u.handleBlur=function(){return u.setState({focus:!1})},hu(u,o)}(function(r,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof o);r.prototype=Object.create(o&&o.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),o&&(Object.setPrototypeOf?Object.setPrototypeOf(r,o):r.__proto__=o)})(e,w.Component),oc(e,[{key:"render",value:function(){return w.createElement(n,{onFocus:this.handleFocus,onBlur:this.handleBlur},w.createElement(t,nc({},this.props,this.state)))}}])})()})(function(t){var n=t.color,e=t.style,r=t.onClick,o=r===void 0?function(){}:r,u=t.onHover,a=t.title,s=a===void 0?n:a,i=t.children,c=t.focus,l=t.focusStyle,h=n==="transparent",p=Q({default:{swatch:pu({background:n,height:"100%",width:"100%",cursor:"pointer",position:"relative",outline:"none"},e,c?l===void 0?{}:l:{})}}),v={};return u&&(v.onMouseOver=function(d){return u(n,d)}),w.createElement("div",pu({style:p.swatch,onClick:function(d){return o(n,d)},title:s,tabIndex:0,onKeyDown:function(d){return d.keyCode===13&&o(n,d)}},v),i,h&&w.createElement(bt,{borderRadius:p.swatch.borderRadius,boxShadow:"inset 0 0 0 1px rgba(0,0,0,0.1)"}))});var ic=function(t){var n=t.onChange,e=t.rgb,r=t.hsl,o=t.hex,u=t.disableAlpha,a=Q({default:{fields:{display:"flex",paddingTop:"4px"},single:{flex:"1",paddingLeft:"6px"},alpha:{flex:"1",paddingLeft:"6px"},double:{flex:"2"},input:{width:"80%",padding:"4px 10% 3px",border:"none",boxShadow:"inset 0 0 0 1px #ccc",fontSize:"11px"},label:{display:"block",textAlign:"center",fontSize:"11px",color:"#222",paddingTop:"3px",paddingBottom:"4px",textTransform:"capitalize"}},disableAlpha:{alpha:{display:"none"}}},{disableAlpha:u}),s=function(i,c){i.hex?function(l){if(l==="transparent")return!0;var h=String(l).charAt(0)==="#"?1:0;return l.length!==4+h&&l.length<7+h&&_(l).isValid()}(i.hex)&&n({hex:i.hex,source:"hex"},c):i.r||i.g||i.b?n({r:i.r||e.r,g:i.g||e.g,b:i.b||e.b,a:e.a,source:"rgb"},c):i.a&&(i.a<0?i.a=0:i.a>100&&(i.a=100),i.a/=100,n({h:r.h,s:r.s,l:r.l,a:i.a,source:"rgb"},c))};return w.createElement("div",{style:a.fields,className:"flexbox-fix"},w.createElement("div",{style:a.double},w.createElement(se,{style:{input:a.input,label:a.label},label:"hex",value:o.replace("#",""),onChange:s})),w.createElement("div",{style:a.single},w.createElement(se,{style:{input:a.input,label:a.label},label:"r",value:e.r,onChange:s,dragLabel:"true",dragMax:"255"})),w.createElement("div",{style:a.single},w.createElement(se,{style:{input:a.input,label:a.label},label:"g",value:e.g,onChange:s,dragLabel:"true",dragMax:"255"})),w.createElement("div",{style:a.single},w.createElement(se,{style:{input:a.input,label:a.label},label:"b",value:e.b,onChange:s,dragLabel:"true",dragMax:"255"})),w.createElement("div",{style:a.alpha},w.createElement(se,{style:{input:a.input,label:a.label},label:"a",value:Math.round(100*e.a),onChange:s,dragLabel:"true",dragMax:"100"})))};class ac extends(w.PureComponent||w.Component){constructor(n){super(n),this.handleChange=e=>{typeof this.props.onChange=="function"&&this.throttle(this.props.onChange,((r,o,u)=>{var a=u.getBoundingClientRect(),s=a.width,i=a.height,c=typeof r.pageX=="number"?r.pageX:r.touches[0].pageX,l=typeof r.pageY=="number"?r.pageY:r.touches[0].pageY,h=c-(u.getBoundingClientRect().left+window.pageXOffset),p=l-(u.getBoundingClientRect().top+window.pageYOffset);h<0?h=0:h>s&&(h=s),p<0?p=0:p>i&&(p=i);var v=h/s,d=1-p/i;return{h:o.h,s:v,v:d,a:o.a,source:"hsv"}})(e,this.props.hsl,this.container),e),e.preventDefault()},this.handleMouseDown=e=>{this.handleChange(e);const r=this.getContainerRenderWindow();r.addEventListener("mousemove",this.handleChange),r.addEventListener("mouseup",this.handleMouseUp)},this.handleMouseUp=e=>{e.preventDefault(),this.unbindEventListeners()},this.throttle=function(e,r,o){let u,a,s,i;var c=0;o||(o={});let l=function(){c=o.leading===!1?0:Date.now(),u=null,i=e.apply(a,s),u||(a=s=null)},h=function(){var p=Date.now();c||o.leading!==!1||(c=p);var v=r-(p-c);return a=this,s=arguments,v<=0||v>r?(u&&(clearTimeout(u),u=null),c=p,i=e.apply(a,s),u||(a=s=null)):u||o.trailing===!1||(u=setTimeout(l,v)),i};return h.cancel=function(){clearTimeout(u),c=0,u=a=s=null},h}((e,r,o)=>{e(r,o)},50)}componentWillUnmount(){this.throttle.cancel(),this.unbindEventListeners()}getContainerRenderWindow(){const{container:n}=this;let e=window;for(;!e.document.contains(n)&&e.parent!==e;)e=e.parent;return e}unbindEventListeners(){const n=this.getContainerRenderWindow();n.removeEventListener("mousemove",this.handleChange),n.removeEventListener("mouseup",this.handleMouseUp)}render(){const{color:n,white:e,black:r,pointer:o,circle:u}=this.props||{},a={position:"absolute",top:"0px",left:"0px",right:"0px",bottom:"0px"},s={color:{...a,backgroundColor:`hsl(${this.props.hsl?.h},100%, 50%)`,borderRadius:this.props.style?.borderRadius},white:{...a,borderRadius:this.props.style?.borderRadius},black:{...a,boxShadow:this.props.style?.boxShadow,borderRadius:this.props.style?.borderRadius},pointer:{...a,top:-100*this.props.hsv?.v+100+"%",left:100*this.props.hsv?.s+"%",cursor:"default"},circle:{width:"4px",height:"4px",boxShadow:`0 0 0 1.5px #fff, inset 0 0 1px 1px rgba(0,0,0,.3),
|
|
33
|
+
0 0 1px 2px rgba(0,0,0,.4)`,borderRadius:"50%",cursor:"hand",transform:"translate(-2px, -2px)"}};return P.jsxs("div",{style:s.color,ref:i=>this.container=i,onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange,children:[P.jsx("style",{children:`
|
|
34
|
+
.saturation-white {
|
|
35
|
+
background: -webkit-linear-gradient(to right, #fff, rgba(255,255,255,0));
|
|
36
|
+
background: linear-gradient(to right, #fff, rgba(255,255,255,0));
|
|
37
|
+
}
|
|
38
|
+
.saturation-black {
|
|
39
|
+
background: -webkit-linear-gradient(to top, #000, rgba(0,0,0,0));
|
|
40
|
+
background: linear-gradient(to top, #000, rgba(0,0,0,0));
|
|
41
|
+
}
|
|
42
|
+
`}),P.jsxs("div",{style:s.white,className:"saturation-white",children:[P.jsx("div",{style:s.black,className:"saturation-black"}),P.jsx("div",{style:s.pointer,children:this.props.pointer?P.jsx(this.props.pointer,{...this.props}):P.jsx("div",{style:s.circle})})]})]})}}const et=(t,n=null)=>{const e=t.hex?_(t.hex):_(t||"transparent"),r=e.toHsl(),o=e.toHsv(),u=e.toRgb(),a=e.toHex();return r.s===0&&(r.h=n??0,o.h=n??0),{hsl:r,hex:"#"+a,rgb:u,hsv:o,source:t.source}},du=w.memo(t=>{const{selectedColor:n,onColorChange:e,renderers:r,disableAlpha:o=!1,style:u=$.ro.EmptyCssProperties,...a}=t,s=$.useTheme(),[i,c]=w.useState(()=>et(n)),[l,h]=w.useState(i.hsl.h??0),p=w.useCallback(f=>{let b=et(f,l);return h(b.hsl.h??0),c(b),b},[l]),v=w.useCallback(f=>{const b=p(f),g=`rgba(${b.rgb.r},${b.rgb.g},${b.rgb.b},${o?1:b.rgb.a})`;e?.(g)},[e,p,o]);w.useLayoutEffect(()=>{p(n)},[n,p]);const d=P.jsx("div",{style:{position:"relative",minHeight:"10px",maxHeight:"10px",width:"100%"},children:P.jsx(Ls,{style:{radius:"2px",shadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},rgb:i.rgb,hsl:i.hsl,renderers:r,onChange:v})});return P.jsxs("div",{style:{display:"flex",flexDirection:"column",...u},...a,children:[P.jsx("div",{style:{width:"100%",flex:"1 1 100%",position:"relative",overflow:"hidden"},children:P.jsx(ac,{style:{borderRadius:"3px",boxShadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},hsl:i.hsl,hsv:i.hsv,onChange:v})}),P.jsxs("div",{style:{marginTop:"4px",display:"flex",gap:"4px"},children:[P.jsxs("div",{style:{flex:"1",display:"flex",flexDirection:o?"row":"column",justifyContent:"space-between",alignItems:"center"},children:[P.jsx("div",{style:{position:"relative",minHeight:"10px",maxHeight:"10px",width:"100%"},children:P.jsx(zs,{style:{radius:"2px",shadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},hsl:i.hsl,onChange:v})}),o?null:d]}),P.jsxs("div",{style:{minWidth:"24px",maxWidth:"24px",minHeight:"24px",maxHeight:"24px",position:"relative",borderRadius:"1px",overflow:"hidden"},children:[P.jsx($.Checkboard,{grey:s.palette.text.icon??s.palette.action.active}),P.jsx("div",{style:{position:"absolute",height:"100%",width:"100%",background:`rgba(${i.rgb.r},${i.rgb.g},${i.rgb.b},${o?1:i.rgb.a})`,boxShadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"}})]})]}),P.jsx(Nu.Box,{sx:{marginBottom:"4px","& label":{fontFamily:f=>`${f.typography.fontFamily} !important`,color:f=>`${f.palette.text.secondary} !important`},"& *":{fontFamily:f=>`${f.typography.fontFamily} !important`,userSelect:"none"},"& input":{paddingLeft:f=>`${f.spacing(.5)} !important`,paddingRight:f=>`${f.spacing(.5)} !important`,outline:"none",boxSizing:"border-box",width:"100% !important",textAlign:"center"}},children:P.jsx(ic,{rgb:i.rgb,hsl:i.hsl,hex:i.hex,disableAlpha:o,onChange:v})})]})});exports.CustomColorPanel=du,exports.default=du,exports.toState=et;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";/**
|
|
2
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.0.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={ENCODEURL:{s:"Returns a URL-encoded string",p:{text:{d:"is a string to be URL encoded"}}},WEBSERVICE:{s:"Retrieves data from a web service.",p:{url:{d:"is the URL of the web service"}}}};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";/**
|
|
2
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.0.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={ERF:{s:"Returns the error function",p:{lowerLimit:{d:"is the lower bound for integrating ERF"},upperLimit:{d:"is the upper bound for integrating ERF",v:0}}},"ERF.PRECISE":{s:"Returns the error function",p:{x:{d:"is the lower bound for integrating ERF.PRECISE"}}},ERFC:{s:"Returns the complementary error function",p:{x:{d:"is the lower bound for integrating ERF"}}}};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";/**
|
|
2
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.0.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={DELAY:{s:"Returns the input value after a delay.",p:{time:{d:"the delay time in milliseconds. Default is 1000ms (1 second)."},input:{d:"returns the input."},label:{d:"optional label for the delay function.",v:"No label"}},h:"Testing"},WAIT:{s:"Starts waiting for event",p:{type:{d:"the type of message."},input:{d:"an optional dependency."}},h:"Testing"}};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";/**
|
|
2
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.0.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("./4XrhSt2xtUIXkiCt.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,6 @@
|
|
|
1
|
+
"use strict";/**
|
|
2
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.0.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 o=require("react/jsx-runtime"),s=require("react"),a=require("@mui/material"),n=require("./B5LCoenQbQmzic16.cjs"),h=s.memo(y=>{const{title:f,onHide:b,autoFocusSel:w=".range-input input",context:S,notifier:r=n.Be,command:c,commands:d,...j}=y,[T,g]=s.useState(!1),[x,u]=s.useState(!1),m=s.useRef(null),[P,v]=s.useReducer(e=>e+1,0),[C,{width:I}]=n.useMeasure();n.go(c);const i=S??c.context(),t=i.table(),[B,N]=s.useState(()=>t?i.getNames().getRanges(t.getRange()):null),R=s.useMemo(()=>t?.getName()??"",[t]);n.gt(i.table(),{onAnchorCoordsChange(e){N(i.getNames().getRanges(e.getRange()))},onProtectedChange(e){v()}});const D=n.T(e=>{i?.table().setName(e)},[i]),F=n.T(e=>{i?.table().resize(e.at(0))},[i]);let p=null;return i.table()||(p=o.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:o.jsx("div",{children:"No table selected"})})),o.jsx(n.Fn,{title:f??"Table Details",initialPosition:{y:"35"},autoFocusSel:w,refWindow:m,onHide:b,onFocus:()=>g(!0),onBlur:e=>{m?.current?.contains(e.relatedTarget)||g(!1)},PaperProps:{elevation:T?3:1},...j,children:o.jsxs(a.DialogContent,{dividers:!0,ref:C,sx:{display:"flex",flexDirection:"column",position:"relative",paddingLeft:e=>e.spacing(1.5),paddingRight:e=>e.spacing(1.5)},children:[o.jsxs(a.Box,{sx:{display:"flex",flexDirection:"column",transition:"opacity 60ms",opacity:i.table()?1:0},children:[o.jsx(a.Box,{sx:{display:"flex",flexDirection:"row",gap:e=>e.spacing(1)},children:o.jsx(a.Box,{sx:{display:"flex",flexDirection:"column",maxWidth:"100%",boxSizing:"border-box",paddingLeft:e=>e.spacing(2),paddingRight:e=>e.spacing(2)},children:o.jsxs(a.Box,{sx:{display:"flex",flexDirection:"column",alignItems:"center"},children:[o.jsx(n.NamedInput,{formName:"name",defaultInput:R,value:t?.getName()??"No table",onChangeInput:D,onValidate:e=>{t&&t.getName().toLowerCase()===e.toLowerCase()||i?.getNames().validateName(e)},disabled:t?.isProtected()??!0,onFocus:e=>{x||e.target?.select(),u(!0)}}),o.jsx(n.RangeInput,{formName:"range",value:B,onChangeInput:F,resolvedAddress:i.getNames().getRanges.bind(i.getNames()),disabled:t?.isProtected()??!0,onFocus:e=>{x||e.target?.select(),u(!0)}})]})})}),o.jsxs(a.Box,{sx:{minHeight:"10px",flex:"1 1 100%",display:"flex",flexDirection:"column",gap:e=>e.spacing(.5),marginTop:e=>e.spacing(1)},children:[o.jsx(n.At,{orientation:"horizontal",sx:{marginTop:e=>e.spacing(1.5),marginBottom:e=>e.spacing(.75)}}),o.jsx(n.TableStyleOptionsPanel,{disabled:t?.isProtected(),styleOptions:t?.getStyleOptions()??null,onStyleOptionsChange:e=>{t.updateStyleOptions(e)},showHeaderRow:t?.getShowHeaders(),onShowHeaderRowChange:e=>{try{t.setShowHeaders(e)}catch(l){r.showError(l)}},showTotalRow:t?.getShowTotals(),onShowTotalRowChange:e=>{try{t.setShowTotals(e)}catch(l){r.showError(l)}},showFilterButton:t?.getFilter()?t.getShowFilterButton():null,onShowFilterButtonChange:e=>{try{t.setShowFilterButton(e)}catch(l){r.showError(l)}}}),o.jsx(a.Box,{sx:{display:"flex",alignItems:"center",justifyContent:"center",flexDirection:"column",marginTop:e=>e.spacing(2),marginBottom:e=>e.spacing(1)},children:o.jsx(n.TableStylePreview,{table:t,styles:i.styles(),bodyStyle:i.bodyStyle(),cellHeight:30,isLive:!0})}),o.jsx(n.At,{orientation:"horizontal"}),o.jsxs(a.Box,{sx:{display:"flex",flexDirection:"column",justifyContent:"center"},children:[o.jsx(n.fr,{variant:n.vo.Menuitem,command:d.getCommand("convertTableToRange"),commandState:t,icon:n.y5(o.jsx(n.Vo,{}))}),o.jsx(n.fr,{variant:n.vo.Menuitem,commandState:t,command:d.getCommand("deleteTable"),icon:n.y5(o.jsx(n.Vo,{}))})]})]})]}),p]})})});exports.TableDetailsWindow=h,exports.default=h;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";/**
|
|
2
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.0.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 n=require("react/jsx-runtime"),t=require("react"),r=require("@mui/material"),c=require("./B5LCoenQbQmzic16.cjs"),q=["Ok","Cancel"],b=t.memo(h=>{const{tableOptions:a,context:p,onOption:u,onValidateOption:y,onDone:d,options:g=q,defaultOption:l=g?.[0],cancelOption:s="Cancel",sx:m,...O}=h,[f,C]=t.useState(!1),[o,j]=t.useState(()=>a?.hasHeader??!1),[i,S]=t.useState(()=>a?.ranges??null),T=c.T(e=>{const x={...a,hasHeader:o,ranges:i};u?.(e,e===s,e===l),d?.({option:e,tableOptions:x})},[d,u,l,s,o,i,a]),k=t.useCallback(async(e,x)=>null,[]);return n.jsx(c.E8,{title:"Insert Table",options:g,onDone:T,onValidateOption:k,defaultOption:l,cancelOption:s,autoFocusSel:".range-input input",sx:{width:"360px",...m},...O,children:n.jsxs(r.Box,{sx:{paddingTop:e=>e.spacing(1),paddingBottom:e=>e.spacing(0),rowGap:e=>e.spacing(1),display:"flex",flexDirection:"column"},children:[n.jsx(c.RangeInput,{formName:"range",value:i,onChangeInput:e=>S(e),resolvedAddress:p.getNames().getRanges.bind(p.getNames()),onFocus:e=>{f||e.target?.select(),C(!0)}}),n.jsx(r.FormControlLabel,{control:n.jsx(r.Checkbox,{checked:o,onChange:()=>j(!o)}),label:"Table has headers",labelPlacement:"end"})]})})});exports.TableNewDialog=b,exports.default=b;
|