@sheetxl/studio-vanilla 0.4.10 → 0.4.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/browser/cjs/B35OZ0mE8aINQPP9.cjs +7 -0
- package/browser/cjs/BPzEQNENF-gEBkg9.cjs +7 -0
- package/browser/cjs/BUokV6yuzE-_8MyK.cjs +7 -0
- package/browser/cjs/BeZHmOKfa37mFNAu.cjs +7 -0
- package/browser/cjs/BflJ_0gT9lQtDvY_.cjs +7 -0
- package/browser/cjs/BwN8vKi5o3-PbIMo.cjs +7 -0
- package/browser/cjs/C3OizZPVuxO2fjSG.cjs +7 -0
- package/browser/cjs/CBL6KkiWI2RPflEN.cjs +7 -0
- package/browser/cjs/CN6-6xpZMpFqSS8M.cjs +7 -0
- package/browser/cjs/CTrEV_UpxC0W6cZZ.cjs +7 -0
- package/browser/cjs/CU30GVjjFXl44vEU.cjs +7 -0
- package/browser/cjs/CZWBxvUXzfpn_zmc.cjs +7 -0
- package/browser/cjs/Ccs2ouvlLekaLGH0.cjs +7 -0
- package/browser/cjs/Ce-8L4Viq3I_6j0i.cjs +7 -0
- package/browser/cjs/CtNjLzIHB8WX63Bl.cjs +7 -0
- package/browser/cjs/DAHpsyykuPBkoh-Z.cjs +7 -0
- package/browser/cjs/DJbKKxeeTEHHA1gR.cjs +107 -0
- package/browser/cjs/D_VQzwC1zzTJyKtG.cjs +7 -0
- package/browser/cjs/GrsZZ_mEdsM5dEMA.cjs +7 -0
- package/browser/cjs/JKEGlXjMwGnXk_Gv.cjs +7 -0
- package/browser/cjs/L1iE_VcelYZIy0wI.cjs +7 -0
- package/browser/cjs/Q_VvA-yUQx3xFKiJ.cjs +7 -0
- package/browser/cjs/fTGpiXzFm3K_u2Fm.cjs +7 -0
- package/browser/cjs/hwDUzorB6aCvH1eL.cjs +7 -0
- package/browser/cjs/index.cjs +4 -3
- package/browser/cjs/no5c2H18QD2qmOH6.cjs +7 -0
- package/browser/esm/B4Mm5gczpI_k2zzN.mjs +7 -0
- package/browser/esm/B8ISUdOxsJMYWzNN.mjs +7 -0
- package/browser/esm/BnJiF38TGudjoHzT.mjs +7 -0
- package/browser/esm/Bts4nCgfCAUpTfxz.mjs +7 -0
- package/browser/esm/C3cyAbIH8Qc8MIFN.mjs +107 -0
- package/browser/esm/C4jlaVv8bELgiHyE.mjs +7 -0
- package/browser/esm/CYIhGb86r-kKOrP5.mjs +7 -0
- package/browser/esm/CcpskguvlvemArQn.mjs +7 -0
- package/browser/esm/CeRfALx1iU5fqOUg.mjs +7 -0
- package/browser/esm/CfYWmP_Hots5f0f6.mjs +7 -0
- package/browser/esm/CkarbqNx_lhlBnw7.mjs +7 -0
- package/browser/esm/D2PlWNQjrTgf6GuR.mjs +7 -0
- package/browser/esm/D3KNxvnrwR6_fTJE.mjs +7 -0
- package/browser/esm/DIJyH94oCzUnlcNZ.mjs +7 -0
- package/browser/esm/DVAG1NxFe3cMjLE1.mjs +7 -0
- package/browser/esm/DVqga7g7j0FUiM6p.mjs +7 -0
- package/browser/esm/DcX8yGEBX6qi9RCe.mjs +7 -0
- package/browser/esm/DeXfOSxGE_Ez7DZq.mjs +7 -0
- package/browser/esm/DzgM_rkwyIHsCb6I.mjs +7 -0
- package/browser/esm/M4hZ25330e96seUM.mjs +7 -0
- package/browser/esm/Qp2Toeh_EbJH_f_6.mjs +7 -0
- package/browser/esm/SAyRTPVprOHZ8Up8.mjs +7 -0
- package/browser/esm/_ft7JYO6QdDbIu3d.mjs +7 -0
- package/browser/esm/dpdy0BU4GGI5lZrX.mjs +7 -0
- package/browser/esm/index.mjs +2 -8
- package/browser/esm/oLCocGFRAwsVsOSE.mjs +7 -0
- package/cdn/assets/7_O6nILzn1fSVvkO.js +13449 -0
- package/cdn/assets/B3kbBB6oxKBErwzn.js +27 -0
- package/cdn/assets/BB66NDz7S3ocEfRB.js +150 -0
- package/cdn/assets/BCK7yhx9JfzU2rF0.js +22 -0
- package/{browser/esm/DIGFi66CQPMV3HsL.mjs → cdn/assets/BSAH88RG1oubICau.js} +25 -25
- package/cdn/assets/{B-9FcTf3xBEVGdjV.js → BT5EcMEFBsphczwC.js} +536 -534
- package/cdn/assets/BcWoqhD_sX85c7Mh.js +1701 -0
- package/cdn/assets/BoOefjrM4kZ-YXxa.js +90 -0
- package/cdn/assets/BtweFYnoj_aEfydW.js +1371 -0
- package/cdn/assets/Bv0Xb6DdcQbPYJKo.js +24 -0
- package/cdn/assets/CC-S4NMYhLg3WgqO.js +3875 -0
- package/cdn/assets/CJhyHcQcrhbtC33r.js +50 -0
- package/cdn/assets/CUc6gRjjRGTFWSHD.js +50 -0
- package/{browser/esm/D47D26mVYSAdb5C8.mjs → cdn/assets/CfObTzh8pGdd8D23.js} +560 -555
- package/cdn/assets/CiY3HumGDc_5bMtR.js +58 -0
- package/cdn/assets/CpPLN0-hDsTIFHZV.js +46 -0
- package/{browser/esm/C_Zx1tYjI3n7KKZH.mjs → cdn/assets/Cq94woVmlxhjWVRI.js} +2 -2
- package/cdn/assets/CsjftXmSYQRHNKdq.js +41 -0
- package/cdn/assets/DBL4jY0AVc53RGNm.js +637 -0
- package/cdn/assets/DDW1WJ2IM_9ZUfKm.js +36 -0
- package/cdn/assets/{Bt1JSlSpWXDOBfq3.js → DJQOS9qxVAlpgDMt.js} +5 -4
- package/cdn/assets/DWJE3K3jMKMTCi3o.js +393 -0
- package/cdn/assets/D_5RgqgwXsoqLJDR.js +241 -0
- package/cdn/assets/DfmaL8DmDaFAv8M_.js +6481 -0
- package/cdn/assets/DgLPO_EQ9DYoGgec.js +423 -0
- package/cdn/assets/{B3J6oAmsS7oLNFPd.js → DkS6quwH1okWaho6.js} +3 -3
- package/cdn/assets/DxMu6URURFWj9aXM.js +2373 -0
- package/cdn/assets/Jhm2DAcrfAqiM-Y-.js +26490 -0
- package/cdn/assets/MRBi3juXAW0lA_mj.js +1358 -0
- package/cdn/assets/dk2teWHDODYNarJY.js +27 -0
- package/cdn/assets/phYz0vGgqIEQ2hco.js +12 -0
- package/cdn/assets/qA23x9VVBL9R4qxN.js +43 -0
- package/cdn/index.js +8 -8
- package/cdn/loader.js +1 -1
- package/package.json +5 -5
- package/browser/cjs/B1UGqZP_7Z0Ewpog.cjs +0 -6
- package/browser/cjs/B6m9VXoFseD4zuZ5.cjs +0 -6
- package/browser/cjs/BKePSaEpM6Z063z-.cjs +0 -161
- package/browser/cjs/Bqn0ZeP_srNfL9rG.cjs +0 -6
- package/browser/cjs/C-izbj62pQuZjOrT.cjs +0 -304
- package/browser/cjs/C-w-GX8N54TxTjjf.cjs +0 -6
- package/browser/cjs/C1QGdcqJ-9sdGTQR.cjs +0 -6
- package/browser/cjs/C38aiRglHLxZ8KRY.cjs +0 -6
- package/browser/cjs/C4JMn_hMnlOnDpQO.cjs +0 -6
- package/browser/cjs/CApEj4LhhPUvQjIG.cjs +0 -16
- package/browser/cjs/CFcJbmmXjWjl6fQH.cjs +0 -6
- package/browser/cjs/CKiDbCZ6rGgXK7yN.cjs +0 -42
- package/browser/cjs/CM8btXQsJbnFKXUm.cjs +0 -6
- package/browser/cjs/Cb0K3Wzp7BAa4zni.cjs +0 -15
- package/browser/cjs/CiAUhPU7v1BK-8Bb.cjs +0 -7
- package/browser/cjs/CsXS-EN0N5SZHTnQ.cjs +0 -145
- package/browser/cjs/Cu2eUomoF0HToa4l.cjs +0 -6
- package/browser/cjs/Cy7ii9B_Vqx94pbu.cjs +0 -19
- package/browser/cjs/CzI4ZcsmzsyPBpWN.cjs +0 -12
- package/browser/cjs/DKHzUx2gKXwboKy1.cjs +0 -11
- package/browser/cjs/DKc8wAq8dwbDddQn.cjs +0 -11
- package/browser/cjs/DMyKApbUVRtNYC4e.cjs +0 -6
- package/browser/cjs/DROR08HMGyg7rizQ.cjs +0 -6
- package/browser/cjs/DfGDZlbFVknGyu_X.cjs +0 -6
- package/browser/cjs/OQdqVM_6m78kE5Aj.cjs +0 -7
- package/browser/cjs/v4OEtYXaUw_GeiXM.cjs +0 -12
- package/browser/esm/4uEr84M4w57AMyDg.mjs +0 -1703
- package/browser/esm/B8Ja5DlyKAy8xfQD.mjs +0 -1365
- package/browser/esm/B9bN60uAvy62vnwt.mjs +0 -22
- package/browser/esm/BAOzSQdzHl43K9Hd.mjs +0 -50
- package/browser/esm/BQYSD5Nb35y0WeeV.mjs +0 -421
- package/browser/esm/BVcaNvORp_uKPQgJ.mjs +0 -46
- package/browser/esm/BqXO_cQhrMJu7JoQ.mjs +0 -3756
- package/browser/esm/C18A_DcIEHNYBDvR.mjs +0 -46
- package/browser/esm/C7FoKZbSzjvuY3UB.mjs +0 -43
- package/browser/esm/CCIJpHSbFPjTEF8S.mjs +0 -1665
- package/browser/esm/CHNPjJxb0GY_naLa.mjs +0 -25025
- package/browser/esm/CKHsU9LUNYowimxS.mjs +0 -1346
- package/browser/esm/Cm-m3bZh0V44y0li.mjs +0 -390
- package/browser/esm/D1e_ccSgcNXvWHgy.mjs +0 -151
- package/browser/esm/D9CdO3PtV12RnK8K.mjs +0 -1467
- package/browser/esm/D9x-Q8y57gePf-tE.mjs +0 -944
- package/browser/esm/DHhXutXh7b5LsU1m.mjs +0 -2346
- package/browser/esm/DamiTeQsSMP2Cwld.mjs +0 -58
- package/browser/esm/DhD48oFrbrnZ6Zg5.mjs +0 -13208
- package/browser/esm/Ln2ZalJgj1CiJJue.mjs +0 -50
- package/browser/esm/S9fgUO7h8YgZxoKH.mjs +0 -633
- package/browser/esm/qVAHcpq07IhtAaQc.mjs +0 -24
- package/browser/esm/xrzJ8ILZHb118Oyt.mjs +0 -41
- package/cdn/assets/2-xJlw77WsCoyz09.js +0 -24872
- package/cdn/assets/B-p1i2SNRMunPXCF.js +0 -43
- package/cdn/assets/B8Ja5DlyKAy8xfQD.js +0 -1365
- package/cdn/assets/BG3YTMAzNKPRGoLs.js +0 -50
- package/cdn/assets/BQYSD5Nb35y0WeeV.js +0 -421
- package/cdn/assets/BbzUpvQOkxsN-yIH.js +0 -2346
- package/cdn/assets/BqXO_cQhrMJu7JoQ.js +0 -3756
- package/cdn/assets/CCIJpHSbFPjTEF8S.js +0 -1665
- package/cdn/assets/CKHsU9LUNYowimxS.js +0 -1346
- package/cdn/assets/CWLJZwD2GVXljoWG.js +0 -46
- package/cdn/assets/Cm-m3bZh0V44y0li.js +0 -390
- package/cdn/assets/CtQlXGkNWgI-vtGy.js +0 -2178
- package/cdn/assets/DIGFi66CQPMV3HsL.js +0 -84
- package/cdn/assets/DK4S0DbayChkfTD6.js +0 -58
- package/cdn/assets/DQvsBz9F1GS_S7r9.js +0 -50
- package/cdn/assets/DTOgv_zwXSur-yCq.js +0 -151
- package/cdn/assets/DYZjOnD8WWQkCYuH.js +0 -944
- package/cdn/assets/DhD48oFrbrnZ6Zg5.js +0 -13208
- package/cdn/assets/DhyAyTCDkMBf392P.js +0 -21
- package/cdn/assets/P7HeVw5SHROLSWBz.js +0 -24
- package/cdn/assets/S4Z0SN8x6EltjsHT.js +0 -22
- package/cdn/assets/S9fgUO7h8YgZxoKH.js +0 -633
- package/cdn/assets/guYe4C_6pE93QsDV.js +0 -41
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.12
|
|
3
|
+
*
|
|
4
|
+
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
|
+
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
|
+
*/
|
|
7
|
+
"use strict";function e(){}function t(e){return"object"==typeof e&&null!==e||"function"==typeof e}Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=e;function o(e,t){try{Object.defineProperty(e,"name",{value:t,configurable:!0})}catch(e){}}const n=Promise,i=Promise.resolve.bind(n),a=Promise.prototype.then,s=Promise.reject.bind(n),l=i;function u(e){return new n(e)}function c(e){return u(t=>t(e))}function d(e){return s(e)}function f(e,t,r){return a.call(e,t,r)}function b(e,t,o){f(f(e,t,o),void 0,r)}function h(e,t){b(e,t)}function _(e,t){b(e,void 0,t)}function p(e,t,r){return f(e,t,r)}function m(e){f(e,void 0,r)}let y=e=>{if("function"==typeof queueMicrotask)y=queueMicrotask;else{const e=c(void 0);y=t=>f(e,t)}return y(e)};function v(e,t,r){if("function"!=typeof e)throw new TypeError("Argument is not a function");return Function.prototype.apply.call(e,t,r)}function w(e,t,r){try{return c(v(e,t,r))}catch(e){return d(e)}}class g{constructor(){this._cursor=0,this._size=0,this._front={_elements:[],_next:void 0},this._back=this._front,this._cursor=0,this._size=0}get length(){return this._size}push(e){const t=this._back;let r=t;16383===t._elements.length&&(r={_elements:[],_next:void 0}),t._elements.push(e),r!==t&&(this._back=r,t._next=r),++this._size}shift(){const e=this._front;let t=e;const r=this._cursor;let o=r+1;const n=e._elements,i=n[r];return 16384===o&&(t=e._next,o=0),--this._size,this._cursor=o,e!==t&&(this._front=t),n[r]=void 0,i}forEach(e){let t=this._cursor,r=this._front,o=r._elements;for(;!(t===o.length&&void 0===r._next||t===o.length&&(r=r._next,o=r._elements,t=0,0===o.length));)e(o[t]),++t}peek(){const e=this._front,t=this._cursor;return e._elements[t]}}const S=Symbol("[[AbortSteps]]"),R=Symbol("[[ErrorSteps]]"),T=Symbol("[[CancelSteps]]"),q=Symbol("[[PullSteps]]"),E=Symbol("[[ReleaseSteps]]");function P(e,t){e._ownerReadableStream=t,t._reader=e,"readable"===t._state?A(e):"closed"===t._state?function(e){A(e),z(e)}(e):k(e,t._storedError)}function C(e,t){return zr(e._ownerReadableStream,t)}function O(e){const t=e._ownerReadableStream;"readable"===t._state?W(e,new TypeError("Reader was released and can no longer be used to monitor the stream's closedness")):function(e){k(e,new TypeError("Reader was released and can no longer be used to monitor the stream's closedness"))}(e),t._readableStreamController[E](),t._reader=void 0,e._ownerReadableStream=void 0}function j(e){return new TypeError("Cannot "+e+" a stream using a released reader")}function A(e){e._closedPromise=u((t,r)=>{e._closedPromise_resolve=t,e._closedPromise_reject=r})}function k(e,t){A(e),W(e,t)}function W(e,t){void 0!==e._closedPromise_reject&&(m(e._closedPromise),e._closedPromise_reject(t),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0)}function z(e){void 0!==e._closedPromise_resolve&&(e._closedPromise_resolve(void 0),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0)}const B=Number.isFinite||function(e){return"number"==typeof e&&isFinite(e)},F=Math.trunc||function(e){return e<0?Math.ceil(e):Math.floor(e)};function I(e,t){if(void 0!==e&&"object"!=typeof(r=e)&&"function"!=typeof r)throw new TypeError(`${t} is not an object.`);var r}function L(e,t){if("function"!=typeof e)throw new TypeError(`${t} is not a function.`)}function $(e,t){if(!function(e){return"object"==typeof e&&null!==e||"function"==typeof e}(e))throw new TypeError(`${t} is not an object.`)}function x(e,t,r){if(void 0===e)throw new TypeError(`Parameter ${t} is required in '${r}'.`)}function D(e,t,r){if(void 0===e)throw new TypeError(`${t} is required in '${r}'.`)}function M(e){return Number(e)}function N(e){return 0===e?0:e}function Y(e,t){const r=Number.MAX_SAFE_INTEGER;let o=Number(e);if(o=N(o),!B(o))throw new TypeError(`${t} is not a finite number`);if(o=function(e){return N(F(e))}(o),o<0||o>r)throw new TypeError(`${t} is outside the accepted range of 0 to ${r}, inclusive`);return B(o)&&0!==o?o:0}function V(e,t){if(!kr(e))throw new TypeError(`${t} is not a ReadableStream.`)}function U(e){return new K(e)}function H(e,t){e._reader._readRequests.push(t)}function G(e,t,r){const o=e._reader._readRequests.shift();r?o._closeSteps():o._chunkSteps(t)}function X(e){return e._reader._readRequests.length}function J(e){const t=e._reader;return void 0!==t&&!!Q(t)}class K{constructor(e){if(x(e,1,"ReadableStreamDefaultReader"),V(e,"First parameter"),Wr(e))throw new TypeError("This stream has already been locked for exclusive reading by another reader");P(this,e),this._readRequests=new g}get closed(){return Q(this)?this._closedPromise:d(te("closed"))}cancel(e=void 0){return Q(this)?void 0===this._ownerReadableStream?d(j("cancel")):C(this,e):d(te("cancel"))}read(){if(!Q(this))return d(te("read"));if(void 0===this._ownerReadableStream)return d(j("read from"));let e,t;const r=u((r,o)=>{e=r,t=o});return Z(this,{_chunkSteps:t=>e({value:t,done:!1}),_closeSteps:()=>e({value:void 0,done:!0}),_errorSteps:e=>t(e)}),r}releaseLock(){if(!Q(this))throw te("releaseLock");void 0!==this._ownerReadableStream&&function(e){O(e),ee(e,new TypeError("Reader was released"))}(this)}}function Q(e){return!!t(e)&&!!Object.prototype.hasOwnProperty.call(e,"_readRequests")&&e instanceof K}function Z(e,t){const r=e._ownerReadableStream;r._disturbed=!0,"closed"===r._state?t._closeSteps():"errored"===r._state?t._errorSteps(r._storedError):r._readableStreamController[q](t)}function ee(e,t){const r=e._readRequests;e._readRequests=new g,r.forEach(e=>{e._errorSteps(t)})}function te(e){return new TypeError(`ReadableStreamDefaultReader.prototype.${e} can only be used on a ReadableStreamDefaultReader`)}var re,oe,ne;function ie(e){return e.slice()}function ae(e,t,r,o,n){new Uint8Array(e).set(new Uint8Array(r,o,n),t)}Object.defineProperties(K.prototype,{cancel:{enumerable:!0},read:{enumerable:!0},releaseLock:{enumerable:!0},closed:{enumerable:!0}}),o(K.prototype.cancel,"cancel"),o(K.prototype.read,"read"),o(K.prototype.releaseLock,"releaseLock"),"symbol"==typeof Symbol.toStringTag&&Object.defineProperty(K.prototype,Symbol.toStringTag,{value:"ReadableStreamDefaultReader",configurable:!0});let se=e=>(se="function"==typeof e.transfer?e=>e.transfer():"function"==typeof structuredClone?e=>structuredClone(e,{transfer:[e]}):e=>e,se(e)),le=e=>(le="boolean"==typeof e.detached?e=>e.detached:e=>0===e.byteLength,le(e));function ue(e,t,r){if(e.slice)return e.slice(t,r);const o=r-t,n=new ArrayBuffer(o);return ae(n,0,e,t,o),n}function ce(e,t){const r=e[t];if(null!=r){if("function"!=typeof r)throw new TypeError(`${String(t)} is not a function`);return r}}function de(e){try{const t=e.done,r=e.value;return f(l(r),e=>({done:t,value:e}))}catch(e){return d(e)}}const fe=null!==(ne=null!==(re=Symbol.asyncIterator)&&void 0!==re?re:null===(oe=Symbol.for)||void 0===oe?void 0:oe.call(Symbol,"Symbol.asyncIterator"))&&void 0!==ne?ne:"@@asyncIterator";function be(e,r="sync",o){if(void 0===o)if("async"===r){if(void 0===(o=ce(e,fe)))return function(e){const r={next(){let t;try{t=he(e)}catch(e){return d(e)}return de(t)},return(r){let o;try{const t=ce(e.iterator,"return");if(void 0===t)return c({done:!0,value:r});o=v(t,e.iterator,[r])}catch(e){return d(e)}return t(o)?de(o):d(new TypeError("The iterator.return() method must return an object"))}};return{iterator:r,nextMethod:r.next,done:!1}}(be(e,"sync",ce(e,Symbol.iterator)))}else o=ce(e,Symbol.iterator);if(void 0===o)throw new TypeError("The object is not iterable");const n=v(o,e,[]);if(!t(n))throw new TypeError("The iterator method must return an object");return{iterator:n,nextMethod:n.next,done:!1}}function he(e){const r=v(e.nextMethod,e.iterator,[]);if(!t(r))throw new TypeError("The iterator.next() method must return an object");return r}class _e{constructor(e,t){this._ongoingPromise=void 0,this._isFinished=!1,this._reader=e,this._preventCancel=t}next(){const e=()=>this._nextSteps();return this._ongoingPromise=this._ongoingPromise?p(this._ongoingPromise,e,e):e(),this._ongoingPromise}return(e){const t=()=>this._returnSteps(e);return this._ongoingPromise=this._ongoingPromise?p(this._ongoingPromise,t,t):t(),this._ongoingPromise}_nextSteps(){if(this._isFinished)return Promise.resolve({value:void 0,done:!0});const e=this._reader;let t,r;const o=u((e,o)=>{t=e,r=o});return Z(e,{_chunkSteps:e=>{this._ongoingPromise=void 0,y(()=>t({value:e,done:!1}))},_closeSteps:()=>{this._ongoingPromise=void 0,this._isFinished=!0,O(e),t({value:void 0,done:!0})},_errorSteps:t=>{this._ongoingPromise=void 0,this._isFinished=!0,O(e),r(t)}}),o}_returnSteps(e){if(this._isFinished)return Promise.resolve({value:e,done:!0});this._isFinished=!0;const t=this._reader;if(!this._preventCancel){const r=C(t,e);return O(t),p(r,()=>({value:e,done:!0}))}return O(t),c({value:e,done:!0})}}const pe={next(){return me(this)?this._asyncIteratorImpl.next():d(ye("next"))},return(e){return me(this)?this._asyncIteratorImpl.return(e):d(ye("return"))},[fe](){return this}};function me(e){if(!t(e))return!1;if(!Object.prototype.hasOwnProperty.call(e,"_asyncIteratorImpl"))return!1;try{return e._asyncIteratorImpl instanceof _e}catch(e){return!1}}function ye(e){return new TypeError(`ReadableStreamAsyncIterator.${e} can only be used on a ReadableSteamAsyncIterator`)}Object.defineProperty(pe,fe,{enumerable:!1});const ve=Number.isNaN||function(e){return e!=e};function we(e){const t=ue(e.buffer,e.byteOffset,e.byteOffset+e.byteLength);return new Uint8Array(t)}function ge(e){const t=e._queue.shift();return e._queueTotalSize-=t.size,e._queueTotalSize<0&&(e._queueTotalSize=0),t.value}function Se(e,t,r){if("number"!=typeof(o=r)||ve(o)||o<0||r===1/0)throw new RangeError("Size must be a finite, non-NaN, non-negative number.");var o;e._queue.push({value:t,size:r}),e._queueTotalSize+=r}function Re(e){e._queue=new g,e._queueTotalSize=0}function Te(e){return e===DataView}class qe{constructor(){throw new TypeError("Illegal constructor")}get view(){if(!Ce(this))throw et("view");return this._view}respond(e){if(!Ce(this))throw et("respond");if(x(e,1,"respond"),e=Y(e,"First parameter"),void 0===this._associatedReadableByteStreamController)throw new TypeError("This BYOB request has been invalidated");if(le(this._view.buffer))throw new TypeError("The BYOB request's buffer has been detached and so cannot be used as a response");Ke(this._associatedReadableByteStreamController,e)}respondWithNewView(e){if(!Ce(this))throw et("respondWithNewView");if(x(e,1,"respondWithNewView"),!ArrayBuffer.isView(e))throw new TypeError("You can only respond with array buffer views");if(void 0===this._associatedReadableByteStreamController)throw new TypeError("This BYOB request has been invalidated");if(le(e.buffer))throw new TypeError("The given view's buffer has been detached and so cannot be used as a response");Qe(this._associatedReadableByteStreamController,e)}}Object.defineProperties(qe.prototype,{respond:{enumerable:!0},respondWithNewView:{enumerable:!0},view:{enumerable:!0}}),o(qe.prototype.respond,"respond"),o(qe.prototype.respondWithNewView,"respondWithNewView"),"symbol"==typeof Symbol.toStringTag&&Object.defineProperty(qe.prototype,Symbol.toStringTag,{value:"ReadableStreamBYOBRequest",configurable:!0});class Ee{constructor(){throw new TypeError("Illegal constructor")}get byobRequest(){if(!Pe(this))throw tt("byobRequest");return Xe(this)}get desiredSize(){if(!Pe(this))throw tt("desiredSize");return Je(this)}close(){if(!Pe(this))throw tt("close");if(this._closeRequested)throw new TypeError("The stream has already been closed; do not close it again!");const e=this._controlledReadableByteStream._state;if("readable"!==e)throw new TypeError(`The stream (in ${e} state) is not in the readable state and cannot be closed`);Ve(this)}enqueue(e){if(!Pe(this))throw tt("enqueue");if(x(e,1,"enqueue"),!ArrayBuffer.isView(e))throw new TypeError("chunk must be an array buffer view");if(0===e.byteLength)throw new TypeError("chunk must have non-zero byteLength");if(0===e.buffer.byteLength)throw new TypeError("chunk's buffer must have non-zero byteLength");if(this._closeRequested)throw new TypeError("stream is closed or draining");const t=this._controlledReadableByteStream._state;if("readable"!==t)throw new TypeError(`The stream (in ${t} state) is not in the readable state and cannot be enqueued to`);Ue(this,e)}error(e=void 0){if(!Pe(this))throw tt("error");He(this,e)}[T](e){je(this),Re(this);const t=this._cancelAlgorithm(e);return Ye(this),t}[q](e){const t=this._controlledReadableByteStream;if(this._queueTotalSize>0)return void Ge(this,e);const r=this._autoAllocateChunkSize;if(void 0!==r){let o;try{o=new ArrayBuffer(r)}catch(t){return void e._errorSteps(t)}const n={buffer:o,bufferByteLength:r,byteOffset:0,byteLength:r,bytesFilled:0,minimumFill:1,elementSize:1,viewConstructor:Uint8Array,readerType:"default"};this._pendingPullIntos.push(n)}H(t,e),Oe(this)}[E](){if(this._pendingPullIntos.length>0){const e=this._pendingPullIntos.peek();e.readerType="none",this._pendingPullIntos=new g,this._pendingPullIntos.push(e)}}}function Pe(e){return!!t(e)&&!!Object.prototype.hasOwnProperty.call(e,"_controlledReadableByteStream")&&e instanceof Ee}function Ce(e){return!!t(e)&&!!Object.prototype.hasOwnProperty.call(e,"_associatedReadableByteStreamController")&&e instanceof qe}function Oe(e){const t=function(e){const t=e._controlledReadableByteStream;return"readable"===t._state&&!e._closeRequested&&!!e._started&&(!!(J(t)&&X(t)>0)||!!(at(t)&&it(t)>0)||Je(e)>0)}(e);t&&(e._pulling?e._pullAgain=!0:(e._pulling=!0,b(e._pullAlgorithm(),()=>(e._pulling=!1,e._pullAgain&&(e._pullAgain=!1,Oe(e)),null),t=>(He(e,t),null))))}function je(e){xe(e),e._pendingPullIntos=new g}function Ae(e,t){let r=!1;"closed"===e._state&&(r=!0);const o=We(t);"default"===t.readerType?G(e,o,r):function(e,t,r){const o=e._reader._readIntoRequests.shift();r?o._closeSteps(t):o._chunkSteps(t)}(e,o,r)}function ke(e,t){for(let r=0;r<t.length;++r)Ae(e,t[r])}function We(e){const t=e.bytesFilled,r=e.elementSize;return new e.viewConstructor(e.buffer,e.byteOffset,t/r)}function ze(e,t,r,o){e._queue.push({buffer:t,byteOffset:r,byteLength:o}),e._queueTotalSize+=o}function Be(e,t,r,o){let n;try{n=ue(t,r,r+o)}catch(t){throw He(e,t),t}ze(e,n,0,o)}function Fe(e,t){t.bytesFilled>0&&Be(e,t.buffer,t.byteOffset,t.bytesFilled),Ne(e)}function Ie(e,t){const r=Math.min(e._queueTotalSize,t.byteLength-t.bytesFilled),o=t.bytesFilled+r;let n=r,i=!1;const a=o-o%t.elementSize;a>=t.minimumFill&&(n=a-t.bytesFilled,i=!0);const s=e._queue;for(;n>0;){const r=s.peek(),o=Math.min(n,r.byteLength),i=t.byteOffset+t.bytesFilled;ae(t.buffer,i,r.buffer,r.byteOffset,o),r.byteLength===o?s.shift():(r.byteOffset+=o,r.byteLength-=o),e._queueTotalSize-=o,Le(e,o,t),n-=o}return i}function Le(e,t,r){r.bytesFilled+=t}function $e(e){0===e._queueTotalSize&&e._closeRequested?(Ye(e),Br(e._controlledReadableByteStream)):Oe(e)}function xe(e){null!==e._byobRequest&&(e._byobRequest._associatedReadableByteStreamController=void 0,e._byobRequest._view=null,e._byobRequest=null)}function De(e){const t=[];for(;e._pendingPullIntos.length>0&&0!==e._queueTotalSize;){const r=e._pendingPullIntos.peek();Ie(e,r)&&(Ne(e),t.push(r))}return t}function Me(e,t){const r=e._pendingPullIntos.peek();xe(e),"closed"===e._controlledReadableByteStream._state?function(e,t){"none"===t.readerType&&Ne(e);const r=e._controlledReadableByteStream;if(at(r)){const t=[];for(let o=0;o<it(r);++o)t.push(Ne(e));ke(r,t)}}(e,r):function(e,t,r){if(Le(0,t,r),"none"===r.readerType){Fe(e,r);const t=De(e);return void ke(e._controlledReadableByteStream,t)}if(r.bytesFilled<r.minimumFill)return;Ne(e);const o=r.bytesFilled%r.elementSize;if(o>0){const t=r.byteOffset+r.bytesFilled;Be(e,r.buffer,t-o,o)}r.bytesFilled-=o;const n=De(e);Ae(e._controlledReadableByteStream,r),ke(e._controlledReadableByteStream,n)}(e,t,r),Oe(e)}function Ne(e){return e._pendingPullIntos.shift()}function Ye(e){e._pullAlgorithm=void 0,e._cancelAlgorithm=void 0}function Ve(e){const t=e._controlledReadableByteStream;if(!e._closeRequested&&"readable"===t._state)if(e._queueTotalSize>0)e._closeRequested=!0;else{if(e._pendingPullIntos.length>0){const t=e._pendingPullIntos.peek();if(t.bytesFilled%t.elementSize!=0){const t=new TypeError("Insufficient bytes to fill elements in the given buffer");throw He(e,t),t}}Ye(e),Br(t)}}function Ue(e,t){const r=e._controlledReadableByteStream;if(e._closeRequested||"readable"!==r._state)return;const{buffer:o,byteOffset:n,byteLength:i}=t;if(le(o))throw new TypeError("chunk's buffer is detached and so cannot be enqueued");const a=se(o);if(e._pendingPullIntos.length>0){const t=e._pendingPullIntos.peek();if(le(t.buffer))throw new TypeError("The BYOB request's buffer has been detached and so cannot be filled with an enqueued chunk");xe(e),t.buffer=se(t.buffer),"none"===t.readerType&&Fe(e,t)}if(J(r))(function(e){const t=e._controlledReadableByteStream._reader;for(;t._readRequests.length>0;){if(0===e._queueTotalSize)return;Ge(e,t._readRequests.shift())}})(e),0===X(r)?ze(e,a,n,i):(e._pendingPullIntos.length>0&&Ne(e),G(r,new Uint8Array(a,n,i),!1));else if(at(r)){ze(e,a,n,i);const t=De(e);ke(e._controlledReadableByteStream,t)}else ze(e,a,n,i);Oe(e)}function He(e,t){const r=e._controlledReadableByteStream;"readable"===r._state&&(je(e),Re(e),Ye(e),Fr(r,t))}function Ge(e,t){const r=e._queue.shift();e._queueTotalSize-=r.byteLength,$e(e);const o=new Uint8Array(r.buffer,r.byteOffset,r.byteLength);t._chunkSteps(o)}function Xe(e){if(null===e._byobRequest&&e._pendingPullIntos.length>0){const t=e._pendingPullIntos.peek(),r=new Uint8Array(t.buffer,t.byteOffset+t.bytesFilled,t.byteLength-t.bytesFilled),o=Object.create(qe.prototype);!function(e,t,r){e._associatedReadableByteStreamController=t,e._view=r}(o,e,r),e._byobRequest=o}return e._byobRequest}function Je(e){const t=e._controlledReadableByteStream._state;return"errored"===t?null:"closed"===t?0:e._strategyHWM-e._queueTotalSize}function Ke(e,t){const r=e._pendingPullIntos.peek();if("closed"===e._controlledReadableByteStream._state){if(0!==t)throw new TypeError("bytesWritten must be 0 when calling respond() on a closed stream")}else{if(0===t)throw new TypeError("bytesWritten must be greater than 0 when calling respond() on a readable stream");if(r.bytesFilled+t>r.byteLength)throw new RangeError("bytesWritten out of range")}r.buffer=se(r.buffer),Me(e,t)}function Qe(e,t){const r=e._pendingPullIntos.peek();if("closed"===e._controlledReadableByteStream._state){if(0!==t.byteLength)throw new TypeError("The view's length must be 0 when calling respondWithNewView() on a closed stream")}else if(0===t.byteLength)throw new TypeError("The view's length must be greater than 0 when calling respondWithNewView() on a readable stream");if(r.byteOffset+r.bytesFilled!==t.byteOffset)throw new RangeError("The region specified by view does not match byobRequest");if(r.bufferByteLength!==t.buffer.byteLength)throw new RangeError("The buffer of view has different capacity than byobRequest");if(r.bytesFilled+t.byteLength>r.byteLength)throw new RangeError("The region specified by view is larger than byobRequest");const o=t.byteLength;r.buffer=se(t.buffer),Me(e,o)}function Ze(e,t,r,o,n,i,a){t._controlledReadableByteStream=e,t._pullAgain=!1,t._pulling=!1,t._byobRequest=null,t._queue=t._queueTotalSize=void 0,Re(t),t._closeRequested=!1,t._started=!1,t._strategyHWM=i,t._pullAlgorithm=o,t._cancelAlgorithm=n,t._autoAllocateChunkSize=a,t._pendingPullIntos=new g,e._readableStreamController=t,b(c(r()),()=>(t._started=!0,Oe(t),null),e=>(He(t,e),null))}function et(e){return new TypeError(`ReadableStreamBYOBRequest.prototype.${e} can only be used on a ReadableStreamBYOBRequest`)}function tt(e){return new TypeError(`ReadableByteStreamController.prototype.${e} can only be used on a ReadableByteStreamController`)}function rt(e,t){if("byob"!=(e=`${e}`))throw new TypeError(`${t} '${e}' is not a valid enumeration value for ReadableStreamReaderMode`);return e}function ot(e){return new st(e)}function nt(e,t){e._reader._readIntoRequests.push(t)}function it(e){return e._reader._readIntoRequests.length}function at(e){const t=e._reader;return void 0!==t&&!!lt(t)}Object.defineProperties(Ee.prototype,{close:{enumerable:!0},enqueue:{enumerable:!0},error:{enumerable:!0},byobRequest:{enumerable:!0},desiredSize:{enumerable:!0}}),o(Ee.prototype.close,"close"),o(Ee.prototype.enqueue,"enqueue"),o(Ee.prototype.error,"error"),"symbol"==typeof Symbol.toStringTag&&Object.defineProperty(Ee.prototype,Symbol.toStringTag,{value:"ReadableByteStreamController",configurable:!0});class st{constructor(e){if(x(e,1,"ReadableStreamBYOBReader"),V(e,"First parameter"),Wr(e))throw new TypeError("This stream has already been locked for exclusive reading by another reader");if(!Pe(e._readableStreamController))throw new TypeError("Cannot construct a ReadableStreamBYOBReader for a stream not constructed with a byte source");P(this,e),this._readIntoRequests=new g}get closed(){return lt(this)?this._closedPromise:d(dt("closed"))}cancel(e=void 0){return lt(this)?void 0===this._ownerReadableStream?d(j("cancel")):C(this,e):d(dt("cancel"))}read(e,t={}){if(!lt(this))return d(dt("read"));if(!ArrayBuffer.isView(e))return d(new TypeError("view must be an array buffer view"));if(0===e.byteLength)return d(new TypeError("view must have non-zero byteLength"));if(0===e.buffer.byteLength)return d(new TypeError("view's buffer must have non-zero byteLength"));if(le(e.buffer))return d(new TypeError("view's buffer has been detached"));let r;try{r=function(e,t){var r;return I(e,t),{min:Y(null!==(r=null==e?void 0:e.min)&&void 0!==r?r:1,`${t} has member 'min' that`)}}(t,"options")}catch(e){return d(e)}const o=r.min;if(0===o)return d(new TypeError("options.min must be greater than 0"));if(function(e){return Te(e.constructor)}(e)){if(o>e.byteLength)return d(new RangeError("options.min must be less than or equal to view's byteLength"))}else if(o>e.length)return d(new RangeError("options.min must be less than or equal to view's length"));if(void 0===this._ownerReadableStream)return d(j("read from"));let n,i;const a=u((e,t)=>{n=e,i=t});return ut(this,e,o,{_chunkSteps:e=>n({value:e,done:!1}),_closeSteps:e=>n({value:e,done:!0}),_errorSteps:e=>i(e)}),a}releaseLock(){if(!lt(this))throw dt("releaseLock");void 0!==this._ownerReadableStream&&function(e){O(e),ct(e,new TypeError("Reader was released"))}(this)}}function lt(e){return!!t(e)&&!!Object.prototype.hasOwnProperty.call(e,"_readIntoRequests")&&e instanceof st}function ut(e,t,r,o){const n=e._ownerReadableStream;n._disturbed=!0,"errored"===n._state?o._errorSteps(n._storedError):function(e,t,r,o){const n=e._controlledReadableByteStream,i=t.constructor,a=function(e){return Te(e)?1:e.BYTES_PER_ELEMENT}(i),{byteOffset:s,byteLength:l}=t,u=r*a;let c;try{c=se(t.buffer)}catch(e){return void o._errorSteps(e)}const d={buffer:c,bufferByteLength:c.byteLength,byteOffset:s,byteLength:l,bytesFilled:0,minimumFill:u,elementSize:a,viewConstructor:i,readerType:"byob"};if(e._pendingPullIntos.length>0)return e._pendingPullIntos.push(d),void nt(n,o);if("closed"!==n._state){if(e._queueTotalSize>0){if(Ie(e,d)){const t=We(d);return $e(e),void o._chunkSteps(t)}if(e._closeRequested){const t=new TypeError("Insufficient bytes to fill elements in the given buffer");return He(e,t),void o._errorSteps(t)}}e._pendingPullIntos.push(d),nt(n,o),Oe(e)}else{const e=new i(d.buffer,d.byteOffset,0);o._closeSteps(e)}}(n._readableStreamController,t,r,o)}function ct(e,t){const r=e._readIntoRequests;e._readIntoRequests=new g,r.forEach(e=>{e._errorSteps(t)})}function dt(e){return new TypeError(`ReadableStreamBYOBReader.prototype.${e} can only be used on a ReadableStreamBYOBReader`)}function ft(e,t){const{highWaterMark:r}=e;if(void 0===r)return t;if(ve(r)||r<0)throw new RangeError("Invalid highWaterMark");return r}function bt(e){const{size:t}=e;return t||(()=>1)}function ht(e,t){I(e,t);const r=null==e?void 0:e.highWaterMark,o=null==e?void 0:e.size;return{highWaterMark:void 0===r?void 0:M(r),size:void 0===o?void 0:_t(o,`${t} has member 'size' that`)}}function _t(e,t){return L(e,t),t=>M(e(t))}function pt(e,t,r){return L(e,r),r=>w(e,t,[r])}function mt(e,t,r){return L(e,r),()=>w(e,t,[])}function yt(e,t,r){return L(e,r),r=>v(e,t,[r])}function vt(e,t,r){return L(e,r),(r,o)=>w(e,t,[r,o])}function wt(e,t){if(!Rt(e))throw new TypeError(`${t} is not a WritableStream.`)}Object.defineProperties(st.prototype,{cancel:{enumerable:!0},read:{enumerable:!0},releaseLock:{enumerable:!0},closed:{enumerable:!0}}),o(st.prototype.cancel,"cancel"),o(st.prototype.read,"read"),o(st.prototype.releaseLock,"releaseLock"),"symbol"==typeof Symbol.toStringTag&&Object.defineProperty(st.prototype,Symbol.toStringTag,{value:"ReadableStreamBYOBReader",configurable:!0});class gt{constructor(e={},t={}){void 0===e?e=null:$(e,"First parameter");const r=ht(t,"Second parameter"),o=function(e,t){I(e,t);const r=null==e?void 0:e.abort,o=null==e?void 0:e.close,n=null==e?void 0:e.start,i=null==e?void 0:e.type,a=null==e?void 0:e.write;return{abort:void 0===r?void 0:pt(r,e,`${t} has member 'abort' that`),close:void 0===o?void 0:mt(o,e,`${t} has member 'close' that`),start:void 0===n?void 0:yt(n,e,`${t} has member 'start' that`),write:void 0===a?void 0:vt(a,e,`${t} has member 'write' that`),type:i}}(e,"First parameter");if(function(e){e._state="writable",e._storedError=void 0,e._writer=void 0,e._writableStreamController=void 0,e._writeRequests=new g,e._inFlightWriteRequest=void 0,e._closeRequest=void 0,e._inFlightCloseRequest=void 0,e._pendingAbortRequest=void 0,e._backpressure=!1}(this),void 0!==o.type)throw new RangeError("Invalid type is specified");const n=bt(r);!function(e,t,r,o){const n=Object.create(xt.prototype);let i,a,s,l;i=void 0!==t.start?()=>t.start(n):()=>{},a=void 0!==t.write?e=>t.write(e,n):()=>c(void 0),s=void 0!==t.close?()=>t.close():()=>c(void 0),l=void 0!==t.abort?e=>t.abort(e):()=>c(void 0),function(e,t,r,o,n,i,a,s){t._controlledWritableStream=e,e._writableStreamController=t,t._queue=void 0,t._queueTotalSize=void 0,Re(t),t._abortReason=void 0,t._abortController=function(){if("function"==typeof AbortController)return new AbortController}(),t._started=!1,t._strategySizeAlgorithm=s,t._strategyHWM=a,t._writeAlgorithm=o,t._closeAlgorithm=n,t._abortAlgorithm=i;const l=Ut(t);kt(e,l),b(c(r()),()=>(t._started=!0,Yt(t),null),r=>(t._started=!0,Pt(e,r),null))}(e,n,i,a,s,l,r,o)}(this,o,ft(r,1),n)}get locked(){if(!Rt(this))throw Gt("locked");return Tt(this)}abort(e=void 0){return Rt(this)?Tt(this)?d(new TypeError("Cannot abort a stream that already has a writer")):qt(this,e):d(Gt("abort"))}close(){return Rt(this)?Tt(this)?d(new TypeError("Cannot close a stream that already has a writer")):jt(this)?d(new TypeError("Cannot close an already-closing stream")):Et(this):d(Gt("close"))}getWriter(){if(!Rt(this))throw Gt("getWriter");return St(this)}}function St(e){return new Wt(e)}function Rt(e){return!!t(e)&&!!Object.prototype.hasOwnProperty.call(e,"_writableStreamController")&&e instanceof gt}function Tt(e){return void 0!==e._writer}function qt(e,t){var r;if("closed"===e._state||"errored"===e._state)return c(void 0);e._writableStreamController._abortReason=t,null===(r=e._writableStreamController._abortController)||void 0===r||r.abort(t);const o=e._state;if("closed"===o||"errored"===o)return c(void 0);if(void 0!==e._pendingAbortRequest)return e._pendingAbortRequest._promise;let n=!1;"erroring"===o&&(n=!0,t=void 0);const i=u((r,o)=>{e._pendingAbortRequest={_promise:void 0,_resolve:r,_reject:o,_reason:t,_wasAlreadyErroring:n}});return e._pendingAbortRequest._promise=i,n||Ct(e,t),i}function Et(e){const t=e._state;if("closed"===t||"errored"===t)return d(new TypeError(`The stream (in ${t} state) is not in the writable state and cannot be closed`));const r=u((t,r)=>{const o={_resolve:t,_reject:r};e._closeRequest=o}),o=e._writer;var n;return void 0!==o&&e._backpressure&&"writable"===t&&ar(o),Se(n=e._writableStreamController,$t,0),Yt(n),r}function Pt(e,t){"writable"!==e._state?Ot(e):Ct(e,t)}function Ct(e,t){const r=e._writableStreamController;e._state="erroring",e._storedError=t;const o=e._writer;void 0!==o&&Ft(o,t),!function(e){return void 0!==e._inFlightWriteRequest||void 0!==e._inFlightCloseRequest}(e)&&r._started&&Ot(e)}function Ot(e){e._state="errored",e._writableStreamController[R]();const t=e._storedError;if(e._writeRequests.forEach(e=>{e._reject(t)}),e._writeRequests=new g,void 0===e._pendingAbortRequest)return void At(e);const r=e._pendingAbortRequest;if(e._pendingAbortRequest=void 0,r._wasAlreadyErroring)return r._reject(t),void At(e);b(e._writableStreamController[S](r._reason),()=>(r._resolve(),At(e),null),t=>(r._reject(t),At(e),null))}function jt(e){return void 0!==e._closeRequest||void 0!==e._inFlightCloseRequest}function At(e){void 0!==e._closeRequest&&(e._closeRequest._reject(e._storedError),e._closeRequest=void 0);const t=e._writer;void 0!==t&&er(t,e._storedError)}function kt(e,t){const r=e._writer;void 0!==r&&t!==e._backpressure&&(t?function(e){rr(e)}(r):ar(r)),e._backpressure=t}Object.defineProperties(gt.prototype,{abort:{enumerable:!0},close:{enumerable:!0},getWriter:{enumerable:!0},locked:{enumerable:!0}}),o(gt.prototype.abort,"abort"),o(gt.prototype.close,"close"),o(gt.prototype.getWriter,"getWriter"),"symbol"==typeof Symbol.toStringTag&&Object.defineProperty(gt.prototype,Symbol.toStringTag,{value:"WritableStream",configurable:!0});class Wt{constructor(e){if(x(e,1,"WritableStreamDefaultWriter"),wt(e,"First parameter"),Tt(e))throw new TypeError("This stream has already been locked for exclusive writing by another writer");this._ownerWritableStream=e,e._writer=this;const t=e._state;if("writable"===t)!jt(e)&&e._backpressure?rr(this):nr(this),Qt(this);else if("erroring"===t)or(this,e._storedError),Qt(this);else if("closed"===t)nr(this),Qt(this),tr(this);else{const t=e._storedError;or(this,t),Zt(this,t)}}get closed(){return zt(this)?this._closedPromise:d(Jt("closed"))}get desiredSize(){if(!zt(this))throw Jt("desiredSize");if(void 0===this._ownerWritableStream)throw Kt("desiredSize");return function(e){const t=e._ownerWritableStream,r=t._state;return"errored"===r||"erroring"===r?null:"closed"===r?0:Nt(t._writableStreamController)}(this)}get ready(){return zt(this)?this._readyPromise:d(Jt("ready"))}abort(e=void 0){return zt(this)?void 0===this._ownerWritableStream?d(Kt("abort")):function(e,t){return qt(e._ownerWritableStream,t)}(this,e):d(Jt("abort"))}close(){if(!zt(this))return d(Jt("close"));const e=this._ownerWritableStream;return void 0===e?d(Kt("close")):jt(e)?d(new TypeError("Cannot close an already-closing stream")):Bt(this)}releaseLock(){if(!zt(this))throw Jt("releaseLock");void 0!==this._ownerWritableStream&&It(this)}write(e=void 0){return zt(this)?void 0===this._ownerWritableStream?d(Kt("write to")):Lt(this,e):d(Jt("write"))}}function zt(e){return!!t(e)&&!!Object.prototype.hasOwnProperty.call(e,"_ownerWritableStream")&&e instanceof Wt}function Bt(e){return Et(e._ownerWritableStream)}function Ft(e,t){"pending"===e._readyPromiseState?ir(e,t):function(e,t){or(e,t)}(e,t)}function It(e){const t=e._ownerWritableStream,r=new TypeError("Writer was released and can no longer be used to monitor the stream's closedness");Ft(e,r),function(e,t){"pending"===e._closedPromiseState?er(e,t):function(e,t){Zt(e,t)}(e,t)}(e,r),t._writer=void 0,e._ownerWritableStream=void 0}function Lt(e,t){const r=e._ownerWritableStream,o=r._writableStreamController,n=function(e,t){if(void 0===e._strategySizeAlgorithm)return 1;try{return e._strategySizeAlgorithm(t)}catch(t){return Vt(e,t),1}}(o,t);if(r!==e._ownerWritableStream)return d(Kt("write to"));const i=r._state;if("errored"===i)return d(r._storedError);if(jt(r)||"closed"===i)return d(new TypeError("The stream is closing or closed and cannot be written to"));if("erroring"===i)return d(r._storedError);const a=function(e){return u((t,r)=>{const o={_resolve:t,_reject:r};e._writeRequests.push(o)})}(r);return function(e,t,r){try{Se(e,t,r)}catch(t){return void Vt(e,t)}const o=e._controlledWritableStream;jt(o)||"writable"!==o._state||kt(o,Ut(e)),Yt(e)}(o,t,n),a}Object.defineProperties(Wt.prototype,{abort:{enumerable:!0},close:{enumerable:!0},releaseLock:{enumerable:!0},write:{enumerable:!0},closed:{enumerable:!0},desiredSize:{enumerable:!0},ready:{enumerable:!0}}),o(Wt.prototype.abort,"abort"),o(Wt.prototype.close,"close"),o(Wt.prototype.releaseLock,"releaseLock"),o(Wt.prototype.write,"write"),"symbol"==typeof Symbol.toStringTag&&Object.defineProperty(Wt.prototype,Symbol.toStringTag,{value:"WritableStreamDefaultWriter",configurable:!0});const $t={};class xt{constructor(){throw new TypeError("Illegal constructor")}get abortReason(){if(!Dt(this))throw Xt("abortReason");return this._abortReason}get signal(){if(!Dt(this))throw Xt("signal");if(void 0===this._abortController)throw new TypeError("WritableStreamDefaultController.prototype.signal is not supported");return this._abortController.signal}error(e=void 0){if(!Dt(this))throw Xt("error");"writable"===this._controlledWritableStream._state&&Ht(this,e)}[S](e){const t=this._abortAlgorithm(e);return Mt(this),t}[R](){Re(this)}}function Dt(e){return!!t(e)&&!!Object.prototype.hasOwnProperty.call(e,"_controlledWritableStream")&&e instanceof xt}function Mt(e){e._writeAlgorithm=void 0,e._closeAlgorithm=void 0,e._abortAlgorithm=void 0,e._strategySizeAlgorithm=void 0}function Nt(e){return e._strategyHWM-e._queueTotalSize}function Yt(e){const t=e._controlledWritableStream;if(!e._started)return;if(void 0!==t._inFlightWriteRequest)return;if("erroring"===t._state)return void Ot(t);if(0===e._queue.length)return;const r=e._queue.peek().value;r===$t?function(e){const t=e._controlledWritableStream;(function(e){e._inFlightCloseRequest=e._closeRequest,e._closeRequest=void 0})(t),ge(e);const r=e._closeAlgorithm();Mt(e),b(r,()=>(function(e){e._inFlightCloseRequest._resolve(void 0),e._inFlightCloseRequest=void 0,"erroring"===e._state&&(e._storedError=void 0,void 0!==e._pendingAbortRequest&&(e._pendingAbortRequest._resolve(),e._pendingAbortRequest=void 0)),e._state="closed";const t=e._writer;void 0!==t&&tr(t)}(t),null),e=>(function(e,t){e._inFlightCloseRequest._reject(t),e._inFlightCloseRequest=void 0,void 0!==e._pendingAbortRequest&&(e._pendingAbortRequest._reject(t),e._pendingAbortRequest=void 0),Pt(e,t)}(t,e),null))}(e):function(e,t){const r=e._controlledWritableStream;!function(e){e._inFlightWriteRequest=e._writeRequests.shift()}(r),b(e._writeAlgorithm(t),()=>{!function(e){e._inFlightWriteRequest._resolve(void 0),e._inFlightWriteRequest=void 0}(r);const t=r._state;if(ge(e),!jt(r)&&"writable"===t){const t=Ut(e);kt(r,t)}return Yt(e),null},t=>("writable"===r._state&&Mt(e),function(e,t){e._inFlightWriteRequest._reject(t),e._inFlightWriteRequest=void 0,Pt(e,t)}(r,t),null))}(e,r)}function Vt(e,t){"writable"===e._controlledWritableStream._state&&Ht(e,t)}function Ut(e){return Nt(e)<=0}function Ht(e,t){const r=e._controlledWritableStream;Mt(e),Ct(r,t)}function Gt(e){return new TypeError(`WritableStream.prototype.${e} can only be used on a WritableStream`)}function Xt(e){return new TypeError(`WritableStreamDefaultController.prototype.${e} can only be used on a WritableStreamDefaultController`)}function Jt(e){return new TypeError(`WritableStreamDefaultWriter.prototype.${e} can only be used on a WritableStreamDefaultWriter`)}function Kt(e){return new TypeError("Cannot "+e+" a stream using a released writer")}function Qt(e){e._closedPromise=u((t,r)=>{e._closedPromise_resolve=t,e._closedPromise_reject=r,e._closedPromiseState="pending"})}function Zt(e,t){Qt(e),er(e,t)}function er(e,t){void 0!==e._closedPromise_reject&&(m(e._closedPromise),e._closedPromise_reject(t),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0,e._closedPromiseState="rejected")}function tr(e){void 0!==e._closedPromise_resolve&&(e._closedPromise_resolve(void 0),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0,e._closedPromiseState="resolved")}function rr(e){e._readyPromise=u((t,r)=>{e._readyPromise_resolve=t,e._readyPromise_reject=r}),e._readyPromiseState="pending"}function or(e,t){rr(e),ir(e,t)}function nr(e){rr(e),ar(e)}function ir(e,t){void 0!==e._readyPromise_reject&&(m(e._readyPromise),e._readyPromise_reject(t),e._readyPromise_resolve=void 0,e._readyPromise_reject=void 0,e._readyPromiseState="rejected")}function ar(e){void 0!==e._readyPromise_resolve&&(e._readyPromise_resolve(void 0),e._readyPromise_resolve=void 0,e._readyPromise_reject=void 0,e._readyPromiseState="fulfilled")}Object.defineProperties(xt.prototype,{abortReason:{enumerable:!0},signal:{enumerable:!0},error:{enumerable:!0}}),"symbol"==typeof Symbol.toStringTag&&Object.defineProperty(xt.prototype,Symbol.toStringTag,{value:"WritableStreamDefaultController",configurable:!0});const sr="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof global?global:void 0,lr=function(){const e=null==sr?void 0:sr.DOMException;return function(e){if("function"!=typeof e&&"object"!=typeof e)return!1;if("DOMException"!==e.name)return!1;try{return new e,!0}catch(e){return!1}}(e)?e:void 0}()||function(){const e=function(e,t){this.message=e||"",this.name=t||"Error",Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)};return o(e,"DOMException"),e.prototype=Object.create(Error.prototype),Object.defineProperty(e.prototype,"constructor",{value:e,writable:!0,configurable:!0}),e}();function ur(t,r,o,n,i,a){const s=U(t),l=St(r);t._disturbed=!0;let p=!1,y=c(void 0);return u((v,w)=>{let g;if(void 0!==a){if(g=()=>{const e=void 0!==a.reason?a.reason:new lr("Aborted","AbortError"),o=[];n||o.push(()=>"writable"===r._state?qt(r,e):c(void 0)),i||o.push(()=>"readable"===t._state?zr(t,e):c(void 0)),P(()=>Promise.all(o.map(e=>e())),!0,e)},a.aborted)return void g();a.addEventListener("abort",g)}var S,R,T;if(E(t,s._closedPromise,e=>(n?C(!0,e):P(()=>qt(r,e),!0,e),null)),E(r,l._closedPromise,e=>(i?C(!0,e):P(()=>zr(t,e),!0,e),null)),S=t,R=s._closedPromise,T=()=>(o?C():P(()=>function(e){const t=e._ownerWritableStream,r=t._state;return jt(t)||"closed"===r?c(void 0):"errored"===r?d(t._storedError):Bt(e)}(l)),null),"closed"===S._state?T():h(R,T),jt(r)||"closed"===r._state){const e=new TypeError("the destination writable stream closed before all data could be piped to it");i?C(!0,e):P(()=>zr(t,e),!0,e)}function q(){const e=y;return f(y,()=>e!==y?q():void 0)}function E(e,t,r){"errored"===e._state?r(e._storedError):_(t,r)}function P(e,t,o){function n(){return b(e(),()=>j(t,o),e=>j(!0,e)),null}p||(p=!0,"writable"!==r._state||jt(r)?n():h(q(),n))}function C(e,t){p||(p=!0,"writable"!==r._state||jt(r)?j(e,t):h(q(),()=>j(e,t)))}function j(e,t){return It(l),O(s),void 0!==a&&a.removeEventListener("abort",g),e?w(t):v(void 0),null}m(u((t,r)=>{!function o(n){n?t():f(p?c(!0):f(l._readyPromise,()=>u((t,r)=>{Z(s,{_chunkSteps:r=>{y=f(Lt(l,r),void 0,e),t(!1)},_closeSteps:()=>t(!0),_errorSteps:r})})),o,r)}(!1)}))})}class cr{constructor(){throw new TypeError("Illegal constructor")}get desiredSize(){if(!dr(this))throw gr("desiredSize");return yr(this)}close(){if(!dr(this))throw gr("close");if(!vr(this))throw new TypeError("The stream is not in a state that permits close");_r(this)}enqueue(e=void 0){if(!dr(this))throw gr("enqueue");if(!vr(this))throw new TypeError("The stream is not in a state that permits enqueue");return pr(this,e)}error(e=void 0){if(!dr(this))throw gr("error");mr(this,e)}[T](e){Re(this);const t=this._cancelAlgorithm(e);return hr(this),t}[q](e){const t=this._controlledReadableStream;if(this._queue.length>0){const r=ge(this);this._closeRequested&&0===this._queue.length?(hr(this),Br(t)):fr(this),e._chunkSteps(r)}else H(t,e),fr(this)}[E](){}}function dr(e){return!!t(e)&&!!Object.prototype.hasOwnProperty.call(e,"_controlledReadableStream")&&e instanceof cr}function fr(e){br(e)&&(e._pulling?e._pullAgain=!0:(e._pulling=!0,b(e._pullAlgorithm(),()=>(e._pulling=!1,e._pullAgain&&(e._pullAgain=!1,fr(e)),null),t=>(mr(e,t),null))))}function br(e){const t=e._controlledReadableStream;return!!vr(e)&&!!e._started&&(!!(Wr(t)&&X(t)>0)||yr(e)>0)}function hr(e){e._pullAlgorithm=void 0,e._cancelAlgorithm=void 0,e._strategySizeAlgorithm=void 0}function _r(e){if(!vr(e))return;const t=e._controlledReadableStream;e._closeRequested=!0,0===e._queue.length&&(hr(e),Br(t))}function pr(e,t){if(!vr(e))return;const r=e._controlledReadableStream;if(Wr(r)&&X(r)>0)G(r,t,!1);else{let r;try{r=e._strategySizeAlgorithm(t)}catch(t){throw mr(e,t),t}try{Se(e,t,r)}catch(t){throw mr(e,t),t}}fr(e)}function mr(e,t){const r=e._controlledReadableStream;"readable"===r._state&&(Re(e),hr(e),Fr(r,t))}function yr(e){const t=e._controlledReadableStream._state;return"errored"===t?null:"closed"===t?0:e._strategyHWM-e._queueTotalSize}function vr(e){const t=e._controlledReadableStream._state;return!e._closeRequested&&"readable"===t}function wr(e,t,r,o,n,i,a){t._controlledReadableStream=e,t._queue=void 0,t._queueTotalSize=void 0,Re(t),t._started=!1,t._closeRequested=!1,t._pullAgain=!1,t._pulling=!1,t._strategySizeAlgorithm=a,t._strategyHWM=i,t._pullAlgorithm=o,t._cancelAlgorithm=n,e._readableStreamController=t,b(c(r()),()=>(t._started=!0,fr(t),null),e=>(mr(t,e),null))}function gr(e){return new TypeError(`ReadableStreamDefaultController.prototype.${e} can only be used on a ReadableStreamDefaultController`)}function Sr(r){return t(o=r)&&void 0!==o.getReader?function(r){let o;return o=Or(e,function(){let e;try{e=r.read()}catch(e){return d(e)}return p(e,e=>{if(!t(e))throw new TypeError("The promise returned by the reader.read() method must fulfill with an object");if(e.done)_r(o._readableStreamController);else{const t=e.value;pr(o._readableStreamController,t)}})},function(e){try{return c(r.cancel(e))}catch(e){return d(e)}},0),o}(r.getReader()):function(r){let o;const n=be(r,"async");return o=Or(e,function(){let e;try{e=he(n)}catch(e){return d(e)}return p(c(e),e=>{if(!t(e))throw new TypeError("The promise returned by the iterator.next() method must fulfill with an object");if(e.done)_r(o._readableStreamController);else{const t=e.value;pr(o._readableStreamController,t)}})},function(e){const r=n.iterator;let o;try{o=ce(r,"return")}catch(e){return d(e)}return void 0===o?c(void 0):p(w(o,r,[e]),e=>{if(!t(e))throw new TypeError("The promise returned by the iterator.return() method must fulfill with an object")})},0),o}(r);var o}function Rr(e,t,r){return L(e,r),r=>w(e,t,[r])}function Tr(e,t,r){return L(e,r),r=>w(e,t,[r])}function qr(e,t,r){return L(e,r),r=>v(e,t,[r])}function Er(e,t){if("bytes"!=(e=`${e}`))throw new TypeError(`${t} '${e}' is not a valid enumeration value for ReadableStreamType`);return e}function Pr(e,t){I(e,t);const r=null==e?void 0:e.preventAbort,o=null==e?void 0:e.preventCancel,n=null==e?void 0:e.preventClose,i=null==e?void 0:e.signal;return void 0!==i&&function(e,t){if(!function(e){if("object"!=typeof e||null===e)return!1;try{return"boolean"==typeof e.aborted}catch(e){return!1}}(e))throw new TypeError(`${t} is not an AbortSignal.`)}(i,`${t} has member 'signal' that`),{preventAbort:Boolean(r),preventCancel:Boolean(o),preventClose:Boolean(n),signal:i}}Object.defineProperties(cr.prototype,{close:{enumerable:!0},enqueue:{enumerable:!0},error:{enumerable:!0},desiredSize:{enumerable:!0}}),o(cr.prototype.close,"close"),o(cr.prototype.enqueue,"enqueue"),o(cr.prototype.error,"error"),"symbol"==typeof Symbol.toStringTag&&Object.defineProperty(cr.prototype,Symbol.toStringTag,{value:"ReadableStreamDefaultController",configurable:!0});class Cr{constructor(e={},t={}){void 0===e?e=null:$(e,"First parameter");const r=ht(t,"Second parameter"),o=function(e,t){I(e,t);const r=e,o=null==r?void 0:r.autoAllocateChunkSize,n=null==r?void 0:r.cancel,i=null==r?void 0:r.pull,a=null==r?void 0:r.start,s=null==r?void 0:r.type;return{autoAllocateChunkSize:void 0===o?void 0:Y(o,`${t} has member 'autoAllocateChunkSize' that`),cancel:void 0===n?void 0:Rr(n,r,`${t} has member 'cancel' that`),pull:void 0===i?void 0:Tr(i,r,`${t} has member 'pull' that`),start:void 0===a?void 0:qr(a,r,`${t} has member 'start' that`),type:void 0===s?void 0:Er(s,`${t} has member 'type' that`)}}(e,"First parameter");if(Ar(this),"bytes"===o.type){if(void 0!==r.size)throw new RangeError("The strategy for a byte stream cannot have a size function");!function(e,t,r){const o=Object.create(Ee.prototype);let n,i,a;n=void 0!==t.start?()=>t.start(o):()=>{},i=void 0!==t.pull?()=>t.pull(o):()=>c(void 0),a=void 0!==t.cancel?e=>t.cancel(e):()=>c(void 0);const s=t.autoAllocateChunkSize;if(0===s)throw new TypeError("autoAllocateChunkSize must be greater than 0");Ze(e,o,n,i,a,r,s)}(this,o,ft(r,0))}else{const e=bt(r);!function(e,t,r,o){const n=Object.create(cr.prototype);let i,a,s;i=void 0!==t.start?()=>t.start(n):()=>{},a=void 0!==t.pull?()=>t.pull(n):()=>c(void 0),s=void 0!==t.cancel?e=>t.cancel(e):()=>c(void 0),wr(e,n,i,a,s,r,o)}(this,o,ft(r,1),e)}}get locked(){if(!kr(this))throw Ir("locked");return Wr(this)}cancel(e=void 0){return kr(this)?Wr(this)?d(new TypeError("Cannot cancel a stream that already has a reader")):zr(this,e):d(Ir("cancel"))}getReader(e=void 0){if(!kr(this))throw Ir("getReader");return void 0===function(e,t){I(e,t);const r=null==e?void 0:e.mode;return{mode:void 0===r?void 0:rt(r,`${t} has member 'mode' that`)}}(e,"First parameter").mode?U(this):ot(this)}pipeThrough(e,t={}){if(!kr(this))throw Ir("pipeThrough");x(e,1,"pipeThrough");const r=function(e,t){I(e,t);const r=null==e?void 0:e.readable;D(r,"readable","ReadableWritablePair"),V(r,`${t} has member 'readable' that`);const o=null==e?void 0:e.writable;return D(o,"writable","ReadableWritablePair"),wt(o,`${t} has member 'writable' that`),{readable:r,writable:o}}(e,"First parameter"),o=Pr(t,"Second parameter");if(Wr(this))throw new TypeError("ReadableStream.prototype.pipeThrough cannot be used on a locked ReadableStream");if(Tt(r.writable))throw new TypeError("ReadableStream.prototype.pipeThrough cannot be used on a locked WritableStream");return m(ur(this,r.writable,o.preventClose,o.preventAbort,o.preventCancel,o.signal)),r.readable}pipeTo(e,t={}){if(!kr(this))return d(Ir("pipeTo"));if(void 0===e)return d("Parameter 1 is required in 'pipeTo'.");if(!Rt(e))return d(new TypeError("ReadableStream.prototype.pipeTo's first argument must be a WritableStream"));let r;try{r=Pr(t,"Second parameter")}catch(e){return d(e)}return Wr(this)?d(new TypeError("ReadableStream.prototype.pipeTo cannot be used on a locked ReadableStream")):Tt(e)?d(new TypeError("ReadableStream.prototype.pipeTo cannot be used on a locked WritableStream")):ur(this,e,r.preventClose,r.preventAbort,r.preventCancel,r.signal)}tee(){if(!kr(this))throw Ir("tee");return ie(function(e){return Pe(e._readableStreamController)?function(e){let t,r,o,n,i,a=U(e),s=!1,l=!1,d=!1,f=!1,b=!1;const h=u(e=>{i=e});function p(e){_(e._closedPromise,t=>(e!==a||(He(o._readableStreamController,t),He(n._readableStreamController,t),f&&b||i(void 0)),null))}function m(){lt(a)&&(O(a),a=U(e),p(a)),Z(a,{_chunkSteps:t=>{y(()=>{l=!1,d=!1;const r=t;let a=t;if(!f&&!b)try{a=we(t)}catch(t){return He(o._readableStreamController,t),He(n._readableStreamController,t),void i(zr(e,t))}f||Ue(o._readableStreamController,r),b||Ue(n._readableStreamController,a),s=!1,l?w():d&&g()})},_closeSteps:()=>{s=!1,f||Ve(o._readableStreamController),b||Ve(n._readableStreamController),o._readableStreamController._pendingPullIntos.length>0&&Ke(o._readableStreamController,0),n._readableStreamController._pendingPullIntos.length>0&&Ke(n._readableStreamController,0),f&&b||i(void 0)},_errorSteps:()=>{s=!1}})}function v(t,r){Q(a)&&(O(a),a=ot(e),p(a));const u=r?n:o,c=r?o:n;ut(a,t,1,{_chunkSteps:t=>{y(()=>{l=!1,d=!1;const o=r?b:f;if(r?f:b)o||Qe(u._readableStreamController,t);else{let r;try{r=we(t)}catch(t){return He(u._readableStreamController,t),He(c._readableStreamController,t),void i(zr(e,t))}o||Qe(u._readableStreamController,t),Ue(c._readableStreamController,r)}s=!1,l?w():d&&g()})},_closeSteps:e=>{s=!1;const t=r?b:f,o=r?f:b;t||Ve(u._readableStreamController),o||Ve(c._readableStreamController),void 0!==e&&(t||Qe(u._readableStreamController,e),!o&&c._readableStreamController._pendingPullIntos.length>0&&Ke(c._readableStreamController,0)),t&&o||i(void 0)},_errorSteps:()=>{s=!1}})}function w(){if(s)return l=!0,c(void 0);s=!0;const e=Xe(o._readableStreamController);return null===e?m():v(e._view,!1),c(void 0)}function g(){if(s)return d=!0,c(void 0);s=!0;const e=Xe(n._readableStreamController);return null===e?m():v(e._view,!0),c(void 0)}function S(){}return o=jr(S,w,function(o){if(f=!0,t=o,b){const o=ie([t,r]),n=zr(e,o);i(n)}return h}),n=jr(S,g,function(o){if(b=!0,r=o,f){const o=ie([t,r]),n=zr(e,o);i(n)}return h}),p(a),[o,n]}(e):function(e){const t=U(e);let r,o,n,i,a,s=!1,l=!1,d=!1,f=!1;const b=u(e=>{a=e});function h(){return s?(l=!0,c(void 0)):(s=!0,Z(t,{_chunkSteps:e=>{y(()=>{l=!1;const t=e,r=e;d||pr(n._readableStreamController,t),f||pr(i._readableStreamController,r),s=!1,l&&h()})},_closeSteps:()=>{s=!1,d||_r(n._readableStreamController),f||_r(i._readableStreamController),d&&f||a(void 0)},_errorSteps:()=>{s=!1}}),c(void 0))}function p(){}return n=Or(p,h,function(t){if(d=!0,r=t,f){const t=ie([r,o]),n=zr(e,t);a(n)}return b}),i=Or(p,h,function(t){if(f=!0,o=t,d){const t=ie([r,o]),n=zr(e,t);a(n)}return b}),_(t._closedPromise,e=>(mr(n._readableStreamController,e),mr(i._readableStreamController,e),d&&f||a(void 0),null)),[n,i]}(e)}(this))}values(e=void 0){if(!kr(this))throw Ir("values");return function(e,t){const r=U(e),o=new _e(r,t),n=Object.create(pe);return n._asyncIteratorImpl=o,n}(this,function(e){I(e,"First parameter");const t=null==e?void 0:e.preventCancel;return{preventCancel:Boolean(t)}}(e).preventCancel)}[fe](e){return this.values(e)}static from(e){return Sr(e)}}function Or(e,t,r,o=1,n=()=>1){const i=Object.create(Cr.prototype);return Ar(i),wr(i,Object.create(cr.prototype),e,t,r,o,n),i}function jr(e,t,r){const o=Object.create(Cr.prototype);return Ar(o),Ze(o,Object.create(Ee.prototype),e,t,r,0,void 0),o}function Ar(e){e._state="readable",e._reader=void 0,e._storedError=void 0,e._disturbed=!1}function kr(e){return!!t(e)&&!!Object.prototype.hasOwnProperty.call(e,"_readableStreamController")&&e instanceof Cr}function Wr(e){return void 0!==e._reader}function zr(t,r){if(t._disturbed=!0,"closed"===t._state)return c(void 0);if("errored"===t._state)return d(t._storedError);Br(t);const o=t._reader;if(void 0!==o&<(o)){const e=o._readIntoRequests;o._readIntoRequests=new g,e.forEach(e=>{e._closeSteps(void 0)})}return p(t._readableStreamController[T](r),e)}function Br(e){e._state="closed";const t=e._reader;if(void 0!==t&&(z(t),Q(t))){const e=t._readRequests;t._readRequests=new g,e.forEach(e=>{e._closeSteps()})}}function Fr(e,t){e._state="errored",e._storedError=t;const r=e._reader;void 0!==r&&(W(r,t),Q(r)?ee(r,t):ct(r,t))}function Ir(e){return new TypeError(`ReadableStream.prototype.${e} can only be used on a ReadableStream`)}function Lr(e,t){(function(e){e._transformAlgorithm=void 0,e._flushAlgorithm=void 0,e._cancelAlgorithm=void 0})(e._transformStreamController),Vt(e._writable._writableStreamController,t),function(e){e._backpressure&&$r(e,!1)}(e)}function $r(e,t){void 0!==e._backpressureChangePromise&&e._backpressureChangePromise_resolve(),e._backpressureChangePromise=u(t=>{e._backpressureChangePromise_resolve=t}),e._backpressure=t}Object.defineProperties(Cr,{from:{enumerable:!0}}),Object.defineProperties(Cr.prototype,{cancel:{enumerable:!0},getReader:{enumerable:!0},pipeThrough:{enumerable:!0},pipeTo:{enumerable:!0},tee:{enumerable:!0},values:{enumerable:!0},locked:{enumerable:!0}}),o(Cr.from,"from"),o(Cr.prototype.cancel,"cancel"),o(Cr.prototype.getReader,"getReader"),o(Cr.prototype.pipeThrough,"pipeThrough"),o(Cr.prototype.pipeTo,"pipeTo"),o(Cr.prototype.tee,"tee"),o(Cr.prototype.values,"values"),"symbol"==typeof Symbol.toStringTag&&Object.defineProperty(Cr.prototype,Symbol.toStringTag,{value:"ReadableStream",configurable:!0}),Object.defineProperty(Cr.prototype,fe,{value:Cr.prototype.values,writable:!0,configurable:!0}),o(e=>e.byteLength,"size"),o(()=>1,"size");class xr{constructor(){throw new TypeError("Illegal constructor")}get desiredSize(){if(!Dr(this))throw Mr("desiredSize");return yr(this._controlledTransformStream._readable._readableStreamController)}enqueue(e=void 0){if(!Dr(this))throw Mr("enqueue");!function(e,t){const r=e._controlledTransformStream,o=r._readable._readableStreamController;if(!vr(o))throw new TypeError("Readable side is not in a state that permits enqueue");try{pr(o,t)}catch(e){throw Lr(r,e),r._readable._storedError}const n=function(e){return!br(e)}(o);n!==r._backpressure&&$r(r,!0)}(this,e)}error(e=void 0){if(!Dr(this))throw Mr("error");var t;t=e,function(e,t){mr(e._readable._readableStreamController,t),Lr(e,t)}(this._controlledTransformStream,t)}terminate(){if(!Dr(this))throw Mr("terminate");!function(e){const t=e._controlledTransformStream;_r(t._readable._readableStreamController),Lr(t,new TypeError("TransformStream terminated"))}(this)}}function Dr(e){return!!t(e)&&!!Object.prototype.hasOwnProperty.call(e,"_controlledTransformStream")&&e instanceof xr}function Mr(e){return new TypeError(`TransformStreamDefaultController.prototype.${e} can only be used on a TransformStreamDefaultController`)}Object.defineProperties(xr.prototype,{enqueue:{enumerable:!0},error:{enumerable:!0},terminate:{enumerable:!0},desiredSize:{enumerable:!0}}),o(xr.prototype.enqueue,"enqueue"),o(xr.prototype.error,"error"),o(xr.prototype.terminate,"terminate"),"symbol"==typeof Symbol.toStringTag&&Object.defineProperty(xr.prototype,Symbol.toStringTag,{value:"TransformStreamDefaultController",configurable:!0}),exports.ReadableByteStreamController=Ee,exports.ReadableStream=Cr,exports.ReadableStreamBYOBReader=st,exports.ReadableStreamBYOBRequest=qe,exports.ReadableStreamDefaultController=cr,exports.ReadableStreamDefaultReader=K,exports.TransformStreamDefaultController=xr,exports.WritableStream=gt,exports.WritableStreamDefaultController=xt,exports.WritableStreamDefaultWriter=Wt;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.12
|
|
3
|
+
*
|
|
4
|
+
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
|
+
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
|
+
*/
|
|
7
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./DJbKKxeeTEHHA1gR.cjs"),t=require("@sheetxl/sdk"),n=e.createSvgIcon(e.jsxRuntimeExports.jsx("path",{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20z"}),"ArrowBack"),s=e.createSvgIcon(e.jsxRuntimeExports.jsx("path",{d:"m20 12-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8z"}),"ArrowDownward"),o=e.createSvgIcon(e.jsxRuntimeExports.jsx("path",{d:"m12 4-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z"}),"ArrowForward"),i=e.createSvgIcon(e.jsxRuntimeExports.jsx("path",{d:"m4 12 1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8z"}),"ArrowUpward"),r=e.reactExports.memo(t=>{const{label:n,value:s,options:o,onSelect:i,tabIndex:r=0,...l}=t,[a,c]=e.reactExports.useState(()=>u(s,o));e.reactExports.useEffect(()=>{c(u(s,o))},[s,o]);const p=e.go(e=>{c(e.target.value),i?.(o[e.target.value])},[i,o]),x=e.reactExports.useMemo(()=>Object.keys(o).map(t=>e.jsxRuntimeExports.jsx(e.MenuItem,{value:t,children:t},t)),[o]);return e.jsxRuntimeExports.jsxs(e.FormControl,{sx:{minWidth:135},size:"small",children:[e.jsxRuntimeExports.jsx(e.InputLabel,{children:n}),e.jsxRuntimeExports.jsx(e.Select,{inputProps:{tabIndex:r},value:a,label:n,onChange:p,sx:{backgroundImage:`linear-gradient(${e.alpha("#fff",e.hx(5))}, ${e.alpha("#fff",e.hx(5))})`},...l,children:x})]})}),l={Workbook:"workbook",Sheet:"sheet"},a={enter:140,exit:140},c={Formulas:t.ICell.Content.Formulas,Values:t.ICell.Content.Values,Notes:t.ICell.Content.Notes,Comments:t.ICell.Content.Comments},p={...c};delete p.Values;const x={"By Rows":!0,"By Columns":!1},u=(e,t)=>{const n=Object.keys(t);for(let s=0;s<n.length;s++){const o=n[s];if(t[o]===e)return o}},d=e.reactExports.memo(u=>{const{replace:d=!1,findText:f,replaceText:m,findOptions:g,replaceOptions:j,title:h,onHide:E,onFindOrReplace:R,...C}=u,O=e.reactExports.useRef(null),y=e.reactExports.useRef(null),I=e.reactExports.useRef(null),b=e.reactExports.useRef(null),v=e.reactExports.useRef(null),k=e.reactExports.useRef(null),T=(e,t)=>{t&&(t.start(e,{center:!1}),setTimeout(()=>t.stop(e),180))},[S,w]=e.reactExports.useState(!1),[F,B]=e.reactExports.useState(!1),[L,D]=e.reactExports.useState(d),[P,A]=e.reactExports.useState(!1),[M,K]=e.reactExports.useState(!1),[V,z]=e.reactExports.useState({findText:null,replaceText:null,replace:d,replaceOptions:{},findOptions:{matchCase:!1,matchEntireCell:!1,useRegex:!1,orientation:t.IRange.Orientation.Row,fields:[t.ICell.Content.Formulas]},scope:l.Sheet}),H=e.go(async(e,n,s,o)=>{if(!R)return;const i={...V};i.replaceOptions={...i.replaceOptions},i.findOptions={...i.findOptions},i.replaceOptions.maxCount=s?void 0:1,i.replace=n,n&&V.findOptions.fields?.[0]===t.ICell.Content.Values&&(i.findOptions.fields=[t.ICell.Content.Formulas]),i.findOptions.reverse=!e;const r=await R({autoFocus:o,...i});A(0===r)},[V,R]);e.reactExports.useEffect(()=>{A(!1)},[V,F,L]);const $=e.go((t,n)=>{if(t.keyCode===e.io.Enter){if(!V.findText)return;let e=!0,s=!1;t.shiftKey&&(e=!1),n?(t.ctrlKey&&t.altKey&&(s=!0),T(t,s?k.current:v.current)):T(t,e?b.current:I.current),H(e,n,s,!1)}},[V]),N=e.reactExports.useRef(null);e.reactExports.useLayoutEffect(()=>{z(e=>{const n={...e};n.findText=f&&f.length>0?f:e.findText??"",w(!0),void 0!==m&&(n.replaceText=m),g&&(n.findOptions={...n.findOptions,...g}),n.replaceText||(n.replaceText=""),n.replaceOptions&&(n.replaceOptions={...n.replaceOptions}),j&&(n.replaceOptions={...n.replaceOptions,...j}),V.findOptions.fields?.[0]||(V.findOptions.fields=[t.ICell.Content.Formulas]);const s=!(!j&&void 0===m);return s&&D(s),n}),M||N.current?.focus()},[f,m,g,j]),e.reactExports.useEffect(()=>{L?(V.findOptions.fields[0],t.ICell.Content.Values):w(!0)},[L]),e.reactExports.useEffect(()=>{if(S&&O.current&&V.findText===O.current.value)return O.current===document.activeElement||O.current.contains(document.activeElement)?(O.current?.select(),void w(!1)):void O.current.addEventListener("focus",()=>{O.current?.select(),w(!1)},{once:!0})},[S,V]);const[W,{width:q}]=e._I();return e.jsxRuntimeExports.jsx(e.Vg,{ref:N,title:h??(L?"Find & Replace":"Find"),initialPosition:{y:"35"},autoFocusSel:".input",onHide:E,onFocus:()=>K(!0),onBlur:()=>{K(!1),A(!1)},PaperProps:{elevation:M?3:1},...C,children:e.jsxRuntimeExports.jsxs(e.DialogContent,{dividers:!0,ref:W,sx:{display:"flex",flexDirection:"column",paddingLeft:e=>e.spacing(1.5),paddingRight:e=>e.spacing(1.5)},onKeyDown:e=>{if("h"===e.key&&e.ctrlKey)D(!0),O.current?.contains(document.activeElement)&&y.current?.focus();else if("f"===e.key&&e.ctrlKey)O.current?.focus();else if("c"===e.key&&e.altKey)z(e=>{const t={...e};return t.findOptions.matchCase=!e.findOptions.matchCase,t});else if("e"===e.key&&e.altKey)z(e=>{const t={...e};return t.findOptions.matchEntireCell=!e.findOptions.matchEntireCell,t});else{if("r"!==e.key||!e.altKey)return;z(e=>{const t={...e};return t.findOptions.useRegex=!e.findOptions.useRegex,t})}e.preventDefault()},children:[e.jsxRuntimeExports.jsxs(e.Box,{sx:{display:"flex",flexDirection:"row",gap:e=>e.spacing(1)},children:[e.jsxRuntimeExports.jsxs(e.Box,{sx:{display:"flex",flexDirection:"row",alignItems:"start",gap:e=>e.spacing(.25),paddingTop:"3px"},children:[e.jsxRuntimeExports.jsx(e.sm,{selected:F,onSelectToggle:e=>{B(e)},preventFocus:!0,label:"Toggle Additional Options",icon:e.kc(e.jsxRuntimeExports.jsx(e.zh,{}))}),e.jsxRuntimeExports.jsx(e.sm,{selected:L,onSelectToggle:e=>{D(e)},preventFocus:!0,label:"Toggle Replace",icon:e.kc(e.jsxRuntimeExports.jsx(e.Ph,{})),shortcut:{key:L?"F":"H",modifiers:[e.ro.Ctrl]}})]}),e.jsxRuntimeExports.jsxs(e.Box,{sx:{display:"flex",flexDirection:"column",maxWidth:"100%",boxSizing:"border-box"},children:[e.jsxRuntimeExports.jsxs(e.Box,{sx:{display:"flex",flexDirection:"row",alignItems:"center"},children:[e.jsxRuntimeExports.jsx(e.TextField,{label:"Find",InputLabelProps:{shrink:!0},InputProps:{sx:{paddingRight:e=>e.spacing(1),minWidth:q>460?"20em":void 0,backgroundImage:`linear-gradient(${e.alpha("#fff",e.hx(5))}, ${e.alpha("#fff",e.hx(5))})`},inputProps:{draggable:!1,ref:O,className:"input",autoFocus:!0,spellCheck:!1,autoComplete:"off",sx:{paddingTop:e=>e.spacing(1.25),paddingBottom:e=>e.spacing(.75)}},endAdornment:e.jsxRuntimeExports.jsx(e.InputAdornment,{sx:{transform:"scale(0.75) translateX(16px)"},position:"end",children:e.jsxRuntimeExports.jsxs(e.Box,{sx:{display:"flex",alignItems:"center",flexDirection:"row",gap:"1px"},children:[e.jsxRuntimeExports.jsx(e.sm,{selected:V.findOptions.matchCase,onSelectToggle:e=>{z(t=>{const n={...t};return n.findOptions.matchCase=e,n})},label:"Match Case",shortcut:{key:"C",modifiers:[e.ro.Alt]},icon:e.kc(e.jsxRuntimeExports.jsx(e.Fh,{}))}),e.jsxRuntimeExports.jsx(e.sm,{selected:V.findOptions.matchEntireCell,onSelectToggle:e=>{z(t=>{const n={...t};return n.findOptions.matchEntireCell=e,n})},label:"Match Entire Cell",shortcut:{key:"E",modifiers:[e.ro.Alt]},icon:e.kc(e.jsxRuntimeExports.jsx(e.Nh,{}))}),e.jsxRuntimeExports.jsx(e.sm,{selected:V.findOptions.useRegex,onSelectToggle:e=>{z(t=>{const n={...t};return n.findOptions.useRegex=e,n})},label:"Use Regular Expression",shortcut:{key:"R",modifiers:[e.ro.Alt]},icon:e.kc(e.jsxRuntimeExports.jsx(e.Bh,{}))})]})})},sx:{flex:"1 1 100%",marginRight:e=>e.spacing(1),"& .MuiOutlinedInput-notchedOutline":{borderColor:e=>P?`${e.palette.error.main} !important`:void 0},"& .MuiInputLabel-outlined":{color:e=>P?`${e.palette.error.main} !important`:void 0}},value:V.findText??"",onChange:e=>{z(t=>{const n={...t};return n.findText=e.target.value,n})},onKeyDown:e=>$(e,!1),onContextMenu:e=>{e.stopPropagation()}}),e.jsxRuntimeExports.jsx(e.sm,{selected:V.findOptions.reverse,onSelectToggle:e=>{H(!1,!1)},touchRippleRef:I,label:"",shortcut:{key:"Enter",modifiers:[e.ro.Shift]},icon:e.kc(V.findOptions.orientation!==t.IRange.Orientation.Column?e.jsxRuntimeExports.jsx(n,{}):e.jsxRuntimeExports.jsx(i,{})),disabled:!V.findText}),e.jsxRuntimeExports.jsx(e.sm,{selected:!V.findOptions.reverse,onSelectToggle:e=>{H(!0,!1)},touchRippleRef:b,label:"Next Match",shortcut:{key:"Enter"},icon:e.kc(V.findOptions.orientation!==t.IRange.Orientation.Column?e.jsxRuntimeExports.jsx(o,{}):e.jsxRuntimeExports.jsx(s,{})),disabled:!V.findText})]}),e.jsxRuntimeExports.jsx(e.Collapse,{in:L,timeout:a,onExit:()=>{O.current?.focus()},children:e.jsxRuntimeExports.jsxs(e.Box,{sx:{display:"flex",flexDirection:"row",alignItems:"center",marginTop:e=>e.spacing(2)},children:[e.jsxRuntimeExports.jsx(e.TextField,{label:"Replace",InputLabelProps:{shrink:!0},InputProps:{sx:{paddingRight:e=>e.spacing(1),backgroundImage:`linear-gradient(${e.alpha("#fff",e.hx(5))}, ${e.alpha("#fff",e.hx(5))})`},inputProps:{ref:y,className:"input",spellCheck:!1,autoComplete:"off",sx:{paddingTop:e=>e.spacing(1.25),paddingBottom:e=>e.spacing(.75)}}},sx:{flex:"1 1 100%",marginRight:e=>e.spacing(1)},value:V.replaceText??"",onChange:e=>{z(t=>{const n={...t};return n.replaceText=e.target.value,n})},onKeyDown:e=>$(e,!0),onContextMenu:e=>{e.stopPropagation()}}),e.jsxRuntimeExports.jsx(e.sm,{onSelectToggle:e=>{H(!0,!0)},touchRippleRef:v,label:"Replace",shortcut:{key:"Enter"},icon:e.kc(e.jsxRuntimeExports.jsx(e.Vh,{})),disabled:!V.findText}),e.jsxRuntimeExports.jsx(e.sm,{onSelectToggle:e=>{H(!0,!0,!0)},touchRippleRef:k,label:"Replace All",shortcut:{key:"Enter",modifiers:[e.ro.Ctrl,e.ro.Alt]},icon:e.kc(e.jsxRuntimeExports.jsx(e.Hh,{})),disabled:!V.findText})]})})]})]}),e.jsxRuntimeExports.jsx(e.Collapse,{in:F,timeout:a,onExit:()=>{O.current?.focus()},children:e.jsxRuntimeExports.jsxs(e.Box,{sx:{minHeight:"10px",flex:"1 1 100%",display:"flex",flexDirection:"column",gap:e=>e.spacing(.5),marginTop:e=>e.spacing(1)},children:[e.jsxRuntimeExports.jsx(e.Mp,{orientation:"horizontal",sx:{marginBottom:e=>e.spacing(1.5)}}),e.jsxRuntimeExports.jsxs(e.Box,{sx:{display:"flex",flexDirection:q>=413?"row":"column",justifyContent:"space-evenly",alignItems:"center",rowGap:e=>e.spacing(2)},tabIndex:-1,children:[e.jsxRuntimeExports.jsx(r,{label:"Within",value:V.scope,options:l,onSelect:e=>{z(t=>{const n={...t};return n.scope=e,n})}}),e.jsxRuntimeExports.jsx(r,{label:"Search",value:V.findOptions.orientation!==t.IRange.Orientation.Column,options:x,onSelect:e=>{z(n=>{const s={...n};return s.findOptions.orientation=e?t.IRange.Orientation.Row:t.IRange.Orientation.Column,s})}}),e.jsxRuntimeExports.jsx(r,{label:"Look in",value:L&&V.findOptions.fields?.[0]===t.ICell.Content.Values?t.ICell.Content.Formulas:V.findOptions.fields?.[0],options:L?p:c,onSelect:e=>{z(t=>{const n={...t};return n.findOptions.fields=[e],n})}})]})]})})]})})});exports.FindReplaceWindow=d,exports.ScopeOptions=l,exports.default=d;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.12
|
|
3
|
+
*
|
|
4
|
+
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
|
+
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
|
+
*/
|
|
7
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./DJbKKxeeTEHHA1gR.cjs"),e=["Ok","Cancel"],o=t.reactExports.memo(o=>{const{initialHyperlink:n=null,initialDisplay:a=null,onUpdateHyperlink:s,context:r,onOption:l,onValidateOption:i,onDone:p,options:c=e,defaultOption:u=c?.[0],cancelOption:x="Cancel",sx:d,...g}=o,m=t.reactExports.useMemo(()=>null!==(n??r?.()?.getHyperlink()),[]),h=t.reactExports.useMemo(()=>{let t=null,e=null;n&&("string"==typeof n?e=n:t=n);const o=t??r?.()?.getHyperlink();return{address:e??o?.getAddress()??"",textToDisplay:o?.getDisplayText()??""}},[n,r]),[f,y]=t.reactExports.useState(h.address),[E,T]=t.reactExports.useState(()=>{const t=r?.().toTextUnformatted()??a;return t===h.address?"":t}),[k,j]=t.reactExports.useState(!1),C=t.reactExports.useCallback(t=>{T(t.target.value)},[]),b=t.reactExports.useCallback(async(t,e)=>null,[]),F=t.go(async t=>{const e=""===f?null:{address:f};t!==x&&s?.(e,E),l?.(t,t===x,t===u),p?.()},[f,E,s,p,l,u,x]),O=t.go(t=>{y(t.target.value),b(t.target.value,null)},[i]),P=t.go(async t=>{let e=await Promise.resolve(i?.(t));try{!1!==e&&(e=await b(f,t))}catch(t){}return e??!0},[i]);return t.jsxRuntimeExports.jsx(t.sb,{title:(m?"Edit":"Insert")+" Link",options:c,onDone:p,onOption:t=>F(t),onValidateOption:P,defaultOption:u,cancelOption:x,autoFocusSel:".autoFocus",sx:{width:"480px",...d},...g,children:t.jsxRuntimeExports.jsxs(t.Box,{sx:{paddingTop:t=>t.spacing(1),paddingBottom:t=>t.spacing(0),rowGap:t=>t.spacing(1),display:"flex",flexDirection:"column"},children:[t.jsxRuntimeExports.jsx(t.FormControl,{sx:{paddingTop:t=>t.spacing(1.5),minWidth:135,width:"100%"},size:"small",children:t.jsxRuntimeExports.jsx(t.TextField,{label:"Address",placeholder:"Enter a url or cell reference.",onFocus:t=>{k||t.target?.select(),j(!0)},sx:{"& .MuiFormHelperText-root":{marginTop:t=>t.spacing(.5)}},InputLabelProps:{shrink:!0},InputProps:{inputProps:{className:"autoFocus",spellCheck:!1,autoComplete:"off",sx:{paddingTop:t=>t.spacing(1.25),paddingBottom:t=>t.spacing(.75),backgroundImage:`linear-gradient(${t.alpha("#fff",t.hx(5))}, ${t.alpha("#fff",t.hx(5))})`}}},value:f,onChange:O,onContextMenu:t=>{t.stopPropagation()}})}),t.jsxRuntimeExports.jsx(t.FormControl,{sx:{paddingTop:t=>t.spacing(1.5),minWidth:135,width:"100%"},size:"small",children:t.jsxRuntimeExports.jsx(t.TextField,{label:"Display Text",placeholder:f?.startsWith("#")?f.substring(1):f,onFocus:()=>{j(!0)},sx:{"& .MuiFormHelperText-root":{marginTop:t=>t.spacing(.5)}},InputLabelProps:{shrink:!0},InputProps:{inputProps:{spellCheck:!1,autoComplete:"off",sx:{paddingTop:t=>t.spacing(1.25),paddingBottom:t=>t.spacing(.75),backgroundImage:`linear-gradient(${t.alpha("#fff",t.hx(5))}, ${t.alpha("#fff",t.hx(5))})`}}},value:E,onChange:C,onContextMenu:t=>{t.stopPropagation()}})})]})})});exports.HyperlinkDialog=o,exports.default=o;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.12
|
|
3
|
+
*
|
|
4
|
+
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
|
+
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
|
+
*/
|
|
7
|
+
"use strict";function t(t){return Array.isArray?Array.isArray(t):"[object Array]"===c(t)}function e(t){return"string"==typeof t}function n(t){return"number"==typeof t}function s(t){return!0===t||!1===t||function(t){return i(t)&&null!==t}(t)&&"[object Boolean]"==c(t)}function i(t){return"object"==typeof t}function r(t){return null!=t}function u(t){return!t.trim().length}function c(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":Object.prototype.toString.call(t)}Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=Object.prototype.hasOwnProperty;class h{constructor(t){this._keys=[],this._keyMap={};let e=0;t.forEach(t=>{let n=a(t);this._keys.push(n),this._keyMap[n.id]=n,e+=n.weight}),this._keys.forEach(t=>{t.weight/=e})}get(t){return this._keyMap[t]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function a(n){let s=null,i=null,r=null,u=1,c=null;if(e(n)||t(n))r=n,s=l(n),i=d(n);else{if(!o.call(n,"name"))throw new Error("Missing name property in key");const t=n.name;if(r=t,o.call(n,"weight")&&(u=n.weight,u<=0))throw new Error((t=>`Property 'weight' in key '${t}' must be a positive integer`)(t));s=l(t),i=d(t),c=n.getFn}return{path:s,id:i,weight:u,src:r,getFn:c}}function l(e){return t(e)?e:e.split(".")}function d(e){return t(e)?e.join("."):e}var g={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(i,u){let c=[],o=!1;const h=(i,u,a)=>{if(r(i))if(u[a]){const l=i[u[a]];if(!r(l))return;if(a===u.length-1&&(e(l)||n(l)||s(l)))c.push(function(t){return null==t?"":function(t){if("string"==typeof t)return t;let e=t+"";return"0"==e&&1/t==-1/0?"-0":e}(t)}(l));else if(t(l)){o=!0;for(let t=0,e=l.length;t<e;t+=1)h(l[t],u,a+1)}else u.length&&h(l,u,a+1)}else c.push(i)};return h(i,e(u)?u.split("."):u,0),o?c:c[0]},ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1};const f=/[^ ]+/g;class A{constructor({getFn:t=g.getFn,fieldNormWeight:e=g.fieldNormWeight}={}){this.norm=function(t=1,e=3){const n=new Map,s=Math.pow(10,e);return{get(e){const i=e.match(f).length;if(n.has(i))return n.get(i);const r=1/Math.pow(i,.5*t),u=parseFloat(Math.round(r*s)/s);return n.set(i,u),u},clear(){n.clear()}}}(e,3),this.getFn=t,this.isCreated=!1,this.setIndexRecords()}setSources(t=[]){this.docs=t}setIndexRecords(t=[]){this.records=t}setKeys(t=[]){this.keys=t,this._keysMap={},t.forEach((t,e)=>{this._keysMap[t.id]=e})}create(){!this.isCreated&&this.docs.length&&(this.isCreated=!0,e(this.docs[0])?this.docs.forEach((t,e)=>{this._addString(t,e)}):this.docs.forEach((t,e)=>{this._addObject(t,e)}),this.norm.clear())}add(t){const n=this.size();e(t)?this._addString(t,n):this._addObject(t,n)}removeAt(t){this.records.splice(t,1);for(let e=t,n=this.size();e<n;e+=1)this.records[e].i-=1}getValueForItemAtKeyId(t,e){return t[this._keysMap[e]]}size(){return this.records.length}_addString(t,e){if(!r(t)||u(t))return;let n={v:t,i:e,n:this.norm.get(t)};this.records.push(n)}_addObject(n,s){let i={i:s,$:{}};this.keys.forEach((s,c)=>{let o=s.getFn?s.getFn(n):this.getFn(n,s.path);if(r(o))if(t(o)){let n=[];const s=[{nestedArrIndex:-1,value:o}];for(;s.length;){const{nestedArrIndex:i,value:c}=s.pop();if(r(c))if(e(c)&&!u(c)){let t={v:c,i:i,n:this.norm.get(c)};n.push(t)}else t(c)&&c.forEach((t,e)=>{s.push({nestedArrIndex:e,value:t})})}i.$[c]=n}else if(e(o)&&!u(o)){let t={v:o,n:this.norm.get(o)};i.$[c]=t}}),this.records.push(i)}toJSON(){return{keys:this.keys,records:this.records}}}function p(t,e,{getFn:n=g.getFn,fieldNormWeight:s=g.fieldNormWeight}={}){const i=new A({getFn:n,fieldNormWeight:s});return i.setKeys(t.map(a)),i.setSources(e),i.create(),i}function C(t,{errors:e=0,currentLocation:n=0,expectedLocation:s=0,distance:i=g.distance,ignoreLocation:r=g.ignoreLocation}={}){const u=e/t.length;if(r)return u;const c=Math.abs(s-n);return i?u+c/i:c?1:u}const m=32;function M(t,e,n,{location:s=g.location,distance:i=g.distance,threshold:r=g.threshold,findAllMatches:u=g.findAllMatches,minMatchCharLength:c=g.minMatchCharLength,includeMatches:o=g.includeMatches,ignoreLocation:h=g.ignoreLocation}={}){if(e.length>m)throw new Error("Pattern length exceeds max of 32.");const a=e.length,l=t.length,d=Math.max(0,Math.min(s,l));let f=r,A=d;const p=c>1||o,M=p?Array(l):[];let F;for(;(F=t.indexOf(e,A))>-1;){let t=C(e,{currentLocation:F,expectedLocation:d,distance:i,ignoreLocation:h});if(f=Math.min(t,f),A=F+a,p){let t=0;for(;t<a;)M[F+t]=1,t+=1}}A=-1;let E=[],y=1,D=a+l;const x=1<<a-1;for(let s=0;s<a;s+=1){let r=0,c=D;for(;r<c;)C(e,{errors:s,currentLocation:d+c,expectedLocation:d,distance:i,ignoreLocation:h})<=f?r=c:D=c,c=Math.floor((D-r)/2+r);D=c;let o=Math.max(1,d-c+1),g=u?l:Math.min(d+c,l)+a,m=Array(g+2);m[g+1]=(1<<s)-1;for(let r=g;r>=o;r-=1){let u=r-1,c=n[t.charAt(u)];if(p&&(M[u]=+!!c),m[r]=(m[r+1]<<1|1)&c,s&&(m[r]|=(E[r+1]|E[r])<<1|1|E[r+1]),m[r]&x&&(y=C(e,{errors:s,currentLocation:u,expectedLocation:d,distance:i,ignoreLocation:h}),y<=f)){if(f=y,A=u,A<=d)break;o=Math.max(1,2*d-A)}}if(C(e,{errors:s+1,currentLocation:d,expectedLocation:d,distance:i,ignoreLocation:h})>f)break;E=m}const B={isMatch:A>=0,score:Math.max(.001,y)};if(p){const t=function(t=[],e=g.minMatchCharLength){let n=[],s=-1,i=-1,r=0;for(let u=t.length;r<u;r+=1){let u=t[r];u&&-1===s?s=r:u||-1===s||(i=r-1,i-s+1>=e&&n.push([s,i]),s=-1)}return t[r-1]&&r-s>=e&&n.push([s,r-1]),n}(M,c);t.length?o&&(B.indices=t):B.isMatch=!1}return B}function F(t){let e={};for(let n=0,s=t.length;n<s;n+=1){const i=t.charAt(n);e[i]=(e[i]||0)|1<<s-n-1}return e}const E=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 y{constructor(t,{location:e=g.location,threshold:n=g.threshold,distance:s=g.distance,includeMatches:i=g.includeMatches,findAllMatches:r=g.findAllMatches,minMatchCharLength:u=g.minMatchCharLength,isCaseSensitive:c=g.isCaseSensitive,ignoreDiacritics:o=g.ignoreDiacritics,ignoreLocation:h=g.ignoreLocation}={}){if(this.options={location:e,threshold:n,distance:s,includeMatches:i,findAllMatches:r,minMatchCharLength:u,isCaseSensitive:c,ignoreDiacritics:o,ignoreLocation:h},t=c?t:t.toLowerCase(),t=o?E(t):t,this.pattern=t,this.chunks=[],!this.pattern.length)return;const a=(t,e)=>{this.chunks.push({pattern:t,alphabet:F(t),startIndex:e})},l=this.pattern.length;if(l>m){let t=0;const e=l%m,n=l-e;for(;t<n;)a(this.pattern.substr(t,m),t),t+=m;if(e){const t=l-m;a(this.pattern.substr(t),t)}}else a(this.pattern,0)}searchIn(t){const{isCaseSensitive:e,ignoreDiacritics:n,includeMatches:s}=this.options;if(t=e?t:t.toLowerCase(),t=n?E(t):t,this.pattern===t){let e={isMatch:!0,score:0};return s&&(e.indices=[[0,t.length-1]]),e}const{location:i,distance:r,threshold:u,findAllMatches:c,minMatchCharLength:o,ignoreLocation:h}=this.options;let a=[],l=0,d=!1;this.chunks.forEach(({pattern:e,alphabet:n,startIndex:g})=>{const{isMatch:f,score:A,indices:p}=M(t,e,n,{location:i+g,distance:r,threshold:u,findAllMatches:c,minMatchCharLength:o,includeMatches:s,ignoreLocation:h});f&&(d=!0),l+=A,f&&p&&(a=[...a,...p])});let g={isMatch:d,score:d?l/this.chunks.length:1};return d&&s&&(g.indices=a),g}}class D{constructor(t){this.pattern=t}static isMultiMatch(t){return x(t,this.multiRegex)}static isSingleMatch(t){return x(t,this.singleRegex)}search(){}}function x(t,e){const n=t.match(e);return n?n[1]:null}class B extends D{constructor(t,{location:e=g.location,threshold:n=g.threshold,distance:s=g.distance,includeMatches:i=g.includeMatches,findAllMatches:r=g.findAllMatches,minMatchCharLength:u=g.minMatchCharLength,isCaseSensitive:c=g.isCaseSensitive,ignoreDiacritics:o=g.ignoreDiacritics,ignoreLocation:h=g.ignoreLocation}={}){super(t),this._bitapSearch=new y(t,{location:e,threshold:n,distance:s,includeMatches:i,findAllMatches:r,minMatchCharLength:u,isCaseSensitive:c,ignoreDiacritics:o,ignoreLocation:h})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(t){return this._bitapSearch.searchIn(t)}}class L extends D{constructor(t){super(t)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(t){let e,n=0;const s=[],i=this.pattern.length;for(;(e=t.indexOf(this.pattern,n))>-1;)n=e+i,s.push([e,n-1]);const r=!!s.length;return{isMatch:r,score:r?0:1,indices:s}}}const k=[class extends D{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]}}},L,class extends D{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 D{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 D{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 D{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 D{constructor(t){super(t)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(t){const e=-1===t.indexOf(this.pattern);return{isMatch:e,score:e?0:1,indices:[0,t.length-1]}}},B],_=k.length,v=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,S=new Set([B.type,L.type]);const I=[];function w(t,e){for(let n=0,s=I.length;n<s;n+=1){let s=I[n];if(s.condition(t,e))return new s(t,e)}return new y(t,e)}const $="$and",b="$path",N=t=>!(!t[$]&&!t.$or),R=t=>({[$]:Object.keys(t).map(e=>({[e]:t[e]}))});function O(n,s,{auto:r=!0}={}){const u=n=>{let c=Object.keys(n);const o=(t=>!!t[b])(n);if(!o&&c.length>1&&!N(n))return u(R(n));if((e=>!t(e)&&i(e)&&!N(e))(n)){const t=o?n[b]:c[0],i=o?n.$val:n[t];if(!e(i))throw new Error((t=>`Invalid value for key ${t}`)(t));const u={keyId:d(t),pattern:i};return r&&(u.searcher=w(i,s)),u}let h={children:[],operator:c[0]};return c.forEach(e=>{const s=n[e];t(s)&&s.forEach(t=>{h.children.push(u(t))})}),h};return N(n)||(n=R(n)),u(n)}function j(t,e){const n=t.matches;e.matches=[],r(n)&&n.forEach(t=>{if(!r(t.indices)||!t.indices.length)return;const{indices:n,value:s}=t;let i={indices:n,value:s};t.key&&(i.key=t.key.src),t.idx>-1&&(i.refIndex=t.idx),e.matches.push(i)})}function W(t,e){e.score=t.score}class z{constructor(t,e={},n){this.options={...g,...e},this.options.useExtendedSearch,this._keyStore=new h(this.options.keys),this.setCollection(t,n)}setCollection(t,e){if(this._docs=t,e&&!(e instanceof A))throw new Error("Incorrect 'index' type");this._myIndex=e||p(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(t){r(t)&&(this._docs.push(t),this._myIndex.add(t))}remove(t=()=>!1){const e=[];for(let n=0,s=this._docs.length;n<s;n+=1){const i=this._docs[n];t(i,n)&&(this.removeAt(n),n-=1,s-=1,e.push(i))}return e}removeAt(t){this._docs.splice(t,1),this._myIndex.removeAt(t)}getIndex(){return this._myIndex}search(t,{limit:s=-1}={}){const{includeMatches:i,includeScore:r,shouldSort:u,sortFn:c,ignoreFieldNorm:o}=this.options;let h=e(t)?e(this._docs[0])?this._searchStringList(t):this._searchObjectList(t):this._searchLogical(t);return function(t,{ignoreFieldNorm:e=g.ignoreFieldNorm}){t.forEach(t=>{let n=1;t.matches.forEach(({key:t,norm:s,score:i})=>{const r=t?t.weight:null;n*=Math.pow(0===i&&r?Number.EPSILON:i,(r||1)*(e?1:s))}),t.score=n})}(h,{ignoreFieldNorm:o}),u&&h.sort(c),n(s)&&s>-1&&(h=h.slice(0,s)),function(t,e,{includeMatches:n=g.includeMatches,includeScore:s=g.includeScore}={}){const i=[];return n&&i.push(j),s&&i.push(W),t.map(t=>{const{idx:n}=t,s={item:e[n],refIndex:n};return i.length&&i.forEach(e=>{e(t,s)}),s})}(h,this._docs,{includeMatches:i,includeScore:r})}_searchStringList(t){const e=w(t,this.options),{records:n}=this._myIndex,s=[];return n.forEach(({v:t,i:n,n:i})=>{if(!r(t))return;const{isMatch:u,score:c,indices:o}=e.searchIn(t);u&&s.push({item:t,idx:n,matches:[{score:c,value:t,norm:i,indices:o}]})}),s}_searchLogical(t){const e=O(t,this.options),n=(t,e,s)=>{if(!t.children){const{keyId:n,searcher:i}=t,r=this._findMatches({key:this._keyStore.get(n),value:this._myIndex.getValueForItemAtKeyId(e,n),searcher:i});return r&&r.length?[{idx:s,item:e,matches:r}]:[]}const i=[];for(let r=0,u=t.children.length;r<u;r+=1){const u=t.children[r],c=n(u,e,s);if(c.length)i.push(...c);else if(t.operator===$)return[]}return i},s=this._myIndex.records,i={},u=[];return s.forEach(({$:t,i:s})=>{if(r(t)){let r=n(e,t,s);r.length&&(i[s]||(i[s]={idx:s,item:t,matches:[]},u.push(i[s])),r.forEach(({matches:t})=>{i[s].matches.push(...t)}))}}),u}_searchObjectList(t){const e=w(t,this.options),{keys:n,records:s}=this._myIndex,i=[];return s.forEach(({$:t,i:s})=>{if(!r(t))return;let u=[];n.forEach((n,s)=>{u.push(...this._findMatches({key:n,value:t[s],searcher:e}))}),u.length&&i.push({idx:s,item:t,matches:u})}),i}_findMatches({key:e,value:n,searcher:s}){if(!r(n))return[];let i=[];if(t(n))n.forEach(({v:t,i:n,n:u})=>{if(!r(t))return;const{isMatch:c,score:o,indices:h}=s.searchIn(t);c&&i.push({score:o,key:e,value:t,idx:n,norm:u,indices:h})});else{const{v:t,n:r}=n,{isMatch:u,score:c,indices:o}=s.searchIn(t);u&&i.push({score:c,key:e,value:t,norm:r,indices:o})}return i}}z.version="7.1.0",z.createIndex=p,z.parseIndex=function(t,{getFn:e=g.getFn,fieldNormWeight:n=g.fieldNormWeight}={}){const{keys:s,records:i}=t,r=new A({getFn:e,fieldNormWeight:n});return r.setKeys(s),r.setIndexRecords(i),r},z.config=g,z.parseQuery=O,function(...t){I.push(...t)}(class{constructor(t,{isCaseSensitive:e=g.isCaseSensitive,ignoreDiacritics:n=g.ignoreDiacritics,includeMatches:s=g.includeMatches,minMatchCharLength:i=g.minMatchCharLength,ignoreLocation:r=g.ignoreLocation,findAllMatches:u=g.findAllMatches,location:c=g.location,threshold:o=g.threshold,distance:h=g.distance}={}){this.query=null,this.options={isCaseSensitive:e,ignoreDiacritics:n,includeMatches:s,minMatchCharLength:i,findAllMatches:u,ignoreLocation:r,location:c,threshold:o,distance:h},t=e?t:t.toLowerCase(),t=n?E(t):t,this.pattern=t,this.query=function(t,e={}){return t.split("|").map(t=>{let n=t.trim().split(v).filter(t=>t&&!!t.trim()),s=[];for(let t=0,i=n.length;t<i;t+=1){const i=n[t];let r=!1,u=-1;for(;!r&&++u<_;){const t=k[u];let n=t.isMultiMatch(i);n&&(s.push(new t(n,e)),r=!0)}if(!r)for(u=-1;++u<_;){const t=k[u];let n=t.isSingleMatch(i);if(n){s.push(new t(n,e));break}}}return s})}(this.pattern,this.options)}static condition(t,e){return e.useExtendedSearch}searchIn(t){const e=this.query;if(!e)return{isMatch:!1,score:1};const{includeMatches:n,isCaseSensitive:s,ignoreDiacritics:i}=this.options;t=s?t:t.toLowerCase(),t=i?E(t):t;let r=0,u=[],c=0;for(let s=0,i=e.length;s<i;s+=1){const i=e[s];u.length=0,r=0;for(let e=0,s=i.length;e<s;e+=1){const s=i[e],{isMatch:o,indices:h,score:a}=s.search(t);if(!o){c=0,r=0,u.length=0;break}if(r+=1,c+=a,n){const t=s.constructor.type;S.has(t)?u=[...u,...h]:u.push(h)}}if(r){let t={isMatch:!0,score:c/r};return n&&(t.indices=u),t}}return{isMatch:!1,score:1}}}),exports.default=z;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.12
|
|
3
|
+
*
|
|
4
|
+
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
|
+
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
|
+
*/
|
|
7
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e,r={},t={};function n(){if(e)return t;function r(e,r){return void 0===r&&(r=Object),r&&"function"==typeof r.getOwnPropertyDescriptors&&(e=r.create(null,r.getOwnPropertyDescriptors(e))),r&&"function"==typeof r.freeze?r.freeze(e):e}function n(e,r){return Object.prototype.hasOwnProperty.call(e,r)}e=1;var o=r({allowfullscreen:!0,async:!0,autofocus:!0,autoplay:!0,checked:!0,controls:!0,default:!0,defer:!0,disabled:!0,formnovalidate:!0,hidden:!0,ismap:!0,itemscope:!0,loop:!0,multiple:!0,muted:!0,nomodule:!0,novalidate:!0,open:!0,playsinline:!0,readonly:!0,required:!0,reversed:!0,selected:!0}),a=r({area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0}),i=r({script:!1,style:!1,textarea:!0,title:!0});function s(e){return e===l.HTML}var l=r({HTML:"text/html",XML_APPLICATION:"application/xml",XML_TEXT:"text/xml",XML_XHTML_APPLICATION:"application/xhtml+xml",XML_SVG_IMAGE:"image/svg+xml"}),c=Object.keys(l).map(function(e){return l[e]}),u=r({HTML:"http://www.w3.org/1999/xhtml",SVG:"http://www.w3.org/2000/svg",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/"});return t.assign=function(e,r){if(null===e||"object"!=typeof e)throw new TypeError("target is not an object");for(var t in r)n(r,t)&&(e[t]=r[t]);return e},t.find=function(e,r,t){if(void 0===t&&(t=Array.prototype),e&&"function"==typeof t.find)return t.find.call(e,r);for(var o=0;o<e.length;o++)if(n(e,o)){var a=e[o];if(r.call(void 0,a,o,e))return a}},t.freeze=r,t.HTML_BOOLEAN_ATTRIBUTES=o,t.HTML_RAW_TEXT_ELEMENTS=i,t.HTML_VOID_ELEMENTS=a,t.hasDefaultHTMLNamespace=function(e){return s(e)||e===l.XML_XHTML_APPLICATION},t.hasOwn=n,t.isHTMLBooleanAttribute=function(e){return n(o,e.toLowerCase())},t.isHTMLRawTextElement=function(e){var r=e.toLowerCase();return n(i,r)&&!i[r]},t.isHTMLEscapableRawTextElement=function(e){var r=e.toLowerCase();return n(i,r)&&i[r]},t.isHTMLMimeType=s,t.isHTMLVoidElement=function(e){return n(a,e.toLowerCase())},t.isValidMimeType=function(e){return c.indexOf(e)>-1},t.MIME_TYPE=l,t.NAMESPACE=u,t}var o,a={};function i(){if(o)return a;function e(e,r){e.prototype=Object.create(Error.prototype,{constructor:{value:e},name:{value:e.name,enumerable:!0,writable:r}})}o=1;var r=n().freeze({Error:"Error",IndexSizeError:"IndexSizeError",DomstringSizeError:"DomstringSizeError",HierarchyRequestError:"HierarchyRequestError",WrongDocumentError:"WrongDocumentError",InvalidCharacterError:"InvalidCharacterError",NoDataAllowedError:"NoDataAllowedError",NoModificationAllowedError:"NoModificationAllowedError",NotFoundError:"NotFoundError",NotSupportedError:"NotSupportedError",InUseAttributeError:"InUseAttributeError",InvalidStateError:"InvalidStateError",SyntaxError:"SyntaxError",InvalidModificationError:"InvalidModificationError",NamespaceError:"NamespaceError",InvalidAccessError:"InvalidAccessError",ValidationError:"ValidationError",TypeMismatchError:"TypeMismatchError",SecurityError:"SecurityError",NetworkError:"NetworkError",AbortError:"AbortError",URLMismatchError:"URLMismatchError",QuotaExceededError:"QuotaExceededError",TimeoutError:"TimeoutError",InvalidNodeTypeError:"InvalidNodeTypeError",DataCloneError:"DataCloneError",EncodingError:"EncodingError",NotReadableError:"NotReadableError",UnknownError:"UnknownError",ConstraintError:"ConstraintError",DataError:"DataError",TransactionInactiveError:"TransactionInactiveError",ReadOnlyError:"ReadOnlyError",VersionError:"VersionError",OperationError:"OperationError",NotAllowedError:"NotAllowedError",OptOutError:"OptOutError"}),t=Object.keys(r);function i(e){return"number"==typeof e&&e>=1&&e<=25}function s(e,n){var o;i(e)?(this.name=t[e],this.message=n||""):(this.message=e,this.name="string"==typeof(o=n)&&o.substring(o.length-r.Error.length)===r.Error?n:r.Error),Error.captureStackTrace&&Error.captureStackTrace(this,s)}e(s,!0),Object.defineProperties(s.prototype,{code:{enumerable:!0,get:function(){var e=t.indexOf(this.name);return i(e)?e:0}}});for(var l={INDEX_SIZE_ERR:1,DOMSTRING_SIZE_ERR:2,HIERARCHY_REQUEST_ERR:3,WRONG_DOCUMENT_ERR:4,INVALID_CHARACTER_ERR:5,NO_DATA_ALLOWED_ERR:6,NO_MODIFICATION_ALLOWED_ERR:7,NOT_FOUND_ERR:8,NOT_SUPPORTED_ERR:9,INUSE_ATTRIBUTE_ERR:10,INVALID_STATE_ERR:11,SYNTAX_ERR:12,INVALID_MODIFICATION_ERR:13,NAMESPACE_ERR:14,INVALID_ACCESS_ERR:15,VALIDATION_ERR:16,TYPE_MISMATCH_ERR:17,SECURITY_ERR:18,NETWORK_ERR:19,ABORT_ERR:20,URL_MISMATCH_ERR:21,QUOTA_EXCEEDED_ERR:22,TIMEOUT_ERR:23,INVALID_NODE_TYPE_ERR:24,DATA_CLONE_ERR:25},c=Object.entries(l),u=0;u<c.length;u++)s[c[u][0]]=c[u][1];function p(e,r){this.message=e,this.locator=r,Error.captureStackTrace&&Error.captureStackTrace(this,p)}return e(p),a.DOMException=s,a.DOMExceptionName=r,a.ExceptionCode=l,a.ParseError=p,a}var s,l,c={},u={};function p(){if(s)return u;function e(e){try{"function"!=typeof e&&(e=RegExp);var r=new e("𝌆","u").exec("𝌆");return!!r&&2===r[0].length}catch(e){}return!1}s=1;var r=e();function t(e){if("["!==e.source[0])throw new Error(e+" can not be used with chars");return e.source.slice(1,e.source.lastIndexOf("]"))}function n(e,t){if("["!==e.source[0])throw new Error("/"+e.source+"/ can not be used with chars_without");if(!t||"string"!=typeof t)throw new Error(JSON.stringify(t)+" is not a valid search");if(-1===e.source.indexOf(t))throw new Error('"'+t+'" is not is /'+e.source+"/");if("-"===t&&1!==e.source.indexOf(t))throw new Error('"'+t+'" is not at the first postion of /'+e.source+"/");return new RegExp(e.source.replace(t,""),r?"u":"")}function o(e){var t=this;return new RegExp(Array.prototype.slice.call(arguments).map(function(e){var r="string"==typeof e;if(r&&void 0===t&&"|"===e)throw new Error("use regg instead of reg to wrap expressions with `|`!");return r?e:e.source}).join(""),r?"mu":"m")}function a(e){if(0===arguments.length)throw new Error("no parameters provided");return o.apply(a,["(?:"].concat(Array.prototype.slice.call(arguments),[")"]))}var i=/[-\x09\x0A\x0D\x20-\x2C\x2E-\uD7FF\uE000-\uFFFD]/;r&&(i=o("[",t(i),"\\u{10000}-\\u{10FFFF}","]"));var l=/[\x20\x09\x0D\x0A]/,c=t(l),p=o(l,"+"),d=o(l,"*"),f=/[:_a-zA-Z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/;r&&(f=o("[",t(f),"\\u{10000}-\\u{10FFFF}","]"));var h=o("[",t(f),t(/[-.0-9\xB7]/),t(/[\u0300-\u036F\u203F-\u2040]/),"]"),m=o(f,h,"*"),E=o(h,"+"),g=o("&",m,";"),N=a(/&#[0-9]+;|&#x[0-9a-fA-F]+;/),T=a(g,"|",N),b=o("%",m,";"),w=a(o('"',a(/[^%&"]/,"|",b,"|",T),"*",'"'),"|",o("'",a(/[^%&']/,"|",b,"|",T),"*","'")),v=a('"',a(/[^<&"]/,"|",T),"*",'"',"|","'",a(/[^<&']/,"|",T),"*","'"),y=o(n(f,":"),n(h,":"),"*"),D=o(y,a(":",y),"?"),S=o("^",D,"$"),A=o("(",D,")"),I=a(/"[^"]*"|'[^']*'/),O=o(/^<\?/,"(",m,")",a(p,"(",i,"*?)"),"?",/\?>/),C=/[\x20\x0D\x0Aa-zA-Z0-9-'()+,./:=?;!*#@$_%]/,x=a('"',C,'*"',"|","'",n(C,"'"),"*'"),_="\x3c!--",R=o(_,a(n(i,"-"),"|",o("-",n(i,"-"))),"*","--\x3e"),L="#PCDATA",M=a(o(/\(/,d,L,a(d,/\|/,d,D),"*",d,/\)\*/),"|",o(/\(/,d,L,d,/\)/)),q=a("EMPTY","|","ANY","|",M,"|",o(/\([^>]+\)/,/[?*+]?/)),P=o("<!ELEMENT",p,a(D,"|",b),p,a(q,"|",b),d,">"),U=o("NOTATION",p,/\(/,d,m,a(d,/\|/,d,m),"*",d,/\)/),k=o(/\(/,d,E,a(d,/\|/,d,E),"*",d,/\)/),H=a(U,"|",k),V=a(/CDATA|ID|IDREF|IDREFS|ENTITY|ENTITIES|NMTOKEN|NMTOKENS/,"|",H),B=a(/#REQUIRED|#IMPLIED/,"|",a(a("#FIXED",p),"?",v)),F=o("<!ATTLIST",p,m,a(p,m,p,V,p,B),"*",d,">"),G="about:legacy-compat",Y=a('"'+G+'"',"|","'"+G+"'"),X="SYSTEM",j="PUBLIC",z=a(a(X,p,I),"|",a(j,p,x,p,I)),Q=o("^",a(a(X,p,"(?<SystemLiteralOnly>",I,")"),"|",a(j,p,"(?<PubidLiteral>",x,")",p,"(?<SystemLiteral>",I,")"))),W=a(p,"NDATA",p,m),Z="<!ENTITY",$=o(Z,p,m,p,a(w,"|",a(z,W,"?")),d,">"),J=a(w,"|",z),K=a($,"|",o(Z,p,"%",p,m,p,J,d,">")),ee=o(j,p,x),re=o("<!NOTATION",p,m,p,a(z,"|",ee),d,">"),te=o(d,"=",d),ne=/1[.]\d+/,oe=o(p,"version",te,a("'",ne,"'","|",'"',ne,'"')),ae=/[A-Za-z][-A-Za-z0-9._]*/,ie=o(/^<\?xml/,oe,a(p,"encoding",te,a('"',ae,'"',"|","'",ae,"'")),"?",a(p,"standalone",te,a("'",a("yes","|","no"),"'","|",'"',a("yes","|","no"),'"')),"?",d,/\?>/),se=o(i,"*?",/\]\]>/),le=o(/<!\[CDATA\[/,se);return u.chars=t,u.chars_without=n,u.detectUnicodeSupport=e,u.reg=o,u.regg=a,u.ABOUT_LEGACY_COMPAT=G,u.ABOUT_LEGACY_COMPAT_SystemLiteral=Y,u.AttlistDecl=F,u.CDATA_START="<![CDATA[",u.CDATA_END="]]>",u.CDSect=le,u.Char=i,u.Comment=R,u.COMMENT_START=_,u.COMMENT_END="--\x3e",u.DOCTYPE_DECL_START="<!DOCTYPE",u.elementdecl=P,u.EntityDecl=K,u.EntityValue=w,u.ExternalID=z,u.ExternalID_match=Q,u.Name=m,u.NotationDecl=re,u.Reference=T,u.PEReference=b,u.PI=O,u.PUBLIC=j,u.PubidLiteral=x,u.QName=D,u.QName_exact=S,u.QName_group=A,u.S=p,u.SChar_s=c,u.S_OPT=d,u.SYSTEM=X,u.SystemLiteral=I,u.UNICODE_REPLACEMENT_CHARACTER="�",u.UNICODE_SUPPORT=r,u.XMLDecl=ie,u}function d(){if(l)return c;l=1;var e=n(),r=e.find,t=e.hasDefaultHTMLNamespace,o=e.hasOwn,a=e.isHTMLMimeType,s=e.isHTMLRawTextElement,u=e.isHTMLVoidElement,d=e.MIME_TYPE,f=e.NAMESPACE,h=Symbol(),m=i(),E=m.DOMException,g=m.DOMExceptionName,N=p();function T(e){if(e!==h)throw new TypeError("Illegal constructor")}function b(e){return""!==e}function w(e,r){return o(e,r)||(e[r]=!0),e}function v(e){if(!e)return[];var r=function(e){return e?e.split(/[\t\n\f\r ]+/).filter(b):[]}(e);return Object.keys(r.reduce(w,{}))}function y(e){if(!N.QName_exact.test(e))throw new E(E.INVALID_CHARACTER_ERR,'invalid character in qualified name "'+e+'"')}function D(r,t){y(t),r=r||null;var n=null,o=t;if(t.indexOf(":")>=0){var a=t.split(":");n=a[0],o=a[1]}if(null!==n&&null===r)throw new E(E.NAMESPACE_ERR,"prefix is non-null and namespace is null");if("xml"===n&&r!==e.NAMESPACE.XML)throw new E(E.NAMESPACE_ERR,'prefix is "xml" and namespace is not the XML namespace');if(("xmlns"===n||"xmlns"===t)&&r!==e.NAMESPACE.XMLNS)throw new E(E.NAMESPACE_ERR,'either qualifiedName or prefix is "xmlns" and namespace is not the XMLNS namespace');if(r===e.NAMESPACE.XMLNS&&"xmlns"!==n&&"xmlns"!==t)throw new E(E.NAMESPACE_ERR,'namespace is the XMLNS namespace and neither qualifiedName nor prefix is "xmlns"');return[r,n,o]}function S(e,r){for(var t in e)o(e,t)&&(r[t]=e[t])}function A(e,r){var t=e.prototype;if(!(t instanceof r)){function n(){}n.prototype=r.prototype,S(t,n=new n),e.prototype=t=n}t.constructor!=e&&("function"!=typeof e&&console.error("unknown Class:"+e),t.constructor=e)}var I={},O=I.ELEMENT_NODE=1,C=I.ATTRIBUTE_NODE=2,x=I.TEXT_NODE=3,_=I.CDATA_SECTION_NODE=4,R=I.ENTITY_REFERENCE_NODE=5,L=I.ENTITY_NODE=6,M=I.PROCESSING_INSTRUCTION_NODE=7,q=I.COMMENT_NODE=8,P=I.DOCUMENT_NODE=9,U=I.DOCUMENT_TYPE_NODE=10,k=I.DOCUMENT_FRAGMENT_NODE=11,H=I.NOTATION_NODE=12,V=e.freeze({DOCUMENT_POSITION_DISCONNECTED:1,DOCUMENT_POSITION_PRECEDING:2,DOCUMENT_POSITION_FOLLOWING:4,DOCUMENT_POSITION_CONTAINS:8,DOCUMENT_POSITION_CONTAINED_BY:16,DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC:32});function B(e,r){if(r.length<e.length)return B(r,e);var t=null;for(var n in e){if(e[n]!==r[n])return t;t=e[n]}return t}function F(e){return e.guid||(e.guid=Math.random()),e.guid}function G(){}function Y(e,r){this._node=e,this._refresh=r,X(this)}function X(e){var r=e._node._inc||e._node.ownerDocument._inc;if(e._inc!==r){var t=e._refresh(e._node);if(xe(e,"length",t.length),!e.$$length||t.length<e.$$length)for(var n=t.length;n in e;n++)o(e,n)&&delete e[n];S(t,e),e._inc=r}}function j(){}function z(e,r){for(var t=0;t<e.length;){if(e[t]===r)return t;t++}}function Q(e,r,t){var n=z(r,t);if(n>=0){for(var o=r.length-1;n<=o;)r[n]=r[++n];if(r.length=o,e){var a=e.ownerDocument;a&&ee(a,e,t),t.ownerElement=null}}}function W(){}function Z(e){T(e)}function $(e){return("<"==e?"<":">"==e&&">")||"&"==e&&"&"||'"'==e&&"""||"&#"+e.charCodeAt()+";"}function J(e,r){if(r(e))return!0;if(e=e.firstChild)do{if(J(e,r))return!0}while(e=e.nextSibling)}function K(e,r){T(e);var t=r||{};this.ownerDocument=this,this.contentType=t.contentType||d.XML_APPLICATION,this.type=a(this.contentType)?"html":"xml"}function ee(e,r,t,n){e&&e._inc++,t.namespaceURI===f.XMLNS&&delete r._nsMap[t.prefix?t.localName:""]}function re(e,r,t){if(e&&e._inc){e._inc++;var n=r.childNodes;if(t&&!t.nextSibling)n[n.length++]=t;else{for(var o=r.firstChild,a=0;o;)n[a++]=o,o=o.nextSibling;n.length=a,delete n[n.length]}}}function te(e,r){if(e!==r.parentNode)throw new E(E.NOT_FOUND_ERR,"child's parent is not parent");var t=r.previousSibling,n=r.nextSibling;return t?t.nextSibling=n:e.firstChild=n,n?n.previousSibling=t:e.lastChild=t,re(e.ownerDocument,e),r.parentNode=null,r.previousSibling=null,r.nextSibling=null,r}function ne(e){return e&&e.nodeType===Z.DOCUMENT_TYPE_NODE}function oe(e){return e&&e.nodeType===Z.ELEMENT_NODE}function ae(e){return e&&e.nodeType===Z.TEXT_NODE}function ie(e,t){var n=e.childNodes||[];if(r(n,oe)||ne(t))return!1;var o=r(n,ne);return!(t&&o&&n.indexOf(o)>n.indexOf(t))}function se(e,t){var n=e.childNodes||[];if(r(n,function(e){return oe(e)&&e!==t}))return!1;var o=r(n,ne);return!(t&&o&&n.indexOf(o)>n.indexOf(t))}function le(e,t,n){var o=e.childNodes||[],a=t.childNodes||[];if(t.nodeType===Z.DOCUMENT_FRAGMENT_NODE){var i=a.filter(oe);if(i.length>1||r(a,ae))throw new E(E.HIERARCHY_REQUEST_ERR,"More than one element or text in fragment");if(1===i.length&&!ie(e,n))throw new E(E.HIERARCHY_REQUEST_ERR,"Element in fragment can not be inserted before doctype")}if(oe(t)&&!ie(e,n))throw new E(E.HIERARCHY_REQUEST_ERR,"Only one element can be added and only after doctype");if(ne(t)){if(r(o,ne))throw new E(E.HIERARCHY_REQUEST_ERR,"Only one doctype is allowed");var s=r(o,oe);if(n&&o.indexOf(s)<o.indexOf(n))throw new E(E.HIERARCHY_REQUEST_ERR,"Doctype can only be inserted before an element");if(!n&&s)throw new E(E.HIERARCHY_REQUEST_ERR,"Doctype can not be appended since element is present")}}function ce(e,t,n){var o=e.childNodes||[],a=t.childNodes||[];if(t.nodeType===Z.DOCUMENT_FRAGMENT_NODE){var i=a.filter(oe);if(i.length>1||r(a,ae))throw new E(E.HIERARCHY_REQUEST_ERR,"More than one element or text in fragment");if(1===i.length&&!se(e,n))throw new E(E.HIERARCHY_REQUEST_ERR,"Element in fragment can not be inserted before doctype")}if(oe(t)&&!se(e,n))throw new E(E.HIERARCHY_REQUEST_ERR,"Only one element can be added and only after doctype");if(ne(t)){function l(e){return ne(e)&&e!==n}if(r(o,l))throw new E(E.HIERARCHY_REQUEST_ERR,"Only one doctype is allowed");var s=r(o,oe);if(n&&o.indexOf(s)<o.indexOf(n))throw new E(E.HIERARCHY_REQUEST_ERR,"Doctype can only be inserted before an element")}}function ue(e,r,t,n){(function(e,r,t){if(!function(e){return e&&(e.nodeType===Z.DOCUMENT_NODE||e.nodeType===Z.DOCUMENT_FRAGMENT_NODE||e.nodeType===Z.ELEMENT_NODE)}(e))throw new E(E.HIERARCHY_REQUEST_ERR,"Unexpected parent node type "+e.nodeType);if(t&&t.parentNode!==e)throw new E(E.NOT_FOUND_ERR,"child not in parent");if(!function(e){return e&&(e.nodeType===Z.CDATA_SECTION_NODE||e.nodeType===Z.COMMENT_NODE||e.nodeType===Z.DOCUMENT_FRAGMENT_NODE||e.nodeType===Z.DOCUMENT_TYPE_NODE||e.nodeType===Z.ELEMENT_NODE||e.nodeType===Z.PROCESSING_INSTRUCTION_NODE||e.nodeType===Z.TEXT_NODE)}(r)||ne(r)&&e.nodeType!==Z.DOCUMENT_NODE)throw new E(E.HIERARCHY_REQUEST_ERR,"Unexpected node type "+r.nodeType+" for parent node type "+e.nodeType)})(e,r,t),e.nodeType===Z.DOCUMENT_NODE&&(n||le)(e,r,t);var o=r.parentNode;if(o&&o.removeChild(r),r.nodeType===k){var a=r.firstChild;if(null==a)return r;var i=r.lastChild}else a=i=r;var s=t?t.previousSibling:e.lastChild;a.previousSibling=s,i.nextSibling=t,s?s.nextSibling=a:e.firstChild=a,null==t?e.lastChild=i:t.previousSibling=i;do{a.parentNode=e}while(a!==i&&(a=a.nextSibling));return re(e.ownerDocument||e,e,r),r.nodeType==k&&(r.firstChild=r.lastChild=null),r}function pe(e){T(e),this._nsMap=Object.create(null)}function de(e){T(e),this.namespaceURI=null,this.prefix=null,this.ownerElement=null}function fe(e){T(e)}function he(e){T(e)}function me(e){T(e)}function Ee(e){T(e)}function ge(e){T(e)}function Ne(e){T(e)}function Te(e){T(e)}function be(e){T(e)}function we(e){T(e)}function ve(e){T(e)}function ye(){}function De(e){var r=[],t=this.nodeType===P&&this.documentElement||this,n=t.prefix,o=t.namespaceURI;if(o&&null==n&&null==(n=t.lookupPrefix(o)))var a=[{namespace:o,prefix:null}];return Ie(this,r,e,a),r.join("")}function Se(e,r,t){var n=e.prefix||"",o=e.namespaceURI;if(!o)return!1;if("xml"===n&&o===f.XML||o===f.XMLNS)return!1;for(var a=t.length;a--;){var i=t[a];if(i.prefix===n)return i.namespace!==o}return!0}function Ae(e,r,t){e.push(" ",r,'="',t.replace(/[<>&"\t\n\r]/g,$),'"')}function Ie(e,r,t,n){n||(n=[]);var o="html"===(e.nodeType===P?e:e.ownerDocument).type;if(t){if(!(e=t(e)))return;if("string"==typeof e)return void r.push(e)}switch(e.nodeType){case O:var a=e.attributes,i=a.length,l=e.firstChild,c=e.tagName,p=c;if(!o&&!e.prefix&&e.namespaceURI){for(var d,h=0;h<a.length;h++)if("xmlns"===a.item(h).name){d=a.item(h).value;break}if(!d)for(var m=n.length-1;m>=0;m--)if(""===(E=n[m]).prefix&&E.namespace===e.namespaceURI){d=E.namespace;break}if(d!==e.namespaceURI)for(m=n.length-1;m>=0;m--){var E;if((E=n[m]).namespace===e.namespaceURI){E.prefix&&(p=E.prefix+":"+c);break}}}r.push("<",p);for(var g=0;g<i;g++)"xmlns"==(T=a.item(g)).prefix?n.push({prefix:T.localName,namespace:T.value}):"xmlns"==T.nodeName&&n.push({prefix:"",namespace:T.value});for(g=0;g<i;g++){var T,b,w;Se(T=a.item(g),0,n)&&(Ae(r,(b=T.prefix||"")?"xmlns:"+b:"xmlns",w=T.namespaceURI),n.push({prefix:b,namespace:w})),Ie(T,r,t,n)}c===p&&Se(e,0,n)&&(Ae(r,(b=e.prefix||"")?"xmlns:"+b:"xmlns",w=e.namespaceURI),n.push({prefix:b,namespace:w}));var v=!l;if(v&&(o||e.namespaceURI===f.HTML)&&(v=u(c)),v)r.push("/>");else{if(r.push(">"),o&&s(c))for(;l;)l.data?r.push(l.data):Ie(l,r,t,n.slice()),l=l.nextSibling;else for(;l;)Ie(l,r,t,n.slice()),l=l.nextSibling;r.push("</",p,">")}return;case P:case k:for(l=e.firstChild;l;)Ie(l,r,t,n.slice()),l=l.nextSibling;return;case C:return Ae(r,e.name,e.value);case x:return r.push(e.data.replace(/[<&>]/g,$));case _:return r.push(N.CDATA_START,e.data,N.CDATA_END);case q:return r.push(N.COMMENT_START,e.data,N.COMMENT_END);case U:var y=e.publicId,D=e.systemId;return r.push(N.DOCTYPE_DECL_START," ",e.name),y?(r.push(" ",N.PUBLIC," ",y),D&&"."!==D&&r.push(" ",D)):D&&"."!==D&&r.push(" ",N.SYSTEM," ",D),e.internalSubset&&r.push(" [",e.internalSubset,"]"),void r.push(">");case M:return r.push("<?",e.target," ",e.data,"?>");case R:return r.push("&",e.nodeName,";");default:r.push("??",e.nodeName)}}function Oe(e,r,t){var n;switch(r.nodeType){case O:(n=r.cloneNode(!1)).ownerDocument=e;case k:break;case C:t=!0}if(n||(n=r.cloneNode(!1)),n.ownerDocument=e,n.parentNode=null,t)for(var o=r.firstChild;o;)n.appendChild(Oe(e,o,t)),o=o.nextSibling;return n}function Ce(e,r,t){var n=new r.constructor(h);for(var a in r)if(o(r,a)){var i=r[a];"object"!=typeof i&&i!=n[a]&&(n[a]=i)}switch(r.childNodes&&(n.childNodes=new G),n.ownerDocument=e,n.nodeType){case O:var s=r.attributes,l=n.attributes=new j,c=s.length;l._ownerElement=n;for(var u=0;u<c;u++)n.setAttributeNode(Ce(e,s.item(u),!0));break;case C:t=!0}if(t)for(var p=r.firstChild;p;)n.appendChild(Ce(e,p,t)),p=p.nextSibling;return n}function xe(e,r,t){e[r]=t}G.prototype={length:0,item:function(e){return e>=0&&e<this.length?this[e]:null},toString:function(e){for(var r=[],t=0;t<this.length;t++)Ie(this[t],r,e);return r.join("")},filter:function(e){return Array.prototype.filter.call(this,e)},indexOf:function(e){return Array.prototype.indexOf.call(this,e)}},G.prototype[Symbol.iterator]=function(){var e=this,r=0;return{next:function(){return r<e.length?{value:e[r++],done:!1}:{done:!0}},return:function(){return{done:!0}}}},Y.prototype.item=function(e){return X(this),this[e]||null},A(Y,G),j.prototype={length:0,item:G.prototype.item,getNamedItem:function(e){this._ownerElement&&this._ownerElement._isInHTMLDocumentAndNamespace()&&(e=e.toLowerCase());for(var r=0;r<this.length;){var t=this[r];if(t.nodeName===e)return t;r++}return null},setNamedItem:function(e){var r=e.ownerElement;if(r&&r!==this._ownerElement)throw new E(E.INUSE_ATTRIBUTE_ERR);var t=this.getNamedItemNS(e.namespaceURI,e.localName);return t===e?e:(function(e,r,t,n){if(n?r[z(r,n)]=t:(r[r.length]=t,r.length++),e){t.ownerElement=e;var o=e.ownerDocument;o&&(n&&ee(o,e,n),function(e,r,t){e&&e._inc++,t.namespaceURI===f.XMLNS&&(r._nsMap[t.prefix?t.localName:""]=t.value)}(o,e,t))}}(this._ownerElement,this,e,t),t)},setNamedItemNS:function(e){return this.setNamedItem(e)},removeNamedItem:function(e){var r=this.getNamedItem(e);if(!r)throw new E(E.NOT_FOUND_ERR,e);return Q(this._ownerElement,this,r),r},removeNamedItemNS:function(e,r){var t=this.getNamedItemNS(e,r);if(!t)throw new E(E.NOT_FOUND_ERR,e?e+" : "+r:r);return Q(this._ownerElement,this,t),t},getNamedItemNS:function(e,r){e||(e=null);for(var t=0;t<this.length;){var n=this[t];if(n.localName===r&&n.namespaceURI===e)return n;t++}return null}},j.prototype[Symbol.iterator]=function(){var e=this,r=0;return{next:function(){return r<e.length?{value:e[r++],done:!1}:{done:!0}},return:function(){return{done:!0}}}},W.prototype={hasFeature:function(e,r){return!0},createDocument:function(e,r,t){var n=d.XML_APPLICATION;e===f.HTML?n=d.XML_XHTML_APPLICATION:e===f.SVG&&(n=d.XML_SVG_IMAGE);var o=new K(h,{contentType:n});if(o.implementation=this,o.childNodes=new G,o.doctype=t||null,t&&o.appendChild(t),r){var a=o.createElementNS(e,r);o.appendChild(a)}return o},createDocumentType:function(e,r,t,n){y(e);var o=new ge(h);return o.name=e,o.nodeName=e,o.publicId=r||"",o.systemId=t||"",o.internalSubset=n||"",o.childNodes=new G,o},createHTMLDocument:function(e){var r=new K(h,{contentType:d.HTML});if(r.implementation=this,r.childNodes=new G,!1!==e){r.doctype=this.createDocumentType("html"),r.doctype.ownerDocument=r,r.appendChild(r.doctype);var t=r.createElement("html");r.appendChild(t);var n=r.createElement("head");if(t.appendChild(n),"string"==typeof e){var o=r.createElement("title");o.appendChild(r.createTextNode(e)),n.appendChild(o)}t.appendChild(r.createElement("body"))}return r}},Z.prototype={firstChild:null,lastChild:null,previousSibling:null,nextSibling:null,parentNode:null,get parentElement(){return this.parentNode&&this.parentNode.nodeType===this.ELEMENT_NODE?this.parentNode:null},childNodes:null,ownerDocument:null,nodeValue:null,namespaceURI:null,prefix:null,localName:null,baseURI:"about:blank",get isConnected(){var e=this.getRootNode();return e&&e.nodeType===e.DOCUMENT_NODE},contains:function(e){if(!e)return!1;var r=e;do{if(this===r)return!0;r=e.parentNode}while(r);return!1},getRootNode:function(e){var r=this;do{if(!r.parentNode)return r;r=r.parentNode}while(r)},isEqualNode:function(e){if(!e)return!1;if(this.nodeType!==e.nodeType)return!1;switch(this.nodeType){case this.DOCUMENT_TYPE_NODE:if(this.name!==e.name)return!1;if(this.publicId!==e.publicId)return!1;if(this.systemId!==e.systemId)return!1;break;case this.ELEMENT_NODE:if(this.namespaceURI!==e.namespaceURI)return!1;if(this.prefix!==e.prefix)return!1;if(this.localName!==e.localName)return!1;if(this.attributes.length!==e.attributes.length)return!1;for(var r=0;r<this.attributes.length;r++){var t=this.attributes.item(r);if(!t.isEqualNode(e.getAttributeNodeNS(t.namespaceURI,t.localName)))return!1}break;case this.ATTRIBUTE_NODE:if(this.namespaceURI!==e.namespaceURI)return!1;if(this.localName!==e.localName)return!1;if(this.value!==e.value)return!1;break;case this.PROCESSING_INSTRUCTION_NODE:if(this.target!==e.target||this.data!==e.data)return!1;break;case this.TEXT_NODE:case this.COMMENT_NODE:if(this.data!==e.data)return!1}if(this.childNodes.length!==e.childNodes.length)return!1;for(r=0;r<this.childNodes.length;r++)if(!this.childNodes[r].isEqualNode(e.childNodes[r]))return!1;return!0},isSameNode:function(e){return this===e},insertBefore:function(e,r){return ue(this,e,r)},replaceChild:function(e,r){ue(this,e,r,ce),r&&this.removeChild(r)},removeChild:function(e){return te(this,e)},appendChild:function(e){return this.insertBefore(e,null)},hasChildNodes:function(){return null!=this.firstChild},cloneNode:function(e){return Ce(this.ownerDocument||this,this,e)},normalize:function(){for(var e=this.firstChild;e;){var r=e.nextSibling;r&&r.nodeType==x&&e.nodeType==x?(this.removeChild(r),e.appendData(r.data)):(e.normalize(),e=r)}},isSupported:function(e,r){return this.ownerDocument.implementation.hasFeature(e,r)},lookupPrefix:function(e){for(var r=this;r;){var t=r._nsMap;if(t)for(var n in t)if(o(t,n)&&t[n]===e)return n;r=r.nodeType==C?r.ownerDocument:r.parentNode}return null},lookupNamespaceURI:function(e){for(var r=this;r;){var t=r._nsMap;if(t&&o(t,e))return t[e];r=r.nodeType==C?r.ownerDocument:r.parentNode}return null},isDefaultNamespace:function(e){return null==this.lookupPrefix(e)},compareDocumentPosition:function(e){if(this===e)return 0;var r=e,t=this,n=null,o=null;if(r instanceof de&&(r=(n=r).ownerElement),t instanceof de&&(t=(o=t).ownerElement,n&&r&&t===r))for(var a,i=0;a=t.attributes[i];i++){if(a===n)return V.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC+V.DOCUMENT_POSITION_PRECEDING;if(a===o)return V.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC+V.DOCUMENT_POSITION_FOLLOWING}if(!r||!t||t.ownerDocument!==r.ownerDocument)return V.DOCUMENT_POSITION_DISCONNECTED+V.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC+(F(t.ownerDocument)>F(r.ownerDocument)?V.DOCUMENT_POSITION_FOLLOWING:V.DOCUMENT_POSITION_PRECEDING);if(o&&r===t)return V.DOCUMENT_POSITION_CONTAINS+V.DOCUMENT_POSITION_PRECEDING;if(n&&r===t)return V.DOCUMENT_POSITION_CONTAINED_BY+V.DOCUMENT_POSITION_FOLLOWING;for(var s=[],l=r.parentNode;l;){if(!o&&l===t)return V.DOCUMENT_POSITION_CONTAINED_BY+V.DOCUMENT_POSITION_FOLLOWING;s.push(l),l=l.parentNode}s.reverse();for(var c=[],u=t.parentNode;u;){if(!n&&u===r)return V.DOCUMENT_POSITION_CONTAINS+V.DOCUMENT_POSITION_PRECEDING;c.push(u),u=u.parentNode}c.reverse();var p=B(s,c);for(var d in p.childNodes){var f=p.childNodes[d];if(f===t)return V.DOCUMENT_POSITION_FOLLOWING;if(f===r)return V.DOCUMENT_POSITION_PRECEDING;if(c.indexOf(f)>=0)return V.DOCUMENT_POSITION_FOLLOWING;if(s.indexOf(f)>=0)return V.DOCUMENT_POSITION_PRECEDING}return 0}},S(I,Z),S(I,Z.prototype),S(V,Z),S(V,Z.prototype),K.prototype={implementation:null,nodeName:"#document",nodeType:P,doctype:null,documentElement:null,_inc:1,insertBefore:function(e,r){if(e.nodeType===k){for(var t=e.firstChild;t;){var n=t.nextSibling;this.insertBefore(t,r),t=n}return e}return ue(this,e,r),e.ownerDocument=this,null===this.documentElement&&e.nodeType===O&&(this.documentElement=e),e},removeChild:function(e){var r=te(this,e);return r===this.documentElement&&(this.documentElement=null),r},replaceChild:function(e,r){ue(this,e,r,ce),e.ownerDocument=this,r&&this.removeChild(r),oe(e)&&(this.documentElement=e)},importNode:function(e,r){return Oe(this,e,r)},getElementById:function(e){var r=null;return J(this.documentElement,function(t){if(t.nodeType==O&&t.getAttribute("id")==e)return r=t,!0}),r},createElement:function(e){var r=new pe(h);return r.ownerDocument=this,"html"===this.type&&(e=e.toLowerCase()),t(this.contentType)&&(r.namespaceURI=f.HTML),r.nodeName=e,r.tagName=e,r.localName=e,r.childNodes=new G,(r.attributes=new j)._ownerElement=r,r},createDocumentFragment:function(){var e=new we(h);return e.ownerDocument=this,e.childNodes=new G,e},createTextNode:function(e){var r=new he(h);return r.ownerDocument=this,r.childNodes=new G,r.appendData(e),r},createComment:function(e){var r=new me(h);return r.ownerDocument=this,r.childNodes=new G,r.appendData(e),r},createCDATASection:function(e){var r=new Ee(h);return r.ownerDocument=this,r.childNodes=new G,r.appendData(e),r},createProcessingInstruction:function(e,r){var t=new ve(h);return t.ownerDocument=this,t.childNodes=new G,t.nodeName=t.target=e,t.nodeValue=t.data=r,t},createAttribute:function(e){if(!N.QName_exact.test(e))throw new E(E.INVALID_CHARACTER_ERR,'invalid character in name "'+e+'"');return"html"===this.type&&(e=e.toLowerCase()),this._createAttribute(e)},_createAttribute:function(e){var r=new de(h);return r.ownerDocument=this,r.childNodes=new G,r.name=e,r.nodeName=e,r.localName=e,r.specified=!0,r},createEntityReference:function(e){if(!N.Name.test(e))throw new E(E.INVALID_CHARACTER_ERR,'not a valid xml name "'+e+'"');if("html"===this.type)throw new E("document is an html document",g.NotSupportedError);var r=new be(h);return r.ownerDocument=this,r.childNodes=new G,r.nodeName=e,r},createElementNS:function(e,r){var t=D(e,r),n=new pe(h),o=n.attributes=new j;return n.childNodes=new G,n.ownerDocument=this,n.nodeName=r,n.tagName=r,n.namespaceURI=t[0],n.prefix=t[1],n.localName=t[2],o._ownerElement=n,n},createAttributeNS:function(e,r){var t=D(e,r),n=new de(h);return n.ownerDocument=this,n.childNodes=new G,n.nodeName=r,n.name=r,n.specified=!0,n.namespaceURI=t[0],n.prefix=t[1],n.localName=t[2],n}},A(K,Z),pe.prototype={nodeType:O,attributes:null,getQualifiedName:function(){return this.prefix?this.prefix+":"+this.localName:this.localName},_isInHTMLDocumentAndNamespace:function(){return"html"===this.ownerDocument.type&&this.namespaceURI===f.HTML},hasAttributes:function(){return!(!this.attributes||!this.attributes.length)},hasAttribute:function(e){return!!this.getAttributeNode(e)},getAttribute:function(e){var r=this.getAttributeNode(e);return r?r.value:null},getAttributeNode:function(e){return this._isInHTMLDocumentAndNamespace()&&(e=e.toLowerCase()),this.attributes.getNamedItem(e)},setAttribute:function(e,r){this._isInHTMLDocumentAndNamespace()&&(e=e.toLowerCase());var t=this.getAttributeNode(e);t?t.value=t.nodeValue=""+r:((t=this.ownerDocument._createAttribute(e)).value=t.nodeValue=""+r,this.setAttributeNode(t))},removeAttribute:function(e){var r=this.getAttributeNode(e);r&&this.removeAttributeNode(r)},setAttributeNode:function(e){return this.attributes.setNamedItem(e)},setAttributeNodeNS:function(e){return this.attributes.setNamedItemNS(e)},removeAttributeNode:function(e){return this.attributes.removeNamedItem(e.nodeName)},removeAttributeNS:function(e,r){var t=this.getAttributeNodeNS(e,r);t&&this.removeAttributeNode(t)},hasAttributeNS:function(e,r){return null!=this.getAttributeNodeNS(e,r)},getAttributeNS:function(e,r){var t=this.getAttributeNodeNS(e,r);return t?t.value:null},setAttributeNS:function(e,r,t){var n=D(e,r)[2],o=this.getAttributeNodeNS(e,n);o?o.value=o.nodeValue=""+t:((o=this.ownerDocument.createAttributeNS(e,r)).value=o.nodeValue=""+t,this.setAttributeNode(o))},getAttributeNodeNS:function(e,r){return this.attributes.getNamedItemNS(e,r)},getElementsByClassName:function(e){var r=v(e);return new Y(this,function(t){var n=[];return r.length>0&&J(t,function(o){if(o!==t&&o.nodeType===O){var a=o.getAttribute("class");if(a){var i=e===a;if(!i){var s=v(a);i=r.every((l=s,function(e){return l&&-1!==l.indexOf(e)}))}i&&n.push(o)}}var l}),n})},getElementsByTagName:function(e){var r="html"===(this.nodeType===P?this:this.ownerDocument).type,t=e.toLowerCase();return new Y(this,function(n){var o=[];return J(n,function(a){a!==n&&a.nodeType===O&&("*"===e||a.getQualifiedName()===(r&&a.namespaceURI===f.HTML?t:e))&&o.push(a)}),o})},getElementsByTagNameNS:function(e,r){return new Y(this,function(t){var n=[];return J(t,function(o){o===t||o.nodeType!==O||"*"!==e&&o.namespaceURI!==e||"*"!==r&&o.localName!=r||n.push(o)}),n})}},K.prototype.getElementsByClassName=pe.prototype.getElementsByClassName,K.prototype.getElementsByTagName=pe.prototype.getElementsByTagName,K.prototype.getElementsByTagNameNS=pe.prototype.getElementsByTagNameNS,A(pe,Z),de.prototype.nodeType=C,A(de,Z),fe.prototype={data:"",substringData:function(e,r){return this.data.substring(e,e+r)},appendData:function(e){e=this.data+e,this.nodeValue=this.data=e,this.length=e.length},insertData:function(e,r){this.replaceData(e,0,r)},deleteData:function(e,r){this.replaceData(e,r,"")},replaceData:function(e,r,t){t=this.data.substring(0,e)+t+this.data.substring(e+r),this.nodeValue=this.data=t,this.length=t.length}},A(fe,Z),he.prototype={nodeName:"#text",nodeType:x,splitText:function(e){var r=this.data,t=r.substring(e);r=r.substring(0,e),this.data=this.nodeValue=r,this.length=r.length;var n=this.ownerDocument.createTextNode(t);return this.parentNode&&this.parentNode.insertBefore(n,this.nextSibling),n}},A(he,fe),me.prototype={nodeName:"#comment",nodeType:q},A(me,fe),Ee.prototype={nodeName:"#cdata-section",nodeType:_},A(Ee,he),ge.prototype.nodeType=U,A(ge,Z),Ne.prototype.nodeType=H,A(Ne,Z),Te.prototype.nodeType=L,A(Te,Z),be.prototype.nodeType=R,A(be,Z),we.prototype.nodeName="#document-fragment",we.prototype.nodeType=k,A(we,Z),ve.prototype.nodeType=M,A(ve,fe),ye.prototype.serializeToString=function(e,r){return De.call(e,r)},Z.prototype.toString=De;try{if(Object.defineProperty){function _e(e){switch(e.nodeType){case O:case k:var r=[];for(e=e.firstChild;e;)7!==e.nodeType&&8!==e.nodeType&&r.push(_e(e)),e=e.nextSibling;return r.join("");default:return e.nodeValue}}Object.defineProperty(Y.prototype,"length",{get:function(){return X(this),this.$$length}}),Object.defineProperty(Z.prototype,"textContent",{get:function(){return _e(this)},set:function(e){switch(this.nodeType){case O:case k:for(;this.firstChild;)this.removeChild(this.firstChild);(e||String(e))&&this.appendChild(this.ownerDocument.createTextNode(e));break;default:this.data=e,this.value=e,this.nodeValue=e}}}),xe=function(e,r,t){e["$$"+r]=t}}}catch(Re){}return c._updateLiveList=X,c.Attr=de,c.CDATASection=Ee,c.CharacterData=fe,c.Comment=me,c.Document=K,c.DocumentFragment=we,c.DocumentType=ge,c.DOMImplementation=W,c.Element=pe,c.Entity=Te,c.EntityReference=be,c.LiveNodeList=Y,c.NamedNodeMap=j,c.Node=Z,c.NodeList=G,c.Notation=Ne,c.Text=he,c.ProcessingInstruction=ve,c.XMLSerializer=ye,c}var f,h={},m={};function E(){return f||(f=1,e=m,r=n().freeze,e.XML_ENTITIES=r({amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}),e.HTML_ENTITIES=r({Aacute:"Á",aacute:"á",Abreve:"Ă",abreve:"ă",ac:"∾",acd:"∿",acE:"∾̳",Acirc:"Â",acirc:"â",acute:"´",Acy:"А",acy:"а",AElig:"Æ",aelig:"æ",af:"",Afr:"𝔄",afr:"𝔞",Agrave:"À",agrave:"à",alefsym:"ℵ",aleph:"ℵ",Alpha:"Α",alpha:"α",Amacr:"Ā",amacr:"ā",amalg:"⨿",AMP:"&",amp:"&",And:"⩓",and:"∧",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsd:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",Aogon:"Ą",aogon:"ą",Aopf:"𝔸",aopf:"𝕒",ap:"≈",apacir:"⩯",apE:"⩰",ape:"≊",apid:"≋",apos:"'",ApplyFunction:"",approx:"≈",approxeq:"≊",Aring:"Å",aring:"å",Ascr:"𝒜",ascr:"𝒶",Assign:"≔",ast:"*",asymp:"≈",asympeq:"≍",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",awconint:"∳",awint:"⨑",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",Backslash:"∖",Barv:"⫧",barvee:"⊽",Barwed:"⌆",barwed:"⌅",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",Bcy:"Б",bcy:"б",bdquo:"„",becaus:"∵",Because:"∵",because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",Bernoullis:"ℬ",Beta:"Β",beta:"β",beth:"ℶ",between:"≬",Bfr:"𝔅",bfr:"𝔟",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bNot:"⫭",bnot:"⌐",Bopf:"𝔹",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxbox:"⧉",boxDL:"╗",boxDl:"╖",boxdL:"╕",boxdl:"┐",boxDR:"╔",boxDr:"╓",boxdR:"╒",boxdr:"┌",boxH:"═",boxh:"─",boxHD:"╦",boxHd:"╤",boxhD:"╥",boxhd:"┬",boxHU:"╩",boxHu:"╧",boxhU:"╨",boxhu:"┴",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxUL:"╝",boxUl:"╜",boxuL:"╛",boxul:"┘",boxUR:"╚",boxUr:"╙",boxuR:"╘",boxur:"└",boxV:"║",boxv:"│",boxVH:"╬",boxVh:"╫",boxvH:"╪",boxvh:"┼",boxVL:"╣",boxVl:"╢",boxvL:"╡",boxvl:"┤",boxVR:"╠",boxVr:"╟",boxvR:"╞",boxvr:"├",bprime:"‵",Breve:"˘",breve:"˘",brvbar:"¦",Bscr:"ℬ",bscr:"𝒷",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",Bumpeq:"≎",bumpeq:"≏",Cacute:"Ć",cacute:"ć",Cap:"⋒",cap:"∩",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",CapitalDifferentialD:"ⅅ",caps:"∩︀",caret:"⁁",caron:"ˇ",Cayleys:"ℭ",ccaps:"⩍",Ccaron:"Č",ccaron:"č",Ccedil:"Ç",ccedil:"ç",Ccirc:"Ĉ",ccirc:"ĉ",Cconint:"∰",ccups:"⩌",ccupssm:"⩐",Cdot:"Ċ",cdot:"ċ",cedil:"¸",Cedilla:"¸",cemptyv:"⦲",cent:"¢",CenterDot:"·",centerdot:"·",Cfr:"ℭ",cfr:"𝔠",CHcy:"Ч",chcy:"ч",check:"✓",checkmark:"✓",Chi:"Χ",chi:"χ",cir:"○",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",CircleDot:"⊙",circledR:"®",circledS:"Ⓢ",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",cirE:"⧃",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",clubs:"♣",clubsuit:"♣",Colon:"∷",colon:":",Colone:"⩴",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",Congruent:"≡",Conint:"∯",conint:"∮",ContourIntegral:"∮",Copf:"ℂ",copf:"𝕔",coprod:"∐",Coproduct:"∐",COPY:"©",copy:"©",copysr:"℗",CounterClockwiseContourIntegral:"∳",crarr:"↵",Cross:"⨯",cross:"✗",Cscr:"𝒞",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",Cup:"⋓",cup:"∪",cupbrcap:"⩈",CupCap:"≍",cupcap:"⩆",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",Dagger:"‡",dagger:"†",daleth:"ℸ",Darr:"↡",dArr:"⇓",darr:"↓",dash:"‐",Dashv:"⫤",dashv:"⊣",dbkarow:"⤏",dblac:"˝",Dcaron:"Ď",dcaron:"ď",Dcy:"Д",dcy:"д",DD:"ⅅ",dd:"ⅆ",ddagger:"‡",ddarr:"⇊",DDotrahd:"⤑",ddotseq:"⩷",deg:"°",Del:"∇",Delta:"Δ",delta:"δ",demptyv:"⦱",dfisht:"⥿",Dfr:"𝔇",dfr:"𝔡",dHar:"⥥",dharl:"⇃",dharr:"⇂",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",diam:"⋄",Diamond:"⋄",diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",DifferentialD:"ⅆ",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",DJcy:"Ђ",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",Dopf:"𝔻",dopf:"𝕕",Dot:"¨",dot:"˙",DotDot:"⃜",doteq:"≐",doteqdot:"≑",DotEqual:"≐",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrow:"↓",Downarrow:"⇓",downarrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",DownBreve:"̑",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",DownTeeArrow:"↧",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",Dscr:"𝒟",dscr:"𝒹",DScy:"Ѕ",dscy:"ѕ",dsol:"⧶",Dstrok:"Đ",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",DZcy:"Џ",dzcy:"џ",dzigrarr:"⟿",Eacute:"É",eacute:"é",easter:"⩮",Ecaron:"Ě",ecaron:"ě",ecir:"≖",Ecirc:"Ê",ecirc:"ê",ecolon:"≕",Ecy:"Э",ecy:"э",eDDot:"⩷",Edot:"Ė",eDot:"≑",edot:"ė",ee:"ⅇ",efDot:"≒",Efr:"𝔈",efr:"𝔢",eg:"⪚",Egrave:"È",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",Element:"∈",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",Emacr:"Ē",emacr:"ē",empty:"∅",emptyset:"∅",EmptySmallSquare:"◻",emptyv:"∅",EmptyVerySmallSquare:"▫",emsp:" ",emsp13:" ",emsp14:" ",ENG:"Ŋ",eng:"ŋ",ensp:" ",Eogon:"Ę",eogon:"ę",Eopf:"𝔼",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",Epsilon:"Ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",Equal:"⩵",equals:"=",EqualTilde:"≂",equest:"≟",Equilibrium:"⇌",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erarr:"⥱",erDot:"≓",Escr:"ℰ",escr:"ℯ",esdot:"≐",Esim:"⩳",esim:"≂",Eta:"Η",eta:"η",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",euro:"€",excl:"!",exist:"∃",Exists:"∃",expectation:"ℰ",ExponentialE:"ⅇ",exponentiale:"ⅇ",fallingdotseq:"≒",Fcy:"Ф",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",Ffr:"𝔉",ffr:"𝔣",filig:"fi",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",Fopf:"𝔽",fopf:"𝕗",ForAll:"∀",forall:"∀",fork:"⋔",forkv:"⫙",Fouriertrf:"ℱ",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",Fscr:"ℱ",fscr:"𝒻",gacute:"ǵ",Gamma:"Γ",gamma:"γ",Gammad:"Ϝ",gammad:"ϝ",gap:"⪆",Gbreve:"Ğ",gbreve:"ğ",Gcedil:"Ģ",Gcirc:"Ĝ",gcirc:"ĝ",Gcy:"Г",gcy:"г",Gdot:"Ġ",gdot:"ġ",gE:"≧",ge:"≥",gEl:"⪌",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",Gfr:"𝔊",gfr:"𝔤",Gg:"⋙",gg:"≫",ggg:"⋙",gimel:"ℷ",GJcy:"Ѓ",gjcy:"ѓ",gl:"≷",gla:"⪥",glE:"⪒",glj:"⪤",gnap:"⪊",gnapprox:"⪊",gnE:"≩",gne:"⪈",gneq:"⪈",gneqq:"≩",gnsim:"⋧",Gopf:"𝔾",gopf:"𝕘",grave:"`",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"𝒢",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",Gt:"≫",GT:">",gt:">",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:" ",half:"½",hamilt:"ℋ",HARDcy:"Ъ",hardcy:"ъ",hArr:"⇔",harr:"↔",harrcir:"⥈",harrw:"↭",Hat:"^",hbar:"ℏ",Hcirc:"Ĥ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",Hfr:"ℌ",hfr:"𝔥",HilbertSpace:"ℋ",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",Hopf:"ℍ",hopf:"𝕙",horbar:"―",HorizontalLine:"─",Hscr:"ℋ",hscr:"𝒽",hslash:"ℏ",Hstrok:"Ħ",hstrok:"ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"⁃",hyphen:"‐",Iacute:"Í",iacute:"í",ic:"",Icirc:"Î",icirc:"î",Icy:"И",icy:"и",Idot:"İ",IEcy:"Е",iecy:"е",iexcl:"¡",iff:"⇔",Ifr:"ℑ",ifr:"𝔦",Igrave:"Ì",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",IJlig:"IJ",ijlig:"ij",Im:"ℑ",Imacr:"Ī",imacr:"ī",image:"ℑ",ImaginaryI:"ⅈ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",imof:"⊷",imped:"Ƶ",Implies:"⇒",in:"∈",incare:"℅",infin:"∞",infintie:"⧝",inodot:"ı",Int:"∬",int:"∫",intcal:"⊺",integers:"ℤ",Integral:"∫",intercal:"⊺",Intersection:"⋂",intlarhk:"⨗",intprod:"⨼",InvisibleComma:"",InvisibleTimes:"",IOcy:"Ё",iocy:"ё",Iogon:"Į",iogon:"į",Iopf:"𝕀",iopf:"𝕚",Iota:"Ι",iota:"ι",iprod:"⨼",iquest:"¿",Iscr:"ℐ",iscr:"𝒾",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"",Itilde:"Ĩ",itilde:"ĩ",Iukcy:"І",iukcy:"і",Iuml:"Ï",iuml:"ï",Jcirc:"Ĵ",jcirc:"ĵ",Jcy:"Й",jcy:"й",Jfr:"𝔍",jfr:"𝔧",jmath:"ȷ",Jopf:"𝕁",jopf:"𝕛",Jscr:"𝒥",jscr:"𝒿",Jsercy:"Ј",jsercy:"ј",Jukcy:"Є",jukcy:"є",Kappa:"Κ",kappa:"κ",kappav:"ϰ",Kcedil:"Ķ",kcedil:"ķ",Kcy:"К",kcy:"к",Kfr:"𝔎",kfr:"𝔨",kgreen:"ĸ",KHcy:"Х",khcy:"х",KJcy:"Ќ",kjcy:"ќ",Kopf:"𝕂",kopf:"𝕜",Kscr:"𝒦",kscr:"𝓀",lAarr:"⇚",Lacute:"Ĺ",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",Lambda:"Λ",lambda:"λ",Lang:"⟪",lang:"⟨",langd:"⦑",langle:"⟨",lap:"⪅",Laplacetrf:"ℒ",laquo:"«",Larr:"↞",lArr:"⇐",larr:"←",larrb:"⇤",larrbfs:"⤟",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",lat:"⪫",lAtail:"⤛",latail:"⤙",late:"⪭",lates:"⪭︀",lBarr:"⤎",lbarr:"⤌",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",Lcaron:"Ľ",lcaron:"ľ",Lcedil:"Ļ",lcedil:"ļ",lceil:"⌈",lcub:"{",Lcy:"Л",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",lE:"≦",le:"≤",LeftAngleBracket:"⟨",LeftArrow:"←",Leftarrow:"⇐",leftarrow:"←",LeftArrowBar:"⇤",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",LeftRightArrow:"↔",Leftrightarrow:"⇔",leftrightarrow:"↔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTee:"⊣",LeftTeeArrow:"↤",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangle:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",LeftVectorBar:"⥒",lEg:"⪋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",Lfr:"𝔏",lfr:"𝔩",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",LJcy:"Љ",ljcy:"љ",Ll:"⋘",ll:"≪",llarr:"⇇",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",Lmidot:"Ŀ",lmidot:"ŀ",lmoust:"⎰",lmoustache:"⎰",lnap:"⪉",lnapprox:"⪉",lnE:"≨",lne:"⪇",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",LongLeftArrow:"⟵",Longleftarrow:"⟸",longleftarrow:"⟵",LongLeftRightArrow:"⟷",Longleftrightarrow:"⟺",longleftrightarrow:"⟷",longmapsto:"⟼",LongRightArrow:"⟶",Longrightarrow:"⟹",longrightarrow:"⟶",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",Lopf:"𝕃",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"",lrtri:"⊿",lsaquo:"‹",Lscr:"ℒ",lscr:"𝓁",Lsh:"↰",lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",Lstrok:"Ł",lstrok:"ł",Lt:"≪",LT:"<",lt:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"¯",male:"♂",malt:"✠",maltese:"✠",Map:"⤅",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",Mcy:"М",mcy:"м",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",mfr:"𝔪",mho:"℧",micro:"µ",mid:"∣",midast:"*",midcir:"⫰",middot:"·",minus:"−",minusb:"⊟",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",Mopf:"𝕄",mopf:"𝕞",mp:"∓",Mscr:"ℳ",mscr:"𝓂",mstpos:"∾",Mu:"Μ",mu:"μ",multimap:"⊸",mumap:"⊸",nabla:"∇",Nacute:"Ń",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natur:"♮",natural:"♮",naturals:"ℕ",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",Ncaron:"Ň",ncaron:"ň",Ncedil:"Ņ",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",Ncy:"Н",ncy:"н",ndash:"–",ne:"≠",nearhk:"⤤",neArr:"⇗",nearr:"↗",nearrow:"↗",nedot:"≐̸",NegativeMediumSpace:"",NegativeThickSpace:"",NegativeThinSpace:"",NegativeVeryThinSpace:"",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:"\n",nexist:"∄",nexists:"∄",Nfr:"𝔑",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",nGt:"≫⃒",ngt:"≯",ngtr:"≯",nGtv:"≫̸",nhArr:"⇎",nharr:"↮",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",NJcy:"Њ",njcy:"њ",nlArr:"⇍",nlarr:"↚",nldr:"‥",nlE:"≦̸",nle:"≰",nLeftarrow:"⇍",nleftarrow:"↚",nLeftrightarrow:"⇎",nleftrightarrow:"↮",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nLt:"≪⃒",nlt:"≮",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"",NonBreakingSpace:" ",Nopf:"ℕ",nopf:"𝕟",Not:"⫬",not:"¬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",npar:"∦",nparallel:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",npre:"⪯̸",nprec:"⊀",npreceq:"⪯̸",nrArr:"⇏",nrarr:"↛",nrarrc:"⤳̸",nrarrw:"↝̸",nRightarrow:"⇏",nrightarrow:"↛",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",Nscr:"𝒩",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",Ntilde:"Ñ",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",Nu:"Ν",nu:"ν",num:"#",numero:"№",numsp:" ",nvap:"≍⃒",nVDash:"⊯",nVdash:"⊮",nvDash:"⊭",nvdash:"⊬",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwArr:"⇖",nwarr:"↖",nwarrow:"↖",nwnear:"⤧",Oacute:"Ó",oacute:"ó",oast:"⊛",ocir:"⊚",Ocirc:"Ô",ocirc:"ô",Ocy:"О",ocy:"о",odash:"⊝",Odblac:"Ő",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",OElig:"Œ",oelig:"œ",ofcir:"⦿",Ofr:"𝔒",ofr:"𝔬",ogon:"˛",Ograve:"Ò",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",Omacr:"Ō",omacr:"ō",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"ο",omid:"⦶",ominus:"⊖",Oopf:"𝕆",oopf:"𝕠",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",operp:"⦹",oplus:"⊕",Or:"⩔",or:"∨",orarr:"↻",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",Oscr:"𝒪",oscr:"ℴ",Oslash:"Ø",oslash:"ø",osol:"⊘",Otilde:"Õ",otilde:"õ",Otimes:"⨷",otimes:"⊗",otimesas:"⨶",Ouml:"Ö",ouml:"ö",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",par:"∥",para:"¶",parallel:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",Pcy:"П",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",Pfr:"𝔓",pfr:"𝔭",Phi:"Φ",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",Pi:"Π",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plus:"+",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",Poincareplane:"ℌ",pointint:"⨕",Popf:"ℙ",popf:"𝕡",pound:"£",Pr:"⪻",pr:"≺",prap:"⪷",prcue:"≼",prE:"⪳",pre:"⪯",prec:"≺",precapprox:"⪷",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",precsim:"≾",Prime:"″",prime:"′",primes:"ℙ",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportion:"∷",Proportional:"∝",propto:"∝",prsim:"≾",prurel:"⊰",Pscr:"𝒫",pscr:"𝓅",Psi:"Ψ",psi:"ψ",puncsp:" ",Qfr:"𝔔",qfr:"𝔮",qint:"⨌",Qopf:"ℚ",qopf:"𝕢",qprime:"⁗",Qscr:"𝒬",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",QUOT:'"',quot:'"',rAarr:"⇛",race:"∽̱",Racute:"Ŕ",racute:"ŕ",radic:"√",raemptyv:"⦳",Rang:"⟫",rang:"⟩",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",Rarr:"↠",rArr:"⇒",rarr:"→",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",Rarrtl:"⤖",rarrtl:"↣",rarrw:"↝",rAtail:"⤜",ratail:"⤚",ratio:"∶",rationals:"ℚ",RBarr:"⤐",rBarr:"⤏",rbarr:"⤍",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",Rcaron:"Ř",rcaron:"ř",Rcedil:"Ŗ",rcedil:"ŗ",rceil:"⌉",rcub:"}",Rcy:"Р",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",Re:"ℜ",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",rect:"▭",REG:"®",reg:"®",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"⌋",Rfr:"ℜ",rfr:"𝔯",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",Rho:"Ρ",rho:"ρ",rhov:"ϱ",RightAngleBracket:"⟩",RightArrow:"→",Rightarrow:"⇒",rightarrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",Ropf:"ℝ",ropf:"𝕣",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"›",Rscr:"ℛ",rscr:"𝓇",Rsh:"↱",rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"⧴",ruluhar:"⥨",rx:"℞",Sacute:"Ś",sacute:"ś",sbquo:"‚",Sc:"⪼",sc:"≻",scap:"⪸",Scaron:"Š",scaron:"š",sccue:"≽",scE:"⪴",sce:"⪰",Scedil:"Ş",scedil:"ş",Scirc:"Ŝ",scirc:"ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",Scy:"С",scy:"с",sdot:"⋅",sdotb:"⊡",sdote:"⩦",searhk:"⤥",seArr:"⇘",searr:"↘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",Sfr:"𝔖",sfr:"𝔰",sfrown:"⌢",sharp:"♯",SHCHcy:"Щ",shchcy:"щ",SHcy:"Ш",shcy:"ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"∣",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"",Sigma:"Σ",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",SOFTcy:"Ь",softcy:"ь",sol:"/",solb:"⧄",solbar:"⌿",Sopf:"𝕊",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",squ:"□",Square:"□",square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squf:"▪",srarr:"→",Sscr:"𝒮",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",Star:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",Sub:"⋐",sub:"⊂",subdot:"⪽",subE:"⫅",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",Subset:"⋐",subset:"⊂",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succ:"≻",succapprox:"⪸",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",Sum:"∑",sum:"∑",sung:"♪",Sup:"⋑",sup:"⊃",sup1:"¹",sup2:"²",sup3:"³",supdot:"⪾",supdsub:"⫘",supE:"⫆",supe:"⊇",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",Supset:"⋑",supset:"⊃",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swArr:"⇙",swarr:"↙",swarrow:"↙",swnwar:"⤪",szlig:"ß",Tab:"\t",target:"⌖",Tau:"Τ",tau:"τ",tbrk:"⎴",Tcaron:"Ť",tcaron:"ť",Tcedil:"Ţ",tcedil:"ţ",Tcy:"Т",tcy:"т",tdot:"⃛",telrec:"⌕",Tfr:"𝔗",tfr:"𝔱",there4:"∴",Therefore:"∴",therefore:"∴",Theta:"Θ",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",ThickSpace:" ",thinsp:" ",ThinSpace:" ",thkap:"≈",thksim:"∼",THORN:"Þ",thorn:"þ",Tilde:"∼",tilde:"˜",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",times:"×",timesb:"⊠",timesbar:"⨱",timesd:"⨰",tint:"∭",toea:"⤨",top:"⊤",topbot:"⌶",topcir:"⫱",Topf:"𝕋",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",TRADE:"™",trade:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",Tscr:"𝒯",tscr:"𝓉",TScy:"Ц",tscy:"ц",TSHcy:"Ћ",tshcy:"ћ",Tstrok:"Ŧ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",Uacute:"Ú",uacute:"ú",Uarr:"↟",uArr:"⇑",uarr:"↑",Uarrocir:"⥉",Ubrcy:"Ў",ubrcy:"ў",Ubreve:"Ŭ",ubreve:"ŭ",Ucirc:"Û",ucirc:"û",Ucy:"У",ucy:"у",udarr:"⇅",Udblac:"Ű",udblac:"ű",udhar:"⥮",ufisht:"⥾",Ufr:"𝔘",ufr:"𝔲",Ugrave:"Ù",ugrave:"ù",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",Umacr:"Ū",umacr:"ū",uml:"¨",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",uogon:"ų",Uopf:"𝕌",uopf:"𝕦",UpArrow:"↑",Uparrow:"⇑",uparrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",UpDownArrow:"↕",Updownarrow:"⇕",updownarrow:"↕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",Upsi:"ϒ",upsi:"υ",upsih:"ϒ",Upsilon:"Υ",upsilon:"υ",UpTee:"⊥",UpTeeArrow:"↥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",Uring:"Ů",uring:"ů",urtri:"◹",Uscr:"𝒰",uscr:"𝓊",utdot:"⋰",Utilde:"Ũ",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",Uuml:"Ü",uuml:"ü",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",vArr:"⇕",varr:"↕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",Vbar:"⫫",vBar:"⫨",vBarv:"⫩",Vcy:"В",vcy:"в",VDash:"⊫",Vdash:"⊩",vDash:"⊨",vdash:"⊢",Vdashl:"⫦",Vee:"⋁",vee:"∨",veebar:"⊻",veeeq:"≚",vellip:"⋮",Verbar:"‖",verbar:"|",Vert:"‖",vert:"|",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",Vopf:"𝕍",vopf:"𝕧",vprop:"∝",vrtri:"⊳",Vscr:"𝒱",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",Vvdash:"⊪",vzigzag:"⦚",Wcirc:"Ŵ",wcirc:"ŵ",wedbar:"⩟",Wedge:"⋀",wedge:"∧",wedgeq:"≙",weierp:"℘",Wfr:"𝔚",wfr:"𝔴",Wopf:"𝕎",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",Wscr:"𝒲",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",Xfr:"𝔛",xfr:"𝔵",xhArr:"⟺",xharr:"⟷",Xi:"Ξ",xi:"ξ",xlArr:"⟸",xlarr:"⟵",xmap:"⟼",xnis:"⋻",xodot:"⨀",Xopf:"𝕏",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrArr:"⟹",xrarr:"⟶",Xscr:"𝒳",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",Yacute:"Ý",yacute:"ý",YAcy:"Я",yacy:"я",Ycirc:"Ŷ",ycirc:"ŷ",Ycy:"Ы",ycy:"ы",yen:"¥",Yfr:"𝔜",yfr:"𝔶",YIcy:"Ї",yicy:"ї",Yopf:"𝕐",yopf:"𝕪",Yscr:"𝒴",yscr:"𝓎",YUcy:"Ю",yucy:"ю",Yuml:"Ÿ",yuml:"ÿ",Zacute:"Ź",zacute:"ź",Zcaron:"Ž",zcaron:"ž",Zcy:"З",zcy:"з",Zdot:"Ż",zdot:"ż",zeetrf:"ℨ",ZeroWidthSpace:"",Zeta:"Ζ",zeta:"ζ",Zfr:"ℨ",zfr:"𝔷",ZHcy:"Ж",zhcy:"ж",zigrarr:"⇝",Zopf:"ℤ",zopf:"𝕫",Zscr:"𝒵",zscr:"𝓏",zwj:"",zwnj:""}),e.entityMap=e.HTML_ENTITIES),m;var e,r}var g,N,T,b={};function w(){if(g)return b;g=1;var e=n(),r=p(),t=i(),o=e.isHTMLEscapableRawTextElement,a=e.isHTMLMimeType,s=e.isHTMLRawTextElement,l=e.hasOwn,c=e.NAMESPACE,u=t.ParseError,d=t.DOMException;function f(){}f.prototype={parse:function(t,n,o){var i=this.domBuilder;i.startDocument(),w(n,n=Object.create(null)),function(t,n,o,i,s){var c=a(i.mimeType);function p(e){var t=";"===e[e.length-1]?e:e+";";if(!c&&t!==e)return s.error("EntityRef: expecting ;"),e;var n=r.Reference.exec(t);if(!n||n[0].length!==t.length)return s.error("entity not matching Reference production: "+e),e;var a=t.slice(1,-1);return l(o,a)?o[a]:"#"===a.charAt(0)?function(e){if(e>65535){var r=55296+((e-=65536)>>10),t=56320+(1023&e);return String.fromCharCode(r,t)}return String.fromCharCode(e)}(parseInt(a.substr(1).replace("x","0x"))):(s.error("entity not found:"+e),e)}function f(e){if(e>C){var r=t.substring(C,e).replace(h,p);A&&g(C),i.characters(r,0,e-C),C=e}}function g(e,r){for(;e>=w&&(r=v.exec(t));)b=r.index,w=b+r[0].length,A.lineNumber++;A.columnNumber=e-b+1}t.indexOf(r.UNICODE_REPLACEMENT_CHARACTER)>=0&&s.warning("Unicode replacement character detected, source encoding issues?");for(var b=0,w=0,v=/.*(?:\r\n?|\n)|.*$/g,A=i.locator,I=[{currentNSMap:n}],O=[],C=0;;){try{var x=t.indexOf("<",C);if(x<0){if(!c&&O.length>0)return s.fatalError("unclosed xml tag(s): "+O.join(", "));if(!t.substring(C).match(/^\s*$/)){var _=i.doc,R=_.createTextNode(t.substr(C));if(_.documentElement)return s.error("Extra content at the end of the document");_.appendChild(R),i.currentElement=R}return}if(x>C){var L=t.substring(C,x);c||0!==O.length||(L=L.replace(new RegExp(r.S_OPT.source,"g"),""))&&s.error("Unexpected content outside root element: '"+L+"'"),f(x)}switch(t.charAt(x+1)){case"/":var M=t.indexOf(">",x+2),q=t.substring(x+2,M>0?M:void 0);if(!q)return s.fatalError("end tag name missing");var P=M>0&&r.reg("^",r.QName_group,r.S_OPT,"$").exec(q);if(!P)return s.fatalError('end tag name contains invalid characters: "'+q+'"');if(!i.currentElement&&!i.doc.documentElement)return;var U=O[O.length-1]||i.currentElement.tagName||i.doc.documentElement.tagName||"";if(U!==P[1]){var k=P[1].toLowerCase();if(!c||U.toLowerCase()!==k)return s.fatalError('Opening and ending tag mismatch: "'+U+'" != "'+q+'"')}var H=I.pop();O.pop();var V=H.localNSMap;if(i.endElement(H.uri,H.localName,U),V)for(var B in V)l(V,B)&&i.endPrefixMapping(B);M++;break;case"?":A&&g(x),M=D(t,x,i,s);break;case"!":A&&g(x),M=y(t,x,i,s,c);break;default:A&&g(x);var F=new S,G=I[I.length-1].currentNSMap,Y=(M=E(t,x,F,G,p,s,c),F.length);if(F.closed||(c&&e.isHTMLVoidElement(F.tagName)?F.closed=!0:O.push(F.tagName)),A&&Y){for(var X=m(A,{}),j=0;j<Y;j++){var z=F[j];g(z.offset),z.locator=m(A,{})}i.locator=X,N(F,i,G)&&I.push(F),i.locator=A}else N(F,i,G)&&I.push(F);c&&!F.closed?M=T(t,M,F.tagName,p,i):M++}}catch(e){if(e instanceof u)throw e;if(e instanceof d)throw new u(e.name+": "+e.message,i.locator,e);s.error("element parse error: "+e),M=-1}M>C?C=M:f(Math.max(x,C)+1)}}(t,n,o,i,this.errorHandler),i.endDocument()}};var h=/&#?\w+;?/g;function m(e,r){return r.lineNumber=e.lineNumber,r.columnNumber=e.columnNumber,r}function E(e,r,t,n,o,a,i){function s(e,r,n){return l(t.attributeNames,e)?a.fatalError("Attribute "+e+" redefined"):!i&&r.indexOf("<")>=0?a.fatalError("Unescaped '<' not allowed in attributes values"):void t.addValue(e,r.replace(/[\t\n\r]/g," ").replace(h,o),n)}for(var c,u=++r,p=0;;){var d=e.charAt(u);switch(d){case"=":if(1===p)c=e.slice(r,u),p=3;else{if(2!==p)throw new Error("attribute equal must after attrName");p=3}break;case"'":case'"':if(3===p||1===p){if(1===p&&(a.warning('attribute value must after "="'),c=e.slice(r,u)),r=u+1,!((u=e.indexOf(d,r))>0))throw new Error("attribute value no end '"+d+"' match");s(c,f=e.slice(r,u),r-1),p=5}else{if(4!=p)throw new Error('attribute value must after "="');s(c,f=e.slice(r,u),r),a.warning('attribute "'+c+'" missed start quot('+d+")!!"),r=u+1,p=5}break;case"/":switch(p){case 0:t.setTagName(e.slice(r,u));case 5:case 6:case 7:p=7,t.closed=!0;case 4:case 1:break;case 2:t.closed=!0;break;default:throw new Error("attribute invalid close char('/')")}break;case"":return a.error("unexpected end of input"),0==p&&t.setTagName(e.slice(r,u)),u;case">":switch(p){case 0:t.setTagName(e.slice(r,u));case 5:case 6:case 7:break;case 4:case 1:"/"===(f=e.slice(r,u)).slice(-1)&&(t.closed=!0,f=f.slice(0,-1));case 2:2===p&&(f=c),4==p?(a.warning('attribute "'+f+'" missed quot(")!'),s(c,f,r)):(i||a.warning('attribute "'+f+'" missed value!! "'+f+'" instead!!'),s(f,f,r));break;case 3:if(!i)return a.fatalError("AttValue: ' or \" expected")}return u;case"":d=" ";default:if(d<=" ")switch(p){case 0:t.setTagName(e.slice(r,u)),p=6;break;case 1:c=e.slice(r,u),p=2;break;case 4:var f=e.slice(r,u);a.warning('attribute "'+f+'" missed quot(")!!'),s(c,f,r);case 5:p=6}else switch(p){case 2:i||a.warning('attribute "'+c+'" missed value!! "'+c+'" instead2!!'),s(c,c,r),r=u,p=1;break;case 5:a.warning('attribute space is required"'+c+'"!!');case 6:p=1,r=u;break;case 3:p=4,r=u;break;case 7:throw new Error("elements closed character '/' and '>' must be connected to")}}u++}}function N(e,r,t){for(var n=e.tagName,o=null,a=e.length;a--;){var i=e[a],s=i.qName,u=i.value;if((h=s.indexOf(":"))>0)var p=i.prefix=s.slice(0,h),d=s.slice(h+1),f="xmlns"===p&&d;else d=s,p=null,f="xmlns"===s&&"";i.localName=d,!1!==f&&(null==o&&(o=Object.create(null),w(t,t=Object.create(null))),t[f]=o[f]=u,i.uri=c.XMLNS,r.startPrefixMapping(f,u))}for(a=e.length;a--;)(i=e[a]).prefix&&("xml"===i.prefix&&(i.uri=c.XML),"xmlns"!==i.prefix&&(i.uri=t[i.prefix]));var h;(h=n.indexOf(":"))>0?(p=e.prefix=n.slice(0,h),d=e.localName=n.slice(h+1)):(p=null,d=e.localName=n);var m=e.uri=t[p||""];if(r.startElement(m,d,n,e),!e.closed)return e.currentNSMap=t,e.localNSMap=o,!0;if(r.endElement(m,d,n),o)for(p in o)l(o,p)&&r.endPrefixMapping(p)}function T(e,r,t,n,a){var i=o(t);if(i||s(t)){var l=e.indexOf("</"+t+">",r),c=e.substring(r+1,l);return i&&(c=c.replace(h,n)),a.characters(c,0,c.length),l}return r+1}function w(e,r){for(var t in e)l(e,t)&&(r[t]=e[t])}function v(e,t){var n=t;function o(r){return r=r||0,e.charAt(n+r)}function a(e){n+=e=e||1}function i(){return e.substring(n)}return{char:o,getIndex:function(){return n},getMatch:function(e){var t=r.reg("^",e).exec(i());return t?(a(t[0].length),t[0]):null},getSource:function(){return e},skip:a,skipBlanks:function(){for(var r=0;n<e.length;){var t=o();if(" "!==t&&"\n"!==t&&"\t"!==t&&"\r"!==t)return r;r++,a()}return-1},substringFromIndex:i,substringStartsWith:function(r){return e.substring(n,n+r.length)===r},substringStartsWithCaseInsensitive:function(r){return e.substring(n,n+r.length).toUpperCase()===r.toUpperCase()}}}function y(e,t,n,o,a){var i=v(e,t);switch(a?i.char(2).toUpperCase():i.char(2)){case"-":var s=i.getMatch(r.Comment);return s?(n.comment(s,r.COMMENT_START.length,s.length-r.COMMENT_START.length-r.COMMENT_END.length),i.getIndex()):o.fatalError("comment is not well-formed at position "+i.getIndex());case"[":var l=i.getMatch(r.CDSect);return l?a||n.currentElement?(n.startCDATA(),n.characters(l,r.CDATA_START.length,l.length-r.CDATA_START.length-r.CDATA_END.length),n.endCDATA(),i.getIndex()):o.fatalError("CDATA outside of element"):o.fatalError("Invalid CDATA starting at position "+t);case"D":if(n.doc&&n.doc.documentElement)return o.fatalError("Doctype not allowed inside or after documentElement at position "+i.getIndex());if(a?!i.substringStartsWithCaseInsensitive(r.DOCTYPE_DECL_START):!i.substringStartsWith(r.DOCTYPE_DECL_START))return o.fatalError("Expected "+r.DOCTYPE_DECL_START+" at position "+i.getIndex());if(i.skip(r.DOCTYPE_DECL_START.length),i.skipBlanks()<1)return o.fatalError("Expected whitespace after "+r.DOCTYPE_DECL_START+" at position "+i.getIndex());var c={name:void 0,publicId:void 0,systemId:void 0,internalSubset:void 0};if(c.name=i.getMatch(r.Name),!c.name)return o.fatalError("doctype name missing or contains unexpected characters at position "+i.getIndex());if(a&&"html"!==c.name.toLowerCase()&&o.warning("Unexpected DOCTYPE in HTML document at position "+i.getIndex()),i.skipBlanks(),i.substringStartsWith(r.PUBLIC)||i.substringStartsWith(r.SYSTEM)){var u=r.ExternalID_match.exec(i.substringFromIndex());if(!u)return o.fatalError("doctype external id is not well-formed at position "+i.getIndex());void 0!==u.groups.SystemLiteralOnly?c.systemId=u.groups.SystemLiteralOnly:(c.systemId=u.groups.SystemLiteral,c.publicId=u.groups.PubidLiteral),i.skip(u[0].length)}else if(a&&i.substringStartsWithCaseInsensitive(r.SYSTEM)){if(i.skip(r.SYSTEM.length),i.skipBlanks()<1)return o.fatalError("Expected whitespace after "+r.SYSTEM+" at position "+i.getIndex());if(c.systemId=i.getMatch(r.ABOUT_LEGACY_COMPAT_SystemLiteral),!c.systemId)return o.fatalError("Expected "+r.ABOUT_LEGACY_COMPAT+" in single or double quotes after "+r.SYSTEM+" at position "+i.getIndex())}return a&&c.systemId&&!r.ABOUT_LEGACY_COMPAT_SystemLiteral.test(c.systemId)&&o.warning("Unexpected doctype.systemId in HTML document at position "+i.getIndex()),a||(i.skipBlanks(),c.internalSubset=function(e,t){function n(e,t){var n=r.PI.exec(e.substringFromIndex());return n?"xml"===n[1].toLowerCase()?t.fatalError("xml declaration is only allowed at the start of the document, but found at position "+e.getIndex()):(e.skip(n[0].length),n[0]):t.fatalError("processing instruction is not well-formed at position "+e.getIndex())}var o=e.getSource();if("["===e.char()){e.skip(1);for(var a=e.getIndex();e.getIndex()<o.length;){if(e.skipBlanks(),"]"===e.char()){var i=o.substring(a,e.getIndex());return e.skip(1),i}var s=null;if("<"===e.char()&&"!"===e.char(1))switch(e.char(2)){case"E":"L"===e.char(3)?s=e.getMatch(r.elementdecl):"N"===e.char(3)&&(s=e.getMatch(r.EntityDecl));break;case"A":s=e.getMatch(r.AttlistDecl);break;case"N":s=e.getMatch(r.NotationDecl);break;case"-":s=e.getMatch(r.Comment)}else if("<"===e.char()&&"?"===e.char(1))s=n(e,t);else{if("%"!==e.char())return t.fatalError("Error detected in Markup declaration");s=e.getMatch(r.PEReference)}if(!s)return t.fatalError("Error in internal subset at position "+e.getIndex())}return t.fatalError("doctype internal subset is not well-formed, missing ]")}}(i,o)),i.skipBlanks(),">"!==i.char()?o.fatalError("doctype not terminated with > at position "+i.getIndex()):(i.skip(1),n.startDTD(c.name,c.publicId,c.systemId,c.internalSubset),n.endDTD(),i.getIndex());default:return o.fatalError('Not well-formed XML starting with "<!" at position '+t)}}function D(e,t,n,o){var a=e.substring(t).match(r.PI);if(!a)return o.fatalError("Invalid processing instruction starting at position "+t);if("xml"===a[1].toLowerCase()){if(t>0)return o.fatalError("processing instruction at position "+t+" is an xml declaration which is only at the start of the document");if(!r.XMLDecl.test(e.substring(t)))return o.fatalError("xml declaration is not well-formed")}return n.processingInstruction(a[1],a[2]),t+a[0].length}function S(){this.attributeNames=Object.create(null)}return S.prototype={setTagName:function(e){if(!r.QName_exact.test(e))throw new Error("invalid tagName:"+e);this.tagName=e},addValue:function(e,t,n){if(!r.QName_exact.test(e))throw new Error("invalid attribute:"+e);this.attributeNames[e]=this.length,this[this.length++]={qName:e,value:t,offset:n}},length:0,getLocalName:function(e){return this[e].localName},getLocator:function(e){return this[e].locator},getQName:function(e){return this[e].qName},getURI:function(e){return this[e].uri},getValue:function(e){return this[e].value}},b.XMLReader=f,b.parseUtils=v,b.parseDoctypeCommentOrCData=y,b}var v=function(){if(T)return r;T=1;var e=n();r.assign=e.assign,r.hasDefaultHTMLNamespace=e.hasDefaultHTMLNamespace,r.isHTMLMimeType=e.isHTMLMimeType,r.isValidMimeType=e.isValidMimeType,r.MIME_TYPE=e.MIME_TYPE,r.NAMESPACE=e.NAMESPACE;var t=i();r.DOMException=t.DOMException,r.DOMExceptionName=t.DOMExceptionName,r.ExceptionCode=t.ExceptionCode,r.ParseError=t.ParseError;var o=d();r.Attr=o.Attr,r.CDATASection=o.CDATASection,r.CharacterData=o.CharacterData,r.Comment=o.Comment,r.Document=o.Document,r.DocumentFragment=o.DocumentFragment,r.DocumentType=o.DocumentType,r.DOMImplementation=o.DOMImplementation,r.Element=o.Element,r.Entity=o.Entity,r.EntityReference=o.EntityReference,r.LiveNodeList=o.LiveNodeList,r.NamedNodeMap=o.NamedNodeMap,r.Node=o.Node,r.NodeList=o.NodeList,r.Notation=o.Notation,r.ProcessingInstruction=o.ProcessingInstruction,r.Text=o.Text,r.XMLSerializer=o.XMLSerializer;var a=function(){if(N)return h;N=1;var e=n(),r=d(),t=i(),o=E(),a=w(),s=r.DOMImplementation,l=e.hasDefaultHTMLNamespace,c=e.isHTMLMimeType,u=e.isValidMimeType,p=e.MIME_TYPE,f=e.NAMESPACE,m=t.ParseError,g=a.XMLReader;function T(e){return e.replace(/\r[\n\u0085]/g,"\n").replace(/[\r\u0085\u2028]/g,"\n")}function b(r){if(void 0===(r=r||{}).locator&&(r.locator=!0),this.assign=r.assign||e.assign,this.domHandler=r.domHandler||v,this.onError=r.onError||r.errorHandler,r.errorHandler&&"function"!=typeof r.errorHandler)throw new TypeError("errorHandler object is no longer supported, switch to onError!");r.errorHandler&&r.errorHandler("warning","The `errorHandler` option has been deprecated, use `onError` instead!",this),this.normalizeLineEndings=r.normalizeLineEndings||T,this.locator=!!r.locator,this.xmlns=this.assign(Object.create(null),r.xmlns)}function v(e){var r=e||{};this.mimeType=r.mimeType||p.XML_APPLICATION,this.defaultNamespace=r.defaultNamespace||null,this.cdata=!1,this.currentElement=void 0,this.doc=void 0,this.locator=void 0,this.onError=r.onError}function y(e,r){r.lineNumber=e.lineNumber,r.columnNumber=e.columnNumber}function D(e,r,t){return"string"==typeof e?e.substr(r,t):e.length>=r+t||r?new java.lang.String(e,r,t)+"":e}function S(e,r){e.currentElement?e.currentElement.appendChild(r):e.doc.appendChild(r)}return b.prototype.parseFromString=function(r,t){if(!u(t))throw new TypeError('DOMParser.parseFromString: the provided mimeType "'+t+'" is not valid.');var n=this.assign(Object.create(null),this.xmlns),a=o.XML_ENTITIES,i=n[""]||null;l(t)?(a=o.HTML_ENTITIES,i=f.HTML):t===p.XML_SVG_IMAGE&&(i=f.SVG),n[""]=i,n.xml=n.xml||f.XML;var s=new this.domHandler({mimeType:t,defaultNamespace:i,onError:this.onError}),c=this.locator?{}:void 0;this.locator&&s.setDocumentLocator(c);var d=new g;return d.errorHandler=s,d.domBuilder=s,!e.isHTMLMimeType(t)&&"string"!=typeof r&&d.errorHandler.fatalError("source is not a string"),d.parse(this.normalizeLineEndings(String(r)),n,a),s.doc.documentElement||d.errorHandler.fatalError("missing root element"),s.doc},v.prototype={startDocument:function(){var e=new s;this.doc=c(this.mimeType)?e.createHTMLDocument(!1):e.createDocument(this.defaultNamespace,"")},startElement:function(e,r,t,n){var o=this.doc,a=o.createElementNS(e,t||r),i=n.length;S(this,a),this.currentElement=a,this.locator&&y(this.locator,a);for(var s=0;s<i;s++){e=n.getURI(s);var l=n.getValue(s),c=(t=n.getQName(s),o.createAttributeNS(e,t));this.locator&&y(n.getLocator(s),c),c.value=c.nodeValue=l,a.setAttributeNode(c)}},endElement:function(e,r,t){this.currentElement=this.currentElement.parentNode},startPrefixMapping:function(e,r){},endPrefixMapping:function(e){},processingInstruction:function(e,r){var t=this.doc.createProcessingInstruction(e,r);this.locator&&y(this.locator,t),S(this,t)},ignorableWhitespace:function(e,r,t){},characters:function(e,r,t){if(e=D.apply(this,arguments)){if(this.cdata)var n=this.doc.createCDATASection(e);else n=this.doc.createTextNode(e);this.currentElement?this.currentElement.appendChild(n):/^\s*$/.test(e)&&this.doc.appendChild(n),this.locator&&y(this.locator,n)}},skippedEntity:function(e){},endDocument:function(){this.doc.normalize()},setDocumentLocator:function(e){e&&(e.lineNumber=0),this.locator=e},comment:function(e,r,t){e=D.apply(this,arguments);var n=this.doc.createComment(e);this.locator&&y(this.locator,n),S(this,n)},startCDATA:function(){this.cdata=!0},endCDATA:function(){this.cdata=!1},startDTD:function(e,r,t,n){var o=this.doc.implementation;if(o&&o.createDocumentType){var a=o.createDocumentType(e,r,t,n);this.locator&&y(this.locator,a),S(this,a),this.doc.doctype=a}},reportError:function(e,r){if("function"==typeof this.onError)try{this.onError(e,r,this)}catch(t){throw new m("Reporting "+e+' "'+r+'" caused '+t,this.locator)}else console.error("[xmldom "+e+"]\t"+r,function(e){if(e)return"\n@#[line:"+e.lineNumber+",col:"+e.columnNumber+"]"}(this.locator))},warning:function(e){this.reportError("warning",e)},error:function(e){this.reportError("error",e)},fatalError:function(e){throw this.reportError("fatalError",e),new m(e,this.locator)}},"endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl".replace(/\w+/g,function(e){v.prototype[e]=function(){return null}}),h.__DOMHandler=v,h.DOMParser=b,h.normalizeLineEndings=T,h.onErrorStopParsing=function(e){if("error"===e)throw"onErrorStopParsing"},h.onWarningStopParsing=function(){throw"onWarningStopParsing"},h}();return r.DOMParser=a.DOMParser,r.onErrorStopParsing=a.onErrorStopParsing,r.onWarningStopParsing=a.onWarningStopParsing,r}();const y=function(e,r){for(var t=0;t<r.length;t++){const n=r[t];if("string"!=typeof n&&!Array.isArray(n))for(const r in n)if("default"!==r&&!(r in e)){const t=Object.getOwnPropertyDescriptor(n,r);t&&Object.defineProperty(e,r,t.get?t:{enumerable:!0,get:()=>n[r]})}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}({__proto__:null,default:function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}(v)},[v]);exports.i=y;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.12
|
|
3
|
+
*
|
|
4
|
+
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
|
+
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
|
+
*/
|
|
7
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./DJbKKxeeTEHHA1gR.cjs"),e=["Ok","Cancel"],o=t.reactExports.memo(o=>{const{initialComments:n=null,onUpdateComments:s,context:a,onOption:i,onValidateOption:r,onDone:l,options:p=e,defaultOption:c=p?.[0],cancelOption:u="Cancel",sx:x,...m}=o,d=t.reactExports.useMemo(()=>{const t=n??a?.()?.getComments();let e="";if(t&&t.content&&t.content.runs){const o=t.content.runs;for(let t=0;t<o.length;t++){const n=o[t];e+=n?.text}}return e},[]),[g,f]=t.reactExports.useState(d),[h,C]=t.reactExports.useState(!1),E=t.reactExports.useCallback(async(t,e)=>null,[]),j=t.go(async t=>{const e=""===g?[]:g.split("\n");if(t!==u){const t=[];for(let o=0;o<e.length;o++)t.push({text:e[o]});const o={content:{runs:t}};s?.(o)}i?.(t,t===u,t===c),l?.()},[g,s,l,i,c,u]),O=t.go(t=>{f(t.target.value),E(t.target.value,null)},[r]),b=t.go(async t=>{let e=await Promise.resolve(r?.(t));try{!1!==e&&(e=await E(g,t))}catch(t){}return e??!0},[r,g]);return t.jsxRuntimeExports.jsx(t.sb,{title:(d?"Edit":"Insert")+" Comments",options:p,onDone:l,onOption:t=>j(t),onValidateOption:b,defaultOption:c,cancelOption:u,autoFocusSel:".autoFocus",sx:{width:"480px",...x},...m,children:t.jsxRuntimeExports.jsx(t.Box,{sx:{paddingTop:t=>t.spacing(1),paddingBottom:t=>t.spacing(0),rowGap:t=>t.spacing(1),display:"flex",flexDirection:"column"},children:t.jsxRuntimeExports.jsx(t.FormControl,{sx:{paddingTop:t=>t.spacing(1.5),minWidth:135,width:"100%"},size:"small",children:t.jsxRuntimeExports.jsx(t.TextField,{label:"Comments",placeholder:"Enter a comment.",onFocus:t=>{h||t.target?.select(),C(!0)},sx:{"& .MuiFormHelperText-root":{marginTop:t=>t.spacing(.5)}},InputLabelProps:{shrink:!0},InputProps:{inputProps:{className:"autoFocus",spellCheck:!1,autoComplete:"off",sx:{paddingTop:t=>t.spacing(1.25),paddingBottom:t=>t.spacing(.75),backgroundImage:`linear-gradient(${t.alpha("#fff",t.hx(5))}, ${t.alpha("#fff",t.hx(5))})`}}},value:g,onChange:O,onContextMenu:t=>{t.stopPropagation()}})})})})});exports.CommentsDialog=o,exports.default=o;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.12
|
|
3
|
+
*
|
|
4
|
+
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
|
+
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
|
+
*/
|
|
7
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e,t={exports:{}};const i=function(e,t){for(var i=0;i<t.length;i++){const r=t[i];if("string"!=typeof r&&!Array.isArray(r))for(const t in r)if("default"!==t&&!(t in e)){const i=Object.getOwnPropertyDescriptor(r,t);i&&Object.defineProperty(e,t,i.get?i:{enumerable:!0,get:()=>r[t]})}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}({__proto__:null},[(e||(e=1,t.exports=function e(){var t,i="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==i?i:{},r=!i.document&&!!i.postMessage,n=i.IS_PAPA_WORKER||!1,s={},a=0,o={};function h(e){this._handle=null,this._finished=!1,this._completed=!1,this._halted=!1,this._input=null,this._baseIndex=0,this._partialLine="",this._rowCount=0,this._start=0,this._nextChunk=null,this.isFirstChunk=!0,this._completeResults={data:[],errors:[],meta:{}},function(e){var t=k(e);t.chunkSize=parseInt(t.chunkSize),e.step||e.chunk||(t.chunkSize=null),this._handle=new c(t),(this._handle.streamer=this)._config=t}.call(this,e),this.parseChunk=function(e,t){var r=parseInt(this._config.skipFirstNLines)||0;if(this.isFirstChunk&&0<r){let t=this._config.newline;t||(s=this._config.quoteChar||'"',t=this._handle.guessLineEndings(e,s)),e=[...e.split(t).slice(r)].join(t)}this.isFirstChunk&&v(this._config.beforeFirstChunk)&&void 0!==(s=this._config.beforeFirstChunk(e))&&(e=s),this.isFirstChunk=!1,this._halted=!1,r=this._partialLine+e;var s=(this._partialLine="",this._handle.parse(r,this._baseIndex,!this._finished));if(!this._handle.paused()&&!this._handle.aborted()){if(e=s.meta.cursor,this._finished||(this._partialLine=r.substring(e-this._baseIndex),this._baseIndex=e),s&&s.data&&(this._rowCount+=s.data.length),r=this._finished||this._config.preview&&this._rowCount>=this._config.preview,n)i.postMessage({results:s,workerId:o.WORKER_ID,finished:r});else if(v(this._config.chunk)&&!t){if(this._config.chunk(s,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);this._completeResults=s=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(s.data),this._completeResults.errors=this._completeResults.errors.concat(s.errors),this._completeResults.meta=s.meta),this._completed||!r||!v(this._config.complete)||s&&s.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),r||s&&s.meta.paused||this._nextChunk(),s}this._halted=!0},this._sendError=function(e){v(this._config.error)?this._config.error(e):n&&this._config.error&&i.postMessage({workerId:o.WORKER_ID,error:e,finished:!1})}}function u(e){var t;(e=e||{}).chunkSize||(e.chunkSize=o.RemoteChunkSize),h.call(this,e),this._nextChunk=r?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(e){this._input=e,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(t=new XMLHttpRequest,this._config.withCredentials&&(t.withCredentials=this._config.withCredentials),r||(t.onload=b(this._chunkLoaded,this),t.onerror=b(this._chunkError,this)),t.open(this._config.downloadRequestBody?"POST":"GET",this._input,!r),this._config.downloadRequestHeaders){var e,i=this._config.downloadRequestHeaders;for(e in i)t.setRequestHeader(e,i[e])}var n;this._config.chunkSize&&(n=this._start+this._config.chunkSize-1,t.setRequestHeader("Range","bytes="+this._start+"-"+n));try{t.send(this._config.downloadRequestBody)}catch(e){this._chunkError(e.message)}r&&0===t.status&&this._chunkError()}},this._chunkLoaded=function(){4===t.readyState&&(t.status<200||400<=t.status?this._chunkError():(this._start+=this._config.chunkSize||t.responseText.length,this._finished=!this._config.chunkSize||this._start>=(e=>null!==(e=e.getResponseHeader("Content-Range"))?parseInt(e.substring(e.lastIndexOf("/")+1)):-1)(t),this.parseChunk(t.responseText)))},this._chunkError=function(e){e=t.statusText||e,this._sendError(new Error(e))}}function d(e){(e=e||{}).chunkSize||(e.chunkSize=o.LocalChunkSize),h.call(this,e);var t,i,r="undefined"!=typeof FileReader;this.stream=function(e){this._input=e,i=e.slice||e.webkitSlice||e.mozSlice,r?((t=new FileReader).onload=b(this._chunkLoaded,this),t.onerror=b(this._chunkError,this)):t=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount<this._config.preview)||this._readChunk()},this._readChunk=function(){var e=this._input,n=(this._config.chunkSize&&(n=Math.min(this._start+this._config.chunkSize,this._input.size),e=i.call(e,this._start,n)),t.readAsText(e,this._config.encoding));r||this._chunkLoaded({target:{result:n}})},this._chunkLoaded=function(e){this._start+=this._config.chunkSize,this._finished=!this._config.chunkSize||this._start>=this._input.size,this.parseChunk(e.target.result)},this._chunkError=function(){this._sendError(t.error)}}function f(e){var t;h.call(this,e=e||{}),this.stream=function(e){return t=e,this._nextChunk()},this._nextChunk=function(){var e,i;if(!this._finished)return e=this._config.chunkSize,t=e?(i=t.substring(0,e),t.substring(e)):(i=t,""),this._finished=!t,this.parseChunk(i)}}function l(e){h.call(this,e=e||{});var t=[],i=!0,r=!1;this.pause=function(){h.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){h.prototype.resume.apply(this,arguments),this._input.resume()},this.stream=function(e){this._input=e,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError)},this._checkIsFinished=function(){r&&1===t.length&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),t.length?this.parseChunk(t.shift()):i=!0},this._streamData=b(function(e){try{t.push("string"==typeof e?e:e.toString(this._config.encoding)),i&&(i=!1,this._checkIsFinished(),this.parseChunk(t.shift()))}catch(e){this._streamError(e)}},this),this._streamError=b(function(e){this._streamCleanUp(),this._sendError(e)},this),this._streamEnd=b(function(){this._streamCleanUp(),r=!0,this._streamData("")},this),this._streamCleanUp=b(function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)},this)}function c(e){var t,i,r,n,s=Math.pow(2,53),a=-s,h=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,u=/^((\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z)))$/,d=this,f=0,l=0,c=!1,_=!1,m=[],y={data:[],errors:[],meta:{}};function b(t){return"greedy"===e.skipEmptyLines?""===t.join("").trim():1===t.length&&0===t[0].length}function w(){if(y&&r&&(R("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+o.DefaultDelimiter+"'"),r=!1),e.skipEmptyLines&&(y.data=y.data.filter(function(e){return!b(e)})),E()){if(y)if(Array.isArray(y.data[0])){for(var t=0;E()&&t<y.data.length;t++)y.data[t].forEach(d);y.data.splice(0,1)}else y.data.forEach(d);function d(t,i){v(e.transformHeader)&&(t=e.transformHeader(t,i)),m.push(t)}}function i(t,i){for(var r=e.header?{}:[],n=0;n<t.length;n++){var o=n,d=t[n];d=((t,i)=>(t=>(e.dynamicTypingFunction&&void 0===e.dynamicTyping[t]&&(e.dynamicTyping[t]=e.dynamicTypingFunction(t)),!0===(e.dynamicTyping[t]||e.dynamicTyping)))(t)?"true"===i||"TRUE"===i||"false"!==i&&"FALSE"!==i&&((e=>{if(h.test(e)&&(e=parseFloat(e),a<e&&e<s))return 1})(i)?parseFloat(i):u.test(i)?new Date(i):""===i?null:i):i)(o=e.header?n>=m.length?"__parsed_extra":m[n]:o,d=e.transform?e.transform(d,o):d),"__parsed_extra"===o?(r[o]=r[o]||[],r[o].push(d)):r[o]=d}return e.header&&(n>m.length?R("FieldMismatch","TooManyFields","Too many fields: expected "+m.length+" fields but parsed "+n,l+i):n<m.length&&R("FieldMismatch","TooFewFields","Too few fields: expected "+m.length+" fields but parsed "+n,l+i)),r}var n;y&&(e.header||e.dynamicTyping||e.transform)&&(n=1,!y.data.length||Array.isArray(y.data[0])?(y.data=y.data.map(i),n=y.data.length):y.data=i(y.data,0),e.header&&y.meta&&(y.meta.fields=m),l+=n)}function E(){return e.header&&0===m.length}function R(e,t,i,r){e={type:e,code:t,message:i},void 0!==r&&(e.row=r),y.errors.push(e)}v(e.step)&&(n=e.step,e.step=function(t){y=t,E()?w():(w(),0!==y.data.length&&(f+=t.data.length,e.preview&&f>e.preview?i.abort():(y.data=y.data[0],n(y,d))))}),this.parse=function(n,s,a){var h=e.quoteChar||'"';return e.newline||(e.newline=this.guessLineEndings(n,h)),r=!1,e.delimiter?v(e.delimiter)&&(e.delimiter=e.delimiter(n),y.meta.delimiter=e.delimiter):((h=((t,i,r,n,s)=>{var a,h,u,d;s=s||[",","\t","|",";",o.RECORD_SEP,o.UNIT_SEP];for(var f=0;f<s.length;f++){for(var l,c=s[f],p=0,_=0,m=0,y=(u=void 0,new g({comments:n,delimiter:c,newline:i,preview:10}).parse(t)),k=0;k<y.data.length;k++)r&&b(y.data[k])?m++:(_+=l=y.data[k].length,void 0===u?u=l:0<l&&(p+=Math.abs(l-u),u=l));0<y.data.length&&(_/=y.data.length-m),(void 0===h||p<=h)&&(void 0===d||d<_)&&1.99<_&&(h=p,a=c,d=_)}return{successful:!!(e.delimiter=a),bestDelimiter:a}})(n,e.newline,e.skipEmptyLines,e.comments,e.delimitersToGuess)).successful?e.delimiter=h.bestDelimiter:(r=!0,e.delimiter=o.DefaultDelimiter),y.meta.delimiter=e.delimiter),h=k(e),e.preview&&e.header&&h.preview++,t=n,i=new g(h),y=i.parse(t,s,a),w(),c?{meta:{paused:!0}}:y||{meta:{paused:!1}}},this.paused=function(){return c},this.pause=function(){c=!0,i.abort(),t=v(e.chunk)?"":t.substring(i.getCharIndex())},this.resume=function(){d.streamer._halted?(c=!1,d.streamer.parseChunk(t,!0)):setTimeout(d.resume,3)},this.aborted=function(){return _},this.abort=function(){_=!0,i.abort(),y.meta.aborted=!0,v(e.complete)&&e.complete(y),t=""},this.guessLineEndings=function(e,t){e=e.substring(0,1048576),t=new RegExp(p(t)+"([^]*?)"+p(t),"gm");var i=(e=e.replace(t,"")).split("\r");if(e=1<(t=e.split("\n")).length&&t[0].length<i[0].length,1===i.length||e)return"\n";for(var r=0,n=0;n<i.length;n++)"\n"===i[n][0]&&r++;return r>=i.length/2?"\r\n":"\r"}}function p(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function g(e){var t=(e=e||{}).delimiter,i=e.newline,r=e.comments,n=e.step,s=e.preview,a=e.fastMode,h=null,u=!1,d=null==e.quoteChar?'"':e.quoteChar,f=d;if(void 0!==e.escapeChar&&(f=e.escapeChar),("string"!=typeof t||-1<o.BAD_DELIMITERS.indexOf(t))&&(t=","),r===t)throw new Error("Comment character same as delimiter");!0===r?r="#":("string"!=typeof r||-1<o.BAD_DELIMITERS.indexOf(r))&&(r=!1),"\n"!==i&&"\r"!==i&&"\r\n"!==i&&(i="\n");var l=0,c=!1;this.parse=function(o,g,_){if("string"!=typeof o)throw new Error("Input must be a string");var m=o.length,y=t.length,k=i.length,b=r.length,w=v(n),E=[],R=[],C=[],S=l=0;if(!o)return P();if(a||!1!==a&&-1===o.indexOf(d)){for(var O=o.split(i),x=0;x<O.length;x++){if(C=O[x],l+=C.length,x!==O.length-1)l+=i.length;else if(_)return P();if(!r||C.substring(0,b)!==r){if(w){if(E=[],F(C.split(t)),U(),c)return P()}else F(C.split(t));if(s&&s<=x)return E=E.slice(0,s),P(!0)}}return P()}for(var A=o.indexOf(t,l),I=o.indexOf(i,l),T=new RegExp(p(f)+p(d),"g"),D=o.indexOf(d,l);;)if(o[l]===d)for(D=l,l++;;){if(-1===(D=o.indexOf(d,D+1)))return _||R.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:E.length,index:l}),M();if(D===m-1)return M(o.substring(l,D).replace(T,d));if(d===f&&o[D+1]===f)D++;else if(d===f||0===D||o[D-1]!==f){-1!==A&&A<D+1&&(A=o.indexOf(t,D+1));var L=j(-1===(I=-1!==I&&I<D+1?o.indexOf(i,D+1):I)?A:Math.min(A,I));if(o.substr(D+1+L,y)===t){C.push(o.substring(l,D).replace(T,d)),o[l=D+1+L+y]!==d&&(D=o.indexOf(d,l)),A=o.indexOf(t,l),I=o.indexOf(i,l);break}if(L=j(I),o.substring(D+1+L,D+1+L+k)===i){if(C.push(o.substring(l,D).replace(T,d)),z(D+1+L+k),A=o.indexOf(t,l),D=o.indexOf(d,l),w&&(U(),c))return P();if(s&&E.length>=s)return P(!0);break}R.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:E.length,index:l}),D++}}else if(r&&0===C.length&&o.substring(l,l+b)===r){if(-1===I)return P();l=I+k,I=o.indexOf(i,l),A=o.indexOf(t,l)}else if(-1!==A&&(A<I||-1===I))C.push(o.substring(l,A)),l=A+y,A=o.indexOf(t,l);else{if(-1===I)break;if(C.push(o.substring(l,I)),z(I+k),w&&(U(),c))return P();if(s&&E.length>=s)return P(!0)}return M();function F(e){E.push(e),S=l}function j(e){return-1!==e&&(e=o.substring(D+1,e))&&""===e.trim()?e.length:0}function M(e){return _||(void 0===e&&(e=o.substring(l)),C.push(e),l=m,F(C),w&&U()),P()}function z(e){l=e,F(C),C=[],I=o.indexOf(i,l)}function P(r){if(e.header&&!g&&E.length&&!u){var n=E[0],s=Object.create(null),a=new Set(n);let t=!1;for(let i=0;i<n.length;i++){let r=n[i];if(s[r=v(e.transformHeader)?e.transformHeader(r,i):r]){let e,o=s[r];for(;e=r+"_"+o,o++,a.has(e););a.add(e),n[i]=e,s[r]++,t=!0,(h=null===h?{}:h)[e]=r}else s[r]=1,n[i]=r;a.add(r)}t&&console.warn("Duplicate headers found and renamed."),u=!0}return{data:E,errors:R,meta:{delimiter:t,linebreak:i,aborted:c,truncated:!!r,cursor:S+(g||0),renamedHeaders:h}}}function U(){n(P()),E=[],R=[]}},this.abort=function(){c=!0},this.getCharIndex=function(){return l}}function _(e){var t=e.data,i=s[t.workerId],r=!1;if(t.error)i.userError(t.error,t.file);else if(t.results&&t.results.data){var n={abort:function(){r=!0,m(t.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:y,resume:y};if(v(i.userStep)){for(var a=0;a<t.results.data.length&&(i.userStep({data:t.results.data[a],errors:t.results.errors,meta:t.results.meta},n),!r);a++);delete t.results}else v(i.userChunk)&&(i.userChunk(t.results,n,t.file),delete t.results)}t.finished&&!r&&m(t.workerId,t.results)}function m(e,t){var i=s[e];v(i.userComplete)&&i.userComplete(t),i.terminate(),delete s[e]}function y(){throw new Error("Not implemented.")}function k(e){if("object"!=typeof e||null===e)return e;var t,i=Array.isArray(e)?[]:{};for(t in e)i[t]=k(e[t]);return i}function b(e,t){return function(){e.apply(t,arguments)}}function v(e){return"function"==typeof e}return o.parse=function(t,r){var n=(r=r||{}).dynamicTyping||!1;if(v(n)&&(r.dynamicTypingFunction=n,n={}),r.dynamicTyping=n,r.transform=!!v(r.transform)&&r.transform,!r.worker||!o.WORKERS_SUPPORTED)return n=null,o.NODE_STREAM_INPUT,"string"==typeof t?(t=(e=>65279!==e.charCodeAt(0)?e:e.slice(1))(t),n=new(r.download?u:f)(r)):!0===t.readable&&v(t.read)&&v(t.on)?n=new l(r):(i.File&&t instanceof File||t instanceof Object)&&(n=new d(r)),n.stream(t);(n=(()=>{var t;return!!o.WORKERS_SUPPORTED&&(t=(()=>{var t=i.URL||i.webkitURL||null,r=e.toString();return o.BLOB_URL||(o.BLOB_URL=t.createObjectURL(new Blob(["var global = (function() { if (typeof self !== 'undefined') { return self; } if (typeof window !== 'undefined') { return window; } if (typeof global !== 'undefined') { return global; } return {}; })(); global.IS_PAPA_WORKER=true; ","(",r,")();"],{type:"text/javascript"})))})(),(t=new i.Worker(t)).onmessage=_,t.id=a++,s[t.id]=t)})()).userStep=r.step,n.userChunk=r.chunk,n.userComplete=r.complete,n.userError=r.error,r.step=v(r.step),r.chunk=v(r.chunk),r.complete=v(r.complete),r.error=v(r.error),delete r.worker,n.postMessage({input:t,config:r,workerId:n.id})},o.unparse=function(e,t){var i=!1,r=!0,n=",",s="\r\n",a='"',h=a+a,u=!1,d=null,f=!1,l=((()=>{if("object"==typeof t){if("string"!=typeof t.delimiter||o.BAD_DELIMITERS.filter(function(e){return-1!==t.delimiter.indexOf(e)}).length||(n=t.delimiter),"boolean"!=typeof t.quotes&&"function"!=typeof t.quotes&&!Array.isArray(t.quotes)||(i=t.quotes),"boolean"!=typeof t.skipEmptyLines&&"string"!=typeof t.skipEmptyLines||(u=t.skipEmptyLines),"string"==typeof t.newline&&(s=t.newline),"string"==typeof t.quoteChar&&(a=t.quoteChar),"boolean"==typeof t.header&&(r=t.header),Array.isArray(t.columns)){if(0===t.columns.length)throw new Error("Option columns is empty");d=t.columns}void 0!==t.escapeChar&&(h=t.escapeChar+a),t.escapeFormulae instanceof RegExp?f=t.escapeFormulae:"boolean"==typeof t.escapeFormulae&&t.escapeFormulae&&(f=/^[=+\-@\t\r].*$/)}})(),new RegExp(p(a),"g"));if("string"==typeof e&&(e=JSON.parse(e)),Array.isArray(e)){if(!e.length||Array.isArray(e[0]))return c(null,e,u);if("object"==typeof e[0])return c(d||Object.keys(e[0]),e,u)}else if("object"==typeof e)return"string"==typeof e.data&&(e.data=JSON.parse(e.data)),Array.isArray(e.data)&&(e.fields||(e.fields=e.meta&&e.meta.fields||d),e.fields||(e.fields=Array.isArray(e.data[0])?e.fields:"object"==typeof e.data[0]?Object.keys(e.data[0]):[]),Array.isArray(e.data[0])||"object"==typeof e.data[0]||(e.data=[e.data])),c(e.fields||[],e.data||[],u);throw new Error("Unable to serialize unrecognized input");function c(e,t,i){var a="",o=("string"==typeof e&&(e=JSON.parse(e)),"string"==typeof t&&(t=JSON.parse(t)),Array.isArray(e)&&0<e.length),h=!Array.isArray(t[0]);if(o&&r){for(var u=0;u<e.length;u++)0<u&&(a+=n),a+=g(e[u],u);0<t.length&&(a+=s)}for(var d=0;d<t.length;d++){var f=(o?e:t[d]).length,l=!1,c=o?0===Object.keys(t[d]).length:0===t[d].length;if(i&&!o&&(l="greedy"===i?""===t[d].join("").trim():1===t[d].length&&0===t[d][0].length),"greedy"===i&&o){for(var p=[],_=0;_<f;_++){var m=h?e[_]:_;p.push(t[d][m])}l=""===p.join("").trim()}if(!l){for(var y=0;y<f;y++){0<y&&!c&&(a+=n);var k=o&&h?e[y]:y;a+=g(t[d][k],y)}d<t.length-1&&(!i||0<f&&!c)&&(a+=s)}}return a}function g(e,t){var r,s;return null==e?"":e.constructor===Date?JSON.stringify(e).slice(1,25):(s=!1,f&&"string"==typeof e&&f.test(e)&&(e="'"+e,s=!0),r=e.toString().replace(l,h),(s=s||!0===i||"function"==typeof i&&i(e,t)||Array.isArray(i)&&i[t]||((e,t)=>{for(var i=0;i<t.length;i++)if(-1<e.indexOf(t[i]))return!0;return!1})(r,o.BAD_DELIMITERS)||-1<r.indexOf(n)||" "===r.charAt(0)||" "===r.charAt(r.length-1))?a+r+a:r)}},o.RECORD_SEP=String.fromCharCode(30),o.UNIT_SEP=String.fromCharCode(31),o.BYTE_ORDER_MARK="\ufeff",o.BAD_DELIMITERS=["\r","\n",'"',o.BYTE_ORDER_MARK],o.WORKERS_SUPPORTED=!r&&!!i.Worker,o.NODE_STREAM_INPUT=1,o.LocalChunkSize=10485760,o.RemoteChunkSize=5242880,o.DefaultDelimiter=",",o.Parser=g,o.ParserHandle=c,o.NetworkStreamer=u,o.FileStreamer=d,o.StringStreamer=f,o.ReadableStreamStreamer=l,i.jQuery&&((t=i.jQuery).fn.parse=function(e){var r=e.config||{},n=[];return this.each(function(e){if("INPUT"!==t(this).prop("tagName").toUpperCase()||"file"!==t(this).attr("type").toLowerCase()||!i.FileReader||!this.files||0===this.files.length)return!0;for(var s=0;s<this.files.length;s++)n.push({file:this.files[s],inputElem:this,instanceConfig:t.extend({},r)})}),s(),this;function s(){if(0===n.length)v(e.complete)&&e.complete();else{var i,r,s,h=n[0];if(v(e.before)){var u=e.before(h.file,h.inputElem);if("object"==typeof u){if("abort"===u.action)return i=h.file,r=h.inputElem,s=u.reason,void(v(e.error)&&e.error({name:"AbortError"},i,r,s));if("skip"===u.action)return void a();"object"==typeof u.config&&(h.instanceConfig=t.extend(h.instanceConfig,u.config))}else if("skip"===u)return void a()}var d=h.instanceConfig.complete;h.instanceConfig.complete=function(e){v(d)&&d(e,h.file,h.inputElem),a()},o.parse(h.file,h.instanceConfig)}}function a(){n.splice(0,1),s()}}),n&&(i.onmessage=function(e){e=e.data,void 0===o.WORKER_ID&&e&&(o.WORKER_ID=e.workerId),"string"==typeof e.input?i.postMessage({workerId:o.WORKER_ID,results:o.parse(e.input,e.config),finished:!0}):(i.File&&e.input instanceof File||e.input instanceof Object)&&(e=o.parse(e.input,e.config))&&i.postMessage({workerId:o.WORKER_ID,results:e,finished:!0})}),(u.prototype=Object.create(h.prototype)).constructor=u,(d.prototype=Object.create(h.prototype)).constructor=d,(f.prototype=Object.create(f.prototype)).constructor=f,(l.prototype=Object.create(h.prototype)).constructor=l,o}()),t.exports)]);exports.p=i;
|
package/browser/cjs/index.cjs
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.
|
|
1
|
+
/**
|
|
2
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.12
|
|
3
3
|
*
|
|
4
4
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
|
-
*/
|
|
6
|
+
*/
|
|
7
|
+
"use strict";const e=require("./DJbKKxeeTEHHA1gR.cjs");module.exports=e.SheetXL;
|