adminizer 4.1.0-commit.d8a06d3 → 4.1.1
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/Readme.md +46 -0
- package/assets/{VanillaJSONEditor-D-Lx670g.js → VanillaJSONEditor-DfRefswH.js} +104 -104
- package/assets/add-CJ1-zeA1.js +1 -0
- package/assets/add-form-CbNl0wdS.js +1 -0
- package/assets/add-group-form-Bt_Dx9wm.js +1 -0
- package/assets/add-group-pIFJV5qL.js +1 -0
- package/assets/add-user-D2US8hL_.js +1 -0
- package/assets/add-user-form-Bt8Jy6S2.js +1 -0
- package/assets/{app-WTooYWC3.css → app-B6cCPfWk.css} +1 -1
- package/assets/app-layout-B86jl9bH.js +1 -0
- package/assets/app-shell-CiGyzQ0C.js +1 -0
- package/assets/app-sidebar-Bz-SRwBg.js +1 -0
- package/assets/app-sidebar-header-7CNCx7Rs.js +11 -0
- package/assets/app.js +45 -37
- package/assets/breadcrumbs-_jhtTcOi.js +1 -0
- package/assets/catalog-CON6moaA.js +16 -0
- package/assets/catalog-Cc6Mk9sX.css +1 -0
- package/assets/checkbox-CQdZw5mb.js +1 -0
- package/assets/dashboard-es9ZT8qk.js +3 -0
- package/assets/{date-picker-DI1cCO7K.js → date-picker-Dz-d-YWX.js} +2 -2
- package/assets/debounce-qdyXyOeG.js +1 -0
- package/assets/del-modal-D0mrZvki.js +11 -0
- package/assets/dialog-stack-BiMbfm58.js +1 -0
- package/assets/dropdown-menu-BSBcRiXx.js +1 -0
- package/assets/{field-renderer-DVHZF6HS.js → field-renderer-B6hFAeiU.js} +3 -3
- package/assets/form-Buslty7y.js +1 -0
- package/assets/form-aqiRmPix.js +1 -0
- package/assets/{geo-json-BjiyTtMu.js → geo-json-BKmYmu3d.js} +2 -2
- package/assets/{handsontable-4mjU_b0n.js → handsontable-B8xVeMAQ.js} +5 -5
- package/assets/home-Dr72Jk-w.js +2 -0
- package/assets/icon-B-a7xg54.js +1 -0
- package/assets/index-B68_akQe.js +1 -0
- package/assets/index-B7-xTDyy.js +1 -0
- package/assets/index-BJFFlCSo.js +1 -0
- package/assets/{index-Cw5o84pO.js → index-BOuMo_nl.js} +3 -3
- package/assets/index-BzOcGsBq.js +1 -0
- package/assets/index-CFbQ2Rv0.js +1 -0
- package/assets/{index-D5ir9iUV.js → index-Cq31rrfZ.js} +1 -1
- package/assets/{index-Cgp8OfuI.js → index-D5UDXTFs.js} +1 -1
- package/assets/index-oxIQWAdI.js +41 -0
- package/assets/init-user-5H689LP0.js +1 -0
- package/assets/input-CSJjrf2i.js +1 -0
- package/assets/input-error-CK92Shhm.js +1 -0
- package/assets/label-Muj0-Efy.js +1 -0
- package/assets/list-Cvh7zbyG.js +1 -0
- package/assets/list-table-Bs_vbQiV.js +52 -0
- package/assets/login-DliJrjMQ.js +6 -0
- package/assets/manifest.json +575 -673
- package/assets/material-icon-BRS58Qpk.js +1 -0
- package/assets/module-CjG21VCT.js +1 -0
- package/assets/{monaco-editor-CJs0_GlD.js → monaco-editor-9fDiyfuW.js} +2 -2
- package/assets/{multi-select-BvRpAW8r.js → multi-select-CMQIJ0JT.js} +2 -2
- package/assets/nav-footer-IGMn9NiE.js +1 -0
- package/assets/nav-main-DBE4rMiZ.js +1 -0
- package/assets/nav-user-CjyLRyq-.js +1 -0
- package/assets/pagination-render-DUAq2klc.js +1 -0
- package/assets/popover-C_cww-4_.js +1 -0
- package/assets/register-UzQn3J0g.js +1 -0
- package/assets/{select-BWepUw-9.js → select-DzBno-dc.js} +2 -2
- package/assets/{sidebar-CAHsHdjM.js → sidebar-Dc4iqfu-.js} +2 -2
- package/assets/skeleton-Dkmj2o2Z.js +1 -0
- package/assets/sonner-De1t71Gj.js +1 -0
- package/assets/{toast-editor-CMK7QtF1.js → toast-editor-1Pul3oMs.js} +2 -2
- package/assets/tooltip-CwPrC-HD.js +1 -0
- package/assets/use-appearance-J8J2w43p.js +1 -0
- package/assets/use-window-size-DLSEoR6e.js +1 -0
- package/assets/{user-info-DFrmpJ4y.js → user-info-8RyDk7qh.js} +2 -2
- package/assets/user-menu-content-CpxTLH56.js +6 -0
- package/assets/welcome-BYKI6yO-.js +1 -0
- package/controllers/add.js +8 -8
- package/controllers/catalog/Catalog.d.ts +1 -1
- package/controllers/catalog/Catalog.js +40 -35
- package/controllers/catalog/FrontentCatalogAdapter.d.ts +36 -26
- package/controllers/catalog/FrontentCatalogAdapter.js +71 -72
- package/controllers/edit.js +8 -11
- package/controllers/list.js +2 -2
- package/controllers/login.js +16 -7
- package/controllers/navigation/edit.js +1 -1
- package/controllers/remove.js +1 -1
- package/controllers/view.js +1 -1
- package/helpers/JsUtils.d.ts +1 -0
- package/helpers/JsUtils.js +3 -0
- package/helpers/accessRightsHelper.d.ts +3 -0
- package/helpers/accessRightsHelper.js +27 -4
- package/helpers/controllerHelper.js +39 -18
- package/helpers/fieldsHelper.d.ts +3 -2
- package/helpers/fieldsHelper.js +5 -1
- package/helpers/inertiaAddHelper.d.ts +4 -5
- package/helpers/inertiaAddHelper.js +25 -7
- package/helpers/inertiaFromHelper.js +1 -1
- package/helpers/inertiaMenuHelper.d.ts +1 -1
- package/helpers/inertiaMenuHelper.js +1 -1
- package/helpers/menuHelper.d.ts +8 -3
- package/helpers/menuHelper.js +26 -17
- package/index.d.ts +2 -6
- package/index.js +5 -6
- package/interfaces/adminpanelConfig.d.ts +35 -30
- package/interfaces/global.d.ts +5 -2
- package/interfaces/types.d.ts +1 -1
- package/lib/Adminizer.d.ts +9 -3
- package/lib/Adminizer.js +32 -16
- package/lib/media-manager/Items.js +0 -3
- package/lib/requestProcessor.js +10 -3
- package/lib/v4/DataAccessor.d.ts +3 -1
- package/lib/v4/DataAccessor.js +43 -18
- package/lib/v4/I18n.js +2 -0
- package/lib/{catalog → v4/catalog}/AbstractCatalog.d.ts +89 -60
- package/lib/{catalog → v4/catalog}/AbstractCatalog.js +59 -54
- package/lib/v4/catalog/Navigation.d.ts +43 -0
- package/lib/v4/catalog/Navigation.js +457 -0
- package/lib/{controls → v4/controls}/AbstractControls.d.ts +1 -1
- package/lib/{controls → v4/controls}/codeEditor/MonacoEditor.d.ts +1 -1
- package/lib/{controls → v4/controls}/geojsoneditor/GeoEditor.d.ts +1 -1
- package/lib/{controls → v4/controls}/jsoneditor/JsonEditor.d.ts +1 -1
- package/lib/{controls → v4/controls}/markdown/ToastUiEditor.d.ts +1 -1
- package/lib/{controls → v4/controls}/table/Handsontable.d.ts +1 -1
- package/lib/{controls → v4/controls}/wysiwyg/CKeditor.d.ts +1 -1
- package/lib/{datatable → v4/datatable}/NodeTable.d.ts +3 -3
- package/lib/{datatable → v4/datatable}/NodeTable.js +8 -5
- package/lib/v4/model/AbstractModel.d.ts +5 -1
- package/lib/v4/model/AbstractModel.js +2 -1
- package/lib/v4/model/ModelHandler.js +1 -3
- package/lib/v4/model/adapter/sequelize.d.ts +8 -0
- package/lib/v4/model/adapter/sequelize.js +274 -133
- package/lib/v4/model/adapter/waterline.js +5 -2
- package/lib/{widgets → v4/widgets}/abstractLink.d.ts +1 -1
- package/lib/{widgets → v4/widgets}/abstractWidgetBase.d.ts +1 -1
- package/lib/{widgets → v4/widgets}/widgetHandler.d.ts +11 -4
- package/lib/{widgets → v4/widgets}/widgetHandler.js +1 -1
- package/models/NavigationAP.d.ts +2 -3
- package/models/NavigationAP.js +5 -6
- package/models/UserAP.d.ts +2 -3
- package/package.json +17 -6
- package/system/Router.js +8 -11
- package/system/bindAccessRights.js +0 -4
- package/system/bindControls.js +6 -6
- package/system/bindDev.js +1 -0
- package/system/bindInertia.js +9 -4
- package/system/bindMediaManager.js +0 -1
- package/system/bindModels.js +9 -6
- package/system/bindNavigation.d.ts +2 -0
- package/system/bindNavigation.js +42 -42
- package/system/bindReqFunctions.js +0 -1
- package/system/defaults.js +13 -6
- package/translations/ar.json +70 -1
- package/translations/cn.json +70 -1
- package/translations/de.json +71 -3
- package/translations/en.json +70 -102
- package/translations/es.json +70 -1
- package/translations/fr.json +70 -1
- package/translations/hi.json +70 -1
- package/translations/jp.json +70 -1
- package/translations/ko.json +70 -1
- package/translations/pt.json +70 -1
- package/translations/ru.json +71 -103
- package/translations/ua.json +70 -1
- package/translations/uz.json +72 -0
- package/translations/vi.json +70 -1
- package/assets/add-BP_u3Tjl.js +0 -1
- package/assets/add-form-nffmiYTh.js +0 -1
- package/assets/add-group-D4vcHlm-.js +0 -1
- package/assets/add-group-form-gNJW11-q.js +0 -1
- package/assets/add-user-DWh3Nas0.js +0 -1
- package/assets/add-user-form-BJ0FsZYJ.js +0 -1
- package/assets/app-layout-DYsRFUuP.js +0 -1
- package/assets/app-shell-Dd9Eknik.js +0 -1
- package/assets/app-sidebar-BOmu6-Sl.js +0 -1
- package/assets/app-sidebar-header-CoXSzWxk.js +0 -11
- package/assets/breadcrumbs-BmAq4fHT.js +0 -1
- package/assets/button-C9B_5Jf_.js +0 -1
- package/assets/checkbox-Fg27sL_1.js +0 -1
- package/assets/compiler-runtime-hB6dAw2d.js +0 -9
- package/assets/dashboard-BACj996r.js +0 -3
- package/assets/dropdown-menu-Bhj17ENm.js +0 -1
- package/assets/form-BgWdwvz1.js +0 -1
- package/assets/form-DgtErfln.js +0 -1
- package/assets/home-CHntBHJa.js +0 -2
- package/assets/icon-Dt0vBgDO.js +0 -1
- package/assets/index-B8BS9wMC.js +0 -1
- package/assets/index-BC0yfOHo.js +0 -1
- package/assets/index-BKCgnGj_.js +0 -1
- package/assets/index-BbXEMx9n.js +0 -1
- package/assets/index-BykbU6Ee.js +0 -41
- package/assets/index-CaJgc5EZ.js +0 -1
- package/assets/index-DrWfGwtf.js +0 -1
- package/assets/init-user-JfCKJ5Ce.js +0 -1
- package/assets/input-CvRbIbk4.js +0 -1
- package/assets/input-error-DMK7cAt7.js +0 -1
- package/assets/label-CSLFe9Bz.js +0 -1
- package/assets/list-B2Oa5O_Q.js +0 -1
- package/assets/list-table-DA9MhywL.js +0 -62
- package/assets/login-DQwGtdis.js +0 -6
- package/assets/material-icon-BJg8o_fs.js +0 -1
- package/assets/module-DWXp59Vg.js +0 -1
- package/assets/nav-footer-Bs4dmN1d.js +0 -1
- package/assets/nav-main-Bq3IMk4C.js +0 -1
- package/assets/nav-user-CbB22J5O.js +0 -1
- package/assets/pagination-render-DuXDDbC_.js +0 -1
- package/assets/popover-DtoGI2b1.js +0 -1
- package/assets/register-BSogVF0h.js +0 -1
- package/assets/skeleton-COOcAA8f.js +0 -1
- package/assets/sonner-BI0IFOQN.js +0 -1
- package/assets/tooltip-DHwpLKOI.js +0 -1
- package/assets/use-appearance-DRfIqTgw.js +0 -1
- package/assets/use-window-size-h0Sh_NvX.js +0 -1
- package/assets/user-menu-content-DPXQdERj.js +0 -6
- package/assets/utils-DjqsqOe8.js +0 -1
- package/assets/welcome-B4WCIXKf.js +0 -1
- package/controllers/processInstallFinalize.d.ts +0 -1
- package/controllers/processInstallFinalize.js +0 -16
- package/controllers/processInstallStep.d.ts +0 -0
- package/controllers/processInstallStep.js +0 -122
- package/lib/catalog/Navigation.d.ts +0 -0
- package/lib/catalog/Navigation.js +0 -532
- package/lib/installStepper/InstallStepAbstract.d.ts +0 -52
- package/lib/installStepper/InstallStepAbstract.js +0 -69
- package/lib/installStepper/finalizeStep.d.ts +0 -21
- package/lib/installStepper/finalizeStep.js +0 -48
- package/lib/installStepper/installStepper.d.ts +0 -40
- package/lib/installStepper/installStepper.js +0 -195
- package/models/MediaManagerAP.d.ts +0 -62
- package/models/MediaManagerAP.js +0 -45
- package/models/MediaManagerAssociationsAP.d.ts +0 -38
- package/models/MediaManagerAssociationsAP.js +0 -27
- package/models/MediaManagerMetaAP.d.ts +0 -30
- package/models/MediaManagerMetaAP.js +0 -21
- package/system/bindInstallStepper.d.ts +0 -2
- package/system/bindInstallStepper.js +0 -23
- /package/lib/{catalog → v4/catalog}/CatalogHandler.d.ts +0 -0
- /package/lib/{catalog → v4/catalog}/CatalogHandler.js +0 -0
- /package/lib/{controls → v4/controls}/AbstractControls.js +0 -0
- /package/lib/{controls → v4/controls}/ControlsHandler.d.ts +0 -0
- /package/lib/{controls → v4/controls}/ControlsHandler.js +0 -0
- /package/lib/{controls → v4/controls}/codeEditor/MonacoEditor.js +0 -0
- /package/lib/{controls → v4/controls}/geojsoneditor/GeoEditor.js +0 -0
- /package/lib/{controls → v4/controls}/jsoneditor/JsonEditor.js +0 -0
- /package/lib/{controls → v4/controls}/markdown/ToastUiEditor.js +0 -0
- /package/lib/{controls → v4/controls}/table/Handsontable.js +0 -0
- /package/lib/{controls → v4/controls}/wysiwyg/CKeditor.js +0 -0
- /package/lib/{inertia → v4/inertia}/flash.d.ts +0 -0
- /package/lib/{inertia → v4/inertia}/flash.js +0 -0
- /package/lib/{inertia → v4/inertia}/inertiaAdapter.d.ts +0 -0
- /package/lib/{inertia → v4/inertia}/inertiaAdapter.js +0 -0
- /package/lib/{widgets → v4/widgets}/abstractAction.d.ts +0 -0
- /package/lib/{widgets → v4/widgets}/abstractAction.js +0 -0
- /package/lib/{widgets → v4/widgets}/abstractCustom.d.ts +0 -0
- /package/lib/{widgets → v4/widgets}/abstractCustom.js +0 -0
- /package/lib/{widgets → v4/widgets}/abstractInfo.d.ts +0 -0
- /package/lib/{widgets → v4/widgets}/abstractInfo.js +0 -0
- /package/lib/{widgets → v4/widgets}/abstractLink.js +0 -0
- /package/lib/{widgets → v4/widgets}/abstractSwitch.d.ts +0 -0
- /package/lib/{widgets → v4/widgets}/abstractSwitch.js +0 -0
- /package/lib/{widgets → v4/widgets}/abstractWidgetBase.js +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{h as UT,W as Dt,R as XH,r as Th,j as zT}from"./app.js";import{u as $$}from"./use-appearance-DRfIqTgw.js";import"./compiler-runtime-hB6dAw2d.js";var YT={},_h,GT;function on(){if(GT)return _h;GT=1;var t=function(e){return e&&e.Math===Math&&e};return _h=t(typeof globalThis=="object"&&globalThis)||t(typeof window=="object"&&window)||t(typeof self=="object"&&self)||t(typeof UT=="object"&&UT)||t(typeof _h=="object"&&_h)||function(){return this}()||Function("return this")(),_h}var sv={},av,KT;function Cn(){return KT||(KT=1,av=function(t){try{return!!t()}catch{return!0}}),av}var lv,qT;function go(){if(qT)return lv;qT=1;var t=Cn();return lv=!t(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7}),lv}var uv,XT;function ow(){if(XT)return uv;XT=1;var t=Cn();return uv=!t(function(){var e=(function(){}).bind();return typeof e!="function"||e.hasOwnProperty("prototype")}),uv}var cv,ZT;function sn(){if(ZT)return cv;ZT=1;var t=ow(),e=Function.prototype.call;return cv=t?e.bind(e):function(){return e.apply(e,arguments)},cv}var hv={},QT;function F$(){if(QT)return hv;QT=1;var t={}.propertyIsEnumerable,e=Object.getOwnPropertyDescriptor,n=e&&!t.call({1:2},1);return hv.f=n?function(i){var o=e(this,i);return!!o&&o.enumerable}:t,hv}var dv,JT;function sw(){return JT||(JT=1,dv=function(t,e){return{enumerable:!(t&1),configurable:!(t&2),writable:!(t&4),value:e}}),dv}var fv,e_;function qt(){if(e_)return fv;e_=1;var t=ow(),e=Function.prototype,n=e.call,r=t&&e.bind.bind(n,n);return fv=t?r:function(i){return function(){return n.apply(i,arguments)}},fv}var gv,t_;function Nu(){if(t_)return gv;t_=1;var t=qt(),e=t({}.toString),n=t("".slice);return gv=function(r){return n(e(r),8,-1)},gv}var mv,n_;function V$(){if(n_)return mv;n_=1;var t=qt(),e=Cn(),n=Nu(),r=Object,i=t("".split);return mv=e(function(){return!r("z").propertyIsEnumerable(0)})?function(o){return n(o)==="String"?i(o,""):r(o)}:r,mv}var pv,r_;function uE(){return r_||(r_=1,pv=function(t){return t==null}),pv}var wv,i_;function Pf(){if(i_)return wv;i_=1;var t=uE(),e=TypeError;return wv=function(n){if(t(n))throw new e("Can't call method on "+n);return n},wv}var vv,o_;function Of(){if(o_)return vv;o_=1;var t=V$(),e=Pf();return vv=function(n){return t(e(n))},vv}var Cv,s_;function an(){if(s_)return Cv;s_=1;var t=typeof document=="object"&&document.all;return Cv=typeof t>"u"&&t!==void 0?function(e){return typeof e=="function"||e===t}:function(e){return typeof e=="function"},Cv}var yv,a_;function mo(){if(a_)return yv;a_=1;var t=an();return yv=function(e){return typeof e=="object"?e!==null:t(e)},yv}var bv,l_;function ah(){if(l_)return bv;l_=1;var t=on(),e=an(),n=function(r){return e(r)?r:void 0};return bv=function(r,i){return arguments.length<2?n(t[r]):t[r]&&t[r][i]},bv}var Sv,u_;function xf(){if(u_)return Sv;u_=1;var t=qt();return Sv=t({}.isPrototypeOf),Sv}var Rv,c_;function aw(){if(c_)return Rv;c_=1;var t=on(),e=t.navigator,n=e&&e.userAgent;return Rv=n?String(n):"",Rv}var Ev,h_;function W$(){if(h_)return Ev;h_=1;var t=on(),e=aw(),n=t.process,r=t.Deno,i=n&&n.versions||r&&r.version,o=i&&i.v8,s,a;return o&&(s=o.split("."),a=s[0]>0&&s[0]<4?1:+(s[0]+s[1])),!a&&e&&(s=e.match(/Edge\/(\d+)/),(!s||s[1]>=74)&&(s=e.match(/Chrome\/(\d+)/),s&&(a=+s[1]))),Ev=a,Ev}var Tv,d_;function cE(){if(d_)return Tv;d_=1;var t=W$(),e=Cn(),n=on(),r=n.String;return Tv=!!Object.getOwnPropertySymbols&&!e(function(){var i=Symbol("symbol detection");return!r(i)||!(Object(i)instanceof Symbol)||!Symbol.sham&&t&&t<41}),Tv}var _v,f_;function ZH(){if(f_)return _v;f_=1;var t=cE();return _v=t&&!Symbol.sham&&typeof Symbol.iterator=="symbol",_v}var Mv,g_;function hE(){if(g_)return Mv;g_=1;var t=ah(),e=an(),n=xf(),r=ZH(),i=Object;return Mv=r?function(o){return typeof o=="symbol"}:function(o){var s=t("Symbol");return e(s)&&n(s.prototype,i(o))},Mv}var Iv,m_;function lw(){if(m_)return Iv;m_=1;var t=String;return Iv=function(e){try{return t(e)}catch{return"Object"}},Iv}var Pv,p_;function pr(){if(p_)return Pv;p_=1;var t=an(),e=lw(),n=TypeError;return Pv=function(r){if(t(r))return r;throw new n(e(r)+" is not a function")},Pv}var Ov,w_;function Af(){if(w_)return Ov;w_=1;var t=pr(),e=uE();return Ov=function(n,r){var i=n[r];return e(i)?void 0:t(i)},Ov}var xv,v_;function B$(){if(v_)return xv;v_=1;var t=sn(),e=an(),n=mo(),r=TypeError;return xv=function(i,o){var s,a;if(o==="string"&&e(s=i.toString)&&!n(a=t(s,i))||e(s=i.valueOf)&&!n(a=t(s,i))||o!=="string"&&e(s=i.toString)&&!n(a=t(s,i)))return a;throw new r("Can't convert object to primitive value")},xv}var Av={exports:{}},Hv,C_;function gl(){return C_||(C_=1,Hv=!1),Hv}var Nv,y_;function dE(){if(y_)return Nv;y_=1;var t=on(),e=Object.defineProperty;return Nv=function(n,r){try{e(t,n,{value:r,configurable:!0,writable:!0})}catch{t[n]=r}return r},Nv}var b_;function fE(){if(b_)return Av.exports;b_=1;var t=gl(),e=on(),n=dE(),r="__core-js_shared__",i=Av.exports=e[r]||n(r,{});return(i.versions||(i.versions=[])).push({version:"3.42.0",mode:t?"pure":"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.42.0/LICENSE",source:"https://github.com/zloirock/core-js"}),Av.exports}var Dv,S_;function QH(){if(S_)return Dv;S_=1;var t=fE();return Dv=function(e,n){return t[e]||(t[e]=n||{})},Dv}var kv,R_;function lh(){if(R_)return kv;R_=1;var t=Pf(),e=Object;return kv=function(n){return e(t(n))},kv}var Lv,E_;function po(){if(E_)return Lv;E_=1;var t=qt(),e=lh(),n=t({}.hasOwnProperty);return Lv=Object.hasOwn||function(i,o){return n(e(i),o)},Lv}var $v,T_;function JH(){if(T_)return $v;T_=1;var t=qt(),e=0,n=Math.random(),r=t(1 .toString);return $v=function(i){return"Symbol("+(i===void 0?"":i)+")_"+r(++e+n,36)},$v}var Fv,__;function Yo(){if(__)return Fv;__=1;var t=on(),e=QH(),n=po(),r=JH(),i=cE(),o=ZH(),s=t.Symbol,a=e("wks"),l=o?s.for||s:s&&s.withoutSetter||r;return Fv=function(u){return n(a,u)||(a[u]=i&&n(s,u)?s[u]:l("Symbol."+u)),a[u]},Fv}var Vv,M_;function j$(){if(M_)return Vv;M_=1;var t=sn(),e=mo(),n=hE(),r=Af(),i=B$(),o=Yo(),s=TypeError,a=o("toPrimitive");return Vv=function(l,u){if(!e(l)||n(l))return l;var c=r(l,a),h;if(c){if(u===void 0&&(u="default"),h=t(c,l,u),!e(h)||n(h))return h;throw new s("Can't convert object to primitive value")}return u===void 0&&(u="number"),i(l,u)},Vv}var Wv,I_;function e1(){if(I_)return Wv;I_=1;var t=j$(),e=hE();return Wv=function(n){var r=t(n,"string");return e(r)?r:r+""},Wv}var Bv,P_;function gE(){if(P_)return Bv;P_=1;var t=on(),e=mo(),n=t.document,r=e(n)&&e(n.createElement);return Bv=function(i){return r?n.createElement(i):{}},Bv}var jv,O_;function t1(){if(O_)return jv;O_=1;var t=go(),e=Cn(),n=gE();return jv=!t&&!e(function(){return Object.defineProperty(n("div"),"a",{get:function(){return 7}}).a!==7}),jv}var x_;function n1(){if(x_)return sv;x_=1;var t=go(),e=sn(),n=F$(),r=sw(),i=Of(),o=e1(),s=po(),a=t1(),l=Object.getOwnPropertyDescriptor;return sv.f=t?l:function(c,h){if(c=i(c),h=o(h),a)try{return l(c,h)}catch{}if(s(c,h))return r(!e(n.f,c,h),c[h])},sv}var Uv={},zv,A_;function r1(){if(A_)return zv;A_=1;var t=go(),e=Cn();return zv=t&&e(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42}),zv}var Yv,H_;function ln(){if(H_)return Yv;H_=1;var t=mo(),e=String,n=TypeError;return Yv=function(r){if(t(r))return r;throw new n(e(r)+" is not an object")},Yv}var N_;function ml(){if(N_)return Uv;N_=1;var t=go(),e=t1(),n=r1(),r=ln(),i=e1(),o=TypeError,s=Object.defineProperty,a=Object.getOwnPropertyDescriptor,l="enumerable",u="configurable",c="writable";return Uv.f=t?n?function(d,f,g){if(r(d),f=i(f),r(g),typeof d=="function"&&f==="prototype"&&"value"in g&&c in g&&!g[c]){var C=a(d,f);C&&C[c]&&(d[f]=g.value,g={configurable:u in g?g[u]:C[u],enumerable:l in g?g[l]:C[l],writable:!1})}return s(d,f,g)}:s:function(d,f,g){if(r(d),f=i(f),r(g),e)try{return s(d,f,g)}catch{}if("get"in g||"set"in g)throw new o("Accessors not supported");return"value"in g&&(d[f]=g.value),d},Uv}var Gv,D_;function uh(){if(D_)return Gv;D_=1;var t=go(),e=ml(),n=sw();return Gv=t?function(r,i,o){return e.f(r,i,n(1,o))}:function(r,i,o){return r[i]=o,r},Gv}var Kv={exports:{}},qv,k_;function U$(){if(k_)return qv;k_=1;var t=go(),e=po(),n=Function.prototype,r=t&&Object.getOwnPropertyDescriptor,i=e(n,"name"),o=i&&(function(){}).name==="something",s=i&&(!t||t&&r(n,"name").configurable);return qv={EXISTS:i,PROPER:o,CONFIGURABLE:s},qv}var Xv,L_;function z$(){if(L_)return Xv;L_=1;var t=qt(),e=an(),n=fE(),r=t(Function.toString);return e(n.inspectSource)||(n.inspectSource=function(i){return r(i)}),Xv=n.inspectSource,Xv}var Zv,$_;function Y$(){if($_)return Zv;$_=1;var t=on(),e=an(),n=t.WeakMap;return Zv=e(n)&&/native code/.test(String(n)),Zv}var Qv,F_;function mE(){if(F_)return Qv;F_=1;var t=QH(),e=JH(),n=t("keys");return Qv=function(r){return n[r]||(n[r]=e(r))},Qv}var Jv,V_;function pE(){return V_||(V_=1,Jv={}),Jv}var eC,W_;function i1(){if(W_)return eC;W_=1;var t=Y$(),e=on(),n=mo(),r=uh(),i=po(),o=fE(),s=mE(),a=pE(),l="Object already initialized",u=e.TypeError,c=e.WeakMap,h,d,f,g=function(v){return f(v)?d(v):h(v,{})},C=function(v){return function(P){var O;if(!n(P)||(O=d(P)).type!==v)throw new u("Incompatible receiver, "+v+" required");return O}};if(t||o.state){var y=o.state||(o.state=new c);y.get=y.get,y.has=y.has,y.set=y.set,h=function(v,P){if(y.has(v))throw new u(l);return P.facade=v,y.set(v,P),P},d=function(v){return y.get(v)||{}},f=function(v){return y.has(v)}}else{var E=s("state");a[E]=!0,h=function(v,P){if(i(v,E))throw new u(l);return P.facade=v,r(v,E,P),P},d=function(v){return i(v,E)?v[E]:{}},f=function(v){return i(v,E)}}return eC={set:h,get:d,has:f,enforce:g,getterFor:C},eC}var B_;function o1(){if(B_)return Kv.exports;B_=1;var t=qt(),e=Cn(),n=an(),r=po(),i=go(),o=U$().CONFIGURABLE,s=z$(),a=i1(),l=a.enforce,u=a.get,c=String,h=Object.defineProperty,d=t("".slice),f=t("".replace),g=t([].join),C=i&&!e(function(){return h(function(){},"length",{value:8}).length!==8}),y=String(String).split("String"),E=Kv.exports=function(v,P,O){d(c(P),0,7)==="Symbol("&&(P="["+f(c(P),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),O&&O.getter&&(P="get "+P),O&&O.setter&&(P="set "+P),(!r(v,"name")||o&&v.name!==P)&&(i?h(v,"name",{value:P,configurable:!0}):v.name=P),C&&O&&r(O,"arity")&&v.length!==O.arity&&h(v,"length",{value:O.arity});try{O&&r(O,"constructor")&&O.constructor?i&&h(v,"prototype",{writable:!1}):v.prototype&&(v.prototype=void 0)}catch{}var L=l(v);return r(L,"source")||(L.source=g(y,typeof P=="string"?P:"")),v};return Function.prototype.toString=E(function(){return n(this)&&u(this).source||s(this)},"toString"),Kv.exports}var tC,j_;function wE(){if(j_)return tC;j_=1;var t=an(),e=ml(),n=o1(),r=dE();return tC=function(i,o,s,a){a||(a={});var l=a.enumerable,u=a.name!==void 0?a.name:o;if(t(s)&&n(s,u,a),a.global)l?i[o]=s:r(o,s);else{try{a.unsafe?i[o]&&(l=!0):delete i[o]}catch{}l?i[o]=s:e.f(i,o,{value:s,enumerable:!1,configurable:!a.nonConfigurable,writable:!a.nonWritable})}return i},tC}var nC={},rC,U_;function G$(){if(U_)return rC;U_=1;var t=Math.ceil,e=Math.floor;return rC=Math.trunc||function(r){var i=+r;return(i>0?e:t)(i)},rC}var iC,z_;function Hf(){if(z_)return iC;z_=1;var t=G$();return iC=function(e){var n=+e;return n!==n||n===0?0:t(n)},iC}var oC,Y_;function K$(){if(Y_)return oC;Y_=1;var t=Hf(),e=Math.max,n=Math.min;return oC=function(r,i){var o=t(r);return o<0?e(o+i,0):n(o,i)},oC}var sC,G_;function q$(){if(G_)return sC;G_=1;var t=Hf(),e=Math.min;return sC=function(n){var r=t(n);return r>0?e(r,9007199254740991):0},sC}var aC,K_;function ch(){if(K_)return aC;K_=1;var t=q$();return aC=function(e){return t(e.length)},aC}var lC,q_;function X$(){if(q_)return lC;q_=1;var t=Of(),e=K$(),n=ch(),r=function(i){return function(o,s,a){var l=t(o),u=n(l);if(u===0)return!i&&-1;var c=e(a,u),h;if(i&&s!==s){for(;u>c;)if(h=l[c++],h!==h)return!0}else for(;u>c;c++)if((i||c in l)&&l[c]===s)return i||c||0;return!i&&-1}};return lC={includes:r(!0),indexOf:r(!1)},lC}var uC,X_;function s1(){if(X_)return uC;X_=1;var t=qt(),e=po(),n=Of(),r=X$().indexOf,i=pE(),o=t([].push);return uC=function(s,a){var l=n(s),u=0,c=[],h;for(h in l)!e(i,h)&&e(l,h)&&o(c,h);for(;a.length>u;)e(l,h=a[u++])&&(~r(c,h)||o(c,h));return c},uC}var cC,Z_;function vE(){return Z_||(Z_=1,cC=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]),cC}var Q_;function Z$(){if(Q_)return nC;Q_=1;var t=s1(),e=vE(),n=e.concat("length","prototype");return nC.f=Object.getOwnPropertyNames||function(i){return t(i,n)},nC}var hC={},J_;function Q$(){return J_||(J_=1,hC.f=Object.getOwnPropertySymbols),hC}var dC,eM;function J$(){if(eM)return dC;eM=1;var t=ah(),e=qt(),n=Z$(),r=Q$(),i=ln(),o=e([].concat);return dC=t("Reflect","ownKeys")||function(a){var l=n.f(i(a)),u=r.f;return u?o(l,u(a)):l},dC}var fC,tM;function a1(){if(tM)return fC;tM=1;var t=po(),e=J$(),n=n1(),r=ml();return fC=function(i,o,s){for(var a=e(o),l=r.f,u=n.f,c=0;c<a.length;c++){var h=a[c];!t(i,h)&&!(s&&t(s,h))&&l(i,h,u(o,h))}},fC}var gC,nM;function eF(){if(nM)return gC;nM=1;var t=Cn(),e=an(),n=/#|\.prototype\./,r=function(l,u){var c=o[i(l)];return c===a?!0:c===s?!1:e(u)?t(u):!!u},i=r.normalize=function(l){return String(l).replace(n,".").toLowerCase()},o=r.data={},s=r.NATIVE="N",a=r.POLYFILL="P";return gC=r,gC}var mC,rM;function dt(){if(rM)return mC;rM=1;var t=on(),e=n1().f,n=uh(),r=wE(),i=dE(),o=a1(),s=eF();return mC=function(a,l){var u=a.target,c=a.global,h=a.stat,d,f,g,C,y,E;if(c?f=t:h?f=t[u]||i(u,{}):f=t[u]&&t[u].prototype,f)for(g in l){if(y=l[g],a.dontCallGetSet?(E=e(f,g),C=E&&E.value):C=f[g],d=s(c?g:u+(h?".":"#")+g,a.forced),!d&&C!==void 0){if(typeof y==typeof C)continue;o(y,C)}(a.sham||C&&C.sham)&&n(y,"sham",!0),r(f,g,y,a)}},mC}var pC,iM;function Nf(){if(iM)return pC;iM=1;var t=ow(),e=Function.prototype,n=e.apply,r=e.call;return pC=typeof Reflect=="object"&&Reflect.apply||(t?r.bind(n):function(){return r.apply(n,arguments)}),pC}var wC,oM;function l1(){if(oM)return wC;oM=1;var t=qt(),e=pr();return wC=function(n,r,i){try{return t(e(Object.getOwnPropertyDescriptor(n,r)[i]))}catch{}},wC}var vC,sM;function tF(){if(sM)return vC;sM=1;var t=mo();return vC=function(e){return t(e)||e===null},vC}var CC,aM;function nF(){if(aM)return CC;aM=1;var t=tF(),e=String,n=TypeError;return CC=function(r){if(t(r))return r;throw new n("Can't set "+e(r)+" as a prototype")},CC}var yC,lM;function u1(){if(lM)return yC;lM=1;var t=l1(),e=mo(),n=Pf(),r=nF();return yC=Object.setPrototypeOf||("__proto__"in{}?function(){var i=!1,o={},s;try{s=t(Object.prototype,"__proto__","set"),s(o,[]),i=o instanceof Array}catch{}return function(l,u){return n(l),r(u),e(l)&&(i?s(l,u):l.__proto__=u),l}}():void 0),yC}var bC,uM;function rF(){if(uM)return bC;uM=1;var t=ml().f;return bC=function(e,n,r){r in e||t(e,r,{configurable:!0,get:function(){return n[r]},set:function(i){n[r]=i}})},bC}var SC,cM;function iF(){if(cM)return SC;cM=1;var t=an(),e=mo(),n=u1();return SC=function(r,i,o){var s,a;return n&&t(s=i.constructor)&&s!==o&&e(a=s.prototype)&&a!==o.prototype&&n(r,a),r},SC}var RC,hM;function oF(){if(hM)return RC;hM=1;var t=Yo(),e=t("toStringTag"),n={};return n[e]="z",RC=String(n)==="[object z]",RC}var EC,dM;function c1(){if(dM)return EC;dM=1;var t=oF(),e=an(),n=Nu(),r=Yo(),i=r("toStringTag"),o=Object,s=n(function(){return arguments}())==="Arguments",a=function(l,u){try{return l[u]}catch{}};return EC=t?n:function(l){var u,c,h;return l===void 0?"Undefined":l===null?"Null":typeof(c=a(u=o(l),i))=="string"?c:s?n(u):(h=n(u))==="Object"&&e(u.callee)?"Arguments":h},EC}var TC,fM;function uw(){if(fM)return TC;fM=1;var t=c1(),e=String;return TC=function(n){if(t(n)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return e(n)},TC}var _C,gM;function sF(){if(gM)return _C;gM=1;var t=uw();return _C=function(e,n){return e===void 0?arguments.length<2?"":n:t(e)},_C}var MC,mM;function aF(){if(mM)return MC;mM=1;var t=mo(),e=uh();return MC=function(n,r){t(r)&&"cause"in r&&e(n,"cause",r.cause)},MC}var IC,pM;function lF(){if(pM)return IC;pM=1;var t=qt(),e=Error,n=t("".replace),r=function(s){return String(new e(s).stack)}("zxcasd"),i=/\n\s*at [^:]*:[^\n]*/,o=i.test(r);return IC=function(s,a){if(o&&typeof s=="string"&&!e.prepareStackTrace)for(;a--;)s=n(s,i,"");return s},IC}var PC,wM;function uF(){if(wM)return PC;wM=1;var t=Cn(),e=sw();return PC=!t(function(){var n=new Error("a");return"stack"in n?(Object.defineProperty(n,"stack",e(1,7)),n.stack!==7):!0}),PC}var OC,vM;function cF(){if(vM)return OC;vM=1;var t=uh(),e=lF(),n=uF(),r=Error.captureStackTrace;return OC=function(i,o,s,a){n&&(r?r(i,o):t(i,"stack",e(s,a)))},OC}var xC,CM;function hF(){if(CM)return xC;CM=1;var t=ah(),e=po(),n=uh(),r=xf(),i=u1(),o=a1(),s=rF(),a=iF(),l=sF(),u=aF(),c=cF(),h=go(),d=gl();return xC=function(f,g,C,y){var E="stackTraceLimit",v=y?2:1,P=f.split("."),O=P[P.length-1],L=t.apply(null,P);if(L){var T=L.prototype;if(!d&&e(T,"cause")&&delete T.cause,!C)return L;var A=t("Error"),K=g(function(U,j){var Z=l(y?j:U,void 0),J=y?new L(U):new L;return Z!==void 0&&n(J,"message",Z),c(J,K,J.stack,2),this&&r(T,this)&&a(J,this,K),arguments.length>v&&u(J,arguments[v]),J});if(K.prototype=T,O!=="Error"?i?i(K,A):o(K,A,{name:!0}):h&&E in L&&(s(K,L,E),s(K,L,"prepareStackTrace")),o(K,L),!d)try{T.name!==O&&n(T,"name",O),T.constructor=K}catch{}return K}},xC}var yM;function dF(){if(yM)return YT;yM=1;var t=dt(),e=on(),n=Nf(),r=hF(),i="WebAssembly",o=e[i],s=new Error("e",{cause:7}).cause!==7,a=function(u,c){var h={};h[u]=r(u,c,s),t({global:!0,constructor:!0,arity:1,forced:s},h)},l=function(u,c){if(o&&o[u]){var h={};h[u]=r(i+"."+u,c,s),t({target:i,stat:!0,constructor:!0,arity:1,forced:s},h)}};return a("Error",function(u){return function(h){return n(u,this,arguments)}}),a("EvalError",function(u){return function(h){return n(u,this,arguments)}}),a("RangeError",function(u){return function(h){return n(u,this,arguments)}}),a("ReferenceError",function(u){return function(h){return n(u,this,arguments)}}),a("SyntaxError",function(u){return function(h){return n(u,this,arguments)}}),a("TypeError",function(u){return function(h){return n(u,this,arguments)}}),a("URIError",function(u){return function(h){return n(u,this,arguments)}}),l("CompileError",function(u){return function(h){return n(u,this,arguments)}}),l("LinkError",function(u){return function(h){return n(u,this,arguments)}}),l("RuntimeError",function(u){return function(h){return n(u,this,arguments)}}),YT}dF();var bM={},AC,SM;function h1(){if(SM)return AC;SM=1;var t=Nu();return AC=Array.isArray||function(n){return t(n)==="Array"},AC}var HC,RM;function d1(){if(RM)return HC;RM=1;var t=go(),e=h1(),n=TypeError,r=Object.getOwnPropertyDescriptor,i=t&&!function(){if(this!==void 0)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(o){return o instanceof TypeError}}();return HC=i?function(o,s){if(e(o)&&!r(o,"length").writable)throw new n("Cannot set read only .length");return o.length=s}:function(o,s){return o.length=s},HC}var NC,EM;function f1(){if(EM)return NC;EM=1;var t=TypeError,e=9007199254740991;return NC=function(n){if(n>e)throw t("Maximum allowed index exceeded");return n},NC}var TM;function fF(){if(TM)return bM;TM=1;var t=dt(),e=lh(),n=ch(),r=d1(),i=f1(),o=Cn(),s=o(function(){return[].push.call({length:4294967296},1)!==4294967297}),a=function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(u){return u instanceof TypeError}},l=s||!a();return t({target:"Array",proto:!0,arity:1,forced:l},{push:function(c){var h=e(this),d=n(h),f=arguments.length;i(d+f);for(var g=0;g<f;g++)h[d]=arguments[g],d++;return r(h,d),d}}),bM}fF();var _M={},DC,MM;function gF(){if(MM)return DC;MM=1;var t=Nu(),e=qt();return DC=function(n){if(t(n)==="Function")return e(n)},DC}var kC,IM;function g1(){if(IM)return kC;IM=1;var t=gF(),e=pr(),n=ow(),r=t(t.bind);return kC=function(i,o){return e(i),o===void 0?i:n?r(i,o):function(){return i.apply(o,arguments)}},kC}var LC,PM;function m1(){return PM||(PM=1,LC={}),LC}var $C,OM;function mF(){if(OM)return $C;OM=1;var t=Yo(),e=m1(),n=t("iterator"),r=Array.prototype;return $C=function(i){return i!==void 0&&(e.Array===i||r[n]===i)},$C}var FC,xM;function CE(){if(xM)return FC;xM=1;var t=c1(),e=Af(),n=uE(),r=m1(),i=Yo(),o=i("iterator");return FC=function(s){if(!n(s))return e(s,o)||e(s,"@@iterator")||r[t(s)]},FC}var VC,AM;function pF(){if(AM)return VC;AM=1;var t=sn(),e=pr(),n=ln(),r=lw(),i=CE(),o=TypeError;return VC=function(s,a){var l=arguments.length<2?i(s):a;if(e(l))return n(t(l,s));throw new o(r(s)+" is not iterable")},VC}var WC,HM;function Yi(){if(HM)return WC;HM=1;var t=sn(),e=ln(),n=Af();return WC=function(r,i,o){var s,a;e(r);try{if(s=n(r,"return"),!s){if(i==="throw")throw o;return o}s=t(s,r)}catch(l){a=!0,s=l}if(i==="throw")throw o;if(a)throw s;return e(s),o},WC}var BC,NM;function hh(){if(NM)return BC;NM=1;var t=g1(),e=sn(),n=ln(),r=lw(),i=mF(),o=ch(),s=xf(),a=pF(),l=CE(),u=Yi(),c=TypeError,h=function(f,g){this.stopped=f,this.result=g},d=h.prototype;return BC=function(f,g,C){var y=C&&C.that,E=!!(C&&C.AS_ENTRIES),v=!!(C&&C.IS_RECORD),P=!!(C&&C.IS_ITERATOR),O=!!(C&&C.INTERRUPTED),L=t(g,y),T,A,K,U,j,Z,J,se=function(ue){return T&&u(T,"normal",ue),new h(!0,ue)},te=function(ue){return E?(n(ue),O?L(ue[0],ue[1],se):L(ue[0],ue[1])):O?L(ue,se):L(ue)};if(v)T=f.iterator;else if(P)T=f;else{if(A=l(f),!A)throw new c(r(f)+" is not iterable");if(i(A)){for(K=0,U=o(f);U>K;K++)if(j=te(f[K]),j&&s(d,j))return j;return new h(!1)}T=a(f,A)}for(Z=v?f.next:T.next;!(J=e(Z,T)).done;){try{j=te(J.value)}catch(ue){u(T,"throw",ue)}if(typeof j=="object"&&j&&s(d,j))return j}return new h(!1)},BC}var jC,DM;function p1(){if(DM)return jC;DM=1;var t=go(),e=ml(),n=sw();return jC=function(r,i,o){t?e.f(r,i,n(0,o)):r[i]=o},jC}var kM;function wF(){if(kM)return _M;kM=1;var t=dt(),e=hh(),n=p1();return t({target:"Object",stat:!0},{fromEntries:function(i){var o={};return e(i,function(s,a){n(o,s,a)},{AS_ENTRIES:!0}),o}}),_M}wF();var LM={},UC,$M;function Ps(){if($M)return UC;$M=1;var t=qt(),e=Set.prototype;return UC={Set,add:t(e.add),has:t(e.has),remove:t(e.delete),proto:e},UC}var zC,FM;function Du(){if(FM)return zC;FM=1;var t=Ps().has;return zC=function(e){return t(e),e},zC}var YC,VM;function ku(){if(VM)return YC;VM=1;var t=sn();return YC=function(e,n,r){for(var i=r?e:e.iterator,o=e.next,s,a;!(s=t(o,i)).done;)if(a=n(s.value),a!==void 0)return a},YC}var GC,WM;function Df(){if(WM)return GC;WM=1;var t=qt(),e=ku(),n=Ps(),r=n.Set,i=n.proto,o=t(i.forEach),s=t(i.keys),a=s(new r).next;return GC=function(l,u,c){return c?e({iterator:s(l),next:a},u):o(l,u)},GC}var KC,BM;function yE(){if(BM)return KC;BM=1;var t=Ps(),e=Df(),n=t.Set,r=t.add;return KC=function(i){var o=new n;return e(i,function(s){r(o,s)}),o},KC}var qC,jM;function kf(){if(jM)return qC;jM=1;var t=l1(),e=Ps();return qC=t(e.proto,"size","get")||function(n){return n.size},qC}var XC,UM;function Os(){return UM||(UM=1,XC=function(t){return{iterator:t,next:t.next,done:!1}}),XC}var ZC,zM;function Lu(){if(zM)return ZC;zM=1;var t=pr(),e=ln(),n=sn(),r=Hf(),i=Os(),o="Invalid size",s=RangeError,a=TypeError,l=Math.max,u=function(c,h){this.set=c,this.size=l(h,0),this.has=t(c.has),this.keys=t(c.keys)};return u.prototype={getIterator:function(){return i(e(n(this.keys,this.set)))},includes:function(c){return n(this.has,this.set,c)}},ZC=function(c){e(c);var h=+c.size;if(h!==h)throw new a(o);var d=r(h);if(d<0)throw new s(o);return new u(c,d)},ZC}var QC,YM;function vF(){if(YM)return QC;YM=1;var t=Du(),e=Ps(),n=yE(),r=kf(),i=Lu(),o=Df(),s=ku(),a=e.has,l=e.remove;return QC=function(c){var h=t(this),d=i(c),f=n(h);return r(h)<=d.size?o(h,function(g){d.includes(g)&&l(f,g)}):s(d.getIterator(),function(g){a(h,g)&&l(f,g)}),f},QC}var JC,GM;function $u(){if(GM)return JC;GM=1;var t=ah(),e=function(r){return{size:r,has:function(){return!1},keys:function(){return{next:function(){return{done:!0}}}}}},n=function(r){return{size:r,has:function(){return!0},keys:function(){throw new Error("e")}}};return JC=function(r,i){var o=t("Set");try{new o()[r](e(0));try{return new o()[r](e(-1)),!1}catch{if(!i)return!0;try{return new o()[r](n(-1/0)),!1}catch{var s=new o;return s.add(1),s.add(2),i(s[r](n(1/0)))}}}catch{return!1}},JC}var KM;function CF(){if(KM)return LM;KM=1;var t=dt(),e=vF(),n=$u(),r=!n("difference",function(i){return i.size===0});return t({target:"Set",proto:!0,real:!0,forced:r},{difference:e}),LM}CF();var qM={},ey,XM;function yF(){if(XM)return ey;XM=1;var t=Du(),e=Ps(),n=kf(),r=Lu(),i=Df(),o=ku(),s=e.Set,a=e.add,l=e.has;return ey=function(c){var h=t(this),d=r(c),f=new s;return n(h)>d.size?o(d.getIterator(),function(g){l(h,g)&&a(f,g)}):i(h,function(g){d.includes(g)&&a(f,g)}),f},ey}var ZM;function bF(){if(ZM)return qM;ZM=1;var t=dt(),e=Cn(),n=yF(),r=$u(),i=!r("intersection",function(o){return o.size===2&&o.has(1)&&o.has(2)})||e(function(){return String(Array.from(new Set([1,2,3]).intersection(new Set([3,2]))))!=="3,2"});return t({target:"Set",proto:!0,real:!0,forced:i},{intersection:n}),qM}bF();var QM={},ty,JM;function SF(){if(JM)return ty;JM=1;var t=Du(),e=Ps().has,n=kf(),r=Lu(),i=Df(),o=ku(),s=Yi();return ty=function(l){var u=t(this),c=r(l);if(n(u)<=c.size)return i(u,function(d){if(c.includes(d))return!1},!0)!==!1;var h=c.getIterator();return o(h,function(d){if(e(u,d))return s(h,"normal",!1)})!==!1},ty}var eI;function RF(){if(eI)return QM;eI=1;var t=dt(),e=SF(),n=$u(),r=!n("isDisjointFrom",function(i){return!i});return t({target:"Set",proto:!0,real:!0,forced:r},{isDisjointFrom:e}),QM}RF();var tI={},ny,nI;function EF(){if(nI)return ny;nI=1;var t=Du(),e=kf(),n=Df(),r=Lu();return ny=function(o){var s=t(this),a=r(o);return e(s)>a.size?!1:n(s,function(l){if(!a.includes(l))return!1},!0)!==!1},ny}var rI;function TF(){if(rI)return tI;rI=1;var t=dt(),e=EF(),n=$u(),r=!n("isSubsetOf",function(i){return i});return t({target:"Set",proto:!0,real:!0,forced:r},{isSubsetOf:e}),tI}TF();var iI={},ry,oI;function _F(){if(oI)return ry;oI=1;var t=Du(),e=Ps().has,n=kf(),r=Lu(),i=ku(),o=Yi();return ry=function(a){var l=t(this),u=r(a);if(n(l)<u.size)return!1;var c=u.getIterator();return i(c,function(h){if(!e(l,h))return o(c,"normal",!1)})!==!1},ry}var sI;function MF(){if(sI)return iI;sI=1;var t=dt(),e=_F(),n=$u(),r=!n("isSupersetOf",function(i){return!i});return t({target:"Set",proto:!0,real:!0,forced:r},{isSupersetOf:e}),iI}MF();var aI={},iy,lI;function IF(){if(lI)return iy;lI=1;var t=Du(),e=Ps(),n=yE(),r=Lu(),i=ku(),o=e.add,s=e.has,a=e.remove;return iy=function(u){var c=t(this),h=r(u).getIterator(),d=n(c);return i(h,function(f){s(c,f)?a(d,f):o(d,f)}),d},iy}var uI;function PF(){if(uI)return aI;uI=1;var t=dt(),e=IF(),n=$u();return t({target:"Set",proto:!0,real:!0,forced:!n("symmetricDifference")},{symmetricDifference:e}),aI}PF();var cI={},oy,hI;function OF(){if(hI)return oy;hI=1;var t=Du(),e=Ps().add,n=yE(),r=Lu(),i=ku();return oy=function(s){var a=t(this),l=r(s).getIterator(),u=n(a);return i(l,function(c){e(u,c)}),u},oy}var dI;function xF(){if(dI)return cI;dI=1;var t=dt(),e=OF(),n=$u();return t({target:"Set",proto:!0,real:!0,forced:!n("union")},{union:e}),cI}xF();var fI={},gI={},sy,mI;function AF(){if(mI)return sy;mI=1;var t=xf(),e=TypeError;return sy=function(n,r){if(t(r,n))return n;throw new e("Incorrect invocation")},sy}var ay,pI;function HF(){if(pI)return ay;pI=1;var t=Cn();return ay=!t(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),ay}var ly,wI;function w1(){if(wI)return ly;wI=1;var t=po(),e=an(),n=lh(),r=mE(),i=HF(),o=r("IE_PROTO"),s=Object,a=s.prototype;return ly=i?s.getPrototypeOf:function(l){var u=n(l);if(t(u,o))return u[o];var c=u.constructor;return e(c)&&u instanceof c?c.prototype:u instanceof s?a:null},ly}var uy,vI;function NF(){if(vI)return uy;vI=1;var t=o1(),e=ml();return uy=function(n,r,i){return i.get&&t(i.get,r,{getter:!0}),i.set&&t(i.set,r,{setter:!0}),e.f(n,r,i)},uy}var cy={},hy,CI;function DF(){if(CI)return hy;CI=1;var t=s1(),e=vE();return hy=Object.keys||function(r){return t(r,e)},hy}var yI;function kF(){if(yI)return cy;yI=1;var t=go(),e=r1(),n=ml(),r=ln(),i=Of(),o=DF();return cy.f=t&&!e?Object.defineProperties:function(a,l){r(a);for(var u=i(l),c=o(l),h=c.length,d=0,f;h>d;)n.f(a,f=c[d++],u[f]);return a},cy}var dy,bI;function v1(){if(bI)return dy;bI=1;var t=ah();return dy=t("document","documentElement"),dy}var fy,SI;function bE(){if(SI)return fy;SI=1;var t=ln(),e=kF(),n=vE(),r=pE(),i=v1(),o=gE(),s=mE(),a=">",l="<",u="prototype",c="script",h=s("IE_PROTO"),d=function(){},f=function(v){return l+c+a+v+l+"/"+c+a},g=function(v){v.write(f("")),v.close();var P=v.parentWindow.Object;return v=null,P},C=function(){var v=o("iframe"),P="java"+c+":",O;return v.style.display="none",i.appendChild(v),v.src=String(P),O=v.contentWindow.document,O.open(),O.write(f("document.F=Object")),O.close(),O.F},y,E=function(){try{y=new ActiveXObject("htmlfile")}catch{}E=typeof document<"u"?document.domain&&y?g(y):C():g(y);for(var v=n.length;v--;)delete E[u][n[v]];return E()};return r[h]=!0,fy=Object.create||function(P,O){var L;return P!==null?(d[u]=t(P),L=new d,d[u]=null,L[h]=P):L=E(),O===void 0?L:e.f(L,O)},fy}var gy,RI;function C1(){if(RI)return gy;RI=1;var t=Cn(),e=an(),n=mo(),r=bE(),i=w1(),o=wE(),s=Yo(),a=gl(),l=s("iterator"),u=!1,c,h,d;[].keys&&(d=[].keys(),"next"in d?(h=i(i(d)),h!==Object.prototype&&(c=h)):u=!0);var f=!n(c)||t(function(){var g={};return c[l].call(g)!==g});return f?c={}:a&&(c=r(c)),e(c[l])||o(c,l,function(){return this}),gy={IteratorPrototype:c,BUGGY_SAFARI_ITERATORS:u},gy}var EI;function LF(){if(EI)return gI;EI=1;var t=dt(),e=on(),n=AF(),r=ln(),i=an(),o=w1(),s=NF(),a=p1(),l=Cn(),u=po(),c=Yo(),h=C1().IteratorPrototype,d=go(),f=gl(),g="constructor",C="Iterator",y=c("toStringTag"),E=TypeError,v=e[C],P=f||!i(v)||v.prototype!==h||!l(function(){v({})}),O=function(){if(n(this,h),o(this)===h)throw new E("Abstract class Iterator not directly constructable")},L=function(T,A){d?s(h,T,{configurable:!0,get:function(){return A},set:function(K){if(r(this),this===h)throw new E("You can't redefine this property");u(this,T)?this[T]=K:a(this,T,K)}}):h[T]=A};return u(h,y)||L(y,C),(P||!u(h,g)||h[g]===Object)&&L(g,O),O.prototype=h,t({global:!0,constructor:!0,forced:P},{Iterator:O}),gI}var TI;function $F(){return TI||(TI=1,LF()),fI}$F();var _I={},MI={},my,II;function FF(){if(II)return my;II=1;var t=wE();return my=function(e,n,r){for(var i in n)t(e,i,n[i],r);return e},my}var py,PI;function VF(){return PI||(PI=1,py=function(t,e){return{value:t,done:e}}),py}var wy,OI;function SE(){if(OI)return wy;OI=1;var t=sn(),e=bE(),n=uh(),r=FF(),i=Yo(),o=i1(),s=Af(),a=C1().IteratorPrototype,l=VF(),u=Yi(),c=i("toStringTag"),h="IteratorHelper",d="WrapForValidIterator",f=o.set,g=function(E){var v=o.getterFor(E?d:h);return r(e(a),{next:function(){var O=v(this);if(E)return O.nextHandler();if(O.done)return l(void 0,!0);try{var L=O.nextHandler();return O.returnHandlerResult?L:l(L,O.done)}catch(T){throw O.done=!0,T}},return:function(){var P=v(this),O=P.iterator;if(P.done=!0,E){var L=s(O,"return");return L?t(L,O):l(void 0,!0)}if(P.inner)try{u(P.inner.iterator,"normal")}catch(T){return u(O,"throw",T)}return O&&u(O,"normal"),l(void 0,!0)}})},C=g(!0),y=g(!1);return n(y,c,"Iterator Helper"),wy=function(E,v,P){var O=function(T,A){A?(A.iterator=T.iterator,A.next=T.next):A=T,A.type=v?d:h,A.returnHandlerResult=!!P,A.nextHandler=E,A.counter=0,A.done=!1,f(this,A)};return O.prototype=v?C:y,O},wy}var vy,xI;function y1(){if(xI)return vy;xI=1;var t=ln(),e=Yi();return vy=function(n,r,i,o){try{return o?r(t(i)[0],i[1]):r(i)}catch(s){e(n,"throw",s)}},vy}var Cy,AI;function pl(){if(AI)return Cy;AI=1;var t=on();return Cy=function(e,n){var r=t.Iterator,i=r&&r.prototype,o=i&&i[e],s=!1;if(o)try{o.call({next:function(){return{done:!0}},return:function(){s=!0}},-1)}catch(a){a instanceof n||(s=!1)}if(!s)return o},Cy}var HI;function WF(){if(HI)return MI;HI=1;var t=dt(),e=sn(),n=pr(),r=ln(),i=Os(),o=SE(),s=y1(),a=gl(),l=Yi(),u=pl(),c=!a&&u("filter",TypeError),h=o(function(){for(var d=this.iterator,f=this.predicate,g=this.next,C,y,E;;){if(C=r(e(g,d)),y=this.done=!!C.done,y)return;if(E=C.value,s(d,f,[E,this.counter++],!0))return E}});return t({target:"Iterator",proto:!0,real:!0,forced:a||c},{filter:function(f){r(this);try{n(f)}catch(g){l(this,"throw",g)}return c?e(c,this,f):new h(i(this),{predicate:f})}}),MI}var NI;function BF(){return NI||(NI=1,WF()),_I}BF();var DI={},kI={},LI;function jF(){if(LI)return kI;LI=1;var t=dt(),e=sn(),n=hh(),r=pr(),i=ln(),o=Os(),s=Yi(),a=pl(),l=a("forEach",TypeError);return t({target:"Iterator",proto:!0,real:!0,forced:l},{forEach:function(c){i(this);try{r(c)}catch(f){s(this,"throw",f)}if(l)return e(l,this,c);var h=o(this),d=0;n(h,function(f){c(f,d++)},{IS_RECORD:!0})}}),kI}var $I;function UF(){return $I||($I=1,jF()),DI}UF();var FI={},VI={},WI;function zF(){if(WI)return VI;WI=1;var t=dt(),e=sn(),n=pr(),r=ln(),i=Os(),o=SE(),s=y1(),a=Yi(),l=pl(),u=gl(),c=!u&&l("map",TypeError),h=o(function(){var d=this.iterator,f=r(e(this.next,d)),g=this.done=!!f.done;if(!g)return s(d,this.mapper,[f.value,this.counter++],!0)});return t({target:"Iterator",proto:!0,real:!0,forced:u||c},{map:function(f){r(this);try{n(f)}catch(g){a(this,"throw",g)}return c?e(c,this,f):new h(i(this),{mapper:f})}}),VI}var BI;function YF(){return BI||(BI=1,zF()),FI}YF();var jI={},UI={},yy,zI;function RE(){if(zI)return yy;zI=1;var t=qt();return yy=t([].slice),yy}var by,YI;function b1(){if(YI)return by;YI=1;var t=TypeError;return by=function(e,n){if(e<n)throw new t("Not enough arguments");return e},by}var Sy,GI;function GF(){if(GI)return Sy;GI=1;var t=aw();return Sy=/(?:ipad|iphone|ipod).*applewebkit/i.test(t),Sy}var Ry,KI;function S1(){if(KI)return Ry;KI=1;var t=on(),e=aw(),n=Nu(),r=function(i){return e.slice(0,i.length)===i};return Ry=function(){return r("Bun/")?"BUN":r("Cloudflare-Workers")?"CLOUDFLARE":r("Deno/")?"DENO":r("Node.js/")?"NODE":t.Bun&&typeof Bun.version=="string"?"BUN":t.Deno&&typeof Deno.version=="object"?"DENO":n(t.process)==="process"?"NODE":t.window&&t.document?"BROWSER":"REST"}(),Ry}var Ey,qI;function KF(){if(qI)return Ey;qI=1;var t=S1();return Ey=t==="NODE",Ey}var Ty,XI;function R1(){if(XI)return Ty;XI=1;var t=on(),e=Nf(),n=g1(),r=an(),i=po(),o=Cn(),s=v1(),a=RE(),l=gE(),u=b1(),c=GF(),h=KF(),d=t.setImmediate,f=t.clearImmediate,g=t.process,C=t.Dispatch,y=t.Function,E=t.MessageChannel,v=t.String,P=0,O={},L="onreadystatechange",T,A,K,U;o(function(){T=t.location});var j=function(te){if(i(O,te)){var ue=O[te];delete O[te],ue()}},Z=function(te){return function(){j(te)}},J=function(te){j(te.data)},se=function(te){t.postMessage(v(te),T.protocol+"//"+T.host)};return(!d||!f)&&(d=function(ue){u(arguments.length,1);var pt=r(ue)?ue:y(ue),be=a(arguments,1);return O[++P]=function(){e(pt,void 0,be)},A(P),P},f=function(ue){delete O[ue]},h?A=function(te){g.nextTick(Z(te))}:C&&C.now?A=function(te){C.now(Z(te))}:E&&!c?(K=new E,U=K.port2,K.port1.onmessage=J,A=n(U.postMessage,U)):t.addEventListener&&r(t.postMessage)&&!t.importScripts&&T&&T.protocol!=="file:"&&!o(se)?(A=se,t.addEventListener("message",J,!1)):L in l("script")?A=function(te){s.appendChild(l("script"))[L]=function(){s.removeChild(this),j(te)}}:A=function(te){setTimeout(Z(te),0)}),Ty={set:d,clear:f},Ty}var ZI;function qF(){if(ZI)return UI;ZI=1;var t=dt(),e=on(),n=R1().clear;return t({global:!0,bind:!0,enumerable:!0,forced:e.clearImmediate!==n},{clearImmediate:n}),UI}var QI={},_y,JI;function XF(){if(JI)return _y;JI=1;var t=on(),e=Nf(),n=an(),r=S1(),i=aw(),o=RE(),s=b1(),a=t.Function,l=/MSIE .\./.test(i)||r==="BUN"&&function(){var u=t.Bun.version.split(".");return u.length<3||u[0]==="0"&&(u[1]<3||u[1]==="3"&&u[2]==="0")}();return _y=function(u,c){var h=c?2:1;return l?function(d,f){var g=s(arguments.length,1)>h,C=n(d)?d:a(d),y=g?o(arguments,h):[],E=g?function(){e(C,this,y)}:C;return c?u(E,f):u(E)}:u},_y}var eP;function ZF(){if(eP)return QI;eP=1;var t=dt(),e=on(),n=R1().set,r=XF(),i=e.setImmediate?r(n,!1):n;return t({global:!0,bind:!0,enumerable:!0,forced:e.setImmediate!==i},{setImmediate:i}),QI}var tP;function QF(){return tP||(tP=1,qF(),ZF()),jI}QF();/*! @license DOMPurify 3.2.5 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.5/LICENSE */const{entries:E1,setPrototypeOf:nP,isFrozen:JF,getPrototypeOf:eV,getOwnPropertyDescriptor:tV}=Object;let{freeze:zn,seal:fo,create:T1}=Object,{apply:aR,construct:lR}=typeof Reflect<"u"&&Reflect;zn||(zn=function(e){return e});fo||(fo=function(e){return e});aR||(aR=function(e,n,r){return e.apply(n,r)});lR||(lR=function(e,n){return new e(...n)});const ig=Yn(Array.prototype.forEach),nV=Yn(Array.prototype.lastIndexOf),rP=Yn(Array.prototype.pop),Mh=Yn(Array.prototype.push),rV=Yn(Array.prototype.splice),Wm=Yn(String.prototype.toLowerCase),My=Yn(String.prototype.toString),iP=Yn(String.prototype.match),Ih=Yn(String.prototype.replace),iV=Yn(String.prototype.indexOf),oV=Yn(String.prototype.trim),xo=Yn(Object.prototype.hasOwnProperty),Dn=Yn(RegExp.prototype.test),Ph=sV(TypeError);function Yn(t){return function(e){e instanceof RegExp&&(e.lastIndex=0);for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return aR(t,e,r)}}function sV(t){return function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return lR(t,n)}}function Fe(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Wm;nP&&nP(t,null);let r=e.length;for(;r--;){let i=e[r];if(typeof i=="string"){const o=n(i);o!==i&&(JF(e)||(e[r]=o),i=o)}t[i]=!0}return t}function aV(t){for(let e=0;e<t.length;e++)xo(t,e)||(t[e]=null);return t}function lu(t){const e=T1(null);for(const[n,r]of E1(t))xo(t,n)&&(Array.isArray(r)?e[n]=aV(r):r&&typeof r=="object"&&r.constructor===Object?e[n]=lu(r):e[n]=r);return e}function Oh(t,e){for(;t!==null;){const r=tV(t,e);if(r){if(r.get)return Yn(r.get);if(typeof r.value=="function")return Yn(r.value)}t=eV(t)}function n(){return null}return n}const oP=zn(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Iy=zn(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Py=zn(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),lV=zn(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Oy=zn(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),uV=zn(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),sP=zn(["#text"]),aP=zn(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),xy=zn(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),lP=zn(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),og=zn(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),cV=fo(/\{\{[\w\W]*|[\w\W]*\}\}/gm),hV=fo(/<%[\w\W]*|[\w\W]*%>/gm),dV=fo(/\$\{[\w\W]*/gm),fV=fo(/^data-[\-\w.\u00B7-\uFFFF]+$/),gV=fo(/^aria-[\-\w]+$/),_1=fo(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),mV=fo(/^(?:\w+script|data):/i),pV=fo(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),M1=fo(/^html$/i),wV=fo(/^[a-z][.\w]*(-[.\w]+)+$/i);var uP=Object.freeze({__proto__:null,ARIA_ATTR:gV,ATTR_WHITESPACE:pV,CUSTOM_ELEMENT:wV,DATA_ATTR:fV,DOCTYPE_NAME:M1,ERB_EXPR:hV,IS_ALLOWED_URI:_1,IS_SCRIPT_OR_DATA:mV,MUSTACHE_EXPR:cV,TMPLIT_EXPR:dV});const xh={element:1,text:3,progressingInstruction:7,comment:8,document:9},vV=function(){return typeof window>"u"?null:window},CV=function(e,n){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let r=null;const i="data-tt-policy-suffix";n&&n.hasAttribute(i)&&(r=n.getAttribute(i));const o="dompurify"+(r?"#"+r:"");try{return e.createPolicy(o,{createHTML(s){return s},createScriptURL(s){return s}})}catch{return console.warn("TrustedTypes policy "+o+" could not be created."),null}},cP=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function I1(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:vV();const e=we=>I1(we);if(e.version="3.2.5",e.removed=[],!t||!t.document||t.document.nodeType!==xh.document||!t.Element)return e.isSupported=!1,e;let{document:n}=t;const r=n,i=r.currentScript,{DocumentFragment:o,HTMLTemplateElement:s,Node:a,Element:l,NodeFilter:u,NamedNodeMap:c=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:h,DOMParser:d,trustedTypes:f}=t,g=l.prototype,C=Oh(g,"cloneNode"),y=Oh(g,"remove"),E=Oh(g,"nextSibling"),v=Oh(g,"childNodes"),P=Oh(g,"parentNode");if(typeof s=="function"){const we=n.createElement("template");we.content&&we.content.ownerDocument&&(n=we.content.ownerDocument)}let O,L="";const{implementation:T,createNodeIterator:A,createDocumentFragment:K,getElementsByTagName:U}=n,{importNode:j}=r;let Z=cP();e.isSupported=typeof E1=="function"&&typeof P=="function"&&T&&T.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:J,ERB_EXPR:se,TMPLIT_EXPR:te,DATA_ATTR:ue,ARIA_ATTR:pt,IS_SCRIPT_OR_DATA:be,ATTR_WHITESPACE:ke,CUSTOM_ELEMENT:wt}=uP;let{IS_ALLOWED_URI:fn}=uP,et=null;const m=Fe({},[...oP,...Iy,...Py,...Oy,...sP]);let w=null;const p=Fe({},[...aP,...xy,...lP,...og]);let I=Object.seal(T1(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),$=null,B=null,Y=!0,q=!0,b=!1,R=!0,S=!1,k=!0,_=!1,H=!1,W=!1,x=!1,N=!1,V=!1,F=!0,z=!1;const oe="user-content-";let ce=!0,Re=!1,Ne={},We=null;const Se=Fe({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Le=null;const vt=Fe({},["audio","video","img","source","image","track"]);let yo=null;const Ns=Fe({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Ki="http://www.w3.org/1998/Math/MathML",Ct="http://www.w3.org/2000/svg",Zt="http://www.w3.org/1999/xhtml";let ft=Zt,yt=!1,$e=null;const qi=Fe({},[Ki,Ct,Zt],My);let yl=Fe({},["mi","mo","mn","ms","mtext"]),bl=Fe({},["annotation-xml"]);const A$=Fe({},["title","style","font","a","script"]);let Rh=null;const H$=["application/xhtml+xml","text/html"],N$="text/html";let gn=null,Uu=null;const D$=n.createElement("form"),AT=function(D){return D instanceof RegExp||D instanceof Function},iv=function(){let D=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Uu&&Uu===D)){if((!D||typeof D!="object")&&(D={}),D=lu(D),Rh=H$.indexOf(D.PARSER_MEDIA_TYPE)===-1?N$:D.PARSER_MEDIA_TYPE,gn=Rh==="application/xhtml+xml"?My:Wm,et=xo(D,"ALLOWED_TAGS")?Fe({},D.ALLOWED_TAGS,gn):m,w=xo(D,"ALLOWED_ATTR")?Fe({},D.ALLOWED_ATTR,gn):p,$e=xo(D,"ALLOWED_NAMESPACES")?Fe({},D.ALLOWED_NAMESPACES,My):qi,yo=xo(D,"ADD_URI_SAFE_ATTR")?Fe(lu(Ns),D.ADD_URI_SAFE_ATTR,gn):Ns,Le=xo(D,"ADD_DATA_URI_TAGS")?Fe(lu(vt),D.ADD_DATA_URI_TAGS,gn):vt,We=xo(D,"FORBID_CONTENTS")?Fe({},D.FORBID_CONTENTS,gn):Se,$=xo(D,"FORBID_TAGS")?Fe({},D.FORBID_TAGS,gn):{},B=xo(D,"FORBID_ATTR")?Fe({},D.FORBID_ATTR,gn):{},Ne=xo(D,"USE_PROFILES")?D.USE_PROFILES:!1,Y=D.ALLOW_ARIA_ATTR!==!1,q=D.ALLOW_DATA_ATTR!==!1,b=D.ALLOW_UNKNOWN_PROTOCOLS||!1,R=D.ALLOW_SELF_CLOSE_IN_ATTR!==!1,S=D.SAFE_FOR_TEMPLATES||!1,k=D.SAFE_FOR_XML!==!1,_=D.WHOLE_DOCUMENT||!1,x=D.RETURN_DOM||!1,N=D.RETURN_DOM_FRAGMENT||!1,V=D.RETURN_TRUSTED_TYPE||!1,W=D.FORCE_BODY||!1,F=D.SANITIZE_DOM!==!1,z=D.SANITIZE_NAMED_PROPS||!1,ce=D.KEEP_CONTENT!==!1,Re=D.IN_PLACE||!1,fn=D.ALLOWED_URI_REGEXP||_1,ft=D.NAMESPACE||Zt,yl=D.MATHML_TEXT_INTEGRATION_POINTS||yl,bl=D.HTML_INTEGRATION_POINTS||bl,I=D.CUSTOM_ELEMENT_HANDLING||{},D.CUSTOM_ELEMENT_HANDLING&&AT(D.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(I.tagNameCheck=D.CUSTOM_ELEMENT_HANDLING.tagNameCheck),D.CUSTOM_ELEMENT_HANDLING&&AT(D.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(I.attributeNameCheck=D.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),D.CUSTOM_ELEMENT_HANDLING&&typeof D.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(I.allowCustomizedBuiltInElements=D.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),S&&(q=!1),N&&(x=!0),Ne&&(et=Fe({},sP),w=[],Ne.html===!0&&(Fe(et,oP),Fe(w,aP)),Ne.svg===!0&&(Fe(et,Iy),Fe(w,xy),Fe(w,og)),Ne.svgFilters===!0&&(Fe(et,Py),Fe(w,xy),Fe(w,og)),Ne.mathMl===!0&&(Fe(et,Oy),Fe(w,lP),Fe(w,og))),D.ADD_TAGS&&(et===m&&(et=lu(et)),Fe(et,D.ADD_TAGS,gn)),D.ADD_ATTR&&(w===p&&(w=lu(w)),Fe(w,D.ADD_ATTR,gn)),D.ADD_URI_SAFE_ATTR&&Fe(yo,D.ADD_URI_SAFE_ATTR,gn),D.FORBID_CONTENTS&&(We===Se&&(We=lu(We)),Fe(We,D.FORBID_CONTENTS,gn)),ce&&(et["#text"]=!0),_&&Fe(et,["html","head","body"]),et.table&&(Fe(et,["tbody"]),delete $.tbody),D.TRUSTED_TYPES_POLICY){if(typeof D.TRUSTED_TYPES_POLICY.createHTML!="function")throw Ph('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof D.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Ph('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');O=D.TRUSTED_TYPES_POLICY,L=O.createHTML("")}else O===void 0&&(O=CV(f,i)),O!==null&&typeof L=="string"&&(L=O.createHTML(""));zn&&zn(D),Uu=D}},HT=Fe({},[...Iy,...Py,...lV]),NT=Fe({},[...Oy,...uV]),k$=function(D){let ee=P(D);(!ee||!ee.tagName)&&(ee={namespaceURI:ft,tagName:"template"});const ge=Wm(D.tagName),_t=Wm(ee.tagName);return $e[D.namespaceURI]?D.namespaceURI===Ct?ee.namespaceURI===Zt?ge==="svg":ee.namespaceURI===Ki?ge==="svg"&&(_t==="annotation-xml"||yl[_t]):!!HT[ge]:D.namespaceURI===Ki?ee.namespaceURI===Zt?ge==="math":ee.namespaceURI===Ct?ge==="math"&&bl[_t]:!!NT[ge]:D.namespaceURI===Zt?ee.namespaceURI===Ct&&!bl[_t]||ee.namespaceURI===Ki&&!yl[_t]?!1:!NT[ge]&&(A$[ge]||!HT[ge]):!!(Rh==="application/xhtml+xml"&&$e[D.namespaceURI]):!1},Xo=function(D){Mh(e.removed,{element:D});try{P(D).removeChild(D)}catch{y(D)}},rg=function(D,ee){try{Mh(e.removed,{attribute:ee.getAttributeNode(D),from:ee})}catch{Mh(e.removed,{attribute:null,from:ee})}if(ee.removeAttribute(D),D==="is")if(x||N)try{Xo(ee)}catch{}else try{ee.setAttribute(D,"")}catch{}},DT=function(D){let ee=null,ge=null;if(W)D="<remove></remove>"+D;else{const yn=iP(D,/^[\r\n\t ]+/);ge=yn&&yn[0]}Rh==="application/xhtml+xml"&&ft===Zt&&(D='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+D+"</body></html>");const _t=O?O.createHTML(D):D;if(ft===Zt)try{ee=new d().parseFromString(_t,Rh)}catch{}if(!ee||!ee.documentElement){ee=T.createDocument(ft,"template",null);try{ee.documentElement.innerHTML=yt?L:_t}catch{}}const En=ee.body||ee.documentElement;return D&&ge&&En.insertBefore(n.createTextNode(ge),En.childNodes[0]||null),ft===Zt?U.call(ee,_?"html":"body")[0]:_?ee.documentElement:En},kT=function(D){return A.call(D.ownerDocument||D,D,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT|u.SHOW_PROCESSING_INSTRUCTION|u.SHOW_CDATA_SECTION,null)},ov=function(D){return D instanceof h&&(typeof D.nodeName!="string"||typeof D.textContent!="string"||typeof D.removeChild!="function"||!(D.attributes instanceof c)||typeof D.removeAttribute!="function"||typeof D.setAttribute!="function"||typeof D.namespaceURI!="string"||typeof D.insertBefore!="function"||typeof D.hasChildNodes!="function")},LT=function(D){return typeof a=="function"&&D instanceof a};function Ds(we,D,ee){ig(we,ge=>{ge.call(e,D,ee,Uu)})}const $T=function(D){let ee=null;if(Ds(Z.beforeSanitizeElements,D,null),ov(D))return Xo(D),!0;const ge=gn(D.nodeName);if(Ds(Z.uponSanitizeElement,D,{tagName:ge,allowedTags:et}),D.hasChildNodes()&&!LT(D.firstElementChild)&&Dn(/<[/\w!]/g,D.innerHTML)&&Dn(/<[/\w!]/g,D.textContent)||D.nodeType===xh.progressingInstruction||k&&D.nodeType===xh.comment&&Dn(/<[/\w]/g,D.data))return Xo(D),!0;if(!et[ge]||$[ge]){if(!$[ge]&&VT(ge)&&(I.tagNameCheck instanceof RegExp&&Dn(I.tagNameCheck,ge)||I.tagNameCheck instanceof Function&&I.tagNameCheck(ge)))return!1;if(ce&&!We[ge]){const _t=P(D)||D.parentNode,En=v(D)||D.childNodes;if(En&&_t){const yn=En.length;for(let Jn=yn-1;Jn>=0;--Jn){const Zo=C(En[Jn],!0);Zo.__removalCount=(D.__removalCount||0)+1,_t.insertBefore(Zo,E(D))}}}return Xo(D),!0}return D instanceof l&&!k$(D)||(ge==="noscript"||ge==="noembed"||ge==="noframes")&&Dn(/<\/no(script|embed|frames)/i,D.innerHTML)?(Xo(D),!0):(S&&D.nodeType===xh.text&&(ee=D.textContent,ig([J,se,te],_t=>{ee=Ih(ee,_t," ")}),D.textContent!==ee&&(Mh(e.removed,{element:D.cloneNode()}),D.textContent=ee)),Ds(Z.afterSanitizeElements,D,null),!1)},FT=function(D,ee,ge){if(F&&(ee==="id"||ee==="name")&&(ge in n||ge in D$))return!1;if(!(q&&!B[ee]&&Dn(ue,ee))){if(!(Y&&Dn(pt,ee))){if(!w[ee]||B[ee]){if(!(VT(D)&&(I.tagNameCheck instanceof RegExp&&Dn(I.tagNameCheck,D)||I.tagNameCheck instanceof Function&&I.tagNameCheck(D))&&(I.attributeNameCheck instanceof RegExp&&Dn(I.attributeNameCheck,ee)||I.attributeNameCheck instanceof Function&&I.attributeNameCheck(ee))||ee==="is"&&I.allowCustomizedBuiltInElements&&(I.tagNameCheck instanceof RegExp&&Dn(I.tagNameCheck,ge)||I.tagNameCheck instanceof Function&&I.tagNameCheck(ge))))return!1}else if(!yo[ee]){if(!Dn(fn,Ih(ge,ke,""))){if(!((ee==="src"||ee==="xlink:href"||ee==="href")&&D!=="script"&&iV(ge,"data:")===0&&Le[D])){if(!(b&&!Dn(be,Ih(ge,ke,"")))){if(ge)return!1}}}}}}return!0},VT=function(D){return D!=="annotation-xml"&&iP(D,wt)},WT=function(D){Ds(Z.beforeSanitizeAttributes,D,null);const{attributes:ee}=D;if(!ee||ov(D))return;const ge={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:w,forceKeepAttr:void 0};let _t=ee.length;for(;_t--;){const En=ee[_t],{name:yn,namespaceURI:Jn,value:Zo}=En,Eh=gn(yn);let Nn=yn==="value"?Zo:oV(Zo);if(ge.attrName=Eh,ge.attrValue=Nn,ge.keepAttr=!0,ge.forceKeepAttr=void 0,Ds(Z.uponSanitizeAttribute,D,ge),Nn=ge.attrValue,z&&(Eh==="id"||Eh==="name")&&(rg(yn,D),Nn=oe+Nn),k&&Dn(/((--!?|])>)|<\/(style|title)/i,Nn)){rg(yn,D);continue}if(ge.forceKeepAttr||(rg(yn,D),!ge.keepAttr))continue;if(!R&&Dn(/\/>/i,Nn)){rg(yn,D);continue}S&&ig([J,se,te],jT=>{Nn=Ih(Nn,jT," ")});const BT=gn(D.nodeName);if(FT(BT,Eh,Nn)){if(O&&typeof f=="object"&&typeof f.getAttributeType=="function"&&!Jn)switch(f.getAttributeType(BT,Eh)){case"TrustedHTML":{Nn=O.createHTML(Nn);break}case"TrustedScriptURL":{Nn=O.createScriptURL(Nn);break}}try{Jn?D.setAttributeNS(Jn,yn,Nn):D.setAttribute(yn,Nn),ov(D)?Xo(D):rP(e.removed)}catch{}}}Ds(Z.afterSanitizeAttributes,D,null)},L$=function we(D){let ee=null;const ge=kT(D);for(Ds(Z.beforeSanitizeShadowDOM,D,null);ee=ge.nextNode();)Ds(Z.uponSanitizeShadowNode,ee,null),$T(ee),WT(ee),ee.content instanceof o&&we(ee.content);Ds(Z.afterSanitizeShadowDOM,D,null)};return e.sanitize=function(we){let D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ee=null,ge=null,_t=null,En=null;if(yt=!we,yt&&(we="<!-->"),typeof we!="string"&&!LT(we))if(typeof we.toString=="function"){if(we=we.toString(),typeof we!="string")throw Ph("dirty is not a string, aborting")}else throw Ph("toString is not a function");if(!e.isSupported)return we;if(H||iv(D),e.removed=[],typeof we=="string"&&(Re=!1),Re){if(we.nodeName){const Zo=gn(we.nodeName);if(!et[Zo]||$[Zo])throw Ph("root node is forbidden and cannot be sanitized in-place")}}else if(we instanceof a)ee=DT("<!---->"),ge=ee.ownerDocument.importNode(we,!0),ge.nodeType===xh.element&&ge.nodeName==="BODY"||ge.nodeName==="HTML"?ee=ge:ee.appendChild(ge);else{if(!x&&!S&&!_&&we.indexOf("<")===-1)return O&&V?O.createHTML(we):we;if(ee=DT(we),!ee)return x?null:V?L:""}ee&&W&&Xo(ee.firstChild);const yn=kT(Re?we:ee);for(;_t=yn.nextNode();)$T(_t),WT(_t),_t.content instanceof o&&L$(_t.content);if(Re)return we;if(x){if(N)for(En=K.call(ee.ownerDocument);ee.firstChild;)En.appendChild(ee.firstChild);else En=ee;return(w.shadowroot||w.shadowrootmode)&&(En=j.call(r,En,!0)),En}let Jn=_?ee.outerHTML:ee.innerHTML;return _&&et["!doctype"]&&ee.ownerDocument&&ee.ownerDocument.doctype&&ee.ownerDocument.doctype.name&&Dn(M1,ee.ownerDocument.doctype.name)&&(Jn="<!DOCTYPE "+ee.ownerDocument.doctype.name+`>
|
|
1
|
+
import{m as UT,W as Dt,R as XH,r as Th,j as zT}from"./app.js";import{u as $$}from"./use-appearance-J8J2w43p.js";var YT={},_h,GT;function on(){if(GT)return _h;GT=1;var t=function(e){return e&&e.Math===Math&&e};return _h=t(typeof globalThis=="object"&&globalThis)||t(typeof window=="object"&&window)||t(typeof self=="object"&&self)||t(typeof UT=="object"&&UT)||t(typeof _h=="object"&&_h)||function(){return this}()||Function("return this")(),_h}var sv={},av,KT;function Cn(){return KT||(KT=1,av=function(t){try{return!!t()}catch{return!0}}),av}var lv,qT;function go(){if(qT)return lv;qT=1;var t=Cn();return lv=!t(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7}),lv}var uv,XT;function ow(){if(XT)return uv;XT=1;var t=Cn();return uv=!t(function(){var e=(function(){}).bind();return typeof e!="function"||e.hasOwnProperty("prototype")}),uv}var cv,ZT;function sn(){if(ZT)return cv;ZT=1;var t=ow(),e=Function.prototype.call;return cv=t?e.bind(e):function(){return e.apply(e,arguments)},cv}var hv={},QT;function F$(){if(QT)return hv;QT=1;var t={}.propertyIsEnumerable,e=Object.getOwnPropertyDescriptor,n=e&&!t.call({1:2},1);return hv.f=n?function(i){var o=e(this,i);return!!o&&o.enumerable}:t,hv}var dv,JT;function sw(){return JT||(JT=1,dv=function(t,e){return{enumerable:!(t&1),configurable:!(t&2),writable:!(t&4),value:e}}),dv}var fv,e_;function qt(){if(e_)return fv;e_=1;var t=ow(),e=Function.prototype,n=e.call,r=t&&e.bind.bind(n,n);return fv=t?r:function(i){return function(){return n.apply(i,arguments)}},fv}var gv,t_;function Nu(){if(t_)return gv;t_=1;var t=qt(),e=t({}.toString),n=t("".slice);return gv=function(r){return n(e(r),8,-1)},gv}var mv,n_;function V$(){if(n_)return mv;n_=1;var t=qt(),e=Cn(),n=Nu(),r=Object,i=t("".split);return mv=e(function(){return!r("z").propertyIsEnumerable(0)})?function(o){return n(o)==="String"?i(o,""):r(o)}:r,mv}var pv,r_;function uE(){return r_||(r_=1,pv=function(t){return t==null}),pv}var wv,i_;function Pf(){if(i_)return wv;i_=1;var t=uE(),e=TypeError;return wv=function(n){if(t(n))throw new e("Can't call method on "+n);return n},wv}var vv,o_;function Of(){if(o_)return vv;o_=1;var t=V$(),e=Pf();return vv=function(n){return t(e(n))},vv}var Cv,s_;function an(){if(s_)return Cv;s_=1;var t=typeof document=="object"&&document.all;return Cv=typeof t>"u"&&t!==void 0?function(e){return typeof e=="function"||e===t}:function(e){return typeof e=="function"},Cv}var yv,a_;function mo(){if(a_)return yv;a_=1;var t=an();return yv=function(e){return typeof e=="object"?e!==null:t(e)},yv}var bv,l_;function ah(){if(l_)return bv;l_=1;var t=on(),e=an(),n=function(r){return e(r)?r:void 0};return bv=function(r,i){return arguments.length<2?n(t[r]):t[r]&&t[r][i]},bv}var Sv,u_;function xf(){if(u_)return Sv;u_=1;var t=qt();return Sv=t({}.isPrototypeOf),Sv}var Rv,c_;function aw(){if(c_)return Rv;c_=1;var t=on(),e=t.navigator,n=e&&e.userAgent;return Rv=n?String(n):"",Rv}var Ev,h_;function W$(){if(h_)return Ev;h_=1;var t=on(),e=aw(),n=t.process,r=t.Deno,i=n&&n.versions||r&&r.version,o=i&&i.v8,s,a;return o&&(s=o.split("."),a=s[0]>0&&s[0]<4?1:+(s[0]+s[1])),!a&&e&&(s=e.match(/Edge\/(\d+)/),(!s||s[1]>=74)&&(s=e.match(/Chrome\/(\d+)/),s&&(a=+s[1]))),Ev=a,Ev}var Tv,d_;function cE(){if(d_)return Tv;d_=1;var t=W$(),e=Cn(),n=on(),r=n.String;return Tv=!!Object.getOwnPropertySymbols&&!e(function(){var i=Symbol("symbol detection");return!r(i)||!(Object(i)instanceof Symbol)||!Symbol.sham&&t&&t<41}),Tv}var _v,f_;function ZH(){if(f_)return _v;f_=1;var t=cE();return _v=t&&!Symbol.sham&&typeof Symbol.iterator=="symbol",_v}var Mv,g_;function hE(){if(g_)return Mv;g_=1;var t=ah(),e=an(),n=xf(),r=ZH(),i=Object;return Mv=r?function(o){return typeof o=="symbol"}:function(o){var s=t("Symbol");return e(s)&&n(s.prototype,i(o))},Mv}var Iv,m_;function lw(){if(m_)return Iv;m_=1;var t=String;return Iv=function(e){try{return t(e)}catch{return"Object"}},Iv}var Pv,p_;function pr(){if(p_)return Pv;p_=1;var t=an(),e=lw(),n=TypeError;return Pv=function(r){if(t(r))return r;throw new n(e(r)+" is not a function")},Pv}var Ov,w_;function Af(){if(w_)return Ov;w_=1;var t=pr(),e=uE();return Ov=function(n,r){var i=n[r];return e(i)?void 0:t(i)},Ov}var xv,v_;function B$(){if(v_)return xv;v_=1;var t=sn(),e=an(),n=mo(),r=TypeError;return xv=function(i,o){var s,a;if(o==="string"&&e(s=i.toString)&&!n(a=t(s,i))||e(s=i.valueOf)&&!n(a=t(s,i))||o!=="string"&&e(s=i.toString)&&!n(a=t(s,i)))return a;throw new r("Can't convert object to primitive value")},xv}var Av={exports:{}},Hv,C_;function gl(){return C_||(C_=1,Hv=!1),Hv}var Nv,y_;function dE(){if(y_)return Nv;y_=1;var t=on(),e=Object.defineProperty;return Nv=function(n,r){try{e(t,n,{value:r,configurable:!0,writable:!0})}catch{t[n]=r}return r},Nv}var b_;function fE(){if(b_)return Av.exports;b_=1;var t=gl(),e=on(),n=dE(),r="__core-js_shared__",i=Av.exports=e[r]||n(r,{});return(i.versions||(i.versions=[])).push({version:"3.42.0",mode:t?"pure":"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.42.0/LICENSE",source:"https://github.com/zloirock/core-js"}),Av.exports}var Dv,S_;function QH(){if(S_)return Dv;S_=1;var t=fE();return Dv=function(e,n){return t[e]||(t[e]=n||{})},Dv}var kv,R_;function lh(){if(R_)return kv;R_=1;var t=Pf(),e=Object;return kv=function(n){return e(t(n))},kv}var Lv,E_;function po(){if(E_)return Lv;E_=1;var t=qt(),e=lh(),n=t({}.hasOwnProperty);return Lv=Object.hasOwn||function(i,o){return n(e(i),o)},Lv}var $v,T_;function JH(){if(T_)return $v;T_=1;var t=qt(),e=0,n=Math.random(),r=t(1 .toString);return $v=function(i){return"Symbol("+(i===void 0?"":i)+")_"+r(++e+n,36)},$v}var Fv,__;function Yo(){if(__)return Fv;__=1;var t=on(),e=QH(),n=po(),r=JH(),i=cE(),o=ZH(),s=t.Symbol,a=e("wks"),l=o?s.for||s:s&&s.withoutSetter||r;return Fv=function(u){return n(a,u)||(a[u]=i&&n(s,u)?s[u]:l("Symbol."+u)),a[u]},Fv}var Vv,M_;function j$(){if(M_)return Vv;M_=1;var t=sn(),e=mo(),n=hE(),r=Af(),i=B$(),o=Yo(),s=TypeError,a=o("toPrimitive");return Vv=function(l,u){if(!e(l)||n(l))return l;var c=r(l,a),h;if(c){if(u===void 0&&(u="default"),h=t(c,l,u),!e(h)||n(h))return h;throw new s("Can't convert object to primitive value")}return u===void 0&&(u="number"),i(l,u)},Vv}var Wv,I_;function e1(){if(I_)return Wv;I_=1;var t=j$(),e=hE();return Wv=function(n){var r=t(n,"string");return e(r)?r:r+""},Wv}var Bv,P_;function gE(){if(P_)return Bv;P_=1;var t=on(),e=mo(),n=t.document,r=e(n)&&e(n.createElement);return Bv=function(i){return r?n.createElement(i):{}},Bv}var jv,O_;function t1(){if(O_)return jv;O_=1;var t=go(),e=Cn(),n=gE();return jv=!t&&!e(function(){return Object.defineProperty(n("div"),"a",{get:function(){return 7}}).a!==7}),jv}var x_;function n1(){if(x_)return sv;x_=1;var t=go(),e=sn(),n=F$(),r=sw(),i=Of(),o=e1(),s=po(),a=t1(),l=Object.getOwnPropertyDescriptor;return sv.f=t?l:function(c,h){if(c=i(c),h=o(h),a)try{return l(c,h)}catch{}if(s(c,h))return r(!e(n.f,c,h),c[h])},sv}var Uv={},zv,A_;function r1(){if(A_)return zv;A_=1;var t=go(),e=Cn();return zv=t&&e(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42}),zv}var Yv,H_;function ln(){if(H_)return Yv;H_=1;var t=mo(),e=String,n=TypeError;return Yv=function(r){if(t(r))return r;throw new n(e(r)+" is not an object")},Yv}var N_;function ml(){if(N_)return Uv;N_=1;var t=go(),e=t1(),n=r1(),r=ln(),i=e1(),o=TypeError,s=Object.defineProperty,a=Object.getOwnPropertyDescriptor,l="enumerable",u="configurable",c="writable";return Uv.f=t?n?function(d,f,g){if(r(d),f=i(f),r(g),typeof d=="function"&&f==="prototype"&&"value"in g&&c in g&&!g[c]){var C=a(d,f);C&&C[c]&&(d[f]=g.value,g={configurable:u in g?g[u]:C[u],enumerable:l in g?g[l]:C[l],writable:!1})}return s(d,f,g)}:s:function(d,f,g){if(r(d),f=i(f),r(g),e)try{return s(d,f,g)}catch{}if("get"in g||"set"in g)throw new o("Accessors not supported");return"value"in g&&(d[f]=g.value),d},Uv}var Gv,D_;function uh(){if(D_)return Gv;D_=1;var t=go(),e=ml(),n=sw();return Gv=t?function(r,i,o){return e.f(r,i,n(1,o))}:function(r,i,o){return r[i]=o,r},Gv}var Kv={exports:{}},qv,k_;function U$(){if(k_)return qv;k_=1;var t=go(),e=po(),n=Function.prototype,r=t&&Object.getOwnPropertyDescriptor,i=e(n,"name"),o=i&&(function(){}).name==="something",s=i&&(!t||t&&r(n,"name").configurable);return qv={EXISTS:i,PROPER:o,CONFIGURABLE:s},qv}var Xv,L_;function z$(){if(L_)return Xv;L_=1;var t=qt(),e=an(),n=fE(),r=t(Function.toString);return e(n.inspectSource)||(n.inspectSource=function(i){return r(i)}),Xv=n.inspectSource,Xv}var Zv,$_;function Y$(){if($_)return Zv;$_=1;var t=on(),e=an(),n=t.WeakMap;return Zv=e(n)&&/native code/.test(String(n)),Zv}var Qv,F_;function mE(){if(F_)return Qv;F_=1;var t=QH(),e=JH(),n=t("keys");return Qv=function(r){return n[r]||(n[r]=e(r))},Qv}var Jv,V_;function pE(){return V_||(V_=1,Jv={}),Jv}var eC,W_;function i1(){if(W_)return eC;W_=1;var t=Y$(),e=on(),n=mo(),r=uh(),i=po(),o=fE(),s=mE(),a=pE(),l="Object already initialized",u=e.TypeError,c=e.WeakMap,h,d,f,g=function(v){return f(v)?d(v):h(v,{})},C=function(v){return function(P){var O;if(!n(P)||(O=d(P)).type!==v)throw new u("Incompatible receiver, "+v+" required");return O}};if(t||o.state){var y=o.state||(o.state=new c);y.get=y.get,y.has=y.has,y.set=y.set,h=function(v,P){if(y.has(v))throw new u(l);return P.facade=v,y.set(v,P),P},d=function(v){return y.get(v)||{}},f=function(v){return y.has(v)}}else{var E=s("state");a[E]=!0,h=function(v,P){if(i(v,E))throw new u(l);return P.facade=v,r(v,E,P),P},d=function(v){return i(v,E)?v[E]:{}},f=function(v){return i(v,E)}}return eC={set:h,get:d,has:f,enforce:g,getterFor:C},eC}var B_;function o1(){if(B_)return Kv.exports;B_=1;var t=qt(),e=Cn(),n=an(),r=po(),i=go(),o=U$().CONFIGURABLE,s=z$(),a=i1(),l=a.enforce,u=a.get,c=String,h=Object.defineProperty,d=t("".slice),f=t("".replace),g=t([].join),C=i&&!e(function(){return h(function(){},"length",{value:8}).length!==8}),y=String(String).split("String"),E=Kv.exports=function(v,P,O){d(c(P),0,7)==="Symbol("&&(P="["+f(c(P),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),O&&O.getter&&(P="get "+P),O&&O.setter&&(P="set "+P),(!r(v,"name")||o&&v.name!==P)&&(i?h(v,"name",{value:P,configurable:!0}):v.name=P),C&&O&&r(O,"arity")&&v.length!==O.arity&&h(v,"length",{value:O.arity});try{O&&r(O,"constructor")&&O.constructor?i&&h(v,"prototype",{writable:!1}):v.prototype&&(v.prototype=void 0)}catch{}var L=l(v);return r(L,"source")||(L.source=g(y,typeof P=="string"?P:"")),v};return Function.prototype.toString=E(function(){return n(this)&&u(this).source||s(this)},"toString"),Kv.exports}var tC,j_;function wE(){if(j_)return tC;j_=1;var t=an(),e=ml(),n=o1(),r=dE();return tC=function(i,o,s,a){a||(a={});var l=a.enumerable,u=a.name!==void 0?a.name:o;if(t(s)&&n(s,u,a),a.global)l?i[o]=s:r(o,s);else{try{a.unsafe?i[o]&&(l=!0):delete i[o]}catch{}l?i[o]=s:e.f(i,o,{value:s,enumerable:!1,configurable:!a.nonConfigurable,writable:!a.nonWritable})}return i},tC}var nC={},rC,U_;function G$(){if(U_)return rC;U_=1;var t=Math.ceil,e=Math.floor;return rC=Math.trunc||function(r){var i=+r;return(i>0?e:t)(i)},rC}var iC,z_;function Hf(){if(z_)return iC;z_=1;var t=G$();return iC=function(e){var n=+e;return n!==n||n===0?0:t(n)},iC}var oC,Y_;function K$(){if(Y_)return oC;Y_=1;var t=Hf(),e=Math.max,n=Math.min;return oC=function(r,i){var o=t(r);return o<0?e(o+i,0):n(o,i)},oC}var sC,G_;function q$(){if(G_)return sC;G_=1;var t=Hf(),e=Math.min;return sC=function(n){var r=t(n);return r>0?e(r,9007199254740991):0},sC}var aC,K_;function ch(){if(K_)return aC;K_=1;var t=q$();return aC=function(e){return t(e.length)},aC}var lC,q_;function X$(){if(q_)return lC;q_=1;var t=Of(),e=K$(),n=ch(),r=function(i){return function(o,s,a){var l=t(o),u=n(l);if(u===0)return!i&&-1;var c=e(a,u),h;if(i&&s!==s){for(;u>c;)if(h=l[c++],h!==h)return!0}else for(;u>c;c++)if((i||c in l)&&l[c]===s)return i||c||0;return!i&&-1}};return lC={includes:r(!0),indexOf:r(!1)},lC}var uC,X_;function s1(){if(X_)return uC;X_=1;var t=qt(),e=po(),n=Of(),r=X$().indexOf,i=pE(),o=t([].push);return uC=function(s,a){var l=n(s),u=0,c=[],h;for(h in l)!e(i,h)&&e(l,h)&&o(c,h);for(;a.length>u;)e(l,h=a[u++])&&(~r(c,h)||o(c,h));return c},uC}var cC,Z_;function vE(){return Z_||(Z_=1,cC=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]),cC}var Q_;function Z$(){if(Q_)return nC;Q_=1;var t=s1(),e=vE(),n=e.concat("length","prototype");return nC.f=Object.getOwnPropertyNames||function(i){return t(i,n)},nC}var hC={},J_;function Q$(){return J_||(J_=1,hC.f=Object.getOwnPropertySymbols),hC}var dC,eM;function J$(){if(eM)return dC;eM=1;var t=ah(),e=qt(),n=Z$(),r=Q$(),i=ln(),o=e([].concat);return dC=t("Reflect","ownKeys")||function(a){var l=n.f(i(a)),u=r.f;return u?o(l,u(a)):l},dC}var fC,tM;function a1(){if(tM)return fC;tM=1;var t=po(),e=J$(),n=n1(),r=ml();return fC=function(i,o,s){for(var a=e(o),l=r.f,u=n.f,c=0;c<a.length;c++){var h=a[c];!t(i,h)&&!(s&&t(s,h))&&l(i,h,u(o,h))}},fC}var gC,nM;function eF(){if(nM)return gC;nM=1;var t=Cn(),e=an(),n=/#|\.prototype\./,r=function(l,u){var c=o[i(l)];return c===a?!0:c===s?!1:e(u)?t(u):!!u},i=r.normalize=function(l){return String(l).replace(n,".").toLowerCase()},o=r.data={},s=r.NATIVE="N",a=r.POLYFILL="P";return gC=r,gC}var mC,rM;function dt(){if(rM)return mC;rM=1;var t=on(),e=n1().f,n=uh(),r=wE(),i=dE(),o=a1(),s=eF();return mC=function(a,l){var u=a.target,c=a.global,h=a.stat,d,f,g,C,y,E;if(c?f=t:h?f=t[u]||i(u,{}):f=t[u]&&t[u].prototype,f)for(g in l){if(y=l[g],a.dontCallGetSet?(E=e(f,g),C=E&&E.value):C=f[g],d=s(c?g:u+(h?".":"#")+g,a.forced),!d&&C!==void 0){if(typeof y==typeof C)continue;o(y,C)}(a.sham||C&&C.sham)&&n(y,"sham",!0),r(f,g,y,a)}},mC}var pC,iM;function Nf(){if(iM)return pC;iM=1;var t=ow(),e=Function.prototype,n=e.apply,r=e.call;return pC=typeof Reflect=="object"&&Reflect.apply||(t?r.bind(n):function(){return r.apply(n,arguments)}),pC}var wC,oM;function l1(){if(oM)return wC;oM=1;var t=qt(),e=pr();return wC=function(n,r,i){try{return t(e(Object.getOwnPropertyDescriptor(n,r)[i]))}catch{}},wC}var vC,sM;function tF(){if(sM)return vC;sM=1;var t=mo();return vC=function(e){return t(e)||e===null},vC}var CC,aM;function nF(){if(aM)return CC;aM=1;var t=tF(),e=String,n=TypeError;return CC=function(r){if(t(r))return r;throw new n("Can't set "+e(r)+" as a prototype")},CC}var yC,lM;function u1(){if(lM)return yC;lM=1;var t=l1(),e=mo(),n=Pf(),r=nF();return yC=Object.setPrototypeOf||("__proto__"in{}?function(){var i=!1,o={},s;try{s=t(Object.prototype,"__proto__","set"),s(o,[]),i=o instanceof Array}catch{}return function(l,u){return n(l),r(u),e(l)&&(i?s(l,u):l.__proto__=u),l}}():void 0),yC}var bC,uM;function rF(){if(uM)return bC;uM=1;var t=ml().f;return bC=function(e,n,r){r in e||t(e,r,{configurable:!0,get:function(){return n[r]},set:function(i){n[r]=i}})},bC}var SC,cM;function iF(){if(cM)return SC;cM=1;var t=an(),e=mo(),n=u1();return SC=function(r,i,o){var s,a;return n&&t(s=i.constructor)&&s!==o&&e(a=s.prototype)&&a!==o.prototype&&n(r,a),r},SC}var RC,hM;function oF(){if(hM)return RC;hM=1;var t=Yo(),e=t("toStringTag"),n={};return n[e]="z",RC=String(n)==="[object z]",RC}var EC,dM;function c1(){if(dM)return EC;dM=1;var t=oF(),e=an(),n=Nu(),r=Yo(),i=r("toStringTag"),o=Object,s=n(function(){return arguments}())==="Arguments",a=function(l,u){try{return l[u]}catch{}};return EC=t?n:function(l){var u,c,h;return l===void 0?"Undefined":l===null?"Null":typeof(c=a(u=o(l),i))=="string"?c:s?n(u):(h=n(u))==="Object"&&e(u.callee)?"Arguments":h},EC}var TC,fM;function uw(){if(fM)return TC;fM=1;var t=c1(),e=String;return TC=function(n){if(t(n)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return e(n)},TC}var _C,gM;function sF(){if(gM)return _C;gM=1;var t=uw();return _C=function(e,n){return e===void 0?arguments.length<2?"":n:t(e)},_C}var MC,mM;function aF(){if(mM)return MC;mM=1;var t=mo(),e=uh();return MC=function(n,r){t(r)&&"cause"in r&&e(n,"cause",r.cause)},MC}var IC,pM;function lF(){if(pM)return IC;pM=1;var t=qt(),e=Error,n=t("".replace),r=function(s){return String(new e(s).stack)}("zxcasd"),i=/\n\s*at [^:]*:[^\n]*/,o=i.test(r);return IC=function(s,a){if(o&&typeof s=="string"&&!e.prepareStackTrace)for(;a--;)s=n(s,i,"");return s},IC}var PC,wM;function uF(){if(wM)return PC;wM=1;var t=Cn(),e=sw();return PC=!t(function(){var n=new Error("a");return"stack"in n?(Object.defineProperty(n,"stack",e(1,7)),n.stack!==7):!0}),PC}var OC,vM;function cF(){if(vM)return OC;vM=1;var t=uh(),e=lF(),n=uF(),r=Error.captureStackTrace;return OC=function(i,o,s,a){n&&(r?r(i,o):t(i,"stack",e(s,a)))},OC}var xC,CM;function hF(){if(CM)return xC;CM=1;var t=ah(),e=po(),n=uh(),r=xf(),i=u1(),o=a1(),s=rF(),a=iF(),l=sF(),u=aF(),c=cF(),h=go(),d=gl();return xC=function(f,g,C,y){var E="stackTraceLimit",v=y?2:1,P=f.split("."),O=P[P.length-1],L=t.apply(null,P);if(L){var T=L.prototype;if(!d&&e(T,"cause")&&delete T.cause,!C)return L;var A=t("Error"),K=g(function(U,j){var Z=l(y?j:U,void 0),J=y?new L(U):new L;return Z!==void 0&&n(J,"message",Z),c(J,K,J.stack,2),this&&r(T,this)&&a(J,this,K),arguments.length>v&&u(J,arguments[v]),J});if(K.prototype=T,O!=="Error"?i?i(K,A):o(K,A,{name:!0}):h&&E in L&&(s(K,L,E),s(K,L,"prepareStackTrace")),o(K,L),!d)try{T.name!==O&&n(T,"name",O),T.constructor=K}catch{}return K}},xC}var yM;function dF(){if(yM)return YT;yM=1;var t=dt(),e=on(),n=Nf(),r=hF(),i="WebAssembly",o=e[i],s=new Error("e",{cause:7}).cause!==7,a=function(u,c){var h={};h[u]=r(u,c,s),t({global:!0,constructor:!0,arity:1,forced:s},h)},l=function(u,c){if(o&&o[u]){var h={};h[u]=r(i+"."+u,c,s),t({target:i,stat:!0,constructor:!0,arity:1,forced:s},h)}};return a("Error",function(u){return function(h){return n(u,this,arguments)}}),a("EvalError",function(u){return function(h){return n(u,this,arguments)}}),a("RangeError",function(u){return function(h){return n(u,this,arguments)}}),a("ReferenceError",function(u){return function(h){return n(u,this,arguments)}}),a("SyntaxError",function(u){return function(h){return n(u,this,arguments)}}),a("TypeError",function(u){return function(h){return n(u,this,arguments)}}),a("URIError",function(u){return function(h){return n(u,this,arguments)}}),l("CompileError",function(u){return function(h){return n(u,this,arguments)}}),l("LinkError",function(u){return function(h){return n(u,this,arguments)}}),l("RuntimeError",function(u){return function(h){return n(u,this,arguments)}}),YT}dF();var bM={},AC,SM;function h1(){if(SM)return AC;SM=1;var t=Nu();return AC=Array.isArray||function(n){return t(n)==="Array"},AC}var HC,RM;function d1(){if(RM)return HC;RM=1;var t=go(),e=h1(),n=TypeError,r=Object.getOwnPropertyDescriptor,i=t&&!function(){if(this!==void 0)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(o){return o instanceof TypeError}}();return HC=i?function(o,s){if(e(o)&&!r(o,"length").writable)throw new n("Cannot set read only .length");return o.length=s}:function(o,s){return o.length=s},HC}var NC,EM;function f1(){if(EM)return NC;EM=1;var t=TypeError,e=9007199254740991;return NC=function(n){if(n>e)throw t("Maximum allowed index exceeded");return n},NC}var TM;function fF(){if(TM)return bM;TM=1;var t=dt(),e=lh(),n=ch(),r=d1(),i=f1(),o=Cn(),s=o(function(){return[].push.call({length:4294967296},1)!==4294967297}),a=function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(u){return u instanceof TypeError}},l=s||!a();return t({target:"Array",proto:!0,arity:1,forced:l},{push:function(c){var h=e(this),d=n(h),f=arguments.length;i(d+f);for(var g=0;g<f;g++)h[d]=arguments[g],d++;return r(h,d),d}}),bM}fF();var _M={},DC,MM;function gF(){if(MM)return DC;MM=1;var t=Nu(),e=qt();return DC=function(n){if(t(n)==="Function")return e(n)},DC}var kC,IM;function g1(){if(IM)return kC;IM=1;var t=gF(),e=pr(),n=ow(),r=t(t.bind);return kC=function(i,o){return e(i),o===void 0?i:n?r(i,o):function(){return i.apply(o,arguments)}},kC}var LC,PM;function m1(){return PM||(PM=1,LC={}),LC}var $C,OM;function mF(){if(OM)return $C;OM=1;var t=Yo(),e=m1(),n=t("iterator"),r=Array.prototype;return $C=function(i){return i!==void 0&&(e.Array===i||r[n]===i)},$C}var FC,xM;function CE(){if(xM)return FC;xM=1;var t=c1(),e=Af(),n=uE(),r=m1(),i=Yo(),o=i("iterator");return FC=function(s){if(!n(s))return e(s,o)||e(s,"@@iterator")||r[t(s)]},FC}var VC,AM;function pF(){if(AM)return VC;AM=1;var t=sn(),e=pr(),n=ln(),r=lw(),i=CE(),o=TypeError;return VC=function(s,a){var l=arguments.length<2?i(s):a;if(e(l))return n(t(l,s));throw new o(r(s)+" is not iterable")},VC}var WC,HM;function Yi(){if(HM)return WC;HM=1;var t=sn(),e=ln(),n=Af();return WC=function(r,i,o){var s,a;e(r);try{if(s=n(r,"return"),!s){if(i==="throw")throw o;return o}s=t(s,r)}catch(l){a=!0,s=l}if(i==="throw")throw o;if(a)throw s;return e(s),o},WC}var BC,NM;function hh(){if(NM)return BC;NM=1;var t=g1(),e=sn(),n=ln(),r=lw(),i=mF(),o=ch(),s=xf(),a=pF(),l=CE(),u=Yi(),c=TypeError,h=function(f,g){this.stopped=f,this.result=g},d=h.prototype;return BC=function(f,g,C){var y=C&&C.that,E=!!(C&&C.AS_ENTRIES),v=!!(C&&C.IS_RECORD),P=!!(C&&C.IS_ITERATOR),O=!!(C&&C.INTERRUPTED),L=t(g,y),T,A,K,U,j,Z,J,se=function(ue){return T&&u(T,"normal",ue),new h(!0,ue)},te=function(ue){return E?(n(ue),O?L(ue[0],ue[1],se):L(ue[0],ue[1])):O?L(ue,se):L(ue)};if(v)T=f.iterator;else if(P)T=f;else{if(A=l(f),!A)throw new c(r(f)+" is not iterable");if(i(A)){for(K=0,U=o(f);U>K;K++)if(j=te(f[K]),j&&s(d,j))return j;return new h(!1)}T=a(f,A)}for(Z=v?f.next:T.next;!(J=e(Z,T)).done;){try{j=te(J.value)}catch(ue){u(T,"throw",ue)}if(typeof j=="object"&&j&&s(d,j))return j}return new h(!1)},BC}var jC,DM;function p1(){if(DM)return jC;DM=1;var t=go(),e=ml(),n=sw();return jC=function(r,i,o){t?e.f(r,i,n(0,o)):r[i]=o},jC}var kM;function wF(){if(kM)return _M;kM=1;var t=dt(),e=hh(),n=p1();return t({target:"Object",stat:!0},{fromEntries:function(i){var o={};return e(i,function(s,a){n(o,s,a)},{AS_ENTRIES:!0}),o}}),_M}wF();var LM={},UC,$M;function Ps(){if($M)return UC;$M=1;var t=qt(),e=Set.prototype;return UC={Set,add:t(e.add),has:t(e.has),remove:t(e.delete),proto:e},UC}var zC,FM;function Du(){if(FM)return zC;FM=1;var t=Ps().has;return zC=function(e){return t(e),e},zC}var YC,VM;function ku(){if(VM)return YC;VM=1;var t=sn();return YC=function(e,n,r){for(var i=r?e:e.iterator,o=e.next,s,a;!(s=t(o,i)).done;)if(a=n(s.value),a!==void 0)return a},YC}var GC,WM;function Df(){if(WM)return GC;WM=1;var t=qt(),e=ku(),n=Ps(),r=n.Set,i=n.proto,o=t(i.forEach),s=t(i.keys),a=s(new r).next;return GC=function(l,u,c){return c?e({iterator:s(l),next:a},u):o(l,u)},GC}var KC,BM;function yE(){if(BM)return KC;BM=1;var t=Ps(),e=Df(),n=t.Set,r=t.add;return KC=function(i){var o=new n;return e(i,function(s){r(o,s)}),o},KC}var qC,jM;function kf(){if(jM)return qC;jM=1;var t=l1(),e=Ps();return qC=t(e.proto,"size","get")||function(n){return n.size},qC}var XC,UM;function Os(){return UM||(UM=1,XC=function(t){return{iterator:t,next:t.next,done:!1}}),XC}var ZC,zM;function Lu(){if(zM)return ZC;zM=1;var t=pr(),e=ln(),n=sn(),r=Hf(),i=Os(),o="Invalid size",s=RangeError,a=TypeError,l=Math.max,u=function(c,h){this.set=c,this.size=l(h,0),this.has=t(c.has),this.keys=t(c.keys)};return u.prototype={getIterator:function(){return i(e(n(this.keys,this.set)))},includes:function(c){return n(this.has,this.set,c)}},ZC=function(c){e(c);var h=+c.size;if(h!==h)throw new a(o);var d=r(h);if(d<0)throw new s(o);return new u(c,d)},ZC}var QC,YM;function vF(){if(YM)return QC;YM=1;var t=Du(),e=Ps(),n=yE(),r=kf(),i=Lu(),o=Df(),s=ku(),a=e.has,l=e.remove;return QC=function(c){var h=t(this),d=i(c),f=n(h);return r(h)<=d.size?o(h,function(g){d.includes(g)&&l(f,g)}):s(d.getIterator(),function(g){a(h,g)&&l(f,g)}),f},QC}var JC,GM;function $u(){if(GM)return JC;GM=1;var t=ah(),e=function(r){return{size:r,has:function(){return!1},keys:function(){return{next:function(){return{done:!0}}}}}},n=function(r){return{size:r,has:function(){return!0},keys:function(){throw new Error("e")}}};return JC=function(r,i){var o=t("Set");try{new o()[r](e(0));try{return new o()[r](e(-1)),!1}catch{if(!i)return!0;try{return new o()[r](n(-1/0)),!1}catch{var s=new o;return s.add(1),s.add(2),i(s[r](n(1/0)))}}}catch{return!1}},JC}var KM;function CF(){if(KM)return LM;KM=1;var t=dt(),e=vF(),n=$u(),r=!n("difference",function(i){return i.size===0});return t({target:"Set",proto:!0,real:!0,forced:r},{difference:e}),LM}CF();var qM={},ey,XM;function yF(){if(XM)return ey;XM=1;var t=Du(),e=Ps(),n=kf(),r=Lu(),i=Df(),o=ku(),s=e.Set,a=e.add,l=e.has;return ey=function(c){var h=t(this),d=r(c),f=new s;return n(h)>d.size?o(d.getIterator(),function(g){l(h,g)&&a(f,g)}):i(h,function(g){d.includes(g)&&a(f,g)}),f},ey}var ZM;function bF(){if(ZM)return qM;ZM=1;var t=dt(),e=Cn(),n=yF(),r=$u(),i=!r("intersection",function(o){return o.size===2&&o.has(1)&&o.has(2)})||e(function(){return String(Array.from(new Set([1,2,3]).intersection(new Set([3,2]))))!=="3,2"});return t({target:"Set",proto:!0,real:!0,forced:i},{intersection:n}),qM}bF();var QM={},ty,JM;function SF(){if(JM)return ty;JM=1;var t=Du(),e=Ps().has,n=kf(),r=Lu(),i=Df(),o=ku(),s=Yi();return ty=function(l){var u=t(this),c=r(l);if(n(u)<=c.size)return i(u,function(d){if(c.includes(d))return!1},!0)!==!1;var h=c.getIterator();return o(h,function(d){if(e(u,d))return s(h,"normal",!1)})!==!1},ty}var eI;function RF(){if(eI)return QM;eI=1;var t=dt(),e=SF(),n=$u(),r=!n("isDisjointFrom",function(i){return!i});return t({target:"Set",proto:!0,real:!0,forced:r},{isDisjointFrom:e}),QM}RF();var tI={},ny,nI;function EF(){if(nI)return ny;nI=1;var t=Du(),e=kf(),n=Df(),r=Lu();return ny=function(o){var s=t(this),a=r(o);return e(s)>a.size?!1:n(s,function(l){if(!a.includes(l))return!1},!0)!==!1},ny}var rI;function TF(){if(rI)return tI;rI=1;var t=dt(),e=EF(),n=$u(),r=!n("isSubsetOf",function(i){return i});return t({target:"Set",proto:!0,real:!0,forced:r},{isSubsetOf:e}),tI}TF();var iI={},ry,oI;function _F(){if(oI)return ry;oI=1;var t=Du(),e=Ps().has,n=kf(),r=Lu(),i=ku(),o=Yi();return ry=function(a){var l=t(this),u=r(a);if(n(l)<u.size)return!1;var c=u.getIterator();return i(c,function(h){if(!e(l,h))return o(c,"normal",!1)})!==!1},ry}var sI;function MF(){if(sI)return iI;sI=1;var t=dt(),e=_F(),n=$u(),r=!n("isSupersetOf",function(i){return!i});return t({target:"Set",proto:!0,real:!0,forced:r},{isSupersetOf:e}),iI}MF();var aI={},iy,lI;function IF(){if(lI)return iy;lI=1;var t=Du(),e=Ps(),n=yE(),r=Lu(),i=ku(),o=e.add,s=e.has,a=e.remove;return iy=function(u){var c=t(this),h=r(u).getIterator(),d=n(c);return i(h,function(f){s(c,f)?a(d,f):o(d,f)}),d},iy}var uI;function PF(){if(uI)return aI;uI=1;var t=dt(),e=IF(),n=$u();return t({target:"Set",proto:!0,real:!0,forced:!n("symmetricDifference")},{symmetricDifference:e}),aI}PF();var cI={},oy,hI;function OF(){if(hI)return oy;hI=1;var t=Du(),e=Ps().add,n=yE(),r=Lu(),i=ku();return oy=function(s){var a=t(this),l=r(s).getIterator(),u=n(a);return i(l,function(c){e(u,c)}),u},oy}var dI;function xF(){if(dI)return cI;dI=1;var t=dt(),e=OF(),n=$u();return t({target:"Set",proto:!0,real:!0,forced:!n("union")},{union:e}),cI}xF();var fI={},gI={},sy,mI;function AF(){if(mI)return sy;mI=1;var t=xf(),e=TypeError;return sy=function(n,r){if(t(r,n))return n;throw new e("Incorrect invocation")},sy}var ay,pI;function HF(){if(pI)return ay;pI=1;var t=Cn();return ay=!t(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),ay}var ly,wI;function w1(){if(wI)return ly;wI=1;var t=po(),e=an(),n=lh(),r=mE(),i=HF(),o=r("IE_PROTO"),s=Object,a=s.prototype;return ly=i?s.getPrototypeOf:function(l){var u=n(l);if(t(u,o))return u[o];var c=u.constructor;return e(c)&&u instanceof c?c.prototype:u instanceof s?a:null},ly}var uy,vI;function NF(){if(vI)return uy;vI=1;var t=o1(),e=ml();return uy=function(n,r,i){return i.get&&t(i.get,r,{getter:!0}),i.set&&t(i.set,r,{setter:!0}),e.f(n,r,i)},uy}var cy={},hy,CI;function DF(){if(CI)return hy;CI=1;var t=s1(),e=vE();return hy=Object.keys||function(r){return t(r,e)},hy}var yI;function kF(){if(yI)return cy;yI=1;var t=go(),e=r1(),n=ml(),r=ln(),i=Of(),o=DF();return cy.f=t&&!e?Object.defineProperties:function(a,l){r(a);for(var u=i(l),c=o(l),h=c.length,d=0,f;h>d;)n.f(a,f=c[d++],u[f]);return a},cy}var dy,bI;function v1(){if(bI)return dy;bI=1;var t=ah();return dy=t("document","documentElement"),dy}var fy,SI;function bE(){if(SI)return fy;SI=1;var t=ln(),e=kF(),n=vE(),r=pE(),i=v1(),o=gE(),s=mE(),a=">",l="<",u="prototype",c="script",h=s("IE_PROTO"),d=function(){},f=function(v){return l+c+a+v+l+"/"+c+a},g=function(v){v.write(f("")),v.close();var P=v.parentWindow.Object;return v=null,P},C=function(){var v=o("iframe"),P="java"+c+":",O;return v.style.display="none",i.appendChild(v),v.src=String(P),O=v.contentWindow.document,O.open(),O.write(f("document.F=Object")),O.close(),O.F},y,E=function(){try{y=new ActiveXObject("htmlfile")}catch{}E=typeof document<"u"?document.domain&&y?g(y):C():g(y);for(var v=n.length;v--;)delete E[u][n[v]];return E()};return r[h]=!0,fy=Object.create||function(P,O){var L;return P!==null?(d[u]=t(P),L=new d,d[u]=null,L[h]=P):L=E(),O===void 0?L:e.f(L,O)},fy}var gy,RI;function C1(){if(RI)return gy;RI=1;var t=Cn(),e=an(),n=mo(),r=bE(),i=w1(),o=wE(),s=Yo(),a=gl(),l=s("iterator"),u=!1,c,h,d;[].keys&&(d=[].keys(),"next"in d?(h=i(i(d)),h!==Object.prototype&&(c=h)):u=!0);var f=!n(c)||t(function(){var g={};return c[l].call(g)!==g});return f?c={}:a&&(c=r(c)),e(c[l])||o(c,l,function(){return this}),gy={IteratorPrototype:c,BUGGY_SAFARI_ITERATORS:u},gy}var EI;function LF(){if(EI)return gI;EI=1;var t=dt(),e=on(),n=AF(),r=ln(),i=an(),o=w1(),s=NF(),a=p1(),l=Cn(),u=po(),c=Yo(),h=C1().IteratorPrototype,d=go(),f=gl(),g="constructor",C="Iterator",y=c("toStringTag"),E=TypeError,v=e[C],P=f||!i(v)||v.prototype!==h||!l(function(){v({})}),O=function(){if(n(this,h),o(this)===h)throw new E("Abstract class Iterator not directly constructable")},L=function(T,A){d?s(h,T,{configurable:!0,get:function(){return A},set:function(K){if(r(this),this===h)throw new E("You can't redefine this property");u(this,T)?this[T]=K:a(this,T,K)}}):h[T]=A};return u(h,y)||L(y,C),(P||!u(h,g)||h[g]===Object)&&L(g,O),O.prototype=h,t({global:!0,constructor:!0,forced:P},{Iterator:O}),gI}var TI;function $F(){return TI||(TI=1,LF()),fI}$F();var _I={},MI={},my,II;function FF(){if(II)return my;II=1;var t=wE();return my=function(e,n,r){for(var i in n)t(e,i,n[i],r);return e},my}var py,PI;function VF(){return PI||(PI=1,py=function(t,e){return{value:t,done:e}}),py}var wy,OI;function SE(){if(OI)return wy;OI=1;var t=sn(),e=bE(),n=uh(),r=FF(),i=Yo(),o=i1(),s=Af(),a=C1().IteratorPrototype,l=VF(),u=Yi(),c=i("toStringTag"),h="IteratorHelper",d="WrapForValidIterator",f=o.set,g=function(E){var v=o.getterFor(E?d:h);return r(e(a),{next:function(){var O=v(this);if(E)return O.nextHandler();if(O.done)return l(void 0,!0);try{var L=O.nextHandler();return O.returnHandlerResult?L:l(L,O.done)}catch(T){throw O.done=!0,T}},return:function(){var P=v(this),O=P.iterator;if(P.done=!0,E){var L=s(O,"return");return L?t(L,O):l(void 0,!0)}if(P.inner)try{u(P.inner.iterator,"normal")}catch(T){return u(O,"throw",T)}return O&&u(O,"normal"),l(void 0,!0)}})},C=g(!0),y=g(!1);return n(y,c,"Iterator Helper"),wy=function(E,v,P){var O=function(T,A){A?(A.iterator=T.iterator,A.next=T.next):A=T,A.type=v?d:h,A.returnHandlerResult=!!P,A.nextHandler=E,A.counter=0,A.done=!1,f(this,A)};return O.prototype=v?C:y,O},wy}var vy,xI;function y1(){if(xI)return vy;xI=1;var t=ln(),e=Yi();return vy=function(n,r,i,o){try{return o?r(t(i)[0],i[1]):r(i)}catch(s){e(n,"throw",s)}},vy}var Cy,AI;function pl(){if(AI)return Cy;AI=1;var t=on();return Cy=function(e,n){var r=t.Iterator,i=r&&r.prototype,o=i&&i[e],s=!1;if(o)try{o.call({next:function(){return{done:!0}},return:function(){s=!0}},-1)}catch(a){a instanceof n||(s=!1)}if(!s)return o},Cy}var HI;function WF(){if(HI)return MI;HI=1;var t=dt(),e=sn(),n=pr(),r=ln(),i=Os(),o=SE(),s=y1(),a=gl(),l=Yi(),u=pl(),c=!a&&u("filter",TypeError),h=o(function(){for(var d=this.iterator,f=this.predicate,g=this.next,C,y,E;;){if(C=r(e(g,d)),y=this.done=!!C.done,y)return;if(E=C.value,s(d,f,[E,this.counter++],!0))return E}});return t({target:"Iterator",proto:!0,real:!0,forced:a||c},{filter:function(f){r(this);try{n(f)}catch(g){l(this,"throw",g)}return c?e(c,this,f):new h(i(this),{predicate:f})}}),MI}var NI;function BF(){return NI||(NI=1,WF()),_I}BF();var DI={},kI={},LI;function jF(){if(LI)return kI;LI=1;var t=dt(),e=sn(),n=hh(),r=pr(),i=ln(),o=Os(),s=Yi(),a=pl(),l=a("forEach",TypeError);return t({target:"Iterator",proto:!0,real:!0,forced:l},{forEach:function(c){i(this);try{r(c)}catch(f){s(this,"throw",f)}if(l)return e(l,this,c);var h=o(this),d=0;n(h,function(f){c(f,d++)},{IS_RECORD:!0})}}),kI}var $I;function UF(){return $I||($I=1,jF()),DI}UF();var FI={},VI={},WI;function zF(){if(WI)return VI;WI=1;var t=dt(),e=sn(),n=pr(),r=ln(),i=Os(),o=SE(),s=y1(),a=Yi(),l=pl(),u=gl(),c=!u&&l("map",TypeError),h=o(function(){var d=this.iterator,f=r(e(this.next,d)),g=this.done=!!f.done;if(!g)return s(d,this.mapper,[f.value,this.counter++],!0)});return t({target:"Iterator",proto:!0,real:!0,forced:u||c},{map:function(f){r(this);try{n(f)}catch(g){a(this,"throw",g)}return c?e(c,this,f):new h(i(this),{mapper:f})}}),VI}var BI;function YF(){return BI||(BI=1,zF()),FI}YF();var jI={},UI={},yy,zI;function RE(){if(zI)return yy;zI=1;var t=qt();return yy=t([].slice),yy}var by,YI;function b1(){if(YI)return by;YI=1;var t=TypeError;return by=function(e,n){if(e<n)throw new t("Not enough arguments");return e},by}var Sy,GI;function GF(){if(GI)return Sy;GI=1;var t=aw();return Sy=/(?:ipad|iphone|ipod).*applewebkit/i.test(t),Sy}var Ry,KI;function S1(){if(KI)return Ry;KI=1;var t=on(),e=aw(),n=Nu(),r=function(i){return e.slice(0,i.length)===i};return Ry=function(){return r("Bun/")?"BUN":r("Cloudflare-Workers")?"CLOUDFLARE":r("Deno/")?"DENO":r("Node.js/")?"NODE":t.Bun&&typeof Bun.version=="string"?"BUN":t.Deno&&typeof Deno.version=="object"?"DENO":n(t.process)==="process"?"NODE":t.window&&t.document?"BROWSER":"REST"}(),Ry}var Ey,qI;function KF(){if(qI)return Ey;qI=1;var t=S1();return Ey=t==="NODE",Ey}var Ty,XI;function R1(){if(XI)return Ty;XI=1;var t=on(),e=Nf(),n=g1(),r=an(),i=po(),o=Cn(),s=v1(),a=RE(),l=gE(),u=b1(),c=GF(),h=KF(),d=t.setImmediate,f=t.clearImmediate,g=t.process,C=t.Dispatch,y=t.Function,E=t.MessageChannel,v=t.String,P=0,O={},L="onreadystatechange",T,A,K,U;o(function(){T=t.location});var j=function(te){if(i(O,te)){var ue=O[te];delete O[te],ue()}},Z=function(te){return function(){j(te)}},J=function(te){j(te.data)},se=function(te){t.postMessage(v(te),T.protocol+"//"+T.host)};return(!d||!f)&&(d=function(ue){u(arguments.length,1);var pt=r(ue)?ue:y(ue),be=a(arguments,1);return O[++P]=function(){e(pt,void 0,be)},A(P),P},f=function(ue){delete O[ue]},h?A=function(te){g.nextTick(Z(te))}:C&&C.now?A=function(te){C.now(Z(te))}:E&&!c?(K=new E,U=K.port2,K.port1.onmessage=J,A=n(U.postMessage,U)):t.addEventListener&&r(t.postMessage)&&!t.importScripts&&T&&T.protocol!=="file:"&&!o(se)?(A=se,t.addEventListener("message",J,!1)):L in l("script")?A=function(te){s.appendChild(l("script"))[L]=function(){s.removeChild(this),j(te)}}:A=function(te){setTimeout(Z(te),0)}),Ty={set:d,clear:f},Ty}var ZI;function qF(){if(ZI)return UI;ZI=1;var t=dt(),e=on(),n=R1().clear;return t({global:!0,bind:!0,enumerable:!0,forced:e.clearImmediate!==n},{clearImmediate:n}),UI}var QI={},_y,JI;function XF(){if(JI)return _y;JI=1;var t=on(),e=Nf(),n=an(),r=S1(),i=aw(),o=RE(),s=b1(),a=t.Function,l=/MSIE .\./.test(i)||r==="BUN"&&function(){var u=t.Bun.version.split(".");return u.length<3||u[0]==="0"&&(u[1]<3||u[1]==="3"&&u[2]==="0")}();return _y=function(u,c){var h=c?2:1;return l?function(d,f){var g=s(arguments.length,1)>h,C=n(d)?d:a(d),y=g?o(arguments,h):[],E=g?function(){e(C,this,y)}:C;return c?u(E,f):u(E)}:u},_y}var eP;function ZF(){if(eP)return QI;eP=1;var t=dt(),e=on(),n=R1().set,r=XF(),i=e.setImmediate?r(n,!1):n;return t({global:!0,bind:!0,enumerable:!0,forced:e.setImmediate!==i},{setImmediate:i}),QI}var tP;function QF(){return tP||(tP=1,qF(),ZF()),jI}QF();/*! @license DOMPurify 3.2.5 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.5/LICENSE */const{entries:E1,setPrototypeOf:nP,isFrozen:JF,getPrototypeOf:eV,getOwnPropertyDescriptor:tV}=Object;let{freeze:zn,seal:fo,create:T1}=Object,{apply:aR,construct:lR}=typeof Reflect<"u"&&Reflect;zn||(zn=function(e){return e});fo||(fo=function(e){return e});aR||(aR=function(e,n,r){return e.apply(n,r)});lR||(lR=function(e,n){return new e(...n)});const ig=Yn(Array.prototype.forEach),nV=Yn(Array.prototype.lastIndexOf),rP=Yn(Array.prototype.pop),Mh=Yn(Array.prototype.push),rV=Yn(Array.prototype.splice),Wm=Yn(String.prototype.toLowerCase),My=Yn(String.prototype.toString),iP=Yn(String.prototype.match),Ih=Yn(String.prototype.replace),iV=Yn(String.prototype.indexOf),oV=Yn(String.prototype.trim),xo=Yn(Object.prototype.hasOwnProperty),Dn=Yn(RegExp.prototype.test),Ph=sV(TypeError);function Yn(t){return function(e){e instanceof RegExp&&(e.lastIndex=0);for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return aR(t,e,r)}}function sV(t){return function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return lR(t,n)}}function Fe(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Wm;nP&&nP(t,null);let r=e.length;for(;r--;){let i=e[r];if(typeof i=="string"){const o=n(i);o!==i&&(JF(e)||(e[r]=o),i=o)}t[i]=!0}return t}function aV(t){for(let e=0;e<t.length;e++)xo(t,e)||(t[e]=null);return t}function lu(t){const e=T1(null);for(const[n,r]of E1(t))xo(t,n)&&(Array.isArray(r)?e[n]=aV(r):r&&typeof r=="object"&&r.constructor===Object?e[n]=lu(r):e[n]=r);return e}function Oh(t,e){for(;t!==null;){const r=tV(t,e);if(r){if(r.get)return Yn(r.get);if(typeof r.value=="function")return Yn(r.value)}t=eV(t)}function n(){return null}return n}const oP=zn(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Iy=zn(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Py=zn(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),lV=zn(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Oy=zn(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),uV=zn(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),sP=zn(["#text"]),aP=zn(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),xy=zn(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),lP=zn(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),og=zn(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),cV=fo(/\{\{[\w\W]*|[\w\W]*\}\}/gm),hV=fo(/<%[\w\W]*|[\w\W]*%>/gm),dV=fo(/\$\{[\w\W]*/gm),fV=fo(/^data-[\-\w.\u00B7-\uFFFF]+$/),gV=fo(/^aria-[\-\w]+$/),_1=fo(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),mV=fo(/^(?:\w+script|data):/i),pV=fo(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),M1=fo(/^html$/i),wV=fo(/^[a-z][.\w]*(-[.\w]+)+$/i);var uP=Object.freeze({__proto__:null,ARIA_ATTR:gV,ATTR_WHITESPACE:pV,CUSTOM_ELEMENT:wV,DATA_ATTR:fV,DOCTYPE_NAME:M1,ERB_EXPR:hV,IS_ALLOWED_URI:_1,IS_SCRIPT_OR_DATA:mV,MUSTACHE_EXPR:cV,TMPLIT_EXPR:dV});const xh={element:1,text:3,progressingInstruction:7,comment:8,document:9},vV=function(){return typeof window>"u"?null:window},CV=function(e,n){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let r=null;const i="data-tt-policy-suffix";n&&n.hasAttribute(i)&&(r=n.getAttribute(i));const o="dompurify"+(r?"#"+r:"");try{return e.createPolicy(o,{createHTML(s){return s},createScriptURL(s){return s}})}catch{return console.warn("TrustedTypes policy "+o+" could not be created."),null}},cP=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function I1(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:vV();const e=we=>I1(we);if(e.version="3.2.5",e.removed=[],!t||!t.document||t.document.nodeType!==xh.document||!t.Element)return e.isSupported=!1,e;let{document:n}=t;const r=n,i=r.currentScript,{DocumentFragment:o,HTMLTemplateElement:s,Node:a,Element:l,NodeFilter:u,NamedNodeMap:c=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:h,DOMParser:d,trustedTypes:f}=t,g=l.prototype,C=Oh(g,"cloneNode"),y=Oh(g,"remove"),E=Oh(g,"nextSibling"),v=Oh(g,"childNodes"),P=Oh(g,"parentNode");if(typeof s=="function"){const we=n.createElement("template");we.content&&we.content.ownerDocument&&(n=we.content.ownerDocument)}let O,L="";const{implementation:T,createNodeIterator:A,createDocumentFragment:K,getElementsByTagName:U}=n,{importNode:j}=r;let Z=cP();e.isSupported=typeof E1=="function"&&typeof P=="function"&&T&&T.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:J,ERB_EXPR:se,TMPLIT_EXPR:te,DATA_ATTR:ue,ARIA_ATTR:pt,IS_SCRIPT_OR_DATA:be,ATTR_WHITESPACE:ke,CUSTOM_ELEMENT:wt}=uP;let{IS_ALLOWED_URI:fn}=uP,et=null;const m=Fe({},[...oP,...Iy,...Py,...Oy,...sP]);let w=null;const p=Fe({},[...aP,...xy,...lP,...og]);let I=Object.seal(T1(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),$=null,B=null,Y=!0,q=!0,b=!1,R=!0,S=!1,k=!0,_=!1,H=!1,W=!1,x=!1,N=!1,V=!1,F=!0,z=!1;const oe="user-content-";let ce=!0,Re=!1,Ne={},We=null;const Se=Fe({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Le=null;const vt=Fe({},["audio","video","img","source","image","track"]);let yo=null;const Ns=Fe({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Ki="http://www.w3.org/1998/Math/MathML",Ct="http://www.w3.org/2000/svg",Zt="http://www.w3.org/1999/xhtml";let ft=Zt,yt=!1,$e=null;const qi=Fe({},[Ki,Ct,Zt],My);let yl=Fe({},["mi","mo","mn","ms","mtext"]),bl=Fe({},["annotation-xml"]);const A$=Fe({},["title","style","font","a","script"]);let Rh=null;const H$=["application/xhtml+xml","text/html"],N$="text/html";let gn=null,Uu=null;const D$=n.createElement("form"),AT=function(D){return D instanceof RegExp||D instanceof Function},iv=function(){let D=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Uu&&Uu===D)){if((!D||typeof D!="object")&&(D={}),D=lu(D),Rh=H$.indexOf(D.PARSER_MEDIA_TYPE)===-1?N$:D.PARSER_MEDIA_TYPE,gn=Rh==="application/xhtml+xml"?My:Wm,et=xo(D,"ALLOWED_TAGS")?Fe({},D.ALLOWED_TAGS,gn):m,w=xo(D,"ALLOWED_ATTR")?Fe({},D.ALLOWED_ATTR,gn):p,$e=xo(D,"ALLOWED_NAMESPACES")?Fe({},D.ALLOWED_NAMESPACES,My):qi,yo=xo(D,"ADD_URI_SAFE_ATTR")?Fe(lu(Ns),D.ADD_URI_SAFE_ATTR,gn):Ns,Le=xo(D,"ADD_DATA_URI_TAGS")?Fe(lu(vt),D.ADD_DATA_URI_TAGS,gn):vt,We=xo(D,"FORBID_CONTENTS")?Fe({},D.FORBID_CONTENTS,gn):Se,$=xo(D,"FORBID_TAGS")?Fe({},D.FORBID_TAGS,gn):{},B=xo(D,"FORBID_ATTR")?Fe({},D.FORBID_ATTR,gn):{},Ne=xo(D,"USE_PROFILES")?D.USE_PROFILES:!1,Y=D.ALLOW_ARIA_ATTR!==!1,q=D.ALLOW_DATA_ATTR!==!1,b=D.ALLOW_UNKNOWN_PROTOCOLS||!1,R=D.ALLOW_SELF_CLOSE_IN_ATTR!==!1,S=D.SAFE_FOR_TEMPLATES||!1,k=D.SAFE_FOR_XML!==!1,_=D.WHOLE_DOCUMENT||!1,x=D.RETURN_DOM||!1,N=D.RETURN_DOM_FRAGMENT||!1,V=D.RETURN_TRUSTED_TYPE||!1,W=D.FORCE_BODY||!1,F=D.SANITIZE_DOM!==!1,z=D.SANITIZE_NAMED_PROPS||!1,ce=D.KEEP_CONTENT!==!1,Re=D.IN_PLACE||!1,fn=D.ALLOWED_URI_REGEXP||_1,ft=D.NAMESPACE||Zt,yl=D.MATHML_TEXT_INTEGRATION_POINTS||yl,bl=D.HTML_INTEGRATION_POINTS||bl,I=D.CUSTOM_ELEMENT_HANDLING||{},D.CUSTOM_ELEMENT_HANDLING&&AT(D.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(I.tagNameCheck=D.CUSTOM_ELEMENT_HANDLING.tagNameCheck),D.CUSTOM_ELEMENT_HANDLING&&AT(D.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(I.attributeNameCheck=D.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),D.CUSTOM_ELEMENT_HANDLING&&typeof D.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(I.allowCustomizedBuiltInElements=D.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),S&&(q=!1),N&&(x=!0),Ne&&(et=Fe({},sP),w=[],Ne.html===!0&&(Fe(et,oP),Fe(w,aP)),Ne.svg===!0&&(Fe(et,Iy),Fe(w,xy),Fe(w,og)),Ne.svgFilters===!0&&(Fe(et,Py),Fe(w,xy),Fe(w,og)),Ne.mathMl===!0&&(Fe(et,Oy),Fe(w,lP),Fe(w,og))),D.ADD_TAGS&&(et===m&&(et=lu(et)),Fe(et,D.ADD_TAGS,gn)),D.ADD_ATTR&&(w===p&&(w=lu(w)),Fe(w,D.ADD_ATTR,gn)),D.ADD_URI_SAFE_ATTR&&Fe(yo,D.ADD_URI_SAFE_ATTR,gn),D.FORBID_CONTENTS&&(We===Se&&(We=lu(We)),Fe(We,D.FORBID_CONTENTS,gn)),ce&&(et["#text"]=!0),_&&Fe(et,["html","head","body"]),et.table&&(Fe(et,["tbody"]),delete $.tbody),D.TRUSTED_TYPES_POLICY){if(typeof D.TRUSTED_TYPES_POLICY.createHTML!="function")throw Ph('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof D.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Ph('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');O=D.TRUSTED_TYPES_POLICY,L=O.createHTML("")}else O===void 0&&(O=CV(f,i)),O!==null&&typeof L=="string"&&(L=O.createHTML(""));zn&&zn(D),Uu=D}},HT=Fe({},[...Iy,...Py,...lV]),NT=Fe({},[...Oy,...uV]),k$=function(D){let ee=P(D);(!ee||!ee.tagName)&&(ee={namespaceURI:ft,tagName:"template"});const ge=Wm(D.tagName),_t=Wm(ee.tagName);return $e[D.namespaceURI]?D.namespaceURI===Ct?ee.namespaceURI===Zt?ge==="svg":ee.namespaceURI===Ki?ge==="svg"&&(_t==="annotation-xml"||yl[_t]):!!HT[ge]:D.namespaceURI===Ki?ee.namespaceURI===Zt?ge==="math":ee.namespaceURI===Ct?ge==="math"&&bl[_t]:!!NT[ge]:D.namespaceURI===Zt?ee.namespaceURI===Ct&&!bl[_t]||ee.namespaceURI===Ki&&!yl[_t]?!1:!NT[ge]&&(A$[ge]||!HT[ge]):!!(Rh==="application/xhtml+xml"&&$e[D.namespaceURI]):!1},Xo=function(D){Mh(e.removed,{element:D});try{P(D).removeChild(D)}catch{y(D)}},rg=function(D,ee){try{Mh(e.removed,{attribute:ee.getAttributeNode(D),from:ee})}catch{Mh(e.removed,{attribute:null,from:ee})}if(ee.removeAttribute(D),D==="is")if(x||N)try{Xo(ee)}catch{}else try{ee.setAttribute(D,"")}catch{}},DT=function(D){let ee=null,ge=null;if(W)D="<remove></remove>"+D;else{const yn=iP(D,/^[\r\n\t ]+/);ge=yn&&yn[0]}Rh==="application/xhtml+xml"&&ft===Zt&&(D='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+D+"</body></html>");const _t=O?O.createHTML(D):D;if(ft===Zt)try{ee=new d().parseFromString(_t,Rh)}catch{}if(!ee||!ee.documentElement){ee=T.createDocument(ft,"template",null);try{ee.documentElement.innerHTML=yt?L:_t}catch{}}const En=ee.body||ee.documentElement;return D&&ge&&En.insertBefore(n.createTextNode(ge),En.childNodes[0]||null),ft===Zt?U.call(ee,_?"html":"body")[0]:_?ee.documentElement:En},kT=function(D){return A.call(D.ownerDocument||D,D,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT|u.SHOW_PROCESSING_INSTRUCTION|u.SHOW_CDATA_SECTION,null)},ov=function(D){return D instanceof h&&(typeof D.nodeName!="string"||typeof D.textContent!="string"||typeof D.removeChild!="function"||!(D.attributes instanceof c)||typeof D.removeAttribute!="function"||typeof D.setAttribute!="function"||typeof D.namespaceURI!="string"||typeof D.insertBefore!="function"||typeof D.hasChildNodes!="function")},LT=function(D){return typeof a=="function"&&D instanceof a};function Ds(we,D,ee){ig(we,ge=>{ge.call(e,D,ee,Uu)})}const $T=function(D){let ee=null;if(Ds(Z.beforeSanitizeElements,D,null),ov(D))return Xo(D),!0;const ge=gn(D.nodeName);if(Ds(Z.uponSanitizeElement,D,{tagName:ge,allowedTags:et}),D.hasChildNodes()&&!LT(D.firstElementChild)&&Dn(/<[/\w!]/g,D.innerHTML)&&Dn(/<[/\w!]/g,D.textContent)||D.nodeType===xh.progressingInstruction||k&&D.nodeType===xh.comment&&Dn(/<[/\w]/g,D.data))return Xo(D),!0;if(!et[ge]||$[ge]){if(!$[ge]&&VT(ge)&&(I.tagNameCheck instanceof RegExp&&Dn(I.tagNameCheck,ge)||I.tagNameCheck instanceof Function&&I.tagNameCheck(ge)))return!1;if(ce&&!We[ge]){const _t=P(D)||D.parentNode,En=v(D)||D.childNodes;if(En&&_t){const yn=En.length;for(let Jn=yn-1;Jn>=0;--Jn){const Zo=C(En[Jn],!0);Zo.__removalCount=(D.__removalCount||0)+1,_t.insertBefore(Zo,E(D))}}}return Xo(D),!0}return D instanceof l&&!k$(D)||(ge==="noscript"||ge==="noembed"||ge==="noframes")&&Dn(/<\/no(script|embed|frames)/i,D.innerHTML)?(Xo(D),!0):(S&&D.nodeType===xh.text&&(ee=D.textContent,ig([J,se,te],_t=>{ee=Ih(ee,_t," ")}),D.textContent!==ee&&(Mh(e.removed,{element:D.cloneNode()}),D.textContent=ee)),Ds(Z.afterSanitizeElements,D,null),!1)},FT=function(D,ee,ge){if(F&&(ee==="id"||ee==="name")&&(ge in n||ge in D$))return!1;if(!(q&&!B[ee]&&Dn(ue,ee))){if(!(Y&&Dn(pt,ee))){if(!w[ee]||B[ee]){if(!(VT(D)&&(I.tagNameCheck instanceof RegExp&&Dn(I.tagNameCheck,D)||I.tagNameCheck instanceof Function&&I.tagNameCheck(D))&&(I.attributeNameCheck instanceof RegExp&&Dn(I.attributeNameCheck,ee)||I.attributeNameCheck instanceof Function&&I.attributeNameCheck(ee))||ee==="is"&&I.allowCustomizedBuiltInElements&&(I.tagNameCheck instanceof RegExp&&Dn(I.tagNameCheck,ge)||I.tagNameCheck instanceof Function&&I.tagNameCheck(ge))))return!1}else if(!yo[ee]){if(!Dn(fn,Ih(ge,ke,""))){if(!((ee==="src"||ee==="xlink:href"||ee==="href")&&D!=="script"&&iV(ge,"data:")===0&&Le[D])){if(!(b&&!Dn(be,Ih(ge,ke,"")))){if(ge)return!1}}}}}}return!0},VT=function(D){return D!=="annotation-xml"&&iP(D,wt)},WT=function(D){Ds(Z.beforeSanitizeAttributes,D,null);const{attributes:ee}=D;if(!ee||ov(D))return;const ge={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:w,forceKeepAttr:void 0};let _t=ee.length;for(;_t--;){const En=ee[_t],{name:yn,namespaceURI:Jn,value:Zo}=En,Eh=gn(yn);let Nn=yn==="value"?Zo:oV(Zo);if(ge.attrName=Eh,ge.attrValue=Nn,ge.keepAttr=!0,ge.forceKeepAttr=void 0,Ds(Z.uponSanitizeAttribute,D,ge),Nn=ge.attrValue,z&&(Eh==="id"||Eh==="name")&&(rg(yn,D),Nn=oe+Nn),k&&Dn(/((--!?|])>)|<\/(style|title)/i,Nn)){rg(yn,D);continue}if(ge.forceKeepAttr||(rg(yn,D),!ge.keepAttr))continue;if(!R&&Dn(/\/>/i,Nn)){rg(yn,D);continue}S&&ig([J,se,te],jT=>{Nn=Ih(Nn,jT," ")});const BT=gn(D.nodeName);if(FT(BT,Eh,Nn)){if(O&&typeof f=="object"&&typeof f.getAttributeType=="function"&&!Jn)switch(f.getAttributeType(BT,Eh)){case"TrustedHTML":{Nn=O.createHTML(Nn);break}case"TrustedScriptURL":{Nn=O.createScriptURL(Nn);break}}try{Jn?D.setAttributeNS(Jn,yn,Nn):D.setAttribute(yn,Nn),ov(D)?Xo(D):rP(e.removed)}catch{}}}Ds(Z.afterSanitizeAttributes,D,null)},L$=function we(D){let ee=null;const ge=kT(D);for(Ds(Z.beforeSanitizeShadowDOM,D,null);ee=ge.nextNode();)Ds(Z.uponSanitizeShadowNode,ee,null),$T(ee),WT(ee),ee.content instanceof o&&we(ee.content);Ds(Z.afterSanitizeShadowDOM,D,null)};return e.sanitize=function(we){let D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ee=null,ge=null,_t=null,En=null;if(yt=!we,yt&&(we="<!-->"),typeof we!="string"&&!LT(we))if(typeof we.toString=="function"){if(we=we.toString(),typeof we!="string")throw Ph("dirty is not a string, aborting")}else throw Ph("toString is not a function");if(!e.isSupported)return we;if(H||iv(D),e.removed=[],typeof we=="string"&&(Re=!1),Re){if(we.nodeName){const Zo=gn(we.nodeName);if(!et[Zo]||$[Zo])throw Ph("root node is forbidden and cannot be sanitized in-place")}}else if(we instanceof a)ee=DT("<!---->"),ge=ee.ownerDocument.importNode(we,!0),ge.nodeType===xh.element&&ge.nodeName==="BODY"||ge.nodeName==="HTML"?ee=ge:ee.appendChild(ge);else{if(!x&&!S&&!_&&we.indexOf("<")===-1)return O&&V?O.createHTML(we):we;if(ee=DT(we),!ee)return x?null:V?L:""}ee&&W&&Xo(ee.firstChild);const yn=kT(Re?we:ee);for(;_t=yn.nextNode();)$T(_t),WT(_t),_t.content instanceof o&&L$(_t.content);if(Re)return we;if(x){if(N)for(En=K.call(ee.ownerDocument);ee.firstChild;)En.appendChild(ee.firstChild);else En=ee;return(w.shadowroot||w.shadowrootmode)&&(En=j.call(r,En,!0)),En}let Jn=_?ee.outerHTML:ee.innerHTML;return _&&et["!doctype"]&&ee.ownerDocument&&ee.ownerDocument.doctype&&ee.ownerDocument.doctype.name&&Dn(M1,ee.ownerDocument.doctype.name)&&(Jn="<!DOCTYPE "+ee.ownerDocument.doctype.name+`>
|
|
2
2
|
`+Jn),S&&ig([J,se,te],Zo=>{Jn=Ih(Jn,Zo," ")}),O&&V?O.createHTML(Jn):Jn},e.setConfig=function(){let we=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};iv(we),H=!0},e.clearConfig=function(){Uu=null,H=!1},e.isValidAttribute=function(we,D,ee){Uu||iv({});const ge=gn(we),_t=gn(D);return FT(ge,_t,ee)},e.addHook=function(we,D){typeof D=="function"&&Mh(Z[we],D)},e.removeHook=function(we,D){if(D!==void 0){const ee=nV(Z[we],D);return ee===-1?void 0:rV(Z[we],ee,1)[0]}return rP(Z[we])},e.removeHooks=function(we){Z[we]=[]},e.removeAllHooks=function(){Z=cP()},e}var yV=I1();//! moment.js
|
|
3
3
|
//! version : 2.30.1
|
|
4
4
|
//! authors : Tim Wood, Iskren Chernev, Moment.js contributors
|
|
@@ -31,13 +31,13 @@ X.version="2.30.1";bV(Et);X.fn=Q;X.min=uB;X.max=cB;X.now=hB;X.utc=xs;X.unix=Fj;X
|
|
|
31
31
|
<a href="https://handsontable.com/docs/tutorial-license-key.html" target="_blank">Read more</a> about it in\x20
|
|
32
32
|
the documentation or contact us at <a href="mailto:support@handsontable.com">support@handsontable.com</a>.`,non_commercial:()=>""};function _U(t,e){const n=!Ut(t),r=typeof t=="string"&&t.toLowerCase()==="non-commercial-and-evaluation",i="15.3.0";let o,s="invalid",a="invalid";t=pR(t||"");const l=MU(t);if(n||r||l)if(l){const u=X("29/04/2025","DD/MM/YYYY"),c=Math.floor(u.toDate().getTime()/864e5),h=EU(t);o=X((h+1)*864e5,"x").format("MMMM DD, YYYY"),c>h?(s="expired",a="expired"):(s="valid",a="valid")}else r?(s="non_commercial",a="valid"):(s="invalid",a="invalid");else s="missing",a="missing";if(TU()&&(s="valid",a="valid"),!bP&&s!=="valid"&&(SP[s]({keyValidityDate:o,hotVersion:i})&&console[s==="non_commercial"?"info":"warn"](SP[s]({keyValidityDate:o,hotVersion:i})),bP=!0),a!=="valid"&&e.parentNode&&RP[a]({keyValidityDate:o,hotVersion:i})){const c=document.createElement("div");c.className="handsontable hot-display-license-info",c.innerHTML=RP[a]({keyValidityDate:o,hotVersion:i}),e.parentNode.insertBefore(c,e.nextSibling)}}function MU(t){let e=[][Od],n=e;if(t[Od]!==Fd("Z"))return!1;for(let r="",i="B<H4P+".split(""),o=Fd(i.shift());o;o=Fd(i.shift()||"A"))--o<""[Od]?n=n|(yP(`${yP($d(r)+($d(mp(t,Math.abs(o),2))+[]).padStart(2,"0"))}`)%97||2)>>1:r=mp(t,o,o?i[Od]===1?9:8:6);return n===e}function Uo(t){return t[0].toUpperCase()+t.substr(1)}function yN(){function t(){return Math.floor((1+Math.random())*65536).toString(16).substring(1)}return t()+t()+t()+t()}function bN(t){return/^([0-9][0-9]?%$)|(^100%$)/.test(t)}function SN(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return`${t}`.replace(/(?:\\)?\[([^[\]]+)]/g,(n,r)=>n.charAt(0)==="\\"?n.substr(1,n.length-1):e[r]===void 0?"":e[r])}function EP(t){return YE(`${t}`,{ALLOWED_TAGS:[]})}function YE(t,e){return yV.sanitize(t,e)}const Vu=t=>["tabindex",t],IU=()=>["role","treegrid"],la=()=>["role","presentation"],PU=()=>["role","gridcell"],OU=()=>["role","rowheader"],RN=()=>["role","rowgroup"],xU=()=>["role","columnheader"],wR=()=>["role","row"],AU=()=>["role","menu"],HU=()=>["role","menuitem"],NU=()=>["role","menuitemcheckbox"],DU=()=>["role","combobox"],EN=()=>["role","listbox"],kU=()=>["role","option"],LU=()=>["role","checkbox"],$U=()=>["scope","col"],FU=()=>["scope","row"],VU=()=>["type","text"],hf=t=>["aria-label",t],Wu=()=>["aria-hidden","true"],WU=()=>["aria-disabled","true"],BU=()=>["aria-multiselectable","true"],TN=t=>["aria-haspopup",t],_N=t=>["aria-rowcount",t],bw=t=>["aria-colcount",t],MN=t=>["aria-rowindex",t],GE=t=>["aria-colindex",t],ho=t=>["aria-expanded",t],jU=t=>["aria-sort",t],TP=()=>["aria-readonly","true"],_P=()=>["aria-invalid","true"],IN=t=>["aria-checked",t],KE=()=>["aria-selected","true"],UU=()=>["aria-autocomplete","list"],zU=t=>["aria-controls",t],YU=t=>["aria-activedescendant",t],GU=t=>["aria-live",t],KU=t=>["aria-relevant",t],qU=t=>["aria-setsize",t],XU=t=>["aria-posinset",t];function ZU(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=-1,r=null,i=t;for(;i!==null;){if(n===e){r=i;break}i.host&&i.nodeType===Node.DOCUMENT_FRAGMENT_NODE?i=i.host:(n+=1,i=i.parentNode)}return r}function Ym(t,e){const n=t.closest(".handsontable");return!!n&&(n.parentNode===e||n===e)}function QU(t){return Object.getPrototypeOf(t.parent)&&t.frameElement}function Qc(t){return QU(t)&&t.parent}function Tu(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0;const{ELEMENT_NODE:r,DOCUMENT_FRAGMENT_NODE:i}=Node;let o=t;for(;o!=null&&o!==n;){const{nodeType:s,nodeName:a}=o;if(s===r&&(e.includes(a)||e.includes(o)))return o;const{host:l}=o;l&&s===i?o=l:o=o.parentNode}return null}function lg(t,e,n){const r=[];let i=t;for(;i&&(i=Tu(i,e,n),!(!i||n&&!n.contains(i)));)r.push(i),i.host&&i.nodeType===Node.DOCUMENT_FRAGMENT_NODE?i=i.host:i=i.parentNode;const o=r.length;return o?r[o-1]:null}function JU(t,e){const n={element:void 0,classNames:[]};let r=t;for(;r!==null&&r!==t.ownerDocument.documentElement&&!n.element;){if(typeof e=="string"&&r.classList.contains(e))n.element=r,n.classNames.push(e);else if(e instanceof RegExp){const i=Array.from(r.classList).filter(o=>e.test(o));i.length&&(n.element=r,n.classNames.push(...i))}r=r.parentElement}return n}function Su(t,e){let n=t.parentNode,r=[];for(typeof e=="string"?t.defaultView?r=Array.prototype.slice.call(t.querySelectorAll(e),0):r=Array.prototype.slice.call(t.ownerDocument.querySelectorAll(e),0):r.push(e);n!==null;){if(r.indexOf(n)>-1)return!0;n=n.parentNode}return!1}function ez(t){let e=0,n=t;if(n.previousSibling)for(;n=n.previousSibling;)e+=1;return e}function Rl(t,e,n){const r=n.parentElement.querySelector(`.ht_clone_${t}`);return r?r.contains(e):null}function PN(t){return!t||!t.length?[]:t.filter(e=>!!e)}function ON(t,e){if(!t||!t.length)return{regexFree:[],regexes:[]};const n=[],r=[];return r.push(...t.filter(i=>{const o=i instanceof RegExp;return o&&e&&n.push(i),!o})),{regexFree:r,regexes:n}}function ve(t,e){return t.classList===void 0||typeof e!="string"||e===""?!1:t.classList.contains(e)}function G(t,e){typeof e=="string"&&(e=e.split(" ")),e=PN(e),e.length>0&&t.classList.add(...e)}function pe(t,e){typeof e=="string"?e=e.split(" "):e instanceof RegExp&&(e=[e]);let{regexFree:n,regexes:r}=ON(e,!0);n=PN(n),n.length>0&&t.classList.remove(...n),r.forEach(i=>{t.classList.forEach(o=>{i.test(o)&&t.classList.remove(o)})})}function ye(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0;Array.isArray(e)||(e=[[e,n]]),e.forEach(r=>{Array.isArray(r)&&r[0]!==""&&t.setAttribute(...r)})}function mh(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];typeof e=="string"?e=e.split(" "):e instanceof RegExp&&(e=[e]);const{regexFree:n,regexes:r}=ON(e,!0);n.forEach(i=>{i!==""&&t.removeAttribute(i)}),r.forEach(i=>{t.getAttributeNames().forEach(o=>{i.test(o)&&t.removeAttribute(o)})})}function xN(t){if(t.nodeType===3)t.parentNode.removeChild(t);else if(["TABLE","THEAD","TBODY","TFOOT","TR"].indexOf(t.nodeName)>-1){const e=t.childNodes;for(let n=e.length-1;n>=0;n--)xN(e[n])}}function va(t){let e;for(;e=t.lastChild;)t.removeChild(e)}const tz=/(<(.*)>|&(.*);)/;function ph(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;tz.test(e)?t.innerHTML=n?YE(e):e:_u(t,e)}function _u(t,e){const n=t.firstChild;n&&n.nodeType===3&&n.nextSibling===null?n.textContent=e:(va(t),t.appendChild(t.ownerDocument.createTextNode(e)))}function Jc(t){const e=t.ownerDocument.documentElement,n=t.ownerDocument.defaultView;let r=t;for(;r!==e;){if(r===null)return!1;if(r.nodeType===Node.DOCUMENT_FRAGMENT_NODE)if(r.host){if(r.host.impl)return Jc(r.host.impl);if(r.host)return Jc(r.host);throw new Error("Lost in Web Components world")}else return!1;else if(n.getComputedStyle(r).display==="none")return!1;r=r.parentNode}return!0}function nz(t){const n=t.ownerDocument.defaultView;let r=t;for(;r.parentNode;){if(r.style.height==="0px"||r.style.height==="0")return n.getComputedStyle(r).overflow==="hidden";r=r.parentNode}return!1}function An(t){const e=t.ownerDocument,n=e.defaultView,r=e.documentElement;let i=t,o,s,a;for(o=i.offsetLeft,s=i.offsetTop,a=i;(i=i.offsetParent)&&!(i===e.body||!("offsetLeft"in i));)o+=i.offsetLeft,s+=i.offsetTop,a=i;return a&&a.style.position==="fixed"&&(o+=n.pageXOffset||r.scrollLeft,s+=n.pageYOffset||r.scrollTop),{left:o,top:s}}function AN(){return(arguments.length>0&&arguments[0]!==void 0?arguments[0]:window).scrollY}function qE(){return(arguments.length>0&&arguments[0]!==void 0?arguments[0]:window).scrollX}function XE(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:window;return t===e?AN(e):t.scrollTop}function HN(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:window;return t===e?qE(e):t.scrollLeft}function pp(t){let e=t.ownerDocument,n=e?e.defaultView:void 0;e||(e=t.document?t.document:t,n=e.defaultView);const r=["auto","scroll"];let i=t.parentNode;for(;i&&i.style&&e.body!==i;){let{overflow:o,overflowX:s,overflowY:a}=i.style;if([o,s,a].includes("scroll"))return i;if({overflow:o,overflowX:s,overflowY:a}=n.getComputedStyle(i),r.includes(o)||r.includes(s)||r.includes(a)||i.clientHeight<=i.scrollHeight+1&&(r.includes(a)||r.includes(o))||i.clientWidth<=i.scrollWidth+1&&(r.includes(s)||r.includes(o)))return i;i=i.parentNode}return n}function rz(t){return t.scrollHeight-t.clientHeight}function iz(t){return t.scrollWidth-t.clientWidth}function df(t){const e=t.ownerDocument,n=e.defaultView;let r=t.parentNode;for(;r&&r.style&&e.body!==r;){if(r.style.overflow!=="visible"&&r.style.overflow!=="")return r;const i=n.getComputedStyle(r),o=["scroll","hidden","auto"],s=i.getPropertyValue("overflow"),a=i.getPropertyValue("overflow-y"),l=i.getPropertyValue("overflow-x");if(o.includes(s)||o.includes(a)||o.includes(l))return r;r=r.parentNode}return n}function wp(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:window;if(t){if(t===n)return e==="width"?`${n.innerWidth}px`:e==="height"?`${n.innerHeight}px`:void 0}else return;const r=t.style[e];if(r!==""&&r!==void 0)return r;const i=n.getComputedStyle(t);if(i[e]!==""&&i[e]!==void 0)return i[e]}function Kt(t){return t.offsetWidth}function nn(t){return t.offsetHeight}function Vd(t){return t.clientHeight||t.innerHeight}function NN(t){return t.clientWidth||t.innerWidth}function DN(t){return t.selectionStart?t.selectionStart:0}function oz(t){return t.selectionEnd?t.selectionEnd:0}function MP(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window;t.getSelection&&(t.getSelection().empty?t.getSelection().empty():t.getSelection().removeAllRanges&&t.getSelection().removeAllRanges())}function Sw(t,e,n){if(n===void 0&&(n=e),t.setSelectionRange){t.focus();try{t.setSelectionRange(e,n)}catch{const i=t.parentNode,o=i.style.display;i.style.display="block",t.setSelectionRange(e,n),i.style.display=o}}}let ky;function sz(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:document;const e=t.createElement("div");e.style.height="200px",e.style.width="100%";const n=t.createElement("div");n.style.boxSizing="content-box",n.style.height="150px",n.style.left="0px",n.style.overflow="hidden",n.style.position="absolute",n.style.top="0px",n.style.width="200px",n.style.visibility="hidden",n.appendChild(e),(t.body||t.documentElement).appendChild(n);const r=e.offsetWidth;n.style.overflow="scroll";let i=e.offsetWidth;return r===i&&(i=n.clientWidth),(t.body||t.documentElement).removeChild(n),r-i}function vn(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:document;return ky===void 0&&(ky=sz(t)),ky}function kN(t){return t instanceof Window?t.document.body.scrollHeight>t.innerHeight:t.offsetWidth!==t.clientWidth}function LN(t){return t instanceof Window?t.document.body.scrollWidth>t.innerWidth:t.offsetHeight!==t.clientHeight}function ZE(t,e,n){t.style.transform=`translate3d(${e},${n},0)`}function Rw(t){t.style.transform&&t.style.transform!==""&&(t.style.transform="")}function Gm(t){return t&&(["INPUT","SELECT","TEXTAREA"].indexOf(t.nodeName)>-1||t.contentEditable==="true")}function $N(t){return Gm(t)&&t.hasAttribute("data-hot-input")===!1}function FN(t){return!t.parentNode}function az(t,e){new IntersectionObserver((r,i)=>{r.forEach(o=>{o.isIntersecting&&t.offsetParent!==null&&(e(),i.unobserve(t))})},{root:t.ownerDocument.body}).observe(t)}function VN(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;const r=t.ownerDocument,i=r.createRange(),o=r.defaultView.getSelection();ye(t,"contenteditable",!0),n&&ye(t,...Wu()),e&&G(t,"invisibleSelection"),i.selectNodeContents(t),o.removeAllRanges(),o.addRange(i)}function WN(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;const n=t.ownerDocument.defaultView.getSelection();t.hasAttribute("aria-hidden")&&t.removeAttribute("aria-hidden"),n.removeAllRanges(),e&&pe(t,"invisibleSelection"),t.removeAttribute("contenteditable")}function lz(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;VN(t,n),e(),WN(t,n)}function pa(t){var e;const n=t==null||(e=t.ownerDocument)===null||e===void 0?void 0:e.defaultView.Element;return!!(n&&n!==null&&t instanceof n)}function ot(t){return typeof t=="function"}function Ew(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:200,n=null,r;function i(){for(var o=arguments.length,s=new Array(o),a=0;a<o;a++)s[a]=arguments[a];return n&&clearTimeout(n),n=setTimeout(()=>{r=t.apply(this,s)},e),r}return i}function BN(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return function(){for(var o=arguments.length,s=new Array(o),a=0;a<o;a++)s[a]=arguments[a];return t.apply(this,n.concat(s))}}function uz(t){const e=t.length;function n(r){return function(){for(var o=arguments.length,s=new Array(o),a=0;a<o;a++)s[a]=arguments[a];const l=r.concat(s);let u;return l.length>=e?u=t.apply(this,l):u=n(l),u}}return n([])}function vR(t,e,n,r,i,o,s,a){return ae(a)?t.call(e,n,r,i,o,s,a):ae(s)?t.call(e,n,r,i,o,s):ae(o)?t.call(e,n,r,i,o):ae(i)?t.call(e,n,r,i):ae(r)?t.call(e,n,r):ae(n)?t.call(e,n):t.call(e)}var IP={},Ly,PP;function cz(){if(PP)return Ly;PP=1;var t=qt(),e=h1(),n=an(),r=Nu(),i=uw(),o=t([].push);return Ly=function(s){if(n(s))return s;if(e(s)){for(var a=s.length,l=[],u=0;u<a;u++){var c=s[u];typeof c=="string"?o(l,c):(typeof c=="number"||r(c)==="Number"||r(c)==="String")&&o(l,i(c))}var h=l.length,d=!0;return function(f,g){if(d)return d=!1,g;if(e(this))return g;for(var C=0;C<h;C++)if(l[C]===f)return g}}},Ly}var OP;function hz(){if(OP)return IP;OP=1;var t=dt(),e=ah(),n=Nf(),r=sn(),i=qt(),o=Cn(),s=an(),a=hE(),l=RE(),u=cz(),c=cE(),h=String,d=e("JSON","stringify"),f=i(/./.exec),g=i("".charAt),C=i("".charCodeAt),y=i("".replace),E=i(1 .toString),v=/[\uD800-\uDFFF]/g,P=/^[\uD800-\uDBFF]$/,O=/^[\uDC00-\uDFFF]$/,L=!c||o(function(){var U=e("Symbol")("stringify detection");return d([U])!=="[null]"||d({a:U})!=="{}"||d(Object(U))!=="{}"}),T=o(function(){return d("\uDF06\uD834")!=='"\\udf06\\ud834"'||d("\uDEAD")!=='"\\udead"'}),A=function(U,j){var Z=l(arguments),J=u(j);if(!(!s(J)&&(U===void 0||a(U))))return Z[1]=function(se,te){if(s(J)&&(te=r(J,this,h(se),te)),!a(te))return te},n(d,null,Z)},K=function(U,j,Z){var J=g(Z,j-1),se=g(Z,j+1);return f(P,U)&&!f(O,se)||f(O,U)&&!f(P,J)?"\\u"+E(C(U,0),16):U};return d&&t({target:"JSON",stat:!0,arity:3,forced:L||T},{stringify:function(j,Z,J){var se=l(arguments),te=n(L?A:d,null,se);return T&&typeof te=="string"?y(te,v,K):te}}),IP}hz();function ff(t){let e;return Array.isArray(t)?e=t.length?new Array(t.length).fill(null):[]:(e={},He(t,(n,r)=>{r!=="__children"&&(n&&typeof n=="object"&&!Array.isArray(n)?e[r]=ff(n):Array.isArray(n)?n.length&&typeof n[0]=="object"&&!Array.isArray(n[0])?e[r]=[ff(n[0])]:e[r]=[]:e[r]=null)})),e}function dz(t,e){return e.prototype.constructor=e,t.prototype=new e,t.prototype.constructor=t,t}function rn(t,e,n){const r=Array.isArray(n);return He(e,(i,o)=>{(r===!1||n.includes(o))&&(t[o]=i)}),t}function Tw(t,e){He(e,(n,r)=>{e[r]&&typeof e[r]=="object"?(t[r]||(Array.isArray(e[r])?t[r]=[]:Object.prototype.toString.call(e[r])==="[object Date]"?t[r]=e[r]:t[r]={}),Tw(t[r],e[r])):t[r]=e[r]})}function Gn(t){return typeof t=="object"?JSON.parse(JSON.stringify(t)):t}function Is(t){const e={};return He(t,(n,r)=>{e[r]=n}),e}function ut(t){t.MIXINS||(t.MIXINS=[]);for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return M(n,i=>{t.MIXINS.push(i.MIXIN_NAME),He(i,(o,s)=>{if(t.prototype[s]!==void 0)throw new Error(`Mixin conflict. Property '${s}' already exist and cannot be overwritten.`);if(typeof o=="function")t.prototype[s]=o;else{const a=function(c,h){const d=`_${c}`,f=g=>{let C=g;return(Array.isArray(C)||Ae(C))&&(C=Gn(C)),C};return function(){return this[d]===void 0&&(this[d]=f(h)),this[d]}},l=function(c){const h=`_${c}`;return function(d){this[h]=d}};Object.defineProperty(t.prototype,s,{get:a(s,o),set:l(s),configurable:!0})}})}),t}function QE(t,e){return JSON.stringify(t)===JSON.stringify(e)}function Ae(t){return Object.prototype.toString.call(t)==="[object Object]"}function Ea(t,e,n,r){r.value=n,r.writable=r.writable!==!1,r.enumerable=r.enumerable!==!1,r.configurable=r.configurable!==!1,Object.defineProperty(t,e,r)}function He(t,e){for(const n in t)if((!t.hasOwnProperty||t.hasOwnProperty&&Object.prototype.hasOwnProperty.call(t,n))&&e(t[n],n,t)===!1)break;return t}function fz(t,e){const n=e.split(".");let r=t;return He(n,i=>{if(r=r[i],r===void 0)return r=void 0,!1}),r}function $y(t,e,n){if(typeof e!="string")return;const r=e.split(".");let i=t;r.forEach((o,s)=>{o==="__proto__"||o==="constructor"||o==="prototype"||(s!==r.length-1?(tn(i,o)||(i[o]={}),i=i[o]):i[o]=n)})}function JE(t){if(!Ae(t))return 0;const e=function(n){let r=0;return Ae(n)?He(n,(i,o)=>{o!=="__children"&&(r+=e(i))}):r+=1,r};return e(t)}function zi(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"value";const n=`_${e}`,r={_touched:!1,[n]:t,isTouched(){return this._touched}};return Object.defineProperty(r,e,{get(){return this[n]},set(i){this._touched=!0,this[n]=i},enumerable:!0,configurable:!0}),r}function tn(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function vp(t){return window.requestAnimationFrame(t)}function Cp(t){window.cancelAnimationFrame(t)}function jN(){return"ontouchstart"in window}function gz(){return typeof window<"u"}let Yu;function mz(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Yu||(typeof Intl=="object"?Yu=new Intl.Collator(t,e).compare:typeof String.prototype.localeCompare=="function"?Yu=(n,r)=>`${n}`.localeCompare(r):Yu=(n,r)=>n===r?0:n>r?-1:1,Yu)}const ro=t=>{const e={value:!1};return e.test=(n,r)=>{e.value=t(n,r)},e},wl={chrome:ro((t,e)=>/Chrome/.test(t)&&/Google/.test(e)),chromeWebKit:ro(t=>/CriOS/.test(t)),edge:ro(t=>/Edge/.test(t)),edgeWebKit:ro(t=>/EdgiOS/.test(t)),firefox:ro(t=>/Firefox/.test(t)),firefoxWebKit:ro(t=>/FxiOS/.test(t)),mobile:ro(t=>/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(t)),safari:ro((t,e)=>/Safari/.test(t)&&/Apple Computer/.test(e))},Wf={mac:ro(t=>/^Mac/.test(t)),win:ro(t=>/^Win/.test(t)),linux:ro(t=>/^Linux/.test(t)),ios:ro(t=>/iPhone|iPad|iPod/i.test(t))};function pz(){let{userAgent:t=navigator.userAgent,vendor:e=navigator.vendor}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};He(wl,n=>{let{test:r}=n;return void r(t,e)})}function wz(){let{platform:t=navigator.platform}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};He(Wf,e=>{let{test:n}=e;return void n(t)})}gz()&&(pz(),wz());function UN(){return wl.chrome.value}function vz(){return wl.chromeWebKit.value}function Fy(){return wl.firefox.value}function Cz(){return wl.firefoxWebKit.value}function yp(){return wl.safari.value}function yz(){return wl.edge.value}function ua(){return wl.mobile.value}function zN(){return Wf.ios.value}function YN(){let{maxTouchPoints:t}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:navigator;return t>2&&Wf.mac.value}function xP(){return Wf.win.value}function AP(){return Wf.mac.value}const me={ALT:18,ARROW_DOWN:40,ARROW_LEFT:37,ARROW_RIGHT:39,ARROW_UP:38,AUDIO_DOWN:Fy()?182:174,AUDIO_MUTE:Fy()?181:173,AUDIO_UP:Fy()?183:175,BACKSPACE:8,CAPS_LOCK:20,COMMA:188,COMMAND_LEFT:91,COMMAND_RIGHT:93,COMMAND_FIREFOX:224,CONTROL:17,DELETE:46,END:35,ENTER:13,ESCAPE:27,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,F13:124,F14:125,F15:126,F16:127,F17:128,F18:129,F19:130,HOME:36,INSERT:45,MEDIA_NEXT:176,MEDIA_PLAY_PAUSE:179,MEDIA_PREV:177,MEDIA_STOP:178,NULL:0,NUM_LOCK:144,PAGE_DOWN:34,PAGE_UP:33,PAUSE:19,PERIOD:190,SCROLL_LOCK:145,SHIFT:16,SPACE:32,TAB:9,A:65,C:67,D:68,F:70,L:76,O:79,P:80,S:83,V:86,X:88,Y:89,Z:90},bz=[me.ALT,me.ARROW_DOWN,me.ARROW_LEFT,me.ARROW_RIGHT,me.ARROW_UP,me.AUDIO_DOWN,me.AUDIO_MUTE,me.AUDIO_UP,me.BACKSPACE,me.CAPS_LOCK,me.DELETE,me.END,me.ENTER,me.ESCAPE,me.F1,me.F2,me.F3,me.F4,me.F5,me.F6,me.F7,me.F8,me.F9,me.F10,me.F11,me.F12,me.F13,me.F14,me.F15,me.F16,me.F17,me.F18,me.F19,me.HOME,me.INSERT,me.MEDIA_NEXT,me.MEDIA_PLAY_PAUSE,me.MEDIA_PREV,me.MEDIA_STOP,me.NULL,me.NUM_LOCK,me.PAGE_DOWN,me.PAGE_UP,me.PAUSE,me.SCROLL_LOCK,me.SHIFT,me.TAB];function Sz(t){return t===32||t>=48&&t<=57||t>=96&&t<=111||t>=186&&t<=192||t>=219&&t<=222||t>=226||t>=65&&t<=90}function GN(t){return bz.includes(t)}function Rz(t){return[me.CONTROL,me.COMMAND_LEFT,me.COMMAND_RIGHT,me.COMMAND_FIREFOX].includes(t)}function Bf(t,e){const n=e.split("|");let r=!1;return M(n,i=>{if(t===me[i])return r=!0,!1}),r}function Ko(t){t.isImmediatePropagationEnabled=!1,t.cancelBubble=!0}function du(t){return t.isImmediatePropagationEnabled===!1}function Mu(t){return t.button===2}function e0(t){return t.button===0}function Ez(t){return t instanceof TouchEvent}function Tz(t,e){const n={x:t.offsetX,y:t.offsetY};let r=t.target;if(!pa(e)||r!==e&&r.contains(e))return n;for(;r!==e;)n.x+=r.offsetLeft,n.y+=r.offsetTop,r=r.offsetParent;return n}function Ze(){ae(console)&&console.warn(...arguments)}function t0(){ae(console)&&console.error(...arguments)}const fu=["afterCellMetaReset","afterChange","afterContextMenuDefaultOptions","beforeContextMenuSetItems","afterDropdownMenuDefaultOptions","beforeDropdownMenuSetItems","afterContextMenuHide","beforeContextMenuShow","afterContextMenuShow","afterCopyLimit","beforeCreateCol","afterColumnSequenceChange","afterCreateCol","beforeCreateRow","afterCreateRow","afterDeselect","afterDestroy","afterDocumentKeyDown","afterDrawSelection","beforeRemoveCellClassNames","beforeCompositionStart","afterGetCellMeta","afterGetColHeader","afterGetRowHeader","afterInit","afterLoadData","afterUpdateData","afterMomentumScroll","afterOnCellCornerMouseDown","afterOnCellCornerDblClick","afterOnCellMouseDown","afterOnCellMouseUp","afterOnCellContextMenu","afterOnCellMouseOver","afterOnCellMouseOut","afterRemoveCol","afterRemoveRow","beforeRenderer","afterRenderer","afterRowSequenceChange","beforeViewportScrollVertically","beforeViewportScrollHorizontally","beforeViewportScroll","afterScrollHorizontally","afterScrollVertically","afterScroll","afterSelection","afterSelectionByProp","afterSelectionEnd","afterSelectionEndByProp","afterSelectionFocusSet","beforeSelectColumns","afterSelectColumns","beforeSelectRows","afterSelectRows","afterSetCellMeta","afterRemoveCellMeta","afterSetDataAtCell","afterSetDataAtRowProp","afterSetSourceDataAtCell","afterSetTheme","afterUpdateSettings","afterValidate","beforeLanguageChange","afterLanguageChange","beforeAutofill","afterAutofill","beforeCellAlignment","beforeChange","beforeChangeRender","beforeDrawBorders","beforeGetCellMeta","beforeRemoveCellMeta","beforeInit","beforeInitWalkontable","beforeLoadData","beforeUpdateData","beforeKeyDown","beforeOnCellMouseDown","beforeOnCellMouseUp","beforeOnCellContextMenu","beforeOnCellMouseOver","beforeOnCellMouseOut","beforeRemoveCol","beforeRemoveRow","beforeViewRender","afterViewRender","beforeRender","afterRender","beforeRowWrap","beforeColumnWrap","beforeSetCellMeta","beforeSelectionFocusSet","beforeSetRangeStartOnly","beforeSetRangeStart","beforeSetRangeEnd","beforeSelectionHighlightSet","beforeTouchScroll","beforeValidate","beforeValueRender","construct","init","modifyColHeader","modifyColWidth","modifyFiltersMultiSelectValue","modifyFocusedElement","modifyRowHeader","modifyRowHeight","modifyRowHeightByOverlayName","modifyData","modifySourceData","modifyRowData","modifyGetCellCoords","modifyGetCoordsElement","modifyFocusOnTabNavigation","beforeHighlightingRowHeader","beforeHighlightingColumnHeader","persistentStateLoad","persistentStateReset","persistentStateSave","beforeColumnSort","afterColumnSort","modifyAutofillRange","modifyCopyableRange","beforeCut","afterCut","beforeCopy","afterCopy","beforePaste","afterPaste","beforeColumnFreeze","afterColumnFreeze","beforeColumnMove","afterColumnMove","beforeColumnUnfreeze","afterColumnUnfreeze","beforeRowMove","afterRowMove","beforeColumnResize","afterColumnResize","beforeRowResize","afterRowResize","afterGetColumnHeaderRenderers","afterGetRowHeaderRenderers","beforeStretchingColumnWidth","beforeFilter","afterFilter","afterFormulasValuesUpdate","afterNamedExpressionAdded","afterNamedExpressionRemoved","afterSheetAdded","afterSheetRenamed","afterSheetRemoved","modifyColumnHeaderHeight","modifyColumnHeaderValue","beforeUndo","beforeUndoStackChange","afterUndo","afterUndoStackChange","beforeRedo","beforeRedoStackChange","afterRedo","afterRedoStackChange","modifyRowHeaderWidth","modifyTransformFocus","modifyTransformStart","modifyTransformEnd","afterModifyTransformFocus","afterModifyTransformStart","afterModifyTransformEnd","afterViewportRowCalculatorOverride","afterViewportColumnCalculatorOverride","afterPluginsInitialized","beforeHideRows","afterHideRows","beforeUnhideRows","afterUnhideRows","beforeHideColumns","afterHideColumns","beforeUnhideColumns","afterUnhideColumns","beforeTrimRow","afterTrimRow","beforeUntrimRow","afterUntrimRow","beforeDropdownMenuShow","afterDropdownMenuShow","afterDropdownMenuHide","beforeAddChild","afterAddChild","beforeDetachChild","afterDetachChild","beforeBeginEditing","afterBeginEditing","beforeMergeCells","afterMergeCells","beforeUnmergeCells","afterUnmergeCells","afterListen","afterUnlisten","afterRefreshDimensions","beforeRefreshDimensions","beforeColumnCollapse","afterColumnCollapse","beforeColumnExpand","afterColumnExpand","modifyAutoColumnSizeSeed"],Vy=new Map([["modifyRow","8.0.0"],["modifyCol","8.0.0"],["unmodifyRow","8.0.0"],["unmodifyCol","8.0.0"],["skipLengthCache","8.0.0"],["hiddenColumn","8.0.0"],["hiddenRow","8.0.0"]]),Wy=new Map([[]]);var HP={},By,NP;function _z(){if(NP)return By;NP=1;var t=ch();return By=function(e,n,r){for(var i=0,o=arguments.length>2?r:t(n),s=new e(o);o>i;)s[i]=n[i++];return s},By}var jy,DP;function Mz(){if(DP)return jy;DP=1;var t=on();return jy=function(e,n){var r=t[e],i=r&&r.prototype;return i&&i[n]},jy}var Uy,kP;function _w(){if(kP)return Uy;kP=1;var t=Yo(),e=bE(),n=ml().f,r=t("unscopables"),i=Array.prototype;return i[r]===void 0&&n(i,r,{configurable:!0,value:e(null)}),Uy=function(o){i[r][o]=!0},Uy}var LP;function Iz(){if(LP)return HP;LP=1;var t=dt(),e=qt(),n=pr(),r=Of(),i=_z(),o=Mz(),s=_w(),a=Array,l=e(o("Array","sort"));return t({target:"Array",proto:!0},{toSorted:function(c){c!==void 0&&n(c);var h=r(this),d=i(a,h);return l(d,c)}}),s("toSorted"),HP}Iz();var $P={},FP={},VP;function Pz(){if(VP)return FP;VP=1;var t=dt(),e=sn(),n=hh(),r=pr(),i=ln(),o=Os(),s=Yi(),a=pl(),l=a("find",TypeError);return t({target:"Iterator",proto:!0,real:!0,forced:l},{find:function(c){i(this);try{r(c)}catch(f){s(this,"throw",f)}if(l)return e(l,this,c);var h=o(this),d=0;return n(h,function(f,g){if(c(f,d++))return g(f)},{IS_RECORD:!0,INTERRUPTED:!0}).result}}),FP}var WP;function Oz(){return WP||(WP=1,Pz()),$P}Oz();function xz(t,e){KN(t,e),e.add(t)}function zy(t,e,n){KN(t,e),e.set(t,n)}function KN(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function BP(t,e,n){return t.set(bp(t,e),n),n}function Sn(t,e){return t.get(bp(t,e))}function bp(t,e,n){if(typeof t=="function"?t===e:t.has(e))return arguments.length<3?e:n;throw new TypeError("Private element is not present on this object")}const Az=100;var ki=new WeakMap,Oc=new WeakMap,Yy=new WeakMap,Gy=new WeakSet;class jP{constructor(){xz(this,Gy),zy(this,ki,new Map),zy(this,Oc,new Map),zy(this,Yy,new Set),fu.forEach(e=>bp(Gy,this,UP).call(this,e))}getHooks(e){var n;return(n=Sn(ki,this).get(e))!==null&&n!==void 0?n:[]}add(e,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Sn(ki,this).has(e)||(bp(Gy,this,UP).call(this,e),fu.push(e));const i=Sn(ki,this).get(e);if(i.find(u=>u.callback===n))return;const o=Number.isInteger(r.orderIndex)?r.orderIndex:0,s=!!r.runOnce,a=!!r.initialHook;let l=!1;if(a){const u=i.find(c=>c.initialHook);u&&(u.callback=n,l=!0)}if(!l){i.push({callback:n,orderIndex:o,runOnce:s,initialHook:a,skip:!1});let u=Sn(Yy,this).has(e);!u&&o!==0&&(u=!0,Sn(Yy,this).add(e)),u&&i.length>1&&Sn(ki,this).set(e,i.toSorted((c,h)=>c.orderIndex-h.orderIndex))}}has(e){return Sn(ki,this).has(e)&&Sn(ki,this).get(e).length>0}remove(e,n){if(!Sn(ki,this).has(e))return!1;const r=Sn(ki,this).get(e),i=r.find(o=>o.callback===n);if(i){let o=Sn(Oc,this).get(e);return i.skip=!0,o+=1,o>Az&&(Sn(ki,this).set(e,r.filter(s=>!s.skip)),o=0),Sn(Oc,this).set(e,o),!0}return!1}destroy(){Sn(ki,this).clear(),Sn(Oc,this).clear(),BP(ki,this,null),BP(Oc,this,null)}}function UP(t){Sn(ki,this).set(t,[]),Sn(Oc,this).set(t,0)}function Hz(t,e,n){return(e=Nz(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Nz(t){var e=Dz(t,"string");return typeof e=="symbol"?e:e+""}function Dz(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}const kz=nt`The plugin hook "[hookName]" was removed in Handsontable [removedInVersion].\x20
|
|
33
33
|
Please consult release notes https://github.com/handsontable/handsontable/releases/tag/[removedInVersion] to\x20
|
|
34
|
-
learn about the migration path.`;class re{constructor(){Hz(this,"globalBucket",new jP)}static getSingleton(){return $z()}getBucket(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;return e?(e.pluginHookBucket||(e.pluginHookBucket=new jP),e.pluginHookBucket):this.globalBucket}add(e,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,i=arguments.length>3?arguments[3]:void 0;return Array.isArray(n)?M(n,o=>this.add(e,o,r)):(Vy.has(e)&&Ze(SN(kz,{hookName:e,removedInVersion:Vy.get(e)})),Wy.has(e)&&Ze(Wy.get(e)),this.getBucket(r).add(e,n,{orderIndex:i,runOnce:!1})),this}once(e,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,i=arguments.length>3?arguments[3]:void 0;return Array.isArray(n)?M(n,o=>this.once(e,o,r)):this.getBucket(r).add(e,n,{orderIndex:i,runOnce:!0}),this}addAsFixed(e,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;return Array.isArray(n)?M(n,i=>this.addAsFixed(e,i,r)):this.getBucket(r).add(e,n,{initialHook:!0}),this}remove(e,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;return this.getBucket(r).remove(e,n)}has(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return this.getBucket(n).has(e)}run(e,n,r,i,o,s,a,l){{const u=this.getBucket().getHooks(n),c=u?u.length:0;let h=0;if(c)for(;h<c;){if(!u[h]||u[h].skip){h+=1;continue}const d=vR(u[h].callback,e,r,i,o,s,a,l);d!==void 0&&(r=d),u[h]&&u[h].runOnce&&this.remove(n,u[h].callback),h+=1}}{const u=this.getBucket(e).getHooks(n),c=u?u.length:0;let h=0;if(c)for(;h<c;){if(!u[h]||u[h].skip){h+=1;continue}const d=vR(u[h].callback,e,r,i,o,s,a,l);d!==void 0&&(r=d),u[h]&&u[h].runOnce&&this.remove(n,u[h].callback,e),h+=1}}return r}destroy(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;this.getBucket(e).destroy()}register(e){this.isRegistered(e)||fu.push(e)}deregister(e){this.isRegistered(e)&&fu.splice(fu.indexOf(e),1)}isDeprecated(e){return Wy.has(e)||Vy.has(e)}isRegistered(e){return fu.indexOf(e)>=0}getRegistered(){return fu}}const Lz=new re;function $z(){return Lz}const Ky=new Map;function qo(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"common";Ky.has(t)||Ky.set(t,new Map);const e=Ky.get(t);function n(a,l){e.set(a,l)}function r(a){return e.get(a)}function i(a){return e.has(a)}function o(){return[...e.keys()]}function s(){return[...e.values()]}return{register:n,getItem:r,hasItem:i,getNames:o,getValues:s}}const CR=new WeakMap,{register:Fz,getItem:qN,hasItem:XN,getNames:Nle,getValues:Dle}=qo("editors");function Vz(t){const e={},n=t;this.getConstructor=function(){return t},this.getInstance=function(r){return r.guid in e||(e[r.guid]=new n(r)),e[r.guid]},re.getSingleton().add("afterDestroy",function(){e[this.guid]=null})}function ZN(t,e){let n;if(typeof t=="function")CR.get(t)||$i(null,t),n=CR.get(t);else if(typeof t=="string")n=qN(t);else throw Error('Only strings and functions can be passed as "editor" parameter');if(!n)throw Error(`No editor registered under name "${t}"`);return n.getInstance(e)}function yR(t){if(typeof t=="function")return t;if(!XN(t))throw Error(`No registered editor found under "${t}" name`);return qN(t).getConstructor()}function $i(t,e){t&&typeof t!="string"&&(e=t,t=e.EDITOR_TYPE);const n=new Vz(e);typeof t=="string"&&Fz(t,n),CR.set(e,n)}function Wz(t,e,n){return(e=Bz(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Bz(t){var e=jz(t,"string");return typeof e=="symbol"?e:e+""}function jz(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}class zo{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;Wz(this,"context",void 0),this.context=e||this,this.context.eventListeners||(this.context.eventListeners=[])}addEventListener(e,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;function o(s){r.call(this,Uz(s))}return this.context.eventListeners.push({element:e,event:n,callback:r,callbackProxy:o,options:i,eventManager:this}),e.addEventListener(n,o,i),()=>{this.removeEventListener(e,n,r)}}removeEventListener(e,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,o=this.context.eventListeners.length,s;for(;o;)if(o-=1,s=this.context.eventListeners[o],s.event===n&&s.element===e){if(r&&r!==s.callback||i&&s.eventManager!==this)continue;this.context.eventListeners.splice(o,1),s.element.removeEventListener(s.event,s.callbackProxy,s.options)}}clearEvents(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;if(!this.context)return;let n=this.context.eventListeners.length;for(;n;){n-=1;const r=this.context.eventListeners[n];e&&r.eventManager!==this||(this.context.eventListeners.splice(n,1),r.element.removeEventListener(r.event,r.callbackProxy,r.options))}}clear(){this.clearEvents()}destroy(){this.clearEvents(),this.context=null}destroyWithOwnEventsOnly(){this.clearEvents(!0),this.context=null}fireEvent(e,n){let r=e.document,i=e;r||(r=e.ownerDocument?e.ownerDocument:e,i=r.defaultView);const o={bubbles:!0,cancelable:n!=="mousemove",view:i,detail:0,screenX:0,screenY:0,clientX:1,clientY:1,ctrlKey:!1,altKey:!1,shiftKey:!1,metaKey:!1,button:0};let s;r.createEvent?(s=r.createEvent("MouseEvents"),s.initMouseEvent(n,o.bubbles,o.cancelable,o.view,o.detail,o.screenX,o.screenY,o.clientX,o.clientY,o.ctrlKey,o.altKey,o.shiftKey,o.metaKey,o.button,r.body.parentNode)):s=r.createEventObject(),e.dispatchEvent?e.dispatchEvent(s):e.fireEvent(`on${n}`,s)}}function Uz(t){const e=t.stopImmediatePropagation;return t.stopImmediatePropagation=function(){e.apply(this),Ko(this)},t}function zz(t,e){Yz(t,e),e.add(t)}function Yz(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function El(t,e,n){return(e=Gz(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Gz(t){var e=Kz(t,"string");return typeof e=="symbol"?e:e+""}function Kz(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function qy(t,e,n){if(typeof t=="function"?t===e:t.has(e))return arguments.length<3?e:n;throw new TypeError("Private element is not present on this object")}var ug=new WeakSet;class bR{constructor(e,n,r){zz(this,ug),El(this,"hot",void 0),El(this,"tableMeta",void 0),El(this,"selection",void 0),El(this,"eventManager",void 0),El(this,"destroyed",!1),El(this,"activeEditor",void 0),El(this,"cellProperties",void 0),this.hot=e,this.tableMeta=n,this.selection=r,this.eventManager=new zo(e),this.hot.addHook("afterDocumentKeyDown",i=>qy(ug,this,zP).call(this,i)),this.hot.addHook("beforeCompositionStart",i=>qy(ug,this,zP).call(this,i)),this.hot.view._wt.update("onCellDblClick",(i,o,s)=>qy(ug,this,qz).call(this,i,o,s))}getActiveEditor(){return this.activeEditor}prepareEditor(){var e;if(this.activeEditor&&this.activeEditor.isWaiting()){this.closeEditor(!1,!1,u=>{u&&this.prepareEditor()});return}const n=(e=this.hot.getSelectedRangeLast())===null||e===void 0?void 0:e.highlight;if(!n||n.isHeader())return;const{row:r,col:i}=n,o=this.hot.runHooks("modifyGetCellCoords",r,i,!1,"meta");let s=r,a=i;if(Array.isArray(o)&&([s,a]=o),this.cellProperties=this.hot.getCellMeta(s,a),!this.isCellEditable()){this.clearActiveEditor();return}const l=this.hot.getCell(r,i,!0);if(l){const u=this.hot.getCellEditor(this.cellProperties),c=this.hot.colToProp(a),h=this.hot.getSourceDataAtCell(this.hot.toPhysicalRow(s),a);this.activeEditor=ZN(u,this.hot),this.activeEditor.prepare(r,i,c,l,h,this.cellProperties)}}isEditorOpened(){return this.activeEditor&&this.activeEditor.isOpened()}openEditor(e,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(!this.isCellEditable()){this.clearActiveEditor();return}const i=this.hot.getSelectedRangeLast();let o=this.hot.runHooks("beforeBeginEditing",i.highlight.row,i.highlight.col,e,n,r);if(n instanceof MouseEvent&&typeof o!="boolean"&&(o=this.hot.selection.getLayerLevel()===0&&i.isSingle()),o===!1){this.clearActiveEditor();return}this.activeEditor||(this.hot.scrollToFocusedCell(),this.prepareEditor()),this.activeEditor&&(r&&this.activeEditor.enableFullEditMode(),this.activeEditor.beginEditing(e,n))}closeEditor(e,n,r){this.activeEditor?this.activeEditor.finishEditing(e,n,r):r&&r(!1)}closeEditorAndSaveChanges(e){this.closeEditor(!1,e)}closeEditorAndRestoreOriginalValue(e){this.closeEditor(!0,e)}clearActiveEditor(){this.activeEditor=void 0}isCellEditable(){const e=this.hot.getSelectedRangeLast();if(!e)return!1;const n=this.hot.getCellEditor(this.cellProperties),{row:r,col:i}=e.highlight,{rowIndexMapper:o,columnIndexMapper:s}=this.hot,a=o.isHidden(this.hot.toPhysicalRow(r))||s.isHidden(this.hot.toPhysicalColumn(i));return!(this.cellProperties.readOnly||!n||a)}moveSelectionAfterEnter(e){const n={...typeof this.tableMeta.enterMoves=="function"?this.tableMeta.enterMoves(e):this.tableMeta.enterMoves};e.shiftKey&&(n.row=-n.row,n.col=-n.col),this.hot.selection.isMultiple()?this.selection.transformFocus(n.row,n.col):this.selection.transformStart(n.row,n.col,!0)}destroy(){this.destroyed=!0,this.eventManager.destroy()}}function zP(t){const e=this.hot.getSelectedRangeLast();if(!this.hot.isListening()||!e||e.highlight.isHeader()||du(t))return;const{keyCode:n}=t,r=(t.ctrlKey||t.metaKey)&&!t.altKey;(!this.activeEditor||this.activeEditor&&!this.activeEditor.isWaiting())&&!GN(n)&&!Rz(n)&&!r&&!this.isEditorOpened()&&this.openEditor("",t)}function qz(t,e){e.isCell()&&this.openEditor(null,t,!0)}const YP=new WeakMap;bR.getInstance=function(t,e,n){let r=YP.get(t);return r||(r=new bR(t,e,n),YP.set(t,r)),r};function Xz(t,e){QN(t,e),e.add(t)}function Nh(t,e,n){QN(t,e),e.set(t,n)}function QN(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function gt(t,e){return t.get(ia(t,e))}function Dh(t,e,n){return t.set(ia(t,e),n),n}function ia(t,e,n){if(typeof t=="function"?t===e:t.has(e))return arguments.length<3?e:n;throw new TypeError("Private element is not present on this object")}const Gc=Object.freeze({CELL:"cell",MIXED:"mixed"});var en=new WeakMap,cg=new WeakMap,hg=new WeakMap,dg=new WeakMap,fg=new WeakMap,Ga=new WeakSet;class Zz{constructor(e){var n=this;Xz(this,Ga),Nh(this,en,void 0),Nh(this,cg,void 0),Nh(this,hg,1),Nh(this,dg,null),Nh(this,fg,new Map);const r=e.getSettings();Dh(en,this,e),Dh(cg,this,r.imeFastEdit?Gc.MIXED:Gc.CELL),gt(en,this).addHook("afterUpdateSettings",function(){for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return ia(Ga,n,Jz).call(n,...o)}),gt(en,this).addHook("afterSelection",function(){for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return ia(Ga,n,GP).call(n,...o)}),gt(en,this).addHook("afterSelectionFocusSet",function(){for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return ia(Ga,n,GP).call(n,...o)}),gt(en,this).addHook("afterSelectionEnd",function(){for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return ia(Ga,n,Qz).call(n,...o)})}getFocusMode(){return gt(cg,this)}setFocusMode(e){Object.values(Gc).includes(e)?Dh(cg,this,e):Ze(`"${e}" is not a valid focus mode.`)}getRefocusDelay(){return gt(hg,this)}setRefocusDelay(e){Dh(hg,this,e)}setRefocusElementGetter(e){Dh(dg,this,e)}getRefocusElement(){var e;return typeof gt(dg,this)=="function"?gt(dg,this).call(this):(e=gt(en,this).getActiveEditor())===null||e===void 0?void 0:e.TEXTAREA}focusOnHighlightedCell(e){const n=r=>{var i,o;const s=(i=gt(en,this).getSelectedRangeLast())===null||i===void 0?void 0:i.highlight;if(!s)return;let a=gt(en,this).runHooks("modifyFocusedElement",s.row,s.col,r);pa(a)||(a=r),a&&!((o=gt(en,this).getActiveEditor())!==null&&o!==void 0&&o.isOpened())&&a.focus({preventScroll:!0})};e?n(e):ia(Ga,this,n0).call(this,r=>n(r))}refocusToEditorTextarea(){var e;let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:gt(hg,this);if(gt(en,this).getSettings().imeFastEdit&&!((e=gt(en,this).getActiveEditor())!==null&&e!==void 0&&e.isOpened())){var r,i;(r=gt(en,this).getActiveEditor())===null||r===void 0||(i=r.refreshValue)===null||i===void 0||i.call(r),gt(fg,this).has(n)||gt(fg,this).set(n,Ew(()=>{if(!gt(en,this).isDestroyed){var o;(o=this.getRefocusElement())===null||o===void 0||o.select()}},n)),gt(fg,this).get(n)()}}}function n0(t){var e;const n=(e=gt(en,this).getSelectedRangeLast())===null||e===void 0?void 0:e.highlight;if(!n||!gt(en,this).selection.isCellVisible(n)){t(null);return}const r=gt(en,this).getCell(n.row,n.col,!0);r===null?gt(en,this).addHookOnce("afterScroll",()=>{t(gt(en,this).getCell(n.row,n.col,!0))}):t(r)}function GP(){ia(Ga,this,n0).call(this,t=>{const{activeElement:e}=gt(en,this).rootDocument;e&&$N(e)&&e.blur(),this.focusOnHighlightedCell(t)})}function Qz(){ia(Ga,this,n0).call(this,t=>{this.getFocusMode()===Gc.MIXED&&(t==null?void 0:t.nodeName)==="TD"&&this.refocusToEditorTextarea()})}function Jz(t){typeof t.imeFastEdit=="boolean"&&this.setFocusMode(t.imeFastEdit?Gc.MIXED:Gc.CELL)}var KP={},Xy,qP;function eY(){if(qP)return Xy;qP=1;var t=mo(),e=Nu(),n=Yo(),r=n("match");return Xy=function(i){var o;return t(i)&&((o=i[r])!==void 0?!!o:e(i)==="RegExp")},Xy}var Zy,XP;function tY(){if(XP)return Zy;XP=1;var t=ln();return Zy=function(){var e=t(this),n="";return e.hasIndices&&(n+="d"),e.global&&(n+="g"),e.ignoreCase&&(n+="i"),e.multiline&&(n+="m"),e.dotAll&&(n+="s"),e.unicode&&(n+="u"),e.unicodeSets&&(n+="v"),e.sticky&&(n+="y"),n},Zy}var Qy,ZP;function nY(){if(ZP)return Qy;ZP=1;var t=sn(),e=po(),n=xf(),r=tY(),i=RegExp.prototype;return Qy=function(o){var s=o.flags;return s===void 0&&!("flags"in i)&&!e(o,"flags")&&n(i,o)?t(r,o):s},Qy}var Jy,QP;function rY(){if(QP)return Jy;QP=1;var t=qt(),e=lh(),n=Math.floor,r=t("".charAt),i=t("".replace),o=t("".slice),s=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,a=/\$([$&'`]|\d{1,2})/g;return Jy=function(l,u,c,h,d,f){var g=c+l.length,C=h.length,y=a;return d!==void 0&&(d=e(d),y=s),i(f,y,function(E,v){var P;switch(r(v,0)){case"$":return"$";case"&":return l;case"`":return o(u,0,c);case"'":return o(u,g);case"<":P=d[o(v,1,-1)];break;default:var O=+v;if(O===0)return E;if(O>C){var L=n(O/10);return L===0?E:L<=C?h[L-1]===void 0?r(v,1):h[L-1]+r(v,1):E}P=h[O-1]}return P===void 0?"":P})},Jy}var JP;function iY(){if(JP)return KP;JP=1;var t=dt(),e=sn(),n=qt(),r=Pf(),i=an(),o=mo(),s=eY(),a=uw(),l=Af(),u=nY(),c=rY(),h=Yo(),d=gl(),f=h("replace"),g=TypeError,C=n("".indexOf),y=n("".replace),E=n("".slice),v=Math.max;return t({target:"String",proto:!0},{replaceAll:function(O,L){var T=r(this),A,K,U,j,Z,J,se,te,ue,pt,be=0,ke="";if(o(O)){if(A=s(O),A&&(K=a(r(u(O))),!~C(K,"g")))throw new g("`.replaceAll` does not allow non-global regexes");if(U=l(O,f),U)return e(U,O,T,L);if(d&&A)return y(a(T),O,L)}for(j=a(T),Z=a(O),J=i(L),J||(L=a(L)),se=Z.length,te=v(1,se),ue=C(j,Z);ue!==-1;)pt=J?a(L(Z,ue,j)):c(Z,j,ue,[],void 0,L),ke+=E(j,be,ue)+pt,be=ue+se,ue=ue+te>j.length?-1:C(j,Z,ue+te);return be<j.length&&(ke+=E(j,be)),ke}}),KP}iY();var eO={},tO={},nO;function oY(){if(nO)return tO;nO=1;var t=dt(),e=hh(),n=pr(),r=ln(),i=Os(),o=Yi(),s=pl(),a=Nf(),l=Cn(),u=TypeError,c=l(function(){[].keys().reduce(function(){},void 0)}),h=!c&&s("reduce",u);return t({target:"Iterator",proto:!0,real:!0,forced:c||h},{reduce:function(f){r(this);try{n(f)}catch(v){o(this,"throw",v)}var g=arguments.length<2,C=g?void 0:arguments[1];if(h)return a(h,this,g?[f]:[f,C]);var y=i(this),E=0;if(e(y,function(v){g?(g=!1,C=v):C=f(C,v,E),E++},{IS_RECORD:!0}),g)throw new u("Reduce of empty iterator with no initial value");return C}}),tO}var rO;function sY(){return rO||(rO=1,oY()),eO}sY();const JN={" ":" ","&":"&","<":"<",">":">"},aY=new RegExp(Object.keys(JN).map(t=>`(${t})`).join("|"),"gi");function lY(t){return(t&&t.nodeName||"")==="TABLE"}function iO(t){const e=t.hasColHeaders(),n=t.hasRowHeaders(),r=[e?-1:0,n?-1:0,t.countRows()-1,t.countCols()-1],i=t.getData(...r),o=i.length,s=o>0?i[0].length:0,a=["<table>","</table>"],l=e?["<thead>","</thead>"]:[],u=["<tbody>","</tbody>"],c=n?1:0,h=e?1:0;for(let d=0;d<o;d+=1){const f=e&&d===0,g=[];for(let y=0;y<s;y+=1){const E=!f&&n&&y===0;let v="";if(f)v=`<th>${t.getColHeader(y-c)}</th>`;else if(E)v=`<th>${t.getRowHeader(d-h)}</th>`;else{const P=i[d][y],{hidden:O,rowspan:L,colspan:T}=t.getCellMeta(d-h,y-c);if(!O){const A=[];if(L&&A.push(`rowspan="${L}"`),T&&A.push(`colspan="${T}"`),Ut(P))v=`<td ${A.join(" ")}></td>`;else{const K=P.toString().replace(/</g,"<").replace(/>/g,">").replace(/(<br(\s*|\/)>(\r\n|\n)?|\r\n|\n)/g,`<br>\r
|
|
34
|
+
learn about the migration path.`;class re{constructor(){Hz(this,"globalBucket",new jP)}static getSingleton(){return $z()}getBucket(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;return e?(e.pluginHookBucket||(e.pluginHookBucket=new jP),e.pluginHookBucket):this.globalBucket}add(e,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,i=arguments.length>3?arguments[3]:void 0;return Array.isArray(n)?M(n,o=>this.add(e,o,r)):(Vy.has(e)&&Ze(SN(kz,{hookName:e,removedInVersion:Vy.get(e)})),Wy.has(e)&&Ze(Wy.get(e)),this.getBucket(r).add(e,n,{orderIndex:i,runOnce:!1})),this}once(e,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,i=arguments.length>3?arguments[3]:void 0;return Array.isArray(n)?M(n,o=>this.once(e,o,r)):this.getBucket(r).add(e,n,{orderIndex:i,runOnce:!0}),this}addAsFixed(e,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;return Array.isArray(n)?M(n,i=>this.addAsFixed(e,i,r)):this.getBucket(r).add(e,n,{initialHook:!0}),this}remove(e,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;return this.getBucket(r).remove(e,n)}has(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return this.getBucket(n).has(e)}run(e,n,r,i,o,s,a,l){{const u=this.getBucket().getHooks(n),c=u?u.length:0;let h=0;if(c)for(;h<c;){if(!u[h]||u[h].skip){h+=1;continue}const d=vR(u[h].callback,e,r,i,o,s,a,l);d!==void 0&&(r=d),u[h]&&u[h].runOnce&&this.remove(n,u[h].callback),h+=1}}{const u=this.getBucket(e).getHooks(n),c=u?u.length:0;let h=0;if(c)for(;h<c;){if(!u[h]||u[h].skip){h+=1;continue}const d=vR(u[h].callback,e,r,i,o,s,a,l);d!==void 0&&(r=d),u[h]&&u[h].runOnce&&this.remove(n,u[h].callback,e),h+=1}}return r}destroy(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;this.getBucket(e).destroy()}register(e){this.isRegistered(e)||fu.push(e)}deregister(e){this.isRegistered(e)&&fu.splice(fu.indexOf(e),1)}isDeprecated(e){return Wy.has(e)||Vy.has(e)}isRegistered(e){return fu.indexOf(e)>=0}getRegistered(){return fu}}const Lz=new re;function $z(){return Lz}const Ky=new Map;function qo(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"common";Ky.has(t)||Ky.set(t,new Map);const e=Ky.get(t);function n(a,l){e.set(a,l)}function r(a){return e.get(a)}function i(a){return e.has(a)}function o(){return[...e.keys()]}function s(){return[...e.values()]}return{register:n,getItem:r,hasItem:i,getNames:o,getValues:s}}const CR=new WeakMap,{register:Fz,getItem:qN,hasItem:XN,getNames:Hle,getValues:Nle}=qo("editors");function Vz(t){const e={},n=t;this.getConstructor=function(){return t},this.getInstance=function(r){return r.guid in e||(e[r.guid]=new n(r)),e[r.guid]},re.getSingleton().add("afterDestroy",function(){e[this.guid]=null})}function ZN(t,e){let n;if(typeof t=="function")CR.get(t)||$i(null,t),n=CR.get(t);else if(typeof t=="string")n=qN(t);else throw Error('Only strings and functions can be passed as "editor" parameter');if(!n)throw Error(`No editor registered under name "${t}"`);return n.getInstance(e)}function yR(t){if(typeof t=="function")return t;if(!XN(t))throw Error(`No registered editor found under "${t}" name`);return qN(t).getConstructor()}function $i(t,e){t&&typeof t!="string"&&(e=t,t=e.EDITOR_TYPE);const n=new Vz(e);typeof t=="string"&&Fz(t,n),CR.set(e,n)}function Wz(t,e,n){return(e=Bz(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Bz(t){var e=jz(t,"string");return typeof e=="symbol"?e:e+""}function jz(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}class zo{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;Wz(this,"context",void 0),this.context=e||this,this.context.eventListeners||(this.context.eventListeners=[])}addEventListener(e,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;function o(s){r.call(this,Uz(s))}return this.context.eventListeners.push({element:e,event:n,callback:r,callbackProxy:o,options:i,eventManager:this}),e.addEventListener(n,o,i),()=>{this.removeEventListener(e,n,r)}}removeEventListener(e,n,r){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,o=this.context.eventListeners.length,s;for(;o;)if(o-=1,s=this.context.eventListeners[o],s.event===n&&s.element===e){if(r&&r!==s.callback||i&&s.eventManager!==this)continue;this.context.eventListeners.splice(o,1),s.element.removeEventListener(s.event,s.callbackProxy,s.options)}}clearEvents(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;if(!this.context)return;let n=this.context.eventListeners.length;for(;n;){n-=1;const r=this.context.eventListeners[n];e&&r.eventManager!==this||(this.context.eventListeners.splice(n,1),r.element.removeEventListener(r.event,r.callbackProxy,r.options))}}clear(){this.clearEvents()}destroy(){this.clearEvents(),this.context=null}destroyWithOwnEventsOnly(){this.clearEvents(!0),this.context=null}fireEvent(e,n){let r=e.document,i=e;r||(r=e.ownerDocument?e.ownerDocument:e,i=r.defaultView);const o={bubbles:!0,cancelable:n!=="mousemove",view:i,detail:0,screenX:0,screenY:0,clientX:1,clientY:1,ctrlKey:!1,altKey:!1,shiftKey:!1,metaKey:!1,button:0};let s;r.createEvent?(s=r.createEvent("MouseEvents"),s.initMouseEvent(n,o.bubbles,o.cancelable,o.view,o.detail,o.screenX,o.screenY,o.clientX,o.clientY,o.ctrlKey,o.altKey,o.shiftKey,o.metaKey,o.button,r.body.parentNode)):s=r.createEventObject(),e.dispatchEvent?e.dispatchEvent(s):e.fireEvent(`on${n}`,s)}}function Uz(t){const e=t.stopImmediatePropagation;return t.stopImmediatePropagation=function(){e.apply(this),Ko(this)},t}function zz(t,e){Yz(t,e),e.add(t)}function Yz(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function El(t,e,n){return(e=Gz(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Gz(t){var e=Kz(t,"string");return typeof e=="symbol"?e:e+""}function Kz(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function qy(t,e,n){if(typeof t=="function"?t===e:t.has(e))return arguments.length<3?e:n;throw new TypeError("Private element is not present on this object")}var ug=new WeakSet;class bR{constructor(e,n,r){zz(this,ug),El(this,"hot",void 0),El(this,"tableMeta",void 0),El(this,"selection",void 0),El(this,"eventManager",void 0),El(this,"destroyed",!1),El(this,"activeEditor",void 0),El(this,"cellProperties",void 0),this.hot=e,this.tableMeta=n,this.selection=r,this.eventManager=new zo(e),this.hot.addHook("afterDocumentKeyDown",i=>qy(ug,this,zP).call(this,i)),this.hot.addHook("beforeCompositionStart",i=>qy(ug,this,zP).call(this,i)),this.hot.view._wt.update("onCellDblClick",(i,o,s)=>qy(ug,this,qz).call(this,i,o,s))}getActiveEditor(){return this.activeEditor}prepareEditor(){var e;if(this.activeEditor&&this.activeEditor.isWaiting()){this.closeEditor(!1,!1,u=>{u&&this.prepareEditor()});return}const n=(e=this.hot.getSelectedRangeLast())===null||e===void 0?void 0:e.highlight;if(!n||n.isHeader())return;const{row:r,col:i}=n,o=this.hot.runHooks("modifyGetCellCoords",r,i,!1,"meta");let s=r,a=i;if(Array.isArray(o)&&([s,a]=o),this.cellProperties=this.hot.getCellMeta(s,a),!this.isCellEditable()){this.clearActiveEditor();return}const l=this.hot.getCell(r,i,!0);if(l){const u=this.hot.getCellEditor(this.cellProperties),c=this.hot.colToProp(a),h=this.hot.getSourceDataAtCell(this.hot.toPhysicalRow(s),a);this.activeEditor=ZN(u,this.hot),this.activeEditor.prepare(r,i,c,l,h,this.cellProperties)}}isEditorOpened(){return this.activeEditor&&this.activeEditor.isOpened()}openEditor(e,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(!this.isCellEditable()){this.clearActiveEditor();return}const i=this.hot.getSelectedRangeLast();let o=this.hot.runHooks("beforeBeginEditing",i.highlight.row,i.highlight.col,e,n,r);if(n instanceof MouseEvent&&typeof o!="boolean"&&(o=this.hot.selection.getLayerLevel()===0&&i.isSingle()),o===!1){this.clearActiveEditor();return}this.activeEditor||(this.hot.scrollToFocusedCell(),this.prepareEditor()),this.activeEditor&&(r&&this.activeEditor.enableFullEditMode(),this.activeEditor.beginEditing(e,n))}closeEditor(e,n,r){this.activeEditor?this.activeEditor.finishEditing(e,n,r):r&&r(!1)}closeEditorAndSaveChanges(e){this.closeEditor(!1,e)}closeEditorAndRestoreOriginalValue(e){this.closeEditor(!0,e)}clearActiveEditor(){this.activeEditor=void 0}isCellEditable(){const e=this.hot.getSelectedRangeLast();if(!e)return!1;const n=this.hot.getCellEditor(this.cellProperties),{row:r,col:i}=e.highlight,{rowIndexMapper:o,columnIndexMapper:s}=this.hot,a=o.isHidden(this.hot.toPhysicalRow(r))||s.isHidden(this.hot.toPhysicalColumn(i));return!(this.cellProperties.readOnly||!n||a)}moveSelectionAfterEnter(e){const n={...typeof this.tableMeta.enterMoves=="function"?this.tableMeta.enterMoves(e):this.tableMeta.enterMoves};e.shiftKey&&(n.row=-n.row,n.col=-n.col),this.hot.selection.isMultiple()?this.selection.transformFocus(n.row,n.col):this.selection.transformStart(n.row,n.col,!0)}destroy(){this.destroyed=!0,this.eventManager.destroy()}}function zP(t){const e=this.hot.getSelectedRangeLast();if(!this.hot.isListening()||!e||e.highlight.isHeader()||du(t))return;const{keyCode:n}=t,r=(t.ctrlKey||t.metaKey)&&!t.altKey;(!this.activeEditor||this.activeEditor&&!this.activeEditor.isWaiting())&&!GN(n)&&!Rz(n)&&!r&&!this.isEditorOpened()&&this.openEditor("",t)}function qz(t,e){e.isCell()&&this.openEditor(null,t,!0)}const YP=new WeakMap;bR.getInstance=function(t,e,n){let r=YP.get(t);return r||(r=new bR(t,e,n),YP.set(t,r)),r};function Xz(t,e){QN(t,e),e.add(t)}function Nh(t,e,n){QN(t,e),e.set(t,n)}function QN(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function gt(t,e){return t.get(ia(t,e))}function Dh(t,e,n){return t.set(ia(t,e),n),n}function ia(t,e,n){if(typeof t=="function"?t===e:t.has(e))return arguments.length<3?e:n;throw new TypeError("Private element is not present on this object")}const Gc=Object.freeze({CELL:"cell",MIXED:"mixed"});var en=new WeakMap,cg=new WeakMap,hg=new WeakMap,dg=new WeakMap,fg=new WeakMap,Ga=new WeakSet;class Zz{constructor(e){var n=this;Xz(this,Ga),Nh(this,en,void 0),Nh(this,cg,void 0),Nh(this,hg,1),Nh(this,dg,null),Nh(this,fg,new Map);const r=e.getSettings();Dh(en,this,e),Dh(cg,this,r.imeFastEdit?Gc.MIXED:Gc.CELL),gt(en,this).addHook("afterUpdateSettings",function(){for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return ia(Ga,n,Jz).call(n,...o)}),gt(en,this).addHook("afterSelection",function(){for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return ia(Ga,n,GP).call(n,...o)}),gt(en,this).addHook("afterSelectionFocusSet",function(){for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return ia(Ga,n,GP).call(n,...o)}),gt(en,this).addHook("afterSelectionEnd",function(){for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return ia(Ga,n,Qz).call(n,...o)})}getFocusMode(){return gt(cg,this)}setFocusMode(e){Object.values(Gc).includes(e)?Dh(cg,this,e):Ze(`"${e}" is not a valid focus mode.`)}getRefocusDelay(){return gt(hg,this)}setRefocusDelay(e){Dh(hg,this,e)}setRefocusElementGetter(e){Dh(dg,this,e)}getRefocusElement(){var e;return typeof gt(dg,this)=="function"?gt(dg,this).call(this):(e=gt(en,this).getActiveEditor())===null||e===void 0?void 0:e.TEXTAREA}focusOnHighlightedCell(e){const n=r=>{var i,o;const s=(i=gt(en,this).getSelectedRangeLast())===null||i===void 0?void 0:i.highlight;if(!s)return;let a=gt(en,this).runHooks("modifyFocusedElement",s.row,s.col,r);pa(a)||(a=r),a&&!((o=gt(en,this).getActiveEditor())!==null&&o!==void 0&&o.isOpened())&&a.focus({preventScroll:!0})};e?n(e):ia(Ga,this,n0).call(this,r=>n(r))}refocusToEditorTextarea(){var e;let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:gt(hg,this);if(gt(en,this).getSettings().imeFastEdit&&!((e=gt(en,this).getActiveEditor())!==null&&e!==void 0&&e.isOpened())){var r,i;(r=gt(en,this).getActiveEditor())===null||r===void 0||(i=r.refreshValue)===null||i===void 0||i.call(r),gt(fg,this).has(n)||gt(fg,this).set(n,Ew(()=>{if(!gt(en,this).isDestroyed){var o;(o=this.getRefocusElement())===null||o===void 0||o.select()}},n)),gt(fg,this).get(n)()}}}function n0(t){var e;const n=(e=gt(en,this).getSelectedRangeLast())===null||e===void 0?void 0:e.highlight;if(!n||!gt(en,this).selection.isCellVisible(n)){t(null);return}const r=gt(en,this).getCell(n.row,n.col,!0);r===null?gt(en,this).addHookOnce("afterScroll",()=>{t(gt(en,this).getCell(n.row,n.col,!0))}):t(r)}function GP(){ia(Ga,this,n0).call(this,t=>{const{activeElement:e}=gt(en,this).rootDocument;e&&$N(e)&&e.blur(),this.focusOnHighlightedCell(t)})}function Qz(){ia(Ga,this,n0).call(this,t=>{this.getFocusMode()===Gc.MIXED&&(t==null?void 0:t.nodeName)==="TD"&&this.refocusToEditorTextarea()})}function Jz(t){typeof t.imeFastEdit=="boolean"&&this.setFocusMode(t.imeFastEdit?Gc.MIXED:Gc.CELL)}var KP={},Xy,qP;function eY(){if(qP)return Xy;qP=1;var t=mo(),e=Nu(),n=Yo(),r=n("match");return Xy=function(i){var o;return t(i)&&((o=i[r])!==void 0?!!o:e(i)==="RegExp")},Xy}var Zy,XP;function tY(){if(XP)return Zy;XP=1;var t=ln();return Zy=function(){var e=t(this),n="";return e.hasIndices&&(n+="d"),e.global&&(n+="g"),e.ignoreCase&&(n+="i"),e.multiline&&(n+="m"),e.dotAll&&(n+="s"),e.unicode&&(n+="u"),e.unicodeSets&&(n+="v"),e.sticky&&(n+="y"),n},Zy}var Qy,ZP;function nY(){if(ZP)return Qy;ZP=1;var t=sn(),e=po(),n=xf(),r=tY(),i=RegExp.prototype;return Qy=function(o){var s=o.flags;return s===void 0&&!("flags"in i)&&!e(o,"flags")&&n(i,o)?t(r,o):s},Qy}var Jy,QP;function rY(){if(QP)return Jy;QP=1;var t=qt(),e=lh(),n=Math.floor,r=t("".charAt),i=t("".replace),o=t("".slice),s=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,a=/\$([$&'`]|\d{1,2})/g;return Jy=function(l,u,c,h,d,f){var g=c+l.length,C=h.length,y=a;return d!==void 0&&(d=e(d),y=s),i(f,y,function(E,v){var P;switch(r(v,0)){case"$":return"$";case"&":return l;case"`":return o(u,0,c);case"'":return o(u,g);case"<":P=d[o(v,1,-1)];break;default:var O=+v;if(O===0)return E;if(O>C){var L=n(O/10);return L===0?E:L<=C?h[L-1]===void 0?r(v,1):h[L-1]+r(v,1):E}P=h[O-1]}return P===void 0?"":P})},Jy}var JP;function iY(){if(JP)return KP;JP=1;var t=dt(),e=sn(),n=qt(),r=Pf(),i=an(),o=mo(),s=eY(),a=uw(),l=Af(),u=nY(),c=rY(),h=Yo(),d=gl(),f=h("replace"),g=TypeError,C=n("".indexOf),y=n("".replace),E=n("".slice),v=Math.max;return t({target:"String",proto:!0},{replaceAll:function(O,L){var T=r(this),A,K,U,j,Z,J,se,te,ue,pt,be=0,ke="";if(o(O)){if(A=s(O),A&&(K=a(r(u(O))),!~C(K,"g")))throw new g("`.replaceAll` does not allow non-global regexes");if(U=l(O,f),U)return e(U,O,T,L);if(d&&A)return y(a(T),O,L)}for(j=a(T),Z=a(O),J=i(L),J||(L=a(L)),se=Z.length,te=v(1,se),ue=C(j,Z);ue!==-1;)pt=J?a(L(Z,ue,j)):c(Z,j,ue,[],void 0,L),ke+=E(j,be,ue)+pt,be=ue+se,ue=ue+te>j.length?-1:C(j,Z,ue+te);return be<j.length&&(ke+=E(j,be)),ke}}),KP}iY();var eO={},tO={},nO;function oY(){if(nO)return tO;nO=1;var t=dt(),e=hh(),n=pr(),r=ln(),i=Os(),o=Yi(),s=pl(),a=Nf(),l=Cn(),u=TypeError,c=l(function(){[].keys().reduce(function(){},void 0)}),h=!c&&s("reduce",u);return t({target:"Iterator",proto:!0,real:!0,forced:c||h},{reduce:function(f){r(this);try{n(f)}catch(v){o(this,"throw",v)}var g=arguments.length<2,C=g?void 0:arguments[1];if(h)return a(h,this,g?[f]:[f,C]);var y=i(this),E=0;if(e(y,function(v){g?(g=!1,C=v):C=f(C,v,E),E++},{IS_RECORD:!0}),g)throw new u("Reduce of empty iterator with no initial value");return C}}),tO}var rO;function sY(){return rO||(rO=1,oY()),eO}sY();const JN={" ":" ","&":"&","<":"<",">":">"},aY=new RegExp(Object.keys(JN).map(t=>`(${t})`).join("|"),"gi");function lY(t){return(t&&t.nodeName||"")==="TABLE"}function iO(t){const e=t.hasColHeaders(),n=t.hasRowHeaders(),r=[e?-1:0,n?-1:0,t.countRows()-1,t.countCols()-1],i=t.getData(...r),o=i.length,s=o>0?i[0].length:0,a=["<table>","</table>"],l=e?["<thead>","</thead>"]:[],u=["<tbody>","</tbody>"],c=n?1:0,h=e?1:0;for(let d=0;d<o;d+=1){const f=e&&d===0,g=[];for(let y=0;y<s;y+=1){const E=!f&&n&&y===0;let v="";if(f)v=`<th>${t.getColHeader(y-c)}</th>`;else if(E)v=`<th>${t.getRowHeader(d-h)}</th>`;else{const P=i[d][y],{hidden:O,rowspan:L,colspan:T}=t.getCellMeta(d-h,y-c);if(!O){const A=[];if(L&&A.push(`rowspan="${L}"`),T&&A.push(`colspan="${T}"`),Ut(P))v=`<td ${A.join(" ")}></td>`;else{const K=P.toString().replace(/</g,"<").replace(/>/g,">").replace(/(<br(\s*|\/)>(\r\n|\n)?|\r\n|\n)/g,`<br>\r
|
|
35
35
|
`).replace(/\x20/gi," ").replace(/\t/gi,"	");v=`<td ${A.join(" ")}>${K}</td>`}}}g.push(v)}const C=["<tr>",...g,"</tr>"].join("");f?l.splice(1,0,C):u.splice(-1,0,C)}return a.splice(1,0,l.join(""),u.join("")),a.join("")}function oO(t){const e=t.length,n=["<table>"];for(let r=0;r<e;r+=1){const i=t[r],o=i.length,s=[];r===0&&n.push("<tbody>");for(let a=0;a<o;a+=1){const l=i[a],u=Ut(l)?"":l.toString().replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/(<br(\s*|\/)>(\r\n|\n)?|\r\n|\n)/g,`<br>\r
|
|
36
36
|
`).replace(/\x20{2,}/gi,c=>`<span style="mso-spacerun: yes">${" ".repeat(c.length-1)} </span>`).replace(/\t/gi,"	");s.push(`<td>${u}</td>`)}n.push("<tr>",...s,"</tr>"),r+1===e&&n.push("</tbody>")}return n.push("</table>"),n.join("")}function uY(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:document;const n={},r=e.createDocumentFragment(),i=e.createElement("div");r.appendChild(i);let o=t;if(typeof o=="string"){const P=o.replace(/<td\b[^>]*?>([\s\S]*?)<\/\s*td>/g,O=>{const L=O.match(/<td\b[^>]*?>/g)[0],T=/<p.*?>/g,A=O.substring(L.length,O.lastIndexOf("<")).trim().replaceAll(/\n\s+/g," ").replaceAll(T,`
|
|
37
37
|
`).replace(`
|
|
38
38
|
`,"").replaceAll(/<\/(.*)>\s+$/mg,"</$1>").replace(/(<(?!br)([^>]+)>)/gi,"").replaceAll(/^ $/mg,"");return`${L}${A}</td>`});i.insertAdjacentHTML("afterbegin",`${P}`),o=i.querySelector("table")}if(!o||!lY(o))return;const s=i.querySelector('meta[name$="enerator"]'),a=o.querySelector("tbody th")!==null,l=o.querySelector("tr"),u=l?Array.from(l.cells).reduce((P,O)=>P+O.colSpan,0)-(a?1:0):0,c=o.tFoot&&Array.from(o.tFoot.rows)||[],h=[];let d=!1,f=0,g=0;if(o.tHead){const P=Array.from(o.tHead.rows).filter(O=>{const L=O.querySelector("td")!==null;return L&&h.push(O),!L});f=P.length,d=f>0,f>1?n.nestedHeaders=Array.from(P).reduce((O,L)=>{const T=Array.from(L.cells).reduce((A,K,U)=>{if(a&&U===0)return A;const{colSpan:j,innerHTML:Z}=K,J=j>1?{label:Z,colspan:j}:Z;return A.push(J),A},[]);return O.push(T),O},[]):d&&(n.colHeaders=Array.from(P[0].children).reduce((O,L,T)=>(a&&T===0||O.push(L.innerHTML),O),[]))}h.length&&(n.fixedRowsTop=h.length),c.length&&(n.fixedRowsBottom=c.length);const C=[...h,...Array.from(o.tBodies).reduce((P,O)=>(P.push(...Array.from(O.rows)),P),[]),...c];g=C.length;const y=new Array(g);for(let P=0;P<g;P++)y[P]=new Array(u);const E=[],v=[];for(let P=0;P<g;P++){const O=C[P],L=Array.from(O.cells),T=L.length;for(let A=0;A<T;A++){const K=L[A],{nodeName:U,innerHTML:j,rowSpan:Z,colSpan:J}=K,se=y[P].findIndex(te=>te===void 0);if(U==="TD"){if(Z>1||J>1){for(let be=P;be<P+Z;be++)if(be<g)for(let ke=se;ke<se+J;ke++)y[be][ke]=null;const ue=K.getAttribute("style");ue&&ue.includes("mso-ignore:colspan")||E.push({col:se,row:P,rowspan:Z,colspan:J})}let te="";s&&/excel/gi.test(s.content)?te=j.replace(/[\r\n][\x20]{0,2}/g," ").replace(/<br(\s*|\/)>[\r\n]?[\x20]{0,3}/gim,`\r
|
|
39
39
|
`):te=j.replace(/<br(\s*|\/)>[\r\n]?/gim,`\r
|
|
40
|
-
`),y[P][se]=te.replace(aY,ue=>JN[ue])}else v.push(j)}}return E.length&&(n.mergeCells=E),v.length&&(n.rowHeaders=v),y.length&&(n.data=y),n}function Un(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];const n=typeof t;if(n==="number")return!isNaN(t)&&isFinite(t);if(n==="string"){if(t.length===0)return!1;if(t.length===1)return/\d/.test(t);const r=Array.from(new Set([".",...e])).map(i=>`\\${i}`).join("|");return new RegExp(`^[+-]?(((${r})?\\d+((${r})\\d+)?(e[+-]?\\d+)?)|(0x[a-f\\d]+))$`,"i").test(t.trim())}else if(n==="object")return!!t&&typeof t.valueOf()=="number"&&!(t instanceof Date);return!1}function cY(t){return Un(t,[","])}function de(t,e,n){let r=-1;for(typeof e=="function"?(n=e,e=t):r=t-1;++r<=e&&n(r)!==!1;);}function sO(t,e,n){let r=t+1;for(typeof e=="function"&&(n=e,e=0);--r>=e&&n(r)!==!1;);}function eD(t,e){return e=parseInt(e.toString().replace("%",""),10),e=isNaN(e)?0:e,parseInt(t*e/100,10)}function Ue(t,e,n){return Math.min(t,e)===t?e:Math.max(t,n)===t?n:t}const SR="asc",hY="desc",aO=new Map([[SR,[-1,1]],[hY,[1,-1]]]),dY=t=>`The priority '${t}' is already declared in a map.`,fY=t=>`The priority '${t}' is not a number.`;function gY(){let{errorPriorityExists:t,errorPriorityNaN:e}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const n=new Map;t=ot(t)?t:dY,e=ot(e)?e:fY;function r(o,s){if(!Un(o))throw new Error(e(o));if(n.has(o))throw new Error(t(o));n.set(o,s)}function i(){let o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:SR;const[s,a]=aO.get(o)||aO.get(SR);return[...n].sort((l,u)=>l[0]<u[0]?s:a).map(l=>l[1])}return{addItem:r,getItems:i}}const mY=t=>`The id '${t}' is already declared in a map.`;function Mw(){let{errorIdExists:t}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const e=new Map;t=ot(t)?t:mY;function n(u,c){if(l(u))throw new Error(t(u));e.set(u,c)}function r(u){return e.delete(u)}function i(){e.clear()}function o(u){const[c]=a().find(h=>{let[d,f]=h;return u===f?d:!1})||[null];return c}function s(u){return e.get(u)}function a(){return[...e]}function l(u){return e.has(u)}return{addItem:n,clear:i,getId:o,getItem:s,getItems:a,hasItem:l,removeItem:r}}const pY=t=>`'${t}' value is already declared in a unique set.`;function wY(){let{errorItemExists:t}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const e=new Set;t=ot(t)?t:pY;function n(o){if(e.has(o))throw new Error(t(o));e.add(o)}function r(){return[...e]}function i(){e.clear()}return{addItem:n,clear:i,getItems:r}}const r0=t=>`There is already registered "${t}" plugin.`,vY=t=>`There is already registered plugin on priority "${t}".`,CY=t=>`The priority "${t}" is not a number.`,tD=gY({errorPriorityExists:vY,errorPriorityNaN:CY}),nD=wY({errorItemExists:r0}),RR=Mw({errorIdExists:r0});function rD(){return[...tD.getItems(),...nD.getItems()]}function i0(t){const e=Uo(t);return RR.getItem(e)}function yY(t){return!!i0(t)}function ze(t,e,n){[t,e,n]=SY(t,e,n),i0(t)===void 0&&bY(t,e,n)}function bY(t,e,n){const r=Uo(t);if(RR.hasItem(r))throw new Error(r0(r));n===void 0?nD.addItem(r):tD.addItem(n,r),RR.addItem(r,e)}function SY(t,e,n){return typeof t=="function"&&(e=t,t=e.PLUGIN_KEY,n=e.PLUGIN_PRIORITY),[t,e,n]}const{register:RY,getItem:EY,hasItem:iD,getNames:kle,getValues:Lle}=qo("renderers");function ER(t){if(typeof t=="function")return t;if(!iD(t))throw Error(`No registered renderer found under "${t}" name`);return EY(t)}function to(t,e){typeof t!="string"&&(e=t,t=e.RENDERER_TYPE),RY(t,e)}const{register:TY,getItem:_Y,hasItem:oD,getNames:$le,getValues:Fle}=qo("validators");function MY(t){if(typeof t=="function")return t;if(!oD(t))throw Error(`No registered validator found under "${t}" name`);return _Y(t)}function xc(t,e){typeof t!="string"&&(e=t,t=e.VALIDATOR_TYPE),TY(t,e)}var lO={},uO;function IY(){if(uO)return lO;uO=1;var t=dt(),e=lh(),n=ch(),r=Hf(),i=_w();return t({target:"Array",proto:!0},{at:function(s){var a=e(this),l=n(a),u=r(s),c=u>=0?u:l+u;return c<0||c>=l?void 0:a[c]}}),i("at"),lO}IY();var cO={},hO;function PY(){if(hO)return cO;hO=1;var t=dt(),e=qt(),n=Pf(),r=Hf(),i=uw(),o=Cn(),s=e("".charAt),a=o(function(){return"𠮷".at(-2)!=="\uD842"});return t({target:"String",proto:!0,forced:a},{at:function(u){var c=i(n(this)),h=c.length,d=r(u),f=d>=0?d:h+d;return f<0||f>=h?void 0:s(c,f)}}),cO}PY();function kh(t,e,n){return(e=OY(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function OY(t){var e=xY(t,"string");return typeof e=="symbol"?e:e+""}function xY(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}class AY{constructor(){kh(this,"count",0),kh(this,"startColumn",null),kh(this,"endColumn",null),kh(this,"startPosition",null),kh(this,"isVisibleInTrimmingContainer",!1)}initialize(){}process(e,n){const{totalCalculatedWidth:r,zeroBasedScrollOffset:i,viewportWidth:o,columnWidth:s}=n,a=i>0?o+1:o;r>=i&&r+s<=i+a&&((this.startColumn===null||this.startColumn===void 0)&&(this.startColumn=e),this.endColumn=e)}finalize(e){var n;const{scrollOffset:r,viewportWidth:i,inlineStartOffset:o,zeroBasedScrollOffset:s,totalColumns:a,needReverse:l,startPositions:u,columnWidth:c}=e;if(this.endColumn===a-1&&l)for(this.startColumn=this.endColumn;this.startColumn>0;){const g=u[this.endColumn]+c-u[this.startColumn-1];if(g<=i&&(this.startColumn-=1),g>=i)break}this.startPosition=(n=u[this.startColumn])!==null&&n!==void 0?n:null;const h=s>0?i+1:i,d=r+i-h,f=this.startColumn===null?0:e.getColumnWidth(this.startColumn);d<-1*o||r>u.at(-1)||-1*r-i>-1*f?this.isVisibleInTrimmingContainer=!1:this.isVisibleInTrimmingContainer=!0,a<this.endColumn&&(this.endColumn=a-1),this.startColumn!==null&&(this.count=this.endColumn-this.startColumn+1)}}function Lh(t,e,n){return(e=HY(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function HY(t){var e=NY(t,"string");return typeof e=="symbol"?e:e+""}function NY(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}class DY{constructor(){Lh(this,"count",0),Lh(this,"startRow",null),Lh(this,"endRow",null),Lh(this,"startPosition",null),Lh(this,"isVisibleInTrimmingContainer",!1)}initialize(){}process(e,n){const{totalCalculatedHeight:r,zeroBasedScrollOffset:i,innerViewportHeight:o,rowHeight:s}=n;r>=i&&r+s<=o&&(this.startRow===null&&(this.startRow=e),this.endRow=e)}finalize(e){var n;const{scrollOffset:r,viewportHeight:i,horizontalScrollbarHeight:o,totalRows:s,needReverse:a,startPositions:l,rowHeight:u}=e;if(this.endRow===s-1&&a)for(this.startRow=this.endRow;this.startRow>0;){const d=l[this.endRow]+u-l[this.startRow-1];if(d<=i-o&&(this.startRow-=1),d>=i-o)break}this.startPosition=(n=l[this.startRow])!==null&&n!==void 0?n:null;const c=r+i-o,h=this.startRow===null?0:e.getRowHeight(this.startRow);c<h||r>l.at(-1)?this.isVisibleInTrimmingContainer=!1:this.isVisibleInTrimmingContainer=!0,s<this.endRow&&(this.endRow=s-1),this.startRow!==null&&(this.count=this.endRow-this.startRow+1)}}function $h(t,e,n){return(e=kY(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function kY(t){var e=LY(t,"string");return typeof e=="symbol"?e:e+""}function LY(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}class sD{constructor(){$h(this,"count",0),$h(this,"startColumn",null),$h(this,"endColumn",null),$h(this,"startPosition",null),$h(this,"isVisibleInTrimmingContainer",!1)}initialize(){}process(e,n){const{totalCalculatedWidth:r,zeroBasedScrollOffset:i,viewportWidth:o}=n;r<=i&&(this.startColumn=e);const s=i>0?o+1:o;r>=i&&r<=i+s&&(this.startColumn===null||this.startColumn===void 0)&&(this.startColumn=e),this.endColumn=e}finalize(e){var n;const{scrollOffset:r,viewportWidth:i,inlineStartOffset:o,zeroBasedScrollOffset:s,totalColumns:a,needReverse:l,startPositions:u,columnWidth:c}=e;if(this.endColumn===a-1&&l)for(this.startColumn=this.endColumn;this.startColumn>0;){const f=u[this.endColumn]+c-u[this.startColumn-1];if(this.startColumn-=1,f>i)break}this.startPosition=(n=u[this.startColumn])!==null&&n!==void 0?n:null;const h=s>0?i+1:i;r+i-h<-1*o||r>u.at(-1)+c||-1*r-i>0?this.isVisibleInTrimmingContainer=!1:this.isVisibleInTrimmingContainer=!0,a<this.endColumn&&(this.endColumn=a-1),this.startColumn!==null&&(this.count=this.endColumn-this.startColumn+1)}}function Fh(t,e,n){return(e=$Y(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function $Y(t){var e=FY(t,"string");return typeof e=="symbol"?e:e+""}function FY(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}class aD{constructor(){Fh(this,"count",0),Fh(this,"startRow",null),Fh(this,"endRow",null),Fh(this,"startPosition",null),Fh(this,"isVisibleInTrimmingContainer",!1)}initialize(){}process(e,n){const{totalCalculatedHeight:r,zeroBasedScrollOffset:i,innerViewportHeight:o}=n;r<=i&&(this.startRow=e),r>=i&&r<=o&&this.startRow===null&&(this.startRow=e),this.endRow=e}finalize(e){var n;const{scrollOffset:r,viewportHeight:i,horizontalScrollbarHeight:o,totalRows:s,needReverse:a,startPositions:l,rowHeight:u}=e;if(this.endRow===s-1&&a)for(this.startRow=this.endRow;this.startRow>0;){const h=l[this.endRow]+u-l[this.startRow-1];if(this.startRow-=1,h>=i-o)break}this.startPosition=(n=l[this.startRow])!==null&&n!==void 0?n:null,r+i-o<0||r>l.at(-1)+u?this.isVisibleInTrimmingContainer=!1:this.isVisibleInTrimmingContainer=!0,s<this.endRow&&(this.endRow=s-1),this.startRow!==null&&(this.count=this.endRow-this.startRow+1)}}function Vh(t,e,n){return(e=VY(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function VY(t){var e=WY(t,"string");return typeof e=="symbol"?e:e+""}function WY(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}class BY{constructor(){Vh(this,"count",0),Vh(this,"startColumn",0),Vh(this,"endColumn",0),Vh(this,"startPosition",0),Vh(this,"isVisibleInTrimmingContainer",!0)}initialize(e){let{totalColumns:n}=e;this.count=n,this.endColumn=this.count-1}process(){}finalize(){}}function Wh(t,e,n){return(e=jY(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function jY(t){var e=UY(t,"string");return typeof e=="symbol"?e:e+""}function UY(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}class zY{constructor(){Wh(this,"count",0),Wh(this,"startRow",0),Wh(this,"endRow",0),Wh(this,"startPosition",0),Wh(this,"isVisibleInTrimmingContainer",!0)}initialize(e){let{totalRows:n}=e;this.count=n,this.endRow=this.count-1}process(){}finalize(){}}function dO(t,e,n){return(e=YY(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function YY(t){var e=GY(t,"string");return typeof e=="symbol"?e:e+""}function GY(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}class KY extends sD{constructor(){super(...arguments),dO(this,"columnStartOffset",0),dO(this,"columnEndOffset",0)}finalize(e){var n;super.finalize(e);const{overrideFn:r,totalColumns:i,startPositions:o}=e;if(this.startColumn!==null&&typeof r=="function"){const s=this.startColumn,a=this.endColumn;r(this),this.columnStartOffset=s-this.startColumn,this.columnEndOffset=this.endColumn-a}this.startColumn<0&&(this.startColumn=0),this.startPosition=(n=o[this.startColumn])!==null&&n!==void 0?n:null,i<this.endColumn&&(this.endColumn=i-1),this.startColumn!==null&&(this.count=this.endColumn-this.startColumn+1)}}function fO(t,e,n){return(e=qY(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function qY(t){var e=XY(t,"string");return typeof e=="symbol"?e:e+""}function XY(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}class ZY extends aD{constructor(){super(...arguments),fO(this,"rowStartOffset",0),fO(this,"rowEndOffset",0)}finalize(e){var n;super.finalize(e);const{overrideFn:r,totalRows:i,startPositions:o}=e;if(this.startRow!==null&&typeof r=="function"){const s=this.startRow,a=this.endRow;r(this),this.rowStartOffset=s-this.startRow,this.rowEndOffset=this.endRow-a}this.startRow<0&&(this.startRow=0),this.startPosition=(n=o[this.startRow])!==null&&n!==void 0?n:null,i<this.endRow&&(this.endRow=i-1),this.startRow!==null&&(this.count=this.endRow-this.startRow+1)}}function gO(t,e,n){return(e=QY(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function QY(t){var e=JY(t,"string");return typeof e=="symbol"?e:e+""}function JY(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}class lD{constructor(e){gO(this,"calculationTypes",[]),gO(this,"calculationResults",new Map),this.calculationTypes=e}_initialize(e){this.calculationTypes.forEach(n=>{let[r,i]=n;this.calculationResults.set(r,i),i.initialize(e)})}_process(e,n){this.calculationTypes.forEach(r=>{let[,i]=r;return i.process(e,n)})}_finalize(e){this.calculationTypes.forEach(n=>{let[,r]=n;return r.finalize(e)})}getResultsFor(e){return this.calculationResults.get(e)}}function bo(t,e,n){return(e=eG(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function eG(t){var e=tG(t,"string");return typeof e=="symbol"?e:e+""}function tG(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}const eh=50;class nG extends lD{constructor(e){let{calculationTypes:n,viewportWidth:r,scrollOffset:i,totalColumns:o,columnWidthFn:s,overrideFn:a,inlineStartOffset:l}=e;super(n),bo(this,"viewportWidth",0),bo(this,"scrollOffset",0),bo(this,"zeroBasedScrollOffset",0),bo(this,"totalColumns",0),bo(this,"columnWidthFn",null),bo(this,"columnWidth",0),bo(this,"overrideFn",null),bo(this,"inlineStartOffset",0),bo(this,"totalCalculatedWidth",0),bo(this,"startPositions",[]),bo(this,"needReverse",!0),this.viewportWidth=r,this.scrollOffset=i,this.zeroBasedScrollOffset=Math.max(i,0),this.totalColumns=o,this.columnWidthFn=s,this.overrideFn=a,this.inlineStartOffset=l,this.calculate()}calculate(){this._initialize(this);for(let e=0;e<this.totalColumns;e++)if(this.columnWidth=this.getColumnWidth(e),this._process(e,this),this.startPositions.push(this.totalCalculatedWidth),this.totalCalculatedWidth+=this.columnWidth,this.totalCalculatedWidth>=this.zeroBasedScrollOffset+this.viewportWidth){this.needReverse=!1;break}this._finalize(this)}getColumnWidth(e){const n=this.columnWidthFn(e);return isNaN(n)?eh:n}}function Xi(t,e,n){return(e=rG(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function rG(t){var e=iG(t,"string");return typeof e=="symbol"?e:e+""}function iG(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}class oG extends lD{constructor(e){let{calculationTypes:n,viewportHeight:r,scrollOffset:i,totalRows:o,defaultRowHeight:s,rowHeightFn:a,overrideFn:l,horizontalScrollbarHeight:u}=e;super(n),Xi(this,"viewportHeight",0),Xi(this,"scrollOffset",0),Xi(this,"zeroBasedScrollOffset",0),Xi(this,"totalRows",0),Xi(this,"rowHeightFn",null),Xi(this,"rowHeight",0),Xi(this,"overrideFn",null),Xi(this,"horizontalScrollbarHeight",0),Xi(this,"innerViewportHeight",0),Xi(this,"totalCalculatedHeight",0),Xi(this,"startPositions",[]),Xi(this,"needReverse",!0),this.defaultHeight=s,this.viewportHeight=r,this.scrollOffset=i,this.zeroBasedScrollOffset=Math.max(i,0),this.totalRows=o,this.rowHeightFn=a,this.overrideFn=l,this.horizontalScrollbarHeight=u??0,this.innerViewportHeight=this.zeroBasedScrollOffset+this.viewportHeight-this.horizontalScrollbarHeight,this.calculate()}calculate(){this._initialize(this);for(let e=0;e<this.totalRows;e++)if(this.rowHeight=this.getRowHeight(e),this._process(e,this),this.startPositions.push(this.totalCalculatedHeight),this.totalCalculatedHeight+=this.rowHeight,this.totalCalculatedHeight>=this.innerViewportHeight){this.needReverse=!1;break}this._finalize(this)}getRowHeight(e){const n=this.rowHeightFn(e);return isNaN(n)?this.defaultHeight:n}}function sG(t,e,n){aG(t,e),e.set(t,n)}function aG(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function mO(t,e,n){return(e=lG(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function lG(t){var e=uG(t,"string");return typeof e=="symbol"?e:e+""}function uG(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Gu(t,e){return t.get(uD(t,e))}function pO(t,e,n){return t.set(uD(t,e),n),n}function uD(t,e,n){if(typeof t=="function"?t===e:t.has(e))return arguments.length<3?e:n;throw new TypeError("Private element is not present on this object")}var Ls=new WeakMap;class Iu{constructor(e,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;mO(this,"row",null),mO(this,"col",null),sG(this,Ls,!1),pO(Ls,this,r),typeof e<"u"&&typeof n<"u"&&(this.row=e,this.col=n)}isValid(e){const{countRows:n,countCols:r,countRowHeaders:i,countColHeaders:o}={countRows:0,countCols:0,countRowHeaders:0,countColHeaders:0,...e};return!(!Number.isInteger(this.row)||!Number.isInteger(this.col)||this.row<-o||this.col<-i||this.row>=n||this.col>=r)}isEqual(e){return e===this?!0:this.row===e.row&&this.col===e.col}isHeader(){return!this.isCell()}isCell(){return this.row>=0&&this.col>=0}isRtl(){return Gu(Ls,this)}isSouthEastOf(e){return this.row>=e.row&&(Gu(Ls,this)?this.col<=e.col:this.col>=e.col)}isNorthWestOf(e){return this.row<=e.row&&(Gu(Ls,this)?this.col>=e.col:this.col<=e.col)}isSouthWestOf(e){return this.row>=e.row&&(Gu(Ls,this)?this.col>=e.col:this.col<=e.col)}isNorthEastOf(e){return this.row<=e.row&&(Gu(Ls,this)?this.col<=e.col:this.col>=e.col)}normalize(){return this.row=this.row===null?this.row:Math.max(this.row,0),this.col=this.col===null?this.col:Math.max(this.col,0),this}assign(e){return Number.isInteger(e==null?void 0:e.row)&&(this.row=e.row),Number.isInteger(e==null?void 0:e.col)&&(this.col=e.col),e instanceof Iu&&pO(Ls,this,e.isRtl()),this}clone(){return new Iu(this.row,this.col,Gu(Ls,this))}toObject(){return{row:this.row,col:this.col}}}function cG(t,e,n){hG(t,e),e.set(t,n)}function hG(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function eb(t,e,n){return(e=dG(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function dG(t){var e=fG(t,"string");return typeof e=="symbol"?e:e+""}function fG(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Zi(t,e){return t.get(cD(t,e))}function gG(t,e,n){return t.set(cD(t,e),n),n}function cD(t,e,n){if(typeof t=="function"?t===e:t.has(e))return arguments.length<3?e:n;throw new TypeError("Private element is not present on this object")}var er=new WeakMap;class jf{constructor(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;eb(this,"highlight",null),eb(this,"from",null),eb(this,"to",null),cG(this,er,!1),this.highlight=e.clone(),this.from=n.clone(),this.to=r.clone(),gG(er,this,i)}setHighlight(e){return this.highlight=e.clone(),this}setFrom(e){return this.from=e.clone(),this}setTo(e){return this.to=e.clone(),this}normalize(){return this.highlight.normalize(),this.from.normalize(),this.to.normalize(),this}isValid(e){return this.from.isValid(e)&&this.to.isValid(e)}isSingle(){return this.isSingleCell()||this.isSingleHeader()}isSingleCell(){return this.from.row>=0&&this.from.row===this.to.row&&this.from.col>=0&&this.from.col===this.to.col}isSingleHeader(){return(this.from.row<0||this.from.col<0)&&this.from.row===this.to.row&&this.from.col===this.to.col}isHeader(){return this.from.isHeader()&&this.to.isHeader()?!0:this.from.col<0&&this.to.col<0||this.from.row<0&&this.to.row<0}containsHeaders(){return this.from.isHeader()||this.to.isHeader()}getOuterHeight(){return Math.max(this.from.row,this.to.row)-Math.min(this.from.row,this.to.row)+1}getOuterWidth(){return Math.max(this.from.col,this.to.col)-Math.min(this.from.col,this.to.col)+1}getHeight(){if(this.from.row<0&&this.to.row<0)return 0;const e=Math.max(this.from.row,0),n=Math.max(this.to.row,0);return Math.max(e,n)-Math.min(e,n)+1}getWidth(){if(this.from.col<0&&this.to.col<0)return 0;const e=Math.max(this.from.col,0),n=Math.max(this.to.col,0);return Math.max(e,n)-Math.min(e,n)+1}getCellsCount(){return this.getWidth()*this.getHeight()}includes(e){const{row:n,col:r}=e,i=this.getOuterTopStartCorner(),o=this.getOuterBottomEndCorner();return i.row<=n&&o.row>=n&&i.col<=r&&o.col>=r}includesRange(e){return this.includes(e.getOuterTopStartCorner())&&this.includes(e.getOuterBottomEndCorner())}isEqual(e){return Math.min(this.from.row,this.to.row)===Math.min(e.from.row,e.to.row)&&Math.max(this.from.row,this.to.row)===Math.max(e.from.row,e.to.row)&&Math.min(this.from.col,this.to.col)===Math.min(e.from.col,e.to.col)&&Math.max(this.from.col,this.to.col)===Math.max(e.from.col,e.to.col)}overlaps(e){return e.isSouthEastOf(this.getOuterTopLeftCorner())&&e.isNorthWestOf(this.getOuterBottomRightCorner())}isSouthEastOf(e){return this.getOuterTopLeftCorner().isSouthEastOf(e)||this.getOuterBottomRightCorner().isSouthEastOf(e)}isNorthWestOf(e){return this.getOuterTopLeftCorner().isNorthWestOf(e)||this.getOuterBottomRightCorner().isNorthWestOf(e)}isOverlappingHorizontally(e){return this.getOuterTopEndCorner().col>=e.getOuterTopStartCorner().col&&this.getOuterTopEndCorner().col<=e.getOuterTopEndCorner().col||this.getOuterTopStartCorner().col<=e.getOuterTopEndCorner().col&&this.getOuterTopStartCorner().col>=e.getOuterTopStartCorner().col}isOverlappingVertically(e){return this.getOuterBottomStartCorner().row>=e.getOuterTopRightCorner().row&&this.getOuterBottomStartCorner().row<=e.getOuterBottomStartCorner().row||this.getOuterTopEndCorner().row<=e.getOuterBottomStartCorner().row&&this.getOuterTopEndCorner().row>=e.getOuterTopRightCorner().row}expand(e){const n=this.getOuterTopStartCorner(),r=this.getOuterBottomEndCorner();return e.row<n.row||e.col<n.col||e.row>r.row||e.col>r.col?(this.from=this._createCellCoords(Math.min(n.row,e.row),Math.min(n.col,e.col)),this.to=this._createCellCoords(Math.max(r.row,e.row),Math.max(r.col,e.col)),!0):!1}expandByRange(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(this.includesRange(e)||!this.overlaps(e))return!1;const r=this.getOuterTopStartCorner(),i=this.getOuterBottomEndCorner(),o=this.getDirection(),s=e.getOuterTopStartCorner(),a=e.getOuterBottomEndCorner(),l=Math.min(r.row,s.row),u=Math.min(r.col,s.col),c=Math.max(i.row,a.row),h=Math.max(i.col,a.col),d=this._createCellCoords(l,u),f=this._createCellCoords(c,h);return this.from=d,this.to=f,this.setDirection(o),n&&(this.highlight.row===this.getOuterBottomRightCorner().row&&this.getVerticalDirection()==="N-S"&&this.flipDirectionVertically(),this.highlight.col===this.getOuterTopRightCorner().col&&this.getHorizontalDirection()==="W-E"&&this.flipDirectionHorizontally()),!0}getDirection(){if(this.from.isNorthWestOf(this.to))return"NW-SE";if(this.from.isNorthEastOf(this.to))return"NE-SW";if(this.from.isSouthEastOf(this.to))return"SE-NW";if(this.from.isSouthWestOf(this.to))return"SW-NE"}setDirection(e){switch(e){case"NW-SE":[this.from,this.to]=[this.getOuterTopLeftCorner(),this.getOuterBottomRightCorner()];break;case"NE-SW":[this.from,this.to]=[this.getOuterTopRightCorner(),this.getOuterBottomLeftCorner()];break;case"SE-NW":[this.from,this.to]=[this.getOuterBottomRightCorner(),this.getOuterTopLeftCorner()];break;case"SW-NE":[this.from,this.to]=[this.getOuterBottomLeftCorner(),this.getOuterTopRightCorner()];break}}getVerticalDirection(){return["NE-SW","NW-SE"].indexOf(this.getDirection())>-1?"N-S":"S-N"}getHorizontalDirection(){return["NW-SE","SW-NE"].indexOf(this.getDirection())>-1?"W-E":"E-W"}flipDirectionVertically(){switch(this.getDirection()){case"NW-SE":this.setDirection("SW-NE");break;case"NE-SW":this.setDirection("SE-NW");break;case"SE-NW":this.setDirection("NE-SW");break;case"SW-NE":this.setDirection("NW-SE");break}}flipDirectionHorizontally(){switch(this.getDirection()){case"NW-SE":this.setDirection("NE-SW");break;case"NE-SW":this.setDirection("NW-SE");break;case"SE-NW":this.setDirection("SW-NE");break;case"SW-NE":this.setDirection("SE-NW");break}}getTopStartCorner(){return this._createCellCoords(Math.min(this.from.row,this.to.row),Math.min(this.from.col,this.to.col)).normalize()}getTopLeftCorner(){return Zi(er,this)?this.getTopEndCorner():this.getTopStartCorner()}getBottomEndCorner(){return this._createCellCoords(Math.max(this.from.row,this.to.row),Math.max(this.from.col,this.to.col)).normalize()}getBottomRightCorner(){return Zi(er,this)?this.getBottomStartCorner():this.getBottomEndCorner()}getTopEndCorner(){return this._createCellCoords(Math.min(this.from.row,this.to.row),Math.max(this.from.col,this.to.col)).normalize()}getTopRightCorner(){return Zi(er,this)?this.getTopStartCorner():this.getTopEndCorner()}getBottomStartCorner(){return this._createCellCoords(Math.max(this.from.row,this.to.row),Math.min(this.from.col,this.to.col)).normalize()}getBottomLeftCorner(){return Zi(er,this)?this.getBottomEndCorner():this.getBottomStartCorner()}getOuterTopStartCorner(){return this._createCellCoords(Math.min(this.from.row,this.to.row),Math.min(this.from.col,this.to.col))}getOuterTopLeftCorner(){return Zi(er,this)?this.getOuterTopEndCorner():this.getOuterTopStartCorner()}getOuterBottomEndCorner(){return this._createCellCoords(Math.max(this.from.row,this.to.row),Math.max(this.from.col,this.to.col))}getOuterBottomRightCorner(){return Zi(er,this)?this.getOuterBottomStartCorner():this.getOuterBottomEndCorner()}getOuterTopEndCorner(){return this._createCellCoords(Math.min(this.from.row,this.to.row),Math.max(this.from.col,this.to.col))}getOuterTopRightCorner(){return Zi(er,this)?this.getOuterTopStartCorner():this.getOuterTopEndCorner()}getOuterBottomStartCorner(){return this._createCellCoords(Math.max(this.from.row,this.to.row),Math.min(this.from.col,this.to.col))}getOuterBottomLeftCorner(){return Zi(er,this)?this.getOuterBottomEndCorner():this.getOuterBottomStartCorner()}isCorner(e){return e.isEqual(this.getOuterTopLeftCorner())||e.isEqual(this.getOuterTopRightCorner())||e.isEqual(this.getOuterBottomLeftCorner())||e.isEqual(this.getOuterBottomRightCorner())}getOppositeCorner(e){if(!(e instanceof Iu))return!1;if(e.isEqual(this.getOuterBottomEndCorner()))return this.getOuterTopStartCorner();if(e.isEqual(this.getOuterTopStartCorner()))return this.getOuterBottomEndCorner();if(e.isEqual(this.getOuterTopEndCorner()))return this.getOuterBottomStartCorner();if(e.isEqual(this.getOuterBottomStartCorner()))return this.getOuterTopEndCorner()}getBordersSharedWith(e){if(!this.includesRange(e))return[];const n={top:Math.min(this.from.row,this.to.row),bottom:Math.max(this.from.row,this.to.row),left:Math.min(this.from.col,this.to.col),right:Math.max(this.from.col,this.to.col)},r={top:Math.min(e.from.row,e.to.row),bottom:Math.max(e.from.row,e.to.row),left:Math.min(e.from.col,e.to.col),right:Math.max(e.from.col,e.to.col)},i=[];return n.top===r.top&&i.push("top"),n.right===r.right&&i.push(Zi(er,this)?"left":"right"),n.bottom===r.bottom&&i.push("bottom"),n.left===r.left&&i.push(Zi(er,this)?"right":"left"),i}getInner(){const e=this.getOuterTopStartCorner(),n=this.getOuterBottomEndCorner(),r=[];for(let i=e.row;i<=n.row;i++)for(let o=e.col;o<=n.col;o++)!(this.from.row===i&&this.from.col===o)&&!(this.to.row===i&&this.to.col===o)&&r.push(this._createCellCoords(i,o));return r}getAll(){const e=this.getOuterTopStartCorner(),n=this.getOuterBottomEndCorner(),r=[];for(let i=e.row;i<=n.row;i++)for(let o=e.col;o<=n.col;o++)e.row===i&&e.col===o?r.push(e):n.row===i&&n.col===o?r.push(n):r.push(this._createCellCoords(i,o));return r}forAll(e){const n=this.getOuterTopStartCorner(),r=this.getOuterBottomEndCorner();for(let i=n.row;i<=r.row;i++)for(let o=n.col;o<=r.col;o++)if(e(i,o)===!1)return}clone(){return new jf(this.highlight,this.from,this.to,Zi(er,this))}toObject(){return{from:this.from.toObject(),to:this.to.toObject()}}_createCellCoords(e,n){return new Iu(e,n,Zi(er,this))}}function Qo(t,e,n){mG(t,e),e.set(t,n)}function mG(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function fe(t,e){return t.get(hD(t,e))}function Oa(t,e,n){return t.set(hD(t,e),n),n}function hD(t,e,n){if(typeof t=="function"?t===e:t.has(e))return arguments.length<3?e:n;throw new TypeError("Private element is not present on this object")}var Qi=new WeakMap,tb=new WeakMap,mn=new WeakMap,Ku=new WeakMap,gg=new WeakMap,So=new WeakMap,nb=new WeakMap,Bh=new WeakMap,Tl=new WeakMap,Jo=new WeakMap;let dD=class{constructor(e,n,r,i,o,s){let a=arguments.length>6&&arguments[6]!==void 0?arguments[6]:null;Qo(this,Qi,void 0),Qo(this,tb,void 0),Qo(this,mn,void 0),Qo(this,Ku,void 0),Qo(this,gg,void 0),Qo(this,So,void 0),Qo(this,nb,void 0),Qo(this,Bh,void 0),Qo(this,Tl,[null,null]),Qo(this,Jo,[null,null]),Oa(Qi,this,r),Oa(tb,this,n),Oa(mn,this,o),Oa(Ku,this,s),Oa(gg,this,a),Oa(So,this,i),Oa(nb,this,e),this.registerEvents()}registerEvents(){fe(So,this).addEventListener(fe(mn,this).holder,"contextmenu",r=>this.onContextMenu(r)),fe(So,this).addEventListener(fe(mn,this).TABLE,"mouseover",r=>this.onMouseOver(r)),fe(So,this).addEventListener(fe(mn,this).TABLE,"mouseout",r=>this.onMouseOut(r));const e=()=>{fe(So,this).addEventListener(fe(mn,this).holder,"touchstart",r=>this.onTouchStart(r)),fe(So,this).addEventListener(fe(mn,this).holder,"touchend",r=>this.onTouchEnd(r)),this.momentumScrolling||(this.momentumScrolling={}),fe(So,this).addEventListener(fe(mn,this).holder,"scroll",()=>{clearTimeout(this.momentumScrolling._timeout),this.momentumScrolling.ongoing||fe(Qi,this).getSetting("onBeforeTouchScroll"),this.momentumScrolling.ongoing=!0,this.momentumScrolling._timeout=setTimeout(()=>{this.touchApplied||(this.momentumScrolling.ongoing=!1,fe(Qi,this).getSetting("onAfterMomentumScroll"))},200)})},n=()=>{fe(So,this).addEventListener(fe(mn,this).holder,"mouseup",r=>this.onMouseUp(r)),fe(So,this).addEventListener(fe(mn,this).holder,"mousedown",r=>this.onMouseDown(r))};ua()?e():(jN()&&e(),n())}selectedCellWasTouched(e){const r=this.parentCell(e).coords;if(fe(Bh,this)&&r){const[i,o]=[r.row,fe(Bh,this).from.row],[s,a]=[r.col,fe(Bh,this).from.col];return i===o&&s===a}return!1}parentCell(e){const n={},r=fe(mn,this).TABLE,i=lg(e,["TD","TH"],r);return i?(n.coords=fe(mn,this).getCoords(i),n.TD=i):ve(e,"wtBorder")&&ve(e,"current")?(n.coords=fe(Ku,this).getFocusSelection().cellRange.highlight,n.TD=fe(mn,this).getCell(n.coords)):ve(e,"wtBorder")&&ve(e,"area")&&fe(Ku,this).getAreaSelection().cellRange&&(n.coords=fe(Ku,this).getAreaSelection().cellRange.to,n.TD=fe(mn,this).getCell(n.coords)),n}onMouseDown(e){const n=fe(tb,this).rootDocument.activeElement,r=BN(ZU,e.target),i=e.target;if(!["TD","TH"].includes(n.nodeName)&&(i===n||r(0)===n||r(1)===n))return;const o=this.parentCell(i);ve(i,"corner")?fe(Qi,this).getSetting("onCellCornerMouseDown",e,i):o.TD&&fe(Qi,this).has("onCellMouseDown")&&this.callListener("onCellMouseDown",e,o.coords,o.TD),(e.button===0||this.touchApplied)&&o.TD&&(fe(Jo,this)[0]=o.TD,clearTimeout(fe(Tl,this)[0]),fe(Tl,this)[0]=setTimeout(()=>{fe(Jo,this)[0]=null},1e3))}onContextMenu(e){if(fe(Qi,this).has("onCellContextMenu")){const n=this.parentCell(e.target);n.TD&&this.callListener("onCellContextMenu",e,n.coords,n.TD)}}onMouseOver(e){if(!fe(Qi,this).has("onCellMouseOver"))return;const n=fe(mn,this).TABLE,r=lg(e.target,["TD","TH"],n),i=fe(gg,this)||this;r&&r!==i.lastMouseOver&&Su(r,n)&&(i.lastMouseOver=r,this.callListener("onCellMouseOver",e,fe(mn,this).getCoords(r),r))}onMouseOut(e){if(!fe(Qi,this).has("onCellMouseOut"))return;const n=fe(mn,this).TABLE,r=lg(e.target,["TD","TH"],n),i=lg(e.relatedTarget,["TD","TH"],n),o=fe(gg,this)||this;r&&r!==i&&Su(r,n)&&(this.callListener("onCellMouseOut",e,fe(mn,this).getCoords(r),r),i===null&&(o.lastMouseOver=null))}onMouseUp(e){const n=this.parentCell(e.target);n.TD&&fe(Qi,this).has("onCellMouseUp")&&this.callListener("onCellMouseUp",e,n.coords,n.TD),!(e.button!==0&&!this.touchApplied)&&(n.TD===fe(Jo,this)[0]&&n.TD===fe(Jo,this)[1]?(ve(e.target,"corner")?this.callListener("onCellCornerDblClick",e,n.coords,n.TD):this.callListener("onCellDblClick",e,n.coords,n.TD),fe(Jo,this)[0]=null,fe(Jo,this)[1]=null):n.TD===fe(Jo,this)[0]&&(fe(Jo,this)[1]=n.TD,clearTimeout(fe(Tl,this)[1]),fe(Tl,this)[1]=setTimeout(()=>{fe(Jo,this)[1]=null},500)))}onTouchStart(e){Oa(Bh,this,fe(Ku,this).getFocusSelection().cellRange),this.touchApplied=!0,this.onMouseDown(e)}onTouchEnd(e){var n;const r=e.target,i=(n=this.parentCell(r))===null||n===void 0?void 0:n.coords,o=ae(i)&&i.row>=0&&i.col>=0;if(e.cancelable&&o&&fe(Qi,this).getSetting("isDataViewInstance")){const a=["A","BUTTON","INPUT"];zN()&&(vz()||Cz())&&this.selectedCellWasTouched(r)&&!a.includes(r.tagName)?e.preventDefault():this.selectedCellWasTouched(r)||e.preventDefault()}this.onMouseUp(e),this.touchApplied=!1}callListener(e,n,r,i){const o=fe(Qi,this).getSettingPure(e);o&&o(n,r,i,fe(nb,this).call(this))}destroy(){clearTimeout(fe(Tl,this)[0]),clearTimeout(fe(Tl,this)[1]),fe(So,this).destroy()}};function rb(t,e,n){return(e=pG(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function pG(t){var e=wG(t,"string");return typeof e=="symbol"?e:e+""}function wG(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}class vG{constructor(e,n,r){rb(this,"offset",void 0),rb(this,"total",void 0),rb(this,"countTH",void 0),this.offset=e,this.total=n,this.countTH=r}offsetted(e){return e+this.offset}unOffsetted(e){return e-this.offset}renderedToSource(e){return this.offsetted(e)}sourceToRendered(e){return this.unOffsetted(e)}offsettedTH(e){return e-this.countTH}unOffsettedTH(e){return e+this.countTH}visibleRowHeadedColumnToSourceColumn(e){return this.renderedToSource(this.offsettedTH(e))}sourceColumnToVisibleRowHeadedColumn(e){return this.unOffsettedTH(this.sourceToRendered(e))}}function ib(t,e,n){return(e=CG(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function CG(t){var e=yG(t,"string");return typeof e=="symbol"?e:e+""}function yG(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}class bG{constructor(e,n,r){ib(this,"offset",void 0),ib(this,"total",void 0),ib(this,"countTH",void 0),this.offset=e,this.total=n,this.countTH=r}offsetted(e){return e+this.offset}unOffsetted(e){return e-this.offset}renderedToSource(e){return this.offsetted(e)}sourceToRendered(e){return this.unOffsetted(e)}offsettedTH(e){return e-this.countTH}unOffsettedTH(e){return e+this.countTH}visibleColHeadedRowToSourceRow(e){return this.renderedToSource(this.offsettedTH(e))}sourceRowToVisibleColHeadedRow(e){return this.unOffsettedTH(this.sourceToRendered(e))}}function mg(t,e,n){return(e=SG(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function SG(t){var e=RG(t,"string");return typeof e=="symbol"?e:e+""}function RG(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}class EG{constructor(){mg(this,"currentSize",0),mg(this,"nextSize",0),mg(this,"currentOffset",0),mg(this,"nextOffset",0)}setSize(e){this.currentSize=this.nextSize,this.nextSize=e}setOffset(e){this.currentOffset=this.nextOffset,this.nextOffset=e}}const TG=0,wO=1,TR=2;function ob(t,e,n){return(e=_G(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function _G(t){var e=MG(t,"string");return typeof e=="symbol"?e:e+""}function MG(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}class IG{constructor(){ob(this,"size",new EG),ob(this,"workingSpace",TG),ob(this,"sharedSize",null)}setSize(e){this.size.setSize(e)}setOffset(e){this.size.setOffset(e)}getViewSize(){return this.size}isShared(){return this.sharedSize!==null}isPlaceOn(e){return this.workingSpace===e}append(e){this.workingSpace=wO,e.workingSpace=TR,this.sharedSize=e.getViewSize()}prepend(e){this.workingSpace=TR,e.workingSpace=wO,this.sharedSize=e.getViewSize()}}var vO={},sb,CO;function PG(){if(CO)return sb;CO=1;var t=lw(),e=TypeError;return sb=function(n,r){if(!delete n[r])throw new e("Cannot delete property "+t(r)+" of "+t(n))},sb}var yO;function OG(){if(yO)return vO;yO=1;var t=dt(),e=lh(),n=ch(),r=d1(),i=PG(),o=f1(),s=[].unshift(0)!==1,a=function(){try{Object.defineProperty([],"length",{writable:!1}).unshift()}catch(u){return u instanceof TypeError}},l=s||!a();return t({target:"Array",proto:!0,arity:1,forced:l},{unshift:function(c){var h=e(this),d=n(h),f=arguments.length;if(f){o(d+f);for(var g=d;g--;){var C=g+f;g in h?h[C]=h[g]:i(h,C)}for(var y=0;y<f;y++)h[y]=arguments[y]}return r(h,d+f)}}),vO}OG();function xG(t,e,n){return(e=AG(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function AG(t){var e=HG(t,"string");return typeof e=="symbol"?e:e+""}function HG(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}class bO{constructor(e,n){xG(this,"order",[]),this.order=[...Array(n).keys()].map(r=>e+r)}get length(){return this.order.length}has(e){return this.order.indexOf(e)>-1}get(e){return e<this.order.length?this.order[e]:-1}remove(e){this.order.splice(this.order.indexOf(e),1)}prepend(e){return this.order.unshift(e),this.order.pop()}}function NG(t,e,n){return(e=DG(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function DG(t){var e=kG(t,"string");return typeof e=="symbol"?e:e+""}function kG(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}class LG{constructor(e){NG(this,"sizeSet",void 0),this.sizeSet=e}diff(){const{sizeSet:e}=this,{currentSize:n,nextSize:r}=e.getViewSize();let i=Math.max(r,n);if(i===0)return[];const{currentOffset:o,nextOffset:s}=e.getViewSize(),a=new bO(o,n),l=new bO(s,r),u=[];for(let c=0;c<i;c++){const h=a.get(c),d=l.get(c);if(d===-1)u.push(["remove",h]);else if(h===-1)!e.isShared()||e.isShared()&&e.isPlaceOn(TR)?u.push(["append",d]):u.push(["prepend",d]);else if(d>h)a.has(d)&&(a.remove(d),r<=a.length&&(i-=1)),u.push(["replace",d,h]);else if(d<h){const f=a.prepend(d);u.push(["insert_before",d,h,f])}else u.push(["none",d])}return u}}function qu(t,e,n){return(e=$G(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function $G(t){var e=FG(t,"string");return typeof e=="symbol"?e:e+""}function FG(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}class fD{constructor(e,n){qu(this,"rootNode",void 0),qu(this,"nodesPool",void 0),qu(this,"sizeSet",new IG),qu(this,"collectedNodes",[]),qu(this,"viewDiffer",new LG(this.sizeSet)),qu(this,"leads",[]),this.rootNode=e,this.nodesPool=n}setSize(e){return this.sizeSet.setSize(e),this}setOffset(e){return this.sizeSet.setOffset(e),this}isSharedViewSet(){return this.sizeSet.isShared()}getNode(e){return e<this.collectedNodes.length?this.collectedNodes[e]:null}getCurrentNode(){const e=this.collectedNodes.length;return e>0?this.collectedNodes[e-1]:null}applyCommand(e){const{rootNode:n}=this,[r,i,o,s]=e,a=this.nodesPool(i);switch(this.collectedNodes.push(a),r){case"prepend":n.insertBefore(a,n.firstChild);break;case"append":n.appendChild(a);break;case"insert_before":n.insertBefore(a,this.nodesPool(o)),n.removeChild(this.nodesPool(s));break;case"replace":n.replaceChild(a,this.nodesPool(o));break;case"remove":n.removeChild(a);break}}start(){this.collectedNodes.length=0,this.leads=this.viewDiffer.diff()}render(){this.leads.length>0&&this.applyCommand(this.leads.shift())}end(){for(;this.leads.length>0;)this.applyCommand(this.leads.shift())}}class gD extends fD{prependView(e){return this.sizeSet.prepend(e.sizeSet),e.sizeSet.append(this.sizeSet),this}appendView(e){return this.sizeSet.append(e.sizeSet),e.sizeSet.prepend(this.sizeSet),this}}function SO(t,e,n){return(e=VG(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function VG(t){var e=WG(t,"string");return typeof e=="symbol"?e:e+""}function WG(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}class BG{constructor(e){SO(this,"nodeType",void 0),SO(this,"pool",new Map),this.nodeType=e.toUpperCase()}setRootDocument(e){this.rootDocument=e}obtain(e,n){const i=typeof n=="number"?`${e}x${n}`:e.toString();if(this.pool.has(i))return this.pool.get(i);const o=this.rootDocument.createElement(this.nodeType);return this.pool.set(i,o),o}}function jh(t,e,n){return(e=jG(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function jG(t){var e=UG(t,"string");return typeof e=="symbol"?e:e+""}function UG(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}class Uf{constructor(e,n){jh(this,"nodesPool",null),jh(this,"nodeType",void 0),jh(this,"rootNode",void 0),jh(this,"table",null),jh(this,"renderedNodes",0),this.nodesPool=typeof e=="string"?new BG(e):null,this.nodeType=e,this.rootNode=n}setTable(e){this.nodesPool&&this.nodesPool.setRootDocument(e.rootDocument),this.table=e}adjust(){}render(){}}function RO(t,e,n){return(e=zG(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function zG(t){var e=YG(t,"string");return typeof e=="symbol"?e:e+""}function YG(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}class GG extends Uf{constructor(){super("TH"),RO(this,"orderViews",new WeakMap),RO(this,"sourceRowIndex",0)}obtainOrderView(e){let n;return this.orderViews.has(e)?n=this.orderViews.get(e):(n=new gD(e,r=>this.nodesPool.obtain(this.sourceRowIndex,r)),this.orderViews.set(e,n)),n}render(){const{rowsToRender:e,rowHeaderFunctions:n,rowHeadersCount:r,rows:i,cells:o}=this.table;for(let s=0;s<e;s++){const a=this.table.renderedRowToSource(s),l=i.getRenderedNode(s);this.sourceRowIndex=a;const u=this.obtainOrderView(l),c=o.obtainOrderView(l);u.appendView(c).setSize(r).setOffset(0).start();for(let h=r-1;h>=0;h--){u.render();const d=u.getCurrentNode();d.className="",d.removeAttribute("style"),mh(d,[new RegExp("aria-(.*)"),new RegExp("role")]),this.table.isAriaEnabled()&&ye(d,[OU(),FU(),GE(h+1),Vu(-1)]),n[h](a,d,h)}u.end()}}}class KG extends Uf{constructor(e){super(null,e)}adjust(){const{columnHeadersCount:e,rowHeadersCount:n}=this.table;let r=this.rootNode.firstChild;if(e){const{columnsToRender:i}=this.table,o=i+n;for(let a=0,l=e;a<l;a++){for(r=this.rootNode.childNodes[a],r||(r=this.table.rootDocument.createElement("tr"),this.rootNode.appendChild(r)),this.renderedNodes=r.childNodes.length;this.renderedNodes<o;)r.appendChild(this.table.rootDocument.createElement("th")),this.renderedNodes+=1;for(;this.renderedNodes>o;)r.removeChild(r.lastChild),this.renderedNodes-=1}const s=this.rootNode.childNodes.length;if(s>e)for(let a=e;a<s;a++)this.rootNode.removeChild(this.rootNode.lastChild)}else r&&va(r)}render(){const{columnHeadersCount:e}=this.table;this.table.isAriaEnabled()&&ye(this.rootNode,[RN()]);for(let n=0;n<e;n+=1){const{columnHeaderFunctions:r,columnsToRender:i,rowHeadersCount:o}=this.table,s=this.rootNode.childNodes[n];this.table.isAriaEnabled()&&ye(s,[wR(),MN(n+1)]);for(let a=-1*o;a<i;a+=1){const l=this.table.renderedColumnToSource(a),u=s.childNodes[a+o];u.className="",u.removeAttribute("style"),mh(u,[new RegExp("aria-(.*)"),new RegExp("role")]),this.table.isAriaEnabled()&&ye(u,[GE(a+1+this.table.rowHeadersCount),Vu(-1),xU(),...a>=0?[$U()]:[wR()]]),r[n](l,u,n)}}}}let EO=!1;class qG extends Uf{constructor(e){super(null,e)}adjust(){const{columnsToRender:e,rowHeadersCount:n}=this.table,r=e+n;for(;this.renderedNodes<r;)this.rootNode.appendChild(this.table.rootDocument.createElement("col")),this.renderedNodes+=1;for(;this.renderedNodes>r;)this.rootNode.removeChild(this.rootNode.lastChild),this.renderedNodes-=1}render(){this.adjust();const{columnsToRender:e,rowHeadersCount:n}=this.table;!EO&&e>1e3&&(EO=!0,Ze(nt`Performance tip: Handsontable rendered more than 1000 visible columns.\x20
|
|
40
|
+
`),y[P][se]=te.replace(aY,ue=>JN[ue])}else v.push(j)}}return E.length&&(n.mergeCells=E),v.length&&(n.rowHeaders=v),y.length&&(n.data=y),n}function Un(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];const n=typeof t;if(n==="number")return!isNaN(t)&&isFinite(t);if(n==="string"){if(t.length===0)return!1;if(t.length===1)return/\d/.test(t);const r=Array.from(new Set([".",...e])).map(i=>`\\${i}`).join("|");return new RegExp(`^[+-]?(((${r})?\\d+((${r})\\d+)?(e[+-]?\\d+)?)|(0x[a-f\\d]+))$`,"i").test(t.trim())}else if(n==="object")return!!t&&typeof t.valueOf()=="number"&&!(t instanceof Date);return!1}function cY(t){return Un(t,[","])}function de(t,e,n){let r=-1;for(typeof e=="function"?(n=e,e=t):r=t-1;++r<=e&&n(r)!==!1;);}function sO(t,e,n){let r=t+1;for(typeof e=="function"&&(n=e,e=0);--r>=e&&n(r)!==!1;);}function eD(t,e){return e=parseInt(e.toString().replace("%",""),10),e=isNaN(e)?0:e,parseInt(t*e/100,10)}function Ue(t,e,n){return Math.min(t,e)===t?e:Math.max(t,n)===t?n:t}const SR="asc",hY="desc",aO=new Map([[SR,[-1,1]],[hY,[1,-1]]]),dY=t=>`The priority '${t}' is already declared in a map.`,fY=t=>`The priority '${t}' is not a number.`;function gY(){let{errorPriorityExists:t,errorPriorityNaN:e}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const n=new Map;t=ot(t)?t:dY,e=ot(e)?e:fY;function r(o,s){if(!Un(o))throw new Error(e(o));if(n.has(o))throw new Error(t(o));n.set(o,s)}function i(){let o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:SR;const[s,a]=aO.get(o)||aO.get(SR);return[...n].sort((l,u)=>l[0]<u[0]?s:a).map(l=>l[1])}return{addItem:r,getItems:i}}const mY=t=>`The id '${t}' is already declared in a map.`;function Mw(){let{errorIdExists:t}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const e=new Map;t=ot(t)?t:mY;function n(u,c){if(l(u))throw new Error(t(u));e.set(u,c)}function r(u){return e.delete(u)}function i(){e.clear()}function o(u){const[c]=a().find(h=>{let[d,f]=h;return u===f?d:!1})||[null];return c}function s(u){return e.get(u)}function a(){return[...e]}function l(u){return e.has(u)}return{addItem:n,clear:i,getId:o,getItem:s,getItems:a,hasItem:l,removeItem:r}}const pY=t=>`'${t}' value is already declared in a unique set.`;function wY(){let{errorItemExists:t}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const e=new Set;t=ot(t)?t:pY;function n(o){if(e.has(o))throw new Error(t(o));e.add(o)}function r(){return[...e]}function i(){e.clear()}return{addItem:n,clear:i,getItems:r}}const r0=t=>`There is already registered "${t}" plugin.`,vY=t=>`There is already registered plugin on priority "${t}".`,CY=t=>`The priority "${t}" is not a number.`,tD=gY({errorPriorityExists:vY,errorPriorityNaN:CY}),nD=wY({errorItemExists:r0}),RR=Mw({errorIdExists:r0});function rD(){return[...tD.getItems(),...nD.getItems()]}function i0(t){const e=Uo(t);return RR.getItem(e)}function yY(t){return!!i0(t)}function ze(t,e,n){[t,e,n]=SY(t,e,n),i0(t)===void 0&&bY(t,e,n)}function bY(t,e,n){const r=Uo(t);if(RR.hasItem(r))throw new Error(r0(r));n===void 0?nD.addItem(r):tD.addItem(n,r),RR.addItem(r,e)}function SY(t,e,n){return typeof t=="function"&&(e=t,t=e.PLUGIN_KEY,n=e.PLUGIN_PRIORITY),[t,e,n]}const{register:RY,getItem:EY,hasItem:iD,getNames:Dle,getValues:kle}=qo("renderers");function ER(t){if(typeof t=="function")return t;if(!iD(t))throw Error(`No registered renderer found under "${t}" name`);return EY(t)}function to(t,e){typeof t!="string"&&(e=t,t=e.RENDERER_TYPE),RY(t,e)}const{register:TY,getItem:_Y,hasItem:oD,getNames:Lle,getValues:$le}=qo("validators");function MY(t){if(typeof t=="function")return t;if(!oD(t))throw Error(`No registered validator found under "${t}" name`);return _Y(t)}function xc(t,e){typeof t!="string"&&(e=t,t=e.VALIDATOR_TYPE),TY(t,e)}var lO={},uO;function IY(){if(uO)return lO;uO=1;var t=dt(),e=lh(),n=ch(),r=Hf(),i=_w();return t({target:"Array",proto:!0},{at:function(s){var a=e(this),l=n(a),u=r(s),c=u>=0?u:l+u;return c<0||c>=l?void 0:a[c]}}),i("at"),lO}IY();var cO={},hO;function PY(){if(hO)return cO;hO=1;var t=dt(),e=qt(),n=Pf(),r=Hf(),i=uw(),o=Cn(),s=e("".charAt),a=o(function(){return"𠮷".at(-2)!=="\uD842"});return t({target:"String",proto:!0,forced:a},{at:function(u){var c=i(n(this)),h=c.length,d=r(u),f=d>=0?d:h+d;return f<0||f>=h?void 0:s(c,f)}}),cO}PY();function kh(t,e,n){return(e=OY(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function OY(t){var e=xY(t,"string");return typeof e=="symbol"?e:e+""}function xY(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}class AY{constructor(){kh(this,"count",0),kh(this,"startColumn",null),kh(this,"endColumn",null),kh(this,"startPosition",null),kh(this,"isVisibleInTrimmingContainer",!1)}initialize(){}process(e,n){const{totalCalculatedWidth:r,zeroBasedScrollOffset:i,viewportWidth:o,columnWidth:s}=n,a=i>0?o+1:o;r>=i&&r+s<=i+a&&((this.startColumn===null||this.startColumn===void 0)&&(this.startColumn=e),this.endColumn=e)}finalize(e){var n;const{scrollOffset:r,viewportWidth:i,inlineStartOffset:o,zeroBasedScrollOffset:s,totalColumns:a,needReverse:l,startPositions:u,columnWidth:c}=e;if(this.endColumn===a-1&&l)for(this.startColumn=this.endColumn;this.startColumn>0;){const g=u[this.endColumn]+c-u[this.startColumn-1];if(g<=i&&(this.startColumn-=1),g>=i)break}this.startPosition=(n=u[this.startColumn])!==null&&n!==void 0?n:null;const h=s>0?i+1:i,d=r+i-h,f=this.startColumn===null?0:e.getColumnWidth(this.startColumn);d<-1*o||r>u.at(-1)||-1*r-i>-1*f?this.isVisibleInTrimmingContainer=!1:this.isVisibleInTrimmingContainer=!0,a<this.endColumn&&(this.endColumn=a-1),this.startColumn!==null&&(this.count=this.endColumn-this.startColumn+1)}}function Lh(t,e,n){return(e=HY(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function HY(t){var e=NY(t,"string");return typeof e=="symbol"?e:e+""}function NY(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}class DY{constructor(){Lh(this,"count",0),Lh(this,"startRow",null),Lh(this,"endRow",null),Lh(this,"startPosition",null),Lh(this,"isVisibleInTrimmingContainer",!1)}initialize(){}process(e,n){const{totalCalculatedHeight:r,zeroBasedScrollOffset:i,innerViewportHeight:o,rowHeight:s}=n;r>=i&&r+s<=o&&(this.startRow===null&&(this.startRow=e),this.endRow=e)}finalize(e){var n;const{scrollOffset:r,viewportHeight:i,horizontalScrollbarHeight:o,totalRows:s,needReverse:a,startPositions:l,rowHeight:u}=e;if(this.endRow===s-1&&a)for(this.startRow=this.endRow;this.startRow>0;){const d=l[this.endRow]+u-l[this.startRow-1];if(d<=i-o&&(this.startRow-=1),d>=i-o)break}this.startPosition=(n=l[this.startRow])!==null&&n!==void 0?n:null;const c=r+i-o,h=this.startRow===null?0:e.getRowHeight(this.startRow);c<h||r>l.at(-1)?this.isVisibleInTrimmingContainer=!1:this.isVisibleInTrimmingContainer=!0,s<this.endRow&&(this.endRow=s-1),this.startRow!==null&&(this.count=this.endRow-this.startRow+1)}}function $h(t,e,n){return(e=kY(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function kY(t){var e=LY(t,"string");return typeof e=="symbol"?e:e+""}function LY(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}class sD{constructor(){$h(this,"count",0),$h(this,"startColumn",null),$h(this,"endColumn",null),$h(this,"startPosition",null),$h(this,"isVisibleInTrimmingContainer",!1)}initialize(){}process(e,n){const{totalCalculatedWidth:r,zeroBasedScrollOffset:i,viewportWidth:o}=n;r<=i&&(this.startColumn=e);const s=i>0?o+1:o;r>=i&&r<=i+s&&(this.startColumn===null||this.startColumn===void 0)&&(this.startColumn=e),this.endColumn=e}finalize(e){var n;const{scrollOffset:r,viewportWidth:i,inlineStartOffset:o,zeroBasedScrollOffset:s,totalColumns:a,needReverse:l,startPositions:u,columnWidth:c}=e;if(this.endColumn===a-1&&l)for(this.startColumn=this.endColumn;this.startColumn>0;){const f=u[this.endColumn]+c-u[this.startColumn-1];if(this.startColumn-=1,f>i)break}this.startPosition=(n=u[this.startColumn])!==null&&n!==void 0?n:null;const h=s>0?i+1:i;r+i-h<-1*o||r>u.at(-1)+c||-1*r-i>0?this.isVisibleInTrimmingContainer=!1:this.isVisibleInTrimmingContainer=!0,a<this.endColumn&&(this.endColumn=a-1),this.startColumn!==null&&(this.count=this.endColumn-this.startColumn+1)}}function Fh(t,e,n){return(e=$Y(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function $Y(t){var e=FY(t,"string");return typeof e=="symbol"?e:e+""}function FY(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}class aD{constructor(){Fh(this,"count",0),Fh(this,"startRow",null),Fh(this,"endRow",null),Fh(this,"startPosition",null),Fh(this,"isVisibleInTrimmingContainer",!1)}initialize(){}process(e,n){const{totalCalculatedHeight:r,zeroBasedScrollOffset:i,innerViewportHeight:o}=n;r<=i&&(this.startRow=e),r>=i&&r<=o&&this.startRow===null&&(this.startRow=e),this.endRow=e}finalize(e){var n;const{scrollOffset:r,viewportHeight:i,horizontalScrollbarHeight:o,totalRows:s,needReverse:a,startPositions:l,rowHeight:u}=e;if(this.endRow===s-1&&a)for(this.startRow=this.endRow;this.startRow>0;){const h=l[this.endRow]+u-l[this.startRow-1];if(this.startRow-=1,h>=i-o)break}this.startPosition=(n=l[this.startRow])!==null&&n!==void 0?n:null,r+i-o<0||r>l.at(-1)+u?this.isVisibleInTrimmingContainer=!1:this.isVisibleInTrimmingContainer=!0,s<this.endRow&&(this.endRow=s-1),this.startRow!==null&&(this.count=this.endRow-this.startRow+1)}}function Vh(t,e,n){return(e=VY(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function VY(t){var e=WY(t,"string");return typeof e=="symbol"?e:e+""}function WY(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}class BY{constructor(){Vh(this,"count",0),Vh(this,"startColumn",0),Vh(this,"endColumn",0),Vh(this,"startPosition",0),Vh(this,"isVisibleInTrimmingContainer",!0)}initialize(e){let{totalColumns:n}=e;this.count=n,this.endColumn=this.count-1}process(){}finalize(){}}function Wh(t,e,n){return(e=jY(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function jY(t){var e=UY(t,"string");return typeof e=="symbol"?e:e+""}function UY(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}class zY{constructor(){Wh(this,"count",0),Wh(this,"startRow",0),Wh(this,"endRow",0),Wh(this,"startPosition",0),Wh(this,"isVisibleInTrimmingContainer",!0)}initialize(e){let{totalRows:n}=e;this.count=n,this.endRow=this.count-1}process(){}finalize(){}}function dO(t,e,n){return(e=YY(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function YY(t){var e=GY(t,"string");return typeof e=="symbol"?e:e+""}function GY(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}class KY extends sD{constructor(){super(...arguments),dO(this,"columnStartOffset",0),dO(this,"columnEndOffset",0)}finalize(e){var n;super.finalize(e);const{overrideFn:r,totalColumns:i,startPositions:o}=e;if(this.startColumn!==null&&typeof r=="function"){const s=this.startColumn,a=this.endColumn;r(this),this.columnStartOffset=s-this.startColumn,this.columnEndOffset=this.endColumn-a}this.startColumn<0&&(this.startColumn=0),this.startPosition=(n=o[this.startColumn])!==null&&n!==void 0?n:null,i<this.endColumn&&(this.endColumn=i-1),this.startColumn!==null&&(this.count=this.endColumn-this.startColumn+1)}}function fO(t,e,n){return(e=qY(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function qY(t){var e=XY(t,"string");return typeof e=="symbol"?e:e+""}function XY(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}class ZY extends aD{constructor(){super(...arguments),fO(this,"rowStartOffset",0),fO(this,"rowEndOffset",0)}finalize(e){var n;super.finalize(e);const{overrideFn:r,totalRows:i,startPositions:o}=e;if(this.startRow!==null&&typeof r=="function"){const s=this.startRow,a=this.endRow;r(this),this.rowStartOffset=s-this.startRow,this.rowEndOffset=this.endRow-a}this.startRow<0&&(this.startRow=0),this.startPosition=(n=o[this.startRow])!==null&&n!==void 0?n:null,i<this.endRow&&(this.endRow=i-1),this.startRow!==null&&(this.count=this.endRow-this.startRow+1)}}function gO(t,e,n){return(e=QY(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function QY(t){var e=JY(t,"string");return typeof e=="symbol"?e:e+""}function JY(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}class lD{constructor(e){gO(this,"calculationTypes",[]),gO(this,"calculationResults",new Map),this.calculationTypes=e}_initialize(e){this.calculationTypes.forEach(n=>{let[r,i]=n;this.calculationResults.set(r,i),i.initialize(e)})}_process(e,n){this.calculationTypes.forEach(r=>{let[,i]=r;return i.process(e,n)})}_finalize(e){this.calculationTypes.forEach(n=>{let[,r]=n;return r.finalize(e)})}getResultsFor(e){return this.calculationResults.get(e)}}function bo(t,e,n){return(e=eG(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function eG(t){var e=tG(t,"string");return typeof e=="symbol"?e:e+""}function tG(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}const eh=50;class nG extends lD{constructor(e){let{calculationTypes:n,viewportWidth:r,scrollOffset:i,totalColumns:o,columnWidthFn:s,overrideFn:a,inlineStartOffset:l}=e;super(n),bo(this,"viewportWidth",0),bo(this,"scrollOffset",0),bo(this,"zeroBasedScrollOffset",0),bo(this,"totalColumns",0),bo(this,"columnWidthFn",null),bo(this,"columnWidth",0),bo(this,"overrideFn",null),bo(this,"inlineStartOffset",0),bo(this,"totalCalculatedWidth",0),bo(this,"startPositions",[]),bo(this,"needReverse",!0),this.viewportWidth=r,this.scrollOffset=i,this.zeroBasedScrollOffset=Math.max(i,0),this.totalColumns=o,this.columnWidthFn=s,this.overrideFn=a,this.inlineStartOffset=l,this.calculate()}calculate(){this._initialize(this);for(let e=0;e<this.totalColumns;e++)if(this.columnWidth=this.getColumnWidth(e),this._process(e,this),this.startPositions.push(this.totalCalculatedWidth),this.totalCalculatedWidth+=this.columnWidth,this.totalCalculatedWidth>=this.zeroBasedScrollOffset+this.viewportWidth){this.needReverse=!1;break}this._finalize(this)}getColumnWidth(e){const n=this.columnWidthFn(e);return isNaN(n)?eh:n}}function Xi(t,e,n){return(e=rG(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function rG(t){var e=iG(t,"string");return typeof e=="symbol"?e:e+""}function iG(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}class oG extends lD{constructor(e){let{calculationTypes:n,viewportHeight:r,scrollOffset:i,totalRows:o,defaultRowHeight:s,rowHeightFn:a,overrideFn:l,horizontalScrollbarHeight:u}=e;super(n),Xi(this,"viewportHeight",0),Xi(this,"scrollOffset",0),Xi(this,"zeroBasedScrollOffset",0),Xi(this,"totalRows",0),Xi(this,"rowHeightFn",null),Xi(this,"rowHeight",0),Xi(this,"overrideFn",null),Xi(this,"horizontalScrollbarHeight",0),Xi(this,"innerViewportHeight",0),Xi(this,"totalCalculatedHeight",0),Xi(this,"startPositions",[]),Xi(this,"needReverse",!0),this.defaultHeight=s,this.viewportHeight=r,this.scrollOffset=i,this.zeroBasedScrollOffset=Math.max(i,0),this.totalRows=o,this.rowHeightFn=a,this.overrideFn=l,this.horizontalScrollbarHeight=u??0,this.innerViewportHeight=this.zeroBasedScrollOffset+this.viewportHeight-this.horizontalScrollbarHeight,this.calculate()}calculate(){this._initialize(this);for(let e=0;e<this.totalRows;e++)if(this.rowHeight=this.getRowHeight(e),this._process(e,this),this.startPositions.push(this.totalCalculatedHeight),this.totalCalculatedHeight+=this.rowHeight,this.totalCalculatedHeight>=this.innerViewportHeight){this.needReverse=!1;break}this._finalize(this)}getRowHeight(e){const n=this.rowHeightFn(e);return isNaN(n)?this.defaultHeight:n}}function sG(t,e,n){aG(t,e),e.set(t,n)}function aG(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function mO(t,e,n){return(e=lG(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function lG(t){var e=uG(t,"string");return typeof e=="symbol"?e:e+""}function uG(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Gu(t,e){return t.get(uD(t,e))}function pO(t,e,n){return t.set(uD(t,e),n),n}function uD(t,e,n){if(typeof t=="function"?t===e:t.has(e))return arguments.length<3?e:n;throw new TypeError("Private element is not present on this object")}var Ls=new WeakMap;class Iu{constructor(e,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;mO(this,"row",null),mO(this,"col",null),sG(this,Ls,!1),pO(Ls,this,r),typeof e<"u"&&typeof n<"u"&&(this.row=e,this.col=n)}isValid(e){const{countRows:n,countCols:r,countRowHeaders:i,countColHeaders:o}={countRows:0,countCols:0,countRowHeaders:0,countColHeaders:0,...e};return!(!Number.isInteger(this.row)||!Number.isInteger(this.col)||this.row<-o||this.col<-i||this.row>=n||this.col>=r)}isEqual(e){return e===this?!0:this.row===e.row&&this.col===e.col}isHeader(){return!this.isCell()}isCell(){return this.row>=0&&this.col>=0}isRtl(){return Gu(Ls,this)}isSouthEastOf(e){return this.row>=e.row&&(Gu(Ls,this)?this.col<=e.col:this.col>=e.col)}isNorthWestOf(e){return this.row<=e.row&&(Gu(Ls,this)?this.col>=e.col:this.col<=e.col)}isSouthWestOf(e){return this.row>=e.row&&(Gu(Ls,this)?this.col>=e.col:this.col<=e.col)}isNorthEastOf(e){return this.row<=e.row&&(Gu(Ls,this)?this.col<=e.col:this.col>=e.col)}normalize(){return this.row=this.row===null?this.row:Math.max(this.row,0),this.col=this.col===null?this.col:Math.max(this.col,0),this}assign(e){return Number.isInteger(e==null?void 0:e.row)&&(this.row=e.row),Number.isInteger(e==null?void 0:e.col)&&(this.col=e.col),e instanceof Iu&&pO(Ls,this,e.isRtl()),this}clone(){return new Iu(this.row,this.col,Gu(Ls,this))}toObject(){return{row:this.row,col:this.col}}}function cG(t,e,n){hG(t,e),e.set(t,n)}function hG(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function eb(t,e,n){return(e=dG(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function dG(t){var e=fG(t,"string");return typeof e=="symbol"?e:e+""}function fG(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Zi(t,e){return t.get(cD(t,e))}function gG(t,e,n){return t.set(cD(t,e),n),n}function cD(t,e,n){if(typeof t=="function"?t===e:t.has(e))return arguments.length<3?e:n;throw new TypeError("Private element is not present on this object")}var er=new WeakMap;class jf{constructor(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;eb(this,"highlight",null),eb(this,"from",null),eb(this,"to",null),cG(this,er,!1),this.highlight=e.clone(),this.from=n.clone(),this.to=r.clone(),gG(er,this,i)}setHighlight(e){return this.highlight=e.clone(),this}setFrom(e){return this.from=e.clone(),this}setTo(e){return this.to=e.clone(),this}normalize(){return this.highlight.normalize(),this.from.normalize(),this.to.normalize(),this}isValid(e){return this.from.isValid(e)&&this.to.isValid(e)}isSingle(){return this.isSingleCell()||this.isSingleHeader()}isSingleCell(){return this.from.row>=0&&this.from.row===this.to.row&&this.from.col>=0&&this.from.col===this.to.col}isSingleHeader(){return(this.from.row<0||this.from.col<0)&&this.from.row===this.to.row&&this.from.col===this.to.col}isHeader(){return this.from.isHeader()&&this.to.isHeader()?!0:this.from.col<0&&this.to.col<0||this.from.row<0&&this.to.row<0}containsHeaders(){return this.from.isHeader()||this.to.isHeader()}getOuterHeight(){return Math.max(this.from.row,this.to.row)-Math.min(this.from.row,this.to.row)+1}getOuterWidth(){return Math.max(this.from.col,this.to.col)-Math.min(this.from.col,this.to.col)+1}getHeight(){if(this.from.row<0&&this.to.row<0)return 0;const e=Math.max(this.from.row,0),n=Math.max(this.to.row,0);return Math.max(e,n)-Math.min(e,n)+1}getWidth(){if(this.from.col<0&&this.to.col<0)return 0;const e=Math.max(this.from.col,0),n=Math.max(this.to.col,0);return Math.max(e,n)-Math.min(e,n)+1}getCellsCount(){return this.getWidth()*this.getHeight()}includes(e){const{row:n,col:r}=e,i=this.getOuterTopStartCorner(),o=this.getOuterBottomEndCorner();return i.row<=n&&o.row>=n&&i.col<=r&&o.col>=r}includesRange(e){return this.includes(e.getOuterTopStartCorner())&&this.includes(e.getOuterBottomEndCorner())}isEqual(e){return Math.min(this.from.row,this.to.row)===Math.min(e.from.row,e.to.row)&&Math.max(this.from.row,this.to.row)===Math.max(e.from.row,e.to.row)&&Math.min(this.from.col,this.to.col)===Math.min(e.from.col,e.to.col)&&Math.max(this.from.col,this.to.col)===Math.max(e.from.col,e.to.col)}overlaps(e){return e.isSouthEastOf(this.getOuterTopLeftCorner())&&e.isNorthWestOf(this.getOuterBottomRightCorner())}isSouthEastOf(e){return this.getOuterTopLeftCorner().isSouthEastOf(e)||this.getOuterBottomRightCorner().isSouthEastOf(e)}isNorthWestOf(e){return this.getOuterTopLeftCorner().isNorthWestOf(e)||this.getOuterBottomRightCorner().isNorthWestOf(e)}isOverlappingHorizontally(e){return this.getOuterTopEndCorner().col>=e.getOuterTopStartCorner().col&&this.getOuterTopEndCorner().col<=e.getOuterTopEndCorner().col||this.getOuterTopStartCorner().col<=e.getOuterTopEndCorner().col&&this.getOuterTopStartCorner().col>=e.getOuterTopStartCorner().col}isOverlappingVertically(e){return this.getOuterBottomStartCorner().row>=e.getOuterTopRightCorner().row&&this.getOuterBottomStartCorner().row<=e.getOuterBottomStartCorner().row||this.getOuterTopEndCorner().row<=e.getOuterBottomStartCorner().row&&this.getOuterTopEndCorner().row>=e.getOuterTopRightCorner().row}expand(e){const n=this.getOuterTopStartCorner(),r=this.getOuterBottomEndCorner();return e.row<n.row||e.col<n.col||e.row>r.row||e.col>r.col?(this.from=this._createCellCoords(Math.min(n.row,e.row),Math.min(n.col,e.col)),this.to=this._createCellCoords(Math.max(r.row,e.row),Math.max(r.col,e.col)),!0):!1}expandByRange(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(this.includesRange(e)||!this.overlaps(e))return!1;const r=this.getOuterTopStartCorner(),i=this.getOuterBottomEndCorner(),o=this.getDirection(),s=e.getOuterTopStartCorner(),a=e.getOuterBottomEndCorner(),l=Math.min(r.row,s.row),u=Math.min(r.col,s.col),c=Math.max(i.row,a.row),h=Math.max(i.col,a.col),d=this._createCellCoords(l,u),f=this._createCellCoords(c,h);return this.from=d,this.to=f,this.setDirection(o),n&&(this.highlight.row===this.getOuterBottomRightCorner().row&&this.getVerticalDirection()==="N-S"&&this.flipDirectionVertically(),this.highlight.col===this.getOuterTopRightCorner().col&&this.getHorizontalDirection()==="W-E"&&this.flipDirectionHorizontally()),!0}getDirection(){if(this.from.isNorthWestOf(this.to))return"NW-SE";if(this.from.isNorthEastOf(this.to))return"NE-SW";if(this.from.isSouthEastOf(this.to))return"SE-NW";if(this.from.isSouthWestOf(this.to))return"SW-NE"}setDirection(e){switch(e){case"NW-SE":[this.from,this.to]=[this.getOuterTopLeftCorner(),this.getOuterBottomRightCorner()];break;case"NE-SW":[this.from,this.to]=[this.getOuterTopRightCorner(),this.getOuterBottomLeftCorner()];break;case"SE-NW":[this.from,this.to]=[this.getOuterBottomRightCorner(),this.getOuterTopLeftCorner()];break;case"SW-NE":[this.from,this.to]=[this.getOuterBottomLeftCorner(),this.getOuterTopRightCorner()];break}}getVerticalDirection(){return["NE-SW","NW-SE"].indexOf(this.getDirection())>-1?"N-S":"S-N"}getHorizontalDirection(){return["NW-SE","SW-NE"].indexOf(this.getDirection())>-1?"W-E":"E-W"}flipDirectionVertically(){switch(this.getDirection()){case"NW-SE":this.setDirection("SW-NE");break;case"NE-SW":this.setDirection("SE-NW");break;case"SE-NW":this.setDirection("NE-SW");break;case"SW-NE":this.setDirection("NW-SE");break}}flipDirectionHorizontally(){switch(this.getDirection()){case"NW-SE":this.setDirection("NE-SW");break;case"NE-SW":this.setDirection("NW-SE");break;case"SE-NW":this.setDirection("SW-NE");break;case"SW-NE":this.setDirection("SE-NW");break}}getTopStartCorner(){return this._createCellCoords(Math.min(this.from.row,this.to.row),Math.min(this.from.col,this.to.col)).normalize()}getTopLeftCorner(){return Zi(er,this)?this.getTopEndCorner():this.getTopStartCorner()}getBottomEndCorner(){return this._createCellCoords(Math.max(this.from.row,this.to.row),Math.max(this.from.col,this.to.col)).normalize()}getBottomRightCorner(){return Zi(er,this)?this.getBottomStartCorner():this.getBottomEndCorner()}getTopEndCorner(){return this._createCellCoords(Math.min(this.from.row,this.to.row),Math.max(this.from.col,this.to.col)).normalize()}getTopRightCorner(){return Zi(er,this)?this.getTopStartCorner():this.getTopEndCorner()}getBottomStartCorner(){return this._createCellCoords(Math.max(this.from.row,this.to.row),Math.min(this.from.col,this.to.col)).normalize()}getBottomLeftCorner(){return Zi(er,this)?this.getBottomEndCorner():this.getBottomStartCorner()}getOuterTopStartCorner(){return this._createCellCoords(Math.min(this.from.row,this.to.row),Math.min(this.from.col,this.to.col))}getOuterTopLeftCorner(){return Zi(er,this)?this.getOuterTopEndCorner():this.getOuterTopStartCorner()}getOuterBottomEndCorner(){return this._createCellCoords(Math.max(this.from.row,this.to.row),Math.max(this.from.col,this.to.col))}getOuterBottomRightCorner(){return Zi(er,this)?this.getOuterBottomStartCorner():this.getOuterBottomEndCorner()}getOuterTopEndCorner(){return this._createCellCoords(Math.min(this.from.row,this.to.row),Math.max(this.from.col,this.to.col))}getOuterTopRightCorner(){return Zi(er,this)?this.getOuterTopStartCorner():this.getOuterTopEndCorner()}getOuterBottomStartCorner(){return this._createCellCoords(Math.max(this.from.row,this.to.row),Math.min(this.from.col,this.to.col))}getOuterBottomLeftCorner(){return Zi(er,this)?this.getOuterBottomEndCorner():this.getOuterBottomStartCorner()}isCorner(e){return e.isEqual(this.getOuterTopLeftCorner())||e.isEqual(this.getOuterTopRightCorner())||e.isEqual(this.getOuterBottomLeftCorner())||e.isEqual(this.getOuterBottomRightCorner())}getOppositeCorner(e){if(!(e instanceof Iu))return!1;if(e.isEqual(this.getOuterBottomEndCorner()))return this.getOuterTopStartCorner();if(e.isEqual(this.getOuterTopStartCorner()))return this.getOuterBottomEndCorner();if(e.isEqual(this.getOuterTopEndCorner()))return this.getOuterBottomStartCorner();if(e.isEqual(this.getOuterBottomStartCorner()))return this.getOuterTopEndCorner()}getBordersSharedWith(e){if(!this.includesRange(e))return[];const n={top:Math.min(this.from.row,this.to.row),bottom:Math.max(this.from.row,this.to.row),left:Math.min(this.from.col,this.to.col),right:Math.max(this.from.col,this.to.col)},r={top:Math.min(e.from.row,e.to.row),bottom:Math.max(e.from.row,e.to.row),left:Math.min(e.from.col,e.to.col),right:Math.max(e.from.col,e.to.col)},i=[];return n.top===r.top&&i.push("top"),n.right===r.right&&i.push(Zi(er,this)?"left":"right"),n.bottom===r.bottom&&i.push("bottom"),n.left===r.left&&i.push(Zi(er,this)?"right":"left"),i}getInner(){const e=this.getOuterTopStartCorner(),n=this.getOuterBottomEndCorner(),r=[];for(let i=e.row;i<=n.row;i++)for(let o=e.col;o<=n.col;o++)!(this.from.row===i&&this.from.col===o)&&!(this.to.row===i&&this.to.col===o)&&r.push(this._createCellCoords(i,o));return r}getAll(){const e=this.getOuterTopStartCorner(),n=this.getOuterBottomEndCorner(),r=[];for(let i=e.row;i<=n.row;i++)for(let o=e.col;o<=n.col;o++)e.row===i&&e.col===o?r.push(e):n.row===i&&n.col===o?r.push(n):r.push(this._createCellCoords(i,o));return r}forAll(e){const n=this.getOuterTopStartCorner(),r=this.getOuterBottomEndCorner();for(let i=n.row;i<=r.row;i++)for(let o=n.col;o<=r.col;o++)if(e(i,o)===!1)return}clone(){return new jf(this.highlight,this.from,this.to,Zi(er,this))}toObject(){return{from:this.from.toObject(),to:this.to.toObject()}}_createCellCoords(e,n){return new Iu(e,n,Zi(er,this))}}function Qo(t,e,n){mG(t,e),e.set(t,n)}function mG(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function fe(t,e){return t.get(hD(t,e))}function Oa(t,e,n){return t.set(hD(t,e),n),n}function hD(t,e,n){if(typeof t=="function"?t===e:t.has(e))return arguments.length<3?e:n;throw new TypeError("Private element is not present on this object")}var Qi=new WeakMap,tb=new WeakMap,mn=new WeakMap,Ku=new WeakMap,gg=new WeakMap,So=new WeakMap,nb=new WeakMap,Bh=new WeakMap,Tl=new WeakMap,Jo=new WeakMap;let dD=class{constructor(e,n,r,i,o,s){let a=arguments.length>6&&arguments[6]!==void 0?arguments[6]:null;Qo(this,Qi,void 0),Qo(this,tb,void 0),Qo(this,mn,void 0),Qo(this,Ku,void 0),Qo(this,gg,void 0),Qo(this,So,void 0),Qo(this,nb,void 0),Qo(this,Bh,void 0),Qo(this,Tl,[null,null]),Qo(this,Jo,[null,null]),Oa(Qi,this,r),Oa(tb,this,n),Oa(mn,this,o),Oa(Ku,this,s),Oa(gg,this,a),Oa(So,this,i),Oa(nb,this,e),this.registerEvents()}registerEvents(){fe(So,this).addEventListener(fe(mn,this).holder,"contextmenu",r=>this.onContextMenu(r)),fe(So,this).addEventListener(fe(mn,this).TABLE,"mouseover",r=>this.onMouseOver(r)),fe(So,this).addEventListener(fe(mn,this).TABLE,"mouseout",r=>this.onMouseOut(r));const e=()=>{fe(So,this).addEventListener(fe(mn,this).holder,"touchstart",r=>this.onTouchStart(r)),fe(So,this).addEventListener(fe(mn,this).holder,"touchend",r=>this.onTouchEnd(r)),this.momentumScrolling||(this.momentumScrolling={}),fe(So,this).addEventListener(fe(mn,this).holder,"scroll",()=>{clearTimeout(this.momentumScrolling._timeout),this.momentumScrolling.ongoing||fe(Qi,this).getSetting("onBeforeTouchScroll"),this.momentumScrolling.ongoing=!0,this.momentumScrolling._timeout=setTimeout(()=>{this.touchApplied||(this.momentumScrolling.ongoing=!1,fe(Qi,this).getSetting("onAfterMomentumScroll"))},200)})},n=()=>{fe(So,this).addEventListener(fe(mn,this).holder,"mouseup",r=>this.onMouseUp(r)),fe(So,this).addEventListener(fe(mn,this).holder,"mousedown",r=>this.onMouseDown(r))};ua()?e():(jN()&&e(),n())}selectedCellWasTouched(e){const r=this.parentCell(e).coords;if(fe(Bh,this)&&r){const[i,o]=[r.row,fe(Bh,this).from.row],[s,a]=[r.col,fe(Bh,this).from.col];return i===o&&s===a}return!1}parentCell(e){const n={},r=fe(mn,this).TABLE,i=lg(e,["TD","TH"],r);return i?(n.coords=fe(mn,this).getCoords(i),n.TD=i):ve(e,"wtBorder")&&ve(e,"current")?(n.coords=fe(Ku,this).getFocusSelection().cellRange.highlight,n.TD=fe(mn,this).getCell(n.coords)):ve(e,"wtBorder")&&ve(e,"area")&&fe(Ku,this).getAreaSelection().cellRange&&(n.coords=fe(Ku,this).getAreaSelection().cellRange.to,n.TD=fe(mn,this).getCell(n.coords)),n}onMouseDown(e){const n=fe(tb,this).rootDocument.activeElement,r=BN(ZU,e.target),i=e.target;if(!["TD","TH"].includes(n.nodeName)&&(i===n||r(0)===n||r(1)===n))return;const o=this.parentCell(i);ve(i,"corner")?fe(Qi,this).getSetting("onCellCornerMouseDown",e,i):o.TD&&fe(Qi,this).has("onCellMouseDown")&&this.callListener("onCellMouseDown",e,o.coords,o.TD),(e.button===0||this.touchApplied)&&o.TD&&(fe(Jo,this)[0]=o.TD,clearTimeout(fe(Tl,this)[0]),fe(Tl,this)[0]=setTimeout(()=>{fe(Jo,this)[0]=null},1e3))}onContextMenu(e){if(fe(Qi,this).has("onCellContextMenu")){const n=this.parentCell(e.target);n.TD&&this.callListener("onCellContextMenu",e,n.coords,n.TD)}}onMouseOver(e){if(!fe(Qi,this).has("onCellMouseOver"))return;const n=fe(mn,this).TABLE,r=lg(e.target,["TD","TH"],n),i=fe(gg,this)||this;r&&r!==i.lastMouseOver&&Su(r,n)&&(i.lastMouseOver=r,this.callListener("onCellMouseOver",e,fe(mn,this).getCoords(r),r))}onMouseOut(e){if(!fe(Qi,this).has("onCellMouseOut"))return;const n=fe(mn,this).TABLE,r=lg(e.target,["TD","TH"],n),i=lg(e.relatedTarget,["TD","TH"],n),o=fe(gg,this)||this;r&&r!==i&&Su(r,n)&&(this.callListener("onCellMouseOut",e,fe(mn,this).getCoords(r),r),i===null&&(o.lastMouseOver=null))}onMouseUp(e){const n=this.parentCell(e.target);n.TD&&fe(Qi,this).has("onCellMouseUp")&&this.callListener("onCellMouseUp",e,n.coords,n.TD),!(e.button!==0&&!this.touchApplied)&&(n.TD===fe(Jo,this)[0]&&n.TD===fe(Jo,this)[1]?(ve(e.target,"corner")?this.callListener("onCellCornerDblClick",e,n.coords,n.TD):this.callListener("onCellDblClick",e,n.coords,n.TD),fe(Jo,this)[0]=null,fe(Jo,this)[1]=null):n.TD===fe(Jo,this)[0]&&(fe(Jo,this)[1]=n.TD,clearTimeout(fe(Tl,this)[1]),fe(Tl,this)[1]=setTimeout(()=>{fe(Jo,this)[1]=null},500)))}onTouchStart(e){Oa(Bh,this,fe(Ku,this).getFocusSelection().cellRange),this.touchApplied=!0,this.onMouseDown(e)}onTouchEnd(e){var n;const r=e.target,i=(n=this.parentCell(r))===null||n===void 0?void 0:n.coords,o=ae(i)&&i.row>=0&&i.col>=0;if(e.cancelable&&o&&fe(Qi,this).getSetting("isDataViewInstance")){const a=["A","BUTTON","INPUT"];zN()&&(vz()||Cz())&&this.selectedCellWasTouched(r)&&!a.includes(r.tagName)?e.preventDefault():this.selectedCellWasTouched(r)||e.preventDefault()}this.onMouseUp(e),this.touchApplied=!1}callListener(e,n,r,i){const o=fe(Qi,this).getSettingPure(e);o&&o(n,r,i,fe(nb,this).call(this))}destroy(){clearTimeout(fe(Tl,this)[0]),clearTimeout(fe(Tl,this)[1]),fe(So,this).destroy()}};function rb(t,e,n){return(e=pG(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function pG(t){var e=wG(t,"string");return typeof e=="symbol"?e:e+""}function wG(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}class vG{constructor(e,n,r){rb(this,"offset",void 0),rb(this,"total",void 0),rb(this,"countTH",void 0),this.offset=e,this.total=n,this.countTH=r}offsetted(e){return e+this.offset}unOffsetted(e){return e-this.offset}renderedToSource(e){return this.offsetted(e)}sourceToRendered(e){return this.unOffsetted(e)}offsettedTH(e){return e-this.countTH}unOffsettedTH(e){return e+this.countTH}visibleRowHeadedColumnToSourceColumn(e){return this.renderedToSource(this.offsettedTH(e))}sourceColumnToVisibleRowHeadedColumn(e){return this.unOffsettedTH(this.sourceToRendered(e))}}function ib(t,e,n){return(e=CG(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function CG(t){var e=yG(t,"string");return typeof e=="symbol"?e:e+""}function yG(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}class bG{constructor(e,n,r){ib(this,"offset",void 0),ib(this,"total",void 0),ib(this,"countTH",void 0),this.offset=e,this.total=n,this.countTH=r}offsetted(e){return e+this.offset}unOffsetted(e){return e-this.offset}renderedToSource(e){return this.offsetted(e)}sourceToRendered(e){return this.unOffsetted(e)}offsettedTH(e){return e-this.countTH}unOffsettedTH(e){return e+this.countTH}visibleColHeadedRowToSourceRow(e){return this.renderedToSource(this.offsettedTH(e))}sourceRowToVisibleColHeadedRow(e){return this.unOffsettedTH(this.sourceToRendered(e))}}function mg(t,e,n){return(e=SG(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function SG(t){var e=RG(t,"string");return typeof e=="symbol"?e:e+""}function RG(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}class EG{constructor(){mg(this,"currentSize",0),mg(this,"nextSize",0),mg(this,"currentOffset",0),mg(this,"nextOffset",0)}setSize(e){this.currentSize=this.nextSize,this.nextSize=e}setOffset(e){this.currentOffset=this.nextOffset,this.nextOffset=e}}const TG=0,wO=1,TR=2;function ob(t,e,n){return(e=_G(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function _G(t){var e=MG(t,"string");return typeof e=="symbol"?e:e+""}function MG(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}class IG{constructor(){ob(this,"size",new EG),ob(this,"workingSpace",TG),ob(this,"sharedSize",null)}setSize(e){this.size.setSize(e)}setOffset(e){this.size.setOffset(e)}getViewSize(){return this.size}isShared(){return this.sharedSize!==null}isPlaceOn(e){return this.workingSpace===e}append(e){this.workingSpace=wO,e.workingSpace=TR,this.sharedSize=e.getViewSize()}prepend(e){this.workingSpace=TR,e.workingSpace=wO,this.sharedSize=e.getViewSize()}}var vO={},sb,CO;function PG(){if(CO)return sb;CO=1;var t=lw(),e=TypeError;return sb=function(n,r){if(!delete n[r])throw new e("Cannot delete property "+t(r)+" of "+t(n))},sb}var yO;function OG(){if(yO)return vO;yO=1;var t=dt(),e=lh(),n=ch(),r=d1(),i=PG(),o=f1(),s=[].unshift(0)!==1,a=function(){try{Object.defineProperty([],"length",{writable:!1}).unshift()}catch(u){return u instanceof TypeError}},l=s||!a();return t({target:"Array",proto:!0,arity:1,forced:l},{unshift:function(c){var h=e(this),d=n(h),f=arguments.length;if(f){o(d+f);for(var g=d;g--;){var C=g+f;g in h?h[C]=h[g]:i(h,C)}for(var y=0;y<f;y++)h[y]=arguments[y]}return r(h,d+f)}}),vO}OG();function xG(t,e,n){return(e=AG(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function AG(t){var e=HG(t,"string");return typeof e=="symbol"?e:e+""}function HG(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}class bO{constructor(e,n){xG(this,"order",[]),this.order=[...Array(n).keys()].map(r=>e+r)}get length(){return this.order.length}has(e){return this.order.indexOf(e)>-1}get(e){return e<this.order.length?this.order[e]:-1}remove(e){this.order.splice(this.order.indexOf(e),1)}prepend(e){return this.order.unshift(e),this.order.pop()}}function NG(t,e,n){return(e=DG(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function DG(t){var e=kG(t,"string");return typeof e=="symbol"?e:e+""}function kG(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}class LG{constructor(e){NG(this,"sizeSet",void 0),this.sizeSet=e}diff(){const{sizeSet:e}=this,{currentSize:n,nextSize:r}=e.getViewSize();let i=Math.max(r,n);if(i===0)return[];const{currentOffset:o,nextOffset:s}=e.getViewSize(),a=new bO(o,n),l=new bO(s,r),u=[];for(let c=0;c<i;c++){const h=a.get(c),d=l.get(c);if(d===-1)u.push(["remove",h]);else if(h===-1)!e.isShared()||e.isShared()&&e.isPlaceOn(TR)?u.push(["append",d]):u.push(["prepend",d]);else if(d>h)a.has(d)&&(a.remove(d),r<=a.length&&(i-=1)),u.push(["replace",d,h]);else if(d<h){const f=a.prepend(d);u.push(["insert_before",d,h,f])}else u.push(["none",d])}return u}}function qu(t,e,n){return(e=$G(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function $G(t){var e=FG(t,"string");return typeof e=="symbol"?e:e+""}function FG(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}class fD{constructor(e,n){qu(this,"rootNode",void 0),qu(this,"nodesPool",void 0),qu(this,"sizeSet",new IG),qu(this,"collectedNodes",[]),qu(this,"viewDiffer",new LG(this.sizeSet)),qu(this,"leads",[]),this.rootNode=e,this.nodesPool=n}setSize(e){return this.sizeSet.setSize(e),this}setOffset(e){return this.sizeSet.setOffset(e),this}isSharedViewSet(){return this.sizeSet.isShared()}getNode(e){return e<this.collectedNodes.length?this.collectedNodes[e]:null}getCurrentNode(){const e=this.collectedNodes.length;return e>0?this.collectedNodes[e-1]:null}applyCommand(e){const{rootNode:n}=this,[r,i,o,s]=e,a=this.nodesPool(i);switch(this.collectedNodes.push(a),r){case"prepend":n.insertBefore(a,n.firstChild);break;case"append":n.appendChild(a);break;case"insert_before":n.insertBefore(a,this.nodesPool(o)),n.removeChild(this.nodesPool(s));break;case"replace":n.replaceChild(a,this.nodesPool(o));break;case"remove":n.removeChild(a);break}}start(){this.collectedNodes.length=0,this.leads=this.viewDiffer.diff()}render(){this.leads.length>0&&this.applyCommand(this.leads.shift())}end(){for(;this.leads.length>0;)this.applyCommand(this.leads.shift())}}class gD extends fD{prependView(e){return this.sizeSet.prepend(e.sizeSet),e.sizeSet.append(this.sizeSet),this}appendView(e){return this.sizeSet.append(e.sizeSet),e.sizeSet.prepend(this.sizeSet),this}}function SO(t,e,n){return(e=VG(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function VG(t){var e=WG(t,"string");return typeof e=="symbol"?e:e+""}function WG(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}class BG{constructor(e){SO(this,"nodeType",void 0),SO(this,"pool",new Map),this.nodeType=e.toUpperCase()}setRootDocument(e){this.rootDocument=e}obtain(e,n){const i=typeof n=="number"?`${e}x${n}`:e.toString();if(this.pool.has(i))return this.pool.get(i);const o=this.rootDocument.createElement(this.nodeType);return this.pool.set(i,o),o}}function jh(t,e,n){return(e=jG(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function jG(t){var e=UG(t,"string");return typeof e=="symbol"?e:e+""}function UG(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}class Uf{constructor(e,n){jh(this,"nodesPool",null),jh(this,"nodeType",void 0),jh(this,"rootNode",void 0),jh(this,"table",null),jh(this,"renderedNodes",0),this.nodesPool=typeof e=="string"?new BG(e):null,this.nodeType=e,this.rootNode=n}setTable(e){this.nodesPool&&this.nodesPool.setRootDocument(e.rootDocument),this.table=e}adjust(){}render(){}}function RO(t,e,n){return(e=zG(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function zG(t){var e=YG(t,"string");return typeof e=="symbol"?e:e+""}function YG(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}class GG extends Uf{constructor(){super("TH"),RO(this,"orderViews",new WeakMap),RO(this,"sourceRowIndex",0)}obtainOrderView(e){let n;return this.orderViews.has(e)?n=this.orderViews.get(e):(n=new gD(e,r=>this.nodesPool.obtain(this.sourceRowIndex,r)),this.orderViews.set(e,n)),n}render(){const{rowsToRender:e,rowHeaderFunctions:n,rowHeadersCount:r,rows:i,cells:o}=this.table;for(let s=0;s<e;s++){const a=this.table.renderedRowToSource(s),l=i.getRenderedNode(s);this.sourceRowIndex=a;const u=this.obtainOrderView(l),c=o.obtainOrderView(l);u.appendView(c).setSize(r).setOffset(0).start();for(let h=r-1;h>=0;h--){u.render();const d=u.getCurrentNode();d.className="",d.removeAttribute("style"),mh(d,[new RegExp("aria-(.*)"),new RegExp("role")]),this.table.isAriaEnabled()&&ye(d,[OU(),FU(),GE(h+1),Vu(-1)]),n[h](a,d,h)}u.end()}}}class KG extends Uf{constructor(e){super(null,e)}adjust(){const{columnHeadersCount:e,rowHeadersCount:n}=this.table;let r=this.rootNode.firstChild;if(e){const{columnsToRender:i}=this.table,o=i+n;for(let a=0,l=e;a<l;a++){for(r=this.rootNode.childNodes[a],r||(r=this.table.rootDocument.createElement("tr"),this.rootNode.appendChild(r)),this.renderedNodes=r.childNodes.length;this.renderedNodes<o;)r.appendChild(this.table.rootDocument.createElement("th")),this.renderedNodes+=1;for(;this.renderedNodes>o;)r.removeChild(r.lastChild),this.renderedNodes-=1}const s=this.rootNode.childNodes.length;if(s>e)for(let a=e;a<s;a++)this.rootNode.removeChild(this.rootNode.lastChild)}else r&&va(r)}render(){const{columnHeadersCount:e}=this.table;this.table.isAriaEnabled()&&ye(this.rootNode,[RN()]);for(let n=0;n<e;n+=1){const{columnHeaderFunctions:r,columnsToRender:i,rowHeadersCount:o}=this.table,s=this.rootNode.childNodes[n];this.table.isAriaEnabled()&&ye(s,[wR(),MN(n+1)]);for(let a=-1*o;a<i;a+=1){const l=this.table.renderedColumnToSource(a),u=s.childNodes[a+o];u.className="",u.removeAttribute("style"),mh(u,[new RegExp("aria-(.*)"),new RegExp("role")]),this.table.isAriaEnabled()&&ye(u,[GE(a+1+this.table.rowHeadersCount),Vu(-1),xU(),...a>=0?[$U()]:[wR()]]),r[n](l,u,n)}}}}let EO=!1;class qG extends Uf{constructor(e){super(null,e)}adjust(){const{columnsToRender:e,rowHeadersCount:n}=this.table,r=e+n;for(;this.renderedNodes<r;)this.rootNode.appendChild(this.table.rootDocument.createElement("col")),this.renderedNodes+=1;for(;this.renderedNodes>r;)this.rootNode.removeChild(this.rootNode.lastChild),this.renderedNodes-=1}render(){this.adjust();const{columnsToRender:e,rowHeadersCount:n}=this.table;!EO&&e>1e3&&(EO=!0,Ze(nt`Performance tip: Handsontable rendered more than 1000 visible columns.\x20
|
|
41
41
|
Consider limiting the number of rendered columns by specifying the table width and/or\x20
|
|
42
42
|
turning off the "renderAllColumns" option.`));for(let i=0;i<n;i++){const o=this.table.renderedColumnToSource(i),s=this.table.columnUtils.getHeaderWidth(o);this.rootNode.childNodes[i].style.width=`${s}px`}for(let i=0;i<e;i++){const o=this.table.renderedColumnToSource(i),s=this.table.columnUtils.getWidth(o);this.rootNode.childNodes[i+n].style.width=`${s}px`}const r=this.rootNode.firstChild;r&&G(r,"rowHeader")}}function XG(t,e,n){return(e=ZG(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function ZG(t){var e=QG(t,"string");return typeof e=="symbol"?e:e+""}function QG(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}const Xu={rowEven:"ht__row_even",rowOdd:"ht__row_odd"};let TO=!1;class JG extends Uf{constructor(e){super("TR",e),XG(this,"orderView",void 0),this.orderView=new fD(e,n=>this.nodesPool.obtain(n))}getRenderedNode(e){return this.orderView.getNode(e)}hasStaleContent(e){return this.orderView.hasStaleContent(e)}render(){const{rowsToRender:e}=this.table;!TO&&e>1e3&&(TO=!0,Ze(nt`Performance tip: Handsontable rendered more than 1000 visible rows.\x20
|
|
43
43
|
Consider limiting the number of rendered rows by specifying the table height and/or\x20
|
|
@@ -52,7 +52,7 @@ X.version="2.30.1";bV(Et);X.fn=Q;X.min=uB;X.max=cB;X.now=hB;X.utc=xs;X.unix=Fj;X
|
|
|
52
52
|
the coordinates as an array of arrays ([[rowStart, columnStart/columnPropStart, rowEnd,\x20
|
|
53
53
|
columnEnd/columnPropEnd]]) or as an array of CellRange objects.`);const i=pf(r,{createCellCoords:function(){return n.tableProps.createCellCoords(...arguments)},createCellRange:function(){return n.tableProps.createCellRange(...arguments)},propToCol:l=>this.tableProps.propToCol(l),keepDirection:!0}),o=this.settings.navigableHeaders,s={countRows:this.tableProps.countRows(),countCols:this.tableProps.countCols(),countRowHeaders:o?this.tableProps.countRowHeaders():0,countColHeaders:o?this.tableProps.countColHeaders():0},a=!e.some(l=>{const u=i(l),c=u.isValid(s);return!(c&&!u.containsHeaders()||c&&u.containsHeaders()&&u.isSingleHeader())});return a&&(this.clear(),this.setExpectedLayers(e.length),M(e,l=>{const{from:u,to:c}=i(l);this.setRangeStartOnly(u.clone(),!1),this.setRangeEnd(c.clone())}),this.finish()),a}selectColumns(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;const i=typeof e=="string"?this.tableProps.propToCol(e):e,o=typeof n=="string"?this.tableProps.propToCol(n):n,s=this.tableProps.countRows(),a=this.tableProps.countCols(),l=this.tableProps.countColHeaders(),u=l===0?0:-l,c=this.tableProps.createCellCoords(u,i),h=this.tableProps.createCellCoords(s-1,o),d=this.tableProps.createCellRange(c,c,h).isValid({countRows:s,countCols:a,countRowHeaders:0,countColHeaders:l});if(d){let f=0,g=0;Number.isInteger(r==null?void 0:r.row)&&Number.isInteger(r==null?void 0:r.col)?(f=Ue(r.row,u,s-1),g=Ue(r.col,Math.min(i,o),Math.max(i,o))):(f=Ue(r,u,s-1),g=i);const C=this.tableProps.createCellCoords(f,g),y=l===0?0:Ue(C.row,u,-1),E=s-1,v=this.tableProps.createCellCoords(y,i),P=this.tableProps.createCellCoords(E,o);this.runLocalHooks("beforeSelectColumns",v,P,C),v.row=y,P.row=E,this.setRangeStartOnly(v,void 0,C),this.selectedByColumnHeader.add(this.getLayerLevel()),this.setRangeEnd(P),this.runLocalHooks("afterSelectColumns",v,P,C),this.finish()}return d}selectRows(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;const i=this.tableProps.countRows(),o=this.tableProps.countCols(),s=this.tableProps.countRowHeaders(),a=s===0?0:-s,l=this.tableProps.createCellCoords(e,a),u=this.tableProps.createCellCoords(n,o-1),c=this.tableProps.createCellRange(l,l,u).isValid({countRows:i,countCols:o,countRowHeaders:s,countColHeaders:0});if(c){let h=0,d=0;Number.isInteger(r==null?void 0:r.row)&&Number.isInteger(r==null?void 0:r.col)?(h=Ue(r.row,Math.min(e,n),Math.max(e,n)),d=Ue(r.col,a,o-1)):(h=e,d=Ue(r,a,o-1));const f=this.tableProps.createCellCoords(h,d),g=s===0?0:Ue(f.col,a,-1),C=o-1,y=this.tableProps.createCellCoords(e,g),E=this.tableProps.createCellCoords(n,C);this.runLocalHooks("beforeSelectRows",y,E,f),y.col=g,E.col=C,this.setRangeStartOnly(y,void 0,f),this.selectedByRowHeader.add(this.getLayerLevel()),this.setRangeEnd(E),this.runLocalHooks("afterSelectRows",y,E,f),this.finish()}return c}refresh(){if(!this.isSelected())return;const e=this.tableProps.countRows(),n=this.tableProps.countCols();if(e===0||n===0){this.deselect();return}const r=this.selectedRange.peekByIndex(this.selectedRange.size()-1),{from:i,to:o,highlight:s}=r;this.clear(),s.assign({row:Ue(s.row,-1/0,e-1),col:Ue(s.col,-1/0,n-1)}),i.assign({row:Ue(i.row,-1/0,e-1),col:Ue(i.col,-1/0,n-1)}),o.assign({row:Ue(o.row,0,e-1),col:Ue(o.col,0,n-1)}),this.selectedRange.ranges.push(r),this.highlight.isEnabledFor(Wd,this.selectedRange.current().highlight)&&this.highlight.getFocus().add(s).commit().syncWith(r),this.applyAndCommit(r)}commit(){if(this.highlight.getCustomSelections().forEach(i=>{i.commit()}),!this.isSelected())return;const n=this.getLayerLevel(),r=this.selectedRange.current();this.highlight.isEnabledFor(Wd,r.highlight)&&this.highlight.getFocus().commit().syncWith(r);for(let i=0;i<this.selectedRange.size();i+=1){this.highlight.useLayerLevel(i);const o=this.highlight.createArea(),s=this.highlight.createLayeredArea(),a=this.highlight.createRowHeader(),l=this.highlight.createColumnHeader(),u=this.highlight.createActiveRowHeader(),c=this.highlight.createActiveColumnHeader(),h=this.highlight.createActiveCornerHeader(),d=this.highlight.createRowHighlight(),f=this.highlight.createColumnHighlight();o.commit(),s.commit(),a.commit(),l.commit(),u.commit(),c.commit(),h.commit(),d.commit(),f.commit()}this.highlight.useLayerLevel(n)}}ut(jD,Rn);const cx=/^(\r\n|\n\r|\r|\n)/,Xq=/^[^\t\r\n]+/,hx=/^\t/;function Zq(t){const e=[[""]];if(t.length===0)return e;let n=0,r=0,i;for(;t.length>0&&i!==t.length;)if(i=t.length,t.match(hx))t=t.replace(hx,""),n+=1,e[r][n]="";else if(t.match(cx))t=t.replace(cx,""),n=0,r+=1,e[r]=[""];else{let o="";if(t.startsWith('"')){let s=0,a=!0;for(;a;){const l=t.slice(0,1);l==='"'&&(s+=1),o+=l,t=t.slice(1),(t.length===0||t.match(/^[\t\r\n]/)&&s%2===0)&&(a=!1)}o=o.replace(/^"/,"").replace(/"$/,"").replace(/["]*/g,l=>new Array(Math.floor(l.length/2)).fill('"').join(""))}else{const s=t.match(Xq);o=s?s[0]:"",t=t.slice(o.length)}e[r][n]=o}return e}function jd(t){let e,n,r,i,o="",s;for(e=0,n=t.length;e<n;e+=1){for(i=t[e].length,r=0;r<i;r+=1)r>0&&(o+=" "),s=t[e][r],typeof s=="string"?s.indexOf(`
|
|
54
54
|
`)>-1?o+=`"${s.replace(/"/g,'""')}"`:o+=s:s==null?o+="":o+=s;e!==n-1&&(o+=`
|
|
55
|
-
`)}return o}function xl(t,e,n){return(e=Qq(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Qq(t){var e=Jq(t,"string");return typeof e=="symbol"?e:e+""}function Jq(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}class Fc{static get DESTINATION_RENDERER(){return 1}static get DESTINATION_CLIPBOARD_GENERATOR(){return 2}constructor(e,n,r){xl(this,"hot",void 0),xl(this,"metaManager",void 0),xl(this,"tableMeta",void 0),xl(this,"dataSource",void 0),xl(this,"duckSchema",void 0),xl(this,"colToPropCache",void 0),xl(this,"propToColCache",void 0),this.hot=e,this.metaManager=r,this.tableMeta=r.getTableMeta(),this.dataSource=n,this.refreshDuckSchema(),this.createMap()}createMap(){const e=this.getSchema();if(typeof e>"u")throw new Error("trying to create `columns` definition but you didn't provide `schema` nor `data`");const n=this.tableMeta.columns;let r;if(this.colToPropCache=[],this.propToColCache=new Map,n){let i=0,o=0,s=!1;if(typeof n=="function"){const a=JE(e);i=a>0?a:this.countFirstRowKeys(),s=!0}else{const a=this.tableMeta.maxCols;i=Math.min(a,n.length)}for(r=0;r<i;r++){const a=s?n(r):n[r];if(Ae(a)){if(typeof a.data<"u"){const l=s?o:r;this.colToPropCache[l]=a.data,this.propToColCache.set(a.data,l)}o+=1}}}else this.recursiveDuckColumns(e)}countFirstRowKeys(){return MD(this.dataSource)}recursiveDuckColumns(e,n,r){let i=n,o=r,s;return typeof i>"u"&&(i=0,o=""),typeof e=="object"&&!Array.isArray(e)&&He(e,(a,l)=>{a===null?(s=o+l,this.colToPropCache.push(s),this.propToColCache.set(s,i),i+=1):i=this.recursiveDuckColumns(a,i,`${l}.`)}),i}colToProp(e){if(Number.isInteger(e)===!1)return e;const n=this.hot.toPhysicalColumn(e);return n===null?e:this.colToPropCache&&ae(this.colToPropCache[n])?this.colToPropCache[n]:n}propToCol(e){const n=this.propToColCache.get(e);if(ae(n))return this.hot.toVisualColumn(n);const r=this.hot.toVisualColumn(e);return r===null?e:r}getSchema(){const e=this.tableMeta.dataSchema;return e?typeof e=="function"?e():e:this.duckSchema}createDuckSchema(){return this.dataSource&&this.dataSource[0]?ff(this.dataSource[0]):{}}refreshDuckSchema(){this.duckSchema=this.createDuckSchema()}createRow(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,{source:r,mode:i="above"}=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const o=this.hot.countSourceRows();let s=o,a=0,l=e;if((typeof l!="number"||l>=o)&&(l=o),l<this.hot.countRows()&&(s=this.hot.toPhysicalRow(l)),this.hot.runHooks("beforeCreateRow",l,n,r)===!1||s===null)return{delta:0};const c=this.tableMeta.maxRows,h=this.getSchema().length,d=[];for(;a<n&&o+a<c;){let g=null;this.hot.dataType==="array"?this.tableMeta.dataSchema?g=Gn(this.getSchema()):(g=[],de(h-1,()=>g.push(null))):this.hot.dataType==="function"?g=this.tableMeta.dataSchema(l+a):(g={},Tw(g,this.getSchema())),d.push(g),a+=1}this.hot.rowIndexMapper.insertIndexes(l,a),i==="below"&&(s=Math.min(s+1,o)),this.spliceData(s,0,d);const f=this.hot.toVisualRow(s);return this.hot.countSourceRows()===d.length&&this.hot.columnIndexMapper.initToLength(this.hot.getInitialColumnCount()),a>0&&(e==null?this.metaManager.createRow(null,a):r!=="auto"&&this.metaManager.createRow(s,n)),this.hot.runHooks("afterCreateRow",f,a,r),{delta:a,startPhysicalIndex:s}}createCol(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,{source:r,mode:i="start"}=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(!this.hot.isColumnModificationAllowed())throw new Error("Cannot create new column. When data source in an object, you can only have as much columns as defined in first data row, data schema or in the 'columns' setting.If you want to be able to add new columns, you have to use array datasource.");const o=this.dataSource,s=this.tableMeta.maxCols,a=this.hot.countSourceCols();let l=e;if((typeof l!="number"||l>=a)&&(l=a),this.hot.runHooks("beforeCreateCol",l,n,r)===!1)return{delta:0};let c=a;l<this.hot.countCols()&&(c=this.hot.toPhysicalColumn(l));const h=this.hot.countSourceRows();let d=this.hot.countCols(),f=0,g=c;i==="end"&&(g=Math.min(g+1,a));const C=g;for(;f<n&&d<s;){if(typeof l!="number"||l>=d)if(h>0)for(let E=0;E<h;E+=1)typeof o[E]>"u"&&(o[E]=[]),o[E].push(null);else o.push([null]);else for(let E=0;E<h;E++)o[E].splice(g,0,null);f+=1,g+=1,d+=1}this.hot.columnIndexMapper.insertIndexes(l,f),f>0&&(e==null?this.metaManager.createColumn(null,f):r!=="auto"&&this.metaManager.createColumn(C,n));const y=this.hot.toVisualColumn(C);return this.hot.runHooks("afterCreateCol",y,f,r),this.refreshDuckSchema(),{delta:f,startPhysicalIndex:C}}removeRow(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,r=arguments.length>2?arguments[2]:void 0,i=Number.isInteger(e)?e:-n;const o=this.visualRowsToPhysical(i,n),s=this.hot.countSourceRows();if(i=(s+i)%s,this.hot.runHooks("beforeRemoveRow",i,o.length,o,r)===!1)return!1;const l=o.length;if(this.filterData(i,l,o),i<this.hot.countRows()){this.hot.rowIndexMapper.removeIndexes(o);const c=ae(this.tableMeta.columns)||ae(this.tableMeta.dataSchema)||this.tableMeta.colHeaders;this.hot.rowIndexMapper.getNotTrimmedIndexesLength()===0&&!c&&this.hot.columnIndexMapper.setIndexesSequence([])}return o.slice(0).sort((c,h)=>h-c).forEach(c=>{this.metaManager.removeRow(c,1)}),this.hot.runHooks("afterRemoveRow",i,l,o,r),!0}removeCol(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,r=arguments.length>2?arguments[2]:void 0;if(this.hot.dataType==="object"||this.tableMeta.columns)throw new Error("cannot remove column with object data source or columns option specified");let i=typeof e!="number"?-n:e;i=(this.hot.countCols()+i)%this.hot.countCols();const o=this.visualColumnsToPhysical(i,n),s=o.slice(0).sort((h,d)=>d-h);if(this.hot.runHooks("beforeRemoveCol",i,n,o,r)===!1)return!1;let l=!0;const u=s.length,c=this.dataSource;for(let h=0;h<u;h++)l&&o[0]!==o[h]-h&&(l=!1);if(l)for(let h=0,d=this.hot.countSourceRows();h<d;h++)c[h].splice(o[0],n),h===0&&this.metaManager.removeColumn(o[0],n);else for(let h=0,d=this.hot.countSourceRows();h<d;h++)for(let f=0;f<u;f++)c[h].splice(s[f],1),h===0&&this.metaManager.removeColumn(s[f],1);return i<this.hot.countCols()&&(this.hot.columnIndexMapper.removeIndexes(o),!this.tableMeta.rowHeaders&&this.hot.columnIndexMapper.getNotTrimmedIndexesLength()===0&&this.hot.rowIndexMapper.setIndexesSequence([])),this.hot.runHooks("afterRemoveCol",i,n,o,r),this.refreshDuckSchema(),!0}spliceCol(e,n,r){const i=this.hot.getDataAtCol(e),o=i.slice(n,n+r),s=i.slice(n+r);for(var a=arguments.length,l=new Array(a>3?a-3:0),u=3;u<a;u++)l[u-3]=arguments[u];wP(l,s);let c=0;for(;c<r;)l.push(null),c+=1;return bU(l),this.hot.populateFromArray(n,e,l,null,null,"spliceCol"),o}spliceRow(e,n,r){const i=this.hot.getSourceDataAtRow(e),o=i.slice(n,n+r),s=i.slice(n+r);for(var a=arguments.length,l=new Array(a>3?a-3:0),u=3;u<a;u++)l[u-3]=arguments[u];wP(l,s);let c=0;for(;c<r;)l.push(null),c+=1;return this.hot.populateFromArray(e,n,[l],null,null,"spliceRow"),o}spliceData(e,n,r){if(this.hot.runHooks("beforeDataSplice",e,n,r)!==!1){const o=[...this.dataSource.slice(0,e),...r,...this.dataSource.slice(e)];this.dataSource.length=0,o.forEach(s=>this.dataSource.push(s))}}filterData(e,n,r){let i=this.hot.runHooks("filterData",e,n,r);Array.isArray(i)===!1&&(i=this.dataSource.filter((o,s)=>r.indexOf(s)===-1)),this.dataSource.length=0,Array.prototype.push.apply(this.dataSource,i)}get(e,n){const r=this.hot.toPhysicalRow(e);let i=this.dataSource[r];const o=this.hot.runHooks("modifyRowData",r);i=isNaN(o)?o:i;const{dataDotNotation:s}=this.hot.getSettings();let a=null;if(i&&i.hasOwnProperty&&tn(i,n))a=i[n];else if(s&&typeof n=="string"&&n.indexOf(".")>-1){let l=i;if(!l)return null;const u=n.split(".");for(let c=0,h=u.length;c<h;c++)if(l=l[u[c]],typeof l>"u")return null;a=l}else typeof n=="function"&&(a=n(this.dataSource.slice(r,r+1)[0]));if(this.hot.hasHook("modifyData")){const l=zi(a);this.hot.runHooks("modifyData",r,this.propToCol(n),l,"get"),l.isTouched()&&(a=l.value)}return a}getCopyable(e,n){return this.hot.getCellMeta(e,this.propToCol(n)).copyable?this.get(e,n):""}set(e,n,r){const i=this.hot.toPhysicalRow(e);let o=r,s=this.dataSource[i];const a=this.hot.runHooks("modifyRowData",i);if(s=isNaN(a)?a:s,this.hot.hasHook("modifyData")){const u=zi(o);this.hot.runHooks("modifyData",i,this.propToCol(n),u,"set"),u.isTouched()&&(o=u.value)}const{dataDotNotation:l}=this.hot.getSettings();if(s&&s.hasOwnProperty&&tn(s,n))s[n]=o;else if(l&&typeof n=="string"&&n.indexOf(".")>-1){let u=s,c=0,h;const d=n.split(".");for(c=0,h=d.length-1;c<h;c++){if(d[c]==="__proto__"||d[c]==="constructor"||d[c]==="prototype")return;typeof u[d[c]]>"u"&&(u[d[c]]={}),u=u[d[c]]}u[d[c]]=o}else if(typeof n=="function")n(this.dataSource.slice(i,i+1)[0],o);else{if(n==="__proto__"||n==="constructor"||n==="prototype")return;s[n]=o}}visualRowsToPhysical(e,n){const r=this.hot.countSourceRows(),i=[];let o=(r+e)%r,s=n,a;for(;o<r&&s;)a=this.hot.toPhysicalRow(o),i.push(a),s-=1,o+=1;return i}visualColumnsToPhysical(e,n){const r=this.hot.countCols(),i=[];let o=(r+e)%r,s=n;for(;o<r&&s;){const a=this.hot.toPhysicalColumn(o);i.push(a),s-=1,o+=1}return i}clear(){for(let e=0;e<this.hot.countSourceRows();e++)for(let n=0;n<this.hot.countCols();n++)this.set(e,this.colToProp(n),"")}getLength(){const e=this.tableMeta.maxRows;let n;e<0||e===0?n=0:n=e||1/0;const r=this.hot.rowIndexMapper.getNotTrimmedIndexesLength();return Math.min(r,n)}getAll(){const e={row:0,col:0},n={row:Math.max(this.hot.countRows()-1,0),col:Math.max(this.hot.countCols()-1,0)};return e.row-n.row===0&&!this.hot.countSourceRows()?[]:this.getRange(e,n,Fc.DESTINATION_RENDERER)}countCachedColumns(){return this.colToPropCache.length}getRange(e,n,r){const i=[];let o,s,a;const l=this.tableMeta.maxRows,u=this.tableMeta.maxCols;if(l===0||u===0)return[];const c=r===Fc.DESTINATION_CLIPBOARD_GENERATOR?this.getCopyable:this.get,h=Math.min(Math.max(l-1,0),Math.max(e.row,n.row)),d=Math.min(Math.max(u-1,0),Math.max(e.col,n.col));for(o=Math.min(e.row,n.row);o<=h;o++){a=[];const f=o>=0?this.hot.toPhysicalRow(o):o;for(s=Math.min(e.col,n.col);s<=d&&f!==null;s++)a.push(c.call(this,o,this.colToProp(s)));f!==null&&i.push(a)}return i}getText(e,n){return jd(this.getRange(e,n,Fc.DESTINATION_RENDERER))}getCopyableText(e,n){return jd(this.getRange(e,n,Fc.DESTINATION_CLIPBOARD_GENERATOR))}destroy(){this.hot=null,this.metaManager=null,this.dataSource=null,this.duckSchema=null,this.colToPropCache.length=0,this.propToColCache.clear(),this.propToColCache=void 0}}const{register:e3,getItem:t3,hasItem:UD,getNames:Ble,getValues:jle}=qo("cellTypes");function n3(t){if(!UD(t))throw Error(`You declared cell type "${t}" as a string that is not mapped to a known object.
|
|
55
|
+
`)}return o}function xl(t,e,n){return(e=Qq(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Qq(t){var e=Jq(t,"string");return typeof e=="symbol"?e:e+""}function Jq(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}class Fc{static get DESTINATION_RENDERER(){return 1}static get DESTINATION_CLIPBOARD_GENERATOR(){return 2}constructor(e,n,r){xl(this,"hot",void 0),xl(this,"metaManager",void 0),xl(this,"tableMeta",void 0),xl(this,"dataSource",void 0),xl(this,"duckSchema",void 0),xl(this,"colToPropCache",void 0),xl(this,"propToColCache",void 0),this.hot=e,this.metaManager=r,this.tableMeta=r.getTableMeta(),this.dataSource=n,this.refreshDuckSchema(),this.createMap()}createMap(){const e=this.getSchema();if(typeof e>"u")throw new Error("trying to create `columns` definition but you didn't provide `schema` nor `data`");const n=this.tableMeta.columns;let r;if(this.colToPropCache=[],this.propToColCache=new Map,n){let i=0,o=0,s=!1;if(typeof n=="function"){const a=JE(e);i=a>0?a:this.countFirstRowKeys(),s=!0}else{const a=this.tableMeta.maxCols;i=Math.min(a,n.length)}for(r=0;r<i;r++){const a=s?n(r):n[r];if(Ae(a)){if(typeof a.data<"u"){const l=s?o:r;this.colToPropCache[l]=a.data,this.propToColCache.set(a.data,l)}o+=1}}}else this.recursiveDuckColumns(e)}countFirstRowKeys(){return MD(this.dataSource)}recursiveDuckColumns(e,n,r){let i=n,o=r,s;return typeof i>"u"&&(i=0,o=""),typeof e=="object"&&!Array.isArray(e)&&He(e,(a,l)=>{a===null?(s=o+l,this.colToPropCache.push(s),this.propToColCache.set(s,i),i+=1):i=this.recursiveDuckColumns(a,i,`${l}.`)}),i}colToProp(e){if(Number.isInteger(e)===!1)return e;const n=this.hot.toPhysicalColumn(e);return n===null?e:this.colToPropCache&&ae(this.colToPropCache[n])?this.colToPropCache[n]:n}propToCol(e){const n=this.propToColCache.get(e);if(ae(n))return this.hot.toVisualColumn(n);const r=this.hot.toVisualColumn(e);return r===null?e:r}getSchema(){const e=this.tableMeta.dataSchema;return e?typeof e=="function"?e():e:this.duckSchema}createDuckSchema(){return this.dataSource&&this.dataSource[0]?ff(this.dataSource[0]):{}}refreshDuckSchema(){this.duckSchema=this.createDuckSchema()}createRow(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,{source:r,mode:i="above"}=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const o=this.hot.countSourceRows();let s=o,a=0,l=e;if((typeof l!="number"||l>=o)&&(l=o),l<this.hot.countRows()&&(s=this.hot.toPhysicalRow(l)),this.hot.runHooks("beforeCreateRow",l,n,r)===!1||s===null)return{delta:0};const c=this.tableMeta.maxRows,h=this.getSchema().length,d=[];for(;a<n&&o+a<c;){let g=null;this.hot.dataType==="array"?this.tableMeta.dataSchema?g=Gn(this.getSchema()):(g=[],de(h-1,()=>g.push(null))):this.hot.dataType==="function"?g=this.tableMeta.dataSchema(l+a):(g={},Tw(g,this.getSchema())),d.push(g),a+=1}this.hot.rowIndexMapper.insertIndexes(l,a),i==="below"&&(s=Math.min(s+1,o)),this.spliceData(s,0,d);const f=this.hot.toVisualRow(s);return this.hot.countSourceRows()===d.length&&this.hot.columnIndexMapper.initToLength(this.hot.getInitialColumnCount()),a>0&&(e==null?this.metaManager.createRow(null,a):r!=="auto"&&this.metaManager.createRow(s,n)),this.hot.runHooks("afterCreateRow",f,a,r),{delta:a,startPhysicalIndex:s}}createCol(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,{source:r,mode:i="start"}=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(!this.hot.isColumnModificationAllowed())throw new Error("Cannot create new column. When data source in an object, you can only have as much columns as defined in first data row, data schema or in the 'columns' setting.If you want to be able to add new columns, you have to use array datasource.");const o=this.dataSource,s=this.tableMeta.maxCols,a=this.hot.countSourceCols();let l=e;if((typeof l!="number"||l>=a)&&(l=a),this.hot.runHooks("beforeCreateCol",l,n,r)===!1)return{delta:0};let c=a;l<this.hot.countCols()&&(c=this.hot.toPhysicalColumn(l));const h=this.hot.countSourceRows();let d=this.hot.countCols(),f=0,g=c;i==="end"&&(g=Math.min(g+1,a));const C=g;for(;f<n&&d<s;){if(typeof l!="number"||l>=d)if(h>0)for(let E=0;E<h;E+=1)typeof o[E]>"u"&&(o[E]=[]),o[E].push(null);else o.push([null]);else for(let E=0;E<h;E++)o[E].splice(g,0,null);f+=1,g+=1,d+=1}this.hot.columnIndexMapper.insertIndexes(l,f),f>0&&(e==null?this.metaManager.createColumn(null,f):r!=="auto"&&this.metaManager.createColumn(C,n));const y=this.hot.toVisualColumn(C);return this.hot.runHooks("afterCreateCol",y,f,r),this.refreshDuckSchema(),{delta:f,startPhysicalIndex:C}}removeRow(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,r=arguments.length>2?arguments[2]:void 0,i=Number.isInteger(e)?e:-n;const o=this.visualRowsToPhysical(i,n),s=this.hot.countSourceRows();if(i=(s+i)%s,this.hot.runHooks("beforeRemoveRow",i,o.length,o,r)===!1)return!1;const l=o.length;if(this.filterData(i,l,o),i<this.hot.countRows()){this.hot.rowIndexMapper.removeIndexes(o);const c=ae(this.tableMeta.columns)||ae(this.tableMeta.dataSchema)||this.tableMeta.colHeaders;this.hot.rowIndexMapper.getNotTrimmedIndexesLength()===0&&!c&&this.hot.columnIndexMapper.setIndexesSequence([])}return o.slice(0).sort((c,h)=>h-c).forEach(c=>{this.metaManager.removeRow(c,1)}),this.hot.runHooks("afterRemoveRow",i,l,o,r),!0}removeCol(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,r=arguments.length>2?arguments[2]:void 0;if(this.hot.dataType==="object"||this.tableMeta.columns)throw new Error("cannot remove column with object data source or columns option specified");let i=typeof e!="number"?-n:e;i=(this.hot.countCols()+i)%this.hot.countCols();const o=this.visualColumnsToPhysical(i,n),s=o.slice(0).sort((h,d)=>d-h);if(this.hot.runHooks("beforeRemoveCol",i,n,o,r)===!1)return!1;let l=!0;const u=s.length,c=this.dataSource;for(let h=0;h<u;h++)l&&o[0]!==o[h]-h&&(l=!1);if(l)for(let h=0,d=this.hot.countSourceRows();h<d;h++)c[h].splice(o[0],n),h===0&&this.metaManager.removeColumn(o[0],n);else for(let h=0,d=this.hot.countSourceRows();h<d;h++)for(let f=0;f<u;f++)c[h].splice(s[f],1),h===0&&this.metaManager.removeColumn(s[f],1);return i<this.hot.countCols()&&(this.hot.columnIndexMapper.removeIndexes(o),!this.tableMeta.rowHeaders&&this.hot.columnIndexMapper.getNotTrimmedIndexesLength()===0&&this.hot.rowIndexMapper.setIndexesSequence([])),this.hot.runHooks("afterRemoveCol",i,n,o,r),this.refreshDuckSchema(),!0}spliceCol(e,n,r){const i=this.hot.getDataAtCol(e),o=i.slice(n,n+r),s=i.slice(n+r);for(var a=arguments.length,l=new Array(a>3?a-3:0),u=3;u<a;u++)l[u-3]=arguments[u];wP(l,s);let c=0;for(;c<r;)l.push(null),c+=1;return bU(l),this.hot.populateFromArray(n,e,l,null,null,"spliceCol"),o}spliceRow(e,n,r){const i=this.hot.getSourceDataAtRow(e),o=i.slice(n,n+r),s=i.slice(n+r);for(var a=arguments.length,l=new Array(a>3?a-3:0),u=3;u<a;u++)l[u-3]=arguments[u];wP(l,s);let c=0;for(;c<r;)l.push(null),c+=1;return this.hot.populateFromArray(e,n,[l],null,null,"spliceRow"),o}spliceData(e,n,r){if(this.hot.runHooks("beforeDataSplice",e,n,r)!==!1){const o=[...this.dataSource.slice(0,e),...r,...this.dataSource.slice(e)];this.dataSource.length=0,o.forEach(s=>this.dataSource.push(s))}}filterData(e,n,r){let i=this.hot.runHooks("filterData",e,n,r);Array.isArray(i)===!1&&(i=this.dataSource.filter((o,s)=>r.indexOf(s)===-1)),this.dataSource.length=0,Array.prototype.push.apply(this.dataSource,i)}get(e,n){const r=this.hot.toPhysicalRow(e);let i=this.dataSource[r];const o=this.hot.runHooks("modifyRowData",r);i=isNaN(o)?o:i;const{dataDotNotation:s}=this.hot.getSettings();let a=null;if(i&&i.hasOwnProperty&&tn(i,n))a=i[n];else if(s&&typeof n=="string"&&n.indexOf(".")>-1){let l=i;if(!l)return null;const u=n.split(".");for(let c=0,h=u.length;c<h;c++)if(l=l[u[c]],typeof l>"u")return null;a=l}else typeof n=="function"&&(a=n(this.dataSource.slice(r,r+1)[0]));if(this.hot.hasHook("modifyData")){const l=zi(a);this.hot.runHooks("modifyData",r,this.propToCol(n),l,"get"),l.isTouched()&&(a=l.value)}return a}getCopyable(e,n){return this.hot.getCellMeta(e,this.propToCol(n)).copyable?this.get(e,n):""}set(e,n,r){const i=this.hot.toPhysicalRow(e);let o=r,s=this.dataSource[i];const a=this.hot.runHooks("modifyRowData",i);if(s=isNaN(a)?a:s,this.hot.hasHook("modifyData")){const u=zi(o);this.hot.runHooks("modifyData",i,this.propToCol(n),u,"set"),u.isTouched()&&(o=u.value)}const{dataDotNotation:l}=this.hot.getSettings();if(s&&s.hasOwnProperty&&tn(s,n))s[n]=o;else if(l&&typeof n=="string"&&n.indexOf(".")>-1){let u=s,c=0,h;const d=n.split(".");for(c=0,h=d.length-1;c<h;c++){if(d[c]==="__proto__"||d[c]==="constructor"||d[c]==="prototype")return;typeof u[d[c]]>"u"&&(u[d[c]]={}),u=u[d[c]]}u[d[c]]=o}else if(typeof n=="function")n(this.dataSource.slice(i,i+1)[0],o);else{if(n==="__proto__"||n==="constructor"||n==="prototype")return;s[n]=o}}visualRowsToPhysical(e,n){const r=this.hot.countSourceRows(),i=[];let o=(r+e)%r,s=n,a;for(;o<r&&s;)a=this.hot.toPhysicalRow(o),i.push(a),s-=1,o+=1;return i}visualColumnsToPhysical(e,n){const r=this.hot.countCols(),i=[];let o=(r+e)%r,s=n;for(;o<r&&s;){const a=this.hot.toPhysicalColumn(o);i.push(a),s-=1,o+=1}return i}clear(){for(let e=0;e<this.hot.countSourceRows();e++)for(let n=0;n<this.hot.countCols();n++)this.set(e,this.colToProp(n),"")}getLength(){const e=this.tableMeta.maxRows;let n;e<0||e===0?n=0:n=e||1/0;const r=this.hot.rowIndexMapper.getNotTrimmedIndexesLength();return Math.min(r,n)}getAll(){const e={row:0,col:0},n={row:Math.max(this.hot.countRows()-1,0),col:Math.max(this.hot.countCols()-1,0)};return e.row-n.row===0&&!this.hot.countSourceRows()?[]:this.getRange(e,n,Fc.DESTINATION_RENDERER)}countCachedColumns(){return this.colToPropCache.length}getRange(e,n,r){const i=[];let o,s,a;const l=this.tableMeta.maxRows,u=this.tableMeta.maxCols;if(l===0||u===0)return[];const c=r===Fc.DESTINATION_CLIPBOARD_GENERATOR?this.getCopyable:this.get,h=Math.min(Math.max(l-1,0),Math.max(e.row,n.row)),d=Math.min(Math.max(u-1,0),Math.max(e.col,n.col));for(o=Math.min(e.row,n.row);o<=h;o++){a=[];const f=o>=0?this.hot.toPhysicalRow(o):o;for(s=Math.min(e.col,n.col);s<=d&&f!==null;s++)a.push(c.call(this,o,this.colToProp(s)));f!==null&&i.push(a)}return i}getText(e,n){return jd(this.getRange(e,n,Fc.DESTINATION_RENDERER))}getCopyableText(e,n){return jd(this.getRange(e,n,Fc.DESTINATION_CLIPBOARD_GENERATOR))}destroy(){this.hot=null,this.metaManager=null,this.dataSource=null,this.duckSchema=null,this.colToPropCache.length=0,this.propToColCache.clear(),this.propToColCache=void 0}}const{register:e3,getItem:t3,hasItem:UD,getNames:Wle,getValues:Ble}=qo("cellTypes");function n3(t){if(!UD(t))throw Error(`You declared cell type "${t}" as a string that is not mapped to a known object.
|
|
56
56
|
Cell type must be an object or a string mapped to an object registered by
|
|
57
57
|
"Handsontable.cellTypes.registerCellType" method`);return t3(t)}function Po(t,e){typeof t!="string"&&(e=t,t=e.CELL_TYPE);const{editor:n,renderer:r,validator:i}=e;n&&$i(t,n),r&&to(t,r),i&&xc(t,i),e3(t,e)}function r3(t,e){var n;return t==="CELL_TYPE"?!1:((n=e._automaticallyAssignedMetaProps)===null||n===void 0?void 0:n.has(t))||!tn(e,t)}function Lw(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:t;const r=typeof e.type=="string"?n3(e.type):e.type;if(t._automaticallyAssignedMetaProps&&He(e,(o,s)=>void t._automaticallyAssignedMetaProps.delete(s)),!Ae(r))return;n===t&&!t._automaticallyAssignedMetaProps&&(t._automaticallyAssignedMetaProps=new Set);const i={};He(r,(o,s)=>{if(r3(s,n)){var a;i[s]=o,(a=t._automaticallyAssignedMetaProps)===null||a===void 0||a.add(s)}}),rn(t,i)}function i3(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];function n(){}dz(n,t);for(let r=0;r<e.length;r++)n.prototype[e[r]]=void 0;return n}function qm(t){return Number.isInteger(t)&&t>=0}function Xm(t,e){if(!t())throw new Error(`Assertion failed: ${e}`)}function Ag(t){return t==null}const zD=()=>({_automaticallyAssignedMetaProps:void 0,activeHeaderClassName:"ht__active_highlight",allowEmpty:!0,allowHtml:!1,allowInsertColumn:!0,allowInsertRow:!0,allowInvalid:!0,allowRemoveColumn:!0,allowRemoveRow:!0,ariaTags:!0,autoColumnSize:void 0,autoRowSize:void 0,autoWrapCol:!1,autoWrapRow:!1,bindRowsWithHeaders:void 0,cell:[],cells:void 0,checkedTemplate:void 0,className:void 0,colHeaders:null,collapsibleColumns:void 0,columnHeaderHeight:void 0,columns:void 0,columnSorting:void 0,columnSummary:void 0,colWidths:void 0,commentedCellClassName:"htCommentCell",comments:!1,contextMenu:void 0,copyable:!0,copyPaste:!0,correctFormat:!1,currentColClassName:void 0,currentHeaderClassName:"ht__highlight",currentRowClassName:void 0,customBorders:!1,data:void 0,dataDotNotation:!0,dataSchema:void 0,dateFormat:"DD/MM/YYYY",timeFormat:"h:mm:ss a",datePickerConfig:void 0,defaultDate:void 0,disableVisualSelection:!1,dragToScroll:!0,dropdownMenu:void 0,editor:void 0,enterBeginsEditing:!0,enterMoves:{col:0,row:1},fillHandle:{autoInsertRow:!1},filter:!0,filteringCaseSensitive:!1,filters:void 0,fixedColumnsLeft:0,fixedColumnsStart:0,fixedRowsBottom:0,fixedRowsTop:0,formulas:void 0,fragmentSelection:!1,headerClassName:void 0,height:void 0,hiddenColumns:void 0,hiddenRows:void 0,invalidCellClassName:"htInvalid",imeFastEdit:!1,isEmptyCol(t){let e,n,r;for(e=0,n=this.countRows();e<n;e++)if(r=this.getDataAtCell(e,t),Ut(r)===!1)return!1;return!0},isEmptyRow(t){let e,n,r,i;for(e=0,n=this.countCols();e<n;e++)if(r=this.getDataAtCell(t,e),Ut(r)===!1)return typeof r=="object"?(i=this.getCellMeta(t,e),QE(this.getSchema()[i.prop],r)):!1;return!0},label:void 0,language:"en-US",layoutDirection:"inherit",licenseKey:void 0,locale:"en-US",manualColumnFreeze:void 0,manualColumnMove:void 0,manualColumnResize:void 0,manualRowMove:void 0,manualRowResize:void 0,maxCols:1/0,maxRows:1/0,mergeCells:!1,minCols:0,minRows:0,minSpareCols:0,minSpareRows:0,multiColumnSorting:void 0,navigableHeaders:!1,tabNavigation:!0,nestedHeaders:void 0,nestedRows:void 0,noWordWrapClassName:"htNoWrap",numericFormat:void 0,observeDOMVisibility:!0,outsideClickDeselects:!0,persistentState:void 0,placeholder:void 0,placeholderCellClassName:"htPlaceholder",preventOverflow:!1,preventWheel:!1,readOnly:!1,readOnlyCellClassName:"htDimmed",renderAllRows:!1,renderAllColumns:!1,renderer:void 0,rowHeaders:void 0,rowHeaderWidth:void 0,rowHeights:void 0,search:!1,selectionMode:"multiple",selectOptions:void 0,skipColumnOnPaste:!1,skipRowOnPaste:!1,sortByRelevance:!0,source:void 0,startCols:5,startRows:5,stretchH:"none",strict:void 0,tableClassName:void 0,themeName:void 0,tabMoves:{row:0,col:1},title:void 0,trimDropdown:!0,trimRows:void 0,trimWhitespace:!0,type:"text",uncheckedTemplate:void 0,undo:!0,validator:void 0,viewportColumnRenderingOffset:"auto",viewportRowRenderingOffset:"auto",viewportColumnRenderingThreshold:0,viewportRowRenderingThreshold:0,visibleRows:10,width:void 0,wordWrap:!0});function dx(t,e,n){return(e=o3(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function o3(t){var e=s3(t,"string");return typeof e=="symbol"?e:e+""}function s3(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function a3(){return class{}}class l3{constructor(e){dx(this,"metaCtor",a3()),dx(this,"meta",void 0),this.meta=this.metaCtor.prototype,rn(this.meta,zD()),this.meta.instance=e}getMetaConstructor(){return this.metaCtor}getMeta(){return this.meta}updateMeta(e){var n;rn(this.meta,e),Lw(this.meta,{...e,type:(n=e.type)!==null&&n!==void 0?n:this.meta.type},e)}}function u3(t,e,n){return(e=c3(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function c3(t){var e=h3(t,"string");return typeof e=="symbol"?e:e+""}function h3(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}class d3{constructor(e){u3(this,"meta",void 0);const n=e.getMetaConstructor();this.meta=new n}getMeta(){return this.meta}updateMeta(e){rn(this.meta,e),Lw(this.meta,e,e)}}function Hg(t,e,n){return(e=f3(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function f3(t){var e=g3(t,"string");return typeof e=="symbol"?e:e+""}function g3(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}class Sp{constructor(e){Hg(this,"valueFactory",void 0),Hg(this,"data",[]),Hg(this,"index",[]),Hg(this,"holes",new Set),this.valueFactory=e}obtain(e){Xm(()=>qm(e),"Expecting an unsigned number.");const n=this._getStorageIndexByKey(e);let r;if(n>=0)r=this.data[n],r===void 0&&(r=this.valueFactory(e),this.data[n]=r);else if(r=this.valueFactory(e),this.holes.size>0){const i=this.holes.values().next().value;this.holes.delete(i),this.data[i]=r,this.index[e]=i}else this.data.push(r),this.index[e]=this.data.length-1;return r}insert(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;Xm(()=>qm(e)||Ag(e),"Expecting an unsigned number or null/undefined argument.");const r=[],i=this.data.length;for(let s=0;s<n;s++)r.push(i+s),this.data.push(void 0);const o=Ag(e)?this.index.length:e;this.index=[...this.index.slice(0,o),...r,...this.index.slice(o)]}remove(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;Xm(()=>qm(e)||Ag(e),"Expecting an unsigned number or null/undefined argument.");const r=this.index.splice(Ag(e)?this.index.length-n:e,n);for(let i=0;i<r.length;i++){const o=r[i];typeof o=="number"&&this.holes.add(o)}}size(){return this.data.length-this.holes.size}values(){return this.data.filter((e,n)=>e!==void 0&&!this.holes.has(n))[Symbol.iterator]()}entries(){const e=[];for(let r=0;r<this.data.length;r++){const i=this._getKeyByStorageIndex(r);i!==-1&&this.data[r]!==void 0&&e.push([i,this.data[r]])}let n=0;return{next:()=>{if(n<e.length){const r=e[n];return n+=1,{value:r,done:!1}}return{done:!0}}}}clear(){this.data=[],this.index=[],this.holes.clear()}_getStorageIndexByKey(e){return this.index.length>e?this.index[e]:-1}_getKeyByStorageIndex(e){return this.index.indexOf(e)}[Symbol.iterator](){return this.entries()}}function fx(t,e,n){return(e=m3(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function m3(t){var e=p3(t,"string");return typeof e=="symbol"?e:e+""}function p3(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}const w3=["data","width"];class v3{constructor(e){fx(this,"globalMeta",void 0),fx(this,"metas",new Sp(()=>this._createMeta())),this.globalMeta=e,this.metas=new Sp(()=>this._createMeta())}updateMeta(e,n){const r=this.getMeta(e);rn(r,n),Lw(r,n)}createColumn(e,n){this.metas.insert(e,n)}removeColumn(e,n){this.metas.remove(e,n)}getMeta(e){return this.metas.obtain(e)}getMetaConstructor(e){return this.metas.obtain(e).constructor}clearCache(){this.metas.clear()}_createMeta(){return i3(this.globalMeta.getMetaConstructor(),w3).prototype}}function gx(t,e,n){return(e=C3(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function C3(t){var e=y3(t,"string");return typeof e=="symbol"?e:e+""}function y3(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}class b3{constructor(e){gx(this,"columnMeta",void 0),gx(this,"metas",new Sp(()=>this._createRow())),this.columnMeta=e}updateMeta(e,n,r){const i=this.getMeta(e,n);rn(i,r),Lw(i,r)}createRow(e,n){this.metas.insert(e,n)}createColumn(e,n){for(let r=0;r<this.metas.size();r++)this.metas.obtain(r).insert(e,n)}removeRow(e,n){this.metas.remove(e,n)}removeColumn(e,n){for(let r=0;r<this.metas.size();r++)this.metas.obtain(r).remove(e,n)}getMeta(e,n,r){const i=this.metas.obtain(e).obtain(n);return r===void 0?i:i[r]}setMeta(e,n,r,i){var o;const s=this.metas.obtain(e).obtain(n);(o=s._automaticallyAssignedMetaProps)===null||o===void 0||o.delete(r),s[r]=i}removeMeta(e,n,r){const i=this.metas.obtain(e).obtain(n);delete i[r]}getMetas(){const e=[],n=Array.from(this.metas.values());for(let r=0;r<n.length;r++)ae(n[r])&&e.push(...n[r].values());return e}getMetasAtRow(e){Xm(()=>qm(e),"Expecting an unsigned number.");const n=new Map(this.metas);return n.has(e)?Array.from(n.get(e).values()):[]}clearCache(){this.metas.clear()}_createRow(){return new Sp(e=>this._createMeta(e))}_createMeta(e){const n=this.columnMeta.getMetaConstructor(e);return new n}}class YD{constructor(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];this.hot=e,this.globalMeta=new l3(e),this.tableMeta=new d3(this.globalMeta),this.columnMeta=new v3(this.globalMeta),this.cellMeta=new b3(this.columnMeta),r.forEach(i=>new i(this)),this.globalMeta.updateMeta(n)}getGlobalMeta(){return this.globalMeta.getMeta()}updateGlobalMeta(e){this.globalMeta.updateMeta(e)}getTableMeta(){return this.tableMeta.getMeta()}updateTableMeta(e){this.tableMeta.updateMeta(e)}getColumnMeta(e){return this.columnMeta.getMeta(e)}updateColumnMeta(e,n){this.columnMeta.updateMeta(e,n)}getCellMeta(e,n,r){const i=this.cellMeta.getMeta(e,n);return i.visualRow=r.visualRow,i.visualCol=r.visualColumn,i.row=e,i.col=n,r.skipMetaExtension||this.runLocalHooks("afterGetCellMeta",i),i}getCellMetaKeyValue(e,n,r){if(typeof r!="string")throw new Error("The passed cell meta object key is not a string");return this.cellMeta.getMeta(e,n,r)}setCellMeta(e,n,r,i){this.cellMeta.setMeta(e,n,r,i)}updateCellMeta(e,n,r){this.cellMeta.updateMeta(e,n,r)}removeCellMeta(e,n,r){this.cellMeta.removeMeta(e,n,r)}getCellsMeta(){return this.cellMeta.getMetas()}getCellsMetaAtRow(e){return this.cellMeta.getMetasAtRow(e)}createRow(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;this.cellMeta.createRow(e,n)}removeRow(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;this.cellMeta.removeRow(e,n)}createColumn(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;this.cellMeta.createColumn(e,n),this.columnMeta.createColumn(e,n)}removeColumn(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;this.cellMeta.removeColumn(e,n),this.columnMeta.removeColumn(e,n)}clearCellsCache(){this.cellMeta.clearCache()}clearCache(){this.cellMeta.clearCache(),this.columnMeta.clearCache()}}ut(YD,Rn);function mx(t,e,n,r){const{hotInstance:i,dataMap:o,dataSource:s,internalSource:a,source:l,metaManager:u,firstRun:c}=r,h=Uo(a),d=i.getSettings();Array.isArray(d.dataSchema)?i.dataType="array":ot(d.dataSchema)?i.dataType="function":i.dataType="object",o&&o.destroy(),t=i.runHooks(`before${h}`,t,c,l);const f=new Fc(i,t,u);if(e(f),typeof t=="object"&&t!==null)t.push&&t.splice||(t=[t]);else if(t===null){const g=f.getSchema();t=[];let C,y=0,E=0;for(y=0,E=d.startRows;y<E;y++)if((i.dataType==="object"||i.dataType==="function")&&d.dataSchema)C=Gn(g),t.push(C);else if(i.dataType==="array")C=Gn(g[0]),t.push(C);else{C=[];for(let v=0,P=d.startCols;v<P;v++)C.push(null);t.push(C)}}else throw new Error(`${a} only accepts array of objects or array of arrays (${typeof t} given)`);Array.isArray(t[0])&&(i.dataType="array"),d.data=t,f.dataSource=t,s.data=t,s.dataType=i.dataType,s.colToProp=f.colToProp.bind(f),s.propToCol=f.propToCol.bind(f),s.countCachedColumns=f.countCachedColumns.bind(f),n(f),i.runHooks(`after${h}`,t,c,l),c||(i.runHooks("afterChange",null,a),i.render()),i.getSettings().ariaTags&&ye(i.rootElement,[_N(-1),bw(i.countCols()+(i.view?i.countRowHeaders():0))])}function px(t,e,n){return(e=S3(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function S3(t){var e=R3(t,"string");return typeof e=="symbol"?e:e+""}function R3(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}class E3{constructor(e){var n=this;px(this,"metaManager",void 0),px(this,"metaSyncMemo",new Map),this.metaManager=e,e.addLocalHook("afterGetCellMeta",function(){return n.extendCellMeta(...arguments)}),re.getSingleton().add("beforeRender",r=>{r&&this.metaSyncMemo.clear()},this.metaManager.hot)}extendCellMeta(e){var n;const{row:r,col:i}=e;if((n=this.metaSyncMemo.get(r))!==null&&n!==void 0&&n.has(i))return;const{visualRow:o,visualCol:s}=e,a=this.metaManager.hot,l=a.colToProp(s);e.prop=l,a.runHooks("beforeGetCellMeta",o,s,e);const u=tn(e,"type")?e.type:null;let c=ot(e.cells)?e.cells(r,i,l):null;if(u)if(c){var h;c.type=(h=c.type)!==null&&h!==void 0?h:u}else c={type:u};c&&this.metaManager.updateCellMeta(r,i,c),a.runHooks("afterGetCellMeta",o,s,e),this.metaSyncMemo.has(r)||this.metaSyncMemo.set(r,new Set),this.metaSyncMemo.get(r).add(i)}}function T3(t,e,n){_3(t,e),e.set(t,n)}function _3(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function yb(t,e,n){return(e=M3(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function M3(t){var e=I3(t,"string");return typeof e=="symbol"?e:e+""}function I3(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function P3(t,e){return t.get(O3(t,e))}function O3(t,e,n){if(typeof t=="function"?t===e:t.has(e))return arguments.length<3?e:n;throw new TypeError("Private element is not present on this object")}var wx=new WeakMap;class x3{constructor(e){yb(this,"metaManager",void 0),yb(this,"usageTracker",new Set),yb(this,"propDescriptors",new Map([["ariaTags",{initOnly:!0}],["fixedColumnsLeft",{target:"fixedColumnsStart",onChange(n){if(this.metaManager.hot.isRtl()&&n==="fixedColumnsLeft")throw new Error("The `fixedColumnsLeft` is not supported for RTL. Please use option `fixedColumnsStart`.");if(this.usageTracker.has("fixedColumnsLeft")&&this.usageTracker.has("fixedColumnsStart"))throw new Error("The `fixedColumnsLeft` and `fixedColumnsStart` should not be used together. Please use only the option `fixedColumnsStart`.")}}],["layoutDirection",{initOnly:!0}],["renderAllColumns",{initOnly:!0}],["renderAllRows",{initOnly:!0}]])),T3(this,wx,(n,r,i)=>{if(!i)throw new Error(`The \`${n}\` option can not be updated after the Handsontable is initialized.`)}),this.metaManager=e,this.extendMetaProps()}extendMetaProps(){this.propDescriptors.forEach((e,n)=>{const{initOnly:r,target:i,onChange:o}=e,s=typeof i=="string",a=s?i:n,l=`_${a}`;this.metaManager.globalMeta.meta[l]=this.metaManager.globalMeta.meta[a],o?(this.installPropWatcher(n,l,o),s&&this.installPropWatcher(i,l,o)):r&&(this.installPropWatcher(n,l,P3(wx,this)),this.metaManager.globalMeta.meta._initOnlySettings||(this.metaManager.globalMeta.meta._initOnlySettings=[]),this.metaManager.globalMeta.meta._initOnlySettings.push(n))})}installPropWatcher(e,n,r){const i=this;Object.defineProperty(this.metaManager.globalMeta.meta,e,{get(){return this[n]},set(o){const s=!i.usageTracker.has(e);i.usageTracker.add(e),r.call(i,e,o,s),this[n]=o},enumerable:!0,configurable:!0})}}const GD="gridDefault",Cl="editorManager.handlingEditor",A3={name:"editorCloseAndSave",callback(t){t._getEditorManager().closeEditorAndSaveChanges()}},H3="hooksRefRegisterer",KD={_hooksStorage:Object.create(null),addHook(t,e){return this._hooksStorage[t]||(this._hooksStorage[t]=[]),this.hot.addHook(t,e),this._hooksStorage[t].push(e),this},removeHooksByKey(t){M(this._hooksStorage[t]||[],e=>{this.hot.removeHook(t,e)})},clearHooks(){He(this._hooksStorage,(t,e)=>this.removeHooksByKey(e)),this._hooksStorage={}}};Ea(KD,"MIXIN_NAME",H3,{writable:!1,enumerable:!1});function Eo(t,e,n){return(e=N3(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function N3(t){var e=D3(t,"string");return typeof e=="symbol"?e:e+""}function D3(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}const k3="base",Bt=Object.freeze({VIRGIN:"STATE_VIRGIN",EDITING:"STATE_EDITING",WAITING:"STATE_WAITING",FINISHED:"STATE_FINISHED"});class vh{static get EDITOR_TYPE(){return k3}constructor(e){Eo(this,"hot",void 0),Eo(this,"state",Bt.VIRGIN),Eo(this,"_opened",!1),Eo(this,"_fullEditMode",!1),Eo(this,"_closeCallback",null),Eo(this,"TD",null),Eo(this,"row",null),Eo(this,"col",null),Eo(this,"prop",null),Eo(this,"originalValue",null),Eo(this,"cellProperties",null),this.hot=e,this.init()}_fireCallbacks(e){this._closeCallback&&(this._closeCallback(e),this._closeCallback=null)}init(){}getValue(){throw Error("Editor getValue() method unimplemented")}setValue(){throw Error("Editor setValue() method unimplemented")}open(){throw Error("Editor open() method unimplemented")}close(){throw Error("Editor close() method unimplemented")}prepare(e,n,r,i,o,s){this.TD=i,this.row=e,this.col=n,this.prop=r,this.originalValue=o,this.cellProperties=s,this.state=this.isOpened()?this.state:Bt.VIRGIN}extend(){return class extends this.constructor{}}saveValue(e,n){let r,i,o,s;if(n){const l=this.hot.getSelectedLast();r=Math.max(Math.min(l[0],l[2]),0),i=Math.max(Math.min(l[1],l[3]),0),o=Math.max(l[0],l[2]),s=Math.max(l[1],l[3])}else[r,i,o,s]=[this.row,this.col,null,null];const a=this.hot.runHooks("modifyGetCellCoords",r,i,!1,"meta");Array.isArray(a)&&([r,i]=a),this.hot.populateFromArray(r,i,e,o,s,"edit")}beginEditing(e,n){if(this.state!==Bt.VIRGIN)return;const r=this.hot,i=r.rowIndexMapper.getRenderableFromVisualIndex(this.row),o=r.columnIndexMapper.getRenderableFromVisualIndex(this.col),s=()=>{if(this.state=Bt.EDITING,this.isInFullEditMode()){const l=typeof e=="string"?e:Pt(this.originalValue);this.setValue(l)}this.open(n),this._opened=!0,this.focus(),r.view.render(),r.runHooks("afterBeginEditing",this.row,this.col)};this.hot.addHookOnce("afterScroll",s),r.view.scrollViewport(r._createCellCoords(i,o))||(this.hot.removeHook("afterScroll",s),s())}finishEditing(e,n,r){let i;if(r){const o=this._closeCallback;this._closeCallback=s=>{o&&o(s),r(s),this.hot.view.render()}}if(!this.isWaiting()){if(this.state===Bt.VIRGIN){this.hot._registerTimeout(()=>{this._fireCallbacks(!0)});return}if(this.state===Bt.EDITING){if(e){this.cancelChanges(),this.hot.view.render();return}const o=this.getValue();this.cellProperties.trimWhitespace?i=[[typeof o=="string"?String.prototype.trim.call(o||""):o]]:i=[[o]],this.state=Bt.WAITING,this.saveValue(i,n),this.hot.getCellValidator(this.cellProperties)?this.hot.addHookOnce("postAfterValidate",s=>{this.state=Bt.FINISHED,this.discardEditor(s)}):(this.state=Bt.FINISHED,this.discardEditor(!0))}}}cancelChanges(){this.state=Bt.FINISHED,this.discardEditor()}discardEditor(e){this.state===Bt.FINISHED&&(e===!1&&this.cellProperties.allowInvalid!==!0?(this.hot.selectCell(this.row,this.col),this.focus(),this.state=Bt.EDITING,this._fireCallbacks(!1)):(this.close(),this._opened=!1,this._fullEditMode=!1,this.state=Bt.VIRGIN,this._fireCallbacks(!0),this.hot.getShortcutManager().setActiveContextName("grid")))}enableFullEditMode(){this._fullEditMode=!0}isInFullEditMode(){return this._fullEditMode}isOpened(){return this._opened}isWaiting(){return this.state===Bt.WAITING}getEditedCellRect(){var e;const n=this.getEditedCell();if(!n)return;const{wtOverlays:r,wtViewport:i}=this.hot.view._wt,o=this.hot.rootWindow,s=An(n),a=Kt(n),l=An(this.hot.rootElement),u=Kt(this.hot.rootElement),c=r.topOverlay.holder,h=r.inlineStartOverlay.holder,d=c!==o?c.scrollTop:0,f=h!==o?h.scrollLeft:0,g=o.innerWidth-l.left-u,{wtTable:C}=(e=r.getParentOverlay(n))!==null&&e!==void 0?e:this.hot.view._wt,y=C.name,E=["master","inline_start"].includes(y)?d:0,v=["master","top","bottom"].includes(y)?f:0,P=s.top===l.top?0:1;let O=s.top-l.top-P-E,L=0;this.hot.isRtl()?L=o.innerWidth-s.left-a-g-1+v:L=s.left-l.left-1-v,["top","top_inline_start_corner"].includes(y)&&(O+=r.topOverlay.getOverlayOffset()),["inline_start","top_inline_start_corner"].includes(y)&&(L+=Math.abs(r.inlineStartOverlay.getOverlayOffset()));const T=this.hot.hasColHeaders(),A=this.hot.rowIndexMapper.getRenderableFromVisualIndex(this.row),K=this.hot.columnIndexMapper.getRenderableFromVisualIndex(this.col),j=this.hot.rowIndexMapper.getRenderableIndexesLength()-this.hot.view._wt.getSetting("fixedRowsBottom");(T&&A<=0||A===j)&&(O+=1),K<=0&&(L+=1);const Z=i.rowsRenderCalculator.startPosition,J=i.columnsRenderCalculator.startPosition,se=Math.abs(r.inlineStartOverlay.getScrollPosition()),te=r.topOverlay.getScrollPosition(),ue=vn(this.hot.rootDocument);let pt=n.offsetTop;if(["inline_start","master"].includes(y)&&(pt+=Z-te),["bottom","bottom_inline_start_corner"].includes(y)){const{wtViewport:Y,wtTable:q}=r.bottomOverlay.clone;pt+=Y.getWorkspaceHeight()-q.getHeight()-ue}let be=n.offsetLeft;this.hot.isRtl()?(be>=0?be=C.getWidth()-n.offsetLeft:be=Math.abs(be),be+=J-se-a):["top","master","bottom"].includes(y)&&(be+=J-se);const ke=o.getComputedStyle(this.TD),wt=this.hot.isRtl()?"borderRightWidth":"borderLeftWidth",fn=parseInt(ke[wt],10)>0?0:1,et=parseInt(ke.borderTopWidth,10)>0?0:1,m=Kt(n)+fn,w=nn(n)+et,p=kN(c)?ue:0,I=LN(h)?ue:0,$=this.hot.view.maximumVisibleElementWidth(be)-p+fn,B=Math.max(this.hot.view.maximumVisibleElementHeight(pt)-I+et,this.hot.view.getDefaultRowHeight());return{top:O,start:L,height:w,maxHeight:B,width:m,maxWidth:$}}getEditedCellsLayerClass(){switch(this.checkEditorSection()){case"inline-start":return"ht_clone_left ht_clone_inline_start";case"bottom":return"ht_clone_bottom";case"bottom-inline-start-corner":return"ht_clone_bottom_left_corner ht_clone_bottom_inline_start_corner";case"top":return"ht_clone_top";case"top-inline-start-corner":return"ht_clone_top_left_corner ht_clone_top_inline_start_corner";default:return"ht_clone_master"}}getEditedCell(){return this.hot.getCell(this.row,this.col,!0)}checkEditorSection(){const e=this.hot.countRows();let n="";return this.row<this.hot.getSettings().fixedRowsTop?this.col<this.hot.getSettings().fixedColumnsStart?n="top-inline-start-corner":n="top":this.hot.getSettings().fixedRowsBottom&&this.row>=e-this.hot.getSettings().fixedRowsBottom?this.col<this.hot.getSettings().fixedColumnsStart?n="bottom-inline-start-corner":n="bottom":this.col<this.hot.getSettings().fixedColumnsStart&&(n="inline-start"),n}}ut(vh,KD);const L3={name:"editorCloseAndSaveByArrowKeys",callback(t,e,n){const r=t._getEditorManager(),i=r.getActiveEditor();i.isInFullEditMode()&&i.state===Bt.EDITING||(r.closeEditorAndSaveChanges(),t.getSelected()&&(n.includes("arrowdown")?t.selection.transformStart(1,0):n.includes("arrowup")?t.selection.transformStart(-1,0):n.includes("arrowleft")?t.selection.transformStart(0,-1*t.getDirectionFactor()):n.includes("arrowright")&&t.selection.transformStart(0,t.getDirectionFactor())),e.preventDefault())}},$3={name:"editorCloseAndSaveByEnter",callback(t,e){const n=t._getEditorManager();n.closeEditorAndSaveChanges(e.ctrlKey||e.metaKey),n.moveSelectionAfterEnter(e)}},F3={name:"editorCloseWithoutSaving",callback(t){const e=t._getEditorManager();e.closeEditorAndRestoreOriginalValue(t.getShortcutManager().isCtrlPressed()),e.activeEditor.focus()}},V3={name:"editorFastOpen",callback(t,e){const{highlight:n}=t.getSelectedRangeLast();n.isHeader()||t._getEditorManager().openEditor(null,e,!0)}},W3={name:"editorOpen",callback(t,e,n){const r=t._getEditorManager(),i=t.getSelectedRangeLast(),{highlight:o}=i;if(t.selection.isMultiple()&&!i.isHeader()&&t.countRenderedCols()>0&&t.countRenderedRows()>0){const s=t.getSettings(),a=typeof s.enterMoves=="function"?s.enterMoves(e):s.enterMoves;n.includes("shift")?t.selection.transformFocus(-a.row,-a.col):t.selection.transformFocus(a.row,a.col);return}o.isHeader()||(t.getSettings().enterBeginsEditing?r.cellProperties.readOnly?r.moveSelectionAfterEnter(e):r.openEditor(null,e,!0):r.moveSelectionAfterEnter(e),Ko(e))}};function B3(){return[A3,L3,$3,F3,V3,W3]}const j3={name:"extendCellsSelectionDown",callback(t){const{selection:e}=t,{highlight:n}=t.getSelectedRangeLast();!e.isSelectedByColumnHeader()&&!e.isSelectedByCorner()&&(n.isCell()||n.isHeader()&&e.isSelectedByRowHeader())&&(e.markSource("keyboard"),e.transformEnd(1,0),e.markEndSource())}},U3={name:"extendCellsSelectionDownByViewportHeight",callback(t){const{selection:e,rowIndexMapper:n}=t,{to:r}=t.getSelectedRangeLast(),i=Math.min(r.row+t.countVisibleRows(),t.countRows()-1),o=n.getNearestNotHiddenIndex(i,-1);if(o!==null){const s=t._createCellCoords(o,r.col),a=r.row-t.getFirstFullyVisibleRow(),l=Math.min(s.row-a,t.countRows()-1);e.markSource("keyboard"),e.setRangeEnd(s),e.markEndSource(),t.scrollViewportTo({row:l,verticalSnap:"top",horizontalSnap:"start"})}}},z3={name:"extendCellsSelectionLeft",callback(t){const{selection:e}=t,{highlight:n}=t.getSelectedRangeLast();!e.isSelectedByRowHeader()&&!e.isSelectedByCorner()&&(n.isCell()||n.isHeader()&&e.isSelectedByColumnHeader())&&(e.markSource("keyboard"),e.transformEnd(0,-1*t.getDirectionFactor()),e.markEndSource())}},Y3={name:"extendCellsSelectionRight",callback(t){const{selection:e}=t,{highlight:n}=t.getSelectedRangeLast();!e.isSelectedByRowHeader()&&!e.isSelectedByCorner()&&(n.isCell()||n.isHeader()&&e.isSelectedByColumnHeader())&&(e.markSource("keyboard"),e.transformEnd(0,t.getDirectionFactor()),e.markEndSource())}},G3={name:"extendCellsSelectionToColumns",callback(t){const{selection:e}=t,{highlight:n,from:r,to:i}=t.getSelectedRangeLast();e.markSource("keyboard"),e.isSelectedByRowHeader()?e.selectAll(!0,!0):t.selectColumns(r.col,i.col,n),e.markEndSource()}},K3={name:"extendCellsSelectionToMostBottom",callback(t){const{selection:e,rowIndexMapper:n}=t,{highlight:r,from:i,to:o}=t.getSelectedRangeLast(),s=r.isHeader()&&e.isSelectedByRowHeader();if(r.isCell()||s){const a=n.getNearestNotHiddenIndex(t.countRows()-1,-1),l=i.clone();l.row=r.row,e.markSource("keyboard"),e.setRangeStart(l,void 0,!1,r.clone()),s&&e.selectedByRowHeader.add(e.getLayerLevel()),e.setRangeEnd(t._createCellCoords(a,o.col)),e.markEndSource()}}},q3={name:"extendCellsSelectionToMostInlineEnd",callback(t){const{selection:e,columnIndexMapper:n}=t,{highlight:r,from:i,to:o}=t.getSelectedRangeLast();if(!e.isSelectedByRowHeader()&&!e.isSelectedByCorner()&&r.isCell()){const s=n.getNearestNotHiddenIndex(t.countCols()-1,-1),a=i.clone();a.col=r.col,e.markSource("keyboard"),e.setRangeStart(a,void 0,!1,r.clone()),e.setRangeEnd(t._createCellCoords(o.row,s)),e.markEndSource()}}},X3={name:"extendCellsSelectionToMostInlineStart",callback(t){const{selection:e,columnIndexMapper:n}=t,{highlight:r,from:i,to:o}=t.getSelectedRangeLast();if(!e.isSelectedByRowHeader()&&!e.isSelectedByCorner()&&r.isCell()){const s=parseInt(t.getSettings().fixedColumnsStart,10),a=n.getNearestNotHiddenIndex(s,1),l=i.clone();l.col=r.col,e.markSource("keyboard"),e.setRangeStart(l,void 0,!1,r.clone()),e.setRangeEnd(t._createCellCoords(o.row,a)),e.markEndSource()}}},Z3={name:"extendCellsSelectionToMostLeft",callback(t){const{selection:e,columnIndexMapper:n}=t,{highlight:r,from:i,to:o}=t.getSelectedRangeLast(),s=r.isHeader()&&e.isSelectedByColumnHeader();if(r.isCell()||s){const a=n.getNearestNotHiddenIndex(...t.isRtl()?[t.countCols()-1,-1]:[0,1]),l=i.clone();l.col=r.col,e.markSource("keyboard"),e.setRangeStart(l,void 0,!1,r.clone()),s&&e.selectedByColumnHeader.add(e.getLayerLevel()),e.setRangeEnd(t._createCellCoords(o.row,a)),e.markEndSource()}}},Q3={name:"extendCellsSelectionToMostRight",callback(t){const{selection:e,columnIndexMapper:n}=t,{highlight:r,from:i,to:o}=t.getSelectedRangeLast(),s=r.isHeader()&&e.isSelectedByColumnHeader();if(r.isCell()||s){const a=n.getNearestNotHiddenIndex(...t.isRtl()?[0,1]:[t.countCols()-1,-1]),l=i.clone();l.col=r.col,e.markSource("keyboard"),e.setRangeStart(l,void 0,!1,r.clone()),s&&e.selectedByColumnHeader.add(e.getLayerLevel()),e.setRangeEnd(t._createCellCoords(o.row,a)),e.markEndSource()}}},J3={name:"extendCellsSelectionToMostTop",callback(t){const{selection:e,rowIndexMapper:n}=t,{highlight:r,from:i,to:o}=t.getSelectedRangeLast(),s=r.isHeader()&&e.isSelectedByRowHeader();if(r.isCell()||s){const a=n.getNearestNotHiddenIndex(0,1),l=i.clone();l.row=r.row,e.markSource("keyboard"),e.setRangeStart(l,void 0,!1,r.clone()),s&&e.selectedByRowHeader.add(e.getLayerLevel()),e.setRangeEnd(t._createCellCoords(a,o.col)),e.markEndSource()}}},eX={name:"extendCellsSelectionToRows",callback(t){const{selection:e}=t,{highlight:n,from:r,to:i}=t.getSelectedRangeLast();e.markSource("keyboard"),e.isSelectedByColumnHeader()?e.selectAll(!0,!0):t.selectRows(r.row,i.row,n),e.markEndSource()}},tX={name:"extendCellsSelectionUp",callback(t){const{selection:e}=t,{highlight:n}=t.getSelectedRangeLast();!e.isSelectedByColumnHeader()&&!e.isSelectedByCorner()&&(n.isCell()||n.isHeader()&&e.isSelectedByRowHeader())&&(e.markSource("keyboard"),e.transformEnd(-1,0),e.markEndSource())}},nX={name:"extendCellsSelectionUpByViewportHeight",callback(t){const{selection:e,rowIndexMapper:n}=t,{to:r}=t.getSelectedRangeLast(),i=Math.max(r.row-t.countVisibleRows(),0),o=n.getNearestNotHiddenIndex(i,1);if(o!==null){const s=t._createCellCoords(o,r.col),a=r.row-t.getFirstFullyVisibleRow(),l=Math.max(s.row-a,0);e.markSource("keyboard"),e.setRangeEnd(s),e.markEndSource(),t.scrollViewportTo({row:l,verticalSnap:"top",horizontalSnap:"start"})}}};function rX(){return[j3,U3,z3,Y3,G3,K3,q3,X3,Z3,Q3,J3,eX,tX,nX]}const iX={name:"moveCellSelectionDown",callback(t){let{selection:e}=t;e.markSource("keyboard"),e.transformStart(1,0),e.markEndSource()}},oX={name:"moveCellSelectionDownByViewportHeight",callback(t){const{selection:e}=t,{navigableHeaders:n}=t.getSettings(),r=n?t.countColHeaders():0,{row:i}=t.getSelectedRangeLast().highlight;let o=t.countVisibleRows()+r;o=o===0?1:o,i===t.countRows()-1?o=1:i+o>t.countRows()&&(o=t.countRows()-i-1),e.markSource("keyboard"),e.transformStart(o,0),e.markEndSource(),t.getSelectedRangeLast().highlight.row<0&&t.scrollViewportTo({row:0})}},sX={name:"moveCellSelectionInlineEnd",callback(t,e){const{selection:n}=t,r=t.getSettings(),i=t.getSelectedRangeLast(),o=typeof r.tabMoves=="function"?r.tabMoves(e):r.tabMoves;n.markSource("keyboard"),n.isMultiple()&&!i.isHeader()&&t.countRenderedCols()>0&&t.countRenderedRows()>0?n.transformFocus(-o.row,-o.col):n.transformStart(-o.row,-o.col),n.markEndSource()}},aX={name:"moveCellSelectionInlineStart",callback(t,e){const{selection:n}=t,r=t.getSettings(),i=t.getSelectedRangeLast(),o=typeof r.tabMoves=="function"?r.tabMoves(e):r.tabMoves;n.markSource("keyboard"),n.isMultiple()&&!i.isHeader()&&t.countRenderedCols()>0&&t.countRenderedRows()>0?n.transformFocus(o.row,o.col):n.transformStart(o.row,o.col),n.markEndSource()}},lX={name:"moveCellSelectionLeft",callback(t){const{selection:e}=t;e.markSource("keyboard"),e.transformStart(0,-1*t.getDirectionFactor()),e.markEndSource()}},uX={name:"moveCellSelectionRight",callback(t){const{selection:e}=t;e.markSource("keyboard"),e.transformStart(0,t.getDirectionFactor()),e.markEndSource()}},cX={name:"moveCellSelectionToMostBottom",callback(t){const{selection:e}=t,{col:n}=t.getSelectedRangeLast().highlight;let r=t.rowIndexMapper.getNearestNotHiddenIndex(t.countRows()-1,-1);r===null&&(r=-1),e.setRangeStart(t._createCellCoords(r,n))}},hX={name:"moveCellSelectionToMostBottomInlineEnd",callback(t){const{selection:e,rowIndexMapper:n,columnIndexMapper:r}=t,i=parseInt(t.getSettings().fixedRowsBottom,10),o=n.getNearestNotHiddenIndex(t.countRows()-i-1,-1),s=r.getNearestNotHiddenIndex(t.countCols()-1,-1);e.markSource("keyboard"),e.setRangeStart(t._createCellCoords(o,s)),e.markEndSource()}},dX={name:"moveCellSelectionToMostInlineEnd",callback(t){const{selection:e,columnIndexMapper:n}=t;e.markSource("keyboard"),e.setRangeStart(t._createCellCoords(t.getSelectedRangeLast().highlight.row,n.getNearestNotHiddenIndex(t.countCols()-1,-1))),e.markEndSource()}},fX={name:"moveCellSelectionToMostInlineStart",callback(t){const{selection:e,columnIndexMapper:n}=t,r=parseInt(t.getSettings().fixedColumnsStart,10),i=t.getSelectedRangeLast().highlight.row,o=n.getNearestNotHiddenIndex(r,1);e.markSource("keyboard"),e.setRangeStart(t._createCellCoords(i,o)),e.markEndSource()}},gX={name:"moveCellSelectionToMostLeft",callback(t){const{selection:e,columnIndexMapper:n}=t,r=t.getSelectedRangeLast().highlight.row;let i=n.getNearestNotHiddenIndex(...t.isRtl()?[t.countCols()-1,-1]:[0,1]);i===null&&(i=t.isRtl()?-1:-t.countRowHeaders()),e.markSource("keyboard"),e.setRangeStart(t._createCellCoords(r,i)),e.markEndSource()}},mX={name:"moveCellSelectionToMostRight",callback(t){const{selection:e,columnIndexMapper:n}=t,{row:r}=t.getSelectedRangeLast().highlight;let i=n.getNearestNotHiddenIndex(...t.isRtl()?[0,1]:[t.countCols()-1,-1]);i===null&&(i=t.isRtl()?-t.countRowHeaders():-1),e.markSource("keyboard"),e.setRangeStart(t._createCellCoords(r,i)),e.markEndSource()}},pX={name:"moveCellSelectionToMostTop",callback(t){const{selection:e}=t,{col:n}=t.getSelectedRangeLast().highlight;let r=t.rowIndexMapper.getNearestNotHiddenIndex(0,1);r===null&&(r=-t.countColHeaders()),e.markSource("keyboard"),e.setRangeStart(t._createCellCoords(r,n)),e.markEndSource()}},wX={name:"moveCellSelectionToMostTopInlineStart",callback(t){const{selection:e,rowIndexMapper:n,columnIndexMapper:r}=t,i=parseInt(t.getSettings().fixedRowsTop,10),o=parseInt(t.getSettings().fixedColumnsStart,10),s=n.getNearestNotHiddenIndex(i,1),a=r.getNearestNotHiddenIndex(o,1);e.markSource("keyboard"),e.setRangeStart(t._createCellCoords(s,a)),e.markEndSource()}},vX={name:"moveCellSelectionUp",callback(t){let{selection:e}=t;e.markSource("keyboard"),e.transformStart(-1,0),e.markEndSource()}},CX={name:"moveCellSelectionUpByViewportHight",callback(t){const{selection:e}=t,{navigableHeaders:n}=t.getSettings(),r=n?t.countColHeaders():0,{row:i}=t.getSelectedRangeLast().highlight;let o=t.countVisibleRows()+r;o=o===0?-1:-o,i===-r?o=-1:i+o<r&&(o=-(i+r)),e.markSource("keyboard"),e.transformStart(o,0),e.markEndSource(),t.getSelectedRangeLast().highlight.row<0&&t.scrollViewportTo({row:0})}};function yX(){return[iX,oX,sX,aX,lX,uX,cX,hX,dX,fX,gX,mX,pX,wX,vX,CX]}const bX={name:"emptySelectedCells",callback(t){t.emptySelectedCells(),t._getEditorManager().prepareEditor()}},SX={name:"scrollToFocusedCell",callback(t){const{highlight:e}=t.getSelectedRangeLast(),n=t.getFirstFullyVisibleRow()-1,r=t.getFirstFullyVisibleColumn()-1,i=t.getLastFullyVisibleRow()+1,o=t.getLastFullyVisibleColumn()+1,s=t._createCellCoords(n,r),a=t._createCellCoords(i,o);if(!t._createCellRange(s,s,a).includes(e)&&(e.row>=0||e.col>=0)){const u={};if(e.col>=0){const c=Math.floor(t.countVisibleCols()/2);u.col=Math.max(e.col-c,0)}if(e.row>=0){const c=Math.floor(t.countVisibleRows()/2);u.row=Math.max(e.row-c,0)}t.scrollViewportTo({...u,verticalSnap:"top",horizontalSnap:"start"})}}},RX={name:"selectAllCells",callback(t){let{selection:e}=t;e.markSource("keyboard"),e.selectAll(!0,!0,{disableHeadersHighlight:!0}),e.markEndSource()}},EX={name:"selectAllCellsAndHeaders",callback(t){let{selection:e}=t;e.markSource("keyboard"),e.selectAll(!0,!0,{disableHeadersHighlight:!1}),e.markEndSource()}},TX={name:"populateSelectedCellsData",callback(t){const e=t.getSelectedRange(),{row:n,col:r}=e[e.length-1].highlight.normalize(),i=t.getDataAtCell(n,r),o=new Map;for(let s=0;s<e.length;s++)e[s].forAll((a,l)=>{if(a>=0&&l>=0&&(a!==n||l!==r)){const{readOnly:u}=t.getCellMeta(a,l);u||o.set(`${a}x${l}`,[a,l,i])}});t.setDataAtCell(Array.from(o.values()))}},_X=[...B3(),...rX(),...yX(),bX,SX,RX,EX,TX];function qD(t){const e={};return _X.forEach(n=>{let{name:r,callback:i}=n;e[r]=function(){for(var o=arguments.length,s=new Array(o),a=0;a<o;a++)s[a]=arguments[a];return i(t,...s)}}),e}function MX(t){const e=t.getShortcutManager().addContext("editor"),n=qD(t),r={group:Cl};e.addShortcuts([{keys:[["Enter"],["Enter","Shift"]],callback:(i,o)=>n.editorCloseAndSaveByEnter(i,o)},{keys:[["Enter","Control/Meta"],["Enter","Control/Meta","Shift"]],captureCtrl:!0,callback:(i,o)=>n.editorCloseAndSaveByEnter(i,o)},{keys:[["Tab"],["Tab","Shift"],["PageDown"],["PageUp"]],forwardToContext:t.getShortcutManager().getContext("grid"),callback:(i,o)=>n.editorCloseAndSave(i,o)},{keys:[["ArrowDown"],["ArrowUp"],["ArrowLeft"],["ArrowRight"]],preventDefault:!1,callback:(i,o)=>n.editorCloseAndSaveByArrowKeys(i,o)},{keys:[["Escape"],["Escape","Control/Meta"]],callback:()=>n.editorCloseWithoutSaving()}],r)}function IX(t){const e=t.getShortcutManager().addContext("grid"),n=qD(t),r={runOnlyIf:()=>{const{navigableHeaders:i}=t.getSettings();return ae(t.getSelected())&&(i||!i&&t.countRenderedRows()>0&&t.countRenderedCols()>0)},group:GD};e.addShortcuts([{keys:[["F2"]],callback:i=>n.editorFastOpen(i)},{keys:[["Enter"],["Enter","Shift"]],callback:(i,o)=>n.editorOpen(i,o)},{keys:[["Backspace"],["Delete"]],callback:()=>n.emptySelectedCells()}],{group:Cl,runOnlyIf:()=>ae(t.getSelected())}),e.addShortcuts([{keys:[["Control/Meta","A"]],callback:()=>n.selectAllCells(),runOnlyIf:()=>{var i;return!((i=t.getSelectedRangeLast())!==null&&i!==void 0&&i.highlight.isHeader())}},{keys:[["Control/Meta","A"]],callback:()=>{},runOnlyIf:()=>{var i;return(i=t.getSelectedRangeLast())===null||i===void 0?void 0:i.highlight.isHeader()},preventDefault:!0},{keys:[["Control/Meta","Shift","Space"]],callback:()=>n.selectAllCellsAndHeaders()},{keys:[["Control/Meta","Enter"]],callback:()=>n.populateSelectedCellsData(),runOnlyIf:()=>{var i,o;return!((i=t.getSelectedRangeLast())!==null&&i!==void 0&&i.highlight.isHeader())&&((o=t.getSelectedRangeLast())===null||o===void 0?void 0:o.getCellsCount())>1}},{keys:[["Control","Space"]],captureCtrl:!0,callback:()=>n.extendCellsSelectionToColumns()},{keys:[["Shift","Space"]],stopPropagation:!0,callback:()=>n.extendCellsSelectionToRows()},{keys:[["ArrowUp"]],callback:()=>n.moveCellSelectionUp()},{keys:[["ArrowUp","Control/Meta"]],captureCtrl:!0,callback:()=>n.moveCellSelectionToMostTop()},{keys:[["ArrowUp","Shift"]],callback:()=>n.extendCellsSelectionUp()},{keys:[["ArrowUp","Shift","Control/Meta"]],captureCtrl:!0,callback:()=>n.extendCellsSelectionToMostTop(),runOnlyIf:()=>!(t.selection.isSelectedByCorner()||t.selection.isSelectedByColumnHeader())},{keys:[["ArrowDown"]],callback:()=>n.moveCellSelectionDown()},{keys:[["ArrowDown","Control/Meta"]],captureCtrl:!0,callback:()=>n.moveCellSelectionToMostBottom()},{keys:[["ArrowDown","Shift"]],callback:()=>n.extendCellsSelectionDown()},{keys:[["ArrowDown","Shift","Control/Meta"]],captureCtrl:!0,callback:()=>n.extendCellsSelectionToMostBottom(),runOnlyIf:()=>!(t.selection.isSelectedByCorner()||t.selection.isSelectedByColumnHeader())},{keys:[["ArrowLeft"]],callback:()=>n.moveCellSelectionLeft()},{keys:[["ArrowLeft","Control/Meta"]],captureCtrl:!0,callback:()=>n.moveCellSelectionToMostLeft()},{keys:[["ArrowLeft","Shift"]],callback:()=>n.extendCellsSelectionLeft()},{keys:[["ArrowLeft","Shift","Control/Meta"]],captureCtrl:!0,callback:()=>n.extendCellsSelectionToMostLeft(),runOnlyIf:()=>!(t.selection.isSelectedByCorner()||t.selection.isSelectedByRowHeader())},{keys:[["ArrowRight"]],callback:()=>n.moveCellSelectionRight()},{keys:[["ArrowRight","Control/Meta"]],captureCtrl:!0,callback:()=>n.moveCellSelectionToMostRight()},{keys:[["ArrowRight","Shift"]],callback:()=>n.extendCellsSelectionRight()},{keys:[["ArrowRight","Shift","Control/Meta"]],captureCtrl:!0,callback:()=>n.extendCellsSelectionToMostRight(),runOnlyIf:()=>!(t.selection.isSelectedByCorner()||t.selection.isSelectedByRowHeader())},{keys:[["Home"]],captureCtrl:!0,callback:()=>n.moveCellSelectionToMostInlineStart(),runOnlyIf:()=>t.view.isMainTableNotFullyCoveredByOverlays()},{keys:[["Home","Shift"]],callback:()=>n.extendCellsSelectionToMostInlineStart()},{keys:[["Home","Control/Meta"]],captureCtrl:!0,callback:()=>n.moveCellSelectionToMostTopInlineStart(),runOnlyIf:()=>t.view.isMainTableNotFullyCoveredByOverlays()},{keys:[["End"]],captureCtrl:!0,callback:()=>n.moveCellSelectionToMostInlineEnd(),runOnlyIf:()=>t.view.isMainTableNotFullyCoveredByOverlays()},{keys:[["End","Shift"]],callback:()=>n.extendCellsSelectionToMostInlineEnd()},{keys:[["End","Control/Meta"]],captureCtrl:!0,callback:()=>n.moveCellSelectionToMostBottomInlineEnd(),runOnlyIf:()=>t.view.isMainTableNotFullyCoveredByOverlays()},{keys:[["PageUp"]],callback:()=>n.moveCellSelectionUpByViewportHight()},{keys:[["PageUp","Shift"]],callback:()=>n.extendCellsSelectionUpByViewportHeight()},{keys:[["PageDown"]],callback:()=>n.moveCellSelectionDownByViewportHeight()},{keys:[["PageDown","Shift"]],callback:()=>n.extendCellsSelectionDownByViewportHeight()},{keys:[["Tab"]],preventDefault:!1,callback:i=>n.moveCellSelectionInlineStart(i)},{keys:[["Shift","Tab"]],preventDefault:!1,callback:i=>n.moveCellSelectionInlineEnd(i)},{keys:[["Control/Meta","Backspace"]],callback:()=>n.scrollToFocusedCell()}],r)}function PX(t){[IX,MX].forEach(e=>e(t))}function OX(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const n=t.rootElement,r=vx(t),i=vx(t);return r.addEventListener("focus",()=>e==null?void 0:e.onFocusFromTop()),i.addEventListener("focus",()=>e==null?void 0:e.onFocusFromBottom()),n.firstChild.before(r),n.lastChild.after(i),{activate(){t._registerTimeout(()=>{r.tabIndex=0,i.tabIndex=0},10)},deactivate(){t._registerTimeout(()=>{r.tabIndex=-1,i.tabIndex=-1},10)}}}function vx(t){const n=t.rootDocument.createElement("input");return n.type="text",n.name="__htFocusCatcher",n.classList.add("htFocusCatcher"),t.getSettings().ariaTags&&ye(n,[hf("Focus catcher")]),n}function xX(t){const e=AX(t);let n;const{activate:r,deactivate:i}=OX(t,{onFocusFromTop(){var h;const d=(h=e(n))!==null&&h!==void 0?h:OR(t);d&&(t.runHooks("modifyFocusOnTabNavigation","from_above",d),t.selectCell(d.row,d.col)),t.listen()},onFocusFromBottom(){var h;const d=(h=e(n))!==null&&h!==void 0?h:xR(t);d&&(t.runHooks("modifyFocusOnTabNavigation","from_below",d),t.selectCell(d.row,d.col)),t.listen()}}),o={wrapped:!1,flipped:!1};let s=!0,a=!1,l=!1;t.addHook("afterListen",()=>i()),t.addHook("afterUnlisten",()=>r()),t.addHook("afterSelection",(h,d,f,g,C)=>{if(a&&(o.wrapped&&o.flipped||l)&&(l=!1,C.value=!0),s){var y;n=(y=t.getSelectedRangeLast())===null||y===void 0?void 0:y.highlight}}),t.addHook("beforeRowWrap",(h,d,f)=>{o.wrapped=!0,o.flipped=f});function u(){o.wrapped=!1,o.flipped=!1,t.deselectCell(),t.unlisten()}const c={keys:[["Tab"],["Shift","Tab"]],preventDefault:!1,stopPropagation:!1,relativeToGroup:GD,group:"focusCatcher"};t.getShortcutManager().getContext("grid").addShortcuts([{...c,callback:()=>{const{tabNavigation:h}=t.getSettings();a=!0,t.getSelectedRangeLast()&&!h&&(s=!1),h||(l=!0)},position:"before"},{...c,callback:h=>{const{tabNavigation:d,autoWrapRow:f}=t.getSettings();if(a=!1,s=!0,!d||!t.selection.isSelected()||f&&o.wrapped&&o.flipped||!f&&o.wrapped)return f&&o.wrapped&&o.flipped&&(n=h.shiftKey?OR(t):xR(t)),u(),!1;h.preventDefault()},position:"after"}])}function OR(t){const{rowIndexMapper:e,columnIndexMapper:n}=t,{navigableHeaders:r}=t.getSettings();let i=r&&t.countColHeaders()>0?-t.countColHeaders():0,o=r&&t.countRowHeaders()>0?-t.countRowHeaders():0;return i===0&&(i=e.getVisualFromRenderableIndex(i)),o===0&&(o=n.getVisualFromRenderableIndex(o)),i===null||o===null?null:t._createCellCoords(i,o)}function xR(t){var e,n;const{rowIndexMapper:r,columnIndexMapper:i}=t,{navigableHeaders:o}=t.getSettings();let s=r.getRenderableIndexesLength()-1,a=i.getRenderableIndexesLength()-1;if(s<0){if(!o||t.countColHeaders()===0)return null;s=-1}if(a<0){if(!o||t.countColHeaders()===0)return null;a=-1}return t._createCellCoords((e=r.getVisualFromRenderableIndex(s))!==null&&e!==void 0?e:s,(n=i.getVisualFromRenderableIndex(a))!==null&&n!==void 0?n:a)}function AX(t){return e=>{if(!e)return null;const n=OR(t),r=xR(t);return e.col<n.col&&(e.col=n.col),e.col>r.col&&(e.col=r.col),e.row<n.row&&(e.row=n.row),e.row>r.row&&(e.row=r.row),e}}function Ch(t){pa(t)&&t.scrollIntoView({block:"nearest",inline:"nearest"})}function $w(t){const{selection:e,view:n}=t,r=t.getSelectedRangeLast(),i=e.getSelectionSource(),o=n.getFirstFullyVisibleColumn(),s=n.getLastFullyVisibleColumn(),a=r.getTopStartCorner().col,l=r.getBottomEndCorner().col,u=a<=o,c=l>=s,h=n.getFirstFullyVisibleRow(),d=n.getLastFullyVisibleRow(),f=r.getTopStartCorner().row,g=r.getBottomEndCorner().row,C=f<=h,y=g>=d;return{getComputedColumnTarget(E){return i==="mouse"||i==="keyboard"?E.col:u&&c?r.highlight.col:u?a:c?l:E.col},getComputedRowTarget(E){return i==="mouse"||i==="keyboard"?E.row:C&&y?r.highlight.row:C?f:y?g:E.row}}}function HX(t){return e=>{const n=$w(t).getComputedColumnTarget(e);t.scrollViewportTo({col:n},()=>{const r=!!t.getSettings().colHeaders;Ch(t.getCell(r?-1:0,n,!0))})}}function NX(){return()=>{}}function DX(t){return e=>{t.scrollViewportTo(e.toObject(),()=>{const{row:n,col:r}=t.getSelectedRangeLast().highlight;Ch(t.getCell(n,r,!0))})}}function kX(t){return e=>{const n=$w(t),r={row:n.getComputedRowTarget(e),col:n.getComputedColumnTarget(e)};t.scrollViewportTo(r,()=>{const{row:i,col:o}=r;Ch(t.getCell(i,o,!0))})}}function LX(t){return e=>{const n=$w(t),r={row:n.getComputedRowTarget(e),col:n.getComputedColumnTarget(e)};t.scrollViewportTo(r,()=>{const{row:i,col:o}=r;Ch(t.getCell(i,o,!0))})}}function $X(t){return e=>{const n=$w(t).getComputedRowTarget(e);t.scrollViewportTo({row:n},()=>{const r=!!t.getSettings().rowHeaders;Ch(t.getCell(n,r?-1:0,!0))})}}function FX(t){return e=>{const n=t.selection.getSelectionSource(),{row:r,col:i}=e,o=()=>{Ch(t.getCell(r,i,!0))};if(r<0&&i>=0)t.scrollViewportTo({col:i},o);else if(i<0&&r>=0)t.scrollViewportTo({row:r},o);else{if(n==="mouse"&&(i===t.view.getLastPartiallyVisibleColumn()||r===t.view.getLastPartiallyVisibleRow()))return;t.scrollViewportTo({row:r,col:i},o)}}}function VX(t){const{selection:e}=t;let n=!1,r=!1;return{resume(){r=!1},suspend(){r=!0},skipNextScrollCycle(){n=!0},scrollTo(i){var o;if(n||r){n=!1;return}let s;e.isFocusSelectionChanged()?s=DX(t):e.isSelectedByCorner()?s=NX():e.isSelectedByRowHeader()?s=$X(t):e.isSelectedByColumnHeader()?s=HX(t):e.getSelectedRange().size()===1&&e.isMultiple()?s=kX(t):e.getSelectedRange().size()===1&&!e.isMultiple()?s=FX(t):e.getSelectedRange().size()>1&&(s=LX(t)),(o=s)===null||o===void 0||o(i)}}}const Cx=new Map([[" ","space"],["spacebar","space"],["scroll","scrolllock"],["del","delete"],["esc","escape"],["medianexttrack","mediatracknext"],["mediaprevioustrack","mediatrackprevious"],["volumeup","audiovolumeup"],["volumedown","audiovolumedown"],["volumemute","audiovolumemute"],["multiply","*"],["add","+"],["divide","/"],["subtract","-"],["left","arrowleft"],["right","arrowright"],["up","arrowup"],["down","arrowdown"]]),Ng=t=>t.map(e=>{const n=e.toLowerCase();return Cx.has(n)?Cx.get(n):n}).sort().join("+"),WX=t=>t.split("+"),yx=new Map([[96,"numpad0"],[97,"numpad1"],[98,"numpad2"],[99,"numpad3"],[100,"numpad4"],[101,"numpad5"],[102,"numpad6"],[103,"numpad7"],[104,"numpad8"],[105,"numpad9"],[106,"multiply"],[107,"add"],[108,"decimal"],[109,"subtract"],[110,"decimal"],[111,"divide"],[112,"f1"],[113,"f2"],[114,"f3"],[115,"f4"],[116,"f5"],[117,"f6"],[118,"f7"],[119,"f8"],[120,"f9"],[121,"f10"],[122,"f11"],[123,"f12"],[186,"semicolon"],[187,"equal"],[188,"comma"],[189,"minus"],[190,"period"],[191,"slash"],[192,"backquote"],[219,"bracketleft"],[220,"backslash"],[221,"bracketright"],[222,"quote"]]),bb=t=>{let{which:e,key:n}=t;if(yx.has(e))return yx.get(e);const r=String.fromCharCode(e).toLowerCase();return/^[a-z0-9]$/.test(r)?r:n.toLowerCase()},XD=Symbol("shortcut-context");function ZD(t){return Ae(t)&&t.__kindOf===XD}const BX=t=>{const e=Mw({errorIdExists:l=>`The "${l}" shortcut is already registered in the "${t}" context.`}),n=function(){let{keys:l,callback:u,group:c,runOnlyIf:h=()=>!0,captureCtrl:d=!1,preventDefault:f=!0,stopPropagation:g=!1,relativeToGroup:C,position:y,forwardToContext:E}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(It(c))throw new Error("You need to define the shortcut's group.");if(ot(u)===!1)throw new Error("The shortcut's callback needs to be a function.");if(Array.isArray(l)===!1)throw new Error(nt`Pass the shortcut\'s keys as an array of arrays,\x20
|
|
58
58
|
using the KeyboardEvent.key properties:\x20
|
|
@@ -344,4 +344,4 @@ the last node, the show column modification can be applied.`);const{crossHiddenC
|
|
|
344
344
|
* Last updated: Mar 09, 2023
|
|
345
345
|
*
|
|
346
346
|
* Description: Definition file for Chinese - China language-country.
|
|
347
|
-
*/const Ple={languageCode:"zh-CN",[vr]:"上方插入行",[Cr]:"下方插入行",[yr]:"左方插入列",[br]:"右方插入列",[Sr]:["移除该行","移除多行"],[Rr]:["移除该列","移除多列"],[Er]:"撤销",[Tr]:"恢复",[Kn]:"只读",[_r]:"清空该列",[Lr]:"对齐",[$r]:"左对齐",[Fr]:"水平居中",[Vr]:"右对齐",[Wr]:"两端对齐",[Br]:"顶端对齐",[jr]:"垂直居中",[Ur]:"底端对齐",[Pr]:"冻结该列",[Or]:"取消冻结",[zr]:"边框",[Yr]:"上",[Gr]:"右",[Kr]:"下",[qr]:"左",[Xr]:"移除边框",[Hr]:"插入批注",[Nr]:"编辑批注",[Dr]:"删除批注",[kr]:"只读批注",[xr]:"合并",[Ar]:"取消合并",[Mr]:"复制",[Ta]:"带标题的复制",[_a]:"带标题组的复制",[Ma]:"仅复制标题",[Ir]:"剪切",[Zr]:"插入子行",[Qr]:"与母行分离",[Jr]:["隐藏该列","隐藏多列"],[ei]:["显示该列","显示多列"],[ti]:["隐藏该行","隐藏多行"],[ni]:["显示该行","显示多行"],[Zn]:"无",[ri]:"为空",[ii]:"不为空",[oi]:"等于",[si]:"不等于",[ai]:"开头是",[li]:"结尾是",[ui]:"包含",[ci]:"不包含",[hi]:"大于",[di]:"大于或等于",[fi]:"小于",[gi]:"小于或等于",[mi]:"在此范围",[pi]:"不在此范围",[wi]:"之后",[vi]:"之前",[Ci]:"今天",[yi]:"明天",[bi]:"昨天",[qn]:"空白单元格",[Si]:"按条件过滤",[Ri]:"按值过滤",[Ei]:"且",[Qn]:"或",[Ti]:"全选",[_i]:"清除",[Mi]:"确认",[Ii]:"取消",[Pi]:"搜索",[Oi]:"值",[xi]:"第二值"};vle();const qH={de:Cle,en:P0,es:yle,fr:ble,it:Sle,ja:Rle,ko:Ele,nl:Tle,pl:_le,pt:Mle,ru:Ile,zh:Ple},Ole=document.documentElement.lang,x$=qH[Ole]??qH.en;O0(x$);const
|
|
347
|
+
*/const Ple={languageCode:"zh-CN",[vr]:"上方插入行",[Cr]:"下方插入行",[yr]:"左方插入列",[br]:"右方插入列",[Sr]:["移除该行","移除多行"],[Rr]:["移除该列","移除多列"],[Er]:"撤销",[Tr]:"恢复",[Kn]:"只读",[_r]:"清空该列",[Lr]:"对齐",[$r]:"左对齐",[Fr]:"水平居中",[Vr]:"右对齐",[Wr]:"两端对齐",[Br]:"顶端对齐",[jr]:"垂直居中",[Ur]:"底端对齐",[Pr]:"冻结该列",[Or]:"取消冻结",[zr]:"边框",[Yr]:"上",[Gr]:"右",[Kr]:"下",[qr]:"左",[Xr]:"移除边框",[Hr]:"插入批注",[Nr]:"编辑批注",[Dr]:"删除批注",[kr]:"只读批注",[xr]:"合并",[Ar]:"取消合并",[Mr]:"复制",[Ta]:"带标题的复制",[_a]:"带标题组的复制",[Ma]:"仅复制标题",[Ir]:"剪切",[Zr]:"插入子行",[Qr]:"与母行分离",[Jr]:["隐藏该列","隐藏多列"],[ei]:["显示该列","显示多列"],[ti]:["隐藏该行","隐藏多行"],[ni]:["显示该行","显示多行"],[Zn]:"无",[ri]:"为空",[ii]:"不为空",[oi]:"等于",[si]:"不等于",[ai]:"开头是",[li]:"结尾是",[ui]:"包含",[ci]:"不包含",[hi]:"大于",[di]:"大于或等于",[fi]:"小于",[gi]:"小于或等于",[mi]:"在此范围",[pi]:"不在此范围",[wi]:"之后",[vi]:"之前",[Ci]:"今天",[yi]:"明天",[bi]:"昨天",[qn]:"空白单元格",[Si]:"按条件过滤",[Ri]:"按值过滤",[Ei]:"且",[Qn]:"或",[Ti]:"全选",[_i]:"清除",[Mi]:"确认",[Ii]:"取消",[Pi]:"搜索",[Oi]:"值",[xi]:"第二值"};vle();const qH={de:Cle,en:P0,es:yle,fr:ble,it:Sle,ja:Rle,ko:Ele,nl:Tle,pl:_le,pt:Mle,ru:Ile,zh:Ple},Ole=document.documentElement.lang,x$=qH[Ole]??qH.en;O0(x$);const Xle=({config:t,data:e=[],onChange:n,disabled:r})=>{const{appearance:i}=$$(),[o,s]=Th.useState("ht-theme-main"),a=Th.useCallback((u,c)=>{var d,f;if(c==="loadData")return;const h=(f=(d=l.current)==null?void 0:d.hotInstance)==null?void 0:f.getSourceData();n(h)},[]),l=Th.useRef(null);return Th.useEffect(()=>{l.current&&l.current.hotInstance.loadData(e)},[e]),Th.useEffect(()=>{s(i==="dark"?"ht-theme-main-dark":"ht-theme-main")},[i]),zT.jsx(ck,{className:r?"pointer-events-none opacity-50":"",themeName:o,language:x$.languageCode,ref:l,...t,afterChange:a,children:t.columns.map(u=>zT.jsx(lk,{data:u.data,...u},u.data))})};export{Xle as default};
|