From 46dfcdc9c16606ffc3972e9f5e0283ca638f7caa Mon Sep 17 00:00:00 2001 From: user <1374960604@qq.com> Date: Thu, 29 Jun 2023 10:45:59 +0800 Subject: [PATCH] Signed-off-by: user <1374960604@qq.com> --- ...480c.chunk.css => 1279.11fa480c.chunk.css} | 0 dist/1791.3d891c89.async.js | 1 - dist/1791.de3f426f.async.js | 1 + ...6762.chunk.css => 2107.89416762.chunk.css} | 0 ...68b7.chunk.css => 2221.502268b7.chunk.css} | 0 ...e18d96.async.js => 2323.227e9752.async.js} | 2 +- dist/2339.bdbfbaf3.async.js | 20 - dist/2339.ed2cbc1e.async.js | 20 + dist/2342.f93c94c8.async.js | 676 ++++++++++ ...d163.chunk.css => 2548.1df1d163.chunk.css} | 0 ...19791a.async.js => 2548.8d7de023.async.js} | 2 +- dist/2664.f9ceb3c1.async.js | 1 - ...5af1.chunk.css => 3100.fd105af1.chunk.css} | 0 dist/3315.1cf70445.async.js | 1 - dist/4107.373c2fd8.async.js | 12 - dist/4107.824739af.async.js | 12 + dist/4332.e34c6631.async.js | 1 - dist/4332.f72c890c.async.js | 1 + dist/438.81aa4fa1.async.js | 1 + ...c03f5.chunk.css => 438.f2bc03f5.chunk.css} | 0 ...9ab6d9.async.js => 4884.07feb423.async.js} | 2 +- ...764e.chunk.css => 4884.84c7764e.chunk.css} | 0 dist/5429.0c280e31.async.js | 1 - dist/5429.fe2f82c1.async.js | 1 + dist/5754.629f22ea.async.js | 12 - dist/5754.f1111397.async.js | 12 + ...1d23.chunk.css => 5758.a23d1d23.chunk.css} | 0 ...66325d.async.js => 5758.b93a35fe.async.js} | 2 +- ...67bf.chunk.css => 5878.c8d267bf.chunk.css} | 0 dist/6048.29142da8.async.js | 1 + ...6ac4.chunk.css => 6342.a0296ac4.chunk.css} | 0 dist/6342.a4678b64.async.js | 1 + ...252bf8.async.js => 6358.968394e0.async.js} | 2 +- ...480c.chunk.css => 6398.11fa480c.chunk.css} | 0 dist/6587.92ad04ea.async.js | 1 - ...480c.chunk.css => 6794.11fa480c.chunk.css} | 0 ...1cfc.chunk.css => 7013.fefb1cfc.chunk.css} | 0 ...a3a9.chunk.css => 7128.1902a3a9.chunk.css} | 0 ...2a4ee98d.async.js => 74.8bf69b52.async.js} | 2 +- ...693903.chunk.css => 74.e3693903.chunk.css} | 0 dist/7679.55f904c1.async.js | 70 + dist/7679.f79a9ae6.async.js | 68 - dist/7751.8d3970bf.async.js | 1 - dist/7751.9861f868.async.js | 1 + ...480c.chunk.css => 7800.11fa480c.chunk.css} | 0 dist/7921.0f9d6341.async.js | 3 - dist/7921.3352a50f.async.js | 3 + ...e56eb7.async.js => 8009.ee093a69.async.js} | 2 +- ...480c.chunk.css => 8208.11fa480c.chunk.css} | 0 dist/8321.6607b2ea.async.js | 29 - dist/8321.985f5731.async.js | 30 + ...def5.chunk.css => 8676.09f1def5.chunk.css} | 0 dist/8676.5ef744b4.async.js | 1 + ...a42a.chunk.css => 8922.77baa42a.chunk.css} | 0 dist/8928.26563c15.async.js | 1 - ...d7aca4.async.js => 9396.a3667fc5.async.js} | 2 +- ...a480c.chunk.css => 944.11fa480c.chunk.css} | 0 dist/9597.008ab1f9.async.js | 2 + dist/9597.3aaf12cb.async.js | 2 - dist/9645.697e668e.async.js | 674 ---------- dist/activity/activityInfo/index.html | 6 +- dist/activity/activityRecord/index.html | 6 +- dist/activity/activityStart/index.html | 6 +- dist/activity/index.html | 6 +- dist/activity/rechargeactivity/index.html | 6 +- dist/applet/index.html | 6 +- dist/applet/material/index.html | 6 +- dist/applet/pageManage/index.html | 6 +- dist/asset-manifest.json | 202 +-- dist/bom/bomtype/index.html | 6 +- dist/bom/cookingentry/index.html | 6 +- dist/bom/index.html | 6 +- dist/bom/manage/index.html | 6 +- dist/card/checkgoods/index.html | 6 +- dist/card/enterpriseReservation/index.html | 6 +- dist/card/gate/index.html | 6 +- dist/card/index.html | 6 +- dist/card/machine/index.html | 6 +- dist/card/memberAccount/index.html | 6 +- dist/card/reservation/index.html | 6 +- dist/card/reservationReport/index.html | 6 +- dist/card/storedValueCard/index.html | 6 +- dist/crm/coupon/coupon-Batch/index.html | 6 +- dist/crm/coupon/couponInfo/index.html | 6 +- dist/crm/coupon/customerCoupon/index.html | 6 +- dist/crm/coupon/goodsCoupon/index.html | 6 +- dist/crm/coupon/goodsCouponReport/index.html | 6 +- dist/crm/coupon/paperCoupon/index.html | 6 +- dist/crm/coupon/paperCouponReport/index.html | 6 +- dist/crm/index.html | 6 +- dist/device/deviceBom/index.html | 6 +- dist/device/deviceInfo/index.html | 6 +- dist/device/deviceRecipeStock/index.html | 6 +- dist/device/deviceStirFryTime/index.html | 6 +- dist/device/deviceStock/index.html | 6 +- dist/device/deviceType/index.html | 6 +- dist/device/devicemorkmwpush/index.html | 6 +- dist/device/index.html | 6 +- dist/erp/basic/product/index.html | 6 +- dist/erp/basic/productType/index.html | 6 +- dist/erp/basic/unit/index.html | 6 +- dist/erp/bill/purchaseOrder/index.html | 6 +- dist/erp/bill/receivingNote/index.html | 6 +- dist/erp/index.html | 6 +- dist/erp/stock/index.html | 6 +- dist/financereport/finance/index.html | 6 +- dist/financereport/index.html | 6 +- dist/foodMenu/foodMenuInfo/index.html | 6 +- dist/foodMenu/index.html | 6 +- dist/foodMenu/storeFoodMenu/index.html | 6 +- dist/gateAdmin/index.html | 6 +- dist/goods/goods-manage/index.html | 6 +- dist/goods/goods-taste/index.html | 6 +- dist/goods/goods-type-manage/index.html | 6 +- dist/goods/goodsInfo/index.html | 6 +- dist/goods/goodsParentTypemanage/index.html | 6 +- dist/goods/goodsPractice/index.html | 6 +- dist/goods/goodsPracticeInfo/index.html | 6 +- dist/goods/goodsPracticeType/index.html | 6 +- dist/goods/goodstechnology/index.html | 6 +- dist/goods/index.html | 6 +- dist/goods/newgoods/index.html | 6 +- dist/goods/unit/index.html | 6 +- dist/index.html | 6 +- dist/integral/index.html | 6 +- dist/integral/integralConfigure/index.html | 6 +- dist/integral/integralDistribute/index.html | 6 +- dist/member/index.html | 6 +- dist/member/memberAnalysis/index.html | 6 +- dist/member/memberInfo/index.html | 6 +- dist/member/membertag/index.html | 6 +- dist/order/DailyReport/index.html | 6 +- dist/order/cost-of-sales/index.html | 6 +- dist/order/exOrder/index.html | 6 +- .../order/gross-profit-store-sales/index.html | 6 +- dist/order/index.html | 6 +- dist/order/order-flow-manage/index.html | 6 +- dist/order/order-market-report/index.html | 6 +- dist/order/order-member-statement/index.html | 6 +- dist/order/order-nopay-detail/index.html | 6 +- dist/order/order-product-report/index.html | 6 +- dist/order/order-report/index.html | 6 +- .../order-report-detail/index.html | 6 +- dist/order/order-revenue-statement/index.html | 6 +- dist/order/order-summary-manage/index.html | 6 +- dist/order/orderDetail/index.html | 6 +- dist/order/ordersalescountbyday/index.html | 6 +- dist/order/refundOrder/index.html | 6 +- dist/order/sales-gross-profit/index.html | 6 +- dist/order/salesReport/index.html | 6 +- dist/p__Welcome.aa5c9713.async.js | 1 - dist/p__Welcome.bb9f7d28.async.js | 1 + ... => p__applet__material.cccae0c9.async.js} | 2 +- ...> p__applet__pageManage.69355ea0.async.js} | 2 +- dist/p__bom__bomtype.49cebc6c.async.js | 1 + dist/p__bom__bomtype.51cd5d02.async.js | 1 - ...nc.js => p__bom__manage.069e90fa.async.js} | 2 +- ... => p__card__checkgoods.b3349124.async.js} | 2 +- ...ync.js => p__card__gate.dd9a60c7.async.js} | 2 +- ...s => p__card__gateAdmin.1cea148c.async.js} | 2 +- ....js => p__card__machine.ce748e74.async.js} | 2 +- ... p__card__memberAccount.b5fbec50.async.js} | 2 +- dist/p__card__reservation.302f5d46.async.js | 1 - dist/p__card__reservation.d29bc772.async.js | 1 + ..._card__reservationReport.25ab5628.async.js | 1 + ..._card__reservationReport.b0995e46.async.js | 1 - ...__card__storedValueCard.93ac20da.async.js} | 2 +- ...m__coupon__coupon-Batch.b8a7f94e.async.js} | 2 +- ...rm__coupon__goodsCoupon.52e05d13.async.js} | 2 +- dist/p__device__deviceInfo.ba02bdba.async.js | 1 + dist/p__device__deviceInfo.ea5e9087.async.js | 1 - ...rp__bill__receivingNote.488abe37.async.js} | 2 +- ...ync.js => p__erp__stock.a4420aff.async.js} | 2 +- ...__financereport__finance.588489c0.async.js | 1 + ...__financereport__finance.9e245f57.async.js | 1 - ..._foodMenu__storeFoodMenu.3baedcd8.async.js | 1 - ..._foodMenu__storeFoodMenu.7e1aebae.async.js | 1 + dist/p__goods__goods-taste.472ffe88.async.js | 1 - dist/p__goods__goods-taste.b1c1e302.async.js | 1 + ...goods__goods-type-manage.a65e29cf.async.js | 1 - ...goods__goods-type-manage.b16288ec.async.js | 1 + ... => p__goods__goodsInfo.f217b907.async.js} | 2 +- ...s__goodsParentTypemanage.4aa292c9.async.js | 1 - ...s__goodsParentTypemanage.945a22b8.async.js | 1 + ...p__goods__goodsPractice.18c39f95.async.js} | 2 +- ...oods__goodsPracticeInfo.92021054.async.js} | 2 +- ...oods__goodsPracticeType.22be953e.async.js} | 2 +- ...__goods__goodstechnology.25b9830e.async.js | 1 - ...__goods__goodstechnology.cedbcd2a.async.js | 1 + ...s => p__goods__newgoods.84c3e622.async.js} | 2 +- ...gral__integralConfigure.39c4b349.async.js} | 2 +- dist/p__member__memberInfo.0c37ae63.async.js | 1 + dist/p__member__memberInfo.453940cc.async.js | 1 - dist/p__order__DailyReport.3051486a.async.js | 1 - dist/p__order__DailyReport.6172e159.async.js | 1 + .../p__order__cost-of-sales.de68d12b.async.js | 1 - .../p__order__cost-of-sales.e75bd719.async.js | 1 + ...gross-profit-store-sales.45c43365.async.js | 1 + ...gross-profit-store-sales.c6196cd7.async.js | 1 - ...rder__order-flow-manage.9b534953.async.js} | 2 +- ...der__order-market-report.2f35f064.async.js | 1 - ...der__order-market-report.7ce1f6c9.async.js | 1 + ...der__order-nopay-detail.ae52fbfc.async.js} | 2 +- dist/p__order__order-report.708b5dd7.async.js | 1 + dist/p__order__order-report.dbb42468.async.js | 1 - ...r__order-summary-manage.2e400c45.async.js} | 2 +- ...rder__sales-gross-profit.296849ec.async.js | 1 - ...rder__sales-gross-profit.5eb70b0d.async.js | 1 + dist/p__order__salesReport.201a26cc.async.js | 1 + dist/p__order__salesReport.53d415d3.async.js | 1 - ...ync.js => p__quickStart.c405abce.async.js} | 2 +- ...js => p__split__account.54887287.async.js} | 2 +- ...nc.js => p__split__plan.6a2d8f94.async.js} | 2 +- ...printer__printerTemplate.85273370.async.js | 1 - ...printer__printerTemplate.e625f119.async.js | 1 + ...__store__storeGoodsInfo.124a2f9a.async.js} | 2 +- ... => p__store__storeInfo.e71eddc6.async.js} | 2 +- ...=> p__store__storeLevel.4f76ebc9.async.js} | 2 +- ...=> p__store__storeStaff.418b42e0.async.js} | 2 +- ... => p__store__storeType.4725c004.async.js} | 2 +- dist/p__sys__org.93ff6838.async.js | 1 - dist/p__sys__org.aef7ec07.async.js | 1 + dist/p__sys__storemanage.046969cf.async.js | 1 - dist/p__sys__storemanage.2484d8d8.async.js | 1 + dist/p__test.1b7ebf62.async.js | 1 + dist/p__test.d3c03b9b.async.js | 1 - ...nc.js => p__user__login.18377057.async.js} | 2 +- dist/quickStart/index.html | 6 +- dist/refundment/index.html | 6 +- dist/refundment/orderAfterSales/index.html | 6 +- dist/split/FranchiseePlan/index.html | 6 +- dist/split/account/index.html | 6 +- dist/split/index.html | 6 +- dist/split/plan/index.html | 6 +- dist/split/splitOrders/index.html | 6 +- dist/stockManager/index.html | 6 +- dist/stockManager/stockInventory/index.html | 6 +- dist/stockManager/stockItem/index.html | 6 +- dist/stockManager/stockReports/index.html | 6 +- dist/store/index.html | 6 +- dist/store/printer/Printer/index.html | 6 +- dist/store/printer/printerTemplate/index.html | 6 +- dist/store/storeAddGoodsInfo/index.html | 6 +- dist/store/storeAdvertisement/index.html | 6 +- dist/store/storeDesktopNumber/index.html | 6 +- dist/store/storeGoodsInfo/index.html | 6 +- dist/store/storeInfo/index.html | 6 +- dist/store/storeLevel/index.html | 6 +- dist/store/storeStaff/index.html | 6 +- dist/store/storeType/index.html | 6 +- dist/sys/company/index.html | 6 +- dist/sys/companyApply/index.html | 6 +- dist/sys/deviceTypeConfig/index.html | 6 +- dist/sys/dictionary/dictdata/index.html | 6 +- dist/sys/dictionary/dicttype/index.html | 6 +- dist/sys/index.html | 6 +- dist/sys/log/index.html | 6 +- dist/sys/menus/index.html | 6 +- dist/sys/org/index.html | 6 +- dist/sys/paytemplate/index.html | 6 +- dist/sys/roles/index.html | 6 +- dist/sys/storemanage/index.html | 6 +- dist/sys/sysSettings/index.html | 6 +- dist/sys/user/index.html | 6 +- ...__plugin-layout__Layout.6a3c99f6.async.js} | 10 +- dist/test/index.html | 6 +- dist/test/update/index.html | 6 +- dist/umi.19d6b0c1.js | 245 ++++ dist/umi.a286743b.js | 254 ---- dist/{umi.ed4fa1d0.css => umi.c7eb3729.css} | 2 +- dist/user/index.html | 6 +- dist/user/login/index.html | 6 +- dist/welcome/index.html | 6 +- src/pages/bom/bomtype/index.jsx | 43 +- src/pages/bom/manage/index.jsx | 201 ++- src/pages/device/deviceFood/index.jsx | 23 +- src/pages/device/deviceInfo/index.jsx | 47 +- src/pages/device/devicemorkmwpush/index.jsx | 24 +- .../storeFoodMenu/components/CreateForm.jsx | 9 +- src/pages/foodMenu/storeFoodMenu/index.jsx | 357 +++--- src/pages/goods/goods-type-manage/index.jsx | 115 +- .../goods/goodsParentTypemanage/index.jsx | 107 +- src/pages/goods/goodstechnology/index.jsx | 49 +- .../memberInfo/components/CreateForm.jsx | 45 +- src/pages/order/order-market-report/index.jsx | 1134 +++++++++-------- src/pages/sys/org/components/CreateForm.jsx | 180 +-- 286 files changed, 2867 insertions(+), 2751 deletions(-) rename dist/{1981.11fa480c.chunk.css => 1279.11fa480c.chunk.css} (100%) delete mode 100644 dist/1791.3d891c89.async.js create mode 100644 dist/1791.de3f426f.async.js rename dist/{6487.89416762.chunk.css => 2107.89416762.chunk.css} (100%) rename dist/{5329.502268b7.chunk.css => 2221.502268b7.chunk.css} (100%) rename dist/{2323.f0e18d96.async.js => 2323.227e9752.async.js} (99%) delete mode 100644 dist/2339.bdbfbaf3.async.js create mode 100644 dist/2339.ed2cbc1e.async.js create mode 100644 dist/2342.f93c94c8.async.js rename dist/{7335.1df1d163.chunk.css => 2548.1df1d163.chunk.css} (100%) rename dist/{7335.e519791a.async.js => 2548.8d7de023.async.js} (99%) delete mode 100644 dist/2664.f9ceb3c1.async.js rename dist/{3453.fd105af1.chunk.css => 3100.fd105af1.chunk.css} (100%) delete mode 100644 dist/3315.1cf70445.async.js delete mode 100644 dist/4107.373c2fd8.async.js create mode 100644 dist/4107.824739af.async.js delete mode 100644 dist/4332.e34c6631.async.js create mode 100644 dist/4332.f72c890c.async.js create mode 100644 dist/438.81aa4fa1.async.js rename dist/{6587.f2bc03f5.chunk.css => 438.f2bc03f5.chunk.css} (100%) rename dist/{4374.c59ab6d9.async.js => 4884.07feb423.async.js} (99%) rename dist/{4374.84c7764e.chunk.css => 4884.84c7764e.chunk.css} (100%) delete mode 100644 dist/5429.0c280e31.async.js create mode 100644 dist/5429.fe2f82c1.async.js delete mode 100644 dist/5754.629f22ea.async.js create mode 100644 dist/5754.f1111397.async.js rename dist/{3390.a23d1d23.chunk.css => 5758.a23d1d23.chunk.css} (100%) rename dist/{3390.9366325d.async.js => 5758.b93a35fe.async.js} (97%) rename dist/{3888.c8d267bf.chunk.css => 5878.c8d267bf.chunk.css} (100%) create mode 100644 dist/6048.29142da8.async.js rename dist/{2664.a0296ac4.chunk.css => 6342.a0296ac4.chunk.css} (100%) create mode 100644 dist/6342.a4678b64.async.js rename dist/{6358.93252bf8.async.js => 6358.968394e0.async.js} (79%) rename dist/{2383.11fa480c.chunk.css => 6398.11fa480c.chunk.css} (100%) delete mode 100644 dist/6587.92ad04ea.async.js rename dist/{2869.11fa480c.chunk.css => 6794.11fa480c.chunk.css} (100%) rename dist/{7068.fefb1cfc.chunk.css => 7013.fefb1cfc.chunk.css} (100%) rename dist/{4670.1902a3a9.chunk.css => 7128.1902a3a9.chunk.css} (100%) rename dist/{7118.2a4ee98d.async.js => 74.8bf69b52.async.js} (99%) rename dist/{7118.e3693903.chunk.css => 74.e3693903.chunk.css} (100%) create mode 100644 dist/7679.55f904c1.async.js delete mode 100644 dist/7679.f79a9ae6.async.js delete mode 100644 dist/7751.8d3970bf.async.js create mode 100644 dist/7751.9861f868.async.js rename dist/{7013.11fa480c.chunk.css => 7800.11fa480c.chunk.css} (100%) delete mode 100644 dist/7921.0f9d6341.async.js create mode 100644 dist/7921.3352a50f.async.js rename dist/{8009.d8e56eb7.async.js => 8009.ee093a69.async.js} (99%) rename dist/{9464.11fa480c.chunk.css => 8208.11fa480c.chunk.css} (100%) delete mode 100644 dist/8321.6607b2ea.async.js create mode 100644 dist/8321.985f5731.async.js rename dist/{3315.09f1def5.chunk.css => 8676.09f1def5.chunk.css} (100%) create mode 100644 dist/8676.5ef744b4.async.js rename dist/{242.77baa42a.chunk.css => 8922.77baa42a.chunk.css} (100%) delete mode 100644 dist/8928.26563c15.async.js rename dist/{9396.82d7aca4.async.js => 9396.a3667fc5.async.js} (99%) rename dist/{9719.11fa480c.chunk.css => 944.11fa480c.chunk.css} (100%) create mode 100644 dist/9597.008ab1f9.async.js delete mode 100644 dist/9597.3aaf12cb.async.js delete mode 100644 dist/9645.697e668e.async.js delete mode 100644 dist/p__Welcome.aa5c9713.async.js create mode 100644 dist/p__Welcome.bb9f7d28.async.js rename dist/{p__applet__material.26df2b73.async.js => p__applet__material.cccae0c9.async.js} (73%) rename dist/{p__applet__pageManage.b92e901e.async.js => p__applet__pageManage.69355ea0.async.js} (50%) create mode 100644 dist/p__bom__bomtype.49cebc6c.async.js delete mode 100644 dist/p__bom__bomtype.51cd5d02.async.js rename dist/{p__bom__manage.e7349553.async.js => p__bom__manage.069e90fa.async.js} (99%) rename dist/{p__card__checkgoods.2562b360.async.js => p__card__checkgoods.b3349124.async.js} (66%) rename dist/{p__card__gate.e558c3c3.async.js => p__card__gate.dd9a60c7.async.js} (94%) rename dist/{p__card__gateAdmin.5e0d045d.async.js => p__card__gateAdmin.1cea148c.async.js} (89%) rename dist/{p__card__machine.b7955b89.async.js => p__card__machine.ce748e74.async.js} (86%) rename dist/{p__card__memberAccount.dfc17160.async.js => p__card__memberAccount.b5fbec50.async.js} (60%) delete mode 100644 dist/p__card__reservation.302f5d46.async.js create mode 100644 dist/p__card__reservation.d29bc772.async.js create mode 100644 dist/p__card__reservationReport.25ab5628.async.js delete mode 100644 dist/p__card__reservationReport.b0995e46.async.js rename dist/{p__card__storedValueCard.9cfd13a3.async.js => p__card__storedValueCard.93ac20da.async.js} (72%) rename dist/{p__crm__coupon__coupon-Batch.47f0d255.async.js => p__crm__coupon__coupon-Batch.b8a7f94e.async.js} (70%) rename dist/{p__crm__coupon__goodsCoupon.d1a90272.async.js => p__crm__coupon__goodsCoupon.52e05d13.async.js} (99%) create mode 100644 dist/p__device__deviceInfo.ba02bdba.async.js delete mode 100644 dist/p__device__deviceInfo.ea5e9087.async.js rename dist/{p__erp__bill__receivingNote.5f83b47a.async.js => p__erp__bill__receivingNote.488abe37.async.js} (63%) rename dist/{p__erp__stock.e7ae1c4a.async.js => p__erp__stock.a4420aff.async.js} (59%) create mode 100644 dist/p__financereport__finance.588489c0.async.js delete mode 100644 dist/p__financereport__finance.9e245f57.async.js delete mode 100644 dist/p__foodMenu__storeFoodMenu.3baedcd8.async.js create mode 100644 dist/p__foodMenu__storeFoodMenu.7e1aebae.async.js delete mode 100644 dist/p__goods__goods-taste.472ffe88.async.js create mode 100644 dist/p__goods__goods-taste.b1c1e302.async.js delete mode 100644 dist/p__goods__goods-type-manage.a65e29cf.async.js create mode 100644 dist/p__goods__goods-type-manage.b16288ec.async.js rename dist/{p__goods__goodsInfo.fc6f7810.async.js => p__goods__goodsInfo.f217b907.async.js} (90%) delete mode 100644 dist/p__goods__goodsParentTypemanage.4aa292c9.async.js create mode 100644 dist/p__goods__goodsParentTypemanage.945a22b8.async.js rename dist/{p__goods__goodsPractice.bad5ced0.async.js => p__goods__goodsPractice.18c39f95.async.js} (99%) rename dist/{p__goods__goodsPracticeInfo.ff340517.async.js => p__goods__goodsPracticeInfo.92021054.async.js} (99%) rename dist/{p__goods__goodsPracticeType.85dfb1c5.async.js => p__goods__goodsPracticeType.22be953e.async.js} (99%) delete mode 100644 dist/p__goods__goodstechnology.25b9830e.async.js create mode 100644 dist/p__goods__goodstechnology.cedbcd2a.async.js rename dist/{p__goods__newgoods.f183aca2.async.js => p__goods__newgoods.84c3e622.async.js} (83%) rename dist/{p__integral__integralConfigure.ff7adb78.async.js => p__integral__integralConfigure.39c4b349.async.js} (63%) create mode 100644 dist/p__member__memberInfo.0c37ae63.async.js delete mode 100644 dist/p__member__memberInfo.453940cc.async.js delete mode 100644 dist/p__order__DailyReport.3051486a.async.js create mode 100644 dist/p__order__DailyReport.6172e159.async.js delete mode 100644 dist/p__order__cost-of-sales.de68d12b.async.js create mode 100644 dist/p__order__cost-of-sales.e75bd719.async.js create mode 100644 dist/p__order__gross-profit-store-sales.45c43365.async.js delete mode 100644 dist/p__order__gross-profit-store-sales.c6196cd7.async.js rename dist/{p__order__order-flow-manage.44faa7f5.async.js => p__order__order-flow-manage.9b534953.async.js} (59%) delete mode 100644 dist/p__order__order-market-report.2f35f064.async.js create mode 100644 dist/p__order__order-market-report.7ce1f6c9.async.js rename dist/{p__order__order-nopay-detail.338fbc17.async.js => p__order__order-nopay-detail.ae52fbfc.async.js} (84%) create mode 100644 dist/p__order__order-report.708b5dd7.async.js delete mode 100644 dist/p__order__order-report.dbb42468.async.js rename dist/{p__order__order-summary-manage.181ee0f4.async.js => p__order__order-summary-manage.2e400c45.async.js} (61%) delete mode 100644 dist/p__order__sales-gross-profit.296849ec.async.js create mode 100644 dist/p__order__sales-gross-profit.5eb70b0d.async.js create mode 100644 dist/p__order__salesReport.201a26cc.async.js delete mode 100644 dist/p__order__salesReport.53d415d3.async.js rename dist/{p__quickStart.e382da4e.async.js => p__quickStart.c405abce.async.js} (99%) rename dist/{p__split__account.7df24ef1.async.js => p__split__account.54887287.async.js} (85%) rename dist/{p__split__plan.9bd63172.async.js => p__split__plan.6a2d8f94.async.js} (81%) delete mode 100644 dist/p__store__printer__printerTemplate.85273370.async.js create mode 100644 dist/p__store__printer__printerTemplate.e625f119.async.js rename dist/{p__store__storeGoodsInfo.240cfce6.async.js => p__store__storeGoodsInfo.124a2f9a.async.js} (99%) rename dist/{p__store__storeInfo.807b8347.async.js => p__store__storeInfo.e71eddc6.async.js} (70%) rename dist/{p__store__storeLevel.e47d1ec2.async.js => p__store__storeLevel.4f76ebc9.async.js} (66%) rename dist/{p__store__storeStaff.a161860a.async.js => p__store__storeStaff.418b42e0.async.js} (72%) rename dist/{p__store__storeType.60c12a0e.async.js => p__store__storeType.4725c004.async.js} (60%) delete mode 100644 dist/p__sys__org.93ff6838.async.js create mode 100644 dist/p__sys__org.aef7ec07.async.js delete mode 100644 dist/p__sys__storemanage.046969cf.async.js create mode 100644 dist/p__sys__storemanage.2484d8d8.async.js create mode 100644 dist/p__test.1b7ebf62.async.js delete mode 100644 dist/p__test.d3c03b9b.async.js rename dist/{p__user__login.742db7c5.async.js => p__user__login.18377057.async.js} (99%) rename dist/{t__plugin-layout__Layout.5d0197aa.async.js => t__plugin-layout__Layout.6a3c99f6.async.js} (51%) create mode 100644 dist/umi.19d6b0c1.js delete mode 100644 dist/umi.a286743b.js rename dist/{umi.ed4fa1d0.css => umi.c7eb3729.css} (65%) diff --git a/dist/1981.11fa480c.chunk.css b/dist/1279.11fa480c.chunk.css similarity index 100% rename from dist/1981.11fa480c.chunk.css rename to dist/1279.11fa480c.chunk.css diff --git a/dist/1791.3d891c89.async.js b/dist/1791.3d891c89.async.js deleted file mode 100644 index 15bd7ba..0000000 --- a/dist/1791.3d891c89.async.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[1791],{63252:function(){},93009:function(rt,Ke,v){"use strict";v.d(Ke,{Z:function(){return Yt}});var g=v(22122),l=v(67294),Z=v(96156),Re=v(55507),Me=v(90484),re=v(85061),ve=v(28481),at=v(94184),H=v.n(at),ze=v(6610),He=v(5991),Ge=v(10379),Ve=v(44144),ot=v(81253),it=v(92137),lt=v(64217);function st(n,t){var i="cannot ".concat(n.method," ").concat(n.action," ").concat(t.status,"'"),e=new Error(i);return e.status=t.status,e.method=n.method,e.url=n.action,e}function Xe(n){var t=n.responseText||n.response;if(!t)return t;try{return JSON.parse(t)}catch(i){return t}}function ct(n){var t=new XMLHttpRequest;n.onProgress&&t.upload&&(t.upload.onprogress=function(a){a.total>0&&(a.percent=a.loaded/a.total*100),n.onProgress(a)});var i=new FormData;n.data&&Object.keys(n.data).forEach(function(o){var a=n.data[o];if(Array.isArray(a)){a.forEach(function(c){i.append("".concat(o,"[]"),c)});return}i.append(o,a)}),n.file instanceof Blob?i.append(n.filename,n.file,n.file.name):i.append(n.filename,n.file),t.onerror=function(a){n.onError(a)},t.onload=function(){return t.status<200||t.status>=300?n.onError(st(n,t),Xe(t)):n.onSuccess(Xe(t),t)},t.open(n.method,n.action,!0),n.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);var e=n.headers||{};return e["X-Requested-With"]!==null&&t.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(e).forEach(function(o){e[o]!==null&&t.setRequestHeader(o,e[o])}),t.send(i),{abort:function(){t.abort()}}}var ut=+new Date,dt=0;function Te(){return"rc-upload-".concat(ut,"-").concat(++dt)}var vt=v(80334),$e=function(n,t){if(n&&t){var i=Array.isArray(t)?t:t.split(","),e=n.name||"",o=n.type||"",a=o.replace(/\/.*$/,"");return i.some(function(c){var s=c.trim();if(/^\*(\/\*)?$/.test(c))return!0;if(s.charAt(0)==="."){var r=e.toLowerCase(),u=s.toLowerCase(),d=[u];return(u===".jpg"||u===".jpeg")&&(d=[".jpg",".jpeg"]),d.some(function(y){return r.endsWith(y)})}return/\/\*$/.test(s)?a===s.replace(/\/.*$/,""):o===s?!0:/^\w+$/.test(s)?((0,vt.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(s,"'.Skip for check.")),!0):!1})}return!0};function ft(n,t){var i=n.createReader(),e=[];function o(){i.readEntries(function(a){var c=Array.prototype.slice.apply(a);e=e.concat(c);var s=!c.length;s?t(e):o()})}o()}var pt=function(t,i,e){var o=function a(c,s){c.path=s||"",c.isFile?c.file(function(r){e(r)&&(c.fullPath&&!r.webkitRelativePath&&(Object.defineProperties(r,{webkitRelativePath:{writable:!0}}),r.webkitRelativePath=c.fullPath.replace(/^\//,""),Object.defineProperties(r,{webkitRelativePath:{writable:!1}})),i([r]))}):c.isDirectory&&ft(c,function(r){r.forEach(function(u){a(u,"".concat(s).concat(c.name,"/"))})})};t.forEach(function(a){o(a.webkitGetAsEntry())})},mt=pt,ht=["component","prefixCls","className","disabled","id","style","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave"],gt=function(n){(0,Ge.Z)(i,n);var t=(0,Ve.Z)(i);function i(){var e;(0,ze.Z)(this,i);for(var o=arguments.length,a=new Array(o),c=0;c0&&arguments[0]!==void 0?arguments[0]:"",i=t.split("/"),e=i[i.length-1],o=e.split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(o)||[""])[0]},_e=function(t){return t.indexOf("image/")===0},xt=function(t){if(t.type&&!t.thumbUrl)return _e(t.type);var i=t.thumbUrl||t.url||"",e=Lt(i);return/^data:image\//.test(i)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(e)?!0:!(/^data:/.test(i)||e)},ae=200;function Ot(n){return new Promise(function(t){if(!n.type||!_e(n.type)){t("");return}var i=document.createElement("canvas");i.width=ae,i.height=ae,i.style.cssText="position: fixed; left: 0; top: 0; width: ".concat(ae,"px; height: ").concat(ae,"px; z-index: 9999; display: none;"),document.body.appendChild(i);var e=i.getContext("2d"),o=new Image;if(o.onload=function(){var c=o.width,s=o.height,r=ae,u=ae,d=0,y=0;c>s?(u=s*(ae/c),y=-(u-r)/2):(r=c*(ae/s),d=-(r-u)/2),e.drawImage(o,d,y,r,u);var h=i.toDataURL();document.body.removeChild(i),t(h)},o.crossOrigin="anonymous",n.type.startsWith("image/svg+xml")){var a=new FileReader;a.addEventListener("load",function(){a.result&&(o.src=a.result)}),a.readAsDataURL(n)}else o.src=window.URL.createObjectURL(n)})}var Nt=v(73171),Mt=v(90631),Tt=v(95357),$t=v(54458),At=v(45777),kt=l.forwardRef(function(n,t){var i,e=n.prefixCls,o=n.className,a=n.style,c=n.locale,s=n.listType,r=n.file,u=n.items,d=n.progress,y=n.iconRender,h=n.actionIconRender,D=n.itemRender,R=n.isImgUrl,k=n.showPreviewIcon,N=n.showRemoveIcon,F=n.showDownloadIcon,M=n.previewIcon,$=n.removeIcon,j=n.downloadIcon,f=n.onPreview,U=n.onDownload,O=n.onClose,oe,G,ie=r.status,fe=l.useState(ie),le=(0,ve.Z)(fe,2),B=le[0],pe=le[1];l.useEffect(function(){ie!=="removed"&&pe(ie)},[ie]);var me=l.useState(!1),he=(0,ve.Z)(me,2),ge=he[0],De=he[1],Q=l.useRef(null);l.useEffect(function(){return Q.current=setTimeout(function(){De(!0)},300),function(){Q.current&&clearTimeout(Q.current)}},[]);var be="".concat(e,"-span"),se=y(r),ce=l.createElement("div",{className:"".concat(e,"-text-icon")},se);if(s==="picture"||s==="picture-card")if(B==="uploading"||!r.thumbUrl&&!r.url){var q,_=H()((q={},(0,Z.Z)(q,"".concat(e,"-list-item-thumbnail"),!0),(0,Z.Z)(q,"".concat(e,"-list-item-file"),B!=="uploading"),q));ce=l.createElement("div",{className:_},se)}else{var ue,ye=(R==null?void 0:R(r))?l.createElement("img",{src:r.thumbUrl||r.url,alt:r.name,className:"".concat(e,"-list-item-image"),crossOrigin:r.crossOrigin}):se,S=H()((ue={},(0,Z.Z)(ue,"".concat(e,"-list-item-thumbnail"),!0),(0,Z.Z)(ue,"".concat(e,"-list-item-file"),R&&!R(r)),ue));ce=l.createElement("a",{className:S,onClick:function(A){return f(r,A)},href:r.url||r.thumbUrl,target:"_blank",rel:"noopener noreferrer"},ye)}var Fe=H()((i={},(0,Z.Z)(i,"".concat(e,"-list-item"),!0),(0,Z.Z)(i,"".concat(e,"-list-item-").concat(B),!0),(0,Z.Z)(i,"".concat(e,"-list-item-list-type-").concat(s),!0),i)),Ue=typeof r.linkProps=="string"?JSON.parse(r.linkProps):r.linkProps,Y=N?h((typeof $=="function"?$(r):$)||l.createElement(Nt.Z,null),function(){return O(r)},e,c.removeFile):null,we=F&&B==="done"?h((typeof j=="function"?j(r):j)||l.createElement(Mt.Z,null),function(){return U(r)},e,c.downloadFile):null,Ee=s!=="picture-card"&&l.createElement("span",{key:"download-delete",className:H()("".concat(e,"-list-item-card-actions"),{picture:s==="picture"})},we,Y),ee=H()("".concat(e,"-list-item-name")),V=r.url?[l.createElement("a",(0,g.Z)({key:"view",target:"_blank",rel:"noopener noreferrer",className:ee,title:r.name},Ue,{href:r.url,onClick:function(A){return f(r,A)}}),r.name),Ee]:[l.createElement("span",{key:"view",className:ee,onClick:function(A){return f(r,A)},title:r.name},r.name),Ee],E={pointerEvents:"none",opacity:.5},w=k?l.createElement("a",{href:r.url||r.thumbUrl,target:"_blank",rel:"noopener noreferrer",style:r.url||r.thumbUrl?void 0:E,onClick:function(A){return f(r,A)},title:c.previewFile},typeof M=="function"?M(r):M||l.createElement(Tt.Z,null)):null,x=s==="picture-card"&&B!=="uploading"&&l.createElement("span",{className:"".concat(e,"-list-item-actions")},w,B==="done"&&we,Y),T;r.response&&typeof r.response=="string"?T=r.response:T=((oe=r.error)===null||oe===void 0?void 0:oe.statusText)||((G=r.error)===null||G===void 0?void 0:G.message)||c.uploadError;var X=l.createElement("span",{className:be},ce,V),Ie=l.useContext(ke.E_),de=Ie.getPrefixCls,Ce=de(),Ze=l.createElement("div",{className:Fe},l.createElement("div",{className:"".concat(e,"-list-item-info")},X),x,ge&&l.createElement(je.Z,{motionName:"".concat(Ce,"-fade"),visible:B==="uploading",motionDeadline:2e3},function(J){var A=J.className,te="percent"in r?l.createElement($t.Z,(0,g.Z)({},d,{type:"line",percent:r.percent})):null;return l.createElement("div",{className:H()("".concat(e,"-list-item-progress"),A)},te)})),Ne=H()("".concat(e,"-list-").concat(s,"-container"),o),L=B==="error"?l.createElement(At.Z,{title:T,getPopupContainer:function(A){return A.parentNode}},Ze):Ze;return l.createElement("div",{className:Ne,style:a,ref:t},D?D(L,r,u,{download:U.bind(null,r),preview:f.bind(null,r),remove:O.bind(null,r)}):L)}),jt=kt,Oe=(0,g.Z)({},Ut.ZP);delete Oe.onAppearEnd,delete Oe.onEnterEnd,delete Oe.onLeaveEnd;var Bt=function(t,i){var e,o=t.listType,a=o===void 0?"text":o,c=t.previewFile,s=c===void 0?Ot:c,r=t.onPreview,u=t.onDownload,d=t.onRemove,y=t.locale,h=t.iconRender,D=t.isImageUrl,R=D===void 0?xt:D,k=t.prefixCls,N=t.items,F=N===void 0?[]:N,M=t.showPreviewIcon,$=M===void 0?!0:M,j=t.showRemoveIcon,f=j===void 0?!0:j,U=t.showDownloadIcon,O=U===void 0?!1:U,oe=t.removeIcon,G=t.previewIcon,ie=t.downloadIcon,fe=t.progress,le=fe===void 0?{strokeWidth:2,showInfo:!1}:fe,B=t.appendAction,pe=t.appendActionVisible,me=pe===void 0?!0:pe,he=t.itemRender,ge=(0,Ft.Z)(),De=l.useState(!1),Q=(0,ve.Z)(De,2),be=Q[0],se=Q[1];l.useEffect(function(){a!=="picture"&&a!=="picture-card"||(F||[]).forEach(function(E){typeof document=="undefined"||typeof window=="undefined"||!window.FileReader||!window.File||!(E.originFileObj instanceof File||E.originFileObj instanceof Blob)||E.thumbUrl!==void 0||(E.thumbUrl="",s&&s(E.originFileObj).then(function(w){E.thumbUrl=w||"",ge()}))})},[a,F,s]),l.useEffect(function(){se(!0)},[]);var ce=function(w,x){if(!!r)return x==null||x.preventDefault(),r(w)},q=function(w){typeof u=="function"?u(w):w.url&&window.open(w.url)},_=function(w){d==null||d(w)},ue=function(w){if(h)return h(w,a);var x=w.status==="uploading",T=R&&R(w)?l.createElement(bt.Z,null):l.createElement(Pt.Z,null),X=x?l.createElement(Qe.Z,null):l.createElement(Dt.Z,null);return a==="picture"?X=x?l.createElement(Qe.Z,null):T:a==="picture-card"&&(X=x?y.uploading:T),X},ye=function(w,x,T,X){var Ie={type:"text",size:"small",title:X,onClick:function(Ze){x(),(0,Se.l$)(w)&&w.props.onClick&&w.props.onClick(Ze)},className:"".concat(T,"-list-item-card-actions-btn")};if((0,Se.l$)(w)){var de=(0,Se.Tm)(w,(0,g.Z)((0,g.Z)({},w.props),{onClick:function(){}}));return l.createElement(qe.Z,(0,g.Z)({},Ie,{icon:de}))}return l.createElement(qe.Z,(0,g.Z)({},Ie),l.createElement("span",null,w))};l.useImperativeHandle(i,function(){return{handlePreview:ce,handleDownload:q}});var S=l.useContext(ke.E_),Fe=S.getPrefixCls,Ue=S.direction,Y=Fe("upload",k),we=H()((e={},(0,Z.Z)(e,"".concat(Y,"-list"),!0),(0,Z.Z)(e,"".concat(Y,"-list-").concat(a),!0),(0,Z.Z)(e,"".concat(Y,"-list-rtl"),Ue==="rtl"),e)),Ee=(0,re.Z)(F.map(function(E){return{key:E.uid,file:E}})),ee=a==="picture-card"?"animate-inline":"animate",V={motionDeadline:2e3,motionName:"".concat(Y,"-").concat(ee),keys:Ee,motionAppear:be};return a!=="picture-card"&&(V=(0,g.Z)((0,g.Z)({},Oe),V)),l.createElement("div",{className:we},l.createElement(je.V,(0,g.Z)({},V,{component:!1}),function(E){var w=E.key,x=E.file,T=E.className,X=E.style;return l.createElement(jt,{key:w,locale:y,prefixCls:Y,className:T,style:X,file:x,items:F,progress:le,listType:a,isImgUrl:R,showPreviewIcon:$,showRemoveIcon:f,showDownloadIcon:O,removeIcon:oe,previewIcon:G,downloadIcon:ie,iconRender:ue,actionIconRender:ye,itemRender:he,onPreview:ce,onDownload:q,onClose:_})}),B&&l.createElement(je.Z,(0,g.Z)({},V,{visible:me,forceRender:!0}),function(E){var w=E.className,x=E.style;return(0,Se.Tm)(B,function(T){return{className:H()(T.className,w),style:(0,g.Z)((0,g.Z)((0,g.Z)({},x),{pointerEvents:w?"none":void 0}),T.style)}})}))},Wt=l.forwardRef(Bt),Kt=Wt,zt=function(n,t,i,e){function o(a){return a instanceof i?a:new i(function(c){c(a)})}return new(i||(i=Promise))(function(a,c){function s(d){try{u(e.next(d))}catch(y){c(y)}}function r(d){try{u(e.throw(d))}catch(y){c(y)}}function u(d){d.done?a(d.value):o(d.value).then(s,r)}u((e=e.apply(n,t||[])).next())})},Pe="__LIST_IGNORE_".concat(Date.now(),"__"),Ht=function(t,i){var e,o=t.fileList,a=t.defaultFileList,c=t.onRemove,s=t.showUploadList,r=s===void 0?!0:s,u=t.listType,d=u===void 0?"text":u,y=t.onPreview,h=t.onDownload,D=t.onChange,R=t.onDrop,k=t.previewFile,N=t.disabled,F=t.locale,M=t.iconRender,$=t.isImageUrl,j=t.progress,f=t.prefixCls,U=t.className,O=t.type,oe=O===void 0?"select":O,G=t.children,ie=t.style,fe=t.itemRender,le=t.maxCount,B=t.data,pe=B===void 0?{}:B,me=t.multiple,he=me===void 0?!1:me,ge=t.action,De=ge===void 0?"":ge,Q=t.accept,be=Q===void 0?"":Q,se=t.supportServerRender,ce=se===void 0?!0:se,q=l.useContext(Ct.Z),_=N!=null?N:q,ue=(0,Et.Z)(a||[],{value:o,postState:function(m){return m!=null?m:[]}}),ye=(0,ve.Z)(ue,2),S=ye[0],Fe=ye[1],Ue=l.useState("drop"),Y=(0,ve.Z)(Ue,2),we=Y[0],Ee=Y[1],ee=l.useRef(null);l.useMemo(function(){var W=Date.now();(o||[]).forEach(function(m,C){!m.uid&&!Object.isFrozen(m)&&(m.uid="__AUTO__".concat(W,"_").concat(C,"__"))})},[o]);var V=function(m,C,b){var p=(0,re.Z)(C);le===1?p=p.slice(-1):le&&(p=p.slice(0,le)),(0,It.flushSync)(function(){Fe(p)});var I={file:m,fileList:p};b&&(I.event=b),D==null||D(I)},E=function(m,C){return zt(void 0,void 0,void 0,(0,Re.Z)().mark(function b(){var p,I,K,z;return(0,Re.Z)().wrap(function(P){for(;;)switch(P.prev=P.next){case 0:if(p=t.beforeUpload,I=t.transformFile,K=m,!p){P.next=13;break}return P.next=5,p(m,C);case 5:if(z=P.sent,z!==!1){P.next=8;break}return P.abrupt("return",!1);case 8:if(delete m[Pe],z!==Pe){P.next=12;break}return Object.defineProperty(m,Pe,{value:!0,configurable:!0}),P.abrupt("return",!1);case 12:(0,Me.Z)(z)==="object"&&z&&(K=z);case 13:if(!I){P.next=17;break}return P.next=16,I(K);case 16:K=P.sent;case 17:return P.abrupt("return",K);case 18:case"end":return P.stop()}},b)}))},w=function(m){var C=m.filter(function(I){return!I.file[Pe]});if(!!C.length){var b=C.map(function(I){return Le(I.file)}),p=(0,re.Z)(S);b.forEach(function(I){p=xe(I,p)}),b.forEach(function(I,K){var z=I;if(C[K].parsedFile)I.status="uploading";else{var ne=I.originFileObj,P;try{P=new File([ne],ne.name,{type:ne.type})}catch(nt){P=new Blob([ne],{type:ne.type}),P.name=ne.name,P.lastModifiedDate=new Date,P.lastModified=new Date().getTime()}P.uid=I.uid,z=P}V(z,p)})}},x=function(m,C,b){try{typeof m=="string"&&(m=JSON.parse(m))}catch(K){}if(!!Be(C,S)){var p=Le(C);p.status="done",p.percent=100,p.response=m,p.xhr=b;var I=xe(p,S);V(p,I)}},T=function(m,C){if(!!Be(C,S)){var b=Le(C);b.status="uploading",b.percent=m.percent;var p=xe(b,S);V(b,p,m)}},X=function(m,C,b){if(!!Be(b,S)){var p=Le(b);p.error=m,p.response=C,p.status="error";var I=xe(p,S);V(p,I)}},Ie=function(m){var C;Promise.resolve(typeof c=="function"?c(m):c).then(function(b){var p;if(b!==!1){var I=St(m,S);I&&(C=(0,g.Z)((0,g.Z)({},m),{status:"removed"}),S==null||S.forEach(function(K){var z=C.uid!==void 0?"uid":"name";K[z]===C[z]&&!Object.isFrozen(K)&&(K.status="removed")}),(p=ee.current)===null||p===void 0||p.abort(C),V(C,I))}})},de=function(m){Ee(m.type),m.type==="drop"&&(R==null||R(m))};l.useImperativeHandle(i,function(){return{onBatchStart:w,onSuccess:x,onProgress:T,onError:X,fileList:S,upload:ee.current}});var Ce=l.useContext(ke.E_),Ze=Ce.getPrefixCls,Ne=Ce.direction,L=Ze("upload",f),J=(0,g.Z)((0,g.Z)({onBatchStart:w,onError:X,onProgress:T,onSuccess:x},t),{data:pe,multiple:he,action:De,accept:be,supportServerRender:ce,prefixCls:L,disabled:_,beforeUpload:E,onChange:void 0});delete J.className,delete J.style,(!G||_)&&delete J.id;var A=function(m,C){return r?l.createElement(Zt.Z,{componentName:"Upload",defaultLocale:Rt.Z.Upload},function(b){var p=typeof r=="boolean"?{}:r,I=p.showRemoveIcon,K=p.showPreviewIcon,z=p.showDownloadIcon,ne=p.removeIcon,P=p.previewIcon,nt=p.downloadIcon;return l.createElement(Kt,{prefixCls:L,listType:d,items:S,previewFile:k,onPreview:y,onDownload:h,onRemove:Ie,showRemoveIcon:!_&&I,showPreviewIcon:K,showDownloadIcon:z,removeIcon:ne,previewIcon:P,downloadIcon:nt,iconRender:M,locale:(0,g.Z)((0,g.Z)({},b),F),isImageUrl:$,progress:j,appendAction:m,appendActionVisible:C,itemRender:fe})}):m};if(oe==="drag"){var te,Qt=H()(L,(te={},(0,Z.Z)(te,"".concat(L,"-drag"),!0),(0,Z.Z)(te,"".concat(L,"-drag-uploading"),S.some(function(W){return W.status==="uploading"})),(0,Z.Z)(te,"".concat(L,"-drag-hover"),we==="dragover"),(0,Z.Z)(te,"".concat(L,"-disabled"),_),(0,Z.Z)(te,"".concat(L,"-rtl"),Ne==="rtl"),te),U);return l.createElement("span",null,l.createElement("div",{className:Qt,onDrop:de,onDragOver:de,onDragLeave:de,style:ie},l.createElement(Ye,(0,g.Z)({},J,{ref:ee,className:"".concat(L,"-btn")}),l.createElement("div",{className:"".concat(L,"-drag-container")},G))),A())}var qt=H()(L,(e={},(0,Z.Z)(e,"".concat(L,"-select"),!0),(0,Z.Z)(e,"".concat(L,"-select-").concat(d),!0),(0,Z.Z)(e,"".concat(L,"-disabled"),_),(0,Z.Z)(e,"".concat(L,"-rtl"),Ne==="rtl"),e)),_t=function(m){return l.createElement("div",{className:qt,style:m},l.createElement(Ye,(0,g.Z)({},J,{ref:ee})))},tt=_t(G?void 0:{display:"none"});return d==="picture-card"?l.createElement("span",{className:H()("".concat(L,"-picture-card-wrapper"),U)},A(tt,!!G)):l.createElement("span",{className:U},tt,A())},Gt=l.forwardRef(Ht),et=Gt,Vt=function(n,t){var i={};for(var e in n)Object.prototype.hasOwnProperty.call(n,e)&&t.indexOf(e)<0&&(i[e]=n[e]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,e=Object.getOwnPropertySymbols(n);o0&&(a.percent=a.loaded/a.total*100),n.onProgress(a)});var i=new FormData;n.data&&Object.keys(n.data).forEach(function(o){var a=n.data[o];if(Array.isArray(a)){a.forEach(function(c){i.append("".concat(o,"[]"),c)});return}i.append(o,a)}),n.file instanceof Blob?i.append(n.filename,n.file,n.file.name):i.append(n.filename,n.file),t.onerror=function(a){n.onError(a)},t.onload=function(){return t.status<200||t.status>=300?n.onError(st(n,t),Xe(t)):n.onSuccess(Xe(t),t)},t.open(n.method,n.action,!0),n.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);var e=n.headers||{};return e["X-Requested-With"]!==null&&t.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(e).forEach(function(o){e[o]!==null&&t.setRequestHeader(o,e[o])}),t.send(i),{abort:function(){t.abort()}}}var ut=+new Date,dt=0;function Te(){return"rc-upload-".concat(ut,"-").concat(++dt)}var vt=v(80334),$e=function(n,t){if(n&&t){var i=Array.isArray(t)?t:t.split(","),e=n.name||"",o=n.type||"",a=o.replace(/\/.*$/,"");return i.some(function(c){var s=c.trim();if(/^\*(\/\*)?$/.test(c))return!0;if(s.charAt(0)==="."){var r=e.toLowerCase(),u=s.toLowerCase(),d=[u];return(u===".jpg"||u===".jpeg")&&(d=[".jpg",".jpeg"]),d.some(function(y){return r.endsWith(y)})}return/\/\*$/.test(s)?a===s.replace(/\/.*$/,""):o===s?!0:/^\w+$/.test(s)?((0,vt.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(s,"'.Skip for check.")),!0):!1})}return!0};function ft(n,t){var i=n.createReader(),e=[];function o(){i.readEntries(function(a){var c=Array.prototype.slice.apply(a);e=e.concat(c);var s=!c.length;s?t(e):o()})}o()}var pt=function(t,i,e){var o=function a(c,s){c.path=s||"",c.isFile?c.file(function(r){e(r)&&(c.fullPath&&!r.webkitRelativePath&&(Object.defineProperties(r,{webkitRelativePath:{writable:!0}}),r.webkitRelativePath=c.fullPath.replace(/^\//,""),Object.defineProperties(r,{webkitRelativePath:{writable:!1}})),i([r]))}):c.isDirectory&&ft(c,function(r){r.forEach(function(u){a(u,"".concat(s).concat(c.name,"/"))})})};t.forEach(function(a){o(a.webkitGetAsEntry())})},mt=pt,ht=["component","prefixCls","className","disabled","id","style","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave"],gt=function(n){(0,Ge.Z)(i,n);var t=(0,Ve.Z)(i);function i(){var e;(0,ze.Z)(this,i);for(var o=arguments.length,a=new Array(o),c=0;c0&&arguments[0]!==void 0?arguments[0]:"",i=t.split("/"),e=i[i.length-1],o=e.split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(o)||[""])[0]},_e=function(t){return t.indexOf("image/")===0},xt=function(t){if(t.type&&!t.thumbUrl)return _e(t.type);var i=t.thumbUrl||t.url||"",e=Lt(i);return/^data:image\//.test(i)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(e)?!0:!(/^data:/.test(i)||e)},ae=200;function Ot(n){return new Promise(function(t){if(!n.type||!_e(n.type)){t("");return}var i=document.createElement("canvas");i.width=ae,i.height=ae,i.style.cssText="position: fixed; left: 0; top: 0; width: ".concat(ae,"px; height: ").concat(ae,"px; z-index: 9999; display: none;"),document.body.appendChild(i);var e=i.getContext("2d"),o=new Image;if(o.onload=function(){var c=o.width,s=o.height,r=ae,u=ae,d=0,y=0;c>s?(u=s*(ae/c),y=-(u-r)/2):(r=c*(ae/s),d=-(r-u)/2),e.drawImage(o,d,y,r,u);var h=i.toDataURL();document.body.removeChild(i),t(h)},o.crossOrigin="anonymous",n.type.startsWith("image/svg+xml")){var a=new FileReader;a.addEventListener("load",function(){a.result&&(o.src=a.result)}),a.readAsDataURL(n)}else o.src=window.URL.createObjectURL(n)})}var Nt=v(73171),Mt=v(90631),Tt=v(95357),$t=v(54458),At=v(45777),kt=l.forwardRef(function(n,t){var i,e=n.prefixCls,o=n.className,a=n.style,c=n.locale,s=n.listType,r=n.file,u=n.items,d=n.progress,y=n.iconRender,h=n.actionIconRender,D=n.itemRender,R=n.isImgUrl,k=n.showPreviewIcon,N=n.showRemoveIcon,F=n.showDownloadIcon,M=n.previewIcon,$=n.removeIcon,j=n.downloadIcon,f=n.onPreview,U=n.onDownload,O=n.onClose,oe,G,ie=r.status,fe=l.useState(ie),le=(0,ve.Z)(fe,2),B=le[0],pe=le[1];l.useEffect(function(){ie!=="removed"&&pe(ie)},[ie]);var me=l.useState(!1),he=(0,ve.Z)(me,2),ge=he[0],De=he[1],Q=l.useRef(null);l.useEffect(function(){return Q.current=setTimeout(function(){De(!0)},300),function(){Q.current&&clearTimeout(Q.current)}},[]);var be="".concat(e,"-span"),se=y(r),ce=l.createElement("div",{className:"".concat(e,"-text-icon")},se);if(s==="picture"||s==="picture-card")if(B==="uploading"||!r.thumbUrl&&!r.url){var q,_=H()((q={},(0,Z.Z)(q,"".concat(e,"-list-item-thumbnail"),!0),(0,Z.Z)(q,"".concat(e,"-list-item-file"),B!=="uploading"),q));ce=l.createElement("div",{className:_},se)}else{var ue,ye=(R==null?void 0:R(r))?l.createElement("img",{src:r.thumbUrl||r.url,alt:r.name,className:"".concat(e,"-list-item-image"),crossOrigin:r.crossOrigin}):se,S=H()((ue={},(0,Z.Z)(ue,"".concat(e,"-list-item-thumbnail"),!0),(0,Z.Z)(ue,"".concat(e,"-list-item-file"),R&&!R(r)),ue));ce=l.createElement("a",{className:S,onClick:function(A){return f(r,A)},href:r.url||r.thumbUrl,target:"_blank",rel:"noopener noreferrer"},ye)}var Fe=H()((i={},(0,Z.Z)(i,"".concat(e,"-list-item"),!0),(0,Z.Z)(i,"".concat(e,"-list-item-").concat(B),!0),(0,Z.Z)(i,"".concat(e,"-list-item-list-type-").concat(s),!0),i)),Ue=typeof r.linkProps=="string"?JSON.parse(r.linkProps):r.linkProps,Y=N?h((typeof $=="function"?$(r):$)||l.createElement(Nt.Z,null),function(){return O(r)},e,c.removeFile):null,we=F&&B==="done"?h((typeof j=="function"?j(r):j)||l.createElement(Mt.Z,null),function(){return U(r)},e,c.downloadFile):null,Ee=s!=="picture-card"&&l.createElement("span",{key:"download-delete",className:H()("".concat(e,"-list-item-card-actions"),{picture:s==="picture"})},we,Y),ee=H()("".concat(e,"-list-item-name")),V=r.url?[l.createElement("a",(0,g.Z)({key:"view",target:"_blank",rel:"noopener noreferrer",className:ee,title:r.name},Ue,{href:r.url,onClick:function(A){return f(r,A)}}),r.name),Ee]:[l.createElement("span",{key:"view",className:ee,onClick:function(A){return f(r,A)},title:r.name},r.name),Ee],E={pointerEvents:"none",opacity:.5},w=k?l.createElement("a",{href:r.url||r.thumbUrl,target:"_blank",rel:"noopener noreferrer",style:r.url||r.thumbUrl?void 0:E,onClick:function(A){return f(r,A)},title:c.previewFile},typeof M=="function"?M(r):M||l.createElement(Tt.Z,null)):null,x=s==="picture-card"&&B!=="uploading"&&l.createElement("span",{className:"".concat(e,"-list-item-actions")},w,B==="done"&&we,Y),T;r.response&&typeof r.response=="string"?T=r.response:T=((oe=r.error)===null||oe===void 0?void 0:oe.statusText)||((G=r.error)===null||G===void 0?void 0:G.message)||c.uploadError;var X=l.createElement("span",{className:be},ce,V),Ie=l.useContext(ke.E_),de=Ie.getPrefixCls,Ce=de(),Ze=l.createElement("div",{className:Fe},l.createElement("div",{className:"".concat(e,"-list-item-info")},X),x,ge&&l.createElement(je.ZP,{motionName:"".concat(Ce,"-fade"),visible:B==="uploading",motionDeadline:2e3},function(J){var A=J.className,te="percent"in r?l.createElement($t.Z,(0,g.Z)({},d,{type:"line",percent:r.percent})):null;return l.createElement("div",{className:H()("".concat(e,"-list-item-progress"),A)},te)})),Ne=H()("".concat(e,"-list-").concat(s,"-container"),o),L=B==="error"?l.createElement(At.Z,{title:T,getPopupContainer:function(A){return A.parentNode}},Ze):Ze;return l.createElement("div",{className:Ne,style:a,ref:t},D?D(L,r,u,{download:U.bind(null,r),preview:f.bind(null,r),remove:O.bind(null,r)}):L)}),jt=kt,Oe=(0,g.Z)({},Ut.ZP);delete Oe.onAppearEnd,delete Oe.onEnterEnd,delete Oe.onLeaveEnd;var Bt=function(t,i){var e,o=t.listType,a=o===void 0?"text":o,c=t.previewFile,s=c===void 0?Ot:c,r=t.onPreview,u=t.onDownload,d=t.onRemove,y=t.locale,h=t.iconRender,D=t.isImageUrl,R=D===void 0?xt:D,k=t.prefixCls,N=t.items,F=N===void 0?[]:N,M=t.showPreviewIcon,$=M===void 0?!0:M,j=t.showRemoveIcon,f=j===void 0?!0:j,U=t.showDownloadIcon,O=U===void 0?!1:U,oe=t.removeIcon,G=t.previewIcon,ie=t.downloadIcon,fe=t.progress,le=fe===void 0?{strokeWidth:2,showInfo:!1}:fe,B=t.appendAction,pe=t.appendActionVisible,me=pe===void 0?!0:pe,he=t.itemRender,ge=(0,Ft.Z)(),De=l.useState(!1),Q=(0,ve.Z)(De,2),be=Q[0],se=Q[1];l.useEffect(function(){a!=="picture"&&a!=="picture-card"||(F||[]).forEach(function(E){typeof document=="undefined"||typeof window=="undefined"||!window.FileReader||!window.File||!(E.originFileObj instanceof File||E.originFileObj instanceof Blob)||E.thumbUrl!==void 0||(E.thumbUrl="",s&&s(E.originFileObj).then(function(w){E.thumbUrl=w||"",ge()}))})},[a,F,s]),l.useEffect(function(){se(!0)},[]);var ce=function(w,x){if(!!r)return x==null||x.preventDefault(),r(w)},q=function(w){typeof u=="function"?u(w):w.url&&window.open(w.url)},_=function(w){d==null||d(w)},ue=function(w){if(h)return h(w,a);var x=w.status==="uploading",T=R&&R(w)?l.createElement(bt.Z,null):l.createElement(Pt.Z,null),X=x?l.createElement(Qe.Z,null):l.createElement(Dt.Z,null);return a==="picture"?X=x?l.createElement(Qe.Z,null):T:a==="picture-card"&&(X=x?y.uploading:T),X},ye=function(w,x,T,X){var Ie={type:"text",size:"small",title:X,onClick:function(Ze){x(),(0,Se.l$)(w)&&w.props.onClick&&w.props.onClick(Ze)},className:"".concat(T,"-list-item-card-actions-btn")};if((0,Se.l$)(w)){var de=(0,Se.Tm)(w,(0,g.Z)((0,g.Z)({},w.props),{onClick:function(){}}));return l.createElement(qe.Z,(0,g.Z)({},Ie,{icon:de}))}return l.createElement(qe.Z,(0,g.Z)({},Ie),l.createElement("span",null,w))};l.useImperativeHandle(i,function(){return{handlePreview:ce,handleDownload:q}});var S=l.useContext(ke.E_),Fe=S.getPrefixCls,Ue=S.direction,Y=Fe("upload",k),we=H()((e={},(0,Z.Z)(e,"".concat(Y,"-list"),!0),(0,Z.Z)(e,"".concat(Y,"-list-").concat(a),!0),(0,Z.Z)(e,"".concat(Y,"-list-rtl"),Ue==="rtl"),e)),Ee=(0,re.Z)(F.map(function(E){return{key:E.uid,file:E}})),ee=a==="picture-card"?"animate-inline":"animate",V={motionDeadline:2e3,motionName:"".concat(Y,"-").concat(ee),keys:Ee,motionAppear:be};return a!=="picture-card"&&(V=(0,g.Z)((0,g.Z)({},Oe),V)),l.createElement("div",{className:we},l.createElement(je.V4,(0,g.Z)({},V,{component:!1}),function(E){var w=E.key,x=E.file,T=E.className,X=E.style;return l.createElement(jt,{key:w,locale:y,prefixCls:Y,className:T,style:X,file:x,items:F,progress:le,listType:a,isImgUrl:R,showPreviewIcon:$,showRemoveIcon:f,showDownloadIcon:O,removeIcon:oe,previewIcon:G,downloadIcon:ie,iconRender:ue,actionIconRender:ye,itemRender:he,onPreview:ce,onDownload:q,onClose:_})}),B&&l.createElement(je.ZP,(0,g.Z)({},V,{visible:me,forceRender:!0}),function(E){var w=E.className,x=E.style;return(0,Se.Tm)(B,function(T){return{className:H()(T.className,w),style:(0,g.Z)((0,g.Z)((0,g.Z)({},x),{pointerEvents:w?"none":void 0}),T.style)}})}))},Wt=l.forwardRef(Bt),Kt=Wt,zt=function(n,t,i,e){function o(a){return a instanceof i?a:new i(function(c){c(a)})}return new(i||(i=Promise))(function(a,c){function s(d){try{u(e.next(d))}catch(y){c(y)}}function r(d){try{u(e.throw(d))}catch(y){c(y)}}function u(d){d.done?a(d.value):o(d.value).then(s,r)}u((e=e.apply(n,t||[])).next())})},Pe="__LIST_IGNORE_".concat(Date.now(),"__"),Ht=function(t,i){var e,o=t.fileList,a=t.defaultFileList,c=t.onRemove,s=t.showUploadList,r=s===void 0?!0:s,u=t.listType,d=u===void 0?"text":u,y=t.onPreview,h=t.onDownload,D=t.onChange,R=t.onDrop,k=t.previewFile,N=t.disabled,F=t.locale,M=t.iconRender,$=t.isImageUrl,j=t.progress,f=t.prefixCls,U=t.className,O=t.type,oe=O===void 0?"select":O,G=t.children,ie=t.style,fe=t.itemRender,le=t.maxCount,B=t.data,pe=B===void 0?{}:B,me=t.multiple,he=me===void 0?!1:me,ge=t.action,De=ge===void 0?"":ge,Q=t.accept,be=Q===void 0?"":Q,se=t.supportServerRender,ce=se===void 0?!0:se,q=l.useContext(Ct.Z),_=N!=null?N:q,ue=(0,Et.Z)(a||[],{value:o,postState:function(m){return m!=null?m:[]}}),ye=(0,ve.Z)(ue,2),S=ye[0],Fe=ye[1],Ue=l.useState("drop"),Y=(0,ve.Z)(Ue,2),we=Y[0],Ee=Y[1],ee=l.useRef(null);l.useMemo(function(){var W=Date.now();(o||[]).forEach(function(m,C){!m.uid&&!Object.isFrozen(m)&&(m.uid="__AUTO__".concat(W,"_").concat(C,"__"))})},[o]);var V=function(m,C,b){var p=(0,re.Z)(C);le===1?p=p.slice(-1):le&&(p=p.slice(0,le)),(0,It.flushSync)(function(){Fe(p)});var I={file:m,fileList:p};b&&(I.event=b),D==null||D(I)},E=function(m,C){return zt(void 0,void 0,void 0,(0,Re.Z)().mark(function b(){var p,I,K,z;return(0,Re.Z)().wrap(function(P){for(;;)switch(P.prev=P.next){case 0:if(p=t.beforeUpload,I=t.transformFile,K=m,!p){P.next=13;break}return P.next=5,p(m,C);case 5:if(z=P.sent,z!==!1){P.next=8;break}return P.abrupt("return",!1);case 8:if(delete m[Pe],z!==Pe){P.next=12;break}return Object.defineProperty(m,Pe,{value:!0,configurable:!0}),P.abrupt("return",!1);case 12:(0,Me.Z)(z)==="object"&&z&&(K=z);case 13:if(!I){P.next=17;break}return P.next=16,I(K);case 16:K=P.sent;case 17:return P.abrupt("return",K);case 18:case"end":return P.stop()}},b)}))},w=function(m){var C=m.filter(function(I){return!I.file[Pe]});if(!!C.length){var b=C.map(function(I){return Le(I.file)}),p=(0,re.Z)(S);b.forEach(function(I){p=xe(I,p)}),b.forEach(function(I,K){var z=I;if(C[K].parsedFile)I.status="uploading";else{var ne=I.originFileObj,P;try{P=new File([ne],ne.name,{type:ne.type})}catch(nt){P=new Blob([ne],{type:ne.type}),P.name=ne.name,P.lastModifiedDate=new Date,P.lastModified=new Date().getTime()}P.uid=I.uid,z=P}V(z,p)})}},x=function(m,C,b){try{typeof m=="string"&&(m=JSON.parse(m))}catch(K){}if(!!Be(C,S)){var p=Le(C);p.status="done",p.percent=100,p.response=m,p.xhr=b;var I=xe(p,S);V(p,I)}},T=function(m,C){if(!!Be(C,S)){var b=Le(C);b.status="uploading",b.percent=m.percent;var p=xe(b,S);V(b,p,m)}},X=function(m,C,b){if(!!Be(b,S)){var p=Le(b);p.error=m,p.response=C,p.status="error";var I=xe(p,S);V(p,I)}},Ie=function(m){var C;Promise.resolve(typeof c=="function"?c(m):c).then(function(b){var p;if(b!==!1){var I=St(m,S);I&&(C=(0,g.Z)((0,g.Z)({},m),{status:"removed"}),S==null||S.forEach(function(K){var z=C.uid!==void 0?"uid":"name";K[z]===C[z]&&!Object.isFrozen(K)&&(K.status="removed")}),(p=ee.current)===null||p===void 0||p.abort(C),V(C,I))}})},de=function(m){Ee(m.type),m.type==="drop"&&(R==null||R(m))};l.useImperativeHandle(i,function(){return{onBatchStart:w,onSuccess:x,onProgress:T,onError:X,fileList:S,upload:ee.current}});var Ce=l.useContext(ke.E_),Ze=Ce.getPrefixCls,Ne=Ce.direction,L=Ze("upload",f),J=(0,g.Z)((0,g.Z)({onBatchStart:w,onError:X,onProgress:T,onSuccess:x},t),{data:pe,multiple:he,action:De,accept:be,supportServerRender:ce,prefixCls:L,disabled:_,beforeUpload:E,onChange:void 0});delete J.className,delete J.style,(!G||_)&&delete J.id;var A=function(m,C){return r?l.createElement(Zt.Z,{componentName:"Upload",defaultLocale:Rt.Z.Upload},function(b){var p=typeof r=="boolean"?{}:r,I=p.showRemoveIcon,K=p.showPreviewIcon,z=p.showDownloadIcon,ne=p.removeIcon,P=p.previewIcon,nt=p.downloadIcon;return l.createElement(Kt,{prefixCls:L,listType:d,items:S,previewFile:k,onPreview:y,onDownload:h,onRemove:Ie,showRemoveIcon:!_&&I,showPreviewIcon:K,showDownloadIcon:z,removeIcon:ne,previewIcon:P,downloadIcon:nt,iconRender:M,locale:(0,g.Z)((0,g.Z)({},b),F),isImageUrl:$,progress:j,appendAction:m,appendActionVisible:C,itemRender:fe})}):m};if(oe==="drag"){var te,Qt=H()(L,(te={},(0,Z.Z)(te,"".concat(L,"-drag"),!0),(0,Z.Z)(te,"".concat(L,"-drag-uploading"),S.some(function(W){return W.status==="uploading"})),(0,Z.Z)(te,"".concat(L,"-drag-hover"),we==="dragover"),(0,Z.Z)(te,"".concat(L,"-disabled"),_),(0,Z.Z)(te,"".concat(L,"-rtl"),Ne==="rtl"),te),U);return l.createElement("span",null,l.createElement("div",{className:Qt,onDrop:de,onDragOver:de,onDragLeave:de,style:ie},l.createElement(Ye,(0,g.Z)({},J,{ref:ee,className:"".concat(L,"-btn")}),l.createElement("div",{className:"".concat(L,"-drag-container")},G))),A())}var qt=H()(L,(e={},(0,Z.Z)(e,"".concat(L,"-select"),!0),(0,Z.Z)(e,"".concat(L,"-select-").concat(d),!0),(0,Z.Z)(e,"".concat(L,"-disabled"),_),(0,Z.Z)(e,"".concat(L,"-rtl"),Ne==="rtl"),e)),_t=function(m){return l.createElement("div",{className:qt,style:m},l.createElement(Ye,(0,g.Z)({},J,{ref:ee})))},tt=_t(G?void 0:{display:"none"});return d==="picture-card"?l.createElement("span",{className:H()("".concat(L,"-picture-card-wrapper"),U)},A(tt,!!G)):l.createElement("span",{className:U},tt,A())},Gt=l.forwardRef(Ht),et=Gt,Vt=function(n,t){var i={};for(var e in n)Object.prototype.hasOwnProperty.call(n,e)&&t.indexOf(e)<0&&(i[e]=n[e]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,e=Object.getOwnPropertySymbols(n);o1&&arguments[1]!==void 0?arguments[1]:"0",S=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return d.map(function(I,N){var P="".concat(w,"-").concat(N),R=I[u.value],F=l.includes(R),G=v(I[u.children]||[],P,F),g=a.createElement(tt,I,G.map(function(K){return K.node}));if(t===R&&(o=g),F){var T={pos:P,node:g,children:G};return S||i.push(T),T}return null}).filter(function(I){return I})}i||(i=[],v(r),i.sort(function(d,w){var S=d.node.props.value,I=w.node.props.value,N=l.indexOf(S),P=l.indexOf(I);return N-P}))}Object.defineProperty(e,"triggerNode",{get:function(){return(0,Be.ZP)(!1,"`triggerNode` is deprecated. Please consider decoupling data with node."),s(),o}}),Object.defineProperty(e,"allCheckedNodes",{get:function(){return(0,Be.ZP)(!1,"`allCheckedNodes` is deprecated. Please consider decoupling data with node."),s(),n?i:i.map(function(d){var w=d.node;return w})}})}function jt(e,t){var l=t.id,r=t.pId,n=t.rootPId,u={},o=[],i=e.map(function(s){var v=(0,M.Z)({},s),d=v[l];return u[d]=v,v.key=v.key||d,v});return i.forEach(function(s){var v=s[r],d=u[v];d&&(d.children=d.children||[],d.children.push(s)),(v===n||!d&&n===null)&&o.push(s)}),o}function zt(e,t,l){return a.useMemo(function(){return e?l?jt(e,(0,M.Z)({id:"id",pId:"pId",rootPId:null},l!==!0?l:{})):e:pt(t)},[t,l,e])}var Bt=function(e){var t=a.useRef({valueLabels:new Map});return a.useMemo(function(){var l=t.current.valueLabels,r=new Map,n=e.map(function(u){var o,i=u.value,s=(o=u.label)!==null&&o!==void 0?o:l.get(i);return r.set(i,s),(0,M.Z)((0,M.Z)({},u),{},{label:s})});return t.current.valueLabels=r,[n]},[e])};function gt(e){var t=a.useRef();t.current=e;var l=a.useCallback(function(){return t.current.apply(t,arguments)},[]);return l}var Gt=c(1089),Yt=function(e,t){return a.useMemo(function(){var l=(0,Gt.I8)(e,{fieldNames:t,initWrapper:function(n){return(0,M.Z)((0,M.Z)({},n),{},{valueEntities:new Map})},processEntity:function(n,u){var o=n.node[t.value];if(!1)var i;u.valueEntities.set(o,n)}});return l},[e,t])},Jt=function(e,t,l,r){return a.useMemo(function(){var n=e.map(function(s){var v=s.value;return v}),u=t.map(function(s){var v=s.value;return v}),o=n.filter(function(s){return!r[s]});if(l){var i=(0,_e.S)(n,!0,r);n=i.checkedKeys,u=i.halfCheckedKeys}return[Array.from(new Set([].concat((0,B.Z)(o),(0,B.Z)(n)))),u]},[e,t,l,r])},Qt=function(e,t,l){var r=l.treeNodeFilterProp,n=l.filterTreeNode,u=l.fieldNames,o=u.children;return a.useMemo(function(){if(!t||n===!1)return e;var i;if(typeof n=="function")i=n;else{var s=t.toUpperCase();i=function(w,S){var I=S[r];return String(I).toUpperCase().includes(s)}}function v(d){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return d.map(function(S){var I=S[o],N=w||i(t,nt(S)),P=v(I||[],N);return N||P.length?(0,M.Z)((0,M.Z)({},S),{},(0,te.Z)({isLeaf:void 0},o,P)):null}).filter(function(S){return S})}return v(e)},[e,t,o,r,n])};function Dr(e){var t=e.searchPlaceholder,l=e.treeCheckStrictly,r=e.treeCheckable,n=e.labelInValue,u=e.value,o=e.multiple;warning(!t,"`searchPlaceholder` has been removed."),l&&n===!1&&warning(!1,"`treeCheckStrictly` will force set `labelInValue` to `true`."),(n||l)&&warning(toArray(u).every(function(i){return i&&_typeof(i)==="object"&&"value"in i}),"Invalid prop `value` supplied to `TreeSelect`. You should use { label: string, value: string | number } or [{ label: string, value: string | number }] instead."),l||o||r?warning(!u||Array.isArray(u),"`value` should be an array when `TreeSelect` is checkable or multiple."):warning(!Array.isArray(u),"`value` should not be array when `TreeSelect` is single mode.")}var wr=null,Xt=["id","prefixCls","value","defaultValue","onChange","onSelect","onDeselect","searchValue","inputValue","onSearch","autoClearSearchValue","filterTreeNode","treeNodeFilterProp","showCheckedStrategy","treeNodeLabelProp","multiple","treeCheckable","treeCheckStrictly","labelInValue","fieldNames","treeDataSimpleMode","treeData","children","loadData","treeLoadedKeys","onTreeLoad","treeDefaultExpandAll","treeExpandedKeys","treeDefaultExpandedKeys","onTreeExpand","treeExpandAction","virtual","listHeight","listItemHeight","onDropdownVisibleChange","dropdownMatchSelectWidth","treeLine","treeIcon","showTreeIcon","switcherIcon","treeMotion"];function qt(e){return!e||(0,Lt.Z)(e)!=="object"}var _t=a.forwardRef(function(e,t){var l=e.id,r=e.prefixCls,n=r===void 0?"rc-tree-select":r,u=e.value,o=e.defaultValue,i=e.onChange,s=e.onSelect,v=e.onDeselect,d=e.searchValue,w=e.inputValue,S=e.onSearch,I=e.autoClearSearchValue,N=I===void 0?!0:I,P=e.filterTreeNode,R=e.treeNodeFilterProp,F=R===void 0?"value":R,G=e.showCheckedStrategy,g=G===void 0?ze:G,T=e.treeNodeLabelProp,K=e.multiple,de=e.treeCheckable,V=e.treeCheckStrictly,Re=e.labelInValue,xe=e.fieldNames,ve=e.treeDataSimpleMode,Fe=e.treeData,We=e.children,ne=e.loadData,Ie=e.treeLoadedKeys,ae=e.onTreeLoad,W=e.treeDefaultExpandAll,fe=e.treeExpandedKeys,Y=e.treeDefaultExpandedKeys,Ee=e.onTreeExpand,J=e.treeExpandAction,Q=e.virtual,he=e.listHeight,be=he===void 0?200:he,D=e.listItemHeight,De=D===void 0?20:D,X=e.onDropdownVisibleChange,le=e.dropdownMatchSelectWidth,oe=le===void 0?!0:le,we=e.treeLine,Ne=e.treeIcon,ie=e.showTreeIcon,me=e.switcherIcon,$=e.treeMotion,Le=(0,it.Z)(e,Xt),pe=(0,Pt.ZP)(l),q=de&&!V,U=de||V,Pe=V||Re,Z=U||K,ge=(0,ct.Z)(o,{value:u}),Te=(0,re.Z)(ge,2),A=Te[0],_=Te[1],f=a.useMemo(function(){return At(xe)},[JSON.stringify(xe)]),E=(0,ct.Z)("",{value:d!==void 0?d:w,postState:function(h){return h||""}}),j=(0,re.Z)(E,2),H=j[0],Ze=j[1],ke=function(h){Ze(h),S==null||S(h)},ee=zt(Fe,We,ve),Me=Yt(ee,f),k=Me.keyEntities,Ce=Me.valueEntities,yt=a.useCallback(function(m){var h=[],p=[];return m.forEach(function(C){Ce.has(C)?p.push(C):h.push(C)}),{missingRawValues:h,existRawValues:p}},[Ce]),St=Qt(ee,H,{fieldNames:f,treeNodeFilterProp:F,filterTreeNode:P}),xt=a.useCallback(function(m){if(m){if(T)return m[T];for(var h=f._title,p=0;p1&&arguments[1]!==void 0?arguments[1]:"0",S=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return d.map(function(I,N){var P="".concat(w,"-").concat(N),R=I[u.value],F=l.includes(R),G=v(I[u.children]||[],P,F),g=a.createElement(tt,I,G.map(function(K){return K.node}));if(t===R&&(o=g),F){var T={pos:P,node:g,children:G};return S||i.push(T),T}return null}).filter(function(I){return I})}i||(i=[],v(r),i.sort(function(d,w){var S=d.node.props.value,I=w.node.props.value,N=l.indexOf(S),P=l.indexOf(I);return N-P}))}Object.defineProperty(e,"triggerNode",{get:function(){return(0,Be.ZP)(!1,"`triggerNode` is deprecated. Please consider decoupling data with node."),s(),o}}),Object.defineProperty(e,"allCheckedNodes",{get:function(){return(0,Be.ZP)(!1,"`allCheckedNodes` is deprecated. Please consider decoupling data with node."),s(),n?i:i.map(function(d){var w=d.node;return w})}})}function jt(e,t){var l=t.id,r=t.pId,n=t.rootPId,u={},o=[],i=e.map(function(s){var v=(0,M.Z)({},s),d=v[l];return u[d]=v,v.key=v.key||d,v});return i.forEach(function(s){var v=s[r],d=u[v];d&&(d.children=d.children||[],d.children.push(s)),(v===n||!d&&n===null)&&o.push(s)}),o}function zt(e,t,l){return a.useMemo(function(){return e?l?jt(e,(0,M.Z)({id:"id",pId:"pId",rootPId:null},l!==!0?l:{})):e:pt(t)},[t,l,e])}var Bt=function(e){var t=a.useRef({valueLabels:new Map});return a.useMemo(function(){var l=t.current.valueLabels,r=new Map,n=e.map(function(u){var o,i=u.value,s=(o=u.label)!==null&&o!==void 0?o:l.get(i);return r.set(i,s),(0,M.Z)((0,M.Z)({},u),{},{label:s})});return t.current.valueLabels=r,[n]},[e])};function gt(e){var t=a.useRef();t.current=e;var l=a.useCallback(function(){return t.current.apply(t,arguments)},[]);return l}var Gt=c(1089),Yt=function(e,t){return a.useMemo(function(){var l=(0,Gt.I8)(e,{fieldNames:t,initWrapper:function(n){return(0,M.Z)((0,M.Z)({},n),{},{valueEntities:new Map})},processEntity:function(n,u){var o=n.node[t.value];if(!1)var i;u.valueEntities.set(o,n)}});return l},[e,t])},Jt=function(e,t,l,r){return a.useMemo(function(){var n=e.map(function(s){var v=s.value;return v}),u=t.map(function(s){var v=s.value;return v}),o=n.filter(function(s){return!r[s]});if(l){var i=(0,_e.S)(n,!0,r);n=i.checkedKeys,u=i.halfCheckedKeys}return[Array.from(new Set([].concat((0,B.Z)(o),(0,B.Z)(n)))),u]},[e,t,l,r])},Qt=function(e,t,l){var r=l.treeNodeFilterProp,n=l.filterTreeNode,u=l.fieldNames,o=u.children;return a.useMemo(function(){if(!t||n===!1)return e;var i;if(typeof n=="function")i=n;else{var s=t.toUpperCase();i=function(w,S){var I=S[r];return String(I).toUpperCase().includes(s)}}function v(d){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return d.map(function(S){var I=S[o],N=w||i(t,nt(S)),P=v(I||[],N);return N||P.length?(0,M.Z)((0,M.Z)({},S),{},(0,te.Z)({isLeaf:void 0},o,P)):null}).filter(function(S){return S})}return v(e)},[e,t,o,r,n])};function Dr(e){var t=e.searchPlaceholder,l=e.treeCheckStrictly,r=e.treeCheckable,n=e.labelInValue,u=e.value,o=e.multiple;warning(!t,"`searchPlaceholder` has been removed."),l&&n===!1&&warning(!1,"`treeCheckStrictly` will force set `labelInValue` to `true`."),(n||l)&&warning(toArray(u).every(function(i){return i&&_typeof(i)==="object"&&"value"in i}),"Invalid prop `value` supplied to `TreeSelect`. You should use { label: string, value: string | number } or [{ label: string, value: string | number }] instead."),l||o||r?warning(!u||Array.isArray(u),"`value` should be an array when `TreeSelect` is checkable or multiple."):warning(!Array.isArray(u),"`value` should not be array when `TreeSelect` is single mode.")}var wr=null,Xt=["id","prefixCls","value","defaultValue","onChange","onSelect","onDeselect","searchValue","inputValue","onSearch","autoClearSearchValue","filterTreeNode","treeNodeFilterProp","showCheckedStrategy","treeNodeLabelProp","multiple","treeCheckable","treeCheckStrictly","labelInValue","fieldNames","treeDataSimpleMode","treeData","children","loadData","treeLoadedKeys","onTreeLoad","treeDefaultExpandAll","treeExpandedKeys","treeDefaultExpandedKeys","onTreeExpand","treeExpandAction","virtual","listHeight","listItemHeight","onDropdownVisibleChange","dropdownMatchSelectWidth","treeLine","treeIcon","showTreeIcon","switcherIcon","treeMotion"];function qt(e){return!e||(0,Lt.Z)(e)!=="object"}var _t=a.forwardRef(function(e,t){var l=e.id,r=e.prefixCls,n=r===void 0?"rc-tree-select":r,u=e.value,o=e.defaultValue,i=e.onChange,s=e.onSelect,v=e.onDeselect,d=e.searchValue,w=e.inputValue,S=e.onSearch,I=e.autoClearSearchValue,N=I===void 0?!0:I,P=e.filterTreeNode,R=e.treeNodeFilterProp,F=R===void 0?"value":R,G=e.showCheckedStrategy,g=G===void 0?ze:G,T=e.treeNodeLabelProp,K=e.multiple,de=e.treeCheckable,V=e.treeCheckStrictly,Re=e.labelInValue,xe=e.fieldNames,ve=e.treeDataSimpleMode,Fe=e.treeData,We=e.children,ne=e.loadData,Ie=e.treeLoadedKeys,ae=e.onTreeLoad,W=e.treeDefaultExpandAll,fe=e.treeExpandedKeys,Y=e.treeDefaultExpandedKeys,Ee=e.onTreeExpand,J=e.treeExpandAction,Q=e.virtual,he=e.listHeight,be=he===void 0?200:he,D=e.listItemHeight,De=D===void 0?20:D,X=e.onDropdownVisibleChange,le=e.dropdownMatchSelectWidth,oe=le===void 0?!0:le,we=e.treeLine,Ne=e.treeIcon,ie=e.showTreeIcon,me=e.switcherIcon,$=e.treeMotion,Le=(0,it.Z)(e,Xt),pe=(0,Pt.ZP)(l),q=de&&!V,U=de||V,Pe=V||Re,Z=U||K,ge=(0,ct.Z)(o,{value:u}),Te=(0,re.Z)(ge,2),A=Te[0],_=Te[1],f=a.useMemo(function(){return At(xe)},[JSON.stringify(xe)]),E=(0,ct.Z)("",{value:d!==void 0?d:w,postState:function(h){return h||""}}),j=(0,re.Z)(E,2),H=j[0],Ze=j[1],ke=function(h){Ze(h),S==null||S(h)},ee=zt(Fe,We,ve),Me=Yt(ee,f),k=Me.keyEntities,Ce=Me.valueEntities,yt=a.useCallback(function(m){var h=[],p=[];return m.forEach(function(C){Ce.has(C)?p.push(C):h.push(C)}),{missingRawValues:h,existRawValues:p}},[Ce]),St=Qt(ee,H,{fieldNames:f,treeNodeFilterProp:F,filterTreeNode:P}),xt=a.useCallback(function(m){if(m){if(T)return m[T];for(var h=f._title,p=0;p0&&arguments[0]!==void 0?arguments[0]:10,e=t.useState(!1),r=(0,v.Z)(e,2),a=r[0],c=r[1],l=t.useRef(null),m=function(){window.clearTimeout(l.current)};t.useEffect(function(){return m},[]);var p=function(I,R){m(),l.current=window.setTimeout(function(){c(I),R&&R()},n)};return[a,p,m]}function J(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,e=t.useRef(null),r=t.useRef(null);t.useEffect(function(){return function(){window.clearTimeout(r.current)}},[]);function a(c){(c||e.current===null)&&(e.current=c),window.clearTimeout(r.current),r.current=window.setTimeout(function(){e.current=null},n)}return[function(){return e.current},a]}function Ve(n,e,r,a){var c=t.useRef(null);c.current={open:e,triggerOpen:r,customizedTrigger:a},t.useEffect(function(){function l(m){var p;if(!((p=c.current)!==null&&p!==void 0&&p.customizedTrigger)){var S=m.target;S.shadowRoot&&m.composed&&(S=m.composedPath()[0]||S),c.current.open&&n().filter(function(I){return I}).every(function(I){return!I.contains(S)&&I!==S})&&c.current.triggerOpen(!1)}}return window.addEventListener("mousedown",l),function(){return window.removeEventListener("mousedown",l)}},[])}var ze=i(64217),In=i(26120),dn=function(e){var r=e.className,a=e.customizeIcon,c=e.customizeIconProps,l=e.onMouseDown,m=e.onClick,p=e.children,S;return typeof a=="function"?S=a(c):S=a,t.createElement("span",{className:r,onMouseDown:function(R){R.preventDefault(),l&&l(R)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:m,"aria-hidden":!0},S!==void 0?S:t.createElement("span",{className:Re()(r.split(/\s+/).map(function(I){return"".concat(I,"-icon")}))},p))},ln=dn,Vn=function(e,r){var a,c,l=e.prefixCls,m=e.id,p=e.inputElement,S=e.disabled,I=e.tabIndex,R=e.autoFocus,h=e.autoComplete,y=e.editable,g=e.activeDescendantId,T=e.value,d=e.maxLength,E=e.onKeyDown,D=e.onMouseDown,k=e.onChange,z=e.onPaste,pe=e.onCompositionStart,ne=e.onCompositionEnd,H=e.open,me=e.attrs,Y=p||t.createElement("input",null),q=Y,ce=q.ref,Ce=q.props,De=Ce.onKeyDown,he=Ce.onChange,ye=Ce.onMouseDown,Ie=Ce.onCompositionStart,X=Ce.onCompositionEnd,ee=Ce.style;return(0,de.Kp)(!("maxLength"in Y.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),Y=t.cloneElement(Y,(0,N.Z)((0,N.Z)((0,N.Z)({type:"search"},Ce),{},{id:m,ref:(0,$e.sQ)(r,ce),disabled:S,tabIndex:I,autoComplete:h||"off",autoFocus:R,className:Re()("".concat(l,"-selection-search-input"),(a=Y)===null||a===void 0||(c=a.props)===null||c===void 0?void 0:c.className),role:"combobox","aria-expanded":H,"aria-haspopup":"listbox","aria-owns":"".concat(m,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(m,"_list"),"aria-activedescendant":g},me),{},{value:y?T:"",maxLength:d,readOnly:!y,unselectable:y?null:"on",style:(0,N.Z)((0,N.Z)({},ee),{},{opacity:y?null:0}),onKeyDown:function(te){E(te),De&&De(te)},onMouseDown:function(te){D(te),ye&&ye(te)},onChange:function(te){k(te),he&&he(te)},onCompositionStart:function(te){pe(te),Ie&&Ie(te)},onCompositionEnd:function(te){ne(te),X&&X(te)},onPaste:z})),Y},un=t.forwardRef(Vn);un.displayName="Input";var _n=un;function An(n){return Array.isArray(n)?n:n!==void 0?[n]:[]}var ft=typeof window!="undefined"&&window.document&&window.document.documentElement,Fn=ft;function Sn(n){return n!=null}function bn(n){return["string","number"].includes((0,Ee.Z)(n))}function nt(n){var e=void 0;return n&&(bn(n.title)?e=n.title.toString():bn(n.label)&&(e=n.label.toString())),e}function Rn(n,e){Fn?t.useLayoutEffect(n,e):t.useEffect(n,e)}function Tt(n){var e;return(e=n.key)!==null&&e!==void 0?e:n.value}var Et=function(e){e.preventDefault(),e.stopPropagation()},Nt=function(e){var r=e.id,a=e.prefixCls,c=e.values,l=e.open,m=e.searchValue,p=e.autoClearSearchValue,S=e.inputRef,I=e.placeholder,R=e.disabled,h=e.mode,y=e.showSearch,g=e.autoFocus,T=e.autoComplete,d=e.activeDescendantId,E=e.tabIndex,D=e.removeIcon,k=e.maxTagCount,z=e.maxTagTextLength,pe=e.maxTagPlaceholder,ne=pe===void 0?function(Se){return"+ ".concat(Se.length," ...")}:pe,H=e.tagRender,me=e.onToggleOpen,Y=e.onRemove,q=e.onInputChange,ce=e.onInputPaste,Ce=e.onInputKeyDown,De=e.onInputMouseDown,he=e.onInputCompositionStart,ye=e.onInputCompositionEnd,Ie=t.useRef(null),X=(0,t.useState)(0),ee=(0,v.Z)(X,2),Q=ee[0],te=ee[1],qe=(0,t.useState)(!1),Ue=(0,v.Z)(qe,2),Wn=Ue[0],Ze=Ue[1],G="".concat(a,"-selection"),x=l||h==="multiple"&&p===!1||h==="tags"?m:"",_=h==="tags"||h==="multiple"&&p===!1||y&&(l||Wn);Rn(function(){te(Ie.current.scrollWidth)},[x]);function se(Se,Fe,Te,en,on){return t.createElement("span",{className:Re()("".concat(G,"-item"),(0,U.Z)({},"".concat(G,"-item-disabled"),Te)),title:nt(Se)},t.createElement("span",{className:"".concat(G,"-item-content")},Fe),en&&t.createElement(ln,{className:"".concat(G,"-item-remove"),onMouseDown:Et,onClick:on,customizeIcon:D},"\xD7"))}function ae(Se,Fe,Te,en,on){var cn=function(fe){Et(fe),me(!l)};return t.createElement("span",{onMouseDown:cn},H({label:Fe,value:Se,disabled:Te,closable:en,onClose:on}))}function le(Se){var Fe=Se.disabled,Te=Se.label,en=Se.value,on=!R&&!Fe,cn=Te;if(typeof z=="number"&&(typeof Te=="string"||typeof Te=="number")){var ke=String(cn);ke.length>z&&(cn="".concat(ke.slice(0,z),"..."))}var fe=function(an){an&&an.stopPropagation(),Y(Se)};return typeof H=="function"?ae(en,cn,Fe,on,fe):se(Se,cn,Fe,on,fe)}function Pe(Se){var Fe=typeof ne=="function"?ne(Se):ne;return se({title:Fe},Fe,!1)}var We=t.createElement("div",{className:"".concat(G,"-search"),style:{width:Q},onFocus:function(){Ze(!0)},onBlur:function(){Ze(!1)}},t.createElement(_n,{ref:S,open:l,prefixCls:a,id:r,inputElement:null,disabled:R,autoFocus:g,autoComplete:T,editable:_,activeDescendantId:d,value:x,onKeyDown:Ce,onMouseDown:De,onChange:q,onPaste:ce,onCompositionStart:he,onCompositionEnd:ye,tabIndex:E,attrs:(0,ze.Z)(e,!0)}),t.createElement("span",{ref:Ie,className:"".concat(G,"-search-mirror"),"aria-hidden":!0},x,"\xA0")),mn=t.createElement(In.Z,{prefixCls:"".concat(G,"-overflow"),data:c,renderItem:le,renderRest:Pe,suffix:We,itemKey:Tt,maxCount:k});return t.createElement(t.Fragment,null,mn,!c.length&&!x&&t.createElement("span",{className:"".concat(G,"-placeholder")},I))},Lt=Nt,Vt=function(e){var r=e.inputElement,a=e.prefixCls,c=e.id,l=e.inputRef,m=e.disabled,p=e.autoFocus,S=e.autoComplete,I=e.activeDescendantId,R=e.mode,h=e.open,y=e.values,g=e.placeholder,T=e.tabIndex,d=e.showSearch,E=e.searchValue,D=e.activeValue,k=e.maxLength,z=e.onInputKeyDown,pe=e.onInputMouseDown,ne=e.onInputChange,H=e.onInputPaste,me=e.onInputCompositionStart,Y=e.onInputCompositionEnd,q=t.useState(!1),ce=(0,v.Z)(q,2),Ce=ce[0],De=ce[1],he=R==="combobox",ye=he||d,Ie=y[0],X=E||"";he&&D&&!Ce&&(X=D),t.useEffect(function(){he&&De(!1)},[he,D]);var ee=R!=="combobox"&&!h&&!d?!1:!!X,Q=nt(Ie),te=function(){if(Ie)return null;var Ue=ee?{visibility:"hidden"}:void 0;return t.createElement("span",{className:"".concat(a,"-selection-placeholder"),style:Ue},g)};return t.createElement(t.Fragment,null,t.createElement("span",{className:"".concat(a,"-selection-search")},t.createElement(_n,{ref:l,prefixCls:a,id:c,open:h,inputElement:r,disabled:m,autoFocus:p,autoComplete:S,editable:ye,activeDescendantId:I,value:X,onKeyDown:z,onMouseDown:pe,onChange:function(Ue){De(!0),ne(Ue)},onPaste:H,onCompositionStart:me,onCompositionEnd:Y,tabIndex:T,attrs:(0,ze.Z)(e,!0),maxLength:he?k:void 0})),!he&&Ie?t.createElement("span",{className:"".concat(a,"-selection-item"),title:Q,style:ee?{visibility:"hidden"}:void 0},Ie.label):null,te())},At=Vt;function Ct(n){return![O.Z.ESC,O.Z.SHIFT,O.Z.BACKSPACE,O.Z.TAB,O.Z.WIN_KEY,O.Z.ALT,O.Z.META,O.Z.WIN_KEY_RIGHT,O.Z.CTRL,O.Z.SEMICOLON,O.Z.EQUALS,O.Z.CAPS_LOCK,O.Z.CONTEXT_MENU,O.Z.F1,O.Z.F2,O.Z.F3,O.Z.F4,O.Z.F5,O.Z.F6,O.Z.F7,O.Z.F8,O.Z.F9,O.Z.F10,O.Z.F11,O.Z.F12].includes(n)}var Ft=function(e,r){var a=(0,t.useRef)(null),c=(0,t.useRef)(!1),l=e.prefixCls,m=e.open,p=e.mode,S=e.showSearch,I=e.tokenWithEnter,R=e.autoClearSearchValue,h=e.onSearch,y=e.onSearchSubmit,g=e.onToggleOpen,T=e.onInputKeyDown,d=e.domRef;t.useImperativeHandle(r,function(){return{focus:function(){a.current.focus()},blur:function(){a.current.blur()}}});var E=J(0),D=(0,v.Z)(E,2),k=D[0],z=D[1],pe=function(ee){var Q=ee.which;(Q===O.Z.UP||Q===O.Z.DOWN)&&ee.preventDefault(),T&&T(ee),Q===O.Z.ENTER&&p==="tags"&&!c.current&&!m&&(y==null||y(ee.target.value)),Ct(Q)&&g(!0)},ne=function(){z(!0)},H=(0,t.useRef)(null),me=function(ee){h(ee,!0,c.current)!==!1&&g(!0)},Y=function(){c.current=!0},q=function(ee){c.current=!1,p!=="combobox"&&me(ee.target.value)},ce=function(ee){var Q=ee.target.value;if(I&&H.current&&/[\r\n]/.test(H.current)){var te=H.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");Q=Q.replace(te,H.current)}H.current=null,me(Q)},Ce=function(ee){var Q=ee.clipboardData,te=Q.getData("text");H.current=te},De=function(ee){var Q=ee.target;if(Q!==a.current){var te=document.body.style.msTouchAction!==void 0;te?setTimeout(function(){a.current.focus()}):a.current.focus()}},he=function(ee){var Q=k();ee.target!==a.current&&!Q&&p!=="combobox"&&ee.preventDefault(),(p!=="combobox"&&(!S||!Q)||!m)&&(m&&R!==!1&&h("",!0,!1),g())},ye={inputRef:a,onInputKeyDown:pe,onInputMouseDown:ne,onInputChange:ce,onInputPaste:Ce,onInputCompositionStart:Y,onInputCompositionEnd:q},Ie=p==="multiple"||p==="tags"?t.createElement(Lt,(0,ie.Z)({},e,ye)):t.createElement(At,(0,ie.Z)({},e,ye));return t.createElement("div",{ref:d,className:"".concat(l,"-selector"),onClick:De,onMouseDown:he},Ie)},yt=t.forwardRef(Ft);yt.displayName="Selector";var f=yt,$=i(2306),M=["prefixCls","disabled","visible","children","popupElement","containerWidth","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],o=function(e){var r=e===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:r,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:r,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:r,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:r,adjustY:1}}}},A=function(e,r){var a=e.prefixCls,c=e.disabled,l=e.visible,m=e.children,p=e.popupElement,S=e.containerWidth,I=e.animation,R=e.transitionName,h=e.dropdownStyle,y=e.dropdownClassName,g=e.direction,T=g===void 0?"ltr":g,d=e.placement,E=e.dropdownMatchSelectWidth,D=e.dropdownRender,k=e.dropdownAlign,z=e.getPopupContainer,pe=e.empty,ne=e.getTriggerDOMNode,H=e.onPopupVisibleChange,me=e.onPopupMouseEnter,Y=(0,s.Z)(e,M),q="".concat(a,"-dropdown"),ce=p;D&&(ce=D(p));var Ce=t.useMemo(function(){return o(E)},[E]),De=I?"".concat(q,"-").concat(I):R,he=t.useRef(null);t.useImperativeHandle(r,function(){return{getPopupElement:function(){return he.current}}});var ye=(0,N.Z)({minWidth:S},h);return typeof E=="number"?ye.width=E:E&&(ye.width=S),t.createElement($.Z,(0,ie.Z)({},Y,{showAction:H?["click"]:[],hideAction:H?["click"]:[],popupPlacement:d||(T==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:Ce,prefixCls:q,popupTransitionName:De,popup:t.createElement("div",{ref:he,onMouseEnter:me},ce),popupAlign:k,popupVisible:l,getPopupContainer:z,popupClassName:Re()(y,(0,U.Z)({},"".concat(q,"-empty"),pe)),popupStyle:ye,getTriggerDOMNode:ne,onPopupVisibleChange:H}),m)},C=t.forwardRef(A);C.displayName="SelectTrigger";var L=C,u=i(99809);function b(n,e){var r=n.key,a;return"value"in n&&(a=n.value),r!=null?r:a!==void 0?a:"rc-index-key-".concat(e)}function P(n,e){var r=n||{},a=r.label,c=r.value,l=r.options;return{label:a||(e?"children":"label"),value:c||"value",options:l||"options"}}function W(n){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=e.fieldNames,a=e.childrenAsData,c=[],l=P(r,!1),m=l.label,p=l.value,S=l.options;function I(R,h){R.forEach(function(y){var g=y[m];if(h||!(S in y)){var T=y[p];c.push({key:b(y,c.length),groupOption:h,data:y,label:g,value:T})}else{var d=g;d===void 0&&a&&(d=y.label),c.push({key:b(y,c.length),group:!0,data:y,label:d}),I(y[S],!0)}})}return I(n,!1),c}function F(n){var e=(0,N.Z)({},n);return"props"in e||Object.defineProperty(e,"props",{get:function(){return(0,de.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),e}}),e}function re(n,e){if(!e||!e.length)return null;var r=!1;function a(l,m){var p=(0,u.Z)(m),S=p[0],I=p.slice(1);if(!S)return[l];var R=l.split(S);return r=r||R.length>1,R.reduce(function(h,y){return[].concat((0,oe.Z)(h),(0,oe.Z)(a(y,I)))},[]).filter(function(h){return h})}var c=a(n,e);return r?c:null}var ue=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","showArrow","inputIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],ge=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"];function Ae(n){return n==="tags"||n==="multiple"}var _e=t.forwardRef(function(n,e){var r,a,c=n.id,l=n.prefixCls,m=n.className,p=n.showSearch,S=n.tagRender,I=n.direction,R=n.omitDomProps,h=n.displayValues,y=n.onDisplayValuesChange,g=n.emptyOptions,T=n.notFoundContent,d=T===void 0?"Not Found":T,E=n.onClear,D=n.mode,k=n.disabled,z=n.loading,pe=n.getInputElement,ne=n.getRawInputElement,H=n.open,me=n.defaultOpen,Y=n.onDropdownVisibleChange,q=n.activeValue,ce=n.onActiveValueChange,Ce=n.activeDescendantId,De=n.searchValue,he=n.autoClearSearchValue,ye=n.onSearch,Ie=n.onSearchSplit,X=n.tokenSeparators,ee=n.allowClear,Q=n.showArrow,te=n.inputIcon,qe=n.clearIcon,Ue=n.OptionList,Wn=n.animation,Ze=n.transitionName,G=n.dropdownStyle,x=n.dropdownClassName,_=n.dropdownMatchSelectWidth,se=n.dropdownRender,ae=n.dropdownAlign,le=n.placement,Pe=n.getPopupContainer,We=n.showAction,mn=We===void 0?[]:We,Se=n.onFocus,Fe=n.onBlur,Te=n.onKeyUp,en=n.onKeyDown,on=n.onMouseDown,cn=(0,s.Z)(n,ue),ke=Ae(D),fe=(p!==void 0?p:ke)||D==="combobox",On=(0,N.Z)({},cn);ge.forEach(function(B){delete On[B]}),R==null||R.forEach(function(B){delete On[B]});var an=t.useState(!1),nn=(0,v.Z)(an,2),kn=nn[0],Jn=nn[1];t.useEffect(function(){Jn((0,Ln.Z)())},[]);var Cn=t.useRef(null),hn=t.useRef(null),Pn=t.useRef(null),gn=t.useRef(null),sn=t.useRef(null),zt=Ye(),ut=(0,v.Z)(zt,3),gt=ut[0],Bn=ut[1],jt=ut[2];t.useImperativeHandle(e,function(){var B,V;return{focus:(B=gn.current)===null||B===void 0?void 0:B.focus,blur:(V=gn.current)===null||V===void 0?void 0:V.blur,scrollTo:function(tn){var Oe;return(Oe=sn.current)===null||Oe===void 0?void 0:Oe.scrollTo(tn)}}});var fn=t.useMemo(function(){var B;if(D!=="combobox")return De;var V=(B=h[0])===null||B===void 0?void 0:B.value;return typeof V=="string"||typeof V=="number"?String(V):""},[De,D,h]),xt=D==="combobox"&&typeof pe=="function"&&pe()||null,yn=typeof ne=="function"&&ne(),Zt=(0,$e.x1)(hn,yn==null||(r=yn.props)===null||r===void 0?void 0:r.ref),Ot=(0,we.Z)(void 0,{defaultValue:me,value:H}),qn=(0,v.Z)(Ot,2),pt=qn[0],St=qn[1],Ne=pt,Pt=!d&&g;(k||Pt&&Ne&&D==="combobox")&&(Ne=!1);var $n=Pt?!1:Ne,w=t.useCallback(function(B){var V=B!==void 0?B:!Ne;k||(St(V),Ne!==V&&(Y==null||Y(V)))},[k,Ne,St,Y]),K=t.useMemo(function(){return(X||[]).some(function(B){return[` -`,`\r -`].includes(B)})},[X]),Z=function(V,je,tn){var Oe=!0,rn=V;ce==null||ce(null);var pn=tn?null:re(V,X);return D!=="combobox"&&pn&&(rn="",Ie==null||Ie(pn),w(!1),Oe=!1),ye&&fn!==rn&&ye(rn,{source:je?"typing":"effect"}),Oe},j=function(V){!V||!V.trim()||ye(V,{source:"submit"})};t.useEffect(function(){!Ne&&!ke&&D!=="combobox"&&Z("",!1,!1)},[Ne]),t.useEffect(function(){pt&&k&&St(!1),k&&Bn(!1)},[k]);var ve=J(),be=(0,v.Z)(ve,2),Tn=be[0],wn=be[1],et=function(V){var je=Tn(),tn=V.which;if(tn===O.Z.ENTER&&(D!=="combobox"&&V.preventDefault(),Ne||w(!0)),wn(!!fn),tn===O.Z.BACKSPACE&&!je&&ke&&!fn&&h.length){for(var Oe=(0,oe.Z)(h),rn=null,pn=Oe.length-1;pn>=0;pn-=1){var bt=Oe[pn];if(!bt.disabled){Oe.splice(pn,1),rn=bt;break}}rn&&y(Oe,{type:"remove",values:[rn]})}for(var jn=arguments.length,st=new Array(jn>1?jn-1:0),Gn=1;Gn1?je-1:0),Oe=1;Oe1?pn-1:0),jn=1;jn1&&arguments[1]!==void 0?arguments[1]:!1;return(0,ot.Z)(n).map(function(r,a){if(!t.isValidElement(r)||!r.type)return null;var c=r,l=c.type.isSelectOptGroup,m=c.key,p=c.props,S=p.children,I=(0,s.Z)(p,Qe);return e||!l?dt(r):(0,N.Z)((0,N.Z)({key:"__RC_SELECT_GRP__".concat(m===null?a:m,"__"),label:m},I),{},{options:Zn(S)})}).filter(function(r){return r})}function at(n,e,r,a,c){return t.useMemo(function(){var l=n,m=!n;m&&(l=Zn(e));var p=new Map,S=new Map,I=function(y,g,T){T&&typeof T=="string"&&y.set(g[T],g)};function R(h){for(var y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,g=0;g1&&arguments[1]!==void 0?arguments[1]:1,se=q.length,ae=0;ae1&&arguments[1]!==void 0?arguments[1]:!1;ee(x);var se={source:_?"keyboard":"mouse"},ae=q[x];if(!ae){d(null,-1,se);return}d(ae.value,x,se)};(0,t.useEffect)(function(){Q(E!==!1?he(0):-1)},[q.length,I]);var te=t.useCallback(function(G){return z.has(G)&&S!=="combobox"},[S,(0,oe.Z)(z).toString(),z.size]);(0,t.useEffect)(function(){var G=setTimeout(function(){if(!p&&m&&z.size===1){var _=Array.from(z)[0],se=q.findIndex(function(ae){var le=ae.data;return le.value===_});se!==-1&&(Q(se),De(se))}});if(m){var x;(x=ce.current)===null||x===void 0||x.scrollTo(void 0)}return function(){return clearTimeout(G)}},[m,I]);var qe=function(x){x!==void 0&&D(x,{selected:!z.has(x)}),p||R(!1)};if(t.useImperativeHandle(r,function(){return{onKeyDown:function(x){var _=x.which,se=x.ctrlKey;switch(_){case O.Z.N:case O.Z.P:case O.Z.UP:case O.Z.DOWN:{var ae=0;if(_===O.Z.UP?ae=-1:_===O.Z.DOWN?ae=1:Ht()&&se&&(_===O.Z.N?ae=1:_===O.Z.P&&(ae=-1)),ae!==0){var le=he(X+ae,ae);De(le),Q(le,!0)}break}case O.Z.ENTER:{var Pe=q[X];Pe&&!Pe.data.disabled?qe(Pe.value):qe(void 0),m&&x.preventDefault();break}case O.Z.ESC:R(!1),m&&x.stopPropagation()}},onKeyUp:function(){},scrollTo:function(x){De(x)}}}),q.length===0)return t.createElement("div",{role:"listbox",id:"".concat(l,"_list"),className:"".concat(Y,"-empty"),onMouseDown:Ce},h);var Ue=Object.keys(pe).map(function(G){return pe[G]}),Wn=function(x){return x.label},Ze=function(x){var _=q[x];if(!_)return null;var se=_.data||{},ae=se.value,le=_.group,Pe=(0,ze.Z)(se,!0),We=Wn(_);return _?t.createElement("div",(0,ie.Z)({"aria-label":typeof We=="string"&&!le?We:null},Pe,{key:x,role:le?"presentation":"option",id:"".concat(l,"_list_").concat(x),"aria-selected":te(ae)}),ae):null};return t.createElement(t.Fragment,null,t.createElement("div",{role:"listbox",id:"".concat(l,"_list"),style:{height:0,width:0,overflow:"hidden"}},Ze(X-1),Ze(X),Ze(X+1)),t.createElement(Qn.Z,{itemKey:"key",ref:ce,data:q,height:H,itemHeight:me,fullHeight:!1,onMouseDown:Ce,onScroll:y,virtual:ne},function(G,x){var _,se=G.group,ae=G.groupOption,le=G.data,Pe=G.label,We=G.value,mn=le.key;if(se){var Se,Fe=(Se=le.title)!==null&&Se!==void 0?Se:It(Pe)?Pe.toString():void 0;return t.createElement("div",{className:Re()(Y,"".concat(Y,"-group")),title:Fe},Pe!==void 0?Pe:mn)}var Te=le.disabled,en=le.title,on=le.children,cn=le.style,ke=le.className,fe=(0,s.Z)(le,Kt),On=(0,wt.Z)(fe,Ue),an=te(We),nn="".concat(Y,"-option"),kn=Re()(Y,nn,ke,(_={},(0,U.Z)(_,"".concat(nn,"-grouped"),ae),(0,U.Z)(_,"".concat(nn,"-active"),X===x&&!Te),(0,U.Z)(_,"".concat(nn,"-disabled"),Te),(0,U.Z)(_,"".concat(nn,"-selected"),an),_)),Jn=Wn(G),Cn=!k||typeof k=="function"||an,hn=typeof Jn=="number"?Jn:Jn||We,Pn=It(hn)?hn.toString():void 0;return en!==void 0&&(Pn=en),t.createElement("div",(0,ie.Z)({},(0,ze.Z)(On),{"aria-selected":an,className:kn,title:Pn,onMouseMove:function(){X===x||Te||Q(x)},onClick:function(){Te||qe(We)},style:cn}),t.createElement("div",{className:"".concat(nn,"-content")},hn),t.isValidElement(k)||an,Cn&&t.createElement(ln,{className:"".concat(Y,"-option-state"),customizeIcon:k,customizeIconProps:{isSelected:an}},an?"\u2713":null))}))},Rt=t.forwardRef(Ut);Rt.displayName="OptionList";var Wt=Rt;function mt(n){var e=n.mode,r=n.options,a=n.children,c=n.backfill,l=n.allowClear,m=n.placeholder,p=n.getInputElement,S=n.showSearch,I=n.onSearch,R=n.defaultOpen,h=n.autoFocus,y=n.labelInValue,g=n.value,T=n.inputValue,d=n.optionLabelProp,E=isMultiple(e),D=S!==void 0?S:E||e==="combobox",k=r||convertChildrenToData(a);if(warning(e!=="tags"||k.every(function(H){return!H.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),e==="tags"||e==="combobox"){var z=k.some(function(H){return H.options?H.options.some(function(me){return typeof("value"in me?me.value:me.key)=="number"}):typeof("value"in H?H.value:H.key)=="number"});warning(!z,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(e!=="combobox"||!d,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(e==="combobox"||!c,"`backfill` only works with `combobox` mode."),warning(e==="combobox"||!p,"`getInputElement` only work with `combobox` mode."),noteOnce(e!=="combobox"||!p||!l||!m,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),I&&!D&&e!=="combobox"&&e!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!R||h,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),g!=null){var pe=toArray(g);warning(!y||pe.every(function(H){return _typeof(H)==="object"&&("key"in H||"value"in H)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!E||Array.isArray(g),"`value` should be array when `mode` is `multiple` or `tags`")}if(a){var ne=null;toNodeArray(a).some(function(H){if(!React.isValidElement(H)||!H.type)return!1;var me=H,Y=me.type;if(Y.isSelectOption)return!1;if(Y.isSelectOptGroup){var q=toNodeArray(H.props.children).every(function(ce){return!React.isValidElement(ce)||!H.type||ce.type.isSelectOption?!0:(ne=ce.type,!1)});return!q}return ne=Y,!0}),ne&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(ne.displayName||ne.name||ne,"`.")),warning(T===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function _t(n,e){if(n){var r=function a(c){for(var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,m=0;m2&&arguments[2]!==void 0?arguments[2]:{},j=Z.source,ve=j===void 0?"keyboard":j;yn(K),m&&a==="combobox"&&w!==null&&ve==="keyboard"&&Bn(String(w))},[m,a]),qn=function(K,Z,j){var ve=function(){var Mn,Nn=On(K);return[X?{label:Nn==null?void 0:Nn[Ze.label],value:K,key:(Mn=Nn==null?void 0:Nn.key)!==null&&Mn!==void 0?Mn:K}:K,F(Nn)]};if(Z&&g){var be=ve(),Tn=(0,v.Z)(be,2),wn=Tn[0],et=Tn[1];g(wn,et)}else if(!Z&&T&&j!=="clear"){var Be=ve(),zn=(0,v.Z)(Be,2),ct=zn[0],Gt=zn[1];T(ct,Gt)}},pt=Kn(function(w,K){var Z,j=qe?K.selected:!0;j?Z=qe?[].concat((0,oe.Z)(fe),[w]):[w]:Z=fe.filter(function(ve){return ve.value!==w}),sn(Z),qn(w,j),a==="combobox"?Bn(""):(!Ae||y)&&(se(""),Bn(""))}),St=function(K,Z){sn(K);var j=Z.type,ve=Z.values;(j==="remove"||j==="clear")&&ve.forEach(function(be){qn(be.value,!1,j)})},Ne=function(K,Z){if(se(K),Bn(null),Z.source==="submit"){var j=(K||"").trim();if(j){var ve=Array.from(new Set([].concat((0,oe.Z)(nn),[j])));sn(ve),qn(j,!0),se("")}return}Z.source!=="blur"&&(a==="combobox"&&sn(K),R==null||R(K))},Pt=function(K){var Z=K;a!=="tags"&&(Z=K.map(function(ve){var be=Pe.get(ve);return be==null?void 0:be.value}).filter(function(ve){return ve!==void 0}));var j=Array.from(new Set([].concat((0,oe.Z)(nn),(0,oe.Z)(Z))));sn(j),j.forEach(function(ve){qn(ve,!0)})},$n=t.useMemo(function(){var w=q!==!1&&E!==!1;return(0,N.Z)((0,N.Z)({},ae),{},{flattenOptions:gn,onActiveValue:Ot,defaultActiveFirstOption:Zt,onSelect:pt,menuItemSelectedIcon:Y,rawValues:nn,fieldNames:Ze,virtual:w,listHeight:Ce,listItemHeight:he,childrenAsData:Ue})},[ae,gn,Ot,Zt,pt,Y,nn,Ze,q,E,Ce,he,Ue]);return t.createElement(vt.Provider,{value:$n},t.createElement(En,(0,ie.Z)({},Q,{id:te,prefixCls:l,ref:e,omitDomProps:Bt,mode:a,displayValues:an,onDisplayValuesChange:St,searchValue:_,onSearch:Ne,autoClearSearchValue:y,onSearchSplit:Pt,dropdownMatchSelectWidth:E,OptionList:Wt,emptyOptions:!gn.length,activeValue:gt,activeDescendantId:"".concat(te,"_list_").concat(xt)})))}),Un=ht;Un.Option=Je,Un.OptGroup=Xn;var it=Un,$t=it},64217:function(Yn,Ge,i){"use strict";i.d(Ge,{Z:function(){return we}});var ie=i(28991),oe=`accept acceptCharset accessKey action allowFullScreen allowTransparency - alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge - charSet checked classID className colSpan cols content contentEditable contextMenu - controls coords crossOrigin data dateTime default defer dir disabled download draggable - encType form formAction formEncType formMethod formNoValidate formTarget frameBorder - headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity - is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media - mediaGroup method min minLength multiple muted name noValidate nonce open - optimum pattern placeholder poster preload radioGroup readOnly rel required - reversed role rowSpan rows sandbox scope scoped scrolling seamless selected - shape size sizes span spellCheck src srcDoc srcLang srcSet start step style - summary tabIndex target title type useMap value width wmode wrap`,U=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown - onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick - onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown - onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel - onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough - onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata - onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,N="".concat(oe," ").concat(U).split(/[\s\n]+/),v="aria-",s="data-";function Ee(de,t){return de.indexOf(t)===0}function we(de){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Le;t===!1?Le={aria:!0,data:!0,attr:!0}:t===!0?Le={aria:!0}:Le=(0,ie.Z)({},t);var Re={};return Object.keys(de).forEach(function(He){(Le.aria&&(He==="role"||Ee(He,v))||Le.data&&Ee(He,s)||Le.attr&&N.includes(He))&&(Re[He]=de[He])}),Re}},7606:function(Yn,Ge,i){"use strict";i.d(Ge,{Z:function(){return yt}});var ie=i(22122),oe=i(96156),U=i(28991),N=i(28481),v=i(81253),s=i(67294),Ee=i(94184),we=i.n(Ee),de=i(48717),t=s.forwardRef(function(f,$){var M=f.height,o=f.offset,A=f.children,C=f.prefixCls,L=f.onInnerResize,u=f.innerProps,b={},P={display:"flex",flexDirection:"column"};return o!==void 0&&(b={height:M,position:"relative",overflow:"hidden"},P=(0,U.Z)((0,U.Z)({},P),{},{transform:"translateY(".concat(o,"px)"),position:"absolute",left:0,right:0,top:0})),s.createElement("div",{style:b},s.createElement(de.Z,{onResize:function(F){var re=F.offsetHeight;re&&L&&L()}},s.createElement("div",(0,ie.Z)({style:P,className:we()((0,oe.Z)({},"".concat(C,"-holder-inner"),C)),ref:$},u),A)))});t.displayName="Filler";var Le=t,Re=i(6610),He=i(5991),Ln=i(10379),O=i(44144),$e=i(75164),Ke=20;function Me(f){return"touches"in f?f.touches[0].pageY:f.pageY}var Ye=function(f){(0,Ln.Z)(M,f);var $=(0,O.Z)(M);function M(){var o;(0,Re.Z)(this,M);for(var A=arguments.length,C=new Array(A),L=0;Lb},o}return(0,He.Z)(M,[{key:"componentDidMount",value:function(){this.scrollbarRef.current.addEventListener("touchstart",this.onScrollbarTouchStart),this.thumbRef.current.addEventListener("touchstart",this.onMouseDown)}},{key:"componentDidUpdate",value:function(A){A.scrollTop!==this.props.scrollTop&&this.delayHidden()}},{key:"componentWillUnmount",value:function(){this.removeEvents(),clearTimeout(this.visibleTimeout)}},{key:"render",value:function(){var A=this.state,C=A.dragging,L=A.visible,u=this.props.prefixCls,b=this.getSpinHeight(),P=this.getTop(),W=this.showScroll(),F=W&&L;return s.createElement("div",{ref:this.scrollbarRef,className:we()("".concat(u,"-scrollbar"),(0,oe.Z)({},"".concat(u,"-scrollbar-show"),W)),style:{width:8,top:0,bottom:0,right:0,position:"absolute",display:F?null:"none"},onMouseDown:this.onContainerMouseDown,onMouseMove:this.delayHidden},s.createElement("div",{ref:this.thumbRef,className:we()("".concat(u,"-scrollbar-thumb"),(0,oe.Z)({},"".concat(u,"-scrollbar-thumb-moving"),C)),style:{width:"100%",height:b,top:P,left:0,position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"},onMouseDown:this.onMouseDown}))}}]),M}(s.Component);function J(f){var $=f.children,M=f.setRef,o=s.useCallback(function(A){M(A)},[]);return s.cloneElement($,{ref:o})}function Ve(f,$,M,o,A,C){var L=C.getKey;return f.slice($,M+1).map(function(u,b){var P=$+b,W=A(u,P,{}),F=L(u);return s.createElement(J,{key:F,setRef:function(ue){return o(u,ue)}},W)})}var ze=i(34203),In=function(){function f(){(0,Re.Z)(this,f),this.maps=void 0,this.maps=Object.create(null)}return(0,He.Z)(f,[{key:"set",value:function(M,o){this.maps[M]=o}},{key:"get",value:function(M){return this.maps[M]}}]),f}(),dn=In;function ln(f,$,M){var o=s.useState(0),A=(0,N.Z)(o,2),C=A[0],L=A[1],u=(0,s.useRef)(new Map),b=(0,s.useRef)(new dn),P=(0,s.useRef)();function W(){$e.Z.cancel(P.current)}function F(){W(),P.current=(0,$e.Z)(function(){u.current.forEach(function(ue,ge){if(ue&&ue.offsetParent){var Ae=(0,ze.Z)(ue),_e=Ae.offsetHeight;b.current.get(ge)!==_e&&b.current.set(ge,Ae.offsetHeight)}}),L(function(ue){return ue+1})})}function re(ue,ge){var Ae=f(ue),_e=u.current.get(Ae);ge?(u.current.set(Ae,ge),F()):u.current.delete(Ae),!_e!=!ge&&(ge?$==null||$(ue):M==null||M(ue))}return(0,s.useEffect)(function(){return W},[]),[re,F,b.current,C]}var Vn=i(90484);function un(f,$,M,o,A,C,L,u){var b=s.useRef();return function(P){if(P==null){u();return}if($e.Z.cancel(b.current),typeof P=="number")L(P);else if(P&&(0,Vn.Z)(P)==="object"){var W,F=P.align;"index"in P?W=P.index:W=$.findIndex(function(Ae){return A(Ae)===P.key});var re=P.offset,ue=re===void 0?0:re,ge=function Ae(_e,En){if(!(_e<0||!f.current)){var Dn=f.current.clientHeight,Hn=!1,Xe=En;if(Dn){for(var tt=En||F,ot=0,xn=0,Qe=0,dt=Math.min($.length,W),Zn=0;Zn<=dt;Zn+=1){var at=A($[Zn]);xn=ot;var Kn=M.get(at);Qe=xn+(Kn===void 0?o:Kn),ot=Qe,Zn===W&&Kn===void 0&&(Hn=!0)}var vn=null;switch(tt){case"top":vn=xn-ue;break;case"bottom":vn=Qe-Dn+ue;break;default:{var Xn=f.current.scrollTop,xe=Xn+Dn;xnxe&&(Xe="bottom")}}vn!==null&&vn!==f.current.scrollTop&&L(vn)}b.current=(0,$e.Z)(function(){Hn&&C(),Ae(_e-1,Xe)},2)}};ge(3)}}}function _n(f,$,M,o){var A=M-f,C=$-M,L=Math.min(A,C)*2;if(o<=L){var u=Math.floor(o/2);return o%2?M+u+1:M-u}return A>C?M-(o-C):M+(o-A)}function An(f,$,M){var o=f.length,A=$.length,C,L;if(o===0&&A===0)return null;o1&&arguments[1]!==void 0?arguments[1]:!1,b=L<0&&C.current.top||L>0&&C.current.bottom;return u&&b?(clearTimeout(o.current),M.current=!1):(!b||M.current)&&A(),!M.current&&b}};function nt(f,$,M,o){var A=(0,s.useRef)(0),C=(0,s.useRef)(null),L=(0,s.useRef)(null),u=(0,s.useRef)(!1),b=bn($,M);function P(F){if(!!f){$e.Z.cancel(C.current);var re=F.deltaY;A.current+=re,L.current=re,!b(re)&&(Sn||F.preventDefault(),C.current=(0,$e.Z)(function(){var ue=u.current?10:1;o(A.current*ue),A.current=0}))}}function W(F){!f||(u.current=F.detail===L.current)}return[P,W]}var Rn=i(8410),Tt=14/15;function Et(f,$,M){var o=(0,s.useRef)(!1),A=(0,s.useRef)(0),C=(0,s.useRef)(null),L=(0,s.useRef)(null),u,b=function(re){if(o.current){var ue=Math.ceil(re.touches[0].pageY),ge=A.current-ue;A.current=ue,M(ge)&&re.preventDefault(),clearInterval(L.current),L.current=setInterval(function(){ge*=Tt,(!M(ge,!0)||Math.abs(ge)<=.1)&&clearInterval(L.current)},16)}},P=function(){o.current=!1,u()},W=function(re){u(),re.touches.length===1&&!o.current&&(o.current=!0,A.current=Math.ceil(re.touches[0].pageY),C.current=re.target,C.current.addEventListener("touchmove",b),C.current.addEventListener("touchend",P))};u=function(){C.current&&(C.current.removeEventListener("touchmove",b),C.current.removeEventListener("touchend",P))},(0,Rn.Z)(function(){return f&&$.current.addEventListener("touchstart",W),function(){var F;(F=$.current)===null||F===void 0||F.removeEventListener("touchstart",W),u(),clearInterval(L.current)}},[f])}var Nt=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","component","onScroll","onVisibleChange","innerProps"],Lt=[],Vt={overflowY:"auto",overflowAnchor:"none"};function At(f,$){var M=f.prefixCls,o=M===void 0?"rc-virtual-list":M,A=f.className,C=f.height,L=f.itemHeight,u=f.fullHeight,b=u===void 0?!0:u,P=f.style,W=f.data,F=f.children,re=f.itemKey,ue=f.virtual,ge=f.component,Ae=ge===void 0?"div":ge,_e=f.onScroll,En=f.onVisibleChange,Dn=f.innerProps,Hn=(0,v.Z)(f,Nt),Xe=!!(ue!==!1&&C&&L),tt=Xe&&W&&L*W.length>C,ot=(0,s.useState)(0),xn=(0,N.Z)(ot,2),Qe=xn[0],dt=xn[1],Zn=(0,s.useState)(!1),at=(0,N.Z)(Zn,2),Kn=at[0],vn=at[1],Xn=we()(o,A),xe=W||Lt,Je=(0,s.useRef)(),wt=(0,s.useRef)(),Mt=(0,s.useRef)(),Qn=s.useCallback(function(d){return typeof re=="function"?re(d):d==null?void 0:d[re]},[re]),Ht={getKey:Qn};function rt(d){dt(function(E){var D;typeof d=="function"?D=d(E):D=d;var k=r(D);return Je.current.scrollTop=k,k})}var vt=(0,s.useRef)({start:0,end:xe.length}),Kt=(0,s.useRef)(),It=ft(xe,Qn),Ut=(0,N.Z)(It,1),Rt=Ut[0];Kt.current=Rt;var Wt=ln(Qn,null,null),mt=(0,N.Z)(Wt,4),_t=mt[0],kt=mt[1],Dt=mt[2],Bt=mt[3],lt=s.useMemo(function(){if(!Xe)return{scrollHeight:void 0,start:0,end:xe.length-1,offset:void 0};if(!tt){var d;return{scrollHeight:((d=wt.current)===null||d===void 0?void 0:d.offsetHeight)||0,start:0,end:xe.length-1,offset:void 0}}for(var E=0,D,k,z,pe=xe.length,ne=0;ne=Qe&&D===void 0&&(D=ne,k=E),q>Qe+C&&z===void 0&&(z=ne),E=q}return D===void 0&&(D=0,k=0,z=Math.ceil(C/L)),z===void 0&&(z=xe.length-1),z=Math.min(z+1,xe.length),{scrollHeight:E,start:D,end:z,offset:k}},[tt,Xe,Qe,xe,Bt,C]),ht=lt.scrollHeight,Un=lt.start,it=lt.end,$t=lt.offset;vt.current.start=Un,vt.current.end=it;var n=ht-C,e=(0,s.useRef)(n);e.current=n;function r(d){var E=d;return Number.isNaN(e.current)||(E=Math.min(E,e.current)),E=Math.max(E,0),E}var a=Qe<=0,c=Qe>=n,l=bn(a,c);function m(d){var E=d;rt(E)}function p(d){var E=d.currentTarget.scrollTop;E!==Qe&&rt(E),_e==null||_e(d)}var S=nt(Xe,a,c,function(d){rt(function(E){var D=E+d;return D})}),I=(0,N.Z)(S,2),R=I[0],h=I[1];Et(Xe,Je,function(d,E){return l(d,E)?!1:(R({preventDefault:function(){},deltaY:d}),!0)}),(0,Rn.Z)(function(){function d(E){Xe&&E.preventDefault()}return Je.current.addEventListener("wheel",R),Je.current.addEventListener("DOMMouseScroll",h),Je.current.addEventListener("MozMousePixelScroll",d),function(){Je.current&&(Je.current.removeEventListener("wheel",R),Je.current.removeEventListener("DOMMouseScroll",h),Je.current.removeEventListener("MozMousePixelScroll",d))}},[Xe]);var y=un(Je,xe,Dt,L,Qn,kt,rt,function(){var d;(d=Mt.current)===null||d===void 0||d.delayHidden()});s.useImperativeHandle($,function(){return{scrollTo:y}}),(0,Rn.Z)(function(){if(En){var d=xe.slice(Un,it+1);En(d,xe)}},[Un,it,xe]);var g=Ve(xe,Un,it,_t,F,Ht),T=null;return C&&(T=(0,U.Z)((0,oe.Z)({},b?"height":"maxHeight",C),Vt),Xe&&(T.overflowY="hidden",Kn&&(T.pointerEvents="none"))),s.createElement("div",(0,ie.Z)({style:(0,U.Z)((0,U.Z)({},P),{},{position:"relative"}),className:Xn},Hn),s.createElement(Ae,{className:"".concat(o,"-holder"),style:T,ref:Je,onScroll:p},s.createElement(Le,{prefixCls:o,height:ht,offset:$t,onInnerResize:kt,ref:wt,innerProps:Dn},g)),Xe&&s.createElement(Ye,{ref:Mt,prefixCls:o,scrollTop:Qe,height:C,scrollHeight:ht,count:xe.length,onScroll:m,onStartMove:function(){vn(!0)},onStopMove:function(){vn(!1)}}))}var Ct=s.forwardRef(At);Ct.displayName="List";var Ft=Ct,yt=Ft}}]); diff --git a/dist/2339.ed2cbc1e.async.js b/dist/2339.ed2cbc1e.async.js new file mode 100644 index 0000000..03ff683 --- /dev/null +++ b/dist/2339.ed2cbc1e.async.js @@ -0,0 +1,20 @@ +(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[2339],{88258:function(_n,Ge,i){"use strict";var se=i(67294),_=i(53124),U=i(14277),N=function(f){return se.createElement(_.C,null,function(Ee){var we=Ee.getPrefixCls,ve=we("empty");switch(f){case"Table":case"List":return se.createElement(U.Z,{image:U.Z.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return se.createElement(U.Z,{image:U.Z.PRESENTED_IMAGE_SIMPLE,className:"".concat(ve,"-small")});default:return se.createElement(U.Z,null)}})};Ge.Z=N},14277:function(_n,Ge,i){"use strict";i.d(Ge,{Z:function(){return $e}});var se=i(96156),_=i(22122),U=i(94184),N=i.n(U),m=i(67294),f=i(53124),Ee=i(42051),we=function(){var Me=m.useContext(f.E_),Ye=Me.getPrefixCls,q=Ye("empty-img-default");return m.createElement("svg",{className:q,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},m.createElement("g",{fill:"none",fillRule:"evenodd"},m.createElement("g",{transform:"translate(24 31.67)"},m.createElement("ellipse",{className:"".concat(q,"-ellipse"),cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),m.createElement("path",{className:"".concat(q,"-path-1"),d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z"}),m.createElement("path",{className:"".concat(q,"-path-2"),d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",transform:"translate(13.56)"}),m.createElement("path",{className:"".concat(q,"-path-3"),d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z"}),m.createElement("path",{className:"".concat(q,"-path-4"),d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z"})),m.createElement("path",{className:"".concat(q,"-path-5"),d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z"}),m.createElement("g",{className:"".concat(q,"-g"),transform:"translate(149.65 15.383)"},m.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),m.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},ve=we,t=function(){var Me=m.useContext(f.E_),Ye=Me.getPrefixCls,q=Ye("empty-img-simple");return m.createElement("svg",{className:q,width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},m.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},m.createElement("ellipse",{className:"".concat(q,"-ellipse"),cx:"32",cy:"33",rx:"32",ry:"7"}),m.createElement("g",{className:"".concat(q,"-g"),fillRule:"nonzero"},m.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),m.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",className:"".concat(q,"-path")}))))},Le=t,Re=function(Ke,Me){var Ye={};for(var q in Ke)Object.prototype.hasOwnProperty.call(Ke,q)&&Me.indexOf(q)<0&&(Ye[q]=Ke[q]);if(Ke!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ve=0,q=Object.getOwnPropertySymbols(Ke);Ve0&&arguments[0]!==void 0?arguments[0]:10,e=t.useState(!1),a=(0,m.Z)(e,2),r=a[0],s=a[1],l=t.useRef(null),h=function(){window.clearTimeout(l.current)};t.useEffect(function(){return h},[]);var S=function(I,O){h(),l.current=window.setTimeout(function(){s(I),O&&O()},n)};return[r,S,h]}function q(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,e=t.useRef(null),a=t.useRef(null);t.useEffect(function(){return function(){window.clearTimeout(a.current)}},[]);function r(s){(s||e.current===null)&&(e.current=s),window.clearTimeout(a.current),a.current=window.setTimeout(function(){e.current=null},n)}return[function(){return e.current},r]}function Ve(n,e,a,r){var s=t.useRef(null);s.current={open:e,triggerOpen:a,customizedTrigger:r},t.useEffect(function(){function l(h){var S;if(!((S=s.current)!==null&&S!==void 0&&S.customizedTrigger)){var b=h.target;b.shadowRoot&&h.composed&&(b=h.composedPath()[0]||b),s.current.open&&n().filter(function(I){return I}).every(function(I){return!I.contains(b)&&I!==b})&&s.current.triggerOpen(!1)}}return window.addEventListener("mousedown",l),function(){return window.removeEventListener("mousedown",l)}},[])}var ze=i(64217),Rn=i(56278),fn=function(e){var a=e.className,r=e.customizeIcon,s=e.customizeIconProps,l=e.onMouseDown,h=e.onClick,S=e.children,b;return typeof r=="function"?b=r(s):b=r,t.createElement("span",{className:a,onMouseDown:function(O){O.preventDefault(),l&&l(O)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:h,"aria-hidden":!0},b!==void 0?b:t.createElement("span",{className:Re()(a.split(/\s+/).map(function(I){return"".concat(I,"-icon")}))},S))},an=fn,An=function(e,a){var r,s,l=e.prefixCls,h=e.id,S=e.inputElement,b=e.disabled,I=e.tabIndex,O=e.autoFocus,v=e.autoComplete,C=e.editable,p=e.activeDescendantId,H=e.value,X=e.maxLength,d=e.onKeyDown,g=e.onMouseDown,T=e.onChange,z=e.onPaste,re=e.onCompositionStart,ce=e.onCompositionEnd,P=e.open,ge=e.attrs,G=S||t.createElement("input",null),te=G,ae=te.ref,Ce=te.props,De=Ce.onKeyDown,pe=Ce.onChange,ye=Ce.onMouseDown,Ie=Ce.onCompositionStart,Q=Ce.onCompositionEnd,ne=Ce.style;return(0,ve.Kp)(!("maxLength"in G.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),G=t.cloneElement(G,(0,N.Z)((0,N.Z)((0,N.Z)({type:"search"},Ce),{},{id:h,ref:(0,$e.sQ)(a,ae),disabled:b,tabIndex:I,autoComplete:v||"off",autoFocus:O,className:Re()("".concat(l,"-selection-search-input"),(r=G)===null||r===void 0||(s=r.props)===null||s===void 0?void 0:s.className),role:"combobox","aria-expanded":P,"aria-haspopup":"listbox","aria-owns":"".concat(h,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(h,"_list"),"aria-activedescendant":p},ge),{},{value:C?H:"",maxLength:X,readOnly:!C,unselectable:C?null:"on",style:(0,N.Z)((0,N.Z)({},ne),{},{opacity:C?null:0}),onKeyDown:function(oe){d(oe),De&&De(oe)},onMouseDown:function(oe){g(oe),ye&&ye(oe)},onChange:function(oe){T(oe),pe&&pe(oe)},onCompositionStart:function(oe){re(oe),Ie&&Ie(oe)},onCompositionEnd:function(oe){ce(oe),Q&&Q(oe)},onPaste:z})),G},ln=t.forwardRef(An);ln.displayName="Input";var Xn=ln;function Fn(n){return Array.isArray(n)?n:n!==void 0?[n]:[]}var vt=typeof window!="undefined"&&window.document&&window.document.documentElement,Hn=vt;function Sn(n){return n!=null}function bn(n){return["string","number"].includes((0,Ee.Z)(n))}function at(n){var e=void 0;return n&&(bn(n.title)?e=n.title.toString():bn(n.label)&&(e=n.label.toString())),e}function Dn(n,e){Hn?t.useLayoutEffect(n,e):t.useEffect(n,e)}function Lt(n){var e;return(e=n.key)!==null&&e!==void 0?e:n.value}var Et=function(e){e.preventDefault(),e.stopPropagation()},Vt=function(e){var a=e.id,r=e.prefixCls,s=e.values,l=e.open,h=e.searchValue,S=e.autoClearSearchValue,b=e.inputRef,I=e.placeholder,O=e.disabled,v=e.mode,C=e.showSearch,p=e.autoFocus,H=e.autoComplete,X=e.activeDescendantId,d=e.tabIndex,g=e.removeIcon,T=e.maxTagCount,z=e.maxTagTextLength,re=e.maxTagPlaceholder,ce=re===void 0?function(Se){return"+ ".concat(Se.length," ...")}:re,P=e.tagRender,ge=e.onToggleOpen,G=e.onRemove,te=e.onInputChange,ae=e.onInputPaste,Ce=e.onInputKeyDown,De=e.onInputMouseDown,pe=e.onInputCompositionStart,ye=e.onInputCompositionEnd,Ie=t.useRef(null),Q=(0,t.useState)(0),ne=(0,m.Z)(Q,2),J=ne[0],oe=ne[1],_e=(0,t.useState)(!1),Ue=(0,m.Z)(_e,2),kn=Ue[0],Ze=Ue[1],j="".concat(r,"-selection"),R=l||v==="multiple"&&S===!1||v==="tags"?h:"",Y=v==="tags"||v==="multiple"&&S===!1||C&&(l||kn);Dn(function(){oe(Ie.current.scrollWidth)},[R]);function fe(Se,Fe,Te,Xe,tn){return t.createElement("span",{className:Re()("".concat(j,"-item"),(0,U.Z)({},"".concat(j,"-item-disabled"),Te)),title:at(Se)},t.createElement("span",{className:"".concat(j,"-item-content")},Fe),Xe&&t.createElement(an,{className:"".concat(j,"-item-remove"),onMouseDown:Et,onClick:tn,customizeIcon:g},"\xD7"))}function le(Se,Fe,Te,Xe,tn){var un=function(de){Et(de),ge(!l)};return t.createElement("span",{onMouseDown:un},P({label:Fe,value:Se,disabled:Te,closable:Xe,onClose:tn}))}function ue(Se){var Fe=Se.disabled,Te=Se.label,Xe=Se.value,tn=!O&&!Fe,un=Te;if(typeof z=="number"&&(typeof Te=="string"||typeof Te=="number")){var ke=String(un);ke.length>z&&(un="".concat(ke.slice(0,z),"..."))}var de=function(on){on&&on.stopPropagation(),G(Se)};return typeof P=="function"?le(Xe,un,Fe,tn,de):fe(Se,un,Fe,tn,de)}function Pe(Se){var Fe=typeof ce=="function"?ce(Se):ce;return fe({title:Fe},Fe,!1)}var We=t.createElement("div",{className:"".concat(j,"-search"),style:{width:J},onFocus:function(){Ze(!0)},onBlur:function(){Ze(!1)}},t.createElement(Xn,{ref:b,open:l,prefixCls:r,id:a,inputElement:null,disabled:O,autoFocus:p,autoComplete:H,editable:Y,activeDescendantId:X,value:R,onKeyDown:Ce,onMouseDown:De,onChange:te,onPaste:ae,onCompositionStart:pe,onCompositionEnd:ye,tabIndex:d,attrs:(0,ze.Z)(e,!0)}),t.createElement("span",{ref:Ie,className:"".concat(j,"-search-mirror"),"aria-hidden":!0},R,"\xA0")),mn=t.createElement(Rn.Z,{prefixCls:"".concat(j,"-overflow"),data:s,renderItem:ue,renderRest:Pe,suffix:We,itemKey:Lt,maxCount:T});return t.createElement(t.Fragment,null,mn,!s.length&&!R&&t.createElement("span",{className:"".concat(j,"-placeholder")},I))},At=Vt,Ft=function(e){var a=e.inputElement,r=e.prefixCls,s=e.id,l=e.inputRef,h=e.disabled,S=e.autoFocus,b=e.autoComplete,I=e.activeDescendantId,O=e.mode,v=e.open,C=e.values,p=e.placeholder,H=e.tabIndex,X=e.showSearch,d=e.searchValue,g=e.activeValue,T=e.maxLength,z=e.onInputKeyDown,re=e.onInputMouseDown,ce=e.onInputChange,P=e.onInputPaste,ge=e.onInputCompositionStart,G=e.onInputCompositionEnd,te=t.useState(!1),ae=(0,m.Z)(te,2),Ce=ae[0],De=ae[1],pe=O==="combobox",ye=pe||X,Ie=C[0],Q=d||"";pe&&g&&!Ce&&(Q=g),t.useEffect(function(){pe&&De(!1)},[pe,g]);var ne=O!=="combobox"&&!v&&!X?!1:!!Q,J=at(Ie),oe=function(){if(Ie)return null;var Ue=ne?{visibility:"hidden"}:void 0;return t.createElement("span",{className:"".concat(r,"-selection-placeholder"),style:Ue},p)};return t.createElement(t.Fragment,null,t.createElement("span",{className:"".concat(r,"-selection-search")},t.createElement(Xn,{ref:l,prefixCls:r,id:s,open:v,inputElement:a,disabled:h,autoFocus:S,autoComplete:b,editable:ye,activeDescendantId:I,value:Q,onKeyDown:z,onMouseDown:re,onChange:function(Ue){De(!0),ce(Ue)},onPaste:P,onCompositionStart:ge,onCompositionEnd:G,tabIndex:H,attrs:(0,ze.Z)(e,!0),maxLength:pe?T:void 0})),!pe&&Ie?t.createElement("span",{className:"".concat(r,"-selection-item"),title:J,style:ne?{visibility:"hidden"}:void 0},Ie.label):null,oe())},Ht=Ft;function Ct(n){return![Z.Z.ESC,Z.Z.SHIFT,Z.Z.BACKSPACE,Z.Z.TAB,Z.Z.WIN_KEY,Z.Z.ALT,Z.Z.META,Z.Z.WIN_KEY_RIGHT,Z.Z.CTRL,Z.Z.SEMICOLON,Z.Z.EQUALS,Z.Z.CAPS_LOCK,Z.Z.CONTEXT_MENU,Z.Z.F1,Z.Z.F2,Z.Z.F3,Z.Z.F4,Z.Z.F5,Z.Z.F6,Z.Z.F7,Z.Z.F8,Z.Z.F9,Z.Z.F10,Z.Z.F11,Z.Z.F12].includes(n)}var Kt=function(e,a){var r=(0,t.useRef)(null),s=(0,t.useRef)(!1),l=e.prefixCls,h=e.open,S=e.mode,b=e.showSearch,I=e.tokenWithEnter,O=e.autoClearSearchValue,v=e.onSearch,C=e.onSearchSubmit,p=e.onToggleOpen,H=e.onInputKeyDown,X=e.domRef;t.useImperativeHandle(a,function(){return{focus:function(){r.current.focus()},blur:function(){r.current.blur()}}});var d=q(0),g=(0,m.Z)(d,2),T=g[0],z=g[1],re=function(ne){var J=ne.which;(J===Z.Z.UP||J===Z.Z.DOWN)&&ne.preventDefault(),H&&H(ne),J===Z.Z.ENTER&&S==="tags"&&!s.current&&!h&&(C==null||C(ne.target.value)),Ct(J)&&p(!0)},ce=function(){z(!0)},P=(0,t.useRef)(null),ge=function(ne){v(ne,!0,s.current)!==!1&&p(!0)},G=function(){s.current=!0},te=function(ne){s.current=!1,S!=="combobox"&&ge(ne.target.value)},ae=function(ne){var J=ne.target.value;if(I&&P.current&&/[\r\n]/.test(P.current)){var oe=P.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");J=J.replace(oe,P.current)}P.current=null,ge(J)},Ce=function(ne){var J=ne.clipboardData,oe=J.getData("text");P.current=oe},De=function(ne){var J=ne.target;if(J!==r.current){var oe=document.body.style.msTouchAction!==void 0;oe?setTimeout(function(){r.current.focus()}):r.current.focus()}},pe=function(ne){var J=T();ne.target!==r.current&&!J&&S!=="combobox"&&ne.preventDefault(),(S!=="combobox"&&(!b||!J)||!h)&&(h&&O!==!1&&v("",!0,!1),p())},ye={inputRef:r,onInputKeyDown:re,onInputMouseDown:ce,onInputChange:ae,onInputPaste:Ce,onInputCompositionStart:G,onInputCompositionEnd:te},Ie=S==="multiple"||S==="tags"?t.createElement(At,(0,se.Z)({},e,ye)):t.createElement(Ht,(0,se.Z)({},e,ye));return t.createElement("div",{ref:X,className:"".concat(l,"-selector"),onClick:De,onMouseDown:pe},Ie)},yt=t.forwardRef(Kt);yt.displayName="Selector";var u=yt,k=i(2306),M=["prefixCls","disabled","visible","children","popupElement","containerWidth","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],o=function(e){var a=e===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:a,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:a,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:a,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:a,adjustY:1}}}},A=function(e,a){var r=e.prefixCls,s=e.disabled,l=e.visible,h=e.children,S=e.popupElement,b=e.containerWidth,I=e.animation,O=e.transitionName,v=e.dropdownStyle,C=e.dropdownClassName,p=e.direction,H=p===void 0?"ltr":p,X=e.placement,d=e.dropdownMatchSelectWidth,g=e.dropdownRender,T=e.dropdownAlign,z=e.getPopupContainer,re=e.empty,ce=e.getTriggerDOMNode,P=e.onPopupVisibleChange,ge=e.onPopupMouseEnter,G=(0,f.Z)(e,M),te="".concat(r,"-dropdown"),ae=S;g&&(ae=g(S));var Ce=t.useMemo(function(){return o(d)},[d]),De=I?"".concat(te,"-").concat(I):O,pe=t.useRef(null);t.useImperativeHandle(a,function(){return{getPopupElement:function(){return pe.current}}});var ye=(0,N.Z)({minWidth:b},v);return typeof d=="number"?ye.width=d:d&&(ye.width=b),t.createElement(k.Z,(0,se.Z)({},G,{showAction:P?["click"]:[],hideAction:P?["click"]:[],popupPlacement:X||(H==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:Ce,prefixCls:te,popupTransitionName:De,popup:t.createElement("div",{ref:pe,onMouseEnter:ge},ae),popupAlign:T,popupVisible:l,getPopupContainer:z,popupClassName:Re()(C,(0,U.Z)({},"".concat(te,"-empty"),re)),popupStyle:ye,getTriggerDOMNode:ce,onPopupVisibleChange:P}),h)},y=t.forwardRef(A);y.displayName="SelectTrigger";var L=y,c=i(99809);function E(n,e){var a=n.key,r;return"value"in n&&(r=n.value),a!=null?a:r!==void 0?r:"rc-index-key-".concat(e)}function x(n,e){var a=n||{},r=a.label,s=a.value,l=a.options;return{label:r||(e?"children":"label"),value:s||"value",options:l||"options"}}function B(n){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=e.fieldNames,r=e.childrenAsData,s=[],l=x(a,!1),h=l.label,S=l.value,b=l.options;function I(O,v){O.forEach(function(C){var p=C[h];if(v||!(b in C)){var H=C[S];s.push({key:E(C,s.length),groupOption:v,data:C,label:p,value:H})}else{var X=p;X===void 0&&r&&(X=C.label),s.push({key:E(C,s.length),group:!0,data:C,label:X}),I(C[b],!0)}})}return I(n,!1),s}function F(n){var e=(0,N.Z)({},n);return"props"in e||Object.defineProperty(e,"props",{get:function(){return(0,ve.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),e}}),e}function ee(n,e){if(!e||!e.length)return null;var a=!1;function r(l,h){var S=(0,c.Z)(h),b=S[0],I=S.slice(1);if(!b)return[l];var O=l.split(b);return a=a||O.length>1,O.reduce(function(v,C){return[].concat((0,_.Z)(v),(0,_.Z)(r(C,I)))},[]).filter(function(v){return v})}var s=r(n,e);return a?s:null}var ie=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","showArrow","inputIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],me=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"];function Oe(n){return n==="tags"||n==="multiple"}var qe=t.forwardRef(function(n,e){var a,r,s=n.id,l=n.prefixCls,h=n.className,S=n.showSearch,b=n.tagRender,I=n.direction,O=n.omitDomProps,v=n.displayValues,C=n.onDisplayValuesChange,p=n.emptyOptions,H=n.notFoundContent,X=H===void 0?"Not Found":H,d=n.onClear,g=n.mode,T=n.disabled,z=n.loading,re=n.getInputElement,ce=n.getRawInputElement,P=n.open,ge=n.defaultOpen,G=n.onDropdownVisibleChange,te=n.activeValue,ae=n.onActiveValueChange,Ce=n.activeDescendantId,De=n.searchValue,pe=n.autoClearSearchValue,ye=n.onSearch,Ie=n.onSearchSplit,Q=n.tokenSeparators,ne=n.allowClear,J=n.showArrow,oe=n.inputIcon,_e=n.clearIcon,Ue=n.OptionList,kn=n.animation,Ze=n.transitionName,j=n.dropdownStyle,R=n.dropdownClassName,Y=n.dropdownMatchSelectWidth,fe=n.dropdownRender,le=n.dropdownAlign,ue=n.placement,Pe=n.getPopupContainer,We=n.showAction,mn=We===void 0?[]:We,Se=n.onFocus,Fe=n.onBlur,Te=n.onKeyUp,Xe=n.onKeyDown,tn=n.onMouseDown,un=(0,f.Z)(n,ie),ke=Oe(g),de=(S!==void 0?S:ke)||g==="combobox",Pn=(0,N.Z)({},un);me.forEach(function(W){delete Pn[W]}),O==null||O.forEach(function(W){delete Pn[W]});var on=t.useState(!1),Qe=(0,m.Z)(on,2),Bn=Qe[0],tt=Qe[1];t.useEffect(function(){tt((0,Vn.Z)())},[]);var yn=t.useRef(null),hn=t.useRef(null),Tn=t.useRef(null),gn=t.useRef(null),cn=t.useRef(null),$t=Ye(),st=(0,m.Z)($t,3),gt=st[0],$n=st[1],zt=st[2];t.useImperativeHandle(e,function(){var W,V;return{focus:(W=gn.current)===null||W===void 0?void 0:W.focus,blur:(V=gn.current)===null||V===void 0?void 0:V.blur,scrollTo:function(Je){var xe;return(xe=cn.current)===null||xe===void 0?void 0:xe.scrollTo(Je)}}});var sn=t.useMemo(function(){var W;if(g!=="combobox")return De;var V=(W=v[0])===null||W===void 0?void 0:W.value;return typeof V=="string"||typeof V=="number"?String(V):""},[De,g,v]),Ot=g==="combobox"&&typeof re=="function"&&re()||null,wn=typeof ce=="function"&&ce(),Pt=(0,$e.x1)(hn,wn==null||(a=wn.props)===null||a===void 0?void 0:a.ref),Tt=(0,we.Z)(void 0,{defaultValue:ge,value:P}),ot=(0,m.Z)(Tt,2),pt=ot[0],St=ot[1],Ne=pt,Nt=!X&&p;(T||Nt&&Ne&&g==="combobox")&&(Ne=!1);var zn=Nt?!1:Ne,w=t.useCallback(function(W){var V=W!==void 0?W:!Ne;T||(St(V),Ne!==V&&(G==null||G(V)))},[T,Ne,St,G]),K=t.useMemo(function(){return(Q||[]).some(function(W){return[` +`,`\r +`].includes(W)})},[Q]),D=function(V,je,Je){var xe=!0,rn=V;ae==null||ae(null);var pn=Je?null:ee(V,Q);return g!=="combobox"&&pn&&(rn="",Ie==null||Ie(pn),w(!1),xe=!1),ye&&sn!==rn&&ye(rn,{source:je?"typing":"effect"}),xe},$=function(V){!V||!V.trim()||ye(V,{source:"submit"})};t.useEffect(function(){!Ne&&!ke&&g!=="combobox"&&D("",!1,!1)},[Ne]),t.useEffect(function(){pt&&T&&St(!1),T&&$n(!1)},[T]);var he=q(),be=(0,m.Z)(he,2),Nn=be[0],Mn=be[1],rt=function(V){var je=Nn(),Je=V.which;if(Je===Z.Z.ENTER&&(g!=="combobox"&&V.preventDefault(),Ne||w(!0)),Mn(!!sn),Je===Z.Z.BACKSPACE&&!je&&ke&&!sn&&v.length){for(var xe=(0,_.Z)(v),rn=null,pn=xe.length-1;pn>=0;pn-=1){var bt=xe[pn];if(!bt.disabled){xe.splice(pn,1),rn=bt;break}}rn&&C(xe,{type:"remove",values:[rn]})}for(var Gn=arguments.length,dt=new Array(Gn>1?Gn-1:0),Yn=1;Yn1?je-1:0),xe=1;xe1?pn-1:0),Gn=1;Gn1&&arguments[1]!==void 0?arguments[1]:!1;return(0,Jn.Z)(n).map(function(a,r){if(!t.isValidElement(a)||!a.type)return null;var s=a,l=s.type.isSelectOptGroup,h=s.key,S=s.props,b=S.children,I=(0,f.Z)(S,Zn);return e||!l?vn(a):(0,N.Z)((0,N.Z)({key:"__RC_SELECT_GRP__".concat(h===null?r:h,"__"),label:h},I),{},{options:xn(b)})}).filter(function(a){return a})}function mt(n,e,a,r,s){return t.useMemo(function(){var l=n,h=!n;h&&(l=xn(e));var S=new Map,b=new Map,I=function(C,p,H){H&&typeof H=="string"&&C.set(p[H],p)};function O(v){for(var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,p=0;p1&&arguments[1]!==void 0?arguments[1]:1,fe=te.length,le=0;le1&&arguments[1]!==void 0?arguments[1]:!1;ne(R);var fe={source:Y?"keyboard":"mouse"},le=te[R];if(!le){X(null,-1,fe);return}X(le.value,R,fe)};(0,t.useEffect)(function(){J(d!==!1?pe(0):-1)},[te.length,I]);var oe=t.useCallback(function(j){return z.has(j)&&b!=="combobox"},[b,(0,_.Z)(z).toString(),z.size]);(0,t.useEffect)(function(){var j=setTimeout(function(){if(!S&&h&&z.size===1){var Y=Array.from(z)[0],fe=te.findIndex(function(le){var ue=le.data;return ue.value===Y});fe!==-1&&(J(fe),De(fe))}});if(h){var R;(R=ae.current)===null||R===void 0||R.scrollTo(void 0)}return function(){return clearTimeout(j)}},[h,I]);var _e=function(R){R!==void 0&&g(R,{selected:!z.has(R)}),S||O(!1)};if(t.useImperativeHandle(a,function(){return{onKeyDown:function(R){var Y=R.which,fe=R.ctrlKey;switch(Y){case Z.Z.N:case Z.Z.P:case Z.Z.UP:case Z.Z.DOWN:{var le=0;if(Y===Z.Z.UP?le=-1:Y===Z.Z.DOWN?le=1:qn()&&fe&&(Y===Z.Z.N?le=1:Y===Z.Z.P&&(le=-1)),le!==0){var ue=pe(Q+le,le);De(ue),J(ue,!0)}break}case Z.Z.ENTER:{var Pe=te[Q];Pe&&!Pe.data.disabled?_e(Pe.value):_e(void 0),h&&R.preventDefault();break}case Z.Z.ESC:O(!1),h&&R.stopPropagation()}},onKeyUp:function(){},scrollTo:function(R){De(R)}}}),te.length===0)return t.createElement("div",{role:"listbox",id:"".concat(l,"_list"),className:"".concat(G,"-empty"),onMouseDown:Ce},v);var Ue=Object.keys(re).map(function(j){return re[j]}),kn=function(R){return R.label},Ze=function(R){var Y=te[R];if(!Y)return null;var fe=Y.data||{},le=fe.value,ue=Y.group,Pe=(0,ze.Z)(fe,!0),We=kn(Y);return Y?t.createElement("div",(0,se.Z)({"aria-label":typeof We=="string"&&!ue?We:null},Pe,{key:R,role:ue?"presentation":"option",id:"".concat(l,"_list_").concat(R),"aria-selected":oe(le)}),le):null};return t.createElement(t.Fragment,null,t.createElement("div",{role:"listbox",id:"".concat(l,"_list"),style:{height:0,width:0,overflow:"hidden"}},Ze(Q-1),Ze(Q),Ze(Q+1)),t.createElement(Mt.Z,{itemKey:"key",ref:ae,data:te,height:P,itemHeight:ge,fullHeight:!1,onMouseDown:Ce,onScroll:C,virtual:ce},function(j,R){var Y,fe=j.group,le=j.groupOption,ue=j.data,Pe=j.label,We=j.value,mn=ue.key;if(fe){var Se,Fe=(Se=ue.title)!==null&&Se!==void 0?Se:Rt(Pe)?Pe.toString():void 0;return t.createElement("div",{className:Re()(G,"".concat(G,"-group")),title:Fe},Pe!==void 0?Pe:mn)}var Te=ue.disabled,Xe=ue.title,tn=ue.children,un=ue.style,ke=ue.className,de=(0,f.Z)(ue,It),Pn=(0,nn.Z)(de,Ue),on=oe(We),Qe="".concat(G,"-option"),Bn=Re()(G,Qe,ke,(Y={},(0,U.Z)(Y,"".concat(Qe,"-grouped"),le),(0,U.Z)(Y,"".concat(Qe,"-active"),Q===R&&!Te),(0,U.Z)(Y,"".concat(Qe,"-disabled"),Te),(0,U.Z)(Y,"".concat(Qe,"-selected"),on),Y)),tt=kn(j),yn=!T||typeof T=="function"||on,hn=typeof tt=="number"?tt:tt||We,Tn=Rt(hn)?hn.toString():void 0;return Xe!==void 0&&(Tn=Xe),t.createElement("div",(0,se.Z)({},(0,ze.Z)(Pn),{"aria-selected":on,className:Bn,title:Tn,onMouseMove:function(){Q===R||Te||J(R)},onClick:function(){Te||_e(We)},style:un}),t.createElement("div",{className:"".concat(Qe,"-content")},hn),t.isValidElement(T)||on,yn&&t.createElement(an,{className:"".concat(G,"-option-state"),customizeIcon:T,customizeIconProps:{isSelected:on}},on?"\u2713":null))}))},Dt=t.forwardRef(Wt);Dt.displayName="OptionList";var kt=Dt;function Yt(n){var e=n.mode,a=n.options,r=n.children,s=n.backfill,l=n.allowClear,h=n.placeholder,S=n.getInputElement,b=n.showSearch,I=n.onSearch,O=n.defaultOpen,v=n.autoFocus,C=n.labelInValue,p=n.value,H=n.inputValue,X=n.optionLabelProp,d=isMultiple(e),g=b!==void 0?b:d||e==="combobox",T=a||convertChildrenToData(r);if(warning(e!=="tags"||T.every(function(P){return!P.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),e==="tags"||e==="combobox"){var z=T.some(function(P){return P.options?P.options.some(function(ge){return typeof("value"in ge?ge.value:ge.key)=="number"}):typeof("value"in P?P.value:P.key)=="number"});warning(!z,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(e!=="combobox"||!X,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(e==="combobox"||!s,"`backfill` only works with `combobox` mode."),warning(e==="combobox"||!S,"`getInputElement` only work with `combobox` mode."),noteOnce(e!=="combobox"||!S||!l||!h,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),I&&!g&&e!=="combobox"&&e!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!O||v,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),p!=null){var re=toArray(p);warning(!C||re.every(function(P){return _typeof(P)==="object"&&("key"in P||"value"in P)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!d||Array.isArray(p),"`value` should be array when `mode` is `multiple` or `tags`")}if(r){var ce=null;toNodeArray(r).some(function(P){if(!React.isValidElement(P)||!P.type)return!1;var ge=P,G=ge.type;if(G.isSelectOption)return!1;if(G.isSelectOptGroup){var te=toNodeArray(P.props.children).every(function(ae){return!React.isValidElement(ae)||!P.type||ae.type.isSelectOption?!0:(ce=ae.type,!1)});return!te}return ce=G,!0}),ce&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(ce.displayName||ce.name||ce,"`.")),warning(H===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function ht(n,e){if(n){var a=function r(s){for(var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,h=0;h2&&arguments[2]!==void 0?arguments[2]:{},$=D.source,he=$===void 0?"keyboard":$;wn(K),h&&r==="combobox"&&w!==null&&he==="keyboard"&&$n(String(w))},[h,r]),ot=function(K,D,$){var he=function(){var In,Ln=Pn(K);return[Q?{label:Ln==null?void 0:Ln[Ze.label],value:K,key:(In=Ln==null?void 0:Ln.key)!==null&&In!==void 0?In:K}:K,F(Ln)]};if(D&&p){var be=he(),Nn=(0,m.Z)(be,2),Mn=Nn[0],rt=Nn[1];p(Mn,rt)}else if(!D&&H&&$!=="clear"){var Be=he(),jn=(0,m.Z)(Be,2),ft=jn[0],jt=jn[1];H(ft,jt)}},pt=On(function(w,K){var D,$=_e?K.selected:!0;$?D=_e?[].concat((0,_.Z)(de),[w]):[w]:D=de.filter(function(he){return he.value!==w}),cn(D),ot(w,$),r==="combobox"?$n(""):(!Oe||C)&&(fe(""),$n(""))}),St=function(K,D){cn(K);var $=D.type,he=D.values;($==="remove"||$==="clear")&&he.forEach(function(be){ot(be.value,!1,$)})},Ne=function(K,D){if(fe(K),$n(null),D.source==="submit"){var $=(K||"").trim();if($){var he=Array.from(new Set([].concat((0,_.Z)(Qe),[$])));cn(he),ot($,!0),fe("")}return}D.source!=="blur"&&(r==="combobox"&&cn(K),O==null||O(K))},Nt=function(K){var D=K;r!=="tags"&&(D=K.map(function(he){var be=Pe.get(he);return be==null?void 0:be.value}).filter(function(he){return he!==void 0}));var $=Array.from(new Set([].concat((0,_.Z)(Qe),(0,_.Z)(D))));cn($),$.forEach(function(he){ot(he,!0)})},zn=t.useMemo(function(){var w=te!==!1&&d!==!1;return(0,N.Z)((0,N.Z)({},le),{},{flattenOptions:gn,onActiveValue:Tt,defaultActiveFirstOption:Pt,onSelect:pt,menuItemSelectedIcon:G,rawValues:Qe,fieldNames:Ze,virtual:w,listHeight:Ce,listItemHeight:pe,childrenAsData:Ue})},[le,gn,Tt,Pt,pt,G,Qe,Ze,te,d,Ce,pe,Ue]);return t.createElement(et.Provider,{value:zn},t.createElement(dn,(0,se.Z)({},J,{id:oe,prefixCls:l,ref:e,omitDomProps:xt,mode:r,displayValues:on,onDisplayValuesChange:St,searchValue:Y,onSearch:Ne,autoClearSearchValue:C,onSearchSplit:Nt,dropdownMatchSelectWidth:d,OptionList:kt,emptyOptions:!gn.length,activeValue:gt,activeDescendantId:"".concat(oe,"_list_").concat(Ot)})))}),nt=it;nt.Option=Ae,nt.OptGroup=Wn;var ut=nt,ct=ut},64217:function(_n,Ge,i){"use strict";i.d(Ge,{Z:function(){return we}});var se=i(28991),_=`accept acceptCharset accessKey action allowFullScreen allowTransparency + alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge + charSet checked classID className colSpan cols content contentEditable contextMenu + controls coords crossOrigin data dateTime default defer dir disabled download draggable + encType form formAction formEncType formMethod formNoValidate formTarget frameBorder + headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity + is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media + mediaGroup method min minLength multiple muted name noValidate nonce open + optimum pattern placeholder poster preload radioGroup readOnly rel required + reversed role rowSpan rows sandbox scope scoped scrolling seamless selected + shape size sizes span spellCheck src srcDoc srcLang srcSet start step style + summary tabIndex target title type useMap value width wmode wrap`,U=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown + onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick + onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown + onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel + onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough + onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata + onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,N="".concat(_," ").concat(U).split(/[\s\n]+/),m="aria-",f="data-";function Ee(ve,t){return ve.indexOf(t)===0}function we(ve){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Le;t===!1?Le={aria:!0,data:!0,attr:!0}:t===!0?Le={aria:!0}:Le=(0,se.Z)({},t);var Re={};return Object.keys(ve).forEach(function(He){(Le.aria&&(He==="role"||Ee(He,m))||Le.data&&Ee(He,f)||Le.attr&&N.includes(He))&&(Re[He]=ve[He])}),Re}},7606:function(_n,Ge,i){"use strict";i.d(Ge,{Z:function(){return yt}});var se=i(22122),_=i(28991),U=i(96156),N=i(28481),m=i(81253),f=i(67294),Ee=i(94184),we=i.n(Ee),ve=i(48717),t=f.forwardRef(function(u,k){var M=u.height,o=u.offset,A=u.children,y=u.prefixCls,L=u.onInnerResize,c=u.innerProps,E={},x={display:"flex",flexDirection:"column"};return o!==void 0&&(E={height:M,position:"relative",overflow:"hidden"},x=(0,_.Z)((0,_.Z)({},x),{},{transform:"translateY(".concat(o,"px)"),position:"absolute",left:0,right:0,top:0})),f.createElement("div",{style:E},f.createElement(ve.Z,{onResize:function(F){var ee=F.offsetHeight;ee&&L&&L()}},f.createElement("div",(0,se.Z)({style:x,className:we()((0,U.Z)({},"".concat(y,"-holder-inner"),y)),ref:k},c),A)))});t.displayName="Filler";var Le=t,Re=i(6610),He=i(5991),Vn=i(10379),Z=i(44144),$e=i(75164),Ke=20;function Me(u){return"touches"in u?u.touches[0].pageY:u.pageY}var Ye=function(u){(0,Vn.Z)(M,u);var k=(0,Z.Z)(M);function M(){var o;(0,Re.Z)(this,M);for(var A=arguments.length,y=new Array(A),L=0;LE},o}return(0,He.Z)(M,[{key:"componentDidMount",value:function(){this.scrollbarRef.current.addEventListener("touchstart",this.onScrollbarTouchStart),this.thumbRef.current.addEventListener("touchstart",this.onMouseDown)}},{key:"componentDidUpdate",value:function(A){A.scrollTop!==this.props.scrollTop&&this.delayHidden()}},{key:"componentWillUnmount",value:function(){this.removeEvents(),clearTimeout(this.visibleTimeout)}},{key:"render",value:function(){var A=this.state,y=A.dragging,L=A.visible,c=this.props,E=c.prefixCls,x=c.direction,B=this.getSpinHeight(),F=this.getTop(),ee=this.showScroll(),ie=ee&&L,me=x==="rtl"?{left:0}:{right:0};return f.createElement("div",{ref:this.scrollbarRef,className:we()("".concat(E,"-scrollbar"),(0,U.Z)({},"".concat(E,"-scrollbar-show"),ee)),style:(0,_.Z)((0,_.Z)({width:8,top:0,bottom:0},me),{},{position:"absolute",display:ie?null:"none"}),onMouseDown:this.onContainerMouseDown,onMouseMove:this.delayHidden},f.createElement("div",{ref:this.thumbRef,className:we()("".concat(E,"-scrollbar-thumb"),(0,U.Z)({},"".concat(E,"-scrollbar-thumb-moving"),y)),style:{width:"100%",height:B,top:F,left:0,position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"},onMouseDown:this.onMouseDown}))}}]),M}(f.Component);function q(u){var k=u.children,M=u.setRef,o=f.useCallback(function(A){M(A)},[]);return f.cloneElement(k,{ref:o})}function Ve(u,k,M,o,A,y){var L=y.getKey;return u.slice(k,M+1).map(function(c,E){var x=k+E,B=A(c,x,{}),F=L(c);return f.createElement(q,{key:F,setRef:function(ie){return o(c,ie)}},B)})}var ze=i(34203),Rn=function(){function u(){(0,Re.Z)(this,u),this.maps=void 0,this.maps=Object.create(null)}return(0,He.Z)(u,[{key:"set",value:function(M,o){this.maps[M]=o}},{key:"get",value:function(M){return this.maps[M]}}]),u}(),fn=Rn;function an(u,k,M){var o=f.useState(0),A=(0,N.Z)(o,2),y=A[0],L=A[1],c=(0,f.useRef)(new Map),E=(0,f.useRef)(new fn),x=(0,f.useRef)();function B(){$e.Z.cancel(x.current)}function F(){B(),x.current=(0,$e.Z)(function(){c.current.forEach(function(ie,me){if(ie&&ie.offsetParent){var Oe=(0,ze.Z)(ie),qe=Oe.offsetHeight;E.current.get(me)!==qe&&E.current.set(me,Oe.offsetHeight)}}),L(function(ie){return ie+1})})}function ee(ie,me){var Oe=u(ie),qe=c.current.get(Oe);me?(c.current.set(Oe,me),F()):c.current.delete(Oe),!qe!=!me&&(me?k==null||k(ie):M==null||M(ie))}return(0,f.useEffect)(function(){return B},[]),[ee,F,E.current,y]}var An=i(90484);function ln(u,k,M,o,A,y,L,c){var E=f.useRef();return function(x){if(x==null){c();return}if($e.Z.cancel(E.current),typeof x=="number")L(x);else if(x&&(0,An.Z)(x)==="object"){var B,F=x.align;"index"in x?B=x.index:B=k.findIndex(function(Oe){return A(Oe)===x.key});var ee=x.offset,ie=ee===void 0?0:ee,me=function Oe(qe,dn){if(!(qe<0||!u.current)){var En=u.current.clientHeight,Kn=!1,Qn=dn;if(En){for(var en=dn||F,Jn=0,Un=0,Zn=0,vn=Math.min(k.length,B),xn=0;xn<=vn;xn+=1){var mt=A(k[xn]);Un=Jn;var On=M.get(mt);Zn=Un+(On===void 0?o:On),Jn=Zn,xn===B&&On===void 0&&(Kn=!0)}var Cn=null;switch(en){case"top":Cn=Un-ie;break;case"bottom":Cn=Zn-En+ie;break;default:{var Wn=u.current.scrollTop,lt=Wn+En;Unlt&&(Qn="bottom")}}Cn!==null&&Cn!==u.current.scrollTop&&L(Cn)}E.current=(0,$e.Z)(function(){Kn&&y(),Oe(qe-1,Qn)},2)}};me(3)}}}function Xn(u,k,M,o){var A=M-u,y=k-M,L=Math.min(A,y)*2;if(o<=L){var c=Math.floor(o/2);return o%2?M+c+1:M-c}return A>y?M-(o-y):M+(o-A)}function Fn(u,k,M){var o=u.length,A=k.length,y,L;if(o===0&&A===0)return null;o1&&arguments[1]!==void 0?arguments[1]:!1,E=L<0&&y.current.top||L>0&&y.current.bottom;return c&&E?(clearTimeout(o.current),M.current=!1):(!E||M.current)&&A(),!M.current&&E}};function at(u,k,M,o){var A=(0,f.useRef)(0),y=(0,f.useRef)(null),L=(0,f.useRef)(null),c=(0,f.useRef)(!1),E=bn(k,M);function x(F){if(!!u){$e.Z.cancel(y.current);var ee=F.deltaY;A.current+=ee,L.current=ee,!E(ee)&&(Sn||F.preventDefault(),y.current=(0,$e.Z)(function(){var ie=c.current?10:1;o(A.current*ie),A.current=0}))}}function B(F){!u||(c.current=F.detail===L.current)}return[x,B]}var Dn=i(8410),Lt=14/15;function Et(u,k,M){var o=(0,f.useRef)(!1),A=(0,f.useRef)(0),y=(0,f.useRef)(null),L=(0,f.useRef)(null),c,E=function(ee){if(o.current){var ie=Math.ceil(ee.touches[0].pageY),me=A.current-ie;A.current=ie,M(me)&&ee.preventDefault(),clearInterval(L.current),L.current=setInterval(function(){me*=Lt,(!M(me,!0)||Math.abs(me)<=.1)&&clearInterval(L.current)},16)}},x=function(){o.current=!1,c()},B=function(ee){c(),ee.touches.length===1&&!o.current&&(o.current=!0,A.current=Math.ceil(ee.touches[0].pageY),y.current=ee.target,y.current.addEventListener("touchmove",E),y.current.addEventListener("touchend",x))};c=function(){y.current&&(y.current.removeEventListener("touchmove",E),y.current.removeEventListener("touchend",x))},(0,Dn.Z)(function(){return u&&k.current.addEventListener("touchstart",B),function(){var F;(F=k.current)===null||F===void 0||F.removeEventListener("touchstart",B),c(),clearInterval(L.current)}},[u])}var Vt=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","component","onScroll","onVisibleChange","innerProps"],At=[],Ft={overflowY:"auto",overflowAnchor:"none"};function Ht(u,k){var M=u.prefixCls,o=M===void 0?"rc-virtual-list":M,A=u.className,y=u.height,L=u.itemHeight,c=u.fullHeight,E=c===void 0?!0:c,x=u.style,B=u.data,F=u.children,ee=u.itemKey,ie=u.virtual,me=u.direction,Oe=u.component,qe=Oe===void 0?"div":Oe,dn=u.onScroll,En=u.onVisibleChange,Kn=u.innerProps,Qn=(0,m.Z)(u,Vt),en=!!(ie!==!1&&y&&L),Jn=en&&B&&L*B.length>y,Un=(0,f.useState)(0),Zn=(0,N.Z)(Un,2),vn=Zn[0],xn=Zn[1],mt=(0,f.useState)(!1),On=(0,N.Z)(mt,2),Cn=On[0],Wn=On[1],lt=we()(o,(0,U.Z)({},"".concat(o,"-rtl"),me==="rtl"),A),Ae=B||At,nn=(0,f.useRef)(),wt=(0,f.useRef)(),Mt=(0,f.useRef)(),qn=f.useCallback(function(d){return typeof ee=="function"?ee(d):d==null?void 0:d[ee]},[ee]),Ut={getKey:qn};function et(d){xn(function(g){var T;typeof d=="function"?T=d(g):T=d;var z=r(T);return nn.current.scrollTop=z,z})}var It=(0,f.useRef)({start:0,end:Ae.length}),Rt=(0,f.useRef)(),Wt=vt(Ae,qn),Dt=(0,N.Z)(Wt,1),kt=Dt[0];Rt.current=kt;var Yt=an(qn,null,null),ht=(0,N.Z)(Yt,4),_t=ht[0],Zt=ht[1],xt=ht[2],Bt=ht[3],it=f.useMemo(function(){if(!en)return{scrollHeight:void 0,start:0,end:Ae.length-1,offset:void 0};if(!Jn){var d;return{scrollHeight:((d=wt.current)===null||d===void 0?void 0:d.offsetHeight)||0,start:0,end:Ae.length-1,offset:void 0}}for(var g=0,T,z,re,ce=Ae.length,P=0;P=vn&&T===void 0&&(T=P,z=g),ae>vn+y&&re===void 0&&(re=P),g=ae}return T===void 0&&(T=0,z=0,re=Math.ceil(y/L)),re===void 0&&(re=Ae.length-1),re=Math.min(re+1,Ae.length),{scrollHeight:g,start:T,end:re,offset:z}},[Jn,en,vn,Ae,Bt,y]),nt=it.scrollHeight,ut=it.start,ct=it.end,n=it.offset;It.current.start=ut,It.current.end=ct;var e=nt-y,a=(0,f.useRef)(e);a.current=e;function r(d){var g=d;return Number.isNaN(a.current)||(g=Math.min(g,a.current)),g=Math.max(g,0),g}var s=vn<=0,l=vn>=e,h=bn(s,l);function S(d){var g=d;et(g)}function b(d){var g=d.currentTarget.scrollTop;g!==vn&&et(g),dn==null||dn(d)}var I=at(en,s,l,function(d){et(function(g){var T=g+d;return T})}),O=(0,N.Z)(I,2),v=O[0],C=O[1];Et(en,nn,function(d,g){return h(d,g)?!1:(v({preventDefault:function(){},deltaY:d}),!0)}),(0,Dn.Z)(function(){function d(g){en&&g.preventDefault()}return nn.current.addEventListener("wheel",v),nn.current.addEventListener("DOMMouseScroll",C),nn.current.addEventListener("MozMousePixelScroll",d),function(){nn.current&&(nn.current.removeEventListener("wheel",v),nn.current.removeEventListener("DOMMouseScroll",C),nn.current.removeEventListener("MozMousePixelScroll",d))}},[en]);var p=ln(nn,Ae,xt,L,qn,Zt,et,function(){var d;(d=Mt.current)===null||d===void 0||d.delayHidden()});f.useImperativeHandle(k,function(){return{scrollTo:p}}),(0,Dn.Z)(function(){if(En){var d=Ae.slice(ut,ct+1);En(d,Ae)}},[ut,ct,Ae]);var H=Ve(Ae,ut,ct,_t,F,Ut),X=null;return y&&(X=(0,_.Z)((0,U.Z)({},E?"height":"maxHeight",y),Ft),en&&(X.overflowY="hidden",Cn&&(X.pointerEvents="none"))),f.createElement("div",(0,se.Z)({style:(0,_.Z)((0,_.Z)({},x),{},{position:"relative"}),className:lt},Qn),f.createElement(qe,{className:"".concat(o,"-holder"),style:X,ref:nn,onScroll:b},f.createElement(Le,{prefixCls:o,height:nt,offset:n,onInnerResize:Zt,ref:wt,innerProps:Kn},H)),en&&f.createElement(Ye,{ref:Mt,prefixCls:o,scrollTop:vn,height:y,scrollHeight:nt,count:Ae.length,direction:me,onScroll:S,onStartMove:function(){Wn(!0)},onStopMove:function(){Wn(!1)}}))}var Ct=f.forwardRef(Ht);Ct.displayName="List";var Kt=Ct,yt=Kt}}]); diff --git a/dist/2342.f93c94c8.async.js b/dist/2342.f93c94c8.async.js new file mode 100644 index 0000000..fe9def7 --- /dev/null +++ b/dist/2342.f93c94c8.async.js @@ -0,0 +1,676 @@ +(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[2342],{89913:function(hr,X,W){"use strict";W.d(X,{Z:function(){return Tp}});var U={};W.r(U),W.d(U,{GADDI:function(){return To},Stack:function(){return no},breadthFirstSearch:function(){return _t},connectedComponent:function(){return ht},cosineSimilarity:function(){return Ce},default:function(){return rs},depthFirstSearch:function(){return Nt},detectAllCycles:function(){return In},detectAllDirectedCycle:function(){return nn},detectAllUndirectedCycle:function(){return br},detectCycle:function(){return bn},detectDirectedCycle:function(){return Cs},dijkstra:function(){return kn},findAllPath:function(){return Ia},findShortestPath:function(){return ri},floydWarshall:function(){return Aa},getAdjMatrix:function(){return ce},getDegree:function(){return dt},getInDegree:function(){return Et},getNeighbors:function(){return be},getOutDegree:function(){return it},iLouvain:function(){return se},kCore:function(){return R},kMeans:function(){return H},labelPropagation:function(){return Oa},louvain:function(){return Gt},minimumSpanningTree:function(){return ir},nodesCosineSimilarity:function(){return Fe},pageRank:function(){return Jr}});var Y={};W.r(Y),W.d(Y,{Line:function(){return oo},applyMatrix:function(){return Io},compare:function(){return go},distance:function(){return ns},floydWarshall:function(){return Qi},fractionToLine:function(){return gs},getAdjMatrix:function(){return Uo},getBBoxBoundLine:function(){return Is},getCircleCenterByPoints:function(){return Ei},getCircleIntersectByPoint:function(){return po},getDegree:function(){return io},getEllipseIntersectByPoint:function(){return Dn},getLineIntersect:function(){return cs},getPointsCenter:function(){return vi},getRectIntersectByPoint:function(){return $o},intersectBBox:function(){return hs},invertMatrix:function(){return ls},isPointInPolygon:function(){return Xo},isPointsOverlap:function(){return mo},isPolygonsIntersect:function(){return Ua},itemIntersectByLine:function(){return as},lerp:function(){return si},lerpArray:function(){return Fi},move:function(){return qi},pointLineDistance:function(){return Da},pointLineSquareDist:function(){return Ji},pointRectSquareDist:function(){return uo},rotate:function(){return vs},scale:function(){return ao},scaleMatrix:function(){return ds},squareDist:function(){return so},translate:function(){return Wo}});var B={};W.r(B),W.d(B,{cloneBesidesImg:function(){return jo},getAnimateCfgWithCallback:function(){return Jo},getBBox:function(){return eu},getComboBBox:function(){return ys},getLabelPosition:function(){return tu},getLetterWidth:function(){return ru},getLoopCfgs:function(){return bu},getTextSize:function(){return Do},plainCombosToTrees:function(){return Os},reconstructTree:function(){return Ws},shouldRefreshEdge:function(){return Xs},traverseTree:function(){return Gi},traverseTreeUp:function(){return Lo},truncateLabelByLength:function(){return Us}});var D={};W.r(D),W.d(D,{calculationItemsBBox:function(){return Vu},cloneEvent:function(){return xo},formatPadding:function(){return os},isNaN:function(){return Yo},isViewportChanged:function(){return Xu},processParallelEdges:function(){return au},uniqueId:function(){return Vs}});var P={};W.r(P),W.d(P,{getClosedSpline:function(){return Iu},getControlPoint:function(){return Ls},getSpline:function(){return hf},getStarPath:function(){return wl},paddedHull:function(){return yf},pathToPoints:function(){return Qu},pointsToPolygon:function(){return uu},roundedHull:function(){return pf}});var N={};W.r(N),W.d(N,{defaultSubjectColors:function(){return Ds}});var y={};W.r(y),W.d(y,{isForce:function(){return Pu}});var E={};W.r(E),W.d(E,{getColorSetsBySubjectColors:function(){return il},getColorsWithSubjectColor:function(){return vu},mixColor:function(){return zi}});var g={};W.r(g),W.d(g,{arrayToTextureData:function(){return Fc},attributesToTextureData:function(){return cl},buildTextureData:function(){return fl},buildTextureDataWithOneEdgeAttr:function(){return of},buildTextureDataWithTwoEdgeAttr:function(){return gu},proccessToFunc:function(){return _o},radialLayout:function(){return nc}});var p={};W.r(p),W.d(p,{gpuDetector:function(){return Gc}});var h={};W.r(h),W.d(h,{getBrowserName:function(){return Po}});var x=W(67294),m=W(24561),b=function(s){var t=s.loadingTemplate,e=function(){return t||x.createElement(m.ZP,{viewBox:"0 0 400 180",width:200,height:90,speed:1},x.createElement("rect",{x:"20",y:"5",rx:"0",ry:"0",width:"1",height:"170"}),x.createElement("rect",{x:"20",y:"175",rx:"0",ry:"0",width:"360",height:"1"}),x.createElement("rect",{x:"40",y:"75",rx:"0",ry:"0",width:"35",height:"100"}),x.createElement("rect",{x:"80",y:"125",rx:"0",ry:"0",width:"35",height:"50"}),x.createElement("rect",{x:"120",y:"105",rx:"0",ry:"0",width:"35",height:"70"}),x.createElement("rect",{x:"160",y:"35",rx:"0",ry:"0",width:"35",height:"140"}),x.createElement("rect",{x:"200",y:"55",rx:"0",ry:"0",width:"35",height:"120"}),x.createElement("rect",{x:"240",y:"15",rx:"0",ry:"0",width:"35",height:"160"}),x.createElement("rect",{x:"280",y:"135",rx:"0",ry:"0",width:"35",height:"40"}),x.createElement("rect",{x:"320",y:"85",rx:"0",ry:"0",width:"35",height:"90"}))};return x.createElement("div",{style:{position:"absolute",width:"100%",height:"100%",display:"flex",alignItems:"center",justifyContent:"center",left:0,top:0,zIndex:99,backgroundColor:"#fff"}},e())},A=function(){var s=function(t,e){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(r[a]=n[a])},s(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");s(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),k=function(s){A(t,s);function t(){var e=s!==null&&s.apply(this,arguments)||this;return e.state={hasError:!1},e.renderError=function(r){var n=e.props.errorTemplate;switch(r){default:return typeof n=="function"?n(r):n||x.createElement("h5",null,"\u7EC4\u4EF6\u51FA\u9519\u4E86\uFF0C\u8BF7\u6838\u67E5\u540E\u91CD\u8BD5\uFF1A ",r.message)}},e}return t.getDerivedStateFromError=function(e){return{hasError:!0,error:e}},t.getDerivedStateFromProps=function(e,r){return r.children!==e.children?{children:e.children,hasError:!1,error:void 0}:null},t.prototype.render=function(){return this.state.hasError?this.renderError(this.state.error):x.createElement(x.Fragment,null,this.props.children)},t}(x.Component),G=k,T=W(65353),M=W(49242),V={getDefaultCfg:function(){return{}},getEvents:function(){return{}},updateCfg:function(t){return Object.assign(this,t),!0},shouldBegin:function(){return!0},shouldUpdate:function(){return!0},shouldEnd:function(){return!0},bind:function(t){var e=this,r=this.events;this.graph=t,(this.type==="drag-canvas"||this.type==="brush-select"||this.type==="lasso-select")&&t.get("canvas").set("draggable",!0),(0,M.each)(r,function(n,a){t.on(a,n)}),document.addEventListener("visibilitychange",function(){e.keydown=!1})},unbind:function(t){var e=this.events,r=t.get("canvas").get("draggable");(this.type==="drag-canvas"||this.type==="brush-select"||this.type==="lasso-select")&&t.get("canvas").set("draggable",!1),(0,M.each)(e,function(n,a){t.off(a,n)}),t.get("canvas").set("draggable",r)},get:function(t){return this[t]},set:function(t,e){return this[t]=e,this}},j=function(){function s(){}return s.registerBehavior=function(t,e){if(!e)throw new Error("please specify handler for this behavior: ".concat(t));var r=(0,M.clone)(V);Object.assign(r,e);var n=function(i){var o=this;Object.assign(this,this.getDefaultCfg(),i);var u=this.getEvents();this.events=null;var f={};u&&((0,M.each)(u,function(c,v){f[v]=(0,M.wrapBehavior)(o,c)}),this.events=f)};n.prototype=r,s.types[t]=n},s.hasBehavior=function(t){return!!s.types[t]},s.getBehavior=function(t){return s.types[t]},s.types={},s}(),$=j,q=$,te=W(90494),ee=W(31506),ie=function(t,e){var r=t.nodes,n=t.edges,a=[],i={};if(!r)throw new Error("invalid nodes data!");return r&&r.forEach(function(o,u){i[o.id]=u;var f=[];a.push(f)}),n&&n.forEach(function(o){var u=o.source,f=o.target,c=i[u],v=i[f];!c&&c!==0||!v&&v!==0||(a[c][v]=1,e||(a[v][c]=1))}),a},ce=ie,ge=function(t,e){return t===e},Le=function(){function s(t,e){e===void 0&&(e=null),this.value=t,this.next=e}return s.prototype.toString=function(t){return t?t(this.value):"".concat(this.value)},s}(),Oe=function(){function s(t){t===void 0&&(t=ge),this.head=null,this.tail=null,this.compare=t}return s.prototype.prepend=function(t){var e=new Le(t,this.head);return this.head=e,this.tail||(this.tail=e),this},s.prototype.append=function(t){var e=new Le(t);return this.head?(this.tail.next=e,this.tail=e,this):(this.head=e,this.tail=e,this)},s.prototype.delete=function(t){if(!this.head)return null;for(var e=null;this.head&&this.compare(this.head.value,t);)e=this.head,this.head=this.head.next;var r=this.head;if(r!==null)for(;r.next;)this.compare(r.next.value,t)?(e=r.next,r.next=r.next.next):r=r.next;return this.compare(this.tail.value,t)&&(this.tail=r),e},s.prototype.find=function(t){var e=t.value,r=e===void 0?void 0:e,n=t.callback,a=n===void 0?void 0:n;if(!this.head)return null;for(var i=this.head;i;){if(a&&a(i.value)||r!==void 0&&this.compare(i.value,r))return i;i=i.next}return null},s.prototype.deleteTail=function(){var t=this.tail;if(this.head===this.tail)return this.head=null,this.tail=null,t;for(var e=this.head;e.next;)e.next.next?e=e.next:e.next=null;return this.tail=e,t},s.prototype.deleteHead=function(){if(!this.head)return null;var t=this.head;return this.head.next?this.head=this.head.next:(this.head=null,this.tail=null),t},s.prototype.fromArray=function(t){var e=this;return t.forEach(function(r){return e.append(r)}),this},s.prototype.toArray=function(){for(var t=[],e=this.head;e;)t.push(e),e=e.next;return t},s.prototype.reverse=function(){for(var t=this.head,e=null,r=null;t;)r=t.next,t.next=e,e=t,t=r;this.tail=this.head,this.head=e},s.prototype.toString=function(t){return t===void 0&&(t=void 0),this.toArray().map(function(e){return e.toString(t)}).toString()},s}(),Re=Oe,de=function(){function s(){this.linkedList=new Re}return s.prototype.isEmpty=function(){return!this.linkedList.head},s.prototype.peek=function(){return this.linkedList.head?this.linkedList.head.value:null},s.prototype.enqueue=function(t){this.linkedList.append(t)},s.prototype.dequeue=function(){var t=this.linkedList.deleteHead();return t?t.value:null},s.prototype.toString=function(t){return this.linkedList.toString(t)},s}(),ve=de,be=function(t,e,r){e===void 0&&(e=[]);var n=e.filter(function(u){return u.source===t||u.target===t});if(r==="target"){var a=function(f){return f.source===t};return n.filter(a).map(function(u){return u.target})}if(r==="source"){var i=function(f){return f.target===t};return n.filter(i).map(function(u){return u.source})}var o=function(f){return f.source===t?f.target:f.source};return n.map(o)},Ae=function(t,e){return e.filter(function(r){return r.source===t})},Pe=function(t,e){return e.filter(function(r){return r.source===t||r.target===t})},Ve=function(t){t===void 0&&(t=0);var e="".concat(Math.random()).split(".")[1].substr(0,5),r="".concat(Math.random()).split(".")[1].substr(0,5);return"".concat(t,"-").concat(e).concat(r)};function Ue(s){s===void 0&&(s={});var t=s,e=function(){},r=function(){var n={};return function(a){var i=a.next,o=i;return n[o]?!1:(n[o]=!0,!0)}}();return t.allowTraversal=s.allowTraversal||r,t.enter=s.enter||e,t.leave=s.leave||e,t}var Ke=function(t,e,r,n){n===void 0&&(n=!0);var a=Ue(r),i=new ve,o=t.edges,u=o===void 0?[]:o;i.enqueue(e);for(var f="",c=function(){var I=i.dequeue();a.enter({current:I,previous:f}),be(I,u,n?"target":void 0).forEach(function(w){a.allowTraversal({previous:f,current:I,next:w})&&i.enqueue(w)}),a.leave({current:I,previous:f}),f=I};!i.isEmpty();)c()},_t=Ke,Ct=function(t){for(var e=t.nodes,r=e===void 0?[]:e,n=t.edges,a=n===void 0?[]:n,i=[],o={},u=[],f=function w(O){u.push(O),o[O.id]=!0;for(var z=be(O.id,a),Z=function(ue){var Ee=z[ue];if(!o[Ee]){var Ie=r.filter(function(Se){return Se.id===Ee});Ie.length>0&&w(Ie[0])}},J=0;J0;)I.push(u.pop());i.push(I)}}return i},He=function(t){for(var e=t.nodes,r=e===void 0?[]:e,n=t.edges,a=n===void 0?[]:n,i=[],o={},u={},f={},c=[],v=0,I=function Z(J){u[J.id]=v,f[J.id]=v,v+=1,i.push(J),o[J.id]=!0;for(var re=be(J.id,a,"target").filter(function(De){return r.map(function($e){return $e.id}).indexOf(De)>-1}),ue=function($e){var ft=re[$e];if(!u[ft]&&u[ft]!==0){var rt=r.filter(function(wt){return wt.id===ft});rt.length>0&&Z(rt[0]),f[J.id]=Math.min(f[J.id],f[ft])}else o[ft]&&(f[J.id]=Math.min(f[J.id],u[ft]))},Ee=0;Ee0;){var Se=i.pop();if(o[Se.id]=!1,Ie.push(Se),Se===J)break}Ie.length>0&&c.push(Ie)}},w=0,O=r;w0;)for(var Z=w.pop(),J=Z.id,re=be(J,t.edges),ue=function(Se){var De,$e=re[Se],ft=t.nodes.find(function(vr){return vr.id===$e});if($e===J)i.push((De={},De[$e]=Z,De));else if(!($e in z))O[$e]=Z,w.push(ft),z[$e]=new Set([Z]);else if(!z[J].has(ft)){for(var rt=!0,wt=[ft,Z],Ft=O[J];z[$e].size&&!z[$e].has(Ft)&&(wt.push(Ft),Ft!==O[Ft.id]);)Ft=O[Ft.id];if(wt.push(Ft),e&&r?(rt=!1,wt.findIndex(function(vr){return e.indexOf(vr.id)>-1})>-1&&(rt=!0)):e&&!r&&wt.findIndex(function(vr){return e.indexOf(vr.id)>-1})>-1&&(rt=!1),rt){for(var Er={},dr=1;dr0;){var dr=Er.pop();a.has(dr)&&(a.delete(dr),i[dr.id].forEach(function(vr){Er.push(vr)}),i[dr.id].clear())}},v=function wt(Ft,Er,dr){var vr=!1;if(e&&r===!1&&e.indexOf(Ft.id)>-1)return vr;n.push(Ft),a.add(Ft);for(var qt=dr[Ft.id],Fr=0;Fr-1});rn-1)?o.push((Er={},Er[Ur.id]=Ur,Er)):Gr[Ur.id].push(f[oa])}}return{component:_r,adjList:Gr,minIdx:vr}},ue=0;ue=ue}),Ie=He({nodes:Ee,edges:t.edges}).filter(function(wt){return wt.length>1});if(Ie.length===0)break;var Se=re(Ie),De=Se.minIdx,$e=Se.adjList,ft=Se.component;if(ft.length>1){ft.forEach(function(wt){i[wt.id]=new Set});var rt=u[De];if(e&&r&&e.indexOf(rt.id)===-1)return o;v(rt,rt,$e),ue=De+1}else break}return o},In=function(t,e,r,n){return n===void 0&&(n=!0),e?nn(t,r,n):br(t,r,n)},bn=mr,We=function(t,e,r){for(var n=Infinity,a,i=0;iv[Ie.id]+Ft?(v[wt]=v[Ie.id]+Ft,I[wt]=[Ie.id]):v[wt]===v[Ie.id]+Ft&&I[wt].push(Ie.id)})},z=0;z0&&c.length>0;){var w=c[c.length-1];if(w.length){var O=w.shift();O&&(u.push(O),f[O]=!0,I=n?be(O,o,"target"):be(O,o),c.push(I.filter(function(J){return!f[J]})))}else{var z=u.pop();f[z]=!1,c.pop();continue}if(u[u.length-1]===r){var Z=u.map(function(re){return re});v.push(Z);var z=u.pop();f[z]=!1,c.pop()}}return v},za=function(t,e){for(var r=ce(t,e),n=[],a=r.length,i=0;in[i][u]+n[u][o]&&(n[i][o]=n[i][u]+n[u][o]);return n},Aa=za,Qa=function(t,e,r,n){e===void 0&&(e=!1),r===void 0&&(r="weight"),n===void 0&&(n=1e3);var a=t.nodes,i=a===void 0?[]:a,o=t.edges,u=o===void 0?[]:o,f={},c={};i.forEach(function(Ee,Ie){var Se=Ve();Ee.clusterId=Se,f[Se]={id:Se,nodes:[Ee]},c[Ee.id]={node:Ee,idx:Ie}});var v=ce(t,e),I=[],w={};v.forEach(function(Ee,Ie){var Se=0,De=i[Ie].id;w[De]={},Ee.forEach(function($e,ft){if(!!$e){Se+=$e;var rt=i[ft].id;w[De][rt]=$e}}),I.push(Se)});for(var O=0,z=function(){var Ie=!1;if(i.forEach(function(Se){var De={};Object.keys(w[Se.id]).forEach(function(vr){var qt=w[Se.id][vr],Fr=c[vr].node,kr=Fr.clusterId;De[kr]||(De[kr]=0),De[kr]+=qt});var $e=-Infinity,ft=[];if(Object.keys(De).forEach(function(vr){$e=0&&ft.splice(rt,1),ft&&ft.length){Ie=!0;var wt=f[Se.clusterId],Ft=wt.nodes.indexOf(Se);wt.nodes.splice(Ft,1);var Er=Math.floor(Math.random()*ft.length),dr=f[ft[Er]];dr.nodes.push(Se),Se.clusterId=dr.id}}}),!Ie)return"break";O++};O0&&$e>ft&&$e-ftft&&(wt=v.map(function(or){return{node:or,clusterId:or.clusterId}}),Ft=(0,M.clone)(re),ft=$e),Er||rt>100)break;rt++,Object.keys(re).forEach(function(or){var _r=0;w.forEach(function(Gr){var Ur=Gr.source,rn=Gr.target,hn=ue[Ur].node.clusterId,oa=ue[rn].node.clusterId;(hn===or&&oa!==or||oa===or&&hn!==or)&&(_r=_r+(Gr[r]||1))}),re[or].sumTot=_r}),v.forEach(function(or,_r){var Gr=re[or.clusterId],Ur=0,rn,hn=Ie[_r]/(2*De),oa=0,Ln=Gr.nodes;Ln.forEach(function(Pi){var ki=ue[Pi.id].idx;oa+=Ee[_r][ki]||0});var Wa=oa-Gr.sumTot*hn,Ea=Ln.filter(function(Pi){return Pi.id!==or.id}),ba=[];Ea.forEach(function(Pi,ki){ba[ki]=O[Pi.originIndex]});var $a=pa(Ea,O)*f,Mi=Se[or.id];if(Object.keys(Mi).forEach(function(Pi){var ki=ue[Pi].node,Xi=ki.clusterId;if(Xi!==or.clusterId){var ro=re[Xi],ho=ro.nodes;if(!(!ho||!ho.length)){var Ta=0;ho.forEach(function(Pa){var Ra=ue[Pa.id].idx;Ta+=Ee[_r][Ra]||0});var Ja=Ta-ro.sumTot*hn,na=ho.concat([or]),ei=[];na.forEach(function(Pa,Ra){ei[Ra]=O[Pa.originIndex]});var oi=pa(na,O)*f,gn=Ja-Wa;a&&(gn=Ja+oi-(Wa+$a)),gn>Ur&&(Ur=gn,rn=ro)}}}),Ur>0){rn.nodes.push(or);var gi=or.clusterId;or.clusterId=rn.id;var Ho=Gr.nodes.indexOf(or);Gr.nodes.splice(Ho,1);var ii=0,Zo=0;w.forEach(function(Pi){var ki=Pi.source,Xi=Pi.target,ro=ue[ki].node.clusterId,ho=ue[Xi].node.clusterId;(ro===rn.id&&ho!==rn.id||ho===rn.id&&ro!==rn.id)&&(ii=ii+(Pi[r]||1)),(ro===gi&&ho!==gi||ho===gi&&ro!==gi)&&(Zo=Zo+(Pi[r]||1))}),rn.sumTot=ii,Gr.sumTot=Zo}})}var dr={},vr=0;Object.keys(Ft).forEach(function(or){var _r=Ft[or];if(!_r.nodes||!_r.nodes.length){delete Ft[or];return}var Gr=String(vr+1);Gr!==or&&(_r.id=Gr,_r.nodes=_r.nodes.map(function(Ur){return{id:Ur.id,clusterId:Gr}}),Ft[Gr]=_r,dr[or]=Gr,delete Ft[or],vr++)}),wt.forEach(function(or){var _r=or.node,Gr=or.clusterId;!_r||(_r.clusterId=Gr,_r.clusterId&&dr[_r.clusterId]&&(_r.clusterId=dr[_r.clusterId]))});var qt=[],Fr={};w.forEach(function(or){var _r=or.source,Gr=or.target,Ur=or[r]||1,rn=ue[_r].node.clusterId,hn=ue[Gr].node.clusterId;if(!(!rn||!hn)){var oa="".concat(rn,"---").concat(hn);if(Fr[oa])Fr[oa].weight+=Ur,Fr[oa].count++;else{var Ln={source:rn,target:hn,weight:Ur,count:1};Fr[oa]=Ln,qt.push(Ln)}}});var kr=[];return Object.keys(Ft).forEach(function(or){kr.push(Ft[or])}),{clusters:kr,clusterEdges:qt}},Gt=Q,ct=function(t,e,r,n,a,i,o,u){return e===void 0&&(e=!1),r===void 0&&(r="weight"),n===void 0&&(n=1e-4),a===void 0&&(a=void 0),i===void 0&&(i=[]),o===void 0&&(o=["id"]),u===void 0&&(u=1),Gt(t,e,r,n,!0,a,i,o,u)},se=ct,oe=function(t,e){var r;e===void 0&&(e=1);for(var n=(0,M.clone)(t),a=n.nodes,i=a===void 0?[]:a,o=n.edges,u=o===void 0?[]:o,f=function(){var I=dt({nodes:i,edges:u}),w=Object.keys(I);w.sort(function(Z,J){var re,ue;return((re=I[Z])===null||re===void 0?void 0:re.degree)-((ue=I[J])===null||ue===void 0?void 0:ue.degree)});var O=w[0];if(!i.length||((r=I[O])===null||r===void 0?void 0:r.degree)>=e)return"break";var z=i.findIndex(function(Z){return Z.id===O});i.splice(z,1),u=u.filter(function(Z){return!(Z.source===O||Z.target===O)})};;){var c=f();if(c==="break")break}return{nodes:i,edges:u}},R=oe,_=function(t,e,r){var n=[];switch(t){case ea.EuclideanDistance:n=e[r];break;default:n=[];break}return n},C=function(t,e,r,n,a,i){e===void 0&&(e=3),r===void 0&&(r=void 0),n===void 0&&(n=[]),a===void 0&&(a=["id"]),i===void 0&&(i=ea.EuclideanDistance);var o=t.nodes,u=o===void 0?[]:o,f=t.edges,c=f===void 0?[]:f,v={clusters:[{id:"0",nodes:u}],clusterEdges:[]};if(i===ea.EuclideanDistance&&!u.every(function(Gr){return Gr.hasOwnProperty(r)}))return v;var I=[],w=[];if(i===ea.EuclideanDistance&&(I=Vn(u,r),w=vn(I,n,a)),!w.length)return v;for(var O=(0,M.uniq)(w.map(function(Gr){return Gr.join("")})),z=Math.min(e,u.length,O.length),Z=0;ZIe&&!J.find(function(Ea){return(0,M.isEqual)(Ea,_(i,w,u[rn].originIndex))})&&(Ie=Wa,Se=rn)}},$e=0;$e=0;dr--)ue[Number(u[Z].clusterId)][dr].id===u[Z].id&&ue[Number(u[Z].clusterId)].splice(dr,1);u[Z].clusterId=String(rt),ue[rt].push(u[Z])}}for(var vr=!1,Z=0;Z=1e3)break}var or=[],_r={};return c.forEach(function(Gr){var Ur,rn,hn=Gr.source,oa=Gr.target,Ln=(Ur=u.find(function($a){return $a.id===hn}))===null||Ur===void 0?void 0:Ur.clusterId,Wa=(rn=u.find(function($a){return $a.id===oa}))===null||rn===void 0?void 0:rn.clusterId,Ea="".concat(Ln,"---").concat(Wa);if(_r[Ea])_r[Ea].count++;else{var ba={source:Ln,target:Wa,count:1};_r[Ea]=ba,or.push(ba)}}),{clusters:ue,clusterEdges:or}},H=C,ye=function(t,e){var r=new er(e),n=r.norm2(),a=new er(t),i=a.norm2(),o=r.dot(a),u=n*i,f=u?o/u:0;return f},Ce=ye,_e=function(t,e,r,n,a){t===void 0&&(t=[]),r===void 0&&(r=void 0),n===void 0&&(n=[]),a===void 0&&(a=[]);var i=(0,M.clone)(t.filter(function(I){return I.id!==e.id})),o=t.findIndex(function(I){return I.id===e.id}),u=Vn(t,r),f=vn(u,n,a),c=f[o],v=[];return i.forEach(function(I,w){if(I.id!==e.id){var O=f[w],z=Ce(O,c);v.push(z),I.cosineSimilarity=z}}),i.sort(function(I,w){return w.cosineSimilarity-I.cosineSimilarity}),{allCosineSimilarity:v,similarNodes:i}},Fe=_e,Mt=function(){function s(t){this.count=t.length,this.parent={};for(var e=0,r=t;e0&&(this.list[0]=e,this.moveDown(0)),t},s.prototype.insert=function(t){if(t!==null){this.list.push(t);var e=this.list.length-1;return this.moveUp(e),!0}return!1},s.prototype.moveUp=function(t){for(var e=this.getParent(t);t&&t>0&&this.compareFn(this.list[e],this.list[t])>0;){var r=this.list[e];this.list[e]=this.list[t],this.list[t]=r,t=e,e=this.getParent(t)}},s.prototype.moveDown=function(t){var e,r=t,n=this.getLeft(t),a=this.getRight(t),i=this.list.length;n!==null&&n0?r=n:a!==null&&a0&&(r=a),t!==r&&(e=[this.list[r],this.list[t]],this.list[t]=e[0],this.list[r]=e[1],this.moveDown(r))},s}(),Zt=rr,zr=function(t,e){var r=[],n=t.nodes,a=n===void 0?[]:n,i=t.edges,o=i===void 0?[]:i;if(a.length===0)return r;var u=a[0],f=new Set;f.add(u);var c=function(Z,J){return e?Z.weight-J.weight:0},v=new Zt(c);for(Pe(u.id,o).forEach(function(z){v.insert(z)});!v.isEmpty();){var I=v.delMin(),w=I.source,O=I.target;f.has(w)&&f.has(O)||(r.push(I),f.has(w)||(f.add(w),Pe(w,o).forEach(function(z){v.insert(z)})),f.has(O)||(f.add(O),Pe(O,o).forEach(function(z){v.insert(z)})))}return r},pn=function(t,e){var r=[],n=t.nodes,a=n===void 0?[]:n,i=t.edges,o=i===void 0?[]:i;if(a.length===0)return r;var u=o.map(function(w){return w});e&&u.sort(function(w,O){return w.weight-O.weight});for(var f=new yt(a.map(function(w){return w.id}));u.length>0;){var c=u.shift(),v=c.source,I=c.target;f.connected(v,I)||(r.push(c),f.union(v,I))}return r},Bt=function(t,e,r){var n={prim:zr,kruskal:pn};return r?n[r](t,e):pn(t,e)},ir=Bt,Sr=function(t,e,r){typeof e!="number"&&(e=1e-6),typeof r!="number"&&(r=.85);for(var n=1,a=0,i=1e3,o=t.nodes,u=o===void 0?[]:o,f=t.edges,c=f===void 0?[]:f,v=u.length,I,w={},O={},z=0;z0&&n>e;){a=0;for(var z=0;z0&&(I+=O[Ie]/Se)}w[J]=r*I,a+=w[J]}}a=(1-a)/v,n=0;for(var z=0;z=0;r--){var n=this.dfsEdgeList[r],a=n.fromNode,i=n.toNode;aw||n.hasNode(i[I.to])||(e.labelue;Ie--){var Se=Ee(Ie);if(Se==="break")break}if(J){var De=t.findMinLabel(Z);i.dfsEdgeList.push(new et(z,re,cn,De.edgeLabel,cn));var $e=i.dfsEdgeList.length-1;return t.dfsCode.dfsEdgeList[$e]!==i.dfsEdgeList[$e]?!1:v(Z[De.edgeLabel].projected)}var ft={};J=!1;var rt=0;I.forEach(function(qt){var Fr=new vt(qt),kr=t.findForwardPureEdges(n,Fr.edges[w[0]],O,Fr);kr.length>0&&(J=!0,rt=z,kr.forEach(function(or){var _r="".concat(or.label,"-").concat(a[or.to].label);ft[_r]||(ft[_r]={projected:[],edgeLabel:or.label,nodeLabel2:a[or.to].label}),ft[_r].projected.push({graphId:n.id,edge:or,preNode:qt})}))});for(var wt=w.length,Ft=function(Fr){if(J)return"break";var kr=w[Fr];I.forEach(function(or){var _r=new vt(or),Gr=t.findForwardRmpathEdges(n,_r.edges[kr],O,_r);Gr.length>0&&(J=!0,rt=i.dfsEdgeList[kr].fromNode,Gr.forEach(function(Ur){var rn="".concat(Ur.label,"-").concat(a[Ur.to].label);ft[rn]||(ft[rn]={projected:[],edgeLabel:Ur.label,nodeLabel2:a[Ur.to].label}),ft[rn].projected.push({graphId:n.id,edge:Ur,preNode:or})}))})},Ie=0;Ie=0;O--){var z=e.findBackwardEdge(v,w.edges[a[O]],w.edges[a[0]],w);if(z){var Z="".concat(e.dfsCode.dfsEdgeList[a[O]].fromNode,"-").concat(z.label);f[Z]||(f[Z]={projected:[],toNodeId:e.dfsCode.dfsEdgeList[a[O]].fromNode,edgeLabel:z.label}),f[Z].projected.push({graphId:c.graphId,edge:z,preNode:c})}}if(!(n>=e.maxNodeNum)){var J=e.findForwardPureEdges(v,w.edges[a[0]],o,w);J.forEach(function(ue){var Ee="".concat(i,"-").concat(ue.label,"-").concat(I[ue.to].label);u[Ee]||(u[Ee]={projected:[],fromNodeId:i,edgeLabel:ue.label,nodeLabel2:I[ue.to].label}),u[Ee].projected.push({graphId:c.graphId,edge:ue,preNode:c})});for(var re=function(Ee){var Ie=e.findForwardRmpathEdges(v,w.edges[a[Ee]],o,w);Ie.forEach(function(Se){var De="".concat(e.dfsCode.dfsEdgeList[a[Ee]].fromNode,"-").concat(Se.label,"-").concat(I[Se.to].label);u[De]||(u[De]={projected:[],fromNodeId:e.dfsCode.dfsEdgeList[a[Ee]].fromNode,edgeLabel:Se.label,nodeLabel2:I[Se.to].label}),u[De].projected.push({graphId:c.graphId,edge:Se,preNode:c})})},O=0;Oue){var Ee=ue;ue=re,re=Ee}var Ie=J.label,Se="".concat(f,"-").concat(re,"-").concat(Ie,"-").concat(ue),De="".concat(re,"-").concat(Ie,"-").concat(ue);if(!i[De]){var $e=i[De]||0;$e++,i[De]=$e}u[Se]={graphId:f,nodeLabel1:re,edgeLabel:Ie,nodeLabel2:ue}})})}),Object.keys(a).forEach(function(f){var c=a[f];if(!(c2*e)););if(Z<2*e&&(o["".concat(c,"-").concat(z)]={start:c,end:z,distance:a[c][z]},v++,u++,u>=r))return o;if(I++,I>2*e)break}if(vI&&(u=I);var w=r[v.id].inDegree;f>w&&(f=w);var O=r[v.id].outDegree;c>O&&(c=O)}),t[e]={degree:u,inDegree:f,outDegree:c}),{minPatternNodeLabelDegree:u,minPatternNodeLabelInDegree:f,minPatternNodeLabelOutDegree:c}},Fo=function(t,e,r,n,a,i,o){var u;if(r===void 0&&(r=!1),i===void 0&&(i="cluster"),o===void 0&&(o="cluster"),!(!t||!t.nodes)){var f=t.nodes.length;if(!!f){var c=Aa(t,r),v=Aa(e,r),I=Ii(t.nodes,c,r),w=Ii(e.nodes,v,r),O=Na(t.nodes,i),z=O.nodeMap,Z=O.nodeLabelMap,J=Na(e.nodes,i),re=J.nodeMap,ue=J.nodeLabelMap;Ti(t.edges,o,z);var Ee=Ti(e.edges,o,re).edgeLabelMap,Ie=[];v==null||v.forEach(function(Ta){Ie=Ie.concat(Ta)}),a||(a=Math.max.apply(Math,(0,T.__spreadArray)((0,T.__spreadArray)([],Ie,!1),[2],!1))),n||(n=a);var Se=Zn(t,c,i,n),De=Zn(e,v,i,n),$e=Math.min(100,f*(f-1)/2),ft=xa(n,f,$e,Se,c),rt=li(ft,Se,t),wt=10,Ft=1,Er=1,dr=4,vr={graphs:rt,nodeLabelProp:i,edgeLabelProp:o,minSupport:Ft,minNodeNum:Er,maxNodeNum:dr,directed:r},qt=xn(vr).slice(0,wt),Fr=qt.length,kr=[];qt.forEach(function(Ta,Ja){kr[Ja]={},Object.keys(rt).forEach(function(na){var ei=rt[na],oi=Xa(ei,Ta,i,o);kr[Ja][na]=oi})});var or=di(kr,Fr,qt),_r=or.structure,Gr=or.structureCountMap,Ur=e.nodes[0],rn=[],hn=(u=e.nodes[0])===null||u===void 0?void 0:u[i],oa=-Infinity;e.nodes.forEach(function(Ta){var Ja=Ta[i],na=Z[Ja];(na==null?void 0:na.length)>oa&&(oa=na.length,rn=na,hn=Ja,Ur=Ta)});var Ln={},Wa={},Ea={},ba={},$a={},Mi={};Object.keys(ue).forEach(function(Ta,Ja){$a[Ta]=[],r&&(Mi[Ta]=[]);var na=-Infinity,ei=ue[Ta],oi={};ei.forEach(function(Ga){var Bn=w["".concat(Ur.id,"-").concat(Ga.id)];if(Bn&&$a[Ta].push(Bn),na$a[Ta][Ss]){xl=!0;break}if(xl)return rn.splice(Bn,1),"continue";var Eu={};co.neighbors.forEach(function(Ms){var Uu=I["".concat(Ci.id,"-").concat(Ms.id)];Eu["".concat(Ci.id,"-").concat(Ms.id)]={start:z[Ci.id].idx,end:z[Ms.id].idx,distance:Uu}}),rt=li(Eu,Se,t,rt);var ff=[];Object.keys(Eu).forEach(function(Ms){if(Gr[Ms]){ff.push(Gr[Ms]);return}var Uu=rt[Ms];Gr[Ms]=Xa(Uu,_r,i,o),ff.push(Gr[Ms])}),ff=ff.sort(function(Ms,Uu){return Uu-Ms});for(var fc=!1,Ss=0;Ss=0;yi--)Ra(yi)});var gi=[];rn==null||rn.forEach(function(Ta){for(var Ja=z[Ta.id].idx,na=ia(t.nodes,c[Ja],Ja,i,a),ei=na.neighbors,oi=ei.length,gn=!1,Pa=oi-1;Pa>=0;Pa--){if(ei.length+1co){ei.splice(Pa,1);continue}if(r){var lo="".concat(Ra.id,"-").concat(Ta.id),Vc=I[lo];Ci=Mi[yi].length-1;var xl=Mi[yi][Ci];if(Vc>xl){ei.splice(Pa,1);continue}}var Ss=Gr[Ga]?Gr[Ga]:ja(t,Ta,Ra,z,Bn,Se,_r,i,o,Gr,rt),Eu="".concat(Ur.id,"-").concat(yi),ff=ba[Eu][ba[Eu].length-1];if(Ss=0;Bn--){var xl=Vc(Bn);if(xl==="break")break}if(lo)return gi.splice(Ja,1),"continue";na.edges=Pa;var Ss=kn(na,na.nodes[0].id,!1).length;if(Object.keys(Ss).reverse().forEach(function(ji){if(!(ji===na.nodes[0].id||lo)){if(Ss[ji]===Infinity){var qs=gn[ji].node[i];if(oi[qs]--,oi[qs]ii[cf][ii[cf].length-1]){var qs=gn[ji].node[i];if(oi[qs]--,oi[qs]=0;Uu--){var Lf=na.nodes[Uu],Bv=gn[Lf.id].degree,Ip=gn[Lf.id].inDegree,Ap=gn[Lf.id].outDegree,Op=Lf[i],Td=Co(Ln,Op,re,ue),Fv=Td.minPatternNodeLabelDegree,Lp=Td.minPatternNodeLabelInDegree,Dp=Td.minPatternNodeLabelOutDegree,Np=r?Bv=0;sd--){var Df=Pa[sd];if(!gn[Df.source]||!gn[Df.target]){Pa.splice(sd,1);var ud=Df[o];if(Ra[ud]--,gn[Df.source]&&(gn[Df.source].degree--,gn[Df.source].outDegree--),gn[Df.target]&&(gn[Df.target].degree--,gn[Df.target].inDegree--),Ee[ud]&&Ra[ud]=0;ki--){var Xi=Pi(ki);if(Xi==="break")break}for(var ro=gi.length,ho=function(Ja){var na=gi[Ja],ei={};na.edges.forEach(function(Pa){var Ra="".concat(Pa.source,"-").concat(Pa.target,"-").concat(Pa.label);ei[Ra]?ei[Ra]++:ei[Ra]=1});for(var oi=function(Ra){var yi=gi[Ra],Ga={};yi.edges.forEach(function(Ci){var co="".concat(Ci.source,"-").concat(Ci.target,"-").concat(Ci.label);Ga[co]?Ga[co]++:Ga[co]=1});var Bn=!0;Object.keys(Ga).length!==Object.keys(ei).length?Bn=!1:Object.keys(ei).forEach(function(Ci){Ga[Ci]!==ei[Ci]&&(Bn=!1)}),Bn&&gi.splice(Ra,1)},gn=ro-1;gn>Ja;gn--)oi(gn);ro=gi.length},ki=0;ki<=ro-1;ki++)ho(ki);return gi}}},To=Fo,mi=function(){function s(t){t===void 0&&(t=10),this.linkedList=new Re,this.maxStep=t}return Object.defineProperty(s.prototype,"length",{get:function(){return this.linkedList.toArray().length},enumerable:!1,configurable:!0}),s.prototype.isEmpty=function(){return!this.linkedList.head},s.prototype.isMaxStack=function(){return this.toArray().length>=this.maxStep},s.prototype.peek=function(){return this.isEmpty()?null:this.linkedList.head.value},s.prototype.push=function(t){this.linkedList.prepend(t),this.length>this.maxStep&&this.linkedList.deleteTail()},s.prototype.pop=function(){var t=this.linkedList.deleteHead();return t?t.value:null},s.prototype.toArray=function(){return this.linkedList.toArray().map(function(t){return t.value})},s.prototype.clear=function(){for(;!this.isEmpty();)this.pop()},s}(),no=mi,Cs=bn,rs={getAdjMatrix:ce,breadthFirstSearch:_t,connectedComponent:ht,getDegree:dt,getInDegree:Et,getOutDegree:it,detectCycle:bn,detectDirectedCycle:Cs,detectAllCycles:In,detectAllDirectedCycle:nn,detectAllUndirectedCycle:br,depthFirstSearch:Nt,dijkstra:kn,findAllPath:Ia,findShortestPath:ri,floydWarshall:Aa,labelPropagation:Oa,louvain:Gt,iLouvain:se,kCore:R,kMeans:H,cosineSimilarity:Ce,nodesCosineSimilarity:Fe,minimumSpanningTree:ir,pageRank:Jr,getNeighbors:be,Stack:no,GADDI:To},Yi=W(77160),Ko=W(35600),Hr=W(31437),$i=ee.vs,go=function(t){return function(e,r){return e[t]-r[t]}},Ts=function(t,e,r){return t>=e&&t<=r},cs=function(t,e,r,n){var a=1e-4,i={x:r.x-t.x,y:r.y-t.y},o={x:e.x-t.x,y:e.y-t.y},u={x:n.x-r.x,y:n.y-r.y},f=o.x*u.y-o.y*u.x,c=f*f,v=1/f,I=o.x*o.x+o.y*o.y,w=u.x*u.x+u.y*u.y;if(c>a*I*w){var O=(i.x*u.y-i.y*u.x)*v,z=(i.x*o.y-i.y*o.x)*v;return!Ts(O,0,1)||!Ts(z,0,1)?null:{x:t.x+O*o.x,y:t.y+O*o.y}}return null},$o=function(t,e){var r=t.x,n=t.y,a=t.width,i=t.height,o=r+a/2,u=n+i/2,f=[],c={x:o,y:u};f.push({x:r,y:n}),f.push({x:r+a,y:n}),f.push({x:r+a,y:n+i}),f.push({x:r,y:n+i}),f.push({x:r,y:n});for(var v=null,I=1;Ie[n][i]+e[i][a]&&(e[n][a]=e[n][i]+e[i][a]);return e},Uo=function(t,e){var r=t.nodes,n=t.edges,a=[],i={};if(!r)throw new Error("invalid nodes data!");return r&&r.forEach(function(o,u){i[o.id]=u;var f=[];a.push(f)}),n&&n.forEach(function(o){var u=o.source,f=o.target,c=i[u],v=i[f];a[c][v]=1,e||(a[v][c]=1)}),a},Wo=function(t,e){t.translate(e.x,e.y)},qi=function(t,e,r,n){n===void 0&&(n={duration:500});var a=t.getMatrix();a||(a=[1,0,0,0,1,0,0,0,1]);var i=t.getCanvasBBox(),o=e.x-i.minX,u=e.y-i.minY;if(r){var f=o*a[0],c=u*a[4],v=0,I=0,w=0,O=0;t.animate(function(Z){return w=f*Z,O=c*Z,a=$i(a,[["t",w-v,O-I]]),v=w,I=O,{matrix:a}},n)}else{var z=$i(a,[["t",o,u]]);t.setMatrix(z)}},ao=function(t,e){var r=t.getMatrix();r||(r=[1,0,0,0,1,0,0,0,1]);var n=e;(0,M.isArray)(e)||(n=[e,e]),(0,M.isArray)(e)&&e.length===1&&(n=[e[0],e[0]]),r=$i(r,[["s",n[0],n[1]]]),t.setMatrix(r)},vs=function(t,e){var r=t.getMatrix();r||(r=[1,0,0,0,1,0,0,0,1]),r=$i(r,[["r",e]]),t.setMatrix(r)},io=function(t,e,r){for(var n=[],a=0;a0!=o(c[1]-r)>0&&o(e-(r-f[1])*(f[0]-c[0])/(f[1]-c[1])-f[0])<0&&(n=!n)}return n},hs=function(t,e){return!(e.minX>t.maxX||e.maxXt.maxY||e.maxY1){var re=I[0],ue=I[O-1];w.push({from:{x:ue[0],y:ue[1]},to:{x:re[0],y:re[1]}})}return w};if(t.length<2||e.length<2)return!1;var a=r(t),i=r(e);if(!hs(a,i))return!1;var o=!1;if((0,M.each)(e,function(v){if(Xo(t,v[0],v[1]))return o=!0,!1}),o||((0,M.each)(t,function(v){if(Xo(e,v[0],v[1]))return o=!0,!1}),o))return!0;var u=n(t),f=n(e),c=!1;return(0,M.each)(f,function(v){if(yo(u,v))return c=!0,!1}),c},oo=function(){function s(t,e,r,n){this.x1=t,this.y1=e,this.x2=r,this.y2=n}return s.prototype.getBBox=function(){var t=Math.min(this.x1,this.x2),e=Math.min(this.y1,this.y2),r=Math.max(this.x1,this.x2),n=Math.max(this.y1,this.y2),a={x:t,y:e,minX:t,minY:e,maxX:r,maxY:n,width:r-t,height:n-e};return a},s}(),Is=function(t,e){var r={top:[t.minX,t.minY,t.maxX,t.minY],left:[t.minX,t.minY,t.minX,t.maxY],bottom:[t.minX,t.maxY,t.maxX,t.maxY],right:[t.maxX,t.minY,t.maxX,t.maxY]};return r[e]},vo=function(t,e){var r=(e.x2-e.x1)*(t.y1-e.y1)-(e.y2-e.y1)*(t.x1-e.x1),n=(t.x2-t.x1)*(t.y1-e.y1)-(t.y2-t.y1)*(t.x1-e.x1),a=(e.y2-e.y1)*(t.x2-t.x1)-(e.x2-e.x1)*(t.y2-t.y1);if(a){var i=r/a,o=n/a;if(i>=0&&i<=1&&o>=0&&o<=1)return i}return Number.POSITIVE_INFINITY},as=function(t,e){for(var r=["top","left","bottom","right"],n=t.getBBox(),a=0,i=[],o=0;o<4;o++){var u=Is(n,r[o]),f=u[0],c=u[1],v=u[2],I=u[3];i[o]=cs({x:e.x1,y:e.y1},{x:e.x2,y:e.y2},{x:f,y:c},{x:v,y:I}),i[o]&&(a+=1)}return[i,a]},gs=function(t,e){for(var r=["top","left","bottom","right"],n=t.getBBox(),a=Number.POSITIVE_INFINITY,i=0,o=0;o<4;o++){var u=Is(n,r[o]),f=u[0],c=u[1],v=u[2],I=u[3],w=vo(e,new oo(f,c,v,I));w=Math.abs(w-.5),w>=0&&w<=1&&(i+=1,a=w0){for(var n=0,a=t;ne.x+e.width,a=t.y>e.y+e.height,i=t.y":.604998779296875,"/":.5,"?":.53699951171875},fo=Math.PI,As=Math.sin,zs=Math.cos,Ai=As(fo/8),hi=zs(fo/8),eu=function(t,e){var r=t.getBBox(),n={x:r.minX,y:r.minY},a={x:r.maxX,y:r.maxY};if(e){var i=e.getMatrix();i||(i=[1,0,0,0,1,0,0,0,1]),n=Io(n,i),a=Io(a,i)}var o=n.x,u=n.y,f=a.x,c=a.y;return{x:o,y:u,minX:o,minY:u,maxX:f,maxY:c,width:f-o,height:c-u}},bu=function(t){var e=t.sourceNode||t.targetNode,r=e.get("group"),n=r.getMatrix();n||(n=[1,0,0,0,1,0,0,0,1]);var a=e.getKeyShape(),i=a.getBBox(),o=t.loopCfg||{},u=o.dist||Math.max(i.width,i.height)*2,f=o.position||ln.defaultLoopPosition,c=[(i.minX+i.maxX)/2+n[6],(i.minY+i.maxY)/2+n[7]],v=[t.startPoint.x,t.startPoint.y],I=[t.endPoint.x,t.endPoint.y],w=i.height/2,O=i.width/2,z=w,Z=w,J=z*Ai,re=z*hi,ue=Z*Ai,Ee=Z*hi,Ie=a.get("type"),Se=Math.min(w/2,O/2),De=Math.min(w,O),$e=(o==null?void 0:o.pointPadding)?Math.min(De,o==null?void 0:o.pointPadding):Se;if(v[0]===I[0]&&v[1]===I[1]){switch(f){case"top":Ie==="circle"?(v=[c[0]-J,c[1]-re],I=[c[0]+ue,c[1]-Ee]):(v=[c[0]-$e,c[1]-w],I=[c[0]+$e,c[1]-w]);break;case"top-right":z=w,Z=O,Ie==="circle"?(J=z*Ai,re=z*hi,ue=Z*Ai,Ee=Z*hi,v=[c[0]+J,c[1]-re],I=[c[0]+Ee,c[1]-ue]):(v=[c[0]+O-$e,c[1]-w],I=[c[0]+O,c[1]-w+$e]);break;case"right":z=O,Z=O,Ie==="circle"?(J=z*Ai,re=z*hi,ue=Z*Ai,Ee=Z*hi,v=[c[0]+re,c[1]-J],I=[c[0]+Ee,c[1]+ue]):(v=[c[0]+O,c[1]-$e],I=[c[0]+O,c[1]+$e]);break;case"bottom-right":z=O,Z=w,Ie==="circle"?(J=z*Ai,re=z*hi,ue=Z*Ai,Ee=Z*hi,v=[c[0]+re,c[1]+J],I=[c[0]+ue,c[1]+Ee]):(v=[c[0]+O,c[1]+w-$e],I=[c[0]+O-$e,c[1]+w]);break;case"bottom":z=w,Z=w,Ie==="circle"?(J=z*Ai,re=z*hi,ue=Z*Ai,Ee=Z*hi,v=[c[0]+J,c[1]+re],I=[c[0]-ue,c[1]+Ee]):(v=[c[0]-$e,c[1]+w],I=[c[0]+$e,c[1]+w]);break;case"bottom-left":z=w,Z=O,Ie==="circle"?(J=z*Ai,re=z*hi,ue=Z*Ai,Ee=Z*hi,v=[c[0]-J,c[1]+re],I=[c[0]-Ee,c[1]+ue]):(v=[c[0]-O,c[1]+w-$e],I=[c[0]-O+$e,c[1]+w]);break;case"left":z=O,Z=O,Ie==="circle"?(J=z*Ai,re=z*hi,ue=Z*Ai,Ee=Z*hi,v=[c[0]-re,c[1]+J],I=[c[0]-Ee,c[1]-ue]):(v=[c[0]-O,c[1]-$e],I=[c[0]-O,c[1]+$e]);break;case"top-left":z=O,Z=w,Ie==="circle"?(J=z*Ai,re=z*hi,ue=Z*Ai,Ee=Z*hi,v=[c[0]-re,c[1]-J],I=[c[0]-ue,c[1]-Ee]):(v=[c[0]-O+$e,c[1]-w],I=[c[0]-O,c[1]-w+$e]);break;default:z=O,Z=O,J=z*Ai,re=z*hi,ue=Z*Ai,Ee=Z*hi,v=[c[0]-J,c[1]-re],I=[c[0]+ue,c[1]-Ee]}if(o.clockwise===!1){var ft=[v[0],v[1]];v=[I[0],I[1]],I=[ft[0],ft[1]]}}var rt=[v[0]-c[0],v[1]-c[1]],wt=(z+u)/z,Ft=(Z+u)/Z;o.clockwise===!1&&(wt=(Z+u)/Z,Ft=(z+u)/z);var Er=Hr.scale([0,0],rt,wt),dr=[c[0]+Er[0],c[1]+Er[1]],vr=[I[0]-c[0],I[1]-c[1]],qt=Hr.scale([0,0],vr,Ft),Fr=[c[0]+qt[0],c[1]+qt[1]];return t.startPoint={x:v[0],y:v[1]},t.endPoint={x:I[0],y:I[1]},t.controlPoints=[{x:dr[0],y:dr[1]},{x:Fr[0],y:Fr[1]}],t},tu=function(t,e,r,n,a){var i=1e-4,o=[],u=t==null?void 0:t.getPoint(e);if(!u)return{x:0,y:0,angle:0};if(e1-i)o=t.getEndTangent();else{var f=t==null?void 0:t.getPoint(e+i);o.push([u.x,u.y]),o.push([f.x,f.y])}var c=Math.atan2(o[1][1]-o[0][1],o[1][0]-o[0][0]);if(c<0&&(c+=fo*2),r&&(u.x+=zs(c)*r,u.y+=As(c)*r),n){var v=c-fo/2;c>1/2*fo&&c<3*1/2*fo&&(v-=fo),u.x+=zs(v)*n,u.y+=As(v)*n}var I={x:u.x,y:u.y,angle:c};return a?(c>.5*fo&&c<1.5*fo&&(c-=fo),(0,T.__assign)({rotate:c},I)):I},ps=function s(t,e,r,n){if(n(t,e,r)===!1)return!1;if(t&&t.children){for(var a=t.children.length-1;a>=0;a--)if(!s(t.children[a],t,a,n))return!1}return!0},xu=function s(t,e,r,n){if(t&&t.children){for(var a=t.children.length-1;a>=0;a--)if(!s(t.children[a],t,a,n))return}return n(t,e,r)!==!1},Gi=function(t,e){typeof e=="function"&&ps(t,null,-1,e)},Lo=function(t,e){typeof e=="function"&&xu(t,null,-1,e)},ru=function(t,e){return e*(Gs[t]||1)},Do=function(t,e){var r=0,n=new RegExp("[\u4E00-\u9FA5]+");return t.split("").forEach(function(a){n.test(a)?r+=e:r+=ru(a,e)}),[r,e]},Us=function(t,e){return typeof e!="number"||e<=0||e>=t.length?t:t.substring(0,e)+"..."},Os=function(t,e){var r=[],n={},a={};t.forEach(function(u){a[u.id]=u}),t.forEach(function(u,f){var c=(0,M.clone)(u);c.itemType="combo",c.children=void 0,c.parentId===c.id?(console.warn("The parentId for combo ".concat(c.id," can not be the same as the combo's id")),delete c.parentId):c.parentId&&!a[c.parentId]&&(console.warn("The parent combo for combo ".concat(c.id," does not exist!")),delete c.parentId);var v=n[c.id];if(v){if(c.children=v.children,n[c.id]=c,v=c,!v.parentId){r.push(v);return}var I=n[v.parentId];if(I)I.children?I.children.push(c):I.children=[c];else{var w={id:v.parentId,children:[v]};n[v.parentId]=w,n[c.id]=c}return}if((0,M.isString)(u.parentId)){var O=n[u.parentId];if(O)O.children?O.children.push(c):O.children=[c],n[c.id]=c;else{var z={id:u.parentId,children:[c]};n[z.id]=z,n[c.id]=c}}else r.push(c),n[c.id]=c});var i={};(e||[]).forEach(function(u){i[u.id]=u;var f=n[u.comboId];if(f){var c={id:u.id,comboId:u.comboId};f.children?f.children.push(c):f.children=[c],c.itemType="node",n[u.id]=c}});var o=0;return r.forEach(function(u){u.depth=o+10,Gi(u,function(f){var c,v=n[f.id].itemType;v==="node"?c=n[f.comboId]:c=n[f.parentId],c&&v==="node"?f.depth=o+1:f.depth=o+10,o-1&&a.splice(c,1),u||(i={id:e,itemType:"node",comboId:r},o[e]={children:void 0}),e){var v=!1;if(r){var I=0;(t||[]).forEach(function(O){v||Gi(O,function(z){return r===z.id?(v=!0,z.children?z.children.push(i):z.children=[i],I=z.depth,i.itemType==="node"?i.depth=I+2:i.depth=I+1,!1):!0})})}else(!r||!v)&&i.itemType!=="node"&&t.push(i);var w=i.depth;Gi(i,function(O){return O.itemType==="node"?w+=2:w+=1,O.depth=w,!0})}return t},ys=function(t,e,r){var n={minX:Infinity,minY:Infinity,maxX:-Infinity,maxY:-Infinity,x:void 0,y:void 0,width:void 0,height:void 0,centerX:void 0,centerY:void 0};if(!t||t.length===0){var a=r==null?void 0:r.getModel(),i=a||{},o=i.x,u=i.y,f=i.fixSize,c=i.collapsed,v=i.fixCollapseSize,I=c?v:f,w=(0,M.isArray)(I)?I:[I,I],O=w[0],z=w[1],Z=[O/2,z/2];return{minX:o-Z[0],minY:u-Z[1],maxX:o+Z[0],maxY:u+Z[1],x:o,y:u,width:O,height:z}}return t.forEach(function(J){var re=e.findById(J.id);if(!(!re||!re.isVisible())){re.set("bboxCanvasCache",void 0);var ue=re.getCanvasBBox();ue.x&&n.minX>ue.minX&&(n.minX=ue.minX),ue.y&&n.minY>ue.minY&&(n.minY=ue.minY),ue.x&&n.maxXr&&(r=v),I>a&&(a=I)}var w=Math.floor(e),O=Math.floor(n),z=Math.ceil(r)-Math.floor(e),Z=Math.ceil(a)-Math.floor(n);return{x:w,y:O,width:z,height:Z,minX:e,minY:n,maxX:r,maxY:a}},au=function(t,e,r,n,a){e===void 0&&(e=15),r===void 0&&(r="quadratic"),n===void 0&&(n=void 0),a===void 0&&(a=void 0);for(var i=t.length,o=e*2,u=["top","top-right","right","bottom-right","bottom","bottom-left","left","top-left"],f={},c=[],v={},I=0;Ir.get("optimizeThreshold")){var o=Infinity,u=Infinity,f=-Infinity,c=-Infinity;i.forEach(function(Ee){var Ie=Ee.getModel(),Se=Ie.x,De=Ie.y;o>Se&&(o=Se),u>De&&(u=De),fZ&&(J=Z,console.warn("fitview failed, ratio out of range, ratio: %f",o,"graph maxzoom has been used instead"));var re=(0,ju.vs)(w,[["t",-a.x,-a.y],["s",J,J],["t",a.x,a.y]]),ue=Jo({animateCfg:r,callback:function(){t.setMatrix(re),f.emit("viewportchange",{action:"translate",matrix:w}),f.emit("viewportchange",{action:"zoom",matrix:re})}});t.stopAnimate(),t.setMatrix(e),t.animate(function(Ee){return{matrix:Fi(e,re,Ee)}},ue)}},s.prototype.fitView=function(t,e){var r=this.graph,n=this.getFormatPadding(),a=r.get("width"),i=r.get("height"),o=r.get("group"),u=o.getMatrix()||[1,0,0,0,1,0,0,0,1];o.resetMatrix();var f,c=r.getNodes();if(c.length>r.get("optimizeThreshold")){var v=Infinity,I=Infinity,w=-Infinity,O=-Infinity;c.forEach(function(Se){var De=Se.getModel(),$e=De.x,ft=De.y;v>$e&&(v=$e),I>ft&&(I=ft),w<$e&&(w=$e),Ore&&(ue=re),t)this.animatedFitView(o,u,e,f,z,Z,ue,!0);else{var Ee=z.x-Z.x,Ie=z.y-Z.y;if(Yo(Ee)||Yo(Ie))return;r.translate(Ee,Ie),r.zoom(ue,z)||console.warn("zoom failed, ratio out of range, ratio: %f",ue)}}},s.prototype.fitViewByRules=function(t,e,r){var n=t.onlyOutOfViewPort,a=n===void 0?!1:n,i=t.direction,o=i===void 0?"both":i,u=t.ratioRule,f=u===void 0?"min":u,c=this.graph,v=this.getFormatPadding(),I=c.get("width"),w=c.get("height"),O=c.get("group"),z=O.getMatrix()||[1,0,0,0,1,0,0,0,1];O.resetMatrix();var Z,J=c.getNodes();if(J.length>c.get("optimizeThreshold")){var re=Infinity,ue=Infinity,Ee=-Infinity,Ie=-Infinity;J.forEach(function(dr){var vr=dr.getModel(),qt=vr.x,Fr=vr.y;re>qt&&(re=qt),ue>Fr&&(ue=Fr),Eev.maxX&&(v.maxX=z.maxX),z.maxY>v.maxY&&(v.maxY=z.maxY)}if(v.x=v.minX,v.y=v.minY,v.width=v.maxX-v.minX,v.height=v.maxY-v.minY,!(v.width===0||v.height===0)){var Z=this.getViewCenter(),J={x:v.x+v.width/2,y:v.y+v.height/2},re=(o-i[1]-i[3])/v.width,ue=(u-i[0]-i[2])/v.height,Ee=re;re>ue&&(Ee=ue),r?this.animatedFitView(f,c,n,v,Z,J,Ee,e):(a.translate(Z.x-J.x,Z.y-J.y),e&&!a.zoom(Ee,Z)&&console.warn("zoom failed, ratio out of range, ratio: %f",Ee))}}},s.prototype.changeSize=function(t,e){var r=this.graph;if(!(0,M.isNumber)(t)||!(0,M.isNumber)(e))throw Error("invalid canvas width & height, please make sure width & height type is number");r.set({width:t,height:e});var n=r.get("canvas");n.changeSize(t,e);var a=r.get("plugins");a.forEach(function(i){i.get("gridContainer")&&i.positionInit()})},s.prototype.destroy=function(){this.graph=null,this.destroyed=!1},s}(),L=l;function le(s){return le=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},le(s)}function we(s){if(typeof s!="string")return s;var t=function(De){if(typeof De!="string")return De;try{return JSON.parse(De.trim())}catch($e){return De.trim()}},e=t(s);if(typeof e!="string")return e;for(var r=function(De){return De[De.length-1]},n=s.trim(),a=[],i=[],o=function(){for(var De=[],$e=0;$e=0&&(a.height=i),o>=0&&(a.width=o),n.marginTop&&(a.y+=n.marginTop),n.marginLeft&&(a.x+=n.marginLeft),a}function st(s,t){var e;t===void 0&&(t={x:0,y:0});var r=(0,T.__assign)({x:0,y:0,width:0,height:0},t);if((e=s.children)===null||e===void 0?void 0:e.length){var n=s.attrs,a=n===void 0?{}:n,i=a.marginTop,o=(0,T.__assign)({},t);i&&(o.y+=i);for(var u=0;ur.width&&(r.width=c.width+c.x),c.height+c.y>r.height&&(r.height=c.height+c.y)}}}return s.bbox=nt(s,t,r),s.attrs=(0,T.__assign)((0,T.__assign)({},s.attrs),s.bbox),s}function xt(s,t){var e,r,n,a,i=(s||{}).type,o=((t==null?void 0:t.attrs)||{}).key;if(o&&s&&(s.attrs.key=o),!s&&t)return{action:"delete",val:t,type:i,key:o};if(s&&!t)return{action:"add",val:s,type:i};if(!s&&!t)return{action:"same",type:i};var u=[];if(((e=s.children)===null||e===void 0?void 0:e.length)>0||((r=t.children)===null||r===void 0?void 0:r.length)>0)for(var f=Math.max((n=s.children)===null||n===void 0?void 0:n.length,(a=t.children)===null||a===void 0?void 0:a.length),c=t.children||[],v=s.children||[],I=0;I-1)return;r.push(a)}else u>-1&&r.splice(u,1)}else if((0,M.isString)(e)){var f=r.filter(function(I){return I.includes(i)});f.length>0&&this.clearStates(f),o=o.filter(function(I){return!I.includes(i)}),o.push(a),this.set("states",o)}if(n){var c=this.get("model"),v=c.type;n.setState(v,t,e,this)}},s.prototype.clearStates=function(t){var e=this,r=e.getStates(),n=e.get("shapeFactory"),a=e.get("model"),i=a.type;t||(t=r),(0,M.isString)(t)&&(t=[t]);var o=r.filter(function(u){return t.indexOf(u)===-1});e.set("states",o),t.forEach(function(u){n.setState(i,u,!1,e)})},s.prototype.setOptimize=function(t){this.optimize=t},s.prototype.getContainer=function(){return this.get("group")},s.prototype.getKeyShape=function(){return this.get("keyShape")},s.prototype.getModel=function(){return this.get("model")},s.prototype.getType=function(){return this.get("type")},s.prototype.getID=function(){return this.get("id")},s.prototype.isItem=function(){return!0},s.prototype.getStates=function(){return this.get("states")},s.prototype.hasState=function(t){var e=this.getStates();return e.indexOf(t)>=0},s.prototype.refresh=function(t){var e=this.get("model");this.updatePosition(e),this.updateShape(t),this.afterUpdate(),this.clearCache()},s.prototype.getUpdateType=function(t){},s.prototype.update=function(t,e){e===void 0&&(e=void 0);var r=this.get("model");if(e==="move")this.updatePosition(t);else{var n=r.visible,a=t.visible;n!==a&&a!==void 0&&this.changeVisibility(a);var i={x:r.x,y:r.y};t.x=isNaN(+t.x)?r.x:+t.x,t.y=isNaN(+t.y)?r.y:+t.y;var o=this.get("styles");if(t.stateStyles){var u=t.stateStyles;(0,M.mix)(o,u),delete t.stateStyles}Object.assign(r,t),(i.x!==t.x||i.y!==t.y)&&this.updatePosition(t),this.updateShape(e)}this.afterUpdate(),this.clearCache()},s.prototype.updateShape=function(t){var e=this.get("shapeFactory"),r=this.get("model"),n=r.type;if(e.shouldUpdate(n)&&n===this.get("currentShape")){var a=this.getShapeCfg(r,t);e.baseUpdate(n,a,this,t),t!=="move"&&this.setOriginStyle()}else this.draw();this.restoreStates(e,n)},s.prototype.updatePosition=function(t){var e=this.get("model"),r=isNaN(+t.x)?+e.x:+t.x,n=isNaN(+t.y)?+e.y:+t.y,a=this.get("group");if(isNaN(r)||isNaN(n))return!1;e.x=r,e.y=n;var i=a.getMatrix();return i&&i[6]===r&&i[7]===n?!1:(a.resetMatrix(),Wo(a,{x:r,y:n}),this.clearCache(),!0)},s.prototype.getBBox=function(){var t=this.get(tn);return t||(t=this.calculateBBox(),this.set(tn,t)),t},s.prototype.getCanvasBBox=function(){var t=this.get(ra);return t||(t=this.calculateCanvasBBox(),this.set(ra,t)),t},s.prototype.toFront=function(){var t=this.get("group");t.toFront()},s.prototype.toBack=function(){var t=this.get("group");t.toBack()},s.prototype.show=function(){this.changeVisibility(!0)},s.prototype.hide=function(){this.changeVisibility(!1)},s.prototype.changeVisibility=function(t){var e=this.get("group");t?e.show():e.hide(),this.set("visible",t)},s.prototype.isVisible=function(){return this.get("visible")},s.prototype.enableCapture=function(t){var e=this.get("group");e&&e.set("capture",t)},s.prototype.destroy=function(){if(!this.destroyed){var t=this.get("animate"),e=this.get("group");t&&e.stopAnimate(),e.shapeMap={},this.clearCache(),e.remove(),this._cfg=null,this.destroyed=!0}},s}(),On=$n,Gn={source:"start",target:"end"},Ha="Node",ni="Point",xi="Anchor",Oi=function(s){(0,T.__extends)(t,s);function t(){return s!==null&&s.apply(this,arguments)||this}return t.prototype.getDefaultCfg=function(){return{type:"edge",sourceNode:null,targetNode:null,startPoint:null,endPoint:null,linkCenter:!1}},t.prototype.setEnd=function(e,r){var n=Gn[e]+ni,a=e+Ha,i=this.get(a);i&&!i.destroyed&&i.removeEdge(this),(0,M.isPlainObject)(r)?(this.set(n,r),this.set(a,null)):r&&(r.addEdge(this),this.set(a,r),this.set(n,null))},t.prototype.getLinkPoint=function(e,r,n){var a=Gn[e]+ni,i=e+Ha,o=this.get(a);if(!o){var u=this.get(i),f=e+xi,c=this.getPrePoint(e,n),v=r[f];(0,M.isNil)(v)||(o=u.getLinkPointByAnchor(v)),o=o||u.getLinkPoint(c),(0,M.isNil)(o.index)||this.set("".concat(e,"AnchorIndex"),o.index)}return o},t.prototype.getPrePoint=function(e,r){if(r&&r.length){var n=e==="source"?0:r.length-1;return r[n]}var a=e==="source"?"target":"source";return this.getEndPoint(a)},t.prototype.getEndPoint=function(e){var r=e+Ha,n=Gn[e]+ni,a=this.get(r);return a&&!a.destroyed?a.get("model"):this.get(n)},t.prototype.getControlPointsByCenter=function(e){var r=this.getEndPoint("source"),n=this.getEndPoint("target"),a=this.get("shapeFactory"),i=e.type;return a.getControlPoints(i,{startPoint:r,endPoint:n})},t.prototype.getEndCenter=function(e){var r=e+Ha,n=Gn[e]+ni,a=this.get(r);if(a){var i=a.getBBox();return{x:i.centerX,y:i.centerY}}return this.get(n)},t.prototype.init=function(){s.prototype.init.call(this),this.setSource(this.get("source")),this.setTarget(this.get("target"))},t.prototype.getShapeCfg=function(e,r){var n=this,a=n.get("linkCenter"),i=(r==null?void 0:r.includes("move"))?e:s.prototype.getShapeCfg.call(this,e);if(a)i.startPoint=n.getEndCenter("source"),i.endPoint=n.getEndCenter("target");else{var o=i.controlPoints||n.getControlPointsByCenter(i);i.startPoint=n.getLinkPoint("source",e,o),i.endPoint=n.getLinkPoint("target",e,o)}return i.sourceNode=n.get("sourceNode"),i.targetNode=n.get("targetNode"),i},t.prototype.getModel=function(){var e=this.get("model"),r=this.get("source".concat(Ha)),n=this.get("target".concat(Ha));return r?delete e["source".concat(Ha)]:e.source=this.get("start".concat(ni)),n?delete e["target".concat(Ha)]:e.target=this.get("end".concat(ni)),!(0,M.isString)(e.source)&&!(0,M.isPlainObject)(e.source)&&(e.source=e.source.getID()),!(0,M.isString)(e.target)&&!(0,M.isPlainObject)(e.target)&&(e.target=e.target.getID()),e},t.prototype.setSource=function(e){this.setEnd("source",e),this.set("source",e)},t.prototype.setTarget=function(e){this.setEnd("target",e),this.set("target",e)},t.prototype.getSource=function(){return this.get("source")},t.prototype.getTarget=function(){return this.get("target")},t.prototype.updatePosition=function(){return!1},t.prototype.update=function(e,r){r===void 0&&(r=void 0);var n=this.get("model"),a=n.visible,i=e.visible;a!==i&&i!==void 0&&this.changeVisibility(i);var o=this.get("source"),u=this.get("target");if(!(!o||o.destroyed||!u||u.destroyed)){var f=this.get("styles");if(e.stateStyles){var c=e.stateStyles;(0,M.mix)(f,c),delete e.stateStyles}Object.assign(n,e),this.updateShape(r),this.afterUpdate(),this.clearCache()}},t.prototype.destroy=function(){var e=this.get("source".concat(Ha)),r=this.get("target".concat(Ha));e&&!e.destroyed&&e.removeEdge(this),r&&!r.destroyed&&r.removeEdge(this),s.prototype.destroy.call(this)},t}(On),wi=Oi,Li="anchorPointsCache",Ri="bboxCache",wa=function(s){(0,T.__extends)(t,s);function t(){return s!==null&&s.apply(this,arguments)||this}return t.prototype.getNearestPoint=function(e,r){for(var n=0,a=e[0],i=ns(e[0],r),o=0;o-1&&r.splice(n,1)},t.prototype.clearCache=function(){this.set(Ri,null),this.set(Li,null)},t.prototype.getUpdateType=function(e){var r,n,a,i,o;if(!!e){var u=!(0,M.isNil)(e.x),f=!(0,M.isNil)(e.y),c=Object.keys(e);if(c.length===1&&(u||f)||c.length===2&&u&&f)return"move";if((0,M.isNumber)(e.x)||(0,M.isNumber)(e.y)||e.type||e.anchorPoints||e.size||(e==null?void 0:e.style)&&(((r=e==null?void 0:e.style)===null||r===void 0?void 0:r.r)||((n=e==null?void 0:e.style)===null||n===void 0?void 0:n.width)||((a=e==null?void 0:e.style)===null||a===void 0?void 0:a.height)||((i=e==null?void 0:e.style)===null||i===void 0?void 0:i.rx)||((o=e==null?void 0:e.style)===null||o===void 0?void 0:o.ry)))return"bbox|label";var v=c.includes("label")||c.includes("labelCfg");return v?"style|label":"style"}},t.prototype.setState=function(e,r){var n=this;if(this.optimize){s.prototype.setState.call(this,e,r);return}this.runWithBBoxAffected(function(){return s.prototype.setState.call(n,e,r)})},t.prototype.clearStates=function(e){var r=this;if(this.optimize){s.prototype.clearStates.call(this,e);return}this.runWithBBoxAffected(function(){return s.prototype.clearStates.call(r,e)})},t.prototype.runWithBBoxAffected=function(e){var r=["r","width","height","rx","ry","lineWidth"],n=this.getKeyShape().attr(),a={};Object.keys(this.getKeyShape().attr()).forEach(function(f){r.includes(f)&&(a[f]=n[f])}),e();for(var i=this.getKeyShape().attr(),o=0;o-1?(r.splice(n,1),!0):!1}},t.prototype.removeNode=function(e){if(!!e){var r=this.getNodes(),n=r.indexOf(e);return n>-1?(r.splice(n,1),!0):!1}},t.prototype.getUpdateType=function(e){},t.prototype.getBBox=function(){this.set(ss,null);var e=this.calculateCanvasBBox();return e},t.prototype.clearCache=function(){this.set(ms,null),this.set(ss,null),this.set(js,null)},t.prototype.destroy=function(){if(!this.destroyed){var e=this.get("animate"),r=this.get("group");e&&r.stopAnimate(),r.shapeMap={},this.clearCache(),this.set(No,null),this.set("bbox",null),r.remove(),this._cfg=null,this.destroyed=!0}},t}(Za),Pf=Nf,Yu="node",Hu="edge",kf="vedge",Ys="combo",Rf="default",Mu="Mapper",es="stateStyles",Bf=function(){function s(t){var e=this;this.edgeToBeUpdateMap={},this.throttleRefresh=(0,M.throttle)(function(r){var n=e.graph;if(!(!n||n.get("destroyed"))){var a=e.edgeToBeUpdateMap;if(!!a){var i=Object.values(a);!i.length||(i.forEach(function(o){var u=o.edge;if(!(!u||u.destroyed)){var f=u.getSource(),c=u.getTarget();!f||f.destroyed||!c||c.destroyed||u.refresh(o.updateType)}}),e.edgeToBeUpdateMap={})}}},16,{trailing:!0,leading:!0}),this.graph=t,this.destroyed=!1}return s.prototype.addItem=function(t,e){var r=this.graph,n=t===kf?Hu:t,a=r.get("".concat(n,"Group"))||r.get("group"),i=(0,M.upperFirst)(n),o=null,u=r.get(n+(0,M.upperFirst)(es))||{},f=r.get(Rf+i);e[es]&&(u=e[es]),f&&(0,M.each)(f,function(Se,De){(0,M.isObject)(Se)&&!(0,M.isArray)(Se)?e[De]=(0,M.deepMix)({},Se,e[De]):(0,M.isArray)(Se)?e[De]=e[De]||(0,M.clone)(f[De]):e[De]=e[De]||f[De]});var c=r.get(n+Mu);if(c){var v=c(e);v[es]&&(u=v[es],delete v[es]),(0,M.each)(v,function(Se,De){(0,M.isObject)(Se)&&!(0,M.isArray)(Se)?e[De]=(0,M.deepMix)({},e[De],Se):e[De]=v[De]||e[De]})}if(r.emit("beforeadditem",{type:t,model:e}),t===Hu||t===kf){var I=void 0,w=void 0;if(I=e.source,w=e.target,I&&(0,M.isString)(I)&&(I=r.findById(I)),w&&(0,M.isString)(w)&&(w=r.findById(w)),!I||!w){console.warn("The source or target node of edge ".concat(e.id," does not exist!"));return}I.getType&&I.getType()==="combo"&&(e.isComboEdge=!0),w.getType&&w.getType()==="combo"&&(e.isComboEdge=!0),o=new wi({model:e,source:I,target:w,styles:u,linkCenter:r.get("linkCenter"),group:a.addGroup()})}else if(t===Yu)o=new Za({model:e,styles:u,group:a.addGroup()});else if(t===Ys){var O=e.children,z=ys(O,r),Z=void 0,J=void 0;if(isNaN(z.x)?isNaN(e.x)&&(Z=Math.random()*100):Z=z.x,isNaN(z.y)?isNaN(e.y)&&(J=Math.random()*100):J=z.y,isNaN(e.x)||isNaN(e.y))e.x=Z,e.y=J;else{var re=e.x-Z,ue=e.y-J;this.updateComboSucceeds(e.id,re,ue,O)}var Ee=a.addGroup();Ee.setZIndex(e.depth),o=new Pf({model:e,styles:u,animate:r.get("animate"),bbox:e.collapsed?ys([],r):z,group:Ee}),!e.collapsed&&o.getKeyShape().get("type")==="circle"&&(z.width=Math.hypot(z.height,z.width),z.height=z.width,o.set("bbox",z),o.refresh());var Ie=o.getModel();(O||[]).forEach(function(Se){var De=r.findById(Se.id);o.addChild(De),Se.depth=Ie.depth+2})}if(o)return o.setOptimize(r.getNodes().length>r.get("optimizeThreshold")),r.get("".concat(t,"s")).push(o),r.get("itemMap")[o.get("id")]=o,r.emit("afteradditem",{item:o,model:e}),o},s.prototype.updateItem=function(t,e){var r=this,n,a,i=this.graph;if((0,M.isString)(t)&&(t=i.findById(t)),!(!t||t.destroyed)){var o="";t.getType&&(o=t.getType());var u=i.get(o+Mu),f=t.getModel(),c=f.x,v=f.y,I=t.getUpdateType(e);if(u){var w=(0,M.deepMix)({},f,e),O=u(w),z=(0,M.deepMix)({},f,O,e);O[es]&&(t.set("styles",z[es]),delete z[es]),(0,M.each)(z,function(rt,wt){e[wt]=rt})}else(0,M.each)(e,function(rt,wt){f[wt]&&(0,M.isObject)(rt)&&!(0,M.isArray)(rt)&&(e[wt]=(0,T.__assign)((0,T.__assign)({},f[wt]),e[wt]))});if(i.emit("beforeupdateitem",{item:t,cfg:e}),o===Hu){if(e.source){var Z=e.source;(0,M.isString)(Z)&&(Z=i.findById(Z)),t.setSource(Z)}if(e.target){var J=e.target;(0,M.isString)(J)&&(J=i.findById(J)),t.setTarget(J)}t.update(e)}else if(o===Yu){t.update(e,I);var re=t.getEdges();I==="move"?(0,M.each)(re,function(rt){r.edgeToBeUpdateMap[rt.getID()]={edge:rt,updateType:I},r.throttleRefresh()}):(I==null?void 0:I.includes("bbox"))&&(0,M.each)(re,function(rt){rt.refresh(I)})}else if(o===Ys){if(t.update(e,I),!isNaN(e.x)||!isNaN(e.y)){var ue=e.x-c||0,Ee=e.y-v||0;this.updateComboSucceeds(f.id,ue,Ee)}var Ie=t.getEdges(),Se=(I==null?void 0:I.includes("bbox"))||I==="move";if(Se&&o===Ys){var De=t.get("shapeFactory"),$e=f.type||"circle",ft=f.animate===void 0||e.animate===void 0?(a=(n=De[$e])===null||n===void 0?void 0:n.options)===null||a===void 0?void 0:a.animate:f.animate||e.animate;ft?setTimeout(function(){if(!(!t||t.destroyed)){var rt=t.getKeyShape();!rt||rt.destroyed||(0,M.each)(Ie,function(wt){wt&&!wt.destroyed&&wt.refresh()})}},201):(0,M.each)(Ie,function(rt){rt.refresh()})}}t.setOptimize(i.getNodes().length>i.get("optimizeThreshold")),i.emit("afterupdateitem",{item:t,cfg:e})}},s.prototype.updateCombo=function(t,e,r){var n=this,a,i,o=this.graph;if((0,M.isString)(t)&&(t=o.findById(t)),!(!t||t.destroyed)){var u=t.getModel(),f=ys(e,o,t),c=f.x,v=f.y;t.set("bbox",f);var I=c,w=v;r?(I=isNaN(u.x)?c:u.x,w=isNaN(u.y)?v:u.y):(I=isNaN(c)?u.x:c,w=isNaN(v)?u.y:v),t.update({x:I,y:w});var O=t.get("shapeFactory"),z=u.type||"circle",Z=u.animate===void 0?(i=(a=O[z])===null||a===void 0?void 0:a.options)===null||i===void 0?void 0:i.animate:u.animate;Z?setTimeout(function(){if(!(!t||t.destroyed)){var J=t.getKeyShape();!J||J.destroyed||(t.getShapeCfg(u),n.updateComboEdges(t))}},201):this.updateComboEdges(t)}},s.prototype.updateComboEdges=function(t){for(var e,r,n=t.getEdges()||[],a=0;a-1&&i.splice(o,1),a===Hu){var u=r.get("v".concat(a,"s")),f=u.indexOf(t);f>-1&&u.splice(f,1)}var c=t.get("id"),v=r.get("itemMap");delete v[c];var I=r.get("comboTrees"),w=t.get("id");if(a===Yu){var O=t.getModel().comboId;if(I&&O){var z=I,Z=!1;I.forEach(function(Se){Z||Gi(Se,function(De){if(De.id===w&&z){var $e=z.indexOf(De);return z.splice($e,1),Z=!0,!1}return z=De.children,!0})})}for(var J=t.getEdges(),re=J.length-1;re>=0;re--)r.removeItem(J[re],!1);O&&r.updateCombo(O)}else if(a===Ys){var ue=t.getModel().parentId,Ee,Ie=!1;(I||[]).forEach(function(De){Ie||Gi(De,function($e){return $e.id===w?(Ee=$e,Ie=!0,!1):!0})}),Ee.removed=!0,Ee&&Ee.children&&Ee.children.forEach(function(De){e.removeItem(De.id)});for(var J=t.getEdges(),re=J.length;re>=0;re--)r.removeItem(J[re],!1);ue&&r.updateCombo(ue)}t.destroy(),r.emit("afterremoveitem",{item:n,type:a})}},s.prototype.setItemState=function(t,e,r){var n=this.graph,a=e;(0,M.isString)(r)&&(a="".concat(e,":").concat(r)),!(t.hasState(a)===r&&r||(0,M.isString)(r)&&t.hasState(a))&&(n.emit("beforeitemstatechange",{item:t,state:a,enabled:r}),t.setState(e,r),n.autoPaint(),n.emit("afteritemstatechange",{item:t,state:a,enabled:r}))},s.prototype.priorityState=function(t,e){var r=this.graph,n=t;(0,M.isString)(t)&&(n=r.findById(t)),this.setItemState(n,e,!1),this.setItemState(n,e,!0)},s.prototype.clearItemStates=function(t,e){var r=this.graph;(0,M.isString)(t)&&(t=r.findById(t)),r.emit("beforeitemstatesclear",{item:t,states:e}),t.clearStates(e),r.emit("afteritemstatesclear",{item:t,states:e})},s.prototype.refreshItem=function(t){var e=this.graph;(0,M.isString)(t)&&(t=e.findById(t)),e.emit("beforeitemrefresh",{item:t}),t.refresh(),e.emit("afteritemrefresh",{item:t})},s.prototype.addCombos=function(t,e){var r=this,n=this.graph;(t||[]).forEach(function(i){Lo(i,function(o){var u;return e.forEach(function(f){f.id===o.id&&(f.children=o.children,f.depth=o.depth,u=f)}),u&&r.addItem("combo",u),!0})});var a=n.get("comboGroup");a&&a.sort()},s.prototype.changeItemVisibility=function(t,e){var r=this,n=this.graph;if((0,M.isString)(t)&&(t=n.findById(t)),!t){console.warn("The item to be shown or hidden does not exist!");return}if(n.emit("beforeitemvisibilitychange",{item:t,visible:e}),t.changeVisibility(e),t.getType&&t.getType()===Yu){var a=t.getEdges();(0,M.each)(a,function(c){e&&!(c.get("source").isVisible()&&c.get("target").isVisible())||r.changeItemVisibility(c,e)})}else if(t.getType&&t.getType()===Ys){var i=n.get("comboTrees"),o=t.get("id"),u=[],f=!1;(i||[]).forEach(function(v){f||!v.children||v.children.length===0||Gi(v,function(I){return I.id===o?(u=I.children,f=!0,!1):!0})}),u&&(!e||e&&!t.getModel().collapsed)&&u.forEach(function(v){var I=n.findById(v.id);r.changeItemVisibility(I,e)});var a=t.getEdges();(0,M.each)(a,function(v){e&&!(v.get("source").isVisible()&&v.get("target").isVisible())||r.changeItemVisibility(v,e)})}return n.emit("afteritemvisibilitychange",{item:t,visible:e}),t},s.prototype.destroy=function(){this.graph=null,this.destroyed=!0},s}(),cc=Bf,Hs=function(){function s(t){this.graph=t,this.destroyed=!1}return s.prototype.updateState=function(t,e,r){var n=this.graph.get("states"),a=e;(0,M.isString)(r)&&(a="".concat(e,":").concat(r)),n[a]||(n[a]=[]),r?n[a].push(t):n[a]=n[a].filter(function(i){return i!==t}),this.graph.set("states",n),this.graph.emit("graphstatechange",{states:n})},s.prototype.updateStates=function(t,e,r){var n=this.graph.get("states"),a=(0,M.isString)(e)?[e]:e;a.forEach(function(i){var o=i;n[o]||(n[o]=[]),(0,M.isString)(r)&&(o="".concat(i,":").concat(r)),r?n[o].push(t):n[o]=n[o].filter(function(u){return u!==t})}),this.graph.set("states",n),this.graph.emit("graphstatechange",{states:e})},s.prototype.destroy=function(){this.graph=null,this.destroyed=!0},s}(),Ff=Hs,en=/[MLHVQTCSAZ]([^MLHVQTCSAZ]*)/ig,iu=/[^\s\,]+/ig;function _a(s){var t=s||[];if(isArray(t))return t;if(isString(t))return t=t.match(en),each(t,function(e,r){if(e=e.match(iu),e[0].length>1){var n=e[0].charAt(0);e.splice(1,0,e[0].substr(1)),e[0]=n}each(e,function(a,i){isNaN(a)||(e[i]=+a)}),t[r]=e}),t}var Gf=null;function Cu(s,t,e,r){var n=[],a=!!r,i,o,u,f,c,v,I;if(a){u=r[0],f=r[1];for(var w=0,O=s.length;w=0;u--)i=a[u].index,a[u].type==="add"?s.splice(i,0,[].concat(s[i])):s.splice(i,1)}if(r=s.length,r2&&(e.push([n].concat(i.splice(0,2))),o="l",n=n==="m"?"l":"L"),o==="o"&&i.length===1&&e.push([n,i[0]]),o==="r")e.push([n].concat(i));else for(;i.length>=t[o]&&(e.push([n].concat(i.splice(0,t[o]))),!!t[o]););return""}),e}var Me=/[a-z]/;function Ge(s,t){return[t[0]+(t[0]-s[0]),t[1]+(t[1]-s[1])]}function qe(s){var t=parsePathString(s);if(!t||!t.length)return[["M",0,0]];for(var e=!1,r=0;r=0){e=!0;break}}if(!e)return t;var a=[],i=0,o=0,u=0,f=0,c=0,v,I,w=t[0];(w[0]==="M"||w[0]==="m")&&(i=+w[1],o=+w[2],u=i,f=o,c++,a[0]=["M",i,o]);for(var r=c,O=t.length;r1&&(a=1),a<-1&&(a=-1),n*Math.acos(a)},Ar=function(s,t,e,r,n,a,i,o,u,f,c,v){var I=Math.pow(n,2),w=Math.pow(a,2),O=Math.pow(c,2),z=Math.pow(v,2),Z=I*w-I*z-w*O;Z<0&&(Z=0),Z/=I*z+w*O,Z=Math.sqrt(Z)*(i===o?-1:1);var J=Z*n/a*v,re=Z*-a/n*c,ue=f*J-u*re+(s+e)/2,Ee=u*J+f*re+(t+r)/2,Ie=(c-J)/n,Se=(v-re)/a,De=(-c-J)/n,$e=(-v-re)/a,ft=Ir(1,0,Ie,Se),rt=Ir(Ie,Se,De,$e);return o===0&&rt>0&&(rt-=Lt),o===1&&rt<0&&(rt+=Lt),[ue,Ee,ft,rt]},$r=function(s){var t=s.px,e=s.py,r=s.cx,n=s.cy,a=s.rx,i=s.ry,o=s.xAxisRotation,u=o===void 0?0:o,f=s.largeArcFlag,c=f===void 0?0:f,v=s.sweepFlag,I=v===void 0?0:v,w=[];if(a===0||i===0)return[{x1:0,y1:0,x2:0,y2:0,x:r,y:n}];var O=Math.sin(u*Lt/360),z=Math.cos(u*Lt/360),Z=z*(t-r)/2+O*(e-n)/2,J=-O*(t-r)/2+z*(e-n)/2;if(Z===0&&J===0)return[{x1:0,y1:0,x2:0,y2:0,x:r,y:n}];a=Math.abs(a),i=Math.abs(i);var re=Math.pow(Z,2)/Math.pow(a,2)+Math.pow(J,2)/Math.pow(i,2);re>1&&(a*=Math.sqrt(re),i*=Math.sqrt(re));var ue=Ar(t,e,r,n,a,i,c,I,O,z,Z,J),Ee=ue[0],Ie=ue[1],Se=ue[2],De=ue[3],$e=Math.abs(De)/(Lt/4);Math.abs(1-$e)<1e-7&&($e=1);var ft=Math.max(Math.ceil($e),1);De/=ft;for(var rt=0;rt7){s[e].shift();for(var r=s[e],n=e;r.length;)t[e]="A",s.splice(n+=1,0,["C"].concat(r.splice(0,6)));s.splice(e,1)}}var Yn=function(s,t,e,r,n){var a=-3*t+9*e-9*r+3*n,i=s*a+6*t-12*e+6*r;return s*i-3*t+3*e},Rn=function(s,t,e,r,n,a,i,o,u){u===null&&(u=1),u=u>1?1:u<0?0:u;for(var f=u/2,c=12,v=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],I=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],w=0,O=0;O0&&w<1&&u.push(w);continue}var z=v*v-4*I*c,Z=Math.sqrt(z);if(!(z<0)){var J=(-v+Z)/(2*c);J>0&&J<1&&u.push(J);var re=(-v-Z)/(2*c);re>0&&re<1&&u.push(re)}}for(var ue=u.length,Ee=ue,Ie;ue--;)w=u[ue],Ie=1-w,f[0][ue]=Ie*Ie*Ie*s+3*Ie*Ie*w*e+3*Ie*w*w*n+w*w*w*i,f[1][ue]=Ie*Ie*Ie*t+3*Ie*Ie*w*r+3*Ie*w*w*a+w*w*w*o;return f[0][Ee]=s,f[1][Ee]=t,f[0][Ee+1]=i,f[1][Ee+1]=o,f[0].length=f[1].length=Ee+2,{min:{x:Math.min.apply(0,f[0]),y:Math.min.apply(0,f[1])},max:{x:Math.max.apply(0,f[0]),y:Math.max.apply(0,f[1])}}},wn=function(s,t,e,r,n,a,i,o){if(!(Math.max(s,e)Math.max(n,i)||Math.max(t,r)Math.max(a,o))){var u=(s*r-t*e)*(n-i)-(s-e)*(n*o-a*i),f=(s*r-t*e)*(a-o)-(t-r)*(n*o-a*i),c=(s-e)*(a-o)-(t-r)*(n-i);if(!!c){var v=u/c,I=f/c,w=+v.toFixed(2),O=+I.toFixed(2);if(!(w<+Math.min(s,e).toFixed(2)||w>+Math.max(s,e).toFixed(2)||w<+Math.min(n,i).toFixed(2)||w>+Math.max(n,i).toFixed(2)||O<+Math.min(t,r).toFixed(2)||O>+Math.max(t,r).toFixed(2)||O<+Math.min(a,o).toFixed(2)||O>+Math.max(a,o).toFixed(2)))return{x:v,y:I}}}},Wn=function(s,t,e){return t>=s.x&&t<=s.x+s.width&&e>=s.y&&e<=s.y+s.height},Hn=function(s,t,e,r){return s===null&&(s=t=e=r=0),t===null&&(t=s.y,e=s.width,r=s.height,s=s.x),{x:s,y:t,width:e,w:e,height:r,h:r,x2:s+e,y2:t+r,cx:s+e/2,cy:t+r/2,r1:Math.min(e,r)/2,r2:Math.max(e,r)/2,r0:Math.sqrt(e*e+r*r)/2,path:rectPath(s,t,e,r),vb:[s,t,e,r].join(" ")}},Cn=function(s,t){return s=Hn(s),t=Hn(t),Wn(t,s.x,s.y)||Wn(t,s.x2,s.y)||Wn(t,s.x,s.y2)||Wn(t,s.x2,s.y2)||Wn(s,t.x,t.y)||Wn(s,t.x2,t.y)||Wn(s,t.x,t.y2)||Wn(s,t.x2,t.y2)||(s.xt.x||t.xs.x)&&(s.yt.y||t.ys.y)},ga=function(s,t,e,r,n,a,i,o){isArray(s)||(s=[s,t,e,r,n,a,i,o]);var u=qn.apply(null,s);return Hn(u.min.x,u.min.y,u.max.x-u.min.x,u.max.y-u.min.y)},ka=function(s,t,e,r,n,a,i,o,u){var f=1-u,c=Math.pow(f,3),v=Math.pow(f,2),I=u*u,w=I*u,O=c*s+v*3*u*e+f*3*u*u*n+w*i,z=c*t+v*3*u*r+f*3*u*u*a+w*o,Z=s+2*u*(e-s)+I*(n-2*e+s),J=t+2*u*(r-t)+I*(a-2*r+t),re=e+2*u*(n-e)+I*(i-2*n+e),ue=r+2*u*(a-r)+I*(o-2*a+r),Ee=f*s+u*e,Ie=f*t+u*r,Se=f*n+u*i,De=f*a+u*o,$e=90-Math.atan2(Z-re,J-ue)*180/Math.PI;return{x:O,y:z,m:{x:Z,y:J},n:{x:re,y:ue},start:{x:Ee,y:Ie},end:{x:Se,y:De},alpha:$e}},ui=function(s,t,e){var r=ga(s),n=ga(t);if(!Cn(r,n))return e?0:[];for(var a=Rn.apply(0,s),i=Rn.apply(0,t),o=~~(a/8),u=~~(i/8),f=[],c=[],v={},I=e?0:[],w=0;w=0&&De<=1&&$e>=0&&$e<=1&&(e?I++:I.push({x:Se.x,y:Se.y,t1:De,t2:$e}))}}return I},Ya=function(s,t,e){s=path2Curve(s),t=path2Curve(t);for(var r,n,a,i,o,u,f,c,v,I,w=e?0:[],O=0,z=s.length;O1&&(e*=Math.sqrt(w),r*=Math.sqrt(w));var O=e*e*(I*I)+r*r*(v*v),z=O?Math.sqrt((e*e*(r*r)-O)/O):1;a===i&&(z*=-1),isNaN(z)&&(z=0);var Z=r?z*e*I/r:0,J=e?z*-r*v/e:0,re=(o+f)/2+Math.cos(n)*Z-Math.sin(n)*J,ue=(u+c)/2+Math.sin(n)*Z+Math.cos(n)*J,Ee=[(v-Z)/e,(I-J)/r],Ie=[(-1*v-Z)/e,(-1*I-J)/r],Se=Ni([1,0],Ee),De=Ni(Ee,Ie);return Di(Ee,Ie)<=-1&&(De=Math.PI),Di(Ee,Ie)>=1&&(De=0),i===0&&De>0&&(De=De-2*Math.PI),i===1&&De<0&&(De=De+2*Math.PI),{cx:re,cy:ue,rx:Es(s,[f,c])?0:e,ry:Es(s,[f,c])?0:r,startAngle:Se,endAngle:Se+De,xRotation:n,arcFlag:a,sweepFlag:i}}function bs(s,t){return[t[0]+(t[0]-s[0]),t[1]+(t[1]-s[1])]}function vf(s){s=parsePath(s);for(var t=[],e=null,r=null,n=null,a=0,i=s.length,o=0;o1){var i=s[0],o=s[e-1];t.push({from:{x:o[0],y:o[1]},to:{x:i[0],y:i[1]}})}return t}function xs(s,t){var e=!1;return each(s,function(r){if(getLineIntersect(r.from,r.to,t.from,t.to))return e=!0,!1}),e}function Zu(s){var t=s.map(function(r){return r[0]}),e=s.map(function(r){return r[1]});return{minX:Math.min.apply(null,t),maxX:Math.max.apply(null,t),minY:Math.min.apply(null,e),maxY:Math.max.apply(null,e)}}function lc(s,t){return!(t.minX>s.maxX||t.maxXs.maxY||t.maxY0?i-1:e-1,u=Hr.normalize([0,0],Hr.add([0,0],a[o].v,Hr.scale([0,0],a[i].v,-1)));a[i].p=Hr.add([0,0],a[i].p,Hr.scale([0,0],u,t))}return a.map(function(f){var c=f.p;return{x:c[0],y:c[1]}})}var wl=function(t,e){for(var r=[],n=0;n<5;n++){var a=Math.cos((18+72*n)/180*Math.PI)*t,i=Math.sin((18+72*n)/180*Math.PI)*t,o=Math.cos((54+72*n)/180*Math.PI)*e,u=Math.sin((54+72*n)/180*Math.PI)*e;n===0?r.push(["M",a,-i]):r.push(["L",a,-i]),r.push(["L",o,-u])}return r.push(["Z"]),r},Au=function(t,e,r){return(t.y-r.y)*(e.x-r.x)-(t.x-r.x)*(e.y-r.y)},Ou=function(t){var e=t.map(function(v){return{x:v.getModel().x,y:v.getModel().y}});e.sort(function(v,I){return v.x===I.x?v.y-I.y:v.x-I.x});for(var r={},n=e.length-1;n>=0;n--){var a=e[n],i=a.x,o=a.y;r["".concat(i,"-").concat(o)]&&e.splice(n,1),r["".concat(i,"-").concat(o)]=!0}if(e.length===1)return e;for(var u=[],n=0;n=2&&Au(u[u.length-2],u[u.length-1],e[n])<=0;)u.pop();u.push(e[n])}for(var f=[],n=e.length-1;n>=0;n--){for(;f.length>=2&&Au(f[f.length-2],f[f.length-1],e[n])<=0;)f.pop();f.push(e[n])}f.pop(),u.pop();var c=u.concat(f);return c},Yc={maxRoutingIterations:100,maxMarchingIterations:100,pixelGroupSize:2,edgeR0:10,edgeR1:10,nodeR0:5,nodeR1:10,morphBuffer:5,threshold:.001,skip:16,nodeInfluenceFactor:1,edgeInfluenceFactor:1,negativeNodeInfluenceFactor:-.5};function qu(s,t,e){var r=!1,n=function(u,f){return t.cells[u+f*t.width]},a=function(u,f){var c=0;return n(u-1,f-1)>=e&&(c+=1),n(u,f-1)>e&&(c+=2),n(u-1,f)>e&&(c+=4),n(u,f)>e&&(c+=8),c},i=function(u,f){for(var c=u,v=f,I,w,O=0;O-1){if(!(s[0].x!==c||s[0].y!==v))return!0}else s.push({x:c,y:v});var z=a(c,v);switch(z){case-1:return console.warn("Marched out of bounds"),!0;case 0:case 3:case 2:case 7:c++;break;case 12:case 14:case 4:c--;break;case 6:I===0&&(w===-1?c-=1:c+=1);break;case 1:case 13:case 5:v--;break;case 9:I===1&&(w===0?v-=1:v+=1);break;case 10:case 8:case 11:v++;break;default:return console.warn("Marching squares invalid state: ".concat(z)),!0}}};this.march=function(){for(var o=0;oe&&a(o,u)!==15&&(r=i(o,u));return r}}var Hc=function(t,e,r){var n=Math.ceil(t/r),a=Math.ceil(e/r),i=new Float32Array(Math.max(0,n*a)).fill(0);return{cells:i,width:n,height:a}},Ju=function(t,e,r){var n=null,a=Number.POSITIVE_INFINITY;return e.forEach(function(i){var o={x:t.getModel().x,y:t.getModel().y},u={x:i.getModel().x,y:i.getModel().y},f=so(o,u),c=new oo(o.x,o.y,u.x,u.y),v=r.reduce(function(I,w){return gs(w,c)>0?I+1:I},0);f*Math.pow(v+1,2)=0&&i=1;)Ie/=1.5,Se=pc(O,Ie,Z,Ee),De=f(Se,i)||f(Se,a),$e=c(Se,e);Se&&!De&&(!Ee||!$e)&&(i.push(new oo(w.x1,w.y1,Se.x,Se.y)),i.push(new oo(Se.x,Se.y,w.x2,w.y2)),o=!0)};re(!0),o||re(!1)}}o||a.push(w),u+=1};!o&&i.length;)v()}for(;i.length;)a.push(i.pop());return a};function vc(s,t,e,r,n){var a=Ju(s,e,t);if(a===null)return[];var i=function(v){for(var I=[];v.length>0;){var w=v.pop();if(v.length===0){I.push(w);break}var O=v.pop(),z=new oo(w.x1,w.y1,O.x2,O.y2),Z=Xf(t,z);Z?(I.push(w),v.push(O)):v.push(z)}return I},o=new oo(s.getModel().x,s.getModel().y,a.getModel().x,a.getModel().y),u=dc(o,t,r,n),f=i(u);return f}var hc=function(t,e,r){var n=Object.assign(Yc,r),a=vi(t.map(function(re){return{x:re.getModel().x,y:re.getModel().y}}));t=t.sort(function(re,ue){return so({x:re.getModel().x,y:re.getModel().y},a)-so({x:ue.getModel().x,y:ue.getModel().y},a)});var i=[],o=[];t.forEach(function(re){var ue=vc(re,e,i,n.maxRoutingIterations,n.morphBuffer);ue.forEach(function(Ee){o.push(Ee)}),i.push(re)});for(var u=gc(t,o,n.nodeR0),f=Hc(u.width,u.height,n.pixelGroupSize),c=[],v=[],I=0;I1)for(O=Math.floor(w.length/n.skip);O<3&&n.skip>1;)n.skip-=1,O=Math.floor(w.length/n.skip);for(var z=0,Z=0;Z0)n.nonMemberInfluenceFactor*=.8;else break}return v};function gc(s,t,e){var r={minX:Number.POSITIVE_INFINITY,minY:Number.POSITIVE_INFINITY,maxX:Number.NEGATIVE_INFINITY,maxY:Number.NEGATIVE_INFINITY,width:0,height:0,x:0,y:0},n=[];s.forEach(function(u){n.push(u.getBBox())}),t.forEach(function(u){n.push(u.getBBox())});for(var a=0,i=n;ar.maxX?o.maxX:r.maxX)+e,r.maxY=(o.maxY>r.maxY?o.maxY:r.maxY)+e}return r.width=r.maxX-r.minX,r.height=r.maxY-r.minY,r.x=r.minX,r.y=r.minY,r}function Vf(s,t,e,r,n,a){function i(w,O){var z=Math.floor((w-O)/a.pixelGroupSize);return z<0?0:z}function o(w,O){return w*a.pixelGroupSize+O}var u=(a.nodeR0-a.nodeR1)*(a.nodeR0-a.nodeR1),f=(a.edgeR0-a.edgeR1)*(a.edgeR0-a.edgeR1),c=function(O,z){var Z=Math.min(i(O.minX,z+r.minX),n.width),J=Math.min(i(O.minY,z+r.minY),n.height),re=Math.min(i(O.maxX,-z+r.minX),n.width),ue=Math.min(i(O.maxY,-z+r.minY),n.height);return[Z,J,re,ue]},v=function(O,z){for(var Z=O.getBBox(),J=c(Z,a.nodeR1),re=J[0],ue=J[1],Ee=J[2],Ie=J[3],Se=ue;Seu.y?r?f.topLeft:f.bottomRight:r?f.topRight:f.bottomLeft:i.yo.x?r?f.topLeft:f.bottomRight:r?f.bottomLeft:f.topRight:a.x0?this.cfg.padding+t:10+t,this.cfg.bubbleCfg={nodeR0:this.padding-t,nodeR1:this.padding-t,morphBuffer:this.padding-t}},s.prototype.setType=function(){this.type=this.cfg.type,this.members.length<3&&(this.type="round-convex"),this.type!=="round-convex"&&this.type!=="smooth-convex"&&this.type!=="bubble"&&(console.warn("The hull type should be either round-convex, smooth-convex or bubble, round-convex is used by default."),this.type="round-convex")},s.prototype.calcPath=function(t,e){var r,n,a;switch(this.type){case"round-convex":r=Ou(t),a=pf(r.map(function(i){return[i.x,i.y]}),this.padding),n=pe(a);break;case"smooth-convex":r=Ou(t),r.length===2?(a=pf(r.map(function(i){return[i.x,i.y]}),this.padding),n=pe(a)):r.length>2&&(a=yf(r.map(function(i){return[i.x,i.y]}),this.padding),n=Iu(a));break;case"bubble":r=hc(t,e,this.cfg.bubbleCfg),n=r.length>=2&&Iu(r);break;default:}return n},s.prototype.render=function(){this.group.addShape("path",{attrs:(0,T.__assign)({path:this.path},this.cfg.style),id:this.id,name:this.cfg.id,capture:!1}),this.group.toBack()},s.prototype.addMember=function(t){if(!!t){(0,M.isString)(t)&&(t=this.graph.findById(t)),this.members.push(t);var e=this.nonMembers.indexOf(t);return e>-1&&this.nonMembers.splice(e,1),this.updateData(this.members,this.nonMembers),!0}},s.prototype.addNonMember=function(t){if(!!t){(0,M.isString)(t)&&(t=this.graph.findById(t)),this.nonMembers.push(t);var e=this.members.indexOf(t);return e>-1&&this.members.splice(e,1),this.updateData(this.members,this.nonMembers),!0}},s.prototype.removeMember=function(t){if(!!t){(0,M.isString)(t)&&(t=this.graph.findById(t));var e=this.members.indexOf(t);return e>-1?(this.members.splice(e,1),this.updateData(this.members,this.nonMembers),!0):!1}},s.prototype.removeNonMember=function(t){if(!!t){(0,M.isString)(t)&&(t=this.graph.findById(t));var e=this.nonMembers.indexOf(t);return e>-1?(this.nonMembers.splice(e,1),this.updateData(this.members,this.nonMembers),!0):!1}},s.prototype.updateData=function(t,e){var r=this;this.group.findById(this.id).remove(),t&&(this.members=t.map(function(n){return(0,M.isString)(n)?r.graph.findById(n):n})),e&&(this.nonMembers=e.map(function(n){return(0,M.isString)(n)?r.graph.findById(n):n})),this.path=this.calcPath(this.members,this.nonMembers),this.render()},s.prototype.updateStyle=function(t){var e=this.group.findById(this.id);e.attr((0,T.__assign)({},t))},s.prototype.updateCfg=function(t){var e=this;this.cfg=(0,M.deepMix)(this.cfg,t),this.id=this.cfg.id,this.group=this.cfg.group,t.members&&(this.members=this.cfg.members.map(function(r){return(0,M.isString)(r)?e.graph.findById(r):r})),t.nonMembers&&(this.nonMembers=this.cfg.nonMembers.map(function(r){return(0,M.isString)(r)?e.graph.findById(r):r})),this.setPadding(),this.setType(),this.path=this.calcPath(this.members,this.nonMembers),this.render()},s.prototype.contain=function(t){var e=this,r;(0,M.isString)(t)?r=this.graph.findById(t):r=t;var n,a=r.getKeyShape();if(r.get("type")==="path")n=Qu(a.attr("path"));else{var i=a.getCanvasBBox();n=[[i.minX,i.minY],[i.maxX,i.minY],[i.maxX,i.maxY],[i.minX,i.maxY]]}return n=n.map(function(o){var u=e.graph.getPointByCanvas(o[0],o[1]);return[u.x,u.y]}),Ua(n,Qu(this.path))},s.prototype.destroy=function(){this.group.remove(),this.cfg=null},s}(),yc=Zc,ef=ee.vs,Kc="node",mc=function(s){(0,T.__extends)(t,s);function t(e){var r=s.call(this)||this;return r.sortCombos=(0,M.debounce)(function(){var n=r.get("comboSorted");if(!(!r||r.destroyed||n)){r.set("comboSorted",!0);var a=[],i={},o=r.get("comboTrees");(o||[]).forEach(function(f){Gi(f,function(c){return a[c.depth]?a[c.depth].push(c.id):a[c.depth]=[c.id],i[c.id]=c.depth,!0})});var u=r.getEdges().concat(r.get("vedges"));(u||[]).forEach(function(f){var c=f.getModel(),v=i[c.source]||0,I=i[c.target]||0,w=Math.max(v,I);a[w]?a[w].push(c.id):a[w]=[c.id]}),a.forEach(function(f){if(!(!f||!f.length))for(var c=f.length-1;c>=0;c--){var v=r.findById(f[c]);v&&v.toFront()}})}},500,!1),r.cfg=(0,M.deepMix)(r.getDefaultCfg(),e),r.init(),r.animating=!1,r.destroyed=!1,r.cfg.enabledStack&&(r.undoStack=new no(r.cfg.maxStep),r.redoStack=new no(r.cfg.maxStep)),r}return t.prototype.init=function(){this.initCanvas();var e=new L(this),r=new Su(this),n=new cc(this),a=new Ff(this);this.set({viewController:e,modeController:r,itemController:n,stateController:a}),this.initLayoutController(),this.initEventController(),this.initGroups(),this.initPlugins()},t.prototype.initGroups=function(){var e=this.get("canvas");if(!!e){var r=e.get("el"),n=(r||{}).id,a=n===void 0?"g6":n,i=e.addGroup({id:"".concat(a,"-root"),className:ln.rootContainerClassName});if(this.get("groupByTypes")){var o=i.addGroup({id:"".concat(a,"-edge"),className:ln.edgeContainerClassName}),u=i.addGroup({id:"".concat(a,"-node"),className:ln.nodeContainerClassName}),f=i.addGroup({id:"".concat(a,"-combo"),className:ln.comboContainerClassName});f.toBack(),this.set({nodeGroup:u,edgeGroup:o,comboGroup:f})}var c=i.addGroup({id:"".concat(a,"-delegate"),className:ln.delegateContainerClassName});this.set({delegateGroup:c}),this.set("group",i)}},t.prototype.getDefaultCfg=function(){return{container:void 0,width:void 0,height:void 0,renderer:"canvas",modes:{},plugins:[],data:{},fitViewPadding:10,minZoom:.02,maxZoom:10,event:!0,groupByTypes:!0,directed:!1,autoPaint:!0,nodes:[],edges:[],combos:[],vedges:[],itemMap:{},linkCenter:!1,defaultNode:{},defaultEdge:{},nodeStateStyles:{},edgeStateStyles:{},states:{},animate:!1,animateCfg:{onFrame:void 0,duration:500,easing:"easeLinear"},callback:void 0,enabledStack:!1,maxStep:10,tooltips:[],optimizeThreshold:1e3}},t.prototype.set=function(e,r){return(0,M.isPlainObject)(e)?this.cfg=(0,T.__assign)((0,T.__assign)({},this.cfg),e):this.cfg[e]=r,e==="enabledStack"&&r&&!this.undoStack&&!this.redoStack&&(this.undoStack=new no(this.cfg.maxStep),this.redoStack=new no(this.cfg.maxStep)),this},t.prototype.get=function(e){var r;return(r=this.cfg)===null||r===void 0?void 0:r[e]},t.prototype.getGroup=function(){return this.get("group")},t.prototype.getContainer=function(){return this.get("container")},t.prototype.getMinZoom=function(){return this.get("minZoom")},t.prototype.setMinZoom=function(e){return this.set("minZoom",e)},t.prototype.getMaxZoom=function(){return this.get("maxZoom")},t.prototype.setMaxZoom=function(e){return this.set("maxZoom",e)},t.prototype.getWidth=function(){return this.get("width")},t.prototype.getHeight=function(){return this.get("height")},t.prototype.clearItemStates=function(e,r){(0,M.isString)(e)&&(e=this.findById(e));var n=this.get("itemController");r||(r=e.get("states")),n.clearItemStates(e,r);var a=this.get("stateController");a.updateStates(e,r,!1)},t.prototype.node=function(e){typeof e=="function"&&this.set("nodeMapper",e)},t.prototype.edge=function(e){typeof e=="function"&&this.set("edgeMapper",e)},t.prototype.combo=function(e){typeof e=="function"&&this.set("comboMapper",e)},t.prototype.findById=function(e){return this.get("itemMap")[e]},t.prototype.find=function(e,r){var n,a=this.get("".concat(e,"s"));return(0,M.each)(a,function(i,o){if(r(i,o))return n=i,n}),n},t.prototype.findAll=function(e,r){var n=[];return(0,M.each)(this.get("".concat(e,"s")),function(a,i){r(a,i)&&n.push(a)}),n},t.prototype.findAllByState=function(e,r,n){return n?this.findAll(e,function(a){return a.hasState(r)&&n(a)}):this.findAll(e,function(a){return a.hasState(r)})},t.prototype.translate=function(e,r,n,a){var i=this,o=this.get("group"),u=(0,M.clone)(o.getMatrix());if(u||(u=[1,0,0,0,1,0,0,0,1]),n){var f=Jo({animateCfg:a,callback:function(){return i.emit("viewportchange",{action:"translate",matrix:o.getMatrix()})}});qi(o,{x:o.getCanvasBBox().x+e,y:o.getCanvasBBox().y+r},n,f||{duration:500,easing:"easeCubic"})}else u=ef(u,[["t",e,r]]),o.setMatrix(u),this.emit("viewportchange",{action:"translate",matrix:u}),this.autoPaint()},t.prototype.moveTo=function(e,r,n,a){var i=this.get("group");qi(i,{x:e,y:r},n,a||{duration:500,easing:"easeCubic"}),this.emit("viewportchange",{action:"move",matrix:i.getMatrix()})},t.prototype.fitView=function(e,r,n,a){e&&this.set("fitViewPadding",e);var i=this.get("viewController");r?i.fitViewByRules(r,n,a):i.fitView(n,a),this.autoPaint()},t.prototype.fitCenter=function(e,r){var n=this.get("viewController");n.fitCenter(e,r),this.autoPaint()},t.prototype.addBehaviors=function(e,r){var n=this.get("modeController");return n.manipulateBehaviors(e,r,!0),this},t.prototype.removeBehaviors=function(e,r){var n=this.get("modeController");return n.manipulateBehaviors(e,r,!1),this},t.prototype.updateBehavior=function(e,r,n){var a=this.get("modeController");return a.updateBehavior(e,r,n),this},t.prototype.zoom=function(e,r,n,a){var i=this,o=this.get("group"),u=(0,M.clone)(o.getMatrix())||[1,0,0,0,1,0,0,0,1],f=this.get("minZoom"),c=this.get("maxZoom"),v=this.getZoom()||1,I=v*e,w=e,O=!1;if(f&&Ic&&(w=c/v,O=!0),r?u=ef(u,[["t",-r.x,-r.y],["s",w,w],["t",r.x,r.y]]):u=ef(u,[["s",w,w]]),n){var z=(0,M.clone)(o.getMatrix());z||(z=[1,0,0,0,1,0,0,0,1]);var Z=z[0],J=Z*w,re=Jo({animateCfg:a,callback:function(){return i.emit("viewportchange",{action:"zoom",matrix:o.getMatrix()})}});o.animate(function(ue){if(ue===1)z=u;else{var Ee=si(Z,J,ue)/z[0];r?z=ef(z,[["t",-r.x,-r.y],["s",Ee,Ee],["t",r.x,r.y]]):z=ef(z,[["s",Ee,Ee]])}return{matrix:z}},re)}else o.setMatrix(u),this.emit("viewportchange",{action:"zoom",matrix:u}),this.autoPaint();return!O},t.prototype.zoomTo=function(e,r,n,a){var i=e/this.getZoom();return this.zoom(i,r,n,a)},t.prototype.focusItem=function(e,r,n){var a=this.get("viewController"),i=!1;r?i=!0:r===void 0&&(i=this.get("animate"));var o={};n?o=n:n===void 0&&(o=this.get("animateCfg")),a.focus(e,i,o),this.autoPaint()},t.prototype.focusItems=function(e,r,n,a){var i=this.get("viewController");i.focusItems(e,r,n,a)},t.prototype.autoPaint=function(){this.get("autoPaint")&&this.paint()},t.prototype.paint=function(){this.emit("beforepaint"),this.get("canvas").draw(),this.emit("afterpaint")},t.prototype.getPointByClient=function(e,r){var n=this.get("viewController");return n.getPointByClient(e,r)},t.prototype.getClientByPoint=function(e,r){var n=this.get("viewController");return n.getClientByPoint(e,r)},t.prototype.getPointByCanvas=function(e,r){var n=this.get("viewController");return n.getPointByCanvas(e,r)},t.prototype.getCanvasByPoint=function(e,r){var n=this.get("viewController");return n.getCanvasByPoint(e,r)},t.prototype.getGraphCenterPoint=function(){var e=this.get("group").getCanvasBBox();return{x:(e.minX+e.maxX)/2,y:(e.minY+e.maxY)/2}},t.prototype.getViewPortCenterPoint=function(){return this.getPointByCanvas(this.get("width")/2,this.get("height")/2)},t.prototype.showItem=function(e,r){r===void 0&&(r=!0);var n=this.get("itemController"),a=n.changeItemVisibility(e,!0);if(r&&this.get("enabledStack")){var i=a.getID(),o=a.getType(),u={},f={};switch(o){case"node":u.nodes=[{id:i,visible:!1}],f.nodes=[{id:i,visible:!0}];break;case"edge":u.nodes=[{id:i,visible:!1}],f.edges=[{id:i,visible:!0}];break;case"combo":u.nodes=[{id:i,visible:!1}],f.combos=[{id:i,visible:!0}];break;default:break}this.pushStack("visible",{before:u,after:f})}},t.prototype.hideItem=function(e,r){r===void 0&&(r=!0);var n=this.get("itemController"),a=n.changeItemVisibility(e,!1);if(r&&this.get("enabledStack")){var i=a.getID(),o=a.getType(),u={},f={};switch(o){case"node":u.nodes=[{id:i,visible:!0}],f.nodes=[{id:i,visible:!1}];break;case"edge":u.nodes=[{id:i,visible:!0}],f.edges=[{id:i,visible:!1}];break;case"combo":u.nodes=[{id:i,visible:!0}],f.combos=[{id:i,visible:!1}];break;default:break}this.pushStack("visible",{before:u,after:f})}},t.prototype.refreshItem=function(e){var r=this.get("itemController");r.refreshItem(e)},t.prototype.setAutoPaint=function(e){var r=this;r.set("autoPaint",e);var n=r.get("canvas");n.set("autoDraw",e)},t.prototype.remove=function(e,r){r===void 0&&(r=!0),this.removeItem(e,r)},t.prototype.removeItem=function(e,r){r===void 0&&(r=!0);var n=e;if((0,M.isString)(e)&&(n=this.findById(e)),!n&&(0,M.isString)(e))console.warn("The item ".concat(e," to be removed does not exist!"));else if(n){var a="";if(n.getType&&(a=n.getType()),r&&this.get("enabledStack")){var i=(0,T.__assign)((0,T.__assign)({},n.getModel()),{itemType:a}),o={};switch(a){case"node":{o.nodes=[i],o.edges=[];for(var u=n.getEdges(),f=u.length-1;f>=0;f--)o.edges.push((0,T.__assign)((0,T.__assign)({},u[f].getModel()),{itemType:"edge"}));break}case"edge":o.edges=[i];break;case"combo":o.combos=[i];break;default:break}this.pushStack("delete",{before:o,after:{}})}if(a==="node"){var c=n.getModel();c.comboId&&this.updateComboTree(n,void 0,!1)}var v=this.get("itemController");if(v.removeItem(n),a==="combo"){var I=Ws(this.get("comboTrees"));this.set("comboTrees",I)}}},t.prototype.innerAddItem=function(e,r,n){if(!wu(e,r))return!1;if(r.id&&this.findById(r.id)){console.warn("This item exists already. Be sure the id %c".concat(r.id,"%c is unique."),"font-size: 20px; color: red;","");return}var a,i=this.get("comboTrees")||[];if(e==="combo"){var o=this.get("itemMap"),u=!1;if(i.forEach(function(O){u||Lo(O,function(z){if(r.parentId===z.id){u=!0;var Z=(0,T.__assign)({id:r.id,depth:z.depth+2},r);z.children?z.children.push(Z):z.children=[Z],r.depth=Z.depth,a=n.addItem(e,r)}var J=o[z.id];return u&&J&&J.getType&&J.getType()==="combo"&&n.updateCombo(J,z.children),!0})}),!u){var f=(0,T.__assign)({id:r.id,depth:0},r);r.depth=f.depth,i.push(f),a=n.addItem(e,r)}this.set("comboTrees",i),r.collapsed&&(this.collapseCombo(a,!1),this.updateCombo(a))}else if(e==="node"&&(0,M.isString)(r.comboId)&&i){var c=this.findById(r.comboId);c&&c.getType&&c.getType()!=="combo"&&console.warn("'".concat(r.comboId,"' is not a id of a combo in the graph, the node will be added without combo.")),a=n.addItem(e,r);var v=this.get("itemMap"),I=!1,w=!1;i.forEach(function(O){w||I||Lo(O,function(z){if(z.id===r.id)return w=!0,!1;if(r.comboId===z.id&&!w){I=!0;var Z=(0,M.clone)(r);Z.itemType="node",z.children?z.children.push(Z):z.children=[Z],Z.depth=z.depth+1}return I&&v[z.id].getType&&v[z.id].getType()==="combo"&&n.updateCombo(v[z.id],z.children),!0})})}else a=n.addItem(e,r);if(e==="node"&&r.comboId||e==="combo"&&r.parentId){var c=this.findById(r.comboId||r.parentId);c&&c.getType&&c.getType()==="combo"&&c.addChild(a)}return a},t.prototype.addItem=function(e,r,n,a){n===void 0&&(n=!0),a===void 0&&(a=!0);var i=this.get("comboSorted");this.set("comboSorted",i&&!a);var o=this.get("itemController"),u=this.innerAddItem(e,r,o);if(u===!1||u===!0)return u;var f=this.get("combos");if(f&&f.length>0&&this.sortCombos(),this.autoPaint(),n&&this.get("enabledStack")){var c=(0,T.__assign)((0,T.__assign)({},u.getModel()),{itemType:e}),v={};switch(e){case"node":v.nodes=[c];break;case"edge":v.edges=[c];break;case"combo":v.combos=[c];break;default:break}this.pushStack("add",{before:{},after:v})}return u},t.prototype.addItems=function(e,r,n){e===void 0&&(e=[]),r===void 0&&(r=!0),n===void 0&&(n=!0);var a=this.get("comboSorted");this.set("comboSorted",a&&!n);for(var i=this.get("itemController"),o=[],u=0;u0&&this.sortCombos()}if(this.autoPaint(),r&&this.get("enabledStack")){for(var v={nodes:[],edges:[],combos:[]},u=0;u=0;Z--)O[Z].destroyed&&O.splice(Z,1);I&&(i.addCombos(I),this.get("groupByTypes")||this.sortCombos()),this.diffItems("edge",v,o.edges),(0,M.each)(c,function(re,ue){re.getType&&(re.getType()==="node"||re.getType()==="combo")||v.edges.indexOf(re)<0&&(delete c[ue],i.remove(re,!1))}),(this.get("comboTrees")||[]).forEach(function(re){Lo(re,function(ue){var Ee=n.findById(ue.id);return Ee.getType()==="combo"&&ue.collapsed&&n.collapseCombo(ue.id,!1),!0})}),this.set({nodes:v.nodes,edges:v.edges});var J=this.get("layoutController");return J&&(J.changeData(function(){setTimeout(function(){var re;(re=i.getCombos())===null||re===void 0||re.forEach(function(ue){ue.set("animate",!0)})},0)}),i.get("animate")&&!J.getLayoutType()?(i.positionsAnimate(),(a=i.getCombos())===null||a===void 0||a.forEach(function(re){return re.set("animate",!0)})):i.autoPaint()),setTimeout(function(){u.set("localRefresh",f)},16),this.set("data",o),this.emit("afterchangedata"),this},t.prototype.addCombos=function(e){var r=this,n=r.get("comboTrees"),a=this.get("itemController");a.addCombos(n,e)},t.prototype.createCombo=function(e,r,n){var a=this;n===void 0&&(n=!0);var i=this.get("itemController");this.set("comboSorted",!1);var o="",u;if(!!e){if((0,M.isString)(e))o=e,u={id:e};else{if(o=e.id,!o){console.warn("Create combo failed. Please assign a unique string id for the adding combo.");return}u=e}var f=n&&this.get("enabledStack"),c={nodes:[],combos:[]};f&&r.forEach(function(J){var re=a.findById(J),ue=re.getType();if(!(ue!=="node"&&ue!=="combo")){var Ee=re.getModel();c["".concat(ue,"s")].push({id:J,parentId:ue==="node"?Ee.comboId:Ee.parentId})}});var v=this.get("comboTrees"),I=new Set(r),w=new Map;v&&(v.forEach(function(J){Lo(J,function(re,ue,Ee){if(I.has(re.id)){if(ue){var Ie=a.findById(ue.id),Se=a.findById(re.id);ue.children.splice(Ee,1),Ie.removeChild(Se),i.updateCombo(Ie,ue.children)}re.itemType==="combo"&&w.set(re.id,re)}return!0})}),v=v.filter(function(J){return!I.has(J.id)}),this.set("comboTrees",v));var O={nodes:[],combos:[]},z=r.map(function(J){var re=a.findById(J),ue=re.getModel(),Ee="";re.getType&&(Ee=re.getType());var Ie=w.get(J)||{id:re.getID(),itemType:Ee};return Ee==="combo"?(Ie.parentId=o,ue.parentId=o):Ee==="node"&&(Ie.comboId=o,ue.comboId=o),f&&O["".concat(Ee,"s")].push({id:ue.id,parentId:o}),Ie});u.children=z,this.addItem("combo",u,!1),this.set("comboSorted",!1),v&&(v.forEach(function(J){Gi(J,function(re){return re.id===o?(re.itemType="combo",re.children=z,!1):!0})}),this.sortCombos()),f&&(O.combos.push(u),this.pushStack("createCombo",{before:c,after:O}));var Z=this.findById(o);!Z.getModel().parentId&&Z.getChildren().combos.length&&this.updateComboTree(Z,void 0,!1),setTimeout(function(){Z.set("animate",!0)},0)}},t.prototype.uncombo=function(e,r){var n=this,a,i;r===void 0&&(r=!0);var o=this,u=e;if((0,M.isString)(e)&&(u=this.findById(e)),!u||u.getType&&u.getType()!=="combo"){console.warn("The item is not a combo!");return}var f=u.getModel(),c=u.getModel().parentId,v=o.get("comboTrees");v||(v=[]);var I=this.get("itemMap"),w=u.get("id"),O,z=[],Z=this.get("combos"),J=this.findById(c),re=r&&this.get("enabledStack"),ue={};if(re&&(ue=(0,M.clone)(f),ue.children=[]),v.forEach(function(De){O||Lo(De,function($e){var ft;if($e.id===w){O=$e;var rt=u.getEdges().map(function(Er){return Er.getID()});rt.forEach(function(Er){n.removeItem(Er,!1)});var wt=Z.indexOf(u);Z.splice(wt,1),delete I[w];var Ft=(0,M.clone)(u.getModel());u.destroy(),n.emit("afterremoveitem",{item:Ft,type:"combo"})}if(c&&O&&$e.id===c){J.removeCombo(u),z=$e.children;var wt=z.indexOf(O);return wt!==-1&&z.splice(wt,1),(ft=O.children)===null||ft===void 0||ft.forEach(function(dr){var vr=n.findById(dr.id),qt=vr.getModel();vr.getType&&vr.getType()==="combo"?(dr.parentId=c,delete dr.comboId,qt.parentId=c,delete qt.comboId):vr.getType&&vr.getType()==="node"&&(dr.comboId=c,qt.comboId=c),J.addChild(vr),z.push(dr)}),n.updateCombo(J),!1}return!0})}),!c&&O){var Ee=v.indexOf(O);v.splice(Ee,1),(a=O.children)===null||a===void 0||a.forEach(function(De){De.parentId=void 0;var $e=n.findById(De.id).getModel();delete $e.parentId,delete $e.comboId,De.itemType!=="node"&&v.push(De)})}if(re){var Ie={nodes:[],combos:[]},Se={nodes:[],combos:[]};(i=O.children)===null||i===void 0||i.forEach(function(De){var $e=n.findById(De.id),ft=$e.getType();ft!=="node"&&ft!=="combo"||(Ie["".concat(ft,"s")].push({id:De.id,parentId:w}),Se["".concat(ft,"s")].push({id:De.id,parentId:c}))}),Ie.combos.push(ue),this.pushStack("uncombo",{before:Ie,after:Se})}},t.prototype.updateCombos=function(e){var r=this;e===void 0&&(e=!1);var n=this,a=this.get("comboTrees"),i=n.get("itemController"),o=n.get("itemMap");(a||[]).forEach(function(u){Lo(u,function(f){var c;if(!f)return!0;var v=o[f.id];if(((c=v==null?void 0:v.getType)===null||c===void 0?void 0:c.call(v))==="combo"){var I=(0,T.__spreadArray)([],v.getStates(),!0);(0,M.each)(I,function(w){return r.setItemState(v,w,!1)}),i.updateCombo(v,f.children,e),(0,M.each)(I,function(w){return r.setItemState(v,w,!0)})}return!0})}),n.sortCombos()},t.prototype.updateCombo=function(e){var r=this,n=this,a=e,i;if((0,M.isString)(e)&&(a=this.findById(e)),!a||a.getType&&a.getType()!=="combo"){console.warn("The item to be updated is not a combo!");return}i=a.get("id");var o=this.get("comboTrees"),u=n.get("itemController"),f=n.get("itemMap");(o||[]).forEach(function(c){Lo(c,function(v){if(!v)return!0;var I=f[v.id];if(i===v.id&&I&&I.getType&&I.getType()==="combo"){var w=(0,T.__spreadArray)([],I.getStates(),!0);(0,M.each)(w,function(O){I.getStateStyle(O)&&r.setItemState(I,O,!1)}),u.updateCombo(I,v.children),(0,M.each)(w,function(O){I.getStateStyle(O)&&r.setItemState(I,O,!0)}),i&&(i=v.parentId)}return!0})})},t.prototype.updateComboTree=function(e,r,n){n===void 0&&(n=!0);var a=this;this.set("comboSorted",!1);var i;(0,M.isString)(e)?i=a.findById(e):i=e;var o=i.getModel(),u=o.comboId||o.parentId,f="";if(i.getType&&(f=i.getType()),r&&f==="combo"){var c=this.get("comboTrees"),v=!0,I;if((c||[]).forEach(function(re){I||Gi(re,function(ue){if(!I)return ue.id===i.getID()&&(I=ue),!0})}),Gi(I,function(re){return re.id===r?(v=!1,!1):!0}),!v){console.warn("Failed to update the combo tree! The parentId points to a descendant of the combo!");return}}if(n&&this.get("enabledStack")){var w={},O={};f==="combo"?(w.combos=[{id:o.id,parentId:o.parentId}],O.combos=[{id:o.id,parentId:r}]):f==="node"&&(w.nodes=[{id:o.id,parentId:o.comboId}],O.nodes=[{id:o.id,parentId:r}]),this.pushStack("updateComboTree",{before:w,after:O})}if(o.parentId||o.comboId){var z=this.findById(o.parentId||o.comboId);z&&z.removeChild(i)}if(f==="combo"?o.parentId=r:f==="node"&&(o.comboId=r),r){var Z=this.findById(r);Z&&Z.addChild(i)}if(u){var Z=this.findById(u);Z&&Z.removeChild(i)}var J=Ws(this.get("comboTrees"),o.id,r);this.set("comboTrees",J),this.updateCombos()},t.prototype.save=function(){var e=[],r=[],n=[];return(0,M.each)(this.get("nodes"),function(a){e.push(a.getModel())}),(0,M.each)(this.get("edges"),function(a){r.push(a.getModel())}),(0,M.each)(this.get("combos"),function(a){n.push(a.getModel())}),{nodes:e,edges:r,combos:n}},t.prototype.changeSize=function(e,r){var n=this.get("viewController");return n.changeSize(e,r),this},t.prototype.refresh=function(){var e=this;if(e.emit("beforegraphrefresh"),e.get("animate"))e.positionsAnimate();else{var r=e.get("nodes"),n=e.get("edges"),a=e.get("edges");(0,M.each)(r,function(i){i.refresh()}),(0,M.each)(n,function(i){i.refresh()}),(0,M.each)(a,function(i){i.refresh()})}e.emit("aftergraphrefresh"),e.autoPaint()},t.prototype.getNodes=function(){return this.get("nodes")},t.prototype.getEdges=function(){return this.get("edges")},t.prototype.getCombos=function(){return this.get("combos")},t.prototype.getComboChildren=function(e){if((0,M.isString)(e)&&(e=this.findById(e)),!e||e.getType&&e.getType()!=="combo"){console.warn("The combo does not exist!");return}return e.getChildren()},t.prototype.positionsAnimate=function(e){var r=this;r.emit("beforeanimate");var n=r.get("animateCfg"),a=n.onFrame,i=e?r.getNodes().concat(r.getCombos()):r.getNodes(),o=i.map(function(f){var c=f.getModel();return{id:c.id,x:c.x,y:c.y}});r.stopAnimate();var u=r.get("canvas");r.animating=!0,setTimeout(function(){u.animate(function(f){(0,M.each)(o,function(c){var v=r.findById(c.id);if(!(!v||v.destroyed)){var I=v.get("originAttrs"),w=v.get("model"),O=v.getContainer().getMatrix();if(I==null&&(O&&(I={x:O[6],y:O[7]}),v.set("originAttrs",I||0)),a){var z=a(v,f,c,I||{x:0,y:0});v.set("model",Object.assign(w,z))}else I?(w.x=I.x+(c.x-I.x)*f,w.y=I.y+(c.y-I.y)*f):(w.x=c.x,w.y=c.y)}}),r.refreshPositions(e)},{duration:n.duration,easing:n.easing,callback:function(){(0,M.each)(i,function(c){c.set("originAttrs",null)}),n.callback&&n.callback(),r.emit("afteranimate"),r.animating=!1}})},0)},t.prototype.refreshPositions=function(e){var r=this;r.emit("beforegraphrefreshposition");var n=r.get("nodes"),a=r.get("edges"),i=r.get("vedges"),o=r.get("combos"),u,f={},c=function(I){(0,M.each)(I,function(w){u=w.getModel();var O=w.get("originAttrs");if(!(O&&u.x===O.x&&u.y===O.y)){var z=w.updatePosition({x:u.x,y:u.y});f[u.id]=z,u.comboId&&(f[u.comboId]=f[u.comboId]||z),u.parentId&&(f[u.parentId]=f[u.parentId]||z)}})};c(o),c(n),o&&o.length!==0&&(e&&c(o),r.updateCombos()),(0,M.each)(a,function(v){var I=v.getSource().getModel(),w=v.getTarget();if(!(0,M.isPlainObject)(w)){var O=w.getModel();(f[I.id]||f[O.id]||v.getModel().isComboEdge)&&v.refresh()}}),(0,M.each)(i,function(v){v.refresh()}),r.emit("aftergraphrefreshposition"),r.autoPaint()},t.prototype.stopAnimate=function(){var e=this.get("canvas"),r=e.cfg.timeline;r&&r.stopAllAnimations()},t.prototype.isAnimating=function(){return this.animating},t.prototype.getZoom=function(){var e=this.get("group").getMatrix();return e?e[0]:1},t.prototype.getCurrentMode=function(){var e=this.get("modeController");return e.getMode()},t.prototype.setMode=function(e){var r=this.get("modeController");return r.setMode(e),this},t.prototype.clear=function(e){var r;return e===void 0&&(e=!1),(r=this.get("canvas"))===null||r===void 0||r.clear(),this.initGroups(),this.set({itemMap:{},nodes:[],edges:[],vedges:[],groups:[],combos:[],comboTrees:[]}),e||this.emit("afterrender"),this},t.prototype.updateLayout=function(e,r,n,a){var i=this;e===void 0&&(e={}),a===void 0&&(a=!0);var o=this.get("layoutController");if((0,M.isString)(e)&&(e={type:e}),r){var u=n;u||(r==="begin"?u={x:0,y:0}:u={x:this.getWidth()/2,y:this.getHeight()/2}),u=this.getPointByCanvas(u.x,u.y);var f=["force","gForce","fruchterman","force2"];f.includes(e.type)||!e.type&&f.includes(o==null?void 0:o.layoutType)?e.center=[u.x,u.y]:this.once("afterlayout",function(I){var w=i.getGroup().getMatrix()||[1,0,0,0,1,0,0,0,1];u.x=u.x*w[0]+w[6],u.y=u.y*w[0]+w[7];var O=i.getGroup().getCanvasBBox(),z=O.minX,Z=O.maxX,J=O.minY,re=O.maxY,ue={x:(z+Z)/2,y:(J+re)/2};r==="begin"&&(ue.x=z,ue.y=J),i.translate(u.x-ue.x,u.y-ue.y)})}var c=(0,T.__assign)({},this.get("layout")),v={};Object.assign(v,c,e),e.pipes&&!e.type?delete v.type:!e.pipes&&v.type&&delete v.pipes,this.set("layout",v),!!o&&(o.isLayoutTypeSame(v)&&v.gpuEnabled===c.gpuEnabled?o.updateLayoutCfg(v):o.changeLayout(v),a&&this.get("enabledStack")&&this.pushStack("layout",{before:c,after:v}))},t.prototype.destroyLayout=function(){var e=this.get("layoutController");e==null||e.destroyLayout()},t.prototype.layout=function(){var e,r=this.get("layoutController"),n=this.get("layout");if(!(!n||!r)){if(n.workerEnabled){r.layout();return}((e=r.layoutMethods)===null||e===void 0?void 0:e.length)?r.relayout(!0):r.layout()}},t.prototype.collapseCombo=function(e,r){var n=this;if(r===void 0&&(r=!0),!this.destroyed){if((0,M.isString)(e)&&(e=this.findById(e)),!e){console.warn("The combo to be collapsed does not exist!");return}this.emit("beforecollapseexpandcombo",{action:"expand",item:e});var a=e.getModel(),i=this.get("itemController");i.collapseCombo(e,r),a.collapsed=!0;var o=this.getEdges().concat(this.get("vedges")),u=[],f=this.get("comboTrees"),c=!1;(f||[]).forEach(function(I){c||Gi(I,function(w){if(c&&w.depth<=a.depth)return!1;if(a.id===w.id&&(c=!0),c){var O=n.findById(w.id);O&&O.getType&&O.getType()==="combo"&&(u=u.concat(O.getNodes()),u=u.concat(O.getCombos()))}return!0})});var v={};o.forEach(function(I){var w=I.getModel(),O=w.isVEdge,z=w.size,Z=z===void 0?1:z;if(!(I.isVisible()&&!O)){var J=I.getSource(),re=I.getTarget(),ue=null,Ee;if(J.getModel().id===a.id||u.includes(J)&&!u.includes(re)?(ue=re,Ee=!1):(re.getModel().id===a.id||!u.includes(J)&&u.includes(re))&&(ue=J,Ee=!0),ue){if(O){n.removeItem(I,!1);return}for(var Ie=ue.getModel();!ue.isVisible();){var Se=Ie.parentId,De=Ie.comboId,$e=Se||De;if(ue=n.findById($e),!ue||!$e)return;Ie=ue.getModel()}var ft=Ie.id,rt=Ee?{source:ft,target:a.id,size:Z,isVEdge:!0}:{source:a.id,target:ft,size:Z,isVEdge:!0},wt="".concat(rt.source,"-").concat(rt.target);if(v[wt]){v[wt].size+=Z;return}v[wt]=rt}}}),this.addItems(Object.values(v).map(function(I){return{type:"vedge",model:I}}),!1),this.emit("aftercollapseexpandcombo",{action:"collapse",item:e})}},t.prototype.expandCombo=function(e,r){var n=this;if(r===void 0&&(r=!0),(0,M.isString)(e)&&(e=this.findById(e)),!e||e.getType&&e.getType()!=="combo"){console.warn("The combo to be collapsed does not exist!");return}this.emit("beforecollapseexpandcombo",{action:"expand",item:e});var a=e.getModel(),i=this.get("itemController");i.expandCombo(e,r),a.collapsed=!1;var o=this.getEdges().concat(this.get("vedges")),u=[],f=this.get("comboTrees"),c=!1;(f||[]).forEach(function(I){c||Gi(I,function(w){if(c&&w.depth<=a.depth)return!1;if(a.id===w.id&&(c=!0),c){var O=n.findById(w.id);O&&O.getType&&O.getType()==="combo"&&(u=u.concat(O.getNodes()),u=u.concat(O.getCombos()))}return!0})});var v={};o.forEach(function(I){if(!(I.isVisible()&&!I.getModel().isVEdge)){var w=I.getSource(),O=I.getTarget(),z=w.get("id"),Z=O.get("id"),J=null,re;if(z===a.id||u.includes(w)&&!u.includes(O)?(J=O,re=!1):Z===a.id||!u.includes(w)&&u.includes(O)?(J=w,re=!0):u.includes(w)&&u.includes(O)&&w.isVisible()&&O.isVisible()&&I.show(),J){var ue=I.getModel(),Ee=ue.isVEdge,Ie=ue.size,Se=Ie===void 0?1:Ie;if(Ee){n.removeItem(I,!1);return}for(var De=J.getModel();!J.isVisible();){var $e=De.parentId,ft=De.comboId,rt=$e||ft;if(J=n.findById(rt),!J||!rt)return;De=J.getModel()}for(var wt=De.id,Ft=re?O:w,Er=Ft.getModel();!Ft.isVisible();){var dr=Er.parentId,vr=Er.comboId,qt=dr||vr;if(Ft=n.findById(qt),!Ft||!qt)return;if(Er.comboId===a.id||Er.parentId===a.id)break;Er=Ft.getModel()}var Fr=Er.id;if(wt){var kr=re?{source:wt,target:Fr,isVEdge:!0,size:Se}:{source:Fr,target:wt,isVEdge:!0,size:Se},or="".concat(kr.source,"-").concat(kr.target);if(v[or]){v[or].size+=Se;return}v[or]=kr}}}}),this.addItems(Object.values(v).map(function(I){return{type:"vedge",model:I}}),!1),this.emit("aftercollapseexpandcombo",{action:"expand",item:e})},t.prototype.collapseExpandCombo=function(e,r){if(r===void 0&&(r=!0),(0,M.isString)(e)&&(e=this.findById(e)),!(!e||e.getType&&e.getType()!=="combo")){for(var n=e.getModel(),a=this.findById(n.parentId);a;){var i=a.getModel();if(i.collapsed){console.warn("Fail to expand the combo since it's ancestor combo is collapsed."),a=void 0;return}a=this.findById(i.parentId)}var o=n.collapsed;o?this.expandCombo(e,r):this.collapseCombo(e,r),this.updateCombo(e)}},t.prototype.getNeighbors=function(e,r){var n=e;return(0,M.isString)(e)&&(n=this.findById(e)),n.getNeighbors(r)},t.prototype.getNodeDegree=function(e,r,n){r===void 0&&(r=void 0),n===void 0&&(n=!1);var a=e;(0,M.isString)(e)&&(a=this.findById(e));var i=this.get("degrees");(!i||n)&&(i=dt(this.save()),this.set("degrees",i));var o=i[a.getID()],u=0;if(!o)return 0;switch(r){case"in":u=o.inDegree;break;case"out":u=o.outDegree;break;case"all":u=o;break;default:u=o.degree;break}return u},t.prototype.getUndoStack=function(){return this.undoStack},t.prototype.getRedoStack=function(){return this.redoStack},t.prototype.getStackData=function(){return this.get("enabledStack")?{undoStack:this.undoStack.toArray(),redoStack:this.redoStack.toArray()}:null},t.prototype.clearStack=function(){this.get("enabledStack")&&(this.undoStack.clear(),this.redoStack.clear(),this.emit("stackchange",{undoStack:this.undoStack,redoStack:this.redoStack}))},t.prototype.pushStack=function(e,r,n){if(e===void 0&&(e="update"),n===void 0&&(n="undo"),!this.get("enabledStack")){console.warn("\u8BF7\u5148\u542F\u7528 undo & redo \u529F\u80FD\uFF0C\u5728\u5B9E\u4F8B\u5316 Graph \u65F6\u5019\u914D\u7F6E enabledStack: true !");return}var a=r?(0,M.clone)(r):{before:{},after:(0,M.clone)(this.save())};n==="redo"?this.redoStack.push({action:e,data:a}):this.undoStack.push({action:e,data:a}),this.emit("stackchange",{action:e,stackType:n,undoStack:this.undoStack,redoStack:this.redoStack})},t.prototype.getAdjMatrix=function(e,r){e===void 0&&(e=!0),r===void 0&&(r=this.get("directed"));var n=this.get("adjMatrix");return(!n||!e)&&(n=ce(this.save(),r),this.set("adjMatrix",n)),n},t.prototype.getShortestPathMatrix=function(e,r){e===void 0&&(e=!0),r===void 0&&(r=this.get("directed"));var n=this.get("adjMatrix"),a=this.get("shortestPathMatrix");return(!n||!e)&&(n=ce(this.save(),r),this.set("adjMatrix",n)),(!a||!e)&&(a=Aa(this.save(),r),this.set("shortestPathMatrix",a)),a},t.prototype.on=function(e,r,n){return s.prototype.on.call(this,e,r,n)},t.prototype.destroy=function(){var e,r,n,a,i;this.clear(),this.clearStack(),(e=this.get("itemController"))===null||e===void 0||e.destroy(),(r=this.get("modeController"))===null||r===void 0||r.destroy(),(n=this.get("viewController"))===null||n===void 0||n.destroy(),(a=this.get("stateController"))===null||a===void 0||a.destroy(),(i=this.get("canvas"))===null||i===void 0||i.destroy(),this.cfg=null,this.destroyed=!0,this.redoStack=null,this.undoStack=null},t.prototype.createHull=function(e){if(!e.members||e.members.length<1){console.warn("Create hull failed! The members is empty.");return}var r=this.get("hullGroup"),n=this.get("hullMap");if(n||(n={},this.set("hullMap",n)),(!r||r.get("destroyed"))&&(r=this.get("group").addGroup({id:"hullGroup"}),r.toBack(),this.set("hullGroup",r)),n[e.id])return console.warn("Existed hull id."),n[e.id];var a=r.addGroup({id:"".concat(e.id,"-container")}),i=new yc(this,(0,T.__assign)((0,T.__assign)({},e),{group:a})),o=i.id;return n[o]=i,i},t.prototype.getHulls=function(){return this.get("hullMap")},t.prototype.getHullById=function(e){return this.get("hullMap")[e]},t.prototype.removeHull=function(e){var r,n;(0,M.isString)(e)?n=this.getHullById(e):n=e,(r=this.get("hullMap"))===null||r===void 0||delete r[n.id],n.destroy()},t.prototype.removeHulls=function(){var e=this.getHulls();!e||!Object.keys(e).length||(Object.keys(e).forEach(function(r){var n=e[r];n.destroy()}),this.set("hullMap",{}))},t}(te.Z),jf=mc;function Yf(s){return Yf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Yf(s)}var Lu=ee.vs,Ec="-shape",Du="-label",tf=["startArrow","endArrow"],Tt={lineWidth:1,stroke:void 0,fill:void 0,lineAppendWidth:1,opacity:void 0,strokeOpacity:void 0,fillOpacity:void 0,x:0,y:0,r:10,width:20,height:20,shadowColor:void 0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0},$c={lineWidth:1,stroke:"#000",lineDash:void 0,startArrow:!1,endArrow:!1,opacity:void 0,strokeOpacity:void 0,fillOpacity:void 0,shadowColor:void 0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0},Ks={edge:$c,node:Tt,combo:Tt},rf="-label-bg",Hf={options:{labelCfg:{style:{fontFamily:ln.windowFontFamily}},descriptionCfg:{style:{fontFamily:ln.windowFontFamily}}},itemType:"",type:"",getCustomConfig:function(t){return{}},getOptions:function(t,e){return e==="move"||(e==null?void 0:e.includes("bbox"))?t:(0,M.deepMix)({},this.options,this.getCustomConfig(t)||{},t)},draw:function(t,e){e.shapeMap={},this.mergeStyle=this.getOptions(t);var r=this.drawShape(t,e);if(r.set("className",this.itemType+Ec),e.shapeMap[this.itemType+Ec]=r,t.label){var n=this.drawLabel(t,e);n.set("className",this.itemType+Du),e.shapeMap[this.itemType+Du]=n}return r},afterDraw:function(t,e,r){},drawShape:function(t,e){return null},drawLabel:function(t,e){var r=(this.mergeStyle||this.getOptions(t)||{}).labelCfg,n=r||{},a=this.getLabelStyle(t,n,e),i=a.rotate;delete a.rotate;var o=e.addShape("text",{attrs:a,draggable:!0,className:"text-shape",name:"text-shape",labelRelated:!0});if(e.shapeMap["text-shape"]=o,!isNaN(i)&&i!==""){var u=o.getBBox(),f=[1,0,0,0,1,0,0,0,1];if(a.rotateCenter)switch(a.rotateCenter){case"center":f=Lu(f,[["t",-u.width/2,-u.height/2],["r",i],["t",u.width/2,u.height/2]]);break;case"lefttop":f=Lu(f,[["t",-a.x,-a.y],["r",i],["t",a.x,a.y]]);break;case"leftcenter":f=Lu(f,[["t",-a.x,-a.y-u.height/2],["r",i],["t",a.x,a.y+u.height/2]]);break;default:f=Lu(f,[["t",-u.width/2,-u.height/2],["r",i],["t",u.width/2,u.height/2]]);break}else f=Lu(f,[["t",-a.x,-a.y-u.height/2],["r",i],["t",a.x,a.y+u.height/2]]);o.setMatrix(f)}if(a.background){var c=this.drawLabelBg(t,e,o),v=this.itemType+rf;c.set("classname",v),e.shapeMap[v]=c,o.toFront()}return o},drawLabelBg:function(t,e,r){var n=this.options.labelCfg,a=(0,M.mix)({},n,t.labelCfg),i=this.getLabelBgStyleByPosition(r,a),o=e.addShape("rect",{name:"text-bg-shape",attrs:i,labelRelated:!0});return e.shapeMap["text-bg-shape"]=o,o},getLabelStyleByPosition:function(t,e,r){return{text:t.label}},getLabelBgStyleByPosition:function(t,e){return{}},getLabelStyle:function(t,e,r){var n=this.getLabelStyleByPosition(t,e,r),a="".concat(this.itemType,"Label"),i=ln[a]?ln[a].style:null;return(0,T.__assign)((0,T.__assign)((0,T.__assign)({},i),n),e.style)},getShapeStyle:function(t){return t.style},update:function(t,e,r){this.updateShapeStyle(t,e,r),this.updateLabel(t,e,r)},updateShapeStyle:function(t,e,r){var n,a=e.getContainer(),i=e.getKeyShape(),o=(0,M.mix)({},i.attr(),t.style),u=function(v){var I,w=o[v];if((0,M.isPlainObject)(w)){var O=((n=a.shapeMap)===null||n===void 0?void 0:n[v])||a.find(function(z){return z.get("name")===v});O==null||O.attr(w)}else i.attr((I={},I[v]=w,I))};for(var f in o)u(f)},updateLabel:function(t,e,r){var n,a,i=e.getContainer(),o=(this.mergeStyle||this.getOptions({},r)||{}).labelCfg,u=o===void 0?{}:o,f=this.itemType+Du,c=i.shapeMap[f]||i.find(function(Ee){return Ee.get("className")===f}),v=this.itemType+rf,I=i.shapeMap[v]||i.find(function(Ee){return Ee.get("className")===v});if(c&&t.label===void 0&&(i.removeChild(c),delete i.shapeMap[f],I&&(i.removeChild(I),delete i.shapeMap[v])),t.label||t.label==="")if(c){(!r||r==="bbox|label"||this.itemType==="edge"&&r!=="style")&&(u=(0,M.deepMix)(u,t.labelCfg));var O=this.getLabelStyleByPosition(t,u,i),z=(n=t.labelCfg)===null||n===void 0?void 0:n.style,Z=(0,T.__assign)((0,T.__assign)({},O),z),J=Z.rotate;if(delete Z.rotate,!isNaN(J)&&J!==""){var re=[1,0,0,0,1,0,0,0,1];re=Lu(re,[["t",-Z.x,-Z.y],["r",J],["t",Z.x,Z.y]]),Z.matrix=re,c.attr(Z)}else((a=c.getMatrix())===null||a===void 0?void 0:a[4])!==1&&c.resetMatrix(),c.attr(Z);if(!I)Z.background&&(I=this.drawLabelBg(t,i,c),I.set("classname",v),i.shapeMap[v]=I,c.toFront());else if(Z.background){var ue=this.getLabelBgStyleByPosition(c,u);I.attr(ue)}else i.removeChild(I)}else{var w=this.drawLabel(t,i);w.set("className",f),i.shapeMap[f]=w}},afterUpdate:function(t,e){},setState:function(t,e,r){var n,a,i,o=r.get("keyShape");if(!(!o||o.destroyed)){var u=r.getType(),f=(0,M.isBoolean)(e)?t:"".concat(t,":").concat(e),c=this.getStateStyle(f,r),v=r.getStateStyle(f);if(!(!v&&!c)){var I=(0,M.mix)({},v||c),w=r.getContainer(),O={x:1,y:1,cx:1,cy:1,matrix:1};if(u==="combo"&&(O.r=1,O.width=1,O.height=1),e){var z=function(qt){var Fr,kr=I[qt];if((0,M.isPlainObject)(kr)&&!tf.includes(qt)){var or=((i=w.shapeMap)===null||i===void 0?void 0:i[qt])||w.find(function(_r){return _r.get("name")===qt});or==null||or.attr(kr)}else o.attr((Fr={},Fr[qt]=kr,Fr))};for(var Z in I)z(Z)}else{var J=jo(r.getCurrentStatesStyle()),re=r.getModel(),ue=(0,M.mix)({},re.style,jo(r.getOriginStyle())),Ee=o.get("name"),Ie=o.attr(),Se={};Object.keys(Ie).forEach(function(vr){if(vr!=="img"){var qt=Ie[vr];qt&&Yf(qt)==="object"?Se[vr]=(0,M.clone)(qt):Se[vr]=qt}});var De={},$e=function(qt){var Fr=I[qt];if((0,M.isPlainObject)(Fr)&&!tf.includes(qt)){var kr=w.shapeMap[qt]||w.find(function(Gr){return Gr.get("name")===qt});if(kr){var or=jo(kr.attr());(0,M.each)(Fr,function(Gr,Ur){if(qt===Ee&&Se[Ur]&&!O[Ur]){delete Se[Ur];var rn=ue[qt][Ur]||Ks[u][Ur];o.attr(Ur,rn)}else if(or[Ur]||or[Ur]===0){delete or[Ur];var hn=ue[qt][Ur]||Ks[u][Ur];kr.attr(Ur,hn)}}),De[qt]=or}}else if(Se[qt]&&!O[qt]){delete Se[qt];var _r=ue[qt]||(ue[Ee]?ue[Ee][qt]:void 0)||Ks[u][qt];o.attr(qt,_r)}};for(var ft in I)$e(ft);Ee?De[Ee]=Se:(0,M.mix)(De,Se);for(var Z in J)if(!O[Z]){var rt=J[Z];(!(0,M.isPlainObject)(rt)||tf.includes(Z))&&(Ee?((0,M.mix)(ue[Ee],(a={},a[Z]=rt,a)),delete ue[Z]):(0,M.mix)(ue,(n={},n[Z]=rt,n)),delete J[Z])}var wt={};(0,M.deepMix)(wt,ue,De,J);var Ft=!1,Er=function(qt){var Fr,kr,or=wt[qt];if((0,M.isPlainObject)(or)&&!tf.includes(qt)){var _r=w.shapeMap[qt]||w.find(function(Ur){return Ur.get("name")===qt});_r&&((_r.get("type")==="text"||_r.get("labelRelated"))&&(delete or.x,delete or.y,delete or.matrix),qt===Ee&&(u==="combo"&&(delete or.r,delete or.width,delete or.height),Ft=!0),_r.attr(or))}else if(!Ft){var Gr=or||Ks[u][qt];u==="combo"?Ee||o.attr((Fr={},Fr[qt]=Gr,Fr)):o.attr((kr={},kr[qt]=Gr,kr))}};for(var dr in wt)Er(dr)}}}},getStateStyle:function(t,e){var r=e.getModel(),n=e.getType(),a=this.getOptions(r),i=a.stateStyles,o=a.style,u=o===void 0?{}:o,f=r.stateStyles?r.stateStyles[t]:i&&i[t];return n==="combo"?(0,M.clone)(f):(0,M.mix)({},u,f)},getControlPoints:function(t){return t.controlPoints},getAnchorPoints:function(t){var e,r,n=(t==null?void 0:t.anchorPoints)||((e=this.getCustomConfig(t))===null||e===void 0?void 0:e.anchorPoints)||((r=this.options)===null||r===void 0?void 0:r.anchorPoints);return n}},bc={itemType:"node",shapeType:"single-node",labelPosition:"center",offset:ln.nodeLabel.offset,getSize:function(t){var e,r=((e=this.mergeStyle)===null||e===void 0?void 0:e.size)||t.size||this.getOptions({}).size||ln.defaultNode.size;return(0,M.isArray)(r)&&r.length===1&&(r=[r[0],r[0]]),(0,M.isArray)(r)||(r=[r,r]),r},getLabelStyleByPosition:function(t,e){var r=e.maxLength,n=t.label;r&&(n=Us(n,r));var a=e.position||this.labelPosition;if(a==="center")return{x:0,y:0,text:n,textBaseline:"middle",textAlign:"center"};var i=e.offset;(0,M.isNil)(i)&&(i=this.offset);var o=this.getSize(t),u;switch(a){case"top":u={x:0,y:-o[1]/2-i,textBaseline:"bottom",textAlign:"center"};break;case"bottom":u={x:0,y:o[1]/2+i,textBaseline:"top",textAlign:"center"};break;case"left":u={x:-o[0]/2-i,y:0,textBaseline:"middle",textAlign:"right"};break;default:u={x:o[0]/2+i,y:0,textBaseline:"middle",textAlign:"left"};break}return u.text=n,u},getLabelBgStyleByPosition:function(t,e){var r;if(!t)return{};var n=(r=e.style)===null||r===void 0?void 0:r.background;if(!n)return{};var a=t.getBBox(),i=os(n.padding),o=a.width+i[1]+i[3],u=a.height+i[0]+i[2];return(0,T.__assign)((0,T.__assign)({x:a.minX-i[3],y:a.minY-i[0]},n),{width:o,height:u})},drawShape:function(t,e){var r=this.shapeType,n=this.getShapeStyle(t),a=e.addShape(r,{attrs:n,draggable:!0,name:"node-shape"});return e.shapeMap["node-shape"]=a,a},updateLinkPoints:function(t,e){var r=(this.mergeStyle||this.getOptions(t)).linkPoints,n=e.shapeMap["link-point-left"]||e.find(function(wt){return wt.get("className")==="link-point-left"}),a=e.shapeMap["link-point-right"]||e.find(function(wt){return wt.get("className")==="link-point-right"}),i=e.shapeMap["link-point-top"]||e.find(function(wt){return wt.get("className")==="link-point-top"}),o=e.shapeMap["link-point-bottom"]||e.find(function(wt){return wt.get("className")==="link-point-bottom"}),u;n&&(u=n.attr()),a&&!u&&(u=a.attr()),i&&!u&&(u=i.attr()),o&&!u&&(u=o.attr()),u||(u=r);var f=(0,M.mix)({},u,t.linkPoints),c=f.fill,v=f.stroke,I=f.lineWidth,w=f.size/2;w||(w=f.r);var O=t.linkPoints?t.linkPoints:{left:void 0,right:void 0,top:void 0,bottom:void 0},z=O.left,Z=O.right,J=O.top,re=O.bottom,ue=this.getSize(t),Ee=ue[0],Ie=ue[1],Se={r:w,fill:c,stroke:v,lineWidth:I};if(n)!z&&z!==void 0?(n.remove(),delete e.shapeMap["link-point-left"]):n.attr((0,T.__assign)((0,T.__assign)({},Se),{x:-Ee/2,y:0}));else if(z){var De="link-point-left";e.shapeMap[De]=e.addShape("circle",{attrs:(0,T.__assign)((0,T.__assign)({},Se),{x:-Ee/2,y:0}),className:De,name:De,isAnchorPoint:!0})}if(a)!Z&&Z!==void 0&&(a.remove(),delete e.shapeMap["link-point-right"]),a.attr((0,T.__assign)((0,T.__assign)({},Se),{x:Ee/2,y:0}));else if(Z){var $e="link-point-right";e.shapeMap[$e]=e.addShape("circle",{attrs:(0,T.__assign)((0,T.__assign)({},Se),{x:Ee/2,y:0}),className:$e,name:$e,isAnchorPoint:!0})}if(i)!J&&J!==void 0&&(i.remove(),delete e.shapeMap["link-point-top"]),i.attr((0,T.__assign)((0,T.__assign)({},Se),{x:0,y:-Ie/2}));else if(J){var ft="link-point-top";e.shapeMap[ft]=e.addShape("circle",{attrs:(0,T.__assign)((0,T.__assign)({},Se),{x:0,y:-Ie/2}),className:ft,name:ft,isAnchorPoint:!0})}if(o)!re&&re!==void 0?(o.remove(),delete e.shapeMap["link-point-bottom"]):o.attr((0,T.__assign)((0,T.__assign)({},Se),{x:0,y:Ie/2}));else if(re){var rt="link-point-bottom";e.shapeMap[rt]=e.addShape("circle",{attrs:(0,T.__assign)((0,T.__assign)({},Se),{x:0,y:Ie/2}),className:rt,name:rt,isAnchorPoint:!0})}},updateShape:function(t,e,r,n,a){var i=e.get("keyShape");i.attr((0,T.__assign)({},r)),this.updateLabel(t,e,a),n&&this.updateIcon(t,e)},updateIcon:function(t,e){var r=this,n=e.getContainer(),a=(this.mergeStyle||this.getOptions(t)).icon,i=t.icon?t.icon:{show:void 0,text:void 0},o=i.show,u=i.text,f=n.shapeMap["".concat(this.type,"-icon")]||n.find(function(J){return J.get("name")==="".concat(r.type,"-icon")});if(f)if(o||o===void 0){var c=(0,M.mix)({},f.attr(),a),v=c.width,I=v===void 0?20:v,w=c.height,O=w===void 0?20:w;(c.fontFamily==="iconfont"||c.hasOwnProperty("text"))&&(I=0,O=0),f.attr((0,T.__assign)((0,T.__assign)({},c),{x:-I/2,y:-O/2}))}else f.remove(),delete n.shapeMap["".concat(this.type,"-icon")];else if(o){var z="".concat(this.type,"-icon");if(u)n.shapeMap[z]=n.addShape("text",{attrs:(0,T.__assign)({x:0,y:0,fontSize:12,fill:"#000",stroke:"#000",textBaseline:"middle",textAlign:"center"},a),className:z,name:z});else{var I=a.width,O=a.height;n.shapeMap[z]=n.addShape("image",{attrs:(0,T.__assign)((0,T.__assign)({},a),{x:-I/2,y:-O/2}),className:z,name:z})}var Z=n.shapeMap["node-label"]||n.find(function(J){return J.get("name")==="node-label"});Z&&Z.toFront()}}},Qc=(0,T.__assign)((0,T.__assign)({},Hf),bc);cr.registerNode("single-node",Qc);var mf="edge-shape";function Ef(s){var t=s;return s==="start"?t="end":s==="end"&&(t="start"),t}var Zf={itemType:"edge",labelPosition:"center",refX:0,refY:0,labelAutoRotate:!1,options:{size:ln.defaultEdge.size,style:{x:0,y:0,stroke:ln.defaultEdge.style.stroke,lineAppendWidth:ln.defaultEdge.style.lineAppendWidth},labelCfg:{style:{fill:ln.edgeLabel.style.fill,fontSize:ln.edgeLabel.style.fontSize,fontFamily:ln.windowFontFamily}},stateStyles:(0,T.__assign)({},ln.edgeStateStyles)},getPath:function(t){var e=[];return(0,M.each)(t,function(r,n){n===0?e.push(["M",r.x,r.y]):e.push(["L",r.x,r.y])}),e},getShapeStyle:function(t){var e=this.options.style,r={stroke:t.color},n=(0,M.mix)({},e,r,t.style),a=t.size||ln.defaultEdge.size;t=this.getPathPoints(t);var i=t.startPoint,o=t.endPoint,u=this.getControlPoints(t),f=[i];u&&(f=f.concat(u)),f.push(o);var c=this.getPath(f),v=(0,M.mix)({},ln.defaultEdge.style,{stroke:ln.defaultEdge.color,lineWidth:a,path:c},n);return v},updateShapeStyle:function(t,e,r){var n,a=e.getContainer(),i=((n=e.getKeyShape)===null||n===void 0?void 0:n.call(e))||a.shapeMap["edge-shape"],o=t.size;t=this.getPathPoints(t);var u=t.startPoint,f=t.endPoint,c=this.getControlPoints(t),v=[u];c&&(v=v.concat(c)),v.push(f);var I=i.attr(),w=t.style||{};w.stroke===void 0&&(w.stroke=t.color);var O=t.sourceNode,z=t.targetNode,Z={radius:w.radius};c||(Z={source:O,target:z,offset:w.offset,radius:w.radius});var J=this.getPath(v,Z),re={};r==="move"?re={path:J}:(I.endArrow&&w.endArrow===!1&&(t.style.endArrow={path:""}),I.startArrow&&w.startArrow===!1&&(t.style.startArrow={path:""}),re=(0,T.__assign)({},t.style),re.lineWidth===void 0&&(re.lineWdith=((0,M.isNumber)(o)?o:o==null?void 0:o[0])||I.lineWidth),re.path===void 0&&(re.path=J),re.stroke===void 0&&(re.stroke=I.stroke||t.color)),i&&i.attr(re)},getLabelStyleByPosition:function(t,e,r){var n=e.position||this.labelPosition,a={},i=r==null?void 0:r.shapeMap[mf],o;n==="start"?o=0:n==="end"?o=1:o=.5;var u=e.refX||this.refX,f=e.refY||this.refY;if(t.startPoint.x===t.endPoint.x&&t.startPoint.y===t.endPoint.y)return a.x=t.startPoint.x+u,a.y=t.startPoint.y+f,a.text=t.label,a;var c;(0,M.isNil)(e.autoRotate)?c=this.labelAutoRotate:c=e.autoRotate;var v=tu(i,o,u,f,c);return a.x=v.x,a.y=v.y,a.rotate=v.rotate,a.textAlign=this._getTextAlign(n,v.angle),a.text=t.label,a},getLabelBgStyleByPosition:function(t,e){if(!t)return{};var r=t.getBBox(),n=e.style&&e.style.background;if(!n)return{};var a=n.padding,i=r.width+a[1]+a[3],o=r.height+a[0]+a[2],u=(0,T.__assign)((0,T.__assign)({},n),{width:i,height:o,x:r.minX-a[3],y:r.minY-a[0],matrix:[1,0,0,0,1,0,0,0,1]}),f;return(0,M.isNil)(e.autoRotate)?f=this.labelAutoRotate:f=e.autoRotate,f&&(u.matrix=t.attr("matrix")||[1,0,0,0,1,0,0,0,1]),u},_getTextAlign:function(t,e){var r="center";return e?(e=e%(Math.PI*2),t!=="center"&&(e>=0&&e<=Math.PI/2||e>=3/2*Math.PI&&e<2*Math.PI?r=t:r=Ef(t)),r):t},getControlPoints:function(t){return t.controlPoints},getPathPoints:function(t){return t},drawShape:function(t,e){var r=this.getShapeStyle(t),n=e.addShape("path",{className:mf,name:mf,attrs:r});return e.shapeMap[mf]=n,n},drawLabel:function(t,e){var r=this.options.labelCfg,n=(0,M.deepMix)({},r,t.labelCfg),a=this.getLabelStyle(t,n,e),i=a.rotate;delete a.rotate;var o=e.addShape("text",{attrs:a,name:"text-shape",labelRelated:!0,draggable:!0});if(e.shapeMap["text-shape"]=o,!isNaN(i)&&i!==""&&o.rotateAtStart(i),a.background){var u=this.drawLabelBg(t,e,o,a,i),f=this.itemType+rf;u.set("classname",f),e.shapeMap[f]=u,o.toFront()}return o},drawLabelBg:function(t,e,r,n,a){var i=this.options.labelCfg,o=(0,M.deepMix)({},i,t.labelCfg),u=this.getLabelBgStyleByPosition(r,o),f=e.addShape("rect",{name:"text-bg-shape",attrs:u,labelRelated:!0});return e.shapeMap["text-bg-shape"]=f,f}},xc=(0,T.__assign)((0,T.__assign)({},Hf),Zf);cr.registerEdge("single-edge",xc),cr.registerEdge("line",{getControlPoints:function(){}},"single-edge"),cr.registerEdge("spline",{getPath:function(t){var e=hf(t);return e}},"single-edge"),cr.registerEdge("arc",{curveOffset:20,clockwise:1,getControlPoints:function(t){var e=t.startPoint,r=t.endPoint,n={x:(e.x+r.x)/2,y:(e.y+r.y)/2},a,i;if(t.controlPoints!==void 0){if(i=t.controlPoints[0],a=Ei(e,i,r),e.x<=r.x&&e.y>r.y?this.clockwise=a.x>i.x?0:1:e.x<=r.x&&e.yi.x?1:0:e.x>r.x&&e.y<=r.y?this.clockwise=a.y=60&&Math.round(s.h)<=240?r=e?Math.round(s.h)-Ps*t:Math.round(s.h)+Ps*t:r=e?Math.round(s.h)+Ps*t:Math.round(s.h)-Ps*t,r<0?r+=360:r>=360&&(r-=360),r}function rl(s,t,e){if(s.h===0&&s.s===0)return s.s;var r;return e?r=s.s-Mc*t:t===el?r=s.s+Mc:r=s.s+qc*t,r>1&&(r=1),e&&t===Cc&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2))}function Ic(s,t,e){var r;return e?r=s.v+_l*t:r=s.v-Jc*t,r>1&&(r=1),Number(r.toFixed(2))}function wf(s){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},e=[],r=(0,xf.Z)(s),n=Cc;n>0;n-=1){var a=r.toHsv(),i=(0,xf.Z)({h:Tc(a,n,!0),s:rl(a,n,!0),v:Ic(a,n,!0)}).toHexString();e.push(i)}e.push(r.toHexString());for(var o=1;o<=el;o+=1){var u=r.toHsv(),f=(0,xf.Z)({h:Tc(u,o),s:rl(u,o),v:Ic(u,o)}).toHexString();e.push(f)}return t.theme==="dark"?tl.map(function(c){var v=c.index,I=c.opacity,w=xf.Z.mix(t.backgroundColor||"#141414",e[v],I*100).toHexString();return w}):e}var qf={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1890FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},wo={},_f={};Object.keys(qf).forEach(function(s){wo[s]=wf(qf[s]),wo[s].primary=wo[s][5],_f[s]=wf(qf[s],{theme:"dark",backgroundColor:"#141414"}),_f[s].primary=_f[s][5]});var Jf=wo.red,Ac=wo.volcano,Oc=wo.gold,Lc=wo.orange,nl=wo.yellow,Dc=wo.lime,Nc=wo.green,ec=wo.cyan,al=wo.blue,Pc=wo.geekblue,kc=wo.purple,Rc=wo.magenta,tc=wo.grey,zi=function(t,e,r){var n=Fu()(t),a=Fu()(e);return Fu()([(1-r)*n.red()+r*a.red(),(1-r)*n.green()+r*a.green(),(1-r)*n.blue()+r*a.blue()]).rgb()},af=function(t,e,r){e===void 0&&(e="#fff"),r===void 0&&(r="rgb(150, 150, 150)");var n=zi(e,t,.05).rgb().toString(),a=zi(e,t,.1).rgb().toString(),i=zi(e,t,.2).rgb().toString(),o=zi(e,t,.4).rgb().toString(),u=zi(e,r,.02).rgb().toString(),f=zi(e,r,.05).rgb().toString(),c=zi(e,r,.1).rgb().toString(),v=zi(e,r,.2).rgb().toString(),I=zi(e,r,.3).rgb().toString(),w=wf(t,{theme:"default",backgroundColor:e}),O=Fu()(t).hex().toLowerCase(),z=w.indexOf(O),Z=t;return z!==-1&&(Z=w[z+1]),{mainStroke:t,mainFill:a,activeStroke:t,activeFill:n,inactiveStroke:o,inactiveFill:n,selectedStroke:t,selectedFill:e,highlightStroke:Z,highlightFill:i,disableStroke:I,disableFill:f,edgeMainStroke:I,edgeActiveStroke:t,edgeInactiveStroke:v,edgeSelectedStroke:t,edgeHighlightStroke:t,edgeDisableStroke:c,comboMainStroke:I,comboMainFill:u,comboActiveStroke:t,comboActiveFill:n,comboInactiveStroke:I,comboInactiveFill:u,comboSelectedStroke:t,comboSelectedFill:u,comboHighlightStroke:Z,comboHighlightFill:u,comboDisableStroke:v,comboDisableFill:f}},Sf=function(t,e,r){e===void 0&&(e="#fff"),r===void 0&&(r="#777");var n=zi(e,t,.2).rgb().toString(),a=zi(e,t,.3).rgb().toString(),i=zi(e,t,.6).rgb().toString(),o=zi(e,t,.8).rgb().toString(),u=zi(e,r,.2).rgb().toString(),f=zi(e,r,.25).rgb().toString(),c=zi(e,r,.3).rgb().toString(),v=zi(e,r,.4).rgb().toString(),I=zi(e,r,.5).rgb().toString(),w=wf(t,{theme:"dark",backgroundColor:e}),O=Fu()(t).hex().toLowerCase(),z=w.indexOf(O),Z=t;return z!==-1&&(Z=w[z+1]),{mainStroke:o,mainFill:n,activeStroke:t,activeFill:a,inactiveStroke:o,inactiveFill:n,selectedStroke:t,selectedFill:n,highlightStroke:t,highlightFill:i,disableStroke:I,disableFill:f,edgeMainStroke:r,edgeActiveStroke:t,edgeInactiveStroke:r,edgeSelectedStroke:t,edgeHighlightStroke:t,edgeDisableStroke:c,comboMainStroke:v,comboMainFill:f,comboActiveStroke:t,comboActiveFill:u,comboInactiveStroke:v,comboInactiveFill:f,comboSelectedStroke:t,comboSelectedFill:u,comboHighlightStroke:Z,comboHighlightFill:f,comboDisableStroke:v,comboDisableFill:u}},vu=function(t,e,r,n){return e===void 0&&(e="#fff"),r===void 0&&(r="default"),n===void 0&&(n="rgb(150, 150, 150)"),r==="default"?af(t,e,"rgb(150, 150, 150)"):Sf(t,e,"#777")},il=function(t,e,r,n){e===void 0&&(e="#fff"),r===void 0&&(r="default"),n===void 0&&(n="rgb(150, 150, 150)");var a=[];return t.forEach(function(i){a.push(vu(i,e,r,n))}),a},Mf="rgb(95, 149, 255)",Gu="rgb(255, 255, 255)",Bc="rgb(0, 0, 0)",Sa=vu(Mf,Gu),zu={version:"0.8.17",rootContainerClassName:"root-container",nodeContainerClassName:"node-container",edgeContainerClassName:"edge-container",comboContainerClassName:"combo-container",delegateContainerClassName:"delegate-container",defaultLoopPosition:"top",nodeLabel:{style:{fill:"#000",fontSize:12,textAlign:"center",textBaseline:"middle"},offset:4},defaultNode:{type:"circle",style:{lineWidth:1,stroke:Sa.mainStroke,fill:Sa.mainFill},size:20,color:Sa.mainStroke,linkPoints:{size:8,lineWidth:1,fill:Sa.activeFill,stroke:Sa.activeStroke}},nodeStateStyles:{active:{fill:Sa.activeFill,stroke:Sa.activeStroke,lineWidth:2,shadowColor:Sa.mainStroke,shadowBlur:10},selected:{fill:Sa.selectedFill,stroke:Sa.selectedStroke,lineWidth:4,shadowColor:Sa.selectedStroke,shadowBlur:10,"text-shape":{fontWeight:500}},highlight:{fill:Sa.highlightFill,stroke:Sa.highlightStroke,lineWidth:2,"text-shape":{fontWeight:500}},inactive:{fill:Sa.inactiveFill,stroke:Sa.inactiveStroke,lineWidth:1},disable:{fill:Sa.disableFill,stroke:Sa.disableStroke,lineWidth:1}},edgeLabel:{style:{fill:Bc,textAlign:"center",textBaseline:"middle",fontSize:12}},defaultEdge:{type:"line",size:1,style:{stroke:Sa.edgeMainStroke,lineAppendWidth:2},color:Sa.edgeMainStroke},edgeStateStyles:{active:{stroke:Sa.edgeActiveStroke,lineWidth:1},selected:{stroke:Sa.edgeSelectedStroke,lineWidth:2,shadowColor:Sa.edgeSelectedStroke,shadowBlur:10,"text-shape":{fontWeight:500}},highlight:{stroke:Sa.edgeHighlightStroke,lineWidth:2,"text-shape":{fontWeight:500}},inactive:{stroke:Sa.edgeInactiveStroke,lineWidth:1},disable:{stroke:Sa.edgeDisableStroke,lineWidth:1}},comboLabel:{style:{fill:Bc,textBaseline:"middle",fontSize:12},refY:10,refX:10},defaultCombo:{type:"circle",style:{fill:Sa.comboMainFill,lineWidth:1,stroke:Sa.comboMainStroke,r:5,width:20,height:10},size:[20,5],color:Sa.comboMainStroke,padding:[25,20,15,20]},comboStateStyles:{active:{stroke:Sa.comboActiveStroke,lineWidth:1,fill:Sa.comboActiveFill},selected:{stroke:Sa.comboSelectedStroke,lineWidth:2,fill:Sa.comboSelectedFill,shadowColor:Sa.comboSelectedStroke,shadowBlur:10,"text-shape":{fontWeight:500}},highlight:{stroke:Sa.comboHighlightStroke,lineWidth:2,fill:Sa.comboHighlightFill,"text-shape":{fontWeight:500}},inactive:{stroke:Sa.comboInactiveStroke,fill:Sa.comboInactiveFill,lineWidth:1},disable:{stroke:Sa.comboDisableStroke,fill:Sa.comboDisableFill,lineWidth:1}},delegateStyle:{fill:"#F3F9FF",fillOpacity:.5,stroke:"#1890FF",strokeOpacity:.9,lineDash:[5,5]},textWaterMarkerConfig:{width:150,height:100,compatible:!1,text:{x:0,y:60,lineHeight:20,rotate:20,fontSize:14,fontFamily:"Microsoft YaHei",fill:"rgba(0, 0, 0, 0.1)",baseline:"Middle"}},imageWaterMarkerConfig:{width:150,height:130,compatible:!1,image:{x:0,y:0,width:30,height:20,rotate:0}},waterMarkerImage:"https://gw.alipayobjects.com/os/s/prod/antv/assets/image/logo-with-text-73b8a.svg"},rc=W(57817),Sl=Vi.cloneEvent,hu=Vi.isViewportChanged,ol=function(s){(0,T.__extends)(t,s);function t(e){var r=s.call(this,e)||this;return r.extendEvents=[],r.dragging=!1,r.mousedown=!1,r.preItem=null,r.destroy(),r.graph=e,r.destroyed=!1,r.initEvents(),r}return t.prototype.initEvents=function(){var e=this,r=e.graph,n=e.extendEvents,a=n===void 0?[]:n,i=r.get("canvas"),o=i.get("el"),u=(0,M.wrapBehavior)(this,"onCanvasEvents"),f=(0,M.wrapBehavior)(this,"onExtendEvents"),c=(0,M.wrapBehavior)(this,"onWheelEvent");i.off("*").on("*",u),this.canvasHandler=u,a.push((0,rc.Z)(o,"wheel",c)),typeof window!="undefined"&&(a.push((0,rc.Z)(window,"keydown",f)),a.push((0,rc.Z)(window,"keyup",f)),a.push((0,rc.Z)(window,"focus",f))),this.resetHandler&&r.off("afterchangedata",this.resetHandler),this.resetHandler=(0,M.wrapBehavior)(this,"resetStatus"),r.on("afterchangedata",this.resetHandler)},t.getItemRoot=function(e){for(;e&&!e.get("item");)e=e.get("parent");return e},t.prototype.onCanvasEvents=function(e){var r=this,n=this.graph,a=n.get("canvas"),i=e.target,o=e.type;switch(o){case"drag":this.onCanvasEvents(Object.assign({},e,{type:"mousemove"}));break;case"dragend":this.onCanvasEvents(Object.assign({},e,{type:"mouseup"}));break;case"mousedown":this.mousedown=!0;break;case"dragend":case"mouseup":setTimeout(function(){return r.mousedown=!1});break;case"click":if(!this.mousedown)return;break;default:break}e.canvasX=e.x,e.canvasY=e.y;var u={x:e.canvasX,y:e.canvasY},f=n.get("group"),c=f.getMatrix();if(c||(c=[1,0,0,0,1,0,0,0,1]),hu(c)&&(u=n.getPointByClient(e.clientX,e.clientY)),e.x=u.x,e.y=u.y,e.currentTarget=n,i===a){(o==="mousemove"||o==="mouseleave")&&this.handleMouseMove(e,"canvas"),e.target=a,e.item=null,n.emit(o,e),n.emit("canvas:".concat(o),e);return}var v=t.getItemRoot(i);if(!v){n.emit(o,e);return}var I=v.get("item");if(!I.destroyed){var w=I.getType();if(e.target=i,e.item=I,e.canvasX===e.x&&e.canvasY===e.y){var O=n.getCanvasByPoint(e.x,e.y);e.canvasX=O.x,e.canvasY=O.y}e.name&&!e.name.includes(":")?(n.emit("".concat(w,":").concat(o),e),n.emit(o,e)):e.name&&n.emit(e.name,e),o==="dragstart"&&(this.dragging=!0),o==="dragend"&&(this.dragging=!1),o==="mousemove"&&this.handleMouseMove(e,w)}},t.prototype.onExtendEvents=function(e){this.graph.emit(e.type,e)},t.prototype.onWheelEvent=function(e){(0,M.isNil)(e.wheelDelta)&&(e.wheelDelta=-e.detail),this.graph.emit("wheel",e)},t.prototype.handleMouseMove=function(e,r){var n=this,a=n.graph,i=n.preItem,o=a.get("canvas"),u=e.target===o?null:e.item;e=Sl(e),i&&i!==u&&!i.destroyed&&(e.item=i,this.emitCustomEvent(i.getType(),"mouseleave",e),this.dragging&&this.emitCustomEvent(i.getType(),"dragleave",e)),u&&i!==u&&(e.item=u,this.emitCustomEvent(r,"mouseenter",e),this.dragging&&this.emitCustomEvent(r,"dragenter",e)),this.preItem=u},t.prototype.emitCustomEvent=function(e,r,n){n.type=r,this.graph.emit("".concat(e,":").concat(r),n)},t.prototype.resetStatus=function(){this.mousedown=!1,this.dragging=!1,this.preItem=null},t.prototype.destroy=function(){var e=this,r=e.graph,n=e.canvasHandler,a=e.extendEvents,i=r.get("canvas");i.off("*",n),(0,M.each)(a,function(o){o.remove()}),this.resetStatus(),this.extendEvents.length=0,this.canvasHandler=null,this.resetHandler=null,this.destroyed=!0},t}(bf),sl=ol,Ma=W(67320),Ml=W(81746),Cf=W.n(Ml),ul=Vi.traverseTree,_o=function(t,e){var r;return t?(0,M.isNumber)(t)?r=function(a){return t}:r=t:r=function(a){return e||1},r},fl=function(t,e){var r=[],n=[],a={},i=0;for(i=0;i=0&&(o="x",i="y");var u=0;ul(t,function(v){return u++,v.x>a.x&&(a.x=v.x),v.xa.y&&(a.y=v.y),v.yWebGL.
','Find out how to get it here.'].join(` +`):['Your browser does not seem to support WebGL.
','Find out how to get it here.'].join(` +`)),e},addGetWebGLMessage:function(e){e=e||{};var r=e.parent!==void 0?e.parent:document.body,n=e.id!==void 0?e.id:"oldie",a=s().getWebGLErrorMessage();a.id=n,r.appendChild(a)}}},Po=function(){var t=navigator.userAgent.toLowerCase();return t.indexOf("firefox")>-1?"firefox":t.indexOf("safari")>-1?"safari":t.indexOf("opr")>-1?"opera":t.indexOf("chrome")>-1?"chrome":t.indexOf("trident")>-1?"ie 11":t.indexOf("ie")>-1?"ie":"unknown"},pu=(0,T.__assign)((0,T.__assign)((0,T.__assign)((0,T.__assign)((0,T.__assign)({},Vi),E),g),p),h),ci=pu,ko=ci.radialLayout,ac=function(){function s(t){this.type=t.type,this.radial=t.radial,this.config=t}return s.prototype.init=function(t){var e=this;if(this.data=t,this.radial){this.layoutMethod=function(r){var n=Cf()[e.type](r,e.config);return ko(n),n};return}this.layoutMethod=function(r){return Cf()[e.type](r,e.config)}},s.prototype.execute=function(){return this.layoutMethod(this.data,this.config)},s.prototype.layout=function(t){return this.init(t),this.execute()},s}(),Cl=ac;(0,Ma.registerLayout)("grid",Ma.GridLayout),(0,Ma.registerLayout)("random",Ma.RandomLayout),(0,Ma.registerLayout)("force",Ma.ForceLayout),(0,Ma.registerLayout)("circular",Ma.CircularLayout),(0,Ma.registerLayout)("dagre",Ma.DagreLayout),(0,Ma.registerLayout)("dagreCompound",Ma.DagreCompoundLayout),(0,Ma.registerLayout)("radial",Ma.RadialLayout),(0,Ma.registerLayout)("concentric",Ma.ConcentricLayout),(0,Ma.registerLayout)("mds",Ma.MDSLayout),(0,Ma.registerLayout)("fruchterman",Ma.FruchtermanLayout),(0,Ma.registerLayout)("fruchterman-gpu",Ma.FruchtermanGPULayout),(0,Ma.registerLayout)("gForce",Ma.GForceLayout),(0,Ma.registerLayout)("force2",Ma.Force2Layout),(0,Ma.registerLayout)("gForce-gpu",Ma.GForceGPULayout),(0,Ma.registerLayout)("comboForce",Ma.ComboForceLayout),(0,Ma.registerLayout)("comboCombined",Ma.ComboCombinedLayout),(0,Ma.registerLayout)("forceAtlas2",Ma.ForceAtlas2Layout);var ll=function(t,e){e.isCustomLayout=!0,Ma.Layouts[t]=(0,Ma.registerLayout)(t,e)},Tl=function(){function s(t,e){var r=t.toString(),n=new Blob(["importScripts('".concat(e,"');(").concat(r,")()")],{type:"text/javascript"});return new Worker(URL.createObjectURL(n))}return s}(),Il=Tl,dl=function(t){t===void 0&&(t="https://unpkg.com/@antv/layout@0.3.23/dist/layout.min.js");function e(){var n={RUN:"LAYOUT_RUN",END:"LAYOUT_END",ERROR:"LAYOUT_ERROR",TICK:"LAYOUT_TICK",GPURUN:"GPU_LAYOUT_RUN",GPUEND:"GPU_LAYOUT_END"};layout.registerLayout("grid",layout.GridLayout),layout.registerLayout("random",layout.RandomLayout),layout.registerLayout("force",layout.ForceLayout),layout.registerLayout("force2",layout.Force2Layout),layout.registerLayout("circular",layout.CircularLayout),layout.registerLayout("dagre",layout.DagreLayout),layout.registerLayout("dagreCompound",layout.DagreCompoundLayout),layout.registerLayout("radial",layout.RadialLayout),layout.registerLayout("concentric",layout.ConcentricLayout),layout.registerLayout("mds",layout.MDSLayout),layout.registerLayout("fruchterman",layout.FruchtermanLayout),layout.registerLayout("fruchterman-gpu",layout.FruchtermanGPULayout),layout.registerLayout("gForce",layout.GForceLayout),layout.registerLayout("gForce-gpu",layout.GForceGPULayout),layout.registerLayout("comboForce",layout.ComboForceLayout),layout.registerLayout("comboCombined",layout.ComboCombinedLayout),layout.registerLayout("forceAtlas2",layout.ForceAtlas2Layout);function a(o){var u=o.data.type;return u===n.RUN||u===n.GPURUN}function i(o){var u=this,f=o.data.type;switch(f){case n.RUN:{var c=o.data,v=c.nodes,I=c.edges,w=c.layoutCfg,O=w===void 0?{}:w,z=O.type,Z=layout.getLayoutByName(z);if(!Z){this.postMessage({type:n.ERROR,message:"layout ".concat(z," not found")});break}var J;O.onLayoutEnd=function(){u.postMessage({type:n.END,nodes:v}),J==null||J.destroy()},J=new Z(O),J.init({nodes:v,edges:I}),J.execute();break}case n.GPURUN:{var re=o.data,ue=re.nodes,I=re.edges,Ee=re.layoutCfg,O=Ee===void 0?{}:Ee,Ie=re.canvas,z=O.type,Z=layout.getLayoutByName(z);if(!Z){this.postMessage({type:n.ERROR,message:"layout ".concat(z," not found")});break}if(z.split("-")[1]!=="gpu"){this.postMessage({type:n.ERROR,message:"layout ".concat(z," does not support GPU")});break}var Se=new Z(O);Se.init({nodes:ue,edges:I}),Se.executeWithWorker(Ie,this);break}default:break}}onmessage=function(u){a(u)&&i(u)}}var r=new Il(e,t);return r},sf={RUN:"LAYOUT_RUN",END:"LAYOUT_END",ERROR:"LAYOUT_ERROR",TICK:"LAYOUT_TICK",GPURUN:"GPU_LAYOUT_RUN",GPUEND:"GPU_LAYOUT_END"};function zc(s){return zc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},zc(s)}var vl=function(t){return setTimeout(t,16)},hl=function(t){return clearTimeout(t)},Tf={requestAnimationFrame:function(t){var e=typeof window!="undefined"&&(window.requestAnimationFrame||window.webkitRequestAnimationFrame)||vl;return e(t)},cancelAnimationFrame:function(t){var e=typeof window!="undefined"&&(window.cancelAnimationFrame||window.webkitCancelAnimationFrame)||hl;return e(t)}},Uc=["fruchterman","gForce"],ic=["force","grid","circular"],gl=function(s){(0,T.__extends)(t,s);function t(e){var r=s.call(this,e)||this;return r.graph=e,r.layoutCfg=e.get("layout")||{},r.layoutType=r.getLayoutType(),r.worker=null,r.workerData={},r.initLayout(),r}return t.prototype.initLayout=function(){},t.prototype.getWorker=function(){return this.worker?this.worker:(typeof Worker=="undefined"?(console.warn("Web worker is not supported in current browser."),this.worker=null):this.worker=dl(this.layoutCfg.workerScriptURL),this.worker)},t.prototype.stopWorker=function(){var e=this.workerData;!this.worker||(this.worker.terminate(),this.worker=null,e.requestId&&(Tf.cancelAnimationFrame(e.requestId),e.requestId=null),e.requestId2&&(Tf.cancelAnimationFrame(e.requestId2),e.requestId2=null))},t.prototype.execLayoutMethod=function(e,r){var n=this;return new Promise(function(a,i){return(0,T.__awaiter)(n,void 0,void 0,function(){var o,u,f,c,v,I,w,O,z,I,Z;return(0,T.__generator)(this,function(J){switch(J.label){case 0:if(o=this.graph,!o||o.get("destroyed"))return[2];u=e.type,e.onLayoutEnd=function(){o.emit("aftersublayout",{type:u}),a()},u&&this.isGPU&&(Qe(u)?u="".concat(u,"-gpu"):console.warn("The '".concat(u,"' layout does not support GPU calculation for now, it will run in CPU."))),Vi.isForce(u)?(f=e.onTick,c=e.animate,v=c===void 0&&(u==="force"||u==="force2"),I=function(){f&&f(),(c||v)&&o.refreshPositions()},e.tick=I):(u==="comboForce"||u==="comboCombined")&&(e.comboTrees=o.get("comboTrees")),w=!1;try{O=new Ma.Layouts[u](e),this.layoutMethods[r]&&this.layoutMethods[r].destroy(),this.layoutMethods[r]=O}catch(re){console.warn("The layout method: '".concat(u,"' does not exist! Please specify it first.")),i()}return w=O.enableTick,w&&(z=e.onTick,I=function(){z&&z(),o.refreshPositions()},O.tick=I),Z=this.filterLayoutData(this.data,e),me(Z,r),O.init(Z),o.emit("beforesublayout",{type:u}),[4,O.execute()];case 1:return J.sent(),O.isCustomLayout&&e.onLayoutEnd&&e.onLayoutEnd(),[2]}})})})},t.prototype.updateLayoutMethod=function(e,r){var n=this;return new Promise(function(a,i){return(0,T.__awaiter)(n,void 0,void 0,function(){var o,u,f,c,v,I,w;return(0,T.__generator)(this,function(O){switch(O.label){case 0:return o=this.graph,u=r==null?void 0:r.type,r.onLayoutEnd=function(){o.emit("aftersublayout",{type:u}),a()},Vi.isForce(u)&&(f=r.onTick,c=r.animate,v=c===void 0&&(u==="force"||u==="force2"),I=function(){f==null||f(),(c||v)&&o.refreshPositions()},r.tick=I),w=this.filterLayoutData(this.data,r),e.init(w),e.updateCfg(r),o.emit("beforesublayout",{type:u}),[4,e.execute()];case 1:return O.sent(),e.isCustomLayout&&r.onLayoutEnd&&r.onLayoutEnd(),[2]}})})})},t.prototype.layout=function(e){var r=this,n,a=this.graph;if(!(!a||a.get("destroyed"))){this.data=this.setDataFromGraph();var i=this.data,o=i.nodes,u=i.hiddenNodes;if(!o)return!1;var f=a.get("width"),c=a.get("height"),v={};Object.assign(v,{width:f,height:c,center:[f/2,c/2]},this.layoutCfg),this.layoutCfg=v;var I=v.type,w=!1;(n=this.layoutMethods)===null||n===void 0||n.forEach(function(Ie){var Se;return w=!!((Se=Ie.nodes)===null||Se===void 0?void 0:Se.length)||w});var O=this.destoryLayoutMethods();a.emit("beforelayout");var z=Promise.resolve();w&&I&&(O==null?void 0:O.length)===1&&O[0]===I?this.tweakInit():z=this.initPositions(v.center,o);var Z=this.initPositions(v.center,u);Z.then(),this.isGPU=pt(v,I);var J=v.onLayoutEnd,re=v.layoutEndFormatted,ue=v.adjust;if(re||(v.layoutEndFormatted=!0,v.onAllLayoutEnd=function(){return(0,T.__awaiter)(r,void 0,void 0,function(){return(0,T.__generator)(this,function(Ie){switch(Ie.label){case 0:return J&&J(o),this.refreshLayout(),ue&&v.pipes?[4,this.adjustPipesBox(this.data,ue)]:[3,2];case 1:Ie.sent(),this.refreshLayout(),Ie.label=2;case 2:return a.emit("afterlayout"),[2]}})})}),this.stopWorker(),v.workerEnabled&&this.layoutWithWorker(this.data,e))return!0;var Ee=!1;return v.type?(Ee=!0,z=z.then(function(){return(0,T.__awaiter)(r,void 0,void 0,function(){return(0,T.__generator)(this,function(Ie){switch(Ie.label){case 0:return[4,this.execLayoutMethod(v,0)];case 1:return[2,Ie.sent()]}})})})):v.pipes&&(Ee=!0,v.pipes.forEach(function(Ie,Se){z=z.then(function(){return(0,T.__awaiter)(r,void 0,void 0,function(){return(0,T.__generator)(this,function(De){switch(De.label){case 0:return[4,this.execLayoutMethod(Ie,Se)];case 1:return[2,De.sent()]}})})})})),Ee?z.then(function(){v.onAllLayoutEnd&&v.onAllLayoutEnd(),e&&e()}).catch(function(Ie){console.warn("graph layout failed,",Ie)}):(a.refreshPositions(),e==null||e()),!1}},t.prototype.tweakInit=function(){var e=this,r=e.data,n=e.graph,a=r.nodes,i=r.edges;if(!!(a==null?void 0:a.length)){var o={};a.forEach(function(c){var v=c.x,I=c.y;!isNaN(v)&&!isNaN(I)&&(o[c.id]={x:v,y:I},c.mass=c.mass||2)}),i.forEach(function(c){var v=c.source,I=c.target,w=o[v],O=o[I];!w&&O?o[v]={x:O.x+(Math.random()-.5)*80,y:O.y+(Math.random()-.5)*80}:!O&&w&&(o[I]={x:w.x+(Math.random()-.5)*80,y:w.y+(Math.random()-.5)*80})});var u=n.get("width"),f=n.get("height");a.forEach(function(c){var v=o[c.id]||{x:u/2+(Math.random()-.5)*20,y:f/2+(Math.random()-.5)*20};c.x=v.x,c.y=v.y})}},t.prototype.initWithPreset=function(e,r){var n=this;return new Promise(function(a,i){return(0,T.__awaiter)(n,void 0,void 0,function(){var o,u,f,c,v,I,w;return(0,T.__generator)(this,function(O){switch(O.label){case 0:return o=this,u=o.layoutCfg,f=o.data,c=u.preset,!(c==null?void 0:c.type)||!Ma.Layouts[c==null?void 0:c.type]?(r==null||r(),a(),[2,!1]):(v=pt(c,c.type),I=v?"".concat(c.type,"-gpu"):c.type,w=new Ma.Layouts[I](c),delete u.preset,w.init(f),[4,w.execute()]);case 1:return O.sent(),e==null||e(),a(),[2,!0]}})})})},t.prototype.layoutWithWorker=function(e,r){var n=this,a=this,i=a.layoutCfg,o=a.graph,u=this.getWorker(),f=this.workerData;if(!u)return!1;f.requestId=null,f.requestId2=null,f.currentTick=null,f.currentTickData=null,o.emit("beforelayout");var c=Promise.resolve(),v=!1;if(i.type)v=!0,c=c.then(function(){return n.runWebworker(u,e,i)});else if(i.pipes){v=!0;for(var I=function(J){c=c.then(function(){return n.runWebworker(u,e,J)})},w=0,O=i.pipes;w'),c=n?n.backgroundColor:void 0,v=n?n.padding:void 0;v?(0,M.isNumber)(v)&&(v=[v,v,v,v]):v=[0,0,0,0];var I=i+v[0]+v[2],w=o+v[1]+v[3],O={container:f,height:I,width:w,quickHit:!0},z=u==="svg"?new du.Canvas(O):new Ns.Canvas(O),Z=this.get("group"),J=Z.clone(),re=(0,M.clone)(J.getMatrix());re||(re=[1,0,0,0,1,0,0,0,1]);var ue=(a.maxX+a.minX)/2,Ee=(a.maxY+a.minY)/2;re=lr(re,[["t",-ue,-Ee],["t",o/2+v[3],i/2+v[0]]]),J.resetMatrix(),J.setMatrix(re),z.add(J);var Ie=z.get("el"),Se="";r||(r="image/png"),setTimeout(function(){if(u==="svg"){var De=Ie.cloneNode(!0),$e=document.implementation.createDocumentType("svg","-//W3C//DTD SVG 1.1//EN","http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"),ft=document.implementation.createDocument("http://www.w3.org/2000/svg","svg",$e);ft.replaceChild(De,ft.documentElement);var rt=new XMLSerializer().serializeToString(ft);Se="data:image/svg+xml;charset=utf8,".concat(encodeURIComponent(rt))}else{var wt=void 0,Ft=Ie.getContext("2d"),Er=void 0;if(c){var dr=typeof window!="undefined"?window.devicePixelRatio:1;try{wt=Ft.getImageData(0,0,w*dr,I*dr),Er=Ft.globalCompositeOperation,Ft.globalCompositeOperation="destination-over",Ft.fillStyle=c,Ft.fillRect(0,0,w,I)}catch(vr){console.error("Download image failed. Out of memory at ImageData creation")}}Se=Ie.toDataURL(r),c&&(Ft.clearRect(0,0,w,I),Ft.putImageData(wt,0,0),Ft.globalCompositeOperation=Er)}e&&e(Se)},16)},t.prototype.downloadFullImage=function(e,r,n){var a=this,i=this.get("group").getCanvasBBox(),o=i.height,u=i.width,f=this.get("renderer"),c=(0,Yt.Z)('
'),v=document.querySelector(".g6-graph-watermarker"),I=n?n.backgroundColor:void 0,w=n?n.padding:void 0;w?(0,M.isNumber)(w)&&(w=[w,w,w,w]):w=[0,0,0,0];var O=o+w[0]+w[2],z=u+w[1]+w[3];if(v){var Z=this.get("graphWaterMarker").cfg||{},J=Z.width,re=Z.height;O=Math.ceil(O/re)*re,z=Math.ceil(z/J)*J}var ue={container:c,height:O,width:z},Ee=f==="svg"?new du.Canvas(ue):new Ns.Canvas(ue),Ie=this.get("group"),Se=xr(Ie),De=(0,M.clone)(Se.getMatrix());De||(De=[1,0,0,0,1,0,0,0,1]);var $e=(i.maxX+i.minX)/2,ft=(i.maxY+i.minY)/2;De=lr(De,[["t",-$e,-ft],["t",u/2+w[3],o/2+w[0]]]),Se.resetMatrix(),Se.setMatrix(De),Ee.add(Se);var rt=Ee.get("el");r||(r="image/png"),this.asyncToDataUrl(r,I,function(wt){var Ft=document.createElement("a"),Er=(e||"graph")+(f==="svg"?".svg":".".concat(r.split("/")[1]));a.dataURLToImage(wt,f,Ft,Er);var dr=document.createEvent("MouseEvents");dr.initEvent("click",!1,!1),Ft.dispatchEvent(dr)},z,O,rt)},t.prototype.downloadImage=function(e,r,n){var a=this,i=this;i.stopAnimate();var o=i.get("canvas"),u=o.getRenderer();r||(r="image/png");var f=(e||"graph")+(u==="svg"?".svg":r.split("/")[1]),c=document.createElement("a");i.asyncToDataUrl(r,n,function(v){a.dataURLToImage(v,u,c,f);var I=document.createEvent("MouseEvents");I.initEvent("click",!1,!1),c.dispatchEvent(I)})},t.prototype.dataURLToImage=function(e,r,n,a){if(!e||e==="data:"){console.error("Download image failed. The graph is too large or there is invalid attribute values in graph items");return}if(typeof window!="undefined")if(window.Blob&&window.URL&&r!=="svg"){var i=e.split(","),o="";if(i&&i.length>0){var u=i[0].match(/:(.*?);/);u&&u.length>=2&&(o=u[1])}for(var f=atob(i[1]),c=f.length,v=new Uint8Array(c);c--;)v[c]=f.charCodeAt(c);var I=new Blob([v],{type:o});window.navigator.msSaveBlob?window.navigator.msSaveBlob(I,a):n.addEventListener("click",function(){n.download=a,n.href=window.URL.createObjectURL(I)})}else n.addEventListener("click",function(){n.download=a,n.href=e})},t.prototype.addPlugin=function(e){var r=this;e.destroyed||(r.get("plugins").push(e),e.initPlugin(r))},t.prototype.removePlugin=function(e){var r=this.get("plugins"),n=r.indexOf(e);n>=0&&(e.destroyPlugin(),r.splice(n,1))},t.prototype.setImageWaterMarker=function(e,r){e===void 0&&(e=zu.waterMarkerImage);var n=this.get("container");(0,M.isString)(n)&&(n=document.getElementById(n)),n.style.position||(n.style.position="relative");var a=this.get("graphWaterMarker"),i=(0,M.deepMix)({},zu.imageWaterMarkerConfig,r),o=i.width,u=i.height,f=i.compatible,c=i.image;if(!e){var v=f?n:document.querySelector(".g6-graph-watermarker");v&&(v.style.cssText=void 0),a&&a.clear();return}if(a)a.clear();else{var I={container:n,width:o,height:u,capture:!1},w=this.get("pixelRatio");w&&(I.pixelRatio=w,window.devicePixelRatio=w),a=new Ns.Canvas(I),this.set("graphWaterMarker",a)}a.get("el").style.display="none";var O=a.get("context"),z=c.rotate,Z=c.x,J=c.y;O.rotate(-z*Math.PI/180);var re=new Image;re.crossOrigin="anonymous",re.src=e,re.onload=function(){if(O.drawImage(re,Z,J,c.width,c.height),O.rotate(z*Math.PI/180),f)n.style.cssText="background-image: url(".concat(a.get("el").toDataURL("image/png"),");background-repeat:repeat;");else{var ue=document.querySelector(".g6-graph-watermarker");ue||(ue=document.createElement("div"),ue.className="g6-graph-watermarker"),ue.className="g6-graph-watermarker",a.destroyed||(ue.style.cssText="background-image: url(".concat(a.get("el").toDataURL("image/png"),");background-repeat:repeat;position:absolute;top:0;bottom:0;left:0;right:0;pointer-events:none;z-index:-1;"),n.appendChild(ue))}}},t.prototype.setTextWaterMarker=function(e,r){var n=this.get("container");(0,M.isString)(n)&&(n=document.getElementById(n)),n.style.position||(n.style.position="relative");var a=this.get("graphWaterMarker"),i=(0,M.deepMix)({},zu.textWaterMarkerConfig,r),o=i.width,u=i.height,f=i.compatible,c=i.text;if(!(e==null?void 0:e.length)){var v=f?n:document.querySelector(".g6-graph-watermarker");v&&(v.style.cssText=void 0),a&&a.clear();return}if(a)a.clear();else{var I={container:n,width:o,height:u,capture:!1},w=this.get("pixelRatio");w&&(I.pixelRatio=w,window.devicePixelRatio=w),a=new Ns.Canvas(I),this.set("graphWaterMarker",a)}a.get("el").style.display="none";var O=a.get("context"),z=c.rotate,Z=c.fill,J=c.fontFamily,re=c.fontSize,ue=c.baseline,Ee=c.x,Ie=c.y,Se=c.lineHeight;O.rotate(-z*Math.PI/180),O.font="".concat(re,"px ").concat(J),O.fillStyle=Z,O.textBaseline=ue;for(var De=(0,M.isString)(e)?[e]:e,$e=De.length-1;$e>=0;$e--)O.fillText(De[$e],Ee,Ie+$e*Se);if(O.rotate(z*Math.PI/180),f)n.style.cssText="background-image: url(".concat(a.get("el").toDataURL("image/png"),");background-repeat:repeat;");else{var ft=document.querySelector(".g6-graph-watermarker");ft||(ft=document.createElement("div"),ft.className="g6-graph-watermarker"),ft.style.cssText="background-image: url(".concat(a.get("el").toDataURL("image/png"),");background-repeat:repeat;position:absolute;top:0;bottom:0;left:0;right:0;pointer-events:none;z-index:99;"),n.appendChild(ft)}},t.prototype.destroy=function(){var e,r,n,a;(0,M.each)(this.get("plugins"),function(c){c.destroyPlugin()});var i=this.get("tooltips");if(i)for(var o=0;o0)for(var f=o.length-1;f>=0;f--){var c=o[f].getModel();t.indexOfChild(e.children||[],c.id)===-1&&(a.innerRemoveChild(c.id,{x:e.x,y:e.y},n),o.splice(f,1))}}var v,I;i.get("originAttrs")&&(v=i.get("originAttrs").x,I=i.get("originAttrs").y);var w=i.getModel();n&&i.set("originAttrs",{x:w.x,y:w.y}),i.set("model",Object.assign(w,e.data)),(v!==e.x||I!==e.y)&&i.updatePosition({x:e.x,y:e.y})},t.prototype.innerRemoveChild=function(e,r,n){var a=this,i=a.findById(e);if(!!i)if((0,M.each)(i.get("children"),function(u){a.innerRemoveChild(u.getModel().id,r,n)}),n){var o=i.getModel();i.set("to",r),i.set("originAttrs",{x:o.x,y:o.y}),a.get("removeList").push(i)}else a.removeItem(i,!1)},t.prototype.changeData=function(e,r){r===void 0&&(r=!0);var n=this;this.getNodes().map(function(a){return n.clearItemStates(a)}),this.getEdges().map(function(a){return n.clearItemStates(a)}),r&&this.get("enabledStack")&&this.pushStack("changedata",{before:n.get("originData"),after:e||n.get("data")}),e?(n.data(e),n.render(!1)):n.layout(this.get("fitView"))},t.prototype.changeLayout=function(e){console.warn("Please call updateLayout instead of changeLayout. changeLayout will be discarded soon");var r=this;r.updateLayout(e)},t.prototype.updateLayout=function(e,r,n,a){a===void 0&&(a=!0);var i=this;if(!e){console.warn("layout cannot be null");return}if(a&&this.get("enabledStack")&&this.pushStack("layout",{before:i.get("layout"),after:e}),i.set("layout",e),i.set("layoutMethod",i.getLayout()),i.layout(),r){var o=n;o||(r==="begin"?o={x:0,y:0}:o={x:this.getWidth()/2,y:this.getHeight()/2}),o=this.getPointByCanvas(o.x,o.y);var u=this.getGroup().getMatrix()||[1,0,0,0,1,0,0,0,1];o.x=o.x*u[0]+u[6],o.y=o.y*u[0]+u[7];var f=this.getGroup().getCanvasBBox(),c=f.minX,v=f.maxX,I=f.minY,w=f.maxY,O={x:(c+v)/2,y:(I+w)/2};r==="begin"&&(O.x=c,O.y=I),this.translate(o.x-O.x,o.y-O.y)}},t.prototype.refreshLayout=function(e){console.warn("Please call layout instead of refreshLayout. refreshLayout will be discarded soon");var r=this;r.layout(e)},t.prototype.layout=function(e){var r=this,n=this,a=n.get("data"),i=n.get("layoutMethod"),o=n.get("layout"),u=a;if(o==null?void 0:o.excludeInvisibles){a=(0,M.clone)(n.get("data"));var f={};Xr(a,function(I){var w=I.children;if(!(w==null?void 0:w.length))return!0;for(var O=w.length-1;O>=0;O--){var z=r.findById(w[O].id),Z=z?!z.isVisible():w[O].visible===!1;Z&&(f[I.id]=f[I.id]||[],f[I.id].push({idx:O,child:w.splice(O,1)[0]}))}}),u=i?i(a,n.get("layout")):a,Xr(u,function(I){var w=f[I.id];if(w==null?void 0:w.length)for(var O=w.length-1;O>=0;O--){var z=w[O],Z=z.idx,J=z.child;I.children.splice(Z,0,J)}})}else u=i?i(a,n.get("layout")):a;var c=n.get("animate");if(n.emit("beforerefreshlayout",{data:a,layoutData:u}),n.emit("beforelayout"),n.innerUpdateChild(u,void 0,c),e){var v=n.get("viewController");v.fitView()}c?n.layoutAnimate(u):(n.refresh(),n.paint()),n.emit("afterrefreshlayout",{data:a,layoutData:u}),n.emit("afterlayout")},t.prototype.addChild=function(e,r,n){n===void 0&&(n=!0);var a=this;a.emit("beforeaddchild",{model:e,parent:r}),(0,M.isString)(r)||(r=r.get("id"));var i=a.findDataById(r);if(i){i.children||(i.children=[]),i.children.push(e);var o=a.findById(r);o.refresh(),a.changeData(void 0,n)}},t.prototype.updateChildren=function(e,r,n){n===void 0&&(n=!0);var a=this,i=a.findById(r);if(!r||!i){console.warn("Update children failed! There is no node with id '".concat(r,"'"));return}var o=a.findDataById(r);o.children=e,i.refresh(),a.changeData(void 0,n)},t.prototype.updateChild=function(e,r,n){n===void 0&&(n=!0);var a=this;if(!r||!a.findById(r)){a.changeData(e,n);return}var i=a.findDataById(r),o=a.findById(e.id);if(i.children||(i.children=[]),!o)i.children.push(e);else{var u=t.indexOfChild(i.children,e.id);u>-1&&(i.children[u]=e)}var f=a.findById(r);f==null||f.refresh(),a.changeData(void 0,n)},t.prototype.removeChild=function(e,r){r===void 0&&(r=!0);var n=this,a=n.findById(e),i;if(a?i=a==null?void 0:a.get("parent"):i=n.getNodes().find(function(v){var I=v.getModel().children||[];return!!I.find(function(w){return w.id===e})}),i&&!i.destroyed){var o=i.get("id"),u=n.findDataById(o),f=u&&u.children||[],c=t.indexOfChild(f,e);f.splice(c,1),i.refresh()}n.changeData(void 0,r)},t.prototype.findDataById=function(e,r){var n=this;if(r||(r=n.get("data")),e===r.id)return r;var a=null;return(0,M.each)(r.children||[],function(i){if(i.id===e)return a=i,!1;if(a=n.findDataById(e,i),a)return!1}),a},t.prototype.layoutAnimate=function(e,r){var n=this,a=this.get("animateCfg");n.emit("beforeanimate",{data:e}),n.getEdges().forEach(function(i){var o=i.get("model");o.sourceAnchor||(o.sourceAnchor=i.get("sourceAnchorIndex"))}),this.get("canvas").animate(function(i){Xr(e,function(o){var u=n.findById(o.id);if(u){var f=u.get("originAttrs"),c=u.get("model");if(f||(f={x:c.x,y:c.y},u.set("originAttrs",f)),r){var v=r(u,i,f,e);u.set("model",Object.assign(c,v))}else c.x=f.x+(o.x-f.x)*i,c.y=f.y+(o.y-f.y)*i}return!0}),(0,M.each)(n.get("removeList"),function(o){var u=o.getModel(),f=o.get("originAttrs"),c=o.get("to");u.x=f.x+(c.x-f.x)*i,u.y=f.y+(c.y-f.y)*i}),n.refreshPositions()},{duration:a.duration,easing:a.ease,callback:function(){(0,M.each)(n.getNodes(),function(o){o.set("originAttrs",null)}),(0,M.each)(n.get("removeList"),function(o){n.removeItem(o,!1)}),n.set("removeList",[]),a.callback&&a.callback(),n.emit("afteranimate",{data:e})},delay:a.delay})},t.prototype.stopLayoutAnimate=function(){this.get("canvas").stopAnimate(),this.emit("layoutanimateend",{data:this.get("data")}),this.layoutAnimating=!1},t.prototype.isLayoutAnimating=function(){return this.layoutAnimating},t.prototype.render=function(e){e===void 0&&(e=!0);var r=this,n=r.get("data");if(!n||!(0,M.isObject)(n)||!Object.keys(n).length)throw new Error("data must be defined first");r.clear(),e&&this.get("enabledStack")&&this.clearStack(),r.emit("beforerender"),r.layout(this.get("fitView")),r.emit("afterrender")},t.prototype.save=function(){return this.get("data")},t.prototype.data=function(e){s.prototype.data.call(this,e),this.set("originData",JSON.parse(JSON.stringify(e)))},t}(Rr),S=d,F=W(45442),K=function(){function s(t){this._cfgs=(0,M.deepMix)(this.getDefaultCfgs(),t),this._events={},this.destroyed=!1}return s.prototype.getDefaultCfgs=function(){return{}},s.prototype.initPlugin=function(t){var e=this;e.set("graph",t);var r=e.getEvents(),n={};(0,M.each)(r,function(a,i){var o=(0,M.wrapBehavior)(e,a);n[i]=o,t.on(i,o)}),this._events=n,this.init()},s.prototype.getEvents=function(){return{}},s.prototype.get=function(t){var e;return(e=this._cfgs)===null||e===void 0?void 0:e[t]},s.prototype.set=function(t,e){this._cfgs[t]=e},s.prototype.destroy=function(){},s.prototype.destroyPlugin=function(){this.destroy();var t=this.get("graph"),e=this._events;(0,M.each)(e,function(r,n){t.off(n,r)}),this._events=null,this._cfgs=null,this.destroyed=!0},s}(),ae=K,fe=function(){var s=function(e,r){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},s(e,r)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");s(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),he="url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PHBhdHRlcm4gaWQ9ImdyaWQiIHdpZHRoPSI0MCIgaGVpZ2h0PSI0MCIgcGF0dGVyblVuaXRzPSJ1c2VyU3BhY2VPblVzZSI+PHBhdGggZD0iTSAwIDEwIEwgNDAgMTAgTSAxMCAwIEwgMTAgNDAgTSAwIDIwIEwgNDAgMjAgTSAyMCAwIEwgMjAgNDAgTSAwIDMwIEwgNDAgMzAgTSAzMCAwIEwgMzAgNDAiIGZpbGw9Im5vbmUiIHN0cm9rZT0iI2UwZTBlMCIgb3BhY2l0eT0iMC4yIiBzdHJva2Utd2lkdGg9IjEiLz48cGF0aCBkPSJNIDQwIDAgTCAwIDAgMCA0MCIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjZTBlMGUwIiBzdHJva2Utd2lkdGg9IjEiLz48L3BhdHRlcm4+PC9kZWZzPjxyZWN0IHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbGw9InVybCgjZ3JpZCkiLz48L3N2Zz4=)",xe=function(s){fe(t,s);function t(e){return s.call(this,e)||this}return t.prototype.getDefaultCfgs=function(){return{img:he,follow:!0}},t.prototype.init=function(){var e=this.get("graph"),r=e.get("container"),n=e.get("canvas").get("el"),a=this.get("img")||he;a.includes("url(")||(a='url("'.concat(a,'")'));var i=(0,Yt.Z)(`
`),o=(0,Yt.Z)(`
`));this.set("container",i),this.set("gridContainer",o),this.positionInit(),i.appendChild(o),r.insertBefore(i,n)},t.prototype.positionInit=function(){var e=this.get("graph"),r=e.get("minZoom"),n=e.get("width"),a=e.get("height");(0,F.Z)(this.get("container"),{width:"".concat(n,"px"),height:"".concat(a,"px")});var i=n*80/r,o=a*80/r;(0,F.Z)(this.get("gridContainer"),{width:"".concat(i,"px"),height:"".concat(o,"px"),left:"-".concat(i/2,"px"),top:"-".concat(o/2,"px")})},t.prototype.getEvents=function(){return{viewportchange:"updateGrid"}},t.prototype.updateGrid=function(e){var r=this.get("gridContainer"),n=e.matrix;n||(n=[1,0,0,0,1,0,0,0,1]);var a=this.get("follow"),i="matrix(".concat(n[0],", ").concat(n[1],", ").concat(n[3],", ").concat(n[4],", ").concat(a?n[6]:"0",", ").concat(a?n[7]:"0",")");(0,F.Z)(r,{transform:i})},t.prototype.getContainer=function(){return this.get("container")},t.prototype.destroy=function(){var e=this.get("graph"),r=e.get("container"),n=this.get("container");r.removeChild(n)},t}(ae),Te=xe,Be=W(38186),Ze=W.n(Be),je=function(){var s=function(e,r){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},s(e,r)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");s(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}();typeof document!="undefined"&&Ze()(` + .g6-component-contextmenu { + border: 1px solid #e2e2e2; + border-radius: 4px; + font-size: 12px; + color: #545454; + background-color: rgba(255, 255, 255, 0.9); + padding: 10px 8px; + box-shadow: rgb(174, 174, 174) 0px 0px 10px; + } + .g6-contextmenu-ul { + padding: 0; + margin: 0; + list-style: none; + } + +`);var lt=function(s){je(t,s);function t(e){return s.call(this,e)||this}return t.prototype.getDefaultCfgs=function(){return{offsetX:6,offsetY:6,handleMenuClick:void 0,getContent:function(r){return` +
    +
  • \u83DC\u5355\u98791
  • +
  • \u83DC\u5355\u98792
  • +
+ `},shouldBegin:function(r){return!0},onHide:function(){return!0},itemTypes:["node","edge","combo"],trigger:"contextmenu"}},t.prototype.getEvents=function(){return this.get("trigger")==="click"?{click:"onMenuShow",touchend:"onMenuShow"}:{contextmenu:"onMenuShow"}},t.prototype.init=function(){var e=this.get("className"),r=(0,Yt.Z)("
"));(0,F.Z)(r,{top:"0px",position:"absolute",visibility:"hidden"});var n=this.get("container");n||(n=this.get("graph").get("container")),(0,M.isString)(n)&&(n=document.getElementById(n)),n.appendChild(r),this.set("menu",r)},t.prototype.onMenuShow=function(e){var r=this;e.preventDefault();var n=this.get("itemTypes");if(e.item){if(e.item&&e.item.getType&&n.indexOf(e.item.getType())===-1){r.onMenuHide();return}}else if(n.indexOf("canvas")===-1){r.onMenuHide();return}var a=this.get("shouldBegin");if(!!a(e)){var i=this.get("menu"),o=this.get("getContent"),u=this.get("graph"),f=o(e,u);(0,M.isString)(f)?i.innerHTML=f:i.innerHTML=f.outerHTML,this.removeMenuEventListener();var c=this.get("handleMenuClick");if(c){var v=function($e){c($e.target,e.item,u)};this.set("handleMenuClickWrapper",v),i.addEventListener("click",v)}var I=u.get("width"),w=u.get("height"),O=i.getBoundingClientRect(),z=this.get("offsetX")||0,Z=this.get("offsetY")||0,J=u.getContainer().offsetTop,re=u.getContainer().offsetLeft,ue=e.canvasX+re+z,Ee=e.canvasY+J+Z;ue+O.width>I&&(ue=e.canvasX-O.width-z+re),Ee+O.height>w&&(Ee=e.canvasY-O.height-Z+J),(0,F.Z)(i,{top:"".concat(Ee,"px"),left:"".concat(ue,"px"),visibility:"visible"});var Ie=this.get("trigger")==="click",Se=function($e){if(Ie){Ie=!1;return}r.onMenuHide()};document.body.addEventListener("click",Se),this.set("handler",Se)}},t.prototype.removeMenuEventListener=function(){var e=this.get("handleMenuClickWrapper"),r=this.get("handler");if(e){var n=this.get("menu");n.removeEventListener("click",e),this.set("handleMenuClickWrapper",null)}r&&document.body.removeEventListener("click",r)},t.prototype.onMenuHide=function(){var e=this.get("menu");e&&(0,F.Z)(e,{visibility:"hidden"}),this.removeMenuEventListener()},t.prototype.destroy=function(){var e=this.get("menu");if(this.removeMenuEventListener(),e){var r=this.get("container");r||(r=this.get("graph").get("container")),(0,M.isString)(r)&&(r=document.getElementById(r)),r.removeChild(e)}},t}(ae),kt=lt,pr=function(){var s=function(e,r){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},s(e,r)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");s(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),Wt=function(){return Wt=Object.assign||function(s){for(var t,e=1,r=arguments.length;e-1,f=navigator.userAgent.toLowerCase().indexOf("safari")>-1,c=(0,Yt.Z)(` +
`)),v=0,I=0,w=!1,O=0,z=0,Z=0,J=0,re=0,ue=0,Ee=f||u?"mousedown":"dragstart";c.addEventListener(Ee,function($e){var ft,rt;if($e.dataTransfer){var wt=new Image;wt.src="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' %3E%3Cpath /%3E%3C/svg%3E",(rt=(ft=$e.dataTransfer).setDragImage)===null||rt===void 0||rt.call(ft,wt,0,0);try{$e.dataTransfer.setData("text/html","view-port-minimap")}catch(Er){$e.dataTransfer.setData("text","view-port-minimap")}}if(r.refresh=!1,$e.target===c){var Ft=c.style;O=parseInt(Ft.left,10),z=parseInt(Ft.top,10),Z=parseInt(Ft.width,10),J=parseInt(Ft.height,10),!(Z>n[0]||J>n[1])&&(ue=a.getZoom(),re=e.get("ratio"),w=!0,v=$e.clientX,I=$e.clientY)}},!1);var Ie=function(ft){if(!(!w||(0,M.isNil)(ft.clientX)||(0,M.isNil)(ft.clientY))){var rt=v-ft.clientX,wt=I-ft.clientY;(O-rt<0||O-rt+Z>=n[0])&&(rt=0),(z-wt<0||z-wt+J>=n[1])&&(wt=0),O-=rt,z-=wt,(0,F.Z)(c,{left:"".concat(O,"px"),top:"".concat(z,"px")}),a.translate(rt*ue/re,wt*ue/re),v=ft.clientX,I=ft.clientY}};!f&&!u&&c.addEventListener("drag",Ie,!1);var Se=function(){w=!1,r.refresh=!0},De=f||u?"mouseup":"dragend";c.addEventListener(De,Se,!1),o.addEventListener("mouseleave",Se),o.addEventListener("mouseup",Se),(f||u)&&o.addEventListener("mousemove",Ie,!1),this.set("viewport",c),o.appendChild(c)}},t.prototype.updateViewport=function(){if(!this.destroyed){var e=this.get("ratio"),r=this.get("totaldx"),n=this.get("totaldy"),a=this.get("graph"),i=this.get("size"),o=a.get("canvas").get("el"),u=a.get("width")||o.scrollWidth||500,f=a.get("height")||o.scrollHeight||500,c=a.getPointByCanvas(0,0),v=a.getPointByCanvas(u,f),I=this.get("viewport");I||this.initViewport();var w=(v.x-c.x)*e,O=(v.y-c.y)*e,z=c.x*e+r,Z=c.y*e+n,J=z+w,re=Z+O;z<0&&(w+=z,z=0),J>i[0]&&(w=w-(J-i[0])),Z<0&&(O+=Z,Z=0),re>i[1]&&(O=O-(re-i[1])),this.set("ratio",e);var ue="".concat(z,"px"),Ee="".concat(Z,"px");(0,F.Z)(I,{left:ue,top:Ee,width:"".concat(w,"px"),height:"".concat(O,"px")})}},t.prototype.updateGraphShapes=function(){var e=this._cfgs.graph,r=this.get("canvas"),n=e.get("group");if(!n.destroyed){r.clear();var a;this.get("hideEdge")?(a=r.addGroup(),n.get("children").forEach(function(o){o.get("id").includes("-edge")||a.add(o.clone())})):(a=n.clone(),a.resetMatrix(),r.add(a));var i=e.get("renderer");i===yn&&this.updateVisible(a)}},t.prototype.updateVisible=function(e){var r=this;if(!e.isGroup()&&!e.get("visible"))e.hide();else{var n=e.get("children");if(!n||!n.length)return;n.forEach(function(a){a.get("visible")||a.hide(),r.updateVisible(a)})}},t.prototype.updateKeyShapes=function(){var e=this,r=this._cfgs.graph,n=this.get("canvas"),a=n.get("children")[0]||n.addGroup();this.get("hideEdge")||(0,M.each)(r.getEdges(),function(u){e.updateOneEdgeKeyShape(u,a)}),(0,M.each)(r.getNodes(),function(u){e.updateOneNodeKeyShape(u,a)});var i=r.getCombos();if(i&&i.length){var o=a.find(function(u){return u.get("name")==="comboGroup"})||a.addGroup({name:"comboGroup"});setTimeout(function(){e.destroyed||((0,M.each)(i,function(u){e.updateOneComboKeyShape(u,o)}),o==null||o.sort(),o==null||o.toBack(),e.updateCanvas())},250)}this.clearDestroyedShapes()},t.prototype.updateOneComboKeyShape=function(e,r){if(!this.destroyed){var n=this.get("itemMap")||{},a=n[e.get("id")],i=e.getBBox(),o=e.get("keyShape").clone(),u=o.attr(),f={x:i.centerX,y:i.centerY};a?f=Object.assign(u,f):(a=o,r.add(a));var c=a.get("type");(c==="rect"||c==="image")&&(f.x=i.minX,f.y=i.minY),a.attr(f),e.isVisible()?a.show():a.hide(),a.exist=!0;var v=e.getModel().depth;isNaN(v)||a.set("zIndex",v),n[e.get("id")]=a,this.set("itemMap",n)}},t.prototype.updateOneNodeKeyShape=function(e,r){var n=this.get("itemMap")||{},a=n[e.get("id")],i=e.getBBox(),o=e.get("keyShape").clone(),u=o.attr(),f={x:i.centerX,y:i.centerY};a?(f=Object.assign(u,f),a.toFront()):(a=o,r.add(a));var c=a.get("type");(c==="rect"||c==="image")&&(f.x=i.minX,f.y=i.minY),a.attr(f),e.isVisible()?a.show():a.hide(),a.exist=!0;var v=e.getModel().depth;isNaN(v)||a.set("zIndex",v),n[e.get("id")]=a,this.set("itemMap",n)},t.prototype.updateDelegateShapes=function(){var e=this,r=this._cfgs.graph,n=this.get("canvas"),a=n.get("children")[0]||n.addGroup();this.get("hideEdge")||(0,M.each)(r.getEdges(),function(u){e.updateOneEdgeKeyShape(u,a)}),(0,M.each)(r.getNodes(),function(u){e.updateOneNodeDelegateShape(u,a)});var i=r.getCombos();if(i&&i.length){var o=a.find(function(u){return u.get("name")==="comboGroup"})||a.addGroup({name:"comboGroup"});setTimeout(function(){e.destroyed||((0,M.each)(i,function(u){e.updateOneComboKeyShape(u,o)}),o==null||o.sort(),o==null||o.toBack(),e.updateCanvas())},250)}this.clearDestroyedShapes()},t.prototype.clearDestroyedShapes=function(){var e=this.get("itemMap")||{},r=Object.keys(e);if(!(!r||r.length===0))for(var n=r.length-1;n>=0;n--){var a=e[r[n]],i=a.exist;a.exist=!1,i||(a.remove(),delete e[r[n]])}},t.prototype.updateOneEdgeKeyShape=function(e,r){var n=this.get("itemMap")||{},a=n[e.get("id")];if(a){var i=e.get("keyShape").attr("path");a.attr("path",i)}else a=e.get("keyShape").clone(),r.add(a);e.isVisible()?a.show():a.hide(),a.exist=!0,n[e.get("id")]=a,this.set("itemMap",n)},t.prototype.updateOneNodeDelegateShape=function(e,r){var n=this.get("delegateStyle"),a=this.get("itemMap")||{},i=a[e.get("id")],o=e.getBBox();if(i){var u={x:o.minX,y:o.minY,width:o.width,height:o.height};i.attr(u),i.toFront()}else i=r.addShape("rect",{attrs:Wt({x:o.minX,y:o.minY,width:o.width,height:o.height},n),name:"minimap-node-shape"});e.isVisible()?i.show():i.hide(),i.exist=!0,a[e.get("id")]=i,this.set("itemMap",a)},t.prototype.init=function(){this.initContainer(),this.get("graph").on("afterupdateitem",this.handleUpdateCanvas),this.get("graph").on("afteritemstatechange",this.handleUpdateCanvas),this.get("graph").on("afteradditem",this.handleUpdateCanvas),this.get("graph").on("afterremoveitem",this.handleUpdateCanvas),this.get("graph").on("afterrender",this.handleUpdateCanvas),this.get("graph").on("afterlayout",this.handleUpdateCanvas)},t.prototype.initContainer=function(){var e=this,r=e.get("graph"),n=e.get("size"),a=e.get("className"),i=e.get("container"),o=(0,Yt.Z)("
"));(0,M.isString)(i)&&(i=document.getElementById(i)),i?i.appendChild(o):r.get("container").appendChild(o),e.set("container",o);var u=(0,Yt.Z)('
');o.appendChild(u),u.addEventListener("dragenter",function(v){v.preventDefault()}),u.addEventListener("dragover",function(v){v.preventDefault()});var f,c=r.get("renderer");c===yn?f=new du.Canvas({container:u,width:n[0],height:n[1]}):f=new Ns.Canvas({container:u,width:n[0],height:n[1]}),e.set("canvas",f),e.updateCanvas()},t.prototype.updateCanvas=function(){if(!this.destroyed){var e=this.get("refresh");if(!!e){var r=this.get("graph");if(!r.get("destroyed")){this.get("viewportChange")&&(this.set("viewportChange",!1),this.updateViewport());var n=this.get("size"),a=this.get("canvas"),i=this.get("type"),o=this.get("padding");if(!a.destroyed){switch(i){case Dr:this.updateGraphShapes();break;case Kr:this.updateKeyShapes();break;case Yr:this.updateDelegateShapes();break;default:break}var u=a.get("children")[0];if(!!u){u.resetMatrix();var f=u.getCanvasBBox(),c=r.get("canvas").getCanvasBBox(),v=r.getZoom()||1,I=c.width/v,w=c.height/v;Number.isFinite(f.width)&&(I=Vt(f.width,I),w=Vt(f.height,w)),I+=2*o,w+=2*o;var O=Math.min(n[0]/I,n[1]/w),z=[1,0,0,0,1,0,0,0,1],Z=0,J=0;Number.isFinite(f.minX)&&(Z=-f.minX),Number.isFinite(f.minY)&&(J=-f.minY);var re=(n[0]-(I-2*o)*O)/2,ue=(n[1]-(w-2*o)*O)/2;z=jt(z,[["t",Z,J],["s",O,O],["t",re,ue]]),u.setMatrix(z),this.set("ratio",O),this.set("totaldx",re+Z*O),this.set("totaldy",ue+J*O),this.set("dx",re),this.set("dy",ue),this.updateViewport()}}}}}},t.prototype.getCanvas=function(){return this.get("canvas")},t.prototype.getViewport=function(){return this.get("viewport")},t.prototype.getContainer=function(){return this.get("container")},t.prototype.destroy=function(){var e;(e=this.get("canvas"))===null||e===void 0||e.destroy();var r=this.get("container");(r==null?void 0:r.parentNode)&&r.parentNode.removeChild(r)},t}(ae),An=dn,Kn=function(){var s=function(e,r){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},s(e,r)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");s(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}();function Sn(s,t,e){var r=s.x-t.x,n=s.y-t.y;return!e||Math.abs(r)>e||Math.abs(n)>e?Math.sqrt(r*r+n*n):e}function pi(s,t){return s.x*t.x+s.y*t.y}function Qn(s,t){var e=(t.source.y-t.target.y)/(t.source.x-t.target.x),r=(e*e*t.source.x+e*(s.y-t.source.y)+s.x)/(e*e+1),n=e*(r-t.source.x)+t.source.y;return{x:r,y:n}}var Bi=function(s){Kn(t,s);function t(e){return s.call(this,e)||this}return t.prototype.getDefaultCfgs=function(){return{edgeBundles:[],edgePoints:[],K:.1,lambda:.1,divisions:1,divRate:2,cycles:6,iterations:90,iterRate:.6666667,bundleThreshold:.6,eps:1e-6,onLayoutEnd:function(){},onTick:function(){}}},t.prototype.init=function(){var e=this.get("graph"),r=this.get("onTick"),n=function(){r&&r(),e.refreshPositions()};this.set("tick",n)},t.prototype.bundling=function(e){var r=this;if(r.set("data",e),!r.isTicking()){var n=e.edges||[],a=e.nodes||[],i={},o=!1;if(a.forEach(function(Ee){(Ee.x===null||!Ee.y===null||Ee.x===void 0||!Ee.y===void 0)&&(o=!0),i[Ee.id]=Ee}),o)throw new Error("please layout the graph or assign x and y for nodes first");r.set("nodeIdMap",i);var u=r.get("divisions"),f=r.get("divRate"),c=r.divideEdges(u);r.set("edgePoints",c);var v=r.getEdgeBundles();r.set("edgeBundles",v);for(var I=r.get("cycles"),w=r.get("iterations"),O=r.get("iterRate"),z=r.get("lambda"),Z=0;ZO;){var ue=O/re,Ee={x:i[u][J-1].x,y:i[u][J-1].y};Ee.x+=ue*(Z.x-i[u][J-1].x),Ee.y+=ue*(Z.y-i[u][J-1].y),z.push(Ee),re-=O,O=w}O-=re}}),z.push({x:v.x,y:v.y}),i[u]=z}}),i},t.prototype.getEdgeLength=function(e){var r=0;return e.forEach(function(n,a){a!==0&&(r+=Sn(n,e[a-1]))}),r},t.prototype.getEdgeBundles=function(){var e=this,r=e.get("data"),n=r.edges||[],a=e.get("bundleThreshold"),i=e.get("nodeIdMap"),o=e.get("edgeBundles");return o||(o=[]),n.forEach(function(u,f){(!o[f]||o[f]===void 0)&&(o[f]=[])}),n.forEach(function(u,f){var c=i[u.source],v=i[u.target];n.forEach(function(I,w){if(!(w<=f)){var O=i[I.source],z=i[I.target],Z=e.getBundleScore({source:c,target:v},{source:O,target:z});Z>=a&&(o[f].push(w),o[w].push(f))}})}),o},t.prototype.getBundleScore=function(e,r){var n=this;e.vx=e.target.x-e.source.x,e.vy=e.target.y-e.source.y,r.vx=r.target.x-r.source.x,r.vy=r.target.y-r.source.y,e.length=Sn({x:e.source.x,y:e.source.y},{x:e.target.x,y:e.target.y}),r.length=Sn({x:r.source.x,y:r.source.y},{x:r.target.x,y:r.target.y});var a=n.getAngleScore(e,r),i=n.getScaleScore(e,r),o=n.getPositionScore(e,r),u=n.getVisibilityScore(e,r);return a*i*o*u},t.prototype.getAngleScore=function(e,r){var n=pi({x:e.vx,y:e.vy},{x:r.vx,y:r.vy});return n/(e.length*r.length)},t.prototype.getScaleScore=function(e,r){var n=(e.length+r.length)/2,a=2/(n/Math.min(e.length,r.length)+Math.max(e.length,r.length)/n);return a},t.prototype.getPositionScore=function(e,r){var n=(e.length+r.length)/2,a={x:(e.source.x+e.target.x)/2,y:(e.source.y+e.target.y)/2},i={x:(r.source.x+r.target.x)/2,y:(r.source.y+r.target.y)/2},o=Sn(a,i);return n/(n+o)},t.prototype.getVisibilityScore=function(e,r){var n=this.getEdgeVisibility(e,r),a=this.getEdgeVisibility(r,e);return na||Math.abs(v.y)>a){var I=Sn(o[c][e],o[r][e]),w=1/I;f.x+=v.x*w,f.y+=v.y*w}}),f},t.prototype.isTicking=function(){return this.get("ticking")},t.prototype.getSimulation=function(){return this.get("forceSimulation")},t.prototype.destroy=function(){this.get("ticking")&&this.getSimulation().stop(),s.prototype.destroy.call(this)},t}(ae),ai=Bi,Ca=function(){var s=function(e,r){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},s(e,r)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");s(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),_i=function(){return _i=Object.assign||function(s){for(var t,e=1,r=arguments.length;e(f||n.get("height"))&&a>1||v<(c||n.get("height")*.05)&&a<1)&&(a=1),v*=a,r.set("r",v),r.set("r2",v*v);var I=r.get("d");r.set("molecularParam",(I+1)*v),r.set("delegateCenterDiff",void 0),r.magnify(e,u)}},t.prototype.scaleRByDrag=function(e){var r=this;if(!!e){var n=r.get("dragPrePos"),a=r.get("graph"),i,o=a.getPointByClient(e.clientX,e.clientY);e.x-n.x<0?i=1-Si:i=1/(1-Si);var u=r.get("maxR"),f=r.get("minR"),c=r.get("r");(c>(u||a.get("height"))&&i>1||c<(f||a.get("height")*.05)&&i<1)&&(i=1),c*=i,r.set("r",c),r.set("r2",c*c);var v=r.get("d");r.set("molecularParam",(v+1)*c),r.magnify(e,o),r.set("dragPrePos",{x:e.x,y:e.y})}},t.prototype.scaleDByWheel=function(e){var r=this;if(!(!e&&!e.originalEvent)){e.preventDefault&&e.preventDefault();var n=0;e.originalEvent.wheelDelta<0?n=-.1:n=.1;var a=r.get("d"),i=a+n,o=r.get("maxD"),u=r.get("minD");if(iu){r.set("d",i);var f=r.get("r");r.set("molecularParam",(i+1)*f);var c=r.get("delegate"),v=c?{x:c.attr("x"),y:c.attr("y")}:void 0;r.set("delegateCenterDiff",void 0),r.magnify(e,v)}}},t.prototype.scaleDByDrag=function(e){var r=this,n=r.get("dragPrePos"),a=e.x-n.x>0?.1:-.1,i=r.get("d"),o=i+a,u=r.get("maxD"),f=r.get("minD");if(of){r.set("d",o);var c=r.get("r");r.set("molecularParam",(o+1)*c),r.magnify(e)}r.set("dragPrePos",{x:e.x,y:e.y})},t.prototype.magnify=function(e,r){var n=this;n.restoreCache();var a=n.get("graph"),i=n.get("cachedMagnifiedModels"),o=n.get("cachedOriginPositions"),u=n.get("showLabel"),f=n.get("r"),c=n.get("r2"),v=n.get("d"),I=n.get("molecularParam"),w=a.getNodes(),O=w.length,z=r?{x:r.x,y:r.y}:{x:e.x,y:e.y};n.get("dragging")&&(n.get("trigger")==="mousemove"||n.get("trigger")==="click")&&(z=n.get("cacheCenter"));var Z=n.get("delegateCenterDiff");Z&&(z.x+=Z.x,z.y+=Z.y),n.updateDelegate(z,f);for(var J=0;J +
  • + + + +
  • +
  • + + + +
  • +
  • + + + +
  • +
  • + + + +
  • +
  • + + + +
  • +
  • + + + +
  • + + `},zoomSensitivity:2}},t.prototype.init=function(){var e=this,r=this.get("graph"),n=this.get("getContent"),a=n(r),i=a;(0,M.isString)(a)&&(i=(0,Yt.Z)(a));var o=this.get("className");i.setAttribute("class",o||"g6-component-toolbar");var u=this.get("container");u||(u=this.get("graph").get("container")),(0,M.isString)(u)&&(u=document.getElementById(u)),u.appendChild(i),this.set("toolBar",i);var f=this.get("handleClick");i.addEventListener("click",function(v){var I=Ka(v).filter(function(O){return O.nodeName==="LI"});if(I.length!==0){var w=I[0].getAttribute("code");!w||(f?f(w,r):e.handleDefaultOperator(w))}});var c=this.get("position");c&&(0,F.Z)(i,{top:"".concat(c.y,"px"),left:"".concat(c.x,"px")}),this.bindUndoRedo()},t.prototype.bindUndoRedo=function(){var e=this.get("graph"),r=document.querySelector('.g6-component-toolbar li[code="undo"]'),n=document.querySelector('.g6-component-toolbar li[code="undo"] svg'),a=document.querySelector('.g6-component-toolbar li[code="redo"]'),i=document.querySelector('.g6-component-toolbar li[code="redo"] svg');!r||!n||!a||!i||(r.setAttribute("style","cursor: not-allowed"),n.setAttribute("style","opacity: 0.4"),a.setAttribute("style","cursor: not-allowed"),i.setAttribute("style","opacity: 0.4"),e.on("stackchange",function(o){var u=o.undoStack,f=o.redoStack,c=u.length,v=f.length;c===0?(r.setAttribute("style","cursor: not-allowed"),n.setAttribute("style","opacity: 0.4")):(r.removeAttribute("style"),n.removeAttribute("style")),v===0?(a.setAttribute("style","cursor: not-allowed"),i.setAttribute("style","opacity: 0.4")):(a.removeAttribute("style"),i.removeAttribute("style"))}))},t.prototype.undo=function(){var e=this.get("graph"),r=e.getUndoStack();if(!(!r||r.length===0)){var n=r.pop();if(n){var a=n.action;e.pushStack(a,(0,M.clone)(n.data),"redo");var i=n.data.before;if(a==="add"&&(i=n.data.after),!i)return;switch(a){case"visible":{Object.keys(i).forEach(function(v){var I=i[v];!I||I.forEach(function(w){var O=e.findById(w.id);w.visible?e.showItem(O,!1):e.hideItem(O,!1)})});break}case"render":case"update":Object.keys(i).forEach(function(v){var I=i[v];!I||I.forEach(function(w){var O=e.findById(w.id);delete w.id,e.updateItem(O,w,!1),O.getType()==="combo"&&e.updateCombo(O)})});break;case"changedata":e.changeData(i,!1);break;case"delete":{Object.keys(i).forEach(function(v){var I=i[v];!I||I.forEach(function(w){var O=w.itemType;delete w.itemType,e.addItem(O,w,!1)})});break}case"add":Object.keys(i).forEach(function(v){var I=i[v];!I||I.forEach(function(w){e.removeItem(w.id,!1)})});break;case"updateComboTree":Object.keys(i).forEach(function(v){var I=i[v];!I||I.forEach(function(w){e.updateComboTree(w.id,w.parentId,!1)})});break;case"createCombo":var o=n.data.after.combos,u=o[o.length-1];Object.keys(i).forEach(function(v){var I=i[v];!I||I.forEach(function(w){e.updateComboTree(w.id,w.parentId,!1)})}),e.removeItem(u.id,!1);break;case"uncombo":var f=i.combos[i.combos.length-1],c=i.nodes.concat(i.combos).map(function(v){return v.id}).filter(function(v){return v!==f.id});e.createCombo(f,c,!1);break;case"layout":e.updateLayout(i,void 0,void 0,!1);break;default:}}}},t.prototype.redo=function(){var e=this.get("graph"),r=e.getRedoStack();if(!(!r||r.length===0)){var n=r.pop();if(n){var a=n.action,i=n.data.after;if(e.pushStack(a,(0,M.clone)(n.data)),a==="delete"&&(i=n.data.before),!i)return;switch(a){case"visible":{Object.keys(i).forEach(function(c){var v=i[c];!v||v.forEach(function(I){var w=e.findById(I.id);I.visible?e.showItem(w,!1):e.hideItem(w,!1)})});break}case"render":case"update":Object.keys(i).forEach(function(c){var v=i[c];!v||v.forEach(function(I){var w=e.findById(I.id);delete I.id,e.updateItem(w,I,!1),w.getType()==="combo"&&e.updateCombo(w)})});break;case"changedata":e.changeData(i,!1);break;case"delete":i.edges&&i.edges.forEach(function(c){e.removeItem(c.id,!1)}),i.nodes&&i.nodes.forEach(function(c){e.removeItem(c.id,!1)}),i.combos&&i.combos.forEach(function(c){e.removeItem(c.id,!1)});break;case"add":{Object.keys(i).forEach(function(c){var v=i[c];!v||v.forEach(function(I){var w=I.itemType;delete I.itemType,e.addItem(w,I,!1)})});break}case"updateComboTree":Object.keys(i).forEach(function(c){var v=i[c];!v||v.forEach(function(I){e.updateComboTree(I.id,I.parentId,!1)})});break;case"createCombo":var o=i.combos[i.combos.length-1];e.createCombo(o,o.children.map(function(c){return c.id}),!1);break;case"uncombo":var u=n.data.before.combos,f=u[u.length-1];e.uncombo(f.id,!1);break;case"layout":e.updateLayout(i,void 0,void 0,!1);break;default:}}}},t.prototype.zoomOut=function(){var e=this.get("graph"),r=e.getZoom(),n=1/(1-So*this.get("zoomSensitivity")),a=this.get("maxZoom")||e.get("maxZoom");n*r>a||e.zoomTo(r*n)},t.prototype.zoomIn=function(){var e=this.get("graph"),r=e.getZoom(),n=1-So*this.get("zoomSensitivity"),a=this.get("minZoom")||e.get("minZoom");n*r\u7C7B\u578B\uFF1A`.concat(r.item.getType(),` + ID\uFF1A`).concat(r.item.getID(),` + `)},shouldBegin:function(r){return!0},itemTypes:["node","edge","combo"],trigger:"mouseenter",fixToNode:void 0}},t.prototype.getEvents=function(){return this.get("trigger")==="click"?{"node:click":"onClick","edge:click":"onClick","combo:click":"onClick","canvas:click":"onMouseLeave",afterremoveitem:"onMouseLeave",contextmenu:"onMouseLeave",drag:"onMouseLeave"}:{"node:mouseenter":"onMouseEnter","node:mouseleave":"onMouseLeave","node:mousemove":"onMouseMove","edge:mouseenter":"onMouseEnter","edge:mouseleave":"onMouseLeave","edge:mousemove":"onMouseMove","combo:mouseenter":"onMouseEnter","combo:mouseleave":"onMouseLeave","combo:mousemove":"onMouseMove",afterremoveitem:"onMouseLeave",contextmenu:"onMouseLeave","node:drag":"onMouseLeave"}},t.prototype.init=function(){var e=this,r=e.get("className")||"g6-component-tooltip",n=(0,Yt.Z)("
    ")),a=e.get("container");a||(a=e.get("graph").get("container")),(0,M.isString)(a)&&(a=document.getElementById(a)),(0,F.Z)(n,{position:"absolute",visibility:"hidden",display:"none"}),a.appendChild(n),e.get("trigger")!=="click"&&(n.addEventListener("mouseenter",function(i){(0,F.Z)(n,{visibility:"visible",display:"unset"})}),n.addEventListener("mouseleave",function(i){e.hideTooltip()})),e.set("tooltip",n)},t.prototype.onClick=function(e){var r=this.get("itemTypes");if(!(e.item&&e.item.getType&&r.indexOf(e.item.getType())===-1)){var n=e.item,a=this.get("graph");this.currentTarget===n?(this.currentTarget=null,this.hideTooltip(),a.emit("tooltipchange",{item:e.item,action:"hide"})):(this.currentTarget=n,this.showTooltip(e),a.emit("tooltipchange",{item:e.item,action:"show"}))}},t.prototype.onMouseEnter=function(e){var r=this.get("itemTypes");if(!(e.item&&e.item.getType&&r.indexOf(e.item.getType())===-1)){var n=e.item,a=this.get("graph");this.currentTarget=n,this.showTooltip(e),a.emit("tooltipchange",{item:e.item,action:"show"})}},t.prototype.onMouseMove=function(e){var r=this.get("itemTypes");e.item&&e.item.getType&&r.indexOf(e.item.getType())===-1||!this.currentTarget||e.item!==this.currentTarget||this.showTooltip(e)},t.prototype.onMouseLeave=function(){this.hideTooltip();var e=this.get("graph");e.emit("tooltipchange",{item:this.currentTarget,action:"hide"}),this.currentTarget=null},t.prototype.clearContainer=function(){var e=this.get("tooltip");e&&(e.innerHTML="")},t.prototype.showTooltip=function(e){if(!!e.item){var r=this.get("itemTypes");if(!(e.item.getType&&r.indexOf(e.item.getType())===-1)){var n=this.get("tooltip"),a=this.get("getContent"),i=a(e);(0,M.isString)(i)?n.innerHTML=i:(this.clearContainer(),n.appendChild(i)),this.updatePosition(e)}}},t.prototype.hideTooltip=function(){var e=this.get("tooltip");e&&(0,F.Z)(e,{visibility:"hidden",display:"none"})},t.prototype.updatePosition=function(e){var r=this.get("shouldBegin"),n=this.get("tooltip");if(!r(e)){(0,F.Z)(n,{visibility:"hidden",display:"none"});return}var a=this.get("graph"),i=a.get("width"),o=a.get("height"),u=this.get("offsetX")||0,f=this.get("offsetY")||0,c=a.getPointByClient(e.clientX,e.clientY),v=this.get("fixToNode"),I=e.item;if(I.getType&&I.getType()==="node"&&v&&(0,M.isArray)(v)&&v.length>=2){var w=I.getBBox();c={x:w.minX+w.width*v[0],y:w.minY+w.height*v[1]}}var O=a.getCanvasByPoint(c.x,c.y),z=O.x,Z=O.y,J=a.getContainer(),re={x:z+J.offsetLeft+u,y:Z+J.offsetTop+f};(0,F.Z)(n,{visibility:"visible",display:"unset"});var ue=n.getBoundingClientRect();z+ue.width+u>i&&(re.x-=ue.width+u),Z+ue.height+f>o&&(re.y-=ue.height+f,re.y<0&&(re.y=0)),(0,F.Z)(n,{left:"".concat(re.x,"px"),top:"".concat(re.y,"px")})},t.prototype.hide=function(){this.onMouseLeave()},t.prototype.destroy=function(){var e=this.get("tooltip");if(e){var r=this.get("container");r||(r=this.get("graph").get("container")),(0,M.isString)(r)&&(r=document.getElementById(r)),r.removeChild(e)}},t}(ae),yu=Ki,uf="timebarstartplay",ut="timebarendplay",nr="valuechange",Jt="timebarConfigChanged",qr="playPauseBtn",da="nextStepBtn",at="preStepBtn",Ye={opacity:.5,fill:"#000"},Ot={opacity:.5,fill:"#000",r:5},Ht={fill:"#fff",fontSize:12},Kt=function(){function s(t){var e=t.x,r=e===void 0?0:e,n=t.y,a=n===void 0?0:n,i=t.container,o=t.text,u=t.padding,f=u===void 0?[4,4,4,4]:u,c=t.className,v=c===void 0?"g6-component-timebar-tooltip":c,I=t.backgroundColor,w=I===void 0?"#000":I,O=t.textColor,z=O===void 0?"#fff":O,Z=t.opacity,J=Z===void 0?.8:Z,re=t.fontSize,ue=re===void 0?12:re;this.container=i,this.className=v,this.backgroundColor=w,this.textColor=z,this.x=r,this.y=a,this.text=o,this.padding=f,this.opacity=J,this.fontSize=ue,this.render()}return s.prototype.render=function(){var t=this,e=t.className,r=t.x,n=t.y,a=t.backgroundColor,i=t.textColor,o=t.text,u=t.padding,f=t.opacity,c=t.fontSize,v=t.container,I=(0,Yt.Z)("
    '));(0,M.isString)(v)&&(v=document.getElementById(v)),v.appendChild(I),t.parentHeight=v.offsetHeight,t.parentWidth=v.offsetWidth,(0,F.Z)(I,{visibility:"hidden",top:0,left:0});var w=(0,Yt.Z)(` +
    "));w.innerHTML=o,I.appendChild(w),t.backgroundDOM=w;var O=(0,Yt.Z)("
    "));I.appendChild(O),t.arrowDOM=O,t.container=I},s.prototype.show=function(t){var e=this,r=t.text,n=t.x,a=t.y,i=t.clientX,o=t.clientY;e.backgroundDOM.innerHTML=r;var u=e.backgroundDOM.offsetWidth,f=e.backgroundDOM.offsetHeight,c=e.arrowDOM.offsetWidth,v=e.arrowDOM.offsetHeight;(0,F.Z)(e.container,{top:"".concat(-f-v,"px"),left:"".concat(n,"px"),visibility:"visible"}),(0,F.Z)(e.backgroundDOM,{marginLeft:"".concat(-u/2,"px")}),(0,F.Z)(e.arrowDOM,{marginLeft:"".concat(-c/2,"px"),top:"".concat(f,"px")});var I=n-u/2,w=n+u/2;I<0?(0,F.Z)(e.backgroundDOM,{marginLeft:"".concat(-u/2-I,"px")}):w>e.parentWidth&&(0,F.Z)(e.backgroundDOM,{marginLeft:"".concat(-u/2-w+e.parentWidth+12,"px")})},s.prototype.hide=function(){(0,F.Z)(this.container,{top:0,left:0,visibility:"hidden"})},s}(),Dt=Kt,At=function(){return At=Object.assign||function(s){for(var t,e=1,r=arguments.length;ec&&(i=c,a=f)})}e.originalEvent.deltaY>0?a=Math.max(0,a-1):a=Math.min(t.speedAxisY.length-1,a+1);var o=t.speedAxisY[a]-n;r=tt(r,[["t",0,o]]),t.speedPoint.setMatrix(r),t.currentSpeed=t.speedAxisY.length-a,t.speedText.attr("text","".concat(t.currentSpeed,".0X")),t.group.emit(Jt,{speed:t.currentSpeed,type:t.currentType})}),this.toggleGroup&&this.toggleGroup.on("toggle-model:click",function(e){var r,n,a=e.target.get("isChecked");a?(t.checkedIcon.hide(),t.checkedText.attr("text",((n=t.controllerCfg)===null||n===void 0?void 0:n.timePointControllerText)||"\u5355\u4E00\u65F6\u95F4"),t.currentType=Pn.RANGE):(t.checkedIcon.show(),t.checkedText.attr("text",((r=t.controllerCfg)===null||r===void 0?void 0:r.timeRangeControllerText)||"\u65F6\u95F4\u8303\u56F4"),t.currentType=Pn.SINGLE),e.target.set("isChecked",!a),t.group.emit(Jt,{type:t.currentType,speed:t.currentSpeed})})},s.prototype.destroy=function(){this.speedGroup.off("speed-rect:click"),this.toggleGroup&&(this.toggleGroup.off("toggle-model:click"),this.toggleGroup.destroy()),this.speedGroup.destroy()},s}(),Ui=Va,Mo=function(){return Mo=Object.assign||function(s){for(var t,e=1,r=arguments.length;e=$e&&Er<=ft,vr=dr?c:v,qt=Ie.addShape("rect",{attrs:Mo({x:a+Er*(Ee+re),y:a,width:Ee,height:J},vr),draggable:!0,name:"tick-rect-".concat(Er)}),Fr=Ie.addShape("rect",{attrs:{x:a+Er*Ee+re*(2*Er-1)/2,y:a,width:Er===0||Er===ue-1?Ee+re/2:Ee+re,height:J,fill:"#fff",opacity:0},draggable:!0,name:"pick-rect-".concat(Er)});Fr.toFront();var kr=qt.getBBox(),or=(kr.minX+kr.maxX)/2;Se.push({rect:qt,pickRect:Fr,value:Ft.date,x:or,y:kr.minY});var _r;if(f?(_r=f(Ft),!(0,M.isString)(_r)&&_r&&(_r=Ft.date)):Er%Math.round(ue/10)==0&&(_r=Ft.date),_r){De.push(_r);var Gr=kr.maxY+a*2;Ie.addShape("line",{attrs:{stroke:"#BFBFBF",x1:or,y1:Gr,x2:or,y2:Gr+z},name:"tick-line"});var Ur=Gr+z+a,rn=Ie.addShape("text",{attrs:Mo({fill:"#8c8c8c",stroke:"#fff",lineWidth:1,x:or,y:Ur,textAlign:"center",text:_r,textBaseline:"top",fontSize:10,fontFamily:t.fontFamily||"Arial, sans-serif"},I),capture:!1,name:"tick-label"}),hn=rn.getBBox();if(hn.maxX>r?rn.attr("textAlign","right"):hn.minX<0&&rn.attr("textAlign","left"),(0,M.isNumber)(rt)&&De.length!==10){var oa=Ol([1,0,0,0,1,0,0,0,1],[["t",-or,-Ur],["r",rt],["t",or-5,Ur+2]]);rn.attr({textAlign:"left",matrix:oa})}De.length===1?rn.attr({textAlign:"left"}):De.length===10&&rn.attr({textAlign:"right"})}}),this.tickRects=Se;var wt=this.group;this.currentSpeed=1,this.controllerBtnGroup=new Ui(Mo({group:wt,x:this.x,y:this.y+n+5,width:r,height:40,hideTimeTypeController:!0,speed:this.currentSpeed,fontFamily:this.fontFamily||"Arial, sans-serif"},this.controllerCfg))},s.prototype.initEvent=function(){var t=this,e=this.sliceGroup;e.on("click",function(c){var v=c.target;if(!(v.get("type")!=="rect"||!v.get("name"))){var I=parseInt(v.get("name").split("-")[2],10);if(!isNaN(I)){var w=t.tickRects,O=t.unselectedTickStyle;w.forEach(function(re){re.rect.attr(O)});var z=t.selectedTickStyle;w[I].rect.attr(z),t.startTickRectId=I,t.endTickRectId=I;var Z=w.length,J=I/Z;t.graph.emit(nr,{value:[J,J]})}}}),e.on("dragstart",function(c){var v=t.tickRects,I=t.unselectedTickStyle;v.forEach(function(re){re.rect.attr(I)});var w=c.target,O=parseInt(w.get("name").split("-")[2],10),z=t.selectedTickStyle;v[O].rect.attr(z),t.startTickRectId=O;var Z=v.length,J=O/Z;t.graph.emit(nr,{value:[J,J]}),t.dragging=!0}),e.on("dragover",function(c){if(!!t.dragging&&c.target.get("type")==="rect"){for(var v=parseInt(c.target.get("name").split("-")[2],10),I=t.startTickRectId,w=t.tickRects,O=t.selectedTickStyle,z=t.unselectedTickStyle,Z=0;Z=I&&Z<=v?O:z;w[Z].rect.attr(J)}var re=w.length;t.endTickRectId=v;var ue=I/re,Ee=v/re;t.graph.emit(nr,{value:[ue,Ee]})}}),e.on("drop",function(c){if(!!t.dragging&&(t.dragging=!1,c.target.get("type")==="rect")){var v=t.startTickRectId,I=parseInt(c.target.get("name").split("-")[2],10);if(!(I0?e.endTickRectId++:(r[e.endTickRectId].rect.attr(a),e.endTickRectId--),o!==e.startTickRectId)e.endTickRectId1){var n=e[0].charAt(0);e.splice(1,0,e[0].substr(1)),e[0]=n}each(e,function(a,i){isNaN(a)||(e[i]=+a)}),t[r]=e}),t}var kp=null;function Yv(s,t,e,r){var n=[],a=!!r,i,o,u,f,c,v,I;if(a){u=r[0],f=r[1];for(var w=0,O=s.length;w=0;u--)i=a[u].index,a[u].type==="add"?s.splice(i,0,[].concat(s[i])):s.splice(i,1)}if(r=s.length,r2&&(e.push([n].concat(i.splice(0,2))),o="l",n=n==="m"?"l":"L"),o==="o"&&i.length===1&&e.push([n,i[0]]),o==="r")e.push([n].concat(i));else for(;i.length>=t[o]&&(e.push([n].concat(i.splice(0,t[o]))),!!t[o]););return""}),e}var Jv=/[a-z]/;function Ad(s,t){return[t[0]+(t[0]-s[0]),t[1]+(t[1]-s[1])]}function Fp(s){var t=parsePathString(s);if(!t||!t.length)return[["M",0,0]];for(var e=!1,r=0;r=0){e=!0;break}}if(!e)return t;var a=[],i=0,o=0,u=0,f=0,c=0,v,I,w=t[0];(w[0]==="M"||w[0]==="m")&&(i=+w[1],o=+w[2],u=i,f=o,c++,a[0]=["M",i,o]);for(var r=c,O=t.length;r1&&(a=1),a<-1&&(a=-1),n*Math.acos(a)},th=function(s,t,e,r,n,a,i,o,u,f,c,v){var I=Math.pow(n,2),w=Math.pow(a,2),O=Math.pow(c,2),z=Math.pow(v,2),Z=I*w-I*z-w*O;Z<0&&(Z=0),Z/=I*z+w*O,Z=Math.sqrt(Z)*(i===o?-1:1);var J=Z*n/a*v,re=Z*-a/n*c,ue=f*J-u*re+(s+e)/2,Ee=u*J+f*re+(t+r)/2,Ie=(c-J)/n,Se=(v-re)/a,De=(-c-J)/n,$e=(-v-re)/a,ft=Od(1,0,Ie,Se),rt=Od(Ie,Se,De,$e);return o===0&&rt>0&&(rt-=Dl),o===1&&rt<0&&(rt+=Dl),[ue,Ee,ft,rt]},rh=function(s){var t=s.px,e=s.py,r=s.cx,n=s.cy,a=s.rx,i=s.ry,o=s.xAxisRotation,u=o===void 0?0:o,f=s.largeArcFlag,c=f===void 0?0:f,v=s.sweepFlag,I=v===void 0?0:v,w=[];if(a===0||i===0)return[{x1:0,y1:0,x2:0,y2:0,x:r,y:n}];var O=Math.sin(u*Dl/360),z=Math.cos(u*Dl/360),Z=z*(t-r)/2+O*(e-n)/2,J=-O*(t-r)/2+z*(e-n)/2;if(Z===0&&J===0)return[{x1:0,y1:0,x2:0,y2:0,x:r,y:n}];a=Math.abs(a),i=Math.abs(i);var re=Math.pow(Z,2)/Math.pow(a,2)+Math.pow(J,2)/Math.pow(i,2);re>1&&(a*=Math.sqrt(re),i*=Math.sqrt(re));var ue=th(t,e,r,n,a,i,c,I,O,z,Z,J),Ee=ue[0],Ie=ue[1],Se=ue[2],De=ue[3],$e=Math.abs(De)/(Dl/4);Math.abs(1-$e)<1e-7&&($e=1);var ft=Math.max(Math.ceil($e),1);De/=ft;for(var rt=0;rt7){s[e].shift();for(var r=s[e],n=e;r.length;)t[e]="A",s.splice(n+=1,0,["C"].concat(r.splice(0,6)));s.splice(e,1)}}var Ld=function(s,t,e,r,n){var a=-3*t+9*e-9*r+3*n,i=s*a+6*t-12*e+6*r;return s*i-3*t+3*e},Dd=function(s,t,e,r,n,a,i,o,u){u===null&&(u=1),u=u>1?1:u<0?0:u;for(var f=u/2,c=12,v=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],I=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],w=0,O=0;O0&&w<1&&u.push(w);continue}var z=v*v-4*I*c,Z=Math.sqrt(z);if(!(z<0)){var J=(-v+Z)/(2*c);J>0&&J<1&&u.push(J);var re=(-v-Z)/(2*c);re>0&&re<1&&u.push(re)}}for(var ue=u.length,Ee=ue,Ie;ue--;)w=u[ue],Ie=1-w,f[0][ue]=Ie*Ie*Ie*s+3*Ie*Ie*w*e+3*Ie*w*w*n+w*w*w*i,f[1][ue]=Ie*Ie*Ie*t+3*Ie*Ie*w*r+3*Ie*w*w*a+w*w*w*o;return f[0][Ee]=s,f[1][Ee]=t,f[0][Ee+1]=i,f[1][Ee+1]=o,f[0].length=f[1].length=Ee+2,{min:{x:Math.min.apply(0,f[0]),y:Math.min.apply(0,f[1])},max:{x:Math.max.apply(0,f[0]),y:Math.max.apply(0,f[1])}}},ih=function(s,t,e,r,n,a,i,o){if(!(Math.max(s,e)Math.max(n,i)||Math.max(t,r)Math.max(a,o))){var u=(s*r-t*e)*(n-i)-(s-e)*(n*o-a*i),f=(s*r-t*e)*(a-o)-(t-r)*(n*o-a*i),c=(s-e)*(a-o)-(t-r)*(n-i);if(!!c){var v=u/c,I=f/c,w=+v.toFixed(2),O=+I.toFixed(2);if(!(w<+Math.min(s,e).toFixed(2)||w>+Math.max(s,e).toFixed(2)||w<+Math.min(n,i).toFixed(2)||w>+Math.max(n,i).toFixed(2)||O<+Math.min(t,r).toFixed(2)||O>+Math.max(t,r).toFixed(2)||O<+Math.min(a,o).toFixed(2)||O>+Math.max(a,o).toFixed(2)))return{x:v,y:I}}}},uc=function(s,t,e){return t>=s.x&&t<=s.x+s.width&&e>=s.y&&e<=s.y+s.height},cd=function(s,t,e,r){return s===null&&(s=t=e=r=0),t===null&&(t=s.y,e=s.width,r=s.height,s=s.x),{x:s,y:t,width:e,w:e,height:r,h:r,x2:s+e,y2:t+r,cx:s+e/2,cy:t+r/2,r1:Math.min(e,r)/2,r2:Math.max(e,r)/2,r0:Math.sqrt(e*e+r*r)/2,path:rectPath(s,t,e,r),vb:[s,t,e,r].join(" ")}},oh=function(s,t){return s=cd(s),t=cd(t),uc(t,s.x,s.y)||uc(t,s.x2,s.y)||uc(t,s.x,s.y2)||uc(t,s.x2,s.y2)||uc(s,t.x,t.y)||uc(s,t.x2,t.y)||uc(s,t.x,t.y2)||uc(s,t.x2,t.y2)||(s.xt.x||t.xs.x)&&(s.yt.y||t.ys.y)},Nd=function(s,t,e,r,n,a,i,o){isArray(s)||(s=[s,t,e,r,n,a,i,o]);var u=ah.apply(null,s);return cd(u.min.x,u.min.y,u.max.x-u.min.x,u.max.y-u.min.y)},Pd=function(s,t,e,r,n,a,i,o,u){var f=1-u,c=Math.pow(f,3),v=Math.pow(f,2),I=u*u,w=I*u,O=c*s+v*3*u*e+f*3*u*u*n+w*i,z=c*t+v*3*u*r+f*3*u*u*a+w*o,Z=s+2*u*(e-s)+I*(n-2*e+s),J=t+2*u*(r-t)+I*(a-2*r+t),re=e+2*u*(n-e)+I*(i-2*n+e),ue=r+2*u*(a-r)+I*(o-2*a+r),Ee=f*s+u*e,Ie=f*t+u*r,Se=f*n+u*i,De=f*a+u*o,$e=90-Math.atan2(Z-re,J-ue)*180/Math.PI;return{x:O,y:z,m:{x:Z,y:J},n:{x:re,y:ue},start:{x:Ee,y:Ie},end:{x:Se,y:De},alpha:$e}},sh=function(s,t,e){var r=Nd(s),n=Nd(t);if(!oh(r,n))return e?0:[];for(var a=Dd.apply(0,s),i=Dd.apply(0,t),o=~~(a/8),u=~~(i/8),f=[],c=[],v={},I=e?0:[],w=0;w=0&&De<=1&&$e>=0&&$e<=1&&(e?I++:I.push({x:Se.x,y:Se.y,t1:De,t2:$e}))}}return I},uh=function(s,t,e){s=path2Curve(s),t=path2Curve(t);for(var r,n,a,i,o,u,f,c,v,I,w=e?0:[],O=0,z=s.length;O1&&(e*=Math.sqrt(w),r*=Math.sqrt(w));var O=e*e*(I*I)+r*r*(v*v),z=O?Math.sqrt((e*e*(r*r)-O)/O):1;a===i&&(z*=-1),isNaN(z)&&(z=0);var Z=r?z*e*I/r:0,J=e?z*-r*v/e:0,re=(o+f)/2+Math.cos(n)*Z-Math.sin(n)*J,ue=(u+c)/2+Math.sin(n)*Z+Math.cos(n)*J,Ee=[(v-Z)/e,(I-J)/r],Ie=[(-1*v-Z)/e,(-1*I-J)/r],Se=kd([1,0],Ee),De=kd(Ee,Ie);return ld(Ee,Ie)<=-1&&(De=Math.PI),ld(Ee,Ie)>=1&&(De=0),i===0&&De>0&&(De=De-2*Math.PI),i===1&&De<0&&(De=De+2*Math.PI),{cx:re,cy:ue,rx:Rd(s,[f,c])?0:e,ry:Rd(s,[f,c])?0:r,startAngle:Se,endAngle:Se+De,xRotation:n,arcFlag:a,sweepFlag:i}}function Bd(s,t){return[t[0]+(t[0]-s[0]),t[1]+(t[1]-s[1])]}function Vp(s){s=parsePath(s);for(var t=[],e=null,r=null,n=null,a=0,i=s.length,o=0;o1){var i=s[0],o=s[e-1];t.push({from:{x:o[0],y:o[1]},to:{x:i[0],y:i[1]}})}return t}function fh(s,t){var e=!1;return each(s,function(r){if(getLineIntersect(r.from,r.to,t.from,t.to))return e=!0,!1}),e}function Gd(s){var t=s.map(function(r){return r[0]}),e=s.map(function(r){return r[1]});return{minX:Math.min.apply(null,t),maxX:Math.max.apply(null,t),minY:Math.min.apply(null,e),maxY:Math.max.apply(null,e)}}function ch(s,t){return!(t.minX>s.maxX||t.maxXs.maxY||t.maxYz?(Se.show(),$e.show(),z=ft.minX+ft.width+10):(Se.hide(),$e.hide()),Se}),this.controllerBtnGroup=new Ui(Wi({group:this.group,x:this.x,y:this.y+n+25,width:r,height:35},this.controllerCfg)),this.updateStartEnd(0),this.updateUI(),o.move(this.x,this.y),this.bindEvents(),this.currentMode===Pn.SINGLE&&(this.minHandlerShape.hide(),this.foregroundShape.hide(),this.minTextShape.hide())},s.prototype.bindEvents=function(){var t=this,e=this.group.find(function(n){return n.get("name")==="minHandlerShape"});e&&(e.on("minHandlerShape-handler:mousedown",this.onMouseDown(this.minHandlerShape)),e.on("minHandlerShape-handler:touchstart",this.onMouseDown(this.minHandlerShape)));var r=this.group.find(function(n){return n.get("name")==="maxHandlerShape"});r&&(r.on("maxHandlerShape-handler:mousedown",this.onMouseDown(this.maxHandlerShape)),r.on("maxHandlerShape-handler:touchstart",this.onMouseDown(this.maxHandlerShape))),this.foregroundShape.on("mousedown",this.onMouseDown(this.foregroundShape)),this.foregroundShape.on("touchstart",this.onMouseDown(this.foregroundShape)),this.group.on("".concat(qr,":click"),function(){t.isPlay=!t.isPlay,t.currentHandler=t.maxHandlerShape,t.changePlayStatus()}),this.group.on("".concat(da,":click"),function(){t.currentHandler=t.maxHandlerShape,t.updateStartEnd(.01),t.updateUI()}),this.group.on("".concat(at,":click"),function(){t.currentHandler=t.maxHandlerShape,t.updateStartEnd(-.01),t.updateUI()}),this.group.on(Jt,function(n){var a=n.type,i=n.speed;t.currentSpeed=i,t.currentMode=a,a===Pn.SINGLE?(t.minHandlerShape.hide(),t.foregroundShape.hide(),t.minTextShape.hide()):a===Pn.RANGE&&(t.minHandlerShape.show(),t.foregroundShape.show(),t.minTextShape.show())})},s.prototype.adjustTickIndex=function(t){for(var e=0;e1&&(this.start=1),this.end>1&&(this.end=1),this.end<0&&(this.end=0);var e=this.x+this.start*this.width,r=this.x+this.end*this.width;this.foregroundShape.attr("x",e),this.foregroundShape.attr("width",r-e);var n=(0,M.get)(this.handlerStyle,"width",dd);this.setText(this.minText,this.maxText);var a=this.dodgeText([e,r]),i=a[0],o=a[1];this.minHandlerShape.setX(e-n/2),(0,M.each)(i,function(u,f){return t.minTextShape.attr(f,u)}),this.maxHandlerShape.setX(r-n/2),(0,M.each)(o,function(u,f){return t.maxTextShape.attr(f,u)}),this.currentMode===Pn.RANGE?this.graph.emit(nr,{value:[this.start,this.end].sort()}):this.currentMode===Pn.SINGLE&&this.graph.emit(nr,{value:[this.end,this.end]})},s.prototype.dodgeText=function(t){var e,r,n=2,a=(0,M.get)(this.handlerStyle,"width",dd),i=this.minTextShape,o=this.maxTextShape,u=t[0],f=t[1],c=!1;u>f&&(e=[f,u],u=e[0],f=e[1],r=[o,i],i=r[0],o=r[1],c=!0);var v=i.getBBox(),I=o.getBBox(),w=null,O=null;return this.timeBarType==="trend"?(w=u-v.widththis.x+this.width?{x:f-a/2-n,textAlign:"right"}:{x:f+a/2+n,textAlign:"left"}):this.timeBarType==="simple"&&(w=i.attr("x")>v.width?{x:u,textAlign:"center"}:{x:u,textAlign:"left"},O=o.attr("x")>this.width-I.width?{x:f,textAlign:"right"}:{x:f,textAlign:"center"}),c?[O,w]:[w,O]},s.prototype.startPlay=function(){var t=this;return typeof window!="undefined"?window.requestAnimationFrame(function(){var e=t,r=e.ticks,n=e.width,a=t.currentSpeed,i=n/r.length,o=i/((10-a)*1e3/60),u=t.adjustOffsetRange(o/t.width);t.updateStartEnd(u),t.updateUI(),t.isPlay&&(t.playHandler=t.startPlay())}):void 0},s.prototype.changePlayStatus=function(t){t===void 0&&(t=!0),this.controllerBtnGroup.playButton.update({isPlay:this.isPlay}),this.isPlay?(this.playHandler=this.startPlay(),this.graph.emit(uf,null)):this.playHandler&&(typeof window!="undefined"&&window.cancelAnimationFrame(this.playHandler),t&&this.graph.emit(ut,null))},s.prototype.destory=function(){this.graph.off(nr,function(){});var t=this.group,e=t.find(function(n){return n.get("name")==="minHandlerShape"});e&&(e.off("minHandlerShape-handler:mousedown"),e.off("minHandlerShape-handler:touchstart"),e.destroy());var r=t.find(function(n){return n.get("name")==="maxHandlerShape"});r&&(r.off("maxHandlerShape-handler:mousedown"),r.off("maxHandlerShape-handler:touchstart"),r.destroy()),this.foregroundShape.off("mousedown"),this.foregroundShape.off("touchstart"),this.foregroundShape.destroy(),t.off("".concat(qr,":click")),t.off("".concat(da,":click")),t.off("".concat(at,":click")),t.off(Jt),t.destroy(),this.trendComponent&&this.trendComponent.destory()},s}(),Rh=kh,Bh=function(){var s=function(e,r){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},s(e,r)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");s(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),If=function(){return If=Object.assign||function(s){for(var t,e=1,r=arguments.length;e
    ")),(0,F.Z)(f,{position:"relative"})),i){var c=this.get("graph").get("container");c.appendChild(f)}this.set("timeBarContainer",f);var v,I=e.get("renderer");I==="SVG"?v=new du.Canvas({container:f,width:n,height:a}):v=new Ns.Canvas({container:f,width:n,height:a}),this.get("containerCSS")&&(0,F.Z)(f,this.get("containerCSS")),this.set("canvas",v)},t.prototype.init=function(){this.initContainer();var e=this.get("canvas"),r=e.addGroup({name:"timebar-group"});this.set("timeBarGroup",r),this.renderTrend(),this.initEvent();var n=typeof window!="undefined"&&window.getComputedStyle(document.body,null).getPropertyValue("font-family")||"Arial, sans-serif";this.set("fontFamily",n)},t.prototype.play=function(){this.togglePlay(!0)},t.prototype.pause=function(){this.togglePlay(!1)},t.prototype.togglePlay=function(e){var r=this.get("timebar");!r||(r.isPlay=!!e,r.changePlayStatus())},t.prototype.renderTrend=function(){var e=this,r=this._cfgs,n=r.width,a=r.x,i=r.y,o=r.padding,u=r.type,f=r.trend,c=r.slider,v=r.controllerCfg,I=r.textStyle,w=r.tick,O=r.backgroundStyle,z=r.foregroundStyle,Z=f.data,J=Fh(f,["data"]),re=n-2*o,ue=u==="trend"?zh:Gh,Ee=this.get("graph"),Ie=this.get("timeBarGroup"),Se=this.get("canvas"),De=null;if(u==="trend"||u==="simple"){var $e=this.get("getValue");De=new Rh(If(If({graph:Ee,canvas:Se,group:Ie,type:u,x:a+o,y:u==="trend"?i+o:i+o+15,width:re,height:ue,padding:o,backgroundStyle:O,foregroundStyle:z,trendCfg:If(If({},J),{data:Z.map(function(rt){return($e==null?void 0:$e(rt))||rt.value})})},c),{tick:{ticks:Z,tickLabelFormatter:w.tickLabelFormatter,tickLabelStyle:w.tickLabelStyle,tickLineStyle:w.tickLineStyle},handlerStyle:If(If({},c.handlerStyle),{height:c.height||ue}),controllerCfg:v,textStyle:I}))}else u==="tick"&&(De=new Xl(If({graph:Ee,canvas:Se,group:Ie,x:a+o,y:i+o,width:n,height:42,padding:2,controllerCfg:v},w)));var ft=function rt(){var wt=e.get("timebar");wt.draggingHandler=!1,wt.isPlay&&(wt.isPlay=!1,wt.currentHandler=wt.maxHandlerShape,wt.changePlayStatus()),document.removeEventListener("mouseup",rt)};Se.on("mousedown",function(rt){(rt.target.get("name")==="maxHandlerShape-handler"||rt.target.get("name")==="minHandlerShape-handler"||rt.target===De.foregroundShape)&&document.addEventListener("mouseup",ft)}),this.set("timebar",De)},t.prototype.filterData=function(e){var r,n=e.value;if(!n){n=[];var a=this._cfgs.type;!a||a==="trend"||a==="simple"?(n[0]=this._cfgs.slider.start,n[1]=this._cfgs.slider.end):a==="tick"&&(n[0]=this._cfgs.tick.start,n[1]=this._cfgs.tick.end)}var i=null,o=this._cfgs.type;if(o==="trend"||o==="simple"?i=this._cfgs.trend.data:o==="tick"&&(i=this._cfgs.tick.data),!i||i.length===0){console.warn("\u8BF7\u914D\u7F6E TimeBar \u7EC4\u4EF6\u7684\u6570\u636E");return}var u=this.get("rangeChange"),f=this.get("graph"),c=Math.round(i.length*n[0]),v=Math.round(i.length*n[1]);v=v>=i.length?i.length-1:v,c=c>=i.length?i.length-1:c;var I=(r=this._cfgs.tick)===null||r===void 0?void 0:r.tickLabelFormatter,w=I?I(i[c]):i[c].date,O=I?I(i[v]):i[v].date;if(o!=="tick"){var z=this.get("timebar");z.setText(w,O)}if(u)u(f,w,O);else{(!this.cacheGraphData||this.cacheGraphData.nodes&&this.cacheGraphData.nodes.length===0)&&(this.cacheGraphData=f.get("data"));var Z=this.get("filterItemTypes"),J=this.get("changeData"),re=this.get("getDate"),ue=this.get("shouldIgnore"),Ee=i[c].date,Ie=i[v].date;if(J||J===void 0){var Se=this.cacheGraphData.nodes,De=this.cacheGraphData.edges,$e={},ft={};f.getNodes().forEach(function(rt){return $e[rt.getID()]=!0}),f.getEdges().forEach(function(rt){return ft[rt.getID()]=!0}),Z.includes("node")&&(Se==null||Se.forEach(function(rt){var wt=+((re==null?void 0:re(rt))||rt.date),Ft=wt>=Ee&&wt<=Ie||(ue==null?void 0:ue("node",rt,{min:Ee,max:Ie})),Er=$e[rt.id];Er&&!Ft?(f.removeItem(rt.id),$e[rt.id]=!1):!Er&&Ft&&(f.addItem("node",rt),$e[rt.id]=!0)}),De==null||De.forEach(function(rt){var wt=$e[rt.source]&&$e[rt.target]||(ue==null?void 0:ue("edge",rt,{min:Ee,max:Ie})),Ft=!!f.findById(rt.id);Ft&&!wt?(f.removeItem(rt.id),ft[rt.id]=!1):!Ft&&wt?(f.addItem("edge",rt),ft[rt.id]=!0):Ft||(ft[rt.id]=!1)})),(this.get("filterEdge")||Z.includes("edge"))&&(De==null||De.filter(function(rt){var wt=+((re==null?void 0:re(rt))||rt.date),Ft=wt>=Ee&&wt<=Ie||(ue==null?void 0:ue("edge",rt,{min:Ee,max:Ie})),Er=$e[rt.source]&&$e[rt.target],dr=Ft&&Er,vr=ft[rt.id];vr&&!dr?(ft[rt.id]=!1,f.removeItem(rt.id)):!vr&&dr&&(ft[rt.id]=!0,f.addItem("edge",rt))}))}else Z.includes("node")&&f.getNodes().forEach(function(rt){var wt=rt.getModel();if(!(ue==null?void 0:ue("node",wt,{min:Ee,max:Ie}))){var Ft=+((re==null?void 0:re(wt))||wt.date);FtIe?f.hideItem(rt):f.showItem(rt)}}),(this.get("filterEdge")||Z.includes("edge"))&&f.getEdges().forEach(function(rt){var wt=rt.getModel();if(!(ue==null?void 0:ue("edge",wt,{min:i[c].date,max:i[v].date}))){var Ft=+((re==null?void 0:re(wt))||wt.date);if(Fti[v].date)f.hideItem(rt);else{var Er=rt.getSource().isVisible(),dr=rt.getTarget().isVisible();Er&&dr&&f.showItem(rt)}}})}},t.prototype.initEvent=function(){var e=this.get("graph");e.on("afterchangedata",this.changeData),e.on("afterrender",this.afterrenderListener),e.on(nr,this.valueChangeListener)},t.prototype.destroy=function(){var e=this.get("graph");e.off("afterchangedata",this.changeData),e.off("afterrender",this.afterrenderListener),e.off(nr,this.valueChangeListener);var r=this.get("timebar");r&&r.destory&&r.destory(),s.prototype.destroy.call(this);var n=this.get("timeBarContainer");if(n){var a=this.get("container");a||(a=this.get("graph").get("container")),(0,M.isString)(a)&&(a=document.getElementById(a)),a===n&&(a=a.parentElement),a.removeChild(n)}},t}(ae),Wh=Uh,Xh=function(){var s=function(e,r){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},s(e,r)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");s(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),Vh=Vi.applyMatrix;function jh(s,t){var e,r;if(s.naturalWidth)e=s.naturalWidth,r=s.naturalHeight;else{var n=new Image;n.src=s.src,n.onload=function(){t&&t(n.width,n.height)}}return[e,r]}var Yh=function(s){Xh(t,s);function t(e){return s.call(this,e)||this}return t.prototype.getDefaultCfgs=function(){return{container:null,className:"g6-minimap",viewportClassName:"g6-minimap-viewport",width:200,delegateStyle:{fill:"#40a9ff",stroke:"#096dd9"},refresh:!0}},t.prototype.getEvents=function(){return{beforepaint:"updateViewport",beforeanimate:"disableRefresh",afteranimate:"enableRefresh",viewportchange:"disableOneRefresh"}},t.prototype.disableRefresh=function(){this.set("refresh",!1)},t.prototype.enableRefresh=function(){this.set("refresh",!0),this.updateCanvas()},t.prototype.disableOneRefresh=function(){this.set("viewportChange",!0)},t.prototype.initViewport=function(){var e=this,r=this._cfgs,n=r.graph;if(!this.destroyed){var a=this.get("container");(0,M.isString)(a)&&(a=document.getElementById(a));var i=(0,Yt.Z)("
    re||w>ue||(z=n.getZoom(),O=e.get("ratio"),f=!0,o=Z.clientX,u=Z.clientY)}},!1),a.addEventListener("mousemove",function(Z){if(!(!f||(0,M.isNil)(Z.clientX)||(0,M.isNil)(Z.clientY))){var J=e.get("width"),re=e.get("height"),ue=i.style;c=parseInt(ue.left,10),v=parseInt(ue.top,10),I=parseInt(ue.width,10),w=parseInt(ue.height,10);var Ee=o-Z.clientX,Ie=u-Z.clientY;c-Ee<0?Ee=c:c-Ee+I>=J&&(Ee=0),v-Ie<0?Ie=v:v-Ie+w>=re&&(Ie=0),c-=Ee,v-=Ie,(0,F.Z)(i,{left:"".concat(c,"px"),top:"".concat(v,"px")}),n.translate(Ee*z/O,Ie*z/O),o=Z.clientX,u=Z.clientY}},!1),a.addEventListener("mouseleave",function(){f=!1,r.refresh=!0},!1),a.addEventListener("mouseup",function(){f=!1,r.refresh=!0},!1),this.set("viewport",i),a.appendChild(i)}},t.prototype.updateViewport=function(){if(!this.destroyed){var e=this.get("ratio"),r=this.get("width"),n=this.get("height"),a=this.get("graph"),i=a.get("width"),o=a.get("height"),u=i/o,f=a.getGroup(),c=f.getCanvasBBox(),v=[(c.minX+c.maxX)/2,(c.minY+c.maxY)/2],I=[c.maxX-c.minX,c.maxY-c.minY],w={centerX:v[0],centerY:v[1],width:0,height:0,minX:0,minY:0};c[0]/c[1]>u?(w.width=I[0],w.height=w.width/u):(w.height=I[1],w.width=w.height*u),w.minX=v[0]-w.width/2,w.minY=v[1]-w.height/2;var O=f.getMatrix();O||(O=[1,0,0,0,1,0,0,0,1]);var z=Ko.invert([1,0,0,0,1,0,0,0,1],O),Z=Vh({x:w.minX,y:w.minY},z),J=a.getCanvasByPoint(Z.x,Z.y),re=this.get("viewport");re||this.initViewport();var ue=i/w.width,Ee=ue*r,Ie=ue*n,Se=r*-J.x/w.width,De=n*-J.y/w.height,$e=Se+Ee,ft=De+Ie;Se<0&&(Ee+=Se,Se=0),$e>r&&(Ee=Ee-($e-r)),De<0&&(Ie+=De,De=0),ft>n&&(Ie=Ie-(ft-n)),this.set("ratio",e);var rt="".concat(Se,"px"),wt="".concat(De,"px");(0,F.Z)(re,{left:rt,top:wt,width:"".concat(Ee,"px"),height:"".concat(Ie,"px")})}},t.prototype.init=function(){this.initContainer()},t.prototype.initContainer=function(){var e=this,r=e.get("graph"),n=r.get("width"),a=r.get("height"),i=a/n,o=e.get("className"),u=e.get("container"),f=e.get("width"),c=e.get("height");!f&&!c&&(f=200),f?(c=i*f,e.set("height",c)):(f=1/i*c,e.set("width",f));var v=(0,Yt.Z)("
    "));(0,M.isString)(u)&&(u=document.getElementById(u)),u?u.appendChild(v):r.get("container").appendChild(v),e.set("container",v);var I=(0,Yt.Z)('
    ');v.appendChild(I);var w=(0,Yt.Z)('');I.appendChild(w),e.set("containerDOM",I),e.set("containerSpan",w);var O=(0,Yt.Z)(''));e.set("imgDOM",O),e.updateImgSize(),w.appendChild(O),e.updateCanvas()},t.prototype.updateImgSize=function(){var e=this,r=e.get("imgDOM"),n=e.get("width"),a=e.get("height");r.onload=function(){var i=jh(r);i[0]>i[1]?r.width=n:r.height=a}},t.prototype.updateCanvas=function(){var e=this.get("refresh");if(!!e){var r=this.get("graph");if(!r.get("destroyed")){this.get("viewportChange")&&(this.set("viewportChange",!1),this.updateViewport());var n=this.get("width"),a=r.get("canvas").getCanvasBBox(),i=a.width,o=n/i;this.set("ratio",o),this.updateViewport()}}},t.prototype.getViewport=function(){return this.get("viewport")},t.prototype.getContainer=function(){return this.get("container")},t.prototype.updateGraphImg=function(e){var r=this,n=r.get("imgDOM");n.remove(),r.set("graphImg",e);var a=(0,Yt.Z)(''));r.set("imgDOM",a),a.src=e,r.updateImgSize();var i=r.get("containerSpan");i.appendChild(a),r.updateCanvas()},t.prototype.destroy=function(){var e=this.get("container");e.parentNode.removeChild(e)},t}(ae),Hh=Yh,Zh=function(){var s=function(e,r){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},s(e,r)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");s(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),vd=function(){return vd=Object.assign||function(s){for(var t,e=1,r=arguments.length;e(f||n.get("height"))&&a>1||v<(c||n.get("height")*.05)&&a<1)&&(a=1),v*=a,r.set("r",v),r.filter(e)}},t.prototype.filter=function(e){var r=this,n=r.get("graph"),a=n.getNodes(),i={},o=r.get("r"),u=r.get("type"),f={x:e.x,y:e.y};r.updateDelegate(f,o);var c=r.get("shouldShow"),v=r.get("vShapes");v&&v.forEach(function(J){J.remove(),J.destroy()}),v=[],a.forEach(function(J){var re=J.getModel(),ue=re.x,Ee=re.y;Kh({x:ue,y:Ee},f)
    `);o.appendChild(u),this.set("container",u);var f=this.render();(0,F.Z)(u,this.getContainerPos(f)),this.bindEvents()},t.prototype.getContainerPos=function(e){e===void 0&&(e=[0,0]);var r=this,n=r.get("graph"),a=this.get("offsetX"),i=this.get("offsetY"),o=this.get("margin"),u=this.get("position").split("-"),f={top:0,right:1,bottom:2,left:3},c=0,v=0,I={left:(n.getWidth()-e[0])/2+c,top:(n.getHeight()-e[1])/2+v};return u.forEach(function(w){var O=o[f[w]],z=w;switch(w){case"top":O+=v;break;case"left":O+=c;break;case"bottom":O=n.getHeight()-e[1]-O+v,z="top";break;default:O=n.getWidth()-e[0]-O+c,z="left";break}I[z]=O}),I.top+=i+n.getContainer().offsetTop,I.left+=a+n.getContainer().offsetLeft,Object.keys(I).forEach(function(w){I[w]="".concat(I[w],"px")}),I},t.prototype.bindEvents=function(){var e=this,r=e.get("filter");if(!(!r||!r.enable)){var n=r.trigger||"click";ag.includes(n)||(console.warn("Trigger for legend filterling must be 'click' or 'mouseenter', 'click' will take effect by default."),n="click");var a=e.get("legendCanvas");n==="mouseenter"?(a.on("node-container:mouseenter",function(i){return e.filterData(i)}),a.on("node-container:mouseleave",function(i){e.clearFilter(),e.clearActiveLegend()})):(a.on("node-container:click",function(i){return e.filterData(i)}),a.on("click",function(i){i.target&&i.target.isCanvas&&i.target.isCanvas()&&(e.clearFilter(),e.clearActiveLegend())}))}},t.prototype.changeData=function(e){this.set("data",e);var r=this.render();(0,F.Z)(this.get("container"),this.getContainerPos(r))},t.prototype.activateLegend=function(e){var r=this.get("filter"),n=r==null?void 0:r.multiple;n||this.clearActiveLegend();var a=e.get("parent");a.get("active")?(a.set("active",!1),this.findLegendItemsByState("active").length&&a.set("inactive",!0)):(a.set("inactive",!1),a.set("active",!0)),this.findLegendItemsByState("active").length?this.findLegendItemsByState("active","all",!1).forEach(function(v){v.set("inactive",!0)}):this.clearActiveLegend();var i=(r==null?void 0:r.legendStateStyles)||{},o=(i==null?void 0:i.inactive)||{opacity:.5,"text-shape":{opacity:.5}},u=o["text-shape"]||{};this.findLegendItemsByState("inactive").forEach(function(v){var I=v.get("children"),w=I[0],O=I[1];w.attr(to(to({},w.get("oriAttrs")),o)),O.attr(to(to({},O.get("oriAttrs")),u))});var f=(i==null?void 0:i.active)||{stroke:"#000",lineWidth:2,"text-shape":{fontWeight:"bold"}},c=f["text-shape"]||{};this.findLegendItemsByState("active").forEach(function(v){var I=v.get("children"),w=I[0],O=I[1];w.attr(to(to({},w.get("oriAttrs")),f)),O.attr(to(to({},O.get("oriAttrs")),c))})},t.prototype.findLegendItemsByState=function(e,r,n){r===void 0&&(r="all"),n===void 0&&(n=!0);var a=this.get("legendCanvas").find(function(u){return u.get("name")==="root"}),i=a.find(function(u){return u.get("name")==="node-group"}),o=a.find(function(u){return u.get("name")==="edge-group"});return r==="node"?i.get("children").filter(function(u){return!!u.get(e)===n}):r==="edge"?o.get("children").filter(function(u){return!!u.get(e)===n}):i.get("children").filter(function(u){return!!u.get(e)===n}).concat(o.get("children").filter(function(u){return!!u.get(e)===n}))},t.prototype.clearActiveLegend=function(){var e=this.get("legendCanvas"),r=e.find(function(a){return a.get("name")==="root"}),n=[r.find(function(a){return a.get("name")==="node-group"}),r.find(function(a){return a.get("name")==="edge-group"})];n.forEach(function(a){a.get("children").forEach(function(i){i.set("active",!1),i.set("inactive",!1);var o=i.get("children"),u=o[0],f=o[1];u.attr(u.get("oriAttrs")),f.attr(f.get("oriAttrs"))})})},t.prototype.filterData=function(e){var r=this.get("filter"),n=r==null?void 0:r.filterFunctions;if(!(!r||!n)){var a=this.get("legendCanvas"),i=this.get("graph"),o=r.graphActiveState||"active",u=r.graphInactiveState||"inactive",f=r.multiple;this.clearFilter(),f||this.clearActiveLegend(),this.activateLegend(e.target);var c=a.find(function(J){return J.get("name")==="root"}),v=c.find(function(J){return J.get("name")==="node-group"}),I=c.find(function(J){return J.get("name")==="edge-group"}),w=v.get("children").filter(function(J){return J.get("active")}),O=I.get("children").filter(function(J){return J.get("active")}),z=0,Z=["getNodes","getEdges"];Z.forEach(function(J){i[J]().forEach(function(re){var ue=!1,Ee=J==="getNodes"?w:O;Ee.forEach(function(Ie){var Se=n[Ie.get("id")];ue=ue||Se(re.getModel())}),ue?(i.setItemState(re,u,!1),i.setItemState(re,o,!0),z++):(i.setItemState(re,o,!1),i.setItemState(re,u,!0))})}),z||Z.forEach(function(J){i[J]().forEach(function(re){i.clearItemStates(re,[u])})})}},t.prototype.clearFilter=function(){var e=this.get("graph"),r=this.get("filter");if(!!r){var n=r.graphActiveState||"active",a=r.graphInactiveState||"inactive";e.getNodes().forEach(function(i){e.clearItemStates(i,[n,a])}),e.getEdges().forEach(function(i){e.clearItemStates(i,[n,a])})}},t.prototype.render=function(){var e=this;this.processData();var r=this.get("legendCanvas");r?r.clear():r=new Ns.Canvas({container:this.get("container"),width:200,height:200});var n=r.addGroup({name:"root"}),a=n.addGroup({name:"node-group"}),i=n.addGroup({name:"edge-group"});this.set("legendCanvas",r);var o=this.get("itemsData"),u=["nodes","edges"],f=[a,i];u.forEach(function(qt,Fr){o[qt].forEach(function(kr){var or,_r=f[Fr].addGroup({id:kr.id,name:"node-container"}),Gr,Ur=kr.type,rn=e.getShapeSize(kr),hn=rn.width,oa=rn.height,Ln=rn.r,Wa=e.getStyle(qt.substr(0,4),kr);switch(kr.type){case"circle":Gr={r:Ln,x:0,y:0};break;case"rect":Gr={width:hn,height:oa,x:-hn/2,y:-oa/2};break;case"ellipse":Gr={rx:hn,ry:oa,x:0,y:0},Ur="ellipse";break;case"line":Gr={x1:-hn/2,y1:0,x2:hn/2,y2:0},Ur="line";break;case"quadratic":Gr={path:[["M",-hn/2,0],["Q",0,hn/2,hn/2,0]]},Ur="path";break;case"cubic":Gr={path:[["M",-hn/2,0],["C",-hn/6,hn/2,hn/6,-hn/2,hn/2,0]]},Ur="path";break;case"diamond":Gr={path:[["M",0,-oa],["L",hn,0],["L",0,oa],["L",-hn,0],["Z"]]},Ur="path";break;case"triangle":Gr={path:[["M",-hn,oa],["L",0,-oa],["L",hn,oa],["Z"]]},Ur="path";break;case"star":Gr={path:Vi.getStarPath(Ln*3,Ln*1.2)},Ur="path";break;default:Gr={r:Ln,x:0,y:0};break}var Ea=_r.addShape(Ur,{attrs:to(to({},Gr),Wa),name:"".concat(kr.type,"-node-keyShape"),oriAttrs:to({opacity:1},Wa)});if(kr.label){var ba=Ea.getBBox(),$a=((or=kr.labelCfg)===null||or===void 0?void 0:or.style)||{},Mi=to({textAlign:"begin",fontSize:12,textBaseline:"middle",fill:"#000",opacity:1,fontWeight:"normal"},$a);_r.addShape("text",{attrs:to({x:ba.maxX+4,y:0,text:kr.label},Mi),className:"legend-label",name:"".concat(kr.type,"-node-text"),oriAttrs:Mi})}})});var c=this.get("padding"),v,I=n.find(function(qt){return qt.get("name")==="title-container"}),w={height:0,maxY:0,width:0};if(this.get("title")){I||(I=n.addGroup({name:"title-container"}));var O={fontSize:20,fontFamily:"Arial",fontWeight:300,textBaseline:"top",textAlign:"center",fill:"#000",x:0,y:c[0]},z=this.get("titleConfig")||{},Z=Object.assign(O,z.style||{});v=I.addShape("text",{attrs:to({text:this.get("title")},Z)}),w=I.getCanvasBBox(),I.setMatrix([1,0,0,0,1,0,z.offsetX,z.offsetY,1])}this.layoutItems();var J=n.getCanvasBBox(),re=a.getCanvasBBox(),ue=re.minX<0?Math.abs(re.minX)+c[3]:c[3],Ee=w.maxYv.max&&(v.max=o[0]),wt>I&&(I=wt),Ee.setMatrix([1,0,0,0,1,0,Ft,Er,1])});var w=v.max-v.min,O={min:0,max:-Infinity},z=f.getCanvasBBox();o[0]=0,o[1]=a==="vertical"?z.maxX+r:z.maxY+n,c.get("children").forEach(function(Ee,Ie){Ie===0&&(O.min=o[0]);var Se=Ee.get("children")[0],De=Ee.getCanvasBBox(),$e=Se.getBBox(),ft=$e.width,rt=$e.height,wt=0,Ft=0;a==="vertical"?(wt=o[1],Ft=o[0],o[0]=Ft+De.height+n,Ee.setMatrix([1,0,0,0,1,0,0,Ft+rt/2,1])):(wt=o[0],Ft=o[1],o[0]=wt+De.width+r,Ee.setMatrix([1,0,0,0,1,0,wt+ft/2,0,1])),o[0]>O.max&&(O.max=o[0])});var Z=O.max-O.min;if(i&&i!==""&&i!=="left"){var J=w-Z,re=i==="center"?Math.abs(J)/2:Math.abs(J),ue=J<0?f:c;ue.get("children").forEach(function(Ee){var Ie=Ee.getMatrix()||[1,0,0,0,1,0,0,0,1];a==="vertical"?Ie[7]+=re:Ie[6]+=re,Ee.setMatrix(Ie)})}},t.prototype.processData=function(){var e=this.get("data"),r={nodes:[],edges:[]};e.nodes&&(e.nodes.sort(function(n,a){return n.order-a.order}),e.nodes.forEach(function(n){var a,i,o,u,f,c=n.size||[((a=n.style)===null||a===void 0?void 0:a.width)||((i=n.style)===null||i===void 0?void 0:i.r)||8,((o=n.style)===null||o===void 0?void 0:o.height)||((u=n.style)===null||u===void 0?void 0:u.r)||8],v=((f=n.labelCfg)===null||f===void 0?void 0:f.style)||{};r.nodes.push({id:n.id||(0,M.uniqueId)(),type:n.type||"circle",style:to({},n.style),order:n.order,label:n.label,itemType:"node",size:c,labelCfg:{position:"right",style:to({fontFamily:"Arial"},v)}})})),e.edges&&(e.edges.sort(function(n,a){return n.order-a.order}),e.edges.forEach(function(n){var a,i,o=n.type||"line";n.type==="cubic-horizontal"&&(o="cubic");var u=((a=n.labelCfg)===null||a===void 0?void 0:a.style)||{},f=n.size||[((i=n.style)===null||i===void 0?void 0:i.width)||8,1];r.edges.push({id:n.id||(0,M.uniqueId)(),type:o,size:f,style:to({lineWidth:(0,M.isArray)(f)?f[1]:1},n.style),order:n.order,label:n.label,itemType:"edge",labelCfg:{position:"right",style:to({fontFamily:"Arial"},u)}})})),this.set("itemsData",r)},t.prototype.getContainer=function(){return this.get("container")},t.prototype.formatArray=function(e){var r=this.get(e);if((0,M.isNumber)(r))this.set(e,[r,r,r,r]);else if((0,M.isArray)(r))switch(r.length){case 0:this.set(e,[0,0,0,0]);break;case 1:this.set(e,[r[0],r[0],r[0],r[0]]);break;case 2:this.set(e,[r[0],r[1],r[0],r[1]]);break;case 3:this.set(e,[r[0],r[1],r[2],r[1]]);break;default:break}return this.get(e)},t.prototype.getShapeSize=function(e){var r,n,a;return e.size&&((0,M.isArray)(e.size)?(r=e.size[0],n=e.size[1]||e.size[0],a=e.size[0]/2):(0,M.isNumber)(e.size)&&(r=e.size,n=e.size,a=e.size/2)),e.style&&(e.style.width&&(r=e.style.width),e.style.height&&(n=e.style.height),e.style.r&&(a=e.style.r)),a||(a=5),r||(r=a),n||(n=a),{width:r,height:n,r:a}},t.prototype.getStyle=function(e,r){var n=e==="node"?{fill:"#ccc",lineWidth:0}:{stroke:"#000",lineWidth:1};return to(to({},n),r.style||{})},t.prototype.destroy=function(){var e=this.get("legendCanvas");e==null||e.destroy();var r=this.get("graph"),n=r.get("container"),a=this.get("container");n.removeChild(a)},t}(ae),og=ig,sg=function(){var s=function(e,r){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},s(e,r)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");s(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),mu=function(){return mu=Object.assign||function(s){for(var t,e=1,r=arguments.length;e+

    ":"

    -

    ",I=r?"":"

    ".concat(u,"

    "),w="

    x

    ",O=r?"".concat(c,"px"):"".concat(c,"px ").concat(c,"px 0 0");return'
    +
    +

    `).concat(i,`

    + `).concat(v,` + `).concat(w,` +
    + `).concat(I,` +
    `)}},t.prototype.init=function(){var e=this;if(!e.destroyed){var r=e.get("graph"),n=r.getContainer(),a=e.get("container"),i=this.get("containerCfg");i?(a=this.createContainer(),n.appendChild(a)):a=n,this.set("container",a);var o=n.getBoundingClientRect(),u=new Ns.Canvas({container:n,width:o.right-o.left,height:o.bottom-o.top});(0,F.Z)(u.get("el"),{position:"absolute",top:0,left:0,pointerEvents:"none"}),window.addEventListener("resize",(0,M.debounce)(function(){return e.resizeCanvas(e)},100));var f=u.addGroup({id:"annotation-link-group"});e.set("linkGroup",f),e.set("canvas",u),e.get("getTitle")||e.set("getTitle",function(v){var I,w=((I=v==null?void 0:v.getModel)===null||I===void 0?void 0:I.call(v))||{},O=w.label,z=w.id;return O||z||"-"}),e.get("getContent")||e.set("getContent",function(v){var I,w;if(!v)return"-";var O=((I=v.getModel)===null||I===void 0?void 0:I.call(v))||{},z=O.label,Z=O.id,J=(w=v.getType)===null||w===void 0?void 0:w.call(v),re=J?"".concat(J,": "):"";return"".concat(re).concat(z||Z||"")});var c=e.get("defaultData");c&&this.readData(c)}},t.prototype.createContainer=function(){var e=this;if(!this.destroyed){var r=this.get("containerCfg"),n=this.get("graph"),a=n.getContainer(),i=a.getBoundingClientRect(),o=i.left,u=i.right,f=i.top,c=i.bottom,v=c-f,I=u-o,w=r.position,O=w===void 0?"top":w,z=r.offsetX,Z=z===void 0?0:z,J=r.offsetY,re=J===void 0?0:J,ue=Vd(r,["position","offsetX","offsetY"]),Ee=r.height,Ie=Ee===void 0?"fit-content":Ee,Se=r.width,De=Se===void 0?n.getWidth():Se;Ie==="100%"&&(Ie=v),De==="100%"&&(De=I);var $e="unset",ft="unset",rt={};switch(O){case"right":$e="".concat(v,"px"),rt={top:0,right:0},rt.right+=o+Z,rt.top+=f+re;break;case"bottom":ft="".concat(I,"px"),rt={bottom:0,left:0},rt.left+=o+Z,rt.bottom+=f+re;break;case"top":ft="".concat(I,"px");case"left":$e="".concat(v,"px");default:rt={top:0,left:0},rt.left+=o+Z,rt.top+=f+re;break}Object.keys(rt).forEach(function(Ft){rt[Ft]="".concat(rt[Ft],"px")});var wt=(0,Yt.Z)("
    "));return(0,F.Z)(wt,mu(mu({position:"absolute",display:O==="top"||O==="bottom"?"inline-flex":"unset",width:(0,M.isNumber)(De)?"".concat(De,"px"):De,height:(0,M.isNumber)(Ie)?"".concat(Ie,"px"):Ie,maxHeight:$e,maxWidth:ft,overflow:"scroll"},rt),ue)),a.appendChild(wt),wt.addEventListener("scroll",function(Ft){e.updateLinks()}),wt}},t.prototype.resizeCanvas=function(e){clearTimeout(e.resizeTimer),e.resizeTimer=setTimeout(function(){if(!(!e||e.destroyed)){var r=e.get("container").getBoundingClientRect(),n=r.right-r.left,a=r.bottom-r.top;e.get("canvas").changeSize(n,a),e.updateOutsideCards(e)}},250)},t.prototype.updateOutsideCards=function(e){var r=e||this,n=r.get("cardInfoMap")||{},a=r.get("graph"),i=a.getPointByCanvas(0,0),o=a.getPointByCanvas(a.getWidth(),a.getHeight()),u=a.getClientByPoint(i.x,i.y),f=u.x,c=u.y,v=a.getClientByPoint(o.x,o.y),I=v.x,w=v.y;Object.values(n).forEach(function(O){var z=O.card;if(!!z){var Z=z.style,J=Wc(Z.left),re=Wc(Z.top),ue=z.getBoundingClientRect(),Ee=ue.width,Ie=ue.height,Se=J,De=re;J+Ee>I-f&&(Se=I-f-Ee),J<0&&(Se=0),re+Ie>w-c&&(De=w-c-Ie),re<0&&(De=0),(0,F.Z)(z,{left:"".concat(Se,"px"),top:"".concat(De,"px")})}}),r.updateLinks()},t.prototype.showAnnotation=function(e){if(!this.destroyed){var r=e.item;this.toggleAnnotation(r)}},t.prototype.hideCards=function(){var e=this;if(!e.destroyed){var r=e.get("cardInfoMap")||{};Object.keys(r).forEach(function(n){e.hideCard(n)})}},t.prototype.toggleAnnotation=function(e,r){var n,a;r===void 0&&(r={});var i=this;if(!i.destroyed){var o=i.get("cardInfoMap")||{},u=i.get("graph"),f=i.get("container"),c=i.get("containerCfg"),v=Object.assign({},i.get("cardCfg")||{},r),I=v.minHeight,w=v.minWidth,O=v.width,z=v.height,Z=v.collapsed,J=Z===void 0?!1:Z,re=v.x,ue=v.y,Ee=v.title,Ie=v.content,Se=v.maxTitleLength,De=v.defaultBegin,$e=Vd(v,["minHeight","minWidth","width","height","collapsed","x","y","title","content","maxTitleLength","defaultBegin"]),ft=i.get("linkGroup"),rt=this.get("rows")||[[]],wt=(n=e.isCanvas)===null||n===void 0?void 0:n.call(e),Ft=wt?jd:e.getID(),Er=o[Ft]||{},dr=Er.card,vr=Er.link,qt=Er.x,Fr=Er.y,kr=Er.title,or=Er.content,_r=this.get("getTitle"),Gr=this.get("getContent"),Ur=this.get("getContentPlaceholder")||function(){return""},rn=this.get("getTitlePlaceHolder")||function(){return""},hn=Ur(e),oa=rn(e),Ln=(0,Yt.Z)(this.getDOMContent(mu({itemId:Ft,collapsed:J,title:((a=kr||Ee||(_r==null?void 0:_r(e)))===null||a===void 0?void 0:a.substr(0,Se))||oa,content:or||Ie||(Gr==null?void 0:Gr(e))||hn},$e))),Wa=(0,M.isNumber)(I)?"".concat(I,"px"):I;(0,F.Z)(Ln,{minHeight:J?"unset":Wa,minWidth:(0,M.isNumber)(w)?"".concat(w,"px"):w,height:z,width:O});var Ea=!!dr;Ea?(vr==null||vr.remove(!0),f.replaceChild(Ln,dr)):f.appendChild(Ln);var ba;if(!c){if(ba=f.getBoundingClientRect()||{},re!==void 0&&ue!==void 0)qt=re,Fr=ue;else if(!Ea&&!wt){var $a=ba.top,Mi=De||{},gi=Mi.left,Ho=Mi.right,ii=Ho===void 0?16:Ho,Zo=Mi.top,Pi=Zo===void 0?8:Zo,ki=Mi.bottom,Xi=ii,ro=Pi;isNaN(gi)||(Xi=f.scrollWidth-gi),isNaN(ki)||(ro=f.scrollHeight-ki);var ho=(0,M.isNumber)(w)?w:100;qt=f.scrollWidth-Ln.scrollWidth-(rt.length-1)*ho-Xi;var Ta=rt[rt.length-1],Ja=(Ta[Ta.length-1]||{}).bbox;Fr=(Ja==null?void 0:Ja.bottom)-$a||ro}(0,F.Z)(Ln,{position:"absolute",left:"".concat(qt,"px"),top:"".concat(Fr,"px"),cusor:c?"unset":"move"})}this.bindListener(Ln,Ft);var na=Ln.getBoundingClientRect();if(!wt){var ei=hd(e,na,u,this.get("canvas")),oi=this.get("linkStyle");vr=ft.addShape("path",{attrs:mu({lineWidth:1,lineDash:[5,5],stroke:"#ccc",path:ei},oi)})}if(o[Ft]=mu(mu({},o[Ft]||{}),{id:Ft,collapsed:J,card:Ln,link:vr,x:qt,y:Fr,cardBBox:na,content:or||Ie,title:kr||Ee,contentPlaceholder:hn,titlePlaceholder:oa,isCanvas:wt}),i.set("cardInfoMap",o),c)this.updateCardPositionsInConatainer(),this.updateLinks();else{var gn=!isNaN(re)&&!isNaN(ue);if(!Ea&&!wt&&!gn){var Pa=ba.bottom,Ra=Pa===void 0?0:Pa,$a=ba.top;rt[rt.length-1].push({id:Ft,bbox:na}),na.top>Ra-$a-na.height-16&&rt.push([]),this.set("rows",rt)}}this.updateCardSize(Ft);var yi=this.get("onAnnotationChange");yi==null||yi(o[Ft],Ea?"update":"create")}},t.prototype.updateCardPositionsInConatainer=function(){if(!this.destroyed){var e=this.get("cardInfoMap");if(!!e){var r=this.get("container"),n=this.get("containerCfg").position,a=r.getBoundingClientRect().width,i=getComputedStyle(r),o=Wc(i.paddingLeft)+Wc(i.paddingRight);a-=o,Object.values(e).forEach(function(u){var f=u.card,c=f.getBoundingClientRect().width;switch(n){case"right":(0,F.Z)(f,{marginLeft:a?"".concat(a-c,"px"):"0px"});break;case"top":case"bottom":(0,F.Z)(f,{marginLeft:"8px"});default:break}})}}},t.prototype.handleExpandCollapseCard=function(e){if(!this.destroyed){var r=this.get("graph"),n=this.get("cardInfoMap");if(!!n){var a=n[e].collapsed,i=r.findById(e);if(!!i){var o=this.get("cardCfg").collapseType;o==="hide"&&!a?this.hideCard(e):this.toggleAnnotation(i,{collapsed:!a}),n[e]=mu(mu({},n[e]),{collapsed:!a})}}}},t.prototype.hideCard=function(e){if(!this.destroyed){var r=this.get("cardInfoMap");if(!(!r||!r[e])){var n=r[e],a=n.card,i=n.link;(0,F.Z)(a,{display:"none"}),i==null||i.hide();var o=this.get("onAnnotationChange");o(r[e],"hide")}}},t.prototype.removeCard=function(e){if(!this.destroyed){var r=this.get("cardInfoMap");if(!!r){var n=r[e],a=n.card,i=n.link,o=this.get("container");o.removeChild(a),i==null||i.remove(!0),delete r[e];var u=this.get("onAnnotationChange");u(n,"remove")}}},t.prototype.bindListener=function(e,r){var n=this;if(!this.destroyed){e.addEventListener("mousemove",function(u){var f;if(u.target.className==="g6-annotation-collapse"?f="collapse":u.target.className==="g6-annotation-expand"?f="expand":u.target.className==="g6-annotation-close"&&(f="close"),f){var c=n.get("cardCfg").onMouseEnterIcon,v=c===void 0?function(){}:c;v(u,r,f)}}),e.addEventListener("mouseout",function(u){var f;if(u.target.className==="g6-annotation-collapse"?f="collapse":u.target.className==="g6-annotation-expand"?f="expand":u.target.className==="g6-annotation-close"&&(f="close"),f){var c=n.get("cardCfg").onMouseLeaveIcon,v=c===void 0?function(){}:c;v(u,r,f)}}),e.addEventListener("mouseenter",function(u){var f=n.get("cardInfoMap");if(!!f){var c=n.get("graph"),v=c.findById(r);if(v){var I=n.get("itemHighlightState");c.setItemState(v,I,!0)}var w=f[r].link;if(w){var O=n.get("linkHighlightStyle")||{};w.attr(O)}}}),e.addEventListener("mouseleave",function(u){var f=n.get("cardInfoMap");if(!!f){var c=n.get("graph"),v=c.findById(r);if(v){var I=n.get("itemHighlightState");c.setItemState(v,I,!1)}var w=f[r].link;if(w){var O=n.get("linkHighlightStyle")||{};Object.keys(O).forEach(function(Z){w.attr(Z,void 0),w.attr(Z,void 0)});var z=n.get("linkStyle");w.attr(z)}}}),e.addEventListener("click",function(u){var f=(n.get("cardCfg")||{}).onClickIcon;if(u.target.className==="g6-annotation-collapse"||u.target.className==="g6-annotation-expand"){var c=n.get("cardCfg").collapseType;c==="hide"?n.hideCard(r):n.handleExpandCollapseCard(r),f==null||f(u,r,u.target.className==="g6-annotation-collapse"?"collapse":"expand")}else if(u.target.className==="g6-annotation-close"){var v=n.get("cardCfg").closeType;v==="remove"?n.removeCard(r):n.hideCard(r),f==null||f(u,r,"close")}});var a=this.get("editable");a&&e.addEventListener("dblclick",function(u){var f=n.get("cardInfoMap"),c=(n.get("cardCfg")||{}).maxTitleLength,v=c===void 0?20:c;if(!!f){var I=u.target,w=I.className;if(!(w!=="g6-annotation-title"&&w!=="g6-annotation-content")){var O=w==="g6-annotation-title"?I.getBoundingClientRect():I.parentNode.getBoundingClientRect(),z=O.width,Z=O.height,J=getComputedStyle(I),re=w==="g6-annotation-title"?"input":"textarea",ue=(0,Yt.Z)("<".concat(re,' class="').concat(w,'-input" type="textarea" style="width:').concat(z,"px; height: ").concat(Z,'px; min-width: 16px;"/>')),Ee=(0,Yt.Z)('
    '));Ee.appendChild(ue),I.parentNode.replaceChild(Ee,I);var Ie=f[r],Se=Ie.contentPlaceholder,De=Ie.titlePlaceholder,$e=Ie.content,ft=Ie.title,rt=$e;w==="g6-annotation-title"?(ue.name="title",ue.maxLength=v,rt=ft):ue.name="content",rt?(ue.innerHTML=I.innerHTML,ue.value=I.innerHTML):ue.placeholder=w==="g6-annotation-title"?De:Se,ue.focus(),ue.addEventListener("blur",function(wt){ue.value&&(I.innerHTML=ue.value,Ie[ue.name||"title"]=ue.value),Ee.parentNode.replaceChild(I,Ee),n.updateCardSize(r);var Ft=n.get("onAnnotationChange");Ft==null||Ft(Ie,"update")})}}});var i=["g6-annotation-title","g6-annotation-content","g6-annotation-title-input","g6-annotation-content-input"];e.draggable=!0,e.addEventListener("dragstart",function(u){var f=u.target.className;if(!i.includes(f)){var c=e.style;n.set("dragging",{card:e,x:u.clientX,y:u.clientY,left:Wc(c.left),top:Wc(c.top)})}}),e.addEventListener("drag",function(u){u.preventDefault();var f=n.get("cardInfoMap");if(!!f){var c=u.clientX,v=u.clientY,I=n.get("dragging");if(!(isNaN(c)||isNaN(v)||!I)){var w=I.x,O=I.y,z=I.left,Z=I.top,J=I.card,re=c-w,ue=v-O;z+=re,Z+=ue;var Ee=n.get("graph"),Ie=Ee.getPointByCanvas(0,0),Se=Ee.getPointByCanvas(Ee.getWidth(),Ee.getHeight()),De=Ee.getClientByPoint(Ie.x,Ie.y),$e=De.x,ft=De.y,rt=Ee.getClientByPoint(Se.x,Se.y),wt=rt.x,Ft=rt.y,Er=J.getBoundingClientRect(),dr=Er.right-Er.left,vr=Er.bottom-Er.top;(z>wt-$e-dr&&re>0||z<0&&re<0)&&(z-=re),(Z>Ft-ft-vr&&ue>0||Z<0&&ue<0)&&(Z-=ue),(0,F.Z)(J,{left:"".concat(z,"px"),top:"".concat(Z,"px"),visibility:"hidden"}),w=c,O=v;var qt=(f[r]||{}).link;if(qt){var Fr=Ee.findById(r);qt.attr("path",hd(Fr,Er,Ee,n.get("canvas")))}n.set("dragging",{x:w,y:O,left:z,top:Z,card:J})}}});var o=function(f){var c=n.get("cardInfoMap");if(!!c){var v=n.get("dragging");if(v){var I=v.left,w=v.top,O=v.card;c[r].x=I,c[r].y=w,(0,F.Z)(O,{visibility:"visible"}),n.set("dragging",!1);var z=n.get("rows");z==null||z.forEach(function(J){for(var re=J.length-1;re>=0;re--)J[re].id===r&&J.splice(re,1)});var Z=n.get("onAnnotationChange");Z==null||Z(c[r],"update")}}};e.addEventListener("dragend",o)}},t.prototype.updateCardSize=function(e){var r=this.get("cardInfoMap");if(!!r){var n=r[e].card,a=n.getBoundingClientRect().width,i=n.getElementsByClassName("g6-annotation-title")[0];if(i){var o=getComputedStyle(i),u=Wc(o.marginLeft),f=i.getBoundingClientRect().width;(0,F.Z)(i,{marginRight:"".concat(a-u-24-16-f,"px")})}}},t.prototype.updateLink=function(e){var r=e.item;if(!!r){var n=this.get("cardInfoMap");if(!!n){var a=this.get("canvas"),i=this.get("graph"),o=r.getID(),u=n[o]||{},f=u.link,c=u.card;if(f){var v=hd(r,c.getBoundingClientRect(),i,a);f.attr("path",v)}}}},t.prototype.updateLinks=function(){var e=this;if(!this.destroyed){var r=this.get("cardInfoMap");if(!!r){var n=this.get("graph");Object.values(r).forEach(function(a){var i=a.id,o=n.findById(i);e.updateLink({item:o})})}}},t.prototype.onGraphDataChange=function(){var e=this,r=this.get("cardInfoMap");if(!!r){var n=this.get("graph");Object.values(r).forEach(function(a){var i=a.id,o=a.card,u=a.isCanvas;if(!(!o||u||o.style.display==="none")){var f=n.findById(i);f&&f.isVisible()?e.toggleAnnotation(f):e.hideCard(i)}})}},t.prototype.onGraphItemVisibilityChange=function(e){var r=e.item,n=e.visible;if(!(!r||r.destroyed)){var a=this.get("cardInfoMap");if(!!a){var i=r.getID();!a[i]||n||this.hideCard(i)}}},t.prototype.saveData=function(e){e===void 0&&(e=!1);var r=this.get("cardInfoMap");if(!!r){var n=this.get("graph"),a=this.get("getTitle"),i=this.get("getContent"),o=[];return Object.values(r).forEach(function(u){var f=u.title,c=u.content,v=u.x,I=u.y,w=u.id,O=u.collapsed,z=u.card;if(!(z&&z.style.display==="none"&&!e)){var Z=n.findById(w)||n.get("canvas");o.push({id:w,x:v,y:I,collapsed:O,title:f||(a==null?void 0:a(Z)),content:c||(i==null?void 0:i(Z)),visible:z&&z.style.display!=="none"})}}),o}},t.prototype.readData=function(e){var r=this,n=this.get("graph");e.forEach(function(a){var i=a.id,o=a.x,u=a.y,f=a.title,c=a.content,v=a.collapsed,I=a.visible,w=n.findById(i);if(!w&&i===jd&&(w=n.get("canvas")),!w){var O=r.get("cardInfoMap")||{};O[i]=a,r.set("cardInfoMap",O);return}r.toggleAnnotation(w,{x:o,y:u,title:f,content:c,collapsed:v}),I||r.hideCard(i)})},t.prototype.clear=function(){var e=this.get("cardInfoMap");if(!!e){var r=this.get("container");Object.values(e).forEach(function(n){var a=n.card,i=n.link;r.removeChild(a),i==null||i.remove(!0)}),this.set("cardInfoMap",{})}},t.prototype.destroy=function(){var e;this.clear(),(e=this.get("canvas"))===null||e===void 0||e.destroy();var r=this.get("graph");!r||r.destroyed||(this.get("containerCfg")&&r.getContainer().removeChild(this.get("container")),this.destroyed=!0)},t}(ae),fg=ug,cg=function(t,e){var r,n,a,i=Infinity;Object.keys(t).forEach(function(f){var c=t[f];Object.keys(e).forEach(function(v){var I=e[v],w=c.x-I.x,O=c.y-I.y,z=w*w+O*O;i>z&&(i=z,r=c,n=I,a=[f,v])})});var o=20,u=Vi.getControlPoint(r,n,.5,o);return[["M",r.x,r.y],["Q",u.x,u.y,n.x,n.y]]},hd=function(t,e,r,n){var a,i,o=t.getType();if(o==="edge")i=[t.getKeyShape().getPoint(.5)];else{var u=(a=t.getKeyShape)===null||a===void 0?void 0:a.call(t).getBBox(),f=u.minX,c=u.minY,v=u.maxX,I=u.maxY,w=t.getModel(),O=w.x,z=w.y;f+=O,c+=z,v+=O,I+=z,i={left:{x:f,y:(c+I)/2},right:{x:v,y:(c+I)/2},top:{x:(f+v)/2,y:c},bottom:{x:(f+v)/2,y:I}}}Object.keys(i).forEach(function(ft){var rt=i[ft],wt=rt.x,Ft=rt.y,Er=r.getClientByPoint(wt,Ft);i[ft]=n.getPointByClient(Er.x,Er.y)});var Z=e.top,J=Z===void 0?0:Z,re=e.left,ue=re===void 0?0:re,Ee=e.right,Ie=Ee===void 0?0:Ee,Se=e.bottom,De=Se===void 0?0:Se,$e={left:n.getPointByClient(ue,(J+De)/2),right:n.getPointByClient(Ie,(J+De)/2),top:n.getPointByClient((ue+Ie)/2,J),bottom:n.getPointByClient((ue+Ie)/2,De)};return cg(i,$e)},Wc=function(t){return Number(t.replace(/\s+|px/gi,""))||0},lg={PluginBase:ae,Menu:kt,Grid:Te,Minimap:An,Bundling:ai,ToolBar:ma,Tooltip:yu,Fisheye:Zi,TimeBar:Wh,ImageMinimap:Hh,EdgeFilterLens:Qh,SnapLine:rg,Legend:og,Annotation:fg},dg=lg,Bo=dg;fs("circle",{options:{size:Zr.defaultNode.size,style:{x:0,y:0,stroke:Zr.defaultNode.style.stroke,fill:Zr.defaultNode.style.fill,lineWidth:Zr.defaultNode.style.lineWidth},labelCfg:{style:{fill:Zr.nodeLabel.style.fill,fontSize:Zr.nodeLabel.style.fontSize,fontFamily:Zr.windowFontFamily}},linkPoints:{top:!1,right:!1,bottom:!1,left:!1,size:Zr.defaultNode.linkPoints.size,lineWidth:Zr.defaultNode.linkPoints.lineWidth,fill:Zr.defaultNode.linkPoints.fill,stroke:Zr.defaultNode.linkPoints.stroke},icon:{show:!1,img:"https://gw.alipayobjects.com/zos/bmw-prod/5d015065-8505-4e7a-baec-976f81e3c41d.svg",width:20,height:20},stateStyles:(0,T.__assign)({},Zr.nodeStateStyles)},shapeType:"circle",labelPosition:"center",drawShape:function(t,e){var r=(this.mergeStyle||this.getOptions(t)).icon,n=r===void 0?{}:r,a=this.getShapeStyle(t),i=(0,M.deepMix)({},n,t.icon),o="".concat(this.type,"-keyShape"),u=e.addShape("circle",{attrs:a,className:o,name:o,draggable:!0});e.shapeMap[o]=u;var f=i.width,c=i.height,v=i.show,I=i.text;if(v){var w="".concat(this.type,"-icon");I?e.shapeMap[w]=e.addShape("text",{attrs:(0,T.__assign)({x:0,y:0,fontSize:12,fill:"#000",stroke:"#000",textBaseline:"middle",textAlign:"center"},i),className:w,name:w,draggable:!0}):e.shapeMap[w]=e.addShape("image",{attrs:(0,T.__assign)({x:-f/2,y:-c/2},i),className:w,name:w,draggable:!0})}return this.drawLinkPoints(t,e),u},drawLinkPoints:function(t,e){var r=(this.mergeStyle||this.getOptions(t)).linkPoints;if(!!r){var n=r||{},a=n.top,i=n.left,o=n.right,u=n.bottom,f=n.size,c=n.r,v=(0,T.__rest)(n,["top","left","right","bottom","size","r"]),I=this.getSize(t),w=I[0]/2;if(i){var O="link-point-left";e.shapeMap[O]=e.addShape("circle",{attrs:(0,T.__assign)((0,T.__assign)({},v),{x:-w,y:0,r:f/2||c||5}),className:O,name:O,isAnchorPoint:!0})}if(o){var z="link-point-right";e.shapeMap[z]=e.addShape("circle",{attrs:(0,T.__assign)((0,T.__assign)({},v),{x:w,y:0,r:f/2||c||5}),className:z,name:z,isAnchorPoint:!0})}if(a){var Z="link-point-top";e.shapeMap[Z]=e.addShape("circle",{attrs:(0,T.__assign)((0,T.__assign)({},v),{x:0,y:-w,r:f/2||c||5}),className:Z,name:Z,isAnchorPoint:!0})}if(u){var J="link-point-bottom";e.shapeMap[J]=e.addShape("circle",{attrs:(0,T.__assign)((0,T.__assign)({},v),{x:0,y:w,r:f/2||c||5}),className:J,name:J,isAnchorPoint:!0})}}},getShapeStyle:function(t){var e=(this.mergeStyle||this.getOptions(t)).style,r={stroke:t.color},n=(0,M.deepMix)({},e,r),a=this.getSize(t),i=a[0]/2,o=(0,T.__assign)({x:0,y:0,r:i},n);return o},update:function(t,e,r){var n=e.getContainer(),a=this.getSize(t),i=(0,T.__assign)({},t.style);t.style.stroke===void 0&&t.color&&(i.stroke=t.color),t.style.r===void 0&&!isNaN(a[0])&&(i.r=a[0]/2),this.updateShape(t,e,i,!0,r),this.updateLinkPoints(t,n)}},"single-node"),fs("rect",{options:{size:[100,30],style:{radius:0,stroke:Zr.defaultNode.style.stroke,fill:Zr.defaultNode.style.fill,lineWidth:Zr.defaultNode.style.lineWidth},labelCfg:{style:{fill:Zr.nodeLabel.style.fill,fontSize:Zr.nodeLabel.style.fontSize,fontFamily:Zr.windowFontFamily}},linkPoints:{top:!1,right:!1,bottom:!1,left:!1,size:Zr.defaultNode.linkPoints.size,lineWidth:Zr.defaultNode.linkPoints.lineWidth,fill:Zr.defaultNode.linkPoints.fill,stroke:Zr.defaultNode.linkPoints.stroke},icon:{show:!1,img:"https://gw.alipayobjects.com/zos/bmw-prod/5d015065-8505-4e7a-baec-976f81e3c41d.svg",width:20,height:20},anchorPoints:[[0,.5],[1,.5]],stateStyles:(0,T.__assign)({},Zr.nodeStateStyles)},shapeType:"rect",labelPosition:"center",drawShape:function(t,e){var r=this.getShapeStyle(t),n=e.addShape("rect",{attrs:r,className:"".concat(this.type,"-keyShape"),name:"".concat(this.type,"-keyShape"),draggable:!0});return e.shapeMap["".concat(this.type,"-keyShape")]=n,this.drawLinkPoints(t,e),n},drawLinkPoints:function(t,e){var r=(this.mergeStyle||this.getOptions(t)).linkPoints,n=r===void 0?{}:r,a=n.top,i=n.left,o=n.right,u=n.bottom,f=n.size,c=n.r,v=(0,T.__rest)(n,["top","left","right","bottom","size","r"]),I=this.getSize(t),w=I[0],O=I[1];i&&(e.shapeMap["link-point-left"]=e.addShape("circle",{attrs:(0,T.__assign)((0,T.__assign)({},v),{x:-w/2,y:0,r:f/2||c||5}),className:"link-point-left",name:"link-point-left",isAnchorPoint:!0})),o&&(e.shapeMap["link-point-right"]=e.addShape("circle",{attrs:(0,T.__assign)((0,T.__assign)({},v),{x:w/2,y:0,r:f/2||c||5}),className:"link-point-right",name:"link-point-right",isAnchorPoint:!0})),a&&(e.shapeMap["link-point-top"]=e.addShape("circle",{attrs:(0,T.__assign)((0,T.__assign)({},v),{x:0,y:-O/2,r:f/2||c||5}),className:"link-point-top",name:"link-point-top",isAnchorPoint:!0})),u&&(e.shapeMap["link-point-bottom"]=e.addShape("circle",{attrs:(0,T.__assign)((0,T.__assign)({},v),{x:0,y:O/2,r:f/2||c||5}),className:"link-point-bottom",name:"link-point-bottom",isAnchorPoint:!0}))},getShapeStyle:function(t){var e=(this.mergeStyle||this.getOptions(t)).style,r={stroke:t.color},n=(0,M.mix)({},e,r),a=this.getSize(t),i=n.width||a[0],o=n.height||a[1],u=(0,T.__assign)({x:-i/2,y:-o/2,width:i,height:o},n);return u},update:function(t,e,r){var n=e.getContainer(),a=this.getOptions({}).style,i=this.getSize(t),o=e.get("keyShape");t.size||(i[0]=o.attr("width")||a.width,i[1]=o.attr("height")||a.height);var u={stroke:t.color,x:-i[0]/2,y:-i[1]/2,width:i[0],height:i[1]},f=(0,M.mix)({},a,o.attr(),u);f=(0,M.mix)(f,t.style),this.updateShape(t,e,f,!1,r),this.updateLinkPoints(t,n)}},"single-node"),fs("ellipse",{options:{size:[80,40],style:{x:0,y:0,stroke:Zr.defaultNode.style.stroke,fill:Zr.defaultNode.style.fill,lineWidth:Zr.defaultNode.style.lineWidth},labelCfg:{style:{fill:Zr.nodeLabel.style.fill,fontSize:Zr.nodeLabel.style.fontSize,fontFamily:Zr.windowFontFamily}},linkPoints:{top:!1,right:!1,bottom:!1,left:!1,size:Zr.defaultNode.linkPoints.size,lineWidth:Zr.defaultNode.linkPoints.lineWidth,fill:Zr.defaultNode.linkPoints.fill,stroke:Zr.defaultNode.linkPoints.stroke},icon:{show:!1,img:"https://gw.alipayobjects.com/zos/bmw-prod/5d015065-8505-4e7a-baec-976f81e3c41d.svg",width:20,height:20},stateStyles:(0,T.__assign)({},Zr.nodeStateStyles)},shapeType:"ellipse",labelPosition:"center",drawShape:function(t,e){var r=(this.mergeStyle||this.getOptions(t)).icon,n=r===void 0?{}:r,a=this.getShapeStyle(t),i=e.addShape("ellipse",{attrs:a,className:"ellipse-keyShape",name:"ellipse-keyShape",draggable:!0});e.shapeMap["ellipse-keyShape"]=i;var o=n.width,u=n.height,f=n.show,c=n.text;return f&&(c?e.shapeMap["".concat(this.type,"-icon")]=e.addShape("text",{attrs:(0,T.__assign)({x:0,y:0,fontSize:12,fill:"#000",stroke:"#000",textBaseline:"middle",textAlign:"center"},n),className:"".concat(this.type,"-icon"),name:"".concat(this.type,"-icon"),draggable:!0}):e.shapeMap["".concat(this.type,"-icon")]=e.addShape("image",{attrs:(0,T.__assign)({x:-o/2,y:-u/2},n),className:"".concat(this.type,"-icon"),name:"".concat(this.type,"-icon"),draggable:!0})),this.drawLinkPoints(t,e),i},drawLinkPoints:function(t,e){var r=(this.mergeStyle||this.getOptions(t)).linkPoints,n=r===void 0?{}:r,a=n.top,i=n.left,o=n.right,u=n.bottom,f=n.size,c=n.r,v=(0,T.__rest)(n,["top","left","right","bottom","size","r"]),I=this.getSize(t),w=I[0]/2,O=I[1]/2;i&&(e.shapeMap["link-point-left"]=e.addShape("circle",{attrs:(0,T.__assign)((0,T.__assign)({},v),{x:-w,y:0,r:f/2||c||5}),className:"link-point-left",name:"link-point-left",isAnchorPoint:!0})),o&&(e.shapeMap["link-point-right"]=e.addShape("circle",{attrs:(0,T.__assign)((0,T.__assign)({},v),{x:w,y:0,r:f/2||c||5}),className:"link-point-right",name:"link-point-right",isAnchorPoint:!0})),a&&(e.shapeMap["link-point-top"]=e.addShape("circle",{attrs:(0,T.__assign)((0,T.__assign)({},v),{x:0,y:-O,r:f/2||c||5}),className:"link-point-top",name:"link-point-top",isAnchorPoint:!0})),u&&(e.shapeMap["link-point-bottom"]=e.addShape("circle",{attrs:(0,T.__assign)((0,T.__assign)({},v),{x:0,y:O,r:f/2||c||5}),className:"link-point-bottom",name:"link-point-bottom",isAnchorPoint:!0}))},getShapeStyle:function(t){var e=(this.mergeStyle||this.getOptions(t)).style,r={stroke:t.color},n=(0,M.mix)({},e,r),a=this.getSize(t),i=a[0]/2,o=a[1]/2,u=(0,T.__assign)({x:0,y:0,rx:i,ry:o},n);return u},update:function(t,e,r){var n=e.getContainer(),a=this.getOptions({}).style,i=this.getSize(t),o={stroke:t.color,rx:i[0]/2,ry:i[1]/2},u=e.get("keyShape"),f=(0,M.mix)({},a,u.attr(),o);f=(0,M.mix)(f,t.style),this.updateShape(t,e,f,!0,r),this.updateLinkPoints(t,n)}},"single-node"),fs("diamond",{options:{size:[80,80],style:{stroke:Zr.defaultNode.style.stroke,fill:Zr.defaultNode.style.fill,lineWidth:Zr.defaultNode.style.lineWidth},labelCfg:{style:{fill:Zr.nodeLabel.style.fill,fontSize:Zr.nodeLabel.style.fontSize,fontFamily:Zr.windowFontFamily}},linkPoints:{top:!1,right:!1,bottom:!1,left:!1,size:Zr.defaultNode.linkPoints.size,lineWidth:Zr.defaultNode.linkPoints.lineWidth,fill:Zr.defaultNode.linkPoints.fill,stroke:Zr.defaultNode.linkPoints.stroke},icon:{show:!1,img:"https://gw.alipayobjects.com/zos/bmw-prod/5d015065-8505-4e7a-baec-976f81e3c41d.svg",width:20,height:20},stateStyles:(0,T.__assign)({},Zr.nodeStateStyles)},shapeType:"diamond",labelPosition:"center",drawShape:function(t,e){var r=(this.mergeStyle||this.getOptions(t)).icon,n=r===void 0?{}:r,a=this.getShapeStyle(t),i=e.addShape("path",{attrs:a,className:"".concat(this.type,"-keyShape"),name:"".concat(this.type,"-keyShape"),draggable:!0});e.shapeMap["".concat(this.type,"-keyShape")]=i;var o=n.width,u=n.height,f=n.show,c=n.text;return f&&(c?e.shapeMap["".concat(this.type,"-icon")]=e.addShape("text",{attrs:(0,T.__assign)({x:0,y:0,fontSize:12,fill:"#000",stroke:"#000",textBaseline:"middle",textAlign:"center"},n),className:"".concat(this.type,"-icon"),name:"".concat(this.type,"-icon"),draggable:!0}):e.shapeMap["".concat(this.type,"-icon")]=e.addShape("image",{attrs:(0,T.__assign)({x:-o/2,y:-u/2},n),className:"".concat(this.type,"-icon"),name:"".concat(this.type,"-icon"),draggable:!0})),this.drawLinkPoints(t,e),i},drawLinkPoints:function(t,e){var r=(this.mergeStyle||this.getOptions(t)).linkPoints,n=r===void 0?{}:r,a=n.top,i=n.left,o=n.right,u=n.bottom,f=n.size,c=n.r,v=(0,T.__rest)(n,["top","left","right","bottom","size","r"]),I=this.getSize(t),w=I[0],O=I[1];i&&(e.shapeMap["link-point-left"]=e.addShape("circle",{attrs:(0,T.__assign)((0,T.__assign)({},v),{x:-w/2,y:0,r:f/2||c||5}),className:"link-point-left",name:"link-point-left",isAnchorPoint:!0})),o&&(e.shapeMap["link-point-right"]=e.addShape("circle",{attrs:(0,T.__assign)((0,T.__assign)({},v),{x:w/2,y:0,r:f/2||c||5}),className:"link-point-right",name:"link-point-right",isAnchorPoint:!0})),a&&(e.shapeMap["link-point-top"]=e.addShape("circle",{attrs:(0,T.__assign)((0,T.__assign)({},v),{x:0,y:-O/2,r:f/2||c||5}),className:"link-point-top",name:"link-point-top",isAnchorPoint:!0})),u&&(e.shapeMap["link-point-bottom"]=e.addShape("circle",{attrs:(0,T.__assign)((0,T.__assign)({},v),{x:0,y:O/2,r:f/2||c||5}),className:"link-point-bottom",name:"link-point-bottom",isAnchorPoint:!0}))},getPath:function(t){var e=this.getSize(t),r=e[0],n=e[1],a=[["M",0,-n/2],["L",r/2,0],["L",0,n/2],["L",-r/2,0],["Z"]];return a},getShapeStyle:function(t){var e=(this.mergeStyle||this.getOptions(t)).style,r={stroke:t.color},n=(0,M.mix)({},e,r),a=this.getPath(t),i=(0,T.__assign)({path:a},n);return i},update:function(t,e,r){var n=e.getContainer(),a=this.getOptions({}).style,i=this.getPath(t),o={stroke:t.color,path:i},u=e.get("keyShape"),f=(0,M.mix)({},a,u.attr(),o);f=(0,M.mix)(f,t.style),this.updateShape(t,e,f,!0,r),this.updateLinkPoints(t,n)}},"single-node"),fs("triangle",{options:{size:40,direction:"up",style:{stroke:Zr.defaultNode.style.stroke,fill:Zr.defaultNode.style.fill,lineWidth:Zr.defaultNode.style.lineWidth},labelCfg:{style:{fill:Zr.nodeLabel.style.fill,fontSize:Zr.nodeLabel.style.fontSize},offset:15},linkPoints:{top:!1,right:!1,bottom:!1,left:!1,size:Zr.defaultNode.linkPoints.size,lineWidth:Zr.defaultNode.linkPoints.lineWidth,fill:Zr.defaultNode.linkPoints.fill,stroke:Zr.defaultNode.linkPoints.stroke},icon:{show:!1,img:"https://gw.alipayobjects.com/zos/bmw-prod/5d015065-8505-4e7a-baec-976f81e3c41d.svg",width:20,height:20,offset:6},stateStyles:(0,T.__assign)({},Zr.nodeStateStyles)},shapeType:"triangle",labelPosition:"bottom",drawShape:function(t,e){var r=this.mergeStyle||this.getOptions(t),n=r.icon,a=n===void 0?{}:n,i=r.direction,o=this.getShapeStyle(t),u=t.direction||i,f=e.addShape("path",{attrs:o,className:"".concat(this.type,"-keyShape"),name:"".concat(this.type,"-keyShape"),draggable:!0});e.shapeMap["".concat(this.type,"-keyShape")]=f;var c=a.width,v=a.height,I=a.show,w=a.offset,O=a.text;if(I)if(O)e.shapeMap["".concat(this.type,"-icon")]=e.addShape("text",{attrs:(0,T.__assign)({x:0,y:0,fontSize:12,fill:"#000",stroke:"#000",textBaseline:"middle",textAlign:"center"},a),className:"".concat(this.type,"-icon"),name:"".concat(this.type,"-icon"),draggable:!0});else{var z=-c/2,Z=-v/2;(u==="up"||u==="down")&&(Z+=w),(u==="left"||u==="right")&&(z+=w),e.shapeMap["".concat(this.type,"-icon")]=e.addShape("image",{attrs:(0,T.__assign)({x:z,y:Z},a),className:"".concat(this.type,"-icon"),name:"".concat(this.type,"-icon"),draggable:!0})}return this.drawLinkPoints(t,e),f},drawLinkPoints:function(t,e){var r=this.mergeStyle||this.getOptions(t),n=r.linkPoints,a=n===void 0?{}:n,i=r.direction,o=t.direction||i,u=a.top,f=a.left,c=a.right,v=a.bottom,I=a.size,w=a.r,O=(0,T.__rest)(a,["top","left","right","bottom","size","r"]),z=this.getSize(t),Z=z[0];if(f){var J=null,re=Z*Math.sin(1/3*Math.PI),ue=Z*Math.sin(1/3*Math.PI);o==="up"?J=[-ue,re]:o==="down"?J=[-ue,-re]:o==="left"&&(J=[-ue,ue-re]),J&&(e.shapeMap["link-point-left"]=e.addShape("circle",{attrs:(0,T.__assign)((0,T.__assign)({},O),{x:J[0],y:J[1],r:I/2||w||5}),className:"link-point-left",name:"link-point-left"}))}if(c){var Ee=null,re=Z*Math.sin(1/3*Math.PI),ue=Z*Math.sin(1/3*Math.PI);o==="up"?Ee=[ue,re]:o==="down"?Ee=[ue,-re]:o==="right"&&(Ee=[ue,ue-re]),Ee&&(e.shapeMap["link-point-right"]=e.addShape("circle",{attrs:(0,T.__assign)((0,T.__assign)({},O),{x:Ee[0],y:Ee[1],r:I/2||w||5}),className:"link-point-right",name:"link-point-right"}))}if(u){var Ie=null,re=Z*Math.sin(1/3*Math.PI),ue=Z*Math.sin(1/3*Math.PI);o==="up"?Ie=[ue-re,-re]:o==="left"?Ie=[ue,-re]:o==="right"&&(Ie=[-ue,-re]),Ie&&(e.shapeMap["link-point-top"]=e.addShape("circle",{attrs:(0,T.__assign)((0,T.__assign)({},O),{x:Ie[0],y:Ie[1],r:I/2||w||5}),className:"link-point-top",name:"link-point-top"}))}if(v){var Se=null,re=Z*Math.sin(1/3*Math.PI),ue=Z*Math.sin(1/3*Math.PI);o==="down"?Se=[-ue+re,re]:o==="left"?Se=[ue,re]:o==="right"&&(Se=[-ue,re]),Se&&(e.shapeMap["link-point-bottom"]=e.addShape("circle",{attrs:(0,T.__assign)((0,T.__assign)({},O),{x:Se[0],y:Se[1],r:I/2||w||5}),className:"link-point-bottom",name:"link-point-bottom"}))}},getPath:function(t){var e=(this.mergeStyle||this.getOptions(t)).direction,r=t.direction||e,n=this.getSize(t),a=n[0],i=a*Math.sin(1/3*Math.PI),o=a*Math.sin(1/3*Math.PI),u=[["M",-o,i],["L",0,-i],["L",o,i],["Z"]];return r==="down"?u=[["M",-o,-i],["L",o,-i],["L",0,i],["Z"]]:r==="left"?u=[["M",-o,o-i],["L",o,-o],["L",o,o],["Z"]]:r==="right"&&(u=[["M",o,o-i],["L",-o,o],["L",-o,-o],["Z"]]),u},getShapeStyle:function(t){var e=(this.mergeStyle||this.getOptions(t)).style,r={stroke:t.color},n=(0,M.mix)({},e,r),a=this.getPath(t),i=(0,T.__assign)({path:a},n);return i},update:function(t,e,r){var n=e.getContainer(),a=this.getOptions({}).style,i=this.getPath(t),o={stroke:t.color,path:i},u=e.get("keyShape"),f=(0,M.mix)({},a,u.attr(),o);f=(0,M.mix)(f,t.style),this.updateShape(t,e,f,!0,r),this.updateLinkPoints(t,n)},updateLinkPoints:function(t,e){var r=this.getOptions({}),n=r.linkPoints,a=r.direction,i=t.direction||a,o=e.shapeMap["link-point-left"]||e.find(function(qt){return qt.get("className")==="link-point-left"}),u=e.shapeMap["link-point-right"]||e.find(function(qt){return qt.get("className")==="link-point-right"}),f=e.shapeMap["link-point-top"]||e.find(function(qt){return qt.get("className")==="link-point-top"}),c=e.shapeMap["link-point-bottom"]||e.find(function(qt){return qt.get("className")==="link-point-bottom"}),v=n,I=o||u||f||c;I&&(v=I.attr());var w=(0,M.mix)({},v,t.linkPoints),O=w.fill,z=w.stroke,Z=w.lineWidth,J=w.size/2;J||(J=w.r);var re=t.linkPoints?t.linkPoints:{left:void 0,right:void 0,top:void 0,bottom:void 0},ue=re.left,Ee=re.right,Ie=re.top,Se=re.bottom,De=this.getSize(t),$e=De[0],ft={r:J,fill:O,stroke:z,lineWidth:Z},rt=null,wt=$e*Math.sin(1/3*Math.PI),Ft=$e*Math.sin(1/3*Math.PI);i==="up"?rt=[-Ft,wt]:i==="down"?rt=[-Ft,-wt]:i==="left"&&(rt=[-Ft,Ft-wt]),rt&&(o?!ue&&ue!==void 0?(o.remove(),delete e.shapeMap["link-point-left"]):o.attr((0,T.__assign)((0,T.__assign)({},ft),{x:rt[0],y:rt[1]})):ue&&(e.shapeMap["link-point-left"]=e.addShape("circle",{attrs:(0,T.__assign)((0,T.__assign)({},ft),{x:rt[0],y:rt[1]}),className:"link-point-left",name:"link-point-left",isAnchorPoint:!0})));var Er=null;i==="up"?Er=[Ft,wt]:i==="down"?Er=[Ft,-wt]:i==="right"&&(Er=[Ft,Ft-wt]),Er&&(u?!Ee&&Ee!==void 0?(u.remove(),delete e.shapeMap["link-point-right"]):u.attr((0,T.__assign)((0,T.__assign)({},ft),{x:Er[0],y:Er[1]})):Ee&&(e.shapeMap["link-point-right"]=e.addShape("circle",{attrs:(0,T.__assign)((0,T.__assign)({},ft),{x:Er[0],y:Er[1]}),className:"link-point-right",name:"link-point-right",isAnchorPoint:!0})));var dr=null;i==="up"?dr=[Ft-wt,-wt]:i==="left"?dr=[Ft,-wt]:i==="right"&&(dr=[-Ft,-wt]),dr&&(f?!Ie&&Ie!==void 0?(f.remove(),delete e.shapeMap["link-point-top"]):f.attr((0,T.__assign)((0,T.__assign)({},ft),{x:dr[0],y:dr[1]})):Ie&&(e.shapeMap["link-point-top"]=e.addShape("circle",{attrs:(0,T.__assign)((0,T.__assign)({},ft),{x:dr[0],y:dr[1]}),className:"link-point-top",name:"link-point-top",isAnchorPoint:!0})));var vr=null;i==="down"?vr=[-Ft+wt,wt]:i==="left"?vr=[Ft,wt]:i==="right"&&(vr=[-Ft,wt]),vr&&(c?!Se&&Se!==void 0?(c.remove(),delete e.shapeMap["link-point-bottom"]):c.attr((0,T.__assign)((0,T.__assign)({},ft),{x:vr[0],y:vr[1]})):Se&&(e.shapeMap["link-point-bottom"]=e.addShape("circle",{attrs:(0,T.__assign)((0,T.__assign)({},ft),{x:vr[0],y:vr[1]}),className:"link-point-bottom",name:"link-point-bottom",isAnchorPoint:!0})))}},"single-node"),fs("modelRect",{options:{size:[185,70],style:{radius:5,stroke:"#69c0ff",fill:"#ffffff",lineWidth:Zr.defaultNode.style.lineWidth,fillOpacity:1},labelCfg:{style:{fill:"#595959",fontSize:14,fontFamily:Zr.windowFontFamily},offset:30},descriptionCfg:{style:{fontSize:12,fill:"#bfbfbf",fontFamily:Zr.windowFontFamily},paddingTop:0},preRect:{show:!0,width:4,fill:"#40a9ff",radius:2},linkPoints:{top:!1,right:!1,bottom:!1,left:!1,size:10,lineWidth:1,fill:"#72CC4A",stroke:"#72CC4A"},logoIcon:{show:!0,x:0,y:0,img:"https://gw.alipayobjects.com/zos/basement_prod/4f81893c-1806-4de4-aff3-9a6b266bc8a2.svg",width:16,height:16,offset:0},stateIcon:{show:!0,x:0,y:0,img:"https://gw.alipayobjects.com/zos/basement_prod/300a2523-67e0-4cbf-9d4a-67c077b40395.svg",width:16,height:16,offset:-5},anchorPoints:[[0,.5],[1,.5]]},shapeType:"modelRect",drawShape:function(t,e){var r=(this.mergeStyle||this.getOptions(t)).preRect,n=r===void 0?{}:r,a=this.getShapeStyle(t),i=this.getSize(t),o=i[0],u=i[1],f=e.addShape("rect",{attrs:a,className:"".concat(this.type,"-keyShape"),name:"".concat(this.type,"-keyShape"),draggable:!0});e.shapeMap["".concat(this.type,"-keyShape")]=f;var c=n.show,v=(0,T.__rest)(n,["show"]);return c&&(e.shapeMap["pre-rect"]=e.addShape("rect",{attrs:(0,T.__assign)({x:-o/2,y:-u/2,height:u},v),className:"pre-rect",name:"pre-rect",draggable:!0})),this.drawLogoIcon(t,e),this.drawStateIcon(t,e),this.drawLinkPoints(t,e),f},drawLogoIcon:function(t,e){var r=(this.mergeStyle||this.getOptions(t)).logoIcon,n=r===void 0?{}:r,a=this.getSize(t),i=a[0];if(n.show){var o=n.width,u=n.height,f=n.x,c=n.y,v=n.offset,I=n.text,w=(0,T.__rest)(n,["width","height","x","y","offset","text"]);I?e.shapeMap["rect-logo-icon"]=e.addShape("text",{attrs:(0,T.__assign)({x:0,y:0,fontSize:12,fill:"#000",stroke:"#000",textBaseline:"middle",textAlign:"center"},w),className:"rect-logo-icon",name:"rect-logo-icon",draggable:!0}):e.shapeMap["rect-logo-icon"]=e.addShape("image",{attrs:(0,T.__assign)((0,T.__assign)({},w),{x:f||-i/2+o+v,y:c||-u/2,width:o,height:u}),className:"rect-logo-icon",name:"rect-logo-icon",draggable:!0})}},drawStateIcon:function(t,e){var r=(this.mergeStyle||this.getOptions(t)).stateIcon,n=r===void 0?{}:r,a=this.getSize(t),i=a[0];if(n.show){var o=n.width,u=n.height,f=n.x,c=n.y,v=n.offset,I=n.text,w=(0,T.__rest)(n,["width","height","x","y","offset","text"]);I?e.shapeMap["rect-state-icon"]=e.addShape("text",{attrs:(0,T.__assign)({x:0,y:0,fontSize:12,fill:"#000",stroke:"#000",textBaseline:"middle",textAlign:"center"},w),className:"rect-state-icon",name:"rect-state-icon",draggable:!0}):e.shapeMap["rect-state-icon"]=e.addShape("image",{attrs:(0,T.__assign)((0,T.__assign)({},w),{x:f||i/2-o+v,y:c||-u/2,width:o,height:u}),className:"rect-state-icon",name:"rect-state-icon",draggable:!0})}},drawLinkPoints:function(t,e){var r=(this.mergeStyle||this.getOptions(t)).linkPoints,n=r===void 0?{}:r,a=n.top,i=n.left,o=n.right,u=n.bottom,f=n.size,c=n.r,v=(0,T.__rest)(n,["top","left","right","bottom","size","r"]),I=this.getSize(t),w=I[0],O=I[1];i&&(e.shapeMap["link-point-left"]=e.addShape("circle",{attrs:(0,T.__assign)((0,T.__assign)({},v),{x:-w/2,y:0,r:f/2||c||5}),className:"link-point-left",name:"link-point-left",isAnchorPoint:!0})),o&&(e.shapeMap["link-point-right"]=e.addShape("circle",{attrs:(0,T.__assign)((0,T.__assign)({},v),{x:w/2,y:0,r:f/2||c||5}),className:"link-point-right",name:"link-point-right",isAnchorPoint:!0})),a&&(e.shapeMap["link-point-top"]=e.addShape("circle",{attrs:(0,T.__assign)((0,T.__assign)({},v),{x:0,y:-O/2,r:f/2||c||5}),className:"link-point-top",name:"link-point-top",isAnchorPoint:!0})),u&&(e.shapeMap["link-point-bottom"]=e.addShape("circle",{attrs:(0,T.__assign)((0,T.__assign)({},v),{x:0,y:O/2,r:f/2||c||5}),className:"link-point-bottom",name:"link-point-bottom",isAnchorPoint:!0}))},drawLabel:function(t,e){var r=this.getOptions(t),n=r.labelCfg,a=n===void 0?{}:n,i=r.logoIcon,o=i===void 0?{}:i,u=r.descriptionCfg,f=u===void 0?{}:u,c=this.getSize(t),v=c[0],I=null,w=o.show,O=o.width,z=-v/2+a.offset;w&&(z=-v/2+O+a.offset);var Z=a.style,J=f.style,re=f.paddingTop;return(0,M.isString)(t.description)?(I=e.addShape("text",{attrs:(0,T.__assign)((0,T.__assign)({},Z),{x:z,y:-5,text:t.label}),className:"text-shape",name:"text-shape",draggable:!0,labelRelated:!0}),e.shapeMap["text-shape"]=I,e.shapeMap["rect-description"]=e.addShape("text",{attrs:(0,T.__assign)((0,T.__assign)({},J),{x:z,y:17+(re||0),text:t.description}),className:"rect-description",name:"rect-description",draggable:!0,labelRelated:!0})):(I=e.addShape("text",{attrs:(0,T.__assign)((0,T.__assign)({},Z),{x:z,y:7,text:t.label}),className:"text-shape",name:"text-shape",draggable:!0,labelRelated:!0}),e.shapeMap["text-shape"]=I),I},getShapeStyle:function(t){var e=(this.mergeStyle||this.getOptions(t)).style,r={stroke:t.color},n=(0,M.mix)({},e,r),a=this.getSize(t),i=n.width||a[0],o=n.height||a[1],u=(0,T.__assign)({x:-i/2,y:-o/2,width:i,height:o},n);return u},update:function(t,e){var r=this.mergeStyle||this.getOptions(t),n=r.style,a=n===void 0?{}:n,i=r.labelCfg,o=i===void 0?{}:i,u=r.descriptionCfg,f=u===void 0?{}:u,c=this.getSize(t),v=c[0],I=c[1],w=e.get("keyShape");w.attr((0,T.__assign)((0,T.__assign)({},a),{x:-v/2,y:-I/2,width:v,height:I}));var O=e.getContainer(),z=O.shapeMap["rect-logo-icon"]||O.find(function(Ln){return Ln.get("className")==="rect-logo-icon"}),Z=z?z.attr():{},J=(0,M.mix)({},Z,t.logoIcon),re=J.width;re===void 0&&(re=this.options.logoIcon.width);var ue=t.logoIcon?t.logoIcon.show:void 0,Ee=o.offset,Ie=-v/2+re+Ee;!ue&&ue!==void 0&&(Ie=-v/2+Ee);var Se=O.shapeMap["node-label"]||O.find(function(Ln){return Ln.get("className")==="node-label"}),De=O.shapeMap["rect-description"]||O.find(function(Ln){return Ln.get("className")==="rect-description"});if(t.label)if(!Se)O.shapeMap["node-label"]=O.addShape("text",{attrs:(0,T.__assign)((0,T.__assign)({},o.style),{x:Ie,y:t.description?-5:7,text:t.label}),className:"node-label",name:"node-label",draggable:!0,labelRelated:!0});else{var $e=t.labelCfg?t.labelCfg.style:{},ft=(0,M.mix)({},Se.attr(),$e);t.label&&(ft.text=t.label),ft.x=Ie,(0,M.isString)(t.description)&&(ft.y=-5),De&&(De.resetMatrix(),De.attr({x:Ie})),Se.resetMatrix(),Se.attr(ft)}if((0,M.isString)(t.description)){var rt=f.paddingTop;if(!De)O.shapeMap["rect-description"]=O.addShape("text",{attrs:(0,T.__assign)((0,T.__assign)({},f.style),{x:Ie,y:17+(rt||0),text:t.description}),className:"rect-description",name:"rect-description",draggable:!0,labelRelated:!0});else{var $e=t.descriptionCfg?t.descriptionCfg.style:{},wt=(0,M.mix)({},De.attr(),$e);(0,M.isString)(t.description)&&(wt.text=t.description),wt.x=Ie,De.resetMatrix(),De.attr((0,T.__assign)((0,T.__assign)({},wt),{y:17+(rt||0)}))}}var Ft=O.shapeMap["pre-rect"]||O.find(function(Ln){return Ln.get("className")==="pre-rect"});if(Ft&&!Ft.destroyed){var Er=(0,M.mix)({},Ft.attr(),t.preRect);Ft.attr((0,T.__assign)((0,T.__assign)({},Er),{x:-v/2,y:-I/2,height:I}))}if(z&&!z.destroyed)if(!ue&&ue!==void 0)z.remove(),delete O.shapeMap["pre-rect"];else{var dr=J.width,vr=J.height,qt=J.x,Fr=J.y,kr=J.offset,or=(0,T.__rest)(J,["width","height","x","y","offset"]);z.attr((0,T.__assign)((0,T.__assign)({},or),{x:qt||-v/2+dr+kr,y:Fr||-vr/2,width:dr,height:vr}))}else ue&&this.drawLogoIcon(t,O);var _r=O.shapeMap["rect-state-icon"]||O.find(function(Ln){return Ln.get("className")==="rect-state-icon"}),Gr=_r?_r.attr():{},Ur=(0,M.mix)({},Gr,t.stateIcon);if(_r){!Ur.show&&Ur.show!==void 0&&(_r.remove(),delete O.shapeMap["rect-state-icon"]);var rn=Ur.width,vr=Ur.height,qt=Ur.x,Fr=Ur.y,hn=Ur.offset,oa=(0,T.__rest)(Ur,["width","height","x","y","offset"]);_r.attr((0,T.__assign)((0,T.__assign)({},oa),{x:qt||v/2-rn+hn,y:Fr||-vr/2,width:rn,height:vr}))}else Ur.show&&this.drawStateIcon(t,O);this.updateLinkPoints(t,O)},getOptions:function(t,e){return e==="move"?t:(0,M.deepMix)({},this.options,this.getCustomConfig(t)||{},t)}},"single-node"),fs("star",{options:{size:60,style:{stroke:Zr.defaultNode.style.stroke,fill:Zr.defaultNode.style.fill,lineWidth:Zr.defaultNode.style.lineWidth},labelCfg:{style:{fill:Zr.nodeLabel.style.fill,fontSize:Zr.nodeLabel.style.fontSize,fontFamily:Zr.windowFontFamily}},linkPoints:{top:!1,right:!1,bottom:!1,left:!1,size:Zr.defaultNode.linkPoints.size,lineWidth:Zr.defaultNode.linkPoints.lineWidth,fill:Zr.defaultNode.linkPoints.fill,stroke:Zr.defaultNode.linkPoints.stroke},icon:{show:!1,img:"https://gw.alipayobjects.com/zos/bmw-prod/5d015065-8505-4e7a-baec-976f81e3c41d.svg",width:20,height:20},stateStyles:(0,T.__assign)({},Zr.nodeStateStyles)},shapeType:"star",labelPosition:"center",drawShape:function(t,e){var r=(this.mergeStyle||this.getOptions(t)).icon,n=r===void 0?{}:r,a=this.getShapeStyle(t),i=e.addShape("path",{attrs:a,className:"".concat(this.type,"-keyShape"),name:"".concat(this.type,"-keyShape"),draggable:!0});e.shapeMap["".concat(this.type,"-keyShape")]=i;var o=n.width,u=n.height,f=n.show,c=n.text;return f&&(c?e.shapeMap["".concat(this.type,"-icon")]=e.addShape("text",{attrs:(0,T.__assign)({x:0,y:0,fontSize:12,fill:"#000",stroke:"#000",textBaseline:"middle",textAlign:"center"},n),className:"".concat(this.type,"-icon"),name:"".concat(this.type,"-icon"),draggable:!0}):e.shapeMap["".concat(this.type,"-icon")]=e.addShape("image",{attrs:(0,T.__assign)({x:-o/2,y:-u/2},n),className:"".concat(this.type,"-icon"),name:"".concat(this.type,"-icon"),draggable:!0})),this.drawLinkPoints(t,e),i},drawLinkPoints:function(t,e){var r=(this.mergeStyle||this.getOptions(t)).linkPoints,n=r===void 0?{}:r,a=n.top,i=n.left,o=n.right,u=n.leftBottom,f=n.rightBottom,c=n.size,v=n.r,I=(0,T.__rest)(n,["top","left","right","leftBottom","rightBottom","size","r"]),w=this.getSize(t),O=w[0];if(o){var z=Math.cos((18+72*0)/180*Math.PI)*O,Z=Math.sin((18+72*0)/180*Math.PI)*O;e.shapeMap["link-point-right"]=e.addShape("circle",{attrs:(0,T.__assign)((0,T.__assign)({},I),{x:z,y:-Z,r:c/2||v||5}),className:"link-point-right",name:"link-point-right"})}if(a){var z=Math.cos((18+72*1)/180*Math.PI)*O,Z=Math.sin((18+72*1)/180*Math.PI)*O;e.shapeMap["link-point-top"]=e.addShape("circle",{attrs:(0,T.__assign)((0,T.__assign)({},I),{x:z,y:-Z,r:c/2||v||5}),className:"link-point-top",name:"link-point-top"})}if(i){var z=Math.cos((18+72*2)/180*Math.PI)*O,Z=Math.sin((18+72*2)/180*Math.PI)*O;e.shapeMap["link-point-left"]=e.addShape("circle",{attrs:(0,T.__assign)((0,T.__assign)({},I),{x:z,y:-Z,r:c/2||v||5}),className:"link-point-left",name:"link-point-left"})}if(u){var z=Math.cos((18+72*3)/180*Math.PI)*O,Z=Math.sin((18+72*3)/180*Math.PI)*O;e.shapeMap["link-point-bottom"]=e.addShape("circle",{attrs:(0,T.__assign)((0,T.__assign)({},I),{x:z,y:-Z,r:c/2||v||5}),className:"link-point-left-bottom",name:"link-point-left-bottom"})}if(f){var z=Math.cos((18+72*4)/180*Math.PI)*O,Z=Math.sin((18+72*4)/180*Math.PI)*O;e.shapeMap["link-point-right-bottom"]=e.addShape("circle",{attrs:(0,T.__assign)((0,T.__assign)({},I),{x:z,y:-Z,r:c/2||v||5}),className:"link-point-right-bottom",name:"link-point-right-bottom"})}},getPath:function(t){var e=this.getSize(t),r=e[0],n=r*3/8,a=t.innerR||n;return Vi.getStarPath(r,a)},getShapeStyle:function(t){var e=(this.mergeStyle||this.getOptions(t)).style,r={stroke:t.color},n=(0,M.mix)({},e,r),a=this.getPath(t),i=(0,T.__assign)({path:a},n);return i},update:function(t,e,r){var n=e.getContainer(),a=this.getOptions({}).style,i=this.getPath(t),o={stroke:t.color,path:i},u=e.get("keyShape"),f=(0,M.mix)({},a,u.attr(),o);f=(0,M.mix)(f,t.style),this.updateShape(t,e,f,!0,r),this.updateLinkPoints(t,n)},updateLinkPoints:function(t,e){var r=this.getOptions({}).linkPoints,n=e.shapeMap["link-point-left"]||e.find(function(wt){return wt.get("className")==="link-point-left"}),a=e.shapeMap["link-point-right"]||e.find(function(wt){return wt.get("className")==="link-point-right"}),i=e.shapeMap["link-point-top"]||e.find(function(wt){return wt.get("className")==="link-point-top"}),o=e.shapeMap["link-point-left-bottom"]||e.find(function(wt){return wt.get("className")==="link-point-left-bottom"}),u=e.shapeMap["link-point-left-bottom"]||e.find(function(wt){return wt.get("className")==="link-point-right-bottom"}),f=r,c=n||a||i||o||u;c&&(f=c.attr());var v=(0,M.mix)({},f,t.linkPoints),I=v.fill,w=v.stroke,O=v.lineWidth,z=v.size/2;z||(z=v.r);var Z=t.linkPoints?t.linkPoints:{left:void 0,right:void 0,top:void 0,leftBottom:void 0,rightBottom:void 0},J=Z.left,re=Z.right,ue=Z.top,Ee=Z.leftBottom,Ie=Z.rightBottom,Se=this.getSize(t),De=Se[0],$e={r:z,fill:I,stroke:w,lineWidth:O},ft=Math.cos((18+72*0)/180*Math.PI)*De,rt=Math.sin((18+72*0)/180*Math.PI)*De;a?!re&&re!==void 0?(a.remove(),delete e.shapeMap["link-point-right"]):a.attr((0,T.__assign)((0,T.__assign)({},$e),{x:ft,y:-rt})):re&&(e.shapeMap["link-point-right"]=e.addShape("circle",{attrs:(0,T.__assign)((0,T.__assign)({},$e),{x:ft,y:-rt}),className:"link-point-right",name:"link-point-right",isAnchorPoint:!0})),ft=Math.cos((18+72*1)/180*Math.PI)*De,rt=Math.sin((18+72*1)/180*Math.PI)*De,i?!ue&&ue!==void 0?(i.remove(),delete e.shapeMap["link-point-top"]):i.attr((0,T.__assign)((0,T.__assign)({},$e),{x:ft,y:-rt})):ue&&(e.shapeMap["link-point-top"]=e.addShape("circle",{attrs:(0,T.__assign)((0,T.__assign)({},$e),{x:ft,y:-rt}),className:"link-point-top",name:"link-point-top",isAnchorPoint:!0})),ft=Math.cos((18+72*2)/180*Math.PI)*De,rt=Math.sin((18+72*2)/180*Math.PI)*De,n?!J&&J!==void 0?(n.remove(),delete e.shapeMap["link-point-left"]):n.attr((0,T.__assign)((0,T.__assign)({},$e),{x:ft,y:-rt})):J&&(e.shapeMap["link-point-left"]=e.addShape("circle",{attrs:(0,T.__assign)((0,T.__assign)({},$e),{x:ft,y:-rt}),className:"link-point-left",name:"link-point-left",isAnchorPoint:!0})),ft=Math.cos((18+72*3)/180*Math.PI)*De,rt=Math.sin((18+72*3)/180*Math.PI)*De,o?!Ee&&Ee!==void 0?(o.remove(),delete e.shapeMap["link-point-left-bottom"]):o.attr((0,T.__assign)((0,T.__assign)({},$e),{x:ft,y:-rt})):Ee&&(e.shapeMap["link-point-left-bottom"]=e.addShape("circle",{attrs:(0,T.__assign)((0,T.__assign)({},$e),{x:ft,y:-rt}),className:"link-point-left-bottom",name:"link-point-left-bottom",isAnchorPoint:!0})),ft=Math.cos((18+72*4)/180*Math.PI)*De,rt=Math.sin((18+72*4)/180*Math.PI)*De,u?!Ie&&Ie!==void 0?(u.remove(),delete e.shapeMap["link-point-right-bottom"]):u.attr((0,T.__assign)((0,T.__assign)({},$e),{x:ft,y:-rt})):Ie&&(e.shapeMap["link-point-right-bottom"]=e.addShape("circle",{attrs:(0,T.__assign)((0,T.__assign)({},$e),{x:ft,y:-rt}),className:"link-point-right-bottom",name:"link-point-right-bottom",isAnchorPoint:!0}))}},"single-node");var Yd=Vi.defaultSubjectColors,kl="fan-shape-";fs("donut",{options:{size:Zr.defaultNode.size,style:{x:0,y:0,stroke:Zr.defaultNode.style.stroke,fill:Zr.defaultNode.style.fill,lineWidth:Zr.defaultNode.style.lineWidth},labelCfg:{style:{fill:Zr.nodeLabel.style.fill,fontSize:Zr.nodeLabel.style.fontSize,fontFamily:Zr.windowFontFamily}},linkPoints:{top:!1,right:!1,bottom:!1,left:!1,size:Zr.defaultNode.linkPoints.size,lineWidth:Zr.defaultNode.linkPoints.lineWidth,fill:Zr.defaultNode.linkPoints.fill,stroke:Zr.defaultNode.linkPoints.stroke},icon:{show:!1,img:"https://gw.alipayobjects.com/zos/bmw-prod/5d015065-8505-4e7a-baec-976f81e3c41d.svg",width:20,height:20},stateStyles:(0,T.__assign)({},Zr.nodeStateStyles)},shapeType:"circle",labelPosition:"center",drawShape:function(t,e){var r=(this.mergeStyle||this.getOptions(t)).icon,n=r===void 0?{}:r,a=this.getShapeStyle(t),i=(0,M.deepMix)({},n,t.icon),o=e.addShape("circle",{attrs:a,className:"".concat(this.type,"-keyShape"),draggable:!0,name:"".concat(this.type,"-keyShape")});e.shapeMap["".concat(this.type,"-keyShape")]=o;var u=i.width,f=i.height,c=i.show,v=i.text;return c&&(v?e.shapeMap["".concat(this.type,"-icon")]=e.addShape("text",{attrs:(0,T.__assign)({x:0,y:0,fontSize:12,fill:"#000",stroke:"#000",textBaseline:"middle",textAlign:"center"},i),className:"".concat(this.type,"-icon"),name:"".concat(this.type,"-icon"),draggable:!0}):e.shapeMap["".concat(this.type,"-icon")]=e.addShape("image",{attrs:(0,T.__assign)({x:-u/2,y:-f/2},i),className:"".concat(this.type,"-icon"),name:"".concat(this.type,"-icon"),draggable:!0})),vg(t,e,o),this.drawLinkPoints(t,e),o},updateShape:function(t,e,r,n,a){var i=e.get("keyShape");i.attr((0,T.__assign)({},r)),hg(t,e,i),this.updateLabel(t,e,a),n&&this.updateIcon(t,e)}},"circle");var vg=function(t,e,r){var n=t.donutAttrs,a=n===void 0?{}:n,i=t.donutColorMap,o=i===void 0?{}:i,u=Object.keys(a).length;if(a&&u>1){var f=Hd(a,o),c=f.configs,v=f.totalValue;if(v){var I=Zd(r),w=I.lineWidth,O=I.arcR,z=[O,0],Z=0;if(u===1){gd(e,{arcR:O,arcBegin:z,beginAngle:Z,config:c[0],fanIndex:0,lineWidth:w,totalValue:v,drawWhole:!0});return}for(var J=0;J.999)z=[r,1e-4],J=1;else{var re=O*Math.PI*2;Z=a+re,z=[r*Math.cos(Z),-r*Math.sin(Z)],J=re>Math.PI?1:0}var ue={path:[["M",n[0],n[1]],["A",r,r,0,J,0,z[0],z[1]]],stroke:i.color||(w==null?void 0:w.attr("stroke"))||Yd[o%Yd.length],lineWidth:u};return w?w.attr(ue):t.shapeMap["".concat(kl).concat(o)]=t.addShape("path",{attrs:ue,name:"".concat(kl).concat(o),draggable:!0}),{beginAngle:Z,arcBegin:z,shape:t.shapeMap["".concat(kl).concat(o)],shouldEnd:v||O>.999}},hg=function(t,e,r){var n=t.donutAttrs,a=t.donutColorMap,i=a===void 0?{}:a,o={},u=e.getContainer();if(n){var f=Hd(n,i),c=f.configs,v=f.totalValue;if(v)for(var I=Zd(r),w=I.lineWidth,O=I.arcR,z=[O,0],Z=0,J=0;J=0;a--){var i=t[a];i.id="".concat(i.x,"|||").concat(i.y),r[i.id]||(r[i.id]=i,e.push(i))}return e},Kd=function(t){return pd(t)},Hp=function(t,e){return[t,{x:t.x,y:e.y},e]},Yl=function(t,e){return t.width||t.height?{centerX:t.centerX,centerY:t.centerY,minX:t.minX-e,minY:t.minY-e,maxX:t.maxX+e,maxY:t.maxY+e,height:t.height+2*e,width:t.width+2*e}:t},pg=function(t,e){var r=Math.abs(t.x-e.centerX),n=Math.abs(t.y-e.centerY);return r===0&&n===0?0:r/e.width>n/e.height},yd=function(t,e,r){var n=pg(e,t);if(n===0){var a=t.centerX,i=t.centerY;return r.ye.x?a=t.maxX:r.xt.centerX?t.maxX:t.minX,y:e.y}:{x:e.x,y:e.y>t.centerY?t.maxY:t.minY}},$d=function(t,e){var r=Math.min(t.minX,e.minX),n=Math.min(t.minY,e.minY),a=Math.max(t.maxX,e.maxX),i=Math.max(t.maxY,e.maxY);return{centerX:(r+a)/2,centerY:(n+i)/2,minX:r,minY:n,maxX:a,maxY:i,height:i-n,width:a-r}},md=function(t){return[{x:t.minX,y:t.minY},{x:t.maxX,y:t.minY},{x:t.maxX,y:t.maxY},{x:t.minX,y:t.maxY}]},Hl=function(t,e){var r=t.x,n=t.y;return re.maxX||ne.maxY},yg=function(t,e){return et.maxX?[]:[{x:e,y:t.minY},{x:e,y:t.maxY}]},mg=function(t,e){return et.maxY?[]:[{x:t.minX,y:e},{x:t.maxX,y:e}]},Eg=function(t,e){return yg(t,e.x).concat(mg(t,e.y))},Rl=function(t,e){return Math.abs(t.x-e.x)+Math.abs(t.y-e.y)},bg=function(t,e){var r=-2,n=0;return e.forEach(function(a){a&&(t.x===a.x&&(n+=r),t.y===a.y&&(n+=r))}),n},Qd=function(t,e,r,n,a){return Rl(t,e)+Rl(t,r)+bg(t,[e,r,n,a])},xg=function s(t,e,r,n,a){a===void 0&&(a=0),t.unshift(e[n]),r[n]&&r[n]!==n&&a<=100&&s(t,e,r,r[n],a+1)},Zp=function(t,e){var r=t.indexOf(e);r>-1&&t.splice(r,1)},Zl=function(t,e,r,n){var a=r.x-t.x,i=r.y-t.y,o=n.x-t.x,u=n.y-t.y,f=r.x-e.x,c=r.y-e.y,v=n.x-e.x,I=n.y-e.y,w=a*u-i*o,O=f*I-c*v,z=a*c-i*f,Z=o*I-u*v;return w*O<=0&&z*Z<=0},Ed=function(t,e,r){if(r.width||r.height){var n=md(r),a=n[0],i=n[1],o=n[2],u=n[3];return Zl(t,e,a,i)||Zl(t,e,a,u)||Zl(t,e,i,o)||Zl(t,e,o,u)}return!1},wg=function(t,e,r,n){var a=[];return t.forEach(function(i){if(i!==e&&(i.x===e.x||i.y===e.y)){if(Ed(i,e,r)||Ed(i,e,n))return;a.push(i)}}),pd(a)},_g=function(t,e,r,n,a,i,o){var u,f=[],c=(u={},u[e.id]=e,u),v={},I={},w={};I[e.id]=0,w[e.id]=Qd(e,r,e);var O=new ev;O.add({id:e.id,value:w[e.id]});var z={};t.forEach(function(Ie){z[Ie.id]=Ie});for(var Z;Object.keys(c).length;){var J=O.minId(!1);if(J)Z=c[J];else break;if(Z===r){var re=[];return xg(re,z,v,r.id),re}delete c[Z.id],O.remove(Z.id),f.push(Z);var ue=wg(t,Z,n,a),Ee=function(Se){Se.forEach(function(De){if(f.indexOf(De)===-1){var $e=De.id;c[$e]||(c[$e]=De);var ft=w[Z.id]+Rl(Z,De);if(I[$e]&&ft>=I[$e]){O.add({id:$e,value:w[$e]});return}v[$e]=Z.id,I[$e]=ft,w[$e]=I[$e]+Qd(De,r,e,i,o),O.add({id:$e,value:w[$e]})}})};Ee(ue)}return[e,r]},Sg=function(t,e,r){return!(t.x===e.x&&e.x===r.x||t.y===e.y&&e.y===r.y)},Mg=function(t,e,r,n){var a=Rl(t,e),i=Rl(r,e);a=0;i--){var o=t[i];if(o.x===r.x?n.push(o):(n=[o],r.x=o.x),o.y===r.y?a.push(o):(a=[o],r.y=o.y),n.length>2){var u=t.indexOf(n[1]);u>-1&&t.splice(u,1);continue}if(a.length>2){var u=t.indexOf(a[1]);u>-1&&t.splice(u,1)}}return t},ev=function(){function s(){this.arr=[],this.map={},this.arr=[],this.map={}}return s.prototype._innerAdd=function(t,e){for(var r=[0,e-1];r[1]-r[0]>1;){var n=Math.floor((r[0]+r[1])/2);if(this.arr[n].value>t.value)r[1]=n;else if(this.arr[n].value=0;e--)this.map[this.arr[e].id]?t=this.arr[e].id:this.arr.splice(e,1);return t},s.prototype._findFirstId=function(){for(;this.arr.length;){var t=this.arr.shift();if(this.map[t.id])return t.id}},s.prototype.minId=function(t){return t?this._clearAndGetMinId():this._findFirstId()},s}(),Tg=function(t,e){return Math.abs(t.x-e.x)+Math.abs(t.y-e.y)},Ig=function(t,e){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))},Ag=function(t,e){return[t,e]},Og=function(t,e,r,n,a){return Kd(Jd(t,e,r,n,a.offset))},Lg={offset:20,maxAllowedDirectionChange:Math.PI/2,maximumLoops:2e3,gridSize:10,directions:[{stepX:1,stepY:0},{stepX:-1,stepY:0},{stepX:0,stepY:1},{stepX:0,stepY:-1}],get penalties(){return{0:0,45:this.gridSize/2,90:this.gridSize/2}},distFunc:Tg,fallbackRoute:Og},Kp={maxAllowedDirectionChange:Math.PI/4,directions:[{stepX:1,stepY:0},{stepX:1,stepY:1},{stepX:0,stepY:1},{stepX:-1,stepY:1},{stepX:-1,stepY:0},{stepX:-1,stepY:-1},{stepX:0,stepY:-1},{stepX:1,stepY:-1}],distFunc:Ig,fallbackRoute:Ag},Af=function(t,e){var r=Math.round(Math.abs(t/e)),n=t<0?-1:1;return r<0?0:n*r},Dg=function(t,e,r){var n={};return t.forEach(function(a){if(!!a)for(var i=Yl(a.getBBox(),r),o=Af(i.minX,e);o<=Af(i.maxX,e);o+=1)for(var u=Af(i.minY,e);u<=Af(i.maxY,e);u+=1)n["".concat(o,"|||").concat(u)]=!0}),n},bd=function(t,e){var r=e.x-t.x,n=e.y-t.y;return r||n?Math.atan2(n,r):0},tv=function(t,e){var r=Math.abs(t-e);return r>Math.PI?2*Math.PI-r:r},rv=function(t,e,r){for(var n=Infinity,a=0,i=e.length;af.minX&&e.xf.minY&&e.y0&&Se>0;){var vr=ue.minId((Se+1)%30==0);if(vr)De=O[vr];else break;if(dr["".concat(De.x,"|||").concat(De.y)])return Ng(De,Z,c,e,t,v,u);delete O[De.id],ue.remove(De.id),z[De.id]=!0;for(var Ee=0;Eei.maxAllowedDirectionChange)&&!f[qt])){O[qt]||(O[qt]=ft);var Fr=o[Ft];rt=i.distFunc(De,ft)+(isNaN(Fr)?u:Fr),wt=J[De.id]+rt;var kr=J[qt];kr&&wt>=kr||(Z[qt]=De,J[qt]=wt,re[qt]=wt+rv(ft,w,i.distFunc),ue.add({id:qt,value:re[qt]}))}}Se-=1}return i.fallbackRoute(t,e,r,n,i)};nf("polyline",{options:{color:Zr.defaultEdge.color,size:Zr.defaultEdge.size,style:{radius:0,offset:15,x:0,y:0,stroke:Zr.defaultEdge.style.stroke,lineAppendWidth:Zr.defaultEdge.style.lineAppendWidth},labelCfg:{style:{fill:Zr.edgeLabel.style.fill,fontSize:Zr.edgeLabel.style.fontSize,fontFamily:Zr.windowFontFamily}},routeCfg:{obstacles:[],maxAllowedDirectionChange:Math.PI,maximumLoops:500,gridSize:10},stateStyles:(0,T.__assign)({},Zr.edgeStateStyles)},shapeType:"polyline",labelPosition:"center",drawShape:function(t,e){var r=this.getShapeStyle(t);r.radius===0&&delete r.radius;var n=e.addShape("path",{className:"edge-shape",name:"edge-shape",attrs:r});return e.shapeMap["edge-shape"]=n,n},getShapeStyle:function(t){var e=this.options.style,r={stroke:t.color},n=(0,M.mix)({},e,r,t.style);t=this.getPathPoints(t),this.radius=n.radius,this.offset=n.offset;var a=t.startPoint,i=t.endPoint,o=this.getControlPoints(t),u=[a];o&&(u=u.concat(o)),u.push(i);var f=t.sourceNode,c=t.targetNode,v=n.radius,I=this.options.routeCfg,w=(0,M.mix)({},I,t.routeCfg);w.offset=n.offset;var O=this.getPath(u,f,c,v,w,!Boolean(o));((0,M.isArray)(O)&&O.length<=1||(0,M.isString)(O)&&O.indexOf("L")===-1)&&(O="M0 0, L0 0"),(isNaN(a.x)||isNaN(a.y)||isNaN(i.x)||isNaN(i.y))&&(O="M0 0, L0 0");var z=(0,M.mix)({},Zr.defaultEdge.style,n,{lineWidth:t.size,path:O});return z},updateShapeStyle:function(t,e){var r=e.getContainer();if(!!e.isVisible()){var n={stroke:t.color},a=r.shapeMap["edge-shape"]||r.find(function(Ee){return Ee.get("className")==="edge-shape"})||e.getKeyShape(),i=t.size;t=this.getPathPoints(t);var o=t.startPoint,u=t.endPoint,f=this.getControlPoints(t),c=[o];f&&(c=c.concat(f)),c.push(u);var v=a.attr(),I=(0,M.mix)({},n,v,t.style),w=t.sourceNode,O=t.targetNode,z=I.radius,Z=this.options.routeCfg,J=(0,M.mix)({},Z,t.routeCfg);J.offset=I.offset;var re=this.getPath(c,w,O,z,J,!Boolean(f));((0,M.isArray)(re)&&re.length<=1||(0,M.isString)(re)&&re.indexOf("L")===-1)&&(re="M0 0, L0 0"),(isNaN(o.x)||isNaN(o.y)||isNaN(u.x)||isNaN(u.y))&&(re="M0 0, L0 0"),v.endArrow&&I.endArrow===!1&&(t.style.endArrow={path:""}),v.startArrow&&I.startArrow===!1&&(t.style.startArrow={path:""});var ue=(0,M.mix)(n,a.attr(),{lineWidth:i,path:re},t.style);a&&a.attr(ue)}},getPath:function(t,e,r,n,a,i){var o=a.offset,u=a.obstacles,f=a.simple;if(!o||t.length>2||i===!1){if(n)return qd(t,n);var c=[];return(0,M.each)(t,function(O,z){z===0?c.push(["M",O.x,O.y]):c.push(["L",O.x,O.y])}),c}f!==!1&&!(u==null?void 0:u.length)&&(f=!0);var v=f?Jd(t[t.length-1],t[0],r,e,o):Pg(t[0],t[t.length-1],e,r,a);if(!v||!v.length)return"M0 0, L0 0";if(n){var I=qd(v,n);return I}v=Cg(v);var w=Vi.pointsToPolygon(v);return w}},"single-edge");var av=ci.cloneEvent,iv=ci.isNaN,ov=Math.abs,kg=10,Rg=["shift","ctrl","alt","control"],Bg={getDefaultCfg:function(){return{direction:"both",enableOptimize:!1,scalableRange:0,allowDragOnItem:!1}},getEvents:function(){return{mousedown:"onMouseDown",drag:"onDragMove",dragend:"onMouseUp","canvas:click":"onMouseUp",keyup:"onKeyUp",focus:"onKeyUp",keydown:"onKeyDown",touchstart:"onTouchStart",touchmove:"onTouchMove",touchend:"onMouseUp"}},updateViewport:function(t){var e=this.origin,r=+t.clientX,n=+t.clientY;if(!(iv(r)||iv(n))){var a=r-e.x,i=n-e.y;this.get("direction")==="x"?i=0:this.get("direction")==="y"&&(a=0),this.origin={x:r,y:n};var o=this.graph.get("width"),u=this.graph.get("height"),f=this.graph.get("canvas").getCanvasBBox(),c=this.scalableRange,v=this.scalableRange;c<1&&c>-1&&(c=o*c,v=u*v),(f.minX<=o+c&&f.minX+a>o+c||f.maxX+c>=0&&f.maxX+c+a<0)&&(a=0),(f.minY<=u+v&&f.minY+i>u+v||f.maxY+v>=0&&f.maxY+v+i<0)&&(i=0),this.graph.translate(a,i)}},onTouchStart:function(t){var e=this,r=t.originalEvent.touches,n=r[0],a=r[1];n&&a||(t.preventDefault(),this.mousedown=!0,e.onDragStart(t))},onMouseDown:function(t){this.mousedown=!0},onDragMove:function(t){!this.mousedown||(this.dragstart?this.onDrag(t):(this.dragstart=!0,this.onDragStart(t)))},onDragStart:function(t){var e=this,r=t.originalEvent;if(!(r&&t.name!=="touchstart"&&r.button!==0)&&!(t.name!=="touchstart"&&typeof window!="undefined"&&window.event&&!window.event.buttons&&!window.event.button)&&!!this.shouldBegin(t,this)&&!e.keydown&&!!this.allowDrag(t)){if(e.origin={x:t.clientX,y:t.clientY},e.dragging=!1,this.enableOptimize){for(var n=this.graph,a=n.getEdges(),i=0,o=a.length;iu)for(var w=n.getNodes(),O=0,z=w.length;O-1?e.keydown=!0:e.keydown=!1)},onKeyUp:function(){this.keydown=!1,this.origin=null,this.dragging=!1,this.dragbegin=!1},allowDrag:function(t){var e,r,n=t.target,a=n&&n.isCanvas&&n.isCanvas();if((0,M.isBoolean)(this.allowDragOnItem)&&!this.allowDragOnItem&&!a)return!1;if((0,M.isObject)(this.allowDragOnItem)){var i=this.allowDragOnItem,o=i.node,u=i.edge,f=i.combo,c=(r=(e=t.item)===null||e===void 0?void 0:e.getType)===null||r===void 0?void 0:r.call(e);if(!o&&c==="node"||!u&&c==="edge"||!f&&c==="combo")return!1}return!0}},Fg={getDefaultCfg:function(){return{updateEdge:!0,delegateStyle:{},enableDelegate:!1,onlyChangeComboSize:!1,comboActiveState:"",selectedState:"selected",enableOptimize:!1,enableDebounce:!1,enableStack:!0}},getEvents:function(){return{"node:mousedown":"onMouseDown",drag:"onDragMove",dragend:"onDragEnd","combo:dragenter":"onDragEnter","combo:dragleave":"onDragLeave","combo:drop":"onDropCombo","node:drop":"onDropNode","canvas:drop":"onDropCanvas",touchstart:"onTouchStart",touchmove:"onTouchMove",touchend:"onDragEnd",afterchangedata:"onDragEnd"}},validationCombo:function(t){if(!this.origin||!t||t.destroyed)return!1;var e=t.getType();return e==="combo"},onTouchStart:function(t){if(!!t.item){var e=this;try{var r=t.originalEvent.touches,n=r[0],a=r[1];if(n&&a)return;t.preventDefault()}catch(i){console.warn("Touch original event not exist!")}this.mousedown={item:t.item,target:t.target,origin:{x:t.x,y:t.y}},this.dragstart=!0,e.onDragStart(t)}},onTouchMove:function(t){var e=this;try{var r=t.originalEvent.touches,n=r[0],a=r[1];if(n&&a){e.onDragEnd(t);return}t.preventDefault()}catch(i){console.warn("Touch original event not exist!")}e.onDrag(t)},onMouseDown:function(t){this.mousedown={item:t.item,target:t.target,origin:{x:t.x,y:t.y}},typeof window!="undefined"&&!this.windowEventBinded&&(this.windowEventBinded=!0,document.body.addEventListener("contextmenu",this.onDragEnd.bind(this)),document.body.addEventListener("mouseup",this.onDragEnd.bind(this)))},onDragMove:function(t){var e,r;if(((r=(e=t.item)===null||e===void 0?void 0:e.getType)===null||r===void 0?void 0:r.call(e))!=="node"){this.onDragEnd();return}!this.mousedown||(this.dragstart?this.onDrag((0,T.__assign)((0,T.__assign)({},t),this.mousedown)):(this.dragstart=!0,this.onDragStart(t)))},onDragStart:function(t){var e=this;if(this.currentShouldEnd=!0,!!this.shouldBegin((0,T.__assign)((0,T.__assign)({},t),this.mousedown),this)){var r=this.mousedown,n=r.item,a=r.target;if(!(!n||n.destroyed||n.hasLocked())){var i=n.getContainer();if(i.set("capture",!1),this.cachedCaptureItems||(this.cachedCaptureItems=[]),this.cachedCaptureItems.push(n),a){var o=a.get("isAnchorPoint");if(o)return}var u=this.graph;this.targets=[],this.targetCombo=null;var f=u.findAllByState("node",this.selectedState),c=n.get("id"),v=f.filter(function(w){var O=w.get("id");return c===O});if(v.length===0?this.targets.push(n):f.length>1?f.forEach(function(w){var O=w.hasLocked();O||e.targets.push(w)}):this.targets.push(n),this.graph.get("enabledStack")&&this.enableStack){var I=[];this.targets.forEach(function(w){var O=w.getModel(),z=O.x,Z=O.y,J=O.id;I.push({x:z,y:Z,id:J})}),this.set("beforeDragNodes",I)}this.hidenEdge={},this.get("updateEdge")&&this.enableOptimize&&!this.enableDelegate&&this.targets.forEach(function(w){var O=w.getEdges();O.forEach(function(z){!z.isVisible()||(e.hidenEdge[z.getID()]=!0,z.hide())})}),this.origin=this.mousedown.origin,this.point={},this.originPoint={}}}},onDrag:function(t){var e=this;if(!(!this.mousedown||!this.origin)&&!!this.shouldUpdate(t,this))if(this.get("enableDelegate"))this.updateDelegate(t);else if(this.enableDebounce)this.debounceUpdate({targets:this.targets,graph:this.graph,point:this.point,origin:this.origin,evt:t,updateEdge:this.get("updateEdge"),onlyChangeComboSize:this.onlyChangeComboSize,updateParentCombos:this.updateParentCombos});else{var r={};this.targets.map(function(n){e.update(n,t);var a=n.getModel().comboId;a&&(r[a]=e.graph.findById(a))}),this.onlyChangeComboSize&&this.updateParentCombos()}},onDragEnd:function(t){var e=this,r;if(this.mousedown=!1,this.dragstart=!1,typeof window!="undefined"&&this.windowEventBinded&&(this.windowEventBinded=!1,document.body.removeEventListener("contextmenu",this.onDragEnd.bind(this)),document.body.removeEventListener("mouseup",this.onDragEnd.bind(this))),!!this.origin){(r=this.cachedCaptureItems)===null||r===void 0||r.forEach(function(i){var o=i.getContainer();o.set("capture",!0)}),this.cachedCaptureItems=[],this.delegateRect&&(this.delegateRect.remove(),this.delegateRect=null),this.get("updateEdge")&&this.enableOptimize&&!this.enableDelegate&&this.targets.forEach(function(i){var o=i.getEdges();o.forEach(function(u){e.hidenEdge[u.getID()]&&u.show(),u.refresh()})}),this.hidenEdge={};var n=this.graph;if(n.get("enabledStack")&&this.enableStack){var a={before:{nodes:[],edges:[],combos:[]},after:{nodes:[],edges:[],combos:[]}};this.get("beforeDragNodes").forEach(function(i){a.before.nodes.push(i)}),this.targets.forEach(function(i){var o=i.getModel(),u=o.x,f=o.y,c=o.id;a.after.nodes.push({x:u,y:f,id:c})}),n.pushStack("update",(0,M.clone)(a))}n.emit("dragnodeend",{items:this.targets,targetItem:null}),this.point={},this.origin=null,this.originPoint={},this.targets.length=0,this.targetCombo=null}},onDropCombo:function(t){var e=t.item;if(this.currentShouldEnd=this.shouldEnd(t,e,this),this.updatePositions(t,!this.currentShouldEnd),!(!this.currentShouldEnd||!this.validationCombo(e))){var r=this.graph;if(this.comboActiveState&&r.setItemState(e,this.comboActiveState,!1),this.targetCombo=e,this.onlyChangeComboSize)r.updateCombos();else{var n=e.getModel();this.targets.map(function(a){var i=a.getModel();i.comboId!==n.id&&r.updateComboTree(a,n.id)}),r.updateCombo(e)}r.emit("dragnodeend",{items:this.targets,targetItem:this.targetCombo})}},onDropCanvas:function(t){var e=this.graph;this.currentShouldEnd=this.shouldEnd(t,void 0,this),this.updatePositions(t,!this.currentShouldEnd),!(!this.targets||this.targets.length===0||!this.currentShouldEnd)&&(this.onlyChangeComboSize?this.updateParentCombos():this.targets.map(function(r){var n=r.getModel();n.comboId&&e.updateComboTree(r)}))},onDropNode:function(t){if(!(!this.targets||this.targets.length===0)){var e=this,r=t.item,n=e.graph,a=r.getModel().comboId,i=a?n.findById(a):void 0;if(this.currentShouldEnd=this.shouldEnd(t,i,this),this.updatePositions(t,!this.currentShouldEnd),!!this.currentShouldEnd){if(this.onlyChangeComboSize)this.updateParentCombos();else if(a){var o=n.findById(a);e.comboActiveState&&n.setItemState(o,e.comboActiveState,!1),this.targets.map(function(u){var f=u.getModel();a!==f.comboId&&n.updateComboTree(u,a)}),n.updateCombo(o)}else this.targets.map(function(u){var f=u.getModel();f.comboId&&n.updateComboTree(u)});n.emit("dragnodeend",{items:this.targets,targetItem:r})}}},onDragEnter:function(t){var e=t.item;if(!!this.validationCombo(e)){var r=this.graph;this.comboActiveState&&r.setItemState(e,this.comboActiveState,!0)}},onDragLeave:function(t){var e=t.item;if(!!this.validationCombo(e)){var r=this.graph;this.comboActiveState&&r.setItemState(e,this.comboActiveState,!1)}},updatePositions:function(t,e){var r=this;!this.targets||this.targets.length===0||(this.get("enableDelegate")?this.enableDebounce?this.debounceUpdate({targets:this.targets,graph:this.graph,point:this.point,origin:this.origin,evt:t,updateEdge:this.get("updateEdge"),onlyChangeComboSize:this.onlyChangeComboSize,updateParentCombos:this.updateParentCombos}):e||this.targets.map(function(n){return r.update(n,t)}):this.targets.map(function(n){return r.update(n,t,e)}))},update:function(t,e,r){var n=this.origin,a=t.get("model"),i=t.get("id");this.point[i]||(this.point[i]={x:a.x||0,y:a.y||0});var o=e.x-n.x+this.point[i].x,u=e.y-n.y+this.point[i].y;r&&(o+=n.x-e.x,u+=n.y-e.y);var f={x:o,y:u};this.get("updateEdge")?this.graph.updateItem(t,f,!1):t.updatePosition(f)},debounceUpdate:(0,M.debounce)(function(s){var t=s.targets,e=s.graph,r=s.point,n=s.origin,a=s.evt,i=s.updateEdge,o=s.onlyChangeComboSize,u=s.updateParentCombos;t.map(function(f){var c=f.get("model"),v=f.get("id");r[v]||(r[v]={x:c.x||0,y:c.y||0});var I=a.x-n.x+r[v].x,w=a.y-n.y+r[v].y,O={x:I,y:w};i?e.updateItem(f,O,!1):f.updatePosition(O)}),o&&u(e,t)},50,!0),updateDelegate:function(t){var e=this.graph;if(this.delegateRect){var I=t.x-this.origin.x+this.originPoint.minX,w=t.y-this.origin.y+this.originPoint.minY;this.delegateRect.attr({x:I,y:w})}else{var r=e.get("group"),n=(0,M.deepMix)({},zu.delegateStyle,this.delegateStyle),a=this.calculationGroupPosition(t),i=a.x,o=a.y,u=a.width,f=a.height,c=a.minX,v=a.minY;this.originPoint={x:i,y:o,width:u,height:f,minX:c,minY:v},this.delegateRect=r.addShape("rect",{attrs:(0,T.__assign)({width:u,height:f,x:i,y:o},n),name:"rect-delegate-shape"}),this.delegate=this.delegateRect,this.delegateRect.set("capture",!1)}},calculationGroupPosition:function(t){var e=this.targets;e.length===0&&e.push(t.item);for(var r=Infinity,n=-Infinity,a=Infinity,i=-Infinity,o=0;on&&(n=I),w>i&&(i=w)}var O=Math.floor(r),z=Math.floor(a),Z=Math.ceil(n)-Math.floor(r),J=Math.ceil(i)-Math.floor(a);return{x:O,y:z,width:Z,height:J,minX:r,minY:a}},updateParentCombos:function(t,e){var r=t||this.graph,n=e||this.targets,a={};n==null||n.forEach(function(i){var o=i.getModel().comboId;o&&(a[o]=r.findById(o))}),Object.values(a).forEach(function(i){i&&r.updateCombo(i)})}},Gg={getDefaultCfg:function(){return{trigger:"mouseenter",activeState:"active",inactiveState:"inactive",resetSelected:!1,shouldUpdate:function(){return!0}}},getEvents:function(){return this.get("trigger")==="mouseenter"?{"node:mouseenter":"setAllItemStates","combo:mouseenter":"setAllItemStates","node:mouseleave":"clearActiveState","combo:mouseleave":"clearActiveState"}:{"node:click":"setAllItemStates","combo:click":"setAllItemStates","canvas:click":"clearActiveState","node:touchstart":"setOnTouchStart","combo:touchstart":"setOnTouchStart","canvas:touchstart":"clearOnTouchStart"}},setOnTouchStart:function(t){var e=this;try{var r=t.originalEvent.touches,n=r[0],a=r[1];if(n&&a)return;t.preventDefault()}catch(i){console.warn("Touch original event not exist!")}e.setAllItemStates(t)},clearOnTouchStart:function(t){var e=this;try{var r=t.originalEvent.touches,n=r[0],a=r[1];if(n&&a)return;t.preventDefault()}catch(i){console.warn("Touch original event not exist!")}e.clearActiveState(t)},setAllItemStates:function(t){clearTimeout(this.timer),this.throttleSetAllItemStates(t,this)},clearActiveState:function(t){var e=this;this.timer=setTimeout(function(){e.throttleClearActiveState(t,e)},50)},throttleSetAllItemStates:(0,M.throttle)(function(s,t){var e=s.item,r=t.graph;if(!(!r||r.destroyed)&&(t.item=e,!!t.shouldUpdate(s.item,{event:s,action:"activate"},t))){for(var n=t.activeState,a=t.inactiveState,i=r.getNodes(),o=r.getCombos(),u=r.getEdges(),f=r.get("vedges"),c=i.length,v=o.length,I=u.length,w=f.length,O=t.inactiveItems||{},z=t.activeItems||{},Z=0;Z-1||(this.trigger=fv,console.warn("Behavior brush-select \u7684 trigger \u53C2\u6570\u4E0D\u5408\u6CD5\uFF0C\u8BF7\u8F93\u5165 'drag'\u3001'shift'\u3001'ctrl' \u6216 'alt'")),this.trigger==="drag"?{dragstart:"onMouseDown",drag:"onMouseMove",dragend:"onMouseUp","canvas:click":"clearStates"}:{dragstart:"onMouseDown",drag:"onMouseMove",dragend:"onMouseUp","canvas:click":"clearStates",keyup:"onKeyUp",keydown:"onKeyDown"}},onMouseDown:function(t){var e=t.item,r=this.brush;e||this.trigger!=="drag"&&!this.keydown||(this.selectedNodes&&this.selectedNodes.length!==0&&this.clearStates(),r||(r=this.createBrush()),this.originPoint={x:t.canvasX,y:t.canvasY},r.attr({width:0,height:0}),r.show(),this.dragging=!0)},onMouseMove:function(t){!this.dragging||this.trigger!=="drag"&&!this.keydown||this.updateBrush(t)},onMouseUp:function(t){var e=this.graph;!this.brush&&!this.dragging||this.trigger!=="drag"&&!this.keydown||(this.brush.remove(!0),this.brush=null,this.getSelectedNodes(t),this.dragging=!1)},clearStates:function(){var t=this,e=t.graph,r=t.selectedState,n=e.findAllByState("node",r),a=e.findAllByState("edge",r),i=e.findAllByState("combo",r);n.forEach(function(o){return e.setItemState(o,r,!1)}),a.forEach(function(o){return e.setItemState(o,r,!1)}),i.forEach(function(o){return e.setItemState(o,r,!1)}),this.selectedNodes=[],this.selectedEdges=[],this.selectedCombos=[],this.onDeselect&&this.onDeselect(this.selectedNodes,this.selectedEdges,this.selectedCombos),e.emit("nodeselectchange",{selectedItems:{nodes:[],edges:[],combos:[]},select:!1})},isBBoxCenterInRect:function(t,e,r,n,a){var i=t.getBBox();return i.centerX>=e&&i.centerX<=r&&i.centerY>=n&&i.centerY<=a},getSelectedNodes:function(t){var e=this,r=this,n=r.graph,a=r.originPoint,i=r.shouldUpdate,o=r.isBBoxCenterInRect,u=this.selectedState,f={x:t.x,y:t.y},c=n.getPointByCanvas(a.x,a.y),v=Kl(f.x,c.x),I=sv(f.x,c.x),w=Kl(f.y,c.y),O=sv(f.y,c.y),z=[],Z=[];n.getNodes().forEach(function(ue){if(ue.isVisible()&&o(ue,v,I,w,O)&&i(ue,"select",e)){z.push(ue);var Ee=ue.getModel();Z.push(Ee.id),n.setItemState(ue,u,!0)}});var J=[];this.includeEdges&&z.forEach(function(ue){var Ee=ue.getOutEdges();Ee.forEach(function(Ie){if(!!Ie.isVisible()){var Se=Ie.getModel(),De=Se.source,$e=Se.target;Z.includes(De)&&Z.includes($e)&&i(Ie,"select",e)&&(J.push(Ie),n.setItemState(Ie,e.selectedState,!0))}})});var re=[];this.includeCombos&&n.getCombos().forEach(function(ue){if(ue.isVisible()&&o(ue,v,I,w,O)&&i(ue,"select",e)){re.push(ue);var Ee=ue.getModel();Z.push(Ee.id),n.setItemState(ue,u,!0)}}),this.selectedEdges=J,this.selectedNodes=z,this.selectedCombos=re,this.onSelect&&this.onSelect(z,J,re),n.emit("nodeselectchange",{selectedItems:{nodes:z,edges:J,combos:re},select:!0})},createBrush:function(){var t=this,e=t.graph.get("canvas").addShape("rect",{attrs:t.brushStyle,capture:!1,name:"brush-shape"});return this.brush=e,this.delegate=e,e},updateBrush:function(t){var e=this.originPoint;this.brush.attr({width:uv(t.canvasX-e.x),height:uv(t.canvasY-e.y),x:Kl(t.canvasX,e.x),y:Kl(t.canvasY,e.y)})},onKeyDown:function(t){var e=t.key;if(!!e){var r=this.trigger.toLowerCase(),n=e.toLowerCase();n===r||n==="control"&&r==="ctrl"||n==="ctrl"&&r==="control"?this.keydown=!0:this.keydown=!1}},onKeyUp:function(){this.brush&&(this.brush.remove(!0),this.brush=null,this.dragging=!1),this.keydown=!1}},cv="shift",Wg=["shift","ctrl","alt","control"],Xg={getDefaultCfg:function(){return{multiple:!0,trigger:cv,selectedState:"selected",selectNode:!0,selectEdge:!1,selectCombo:!0}},getEvents:function(){var t=this;return Wg.indexOf(t.trigger.toLowerCase())>-1||(t.trigger=cv,console.warn("Behavior click-select \u7684 trigger \u53C2\u6570\u4E0D\u5408\u6CD5\uFF0C\u8BF7\u8F93\u5165 'drag'\u3001'shift'\u3001'ctrl' \u6216 'alt'")),t.multiple?{"node:click":"onClick","combo:click":"onClick","edge:click":"onClick","canvas:click":"onCanvasClick",keyup:"onKeyUp",keydown:"onKeyDown"}:{"node:click":"onClick","combo:click":"onClick","edge:click":"onClick","canvas:click":"onCanvasClick"}},onClick:function(t){var e=this,r=t.item;if(!(!r||r.destroyed)){var n=r.getType(),a=e.graph,i=e.keydown,o=e.multiple,u=e.shouldUpdate,f=e.shouldBegin;if(!!f(t,e)){if(!i||!o){var c=a.findAllByState("node",e.selectedState).concat(a.findAllByState("edge",e.selectedState)).concat(a.findAllByState("combo",e.selectedState));(0,M.each)(c,function(z){z!==r&&a.setItemState(z,e.selectedState,!1)})}var v=function(){switch(n){case"node":return e.selectNode;case"edge":return e.selectEdge;case"combo":return e.selectCombo;default:return!1}}();if(!v){var I=a.findAllByState("node",e.selectedState),w=a.findAllByState("edge",e.selectedState),O=a.findAllByState("combo",e.selectedState);a.emit("nodeselectchange",{selectedItems:{nodes:I,edges:w,combos:O},select:!1});return}if(r.hasState(e.selectedState)){u(t,e)&&a.setItemState(r,e.selectedState,!1);var I=a.findAllByState("node",e.selectedState),w=a.findAllByState("edge",e.selectedState),O=a.findAllByState("combo",e.selectedState);a.emit("nodeselectchange",{target:r,selectedItems:{nodes:I,edges:w,combos:O},select:!1})}else{u(t,e)&&a.setItemState(r,e.selectedState,!0);var I=a.findAllByState("node",e.selectedState),w=a.findAllByState("edge",e.selectedState),O=a.findAllByState("combo",e.selectedState);a.emit("nodeselectchange",{target:r,selectedItems:{nodes:I,edges:w,combos:O},select:!0})}}}},onCanvasClick:function(t){var e=this,r=this,n=r.graph,a=r.shouldBegin;if(!!a(t,this)){var i=n.findAllByState("node",this.selectedState);(0,M.each)(i,function(f){n.setItemState(f,e.selectedState,!1)});var o=n.findAllByState("edge",this.selectedState);(0,M.each)(o,function(f){n.setItemState(f,e.selectedState,!1)});var u=n.findAllByState("combo",this.selectedState);(0,M.each)(u,function(f){n.setItemState(f,e.selectedState,!1)}),n.emit("nodeselectchange",{selectedItems:{nodes:[],edges:[],combos:[]},select:!1})}},onKeyDown:function(t){var e=this,r=t.key;!r||(r.toLowerCase()===this.trigger.toLowerCase()||r.toLowerCase()==="control"?e.keydown=!0:e.keydown=!1)},onKeyUp:function(){var t=this;t.keydown=!1}},Vg=ee.vs,$l=.05,jg={getDefaultCfg:function(){return this.isFireFox=Po()==="firefox",{sensitivity:2,minZoom:void 0,maxZoom:void 0,enableOptimize:!1,optimizeZoom:.1,fixSelectedItems:{fixAll:!1,fixLineWidth:!1,fixLabel:!1,fixState:"selected"},animate:!1,animateCfg:{duration:500}}},getEvents:function(){var t=this.fixSelectedItems;return t.fixState||(t.fixState="selected"),t.fixAll&&(t.fixLineWidth=!0,t.fixLabel=!0),{wheel:"onWheel",touchstart:"onTouchStart",touchmove:"onTouchMove",touchend:"onTouchEnd"}},onTouchStart:function(t){var e=t.originalEvent.touches,r=e[0],n=e[1];t.preventDefault(),!!n&&(this.shouldBegin&&!this.shouldBegin(t,this)||(this.startPoint={pageX:r.pageX,pageY:r.pageY},this.moveable=!0,n&&(this.endPoint={pageX:n.pageX,pageY:n.pageY}),this.originScale=this.graph.getZoom()||this.currentScale||1))},onTouchMove:function(t){if(!!this.moveable){t.preventDefault();var e=t.originalEvent.touches,r=e[0],n=e[1];if(!!n){this.endPoint||(this.endPoint={pageX:n.pageX,pageY:n.pageY});var a=function(z,Z){return Math.hypot(Z.x-z.x,Z.y-z.y)},i=a({x:r.pageX,y:r.pageY},{x:n.pageX,y:n.pageY})/a({x:this.startPoint.pageX,y:this.startPoint.pageY},{x:this.endPoint.pageX,y:this.endPoint.pageY}),o=this.originScale*i;this.currentScale=o;var u=this.get("minZoom")||this.graph.get("minZoom"),f=this.get("maxZoom")||this.graph.get("maxZoom");if(!(o>f||o0||t.wheelDelta<0?c=1-$l*u:c=1/(1-$l*u):t.wheelDelta<0?c=1-$l*u:c=1/(1-$l*u),v=f*c;var I=this.get("minZoom")||n.get("minZoom"),w=this.get("maxZoom")||n.get("maxZoom");v>w?v=w:vn/2?c-=I.width:c+=this.offset,v>a/2?v-=I.height:v+=this.offset;var w="".concat(c,"px"),O="".concat(v,"px");(0,F.Z)(this.container,{left:w,top:O,visibility:"visible"})},createTooltip:function(t){var e=t.get("el");e.style.position="relative";var r=(0,Yt.Z)('
    '));return e.parentNode.appendChild(r),(0,F.Z)(r,{position:"absolute",visibility:"visible"}),this.width=t.get("width"),this.height=t.get("height"),this.container=r,this.graph.get("tooltips").push(r),r}},Yg=(0,T.__assign)({getDefaultCfg:function(){return{item:"node",offset:12,formatText:function(e){return e.label}}},getEvents:function(){return{"node:mouseenter":"onMouseEnter","node:mouseleave":"onMouseLeave","node:mousemove":"onMouseMove",afterremoveitem:"onMouseLeave"}}},lv),Hg=(0,T.__assign)({getDefaultCfg:function(){return{item:"edge",offset:12,formatText:function(e){return"source: ".concat(e.source," target: ").concat(e.target)}}},getEvents:function(){return{"edge:mouseenter":"onMouseEnter","edge:mouseleave":"onMouseLeave","edge:mousemove":"onMouseMove",afterremoveitem:"onMouseLeave"}}},lv),dv="click",Zg=["click","dblclick"],Kg={getDefaultCfg:function(){return{trigger:dv,onChange:function(){}}},getEvents:function(){var t,e;return Zg.includes(this.trigger)?e=this.trigger:(e=dv,console.warn("Behavior collapse-expand \u7684 trigger \u53C2\u6570\u4E0D\u5408\u6CD5\uFF0C\u8BF7\u8F93\u5165 'click' \u6216 'dblclick'")),t={},t["node:".concat(e)]="onNodeClick",t.touchstart="onNodeClick",t},onNodeClick:function(t){var e=this;if(this.trigger==="click"){if(this.timer){clearTimeout(this.timer),this.timer=0;return}this.timer=setTimeout(function(){e.toggle(t),clearTimeout(e.timer),e.timer=0},200)}else this.toggle(t)},toggle:function(t){var e=t.item;if(!!e){var r=this.graph.findDataById(e.get("id"));if(!!r){var n=r.children;if(!(!n||n.length===0)){var a=!r.collapsed;!this.shouldBegin(t,a,this)||(r.collapsed=a,e.getModel().collapsed=a,this.graph.emit("itemcollapsed",{item:t.item,collapsed:a}),!!this.shouldUpdate(t,a,this)&&(this.onChange(e,a,this),this.graph.layout()))}}}}},$g=ci.calculationItemsBBox,Qg=function s(t,e){if(e(t)!==!1&&t){var r=t.get("combos");if(r.length===0)return!1;(0,M.each)(r,function(n){s(n,e)})}},qg={getDefaultCfg:function(){return{enableDelegate:!1,delegateStyle:{},onlyChangeComboSize:!1,activeState:"",selectedState:"selected",enableStack:!0}},getEvents:function(){return{"combo:mousedown":"onMouseDown","combo:dragstart":"onDragStart","combo:drag":"onDrag","combo:dragend":"onDragEnd","combo:drop":"onDrop","node:drop":"onNodeDrop","combo:dragenter":"onDragEnter","combo:dragleave":"onDragLeave"}},validationCombo:function(t){var e=t.item;if(!e||e.destroyed||!this.shouldUpdate(t,this))return!1;var r=e.getType();return r==="combo"},onMouseDown:function(t){this.origin={x:t.x,y:t.y}},onDragStart:function(t){var e=this,r=this.graph,n=t.item;if(this.currentShouldEnd=!0,!!this.validationCombo(t)){this.targets=[];var a=r.findAllByState("combo",this.selectedState),i=n.get("id"),o=a.filter(function(f){var c=f.get("id");return i===c});o.length===0?this.targets.push(n):this.targets=a;var u=[];this.targets.forEach(function(f){var c=f.getModel(),v=c.x,I=c.y,w=c.id;u.push({x:v,y:I,id:w})}),this.set("beforeDragItems",u),this.activeState&&this.targets.map(function(f){var c=f.getModel();if(c.parentId){var v=r.findById(c.parentId);v&&r.setItemState(v,e.activeState,!0)}}),this.point={},this.originPoint={},this.currentItemChildCombos=[],Qg(n,function(f){if(f.destroyed)return!1;var c=f.getModel();return e.currentItemChildCombos.push(c.id),!0})}},onDrag:function(t){var e=this;if(!!this.origin&&!!this.validationCombo(t))if(this.enableDelegate)this.updateDelegate(t);else{if(this.activeState){var r=this.graph,n=t.item,a=n.getModel(),i=r.getCombos(),o=n.getBBox(),u=o.centerX,f=o.centerY,c=o.width,v=i.filter(function(I){var w=I.getModel();return a.parentId,w.id!==a.id&&!e.currentItemChildCombos.includes(w.id)});v.map(function(I){var w=I.getBBox(),O=w.centerX,z=w.centerY,Z=w.width,J=u-O,re=f-z,ue=2*Math.sqrt(J*J+re*re);c+Z-ue>.8*c?r.setItemState(I,e.activeState,!0):r.setItemState(I,e.activeState,!1)})}(0,M.each)(this.targets,function(I){e.updateCombo(I,t)}),this.onlyChangeComboSize&&this.updateParentCombos()}},updatePositions:function(t,e){var r=this;(this.enableDelegate||e)&&(0,M.each)(this.targets,function(n){r.updateCombo(n,t,e)})},onDrop:function(t){var e=this,r=t.item;if(this.currentShouldEnd=this.shouldEnd(t,r,this),this.updatePositions(t,!this.currentShouldEnd),!(!this.currentShouldEnd||!r||!this.targets||r.destroyed)){var n=this.graph,a=r.getModel();this.targets.map(function(i){var o=i.getModel();o.parentId!==a.id?(e.activeState&&n.setItemState(r,e.activeState,!1),e.onlyChangeComboSize?n.updateCombo(i):n.updateComboTree(i,a.id,!1)):n.updateCombo(r)}),this.end(r,t),this.endComparison=!0}},onNodeDrop:function(t){var e=this;if(!(!this.targets||this.targets.length===0)){var r=this.graph,n=t.item,a=n.getModel().comboId,i=a?r.findById(a):void 0;if(this.currentShouldEnd=this.shouldEnd(t,i,this),this.updatePositions(t,!this.currentShouldEnd),!!this.currentShouldEnd){var o;if(a){if(this.activeState){var u=r.findById(a);r.setItemState(u,this.activeState,!1)}this.targets.map(function(f){e.onlyChangeComboSize?r.updateCombo(f):a!==f.getID()&&(o=r.findById(a),a!==f.getModel().parentId&&r.updateComboTree(f,a,!1))})}else this.targets.map(function(f){if(e.onlyChangeComboSize)r.updateCombo(f);else{var c=f.getModel();c.comboId&&r.updateComboTree(f,void 0,!1)}});this.endComparison=!0,this.end(o,t)}}},onDragEnter:function(t){if(!!this.origin&&!!this.validationCombo(t)){var e=t.item,r=this.graph;this.activeState&&r.setItemState(e,this.activeState,!0)}},onDragLeave:function(t){if(!!this.origin&&!!this.validationCombo(t)){var e=t.item,r=this.graph;this.activeState&&r.setItemState(e,this.activeState,!1)}},onDragEnd:function(t){if(!(!this.targets||this.targets.length===0)){var e=t.item;this.currentShouldEnd&&this.updatePositions(t);var r=this.getParentCombo(e.getModel().parentId),n=this.graph;r&&this.activeState&&n.setItemState(r,this.activeState,!1),this.end(void 0,t)}},end:function(t,e){var r=this;if(!!this.origin){var n=this.graph;if(this.delegateShape){var a=n.get("delegateGroup");a.clear(),this.delegateShape=null}if(t&&this.activeState&&n.setItemState(t,this.activeState,!1),!t){var i=n.get("enabledStack")&&this.enableStack,o={before:{nodes:[],edges:[],combos:[].concat(this.get("beforeDragItems"))},after:{nodes:[],edges:[],combos:[]}};this.targets.map(function(u){if(!r.onlyChangeComboSize)n.updateComboTree(u,void 0,i);else{n.updateCombo(u);var f=u.getModel(),c=f.x,v=f.y,I=f.id;o.after.combos.push({x:c,y:v,id:I}),n.pushStack("update",o)}})}this.point=[],this.origin=null,this.originPoint=null,this.targets.length=0}},traverse:function(t,e,r){var n=this;if(r===void 0&&(r={}),e(t,r)!==!1&&t){var a=t.get("combos");(0,M.each)(a,function(o){n.traverse(o,e,r)});var i=t.get("nodes");(0,M.each)(i,function(o){n.traverse(o,e,r)})}},updateCombo:function(t,e,r){this.updateSingleItem(t,e,r);var n={};this.traverse(t,function(a,i){return a.destroyed?!1:(a.getEdges().forEach(function(o){return i[o.getID()]=o}),!0)},n),Object.values(n).forEach(function(a){return a.refresh()})},updateSingleItem:function(t,e,r){var n=this.origin,a=this.graph,i=t.getModel(),o=t.get("id");this.point[o]||(this.point[o]={x:i.x,y:i.y});var u=e.x-n.x+this.point[o].x,f=e.y-n.y+this.point[o].y;r&&(u+=n.x-e.x,f+=n.y-e.y),a.updateItem(t,{x:u,y:f},!1)},getParentCombo:function(t){var e=this.graph;if(!!t){var r=e.findById(t);if(!!r)return r}},updateDelegate:function(t){var e=this.graph;if(this.delegateShape){var I=t.x-this.origin.x+this.originPoint.minX,w=t.y-this.origin.y+this.originPoint.minY;this.delegateShape.attr({x:I,y:w})}else{var r=e.get("delegateGroup"),n=null;this.targets.length>1?n=$g(this.targets):n=this.targets[0].getBBox();var a=n.x,i=n.y,o=n.width,u=n.height,f=n.minX,c=n.minY;this.originPoint={x:a,y:i,width:o,height:u,minX:f,minY:c};var v=(0,T.__assign)((0,T.__assign)({},zu.delegateStyle),this.delegateStyle);this.delegateShape=r.addShape("rect",{attrs:(0,T.__assign)({width:n.width,height:n.height,x:n.x,y:n.y},v),name:"combo-delegate-shape"}),this.delegateShape.set("capture",!1),this.delegate=this.delegateShape}},updateParentCombos:function(){var t=this,e=t.graph,r=t.targets,n={};r==null||r.forEach(function(a){var i=a.getModel().parentId;i&&(n[i]=e.findById(i))}),Object.values(n).forEach(function(a){a&&e.updateCombo(a)})}},vv="dblclick",Jg=["click","dblclick"],e0={getDefaultCfg:function(){return{trigger:vv,relayout:!0}},getEvents:function(){var t,e;return Jg.includes(this.trigger)?e=this.trigger:(e=vv,console.warn("Behavior collapse-expand-group \u7684 trigger \u53C2\u6570\u4E0D\u5408\u6CD5\uFF0C\u8BF7\u8F93\u5165 'click' \u6216 'dblclick'")),t={},t["combo:".concat(e)]="onComboClick",t},onComboClick:function(t){var e=t.item,r=this,n=r.graph,a=r.relayout;if(!(!e||e.destroyed||e.getType()!=="combo")){var i=e.getModel(),o=i.id;!o||(n.collapseExpandCombo(o),a&&n.get("layout")?n.layout():n.refreshPositions())}}},t0=ci.isPolygonsIntersect,r0=ci.pathToPoints,hv="shift",n0=["drag","shift","ctrl","alt","control"],a0=function(t,e){var r,n=t.getKeyShape();if(t.get("type")==="path")r=r0(n.attr("path"));else{var a=n.getCanvasBBox();r=[[a.minX,a.minY],[a.maxX,a.minY],[a.maxX,a.maxY],[a.minX,a.maxY]]}return t0(e,r)},i0={getDefaultCfg:function(){return{delegateStyle:{fill:"#EEF6FF",fillOpacity:.4,stroke:"#DDEEFE",lineWidth:1},onSelect:function(){},onDeselect:function(){},shouldDeselect:void 0,selectedState:"selected",trigger:hv,includeEdges:!0,selectedEdges:[],selectedNodes:[]}},getEvents:function(){return n0.indexOf(this.trigger.toLowerCase())>-1||(this.trigger=hv,console.warn("Behavior lasso-select \u7684 trigger \u53C2\u6570\u4E0D\u5408\u6CD5\uFF0C\u8BF7\u8F93\u5165 'drag'\u3001'shift'\u3001'ctrl' \u6216 'alt'")),this.trigger==="drag"?{dragstart:"onDragStart",drag:"onDragMove",dragend:"onDragEnd","canvas:click":"clearStates"}:{dragstart:"onDragStart",drag:"onDragMove",dragend:"onDragEnd",keyup:"onKeyUp",keydown:"onKeyDown","canvas:click":"clearStates"}},onDragStart:function(t){var e=this.lasso,r=t.item;r||this.trigger!=="drag"&&!this.keydown||(this.selectedNodes&&this.selectedNodes.length!==0&&this.clearStates("dragstart"),e||(e=this.createLasso()),this.dragging=!0,this.originPoint={x:t.x,y:t.y},this.points.push(this.originPoint),e.show())},onDragMove:function(t){!this.dragging||this.trigger!=="drag"&&!this.keydown||(this.points.push({x:t.x,y:t.y}),this.updateLasso(t))},onDragEnd:function(t){!this.lasso&&!this.dragging||this.trigger!=="drag"&&!this.keydown||(this.points.push(this.originPoint),this.getSelectedItems(),this.lasso.remove(!0),this.lasso=null,this.points=[],this.dragging=!1)},getLassoPath:function(){var t=this.points,e=[];return t.length&&(t.forEach(function(r,n){n===0?e.push(["M",r.x,r.y]):e.push(["L",r.x,r.y])}),e.push(["L",t[0].x,t[0].y])),e},clearStates:function(t){t===void 0&&(t="canvas:click");var e=this,r=e.graph,n=e.selectedState,a=e.shouldDeselect,i=r.findAllByState("node",n),o=r.findAllByState("edge",n);(!a||a({action:t,nodes:i,edges:o}))&&(i.forEach(function(u){return r.setItemState(u,n,!1)}),o.forEach(function(u){return r.setItemState(u,n,!1)})),this.onDeselect&&this.onDeselect(this.selectedNodes,this.selectedEdges),this.selectedNodes=[],this.selectedEdges=[],r.emit("nodeselectchange",{selectedItems:{nodes:[],edges:[]},select:!1})},getSelectedItems:function(){var t=this,e=this,r=e.graph,n=e.shouldUpdate,a=this.points.map(function(c){return[r.getCanvasByPoint(c.x,c.y).x,r.getCanvasByPoint(c.x,c.y).y]}),i=this.selectedState,o=[],u=[];r.getNodes().forEach(function(c){if(!!c.isVisible()&&a0(c,a)&&n(c,"select",t)){o.push(c);var v=c.getModel();u.push(v.id),r.setItemState(c,i,!0)}});var f=[];this.includeEdges&&o.forEach(function(c){var v=c.getOutEdges();v.forEach(function(I){if(!!I.isVisible()){var w=I.getModel(),O=w.source,z=w.target;u.includes(O)&&u.includes(z)&&n(I,"select",t)&&(f.push(I),r.setItemState(I,t.selectedState,!0))}})}),this.selectedEdges=f,this.selectedNodes=o,this.onSelect&&this.onSelect(o,f),r.emit("nodeselectchange",{selectedItems:{nodes:o,edges:f},select:!0})},createLasso:function(){var t=this,e=t.graph.get("delegateGroup").addShape("path",{attrs:(0,T.__assign)({path:[]},t.delegateStyle),capture:!1,name:"lasso-shape"});return this.lasso=e,this.delegate=e,this.points=[],e},updateLasso:function(t){var e=this;this.lasso.attr({path:e.getLassoPath()})},onKeyDown:function(t){var e=t.key;!e||(e.toLowerCase()===this.trigger.toLowerCase()?this.keydown=!0:this.keydown=!1)},onKeyUp:function(){this.lasso&&(this.lasso.remove(!0),this.lasso=null,this.points=[],this.dragging=!1),this.keydown=!1}},gv="click",o0=["click","drag"],pv=void 0,s0=["shift","ctrl","control","alt","meta",void 0],u0={getDefaultCfg:function(){return{trigger:gv,key:pv,edgeConfig:{},getEdgeConfig:void 0}},getEvents:function(){var t=this;o0.indexOf(t.trigger.toLowerCase())>-1||(t.trigger=gv,console.warn("Behavior create-edge \u7684 trigger \u53C2\u6570\u4E0D\u5408\u6CD5\uFF0C\u8BF7\u8F93\u5165 'click'\uFF0C'drag'")),t.key&&s0.indexOf(t.key.toLowerCase())===-1&&(t.trigger=pv,console.warn("Behavior create-edge \u7684 key \u53C2\u6570\u4E0D\u5408\u6CD5\uFF0C\u8BF7\u8F93\u5165 'shift'\uFF0C'ctrl'\uFF0C'alt'\uFF0C'control'\uFF0C\u6216 undefined"));var e;return t.trigger==="drag"?e={"node:dragstart":"onClick","combo:dragstart":"onClick",drag:"updateEndPoint","node:drop":"onClick","combo:drop":"onClick",dragend:"onDragEnd"}:t.trigger==="click"&&(e={"node:click":"onClick",mousemove:"updateEndPoint","edge:click":"cancelCreating","canvas:click":"cancelCreating","combo:click":"onClick"}),t.key&&(e.keydown="onKeyDown",e.keyup="onKeyUp"),e},onDragEnd:function(t){var e=this;if(!(e.key&&!e.keydown)){var r=t.item;(!r||r.getID()===e.source||r.getType()!=="node")&&e.cancelCreating({item:e.edge,x:t.x,y:t.y})}},onClick:function(t){var e=this;if(!(e.key&&!e.keydown)){var r=t.item,n=e.graph,a=r.getModel(),i=e.getEdgeConfig;if(e.addingEdge&&e.edge){if(!e.shouldEnd(t,e))return;var o=void 0;i&&(0,M.isFunction)(i)?o=i({source:e.source,target:a.id},e):o=e.edgeConfig;var u=(0,T.__assign)({target:a.id},o);if(e.source===a.id&&(u.type="loop"),n.emit("beforecreateedge",{}),n.updateItem(e.edge,u,!1),n.get("enabledStack")){var f=(0,T.__assign)((0,T.__assign)({},e.edge.getModel()),{itemType:"edge"}),c={};c.edges=[f],n.pushStack("add",{before:{},after:c})}n.emit("aftercreateedge",{edge:e.edge}),e.edge.getKeyShape().set("capture",!0),e.edge=null,e.addingEdge=!1}else{if(!e.shouldBegin(t,e))return;var o=void 0;i&&(0,M.isFunction)(i)?o=i({source:a.id,target:a.id},e):o=e.edgeConfig,e.edge=n.addItem("edge",(0,T.__assign)({source:a.id,target:a.id},o),!1),e.source=a.id,e.addingEdge=!0,e.edge.getKeyShape().set("capture",!1)}}},updateEndPoint:function(t){var e=this;if(!(e.key&&!e.keydown)){e.edge&&e.edge.destroyed&&e.cancelCreating({item:e.edge});var r={x:t.x,y:t.y};if(!e.graph.findById(e.source)){e.addingEdge=!1;return}e.addingEdge&&e.edge&&e.graph.updateItem(e.edge,{target:r},!1)}},cancelCreating:function(t){var e,r,n=this;if(!(n.key&&!n.keydown)){var a=n.graph,i=t.item;if(n.addingEdge&&(n.edge===i||((r=(e=t.target)===null||e===void 0?void 0:e.isCanvas)===null||r===void 0?void 0:r.call(e)))){n.edge&&!n.edge.destroyed&&a.removeItem(n.edge,!1),n.edge=null,n.addingEdge=!1;return}}},onKeyDown:function(t){var e=this,r=t.key;!r||(r.toLowerCase()===e.key.toLowerCase()?e.keydown=!0:e.keydown=!1)},onKeyUp:function(){var t=this;t.addingEdge&&t.edge&&(t.graph.removeItem(t.edge,!1),t.addingEdge=!1,t.edge=null),this.keydown=!1}},yv="ctrl",f0=["shift","ctrl","alt","control"],c0="1",l0={getDefaultCfg:function(){return{trigger:yv,combinedKey:c0,functionName:"fitView",functionParams:[]}},getEvents:function(){return f0.indexOf(this.trigger.toLowerCase())>-1||(this.trigger=yv,console.warn("Behavior shortcuts-fit-view \u7684 trigger \u53C2\u6570 '".concat(this.trigger,"' \u4E0D\u5408\u6CD5\uFF0C\u8BF7\u8F93\u5165 'drag'\u3001'shift'\u3001'ctrl' \u6216 'alt'"))),this.combinedKey===this.trigger&&(this.combinedKey=void 0),{keyup:"onKeyUp",keydown:"onKeyDown"}},onKeyDown:function(t){var e=t.key;if(!!e){var r=this.trigger.toLowerCase(),n=e.toLowerCase();this.triggerKeydown||(n===r||n==="control"&&r==="ctrl"||n==="ctrl"&&r==="control"?this.triggerKeydown=!0:this.triggerKeydown=!1);var a=this.graph;if(!a[this.functionName])return console.warn("Behavior shortcuts-fit-view \u7684 functionName \u53C2\u6570 '".concat(this.functionName,"' \u4E0D\u5408\u6CD5\uFF0C\u5B83\u4E0D\u662F Graph \u7684\u4E00\u4E2A\u51FD\u6570\u540D")),{};if(this.triggerKeydown&&!this.combinedKey){this.functionParams&&this.functionParams.length?a[this.functionName].apply(a,this.functionParams):a[this.functionName]();return}var i=this.combinedKey.toLowerCase();this.triggerKeydown&&(n===i||n==="control"&&i==="ctrl"||n==="ctrl"&&i==="control")&&(this.functionParams&&this.functionParams.length?a[this.functionName].apply(a,this.functionParams):a[this.functionName]())}},onKeyUp:function(){this.brush&&(this.brush.remove(!0),this.brush=null,this.dragging=!1),this.triggerKeydown=!1}},d0=["shift","ctrl","alt","control","meta"],v0={getDefaultCfg:function(){return{direction:"both",enableOptimize:!1,zoomKey:"ctrl",scalableRange:0,allowDragOnItem:!0}},getEvents:function(){return(!this.zoomKey||d0.indexOf(this.zoomKey)===-1)&&(this.zoomKey="ctrl"),{wheel:"onWheel"}},onWheel:function(t){var e=this;if(!!this.allowDrag(t)){var r=this.graph,n=Array.isArray(this.zoomKey)?[].concat(this.zoomKey):[this.zoomKey];n.includes("control")&&n.push("ctrl");var a=n.some(function(_r){return t["".concat(_r,"Key")]});if(a){var i=r.get("canvas"),o=i.getPointByClient(t.clientX,t.clientY),u=r.getZoom();t.wheelDelta>0?u=u+u*.05:u=u-u*.05,r.zoomTo(u,{x:o.x,y:o.y})}else{var f=t.deltaX||t.movementX,c=t.deltaY||t.movementY;!c&&navigator.userAgent.indexOf("Firefox")>-1&&(c=-t.wheelDelta*125/3);var v=this.graph.get("width"),I=this.graph.get("height"),w=this.graph.get("canvas").getCanvasBBox(),O=this.scalableRange,z=this.scalableRange;O<1&&O>-1&&(O=v*O,z=I*z);var Z=w.minX,J=w.maxX,re=w.minY,ue=w.maxY;f>0?J<-O?f=0:J-f<-O&&(f=J+O):f<0&&(Z>v+O?f=0:Z-f>v+O&&(f=Z-(v+O))),c>0?ue<-z?c=0:ue-c<-z&&(c=ue+z):c<0&&(re>I+z?c=0:re-c>I+z&&(c=re-(I+z))),this.get("direction")==="x"?c=0:this.get("direction")==="y"&&(f=0),r.translate(-f,-c)}t.preventDefault();var Ee=this.get("enableOptimize");if(Ee){var Ie=this.get("optimizeZoom"),Se=this.get("optimized"),De=r.getNodes(),$e=r.getEdges(),ft=De.length,rt=$e.length;if(!Se){for(var wt=0;wt=2})}},Ql=function(){return Ql=Object.assign||function(s){for(var t,e=1,r=arguments.length;ea&&(a=n[o],i=o);return i},Tv=function(s,t,e){var r,n;return e&&e.current&&(r=e.current.offsetWidth,n=e.current.offsetHeight||500),!s&&!r||!t&&!n?(Bl.warn("\u8BF7\u4E3A Graph \u6307\u5B9A width \u4E0E height\uFF01\u5426\u5219\u5C06\u4F7F\u7528\u9ED8\u8BA4\u503C 500 * 500"),[500,500]):[s||r||500,t||n||500]},k0=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(s){var t=Math.random()*16|0,e=s=="x"?t:t&3|8;return e.toString(16)})},R0=function(s,t){return s.current||(s.current="".concat(t,"-graph-").concat(k0())),s.current},B0=function(s,t){var e=t!=null?t:{},r=e.nodeCfg,n=r===void 0?{}:r,a=e.edgeCfg,i=a===void 0?{}:a,o=n.nodeStateStyles,u=i.edgeStateStyles,f={},c=function(w,O,z){s.updateItem(w,{style:{endArrow:!!O&&{fill:O},startArrow:!!z&&{fill:z}}})},v=function(w,O,z){var Z,J,re;z?w.toFront():w.toBack();var ue=(Z=w.getModel().style)!==null&&Z!==void 0?Z:{},Ee=ue.endArrow,Ie=ue.startArrow;if(Ee||Ie){if(!f[w.getID()]){var Se=(Ee!=null?Ee:{}).fill,De=(Ie!=null?Ie:{}).fill,$e=(re=(J=w.getModel().style)===null||J===void 0?void 0:J[O])===null||re===void 0?void 0:re.stroke;f[w.getID()]=[[$e!=null?$e:Se,Se],[$e!=null?$e:De,De]]}var ft=f[w.getID()];c(w,Ee&&ft[0][z?0:1],Ie&&ft[1][z?0:1])}s.setItemState(w,O,z)},I=function(w,O,z,Z){var J=Z==="node"?s.findAll("edge",function(ue){return ue.getSource()===w||ue.getTarget()===w}):s.findAll("node",function(ue){return w.getSource().get("id")===ue.get("id")||w.getTarget().get("id")===ue.get("id")}),re=[w].concat(J);re.forEach(function(ue){v(ue,O,z)})};o&&(s.on("node:mouseenter",function(w){var O=w.item;I(O,"hover",!0,"node")}),s.on("node:mouseleave",function(w){var O=w.item;I(O,"hover",!1,"node")})),u&&(s.on("edge:mouseenter",function(w){var O=w.item;I(O,"hover",!0,"edge")}),s.on("edge:mouseleave",function(w){var O=w.item;I(O,"hover",!1,"edge")}))},ed=function(){return ed=Object.assign||function(s){for(var t,e=1,r=arguments.length;e0&&a[a.length-1])&&(f[0]===6||f[0]===2)){e=0;continue}if(f[0]===3&&(!a||f[1]>a[0]&&f[1]=18&&(td=Gl.createRoot)}catch(s){}function Lv(s){var t=Gl.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&typeof t=="object"&&(t.usingClientEntryPoint=s)}var rd="__rc_react_root__";function V0(s,t){Lv(!0);var e=t[rd]||td(t);Lv(!1),e.render(s),t[rd]=e}function j0(s,t){U0(s,t)}function fy(s,t){}function Dv(s,t){if(td){V0(s,t);return}j0(s,t)}function Y0(s){return Av(this,void 0,void 0,function(){return Ov(this,function(t){return[2,Promise.resolve().then(function(){var e;(e=s[rd])===null||e===void 0||e.unmount(),delete s[rd]})]})})}function H0(s){W0(s)}function cy(s){}function ly(s){return Av(this,void 0,void 0,function(){return Ov(this,function(t){return td!==void 0?[2,Y0(s)]:(H0(s),[2])})})}var Nv=function(s,t){t===void 0&&(t={});var e=Object.keys(t);e.forEach(function(r){s.style[r]=t[r]})},Md=function(s,t,e){t===void 0&&(t={});var r=document.createElement("div");return Object.keys(t).forEach(function(n){r[n]=t[n]}),e&&Nv(r,e),Dv(s,r),r},nd=function(){return nd=Object.assign||function(s){for(var t,e=1,r=arguments.length;e0){var r=s.customContent,n=Z0(s,["customContent"]),a=new Xc.Tooltip(nd(nd({offsetX:10,offsetY:20,itemTypes:["node"]},n),{getContent:function(i){return(0,M.isFunction)(r)?Md(r(i.item.getModel()),{className:"g6-tooltip"}):""},name:"tooltip"}));t.addPlugin(a)}}},$0=function(){function s(t){this._cfgs=(0,M.deepMix)(this.getDefaultCfgs(),t),this._events={},this.destroyed=!1}return s.prototype.getDefaultCfgs=function(){return{}},s.prototype.initPlugin=function(t){var e=this;e.set("graph",t);var r=e.getEvents(),n={};(0,M.each)(r,function(a,i){var o=(0,M.wrapBehavior)(e,a);n[i]=o,t.on(i,o)}),this._events=n,this.init()},s.prototype.getEvents=function(){return{}},s.prototype.get=function(t){var e;return(e=this._cfgs)===null||e===void 0?void 0:e[t]},s.prototype.set=function(t,e){this._cfgs[t]=e},s.prototype.destroy=function(){},s.prototype.destroyPlugin=function(){this.destroy();var t=this.get("graph"),e=this._events;(0,M.each)(e,function(r,n){t.off(n,r)}),this._events=null,this._cfgs=null,this.destroyed=!0},s}(),Q0=$0,q0=function(){var s=function(t,e){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(r[a]=n[a])},s(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");s(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}();typeof document!="undefined"&&Ze()(` + .g6-component-contextmenu { + border: 1px solid #e2e2e2; + border-radius: 4px; + font-size: 12px; + color: #545454; + background-color: rgba(255, 255, 255, 0.9); + padding: 10px 8px; + box-shadow: rgb(174, 174, 174) 0px 0px 10px; + } + .g6-contextmenu-ul { + padding: 0; + margin: 0; + list-style: none; + } + +`);var J0=function(s){q0(t,s);function t(e){return s.call(this,e)||this}return t.prototype.getDefaultCfgs=function(){return{offsetX:6,offsetY:6,handleMenuClick:void 0,customContent:function(e){return` +
      +
    • \u83DC\u5355\u98791
    • +
    • \u83DC\u5355\u98792
    • +
    + `},shouldBegin:function(e){return!0},onHide:function(){return!0},itemTypes:["node","edge","combo"],trigger:"contextmenu"}},t.prototype.getEvents=function(){return this.get("trigger")==="click"?{click:"onMenuShow",touchend:"onMenuShow"}:{contextmenu:"onMenuShow"}},t.prototype.init=function(){var e=this.get("className"),r=(0,Yt.Z)("
    "));(0,F.Z)(r,{top:"0px",position:"absolute",visibility:"hidden"});var n=this.get("container");n||(n=this.get("graph").get("container")),(0,M.isString)(n)&&(n=document.getElementById(n)),n.appendChild(r),this.set("menu",r)},t.prototype.onMenuShow=function(e){var r=this;e.preventDefault();var n=this.get("itemTypes");if(e.item){if(e.item&&e.item.getType&&n.indexOf(e.item.getType())===-1){r.onMenuHide();return}}else if(n.indexOf("canvas")===-1){r.onMenuHide();return}var a=this.get("shouldBegin");if(!!a(e)){var i=this.get("menu"),o=this.get("customContent"),u=this.get("graph"),f=o(e,u);Dv(f,i),this.removeMenuEventListener();var c=this.get("handleMenuClick");if(c){var v=function(De){c(De.target,e.item,u)};this.set("handleMenuClickWrapper",v),i.addEventListener("click",v)}var I=u.get("width"),w=u.get("height"),O=i.getBoundingClientRect(),z=this.get("offsetX")||0,Z=this.get("offsetY")||0,J=u.getContainer().offsetTop,re=u.getContainer().offsetLeft,ue=e.canvasX+re+z,Ee=e.canvasY+J+Z;ue+O.width>I&&(ue=e.canvasX-O.width-z+re),Ee+O.height>w&&(Ee=e.canvasY-O.height-Z+J),(0,F.Z)(i,{top:"".concat(Ee,"px"),left:"".concat(ue,"px"),visibility:"visible"});var Ie=this.get("trigger")==="click",Se=function(De){if(Ie){Ie=!1;return}r.onMenuHide()};document.body.addEventListener("click",Se),this.set("handler",Se)}},t.prototype.removeMenuEventListener=function(){var e=this.get("handleMenuClickWrapper"),r=this.get("handler");if(e){var n=this.get("menu");n.removeEventListener("click",e),this.set("handleMenuClickWrapper",null)}r&&document.body.removeEventListener("click",r)},t.prototype.onMenuHide=function(){var e=this.get("menu");e&&(0,F.Z)(e,{visibility:"hidden"}),this.removeMenuEventListener()},t.prototype.destroy=function(){var e=this.get("menu");if(this.removeMenuEventListener(),e){var r=this.get("container");r||(r=this.get("graph").get("container")),(0,M.isString)(r)&&(r=document.getElementById(r)),r.removeChild(e)}},t}(Q0),ep=J0,ad=function(){return ad=Object.assign||function(s){for(var t,e=1,r=arguments.length;e0&&a[a.length-1])&&(f[0]===6||f[0]===2)){e=0;continue}if(f[0]===3&&(!a||f[1]>a[0]&&f[1]0?(u.children=J,t.updateChild(u,u.id),t.updateItem(o,{collapsed:!1}),t.refreshItem(o),t.emit(kv,i,{type:"fetch",collapsed:!0})):(t.updateItem(o,{collapsed:!c}),t.layout(),t.emit(kv,i,{type:"collapse",collapsed:!!c})),Ee.label=3;case 3:return[2]}})})};t.on("node:click",function(i){a(i)}),t.on("node:touchstart",function(i){a(i)})},mp=function(s){if(typeof s=="number")return[s,s,s,s];var t=[];switch(s.length){case 1:t=[s[0],s[0],s[0],s[0]];break;case 2:t=[s[0],s[1],s[0],s[1]];break;case 3:t=[s[0],s[1],s[2],s[1]];break;case 4:t=s;break;default:break}return t},Rv=function(s,t,e,r){return typeof s=="function"?s(t,e,r)||{}:s||{}},Ul=function(){return Ul=Object.assign||function(s){for(var t,e=1,r=arguments.length;e0&&T(ie[0])}},$=0;$0;)G.push(m.pop());h.push(G)}}return h};X.detectConnectedComponents=Y;var B=function(N){for(var y=N.nodes,E=y===void 0?[]:y,g=N.edges,p=g===void 0?[]:g,h=[],x={},m={},b={},A=[],k=0,G=function j($){m[$.id]=k,b[$.id]=k,k+=1,h.push($),x[$.id]=!0;for(var q=(0,U.getNeighbors)($.id,p,"target").filter(function(ge){return E.map(function(Le){return Le.id}).indexOf(ge)>-1}),te=function(Le){var Oe=q[Le];if(!m[Oe]&&m[Oe]!==0){var Re=E.filter(function(de){return de.id===Oe});Re.length>0&&j(Re[0]),b[$.id]=Math.min(b[$.id],b[Oe])}else x[Oe]&&(b[$.id]=Math.min(b[$.id],m[Oe]))},ee=0;ee0;){var ce=h.pop();if(x[ce.id]=!1,ie.push(ce),ce===$)break}ie.length>0&&A.push(ie)}},T=0,M=E;T0;)for(var Le=ie.pop(),Oe=Le.id,Re=(0,D.getNeighbors)(Oe,b.edges),de=function(Ae){var Pe,Ve=Re[Ae],Ue=b.nodes.find(function(mt){return mt.id===Ve});if(Ve===Oe)M.push((Pe={},Pe[Ve]=Le,Pe));else if(!(Ve in ge))ce[Ve]=Le,ie.push(Ue),ge[Ve]=new Set([Le]);else if(!ge[Oe].has(Ue)){for(var Ke=!0,_t=[Ue,Le],Ct=ce[Oe];ge[Ve].size&&!ge[Ve].has(Ct)&&(_t.push(Ct),Ct!==ce[Ct.id]);)Ct=ce[Ct.id];if(_t.push(Ct),A&&k?(Ke=!1,_t.findIndex(function(mt){return A.indexOf(mt.id)>-1})>-1&&(Ke=!0)):A&&!k&&_t.findIndex(function(mt){return A.indexOf(mt.id)>-1})>-1&&(Ke=!1),Ke){for(var He={},ht=1;ht<_t.length;ht+=1)He[_t[ht-1].id]=_t[ht];_t.length&&(He[_t[_t.length-1].id]=_t[0]),M.push(He)}ge[Ve].add(Le)}},ve=0;ve0;){var ht=He.pop();T.has(ht)&&(T.delete(ht),M[ht.id].forEach(function(mt){He.push(mt)}),M[ht.id].clear())}},te=function _t(Ct,He,ht){var mt=!1;if(A&&k===!1&&A.indexOf(Ct.id)>-1)return mt;G.push(Ct),T.add(Ct);for(var dt=ht[Ct.id],Et=0;Et-1});br-1)?V.push((He={},He[mr.id]=mr,He)):Nt[mr.id].push($[In])}}return{component:$t,adjList:Nt,minIdx:mt}},de=0;de=de}),be=(0,B.detectStrongConnectComponents)({nodes:ve,edges:b.edges}).filter(function(_t){return _t.length>1});if(be.length===0)break;var Ae=Re(be),Pe=Ae.minIdx,Ve=Ae.adjList,Ue=Ae.component;if(Ue.length>1){Ue.forEach(function(_t){M[_t.id]=new Set});var Ke=j[Pe];if(A&&k&&A.indexOf(Ke.id)===-1)return V;te(Ke,Ke,Ve),de=Pe+1}else break}return V};X.detectAllDirectedCycle=p;var h=function(b,A,k,G){return G===void 0&&(G=!0),A?p(b,k,G):g(b,k,G)};X.detectAllCycles=h;var x=E;X.default=x},45891:function(hr,X,W){"use strict";Object.defineProperty(X,"__esModule",{value:!0}),X.default=D;var U=W(70643);function Y(P){P===void 0&&(P={});var N=P,y=function(){},E=function(){var g={};return function(p){var h=p.next;return g[h]?!1:(g[h]=!0,!0)}}();return N.allowTraversal=P.allowTraversal||E,N.enter=P.enter||y,N.leave=P.leave||y,N}function B(P,N,y,E){E.enter({current:N,previous:y});var g=P.edges,p=g===void 0?[]:g;(0,U.getNeighbors)(N,p,"target").forEach(function(h){E.allowTraversal({previous:y,current:N,next:h})&&B(P,h,N,E)}),E.leave({current:N,previous:y})}function D(P,N,y){B(P,N,"",Y(y))}},78089:function(hr,X,W){"use strict";Object.defineProperty(X,"__esModule",{value:!0}),X.default=void 0;var U=W(65353),Y=W(49242),B=W(70643),D=function(g,p,h){for(var x=Infinity,m,b=0;bM[Le.id]+Pe?(M[Ae]=M[Le.id]+Pe,V[Ae]=[Le.id]):M[Ae]===M[Le.id]+Pe&&V[Ae].push(Le.id)})},q=0;q0&&k.length>0;){var M=k[k.length-1];if(M.length){var V=M.shift();V&&(b.push(V),A[V]=!0,T=p?(0,Y.getNeighbors)(V,m,"target"):(0,Y.getNeighbors)(V,m),k.push(T.filter(function(q){return!A[q]})))}else{var j=b.pop();A[j]=!1,k.pop();continue}if(b[b.length-1]===g){var $=b.map(function(te){return te});G.push($);var j=b.pop();A[j]=!1,k.pop()}}return G};X.findAllPath=P},75033:function(hr,X,W){"use strict";Object.defineProperty(X,"__esModule",{value:!0}),X.default=void 0;var U=Y(W(62238));function Y(P){return P&&P.__esModule?P:{default:P}}var B=function(N,y){for(var E=(0,U.default)(N,y),g=[],p=E.length,h=0;hg[h][m]+g[m][x]&&(g[h][x]=g[h][m]+g[m][x]);return g},D=B;X.default=D},21146:function(hr,X,W){"use strict";Object.defineProperty(X,"__esModule",{value:!0}),X.default=void 0;var U=W(49242),Y=W(68575),B=function(){function x(m,b,A,k,G){this.fromNode=m,this.toNode=b,this.nodeEdgeNodeLabel={nodeLabel1:A||Y.VACANT_NODE_LABEL,edgeLabel:k||Y.VACANT_EDGE_LABEL,nodeLabel2:G||Y.VACANT_NODE_LABEL}}return x.prototype.equalTo=function(m){return this.fromNode===m.formNode&&this.toNode===m.toNode&&this.nodeEdgeNodeLabel===m.nodeEdgeNodeLabel},x.prototype.notEqualTo=function(m){return!this.equalTo(m)},x}(),D=function(){function x(){this.rmpath=[],this.dfsEdgeList=[]}return x.prototype.equalTo=function(m){var b=this.dfsEdgeList.length,A=m.length;if(b!==A)return!1;for(var k=0;k=0;A--){var k=this.dfsEdgeList[A],G=k.fromNode,T=k.toNode;Gee||k.hasNode(T[te.to])||(b.labelRe;ve--){var be=de(ve);if(be==="break")break}if(Le){var Ae=m.findMinLabel(ge);T.dfsEdgeList.push(new B(ce,Oe,Y.VACANT_NODE_LABEL,Ae.edgeLabel,Y.VACANT_NODE_LABEL));var Pe=T.dfsEdgeList.length-1;return m.dfsCode.dfsEdgeList[Pe]!==T.dfsEdgeList[Pe]?!1:q(ge[Ae.edgeLabel].projected)}var Ve={};Le=!1;var Ue=0;te.forEach(function(mt){var dt=new P(mt),Et=m.findForwardPureEdges(k,dt.edges[ee[0]],ie,dt);Et.length>0&&(Le=!0,Ue=ce,Et.forEach(function(it){var St="".concat(it.label,"-").concat(G[it.to].label);Ve[St]||(Ve[St]={projected:[],edgeLabel:it.label,nodeLabel2:G[it.to].label}),Ve[St].projected.push({graphId:k.id,edge:it,preNode:mt})}))});for(var Ke=ee.length,_t=function(dt){if(Le)return"break";var Et=ee[dt];te.forEach(function(it){var St=new P(it),$t=m.findForwardRmpathEdges(k,St.edges[Et],ie,St);$t.length>0&&(Le=!0,Ue=T.dfsEdgeList[Et].fromNode,$t.forEach(function(Nt){var mr="".concat(Nt.label,"-").concat(G[Nt.to].label);Ve[mr]||(Ve[mr]={projected:[],edgeLabel:Nt.label,nodeLabel2:G[Nt.to].label}),Ve[mr].projected.push({graphId:k.id,edge:Nt,preNode:it})}))})},ve=0;ve=0;ie--){var ce=b.findBackwardEdge(q,ee.edges[G[ie]],ee.edges[G[0]],ee);if(ce){var ge="".concat(b.dfsCode.dfsEdgeList[G[ie]].fromNode,"-").concat(ce.label);j[ge]||(j[ge]={projected:[],toNodeId:b.dfsCode.dfsEdgeList[G[ie]].fromNode,edgeLabel:ce.label}),j[ge].projected.push({graphId:$.graphId,edge:ce,preNode:$})}}if(!(k>=b.maxNodeNum)){var Le=b.findForwardPureEdges(q,ee.edges[G[0]],M,ee);Le.forEach(function(Re){var de="".concat(T,"-").concat(Re.label,"-").concat(te[Re.to].label);V[de]||(V[de]={projected:[],fromNodeId:T,edgeLabel:Re.label,nodeLabel2:te[Re.to].label}),V[de].projected.push({graphId:$.graphId,edge:Re,preNode:$})});for(var Oe=function(de){var ve=b.findForwardRmpathEdges(q,ee.edges[G[de]],M,ee);ve.forEach(function(be){var Ae="".concat(b.dfsCode.dfsEdgeList[G[de]].fromNode,"-").concat(be.label,"-").concat(te[be.to].label);V[Ae]||(V[Ae]={projected:[],fromNodeId:b.dfsCode.dfsEdgeList[G[de]].fromNode,edgeLabel:be.label,nodeLabel2:te[be.to].label}),V[Ae].projected.push({graphId:$.graphId,edge:be,preNode:$})})},ie=0;ieRe){var de=Re;Re=Oe,Oe=de}var ve=Le.label,be="".concat(j,"-").concat(Oe,"-").concat(ve,"-").concat(Re),Ae="".concat(Oe,"-").concat(ve,"-").concat(Re);if(!T[Ae]){var Pe=T[Ae]||0;Pe++,T[Ae]=Pe}V[be]={graphId:j,nodeLabel1:Oe,edgeLabel:ve,nodeLabel2:Re}})})}),Object.keys(G).forEach(function(j){var $=G[j];if(!($2*$)););if(Pe<2*$&&(ce["".concat(Oe,"-").concat(Ae)]={start:Oe,end:Ae,distance:ee[Oe][Ae]},Re++,ge++,ge>=q))return ce;if(de++,de>2*$)break}if(Rede&&(ge=de);var ve=q[Re.id].inDegree;Le>ve&&(Le=ve);var be=q[Re.id].outDegree;Oe>be&&(Oe=be)}),j[$]={degree:ge,inDegree:Le,outDegree:Oe}),{minPatternNodeLabelDegree:ge,minPatternNodeLabelInDegree:Le,minPatternNodeLabelOutDegree:Oe}},T=function(j,$,q,te,ee,ie,ce){var ge;if(q===void 0&&(q=!1),ie===void 0&&(ie="cluster"),ce===void 0&&(ce="cluster"),!(!j||!j.nodes)){var Le=j.nodes.length;if(!!Le){var Oe=(0,Y.default)(j,q),Re=(0,Y.default)($,q),de=A(j.nodes,Oe,q),ve=A($.nodes,Re,q),be=m(j.nodes,ie),Ae=be.nodeMap,Pe=be.nodeLabelMap,Ve=m($.nodes,ie),Ue=Ve.nodeMap,Ke=Ve.nodeLabelMap;b(j.edges,ce,Ae);var _t=b($.edges,ce,Ue).edgeLabelMap,Ct=[];Re==null||Re.forEach(function(vn){Ct=Ct.concat(vn)}),ee||(ee=Math.max.apply(Math,(0,U.__spreadArray)((0,U.__spreadArray)([],Ct,!1),[2],!1))),te||(te=ee);var He=y(j,Oe,ie,te),ht=y($,Re,ie,te),mt=Math.min(100,Le*(Le-1)/2),dt=g(te,Le,mt,He,Oe),Et=p(dt,He,j),it=10,St=1,$t=1,Nt=4,mr={graphs:Et,nodeLabelProp:ie,edgeLabelProp:ce,minSupport:St,minNodeNum:$t,maxNodeNum:Nt,directed:q},br=(0,B.default)(mr).slice(0,it),nn=br.length,In=[];br.forEach(function(vn,Un){In[Un]={},Object.keys(Et).forEach(function(ta){var Tn=Et[ta],pa=h(Tn,vn,ie,ce);In[Un][ta]=pa})});var bn=x(In,nn,br),We=bn.structure,zn=bn.structureCountMap,kn=$.nodes[0],aa=[],ri=(ge=$.nodes[0])===null||ge===void 0?void 0:ge[ie],Ia=-Infinity;$.nodes.forEach(function(vn){var Un=vn[ie],ta=Pe[Un];(ta==null?void 0:ta.length)>Ia&&(Ia=ta.length,aa=ta,ri=Un,kn=vn)});var za={},Aa={},Qa={},Oa={},La={},er={};Object.keys(Ke).forEach(function(vn,Un){La[vn]=[],q&&(er[vn]=[]);var ta=-Infinity,Tn=Ke[vn],pa={};Tn.forEach(function(oe){var R=ve["".concat(kn.id,"-").concat(oe.id)];if(R&&La[vn].push(R),taLa[vn][_e]){Ce=!0;break}if(Ce)return aa.splice(R,1),"continue";var Fe={};C.neighbors.forEach(function(Ut){var rr=de["".concat(_.id,"-").concat(Ut.id)];Fe["".concat(_.id,"-").concat(Ut.id)]={start:Ae[_.id].idx,end:Ae[Ut.id].idx,distance:rr}}),Et=p(Fe,He,j,Et);var Mt=[];Object.keys(Fe).forEach(function(Ut){if(zn[Ut]){Mt.push(zn[Ut]);return}var rr=Et[Ut];zn[Ut]=h(rr,We,ie,ce),Mt.push(zn[Ut])}),Mt=Mt.sort(function(Ut,rr){return rr-Ut});for(var yt=!1,_e=0;_e=0;se--)ct(se)});var Cr=[];aa==null||aa.forEach(function(vn){for(var Un=Ae[vn.id].idx,ta=E(j.nodes,Oe[Un],Un,ie,ee),Tn=ta.neighbors,pa=Tn.length,Q=!1,Gt=pa-1;Gt>=0;Gt--){if(Tn.length+1<$.nodes.length){Q=!0;return}var ct=Tn[Gt],se=ct[ie];if(!Ke[se]||!Ke[se].length){Tn.splice(Gt,1);continue}if(!La[se]||!La[se].length){Tn.splice(Gt,1);continue}var oe="".concat(vn.id,"-").concat(ct.id),R=de[oe],_=La[se].length-1,C=La[se][_];if(R>C){Tn.splice(Gt,1);continue}if(q){var H="".concat(ct.id,"-").concat(vn.id),ye=de[H];_=er[se].length-1;var Ce=er[se][_];if(ye>Ce){Tn.splice(Gt,1);continue}}var _e=zn[oe]?zn[oe]:k(j,vn,ct,Ae,R,He,We,ie,ce,zn,Et),Fe="".concat(kn.id,"-").concat(se),Mt=Oa[Fe][Oa[Fe].length-1];if(_e=0;R--){var Ce=ye(R);if(Ce==="break")break}if(H)return Cr.splice(Un,1),"continue";ta.edges=Gt;var _e=(0,D.default)(ta,ta.nodes[0].id,!1).length;if(Object.keys(_e).reverse().forEach(function(mn){if(!(mn===ta.nodes[0].id||H)){if(_e[mn]===Infinity){var Je=Q[mn].node[ie];if(pa[Je]--,pa[Je]un[et][un[et].length-1]){var Je=Q[mn].node[ie];if(pa[Je]--,pa[Je]=0;rr--){var Zt=ta.nodes[rr],zr=Q[Zt.id].degree,pn=Q[Zt.id].inDegree,Bt=Q[Zt.id].outDegree,ir=Zt[ie],Sr=G(za,ir,Ue,Ke),Jr=Sr.minPatternNodeLabelDegree,Wr=Sr.minPatternNodeLabelInDegree,sa=Sr.minPatternNodeLabelOutDegree,jn=q?zr=0;cn--){var _n=Gt[cn];if(!Q[_n.source]||!Q[_n.target]){Gt.splice(cn,1);var ua=_n[ce];if(ct[ua]--,Q[_n.source]&&(Q[_n.source].degree--,Q[_n.source].outDegree--),Q[_n.target]&&(Q[_n.target].degree--,Q[_n.target].inDegree--),_t[ua]&&ct[ua]<_t[ua].length){H=!0;break}Fe=!0}}Mt++}if(H||H||ta.nodes.length<$.nodes.length||Gt.length<$.edges.length)return Cr.splice(Un,1),"continue"},Vn=Fn-1;Vn>=0;Vn--){var ya=Jn(Vn);if(ya==="break")break}for(var ea=Cr.length,ti=function(Un){var ta=Cr[Un],Tn={};ta.edges.forEach(function(Gt){var ct="".concat(Gt.source,"-").concat(Gt.target,"-").concat(Gt.label);Tn[ct]?Tn[ct]++:Tn[ct]=1});for(var pa=function(ct){var se=Cr[ct],oe={};se.edges.forEach(function(_){var C="".concat(_.source,"-").concat(_.target,"-").concat(_.label);oe[C]?oe[C]++:oe[C]=1});var R=!0;Object.keys(oe).length!==Object.keys(Tn).length?R=!1:Object.keys(Tn).forEach(function(_){oe[_]!==Tn[_]&&(R=!1)}),R&&Cr.splice(ct,1)},Q=ea-1;Q>Un;Q--)pa(Q);ea=Cr.length},Vn=0;Vn<=ea-1;Vn++)ti(Vn);return Cr}}},M=T;X.default=M},5170:function(hr,X,W){"use strict";Object.defineProperty(X,"__esModule",{value:!0}),X.default=void 0;var U=B(W(62238)),Y=W(70643);function B(N){return N&&N.__esModule?N:{default:N}}var D=function(y,E,g,p){E===void 0&&(E=!1),g===void 0&&(g="weight"),p===void 0&&(p=1e3);var h=y.nodes,x=h===void 0?[]:h,m=y.edges,b=m===void 0?[]:m,A={},k={};x.forEach(function(ie,ce){var ge=(0,Y.uniqueId)();ie.clusterId=ge,A[ge]={id:ge,nodes:[ie]},k[ie.id]={node:ie,idx:ce}});var G=(0,U.default)(y,E),T=[],M={};G.forEach(function(ie,ce){var ge=0,Le=x[ce].id;M[Le]={},ie.forEach(function(Oe,Re){if(!!Oe){ge+=Oe;var de=x[Re].id;M[Le][de]=Oe}}),T.push(ge)});for(var V=0,j=function(){var ce=!1;if(x.forEach(function(ge){var Le={};Object.keys(M[ge.id]).forEach(function(Ve){var Ue=M[ge.id][Ve],Ke=k[Ve].node,_t=Ke.clusterId;Le[_t]||(Le[_t]=0),Le[_t]+=Ue});var Oe=-Infinity,Re=[];if(Object.keys(Le).forEach(function(Ve){Oe=0&&Re.splice(de,1),Re&&Re.length){ce=!0;var ve=A[ge.clusterId],be=ve.nodes.indexOf(ge);ve.nodes.splice(be,1);var Ae=Math.floor(Math.random()*Re.length),Pe=A[Re[Ae]];Pe.nodes.push(ge),ge.clusterId=Pe.id}}}),!ce)return"break";V++};V0&&Ae>Pe&&Ae-PePe&&(Ue=$.map(function(Et){return{node:Et,clusterId:Et.clusterId}}),Ke=(0,U.clone)(Le),Pe=Ae),_t||Ve>100)break;Ve++,Object.keys(Le).forEach(function(Et){var it=0;te.forEach(function(St){var $t=St.source,Nt=St.target,mr=Oe[$t].node.clusterId,br=Oe[Nt].node.clusterId;(mr===Et&&br!==Et||br===Et&&mr!==Et)&&(it=it+(St[b]||1))}),Le[Et].sumTot=it}),$.forEach(function(Et,it){var St=Le[Et.clusterId],$t=0,Nt,mr=de[it]/(2*be),br=0,nn=St.nodes;nn.forEach(function(Aa){var Qa=Oe[Aa.id].idx;br+=Re[it][Qa]||0});var In=br-St.sumTot*mr,bn=nn.filter(function(Aa){return Aa.id!==Et.id}),We=[];bn.forEach(function(Aa,Qa){We[Qa]=ee[Aa.originIndex]});var zn=E(bn,ee)*V,kn=ve[Et.id];if(Object.keys(kn).forEach(function(Aa){var Qa=Oe[Aa].node,Oa=Qa.clusterId;if(Oa!==Et.clusterId){var La=Le[Oa],er=La.nodes;if(!(!er||!er.length)){var Cr=0;er.forEach(function(ya){var ea=Oe[ya.id].idx;Cr+=Re[it][ea]||0});var an=Cr-La.sumTot*mr,un=er.concat([Et]),Fn=[];un.forEach(function(ya,ea){Fn[ea]=ee[ya.originIndex]});var Jn=E(un,ee)*V,Vn=an-In;k&&(Vn=an+Jn-(In+zn)),Vn>$t&&($t=Vn,Nt=La)}}}),$t>0){Nt.nodes.push(Et);var aa=Et.clusterId;Et.clusterId=Nt.id;var ri=St.nodes.indexOf(Et);St.nodes.splice(ri,1);var Ia=0,za=0;te.forEach(function(Aa){var Qa=Aa.source,Oa=Aa.target,La=Oe[Qa].node.clusterId,er=Oe[Oa].node.clusterId;(La===Nt.id&&er!==Nt.id||er===Nt.id&&La!==Nt.id)&&(Ia=Ia+(Aa[b]||1)),(La===aa&&er!==aa||er===aa&&La!==aa)&&(za=za+(Aa[b]||1))}),Nt.sumTot=Ia,St.sumTot=za}})}var Ct={},He=0;Object.keys(Ke).forEach(function(Et){var it=Ke[Et];if(!it.nodes||!it.nodes.length){delete Ke[Et];return}var St=String(He+1);St!==Et&&(it.id=St,it.nodes=it.nodes.map(function($t){return{id:$t.id,clusterId:St}}),Ke[St]=it,Ct[Et]=St,delete Ke[Et],He++)}),Ue.forEach(function(Et){var it=Et.node,St=Et.clusterId;!it||(it.clusterId=St,it.clusterId&&Ct[it.clusterId]&&(it.clusterId=Ct[it.clusterId]))});var ht=[],mt={};te.forEach(function(Et){var it=Et.source,St=Et.target,$t=Et[b]||1,Nt=Oe[it].node.clusterId,mr=Oe[St].node.clusterId;if(!(!Nt||!mr)){var br="".concat(Nt,"---").concat(mr);if(mt[br])mt[br].weight+=$t,mt[br].count++;else{var nn={source:Nt,target:mr,weight:$t,count:1};mt[br]=nn,ht.push(nn)}}});var dt=[];return Object.keys(Ke).forEach(function(Et){dt.push(Ke[Et])}),{clusters:dt,clusterEdges:ht}},p=g;X.default=p},89454:function(hr,X,W){"use strict";Object.defineProperty(X,"__esModule",{value:!0}),X.default=void 0;var U=D(W(38823)),Y=D(W(57085)),B=W(70643);function D(g){return g&&g.__esModule?g:{default:g}}var P=function(p,h){var x=[],m=p.nodes,b=m===void 0?[]:m,A=p.edges,k=A===void 0?[]:A;if(b.length===0)return x;var G=b[0],T=new Set;T.add(G);var M=function(ee,ie){return h?ee.weight-ie.weight:0},V=new Y.default(M);for((0,B.getEdgesByNodeId)(G.id,k).forEach(function(te){V.insert(te)});!V.isEmpty();){var j=V.delMin(),$=j.source,q=j.target;T.has($)&&T.has(q)||(x.push(j),T.has($)||(T.add($),(0,B.getEdgesByNodeId)($,k).forEach(function(te){V.insert(te)})),T.has(q)||(T.add(q),(0,B.getEdgesByNodeId)(q,k).forEach(function(te){V.insert(te)})))}return x},N=function(p,h){var x=[],m=p.nodes,b=m===void 0?[]:m,A=p.edges,k=A===void 0?[]:A;if(b.length===0)return x;var G=k.map(function($){return $});h&&G.sort(function($,q){return $.weight-q.weight});for(var T=new U.default(b.map(function($){return $.id}));G.length>0;){var M=G.shift(),V=M.source,j=M.target;T.connected(V,j)||(x.push(M),T.union(V,j))}return x},y=function(p,h,x){var m={prim:P,kruskal:N};return x?m[x](p,h):N(p,h)},E=y;X.default=E},74926:function(hr,X,W){"use strict";Object.defineProperty(X,"__esModule",{value:!0}),X.default=void 0;var U=B(W(82556)),Y=W(70643);function B(N){return N&&N.__esModule?N:{default:N}}var D=function(y,E,g){typeof E!="number"&&(E=1e-6),typeof g!="number"&&(g=.85);for(var p=1,h=0,x=1e3,m=y.nodes,b=m===void 0?[]:m,A=y.edges,k=A===void 0?[]:A,G=b.length,T,M={},V={},j=0;j0&&p>E;){h=0;for(var j=0;j0&&(T+=V[ce]/ge)}M[q]=g*T,h+=M[q]}}h=(1-h)/G,p=0;for(var j=0;j0&&(this.list[0]=P,this.moveDown(0)),D},B.prototype.insert=function(D){if(D!==null){this.list.push(D);var P=this.list.length-1;return this.moveUp(P),!0}return!1},B.prototype.moveUp=function(D){for(var P=this.getParent(D);D&&D>0&&this.compareFn(this.list[P],this.list[D])>0;){var N=this.list[P];this.list[P]=this.list[D],this.list[D]=N,D=P,P=this.getParent(D)}},B.prototype.moveDown=function(D){var P,N=D,y=this.getLeft(D),E=this.getRight(D),g=this.list.length;y!==null&&y0?N=y:E!==null&&E0&&(N=E),D!==N&&(P=[this.list[N],this.list[D]],this.list[D]=P[0],this.list[N]=P[1],this.moveDown(N))},B}(),Y=U;X.default=Y},88481:function(hr,X){"use strict";Object.defineProperty(X,"__esModule",{value:!0}),X.default=X.LinkedListNode=void 0;var W=function(P,N){return P===N},U=function(){function D(P,N){N===void 0&&(N=null),this.value=P,this.next=N}return D.prototype.toString=function(P){return P?P(this.value):"".concat(this.value)},D}();X.LinkedListNode=U;var Y=function(){function D(P){P===void 0&&(P=W),this.head=null,this.tail=null,this.compare=P}return D.prototype.prepend=function(P){var N=new U(P,this.head);return this.head=N,this.tail||(this.tail=N),this},D.prototype.append=function(P){var N=new U(P);return this.head?(this.tail.next=N,this.tail=N,this):(this.head=N,this.tail=N,this)},D.prototype.delete=function(P){if(!this.head)return null;for(var N=null;this.head&&this.compare(this.head.value,P);)N=this.head,this.head=this.head.next;var y=this.head;if(y!==null)for(;y.next;)this.compare(y.next.value,P)?(N=y.next,y.next=y.next.next):y=y.next;return this.compare(this.tail.value,P)&&(this.tail=y),N},D.prototype.find=function(P){var N=P.value,y=N===void 0?void 0:N,E=P.callback,g=E===void 0?void 0:E;if(!this.head)return null;for(var p=this.head;p;){if(g&&g(p.value)||y!==void 0&&this.compare(p.value,y))return p;p=p.next}return null},D.prototype.deleteTail=function(){var P=this.tail;if(this.head===this.tail)return this.head=null,this.tail=null,P;for(var N=this.head;N.next;)N.next.next?N=N.next:N.next=null;return this.tail=N,P},D.prototype.deleteHead=function(){if(!this.head)return null;var P=this.head;return this.head.next?this.head=this.head.next:(this.head=null,this.tail=null),P},D.prototype.fromArray=function(P){var N=this;return P.forEach(function(y){return N.append(y)}),this},D.prototype.toArray=function(){for(var P=[],N=this.head;N;)P.push(N),N=N.next;return P},D.prototype.reverse=function(){for(var P=this.head,N=null,y=null;P;)y=P.next,P.next=N,N=P,P=y;this.tail=this.head,this.head=N},D.prototype.toString=function(P){return P===void 0&&(P=void 0),this.toArray().map(function(N){return N.toString(P)}).toString()},D}(),B=Y;X.default=B},93026:function(hr,X,W){"use strict";Object.defineProperty(X,"__esModule",{value:!0}),X.default=void 0;var U=Y(W(88481));function Y(P){return P&&P.__esModule?P:{default:P}}var B=function(){function P(){this.linkedList=new U.default}return P.prototype.isEmpty=function(){return!this.linkedList.head},P.prototype.peek=function(){return this.linkedList.head?this.linkedList.head.value:null},P.prototype.enqueue=function(N){this.linkedList.append(N)},P.prototype.dequeue=function(){var N=this.linkedList.deleteHead();return N?N.value:null},P.prototype.toString=function(N){return this.linkedList.toString(N)},P}(),D=B;X.default=D},38823:function(hr,X){"use strict";Object.defineProperty(X,"__esModule",{value:!0}),X.default=void 0;var W=function(){function Y(B){this.count=B.length,this.parent={};for(var D=0,P=B;D0&&C[0]!==void 0?C[0]:1,!this.dirty){ye.next=6;break}return this.compiledBundle.context&&(R>1?this.compiledBundle.context.maxIteration=R:this.compiledBundle.context.maxIteration++),ye.next=5,this.compile();case 5:this.dirty=!1;case 6:for(this.engine.beginFrame(),this.engine.clear({}),this.compiledBundle.context&&this.compiledBundle.context.uniforms.filter(function(Ce){var _e=Ce.isReferer;return _e}).forEach(function(Ce){var _e=Ce.data,Fe=Ce.name;oe.model.confirmInput(_e.model,Fe)}),_=0;_16)throw new Error("invalid data type ".concat(_e));oe[Ce]=function(){return ye.data}}});var R=this.getOuputDataTexture(),_=R.textureWidth,C=R.texelCount;oe.u_OutputTextureSize=[_,_],oe.u_OutputTexelCount=C,this.context.output.textureSize=[_,_];var H={attributes:{a_Position:[[-1,1,0],[-1,-1,0],[1,1,0],[1,-1,0]],a_TexCoord:[[0,1],[0,0],[1,1],[1,0]]},frag:`#ifdef GL_FRAGMENT_PRECISION_HIGH + precision highp float; +#else + precision mediump float; +#endif +`.concat(this.context.shader),uniforms:oe,vert:Oa,primitive:"triangle strip",count:4};this.computeCommand=this.reGl(H)}return(0,D.Z)(Q,[{key:"run",value:function(){var ct=this;this.context.maxIteration>1&&this.context.needPingpong&&(this.compiledPingpong=!0),(this.compiledPingpong||this.dynamicPingpong)&&this.swap(),this.texFBO=this.reGl.framebuffer({color:this.getOuputDataTexture().texture}),this.texFBO.use(function(){ct.computeCommand()}),er&&console.log("[".concat(this.entity,"]: output ").concat(this.getOuputDataTexture().id))}},{key:"readData",value:function(){var Gt=(0,U.Z)(x().mark(function se(){var oe=this,R,_,C,H,ye,Ce,_e,Fe;return x().wrap(function(yt){for(;;)switch(yt.prev=yt.next){case 0:if(this.reGl({framebuffer:this.texFBO})(function(){R=oe.reGl.read()}),!R){yt.next=6;break}if(_=this.getOuputDataTexture(),C=_.originalDataLength,H=_.elementsPerTexel,ye=_.typedArrayConstructor,Ce=ye===void 0?Float32Array:ye,_e=[],H!==4)for(Fe=0;Fe2&&arguments[2]!==void 0?arguments[2]:0,R=this.context.uniforms.find(function(ye){var Ce=ye.name;return Ce===ct});if(R){var _=this.calcDataTexture(ct,R.type,se),C=_.texture,H=_.data;this.textureCache[ct].data=H,this.textureCache[ct].texture=C}}},{key:"destroy",value:function(){}},{key:"swap",value:function(){if(this.swapOutputTextureName||this.createSwapOutputDataTexture(),this.compiledPingpong){var ct=this.context.output.name;this.textureCache[ct].id=this.getOuputDataTexture().id,this.textureCache[ct].texture=this.getOuputDataTexture().texture}var se=this.outputTextureName;this.outputTextureName=this.swapOutputTextureName,this.swapOutputTextureName=se,er&&console.log("[".concat(this.entity,"]: after swap, output ").concat(this.getOuputDataTexture().id))}},{key:"getOuputDataTexture",value:function(){return this.textureCache[this.outputTextureName]}},{key:"createSwapOutputDataTexture",value:function(){var ct=this.cloneDataTexture(this.getOuputDataTexture());this.swapOutputTextureName="".concat(this.entity,"-swap"),this.textureCache[this.swapOutputTextureName]=ct}},{key:"cloneDataTexture",value:function(ct){var se=ct.data,oe=ct.textureWidth;return Qa(Qa({},ct),{},{id:La++,texture:this.reGl.texture({width:oe,height:oe,data:se,type:"float"})})}},{key:"calcDataTexture",value:function(ct,se,oe){var R=1;se===j.Vector4FloatArray&&(R=4);for(var _=[],C=0;C0&&arguments[0]!==void 0?arguments[0]:{},se=new Q;return se.setConfig(ct),se.setEngine(new Tn),se}}]),Q}()},67320:function(hr,X,W){"use strict";var U=this&&this.__createBinding||(Object.create?function(D,P,N,y){y===void 0&&(y=N);var E=Object.getOwnPropertyDescriptor(P,N);(!E||("get"in E?!P.__esModule:E.writable||E.configurable))&&(E={enumerable:!0,get:function(){return P[N]}}),Object.defineProperty(D,y,E)}:function(D,P,N,y){y===void 0&&(y=N),D[y]=P[N]}),Y=this&&this.__exportStar||function(D,P){for(var N in D)N!=="default"&&!Object.prototype.hasOwnProperty.call(P,N)&&U(P,D,N)};Object.defineProperty(X,"__esModule",{value:!0}),X.getLayoutByName=X.unRegisterLayout=X.registerLayout=void 0;var B=W(39464);Object.defineProperty(X,"registerLayout",{enumerable:!0,get:function(){return B.registerLayout}}),Object.defineProperty(X,"unRegisterLayout",{enumerable:!0,get:function(){return B.unRegisterLayout}}),Object.defineProperty(X,"getLayoutByName",{enumerable:!0,get:function(){return B.getLayoutByName}}),Y(W(64649),X)},46253:function(hr,X){"use strict";Object.defineProperty(X,"__esModule",{value:!0}),X.Base=void 0;var W=function(){function U(){this.nodes=[],this.edges=[],this.combos=[],this.comboEdges=[],this.hiddenNodes=[],this.hiddenEdges=[],this.hiddenCombos=[],this.vedges=[],this.positions=[],this.destroyed=!1,this.onLayoutEnd=function(){}}return U.prototype.layout=function(Y){return this.init(Y),this.execute(!0)},U.prototype.init=function(Y){this.nodes=Y.nodes||[],this.edges=Y.edges||[],this.combos=Y.combos||[],this.comboEdges=Y.comboEdges||[],this.hiddenNodes=Y.hiddenNodes||[],this.hiddenEdges=Y.hiddenEdges||[],this.hiddenCombos=Y.hiddenCombos||[],this.vedges=Y.vedges||[]},U.prototype.execute=function(Y){},U.prototype.executeWithWorker=function(){},U.prototype.getDefaultCfg=function(){return{}},U.prototype.updateCfg=function(Y){Y&&Object.assign(this,Y)},U.prototype.getType=function(){return"base"},U.prototype.destroy=function(){this.nodes=null,this.edges=null,this.combos=null,this.positions=null,this.destroyed=!0},U}();X.Base=W},93959:function(hr,X,W){"use strict";var U=this&&this.__extends||function(){var E=function(g,p){return E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,x){h.__proto__=x}||function(h,x){for(var m in x)Object.prototype.hasOwnProperty.call(x,m)&&(h[m]=x[m])},E(g,p)};return function(g,p){if(typeof p!="function"&&p!==null)throw new TypeError("Class extends value "+String(p)+" is not a constructor or null");E(g,p);function h(){this.constructor=g}g.prototype=p===null?Object.create(p):(h.prototype=p.prototype,new h)}}();Object.defineProperty(X,"__esModule",{value:!0}),X.CircularLayout=void 0;var Y=W(46253),B=W(8273);function D(E,g,p,h){E.forEach(function(x,m){E[m].children=[],E[m].parent=[]}),h?g.forEach(function(x){var m=(0,B.getEdgeTerminal)(x,"source"),b=(0,B.getEdgeTerminal)(x,"target"),A=0;m&&(A=p[m]);var k=0;b&&(k=p[b]);var G=E[A].children,T=E[k].parent;G.push(E[k].id),T.push(E[A].id)}):g.forEach(function(x){var m=(0,B.getEdgeTerminal)(x,"source"),b=(0,B.getEdgeTerminal)(x,"target"),A=0;m&&(A=p[m]);var k=0;b&&(k=p[b]);var G=E[A].children,T=E[k].children;G.push(E[k].id),T.push(E[A].id)})}function P(E,g,p){for(var h=p.length,x=0;xh?1:0}var y=function(E){U(g,E);function g(p){var h=E.call(this)||this;return h.radius=null,h.nodeSize=void 0,h.startRadius=null,h.endRadius=null,h.startAngle=0,h.endAngle=2*Math.PI,h.clockwise=!0,h.divisions=1,h.ordering=null,h.angleRatio=1,h.nodes=[],h.edges=[],h.nodeMap={},h.degrees=[],h.width=300,h.height=300,h.updateCfg(p),h}return g.prototype.getDefaultCfg=function(){return{radius:null,startRadius:null,endRadius:null,startAngle:0,endAngle:2*Math.PI,clockwise:!0,divisions:1,ordering:null,angleRatio:1}},g.prototype.execute=function(){var p,h=this,x=h.nodes,m=h.edges,b=x.length;if(b===0){h.onLayoutEnd&&h.onLayoutEnd();return}!h.width&&typeof window!="undefined"&&(h.width=window.innerWidth),!h.height&&typeof window!="undefined"&&(h.height=window.innerHeight),h.center||(h.center=[h.width/2,h.height/2]);var A=h.center;if(b===1){x[0].x=A[0],x[0].y=A[1],h.onLayoutEnd&&h.onLayoutEnd();return}var k=h.radius,G=h.startRadius,T=h.endRadius,M=h.divisions,V=h.startAngle,j=h.endAngle,$=h.angleRatio,q=h.ordering,te=h.clockwise,ee=h.nodeSpacing,ie=h.nodeSize,ce=(j-V)/b,ge={};x.forEach(function(_t,Ct){ge[_t.id]=Ct}),h.nodeMap=ge;var Le=(0,B.getDegree)(x.length,ge,m);if(h.degrees=Le,ee){var Oe=(0,B.getFuncByUnknownType)(10,ee),Re=(0,B.getFuncByUnknownType)(10,ie),de=-Infinity;x.forEach(function(_t){var Ct=Re(_t);deh.width?h.width/2:h.height/2:!G&&T?G=T:G&&!T&&(T=G);var be=ce*$,Ae=[];q==="topology"?Ae=h.topologyOrdering():q==="topology-directed"?Ae=h.topologyOrdering(!0):q==="degree"?Ae=h.degreeOrdering():Ae=x;for(var Pe=Math.ceil(b/M),Ve=0;Ve=0;Re--)Oe(Re);return{nodes:x,edges:m,combos:b,comboEdges:A}},g.prototype.getInnerGraphs=function(p){var h=this,x=h.comboTrees,m=h.nodeSize,b=h.edges,A=h.comboPadding,k=h.spacing,G={},T=this.innerLayout||new N.ConcentricLayout({type:"concentric",sortBy:"id"});return T.center=[0,0],T.preventOverlap=!0,T.nodeSpacing=k,(x||[]).forEach(function(M){(0,P.traverseTreeUp)(M,function(V){var j,$=(A==null?void 0:A(V))||10;if((0,P.isArray)($)&&($=Math.max.apply(Math,$)),(j=V.children)===null||j===void 0?void 0:j.length){var te=V.children.map(function(Pe){if(Pe.itemType==="combo")return G[Pe.id];var Ve=p[Pe.id]||{};return Y(Y({},Ve),Pe)}),ee=te.map(function(Pe){return Pe.id}),ie={nodes:te,edges:b.filter(function(Pe){return ee.includes(Pe.source)&&ee.includes(Pe.target)})},ce=Infinity;te.forEach(function(Pe){var Ve;Pe.size||(Pe.size=((Ve=G[Pe.id])===null||Ve===void 0?void 0:Ve.size)||(m==null?void 0:m(Pe))||[30,30]),(0,P.isNumber)(Pe.size)&&(Pe.size=[Pe.size,Pe.size]),ce>Pe.size[0]&&(ce=Pe.size[0]),ce>Pe.size[1]&&(ce=Pe.size[1])}),T.layout(ie);var ge=(0,P.getLayoutBBox)(te),Le=ge.minX,Oe=ge.minY,Re=ge.maxX,de=ge.maxY,ve={x:(Re+Le)/2,y:(de+Oe)/2};ie.nodes.forEach(function(Pe){Pe.x-=ve.x,Pe.y-=ve.y});var be=Math.max(Re-Le,ce)+$*2,Ae=Math.max(de-Oe,ce)+$*2;G[V.id]={id:V.id,nodes:te,size:[be,Ae]}}else if(V.itemType==="combo"){var q=$?[$*2,$*2]:[30,30];G[V.id]={id:V.id,nodes:[],size:q}}return!0})}),G},g.prototype.initVals=function(){var p=this,h=p.nodeSize,x=p.spacing,m,b;if((0,P.isNumber)(x)?b=function(){return x}:(0,P.isFunction)(x)?b=x:b=function(){return 0},this.spacing=b,!h)m=function(V){var j=b(V);if(V.size){if((0,P.isArray)(V.size)){var $=V.size[0]>V.size[1]?V.size[0]:V.size[1];return($+j)/2}if((0,P.isObject)(V.size)){var $=V.size.width>V.size.height?V.size.width:V.size.height;return($+j)/2}return(V.size+j)/2}return 10+j/2};else if((0,P.isFunction)(h))m=function(V){var j=h(V),$=b(V);if((0,P.isArray)(V.size)){var q=V.size[0]>V.size[1]?V.size[0]:V.size[1];return(q+$)/2}return((j||10)+$)/2};else if((0,P.isArray)(h)){var A=h[0]>h[1]?h[0]:h[1],k=A/2;m=function(V){return k+b(V)/2}}else{var G=h/2;m=function(V){return G+b(V)/2}}this.nodeSize=m;var T=p.comboPadding,M;(0,P.isNumber)(T)?M=function(){return T}:(0,P.isArray)(T)?M=function(){return Math.max.apply(null,T)}:(0,P.isFunction)(T)?M=T:M=function(){return 0},this.comboPadding=M},g.prototype.getType=function(){return"comboCombined"},g}(D.Base);X.ComboCombinedLayout=y},48133:function(hr,X,W){"use strict";var U=this&&this.__extends||function(){var P=function(N,y){return P=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(E,g){E.__proto__=g}||function(E,g){for(var p in g)Object.prototype.hasOwnProperty.call(g,p)&&(E[p]=g[p])},P(N,y)};return function(N,y){if(typeof y!="function"&&y!==null)throw new TypeError("Class extends value "+String(y)+" is not a constructor or null");P(N,y);function E(){this.constructor=N}N.prototype=y===null?Object.create(y):(E.prototype=y.prototype,new E)}}();Object.defineProperty(X,"__esModule",{value:!0}),X.ComboForceLayout=void 0;var Y=W(46253),B=W(8273),D=function(P){U(N,P);function N(y){var E=P.call(this)||this;return E.center=[0,0],E.maxIteration=100,E.gravity=10,E.comboGravity=10,E.linkDistance=10,E.alpha=1,E.alphaMin=.001,E.alphaDecay=1-Math.pow(E.alphaMin,1/300),E.alphaTarget=0,E.velocityDecay=.6,E.edgeStrength=.6,E.nodeStrength=30,E.preventOverlap=!1,E.preventNodeOverlap=!1,E.preventComboOverlap=!1,E.collideStrength=void 0,E.nodeCollideStrength=.5,E.comboCollideStrength=.5,E.comboSpacing=20,E.comboPadding=10,E.optimizeRangeFactor=1,E.onTick=function(){},E.onLayoutEnd=function(){},E.depthAttractiveForceScale=1,E.depthRepulsiveForceScale=2,E.nodes=[],E.edges=[],E.combos=[],E.comboTrees=[],E.width=300,E.height=300,E.bias=[],E.nodeMap={},E.oriComboMap={},E.indexMap={},E.comboMap={},E.previousLayouted=!1,E.updateCfg(y),E}return N.prototype.getDefaultCfg=function(){return{maxIteration:100,center:[0,0],gravity:10,speed:1,comboGravity:30,preventOverlap:!1,preventComboOverlap:!0,preventNodeOverlap:!0,nodeSpacing:void 0,collideStrength:void 0,nodeCollideStrength:.5,comboCollideStrength:.5,comboSpacing:20,comboPadding:10,edgeStrength:.6,nodeStrength:30,linkDistance:10}},N.prototype.execute=function(){var y=this,E=y.nodes,g=y.center;if(y.comboTree={id:"comboTreeRoot",depth:-1,children:y.comboTrees},!E||E.length===0){y.onLayoutEnd&&y.onLayoutEnd();return}if(E.length===1){E[0].x=g[0],E[0].y=g[1],y.onLayoutEnd&&y.onLayoutEnd();return}y.initVals(),y.run(),y.onLayoutEnd&&y.onLayoutEnd()},N.prototype.run=function(){var y=this,E=y.nodes,g=y.previousLayouted?y.maxIteration/5:y.maxIteration;!y.width&&typeof window!="undefined"&&(y.width=window.innerWidth),!y.height&&typeof window!="undefined"&&(y.height=window.innerHeight);var p=y.center,h=y.velocityDecay,x=y.comboMap;y.previousLayouted||y.initPos(x);for(var m=function(G){var T=[];E.forEach(function(M,V){T[V]={x:0,y:0}}),y.applyCalculate(T),y.applyComboCenterForce(T),E.forEach(function(M,V){!(0,B.isNumber)(M.x)||!(0,B.isNumber)(M.y)||(M.x+=T[V].x*h,M.y+=T[V].y*h)}),y.alpha+=(y.alphaTarget-y.alpha)*y.alphaDecay,y.onTick()},b=0;bUe.size[1]?Ue.size[0]:Ue.size[1];return Ke/2}if((0,B.isObject)(Ue.size)){var Ke=Ue.size.width>Ue.size.height?Ue.size.width:Ue.size.height;return Ke/2}return Ue.size/2}return 10};else if((0,B.isFunction)(j))q=function(Ue){return j(Ue)};else if((0,B.isArray)(j)){var ee=j[0]>j[1]?j[0]:j[1],ie=ee/2;q=function(Ue){return ie}}else{var ce=j/2;q=function(Ue){return ce}}this.nodeSize=q;var ge=y.comboSpacing,Le;(0,B.isNumber)(ge)?Le=function(){return ge}:(0,B.isFunction)(ge)?Le=ge:Le=function(){return 0},this.comboSpacing=Le;var Oe=y.comboPadding,Re;(0,B.isNumber)(Oe)?Re=function(){return Oe}:(0,B.isArray)(Oe)?Re=function(){return Math.max.apply(null,Oe)}:(0,B.isFunction)(Oe)?Re=Oe:Re=function(){return 0},this.comboPadding=Re;var de=this.linkDistance,ve;de||(de=10),(0,B.isNumber)(de)?ve=function(Ue){return de}:ve=de,this.linkDistance=ve;var be=this.edgeStrength,Ae;be||(be=1),(0,B.isNumber)(be)?Ae=function(Ue){return be}:Ae=be,this.edgeStrength=Ae;var Pe=this.nodeStrength,Ve;Pe||(Pe=30),(0,B.isNumber)(Pe)?Ve=function(Ue){return Pe}:Ve=Pe,this.nodeStrength=Ve},N.prototype.initPos=function(y){var E=this,g=E.nodes;g.forEach(function(p,h){var x=p.comboId,m=y[x];x&&m?(p.x=m.cx+100/(h+1),p.y=m.cy+100/(h+1)):(p.x=100/(h+1),p.y=100/(h+1))})},N.prototype.getComboMap=function(){var y=this,E=y.nodeMap,g=y.comboTrees,p=y.oriComboMap,h={};return(g||[]).forEach(function(x){var m=[];(0,B.traverseTreeUp)(x,function(b){if(b.itemType==="node"||!p[b.id])return!0;if(h[b.id]===void 0){var A={id:b.id,name:b.id,cx:0,cy:0,count:0,depth:y.oriComboMap[b.id].depth||0,children:[]};h[b.id]=A}var k=b.children;k&&k.forEach(function(M){if(!h[M.id]&&!E[M.id])return!0;m.push(M)});var G=h[b.id];if(G.cx=0,G.cy=0,m.length===0){G.empty=!0;var T=p[b.id];G.cx=T.x,G.cy=T.y}return m.forEach(function(M){if(G.count++,M.itemType!=="node"){var V=h[M.id];(0,B.isNumber)(V.cx)&&(G.cx+=V.cx),(0,B.isNumber)(V.cy)&&(G.cy+=V.cy);return}var j=E[M.id];!j||((0,B.isNumber)(j.x)&&(G.cx+=j.x),(0,B.isNumber)(j.y)&&(G.cy+=j.y))}),G.cx/=G.count||1,G.cy/=G.count||1,G.children=m,!0})}),h},N.prototype.applyComboCenterForce=function(y){var E=this,g=E.gravity,p=E.comboGravity||g,h=this.alpha,x=E.comboTrees,m=E.indexMap,b=E.nodeMap,A=E.comboMap;(x||[]).forEach(function(k){(0,B.traverseTreeUp)(k,function(G){if(G.itemType==="node")return!0;var T=A[G.id];if(!T)return!0;var M=A[G.id],V=(M.depth+1)/10*.5,j=M.cx,$=M.cy;return M.cx=0,M.cy=0,M.children.forEach(function(q){if(q.itemType!=="node"){var te=A[q.id];te&&(0,B.isNumber)(te.cx)&&(M.cx+=te.cx),te&&(0,B.isNumber)(te.cy)&&(M.cy+=te.cy);return}var ee=b[q.id],ie=ee.x-j||.005,ce=ee.y-$||.005,ge=Math.sqrt(ie*ie+ce*ce),Le=m[ee.id],Oe=p*h/ge*V;y[Le].x-=ie*Oe,y[Le].y-=ce*Oe,(0,B.isNumber)(ee.x)&&(M.cx+=ee.x),(0,B.isNumber)(ee.y)&&(M.cy+=ee.y)}),M.cx/=M.count||1,M.cy/=M.count||1,!0})})},N.prototype.applyCalculate=function(y){var E=this,g=E.comboMap,p=E.nodes,h={};p.forEach(function(m,b){p.forEach(function(A,k){if(!(bte&&(G.minX=te),G.minY>ee&&(G.minY=ee),G.maxX1&&A.forEach(function(k,G){if(k.itemType==="node")return!1;var T=E[k.id];!T||A.forEach(function(M,V){if(G<=V||M.itemType==="node")return!1;var j=E[M.id];if(!j)return!1;var $=T.cx-j.cx||.005,q=T.cy-j.cy||.005,te=$*$+q*q,ee=T.r||1,ie=j.r||1,ce=ee+ie,ge=ie*ie,Le=ee*ee;if(teh)){var Re=E["".concat(V.id,"-").concat(ie.id)],de=Re.vx,ve=Re.vy,be=Math.log(Math.abs(ie.depth-V.depth)/10)+1||1;be=be<1?1:be,ie.comboId!==V.comboId&&(be+=1);var Ae=be?Math.pow(T,be):1,Pe=x(ie)*m/Le*Ae;if(y[j].x+=de*Pe,y[j].y+=ve*Pe,j0){var Ae=Math.abs(q[0][g.sortBy]-be[g.sortBy]);g.maxLevelDiff&&Ae>=g.maxLevelDiff&&(q=[],$.push(q))}q.push(be)});var te=G+(T||g.minNodeSpacing);if(!g.preventOverlap){var ee=$.length>0&&$[0].length>1,ie=Math.min(g.width,g.height)/2-te,ce=ie/($.length+(ee?1:0));te=Math.min(te,ce)}var ge=0;if($.forEach(function(be){var Ae=g.sweep;Ae===void 0&&(Ae=2*Math.PI-2*Math.PI/be.length);var Pe=be.dTheta=Ae/Math.max(1,be.length-1);if(be.length>1&&g.preventOverlap){var Ve=Math.cos(Pe)-Math.cos(0),Ue=Math.sin(Pe)-Math.sin(0),Ke=Math.sqrt(te*te/(Ve*Ve+Ue*Ue));ge=Math.max(Ke,ge)}be.r=ge,ge+=te}),g.equidistant){for(var Le=0,Oe=0,Re=0;Re<$.length;Re++){var de=$[Re],ve=de.r-Oe;Le=Math.max(Le,ve)}Oe=0,$.forEach(function(be,Ae){Ae===0&&(Oe=be.r),be.r=Oe,Oe+=Le})}return $.forEach(function(be){var Ae=be.dTheta,Pe=be.r;be.forEach(function(Ve,Ue){var Ke=g.startAngle+(g.clockwise?1:-1)*Ae*Ue;Ve.x=m[0]+Pe*Math.cos(Ke),Ve.y=m[1]+Pe*Math.sin(Ke)})}),g.onLayoutEnd&&g.onLayoutEnd(),{nodes:p,edges:h}},N.prototype.getType=function(){return"concentric"},N}(B.Base);X.ConcentricLayout=D},24979:function(hr,X){"use strict";Object.defineProperty(X,"__esModule",{value:!0}),X.FORCE_LAYOUT_TYPE_MAP=X.LAYOUT_MESSAGE=void 0,X.LAYOUT_MESSAGE={RUN:"LAYOUT_RUN",END:"LAYOUT_END",ERROR:"LAYOUT_ERROR",TICK:"LAYOUT_TICK",GPURUN:"GPU_LAYOUT_RUN",GPUEND:"GPU_LAYOUT_END"},X.FORCE_LAYOUT_TYPE_MAP={gForce:!0,force2:!0,fruchterman:!0,forceAtlas2:!0,force:!0,"graphin-force":!0}},2:function(hr,X,W){"use strict";var U=this&&this.__extends||function(){var g=function(p,h){return g=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,m){x.__proto__=m}||function(x,m){for(var b in m)Object.prototype.hasOwnProperty.call(m,b)&&(x[b]=m[b])},g(p,h)};return function(p,h){if(typeof h!="function"&&h!==null)throw new TypeError("Class extends value "+String(h)+" is not a constructor or null");g(p,h);function x(){this.constructor=p}p.prototype=h===null?Object.create(h):(x.prototype=h.prototype,new x)}}(),Y=this&&this.__importDefault||function(g){return g&&g.__esModule?g:{default:g}};Object.defineProperty(X,"__esModule",{value:!0}),X.DagreLayout=void 0;var B=Y(W(53186)),D=W(8273),P=W(46253),N=W(67858),y=function(g){U(p,g);function p(h){var x=g.call(this)||this;return x.rankdir="TB",x.nodesep=50,x.ranksep=50,x.controlPoints=!1,x.sortByCombo=!1,x.edgeLabelSpace=!0,x.radial=!1,x.nodes=[],x.edges=[],x.onLayoutEnd=function(){},x.layoutNode=function(m){var b=x,A=b.nodes,k=A.find(function(T){return T.id===m});if(k){var G=k.layout!==!1;return G}return!0},x.updateCfg(h),x}return p.prototype.getDefaultCfg=function(){return{rankdir:"TB",align:void 0,nodeSize:void 0,nodesepFunc:void 0,ranksepFunc:void 0,nodesep:50,ranksep:50,controlPoints:!1,radial:!1,focusNode:null}},p.prototype.execute=function(){var h=this,x,m,b,A,k=this,G=k.nodes,T=k.nodeSize,M=k.rankdir,V=k.combos,j=k.begin,$=k.radial,q=k.comboEdges,te=q===void 0?[]:q,ee=k.vedges,ie=ee===void 0?[]:ee;if(!!G){var ce=k.edges||[],ge=new N.Graph({multigraph:!0,compound:!0});k.nodeMap={};var Le={};G.forEach(function(er){k.nodeMap[er.id]=er,!!er.comboId&&(Le[er.comboId]=Le[er.comboId]||[],Le[er.comboId].push(er.id))});var Oe=[],Re={};((x=k.nodeOrder)===null||x===void 0?void 0:x.length)?(k.nodeOrder.forEach(function(er){Re[er]=!0,Oe.push(k.nodeMap[er])}),G.forEach(function(er){Re[er.id]||Oe.push(er)})):Oe=G;var de;T?(0,D.isArray)(T)?de=function(){return T}:de=function(){return[T,T]}:de=function(er){return er.size?(0,D.isArray)(er.size)?er.size:(0,D.isObject)(er.size)?[er.size.width||40,er.size.height||40]:[er.size,er.size]:[40,40]};var ve=(0,D.getFunc)(k.ranksep,50,k.ranksepFunc),be=(0,D.getFunc)(k.nodesep,50,k.nodesepFunc),Ae=be,Pe=ve;(M==="LR"||M==="RL")&&(Ae=ve,Pe=be),ge.setDefaultEdgeLabel(function(){return{}}),ge.setGraph(k);var Ve={};this.sortByCombo&&V&&V.forEach(function(er){if(Ve[er.id]=er,er.collapsed){var Cr=de(er),an=Pe(er),un=Ae(er),Fn=Cr[0]+2*un,Jn=Cr[1]+2*an;ge.setNode(er.id,{width:Fn,height:Jn})}!er.parentId||(Ve[er.parentId]||ge.setNode(er.parentId,{}),ge.setParent(er.id,er.parentId))}),Oe.filter(function(er){return er.layout!==!1}).forEach(function(er){var Cr=de(er),an=Pe(er),un=Ae(er),Fn=Cr[0]+2*un,Jn=Cr[1]+2*an,Vn=er.layer;(0,D.isNumber)(Vn)?ge.setNode(er.id,{width:Fn,height:Jn,layer:Vn}):ge.setNode(er.id,{width:Fn,height:Jn}),h.sortByCombo&&er.comboId&&(Ve[er.comboId]||(Ve[er.comboId]={id:er.comboId},ge.setNode(er.comboId,{})),ge.setParent(er.id,er.comboId))}),ce.forEach(function(er){var Cr=(0,D.getEdgeTerminal)(er,"source"),an=(0,D.getEdgeTerminal)(er,"target");h.layoutNode(Cr)&&h.layoutNode(an)&&ge.setEdge(Cr,an,{weight:er.weight||1})}),(m=te==null?void 0:te.concat(ie||[]))===null||m===void 0||m.forEach(function(er){var Cr,an,un=er.source,Fn=er.target,Jn=((Cr=Ve[un])===null||Cr===void 0?void 0:Cr.collapsed)?[un]:Le[un]||[un],Vn=((an=Ve[Fn])===null||an===void 0?void 0:an.collapsed)?[Fn]:Le[Fn]||[Fn];Jn.forEach(function(ya){Vn.forEach(function(ea){ge.setEdge(ya,ea,{weight:er.weight||1})})})});var Ue=void 0;((b=k.preset)===null||b===void 0?void 0:b.nodes)&&(Ue=new N.Graph({multigraph:!0,compound:!0}),k.preset.nodes.forEach(function(er){Ue==null||Ue.setNode(er.id,er)})),B.default.layout(ge,{prevGraph:Ue,edgeLabelSpace:k.edgeLabelSpace,keepNodeOrder:Boolean(!!k.nodeOrder),nodeOrder:k.nodeOrder});var Ke=[0,0];if(j){var _t=Infinity,Ct=Infinity;ge.nodes().forEach(function(er){var Cr=ge.node(er);_t>Cr.x&&(_t=Cr.x),Ct>Cr.y&&(Ct=Cr.y)}),ge.edges().forEach(function(er){var Cr,an=ge.edge(er);(Cr=an.points)===null||Cr===void 0||Cr.forEach(function(un){_t>un.x&&(_t=un.x),Ct>un.y&&(Ct=un.y)})}),Ke[0]=j[0]-_t,Ke[1]=j[1]-Ct}var He=M==="LR"||M==="RL";if($){var ht=this,mt=ht.focusNode,dt=ht.ranksep,Et=ht.getRadialPos,it=(0,D.isString)(mt)?mt:mt==null?void 0:mt.id,St=it?(A=ge.node(it))===null||A===void 0?void 0:A._rank:0,$t=[],Nt=He?"y":"x",mr=He?"height":"width",br=Infinity,nn=-Infinity;ge.nodes().forEach(function(er){var Cr=ge.node(er);if(!!k.nodeMap[er]){var an=be(k.nodeMap[er]);if(St===0)$t[Cr._rank]||($t[Cr._rank]={nodes:[],totalWidth:0,maxSize:-Infinity}),$t[Cr._rank].nodes.push(er),$t[Cr._rank].totalWidth+=an*2+Cr[mr],$t[Cr._rank].maxSizenn&&(nn=Vn)}});var In=dt||50,bn={},We=(nn-br)/.9,zn=[(br+nn-We)*.5,(br+nn+We)*.5],kn=function(er,Cr,an,un){an===void 0&&(an=-Infinity),un===void 0&&(un=[0,1]);var Fn=an;return er.forEach(function(Jn){var Vn=ge.node(Jn);bn[Jn]=Cr;var ya=Et(Vn[Nt],zn,We,Cr,un),ea=ya.x,ti=ya.y;if(!!k.nodeMap[Jn]){k.nodeMap[Jn].x=ea+Ke[0],k.nodeMap[Jn].y=ti+Ke[1],k.nodeMap[Jn]._order=Vn._order;var vn=ve(k.nodeMap[Jn]);Fn=Fn})}:function(er,Cr,an){var un=Math.max(Cr.x,an.x),Fn=Math.min(Cr.x,an.x);return er.filter(function(Jn){return Jn.x<=un&&Jn.x>=Fn})};ge.edges().forEach(function(er){var Cr,an=ge.edge(er),un=ce.findIndex(function(Vn){var ya=(0,D.getEdgeTerminal)(Vn,"source"),ea=(0,D.getEdgeTerminal)(Vn,"target");return ya===er.v&&ea===er.w});if(!(un<=-1)&&k.edgeLabelSpace&&k.controlPoints&&ce[un].type!=="loop"){(Cr=an==null?void 0:an.points)===null||Cr===void 0||Cr.forEach(function(Vn){Vn.x+=Ke[0],Vn.y+=Ke[1]});var Fn=k.nodeMap[er.v],Jn=k.nodeMap[er.w];ce[un].controlPoints=E(an==null?void 0:an.points,Fn,Jn,Qa,He,Oa,La)}})}return k.onLayoutEnd&&k.onLayoutEnd(),{nodes:G,edges:ce}}},p.prototype.getRadialPos=function(h,x,m,b,A){A===void 0&&(A=[0,1]);var k=(h-x[0])/m;k=k*(A[1]-A[0])+A[0];var G=k*2*Math.PI;return{x:Math.cos(G)*b,y:Math.sin(G)*b}},p.prototype.getType=function(){return"dagre"},p}(P.Base);X.DagreLayout=y;var E=function(g,p,h,x,m,b,A){var k=(g==null?void 0:g.slice(1,g.length-1))||[];if(p&&h){var G=p.x,T=p.y,M=h.x,V=h.y;if(m&&(G=p.y,T=p.x,M=h.y,V=h.x),V!==T&&G!==M){var j=x.indexOf(T),$=x[j+1];if($){var q=k[0],te=m?{x:(T+$)/2,y:(q==null?void 0:q.y)||M}:{x:(q==null?void 0:q.x)||M,y:(T+$)/2};(!q||b(q,te))&&k.unshift(te)}var ee=x.indexOf(V),ie=Math.abs(ee-j);if(ie===1)k=A(k,p,h),k.length||k.push(m?{x:(T+V)/2,y:G}:{x:G,y:(T+V)/2});else if(ie>1){var ce=x[ee-1];if(ce){var ge=k[k.length-1],Le=m?{x:(V+ce)/2,y:(ge==null?void 0:ge.y)||M}:{x:(ge==null?void 0:ge.x)||G,y:(V+ce)/2};(!ge||b(ge,Le))&&k.push(Le)}}}}return k}},77620:function(hr,X,W){"use strict";var U=this&&this.__extends||function(){var E=function(g,p){return E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,x){h.__proto__=x}||function(h,x){for(var m in x)Object.prototype.hasOwnProperty.call(x,m)&&(h[m]=x[m])},E(g,p)};return function(g,p){if(typeof p!="function"&&p!==null)throw new TypeError("Class extends value "+String(p)+" is not a constructor or null");E(g,p);function h(){this.constructor=g}g.prototype=p===null?Object.create(p):(h.prototype=p.prototype,new h)}}(),Y=this&&this.__assign||function(){return Y=Object.assign||function(E){for(var g,p=1,h=arguments.length;pG.x&&(A=G.x),k>G.y&&(k=G.y)}),h.forEach(function(G){G.points.forEach(function(T){A>T.x&&(A=T.x),k>T.y&&(k=T.y)})}),b[0]=m[0]-A,b[1]=m[1]-k}return b},g.prototype.updateNodePosition=function(p,h){var x=this,m=x.combos,b=x.nodes,A=x.edges,k=x.anchorPoint,G=x.graphSettings,T=this.getBegin(p,h);p.forEach(function(M){var V,j=M.x,$=M.y,q=M.id,te=M.type,ee=M.coreBox;if(te===P.HierarchyNodeType.META&&q!==P.ROOT_NAME){var ie=m.findIndex(function(Re){return Re.id===q}),ce=(V=G==null?void 0:G.subScene)===null||V===void 0?void 0:V.meta;m[ie].offsetX=j+T[0],m[ie].offsetY=$+T[1],m[ie].fixSize=[ee.width,ee.height],m[ie].fixCollapseSize=[ee.width,ee.height],M.expanded?m[ie].padding=[ce==null?void 0:ce.paddingTop,ce==null?void 0:ce.paddingRight,ce==null?void 0:ce.paddingBottom,ce==null?void 0:ce.paddingLeft]:m[ie].padding=[0,0,0,0]}else if(te===P.HierarchyNodeType.OP){var ie=b.findIndex(function(de){return de.id===q});if(b[ie].x=j+T[0],b[ie].y=$+T[1],k){var ge=[],Le=h.filter(function(de){return de.v===q}),Oe=h.filter(function(de){return de.w===q});Le.length>0&&Le.forEach(function(de){var ve=de.points[0],be=(ve.x-j)/M.width+.5,Ae=(ve.y-$)/M.height+.5;ge.push([be,Ae]),de.baseEdgeList.forEach(function(Pe){var Ve=A.find(function(Ue){return Ue.source===Pe.v&&Ue.target===Pe.w});Ve&&(Ve.sourceAnchor=ge.length-1)})}),Oe.length>0&&Oe.forEach(function(de){var ve=de.points[de.points.length-1],be=(ve.x-j)/M.width+.5,Ae=(ve.y-$)/M.height+.5;ge.push([be,Ae]),de.baseEdgeList.forEach(function(Pe){var Ve=A.find(function(Ue){return Ue.source===Pe.v&&Ue.target===Pe.w});Ve&&(Ve.targetAnchor=ge.length-1)})}),b[ie].anchorPoints=ge.length>0?ge:b[ie].anchorPoints||[]}}})},g.prototype.updateEdgePosition=function(p,h){var x=this,m=x.combos,b=x.edges,A=x.controlPoints,k=this.getBegin(p,h);A&&(m.forEach(function(G){G.inEdges=[],G.outEdges=[]}),b.forEach(function(G){var T,M,V,j,$=p.find(function(Re){return Re.id===G.source}),q=p.find(function(Re){return Re.id===G.target}),te=[],ee=[];if($&&q)ee=(0,P.getEdges)($==null?void 0:$.id,q==null?void 0:q.id,p);else if(!$||!q){var ie=x.getNodePath(G.source),ce=x.getNodePath(G.target),ge=ie.reverse().slice($?0:1).find(function(Re){return p.find(function(de){return de.id===Re})}),Le=ce.reverse().slice(q?0:1).find(function(Re){return p.find(function(de){return de.id===Re})});$=p.find(function(Re){return Re.id===ge}),q=p.find(function(Re){return Re.id===Le}),ee=(0,P.getEdges)($==null?void 0:$.id,q==null?void 0:q.id,p,{v:G.source,w:G.target})}if(te=ee.reduce(function(Re,de){return B(B([],Re,!0),de.points.map(function(ve){return Y(Y({},ve),{x:ve.x+k[0],y:ve.y+k[1]})}),!0)},[]),te=te.slice(1,-1),G.controlPoints=te,(q==null?void 0:q.type)===P.NodeType.META){var Oe=m.findIndex(function(Re){return Re.id===(q==null?void 0:q.id)});if(!m[Oe]||((T=m[Oe].inEdges)===null||T===void 0?void 0:T.some(function(Re){return Re.source===$.id&&Re.target===q.id})))return;(M=m[Oe].inEdges)===null||M===void 0||M.push({source:$.id,target:q.id,controlPoints:te})}if(($==null?void 0:$.type)===P.NodeType.META){var Oe=m.findIndex(function(de){return de.id===($==null?void 0:$.id)});if(!m[Oe]||((V=m[Oe].outEdges)===null||V===void 0?void 0:V.some(function(de){return de.source===$.id&&de.target===q.id})))return;(j=m[Oe].outEdges)===null||j===void 0||j.push({source:$.id,target:q.id,controlPoints:te})}}))},g.prototype.getType=function(){return"dagreCompound"},g.prototype.getDataByOrder=function(p){return p.every(function(h){return h.layoutOrder!==void 0})||p.forEach(function(h,x){h.layoutOrder=x}),p.sort(function(h,x){return h.layoutOrder-x.layoutOrder})},g}(D.Base);X.DagreCompoundLayout=y},67858:function(hr,X,W){"use strict";var U=this&&this.__extends||function(){var D=function(P,N){return D=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,E){y.__proto__=E}||function(y,E){for(var g in E)Object.prototype.hasOwnProperty.call(E,g)&&(y[g]=E[g])},D(P,N)};return function(P,N){if(typeof N!="function"&&N!==null)throw new TypeError("Class extends value "+String(N)+" is not a constructor or null");D(P,N);function y(){this.constructor=P}P.prototype=N===null?Object.create(N):(y.prototype=N.prototype,new y)}}();Object.defineProperty(X,"__esModule",{value:!0}),X.Graph=void 0;var Y=W(69787),B=function(D){U(P,D);function P(){return D!==null&&D.apply(this,arguments)||this}return P}(Y.Graph);X.Graph=B},53186:function(hr,X,W){"use strict";var U=this&&this.__importDefault||function(D){return D&&D.__esModule?D:{default:D}};Object.defineProperty(X,"__esModule",{value:!0});var Y=U(W(86282)),B=W(95869);X.default={layout:Y.default,util:{time:B.time,notime:B.notime}}},65721:function(hr,X,W){"use strict";var U=this&&this.__importDefault||function(N){return N&&N.__esModule?N:{default:N}};Object.defineProperty(X,"__esModule",{value:!0});var Y=U(W(81628)),B=function(N){var y=function(g){return function(p){var h;return((h=g.edge(p))===null||h===void 0?void 0:h.weight)||1}},E=N.graph().acyclicer==="greedy"?(0,Y.default)(N,y(N)):D(N);E==null||E.forEach(function(g){var p=N.edge(g);N.removeEdgeObj(g),p.forwardName=g.name,p.reversed=!0,N.setEdge(g.w,g.v,p,"rev-".concat(Math.random()))})},D=function(N){var y=[],E={},g={},p=function(h){var x;g[h]||(g[h]=!0,E[h]=!0,(x=N.outEdges(h))===null||x===void 0||x.forEach(function(m){E[m.w]?y.push(m):p(m.w)}),delete E[h])};return N.nodes().forEach(p),y},P=function(N){N.edges().forEach(function(y){var E=N.edge(y);if(E.reversed){N.removeEdgeObj(y);var g=E.forwardName;delete E.reversed,delete E.forwardName,N.setEdge(y.w,y.v,E,g)}})};X.default={run:B,undo:P}},88597:function(hr,X,W){"use strict";Object.defineProperty(X,"__esModule",{value:!0});var U=W(95869),Y=function(D){var P,N=function(y){var E=D.children(y),g=D.node(y);if((E==null?void 0:E.length)&&E.forEach(function(x){return N(x)}),g.hasOwnProperty("minRank")){g.borderLeft=[],g.borderRight=[];for(var p=g.minRank,h=g.maxRank+1;p0;--V)if(M=b[V].dequeue(),M){k=k.concat(p(m,b,A,M,!0));break}}}return k},p=function(m,b,A,k,G){var T,M,V=[];return(T=m.inEdges(k.v))===null||T===void 0||T.forEach(function(j){var $=m.edge(j),q=m.node(j.v);G&&V.push({v:j.v,w:j.w,in:0,out:0}),q.out===void 0&&(q.out=0),q.out-=$,x(b,A,q)}),(M=m.outEdges(k.v))===null||M===void 0||M.forEach(function(j){var $=m.edge(j),q=j.w,te=m.node(q);te.in===void 0&&(te.in=0),te.in-=$,x(b,A,te)}),m.removeNode(k.v),G?V:void 0},h=function(m,b){var A=new N,k=0,G=0;m.nodes().forEach(function($){A.setNode($,{v:$,in:0,out:0})}),m.edges().forEach(function($){var q=A.edge($)||0,te=(b==null?void 0:b($))||1,ee=q+te;A.setEdge($.v,$.w,ee),G=Math.max(G,A.node($.v).out+=te),k=Math.max(k,A.node($.w).in+=te)});for(var T=[],M=G+k+3,V=0;V0;)A%2&&(k+=x[A+1]),A=A-1>>1,x[A]+=b.weight;m+=b.weight*k}}),m},B=function(D,P){for(var N=0,y=1;y<(P==null?void 0:P.length);y+=1)N+=Y(D,P[y-1],P[y]);return N};X.default=B},15113:function(hr,X,W){"use strict";var U=this&&this.__importDefault||function(b){return b&&b.__esModule?b:{default:b}};Object.defineProperty(X,"__esModule",{value:!0});var Y=U(W(19722)),B=U(W(14842)),D=U(W(74798)),P=U(W(99388)),N=U(W(69563)),y=W(8273),E=W(67858),g=W(95869),p=function(b,A){for(var k=(0,g.maxRank)(b),G=[],T=[],M=1;M-1;M--)T.push(M);var V=h(b,G,"inEdges"),j=h(b,T,"outEdges"),$=(0,Y.default)(b);m(b,$);for(var q=Number.POSITIVE_INFINITY,te,M=0,ee=0;ee<4;++M,++ee){x(M%2?V:j,M%4>=2,!1,A),$=(0,g.buildLayerMatrix)(b);var ie=(0,B.default)(b,$);ie=2,!0,A),$=(0,g.buildLayerMatrix)(b);var ie=(0,B.default)(b,$);ie=x.barycenter)&&Y(x,m)}},E=function(x){return function(m){m.in.push(x),--m.indegree==0&&B.push(m)}},g=function(){var x=B.pop();N.push(x),(D=x.in.reverse())===null||D===void 0||D.forEach(function(m){return y(x)(m)}),(P=x.out)===null||P===void 0||P.forEach(function(m){return E(x)(m)})};B==null?void 0:B.length;)g();var p=N.filter(function(x){return!x.merged}),h=["vs","i","barycenter","weight"];return p.map(function(x){var m={};return h==null||h.forEach(function(b){x[b]!==void 0&&(m[b]=x[b])}),m})},Y=function(B,D){var P,N=0,y=0;B.weight&&(N+=B.barycenter*B.weight,y+=B.weight),D.weight&&(N+=D.barycenter*D.weight,y+=D.weight),B.vs=(P=D.vs)===null||P===void 0?void 0:P.concat(B.vs),B.barycenter=N/y,B.weight=y,B.i=Math.min(D.i,B.i),D.merged=!0};X.default=W},69563:function(hr,X,W){"use strict";var U=this&&this.__importDefault||function(E){return E&&E.__esModule?E:{default:E}};Object.defineProperty(X,"__esModule",{value:!0});var Y=U(W(38937)),B=U(W(73792)),D=U(W(17457)),P=function(E,g,p,h,x,m){var b,A,k,G,T=E.children(g),M=E.node(g),V=M?M.borderLeft:void 0,j=M?M.borderRight:void 0,$={};V&&(T=T==null?void 0:T.filter(function(ge){return ge!==V&&ge!==j}));var q=(0,Y.default)(E,T||[]);q==null||q.forEach(function(ge){var Le;if((Le=E.children(ge.v))===null||Le===void 0?void 0:Le.length){var Oe=P(E,ge.v,p,h,m);$[ge.v]=Oe,Oe.hasOwnProperty("barycenter")&&y(ge,Oe)}});var te=(0,B.default)(q,p);N(te,$),(b=te.filter(function(ge){return ge.vs.length>0}))===null||b===void 0||b.forEach(function(ge){var Le=E.node(ge.vs[0]);Le&&(ge.fixorder=Le.fixorder,ge.order=Le.order)});var ee=(0,D.default)(te,h,x,m);if(V&&(ee.vs=[V,ee.vs,j].flat(),(A=E.predecessors(V))===null||A===void 0?void 0:A.length)){var ie=E.node(((k=E.predecessors(V))===null||k===void 0?void 0:k[0])||""),ce=E.node(((G=E.predecessors(j))===null||G===void 0?void 0:G[0])||"");ee.hasOwnProperty("barycenter")||(ee.barycenter=0,ee.weight=0),ee.barycenter=(ee.barycenter*ee.weight+ie.order+ce.order)/(ee.weight+2),ee.weight+=2}return ee},N=function(E,g){E==null||E.forEach(function(p){var h,x=(h=p.vs)===null||h===void 0?void 0:h.map(function(m){return g[m]?g[m].vs:m});p.vs=x.flat()})},y=function(E,g){E.barycenter!==void 0?(E.barycenter=(E.barycenter*E.weight+g.barycenter*g.weight)/(E.weight+g.weight),E.weight+=g.weight):(E.barycenter=g.barycenter,E.weight=g.weight)};X.default=P},17457:function(hr,X,W){"use strict";Object.defineProperty(X,"__esModule",{value:!0});var U=W(95869),Y=function(P,N,y,E){var g=(0,U.partition)(P,function(G){var T=G.hasOwnProperty("fixorder")&&!isNaN(G.fixorder);return E?!T&&G.hasOwnProperty("barycenter"):T||G.hasOwnProperty("barycenter")}),p=g.lhs,h=g.rhs.sort(function(G,T){return-G.i- -T.i}),x=[],m=0,b=0,A=0;p==null||p.sort(D(!!N,!!y)),A=B(x,h,A),p==null||p.forEach(function(G){var T;A+=(T=G.vs)===null||T===void 0?void 0:T.length,x.push(G.vs),m+=G.barycenter*G.weight,b+=G.weight,A=B(x,h,A)});var k={vs:x.flat()};return b&&(k.barycenter=m/b,k.weight=b),k},B=function(P,N,y){for(var E=y,g;N.length&&(g=N[N.length-1]).i<=E;)N.pop(),P==null||P.push(g.vs),E++;return E},D=function(P,N){return function(y,E){if(y.fixorder!==void 0&&E.fixorder!==void 0)return y.fixorder-E.fixorder;if(y.barycenterE.barycenter)return 1;if(N&&y.order!==void 0&&E.order!==void 0){if(y.orderE.order)return 1}return P?E.i-y.i:y.i-E.i}};X.default=Y},99946:function(hr,X){"use strict";Object.defineProperty(X,"__esModule",{value:!0});var W=function(B){var D,P={},N=0,y=function(E){var g,p=N;(g=B.children(E))===null||g===void 0||g.forEach(y),P[E]={low:p,lim:N++}};return(D=B.children())===null||D===void 0||D.forEach(y),P},U=function(B,D,P,N){var y=[],E=[],g=Math.min(D[P].low,D[N].low),p=Math.max(D[P].lim,D[N].lim),h,x;h=P;do h=B.parent(h),y.push(h);while(h&&(D[h].low>g||p>D[h].lim));for(x=h,h=N;h&&h!==x;)E.push(h),h=B.parent(h);return{lca:x,path:y.concat(E.reverse())}},Y=function(B){var D,P=W(B);(D=B.graph().dummyChains)===null||D===void 0||D.forEach(function(N){var y,E,g=N,p=B.node(g),h=p.edgeObj;if(!!h)for(var x=U(B,P,h.v,h.w),m=x.path,b=x.lca,A=0,k=m[A],G=!0;g!==h.w;){if(p=B.node(g),G){for(;k!==b&&((y=B.node(k))===null||y===void 0?void 0:y.maxRank)Re)&&(0,X.addConflict)($,Pe,be)}))}function te(ce){return JSON.stringify(ce.slice(1))}function ee(ce,ge){var Le=te(ce);ge.get(Le)||(q.apply(void 0,ce),ge.set(Le,!0))}var ie=function(ce,ge){var Le=-1,Oe,Re=0,de=new Map;return ge==null||ge.forEach(function(ve,be){var Ae;if(((Ae=V.node(ve))===null||Ae===void 0?void 0:Ae.dummy)==="border"){var Pe=V.predecessors(ve)||[];Pe.length&&(Oe=V.node(Pe[0]).order,ee([ge,Re,be,Le,Oe],de),Re=be,Le=Oe)}ee([ge,Re,ge.length,Oe,ce.length],de)}),ge};return(j==null?void 0:j.length)&&j.reduce(ie),$};X.findType2Conflicts=y;var E=function(V,j){var $,q;if(($=V.node(j))===null||$===void 0?void 0:$.dummy)return(q=V.predecessors(j))===null||q===void 0?void 0:q.find(function(te){return V.node(te).dummy})};X.findOtherInnerSegmentNode=E;var g=function(V,j,$){var q=j,te=$;if(q>te){var ee=q;q=te,te=ee}var ie=V[q];ie||(V[q]=ie={}),ie[te]=!0};X.addConflict=g;var p=function(V,j,$){var q=j,te=$;if(q>te){var ee=j;q=te,te=ee}return!!V[q]};X.hasConflict=p;var h=function(V,j,$,q){var te={},ee={},ie={};return j==null||j.forEach(function(ce){ce==null||ce.forEach(function(ge,Le){te[ge]=ge,ee[ge]=ge,ie[ge]=Le})}),j==null||j.forEach(function(ce){var ge=-1;ce==null||ce.forEach(function(Le){var Oe=q(Le);if(Oe.length){Oe=Oe.sort(function(Ae,Pe){return ie[Ae]-ie[Pe]});for(var Re=(Oe.length-1)/2,de=Math.floor(Re),ve=Math.ceil(Re);de<=ve;++de){var be=Oe[de];ee[Le]===Le&&geee.lim&&(ie=ee,ce=!0);var ge=V.edges().filter(function(Le){return ce===T(M,M.node(Le.v),ie)&&ce!==T(M,M.node(Le.w),ie)});return(0,B.minBy)(ge,function(Le){return(0,Y.slack)(V,Le)})};X.enterEdge=b;var A=function(M,V,j,$){var q=j.v,te=j.w;M.removeEdge(q,te),M.setEdge($.v,$.w,{}),(0,X.initLowLimValues)(M),(0,X.initCutValues)(M,V),k(M,V)};X.exchangeEdges=A;var k=function(M,V){var j=M.nodes().find(function(q){var te;return!((te=V.node(q))===null||te===void 0?void 0:te.parent)}),$=P(M,j);$=$==null?void 0:$.slice(1),$==null||$.forEach(function(q){var te=M.node(q).parent,ee=V.edgeFromArgs(q,te),ie=!1;ee||(ee=V.edgeFromArgs(te,q),ie=!0),V.node(q).rank=V.node(te).rank+(ie?ee.minlen:-ee.minlen)})},G=function(M,V,j){return M.hasEdge(V,j)},T=function(M,V,j){return j.low<=V.lim&&V.lim<=j.lim};X.default=y},76783:function(hr,X){"use strict";Object.defineProperty(X,"__esModule",{value:!0}),X.slack=X.longestPathWithLayer=X.longestPath=void 0;var W=function(B){var D,P={},N=function(y){var E,g=B.node(y);if(!g)return 0;if(P[y])return g.rank;P[y]=!0;var p;return(E=B.outEdges(y))===null||E===void 0||E.forEach(function(h){var x=N(h.w),m=B.edge(h).minlen,b=x-m;b&&(p===void 0||bMath.abs(te)*ce?(ee<0&&(ce=-ce),ge=ce*te/ee,Le=ce):(te<0&&(ie=-ie),ge=ie,Le=ie*ee/te),{x:$+ge,y:q+Le}};X.intersectRect=p;var h=function(V){for(var j=[],$=(0,X.maxRank)(V)+1,q=0;q<$;q++)j.push([]);V.nodes().forEach(function(te){var ee=V.node(te);if(!!ee){var ie=ee.rank;ie!==void 0&&j[ie]&&j[ie].push(te)}});for(var q=0;q<$;q++)j[q]=j[q].sort(function(ee,ie){var ce,ge;return B((ce=V.node(ee))===null||ce===void 0?void 0:ce.order,(ge=V.node(ie))===null||ge===void 0?void 0:ge.order)});return j};X.buildLayerMatrix=h;var x=function(V){var j=V.nodes().filter(function(q){var te;return((te=V.node(q))===null||te===void 0?void 0:te.rank)!==void 0}).map(function(q){return V.node(q).rank}),$=Math.min.apply(Math,j);V.nodes().forEach(function(q){var te=V.node(q);te.hasOwnProperty("rank")&&$!==Infinity&&(te.rank-=$)})};X.normalizeRanks=x;var m=function(V){var j=V.nodes(),$=j.filter(function(Le){var Oe;return((Oe=V.node(Le))===null||Oe===void 0?void 0:Oe.rank)!==void 0}).map(function(Le){return V.node(Le).rank}),q=Math.min.apply(Math,$),te=[];j.forEach(function(Le){var Oe,Re=(((Oe=V.node(Le))===null||Oe===void 0?void 0:Oe.rank)||0)-q;te[Re]||(te[Re]=[]),te[Re].push(Le)});for(var ee=0,ie=V.graph().nodeRankFactor||0,ce=0;cej)&&(j=te)}),j||(j=0),j};X.maxRank=A;var k=function(V,j){var $={lhs:[],rhs:[]};return V==null||V.forEach(function(q){j(q)?$.lhs.push(q):$.rhs.push(q)}),$};X.partition=k;var G=function(V,j){var $=Date.now();try{return j()}finally{console.log("".concat(V," time: ").concat(Date.now()-$,"ms"))}};X.time=G;var T=function(V,j){return j()};X.notime=T;var M=function(V,j){return V.reduce(function($,q){var te=j($),ee=j(q);return te>ee?q:$})};X.minBy=M},29279:function(hr,X,W){"use strict";var U=this&&this.__assign||function(){return U=Object.assign||function(h){for(var x,m=1,b=arguments.length;m1){var ce=U({},ee);delete ce.size,G.push(ce)}});var T=[];b.forEach(function(ee){var ie=G.find(function(ge){return ge.id===ee.source}),ce=G.find(function(ge){return ge.id===ee.target});ie&&ce&&T.push(ee)});var M=new g.DagreLayout({type:"dagre",ranksep:x.nodeMinGap,nodesep:x.nodeMinGap}),V=M.layout({nodes:G,edges:T}).nodes;m.forEach(function(ee){var ie=(V||[]).find(function(ce){return ce.id===ee.id});ee.x=(ie==null?void 0:ie.x)||A/2,ee.y=(ie==null?void 0:ie.y)||k/2});var j=JSON.parse(JSON.stringify(m)),$=JSON.parse(JSON.stringify(b)),q=N.forceSimulation().nodes(j).force("link",N.forceLink($).id(function(ee){return ee.id}).distance(function(ee){var ie=T.find(function(ce){return ce.source===ee.source&&ce.target===ee.target});return ie?30:20})).force("charge",N.forceManyBody()).force("center",N.forceCenter(A/2,k/2)).force("x",N.forceX(A/2)).force("y",N.forceY(k/2)).alpha(.3).alphaDecay(.08).alphaMin(.001),te=new Promise(function(ee){q.on("end",function(){m.forEach(function(de){var ve=j.find(function(be){return be.id===de.id});ve&&(de.x=ve.x,de.y=ve.y)});var ie=Math.min.apply(Math,m.map(function(de){return de.x})),ce=Math.max.apply(Math,m.map(function(de){return de.x})),ge=Math.min.apply(Math,m.map(function(de){return de.y})),Le=Math.max.apply(Math,m.map(function(de){return de.y})),Oe=A/(ce-ie),Re=k/(Le-ge);m.forEach(function(de){de.x!==void 0&&Oe<1&&(de.x=(de.x-ie)*Oe),de.y!==void 0&&Re<1&&(de.y=(de.y-ge)*Re)}),m.forEach(function(de){de.sizeTemp=de.size,de.size=[10,10]}),(0,E.default)(m,b),m.forEach(function(de){de.size=de.sizeTemp||[],delete de.sizeTemp}),(0,y.default)({nodes:m,edges:b},x),ee()})});return te}X.default=p},28563:function(hr,X,W){"use strict";var U=this&&this.__importDefault||function(D){return D&&D.__esModule?D:{default:D}};Object.defineProperty(X,"__esModule",{value:!0});var Y=U(W(62120));function B(D,P){if(!D.nodes||D.nodes.length===0)return D;var N=P.width,y=P.height,E=P.nodeMinGap,g=1e4,p=1e4;D.nodes.forEach(function($){var q=$.size[0]||50,te=$.size[1]||50;g=Math.min(q,g),p=Math.min(te,p)});var h=new Y.default;h.init(N,y,{CELL_H:p,CELL_W:g}),D.nodes.forEach(function($){var q=h.occupyNearest($);q&&(q.node={id:$.id,size:$.size},$.x=q.x,$.y=q.y,$.dx=q.dx,$.dy=q.dy)});for(var x=0;xg){for(var G=Math.ceil((m.size[0]+E)/g)-1,T=G,M=0;M-1;if(V&&!h.cells[A+M+1][k].node)T--;else break}h.insertColumn(A,T)}if(m.size[1]+E>p){for(var G=Math.ceil((m.size[1]+E)/p)-1,T=G,M=0;M-1;if(V&&!h.cells[A][k+M+1].node)T--;else break}h.insertRow(k,T)}}for(var x=0;xB;P--)for(var N=0;N=B&&(this.additionColumn[N]+=D);for(var P=0;PB;P--)this.cells[N][P+D]=W(W({},this.cells[N][P]),{dx:N,dy:P+D,x:N*this.CELL_W,y:(P+D)*this.CELL_H}),this.cells[N][P]={dx:N,dy:P,x:N*this.CELL_W,y:P*this.CELL_H,occupied:!1,node:null};for(var P=0;P=B&&(this.additionRow[P]+=D);for(var N=0;NP?(Ke=ee-Re,Ue=ge-ie,_t=parseFloat(Ke?(Ke/Math.cos(Ve)).toFixed(2):Ue.toFixed(2)),Ct=parseFloat(Ue?(Ue/Math.sin(Ve)).toFixed(2):Ke.toFixed(2))):0Ue?_t=Ct=parseFloat(Ke?(Ke/Math.cos(Ve)).toFixed(2):Ue.toFixed(2)):_t=Ct=parseFloat(Ue?(Ue/Math.sin(Ve)).toFixed(2):Ke.toFixed(2))):Ve<-P?(Ke=ee-Re,Ue=-(Oe-te),Ke>Ue?_t=Ct=parseFloat(Ke?(Ke/Math.cos(Ve)).toFixed(2):Ue.toFixed(2)):_t=Ct=parseFloat(Ue?(Ue/Math.sin(Ve)).toFixed(2):Ke.toFixed(2))):(Ke=Le-ce,Math.abs(Pe)>(ie-te)/2?Ue=te-Oe:Ue=Pe,Ke>Ue?_t=Ct=parseFloat(Ke?(Ke/Math.cos(Ve)).toFixed(2):Ue.toFixed(2)):_t=Ct=parseFloat(Ue&&Ve!==0?(Ue/Math.sin(Ve)).toFixed(2):Ke.toFixed(2)));var He=parseFloat(Ve.toFixed(2)),ht=q;return q&&(ht=Nie?$:j,ge=ee>ie?j:$,Le=ce.x-ce.size[0]/2,Oe=ce.y-ce.size[1]/2,Re=ce.x+ce.size[0]/2,de=ce.y+ce.size[1]/2,ve=ge.x-ge.size[0]/2,be=ge.y-ge.size[1]/2,Ae=ge.x+ge.size[0]/2,Pe=ge.y+ge.size[1]/2,Ve=ce.x,Ue=ce.y,Ke=ge.x,_t=ge.y,Ct=Re>=ve&&Ae>=Le&&de>=be&&Pe>=Oe,He=0,ht=0;if(Ct){ht=Math.sqrt(Math.pow(Ke-Ve,2)+Math.pow(_t-Ue,2));var mt=Le>ve?Le:ve,dt=Oe>be?Oe:be,Et=ReW||te.y>U)&&($+=1e12);for(var ee=q+1;ee150,be=de<30||de>150,Ae=Re>70&&Re<110,Pe=de>70&&de<110;if(ve&&!be||Re*de<0){ge=!1;break}else if(Ae&&!Pe||Re*de<0){ge=!1;break}else if((Oe.x-j.x)*(Oe.x-$.x)<0){ge=!1;break}else if((Oe.y-j.y)*(Oe.y-$.y)<0){ge=!1;break}}return ge}function T(j,$){for(var q=!1,te=1,ee=g*te,ie=p*te,ce=[ee,-ee,0,0],ge=[0,0,ie,-ie],Le=0;Lex?(Re=be,q=!0):(Oe.x-=ce[de],Oe.y-=ge[de])}}return h>x&&(h*=m),q?k(j):0}function M(j,$){var q=0;(j.x<0||j.y<0||j.x+j.size[0]+20>W||j.y+j.size[1]+20>U)&&(q+=1e12);for(var te=0;te<$.length;++te)j.id!==$[te].id&&(q+=A(j,$[te]));return q}function V(j,$){if(j.length===0)return{nodes:j,edges:$};j.forEach(function(Oe){var Re=$.filter(function(de){return de.source===Oe.id||de.target===Oe.id});E.set(Oe,Re)}),j.sort(function(Oe,Re){var de,ve;return((de=E.get(Oe.id))===null||de===void 0?void 0:de.length)-((ve=E.get(Re.id))===null||ve===void 0?void 0:ve.length)});for(var q=k(j),te=20,ee=1,ie=0,ce=50,ge=0;te>0&&(ge++,!(ge>=ce));){var Le=T(j,$);Le!==0&&(ie=Le),ee=ie-q,q=ie,ee===0?--te:te=20}return j.forEach(function(Oe){Oe.x=Oe.x-Oe.size[0]/2,Oe.y=Oe.y-Oe.size[1]/2}),{nodes:j,edges:$}}X.default=V},26961:function(hr,X,W){"use strict";Object.defineProperty(X,"__esModule",{value:!0}),X.forceNBody=void 0;var U=W(71829),Y=.81,B=.1;function D(E,g,p,h,x){var m=p/h,b=E.map(function(k,G){var T=g[k.id],M=T.data,V=T.x,j=T.y,$=T.size,q=M.layout.force.nodeStrength;return{x:V,y:j,size:$,index:G,vx:0,vy:0,weight:m*q}}),A=(0,U.quadtree)(b,function(k){return k.x},function(k){return k.y}).visitAfter(P);return b.forEach(function(k){y(k,A)}),b.map(function(k,G){var T=g[E[G].id],M=T.data.layout.force.mass,V=M===void 0?1:M;x[2*G]=k.vx/V,x[2*G+1]=k.vy/V}),x}X.forceNBody=D;function P(E){var g=0,p=0,h=0;if(E.length){for(var x=0;x<4;x++){var m=E[x];m&&m.weight&&(g+=m.weight,p+=m.x*m.weight,h+=m.y*m.weight)}E.x=p/g,E.y=h/g,E.weight=g}else{var m=E;E.x=m.data.x,E.y=m.data.y,E.weight=m.data.weight}}var N=function(E,g,p,h,x,m){var b=m.x-E.x||B,A=m.y-E.y||B,k=h-g,G=b*b+A*A,T=Math.sqrt(G)*G;if(k*k*Y1&&(de=(0,D.getAvgNodePosition)(be))}else de=void 0;return{x:de==null?void 0:de.x,y:de==null?void 0:de.y}}}}if(x){M||(M=this.getSameTypeLeafMap());var j=Array.from(new Set(b.map(function(ce,ge){return ce[m]}))).filter(function(ce){return ce!==void 0}),$={};j.forEach(function(ce){var ge=b.filter(function(Le){return Le[m]===ce}).map(function(Le){return A[Le.id]});$[ce]=(0,D.getAvgNodePosition)(ge)}),T={single:function(ce){return G(ce)},leaf:function(ce){return G(ce)},others:function(ce){return G(ce)},center:function(ce,ge,Le){var Oe=$[ce[m]];return{x:Oe==null?void 0:Oe.x,y:Oe==null?void 0:Oe.y}}}}this.centripetalOptions=Y(Y({},this.centripetalOptions),T);var q=this.centripetalOptions,te=q.leaf,ee=q.single,ie=q.others;te&&typeof te!="function"&&(this.centripetalOptions.leaf=function(){return te}),ee&&typeof ee!="function"&&(this.centripetalOptions.single=function(){return ee}),ie&&typeof ie!="function"&&(this.centripetalOptions.others=function(){return ie})},g.prototype.updateCfg=function(p){p&&Object.assign(this,p)},g.prototype.getDefaultCfg=function(){return{maxIteration:500,gravity:10,enableTick:!0,animate:!0}},g.prototype.execute=function(){var p=this;p.stop();var h=p.nodes,x=p.edges,m=p.defSpringLen;if(p.judgingDistance=0,!h||h.length===0){p.onLayoutEnd([]);return}!p.width&&typeof window!="undefined"&&(p.width=window.innerWidth),!p.height&&typeof window!="undefined"&&(p.height=window.innerHeight),p.center||(p.center=[p.width/2,p.height/2]);var b=p.center;if(h.length===1){h[0].x=b[0],h[0].y=b[1],p.onLayoutEnd([Y({},h[0])]);return}p.degreesMap=(0,D.getDegreeMap)(h,x),p.propsGetMass?p.getMass=p.propsGetMass:p.getMass=function(j){var $=1;(0,D.isNumber)(j.mass)&&($=j.mass);var q=p.degreesMap[j.id].all;return!q||q<5?$:q*5*$};var A=p.nodeSize,k;if(p.preventOverlap){var G=p.nodeSpacing,T;(0,D.isNumber)(G)?T=function(){return G}:(0,D.isFunction)(G)?T=G:T=function(){return 0},A?(0,D.isArray)(A)?k=function(j){return Math.max(A[0],A[1])+T(j)}:k=function(j){return A+T(j)}:k=function(j){return j.size?(0,D.isArray)(j.size)?Math.max(j.size[0],j.size[1])+T(j):(0,D.isObject)(j.size)?Math.max(j.size.width,j.size.height)+T(j):j.size+T(j):10+T(j)}}p.nodeSize=k,p.linkDistance=N(p.linkDistance,1),p.nodeStrength=N(p.nodeStrength,1),p.edgeStrength=N(p.edgeStrength,1);var M={},V={};h.forEach(function(j,$){(0,D.isNumber)(j.x)||(j.x=Math.random()*p.width),(0,D.isNumber)(j.y)||(j.y=Math.random()*p.height);var q=p.degreesMap[j.id];M[j.id]=Y(Y({},j),{data:Y(Y({},j.data),{size:p.nodeSize(j)||30,layout:{inDegree:q.in,outDegree:q.out,degree:q.all,tDegree:q.in,sDegree:q.out,force:{mass:p.getMass(j),nodeStrength:p.nodeStrength(j,x)}}})}),V[j.id]=$}),p.nodeMap=M,p.nodeIdxMap=V,p.edgeInfos=[],x==null||x.forEach(function(j){var $=M[j.source],q=M[j.target];!$||!q?elf.edgeInfos.push({}):p.edgeInfos.push({edgeStrength:p.edgeStrength(j),linkDistance:m?m(Y(Y({},j),{source:$,target:q}),$,q):p.linkDistance(j,$,q)||1+(A($)+A($)||0)/2})}),this.getCentripetalOptions(),p.onLayoutEnd=p.onLayoutEnd||function(){},p.run()},g.prototype.run=function(){var p=this,h=p.maxIteration,x=p.nodes,m=p.edges,b=p.workerEnabled,A=p.minMovement,k=p.animate,G=p.nodeMap,T=p.height;if(p.currentMinY=0,p.currentMaxY=T,!!x){var M=[];if(x.forEach(function(ie,ce){M[2*ce]=0,M[2*ce+1]=0}),this.defSideCoe&&typeof this.defSideCoe=="function"){var V={};m.forEach(function(ie){var ce=ie.source,ge=ie.target;V[ce]=V[ce]||[],V[ce].push(ie),V[ge]=V[ge]||[],V[ge].push(ie)}),this.relatedEdges=V}var j=h,$=!k;if(b||$){for(var q=0,te=0;(p.judgingDistance>A||te<1)&&te=j||p.judgingDistancek){var $=k/j;M=$*M,V=$*V}h[2*T]=M,h[2*T+1]=V})},g.prototype.updatePosition=function(p,h){var x=this,m=x.nodes,b=x.distanceThresholdMode,A=x.nodeMap;if(!(m==null?void 0:m.length)){this.judgingDistance=0;return}var k=0;b==="max"?x.judgingDistance=-Infinity:b==="min"&&(x.judgingDistance=Infinity);var G=Infinity,T=-Infinity;m.forEach(function(M,V){var j=A[M.id];if((0,D.isNumber)(M.fx)&&(0,D.isNumber)(M.fy)){M.x=M.fx,M.y=M.fy,j.x=M.x,j.y=M.y;return}var $=p[2*V]*h,q=p[2*V+1]*h;M.x+=$,M.y+=q,j.x=M.x,j.y=M.y,M.yT&&(T=M.y);var te=Math.sqrt($*$+q*q);switch(b){case"max":x.judgingDistancete&&(x.judgingDistance=te);break;default:k=k+te;break}}),this.currentMinY=G,this.currentMaxY=T,(!b||b==="mean")&&(x.judgingDistance=k/m.length)},g.prototype.stop=function(){this.timeInterval&&typeof window!="undefined"&&window.clearInterval(this.timeInterval)},g.prototype.destroy=function(){var p=this;p.stop(),p.tick=null,p.nodes=null,p.edges=null,p.destroyed=!0},g.prototype.getType=function(){return"force2"},g.prototype.getSameTypeLeafMap=function(){var p=this,h=p.nodeClusterBy,x=p.nodes,m=p.edges,b=p.nodeMap,A=p.degreesMap;if(!!(x==null?void 0:x.length)){var k={};return x.forEach(function(G,T){var M=A[G.id].all;M===1&&(k[G.id]=(0,D.getCoreNodeAndRelativeLeafNodes)("leaf",G,m,h,A,b))}),k}},g}(B.Base);X.Force2Layout=y},20039:function(hr,X){"use strict";Object.defineProperty(X,"__esModule",{value:!0});var W=function(){function U(Y){this.id=Y.id||0,this.rx=Y.rx,this.ry=Y.ry,this.fx=0,this.fy=0,this.mass=Y.mass,this.degree=Y.degree,this.g=Y.g||0}return U.prototype.distanceTo=function(Y){var B=this.rx-Y.rx,D=this.ry-Y.ry;return Math.hypot(B,D)},U.prototype.setPos=function(Y,B){this.rx=Y,this.ry=B},U.prototype.resetForce=function(){this.fx=0,this.fy=0},U.prototype.addForce=function(Y){var B=Y.rx-this.rx,D=Y.ry-this.ry,P=Math.hypot(B,D);P=P<1e-4?1e-4:P;var N=this.g*(this.degree+1)*(Y.degree+1)/P;this.fx+=N*B/P,this.fy+=N*D/P},U.prototype.in=function(Y){return Y.contains(this.rx,this.ry)},U.prototype.add=function(Y){var B=this.mass+Y.mass,D=(this.rx*this.mass+Y.rx*Y.mass)/B,P=(this.ry*this.mass+Y.ry*Y.mass)/B,N=this.degree+Y.degree,y={rx:D,ry:P,mass:B,degree:N};return new U(y)},U}();X.default=W},16919:function(hr,X,W){"use strict";var U=this&&this.__extends||function(){var g=function(p,h){return g=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,m){x.__proto__=m}||function(x,m){for(var b in m)Object.prototype.hasOwnProperty.call(m,b)&&(x[b]=m[b])},g(p,h)};return function(p,h){if(typeof h!="function"&&h!==null)throw new TypeError("Class extends value "+String(h)+" is not a constructor or null");g(p,h);function x(){this.constructor=p}p.prototype=h===null?Object.create(h):(x.prototype=h.prototype,new x)}}(),Y=this&&this.__importDefault||function(g){return g&&g.__esModule?g:{default:g}};Object.defineProperty(X,"__esModule",{value:!0}),X.ForceAtlas2Layout=void 0;var B=W(46253),D=W(8273),P=Y(W(20039)),N=Y(W(78150)),y=Y(W(58979)),E=function(g){U(p,g);function p(h){var x=g.call(this)||this;return x.center=[0,0],x.width=300,x.height=300,x.nodes=[],x.edges=[],x.kr=5,x.kg=1,x.mode="normal",x.preventOverlap=!1,x.dissuadeHubs=!1,x.barnesHut=void 0,x.maxIteration=0,x.ks=.1,x.ksmax=10,x.tao=.1,x.onLayoutEnd=function(){},x.prune=void 0,x.updateCfg(h),x}return p.prototype.getDefaultCfg=function(){return{}},p.prototype.execute=function(){var h=this,x=h.nodes,m=h.onLayoutEnd,b=h.prune,A=h.maxIteration;!h.width&&typeof window!="undefined"&&(h.width=window.innerWidth),!h.height&&typeof window!="undefined"&&(h.height=window.innerHeight);for(var k=[],G=x.length,T=0;T250&&(h.barnesHut=!0),h.prune===void 0&&G>100&&(h.prune=!0),this.maxIteration===0&&!h.prune?(A=250,G<=200&&G>100?A=1e3:G>200&&(A=1200),this.maxIteration=A):this.maxIteration===0&&b&&(A=100,G<=200&&G>100?A=500:G>200&&(A=950),this.maxIteration=A),h.kr||(h.kr=50,G>100&&G<=500?h.kr=20:G>500&&(h.kr=1)),h.kg||(h.kg=20,G>100&&G<=500?h.kg=10:G>500&&(h.kg=1)),this.nodes=h.updateNodesByForces(k),m()},p.prototype.updateNodesByForces=function(h){for(var x=this,m=x.edges,b=x.maxIteration,A=x.nodes,k=m.filter(function(de){var ve=(0,D.getEdgeTerminal)(de,"source"),be=(0,D.getEdgeTerminal)(de,"target");return ve!==be}),G=A.length,T=k.length,M=[],V={},j={},$=[],q=0;q0;){for(var Oe=0;Oe<$;Oe+=1)ge[2*Oe]=ce[2*Oe],ge[2*Oe+1]=ce[2*Oe+1],ce[2*Oe]=0,ce[2*Oe+1]=0;ce=this.getAttrForces(ee,ie,b,x,m,A,k,ce),j&&(V&&ee>ie||!V)?ce=this.getOptRepGraForces(ce,Le,A):ce=this.getRepGraForces(ee,ie,ce,te,k,A);var de=this.updatePos(ce,ge,q,A);T=de.nodes,q=de.sg,ee--,G.tick&&G.tick()}return T},p.prototype.getAttrForces=function(h,x,m,b,A,k,G,T){for(var M=this,V=M.nodes,j=M.preventOverlap,$=M.dissuadeHubs,q=M.mode,te=M.prune,ee=0;ee0&&(de=Re,ve=Re),T[2*b[ie.id]]+=de*Oe[0],T[2*b[ge.id]]-=ve*Oe[0],T[2*b[ie.id]+1]+=de*Oe[1],T[2*b[ge.id]+1]-=ve*Oe[1]}}return T},p.prototype.getRepGraForces=function(h,x,m,b,A,k){for(var G=this,T=G.nodes,M=G.preventOverlap,V=G.kr,j=G.kg,$=G.center,q=G.prune,te=T.length,ee=0;ee0&&(Le=V*(k[ee]+1)*(k[ie]+1)/ge),m[2*ee]-=Le*ce[0],m[2*ie]+=Le*ce[0],m[2*ee+1]-=Le*ce[1],m[2*ie+1]+=Le*ce[1]}var Oe=[T[ee].x-$[0],T[ee].y-$[1]],Re=Math.hypot(Oe[0],Oe[1]);Oe[0]=Oe[0]/Re,Oe[1]=Oe[1]/Re;var de=j*(k[ee]+1);m[2*ee]-=de*Oe[0],m[2*ee+1]-=de*Oe[1]}return m},p.prototype.getOptRepGraForces=function(h,x,m){for(var b=this,A=b.nodes,k=b.kg,G=b.center,T=b.prune,M=A.length,V=9e10,j=-9e10,$=9e10,q=-9e10,te=0;te=j&&(j=A[te].x),A[te].x<=V&&(V=A[te].x),A[te].y>=q&&(q=A[te].y),A[te].y<=$&&($=A[te].y));for(var ee=Math.max(j-V,q-$),ie={xmid:(j+V)/2,ymid:(q+$)/2,length:ee,massCenter:G,mass:M},ce=new N.default(ie),ge=new y.default(ce),te=0;te1.5*Re?1.5*Re:m);for(var ie=0;iebe?be:de;var Ae=de*h[2*ie],Pe=de*h[2*ie+1];k[ie].x+=Ae,k[ie].y+=Pe}return{nodes:k,sg:m}},p}(B.Base);X.ForceAtlas2Layout=E},78150:function(hr,X){"use strict";Object.defineProperty(X,"__esModule",{value:!0});var W=function(){function U(Y){this.xmid=Y.xmid,this.ymid=Y.ymid,this.length=Y.length,this.massCenter=Y.massCenter||[0,0],this.mass=Y.mass||1}return U.prototype.getLength=function(){return this.length},U.prototype.contains=function(Y,B){var D=this.length/2;return Y<=this.xmid+D&&Y>=this.xmid-D&&B<=this.ymid+D&&B>=this.ymid-D},U.prototype.NW=function(){var Y=this.xmid-this.length/4,B=this.ymid+this.length/4,D=this.length/2,P={xmid:Y,ymid:B,length:D},N=new U(P);return N},U.prototype.NE=function(){var Y=this.xmid+this.length/4,B=this.ymid+this.length/4,D=this.length/2,P={xmid:Y,ymid:B,length:D},N=new U(P);return N},U.prototype.SW=function(){var Y=this.xmid-this.length/4,B=this.ymid-this.length/4,D=this.length/2,P={xmid:Y,ymid:B,length:D},N=new U(P);return N},U.prototype.SE=function(){var Y=this.xmid+this.length/4,B=this.ymid-this.length/4,D=this.length/2,P={xmid:Y,ymid:B,length:D},N=new U(P);return N},U}();X.default=W},58979:function(hr,X){"use strict";Object.defineProperty(X,"__esModule",{value:!0});var W=function(){function U(Y){this.body=null,this.quad=null,this.NW=null,this.NE=null,this.SW=null,this.SE=null,this.theta=.5,Y!=null&&(this.quad=Y)}return U.prototype.insert=function(Y){if(this.body==null){this.body=Y;return}this._isExternal()?(this.quad&&(this.NW=new U(this.quad.NW()),this.NE=new U(this.quad.NE()),this.SW=new U(this.quad.SW()),this.SE=new U(this.quad.SE())),this._putBody(this.body),this._putBody(Y),this.body=this.body.add(Y)):(this.body=this.body.add(Y),this._putBody(Y))},U.prototype._putBody=function(Y){!this.quad||(Y.in(this.quad.NW())&&this.NW?this.NW.insert(Y):Y.in(this.quad.NE())&&this.NE?this.NE.insert(Y):Y.in(this.quad.SW())&&this.SW?this.SW.insert(Y):Y.in(this.quad.SE())&&this.SE&&this.SE.insert(Y))},U.prototype._isExternal=function(){return this.NW==null&&this.NE==null&&this.SW==null&&this.SE==null},U.prototype.updateForce=function(Y){if(!(this.body==null||Y===this.body))if(this._isExternal())Y.addForce(this.body);else{var B=this.quad?this.quad.getLength():0,D=this.body.distanceTo(Y);B/D-1||(V[$]=M[$])}),V}),G.ticking=!1},A.prototype.execute=function(k){var G=this,T=G.nodes,M=G.edges;if(!G.ticking){var V=G.forceSimulation,j=G.alphaMin,$=G.alphaDecay,q=G.alpha;if(V){if(k){if(G.clustering&&G.clusterForce&&(G.clusterForce.nodes(T),G.clusterForce.links(M)),V.nodes(T),M&&G.edgeForce)G.edgeForce.links(M);else if(M&&!G.edgeForce){var ie=N.forceLink().id(function(Oe){return Oe.id}).links(M);G.edgeStrength&&ie.strength(G.edgeStrength),G.linkDistance&&ie.distance(G.linkDistance),G.edgeForce=ie,V.force("link",ie)}}G.preventOverlap&&G.overlapProcess(V),V.alpha(q).restart(),this.ticking=!0}else try{var te=N.forceManyBody();if(G.nodeStrength&&te.strength(G.nodeStrength),V=N.forceSimulation().nodes(T),G.clustering){var ee=(0,y.default)();ee.centerX(G.center[0]).centerY(G.center[1]).template("force").strength(G.clusterFociStrength),M&&ee.links(M),T&&ee.nodes(T),ee.forceLinkDistance(G.clusterEdgeDistance).forceLinkStrength(G.clusterEdgeStrength).forceCharge(G.clusterNodeStrength).forceNodeSize(G.clusterNodeSize),G.clusterForce=ee,V.force("group",ee)}if(V.force("center",N.forceCenter(G.center[0],G.center[1])).force("charge",te).alpha(q).alphaDecay($).alphaMin(j),G.preventOverlap&&G.overlapProcess(V),M){var ie=N.forceLink().id(function(Le){return Le.id}).links(M);G.edgeStrength&&ie.strength(G.edgeStrength),G.linkDistance&&ie.distance(G.linkDistance),G.edgeForce=ie,V.force("link",ie)}if(G.workerEnabled&&!m()&&(G.workerEnabled=!1,console.warn("workerEnabled option is only supported when running in web worker.")),!G.workerEnabled)V.on("tick",function(){G.tick()}).on("end",function(){G.ticking=!1,G.onLayoutEnd&&G.onLayoutEnd()}),G.ticking=!0;else{V.stop();for(var ce=x(V),ge=1;ge<=ce;ge++)V.tick(),postMessage({nodes:T,currentTick:ge,totalTicks:ce,type:p.LAYOUT_MESSAGE.TICK},void 0);G.ticking=!1}G.forceSimulation=V,G.ticking=!0}catch(Le){G.ticking=!1,console.warn(Le)}}},A.prototype.overlapProcess=function(k){var G=this,T=G.nodeSize,M=G.nodeSpacing,V,j,$=G.collideStrength;if((0,E.isNumber)(M)?j=function(){return M}:(0,E.isFunction)(M)?j=M:j=function(){return 0},!T)V=function(ie){if(ie.size){if((0,E.isArray)(ie.size)){var ce=ie.size[0]>ie.size[1]?ie.size[0]:ie.size[1];return ce/2+j(ie)}if((0,E.isObject)(ie.size)){var ce=ie.size.width>ie.size.height?ie.size.width:ie.size.height;return ce/2+j(ie)}return ie.size/2+j(ie)}return 10+j(ie)};else if((0,E.isFunction)(T))V=function(ie){var ce=T(ie);return ce+j(ie)};else if((0,E.isArray)(T)){var q=T[0]>T[1]?T[0]:T[1],te=q/2;V=function(ie){return te+j(ie)}}else if((0,E.isNumber)(T)){var ee=T/2;V=function(ie){return ee+j(ie)}}else V=function(){return 10};k.force("collisionForce",N.forceCollide(V).strength($))},A.prototype.updateCfg=function(k){var G=this;G.ticking&&(G.forceSimulation.stop(),G.ticking=!1),G.forceSimulation=null,Object.assign(G,k)},A.prototype.destroy=function(){var k=this;k.ticking&&(k.forceSimulation.stop(),k.ticking=!1),k.nodes=null,k.edges=null,k.destroyed=!0},A}(g.Base);X.ForceLayout=h;function x(b){var A=b.alphaMin(),k=b.alphaTarget(),G=b.alpha(),T=Math.log((A-k)/(G-k))/Math.log(1-b.alphaDecay()),M=Math.ceil(T);return M}function m(){return typeof WorkerGlobalScope!="undefined"&&self instanceof WorkerGlobalScope}},64180:function(hr,X,W){"use strict";var U=this&&this.__createBinding||(Object.create?function(B,D,P,N){N===void 0&&(N=P);var y=Object.getOwnPropertyDescriptor(D,P);(!y||("get"in y?!D.__esModule:y.writable||y.configurable))&&(y={enumerable:!0,get:function(){return D[P]}}),Object.defineProperty(B,N,y)}:function(B,D,P,N){N===void 0&&(N=P),B[N]=D[P]}),Y=this&&this.__exportStar||function(B,D){for(var P in B)P!=="default"&&!Object.prototype.hasOwnProperty.call(D,P)&&U(D,B,P)};Object.defineProperty(X,"__esModule",{value:!0}),Y(W(68553),X)},23826:function(hr,X,W){"use strict";var U=this&&this.__extends||function(){var N=function(y,E){return N=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,p){g.__proto__=p}||function(g,p){for(var h in p)Object.prototype.hasOwnProperty.call(p,h)&&(g[h]=p[h])},N(y,E)};return function(y,E){if(typeof E!="function"&&E!==null)throw new TypeError("Class extends value "+String(E)+" is not a constructor or null");N(y,E);function g(){this.constructor=y}y.prototype=E===null?Object.create(E):(g.prototype=E.prototype,new g)}}();Object.defineProperty(X,"__esModule",{value:!0}),X.FruchtermanLayout=void 0;var Y=W(46253),B=W(8273),D=800,P=function(N){U(y,N);function y(E){var g=N.call(this)||this;return g.maxIteration=1e3,g.workerEnabled=!1,g.gravity=10,g.speed=5,g.clustering=!1,g.clusterGravity=10,g.nodes=[],g.edges=[],g.width=300,g.height=300,g.nodeMap={},g.nodeIdxMap={},g.onLayoutEnd=function(){},g.tick=function(){},g.animate=!0,g.updateCfg(E),g}return y.prototype.getDefaultCfg=function(){return{maxIteration:1e3,gravity:10,speed:1,clustering:!1,clusterGravity:10,animate:!0}},y.prototype.execute=function(){var E=this,g,p,h=this,x=h.nodes;if(h.timeInterval!==void 0&&typeof window!="undefined"&&window.clearInterval(h.timeInterval),!x||x.length===0){(g=h.onLayoutEnd)===null||g===void 0||g.call(h);return}!h.width&&typeof window!="undefined"&&(h.width=window.innerWidth),!h.height&&typeof window!="undefined"&&(h.height=window.innerHeight),h.center||(h.center=[h.width/2,h.height/2]);var m=h.center;if(x.length===1){x[0].x=m[0],x[0].y=m[1],(p=h.onLayoutEnd)===null||p===void 0||p.call(h);return}var b={},A={};return x.forEach(function(k,G){(0,B.isNumber)(k.x)||(k.x=Math.random()*E.width),(0,B.isNumber)(k.y)||(k.y=Math.random()*E.height),b[k.id]=k,A[k.id]=G}),h.nodeMap=b,h.nodeIdxMap=A,h.run()},y.prototype.run=function(){var E,g=this,p=g.nodes;if(!!p){var h=g.edges,x=g.maxIteration,m=g.workerEnabled,b=g.clustering,A=g.animate,k={};if(b&&p.forEach(function(M){k[M.cluster]===void 0&&(k[M.cluster]={name:M.cluster,cx:0,cy:0,count:0})}),m||!A){for(var G=0;G=x&&((M=g.onLayoutEnd)===null||M===void 0||M.call(g),window.clearInterval(g.timeInterval))},0)}return{nodes:p,edges:h}}},y.prototype.runOneStep=function(E){var g,p=this,h=p.nodes;if(!!h){var x=p.edges,m=p.center,b=p.gravity,A=p.speed,k=p.clustering,G=p.height*p.width,T=Math.sqrt(G)/10,M=G/(h.length+1),V=Math.sqrt(M),j=[];if(h.forEach(function(te,ee){j[ee]={x:0,y:0}}),p.applyCalculate(h,x,j,V,M),k){for(var $ in E)E[$].cx=0,E[$].cy=0,E[$].count=0;h.forEach(function(te){var ee=E[te.cluster];(0,B.isNumber)(te.x)&&(ee.cx+=te.x),(0,B.isNumber)(te.y)&&(ee.cy+=te.y),ee.count++});for(var $ in E)E[$].cx/=E[$].count,E[$].cy/=E[$].count;var q=p.clusterGravity||b;h.forEach(function(te,ee){if(!(!(0,B.isNumber)(te.x)||!(0,B.isNumber)(te.y))){var ie=E[te.cluster],ce=Math.sqrt((te.x-ie.cx)*(te.x-ie.cx)+(te.y-ie.cy)*(te.y-ie.cy)),ge=V*q;j[ee].x-=ge*(te.x-ie.cx)/ce,j[ee].y-=ge*(te.y-ie.cy)/ce}})}h.forEach(function(te,ee){if(!(!(0,B.isNumber)(te.x)||!(0,B.isNumber)(te.y))){var ie=.01*V*b;j[ee].x-=ie*(te.x-m[0]),j[ee].y-=ie*(te.y-m[1])}}),h.forEach(function(te,ee){if((0,B.isNumber)(te.fx)&&(0,B.isNumber)(te.fy)){te.x=te.fx,te.y=te.fy;return}if(!(!(0,B.isNumber)(te.x)||!(0,B.isNumber)(te.y))){var ie=Math.sqrt(j[ee].x*j[ee].x+j[ee].y*j[ee].y);if(ie>0){var ce=Math.min(T*(A/D),ie);te.x+=j[ee].x/ie*ce,te.y+=j[ee].y/ie*ce}}}),(g=p.tick)===null||g===void 0||g.call(p)}},y.prototype.applyCalculate=function(E,g,p,h,x){var m=this;m.calRepulsive(E,p,x),g&&m.calAttractive(g,p,h)},y.prototype.calRepulsive=function(E,g,p){E.forEach(function(h,x){g[x]={x:0,y:0},E.forEach(function(m,b){if(x!==b&&!(!(0,B.isNumber)(h.x)||!(0,B.isNumber)(m.x)||!(0,B.isNumber)(h.y)||!(0,B.isNumber)(m.y))){var A=h.x-m.x,k=h.y-m.y,G=A*A+k*k;if(G===0){G=1;var T=x>b?1:-1;A=.01*T,k=.01*T}var M=p/G;g[x].x+=A*M,g[x].y+=k*M}})})},y.prototype.calAttractive=function(E,g,p){var h=this;E.forEach(function(x){var m=(0,B.getEdgeTerminal)(x,"source"),b=(0,B.getEdgeTerminal)(x,"target");if(!(!m||!b)){var A=h.nodeIdxMap[m],k=h.nodeIdxMap[b];if(A!==k){var G=h.nodeMap[m],T=h.nodeMap[b];if(!(!(0,B.isNumber)(T.x)||!(0,B.isNumber)(G.x)||!(0,B.isNumber)(T.y)||!(0,B.isNumber)(G.y))){var M=T.x-G.x,V=T.y-G.y,j=Math.sqrt(M*M+V*V),$=j*j/p;g[k].x-=M/j*$,g[k].y-=V/j*$,g[A].x+=M/j*$,g[A].y+=V/j*$}}}})},y.prototype.stop=function(){this.timeInterval&&typeof window!="undefined"&&window.clearInterval(this.timeInterval)},y.prototype.destroy=function(){var E=this;E.stop(),E.tick=null,E.nodes=null,E.edges=null,E.destroyed=!0},y.prototype.getType=function(){return"fruchterman"},y}(Y.Base);X.FruchtermanLayout=P},46260:function(hr,X,W){"use strict";var U=this&&this.__extends||function(){var N=function(y,E){return N=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,p){g.__proto__=p}||function(g,p){for(var h in p)Object.prototype.hasOwnProperty.call(p,h)&&(g[h]=p[h])},N(y,E)};return function(y,E){if(typeof E!="function"&&E!==null)throw new TypeError("Class extends value "+String(E)+" is not a constructor or null");N(y,E);function g(){this.constructor=y}y.prototype=E===null?Object.create(E):(g.prototype=E.prototype,new g)}}();Object.defineProperty(X,"__esModule",{value:!0}),X.GForceLayout=void 0;var Y=W(46253),B=W(8273),D=function(N,y){var E;return N?(0,B.isNumber)(N)?E=function(g){return N}:E=N:E=function(g){return y||1},E},P=function(N){U(y,N);function y(E){var g=N.call(this)||this;return g.maxIteration=500,g.workerEnabled=!1,g.edgeStrength=200,g.nodeStrength=1e3,g.coulombDisScale=.005,g.damping=.9,g.maxSpeed=1e3,g.minMovement=.5,g.interval=.02,g.factor=1,g.linkDistance=1,g.gravity=10,g.preventOverlap=!0,g.collideStrength=1,g.tick=function(){},g.nodes=[],g.edges=[],g.width=300,g.height=300,g.nodeMap={},g.nodeIdxMap={},g.animate=!0,g.updateCfg(E),g}return y.prototype.getDefaultCfg=function(){return{maxIteration:500,gravity:10,enableTick:!0,animate:!0}},y.prototype.execute=function(){var E,g,p=this,h=p.nodes;if(p.timeInterval!==void 0&&typeof window!="undefined"&&window.clearInterval(p.timeInterval),!h||h.length===0){(E=p.onLayoutEnd)===null||E===void 0||E.call(p);return}!p.width&&typeof window!="undefined"&&(p.width=window.innerWidth),!p.height&&typeof window!="undefined"&&(p.height=window.innerHeight),p.center||(p.center=[p.width/2,p.height/2]);var x=p.center;if(h.length===1){h[0].x=x[0],h[0].y=x[1],(g=p.onLayoutEnd)===null||g===void 0||g.call(p);return}var m={},b={};h.forEach(function(V,j){(0,B.isNumber)(V.x)||(V.x=Math.random()*p.width),(0,B.isNumber)(V.y)||(V.y=Math.random()*p.height),m[V.id]=V,b[V.id]=j}),p.nodeMap=m,p.nodeIdxMap=b,p.linkDistance=D(p.linkDistance,1),p.nodeStrength=D(p.nodeStrength,1),p.edgeStrength=D(p.edgeStrength,1);var A=p.nodeSize,k;if(p.preventOverlap){var G=p.nodeSpacing,T;(0,B.isNumber)(G)?T=function(){return G}:(0,B.isFunction)(G)?T=G:T=function(){return 0},A?(0,B.isArray)(A)?k=function(V){return Math.max(A[0],A[1])+T(V)}:k=function(V){return A+T(V)}:k=function(V){return V.size?(0,B.isArray)(V.size)?Math.max(V.size[0],V.size[1])+T(V):(0,B.isObject)(V.size)?Math.max(V.size.width,V.size.height)+T(V):V.size+T(V):10+T(V)}}p.nodeSize=k;var M=p.edges;p.degrees=(0,B.getDegree)(h.length,p.nodeIdxMap,M),p.getMass||(p.getMass=function(V){var j=V.mass||p.degrees[p.nodeIdxMap[V.id]].all||1;return j}),p.run()},y.prototype.run=function(){var E,g=this,p=g.maxIteration,h=g.nodes,x=g.workerEnabled,m=g.minMovement,b=g.animate;if(!!h)if(x||!b){for(var A=0;A=p&&((M=g.onLayoutEnd)===null||M===void 0||M.call(g),window.clearInterval(g.timeInterval))}},0)}},y.prototype.reachMoveThreshold=function(E,g,p){var h=0;return E.forEach(function(x,m){var b=x.x-g[m].x,A=x.y-g[m].y;h+=Math.sqrt(b*b+A*A)}),h/=E.length,h=q)){var te=M.x-$.x,ee=M.y-$.y;te===0&&ee===0&&(te=Math.random()*.01,ee=Math.random()*.01);var ie=te*te+ee*ee,ce=Math.sqrt(ie),ge=(ce+.1)*m,Le=te/ce,Oe=ee/ce,Re=(G(M)+G($))*.5*x/(ge*ge),de=h?h($):1;if(E[2*V]+=Le*Re,E[2*V+1]+=Oe*Re,E[2*q]-=Le*Re,E[2*q+1]-=Oe*Re,b&&(T(M)+T($))/2>ce){var ve=k*(G(M)+G($))*.5/ie;E[2*V]+=Le*ve/j,E[2*V+1]+=Oe*ve/j,E[2*q]-=Le*ve/de,E[2*q+1]-=Oe*ve/de}}})})},y.prototype.calAttractive=function(E,g){var p=this,h=p.nodeMap,x=p.nodeIdxMap,m=p.linkDistance,b=p.edgeStrength,A=p.nodeSize,k=p.getMass;g.forEach(function(G,T){var M=(0,B.getEdgeTerminal)(G,"source"),V=(0,B.getEdgeTerminal)(G,"target"),j=h[M],$=h[V],q=$.x-j.x,te=$.y-j.y;q===0&&te===0&&(q=Math.random()*.01,te=Math.random()*.01);var ee=Math.sqrt(q*q+te*te),ie=q/ee,ce=te/ee,ge=m(G,j,$)||1+(A(j)+A($)||0)/2,Le=ge-ee,Oe=Le*b(G),Re=x[M],de=x[V],ve=k?k(j):1,be=k?k($):1;E[2*Re]-=ie*Oe/ve,E[2*Re+1]-=ce*Oe/ve,E[2*de]+=ie*Oe/be,E[2*de+1]+=ce*Oe/be})},y.prototype.calGravity=function(E,g){for(var p=this,h=p.center,x=p.gravity,m=p.degrees,b=g.length,A=0;Ax.maxSpeed){var M=x.maxSpeed/T;k=M*k,G=M*G}g[2*A]=k,g[2*A+1]=G})},y.prototype.updatePosition=function(E,g,p){p.forEach(function(h,x){if((0,B.isNumber)(h.fx)&&(0,B.isNumber)(h.fy)){h.x=h.fx,h.y=h.fy;return}var m=E[2*x]*g,b=E[2*x+1]*g;h.x+=m,h.y+=b})},y.prototype.stop=function(){this.timeInterval&&typeof window!="undefined"&&window.clearInterval(this.timeInterval)},y.prototype.destroy=function(){var E=this;E.stop(),E.tick=null,E.nodes=null,E.edges=null,E.destroyed=!0},y.prototype.getType=function(){return"gForce"},y}(Y.Base);X.GForceLayout=P},81822:function(hr,X,W){"use strict";var U=this&&this.__extends||function(){var h=function(x,m){return h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,A){b.__proto__=A}||function(b,A){for(var k in A)Object.prototype.hasOwnProperty.call(A,k)&&(b[k]=A[k])},h(x,m)};return function(x,m){if(typeof m!="function"&&m!==null)throw new TypeError("Class extends value "+String(m)+" is not a constructor or null");h(x,m);function b(){this.constructor=x}x.prototype=m===null?Object.create(m):(b.prototype=m.prototype,new b)}}(),Y=this&&this.__awaiter||function(h,x,m,b){function A(k){return k instanceof m?k:new m(function(G){G(k)})}return new(m||(m=Promise))(function(k,G){function T(j){try{V(b.next(j))}catch($){G($)}}function M(j){try{V(b.throw(j))}catch($){G($)}}function V(j){j.done?k(j.value):A(j.value).then(T,M)}V((b=b.apply(h,x||[])).next())})},B=this&&this.__generator||function(h,x){var m={label:0,sent:function(){if(k[0]&1)throw k[1];return k[1]},trys:[],ops:[]},b,A,k,G;return G={next:T(0),throw:T(1),return:T(2)},typeof Symbol=="function"&&(G[Symbol.iterator]=function(){return this}),G;function T(V){return function(j){return M([V,j])}}function M(V){if(b)throw new TypeError("Generator is already executing.");for(;G&&(G=0,V[0]&&(m=0)),m;)try{if(b=1,A&&(k=V[0]&2?A.return:V[0]?A.throw||((k=A.return)&&k.call(A),0):A.next)&&!(k=k.call(A,V[1])).done)return k;switch(A=0,k&&(V=[V[0]&2,k.value]),V[0]){case 0:case 1:k=V;break;case 4:return m.label++,{value:V[1],done:!1};case 5:m.label++,A=V[1],V=[0];continue;case 7:V=m.ops.pop(),m.trys.pop();continue;default:if(k=m.trys,!(k=k.length>0&&k[k.length-1])&&(V[0]===6||V[0]===2)){m=0;continue}if(V[0]===3&&(!k||V[1]>k[0]&&V[1] 0.0) { + dx += param * xDist; + dy += param * yDist; + if (xDist == 0 && yDist == 0) { + const sign = i < j ? 1 : -1; + dx += param * sign; + dy += param * sign; + } + } + } + } + return [dx, dy]; + } + calcGravity(currentNode: vec4, nodeAttributes: vec4): vec2 { // + let dx = 0, dy = 0; + const vx = currentNode[0] - this.u_Center[0]; + const vy = currentNode[1] - this.u_Center[1]; + const gf = 0.01 * this.u_K * this.u_Gravity; + dx = gf * vx; + dy = gf * vy; + if (this.u_Clustering == 1) { + const clusterIdx = int(nodeAttributes[0]); + const center = this.u_ClusterCenters[clusterIdx]; + const cvx = currentNode[0] - center[0]; + const cvy = currentNode[1] - center[1]; + const dist = sqrt(cvx * cvx + cvy * cvy) + 0.01; + const parma = this.u_K * this.u_ClusterGravity / dist; + dx += parma * cvx; + dy += parma * cvy; + } + return [dx, dy]; + } + calcAttractive(i: int, currentNode: vec4): vec2 { + let dx = 0, dy = 0; + const arr_offset = int(floor(currentNode[2] + 0.5)); + const length = int(floor(currentNode[3] + 0.5)); + const node_buffer: vec4; + for (let p = 0; p < MAX_EDGE_PER_VERTEX; p++) { + if (p >= length) break; + const arr_idx = arr_offset + p; + // when arr_idx % 4 == 0 update currentNodedx_buffer + const buf_offset = arr_idx - arr_idx / 4 * 4; + if (p == 0 || buf_offset == 0) { + node_buffer = this.u_Data[int(arr_idx / 4)]; + } + const float_j = buf_offset == 0 ? node_buffer[0] : + buf_offset == 1 ? node_buffer[1] : + buf_offset == 2 ? node_buffer[2] : + node_buffer[3]; + const nextNode = this.u_Data[int(float_j)]; + const xDist = currentNode[0] - nextNode[0]; + const yDist = currentNode[1] - nextNode[1]; + const dist = sqrt(xDist * xDist + yDist * yDist) + 0.01; + let attractiveF = dist / this.u_K; + + if (dist > 0.0) { + dx -= xDist * attractiveF; + dy -= yDist * attractiveF; + if (xDist == 0 && yDist == 0) { + const sign = i < int(float_j) ? 1 : -1; + dx -= sign * attractiveF; + dy -= sign * attractiveF; + } + } + } + return [dx, dy]; + } + @main + compute() { + const i = globalInvocationID.x; + const currentNode = this.u_Data[i]; + let dx = 0, dy = 0; + if (i >= VERTEX_COUNT) { + this.u_Data[i] = currentNode; + return; + } + + // [gravity, fx, fy, 0] + const nodeAttributes = this.u_AttributeArray[i]; + + if (nodeAttributes[1] != 0 && nodeAttributes[2] != 0) { + // the node is fixed + this.u_Data[i] = [ + nodeAttributes[1], + nodeAttributes[2], + currentNode[2], + currentNode[3] + ]; + return; + } + + // repulsive + const repulsive = this.calcRepulsive(i, currentNode); + dx += repulsive[0]; + dy += repulsive[1]; + // attractive + const attractive = this.calcAttractive(i, currentNode); + dx += attractive[0]; + dy += attractive[1]; + // gravity + const gravity = this.calcGravity(currentNode, nodeAttributes); + dx -= gravity[0]; + dy -= gravity[1]; + // speed + dx *= this.u_Speed; + dy *= this.u_Speed; + + // move + const distLength = sqrt(dx * dx + dy * dy); + if (distLength > 0.0) { + const limitedDist = min(this.u_MaxDisplace * this.u_Speed, distLength); + this.u_Data[i] = [ + currentNode[0] + dx / distLength * limitedDist, + currentNode[1] + dy / distLength * limitedDist, + currentNode[2], + currentNode[3] + ]; + } + } +} +`,X.fruchtermanBundle='{"shaders":{"WGSL":"","GLSL450":"","GLSL100":"\\n\\nfloat epsilon = 0.00001;\\nvec2 addrTranslation_1Dto2D(float address1D, vec2 texSize) {\\n vec2 conv_const = vec2(1.0 / texSize.x, 1.0 / (texSize.x * texSize.y));\\n vec2 normAddr2D = float(address1D) * conv_const;\\n return vec2(fract(normAddr2D.x + epsilon), normAddr2D.y);\\n}\\n\\nvoid barrier() {}\\n \\n\\nuniform vec2 u_OutputTextureSize;\\nuniform int u_OutputTexelCount;\\nvarying vec2 v_TexCoord;\\n\\nbool gWebGPUDebug = false;\\nvec4 gWebGPUDebugOutput = vec4(0.0);\\n\\n#define MAX_EDGE_PER_VERTEX __DefineValuePlaceholder__MAX_EDGE_PER_VERTEX\\n#define VERTEX_COUNT __DefineValuePlaceholder__VERTEX_COUNT\\n\\nuniform sampler2D u_Data;\\nuniform vec2 u_DataSize;\\nvec4 getDatau_Data(vec2 address2D) {\\n return vec4(texture2D(u_Data, address2D).rgba);\\n}\\nvec4 getDatau_Data(float address1D) {\\n return getDatau_Data(addrTranslation_1Dto2D(address1D, u_DataSize));\\n}\\nvec4 getDatau_Data(int address1D) {\\n return getDatau_Data(float(address1D));\\n}\\nuniform float u_K;\\nuniform float u_K2;\\nuniform vec2 u_Center;\\nuniform float u_Gravity;\\nuniform float u_ClusterGravity;\\nuniform float u_Speed;\\nuniform float u_MaxDisplace;\\nuniform float u_Clustering;\\nuniform sampler2D u_AttributeArray;\\nuniform vec2 u_AttributeArraySize;\\nvec4 getDatau_AttributeArray(vec2 address2D) {\\n return vec4(texture2D(u_AttributeArray, address2D).rgba);\\n}\\nvec4 getDatau_AttributeArray(float address1D) {\\n return getDatau_AttributeArray(addrTranslation_1Dto2D(address1D, u_AttributeArraySize));\\n}\\nvec4 getDatau_AttributeArray(int address1D) {\\n return getDatau_AttributeArray(float(address1D));\\n}\\nuniform sampler2D u_ClusterCenters;\\nuniform vec2 u_ClusterCentersSize;\\nvec4 getDatau_ClusterCenters(vec2 address2D) {\\n return vec4(texture2D(u_ClusterCenters, address2D).rgba);\\n}\\nvec4 getDatau_ClusterCenters(float address1D) {\\n return getDatau_ClusterCenters(addrTranslation_1Dto2D(address1D, u_ClusterCentersSize));\\n}\\nvec4 getDatau_ClusterCenters(int address1D) {\\n return getDatau_ClusterCenters(float(address1D));\\n}\\nvec2 calcRepulsive(int i, vec4 currentNode) {\\nivec3 workGroupSize = ivec3(1, 1, 1);\\nivec3 numWorkGroups = ivec3(1, 1, 1); \\nint globalInvocationIndex = int(floor(v_TexCoord.x * u_OutputTextureSize.x))\\n + int(floor(v_TexCoord.y * u_OutputTextureSize.y)) * int(u_OutputTextureSize.x);\\nint workGroupIDLength = globalInvocationIndex / (workGroupSize.x * workGroupSize.y * workGroupSize.z);\\nivec3 workGroupID = ivec3(workGroupIDLength / numWorkGroups.y / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.y);\\nint localInvocationIDZ = globalInvocationIndex / (workGroupSize.x * workGroupSize.y);\\nint localInvocationIDY = (globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y) / workGroupSize.x;\\nint localInvocationIDX = globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y - localInvocationIDY * workGroupSize.x;\\nivec3 localInvocationID = ivec3(localInvocationIDX, localInvocationIDY, localInvocationIDZ);\\nivec3 globalInvocationID = workGroupID * workGroupSize + localInvocationID;\\nint localInvocationIndex = localInvocationID.z * workGroupSize.x * workGroupSize.y\\n + localInvocationID.y * workGroupSize.x + localInvocationID.x;\\nfloat dx = 0.0;\\nfloat dy = 0.0;\\nfor (int j = 0; j < VERTEX_COUNT; j++) {if (i != j) {vec4 nextNode = getDatau_Data(j);\\nfloat xDist = currentNode.x - nextNode.x;\\nfloat yDist = currentNode.y - nextNode.y;\\nfloat dist = ((xDist * xDist) + (yDist * yDist)) + 0.01;\\nfloat param = u_K2 / dist;\\nif (dist > 0.0) {dx += param * xDist;\\ndy += param * yDist;\\nif ((xDist == 0.0) && (yDist == 0.0)) {float sign = (i < j) ? (1.0) : (-1.0);\\ndx += param * sign;\\ndy += param * sign;}}}}\\nreturn vec2(dx, dy);}\\nvec2 calcGravity(vec4 currentNode, vec4 nodeAttributes) {\\nivec3 workGroupSize = ivec3(1, 1, 1);\\nivec3 numWorkGroups = ivec3(1, 1, 1); \\nint globalInvocationIndex = int(floor(v_TexCoord.x * u_OutputTextureSize.x))\\n + int(floor(v_TexCoord.y * u_OutputTextureSize.y)) * int(u_OutputTextureSize.x);\\nint workGroupIDLength = globalInvocationIndex / (workGroupSize.x * workGroupSize.y * workGroupSize.z);\\nivec3 workGroupID = ivec3(workGroupIDLength / numWorkGroups.y / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.y);\\nint localInvocationIDZ = globalInvocationIndex / (workGroupSize.x * workGroupSize.y);\\nint localInvocationIDY = (globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y) / workGroupSize.x;\\nint localInvocationIDX = globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y - localInvocationIDY * workGroupSize.x;\\nivec3 localInvocationID = ivec3(localInvocationIDX, localInvocationIDY, localInvocationIDZ);\\nivec3 globalInvocationID = workGroupID * workGroupSize + localInvocationID;\\nint localInvocationIndex = localInvocationID.z * workGroupSize.x * workGroupSize.y\\n + localInvocationID.y * workGroupSize.x + localInvocationID.x;\\nfloat dx = 0.0;\\nfloat dy = 0.0;\\nfloat vx = currentNode.x - u_Center.x;\\nfloat vy = currentNode.y - u_Center.y;\\nfloat gf = (0.01 * u_K) * u_Gravity;\\ndx = gf * vx;\\ndy = gf * vy;\\nif (u_Clustering == 1.0) {int clusterIdx = int(nodeAttributes.x);\\nvec4 center = getDatau_ClusterCenters(clusterIdx);\\nfloat cvx = currentNode.x - center.x;\\nfloat cvy = currentNode.y - center.y;\\nfloat dist = sqrt((cvx * cvx) + (cvy * cvy)) + 0.01;\\nfloat parma = (u_K * u_ClusterGravity) / dist;\\ndx += parma * cvx;\\ndy += parma * cvy;}\\nreturn vec2(dx, dy);}\\nvec2 calcAttractive(int i, vec4 currentNode) {\\nivec3 workGroupSize = ivec3(1, 1, 1);\\nivec3 numWorkGroups = ivec3(1, 1, 1); \\nint globalInvocationIndex = int(floor(v_TexCoord.x * u_OutputTextureSize.x))\\n + int(floor(v_TexCoord.y * u_OutputTextureSize.y)) * int(u_OutputTextureSize.x);\\nint workGroupIDLength = globalInvocationIndex / (workGroupSize.x * workGroupSize.y * workGroupSize.z);\\nivec3 workGroupID = ivec3(workGroupIDLength / numWorkGroups.y / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.y);\\nint localInvocationIDZ = globalInvocationIndex / (workGroupSize.x * workGroupSize.y);\\nint localInvocationIDY = (globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y) / workGroupSize.x;\\nint localInvocationIDX = globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y - localInvocationIDY * workGroupSize.x;\\nivec3 localInvocationID = ivec3(localInvocationIDX, localInvocationIDY, localInvocationIDZ);\\nivec3 globalInvocationID = workGroupID * workGroupSize + localInvocationID;\\nint localInvocationIndex = localInvocationID.z * workGroupSize.x * workGroupSize.y\\n + localInvocationID.y * workGroupSize.x + localInvocationID.x;\\nfloat dx = 0.0;\\nfloat dy = 0.0;\\nint arr_offset = int(floor(currentNode.z + 0.5));\\nint length = int(floor(currentNode.w + 0.5));\\nvec4 node_buffer;\\nfor (int p = 0; p < MAX_EDGE_PER_VERTEX; p++) {if (p >= length) {break;}\\nint arr_idx = arr_offset + int(p);\\nint buf_offset = arr_idx - ((arr_idx / 4) * 4);\\nif ((p == 0) || (buf_offset == 0)) {node_buffer = getDatau_Data(int(arr_idx / 4));}\\nfloat float_j = (buf_offset == 0) ? (node_buffer.x) : ((buf_offset == 1) ? (node_buffer.y) : ((buf_offset == 2) ? (node_buffer.z) : (node_buffer.w)));\\nvec4 nextNode = getDatau_Data(int(float_j));\\nfloat xDist = currentNode.x - nextNode.x;\\nfloat yDist = currentNode.y - nextNode.y;\\nfloat dist = sqrt((xDist * xDist) + (yDist * yDist)) + 0.01;\\nfloat attractiveF = dist / u_K;\\nif (dist > 0.0) {dx -= xDist * attractiveF;\\ndy -= yDist * attractiveF;\\nif ((xDist == 0.0) && (yDist == 0.0)) {float sign = (i < int(float_j)) ? (1.0) : (-1.0);\\ndx -= sign * attractiveF;\\ndy -= sign * attractiveF;}}}\\nreturn vec2(dx, dy);}\\nvoid main() {\\nivec3 workGroupSize = ivec3(1, 1, 1);\\nivec3 numWorkGroups = ivec3(1, 1, 1); \\nint globalInvocationIndex = int(floor(v_TexCoord.x * u_OutputTextureSize.x))\\n + int(floor(v_TexCoord.y * u_OutputTextureSize.y)) * int(u_OutputTextureSize.x);\\nint workGroupIDLength = globalInvocationIndex / (workGroupSize.x * workGroupSize.y * workGroupSize.z);\\nivec3 workGroupID = ivec3(workGroupIDLength / numWorkGroups.y / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.y);\\nint localInvocationIDZ = globalInvocationIndex / (workGroupSize.x * workGroupSize.y);\\nint localInvocationIDY = (globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y) / workGroupSize.x;\\nint localInvocationIDX = globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y - localInvocationIDY * workGroupSize.x;\\nivec3 localInvocationID = ivec3(localInvocationIDX, localInvocationIDY, localInvocationIDZ);\\nivec3 globalInvocationID = workGroupID * workGroupSize + localInvocationID;\\nint localInvocationIndex = localInvocationID.z * workGroupSize.x * workGroupSize.y\\n + localInvocationID.y * workGroupSize.x + localInvocationID.x;\\nint i = globalInvocationID.x;\\nvec4 currentNode = getDatau_Data(i);\\nfloat dx = 0.0;\\nfloat dy = 0.0;\\nif (i >= VERTEX_COUNT) {gl_FragColor = vec4(currentNode);\\nreturn ;}\\nvec4 nodeAttributes = getDatau_AttributeArray(i);\\nif ((nodeAttributes.y != 0.0) && (nodeAttributes.z != 0.0)) {gl_FragColor = vec4(vec4(nodeAttributes.y, nodeAttributes.z, currentNode.z, currentNode.w));\\nreturn ;}\\nvec2 repulsive = calcRepulsive(i, currentNode);\\ndx += repulsive.x;\\ndy += repulsive.y;\\nvec2 attractive = calcAttractive(i, currentNode);\\ndx += attractive.x;\\ndy += attractive.y;\\nvec2 gravity = calcGravity(currentNode, nodeAttributes);\\ndx -= gravity.x;\\ndy -= gravity.y;\\ndx *= u_Speed;\\ndy *= u_Speed;\\nfloat distLength = sqrt((dx * dx) + (dy * dy));\\nif (distLength > 0.0) {float limitedDist = min(u_MaxDisplace * u_Speed, distLength);\\ngl_FragColor = vec4(vec4(currentNode.x + ((dx / distLength) * limitedDist), currentNode.y + ((dy / distLength) * limitedDist), currentNode.z, currentNode.w));}if (gWebGPUDebug) {\\n gl_FragColor = gWebGPUDebugOutput;\\n}}\\n"},"context":{"name":"","dispatch":[1,1,1],"threadGroupSize":[1,1,1],"maxIteration":1,"defines":[{"name":"MAX_EDGE_PER_VERTEX","type":"Float","runtime":true},{"name":"VERTEX_COUNT","type":"Float","runtime":true}],"uniforms":[{"name":"u_Data","type":"vec4[]","storageClass":"StorageBuffer","readonly":false,"writeonly":false,"size":[1,1]},{"name":"u_K","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_K2","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_Center","type":"vec2","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_Gravity","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_ClusterGravity","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_Speed","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_MaxDisplace","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_Clustering","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_AttributeArray","type":"vec4[]","storageClass":"StorageBuffer","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_ClusterCenters","type":"vec4[]","storageClass":"StorageBuffer","readonly":true,"writeonly":false,"size":[1,1]}],"globalDeclarations":[],"output":{"name":"u_Data","size":[1,1],"length":1},"needPingpong":true}}',X.clusterCode=` +import { globalInvocationID } from 'g-webgpu'; +const VERTEX_COUNT; +const CLUSTER_COUNT; +@numthreads(1, 1, 1) +class CalcCenter { + @in + u_Data: vec4[]; + @in + u_NodeAttributes: vec4[]; // [[clusterIdx, 0, 0, 0], ...] + @in @out + u_ClusterCenters: vec4[]; // [[cx, cy, nodeCount, clusterIdx], ...] + @main + compute() { + const i = globalInvocationID.x; + const center = this.u_ClusterCenters[i]; + let sumx = 0; + let sumy = 0; + let count = 0; + for (let j = 0; j < VERTEX_COUNT; j++) { + const attributes = this.u_NodeAttributes[j]; + const clusterIdx = int(attributes[0]); + const vertex = this.u_Data[j]; + if (clusterIdx == i) { + sumx += vertex.x; + sumy += vertex.y; + count += 1; + } + } + this.u_ClusterCenters[i] = [ + sumx / count, + sumy / count, + count, + i + ]; + } +} +`,X.clusterBundle='{"shaders":{"WGSL":"","GLSL450":"","GLSL100":"\\n\\nfloat epsilon = 0.00001;\\nvec2 addrTranslation_1Dto2D(float address1D, vec2 texSize) {\\n vec2 conv_const = vec2(1.0 / texSize.x, 1.0 / (texSize.x * texSize.y));\\n vec2 normAddr2D = float(address1D) * conv_const;\\n return vec2(fract(normAddr2D.x + epsilon), normAddr2D.y);\\n}\\n\\nvoid barrier() {}\\n \\n\\nuniform vec2 u_OutputTextureSize;\\nuniform int u_OutputTexelCount;\\nvarying vec2 v_TexCoord;\\n\\nbool gWebGPUDebug = false;\\nvec4 gWebGPUDebugOutput = vec4(0.0);\\n\\n#define VERTEX_COUNT __DefineValuePlaceholder__VERTEX_COUNT\\n#define CLUSTER_COUNT __DefineValuePlaceholder__CLUSTER_COUNT\\n\\nuniform sampler2D u_Data;\\nuniform vec2 u_DataSize;\\nvec4 getDatau_Data(vec2 address2D) {\\n return vec4(texture2D(u_Data, address2D).rgba);\\n}\\nvec4 getDatau_Data(float address1D) {\\n return getDatau_Data(addrTranslation_1Dto2D(address1D, u_DataSize));\\n}\\nvec4 getDatau_Data(int address1D) {\\n return getDatau_Data(float(address1D));\\n}\\nuniform sampler2D u_NodeAttributes;\\nuniform vec2 u_NodeAttributesSize;\\nvec4 getDatau_NodeAttributes(vec2 address2D) {\\n return vec4(texture2D(u_NodeAttributes, address2D).rgba);\\n}\\nvec4 getDatau_NodeAttributes(float address1D) {\\n return getDatau_NodeAttributes(addrTranslation_1Dto2D(address1D, u_NodeAttributesSize));\\n}\\nvec4 getDatau_NodeAttributes(int address1D) {\\n return getDatau_NodeAttributes(float(address1D));\\n}\\nuniform sampler2D u_ClusterCenters;\\nuniform vec2 u_ClusterCentersSize;\\nvec4 getDatau_ClusterCenters(vec2 address2D) {\\n return vec4(texture2D(u_ClusterCenters, address2D).rgba);\\n}\\nvec4 getDatau_ClusterCenters(float address1D) {\\n return getDatau_ClusterCenters(addrTranslation_1Dto2D(address1D, u_ClusterCentersSize));\\n}\\nvec4 getDatau_ClusterCenters(int address1D) {\\n return getDatau_ClusterCenters(float(address1D));\\n}\\nvoid main() {\\nivec3 workGroupSize = ivec3(1, 1, 1);\\nivec3 numWorkGroups = ivec3(1, 1, 1); \\nint globalInvocationIndex = int(floor(v_TexCoord.x * u_OutputTextureSize.x))\\n + int(floor(v_TexCoord.y * u_OutputTextureSize.y)) * int(u_OutputTextureSize.x);\\nint workGroupIDLength = globalInvocationIndex / (workGroupSize.x * workGroupSize.y * workGroupSize.z);\\nivec3 workGroupID = ivec3(workGroupIDLength / numWorkGroups.y / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.y);\\nint localInvocationIDZ = globalInvocationIndex / (workGroupSize.x * workGroupSize.y);\\nint localInvocationIDY = (globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y) / workGroupSize.x;\\nint localInvocationIDX = globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y - localInvocationIDY * workGroupSize.x;\\nivec3 localInvocationID = ivec3(localInvocationIDX, localInvocationIDY, localInvocationIDZ);\\nivec3 globalInvocationID = workGroupID * workGroupSize + localInvocationID;\\nint localInvocationIndex = localInvocationID.z * workGroupSize.x * workGroupSize.y\\n + localInvocationID.y * workGroupSize.x + localInvocationID.x;\\nint i = globalInvocationID.x;\\nvec4 center = getDatau_ClusterCenters(i);\\nfloat sumx = 0.0;\\nfloat sumy = 0.0;\\nfloat count = 0.0;\\nfor (int j = 0; j < VERTEX_COUNT; j++) {vec4 attributes = getDatau_NodeAttributes(j);\\nint clusterIdx = int(attributes.x);\\nvec4 vertex = getDatau_Data(j);\\nif (clusterIdx == i) {sumx += vertex.x;\\nsumy += vertex.y;\\ncount += 1.0;}}\\ngl_FragColor = vec4(vec4(sumx / count, sumy / count, count, i));if (gWebGPUDebug) {\\n gl_FragColor = gWebGPUDebugOutput;\\n}}\\n"},"context":{"name":"","dispatch":[1,1,1],"threadGroupSize":[1,1,1],"maxIteration":1,"defines":[{"name":"VERTEX_COUNT","type":"Float","runtime":true},{"name":"CLUSTER_COUNT","type":"Float","runtime":true}],"uniforms":[{"name":"u_Data","type":"vec4[]","storageClass":"StorageBuffer","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_NodeAttributes","type":"vec4[]","storageClass":"StorageBuffer","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_ClusterCenters","type":"vec4[]","storageClass":"StorageBuffer","readonly":false,"writeonly":false,"size":[1,1]}],"globalDeclarations":[],"output":{"name":"u_ClusterCenters","size":[1,1],"length":1},"needPingpong":true}}'},86043:function(hr,X,W){"use strict";var U=this&&this.__extends||function(){var x=function(m,b){return x=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(A,k){A.__proto__=k}||function(A,k){for(var G in k)Object.prototype.hasOwnProperty.call(k,G)&&(A[G]=k[G])},x(m,b)};return function(m,b){if(typeof b!="function"&&b!==null)throw new TypeError("Class extends value "+String(b)+" is not a constructor or null");x(m,b);function A(){this.constructor=m}m.prototype=b===null?Object.create(b):(A.prototype=b.prototype,new A)}}(),Y=this&&this.__awaiter||function(x,m,b,A){function k(G){return G instanceof b?G:new b(function(T){T(G)})}return new(b||(b=Promise))(function(G,T){function M($){try{j(A.next($))}catch(q){T(q)}}function V($){try{j(A.throw($))}catch(q){T(q)}}function j($){$.done?G($.value):k($.value).then(M,V)}j((A=A.apply(x,m||[])).next())})},B=this&&this.__generator||function(x,m){var b={label:0,sent:function(){if(G[0]&1)throw G[1];return G[1]},trys:[],ops:[]},A,k,G,T;return T={next:M(0),throw:M(1),return:M(2)},typeof Symbol=="function"&&(T[Symbol.iterator]=function(){return this}),T;function M(j){return function($){return V([j,$])}}function V(j){if(A)throw new TypeError("Generator is already executing.");for(;T&&(T=0,j[0]&&(b=0)),b;)try{if(A=1,k&&(G=j[0]&2?k.return:j[0]?k.throw||((G=k.return)&&G.call(k),0):k.next)&&!(G=G.call(k,j[1])).done)return G;switch(k=0,G&&(j=[j[0]&2,G.value]),j[0]){case 0:case 1:G=j;break;case 4:return b.label++,{value:j[1],done:!1};case 5:b.label++,k=j[1],j=[0];continue;case 7:j=b.ops.pop(),b.trys.pop();continue;default:if(G=b.trys,!(G=G.length>0&&G[G.length-1])&&(j[0]===6||j[0]===2)){b=0;continue}if(j[0]===3&&(!G||j[1]>G[0]&&j[1]= length) break; + const arr_idx = arr_offset + 4 * p; // i \u8282\u70B9\u7684\u7B2C p \u6761\u8FB9\u5F00\u59CB\u7684\u5C0F\u683C\u5B50\u4F4D\u7F6E + const buf_offset = arr_idx - arr_idx / 4 * 4; + if (p == 0 || buf_offset == 0) { + node_buffer = this.u_Data[int(arr_idx / 4)]; // \u5927\u683C\u5B50\uFF0C\u5927\u683C\u5B50\u4F4D\u7F6E=\u5C0F\u4E2A\u5B50\u4F4D\u7F6E / 4\uFF0C + } + + let float_j: float = node_buffer[0]; + + const nextNode = this.u_Data[int(float_j)]; + const vx = nextNode[0] - currentNode[0]; + const vy = nextNode[1] - currentNode[1]; + const dist = sqrt(vx * vx + vy * vy) + 0.01; + const direx = vx / dist; + const direy = vy / dist; + const edgeLength = node_buffer[1]; + const edgeStrength = node_buffer[2]; + const diff: float = edgeLength - dist;//edgeLength + // const param = diff * this.u_stiffness / mass; // + const param = diff * edgeStrength / mass; // + ax -= direx * param; + ay -= direy * param; + } + return [ax, ay]; + } + + @main + compute() { + const i = globalInvocationID.x; + const currentNode = this.u_Data[i]; + const movement = u_AveMovement[0]; + let ax = 0, ay = 0; + + if (i >= VERTEX_COUNT || movement.x < u_minMovement) { + this.u_Data[i] = currentNode; + return; + } + + // \u6BCF\u4E2A\u8282\u70B9\u5C5E\u6027\u5360\u4E24\u4E2A\u6570\u7EC4\u4E2D\u5404\u4E00\u683C + // [mass, degree, nodeStrength, fx] + const nodeAttributes1 = this.u_NodeAttributeArray1[i]; + // [centerX, centerY, centerGravity, fy] + const nodeAttributes2 = this.u_NodeAttributeArray2[i]; + + // repulsive + const repulsive = this.calcRepulsive(i, currentNode); + ax += repulsive[0]; + ay += repulsive[1]; + + // attractive + const attractive = this.calcAttractive(i, currentNode, nodeAttributes1); + ax += attractive[0]; + ay += attractive[1]; + + // gravity + const gravity = this.calcGravity(i, currentNode, nodeAttributes2); + ax -= gravity[0]; + ay -= gravity[1]; + + // speed + const param = this.u_interval * this.u_damping; + let vx = ax * param; + let vy = ay * param; + const vlength = sqrt(vx * vx + vy * vy) + 0.0001; + if (vlength > this.u_maxSpeed) { + const param2 = this.u_maxSpeed / vlength; + vx = param2 * vx; + vy = param2 * vy; + } + + // move + if (nodeAttributes1[3] != 0 && nodeAttributes2[3] != 0) { + this.u_Data[i] = [ + nodeAttributes1[3], + nodeAttributes2[3], + currentNode[2], + 0 + ]; + } else { + const distx = vx * this.u_interval; + const disty = vy * this.u_interval; + const distLength = sqrt(distx * distx + disty * disty); + this.u_Data[i] = [ + currentNode[0] + distx, + currentNode[1] + disty, + currentNode[2], + distLength + ]; + } + + // the avarage move distance + // need to share memory + + } +} +`,X.gForceBundle='{"shaders":{"WGSL":"","GLSL450":"","GLSL100":"\\n\\nfloat epsilon = 0.00001;\\nvec2 addrTranslation_1Dto2D(float address1D, vec2 texSize) {\\n vec2 conv_const = vec2(1.0 / texSize.x, 1.0 / (texSize.x * texSize.y));\\n vec2 normAddr2D = float(address1D) * conv_const;\\n return vec2(fract(normAddr2D.x + epsilon), normAddr2D.y);\\n}\\n\\nvoid barrier() {}\\n \\n\\nuniform vec2 u_OutputTextureSize;\\nuniform int u_OutputTexelCount;\\nvarying vec2 v_TexCoord;\\n\\nbool gWebGPUDebug = false;\\nvec4 gWebGPUDebugOutput = vec4(0.0);\\n\\n#define MAX_EDGE_PER_VERTEX __DefineValuePlaceholder__MAX_EDGE_PER_VERTEX\\n#define VERTEX_COUNT __DefineValuePlaceholder__VERTEX_COUNT\\n#define SHIFT_20 1048576.0\\n\\nuniform sampler2D u_Data;\\nuniform vec2 u_DataSize;\\nvec4 getDatau_Data(vec2 address2D) {\\n return vec4(texture2D(u_Data, address2D).rgba);\\n}\\nvec4 getDatau_Data(float address1D) {\\n return getDatau_Data(addrTranslation_1Dto2D(address1D, u_DataSize));\\n}\\nvec4 getDatau_Data(int address1D) {\\n return getDatau_Data(float(address1D));\\n}\\nuniform float u_damping;\\nuniform float u_maxSpeed;\\nuniform float u_minMovement;\\nuniform sampler2D u_AveMovement;\\nuniform vec2 u_AveMovementSize;\\nvec4 getDatau_AveMovement(vec2 address2D) {\\n return vec4(texture2D(u_AveMovement, address2D).rgba);\\n}\\nvec4 getDatau_AveMovement(float address1D) {\\n return getDatau_AveMovement(addrTranslation_1Dto2D(address1D, u_AveMovementSize));\\n}\\nvec4 getDatau_AveMovement(int address1D) {\\n return getDatau_AveMovement(float(address1D));\\n}\\nuniform float u_coulombDisScale;\\nuniform float u_factor;\\nuniform sampler2D u_NodeAttributeArray1;\\nuniform vec2 u_NodeAttributeArray1Size;\\nvec4 getDatau_NodeAttributeArray1(vec2 address2D) {\\n return vec4(texture2D(u_NodeAttributeArray1, address2D).rgba);\\n}\\nvec4 getDatau_NodeAttributeArray1(float address1D) {\\n return getDatau_NodeAttributeArray1(addrTranslation_1Dto2D(address1D, u_NodeAttributeArray1Size));\\n}\\nvec4 getDatau_NodeAttributeArray1(int address1D) {\\n return getDatau_NodeAttributeArray1(float(address1D));\\n}\\nuniform sampler2D u_NodeAttributeArray2;\\nuniform vec2 u_NodeAttributeArray2Size;\\nvec4 getDatau_NodeAttributeArray2(vec2 address2D) {\\n return vec4(texture2D(u_NodeAttributeArray2, address2D).rgba);\\n}\\nvec4 getDatau_NodeAttributeArray2(float address1D) {\\n return getDatau_NodeAttributeArray2(addrTranslation_1Dto2D(address1D, u_NodeAttributeArray2Size));\\n}\\nvec4 getDatau_NodeAttributeArray2(int address1D) {\\n return getDatau_NodeAttributeArray2(float(address1D));\\n}\\nuniform float u_interval;\\nivec2 unpack_float(float packedValue) {\\nivec3 workGroupSize = ivec3(1, 1, 1);\\nivec3 numWorkGroups = ivec3(1, 1, 1); \\nint globalInvocationIndex = int(floor(v_TexCoord.x * u_OutputTextureSize.x))\\n + int(floor(v_TexCoord.y * u_OutputTextureSize.y)) * int(u_OutputTextureSize.x);\\nint workGroupIDLength = globalInvocationIndex / (workGroupSize.x * workGroupSize.y * workGroupSize.z);\\nivec3 workGroupID = ivec3(workGroupIDLength / numWorkGroups.y / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.y);\\nint localInvocationIDZ = globalInvocationIndex / (workGroupSize.x * workGroupSize.y);\\nint localInvocationIDY = (globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y) / workGroupSize.x;\\nint localInvocationIDX = globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y - localInvocationIDY * workGroupSize.x;\\nivec3 localInvocationID = ivec3(localInvocationIDX, localInvocationIDY, localInvocationIDZ);\\nivec3 globalInvocationID = workGroupID * workGroupSize + localInvocationID;\\nint localInvocationIndex = localInvocationID.z * workGroupSize.x * workGroupSize.y\\n + localInvocationID.y * workGroupSize.x + localInvocationID.x;\\nint packedIntValue = int(packedValue);\\nint v0 = packedIntValue / int(SHIFT_20);\\nreturn ivec2(v0, packedIntValue - (v0 * int(SHIFT_20)));}\\nvec2 calcRepulsive(int i, vec4 currentNode) {\\nivec3 workGroupSize = ivec3(1, 1, 1);\\nivec3 numWorkGroups = ivec3(1, 1, 1); \\nint globalInvocationIndex = int(floor(v_TexCoord.x * u_OutputTextureSize.x))\\n + int(floor(v_TexCoord.y * u_OutputTextureSize.y)) * int(u_OutputTextureSize.x);\\nint workGroupIDLength = globalInvocationIndex / (workGroupSize.x * workGroupSize.y * workGroupSize.z);\\nivec3 workGroupID = ivec3(workGroupIDLength / numWorkGroups.y / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.y);\\nint localInvocationIDZ = globalInvocationIndex / (workGroupSize.x * workGroupSize.y);\\nint localInvocationIDY = (globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y) / workGroupSize.x;\\nint localInvocationIDX = globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y - localInvocationIDY * workGroupSize.x;\\nivec3 localInvocationID = ivec3(localInvocationIDX, localInvocationIDY, localInvocationIDZ);\\nivec3 globalInvocationID = workGroupID * workGroupSize + localInvocationID;\\nint localInvocationIndex = localInvocationID.z * workGroupSize.x * workGroupSize.y\\n + localInvocationID.y * workGroupSize.x + localInvocationID.x;\\nfloat ax = 0.0;\\nfloat ay = 0.0;\\nfor (int j = 0; j < VERTEX_COUNT; j++) {if (i != j) {vec4 nextNode = getDatau_Data(j);\\nfloat vx = currentNode.x - nextNode.x;\\nfloat vy = currentNode.y - nextNode.y;\\nfloat dist = sqrt((vx * vx) + (vy * vy)) + 0.01;\\nfloat n_dist = (dist + 0.1) * u_coulombDisScale;\\nfloat direx = vx / dist;\\nfloat direy = vy / dist;\\nvec4 attributesi = getDatau_NodeAttributeArray1(i);\\nvec4 attributesj = getDatau_NodeAttributeArray1(j);\\nfloat massi = attributesi.x;\\nfloat nodeStrengthi = attributesi.z;\\nfloat nodeStrengthj = attributesj.z;\\nfloat nodeStrength = (nodeStrengthi + nodeStrengthj) / 2.0;\\nfloat param = (nodeStrength * u_factor) / (n_dist * n_dist);\\nax += direx * param;\\nay += direy * param;}}\\nreturn vec2(ax, ay);}\\nvec2 calcGravity(int i, vec4 currentNode, vec4 attributes2) {\\nivec3 workGroupSize = ivec3(1, 1, 1);\\nivec3 numWorkGroups = ivec3(1, 1, 1); \\nint globalInvocationIndex = int(floor(v_TexCoord.x * u_OutputTextureSize.x))\\n + int(floor(v_TexCoord.y * u_OutputTextureSize.y)) * int(u_OutputTextureSize.x);\\nint workGroupIDLength = globalInvocationIndex / (workGroupSize.x * workGroupSize.y * workGroupSize.z);\\nivec3 workGroupID = ivec3(workGroupIDLength / numWorkGroups.y / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.y);\\nint localInvocationIDZ = globalInvocationIndex / (workGroupSize.x * workGroupSize.y);\\nint localInvocationIDY = (globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y) / workGroupSize.x;\\nint localInvocationIDX = globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y - localInvocationIDY * workGroupSize.x;\\nivec3 localInvocationID = ivec3(localInvocationIDX, localInvocationIDY, localInvocationIDZ);\\nivec3 globalInvocationID = workGroupID * workGroupSize + localInvocationID;\\nint localInvocationIndex = localInvocationID.z * workGroupSize.x * workGroupSize.y\\n + localInvocationID.y * workGroupSize.x + localInvocationID.x;\\nfloat vx = currentNode.x - attributes2.x;\\nfloat vy = currentNode.y - attributes2.y;\\nfloat ax = vx * attributes2.z;\\nfloat ay = vy * attributes2.z;\\nreturn vec2(ax, ay);}\\nvec2 calcAttractive(int i, vec4 currentNode, vec4 attributes1) {\\nivec3 workGroupSize = ivec3(1, 1, 1);\\nivec3 numWorkGroups = ivec3(1, 1, 1); \\nint globalInvocationIndex = int(floor(v_TexCoord.x * u_OutputTextureSize.x))\\n + int(floor(v_TexCoord.y * u_OutputTextureSize.y)) * int(u_OutputTextureSize.x);\\nint workGroupIDLength = globalInvocationIndex / (workGroupSize.x * workGroupSize.y * workGroupSize.z);\\nivec3 workGroupID = ivec3(workGroupIDLength / numWorkGroups.y / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.y);\\nint localInvocationIDZ = globalInvocationIndex / (workGroupSize.x * workGroupSize.y);\\nint localInvocationIDY = (globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y) / workGroupSize.x;\\nint localInvocationIDX = globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y - localInvocationIDY * workGroupSize.x;\\nivec3 localInvocationID = ivec3(localInvocationIDX, localInvocationIDY, localInvocationIDZ);\\nivec3 globalInvocationID = workGroupID * workGroupSize + localInvocationID;\\nint localInvocationIndex = localInvocationID.z * workGroupSize.x * workGroupSize.y\\n + localInvocationID.y * workGroupSize.x + localInvocationID.x;\\nfloat mass = attributes1.x;\\nfloat ax = 0.0;\\nfloat ay = 0.0;\\nivec2 compressed = unpack_float(currentNode.z);\\nint length = compressed.x;\\nint arr_offset = compressed.y;\\nvec4 node_buffer;\\nfor (int p = 0; p < MAX_EDGE_PER_VERTEX; p++) {if (p >= length) {break;}\\nint arr_idx = arr_offset + (4 * p);\\nint buf_offset = arr_idx - ((arr_idx / 4) * 4);\\nif ((p == 0) || (buf_offset == 0)) {node_buffer = getDatau_Data(int(arr_idx / 4));}\\nfloat float_j = node_buffer.x;\\nvec4 nextNode = getDatau_Data(int(float_j));\\nfloat vx = nextNode.x - currentNode.x;\\nfloat vy = nextNode.y - currentNode.y;\\nfloat dist = sqrt((vx * vx) + (vy * vy)) + 0.01;\\nfloat direx = vx / dist;\\nfloat direy = vy / dist;\\nfloat edgeLength = node_buffer.y;\\nfloat edgeStrength = node_buffer.z;\\nfloat diff = edgeLength - dist;\\nfloat param = (diff * edgeStrength) / mass;\\nax -= direx * param;\\nay -= direy * param;}\\nreturn vec2(ax, ay);}\\nvoid main() {\\nivec3 workGroupSize = ivec3(1, 1, 1);\\nivec3 numWorkGroups = ivec3(1, 1, 1); \\nint globalInvocationIndex = int(floor(v_TexCoord.x * u_OutputTextureSize.x))\\n + int(floor(v_TexCoord.y * u_OutputTextureSize.y)) * int(u_OutputTextureSize.x);\\nint workGroupIDLength = globalInvocationIndex / (workGroupSize.x * workGroupSize.y * workGroupSize.z);\\nivec3 workGroupID = ivec3(workGroupIDLength / numWorkGroups.y / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.y);\\nint localInvocationIDZ = globalInvocationIndex / (workGroupSize.x * workGroupSize.y);\\nint localInvocationIDY = (globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y) / workGroupSize.x;\\nint localInvocationIDX = globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y - localInvocationIDY * workGroupSize.x;\\nivec3 localInvocationID = ivec3(localInvocationIDX, localInvocationIDY, localInvocationIDZ);\\nivec3 globalInvocationID = workGroupID * workGroupSize + localInvocationID;\\nint localInvocationIndex = localInvocationID.z * workGroupSize.x * workGroupSize.y\\n + localInvocationID.y * workGroupSize.x + localInvocationID.x;\\nint i = globalInvocationID.x;\\nvec4 currentNode = getDatau_Data(i);\\nvec4 movement = getDatau_AveMovement(0.0);\\nfloat ax = 0.0;\\nfloat ay = 0.0;\\nif ((i >= VERTEX_COUNT) || (movement.x < u_minMovement)) {gl_FragColor = vec4(currentNode);\\nreturn ;}\\nvec4 nodeAttributes1 = getDatau_NodeAttributeArray1(i);\\nvec4 nodeAttributes2 = getDatau_NodeAttributeArray2(i);\\nvec2 repulsive = calcRepulsive(i, currentNode);\\nax += repulsive.x;\\nay += repulsive.y;\\nvec2 attractive = calcAttractive(i, currentNode, nodeAttributes1);\\nax += attractive.x;\\nay += attractive.y;\\nvec2 gravity = calcGravity(i, currentNode, nodeAttributes2);\\nax -= gravity.x;\\nay -= gravity.y;\\nfloat param = u_interval * u_damping;\\nfloat vx = ax * param;\\nfloat vy = ay * param;\\nfloat vlength = sqrt((vx * vx) + (vy * vy)) + 0.0001;\\nif (vlength > u_maxSpeed) {float param2 = u_maxSpeed / vlength;\\nvx = param2 * vx;\\nvy = param2 * vy;}\\nif ((nodeAttributes1.w != 0.0) && (nodeAttributes2.w != 0.0)) {gl_FragColor = vec4(vec4(nodeAttributes1.w, nodeAttributes2.w, currentNode.z, 0.0));}else {float distx = vx * u_interval;\\nfloat disty = vy * u_interval;\\nfloat distLength = sqrt((distx * distx) + (disty * disty));\\ngl_FragColor = vec4(vec4(currentNode.x + distx, currentNode.y + disty, currentNode.z, distLength));}if (gWebGPUDebug) {\\n gl_FragColor = gWebGPUDebugOutput;\\n}}\\n"},"context":{"name":"","dispatch":[1,1,1],"threadGroupSize":[1,1,1],"maxIteration":1,"defines":[{"name":"MAX_EDGE_PER_VERTEX","type":"Float","runtime":true},{"name":"VERTEX_COUNT","type":"Float","runtime":true},{"name":"SHIFT_20","type":"Float","value":1048576,"runtime":false}],"uniforms":[{"name":"u_Data","type":"vec4[]","storageClass":"StorageBuffer","readonly":false,"writeonly":false,"size":[1,1]},{"name":"u_damping","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_maxSpeed","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_minMovement","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_AveMovement","type":"vec4[]","storageClass":"StorageBuffer","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_coulombDisScale","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_factor","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_NodeAttributeArray1","type":"vec4[]","storageClass":"StorageBuffer","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_NodeAttributeArray2","type":"vec4[]","storageClass":"StorageBuffer","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_interval","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]}],"globalDeclarations":[],"output":{"name":"u_Data","size":[1,1],"length":1},"needPingpong":true}}',X.aveMovementCode=` +const VERTEX_COUNT; +@numthreads(1, 1, 1) +class CalcAveMovement { + @in + u_Data: vec4[]; + @in + u_iter: float; + @in @out + u_AveMovement: vec4[]; + @main + compute() { + let movement = 0; + for (let j: int = 0; j < VERTEX_COUNT; j++) { + const vertex = this.u_Data[j]; + movement += vertex[3]; + } + movement = movement / float(VERTEX_COUNT); + this.u_AveMovement[0] = [movement, 0, 0, 0]; + } +} +`,X.aveMovementBundle='{"shaders":{"WGSL":"","GLSL450":"","GLSL100":"\\n\\nfloat epsilon = 0.00001;\\nvec2 addrTranslation_1Dto2D(float address1D, vec2 texSize) {\\n vec2 conv_const = vec2(1.0 / texSize.x, 1.0 / (texSize.x * texSize.y));\\n vec2 normAddr2D = float(address1D) * conv_const;\\n return vec2(fract(normAddr2D.x + epsilon), normAddr2D.y);\\n}\\n\\nvoid barrier() {}\\n \\n\\nuniform vec2 u_OutputTextureSize;\\nuniform int u_OutputTexelCount;\\nvarying vec2 v_TexCoord;\\n\\nbool gWebGPUDebug = false;\\nvec4 gWebGPUDebugOutput = vec4(0.0);\\n\\n#define VERTEX_COUNT __DefineValuePlaceholder__VERTEX_COUNT\\n\\nuniform sampler2D u_Data;\\nuniform vec2 u_DataSize;\\nvec4 getDatau_Data(vec2 address2D) {\\n return vec4(texture2D(u_Data, address2D).rgba);\\n}\\nvec4 getDatau_Data(float address1D) {\\n return getDatau_Data(addrTranslation_1Dto2D(address1D, u_DataSize));\\n}\\nvec4 getDatau_Data(int address1D) {\\n return getDatau_Data(float(address1D));\\n}\\nuniform float u_iter;\\nuniform sampler2D u_AveMovement;\\nuniform vec2 u_AveMovementSize;\\nvec4 getDatau_AveMovement(vec2 address2D) {\\n return vec4(texture2D(u_AveMovement, address2D).rgba);\\n}\\nvec4 getDatau_AveMovement(float address1D) {\\n return getDatau_AveMovement(addrTranslation_1Dto2D(address1D, u_AveMovementSize));\\n}\\nvec4 getDatau_AveMovement(int address1D) {\\n return getDatau_AveMovement(float(address1D));\\n}\\nvoid main() {\\nivec3 workGroupSize = ivec3(1, 1, 1);\\nivec3 numWorkGroups = ivec3(1, 1, 1); \\nint globalInvocationIndex = int(floor(v_TexCoord.x * u_OutputTextureSize.x))\\n + int(floor(v_TexCoord.y * u_OutputTextureSize.y)) * int(u_OutputTextureSize.x);\\nint workGroupIDLength = globalInvocationIndex / (workGroupSize.x * workGroupSize.y * workGroupSize.z);\\nivec3 workGroupID = ivec3(workGroupIDLength / numWorkGroups.y / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.y);\\nint localInvocationIDZ = globalInvocationIndex / (workGroupSize.x * workGroupSize.y);\\nint localInvocationIDY = (globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y) / workGroupSize.x;\\nint localInvocationIDX = globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y - localInvocationIDY * workGroupSize.x;\\nivec3 localInvocationID = ivec3(localInvocationIDX, localInvocationIDY, localInvocationIDZ);\\nivec3 globalInvocationID = workGroupID * workGroupSize + localInvocationID;\\nint localInvocationIndex = localInvocationID.z * workGroupSize.x * workGroupSize.y\\n + localInvocationID.y * workGroupSize.x + localInvocationID.x;\\nfloat movement = 0.0;\\nfor (int j = 0; j < VERTEX_COUNT; j++) {vec4 vertex = getDatau_Data(j);\\nmovement += vertex.w;}\\nmovement = movement / float(VERTEX_COUNT);\\ngl_FragColor = vec4(vec4(movement, 0.0, 0.0, 0.0));if (gWebGPUDebug) {\\n gl_FragColor = gWebGPUDebugOutput;\\n}}\\n"},"context":{"name":"","dispatch":[1,1,1],"threadGroupSize":[1,1,1],"maxIteration":1,"defines":[{"name":"VERTEX_COUNT","type":"Float","runtime":true}],"uniforms":[{"name":"u_Data","type":"vec4[]","storageClass":"StorageBuffer","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_iter","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_AveMovement","type":"vec4[]","storageClass":"StorageBuffer","readonly":false,"writeonly":false,"size":[1,1]}],"globalDeclarations":[],"output":{"name":"u_AveMovement","size":[1,1],"length":1},"needPingpong":true}}'},74294:function(hr,X,W){"use strict";var U=this&&this.__extends||function(){var P=function(N,y){return P=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(E,g){E.__proto__=g}||function(E,g){for(var p in g)Object.prototype.hasOwnProperty.call(g,p)&&(E[p]=g[p])},P(N,y)};return function(N,y){if(typeof y!="function"&&y!==null)throw new TypeError("Class extends value "+String(y)+" is not a constructor or null");P(N,y);function E(){this.constructor=N}N.prototype=y===null?Object.create(y):(E.prototype=y.prototype,new E)}}();Object.defineProperty(X,"__esModule",{value:!0}),X.GridLayout=void 0;var Y=W(8273),B=W(46253),D=function(P){U(N,P);function N(y){var E=P.call(this)||this;return E.begin=[0,0],E.preventOverlap=!0,E.preventOverlapPadding=10,E.condense=!1,E.sortBy="degree",E.nodes=[],E.edges=[],E.width=300,E.height=300,E.row=0,E.col=0,E.cellWidth=0,E.cellHeight=0,E.cellUsed={},E.id2manPos={},E.onLayoutEnd=function(){},E.updateCfg(y),E}return N.prototype.getDefaultCfg=function(){return{begin:[0,0],preventOverlap:!0,preventOverlapPadding:10,condense:!1,rows:void 0,cols:void 0,position:void 0,sortBy:"degree",nodeSize:30}},N.prototype.execute=function(){var y=this,E=y.nodes,g=y.edges,p=y.begin,h=E.length;if(h===0)return y.onLayoutEnd&&y.onLayoutEnd(),{nodes:E,edges:g};if(h===1)return E[0].x=p[0],E[0].y=p[1],y.onLayoutEnd&&y.onLayoutEnd(),{nodes:E,edges:g};var x=y.sortBy,m=y.width,b=y.height,A=y.condense,k=y.preventOverlapPadding,G=y.preventOverlap,T=y.nodeSpacing,M=y.nodeSize,V=[];E.forEach(function(ve){V.push(ve)});var j={};if(V.forEach(function(ve,be){j[ve.id]=be}),(x==="degree"||!(0,Y.isString)(x)||V[0][x]===void 0)&&(x="degree",(0,Y.isNaN)(E[0].degree))){var $=(0,Y.getDegree)(V.length,j,g);V.forEach(function(ve,be){ve.degree=$[be].all})}V.sort(function(ve,be){return be[x]-ve[x]}),!m&&typeof window!="undefined"&&(m=window.innerWidth),!b&&typeof window!="undefined"&&(b=window.innerHeight);var q=y.rows,te=y.cols!=null?y.cols:y.columns;if(y.cells=h,q!=null&&te!=null?(y.rows=q,y.cols=te):q!=null&&te==null?(y.rows=q,y.cols=Math.ceil(y.cells/y.rows)):q==null&&te!=null?(y.cols=te,y.rows=Math.ceil(y.cells/y.cols)):(y.splits=Math.sqrt(y.cells*y.height/y.width),y.rows=Math.round(y.splits),y.cols=Math.round(y.width/y.height*y.splits)),y.rows=Math.max(y.rows,1),y.cols=Math.max(y.cols,1),y.cols*y.rows>y.cells){var ee=y.small(),ie=y.large();(ee-1)*ie>=y.cells?y.small(ee-1):(ie-1)*ee>=y.cells&&y.large(ie-1)}else for(;y.cols*y.rows=y.cells?y.large(ie+1):y.small(ee+1)}if(y.cellWidth=m/y.cols,y.cellHeight=b/y.rows,A&&(y.cellWidth=0,y.cellHeight=0),G||T){var ce=(0,Y.getFuncByUnknownType)(10,T),ge=(0,Y.getFuncByUnknownType)(30,M,!1);V.forEach(function(ve){(!ve.x||!ve.y)&&(ve.x=0,ve.y=0);var be=ge(ve)||30,Ae,Pe;(0,Y.isArray)(be)?(Ae=be[0],Pe=be[1]):(Ae=be,Pe=be);var Ve=ce!==void 0?ce(ve):k,Ue=Ae+Ve,Ke=Pe+Ve;y.cellWidth=Math.max(y.cellWidth,Ue),y.cellHeight=Math.max(y.cellHeight,Ke)})}y.cellUsed={},y.row=0,y.col=0,y.id2manPos={};for(var Le=0;Le=E&&(y.col=0,y.row++)},N.prototype.getPos=function(y){var E=this,g=E.begin,p=E.cellWidth,h=E.cellHeight,x,m,b=E.id2manPos[y.id];if(b)x=b.col*p+p/2+g[0],m=b.row*h+h/2+g[1];else{for(;E.used(E.row,E.col);)E.moveToNextCell();x=E.col*p+p/2+g[0],m=E.row*h+h/2+g[1],E.use(E.row,E.col),E.moveToNextCell()}y.x=x,y.y=m},N.prototype.getType=function(){return"grid"},N}(B.Base);X.GridLayout=D},64649:function(hr,X,W){"use strict";var U=this&&this.__createBinding||(Object.create?function($,q,te,ee){ee===void 0&&(ee=te);var ie=Object.getOwnPropertyDescriptor(q,te);(!ie||("get"in ie?!q.__esModule:ie.writable||ie.configurable))&&(ie={enumerable:!0,get:function(){return q[te]}}),Object.defineProperty($,ee,ie)}:function($,q,te,ee){ee===void 0&&(ee=te),$[ee]=q[te]}),Y=this&&this.__exportStar||function($,q){for(var te in $)te!=="default"&&!Object.prototype.hasOwnProperty.call(q,te)&&U(q,$,te)};Object.defineProperty(X,"__esModule",{value:!0}),X.ERLayout=X.ForceAtlas2Layout=X.ComboCombinedLayout=X.ComboForceLayout=X.GForceGPULayout=X.FruchtermanGPULayout=X.FruchtermanLayout=X.MDSLayout=X.ConcentricLayout=X.RadialLayout=X.DagreCompoundLayout=X.DagreLayout=X.CircularLayout=X.ForceLayout=X.Force2Layout=X.GForceLayout=X.RandomLayout=X.GridLayout=X.Layouts=X.Layout=void 0;var B=W(74294);Object.defineProperty(X,"GridLayout",{enumerable:!0,get:function(){return B.GridLayout}});var D=W(26729);Object.defineProperty(X,"RandomLayout",{enumerable:!0,get:function(){return D.RandomLayout}});var P=W(46260);Object.defineProperty(X,"GForceLayout",{enumerable:!0,get:function(){return P.GForceLayout}});var N=W(38129);Object.defineProperty(X,"Force2Layout",{enumerable:!0,get:function(){return N.Force2Layout}});var y=W(64180);Object.defineProperty(X,"ForceLayout",{enumerable:!0,get:function(){return y.ForceLayout}});var E=W(93959);Object.defineProperty(X,"CircularLayout",{enumerable:!0,get:function(){return E.CircularLayout}});var g=W(2);Object.defineProperty(X,"DagreLayout",{enumerable:!0,get:function(){return g.DagreLayout}});var p=W(77620);Object.defineProperty(X,"DagreCompoundLayout",{enumerable:!0,get:function(){return p.DagreCompoundLayout}});var h=W(90106);Object.defineProperty(X,"RadialLayout",{enumerable:!0,get:function(){return h.RadialLayout}});var x=W(98162);Object.defineProperty(X,"ConcentricLayout",{enumerable:!0,get:function(){return x.ConcentricLayout}});var m=W(98204);Object.defineProperty(X,"MDSLayout",{enumerable:!0,get:function(){return m.MDSLayout}});var b=W(23826);Object.defineProperty(X,"FruchtermanLayout",{enumerable:!0,get:function(){return b.FruchtermanLayout}});var A=W(81822);Object.defineProperty(X,"FruchtermanGPULayout",{enumerable:!0,get:function(){return A.FruchtermanGPULayout}});var k=W(86043);Object.defineProperty(X,"GForceGPULayout",{enumerable:!0,get:function(){return k.GForceGPULayout}});var G=W(48133);Object.defineProperty(X,"ComboForceLayout",{enumerable:!0,get:function(){return G.ComboForceLayout}});var T=W(6412);Object.defineProperty(X,"ComboCombinedLayout",{enumerable:!0,get:function(){return T.ComboCombinedLayout}});var M=W(16919);Object.defineProperty(X,"ForceAtlas2Layout",{enumerable:!0,get:function(){return M.ForceAtlas2Layout}});var V=W(40311);Object.defineProperty(X,"ERLayout",{enumerable:!0,get:function(){return V.ERLayout}});var j=W(99745);Object.defineProperty(X,"Layout",{enumerable:!0,get:function(){return j.Layout}}),Object.defineProperty(X,"Layouts",{enumerable:!0,get:function(){return j.Layouts}}),Y(W(2230),X)},99745:function(hr,X,W){"use strict";Object.defineProperty(X,"__esModule",{value:!0}),X.Layouts=X.Layout=void 0;var U=W(39464),Y=W(74294),B=W(26729),D=W(38129),P=W(46260),N=W(64180),y=W(93959),E=W(2),g=W(90106),p=W(98162),h=W(98204),x=W(23826),m=W(81822),b=W(86043),A=W(48133),k=W(6412),G=W(16919),T=W(40311),M=W(77620),V=W(8273),j=function(){function $(q){var te=(0,U.getLayoutByName)(q.type);this.layoutInstance=new te(q)}return $.prototype.layout=function(q){return this.layoutInstance.layout(q)},$.prototype.updateCfg=function(q){this.layoutInstance.updateCfg(q)},$.prototype.init=function(q){this.correctLayers(q.nodes),this.layoutInstance.init(q)},$.prototype.correctLayers=function(q){if(!!(q==null?void 0:q.length)){var te=Infinity,ee=[];if(q.forEach(function(ce){(0,V.isString)(ce.layer)&&(ce.layer=parseInt(ce.layer,10)),!(ce.layer===void 0||isNaN(ce.layer))&&(ee.push(ce),ce.layerk[0]?k[0]:ie-k[0],Le=ce-k[1]>k[1]?k[1]:ce-k[1];ge===0&&(ge=ie/2),Le===0&&(Le=ce/2);var Oe=Le>ge?ge:Le,Re=Math.max.apply(Math,ee),de=[];ee.forEach(function(dt,Et){m.unitRadius||(m.unitRadius=Oe/Re),de[Et]=dt*m.unitRadius}),m.radii=de;var ve=m.eIdealDisMatrix();m.eIdealDistances=ve;var be=y(ve);m.weights=be;var Ae=new P.default({linkDistance:G,distances:ve}),Pe=Ae.layout();Pe.forEach(function(dt){(0,B.isNaN)(dt[0])&&(dt[0]=Math.random()*G),(0,B.isNaN)(dt[1])&&(dt[1]=Math.random()*G)}),m.positions=Pe,Pe.forEach(function(dt,Et){b[Et].x=dt[0]+k[0],b[Et].y=dt[1]+k[1]}),Pe.forEach(function(dt){dt[0]-=Pe[j][0],dt[1]-=Pe[j][1]}),m.run();var Ve=m.preventOverlap,Ue=m.nodeSize,Ke,_t=m.strictRadial;if(Ve){var Ct=m.nodeSpacing,He;(0,B.isNumber)(Ct)?He=function(){return Ct}:(0,B.isFunction)(Ct)?He=Ct:He=function(){return 0},Ue?(0,B.isArray)(Ue)?Ke=function(dt){var Et=Ue[0]>Ue[1]?Ue[0]:Ue[1];return Et+He(dt)}:Ke=function(dt){return Ue+He(dt)}:Ke=function(dt){if(dt.size){if((0,B.isArray)(dt.size)){var Et=dt.size[0]>dt.size[1]?dt.size[0]:dt.size[1];return Et+He(dt)}if((0,B.isObject)(dt.size)){var Et=dt.size.width>dt.size.height?dt.size.width:dt.size.height;return Et+He(dt)}return dt.size+He(dt)}return 10+He(dt)};var ht={nodes:b,nodeSizeFunc:Ke,adjMatrix:$,positions:Pe,radii:de,height:ce,width:ie,strictRadial:_t,focusID:j,iterations:m.maxPreventOverlapIteration||200,k:Pe.length/4.5},mt=new N.default(ht);Pe=mt.layout()}return Pe.forEach(function(dt,Et){b[Et].x=dt[0]+k[0],b[Et].y=dt[1]+k[1]}),m.onLayoutEnd&&m.onLayoutEnd(),{nodes:b,edges:A}},x.prototype.run=function(){for(var m=this,b=m.maxIteration,A=m.positions||[],k=m.weights||[],G=m.eIdealDistances||[],T=m.radii||[],M=0;M<=b;M++){var V=M/b;m.oneIteration(V,A,T,G,k)}},x.prototype.oneIteration=function(m,b,A,k,G){var T=this,M=1-m,V=T.focusIndex;b.forEach(function(j,$){var q=g(j,[0,0]),te=q===0?0:1/q;if($!==V){var ee=0,ie=0,ce=0;b.forEach(function(Le,Oe){if($!==Oe){var Re=g(j,Le),de=Re===0?0:1/Re,ve=k[Oe][$];ce+=G[$][Oe],ee+=G[$][Oe]*(Le[0]+ve*(j[0]-Le[0])*de),ie+=G[$][Oe]*(Le[1]+ve*(j[1]-Le[1])*de)}});var ge=A[$]===0?0:1/A[$];ce*=M,ce+=m*ge*ge,ee*=M,ee+=m*ge*j[0]*te,j[0]=ee/ce,ie*=M,ie+=m*ge*j[1]*te,j[1]=ie/ce}})},x.prototype.eIdealDisMatrix=function(){var m=this,b=m.nodes;if(!b)return[];var A=m.distances,k=m.linkDistance,G=m.radii||[],T=m.unitRadius||50,M=[];return A&&A.forEach(function(V,j){var $=[];V.forEach(function(q,te){if(j===te)$.push(0);else if(G[j]===G[te])if(m.sortBy==="data")$.push(q*(Math.abs(j-te)*m.sortStrength)/(G[j]/T));else if(m.sortBy){var ee=b[j][m.sortBy]||0,ie=b[te][m.sortBy]||0;(0,B.isString)(ee)&&(ee=ee.charCodeAt(0)),(0,B.isString)(ie)&&(ie=ie.charCodeAt(0)),$.push(q*(Math.abs(ee-ie)*m.sortStrength)/(G[j]/T))}else $.push(q*k/(G[j]/T));else{var ce=(k+T)/2;$.push(q*ce)}}),M.push($)}),M},x.prototype.handleInfinity=function(m,b,A){for(var k=m.length,G=0;GA?m[b][k]:A);return A},x.prototype.getType=function(){return"radial"},x}(D.Base);X.RadialLayout=p},78614:function(hr,X){"use strict";Object.defineProperty(X,"__esModule",{value:!0});var W=800,U=function(){function Y(B){this.disp=[],this.positions=B.positions,this.adjMatrix=B.adjMatrix,this.focusID=B.focusID,this.radii=B.radii,this.iterations=B.iterations||10,this.height=B.height||10,this.width=B.width||10,this.speed=B.speed||100,this.gravity=B.gravity||10,this.nodeSizeFunc=B.nodeSizeFunc,this.k=B.k||5,this.strictRadial=B.strictRadial,this.nodes=B.nodes}return Y.prototype.layout=function(){var B=this,D=B.positions,P=[],N=B.iterations,y=B.width/10;B.maxDisplace=y,B.disp=P;for(var E=0;Ex?1:-1;m=.01*k,b=.01*k}if(AMath.PI/2&&(M-=Math.PI/2,k*=-1,G*=-1);var V=Math.cos(M)*T;h.x=k*V,h.y=G*V});var p=B.radii;D.forEach(function(h,x){if(x!==E){var m=Math.sqrt(P[x].x*P[x].x+P[x].y*P[x].y);if(m>0&&x!==E){var b=Math.min(g*(N/W),m);if(h[0]+=P[x].x/m*b,h[1]+=P[x].y/m*b,y){var A=h[0]-D[E][0],k=h[1]-D[E][1],G=Math.sqrt(A*A+k*k);A=A/G*p[x],k=k/G*p[x],h[0]=D[E][0]+A,h[1]=D[E][1]+k}}}})},Y}();X.default=U},26729:function(hr,X,W){"use strict";var U=this&&this.__extends||function(){var D=function(P,N){return D=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,E){y.__proto__=E}||function(y,E){for(var g in E)Object.prototype.hasOwnProperty.call(E,g)&&(y[g]=E[g])},D(P,N)};return function(P,N){if(typeof N!="function"&&N!==null)throw new TypeError("Class extends value "+String(N)+" is not a constructor or null");D(P,N);function y(){this.constructor=P}P.prototype=N===null?Object.create(N):(y.prototype=N.prototype,new y)}}();Object.defineProperty(X,"__esModule",{value:!0}),X.RandomLayout=void 0;var Y=W(46253),B=function(D){U(P,D);function P(N){var y=D.call(this)||this;return y.center=[0,0],y.width=300,y.height=300,y.nodes=[],y.edges=[],y.onLayoutEnd=function(){},y.updateCfg(N),y}return P.prototype.getDefaultCfg=function(){return{center:[0,0],width:300,height:300}},P.prototype.execute=function(){var N=this,y=N.nodes,E=.9,g=N.center;return!N.width&&typeof window!="undefined"&&(N.width=window.innerWidth),!N.height&&typeof window!="undefined"&&(N.height=window.innerHeight),y&&y.forEach(function(p){p.x=(Math.random()-.5)*E*N.width+g[0],p.y=(Math.random()-.5)*E*N.height+g[1]}),N.onLayoutEnd&&N.onLayoutEnd(),{nodes:y,edges:this.edges}},P.prototype.getType=function(){return"random"},P}(Y.Base);X.RandomLayout=B},2230:function(hr,X){"use strict";Object.defineProperty(X,"__esModule",{value:!0})},39464:function(hr,X,W){"use strict";var U=this&&this.__extends||function(){var E=function(g,p){return E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,x){h.__proto__=x}||function(h,x){for(var m in x)Object.prototype.hasOwnProperty.call(x,m)&&(h[m]=x[m])},E(g,p)};return function(g,p){if(typeof p!="function"&&p!==null)throw new TypeError("Class extends value "+String(p)+" is not a constructor or null");E(g,p);function h(){this.constructor=g}g.prototype=p===null?Object.create(p):(h.prototype=p.prototype,new h)}}();Object.defineProperty(X,"__esModule",{value:!0}),X.getLayoutByName=X.unRegisterLayout=X.registerLayout=void 0;var Y=W(46253),B=W(8273),D=new Map,P=function(E,g){if(D.get(E)&&console.warn("The layout with the name ".concat(E," exists already, it will be overridden")),(0,B.isObject)(g)){var p=function(h){U(x,h);function x(m){var b=this,A;b=h.call(this)||this;var k=b,G={},T=Object.assign({},k.getDefaultCfg(),((A=g.getDefaultCfg)===null||A===void 0?void 0:A.call(g))||{});return Object.assign(G,T,g,m),Object.keys(G).forEach(function(M){var V=G[M];k[M]=V}),b}return x}(Y.Base);D.set(E,p)}else D.set(E,g);return D.get(E)};X.registerLayout=P;var N=function(E){D.has(E)&&D.delete(E)};X.unRegisterLayout=N;var y=function(E){return D.has(E)?D.get(E):null};X.getLayoutByName=y},92272:function(hr,X){"use strict";Object.defineProperty(X,"__esModule",{value:!0}),X.isArray=void 0,X.isArray=Array.isArray},72612:function(hr,X,W){"use strict";Object.defineProperty(X,"__esModule",{value:!0}),X.getFuncByUnknownType=X.getFunc=X.isFunction=void 0;var U=W(8273),Y=W(5049),B=function(N){return typeof N=="function"};X.isFunction=B;var D=function(N,y,E){var g;return E?g=E:(0,Y.isNumber)(N)?g=function(){return N}:g=function(){return y},g};X.getFunc=D;var P=function(N,y,E){return E===void 0&&(E=!0),!y&&y!==0?function(g){return g.size?(0,U.isArray)(g.size)?g.size[0]>g.size[1]?g.size[0]:g.size[1]:(0,U.isObject)(g.size)?g.size.width>g.size.height?g.size.width:g.size.height:g.size:N}:(0,X.isFunction)(y)?y:(0,Y.isNumber)(y)?function(){return y}:(0,U.isArray)(y)?function(){if(E){var g=Math.max.apply(Math,y);return isNaN(g)?N:g}return y}:(0,U.isObject)(y)?function(){if(E){var g=Math.max(y.width,y.height);return isNaN(g)?N:g}return[y.width,y.height]}:function(){return N}};X.getFuncByUnknownType=P},38342:function(hr,X,W){"use strict";Object.defineProperty(X,"__esModule",{value:!0}),X.arrayToTextureData=X.attributesToTextureData=X.buildTextureDataWithTwoEdgeAttr=X.buildTextureData=X.proccessToFunc=void 0;var U=W(8273),Y=W(64446),B=function(E,g){var p;return E?(0,U.isNumber)(E)?p=function(){return E}:p=E:p=function(){return g||1},p};X.proccessToFunc=B;var D=function(E,g){var p=[],h=[],x={},m=0;for(m=0;mM[j][q]+M[q][$]&&(M[j][$]=M[j][q]+M[q][$]);return M};X.floydWarshall=y;var E=function(T,M){var V=T.nodes,j=T.edges,$=[],q={};if(!V)throw new Error("invalid nodes data!");return V&&V.forEach(function(te,ee){q[te.id]=ee;var ie=[];$.push(ie)}),j==null||j.forEach(function(te){var ee=(0,X.getEdgeTerminal)(te,"source"),ie=(0,X.getEdgeTerminal)(te,"target"),ce=q[ee],ge=q[ie];ce===void 0||ge===void 0||($[ce][ge]=1,M||($[ge][ce]=1))}),$};X.getAdjMatrix=E;var g=function(T,M){var V=[];return T.forEach(function(j){var $=[];j.forEach(function(q){$.push(q*M)}),V.push($)}),V};X.scaleMatrix=g;var p=function(T,M){if(T&&T.children){for(var V=T.children.length-1;V>=0;V--)if(!p(T.children[V],M))return}return!!M(T)},h=function(T,M){typeof M=="function"&&p(T,M)};X.traverseTreeUp=h;var x=function(T){var M=Infinity,V=Infinity,j=-Infinity,$=-Infinity;return T.forEach(function(q){var te=q.size;(0,U.isArray)(te)?te.length===1&&(te=[te[0],te[0]]):(0,Y.isNumber)(te)?te=[te,te]:(te===void 0||isNaN(te))&&(te=[30,30]);var ee=[te[0]/2,te[1]/2],ie=q.x-ee[0],ce=q.x+ee[0],ge=q.y-ee[1],Le=q.y+ee[1];M>ie&&(M=ie),V>ge&&(V=ge),j1?1:Number(pe),Ge=ne.length-1,qe=Math.floor(Ge*Me),Lt=Ge*Me-qe,Pt=ne[qe],sr=qe===Ge?Pt:ne[qe+1];return B([E(Pt,sr,Lt,0),E(Pt,sr,Lt,1),E(Pt,sr,Lt,2)])}function p(ne){var pe=typeof ne=="string"?ne.split("-"):ne,Me=pe.map(function(Ge){return U(Ge.indexOf("#")===-1?y(Ge):Ge)});return function(Ge){return g(Me,Ge)}}var h=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,x=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,m=/[\d.]+:(#[^\s]+|[^)]+\))/gi;function b(ne){return/^[r,R,L,l]{1}[\s]*\(/.test(ne)}function A(ne){if(b(ne)){var pe,Me=void 0;if(ne[0]==="l"){var Ge=h.exec(ne),qe=+Ge[1]+90;Me=Ge[2],pe="linear-gradient("+qe+"deg, "}else if(ne[0]==="r"){pe="radial-gradient(";var Ge=x.exec(ne);Me=Ge[4]}var Lt=Me.match(m);return Lt.forEach(function(Pt,sr){var Ir=Pt.split(":");pe+=Ir[1]+" "+Number(Ir[0])*100+"%",sr!==Lt.length-1&&(pe+=", ")}),pe+=")",pe}return ne}var k=W(35600),G=W(31437);function T(ne,pe,Me){var Ge=[0,0,0,0,0,0,0,0,0];return k.fromTranslation(Ge,Me),k.multiply(ne,Ge,pe)}function M(ne,pe,Me){var Ge=[0,0,0,0,0,0,0,0,0];return k.fromRotation(Ge,Me),k.multiply(ne,Ge,pe)}function V(ne,pe,Me){var Ge=[0,0,0,0,0,0,0,0,0];return k.fromScaling(Ge,Me),k.multiply(ne,Ge,pe)}function j(ne,pe,Me){return k.multiply(ne,Me,pe)}function $(ne,pe){for(var Me=ne?[].concat(ne):[1,0,0,0,1,0,0,0,1],Ge=0,qe=pe.length;Ge=0;return Me?qe?Math.PI*2-Ge:Ge:qe?Ge:Math.PI*2-Ge}function ee(ne,pe,Me){return Me?(ne[0]=pe[1],ne[1]=-1*pe[0]):(ne[0]=-1*pe[1],ne[1]=pe[0]),ne}function ie(ne){return ne.map(function(pe){return Array.isArray(pe)?[].concat(pe):pe})}function ce(ne,pe){if(pe==="off")return ie(ne);var Me=typeof pe=="number"&&pe>=1?Math.pow(10,pe):1;return ne.map(function(Ge){var qe=Ge.slice(1).map(Number).map(function(Lt){return pe?Math.round(Lt*Me)/Me:Math.round(Lt)});return[Ge[0]].concat(qe)})}function ge(ne,pe){return pe===void 0&&(pe="off"),ce(ne,pe).map(function(Me){return Me[0]+Me.slice(1).join(" ")}).join("")}var Le=W(65353),Oe={x1:0,y1:0,x2:0,y2:0,x:0,y:0,qx:null,qy:null};function Re(ne,pe,Me){if(ne[Me].length>7){ne[Me].shift();for(var Ge=ne[Me],qe=Me;Ge.length;)pe[Me]="A",ne.splice(qe+=1,0,["C"].concat(Ge.splice(0,6)));ne.splice(Me,1)}}var de={a:7,c:6,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,z:0};function ve(ne){return Array.isArray(ne)&&ne.every(function(pe){var Me=pe[0].toLowerCase();return de[Me]===pe.length-1&&"achlmqstvz".includes(Me)})}function be(ne){return ve(ne)&&ne.every(function(pe){var Me=pe[0];return Me===Me.toUpperCase()})}function Ae(ne){return be(ne)&&ne.every(function(pe){var Me=pe[0];return"ACLMQZ".includes(Me)})}function Pe(ne){for(var pe=ne.pathValue[ne.segmentStart],Me=pe.toLowerCase(),Ge=ne.data;Ge.length>=de[Me]&&(Me==="m"&&Ge.length>2?(ne.segments.push([pe].concat(Ge.splice(0,2))),Me="l",pe=pe==="m"?"l":"L"):ne.segments.push([pe].concat(Ge.splice(0,de[Me]))),!!de[Me]););}function Ve(ne){var pe=ne.index,Me=ne.pathValue,Ge=Me.charCodeAt(pe);if(Ge===48){ne.param=0,ne.index+=1;return}if(Ge===49){ne.param=1,ne.index+=1;return}ne.err='[path-util]: invalid Arc flag "'+Me[pe]+'", expecting 0 or 1 at index '+pe}function Ue(ne){return ne>=48&&ne<=57||ne===43||ne===45||ne===46}function Ke(ne){return ne>=48&&ne<=57}function _t(ne){var pe=ne.max,Me=ne.pathValue,Ge=ne.index,qe=Ge,Lt=!1,Pt=!1,sr=!1,Ir=!1,Ar;if(qe>=pe){ne.err="[path-util]: Invalid path value at index "+qe+', "pathValue" is missing param';return}if(Ar=Me.charCodeAt(qe),(Ar===43||Ar===45)&&(qe+=1,Ar=Me.charCodeAt(qe)),!Ke(Ar)&&Ar!==46){ne.err="[path-util]: Invalid path value at index "+qe+', "'+Me[qe]+'" is not a number';return}if(Ar!==46){if(Lt=Ar===48,qe+=1,Ar=Me.charCodeAt(qe),Lt&&qe=5760&&pe.includes(ne)}function He(ne){for(var pe=ne.pathValue,Me=ne.max;ne.index0;Pt-=1){if(mt(qe)&&(Pt===3||Pt===4)?Ve(ne):_t(ne),ne.err.length)return;ne.data.push(ne.param),He(ne),ne.index=ne.max||!Ue(Me.charCodeAt(ne.index)))break}Pe(ne)}var Et=function(){function ne(pe){this.pathValue=pe,this.segments=[],this.max=pe.length,this.index=0,this.param=0,this.segmentStart=0,this.data=[],this.err=""}return ne}();function it(ne){if(ve(ne))return ie(ne);var pe=new Et(ne);for(He(pe);pe.index1&&(Ba=Math.sqrt(Ba),Qr*=Ba,Xn*=Ba);var fi=Qr*Qr,Di=Xn*Xn,Ni=(Lt===Pt?-1:1)*Math.sqrt(Math.abs((fi*Di-fi*Ya*Ya-Di*ui*ui)/(fi*Ya*Ya+Di*ui*ui)));ga=Ni*Qr*Ya/Xn+($r+ha)/2,ka=Ni*-Xn*ui/Qr+(sn+Yn)/2,Hn=Math.asin(((sn-ka)/Xn*Math.pow(10,9)>>0)/Math.pow(10,9)),Cn=Math.asin(((Yn-ka)/Xn*Math.pow(10,9)>>0)/Math.pow(10,9)),Hn=$rCn&&(Hn-=Math.PI*2),!Pt&&Cn>Hn&&(Cn-=Math.PI*2)}var Es=Cn-Hn;if(Math.abs(Es)>Rn){var Wf=Cn,bs=ha,vf=Yn;Cn=Hn+Rn*(Pt&&Cn>Hn?1:-1),ha=ga+Qr*Math.cos(Cn),Yn=ka+Xn*Math.sin(Cn),wn=nn(ha,Yn,Qr,Xn,qe,0,Pt,bs,vf,[Cn,Wf,ga,ka])}Es=Cn-Hn;var su=Math.cos(Hn),xs=Math.sin(Hn),Zu=Math.cos(Cn),lc=Math.sin(Cn),Ku=Math.tan(Es/4),$u=4/3*Qr*Ku,hf=4/3*Xn*Ku,Ls=[$r,sn],uu=[$r+$u*xs,sn-hf*su],Qu=[ha+$u*lc,Yn-hf*Zu],Iu=[ha,Yn];if(uu[0]=2*Ls[0]-uu[0],uu[1]=2*Ls[1]-uu[1],Ar)return uu.concat(Qu,Iu,wn);wn=uu.concat(Qu,Iu,wn);for(var gf=[],ws=0,fu=wn.length;ws=Lt)Pt={x:Me,y:Ge};else{var sr=bn([ne,pe],[Me,Ge],qe/Lt),Ir=sr[0],Ar=sr[1];Pt={x:Ir,y:Ar}}return{length:Lt,point:Pt,min:{x:Math.min(ne,Me),y:Math.min(pe,Ge)},max:{x:Math.max(ne,Me),y:Math.max(pe,Ge)}}}function kn(ne,pe,Me,Ge){var qe=.5,Lt=[ne,pe],Pt=[Me,Ge],sr=bn(Lt,Pt,qe),Ir=bn(Pt,sr,qe),Ar=bn(sr,Ir,qe),$r=bn(Ir,Ar,qe),sn=bn(Ar,$r,qe),Qr=zn(Lt[0],Lt[1],sr[0],sr[1],Ar[0]).point,Xn=zn(sn[0],sn[1],$r[0],$r[1],Ir[0]).point;return[Qr.x,Qr.y,Xn.x,Xn.y,Me,Ge]}function aa(ne,pe){var Me=ne[0],Ge=ne.slice(1).map(Number),qe=Ge[0],Lt=Ge[1],Pt,sr=pe.x1,Ir=pe.y1,Ar=pe.x,$r=pe.y;switch("TQ".includes(Me)||(pe.qx=null,pe.qy=null),Me){case"M":return pe.x=qe,pe.y=Lt,ne;case"A":return Pt=[sr,Ir].concat(Ge),["C"].concat(nn(Pt[0],Pt[1],Pt[2],Pt[3],Pt[4],Pt[5],Pt[6],Pt[7],Pt[8],Pt[9]));case"Q":return pe.qx=qe,pe.qy=Lt,Pt=[sr,Ir].concat(Ge),["C"].concat(In(Pt[0],Pt[1],Pt[2],Pt[3],Pt[4],Pt[5]));case"L":return["C"].concat(kn(sr,Ir,qe,Lt));case"Z":return sr===Ar&&Ir===$r?["C",sr,Ir,Ar,$r,Ar,$r]:["C"].concat(kn(sr,Ir,Ar,$r));default:}return ne}function ri(ne,pe){if(pe===void 0&&(pe=!1),mr(ne)){var Me=ie(ne);return pe?[Me,[]]:Me}for(var Ge=Nt(ne),qe=(0,Le.__assign)({},Oe),Lt=[],Pt="",sr=Ge.length,Ir,Ar,$r=[],sn=0;sn1&&(Yn*=Xn(ga),Rn*=Xn(ga));var ka=Math.pow(Yn,2)*Math.pow(Rn,2)-Math.pow(Yn,2)*Math.pow(Cn.y,2)-Math.pow(Rn,2)*Math.pow(Cn.x,2),ui=Math.pow(Yn,2)*Math.pow(Cn.y,2)+Math.pow(Rn,2)*Math.pow(Cn.x,2),Ya=ka/ui;Ya=Ya<0?0:Ya;var Ba=(Lt!==Pt?1:-1)*Xn(Ya),fi={x:Ba*(Yn*Cn.y/Rn),y:Ba*(-(Rn*Cn.x)/Yn)},Di={x:Qr(wn)*fi.x-sn(wn)*fi.y+(ne+sr)/2,y:sn(wn)*fi.x+Qr(wn)*fi.y+(pe+Ir)/2},Ni={x:(Cn.x-fi.x)/Yn,y:(Cn.y-fi.y)/Rn},Es=za({x:1,y:0},Ni),Wf={x:(-Cn.x-fi.x)/Yn,y:(-Cn.y-fi.y)/Rn},bs=za(Ni,Wf);!Pt&&bs>0?bs-=2*ha:Pt&&bs<0&&(bs+=2*ha),bs%=2*ha;var vf=Es+bs*Ar,su=Yn*Qr(vf),xs=Rn*sn(vf),Zu={x:Qr(wn)*su-sn(wn)*xs+Di.x,y:sn(wn)*su+Qr(wn)*xs+Di.y};return Zu}function Qa(ne,pe,Me,Ge,qe,Lt,Pt,sr,Ir,Ar,$r){var sn,Qr=$r.bbox,Xn=Qr===void 0?!0:Qr,ha=$r.length,Yn=ha===void 0?!0:ha,Rn=$r.sampleSize,qn=Rn===void 0?30:Rn,wn=typeof Ar=="number",Wn=ne,Hn=pe,Cn=0,ga=[Wn,Hn,Cn],ka=[Wn,Hn],ui=0,Ya={x:0,y:0},Ba=[{x:Wn,y:Hn}];wn&&Ar<=0&&(Ya={x:Wn,y:Hn});for(var fi=0;fi<=qn;fi+=1){if(ui=fi/qn,sn=Aa(ne,pe,Me,Ge,qe,Lt,Pt,sr,Ir,ui),Wn=sn.x,Hn=sn.y,Xn&&Ba.push({x:Wn,y:Hn}),Yn&&(Cn+=We(ka,[Wn,Hn])),ka=[Wn,Hn],wn&&Cn>=Ar&&Ar>ga[2]){var Di=(Cn-Ar)/(Cn-ga[2]);Ya={x:ka[0]*(1-Di)+ga[0]*Di,y:ka[1]*(1-Di)+ga[1]*Di}}ga=[Wn,Hn,Cn]}return wn&&Ar>=Cn&&(Ya={x:sr,y:Ir}),{length:Cn,point:Ya,min:{x:Math.min.apply(null,Ba.map(function(Ni){return Ni.x})),y:Math.min.apply(null,Ba.map(function(Ni){return Ni.y}))},max:{x:Math.max.apply(null,Ba.map(function(Ni){return Ni.x})),y:Math.max.apply(null,Ba.map(function(Ni){return Ni.y}))}}}function Oa(ne,pe,Me,Ge,qe,Lt,Pt,sr,Ir){var Ar=1-Ir;return{x:Math.pow(Ar,3)*ne+3*Math.pow(Ar,2)*Ir*Me+3*Ar*Math.pow(Ir,2)*qe+Math.pow(Ir,3)*Pt,y:Math.pow(Ar,3)*pe+3*Math.pow(Ar,2)*Ir*Ge+3*Ar*Math.pow(Ir,2)*Lt+Math.pow(Ir,3)*sr}}function La(ne,pe,Me,Ge,qe,Lt,Pt,sr,Ir,Ar){var $r,sn=Ar.bbox,Qr=sn===void 0?!0:sn,Xn=Ar.length,ha=Xn===void 0?!0:Xn,Yn=Ar.sampleSize,Rn=Yn===void 0?10:Yn,qn=typeof Ir=="number",wn=ne,Wn=pe,Hn=0,Cn=[wn,Wn,Hn],ga=[wn,Wn],ka=0,ui={x:0,y:0},Ya=[{x:wn,y:Wn}];qn&&Ir<=0&&(ui={x:wn,y:Wn});for(var Ba=0;Ba<=Rn;Ba+=1){if(ka=Ba/Rn,$r=Oa(ne,pe,Me,Ge,qe,Lt,Pt,sr,ka),wn=$r.x,Wn=$r.y,Qr&&Ya.push({x:wn,y:Wn}),ha&&(Hn+=We(ga,[wn,Wn])),ga=[wn,Wn],qn&&Hn>=Ir&&Ir>Cn[2]){var fi=(Hn-Ir)/(Hn-Cn[2]);ui={x:ga[0]*(1-fi)+Cn[0]*fi,y:ga[1]*(1-fi)+Cn[1]*fi}}Cn=[wn,Wn,Hn]}return qn&&Ir>=Hn&&(ui={x:Pt,y:sr}),{length:Hn,point:ui,min:{x:Math.min.apply(null,Ya.map(function(Di){return Di.x})),y:Math.min.apply(null,Ya.map(function(Di){return Di.y}))},max:{x:Math.max.apply(null,Ya.map(function(Di){return Di.x})),y:Math.max.apply(null,Ya.map(function(Di){return Di.y}))}}}function er(ne,pe,Me,Ge,qe,Lt,Pt){var sr=1-Pt;return{x:Math.pow(sr,2)*ne+2*sr*Pt*Me+Math.pow(Pt,2)*qe,y:Math.pow(sr,2)*pe+2*sr*Pt*Ge+Math.pow(Pt,2)*Lt}}function Cr(ne,pe,Me,Ge,qe,Lt,Pt,sr){var Ir,Ar=sr.bbox,$r=Ar===void 0?!0:Ar,sn=sr.length,Qr=sn===void 0?!0:sn,Xn=sr.sampleSize,ha=Xn===void 0?10:Xn,Yn=typeof Pt=="number",Rn=ne,qn=pe,wn=0,Wn=[Rn,qn,wn],Hn=[Rn,qn],Cn=0,ga={x:0,y:0},ka=[{x:Rn,y:qn}];Yn&&Pt<=0&&(ga={x:Rn,y:qn});for(var ui=0;ui<=ha;ui+=1){if(Cn=ui/ha,Ir=er(ne,pe,Me,Ge,qe,Lt,Cn),Rn=Ir.x,qn=Ir.y,$r&&ka.push({x:Rn,y:qn}),Qr&&(wn+=We(Hn,[Rn,qn])),Hn=[Rn,qn],Yn&&wn>=Pt&&Pt>Wn[2]){var Ya=(wn-Pt)/(wn-Wn[2]);ga={x:Hn[0]*(1-Ya)+Wn[0]*Ya,y:Hn[1]*(1-Ya)+Wn[1]*Ya}}Wn=[Rn,qn,wn]}return Yn&&Pt>=wn&&(ga={x:qe,y:Lt}),{length:wn,point:ga,min:{x:Math.min.apply(null,ka.map(function(Ba){return Ba.x})),y:Math.min.apply(null,ka.map(function(Ba){return Ba.y}))},max:{x:Math.max.apply(null,ka.map(function(Ba){return Ba.x})),y:Math.max.apply(null,ka.map(function(Ba){return Ba.y}))}}}function an(ne,pe,Me){for(var Ge,qe,Lt,Pt,sr,Ir,Ar=Nt(ne),$r=typeof pe=="number",sn,Qr=[],Xn,ha=0,Yn=0,Rn=0,qn=0,wn,Wn=[],Hn=[],Cn=0,ga={x:0,y:0},ka=ga,ui=ga,Ya=ga,Ba=0,fi=0,Di=Ar.length;fi=pe&&(Ya=ui),Hn.push(ka),Wn.push(ga),Ba+=Cn,Ir=Xn!=="Z"?wn.slice(-2):[Rn,qn],ha=Ir[0],Yn=Ir[1];return $r&&pe>=Ba&&(Ya={x:ha,y:Yn}),{length:Ba,point:Ya,min:{x:Math.min.apply(null,Wn.map(function(Ni){return Ni.x})),y:Math.min.apply(null,Wn.map(function(Ni){return Ni.y}))},max:{x:Math.max.apply(null,Hn.map(function(Ni){return Ni.x})),y:Math.max.apply(null,Hn.map(function(Ni){return Ni.y}))}}}function un(ne,pe){if(!ne)return{x:0,y:0,width:0,height:0,x2:0,y2:0,cx:0,cy:0,cz:0};var Me=an(ne,void 0,(0,Le.__assign)((0,Le.__assign)({},pe),{length:!1})),Ge=Me.min,qe=Ge.x,Lt=Ge.y,Pt=Me.max,sr=Pt.x,Ir=Pt.y,Ar=sr-qe,$r=Ir-Lt;return{width:Ar,height:$r,x:qe,y:Lt,x2:sr,y2:Ir,cx:qe+Ar/2,cy:Lt+$r/2,cz:Math.max(Ar,$r)+Math.min(Ar,$r)/2}}function Fn(ne,pe){return an(ne,void 0,(0,Le.__assign)((0,Le.__assign)({},pe),{bbox:!1,length:!0})).length}function Jn(ne,pe){if(!ne)return{length:0,x:0,y:0,width:0,height:0,x2:0,y2:0,cx:0,cy:0,cz:0};var Me=an(ne,void 0,(0,Le.__assign)((0,Le.__assign)({},pe),{bbox:!0,length:!0})),Ge=Me.length,qe=Me.min,Lt=qe.x,Pt=qe.y,sr=Me.max,Ir=sr.x,Ar=sr.y,$r=Ir-Lt,sn=Ar-Pt;return{length:Ge,width:$r,height:sn,x:Lt,y:Pt,x2:Ir,y2:Ar,cx:Lt+$r/2,cy:Pt+sn/2,cz:Math.max($r,sn)+Math.min($r,sn)/2}}function Vn(ne){var pe=ne.length,Me=pe-1;return ne.map(function(Ge,qe){return ne.map(function(Lt,Pt){var sr=qe+Pt,Ir;return Pt===0||ne[sr]&&ne[sr][0]==="M"?(Ir=ne[sr],["M"].concat(Ir.slice(-2))):(sr>=pe&&(sr-=Me),ne[sr])})})}function ya(ne,pe){var Me=ne.length-1,Ge=[],qe=0,Lt=0,Pt=Vn(ne);return Pt.forEach(function(sr,Ir){ne.slice(1).forEach(function(Ar,$r){Lt+=We(ne[(Ir+$r)%Me].slice(-2),pe[$r%Me].slice(-2))}),Ge[Ir]=Lt,Lt=0}),qe=Ge.indexOf(Math.min.apply(null,Ge)),Pt[qe]}function ea(ne,pe,Me,Ge,qe,Lt,Pt,sr){return 3*((sr-pe)*(Me+qe)-(Pt-ne)*(Ge+Lt)+Ge*(ne-qe)-Me*(pe-Lt)+sr*(qe+ne/3)-Pt*(Lt+pe/3))/20}function ti(ne){var pe=0,Me=0,Ge=0;return ri(ne).map(function(qe){var Lt;switch(qe[0]){case"M":return pe=qe[1],Me=qe[2],0;default:var Pt=qe.slice(1),sr=Pt[0],Ir=Pt[1],Ar=Pt[2],$r=Pt[3],sn=Pt[4],Qr=Pt[5];return Ge=ea(pe,Me,sr,Ir,Ar,$r,sn,Qr),Lt=qe.slice(-2),pe=Lt[0],Me=Lt[1],Ge}}).reduce(function(qe,Lt){return qe+Lt},0)}function vn(ne){return ti(ne)>=0}function Un(ne,pe,Me){return an(ne,pe,(0,Le.__assign)((0,Le.__assign)({},Me),{bbox:!1,length:!0})).point}function ta(ne,pe){var Me=it(ne);if(typeof Me=="string")throw TypeError(Me);var Ge=Me.slice(),qe=Fn(Ge),Lt=Ge.length-1,Pt=0,sr=0,Ir=Me[0],Ar=Ir.slice(-2),$r=Ar[0],sn=Ar[1],Qr={x:$r,y:sn};if(Lt<=0||!pe||!Number.isFinite(pe))return{segment:Ir,index:0,length:sr,point:Qr,lengthAtSegment:Pt};if(pe>=qe)return Ge=Me.slice(0,-1),Pt=Fn(Ge),sr=qe-Pt,{segment:Me[Lt],index:Lt,length:sr,lengthAtSegment:Pt};for(var Xn=[];Lt>0;)Ir=Ge[Lt],Ge=Ge.slice(0,-1),Pt=Fn(Ge),sr=qe-Pt,qe=Pt,Xn.push({segment:Ir,index:Lt,length:sr,lengthAtSegment:Pt}),Lt-=1;return Xn.find(function(ha){var Yn=ha.lengthAtSegment;return Yn<=pe})}function Tn(ne,pe){for(var Me=it(ne),Ge=Nt(Me),qe=Fn(Me),Lt=function(Cn){var ga=Cn.x-pe.x,ka=Cn.y-pe.y;return ga*ga+ka*ka},Pt=8,sr,Ir=0,Ar,$r=0,sn=Infinity,Qr=0;Qr<=qe;Qr+=Pt)sr=Un(Ge,Qr),Ir=Lt(sr),Ir.5;)Yn=$r-Pt,Xn=Un(Ge,Yn),qn=Lt(Xn),Rn=$r+Pt,ha=Un(Ge,Rn),wn=Lt(ha),Yn>=0&&qn=Qr[qn],Xn[qn]-=ha?1:0,ha?wn.ss:[wn.s]}).flat()});return Yn[0].length===Yn[1].length?Yn:ct(Yn[0],Yn[1],sn)}var se=function(ne){return ne!==null&&typeof ne!="function"&&isFinite(ne.length)},oe=se,R=function(ne,pe){return oe(ne)?ne.indexOf(pe)>-1:!1},_=R,C=function(ne,pe){if(!oe(ne))return ne;for(var Me=[],Ge=0;Ge-1;)xa.call(ne,Lt,1);return ne},di=Xa,Na=Array.prototype.splice,Ti=function(pe,Me){if(!oe(pe))return[];for(var Ge=pe?Me.length:0,qe=Ge-1;Ge--;){var Lt=void 0,Pt=Me[Ge];(Ge===qe||Pt!==Lt)&&(Lt=Pt,Na.call(pe,Pt,1))}return pe},Ii=Ti,ja=function(ne,pe,Me){if(!Zt(ne)&&!_n(ne))return ne;var Ge=Me;return Bt(ne,function(qe,Lt){Ge=pe(Ge,qe,Lt)}),Ge},Co=ja,Fo=function(ne,pe){var Me=[];if(!oe(ne))return Me;for(var Ge=-1,qe=[],Lt=ne.length;++GeLt[sr])return 1;if(qe[sr]Me?Me:ne},Is=oo,vo=function(ne,pe){var Me=pe.toString(),Ge=Me.indexOf(".");if(Ge===-1)return Math.round(ne);var qe=Me.substr(Ge+1).length;return qe>20&&(qe=20),parseFloat(ne.toFixed(qe))},as=vo,gs=function(ne){return rr(ne,"Number")},vi=gs,so=function(ne){return vi(ne)&&ne%1!=0},Ji=so,mo=function(ne){return vi(ne)&&ne%2==0},uo=mo,Da=Number.isInteger?Number.isInteger:function(ne){return vi(ne)&&ne%1==0},si=Da,Fi=function(ne){return vi(ne)&&ne<0},bi=Fi,Eo=1e-5;function Go(ne,pe,Me){return Me===void 0&&(Me=Eo),Math.abs(ne-pe)0},Oo=bo,qa=function(ne,pe){if(!!Zt(ne)){for(var Me,Ge=-Infinity,qe=0;qeGe&&(Me=Lt,Ge=Pt)}return Me}},Bs=function(ne,pe){if(!!Zt(ne)){for(var Me,Ge=Infinity,qe=0;qepe?(Ge&&(clearTimeout(Ge),Ge=null),sr=$r,Pt=ne.apply(qe,Lt),Ge||(qe=Lt=null)):!Ge&&Me.trailing!==!1&&(Ge=setTimeout(Ir,sn)),Pt};return Ar.cancel=function(){clearTimeout(Ge),sr=0,Ge=qe=Lt=null},Ar},Rf=function(ne){return oe(ne)?Array.prototype.slice.call(ne):[]},Mu={},es=function(ne){return ne=ne||"g",Mu[ne]?Mu[ne]+=1:Mu[ne]=1,ne+Mu[ne]},Bf=function(){},cc=function(ne){return ne};function Hs(ne){return Mt(ne)?0:oe(ne)?ne.length:Object.keys(ne).length}var Ff=function(){function ne(){this.map={}}return ne.prototype.has=function(pe){return this.map[pe]!==void 0},ne.prototype.get=function(pe,Me){var Ge=this.map[pe];return Ge===void 0?Me:Ge},ne.prototype.set=function(pe,Me){this.map[pe]=Me},ne.prototype.clear=function(){this.map={}},ne.prototype.delete=function(pe){delete this.map[pe]},ne.prototype.size=function(){return Object.keys(this.map).length},ne}(),en=Ff,iu=1e-6;function _a(ne){return Math.abs(ne)0!=_a(sr[1]-Me)>0&&_a(pe-(Me-Pt[1])*(Pt[0]-sr[0])/(Pt[1]-sr[1])-Pt[0])<0&&(Ge=!Ge)}return Ge}var Zs=function(ne,pe,Me){return ne>=pe&&ne<=Me};function zf(ne,pe,Me,Ge){var qe=.001,Lt={x:Me.x-ne.x,y:Me.y-ne.y},Pt={x:pe.x-ne.x,y:pe.y-ne.y},sr={x:Ge.x-Me.x,y:Ge.y-Me.y},Ir=Pt.x*sr.y-Pt.y*sr.x,Ar=Ir*Ir,$r=Pt.x*Pt.x+Pt.y*Pt.y,sn=sr.x*sr.x+sr.y*sr.y,Qr=null;if(Ar>qe*$r*sn){var Xn=(Lt.x*sr.y-Lt.y*sr.x)/Ir,ha=(Lt.x*Pt.y-Lt.y*Pt.x)/Ir;Zs(Xn,0,1)&&Zs(ha,0,1)&&(Qr={x:ne.x+Xn*Pt.x,y:ne.y+Xn*Pt.y})}return Qr}function Tu(ne){for(var pe=[],Me=ne.length,Ge=0;Ge1){var Pt=ne[0],sr=ne[Me-1];pe.push({from:{x:sr[0],y:sr[1]},to:{x:Pt[0],y:Pt[1]}})}return pe}function df(ne,pe){var Me=!1;return ne.forEach(function(Ge){if(zf(Ge.from,Ge.to,pe.from,pe.to))return Me=!0,!1}),Me}function Uf(ne){var pe=ne.map(function(Ge){return Ge[0]}),Me=ne.map(function(Ge){return Ge[1]});return{minX:Math.min.apply(null,pe),maxX:Math.max.apply(null,pe),minY:Math.min.apply(null,Me),maxY:Math.max.apply(null,Me)}}function ou(ne,pe){return!(pe.minX>ne.maxX||pe.maxXne.maxY||pe.maxY0?Je.set(ke,et):Je.delete(ke))}function E(Je,ke,et,bt){var vt=String(ke),It=String(et);if(!Je&&vt>It){var tr=vt;vt=It,It=tr}return vt+P.EDGE_KEY_DELIM+It+P.EDGE_KEY_DELIM+(bt===void 0?P.DEFAULT_EDGE_NAME:bt)}function g(Je,ke,et,bt){var vt=String(ke),It=String(et),tr={v:ke,w:et};if(!Je&&vt>It){var Tr=tr.v;tr.v=tr.w,tr.w=Tr}return bt!==void 0&&(tr.name=bt),tr}function p(Je,ke){return E(Je,ke.v,ke.w,ke.name)}function h(Je){return typeof Je=="function"}var x=function(ke){return ke.nodes().map(function(et){var bt=ke.node(et),vt=ke.parent(et),It={id:et,value:bt,parent:vt};return It.value===void 0&&delete It.value,It.parent===void 0&&delete It.parent,It})},m=function(ke){return ke.edges().map(function(et){var bt=ke.edge(et),vt={v:et.v,w:et.w,value:bt,name:et.name};return vt.name===void 0&&delete vt.name,vt.value===void 0&&delete vt.value,vt})},b=function(ke){var et={options:{directed:ke.isDirected(),multigraph:ke.isMultigraph(),compound:ke.isCompound()},nodes:x(ke),edges:m(ke),value:ke.graph()};return et.value===void 0&&delete et.value,et},A=function(ke){var et=new q(ke.options);return ke.value!==void 0&&et.setGraph(ke.value),ke.nodes.forEach(function(bt){et.setNode(bt.id,bt.value),bt.parent&&et.setParent(bt.id,bt.parent)}),ke.edges.forEach(function(bt){et.setEdge(bt.v,bt.w,bt.value,bt.name)}),et};function k(Je,ke){var et=Object.keys(Je);if(Object.getOwnPropertySymbols){var bt=Object.getOwnPropertySymbols(Je);ke&&(bt=bt.filter(function(vt){return Object.getOwnPropertyDescriptor(Je,vt).enumerable})),et.push.apply(et,bt)}return et}function G(Je){for(var ke=1;ke0&&arguments[0]!==void 0?arguments[0]:{};M(this,Je),this.directed=!0,this.multigraph=!1,this.compound=!1,this.GRAPH_NODE=P.GRAPH_NODE,this.label=void 0,this.nodeCountNum=0,this.edgeCountNum=0,this.defaultNodeLabelFn=function(){},this.defaultEdgeLabelFn=function(){},this.parentMap=void 0,this.childrenMap=void 0,this.nodesLabelMap=new Map,this.inEdgesMap=new Map,this.outEdgesMap=new Map,this.predecessorsMap=new Map,this.successorsMap=new Map,this.edgesMap=new Map,this.edgesLabelsMap=new Map,this.isDirected=function(){return ke.directed},this.isMultigraph=function(){return ke.multigraph},this.isCompound=function(){return ke.compound},this.setGraph=function(vt){return ke.label=vt,ke},this.graph=function(){return ke.label},this.setDefaultNodeLabel=function(vt){return h(vt)?ke.defaultNodeLabelFn=vt:ke.defaultNodeLabelFn=function(){return vt},ke},this.nodeCount=function(){return ke.nodeCountNum},this.node=function(vt){return ke.nodesLabelMap.get(vt)},this.nodes=function(){return Array.from(ke.nodesLabelMap.keys())},this.sources=function(){return ke.nodes().filter(function(vt){var It;return!((It=ke.inEdgesMap.get(vt))===null||It===void 0?void 0:It.size)})},this.sinks=function(){return ke.nodes().filter(function(vt){var It;return!((It=ke.outEdgesMap.get(vt))===null||It===void 0?void 0:It.size)})},this.setNodes=function(vt,It){return vt.map(function(tr){return ke.setNode(tr,It)}),ke},this.hasNode=function(vt){return ke.nodesLabelMap.has(vt)},this.checkCompound=function(){if(!ke.isCompound())throw new Error("Cannot construct parent-children relations in a non-compound graph")},this.parent=function(vt){if(ke.isCompound()){var It,tr=(It=ke.parentMap)===null||It===void 0?void 0:It.get(vt);if(tr!==ke.GRAPH_NODE)return tr}},this.removeFromParentsChildList=function(vt){var It=ke.parentMap.get(vt);ke.childrenMap.get(It).delete(vt)},this.setParent=function(vt,It){var tr,Tr;ke.checkCompound();for(var Vr=It===void 0?ke.GRAPH_NODE:It,on=ke.parent(Vr);on;){if(vt===on)throw new Error("Setting "+It+" as parent of "+vt+" would create a cycle");on=ke.parent(on)}It&&ke.setNode(It),ke.setNode(vt),ke.removeFromParentsChildList(vt),(tr=ke.parentMap)===null||tr===void 0||tr.set(vt,Vr);var xn=ke.childrenMap.get(Vr);return xn.set(vt,!0),(Tr=ke.childrenMap)===null||Tr===void 0||Tr.set(Vr,xn),ke},this.children=function(vt){var It=vt===void 0?ke.GRAPH_NODE:vt;if(ke.isCompound()){var tr,Tr=(tr=ke.childrenMap)===null||tr===void 0?void 0:tr.get(It);return Tr?Array.from(Tr.keys()):void 0}if(It===ke.GRAPH_NODE)return ke.nodes();if(vt&&ke.hasNode(vt))return[]},this.predecessors=function(vt){var It=ke.predecessorsMap.get(vt);return It?Array.from(It.keys()):void 0},this.successors=function(vt){var It=ke.successorsMap.get(vt);return It?Array.from(It.keys()):void 0},this.neighbors=function(vt){var It;if(!!ke.hasNode(vt))return Array.from(new Set((It=ke.predecessors(vt))===null||It===void 0?void 0:It.concat(ke.successors(vt))))},this.isLeaf=function(vt){var It;if(ke.isDirected()){var tr;return!((tr=ke.successors(vt))===null||tr===void 0?void 0:tr.length)}return!((It=ke.neighbors(vt))===null||It===void 0?void 0:It.length)},this.filterNodes=function(vt){var It=ke.directed,tr=ke.multigraph,Tr=ke.compound,Vr=new Je({directed:It,multigraph:tr,compound:Tr});if(Vr.setGraph(ke.graph()),ke.nodes().forEach(function(xn){vt(xn)&&Vr.setNode(xn,ke.node(xn))}),ke.edges().forEach(function(xn){Vr.hasNode(xn.v)&&Vr.hasNode(xn.w)&&Vr.setEdgeObj(xn,ke.edge(xn))}),Tr){var on=function(Zn){for(var ia=ke.parent(Zn);ia!==void 0&&!Vr.hasNode(ia);)ia=ke.parent(ia);return ia};Vr.nodes().forEach(function(xn){Vr.setParent(xn,on(xn))})}return Vr},this.setDefaultEdgeLabel=function(vt){return h(vt)?ke.defaultEdgeLabelFn=vt:ke.defaultEdgeLabelFn=function(){return vt},ke},this.edgeCount=function(){return ke.edgeCountNum},this.setEdgeObj=function(vt,It){return ke.setEdge(vt.v,vt.w,It,vt.name)},this.setPath=function(vt,It){return vt.reduce(function(tr,Tr){return ke.setEdge(tr,Tr,It),Tr}),ke},this.edgeFromArgs=function(vt,It,tr){return ke.edge({v:vt,w:It,name:tr})},this.edge=function(vt){return ke.edgesLabelsMap.get(p(ke.isDirected(),vt))},this.hasEdge=function(vt,It,tr){return ke.edgesLabelsMap.has(p(ke.isDirected(),{v:vt,w:It,name:tr}))},this.removeEdgeObj=function(vt){var It=vt.v,tr=vt.w,Tr=vt.name;return ke.removeEdge(It,tr,Tr)},this.edges=function(){return Array.from(ke.edgesMap.values())},this.inEdges=function(vt,It){var tr=ke.inEdgesMap.get(vt);if(tr)return Array.from(tr.values()).filter(function(Tr){return!It||Tr.v===It})},this.outEdges=function(vt,It){var tr=ke.outEdgesMap.get(vt);if(tr)return Array.from(tr.values()).filter(function(Tr){return!It||Tr.w===It})},this.nodeEdges=function(vt,It){var tr;if(!!ke.hasNode(vt))return(tr=ke.inEdges(vt,It))===null||tr===void 0?void 0:tr.concat(ke.outEdges(vt,It))},this.toJSON=function(){return b(ke)},this.nodeInDegree=function(vt){var It=ke.inEdgesMap.get(vt);return It?It.size:0},this.nodeOutDegree=function(vt){var It=ke.outEdgesMap.get(vt);return It?It.size:0},this.nodeDegree=function(vt){return ke.nodeInDegree(vt)+ke.nodeOutDegree(vt)},this.source=function(vt){return vt.v},this.target=function(vt){return vt.w};var bt=G(G({},$),et);this.compound=bt.compound,this.directed=bt.directed,this.multigraph=bt.multigraph,this.compound&&(this.parentMap=new Map,this.childrenMap=new Map)}return j(Je,[{key:"setNode",value:function(et,bt){var vt=this.nodesLabelMap,It=this.defaultNodeLabelFn,tr=this.isCompound,Tr=this.parentMap,Vr=this.childrenMap,on=this.inEdgesMap,xn=this.outEdgesMap,Zn=this.predecessorsMap,ia=this.successorsMap;if(vt.has(et))return bt!==void 0&&vt.set(et,bt),this;if(vt.set(et,bt||It(et)),tr()){var xa;Tr==null||Tr.set(et,this.GRAPH_NODE),Vr==null||Vr.set(et,new Map),(Vr==null?void 0:Vr.has(this.GRAPH_NODE))||Vr==null||Vr.set(this.GRAPH_NODE,new Map),Vr==null||(xa=Vr.get(this.GRAPH_NODE))===null||xa===void 0||xa.set(et,!0)}return[on,xn,Zn,ia].forEach(function(li){return li.set(et,new Map)}),this.nodeCountNum+=1,this}},{key:"removeNode",value:function(et){var bt=this;if(this.hasNode(et)){var vt=function(di){bt.removeEdge(di.v,di.w,di.name)},It=this.inEdgesMap,tr=this.outEdgesMap,Tr=this.predecessorsMap,Vr=this.successorsMap,on=this.nodesLabelMap;if(this.isCompound()){var xn,Zn,ia;this.removeFromParentsChildList(et),(xn=this.parentMap)===null||xn===void 0||xn.delete(et),(Zn=this.children(et))===null||Zn===void 0||Zn.forEach(function(Xa){return bt.setParent(Xa)}),(ia=this.childrenMap)===null||ia===void 0||ia.delete(et)}var xa=It.get(et),li=tr.get(et);Array.from(xa.values()).forEach(function(Xa){return vt(Xa)}),Array.from(li.values()).forEach(function(Xa){return vt(Xa)}),on.delete(et),It.delete(et),tr.delete(et),Tr.delete(et),Vr.delete(et),this.nodeCountNum-=1}return this}},{key:"setEdge",value:function(et,bt,vt,It){var tr,Tr,Vr=g(this.isDirected(),et,bt,It),on=p(this.isDirected(),Vr),xn=Vr.v,Zn=Vr.w;if(this.edgesLabelsMap.has(on))return this.edgesLabelsMap.set(on,vt),this;if(It!==void 0&&!this.isMultigraph())throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(xn),this.setNode(Zn),this.edgesLabelsMap.set(on,vt||this.defaultEdgeLabelFn(xn,Zn,It)),Object.freeze(Vr),this.edgesMap.set(on,Vr);var ia=this.predecessorsMap.get(Zn),xa=this.successorsMap.get(xn);return N(ia,xn),N(xa,Zn),(tr=this.inEdgesMap.get(Zn))===null||tr===void 0||tr.set(on,Vr),(Tr=this.outEdgesMap.get(xn))===null||Tr===void 0||Tr.set(on,Vr),this.edgeCountNum+=1,this}},{key:"removeEdge",value:function(et,bt,vt){var It=E(this.isDirected(),et,bt,vt),tr=this.edgesMap.get(It);if(tr){var Tr=g(this.isDirected(),et,bt,vt),Vr=Tr.v,on=Tr.w;this.edgesLabelsMap.delete(It),this.edgesMap.delete(It);var xn=this.predecessorsMap.get(on),Zn=this.successorsMap.get(Vr);y(xn,Vr),y(Zn,on),this.inEdgesMap.get(on).delete(It),this.outEdgesMap.get(Vr).delete(It),this.edgeCountNum-=1}return this}}]),Je}();q.fromJSON=A;function te(Je){return te=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(ke){return typeof ke}:function(ke){return ke&&typeof Symbol=="function"&&ke.constructor===Symbol&&ke!==Symbol.prototype?"symbol":typeof ke},te(Je)}function ee(Je,ke){if(!(Je instanceof ke))throw new TypeError("Cannot call a class as a function")}function ie(Je,ke){for(var et=0;et-1&&this.eventPool[vt].splice(tr,1)}}},{key:"emitEvent",value:function(vt){for(var It=arguments.length,tr=new Array(It>1?It-1:0),Tr=1;Tr>1,((Tr=bt[It])===null||Tr===void 0?void 0:Tr.priority)ke.arr[vt].priority)throw new Error("New priority is greater than current priority.Key: ".concat(et," Old: + ").concat(ke.arr[vt].priority," New: ").concat(bt));ke.arr[vt].priority=bt,ke.innerDecrease(vt)}}),He=function(ke,et){var bt=new q,vt=new Map,It=new Ct,tr;function Tr(xn){var Zn=xn.v===tr?xn.w:xn.v,ia=It.priority(Zn);if(ia!==void 0){var xa=et(xn);xa0;){var on;if(tr=It.removeMin(),vt.has(tr))bt.setEdge(tr,vt.get(tr));else{if(Vr)throw new Error("Input graph is not connected: "+ke.graph());Vr=!0}(on=ke.nodeEdges(tr))===null||on===void 0||on.forEach(Tr)}return bt},ht=He,mt=function(ke){var et=new Set,bt=[],vt=ke.nodes();return vt.forEach(function(It){for(var tr=[],Tr=[It];Tr.length>0;){var Vr=Tr.pop();if(!et.has(Vr)){var on,xn;et.add(Vr),tr.push(Vr),(on=ke.successors(Vr))===null||on===void 0||on.forEach(function(Zn){return Tr.push(Zn)}),(xn=ke.predecessors(Vr))===null||xn===void 0||xn.forEach(function(Zn){return Tr.push(Zn)})}}tr.length&&bt.push(tr)}),bt},dt=mt,Et=function Je(ke,et,bt,vt,It,tr){vt.includes(et)||(vt.push(et),bt||tr.push(et),It(et).forEach(function(Tr){return Je(ke,Tr,bt,vt,It,tr)}),bt&&tr.push(et))},it=function(ke,et,bt){var vt=Array.isArray(et)?et:[et],It=function(on){return ke.isDirected()?ke.successors(on):ke.neighbors(on)},tr=[],Tr=[];return vt.forEach(function(Vr){if(ke.hasNode(Vr))Et(ke,Vr,bt==="post",Tr,It,tr);else throw new Error("Graph does not have node: "+Vr)}),tr},St=it;function $t(Je,ke){return In(Je)||nn(Je,ke)||mr(Je,ke)||Nt()}function Nt(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function mr(Je,ke){if(!!Je){if(typeof Je=="string")return br(Je,ke);var et=Object.prototype.toString.call(Je).slice(8,-1);if(et==="Object"&&Je.constructor&&(et=Je.constructor.name),et==="Map"||et==="Set")return Array.from(Je);if(et==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(et))return br(Je,ke)}}function br(Je,ke){(ke==null||ke>Je.length)&&(ke=Je.length);for(var et=0,bt=new Array(ke);et0&&(Tr=tr.removeMin(),Vr=It.get(Tr),!(Vr&&Vr.distance===Number.POSITIVE_INFINITY));)vt(Tr).forEach(on);var xn={};return Array.from(It.entries()).forEach(function(Zn){var ia=$t(Zn,2),xa=ia[0],li=ia[1];return xn[String(xa)]=li,xn}),xn},kn=We,aa=function(ke,et,bt){var vt={};return ke.nodes().forEach(function(It){return vt[String(It)]=kn(ke,It,et,bt),vt}),vt},ri=aa,Ia=function(ke){var et=0,bt=[],vt=new Map,It=[];function tr(Tr){var Vr,on={onStack:!0,lowlink:et,index:et};if(vt.set(Tr,on),et+=1,bt.push(Tr),(Vr=ke.successors(Tr))===null||Vr===void 0||Vr.forEach(function(xa){var li;if(vt.has(xa)){if((li=vt.get(xa))===null||li===void 0?void 0:li.onStack){var di=vt.get(xa);on.lowlink=Math.min(on.lowlink,di.index)}}else{tr(xa);var Xa=vt.get(xa);on.lowlink=Math.min(on.lowlink,Xa.lowlink)}}),on.lowlink===on.index){var xn=[],Zn;do{Zn=bt.pop();var ia=vt.get(Zn);ia.onStack=!1,xn.push(Zn)}while(Tr!==Zn);It.push(xn)}}return ke.nodes().forEach(function(Tr){vt.has(Tr)||tr(Tr)}),It},za=Ia,Aa=function(ke){return za(ke).filter(function(et){return et.length>1||et.length===1&&ke.hasEdge(et[0],et[0])})},Qa=Aa;function Oa(Je){return Oa=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(ke){return typeof ke}:function(ke){return ke&&typeof Symbol=="function"&&ke.constructor===Symbol&&ke!==Symbol.prototype?"symbol":typeof ke},Oa(Je)}function La(Je,ke){for(var et=0;etJe.length)&&(ke=Je.length);for(var et=0,bt=new Array(ke);et-1:!1};W.a=B},function(X,W,U){"use strict";var Y=function(B){return typeof B=="object"&&B!==null};W.a=Y},function(X,W,U){"use strict";var Y=U(8),B=U(2),D=Object.values?function(P){return Object.values(P)}:function(P){var N=[];return Object(Y.a)(P,function(y,E){Object(B.a)(P)&&E==="prototype"||N.push(y)}),N};W.a=D},function(X,W,U){"use strict";W.a=B;function Y(D,P){for(var N in P)P.hasOwnProperty(N)&&N!=="constructor"&&P[N]!==void 0&&(D[N]=P[N])}function B(D,P,N,y){return P&&Y(D,P),N&&Y(D,N),y&&Y(D,y),D}},function(X,W,U){var Y=U(35),B=["LR","RL","TB","BT","H","V"],D=["LR","RL","H"],P=function(E){return D.indexOf(E)>-1},N=B[0];X.exports=function(y,E,g){var p=E.direction||N;if(E.isHorizontal=P(p),p&&B.indexOf(p)===-1)throw new TypeError("Invalid direction: "+p);if(p===B[0])g(y,E);else if(p===B[1])g(y,E),y.right2left();else if(p===B[2])g(y,E);else if(p===B[3])g(y,E),y.bottom2top();else if(p===B[4]||p===B[5]){var h=Y(y,E),x=h.left,m=h.right;g(x,E),g(m,E),E.isHorizontal?x.right2left():x.bottom2top(),m.translate(x.x-m.x,x.y-m.y),y.x=x.x,y.y=m.y;var b=y.getBoundingBox();E.isHorizontal?b.top<0&&y.translate(0,-b.top):b.left<0&&y.translate(-b.left,0)}var A=E.fixedRoot;return A===void 0&&(A=!0),A&&y.translate(-(y.x+y.width/2+y.hgap),-(y.y+y.height/2+y.vgap)),y}},function(X,W,U){var Y=U(6),B=18,D=B*2,P=B,N={getId:function(p){return p.id||p.name},getPreH:function(p){return p.preH||0},getPreV:function(p){return p.preV||0},getHGap:function(p){return p.hgap||P},getVGap:function(p){return p.vgap||P},getChildren:function(p){return p.children},getHeight:function(p){return p.height||D},getWidth:function(p){var h=p.label||" ";return p.width||h.split("").length*B}};function y(g,p){var h=this;if(h.vgap=h.hgap=0,g instanceof y)return g;h.data=g;var x=p.getHGap(g),m=p.getVGap(g);return h.preH=p.getPreH(g),h.preV=p.getPreV(g),h.width=p.getWidth(g),h.height=p.getHeight(g),h.width+=h.preH,h.height+=h.preV,h.id=p.getId(g),h.x=h.y=0,h.depth=0,h.children||(h.children=[]),h.addGap(x,m),h}Y.assign(y.prototype,{isRoot:function(){return this.depth===0},isLeaf:function(){return this.children.length===0},addGap:function(p,h){var x=this;x.hgap+=p,x.vgap+=h,x.width+=2*p,x.height+=2*h},eachNode:function(p){for(var h=this,x=[h],m;m=x.shift();)p(m),x=m.children.concat(x)},DFTraverse:function(p){this.eachNode(p)},BFTraverse:function(p){for(var h=this,x=[h],m;m=x.shift();)p(m),x=x.concat(m.children)},getBoundingBox:function(){var p={left:Number.MAX_VALUE,top:Number.MAX_VALUE,width:0,height:0};return this.eachNode(function(h){p.left=Math.min(p.left,h.x),p.top=Math.min(p.top,h.y),p.width=Math.max(p.width,h.x+h.width),p.height=Math.max(p.height,h.y+h.height)}),p},translate:function(p,h){p===void 0&&(p=0),h===void 0&&(h=0),this.eachNode(function(x){x.x+=p,x.y+=h,x.x+=x.preH,x.y+=x.preV})},right2left:function(){var p=this,h=p.getBoundingBox();p.eachNode(function(x){x.x=x.x-(x.x-h.left)*2-x.width}),p.translate(h.width,0)},bottom2top:function(){var p=this,h=p.getBoundingBox();p.eachNode(function(x){x.y=x.y-(x.y-h.top)*2-x.height}),p.translate(0,h.height)}});function E(g,p,h){p===void 0&&(p={}),p=Y.assign({},N,p);var x=new y(g,p),m=[x],b;if(!h&&!g.collapsed){for(;b=m.shift();)if(!b.data.collapsed){var A=p.getChildren(b.data),k=A?A.length:0;if(b.children=new Array(k),A&&k)for(var G=0;G-1;)B.call(N,h,1);return N};W.a=P},function(X,W,U){"use strict";var Y=U(1),B=U(24),D=function(P,N){var y=[];if(!Object(Y.a)(P))return y;for(var E=-1,g=[],p=P.length;++Eh[m])return 1;if(p[m]P?P:B};W.a=Y},function(X,W,U){"use strict";var Y=function(B,D){var P=D.toString(),N=P.indexOf(".");if(N===-1)return Math.round(B);var y=P.substr(N+1).length;return y>20&&(y=20),parseFloat(B.toFixed(y))};W.a=Y},function(X,W,U){"use strict";var Y=U(5),B=function(D){return Object(Y.a)(D)&&D%1!=0};W.a=B},function(X,W,U){"use strict";var Y=U(5),B=function(D){return Object(Y.a)(D)&&D%2==0};W.a=B},function(X,W,U){"use strict";var Y=U(5),B=Number.isInteger?Number.isInteger:function(D){return Object(Y.a)(D)&&D%1==0};W.a=B},function(X,W,U){"use strict";var Y=U(5),B=function(D){return Object(Y.a)(D)&&D<0};W.a=B},function(X,W,U){"use strict";W.a=B;var Y=1e-5;function B(D,P,N){return N===void 0&&(N=Y),Math.abs(D-P)0};W.a=B},function(X,W,U){"use strict";var Y=U(0),B=U(2);W.a=function(D,P){if(!!Object(Y.a)(D)){for(var N,y=-Infinity,E=0;Ey&&(N=g,y=p)}return N}}},function(X,W,U){"use strict";var Y=U(0),B=U(2);W.a=function(D,P){if(!!Object(Y.a)(D)){for(var N,y=Infinity,E=0;EB?(P&&(clearTimeout(P),P=null),g=x,E=Y.apply(N,y),P||(N=y=null)):!P&&D.trailing!==!1&&(P=setTimeout(p,m)),E};return h.cancel=function(){clearTimeout(P),g=0,P=N=y=null},h}},function(X,W,U){"use strict";var Y=U(1);W.a=function(B){return Object(Y.a)(B)?Array.prototype.slice.call(B):[]}},function(X,W,U){"use strict";var Y={};W.a=function(B){return B=B||"g",Y[B]?Y[B]+=1:Y[B]=1,B+Y[B]}},function(X,W,U){"use strict";W.a=function(){}},function(X,W,U){"use strict";W.a=function(Y){return Y}},function(X,W,U){"use strict";W.a=D;var Y=U(7),B=U(1);function D(P){return Object(Y.a)(P)?0:Object(B.a)(P)?P.length:Object.keys(P).length}},function(X,W,U){"use strict";W.a=V;var Y=function(ve,be){return Y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Ae,Pe){Ae.__proto__=Pe}||function(Ae,Pe){for(var Ve in Pe)Object.prototype.hasOwnProperty.call(Pe,Ve)&&(Ae[Ve]=Pe[Ve])},Y(ve,be)};function B(ve,be){if(typeof be!="function"&&be!==null)throw new TypeError("Class extends value "+String(be)+" is not a constructor or null");Y(ve,be);function Ae(){this.constructor=ve}ve.prototype=be===null?Object.create(be):(Ae.prototype=be.prototype,new Ae)}var D=function(){return D=Object.assign||function(be){for(var Ae,Pe=1,Ve=arguments.length;Pe=0;_t--)(Ke=ve[_t])&&(Ue=(Ve<3?Ke(Ue):Ve>3?Ke(be,Ae,Ue):Ke(be,Ae))||Ue);return Ve>3&&Ue&&Object.defineProperty(be,Ae,Ue),Ue}function y(ve,be){return function(Ae,Pe){be(Ae,Pe,ve)}}function E(ve,be,Ae,Pe,Ve,Ue){function Ke(Nt){if(Nt!==void 0&&typeof Nt!="function")throw new TypeError("Function expected");return Nt}for(var _t=Pe.kind,Ct=_t==="getter"?"get":_t==="setter"?"set":"value",He=!be&&ve?Pe.static?ve:ve.prototype:null,ht=be||(He?Object.getOwnPropertyDescriptor(He,Pe.name):{}),mt,dt=!1,Et=Ae.length-1;Et>=0;Et--){var it={};for(var St in Pe)it[St]=St==="access"?{}:Pe[St];for(var St in Pe.access)it.access[St]=Pe.access[St];it.addInitializer=function(Nt){if(dt)throw new TypeError("Cannot add initializers after decoration has completed");Ue.push(Ke(Nt||null))};var $t=(0,Ae[Et])(_t==="accessor"?{get:ht.get,set:ht.set}:ht[Ct],it);if(_t==="accessor"){if($t===void 0)continue;if($t===null||typeof $t!="object")throw new TypeError("Object expected");(mt=Ke($t.get))&&(ht.get=mt),(mt=Ke($t.set))&&(ht.set=mt),(mt=Ke($t.init))&&Ve.push(mt)}else(mt=Ke($t))&&(_t==="field"?Ve.push(mt):ht[Ct]=mt)}He&&Object.defineProperty(He,Pe.name,ht),dt=!0}function g(ve,be,Ae){for(var Pe=arguments.length>2,Ve=0;Ve0&&Ue[Ue.length-1])&&(He[0]===6||He[0]===2)){Ae=0;continue}if(He[0]===3&&(!Ue||He[1]>Ue[0]&&He[1]=ve.length&&(ve=void 0),{value:ve&&ve[Pe++],done:!ve}}};throw new TypeError(be?"Object is not iterable.":"Symbol.iterator is not defined.")}function T(ve,be){var Ae=typeof Symbol=="function"&&ve[Symbol.iterator];if(!Ae)return ve;var Pe=Ae.call(ve),Ve,Ue=[],Ke;try{for(;(be===void 0||be-- >0)&&!(Ve=Pe.next()).done;)Ue.push(Ve.value)}catch(_t){Ke={error:_t}}finally{try{Ve&&!Ve.done&&(Ae=Pe.return)&&Ae.call(Pe)}finally{if(Ke)throw Ke.error}}return Ue}function M(){for(var ve=[],be=0;be1||_t(dt,Et)})})}function _t(dt,Et){try{Ct(Pe[dt](Et))}catch(it){mt(Ue[0][3],it)}}function Ct(dt){dt.value instanceof $?Promise.resolve(dt.value.v).then(He,ht):mt(Ue[0][2],dt)}function He(dt){_t("next",dt)}function ht(dt){_t("throw",dt)}function mt(dt,Et){dt(Et),Ue.shift(),Ue.length&&_t(Ue[0][0],Ue[0][1])}}function te(ve){var be,Ae;return be={},Pe("next"),Pe("throw",function(Ve){throw Ve}),Pe("return"),be[Symbol.iterator]=function(){return this},be;function Pe(Ve,Ue){be[Ve]=ve[Ve]?function(Ke){return(Ae=!Ae)?{value:$(ve[Ve](Ke)),done:!1}:Ue?Ue(Ke):Ke}:Ue}}function ee(ve){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var be=ve[Symbol.asyncIterator],Ae;return be?be.call(ve):(ve=typeof G=="function"?G(ve):ve[Symbol.iterator](),Ae={},Pe("next"),Pe("throw"),Pe("return"),Ae[Symbol.asyncIterator]=function(){return this},Ae);function Pe(Ue){Ae[Ue]=ve[Ue]&&function(Ke){return new Promise(function(_t,Ct){Ke=ve[Ue](Ke),Ve(_t,Ct,Ke.done,Ke.value)})}}function Ve(Ue,Ke,_t,Ct){Promise.resolve(Ct).then(function(He){Ue({value:He,done:_t})},Ke)}}function ie(ve,be){return Object.defineProperty?Object.defineProperty(ve,"raw",{value:be}):ve.raw=be,ve}var ce=Object.create?function(ve,be){Object.defineProperty(ve,"default",{enumerable:!0,value:be})}:function(ve,be){ve.default=be};function ge(ve){if(ve&&ve.__esModule)return ve;var be={};if(ve!=null)for(var Ae in ve)Ae!=="default"&&Object.prototype.hasOwnProperty.call(ve,Ae)&&A(be,ve,Ae);return ce(be,ve),be}function Le(ve){return ve&&ve.__esModule?ve:{default:ve}}function Oe(ve,be,Ae,Pe){if(Ae==="a"&&!Pe)throw new TypeError("Private accessor was defined without a getter");if(typeof be=="function"?ve!==be||!Pe:!be.has(ve))throw new TypeError("Cannot read private member from an object whose class did not declare it");return Ae==="m"?Pe:Ae==="a"?Pe.call(ve):Pe?Pe.value:be.get(ve)}function Re(ve,be,Ae,Pe,Ve){if(Pe==="m")throw new TypeError("Private method is not writable");if(Pe==="a"&&!Ve)throw new TypeError("Private accessor was defined without a setter");if(typeof be=="function"?ve!==be||!Ve:!be.has(ve))throw new TypeError("Cannot write private member to an object whose class did not declare it");return Pe==="a"?Ve.call(ve,Ae):Ve?Ve.value=Ae:be.set(ve,Ae),Ae}function de(ve,be){if(be===null||typeof be!="object"&&typeof be!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof ve=="function"?be===ve:ve.has(be)}},function(X,W,U){"use strict";var Y=U(4),B=U(9),D=U(34);W.a=function(P,N,y,E){E===void 0&&(E="...");var g=16,p=Object(D.a)(E,y),h=Object(Y.a)(P)?P:Object(B.a)(P),x=N,m=[],b,A;if(Object(D.a)(P,y)<=N)return P;for(;b=h.substr(0,g),A=Object(D.a)(b,y),!(A+p>x&&A>x);)if(m.push(b),x-=A,h=h.substr(g),!h)return m.join("");for(;b=h.substr(0,1),A=Object(D.a)(b,y),!(A+p>x);)if(m.push(b),x-=A,h=h.substr(1),!h)return m.join("");return""+m.join("")+E}},function(X,W,U){"use strict";var Y=function(){function B(){this.map={}}return B.prototype.has=function(D){return this.map[D]!==void 0},B.prototype.get=function(D,P){var N=this.map[D];return N===void 0?P:N},B.prototype.set=function(D,P){this.map[D]=P},B.prototype.clear=function(){this.map={}},B.prototype.delete=function(D){delete this.map[D]},B.prototype.size=function(){return Object.keys(this.map).length},B}();W.a=Y},function(X,W){function U(y,E,g,p){p===void 0&&(p=[]);var h=this;h.w=y||0,h.h=E||0,h.y=g||0,h.x=0,h.c=p||[],h.cs=p.length,h.prelim=0,h.mod=0,h.shift=0,h.change=0,h.tl=null,h.tr=null,h.el=null,h.er=null,h.msel=0,h.mser=0}U.fromNode=function(y,E){if(!y)return null;var g=[];return y.children.forEach(function(p){g.push(U.fromNode(p,E))}),E?new U(y.height,y.width,y.x,g):new U(y.width,y.height,y.y,g)};function Y(y,E,g){g?y.y+=E:y.x+=E,y.children.forEach(function(p){Y(p,E,g)})}function B(y,E){var g=E?y.y:y.x;return y.children.forEach(function(p){g=Math.min(B(p,E),g)}),g}function D(y,E){var g=B(y,E);Y(y,-g,E)}function P(y,E,g){g?E.y=y.x:E.x=y.x,y.c.forEach(function(p,h){P(p,E.children[h],g)})}function N(y,E,g){g===void 0&&(g=0),E?(y.x=g,g+=y.width):(y.y=g,g+=y.height),y.children.forEach(function(p){N(p,E,g)})}X.exports=function(y,E){E===void 0&&(E={});var g=E.isHorizontal;function p(ee){if(ee.cs===0){h(ee);return}p(ee.c[0]);for(var ie=q(k(ee.c[0].el),0,null),ce=1;cece.low&&(ce=ce.nxt);var de=Le+ge.prelim+ge.w-(Re+Oe.prelim);de>0&&(Re+=de,m(ee,ie,ce.index,de));var ve=k(ge),be=k(Oe);ve<=be&&(ge=A(ge),ge!==null&&(Le+=ge.mod)),ve>=be&&(Oe=b(Oe),Oe!==null&&(Re+=Oe.mod))}!ge&&!!Oe?G(ee,ie,Oe,Re):!!ge&&!Oe&&T(ee,ie,ge,Le)}function m(ee,ie,ce,ge){ee.c[ie].mod+=ge,ee.c[ie].msel+=ge,ee.c[ie].mser+=ge,j(ee,ie,ce,ge)}function b(ee){return ee.cs===0?ee.tl:ee.c[0]}function A(ee){return ee.cs===0?ee.tr:ee.c[ee.cs-1]}function k(ee){return ee.y+ee.h}function G(ee,ie,ce,ge){var Le=ee.c[0].el;Le.tl=ce;var Oe=ge-ce.mod-ee.c[0].msel;Le.mod+=Oe,Le.prelim-=Oe,ee.c[0].el=ee.c[ie].el,ee.c[0].msel=ee.c[ie].msel}function T(ee,ie,ce,ge){var Le=ee.c[ie].er;Le.tr=ce;var Oe=ge-ce.mod-ee.c[ie].mser;Le.mod+=Oe,Le.prelim-=Oe,ee.c[ie].er=ee.c[ie-1].er,ee.c[ie].mser=ee.c[ie-1].mser}function M(ee){ee.prelim=(ee.c[0].prelim+ee.c[0].mod+ee.c[ee.cs-1].mod+ee.c[ee.cs-1].prelim+ee.c[ee.cs-1].w)/2-ee.w/2}function V(ee,ie){ie+=ee.mod,ee.x=ee.prelim+ie,$(ee);for(var ce=0;ce=ce.low;)ce=ce.nxt;return{low:ee,index:ie,nxt:ce}}N(y,g);var te=U.fromNode(y,g);return p(te),V(te,0),P(te,y,g),D(y,g),y}},function(X,W,U){function Y(h,x){h.prototype=Object.create(x.prototype),h.prototype.constructor=h,B(h,x)}function B(h,x){return B=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(b,A){return b.__proto__=A,b},B(h,x)}var D=U(11),P=U(121),N=U(17),y=U(6),E=function(h){Y(x,h);function x(){return h.apply(this,arguments)||this}var m=x.prototype;return m.execute=function(){var A=this;return A.rootNode.width=0,N(A.rootNode,A.options,P)},x}(D),g={};function p(h,x){return x=y.assign({},g,x),new E(h,x).execute()}X.exports=p},function(X,W,U){var Y=U(6);function B(N,y){N===void 0&&(N=0),y===void 0&&(y=[]);var E=this;E.x=E.y=0,E.leftChild=E.rightChild=null,E.height=0,E.children=y}var D={isHorizontal:!0,nodeSep:20,nodeSize:20,rankSep:200,subTreeSep:10};function P(N,y,E){E?(y.x=N.x,y.y=N.y):(y.x=N.y,y.y=N.x),N.children.forEach(function(g,p){P(g,y.children[p],E)})}X.exports=function(N,y){y===void 0&&(y={}),y=Y.assign({},D,y);var E=0;function g(b){if(!b)return null;b.width=0,b.depth&&b.depth>E&&(E=b.depth);var A=b.children,k=A.length,G=new B(b.height,[]);return A.forEach(function(T,M){var V=g(T);G.children.push(V),M===0&&(G.leftChild=V),M===k-1&&(G.rightChild=V)}),G.originNode=b,G.isLeaf=b.isLeaf(),G}function p(b){if(b.isLeaf||b.children.length===0)b.drawingDepth=E;else{var A=b.children.map(function(G){return p(G)}),k=Math.min.apply(null,A);b.drawingDepth=k-1}return b.drawingDepth}var h;function x(b){b.x=b.drawingDepth*y.rankSep,b.isLeaf?(b.y=0,h&&(b.y=h.y+h.height+y.nodeSep,b.originNode.parent!==h.originNode.parent&&(b.y+=y.subTreeSep)),h=b):(b.children.forEach(function(A){x(A)}),b.y=(b.leftChild.y+b.rightChild.y)/2)}var m=g(N);return p(m),x(m),P(m,N,y.isHorizontal),N}},function(X,W,U){function Y(m,b){m.prototype=Object.create(b.prototype),m.prototype.constructor=m,B(m,b)}function B(m,b){return B=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(k,G){return k.__proto__=G,k},B(m,b)}var D=U(11),P=U(123),N=U(35),y=U(6),E=["LR","RL","H"],g=E[0],p=function(m){Y(b,m);function b(){return m.apply(this,arguments)||this}var A=b.prototype;return A.execute=function(){var G=this,T=G.options,M=G.rootNode;T.isHorizontal=!0;var V=T.indent,j=V===void 0?20:V,$=T.dropCap,q=$===void 0?!0:$,te=T.direction,ee=te===void 0?g:te,ie=T.align;if(ee&&E.indexOf(ee)===-1)throw new TypeError("Invalid direction: "+ee);if(ee===E[0])P(M,j,q,ie);else if(ee===E[1])P(M,j,q,ie),M.right2left();else if(ee===E[2]){var ce=N(M,T),ge=ce.left,Le=ce.right;P(ge,j,q,ie),ge.right2left(),P(Le,j,q,ie);var Oe=ge.getBoundingBox();Le.translate(Oe.width,0),M.x=Le.x-M.width/2}return M},b}(D),h={};function x(m,b){return b=y.assign({},h,b),new p(m,b).execute()}X.exports=x},function(X,W,U){var Y=U(6);function B(D,P,N,y,E){var g=typeof N=="function"?N(D):N*D.depth;if(!y)try{if(D.id===D.parent.children[0].id){D.x+=g,D.y=P?P.y:0;return}}catch(x){}if(D.x+=g,P){if(D.y=P.y+Y.getHeight(P,D,E),P.parent&&D.parent.id!==P.parent.id){var p=P.parent,h=p.y+Y.getHeight(p,D,E);D.y=h>D.y?h:D.y}}else D.y=0}X.exports=function(D,P,N,y){var E=null;D.eachNode(function(g){B(g,E,P,N,y),E=g})}},function(X,W,U){function Y(h,x){h.prototype=Object.create(x.prototype),h.prototype.constructor=h,B(h,x)}function B(h,x){return B=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(b,A){return b.__proto__=A,b},B(h,x)}var D=U(11),P=U(125),N=U(17),y=U(6),E=function(h){Y(x,h);function x(){return h.apply(this,arguments)||this}var m=x.prototype;return m.execute=function(){var A=this;return N(A.rootNode,A.options,P)},x}(D),g={};function p(h,x){return x=y.assign({},g,x),new E(h,x).execute()}X.exports=p},function(X,W,U){var Y=U(6);function B(N,y){var E=0;return N.children.length?N.children.forEach(function(g){E+=B(g,y)}):E=N.height,N._subTreeSep=y.getSubTreeSep(N.data),N.totalHeight=Math.max(N.height,E)+2*N._subTreeSep,N.totalHeight}function D(N){var y=N.children,E=y.length;if(E){y.forEach(function(b){D(b)});var g=y[0],p=y[E-1],h=p.y-g.y+p.height,x=0;if(y.forEach(function(b){x+=b.totalHeight}),h>N.height)N.y=g.y+h/2-N.height/2;else if(y.length!==1||N.height>x){var m=N.y+(N.height-h)/2-g.y;y.forEach(function(b){b.translate(0,m)})}else N.y=(g.y+g.height/2+p.y+p.height/2)/2-N.height/2}}var P={getSubTreeSep:function(){return 0}};X.exports=function(N,y){y===void 0&&(y={}),y=Y.assign({},P,y),N.parent={x:0,width:0,height:0,y:0},N.BFTraverse(function(E){E.x=E.parent.x+E.parent.width}),N.parent=null,B(N,y),N.startY=0,N.y=N.totalHeight/2-N.height/2,N.eachNode(function(E){var g=E.children,p=g.length;if(p){var h=g[0];if(h.startY=E.startY+E._subTreeSep,p===1)h.y=E.y+E.height/2-h.height/2;else{h.y=h.startY+h.totalHeight/2-h.height/2;for(var x=1;x=0;return m?A?Math.PI*2-b:b:A?b:Math.PI*2-b}U=g;function p(h,x,m){return m?(h[0]=x[1],h[1]=-1*x[0]):(h[0]=-1*x[1],h[1]=x[0]),h}U=p},59591:function(hr,X,W){var U=W(50008).default;function Y(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */hr.exports=Y=function(){return B},hr.exports.__esModule=!0,hr.exports.default=hr.exports;var B={},D=Object.prototype,P=D.hasOwnProperty,N=Object.defineProperty||function(Re,de,ve){Re[de]=ve.value},y=typeof Symbol=="function"?Symbol:{},E=y.iterator||"@@iterator",g=y.asyncIterator||"@@asyncIterator",p=y.toStringTag||"@@toStringTag";function h(Re,de,ve){return Object.defineProperty(Re,de,{value:ve,enumerable:!0,configurable:!0,writable:!0}),Re[de]}try{h({},"")}catch(Re){h=function(ve,be,Ae){return ve[be]=Ae}}function x(Re,de,ve,be){var Ae=de&&de.prototype instanceof A?de:A,Pe=Object.create(Ae.prototype),Ve=new ge(be||[]);return N(Pe,"_invoke",{value:te(Re,ve,Ve)}),Pe}function m(Re,de,ve){try{return{type:"normal",arg:Re.call(de,ve)}}catch(be){return{type:"throw",arg:be}}}B.wrap=x;var b={};function A(){}function k(){}function G(){}var T={};h(T,E,function(){return this});var M=Object.getPrototypeOf,V=M&&M(M(Le([])));V&&V!==D&&P.call(V,E)&&(T=V);var j=G.prototype=A.prototype=Object.create(T);function $(Re){["next","throw","return"].forEach(function(de){h(Re,de,function(ve){return this._invoke(de,ve)})})}function q(Re,de){function ve(Ae,Pe,Ve,Ue){var Ke=m(Re[Ae],Re,Pe);if(Ke.type!=="throw"){var _t=Ke.arg,Ct=_t.value;return Ct&&U(Ct)=="object"&&P.call(Ct,"__await")?de.resolve(Ct.__await).then(function(He){ve("next",He,Ve,Ue)},function(He){ve("throw",He,Ve,Ue)}):de.resolve(Ct).then(function(He){_t.value=He,Ve(_t)},function(He){return ve("throw",He,Ve,Ue)})}Ue(Ke.arg)}var be;N(this,"_invoke",{value:function(Pe,Ve){function Ue(){return new de(function(Ke,_t){ve(Pe,Ve,Ke,_t)})}return be=be?be.then(Ue,Ue):Ue()}})}function te(Re,de,ve){var be="suspendedStart";return function(Ae,Pe){if(be==="executing")throw new Error("Generator is already running");if(be==="completed"){if(Ae==="throw")throw Pe;return Oe()}for(ve.method=Ae,ve.arg=Pe;;){var Ve=ve.delegate;if(Ve){var Ue=ee(Ve,ve);if(Ue){if(Ue===b)continue;return Ue}}if(ve.method==="next")ve.sent=ve._sent=ve.arg;else if(ve.method==="throw"){if(be==="suspendedStart")throw be="completed",ve.arg;ve.dispatchException(ve.arg)}else ve.method==="return"&&ve.abrupt("return",ve.arg);be="executing";var Ke=m(Re,de,ve);if(Ke.type==="normal"){if(be=ve.done?"completed":"suspendedYield",Ke.arg===b)continue;return{value:Ke.arg,done:ve.done}}Ke.type==="throw"&&(be="completed",ve.method="throw",ve.arg=Ke.arg)}}}function ee(Re,de){var ve=de.method,be=Re.iterator[ve];if(be===void 0)return de.delegate=null,ve==="throw"&&Re.iterator.return&&(de.method="return",de.arg=void 0,ee(Re,de),de.method==="throw")||ve!=="return"&&(de.method="throw",de.arg=new TypeError("The iterator does not provide a '"+ve+"' method")),b;var Ae=m(be,Re.iterator,de.arg);if(Ae.type==="throw")return de.method="throw",de.arg=Ae.arg,de.delegate=null,b;var Pe=Ae.arg;return Pe?Pe.done?(de[Re.resultName]=Pe.value,de.next=Re.nextLoc,de.method!=="return"&&(de.method="next",de.arg=void 0),de.delegate=null,b):Pe:(de.method="throw",de.arg=new TypeError("iterator result is not an object"),de.delegate=null,b)}function ie(Re){var de={tryLoc:Re[0]};1 in Re&&(de.catchLoc=Re[1]),2 in Re&&(de.finallyLoc=Re[2],de.afterLoc=Re[3]),this.tryEntries.push(de)}function ce(Re){var de=Re.completion||{};de.type="normal",delete de.arg,Re.completion=de}function ge(Re){this.tryEntries=[{tryLoc:"root"}],Re.forEach(ie,this),this.reset(!0)}function Le(Re){if(Re){var de=Re[E];if(de)return de.call(Re);if(typeof Re.next=="function")return Re;if(!isNaN(Re.length)){var ve=-1,be=function Ae(){for(;++ve=0;--Ae){var Pe=this.tryEntries[Ae],Ve=Pe.completion;if(Pe.tryLoc==="root")return be("end");if(Pe.tryLoc<=this.prev){var Ue=P.call(Pe,"catchLoc"),Ke=P.call(Pe,"finallyLoc");if(Ue&&Ke){if(this.prev=0;--be){var Ae=this.tryEntries[be];if(Ae.tryLoc<=this.prev&&P.call(Ae,"finallyLoc")&&this.prev=0;--ve){var be=this.tryEntries[ve];if(be.finallyLoc===de)return this.complete(be.completion,be.afterLoc),ce(be),b}},catch:function(de){for(var ve=this.tryEntries.length-1;ve>=0;--ve){var be=this.tryEntries[ve];if(be.tryLoc===de){var Ae=be.completion;if(Ae.type==="throw"){var Pe=Ae.arg;ce(be)}return Pe}}throw new Error("illegal catch attempt")},delegateYield:function(de,ve,be){return this.delegate={iterator:Le(de),resultName:ve,nextLoc:be},this.method==="next"&&(this.arg=void 0),b}},B}hr.exports=Y,hr.exports.__esModule=!0,hr.exports.default=hr.exports},87757:function(hr,X,W){var U=W(59591)();hr.exports=U;try{regeneratorRuntime=U}catch(Y){typeof globalThis=="object"?globalThis.regeneratorRuntime=U:Function("r","regeneratorRuntime = r")(U)}},2482:function(hr,X,W){"use strict";W.r(X),W.d(X,{forceCenter:function(){return U},forceCollide:function(){return y},forceLink:function(){return p},forceManyBody:function(){return ge},forceRadial:function(){return Le},forceSimulation:function(){return ce},forceX:function(){return Oe},forceY:function(){return Re}});function U(de,ve){var be,Ae=1;de==null&&(de=0),ve==null&&(ve=0);function Pe(){var Ve,Ue=be.length,Ke,_t=0,Ct=0;for(Ve=0;Vemt.index){var aa=dt-We.x-We.vx,ri=Et-We.y-We.vy,Ia=aa*aa+ri*ri;Iadt+kn||InEt+kn||bnCt.r&&(Ct.r=Ct[He].r)}function _t(){if(!!ve){var Ct,He=ve.length,ht;for(be=new Array(He),Ct=0;Ct=0&&(Ae=be.slice(Pe+1),be=be.slice(0,Pe)),be&&!ve.hasOwnProperty(be))throw new Error("unknown type: "+be);return{type:be,name:Ae}})}m.prototype=x.prototype={constructor:m,on:function(ve,be){var Ae=this._,Pe=b(ve+"",Ae),Ve,Ue=-1,Ke=Pe.length;if(arguments.length<2){for(;++Ue0)for(var Ae=new Array(Ve),Pe=0,Ve,Ue;Pe1?($t==null?Ke.delete(St):Ke.set(St,Et($t)),ve):Ke.get(St)},find:function(St,$t,Nt){var mr=0,br=de.length,nn,In,bn,We,zn;for(Nt==null?Nt=Infinity:Nt*=Nt,mr=0;mr1?(Ct.on(St,$t),ve):Ct.on(St)}}}function ge(){var de,ve,be,Ae,Pe=B(-30),Ve,Ue=1,Ke=Infinity,_t=.81;function Ct(dt){var Et,it=de.length,St=(0,Y.Z)(de,q,te).visitAfter(ht);for(Ae=dt,Et=0;Et=Ke)return;(dt.data!==ve||dt.next)&&($t===0&&($t=D(be),br+=$t*$t),Nt===0&&(Nt=D(be),br+=Nt*Nt),br1&&arguments[1]!==void 0?arguments[1]:{};if(!y(se))throw new TypeError("input must be an array");if(se.length===0)throw new TypeError("input must not be empty");var R=oe.fromIndex,_=R===void 0?0:R,C=oe.toIndex,H=C===void 0?se.length:C;if(_<0||_>=se.length||!Number.isInteger(_))throw new Error("fromIndex must be a positive integer smaller than length");if(H<=_||H>se.length||!Number.isInteger(H))throw new Error("toIndex must be an integer greater than fromIndex and at most equal to length");for(var ye=se[_],Ce=_+1;Ceye&&(ye=se[Ce]);return ye}function g(se){var oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!y(se))throw new TypeError("input must be an array");if(se.length===0)throw new TypeError("input must not be empty");var R=oe.fromIndex,_=R===void 0?0:R,C=oe.toIndex,H=C===void 0?se.length:C;if(_<0||_>=se.length||!Number.isInteger(_))throw new Error("fromIndex must be a positive integer smaller than length");if(H<=_||H>se.length||!Number.isInteger(H))throw new Error("toIndex must be an integer greater than fromIndex and at most equal to length");for(var ye=se[_],Ce=_+1;Ce1&&arguments[1]!==void 0?arguments[1]:{};if(y(se)){if(se.length===0)throw new TypeError("input must not be empty")}else throw new TypeError("input must be an array");var R;if(oe.output!==void 0){if(!y(oe.output))throw new TypeError("output option must be an array if specified");R=oe.output}else R=new Array(se.length);var _=g(se),C=E(se);if(_===C)throw new RangeError("minimum and maximum input values are equal. Cannot rescale a constant array");var H=oe.min,ye=H===void 0?oe.autoMinMax?_:0:H,Ce=oe.max,_e=Ce===void 0?oe.autoMinMax?C:1:Ce;if(ye>=_e)throw new RangeError("min option must be smaller than max option");for(var Fe=(_e-ye)/(C-_),Mt=0;Mt1&&arguments[1]!==void 0?arguments[1]:{},R=oe.maxRows,_=R===void 0?15:R,C=oe.maxColumns,H=C===void 0?10:C,ye=oe.maxNumSize,Ce=ye===void 0?8:ye,_e=oe.padMinus,Fe=_e===void 0?"auto":_e;return"".concat(se.constructor.name,` { +`).concat(h,`[ +`).concat(x).concat(A(se,_,H,Ce,Fe),` +`).concat(h,`] +`).concat(h,"rows: ").concat(se.rows,` +`).concat(h,"columns: ").concat(se.columns,` +}`)}function A(se,oe,R,_,C){var H=se.rows,ye=se.columns,Ce=Math.min(H,oe),_e=Math.min(ye,R),Fe=[];if(C==="auto"){C=!1;e:for(var Mt=0;Mt=0&&R?" ".concat(G(se,oe-1)):G(se,oe)).padEnd(oe)}function G(se,oe){var R=se.toString();if(R.length<=oe)return R;var _=se.toFixed(oe);if(_.length>oe&&(_=se.toFixed(Math.max(0,oe-(_.length-oe)))),_.length<=oe&&!_.startsWith("0.000")&&!_.startsWith("-0.000"))return _;var C=se.toExponential(oe);return C.length>oe&&(C=se.toExponential(Math.max(0,oe-(C.length-oe)))),C.slice(0)}function T(se,oe){se.prototype.add=function(_){return typeof _=="number"?this.addS(_):this.addM(_)},se.prototype.addS=function(_){for(var C=0;C>_);return this},se.prototype.signPropagatingRightShiftM=function(_){if(_=oe.checkMatrix(_),this.rows!==_.rows||this.columns!==_.columns)throw new RangeError("Matrices dimensions must be equal");for(var C=0;C>_.get(C,H));return this},se.signPropagatingRightShift=function(_,C){var H=new oe(_);return H.signPropagatingRightShift(C)},se.prototype.rightShift=function(_){return typeof _=="number"?this.rightShiftS(_):this.rightShiftM(_)},se.prototype.rightShiftS=function(_){for(var C=0;C>>_);return this},se.prototype.rightShiftM=function(_){if(_=oe.checkMatrix(_),this.rows!==_.rows||this.columns!==_.columns)throw new RangeError("Matrices dimensions must be equal");for(var C=0;C>>_.get(C,H));return this},se.rightShift=function(_,C){var H=new oe(_);return H.rightShift(C)},se.prototype.zeroFillRightShift=se.prototype.rightShift,se.prototype.zeroFillRightShiftS=se.prototype.rightShiftS,se.prototype.zeroFillRightShiftM=se.prototype.rightShiftM,se.zeroFillRightShift=se.rightShift,se.prototype.not=function(){for(var _=0;__)throw new RangeError("Row index out of range")}function V(se,oe,R){var _=R?se.columns:se.columns-1;if(oe<0||oe>_)throw new RangeError("Column index out of range")}function j(se,oe){if(oe.to1DArray&&(oe=oe.to1DArray()),oe.length!==se.columns)throw new RangeError("vector size must be the same as the number of columns");return oe}function $(se,oe){if(oe.to1DArray&&(oe=oe.to1DArray()),oe.length!==se.rows)throw new RangeError("vector size must be the same as the number of rows");return oe}function q(se,oe){if(!y(oe))throw new TypeError("row indices must be an array");for(var R=0;R=se.rows)throw new RangeError("row indices are out of range")}function te(se,oe){if(!y(oe))throw new TypeError("column indices must be an array");for(var R=0;R=se.columns)throw new RangeError("column indices are out of range")}function ee(se,oe,R,_,C){if(arguments.length!==5)throw new RangeError("expected 4 arguments");if(ce("startRow",oe),ce("endRow",R),ce("startColumn",_),ce("endColumn",C),oe>R||_>C||oe<0||oe>=se.rows||R<0||R>=se.rows||_<0||_>=se.columns||C<0||C>=se.columns)throw new RangeError("Submatrix indices are out of range")}function ie(se){for(var oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,R=[],_=0;_C?(ye=!0,C=_):(H=!1,ye=!0);R++}return H}},{key:"isReducedEchelonForm",value:function(){for(var R=0,_=0,C=-1,H=!0,ye=!1;RC?(ye=!0,C=_):(H=!1,ye=!0);for(var Ce=_+1;CeR.get(H,C)&&(H=ye);if(R.get(H,C)===0)C++;else{R.swapRows(_,H);for(var Ce=R.get(_,C),_e=C;_e=0;)if(R.maxRow(H)===0)H--;else{for(var ye=0,Ce=!1;ye0&&arguments[0]!==void 0?arguments[0]:{};if(typeof R!="object")throw new TypeError("options must be an object");var _=R.rows,C=_===void 0?1:_,H=R.columns,ye=H===void 0?1:H;if(!Number.isInteger(C)||C<=0)throw new TypeError("rows must be a positive integer");if(!Number.isInteger(ye)||ye<=0)throw new TypeError("columns must be a positive integer");for(var Ce=new Nt(this.rows*C,this.columns*ye),_e=0;_e_[C]&&(_[C]=this.get(C,H));return _}case"column":{for(var ye=new Array(this.columns).fill(Number.NEGATIVE_INFINITY),Ce=0;Ceye[_e]&&(ye[_e]=this.get(Ce,_e));return ye}case void 0:{for(var Fe=this.get(0,0),Mt=0;MtFe&&(Fe=this.get(Mt,yt));return Fe}default:throw new Error("invalid option: ".concat(R))}}},{key:"maxIndex",value:function(){ge(this);for(var R=this.get(0,0),_=[0,0],C=0;CR&&(R=this.get(C,H),_[0]=C,_[1]=H);return _}},{key:"min",value:function(R){if(this.isEmpty())return NaN;switch(R){case"row":{for(var _=new Array(this.rows).fill(Number.POSITIVE_INFINITY),C=0;C_&&(_=this.get(R,C));return _}},{key:"maxRowIndex",value:function(R){M(this,R),ge(this);for(var _=this.get(R,0),C=[R,0],H=1;H_&&(_=this.get(R,H),C[1]=H);return C}},{key:"minRow",value:function(R){if(M(this,R),this.isEmpty())return NaN;for(var _=this.get(R,0),C=1;C_&&(_=this.get(C,R));return _}},{key:"maxColumnIndex",value:function(R){V(this,R),ge(this);for(var _=this.get(0,R),C=[0,R],H=1;H_&&(_=this.get(H,R),C[0]=H);return C}},{key:"minColumn",value:function(R){if(V(this,R),this.isEmpty())return NaN;for(var _=this.get(0,R),C=1;C0&&arguments[0]!==void 0?arguments[0]:"frobenius",_=0;if(R==="max")return this.max();if(R==="frobenius"){for(var C=0;C0&&arguments[0]!==void 0?arguments[0]:{};if(typeof R!="object")throw new TypeError("options must be an object");var _=R.min,C=_===void 0?0:_,H=R.max,ye=H===void 0?1:H;if(!Number.isFinite(C))throw new TypeError("min must be a number");if(!Number.isFinite(ye))throw new TypeError("max must be a number");if(C>=ye)throw new RangeError("min must be smaller than max");for(var Ce=new Nt(this.rows,this.columns),_e=0;_e0&&p(Fe,{min:C,max:ye,output:Fe}),Ce.setRow(_e,Fe)}return Ce}},{key:"scaleColumns",value:function(){var R=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(typeof R!="object")throw new TypeError("options must be an object");var _=R.min,C=_===void 0?0:_,H=R.max,ye=H===void 0?1:H;if(!Number.isFinite(C))throw new TypeError("min must be a number");if(!Number.isFinite(ye))throw new TypeError("max must be a number");if(C>=ye)throw new RangeError("min must be smaller than max");for(var Ce=new Nt(this.rows,this.columns),_e=0;_e0&&arguments[0]!==void 0?arguments[0]:St,_=0;_0&&arguments[0]!==void 0?arguments[0]:St,_=0;_C||_<0||_>=this.columns||C<0||C>=this.columns)throw new RangeError("Argument out of range");for(var H=new Nt(R.length,C-_+1),ye=0;ye=this.rows)throw new RangeError("Row index out of range: ".concat(R[ye]));H.set(ye,Ce-_,this.get(R[ye],Ce))}return H}},{key:"subMatrixColumn",value:function(R,_,C){if(_===void 0&&(_=0),C===void 0&&(C=this.rows-1),_>C||_<0||_>=this.rows||C<0||C>=this.rows)throw new RangeError("Argument out of range");for(var H=new Nt(C-_+1,R.length),ye=0;ye=this.columns)throw new RangeError("Column index out of range: ".concat(R[ye]));H.set(Ce-_,ye,this.get(Ce,R[ye]))}return H}},{key:"setSubMatrix",value:function(R,_,C){if(R=Nt.checkMatrix(R),R.isEmpty())return this;var H=_+R.rows-1,ye=C+R.columns-1;ee(this,_,H,C,ye);for(var Ce=0;Ce1&&arguments[1]!==void 0?arguments[1]:{};if(typeof R=="object"&&(_=R,R=void 0),typeof _!="object")throw new TypeError("options must be an object");var C=_,H=C.unbiased,ye=H===void 0?!0:H,Ce=C.mean,_e=Ce===void 0?this.mean(R):Ce;if(typeof ye!="boolean")throw new TypeError("unbiased must be a boolean");switch(R){case"row":{if(!y(_e))throw new TypeError("mean must be an array");return Ae(this,ye,_e)}case"column":{if(!y(_e))throw new TypeError("mean must be an array");return Pe(this,ye,_e)}case void 0:{if(typeof _e!="number")throw new TypeError("mean must be a number");return Ve(this,ye,_e)}default:throw new Error("invalid option: ".concat(R))}}},{key:"standardDeviation",value:function(R,_){typeof R=="object"&&(_=R,R=void 0);var C=this.variance(R,_);if(R===void 0)return Math.sqrt(C);for(var H=0;H1&&arguments[1]!==void 0?arguments[1]:{};if(typeof R=="object"&&(_=R,R=void 0),typeof _!="object")throw new TypeError("options must be an object");var C=_,H=C.center,ye=H===void 0?this.mean(R):H;switch(R){case"row":{if(!y(ye))throw new TypeError("center must be an array");return Ue(this,ye),this}case"column":{if(!y(ye))throw new TypeError("center must be an array");return Ke(this,ye),this}case void 0:{if(typeof ye!="number")throw new TypeError("center must be a number");return _t(this,ye),this}default:throw new Error("invalid option: ".concat(R))}}},{key:"scale",value:function(R){var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(typeof R=="object"&&(_=R,R=void 0),typeof _!="object")throw new TypeError("options must be an object");var C=_.scale;switch(R){case"row":{if(C===void 0)C=Ct(this);else if(!y(C))throw new TypeError("scale must be an array");return He(this,C),this}case"column":{if(C===void 0)C=ht(this);else if(!y(C))throw new TypeError("scale must be an array");return mt(this,C),this}case void 0:{if(C===void 0)C=dt(this);else if(typeof C!="number")throw new TypeError("scale must be a number");return Et(this,C),this}default:throw new Error("invalid option: ".concat(R))}}},{key:"toString",value:function(R){return b(this,R)}}],[{key:"from1DArray",value:function(R,_,C){var H=R*_;if(H!==C.length)throw new RangeError("data length does not match given dimensions");for(var ye=new Nt(R,_),Ce=0;Ce2&&arguments[2]!==void 0?arguments[2]:{};if(typeof C!="object")throw new TypeError("options must be an object");for(var H=C.random,ye=H===void 0?Math.random:H,Ce=new Nt(R,_),_e=0;_e2&&arguments[2]!==void 0?arguments[2]:{};if(typeof C!="object")throw new TypeError("options must be an object");var H=C.min,ye=H===void 0?0:H,Ce=C.max,_e=Ce===void 0?1e3:Ce,Fe=C.random,Mt=Fe===void 0?Math.random:Fe;if(!Number.isInteger(ye))throw new TypeError("min must be an integer");if(!Number.isInteger(_e))throw new TypeError("max must be an integer");if(ye>=_e)throw new RangeError("min must be smaller than max");for(var yt=_e-ye,Ut=new Nt(R,_),rr=0;rr=0)if(H.data=[],Number.isInteger(C)&&C>=0)for(var ye=0;ye<_;ye++)H.data.push(new Float64Array(C));else throw new TypeError("nColumns must be a positive integer");else if(y(_)){var Ce=_;if(_=Ce.length,C=_?Ce[0].length:0,typeof C!="number")throw new TypeError("Data must be a 2D array with at least one element");H.data=[];for(var _e=0;_e<_;_e++){if(Ce[_e].length!==C)throw new RangeError("Inconsistent array dimensions");if(!$t(Ce[_e]))throw new TypeError("Input data contains non-numeric values");H.data.push(Float64Array.from(Ce[_e]))}}else throw new TypeError("First argument must be a positive number or an array");return H.rows=_,H.columns=C,H}return(0,P.Z)(R,[{key:"set",value:function(C,H,ye){return this.data[C][H]=ye,this}},{key:"get",value:function(C,H){return this.data[C][H]}},{key:"removeRow",value:function(C){return M(this,C),this.data.splice(C,1),this.rows-=1,this}},{key:"addRow",value:function(C,H){return H===void 0&&(H=C,C=this.rows),M(this,C,!0),H=Float64Array.from(j(this,H)),this.data.splice(C,0,H),this.rows+=1,this}},{key:"removeColumn",value:function(C){V(this,C);for(var H=0;H1&&arguments[1]!==void 0?arguments[1]:{};(0,D.Z)(this,R);var ye=H.rows,Ce=ye===void 0?1:ye;if(_.length%Ce!=0)throw new Error("the data length is not divisible by the number of rows");return C=oe.call(this),C.rows=Ce,C.columns=_.length/Ce,C.data=_,C}return(0,P.Z)(R,[{key:"set",value:function(C,H,ye){var Ce=this._calculateIndex(C,H);return this.data[Ce]=ye,this}},{key:"get",value:function(C,H){var ye=this._calculateIndex(C,H);return this.data[ye]}},{key:"_calculateIndex",value:function(C,H){return C*this.columns+H}}]),R}(it),za=function(se){(0,Y.Z)(R,se);var oe=(0,B.Z)(R);function R(_){var C;return(0,D.Z)(this,R),C=oe.call(this),C.data=_,C.rows=_.length,C.columns=_[0].length,C}return(0,P.Z)(R,[{key:"set",value:function(C,H,ye){return this.data[C][H]=ye,this}},{key:"get",value:function(C,H){return this.data[C][H]}}]),R}(it);function Aa(se,oe){if(y(se))return se[0]&&y(se[0])?new za(se):new Ia(se,oe);throw new Error("the argument is not an array")}var Qa=function(){function se(oe){(0,D.Z)(this,se),oe=za.checkMatrix(oe);var R=oe.clone(),_=R.rows,C=R.columns,H=new Float64Array(_),ye=1,Ce,_e,Fe,Mt,yt,Ut,rr,Zt,zr;for(Ce=0;Ce<_;Ce++)H[Ce]=Ce;for(Zt=new Float64Array(_),_e=0;_eMath.abs(Zt[Mt])&&(Mt=Ce);if(Mt!==_e){for(Fe=0;Fe=0;Mt--){for(Fe=0;FeCe?H.set(ye,Ce,R.get(ye,Ce)):ye===Ce?H.set(ye,Ce,1):H.set(ye,Ce,0);return H}},{key:"upperTriangularMatrix",get:function(){for(var R=this.LU,_=R.rows,C=R.columns,H=new Nt(_,C),ye=0;ye<_;ye++)for(var Ce=0;CeMath.abs(oe)?(R=oe/se,Math.abs(se)*Math.sqrt(1+R*R)):oe!==0?(R=se/oe,Math.abs(oe)*Math.sqrt(1+R*R)):0}var La=function(){function se(oe){(0,D.Z)(this,se),oe=za.checkMatrix(oe);var R=oe.clone(),_=oe.rows,C=oe.columns,H=new Float64Array(C),ye,Ce,_e,Fe;for(_e=0;_e=0;Mt--){for(Fe=0;Fe=0;_e--){for(ye=0;ye<_;ye++)H.set(ye,_e,0);for(H.set(_e,_e,1),Ce=_e;Ce1&&arguments[1]!==void 0?arguments[1]:{};if((0,D.Z)(this,se),oe=za.checkMatrix(oe),oe.isEmpty())throw new Error("Matrix must be non-empty");var _=oe.rows,C=oe.columns,H=R.computeLeftSingularVectors,ye=H===void 0?!0:H,Ce=R.computeRightSingularVectors,_e=Ce===void 0?!0:Ce,Fe=R.autoTranspose,Mt=Fe===void 0?!1:Fe,yt=Boolean(ye),Ut=Boolean(_e),rr=!1,Zt;if(_=0;ja--)if(ir[ja]!==0){for(var Co=ja+1;Co=0;Yi--){if(Yi0;){var Dn=void 0,Io=void 0;for(Dn=Na-2;Dn>=-1&&Dn!==-1;Dn--){var ls=Number.MIN_VALUE+po*Math.abs(ir[Dn]+Math.abs(ir[Dn+1]));if(Math.abs(Wr[Dn])<=ls||Number.isNaN(Wr[Dn])){Wr[Dn]=0;break}}if(Dn===Na-2)Io=4;else{var Ei=void 0;for(Ei=Na-1;Ei>=Dn&&Ei!==Dn;Ei--){var ns=(Ei!==Na?Math.abs(Wr[Ei]):0)+(Ei!==Dn+1?Math.abs(Wr[Ei-1]):0);if(Math.abs(ir[Ei])<=po*ns){ir[Ei]=0;break}}Ei===Dn?Io=3:Ei===Na-1?Io=1:(Io=2,Dn=Ei)}switch(Dn++,Io){case 1:{var ds=Wr[Na-2];Wr[Na-2]=0;for(var Qi=Na-2;Qi>=Dn;Qi--){var Uo=Oa(ir[Qi],ds),Wo=ir[Qi]/Uo,qi=ds/Uo;if(ir[Qi]=Uo,Qi!==Dn&&(ds=-qi*Wr[Qi-1],Wr[Qi-1]=Wo*Wr[Qi-1]),Ut)for(var ao=0;ao=ir[Dn+1]);){var qo=ir[Dn];if(ir[Dn]=ir[Dn+1],ir[Dn+1]=qo,Ut&&Dn_&&ye.set(Ce,_e,R.get(Ce,_e)/this.s[_e]);for(var Fe=this.U,Mt=Fe.rows,yt=Fe.columns,Ut=new Nt(C,Mt),rr=0;rrR&&_++;return _}},{key:"diagonal",get:function(){return Array.from(this.s)}},{key:"threshold",get:function(){return Number.EPSILON/2*Math.max(this.m,this.n)*this.s[0]}},{key:"leftSingularVectors",get:function(){return this.U}},{key:"rightSingularVectors",get:function(){return this.V}},{key:"diagonalMatrix",get:function(){return Nt.diag(this.s)}}]),se}();function Cr(se){var oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return se=za.checkMatrix(se),oe?new er(se).inverse():an(se,Nt.eye(se.rows))}function an(se,oe){var R=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return se=za.checkMatrix(se),oe=za.checkMatrix(oe),R?new er(se).solve(oe):se.isSquare()?new Qa(se).solve(oe):new La(se).solve(oe)}function un(se){if(se=Nt.checkMatrix(se),se.isSquare()){if(se.columns===0)return 1;var oe,R,_,C;if(se.columns===2)return oe=se.get(0,0),R=se.get(0,1),_=se.get(1,0),C=se.get(1,1),oe*C-R*_;if(se.columns===3){var H,ye,Ce;return H=new kn(se,[1,2],[1,2]),ye=new kn(se,[1,2],[0,2]),Ce=new kn(se,[1,2],[0,1]),oe=se.get(0,0),R=se.get(0,1),_=se.get(0,2),oe*un(H)-R*un(ye)+_*un(Ce)}else return new Qa(se).determinant}else throw Error("determinant can only be calculated for a square matrix")}function Fn(se,oe){for(var R=[],_=0;_3&&arguments[3]!==void 0?arguments[3]:1e-9,C=arguments.length>4&&arguments[4]!==void 0?arguments[4]:1e-9;if(se>C)return new Array(oe.rows+1).fill(0);for(var H=oe.addRow(R,[0]),ye=0;ye1&&arguments[1]!==void 0?arguments[1]:{},R=oe.thresholdValue,_=R===void 0?1e-9:R,C=oe.thresholdError,H=C===void 0?1e-9:C;se=Nt.checkMatrix(se);for(var ye=se.rows,Ce=new Nt(ye,ye),_e=0;_e1&&arguments[1]!==void 0?arguments[1]:Number.EPSILON;if(se=Nt.checkMatrix(se),se.isEmpty())return se.transpose();for(var R=new er(se,{autoTranspose:!0}),_=R.leftSingularVectors,C=R.rightSingularVectors,H=R.diagonal,ye=0;yeoe?H[ye]=1/H[ye]:H[ye]=0;return C.mmul(Nt.diag(H).mmul(_.transpose()))}function ea(se){var oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:se,R=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};se=new Nt(se);var _=!1;if(typeof oe=="object"&&!Nt.isMatrix(oe)&&!y(oe)?(R=oe,oe=se,_=!0):oe=new Nt(oe),se.rows!==oe.rows)throw new TypeError("Both matrices must have the same number of rows");var C=R,H=C.center,ye=H===void 0?!0:H;ye&&(se=se.center("column"),_||(oe=oe.center("column")));for(var Ce=se.transpose().mmul(oe),_e=0;_e1&&arguments[1]!==void 0?arguments[1]:se,R=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};se=new Nt(se);var _=!1;if(typeof oe=="object"&&!Nt.isMatrix(oe)&&!y(oe)?(R=oe,oe=se,_=!0):oe=new Nt(oe),se.rows!==oe.rows)throw new TypeError("Both matrices must have the same number of rows");var C=R,H=C.center,ye=H===void 0?!0:H,Ce=C.scale,_e=Ce===void 0?!0:Ce;ye&&(se.center("column"),_||oe.center("column")),_e&&(se.scale("column"),_||oe.scale("column"));for(var Fe=se.standardDeviation("column",{unbiased:!0}),Mt=_?Fe:oe.standardDeviation("column",{unbiased:!0}),yt=se.transpose().mmul(oe),Ut=0;Ut1&&arguments[1]!==void 0?arguments[1]:{};(0,D.Z)(this,se);var _=R.assumeSymmetric,C=_===void 0?!1:_;if(oe=za.checkMatrix(oe),!oe.isSquare())throw new Error("Matrix is not a square matrix");if(oe.isEmpty())throw new Error("Matrix must be non-empty");var H=oe.columns,ye=new Nt(H,H),Ce=new Float64Array(H),_e=new Float64Array(H),Fe=oe,Mt,yt,Ut=!1;if(C?Ut=!0:Ut=oe.isSymmetric(),Ut){for(Mt=0;Mt0?H.set(ye,ye+1,_[ye]):_[ye]<0&&H.set(ye,ye-1,_[ye])}return H}}]),se}();function Un(se,oe,R,_){var C,H,ye,Ce,_e,Fe,Mt,yt;for(_e=0;_e0;Ce--){for(yt=0,ye=0,Fe=0;Fe0&&(H=-H),oe[Ce]=yt*H,ye=ye-C*H,R[Ce-1]=C-H,_e=0;_eFe){Jr=0;do{for(Jr=Jr+1,C=R[Fe],yt=(R[Fe+1]-C)/(2*oe[Fe]),Ut=Oa(yt,1),yt<0&&(Ut=-Ut),R[Fe]=oe[Fe]/(yt+Ut),R[Fe+1]=oe[Fe]*(yt+Ut),rr=R[Fe+1],H=C-R[Fe],ye=Fe+2;ye=Fe;ye--)for(pn=zr,zr=Zt,Sr=ir,C=Zt*oe[ye],H=Zt*yt,Ut=Oa(yt,oe[ye]),oe[ye+1]=ir*Ut,ir=oe[ye]/Ut,Zt=yt/Ut,yt=Zt*R[ye]-ir*C,R[ye+1]=H+ir*(Zt*C+ir*R[ye]),_e=0;_ejn*sa)}R[Fe]=R[Fe]+Wr,oe[Fe]=0}for(ye=0;ye=yt;Fe--)R[Fe]=oe.get(Fe,yt-1)/Ut,_e+=R[Fe]*R[Fe];for(Ce=Math.sqrt(_e),R[yt]>0&&(Ce=-Ce),_e=_e-R[yt]*Ce,R[yt]=R[yt]-Ce,Mt=yt;Mt=yt;Fe--)ye+=R[Fe]*oe.get(Fe,Mt);for(ye=ye/_e,Fe=yt;Fe<=H;Fe++)oe.set(Fe,Mt,oe.get(Fe,Mt)-ye*R[Fe])}for(Fe=0;Fe<=H;Fe++){for(ye=0,Mt=H;Mt>=yt;Mt--)ye+=R[Mt]*oe.get(Fe,Mt);for(ye=ye/_e,Mt=yt;Mt<=H;Mt++)oe.set(Fe,Mt,oe.get(Fe,Mt)-ye*R[Mt])}R[yt]=Ut*R[yt],oe.set(yt,yt-1,Ut*Ce)}}for(Fe=0;Fe=C+1;yt--)if(oe.get(yt,yt-1)!==0){for(Fe=yt+1;Fe<=H;Fe++)R[Fe]=oe.get(Fe,yt-1);for(Mt=yt;Mt<=H;Mt++){for(Ce=0,Fe=yt;Fe<=H;Fe++)Ce+=R[Fe]*_.get(Fe,Mt);for(Ce=Ce/R[yt]/oe.get(yt,yt-1),Fe=yt;Fe<=H;Fe++)_.set(Fe,Mt,_.get(Fe,Mt)+Ce*R[Fe])}}}function pa(se,oe,R,_,C){var H=se-1,ye=0,Ce=se-1,_e=Number.EPSILON,Fe=0,Mt=0,yt=0,Ut=0,rr=0,Zt=0,zr=0,pn=0,Bt,ir,Sr,Jr,Wr,sa,jn,cn,_n,ua,mn,Je,ke,et,bt;for(Bt=0;BtCe)&&(R[Bt]=C.get(Bt,Bt),oe[Bt]=0),ir=Math.max(Bt-1,0);ir=ye;){for(Jr=H;Jr>ye&&(Zt=Math.abs(C.get(Jr-1,Jr-1))+Math.abs(C.get(Jr,Jr)),Zt===0&&(Zt=Mt),!(Math.abs(C.get(Jr,Jr-1))<_e*Zt));)Jr--;if(Jr===H)C.set(H,H,C.get(H,H)+Fe),R[H]=C.get(H,H),oe[H]=0,H--,pn=0;else if(Jr===H-1){if(jn=C.get(H,H-1)*C.get(H-1,H),yt=(C.get(H-1,H-1)-C.get(H,H))/2,Ut=yt*yt+jn,zr=Math.sqrt(Math.abs(Ut)),C.set(H,H,C.get(H,H)+Fe),C.set(H-1,H-1,C.get(H-1,H-1)+Fe),cn=C.get(H,H),Ut>=0){for(zr=yt>=0?yt+zr:yt-zr,R[H-1]=cn+zr,R[H]=R[H-1],zr!==0&&(R[H]=cn-jn/zr),oe[H-1]=0,oe[H]=0,cn=C.get(H,H-1),Zt=Math.abs(cn)+Math.abs(zr),yt=cn/Zt,Ut=zr/Zt,rr=Math.sqrt(yt*yt+Ut*Ut),yt=yt/rr,Ut=Ut/rr,ir=H-1;ir0)){for(Zt=Math.sqrt(Zt),_n=Jr&&(zr=C.get(Wr,Wr),rr=cn-zr,Zt=_n-zr,yt=(rr*Zt-jn)/C.get(Wr+1,Wr)+C.get(Wr,Wr+1),Ut=C.get(Wr+1,Wr+1)-zr-rr-Zt,rr=C.get(Wr+2,Wr+1),Zt=Math.abs(yt)+Math.abs(Ut)+Math.abs(rr),yt=yt/Zt,Ut=Ut/Zt,rr=rr/Zt,!(Wr===Jr||Math.abs(C.get(Wr,Wr-1))*(Math.abs(Ut)+Math.abs(rr))<_e*(Math.abs(yt)*(Math.abs(C.get(Wr-1,Wr-1))+Math.abs(zr)+Math.abs(C.get(Wr+1,Wr+1))))));)Wr--;for(Bt=Wr+2;Bt<=H;Bt++)C.set(Bt,Bt-2,0),Bt>Wr+2&&C.set(Bt,Bt-3,0);for(Sr=Wr;Sr<=H-1&&(et=Sr!==H-1,Sr!==Wr&&(yt=C.get(Sr,Sr-1),Ut=C.get(Sr+1,Sr-1),rr=et?C.get(Sr+2,Sr-1):0,cn=Math.abs(yt)+Math.abs(Ut)+Math.abs(rr),cn!==0&&(yt=yt/cn,Ut=Ut/cn,rr=rr/cn)),cn!==0);Sr++)if(Zt=Math.sqrt(yt*yt+Ut*Ut+rr*rr),yt<0&&(Zt=-Zt),Zt!==0){for(Sr!==Wr?C.set(Sr,Sr-1,-Zt*cn):Jr!==Wr&&C.set(Sr,Sr-1,-C.get(Sr,Sr-1)),yt=yt+Zt,cn=yt/Zt,_n=Ut/Zt,zr=rr/Zt,Ut=Ut/yt,rr=rr/yt,ir=Sr;ir=0;H--)if(yt=R[H],Ut=oe[H],Ut===0)for(Jr=H,C.set(H,H,1),Bt=H-1;Bt>=0;Bt--){for(jn=C.get(Bt,Bt)-yt,rr=0,ir=Jr;ir<=H;ir++)rr=rr+C.get(Bt,ir)*C.get(ir,H);if(oe[Bt]<0)zr=jn,Zt=rr;else if(Jr=Bt,oe[Bt]===0?C.set(Bt,H,jn!==0?-rr/jn:-rr/(_e*Mt)):(cn=C.get(Bt,Bt+1),_n=C.get(Bt+1,Bt),Ut=(R[Bt]-yt)*(R[Bt]-yt)+oe[Bt]*oe[Bt],sa=(cn*Zt-zr*rr)/Ut,C.set(Bt,H,sa),C.set(Bt+1,H,Math.abs(cn)>Math.abs(zr)?(-rr-jn*sa)/cn:(-Zt-_n*sa)/zr)),sa=Math.abs(C.get(Bt,H)),_e*sa*sa>1)for(ir=Bt;ir<=H;ir++)C.set(ir,H,C.get(ir,H)/sa)}else if(Ut<0)for(Jr=H-1,Math.abs(C.get(H,H-1))>Math.abs(C.get(H-1,H))?(C.set(H-1,H-1,Ut/C.get(H,H-1)),C.set(H-1,H,-(C.get(H,H)-yt)/C.get(H,H-1))):(bt=Q(0,-C.get(H-1,H),C.get(H-1,H-1)-yt,Ut),C.set(H-1,H-1,bt[0]),C.set(H-1,H,bt[1])),C.set(H,H-1,0),C.set(H,H,1),Bt=H-2;Bt>=0;Bt--){for(ua=0,mn=0,ir=Jr;ir<=H;ir++)ua=ua+C.get(Bt,ir)*C.get(ir,H-1),mn=mn+C.get(Bt,ir)*C.get(ir,H);if(jn=C.get(Bt,Bt)-yt,oe[Bt]<0)zr=jn,rr=ua,Zt=mn;else if(Jr=Bt,oe[Bt]===0?(bt=Q(-ua,-mn,jn,Ut),C.set(Bt,H-1,bt[0]),C.set(Bt,H,bt[1])):(cn=C.get(Bt,Bt+1),_n=C.get(Bt+1,Bt),Je=(R[Bt]-yt)*(R[Bt]-yt)+oe[Bt]*oe[Bt]-Ut*Ut,ke=(R[Bt]-yt)*2*Ut,Je===0&&ke===0&&(Je=_e*Mt*(Math.abs(jn)+Math.abs(Ut)+Math.abs(cn)+Math.abs(_n)+Math.abs(zr))),bt=Q(cn*rr-zr*ua+Ut*mn,cn*Zt-zr*mn-Ut*ua,Je,ke),C.set(Bt,H-1,bt[0]),C.set(Bt,H,bt[1]),Math.abs(cn)>Math.abs(zr)+Math.abs(Ut)?(C.set(Bt+1,H-1,(-ua-jn*C.get(Bt,H-1)+Ut*C.get(Bt,H))/cn),C.set(Bt+1,H,(-mn-jn*C.get(Bt,H)-Ut*C.get(Bt,H-1))/cn)):(bt=Q(-rr-_n*C.get(Bt,H-1),-Zt-_n*C.get(Bt,H),zr,Ut),C.set(Bt+1,H-1,bt[0]),C.set(Bt+1,H,bt[1]))),sa=Math.max(Math.abs(C.get(Bt,H-1)),Math.abs(C.get(Bt,H))),_e*sa*sa>1)for(ir=Bt;ir<=H;ir++)C.set(ir,H-1,C.get(ir,H-1)/sa),C.set(ir,H,C.get(ir,H)/sa)}for(Bt=0;BtCe)for(ir=Bt;ir=ye;ir--)for(Bt=ye;Bt<=Ce;Bt++){for(zr=0,Sr=ye;Sr<=Math.min(ir,Ce);Sr++)zr=zr+_.get(Bt,Sr)*C.get(Sr,ir);_.set(Bt,ir,zr)}}}function Q(se,oe,R,_){var C,H;return Math.abs(R)>Math.abs(_)?(C=_/R,H=R+C*_,[(se+C*oe)/H,(oe-C*se)/H]):(C=R/_,H=_+C*R,[(C*se+oe)/H,(C*oe-se)/H])}var Gt=function(){function se(oe){if((0,D.Z)(this,se),oe=za.checkMatrix(oe),!oe.isSymmetric())throw new Error("Matrix is not symmetric");var R=oe,_=R.rows,C=new Nt(_,_),H=!0,ye,Ce,_e;for(Ce=0;Ce<_;Ce++){var Fe=0;for(_e=0;_e0,C.set(Ce,Ce,Math.sqrt(Math.max(Fe,0))),_e=Ce+1;_e<_;_e++)C.set(Ce,_e,0)}this.L=C,this.positiveDefinite=Boolean(H)}return(0,P.Z)(se,[{key:"isPositiveDefinite",value:function(){return this.positiveDefinite}},{key:"solve",value:function(R){R=za.checkMatrix(R);var _=this.L,C=_.rows;if(R.rows!==C)throw new Error("Matrix dimensions do not match");if(this.isPositiveDefinite()===!1)throw new Error("Matrix is not positive definite");var H=R.columns,ye=R.clone(),Ce,_e,Fe;for(Fe=0;Fe=0;Fe--)for(_e=0;_e1&&arguments[1]!==void 0?arguments[1]:{};(0,D.Z)(this,se),oe=za.checkMatrix(oe);var _=R.Y,C=R.scaleScores,H=C===void 0?!1:C,ye=R.maxIterations,Ce=ye===void 0?1e3:ye,_e=R.terminationCriteria,Fe=_e===void 0?1e-10:_e,Mt;if(_){if(y(_)&&typeof _[0]=="number"?_=Nt.columnVector(_):_=za.checkMatrix(_),_.rows!==oe.rows)throw new Error("Y should have the same number of rows as X");Mt=_.getColumnVector(0)}else Mt=oe.getColumnVector(0);for(var yt=1,Ut,rr,Zt,zr,pn=0;pnFe;pn++)Zt=oe.transpose().mmul(Mt).div(Mt.transpose().mmul(Mt).get(0,0)),Zt=Zt.div(Zt.norm()),Ut=oe.mmul(Zt).div(Zt.transpose().mmul(Zt).get(0,0)),pn>0&&(yt=Ut.clone().sub(zr).pow(2).sum()),zr=Ut.clone(),_?(rr=_.transpose().mmul(Ut).div(Ut.transpose().mmul(Ut).get(0,0)),rr=rr.div(rr.norm()),Mt=_.mmul(rr).div(rr.transpose().mmul(rr).get(0,0))):Mt=Ut;if(_){var Bt=oe.transpose().mmul(Ut).div(Ut.transpose().mmul(Ut).get(0,0));Bt=Bt.div(Bt.norm());var ir=oe.clone().sub(Ut.clone().mmul(Bt.transpose())),Sr=Mt.transpose().mmul(Ut).div(Ut.transpose().mmul(Ut).get(0,0)),Jr=_.clone().sub(Ut.clone().mulS(Sr.get(0,0)).mmul(rr.transpose()));this.t=Ut,this.p=Bt.transpose(),this.w=Zt.transpose(),this.q=rr,this.u=Mt,this.s=Ut.transpose().mmul(Ut),this.xResidual=ir,this.yResidual=Jr,this.betas=Sr}else this.w=Zt.transpose(),this.s=Ut.transpose().mmul(Ut).sqrt(),H?this.t=Ut.clone().div(this.s.get(0,0)):this.t=Ut,this.xResidual=oe.sub(Ut.mmul(Zt.transpose()))})},8874:function(hr){"use strict";hr.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},19818:function(hr,X,W){var U=W(8874),Y=W(86851),B=Object.hasOwnProperty,D=Object.create(null);for(var P in U)B.call(U,P)&&(D[U[P]]=P);var N=hr.exports={to:{},get:{}};N.get=function(g){var p=g.substring(0,3).toLowerCase(),h,x;switch(p){case"hsl":h=N.get.hsl(g),x="hsl";break;case"hwb":h=N.get.hwb(g),x="hwb";break;default:h=N.get.rgb(g),x="rgb";break}return h?{model:x,value:h}:null},N.get.rgb=function(g){if(!g)return null;var p=/^#([a-f0-9]{3,4})$/i,h=/^#([a-f0-9]{6})([a-f0-9]{2})?$/i,x=/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/,m=/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/,b=/^(\w+)$/,A=[0,0,0,1],k,G,T;if(k=g.match(h)){for(T=k[2],k=k[1],G=0;G<3;G++){var M=G*2;A[G]=parseInt(k.slice(M,M+2),16)}T&&(A[3]=parseInt(T,16)/255)}else if(k=g.match(p)){for(k=k[1],T=k[3],G=0;G<3;G++)A[G]=parseInt(k[G]+k[G],16);T&&(A[3]=parseInt(T+T,16)/255)}else if(k=g.match(x)){for(G=0;G<3;G++)A[G]=parseInt(k[G+1],0);k[4]&&(k[5]?A[3]=parseFloat(k[4])*.01:A[3]=parseFloat(k[4]))}else if(k=g.match(m)){for(G=0;G<3;G++)A[G]=Math.round(parseFloat(k[G+1])*2.55);k[4]&&(k[5]?A[3]=parseFloat(k[4])*.01:A[3]=parseFloat(k[4]))}else return(k=g.match(b))?k[1]==="transparent"?[0,0,0,0]:B.call(U,k[1])?(A=U[k[1]],A[3]=1,A):null:null;for(G=0;G<3;G++)A[G]=y(A[G],0,255);return A[3]=y(A[3],0,1),A},N.get.hsl=function(g){if(!g)return null;var p=/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d\.]+)%\s*,?\s*([+-]?[\d\.]+)%\s*(?:[,|\/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/,h=g.match(p);if(h){var x=parseFloat(h[4]),m=(parseFloat(h[1])%360+360)%360,b=y(parseFloat(h[2]),0,100),A=y(parseFloat(h[3]),0,100),k=y(isNaN(x)?1:x,0,1);return[m,b,A,k]}return null},N.get.hwb=function(g){if(!g)return null;var p=/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/,h=g.match(p);if(h){var x=parseFloat(h[4]),m=(parseFloat(h[1])%360+360)%360,b=y(parseFloat(h[2]),0,100),A=y(parseFloat(h[3]),0,100),k=y(isNaN(x)?1:x,0,1);return[m,b,A,k]}return null},N.to.hex=function(){var g=Y(arguments);return"#"+E(g[0])+E(g[1])+E(g[2])+(g[3]<1?E(Math.round(g[3]*255)):"")},N.to.rgb=function(){var g=Y(arguments);return g.length<4||g[3]===1?"rgb("+Math.round(g[0])+", "+Math.round(g[1])+", "+Math.round(g[2])+")":"rgba("+Math.round(g[0])+", "+Math.round(g[1])+", "+Math.round(g[2])+", "+g[3]+")"},N.to.rgb.percent=function(){var g=Y(arguments),p=Math.round(g[0]/255*100),h=Math.round(g[1]/255*100),x=Math.round(g[2]/255*100);return g.length<4||g[3]===1?"rgb("+p+"%, "+h+"%, "+x+"%)":"rgba("+p+"%, "+h+"%, "+x+"%, "+g[3]+")"},N.to.hsl=function(){var g=Y(arguments);return g.length<4||g[3]===1?"hsl("+g[0]+", "+g[1]+"%, "+g[2]+"%)":"hsla("+g[0]+", "+g[1]+"%, "+g[2]+"%, "+g[3]+")"},N.to.hwb=function(){var g=Y(arguments),p="";return g.length>=4&&g[3]!==1&&(p=", "+g[3]),"hwb("+g[0]+", "+g[1]+"%, "+g[2]+"%"+p+")"},N.to.keyword=function(g){return D[g.slice(0,3)]};function y(g,p,h){return Math.min(Math.max(p,g),h)}function E(g){var p=Math.round(g).toString(16).toUpperCase();return p.length<2?"0"+p:p}},6767:function(hr,X,W){"use strict";var U=W(19818),Y=W(80978),B=[].slice,D=["keyword","gray","hex"],P={};Object.keys(Y).forEach(function(b){P[B.call(Y[b].labels).sort().join("")]=b});var N={};function y(b,A){if(!(this instanceof y))return new y(b,A);if(A&&A in D&&(A=null),A&&!(A in Y))throw new Error("Unknown model: "+A);var k,G;if(b==null)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(b instanceof y)this.model=b.model,this.color=b.color.slice(),this.valpha=b.valpha;else if(typeof b=="string"){var T=U.get(b);if(T===null)throw new Error("Unable to parse color from string: "+b);this.model=T.model,G=Y[this.model].channels,this.color=T.value.slice(0,G),this.valpha=typeof T.value[G]=="number"?T.value[G]:1}else if(b.length){this.model=A||"rgb",G=Y[this.model].channels;var M=B.call(b,0,G);this.color=m(M,G),this.valpha=typeof b[G]=="number"?b[G]:1}else if(typeof b=="number")b&=16777215,this.model="rgb",this.color=[b>>16&255,b>>8&255,b&255],this.valpha=1;else{this.valpha=1;var V=Object.keys(b);"alpha"in b&&(V.splice(V.indexOf("alpha"),1),this.valpha=typeof b.alpha=="number"?b.alpha:0);var j=V.sort().join("");if(!(j in P))throw new Error("Unable to parse color from object: "+JSON.stringify(b));this.model=P[j];var $=Y[this.model].labels,q=[];for(k=0;k<$.length;k++)q.push(b[$[k]]);this.color=m(q)}if(N[this.model])for(G=Y[this.model].channels,k=0;kk?(A+.05)/(k+.05):(k+.05)/(A+.05)},level:function(b){var A=this.contrast(b);return A>=7.1?"AAA":A>=4.5?"AA":""},isDark:function(){var b=this.rgb().color,A=(b[0]*299+b[1]*587+b[2]*114)/1e3;return A<128},isLight:function(){return!this.isDark()},negate:function(){for(var b=this.rgb(),A=0;A<3;A++)b.color[A]=255-b.color[A];return b},lighten:function(b){var A=this.hsl();return A.color[2]+=A.color[2]*b,A},darken:function(b){var A=this.hsl();return A.color[2]-=A.color[2]*b,A},saturate:function(b){var A=this.hsl();return A.color[1]+=A.color[1]*b,A},desaturate:function(b){var A=this.hsl();return A.color[1]-=A.color[1]*b,A},whiten:function(b){var A=this.hwb();return A.color[1]+=A.color[1]*b,A},blacken:function(b){var A=this.hwb();return A.color[2]+=A.color[2]*b,A},grayscale:function(){var b=this.rgb().color,A=b[0]*.3+b[1]*.59+b[2]*.11;return y.rgb(A,A,A)},fade:function(b){return this.alpha(this.valpha-this.valpha*b)},opaquer:function(b){return this.alpha(this.valpha+this.valpha*b)},rotate:function(b){var A=this.hsl(),k=A.color[0];return k=(k+b)%360,k=k<0?360+k:k,A.color[0]=k,A},mix:function(b,A){if(!b||!b.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof b);var k=b.rgb(),G=this.rgb(),T=A===void 0?.5:A,M=2*T-1,V=k.alpha()-G.alpha(),j=((M*V==-1?M:(M+V)/(1+M*V))+1)/2,$=1-j;return y.rgb(j*k.red()+$*G.red(),j*k.green()+$*G.green(),j*k.blue()+$*G.blue(),k.alpha()*T+G.alpha()*(1-T))}},Object.keys(Y).forEach(function(b){if(D.indexOf(b)===-1){var A=Y[b].channels;y.prototype[b]=function(){if(this.model===b)return new y(this);if(arguments.length)return new y(arguments,b);var k=typeof arguments[A]=="number"?A:this.valpha;return new y(x(Y[this.model][b].raw(this.color)).concat(k),b)},y[b]=function(k){return typeof k=="number"&&(k=m(B.call(arguments),A)),new y(k,b)}}});function E(b,A){return Number(b.toFixed(A))}function g(b){return function(A){return E(A,b)}}function p(b,A,k){return b=Array.isArray(b)?b:[b],b.forEach(function(G){(N[G]||(N[G]=[]))[A]=k}),b=b[0],function(G){var T;return arguments.length?(k&&(G=k(G)),T=this[b](),T.color[A]=G,T):(T=this[b]().color[A],k&&(T=k(T)),T)}}function h(b){return function(A){return Math.max(0,Math.min(b,A))}}function x(b){return Array.isArray(b)?b:[b]}function m(b,A){for(var k=0;k1&&(m-=1)),[m*360,b*100,T*100]},D.rgb.hwb=function(g){var p=g[0],h=g[1],x=g[2],m=D.rgb.hsl(g)[0],b=1/255*Math.min(p,Math.min(h,x));return x=1-1/255*Math.max(p,Math.max(h,x)),[m,b*100,x*100]},D.rgb.cmyk=function(g){var p=g[0]/255,h=g[1]/255,x=g[2]/255,m,b,A,k;return k=Math.min(1-p,1-h,1-x),m=(1-p-k)/(1-k)||0,b=(1-h-k)/(1-k)||0,A=(1-x-k)/(1-k)||0,[m*100,b*100,A*100,k*100]};function E(g,p){return Math.pow(g[0]-p[0],2)+Math.pow(g[1]-p[1],2)+Math.pow(g[2]-p[2],2)}D.rgb.keyword=function(g){var p=Y[g];if(p)return p;var h=Infinity,x;for(var m in U)if(U.hasOwnProperty(m)){var b=U[m],A=E(g,b);A.04045?Math.pow((p+.055)/1.055,2.4):p/12.92,h=h>.04045?Math.pow((h+.055)/1.055,2.4):h/12.92,x=x>.04045?Math.pow((x+.055)/1.055,2.4):x/12.92;var m=p*.4124+h*.3576+x*.1805,b=p*.2126+h*.7152+x*.0722,A=p*.0193+h*.1192+x*.9505;return[m*100,b*100,A*100]},D.rgb.lab=function(g){var p=D.rgb.xyz(g),h=p[0],x=p[1],m=p[2],b,A,k;return h/=95.047,x/=100,m/=108.883,h=h>.008856?Math.pow(h,1/3):7.787*h+16/116,x=x>.008856?Math.pow(x,1/3):7.787*x+16/116,m=m>.008856?Math.pow(m,1/3):7.787*m+16/116,b=116*x-16,A=500*(h-x),k=200*(x-m),[b,A,k]},D.hsl.rgb=function(g){var p=g[0]/360,h=g[1]/100,x=g[2]/100,m,b,A,k,G;if(h===0)return G=x*255,[G,G,G];x<.5?b=x*(1+h):b=x+h-x*h,m=2*x-b,k=[0,0,0];for(var T=0;T<3;T++)A=p+1/3*-(T-1),A<0&&A++,A>1&&A--,6*A<1?G=m+(b-m)*6*A:2*A<1?G=b:3*A<2?G=m+(b-m)*(2/3-A)*6:G=m,k[T]=G*255;return k},D.hsl.hsv=function(g){var p=g[0],h=g[1]/100,x=g[2]/100,m=h,b=Math.max(x,.01),A,k;return x*=2,h*=x<=1?x:2-x,m*=b<=1?b:2-b,k=(x+h)/2,A=x===0?2*m/(b+m):2*h/(x+h),[p,A*100,k*100]},D.hsv.rgb=function(g){var p=g[0]/60,h=g[1]/100,x=g[2]/100,m=Math.floor(p)%6,b=p-Math.floor(p),A=255*x*(1-h),k=255*x*(1-h*b),G=255*x*(1-h*(1-b));switch(x*=255,m){case 0:return[x,G,A];case 1:return[k,x,A];case 2:return[A,x,G];case 3:return[A,k,x];case 4:return[G,A,x];case 5:return[x,A,k]}},D.hsv.hsl=function(g){var p=g[0],h=g[1]/100,x=g[2]/100,m=Math.max(x,.01),b,A,k;return k=(2-h)*x,b=(2-h)*m,A=h*m,A/=b<=1?b:2-b,A=A||0,k/=2,[p,A*100,k*100]},D.hwb.rgb=function(g){var p=g[0]/360,h=g[1]/100,x=g[2]/100,m=h+x,b,A,k,G;m>1&&(h/=m,x/=m),b=Math.floor(6*p),A=1-x,k=6*p-b,(b&1)!=0&&(k=1-k),G=h+k*(A-h);var T,M,V;switch(b){default:case 6:case 0:T=A,M=G,V=h;break;case 1:T=G,M=A,V=h;break;case 2:T=h,M=A,V=G;break;case 3:T=h,M=G,V=A;break;case 4:T=G,M=h,V=A;break;case 5:T=A,M=h,V=G;break}return[T*255,M*255,V*255]},D.cmyk.rgb=function(g){var p=g[0]/100,h=g[1]/100,x=g[2]/100,m=g[3]/100,b,A,k;return b=1-Math.min(1,p*(1-m)+m),A=1-Math.min(1,h*(1-m)+m),k=1-Math.min(1,x*(1-m)+m),[b*255,A*255,k*255]},D.xyz.rgb=function(g){var p=g[0]/100,h=g[1]/100,x=g[2]/100,m,b,A;return m=p*3.2406+h*-1.5372+x*-.4986,b=p*-.9689+h*1.8758+x*.0415,A=p*.0557+h*-.204+x*1.057,m=m>.0031308?1.055*Math.pow(m,1/2.4)-.055:m*12.92,b=b>.0031308?1.055*Math.pow(b,1/2.4)-.055:b*12.92,A=A>.0031308?1.055*Math.pow(A,1/2.4)-.055:A*12.92,m=Math.min(Math.max(0,m),1),b=Math.min(Math.max(0,b),1),A=Math.min(Math.max(0,A),1),[m*255,b*255,A*255]},D.xyz.lab=function(g){var p=g[0],h=g[1],x=g[2],m,b,A;return p/=95.047,h/=100,x/=108.883,p=p>.008856?Math.pow(p,1/3):7.787*p+16/116,h=h>.008856?Math.pow(h,1/3):7.787*h+16/116,x=x>.008856?Math.pow(x,1/3):7.787*x+16/116,m=116*h-16,b=500*(p-h),A=200*(h-x),[m,b,A]},D.lab.xyz=function(g){var p=g[0],h=g[1],x=g[2],m,b,A;b=(p+16)/116,m=h/500+b,A=b-x/200;var k=Math.pow(b,3),G=Math.pow(m,3),T=Math.pow(A,3);return b=k>.008856?k:(b-16/116)/7.787,m=G>.008856?G:(m-16/116)/7.787,A=T>.008856?T:(A-16/116)/7.787,m*=95.047,b*=100,A*=108.883,[m,b,A]},D.lab.lch=function(g){var p=g[0],h=g[1],x=g[2],m,b,A;return m=Math.atan2(x,h),b=m*360/2/Math.PI,b<0&&(b+=360),A=Math.sqrt(h*h+x*x),[p,A,b]},D.lch.lab=function(g){var p=g[0],h=g[1],x=g[2],m,b,A;return A=x/360*2*Math.PI,m=h*Math.cos(A),b=h*Math.sin(A),[p,m,b]},D.rgb.ansi16=function(g){var p=g[0],h=g[1],x=g[2],m=1 in arguments?arguments[1]:D.rgb.hsv(g)[2];if(m=Math.round(m/50),m===0)return 30;var b=30+(Math.round(x/255)<<2|Math.round(h/255)<<1|Math.round(p/255));return m===2&&(b+=60),b},D.hsv.ansi16=function(g){return D.rgb.ansi16(D.hsv.rgb(g),g[2])},D.rgb.ansi256=function(g){var p=g[0],h=g[1],x=g[2];if(p===h&&h===x)return p<8?16:p>248?231:Math.round((p-8)/247*24)+232;var m=16+36*Math.round(p/255*5)+6*Math.round(h/255*5)+Math.round(x/255*5);return m},D.ansi16.rgb=function(g){var p=g%10;if(p===0||p===7)return g>50&&(p+=3.5),p=p/10.5*255,[p,p,p];var h=(~~(g>50)+1)*.5,x=(p&1)*h*255,m=(p>>1&1)*h*255,b=(p>>2&1)*h*255;return[x,m,b]},D.ansi256.rgb=function(g){if(g>=232){var p=(g-232)*10+8;return[p,p,p]}g-=16;var h,x=Math.floor(g/36)/5*255,m=Math.floor((h=g%36)/6)/5*255,b=h%6/5*255;return[x,m,b]},D.rgb.hex=function(g){var p=((Math.round(g[0])&255)<<16)+((Math.round(g[1])&255)<<8)+(Math.round(g[2])&255),h=p.toString(16).toUpperCase();return"000000".substring(h.length)+h},D.hex.rgb=function(g){var p=g.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!p)return[0,0,0];var h=p[0];p[0].length===3&&(h=h.split("").map(function(k){return k+k}).join(""));var x=parseInt(h,16),m=x>>16&255,b=x>>8&255,A=x&255;return[m,b,A]},D.rgb.hcg=function(g){var p=g[0]/255,h=g[1]/255,x=g[2]/255,m=Math.max(Math.max(p,h),x),b=Math.min(Math.min(p,h),x),A=m-b,k,G;return A<1?k=b/(1-A):k=0,A<=0?G=0:m===p?G=(h-x)/A%6:m===h?G=2+(x-p)/A:G=4+(p-h)/A+4,G/=6,G%=1,[G*360,A*100,k*100]},D.hsl.hcg=function(g){var p=g[1]/100,h=g[2]/100,x=1,m=0;return h<.5?x=2*p*h:x=2*p*(1-h),x<1&&(m=(h-.5*x)/(1-x)),[g[0],x*100,m*100]},D.hsv.hcg=function(g){var p=g[1]/100,h=g[2]/100,x=p*h,m=0;return x<1&&(m=(h-x)/(1-x)),[g[0],x*100,m*100]},D.hcg.rgb=function(g){var p=g[0]/360,h=g[1]/100,x=g[2]/100;if(h===0)return[x*255,x*255,x*255];var m=[0,0,0],b=p%1*6,A=b%1,k=1-A,G=0;switch(Math.floor(b)){case 0:m[0]=1,m[1]=A,m[2]=0;break;case 1:m[0]=k,m[1]=1,m[2]=0;break;case 2:m[0]=0,m[1]=1,m[2]=A;break;case 3:m[0]=0,m[1]=k,m[2]=1;break;case 4:m[0]=A,m[1]=0,m[2]=1;break;default:m[0]=1,m[1]=0,m[2]=k}return G=(1-h)*x,[(h*m[0]+G)*255,(h*m[1]+G)*255,(h*m[2]+G)*255]},D.hcg.hsv=function(g){var p=g[1]/100,h=g[2]/100,x=p+h*(1-p),m=0;return x>0&&(m=p/x),[g[0],m*100,x*100]},D.hcg.hsl=function(g){var p=g[1]/100,h=g[2]/100,x=h*(1-p)+.5*p,m=0;return x>0&&x<.5?m=p/(2*x):x>=.5&&x<1&&(m=p/(2*(1-x))),[g[0],m*100,x*100]},D.hcg.hwb=function(g){var p=g[1]/100,h=g[2]/100,x=p+h*(1-p);return[g[0],(x-p)*100,(1-x)*100]},D.hwb.hcg=function(g){var p=g[1]/100,h=g[2]/100,x=1-h,m=x-p,b=0;return m<1&&(b=(x-m)/(1-m)),[g[0],m*100,b*100]},D.apple.rgb=function(g){return[g[0]/65535*255,g[1]/65535*255,g[2]/65535*255]},D.rgb.apple=function(g){return[g[0]/255*65535,g[1]/255*65535,g[2]/255*65535]},D.gray.rgb=function(g){return[g[0]/100*255,g[0]/100*255,g[0]/100*255]},D.gray.hsl=D.gray.hsv=function(g){return[0,0,g[0]]},D.gray.hwb=function(g){return[0,100,g[0]]},D.gray.cmyk=function(g){return[0,0,0,g[0]]},D.gray.lab=function(g){return[g[0],0,0]},D.gray.hex=function(g){var p=Math.round(g[0]/100*255)&255,h=(p<<16)+(p<<8)+p,x=h.toString(16).toUpperCase();return"000000".substring(x.length)+x},D.rgb.gray=function(g){var p=(g[0]+g[1]+g[2])/3;return[p/255*100]}},80978:function(hr,X,W){var U=W(12956),Y=W(87774),B={},D=Object.keys(U);function P(y){var E=function(g){return g==null?g:(arguments.length>1&&(g=Array.prototype.slice.call(arguments)),y(g))};return"conversion"in y&&(E.conversion=y.conversion),E}function N(y){var E=function(g){if(g==null)return g;arguments.length>1&&(g=Array.prototype.slice.call(arguments));var p=y(g);if(typeof p=="object")for(var h=p.length,x=0;x=(be=(Oe+de)/2))?Oe=be:de=be,(Ke=ee>=(Ae=(Re+ve)/2))?Re=Ae:ve=Ae,ce=ge,!(ge=ge[_t=Ke<<1|Ue]))return ce[_t]=Le,q;if(Pe=+q._x.call(null,ge.data),Ve=+q._y.call(null,ge.data),te===Pe&&ee===Ve)return Le.next=ge,ce?ce[_t]=Le:q._root=Le,q;do ce=ce?ce[_t]=new Array(4):q._root=new Array(4),(Ue=te>=(be=(Oe+de)/2))?Oe=be:de=be,(Ke=ee>=(Ae=(Re+ve)/2))?Re=Ae:ve=Ae;while((_t=Ke<<1|Ue)==(Ct=(Ve>=Ae)<<1|Pe>=be));return ce[Ct]=ge,ce[_t]=Le,q}function B(q){var te,ee,ie=q.length,ce,ge,Le=new Array(ie),Oe=new Array(ie),Re=Infinity,de=Infinity,ve=-Infinity,be=-Infinity;for(ee=0;eeve&&(ve=ce),gebe&&(be=ge));if(Re>ve||de>be)return this;for(this.cover(Re,de).cover(ve,be),ee=0;eeq||q>=ce||ie>te||te>=ge;)switch(de=(teve||(Oe=Ve.y0)>be||(Re=Ve.x1)=_t)<<1|q>=Ke)&&(Ve=Ae[Ae.length-1],Ae[Ae.length-1]=Ae[Ae.length-1-Ue],Ae[Ae.length-1-Ue]=Ve)}else{var Ct=q-+this._x.call(null,Pe.data),He=te-+this._y.call(null,Pe.data),ht=Ct*Ct+He*He;if(ht=(Ae=(Le+Re)/2))?Le=Ae:Re=Ae,(Ue=be>=(Pe=(Oe+de)/2))?Oe=Pe:de=Pe,te=ee,!(ee=ee[Ke=Ue<<1|Ve]))return this;if(!ee.length)break;(te[Ke+1&3]||te[Ke+2&3]||te[Ke+3&3])&&(ie=te,_t=Ke)}for(;ee.data!==q;)if(ce=ee,!(ee=ee.next))return this;return(ge=ee.next)&&delete ee.next,ce?(ge?ce.next=ge:delete ce.next,this):te?(ge?te[Ke]=ge:delete te[Ke],(ee=te[0]||te[1]||te[2]||te[3])&&ee===(te[3]||te[2]||te[1]||te[0])&&!ee.length&&(ie?ie[_t]=ee:this._root=ee),this):(this._root=ge,this)}function p(q){for(var te=0,ee=q.length;te-1},M=function(d,S){var F=this.__data__,K=b(F,d);return K<0?(++this.size,F.push([d,S])):F[K][1]=S,this};function V(d){var S=-1,F=d==null?0:d.length;for(this.clear();++S-1&&d%1==0&&d-1&&d%1==0&&d<=9007199254740991},rr={};rr["[object Float32Array]"]=rr["[object Float64Array]"]=rr["[object Int8Array]"]=rr["[object Int16Array]"]=rr["[object Int32Array]"]=rr["[object Uint8Array]"]=rr["[object Uint8ClampedArray]"]=rr["[object Uint16Array]"]=rr["[object Uint32Array]"]=!0,rr["[object Arguments]"]=rr["[object Array]"]=rr["[object ArrayBuffer]"]=rr["[object Boolean]"]=rr["[object DataView]"]=rr["[object Date]"]=rr["[object Error]"]=rr["[object Function]"]=rr["[object Map]"]=rr["[object Number]"]=rr["[object Object]"]=rr["[object RegExp]"]=rr["[object Set]"]=rr["[object String]"]=rr["[object WeakMap]"]=!1;var Zt=function(d){return oe(d)&&Ut(d.length)&&!!rr[Ue(d)]},zr=function(d){return function(S){return d(S)}},pn=h(function(d,S){var F=S&&!S.nodeType&&S,K=F&&d&&!d.nodeType&&d,ae=K&&K.exports===F&&ie.process,fe=function(){try{var he=K&&K.require&&K.require("util").types;return he||ae&&ae.binding&&ae.binding("util")}catch(xe){}}();d.exports=fe}),Bt=pn&&pn.isTypedArray,ir=Bt?zr(Bt):Zt,Sr=Object.prototype.hasOwnProperty,Jr=function(d,S){var F=Ce(d),K=!F&&ye(d),ae=!F&&!K&&Fe(d),fe=!F&&!K&&!ae&&ir(d),he=F||K||ae||fe,xe=he?se(d.length,String):[],Te=xe.length;for(var Be in d)!S&&!Sr.call(d,Be)||he&&(Be=="length"||ae&&(Be=="offset"||Be=="parent")||fe&&(Be=="buffer"||Be=="byteLength"||Be=="byteOffset")||yt(Be,Te))||xe.push(Be);return xe},Wr=Object.prototype,sa=function(d){var S=d&&d.constructor;return d===(typeof S=="function"&&S.prototype||Wr)},jn=function(d,S){return function(F){return d(S(F))}},cn=jn(Object.keys,Object),_n=Object.prototype.hasOwnProperty,ua=function(d){if(!sa(d))return cn(d);var S=[];for(var F in Object(d))_n.call(d,F)&&F!="constructor"&&S.push(F);return S},mn=function(d){return d!=null&&Ut(d.length)&&!Ct(d)},Je=function(d){return mn(d)?Jr(d):ua(d)},ke=function(d,S){return d&&ct(S,Je(S),d)},et=function(d){var S=[];if(d!=null)for(var F in Object(d))S.push(F);return S},bt=Object.prototype.hasOwnProperty,vt=function(d){if(!Ke(d))return et(d);var S=sa(d),F=[];for(var K in d)(K!="constructor"||!S&&bt.call(d,K))&&F.push(K);return F},It=function(d){return mn(d)?Jr(d,!0):vt(d)},tr=function(d,S){return d&&ct(S,It(S),d)},Tr=h(function(d,S){var F=S&&!S.nodeType&&S,K=F&&d&&!d.nodeType&&d,ae=K&&K.exports===F?ge.Buffer:void 0,fe=ae?ae.allocUnsafe:void 0;d.exports=function(he,xe){if(xe)return he.slice();var Te=he.length,Be=fe?fe(Te):new he.constructor(Te);return he.copy(Be),Be}}),Vr=function(d,S){var F=-1,K=d.length;for(S||(S=Array(K));++Fxe))return!1;var Be=fe.get(d),Ze=fe.get(S);if(Be&&Ze)return Be==S&&Ze==d;var je=-1,lt=!0,kt=2&F?new Eo:void 0;for(fe.set(d,S),fe.set(S,d);++je0&&K(Te)?F>1?d(Te,F-1,K,ae,fe):Xa(fe,Te):ae||(fe[fe.length]=Te)}return fe},Li=function(d,S,F){switch(F.length){case 0:return d.call(S);case 1:return d.call(S,F[0]);case 2:return d.call(S,F[0],F[1]);case 3:return d.call(S,F[0],F[1],F[2])}return d.apply(S,F)},Ri=Math.max,wa=function(d,S,F){return S=Ri(S===void 0?d.length-1:S,0),function(){for(var K=arguments,ae=-1,fe=Ri(K.length-S,0),he=Array(fe);++ae0){if(++S>=800)return arguments[0]}else S=0;return d.apply(void 0,arguments)}}(Za),No=function(d,S){return ss(wa(d,S,so),d+"")},js=function(d,S,F,K){for(var ae=d.length,fe=F+(K?1:-1);K?fe--:++fe-1},kf=function(d,S,F){for(var K=-1,ae=d==null?0:d.length;++K=200){var Be=S?null:Rf(d);if(Be)return Oo(Be);he=!1,ae=Ao,Te=new Eo}else Te=S?[]:xe;e:for(;++Kfe){var he=ae;ae=fe,fe=he}return ae+""+fe+""+(en.isUndefined(K)?"\0":K)}function zf(d,S,F,K){var ae=""+S,fe=""+F;if(!d&&ae>fe){var he=ae;ae=fe,fe=he}var xe={v:ae,w:fe};return K&&(xe.name=K),xe}function Tu(d,S){return Zs(d,S.v,S.w,S.name)}_a.prototype._nodeCount=0,_a.prototype._edgeCount=0,_a.prototype.isDirected=function(){return this._isDirected},_a.prototype.isMultigraph=function(){return this._isMultigraph},_a.prototype.isCompound=function(){return this._isCompound},_a.prototype.setGraph=function(d){return this._label=d,this},_a.prototype.graph=function(){return this._label},_a.prototype.setDefaultNodeLabel=function(d){return en.isFunction(d)||(d=en.constant(d)),this._defaultNodeLabelFn=d,this},_a.prototype.nodeCount=function(){return this._nodeCount},_a.prototype.nodes=function(){return en.keys(this._nodes)},_a.prototype.sources=function(){var d=this;return en.filter(this.nodes(),function(S){return en.isEmpty(d._in[S])})},_a.prototype.sinks=function(){var d=this;return en.filter(this.nodes(),function(S){return en.isEmpty(d._out[S])})},_a.prototype.setNodes=function(d,S){var F=arguments,K=this;return en.each(d,function(ae){F.length>1?K.setNode(ae,S):K.setNode(ae)}),this},_a.prototype.setNode=function(d,S){return en.has(this._nodes,d)?(arguments.length>1&&(this._nodes[d]=S),this):(this._nodes[d]=arguments.length>1?S:this._defaultNodeLabelFn(d),this._isCompound&&(this._parent[d]="\0",this._children[d]={},this._children["\0"][d]=!0),this._in[d]={},this._preds[d]={},this._out[d]={},this._sucs[d]={},++this._nodeCount,this)},_a.prototype.node=function(d){return this._nodes[d]},_a.prototype.hasNode=function(d){return en.has(this._nodes,d)},_a.prototype.removeNode=function(d){var S=this;if(en.has(this._nodes,d)){var F=function(K){S.removeEdge(S._edgeObjs[K])};delete this._nodes[d],this._isCompound&&(this._removeFromParentsChildList(d),delete this._parent[d],en.each(this.children(d),function(K){S.setParent(K)}),delete this._children[d]),en.each(en.keys(this._in[d]),F),delete this._in[d],delete this._preds[d],en.each(en.keys(this._out[d]),F),delete this._out[d],delete this._sucs[d],--this._nodeCount}return this},_a.prototype.setParent=function(d,S){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(en.isUndefined(S))S="\0";else{for(var F=S+="";!en.isUndefined(F);F=this.parent(F))if(F===d)throw new Error("Setting "+S+" as parent of "+d+" would create a cycle");this.setNode(S)}return this.setNode(d),this._removeFromParentsChildList(d),this._parent[d]=S,this._children[S][d]=!0,this},_a.prototype._removeFromParentsChildList=function(d){delete this._children[this._parent[d]][d]},_a.prototype.parent=function(d){if(this._isCompound){var S=this._parent[d];if(S!=="\0")return S}},_a.prototype.children=function(d){if(en.isUndefined(d)&&(d="\0"),this._isCompound){var S=this._children[d];if(S)return en.keys(S)}else{if(d==="\0")return this.nodes();if(this.hasNode(d))return[]}},_a.prototype.predecessors=function(d){var S=this._preds[d];if(S)return en.keys(S)},_a.prototype.successors=function(d){var S=this._sucs[d];if(S)return en.keys(S)},_a.prototype.neighbors=function(d){var S=this.predecessors(d);if(S)return en.union(S,this.successors(d))},_a.prototype.isLeaf=function(d){return(this.isDirected()?this.successors(d):this.neighbors(d)).length===0},_a.prototype.filterNodes=function(d){var S=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});S.setGraph(this.graph());var F=this;en.each(this._nodes,function(fe,he){d(he)&&S.setNode(he,fe)}),en.each(this._edgeObjs,function(fe){S.hasNode(fe.v)&&S.hasNode(fe.w)&&S.setEdge(fe,F.edge(fe))});var K={};function ae(fe){var he=F.parent(fe);return he===void 0||S.hasNode(he)?(K[fe]=he,he):he in K?K[he]:ae(he)}return this._isCompound&&en.each(S.nodes(),function(fe){S.setParent(fe,ae(fe))}),S},_a.prototype.setDefaultEdgeLabel=function(d){return en.isFunction(d)||(d=en.constant(d)),this._defaultEdgeLabelFn=d,this},_a.prototype.edgeCount=function(){return this._edgeCount},_a.prototype.edges=function(){return en.values(this._edgeObjs)},_a.prototype.setPath=function(d,S){var F=this,K=arguments;return en.reduce(d,function(ae,fe){return K.length>1?F.setEdge(ae,fe,S):F.setEdge(ae,fe),fe}),this},_a.prototype.setEdge=function(){var d,S,F,K,ae=!1,fe=arguments[0];typeof fe=="object"&&fe!==null&&"v"in fe?(d=fe.v,S=fe.w,F=fe.name,arguments.length===2&&(K=arguments[1],ae=!0)):(d=fe,S=arguments[1],F=arguments[3],arguments.length>2&&(K=arguments[2],ae=!0)),d=""+d,S=""+S,en.isUndefined(F)||(F=""+F);var he=Zs(this._isDirected,d,S,F);if(en.has(this._edgeLabels,he))return ae&&(this._edgeLabels[he]=K),this;if(!en.isUndefined(F)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(d),this.setNode(S),this._edgeLabels[he]=ae?K:this._defaultEdgeLabelFn(d,S,F);var xe=zf(this._isDirected,d,S,F);return d=xe.v,S=xe.w,Object.freeze(xe),this._edgeObjs[he]=xe,Gf(this._preds[S],d),Gf(this._sucs[d],S),this._in[S][he]=xe,this._out[d][he]=xe,this._edgeCount++,this},_a.prototype.edge=function(d,S,F){var K=arguments.length===1?Tu(this._isDirected,arguments[0]):Zs(this._isDirected,d,S,F);return this._edgeLabels[K]},_a.prototype.hasEdge=function(d,S,F){var K=arguments.length===1?Tu(this._isDirected,arguments[0]):Zs(this._isDirected,d,S,F);return en.has(this._edgeLabels,K)},_a.prototype.removeEdge=function(d,S,F){var K=arguments.length===1?Tu(this._isDirected,arguments[0]):Zs(this._isDirected,d,S,F),ae=this._edgeObjs[K];return ae&&(d=ae.v,S=ae.w,delete this._edgeLabels[K],delete this._edgeObjs[K],Cu(this._preds[S],d),Cu(this._sucs[d],S),delete this._in[S][K],delete this._out[d][K],this._edgeCount--),this},_a.prototype.inEdges=function(d,S){var F=this._in[d];if(F){var K=en.values(F);return S?en.filter(K,function(ae){return ae.v===S}):K}},_a.prototype.outEdges=function(d,S){var F=this._out[d];if(F){var K=en.values(F);return S?en.filter(K,function(ae){return ae.w===S}):K}},_a.prototype.nodeEdges=function(d,S){var F=this.inEdges(d,S);if(F)return F.concat(this.outEdges(d,S))};var df={Graph:iu,version:"2.1.8"},Uf={write:function(d){var S={options:{directed:d.isDirected(),multigraph:d.isMultigraph(),compound:d.isCompound()},nodes:ou(d),edges:ts(d)};return en.isUndefined(d.graph())||(S.value=en.clone(d.graph())),S},read:function(d){var S=new iu(d.options).setGraph(d.value);return en.each(d.nodes,function(F){S.setNode(F.v,F.value),F.parent&&S.setParent(F.v,F.parent)}),en.each(d.edges,function(F){S.setEdge({v:F.v,w:F.w,name:F.name},F.value)}),S}};function ou(d){return en.map(d.nodes(),function(S){var F=d.node(S),K=d.parent(S),ae={v:S};return en.isUndefined(F)||(ae.value=F),en.isUndefined(K)||(ae.parent=K),ae})}function ts(d){return en.map(d.edges(),function(S){var F=d.edge(S),K={v:S.v,w:S.w};return en.isUndefined(S.name)||(K.name=S.name),en.isUndefined(F)||(K.value=F),K})}var ne=function(d){var S,F={},K=[];function ae(fe){en.has(F,fe)||(F[fe]=!0,S.push(fe),en.each(d.successors(fe),ae),en.each(d.predecessors(fe),ae))}return en.each(d.nodes(),function(fe){S=[],ae(fe),S.length&&K.push(S)}),K},pe=Me;function Me(){this._arr=[],this._keyIndices={}}Me.prototype.size=function(){return this._arr.length},Me.prototype.keys=function(){return this._arr.map(function(d){return d.key})},Me.prototype.has=function(d){return en.has(this._keyIndices,d)},Me.prototype.priority=function(d){var S=this._keyIndices[d];if(S!==void 0)return this._arr[S].priority},Me.prototype.min=function(){if(this.size()===0)throw new Error("Queue underflow");return this._arr[0].key},Me.prototype.add=function(d,S){var F=this._keyIndices;if(d=String(d),!en.has(F,d)){var K=this._arr,ae=K.length;return F[d]=ae,K.push({key:d,priority:S}),this._decrease(ae),!0}return!1},Me.prototype.removeMin=function(){this._swap(0,this._arr.length-1);var d=this._arr.pop();return delete this._keyIndices[d.key],this._heapify(0),d.key},Me.prototype.decrease=function(d,S){var F=this._keyIndices[d];if(S>this._arr[F].priority)throw new Error("New priority is greater than current priority. Key: "+d+" Old: "+this._arr[F].priority+" New: "+S);this._arr[F].priority=S,this._decrease(F)},Me.prototype._heapify=function(d){var S=this._arr,F=2*d,K=F+1,ae=d;F>1].priority0&&(Te=je.removeMin(),(Be=Ze[Te]).distance!==Number.POSITIVE_INFINITY);)xe(Te).forEach(lt);return Ze}(d,String(S),F||qe,K||function(ae){return d.outEdges(ae)})},qe=en.constant(1),Lt=function(d,S,F){return en.transform(d.nodes(),function(K,ae){K[ae]=Ge(d,ae,S,F)},{})},Pt=function(d){var S=0,F=[],K={},ae=[];function fe(he){var xe=K[he]={onStack:!0,lowlink:S,index:S++};if(F.push(he),d.successors(he).forEach(function(Ze){en.has(K,Ze)?K[Ze].onStack&&(xe.lowlink=Math.min(xe.lowlink,K[Ze].index)):(fe(Ze),xe.lowlink=Math.min(xe.lowlink,K[Ze].lowlink))}),xe.lowlink===xe.index){var Te,Be=[];do Te=F.pop(),K[Te].onStack=!1,Be.push(Te);while(he!==Te);ae.push(Be)}}return d.nodes().forEach(function(he){en.has(K,he)||fe(he)}),ae},sr=function(d){return en.filter(Pt(d),function(S){return S.length>1||S.length===1&&d.hasEdge(S[0],S[0])})},Ir=function(d,S,F){return function(K,ae,fe){var he={},xe=K.nodes();return xe.forEach(function(Te){he[Te]={},he[Te][Te]={distance:0},xe.forEach(function(Be){Te!==Be&&(he[Te][Be]={distance:Number.POSITIVE_INFINITY})}),fe(Te).forEach(function(Be){var Ze=Be.v===Te?Be.w:Be.v,je=ae(Be);he[Te][Ze]={distance:je,predecessor:Te}})}),xe.forEach(function(Te){var Be=he[Te];xe.forEach(function(Ze){var je=he[Ze];xe.forEach(function(lt){var kt=je[Te],pr=Be[lt],Wt=je[lt],Vt=kt.distance+pr.distance;Vt0;){if(F=fe.removeMin(),en.has(ae,F))K.setEdge(F,ae[F]);else{if(xe)throw new Error("Input graph is not connected: "+d);xe=!0}d.nodeEdges(F).forEach(he)}return K},tarjan:Pt,topsort:$r},version:df.version};try{Yn=Rn}catch(d){}Yn||(Yn=window.graphlib);var qn=Yn,wn=function(d){return oo(d,5)},Wn=function(d,S,F){if(!Ke(F))return!1;var K=typeof S;return!!(K=="number"?mn(F)&&yt(S,F.length):K=="string"&&S in F)&&m(F[S],d)},Hn=Object.prototype,Cn=Hn.hasOwnProperty,ga=No(function(d,S){d=Object(d);var F=-1,K=S.length,ae=K>2?S[2]:void 0;for(ae&&Wn(S[0],S[1],ae)&&(K=1);++F-1?ae[fe?S[he]:he]:void 0}},ui=/^\s+|\s+$/g,Ya=/^[-+]0x[0-9a-f]+$/i,Ba=/^0b[01]+$/i,fi=/^0o[0-7]+$/i,Di=parseInt,Ni=function(d){if(typeof d=="number")return d;if(hi(d))return NaN;if(Ke(d)){var S=typeof d.valueOf=="function"?d.valueOf():d;d=Ke(S)?S+"":S}if(typeof d!="string")return d===0?d:+d;d=d.replace(ui,"");var F=Ba.test(d);return F||fi.test(d)?Di(d.slice(2),F?2:8):Ya.test(d)?NaN:+d},Es=function(d){return d?(d=Ni(d))===Infinity||d===-Infinity?17976931348623157e292*(d<0?-1:1):d==d?d:0:d===0?d:0},Wf=function(d){var S=Es(d),F=S%1;return S==S?F?S-F:S:0},bs=Math.max,vf=ka(function(d,S,F){var K=d==null?0:d.length;if(!K)return-1;var ae=F==null?0:Wf(F);return ae<0&&(ae=bs(K+ae,0)),js(d,xo(S),ae)}),su=function(d){return(d==null?0:d.length)?wi(d,1):[]},xs=function(d,S){return d==null?d:as(d,Ji(S),It)},Zu=function(d){var S=d==null?0:d.length;return S?d[S-1]:void 0},lc=function(d,S){var F={};return S=xo(S),gs(d,function(K,ae,fe){pa(F,ae,S(K,ae,fe))}),F},Ku=function(d,S,F){for(var K=-1,ae=d.length;++KS},hf=function(d){return d&&d.length?Ku(d,so,$u):void 0},Ls=function(d,S,F){(F!==void 0&&!m(d[S],F)||F===void 0&&!(S in d))&&pa(d,S,F)},uu=Function.prototype,Qu=Object.prototype,Iu=uu.toString,gf=Qu.hasOwnProperty,ws=Iu.call(Object),fu=function(d){if(!oe(d)||Ue(d)!="[object Object]")return!1;var S=di(d);if(S===null)return!0;var F=gf.call(S,"constructor")&&S.constructor;return typeof F=="function"&&F instanceof F&&Iu.call(F)==ws},pf=function(d,S){if((S!=="constructor"||typeof d[S]!="function")&&S!="__proto__")return d[S]},yf=function(d){return ct(d,It(d))},wl=function(d,S,F,K,ae,fe,he){var xe=pf(d,F),Te=pf(S,F),Be=he.get(Te);if(Be)Ls(d,F,Be);else{var Ze=fe?fe(xe,Te,F+"",d,S,he):void 0,je=Ze===void 0;if(je){var lt=Ce(Te),kt=!lt&&Fe(Te),pr=!lt&&!kt&&ir(Te);Ze=Te,lt||kt||pr?Ce(xe)?Ze=xe:es(xe)?Ze=Vr(xe):kt?(je=!1,Ze=Tr(Te,!0)):pr?(je=!1,Ze=Qi(Te,!0)):Ze=[]:fu(Te)||ye(Te)?(Ze=xe,ye(xe)?Ze=yf(xe):Ke(xe)&&!Ct(xe)||(Ze=ao(Te))):je=!1}je&&(he.set(Te,Ze),ae(Ze,Te,K,fe,he),he.delete(Te)),Ls(d,F,Ze)}},Au=function d(S,F,K,ae,fe){S!==F&&as(F,function(he,xe){if(fe||(fe=new Un),Ke(he))wl(S,F,xe,K,d,ae,fe);else{var Te=ae?ae(pf(S,xe),he,xe+"",S,F,fe):void 0;Te===void 0&&(Te=he),Ls(S,xe,Te)}},It)},Ou=function(d){return No(function(S,F){var K=-1,ae=F.length,fe=ae>1?F[ae-1]:void 0,he=ae>2?F[2]:void 0;for(fe=d.length>3&&typeof fe=="function"?(ae--,fe):void 0,he&&Wn(F[0],F[1],he)&&(fe=ae<3?void 0:fe,ae=1),S=Object(S);++KS||fe&&he&&Te&&!xe&&!Be||K&&he&&Te||!F&&Te||!ae)return 1;if(!K&&!fe&&!Be&&d=xe?Te:Te*(F[K]=="desc"?-1:1)}return d.index-S.index},mc=function(d,S,F){S=S.length?Do(S,function(fe){return Ce(fe)?function(he){return Jo(he,fe.length===1?fe[0]:fe)}:fe}):[so];var K=-1;S=Do(S,zr(xo));var ae=le(d,function(fe,he,xe){return{criteria:Do(S,function(Te){return Te(fe)}),index:++K,value:fe}});return yc(ae,function(fe,he){return Kc(fe,he,F)})},jf=No(function(d,S){if(d==null)return[];var F=S.length;return F>1&&Wn(d,S[0],S[1])?S=[]:F>2&&Wn(S[0],S[1],S[2])&&(S=[S[0]]),mc(d,wi(S,1),[])}),Yf=0,Lu=function(d){var S=++Yf;return ys(d)+S},Ec=function(d,S,F){for(var K=-1,ae=d.length,fe=S.length,he={};++K0;--je)if(xe=fe[je].dequeue()){Te=Te.concat(Ef(ae,fe,he,xe,!0));break}}}return Te}(F.graph,F.buckets,F.zeroIdx);return Tt.flatten(Tt.map(K,function(ae){return d.outEdges(ae.v,ae.w)}),!0)},mf=Tt.constant(1);function Ef(d,S,F,K,ae){var fe=ae?[]:void 0;return Tt.forEach(d.inEdges(K.v),function(he){var xe=d.edge(he),Te=d.node(he.v);ae&&fe.push({v:he.v,w:he.w}),Te.out-=xe,Zf(S,F,Te)}),Tt.forEach(d.outEdges(K.v),function(he){var xe=d.edge(he),Te=he.w,Be=d.node(Te);Be.in-=xe,Zf(S,F,Be)}),d.removeNode(K.v),fe}function Zf(d,S,F){F.out?F.in?d[F.out-F.in+S].enqueue(F):d[d.length-1].enqueue(F):d[0].enqueue(F)}var xc={run:function(d){var S=d.graph().acyclicer==="greedy"?Qc(d,function(F){return function(K){return F.edge(K).weight}}(d)):function(F){var K=[],ae={},fe={};function he(xe){Tt.has(fe,xe)||(fe[xe]=!0,ae[xe]=!0,Tt.forEach(F.outEdges(xe),function(Te){Tt.has(ae,Te.w)?K.push(Te):he(Te.w)}),delete ae[xe])}return Tt.forEach(F.nodes(),he),K}(d);Tt.forEach(S,function(F){var K=d.edge(F);d.removeEdge(F),K.forwardName=F.name,K.reversed=!0,d.setEdge(F.w,F.v,K,Tt.uniqueId("rev"))})},undo:function(d){Tt.forEach(d.edges(),function(S){var F=d.edge(S);if(F.reversed){d.removeEdge(S);var K=F.forwardName;delete F.reversed,delete F.forwardName,d.setEdge(S.w,S.v,F,K)}})}},Kf=qn.Graph,eo={addDummyNode:Nu,simplify:function(d){var S=new Kf().setGraph(d.graph());return Tt.forEach(d.nodes(),function(F){S.setNode(F,d.node(F))}),Tt.forEach(d.edges(),function(F){var K=S.edge(F.v,F.w)||{weight:0,minlen:1},ae=d.edge(F);S.setEdge(F.v,F.w,{weight:K.weight+ae.weight,minlen:Math.max(K.minlen,ae.minlen)})}),S},asNonCompoundGraph:function(d){var S=new Kf({multigraph:d.isMultigraph()}).setGraph(d.graph());return Tt.forEach(d.nodes(),function(F){d.children(F).length||S.setNode(F,d.node(F))}),Tt.forEach(d.edges(),function(F){S.setEdge(F,d.edge(F))}),S},successorWeights:function(d){var S=Tt.map(d.nodes(),function(F){var K={};return Tt.forEach(d.outEdges(F),function(ae){K[ae.w]=(K[ae.w]||0)+d.edge(ae).weight}),K});return Tt.zipObject(d.nodes(),S)},predecessorWeights:function(d){var S=Tt.map(d.nodes(),function(F){var K={};return Tt.forEach(d.inEdges(F),function(ae){K[ae.v]=(K[ae.v]||0)+d.edge(ae).weight}),K});return Tt.zipObject(d.nodes(),S)},intersectRect:function(d,S){var F,K,ae=d.x,fe=d.y,he=S.x-ae,xe=S.y-fe,Te=d.width/2,Be=d.height/2;if(!he&&!xe)throw new Error("Not possible to find intersection inside of the rectangle");return Math.abs(xe)*Te>Math.abs(he)*Be?(xe<0&&(Be=-Be),F=Be*he/xe,K=Be):(he<0&&(Te=-Te),F=Te,K=Te*xe/he),{x:ae+F,y:fe+K}},buildLayerMatrix:function(d){var S=Tt.map(Tt.range($f(d)+1),function(){return[]});return Tt.forEach(d.nodes(),function(F){var K=d.node(F),ae=K.rank;Tt.isUndefined(ae)||(S[ae][K.order]=F)}),S},normalizeRanks:function(d){var S=Tt.min(Tt.map(d.nodes(),function(F){return d.node(F).rank}));Tt.forEach(d.nodes(),function(F){var K=d.node(F);Tt.has(K,"rank")&&(K.rank-=S)})},removeEmptyRanks:function(d){var S=Tt.min(Tt.map(d.nodes(),function(fe){return d.node(fe).rank})),F=[];Tt.forEach(d.nodes(),function(fe){var he=d.node(fe).rank-S;F[he]||(F[he]=[]),F[he].push(fe)});var K=0,ae=d.graph().nodeRankFactor;Tt.forEach(F,function(fe,he){Tt.isUndefined(fe)&&he%ae!=0?--K:K&&Tt.forEach(fe,function(xe){d.node(xe).rank+=K})})},addBorderNode:function(d,S,F,K){var ae={width:0,height:0};return arguments.length>=4&&(ae.rank=F,ae.order=K),Nu(d,"border",ae,S)},maxRank:$f,partition:function(d,S){var F={lhs:[],rhs:[]};return Tt.forEach(d,function(K){S(K)?F.lhs.push(K):F.rhs.push(K)}),F},time:function(d,S){var F=Tt.now();try{return S()}finally{console.log(d+" time: "+(Tt.now()-F)+"ms")}},notime:function(d,S){return S()}};function Nu(d,S,F,K){var ae;do ae=Tt.uniqueId(K);while(d.hasNode(ae));return F.dummy=S,d.setNode(ae,F),ae}function $f(d){return Tt.max(Tt.map(d.nodes(),function(S){var F=d.node(S).rank;if(!Tt.isUndefined(F))return F}))}var us={run:function(d){d.graph().dummyChains=[],Tt.forEach(d.edges(),function(S){(function(F,K){var ae,fe,he,xe=K.v,Te=F.node(xe).rank,Be=K.w,Ze=F.node(Be).rank,je=K.name,lt=F.edge(K),kt=lt.labelRank;if(Ze!==Te+1){for(F.removeEdge(K),he=0,++Te;Tehe.lim&&(xe=he,Te=!0);var Be=Tt.filter(S.edges(),function(Ze){return Te===Mc(d,d.node(Ze.v),xe)&&Te!==Mc(d,d.node(Ze.w),xe)});return Tt.minBy(Be,function(Ze){return bf(S,Ze)})}function Ps(d,S,F,K){var ae=F.v,fe=F.w;d.removeEdge(ae,fe),d.setEdge(K.v,K.w,{}),du(d),_c(d,S),function(he,xe){var Te=Tt.find(he.nodes(),function(Ze){return!xe.node(Ze).parent}),Be=nf(he,Te);Be=Be.slice(1),Tt.forEach(Be,function(Ze){var je=he.node(Ze).parent,lt=xe.edge(Ze,je),kt=!1;lt||(lt=xe.edge(je,Ze),kt=!0),xe.node(Ze).rank=xe.node(je).rank+(kt?lt.minlen:-lt.minlen)})}(d,S)}function Mc(d,S,F){return F.low<=S.lim&&S.lim<=F.lim}_s.initLowLimValues=du,_s.initCutValues=_c,_s.calcCutValue=Ns,_s.leaveEdge=Fu,_s.enterEdge=xf,_s.exchangeEdges=Ps;var qc=Ds,_l=function(d){switch(d.graph().ranker){case"network-simplex":Cc(d);break;case"tight-tree":(function(S){qc(S),Vi(S)})(d);break;case"longest-path":Jc(d);break;default:Cc(d)}},Jc=qc;function Cc(d){Zr(d)}var el=function(d){var S=function(F){var K={},ae=0;function fe(he){var xe=ae;Tt.forEach(F.children(he),fe),K[he]={low:xe,lim:ae++}}return Tt.forEach(F.children(),fe),K}(d);Tt.forEach(d.graph().dummyChains,function(F){for(var K=d.node(F),ae=K.edgeObj,fe=function(je,lt,kt,pr){var Wt,Vt,jt=[],Dr=[],Kr=Math.min(lt[kt].low,lt[pr].low),Yr=Math.max(lt[kt].lim,lt[pr].lim);Wt=kt;do Wt=je.parent(Wt),jt.push(Wt);while(Wt&&(lt[Wt].low>Kr||Yr>lt[Wt].lim));for(Vt=Wt,Wt=pr;(Wt=je.parent(Wt))!==Vt;)Dr.push(Wt);return{path:jt.concat(Dr.reverse()),lca:Vt}}(d,S,ae.v,ae.w),he=fe.path,xe=fe.lca,Te=0,Be=he[Te],Ze=!0;F!==ae.w;){if(K=d.node(F),Ze){for(;(Be=he[Te])!==xe&&d.node(Be).maxRank0;)Ze%2&&(je+=xe[Ze+1]),xe[Ze=Ze-1>>1]+=Be.weight;Te+=Be.weight*je})),Te}var nl=function(d,S){return Tt.map(S,function(F){var K=d.inEdges(F);if(K.length){var ae=Tt.reduce(K,function(fe,he){var xe=d.edge(he),Te=d.node(he.v);return{sum:fe.sum+xe.weight*Te.order,weight:fe.weight+xe.weight}},{sum:0,weight:0});return{v:F,barycenter:ae.sum/ae.weight,weight:ae.weight}}return{v:F}})},Dc=function(d,S){var F={};return Tt.forEach(d,function(K,ae){var fe=F[K.v]={indegree:0,in:[],out:[],vs:[K.v],i:ae};Tt.isUndefined(K.barycenter)||(fe.barycenter=K.barycenter,fe.weight=K.weight)}),Tt.forEach(S.edges(),function(K){var ae=F[K.v],fe=F[K.w];Tt.isUndefined(ae)||Tt.isUndefined(fe)||(fe.indegree++,ae.out.push(F[K.w]))}),function(K){var ae=[];function fe(Te){return function(Be){Be.merged||(Tt.isUndefined(Be.barycenter)||Tt.isUndefined(Te.barycenter)||Be.barycenter>=Te.barycenter)&&function(Ze,je){var lt=0,kt=0;Ze.weight&&(lt+=Ze.barycenter*Ze.weight,kt+=Ze.weight),je.weight&&(lt+=je.barycenter*je.weight,kt+=je.weight),Ze.vs=je.vs.concat(Ze.vs),Ze.barycenter=lt/kt,Ze.weight=kt,Ze.i=Math.min(je.i,Ze.i),je.merged=!0}(Te,Be)}}function he(Te){return function(Be){Be.in.push(Te),--Be.indegree==0&&K.push(Be)}}for(;K.length;){var xe=K.pop();ae.push(xe),Tt.forEach(xe.in.reverse(),fe(xe)),Tt.forEach(xe.out,he(xe))}return Tt.map(Tt.filter(ae,function(Te){return!Te.merged}),function(Te){return Tt.pick(Te,["vs","i","barycenter","weight"])})}(Tt.filter(F,function(K){return!K.indegree}))},Nc=function(d,S){var F=eo.partition(d,function(je){return Tt.has(je,"barycenter")}),K=F.lhs,ae=Tt.sortBy(F.rhs,function(je){return-je.i}),fe=[],he=0,xe=0,Te=0;K.sort((Be=!!S,function(je,lt){return je.barycenterlt.barycenter?1:Be?lt.i-je.i:je.i-lt.i})),Te=ec(fe,ae,Te),Tt.forEach(K,function(je){Te+=je.vs.length,fe.push(je.vs),he+=je.barycenter*je.weight,xe+=je.weight,Te=ec(fe,ae,Te)});var Be,Ze={vs:Tt.flatten(fe,!0)};return xe&&(Ze.barycenter=he/xe,Ze.weight=xe),Ze};function ec(d,S,F){for(var K;S.length&&(K=Tt.last(S)).i<=F;)S.pop(),d.push(K.vs),F++;return F}var al=function d(S,F,K,ae){var fe=S.children(F),he=S.node(F),xe=he?he.borderLeft:void 0,Te=he?he.borderRight:void 0,Be={};xe&&(fe=Tt.filter(fe,function(Wt){return Wt!==xe&&Wt!==Te}));var Ze=nl(S,fe);Tt.forEach(Ze,function(Wt){if(S.children(Wt.v).length){var Vt=d(S,Wt.v,K,ae);Be[Wt.v]=Vt,Tt.has(Vt,"barycenter")&&(jt=Wt,Dr=Vt,Tt.isUndefined(jt.barycenter)?(jt.barycenter=Dr.barycenter,jt.weight=Dr.weight):(jt.barycenter=(jt.barycenter*jt.weight+Dr.barycenter*Dr.weight)/(jt.weight+Dr.weight),jt.weight+=Dr.weight))}var jt,Dr});var je=Dc(Ze,K);(function(Wt,Vt){Tt.forEach(Wt,function(jt){jt.vs=Tt.flatten(jt.vs.map(function(Dr){return Vt[Dr]?Vt[Dr].vs:Dr}),!0)})})(je,Be);var lt=Nc(je,ae);if(xe&&(lt.vs=Tt.flatten([xe,lt.vs,Te],!0),S.predecessors(xe).length)){var kt=S.node(S.predecessors(xe)[0]),pr=S.node(S.predecessors(Te)[0]);Tt.has(lt,"barycenter")||(lt.barycenter=0,lt.weight=0),lt.barycenter=(lt.barycenter*lt.weight+kt.order+pr.order)/(lt.weight+2),lt.weight+=2}return lt},Pc=qn.Graph,kc=function(d,S,F){var K=function(fe){for(var he;fe.hasNode(he=Tt.uniqueId("_root")););return he}(d),ae=new Pc({compound:!0}).setGraph({root:K}).setDefaultNodeLabel(function(fe){return d.node(fe)});return Tt.forEach(d.nodes(),function(fe){var he=d.node(fe),xe=d.parent(fe);(he.rank===S||he.minRank<=S&&S<=he.maxRank)&&(ae.setNode(fe),ae.setParent(fe,xe||K),Tt.forEach(d[F](fe),function(Te){var Be=Te.v===fe?Te.w:Te.v,Ze=ae.edge(Be,fe),je=Tt.isUndefined(Ze)?0:Ze.weight;ae.setEdge(Be,fe,{weight:d.edge(Te).weight+je})}),Tt.has(he,"minRank")&&ae.setNode(fe,{borderLeft:he.borderLeft[S],borderRight:he.borderRight[S]}))}),ae},Rc=function(d,S,F){var K,ae={};Tt.forEach(F,function(fe){for(var he,xe,Te=d.parent(fe);Te;){if((he=d.parent(Te))?(xe=ae[he],ae[he]=Te):(xe=K,K=Te),xe&&xe!==Te)return void S.setEdge(xe,Te);Te=he}})},tc=qn.Graph,zi=function(d){var S=eo.maxRank(d),F=af(d,Tt.range(1,S+1),"inEdges"),K=af(d,Tt.range(S-1,-1,-1),"outEdges"),ae=Ac(d);vu(d,ae);for(var fe,he=Number.POSITIVE_INFINITY,xe=0,Te=0;Te<4;++xe,++Te){Sf(xe%2?F:K,xe%4>=2),ae=eo.buildLayerMatrix(d);var Be=Oc(d,ae);BeTe)&&Sa(F,je,Be)})})}return Tt.reduce(S,function(ae,fe){var he,xe=-1,Te=0;return Tt.forEach(fe,function(Be,Ze){if(d.node(Be).dummy==="border"){var je=d.predecessors(Be);je.length&&(he=d.node(je[0]).order,K(fe,Te,Ze,xe,he),Te=Ze,xe=he)}K(fe,Te,fe.length,he,ae.length)}),fe}),F}function Sa(d,S,F){if(S>F){var K=S;S=F,F=K}var ae=d[S];ae||(d[S]=ae={}),ae[F]=!0}function zu(d,S,F){if(S>F){var K=S;S=F,F=K}return Tt.has(d[S],F)}function rc(d,S,F,K){var ae={},fe={},he={};return Tt.forEach(S,function(xe){Tt.forEach(xe,function(Te,Be){ae[Te]=Te,fe[Te]=Te,he[Te]=Be})}),Tt.forEach(S,function(xe){var Te=-1;Tt.forEach(xe,function(Be){var Ze=K(Be);if(Ze.length)for(var je=((Ze=Tt.sortBy(Ze,function(Wt){return he[Wt]})).length-1)/2,lt=Math.floor(je),kt=Math.ceil(je);lt<=kt;++lt){var pr=Ze[lt];fe[Be]===Be&&Tenew dl(F)).forEach(F=>{S.nodes[F.name]=F,F.inputs.forEach(K=>{(function(ae,fe,he){he.name!==fe.name&&ae.edges.push(Object.assign(Object.assign({},he.attr),{v:he.name,w:fe.name}))})(S,F,K)})}),S}class vl{constructor(S,F={}){this.attr=null,this.bridgeGraph=null,this.cardinality=0,this.depth=1,this.include=y.UNSPECIFIED,this.isGroupNode=!0,this.parentNode=null,this.type=N.META,this.path=[],this.name=S,this.metaGraph=ic(S,E.META,F)}getFirstChild(){return this.metaGraph.node(this.metaGraph.nodes()[0])}getChildren(){return this.metaGraph.nodes().map(S=>this.metaGraph.node(S))}leaves(){let S,F=[],K=[this];for(;K.length;){let ae=K.shift();ae.isGroupNode?(S=ae.metaGraph,S.nodes().forEach(fe=>K.push(S.node(fe)))):F.push(ae.name)}return F}}class hl{constructor(S,F){this.v=S,this.w=F,this.baseEdgeList=[],this.inbound=null,this.name=null}addBaseEdge(S,F){this.baseEdgeList.push(S)}}function Tf(d,S={}){return new vl(d,S)}function Uc(d,S){return new hl(d,S)}function ic(d,S,F){const K=F||{},ae=new Tl.Graph(K);return ae.setGraph({name:d,rankdir:K.rankdir,type:S,align:K.align}),ae}class gl{constructor(S={}){this.graphOptions=S,this.index={},this.graphOptions.compound=!0,this.root=Tf(D,this.graphOptions),this.index[D]=this.root}getNodeMap(){return this.index}node(S){return this.index[S]}setNode(S,F){this.index[S]=F}getBridgeGraph(S){const F=this.index[S];if(!F)throw Error("Could not find node in hierarchy: "+S);if(!("metaGraph"in F))return null;const K=F;if(K.bridgeGraph)return K.bridgeGraph;const ae=ic(P,E.BRIDGE,this.graphOptions);if(K.bridgeGraph=ae,!F.parentNode||!("metaGraph"in F.parentNode))return ae;const fe=F.parentNode;return[fe.metaGraph,this.getBridgeGraph(fe.name)].forEach(he=>{he.edges().filter(xe=>xe.v===S||xe.w===S).forEach(xe=>{const Te=xe.w===S;he.edge(xe).baseEdgeList.forEach(Be=>{const[Ze,je]=Te?[Be.w,xe.v]:[Be.v,xe.w],lt=this.getChildName(S,Ze),kt={v:Te?je:lt,w:Te?lt:je};let pr=ae.edge(kt);pr||(pr=Uc(kt.v,kt.w),pr.inbound=Te,ae.setEdge(kt.v,kt.w,pr)),pr.addBaseEdge(Be,this)})})}),ae}getChildName(S,F){let K=this.index[F];for(;K;){if(K.parentNode&&K.parentNode.name===S)return K.name;K=K.parentNode}throw Error("Could not find immediate child for descendant: "+F)}getPredecessors(S){const F=this.index[S];if(!F)throw Error("Could not find node with name: "+S);return this.getOneWayEdges(F,!0)}getSuccessors(S){const F=this.index[S];if(!F)throw Error("Could not find node with name: "+S);return this.getOneWayEdges(F,!1)}getOneWayEdges(S,F){const K=[];if(!S.parentNode||!S.parentNode.isGroupNode)return K;const ae=S.parentNode,fe=ae.metaGraph,he=this.getBridgeGraph(ae.name);return oc(fe,S,F,K),oc(he,S,F,K),K}}function Al(d,S){const{rankDirection:F,align:K}=S,ae=new gl({rankdir:F,align:K});return function(fe,he){Object.keys(he.nodes).forEach(xe=>{const Te=he.nodes[xe],Be=Te.path;let Ze=fe.root;Ze.depth=Math.max(Be.length,Ze.depth);for(let je=0;je{let kt=0;for(;je;)lt[kt++]=je.name,je=je.parentNode;return kt-1};he.edges.forEach(je=>{Te=[],Be=[];let lt=Ze(he.nodes[je.v],Te),kt=Ze(he.nodes[je.w],Be);for(;Te[lt]===Be[kt];)if(lt--,kt--,lt<0||kt<0)throw Error("No difference found between ancestor paths.");const pr=xe[Te[lt+1]],Wt=Te[lt],Vt=Be[kt];let jt=pr.metaGraph.edge(Wt,Vt);jt||(jt=Uc(Wt,Vt),pr.metaGraph.setEdge(Wt,Vt,jt)),jt.addBaseEdge(je,fe)})}(ae,d),ae}function oc(d,S,F,K){(F?d.inEdges(S.name):d.outEdges(S.name)).forEach(ae=>{const fe=d.edge(ae);K.push(fe)})}class pl{constructor(S){this.hierarchy=S,this.index={},this.hasSubHierarchy={},this.root=new Qe(this.hierarchy.root,this.hierarchy.graphOptions),this.index[S.root.name]=this.root,this.buildSubHierarchy(S.root.name),this.root.expanded=!0}getRenderInfoNodes(){return Object.values(this.index)}getSubHierarchy(){return this.hasSubHierarchy}buildSubHierarchy(S){if(S in this.hasSubHierarchy)return;this.hasSubHierarchy[S]=!0;const F=this.index[S];if(F.node.type!==N.META)return;const K=F,ae=K.node.metaGraph,fe=K.coreGraph;ae.nodes().forEach(Ze=>{const je=this.getOrCreateRenderNodeByName(Ze);fe.setNode(Ze,je)}),ae.edges().forEach(Ze=>{const je=ae.edge(Ze),lt=new me(je);fe.setEdge(Ze.v,Ze.w,lt)});const he=K.node.parentNode;if(!he)return;const xe=this.getRenderNodeByName(he.name),Te=(Ze,...je)=>je.concat([Ze?"IN":"OUT"]).join("~~"),Be=this.hierarchy.getBridgeGraph(S);Be.edges().forEach(Ze=>{const je=Be.edge(Ze),lt=!!ae.node(Ze.w),[kt,pr]=lt?[Ze.w,Ze.v]:[Ze.v,Ze.w],Wt=yn=>{const dn=lt?{v:yn,w:S}:{v:S,w:yn};return xe.coreGraph.edge(dn)};let Vt=Wt(pr);Vt||(Vt=Wt(Te(lt,pr,he.name)));const jt=Te(lt,S),Dr=Te(lt,pr,S);let Kr=fe.node(Dr);if(!Kr){let yn=fe.node(jt);if(!yn){const An={name:jt,type:N.BRIDGE,isGroupNode:!1,cardinality:0,parentNode:null,include:y.UNSPECIFIED,inbound:lt,attr:{}};yn=new sc(An),this.index[jt]=yn,fe.setNode(jt,yn)}const dn={name:Dr,type:N.BRIDGE,isGroupNode:!1,cardinality:1,parentNode:null,include:y.UNSPECIFIED,inbound:lt,attr:{}};Kr=new sc(dn),this.index[Dr]=Kr,fe.setNode(Dr,Kr),fe.setParent(Dr,jt),yn.node.cardinality++}const Yr=new me(je);Yr.adjoiningMetaEdge=Vt,lt?fe.setEdge(Dr,kt,Yr):fe.setEdge(kt,Dr,Yr)})}getOrCreateRenderNodeByName(S){if(!S)return null;if(S in this.index)return this.index[S];const F=this.getNodeByName(S);return F?(this.index[S]=F.isGroupNode?new Qe(F,this.hierarchy.graphOptions):new sc(F),this.index[S]):null}getRenderNodeByName(S){return this.index[S]}getNodeByName(S){return this.hierarchy.node(S)}}class sc{constructor(S){this.node=S,this.expanded=!1,this.x=0,this.y=0,this.coreBox={width:0,height:0},this.outboxWidth=0,this.labelOffset=0,this.radius=0,this.labelHeight=0,this.paddingTop=0,this.paddingLeft=0,this.paddingRight=0,this.paddingBottom=0,this.width=S.width||0,this.height=S.height||0,this.displayName=S.name,this.attr=S.attr}}class me{constructor(S){this.metaEdge=S,this.adjoiningMetaEdge=null,this.weight=1,this.points=[]}}class Qe extends sc{constructor(S,F){super(S);const K=S.metaGraph.graph();F.compound=!0,this.coreGraph=ic(K.name,E.CORE,F)}}function pt(d,S){d.node.isGroupNode&&function(F,K){const ae=Y(K);F.coreGraph.nodes().map(fe=>F.coreGraph.node(fe)).forEach(fe=>{var he,xe,Te,Be,Ze,je;const{height:lt,width:kt}=fe;switch(fe.node.type){case N.NODE:Object.assign(fe,ae.nodeSize.node),fe.height=lt||ae.nodeSize.node.height,fe.width=kt||ae.nodeSize.node.width;break;case N.BRIDGE:Object.assign(fe,ae.nodeSize.bridge);break;case N.META:fe.expanded?pt(fe,K):(Object.assign(fe,ae.nodeSize.meta),fe.height=ae.nodeSize.meta.height,fe.width=ae.nodeSize.meta.width);break;default:throw Error("Unrecognized node type: "+fe.node.type)}if(!fe.expanded){const pr=fe.attr;(function(Wt,Vt=!1){if(Wt.coreBox.width=Wt.width,Wt.coreBox.height=Wt.height,!Vt){const jt=`${Wt.displayName}`.length,Dr=3;Wt.width=Math.max(Wt.coreBox.width,jt*Dr)}})(fe,K&&(fe.node.type===0&&!!((xe=(he=K==null?void 0:K.nodeSize)===null||he===void 0?void 0:he.meta)===null||xe===void 0?void 0:xe.width)||fe.node.type===1&&(!!((Be=(Te=K==null?void 0:K.nodeSize)===null||Te===void 0?void 0:Te.node)===null||Be===void 0?void 0:Be.width)||!!pr.width)||fe.node.type===2&&!!((je=(Ze=K==null?void 0:K.nodeSize)===null||Ze===void 0?void 0:Ze.bridge)===null||je===void 0?void 0:je.width)))}})}(d,S),d.node.type===N.META&&function(F,K){const ae=Y(K),fe=ae.subScene.meta;Object.assign(F,fe);const{nodeSep:he,rankSep:xe,edgeSep:Te,align:Be}=ae.graph.meta,Ze={nodesep:he,ranksep:xe,edgesep:Te,align:Be};Object.assign(F.coreBox,function(kt,pr){const{ranksep:Wt,nodesep:Vt,edgesep:jt,align:Dr}=pr;Object.assign(kt.graph(),{ranksep:Wt,nodesep:Vt,edgesep:jt,align:Dr});const Kr=[];if(kt.nodes().forEach(Kn=>{kt.node(Kn).node.type!==N.BRIDGE&&Kr.push(Kn)}),!Kr.length)return{width:0,height:0};Il(kt);let Yr=1/0,yn=1/0,dn=-1/0,An=-1/0;return Kr.forEach(Kn=>{const Sn=kt.node(Kn),pi=.5*Sn.width,Qn=Sn.x-pi,Bi=Sn.x+pi;Yr=Qndn?Bi:dn;const ai=.5*Sn.height,Ca=Sn.y-ai,_i=Sn.y+ai;yn=CaAn?_i:An}),kt.edges().forEach(Kn=>{const Sn=kt.edge(Kn),pi=kt.node(Sn.metaEdge.v),Qn=kt.node(Sn.metaEdge.w);if(Sn.points.length===3&&function(Ca){let _i=Yt(Ca[0],Ca[1]);for(let Si=1;Si1)return!1;_i=Hi}return!0}(Sn.points)){if(pi!=null){const Ca=pi.expanded?pi.x:xr(pi);Sn.points[0].x=Ca}if(Qn!=null){const Ca=Qn.expanded?Qn.x:xr(Qn);Sn.points[2].x=Ca}Sn.points=[Sn.points[0],Sn.points[1]]}const Bi=Sn.points[Sn.points.length-2];Qn!=null&&(Sn.points[Sn.points.length-1]=ar(Bi,Qn));const ai=Sn.points[1];pi!=null&&(Sn.points[0]=ar(ai,pi)),Sn.points.forEach(Ca=>{Yr=Ca.xdn?Ca.x:dn,yn=Ca.yAn?Ca.y:An})}),kt.nodes().forEach(Kn=>{const Sn=kt.node(Kn);Sn.x-=Yr,Sn.y-=yn}),kt.edges().forEach(Kn=>{kt.edge(Kn).points.forEach(Sn=>{Sn.x-=Yr,Sn.y-=yn})}),{width:dn-Yr,height:An-yn}}(F.coreGraph,Ze));let je=0;F.coreGraph.nodeCount()>0&&je++;const lt=je<=1?0:je;F.coreBox.width+=lt+lt,F.coreBox.height=fe.labelHeight+F.coreBox.height,F.width=F.coreBox.width+fe.paddingLeft+fe.paddingRight,F.height=F.paddingTop+F.coreBox.height+F.paddingBottom}(d,S)}function Yt(d,S){const F=S.x-d.x,K=S.y-d.y;return 180*Math.atan(K/F)/Math.PI}function xr(d){return d.expanded?d.x:d.x-d.width/2+0+d.coreBox.width/2}function ar(d,S){const F=S.expanded?S.x:xr(S),K=S.y,ae=d.x-F,fe=d.y-K;let he,xe,Te=S.expanded?S.width:S.coreBox.width,Be=S.expanded?S.height:S.coreBox.height;return Math.abs(fe)*Te/2>Math.abs(ae)*Be/2?(fe<0&&(Be=-Be),he=fe===0?0:Be/2*ae/fe,xe=Be/2):(ae<0&&(Te=-Te),he=Te/2,xe=ae===0?0:Te/2*fe/ae),{x:F+he,y:K+xe}}function lr(d,S,F){var K,ae,fe,he;const xe=d.nodes.filter((je,lt,kt)=>kt.findIndex(pr=>pr.id===je.id)!==lt).map(je=>je.id);if(xe.length)throw new Error(`Duplicated ids found: ${xe.join(", ")}`);const Te=function(je){const lt={nodes:[]},kt=je.compound,pr=Object.keys(kt||{}),Wt=new Map,Vt=(Dr,Kr=[])=>{if(Wt.has(Dr))return Wt.get(Dr);for(let Yr=0;Yrje.edges.filter(Kr=>Kr.w===Dr).map(Kr=>({name:Kr.v}));return je.nodes.forEach(Dr=>{const Kr=Dr.id,Yr=[...Vt(Kr),Kr];let yn=jt(Kr);lt.nodes.push({name:Kr,path:Yr,inputs:yn,width:Dr.width,height:Dr.height,attr:Object.assign({},Dr)})}),lt}(d),Be=function(je,lt){const kt=(Wt,Vt)=>{for(let jt of Vt.values())if(jt.includes(Wt))return!0;return!1},pr=(Wt,Vt=[])=>{if(Object.keys(Wt).length===0)return[...new Set(Vt)];const jt=new Map(Object.keys(Wt).map(Kr=>[Kr,Wt[Kr]])),Dr={};for(let[Kr,Yr]of jt)kt(Kr,jt)?Dr[Kr]=Yr:Vt=Vt.concat(Kr,Yr);return pr(Dr,Vt)};return pr(je).filter(Wt=>lt.includes(Wt))}(d.compound||{},(S==null?void 0:S.expanded)||[]),Ze=function(je,lt){return function(kt){return new pl(kt)}(Al(zc(je),lt))}(Te,{rankDirection:((ae=(K=F==null?void 0:F.graph)===null||K===void 0?void 0:K.meta)===null||ae===void 0?void 0:ae.rankDir)||(S==null?void 0:S.rankDirection)||U.graph.meta.rankDir,align:((he=(fe=F==null?void 0:F.graph)===null||fe===void 0?void 0:fe.meta)===null||he===void 0?void 0:he.align)||U.graph.meta.align});return function(je,lt){lt.forEach(kt=>{const pr=je.getRenderInfoNodes().find(jt=>jt.displayName===kt);let Wt=pr&&pr.node&&pr.node.name||"";const Vt=je.getRenderNodeByName(Wt);if(!Vt)throw new Error(`No nodes found: ${Wt}`);Vt.expanded=!0,je.buildSubHierarchy(Wt)})}(Ze,Be),pt(Ze.root,F),Rr(Ze.root)}function Or(d,S=!1){const F=JSON.parse(JSON.stringify(d)),K={nodes:[F],edges:[...F.edges]};return F.nodes.forEach(function ae(fe){(fe.type===0||fe.type===1)&&K.nodes.push(fe),fe.type===0&&(K.edges=K.edges.concat(fe.edges)),Array.isArray(fe.nodes)&&fe.nodes.forEach(ae)}),S&&K.nodes.forEach(ae=>{const fe=K.nodes.find(he=>he.id===ae.parentNodeName);if(fe){const he=fe.x-fe.width/2+fe.paddingLeft,xe=fe.y-fe.height/2+fe.labelHeight+fe.paddingTop;fe.id!==D&&(ae.x+=he,ae.y+=xe),ae.type===0&&ae.edges.forEach(Te=>{Te.points.forEach(Be=>{Be.x+=ae.x-ae.width/2+ae.paddingLeft,Be.y+=ae.y-ae.height/2+ae.labelHeight+ae.paddingTop})})}}),K}function Nr(d,S,F,K){var ae,fe;let he=[];const xe=((ae=F.find(je=>je.id===d))===null||ae===void 0?void 0:ae.path)||[],Te=((fe=F.find(je=>je.id===S))===null||fe===void 0?void 0:fe.path)||[],Be=[D,...xe].slice(0,xe.length).reverse(),Ze=[D,...Te].slice(0,Te.length);return Be.forEach(je=>{const lt=F.find(kt=>kt.id===je);he=he.concat(lt.edges.filter(kt=>kt.baseEdgeList.some(pr=>pr.v===((K==null?void 0:K.v)||d)&&pr.w===((K==null?void 0:K.w)||S))))}),Ze.filter(je=>!Be.includes(je)).forEach(je=>{const lt=F.find(kt=>kt.id===je);he=he.concat(lt.edges.filter(kt=>kt.baseEdgeList.some(pr=>pr.v===((K==null?void 0:K.v)||d)&&pr.w===((K==null?void 0:K.w)||S))))}),he}function Rr(d){const S=d.coreGraph.nodes().map(K=>d.coreGraph.node(K));return Object.assign(Object.assign({},Lr(d)),{expanded:d.expanded,nodes:d.expanded?(F=S,F.map(K=>K.node.type===N.META?Rr(K):Lr(K))):[],edges:d.expanded?Xr(d):[]});var F}function Lr(d){return{id:d.node.name,name:d.node.name,type:d.node.type,cardinality:d.node.cardinality,attr:d.attr,parentNodeName:d.node.parentNode?d.node.parentNode.name:null,coreBox:Object.assign({},d.coreBox),x:d.x,y:d.y,width:d.width,height:d.height,radius:d.radius,labelHeight:d.labelHeight,labelOffset:d.labelOffset,outboxWidth:d.outboxWidth,paddingLeft:d.paddingLeft,paddingTop:d.paddingTop,paddingRight:d.paddingRight,paddingBottom:d.paddingBottom,path:d.node.path}}function Xr(d){return d.coreGraph.edges().map(S=>({renderInfoEdge:d.coreGraph.edge(S),edge:S})).filter(({renderInfoEdge:S})=>S.metaEdge).map(({edge:S,renderInfoEdge:F})=>{const K=function(ae,fe){const he=fe.points.map(xe=>Object.assign({},xe));if(fe.adjoiningMetaEdge){const xe=fe.adjoiningMetaEdge.points,Te=fe.metaEdge.inbound,Be=Te?xe[xe.length-1]:xe[0],Ze=he[Te?0:he.length-1],je=ae.x-ae.width/2,lt=ae.y-ae.height/2,kt=Be.x-je,pr=Be.y-lt,Wt=-ae.paddingLeft,Vt=-(ae.paddingTop+ae.labelHeight);Ze.x=kt+Wt,Ze.y=pr+Vt}return he}(d,F);return{adjoiningEdge:F.adjoiningMetaEdge?{w:F.adjoiningMetaEdge.metaEdge.w,v:F.adjoiningMetaEdge.metaEdge.v}:null,inbound:F.metaEdge.inbound,w:S.w,v:S.v,points:K,weight:F.weight,baseEdgeList:F.metaEdge.baseEdgeList,parentNodeName:d.node.name}})}},64530:function(hr,X,W){"use strict";W.r(X),W.d(X,{glMatrix:function(){return y},mat2:function(){return U},mat2d:function(){return Y},mat3:function(){return aa},mat4:function(){return B},quat:function(){return P},quat2:function(){return N},vec2:function(){return ju},vec3:function(){return ua},vec4:function(){return D}});var U={};W.r(U),W.d(U,{LDU:function(){return ee},add:function(){return ie},adjoint:function(){return k},clone:function(){return g},copy:function(){return p},create:function(){return E},determinant:function(){return G},equals:function(){return Le},exactEquals:function(){return ge},frob:function(){return te},fromRotation:function(){return j},fromScaling:function(){return $},fromValues:function(){return x},identity:function(){return h},invert:function(){return A},mul:function(){return de},multiply:function(){return T},multiplyScalar:function(){return Oe},multiplyScalarAndAdd:function(){return Re},rotate:function(){return M},scale:function(){return V},set:function(){return m},str:function(){return q},sub:function(){return ve},subtract:function(){return ce},transpose:function(){return b}});var Y={};W.r(Y),W.d(Y,{add:function(){return mr},clone:function(){return Ae},copy:function(){return Pe},create:function(){return be},determinant:function(){return Ct},equals:function(){return We},exactEquals:function(){return bn},frob:function(){return Nt},fromRotation:function(){return Et},fromScaling:function(){return it},fromTranslation:function(){return St},fromValues:function(){return Ue},identity:function(){return Ve},invert:function(){return _t},mul:function(){return zn},multiply:function(){return He},multiplyScalar:function(){return nn},multiplyScalarAndAdd:function(){return In},rotate:function(){return ht},scale:function(){return mt},set:function(){return Ke},str:function(){return $t},sub:function(){return kn},subtract:function(){return br},translate:function(){return dt}});var B={};W.r(B),W.d(B,{add:function(){return ir},adjoint:function(){return Cr},clone:function(){return Ia},copy:function(){return za},create:function(){return ri},determinant:function(){return an},equals:function(){return jn},exactEquals:function(){return sa},frob:function(){return Bt},fromQuat:function(){return H},fromQuat2:function(){return ct},fromRotation:function(){return ta},fromRotationTranslation:function(){return Gt},fromRotationTranslationScale:function(){return _},fromRotationTranslationScaleOrigin:function(){return C},fromScaling:function(){return Un},fromTranslation:function(){return vn},fromValues:function(){return Aa},fromXRotation:function(){return Tn},fromYRotation:function(){return pa},fromZRotation:function(){return Q},frustum:function(){return ye},getRotation:function(){return R},getScaling:function(){return oe},getTranslation:function(){return se},identity:function(){return Oa},invert:function(){return er},lookAt:function(){return Zt},mul:function(){return cn},multiply:function(){return un},multiplyScalar:function(){return Jr},multiplyScalarAndAdd:function(){return Wr},ortho:function(){return Ut},orthoNO:function(){return yt},orthoZO:function(){return rr},perspective:function(){return _e},perspectiveFromFieldOfView:function(){return Mt},perspectiveNO:function(){return Ce},perspectiveZO:function(){return Fe},rotate:function(){return Vn},rotateX:function(){return ya},rotateY:function(){return ea},rotateZ:function(){return ti},scale:function(){return Jn},set:function(){return Qa},str:function(){return pn},sub:function(){return _n},subtract:function(){return Sr},targetTo:function(){return zr},translate:function(){return Fn},transpose:function(){return La}});var D={};W.r(D),W.d(D,{add:function(){return vt},ceil:function(){return Vr},clone:function(){return Je},copy:function(){return et},create:function(){return mn},cross:function(){return To},dist:function(){return $o},distance:function(){return Xa},div:function(){return cs},divide:function(){return Tr},dot:function(){return Fo},equals:function(){return $i},exactEquals:function(){return Hr},floor:function(){return on},forEach:function(){return ls},fromValues:function(){return ke},inverse:function(){return ja},len:function(){return Dn},length:function(){return Na},lerp:function(){return mi},max:function(){return Zn},min:function(){return xn},mul:function(){return Ts},multiply:function(){return tr},negate:function(){return Ii},normalize:function(){return Co},random:function(){return no},round:function(){return ia},scale:function(){return xa},scaleAndAdd:function(){return li},set:function(){return bt},sqrDist:function(){return po},sqrLen:function(){return Io},squaredDistance:function(){return di},squaredLength:function(){return Ti},str:function(){return Ko},sub:function(){return go},subtract:function(){return It},transformMat4:function(){return Cs},transformQuat:function(){return rs},zero:function(){return Yi}});var P={};W.r(P),W.d(P,{add:function(){return uo},calculateW:function(){return io},clone:function(){return vi},conjugate:function(){return Is},copy:function(){return Ji},create:function(){return Ei},dot:function(){return Fi},equals:function(){return qa},exactEquals:function(){return Oo},exp:function(){return Qo},fromEuler:function(){return as},fromMat3:function(){return vo},fromValues:function(){return so},getAngle:function(){return Uo},getAxisAngle:function(){return Qi},identity:function(){return ns},invert:function(){return oo},len:function(){return Go},length:function(){return Eo},lerp:function(){return bi},ln:function(){return Xo},mul:function(){return Da},multiply:function(){return Wo},normalize:function(){return bo},pow:function(){return hs},random:function(){return Ua},rotateX:function(){return qi},rotateY:function(){return ao},rotateZ:function(){return vs},rotationTo:function(){return Bs},scale:function(){return si},set:function(){return mo},setAxes:function(){return Vo},setAxisAngle:function(){return ds},slerp:function(){return yo},sqlerp:function(){return lf},sqrLen:function(){return qo},squaredLength:function(){return Ao},str:function(){return gs}});var N={};W.r(N),W.d(N,{add:function(){return Xs},clone:function(){return Fs},conjugate:function(){return Wu},copy:function(){return Ai},create:function(){return Js},dot:function(){return wu},equals:function(){return au},exactEquals:function(){return Vu},fromMat4:function(){return zs},fromRotation:function(){return As},fromRotationTranslation:function(){return Gs},fromRotationTranslationValues:function(){return ln},fromTranslation:function(){return fo},fromValues:function(){return fa},getDual:function(){return tu},getReal:function(){return bu},getTranslation:function(){return Gi},identity:function(){return hi},invert:function(){return Su},len:function(){return Vs},length:function(){return is},lerp:function(){return _u},mul:function(){return Jo},multiply:function(){return jo},normalize:function(){return Xu},rotateAroundAxis:function(){return ys},rotateByQuatAppend:function(){return Os},rotateByQuatPrepend:function(){return Ws},rotateX:function(){return ru},rotateY:function(){return Do},rotateZ:function(){return Us},scale:function(){return nu},set:function(){return eu},setDual:function(){return xu},setReal:function(){return ps},sqrLen:function(){return xo},squaredLength:function(){return os},str:function(){return Yo},translate:function(){return Lo}});var y=W(49685);function E(){var l=new y.ARRAY_TYPE(4);return y.ARRAY_TYPE!=Float32Array&&(l[1]=0,l[2]=0),l[0]=1,l[3]=1,l}function g(l){var L=new y.ARRAY_TYPE(4);return L[0]=l[0],L[1]=l[1],L[2]=l[2],L[3]=l[3],L}function p(l,L){return l[0]=L[0],l[1]=L[1],l[2]=L[2],l[3]=L[3],l}function h(l){return l[0]=1,l[1]=0,l[2]=0,l[3]=1,l}function x(l,L,le,we){var Ne=new y.ARRAY_TYPE(4);return Ne[0]=l,Ne[1]=L,Ne[2]=le,Ne[3]=we,Ne}function m(l,L,le,we,Ne){return l[0]=L,l[1]=le,l[2]=we,l[3]=Ne,l}function b(l,L){if(l===L){var le=L[1];l[1]=L[2],l[2]=le}else l[0]=L[0],l[1]=L[2],l[2]=L[1],l[3]=L[3];return l}function A(l,L){var le=L[0],we=L[1],Ne=L[2],ze=L[3],Xe=le*ze-Ne*we;return Xe?(Xe=1/Xe,l[0]=ze*Xe,l[1]=-we*Xe,l[2]=-Ne*Xe,l[3]=le*Xe,l):null}function k(l,L){var le=L[0];return l[0]=L[3],l[1]=-L[1],l[2]=-L[2],l[3]=le,l}function G(l){return l[0]*l[3]-l[2]*l[1]}function T(l,L,le){var we=L[0],Ne=L[1],ze=L[2],Xe=L[3],nt=le[0],st=le[1],xt=le[2],Rt=le[3];return l[0]=we*nt+ze*st,l[1]=Ne*nt+Xe*st,l[2]=we*xt+ze*Rt,l[3]=Ne*xt+Xe*Rt,l}function M(l,L,le){var we=L[0],Ne=L[1],ze=L[2],Xe=L[3],nt=Math.sin(le),st=Math.cos(le);return l[0]=we*st+ze*nt,l[1]=Ne*st+Xe*nt,l[2]=we*-nt+ze*st,l[3]=Ne*-nt+Xe*st,l}function V(l,L,le){var we=L[0],Ne=L[1],ze=L[2],Xe=L[3],nt=le[0],st=le[1];return l[0]=we*nt,l[1]=Ne*nt,l[2]=ze*st,l[3]=Xe*st,l}function j(l,L){var le=Math.sin(L),we=Math.cos(L);return l[0]=we,l[1]=le,l[2]=-le,l[3]=we,l}function $(l,L){return l[0]=L[0],l[1]=0,l[2]=0,l[3]=L[1],l}function q(l){return"mat2("+l[0]+", "+l[1]+", "+l[2]+", "+l[3]+")"}function te(l){return Math.hypot(l[0],l[1],l[2],l[3])}function ee(l,L,le,we){return l[2]=we[2]/we[0],le[0]=we[0],le[1]=we[1],le[3]=we[3]-l[2]*le[1],[l,L,le]}function ie(l,L,le){return l[0]=L[0]+le[0],l[1]=L[1]+le[1],l[2]=L[2]+le[2],l[3]=L[3]+le[3],l}function ce(l,L,le){return l[0]=L[0]-le[0],l[1]=L[1]-le[1],l[2]=L[2]-le[2],l[3]=L[3]-le[3],l}function ge(l,L){return l[0]===L[0]&&l[1]===L[1]&&l[2]===L[2]&&l[3]===L[3]}function Le(l,L){var le=l[0],we=l[1],Ne=l[2],ze=l[3],Xe=L[0],nt=L[1],st=L[2],xt=L[3];return Math.abs(le-Xe)<=y.EPSILON*Math.max(1,Math.abs(le),Math.abs(Xe))&&Math.abs(we-nt)<=y.EPSILON*Math.max(1,Math.abs(we),Math.abs(nt))&&Math.abs(Ne-st)<=y.EPSILON*Math.max(1,Math.abs(Ne),Math.abs(st))&&Math.abs(ze-xt)<=y.EPSILON*Math.max(1,Math.abs(ze),Math.abs(xt))}function Oe(l,L,le){return l[0]=L[0]*le,l[1]=L[1]*le,l[2]=L[2]*le,l[3]=L[3]*le,l}function Re(l,L,le,we){return l[0]=L[0]+le[0]*we,l[1]=L[1]+le[1]*we,l[2]=L[2]+le[2]*we,l[3]=L[3]+le[3]*we,l}var de=T,ve=ce;function be(){var l=new y.ARRAY_TYPE(6);return y.ARRAY_TYPE!=Float32Array&&(l[1]=0,l[2]=0,l[4]=0,l[5]=0),l[0]=1,l[3]=1,l}function Ae(l){var L=new y.ARRAY_TYPE(6);return L[0]=l[0],L[1]=l[1],L[2]=l[2],L[3]=l[3],L[4]=l[4],L[5]=l[5],L}function Pe(l,L){return l[0]=L[0],l[1]=L[1],l[2]=L[2],l[3]=L[3],l[4]=L[4],l[5]=L[5],l}function Ve(l){return l[0]=1,l[1]=0,l[2]=0,l[3]=1,l[4]=0,l[5]=0,l}function Ue(l,L,le,we,Ne,ze){var Xe=new y.ARRAY_TYPE(6);return Xe[0]=l,Xe[1]=L,Xe[2]=le,Xe[3]=we,Xe[4]=Ne,Xe[5]=ze,Xe}function Ke(l,L,le,we,Ne,ze,Xe){return l[0]=L,l[1]=le,l[2]=we,l[3]=Ne,l[4]=ze,l[5]=Xe,l}function _t(l,L){var le=L[0],we=L[1],Ne=L[2],ze=L[3],Xe=L[4],nt=L[5],st=le*ze-we*Ne;return st?(st=1/st,l[0]=ze*st,l[1]=-we*st,l[2]=-Ne*st,l[3]=le*st,l[4]=(Ne*nt-ze*Xe)*st,l[5]=(we*Xe-le*nt)*st,l):null}function Ct(l){return l[0]*l[3]-l[1]*l[2]}function He(l,L,le){var we=L[0],Ne=L[1],ze=L[2],Xe=L[3],nt=L[4],st=L[5],xt=le[0],Rt=le[1],ur=le[2],gr=le[3],fr=le[4],Pr=le[5];return l[0]=we*xt+ze*Rt,l[1]=Ne*xt+Xe*Rt,l[2]=we*ur+ze*gr,l[3]=Ne*ur+Xe*gr,l[4]=we*fr+ze*Pr+nt,l[5]=Ne*fr+Xe*Pr+st,l}function ht(l,L,le){var we=L[0],Ne=L[1],ze=L[2],Xe=L[3],nt=L[4],st=L[5],xt=Math.sin(le),Rt=Math.cos(le);return l[0]=we*Rt+ze*xt,l[1]=Ne*Rt+Xe*xt,l[2]=we*-xt+ze*Rt,l[3]=Ne*-xt+Xe*Rt,l[4]=nt,l[5]=st,l}function mt(l,L,le){var we=L[0],Ne=L[1],ze=L[2],Xe=L[3],nt=L[4],st=L[5],xt=le[0],Rt=le[1];return l[0]=we*xt,l[1]=Ne*xt,l[2]=ze*Rt,l[3]=Xe*Rt,l[4]=nt,l[5]=st,l}function dt(l,L,le){var we=L[0],Ne=L[1],ze=L[2],Xe=L[3],nt=L[4],st=L[5],xt=le[0],Rt=le[1];return l[0]=we,l[1]=Ne,l[2]=ze,l[3]=Xe,l[4]=we*xt+ze*Rt+nt,l[5]=Ne*xt+Xe*Rt+st,l}function Et(l,L){var le=Math.sin(L),we=Math.cos(L);return l[0]=we,l[1]=le,l[2]=-le,l[3]=we,l[4]=0,l[5]=0,l}function it(l,L){return l[0]=L[0],l[1]=0,l[2]=0,l[3]=L[1],l[4]=0,l[5]=0,l}function St(l,L){return l[0]=1,l[1]=0,l[2]=0,l[3]=1,l[4]=L[0],l[5]=L[1],l}function $t(l){return"mat2d("+l[0]+", "+l[1]+", "+l[2]+", "+l[3]+", "+l[4]+", "+l[5]+")"}function Nt(l){return Math.hypot(l[0],l[1],l[2],l[3],l[4],l[5],1)}function mr(l,L,le){return l[0]=L[0]+le[0],l[1]=L[1]+le[1],l[2]=L[2]+le[2],l[3]=L[3]+le[3],l[4]=L[4]+le[4],l[5]=L[5]+le[5],l}function br(l,L,le){return l[0]=L[0]-le[0],l[1]=L[1]-le[1],l[2]=L[2]-le[2],l[3]=L[3]-le[3],l[4]=L[4]-le[4],l[5]=L[5]-le[5],l}function nn(l,L,le){return l[0]=L[0]*le,l[1]=L[1]*le,l[2]=L[2]*le,l[3]=L[3]*le,l[4]=L[4]*le,l[5]=L[5]*le,l}function In(l,L,le,we){return l[0]=L[0]+le[0]*we,l[1]=L[1]+le[1]*we,l[2]=L[2]+le[2]*we,l[3]=L[3]+le[3]*we,l[4]=L[4]+le[4]*we,l[5]=L[5]+le[5]*we,l}function bn(l,L){return l[0]===L[0]&&l[1]===L[1]&&l[2]===L[2]&&l[3]===L[3]&&l[4]===L[4]&&l[5]===L[5]}function We(l,L){var le=l[0],we=l[1],Ne=l[2],ze=l[3],Xe=l[4],nt=l[5],st=L[0],xt=L[1],Rt=L[2],ur=L[3],gr=L[4],fr=L[5];return Math.abs(le-st)<=y.EPSILON*Math.max(1,Math.abs(le),Math.abs(st))&&Math.abs(we-xt)<=y.EPSILON*Math.max(1,Math.abs(we),Math.abs(xt))&&Math.abs(Ne-Rt)<=y.EPSILON*Math.max(1,Math.abs(Ne),Math.abs(Rt))&&Math.abs(ze-ur)<=y.EPSILON*Math.max(1,Math.abs(ze),Math.abs(ur))&&Math.abs(Xe-gr)<=y.EPSILON*Math.max(1,Math.abs(Xe),Math.abs(gr))&&Math.abs(nt-fr)<=y.EPSILON*Math.max(1,Math.abs(nt),Math.abs(fr))}var zn=He,kn=br,aa=W(35600);function ri(){var l=new y.ARRAY_TYPE(16);return y.ARRAY_TYPE!=Float32Array&&(l[1]=0,l[2]=0,l[3]=0,l[4]=0,l[6]=0,l[7]=0,l[8]=0,l[9]=0,l[11]=0,l[12]=0,l[13]=0,l[14]=0),l[0]=1,l[5]=1,l[10]=1,l[15]=1,l}function Ia(l){var L=new y.ARRAY_TYPE(16);return L[0]=l[0],L[1]=l[1],L[2]=l[2],L[3]=l[3],L[4]=l[4],L[5]=l[5],L[6]=l[6],L[7]=l[7],L[8]=l[8],L[9]=l[9],L[10]=l[10],L[11]=l[11],L[12]=l[12],L[13]=l[13],L[14]=l[14],L[15]=l[15],L}function za(l,L){return l[0]=L[0],l[1]=L[1],l[2]=L[2],l[3]=L[3],l[4]=L[4],l[5]=L[5],l[6]=L[6],l[7]=L[7],l[8]=L[8],l[9]=L[9],l[10]=L[10],l[11]=L[11],l[12]=L[12],l[13]=L[13],l[14]=L[14],l[15]=L[15],l}function Aa(l,L,le,we,Ne,ze,Xe,nt,st,xt,Rt,ur,gr,fr,Pr,jr){var cr=new y.ARRAY_TYPE(16);return cr[0]=l,cr[1]=L,cr[2]=le,cr[3]=we,cr[4]=Ne,cr[5]=ze,cr[6]=Xe,cr[7]=nt,cr[8]=st,cr[9]=xt,cr[10]=Rt,cr[11]=ur,cr[12]=gr,cr[13]=fr,cr[14]=Pr,cr[15]=jr,cr}function Qa(l,L,le,we,Ne,ze,Xe,nt,st,xt,Rt,ur,gr,fr,Pr,jr,cr){return l[0]=L,l[1]=le,l[2]=we,l[3]=Ne,l[4]=ze,l[5]=Xe,l[6]=nt,l[7]=st,l[8]=xt,l[9]=Rt,l[10]=ur,l[11]=gr,l[12]=fr,l[13]=Pr,l[14]=jr,l[15]=cr,l}function Oa(l){return l[0]=1,l[1]=0,l[2]=0,l[3]=0,l[4]=0,l[5]=1,l[6]=0,l[7]=0,l[8]=0,l[9]=0,l[10]=1,l[11]=0,l[12]=0,l[13]=0,l[14]=0,l[15]=1,l}function La(l,L){if(l===L){var le=L[1],we=L[2],Ne=L[3],ze=L[6],Xe=L[7],nt=L[11];l[1]=L[4],l[2]=L[8],l[3]=L[12],l[4]=le,l[6]=L[9],l[7]=L[13],l[8]=we,l[9]=ze,l[11]=L[14],l[12]=Ne,l[13]=Xe,l[14]=nt}else l[0]=L[0],l[1]=L[4],l[2]=L[8],l[3]=L[12],l[4]=L[1],l[5]=L[5],l[6]=L[9],l[7]=L[13],l[8]=L[2],l[9]=L[6],l[10]=L[10],l[11]=L[14],l[12]=L[3],l[13]=L[7],l[14]=L[11],l[15]=L[15];return l}function er(l,L){var le=L[0],we=L[1],Ne=L[2],ze=L[3],Xe=L[4],nt=L[5],st=L[6],xt=L[7],Rt=L[8],ur=L[9],gr=L[10],fr=L[11],Pr=L[12],jr=L[13],cr=L[14],tn=L[15],ra=le*nt-we*Xe,ca=le*st-Ne*Xe,$n=le*xt-ze*Xe,On=we*st-Ne*nt,Gn=we*xt-ze*nt,Ha=Ne*xt-ze*st,ni=Rt*jr-ur*Pr,xi=Rt*cr-gr*Pr,Oi=Rt*tn-fr*Pr,wi=ur*cr-gr*jr,Li=ur*tn-fr*jr,Ri=gr*tn-fr*cr,wa=ra*Ri-ca*Li+$n*wi+On*Oi-Gn*xi+Ha*ni;return wa?(wa=1/wa,l[0]=(nt*Ri-st*Li+xt*wi)*wa,l[1]=(Ne*Li-we*Ri-ze*wi)*wa,l[2]=(jr*Ha-cr*Gn+tn*On)*wa,l[3]=(gr*Gn-ur*Ha-fr*On)*wa,l[4]=(st*Oi-Xe*Ri-xt*xi)*wa,l[5]=(le*Ri-Ne*Oi+ze*xi)*wa,l[6]=(cr*$n-Pr*Ha-tn*ca)*wa,l[7]=(Rt*Ha-gr*$n+fr*ca)*wa,l[8]=(Xe*Li-nt*Oi+xt*ni)*wa,l[9]=(we*Oi-le*Li-ze*ni)*wa,l[10]=(Pr*Gn-jr*$n+tn*ra)*wa,l[11]=(ur*$n-Rt*Gn-fr*ra)*wa,l[12]=(nt*xi-Xe*wi-st*ni)*wa,l[13]=(le*wi-we*xi+Ne*ni)*wa,l[14]=(jr*ca-Pr*On-cr*ra)*wa,l[15]=(Rt*On-ur*ca+gr*ra)*wa,l):null}function Cr(l,L){var le=L[0],we=L[1],Ne=L[2],ze=L[3],Xe=L[4],nt=L[5],st=L[6],xt=L[7],Rt=L[8],ur=L[9],gr=L[10],fr=L[11],Pr=L[12],jr=L[13],cr=L[14],tn=L[15];return l[0]=nt*(gr*tn-fr*cr)-ur*(st*tn-xt*cr)+jr*(st*fr-xt*gr),l[1]=-(we*(gr*tn-fr*cr)-ur*(Ne*tn-ze*cr)+jr*(Ne*fr-ze*gr)),l[2]=we*(st*tn-xt*cr)-nt*(Ne*tn-ze*cr)+jr*(Ne*xt-ze*st),l[3]=-(we*(st*fr-xt*gr)-nt*(Ne*fr-ze*gr)+ur*(Ne*xt-ze*st)),l[4]=-(Xe*(gr*tn-fr*cr)-Rt*(st*tn-xt*cr)+Pr*(st*fr-xt*gr)),l[5]=le*(gr*tn-fr*cr)-Rt*(Ne*tn-ze*cr)+Pr*(Ne*fr-ze*gr),l[6]=-(le*(st*tn-xt*cr)-Xe*(Ne*tn-ze*cr)+Pr*(Ne*xt-ze*st)),l[7]=le*(st*fr-xt*gr)-Xe*(Ne*fr-ze*gr)+Rt*(Ne*xt-ze*st),l[8]=Xe*(ur*tn-fr*jr)-Rt*(nt*tn-xt*jr)+Pr*(nt*fr-xt*ur),l[9]=-(le*(ur*tn-fr*jr)-Rt*(we*tn-ze*jr)+Pr*(we*fr-ze*ur)),l[10]=le*(nt*tn-xt*jr)-Xe*(we*tn-ze*jr)+Pr*(we*xt-ze*nt),l[11]=-(le*(nt*fr-xt*ur)-Xe*(we*fr-ze*ur)+Rt*(we*xt-ze*nt)),l[12]=-(Xe*(ur*cr-gr*jr)-Rt*(nt*cr-st*jr)+Pr*(nt*gr-st*ur)),l[13]=le*(ur*cr-gr*jr)-Rt*(we*cr-Ne*jr)+Pr*(we*gr-Ne*ur),l[14]=-(le*(nt*cr-st*jr)-Xe*(we*cr-Ne*jr)+Pr*(we*st-Ne*nt)),l[15]=le*(nt*gr-st*ur)-Xe*(we*gr-Ne*ur)+Rt*(we*st-Ne*nt),l}function an(l){var L=l[0],le=l[1],we=l[2],Ne=l[3],ze=l[4],Xe=l[5],nt=l[6],st=l[7],xt=l[8],Rt=l[9],ur=l[10],gr=l[11],fr=l[12],Pr=l[13],jr=l[14],cr=l[15],tn=L*Xe-le*ze,ra=L*nt-we*ze,ca=L*st-Ne*ze,$n=le*nt-we*Xe,On=le*st-Ne*Xe,Gn=we*st-Ne*nt,Ha=xt*Pr-Rt*fr,ni=xt*jr-ur*fr,xi=xt*cr-gr*fr,Oi=Rt*jr-ur*Pr,wi=Rt*cr-gr*Pr,Li=ur*cr-gr*jr;return tn*Li-ra*wi+ca*Oi+$n*xi-On*ni+Gn*Ha}function un(l,L,le){var we=L[0],Ne=L[1],ze=L[2],Xe=L[3],nt=L[4],st=L[5],xt=L[6],Rt=L[7],ur=L[8],gr=L[9],fr=L[10],Pr=L[11],jr=L[12],cr=L[13],tn=L[14],ra=L[15],ca=le[0],$n=le[1],On=le[2],Gn=le[3];return l[0]=ca*we+$n*nt+On*ur+Gn*jr,l[1]=ca*Ne+$n*st+On*gr+Gn*cr,l[2]=ca*ze+$n*xt+On*fr+Gn*tn,l[3]=ca*Xe+$n*Rt+On*Pr+Gn*ra,ca=le[4],$n=le[5],On=le[6],Gn=le[7],l[4]=ca*we+$n*nt+On*ur+Gn*jr,l[5]=ca*Ne+$n*st+On*gr+Gn*cr,l[6]=ca*ze+$n*xt+On*fr+Gn*tn,l[7]=ca*Xe+$n*Rt+On*Pr+Gn*ra,ca=le[8],$n=le[9],On=le[10],Gn=le[11],l[8]=ca*we+$n*nt+On*ur+Gn*jr,l[9]=ca*Ne+$n*st+On*gr+Gn*cr,l[10]=ca*ze+$n*xt+On*fr+Gn*tn,l[11]=ca*Xe+$n*Rt+On*Pr+Gn*ra,ca=le[12],$n=le[13],On=le[14],Gn=le[15],l[12]=ca*we+$n*nt+On*ur+Gn*jr,l[13]=ca*Ne+$n*st+On*gr+Gn*cr,l[14]=ca*ze+$n*xt+On*fr+Gn*tn,l[15]=ca*Xe+$n*Rt+On*Pr+Gn*ra,l}function Fn(l,L,le){var we=le[0],Ne=le[1],ze=le[2],Xe,nt,st,xt,Rt,ur,gr,fr,Pr,jr,cr,tn;return L===l?(l[12]=L[0]*we+L[4]*Ne+L[8]*ze+L[12],l[13]=L[1]*we+L[5]*Ne+L[9]*ze+L[13],l[14]=L[2]*we+L[6]*Ne+L[10]*ze+L[14],l[15]=L[3]*we+L[7]*Ne+L[11]*ze+L[15]):(Xe=L[0],nt=L[1],st=L[2],xt=L[3],Rt=L[4],ur=L[5],gr=L[6],fr=L[7],Pr=L[8],jr=L[9],cr=L[10],tn=L[11],l[0]=Xe,l[1]=nt,l[2]=st,l[3]=xt,l[4]=Rt,l[5]=ur,l[6]=gr,l[7]=fr,l[8]=Pr,l[9]=jr,l[10]=cr,l[11]=tn,l[12]=Xe*we+Rt*Ne+Pr*ze+L[12],l[13]=nt*we+ur*Ne+jr*ze+L[13],l[14]=st*we+gr*Ne+cr*ze+L[14],l[15]=xt*we+fr*Ne+tn*ze+L[15]),l}function Jn(l,L,le){var we=le[0],Ne=le[1],ze=le[2];return l[0]=L[0]*we,l[1]=L[1]*we,l[2]=L[2]*we,l[3]=L[3]*we,l[4]=L[4]*Ne,l[5]=L[5]*Ne,l[6]=L[6]*Ne,l[7]=L[7]*Ne,l[8]=L[8]*ze,l[9]=L[9]*ze,l[10]=L[10]*ze,l[11]=L[11]*ze,l[12]=L[12],l[13]=L[13],l[14]=L[14],l[15]=L[15],l}function Vn(l,L,le,we){var Ne=we[0],ze=we[1],Xe=we[2],nt=Math.hypot(Ne,ze,Xe),st,xt,Rt,ur,gr,fr,Pr,jr,cr,tn,ra,ca,$n,On,Gn,Ha,ni,xi,Oi,wi,Li,Ri,wa,Za;return nt0?(le[0]=(nt*Xe+Rt*we+st*ze-xt*Ne)*2/ur,le[1]=(st*Xe+Rt*Ne+xt*we-nt*ze)*2/ur,le[2]=(xt*Xe+Rt*ze+nt*Ne-st*we)*2/ur):(le[0]=(nt*Xe+Rt*we+st*ze-xt*Ne)*2,le[1]=(st*Xe+Rt*Ne+xt*we-nt*ze)*2,le[2]=(xt*Xe+Rt*ze+nt*Ne-st*we)*2),Gt(l,L,le),l}function se(l,L){return l[0]=L[12],l[1]=L[13],l[2]=L[14],l}function oe(l,L){var le=L[0],we=L[1],Ne=L[2],ze=L[4],Xe=L[5],nt=L[6],st=L[8],xt=L[9],Rt=L[10];return l[0]=Math.hypot(le,we,Ne),l[1]=Math.hypot(ze,Xe,nt),l[2]=Math.hypot(st,xt,Rt),l}function R(l,L){var le=new y.ARRAY_TYPE(3);oe(le,L);var we=1/le[0],Ne=1/le[1],ze=1/le[2],Xe=L[0]*we,nt=L[1]*Ne,st=L[2]*ze,xt=L[4]*we,Rt=L[5]*Ne,ur=L[6]*ze,gr=L[8]*we,fr=L[9]*Ne,Pr=L[10]*ze,jr=Xe+Rt+Pr,cr=0;return jr>0?(cr=Math.sqrt(jr+1)*2,l[3]=.25*cr,l[0]=(ur-fr)/cr,l[1]=(gr-st)/cr,l[2]=(nt-xt)/cr):Xe>Rt&&Xe>Pr?(cr=Math.sqrt(1+Xe-Rt-Pr)*2,l[3]=(ur-fr)/cr,l[0]=.25*cr,l[1]=(nt+xt)/cr,l[2]=(gr+st)/cr):Rt>Pr?(cr=Math.sqrt(1+Rt-Xe-Pr)*2,l[3]=(gr-st)/cr,l[0]=(nt+xt)/cr,l[1]=.25*cr,l[2]=(ur+fr)/cr):(cr=Math.sqrt(1+Pr-Xe-Rt)*2,l[3]=(nt-xt)/cr,l[0]=(gr+st)/cr,l[1]=(ur+fr)/cr,l[2]=.25*cr),l}function _(l,L,le,we){var Ne=L[0],ze=L[1],Xe=L[2],nt=L[3],st=Ne+Ne,xt=ze+ze,Rt=Xe+Xe,ur=Ne*st,gr=Ne*xt,fr=Ne*Rt,Pr=ze*xt,jr=ze*Rt,cr=Xe*Rt,tn=nt*st,ra=nt*xt,ca=nt*Rt,$n=we[0],On=we[1],Gn=we[2];return l[0]=(1-(Pr+cr))*$n,l[1]=(gr+ca)*$n,l[2]=(fr-ra)*$n,l[3]=0,l[4]=(gr-ca)*On,l[5]=(1-(ur+cr))*On,l[6]=(jr+tn)*On,l[7]=0,l[8]=(fr+ra)*Gn,l[9]=(jr-tn)*Gn,l[10]=(1-(ur+Pr))*Gn,l[11]=0,l[12]=le[0],l[13]=le[1],l[14]=le[2],l[15]=1,l}function C(l,L,le,we,Ne){var ze=L[0],Xe=L[1],nt=L[2],st=L[3],xt=ze+ze,Rt=Xe+Xe,ur=nt+nt,gr=ze*xt,fr=ze*Rt,Pr=ze*ur,jr=Xe*Rt,cr=Xe*ur,tn=nt*ur,ra=st*xt,ca=st*Rt,$n=st*ur,On=we[0],Gn=we[1],Ha=we[2],ni=Ne[0],xi=Ne[1],Oi=Ne[2],wi=(1-(jr+tn))*On,Li=(fr+$n)*On,Ri=(Pr-ca)*On,wa=(fr-$n)*Gn,Za=(1-(gr+tn))*Gn,ms=(cr+ra)*Gn,ss=(Pr+ca)*Ha,No=(cr-ra)*Ha,js=(1-(gr+jr))*Ha;return l[0]=wi,l[1]=Li,l[2]=Ri,l[3]=0,l[4]=wa,l[5]=Za,l[6]=ms,l[7]=0,l[8]=ss,l[9]=No,l[10]=js,l[11]=0,l[12]=le[0]+ni-(wi*ni+wa*xi+ss*Oi),l[13]=le[1]+xi-(Li*ni+Za*xi+No*Oi),l[14]=le[2]+Oi-(Ri*ni+ms*xi+js*Oi),l[15]=1,l}function H(l,L){var le=L[0],we=L[1],Ne=L[2],ze=L[3],Xe=le+le,nt=we+we,st=Ne+Ne,xt=le*Xe,Rt=we*Xe,ur=we*nt,gr=Ne*Xe,fr=Ne*nt,Pr=Ne*st,jr=ze*Xe,cr=ze*nt,tn=ze*st;return l[0]=1-ur-Pr,l[1]=Rt+tn,l[2]=gr-cr,l[3]=0,l[4]=Rt-tn,l[5]=1-xt-Pr,l[6]=fr+jr,l[7]=0,l[8]=gr+cr,l[9]=fr-jr,l[10]=1-xt-ur,l[11]=0,l[12]=0,l[13]=0,l[14]=0,l[15]=1,l}function ye(l,L,le,we,Ne,ze,Xe){var nt=1/(le-L),st=1/(Ne-we),xt=1/(ze-Xe);return l[0]=ze*2*nt,l[1]=0,l[2]=0,l[3]=0,l[4]=0,l[5]=ze*2*st,l[6]=0,l[7]=0,l[8]=(le+L)*nt,l[9]=(Ne+we)*st,l[10]=(Xe+ze)*xt,l[11]=-1,l[12]=0,l[13]=0,l[14]=Xe*ze*2*xt,l[15]=0,l}function Ce(l,L,le,we,Ne){var ze=1/Math.tan(L/2),Xe;return l[0]=ze/le,l[1]=0,l[2]=0,l[3]=0,l[4]=0,l[5]=ze,l[6]=0,l[7]=0,l[8]=0,l[9]=0,l[11]=-1,l[12]=0,l[13]=0,l[15]=0,Ne!=null&&Ne!==Infinity?(Xe=1/(we-Ne),l[10]=(Ne+we)*Xe,l[14]=2*Ne*we*Xe):(l[10]=-1,l[14]=-2*we),l}var _e=Ce;function Fe(l,L,le,we,Ne){var ze=1/Math.tan(L/2),Xe;return l[0]=ze/le,l[1]=0,l[2]=0,l[3]=0,l[4]=0,l[5]=ze,l[6]=0,l[7]=0,l[8]=0,l[9]=0,l[11]=-1,l[12]=0,l[13]=0,l[15]=0,Ne!=null&&Ne!==Infinity?(Xe=1/(we-Ne),l[10]=Ne*Xe,l[14]=Ne*we*Xe):(l[10]=-1,l[14]=-we),l}function Mt(l,L,le,we){var Ne=Math.tan(L.upDegrees*Math.PI/180),ze=Math.tan(L.downDegrees*Math.PI/180),Xe=Math.tan(L.leftDegrees*Math.PI/180),nt=Math.tan(L.rightDegrees*Math.PI/180),st=2/(Xe+nt),xt=2/(Ne+ze);return l[0]=st,l[1]=0,l[2]=0,l[3]=0,l[4]=0,l[5]=xt,l[6]=0,l[7]=0,l[8]=-((Xe-nt)*st*.5),l[9]=(Ne-ze)*xt*.5,l[10]=we/(le-we),l[11]=-1,l[12]=0,l[13]=0,l[14]=we*le/(le-we),l[15]=0,l}function yt(l,L,le,we,Ne,ze,Xe){var nt=1/(L-le),st=1/(we-Ne),xt=1/(ze-Xe);return l[0]=-2*nt,l[1]=0,l[2]=0,l[3]=0,l[4]=0,l[5]=-2*st,l[6]=0,l[7]=0,l[8]=0,l[9]=0,l[10]=2*xt,l[11]=0,l[12]=(L+le)*nt,l[13]=(Ne+we)*st,l[14]=(Xe+ze)*xt,l[15]=1,l}var Ut=yt;function rr(l,L,le,we,Ne,ze,Xe){var nt=1/(L-le),st=1/(we-Ne),xt=1/(ze-Xe);return l[0]=-2*nt,l[1]=0,l[2]=0,l[3]=0,l[4]=0,l[5]=-2*st,l[6]=0,l[7]=0,l[8]=0,l[9]=0,l[10]=xt,l[11]=0,l[12]=(L+le)*nt,l[13]=(Ne+we)*st,l[14]=ze*xt,l[15]=1,l}function Zt(l,L,le,we){var Ne,ze,Xe,nt,st,xt,Rt,ur,gr,fr,Pr=L[0],jr=L[1],cr=L[2],tn=we[0],ra=we[1],ca=we[2],$n=le[0],On=le[1],Gn=le[2];return Math.abs(Pr-$n)0&&(fr=1/Math.sqrt(fr),Rt*=fr,ur*=fr,gr*=fr);var Pr=st*gr-xt*ur,jr=xt*Rt-nt*gr,cr=nt*ur-st*Rt;return fr=Pr*Pr+jr*jr+cr*cr,fr>0&&(fr=1/Math.sqrt(fr),Pr*=fr,jr*=fr,cr*=fr),l[0]=Pr,l[1]=jr,l[2]=cr,l[3]=0,l[4]=ur*cr-gr*jr,l[5]=gr*Pr-Rt*cr,l[6]=Rt*jr-ur*Pr,l[7]=0,l[8]=Rt,l[9]=ur,l[10]=gr,l[11]=0,l[12]=Ne,l[13]=ze,l[14]=Xe,l[15]=1,l}function pn(l){return"mat4("+l[0]+", "+l[1]+", "+l[2]+", "+l[3]+", "+l[4]+", "+l[5]+", "+l[6]+", "+l[7]+", "+l[8]+", "+l[9]+", "+l[10]+", "+l[11]+", "+l[12]+", "+l[13]+", "+l[14]+", "+l[15]+")"}function Bt(l){return Math.hypot(l[0],l[1],l[2],l[3],l[4],l[5],l[6],l[7],l[8],l[9],l[10],l[11],l[12],l[13],l[14],l[15])}function ir(l,L,le){return l[0]=L[0]+le[0],l[1]=L[1]+le[1],l[2]=L[2]+le[2],l[3]=L[3]+le[3],l[4]=L[4]+le[4],l[5]=L[5]+le[5],l[6]=L[6]+le[6],l[7]=L[7]+le[7],l[8]=L[8]+le[8],l[9]=L[9]+le[9],l[10]=L[10]+le[10],l[11]=L[11]+le[11],l[12]=L[12]+le[12],l[13]=L[13]+le[13],l[14]=L[14]+le[14],l[15]=L[15]+le[15],l}function Sr(l,L,le){return l[0]=L[0]-le[0],l[1]=L[1]-le[1],l[2]=L[2]-le[2],l[3]=L[3]-le[3],l[4]=L[4]-le[4],l[5]=L[5]-le[5],l[6]=L[6]-le[6],l[7]=L[7]-le[7],l[8]=L[8]-le[8],l[9]=L[9]-le[9],l[10]=L[10]-le[10],l[11]=L[11]-le[11],l[12]=L[12]-le[12],l[13]=L[13]-le[13],l[14]=L[14]-le[14],l[15]=L[15]-le[15],l}function Jr(l,L,le){return l[0]=L[0]*le,l[1]=L[1]*le,l[2]=L[2]*le,l[3]=L[3]*le,l[4]=L[4]*le,l[5]=L[5]*le,l[6]=L[6]*le,l[7]=L[7]*le,l[8]=L[8]*le,l[9]=L[9]*le,l[10]=L[10]*le,l[11]=L[11]*le,l[12]=L[12]*le,l[13]=L[13]*le,l[14]=L[14]*le,l[15]=L[15]*le,l}function Wr(l,L,le,we){return l[0]=L[0]+le[0]*we,l[1]=L[1]+le[1]*we,l[2]=L[2]+le[2]*we,l[3]=L[3]+le[3]*we,l[4]=L[4]+le[4]*we,l[5]=L[5]+le[5]*we,l[6]=L[6]+le[6]*we,l[7]=L[7]+le[7]*we,l[8]=L[8]+le[8]*we,l[9]=L[9]+le[9]*we,l[10]=L[10]+le[10]*we,l[11]=L[11]+le[11]*we,l[12]=L[12]+le[12]*we,l[13]=L[13]+le[13]*we,l[14]=L[14]+le[14]*we,l[15]=L[15]+le[15]*we,l}function sa(l,L){return l[0]===L[0]&&l[1]===L[1]&&l[2]===L[2]&&l[3]===L[3]&&l[4]===L[4]&&l[5]===L[5]&&l[6]===L[6]&&l[7]===L[7]&&l[8]===L[8]&&l[9]===L[9]&&l[10]===L[10]&&l[11]===L[11]&&l[12]===L[12]&&l[13]===L[13]&&l[14]===L[14]&&l[15]===L[15]}function jn(l,L){var le=l[0],we=l[1],Ne=l[2],ze=l[3],Xe=l[4],nt=l[5],st=l[6],xt=l[7],Rt=l[8],ur=l[9],gr=l[10],fr=l[11],Pr=l[12],jr=l[13],cr=l[14],tn=l[15],ra=L[0],ca=L[1],$n=L[2],On=L[3],Gn=L[4],Ha=L[5],ni=L[6],xi=L[7],Oi=L[8],wi=L[9],Li=L[10],Ri=L[11],wa=L[12],Za=L[13],ms=L[14],ss=L[15];return Math.abs(le-ra)<=y.EPSILON*Math.max(1,Math.abs(le),Math.abs(ra))&&Math.abs(we-ca)<=y.EPSILON*Math.max(1,Math.abs(we),Math.abs(ca))&&Math.abs(Ne-$n)<=y.EPSILON*Math.max(1,Math.abs(Ne),Math.abs($n))&&Math.abs(ze-On)<=y.EPSILON*Math.max(1,Math.abs(ze),Math.abs(On))&&Math.abs(Xe-Gn)<=y.EPSILON*Math.max(1,Math.abs(Xe),Math.abs(Gn))&&Math.abs(nt-Ha)<=y.EPSILON*Math.max(1,Math.abs(nt),Math.abs(Ha))&&Math.abs(st-ni)<=y.EPSILON*Math.max(1,Math.abs(st),Math.abs(ni))&&Math.abs(xt-xi)<=y.EPSILON*Math.max(1,Math.abs(xt),Math.abs(xi))&&Math.abs(Rt-Oi)<=y.EPSILON*Math.max(1,Math.abs(Rt),Math.abs(Oi))&&Math.abs(ur-wi)<=y.EPSILON*Math.max(1,Math.abs(ur),Math.abs(wi))&&Math.abs(gr-Li)<=y.EPSILON*Math.max(1,Math.abs(gr),Math.abs(Li))&&Math.abs(fr-Ri)<=y.EPSILON*Math.max(1,Math.abs(fr),Math.abs(Ri))&&Math.abs(Pr-wa)<=y.EPSILON*Math.max(1,Math.abs(Pr),Math.abs(wa))&&Math.abs(jr-Za)<=y.EPSILON*Math.max(1,Math.abs(jr),Math.abs(Za))&&Math.abs(cr-ms)<=y.EPSILON*Math.max(1,Math.abs(cr),Math.abs(ms))&&Math.abs(tn-ss)<=y.EPSILON*Math.max(1,Math.abs(tn),Math.abs(ss))}var cn=un,_n=Sr,ua=W(77160);function mn(){var l=new y.ARRAY_TYPE(4);return y.ARRAY_TYPE!=Float32Array&&(l[0]=0,l[1]=0,l[2]=0,l[3]=0),l}function Je(l){var L=new y.ARRAY_TYPE(4);return L[0]=l[0],L[1]=l[1],L[2]=l[2],L[3]=l[3],L}function ke(l,L,le,we){var Ne=new y.ARRAY_TYPE(4);return Ne[0]=l,Ne[1]=L,Ne[2]=le,Ne[3]=we,Ne}function et(l,L){return l[0]=L[0],l[1]=L[1],l[2]=L[2],l[3]=L[3],l}function bt(l,L,le,we,Ne){return l[0]=L,l[1]=le,l[2]=we,l[3]=Ne,l}function vt(l,L,le){return l[0]=L[0]+le[0],l[1]=L[1]+le[1],l[2]=L[2]+le[2],l[3]=L[3]+le[3],l}function It(l,L,le){return l[0]=L[0]-le[0],l[1]=L[1]-le[1],l[2]=L[2]-le[2],l[3]=L[3]-le[3],l}function tr(l,L,le){return l[0]=L[0]*le[0],l[1]=L[1]*le[1],l[2]=L[2]*le[2],l[3]=L[3]*le[3],l}function Tr(l,L,le){return l[0]=L[0]/le[0],l[1]=L[1]/le[1],l[2]=L[2]/le[2],l[3]=L[3]/le[3],l}function Vr(l,L){return l[0]=Math.ceil(L[0]),l[1]=Math.ceil(L[1]),l[2]=Math.ceil(L[2]),l[3]=Math.ceil(L[3]),l}function on(l,L){return l[0]=Math.floor(L[0]),l[1]=Math.floor(L[1]),l[2]=Math.floor(L[2]),l[3]=Math.floor(L[3]),l}function xn(l,L,le){return l[0]=Math.min(L[0],le[0]),l[1]=Math.min(L[1],le[1]),l[2]=Math.min(L[2],le[2]),l[3]=Math.min(L[3],le[3]),l}function Zn(l,L,le){return l[0]=Math.max(L[0],le[0]),l[1]=Math.max(L[1],le[1]),l[2]=Math.max(L[2],le[2]),l[3]=Math.max(L[3],le[3]),l}function ia(l,L){return l[0]=Math.round(L[0]),l[1]=Math.round(L[1]),l[2]=Math.round(L[2]),l[3]=Math.round(L[3]),l}function xa(l,L,le){return l[0]=L[0]*le,l[1]=L[1]*le,l[2]=L[2]*le,l[3]=L[3]*le,l}function li(l,L,le,we){return l[0]=L[0]+le[0]*we,l[1]=L[1]+le[1]*we,l[2]=L[2]+le[2]*we,l[3]=L[3]+le[3]*we,l}function Xa(l,L){var le=L[0]-l[0],we=L[1]-l[1],Ne=L[2]-l[2],ze=L[3]-l[3];return Math.hypot(le,we,Ne,ze)}function di(l,L){var le=L[0]-l[0],we=L[1]-l[1],Ne=L[2]-l[2],ze=L[3]-l[3];return le*le+we*we+Ne*Ne+ze*ze}function Na(l){var L=l[0],le=l[1],we=l[2],Ne=l[3];return Math.hypot(L,le,we,Ne)}function Ti(l){var L=l[0],le=l[1],we=l[2],Ne=l[3];return L*L+le*le+we*we+Ne*Ne}function Ii(l,L){return l[0]=-L[0],l[1]=-L[1],l[2]=-L[2],l[3]=-L[3],l}function ja(l,L){return l[0]=1/L[0],l[1]=1/L[1],l[2]=1/L[2],l[3]=1/L[3],l}function Co(l,L){var le=L[0],we=L[1],Ne=L[2],ze=L[3],Xe=le*le+we*we+Ne*Ne+ze*ze;return Xe>0&&(Xe=1/Math.sqrt(Xe)),l[0]=le*Xe,l[1]=we*Xe,l[2]=Ne*Xe,l[3]=ze*Xe,l}function Fo(l,L){return l[0]*L[0]+l[1]*L[1]+l[2]*L[2]+l[3]*L[3]}function To(l,L,le,we){var Ne=le[0]*we[1]-le[1]*we[0],ze=le[0]*we[2]-le[2]*we[0],Xe=le[0]*we[3]-le[3]*we[0],nt=le[1]*we[2]-le[2]*we[1],st=le[1]*we[3]-le[3]*we[1],xt=le[2]*we[3]-le[3]*we[2],Rt=L[0],ur=L[1],gr=L[2],fr=L[3];return l[0]=ur*xt-gr*st+fr*nt,l[1]=-(Rt*xt)+gr*Xe-fr*ze,l[2]=Rt*st-ur*Xe+fr*Ne,l[3]=-(Rt*nt)+ur*ze-gr*Ne,l}function mi(l,L,le,we){var Ne=L[0],ze=L[1],Xe=L[2],nt=L[3];return l[0]=Ne+we*(le[0]-Ne),l[1]=ze+we*(le[1]-ze),l[2]=Xe+we*(le[2]-Xe),l[3]=nt+we*(le[3]-nt),l}function no(l,L){L=L||1;var le,we,Ne,ze,Xe,nt;do le=y.RANDOM()*2-1,we=y.RANDOM()*2-1,Xe=le*le+we*we;while(Xe>=1);do Ne=y.RANDOM()*2-1,ze=y.RANDOM()*2-1,nt=Ne*Ne+ze*ze;while(nt>=1);var st=Math.sqrt((1-Xe)/nt);return l[0]=L*le,l[1]=L*we,l[2]=L*Ne*st,l[3]=L*ze*st,l}function Cs(l,L,le){var we=L[0],Ne=L[1],ze=L[2],Xe=L[3];return l[0]=le[0]*we+le[4]*Ne+le[8]*ze+le[12]*Xe,l[1]=le[1]*we+le[5]*Ne+le[9]*ze+le[13]*Xe,l[2]=le[2]*we+le[6]*Ne+le[10]*ze+le[14]*Xe,l[3]=le[3]*we+le[7]*Ne+le[11]*ze+le[15]*Xe,l}function rs(l,L,le){var we=L[0],Ne=L[1],ze=L[2],Xe=le[0],nt=le[1],st=le[2],xt=le[3],Rt=xt*we+nt*ze-st*Ne,ur=xt*Ne+st*we-Xe*ze,gr=xt*ze+Xe*Ne-nt*we,fr=-Xe*we-nt*Ne-st*ze;return l[0]=Rt*xt+fr*-Xe+ur*-st-gr*-nt,l[1]=ur*xt+fr*-nt+gr*-Xe-Rt*-st,l[2]=gr*xt+fr*-st+Rt*-nt-ur*-Xe,l[3]=L[3],l}function Yi(l){return l[0]=0,l[1]=0,l[2]=0,l[3]=0,l}function Ko(l){return"vec4("+l[0]+", "+l[1]+", "+l[2]+", "+l[3]+")"}function Hr(l,L){return l[0]===L[0]&&l[1]===L[1]&&l[2]===L[2]&&l[3]===L[3]}function $i(l,L){var le=l[0],we=l[1],Ne=l[2],ze=l[3],Xe=L[0],nt=L[1],st=L[2],xt=L[3];return Math.abs(le-Xe)<=y.EPSILON*Math.max(1,Math.abs(le),Math.abs(Xe))&&Math.abs(we-nt)<=y.EPSILON*Math.max(1,Math.abs(we),Math.abs(nt))&&Math.abs(Ne-st)<=y.EPSILON*Math.max(1,Math.abs(Ne),Math.abs(st))&&Math.abs(ze-xt)<=y.EPSILON*Math.max(1,Math.abs(ze),Math.abs(xt))}var go=It,Ts=tr,cs=Tr,$o=Xa,po=di,Dn=Na,Io=Ti,ls=function(){var l=mn();return function(L,le,we,Ne,ze,Xe){var nt,st;for(le||(le=4),we||(we=0),Ne?st=Math.min(Ne*le+we,L.length):st=L.length,nt=we;nty.EPSILON?(l[0]=L[0]/we,l[1]=L[1]/we,l[2]=L[2]/we):(l[0]=1,l[1]=0,l[2]=0),le}function Uo(l,L){var le=Fi(l,L);return Math.acos(2*le*le-1)}function Wo(l,L,le){var we=L[0],Ne=L[1],ze=L[2],Xe=L[3],nt=le[0],st=le[1],xt=le[2],Rt=le[3];return l[0]=we*Rt+Xe*nt+Ne*xt-ze*st,l[1]=Ne*Rt+Xe*st+ze*nt-we*xt,l[2]=ze*Rt+Xe*xt+we*st-Ne*nt,l[3]=Xe*Rt-we*nt-Ne*st-ze*xt,l}function qi(l,L,le){le*=.5;var we=L[0],Ne=L[1],ze=L[2],Xe=L[3],nt=Math.sin(le),st=Math.cos(le);return l[0]=we*st+Xe*nt,l[1]=Ne*st+ze*nt,l[2]=ze*st-Ne*nt,l[3]=Xe*st-we*nt,l}function ao(l,L,le){le*=.5;var we=L[0],Ne=L[1],ze=L[2],Xe=L[3],nt=Math.sin(le),st=Math.cos(le);return l[0]=we*st-ze*nt,l[1]=Ne*st+Xe*nt,l[2]=ze*st+we*nt,l[3]=Xe*st-Ne*nt,l}function vs(l,L,le){le*=.5;var we=L[0],Ne=L[1],ze=L[2],Xe=L[3],nt=Math.sin(le),st=Math.cos(le);return l[0]=we*st+Ne*nt,l[1]=Ne*st-we*nt,l[2]=ze*st+Xe*nt,l[3]=Xe*st-ze*nt,l}function io(l,L){var le=L[0],we=L[1],Ne=L[2];return l[0]=le,l[1]=we,l[2]=Ne,l[3]=Math.sqrt(Math.abs(1-le*le-we*we-Ne*Ne)),l}function Qo(l,L){var le=L[0],we=L[1],Ne=L[2],ze=L[3],Xe=Math.sqrt(le*le+we*we+Ne*Ne),nt=Math.exp(ze),st=Xe>0?nt*Math.sin(Xe)/Xe:0;return l[0]=le*st,l[1]=we*st,l[2]=Ne*st,l[3]=nt*Math.cos(Xe),l}function Xo(l,L){var le=L[0],we=L[1],Ne=L[2],ze=L[3],Xe=Math.sqrt(le*le+we*we+Ne*Ne),nt=Xe>0?Math.atan2(Xe,ze)/Xe:0;return l[0]=le*nt,l[1]=we*nt,l[2]=Ne*nt,l[3]=.5*Math.log(le*le+we*we+Ne*Ne+ze*ze),l}function hs(l,L,le){return Xo(l,L),si(l,l,le),Qo(l,l),l}function yo(l,L,le,we){var Ne=L[0],ze=L[1],Xe=L[2],nt=L[3],st=le[0],xt=le[1],Rt=le[2],ur=le[3],gr,fr,Pr,jr,cr;return fr=Ne*st+ze*xt+Xe*Rt+nt*ur,fr<0&&(fr=-fr,st=-st,xt=-xt,Rt=-Rt,ur=-ur),1-fr>y.EPSILON?(gr=Math.acos(fr),Pr=Math.sin(gr),jr=Math.sin((1-we)*gr)/Pr,cr=Math.sin(we*gr)/Pr):(jr=1-we,cr=we),l[0]=jr*Ne+cr*st,l[1]=jr*ze+cr*xt,l[2]=jr*Xe+cr*Rt,l[3]=jr*nt+cr*ur,l}function Ua(l){var L=y.RANDOM(),le=y.RANDOM(),we=y.RANDOM(),Ne=Math.sqrt(1-L),ze=Math.sqrt(L);return l[0]=Ne*Math.sin(2*Math.PI*le),l[1]=Ne*Math.cos(2*Math.PI*le),l[2]=ze*Math.sin(2*Math.PI*we),l[3]=ze*Math.cos(2*Math.PI*we),l}function oo(l,L){var le=L[0],we=L[1],Ne=L[2],ze=L[3],Xe=le*le+we*we+Ne*Ne+ze*ze,nt=Xe?1/Xe:0;return l[0]=-le*nt,l[1]=-we*nt,l[2]=-Ne*nt,l[3]=ze*nt,l}function Is(l,L){return l[0]=-L[0],l[1]=-L[1],l[2]=-L[2],l[3]=L[3],l}function vo(l,L){var le=L[0]+L[4]+L[8],we;if(le>0)we=Math.sqrt(le+1),l[3]=.5*we,we=.5/we,l[0]=(L[5]-L[7])*we,l[1]=(L[6]-L[2])*we,l[2]=(L[1]-L[3])*we;else{var Ne=0;L[4]>L[0]&&(Ne=1),L[8]>L[Ne*3+Ne]&&(Ne=2);var ze=(Ne+1)%3,Xe=(Ne+2)%3;we=Math.sqrt(L[Ne*3+Ne]-L[ze*3+ze]-L[Xe*3+Xe]+1),l[Ne]=.5*we,we=.5/we,l[3]=(L[ze*3+Xe]-L[Xe*3+ze])*we,l[ze]=(L[ze*3+Ne]+L[Ne*3+ze])*we,l[Xe]=(L[Xe*3+Ne]+L[Ne*3+Xe])*we}return l}function as(l,L,le,we){var Ne=.5*Math.PI/180;L*=Ne,le*=Ne,we*=Ne;var ze=Math.sin(L),Xe=Math.cos(L),nt=Math.sin(le),st=Math.cos(le),xt=Math.sin(we),Rt=Math.cos(we);return l[0]=ze*st*Rt-Xe*nt*xt,l[1]=Xe*nt*Rt+ze*st*xt,l[2]=Xe*st*xt-ze*nt*Rt,l[3]=Xe*st*Rt+ze*nt*xt,l}function gs(l){return"quat("+l[0]+", "+l[1]+", "+l[2]+", "+l[3]+")"}var vi=Je,so=ke,Ji=et,mo=bt,uo=vt,Da=Wo,si=xa,Fi=Fo,bi=mi,Eo=Na,Go=Eo,Ao=Ti,qo=Ao,bo=Co,Oo=Hr,qa=$i,Bs=function(){var l=ua.create(),L=ua.fromValues(1,0,0),le=ua.fromValues(0,1,0);return function(we,Ne,ze){var Xe=ua.dot(Ne,ze);return Xe<-.999999?(ua.cross(l,L,Ne),ua.len(l)<1e-6&&ua.cross(l,le,Ne),ua.normalize(l,l),ds(we,l,Math.PI),we):Xe>.999999?(we[0]=0,we[1]=0,we[2]=0,we[3]=1,we):(ua.cross(l,Ne,ze),we[0]=l[0],we[1]=l[1],we[2]=l[2],we[3]=1+Xe,bo(we,we))}}(),lf=function(){var l=Ei(),L=Ei();return function(le,we,Ne,ze,Xe,nt){return yo(l,we,Xe,nt),yo(L,Ne,ze,nt),yo(le,l,L,2*nt*(1-nt)),le}}(),Vo=function(){var l=aa.create();return function(L,le,we,Ne){return l[0]=we[0],l[3]=we[1],l[6]=we[2],l[1]=Ne[0],l[4]=Ne[1],l[7]=Ne[2],l[2]=-le[0],l[5]=-le[1],l[8]=-le[2],bo(L,vo(L,l))}}();function Js(){var l=new y.ARRAY_TYPE(8);return y.ARRAY_TYPE!=Float32Array&&(l[0]=0,l[1]=0,l[2]=0,l[4]=0,l[5]=0,l[6]=0,l[7]=0),l[3]=1,l}function Fs(l){var L=new y.ARRAY_TYPE(8);return L[0]=l[0],L[1]=l[1],L[2]=l[2],L[3]=l[3],L[4]=l[4],L[5]=l[5],L[6]=l[6],L[7]=l[7],L}function fa(l,L,le,we,Ne,ze,Xe,nt){var st=new y.ARRAY_TYPE(8);return st[0]=l,st[1]=L,st[2]=le,st[3]=we,st[4]=Ne,st[5]=ze,st[6]=Xe,st[7]=nt,st}function ln(l,L,le,we,Ne,ze,Xe){var nt=new y.ARRAY_TYPE(8);nt[0]=l,nt[1]=L,nt[2]=le,nt[3]=we;var st=Ne*.5,xt=ze*.5,Rt=Xe*.5;return nt[4]=st*we+xt*le-Rt*L,nt[5]=xt*we+Rt*l-st*le,nt[6]=Rt*we+st*L-xt*l,nt[7]=-st*l-xt*L-Rt*le,nt}function Gs(l,L,le){var we=le[0]*.5,Ne=le[1]*.5,ze=le[2]*.5,Xe=L[0],nt=L[1],st=L[2],xt=L[3];return l[0]=Xe,l[1]=nt,l[2]=st,l[3]=xt,l[4]=we*xt+Ne*st-ze*nt,l[5]=Ne*xt+ze*Xe-we*st,l[6]=ze*xt+we*nt-Ne*Xe,l[7]=-we*Xe-Ne*nt-ze*st,l}function fo(l,L){return l[0]=0,l[1]=0,l[2]=0,l[3]=1,l[4]=L[0]*.5,l[5]=L[1]*.5,l[6]=L[2]*.5,l[7]=0,l}function As(l,L){return l[0]=L[0],l[1]=L[1],l[2]=L[2],l[3]=L[3],l[4]=0,l[5]=0,l[6]=0,l[7]=0,l}function zs(l,L){var le=Ei();R(le,L);var we=new y.ARRAY_TYPE(3);return se(we,L),Gs(l,le,we),l}function Ai(l,L){return l[0]=L[0],l[1]=L[1],l[2]=L[2],l[3]=L[3],l[4]=L[4],l[5]=L[5],l[6]=L[6],l[7]=L[7],l}function hi(l){return l[0]=0,l[1]=0,l[2]=0,l[3]=1,l[4]=0,l[5]=0,l[6]=0,l[7]=0,l}function eu(l,L,le,we,Ne,ze,Xe,nt,st){return l[0]=L,l[1]=le,l[2]=we,l[3]=Ne,l[4]=ze,l[5]=Xe,l[6]=nt,l[7]=st,l}var bu=Ji;function tu(l,L){return l[0]=L[4],l[1]=L[5],l[2]=L[6],l[3]=L[7],l}var ps=Ji;function xu(l,L){return l[4]=L[0],l[5]=L[1],l[6]=L[2],l[7]=L[3],l}function Gi(l,L){var le=L[4],we=L[5],Ne=L[6],ze=L[7],Xe=-L[0],nt=-L[1],st=-L[2],xt=L[3];return l[0]=(le*xt+ze*Xe+we*st-Ne*nt)*2,l[1]=(we*xt+ze*nt+Ne*Xe-le*st)*2,l[2]=(Ne*xt+ze*st+le*nt-we*Xe)*2,l}function Lo(l,L,le){var we=L[0],Ne=L[1],ze=L[2],Xe=L[3],nt=le[0]*.5,st=le[1]*.5,xt=le[2]*.5,Rt=L[4],ur=L[5],gr=L[6],fr=L[7];return l[0]=we,l[1]=Ne,l[2]=ze,l[3]=Xe,l[4]=Xe*nt+Ne*xt-ze*st+Rt,l[5]=Xe*st+ze*nt-we*xt+ur,l[6]=Xe*xt+we*st-Ne*nt+gr,l[7]=-we*nt-Ne*st-ze*xt+fr,l}function ru(l,L,le){var we=-L[0],Ne=-L[1],ze=-L[2],Xe=L[3],nt=L[4],st=L[5],xt=L[6],Rt=L[7],ur=nt*Xe+Rt*we+st*ze-xt*Ne,gr=st*Xe+Rt*Ne+xt*we-nt*ze,fr=xt*Xe+Rt*ze+nt*Ne-st*we,Pr=Rt*Xe-nt*we-st*Ne-xt*ze;return qi(l,L,le),we=l[0],Ne=l[1],ze=l[2],Xe=l[3],l[4]=ur*Xe+Pr*we+gr*ze-fr*Ne,l[5]=gr*Xe+Pr*Ne+fr*we-ur*ze,l[6]=fr*Xe+Pr*ze+ur*Ne-gr*we,l[7]=Pr*Xe-ur*we-gr*Ne-fr*ze,l}function Do(l,L,le){var we=-L[0],Ne=-L[1],ze=-L[2],Xe=L[3],nt=L[4],st=L[5],xt=L[6],Rt=L[7],ur=nt*Xe+Rt*we+st*ze-xt*Ne,gr=st*Xe+Rt*Ne+xt*we-nt*ze,fr=xt*Xe+Rt*ze+nt*Ne-st*we,Pr=Rt*Xe-nt*we-st*Ne-xt*ze;return ao(l,L,le),we=l[0],Ne=l[1],ze=l[2],Xe=l[3],l[4]=ur*Xe+Pr*we+gr*ze-fr*Ne,l[5]=gr*Xe+Pr*Ne+fr*we-ur*ze,l[6]=fr*Xe+Pr*ze+ur*Ne-gr*we,l[7]=Pr*Xe-ur*we-gr*Ne-fr*ze,l}function Us(l,L,le){var we=-L[0],Ne=-L[1],ze=-L[2],Xe=L[3],nt=L[4],st=L[5],xt=L[6],Rt=L[7],ur=nt*Xe+Rt*we+st*ze-xt*Ne,gr=st*Xe+Rt*Ne+xt*we-nt*ze,fr=xt*Xe+Rt*ze+nt*Ne-st*we,Pr=Rt*Xe-nt*we-st*Ne-xt*ze;return vs(l,L,le),we=l[0],Ne=l[1],ze=l[2],Xe=l[3],l[4]=ur*Xe+Pr*we+gr*ze-fr*Ne,l[5]=gr*Xe+Pr*Ne+fr*we-ur*ze,l[6]=fr*Xe+Pr*ze+ur*Ne-gr*we,l[7]=Pr*Xe-ur*we-gr*Ne-fr*ze,l}function Os(l,L,le){var we=le[0],Ne=le[1],ze=le[2],Xe=le[3],nt=L[0],st=L[1],xt=L[2],Rt=L[3];return l[0]=nt*Xe+Rt*we+st*ze-xt*Ne,l[1]=st*Xe+Rt*Ne+xt*we-nt*ze,l[2]=xt*Xe+Rt*ze+nt*Ne-st*we,l[3]=Rt*Xe-nt*we-st*Ne-xt*ze,nt=L[4],st=L[5],xt=L[6],Rt=L[7],l[4]=nt*Xe+Rt*we+st*ze-xt*Ne,l[5]=st*Xe+Rt*Ne+xt*we-nt*ze,l[6]=xt*Xe+Rt*ze+nt*Ne-st*we,l[7]=Rt*Xe-nt*we-st*Ne-xt*ze,l}function Ws(l,L,le){var we=L[0],Ne=L[1],ze=L[2],Xe=L[3],nt=le[0],st=le[1],xt=le[2],Rt=le[3];return l[0]=we*Rt+Xe*nt+Ne*xt-ze*st,l[1]=Ne*Rt+Xe*st+ze*nt-we*xt,l[2]=ze*Rt+Xe*xt+we*st-Ne*nt,l[3]=Xe*Rt-we*nt-Ne*st-ze*xt,nt=le[4],st=le[5],xt=le[6],Rt=le[7],l[4]=we*Rt+Xe*nt+Ne*xt-ze*st,l[5]=Ne*Rt+Xe*st+ze*nt-we*xt,l[6]=ze*Rt+Xe*xt+we*st-Ne*nt,l[7]=Xe*Rt-we*nt-Ne*st-ze*xt,l}function ys(l,L,le,we){if(Math.abs(we)0){le=Math.sqrt(le);var we=L[0]/le,Ne=L[1]/le,ze=L[2]/le,Xe=L[3]/le,nt=L[4],st=L[5],xt=L[6],Rt=L[7],ur=we*nt+Ne*st+ze*xt+Xe*Rt;l[0]=we,l[1]=Ne,l[2]=ze,l[3]=Xe,l[4]=(nt-we*ur)/le,l[5]=(st-Ne*ur)/le,l[6]=(xt-ze*ur)/le,l[7]=(Rt-Xe*ur)/le}return l}function Yo(l){return"quat2("+l[0]+", "+l[1]+", "+l[2]+", "+l[3]+", "+l[4]+", "+l[5]+", "+l[6]+", "+l[7]+")"}function Vu(l,L){return l[0]===L[0]&&l[1]===L[1]&&l[2]===L[2]&&l[3]===L[3]&&l[4]===L[4]&&l[5]===L[5]&&l[6]===L[6]&&l[7]===L[7]}function au(l,L){var le=l[0],we=l[1],Ne=l[2],ze=l[3],Xe=l[4],nt=l[5],st=l[6],xt=l[7],Rt=L[0],ur=L[1],gr=L[2],fr=L[3],Pr=L[4],jr=L[5],cr=L[6],tn=L[7];return Math.abs(le-Rt)<=y.EPSILON*Math.max(1,Math.abs(le),Math.abs(Rt))&&Math.abs(we-ur)<=y.EPSILON*Math.max(1,Math.abs(we),Math.abs(ur))&&Math.abs(Ne-gr)<=y.EPSILON*Math.max(1,Math.abs(Ne),Math.abs(gr))&&Math.abs(ze-fr)<=y.EPSILON*Math.max(1,Math.abs(ze),Math.abs(fr))&&Math.abs(Xe-Pr)<=y.EPSILON*Math.max(1,Math.abs(Xe),Math.abs(Pr))&&Math.abs(nt-jr)<=y.EPSILON*Math.max(1,Math.abs(nt),Math.abs(jr))&&Math.abs(st-cr)<=y.EPSILON*Math.max(1,Math.abs(st),Math.abs(cr))&&Math.abs(xt-tn)<=y.EPSILON*Math.max(1,Math.abs(xt),Math.abs(tn))}var ju=W(31437)},38186:function(hr){var X=[],W=[],U="insert-css: You need to provide a CSS string. Usage: insertCss(cssString[, options]).";function Y(D,P){if(P=P||{},D===void 0)throw new Error(U);var N=P.prepend===!0?"prepend":"append",y=P.container!==void 0?P.container:document.querySelector("head"),E=X.indexOf(y);E===-1&&(E=X.push(y)-1,W[E]={});var g;return W[E]!==void 0&&W[E][N]!==void 0?g=W[E][N]:(g=W[E][N]=B(),N==="prepend"?y.insertBefore(g,y.childNodes[0]):y.appendChild(g)),D.charCodeAt(0)===65279&&(D=D.substr(1,D.length)),g.styleSheet?g.styleSheet.cssText+=D:g.textContent+=D,g}function B(){var D=document.createElement("style");return D.setAttribute("type","text/css"),D}hr.exports=Y,hr.exports.insertCss=Y},81763:function(hr,X,W){var U=W(44239),Y=W(37005),B="[object Number]";function D(P){return typeof P=="number"||Y(P)&&U(P)==B}hr.exports=D},51496:function(hr,X,W){"use strict";W.d(X,{x0:function(){return D}});let U=P=>crypto.getRandomValues(new Uint8Array(P)),Y=(P,N,y)=>{let E=(2<{let h="";for(;;){let x=y(g),m=g;for(;m--;)if(h+=P[x[m]&E]||"",h.length===p)return h}}},B=(P,N=21)=>Y(P,N,U),D=(P=21)=>crypto.getRandomValues(new Uint8Array(P)).reduce((N,y)=>(y&=63,y<36?N+=y.toString(36):y<62?N+=(y-26).toString(36).toUpperCase():y>62?N+="-":N+="_",N),"")},81550:function(hr){(function(X,W){hr.exports=W()})(this,function(){"use strict";var X=function(me){return me instanceof Uint8Array||me instanceof Uint16Array||me instanceof Uint32Array||me instanceof Int8Array||me instanceof Int16Array||me instanceof Int32Array||me instanceof Float32Array||me instanceof Float64Array||me instanceof Uint8ClampedArray},W=function(me,Qe){for(var pt=Object.keys(Qe),Yt=0;Yt=0&&(me|0)===me||B("invalid parameter type, ("+me+")"+P(Qe)+". must be a nonnegative integer")}function h(me,Qe,pt){Qe.indexOf(me)<0&&B("invalid value"+P(pt)+". must be one of: "+Qe)}var x=["gl","canvas","container","attributes","pixelRatio","extensions","optionalExtensions","profile","onDone"];function m(me){Object.keys(me).forEach(function(Qe){x.indexOf(Qe)<0&&B('invalid regl constructor argument "'+Qe+'". must be one of '+x)})}function b(me,Qe){for(me=me+"";me.length0&&Qe.push(new G("unknown",0,pt))}}),Qe}function $(me,Qe){Qe.forEach(function(pt){var Yt=me[pt.file];if(Yt){var xr=Yt.index[pt.line];if(xr){xr.errors.push(pt),Yt.hasErrors=!0;return}}me.unknown.hasErrors=!0,me.unknown.lines[0].errors.push(pt)})}function q(me,Qe,pt,Yt,xr){if(!me.getShaderParameter(Qe,me.COMPILE_STATUS)){var ar=me.getShaderInfoLog(Qe),lr=Yt===me.FRAGMENT_SHADER?"fragment":"vertex";Oe(pt,"string",lr+" shader source must be a string",xr);var Or=V(pt,xr),Nr=j(ar);$(Or,Nr),Object.keys(Or).forEach(function(Rr){var Lr=Or[Rr];if(!Lr.hasErrors)return;var Xr=[""],d=[""];function S(F,K){Xr.push(F),d.push(K||"")}S("file number "+Rr+": "+Lr.name+` +`,"color:red;text-decoration:underline;font-weight:bold"),Lr.lines.forEach(function(F){if(F.errors.length>0){S(b(F.number,4)+"| ","background-color:yellow; font-weight:bold"),S(F.line+U,"color:red; background-color:yellow; font-weight:bold");var K=0;F.errors.forEach(function(ae){var fe=ae.message,he=/^\s*'(.*)'\s*:\s*(.*)$/.exec(fe);if(he){var xe=he[1];switch(fe=he[2],xe){case"assign":xe="=";break}K=Math.max(F.line.indexOf(xe,K),0)}else K=0;S(b("| ",6)),S(b("^^^",K+3)+U,"font-weight:bold"),S(b("| ",6)),S(fe+U,"font-weight:bold")}),S(b("| ",6)+U)}else S(b(F.number,4)+"| "),S(F.line+U,"color:red")}),typeof document!="undefined"&&!window.chrome?(d[0]=Xr.join("%c"),console.log.apply(console,d)):console.log(Xr.join(""))}),D.raise("Error compiling "+lr+" shader, "+Or[0].name)}}function te(me,Qe,pt,Yt,xr){if(!me.getProgramParameter(Qe,me.LINK_STATUS)){var ar=me.getProgramInfoLog(Qe),lr=V(pt,xr),Or=V(Yt,xr),Nr='Error linking program with vertex shader, "'+Or[0].name+'", and fragment shader "'+lr[0].name+'"';typeof document!="undefined"?console.log("%c"+Nr+U+"%c"+ar,"color:red;text-decoration:underline;font-weight:bold","color:red"):console.log(Nr+U+ar),D.raise(Nr)}}function ee(me){me._commandRef=T()}function ie(me,Qe,pt,Yt){ee(me);function xr(Nr){return Nr?Yt.id(Nr):0}me._fragId=xr(me.static.frag),me._vertId=xr(me.static.vert);function ar(Nr,Rr){Object.keys(Rr).forEach(function(Lr){Nr[Yt.id(Lr)]=!0})}var lr=me._uniformSet={};ar(lr,Qe.static),ar(lr,Qe.dynamic);var Or=me._attributeSet={};ar(Or,pt.static),ar(Or,pt.dynamic),me._hasCount="count"in me.static||"count"in me.dynamic||"elements"in me.static||"elements"in me.dynamic}function ce(me,Qe){var pt=M();B(me+" in command "+(Qe||T())+(pt==="unknown"?"":" called from "+pt))}function ge(me,Qe,pt){me||ce(Qe,pt||T())}function Le(me,Qe,pt,Yt){me in Qe||ce("unknown parameter ("+me+")"+P(pt)+". possible values: "+Object.keys(Qe).join(),Yt||T())}function Oe(me,Qe,pt,Yt){E(me,Qe)||ce("invalid parameter type"+P(pt)+". expected "+Qe+", got "+typeof me,Yt||T())}function Re(me){me()}function de(me,Qe,pt){me.texture?h(me.texture._texture.internalformat,Qe,"unsupported texture format for attachment"):h(me.renderbuffer._renderbuffer.format,pt,"unsupported renderbuffer format for attachment")}var ve=33071,be=9728,Ae=9984,Pe=9985,Ve=9986,Ue=9987,Ke=5120,_t=5121,Ct=5122,He=5123,ht=5124,mt=5125,dt=5126,Et=32819,it=32820,St=33635,$t=34042,Nt=36193,mr={};mr[Ke]=mr[_t]=1,mr[Ct]=mr[He]=mr[Nt]=mr[St]=mr[Et]=mr[it]=2,mr[ht]=mr[mt]=mr[dt]=mr[$t]=4;function br(me,Qe){return me===it||me===Et||me===St?2:me===$t?4:mr[me]*Qe}function nn(me){return!(me&me-1)&&!!me}function In(me,Qe,pt){var Yt,xr=Qe.width,ar=Qe.height,lr=Qe.channels;D(xr>0&&xr<=pt.maxTextureSize&&ar>0&&ar<=pt.maxTextureSize,"invalid texture shape"),(me.wrapS!==ve||me.wrapT!==ve)&&D(nn(xr)&&nn(ar),"incompatible wrap mode for texture, both width and height must be power of 2"),Qe.mipmask===1?xr!==1&&ar!==1&&D(me.minFilter!==Ae&&me.minFilter!==Ve&&me.minFilter!==Pe&&me.minFilter!==Ue,"min filter requires mipmap"):(D(nn(xr)&&nn(ar),"texture must be a square power of 2 to support mipmapping"),D(Qe.mipmask===(xr<<1)-1,"missing or incomplete mipmap data")),Qe.type===dt&&(pt.extensions.indexOf("oes_texture_float_linear")<0&&D(me.minFilter===be&&me.magFilter===be,"filter not supported, must enable oes_texture_float_linear"),D(!me.genMipmaps,"mipmap generation not supported with float textures"));var Or=Qe.images;for(Yt=0;Yt<16;++Yt)if(Or[Yt]){var Nr=xr>>Yt,Rr=ar>>Yt;D(Qe.mipmask&1<0&&xr<=Yt.maxTextureSize&&ar>0&&ar<=Yt.maxTextureSize,"invalid texture shape"),D(xr===ar,"cube map must be square"),D(Qe.wrapS===ve&&Qe.wrapT===ve,"wrap mode not supported by cube map");for(var Or=0;Or>Lr,S=ar>>Lr;D(Nr.mipmask&1<1&&Qe===pt&&(Qe==='"'||Qe==="'"))return['"'+za(me.substr(1,me.length-2))+'"'];var Yt=/\[(false|true|null|\d+|'[^']*'|"[^"]*")\]/.exec(me);if(Yt)return Aa(me.substr(0,Yt.index)).concat(Aa(Yt[1])).concat(Aa(me.substr(Yt.index+Yt[0].length)));var xr=me.split(".");if(xr.length===1)return['"'+za(me)+'"'];for(var ar=[],lr=0;lrer(pt,Qe+"["+Yt+"]")));if(me instanceof Ia)return me;We(!1,"invalid option type in uniform "+Qe)}var Cr={DynamicVariable:Ia,define:Oa,isDynamic:La,unbox:er,accessor:Qa},an={next:typeof requestAnimationFrame=="function"?function(me){return requestAnimationFrame(me)}:function(me){return setTimeout(me,16)},cancel:typeof cancelAnimationFrame=="function"?function(me){return cancelAnimationFrame(me)}:clearTimeout},un=typeof performance!="undefined"&&performance.now?function(){return performance.now()}:function(){return+new Date};function Fn(){var me={"":0},Qe=[""];return{id:function(pt){var Yt=me[pt];return Yt||(Yt=me[pt]=Qe.length,Qe.push(pt),Yt)},str:function(pt){return Qe[pt]}}}function Jn(me,Qe,pt){var Yt=document.createElement("canvas");W(Yt.style,{border:0,margin:0,padding:0,top:0,left:0}),me.appendChild(Yt),me===document.body&&(Yt.style.position="absolute",W(me.style,{margin:0,padding:0}));function xr(){var Or=window.innerWidth,Nr=window.innerHeight;if(me!==document.body){var Rr=me.getBoundingClientRect();Or=Rr.right-Rr.left,Nr=Rr.bottom-Rr.top}Yt.width=pt*Or,Yt.height=pt*Nr,W(Yt.style,{width:Or+"px",height:Nr+"px"})}var ar;me!==document.body&&typeof ResizeObserver=="function"?(ar=new ResizeObserver(function(){setTimeout(xr)}),ar.observe(me)):window.addEventListener("resize",xr,!1);function lr(){ar?ar.disconnect():window.removeEventListener("resize",xr),me.removeChild(Yt)}return xr(),{canvas:Yt,onDestroy:lr}}function Vn(me,Qe){function pt(Yt){try{return me.getContext(Yt,Qe)}catch(xr){return null}}return pt("webgl")||pt("experimental-webgl")||pt("webgl-experimental")}function ya(me){return typeof me.nodeName=="string"&&typeof me.appendChild=="function"&&typeof me.getBoundingClientRect=="function"}function ea(me){return typeof me.drawArrays=="function"||typeof me.drawElements=="function"}function ti(me){return typeof me=="string"?me.split():(We(Array.isArray(me),"invalid extension array"),me)}function vn(me){return typeof me=="string"?(We(typeof document!="undefined","not supported outside of DOM"),document.querySelector(me)):me}function Un(me){var Qe=me||{},pt,Yt,xr,ar,lr={},Or=[],Nr=[],Rr=typeof window=="undefined"?1:window.devicePixelRatio,Lr=!1,Xr=function(F){F&&We.raise(F)},d=function(){};if(typeof Qe=="string"?(We(typeof document!="undefined","selector queries only supported in DOM enviroments"),pt=document.querySelector(Qe),We(pt,"invalid query string for element")):typeof Qe=="object"?ya(Qe)?pt=Qe:ea(Qe)?(ar=Qe,xr=ar.canvas):(We.constructor(Qe),"gl"in Qe?ar=Qe.gl:"canvas"in Qe?xr=vn(Qe.canvas):"container"in Qe&&(Yt=vn(Qe.container)),"attributes"in Qe&&(lr=Qe.attributes,We.type(lr,"object","invalid context attributes")),"extensions"in Qe&&(Or=ti(Qe.extensions)),"optionalExtensions"in Qe&&(Nr=ti(Qe.optionalExtensions)),"onDone"in Qe&&(We.type(Qe.onDone,"function","invalid or missing onDone callback"),Xr=Qe.onDone),"profile"in Qe&&(Lr=!!Qe.profile),"pixelRatio"in Qe&&(Rr=+Qe.pixelRatio,We(Rr>0,"invalid pixel ratio"))):We.raise("invalid arguments to regl"),pt&&(pt.nodeName.toLowerCase()==="canvas"?xr=pt:Yt=pt),!ar){if(!xr){We(typeof document!="undefined","must manually specify webgl context outside of DOM environments");var S=Jn(Yt||document.body,Xr,Rr);if(!S)return null;xr=S.canvas,d=S.onDestroy}lr.premultipliedAlpha===void 0&&(lr.premultipliedAlpha=!0),ar=Vn(xr,lr)}return ar?{gl:ar,canvas:xr,container:Yt,extensions:Or,optionalExtensions:Nr,pixelRatio:Rr,profile:Lr,onDone:Xr,onDestroy:d}:(d(),Xr("webgl not supported, try upgrading your browser or graphics drivers http://get.webgl.org"),null)}function ta(me,Qe){var pt={};function Yt(lr){We.type(lr,"string","extension name must be string");var Or=lr.toLowerCase(),Nr;try{Nr=pt[Or]=me.getExtension(Or)}catch(Rr){}return!!Nr}for(var xr=0;xr65535)<<4,me>>>=Qe,pt=(me>255)<<3,me>>>=pt,Qe|=pt,pt=(me>15)<<2,me>>>=pt,Qe|=pt,pt=(me>3)<<1,me>>>=pt,Qe|=pt,Qe|me>>1}function H(){var me=Tn(8,function(){return[]});function Qe(ar){var lr=_(ar),Or=me[C(lr)>>2];return Or.length>0?Or.pop():new ArrayBuffer(lr)}function pt(ar){me[C(ar.byteLength)>>2].push(ar)}function Yt(ar,lr){var Or=null;switch(ar){case pa:Or=new Int8Array(Qe(lr),0,lr);break;case Q:Or=new Uint8Array(Qe(lr),0,lr);break;case Gt:Or=new Int16Array(Qe(2*lr),0,lr);break;case ct:Or=new Uint16Array(Qe(2*lr),0,lr);break;case se:Or=new Int32Array(Qe(4*lr),0,lr);break;case oe:Or=new Uint32Array(Qe(4*lr),0,lr);break;case R:Or=new Float32Array(Qe(4*lr),0,lr);break;default:return null}return Or.length!==lr?Or.subarray(0,lr):Or}function xr(ar){pt(ar.buffer)}return{alloc:Qe,free:pt,allocType:Yt,freeType:xr}}var ye=H();ye.zero=H();var Ce=3408,_e=3410,Fe=3411,Mt=3412,yt=3413,Ut=3414,rr=3415,Zt=33901,zr=33902,pn=3379,Bt=3386,ir=34921,Sr=36347,Jr=36348,Wr=35661,sa=35660,jn=34930,cn=36349,_n=34076,ua=34024,mn=7936,Je=7937,ke=7938,et=35724,bt=34047,vt=36063,It=34852,tr=3553,Tr=34067,Vr=34069,on=33984,xn=6408,Zn=5126,ia=5121,xa=36160,li=36053,Xa=36064,di=16384,Na=function(me,Qe){var pt=1;Qe.ext_texture_filter_anisotropic&&(pt=me.getParameter(bt));var Yt=1,xr=1;Qe.webgl_draw_buffers&&(Yt=me.getParameter(It),xr=me.getParameter(vt));var ar=!!Qe.oes_texture_float;if(ar){var lr=me.createTexture();me.bindTexture(tr,lr),me.texImage2D(tr,0,xn,1,1,0,xn,Zn,null);var Or=me.createFramebuffer();if(me.bindFramebuffer(xa,Or),me.framebufferTexture2D(xa,Xa,tr,lr,0),me.bindTexture(tr,null),me.checkFramebufferStatus(xa)!==li)ar=!1;else{me.viewport(0,0,1,1),me.clearColor(1,0,0,1),me.clear(di);var Nr=ye.allocType(Zn,4);me.readPixels(0,0,1,1,xn,Zn,Nr),me.getError()?ar=!1:(me.deleteFramebuffer(Or),me.deleteTexture(lr),ar=Nr[0]===1),ye.freeType(Nr)}}var Rr=typeof navigator!="undefined"&&(/MSIE/.test(navigator.userAgent)||/Trident\//.test(navigator.appVersion)||/Edge/.test(navigator.userAgent)),Lr=!0;if(!Rr){var Xr=me.createTexture(),d=ye.allocType(ia,36);me.activeTexture(on),me.bindTexture(Tr,Xr),me.texImage2D(Vr,0,xn,3,3,0,xn,ia,d),ye.freeType(d),me.bindTexture(Tr,null),me.deleteTexture(Xr),Lr=!me.getError()}return{colorBits:[me.getParameter(_e),me.getParameter(Fe),me.getParameter(Mt),me.getParameter(yt)],depthBits:me.getParameter(Ut),stencilBits:me.getParameter(rr),subpixelBits:me.getParameter(Ce),extensions:Object.keys(Qe).filter(function(S){return!!Qe[S]}),maxAnisotropic:pt,maxDrawbuffers:Yt,maxColorAttachments:xr,pointSizeDims:me.getParameter(Zt),lineWidthDims:me.getParameter(zr),maxViewportDims:me.getParameter(Bt),maxCombinedTextureUnits:me.getParameter(Wr),maxCubeMapSize:me.getParameter(_n),maxRenderbufferSize:me.getParameter(ua),maxTextureUnits:me.getParameter(jn),maxTextureSize:me.getParameter(pn),maxAttributes:me.getParameter(ir),maxVertexUniforms:me.getParameter(Sr),maxVertexTextureUnits:me.getParameter(sa),maxVaryingVectors:me.getParameter(Jr),maxFragmentUniforms:me.getParameter(cn),glsl:me.getParameter(et),renderer:me.getParameter(Je),vendor:me.getParameter(mn),version:me.getParameter(ke),readFloat:ar,npotTextureCube:Lr}};function Ti(me){return!!me&&typeof me=="object"&&Array.isArray(me.shape)&&Array.isArray(me.stride)&&typeof me.offset=="number"&&me.shape.length===me.stride.length&&(Array.isArray(me.data)||X(me.data))}var Ii=function(me){return Object.keys(me).map(function(Qe){return me[Qe]})},ja={shape:Cs,flatten:no};function Co(me,Qe,pt){for(var Yt=0;Yt0){var Ze;if(Array.isArray(ae[0])){Be=ns(ae);for(var je=1,lt=1;lt0)if(typeof je[0]=="number"){var Wt=ye.allocType(xe.dtype,je.length);vs(Wt,je),Be(Wt,kt),ye.freeType(Wt)}else if(Array.isArray(je[0])||X(je[0])){pr=ns(je);var Vt=Ei(je,pr,xe.dtype);Be(Vt,kt),ye.freeType(Vt)}else We.raise("invalid buffer data")}else if(Ti(je)){pr=je.shape;var jt=je.stride,Dr=0,Kr=0,Yr=0,yn=0;pr.length===1?(Dr=pr[0],Kr=1,Yr=jt[0],yn=0):pr.length===2?(Dr=pr[0],Kr=pr[1],Yr=jt[0],yn=jt[1]):We.raise("invalid shape");var dn=Array.isArray(je.data)?xe.dtype:ao(je.data),An=ye.allocType(dn,Dr*Kr);io(An,je.data,Dr,Kr,Yr,yn,je.offset),Be(An,kt),ye.freeType(An)}else We.raise("invalid data for buffer subdata");return Te}return fe||Te(K),Te._reglType="buffer",Te._buffer=xe,Te.subdata=Ze,pt.profile&&(Te.stats=xe.stats),Te.destroy=function(){d(xe)},Te}function F(){Ii(ar).forEach(function(K){K.buffer=me.createBuffer(),me.bindBuffer(K.type,K.buffer),me.bufferData(K.type,K.persistentData||K.byteLength,K.usage)})}return pt.profile&&(Qe.getTotalBufferSize=function(){var K=0;return Object.keys(ar).forEach(function(ae){K+=ar[ae].stats.size}),K}),{create:S,createStream:Nr,destroyStream:Rr,clear:function(){Ii(ar).forEach(d),Or.forEach(d)},getBuffer:function(K){return K&&K._buffer instanceof lr?K._buffer:null},restore:F,_initBuffer:Xr}}var Xo=0,hs=0,yo=1,Ua=1,oo=4,Is=4,vo={points:Xo,point:hs,lines:yo,line:Ua,triangles:oo,triangle:Is,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},as=0,gs=1,vi=4,so=5120,Ji=5121,mo=5122,uo=5123,Da=5124,si=5125,Fi=34963,bi=35040,Eo=35044;function Go(me,Qe,pt,Yt){var xr={},ar=0,lr={uint8:Ji,uint16:uo};Qe.oes_element_index_uint&&(lr.uint32=si);function Or(F){this.id=ar++,xr[this.id]=this,this.buffer=F,this.primType=vi,this.vertCount=0,this.type=0}Or.prototype.bind=function(){this.buffer.bind()};var Nr=[];function Rr(F){var K=Nr.pop();return K||(K=new Or(pt.create(null,Fi,!0,!1)._buffer)),Xr(K,F,bi,-1,-1,0,0),K}function Lr(F){Nr.push(F)}function Xr(F,K,ae,fe,he,xe,Te){F.buffer.bind();var Be;if(K){var Ze=Te;!Te&&(!X(K)||Ti(K)&&!X(K.data))&&(Ze=Qe.oes_element_index_uint?si:uo),pt._initBuffer(F.buffer,K,ae,Ze,3)}else me.bufferData(Fi,xe,ae),F.buffer.dtype=Be||Ji,F.buffer.usage=ae,F.buffer.dimension=3,F.buffer.byteLength=xe;if(Be=Te,!Te){switch(F.buffer.dtype){case Ji:case so:Be=Ji;break;case uo:case mo:Be=uo;break;case si:case Da:Be=si;break;default:We.raise("unsupported type for element array")}F.buffer.dtype=Be}F.type=Be,We(Be!==si||!!Qe.oes_element_index_uint,"32 bit element buffers not supported, enable oes_element_index_uint first");var je=he;je<0&&(je=F.buffer.byteLength,Be===uo?je>>=1:Be===si&&(je>>=2)),F.vertCount=je;var lt=fe;if(fe<0){lt=vi;var kt=F.buffer.dimension;kt===1&&(lt=as),kt===2&&(lt=gs),kt===3&&(lt=vi)}F.primType=lt}function d(F){Yt.elementsCount--,We(F.buffer!==null,"must not double destroy elements"),delete xr[F.id],F.buffer.destroy(),F.buffer=null}function S(F,K){var ae=pt.create(null,Fi,!0),fe=new Or(ae._buffer);Yt.elementsCount++;function he(xe){if(!xe)ae(),fe.primType=vi,fe.vertCount=0,fe.type=Ji;else if(typeof xe=="number")ae(xe),fe.primType=vi,fe.vertCount=xe|0,fe.type=Ji;else{var Te=null,Be=Eo,Ze=-1,je=-1,lt=0,kt=0;Array.isArray(xe)||X(xe)||Ti(xe)?Te=xe:(We.type(xe,"object","invalid arguments for elements"),"data"in xe&&(Te=xe.data,We(Array.isArray(Te)||X(Te)||Ti(Te),"invalid data for element buffer")),"usage"in xe&&(We.parameter(xe.usage,ls,"invalid element buffer usage"),Be=ls[xe.usage]),"primitive"in xe&&(We.parameter(xe.primitive,vo,"invalid element buffer primitive"),Ze=vo[xe.primitive]),"count"in xe&&(We(typeof xe.count=="number"&&xe.count>=0,"invalid vertex count for elements"),je=xe.count|0),"type"in xe&&(We.parameter(xe.type,lr,"invalid buffer type"),kt=lr[xe.type]),"length"in xe?lt=xe.length|0:(lt=je,kt===uo||kt===mo?lt*=2:(kt===si||kt===Da)&&(lt*=4))),Xr(fe,Te,Be,Ze,je,lt,kt)}return he}return he(F),he._reglType="elements",he._elements=fe,he.subdata=function(xe,Te){return ae.subdata(xe,Te),he},he.destroy=function(){d(fe)},he}return{create:S,createStream:Rr,destroyStream:Lr,getElements:function(F){return typeof F=="function"&&F._elements instanceof Or?F._elements:null},clear:function(){Ii(xr).forEach(d)}}}var Ao=new Float32Array(1),qo=new Uint32Array(Ao.buffer),bo=5123;function Oo(me){for(var Qe=ye.allocType(bo,me.length),pt=0;pt>>31<<15,ar=(Yt<<1>>>24)-127,lr=Yt>>13&(1<<10)-1;if(ar<-24)Qe[pt]=xr;else if(ar<-14){var Or=-14-ar;Qe[pt]=xr+(lr+(1<<10)>>Or)}else ar>15?Qe[pt]=xr+31744:Qe[pt]=xr+(ar+15<<10)+lr}return Qe}function qa(me){return Array.isArray(me)||X(me)}var Bs=function(me){return!(me&me-1)&&!!me},lf=34467,Vo=3553,Js=34067,Fs=34069,fa=6408,ln=6406,Gs=6407,fo=6409,As=6410,zs=32854,Ai=32855,hi=36194,eu=32819,bu=32820,tu=33635,ps=34042,xu=6402,Gi=34041,Lo=35904,ru=35906,Do=36193,Us=33776,Os=33777,Ws=33778,ys=33779,Xs=35986,jo=35987,Jo=34798,nu=35840,wu=35841,_u=35842,Su=35843,Wu=36196,is=5121,Vs=5123,os=5125,xo=5126,Xu=10242,Yo=10243,Vu=10497,au=33071,ju=33648,l=10240,L=10241,le=9728,we=9729,Ne=9984,ze=9985,Xe=9986,nt=9987,st=33170,xt=4352,Rt=4353,ur=4354,gr=34046,fr=3317,Pr=37440,jr=37441,cr=37443,tn=37444,ra=33984,ca=[Ne,Xe,ze,nt],$n=[0,fo,As,Gs,fa],On={};On[fo]=On[ln]=On[xu]=1,On[Gi]=On[As]=2,On[Gs]=On[Lo]=3,On[fa]=On[ru]=4;function Gn(me){return"[object "+me+"]"}var Ha=Gn("HTMLCanvasElement"),ni=Gn("OffscreenCanvas"),xi=Gn("CanvasRenderingContext2D"),Oi=Gn("ImageBitmap"),wi=Gn("HTMLImageElement"),Li=Gn("HTMLVideoElement"),Ri=Object.keys(rs).concat([Ha,ni,xi,Oi,wi,Li]),wa=[];wa[is]=1,wa[xo]=4,wa[Do]=2,wa[Vs]=2,wa[os]=4;var Za=[];Za[zs]=2,Za[Ai]=2,Za[hi]=2,Za[Gi]=4,Za[Us]=.5,Za[Os]=.5,Za[Ws]=1,Za[ys]=1,Za[Xs]=.5,Za[jo]=1,Za[Jo]=1,Za[nu]=.5,Za[wu]=.25,Za[_u]=.5,Za[Su]=.25,Za[Wu]=.5;function ms(me){return Array.isArray(me)&&(me.length===0||typeof me[0]=="number")}function ss(me){if(!Array.isArray(me))return!1;var Qe=me.length;return!(Qe===0||!qa(me[0]))}function No(me){return Object.prototype.toString.call(me)}function js(me){return No(me)===Ha}function Nf(me){return No(me)===ni}function Pf(me){return No(me)===xi}function Yu(me){return No(me)===Oi}function Hu(me){return No(me)===wi}function kf(me){return No(me)===Li}function Ys(me){if(!me)return!1;var Qe=No(me);return Ri.indexOf(Qe)>=0?!0:ms(me)||ss(me)||Ti(me)}function Rf(me){return rs[Object.prototype.toString.call(me)]|0}function Mu(me,Qe){var pt=Qe.length;switch(me.type){case is:case Vs:case os:case xo:var Yt=ye.allocType(me.type,pt);Yt.set(Qe),me.data=Yt;break;case Do:me.data=Oo(Qe);break;default:We.raise("unsupported texture type, must specify a typed array")}}function es(me,Qe){return ye.allocType(me.type===Do?xo:me.type,Qe)}function Bf(me,Qe){me.type===Do?(me.data=Oo(Qe),ye.freeType(Qe)):me.data=Qe}function cc(me,Qe,pt,Yt,xr,ar){for(var lr=me.width,Or=me.height,Nr=me.channels,Rr=lr*Or*Nr,Lr=es(me,Rr),Xr=0,d=0;d=1;)Or+=lr*Nr*Nr,Nr/=2;return Or}else return lr*pt*Yt}function Ff(me,Qe,pt,Yt,xr,ar,lr){var Or={"don't care":xt,"dont care":xt,nice:ur,fast:Rt},Nr={repeat:Vu,clamp:au,mirror:ju},Rr={nearest:le,linear:we},Lr=W({mipmap:nt,"nearest mipmap nearest":Ne,"linear mipmap nearest":ze,"nearest mipmap linear":Xe,"linear mipmap linear":nt},Rr),Xr={none:0,browser:tn},d={uint8:is,rgba4:eu,rgb565:tu,"rgb5 a1":bu},S={alpha:ln,luminance:fo,"luminance alpha":As,rgb:Gs,rgba:fa,rgba4:zs,"rgb5 a1":Ai,rgb565:hi},F={};Qe.ext_srgb&&(S.srgb=Lo,S.srgba=ru),Qe.oes_texture_float&&(d.float32=d.float=xo),Qe.oes_texture_half_float&&(d.float16=d["half float"]=Do),Qe.webgl_depth_texture&&(W(S,{depth:xu,"depth stencil":Gi}),W(d,{uint16:Vs,uint32:os,"depth stencil":ps})),Qe.webgl_compressed_texture_s3tc&&W(F,{"rgb s3tc dxt1":Us,"rgba s3tc dxt1":Os,"rgba s3tc dxt3":Ws,"rgba s3tc dxt5":ys}),Qe.webgl_compressed_texture_atc&&W(F,{"rgb atc":Xs,"rgba atc explicit alpha":jo,"rgba atc interpolated alpha":Jo}),Qe.webgl_compressed_texture_pvrtc&&W(F,{"rgb pvrtc 4bppv1":nu,"rgb pvrtc 2bppv1":wu,"rgba pvrtc 4bppv1":_u,"rgba pvrtc 2bppv1":Su}),Qe.webgl_compressed_texture_etc1&&(F["rgb etc1"]=Wu);var K=Array.prototype.slice.call(me.getParameter(lf));Object.keys(F).forEach(function(ut){var nr=F[ut];K.indexOf(nr)>=0&&(S[ut]=nr)});var ae=Object.keys(S);pt.textureFormats=ae;var fe=[];Object.keys(S).forEach(function(ut){var nr=S[ut];fe[nr]=ut});var he=[];Object.keys(d).forEach(function(ut){var nr=d[ut];he[nr]=ut});var xe=[];Object.keys(Rr).forEach(function(ut){var nr=Rr[ut];xe[nr]=ut});var Te=[];Object.keys(Lr).forEach(function(ut){var nr=Lr[ut];Te[nr]=ut});var Be=[];Object.keys(Nr).forEach(function(ut){var nr=Nr[ut];Be[nr]=ut});var Ze=ae.reduce(function(ut,nr){var Jt=S[nr];return Jt===fo||Jt===ln||Jt===fo||Jt===As||Jt===xu||Jt===Gi||Qe.ext_srgb&&(Jt===Lo||Jt===ru)?ut[Jt]=Jt:Jt===Ai||nr.indexOf("rgba")>=0?ut[Jt]=fa:ut[Jt]=Gs,ut},{});function je(){this.internalformat=fa,this.format=fa,this.type=is,this.compressed=!1,this.premultiplyAlpha=!1,this.flipY=!1,this.unpackAlignment=1,this.colorSpace=tn,this.width=0,this.height=0,this.channels=0}function lt(ut,nr){ut.internalformat=nr.internalformat,ut.format=nr.format,ut.type=nr.type,ut.compressed=nr.compressed,ut.premultiplyAlpha=nr.premultiplyAlpha,ut.flipY=nr.flipY,ut.unpackAlignment=nr.unpackAlignment,ut.colorSpace=nr.colorSpace,ut.width=nr.width,ut.height=nr.height,ut.channels=nr.channels}function kt(ut,nr){if(!(typeof nr!="object"||!nr)){if("premultiplyAlpha"in nr&&(We.type(nr.premultiplyAlpha,"boolean","invalid premultiplyAlpha"),ut.premultiplyAlpha=nr.premultiplyAlpha),"flipY"in nr&&(We.type(nr.flipY,"boolean","invalid texture flip"),ut.flipY=nr.flipY),"alignment"in nr&&(We.oneOf(nr.alignment,[1,2,4,8],"invalid texture unpack alignment"),ut.unpackAlignment=nr.alignment),"colorSpace"in nr&&(We.parameter(nr.colorSpace,Xr,"invalid colorSpace"),ut.colorSpace=Xr[nr.colorSpace]),"type"in nr){var Jt=nr.type;We(Qe.oes_texture_float||!(Jt==="float"||Jt==="float32"),"you must enable the OES_texture_float extension in order to use floating point textures."),We(Qe.oes_texture_half_float||!(Jt==="half float"||Jt==="float16"),"you must enable the OES_texture_half_float extension in order to use 16-bit floating point textures."),We(Qe.webgl_depth_texture||!(Jt==="uint16"||Jt==="uint32"||Jt==="depth stencil"),"you must enable the WEBGL_depth_texture extension in order to use depth/stencil textures."),We.parameter(Jt,d,"invalid texture type"),ut.type=d[Jt]}var qr=ut.width,da=ut.height,at=ut.channels,Ye=!1;"shape"in nr?(We(Array.isArray(nr.shape)&&nr.shape.length>=2,"shape must be an array"),qr=nr.shape[0],da=nr.shape[1],nr.shape.length===3&&(at=nr.shape[2],We(at>0&&at<=4,"invalid number of channels"),Ye=!0),We(qr>=0&&qr<=pt.maxTextureSize,"invalid width"),We(da>=0&&da<=pt.maxTextureSize,"invalid height")):("radius"in nr&&(qr=da=nr.radius,We(qr>=0&&qr<=pt.maxTextureSize,"invalid radius")),"width"in nr&&(qr=nr.width,We(qr>=0&&qr<=pt.maxTextureSize,"invalid width")),"height"in nr&&(da=nr.height,We(da>=0&&da<=pt.maxTextureSize,"invalid height")),"channels"in nr&&(at=nr.channels,We(at>0&&at<=4,"invalid number of channels"),Ye=!0)),ut.width=qr|0,ut.height=da|0,ut.channels=at|0;var Ot=!1;if("format"in nr){var Ht=nr.format;We(Qe.webgl_depth_texture||!(Ht==="depth"||Ht==="depth stencil"),"you must enable the WEBGL_depth_texture extension in order to use depth/stencil textures."),We.parameter(Ht,S,"invalid texture format");var Kt=ut.internalformat=S[Ht];ut.format=Ze[Kt],Ht in d&&("type"in nr||(ut.type=d[Ht])),Ht in F&&(ut.compressed=!0),Ot=!0}!Ye&&Ot?ut.channels=On[ut.format]:Ye&&!Ot?ut.channels!==$n[ut.format]&&(ut.format=ut.internalformat=$n[ut.channels]):Ot&&Ye&&We(ut.channels===On[ut.format],"number of channels inconsistent with specified format")}}function pr(ut){me.pixelStorei(Pr,ut.flipY),me.pixelStorei(jr,ut.premultiplyAlpha),me.pixelStorei(cr,ut.colorSpace),me.pixelStorei(fr,ut.unpackAlignment)}function Wt(){je.call(this),this.xOffset=0,this.yOffset=0,this.data=null,this.needsFree=!1,this.element=null,this.needsCopy=!1}function Vt(ut,nr){var Jt=null;if(Ys(nr)?Jt=nr:nr&&(We.type(nr,"object","invalid pixel data type"),kt(ut,nr),"x"in nr&&(ut.xOffset=nr.x|0),"y"in nr&&(ut.yOffset=nr.y|0),Ys(nr.data)&&(Jt=nr.data)),We(!ut.compressed||Jt instanceof Uint8Array,"compressed texture data must be stored in a uint8array"),nr.copy){We(!Jt,"can not specify copy and data field for the same texture");var qr=xr.viewportWidth,da=xr.viewportHeight;ut.width=ut.width||qr-ut.xOffset,ut.height=ut.height||da-ut.yOffset,ut.needsCopy=!0,We(ut.xOffset>=0&&ut.xOffset=0&&ut.yOffset0&&ut.width<=qr&&ut.height>0&&ut.height<=da,"copy texture read out of bounds")}else if(!Jt)ut.width=ut.width||1,ut.height=ut.height||1,ut.channels=ut.channels||4;else if(X(Jt))ut.channels=ut.channels||4,ut.data=Jt,!("type"in nr)&&ut.type===is&&(ut.type=Rf(Jt));else if(ms(Jt))ut.channels=ut.channels||4,Mu(ut,Jt),ut.alignment=1,ut.needsFree=!0;else if(Ti(Jt)){var at=Jt.data;!Array.isArray(at)&&ut.type===is&&(ut.type=Rf(at));var Ye=Jt.shape,Ot=Jt.stride,Ht,Kt,Dt,At,zt,ot;Ye.length===3?(Dt=Ye[2],ot=Ot[2]):(We(Ye.length===2,"invalid ndarray pixel data, must be 2 or 3D"),Dt=1,ot=1),Ht=Ye[0],Kt=Ye[1],At=Ot[0],zt=Ot[1],ut.alignment=1,ut.width=Ht,ut.height=Kt,ut.channels=Dt,ut.format=ut.internalformat=$n[Dt],ut.needsFree=!0,cc(ut,at,At,zt,ot,Jt.offset)}else if(js(Jt)||Nf(Jt)||Pf(Jt))js(Jt)||Nf(Jt)?ut.element=Jt:ut.element=Jt.canvas,ut.width=ut.element.width,ut.height=ut.element.height,ut.channels=4;else if(Yu(Jt))ut.element=Jt,ut.width=Jt.width,ut.height=Jt.height,ut.channels=4;else if(Hu(Jt))ut.element=Jt,ut.width=Jt.naturalWidth,ut.height=Jt.naturalHeight,ut.channels=4;else if(kf(Jt))ut.element=Jt,ut.width=Jt.videoWidth,ut.height=Jt.videoHeight,ut.channels=4;else if(ss(Jt)){var gt=ut.width||Jt[0].length,tt=ut.height||Jt.length,Xt=ut.channels;qa(Jt[0][0])?Xt=Xt||Jt[0][0].length:Xt=Xt||1;for(var Qt=ja.shape(Jt),wr=1,Mr=0;Mr=0,"oes_texture_float extension not enabled"):ut.type===Do&&We(pt.extensions.indexOf("oes_texture_half_float")>=0,"oes_texture_half_float extension not enabled")}function jt(ut,nr,Jt){var qr=ut.element,da=ut.data,at=ut.internalformat,Ye=ut.format,Ot=ut.type,Ht=ut.width,Kt=ut.height;pr(ut),qr?me.texImage2D(nr,Jt,Ye,Ye,Ot,qr):ut.compressed?me.compressedTexImage2D(nr,Jt,at,Ht,Kt,0,da):ut.needsCopy?(Yt(),me.copyTexImage2D(nr,Jt,Ye,ut.xOffset,ut.yOffset,Ht,Kt,0)):me.texImage2D(nr,Jt,Ye,Ht,Kt,0,Ye,Ot,da||null)}function Dr(ut,nr,Jt,qr,da){var at=ut.element,Ye=ut.data,Ot=ut.internalformat,Ht=ut.format,Kt=ut.type,Dt=ut.width,At=ut.height;pr(ut),at?me.texSubImage2D(nr,da,Jt,qr,Ht,Kt,at):ut.compressed?me.compressedTexSubImage2D(nr,da,Jt,qr,Ot,Dt,At,Ye):ut.needsCopy?(Yt(),me.copyTexSubImage2D(nr,da,Jt,qr,ut.xOffset,ut.yOffset,Dt,At)):me.texSubImage2D(nr,da,Jt,qr,Dt,At,Ht,Kt,Ye)}var Kr=[];function Yr(){return Kr.pop()||new Wt}function yn(ut){ut.needsFree&&ye.freeType(ut.data),Wt.call(ut),Kr.push(ut)}function dn(){je.call(this),this.genMipmaps=!1,this.mipmapHint=xt,this.mipmask=0,this.images=Array(16)}function An(ut,nr,Jt){var qr=ut.images[0]=Yr();ut.mipmask=1,qr.width=ut.width=nr,qr.height=ut.height=Jt,qr.channels=ut.channels=4}function Kn(ut,nr){var Jt=null;if(Ys(nr))Jt=ut.images[0]=Yr(),lt(Jt,ut),Vt(Jt,nr),ut.mipmask=1;else if(kt(ut,nr),Array.isArray(nr.mipmap))for(var qr=nr.mipmap,da=0;da>=da,Jt.height>>=da,Vt(Jt,qr[da]),ut.mipmask|=1<=0&&!("faces"in nr)&&(ut.genMipmaps=!0)}if("mag"in nr){var qr=nr.mag;We.parameter(qr,Rr),ut.magFilter=Rr[qr]}var da=ut.wrapS,at=ut.wrapT;if("wrap"in nr){var Ye=nr.wrap;typeof Ye=="string"?(We.parameter(Ye,Nr),da=at=Nr[Ye]):Array.isArray(Ye)&&(We.parameter(Ye[0],Nr),We.parameter(Ye[1],Nr),da=Nr[Ye[0]],at=Nr[Ye[1]])}else{if("wrapS"in nr){var Ot=nr.wrapS;We.parameter(Ot,Nr),da=Nr[Ot]}if("wrapT"in nr){var Ht=nr.wrapT;We.parameter(Ht,Nr),at=Nr[Ht]}}if(ut.wrapS=da,ut.wrapT=at,"anisotropic"in nr){var Kt=nr.anisotropic;We(typeof Kt=="number"&&Kt>=1&&Kt<=pt.maxAnisotropic,"aniso samples must be between 1 and "),ut.anisotropic=nr.anisotropic}if("mipmap"in nr){var Dt=!1;switch(typeof nr.mipmap){case"string":We.parameter(nr.mipmap,Or,"invalid mipmap hint"),ut.mipmapHint=Or[nr.mipmap],ut.genMipmaps=!0,Dt=!0;break;case"boolean":Dt=ut.genMipmaps=nr.mipmap;break;case"object":We(Array.isArray(nr.mipmap),"invalid mipmap type"),ut.genMipmaps=!1,Dt=!0;break;default:We.raise("invalid mipmap type")}Dt&&!("min"in nr)&&(ut.minFilter=Ne)}}function _i(ut,nr){me.texParameteri(nr,L,ut.minFilter),me.texParameteri(nr,l,ut.magFilter),me.texParameteri(nr,Xu,ut.wrapS),me.texParameteri(nr,Yo,ut.wrapT),Qe.ext_texture_filter_anisotropic&&me.texParameteri(nr,gr,ut.anisotropic),ut.genMipmaps&&(me.hint(st,ut.mipmapHint),me.generateMipmap(nr))}var Si=0,Hi={},Ro=pt.maxTextureUnits,Zi=Array(Ro).map(function(){return null});function la(ut){je.call(this),this.mipmask=0,this.internalformat=fa,this.id=Si++,this.refCount=1,this.target=ut,this.texture=me.createTexture(),this.unit=-1,this.bindCount=0,this.texInfo=new ai,lr.profile&&(this.stats={size:0})}function So(ut){me.activeTexture(ra),me.bindTexture(ut.target,ut.texture)}function Ka(){var ut=Zi[0];ut?me.bindTexture(ut.target,ut.texture):me.bindTexture(Vo,null)}function Nn(ut){var nr=ut.texture;We(nr,"must not double destroy texture");var Jt=ut.unit,qr=ut.target;Jt>=0&&(me.activeTexture(ra+Jt),me.bindTexture(qr,null),Zi[Jt]=null),me.deleteTexture(nr),ut.texture=null,ut.params=null,ut.pixels=null,ut.refCount=0,delete Hi[ut.id],ar.textureCount--}W(la.prototype,{bind:function(){var ut=this;ut.bindCount+=1;var nr=ut.unit;if(nr<0){for(var Jt=0;Jt0)continue;qr.unit=-1}Zi[Jt]=ut,nr=Jt;break}nr>=Ro&&We.raise("insufficient number of texture units"),lr.profile&&ar.maxTextureUnits>zt)-Dt,ot.height=ot.height||(Jt.height>>zt)-At,We(Jt.type===ot.type&&Jt.format===ot.format&&Jt.internalformat===ot.internalformat,"incompatible format for texture.subimage"),We(Dt>=0&&At>=0&&Dt+ot.width<=Jt.width&&At+ot.height<=Jt.height,"texture.subimage write out of bounds"),We(Jt.mipmask&1<>Dt;++Dt){var At=Ht>>Dt,zt=Kt>>Dt;if(!At||!zt)break;me.texImage2D(Vo,Dt,Jt.format,At,zt,0,Jt.format,Jt.type,null)}return Ka(),lr.profile&&(Jt.stats.size=Hs(Jt.internalformat,Jt.type,Ht,Kt,!1,!1)),qr}return qr(ut,nr),qr.subimage=da,qr.resize=at,qr._reglType="texture2d",qr._texture=Jt,lr.profile&&(qr.stats=Jt.stats),qr.destroy=function(){Jt.decRef()},qr}function Fa(ut,nr,Jt,qr,da,at){var Ye=new la(Js);Hi[Ye.id]=Ye,ar.cubeCount++;var Ot=new Array(6);function Ht(At,zt,ot,gt,tt,Xt){var Qt,wr=Ye.texInfo;for(ai.call(wr),Qt=0;Qt<6;++Qt)Ot[Qt]=Qn();if(typeof At=="number"||!At){var Mr=At|0||1;for(Qt=0;Qt<6;++Qt)An(Ot[Qt],Mr,Mr)}else if(typeof At=="object")if(zt)Kn(Ot[0],At),Kn(Ot[1],zt),Kn(Ot[2],ot),Kn(Ot[3],gt),Kn(Ot[4],tt),Kn(Ot[5],Xt);else if(Ca(wr,At),kt(Ye,At),"faces"in At){var yr=At.faces;for(We(Array.isArray(yr)&&yr.length===6,"cube faces must be a length 6 array"),Qt=0;Qt<6;++Qt)We(typeof yr[Qt]=="object"&&!!yr[Qt],"invalid input for cube map face"),lt(Ot[Qt],Ye),Kn(Ot[Qt],yr[Qt])}else for(Qt=0;Qt<6;++Qt)Kn(Ot[Qt],At);else We.raise("invalid arguments to cube map");for(lt(Ye,Ot[0]),pt.npotTextureCube||We(Bs(Ye.width)&&Bs(Ye.height),"your browser does not support non power or two texture dimensions"),wr.genMipmaps?Ye.mipmask=(Ot[0].width<<1)-1:Ye.mipmask=Ot[0].mipmask,We.textureCube(Ye,wr,Ot,pt),Ye.internalformat=Ot[0].internalformat,Ht.width=Ot[0].width,Ht.height=Ot[0].height,So(Ye),Qt=0;Qt<6;++Qt)Sn(Ot[Qt],Fs+Qt);for(_i(wr,Js),Ka(),lr.profile&&(Ye.stats.size=Hs(Ye.internalformat,Ye.type,Ht.width,Ht.height,wr.genMipmaps,!0)),Ht.format=fe[Ye.internalformat],Ht.type=he[Ye.type],Ht.mag=xe[wr.magFilter],Ht.min=Te[wr.minFilter],Ht.wrapS=Be[wr.wrapS],Ht.wrapT=Be[wr.wrapT],Qt=0;Qt<6;++Qt)Bi(Ot[Qt]);return Ht}function Kt(At,zt,ot,gt,tt){We(!!zt,"must specify image data"),We(typeof At=="number"&&At===(At|0)&&At>=0&&At<6,"invalid face");var Xt=ot|0,Qt=gt|0,wr=tt|0,Mr=Yr();return lt(Mr,Ye),Mr.width=0,Mr.height=0,Vt(Mr,zt),Mr.width=Mr.width||(Ye.width>>wr)-Xt,Mr.height=Mr.height||(Ye.height>>wr)-Qt,We(Ye.type===Mr.type&&Ye.format===Mr.format&&Ye.internalformat===Mr.internalformat,"incompatible format for texture.subimage"),We(Xt>=0&&Qt>=0&&Xt+Mr.width<=Ye.width&&Qt+Mr.height<=Ye.height,"texture.subimage write out of bounds"),We(Ye.mipmask&1<>gt;++gt)me.texImage2D(Fs+ot,gt,Ye.format,zt>>gt,zt>>gt,0,Ye.format,Ye.type,null);return Ka(),lr.profile&&(Ye.stats.size=Hs(Ye.internalformat,Ye.type,Ht.width,Ht.height,!1,!0)),Ht}}return Ht(ut,nr,Jt,qr,da,at),Ht.subimage=Kt,Ht.resize=Dt,Ht._reglType="textureCube",Ht._texture=Ye,lr.profile&&(Ht.stats=Ye.stats),Ht.destroy=function(){Ye.decRef()},Ht}function Ki(){for(var ut=0;ut>qr,Jt.height>>qr,0,Jt.internalformat,Jt.type,null);else for(var da=0;da<6;++da)me.texImage2D(Fs+da,qr,Jt.internalformat,Jt.width>>qr,Jt.height>>qr,0,Jt.internalformat,Jt.type,null);_i(Jt.texInfo,Jt.target)})}function uf(){for(var ut=0;ut=2,"invalid renderbuffer shape"),Te=lt[0]|0,Be=lt[1]|0}else"radius"in je&&(Te=Be=je.radius|0),"width"in je&&(Te=je.width|0),"height"in je&&(Be=je.height|0);"format"in je&&(We.parameter(je.format,ar,"invalid renderbuffer format"),Ze=ar[je.format])}else typeof he=="number"?(Te=he|0,typeof xe=="number"?Be=xe|0:Be=Te):he?We.raise("invalid arguments to renderbuffer constructor"):Te=Be=1;if(We(Te>0&&Be>0&&Te<=pt.maxRenderbufferSize&&Be<=pt.maxRenderbufferSize,"invalid renderbuffer size"),!(Te===K.width&&Be===K.height&&Ze===K.format))return ae.width=K.width=Te,ae.height=K.height=Be,K.format=Ze,me.bindRenderbuffer(en,K.renderbuffer),me.renderbufferStorage(en,Ze,Te,Be),We(me.getError()===0,"invalid render buffer format"),xr.profile&&(K.stats.size=ne(K.format,K.width,K.height)),ae.format=lr[K.format],ae}function fe(he,xe){var Te=he|0,Be=xe|0||Te;return Te===K.width&&Be===K.height||(We(Te>0&&Be>0&&Te<=pt.maxRenderbufferSize&&Be<=pt.maxRenderbufferSize,"invalid renderbuffer size"),ae.width=K.width=Te,ae.height=K.height=Be,me.bindRenderbuffer(en,K.renderbuffer),me.renderbufferStorage(en,K.format,Te,Be),We(me.getError()===0,"invalid render buffer format"),xr.profile&&(K.stats.size=ne(K.format,K.width,K.height))),ae}return ae(S,F),ae.resize=fe,ae._reglType="renderbuffer",ae._renderbuffer=K,xr.profile&&(ae.stats=K.stats),ae.destroy=function(){K.decRef()},ae}xr.profile&&(Yt.getTotalRenderbufferSize=function(){var S=0;return Object.keys(Nr).forEach(function(F){S+=Nr[F].stats.size}),S});function d(){Ii(Nr).forEach(function(S){S.renderbuffer=me.createRenderbuffer(),me.bindRenderbuffer(en,S.renderbuffer),me.renderbufferStorage(en,S.format,S.width,S.height)}),me.bindRenderbuffer(en,null)}return{create:Xr,clear:function(){Ii(Nr).forEach(Lr)},restore:d}},Me=36160,Ge=36161,qe=3553,Lt=34069,Pt=36064,sr=36096,Ir=36128,Ar=33306,$r=36053,sn=36054,Qr=36055,Xn=36057,ha=36061,Yn=36193,Rn=5121,qn=5126,wn=6407,Wn=6408,Hn=6402,Cn=[wn,Wn],ga=[];ga[Wn]=4,ga[wn]=3;var ka=[];ka[Rn]=1,ka[qn]=4,ka[Yn]=2;var ui=32854,Ya=32855,Ba=36194,fi=33189,Di=36168,Ni=34041,Es=35907,Wf=34836,bs=34842,vf=34843,su=[ui,Ya,Ba,Es,bs,vf,Wf],xs={};xs[$r]="complete",xs[sn]="incomplete attachment",xs[Xn]="incomplete dimensions",xs[Qr]="incomplete, missing attachment",xs[ha]="unsupported";function Zu(me,Qe,pt,Yt,xr,ar){var lr={cur:null,next:null,dirty:!1,setFBO:null},Or=["rgba"],Nr=["rgba4","rgb565","rgb5 a1"];Qe.ext_srgb&&Nr.push("srgba"),Qe.ext_color_buffer_half_float&&Nr.push("rgba16f","rgb16f"),Qe.webgl_color_buffer_float&&Nr.push("rgba32f");var Rr=["uint8"];Qe.oes_texture_half_float&&Rr.push("half float","float16"),Qe.oes_texture_float&&Rr.push("float","float32");function Lr(Wt,Vt,jt){this.target=Wt,this.texture=Vt,this.renderbuffer=jt;var Dr=0,Kr=0;Vt?(Dr=Vt.width,Kr=Vt.height):jt&&(Dr=jt.width,Kr=jt.height),this.width=Dr,this.height=Kr}function Xr(Wt){Wt&&(Wt.texture&&Wt.texture._texture.decRef(),Wt.renderbuffer&&Wt.renderbuffer._renderbuffer.decRef())}function d(Wt,Vt,jt){if(!!Wt)if(Wt.texture){var Dr=Wt.texture._texture,Kr=Math.max(1,Dr.width),Yr=Math.max(1,Dr.height);We(Kr===Vt&&Yr===jt,"inconsistent width/height for supplied texture"),Dr.refCount+=1}else{var yn=Wt.renderbuffer._renderbuffer;We(yn.width===Vt&&yn.height===jt,"inconsistent width/height for renderbuffer"),yn.refCount+=1}}function S(Wt,Vt){Vt&&(Vt.texture?me.framebufferTexture2D(Me,Wt,Vt.target,Vt.texture._texture.texture,0):me.framebufferRenderbuffer(Me,Wt,Ge,Vt.renderbuffer._renderbuffer.renderbuffer))}function F(Wt){var Vt=qe,jt=null,Dr=null,Kr=Wt;typeof Wt=="object"&&(Kr=Wt.data,"target"in Wt&&(Vt=Wt.target|0)),We.type(Kr,"function","invalid attachment data");var Yr=Kr._reglType;return Yr==="texture2d"?(jt=Kr,We(Vt===qe)):Yr==="textureCube"?(jt=Kr,We(Vt>=Lt&&Vt=2,"invalid shape for framebuffer"),An=So[0],Kn=So[1]}else"radius"in la&&(An=Kn=la.radius),"width"in la&&(An=la.width),"height"in la&&(Kn=la.height);("color"in la||"colors"in la)&&(Qn=la.color||la.colors,Array.isArray(Qn)&&We(Qn.length===1||Qe.webgl_draw_buffers,"multiple render targets not supported")),Qn||("colorCount"in la&&(_i=la.colorCount|0,We(_i>0,"invalid color buffer count")),"colorTexture"in la&&(Bi=!!la.colorTexture,ai="rgba4"),"colorType"in la&&(Ca=la.colorType,Bi?(We(Qe.oes_texture_float||!(Ca==="float"||Ca==="float32"),"you must enable OES_texture_float in order to use floating point framebuffer objects"),We(Qe.oes_texture_half_float||!(Ca==="half float"||Ca==="float16"),"you must enable OES_texture_half_float in order to use 16-bit floating point framebuffer objects")):Ca==="half float"||Ca==="float16"?(We(Qe.ext_color_buffer_half_float,"you must enable EXT_color_buffer_half_float to use 16-bit render buffers"),ai="rgba16f"):(Ca==="float"||Ca==="float32")&&(We(Qe.webgl_color_buffer_float,"you must enable WEBGL_color_buffer_float in order to use 32-bit floating point renderbuffers"),ai="rgba32f"),We.oneOf(Ca,Rr,"invalid color type")),"colorFormat"in la&&(ai=la.colorFormat,Or.indexOf(ai)>=0?Bi=!0:Nr.indexOf(ai)>=0?Bi=!1:Bi?We.oneOf(la.colorFormat,Or,"invalid color format for texture"):We.oneOf(la.colorFormat,Nr,"invalid color format for renderbuffer"))),("depthTexture"in la||"depthStencilTexture"in la)&&(Zi=!!(la.depthTexture||la.depthStencilTexture),We(!Zi||Qe.webgl_depth_texture,"webgl_depth_texture extension not supported")),"depth"in la&&(typeof la.depth=="boolean"?Sn=la.depth:(Si=la.depth,pi=!1)),"stencil"in la&&(typeof la.stencil=="boolean"?pi=la.stencil:(Hi=la.stencil,Sn=!1)),"depthStencil"in la&&(typeof la.depthStencil=="boolean"?Sn=pi=la.depthStencil:(Ro=la.depthStencil,Sn=!1,pi=!1))}var Ka=null,Nn=null,ma=null,Fa=null;if(Array.isArray(Qn))Ka=Qn.map(F);else if(Qn)Ka=[F(Qn)];else for(Ka=new Array(_i),dn=0;dn<_i;++dn)Ka[dn]=K(An,Kn,Bi,ai,Ca);We(Qe.webgl_draw_buffers||Ka.length<=1,"you must enable the WEBGL_draw_buffers extension in order to use multiple color buffers."),We(Ka.length<=pt.maxColorAttachments,"too many color attachments, not supported"),An=An||Ka[0].width,Kn=Kn||Ka[0].height,Si?Nn=F(Si):Sn&&!pi&&(Nn=K(An,Kn,Zi,"depth","uint32")),Hi?ma=F(Hi):pi&&!Sn&&(ma=K(An,Kn,!1,"stencil","uint8")),Ro?Fa=F(Ro):!Si&&!Hi&&pi&&Sn&&(Fa=K(An,Kn,Zi,"depth stencil","depth stencil")),We(!!Si+!!Hi+!!Ro<=1,"invalid framebuffer configuration, can specify exactly one depth/stencil attachment");var Ki=null;for(dn=0;dn=0||Ka[dn].renderbuffer&&su.indexOf(Ka[dn].renderbuffer._renderbuffer.format)>=0,"framebuffer color attachment "+dn+" is invalid"),Ka[dn]&&Ka[dn].texture){var yu=ga[Ka[dn].texture._texture.format]*ka[Ka[dn].texture._texture.type];Ki===null?Ki=yu:We(Ki===yu,"all color attachments much have the same number of bits per pixel.")}return d(Nn,An,Kn),We(!Nn||Nn.texture&&Nn.texture._texture.format===Hn||Nn.renderbuffer&&Nn.renderbuffer._renderbuffer.format===fi,"invalid depth attachment for framebuffer object"),d(ma,An,Kn),We(!ma||ma.renderbuffer&&ma.renderbuffer._renderbuffer.format===Di,"invalid stencil attachment for framebuffer object"),d(Fa,An,Kn),We(!Fa||Fa.texture&&Fa.texture._texture.format===Ni||Fa.renderbuffer&&Fa.renderbuffer._renderbuffer.format===Ni,"invalid depth-stencil attachment for framebuffer object"),Be(jt),jt.width=An,jt.height=Kn,jt.colorAttachments=Ka,jt.depthAttachment=Nn,jt.stencilAttachment=ma,jt.depthStencilAttachment=Fa,Dr.color=Ka.map(ae),Dr.depth=ae(Nn),Dr.stencil=ae(ma),Dr.depthStencil=ae(Fa),Dr.width=jt.width,Dr.height=jt.height,je(jt),Dr}function Kr(Yr,yn){We(lr.next!==jt,"can not resize a framebuffer which is currently in use");var dn=Math.max(Yr|0,1),An=Math.max(yn|0||dn,1);if(dn===jt.width&&An===jt.height)return Dr;for(var Kn=jt.colorAttachments,Sn=0;Sn=2,"invalid shape for framebuffer"),We(Bi[0]===Bi[1],"cube framebuffer must be square"),dn=Bi[0]}else"radius"in Qn&&(dn=Qn.radius|0),"width"in Qn?(dn=Qn.width|0,"height"in Qn&&We(Qn.height===dn,"must be square")):"height"in Qn&&(dn=Qn.height|0);("color"in Qn||"colors"in Qn)&&(An=Qn.color||Qn.colors,Array.isArray(An)&&We(An.length===1||Qe.webgl_draw_buffers,"multiple render targets not supported")),An||("colorCount"in Qn&&(pi=Qn.colorCount|0,We(pi>0,"invalid color buffer count")),"colorType"in Qn&&(We.oneOf(Qn.colorType,Rr,"invalid color type"),Sn=Qn.colorType),"colorFormat"in Qn&&(Kn=Qn.colorFormat,We.oneOf(Qn.colorFormat,Or,"invalid color format for texture"))),"depth"in Qn&&(yn.depth=Qn.depth),"stencil"in Qn&&(yn.stencil=Qn.stencil),"depthStencil"in Qn&&(yn.depthStencil=Qn.depthStencil)}var ai;if(An)if(Array.isArray(An))for(ai=[],Yr=0;Yr0&&(yn.depth=Vt[0].depth,yn.stencil=Vt[0].stencil,yn.depthStencil=Vt[0].depthStencil),Vt[Yr]?Vt[Yr](yn):Vt[Yr]=lt(yn)}return W(jt,{width:dn,height:dn,color:ai})}function Dr(Kr){var Yr,yn=Kr|0;if(We(yn>0&&yn<=pt.maxCubeMapSize,"invalid radius for cube fbo"),yn===jt.width)return jt;var dn=jt.color;for(Yr=0;Yr0,"must specify at least one attribute");var kt={},pr=Ze.attributes;pr.length=lt.length;for(var Wt=0;Wt=Dr.byteLength?Kr.subdata(Dr):(Kr.destroy(),Ze.buffers[Wt]=null)),Ze.buffers[Wt]||(Kr=Ze.buffers[Wt]=xr.create(Vt,Ku,!1,!0)),jt.buffer=xr.getBuffer(Kr),jt.size=jt.buffer.dimension|0,jt.normalized=!1,jt.type=jt.buffer.dtype,jt.offset=0,jt.stride=0,jt.divisor=0,jt.state=1,kt[Wt]=1}else xr.getBuffer(Vt)?(jt.buffer=xr.getBuffer(Vt),jt.size=jt.buffer.dimension|0,jt.normalized=!1,jt.type=jt.buffer.dtype,jt.offset=0,jt.stride=0,jt.divisor=0,jt.state=1):xr.getBuffer(Vt.buffer)?(jt.buffer=xr.getBuffer(Vt.buffer),jt.size=(+Vt.size||jt.buffer.dimension)|0,jt.normalized=!!Vt.normalized||!1,"type"in Vt?(We.parameter(Vt.type,po,"invalid buffer type"),jt.type=po[Vt.type]):jt.type=jt.buffer.dtype,jt.offset=(Vt.offset||0)|0,jt.stride=(Vt.stride||0)|0,jt.divisor=(Vt.divisor||0)|0,jt.state=1,We(jt.size>=1&&jt.size<=4,"size must be between 1 and 4"),We(jt.offset>=0,"invalid offset"),We(jt.stride>=0&&jt.stride<=255,"stride must be between 0 and 255"),We(jt.divisor>=0,"divisor must be positive"),We(!jt.divisor||!!Qe.angle_instanced_arrays,"ANGLE_instanced_arrays must be enabled to use divisor")):"x"in Vt?(We(Wt>0,"first attribute must not be a constant"),jt.x=+Vt.x||0,jt.y=+Vt.y||0,jt.z=+Vt.z||0,jt.w=+Vt.w||0,jt.state=2):We(!1,"invalid attribute spec for location "+Wt)}for(var Yr=0;Yr1)for(var pr=0;prK&&(K=ae.stats.uniformsCount)}),K},pt.getMaxAttributesCount=function(){var K=0;return Lr.forEach(function(ae){ae.stats.attributesCount>K&&(K=ae.stats.attributesCount)}),K});function F(){xr={},ar={};for(var K=0;K=0,"missing vertex shader",fe),We.command(ae>=0,"missing fragment shader",fe);var xe=Rr[ae];xe||(xe=Rr[ae]={});var Te=xe[K];if(Te&&(Te.refCount++,!he))return Te;var Be=new d(ae,K);return pt.shaderCount++,S(Be,fe,he),Te||(xe[K]=Be),Lr.push(Be),W(Be,{destroy:function(){if(Be.refCount--,Be.refCount<=0){me.deleteProgram(Be.program);var Ze=Lr.indexOf(Be);Lr.splice(Ze,1),pt.shaderCount--}xe[Be.vertId].refCount<=0&&(me.deleteShader(ar[Be.vertId]),delete ar[Be.vertId],delete Rr[Be.fragId][Be.vertId]),Object.keys(Rr[Be.fragId]).length||(me.deleteShader(xr[Be.fragId]),delete xr[Be.fragId],delete Rr[Be.fragId])}})},restore:F,shader:Nr,frag:-1,vert:-1}}var ws=6408,fu=5121,pf=3333,yf=5126;function wl(me,Qe,pt,Yt,xr,ar,lr){function Or(Lr){var Xr;Qe.next===null?(We(xr.preserveDrawingBuffer,'you must create a webgl context with "preserveDrawingBuffer":true in order to read pixels from the drawing buffer'),Xr=fu):(We(Qe.next.colorAttachments[0].texture!==null,"You cannot read from a renderbuffer"),Xr=Qe.next.colorAttachments[0].texture._texture.type,ar.oes_texture_float?(We(Xr===fu||Xr===yf,"Reading from a framebuffer is only allowed for the types 'uint8' and 'float'"),Xr===yf&&We(lr.readFloat,"Reading 'float' values is not permitted in your browser. For a fallback, please see: https://www.npmjs.com/package/glsl-read-float")):We(Xr===fu,"Reading from a framebuffer is only allowed for the type 'uint8'"));var d=0,S=0,F=Yt.framebufferWidth,K=Yt.framebufferHeight,ae=null;X(Lr)?ae=Lr:Lr&&(We.type(Lr,"object","invalid arguments to regl.read()"),d=Lr.x|0,S=Lr.y|0,We(d>=0&&d=0&&S0&&F+d<=Yt.framebufferWidth,"invalid width for read pixels"),We(K>0&&K+S<=Yt.framebufferHeight,"invalid height for read pixels"),pt();var fe=F*K*4;return ae||(Xr===fu?ae=new Uint8Array(fe):Xr===yf&&(ae=ae||new Float32Array(fe))),We.isTypedArray(ae,"data buffer for regl.read() must be a typedarray"),We(ae.byteLength>=fe,"data buffer for regl.read() too small"),me.pixelStorei(pf,4),me.readPixels(d,S,F,K,ws,Xr,ae),ae}function Nr(Lr){var Xr;return Qe.setFBO({framebuffer:Lr.framebuffer},function(){Xr=Or(Lr)}),Xr}function Rr(Lr){return!Lr||!("framebuffer"in Lr)?Or(Lr):Nr(Lr)}return Rr}function Au(me){return Array.prototype.slice.call(me)}function Ou(me){return Au(me).join("")}function Yc(){var me=0,Qe=[],pt=[];function Yt(Xr){for(var d=0;d0&&(Xr.push(K,"="),Xr.push.apply(Xr,Au(arguments)),Xr.push(";")),K}return W(d,{def:F,toString:function(){return Ou([S.length>0?"var "+S.join(",")+";":"",Ou(Xr)])}})}function ar(){var Xr=xr(),d=xr(),S=Xr.toString,F=d.toString;function K(ae,fe){d(ae,fe,"=",Xr.def(ae,fe),";")}return W(function(){Xr.apply(Xr,Au(arguments))},{def:Xr.def,entry:Xr,exit:d,save:K,set:function(ae,fe,he){K(ae,fe),Xr(ae,fe,"=",he,";")},toString:function(){return S()+F()}})}function lr(){var Xr=Ou(arguments),d=ar(),S=ar(),F=d.toString,K=S.toString;return W(d,{then:function(){return d.apply(d,Au(arguments)),this},else:function(){return S.apply(S,Au(arguments)),this},toString:function(){var ae=K();return ae&&(ae="else{"+ae+"}"),Ou(["if(",Xr,"){",F(),"}",ae])}})}var Or=xr(),Nr={};function Rr(Xr,d){var S=[];function F(){var xe="a"+S.length;return S.push(xe),xe}d=d||0;for(var K=0;K":516,notequal:517,"!=":517,"!==":517,gequal:518,">=":518,always:519},gu={"0":0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},cl={frag:qc,vert:_l},Fc={cw:Bc,ccw:Sa};function nc(me){return Array.isArray(me)||X(me)||Ti(me)}function Gc(me){return me.sort(function(Qe,pt){return Qe===Ds?-1:pt===Ds?1:Qe=1,Yt>=2,Qe)}else if(pt===Vf){var xr=me.data;return new Po(xr.thisDep,xr.contextDep,xr.propDep,Qe)}else{if(pt===pc)return new Po(!1,!1,!1,Qe);if(pt===Zc){for(var ar=!1,lr=!1,Or=!1,Nr=0;Nr=1&&(lr=!0),Lr>=2&&(Or=!0)}else Rr.type===Vf&&(ar=ar||Rr.data.thisDep,lr=lr||Rr.data.contextDep,Or=Or||Rr.data.propDep)}return new Po(ar,lr,Or,Qe)}else return new Po(pt===gc,pt===hc,pt===vc,Qe)}}var ac=new Po(!1,!1,!1,function(){});function Cl(me,Qe,pt,Yt,xr,ar,lr,Or,Nr,Rr,Lr,Xr,d,S,F){var K=Rr.Record,ae={add:32774,subtract:32778,"reverse subtract":32779};pt.ext_blend_minmax&&(ae.min=zu,ae.max=rc);var fe=pt.angle_instanced_arrays,he=pt.webgl_draw_buffers,xe={dirty:!0,profile:F.profile},Te={},Be=[],Ze={},je={};function lt(at){return at.replace(".","_")}function kt(at,Ye,Ot){var Ht=lt(at);Be.push(at),Te[Ht]=xe[Ht]=!!Ot,Ze[Ht]=Ye}function pr(at,Ye,Ot){var Ht=lt(at);Be.push(at),Array.isArray(Ot)?(xe[Ht]=Ot.slice(),Te[Ht]=Ot.slice()):xe[Ht]=Te[Ht]=Ot,je[Ht]=Ye}kt(yc,Tc),kt(ef,tl),pr(Kc,"blendColor",[0,0,0,0]),pr(mc,"blendEquationSeparate",[Ma,Ma]),pr(jf,"blendFuncSeparate",[sl,ol,sl,ol]),kt(Yf,Ic,!0),pr(Lu,"depthFunc",Ml),pr(Ec,"depthRange",[0,1]),pr(Du,"depthMask",!0),pr(tf,tf,[!0,!0,!0,!0]),kt(Tt,el),pr($c,"cullFace",Gu),pr(Ks,Ks,Sa),pr(rf,rf,1),kt(Hf,qf),pr(bc,"polygonOffset",[0,0]),kt(Qc,wo),kt(mf,_f),pr(Ef,"sampleCoverage",[1,!1]),kt(Zf,rl),pr(xc,"stencilMask",-1),pr(Kf,"stencilFunc",[Sl,0,-1]),pr(eo,"stencilOpSeparate",[Mf,hu,hu,hu]),pr(Nu,"stencilOpSeparate",[Gu,hu,hu,hu]),kt($f,wf),pr(us,"scissor",[0,0,me.drawingBufferWidth,me.drawingBufferHeight]),pr(Ds,Ds,[0,0,me.drawingBufferWidth,me.drawingBufferHeight]);var Wt={gl:me,context:d,strings:Qe,next:Te,current:xe,draw:Xr,elements:ar,buffer:xr,shader:Lr,attributes:Rr.state,vao:Rr,uniforms:Nr,framebuffer:Or,extensions:pt,timer:S,isBufferArgs:nc},Vt={primTypes:vo,compareFuncs:of,blendFuncs:_o,blendEquations:ae,stencilOps:gu,glTypes:po,orientationType:Fc};We.optional(function(){Wt.isArrayLike=qa}),he&&(Vt.backBuffer=[Gu],Vt.drawBuffer=Tn(Yt.maxDrawbuffers,function(at){return at===0?[0]:Tn(at,function(Ye){return ul+Ye})}));var jt=0;function Dr(){var at=Yc(),Ye=at.link,Ot=at.global;at.id=jt++,at.batchId="0";var Ht=Ye(Wt),Kt=at.shared={props:"a0"};Object.keys(Wt).forEach(function(gt){Kt[gt]=Ot.def(Ht,".",gt)}),We.optional(function(){at.CHECK=Ye(We),at.commandStr=We.guessCommand(),at.command=Ye(at.commandStr),at.assert=function(gt,tt,Xt){gt("if(!(",tt,"))",this.CHECK,".commandRaise(",Ye(Xt),",",this.command,");")},Vt.invalidBlendCombinations=fl});var Dt=at.next={},At=at.current={};Object.keys(je).forEach(function(gt){Array.isArray(xe[gt])&&(Dt[gt]=Ot.def(Kt.next,".",gt),At[gt]=Ot.def(Kt.current,".",gt))});var zt=at.constants={};Object.keys(Vt).forEach(function(gt){zt[gt]=Ot.def(JSON.stringify(Vt[gt]))}),at.invoke=function(gt,tt){switch(tt.type){case dc:var Xt=["this",Kt.context,Kt.props,at.batchId];return gt.def(Ye(tt.data),".call(",Xt.slice(0,Math.max(tt.data.length+1,4)),")");case vc:return gt.def(Kt.props,tt.data);case hc:return gt.def(Kt.context,tt.data);case gc:return gt.def("this",tt.data);case Vf:return tt.data.append(at,gt),tt.data.ref;case pc:return tt.data.toString();case Zc:return tt.data.map(function(Qt){return at.invoke(gt,Qt)})}},at.attribCache={};var ot={};return at.scopeAttrib=function(gt){var tt=Qe.id(gt);if(tt in ot)return ot[tt];var Xt=Rr.scope[tt];Xt||(Xt=Rr.scope[tt]=new K);var Qt=ot[tt]=Ye(Xt);return Qt},at}function Kr(at){var Ye=at.static,Ot=at.dynamic,Ht;if(Pu in Ye){var Kt=!!Ye[Pu];Ht=ci(function(At,zt){return Kt}),Ht.enable=Kt}else if(Pu in Ot){var Dt=Ot[Pu];Ht=ko(Dt,function(At,zt){return At.invoke(zt,Dt)})}return Ht}function Yr(at,Ye){var Ot=at.static,Ht=at.dynamic;if(ku in Ot){var Kt=Ot[ku];return Kt?(Kt=Or.getFramebuffer(Kt),We.command(Kt,"invalid framebuffer object"),ci(function(At,zt){var ot=At.link(Kt),gt=At.shared;zt.set(gt.framebuffer,".next",ot);var tt=gt.context;return zt.set(tt,"."+Zr,ot+".width"),zt.set(tt,"."+_s,ot+".height"),ot})):ci(function(At,zt){var ot=At.shared;zt.set(ot.framebuffer,".next","null");var gt=ot.context;return zt.set(gt,"."+Zr,gt+"."+Sc),zt.set(gt,"."+_s,gt+"."+Fu),"null"})}else if(ku in Ht){var Dt=Ht[ku];return ko(Dt,function(At,zt){var ot=At.invoke(zt,Dt),gt=At.shared,tt=gt.framebuffer,Xt=zt.def(tt,".getFramebuffer(",ot,")");We.optional(function(){At.assert(zt,"!"+ot+"||"+Xt,"invalid framebuffer object")}),zt.set(tt,".next",Xt);var Qt=gt.context;return zt.set(Qt,"."+Zr,Xt+"?"+Xt+".width:"+Qt+"."+Sc),zt.set(Qt,"."+_s,Xt+"?"+Xt+".height:"+Qt+"."+Fu),Xt})}else return null}function yn(at,Ye,Ot){var Ht=at.static,Kt=at.dynamic;function Dt(ot){if(ot in Ht){var gt=Ht[ot];We.commandType(gt,"object","invalid "+ot,Ot.commandStr);var tt=!0,Xt=gt.x|0,Qt=gt.y|0,wr,Mr;return"width"in gt?(wr=gt.width|0,We.command(wr>=0,"invalid "+ot,Ot.commandStr)):tt=!1,"height"in gt?(Mr=gt.height|0,We.command(Mr>=0,"invalid "+ot,Ot.commandStr)):tt=!1,new Po(!tt&&Ye&&Ye.thisDep,!tt&&Ye&&Ye.contextDep,!tt&&Ye&&Ye.propDep,function(En,va){var fn=En.shared.context,Mn=wr;"width"in gt||(Mn=va.def(fn,".",Zr,"-",Xt));var Pn=Mr;return"height"in gt||(Pn=va.def(fn,".",_s,"-",Qt)),[Xt,Qt,Mn,Pn]})}else if(ot in Kt){var yr=Kt[ot],Br=ko(yr,function(En,va){var fn=En.invoke(va,yr);We.optional(function(){En.assert(va,fn+"&&typeof "+fn+'==="object"',"invalid "+ot)});var Mn=En.shared.context,Pn=va.def(fn,".x|0"),Va=va.def(fn,".y|0"),Ui=va.def('"width" in ',fn,"?",fn,".width|0:","(",Mn,".",Zr,"-",Pn,")"),Mo=va.def('"height" in ',fn,"?",fn,".height|0:","(",Mn,".",_s,"-",Va,")");return We.optional(function(){En.assert(va,Ui+">=0&&"+Mo+">=0","invalid "+ot)}),[Pn,Va,Ui,Mo]});return Ye&&(Br.thisDep=Br.thisDep||Ye.thisDep,Br.contextDep=Br.contextDep||Ye.contextDep,Br.propDep=Br.propDep||Ye.propDep),Br}else return Ye?new Po(Ye.thisDep,Ye.contextDep,Ye.propDep,function(En,va){var fn=En.shared.context;return[0,0,va.def(fn,".",Zr),va.def(fn,".",_s)]}):null}var At=Dt(Ds);if(At){var zt=At;At=new Po(At.thisDep,At.contextDep,At.propDep,function(ot,gt){var tt=zt.append(ot,gt),Xt=ot.shared.context;return gt.set(Xt,"."+_c,tt[2]),gt.set(Xt,"."+Ns,tt[3]),tt})}return{viewport:At,scissor_box:Dt(us)}}function dn(at,Ye){var Ot=at.static,Ht=typeof Ot[Vi]=="string"&&typeof Ot[cu]=="string";if(Ht){if(Object.keys(Ye.dynamic).length>0)return null;var Kt=Ye.static,Dt=Object.keys(Kt);if(Dt.length>0&&typeof Kt[Dt[0]]=="number"){for(var At=[],zt=0;zt=0,"invalid "+tt,Ye.commandStr),ci(function(Mr,yr){return Xt&&(Mr.OFFSET=Qt),Qt})}else if(tt in Ht){var wr=Ht[tt];return ko(wr,function(Mr,yr){var Br=Mr.invoke(yr,wr);return Xt&&(Mr.OFFSET=Br,We.optional(function(){Mr.assert(yr,Br+">=0","invalid "+tt)})),Br})}else if(Xt&&Dt)return ci(function(Mr,yr){return Mr.OFFSET="0",0});return null}var ot=zt(bf,!0);function gt(){if(Bu in Ot){var tt=Ot[Bu]|0;return We.command(typeof tt=="number"&&tt>=0,"invalid vertex count",Ye.commandStr),ci(function(){return tt})}else if(Bu in Ht){var Xt=Ht[Bu];return ko(Xt,function(Mr,yr){var Br=Mr.invoke(yr,Xt);return We.optional(function(){Mr.assert(yr,"typeof "+Br+'==="number"&&'+Br+">=0&&"+Br+"===("+Br+"|0)","invalid vertex count")}),Br})}else if(Dt)if(pu(Dt)){if(Dt)return ot?new Po(ot.thisDep,ot.contextDep,ot.propDep,function(Mr,yr){var Br=yr.def(Mr.ELEMENTS,".vertCount-",Mr.OFFSET);return We.optional(function(){Mr.assert(yr,Br+">=0","invalid vertex offset/element buffer too small")}),Br}):ci(function(Mr,yr){return yr.def(Mr.ELEMENTS,".vertCount")});var Qt=ci(function(){return-1});return We.optional(function(){Qt.MISSING=!0}),Qt}else{var wr=new Po(Dt.thisDep||ot.thisDep,Dt.contextDep||ot.contextDep,Dt.propDep||ot.propDep,function(Mr,yr){var Br=Mr.ELEMENTS;return Mr.OFFSET?yr.def(Br,"?",Br,".vertCount-",Mr.OFFSET,":-1"):yr.def(Br,"?",Br,".vertCount:-1")});return We.optional(function(){wr.DYNAMIC=!0}),wr}return null}return{elements:Dt,primitive:At(),count:gt(),instances:zt(fs,!1),offset:ot}}function Sn(at,Ye){var Ot=at.static,Ht=at.dynamic,Kt={};return Be.forEach(function(Dt){var At=lt(Dt);function zt(ot,gt){if(Dt in Ot){var tt=ot(Ot[Dt]);Kt[At]=ci(function(){return tt})}else if(Dt in Ht){var Xt=Ht[Dt];Kt[At]=ko(Xt,function(Qt,wr){return gt(Qt,wr,Qt.invoke(wr,Xt))})}}switch(Dt){case Tt:case ef:case yc:case Zf:case Yf:case $f:case Hf:case Qc:case mf:case Du:return zt(function(ot){return We.commandType(ot,"boolean",Dt,Ye.commandStr),ot},function(ot,gt,tt){return We.optional(function(){ot.assert(gt,"typeof "+tt+'==="boolean"',"invalid flag "+Dt,ot.commandStr)}),tt});case Lu:return zt(function(ot){return We.commandParameter(ot,of,"invalid "+Dt,Ye.commandStr),of[ot]},function(ot,gt,tt){var Xt=ot.constants.compareFuncs;return We.optional(function(){ot.assert(gt,tt+" in "+Xt,"invalid "+Dt+", must be one of "+Object.keys(of))}),gt.def(Xt,"[",tt,"]")});case Ec:return zt(function(ot){return We.command(qa(ot)&&ot.length===2&&typeof ot[0]=="number"&&typeof ot[1]=="number"&&ot[0]<=ot[1],"depth range is 2d array",Ye.commandStr),ot},function(ot,gt,tt){We.optional(function(){ot.assert(gt,ot.shared.isArrayLike+"("+tt+")&&"+tt+".length===2&&typeof "+tt+'[0]==="number"&&typeof '+tt+'[1]==="number"&&'+tt+"[0]<="+tt+"[1]","depth range must be a 2d array")});var Xt=gt.def("+",tt,"[0]"),Qt=gt.def("+",tt,"[1]");return[Xt,Qt]});case jf:return zt(function(ot){We.commandType(ot,"object","blend.func",Ye.commandStr);var gt="srcRGB"in ot?ot.srcRGB:ot.src,tt="srcAlpha"in ot?ot.srcAlpha:ot.src,Xt="dstRGB"in ot?ot.dstRGB:ot.dst,Qt="dstAlpha"in ot?ot.dstAlpha:ot.dst;return We.commandParameter(gt,_o,At+".srcRGB",Ye.commandStr),We.commandParameter(tt,_o,At+".srcAlpha",Ye.commandStr),We.commandParameter(Xt,_o,At+".dstRGB",Ye.commandStr),We.commandParameter(Qt,_o,At+".dstAlpha",Ye.commandStr),We.command(fl.indexOf(gt+", "+Xt)===-1,"unallowed blending combination (srcRGB, dstRGB) = ("+gt+", "+Xt+")",Ye.commandStr),[_o[gt],_o[Xt],_o[tt],_o[Qt]]},function(ot,gt,tt){var Xt=ot.constants.blendFuncs;We.optional(function(){ot.assert(gt,tt+"&&typeof "+tt+'==="object"',"invalid blend func, must be an object")});function Qt(fn,Mn){var Pn=gt.def('"',fn,Mn,'" in ',tt,"?",tt,".",fn,Mn,":",tt,".",fn);return We.optional(function(){ot.assert(gt,Pn+" in "+Xt,"invalid "+Dt+"."+fn+Mn+", must be one of "+Object.keys(_o))}),Pn}var wr=Qt("src","RGB"),Mr=Qt("dst","RGB");We.optional(function(){var fn=ot.constants.invalidBlendCombinations;ot.assert(gt,fn+".indexOf("+wr+'+", "+'+Mr+") === -1 ","unallowed blending combination for (srcRGB, dstRGB)")});var yr=gt.def(Xt,"[",wr,"]"),Br=gt.def(Xt,"[",Qt("src","Alpha"),"]"),En=gt.def(Xt,"[",Mr,"]"),va=gt.def(Xt,"[",Qt("dst","Alpha"),"]");return[yr,En,Br,va]});case mc:return zt(function(ot){if(typeof ot=="string")return We.commandParameter(ot,ae,"invalid "+Dt,Ye.commandStr),[ae[ot],ae[ot]];if(typeof ot=="object")return We.commandParameter(ot.rgb,ae,Dt+".rgb",Ye.commandStr),We.commandParameter(ot.alpha,ae,Dt+".alpha",Ye.commandStr),[ae[ot.rgb],ae[ot.alpha]];We.commandRaise("invalid blend.equation",Ye.commandStr)},function(ot,gt,tt){var Xt=ot.constants.blendEquations,Qt=gt.def(),wr=gt.def(),Mr=ot.cond("typeof ",tt,'==="string"');return We.optional(function(){function yr(Br,En,va){ot.assert(Br,va+" in "+Xt,"invalid "+En+", must be one of "+Object.keys(ae))}yr(Mr.then,Dt,tt),ot.assert(Mr.else,tt+"&&typeof "+tt+'==="object"',"invalid "+Dt),yr(Mr.else,Dt+".rgb",tt+".rgb"),yr(Mr.else,Dt+".alpha",tt+".alpha")}),Mr.then(Qt,"=",wr,"=",Xt,"[",tt,"];"),Mr.else(Qt,"=",Xt,"[",tt,".rgb];",wr,"=",Xt,"[",tt,".alpha];"),gt(Mr),[Qt,wr]});case Kc:return zt(function(ot){return We.command(qa(ot)&&ot.length===4,"blend.color must be a 4d array",Ye.commandStr),Tn(4,function(gt){return+ot[gt]})},function(ot,gt,tt){return We.optional(function(){ot.assert(gt,ot.shared.isArrayLike+"("+tt+")&&"+tt+".length===4","blend.color must be a 4d array")}),Tn(4,function(Xt){return gt.def("+",tt,"[",Xt,"]")})});case xc:return zt(function(ot){return We.commandType(ot,"number",At,Ye.commandStr),ot|0},function(ot,gt,tt){return We.optional(function(){ot.assert(gt,"typeof "+tt+'==="number"',"invalid stencil.mask")}),gt.def(tt,"|0")});case Kf:return zt(function(ot){We.commandType(ot,"object",At,Ye.commandStr);var gt=ot.cmp||"keep",tt=ot.ref||0,Xt="mask"in ot?ot.mask:-1;return We.commandParameter(gt,of,Dt+".cmp",Ye.commandStr),We.commandType(tt,"number",Dt+".ref",Ye.commandStr),We.commandType(Xt,"number",Dt+".mask",Ye.commandStr),[of[gt],tt,Xt]},function(ot,gt,tt){var Xt=ot.constants.compareFuncs;We.optional(function(){function yr(){ot.assert(gt,Array.prototype.join.call(arguments,""),"invalid stencil.func")}yr(tt+"&&typeof ",tt,'==="object"'),yr('!("cmp" in ',tt,")||(",tt,".cmp in ",Xt,")")});var Qt=gt.def('"cmp" in ',tt,"?",Xt,"[",tt,".cmp]",":",hu),wr=gt.def(tt,".ref|0"),Mr=gt.def('"mask" in ',tt,"?",tt,".mask|0:-1");return[Qt,wr,Mr]});case eo:case Nu:return zt(function(ot){We.commandType(ot,"object",At,Ye.commandStr);var gt=ot.fail||"keep",tt=ot.zfail||"keep",Xt=ot.zpass||"keep";return We.commandParameter(gt,gu,Dt+".fail",Ye.commandStr),We.commandParameter(tt,gu,Dt+".zfail",Ye.commandStr),We.commandParameter(Xt,gu,Dt+".zpass",Ye.commandStr),[Dt===Nu?Gu:Mf,gu[gt],gu[tt],gu[Xt]]},function(ot,gt,tt){var Xt=ot.constants.stencilOps;We.optional(function(){ot.assert(gt,tt+"&&typeof "+tt+'==="object"',"invalid "+Dt)});function Qt(wr){return We.optional(function(){ot.assert(gt,'!("'+wr+'" in '+tt+")||("+tt+"."+wr+" in "+Xt+")","invalid "+Dt+"."+wr+", must be one of "+Object.keys(gu))}),gt.def('"',wr,'" in ',tt,"?",Xt,"[",tt,".",wr,"]:",hu)}return[Dt===Nu?Gu:Mf,Qt("fail"),Qt("zfail"),Qt("zpass")]});case bc:return zt(function(ot){We.commandType(ot,"object",At,Ye.commandStr);var gt=ot.factor|0,tt=ot.units|0;return We.commandType(gt,"number",At+".factor",Ye.commandStr),We.commandType(tt,"number",At+".units",Ye.commandStr),[gt,tt]},function(ot,gt,tt){We.optional(function(){ot.assert(gt,tt+"&&typeof "+tt+'==="object"',"invalid "+Dt)});var Xt=gt.def(tt,".factor|0"),Qt=gt.def(tt,".units|0");return[Xt,Qt]});case $c:return zt(function(ot){var gt=0;return ot==="front"?gt=Mf:ot==="back"&&(gt=Gu),We.command(!!gt,At,Ye.commandStr),gt},function(ot,gt,tt){return We.optional(function(){ot.assert(gt,tt+'==="front"||'+tt+'==="back"',"invalid cull.face")}),gt.def(tt,'==="front"?',Mf,":",Gu)});case rf:return zt(function(ot){return We.command(typeof ot=="number"&&ot>=Yt.lineWidthDims[0]&&ot<=Yt.lineWidthDims[1],"invalid line width, must be a positive number between "+Yt.lineWidthDims[0]+" and "+Yt.lineWidthDims[1],Ye.commandStr),ot},function(ot,gt,tt){return We.optional(function(){ot.assert(gt,"typeof "+tt+'==="number"&&'+tt+">="+Yt.lineWidthDims[0]+"&&"+tt+"<="+Yt.lineWidthDims[1],"invalid line width")}),tt});case Ks:return zt(function(ot){return We.commandParameter(ot,Fc,At,Ye.commandStr),Fc[ot]},function(ot,gt,tt){return We.optional(function(){ot.assert(gt,tt+'==="cw"||'+tt+'==="ccw"',"invalid frontFace, must be one of cw,ccw")}),gt.def(tt+'==="cw"?'+Bc+":"+Sa)});case tf:return zt(function(ot){return We.command(qa(ot)&&ot.length===4,"color.mask must be length 4 array",Ye.commandStr),ot.map(function(gt){return!!gt})},function(ot,gt,tt){return We.optional(function(){ot.assert(gt,ot.shared.isArrayLike+"("+tt+")&&"+tt+".length===4","invalid color.mask")}),Tn(4,function(Xt){return"!!"+tt+"["+Xt+"]"})});case Ef:return zt(function(ot){We.command(typeof ot=="object"&&ot,At,Ye.commandStr);var gt="value"in ot?ot.value:1,tt=!!ot.invert;return We.command(typeof gt=="number"&>>=0&><=1,"sample.coverage.value must be a number between 0 and 1",Ye.commandStr),[gt,tt]},function(ot,gt,tt){We.optional(function(){ot.assert(gt,tt+"&&typeof "+tt+'==="object"',"invalid sample.coverage")});var Xt=gt.def('"value" in ',tt,"?+",tt,".value:1"),Qt=gt.def("!!",tt,".invert");return[Xt,Qt]})}}),Kt}function pi(at,Ye){var Ot=at.static,Ht=at.dynamic,Kt={};return Object.keys(Ot).forEach(function(Dt){var At=Ot[Dt],zt;if(typeof At=="number"||typeof At=="boolean")zt=ci(function(){return At});else if(typeof At=="function"){var ot=At._reglType;ot==="texture2d"||ot==="textureCube"?zt=ci(function(gt){return gt.link(At)}):ot==="framebuffer"||ot==="framebufferCube"?(We.command(At.color.length>0,'missing color attachment for framebuffer sent to uniform "'+Dt+'"',Ye.commandStr),zt=ci(function(gt){return gt.link(At.color[0])})):We.commandRaise('invalid data for uniform "'+Dt+'"',Ye.commandStr)}else qa(At)?zt=ci(function(gt){var tt=gt.global.def("[",Tn(At.length,function(Xt){return We.command(typeof At[Xt]=="number"||typeof At[Xt]=="boolean","invalid uniform "+Dt,gt.commandStr),At[Xt]}),"]");return tt}):We.commandRaise('invalid or missing data for uniform "'+Dt+'"',Ye.commandStr);zt.value=At,Kt[Dt]=zt}),Object.keys(Ht).forEach(function(Dt){var At=Ht[Dt];Kt[Dt]=ko(At,function(zt,ot){return zt.invoke(ot,At)})}),Kt}function Qn(at,Ye){var Ot=at.static,Ht=at.dynamic,Kt={};return Object.keys(Ot).forEach(function(Dt){var At=Ot[Dt],zt=Qe.id(Dt),ot=new K;if(nc(At))ot.state=Ju,ot.buffer=xr.getBuffer(xr.create(At,Ps,!1,!0)),ot.type=0;else{var gt=xr.getBuffer(At);if(gt)ot.state=Ju,ot.buffer=gt,ot.type=0;else if(We.command(typeof At=="object"&&At,"invalid data for attribute "+Dt,Ye.commandStr),"constant"in At){var tt=At.constant;ot.buffer="null",ot.state=Xf,typeof tt=="number"?ot.x=tt:(We.command(qa(tt)&&tt.length>0&&tt.length<=4,"invalid constant for attribute "+Dt,Ye.commandStr),qu.forEach(function(En,va){va=0,'invalid offset for attribute "'+Dt+'"',Ye.commandStr);var Qt=At.stride|0;We.command(Qt>=0&&Qt<256,'invalid stride for attribute "'+Dt+'", must be integer betweeen [0, 255]',Ye.commandStr);var wr=At.size|0;We.command(!("size"in At)||wr>0&&wr<=4,'invalid size for attribute "'+Dt+'", must be 1,2,3,4',Ye.commandStr);var Mr=!!At.normalized,yr=0;"type"in At&&(We.commandParameter(At.type,po,"invalid type for attribute "+Dt,Ye.commandStr),yr=po[At.type]);var Br=At.divisor|0;"divisor"in At&&(We.command(Br===0||fe,'cannot specify divisor for attribute "'+Dt+'", instancing not supported',Ye.commandStr),We.command(Br>=0,'invalid divisor for attribute "'+Dt+'"',Ye.commandStr)),We.optional(function(){var En=Ye.commandStr,va=["buffer","offset","divisor","normalized","type","size","stride"];Object.keys(At).forEach(function(fn){We.command(va.indexOf(fn)>=0,'unknown parameter "'+fn+'" for attribute pointer "'+Dt+'" (valid parameters are '+va+")",En)})}),ot.buffer=gt,ot.state=Ju,ot.size=wr,ot.normalized=Mr,ot.type=yr||gt.dtype,ot.offset=Xt,ot.stride=Qt,ot.divisor=Br}}Kt[Dt]=ci(function(En,va){var fn=En.attribCache;if(zt in fn)return fn[zt];var Mn={isStream:!1};return Object.keys(ot).forEach(function(Pn){Mn[Pn]=ot[Pn]}),ot.buffer&&(Mn.buffer=En.link(ot.buffer),Mn.type=Mn.type||Mn.buffer+".dtype"),fn[zt]=Mn,Mn})}),Object.keys(Ht).forEach(function(Dt){var At=Ht[Dt];function zt(ot,gt){var tt=ot.invoke(gt,At),Xt=ot.shared,Qt=ot.constants,wr=Xt.isBufferArgs,Mr=Xt.buffer;We.optional(function(){ot.assert(gt,tt+"&&(typeof "+tt+'==="object"||typeof '+tt+'==="function")&&('+wr+"("+tt+")||"+Mr+".getBuffer("+tt+")||"+Mr+".getBuffer("+tt+".buffer)||"+wr+"("+tt+'.buffer)||("constant" in '+tt+"&&(typeof "+tt+'.constant==="number"||'+Xt.isArrayLike+"("+tt+".constant))))",'invalid dynamic attribute "'+Dt+'"')});var yr={isStream:gt.def(!1)},Br=new K;Br.state=Ju,Object.keys(Br).forEach(function(Mn){yr[Mn]=gt.def(""+Br[Mn])});var En=yr.buffer,va=yr.type;gt("if(",wr,"(",tt,")){",yr.isStream,"=true;",En,"=",Mr,".createStream(",Ps,",",tt,");",va,"=",En,".dtype;","}else{",En,"=",Mr,".getBuffer(",tt,");","if(",En,"){",va,"=",En,".dtype;",'}else if("constant" in ',tt,"){",yr.state,"=",Xf,";","if(typeof "+tt+'.constant === "number"){',yr[qu[0]],"=",tt,".constant;",qu.slice(1).map(function(Mn){return yr[Mn]}).join("="),"=0;","}else{",qu.map(function(Mn,Pn){return yr[Mn]+"="+tt+".constant.length>"+Pn+"?"+tt+".constant["+Pn+"]:0;"}).join(""),"}}else{","if(",wr,"(",tt,".buffer)){",En,"=",Mr,".createStream(",Ps,",",tt,".buffer);","}else{",En,"=",Mr,".getBuffer(",tt,".buffer);","}",va,'="type" in ',tt,"?",Qt.glTypes,"[",tt,".type]:",En,".dtype;",yr.normalized,"=!!",tt,".normalized;");function fn(Mn){gt(yr[Mn],"=",tt,".",Mn,"|0;")}return fn("size"),fn("offset"),fn("stride"),fn("divisor"),gt("}}"),gt.exit("if(",yr.isStream,"){",Mr,".destroyStream(",En,");","}"),yr}Kt[Dt]=ko(At,zt)}),Kt}function Bi(at,Ye){var Ot=at.static,Ht=at.dynamic;if(nf in Ot){var Kt=Ot[nf];return Kt!==null&&Rr.getVAO(Kt)===null&&(Kt=Rr.createVAO(Kt)),ci(function(At){return At.link(Rr.getVAO(Kt))})}else if(nf in Ht){var Dt=Ht[nf];return ko(Dt,function(At,zt){var ot=At.invoke(zt,Dt);return zt.def(At.shared.vao+".getVAO("+ot+")")})}return null}function ai(at){var Ye=at.static,Ot=at.dynamic,Ht={};return Object.keys(Ye).forEach(function(Kt){var Dt=Ye[Kt];Ht[Kt]=ci(function(At,zt){return typeof Dt=="number"||typeof Dt=="boolean"?""+Dt:At.link(Dt)})}),Object.keys(Ot).forEach(function(Kt){var Dt=Ot[Kt];Ht[Kt]=ko(Dt,function(At,zt){return At.invoke(zt,Dt)})}),Ht}function Ca(at,Ye,Ot,Ht,Kt){var Dt=at.static,At=at.dynamic;We.optional(function(){var fn=[ku,cu,Vi,Ru,lu,bf,Bu,fs,Pu,nf].concat(Be);function Mn(Pn){Object.keys(Pn).forEach(function(Va){We.command(fn.indexOf(Va)>=0,'unknown parameter "'+Va+'"',Kt.commandStr)})}Mn(Dt),Mn(At)});var zt=dn(at,Ye),ot=Yr(at,Kt),gt=yn(at,ot,Kt),tt=Kn(at,Kt),Xt=Sn(at,Kt),Qt=An(at,Kt,zt);function wr(fn){var Mn=gt[fn];Mn&&(Xt[fn]=Mn)}wr(Ds),wr(lt(us));var Mr=Object.keys(Xt).length>0,yr={framebuffer:ot,draw:tt,shader:Qt,state:Xt,dirty:Mr,scopeVAO:null,drawVAO:null,useVAO:!1,attributes:{}};if(yr.profile=Kr(at,Kt),yr.uniforms=pi(Ot,Kt),yr.drawVAO=yr.scopeVAO=Bi(at,Kt),!yr.drawVAO&&Qt.program&&!zt&&pt.angle_instanced_arrays){var Br=!0,En=Qt.program.attributes.map(function(fn){var Mn=Ye.static[fn];return Br=Br&&!!Mn,Mn});if(Br&&En.length>0){var va=Rr.getVAO(Rr.createVAO(En));yr.drawVAO=new Po(null,null,null,function(fn,Mn){return fn.link(va)}),yr.useVAO=!0}}return zt?yr.useVAO=!0:yr.attributes=Qn(Ye,Kt),yr.context=ai(Ht,Kt),yr}function _i(at,Ye,Ot){var Ht=at.shared,Kt=Ht.context,Dt=at.scope();Object.keys(Ot).forEach(function(At){Ye.save(Kt,"."+At);var zt=Ot[At],ot=zt.append(at,Ye);Array.isArray(ot)?Dt(Kt,".",At,"=[",ot.join(),"];"):Dt(Kt,".",At,"=",ot,";")}),Ye(Dt)}function Si(at,Ye,Ot,Ht){var Kt=at.shared,Dt=Kt.gl,At=Kt.framebuffer,zt;he&&(zt=Ye.def(Kt.extensions,".webgl_draw_buffers"));var ot=at.constants,gt=ot.drawBuffer,tt=ot.backBuffer,Xt;Ot?Xt=Ot.append(at,Ye):Xt=Ye.def(At,".next"),Ht||Ye("if(",Xt,"!==",At,".cur){"),Ye("if(",Xt,"){",Dt,".bindFramebuffer(",Cf,",",Xt,".framebuffer);"),he&&Ye(zt,".drawBuffersWEBGL(",gt,"[",Xt,".colorAttachments.length]);"),Ye("}else{",Dt,".bindFramebuffer(",Cf,",null);"),he&&Ye(zt,".drawBuffersWEBGL(",tt,");"),Ye("}",At,".cur=",Xt,";"),Ht||Ye("}")}function Hi(at,Ye,Ot){var Ht=at.shared,Kt=Ht.gl,Dt=at.current,At=at.next,zt=Ht.current,ot=Ht.next,gt=at.cond(zt,".dirty");Be.forEach(function(tt){var Xt=lt(tt);if(!(Xt in Ot.state)){var Qt,wr;if(Xt in At){Qt=At[Xt],wr=Dt[Xt];var Mr=Tn(xe[Xt].length,function(Br){return gt.def(Qt,"[",Br,"]")});gt(at.cond(Mr.map(function(Br,En){return Br+"!=="+wr+"["+En+"]"}).join("||")).then(Kt,".",je[Xt],"(",Mr,");",Mr.map(function(Br,En){return wr+"["+En+"]="+Br}).join(";"),";"))}else{Qt=gt.def(ot,".",Xt);var yr=at.cond(Qt,"!==",zt,".",Xt);gt(yr),Xt in Ze?yr(at.cond(Qt).then(Kt,".enable(",Ze[Xt],");").else(Kt,".disable(",Ze[Xt],");"),zt,".",Xt,"=",Qt,";"):yr(Kt,".",je[Xt],"(",Qt,");",zt,".",Xt,"=",Qt,";")}}}),Object.keys(Ot.state).length===0&>(zt,".dirty=false;"),Ye(gt)}function Ro(at,Ye,Ot,Ht){var Kt=at.shared,Dt=at.current,At=Kt.current,zt=Kt.gl;Gc(Object.keys(Ot)).forEach(function(ot){var gt=Ot[ot];if(!(Ht&&!Ht(gt))){var tt=gt.append(at,Ye);if(Ze[ot]){var Xt=Ze[ot];pu(gt)?tt?Ye(zt,".enable(",Xt,");"):Ye(zt,".disable(",Xt,");"):Ye(at.cond(tt).then(zt,".enable(",Xt,");").else(zt,".disable(",Xt,");")),Ye(At,".",ot,"=",tt,";")}else if(qa(tt)){var Qt=Dt[ot];Ye(zt,".",je[ot],"(",tt,");",tt.map(function(wr,Mr){return Qt+"["+Mr+"]="+wr}).join(";"),";")}else Ye(zt,".",je[ot],"(",tt,");",At,".",ot,"=",tt,";")}})}function Zi(at,Ye){fe&&(at.instancing=Ye.def(at.shared.extensions,".angle_instanced_arrays"))}function la(at,Ye,Ot,Ht,Kt){var Dt=at.shared,At=at.stats,zt=Dt.current,ot=Dt.timer,gt=Ot.profile;function tt(){return typeof performance=="undefined"?"Date.now()":"performance.now()"}var Xt,Qt;function wr(fn){Xt=Ye.def(),fn(Xt,"=",tt(),";"),typeof Kt=="string"?fn(At,".count+=",Kt,";"):fn(At,".count++;"),S&&(Ht?(Qt=Ye.def(),fn(Qt,"=",ot,".getNumPendingQueries();")):fn(ot,".beginQuery(",At,");"))}function Mr(fn){fn(At,".cpuTime+=",tt(),"-",Xt,";"),S&&(Ht?fn(ot,".pushScopeStats(",Qt,",",ot,".getNumPendingQueries(),",At,");"):fn(ot,".endQuery();"))}function yr(fn){var Mn=Ye.def(zt,".profile");Ye(zt,".profile=",fn,";"),Ye.exit(zt,".profile=",Mn,";")}var Br;if(gt){if(pu(gt)){gt.enable?(wr(Ye),Mr(Ye.exit),yr("true")):yr("false");return}Br=gt.append(at,Ye),yr(Br)}else Br=Ye.def(zt,".profile");var En=at.block();wr(En),Ye("if(",Br,"){",En,"}");var va=at.block();Mr(va),Ye.exit("if(",Br,"){",va,"}")}function So(at,Ye,Ot,Ht,Kt){var Dt=at.shared;function At(ot){switch(ot){case Ac:case Dc:case Pc:return 2;case Oc:case Nc:case kc:return 3;case Lc:case ec:case Rc:return 4;default:return 1}}function zt(ot,gt,tt){var Xt=Dt.gl,Qt=Ye.def(ot,".location"),wr=Ye.def(Dt.attributes,"[",Qt,"]"),Mr=tt.state,yr=tt.buffer,Br=[tt.x,tt.y,tt.z,tt.w],En=["buffer","normalized","offset","stride"];function va(){Ye("if(!",wr,".buffer){",Xt,".enableVertexAttribArray(",Qt,");}");var Mn=tt.type,Pn;if(tt.size?Pn=Ye.def(tt.size,"||",gt):Pn=gt,Ye("if(",wr,".type!==",Mn,"||",wr,".size!==",Pn,"||",En.map(function(Ui){return wr+"."+Ui+"!=="+tt[Ui]}).join("||"),"){",Xt,".bindBuffer(",Ps,",",yr,".buffer);",Xt,".vertexAttribPointer(",[Qt,Pn,Mn,tt.normalized,tt.stride,tt.offset],");",wr,".type=",Mn,";",wr,".size=",Pn,";",En.map(function(Ui){return wr+"."+Ui+"="+tt[Ui]+";"}).join(""),"}"),fe){var Va=tt.divisor;Ye("if(",wr,".divisor!==",Va,"){",at.instancing,".vertexAttribDivisorANGLE(",[Qt,Va],");",wr,".divisor=",Va,";}")}}function fn(){Ye("if(",wr,".buffer){",Xt,".disableVertexAttribArray(",Qt,");",wr,".buffer=null;","}if(",qu.map(function(Mn,Pn){return wr+"."+Mn+"!=="+Br[Pn]}).join("||"),"){",Xt,".vertexAttrib4f(",Qt,",",Br,");",qu.map(function(Mn,Pn){return wr+"."+Mn+"="+Br[Pn]+";"}).join(""),"}")}Mr===Ju?va():Mr===Xf?fn():(Ye("if(",Mr,"===",Ju,"){"),va(),Ye("}else{"),fn(),Ye("}"))}Ht.forEach(function(ot){var gt=ot.name,tt=Ot.attributes[gt],Xt;if(tt){if(!Kt(tt))return;Xt=tt.append(at,Ye)}else{if(!Kt(ac))return;var Qt=at.scopeAttrib(gt);We.optional(function(){at.assert(Ye,Qt+".state","missing attribute "+gt)}),Xt={},Object.keys(new K).forEach(function(wr){Xt[wr]=Ye.def(Qt,".",wr)})}zt(at.link(ot),At(ot.info.type),Xt)})}function Ka(at,Ye,Ot,Ht,Kt){for(var Dt=at.shared,At=Dt.gl,zt,ot=0;ot1?Ye(Tn(Mn,function(Mo){return Array.isArray(yr)?yr[Mo]:yr+"["+Mo+"]"})):(We(!Array.isArray(yr),"uniform value must not be an array"),Ye(yr));Ye(");")}}function Nn(at,Ye,Ot,Ht){var Kt=at.shared,Dt=Kt.gl,At=Kt.draw,zt=Ht.draw;function ot(){var Pn=zt.elements,Va,Ui=Ye;return Pn?((Pn.contextDep&&Ht.contextDynamic||Pn.propDep)&&(Ui=Ot),Va=Pn.append(at,Ui)):Va=Ui.def(At,".",Ru),Va&&Ui("if("+Va+")"+Dt+".bindBuffer("+Mc+","+Va+".buffer.buffer);"),Va}function gt(){var Pn=zt.count,Va,Ui=Ye;return Pn?((Pn.contextDep&&Ht.contextDynamic||Pn.propDep)&&(Ui=Ot),Va=Pn.append(at,Ui),We.optional(function(){Pn.MISSING&&at.assert(Ye,"false","missing vertex count"),Pn.DYNAMIC&&at.assert(Ui,Va+">=0","missing vertex count")})):(Va=Ui.def(At,".",Bu),We.optional(function(){at.assert(Ui,Va+">=0","missing vertex count")})),Va}var tt=ot();function Xt(Pn){var Va=zt[Pn];return Va?Va.contextDep&&Ht.contextDynamic||Va.propDep?Va.append(at,Ot):Va.append(at,Ye):Ye.def(At,".",Pn)}var Qt=Xt(lu),wr=Xt(bf),Mr=gt();if(typeof Mr=="number"){if(Mr===0)return}else Ot("if(",Mr,"){"),Ot.exit("}");var yr,Br;fe&&(yr=Xt(fs),Br=at.instancing);var En=tt+".type",va=zt.elements&&pu(zt.elements);function fn(){function Pn(){Ot(Br,".drawElementsInstancedANGLE(",[Qt,Mr,En,wr+"<<(("+En+"-"+Hc+")>>1)",yr],");")}function Va(){Ot(Br,".drawArraysInstancedANGLE(",[Qt,wr,Mr,yr],");")}tt?va?Pn():(Ot("if(",tt,"){"),Pn(),Ot("}else{"),Va(),Ot("}")):Va()}function Mn(){function Pn(){Ot(Dt+".drawElements("+[Qt,Mr,En,wr+"<<(("+En+"-"+Hc+")>>1)"]+");")}function Va(){Ot(Dt+".drawArrays("+[Qt,wr,Mr]+");")}tt?va?Pn():(Ot("if(",tt,"){"),Pn(),Ot("}else{"),Va(),Ot("}")):Va()}fe&&(typeof yr!="number"||yr>=0)?typeof yr=="string"?(Ot("if(",yr,">0){"),fn(),Ot("}else if(",yr,"<0){"),Mn(),Ot("}")):fn():Mn()}function ma(at,Ye,Ot,Ht,Kt){var Dt=Dr(),At=Dt.proc("body",Kt);return We.optional(function(){Dt.commandStr=Ye.commandStr,Dt.command=Dt.link(Ye.commandStr)}),fe&&(Dt.instancing=At.def(Dt.shared.extensions,".angle_instanced_arrays")),at(Dt,At,Ot,Ht),Dt.compile().body}function Fa(at,Ye,Ot,Ht){Zi(at,Ye),Ot.useVAO?Ot.drawVAO?Ye(at.shared.vao,".setVAO(",Ot.drawVAO.append(at,Ye),");"):Ye(at.shared.vao,".setVAO(",at.shared.vao,".targetVAO);"):(Ye(at.shared.vao,".setVAO(null);"),So(at,Ye,Ot,Ht.attributes,function(){return!0})),Ka(at,Ye,Ot,Ht.uniforms,function(){return!0}),Nn(at,Ye,Ye,Ot)}function Ki(at,Ye){var Ot=at.proc("draw",1);Zi(at,Ot),_i(at,Ot,Ye.context),Si(at,Ot,Ye.framebuffer),Hi(at,Ot,Ye),Ro(at,Ot,Ye.state),la(at,Ot,Ye,!1,!0);var Ht=Ye.shader.progVar.append(at,Ot);if(Ot(at.shared.gl,".useProgram(",Ht,".program);"),Ye.shader.program)Fa(at,Ot,Ye,Ye.shader.program);else{Ot(at.shared.vao,".setVAO(null);");var Kt=at.global.def("{}"),Dt=Ot.def(Ht,".id"),At=Ot.def(Kt,"[",Dt,"]");Ot(at.cond(At).then(At,".call(this,a0);").else(At,"=",Kt,"[",Dt,"]=",at.link(function(zt){return ma(Fa,at,Ye,zt,1)}),"(",Ht,");",At,".call(this,a0);"))}Object.keys(Ye.state).length>0&&Ot(at.shared.current,".dirty=true;")}function yu(at,Ye,Ot,Ht){at.batchId="a1",Zi(at,Ye);function Kt(){return!0}So(at,Ye,Ot,Ht.attributes,Kt),Ka(at,Ye,Ot,Ht.uniforms,Kt),Nn(at,Ye,Ye,Ot)}function uf(at,Ye,Ot,Ht){Zi(at,Ye);var Kt=Ot.contextDep,Dt=Ye.def(),At="a0",zt="a1",ot=Ye.def();at.shared.props=ot,at.batchId=Dt;var gt=at.scope(),tt=at.scope();Ye(gt.entry,"for(",Dt,"=0;",Dt,"<",zt,";++",Dt,"){",ot,"=",At,"[",Dt,"];",tt,"}",gt.exit);function Xt(En){return En.contextDep&&Kt||En.propDep}function Qt(En){return!Xt(En)}if(Ot.needsContext&&_i(at,tt,Ot.context),Ot.needsFramebuffer&&Si(at,tt,Ot.framebuffer),Ro(at,tt,Ot.state,Xt),Ot.profile&&Xt(Ot.profile)&&la(at,tt,Ot,!1,!0),Ht)Ot.useVAO?Ot.drawVAO?Xt(Ot.drawVAO)?tt(at.shared.vao,".setVAO(",Ot.drawVAO.append(at,tt),");"):gt(at.shared.vao,".setVAO(",Ot.drawVAO.append(at,gt),");"):gt(at.shared.vao,".setVAO(",at.shared.vao,".targetVAO);"):(gt(at.shared.vao,".setVAO(null);"),So(at,gt,Ot,Ht.attributes,Qt),So(at,tt,Ot,Ht.attributes,Xt)),Ka(at,gt,Ot,Ht.uniforms,Qt),Ka(at,tt,Ot,Ht.uniforms,Xt),Nn(at,gt,tt,Ot);else{var wr=at.global.def("{}"),Mr=Ot.shader.progVar.append(at,tt),yr=tt.def(Mr,".id"),Br=tt.def(wr,"[",yr,"]");tt(at.shared.gl,".useProgram(",Mr,".program);","if(!",Br,"){",Br,"=",wr,"[",yr,"]=",at.link(function(En){return ma(yu,at,Ot,En,2)}),"(",Mr,");}",Br,".call(this,a0[",Dt,"],",Dt,");")}}function ut(at,Ye){var Ot=at.proc("batch",2);at.batchId="0",Zi(at,Ot);var Ht=!1,Kt=!0;Object.keys(Ye.context).forEach(function(wr){Ht=Ht||Ye.context[wr].propDep}),Ht||(_i(at,Ot,Ye.context),Kt=!1);var Dt=Ye.framebuffer,At=!1;Dt?(Dt.propDep?Ht=At=!0:Dt.contextDep&&Ht&&(At=!0),At||Si(at,Ot,Dt)):Si(at,Ot,null),Ye.state.viewport&&Ye.state.viewport.propDep&&(Ht=!0);function zt(wr){return wr.contextDep&&Ht||wr.propDep}Hi(at,Ot,Ye),Ro(at,Ot,Ye.state,function(wr){return!zt(wr)}),(!Ye.profile||!zt(Ye.profile))&&la(at,Ot,Ye,!1,"a1"),Ye.contextDep=Ht,Ye.needsContext=Kt,Ye.needsFramebuffer=At;var ot=Ye.shader.progVar;if(ot.contextDep&&Ht||ot.propDep)uf(at,Ot,Ye,null);else{var gt=ot.append(at,Ot);if(Ot(at.shared.gl,".useProgram(",gt,".program);"),Ye.shader.program)uf(at,Ot,Ye,Ye.shader.program);else{Ot(at.shared.vao,".setVAO(null);");var tt=at.global.def("{}"),Xt=Ot.def(gt,".id"),Qt=Ot.def(tt,"[",Xt,"]");Ot(at.cond(Qt).then(Qt,".call(this,a0,a1);").else(Qt,"=",tt,"[",Xt,"]=",at.link(function(wr){return ma(uf,at,Ye,wr,2)}),"(",gt,");",Qt,".call(this,a0,a1);"))}}Object.keys(Ye.state).length>0&&Ot(at.shared.current,".dirty=true;")}function nr(at,Ye){var Ot=at.proc("scope",3);at.batchId="a2";var Ht=at.shared,Kt=Ht.current;_i(at,Ot,Ye.context),Ye.framebuffer&&Ye.framebuffer.append(at,Ot),Gc(Object.keys(Ye.state)).forEach(function(At){var zt=Ye.state[At],ot=zt.append(at,Ot);qa(ot)?ot.forEach(function(gt,tt){Ot.set(at.next[At],"["+tt+"]",gt)}):Ot.set(Ht.next,"."+At,ot)}),la(at,Ot,Ye,!0,!0),[Ru,bf,Bu,fs,lu].forEach(function(At){var zt=Ye.draw[At];!zt||Ot.set(Ht.draw,"."+At,""+zt.append(at,Ot))}),Object.keys(Ye.uniforms).forEach(function(At){var zt=Ye.uniforms[At].append(at,Ot);Array.isArray(zt)&&(zt="["+zt.join()+"]"),Ot.set(Ht.uniforms,"["+Qe.id(At)+"]",zt)}),Object.keys(Ye.attributes).forEach(function(At){var zt=Ye.attributes[At].append(at,Ot),ot=at.scopeAttrib(At);Object.keys(new K).forEach(function(gt){Ot.set(ot,"."+gt,zt[gt])})}),Ye.scopeVAO&&Ot.set(Ht.vao,".targetVAO",Ye.scopeVAO.append(at,Ot));function Dt(At){var zt=Ye.shader[At];zt&&Ot.set(Ht.shader,"."+At,zt.append(at,Ot))}Dt(cu),Dt(Vi),Object.keys(Ye.state).length>0&&(Ot(Kt,".dirty=true;"),Ot.exit(Kt,".dirty=true;")),Ot("a1(",at.shared.context,",a0,",at.batchId,");")}function Jt(at){if(!(typeof at!="object"||qa(at))){for(var Ye=Object.keys(at),Ot=0;Ot=0;--Nn){var ma=jt[Nn];ma&&ma(S,null,0)}pt.flush(),Rr&&Rr.update()}function An(){!yn&&jt.length>0&&(yn=an.next(dn))}function Kn(){yn&&(an.cancel(dn),yn=null)}function Sn(Nn){Nn.preventDefault(),xr=!0,Kn(),Dr.forEach(function(ma){ma()})}function pi(Nn){pt.getError(),xr=!1,ar.restore(),Be.restore(),fe.restore(),Ze.restore(),je.restore(),lt.restore(),he.restore(),Rr&&Rr.restore(),kt.procs.refresh(),An(),Kr.forEach(function(ma){ma()})}Vt&&(Vt.addEventListener(Uc,Sn,!1),Vt.addEventListener(ic,pi,!1));function Qn(){jt.length=0,Kn(),Vt&&(Vt.removeEventListener(Uc,Sn),Vt.removeEventListener(ic,pi)),Be.clear(),lt.clear(),je.clear(),Ze.clear(),Te.clear(),fe.clear(),he.clear(),Rr&&Rr.clear(),Yr.forEach(function(Nn){Nn()})}function Bi(Nn){We(!!Nn,"invalid args to regl({...})"),We.type(Nn,"object","invalid args to regl({...})");function ma(Kt){var Dt=W({},Kt);delete Dt.uniforms,delete Dt.attributes,delete Dt.context,delete Dt.vao,"stencil"in Dt&&Dt.stencil.op&&(Dt.stencil.opBack=Dt.stencil.opFront=Dt.stencil.op,delete Dt.stencil.op);function At(zt){if(zt in Dt){var ot=Dt[zt];delete Dt[zt],Object.keys(ot).forEach(function(gt){Dt[zt+"."+gt]=ot[gt]})}}return At("blend"),At("depth"),At("cull"),At("stencil"),At("polygonOffset"),At("scissor"),At("sample"),"vao"in Kt&&(Dt.vao=Kt.vao),Dt}function Fa(Kt,Dt){var At={},zt={};return Object.keys(Kt).forEach(function(ot){var gt=Kt[ot];if(Cr.isDynamic(gt)){zt[ot]=Cr.unbox(gt,ot);return}else if(Dt&&Array.isArray(gt)){for(var tt=0;tt0)return da.call(this,Ot(Kt|0),Kt|0)}else if(Array.isArray(Kt)){if(Kt.length)return da.call(this,Kt,Kt.length)}else return qr.call(this,Kt)}return W(Ht,{stats:nr,destroy:function(){Jt.destroy()}})}var ai=lt.setFBO=Bi({framebuffer:Cr.define.call(null,gl,"framebuffer")});function Ca(Nn,ma){var Fa=0;kt.procs.poll();var Ki=ma.color;Ki&&(pt.clearColor(+Ki[0]||0,+Ki[1]||0,+Ki[2]||0,+Ki[3]||0),Fa|=zc),"depth"in ma&&(pt.clearDepth(+ma.depth),Fa|=vl),"stencil"in ma&&(pt.clearStencil(ma.stencil|0),Fa|=hl),We(!!Fa,"called regl.clear with no buffer specified"),pt.clear(Fa)}function _i(Nn){if(We(typeof Nn=="object"&&Nn,"regl.clear() takes an object as input"),"framebuffer"in Nn)if(Nn.framebuffer&&Nn.framebuffer_reglType==="framebufferCube")for(var ma=0;ma<6;++ma)ai(W({framebuffer:Nn.framebuffer.faces[ma]},Nn),Ca);else ai(Nn,Ca);else Ca(null,Nn)}function Si(Nn){We.type(Nn,"function","regl.frame() callback must be a function"),jt.push(Nn);function ma(){var Fa=pl(jt,Nn);We(Fa>=0,"cannot cancel a frame twice");function Ki(){var yu=pl(jt,Ki);jt[yu]=jt[jt.length-1],jt.length-=1,jt.length<=0&&Kn()}jt[Fa]=Ki}return An(),{cancel:ma}}function Hi(){var Nn=Wt.viewport,ma=Wt.scissor_box;Nn[0]=Nn[1]=ma[0]=ma[1]=0,S.viewportWidth=S.framebufferWidth=S.drawingBufferWidth=Nn[2]=ma[2]=pt.drawingBufferWidth,S.viewportHeight=S.framebufferHeight=S.drawingBufferHeight=Nn[3]=ma[3]=pt.drawingBufferHeight}function Ro(){S.tick+=1,S.time=la(),Hi(),kt.procs.poll()}function Zi(){Ze.refresh(),Hi(),kt.procs.refresh(),Rr&&Rr.update()}function la(){return(un()-Lr)/1e3}Zi();function So(Nn,ma){We.type(ma,"function","listener callback must be a function");var Fa;switch(Nn){case"frame":return Si(ma);case"lost":Fa=Dr;break;case"restore":Fa=Kr;break;case"destroy":Fa=Yr;break;default:We.raise("invalid event, must be one of frame,lost,restore,destroy")}return Fa.push(ma),{cancel:function(){for(var Ki=0;Ki=0},read:pr,destroy:Qn,_gl:pt,_refresh:Zi,poll:function(){Ro(),Rr&&Rr.update()},now:la,stats:Or});return Qe.onDone(null,Ka),Ka}return sc})},86851:function(hr,X,W){"use strict";var U=W(89594),Y=Array.prototype.concat,B=Array.prototype.slice,D=hr.exports=function(N){for(var y=[],E=0,g=N.length;E=0&&(W.splice instanceof Function||Object.getOwnPropertyDescriptor(W,W.length-1)&&W.constructor.name!=="String")}}}]); diff --git a/dist/7335.1df1d163.chunk.css b/dist/2548.1df1d163.chunk.css similarity index 100% rename from dist/7335.1df1d163.chunk.css rename to dist/2548.1df1d163.chunk.css diff --git a/dist/7335.e519791a.async.js b/dist/2548.8d7de023.async.js similarity index 99% rename from dist/7335.e519791a.async.js rename to dist/2548.8d7de023.async.js index 1c24564..b0854ab 100644 --- a/dist/7335.e519791a.async.js +++ b/dist/2548.8d7de023.async.js @@ -1 +1 @@ -(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[7335],{62259:function(){},31242:function(){},16695:function(){},36138:function(Yt,bt,f){"use strict";f.d(bt,{Z:function(){return Pe}});var oe=f(96156),N=f(22122),M=f(65425),D=f(98244),dt=f(67724),q=f(8812),L=f(94184),I=f.n(L),t=f(28991),jt=f(6610),Wt=f(5991),Qt=f(10379),Pt=f(44144),O=f(67294),sn=function(P){var Y,v="".concat(P.rootPrefixCls,"-item"),u=I()(v,"".concat(v,"-").concat(P.page),(Y={},(0,oe.Z)(Y,"".concat(v,"-active"),P.active),(0,oe.Z)(Y,"".concat(v,"-disabled"),!P.page),(0,oe.Z)(Y,P.className,!!P.className),Y)),x=function(){P.onClick(P.page)},S=function(Q){P.onKeyPress(Q,P.onClick,P.page)};return O.createElement("li",{title:P.showTitle?P.page:null,className:u,onClick:x,onKeyPress:S,tabIndex:"0"},P.itemRender(P.page,"page",O.createElement("a",{rel:"nofollow"},P.page)))},It=sn,gt={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},bn=function(z){(0,Qt.Z)(Y,z);var P=(0,Pt.Z)(Y);function Y(){var v;(0,jt.Z)(this,Y);for(var u=arguments.length,x=new Array(u),S=0;S=0||b.relatedTarget.className.indexOf("".concat(de,"-item"))>=0))&&_(v.getValidValue()))},v.go=function(b){var Q=v.state.goInputText;Q!==""&&(b.keyCode===gt.ENTER||b.type==="click")&&(v.setState({goInputText:""}),v.props.quickGo(v.getValidValue()))},v}return(0,Wt.Z)(Y,[{key:"getValidValue",value:function(){var u=this.state.goInputText;return!u||isNaN(u)?void 0:Number(u)}},{key:"getPageSizeOptions",value:function(){var u=this.props,x=u.pageSize,S=u.pageSizeOptions;return S.some(function(b){return b.toString()===x.toString()})?S:S.concat([x.toString()]).sort(function(b,Q){var E=isNaN(Number(b))?0:Number(b),_=isNaN(Number(Q))?0:Number(Q);return E-_})}},{key:"render",value:function(){var u=this,x=this.props,S=x.pageSize,b=x.locale,Q=x.rootPrefixCls,E=x.changeSize,_=x.quickGo,de=x.goButton,se=x.selectComponentClass,Oe=x.buildOptionText,at=x.selectPrefixCls,fe=x.disabled,ot=this.state.goInputText,Ve="".concat(Q,"-options"),ce=se,Dt=null,lt=null,yt=null;if(!E&&!_)return null;var it=this.getPageSizeOptions();if(E&&ce){var Ge=it.map(function(st,ft){return O.createElement(ce.Option,{key:ft,value:st.toString()},(Oe||u.buildOptionText)(st))});Dt=O.createElement(ce,{disabled:fe,prefixCls:at,showSearch:!1,className:"".concat(Ve,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(S||it[0]).toString(),onChange:this.changeSize,getPopupContainer:function(ft){return ft.parentNode},"aria-label":b.page_size,defaultOpen:!1},Ge)}return _&&(de&&(yt=typeof de=="boolean"?O.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:fe,className:"".concat(Ve,"-quick-jumper-button")},b.jump_to_confirm):O.createElement("span",{onClick:this.go,onKeyUp:this.go},de)),lt=O.createElement("div",{className:"".concat(Ve,"-quick-jumper")},b.jump_to,O.createElement("input",{disabled:fe,type:"text",value:ot,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur,"aria-label":b.page}),b.page,yt)),O.createElement("li",{className:"".concat(Ve)},Dt,lt)}}]),Y}(O.Component);bn.defaultProps={pageSizeOptions:["10","20","50","100"]};var $n=bn,Wn=f(81626);function pn(){}function Ot(z){var P=Number(z);return typeof P=="number"&&!isNaN(P)&&isFinite(P)&&Math.floor(P)===P}function xt(z,P,Y){return Y}function Zt(z,P,Y){var v=typeof z=="undefined"?P.pageSize:z;return Math.floor((Y.total-1)/v)+1}var hn=function(z){(0,Qt.Z)(Y,z);var P=(0,Pt.Z)(Y);function Y(v){var u;(0,jt.Z)(this,Y),u=P.call(this,v),u.getJumpPrevPage=function(){return Math.max(1,u.state.current-(u.props.showLessItems?3:5))},u.getJumpNextPage=function(){return Math.min(Zt(void 0,u.state,u.props),u.state.current+(u.props.showLessItems?3:5))},u.getItemIcon=function(E,_){var de=u.props.prefixCls,se=E||O.createElement("button",{type:"button","aria-label":_,className:"".concat(de,"-item-link")});return typeof E=="function"&&(se=O.createElement(E,(0,t.Z)({},u.props))),se},u.savePaginationNode=function(E){u.paginationNode=E},u.isValid=function(E){var _=u.props.total;return Ot(E)&&E!==u.state.current&&Ot(_)&&_>0},u.shouldDisplayQuickJumper=function(){var E=u.props,_=E.showQuickJumper,de=E.total,se=u.state.pageSize;return de<=se?!1:_},u.handleKeyDown=function(E){(E.keyCode===gt.ARROW_UP||E.keyCode===gt.ARROW_DOWN)&&E.preventDefault()},u.handleKeyUp=function(E){var _=u.getValidValue(E),de=u.state.currentInputValue;_!==de&&u.setState({currentInputValue:_}),E.keyCode===gt.ENTER?u.handleChange(_):E.keyCode===gt.ARROW_UP?u.handleChange(_-1):E.keyCode===gt.ARROW_DOWN&&u.handleChange(_+1)},u.handleBlur=function(E){var _=u.getValidValue(E);u.handleChange(_)},u.changePageSize=function(E){var _=u.state.current,de=Zt(E,u.state,u.props);_=_>de?de:_,de===0&&(_=u.state.current),typeof E=="number"&&("pageSize"in u.props||u.setState({pageSize:E}),"current"in u.props||u.setState({current:_,currentInputValue:_})),u.props.onShowSizeChange(_,E),"onChange"in u.props&&u.props.onChange&&u.props.onChange(_,E)},u.handleChange=function(E){var _=u.props,de=_.disabled,se=_.onChange,Oe=u.state,at=Oe.pageSize,fe=Oe.current,ot=Oe.currentInputValue;if(u.isValid(E)&&!de){var Ve=Zt(void 0,u.state,u.props),ce=E;return E>Ve?ce=Ve:E<1&&(ce=1),"current"in u.props||u.setState({current:ce}),ce!==ot&&u.setState({currentInputValue:ce}),se(ce,at),ce}return fe},u.prev=function(){u.hasPrev()&&u.handleChange(u.state.current-1)},u.next=function(){u.hasNext()&&u.handleChange(u.state.current+1)},u.jumpPrev=function(){u.handleChange(u.getJumpPrevPage())},u.jumpNext=function(){u.handleChange(u.getJumpNextPage())},u.hasPrev=function(){return u.state.current>1},u.hasNext=function(){return u.state.current2?de-2:0),Oe=2;Oe=S?Q=S:Q=Number(x),Q}},{key:"getShowSizeChanger",value:function(){var u=this.props,x=u.showSizeChanger,S=u.total,b=u.totalBoundaryShowSizeChanger;return typeof x!="undefined"?x:S>b}},{key:"renderPrev",value:function(u){var x=this.props,S=x.prevIcon,b=x.itemRender,Q=b(u,"prev",this.getItemIcon(S,"prev page")),E=!this.hasPrev();return(0,O.isValidElement)(Q)?(0,O.cloneElement)(Q,{disabled:E}):Q}},{key:"renderNext",value:function(u){var x=this.props,S=x.nextIcon,b=x.itemRender,Q=b(u,"next",this.getItemIcon(S,"next page")),E=!this.hasNext();return(0,O.isValidElement)(Q)?(0,O.cloneElement)(Q,{disabled:E}):Q}},{key:"render",value:function(){var u=this,x=this.props,S=x.prefixCls,b=x.className,Q=x.style,E=x.disabled,_=x.hideOnSinglePage,de=x.total,se=x.locale,Oe=x.showQuickJumper,at=x.showLessItems,fe=x.showTitle,ot=x.showTotal,Ve=x.simple,ce=x.itemRender,Dt=x.showPrevNextJumpers,lt=x.jumpPrevIcon,yt=x.jumpNextIcon,it=x.selectComponentClass,Ge=x.selectPrefixCls,st=x.pageSizeOptions,ft=this.state,Ze=ft.current,St=ft.pageSize,en=ft.currentInputValue;if(_===!0&&de<=St)return null;var He=Zt(void 0,this.state,this.props),$e=[],Tt=null,mt=null,gn=null,kn=null,vt=null,tn=Oe&&Oe.goButton,ht=at?1:2,nn=Ze-1>0?Ze-1:0,kt=Ze+1de?de:Ze*St]));if(Ve)return tn&&(typeof tn=="boolean"?vt=O.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},se.jump_to_confirm):vt=O.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},tn),vt=O.createElement("li",{title:fe?"".concat(se.jump_to).concat(Ze,"/").concat(He):null,className:"".concat(S,"-simple-pager")},vt)),O.createElement("ul",(0,N.Z)({className:I()(S,"".concat(S,"-simple"),(0,oe.Z)({},"".concat(S,"-disabled"),E),b),style:Q,ref:this.savePaginationNode},Kn),zt,O.createElement("li",{title:fe?se.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:I()("".concat(S,"-prev"),(0,oe.Z)({},"".concat(S,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},this.renderPrev(nn)),O.createElement("li",{title:fe?"".concat(Ze,"/").concat(He):null,className:"".concat(S,"-simple-pager")},O.createElement("input",{type:"text",value:en,disabled:E,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,onBlur:this.handleBlur,size:"3"}),O.createElement("span",{className:"".concat(S,"-slash")},"/"),He),O.createElement("li",{title:fe?se.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:I()("".concat(S,"-next"),(0,oe.Z)({},"".concat(S,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(kt)),vt);if(He<=3+ht*2){var Et={locale:se,rootPrefixCls:S,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:fe,itemRender:ce};He||$e.push(O.createElement(It,(0,N.Z)({},Et,{key:"noPager",page:1,className:"".concat(S,"-item-disabled")})));for(var xn=1;xn<=He;xn+=1){var Hn=Ze===xn;$e.push(O.createElement(It,(0,N.Z)({},Et,{key:xn,page:xn,active:Hn})))}}else{var Un=at?se.prev_3:se.prev_5,wr=at?se.next_3:se.next_5;Dt&&(Tt=O.createElement("li",{title:fe?Un:null,key:"prev",onClick:this.jumpPrev,tabIndex:"0",onKeyPress:this.runIfEnterJumpPrev,className:I()("".concat(S,"-jump-prev"),(0,oe.Z)({},"".concat(S,"-jump-prev-custom-icon"),!!lt))},ce(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(lt,"prev page"))),mt=O.createElement("li",{title:fe?wr:null,key:"next",tabIndex:"0",onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:I()("".concat(S,"-jump-next"),(0,oe.Z)({},"".concat(S,"-jump-next-custom-icon"),!!yt))},ce(this.getJumpNextPage(),"jump-next",this.getItemIcon(yt,"next page")))),kn=O.createElement(It,{locale:se,last:!0,rootPrefixCls:S,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:He,page:He,active:!1,showTitle:fe,itemRender:ce}),gn=O.createElement(It,{locale:se,rootPrefixCls:S,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:fe,itemRender:ce});var jn=Math.max(1,Ze-ht),Gn=Math.min(Ze+ht,He);Ze-1<=ht&&(Gn=1+ht*2),He-Ze<=ht&&(jn=He-ht*2);for(var yn=jn;yn<=Gn;yn+=1){var Qn=Ze===yn;$e.push(O.createElement(It,{locale:se,rootPrefixCls:S,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:yn,page:yn,active:Qn,showTitle:fe,itemRender:ce}))}Ze-1>=ht*2&&Ze!==1+2&&($e[0]=(0,O.cloneElement)($e[0],{className:"".concat(S,"-item-after-jump-prev")}),$e.unshift(Tt)),He-Ze>=ht*2&&Ze!==He-2&&($e[$e.length-1]=(0,O.cloneElement)($e[$e.length-1],{className:"".concat(S,"-item-before-jump-next")}),$e.push(mt)),jn!==1&&$e.unshift(gn),Gn!==He&&$e.push(kn)}var Jn=!this.hasPrev()||!He,Xn=!this.hasNext()||!He;return O.createElement("ul",(0,N.Z)({className:I()(S,b,(0,oe.Z)({},"".concat(S,"-disabled"),E)),style:Q,ref:this.savePaginationNode},Kn),zt,O.createElement("li",{title:fe?se.prev_page:null,onClick:this.prev,tabIndex:Jn?null:0,onKeyPress:this.runIfEnterPrev,className:I()("".concat(S,"-prev"),(0,oe.Z)({},"".concat(S,"-disabled"),Jn)),"aria-disabled":Jn},this.renderPrev(nn)),$e,O.createElement("li",{title:fe?se.next_page:null,onClick:this.next,tabIndex:Xn?null:0,onKeyPress:this.runIfEnterNext,className:I()("".concat(S,"-next"),(0,oe.Z)({},"".concat(S,"-disabled"),Xn)),"aria-disabled":Xn},this.renderNext(kt)),O.createElement($n,{disabled:E,locale:se,rootPrefixCls:S,selectComponentClass:it,selectPrefixCls:Ge,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:Ze,pageSize:St,pageSizeOptions:st,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:tn}))}}],[{key:"getDerivedStateFromProps",value:function(u,x){var S={};if("current"in u&&(S.current=u.current,u.current!==x.current&&(S.currentInputValue=S.current)),"pageSize"in u&&u.pageSize!==x.pageSize){var b=x.current,Q=Zt(u.pageSize,x,u);b=b>Q?Q:b,"current"in u||(S.current=b,S.currentInputValue=b),S.pageSize=u.pageSize}return S}}]),Y}(O.Component);hn.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:pn,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:pn,locale:Wn.Z,style:{},itemRender:xt,totalBoundaryShowSizeChanger:50};var cn=hn,_t=f(62906),Cn=f(53124),In=f(25378),On=f(42051),qt=f(34041),Tn=function(P){return O.createElement(qt.Z,(0,N.Z)({},P,{size:"small"}))},un=function(P){return O.createElement(qt.Z,(0,N.Z)({},P,{size:"middle"}))};Tn.Option=qt.Z.Option,un.Option=qt.Z.Option;var Vn=function(z,P){var Y={};for(var v in z)Object.prototype.hasOwnProperty.call(z,v)&&P.indexOf(v)<0&&(Y[v]=z[v]);if(z!=null&&typeof Object.getOwnPropertySymbols=="function")for(var u=0,v=Object.getOwnPropertySymbols(z);u=r}function x(e){return e&&(0,oe.Z)(e)==="object"&&!Array.isArray(e)&&!t.isValidElement(e)}function S(e){return typeof e=="string"?!0:(0,xt.Yr)(e)}var b=function(n){var r=n.ellipsis,o=n.rowType,a=n.children,l,c=r===!0?{showTitle:!0}:r;return c&&(c.showTitle||o==="header")&&(typeof a=="string"||typeof a=="number"?l=a.toString():t.isValidElement(a)&&typeof a.props.children=="string"&&(l=a.props.children)),l};function Q(e,n){var r,o,a,l=e.prefixCls,c=e.className,s=e.record,i=e.index,m=e.renderIndex,p=e.dataIndex,d=e.render,h=e.children,C=e.component,y=C===void 0?"td":C,w=e.colSpan,g=e.rowSpan,R=e.fixLeft,T=e.fixRight,V=e.firstFixLeft,ne=e.lastFixLeft,W=e.firstFixRight,ee=e.lastFixRight,Ce=e.appendNode,X=e.additionalProps,j=X===void 0?{}:X,ge=e.ellipsis,ve=e.align,k=e.rowType,re=e.isSticky,H=e.hovering,ae=e.onHover,U="".concat(l,"-cell"),A=t.useContext(Y),B=t.useContext(On),Ie=t.useContext(z),ct=Ie.allColumnsFixedLeft,_e=t.useMemo(function(){if(Cn(h))return[h];var K=cn(s,p),Z=K,he=void 0;if(d){var Ue=d(K,s,m);x(Ue)?(Z=Ue.children,he=Ue.props,A.renderWithProps=!0):Z=Ue}return[Z,he]},[A.renderWithProps?Math.random():0,h,p,A,s,d,m]),ke=(0,D.Z)(_e,2),We=ke[0],De=ke[1],ut=We;(0,oe.Z)(ut)==="object"&&!Array.isArray(ut)&&!t.isValidElement(ut)&&(ut=null),ge&&(ne||W)&&(ut=t.createElement("span",{className:"".concat(U,"-content")},ut));var Je=De||{},Xe=Je.colSpan,Me=Je.rowSpan,qe=Je.style,wt=Je.className,Le=(0,Ot.Z)(Je,v),ze=(r=Xe!==void 0?Xe:w)!==null&&r!==void 0?r:1,xe=(o=Me!==void 0?Me:g)!==null&&o!==void 0?o:1;if(ze===0||xe===0)return null;var Ee={},we=typeof R=="number"&&B,nt=typeof T=="number"&&B;we&&(Ee.position="sticky",Ee.left=R),nt&&(Ee.position="sticky",Ee.right=T);var Ye={};ve&&(Ye.textAlign=ve);var Ct=function(Z){var he;s&&ae(i,i+xe-1),j==null||(he=j.onMouseEnter)===null||he===void 0||he.call(j,Z)},pe=function(Z){var he;s&&ae(-1,-1),j==null||(he=j.onMouseLeave)===null||he===void 0||he.call(j,Z)},te=b({rowType:k,ellipsis:ge,children:We}),G=(0,L.Z)((0,L.Z)((0,L.Z)({title:te},Le),j),{},{colSpan:ze!==1?ze:null,rowSpan:xe!==1?xe:null,className:q()(U,c,(a={},(0,N.Z)(a,"".concat(U,"-fix-left"),we&&B),(0,N.Z)(a,"".concat(U,"-fix-left-first"),V&&B),(0,N.Z)(a,"".concat(U,"-fix-left-last"),ne&&B),(0,N.Z)(a,"".concat(U,"-fix-left-all"),ne&&ct&&B),(0,N.Z)(a,"".concat(U,"-fix-right"),nt&&B),(0,N.Z)(a,"".concat(U,"-fix-right-first"),W&&B),(0,N.Z)(a,"".concat(U,"-fix-right-last"),ee&&B),(0,N.Z)(a,"".concat(U,"-ellipsis"),ge),(0,N.Z)(a,"".concat(U,"-with-append"),Ce),(0,N.Z)(a,"".concat(U,"-fix-sticky"),(we||nt)&&re&&B),(0,N.Z)(a,"".concat(U,"-row-hover"),!De&&H),a),j.className,wt),style:(0,L.Z)((0,L.Z)((0,L.Z)((0,L.Z)({},j.style),Ye),Ee),qe),onMouseEnter:Ct,onMouseLeave:pe,ref:S(y)?n:null});return t.createElement(y,G,Ce,ut)}var E=t.forwardRef(Q);E.displayName="Cell";var _=["expanded","className","hovering"],de=t.memo(E,function(e,n){return n.shouldCellUpdate?_.every(function(r){return e[r]===n[r]})&&!n.shouldCellUpdate(n.record,e.record):O()(e,n)}),se=t.forwardRef(function(e,n){var r=e.index,o=e.additionalProps,a=o===void 0?{}:o,l=e.colSpan,c=e.rowSpan,s=a.colSpan,i=a.rowSpan,m=l!=null?l:s,p=c!=null?c:i,d=Vn(Ne,function(y){var w=u(r,p||1,y==null?void 0:y.startRow,y==null?void 0:y.endRow);return{onHover:y==null?void 0:y.onHover,hovering:w}}),h=d.onHover,C=d.hovering;return t.createElement(de,(0,M.Z)({},e,{colSpan:m,rowSpan:p,hovering:C,ref:n,onHover:h}))});se.displayName="WrappedCell";var Oe=se,at=t.createContext(null),fe=at;function ot(e,n,r,o,a){var l=r[e]||{},c=r[n]||{},s,i;l.fixed==="left"?s=o.left[e]:c.fixed==="right"&&(i=o.right[n]);var m=!1,p=!1,d=!1,h=!1,C=r[n+1],y=r[e-1];if(a==="rtl"){if(s!==void 0){var w=y&&y.fixed==="left";h=!w}else if(i!==void 0){var g=C&&C.fixed==="right";d=!g}}else if(s!==void 0){var R=C&&C.fixed==="left";m=!R}else if(i!==void 0){var T=y&&y.fixed==="right";p=!T}return{fixLeft:s,fixRight:i,lastFixLeft:m,firstFixRight:p,lastFixRight:d,firstFixLeft:h,isSticky:o.isSticky}}function Ve(e){var n=e.cells,r=e.stickyOffsets,o=e.flattenColumns,a=e.rowComponent,l=e.cellComponent,c=e.onHeaderRow,s=e.index,i=t.useContext(fe),m=i.prefixCls,p=i.direction,d;c&&(d=c(n.map(function(C){return C.column}),s));var h=_t(n.map(function(C){return C.column}));return t.createElement(a,d,n.map(function(C,y){var w=C.column,g=ot(C.colStart,C.colEnd,o,r,p),R;return w&&w.onHeaderCell&&(R=C.column.onHeaderCell(w)),t.createElement(Oe,(0,M.Z)({},C,{ellipsis:w.ellipsis,align:w.align,component:l,prefixCls:m,key:h[y]},g,{additionalProps:R,rowType:"header"}))}))}Ve.displayName="HeaderRow";var ce=Ve;function Dt(e){var n=[];function r(c,s){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;n[i]=n[i]||[];var m=s,p=c.filter(Boolean).map(function(d){var h={key:d.key,className:d.className||"",children:d.title,column:d,colStart:m},C=1,y=d.children;return y&&y.length>0&&(C=r(y,m,i+1).reduce(function(w,g){return w+g},0),h.hasSubColumns=!0),"colSpan"in d&&(C=d.colSpan),"rowSpan"in d&&(h.rowSpan=d.rowSpan),h.colSpan=C,h.colEnd=h.colStart+C-1,n[i].push(h),m+=C,C});return p}r(e,0);for(var o=n.length,a=function(s){n[s].forEach(function(i){!("rowSpan"in i)&&!i.hasSubColumns&&(i.rowSpan=o-s)})},l=0;l1?we-1:0),Ye=1;Ye0?[].concat((0,I.Z)(n),(0,I.Z)(Un(l).map(function(c){return(0,L.Z)({fixed:a},c)}))):[].concat((0,I.Z)(n),[(0,L.Z)((0,L.Z)({},r),{},{fixed:a})])},[])}function wr(e){for(var n=!0,r=0;r=0;l-=1){var c=e[l];if(a&&c.fixed!=="right")a=!1;else if(!a&&c.fixed==="right"){warning(!1,"Index ".concat(l+1," of `columns` missing `fixed='right'` prop."));break}}}function jn(e){return e.map(function(n){var r=n.fixed,o=(0,Ot.Z)(n,xn),a=r;return r==="left"?a="right":r==="right"&&(a="left"),(0,L.Z)({fixed:a},o)})}function Gn(e,n){var r=e.prefixCls,o=e.columns,a=e.children,l=e.expandable,c=e.expandedKeys,s=e.columnTitle,i=e.getRowKey,m=e.onTriggerExpand,p=e.expandIcon,d=e.rowExpandable,h=e.expandIconColumnIndex,C=e.direction,y=e.expandRowByClick,w=e.columnWidth,g=e.fixed,R=t.useMemo(function(){return o||Hn(a)},[o,a]),T=t.useMemo(function(){if(l){var W,ee=R.slice();if(!ee.includes(zt)){var Ce=h||0;Ce>=0&&ee.splice(Ce,0,zt)}var X=ee.indexOf(zt);ee=ee.filter(function(k,re){return k!==zt||re===X});var j=R[X],ge;(g==="left"||g)&&!h?ge="left":(g==="right"||g)&&h===R.length?ge="right":ge=j?j.fixed:null;var ve=(W={},(0,N.Z)(W,kt,{className:"".concat(r,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),(0,N.Z)(W,"title",s),(0,N.Z)(W,"fixed",ge),(0,N.Z)(W,"className","".concat(r,"-row-expand-icon-cell")),(0,N.Z)(W,"width",w),(0,N.Z)(W,"render",function(re,H,ae){var U=i(H,ae),A=c.has(U),B=d?d(H):!0,Ie=p({prefixCls:r,expanded:A,expandable:B,record:H,onExpand:m});return y?t.createElement("span",{onClick:function(_e){return _e.stopPropagation()}},Ie):Ie}),W);return ee.map(function(k){return k===zt?ve:k})}return R.filter(function(k){return k!==zt})},[l,R,i,c,p,C]),V=t.useMemo(function(){var W=T;return n&&(W=n(W)),W.length||(W=[{render:function(){return null}}]),W},[n,T,C]),ne=t.useMemo(function(){return C==="rtl"?jn(Un(V)):Un(V)},[V,C]);return[V,ne]}var yn=Gn;function Qn(e){var n=(0,t.useRef)(e),r=(0,t.useState)({}),o=(0,D.Z)(r,2),a=o[1],l=(0,t.useRef)(null),c=(0,t.useRef)([]);function s(i){c.current.push(i);var m=Promise.resolve();l.current=m,m.then(function(){if(l.current===m){var p=c.current,d=n.current;c.current=[],p.forEach(function(h){n.current=h(n.current)}),l.current=null,d!==n.current&&a({})}})}return(0,t.useEffect)(function(){return function(){l.current=null}},[]),[n.current,s]}function Jn(e){var n=(0,t.useRef)(e||null),r=(0,t.useRef)();function o(){window.clearTimeout(r.current)}function a(c){n.current=c,o(),r.current=window.setTimeout(function(){n.current=null,r.current=void 0},100)}function l(){return n.current}return(0,t.useEffect)(function(){return o},[]),[a,l]}function Xn(e,n,r){var o=(0,t.useMemo)(function(){for(var a=[],l=[],c=0,s=0,i=0;i=0;s-=1){var i=n[s],m=r&&r[s],p=m&&m[kt];if(i||p||c){var d=p||{},h=d.columnType,C=(0,Ot.Z)(d,Sn);a.unshift(t.createElement("col",(0,M.Z)({key:s,style:{width:i}},C))),c=!0}}return t.createElement("colgroup",null,a)}var br=ma;function pa(e){var n=e.className,r=e.children;return t.createElement("div",{className:n},r)}var Ir=pa,ha=t.createContext({}),Or=ha;function Ca(e){var n=e.className,r=e.index,o=e.children,a=e.colSpan,l=a===void 0?1:a,c=e.rowSpan,s=e.align,i=t.useContext(fe),m=i.prefixCls,p=i.direction,d=t.useContext(Or),h=d.scrollColumnIndex,C=d.stickyOffsets,y=d.flattenColumns,w=r+l-1,g=w+1===h?l+1:l,R=ot(r,r+g-1,y,C,p);return t.createElement(Oe,(0,M.Z)({className:n,index:r,component:"td",prefixCls:m,record:null,dataIndex:null,align:s,colSpan:g,rowSpan:c,render:function(){return o}},R))}var ga=["children"];function xa(e){var n=e.children,r=(0,Ot.Z)(e,ga);return t.createElement("tr",r,n)}function cr(e){var n=e.children;return n}cr.Row=xa,cr.Cell=Ca;var Tr=cr;function ya(e){var n=e.children,r=e.stickyOffsets,o=e.flattenColumns,a=t.useContext(fe),l=a.prefixCls,c=o.length-1,s=o[c],i=t.useMemo(function(){return{stickyOffsets:r,flattenColumns:o,scrollColumnIndex:(s==null?void 0:s.scrollbar)?c:null}},[s,o,c,r]);return t.createElement(Or.Provider,{value:i},t.createElement("tfoot",{className:"".concat(l,"-summary")},n))}var qn=ya,kr=Tr;function Sa(e){var n,r=e.prefixCls,o=e.record,a=e.onExpand,l=e.expanded,c=e.expandable,s="".concat(r,"-row-expand-icon");if(!c)return t.createElement("span",{className:q()(s,"".concat(r,"-row-spaced"))});var i=function(p){a(o,p),p.stopPropagation()};return t.createElement("span",{className:q()(s,(n={},(0,N.Z)(n,"".concat(r,"-row-expanded"),l),(0,N.Z)(n,"".concat(r,"-row-collapsed"),!l),n)),onClick:i})}function Ea(e,n,r){var o=[];function a(l){(l||[]).forEach(function(c,s){o.push(n(c,s)),a(c[r])})}return a(e),o}var er=f(64019),Kr=f(27678),Ra=function(n,r){var o,a,l=n.scrollBodyRef,c=n.onScroll,s=n.offsetScroll,i=n.container,m=t.useContext(fe),p=m.prefixCls,d=((o=l.current)===null||o===void 0?void 0:o.scrollWidth)||0,h=((a=l.current)===null||a===void 0?void 0:a.clientWidth)||0,C=d&&h*(h/d),y=t.useRef(),w=Qn({scrollLeft:0,isHiddenScrollBar:!1}),g=(0,D.Z)(w,2),R=g[0],T=g[1],V=t.useRef({delta:0,x:0}),ne=t.useState(!1),W=(0,D.Z)(ne,2),ee=W[0],Ce=W[1],X=function(){Ce(!1)},j=function(H){H.persist(),V.current.delta=H.pageX-R.scrollLeft,V.current.x=0,Ce(!0),H.preventDefault()},ge=function(H){var ae,U=H||((ae=window)===null||ae===void 0?void 0:ae.event),A=U.buttons;if(!ee||A===0){ee&&Ce(!1);return}var B=V.current.x+H.pageX-V.current.x-V.current.delta;B<=0&&(B=0),B+C>=h&&(B=h-C),c({scrollLeft:B/h*(d+2)}),V.current.x=H.pageX},ve=function(){if(!!l.current){var H=(0,Kr.os)(l.current).top,ae=H+l.current.offsetHeight,U=i===window?document.documentElement.scrollTop+window.innerHeight:(0,Kr.os)(i).top+i.clientHeight;ae-(0,gt.Z)()<=U||H>=U-s?T(function(A){return(0,L.Z)((0,L.Z)({},A),{},{isHiddenScrollBar:!0})}):T(function(A){return(0,L.Z)((0,L.Z)({},A),{},{isHiddenScrollBar:!1})})}},k=function(H){T(function(ae){return(0,L.Z)((0,L.Z)({},ae),{},{scrollLeft:H/d*h||0})})};return t.useImperativeHandle(r,function(){return{setScrollLeft:k}}),t.useEffect(function(){var re=(0,er.Z)(document.body,"mouseup",X,!1),H=(0,er.Z)(document.body,"mousemove",ge,!1);return ve(),function(){re.remove(),H.remove()}},[C,ee]),t.useEffect(function(){var re=(0,er.Z)(i,"scroll",ve,!1),H=(0,er.Z)(window,"resize",ve,!1);return function(){re.remove(),H.remove()}},[i]),t.useEffect(function(){R.isHiddenScrollBar||T(function(re){var H=l.current;return H?(0,L.Z)((0,L.Z)({},re),{},{scrollLeft:H.scrollLeft/H.scrollWidth*H.clientWidth}):re})},[R.isHiddenScrollBar]),d<=h||!C||R.isHiddenScrollBar?null:t.createElement("div",{style:{height:(0,gt.Z)(),width:h,bottom:s},className:"".concat(p,"-sticky-scroll")},t.createElement("div",{onMouseDown:j,ref:y,className:q()("".concat(p,"-sticky-scroll-bar"),(0,N.Z)({},"".concat(p,"-sticky-scroll-bar-active"),ee)),style:{width:"".concat(C,"px"),transform:"translate3d(".concat(R.scrollLeft,"px, 0, 0)")}}))},Na=t.forwardRef(Ra),Pa=f(98924),Mr=(0,Pa.Z)()?window:null;function Za(e,n){var r=(0,oe.Z)(e)==="object"?e:{},o=r.offsetHeader,a=o===void 0?0:o,l=r.offsetSummary,c=l===void 0?0:l,s=r.offsetScroll,i=s===void 0?0:s,m=r.getContainer,p=m===void 0?function(){return Mr}:m,d=p()||Mr;return t.useMemo(function(){var h=!!e;return{isSticky:h,stickyClassName:h?"".concat(n,"-sticky-holder"):"",offsetHeader:a,offsetSummary:c,offsetScroll:i,container:d}},[i,a,c,n,d])}var wa=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function ba(e,n){return(0,t.useMemo)(function(){for(var r=[],o=0;o=0})},[l]),ge=l[l.length-1],ve={fixed:ge?ge.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(V,"-cell-scrollbar")}}},k=(0,t.useMemo)(function(){return ee?[].concat((0,I.Z)(a),[ve]):a},[ee,a]),re=(0,t.useMemo)(function(){return ee?[].concat((0,I.Z)(l),[ve]):l},[ee,l]),H=(0,t.useMemo)(function(){var U=i.right,A=i.left;return(0,L.Z)((0,L.Z)({},i),{},{left:m==="rtl"?[].concat((0,I.Z)(A.map(function(B){return B+ee})),[0]):A,right:m==="rtl"?U:[].concat((0,I.Z)(U.map(function(B){return B+ee})),[0]),isSticky:W})},[ee,i,W]),ae=ba(c,s);return t.createElement("div",{style:(0,L.Z)({overflow:"hidden"},W?{top:d,bottom:h}:{}),ref:X,className:q()(r,(0,N.Z)({},C,!!C))},t.createElement("table",{style:{tableLayout:"fixed",visibility:o||ae?null:"hidden"}},(!o||!w||j)&&t.createElement(br,{colWidths:ae?[].concat((0,I.Z)(ae),[ee]):[],columCount:s+1,columns:re}),g((0,L.Z)((0,L.Z)({},R),{},{stickyOffsets:H,columns:k,flattenColumns:re}))))});Lr.displayName="FixedHolder";var Dr=Lr,Ia=[],Oa={},tr="rc-table-internal-hook",Ta=t.memo(function(e){var n=e.children;return n},function(e,n){return O()(e.props,n.props)?e.pingLeft!==n.pingLeft||e.pingRight!==n.pingRight:!1});function Mn(e){var n,r=e.prefixCls,o=e.className,a=e.rowClassName,l=e.style,c=e.data,s=e.rowKey,i=e.scroll,m=e.tableLayout,p=e.direction,d=e.title,h=e.footer,C=e.summary,y=e.id,w=e.showHeader,g=e.components,R=e.emptyText,T=e.onRow,V=e.onHeaderRow,ne=e.internalHooks,W=e.transformColumns,ee=e.internalRefs,Ce=e.sticky,X=c||Ia,j=!!X.length,ge=t.useCallback(function(ie,Se){return cn(g||{},ie)||Se},[g]),ve=t.useMemo(function(){return typeof s=="function"?s:function(ie){var Se=ie&&ie[s];return Se}},[s]),k=Kn(e),re=k.expandIcon,H=k.expandedRowKeys,ae=k.defaultExpandedRowKeys,U=k.defaultExpandAllRows,A=k.expandedRowRender,B=k.columnTitle,Ie=k.onExpand,ct=k.onExpandedRowsChange,_e=k.expandRowByClick,ke=k.rowExpandable,We=k.expandIconColumnIndex,De=k.expandedRowClassName,ut=k.childrenColumnName,Je=k.indentSize,Xe=re||Sa,Me=ut||"children",qe=t.useMemo(function(){return A?"row":e.expandable&&ne===tr&&e.expandable.__PARENT_RENDER_ICON__||X.some(function(ie){return ie&&(0,oe.Z)(ie)==="object"&&ie[Me]})?"nest":!1},[!!A,X]),wt=t.useState(function(){return ae||(U?Ea(X,ve,Me):[])}),Le=(0,D.Z)(wt,2),ze=Le[0],xe=Le[1],Ee=t.useMemo(function(){return new Set(H||ze||[])},[H,ze]),we=t.useCallback(function(ie){var Se=ve(ie,X.indexOf(ie)),rt,$t=Ee.has(Se);$t?(Ee.delete(Se),rt=(0,I.Z)(Ee)):rt=[].concat((0,I.Z)(Ee),[Se]),xe(rt),Ie&&Ie(!$t,ie),ct&&ct(rt)},[ve,Ee,X,Ie,ct]),nt=t.useState(0),Ye=(0,D.Z)(nt,2),Ct=Ye[0],pe=Ye[1],te=yn((0,L.Z)((0,L.Z)((0,L.Z)({},e),k),{},{expandable:!!A,columnTitle:B,expandedKeys:Ee,getRowKey:ve,onTriggerExpand:we,expandIcon:Xe,expandIconColumnIndex:We,direction:p}),ne===tr?W:null),G=(0,D.Z)(te,2),K=G[0],Z=G[1],he=t.useMemo(function(){return{columns:K,flattenColumns:Z}},[K,Z]),Ue=t.useRef(),et=t.useRef(),Qe=t.useRef(),ye=t.useRef(),J=t.useRef(),Re=t.useState(!1),Fe=(0,D.Z)(Re,2),Kt=Fe[0],Gt=Fe[1],Ft=t.useState(!1),En=(0,D.Z)(Ft,2),Rn=En[0],Mt=En[1],Lt=Qn(new Map),zn=(0,D.Z)(Lt,2),Nn=zn[0],At=zn[1],fn=_t(Z),Vt=fn.map(function(ie){return Nn.get(ie)}),Fn=t.useMemo(function(){return Vt},[Vt.join("_")]),le=_n(Fn,Z.length,p),F=i&&Cn(i.y),Ke=i&&Cn(i.x)||Boolean(k.fixed),be=Ke&&Z.some(function(ie){var Se=ie.fixed;return Se}),tt=t.useRef(),Te=Za(Ce,r),Ae=Te.isSticky,Jt=Te.offsetHeader,vn=Te.offsetSummary,Pn=Te.offsetScroll,An=Te.stickyClassName,Xt=Te.container,pt=C==null?void 0:C(X),Ht=(F||Ae)&&t.isValidElement(pt)&&pt.type===Tr&&pt.props.fixed,Ut,Rt,an;F&&(Rt={overflowY:"scroll",maxHeight:i.y}),Ke&&(Ut={overflowX:"auto"},F||(Rt={overflowY:"hidden"}),an={width:(i==null?void 0:i.x)===!0?"auto":i==null?void 0:i.x,minWidth:"100%"});var on=t.useCallback(function(ie,Se){(0,jt.Z)(Ue.current)&&At(function(rt){if(rt.get(ie)!==Se){var $t=new Map(rt);return $t.set(ie,Se),$t}return rt})},[]),Zn=Jn(null),ln=(0,D.Z)(Zn,2),wn=ln[0],ue=ln[1];function me(ie,Se){!Se||(typeof Se=="function"?Se(ie):Se.scrollLeft!==ie&&(Se.scrollLeft=ie))}var Be=function(Se){var rt=Se.currentTarget,$t=Se.scrollLeft,Uo=p==="rtl",mn=typeof $t=="number"?$t:rt.scrollLeft,va=rt||Oa;if(!ue()||ue()===va){var Nr;wn(va),me(mn,et.current),me(mn,Qe.current),me(mn,J.current),me(mn,(Nr=tt.current)===null||Nr===void 0?void 0:Nr.setScrollLeft)}if(rt){var Pr=rt.scrollWidth,Zr=rt.clientWidth;if(Pr===Zr){Gt(!1),Mt(!1);return}Uo?(Gt(-mn0)):(Gt(mn>0),Mt(mn1&&arguments[1]!==void 0?arguments[1]:{},r=n.getContainer,o=r===void 0?function(){return window}:r,a=n.callback,l=n.duration,c=l===void 0?450:l,s=o(),i=$a(s,!0),m=Date.now(),p=function d(){var h=Date.now(),C=h-m,y=Ba(C>c?c:C,i,e,c);dr(s)?s.scrollTo(window.pageXOffset,y):s instanceof Document||s.constructor.name==="HTMLDocument"?s.documentElement.scrollTop=y:s.scrollTop=y,C0&&arguments[0]!==void 0?arguments[0]:{confirm:!1,closeDropdown:!1},Re=J.confirm,Fe=J.closeDropdown;Re&&Le([]),Fe&&k(!1),qe(""),B(W?(ee||[]).map(function(Kt){return String(Kt)}):[])},Ee=function(){var J=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0},Re=J.closeDropdown;Re&&k(!1),Le(A())},we=function(J){J&&H!==void 0&&B(H||[]),k(J),!J&&!a.filterDropdown&&ze()},nt=q()((0,N.Z)({},"".concat(l,"-menu-without-submenu"),!co(a.filters||[]))),Ye=function(J){if(J.target.checked){var Re=Dn(a==null?void 0:a.filters).map(function(Fe){return String(Fe)});B(Re)}else B([])},Ct=function ye(J){var Re=J.filters;return(Re||[]).map(function(Fe,Kt){var Gt=String(Fe.value),Ft={title:Fe.text,key:Fe.value!==void 0?Gt:Kt};return Fe.children&&(Ft.children=ye({filters:Fe.children})),Ft})},pe=function ye(J){var Re;return(0,M.Z)((0,M.Z)({},J),{text:J.title,value:J.key,children:((Re=J.children)===null||Re===void 0?void 0:Re.map(function(Fe){return ye(Fe)}))||[]})},te;if(typeof a.filterDropdown=="function")te=a.filterDropdown({prefixCls:"".concat(l,"-custom"),setSelectedKeys:function(J){return Ie({selectedKeys:J})},selectedKeys:A(),confirm:Ee,clearFilters:xe,filters:a.filters,visible:re,close:function(){k(!1)}});else if(a.filterDropdown)te=a.filterDropdown;else{var G=A()||[],K=function(){return(a.filters||[]).length===0?t.createElement(Wr.Z,{image:Wr.Z.PRESENTED_IMAGE_SIMPLE,description:y.filterEmptyText,imageStyle:{height:24},style:{margin:0,padding:"16px 0"}}):m==="tree"?t.createElement(t.Fragment,null,t.createElement(Hr,{filterSearch:d,value:Me,onChange:wt,tablePrefixCls:r,locale:y}),t.createElement("div",{className:"".concat(r,"-filter-dropdown-tree")},s?t.createElement(ar.Z,{checked:G.length===Dn(a.filters).length,indeterminate:G.length>0&&G.length0?l:e}),h=Math.ceil((l||e)/d.pageSize);d.current>h&&(d.current=h||1);var C=function(g,R){p({current:g!=null?g:1,pageSize:R||d.pageSize})},y=function(g,R){var T;n&&((T=n.onChange)===null||T===void 0||T.call(n,g,R)),C(g,R),r(g,R||(d==null?void 0:d.pageSize))};return n===!1?[{},function(){}]:[(0,M.Z)((0,M.Z)({},d),{onChange:y}),C]}var yo=f(99809),So=f(57254),_r=f(10225),vr=f(17341),Eo=f(1089),Ro=f(21770),dn={},mr="SELECT_ALL",pr="SELECT_INVERT",hr="SELECT_NONE",qr=[];function ea(e,n){var r=[];return(e||[]).forEach(function(o){r.push(o),o&&(0,oe.Z)(o)==="object"&&n in o&&(r=[].concat((0,I.Z)(r),(0,I.Z)(ea(o[n],n))))}),r}function No(e,n){var r=e||{},o=r.preserveSelectedRowKeys,a=r.selectedRowKeys,l=r.defaultSelectedRowKeys,c=r.getCheckboxProps,s=r.onChange,i=r.onSelect,m=r.onSelectAll,p=r.onSelectInvert,d=r.onSelectNone,h=r.onSelectMultiple,C=r.columnWidth,y=r.type,w=r.selections,g=r.fixed,R=r.renderCell,T=r.hideSelectAll,V=r.checkStrictly,ne=V===void 0?!0:V,W=n.prefixCls,ee=n.data,Ce=n.pageData,X=n.getRecordByKey,j=n.getRowKey,ge=n.expandType,ve=n.childrenColumnName,k=n.locale,re=n.getPopupContainer,H=(0,Ro.Z)(a||l||qr,{value:a}),ae=(0,D.Z)(H,2),U=ae[0],A=ae[1],B=t.useRef(new Map),Ie=(0,t.useCallback)(function(pe){if(o){var te=new Map;pe.forEach(function(G){var K=X(G);!K&&B.current.has(G)&&(K=B.current.get(G)),te.set(G,K)}),B.current=te}},[X,o]);t.useEffect(function(){Ie(U)},[U]);var ct=(0,t.useMemo)(function(){return ne?{keyEntities:null}:(0,Eo.I8)(ee,{externalGetKey:j,childrenPropName:ve})},[ee,j,ne,ve]),_e=ct.keyEntities,ke=(0,t.useMemo)(function(){return ea(Ce,ve)},[Ce,ve]),We=(0,t.useMemo)(function(){var pe=new Map;return ke.forEach(function(te,G){var K=j(te,G),Z=(c?c(te):null)||{};pe.set(K,Z)}),pe},[ke,j,c]),De=(0,t.useCallback)(function(pe){var te;return!!((te=We.get(j(pe)))===null||te===void 0?void 0:te.disabled)},[We,j]),ut=(0,t.useMemo)(function(){if(ne)return[U||[],[]];var pe=(0,vr.S)(U,!0,_e,De),te=pe.checkedKeys,G=pe.halfCheckedKeys;return[te||[],G]},[U,ne,_e,De]),Je=(0,D.Z)(ut,2),Xe=Je[0],Me=Je[1],qe=(0,t.useMemo)(function(){var pe=y==="radio"?Xe.slice(0,1):Xe;return new Set(pe)},[Xe,y]),wt=(0,t.useMemo)(function(){return y==="radio"?new Set:new Set(Me)},[Me,y]),Le=(0,t.useState)(null),ze=(0,D.Z)(Le,2),xe=ze[0],Ee=ze[1];t.useEffect(function(){e||A(qr)},[!!e]);var we=(0,t.useCallback)(function(pe,te){var G,K;Ie(pe),o?(G=pe,K=pe.map(function(Z){return B.current.get(Z)})):(G=[],K=[],pe.forEach(function(Z){var he=X(Z);he!==void 0&&(G.push(Z),K.push(he))})),A(G),s==null||s(G,K,{type:te})},[A,X,s,o]),nt=(0,t.useCallback)(function(pe,te,G,K){if(i){var Z=G.map(function(he){return X(he)});i(X(pe),te,Z,K)}we(G,"single")},[i,X,we]),Ye=(0,t.useMemo)(function(){if(!w||T)return null;var pe=w===!0?[mr,pr,hr]:w;return pe.map(function(te){return te===mr?{key:"all",text:k.selectionAll,onSelect:function(){we(ee.map(function(K,Z){return j(K,Z)}).filter(function(K){var Z=We.get(K);return!(Z==null?void 0:Z.disabled)||qe.has(K)}),"all")}}:te===pr?{key:"invert",text:k.selectInvert,onSelect:function(){var K=new Set(qe);Ce.forEach(function(he,Ue){var et=j(he,Ue),Qe=We.get(et);(Qe==null?void 0:Qe.disabled)||(K.has(et)?K.delete(et):K.add(et))});var Z=Array.from(K);p&&p(Z),we(Z,"invert")}}:te===hr?{key:"none",text:k.selectNone,onSelect:function(){d==null||d(),we(Array.from(qe).filter(function(K){var Z=We.get(K);return Z==null?void 0:Z.disabled}),"none")}}:te}).map(function(te){return(0,M.Z)((0,M.Z)({},te),{onSelect:function(){for(var K,Z,he=arguments.length,Ue=new Array(he),et=0;et2&&arguments[2]!==void 0?arguments[2]:!1,je=(0,M.Z)((0,M.Z)({},K),me);Bt&&(K.resetPagination(),je.pagination.current&&(je.pagination.current=1),p&&p.onChange&&p.onChange(1,je.pagination.pageSize)),ge&&ge.scrollToFirstRowOnChange!==!1&&Ye.body.current&&Wa(0,{getContainer:function(){return Ye.body.current}}),T==null||T(je.pagination,je.filters,je.sorter,{currentDataSource:Yr(xr(Me,je.sorterStates,we),je.filterStates),action:Be})},he=function(me,Be){Z({sorter:me,sorterStates:Be},"sort",!1)},Ue=Io({prefixCls:Le,mergedColumns:B,onSorterChange:he,sortDirections:ve||["ascend","descend"],tableLocale:Xe,showSorterTooltip:H}),et=(0,D.Z)(Ue,4),Qe=et[0],ye=et[1],J=et[2],Re=et[3],Fe=t.useMemo(function(){return xr(Me,ye,we)},[Me,ye]);K.sorter=Re(),K.sorterStates=ye;var Kt=function(me,Be){Z({filters:me,filterStates:Be},"filter",!0)},Gt=mo({prefixCls:Le,locale:Xe,dropdownPrefixCls:ze,mergedColumns:B,onFilterChange:Kt,getPopupContainer:V}),Ft=(0,D.Z)(Gt,3),En=Ft[0],Rn=Ft[1],Mt=Ft[2],Lt=Yr(Fe,Rn);K.filters=Mt,K.filterStates=Rn;var zn=t.useMemo(function(){var ue={};return Object.keys(Mt).forEach(function(me){Mt[me]!==null&&(ue[me]=Mt[me])}),(0,M.Z)((0,M.Z)({},J),{filters:ue})},[J,Mt]),Nn=Oo(zn),At=(0,D.Z)(Nn,1),fn=At[0],Vt=function(me,Be){Z({pagination:(0,M.Z)((0,M.Z)({},K.pagination),{current:me,pageSize:Be})},"paginate")},Fn=xo(Lt.length,p,Vt),le=(0,D.Z)(Fn,2),F=le[0],Ke=le[1];K.pagination=p===!1?{}:Co(p,F),K.resetPagination=Ke;var be=t.useMemo(function(){if(p===!1||!F.pageSize)return Lt;var ue=F.current,me=ue===void 0?1:ue,Be=F.total,Bt=F.pageSize,je=Bt===void 0?Qr:Bt;return Lt.lengthje?Lt.slice((me-1)*je,me*je):Lt:Lt.slice((me-1)*je,me*je)},[!!p,Lt,F&&F.current,F&&F.pageSize,F&&F.total]),tt=No(d,{prefixCls:Le,data:Lt,pageData:be,getRowKey:Ct,getRecordByKey:G,expandType:nt,childrenColumnName:we,locale:Xe,getPopupContainer:V}),Te=(0,D.Z)(tt,2),Ae=Te[0],Jt=Te[1],vn=function(me,Be,Bt){var je;return typeof y=="function"?je=q()(y(me,Be,Bt)):je=q()(y),q()((0,N.Z)({},"".concat(Le,"-row-selected"),Jt.has(Ct(me,Be))),je)};xe.__PARENT_RENDER_ICON__=xe.expandIcon,xe.expandIcon=xe.expandIcon||W||Ja(Xe),nt==="nest"&&xe.expandIconColumnIndex===void 0?xe.expandIconColumnIndex=d?1:0:xe.expandIconColumnIndex>0&&d&&(xe.expandIconColumnIndex-=1),typeof xe.indentSize!="number"&&(xe.indentSize=typeof j=="number"?j:15);var Pn=t.useCallback(function(ue){return fn(Ae(En(Qe(ue))))},[Qe,En,Ae]),An,Xt;if(p!==!1&&(F==null?void 0:F.total)){var pt;F.size?pt=F.size:pt=Je==="small"||Je==="middle"?"small":void 0;var Ht=function(me){return t.createElement(Fa.Z,(0,M.Z)({},F,{className:q()("".concat(Le,"-pagination ").concat(Le,"-pagination-").concat(me),F.className),size:pt}))},Ut=ut==="rtl"?"left":"right",Rt=F.position;if(Rt!==null&&Array.isArray(Rt)){var an=Rt.find(function(ue){return ue.includes("top")}),on=Rt.find(function(ue){return ue.includes("bottom")}),Zn=Rt.every(function(ue){return"".concat(ue)==="none"});!an&&!on&&!Zn&&(Xt=Ht(Ut)),an&&(An=Ht(an.toLowerCase().replace("top",""))),on&&(Xt=Ht(on.toLowerCase().replace("bottom","")))}else Xt=Ht(Ut)}var ln;typeof ne=="boolean"?ln={spinning:ne}:(0,oe.Z)(ne)==="object"&&(ln=(0,M.Z)({spinning:!0},ne));var wn=q()("".concat(Le,"-wrapper"),(0,N.Z)({},"".concat(Le,"-wrapper-rtl"),ut==="rtl"),a);return t.createElement("div",{ref:n,className:wn,style:l},t.createElement(Aa.Z,(0,M.Z)({spinning:!1},ln),An,t.createElement(zr,(0,M.Z)({},Ie,{columns:B,direction:ut,expandable:xe,prefixCls:Le,className:q()((r={},(0,N.Z)(r,"".concat(Le,"-middle"),Je==="middle"),(0,N.Z)(r,"".concat(Le,"-small"),Je==="small"),(0,N.Z)(r,"".concat(Le,"-bordered"),s),(0,N.Z)(r,"".concat(Le,"-empty"),Me.length===0),r)),data:be,rowKey:Ct,rowClassName:vn,emptyText:k&&k.emptyText||(De||Ma.Z)("Table"),internalHooks:tr,internalRefs:Ye,transformColumns:Pn})),Xt))}var Ko=t.forwardRef(ko),rn=Ko;rn.SELECTION_COLUMN=dn,rn.EXPAND_COLUMN=zr.EXPAND_COLUMN,rn.SELECTION_ALL=mr,rn.SELECTION_INVERT=pr,rn.SELECTION_NONE=hr,rn.Column=Ha,rn.ColumnGroup=ja,rn.Summary=kr;var Mo=rn,Lo=Mo},66456:function(Yt,bt,f){"use strict";var oe=f(38663),N=f.n(oe),M=f(31242),D=f.n(M),dt=f(57663),q=f(63185),L=f(59250),I=f(13254),t=f(47673),jt=f(14781),Wt=f(88983),Qt=f(20228),Pt=f(22385),O=f(32157)},7573:function(Yt,bt,f){"use strict";f.d(bt,{Z:function(){return Vn}});var oe=f(93549),N=f(96156),M=f(90484),D=f(22122),dt=f(80766),q=f(94184),L=f.n(q),I=f(67294),t=f(53124),jt=f(33603),Wt=4;function Qt($){var Ne,Pe=$.dropPosition,z=$.dropLevelOffset,P=$.prefixCls,Y=$.indent,v=$.direction,u=v===void 0?"ltr":v,x=u==="ltr"?"left":"right",S=u==="ltr"?"right":"left",b=(Ne={},(0,N.Z)(Ne,x,-z*Y+Wt),(0,N.Z)(Ne,S,0),Ne);switch(Pe){case-1:b.top=-3;break;case 1:b.bottom=-3;break;default:b.bottom=-3,b[x]=Y+Wt;break}return I.createElement("div",{style:b,className:"".concat(P,"-drop-indicator")})}var Pt=f(61639),O=I.forwardRef(function($,Ne){var Pe,z=I.useContext(t.E_),P=z.getPrefixCls,Y=z.direction,v=z.virtual,u=$.prefixCls,x=$.className,S=$.showIcon,b=S===void 0?!1:S,Q=$.showLine,E=$.switcherIcon,_=$.blockNode,de=_===void 0?!1:_,se=$.children,Oe=$.checkable,at=Oe===void 0?!1:Oe,fe=$.selectable,ot=fe===void 0?!0:fe,Ve=$.draggable,ce=$.motion,Dt=ce===void 0?(0,D.Z)((0,D.Z)({},jt.ZP),{motionAppear:!1}):ce,lt=P("tree",u),yt=(0,D.Z)((0,D.Z)({},$),{checkable:at,selectable:ot,showIcon:b,motion:Dt,blockNode:de,showLine:Boolean(Q),dropIndicatorRender:Qt}),it=I.useMemo(function(){if(!Ve)return!1;var Ge={};switch((0,M.Z)(Ve)){case"function":Ge.nodeDraggable=Ve;break;case"object":Ge=(0,D.Z)({},Ve);break;default:break}return Ge.icon!==!1&&(Ge.icon=Ge.icon||I.createElement(dt.Z,null)),Ge},[Ve]);return I.createElement(oe.Z,(0,D.Z)({itemHeight:20,ref:Ne,virtual:v},yt,{prefixCls:lt,className:L()((Pe={},(0,N.Z)(Pe,"".concat(lt,"-icon-hide"),!b),(0,N.Z)(Pe,"".concat(lt,"-block-node"),de),(0,N.Z)(Pe,"".concat(lt,"-unselectable"),!ot),(0,N.Z)(Pe,"".concat(lt,"-rtl"),Y==="rtl"),Pe),x),direction:Y,checkable:at&&I.createElement("span",{className:"".concat(lt,"-checkbox-inner")}),selectable:ot,switcherIcon:function(st){return(0,Pt.Z)(lt,E,Q,st)},draggable:it}),se)}),sn=O,It=f(85061),gt=f(28481),bn=f(86504),$n=f(91816),Wn=f(63258),pn=f(10225),Ot=f(1089),xt;(function($){$[$.None=0]="None",$[$.Start=1]="Start",$[$.End=2]="End"})(xt||(xt={}));function Zt($,Ne){function Pe(z){var P=z.key,Y=z.children;Ne(P,z)!==!1&&Zt(Y||[],Ne)}$.forEach(Pe)}function hn($){var Ne=$.treeData,Pe=$.expandedKeys,z=$.startKey,P=$.endKey,Y=[],v=xt.None;if(z&&z===P)return[z];if(!z||!P)return[];function u(x){return x===z||x===P}return Zt(Ne,function(x){if(v===xt.End)return!1;if(u(x)){if(Y.push(x),v===xt.None)v=xt.Start;else if(v===xt.Start)return v=xt.End,!1}else v===xt.Start&&Y.push(x);return Pe.includes(x)}),Y}function cn($,Ne){var Pe=(0,It.Z)(Ne),z=[];return Zt($,function(P,Y){var v=Pe.indexOf(P);return v!==-1&&(z.push(Y),Pe.splice(v,1)),!!Pe.length}),z}var _t=function($,Ne){var Pe={};for(var z in $)Object.prototype.hasOwnProperty.call($,z)&&Ne.indexOf(z)<0&&(Pe[z]=$[z]);if($!=null&&typeof Object.getOwnPropertySymbols=="function")for(var P=0,z=Object.getOwnPropertySymbols($);P=0||b.relatedTarget.className.indexOf("".concat(de,"-item"))>=0))&&_(v.getValidValue()))},v.go=function(b){var Q=v.state.goInputText;Q!==""&&(b.keyCode===gt.ENTER||b.type==="click")&&(v.setState({goInputText:""}),v.props.quickGo(v.getValidValue()))},v}return(0,Wt.Z)(Y,[{key:"getValidValue",value:function(){var u=this.state.goInputText;return!u||isNaN(u)?void 0:Number(u)}},{key:"getPageSizeOptions",value:function(){var u=this.props,x=u.pageSize,S=u.pageSizeOptions;return S.some(function(b){return b.toString()===x.toString()})?S:S.concat([x.toString()]).sort(function(b,Q){var E=isNaN(Number(b))?0:Number(b),_=isNaN(Number(Q))?0:Number(Q);return E-_})}},{key:"render",value:function(){var u=this,x=this.props,S=x.pageSize,b=x.locale,Q=x.rootPrefixCls,E=x.changeSize,_=x.quickGo,de=x.goButton,se=x.selectComponentClass,Oe=x.buildOptionText,at=x.selectPrefixCls,fe=x.disabled,ot=this.state.goInputText,Ve="".concat(Q,"-options"),ce=se,Dt=null,lt=null,yt=null;if(!E&&!_)return null;var it=this.getPageSizeOptions();if(E&&ce){var Ge=it.map(function(st,ft){return O.createElement(ce.Option,{key:ft,value:st.toString()},(Oe||u.buildOptionText)(st))});Dt=O.createElement(ce,{disabled:fe,prefixCls:at,showSearch:!1,className:"".concat(Ve,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(S||it[0]).toString(),onChange:this.changeSize,getPopupContainer:function(ft){return ft.parentNode},"aria-label":b.page_size,defaultOpen:!1},Ge)}return _&&(de&&(yt=typeof de=="boolean"?O.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:fe,className:"".concat(Ve,"-quick-jumper-button")},b.jump_to_confirm):O.createElement("span",{onClick:this.go,onKeyUp:this.go},de)),lt=O.createElement("div",{className:"".concat(Ve,"-quick-jumper")},b.jump_to,O.createElement("input",{disabled:fe,type:"text",value:ot,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur,"aria-label":b.page}),b.page,yt)),O.createElement("li",{className:"".concat(Ve)},Dt,lt)}}]),Y}(O.Component);bn.defaultProps={pageSizeOptions:["10","20","50","100"]};var $n=bn,Wn=f(81626);function pn(){}function Ot(z){var P=Number(z);return typeof P=="number"&&!isNaN(P)&&isFinite(P)&&Math.floor(P)===P}function xt(z,P,Y){return Y}function Zt(z,P,Y){var v=typeof z=="undefined"?P.pageSize:z;return Math.floor((Y.total-1)/v)+1}var hn=function(z){(0,Qt.Z)(Y,z);var P=(0,Pt.Z)(Y);function Y(v){var u;(0,jt.Z)(this,Y),u=P.call(this,v),u.getJumpPrevPage=function(){return Math.max(1,u.state.current-(u.props.showLessItems?3:5))},u.getJumpNextPage=function(){return Math.min(Zt(void 0,u.state,u.props),u.state.current+(u.props.showLessItems?3:5))},u.getItemIcon=function(E,_){var de=u.props.prefixCls,se=E||O.createElement("button",{type:"button","aria-label":_,className:"".concat(de,"-item-link")});return typeof E=="function"&&(se=O.createElement(E,(0,t.Z)({},u.props))),se},u.savePaginationNode=function(E){u.paginationNode=E},u.isValid=function(E){var _=u.props.total;return Ot(E)&&E!==u.state.current&&Ot(_)&&_>0},u.shouldDisplayQuickJumper=function(){var E=u.props,_=E.showQuickJumper,de=E.total,se=u.state.pageSize;return de<=se?!1:_},u.handleKeyDown=function(E){(E.keyCode===gt.ARROW_UP||E.keyCode===gt.ARROW_DOWN)&&E.preventDefault()},u.handleKeyUp=function(E){var _=u.getValidValue(E),de=u.state.currentInputValue;_!==de&&u.setState({currentInputValue:_}),E.keyCode===gt.ENTER?u.handleChange(_):E.keyCode===gt.ARROW_UP?u.handleChange(_-1):E.keyCode===gt.ARROW_DOWN&&u.handleChange(_+1)},u.handleBlur=function(E){var _=u.getValidValue(E);u.handleChange(_)},u.changePageSize=function(E){var _=u.state.current,de=Zt(E,u.state,u.props);_=_>de?de:_,de===0&&(_=u.state.current),typeof E=="number"&&("pageSize"in u.props||u.setState({pageSize:E}),"current"in u.props||u.setState({current:_,currentInputValue:_})),u.props.onShowSizeChange(_,E),"onChange"in u.props&&u.props.onChange&&u.props.onChange(_,E)},u.handleChange=function(E){var _=u.props,de=_.disabled,se=_.onChange,Oe=u.state,at=Oe.pageSize,fe=Oe.current,ot=Oe.currentInputValue;if(u.isValid(E)&&!de){var Ve=Zt(void 0,u.state,u.props),ce=E;return E>Ve?ce=Ve:E<1&&(ce=1),"current"in u.props||u.setState({current:ce}),ce!==ot&&u.setState({currentInputValue:ce}),se(ce,at),ce}return fe},u.prev=function(){u.hasPrev()&&u.handleChange(u.state.current-1)},u.next=function(){u.hasNext()&&u.handleChange(u.state.current+1)},u.jumpPrev=function(){u.handleChange(u.getJumpPrevPage())},u.jumpNext=function(){u.handleChange(u.getJumpNextPage())},u.hasPrev=function(){return u.state.current>1},u.hasNext=function(){return u.state.current2?de-2:0),Oe=2;Oe=S?Q=S:Q=Number(x),Q}},{key:"getShowSizeChanger",value:function(){var u=this.props,x=u.showSizeChanger,S=u.total,b=u.totalBoundaryShowSizeChanger;return typeof x!="undefined"?x:S>b}},{key:"renderPrev",value:function(u){var x=this.props,S=x.prevIcon,b=x.itemRender,Q=b(u,"prev",this.getItemIcon(S,"prev page")),E=!this.hasPrev();return(0,O.isValidElement)(Q)?(0,O.cloneElement)(Q,{disabled:E}):Q}},{key:"renderNext",value:function(u){var x=this.props,S=x.nextIcon,b=x.itemRender,Q=b(u,"next",this.getItemIcon(S,"next page")),E=!this.hasNext();return(0,O.isValidElement)(Q)?(0,O.cloneElement)(Q,{disabled:E}):Q}},{key:"render",value:function(){var u=this,x=this.props,S=x.prefixCls,b=x.className,Q=x.style,E=x.disabled,_=x.hideOnSinglePage,de=x.total,se=x.locale,Oe=x.showQuickJumper,at=x.showLessItems,fe=x.showTitle,ot=x.showTotal,Ve=x.simple,ce=x.itemRender,Dt=x.showPrevNextJumpers,lt=x.jumpPrevIcon,yt=x.jumpNextIcon,it=x.selectComponentClass,Ge=x.selectPrefixCls,st=x.pageSizeOptions,ft=this.state,Ze=ft.current,St=ft.pageSize,en=ft.currentInputValue;if(_===!0&&de<=St)return null;var He=Zt(void 0,this.state,this.props),$e=[],Tt=null,mt=null,gn=null,kn=null,vt=null,tn=Oe&&Oe.goButton,ht=at?1:2,nn=Ze-1>0?Ze-1:0,kt=Ze+1de?de:Ze*St]));if(Ve)return tn&&(typeof tn=="boolean"?vt=O.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},se.jump_to_confirm):vt=O.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},tn),vt=O.createElement("li",{title:fe?"".concat(se.jump_to).concat(Ze,"/").concat(He):null,className:"".concat(S,"-simple-pager")},vt)),O.createElement("ul",(0,N.Z)({className:I()(S,"".concat(S,"-simple"),(0,oe.Z)({},"".concat(S,"-disabled"),E),b),style:Q,ref:this.savePaginationNode},Kn),zt,O.createElement("li",{title:fe?se.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:I()("".concat(S,"-prev"),(0,oe.Z)({},"".concat(S,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},this.renderPrev(nn)),O.createElement("li",{title:fe?"".concat(Ze,"/").concat(He):null,className:"".concat(S,"-simple-pager")},O.createElement("input",{type:"text",value:en,disabled:E,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,onBlur:this.handleBlur,size:"3"}),O.createElement("span",{className:"".concat(S,"-slash")},"/"),He),O.createElement("li",{title:fe?se.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:I()("".concat(S,"-next"),(0,oe.Z)({},"".concat(S,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(kt)),vt);if(He<=3+ht*2){var Et={locale:se,rootPrefixCls:S,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:fe,itemRender:ce};He||$e.push(O.createElement(It,(0,N.Z)({},Et,{key:"noPager",page:1,className:"".concat(S,"-item-disabled")})));for(var xn=1;xn<=He;xn+=1){var Hn=Ze===xn;$e.push(O.createElement(It,(0,N.Z)({},Et,{key:xn,page:xn,active:Hn})))}}else{var Un=at?se.prev_3:se.prev_5,wr=at?se.next_3:se.next_5;Dt&&(Tt=O.createElement("li",{title:fe?Un:null,key:"prev",onClick:this.jumpPrev,tabIndex:"0",onKeyPress:this.runIfEnterJumpPrev,className:I()("".concat(S,"-jump-prev"),(0,oe.Z)({},"".concat(S,"-jump-prev-custom-icon"),!!lt))},ce(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(lt,"prev page"))),mt=O.createElement("li",{title:fe?wr:null,key:"next",tabIndex:"0",onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:I()("".concat(S,"-jump-next"),(0,oe.Z)({},"".concat(S,"-jump-next-custom-icon"),!!yt))},ce(this.getJumpNextPage(),"jump-next",this.getItemIcon(yt,"next page")))),kn=O.createElement(It,{locale:se,last:!0,rootPrefixCls:S,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:He,page:He,active:!1,showTitle:fe,itemRender:ce}),gn=O.createElement(It,{locale:se,rootPrefixCls:S,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:fe,itemRender:ce});var jn=Math.max(1,Ze-ht),Gn=Math.min(Ze+ht,He);Ze-1<=ht&&(Gn=1+ht*2),He-Ze<=ht&&(jn=He-ht*2);for(var yn=jn;yn<=Gn;yn+=1){var Qn=Ze===yn;$e.push(O.createElement(It,{locale:se,rootPrefixCls:S,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:yn,page:yn,active:Qn,showTitle:fe,itemRender:ce}))}Ze-1>=ht*2&&Ze!==1+2&&($e[0]=(0,O.cloneElement)($e[0],{className:"".concat(S,"-item-after-jump-prev")}),$e.unshift(Tt)),He-Ze>=ht*2&&Ze!==He-2&&($e[$e.length-1]=(0,O.cloneElement)($e[$e.length-1],{className:"".concat(S,"-item-before-jump-next")}),$e.push(mt)),jn!==1&&$e.unshift(gn),Gn!==He&&$e.push(kn)}var Jn=!this.hasPrev()||!He,Xn=!this.hasNext()||!He;return O.createElement("ul",(0,N.Z)({className:I()(S,b,(0,oe.Z)({},"".concat(S,"-disabled"),E)),style:Q,ref:this.savePaginationNode},Kn),zt,O.createElement("li",{title:fe?se.prev_page:null,onClick:this.prev,tabIndex:Jn?null:0,onKeyPress:this.runIfEnterPrev,className:I()("".concat(S,"-prev"),(0,oe.Z)({},"".concat(S,"-disabled"),Jn)),"aria-disabled":Jn},this.renderPrev(nn)),$e,O.createElement("li",{title:fe?se.next_page:null,onClick:this.next,tabIndex:Xn?null:0,onKeyPress:this.runIfEnterNext,className:I()("".concat(S,"-next"),(0,oe.Z)({},"".concat(S,"-disabled"),Xn)),"aria-disabled":Xn},this.renderNext(kt)),O.createElement($n,{disabled:E,locale:se,rootPrefixCls:S,selectComponentClass:it,selectPrefixCls:Ge,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:Ze,pageSize:St,pageSizeOptions:st,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:tn}))}}],[{key:"getDerivedStateFromProps",value:function(u,x){var S={};if("current"in u&&(S.current=u.current,u.current!==x.current&&(S.currentInputValue=S.current)),"pageSize"in u&&u.pageSize!==x.pageSize){var b=x.current,Q=Zt(u.pageSize,x,u);b=b>Q?Q:b,"current"in u||(S.current=b,S.currentInputValue=b),S.pageSize=u.pageSize}return S}}]),Y}(O.Component);hn.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:pn,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:pn,locale:Wn.Z,style:{},itemRender:xt,totalBoundaryShowSizeChanger:50};var cn=hn,_t=f(62906),Cn=f(53124),In=f(25378),On=f(42051),qt=f(34041),Tn=function(P){return O.createElement(qt.Z,(0,N.Z)({},P,{size:"small"}))},un=function(P){return O.createElement(qt.Z,(0,N.Z)({},P,{size:"middle"}))};Tn.Option=qt.Z.Option,un.Option=qt.Z.Option;var Vn=function(z,P){var Y={};for(var v in z)Object.prototype.hasOwnProperty.call(z,v)&&P.indexOf(v)<0&&(Y[v]=z[v]);if(z!=null&&typeof Object.getOwnPropertySymbols=="function")for(var u=0,v=Object.getOwnPropertySymbols(z);u=r}function x(e){return e&&(0,oe.Z)(e)==="object"&&!Array.isArray(e)&&!t.isValidElement(e)}function S(e){return typeof e=="string"?!0:(0,xt.Yr)(e)}var b=function(n){var r=n.ellipsis,o=n.rowType,a=n.children,l,c=r===!0?{showTitle:!0}:r;return c&&(c.showTitle||o==="header")&&(typeof a=="string"||typeof a=="number"?l=a.toString():t.isValidElement(a)&&typeof a.props.children=="string"&&(l=a.props.children)),l};function Q(e,n){var r,o,a,l=e.prefixCls,c=e.className,s=e.record,i=e.index,m=e.renderIndex,p=e.dataIndex,d=e.render,h=e.children,C=e.component,y=C===void 0?"td":C,w=e.colSpan,g=e.rowSpan,R=e.fixLeft,T=e.fixRight,V=e.firstFixLeft,ne=e.lastFixLeft,W=e.firstFixRight,ee=e.lastFixRight,Ce=e.appendNode,X=e.additionalProps,j=X===void 0?{}:X,ge=e.ellipsis,ve=e.align,k=e.rowType,re=e.isSticky,H=e.hovering,ae=e.onHover,U="".concat(l,"-cell"),A=t.useContext(Y),B=t.useContext(On),Ie=t.useContext(z),ct=Ie.allColumnsFixedLeft,_e=t.useMemo(function(){if(Cn(h))return[h];var K=cn(s,p),Z=K,he=void 0;if(d){var Ue=d(K,s,m);x(Ue)?(Z=Ue.children,he=Ue.props,A.renderWithProps=!0):Z=Ue}return[Z,he]},[A.renderWithProps?Math.random():0,h,p,A,s,d,m]),ke=(0,D.Z)(_e,2),We=ke[0],De=ke[1],ut=We;(0,oe.Z)(ut)==="object"&&!Array.isArray(ut)&&!t.isValidElement(ut)&&(ut=null),ge&&(ne||W)&&(ut=t.createElement("span",{className:"".concat(U,"-content")},ut));var Je=De||{},Xe=Je.colSpan,Me=Je.rowSpan,qe=Je.style,wt=Je.className,Le=(0,Ot.Z)(Je,v),ze=(r=Xe!==void 0?Xe:w)!==null&&r!==void 0?r:1,xe=(o=Me!==void 0?Me:g)!==null&&o!==void 0?o:1;if(ze===0||xe===0)return null;var Ee={},we=typeof R=="number"&&B,nt=typeof T=="number"&&B;we&&(Ee.position="sticky",Ee.left=R),nt&&(Ee.position="sticky",Ee.right=T);var Ye={};ve&&(Ye.textAlign=ve);var Ct=function(Z){var he;s&&ae(i,i+xe-1),j==null||(he=j.onMouseEnter)===null||he===void 0||he.call(j,Z)},pe=function(Z){var he;s&&ae(-1,-1),j==null||(he=j.onMouseLeave)===null||he===void 0||he.call(j,Z)},te=b({rowType:k,ellipsis:ge,children:We}),G=(0,L.Z)((0,L.Z)((0,L.Z)({title:te},Le),j),{},{colSpan:ze!==1?ze:null,rowSpan:xe!==1?xe:null,className:q()(U,c,(a={},(0,N.Z)(a,"".concat(U,"-fix-left"),we&&B),(0,N.Z)(a,"".concat(U,"-fix-left-first"),V&&B),(0,N.Z)(a,"".concat(U,"-fix-left-last"),ne&&B),(0,N.Z)(a,"".concat(U,"-fix-left-all"),ne&&ct&&B),(0,N.Z)(a,"".concat(U,"-fix-right"),nt&&B),(0,N.Z)(a,"".concat(U,"-fix-right-first"),W&&B),(0,N.Z)(a,"".concat(U,"-fix-right-last"),ee&&B),(0,N.Z)(a,"".concat(U,"-ellipsis"),ge),(0,N.Z)(a,"".concat(U,"-with-append"),Ce),(0,N.Z)(a,"".concat(U,"-fix-sticky"),(we||nt)&&re&&B),(0,N.Z)(a,"".concat(U,"-row-hover"),!De&&H),a),j.className,wt),style:(0,L.Z)((0,L.Z)((0,L.Z)((0,L.Z)({},j.style),Ye),Ee),qe),onMouseEnter:Ct,onMouseLeave:pe,ref:S(y)?n:null});return t.createElement(y,G,Ce,ut)}var E=t.forwardRef(Q);E.displayName="Cell";var _=["expanded","className","hovering"],de=t.memo(E,function(e,n){return n.shouldCellUpdate?_.every(function(r){return e[r]===n[r]})&&!n.shouldCellUpdate(n.record,e.record):O()(e,n)}),se=t.forwardRef(function(e,n){var r=e.index,o=e.additionalProps,a=o===void 0?{}:o,l=e.colSpan,c=e.rowSpan,s=a.colSpan,i=a.rowSpan,m=l!=null?l:s,p=c!=null?c:i,d=Vn(Ne,function(y){var w=u(r,p||1,y==null?void 0:y.startRow,y==null?void 0:y.endRow);return{onHover:y==null?void 0:y.onHover,hovering:w}}),h=d.onHover,C=d.hovering;return t.createElement(de,(0,M.Z)({},e,{colSpan:m,rowSpan:p,hovering:C,ref:n,onHover:h}))});se.displayName="WrappedCell";var Oe=se,at=t.createContext(null),fe=at;function ot(e,n,r,o,a){var l=r[e]||{},c=r[n]||{},s,i;l.fixed==="left"?s=o.left[e]:c.fixed==="right"&&(i=o.right[n]);var m=!1,p=!1,d=!1,h=!1,C=r[n+1],y=r[e-1];if(a==="rtl"){if(s!==void 0){var w=y&&y.fixed==="left";h=!w}else if(i!==void 0){var g=C&&C.fixed==="right";d=!g}}else if(s!==void 0){var R=C&&C.fixed==="left";m=!R}else if(i!==void 0){var T=y&&y.fixed==="right";p=!T}return{fixLeft:s,fixRight:i,lastFixLeft:m,firstFixRight:p,lastFixRight:d,firstFixLeft:h,isSticky:o.isSticky}}function Ve(e){var n=e.cells,r=e.stickyOffsets,o=e.flattenColumns,a=e.rowComponent,l=e.cellComponent,c=e.onHeaderRow,s=e.index,i=t.useContext(fe),m=i.prefixCls,p=i.direction,d;c&&(d=c(n.map(function(C){return C.column}),s));var h=_t(n.map(function(C){return C.column}));return t.createElement(a,d,n.map(function(C,y){var w=C.column,g=ot(C.colStart,C.colEnd,o,r,p),R;return w&&w.onHeaderCell&&(R=C.column.onHeaderCell(w)),t.createElement(Oe,(0,M.Z)({},C,{ellipsis:w.ellipsis,align:w.align,component:l,prefixCls:m,key:h[y]},g,{additionalProps:R,rowType:"header"}))}))}Ve.displayName="HeaderRow";var ce=Ve;function Dt(e){var n=[];function r(c,s){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;n[i]=n[i]||[];var m=s,p=c.filter(Boolean).map(function(d){var h={key:d.key,className:d.className||"",children:d.title,column:d,colStart:m},C=1,y=d.children;return y&&y.length>0&&(C=r(y,m,i+1).reduce(function(w,g){return w+g},0),h.hasSubColumns=!0),"colSpan"in d&&(C=d.colSpan),"rowSpan"in d&&(h.rowSpan=d.rowSpan),h.colSpan=C,h.colEnd=h.colStart+C-1,n[i].push(h),m+=C,C});return p}r(e,0);for(var o=n.length,a=function(s){n[s].forEach(function(i){!("rowSpan"in i)&&!i.hasSubColumns&&(i.rowSpan=o-s)})},l=0;l1?we-1:0),Ye=1;Ye0?[].concat((0,I.Z)(n),(0,I.Z)(Un(l).map(function(c){return(0,L.Z)({fixed:a},c)}))):[].concat((0,I.Z)(n),[(0,L.Z)((0,L.Z)({},r),{},{fixed:a})])},[])}function wr(e){for(var n=!0,r=0;r=0;l-=1){var c=e[l];if(a&&c.fixed!=="right")a=!1;else if(!a&&c.fixed==="right"){warning(!1,"Index ".concat(l+1," of `columns` missing `fixed='right'` prop."));break}}}function jn(e){return e.map(function(n){var r=n.fixed,o=(0,Ot.Z)(n,xn),a=r;return r==="left"?a="right":r==="right"&&(a="left"),(0,L.Z)({fixed:a},o)})}function Gn(e,n){var r=e.prefixCls,o=e.columns,a=e.children,l=e.expandable,c=e.expandedKeys,s=e.columnTitle,i=e.getRowKey,m=e.onTriggerExpand,p=e.expandIcon,d=e.rowExpandable,h=e.expandIconColumnIndex,C=e.direction,y=e.expandRowByClick,w=e.columnWidth,g=e.fixed,R=t.useMemo(function(){return o||Hn(a)},[o,a]),T=t.useMemo(function(){if(l){var W,ee=R.slice();if(!ee.includes(zt)){var Ce=h||0;Ce>=0&&ee.splice(Ce,0,zt)}var X=ee.indexOf(zt);ee=ee.filter(function(k,re){return k!==zt||re===X});var j=R[X],ge;(g==="left"||g)&&!h?ge="left":(g==="right"||g)&&h===R.length?ge="right":ge=j?j.fixed:null;var ve=(W={},(0,N.Z)(W,kt,{className:"".concat(r,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),(0,N.Z)(W,"title",s),(0,N.Z)(W,"fixed",ge),(0,N.Z)(W,"className","".concat(r,"-row-expand-icon-cell")),(0,N.Z)(W,"width",w),(0,N.Z)(W,"render",function(re,H,ae){var U=i(H,ae),A=c.has(U),B=d?d(H):!0,Ie=p({prefixCls:r,expanded:A,expandable:B,record:H,onExpand:m});return y?t.createElement("span",{onClick:function(_e){return _e.stopPropagation()}},Ie):Ie}),W);return ee.map(function(k){return k===zt?ve:k})}return R.filter(function(k){return k!==zt})},[l,R,i,c,p,C]),V=t.useMemo(function(){var W=T;return n&&(W=n(W)),W.length||(W=[{render:function(){return null}}]),W},[n,T,C]),ne=t.useMemo(function(){return C==="rtl"?jn(Un(V)):Un(V)},[V,C]);return[V,ne]}var yn=Gn;function Qn(e){var n=(0,t.useRef)(e),r=(0,t.useState)({}),o=(0,D.Z)(r,2),a=o[1],l=(0,t.useRef)(null),c=(0,t.useRef)([]);function s(i){c.current.push(i);var m=Promise.resolve();l.current=m,m.then(function(){if(l.current===m){var p=c.current,d=n.current;c.current=[],p.forEach(function(h){n.current=h(n.current)}),l.current=null,d!==n.current&&a({})}})}return(0,t.useEffect)(function(){return function(){l.current=null}},[]),[n.current,s]}function Jn(e){var n=(0,t.useRef)(e||null),r=(0,t.useRef)();function o(){window.clearTimeout(r.current)}function a(c){n.current=c,o(),r.current=window.setTimeout(function(){n.current=null,r.current=void 0},100)}function l(){return n.current}return(0,t.useEffect)(function(){return o},[]),[a,l]}function Xn(e,n,r){var o=(0,t.useMemo)(function(){for(var a=[],l=[],c=0,s=0,i=0;i=0;s-=1){var i=n[s],m=r&&r[s],p=m&&m[kt];if(i||p||c){var d=p||{},h=d.columnType,C=(0,Ot.Z)(d,Sn);a.unshift(t.createElement("col",(0,M.Z)({key:s,style:{width:i}},C))),c=!0}}return t.createElement("colgroup",null,a)}var br=ma;function pa(e){var n=e.className,r=e.children;return t.createElement("div",{className:n},r)}var Ir=pa,ha=t.createContext({}),Or=ha;function Ca(e){var n=e.className,r=e.index,o=e.children,a=e.colSpan,l=a===void 0?1:a,c=e.rowSpan,s=e.align,i=t.useContext(fe),m=i.prefixCls,p=i.direction,d=t.useContext(Or),h=d.scrollColumnIndex,C=d.stickyOffsets,y=d.flattenColumns,w=r+l-1,g=w+1===h?l+1:l,R=ot(r,r+g-1,y,C,p);return t.createElement(Oe,(0,M.Z)({className:n,index:r,component:"td",prefixCls:m,record:null,dataIndex:null,align:s,colSpan:g,rowSpan:c,render:function(){return o}},R))}var ga=["children"];function xa(e){var n=e.children,r=(0,Ot.Z)(e,ga);return t.createElement("tr",r,n)}function cr(e){var n=e.children;return n}cr.Row=xa,cr.Cell=Ca;var Tr=cr;function ya(e){var n=e.children,r=e.stickyOffsets,o=e.flattenColumns,a=t.useContext(fe),l=a.prefixCls,c=o.length-1,s=o[c],i=t.useMemo(function(){return{stickyOffsets:r,flattenColumns:o,scrollColumnIndex:(s==null?void 0:s.scrollbar)?c:null}},[s,o,c,r]);return t.createElement(Or.Provider,{value:i},t.createElement("tfoot",{className:"".concat(l,"-summary")},n))}var qn=ya,kr=Tr;function Sa(e){var n,r=e.prefixCls,o=e.record,a=e.onExpand,l=e.expanded,c=e.expandable,s="".concat(r,"-row-expand-icon");if(!c)return t.createElement("span",{className:q()(s,"".concat(r,"-row-spaced"))});var i=function(p){a(o,p),p.stopPropagation()};return t.createElement("span",{className:q()(s,(n={},(0,N.Z)(n,"".concat(r,"-row-expanded"),l),(0,N.Z)(n,"".concat(r,"-row-collapsed"),!l),n)),onClick:i})}function Ea(e,n,r){var o=[];function a(l){(l||[]).forEach(function(c,s){o.push(n(c,s)),a(c[r])})}return a(e),o}var er=f(64019),Kr=f(27678),Ra=function(n,r){var o,a,l=n.scrollBodyRef,c=n.onScroll,s=n.offsetScroll,i=n.container,m=t.useContext(fe),p=m.prefixCls,d=((o=l.current)===null||o===void 0?void 0:o.scrollWidth)||0,h=((a=l.current)===null||a===void 0?void 0:a.clientWidth)||0,C=d&&h*(h/d),y=t.useRef(),w=Qn({scrollLeft:0,isHiddenScrollBar:!1}),g=(0,D.Z)(w,2),R=g[0],T=g[1],V=t.useRef({delta:0,x:0}),ne=t.useState(!1),W=(0,D.Z)(ne,2),ee=W[0],Ce=W[1],X=function(){Ce(!1)},j=function(H){H.persist(),V.current.delta=H.pageX-R.scrollLeft,V.current.x=0,Ce(!0),H.preventDefault()},ge=function(H){var ae,U=H||((ae=window)===null||ae===void 0?void 0:ae.event),A=U.buttons;if(!ee||A===0){ee&&Ce(!1);return}var B=V.current.x+H.pageX-V.current.x-V.current.delta;B<=0&&(B=0),B+C>=h&&(B=h-C),c({scrollLeft:B/h*(d+2)}),V.current.x=H.pageX},ve=function(){if(!!l.current){var H=(0,Kr.os)(l.current).top,ae=H+l.current.offsetHeight,U=i===window?document.documentElement.scrollTop+window.innerHeight:(0,Kr.os)(i).top+i.clientHeight;ae-(0,gt.Z)()<=U||H>=U-s?T(function(A){return(0,L.Z)((0,L.Z)({},A),{},{isHiddenScrollBar:!0})}):T(function(A){return(0,L.Z)((0,L.Z)({},A),{},{isHiddenScrollBar:!1})})}},k=function(H){T(function(ae){return(0,L.Z)((0,L.Z)({},ae),{},{scrollLeft:H/d*h||0})})};return t.useImperativeHandle(r,function(){return{setScrollLeft:k}}),t.useEffect(function(){var re=(0,er.Z)(document.body,"mouseup",X,!1),H=(0,er.Z)(document.body,"mousemove",ge,!1);return ve(),function(){re.remove(),H.remove()}},[C,ee]),t.useEffect(function(){var re=(0,er.Z)(i,"scroll",ve,!1),H=(0,er.Z)(window,"resize",ve,!1);return function(){re.remove(),H.remove()}},[i]),t.useEffect(function(){R.isHiddenScrollBar||T(function(re){var H=l.current;return H?(0,L.Z)((0,L.Z)({},re),{},{scrollLeft:H.scrollLeft/H.scrollWidth*H.clientWidth}):re})},[R.isHiddenScrollBar]),d<=h||!C||R.isHiddenScrollBar?null:t.createElement("div",{style:{height:(0,gt.Z)(),width:h,bottom:s},className:"".concat(p,"-sticky-scroll")},t.createElement("div",{onMouseDown:j,ref:y,className:q()("".concat(p,"-sticky-scroll-bar"),(0,N.Z)({},"".concat(p,"-sticky-scroll-bar-active"),ee)),style:{width:"".concat(C,"px"),transform:"translate3d(".concat(R.scrollLeft,"px, 0, 0)")}}))},Na=t.forwardRef(Ra),Pa=f(98924),Mr=(0,Pa.Z)()?window:null;function Za(e,n){var r=(0,oe.Z)(e)==="object"?e:{},o=r.offsetHeader,a=o===void 0?0:o,l=r.offsetSummary,c=l===void 0?0:l,s=r.offsetScroll,i=s===void 0?0:s,m=r.getContainer,p=m===void 0?function(){return Mr}:m,d=p()||Mr;return t.useMemo(function(){var h=!!e;return{isSticky:h,stickyClassName:h?"".concat(n,"-sticky-holder"):"",offsetHeader:a,offsetSummary:c,offsetScroll:i,container:d}},[i,a,c,n,d])}var wa=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function ba(e,n){return(0,t.useMemo)(function(){for(var r=[],o=0;o=0})},[l]),ge=l[l.length-1],ve={fixed:ge?ge.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(V,"-cell-scrollbar")}}},k=(0,t.useMemo)(function(){return ee?[].concat((0,I.Z)(a),[ve]):a},[ee,a]),re=(0,t.useMemo)(function(){return ee?[].concat((0,I.Z)(l),[ve]):l},[ee,l]),H=(0,t.useMemo)(function(){var U=i.right,A=i.left;return(0,L.Z)((0,L.Z)({},i),{},{left:m==="rtl"?[].concat((0,I.Z)(A.map(function(B){return B+ee})),[0]):A,right:m==="rtl"?U:[].concat((0,I.Z)(U.map(function(B){return B+ee})),[0]),isSticky:W})},[ee,i,W]),ae=ba(c,s);return t.createElement("div",{style:(0,L.Z)({overflow:"hidden"},W?{top:d,bottom:h}:{}),ref:X,className:q()(r,(0,N.Z)({},C,!!C))},t.createElement("table",{style:{tableLayout:"fixed",visibility:o||ae?null:"hidden"}},(!o||!w||j)&&t.createElement(br,{colWidths:ae?[].concat((0,I.Z)(ae),[ee]):[],columCount:s+1,columns:re}),g((0,L.Z)((0,L.Z)({},R),{},{stickyOffsets:H,columns:k,flattenColumns:re}))))});Lr.displayName="FixedHolder";var Dr=Lr,Ia=[],Oa={},tr="rc-table-internal-hook",Ta=t.memo(function(e){var n=e.children;return n},function(e,n){return O()(e.props,n.props)?e.pingLeft!==n.pingLeft||e.pingRight!==n.pingRight:!1});function Mn(e){var n,r=e.prefixCls,o=e.className,a=e.rowClassName,l=e.style,c=e.data,s=e.rowKey,i=e.scroll,m=e.tableLayout,p=e.direction,d=e.title,h=e.footer,C=e.summary,y=e.id,w=e.showHeader,g=e.components,R=e.emptyText,T=e.onRow,V=e.onHeaderRow,ne=e.internalHooks,W=e.transformColumns,ee=e.internalRefs,Ce=e.sticky,X=c||Ia,j=!!X.length,ge=t.useCallback(function(ie,Se){return cn(g||{},ie)||Se},[g]),ve=t.useMemo(function(){return typeof s=="function"?s:function(ie){var Se=ie&&ie[s];return Se}},[s]),k=Kn(e),re=k.expandIcon,H=k.expandedRowKeys,ae=k.defaultExpandedRowKeys,U=k.defaultExpandAllRows,A=k.expandedRowRender,B=k.columnTitle,Ie=k.onExpand,ct=k.onExpandedRowsChange,_e=k.expandRowByClick,ke=k.rowExpandable,We=k.expandIconColumnIndex,De=k.expandedRowClassName,ut=k.childrenColumnName,Je=k.indentSize,Xe=re||Sa,Me=ut||"children",qe=t.useMemo(function(){return A?"row":e.expandable&&ne===tr&&e.expandable.__PARENT_RENDER_ICON__||X.some(function(ie){return ie&&(0,oe.Z)(ie)==="object"&&ie[Me]})?"nest":!1},[!!A,X]),wt=t.useState(function(){return ae||(U?Ea(X,ve,Me):[])}),Le=(0,D.Z)(wt,2),ze=Le[0],xe=Le[1],Ee=t.useMemo(function(){return new Set(H||ze||[])},[H,ze]),we=t.useCallback(function(ie){var Se=ve(ie,X.indexOf(ie)),rt,$t=Ee.has(Se);$t?(Ee.delete(Se),rt=(0,I.Z)(Ee)):rt=[].concat((0,I.Z)(Ee),[Se]),xe(rt),Ie&&Ie(!$t,ie),ct&&ct(rt)},[ve,Ee,X,Ie,ct]),nt=t.useState(0),Ye=(0,D.Z)(nt,2),Ct=Ye[0],pe=Ye[1],te=yn((0,L.Z)((0,L.Z)((0,L.Z)({},e),k),{},{expandable:!!A,columnTitle:B,expandedKeys:Ee,getRowKey:ve,onTriggerExpand:we,expandIcon:Xe,expandIconColumnIndex:We,direction:p}),ne===tr?W:null),G=(0,D.Z)(te,2),K=G[0],Z=G[1],he=t.useMemo(function(){return{columns:K,flattenColumns:Z}},[K,Z]),Ue=t.useRef(),et=t.useRef(),Qe=t.useRef(),ye=t.useRef(),J=t.useRef(),Re=t.useState(!1),Fe=(0,D.Z)(Re,2),Kt=Fe[0],Gt=Fe[1],Ft=t.useState(!1),En=(0,D.Z)(Ft,2),Rn=En[0],Mt=En[1],Lt=Qn(new Map),zn=(0,D.Z)(Lt,2),Nn=zn[0],At=zn[1],fn=_t(Z),Vt=fn.map(function(ie){return Nn.get(ie)}),Fn=t.useMemo(function(){return Vt},[Vt.join("_")]),le=_n(Fn,Z.length,p),F=i&&Cn(i.y),Ke=i&&Cn(i.x)||Boolean(k.fixed),be=Ke&&Z.some(function(ie){var Se=ie.fixed;return Se}),tt=t.useRef(),Te=Za(Ce,r),Ae=Te.isSticky,Jt=Te.offsetHeader,vn=Te.offsetSummary,Pn=Te.offsetScroll,An=Te.stickyClassName,Xt=Te.container,pt=C==null?void 0:C(X),Ht=(F||Ae)&&t.isValidElement(pt)&&pt.type===Tr&&pt.props.fixed,Ut,Rt,an;F&&(Rt={overflowY:"scroll",maxHeight:i.y}),Ke&&(Ut={overflowX:"auto"},F||(Rt={overflowY:"hidden"}),an={width:(i==null?void 0:i.x)===!0?"auto":i==null?void 0:i.x,minWidth:"100%"});var on=t.useCallback(function(ie,Se){(0,jt.Z)(Ue.current)&&At(function(rt){if(rt.get(ie)!==Se){var $t=new Map(rt);return $t.set(ie,Se),$t}return rt})},[]),Zn=Jn(null),ln=(0,D.Z)(Zn,2),wn=ln[0],ue=ln[1];function me(ie,Se){!Se||(typeof Se=="function"?Se(ie):Se.scrollLeft!==ie&&(Se.scrollLeft=ie))}var Be=function(Se){var rt=Se.currentTarget,$t=Se.scrollLeft,Uo=p==="rtl",mn=typeof $t=="number"?$t:rt.scrollLeft,va=rt||Oa;if(!ue()||ue()===va){var Nr;wn(va),me(mn,et.current),me(mn,Qe.current),me(mn,J.current),me(mn,(Nr=tt.current)===null||Nr===void 0?void 0:Nr.setScrollLeft)}if(rt){var Pr=rt.scrollWidth,Zr=rt.clientWidth;if(Pr===Zr){Gt(!1),Mt(!1);return}Uo?(Gt(-mn0)):(Gt(mn>0),Mt(mn1&&arguments[1]!==void 0?arguments[1]:{},r=n.getContainer,o=r===void 0?function(){return window}:r,a=n.callback,l=n.duration,c=l===void 0?450:l,s=o(),i=$a(s,!0),m=Date.now(),p=function d(){var h=Date.now(),C=h-m,y=Ba(C>c?c:C,i,e,c);dr(s)?s.scrollTo(window.pageXOffset,y):s instanceof Document||s.constructor.name==="HTMLDocument"?s.documentElement.scrollTop=y:s.scrollTop=y,C0&&arguments[0]!==void 0?arguments[0]:{confirm:!1,closeDropdown:!1},Re=J.confirm,Fe=J.closeDropdown;Re&&Le([]),Fe&&k(!1),qe(""),B(W?(ee||[]).map(function(Kt){return String(Kt)}):[])},Ee=function(){var J=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0},Re=J.closeDropdown;Re&&k(!1),Le(A())},we=function(J){J&&H!==void 0&&B(H||[]),k(J),!J&&!a.filterDropdown&&ze()},nt=q()((0,N.Z)({},"".concat(l,"-menu-without-submenu"),!co(a.filters||[]))),Ye=function(J){if(J.target.checked){var Re=Dn(a==null?void 0:a.filters).map(function(Fe){return String(Fe)});B(Re)}else B([])},Ct=function ye(J){var Re=J.filters;return(Re||[]).map(function(Fe,Kt){var Gt=String(Fe.value),Ft={title:Fe.text,key:Fe.value!==void 0?Gt:Kt};return Fe.children&&(Ft.children=ye({filters:Fe.children})),Ft})},pe=function ye(J){var Re;return(0,M.Z)((0,M.Z)({},J),{text:J.title,value:J.key,children:((Re=J.children)===null||Re===void 0?void 0:Re.map(function(Fe){return ye(Fe)}))||[]})},te;if(typeof a.filterDropdown=="function")te=a.filterDropdown({prefixCls:"".concat(l,"-custom"),setSelectedKeys:function(J){return Ie({selectedKeys:J})},selectedKeys:A(),confirm:Ee,clearFilters:xe,filters:a.filters,visible:re,close:function(){k(!1)}});else if(a.filterDropdown)te=a.filterDropdown;else{var G=A()||[],K=function(){return(a.filters||[]).length===0?t.createElement(Wr.Z,{image:Wr.Z.PRESENTED_IMAGE_SIMPLE,description:y.filterEmptyText,imageStyle:{height:24},style:{margin:0,padding:"16px 0"}}):m==="tree"?t.createElement(t.Fragment,null,t.createElement(Hr,{filterSearch:d,value:Me,onChange:wt,tablePrefixCls:r,locale:y}),t.createElement("div",{className:"".concat(r,"-filter-dropdown-tree")},s?t.createElement(ar.Z,{checked:G.length===Dn(a.filters).length,indeterminate:G.length>0&&G.length0?l:e}),h=Math.ceil((l||e)/d.pageSize);d.current>h&&(d.current=h||1);var C=function(g,R){p({current:g!=null?g:1,pageSize:R||d.pageSize})},y=function(g,R){var T;n&&((T=n.onChange)===null||T===void 0||T.call(n,g,R)),C(g,R),r(g,R||(d==null?void 0:d.pageSize))};return n===!1?[{},function(){}]:[(0,M.Z)((0,M.Z)({},d),{onChange:y}),C]}var yo=f(99809),So=f(57254),_r=f(10225),vr=f(17341),Eo=f(1089),Ro=f(21770),dn={},mr="SELECT_ALL",pr="SELECT_INVERT",hr="SELECT_NONE",qr=[];function ea(e,n){var r=[];return(e||[]).forEach(function(o){r.push(o),o&&(0,oe.Z)(o)==="object"&&n in o&&(r=[].concat((0,I.Z)(r),(0,I.Z)(ea(o[n],n))))}),r}function No(e,n){var r=e||{},o=r.preserveSelectedRowKeys,a=r.selectedRowKeys,l=r.defaultSelectedRowKeys,c=r.getCheckboxProps,s=r.onChange,i=r.onSelect,m=r.onSelectAll,p=r.onSelectInvert,d=r.onSelectNone,h=r.onSelectMultiple,C=r.columnWidth,y=r.type,w=r.selections,g=r.fixed,R=r.renderCell,T=r.hideSelectAll,V=r.checkStrictly,ne=V===void 0?!0:V,W=n.prefixCls,ee=n.data,Ce=n.pageData,X=n.getRecordByKey,j=n.getRowKey,ge=n.expandType,ve=n.childrenColumnName,k=n.locale,re=n.getPopupContainer,H=(0,Ro.Z)(a||l||qr,{value:a}),ae=(0,D.Z)(H,2),U=ae[0],A=ae[1],B=t.useRef(new Map),Ie=(0,t.useCallback)(function(pe){if(o){var te=new Map;pe.forEach(function(G){var K=X(G);!K&&B.current.has(G)&&(K=B.current.get(G)),te.set(G,K)}),B.current=te}},[X,o]);t.useEffect(function(){Ie(U)},[U]);var ct=(0,t.useMemo)(function(){return ne?{keyEntities:null}:(0,Eo.I8)(ee,{externalGetKey:j,childrenPropName:ve})},[ee,j,ne,ve]),_e=ct.keyEntities,ke=(0,t.useMemo)(function(){return ea(Ce,ve)},[Ce,ve]),We=(0,t.useMemo)(function(){var pe=new Map;return ke.forEach(function(te,G){var K=j(te,G),Z=(c?c(te):null)||{};pe.set(K,Z)}),pe},[ke,j,c]),De=(0,t.useCallback)(function(pe){var te;return!!((te=We.get(j(pe)))===null||te===void 0?void 0:te.disabled)},[We,j]),ut=(0,t.useMemo)(function(){if(ne)return[U||[],[]];var pe=(0,vr.S)(U,!0,_e,De),te=pe.checkedKeys,G=pe.halfCheckedKeys;return[te||[],G]},[U,ne,_e,De]),Je=(0,D.Z)(ut,2),Xe=Je[0],Me=Je[1],qe=(0,t.useMemo)(function(){var pe=y==="radio"?Xe.slice(0,1):Xe;return new Set(pe)},[Xe,y]),wt=(0,t.useMemo)(function(){return y==="radio"?new Set:new Set(Me)},[Me,y]),Le=(0,t.useState)(null),ze=(0,D.Z)(Le,2),xe=ze[0],Ee=ze[1];t.useEffect(function(){e||A(qr)},[!!e]);var we=(0,t.useCallback)(function(pe,te){var G,K;Ie(pe),o?(G=pe,K=pe.map(function(Z){return B.current.get(Z)})):(G=[],K=[],pe.forEach(function(Z){var he=X(Z);he!==void 0&&(G.push(Z),K.push(he))})),A(G),s==null||s(G,K,{type:te})},[A,X,s,o]),nt=(0,t.useCallback)(function(pe,te,G,K){if(i){var Z=G.map(function(he){return X(he)});i(X(pe),te,Z,K)}we(G,"single")},[i,X,we]),Ye=(0,t.useMemo)(function(){if(!w||T)return null;var pe=w===!0?[mr,pr,hr]:w;return pe.map(function(te){return te===mr?{key:"all",text:k.selectionAll,onSelect:function(){we(ee.map(function(K,Z){return j(K,Z)}).filter(function(K){var Z=We.get(K);return!(Z==null?void 0:Z.disabled)||qe.has(K)}),"all")}}:te===pr?{key:"invert",text:k.selectInvert,onSelect:function(){var K=new Set(qe);Ce.forEach(function(he,Ue){var et=j(he,Ue),Qe=We.get(et);(Qe==null?void 0:Qe.disabled)||(K.has(et)?K.delete(et):K.add(et))});var Z=Array.from(K);p&&p(Z),we(Z,"invert")}}:te===hr?{key:"none",text:k.selectNone,onSelect:function(){d==null||d(),we(Array.from(qe).filter(function(K){var Z=We.get(K);return Z==null?void 0:Z.disabled}),"none")}}:te}).map(function(te){return(0,M.Z)((0,M.Z)({},te),{onSelect:function(){for(var K,Z,he=arguments.length,Ue=new Array(he),et=0;et2&&arguments[2]!==void 0?arguments[2]:!1,je=(0,M.Z)((0,M.Z)({},K),me);Bt&&(K.resetPagination(),je.pagination.current&&(je.pagination.current=1),p&&p.onChange&&p.onChange(1,je.pagination.pageSize)),ge&&ge.scrollToFirstRowOnChange!==!1&&Ye.body.current&&Wa(0,{getContainer:function(){return Ye.body.current}}),T==null||T(je.pagination,je.filters,je.sorter,{currentDataSource:Yr(xr(Me,je.sorterStates,we),je.filterStates),action:Be})},he=function(me,Be){Z({sorter:me,sorterStates:Be},"sort",!1)},Ue=Io({prefixCls:Le,mergedColumns:B,onSorterChange:he,sortDirections:ve||["ascend","descend"],tableLocale:Xe,showSorterTooltip:H}),et=(0,D.Z)(Ue,4),Qe=et[0],ye=et[1],J=et[2],Re=et[3],Fe=t.useMemo(function(){return xr(Me,ye,we)},[Me,ye]);K.sorter=Re(),K.sorterStates=ye;var Kt=function(me,Be){Z({filters:me,filterStates:Be},"filter",!0)},Gt=mo({prefixCls:Le,locale:Xe,dropdownPrefixCls:ze,mergedColumns:B,onFilterChange:Kt,getPopupContainer:V}),Ft=(0,D.Z)(Gt,3),En=Ft[0],Rn=Ft[1],Mt=Ft[2],Lt=Yr(Fe,Rn);K.filters=Mt,K.filterStates=Rn;var zn=t.useMemo(function(){var ue={};return Object.keys(Mt).forEach(function(me){Mt[me]!==null&&(ue[me]=Mt[me])}),(0,M.Z)((0,M.Z)({},J),{filters:ue})},[J,Mt]),Nn=Oo(zn),At=(0,D.Z)(Nn,1),fn=At[0],Vt=function(me,Be){Z({pagination:(0,M.Z)((0,M.Z)({},K.pagination),{current:me,pageSize:Be})},"paginate")},Fn=xo(Lt.length,p,Vt),le=(0,D.Z)(Fn,2),F=le[0],Ke=le[1];K.pagination=p===!1?{}:Co(p,F),K.resetPagination=Ke;var be=t.useMemo(function(){if(p===!1||!F.pageSize)return Lt;var ue=F.current,me=ue===void 0?1:ue,Be=F.total,Bt=F.pageSize,je=Bt===void 0?Qr:Bt;return Lt.lengthje?Lt.slice((me-1)*je,me*je):Lt:Lt.slice((me-1)*je,me*je)},[!!p,Lt,F&&F.current,F&&F.pageSize,F&&F.total]),tt=No(d,{prefixCls:Le,data:Lt,pageData:be,getRowKey:Ct,getRecordByKey:G,expandType:nt,childrenColumnName:we,locale:Xe,getPopupContainer:V}),Te=(0,D.Z)(tt,2),Ae=Te[0],Jt=Te[1],vn=function(me,Be,Bt){var je;return typeof y=="function"?je=q()(y(me,Be,Bt)):je=q()(y),q()((0,N.Z)({},"".concat(Le,"-row-selected"),Jt.has(Ct(me,Be))),je)};xe.__PARENT_RENDER_ICON__=xe.expandIcon,xe.expandIcon=xe.expandIcon||W||Ja(Xe),nt==="nest"&&xe.expandIconColumnIndex===void 0?xe.expandIconColumnIndex=d?1:0:xe.expandIconColumnIndex>0&&d&&(xe.expandIconColumnIndex-=1),typeof xe.indentSize!="number"&&(xe.indentSize=typeof j=="number"?j:15);var Pn=t.useCallback(function(ue){return fn(Ae(En(Qe(ue))))},[Qe,En,Ae]),An,Xt;if(p!==!1&&(F==null?void 0:F.total)){var pt;F.size?pt=F.size:pt=Je==="small"||Je==="middle"?"small":void 0;var Ht=function(me){return t.createElement(Fa.Z,(0,M.Z)({},F,{className:q()("".concat(Le,"-pagination ").concat(Le,"-pagination-").concat(me),F.className),size:pt}))},Ut=ut==="rtl"?"left":"right",Rt=F.position;if(Rt!==null&&Array.isArray(Rt)){var an=Rt.find(function(ue){return ue.includes("top")}),on=Rt.find(function(ue){return ue.includes("bottom")}),Zn=Rt.every(function(ue){return"".concat(ue)==="none"});!an&&!on&&!Zn&&(Xt=Ht(Ut)),an&&(An=Ht(an.toLowerCase().replace("top",""))),on&&(Xt=Ht(on.toLowerCase().replace("bottom","")))}else Xt=Ht(Ut)}var ln;typeof ne=="boolean"?ln={spinning:ne}:(0,oe.Z)(ne)==="object"&&(ln=(0,M.Z)({spinning:!0},ne));var wn=q()("".concat(Le,"-wrapper"),(0,N.Z)({},"".concat(Le,"-wrapper-rtl"),ut==="rtl"),a);return t.createElement("div",{ref:n,className:wn,style:l},t.createElement(Aa.Z,(0,M.Z)({spinning:!1},ln),An,t.createElement(zr,(0,M.Z)({},Ie,{columns:B,direction:ut,expandable:xe,prefixCls:Le,className:q()((r={},(0,N.Z)(r,"".concat(Le,"-middle"),Je==="middle"),(0,N.Z)(r,"".concat(Le,"-small"),Je==="small"),(0,N.Z)(r,"".concat(Le,"-bordered"),s),(0,N.Z)(r,"".concat(Le,"-empty"),Me.length===0),r)),data:be,rowKey:Ct,rowClassName:vn,emptyText:k&&k.emptyText||(De||Ma.Z)("Table"),internalHooks:tr,internalRefs:Ye,transformColumns:Pn})),Xt))}var Ko=t.forwardRef(ko),rn=Ko;rn.SELECTION_COLUMN=dn,rn.EXPAND_COLUMN=zr.EXPAND_COLUMN,rn.SELECTION_ALL=mr,rn.SELECTION_INVERT=pr,rn.SELECTION_NONE=hr,rn.Column=Ha,rn.ColumnGroup=ja,rn.Summary=kr;var Mo=rn,Lo=Mo},66456:function(Yt,bt,f){"use strict";var oe=f(38663),N=f.n(oe),M=f(31242),D=f.n(M),dt=f(57663),q=f(63185),L=f(59250),I=f(13254),t=f(47673),jt=f(14781),Wt=f(88983),Qt=f(20228),Pt=f(22385),O=f(32157)},7573:function(Yt,bt,f){"use strict";f.d(bt,{Z:function(){return Vn}});var oe=f(83179),N=f(96156),M=f(90484),D=f(22122),dt=f(80766),q=f(94184),L=f.n(q),I=f(67294),t=f(53124),jt=f(33603),Wt=4;function Qt($){var Ne,Pe=$.dropPosition,z=$.dropLevelOffset,P=$.prefixCls,Y=$.indent,v=$.direction,u=v===void 0?"ltr":v,x=u==="ltr"?"left":"right",S=u==="ltr"?"right":"left",b=(Ne={},(0,N.Z)(Ne,x,-z*Y+Wt),(0,N.Z)(Ne,S,0),Ne);switch(Pe){case-1:b.top=-3;break;case 1:b.bottom=-3;break;default:b.bottom=-3,b[x]=Y+Wt;break}return I.createElement("div",{style:b,className:"".concat(P,"-drop-indicator")})}var Pt=f(61639),O=I.forwardRef(function($,Ne){var Pe,z=I.useContext(t.E_),P=z.getPrefixCls,Y=z.direction,v=z.virtual,u=$.prefixCls,x=$.className,S=$.showIcon,b=S===void 0?!1:S,Q=$.showLine,E=$.switcherIcon,_=$.blockNode,de=_===void 0?!1:_,se=$.children,Oe=$.checkable,at=Oe===void 0?!1:Oe,fe=$.selectable,ot=fe===void 0?!0:fe,Ve=$.draggable,ce=$.motion,Dt=ce===void 0?(0,D.Z)((0,D.Z)({},jt.ZP),{motionAppear:!1}):ce,lt=P("tree",u),yt=(0,D.Z)((0,D.Z)({},$),{checkable:at,selectable:ot,showIcon:b,motion:Dt,blockNode:de,showLine:Boolean(Q),dropIndicatorRender:Qt}),it=I.useMemo(function(){if(!Ve)return!1;var Ge={};switch((0,M.Z)(Ve)){case"function":Ge.nodeDraggable=Ve;break;case"object":Ge=(0,D.Z)({},Ve);break;default:break}return Ge.icon!==!1&&(Ge.icon=Ge.icon||I.createElement(dt.Z,null)),Ge},[Ve]);return I.createElement(oe.Z,(0,D.Z)({itemHeight:20,ref:Ne,virtual:v},yt,{prefixCls:lt,className:L()((Pe={},(0,N.Z)(Pe,"".concat(lt,"-icon-hide"),!b),(0,N.Z)(Pe,"".concat(lt,"-block-node"),de),(0,N.Z)(Pe,"".concat(lt,"-unselectable"),!ot),(0,N.Z)(Pe,"".concat(lt,"-rtl"),Y==="rtl"),Pe),x),direction:Y,checkable:at&&I.createElement("span",{className:"".concat(lt,"-checkbox-inner")}),selectable:ot,switcherIcon:function(st){return(0,Pt.Z)(lt,E,Q,st)},draggable:it}),se)}),sn=O,It=f(85061),gt=f(28481),bn=f(86504),$n=f(91816),Wn=f(63258),pn=f(10225),Ot=f(1089),xt;(function($){$[$.None=0]="None",$[$.Start=1]="Start",$[$.End=2]="End"})(xt||(xt={}));function Zt($,Ne){function Pe(z){var P=z.key,Y=z.children;Ne(P,z)!==!1&&Zt(Y||[],Ne)}$.forEach(Pe)}function hn($){var Ne=$.treeData,Pe=$.expandedKeys,z=$.startKey,P=$.endKey,Y=[],v=xt.None;if(z&&z===P)return[z];if(!z||!P)return[];function u(x){return x===z||x===P}return Zt(Ne,function(x){if(v===xt.End)return!1;if(u(x)){if(Y.push(x),v===xt.None)v=xt.Start;else if(v===xt.Start)return v=xt.End,!1}else v===xt.Start&&Y.push(x);return Pe.includes(x)}),Y}function cn($,Ne){var Pe=(0,It.Z)(Ne),z=[];return Zt($,function(P,Y){var v=Pe.indexOf(P);return v!==-1&&(z.push(Y),Pe.splice(v,1)),!!Pe.length}),z}var _t=function($,Ne){var Pe={};for(var z in $)Object.prototype.hasOwnProperty.call($,z)&&Ne.indexOf(z)<0&&(Pe[z]=$[z]);if($!=null&&typeof Object.getOwnPropertySymbols=="function")for(var P=0,z=Object.getOwnPropertySymbols($);PS?(P=h,I.current="x"):(P=d,I.current="y"),a(-P,-P)&&v.preventDefault()}var D=(0,t.useRef)(null);D.current={onTouchStart:x,onTouchMove:W,onTouchEnd:w,onWheel:T},t.useEffect(function(){function v(p){D.current.onTouchStart(p)}function h(p){D.current.onTouchMove(p)}function d(p){D.current.onTouchEnd(p)}function P(p){D.current.onWheel(p)}return document.addEventListener("touchmove",h,{passive:!1}),document.addEventListener("touchend",d,{passive:!1}),e.current.addEventListener("touchstart",v,{passive:!1}),e.current.addEventListener("wheel",P),function(){document.removeEventListener("touchmove",h),document.removeEventListener("touchend",d)}},[])}var Bt=f(8410);function Qe(e){var a=(0,t.useState)(0),o=(0,k.Z)(a,2),n=o[0],r=o[1],i=(0,t.useRef)(0),l=(0,t.useRef)();return l.current=e,(0,Bt.o)(function(){var s;(s=l.current)===null||s===void 0||s.call(l)},[n]),function(){i.current===n&&(i.current+=1,r(i.current))}}function wt(e){var a=(0,t.useRef)([]),o=(0,t.useState)({}),n=(0,k.Z)(o,2),r=n[1],i=(0,t.useRef)(typeof e=="function"?e():e),l=Qe(function(){var c=i.current;a.current.forEach(function(g){c=g(c)}),a.current=[],i.current=c,r({})});function s(c){a.current.push(c),l()}return[i.current,s]}var Je={width:0,height:0,left:0,top:0,right:0};function Dt(e,a,o,n,r,i,l){var s=l.tabs,c=l.tabPosition,g=l.rtl,C,u,E;return["top","bottom"].includes(c)?(C="width",u=g?"right":"left",E=Math.abs(o)):(C="height",u="top",E=-o),(0,t.useMemo)(function(){if(!s.length)return[0,0];for(var Z=s.length,N=Z,R=0;RE+a){N=R-1;break}}for(var L=0,M=Z-1;M>=0;M-=1){var x=e.get(s[M].key)||Je;if(x[u]b?"left":"right"})}),p=(0,k.Z)(P,2),S=p[0],G=p[1],ue=Ge(0,function(y,b){!d&&x&&x({direction:y>b?"top":"bottom"})}),_=(0,k.Z)(ue,2),H=_[0],q=_[1],de=(0,t.useState)([0,0]),oe=(0,k.Z)(de,2),m=oe[0],z=oe[1],Y=(0,t.useState)([0,0]),$=(0,k.Z)(Y,2),ee=$[0],ce=$[1],ie=(0,t.useState)([0,0]),ve=(0,k.Z)(ie,2),Ze=ve[0],Ne=ve[1],Re=(0,t.useState)([0,0]),fe=(0,k.Z)(Re,2),Ie=fe[0],ke=fe[1],A=wt(new Map),te=(0,k.Z)(A,2),me=te[0],ba=te[1],Ce=At(i,me,ee[0]),Le=Ee(m,d),be=Ee(ee,d),Ae=Ee(Ze,d),it=Ee(Ie,d),lt=Lele?le:y}var st=(0,t.useRef)(),ha=(0,t.useState)(),ct=(0,k.Z)(ha,2),xe=ct[0],ut=ct[1];function Oe(){ut(Date.now())}function Be(){window.clearTimeout(st.current)}Ot(T,function(y,b){function K(U,re){U(function(J){var Za=Me(J+re);return Za})}return lt?(d?K(G,y):K(q,b),Be(),Oe(),!0):!1}),(0,t.useEffect)(function(){return Be(),xe&&(st.current=window.setTimeout(function(){ut(0)},100)),Be},[xe]);var ya=Dt(Ce,Q,d?S:H,be,Ae,it,(0,F.Z)((0,F.Z)({},e),{},{tabs:i})),dt=(0,k.Z)(ya,2),ga=dt[0],Sa=dt[1],vt=(0,kt.Z)(function(){var y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:C,b=Ce.get(y)||{width:0,height:0,left:0,right:0,top:0};if(d){var K=S;u?b.rightS+Q&&(K=b.right+b.width-Q):b.left<-S?K=-b.left:b.left+b.width>-S+Q&&(K=-(b.left+b.width-Q)),q(0),G(Me(K))}else{var U=H;b.top<-H?U=-b.top:b.top+b.height>-H+Q&&(U=-(b.top+b.height-Q)),G(0),q(Me(U))}}),Te={};R==="top"||R==="bottom"?Te[u?"marginRight":"marginLeft"]=O:Te.marginTop=O;var ft=i.map(function(y,b){var K=y.key;return t.createElement(Ft,{id:c,prefixCls:r,key:K,tab:y,style:b===0?void 0:Te,closable:y.closable,editable:Z,active:K===C,renderWrapper:L,removeAriaLabel:N==null?void 0:N.removeAriaLabel,onClick:function(re){M(K,re)},onFocus:function(){vt(K),Oe(),!!T.current&&(u||(T.current.scrollLeft=0),T.current.scrollTop=0)}})}),mt=function(){return ba(function(){var b=new Map;return i.forEach(function(K){var U,re=K.key,J=(U=D.current)===null||U===void 0?void 0:U.querySelector('[data-node-key="'.concat(_e(re),'"]'));J&&b.set(re,{width:J.offsetWidth,height:J.offsetHeight,left:J.offsetLeft,top:J.offsetTop})}),b})};(0,t.useEffect)(function(){mt()},[i.map(function(y){return y.key}).join("_")]);var we=Qe(function(){var y=se(W),b=se(w),K=se(I);z([y[0]-b[0]-K[0],y[1]-b[1]-K[1]]);var U=se(h);Ne(U);var re=se(v);ke(re);var J=se(D);ce([J[0]-U[0],J[1]-U[1]]),mt()}),Ea=i.slice(0,ga),Ca=i.slice(Sa+1),bt=[].concat((0,$e.Z)(Ea),(0,$e.Z)(Ca)),xa=(0,t.useState)(),pt=(0,k.Z)(xa,2),Ta=pt[0],Pa=pt[1],ne=Ce.get(C),ht=(0,t.useRef)();function yt(){Fe.Z.cancel(ht.current)}(0,t.useEffect)(function(){var y={};return ne&&(d?(u?y.right=ne.right:y.left=ne.left,y.width=ne.width):(y.top=ne.top,y.height=ne.height)),yt(),ht.current=(0,Fe.Z)(function(){Pa(y)}),yt},[ne,d,u]),(0,t.useEffect)(function(){vt()},[C,ae,le,qe(ne),qe(Ce),d]),(0,t.useEffect)(function(){we()},[u]);var gt=!!bt.length,pe="".concat(r,"-nav-wrap"),De,ze,St,Et;return d?u?(ze=S>0,De=S!==le):(De=S<0,ze=S!==ae):(St=H<0,Et=H!==ae),t.createElement(je.Z,{onResize:we},t.createElement("div",{ref:(0,Lt.x1)(a,W),role:"tablist",className:j()("".concat(r,"-nav"),l),style:s,onKeyDown:function(){Oe()}},t.createElement(tt,{ref:w,position:"left",extra:E,prefixCls:r}),t.createElement("div",{className:j()(pe,(o={},(0,B.Z)(o,"".concat(pe,"-ping-left"),De),(0,B.Z)(o,"".concat(pe,"-ping-right"),ze),(0,B.Z)(o,"".concat(pe,"-ping-top"),St),(0,B.Z)(o,"".concat(pe,"-ping-bottom"),Et),o)),ref:T},t.createElement(je.Z,{onResize:we},t.createElement("div",{ref:D,className:"".concat(r,"-nav-list"),style:{transform:"translate(".concat(S,"px, ").concat(H,"px)"),transition:xe?"none":void 0}},ft,t.createElement(et,{ref:h,prefixCls:r,locale:N,editable:Z,style:(0,F.Z)((0,F.Z)({},ft.length===0?void 0:Te),{},{visibility:gt?"hidden":null})}),t.createElement("div",{className:j()("".concat(r,"-ink-bar"),(0,B.Z)({},"".concat(r,"-ink-bar-animated"),g.inkBar)),style:Ta})))),t.createElement($t,(0,V.Z)({},e,{removeAriaLabel:N==null?void 0:N.removeAriaLabel,ref:v,prefixCls:r,tabs:bt,className:!gt&&pa,tabMoving:!!xe})),t.createElement(tt,{ref:I,position:"right",extra:E,prefixCls:r})))}var nt=t.forwardRef(Ht),Gt=["renderTabBar"],Xt=["label","key"];function Yt(e){var a=e.renderTabBar,o=(0,ye.Z)(e,Gt),n=t.useContext(ge),r=n.tabs;if(a){var i=(0,F.Z)((0,F.Z)({},o),{},{panes:r.map(function(l){var s=l.label,c=l.key,g=(0,ye.Z)(l,Xt);return t.createElement(Ve,(0,V.Z)({tab:s,key:c,tabKey:c},g))})});return a(i,nt)}return t.createElement(nt,o)}var Na=f(80334);function Qt(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{inkBar:!0,tabPane:!1},a;return e===!1?a={inkBar:!1,tabPane:!1}:e===!0?a={inkBar:!0,tabPane:!1}:a=(0,F.Z)({inkBar:!0},(0,he.Z)(e)==="object"?e:{}),a.tabPaneMotion&&a.tabPane===void 0&&(a.tabPane=!0),!a.tabPaneMotion&&a.tabPane&&(a.tabPane=!1),a}var Jt=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","moreIcon","moreTransitionName","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName"],rt=0;function qt(e,a){var o,n=e.id,r=e.prefixCls,i=r===void 0?"rc-tabs":r,l=e.className,s=e.items,c=e.direction,g=e.activeKey,C=e.defaultActiveKey,u=e.editable,E=e.animated,Z=e.tabPosition,N=Z===void 0?"top":Z,R=e.tabBarGutter,O=e.tabBarStyle,L=e.tabBarExtraContent,M=e.locale,x=e.moreIcon,W=e.moreTransitionName,w=e.destroyInactiveTabPane,I=e.renderTabBar,T=e.onChange,D=e.onTabClick,v=e.onTabScroll,h=e.getPopupContainer,d=e.popupClassName,P=(0,ye.Z)(e,Jt),p=t.useMemo(function(){return(s||[]).filter(function(A){return A&&(0,he.Z)(A)==="object"&&"key"in A})},[s]),S=c==="rtl",G=Qt(E),ue=(0,t.useState)(!1),_=(0,k.Z)(ue,2),H=_[0],q=_[1];(0,t.useEffect)(function(){q((0,Pt.Z)())},[]);var de=(0,Ue.Z)(function(){var A;return(A=p[0])===null||A===void 0?void 0:A.key},{value:g,defaultValue:C}),oe=(0,k.Z)(de,2),m=oe[0],z=oe[1],Y=(0,t.useState)(function(){return p.findIndex(function(A){return A.key===m})}),$=(0,k.Z)(Y,2),ee=$[0],ce=$[1];(0,t.useEffect)(function(){var A=p.findIndex(function(me){return me.key===m});if(A===-1){var te;A=Math.max(0,Math.min(ee,p.length-1)),z((te=p[A])===null||te===void 0?void 0:te.key)}ce(A)},[p.map(function(A){return A.key}).join("_"),m,ee]);var ie=(0,Ue.Z)(null,{value:n}),ve=(0,k.Z)(ie,2),Ze=ve[0],Ne=ve[1];(0,t.useEffect)(function(){n||(Ne("rc-tabs-".concat(rt)),rt+=1)},[]);function Re(A,te){D==null||D(A,te);var me=A!==m;z(A),me&&(T==null||T(A))}var fe={id:Ze,activeKey:m,animated:G,tabPosition:N,rtl:S,mobile:H},Ie,ke=(0,F.Z)((0,F.Z)({},fe),{},{editable:u,locale:M,moreIcon:x,moreTransitionName:W,tabBarGutter:R,onTabClick:Re,onTabScroll:v,extra:L,style:O,panes:null,getPopupContainer:h,popupClassName:d});return t.createElement(ge.Provider,{value:{tabs:p,prefixCls:i}},t.createElement("div",(0,V.Z)({ref:a,id:n,className:j()(i,"".concat(i,"-").concat(N),(o={},(0,B.Z)(o,"".concat(i,"-mobile"),H),(0,B.Z)(o,"".concat(i,"-editable"),u),(0,B.Z)(o,"".concat(i,"-rtl"),S),o),l)},P),Ie,t.createElement(Yt,(0,V.Z)({},ke,{renderTabBar:I})),t.createElement(It,(0,V.Z)({destroyInactiveTabPane:w},fe,{animated:G}))))}var _t=t.forwardRef(qt),ea=_t,ta=ea,aa=f(53124),na=f(97647),ra=f(33603),oa={motionAppear:!1,motionEnter:!0,motionLeave:!0};function ia(e){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{inkBar:!0,tabPane:!1},o;return a===!1?o={inkBar:!1,tabPane:!1}:a===!0?o={inkBar:!0,tabPane:!0}:o=(0,V.Z)({inkBar:!0},(0,he.Z)(a)==="object"?a:{}),o.tabPane&&(o.tabPaneMotion=(0,V.Z)((0,V.Z)({},oa),{motionName:(0,ra.mL)(e,"switch")})),o}var la=f(50344),sa=function(e,a){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&a.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,n=Object.getOwnPropertySymbols(e);r2?42:16};return(0,e.jsx)(O.Z,{bordered:!1,style:{marginBottom:16},children:(0,e.jsx)("div",{style:{width:"100%",justifyContent:"space-between",display:"flex"},children:new Array(s).fill(null).map(function(Z,o){return(0,e.jsxs)("div",{style:{borderLeft:s>2&&o===1?"1px solid rgba(0,0,0,0.06)":void 0,paddingLeft:x(o),flex:1,marginRight:o===0?16:0},children:[(0,e.jsx)(h.Z,{active:r,paragraph:!1,title:{width:100,style:{marginTop:0}}}),(0,e.jsx)(h.Z.Button,{active:r,style:{height:48}})]},o)})})})},m=function(t){var a=t.active;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(O.Z,{bordered:!1,style:{borderRadius:0},bodyStyle:{padding:24},children:(0,e.jsxs)("div",{style:{width:"100%",display:"flex",alignItems:"center",justifyContent:"space-between"},children:[(0,e.jsx)("div",{style:{maxWidth:"100%",flex:1},children:(0,e.jsx)(h.Z,{active:a,title:{width:100,style:{marginTop:0}},paragraph:{rows:1,style:{margin:0}}})}),(0,e.jsx)(h.Z.Button,{active:a,size:"small",style:{width:165,marginTop:12}})]})}),(0,e.jsx)(je,{})]})},j=function(t){var a=t.size,r=t.active,i=r===void 0?!0:r,s=t.actionButton;return(0,e.jsxs)(O.Z,{bordered:!1,bodyStyle:{padding:0},children:[new Array(a).fill(null).map(function(x,Z){return(0,e.jsx)(m,{active:!!i},Z)}),s!==!1&&(0,e.jsx)(O.Z,{bordered:!1,style:{borderTopRightRadius:0,borderTopLeftRadius:0},bodyStyle:{display:"flex",alignItems:"center",justifyContent:"center"},children:(0,e.jsx)(h.Z.Button,{style:{width:102},active:i,size:"small"})})]})},D=function(t){var a=t.active;return(0,e.jsxs)("div",{style:{marginBottom:16},children:[(0,e.jsx)(h.Z,{paragraph:!1,title:{width:185}}),(0,e.jsx)(h.Z.Button,{active:a,size:"small"})]})},I=function(t){var a=t.active;return(0,e.jsx)(O.Z,{bordered:!1,style:{borderBottomRightRadius:0,borderBottomLeftRadius:0},bodyStyle:{paddingBottom:8},children:(0,e.jsxs)(Y.Z,{style:{width:"100%",justifyContent:"space-between"},children:[(0,e.jsx)(h.Z.Button,{active:a,style:{width:200},size:"small"}),(0,e.jsxs)(Y.Z,{children:[(0,e.jsx)(h.Z.Button,{active:a,size:"small",style:{width:120}}),(0,e.jsx)(h.Z.Button,{active:a,size:"small",style:{width:80}})]})]})})},E=function(t){var a=t.active,r=a===void 0?!0:a,i=t.statistic,s=t.actionButton,x=t.toolbar,Z=t.pageHeader,o=t.list,P=o===void 0?5:o;return(0,e.jsxs)("div",{style:{width:"100%"},children:[Z!==!1&&(0,e.jsx)(D,{active:r}),i!==!1&&(0,e.jsx)(u,{size:i,active:r}),(x!==!1||P!==!1)&&(0,e.jsxs)(O.Z,{bordered:!1,bodyStyle:{padding:0},children:[x!==!1&&(0,e.jsx)(I,{active:r}),P!==!1&&(0,e.jsx)(j,{size:P,active:r,actionButton:s})]})]})},k=E,W={xs:1,sm:2,md:3,lg:3,xl:3,xxl:4},J=function(t){var a=t.active;return(0,e.jsxs)("div",{style:{marginTop:32},children:[(0,e.jsx)(h.Z.Button,{active:a,size:"small",style:{width:100,marginBottom:16}}),(0,e.jsxs)("div",{style:{width:"100%",justifyContent:"space-between",display:"flex"},children:[(0,e.jsxs)("div",{style:{flex:1,marginRight:24,maxWidth:300},children:[(0,e.jsx)(h.Z,{active:a,paragraph:!1,title:{style:{marginTop:0}}}),(0,e.jsx)(h.Z,{active:a,paragraph:!1,title:{style:{marginTop:8}}}),(0,e.jsx)(h.Z,{active:a,paragraph:!1,title:{style:{marginTop:8}}})]}),(0,e.jsx)("div",{style:{flex:1,alignItems:"center",justifyContent:"center"},children:(0,e.jsxs)("div",{style:{maxWidth:300,margin:"auto"},children:[(0,e.jsx)(h.Z,{active:a,paragraph:!1,title:{style:{marginTop:0}}}),(0,e.jsx)(h.Z,{active:a,paragraph:!1,title:{style:{marginTop:8}}})]})})]})]})},z=function(t){var a=t.size,r=t.active,i=(0,me.ZP)(),s=a===void 0?W[i]||3:a;return(0,e.jsx)("div",{style:{width:"100%",justifyContent:"space-between",display:"flex"},children:new Array(s).fill(null).map(function(x,Z){return(0,e.jsxs)("div",{style:{flex:1,paddingLeft:Z===0?0:24,paddingRight:Z===s-1?0:24},children:[(0,e.jsx)(h.Z,{active:r,paragraph:!1,title:{style:{marginTop:0}}}),(0,e.jsx)(h.Z,{active:r,paragraph:!1,title:{style:{marginTop:8}}}),(0,e.jsx)(h.Z,{active:r,paragraph:!1,title:{style:{marginTop:8}}})]},Z)})})},A=function(t){var a=t.active,r=t.header,i=r===void 0?!1:r,s=(0,me.ZP)(),x=W[s]||3;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)("div",{style:{display:"flex",background:i?"rgba(0,0,0,0.02)":"none",padding:"24px 8px"},children:[new Array(x).fill(null).map(function(Z,o){return(0,e.jsx)("div",{style:{flex:1,paddingLeft:i&&o===0?0:20,paddingRight:32},children:(0,e.jsx)(h.Z,{active:a,paragraph:!1,title:{style:{margin:0,height:24,width:i?"75px":"100%"}}})},o)}),(0,e.jsx)("div",{style:{flex:3,paddingLeft:32},children:(0,e.jsx)(h.Z,{active:a,paragraph:!1,title:{style:{margin:0,height:24,width:i?"75px":"100%"}}})})]}),(0,e.jsx)(je,{padding:"0px 0px"})]})},ae=function(t){var a=t.active,r=t.size,i=r===void 0?4:r;return(0,e.jsxs)(O.Z,{bordered:!1,children:[(0,e.jsx)(h.Z.Button,{active:a,size:"small",style:{width:100,marginBottom:16}}),(0,e.jsx)(A,{header:!0,active:a}),new Array(i).fill(null).map(function(s,x){return(0,e.jsx)(A,{active:a},x)}),(0,e.jsx)("div",{style:{display:"flex",justifyContent:"flex-end",paddingTop:16},children:(0,e.jsx)(h.Z,{active:a,paragraph:!1,title:{style:{margin:0,height:32,float:"right",maxWidth:"630px"}}})})]})},q=function(t){var a=t.active;return(0,e.jsxs)(O.Z,{bordered:!1,style:{borderTopRightRadius:0,borderTopLeftRadius:0},children:[(0,e.jsx)(h.Z.Button,{active:a,size:"small",style:{width:100,marginBottom:16}}),(0,e.jsx)(z,{active:a}),(0,e.jsx)(J,{active:a})]})},R=function(t){var a=t.active,r=a===void 0?!0:a,i=t.pageHeader,s=t.list;return(0,e.jsxs)("div",{style:{width:"100%"},children:[i!==!1&&(0,e.jsx)(D,{active:r}),(0,e.jsx)(q,{active:r}),s!==!1&&(0,e.jsx)(je,{}),s!==!1&&(0,e.jsx)(ae,{active:r,size:s})]})},ie=R,se=function(t){var a=t.active,r=a===void 0?!0:a,i=t.pageHeader;return(0,e.jsxs)("div",{style:{width:"100%"},children:[i!==!1&&(0,e.jsx)(D,{active:r}),(0,e.jsx)(O.Z,{children:(0,e.jsxs)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",flexDirection:"column",padding:128},children:[(0,e.jsx)(h.Z.Avatar,{size:64,style:{marginBottom:32}}),(0,e.jsx)(h.Z.Button,{active:r,style:{width:214,marginBottom:8}}),(0,e.jsx)(h.Z.Button,{active:r,style:{width:328},size:"small"}),(0,e.jsxs)(Y.Z,{style:{marginTop:24},children:[(0,e.jsx)(h.Z.Button,{active:r,style:{width:116}}),(0,e.jsx)(h.Z.Button,{active:r,style:{width:116}})]})]})})]})},oe=se,de=["type"],ce=function(t){var a=t.type,r=a===void 0?"list":a,i=(0,xe.Z)(t,de);return r==="result"?(0,e.jsx)(oe,(0,d.Z)({},i)):r==="descriptions"?(0,e.jsx)(ie,(0,d.Z)({},i)):(0,e.jsx)(k,(0,d.Z)({},i))},N=ce,Se=n(34792),ue=n(48086),ne=n(28481),ye=n(78775),ee=n(21770),ge=n(86671);function Re(l){var t=l.data,a=l.row;return(0,d.Z)((0,d.Z)({},t),a)}function be(l){var t=l.type||"single",a=(0,ye.YB)(),r=(0,ee.Z)([],{value:l.editableKeys,onChange:l.onChange?function(y){var S;l==null||(S=l.onChange)===null||S===void 0||S.call(l,y,l.dataSource)}:void 0}),i=(0,ne.Z)(r,2),s=i[0],x=i[1],Z=(0,U.useMemo)(function(){var y=t==="single"?s==null?void 0:s.slice(0,1):s;return new Set(y)},[(s||[]).join(","),t]),o=(0,U.useCallback)(function(y){return!!(s==null?void 0:s.includes((0,ge.sN)(y)))},[(s||[]).join(",")]),P=function(S){return Z.size>0&&t==="single"?(ue.default.warn(l.onlyOneLineEditorAlertMessage||a.getMessage("editableTable.onlyOneLineEditor","\u53EA\u80FD\u540C\u65F6\u7F16\u8F91\u4E00\u884C")),!1):(Z.add((0,ge.sN)(S)),x(Array.from(Z)),!0)},$=function(S){return Z.delete((0,ge.sN)(S)),x(Array.from(Z)),!0},Q=function(){var y=(0,_.Z)((0,G.Z)().mark(function S(w,b,g,T){var L,M;return(0,G.Z)().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.next=2,l==null||(L=l.onCancel)===null||L===void 0?void 0:L.call(l,w,b,g,T);case 2:if(M=c.sent,M!==!1){c.next=5;break}return c.abrupt("return",!1);case 5:return c.abrupt("return",!0);case 6:case"end":return c.stop()}},S)}));return function(w,b,g,T){return y.apply(this,arguments)}}(),F=function(){var y=(0,_.Z)((0,G.Z)().mark(function S(w,b,g){var T,L,M;return(0,G.Z)().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.next=2,l==null||(T=l.onSave)===null||T===void 0?void 0:T.call(l,w,b,g);case 2:if(L=c.sent,L!==!1){c.next=5;break}return c.abrupt("return",!1);case 5:return $(w),M={data:l.dataSource,row:b,key:w,childrenColumnName:l.childrenColumnName||"children"},l.setDataSource(Re(M)),c.abrupt("return",!0);case 9:case"end":return c.stop()}},S)}));return function(w,b,g){return y.apply(this,arguments)}}(),K=a.getMessage("editableTable.action.save","\u4FDD\u5B58"),H=a.getMessage("editableTable.action.delete","\u5220\u9664"),B=a.getMessage("editableTable.action.cancel","\u53D6\u6D88"),X=(0,U.useCallback)(function(y,S){var w=(0,d.Z)({recordKey:y,cancelEditable:$,onCancel:Q,onSave:F,editableKeys:s,setEditableRowKeys:x,saveText:K,cancelText:B,deleteText:H,deletePopconfirmMessage:"".concat(a.getMessage("deleteThisLine","\u5220\u9664\u6B64\u884C"),"?"),editorType:"Map"},S),b=(0,ge.aX)(l.dataSource,w);return l.actionRender?l.actionRender(l.dataSource,w,{save:b[0],delete:b[1],cancel:b[2]}):b},[s&&s.join(","),l.dataSource]);return{editableKeys:s,setEditableRowKeys:x,isEditable:o,actionRender:X,startEditable:P,cancelEditable:$}}var he=be,Le=n(2026),Oe=n(94984),ke=n(77398),Fe=n(53621),We=n(78164),He=n(50344),Ve=n(88306),Ue=n(30939),it=n(65515),Qe=function(t,a){var r=a||{},i=r.onRequestError,s=r.effects,x=r.manual,Z=r.dataSource,o=r.defaultDataSource,P=r.onDataSourceChange,$=(0,ee.Z)(o,{value:Z,onChange:P}),Q=(0,ne.Z)($,2),F=Q[0],K=Q[1],H=(0,ee.Z)(a==null?void 0:a.loading,{value:a==null?void 0:a.loading,onChange:a==null?void 0:a.onLoadingChange}),B=(0,ne.Z)(H,2),X=B[0],y=B[1],S=function(g){K(g),y(!1)},w=function(){var b=(0,_.Z)((0,G.Z)().mark(function g(){var T,L,M;return(0,G.Z)().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:if(!X){c.next=2;break}return c.abrupt("return");case 2:return y(!0),c.prev=3,c.next=6,t();case 6:if(c.t0=c.sent,c.t0){c.next=9;break}c.t0={};case 9:T=c.t0,L=T.data,M=T.success,M!==!1&&S(L),c.next=23;break;case 15:if(c.prev=15,c.t1=c.catch(3),i!==void 0){c.next=21;break}throw new Error(c.t1);case 21:i(c.t1);case 22:y(!1);case 23:case"end":return c.stop()}},g,null,[[3,15]])}));return function(){return b.apply(this,arguments)}}();return(0,U.useEffect)(function(){x||w()},[].concat((0,V.Z)(s||[]),[x])),{dataSource:F,setDataSource:K,loading:X,reload:function(){return w()}}},Xe=Qe,Ge=["valueEnum","render","renderText","mode","plain","dataIndex","request","params","editable"],Ye=["request","columns","params","dataSource","onDataSourceChange","formProps","editable","loading","onLoadingChange","actionRef","onRequestError"],Je=function(t,a){var r=t.dataIndex;if(r){var i=Array.isArray(r)?(0,Ve.Z)(a,r):a[r];if(i!==void 0||i!==null)return i}return t.children},qe=function(t){var a=t.valueEnum,r=t.action,i=t.index,s=t.text,x=t.entity,Z=t.mode,o=t.render,P=t.editableUtils,$=t.valueType,Q=t.plain,F=t.dataIndex,K=t.request,H=t.renderFormItem,B=t.params,X=fe.ZP.useFormInstance(),y={text:s,valueEnum:a,mode:Z||"read",proFieldProps:{render:o?function(){return o==null?void 0:o(s,x,i,r,(0,d.Z)((0,d.Z)({},t),{},{type:"descriptions"}))}:void 0},ignoreFormItem:!0,valueType:$,request:K,params:B,plain:Q};if(Z==="read"||!Z||$==="option"){var S=(0,Le.Z)(t.fieldProps,void 0,(0,d.Z)((0,d.Z)({},t),{},{rowKey:F,isEditable:!1}));return(0,e.jsx)(Ze.Z,(0,d.Z)((0,d.Z)({name:F},y),{},{fieldProps:S}))}var w=function(){var g,T=(0,Le.Z)(t.formItemProps,X,(0,d.Z)((0,d.Z)({},t),{},{rowKey:F,isEditable:!0})),L=(0,Le.Z)(t.fieldProps,X,(0,d.Z)((0,d.Z)({},t),{},{rowKey:F,isEditable:!0})),M=H?H==null?void 0:H((0,d.Z)((0,d.Z)({},t),{},{type:"descriptions"}),{isEditable:!0,recordKey:F,record:X.getFieldValue([F].flat(1)),defaultRender:function(){return(0,e.jsx)(Ze.Z,(0,d.Z)((0,d.Z)({},y),{},{fieldProps:L}))},type:"descriptions"},X):void 0;return(0,e.jsxs)(Y.Z,{children:[(0,e.jsx)(Oe.Z,(0,d.Z)((0,d.Z)({name:F},T),{},{style:(0,d.Z)({margin:0},(T==null?void 0:T.style)||{}),initialValue:s||(T==null?void 0:T.initialValue),children:M||(0,e.jsx)(Ze.Z,(0,d.Z)((0,d.Z)({},y),{},{proFieldProps:(0,d.Z)({},y.proFieldProps),fieldProps:L}))})),P==null||(g=P.actionRender)===null||g===void 0?void 0:g.call(P,F||i,{cancelText:(0,e.jsx)(ve.Z,{}),saveText:(0,e.jsx)(De.Z,{}),deleteText:!1})]})};return(0,e.jsx)("div",{style:{marginTop:-5,marginBottom:-5,marginLeft:0,marginRight:0},children:w()})},_e=function(t,a,r,i){var s,x=[],Z=t==null||(s=t.map)===null||s===void 0?void 0:s.call(t,function(o,P){var $,Q;if(U.isValidElement(o))return o;var F=o.valueEnum,K=o.render,H=o.renderText,B=o.mode,X=o.plain,y=o.dataIndex,S=o.request,w=o.params,b=o.editable,g=(0,xe.Z)(o,Ge),T=($=Je(o,a))!==null&&$!==void 0?$:g.children,L=H?H(T,a,P,r):T,M=typeof g.title=="function"?g.title(o,"descriptions",null):g.title,te=typeof g.valueType=="function"?g.valueType(a||{},"descriptions"):g.valueType,c=i==null?void 0:i.isEditable(y||P),re=B||c?"edit":"read",p=i&&re==="read"&&b!==!1&&(b==null?void 0:b(L,a,P))!==!1,C=p?Y.Z:U.Fragment,Be=re==="edit"?L:(0,ke.X)(L,o,L),Te=(0,U.createElement)(v.Z.Item,(0,d.Z)((0,d.Z)({},g),{},{key:g.key||((Q=g.label)===null||Q===void 0?void 0:Q.toString())||P,label:(M||g.label||g.tooltip||g.tip)&&(0,e.jsx)(Fe.Z,{label:M||g.label,tooltip:g.tooltip||g.tip,ellipsis:o.ellipsis})}),(0,e.jsxs)(C,{children:[(0,e.jsx)(qe,(0,d.Z)((0,d.Z)({},o),{},{dataIndex:o.dataIndex||P,mode:re,text:Be,valueType:te,entity:a,index:P,action:r,editableUtils:i})),p&&te!=="option"&&(0,e.jsx)(pe.Z,{onClick:function(){i==null||i.startEditable(y||P)}})]}));return te==="option"?(x.push(Te),null):Te}).filter(function(o){return o});return{options:(x==null?void 0:x.length)?x:null,children:Z}},et=function(t){return(0,e.jsx)(v.Z.Item,(0,d.Z)((0,d.Z)({},t),{},{children:t.children}))},tt=function(t){return t.children},Ae=function(t){var a,r=t.request,i=t.columns,s=t.params,x=s===void 0?{}:s,Z=t.dataSource,o=t.onDataSourceChange,P=t.formProps,$=t.editable,Q=t.loading,F=t.onLoadingChange,K=t.actionRef,H=t.onRequestError,B=(0,xe.Z)(t,Ye),X=(0,U.useContext)(le.ZP.ConfigContext),y=Xe((0,_.Z)((0,G.Z)().mark(function c(){var re;return(0,G.Z)().wrap(function(C){for(;;)switch(C.prev=C.next){case 0:if(!r){C.next=6;break}return C.next=3,r(x);case 3:C.t0=C.sent,C.next=7;break;case 6:C.t0={data:{}};case 7:return re=C.t0,C.abrupt("return",re);case 9:case"end":return C.stop()}},c)})),{onRequestError:H,effects:[(0,Ue.P)(x)],manual:!r,dataSource:Z,loading:Q,onLoadingChange:F,onDataSourceChange:o}),S=he((0,d.Z)((0,d.Z)({},t.editable),{},{childrenColumnName:void 0,dataSource:y.dataSource,setDataSource:y.setDataSource}));if((0,U.useEffect)(function(){K&&(K.current=(0,d.Z)({reload:y.reload},S))},[y,K,S]),y.loading||y.loading===void 0&&r)return(0,e.jsx)(N,{type:"descriptions",list:!1,pageHeader:!1});var w=function(){var re=(0,He.Z)(t.children).filter(Boolean).map(function(p){if(!U.isValidElement(p))return p;var C=p==null?void 0:p.props,Be=C.valueEnum,Te=C.valueType,Ke=C.dataIndex,nt=C.ellipsis,rt=C.copyable,lt=C.request;return!Te&&!Be&&!Ke&&!lt&&!nt&&!rt?p:(0,d.Z)((0,d.Z)({},p==null?void 0:p.props),{},{entity:Z})});return[].concat((0,V.Z)(i||[]),(0,V.Z)(re)).filter(function(p){return!p||(p==null?void 0:p.valueType)&&["index","indexBorder"].includes(p==null?void 0:p.valueType)?!1:!(p==null?void 0:p.hideInDescriptions)}).sort(function(p,C){return C.order||p.order?(C.order||0)-(p.order||0):(C.index||0)-(p.index||0)})},b=_e(w(),y.dataSource||{},(K==null?void 0:K.current)||y,$?S:void 0),g=b.options,T=b.children,L=$?fe.ZP:tt,M=null;(B.title||B.tooltip||B.tip)&&(M=(0,e.jsx)(Fe.Z,{label:B.title,tooltip:B.tooltip||B.tip}));var te=X.getPrefixCls("pro-descriptions");return(0,e.jsx)(We.Z,{children:(0,e.jsx)(L,(0,d.Z)((0,d.Z)({form:(a=t.editable)===null||a===void 0?void 0:a.form,component:!1,submitter:!1},P),{},{onFinish:void 0,children:(0,e.jsx)(v.Z,(0,d.Z)((0,d.Z)({className:te},B),{},{extra:B.extra?(0,e.jsxs)(Y.Z,{children:[g,B.extra]}):g,title:M,children:T}))}),"form")})};Ae.Item=et;var at=Ae},65515:function(){},52953:function(){},4914:function(we,Ce,n){"use strict";n.d(Ce,{K:function(){return O},Z:function(){return je}});var V=n(96156),G=n(28481),_=n(90484),Pe=n(94184),le=n.n(Pe),ze=n(50344),v=n(67294),xe=n(53124),Me=n(96159),Y=n(24308),d=function(u){var m=u.children;return m},U=d,e=n(22122);function ve(f){return f!=null}var De=function(u){var m=u.itemPrefixCls,j=u.component,D=u.span,I=u.className,E=u.style,k=u.labelStyle,W=u.contentStyle,J=u.bordered,z=u.label,A=u.content,ae=u.colon,q=j;if(J){var R;return v.createElement(q,{className:le()((R={},(0,V.Z)(R,"".concat(m,"-item-label"),ve(z)),(0,V.Z)(R,"".concat(m,"-item-content"),ve(A)),R),I),style:E,colSpan:D},ve(z)&&v.createElement("span",{style:k},z),ve(A)&&v.createElement("span",{style:W},A))}return v.createElement(q,{className:le()("".concat(m,"-item"),I),style:E,colSpan:D},v.createElement("div",{className:"".concat(m,"-item-container")},(z||z===0)&&v.createElement("span",{className:le()("".concat(m,"-item-label"),(0,V.Z)({},"".concat(m,"-item-no-colon"),!ae)),style:k},z),(A||A===0)&&v.createElement("span",{className:le()("".concat(m,"-item-content")),style:W},A)))},pe=De;function fe(f,u,m){var j=u.colon,D=u.prefixCls,I=u.bordered,E=m.component,k=m.type,W=m.showLabel,J=m.showContent,z=m.labelStyle,A=m.contentStyle;return f.map(function(ae,q){var R=ae.props,ie=R.label,se=R.children,oe=R.prefixCls,de=oe===void 0?D:oe,ce=R.className,N=R.style,Se=R.labelStyle,ue=R.contentStyle,ne=R.span,ye=ne===void 0?1:ne,ee=ae.key;return typeof E=="string"?v.createElement(pe,{key:"".concat(k,"-").concat(ee||q),className:ce,style:N,labelStyle:(0,e.Z)((0,e.Z)({},z),Se),contentStyle:(0,e.Z)((0,e.Z)({},A),ue),span:ye,colon:j,component:E,itemPrefixCls:de,bordered:I,label:W?ie:null,content:J?se:null}):[v.createElement(pe,{key:"label-".concat(ee||q),className:ce,style:(0,e.Z)((0,e.Z)((0,e.Z)({},z),N),Se),span:1,colon:j,component:E[0],itemPrefixCls:de,bordered:I,label:ie}),v.createElement(pe,{key:"content-".concat(ee||q),className:ce,style:(0,e.Z)((0,e.Z)((0,e.Z)({},A),N),ue),span:ye*2-1,component:E[1],itemPrefixCls:de,bordered:I,content:se})]})}var Ze=function(u){var m=v.useContext(O),j=u.prefixCls,D=u.vertical,I=u.row,E=u.index,k=u.bordered;return D?v.createElement(v.Fragment,null,v.createElement("tr",{key:"label-".concat(E),className:"".concat(j,"-row")},fe(I,u,(0,e.Z)({component:"th",type:"label",showLabel:!0},m))),v.createElement("tr",{key:"content-".concat(E),className:"".concat(j,"-row")},fe(I,u,(0,e.Z)({component:"td",type:"content",showContent:!0},m)))):v.createElement("tr",{key:E,className:"".concat(j,"-row")},fe(I,u,(0,e.Z)({component:k?["th","td"]:"td",type:"item",showLabel:!0,showContent:!0},m)))},Ne=Ze,O=v.createContext({}),Ie={xxl:3,xl:3,lg:3,md:3,sm:2,xs:1};function h(f,u){if(typeof f=="number")return f;if((0,_.Z)(f)==="object")for(var m=0;mm)&&(j=(0,Me.Tm)(f,{span:m})),j}function $e(f,u){var m=(0,ze.Z)(f).filter(function(E){return E}),j=[],D=[],I=u;return m.forEach(function(E,k){var W,J=(W=E.props)===null||W===void 0?void 0:W.span,z=J||1;if(k===m.length-1){D.push(me(E,J,I)),j.push(D);return}z0;if(x||o){var B=p(C),ie=(0,Be.Z)(B).length,ue=(0,ee.Z)(o)==="object"?o.formatter({value:B,count:ie,maxLength:n}):"".concat(ie).concat(s?" / ".concat(n):"");return c.createElement(c.Fragment,null,!!o&&c.createElement("span",{className:H()("".concat(J,"-show-count-suffix"),(0,E.Z)({},"".concat(J,"-show-count-has-suffix"),!!x))},ue),x)}return null};return c.createElement(De,(0,R.Z)({},h,{prefixCls:J,className:L,inputElement:W(),handleReset:k,value:p(C),focused:N,triggerFocus:Q,suffix:G(),disabled:D}))}),q=Ie,$e=q,Le=t(42550),He=t(53124),Pe=t(98866),ye=t(97647),ge=t(65223),Ae=t(4173),be=t(9708),Ke=t(72922);function he(e){return!!(e.prefix||e.suffix||e.allowClear)}var Ue=function(e,i){var y={};for(var d in e)Object.prototype.hasOwnProperty.call(e,d)&&i.indexOf(d)<0&&(y[d]=e[d]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var u=0,d=Object.getOwnPropertySymbols(e);u1&&arguments[1]!==void 0?arguments[1]:!1,o=n.getAttribute("id")||n.getAttribute("data-reactid")||n.getAttribute("name");if(x&&Ie[o])return Ie[o];var r=window.getComputedStyle(n),a=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),f=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),h=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),l=Ve.map(function(C){return"".concat(C,":").concat(r.getPropertyValue(C))}).join(";"),v={sizingStyle:l,paddingSize:f,borderSize:h,boxSizing:a};return x&&o&&(Ie[o]=v),v}function Le(n){var x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;q||(q=document.createElement("textarea"),q.setAttribute("tab-index","-1"),q.setAttribute("aria-hidden","true"),document.body.appendChild(q)),n.getAttribute("wrap")?q.setAttribute("wrap",n.getAttribute("wrap")):q.removeAttribute("wrap");var a=$e(n,x),f=a.paddingSize,h=a.borderSize,l=a.boxSizing,v=a.sizingStyle;q.setAttribute("style","".concat(v,";").concat(je)),q.value=n.value||n.placeholder||"";var C=void 0,I=void 0,b,Z=q.scrollHeight;if(l==="border-box"?Z+=h:l==="content-box"&&(Z-=f),o!==null||r!==null){q.value=" ";var N=q.scrollHeight-f;o!==null&&(C=N*o,l==="border-box"&&(C=C+f+h),Z=Math.max(C,Z)),r!==null&&(I=N*r,l==="border-box"&&(I=I+f+h),b=Z>I?"":"hidden",Z=Math.min(I,Z))}var $={height:Z,overflowY:b,resize:"none"};return C&&($.minHeight=C),I&&($.maxHeight=I),$}var He=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],Pe=0,ye=1,ge=2,Ae=p.forwardRef(function(n,x){var o=n.prefixCls,r=o===void 0?"rc-textarea":o,a=n.onPressEnter,f=n.defaultValue,h=n.value,l=n.autoSize,v=n.onResize,C=n.className,I=n.style,b=n.disabled,Z=n.onChange,N=n.onInternalAutoSize,$=(0,De.Z)(n,He),F=(0,Te.Z)(f,{value:h,postState:function(re){return re!=null?re:""}}),Q=(0,ne.Z)(F,2),P=Q[0],K=Q[1],ae=function(re){K(re.target.value),Z==null||Z(re)},U=p.useRef();p.useImperativeHandle(x,function(){return{textArea:U.current}});var k=p.useMemo(function(){return l&&(0,E.Z)(l)==="object"?[l.minRows,l.maxRows]:[]},[l]),W=(0,ne.Z)(k,2),G=W[0],m=W[1],s=!!l,B=function(){try{if(document.activeElement===U.current){var re=U.current,Ye=re.selectionStart,Me=re.selectionEnd,_e=re.scrollTop;U.current.setSelectionRange(Ye,Me),U.current.scrollTop=_e}}catch(tt){}},ie=p.useState(ge),ue=(0,ne.Z)(ie,2),fe=ue[0],se=ue[1],We=p.useState(),pe=(0,ne.Z)(We,2),Ze=pe[0],me=pe[1],Ge=function(){se(Pe)};(0,Se.Z)(function(){s&&Ge()},[h,G,m,s]),(0,Se.Z)(function(){if(fe===Pe)se(ye);else if(fe===ye){var xe=Le(U.current,!1,G,m);se(ge),me(xe)}else B()},[fe]);var Oe=p.useRef(),Fe=function(){we.Z.cancel(Oe.current)},qe=function(re){fe===ge&&(v==null||v(re),l&&(Fe(),Oe.current=(0,we.Z)(function(){Ge()})))};p.useEffect(function(){return Fe},[]);var Xe=s?Ze:null,Ee=(0,Ne.Z)((0,Ne.Z)({},I),Xe);return(fe===Pe||fe===ye)&&(Ee.overflowY="hidden",Ee.overflowX="hidden"),p.createElement(Be.Z,{onResize:qe,disabled:!(l||v)},p.createElement("textarea",(0,ee.Z)({},$,{ref:U,style:Ee,className:c()(r,C,(0,R.Z)({},"".concat(r,"-disabled"),b)),disabled:b,value:P,onChange:ae})))}),be=Ae,Ke=function(n){(0,le.Z)(o,n);var x=(0,ve.Z)(o);function o(r){var a;(0,oe.Z)(this,o),a=x.call(this,r),a.resizableTextArea=void 0,a.focus=function(){a.resizableTextArea.textArea.focus()},a.saveTextArea=function(h){a.resizableTextArea=h},a.handleChange=function(h){var l=a.props.onChange;a.setValue(h.target.value),l&&l(h)},a.handleKeyDown=function(h){var l=a.props,v=l.onPressEnter,C=l.onKeyDown;h.keyCode===13&&v&&v(h),C&&C(h)};var f=typeof r.value=="undefined"||r.value===null?r.defaultValue:r.value;return a.state={value:f},a}return(0,de.Z)(o,[{key:"setValue",value:function(a,f){"value"in this.props||this.setState({value:a},f)}},{key:"blur",value:function(){this.resizableTextArea.textArea.blur()}},{key:"render",value:function(){return p.createElement(be,(0,ee.Z)({},this.props,{value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,ref:this.saveTextArea}))}}],[{key:"getDerivedStateFromProps",value:function(a){return"value"in a?{value:a.value}:null}}]),o}(p.Component),he=Ke,Ue=t(98423),g=t(53124),w=t(98866),T=t(97647),S=t(65223),A=t(9708),e=t(43061),i=t(96159),y=t(93355),d=(0,y.b)("text","input");function u(n){return!!(n.addonBefore||n.addonAfter)}var O=function(n){(0,le.Z)(o,n);var x=(0,ve.Z)(o);function o(){return(0,oe.Z)(this,o),x.apply(this,arguments)}return(0,de.Z)(o,[{key:"renderClearIcon",value:function(a){var f,h=this.props,l=h.value,v=h.disabled,C=h.readOnly,I=h.handleReset,b=h.suffix,Z=!v&&!C&&l,N="".concat(a,"-clear-icon");return p.createElement(e.Z,{onClick:I,onMouseDown:function(F){return F.preventDefault()},className:c()((f={},(0,R.Z)(f,"".concat(N,"-hidden"),!Z),(0,R.Z)(f,"".concat(N,"-has-suffix"),!!b),f),N),role:"button"})}},{key:"renderTextAreaWithClearIcon",value:function(a,f,h){var l,v=this.props,C=v.value,I=v.allowClear,b=v.className,Z=v.style,N=v.direction,$=v.bordered,F=v.hidden,Q=v.status,P=h.status,K=h.hasFeedback;if(!I)return(0,i.Tm)(f,{value:C});var ae=c()("".concat(a,"-affix-wrapper"),"".concat(a,"-affix-wrapper-textarea-with-clear-btn"),(0,A.Z)("".concat(a,"-affix-wrapper"),(0,A.F)(P,Q),K),(l={},(0,R.Z)(l,"".concat(a,"-affix-wrapper-rtl"),N==="rtl"),(0,R.Z)(l,"".concat(a,"-affix-wrapper-borderless"),!$),(0,R.Z)(l,"".concat(b),!u(this.props)&&b),l));return p.createElement("span",{className:ae,style:Z,hidden:F},(0,i.Tm)(f,{style:null,value:C}),this.renderClearIcon(a))}},{key:"render",value:function(){var a=this;return p.createElement(S.aM.Consumer,null,function(f){var h=a.props,l=h.prefixCls,v=h.inputType,C=h.element;if(v===d[0])return a.renderTextAreaWithClearIcon(l,C,f)})}}]),o}(p.Component),X=O,V=t(89802),_=function(n,x){var o={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&x.indexOf(r)<0&&(o[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);ar&&(a=x),a}var M=p.forwardRef(function(n,x){var o,r=n.prefixCls,a=n.bordered,f=a===void 0?!0:a,h=n.showCount,l=h===void 0?!1:h,v=n.maxLength,C=n.className,I=n.style,b=n.size,Z=n.disabled,N=n.onCompositionStart,$=n.onCompositionEnd,F=n.onChange,Q=n.status,P=_(n,["prefixCls","bordered","showCount","maxLength","className","style","size","disabled","onCompositionStart","onCompositionEnd","onChange","status"]),K=p.useContext(g.E_),ae=K.getPrefixCls,U=K.direction,k=p.useContext(T.Z),W=p.useContext(w.Z),G=Z!=null?Z:W,m=p.useContext(S.aM),s=m.status,B=m.hasFeedback,ie=m.isFormItemInput,ue=m.feedbackIcon,fe=(0,A.F)(s,Q),se=p.useRef(null),We=p.useRef(null),pe=p.useState(!1),Ze=(0,ne.Z)(pe,2),me=Ze[0],Ge=Ze[1],Oe=p.useRef(),Fe=p.useRef(0),qe=(0,Te.Z)(P.defaultValue,{value:P.value}),Xe=(0,ne.Z)(qe,2),Ee=Xe[0],xe=Xe[1],re=P.hidden,Ye=function(Y,j){P.value===void 0&&(xe(Y),j==null||j())},Me=Number(v)>0,_e=function(Y){Ge(!0),Oe.current=Ee,Fe.current=Y.currentTarget.selectionStart,N==null||N(Y)},tt=function(Y){var j;Ge(!1);var te=Y.currentTarget.value;if(Me){var Ce=Fe.current>=v+1||Fe.current===((j=Oe.current)===null||j===void 0?void 0:j.length);te=D(Ce,Oe.current,te,v)}te!==Ee&&(Ye(te),(0,V.rJ)(Y.currentTarget,Y,F,te)),$==null||$(Y)},rt=function(Y){var j=Y.target.value;if(!me&&Me){var te=Y.target.selectionStart>=v+1||Y.target.selectionStart===j.length||!Y.target.selectionStart;j=D(te,Ee,j,v)}Ye(j),(0,V.rJ)(Y.currentTarget,Y,F,j)},ot=function(Y){var j,te,Ce;Ye(""),(j=se.current)===null||j===void 0||j.focus(),(0,V.rJ)((Ce=(te=se.current)===null||te===void 0?void 0:te.resizableTextArea)===null||Ce===void 0?void 0:Ce.textArea,Y,F)},ce=ae("input",r);p.useImperativeHandle(x,function(){var ze;return{resizableTextArea:(ze=se.current)===null||ze===void 0?void 0:ze.resizableTextArea,focus:function(j){var te,Ce;(0,V.nH)((Ce=(te=se.current)===null||te===void 0?void 0:te.resizableTextArea)===null||Ce===void 0?void 0:Ce.textArea,j)},blur:function(){var j;return(j=se.current)===null||j===void 0?void 0:j.blur()}}});var lt=p.createElement(he,(0,ee.Z)({},(0,Ue.Z)(P,["allowClear"]),{disabled:G,className:c()((o={},(0,R.Z)(o,"".concat(ce,"-borderless"),!f),(0,R.Z)(o,C,C&&!l),(0,R.Z)(o,"".concat(ce,"-sm"),k==="small"||b==="small"),(0,R.Z)(o,"".concat(ce,"-lg"),k==="large"||b==="large"),o),(0,A.Z)(ce,fe)),style:l?{resize:I==null?void 0:I.resize}:I,prefixCls:ce,onCompositionStart:_e,onChange:rt,onCompositionEnd:tt,ref:se})),Je=(0,V.D7)(Ee);!me&&Me&&(P.value===null||P.value===void 0)&&(Je=J(Je,v));var nt=p.createElement(X,(0,ee.Z)({disabled:G},P,{prefixCls:ce,direction:U,inputType:"text",value:Je,element:lt,handleReset:ot,ref:We,bordered:f,status:Q,style:l?void 0:I}));if(l||B){var Qe,at=(0,z.Z)(Je).length,et="";return(0,E.Z)(l)==="object"?et=l.formatter({value:Je,count:at,maxLength:v}):et="".concat(at).concat(Me?" / ".concat(v):""),p.createElement("div",{hidden:re,className:c()("".concat(ce,"-textarea"),(Qe={},(0,R.Z)(Qe,"".concat(ce,"-textarea-rtl"),U==="rtl"),(0,R.Z)(Qe,"".concat(ce,"-textarea-show-count"),l),(0,R.Z)(Qe,"".concat(ce,"-textarea-in-form-item"),ie),Qe),(0,A.Z)("".concat(ce,"-textarea"),fe,B),C),style:I,"data-count":et},nt,B&&p.createElement("span",{className:"".concat(ce,"-textarea-suffix")},ue))}return nt}),L=M},72922:function(ke,Re,t){"use strict";t.d(Re,{Z:function(){return R}});var E=t(67294);function R(ee,ne){var z=(0,E.useRef)([]),H=function(){z.current.push(setTimeout(function(){var oe,de,le,ve;((oe=ee.current)===null||oe===void 0?void 0:oe.input)&&((de=ee.current)===null||de===void 0?void 0:de.input.getAttribute("type"))==="password"&&((le=ee.current)===null||le===void 0?void 0:le.input.hasAttribute("value"))&&((ve=ee.current)===null||ve===void 0||ve.input.removeAttribute("value"))}))};return(0,E.useEffect)(function(){return ne&&H(),function(){return z.current.forEach(function(c){c&&clearTimeout(c)})}},[]),H}},4107:function(ke,Re,t){"use strict";t.d(Re,{Z:function(){return Ue}});var E=t(22122),R=t(96156),ee=t(94184),ne=t.n(ee),z=t(67294),H=t(53124),c=t(65223),oe=function(w){var T,S=(0,z.useContext)(H.E_),A=S.getPrefixCls,e=S.direction,i=w.prefixCls,y=w.className,d=y===void 0?"":y,u=A("input-group",i),O=ne()(u,(T={},(0,R.Z)(T,"".concat(u,"-lg"),w.size==="large"),(0,R.Z)(T,"".concat(u,"-sm"),w.size==="small"),(0,R.Z)(T,"".concat(u,"-compact"),w.compact),(0,R.Z)(T,"".concat(u,"-rtl"),e==="rtl"),T),d),X=(0,z.useContext)(c.aM),V=(0,z.useMemo)(function(){return(0,E.Z)((0,E.Z)({},X),{isFormItemInput:!1})},[X]);return z.createElement("span",{className:O,style:w.style,onMouseEnter:w.onMouseEnter,onMouseLeave:w.onMouseLeave,onFocus:w.onFocus,onBlur:w.onBlur},z.createElement(c.aM.Provider,{value:V},w.children))},de=oe,le=t(89802),ve=t(28481),p=t(90484),Ne=t(88633),De=t(95357),Be=t(98423),Se=t(42550),we=t(72922),Te=function(g,w){var T={};for(var S in g)Object.prototype.hasOwnProperty.call(g,S)&&w.indexOf(S)<0&&(T[S]=g[S]);if(g!=null&&typeof Object.getOwnPropertySymbols=="function")for(var A=0,S=Object.getOwnPropertySymbols(g);A0;if(x||o){var M=b(C),se=(0,Fe.Z)(M).length,oe=(0,ne.Z)(o)==="object"?o.formatter({value:M,count:se,maxLength:t}):"".concat(se).concat(i?" / ".concat(t):"");return c.createElement(c.Fragment,null,!!o&&c.createElement("span",{className:G()("".concat(X,"-show-count-suffix"),(0,E.Z)({},"".concat(X,"-show-count-has-suffix"),!!x))},oe),x)}return null};return c.createElement(Oe,(0,R.Z)({},g,{prefixCls:X,className:K,inputElement:W(),handleReset:ee,value:b(C),focused:A,triggerFocus:Y,suffix:Q(),disabled:j}))}),q=Ee,De=q,je=n(42550),$e=n(53124),Re=n(98866),be=n(97647),he=n(65223),ze=n(4173),pe=n(9708),Ve=n(72922);function xe(e){return!!(e.prefix||e.suffix||e.allowClear)}var Le=function(e,u){var y={};for(var d in e)Object.prototype.hasOwnProperty.call(e,d)&&u.indexOf(d)<0&&(y[d]=e[d]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,d=Object.getOwnPropertySymbols(e);s1&&arguments[1]!==void 0?arguments[1]:!1,o=t.getAttribute("id")||t.getAttribute("data-reactid")||t.getAttribute("name");if(x&&Ee[o])return Ee[o];var r=window.getComputedStyle(t),a=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),f=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),g=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),l=Me.map(function(C){return"".concat(C,":").concat(r.getPropertyValue(C))}).join(";"),v={sizingStyle:l,paddingSize:f,borderSize:g,boxSizing:a};return x&&o&&(Ee[o]=v),v}function je(t){var x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;q||(q=document.createElement("textarea"),q.setAttribute("tab-index","-1"),q.setAttribute("aria-hidden","true"),document.body.appendChild(q)),t.getAttribute("wrap")?q.setAttribute("wrap",t.getAttribute("wrap")):q.removeAttribute("wrap");var a=De(t,x),f=a.paddingSize,g=a.borderSize,l=a.boxSizing,v=a.sizingStyle;q.setAttribute("style","".concat(v,";").concat(Be)),q.value=t.value||t.placeholder||"";var C=void 0,I=void 0,p,Z=q.scrollHeight;if(l==="border-box"?Z+=g:l==="content-box"&&(Z-=f),o!==null||r!==null){q.value=" ";var A=q.scrollHeight-f;o!==null&&(C=A*o,l==="border-box"&&(C=C+f+g),Z=Math.max(C,Z)),r!==null&&(I=A*r,l==="border-box"&&(I=I+f+g),p=Z>I?"":"hidden",Z=Math.min(I,Z))}var L={height:Z,overflowY:p,resize:"none"};return C&&(L.minHeight=C),I&&(L.maxHeight=I),L}var $e=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],Re=0,be=1,he=2,ze=b.forwardRef(function(t,x){var o=t.prefixCls,r=o===void 0?"rc-textarea":o,a=t.onPressEnter,f=t.defaultValue,g=t.value,l=t.autoSize,v=t.onResize,C=t.className,I=t.style,p=t.disabled,Z=t.onChange,A=t.onInternalAutoSize,L=(0,Oe.Z)(t,$e),O=(0,we.Z)(f,{value:g,postState:function(te){return te!=null?te:""}}),Y=(0,ae.Z)(O,2),B=Y[0],J=Y[1],U=function(te){J(te.target.value),Z==null||Z(te)},H=b.useRef();b.useImperativeHandle(x,function(){return{textArea:H.current}});var ee=b.useMemo(function(){return l&&(0,E.Z)(l)==="object"?[l.minRows,l.maxRows]:[]},[l]),W=(0,ae.Z)(ee,2),Q=W[0],h=W[1],i=!!l,M=function(){try{if(document.activeElement===H.current){var te=H.current,Ge=te.selectionStart,tt=te.selectionEnd,ke=te.scrollTop;H.current.setSelectionRange(Ge,tt),H.current.scrollTop=ke}}catch(Ye){}},se=b.useState(he),oe=(0,ae.Z)(se,2),ge=oe[0],Ie=oe[1],Te=b.useState(),ue=(0,ae.Z)(Te,2),Pe=ue[0],Ce=ue[1],He=function(){Ie(Re)};(0,ye.Z)(function(){i&&He()},[g,Q,h,i]),(0,ye.Z)(function(){if(ge===Re)Ie(be);else if(ge===be){var ve=je(H.current,!1,Q,h);Ie(he),Ce(ve)}else M()},[ge]);var Ke=b.useRef(),Ue=function(){Ne.Z.cancel(Ke.current)},et=function(te){ge===he&&(v==null||v(te),l&&(Ue(),Ke.current=(0,Ne.Z)(function(){He()})))};b.useEffect(function(){return Ue},[]);var Xe=i?Pe:null,We=(0,Ae.Z)((0,Ae.Z)({},I),Xe);return(ge===Re||ge===be)&&(We.overflowY="hidden",We.overflowX="hidden"),b.createElement(Fe.Z,{onResize:et,disabled:!(l||v)},b.createElement("textarea",(0,ne.Z)({},L,{ref:H,style:We,className:c()(r,C,(0,R.Z)({},"".concat(r,"-disabled"),p)),disabled:p,value:B,onChange:U})))}),pe=ze,Ve=function(t){(0,ie.Z)(o,t);var x=(0,me.Z)(o);function o(r){var a;(0,le.Z)(this,o),a=x.call(this,r),a.resizableTextArea=void 0,a.focus=function(){a.resizableTextArea.textArea.focus()},a.saveTextArea=function(g){a.resizableTextArea=g},a.handleChange=function(g){var l=a.props.onChange;a.setValue(g.target.value),l&&l(g)},a.handleKeyDown=function(g){var l=a.props,v=l.onPressEnter,C=l.onKeyDown;g.keyCode===13&&v&&v(g),C&&C(g)};var f=typeof r.value=="undefined"||r.value===null?r.defaultValue:r.value;return a.state={value:f},a}return(0,fe.Z)(o,[{key:"setValue",value:function(a,f){"value"in this.props||this.setState({value:a},f)}},{key:"blur",value:function(){this.resizableTextArea.textArea.blur()}},{key:"render",value:function(){return b.createElement(pe,(0,ne.Z)({},this.props,{value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,ref:this.saveTextArea}))}}],[{key:"getDerivedStateFromProps",value:function(a){return"value"in a?{value:a.value}:null}}]),o}(b.Component),xe=Ve,Le=n(98423),m=n(53124),N=n(98866),w=n(97647),S=n(65223),P=n(9708),e=n(43061),u=n(96159),y=n(93355),d=(0,y.b)("text","input");function s(t){return!!(t.addonBefore||t.addonAfter)}var T=function(t){(0,ie.Z)(o,t);var x=(0,me.Z)(o);function o(){return(0,le.Z)(this,o),x.apply(this,arguments)}return(0,fe.Z)(o,[{key:"renderClearIcon",value:function(a){var f,g=this.props,l=g.value,v=g.disabled,C=g.readOnly,I=g.handleReset,p=g.suffix,Z=!v&&!C&&l,A="".concat(a,"-clear-icon");return b.createElement(e.Z,{onClick:I,onMouseDown:function(O){return O.preventDefault()},className:c()((f={},(0,R.Z)(f,"".concat(A,"-hidden"),!Z),(0,R.Z)(f,"".concat(A,"-has-suffix"),!!p),f),A),role:"button"})}},{key:"renderTextAreaWithClearIcon",value:function(a,f,g){var l,v=this.props,C=v.value,I=v.allowClear,p=v.className,Z=v.focused,A=v.style,L=v.direction,O=v.bordered,Y=v.hidden,B=v.status,J=g.status,U=g.hasFeedback;if(!I)return(0,u.Tm)(f,{value:C});var H=c()("".concat(a,"-affix-wrapper"),"".concat(a,"-affix-wrapper-textarea-with-clear-btn"),(0,P.Z)("".concat(a,"-affix-wrapper"),(0,P.F)(J,B),U),(l={},(0,R.Z)(l,"".concat(a,"-affix-wrapper-focused"),Z),(0,R.Z)(l,"".concat(a,"-affix-wrapper-rtl"),L==="rtl"),(0,R.Z)(l,"".concat(a,"-affix-wrapper-borderless"),!O),(0,R.Z)(l,"".concat(p),!s(this.props)&&p),l));return b.createElement("span",{className:H,style:A,hidden:Y},(0,u.Tm)(f,{style:null,value:C}),this.renderClearIcon(a))}},{key:"render",value:function(){var a=this;return b.createElement(S.aM.Consumer,null,function(f){var g=a.props,l=g.prefixCls,v=g.inputType,C=g.element;if(v===d[0])return a.renderTextAreaWithClearIcon(l,C,f)})}}]),o}(b.Component),k=T,V=n(89802),_=function(t,x){var o={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&x.indexOf(r)<0&&(o[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(t);ar&&(a=x),a}var F=b.forwardRef(function(t,x){var o,r=t.prefixCls,a=t.bordered,f=a===void 0?!0:a,g=t.showCount,l=g===void 0?!1:g,v=t.maxLength,C=t.className,I=t.style,p=t.size,Z=t.disabled,A=t.onCompositionStart,L=t.onCompositionEnd,O=t.onChange,Y=t.onFocus,B=t.onBlur,J=t.status,U=_(t,["prefixCls","bordered","showCount","maxLength","className","style","size","disabled","onCompositionStart","onCompositionEnd","onChange","onFocus","onBlur","status"]),H=b.useContext(m.E_),ee=H.getPrefixCls,W=H.direction,Q=b.useContext(w.Z),h=b.useContext(N.Z),i=Z!=null?Z:h,M=b.useContext(S.aM),se=M.status,oe=M.hasFeedback,ge=M.isFormItemInput,Ie=M.feedbackIcon,Te=(0,P.F)(se,J),ue=b.useRef(null),Pe=b.useRef(null),Ce=b.useState(!1),He=(0,ae.Z)(Ce,2),Ke=He[0],Ue=He[1],et=b.useState(!1),Xe=(0,ae.Z)(et,2),We=Xe[0],ve=Xe[1],te=b.useRef(),Ge=b.useRef(0),tt=(0,we.Z)(U.defaultValue,{value:U.value}),ke=(0,ae.Z)(tt,2),Ye=ke[0],lt=ke[1],it=U.hidden,nt=function(D,$){U.value===void 0&&(lt(D),$==null||$())},qe=Number(v)>0,ut=function(D){Ue(!0),te.current=Ye,Ge.current=D.currentTarget.selectionStart,A==null||A(D)},st=function(D){var $;Ue(!1);var re=D.currentTarget.value;if(qe){var Se=Ge.current>=v+1||Ge.current===(($=te.current)===null||$===void 0?void 0:$.length);re=j(Se,te.current,re,v)}re!==Ye&&(nt(re),(0,V.rJ)(D.currentTarget,D,O,re)),L==null||L(D)},ct=function(D){var $=D.target.value;if(!Ke&&qe){var re=D.target.selectionStart>=v+1||D.target.selectionStart===$.length||!D.target.selectionStart;$=j(re,Ye,$,v)}nt($),(0,V.rJ)(D.currentTarget,D,O,$)},dt=function(D){ve(!1),B==null||B(D)},ft=function(D){ve(!0),Y==null||Y(D)};b.useEffect(function(){ve(function(de){return!i&&de})},[i]);var vt=function(D){var $,re,Se;nt(""),($=ue.current)===null||$===void 0||$.focus(),(0,V.rJ)((Se=(re=ue.current)===null||re===void 0?void 0:re.resizableTextArea)===null||Se===void 0?void 0:Se.textArea,D,O)},ce=ee("input",r);b.useImperativeHandle(x,function(){var de;return{resizableTextArea:(de=ue.current)===null||de===void 0?void 0:de.resizableTextArea,focus:function($){var re,Se;(0,V.nH)((Se=(re=ue.current)===null||re===void 0?void 0:re.resizableTextArea)===null||Se===void 0?void 0:Se.textArea,$)},blur:function(){var $;return($=ue.current)===null||$===void 0?void 0:$.blur()}}});var mt=b.createElement(xe,(0,ne.Z)({},(0,Le.Z)(U,["allowClear"]),{disabled:i,className:c()((o={},(0,R.Z)(o,"".concat(ce,"-borderless"),!f),(0,R.Z)(o,C,C&&!l),(0,R.Z)(o,"".concat(ce,"-sm"),Q==="small"||p==="small"),(0,R.Z)(o,"".concat(ce,"-lg"),Q==="large"||p==="large"),o),(0,P.Z)(ce,Te)),style:l?{resize:I==null?void 0:I.resize}:I,prefixCls:ce,onCompositionStart:ut,onChange:ct,onBlur:dt,onFocus:ft,onCompositionEnd:st,ref:ue})),Je=(0,V.D7)(Ye);!Ke&&qe&&(U.value===null||U.value===void 0)&&(Je=X(Je,v));var rt=b.createElement(k,(0,ne.Z)({disabled:i,focused:We},U,{prefixCls:ce,direction:W,inputType:"text",value:Je,element:mt,handleReset:vt,ref:Pe,bordered:f,status:J,style:l?void 0:I}));if(l||oe){var Qe,ot=(0,z.Z)(Je).length,at="";return(0,E.Z)(l)==="object"?at=l.formatter({value:Je,count:ot,maxLength:v}):at="".concat(ot).concat(qe?" / ".concat(v):""),b.createElement("div",{hidden:it,className:c()("".concat(ce,"-textarea"),(Qe={},(0,R.Z)(Qe,"".concat(ce,"-textarea-rtl"),W==="rtl"),(0,R.Z)(Qe,"".concat(ce,"-textarea-show-count"),l),(0,R.Z)(Qe,"".concat(ce,"-textarea-in-form-item"),ge),Qe),(0,P.Z)("".concat(ce,"-textarea"),Te,oe),C),style:I,"data-count":at},rt,oe&&b.createElement("span",{className:"".concat(ce,"-textarea-suffix")},Ie))}return rt}),K=F},72922:function(_e,Ze,n){"use strict";n.d(Ze,{Z:function(){return R}});var E=n(67294);function R(ne,ae){var z=(0,E.useRef)([]),G=function(){z.current.push(setTimeout(function(){var le,fe,ie,me;((le=ne.current)===null||le===void 0?void 0:le.input)&&((fe=ne.current)===null||fe===void 0?void 0:fe.input.getAttribute("type"))==="password"&&((ie=ne.current)===null||ie===void 0?void 0:ie.input.hasAttribute("value"))&&((me=ne.current)===null||me===void 0||me.input.removeAttribute("value"))}))};return(0,E.useEffect)(function(){return ae&&G(),function(){return z.current.forEach(function(c){c&&clearTimeout(c)})}},[]),G}},4107:function(_e,Ze,n){"use strict";n.d(Ze,{Z:function(){return Le}});var E=n(22122),R=n(96156),ne=n(94184),ae=n.n(ne),z=n(67294),G=n(53124),c=n(65223),le=function(N){var w,S=(0,z.useContext)(G.E_),P=S.getPrefixCls,e=S.direction,u=N.prefixCls,y=N.className,d=y===void 0?"":y,s=P("input-group",u),T=ae()(s,(w={},(0,R.Z)(w,"".concat(s,"-lg"),N.size==="large"),(0,R.Z)(w,"".concat(s,"-sm"),N.size==="small"),(0,R.Z)(w,"".concat(s,"-compact"),N.compact),(0,R.Z)(w,"".concat(s,"-rtl"),e==="rtl"),w),d),k=(0,z.useContext)(c.aM),V=(0,z.useMemo)(function(){return(0,E.Z)((0,E.Z)({},k),{isFormItemInput:!1})},[k]);return z.createElement("span",{className:T,style:N.style,onMouseEnter:N.onMouseEnter,onMouseLeave:N.onMouseLeave,onFocus:N.onFocus,onBlur:N.onBlur},z.createElement(c.aM.Provider,{value:V},N.children))},fe=le,ie=n(89802),me=n(28481),b=n(90484),Ae=n(88633),Oe=n(95357),Fe=n(98423),ye=n(42550),Ne=n(72922),we=function(m,N){var w={};for(var S in m)Object.prototype.hasOwnProperty.call(m,S)&&N.indexOf(S)<0&&(w[S]=m[S]);if(m!=null&&typeof Object.getOwnPropertySymbols=="function")for(var P=0,S=Object.getOwnPropertySymbols(m);P0&&(v=L().map(function(C){return n.createElement(M,{prefixCls:h,key:C.value.toString(),disabled:"disabled"in C?C.disabled:y.disabled,value:C.value,checked:R.includes(C.value),onChange:C.onChange,className:"".concat(te,"-item"),style:C.style},C.label)}));var ie={toggleOption:N,value:R,disabled:y.disabled,name:y.name,registerValue:ee,cancelValue:ae},fe=g()(te,(0,f.Z)({},"".concat(te,"-rtl"),w==="rtl"),V);return n.createElement("div",(0,_.Z)({className:fe,style:G},le,{ref:x}),n.createElement(D.Provider,{value:ie},v))},t=n.forwardRef(a),i=n.memo(t),c=e(98866),s=function(o,r){var x={};for(var l in o)Object.prototype.hasOwnProperty.call(o,l)&&r.indexOf(l)<0&&(x[l]=o[l]);if(o!=null&&typeof Object.getOwnPropertySymbols=="function")for(var v=0,l=Object.getOwnPropertySymbols(o);v0&&(v=T().map(function(_){return t.createElement(y,{prefixCls:m,key:_.value.toString(),disabled:"disabled"in _?_.disabled:s.disabled,value:_.value,checked:R.includes(_.value),onChange:_.onChange,className:"".concat(Q,"-item"),style:_.style},_.label)}));var ie={toggleOption:Z,value:R,disabled:s.disabled,name:s.name,registerValue:J,cancelValue:oe},fe=M()(Q,(0,u.Z)({},"".concat(Q,"-rtl"),j==="rtl"),H);return t.createElement("div",(0,h.Z)({className:fe,style:$},ae,{ref:O}),t.createElement(k.Provider,{value:ie},v))},o=t.forwardRef(r),c=t.memo(o),L=e(98866),A=function(n,a){var O={};for(var l in n)Object.prototype.hasOwnProperty.call(n,l)&&a.indexOf(l)<0&&(O[l]=n[l]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var v=0,l=Object.getOwnPropertySymbols(n);v3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof e=="string"?e:"".concat(u,"-").concat(n),error:e,errorStatus:t}}function pe(e){var t=e.help,u=e.helpStatus,n=e.errors,s=n===void 0?F:n,f=e.warnings,p=f===void 0?F:f,m=e.className,v=e.fieldId,S=e.onVisibleChanged,Z=l.useContext(h.Rk),T=Z.prefixCls,A=l.useContext(tt.E_),L=A.getPrefixCls,W="".concat(T,"-item-explain"),j=L(),ae=We(s),M=We(p),Y=l.useMemo(function(){return t!=null?[Ve(t,u,"help")]:[].concat((0,k.Z)(ae.map(function(P,_){return Ve(P,"error","error",_)})),(0,k.Z)(M.map(function(P,_){return Ve(P,"warning","warning",_)})))},[t,u,ae,M]),K={};return v&&(K.id="".concat(v,"_help")),l.createElement(be.ZP,{motionDeadline:c.ZP.motionDeadline,motionName:"".concat(j,"-show-help"),visible:!!Y.length,onVisibleChanged:S},function(P){var _=P.className,oe=P.style;return l.createElement("div",(0,x.Z)({},K,{className:Ce()(W,_,m),style:oe,role:"alert"}),l.createElement(be.V4,(0,x.Z)({keys:Y},c.ZP,{motionName:"".concat(j,"-show-help-item"),component:!1}),function(q){var ee=q.key,te=q.error,V=q.errorStatus,se=q.className,Ee=q.style;return l.createElement("div",{key:ee,className:Ce()(se,(0,d.Z)({},"".concat(W,"-").concat(V),V)),style:Ee},te)}))})}var re=a(90484),J=a(3256),w=a(98866),de=a(97647);function Q(e){return typeof e=="object"&&e!=null&&e.nodeType===1}function le(e,t){return(!t||e!=="hidden")&&e!=="visible"&&e!=="clip"}function ge(e,t){if(e.clientHeightt||f>e&&p=t&&m>=u?f-e-n:p>t&&mu?p-t+s:0}var He=function(e,t){var u=window,n=t.scrollMode,s=t.block,f=t.inline,p=t.boundary,m=t.skipOverflowHiddenElements,v=typeof p=="function"?p:function(xt){return xt!==p};if(!Q(e))throw new TypeError("Invalid target");for(var S,Z,T=document.scrollingElement||document.documentElement,A=[],L=e;Q(L)&&v(L);){if((L=(Z=(S=L).parentElement)==null?S.getRootNode().host||null:Z)===T){A.push(L);break}L!=null&&L===document.body&&ge(L)&&!ge(document.documentElement)||L!=null&&ge(L,m)&&A.push(L)}for(var W=u.visualViewport?u.visualViewport.width:innerWidth,j=u.visualViewport?u.visualViewport.height:innerHeight,ae=window.scrollX||pageXOffset,M=window.scrollY||pageYOffset,Y=e.getBoundingClientRect(),K=Y.height,P=Y.width,_=Y.top,oe=Y.right,q=Y.bottom,ee=Y.left,te=s==="start"||s==="nearest"?_:s==="end"?q:_+K/2,V=f==="center"?ee+P/2:f==="end"?oe:ee,se=[],Ee=0;Ee=0&&ee>=0&&q<=j&&oe<=W&&_>=ue&&q<=gt&&ee>=Qe&&oe<=me)return se;var Ne=getComputedStyle(I),Je=parseInt(Ne.borderLeftWidth,10),qe=parseInt(Ne.borderTopWidth,10),Le=parseInt(Ne.borderRightWidth,10),it=parseInt(Ne.borderBottomWidth,10),E=0,g=0,N="offsetWidth"in I?I.offsetWidth-I.clientWidth-Je-Le:0,C="offsetHeight"in I?I.offsetHeight-I.clientHeight-qe-it:0,U="offsetWidth"in I?I.offsetWidth===0?0:Ze/I.offsetWidth:0,ce="offsetHeight"in I?I.offsetHeight===0?0:Ie/I.offsetHeight:0;if(T===I)E=s==="start"?te:s==="end"?te-j:s==="nearest"?Ae(M,M+j,j,qe,it,M+te,M+te+K,K):te-j/2,g=f==="start"?V:f==="center"?V-W/2:f==="end"?V-W:Ae(ae,ae+W,W,Je,Le,ae+V,ae+V+P,P),E=Math.max(0,E+M),g=Math.max(0,g+ae);else{E=s==="start"?te-ue-qe:s==="end"?te-gt+it+C:s==="nearest"?Ae(ue,gt,Ie,qe,it+C,te,te+K,K):te-(ue+Ie/2)+C/2,g=f==="start"?V-Qe-Je:f==="center"?V-(Qe+Ze/2)+N/2:f==="end"?V-me+Le+N:Ae(Qe,me,Ze,Je,Le+N,V,V+P,P);var Se=I.scrollLeft,Te=I.scrollTop;te+=Te-(E=Math.max(0,Math.min(Te+E/ce,I.scrollHeight-Ie/ce+C))),V+=Se-(g=Math.max(0,Math.min(Se+g/U,I.scrollWidth-Ze/U+N)))}se.push({el:I,top:E,left:g})}return se};function ve(e){return e===Object(e)&&Object.keys(e).length!==0}function Oe(e,t){t===void 0&&(t="auto");var u="scrollBehavior"in document.body.style;e.forEach(function(n){var s=n.el,f=n.top,p=n.left;s.scroll&&u?s.scroll({top:f,left:p,behavior:t}):(s.scrollTop=f,s.scrollLeft=p)})}function Be(e){return e===!1?{block:"end",inline:"nearest"}:ve(e)?e:{block:"start",inline:"nearest"}}function De(e,t){var u=e.isConnected||e.ownerDocument.documentElement.contains(e);if(ve(t)&&typeof t.behavior=="function")return t.behavior(u?He(e,t):[]);if(!!u){var n=Be(t);return Oe(He(e,n),n.behavior)}}var ut=De,St=["parentNode"],st="form_item";function ze(e){return e===void 0||e===!1?[]:Array.isArray(e)?e:[e]}function rt(e,t){if(!!e.length){var u=e.join("_");if(t)return"".concat(t,"_").concat(u);var n=St.includes(u);return n?"".concat(st,"_").concat(u):u}}function he(e){var t=ze(e);return t.join("_")}function ke(e){var t=(0,J.cI)(),u=(0,fe.Z)(t,1),n=u[0],s=l.useRef({}),f=l.useMemo(function(){return e!=null?e:(0,x.Z)((0,x.Z)({},n),{__INTERNAL__:{itemRef:function(m){return function(v){var S=he(m);v?s.current[S]=v:delete s.current[S]}}},scrollToField:function(m){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},S=ze(m),Z=rt(S,f.__INTERNAL__.name),T=Z?document.getElementById(Z):null;T&&ut(T,(0,x.Z)({scrollMode:"if-needed",block:"nearest"},v))},getFieldInstance:function(m){var v=he(m);return s.current[v]}})},[e,n]);return[f]}var yt=function(e,t){var u={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(u[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,n=Object.getOwnPropertySymbols(e);s0||it.length>0||e.extra){var Tt=[];(e.help||Le.length>0)&&Tt.push("".concat(Te,"_help")),e.extra&&Tt.push("".concat(Te,"_extra")),et["aria-describedby"]=Tt.join(" ")}Le.length>0&&(et["aria-invalid"]="true"),xt&&(et["aria-required"]="true"),(0,Me.Yr)(m)&&(et.ref=E(Se,m));var Kt=new Set([].concat((0,k.Z)(ze(A)),(0,k.Z)(ze(q))));Kt.forEach(function(ot){et[ot]=function(){for(var Pt,Vt,At,Bt,Lt,Ut=arguments.length,Wt=new Array(Ut),wt=0;wt0){var ct=Q[0]/2;Re.paddingLeft=ct,Re.paddingRight=ct}if(Q&&Q[1]>0&&!ge){var ft=Q[1]/2;Re.paddingTop=ft,Re.paddingBottom=ft}return st&&(Re.flex=c(st),le===!1&&!Re.minWidth&&(Re.minWidth=0)),Ce.createElement("div",(0,d.Z)({},rt,{style:(0,d.Z)((0,d.Z)({},Re),ze),className:yt,ref:Ve}),St)});ye.Z=We},92820:function(je,ye,a){"use strict";var h=a(22122),d=a(96156),x=a(90484),k=a(28481),Et=a(94184),Ce=a.n(Et),be=a(67294),l=a(53124),tt=a(98082),c=a(24308),fe=a(93355),We=a(99134),F=function(w,de){var Q={};for(var le in w)Object.prototype.hasOwnProperty.call(w,le)&&de.indexOf(le)<0&&(Q[le]=w[le]);if(w!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ge=0,le=Object.getOwnPropertySymbols(w);ge0?Ke[0]/-2:void 0,o=Ke[1]!=null&&Ke[1]>0?Ke[1]/-2:void 0;if(r&&(at.marginLeft=r,at.marginRight=r),nt){var i=(0,k.Z)(Ke,2);at.rowGap=i[1]}else o&&(at.marginTop=o,at.marginBottom=o);var y=(0,k.Z)(Ke,2),b=y[0],O=y[1],G=be.useMemo(function(){return{gutter:[b,O],wrap:ut,supportFlexGap:nt}},[b,O,ut,nt]);return be.createElement(We.Z.Provider,{value:G},be.createElement("div",(0,h.Z)({},St,{className:Dt,style:(0,h.Z)((0,h.Z)({},at),ve),ref:de}),Oe))});ye.Z=J},6999:function(je,ye,a){"use strict";var h=a(38663),d=a.n(h),x=a(80638),k=a.n(x)},85986:function(je,ye,a){"use strict";a.d(ye,{Z:function(){return at}});var h=a(22122),d=a(96156),x=a(90484),k=a(28481),Et=a(57254),Ce=a(58491),be=a(94184),l=a.n(be),tt=a(81253),c=a(67294),fe=a(15105),We=a(8410),F=a(42550),Ve=a(6610),pe=a(5991);function re(){return typeof BigInt=="function"}function J(r){var o=r.trim(),i=o.startsWith("-");i&&(o=o.slice(1)),o=o.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),o.startsWith(".")&&(o="0".concat(o));var y=o||"0",b=y.split("."),O=b[0]||"0",G=b[1]||"0";O==="0"&&G==="0"&&(i=!1);var $=i?"-":"";return{negative:i,negativeStr:$,trimStr:y,integerStr:O,decimalStr:G,fullStr:"".concat($).concat(y)}}function w(r){var o=String(r);return!Number.isNaN(Number(o))&&o.includes("e")}function de(r){var o=String(r);if(w(r)){var i=Number(o.slice(o.indexOf("e-")+2)),y=o.match(/\.(\d+)/);return(y==null?void 0:y[1])&&(i+=y[1].length),i}return o.includes(".")&&le(o)?o.length-o.indexOf(".")-1:0}function Q(r){var o=String(r);if(w(r)){if(r>Number.MAX_SAFE_INTEGER)return String(re()?BigInt(r).toString():Number.MAX_SAFE_INTEGER);if(rNumber.MAX_SAFE_INTEGER)return new r(Number.MAX_SAFE_INTEGER);if(b0&&arguments[0]!==void 0?arguments[0]:!0;return i?this.isInvalidate()?"":Q(this.number):this.origin}}]),r}(),He=function(){function r(o){if((0,Ve.Z)(this,r),this.origin="",this.negative=void 0,this.integer=void 0,this.decimal=void 0,this.decimalLen=void 0,this.empty=void 0,this.nan=void 0,!o&&o!==0||!String(o).trim()){this.empty=!0;return}if(this.origin=String(o),o==="-"){this.nan=!0;return}var i=o;if(w(i)&&(i=Number(i)),i=typeof i=="string"?i:Q(i),le(i)){var y=J(i);this.negative=y.negative;var b=y.trimStr.split(".");this.integer=BigInt(b[0]);var O=b[1]||"0";this.decimal=BigInt(O),this.decimalLen=O.length}else this.nan=!0}return(0,pe.Z)(r,[{key:"getMark",value:function(){return this.negative?"-":""}},{key:"getIntegerStr",value:function(){return this.integer.toString()}},{key:"getDecimalStr",value:function(){return this.decimal.toString().padStart(this.decimalLen,"0")}},{key:"alignDecimal",value:function(i){var y="".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd(i,"0"));return BigInt(y)}},{key:"negate",value:function(){var i=new r(this.toString());return i.negative=!i.negative,i}},{key:"add",value:function(i){if(this.isInvalidate())return new r(i);var y=new r(i);if(y.isInvalidate())return this;var b=Math.max(this.getDecimalStr().length,y.getDecimalStr().length),O=this.alignDecimal(b),G=y.alignDecimal(b),$=(O+G).toString(),H=J($),z=H.negativeStr,B=H.trimStr,X="".concat(z).concat(B.padStart(b+1,"0"));return new r("".concat(X.slice(0,-b),".").concat(X.slice(-b)))}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return this.nan}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(i){return this.toString()===(i==null?void 0:i.toString())}},{key:"lessEquals",value:function(i){return this.add(i.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.isNaN()?NaN:Number(this.toString())}},{key:"toString",value:function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return i?this.isInvalidate()?"":J("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),r}();function ve(r){return re()?new He(r):new Ae(r)}function Oe(r,o,i){var y=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(r==="")return"";var b=J(r),O=b.negativeStr,G=b.integerStr,$=b.decimalStr,H="".concat(o).concat($),z="".concat(O).concat(G);if(i>=0){var B=Number($[i]);if(B>=5&&!y){var X=ve(r).add("".concat(O,"0.").concat("0".repeat(i)).concat(10-B));return Oe(X.toString(),o,i,y)}return i===0?z:"".concat(z).concat(o).concat($.padEnd(i,"0").slice(0,i))}return H===".0"?z:"".concat(z).concat(H)}var Be=a(31131),De=200,ut=600;function St(r){var o=r.prefixCls,i=r.upNode,y=r.downNode,b=r.upDisabled,O=r.downDisabled,G=r.onStep,$=c.useRef(),H=c.useRef();H.current=G;var z=function(we,Xe){we.preventDefault(),H.current(Xe);function Ye(){H.current(Xe),$.current=setTimeout(Ye,De)}$.current=setTimeout(Ye,ut)},B=function(){clearTimeout($.current)};if(c.useEffect(function(){return B},[]),(0,Be.Z)())return null;var X="".concat(o,"-handler"),ne=l()(X,"".concat(X,"-up"),(0,d.Z)({},"".concat(X,"-up-disabled"),b)),Pe=l()(X,"".concat(X,"-down"),(0,d.Z)({},"".concat(X,"-down-disabled"),O)),$e={unselectable:"on",role:"button",onMouseUp:B,onMouseLeave:B};return c.createElement("div",{className:"".concat(X,"-wrap")},c.createElement("span",(0,h.Z)({},$e,{onMouseDown:function(we){z(we,!0)},"aria-label":"Increase Value","aria-disabled":b,className:ne}),i||c.createElement("span",{unselectable:"on",className:"".concat(o,"-handler-up-inner")})),c.createElement("span",(0,h.Z)({},$e,{onMouseDown:function(we){z(we,!1)},"aria-label":"Decrease Value","aria-disabled":O,className:Pe}),y||c.createElement("span",{unselectable:"on",className:"".concat(o,"-handler-down-inner")})))}var st=a(80334);function ze(r,o){var i=(0,c.useRef)(null);function y(){try{var O=r.selectionStart,G=r.selectionEnd,$=r.value,H=$.substring(0,O),z=$.substring(G);i.current={start:O,end:G,value:$,beforeTxt:H,afterTxt:z}}catch(B){}}function b(){if(r&&i.current&&o)try{var O=r.value,G=i.current,$=G.beforeTxt,H=G.afterTxt,z=G.start,B=O.length;if(O.endsWith(H))B=O.length-i.current.afterTxt.length;else if(O.startsWith($))B=$.length;else{var X=$[z-1],ne=O.indexOf(X,z-1);ne!==-1&&(B=ne+1)}r.setSelectionRange(B,B)}catch(Pe){(0,st.ZP)(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(Pe.message))}}return[y,b]}var rt=a(75164),he=function(){var r=(0,c.useRef)(0),o=function(){rt.Z.cancel(r.current)};return(0,c.useEffect)(function(){return o},[]),function(i){o(),r.current=(0,rt.Z)(function(){i()})}},ke=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","controls","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep"],yt=function(o,i){return o||i.isEmpty()?i.toString():i.toNumber()},Re=function(o){var i=ve(o);return i.isInvalidate()?null:i},ct=c.forwardRef(function(r,o){var i,y=r.prefixCls,b=y===void 0?"rc-input-number":y,O=r.className,G=r.style,$=r.min,H=r.max,z=r.step,B=z===void 0?1:z,X=r.defaultValue,ne=r.value,Pe=r.disabled,$e=r.readOnly,dt=r.upHandler,we=r.downHandler,Xe=r.keyboard,Ye=r.controls,Rt=Ye===void 0?!0:Ye,Mt=r.stringMode,vt=r.parser,mt=r.formatter,xe=r.precision,lt=r.decimalSeparator,R=r.onChange,Ct=r.onInput,Zt=r.onPressEnter,Nt=r.onStep,Ot=(0,tt.Z)(r,ke),bt="".concat(b,"-input"),_e=c.useRef(null),pt=c.useState(!1),e=(0,k.Z)(pt,2),t=e[0],u=e[1],n=c.useRef(!1),s=c.useRef(!1),f=c.useRef(!1),p=c.useState(function(){return ve(ne!=null?ne:X)}),m=(0,k.Z)(p,2),v=m[0],S=m[1];function Z(E){ne===void 0&&S(E)}var T=c.useCallback(function(E,g){if(!g)return xe>=0?xe:Math.max(de(E),de(B))},[xe,B]),A=c.useCallback(function(E){var g=String(E);if(vt)return vt(g);var N=g;return lt&&(N=N.replace(lt,".")),N.replace(/[^\w.-]+/g,"")},[vt,lt]),L=c.useRef(""),W=c.useCallback(function(E,g){if(mt)return mt(E,{userTyping:g,input:String(L.current)});var N=typeof E=="number"?Q(E):E;if(!g){var C=T(N,g);if(le(N)&&(lt||C>=0)){var U=lt||".";N=Oe(N,U,C)}}return N},[mt,T,lt]),j=c.useState(function(){var E=X!=null?X:ne;return v.isInvalidate()&&["string","number"].includes((0,x.Z)(E))?Number.isNaN(E)?"":E:W(v.toString(),!1)}),ae=(0,k.Z)(j,2),M=ae[0],Y=ae[1];L.current=M;function K(E,g){Y(W(E.isInvalidate()?E.toString(!1):E.toString(!g),g))}var P=c.useMemo(function(){return Re(H)},[H,xe]),_=c.useMemo(function(){return Re($)},[$,xe]),oe=c.useMemo(function(){return!P||!v||v.isInvalidate()?!1:P.lessEquals(v)},[P,v]),q=c.useMemo(function(){return!_||!v||v.isInvalidate()?!1:v.lessEquals(_)},[_,v]),ee=ze(_e.current,t),te=(0,k.Z)(ee,2),V=te[0],se=te[1],Ee=function(g){return P&&!g.lessEquals(P)?P:_&&!_.lessEquals(g)?_:null},I=function(g){return!Ee(g)},D=function(g,N){var C=g,U=I(C)||C.isEmpty();if(!C.isEmpty()&&!N&&(C=Ee(C)||C,U=!0),!$e&&!Pe&&U){var ce=C.toString(),Se=T(ce,N);return Se>=0&&(C=ve(Oe(ce,".",Se)),I(C)||(C=ve(Oe(ce,".",Se,!0)))),C.equals(v)||(Z(C),R==null||R(C.isEmpty()?null:yt(Mt,C)),ne===void 0&&K(C,N)),C}return v},Ie=he(),Ze=function E(g){if(V(),Y(g),!s.current){var N=A(g),C=ve(N);C.isNaN()||D(C,!0)}Ct==null||Ct(g),Ie(function(){var U=g;vt||(U=g.replace(/。/g,".")),U!==g&&E(U)})},ue=function(){s.current=!0},me=function(){s.current=!1,Ze(_e.current.value)},gt=function(g){Ze(g.target.value)},Qe=function(g){var N;if(!(g&&oe||!g&&q)){n.current=!1;var C=ve(f.current?ge(B):B);g||(C=C.negate());var U=(v||ve(0)).add(C.toString()),ce=D(U,!1);Nt==null||Nt(yt(Mt,ce),{offset:f.current?ge(B):B,type:g?"up":"down"}),(N=_e.current)===null||N===void 0||N.focus()}},Ne=function(g){var N=ve(A(M)),C=N;N.isNaN()?C=v:C=D(N,g),ne!==void 0?K(v,!1):C.isNaN()||K(C,!1)},Je=function(){n.current=!0},qe=function(g){var N=g.which,C=g.shiftKey;n.current=!0,C?f.current=!0:f.current=!1,N===fe.Z.ENTER&&(s.current||(n.current=!1),Ne(!1),Zt==null||Zt(g)),Xe!==!1&&!s.current&&[fe.Z.UP,fe.Z.DOWN].includes(N)&&(Qe(fe.Z.UP===N),g.preventDefault())},Le=function(){n.current=!1,f.current=!1},it=function(){Ne(!1),u(!1),n.current=!1};return(0,We.o)(function(){v.isInvalidate()||K(v,!1)},[xe]),(0,We.o)(function(){var E=ve(ne);S(E);var g=ve(A(M));(!E.equals(g)||!n.current||mt)&&K(E,n.current)},[ne]),(0,We.o)(function(){mt&&se()},[M]),c.createElement("div",{className:l()(b,O,(i={},(0,d.Z)(i,"".concat(b,"-focused"),t),(0,d.Z)(i,"".concat(b,"-disabled"),Pe),(0,d.Z)(i,"".concat(b,"-readonly"),$e),(0,d.Z)(i,"".concat(b,"-not-a-number"),v.isNaN()),(0,d.Z)(i,"".concat(b,"-out-of-range"),!v.isInvalidate()&&!I(v)),i)),style:G,onFocus:function(){u(!0)},onBlur:it,onKeyDown:qe,onKeyUp:Le,onCompositionStart:ue,onCompositionEnd:me,onBeforeInput:Je},Rt&&c.createElement(St,{prefixCls:b,upNode:dt,downNode:we,upDisabled:oe,downDisabled:q,onStep:Qe}),c.createElement("div",{className:"".concat(bt,"-wrap")},c.createElement("input",(0,h.Z)({autoComplete:"off",role:"spinbutton","aria-valuemin":$,"aria-valuemax":H,"aria-valuenow":v.isInvalidate()?null:v.toString(),step:B},Ot,{ref:(0,F.sQ)(_e,o),className:bt,value:M,onChange:gt,disabled:Pe,readOnly:$e}))))});ct.displayName="InputNumber";var ft=ct,Fe=ft,Me=a(53124),ie=a(98866),Ge=a(97647),nt=a(65223),_t=a(4173),It=a(96159),Ue=a(9708),Ke=function(r,o){var i={};for(var y in r)Object.prototype.hasOwnProperty.call(r,y)&&o.indexOf(y)<0&&(i[y]=r[y]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var b=0,y=Object.getOwnPropertySymbols(r);b=0&&Tn<=24),xn));return(0,a.jsx)("div",{style:(0,l.Z)((0,l.Z)((0,l.Z)({},Ln),Ht(ar>0,{paddingRight:ar/2,paddingLeft:ar/2})),Ht(Xn>0,{paddingTop:Xn/2,paddingBottom:Xn/2})),className:ua,children:u.cloneElement(Cn)},"pro-card-col-".concat((Cn==null?void 0:Cn.key)||et))}return Cn}),Gr=ge()("".concat(ut),d,(o={},(0,Y.Z)(o,"".concat(ut,"-border"),D),(0,Y.Z)(o,"".concat(ut,"-contain-card"),Er),(0,Y.Z)(o,"".concat(ut,"-loading"),k),(0,Y.Z)(o,"".concat(ut,"-split"),I==="vertical"||I==="horizontal"),(0,Y.Z)(o,"".concat(ut,"-ghost"),y),(0,Y.Z)(o,"".concat(ut,"-hoverable"),ke),(0,Y.Z)(o,"".concat(ut,"-size-").concat(F),F),(0,Y.Z)(o,"".concat(ut,"-type-").concat(Zt),Zt),(0,Y.Z)(o,"".concat(ut,"-collapse"),wt),(0,Y.Z)(o,"".concat(ut,"-checked"),He),o)),Jr=ge()("".concat(ut,"-body"),(t={},(0,Y.Z)(t,"".concat(ut,"-body-center"),z==="center"),(0,Y.Z)(t,"".concat(ut,"-body-direction-column"),I==="horizontal"||ot==="column"),(0,Y.Z)(t,"".concat(ut,"-body-wrap"),j&&Er),t)),ea=(0,l.Z)((0,l.Z)((0,l.Z)({},Ht(ar>0,{marginRight:-ar/2,marginLeft:-ar/2})),Ht(Xn>0,{marginTop:-Xn/2,marginBottom:-Xn/2})),m),ta=u.isValidElement(k)?k:(0,a.jsx)(ye,{prefix:ut,style:m.padding===0||m.padding==="0px"?{padding:24}:void 0}),Gt=de&&q===void 0&&(Ve?Ve({collapsed:wt}):(0,a.jsx)(gt.Z,{rotate:wt?void 0:90,className:"".concat(ut,"-collapsible-icon")}));return(0,a.jsxs)("div",(0,l.Z)((0,l.Z)({className:Gr,style:v,ref:e,onClick:function(et){var tn;mt==null||mt(et),Mt==null||(tn=Mt.onClick)===null||tn===void 0||tn.call(Mt,et)}},(0,Ae.Z)(Mt,["prefixCls","colSpan"])),{},{children:[(O||Z||Gt)&&(0,a.jsxs)("div",{className:ge()("".concat(ut,"-header"),(s={},(0,Y.Z)(s,"".concat(ut,"-header-border"),A||Zt==="inner"),(0,Y.Z)(s,"".concat(ut,"-header-collapsible"),Gt),s)),style:M,onClick:function(){Gt&&en(!wt)},children:[(0,a.jsxs)("div",{className:"".concat(ut,"-title"),children:[Gt,(0,a.jsx)(it.Z,{label:O,tooltip:ee||b,subTitle:h})]}),Z&&(0,a.jsx)("div",{className:"".concat(ut,"-extra"),children:Z})]}),Ct?(0,a.jsx)("div",{className:"".concat(ut,"-tabs"),children:(0,a.jsx)(nt.Z,(0,l.Z)((0,l.Z)({onChange:Ct.onChange},Ct),{},{items:Rn,children:k?ta:S}))}):(0,a.jsx)("div",{className:Jr,style:ea,children:k?ta:qr}),(0,a.jsx)(Ee,{actions:L,prefixCls:ut})]}))}),Ue=dt,Ut=r(99509),Rt=function(e){var o=(0,u.useContext)(Ke.ZP.ConfigContext),t=o.getPrefixCls,s=t("pro-card-divider"),d=e.className,v=e.style,c=v===void 0?{}:v,m=e.type,C=ge()(s,d,(0,Y.Z)({},"".concat(s,"-").concat(m),m));return(0,a.jsx)("div",{className:C,style:c})},qe=Rt,we=function(e){return(0,a.jsx)(Ue,(0,l.Z)({bodyStyle:{padding:0}},e))},_=Ue;_.isProCard=!0,_.Divider=qe,_.TabPane=pe,_.Group=we;var ue=_,te=ue,me=r(952),re=r(78775),Re=r(86671),Be=r(51812),Ye=r(56725),Dt=r(27068),bn=r(78164),Nt=r(30939),kn=r(17462),wn=r(76772),En=r(49111),cn=r(19650),T=r(60870),B=function(e){var o=e.intl,t=e.onCleanSelected;return[(0,a.jsx)("a",{onClick:t,children:o.getMessage("alert.clear","\u6E05\u7A7A")},"0")]};function X(n){var e=n.selectedRowKeys,o=e===void 0?[]:e,t=n.onCleanSelected,s=n.alwaysShowAlert,d=n.selectedRows,v=n.alertInfoRender,c=v===void 0?function(j){var z=j.intl;return(0,a.jsxs)(cn.Z,{children:[z.getMessage("alert.selected","\u5DF2\u9009\u62E9"),o.length,z.getMessage("alert.item","\u9879"),"\xA0\xA0"]})}:v,m=n.alertOptionRender,C=m===void 0?B:m,M=(0,re.YB)(),O=C&&C({onCleanSelected:t,selectedRowKeys:o,selectedRows:d,intl:M}),h=(0,u.useContext)(Ke.ZP.ConfigContext),Z=h.getPrefixCls,b=Z("pro-table-alert");if(c===!1)return null;var N=c({intl:M,selectedRowKeys:o,selectedRows:d,onCleanSelected:t});return N===!1||o.length<1&&!s?null:(0,a.jsx)("div",{className:b,children:(0,a.jsx)(wn.Z,{message:(0,a.jsxs)("div",{className:"".concat(b,"-info"),children:[(0,a.jsx)("div",{className:"".concat(b,"-info-content"),children:N}),O?(0,a.jsx)("div",{className:"".concat(b,"-info-option"),children:O}):null]}),type:"info"})})}var E=X,P=r(5991),V=r(6610),ce=r(10379),he=r(44144),We=r(60249),Xe=function(e){return e!=null};function ve(n,e,o){var t,s;if(n===!1)return!1;var d=e.total,v=e.current,c=e.pageSize,m=e.setPageInfo,C=(0,De.Z)(n)==="object"?n:{};return(0,l.Z)((0,l.Z)({showTotal:function(O,h){return"".concat(o.getMessage("pagination.total.range","\u7B2C")," ").concat(h[0],"-").concat(h[1]," ").concat(o.getMessage("pagination.total.total","\u6761/\u603B\u5171")," ").concat(O," ").concat(o.getMessage("pagination.total.item","\u6761"))},total:d},C),{},{current:n!==!0&&n&&(t=n.current)!==null&&t!==void 0?t:v,pageSize:n!==!0&&n&&(s=n.pageSize)!==null&&s!==void 0?s:c,onChange:function(O,h){var Z=n.onChange;Z==null||Z(O,h||20),(h!==c||v!==O)&&m({pageSize:h,current:O})}})}function Ge(n,e,o){var t=(0,l.Z)((0,l.Z)({},o.editableUtils),{},{pageInfo:e.pageInfo,reload:function(){var s=(0,g.Z)((0,U.Z)().mark(function v(c){return(0,U.Z)().wrap(function(C){for(;;)switch(C.prev=C.next){case 0:if(!c){C.next=3;break}return C.next=3,e.setPageInfo({current:1});case 3:e==null||e.reload();case 4:case"end":return C.stop()}},v)}));function d(v){return s.apply(this,arguments)}return d}(),reloadAndRest:function(){var s=(0,g.Z)((0,U.Z)().mark(function v(){return(0,U.Z)().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:return o.onCleanSelected(),m.next=3,e.setPageInfo({current:1});case 3:return m.next=5,e==null?void 0:e.reload();case 5:case"end":return m.stop()}},v)}));function d(){return s.apply(this,arguments)}return d}(),reset:function(){var s=(0,g.Z)((0,U.Z)().mark(function v(){var c;return(0,U.Z)().wrap(function(C){for(;;)switch(C.prev=C.next){case 0:return C.next=2,o.resetAll();case 2:return C.next=4,e==null||(c=e.reset)===null||c===void 0?void 0:c.call(e);case 4:return C.next=6,e==null?void 0:e.reload();case 6:case"end":return C.stop()}},v)}));function d(){return s.apply(this,arguments)}return d}(),fullScreen:function(){return o.fullScreen()},clearSelected:function(){return o.onCleanSelected()},setPageInfo:function(d){return e.setPageInfo(d)}});n.current=t}function bt(n,e){return e.filter(function(o){return o}).length<1?n:e.reduce(function(o,t){return t(o)},n)}var Ne=function(e,o){return o===void 0?!1:typeof o=="boolean"?o:o[e]},Wt=function(e){var o;return e&&(0,De.Z)(e)==="object"&&(e==null||(o=e.props)===null||o===void 0?void 0:o.colSpan)},Tt=function(e,o){return e?Array.isArray(e)?e.join("-"):e.toString():"".concat(o)};function On(n){return Array.isArray(n)?n.join(","):n==null?void 0:n.toString()}function Jt(n){var e={},o={};return n.forEach(function(t){var s=On(t.dataIndex);if(!!s){if(t.filters){var d=t.defaultFilteredValue;d===void 0?e[s]=null:e[s]=t.defaultFilteredValue}t.sorter&&t.defaultSortOrder&&(o[s]=t.defaultSortOrder)}}),{sort:o,filter:e}}function an(n,e){var o=n.oldIndex,t=n.newIndex;if(o!==t){var s=arrayMoveImmutable(_toConsumableArray(e||[]),o,t).filter(function(d){return!!d});return _toConsumableArray(s)}return null}var Dn=r(9715),vn=r(55843),fn=r(51804),qt=r(22270),mn=r(57338),Hn=r(273),Yt=r(48171),Zn=r(72378),nn=r.n(Zn),Ft=r(73935),In=r(88374),Kn=["children","trigger","onVisibleChange","drawerProps","onFinish","submitTimeout","title","width","visible"];function Bn(n){var e,o,t,s,d=n.children,v=n.trigger,c=n.onVisibleChange,m=n.drawerProps,C=n.onFinish,M=n.submitTimeout,O=n.title,h=n.width,Z=n.visible,b=(0,ie.Z)(n,Kn);(0,at.ET)(!b.footer||!(m==null?void 0:m.footer),"DrawerForm \u662F\u4E00\u4E2A ProForm \u7684\u7279\u6B8A\u5E03\u5C40\uFF0C\u5982\u679C\u60F3\u81EA\u5B9A\u4E49\u6309\u94AE\uFF0C\u8BF7\u4F7F\u7528 submit.render \u81EA\u5B9A\u4E49\u3002");var N=(0,u.useContext)(Ke.ZP.ConfigContext),j=(0,u.useState)([]),z=(0,J.Z)(j,2),k=z[1],W=(0,u.useState)(!1),w=(0,J.Z)(W,2),ee=w[0],I=w[1],$=(0,G.Z)(!!Z,{value:Z,onChange:c}),A=(0,J.Z)($,2),R=A[0],D=A[1],S=(0,u.useRef)(null),F=(0,u.useCallback)(function(q){S.current===null&&q&&k([]),S.current=q},[]),L=(0,u.useRef)(),K=(0,u.useCallback)(function(){var q,le,de,Ve=(q=(le=(de=b.formRef)===null||de===void 0?void 0:de.current)!==null&&le!==void 0?le:b.form)!==null&&q!==void 0?q:L.current;Ve&&(m==null?void 0:m.destroyOnClose)&&Ve.resetFields()},[m==null?void 0:m.destroyOnClose,b.form,b.formRef]);(0,u.useEffect)(function(){R&&Z&&(c==null||c(!0))},[Z,R]);var y=(0,u.useMemo)(function(){return v?u.cloneElement(v,(0,l.Z)((0,l.Z)({key:"trigger"},v.props),{},{onClick:function(){var q=(0,g.Z)((0,U.Z)().mark(function de(Ve){var $e,Ce;return(0,U.Z)().wrap(function(He){for(;;)switch(He.prev=He.next){case 0:D(!R),($e=v.props)===null||$e===void 0||(Ce=$e.onClick)===null||Ce===void 0||Ce.call($e,Ve);case 2:case"end":return He.stop()}},de)}));function le(de){return q.apply(this,arguments)}return le}()})):null},[D,v,R]),H=(0,u.useMemo)(function(){var q,le,de,Ve,$e,Ce;return b.submitter===!1?!1:nn()({searchConfig:{submitText:(q=(le=N.locale)===null||le===void 0||(de=le.Modal)===null||de===void 0?void 0:de.okText)!==null&&q!==void 0?q:"\u786E\u8BA4",resetText:(Ve=($e=N.locale)===null||$e===void 0||(Ce=$e.Modal)===null||Ce===void 0?void 0:Ce.cancelText)!==null&&Ve!==void 0?Ve:"\u53D6\u6D88"},resetButtonProps:{preventDefault:!0,disabled:M?ee:void 0,onClick:function(He){var mt;D(!1),K(),m==null||(mt=m.onClose)===null||mt===void 0||mt.call(m,He)}}},b.submitter)},[b.submitter,(e=N.locale)===null||e===void 0||(o=e.Modal)===null||o===void 0?void 0:o.okText,(t=N.locale)===null||t===void 0||(s=t.Modal)===null||s===void 0?void 0:s.cancelText,M,ee,D,K,m]),ke=(0,u.useCallback)(function(q,le){return(0,a.jsxs)(a.Fragment,{children:[q,S.current&&le?(0,Ft.createPortal)(le,S.current):le]})},[]),ot=(0,Yt.J)(function(){var q=(0,g.Z)((0,U.Z)().mark(function le(de){var Ve,$e,Ce;return(0,U.Z)().wrap(function(He){for(;;)switch(He.prev=He.next){case 0:return Ve=C==null?void 0:C(de),M&&Ve instanceof Promise&&(I(!0),$e=setTimeout(function(){return I(!1)},M),Ve.finally(function(){clearTimeout($e),I(!1)})),He.next=4,Ve;case 4:return Ce=He.sent,Ce&&D(!1),He.abrupt("return",Ce);case 7:case"end":return He.stop()}},le)}));return function(le){return q.apply(this,arguments)}}());return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(Hn.Z,(0,l.Z)((0,l.Z)({title:O,width:h||800},m),{},{visible:R,onClose:function(le){var de;M&&ee||(K(),D(!1),m==null||(de=m.onClose)===null||de===void 0||de.call(m,le))},afterVisibleChange:function(le){var de;le||K(),m==null||(de=m.afterVisibleChange)===null||de===void 0||de.call(m,le)},footer:b.submitter!==!1&&(0,a.jsx)("div",{ref:F,style:{display:"flex",justifyContent:"flex-end"}}),children:(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(In.I,(0,l.Z)((0,l.Z)({formComponentType:"DrawerForm",layout:"vertical",formRef:L},b),{},{submitter:H,onFinish:function(){var q=(0,g.Z)((0,U.Z)().mark(function de(Ve){var $e;return(0,U.Z)().wrap(function(lt){for(;;)switch(lt.prev=lt.next){case 0:return lt.next=2,ot(Ve);case 2:return $e=lt.sent,$e===!0&&K(),lt.abrupt("return",$e);case 5:case"end":return lt.stop()}},de)}));function le(de){return q.apply(this,arguments)}return le}(),contentRender:ke,children:d}))})})),y]})}var yn=r(17405),kt=r(76422),At=r(1643),on=r(29504),Nn=["size","collapse","collapseLabel","initialValues","onValuesChange","form","placement","formRef","bordered","ignoreRules","footerRender"],$n=function(e){var o=e.items,t=e.prefixCls,s=e.size,d=s===void 0?"middle":s,v=e.collapse,c=e.collapseLabel,m=e.onValuesChange,C=e.bordered,M=e.values,O=e.footerRender,h=e.placement,Z=(0,re.YB)(),b="".concat(t,"-light-filter"),N=(0,u.useState)(!1),j=(0,J.Z)(N,2),z=j[0],k=j[1],W=(0,u.useState)(function(){return(0,l.Z)({},M)}),w=(0,J.Z)(W,2),ee=w[0],I=w[1];(0,u.useEffect)(function(){I((0,l.Z)({},M))},[M]);var $=(0,u.useMemo)(function(){var S=[],F=[];return o.forEach(function(L){var K=L.props||{},y=K.secondary;y||v?S.push(L):F.push(L)}),{collapseItems:S,outsideItems:F}},[e.items]),A=$.collapseItems,R=$.outsideItems,D=function(){return c||(v?(0,a.jsx)(yn.Z,{className:"".concat(b,"-collapse-icon")}):(0,a.jsx)(kt.Z,{size:d,label:Z.getMessage("form.lightFilter.more","\u66F4\u591A\u7B5B\u9009"),expanded:z}))};return(0,a.jsx)("div",{className:ge()(b,"".concat(b,"-").concat(d),(0,Y.Z)({},"".concat(b,"-effective"),Object.keys(M).some(function(S){return M[S]}))),children:(0,a.jsxs)("div",{className:"".concat(b,"-container"),children:[R.map(function(S,F){var L=S.key,K=S.props.fieldProps,y=(K==null?void 0:K.placement)?K==null?void 0:K.placement:h;return(0,a.jsx)("div",{className:"".concat(b,"-item"),children:u.cloneElement(S,{fieldProps:(0,l.Z)((0,l.Z)({},S.props.fieldProps),{},{placement:y}),proFieldProps:{light:!0,label:S.props.label,bordered:C},bordered:C})},L||F)}),A.length?(0,a.jsx)("div",{className:"".concat(b,"-item"),children:(0,a.jsx)(At.Z,{padding:24,onVisibleChange:k,visible:z,placement:h,label:D(),footerRender:O,footer:{onConfirm:function(){m((0,l.Z)({},ee)),k(!1)},onClear:function(){var F={};A.forEach(function(L){var K=L.props.name;F[K]=void 0}),m(F)}},children:A.map(function(S){var F=S.key,L=S.props,K=L.name,y=L.fieldProps,H=(0,l.Z)((0,l.Z)({},y),{},{onChange:function(q){return I((0,l.Z)((0,l.Z)({},ee),{},(0,Y.Z)({},K,(q==null?void 0:q.target)?q.target.value:q))),!1}});ee.hasOwnProperty(K)&&(H[S.props.valuePropName||"value"]=ee[K]);var ke=(y==null?void 0:y.placement)?y==null?void 0:y.placement:h;return(0,a.jsx)("div",{className:"".concat(b,"-line"),children:u.cloneElement(S,{fieldProps:(0,l.Z)((0,l.Z)({},H),{},{placement:ke})})},F)})})},"more"):null]})})};function zn(n){var e=n.size,o=n.collapse,t=n.collapseLabel,s=n.initialValues,d=n.onValuesChange,v=n.form,c=n.placement,m=n.formRef,C=n.bordered,M=n.ignoreRules,O=n.footerRender,h=(0,ie.Z)(n,Nn),Z=(0,u.useContext)(Ke.ZP.ConfigContext),b=Z.getPrefixCls,N=b("pro-form"),j=(0,u.useState)(function(){return(0,l.Z)({},s)}),z=(0,J.Z)(j,2),k=z[0],W=z[1],w=(0,u.useRef)();return(0,u.useImperativeHandle)(m,function(){return w.current}),(0,a.jsx)(In.I,(0,l.Z)((0,l.Z)({size:e,initialValues:s,form:v,contentRender:function(I){return(0,a.jsx)($n,{prefixCls:N,items:I.flatMap(function($){return($==null?void 0:$.type.displayName)==="ProForm-Group"?$.props.children:$}),size:e,bordered:C,collapse:o,collapseLabel:t,placement:c,values:k||{},footerRender:O,onValuesChange:function(A){var R,D,S=(0,l.Z)((0,l.Z)({},k),A);W(S),(R=w.current)===null||R===void 0||R.setFieldsValue(S),(D=w.current)===null||D===void 0||D.submit(),d&&d(A,S)}})},formRef:w,formItemProps:{colon:!1,labelAlign:"left"},fieldProps:{style:{width:void 0}}},(0,Ae.Z)(h,["labelWidth"])),{},{onValuesChange:function(I,$){var A;W($),d==null||d(I,$),(A=w.current)===null||A===void 0||A.submit()}}))}var Sn=r(37476),Gn=r(5894),Pr=r(48736),An=r(27049),Rr=r(12044),cr=r(48717),Jn=r(57254),Tr=function(e){if(e&&e!==!0)return e},vr=Tr,Mr=function(e,o,t,s){return e?(0,a.jsxs)(a.Fragment,{children:[t.getMessage("tableForm.collapsed","\u5C55\u5F00"),s&&"(".concat(s,")"),(0,a.jsx)(Jn.Z,{style:{marginLeft:"0.5em",transition:"0.3s all",transform:"rotate(".concat(e?0:.5,"turn)")}})]}):(0,a.jsxs)(a.Fragment,{children:[t.getMessage("tableForm.expand","\u6536\u8D77"),(0,a.jsx)(Jn.Z,{style:{marginLeft:"0.5em",transition:"0.3s all",transform:"rotate(".concat(e?0:.5,"turn)")}})]})},Or=function(e){var o=e.setCollapsed,t=e.collapsed,s=t===void 0?!1:t,d=e.submitter,v=e.style,c=e.hiddenNum,m=(0,u.useContext)(Ke.ZP.ConfigContext),C=m.getPrefixCls,M=(0,re.YB)(),O=vr(e.collapseRender)||Mr;return(0,a.jsxs)(cn.Z,{style:v,size:16,children:[d,e.collapseRender!==!1&&(0,a.jsx)("a",{className:C("pro-form-collapse-button"),onClick:function(){return o(!s)},children:O==null?void 0:O(s,e,M,c)})]})},wr=Or,Br=["collapsed","layout","defaultCollapsed","defaultColsNumber","span","searchGutter","searchText","resetText","optionRender","collapseRender","onReset","onCollapse","labelWidth","style","split","preserve","ignoreRules","showHiddenNum"],or,lr,$r={xs:513,sm:513,md:785,lg:992,xl:1057,xxl:Infinity},er={vertical:[[513,1,"vertical"],[785,2,"vertical"],[1057,3,"vertical"],[Infinity,4,"vertical"]],default:[[513,1,"vertical"],[701,2,"vertical"],[1062,3,"horizontal"],[1352,3,"horizontal"],[Infinity,4,"horizontal"]]},ir=function(e,o,t){if(t&&typeof t=="number")return{span:t,layout:e};var s=t?["xs","sm","md","lg","xl","xxl"].map(function(v){return[$r[v],24/t[v],"horizontal"]}):er[e||"default"],d=(s||er.default).find(function(v){return ob-1)&&!!L&&k>=24;W+=1;var Ve=u.isValidElement(F)&&(F.key||"".concat((ke=F.props)===null||ke===void 0?void 0:ke.name))||L;return u.isValidElement(F)&&de?e.preserve?{itemDom:u.cloneElement(F,{hidden:!0,key:Ve||L}),hidden:!0,colSpan:q}:{itemDom:null,colSpan:0,hidden:!0}:{itemDom:F,colSpan:q,hidden:!1}}),A=$.map(function(F,L){var K,y,H=F.itemDom,ke=F.colSpan,ot=H==null||(K=H.props)===null||K===void 0?void 0:K.hidden;if(ot)return H;var q=u.isValidElement(H)&&(H.key||"".concat((y=H.props)===null||y===void 0?void 0:y.name))||L;24-I%2417&&K(q.width)},children:(0,a.jsx)(In.I,(0,l.Z)((0,l.Z)({isKeyPressSubmit:!0,preserve:w},A),{},{className:ge()(D,A.className),onReset:Z,style:z,layout:y.layout,fieldProps:{style:{width:"100%"}},formItemProps:ke,groupProps:{titleStyle:{display:"inline-block",marginRight:16}},contentRender:function(q,le,de){return(0,a.jsx)(zr,{spanSize:y,collapsed:e,form:de,collapseRender:h,defaultCollapsed:s,onCollapse:b,optionRender:O,submitter:le,items:q,split:k,resetText:n.resetText,searchText:n.searchText,searchGutter:m,preserve:w,ignoreRules:ee,showLength:H,showHiddenNum:$})}}))},"resize-observer")}var Yr=r(57663),fr=r(71577),Ur=r(35556),mr=r(75899),Fr=r(92210),Qr=r(161),hr=["onFinish","step","formRef","title","stepProps"];function jr(n){var e=(0,u.useRef)(),o=(0,u.useContext)(tr),t=n.onFinish,s=n.step,d=n.formRef,v=n.title,c=n.stepProps,m=(0,ie.Z)(n,hr);return(0,at.ET)(!m.submitter,"StepForm \u4E0D\u5305\u542B\u63D0\u4EA4\u6309\u94AE\uFF0C\u8BF7\u5728 StepsForm \u4E0A"),(0,u.useImperativeHandle)(d,function(){return e.current}),(0,u.useEffect)(function(){if(!!(n.name||n.step)){var C=(n.name||n.step).toString();return o==null||o.regForm(C,n),function(){o==null||o.unRegForm(C)}}},[]),o&&(o==null?void 0:o.formArrayRef)&&(o.formArrayRef.current[s||0]=e),(0,a.jsx)(In.I,(0,l.Z)({formRef:e,onFinish:function(){var C=(0,g.Z)((0,U.Z)().mark(function O(h){var Z;return(0,U.Z)().wrap(function(N){for(;;)switch(N.prev=N.next){case 0:if(m.name&&(o==null||o.onFormFinish(m.name,h)),!t){N.next=9;break}return o==null||o.setLoading(!0),N.next=5,t==null?void 0:t(h);case 5:return Z=N.sent,Z&&(o==null||o.next()),o==null||o.setLoading(!1),N.abrupt("return");case 9:(o==null?void 0:o.lastStep)||o==null||o.next();case 10:case"end":return N.stop()}},O)}));function M(O){return C.apply(this,arguments)}return M}(),layout:"vertical"},m))}var Kr=jr,Wr=["current","onCurrentChange","submitter","stepsFormRender","stepsRender","stepFormRender","stepsProps","onFinish","formProps","containerStyle","formRef","formMapRef"],tr=u.createContext(void 0),sr={horizontal:function(e){var o=e.stepsDom,t=e.formDom;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(x.Z,{gutter:{xs:8,sm:16,md:24},children:(0,a.jsx)(Pe.Z,{span:24,children:o})}),(0,a.jsx)(x.Z,{gutter:{xs:8,sm:16,md:24},children:(0,a.jsx)(Pe.Z,{span:24,children:t})})]})},vertical:function(e){var o=e.stepsDom,t=e.formDom;return(0,a.jsxs)(x.Z,{align:"stretch",wrap:!0,gutter:{xs:8,sm:16,md:24},children:[(0,a.jsx)(Pe.Z,{xxl:4,xl:6,lg:7,md:8,sm:10,xs:12,children:u.cloneElement(o,{style:{height:"100%"}})}),(0,a.jsx)(Pe.Z,{children:(0,a.jsx)("div",{style:{display:"flex",alignItems:"center",width:"100%",height:"100%"},children:t})})]})}};function gr(n){var e=(0,u.useContext)(Ke.ZP.ConfigContext),o=e.getPrefixCls,t=o("pro-steps-form"),s=n.current,d=n.onCurrentChange,v=n.submitter,c=n.stepsFormRender,m=n.stepsRender,C=n.stepFormRender,M=n.stepsProps,O=n.onFinish,h=n.formProps,Z=n.containerStyle,b=n.formRef,N=n.formMapRef,j=(0,ie.Z)(n,Wr),z=(0,u.useRef)(new Map),k=(0,u.useRef)(new Map),W=(0,u.useRef)([]),w=(0,u.useState)([]),ee=(0,J.Z)(w,2),I=ee[0],$=ee[1],A=(0,u.useState)(!1),R=(0,J.Z)(A,2),D=R[0],S=R[1],F=(0,re.YB)(),L=(0,G.Z)(0,{value:n.current,onChange:n.onCurrentChange}),K=(0,J.Z)(L,2),y=K[0],H=K[1],ke=(0,u.useMemo)(function(){return sr[(M==null?void 0:M.direction)||"horizontal"]},[M==null?void 0:M.direction]),ot=(0,u.useMemo)(function(){return y===I.length-1},[I.length,y]),q=(0,u.useCallback)(function(Me,_e){k.current.has(Me)||$(function(wt){return[].concat((0,Ze.Z)(wt),[Me])}),k.current.set(Me,_e)},[]),le=(0,u.useCallback)(function(Me){$(function(_e){return _e.filter(function(wt){return wt!==Me})}),k.current.delete(Me),z.current.delete(Me)},[]);(0,u.useImperativeHandle)(N,function(){return W.current}),(0,u.useImperativeHandle)(b,function(){var Me;return(Me=W.current[y||0])===null||Me===void 0?void 0:Me.current},[y]);var de=(0,u.useCallback)(function(){var Me=(0,g.Z)((0,U.Z)().mark(function _e(wt,en){var un,Rn;return(0,U.Z)().wrap(function(Ht){for(;;)switch(Ht.prev=Ht.next){case 0:if(z.current.set(wt,en),!(!ot||!O)){Ht.next=3;break}return Ht.abrupt("return");case 3:return S(!0),un=Fr.T.apply(void 0,[{}].concat((0,Ze.Z)(Array.from(z.current.values())))),Ht.prev=5,Ht.next=8,O(un);case 8:Rn=Ht.sent,Rn&&(H(0),W.current.forEach(function(St){var ut;return(ut=St.current)===null||ut===void 0?void 0:ut.resetFields()})),Ht.next=15;break;case 12:Ht.prev=12,Ht.t0=Ht.catch(5),console.log(Ht.t0);case 15:return Ht.prev=15,S(!1),Ht.finish(15);case 18:case"end":return Ht.stop()}},_e,null,[[5,12,15,18]])}));return function(_e,wt){return Me.apply(this,arguments)}}(),[ot,O,S,H]),Ve=(0,u.useMemo)(function(){return(0,a.jsx)("div",{className:"".concat(t,"-steps-container"),style:{maxWidth:Math.min(I.length*320,1160)},children:(0,a.jsx)(mr.Z,(0,l.Z)((0,l.Z)({},M),{},{current:y,onChange:void 0,children:I.map(function(Me){var _e=k.current.get(Me);return(0,a.jsx)(mr.Z.Step,(0,l.Z)({title:_e==null?void 0:_e.title},_e==null?void 0:_e.stepProps),Me)})}))})},[I,t,y,M]),$e=(0,Yt.J)(function(){var Me,_e=W.current[y];(Me=_e.current)===null||Me===void 0||Me.submit()}),Ce=(0,Yt.J)(function(){y<1||H(y-1)}),lt=(0,u.useMemo)(function(){return v!==!1&&(0,a.jsx)(fr.Z,(0,l.Z)((0,l.Z)({type:"primary",loading:D},v==null?void 0:v.submitButtonProps),{},{onClick:function(){var _e;v==null||(_e=v.onSubmit)===null||_e===void 0||_e.call(v),$e()},children:F.getMessage("stepsForm.next","\u4E0B\u4E00\u6B65")}),"next")},[F,D,$e,v]),He=(0,u.useMemo)(function(){return v!==!1&&(0,a.jsx)(fr.Z,(0,l.Z)((0,l.Z)({},v==null?void 0:v.resetButtonProps),{},{onClick:function(){var _e;Ce(),v==null||(_e=v.onReset)===null||_e===void 0||_e.call(v)},children:F.getMessage("stepsForm.prev","\u4E0A\u4E00\u6B65")}),"pre")},[F,Ce,v]),mt=(0,u.useMemo)(function(){return v!==!1&&(0,a.jsx)(fr.Z,(0,l.Z)((0,l.Z)({type:"primary",loading:D},v==null?void 0:v.submitButtonProps),{},{onClick:function(){var _e;v==null||(_e=v.onSubmit)===null||_e===void 0||_e.call(v),$e()},children:F.getMessage("stepsForm.submit","\u63D0\u4EA4")}),"submit")},[F,D,$e,v]),Ct=(0,Yt.J)(function(){y>I.length-2||H(y+1)}),Zt=(0,u.useMemo)(function(){var Me=[],_e=y||0;if(_e<1?Me.push(lt):_e+1===I.length?Me.push(He,mt):Me.push(He,lt),Me=Me.filter(u.isValidElement),v&&v.render){var wt,en={form:(wt=W.current[y])===null||wt===void 0?void 0:wt.current,onSubmit:$e,step:y,onPre:Ce};return v.render(en,Me)}return v&&(v==null?void 0:v.render)===!1?null:Me},[I.length,lt,$e,He,Ce,y,mt,v]),Mt=(0,u.useMemo)(function(){return(0,se.Z)(n.children).map(function(Me,_e){var wt=Me.props,en=wt.name||"".concat(_e),un=y===_e,Rn=un?{contentRender:C,submitter:!1}:{};return(0,a.jsx)("div",{className:ge()("".concat(t,"-step"),(0,Y.Z)({},"".concat(t,"-step-active"),un)),children:u.cloneElement(Me,(0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)({},Rn),h),wt),{},{name:en,step:_e,key:en}))},en)})},[h,t,n.children,y,C]),sn=(0,u.useMemo)(function(){return m?m(I.map(function(Me){var _e;return{key:Me,title:(_e=k.current.get(Me))===null||_e===void 0?void 0:_e.title}}),Ve):Ve},[I,Ve,m]),Lt=(0,u.useMemo)(function(){return(0,a.jsxs)("div",{className:"".concat(t,"-container"),style:Z,children:[Mt,c?null:(0,a.jsx)(cn.Z,{children:Zt})]})},[Z,Mt,t,c,Zt]),pn=(0,u.useMemo)(function(){var Me={stepsDom:sn,formDom:Lt};return c?c(ke(Me),Zt):ke(Me)},[sn,Lt,ke,c,Zt]);return(0,a.jsx)("div",{className:t,children:(0,a.jsx)(vn.Z.Provider,(0,l.Z)((0,l.Z)({},j),{},{children:(0,a.jsx)(tr.Provider,{value:{loading:D,setLoading:S,regForm:q,keyArray:I,next:Ct,formArrayRef:W,formMapRef:k,lastStep:ot,unRegForm:le,onFormFinish:de},children:pn})}))})}function Yn(n){return(0,a.jsx)(re.oK,{children:(0,a.jsx)(gr,(0,l.Z)({},n))})}Yn.StepForm=Kr,Yn.useForm=vn.Z.useForm;var Vr=["steps","columns","forceUpdate","grid"],pr=function(e){var o=e.steps,t=e.columns,s=e.forceUpdate,d=e.grid,v=(0,ie.Z)(e,Vr),c=(0,fn.Z)(v),m=(0,u.useCallback)(function(M){var O,h;(O=(h=c.current).onCurrentChange)===null||O===void 0||O.call(h,M),s([])},[s,c]),C=(0,u.useMemo)(function(){return o==null?void 0:o.map(function(M,O){return(0,u.createElement)(gn,(0,l.Z)((0,l.Z)({grid:d},M),{},{key:O,layoutType:"StepForm",columns:t[O]}))})},[t,d,o]);return(0,a.jsx)(Yn,(0,l.Z)((0,l.Z)({},v),{},{onCurrentChange:m,children:C}))},Pn=pr,Qt=function(e){var o=e.children;return(0,a.jsx)(a.Fragment,{children:o})},rn=Qt,Un=r(97462),Qn=function(e,o){var t=o.genItems;if(e.valueType==="dependency"){var s,d,v,c=(s=e.getFieldProps)===null||s===void 0?void 0:s.call(e);return(0,at.ET)(Array.isArray((d=e.name)!==null&&d!==void 0?d:c==null?void 0:c.name),'SchemaForm: fieldProps.name should be NamePath[] when valueType is "dependency"'),(0,at.ET)(typeof e.columns=="function",'SchemaForm: columns should be a function when valueType is "dependency"'),Array.isArray((v=e.name)!==null&&v!==void 0?v:c==null?void 0:c.name)?(0,u.createElement)(Un.Z,(0,l.Z)((0,l.Z)({name:e.name},c),{},{key:e.key}),function(m){return!e.columns||typeof e.columns!="function"?null:t(e.columns(m))}):null}return!0},nr=function(e){if(e.valueType==="divider"){var o;return(0,u.createElement)(An.Z,(0,l.Z)((0,l.Z)({},(o=e.getFieldProps)===null||o===void 0?void 0:o.call(e)),{},{key:e.key}))}return!0},hn=r(31649),yr=function(e,o){var t=o.action,s=o.formRef,d=o.type,v=o.originItem,c=(0,l.Z)((0,l.Z)({},(0,Ae.Z)(e,["dataIndex","width","render","renderFormItem","renderText","title"])),{},{name:e.dataIndex,width:e.width,render:(e==null?void 0:e.render)?function(O,h,Z){var b,N,j;return e==null||(b=e.render)===null||b===void 0?void 0:b.call(e,O,h,Z,t==null?void 0:t.current,(0,l.Z)((0,l.Z)({type:d},e),{},{formItemProps:(N=e.getFormItemProps)===null||N===void 0?void 0:N.call(e),fieldProps:(j=e.getFieldProps)===null||j===void 0?void 0:j.call(e)}))}:void 0}),m=function(){return(0,a.jsx)(hn.Z,(0,l.Z)((0,l.Z)({},c),{},{ignoreFormItem:!0}))},C=(e==null?void 0:e.renderFormItem)?function(O,h){var Z,b,N,j=(0,Be.Z)((0,l.Z)((0,l.Z)({},h),{},{onChange:void 0}));return e==null||(Z=e.renderFormItem)===null||Z===void 0?void 0:Z.call(e,(0,l.Z)((0,l.Z)({type:d},e),{},{formItemProps:(b=e.getFormItemProps)===null||b===void 0?void 0:b.call(e),fieldProps:(N=e.getFieldProps)===null||N===void 0?void 0:N.call(e),originProps:v}),(0,l.Z)((0,l.Z)({},j),{},{defaultRender:m,type:d}),s.current)}:void 0;if(e==null?void 0:e.renderFormItem){var M=C==null?void 0:C(null,{});if(!M||e.ignoreFormItem)return M}return(0,u.createElement)(hn.Z,(0,l.Z)((0,l.Z)({},c),{},{key:"".concat(e.key,"-").concat(e.index),renderFormItem:C}))},_r=r(59962),ur=function(e,o){var t=o.genItems;if(e.valueType==="formList"&&e.dataIndex){var s,d,v,c,m,C,M,O,h,Z,b;return!e.columns||!Array.isArray(e.columns)?null:(0,a.jsx)(_r.u,(0,l.Z)((0,l.Z)({name:e.dataIndex,label:e.label,initialValue:e.initialValue,colProps:e.colProps,rowProps:e.rowProps},(s=e.getFieldProps)===null||s===void 0?void 0:s.call(e)),{},{isValidateList:(d=((m=e.getFormItemProps)===null||m===void 0?void 0:m.call(e))||((C=e.getFieldProps)===null||C===void 0?void 0:C.call(e)))===null||d===void 0||(v=d.rules)===null||v===void 0||(c=v[0])===null||c===void 0?void 0:c.required,emptyListMessage:(M=((Z=e.getFormItemProps)===null||Z===void 0?void 0:Z.call(e))||((b=e.getFieldProps)===null||b===void 0?void 0:b.call(e)))===null||M===void 0||(O=M.rules)===null||O===void 0||(h=O[0])===null||h===void 0?void 0:h.message,children:t(e.columns)}),e.key)}return!0},kr=r(47673),Ar=r(4107),i=r(64893),f=r(2514),p=["children","value","valuePropName","onChange","fieldProps","space","type","transform","convertValue"],ne=["children","space","valuePropName"],ct={space:cn.Z,group:Ar.Z.Group};function Ot(n){var e=arguments.length<=1?void 0:arguments[1];return e&&e.target&&n in e.target?e.target[n]:e}var jt=function(e){var o=e.children,t=e.value,s=t===void 0?[]:t,d=e.valuePropName,v=e.onChange,c=e.fieldProps,m=e.space,C=e.type,M=C===void 0?"space":C,O=e.transform,h=e.convertValue,Z=(0,ie.Z)(e,p),b=(0,Yt.J)(function(I,$){var A,R=(0,Ze.Z)(s);R[$]=Ot(d||"value",I),v==null||v(R),c==null||(A=c.onChange)===null||A===void 0||A.call(c,R)}),N=-1,j=(0,se.Z)(o).map(function(I){if(u.isValidElement(I)){var $,A,R;N+=1;var D=N,S=(I==null||($=I.type)===null||$===void 0?void 0:$.displayName)==="ProFormComponent"||(I==null||(A=I.props)===null||A===void 0?void 0:A.readonly),F=S?(0,l.Z)((0,l.Z)({key:D,ignoreFormItem:!0},I.props||{}),{},{fieldProps:(0,l.Z)((0,l.Z)({},I==null||(R=I.props)===null||R===void 0?void 0:R.fieldProps),{},{onChange:function(){b(arguments.length<=0?void 0:arguments[0],D)}}),value:s==null?void 0:s[D],onChange:void 0}):(0,l.Z)((0,l.Z)({key:D},I.props||{}),{},{value:s==null?void 0:s[D],onChange:function(K){var y,H;b(K,D),(y=(H=I.props).onChange)===null||y===void 0||y.call(H,K)}});return u.cloneElement(I,F)}return I}),z=ct[M],k=(0,f.zx)(Z),W=k.RowWrapper,w=(0,u.useMemo)(function(){return(0,l.Z)({},M==="group"?{compact:!0}:{})},[M]),ee=(0,u.useCallback)(function(I){var $=I.children;return(0,a.jsx)(z,(0,l.Z)((0,l.Z)((0,l.Z)({},w),m),{},{align:"start",children:$}))},[z,m,w]);return(0,a.jsx)(W,{Wrapper:ee,children:j})},vt=u.forwardRef(function(n,e){var o=n.children,t=n.space,s=n.valuePropName,d=(0,ie.Z)(n,ne);return(0,u.useImperativeHandle)(e,function(){return{}}),(0,a.jsx)(jt,(0,l.Z)((0,l.Z)((0,l.Z)({space:t,valuePropName:s},d.fieldProps),{},{onChange:void 0},d),{},{children:o}))}),Kt=(0,i.G)(vt),Xt=Kt,ln=function(e,o){var t=o.genItems;if(e.valueType==="formSet"&&e.dataIndex){var s,d;return!e.columns||!Array.isArray(e.columns)?null:(0,u.createElement)(Xt,(0,l.Z)((0,l.Z)({},(s=e.getFormItemProps)===null||s===void 0?void 0:s.call(e)),{},{key:e.key,initialValue:e.initialValue,name:e.dataIndex,label:e.label,colProps:e.colProps,rowProps:e.rowProps},(d=e.getFieldProps)===null||d===void 0?void 0:d.call(e)),t(e.columns))}return!0},rr=r(24739),Cr=function(e,o){var t=o.genItems;if(e.valueType==="group"){var s;return!e.columns||!Array.isArray(e.columns)?null:(0,a.jsx)(rr.UW,(0,l.Z)((0,l.Z)({label:e.label,colProps:e.colProps,rowProps:e.rowProps},(s=e.getFieldProps)===null||s===void 0?void 0:s.call(e)),{},{children:t(e.columns)}),e.key)}return!0},Zr=function(e){return e.valueType&&typeof e.valueType=="string"&&["index","indexBorder","option"].includes(e==null?void 0:e.valueType)?null:!0},xr=[Zr,Cr,ur,ln,nr,Qn],na=function(e,o){for(var t=0;t0&&arguments[0]!==void 0?arguments[0]:{},d=(0,u.useRef)(),v=(0,u.useRef)(null),c=(0,u.useRef)(),m=(0,u.useRef)(),C=(0,u.useState)(""),M=(0,J.Z)(C,2),O=M[0],h=M[1],Z=(0,u.useRef)([]),b=(0,G.Z)(function(){return s.size||s.defaultSize||"middle"},{value:s.size,onChange:s.onSizeChange}),N=(0,J.Z)(b,2),j=N[0],z=N[1],k=(0,u.useMemo)(function(){var R,D={};return(R=s.columns)===null||R===void 0||R.forEach(function(S,F){var L=S.key,K=S.dataIndex,y=S.fixed,H=S.disable,ke=Tt(L!=null?L:K,F);ke&&(D[ke]={show:!0,fixed:y,disable:H})}),D},[s.columns]),W=(0,G.Z)(function(){var R,D,S=s.columnsState||{},F=S.persistenceType,L=S.persistenceKey;if(L&&F&&typeof window!="undefined"){var K=window[F];try{var y=K==null?void 0:K.getItem(L);if(y)return JSON.parse(y)}catch(H){console.warn(H)}}return s.columnsStateMap||((R=s.columnsState)===null||R===void 0?void 0:R.value)||((D=s.columnsState)===null||D===void 0?void 0:D.defaultValue)||k},{value:((n=s.columnsState)===null||n===void 0?void 0:n.value)||s.columnsStateMap,onChange:((e=s.columnsState)===null||e===void 0?void 0:e.onChange)||s.onColumnsStateChange}),w=(0,J.Z)(W,2),ee=w[0],I=w[1];(0,u.useLayoutEffect)(function(){var R=s.columnsState||{},D=R.persistenceType,S=R.persistenceKey;if(S&&D&&typeof window!="undefined"){var F=window[D];try{var L=F==null?void 0:F.getItem(S);I(L?JSON.parse(L):k)}catch(K){console.warn(K)}}},[s.columnsState,k,I]),(0,at.ET)(!s.columnsStateMap,"columnsStateMap\u5DF2\u7ECF\u5E9F\u5F03\uFF0C\u8BF7\u4F7F\u7528 columnsState.value \u66FF\u6362"),(0,at.ET)(!s.columnsStateMap,"columnsStateMap has been discarded, please use columnSstate.value replacement");var $=(0,u.useCallback)(function(){var R=s.columnsState||{},D=R.persistenceType,S=R.persistenceKey;if(!(!S||!D||typeof window=="undefined")){var F=window[D];try{F==null||F.removeItem(S)}catch(L){console.error(L)}}},[s.columnsState]);(0,u.useEffect)(function(){var R,D;if(!(!((R=s.columnsState)===null||R===void 0?void 0:R.persistenceKey)||!((D=s.columnsState)===null||D===void 0?void 0:D.persistenceType))&&typeof window!="undefined"){var S=s.columnsState,F=S.persistenceType,L=S.persistenceKey,K=window[F];try{K==null||K.setItem(L,JSON.stringify(ee))}catch(y){console.error(y)}}},[(o=s.columnsState)===null||o===void 0?void 0:o.persistenceKey,ee,(t=s.columnsState)===null||t===void 0?void 0:t.persistenceType]);var A={action:d.current,setAction:function(D){d.current=D},sortKeyColumns:Z.current,setSortKeyColumns:function(D){Z.current=D},propsRef:m,columnsMap:ee,keyWords:O,setKeyWords:function(D){return h(D)},setTableSize:z,tableSize:j,prefixName:c.current,setPrefixName:function(D){c.current=D},setColumnsMap:I,columns:s.columns,rootDomRef:v,clearPersistenceStorage:$};return Object.defineProperty(A,"prefixName",{get:function(){return c.current}}),Object.defineProperty(A,"sortKeyColumns",{get:function(){return Z.current}}),Object.defineProperty(A,"action",{get:function(){return d.current}}),A}var Ma=(0,Ra.f)(Ta),dr=Ma,zo=r(63185),Oa=r(9676),Uo=r(20136),Da=r(55241),Wo=r(32157),Ia=r(7573),Na=r(55934),Fa=r(81162),ja=r(81455),Vo=r(16089),Ka=["key","dataIndex","children"],oa=function(e){var o=e.title,t=e.show,s=e.children,d=e.columnKey,v=e.fixed,c=dr.useContainer(),m=c.columnsMap,C=c.setColumnsMap;return t?(0,a.jsx)(Sr.Z,{title:o,children:(0,a.jsx)("span",{onClick:function(O){O.stopPropagation(),O.preventDefault();var h=m[d]||{},Z=typeof h.disable=="boolean"&&h.disable;if(!Z){var b=(0,l.Z)((0,l.Z)({},m),{},(0,Y.Z)({},d,(0,l.Z)((0,l.Z)({},h),{},{fixed:v})));C(b)}},children:s})}):null},Aa=function(e){var o=e.columnKey,t=e.isLeaf,s=e.title,d=e.className,v=e.fixed,c=(0,re.YB)(),m=(0,a.jsxs)("span",{className:"".concat(d,"-list-item-option"),children:[(0,a.jsx)(oa,{columnKey:o,fixed:"left",title:c.getMessage("tableToolBar.leftPin","\u56FA\u5B9A\u5728\u5217\u9996"),show:v!=="left",children:(0,a.jsx)(Na.Z,{})}),(0,a.jsx)(oa,{columnKey:o,fixed:void 0,title:c.getMessage("tableToolBar.noPin","\u4E0D\u56FA\u5B9A"),show:!!v,children:(0,a.jsx)(Fa.Z,{})}),(0,a.jsx)(oa,{columnKey:o,fixed:"right",title:c.getMessage("tableToolBar.rightPin","\u56FA\u5B9A\u5728\u5217\u5C3E"),show:v!=="right",children:(0,a.jsx)(ja.Z,{})})]});return(0,a.jsxs)("span",{className:"".concat(d,"-list-item"),children:[(0,a.jsx)("div",{className:"".concat(d,"-list-item-title"),children:s}),t?null:m]},o)},la=function(e){var o,t,s=e.list,d=e.draggable,v=e.checkable,c=e.className,m=e.showTitle,C=m===void 0?!0:m,M=e.title,O=e.listHeight,h=O===void 0?280:O,Z=dr.useContainer(),b=Z.columnsMap,N=Z.setColumnsMap,j=Z.sortKeyColumns,z=Z.setSortKeyColumns,k=s&&s.length>0,W=(0,u.useMemo)(function(){if(!k)return{};var $=[],A=function R(D,S){return D.map(function(F){var L,K=F.key,y=F.dataIndex,H=F.children,ke=(0,ie.Z)(F,Ka),ot=Tt(K,ke.index),q=b[ot||"null"]||{show:!0};q.show!==!1&&(S==null?void 0:S.show)!==!1&&!H&&$.push(ot);var le=(0,l.Z)((0,l.Z)({key:ot},(0,Ae.Z)(ke,["className"])),{},{selectable:!1,disabled:q.disable===!0,disableCheckbox:typeof q.disable=="boolean"?q.disable:(L=q.disable)===null||L===void 0?void 0:L.checkbox,isLeaf:S?!0:void 0});return H&&(le.children=R(H,q)),le})};return{list:A(s),keys:$}},[b,s,k]),w=(0,Yt.J)(function($,A,R){var D=(0,l.Z)({},b),S=(0,Ze.Z)(j),F=S.findIndex(function(H){return H===$}),L=S.findIndex(function(H){return H===A}),K=R>L;if(!(F<0)){var y=S[F];S.splice(F,1),R===0?S.unshift(y):S.splice(K?L:L+1,0,y),S.forEach(function(H,ke){D[H]=(0,l.Z)((0,l.Z)({},D[H]||{}),{},{order:ke})}),N(D),z(S)}}),ee=(0,Yt.J)(function($){var A=$.node.key,R=(0,l.Z)({},b[A]);R.show=$.checked,N((0,l.Z)((0,l.Z)({},b),{},(0,Y.Z)({},A,R)))});if(!k)return null;var I=(0,a.jsx)(Ia.Z,{itemHeight:24,draggable:d&&!!((o=W.list)===null||o===void 0?void 0:o.length)&&((t=W.list)===null||t===void 0?void 0:t.length)>1,checkable:v,onDrop:function(A){var R=A.node.key,D=A.dragNode.key,S=A.dropPosition,F=A.dropToGap,L=S===-1||!F?S+1:S;w(D,R,L)},blockNode:!0,onCheck:function(A,R){return ee(R)},checkedKeys:W.keys,showLine:!1,titleRender:function(A){var R=(0,l.Z)((0,l.Z)({},A),{},{children:void 0});return(0,a.jsx)(Aa,(0,l.Z)((0,l.Z)({className:c},R),{},{title:(0,qt.h)(R.title,R),columnKey:R.key}))},height:h,treeData:W.list});return(0,a.jsxs)(a.Fragment,{children:[C&&(0,a.jsx)("span",{className:"".concat(c,"-list-title"),children:M}),I]})},La=function(e){var o=e.localColumns,t=e.className,s=e.draggable,d=e.checkable,v=e.listsHeight,c=[],m=[],C=[],M=(0,re.YB)();o.forEach(function(Z){if(!Z.hideInSetting){var b=Z.fixed;if(b==="left"){m.push(Z);return}if(b==="right"){c.push(Z);return}C.push(Z)}});var O=c&&c.length>0,h=m&&m.length>0;return(0,a.jsxs)("div",{className:ge()("".concat(t,"-list"),(0,Y.Z)({},"".concat(t,"-list-group"),O||h)),children:[(0,a.jsx)(la,{title:M.getMessage("tableToolBar.leftFixedTitle","\u56FA\u5B9A\u5728\u5DE6\u4FA7"),list:m,draggable:s,checkable:d,className:t,listHeight:v}),(0,a.jsx)(la,{list:C,draggable:s,checkable:d,title:M.getMessage("tableToolBar.noFixedTitle","\u4E0D\u56FA\u5B9A"),showTitle:h||O,className:t,listHeight:v}),(0,a.jsx)(la,{title:M.getMessage("tableToolBar.rightFixedTitle","\u56FA\u5B9A\u5728\u53F3\u4FA7"),list:c,draggable:s,checkable:d,className:t,listHeight:v})]})};function wa(n){var e,o,t=(0,u.useRef)({}),s=dr.useContainer(),d=n.columns,v=n.checkedReset,c=v===void 0?!0:v,m=s.columnsMap,C=s.setColumnsMap,M=s.clearPersistenceStorage;(0,u.useEffect)(function(){var w,ee;if((w=s.propsRef.current)===null||w===void 0||(ee=w.columnsState)===null||ee===void 0?void 0:ee.value){var I,$;t.current=JSON.parse(JSON.stringify(((I=s.propsRef.current)===null||I===void 0||($=I.columnsState)===null||$===void 0?void 0:$.value)||{}))}},[]);var O=(0,Yt.J)(function(){var w=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,ee={},I=function $(A){A.forEach(function(R){var D=R.key,S=R.fixed,F=R.index,L=R.children,K=Tt(D,F);K&&(ee[K]={show:w,fixed:S}),L&&$(L)})};I(d),C(ee)}),h=(0,Yt.J)(function(w){w.target.checked?O():O(!1)}),Z=(0,Yt.J)(function(){M==null||M(),C(t.current)}),b=Object.values(m).filter(function(w){return!w||w.show===!1}),N=b.length>0&&b.length!==d.length,j=(0,re.YB)(),z=(0,u.useContext)(Ke.ZP.ConfigContext),k=z.getPrefixCls,W=k("pro-table-column-setting");return(0,a.jsx)(Da.Z,{arrowPointAtCenter:!0,title:(0,a.jsxs)("div",{className:"".concat(W,"-title"),children:[(0,a.jsx)(Oa.Z,{indeterminate:N,checked:b.length===0&&b.length!==d.length,onChange:function(ee){return h(ee)},children:j.getMessage("tableToolBar.columnDisplay","\u5217\u5C55\u793A")}),c?(0,a.jsx)("a",{onClick:Z,className:"".concat(W,"-action-rest-button"),children:j.getMessage("tableToolBar.reset","\u91CD\u7F6E")}):null,(n==null?void 0:n.extra)?(0,a.jsx)(cn.Z,{size:12,align:"center",children:n.extra}):null]}),overlayClassName:"".concat(W,"-overlay"),trigger:"click",placement:"bottomRight",content:(0,a.jsx)(La,{checkable:(e=n.checkable)!==null&&e!==void 0?e:!0,draggable:(o=n.draggable)!==null&&o!==void 0?o:!0,className:W,localColumns:d,listsHeight:n.listsHeight}),children:n.children||(0,a.jsx)(Sr.Z,{title:j.getMessage("tableToolBar.columnSetting","\u5217\u8BBE\u7F6E"),children:(0,a.jsx)(ca.Z,{})})})}var Ba=wa,$a=r(38069),_o=r(30887),va=r(28682),ko=r(59250),fa=r(13013),Ho=r(36003),za=["label","key"],Ua=function(e){var o=e.items,t=o===void 0?[]:o,s=e.type,d=s===void 0?"inline":s,v=e.prefixCls,c=e.activeKey,m=(0,G.Z)(c,{value:c,onChange:e.onChange}),C=(0,J.Z)(m,2),M=C[0],O=C[1];if(t.length<1)return null;var h=t.find(function(Z){return Z.key===M})||t[0];return d==="inline"?(0,a.jsx)("div",{className:ge()("".concat(v,"-menu"),"".concat(v,"-inline-menu")),children:t.map(function(Z,b){return(0,a.jsx)("div",{onClick:function(){O(Z.key)},className:ge()("".concat(v,"-inline-menu-item"),h.key===Z.key?"".concat(v,"-inline-menu-item-active"):void 0),children:Z.label},Z.key||b)})}):d==="tab"?(0,a.jsx)(nt.Z,{activeKey:h.key,onTabClick:function(b){return O(b)},children:t.map(function(Z,b){var N=Z.label,j=Z.key,z=(0,ie.Z)(Z,za);return(0,a.jsx)(nt.Z.TabPane,(0,l.Z)({tab:N},z),j||b)})}):(0,a.jsx)("div",{className:ge()("".concat(v,"-menu"),"".concat(v,"-dropdownmenu")),children:(0,a.jsx)(fa.Z,{trigger:["click"],overlay:(0,a.jsx)(va.Z,{selectedKeys:[h.key],onClick:function(b){O(b.key)},items:t.map(function(Z,b){return{key:Z.key||b,disabled:Z.disabled,label:Z.label}})}),children:(0,a.jsxs)(cn.Z,{className:"".concat(v,"-dropdownmenu-label"),children:[h.label,(0,a.jsx)(Jn.Z,{})]})})})},Wa=Ua;function Va(n){if(u.isValidElement(n))return n;if(n){var e=n,o=e.icon,t=e.tooltip,s=e.onClick,d=e.key;return o&&t?(0,a.jsx)(Sr.Z,{title:t,children:(0,a.jsx)("span",{onClick:function(){s&&s(d)},children:o},d)}):o}return null}var _a=function(e){var o=e.prefixCls,t=e.tabs,s=t===void 0?{}:t,d=e.multipleLine,v=e.filtersNode;return d?(0,a.jsx)("div",{className:"".concat(o,"-extra-line"),children:s.items&&s.items.length?(0,a.jsx)(nt.Z,{activeKey:s.activeKey,onChange:s.onChange,tabBarExtraContent:v,children:s.items.map(function(c,m){return(0,a.jsx)(nt.Z.TabPane,(0,l.Z)({},c),c.key||m)})}):v}):null},ka=function(e){var o=e.prefixCls,t=e.title,s=e.subTitle,d=e.tooltip,v=e.className,c=e.style,m=e.search,C=e.onSearch,M=e.multipleLine,O=M===void 0?!1:M,h=e.filter,Z=e.actions,b=Z===void 0?[]:Z,N=e.settings,j=N===void 0?[]:N,z=e.tabs,k=z===void 0?{}:z,W=e.menu,w=(0,re.YB)(),ee=(0,$a.ZP)(),I=ee==="sm"||ee==="xs",$=w.getMessage("tableForm.inputPlaceholder","\u8BF7\u8F93\u5165"),A=(0,u.useMemo)(function(){return m?u.isValidElement(m)?m:(0,a.jsx)(Ar.Z.Search,(0,l.Z)((0,l.Z)({style:{width:200},placeholder:$},m),{},{onSearch:function(){for(var de,Ve=arguments.length,$e=new Array(Ve),Ce=0;CeCt||mt!==void 0&&j&&j.length<=Ct&<.run(!1)},[R==null?void 0:R.current]),(0,u.useEffect)(function(){!ot||lt.run(!1)},[R==null?void 0:R.pageSize]),(0,Dt.ZP)(function(){return lt.run(!1),c||(h.current=!1),function(){lt.cancel()}},[].concat((0,Ze.Z)(Ve),[c])),{dataSource:j,setDataSource:z,loading:w,reload:function(){var He=(0,g.Z)((0,U.Z)().mark(function Ct(){return(0,U.Z)().wrap(function(Mt){for(;;)switch(Mt.prev=Mt.next){case 0:return Mt.next=2,lt.run(!1);case 2:case"end":return Mt.stop()}},Ct)}));function mt(){return He.apply(this,arguments)}return mt}(),pageInfo:R,pollingLoading:K,reset:function(){var He=(0,g.Z)((0,U.Z)().mark(function Ct(){var Zt,Mt,sn,Lt,pn,Me,_e,wt;return(0,U.Z)().wrap(function(un){for(;;)switch(un.prev=un.next){case 0:Zt=t||{},Mt=Zt.pageInfo,sn=Mt||{},Lt=sn.defaultCurrent,pn=Lt===void 0?1:Lt,Me=sn.defaultPageSize,_e=Me===void 0?20:Me,wt={current:pn,total:0,pageSize:_e},S(wt);case 4:case"end":return un.stop()}},Ct)}));function mt(){return He.apply(this,arguments)}return mt}(),setPageInfo:function(){var He=(0,g.Z)((0,U.Z)().mark(function Ct(Zt){return(0,U.Z)().wrap(function(sn){for(;;)switch(sn.prev=sn.next){case 0:S((0,l.Z)((0,l.Z)({},R),Zt));case 1:case"end":return sn.stop()}},Ct)}));function mt(Ct){return He.apply(this,arguments)}return mt}()}},co=uo,vo=function(e){return function(o,t){var s,d,v=o.fixed,c=o.index,m=t.fixed,C=t.index;if(v==="left"&&m!=="left"||m==="right"&&v!=="right")return-2;if(m==="left"&&v!=="left"||v==="right"&&m!=="right")return 2;var M=o.key||"".concat(c),O=t.key||"".concat(C);if(((s=e[M])===null||s===void 0?void 0:s.order)||((d=e[O])===null||d===void 0?void 0:d.order)){var h,Z;return(((h=e[M])===null||h===void 0?void 0:h.order)||0)-(((Z=e[O])===null||Z===void 0?void 0:Z.order)||0)}return(o.index||0)-(t.index||0)}},fo=r(53227),mo=function(e){var o={};return Object.keys(e||{}).forEach(function(t){var s;Array.isArray(e[t])&&((s=e[t])===null||s===void 0?void 0:s.length)===0||e[t]!==void 0&&(o[t]=e[t])}),o},ho=mo,go=r(77398),po=r(74763),yo=r(88306),Co=r(66758),Zo=r(94984),sa=r(2026),xo=["children"],bo=["",null,void 0],ha=function(){for(var e=arguments.length,o=new Array(e),t=0;tZt.length?(Zt.push(lt),Zt):(Zt.splice((v==null?void 0:v.current)*(v==null?void 0:v.pageSize)-1,0,lt),Zt)}return[].concat((0,Ze.Z)(t.dataSource),[lt])},K=function(){return(0,l.Z)((0,l.Z)({},R),{},{size:m,rowSelection:c===!1?void 0:c,className:o,style:M,columns:S.map(function(Ve){return Ve.isExtraColumns?Ve.extraColumn:Ve}),loading:t.loading,dataSource:$.newLineRecord?L(t.dataSource):t.dataSource,pagination:v,onChange:function($e,Ce,lt,He){var mt;if((mt=R.onChange)===null||mt===void 0||mt.call(R,$e,Ce,lt,He),F||k((0,Be.Z)(Ce)),Array.isArray(lt)){var Ct=lt.reduce(function(Lt,pn){return(0,l.Z)((0,l.Z)({},Lt),{},(0,Y.Z)({},"".concat(pn.field),pn.order))},{});z((0,Be.Z)(Ct))}else{var Zt,Mt=(Zt=lt.column)===null||Zt===void 0?void 0:Zt.sorter,sn=(Mt==null?void 0:Mt.toString())===Mt;z((0,Be.Z)((0,Y.Z)({},"".concat(sn?Mt:lt.field),lt.order))||{})}}})},y=(0,a.jsx)(xe.Z,(0,l.Z)((0,l.Z)({},K()),{},{rowKey:e})),H=n.tableViewRender?n.tableViewRender((0,l.Z)((0,l.Z)({},K()),{},{rowSelection:c!==!1?c:void 0}),y):y,ke=(0,u.useMemo)(function(){if(n.editable&&!n.name){var de,Ve,$e,Ce;return(0,a.jsxs)(a.Fragment,{children:[O,N,(0,u.createElement)(me.ZP,(0,l.Z)((0,l.Z)({},(de=n.editable)===null||de===void 0?void 0:de.formProps),{},{formRef:(Ve=n.editable)===null||Ve===void 0||($e=Ve.formProps)===null||$e===void 0?void 0:$e.formRef,component:!1,form:(Ce=n.editable)===null||Ce===void 0?void 0:Ce.form,onValuesChange:$.onValuesChange,key:"table",submitter:!1,omitNil:!1,dateFormatter:n.dateFormatter}),H)]})}return(0,a.jsxs)(a.Fragment,{children:[O,N,H]})},[N,n.loading,!!n.editable,H,O]),ot=b===!1||!!n.name?ke:(0,a.jsx)(te,(0,l.Z)((0,l.Z)({ghost:n.ghost,bordered:Ne("table",I),bodyStyle:O?{paddingTop:0}:{padding:0}},b),{},{children:ke})),q=function(){return n.tableRender?n.tableRender(n,ot,{toolbar:O||void 0,alert:N||void 0,table:H||void 0}):ot},le=(0,a.jsxs)("div",{className:ge()(ee,(0,Y.Z)({},"".concat(ee,"-polling"),t.pollingLoading)),style:Z,ref:D.rootDomRef,children:[w?null:h,d!=="form"&&n.tableExtraRender&&(0,a.jsx)("div",{className:"".concat(ee,"-extra"),children:n.tableExtraRender(n,t.dataSource||[])}),d!=="form"&&q()]});return!W||!(W==null?void 0:W.fullScreen)?le:(0,a.jsx)(Ke.ZP,{getPopupContainer:function(){return D.rootDomRef.current||document.body},children:le})}var No={},Fo=function(e){var o,t=e.cardBordered,s=e.request,d=e.className,v=e.params,c=v===void 0?No:v,m=e.defaultData,C=e.headerTitle,M=e.postData,O=e.ghost,h=e.pagination,Z=e.actionRef,b=e.columns,N=b===void 0?[]:b,j=e.toolBarRender,z=e.onLoad,k=e.onRequestError,W=e.style,w=e.cardProps,ee=e.tableStyle,I=e.tableClassName,$=e.columnsStateMap,A=e.onColumnsStateChange,R=e.options,D=e.search,S=e.name,F=e.onLoadingChange,L=e.rowSelection,K=L===void 0?!1:L,y=e.beforeSearchSubmit,H=e.tableAlertRender,ke=e.defaultClassName,ot=e.formRef,q=e.type,le=q===void 0?"table":q,de=e.columnEmptyText,Ve=de===void 0?"-":de,$e=e.toolbar,Ce=e.rowKey,lt=e.manualRequest,He=e.polling,mt=e.tooltip,Ct=e.revalidateOnFocus,Zt=Ct===void 0?!1:Ct,Mt=(0,ie.Z)(e,Do),sn=ge()(ke,d),Lt=(0,u.useRef)(),pn=(0,u.useRef)(),Me=ot||pn;(0,u.useImperativeHandle)(Z,function(){return Lt.current});var _e=(0,Ye.Z)(K?(K==null?void 0:K.defaultSelectedRowKeys)||[]:void 0,{value:K?K.selectedRowKeys:void 0}),wt=(0,J.Z)(_e,2),en=wt[0],un=wt[1],Rn=(0,u.useRef)([]),Wn=(0,u.useCallback)(function(oe,be){un(oe),(!K||!(K==null?void 0:K.selectedRowKeys))&&(Rn.current=be)},[un]),Ht=(0,Ye.Z)(function(){if(!(lt||D!==!1))return{}}),St=(0,J.Z)(Ht,2),ut=St[0],Lr=St[1],Xr=(0,Ye.Z)({}),ar=(0,J.Z)(Xr,2),Xn=ar[0],Er=ar[1],Hr=(0,Ye.Z)({}),qr=(0,J.Z)(Hr,2),Gr=qr[0],Jr=qr[1];(0,u.useEffect)(function(){var oe=Jt(N),be=oe.sort,xt=oe.filter;Er(xt),Jr(be)},[]);var ea=(0,re.YB)(),ta=(0,De.Z)(h)==="object"?h:{defaultCurrent:1,defaultPageSize:20,pageSize:20,current:1},Gt=dr.useContainer(),Cn=(0,u.useMemo)(function(){if(!!s)return function(){var oe=(0,g.Z)((0,U.Z)().mark(function be(xt){var Bt,Mn;return(0,U.Z)().wrap(function(_n){for(;;)switch(_n.prev=_n.next){case 0:return Bt=(0,l.Z)((0,l.Z)((0,l.Z)({},xt||{}),ut),c),delete Bt._timestamp,_n.next=4,s(Bt,Gr,Xn);case 4:return Mn=_n.sent,_n.abrupt("return",Mn);case 6:case"end":return _n.stop()}},be)}));return function(be){return oe.apply(this,arguments)}}()},[ut,c,Xn,Gr,s]),et=co(Cn,m,{pageInfo:h===!1?!1:ta,loading:e.loading,dataSource:e.dataSource,onDataSourceChange:e.onDataSourceChange,onLoad:z,onLoadingChange:F,onRequestError:k,postData:M,revalidateOnFocus:Zt,manual:ut===void 0,polling:He,effects:[(0,Nt.P)(c),(0,Nt.P)(ut),(0,Nt.P)(Xn),(0,Nt.P)(Gr)],debounceTime:e.debounceTime,onPageInfoChange:function(be){var xt,Bt;le==="list"||!h||!Cn||(h==null||(xt=h.onChange)===null||xt===void 0||xt.call(h,be.current,be.pageSize),h==null||(Bt=h.onShowSizeChange)===null||Bt===void 0||Bt.call(h,be.current,be.pageSize))}});(0,u.useEffect)(function(){var oe;if(!(e.manualRequest||!e.request||!Zt||((oe=e.form)===null||oe===void 0?void 0:oe.ignoreRules))){var be=function(){document.visibilityState==="visible"&&et.reload()};return document.addEventListener("visibilitychange",be),function(){return document.removeEventListener("visibilitychange",be)}}},[]);var tn=u.useRef(new Map),xn=u.useMemo(function(){return typeof Ce=="function"?Ce:function(oe,be){var xt;return be===-1?oe==null?void 0:oe[Ce]:e.name?be==null?void 0:be.toString():(xt=oe==null?void 0:oe[Ce])!==null&&xt!==void 0?xt:be==null?void 0:be.toString()}},[e.name,Ce]);(0,u.useMemo)(function(){var oe;if((oe=et.dataSource)===null||oe===void 0?void 0:oe.length){var be=new Map,xt=et.dataSource.map(function(Bt){var Mn=xn(Bt,-1);return be.set(Mn,Bt),Mn});return tn.current=be,xt}return[]},[et.dataSource,xn]),(0,u.useEffect)(function(){Rn.current=en==null?void 0:en.map(function(oe){var be;return(be=tn.current)===null||be===void 0?void 0:be.get(oe)})},[en]);var jn=(0,u.useMemo)(function(){var oe=h===!1?!1:(0,l.Z)({},h),be=(0,l.Z)((0,l.Z)({},et.pageInfo),{},{setPageInfo:function(Bt){var Mn=Bt.pageSize,qn=Bt.current,_n=et.pageInfo;if(Mn===_n.pageSize||_n.current===1){et.setPageInfo({pageSize:Mn,current:qn});return}s&&et.setDataSource([]),et.setPageInfo({pageSize:Mn,current:le==="list"?qn:1})}});return s&&oe&&(delete oe.onChange,delete oe.onShowSizeChange),ve(oe,be,ea)},[h,et,ea]);(0,Dt.ZP)(function(){var oe;e.request&&c&&et.dataSource&&(et==null||(oe=et.pageInfo)===null||oe===void 0?void 0:oe.current)!==1&&et.setPageInfo({current:1})},[c]),Gt.setPrefixName(e.name);var Vn=(0,u.useCallback)(function(){K&&K.onChange&&K.onChange([],[],{type:"none"}),Wn([],[])},[K,Wn]);Gt.setAction(Lt.current),Gt.propsRef.current=e;var Tn=(0,Re.ZP)((0,l.Z)((0,l.Z)({},e.editable),{},{tableName:e.name,getRowKey:xn,childrenColumnName:((o=e.expandable)===null||o===void 0?void 0:o.childrenColumnName)||"children",dataSource:et.dataSource||[],setDataSource:function(be){var xt,Bt;(xt=e.editable)===null||xt===void 0||(Bt=xt.onValuesChange)===null||Bt===void 0||Bt.call(xt,void 0,be),et.setDataSource(be)}}));Ge(Lt,et,{fullScreen:function(){var be;if(!(!((be=Gt.rootDomRef)===null||be===void 0?void 0:be.current)||!document.fullscreenEnabled))if(document.fullscreenElement)document.exitFullscreen();else{var xt;(xt=Gt.rootDomRef)===null||xt===void 0||xt.current.requestFullscreen()}},onCleanSelected:function(){Vn()},resetAll:function(){var be;Vn(),Er({}),Jr({}),Gt.setKeyWords(void 0),et.setPageInfo({current:1}),Me==null||(be=Me.current)===null||be===void 0||be.resetFields(),Lr({})},editableUtils:Tn}),Z&&(Z.current=Lt.current);var Ln=(0,u.useMemo)(function(){var oe;return pa({columns:N,counter:Gt,columnEmptyText:Ve,type:le,editableUtils:Tn,rowKey:Ce,childrenColumnName:(oe=e.expandable)===null||oe===void 0?void 0:oe.childrenColumnName}).sort(vo(Gt.columnsMap))},[N,Gt==null?void 0:Gt.sortKeyColumns,Gt==null?void 0:Gt.columnsMap,Ve,le,Tn.editableKeys&&Tn.editableKeys.join(",")]);(0,Dt.Au)(function(){if(Ln&&Ln.length>0){var oe=Ln.map(function(be){return Tt(be.key,be.index)});Gt.setSortKeyColumns(oe)}},[Ln],["render","renderFormItem"],100),(0,Dt.ZP)(function(){var oe=et.pageInfo,be=h||{},xt=be.current,Bt=xt===void 0?oe==null?void 0:oe.current:xt,Mn=be.pageSize,qn=Mn===void 0?oe==null?void 0:oe.pageSize:Mn;h&&(Bt||qn)&&(qn!==(oe==null?void 0:oe.pageSize)||Bt!==(oe==null?void 0:oe.current))&&et.setPageInfo({pageSize:qn||oe.pageSize,current:Bt||oe.current})},[h&&h.pageSize,h&&h.current]);var ua=(0,l.Z)((0,l.Z)({selectedRowKeys:en},K),{},{onChange:function(be,xt,Bt){K&&K.onChange&&K.onChange(be,xt,Bt),Wn(be,xt)}}),da=D!==!1&&(D==null?void 0:D.filterType)==="light",Ko=function(be){if(R&&R.search){var xt,Bt,Mn=R.search===!0?{}:R.search,qn=Mn.name,_n=qn===void 0?"keyword":qn,Bo=(xt=R.search)===null||xt===void 0||(Bt=xt.onSearch)===null||Bt===void 0?void 0:Bt.call(xt,Gt.keyWords);if(Bo!==!1){Lr((0,l.Z)((0,l.Z)({},be),{},(0,Y.Z)({},_n,Gt.keyWords)));return}}Lr(be)},Ao=(0,u.useMemo)(function(){if((0,De.Z)(et.loading)==="object"){var oe;return((oe=et.loading)===null||oe===void 0?void 0:oe.spinning)||!1}return et.loading},[et.loading]),Ca=D===!1&&le!=="form"?null:(0,a.jsx)(Ea,{pagination:jn,beforeSearchSubmit:y,action:Lt,columns:N,onFormSearchSubmit:function(be){Ko(be)},ghost:O,onReset:e.onReset,onSubmit:e.onSubmit,loading:!!Ao,manualRequest:lt,search:D,form:e.form,formRef:Me,type:e.type||"table",cardBordered:e.cardBordered,dateFormatter:e.dateFormatter}),Lo=j===!1?null:(0,a.jsx)(oo,{headerTitle:C,hideToolbar:R===!1&&!C&&!j&&!$e&&!da,selectedRows:Rn.current,selectedRowKeys:en,tableColumn:Ln,tooltip:mt,toolbar:$e,onFormSearchSubmit:function(be){Lr((0,l.Z)((0,l.Z)({},ut),be))},searchNode:da?Ca:null,options:R,actionRef:Lt,toolBarRender:j}),wo=K!==!1?(0,a.jsx)(E,{selectedRowKeys:en,selectedRows:Rn.current,onCleanSelected:Vn,alertOptionRender:Mt.tableAlertOptionRender,alertInfoRender:H,alwaysShowAlert:K==null?void 0:K.alwaysShowAlert}):null;return(0,a.jsx)(Io,(0,l.Z)((0,l.Z)({},e),{},{name:S,size:Gt.tableSize,onSizeChange:Gt.setTableSize,pagination:jn,searchNode:Ca,rowSelection:K!==!1?ua:void 0,className:sn,tableColumn:Ln,isLightFilter:da,action:et,alertDom:wo,toolbarDom:Lo,onSortChange:Jr,onFilterChange:Er,editableUtils:Tn,getRowKey:xn}))},ya=function(e){var o=(0,u.useContext)(Ke.ZP.ConfigContext),t=o.getPrefixCls,s=e.ErrorBoundary===!1?u.Fragment:e.ErrorBoundary||bn.Z;return(0,a.jsx)(dr.Provider,{initialState:e,children:(0,a.jsx)(re.oK,{children:(0,a.jsx)(s,{children:(0,a.jsx)(Fo,(0,l.Z)({defaultClassName:t("pro-table")},e))})})})};ya.Summary=xe.Z.Summary;var jo=ya},16894:function($t,tt,r){"use strict";var U=r(78775),g=r(65899);tt.ZP=g.Z},94984:function($t,tt,r){"use strict";var U=r(9715),g=r(55843),De=r(81253),J=r(28991),ae=r(20136),Ke=r(55241),Ie=r(84305),xe=r(39559),Y=r(28481),Ze=r(85893),l=r(7085),ie=r(67294),u=r(25394),a=r.n(u),Et=["label","rules","name","children","popoverProps"],nt=["errorType","rules","name","popoverProps","children"],zt={marginTop:-5,marginBottom:-5,marginLeft:0,marginRight:0},dn=function(gt){var it=gt.inputProps,Se=gt.input,ge=gt.extra,Ae=gt.errorList,se=gt.popoverProps,at=(0,ie.useState)(!1),Fe=(0,Y.Z)(at,2),It=Fe[0],ze=Fe[1],Je=(0,ie.useState)([]),rt=(0,Y.Z)(Je,2),Le=rt[0],pe=rt[1],G=(0,ie.useContext)(xe.ZP.ConfigContext),fe=G.getPrefixCls;(0,ie.useEffect)(function(){it.validateStatus!=="validating"&&pe(it.errors)},[it.errors,it.validateStatus]);var je=fe();return(0,Ze.jsx)(Ke.Z,(0,J.Z)((0,J.Z)({trigger:(se==null?void 0:se.trigger)||"focus",placement:(se==null?void 0:se.placement)||"topRight",visible:Le.length<1?!1:It,onVisibleChange:function(Pt){Pt!==It&&ze(Pt)},getPopupContainer:se==null?void 0:se.getPopupContainer,getTooltipContainer:se==null?void 0:se.getTooltipContainer,content:(0,Ze.jsxs)("div",{className:"".concat(je,"-form-item-with-help"),children:[it.validateStatus==="validating"?(0,Ze.jsx)(l.Z,{}):null,Ae]})},se),{},{children:(0,Ze.jsxs)("div",{children:[Se,ge]})}),"popover")},Vt=function(gt){var it=gt.label,Se=gt.rules,ge=gt.name,Ae=gt.children,se=gt.popoverProps,at=(0,De.Z)(gt,Et);return(0,Ze.jsx)(g.Z.Item,(0,J.Z)((0,J.Z)({preserve:!1,name:ge,rules:Se,hasFeedback:!0,_internalItemRender:{mark:"pro_table_render",render:function(It,ze){return(0,Ze.jsx)(dn,(0,J.Z)({inputProps:It,popoverProps:se},ze))}}},at),{},{style:(0,J.Z)((0,J.Z)({},zt),at==null?void 0:at.style),children:Ae}))};tt.Z=function(ht){var gt=ht.errorType,it=ht.rules,Se=ht.name,ge=ht.popoverProps,Ae=ht.children,se=(0,De.Z)(ht,nt);return Se&&(it==null?void 0:it.length)&>==="popover"?(0,Ze.jsx)(Vt,(0,J.Z)((0,J.Z)({name:Se,rules:it,popoverProps:ge},se),{},{children:Ae})):(0,Ze.jsx)(g.Z.Item,(0,J.Z)((0,J.Z)({rules:it},se),{},{style:(0,J.Z)((0,J.Z)({},zt),se.style),name:Se,children:Ae}))}},77398:function($t,tt,r){"use strict";r.d(tt,{X:function(){return ae}});var U=r(402),g=r(56256),De=r(85893),J=function(Ie){var xe;return!!((Ie==null||(xe=Ie.valueType)===null||xe===void 0?void 0:xe.toString().startsWith("date"))||(Ie==null?void 0:Ie.valueType)==="select"||(Ie==null?void 0:Ie.valueEnum))},ae=function(Ie,xe,Y){if(xe.copyable||xe.ellipsis){var Ze=xe.copyable&&Y?{text:Y,tooltips:["",""]}:void 0,l=J(xe),ie=xe.ellipsis&&Y?{tooltip:l?(0,De.jsx)("div",{className:"pro-table-tooltip-text",children:Ie}):Y}:!1;return(0,De.jsx)(g.Z.Text,{style:{width:"100%",margin:0,padding:0},title:"",copyable:Ze,ellipsis:ie,children:Ie})}return Ie}},2026:function($t,tt,r){"use strict";var U=r(22270),g=function(J,ae,Ke){return ae===void 0?J:(0,U.h)(J,ae,Ke)};tt.Z=g},86671:function($t,tt,r){"use strict";r.d(tt,{sN:function(){return G},cx:function(){return fe},aX:function(){return Pe}});var U=r(34792),g=r(48086),De=r(62350),J=r(24565),ae=r(55507),Ke=r(99809),Ie=r(92137),xe=r(28481),Y=r(9715),Ze=r(55843),l=r(96156),ie=r(85061),u=r(81253),a=r(28991),Et=r(90484),nt=r(85893),zt=r(7085),dn=r(78775),Vt=r(84164),ht=r(21770),gt=r(88306),it=r(8880),Se=r(80334),ge=r(67294),Ae=r(48171),se=r(10178),at=r(41036),Fe=r(27068),It=r(26369),ze=r(92210),Je=r(56725),rt=["map_row_parentKey"],Le=["map_row_parentKey","map_row_key"],pe=["map_row_key"],G=function(Q){return Array.isArray(Q)?Q.join(","):Q};function fe(x,Q){var Qe,ye=x.getRowKey,Oe=x.row,st=x.data,ft=x.childrenColumnName,dt=(Qe=G(x.key))===null||Qe===void 0?void 0:Qe.toString(),Ue=new Map;function Ut(qe,we,_){qe.forEach(function(ue,te){var me=(_||0)*10+te,re=ye(ue,me).toString();ue&&(0,Et.Z)(ue)==="object"&&ft in ue&&Ut(ue[ft]||[],re,me);var Re=(0,a.Z)((0,a.Z)({},ue),{},{map_row_key:re,children:void 0,map_row_parentKey:we});delete Re.children,we||delete Re.map_row_parentKey,Ue.set(re,Re)})}Q==="top"&&Ue.set(dt,(0,a.Z)((0,a.Z)({},Ue.get(dt)),Oe)),Ut(st),Q==="update"&&Ue.set(dt,(0,a.Z)((0,a.Z)({},Ue.get(dt)),Oe)),Q==="delete"&&Ue.delete(dt);var Rt=function(we){var _=new Map,ue=[],te=function(){we.forEach(function(re){if(re.map_row_parentKey&&!re.map_row_key){var Re=re.map_row_parentKey,Be=(0,u.Z)(re,rt);_.set(Re,[].concat((0,ie.Z)(_.get(Re)||[]),[Be]))}})};return Q==="top"&&te(),we.forEach(function(me){if(me.map_row_parentKey&&me.map_row_key){var re=me.map_row_parentKey,Re=me.map_row_key,Be=(0,u.Z)(me,Le);_.has(Re)&&(Be[ft]=_.get(Re)),_.set(re,[].concat((0,ie.Z)(_.get(re)||[]),[Be]))}}),Q==="update"&&te(),we.forEach(function(me){if(!me.map_row_parentKey){var re=me.map_row_key,Re=(0,u.Z)(me,pe);if(re&&_.has(re)){var Be=(0,a.Z)((0,a.Z)({},Re),{},(0,l.Z)({},ft,_.get(re)));ue.push(Be);return}ue.push(Re)}}),ue};return Rt(Ue)}function je(x){var Q=x.recordKey,Qe=x.onSave,ye=x.row,Oe=x.children,st=x.newLineConfig,ft=x.editorType,dt=x.tableName,Ue=(0,ge.useContext)(at.Z),Ut=Ze.Z.useFormInstance(),Rt=(0,Je.Z)(!1),qe=(0,xe.Z)(Rt,2),we=qe[0],_=qe[1];return(0,nt.jsxs)("a",{onClick:function(){var ue=(0,Ie.Z)((0,ae.Z)().mark(function me(re){var Re,Be,Ye,Dt,bn,Nt,kn,wn,En;return(0,ae.Z)().wrap(function(T){for(;;)switch(T.prev=T.next){case 0:return re.stopPropagation(),re.preventDefault(),T.prev=2,Be=ft==="Map",Ye=[dt,Array.isArray(Q)?Q[0]:Q].map(function(B){return B==null?void 0:B.toString()}).flat(1).filter(Boolean),_(!0),T.next=8,Ut.validateFields(Ye,{recursive:!0});case 8:return Dt=((Re=Ue.getFieldFormatValue)===null||Re===void 0?void 0:Re.call(Ue,Ye))||Ut.getFieldValue(Ye),Array.isArray(Q)&&Q.length>1&&(bn=(0,Ke.Z)(Q),Nt=bn.slice(1),kn=(0,gt.Z)(Dt,Nt),(0,it.Z)(Dt,Nt,kn)),wn=Be?(0,it.Z)({},Ye,Dt,!0):Dt,T.next=13,Qe==null?void 0:Qe(Q,(0,ze.T)({},ye,wn),ye,st);case 13:return En=T.sent,_(!1),T.abrupt("return",En);case 18:return T.prev=18,T.t0=T.catch(2),console.log(T.t0),_(!1),T.abrupt("return",null);case 23:case"end":return T.stop()}},me,null,[[2,18]])}));function te(me){return ue.apply(this,arguments)}return te}(),children:[we?(0,nt.jsx)(zt.Z,{style:{marginRight:8}}):null,Oe||"\u4FDD\u5B58"]},"save")}var Ee=function(Q){var Qe=Q.recordKey,ye=Q.onDelete,Oe=Q.row,st=Q.children,ft=Q.deletePopconfirmMessage,dt=(0,Je.Z)(function(){return!1}),Ue=(0,xe.Z)(dt,2),Ut=Ue[0],Rt=Ue[1],qe=(0,Ae.J)((0,Ie.Z)((0,ae.Z)().mark(function we(){var _;return(0,ae.Z)().wrap(function(te){for(;;)switch(te.prev=te.next){case 0:return te.prev=0,Rt(!0),te.next=4,ye==null?void 0:ye(Qe,Oe);case 4:return _=te.sent,Rt(!1),te.abrupt("return",_);case 9:return te.prev=9,te.t0=te.catch(0),console.log(te.t0),Rt(!1),te.abrupt("return",null);case 14:case"end":return te.stop()}},we,null,[[0,9]])})));return st!==!1?(0,nt.jsx)(J.Z,{title:ft,onConfirm:function(){return qe()},children:(0,nt.jsxs)("a",{children:[Ut?(0,nt.jsx)(zt.Z,{style:{marginRight:8}}):null,st||"\u5220\u9664"]})},"delete"):null},Pt=function(Q){var Qe=Q.recordKey,ye=Q.tableName,Oe=Q.newLineConfig,st=Q.editorType,ft=Q.onCancel,dt=Q.cancelEditable,Ue=Q.row,Ut=Q.cancelText,Rt=(0,ge.useContext)(at.Z),qe=Ze.Z.useFormInstance();return(0,nt.jsx)("a",{onClick:function(){var we=(0,Ie.Z)((0,ae.Z)().mark(function ue(te){var me,re,Re,Be,Ye,Dt;return(0,ae.Z)().wrap(function(Nt){for(;;)switch(Nt.prev=Nt.next){case 0:return te.stopPropagation(),te.preventDefault(),re=st==="Map",Re=[ye,Qe].flat(1).filter(Boolean),Be=((me=Rt.getFieldFormatValue)===null||me===void 0?void 0:me.call(Rt,Re))||qe.getFieldValue(Re),Ye=re?(0,it.Z)({},Re,Be):Be,Nt.next=8,ft==null?void 0:ft(Qe,Ye,Ue,Oe);case 8:return Dt=Nt.sent,dt(Qe),qe.setFieldsValue((0,l.Z)({},Qe,re?(0,gt.Z)(Ue,Re):Ue)),Nt.abrupt("return",Dt);case 12:case"end":return Nt.stop()}},ue)}));function _(ue){return we.apply(this,arguments)}return _}(),children:Ut||"\u53D6\u6D88"},"cancel")};function Pe(x,Q){var Qe=Q.recordKey,ye=Q.newLineConfig,Oe=Q.saveText,st=Q.deleteText;return[(0,nt.jsx)(je,(0,a.Z)((0,a.Z)({},Q),{},{row:x,children:Oe}),"save"+Qe),(ye==null?void 0:ye.options.recordKey)!==Qe?(0,nt.jsx)(Ee,(0,a.Z)((0,a.Z)({},Q),{},{row:x,children:st}),"delete"+Qe):null,(0,nt.jsx)(Pt,(0,a.Z)((0,a.Z)({},Q),{},{row:x}),"cancel"+Qe)]}function _t(x){var Q=(0,ge.useState)(void 0),Qe=(0,xe.Z)(Q,2),ye=Qe[0],Oe=Qe[1],st=(0,ge.useRef)(new Map),ft=(0,ge.useRef)(void 0);(0,Fe.Au)(function(){var E=new Map,P=function V(ce,he){ce==null||ce.forEach(function(We,Xe){var ve,Ge=he==null?Xe.toString():he+"_"+Xe.toString();E.set(Ge,G(x.getRowKey(We,-1))),E.set((ve=G(x.getRowKey(We,-1)))===null||ve===void 0?void 0:ve.toString(),Ge),x.childrenColumnName&&We[x.childrenColumnName]&&V(We[x.childrenColumnName],Ge)})};P(x.dataSource),st.current=E},[x.dataSource]),ft.current=ye;var dt=x.type||"single",Ue=(0,Vt.Z)(x.dataSource,"children",x.getRowKey),Ut=(0,xe.Z)(Ue,1),Rt=Ut[0],qe=(0,ht.Z)([],{value:x.editableKeys,onChange:x.onChange?function(E){var P;x==null||(P=x.onChange)===null||P===void 0||P.call(x,E.filter(function(V){return V!==void 0}),E.map(function(V){return Rt(V)}).filter(function(V){return V!==void 0}))}:void 0}),we=(0,xe.Z)(qe,2),_=we[0],ue=we[1],te=(0,ge.useMemo)(function(){var E=dt==="single"?_==null?void 0:_.slice(0,1):_;return new Set(E)},[(_||[]).join(","),dt]),me=(0,It.Z)(_),re=(0,Ae.J)(function(E){var P,V,ce,he,We=(P=x.getRowKey(E,E.index))===null||P===void 0||(V=P.toString)===null||V===void 0?void 0:V.call(P),Xe=(ce=x.getRowKey(E,-1))===null||ce===void 0||(he=ce.toString)===null||he===void 0?void 0:he.call(ce),ve=_.map(function(Ne){return Ne==null?void 0:Ne.toString()}),Ge=(me==null?void 0:me.map(function(Ne){return Ne==null?void 0:Ne.toString()}))||[],bt=x.tableName&&!!(Ge==null?void 0:Ge.includes(Xe))||!!(Ge==null?void 0:Ge.includes(We));return{recordKey:Xe,isEditable:x.tableName&&(ve==null?void 0:ve.includes(Xe))||(ve==null?void 0:ve.includes(We)),preIsEditable:bt}}),Re=(0,Ae.J)(function(E){return te.size>0&&dt==="single"&&x.onlyOneLineEditorAlertMessage!==!1?(g.default.warn(x.onlyOneLineEditorAlertMessage||"\u53EA\u80FD\u540C\u65F6\u7F16\u8F91\u4E00\u884C"),!1):(te.add(E),ue(Array.from(te)),!0)}),Be=(0,Ae.J)(function(){var E=(0,Ie.Z)((0,ae.Z)().mark(function P(V,ce){var he,We;return(0,ae.Z)().wrap(function(ve){for(;;)switch(ve.prev=ve.next){case 0:if(he=G(V).toString(),We=st.current.get(he),!(!te.has(he)&&We&&(ce!=null?ce:!0)&&x.tableName)){ve.next=5;break}return Be(We,!1),ve.abrupt("return");case 5:return ye&&ye.options.recordKey===V&&Oe(void 0),te.delete(he),te.delete(G(V)),ue(Array.from(te)),ve.abrupt("return",!0);case 10:case"end":return ve.stop()}},P)}));return function(P,V){return E.apply(this,arguments)}}()),Ye=(0,se.Z)((0,Ie.Z)((0,ae.Z)().mark(function E(){var P,V,ce,he,We=arguments;return(0,ae.Z)().wrap(function(ve){for(;;)switch(ve.prev=ve.next){case 0:for(V=We.length,ce=new Array(V),he=0;he0&&dt==="single"&&x.onlyOneLineEditorAlertMessage!==!1)return g.default.warn(x.onlyOneLineEditorAlertMessage||"\u53EA\u80FD\u540C\u65F6\u7F16\u8F91\u4E00\u884C"),!1;var V=x.getRowKey(E,-1);if(!V)throw(0,Se.ET)(!!V,`\u8BF7\u8BBE\u7F6E recordCreatorProps.record \u5E76\u8FD4\u56DE\u4E00\u4E2A\u552F\u4E00\u7684key +(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[4884],{37476:function($t,tt,r){"use strict";r.d(tt,{Y:function(){return Vt}});var U=r(71194),g=r(50146),De=r(55507),J=r(92137),ae=r(28991),Ke=r(28481),Ie=r(84305),xe=r(39559),Y=r(81253),Ze=r(85893),l=r(72378),ie=r.n(l),u=r(21770),a=r(80334),Et=r(67294),nt=r(73935),zt=r(88374),dn=["children","trigger","onVisibleChange","modalProps","onFinish","submitTimeout","title","width","visible"];function Vt(ht){var gt,it,Se,ge,Ae=ht.children,se=ht.trigger,at=ht.onVisibleChange,Fe=ht.modalProps,It=ht.onFinish,ze=ht.submitTimeout,Je=ht.title,rt=ht.width,Le=ht.visible,pe=(0,Y.Z)(ht,dn);(0,a.ET)(!pe.footer||!(Fe==null?void 0:Fe.footer),"ModalForm \u662F\u4E00\u4E2A ProForm \u7684\u7279\u6B8A\u5E03\u5C40\uFF0C\u5982\u679C\u60F3\u81EA\u5B9A\u4E49\u6309\u94AE\uFF0C\u8BF7\u4F7F\u7528 submit.render \u81EA\u5B9A\u4E49\u3002");var G=(0,Et.useContext)(xe.ZP.ConfigContext),fe=(0,Et.useState)([]),je=(0,Ke.Z)(fe,2),Ee=je[1],Pt=(0,Et.useState)(!1),Pe=(0,Ke.Z)(Pt,2),_t=Pe[0],x=Pe[1],Q=(0,u.Z)(!!Le,{value:Le,onChange:at}),Qe=(0,Ke.Z)(Q,2),ye=Qe[0],Oe=Qe[1],st=(0,Et.useRef)(null),ft=(0,Et.useCallback)(function(_){st.current===null&&_&&Ee([]),st.current=_},[]),dt=(0,Et.useRef)(),Ue=(0,Et.useCallback)(function(){var _,ue,te,me=(_=(ue=pe.form)!==null&&ue!==void 0?ue:(te=pe.formRef)===null||te===void 0?void 0:te.current)!==null&&_!==void 0?_:dt.current;me&&(Fe==null?void 0:Fe.destroyOnClose)&&me.resetFields()},[Fe==null?void 0:Fe.destroyOnClose,pe.form,pe.formRef]);(0,Et.useEffect)(function(){ye&&Le&&(at==null||at(!0))},[Le,ye]);var Ut=(0,Et.useMemo)(function(){return se?Et.cloneElement(se,(0,ae.Z)((0,ae.Z)({key:"trigger"},se.props),{},{onClick:function(){var _=(0,J.Z)((0,De.Z)().mark(function te(me){var re,Re;return(0,De.Z)().wrap(function(Ye){for(;;)switch(Ye.prev=Ye.next){case 0:Oe(!ye),(re=se.props)===null||re===void 0||(Re=re.onClick)===null||Re===void 0||Re.call(re,me);case 2:case"end":return Ye.stop()}},te)}));function ue(te){return _.apply(this,arguments)}return ue}()})):null},[Oe,se,ye]),Rt=(0,Et.useMemo)(function(){var _,ue,te,me,re,Re,Be,Ye;return pe.submitter===!1?!1:ie()({searchConfig:{submitText:(_=(ue=Fe==null?void 0:Fe.okText)!==null&&ue!==void 0?ue:(te=G.locale)===null||te===void 0||(me=te.Modal)===null||me===void 0?void 0:me.okText)!==null&&_!==void 0?_:"\u786E\u8BA4",resetText:(re=(Re=Fe==null?void 0:Fe.cancelText)!==null&&Re!==void 0?Re:(Be=G.locale)===null||Be===void 0||(Ye=Be.Modal)===null||Ye===void 0?void 0:Ye.cancelText)!==null&&re!==void 0?re:"\u53D6\u6D88"},resetButtonProps:{preventDefault:!0,disabled:ze?_t:void 0,onClick:function(bn){var Nt;Oe(!1),Ue(),Fe==null||(Nt=Fe.onCancel)===null||Nt===void 0||Nt.call(Fe,bn)}}},pe.submitter)},[(gt=G.locale)===null||gt===void 0||(it=gt.Modal)===null||it===void 0?void 0:it.cancelText,(Se=G.locale)===null||Se===void 0||(ge=Se.Modal)===null||ge===void 0?void 0:ge.okText,Fe,pe.submitter,Oe,_t,ze,Ue]),qe=(0,Et.useCallback)(function(_,ue){return(0,Ze.jsxs)(Ze.Fragment,{children:[_,st.current&&ue?(0,nt.createPortal)(ue,st.current):ue]})},[]),we=(0,Et.useCallback)(function(){var _=(0,J.Z)((0,De.Z)().mark(function ue(te){var me,re,Re;return(0,De.Z)().wrap(function(Ye){for(;;)switch(Ye.prev=Ye.next){case 0:return me=It==null?void 0:It(te),ze&&me instanceof Promise&&(x(!0),re=setTimeout(function(){return x(!1)},ze),me.finally(function(){clearTimeout(re),x(!1)})),Ye.next=4,me;case 4:return Re=Ye.sent,Re&&Oe(!1),Ye.abrupt("return",Re);case 7:case"end":return Ye.stop()}},ue)}));return function(ue){return _.apply(this,arguments)}}(),[It,Oe,ze]);return(0,Ze.jsxs)(Ze.Fragment,{children:[(0,Ze.jsx)(g.Z,(0,ae.Z)((0,ae.Z)({title:Je,width:rt||800},Fe),{},{visible:ye,onCancel:function(ue){var te;ze&&_t||(Oe(!1),Fe==null||(te=Fe.onCancel)===null||te===void 0||te.call(Fe,ue))},afterClose:function(){var ue;Ue(),Fe==null||(ue=Fe.afterClose)===null||ue===void 0||ue.call(Fe)},footer:pe.submitter!==!1&&(0,Ze.jsx)("div",{ref:ft,style:{display:"flex",justifyContent:"flex-end"}}),children:(0,Ze.jsx)(zt.I,(0,ae.Z)((0,ae.Z)({formComponentType:"ModalForm",layout:"vertical",formRef:dt},pe),{},{submitter:Rt,onFinish:function(){var _=(0,J.Z)((0,De.Z)().mark(function te(me){var re;return(0,De.Z)().wrap(function(Be){for(;;)switch(Be.prev=Be.next){case 0:return Be.next=2,we(me);case 2:return re=Be.sent,re===!0&&Ue(),Be.abrupt("return",re);case 5:case"end":return Be.stop()}},te)}));function ue(te){return _.apply(this,arguments)}return ue}(),contentRender:qe,children:Ae}))})),Ut]})}},24739:function($t,tt,r){"use strict";r.d(tt,{UW:function(){return g}});var U=r(5894),g=U.A.Group},65899:function($t,tt,r){"use strict";r.d(tt,{Z:function(){return jo}});var U=r(55507),g=r(92137),De=r(90484),J=r(28481),ae=r(84305),Ke=r(39559),Ie=r(66456),xe=r(64411),Y=r(96156),Ze=r(85061),l=r(28991),ie=r(81253),u=r(67294),a=r(85893),Et=r(18106),nt=r(36166),zt=r(6999),dn=r(25378);function Vt(){return(0,dn.Z)()}var ht={useBreakpoint:Vt},gt=r(8812),it=r(53621),Se=r(94184),ge=r.n(Se),Ae=r(97435),se=r(50344),at=r(80334),Fe=r(7391),It=["tab","children"],ze=["key","tab","tabKey","disabled","destroyInactiveTabPane","children","className","style","cardProps"];function Je(n){return n.filter(function(e){return e})}function rt(n,e,o){if(n)return n.map(function(s){return(0,l.Z)((0,l.Z)({},s),{},{children:(0,a.jsx)(Ue,(0,l.Z)((0,l.Z)({},o==null?void 0:o.cardProps),{},{children:s.children}))})});(0,at.ET)(!o,"Tabs.TabPane is deprecated. Please use `items` directly.");var t=(0,se.Z)(e).map(function(s){if(u.isValidElement(s)){var d=s.key,v=s.props,c=v||{},m=c.tab,C=c.children,M=(0,ie.Z)(c,It),O=(0,l.Z)((0,l.Z)({key:String(d)},M),{},{children:(0,a.jsx)(Ue,(0,l.Z)((0,l.Z)({},o==null?void 0:o.cardProps),{},{children:C})),label:m});return O}return null});return Je(t)}var Le=function(e){var o=e.key,t=e.tab,s=e.tabKey,d=e.disabled,v=e.destroyInactiveTabPane,c=e.children,m=e.className,C=e.style,M=e.cardProps,O=(0,ie.Z)(e,ze),h=(0,u.useContext)(Ke.ZP.ConfigContext),Z=h.getPrefixCls,b=Z("pro-card-tabpane"),N=ge()(b,m);return(0,a.jsx)(nt.Z.TabPane,(0,l.Z)((0,l.Z)({tabKey:s,tab:t,className:N,style:C,disabled:d,destroyInactiveTabPane:v},O),{},{children:(0,a.jsx)(Ue,(0,l.Z)((0,l.Z)({},M),{},{children:c}))}),o)},pe=Le,G=r(21770),fe=r(57084),je=function(e){var o=e.actions,t=e.prefixCls;return Array.isArray(o)&&(o==null?void 0:o.length)?(0,a.jsx)("ul",{className:"".concat(t,"-actions"),children:o.map(function(s,d){return(0,a.jsx)("li",{style:{width:"".concat(100/o.length,"%")},children:(0,a.jsx)("span",{children:s})},"action-".concat(d))})}):o?(0,a.jsx)("ul",{className:"".concat(t,"-actions"),children:o}):null},Ee=je,Pt=r(89032),Pe=r(15746),_t=r(13062),x=r(71230),Q=r(16152),Qe=function(e){var o=e.style,t=e.prefix;return(0,a.jsxs)("div",{className:"".concat(t,"-loading-content"),style:o,children:[(0,a.jsx)(x.Z,{gutter:8,children:(0,a.jsx)(Pe.Z,{span:22,children:(0,a.jsx)("div",{className:"".concat(t,"-loading-block")})})}),(0,a.jsxs)(x.Z,{gutter:8,children:[(0,a.jsx)(Pe.Z,{span:8,children:(0,a.jsx)("div",{className:"".concat(t,"-loading-block")})}),(0,a.jsx)(Pe.Z,{span:15,children:(0,a.jsx)("div",{className:"".concat(t,"-loading-block")})})]}),(0,a.jsxs)(x.Z,{gutter:8,children:[(0,a.jsx)(Pe.Z,{span:6,children:(0,a.jsx)("div",{className:"".concat(t,"-loading-block")})}),(0,a.jsx)(Pe.Z,{span:18,children:(0,a.jsx)("div",{className:"".concat(t,"-loading-block")})})]}),(0,a.jsxs)(x.Z,{gutter:8,children:[(0,a.jsx)(Pe.Z,{span:13,children:(0,a.jsx)("div",{className:"".concat(t,"-loading-block")})}),(0,a.jsx)(Pe.Z,{span:9,children:(0,a.jsx)("div",{className:"".concat(t,"-loading-block")})})]}),(0,a.jsxs)(x.Z,{gutter:8,children:[(0,a.jsx)(Pe.Z,{span:4,children:(0,a.jsx)("div",{className:"".concat(t,"-loading-block")})}),(0,a.jsx)(Pe.Z,{span:3,children:(0,a.jsx)("div",{className:"".concat(t,"-loading-block")})}),(0,a.jsx)(Pe.Z,{span:16,children:(0,a.jsx)("div",{className:"".concat(t,"-loading-block")})})]})]})},ye=Qe,Oe=r(98305),st=["className","style","bodyStyle","headStyle","title","subTitle","extra","tip","wrap","layout","loading","gutter","tooltip","split","headerBordered","bordered","children","size","actions","ghost","hoverable","direction","collapsed","collapsible","collapsibleIconRender","defaultCollapsed","onCollapse","checked","onChecked","tabs","type"],ft=ht.useBreakpoint,dt=u.forwardRef(function(n,e){var o,t,s,d=n.className,v=n.style,c=n.bodyStyle,m=c===void 0?{}:c,C=n.headStyle,M=C===void 0?{}:C,O=n.title,h=n.subTitle,Z=n.extra,b=n.tip,N=n.wrap,j=N===void 0?!1:N,z=n.layout,k=n.loading,W=n.gutter,w=W===void 0?0:W,ee=n.tooltip,I=n.split,$=n.headerBordered,A=$===void 0?!1:$,R=n.bordered,D=R===void 0?!1:R,S=n.children,F=n.size,L=n.actions,K=n.ghost,y=K===void 0?!1:K,H=n.hoverable,ke=H===void 0?!1:H,ot=n.direction,q=n.collapsed,le=n.collapsible,de=le===void 0?!1:le,Ve=n.collapsibleIconRender,$e=n.defaultCollapsed,Ce=$e===void 0?!1:$e,lt=n.onCollapse,He=n.checked,mt=n.onChecked,Ct=n.tabs,Zt=n.type,Mt=(0,ie.Z)(n,st),sn=(0,u.useContext)(Ke.ZP.ConfigContext),Lt=sn.getPrefixCls,pn=ft(),Me=(0,G.Z)(Ce,{value:q,onChange:lt}),_e=(0,J.Z)(Me,2),wt=_e[0],en=_e[1],un=["xxl","xl","lg","md","sm","xs"],Rn=rt(Ct==null?void 0:Ct.items,S,Ct),Wn=function(et){var tn=[0,0],xn=Array.isArray(et)?et:[et,0];return xn.forEach(function(jn,Vn){if((0,De.Z)(jn)==="object")for(var Tn=0;Tn=0&&Tn<=24),xn));return(0,a.jsx)("div",{style:(0,l.Z)((0,l.Z)((0,l.Z)({},Ln),Ht(ar>0,{paddingRight:ar/2,paddingLeft:ar/2})),Ht(Xn>0,{paddingTop:Xn/2,paddingBottom:Xn/2})),className:ua,children:u.cloneElement(Cn)},"pro-card-col-".concat((Cn==null?void 0:Cn.key)||et))}return Cn}),Gr=ge()("".concat(ut),d,(o={},(0,Y.Z)(o,"".concat(ut,"-border"),D),(0,Y.Z)(o,"".concat(ut,"-contain-card"),Er),(0,Y.Z)(o,"".concat(ut,"-loading"),k),(0,Y.Z)(o,"".concat(ut,"-split"),I==="vertical"||I==="horizontal"),(0,Y.Z)(o,"".concat(ut,"-ghost"),y),(0,Y.Z)(o,"".concat(ut,"-hoverable"),ke),(0,Y.Z)(o,"".concat(ut,"-size-").concat(F),F),(0,Y.Z)(o,"".concat(ut,"-type-").concat(Zt),Zt),(0,Y.Z)(o,"".concat(ut,"-collapse"),wt),(0,Y.Z)(o,"".concat(ut,"-checked"),He),o)),Jr=ge()("".concat(ut,"-body"),(t={},(0,Y.Z)(t,"".concat(ut,"-body-center"),z==="center"),(0,Y.Z)(t,"".concat(ut,"-body-direction-column"),I==="horizontal"||ot==="column"),(0,Y.Z)(t,"".concat(ut,"-body-wrap"),j&&Er),t)),ea=(0,l.Z)((0,l.Z)((0,l.Z)({},Ht(ar>0,{marginRight:-ar/2,marginLeft:-ar/2})),Ht(Xn>0,{marginTop:-Xn/2,marginBottom:-Xn/2})),m),ta=u.isValidElement(k)?k:(0,a.jsx)(ye,{prefix:ut,style:m.padding===0||m.padding==="0px"?{padding:24}:void 0}),Gt=de&&q===void 0&&(Ve?Ve({collapsed:wt}):(0,a.jsx)(gt.Z,{rotate:wt?void 0:90,className:"".concat(ut,"-collapsible-icon")}));return(0,a.jsxs)("div",(0,l.Z)((0,l.Z)({className:Gr,style:v,ref:e,onClick:function(et){var tn;mt==null||mt(et),Mt==null||(tn=Mt.onClick)===null||tn===void 0||tn.call(Mt,et)}},(0,Ae.Z)(Mt,["prefixCls","colSpan"])),{},{children:[(O||Z||Gt)&&(0,a.jsxs)("div",{className:ge()("".concat(ut,"-header"),(s={},(0,Y.Z)(s,"".concat(ut,"-header-border"),A||Zt==="inner"),(0,Y.Z)(s,"".concat(ut,"-header-collapsible"),Gt),s)),style:M,onClick:function(){Gt&&en(!wt)},children:[(0,a.jsxs)("div",{className:"".concat(ut,"-title"),children:[Gt,(0,a.jsx)(it.Z,{label:O,tooltip:ee||b,subTitle:h})]}),Z&&(0,a.jsx)("div",{className:"".concat(ut,"-extra"),children:Z})]}),Ct?(0,a.jsx)("div",{className:"".concat(ut,"-tabs"),children:(0,a.jsx)(nt.Z,(0,l.Z)((0,l.Z)({onChange:Ct.onChange},Ct),{},{items:Rn,children:k?ta:S}))}):(0,a.jsx)("div",{className:Jr,style:ea,children:k?ta:qr}),(0,a.jsx)(Ee,{actions:L,prefixCls:ut})]}))}),Ue=dt,Ut=r(99509),Rt=function(e){var o=(0,u.useContext)(Ke.ZP.ConfigContext),t=o.getPrefixCls,s=t("pro-card-divider"),d=e.className,v=e.style,c=v===void 0?{}:v,m=e.type,C=ge()(s,d,(0,Y.Z)({},"".concat(s,"-").concat(m),m));return(0,a.jsx)("div",{className:C,style:c})},qe=Rt,we=function(e){return(0,a.jsx)(Ue,(0,l.Z)({bodyStyle:{padding:0}},e))},_=Ue;_.isProCard=!0,_.Divider=qe,_.TabPane=pe,_.Group=we;var ue=_,te=ue,me=r(952),re=r(78775),Re=r(86671),Be=r(51812),Ye=r(56725),Dt=r(27068),bn=r(78164),Nt=r(30939),kn=r(17462),wn=r(76772),En=r(49111),cn=r(19650),T=r(60870),B=function(e){var o=e.intl,t=e.onCleanSelected;return[(0,a.jsx)("a",{onClick:t,children:o.getMessage("alert.clear","\u6E05\u7A7A")},"0")]};function X(n){var e=n.selectedRowKeys,o=e===void 0?[]:e,t=n.onCleanSelected,s=n.alwaysShowAlert,d=n.selectedRows,v=n.alertInfoRender,c=v===void 0?function(j){var z=j.intl;return(0,a.jsxs)(cn.Z,{children:[z.getMessage("alert.selected","\u5DF2\u9009\u62E9"),o.length,z.getMessage("alert.item","\u9879"),"\xA0\xA0"]})}:v,m=n.alertOptionRender,C=m===void 0?B:m,M=(0,re.YB)(),O=C&&C({onCleanSelected:t,selectedRowKeys:o,selectedRows:d,intl:M}),h=(0,u.useContext)(Ke.ZP.ConfigContext),Z=h.getPrefixCls,b=Z("pro-table-alert");if(c===!1)return null;var N=c({intl:M,selectedRowKeys:o,selectedRows:d,onCleanSelected:t});return N===!1||o.length<1&&!s?null:(0,a.jsx)("div",{className:b,children:(0,a.jsx)(wn.Z,{message:(0,a.jsxs)("div",{className:"".concat(b,"-info"),children:[(0,a.jsx)("div",{className:"".concat(b,"-info-content"),children:N}),O?(0,a.jsx)("div",{className:"".concat(b,"-info-option"),children:O}):null]}),type:"info"})})}var E=X,P=r(5991),V=r(6610),ce=r(10379),he=r(44144),We=r(60249),Xe=function(e){return e!=null};function ve(n,e,o){var t,s;if(n===!1)return!1;var d=e.total,v=e.current,c=e.pageSize,m=e.setPageInfo,C=(0,De.Z)(n)==="object"?n:{};return(0,l.Z)((0,l.Z)({showTotal:function(O,h){return"".concat(o.getMessage("pagination.total.range","\u7B2C")," ").concat(h[0],"-").concat(h[1]," ").concat(o.getMessage("pagination.total.total","\u6761/\u603B\u5171")," ").concat(O," ").concat(o.getMessage("pagination.total.item","\u6761"))},total:d},C),{},{current:n!==!0&&n&&(t=n.current)!==null&&t!==void 0?t:v,pageSize:n!==!0&&n&&(s=n.pageSize)!==null&&s!==void 0?s:c,onChange:function(O,h){var Z=n.onChange;Z==null||Z(O,h||20),(h!==c||v!==O)&&m({pageSize:h,current:O})}})}function Ge(n,e,o){var t=(0,l.Z)((0,l.Z)({},o.editableUtils),{},{pageInfo:e.pageInfo,reload:function(){var s=(0,g.Z)((0,U.Z)().mark(function v(c){return(0,U.Z)().wrap(function(C){for(;;)switch(C.prev=C.next){case 0:if(!c){C.next=3;break}return C.next=3,e.setPageInfo({current:1});case 3:e==null||e.reload();case 4:case"end":return C.stop()}},v)}));function d(v){return s.apply(this,arguments)}return d}(),reloadAndRest:function(){var s=(0,g.Z)((0,U.Z)().mark(function v(){return(0,U.Z)().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:return o.onCleanSelected(),m.next=3,e.setPageInfo({current:1});case 3:return m.next=5,e==null?void 0:e.reload();case 5:case"end":return m.stop()}},v)}));function d(){return s.apply(this,arguments)}return d}(),reset:function(){var s=(0,g.Z)((0,U.Z)().mark(function v(){var c;return(0,U.Z)().wrap(function(C){for(;;)switch(C.prev=C.next){case 0:return C.next=2,o.resetAll();case 2:return C.next=4,e==null||(c=e.reset)===null||c===void 0?void 0:c.call(e);case 4:return C.next=6,e==null?void 0:e.reload();case 6:case"end":return C.stop()}},v)}));function d(){return s.apply(this,arguments)}return d}(),fullScreen:function(){return o.fullScreen()},clearSelected:function(){return o.onCleanSelected()},setPageInfo:function(d){return e.setPageInfo(d)}});n.current=t}function bt(n,e){return e.filter(function(o){return o}).length<1?n:e.reduce(function(o,t){return t(o)},n)}var Ne=function(e,o){return o===void 0?!1:typeof o=="boolean"?o:o[e]},Wt=function(e){var o;return e&&(0,De.Z)(e)==="object"&&(e==null||(o=e.props)===null||o===void 0?void 0:o.colSpan)},Tt=function(e,o){return e?Array.isArray(e)?e.join("-"):e.toString():"".concat(o)};function On(n){return Array.isArray(n)?n.join(","):n==null?void 0:n.toString()}function Jt(n){var e={},o={};return n.forEach(function(t){var s=On(t.dataIndex);if(!!s){if(t.filters){var d=t.defaultFilteredValue;d===void 0?e[s]=null:e[s]=t.defaultFilteredValue}t.sorter&&t.defaultSortOrder&&(o[s]=t.defaultSortOrder)}}),{sort:o,filter:e}}function an(n,e){var o=n.oldIndex,t=n.newIndex;if(o!==t){var s=arrayMoveImmutable(_toConsumableArray(e||[]),o,t).filter(function(d){return!!d});return _toConsumableArray(s)}return null}var Dn=r(9715),vn=r(55843),fn=r(51804),qt=r(22270),mn=r(57338),Hn=r(273),Yt=r(48171),Zn=r(72378),nn=r.n(Zn),Ft=r(73935),In=r(88374),Kn=["children","trigger","onVisibleChange","drawerProps","onFinish","submitTimeout","title","width","visible"];function Bn(n){var e,o,t,s,d=n.children,v=n.trigger,c=n.onVisibleChange,m=n.drawerProps,C=n.onFinish,M=n.submitTimeout,O=n.title,h=n.width,Z=n.visible,b=(0,ie.Z)(n,Kn);(0,at.ET)(!b.footer||!(m==null?void 0:m.footer),"DrawerForm \u662F\u4E00\u4E2A ProForm \u7684\u7279\u6B8A\u5E03\u5C40\uFF0C\u5982\u679C\u60F3\u81EA\u5B9A\u4E49\u6309\u94AE\uFF0C\u8BF7\u4F7F\u7528 submit.render \u81EA\u5B9A\u4E49\u3002");var N=(0,u.useContext)(Ke.ZP.ConfigContext),j=(0,u.useState)([]),z=(0,J.Z)(j,2),k=z[1],W=(0,u.useState)(!1),w=(0,J.Z)(W,2),ee=w[0],I=w[1],$=(0,G.Z)(!!Z,{value:Z,onChange:c}),A=(0,J.Z)($,2),R=A[0],D=A[1],S=(0,u.useRef)(null),F=(0,u.useCallback)(function(q){S.current===null&&q&&k([]),S.current=q},[]),L=(0,u.useRef)(),K=(0,u.useCallback)(function(){var q,le,de,Ve=(q=(le=(de=b.formRef)===null||de===void 0?void 0:de.current)!==null&&le!==void 0?le:b.form)!==null&&q!==void 0?q:L.current;Ve&&(m==null?void 0:m.destroyOnClose)&&Ve.resetFields()},[m==null?void 0:m.destroyOnClose,b.form,b.formRef]);(0,u.useEffect)(function(){R&&Z&&(c==null||c(!0))},[Z,R]);var y=(0,u.useMemo)(function(){return v?u.cloneElement(v,(0,l.Z)((0,l.Z)({key:"trigger"},v.props),{},{onClick:function(){var q=(0,g.Z)((0,U.Z)().mark(function de(Ve){var $e,Ce;return(0,U.Z)().wrap(function(He){for(;;)switch(He.prev=He.next){case 0:D(!R),($e=v.props)===null||$e===void 0||(Ce=$e.onClick)===null||Ce===void 0||Ce.call($e,Ve);case 2:case"end":return He.stop()}},de)}));function le(de){return q.apply(this,arguments)}return le}()})):null},[D,v,R]),H=(0,u.useMemo)(function(){var q,le,de,Ve,$e,Ce;return b.submitter===!1?!1:nn()({searchConfig:{submitText:(q=(le=N.locale)===null||le===void 0||(de=le.Modal)===null||de===void 0?void 0:de.okText)!==null&&q!==void 0?q:"\u786E\u8BA4",resetText:(Ve=($e=N.locale)===null||$e===void 0||(Ce=$e.Modal)===null||Ce===void 0?void 0:Ce.cancelText)!==null&&Ve!==void 0?Ve:"\u53D6\u6D88"},resetButtonProps:{preventDefault:!0,disabled:M?ee:void 0,onClick:function(He){var mt;D(!1),K(),m==null||(mt=m.onClose)===null||mt===void 0||mt.call(m,He)}}},b.submitter)},[b.submitter,(e=N.locale)===null||e===void 0||(o=e.Modal)===null||o===void 0?void 0:o.okText,(t=N.locale)===null||t===void 0||(s=t.Modal)===null||s===void 0?void 0:s.cancelText,M,ee,D,K,m]),ke=(0,u.useCallback)(function(q,le){return(0,a.jsxs)(a.Fragment,{children:[q,S.current&&le?(0,Ft.createPortal)(le,S.current):le]})},[]),ot=(0,Yt.J)(function(){var q=(0,g.Z)((0,U.Z)().mark(function le(de){var Ve,$e,Ce;return(0,U.Z)().wrap(function(He){for(;;)switch(He.prev=He.next){case 0:return Ve=C==null?void 0:C(de),M&&Ve instanceof Promise&&(I(!0),$e=setTimeout(function(){return I(!1)},M),Ve.finally(function(){clearTimeout($e),I(!1)})),He.next=4,Ve;case 4:return Ce=He.sent,Ce&&D(!1),He.abrupt("return",Ce);case 7:case"end":return He.stop()}},le)}));return function(le){return q.apply(this,arguments)}}());return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(Hn.Z,(0,l.Z)((0,l.Z)({title:O,width:h||800},m),{},{visible:R,onClose:function(le){var de;M&&ee||(K(),D(!1),m==null||(de=m.onClose)===null||de===void 0||de.call(m,le))},afterVisibleChange:function(le){var de;le||K(),m==null||(de=m.afterVisibleChange)===null||de===void 0||de.call(m,le)},footer:b.submitter!==!1&&(0,a.jsx)("div",{ref:F,style:{display:"flex",justifyContent:"flex-end"}}),children:(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(In.I,(0,l.Z)((0,l.Z)({formComponentType:"DrawerForm",layout:"vertical",formRef:L},b),{},{submitter:H,onFinish:function(){var q=(0,g.Z)((0,U.Z)().mark(function de(Ve){var $e;return(0,U.Z)().wrap(function(lt){for(;;)switch(lt.prev=lt.next){case 0:return lt.next=2,ot(Ve);case 2:return $e=lt.sent,$e===!0&&K(),lt.abrupt("return",$e);case 5:case"end":return lt.stop()}},de)}));function le(de){return q.apply(this,arguments)}return le}(),contentRender:ke,children:d}))})})),y]})}var yn=r(17405),kt=r(76422),At=r(1643),on=r(29504),Nn=["size","collapse","collapseLabel","initialValues","onValuesChange","form","placement","formRef","bordered","ignoreRules","footerRender"],$n=function(e){var o=e.items,t=e.prefixCls,s=e.size,d=s===void 0?"middle":s,v=e.collapse,c=e.collapseLabel,m=e.onValuesChange,C=e.bordered,M=e.values,O=e.footerRender,h=e.placement,Z=(0,re.YB)(),b="".concat(t,"-light-filter"),N=(0,u.useState)(!1),j=(0,J.Z)(N,2),z=j[0],k=j[1],W=(0,u.useState)(function(){return(0,l.Z)({},M)}),w=(0,J.Z)(W,2),ee=w[0],I=w[1];(0,u.useEffect)(function(){I((0,l.Z)({},M))},[M]);var $=(0,u.useMemo)(function(){var S=[],F=[];return o.forEach(function(L){var K=L.props||{},y=K.secondary;y||v?S.push(L):F.push(L)}),{collapseItems:S,outsideItems:F}},[e.items]),A=$.collapseItems,R=$.outsideItems,D=function(){return c||(v?(0,a.jsx)(yn.Z,{className:"".concat(b,"-collapse-icon")}):(0,a.jsx)(kt.Z,{size:d,label:Z.getMessage("form.lightFilter.more","\u66F4\u591A\u7B5B\u9009"),expanded:z}))};return(0,a.jsx)("div",{className:ge()(b,"".concat(b,"-").concat(d),(0,Y.Z)({},"".concat(b,"-effective"),Object.keys(M).some(function(S){return M[S]}))),children:(0,a.jsxs)("div",{className:"".concat(b,"-container"),children:[R.map(function(S,F){var L=S.key,K=S.props.fieldProps,y=(K==null?void 0:K.placement)?K==null?void 0:K.placement:h;return(0,a.jsx)("div",{className:"".concat(b,"-item"),children:u.cloneElement(S,{fieldProps:(0,l.Z)((0,l.Z)({},S.props.fieldProps),{},{placement:y}),proFieldProps:{light:!0,label:S.props.label,bordered:C},bordered:C})},L||F)}),A.length?(0,a.jsx)("div",{className:"".concat(b,"-item"),children:(0,a.jsx)(At.Z,{padding:24,onVisibleChange:k,visible:z,placement:h,label:D(),footerRender:O,footer:{onConfirm:function(){m((0,l.Z)({},ee)),k(!1)},onClear:function(){var F={};A.forEach(function(L){var K=L.props.name;F[K]=void 0}),m(F)}},children:A.map(function(S){var F=S.key,L=S.props,K=L.name,y=L.fieldProps,H=(0,l.Z)((0,l.Z)({},y),{},{onChange:function(q){return I((0,l.Z)((0,l.Z)({},ee),{},(0,Y.Z)({},K,(q==null?void 0:q.target)?q.target.value:q))),!1}});ee.hasOwnProperty(K)&&(H[S.props.valuePropName||"value"]=ee[K]);var ke=(y==null?void 0:y.placement)?y==null?void 0:y.placement:h;return(0,a.jsx)("div",{className:"".concat(b,"-line"),children:u.cloneElement(S,{fieldProps:(0,l.Z)((0,l.Z)({},H),{},{placement:ke})})},F)})})},"more"):null]})})};function zn(n){var e=n.size,o=n.collapse,t=n.collapseLabel,s=n.initialValues,d=n.onValuesChange,v=n.form,c=n.placement,m=n.formRef,C=n.bordered,M=n.ignoreRules,O=n.footerRender,h=(0,ie.Z)(n,Nn),Z=(0,u.useContext)(Ke.ZP.ConfigContext),b=Z.getPrefixCls,N=b("pro-form"),j=(0,u.useState)(function(){return(0,l.Z)({},s)}),z=(0,J.Z)(j,2),k=z[0],W=z[1],w=(0,u.useRef)();return(0,u.useImperativeHandle)(m,function(){return w.current}),(0,a.jsx)(In.I,(0,l.Z)((0,l.Z)({size:e,initialValues:s,form:v,contentRender:function(I){return(0,a.jsx)($n,{prefixCls:N,items:I.flatMap(function($){return($==null?void 0:$.type.displayName)==="ProForm-Group"?$.props.children:$}),size:e,bordered:C,collapse:o,collapseLabel:t,placement:c,values:k||{},footerRender:O,onValuesChange:function(A){var R,D,S=(0,l.Z)((0,l.Z)({},k),A);W(S),(R=w.current)===null||R===void 0||R.setFieldsValue(S),(D=w.current)===null||D===void 0||D.submit(),d&&d(A,S)}})},formRef:w,formItemProps:{colon:!1,labelAlign:"left"},fieldProps:{style:{width:void 0}}},(0,Ae.Z)(h,["labelWidth"])),{},{onValuesChange:function(I,$){var A;W($),d==null||d(I,$),(A=w.current)===null||A===void 0||A.submit()}}))}var Sn=r(37476),Gn=r(5894),Pr=r(48736),An=r(27049),Rr=r(12044),cr=r(48717),Jn=r(57254),Tr=function(e){if(e&&e!==!0)return e},vr=Tr,Mr=function(e,o,t,s){return e?(0,a.jsxs)(a.Fragment,{children:[t.getMessage("tableForm.collapsed","\u5C55\u5F00"),s&&"(".concat(s,")"),(0,a.jsx)(Jn.Z,{style:{marginLeft:"0.5em",transition:"0.3s all",transform:"rotate(".concat(e?0:.5,"turn)")}})]}):(0,a.jsxs)(a.Fragment,{children:[t.getMessage("tableForm.expand","\u6536\u8D77"),(0,a.jsx)(Jn.Z,{style:{marginLeft:"0.5em",transition:"0.3s all",transform:"rotate(".concat(e?0:.5,"turn)")}})]})},Or=function(e){var o=e.setCollapsed,t=e.collapsed,s=t===void 0?!1:t,d=e.submitter,v=e.style,c=e.hiddenNum,m=(0,u.useContext)(Ke.ZP.ConfigContext),C=m.getPrefixCls,M=(0,re.YB)(),O=vr(e.collapseRender)||Mr;return(0,a.jsxs)(cn.Z,{style:v,size:16,children:[d,e.collapseRender!==!1&&(0,a.jsx)("a",{className:C("pro-form-collapse-button"),onClick:function(){return o(!s)},children:O==null?void 0:O(s,e,M,c)})]})},wr=Or,Br=["collapsed","layout","defaultCollapsed","defaultColsNumber","span","searchGutter","searchText","resetText","optionRender","collapseRender","onReset","onCollapse","labelWidth","style","split","preserve","ignoreRules","showHiddenNum"],or,lr,$r={xs:513,sm:513,md:785,lg:992,xl:1057,xxl:Infinity},er={vertical:[[513,1,"vertical"],[785,2,"vertical"],[1057,3,"vertical"],[Infinity,4,"vertical"]],default:[[513,1,"vertical"],[701,2,"vertical"],[1062,3,"horizontal"],[1352,3,"horizontal"],[Infinity,4,"horizontal"]]},ir=function(e,o,t){if(t&&typeof t=="number")return{span:t,layout:e};var s=t?["xs","sm","md","lg","xl","xxl"].map(function(v){return[$r[v],24/t[v],"horizontal"]}):er[e||"default"],d=(s||er.default).find(function(v){return ob-1)&&!!L&&k>=24;W+=1;var Ve=u.isValidElement(F)&&(F.key||"".concat((ke=F.props)===null||ke===void 0?void 0:ke.name))||L;return u.isValidElement(F)&&de?e.preserve?{itemDom:u.cloneElement(F,{hidden:!0,key:Ve||L}),hidden:!0,colSpan:q}:{itemDom:null,colSpan:0,hidden:!0}:{itemDom:F,colSpan:q,hidden:!1}}),A=$.map(function(F,L){var K,y,H=F.itemDom,ke=F.colSpan,ot=H==null||(K=H.props)===null||K===void 0?void 0:K.hidden;if(ot)return H;var q=u.isValidElement(H)&&(H.key||"".concat((y=H.props)===null||y===void 0?void 0:y.name))||L;24-I%2417&&K(q.width)},children:(0,a.jsx)(In.I,(0,l.Z)((0,l.Z)({isKeyPressSubmit:!0,preserve:w},A),{},{className:ge()(D,A.className),onReset:Z,style:z,layout:y.layout,fieldProps:{style:{width:"100%"}},formItemProps:ke,groupProps:{titleStyle:{display:"inline-block",marginRight:16}},contentRender:function(q,le,de){return(0,a.jsx)(zr,{spanSize:y,collapsed:e,form:de,collapseRender:h,defaultCollapsed:s,onCollapse:b,optionRender:O,submitter:le,items:q,split:k,resetText:n.resetText,searchText:n.searchText,searchGutter:m,preserve:w,ignoreRules:ee,showLength:H,showHiddenNum:$})}}))},"resize-observer")}var Yr=r(57663),fr=r(71577),Ur=r(35556),mr=r(75899),Fr=r(92210),Qr=r(161),hr=["onFinish","step","formRef","title","stepProps"];function jr(n){var e=(0,u.useRef)(),o=(0,u.useContext)(tr),t=n.onFinish,s=n.step,d=n.formRef,v=n.title,c=n.stepProps,m=(0,ie.Z)(n,hr);return(0,at.ET)(!m.submitter,"StepForm \u4E0D\u5305\u542B\u63D0\u4EA4\u6309\u94AE\uFF0C\u8BF7\u5728 StepsForm \u4E0A"),(0,u.useImperativeHandle)(d,function(){return e.current}),(0,u.useEffect)(function(){if(!!(n.name||n.step)){var C=(n.name||n.step).toString();return o==null||o.regForm(C,n),function(){o==null||o.unRegForm(C)}}},[]),o&&(o==null?void 0:o.formArrayRef)&&(o.formArrayRef.current[s||0]=e),(0,a.jsx)(In.I,(0,l.Z)({formRef:e,onFinish:function(){var C=(0,g.Z)((0,U.Z)().mark(function O(h){var Z;return(0,U.Z)().wrap(function(N){for(;;)switch(N.prev=N.next){case 0:if(m.name&&(o==null||o.onFormFinish(m.name,h)),!t){N.next=9;break}return o==null||o.setLoading(!0),N.next=5,t==null?void 0:t(h);case 5:return Z=N.sent,Z&&(o==null||o.next()),o==null||o.setLoading(!1),N.abrupt("return");case 9:(o==null?void 0:o.lastStep)||o==null||o.next();case 10:case"end":return N.stop()}},O)}));function M(O){return C.apply(this,arguments)}return M}(),layout:"vertical"},m))}var Kr=jr,Wr=["current","onCurrentChange","submitter","stepsFormRender","stepsRender","stepFormRender","stepsProps","onFinish","formProps","containerStyle","formRef","formMapRef"],tr=u.createContext(void 0),sr={horizontal:function(e){var o=e.stepsDom,t=e.formDom;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(x.Z,{gutter:{xs:8,sm:16,md:24},children:(0,a.jsx)(Pe.Z,{span:24,children:o})}),(0,a.jsx)(x.Z,{gutter:{xs:8,sm:16,md:24},children:(0,a.jsx)(Pe.Z,{span:24,children:t})})]})},vertical:function(e){var o=e.stepsDom,t=e.formDom;return(0,a.jsxs)(x.Z,{align:"stretch",wrap:!0,gutter:{xs:8,sm:16,md:24},children:[(0,a.jsx)(Pe.Z,{xxl:4,xl:6,lg:7,md:8,sm:10,xs:12,children:u.cloneElement(o,{style:{height:"100%"}})}),(0,a.jsx)(Pe.Z,{children:(0,a.jsx)("div",{style:{display:"flex",alignItems:"center",width:"100%",height:"100%"},children:t})})]})}};function gr(n){var e=(0,u.useContext)(Ke.ZP.ConfigContext),o=e.getPrefixCls,t=o("pro-steps-form"),s=n.current,d=n.onCurrentChange,v=n.submitter,c=n.stepsFormRender,m=n.stepsRender,C=n.stepFormRender,M=n.stepsProps,O=n.onFinish,h=n.formProps,Z=n.containerStyle,b=n.formRef,N=n.formMapRef,j=(0,ie.Z)(n,Wr),z=(0,u.useRef)(new Map),k=(0,u.useRef)(new Map),W=(0,u.useRef)([]),w=(0,u.useState)([]),ee=(0,J.Z)(w,2),I=ee[0],$=ee[1],A=(0,u.useState)(!1),R=(0,J.Z)(A,2),D=R[0],S=R[1],F=(0,re.YB)(),L=(0,G.Z)(0,{value:n.current,onChange:n.onCurrentChange}),K=(0,J.Z)(L,2),y=K[0],H=K[1],ke=(0,u.useMemo)(function(){return sr[(M==null?void 0:M.direction)||"horizontal"]},[M==null?void 0:M.direction]),ot=(0,u.useMemo)(function(){return y===I.length-1},[I.length,y]),q=(0,u.useCallback)(function(Me,_e){k.current.has(Me)||$(function(wt){return[].concat((0,Ze.Z)(wt),[Me])}),k.current.set(Me,_e)},[]),le=(0,u.useCallback)(function(Me){$(function(_e){return _e.filter(function(wt){return wt!==Me})}),k.current.delete(Me),z.current.delete(Me)},[]);(0,u.useImperativeHandle)(N,function(){return W.current}),(0,u.useImperativeHandle)(b,function(){var Me;return(Me=W.current[y||0])===null||Me===void 0?void 0:Me.current},[y]);var de=(0,u.useCallback)(function(){var Me=(0,g.Z)((0,U.Z)().mark(function _e(wt,en){var un,Rn;return(0,U.Z)().wrap(function(Ht){for(;;)switch(Ht.prev=Ht.next){case 0:if(z.current.set(wt,en),!(!ot||!O)){Ht.next=3;break}return Ht.abrupt("return");case 3:return S(!0),un=Fr.T.apply(void 0,[{}].concat((0,Ze.Z)(Array.from(z.current.values())))),Ht.prev=5,Ht.next=8,O(un);case 8:Rn=Ht.sent,Rn&&(H(0),W.current.forEach(function(St){var ut;return(ut=St.current)===null||ut===void 0?void 0:ut.resetFields()})),Ht.next=15;break;case 12:Ht.prev=12,Ht.t0=Ht.catch(5),console.log(Ht.t0);case 15:return Ht.prev=15,S(!1),Ht.finish(15);case 18:case"end":return Ht.stop()}},_e,null,[[5,12,15,18]])}));return function(_e,wt){return Me.apply(this,arguments)}}(),[ot,O,S,H]),Ve=(0,u.useMemo)(function(){return(0,a.jsx)("div",{className:"".concat(t,"-steps-container"),style:{maxWidth:Math.min(I.length*320,1160)},children:(0,a.jsx)(mr.Z,(0,l.Z)((0,l.Z)({},M),{},{current:y,onChange:void 0,children:I.map(function(Me){var _e=k.current.get(Me);return(0,a.jsx)(mr.Z.Step,(0,l.Z)({title:_e==null?void 0:_e.title},_e==null?void 0:_e.stepProps),Me)})}))})},[I,t,y,M]),$e=(0,Yt.J)(function(){var Me,_e=W.current[y];(Me=_e.current)===null||Me===void 0||Me.submit()}),Ce=(0,Yt.J)(function(){y<1||H(y-1)}),lt=(0,u.useMemo)(function(){return v!==!1&&(0,a.jsx)(fr.Z,(0,l.Z)((0,l.Z)({type:"primary",loading:D},v==null?void 0:v.submitButtonProps),{},{onClick:function(){var _e;v==null||(_e=v.onSubmit)===null||_e===void 0||_e.call(v),$e()},children:F.getMessage("stepsForm.next","\u4E0B\u4E00\u6B65")}),"next")},[F,D,$e,v]),He=(0,u.useMemo)(function(){return v!==!1&&(0,a.jsx)(fr.Z,(0,l.Z)((0,l.Z)({},v==null?void 0:v.resetButtonProps),{},{onClick:function(){var _e;Ce(),v==null||(_e=v.onReset)===null||_e===void 0||_e.call(v)},children:F.getMessage("stepsForm.prev","\u4E0A\u4E00\u6B65")}),"pre")},[F,Ce,v]),mt=(0,u.useMemo)(function(){return v!==!1&&(0,a.jsx)(fr.Z,(0,l.Z)((0,l.Z)({type:"primary",loading:D},v==null?void 0:v.submitButtonProps),{},{onClick:function(){var _e;v==null||(_e=v.onSubmit)===null||_e===void 0||_e.call(v),$e()},children:F.getMessage("stepsForm.submit","\u63D0\u4EA4")}),"submit")},[F,D,$e,v]),Ct=(0,Yt.J)(function(){y>I.length-2||H(y+1)}),Zt=(0,u.useMemo)(function(){var Me=[],_e=y||0;if(_e<1?Me.push(lt):_e+1===I.length?Me.push(He,mt):Me.push(He,lt),Me=Me.filter(u.isValidElement),v&&v.render){var wt,en={form:(wt=W.current[y])===null||wt===void 0?void 0:wt.current,onSubmit:$e,step:y,onPre:Ce};return v.render(en,Me)}return v&&(v==null?void 0:v.render)===!1?null:Me},[I.length,lt,$e,He,Ce,y,mt,v]),Mt=(0,u.useMemo)(function(){return(0,se.Z)(n.children).map(function(Me,_e){var wt=Me.props,en=wt.name||"".concat(_e),un=y===_e,Rn=un?{contentRender:C,submitter:!1}:{};return(0,a.jsx)("div",{className:ge()("".concat(t,"-step"),(0,Y.Z)({},"".concat(t,"-step-active"),un)),children:u.cloneElement(Me,(0,l.Z)((0,l.Z)((0,l.Z)((0,l.Z)({},Rn),h),wt),{},{name:en,step:_e,key:en}))},en)})},[h,t,n.children,y,C]),sn=(0,u.useMemo)(function(){return m?m(I.map(function(Me){var _e;return{key:Me,title:(_e=k.current.get(Me))===null||_e===void 0?void 0:_e.title}}),Ve):Ve},[I,Ve,m]),Lt=(0,u.useMemo)(function(){return(0,a.jsxs)("div",{className:"".concat(t,"-container"),style:Z,children:[Mt,c?null:(0,a.jsx)(cn.Z,{children:Zt})]})},[Z,Mt,t,c,Zt]),pn=(0,u.useMemo)(function(){var Me={stepsDom:sn,formDom:Lt};return c?c(ke(Me),Zt):ke(Me)},[sn,Lt,ke,c,Zt]);return(0,a.jsx)("div",{className:t,children:(0,a.jsx)(vn.Z.Provider,(0,l.Z)((0,l.Z)({},j),{},{children:(0,a.jsx)(tr.Provider,{value:{loading:D,setLoading:S,regForm:q,keyArray:I,next:Ct,formArrayRef:W,formMapRef:k,lastStep:ot,unRegForm:le,onFormFinish:de},children:pn})}))})}function Yn(n){return(0,a.jsx)(re.oK,{children:(0,a.jsx)(gr,(0,l.Z)({},n))})}Yn.StepForm=Kr,Yn.useForm=vn.Z.useForm;var Vr=["steps","columns","forceUpdate","grid"],pr=function(e){var o=e.steps,t=e.columns,s=e.forceUpdate,d=e.grid,v=(0,ie.Z)(e,Vr),c=(0,fn.Z)(v),m=(0,u.useCallback)(function(M){var O,h;(O=(h=c.current).onCurrentChange)===null||O===void 0||O.call(h,M),s([])},[s,c]),C=(0,u.useMemo)(function(){return o==null?void 0:o.map(function(M,O){return(0,u.createElement)(gn,(0,l.Z)((0,l.Z)({grid:d},M),{},{key:O,layoutType:"StepForm",columns:t[O]}))})},[t,d,o]);return(0,a.jsx)(Yn,(0,l.Z)((0,l.Z)({},v),{},{onCurrentChange:m,children:C}))},Pn=pr,Qt=function(e){var o=e.children;return(0,a.jsx)(a.Fragment,{children:o})},rn=Qt,Un=r(97462),Qn=function(e,o){var t=o.genItems;if(e.valueType==="dependency"){var s,d,v,c=(s=e.getFieldProps)===null||s===void 0?void 0:s.call(e);return(0,at.ET)(Array.isArray((d=e.name)!==null&&d!==void 0?d:c==null?void 0:c.name),'SchemaForm: fieldProps.name should be NamePath[] when valueType is "dependency"'),(0,at.ET)(typeof e.columns=="function",'SchemaForm: columns should be a function when valueType is "dependency"'),Array.isArray((v=e.name)!==null&&v!==void 0?v:c==null?void 0:c.name)?(0,u.createElement)(Un.Z,(0,l.Z)((0,l.Z)({name:e.name},c),{},{key:e.key}),function(m){return!e.columns||typeof e.columns!="function"?null:t(e.columns(m))}):null}return!0},nr=function(e){if(e.valueType==="divider"){var o;return(0,u.createElement)(An.Z,(0,l.Z)((0,l.Z)({},(o=e.getFieldProps)===null||o===void 0?void 0:o.call(e)),{},{key:e.key}))}return!0},hn=r(31649),yr=function(e,o){var t=o.action,s=o.formRef,d=o.type,v=o.originItem,c=(0,l.Z)((0,l.Z)({},(0,Ae.Z)(e,["dataIndex","width","render","renderFormItem","renderText","title"])),{},{name:e.dataIndex,width:e.width,render:(e==null?void 0:e.render)?function(O,h,Z){var b,N,j;return e==null||(b=e.render)===null||b===void 0?void 0:b.call(e,O,h,Z,t==null?void 0:t.current,(0,l.Z)((0,l.Z)({type:d},e),{},{formItemProps:(N=e.getFormItemProps)===null||N===void 0?void 0:N.call(e),fieldProps:(j=e.getFieldProps)===null||j===void 0?void 0:j.call(e)}))}:void 0}),m=function(){return(0,a.jsx)(hn.Z,(0,l.Z)((0,l.Z)({},c),{},{ignoreFormItem:!0}))},C=(e==null?void 0:e.renderFormItem)?function(O,h){var Z,b,N,j=(0,Be.Z)((0,l.Z)((0,l.Z)({},h),{},{onChange:void 0}));return e==null||(Z=e.renderFormItem)===null||Z===void 0?void 0:Z.call(e,(0,l.Z)((0,l.Z)({type:d},e),{},{formItemProps:(b=e.getFormItemProps)===null||b===void 0?void 0:b.call(e),fieldProps:(N=e.getFieldProps)===null||N===void 0?void 0:N.call(e),originProps:v}),(0,l.Z)((0,l.Z)({},j),{},{defaultRender:m,type:d}),s.current)}:void 0;if(e==null?void 0:e.renderFormItem){var M=C==null?void 0:C(null,{});if(!M||e.ignoreFormItem)return M}return(0,u.createElement)(hn.Z,(0,l.Z)((0,l.Z)({},c),{},{key:"".concat(e.key,"-").concat(e.index),renderFormItem:C}))},_r=r(59962),ur=function(e,o){var t=o.genItems;if(e.valueType==="formList"&&e.dataIndex){var s,d,v,c,m,C,M,O,h,Z,b;return!e.columns||!Array.isArray(e.columns)?null:(0,a.jsx)(_r.u,(0,l.Z)((0,l.Z)({name:e.dataIndex,label:e.label,initialValue:e.initialValue,colProps:e.colProps,rowProps:e.rowProps},(s=e.getFieldProps)===null||s===void 0?void 0:s.call(e)),{},{isValidateList:(d=((m=e.getFormItemProps)===null||m===void 0?void 0:m.call(e))||((C=e.getFieldProps)===null||C===void 0?void 0:C.call(e)))===null||d===void 0||(v=d.rules)===null||v===void 0||(c=v[0])===null||c===void 0?void 0:c.required,emptyListMessage:(M=((Z=e.getFormItemProps)===null||Z===void 0?void 0:Z.call(e))||((b=e.getFieldProps)===null||b===void 0?void 0:b.call(e)))===null||M===void 0||(O=M.rules)===null||O===void 0||(h=O[0])===null||h===void 0?void 0:h.message,children:t(e.columns)}),e.key)}return!0},kr=r(47673),Ar=r(4107),i=r(64893),f=r(2514),p=["children","value","valuePropName","onChange","fieldProps","space","type","transform","convertValue"],ne=["children","space","valuePropName"],ct={space:cn.Z,group:Ar.Z.Group};function Ot(n){var e=arguments.length<=1?void 0:arguments[1];return e&&e.target&&n in e.target?e.target[n]:e}var jt=function(e){var o=e.children,t=e.value,s=t===void 0?[]:t,d=e.valuePropName,v=e.onChange,c=e.fieldProps,m=e.space,C=e.type,M=C===void 0?"space":C,O=e.transform,h=e.convertValue,Z=(0,ie.Z)(e,p),b=(0,Yt.J)(function(I,$){var A,R=(0,Ze.Z)(s);R[$]=Ot(d||"value",I),v==null||v(R),c==null||(A=c.onChange)===null||A===void 0||A.call(c,R)}),N=-1,j=(0,se.Z)(o).map(function(I){if(u.isValidElement(I)){var $,A,R;N+=1;var D=N,S=(I==null||($=I.type)===null||$===void 0?void 0:$.displayName)==="ProFormComponent"||(I==null||(A=I.props)===null||A===void 0?void 0:A.readonly),F=S?(0,l.Z)((0,l.Z)({key:D,ignoreFormItem:!0},I.props||{}),{},{fieldProps:(0,l.Z)((0,l.Z)({},I==null||(R=I.props)===null||R===void 0?void 0:R.fieldProps),{},{onChange:function(){b(arguments.length<=0?void 0:arguments[0],D)}}),value:s==null?void 0:s[D],onChange:void 0}):(0,l.Z)((0,l.Z)({key:D},I.props||{}),{},{value:s==null?void 0:s[D],onChange:function(K){var y,H;b(K,D),(y=(H=I.props).onChange)===null||y===void 0||y.call(H,K)}});return u.cloneElement(I,F)}return I}),z=ct[M],k=(0,f.zx)(Z),W=k.RowWrapper,w=(0,u.useMemo)(function(){return(0,l.Z)({},M==="group"?{compact:!0}:{})},[M]),ee=(0,u.useCallback)(function(I){var $=I.children;return(0,a.jsx)(z,(0,l.Z)((0,l.Z)((0,l.Z)({},w),m),{},{align:"start",children:$}))},[z,m,w]);return(0,a.jsx)(W,{Wrapper:ee,children:j})},vt=u.forwardRef(function(n,e){var o=n.children,t=n.space,s=n.valuePropName,d=(0,ie.Z)(n,ne);return(0,u.useImperativeHandle)(e,function(){return{}}),(0,a.jsx)(jt,(0,l.Z)((0,l.Z)((0,l.Z)({space:t,valuePropName:s},d.fieldProps),{},{onChange:void 0},d),{},{children:o}))}),Kt=(0,i.G)(vt),Xt=Kt,ln=function(e,o){var t=o.genItems;if(e.valueType==="formSet"&&e.dataIndex){var s,d;return!e.columns||!Array.isArray(e.columns)?null:(0,u.createElement)(Xt,(0,l.Z)((0,l.Z)({},(s=e.getFormItemProps)===null||s===void 0?void 0:s.call(e)),{},{key:e.key,initialValue:e.initialValue,name:e.dataIndex,label:e.label,colProps:e.colProps,rowProps:e.rowProps},(d=e.getFieldProps)===null||d===void 0?void 0:d.call(e)),t(e.columns))}return!0},rr=r(24739),Cr=function(e,o){var t=o.genItems;if(e.valueType==="group"){var s;return!e.columns||!Array.isArray(e.columns)?null:(0,a.jsx)(rr.UW,(0,l.Z)((0,l.Z)({label:e.label,colProps:e.colProps,rowProps:e.rowProps},(s=e.getFieldProps)===null||s===void 0?void 0:s.call(e)),{},{children:t(e.columns)}),e.key)}return!0},Zr=function(e){return e.valueType&&typeof e.valueType=="string"&&["index","indexBorder","option"].includes(e==null?void 0:e.valueType)?null:!0},xr=[Zr,Cr,ur,ln,nr,Qn],na=function(e,o){for(var t=0;t0&&arguments[0]!==void 0?arguments[0]:{},d=(0,u.useRef)(),v=(0,u.useRef)(null),c=(0,u.useRef)(),m=(0,u.useRef)(),C=(0,u.useState)(""),M=(0,J.Z)(C,2),O=M[0],h=M[1],Z=(0,u.useRef)([]),b=(0,G.Z)(function(){return s.size||s.defaultSize||"middle"},{value:s.size,onChange:s.onSizeChange}),N=(0,J.Z)(b,2),j=N[0],z=N[1],k=(0,u.useMemo)(function(){var R,D={};return(R=s.columns)===null||R===void 0||R.forEach(function(S,F){var L=S.key,K=S.dataIndex,y=S.fixed,H=S.disable,ke=Tt(L!=null?L:K,F);ke&&(D[ke]={show:!0,fixed:y,disable:H})}),D},[s.columns]),W=(0,G.Z)(function(){var R,D,S=s.columnsState||{},F=S.persistenceType,L=S.persistenceKey;if(L&&F&&typeof window!="undefined"){var K=window[F];try{var y=K==null?void 0:K.getItem(L);if(y)return JSON.parse(y)}catch(H){console.warn(H)}}return s.columnsStateMap||((R=s.columnsState)===null||R===void 0?void 0:R.value)||((D=s.columnsState)===null||D===void 0?void 0:D.defaultValue)||k},{value:((n=s.columnsState)===null||n===void 0?void 0:n.value)||s.columnsStateMap,onChange:((e=s.columnsState)===null||e===void 0?void 0:e.onChange)||s.onColumnsStateChange}),w=(0,J.Z)(W,2),ee=w[0],I=w[1];(0,u.useLayoutEffect)(function(){var R=s.columnsState||{},D=R.persistenceType,S=R.persistenceKey;if(S&&D&&typeof window!="undefined"){var F=window[D];try{var L=F==null?void 0:F.getItem(S);I(L?JSON.parse(L):k)}catch(K){console.warn(K)}}},[s.columnsState,k,I]),(0,at.ET)(!s.columnsStateMap,"columnsStateMap\u5DF2\u7ECF\u5E9F\u5F03\uFF0C\u8BF7\u4F7F\u7528 columnsState.value \u66FF\u6362"),(0,at.ET)(!s.columnsStateMap,"columnsStateMap has been discarded, please use columnSstate.value replacement");var $=(0,u.useCallback)(function(){var R=s.columnsState||{},D=R.persistenceType,S=R.persistenceKey;if(!(!S||!D||typeof window=="undefined")){var F=window[D];try{F==null||F.removeItem(S)}catch(L){console.error(L)}}},[s.columnsState]);(0,u.useEffect)(function(){var R,D;if(!(!((R=s.columnsState)===null||R===void 0?void 0:R.persistenceKey)||!((D=s.columnsState)===null||D===void 0?void 0:D.persistenceType))&&typeof window!="undefined"){var S=s.columnsState,F=S.persistenceType,L=S.persistenceKey,K=window[F];try{K==null||K.setItem(L,JSON.stringify(ee))}catch(y){console.error(y)}}},[(o=s.columnsState)===null||o===void 0?void 0:o.persistenceKey,ee,(t=s.columnsState)===null||t===void 0?void 0:t.persistenceType]);var A={action:d.current,setAction:function(D){d.current=D},sortKeyColumns:Z.current,setSortKeyColumns:function(D){Z.current=D},propsRef:m,columnsMap:ee,keyWords:O,setKeyWords:function(D){return h(D)},setTableSize:z,tableSize:j,prefixName:c.current,setPrefixName:function(D){c.current=D},setColumnsMap:I,columns:s.columns,rootDomRef:v,clearPersistenceStorage:$};return Object.defineProperty(A,"prefixName",{get:function(){return c.current}}),Object.defineProperty(A,"sortKeyColumns",{get:function(){return Z.current}}),Object.defineProperty(A,"action",{get:function(){return d.current}}),A}var Ma=(0,Ra.f)(Ta),dr=Ma,zo=r(63185),Oa=r(9676),Uo=r(20136),Da=r(55241),Wo=r(32157),Ia=r(7573),Na=r(55934),Fa=r(81162),ja=r(81455),Vo=r(16089),Ka=["key","dataIndex","children"],oa=function(e){var o=e.title,t=e.show,s=e.children,d=e.columnKey,v=e.fixed,c=dr.useContainer(),m=c.columnsMap,C=c.setColumnsMap;return t?(0,a.jsx)(Sr.Z,{title:o,children:(0,a.jsx)("span",{onClick:function(O){O.stopPropagation(),O.preventDefault();var h=m[d]||{},Z=typeof h.disable=="boolean"&&h.disable;if(!Z){var b=(0,l.Z)((0,l.Z)({},m),{},(0,Y.Z)({},d,(0,l.Z)((0,l.Z)({},h),{},{fixed:v})));C(b)}},children:s})}):null},Aa=function(e){var o=e.columnKey,t=e.isLeaf,s=e.title,d=e.className,v=e.fixed,c=(0,re.YB)(),m=(0,a.jsxs)("span",{className:"".concat(d,"-list-item-option"),children:[(0,a.jsx)(oa,{columnKey:o,fixed:"left",title:c.getMessage("tableToolBar.leftPin","\u56FA\u5B9A\u5728\u5217\u9996"),show:v!=="left",children:(0,a.jsx)(Na.Z,{})}),(0,a.jsx)(oa,{columnKey:o,fixed:void 0,title:c.getMessage("tableToolBar.noPin","\u4E0D\u56FA\u5B9A"),show:!!v,children:(0,a.jsx)(Fa.Z,{})}),(0,a.jsx)(oa,{columnKey:o,fixed:"right",title:c.getMessage("tableToolBar.rightPin","\u56FA\u5B9A\u5728\u5217\u5C3E"),show:v!=="right",children:(0,a.jsx)(ja.Z,{})})]});return(0,a.jsxs)("span",{className:"".concat(d,"-list-item"),children:[(0,a.jsx)("div",{className:"".concat(d,"-list-item-title"),children:s}),t?null:m]},o)},la=function(e){var o,t,s=e.list,d=e.draggable,v=e.checkable,c=e.className,m=e.showTitle,C=m===void 0?!0:m,M=e.title,O=e.listHeight,h=O===void 0?280:O,Z=dr.useContainer(),b=Z.columnsMap,N=Z.setColumnsMap,j=Z.sortKeyColumns,z=Z.setSortKeyColumns,k=s&&s.length>0,W=(0,u.useMemo)(function(){if(!k)return{};var $=[],A=function R(D,S){return D.map(function(F){var L,K=F.key,y=F.dataIndex,H=F.children,ke=(0,ie.Z)(F,Ka),ot=Tt(K,ke.index),q=b[ot||"null"]||{show:!0};q.show!==!1&&(S==null?void 0:S.show)!==!1&&!H&&$.push(ot);var le=(0,l.Z)((0,l.Z)({key:ot},(0,Ae.Z)(ke,["className"])),{},{selectable:!1,disabled:q.disable===!0,disableCheckbox:typeof q.disable=="boolean"?q.disable:(L=q.disable)===null||L===void 0?void 0:L.checkbox,isLeaf:S?!0:void 0});return H&&(le.children=R(H,q)),le})};return{list:A(s),keys:$}},[b,s,k]),w=(0,Yt.J)(function($,A,R){var D=(0,l.Z)({},b),S=(0,Ze.Z)(j),F=S.findIndex(function(H){return H===$}),L=S.findIndex(function(H){return H===A}),K=R>L;if(!(F<0)){var y=S[F];S.splice(F,1),R===0?S.unshift(y):S.splice(K?L:L+1,0,y),S.forEach(function(H,ke){D[H]=(0,l.Z)((0,l.Z)({},D[H]||{}),{},{order:ke})}),N(D),z(S)}}),ee=(0,Yt.J)(function($){var A=$.node.key,R=(0,l.Z)({},b[A]);R.show=$.checked,N((0,l.Z)((0,l.Z)({},b),{},(0,Y.Z)({},A,R)))});if(!k)return null;var I=(0,a.jsx)(Ia.Z,{itemHeight:24,draggable:d&&!!((o=W.list)===null||o===void 0?void 0:o.length)&&((t=W.list)===null||t===void 0?void 0:t.length)>1,checkable:v,onDrop:function(A){var R=A.node.key,D=A.dragNode.key,S=A.dropPosition,F=A.dropToGap,L=S===-1||!F?S+1:S;w(D,R,L)},blockNode:!0,onCheck:function(A,R){return ee(R)},checkedKeys:W.keys,showLine:!1,titleRender:function(A){var R=(0,l.Z)((0,l.Z)({},A),{},{children:void 0});return(0,a.jsx)(Aa,(0,l.Z)((0,l.Z)({className:c},R),{},{title:(0,qt.h)(R.title,R),columnKey:R.key}))},height:h,treeData:W.list});return(0,a.jsxs)(a.Fragment,{children:[C&&(0,a.jsx)("span",{className:"".concat(c,"-list-title"),children:M}),I]})},La=function(e){var o=e.localColumns,t=e.className,s=e.draggable,d=e.checkable,v=e.listsHeight,c=[],m=[],C=[],M=(0,re.YB)();o.forEach(function(Z){if(!Z.hideInSetting){var b=Z.fixed;if(b==="left"){m.push(Z);return}if(b==="right"){c.push(Z);return}C.push(Z)}});var O=c&&c.length>0,h=m&&m.length>0;return(0,a.jsxs)("div",{className:ge()("".concat(t,"-list"),(0,Y.Z)({},"".concat(t,"-list-group"),O||h)),children:[(0,a.jsx)(la,{title:M.getMessage("tableToolBar.leftFixedTitle","\u56FA\u5B9A\u5728\u5DE6\u4FA7"),list:m,draggable:s,checkable:d,className:t,listHeight:v}),(0,a.jsx)(la,{list:C,draggable:s,checkable:d,title:M.getMessage("tableToolBar.noFixedTitle","\u4E0D\u56FA\u5B9A"),showTitle:h||O,className:t,listHeight:v}),(0,a.jsx)(la,{title:M.getMessage("tableToolBar.rightFixedTitle","\u56FA\u5B9A\u5728\u53F3\u4FA7"),list:c,draggable:s,checkable:d,className:t,listHeight:v})]})};function wa(n){var e,o,t=(0,u.useRef)({}),s=dr.useContainer(),d=n.columns,v=n.checkedReset,c=v===void 0?!0:v,m=s.columnsMap,C=s.setColumnsMap,M=s.clearPersistenceStorage;(0,u.useEffect)(function(){var w,ee;if((w=s.propsRef.current)===null||w===void 0||(ee=w.columnsState)===null||ee===void 0?void 0:ee.value){var I,$;t.current=JSON.parse(JSON.stringify(((I=s.propsRef.current)===null||I===void 0||($=I.columnsState)===null||$===void 0?void 0:$.value)||{}))}},[]);var O=(0,Yt.J)(function(){var w=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,ee={},I=function $(A){A.forEach(function(R){var D=R.key,S=R.fixed,F=R.index,L=R.children,K=Tt(D,F);K&&(ee[K]={show:w,fixed:S}),L&&$(L)})};I(d),C(ee)}),h=(0,Yt.J)(function(w){w.target.checked?O():O(!1)}),Z=(0,Yt.J)(function(){M==null||M(),C(t.current)}),b=Object.values(m).filter(function(w){return!w||w.show===!1}),N=b.length>0&&b.length!==d.length,j=(0,re.YB)(),z=(0,u.useContext)(Ke.ZP.ConfigContext),k=z.getPrefixCls,W=k("pro-table-column-setting");return(0,a.jsx)(Da.Z,{arrowPointAtCenter:!0,title:(0,a.jsxs)("div",{className:"".concat(W,"-title"),children:[(0,a.jsx)(Oa.Z,{indeterminate:N,checked:b.length===0&&b.length!==d.length,onChange:function(ee){return h(ee)},children:j.getMessage("tableToolBar.columnDisplay","\u5217\u5C55\u793A")}),c?(0,a.jsx)("a",{onClick:Z,className:"".concat(W,"-action-rest-button"),children:j.getMessage("tableToolBar.reset","\u91CD\u7F6E")}):null,(n==null?void 0:n.extra)?(0,a.jsx)(cn.Z,{size:12,align:"center",children:n.extra}):null]}),overlayClassName:"".concat(W,"-overlay"),trigger:"click",placement:"bottomRight",content:(0,a.jsx)(La,{checkable:(e=n.checkable)!==null&&e!==void 0?e:!0,draggable:(o=n.draggable)!==null&&o!==void 0?o:!0,className:W,localColumns:d,listsHeight:n.listsHeight}),children:n.children||(0,a.jsx)(Sr.Z,{title:j.getMessage("tableToolBar.columnSetting","\u5217\u8BBE\u7F6E"),children:(0,a.jsx)(ca.Z,{})})})}var Ba=wa,$a=r(38069),_o=r(30887),va=r(28682),ko=r(59250),fa=r(13013),Ho=r(36003),za=["label","key"],Ua=function(e){var o=e.items,t=o===void 0?[]:o,s=e.type,d=s===void 0?"inline":s,v=e.prefixCls,c=e.activeKey,m=(0,G.Z)(c,{value:c,onChange:e.onChange}),C=(0,J.Z)(m,2),M=C[0],O=C[1];if(t.length<1)return null;var h=t.find(function(Z){return Z.key===M})||t[0];return d==="inline"?(0,a.jsx)("div",{className:ge()("".concat(v,"-menu"),"".concat(v,"-inline-menu")),children:t.map(function(Z,b){return(0,a.jsx)("div",{onClick:function(){O(Z.key)},className:ge()("".concat(v,"-inline-menu-item"),h.key===Z.key?"".concat(v,"-inline-menu-item-active"):void 0),children:Z.label},Z.key||b)})}):d==="tab"?(0,a.jsx)(nt.Z,{activeKey:h.key,onTabClick:function(b){return O(b)},children:t.map(function(Z,b){var N=Z.label,j=Z.key,z=(0,ie.Z)(Z,za);return(0,a.jsx)(nt.Z.TabPane,(0,l.Z)({tab:N},z),j||b)})}):(0,a.jsx)("div",{className:ge()("".concat(v,"-menu"),"".concat(v,"-dropdownmenu")),children:(0,a.jsx)(fa.Z,{trigger:["click"],overlay:(0,a.jsx)(va.Z,{selectedKeys:[h.key],onClick:function(b){O(b.key)},items:t.map(function(Z,b){return{key:Z.key||b,disabled:Z.disabled,label:Z.label}})}),children:(0,a.jsxs)(cn.Z,{className:"".concat(v,"-dropdownmenu-label"),children:[h.label,(0,a.jsx)(Jn.Z,{})]})})})},Wa=Ua;function Va(n){if(u.isValidElement(n))return n;if(n){var e=n,o=e.icon,t=e.tooltip,s=e.onClick,d=e.key;return o&&t?(0,a.jsx)(Sr.Z,{title:t,children:(0,a.jsx)("span",{onClick:function(){s&&s(d)},children:o},d)}):o}return null}var _a=function(e){var o=e.prefixCls,t=e.tabs,s=t===void 0?{}:t,d=e.multipleLine,v=e.filtersNode;return d?(0,a.jsx)("div",{className:"".concat(o,"-extra-line"),children:s.items&&s.items.length?(0,a.jsx)(nt.Z,{activeKey:s.activeKey,onChange:s.onChange,tabBarExtraContent:v,children:s.items.map(function(c,m){return(0,a.jsx)(nt.Z.TabPane,(0,l.Z)({},c),c.key||m)})}):v}):null},ka=function(e){var o=e.prefixCls,t=e.title,s=e.subTitle,d=e.tooltip,v=e.className,c=e.style,m=e.search,C=e.onSearch,M=e.multipleLine,O=M===void 0?!1:M,h=e.filter,Z=e.actions,b=Z===void 0?[]:Z,N=e.settings,j=N===void 0?[]:N,z=e.tabs,k=z===void 0?{}:z,W=e.menu,w=(0,re.YB)(),ee=(0,$a.ZP)(),I=ee==="sm"||ee==="xs",$=w.getMessage("tableForm.inputPlaceholder","\u8BF7\u8F93\u5165"),A=(0,u.useMemo)(function(){return m?u.isValidElement(m)?m:(0,a.jsx)(Ar.Z.Search,(0,l.Z)((0,l.Z)({style:{width:200},placeholder:$},m),{},{onSearch:function(){for(var de,Ve=arguments.length,$e=new Array(Ve),Ce=0;CeCt||mt!==void 0&&j&&j.length<=Ct&<.run(!1)},[R==null?void 0:R.current]),(0,u.useEffect)(function(){!ot||lt.run(!1)},[R==null?void 0:R.pageSize]),(0,Dt.ZP)(function(){return lt.run(!1),c||(h.current=!1),function(){lt.cancel()}},[].concat((0,Ze.Z)(Ve),[c])),{dataSource:j,setDataSource:z,loading:w,reload:function(){var He=(0,g.Z)((0,U.Z)().mark(function Ct(){return(0,U.Z)().wrap(function(Mt){for(;;)switch(Mt.prev=Mt.next){case 0:return Mt.next=2,lt.run(!1);case 2:case"end":return Mt.stop()}},Ct)}));function mt(){return He.apply(this,arguments)}return mt}(),pageInfo:R,pollingLoading:K,reset:function(){var He=(0,g.Z)((0,U.Z)().mark(function Ct(){var Zt,Mt,sn,Lt,pn,Me,_e,wt;return(0,U.Z)().wrap(function(un){for(;;)switch(un.prev=un.next){case 0:Zt=t||{},Mt=Zt.pageInfo,sn=Mt||{},Lt=sn.defaultCurrent,pn=Lt===void 0?1:Lt,Me=sn.defaultPageSize,_e=Me===void 0?20:Me,wt={current:pn,total:0,pageSize:_e},S(wt);case 4:case"end":return un.stop()}},Ct)}));function mt(){return He.apply(this,arguments)}return mt}(),setPageInfo:function(){var He=(0,g.Z)((0,U.Z)().mark(function Ct(Zt){return(0,U.Z)().wrap(function(sn){for(;;)switch(sn.prev=sn.next){case 0:S((0,l.Z)((0,l.Z)({},R),Zt));case 1:case"end":return sn.stop()}},Ct)}));function mt(Ct){return He.apply(this,arguments)}return mt}()}},co=uo,vo=function(e){return function(o,t){var s,d,v=o.fixed,c=o.index,m=t.fixed,C=t.index;if(v==="left"&&m!=="left"||m==="right"&&v!=="right")return-2;if(m==="left"&&v!=="left"||v==="right"&&m!=="right")return 2;var M=o.key||"".concat(c),O=t.key||"".concat(C);if(((s=e[M])===null||s===void 0?void 0:s.order)||((d=e[O])===null||d===void 0?void 0:d.order)){var h,Z;return(((h=e[M])===null||h===void 0?void 0:h.order)||0)-(((Z=e[O])===null||Z===void 0?void 0:Z.order)||0)}return(o.index||0)-(t.index||0)}},fo=r(53227),mo=function(e){var o={};return Object.keys(e||{}).forEach(function(t){var s;Array.isArray(e[t])&&((s=e[t])===null||s===void 0?void 0:s.length)===0||e[t]!==void 0&&(o[t]=e[t])}),o},ho=mo,go=r(77398),po=r(74763),yo=r(88306),Co=r(66758),Zo=r(94984),sa=r(2026),xo=["children"],bo=["",null,void 0],ha=function(){for(var e=arguments.length,o=new Array(e),t=0;tZt.length?(Zt.push(lt),Zt):(Zt.splice((v==null?void 0:v.current)*(v==null?void 0:v.pageSize)-1,0,lt),Zt)}return[].concat((0,Ze.Z)(t.dataSource),[lt])},K=function(){return(0,l.Z)((0,l.Z)({},R),{},{size:m,rowSelection:c===!1?void 0:c,className:o,style:M,columns:S.map(function(Ve){return Ve.isExtraColumns?Ve.extraColumn:Ve}),loading:t.loading,dataSource:$.newLineRecord?L(t.dataSource):t.dataSource,pagination:v,onChange:function($e,Ce,lt,He){var mt;if((mt=R.onChange)===null||mt===void 0||mt.call(R,$e,Ce,lt,He),F||k((0,Be.Z)(Ce)),Array.isArray(lt)){var Ct=lt.reduce(function(Lt,pn){return(0,l.Z)((0,l.Z)({},Lt),{},(0,Y.Z)({},"".concat(pn.field),pn.order))},{});z((0,Be.Z)(Ct))}else{var Zt,Mt=(Zt=lt.column)===null||Zt===void 0?void 0:Zt.sorter,sn=(Mt==null?void 0:Mt.toString())===Mt;z((0,Be.Z)((0,Y.Z)({},"".concat(sn?Mt:lt.field),lt.order))||{})}}})},y=(0,a.jsx)(xe.Z,(0,l.Z)((0,l.Z)({},K()),{},{rowKey:e})),H=n.tableViewRender?n.tableViewRender((0,l.Z)((0,l.Z)({},K()),{},{rowSelection:c!==!1?c:void 0}),y):y,ke=(0,u.useMemo)(function(){if(n.editable&&!n.name){var de,Ve,$e,Ce;return(0,a.jsxs)(a.Fragment,{children:[O,N,(0,u.createElement)(me.ZP,(0,l.Z)((0,l.Z)({},(de=n.editable)===null||de===void 0?void 0:de.formProps),{},{formRef:(Ve=n.editable)===null||Ve===void 0||($e=Ve.formProps)===null||$e===void 0?void 0:$e.formRef,component:!1,form:(Ce=n.editable)===null||Ce===void 0?void 0:Ce.form,onValuesChange:$.onValuesChange,key:"table",submitter:!1,omitNil:!1,dateFormatter:n.dateFormatter}),H)]})}return(0,a.jsxs)(a.Fragment,{children:[O,N,H]})},[N,n.loading,!!n.editable,H,O]),ot=b===!1||!!n.name?ke:(0,a.jsx)(te,(0,l.Z)((0,l.Z)({ghost:n.ghost,bordered:Ne("table",I),bodyStyle:O?{paddingTop:0}:{padding:0}},b),{},{children:ke})),q=function(){return n.tableRender?n.tableRender(n,ot,{toolbar:O||void 0,alert:N||void 0,table:H||void 0}):ot},le=(0,a.jsxs)("div",{className:ge()(ee,(0,Y.Z)({},"".concat(ee,"-polling"),t.pollingLoading)),style:Z,ref:D.rootDomRef,children:[w?null:h,d!=="form"&&n.tableExtraRender&&(0,a.jsx)("div",{className:"".concat(ee,"-extra"),children:n.tableExtraRender(n,t.dataSource||[])}),d!=="form"&&q()]});return!W||!(W==null?void 0:W.fullScreen)?le:(0,a.jsx)(Ke.ZP,{getPopupContainer:function(){return D.rootDomRef.current||document.body},children:le})}var No={},Fo=function(e){var o,t=e.cardBordered,s=e.request,d=e.className,v=e.params,c=v===void 0?No:v,m=e.defaultData,C=e.headerTitle,M=e.postData,O=e.ghost,h=e.pagination,Z=e.actionRef,b=e.columns,N=b===void 0?[]:b,j=e.toolBarRender,z=e.onLoad,k=e.onRequestError,W=e.style,w=e.cardProps,ee=e.tableStyle,I=e.tableClassName,$=e.columnsStateMap,A=e.onColumnsStateChange,R=e.options,D=e.search,S=e.name,F=e.onLoadingChange,L=e.rowSelection,K=L===void 0?!1:L,y=e.beforeSearchSubmit,H=e.tableAlertRender,ke=e.defaultClassName,ot=e.formRef,q=e.type,le=q===void 0?"table":q,de=e.columnEmptyText,Ve=de===void 0?"-":de,$e=e.toolbar,Ce=e.rowKey,lt=e.manualRequest,He=e.polling,mt=e.tooltip,Ct=e.revalidateOnFocus,Zt=Ct===void 0?!1:Ct,Mt=(0,ie.Z)(e,Do),sn=ge()(ke,d),Lt=(0,u.useRef)(),pn=(0,u.useRef)(),Me=ot||pn;(0,u.useImperativeHandle)(Z,function(){return Lt.current});var _e=(0,Ye.Z)(K?(K==null?void 0:K.defaultSelectedRowKeys)||[]:void 0,{value:K?K.selectedRowKeys:void 0}),wt=(0,J.Z)(_e,2),en=wt[0],un=wt[1],Rn=(0,u.useRef)([]),Wn=(0,u.useCallback)(function(oe,be){un(oe),(!K||!(K==null?void 0:K.selectedRowKeys))&&(Rn.current=be)},[un]),Ht=(0,Ye.Z)(function(){if(!(lt||D!==!1))return{}}),St=(0,J.Z)(Ht,2),ut=St[0],Lr=St[1],Xr=(0,Ye.Z)({}),ar=(0,J.Z)(Xr,2),Xn=ar[0],Er=ar[1],Hr=(0,Ye.Z)({}),qr=(0,J.Z)(Hr,2),Gr=qr[0],Jr=qr[1];(0,u.useEffect)(function(){var oe=Jt(N),be=oe.sort,xt=oe.filter;Er(xt),Jr(be)},[]);var ea=(0,re.YB)(),ta=(0,De.Z)(h)==="object"?h:{defaultCurrent:1,defaultPageSize:20,pageSize:20,current:1},Gt=dr.useContainer(),Cn=(0,u.useMemo)(function(){if(!!s)return function(){var oe=(0,g.Z)((0,U.Z)().mark(function be(xt){var Bt,Mn;return(0,U.Z)().wrap(function(_n){for(;;)switch(_n.prev=_n.next){case 0:return Bt=(0,l.Z)((0,l.Z)((0,l.Z)({},xt||{}),ut),c),delete Bt._timestamp,_n.next=4,s(Bt,Gr,Xn);case 4:return Mn=_n.sent,_n.abrupt("return",Mn);case 6:case"end":return _n.stop()}},be)}));return function(be){return oe.apply(this,arguments)}}()},[ut,c,Xn,Gr,s]),et=co(Cn,m,{pageInfo:h===!1?!1:ta,loading:e.loading,dataSource:e.dataSource,onDataSourceChange:e.onDataSourceChange,onLoad:z,onLoadingChange:F,onRequestError:k,postData:M,revalidateOnFocus:Zt,manual:ut===void 0,polling:He,effects:[(0,Nt.P)(c),(0,Nt.P)(ut),(0,Nt.P)(Xn),(0,Nt.P)(Gr)],debounceTime:e.debounceTime,onPageInfoChange:function(be){var xt,Bt;le==="list"||!h||!Cn||(h==null||(xt=h.onChange)===null||xt===void 0||xt.call(h,be.current,be.pageSize),h==null||(Bt=h.onShowSizeChange)===null||Bt===void 0||Bt.call(h,be.current,be.pageSize))}});(0,u.useEffect)(function(){var oe;if(!(e.manualRequest||!e.request||!Zt||((oe=e.form)===null||oe===void 0?void 0:oe.ignoreRules))){var be=function(){document.visibilityState==="visible"&&et.reload()};return document.addEventListener("visibilitychange",be),function(){return document.removeEventListener("visibilitychange",be)}}},[]);var tn=u.useRef(new Map),xn=u.useMemo(function(){return typeof Ce=="function"?Ce:function(oe,be){var xt;return be===-1?oe==null?void 0:oe[Ce]:e.name?be==null?void 0:be.toString():(xt=oe==null?void 0:oe[Ce])!==null&&xt!==void 0?xt:be==null?void 0:be.toString()}},[e.name,Ce]);(0,u.useMemo)(function(){var oe;if((oe=et.dataSource)===null||oe===void 0?void 0:oe.length){var be=new Map,xt=et.dataSource.map(function(Bt){var Mn=xn(Bt,-1);return be.set(Mn,Bt),Mn});return tn.current=be,xt}return[]},[et.dataSource,xn]),(0,u.useEffect)(function(){Rn.current=en==null?void 0:en.map(function(oe){var be;return(be=tn.current)===null||be===void 0?void 0:be.get(oe)})},[en]);var jn=(0,u.useMemo)(function(){var oe=h===!1?!1:(0,l.Z)({},h),be=(0,l.Z)((0,l.Z)({},et.pageInfo),{},{setPageInfo:function(Bt){var Mn=Bt.pageSize,qn=Bt.current,_n=et.pageInfo;if(Mn===_n.pageSize||_n.current===1){et.setPageInfo({pageSize:Mn,current:qn});return}s&&et.setDataSource([]),et.setPageInfo({pageSize:Mn,current:le==="list"?qn:1})}});return s&&oe&&(delete oe.onChange,delete oe.onShowSizeChange),ve(oe,be,ea)},[h,et,ea]);(0,Dt.ZP)(function(){var oe;e.request&&c&&et.dataSource&&(et==null||(oe=et.pageInfo)===null||oe===void 0?void 0:oe.current)!==1&&et.setPageInfo({current:1})},[c]),Gt.setPrefixName(e.name);var Vn=(0,u.useCallback)(function(){K&&K.onChange&&K.onChange([],[],{type:"none"}),Wn([],[])},[K,Wn]);Gt.setAction(Lt.current),Gt.propsRef.current=e;var Tn=(0,Re.ZP)((0,l.Z)((0,l.Z)({},e.editable),{},{tableName:e.name,getRowKey:xn,childrenColumnName:((o=e.expandable)===null||o===void 0?void 0:o.childrenColumnName)||"children",dataSource:et.dataSource||[],setDataSource:function(be){var xt,Bt;(xt=e.editable)===null||xt===void 0||(Bt=xt.onValuesChange)===null||Bt===void 0||Bt.call(xt,void 0,be),et.setDataSource(be)}}));Ge(Lt,et,{fullScreen:function(){var be;if(!(!((be=Gt.rootDomRef)===null||be===void 0?void 0:be.current)||!document.fullscreenEnabled))if(document.fullscreenElement)document.exitFullscreen();else{var xt;(xt=Gt.rootDomRef)===null||xt===void 0||xt.current.requestFullscreen()}},onCleanSelected:function(){Vn()},resetAll:function(){var be;Vn(),Er({}),Jr({}),Gt.setKeyWords(void 0),et.setPageInfo({current:1}),Me==null||(be=Me.current)===null||be===void 0||be.resetFields(),Lr({})},editableUtils:Tn}),Z&&(Z.current=Lt.current);var Ln=(0,u.useMemo)(function(){var oe;return pa({columns:N,counter:Gt,columnEmptyText:Ve,type:le,editableUtils:Tn,rowKey:Ce,childrenColumnName:(oe=e.expandable)===null||oe===void 0?void 0:oe.childrenColumnName}).sort(vo(Gt.columnsMap))},[N,Gt==null?void 0:Gt.sortKeyColumns,Gt==null?void 0:Gt.columnsMap,Ve,le,Tn.editableKeys&&Tn.editableKeys.join(",")]);(0,Dt.Au)(function(){if(Ln&&Ln.length>0){var oe=Ln.map(function(be){return Tt(be.key,be.index)});Gt.setSortKeyColumns(oe)}},[Ln],["render","renderFormItem"],100),(0,Dt.ZP)(function(){var oe=et.pageInfo,be=h||{},xt=be.current,Bt=xt===void 0?oe==null?void 0:oe.current:xt,Mn=be.pageSize,qn=Mn===void 0?oe==null?void 0:oe.pageSize:Mn;h&&(Bt||qn)&&(qn!==(oe==null?void 0:oe.pageSize)||Bt!==(oe==null?void 0:oe.current))&&et.setPageInfo({pageSize:qn||oe.pageSize,current:Bt||oe.current})},[h&&h.pageSize,h&&h.current]);var ua=(0,l.Z)((0,l.Z)({selectedRowKeys:en},K),{},{onChange:function(be,xt,Bt){K&&K.onChange&&K.onChange(be,xt,Bt),Wn(be,xt)}}),da=D!==!1&&(D==null?void 0:D.filterType)==="light",Ko=function(be){if(R&&R.search){var xt,Bt,Mn=R.search===!0?{}:R.search,qn=Mn.name,_n=qn===void 0?"keyword":qn,Bo=(xt=R.search)===null||xt===void 0||(Bt=xt.onSearch)===null||Bt===void 0?void 0:Bt.call(xt,Gt.keyWords);if(Bo!==!1){Lr((0,l.Z)((0,l.Z)({},be),{},(0,Y.Z)({},_n,Gt.keyWords)));return}}Lr(be)},Ao=(0,u.useMemo)(function(){if((0,De.Z)(et.loading)==="object"){var oe;return((oe=et.loading)===null||oe===void 0?void 0:oe.spinning)||!1}return et.loading},[et.loading]),Ca=D===!1&&le!=="form"?null:(0,a.jsx)(Ea,{pagination:jn,beforeSearchSubmit:y,action:Lt,columns:N,onFormSearchSubmit:function(be){Ko(be)},ghost:O,onReset:e.onReset,onSubmit:e.onSubmit,loading:!!Ao,manualRequest:lt,search:D,form:e.form,formRef:Me,type:e.type||"table",cardBordered:e.cardBordered,dateFormatter:e.dateFormatter}),Lo=j===!1?null:(0,a.jsx)(oo,{headerTitle:C,hideToolbar:R===!1&&!C&&!j&&!$e&&!da,selectedRows:Rn.current,selectedRowKeys:en,tableColumn:Ln,tooltip:mt,toolbar:$e,onFormSearchSubmit:function(be){Lr((0,l.Z)((0,l.Z)({},ut),be))},searchNode:da?Ca:null,options:R,actionRef:Lt,toolBarRender:j}),wo=K!==!1?(0,a.jsx)(E,{selectedRowKeys:en,selectedRows:Rn.current,onCleanSelected:Vn,alertOptionRender:Mt.tableAlertOptionRender,alertInfoRender:H,alwaysShowAlert:K==null?void 0:K.alwaysShowAlert}):null;return(0,a.jsx)(Io,(0,l.Z)((0,l.Z)({},e),{},{name:S,size:Gt.tableSize,onSizeChange:Gt.setTableSize,pagination:jn,searchNode:Ca,rowSelection:K!==!1?ua:void 0,className:sn,tableColumn:Ln,isLightFilter:da,action:et,alertDom:wo,toolbarDom:Lo,onSortChange:Jr,onFilterChange:Er,editableUtils:Tn,getRowKey:xn}))},ya=function(e){var o=(0,u.useContext)(Ke.ZP.ConfigContext),t=o.getPrefixCls,s=e.ErrorBoundary===!1?u.Fragment:e.ErrorBoundary||bn.Z;return(0,a.jsx)(dr.Provider,{initialState:e,children:(0,a.jsx)(re.oK,{children:(0,a.jsx)(s,{children:(0,a.jsx)(Fo,(0,l.Z)({defaultClassName:t("pro-table")},e))})})})};ya.Summary=xe.Z.Summary;var jo=ya},16894:function($t,tt,r){"use strict";var U=r(78775),g=r(65899);tt.ZP=g.Z},94984:function($t,tt,r){"use strict";var U=r(9715),g=r(55843),De=r(81253),J=r(28991),ae=r(20136),Ke=r(55241),Ie=r(84305),xe=r(39559),Y=r(28481),Ze=r(85893),l=r(7085),ie=r(67294),u=r(25394),a=r.n(u),Et=["label","rules","name","children","popoverProps"],nt=["errorType","rules","name","popoverProps","children"],zt={marginTop:-5,marginBottom:-5,marginLeft:0,marginRight:0},dn=function(gt){var it=gt.inputProps,Se=gt.input,ge=gt.extra,Ae=gt.errorList,se=gt.popoverProps,at=(0,ie.useState)(!1),Fe=(0,Y.Z)(at,2),It=Fe[0],ze=Fe[1],Je=(0,ie.useState)([]),rt=(0,Y.Z)(Je,2),Le=rt[0],pe=rt[1],G=(0,ie.useContext)(xe.ZP.ConfigContext),fe=G.getPrefixCls;(0,ie.useEffect)(function(){it.validateStatus!=="validating"&&pe(it.errors)},[it.errors,it.validateStatus]);var je=fe();return(0,Ze.jsx)(Ke.Z,(0,J.Z)((0,J.Z)({trigger:(se==null?void 0:se.trigger)||"focus",placement:(se==null?void 0:se.placement)||"topRight",visible:Le.length<1?!1:It,onVisibleChange:function(Pt){Pt!==It&&ze(Pt)},getPopupContainer:se==null?void 0:se.getPopupContainer,getTooltipContainer:se==null?void 0:se.getTooltipContainer,content:(0,Ze.jsxs)("div",{className:"".concat(je,"-form-item-with-help"),children:[it.validateStatus==="validating"?(0,Ze.jsx)(l.Z,{}):null,Ae]})},se),{},{children:(0,Ze.jsxs)("div",{children:[Se,ge]})}),"popover")},Vt=function(gt){var it=gt.label,Se=gt.rules,ge=gt.name,Ae=gt.children,se=gt.popoverProps,at=(0,De.Z)(gt,Et);return(0,Ze.jsx)(g.Z.Item,(0,J.Z)((0,J.Z)({preserve:!1,name:ge,rules:Se,hasFeedback:!0,_internalItemRender:{mark:"pro_table_render",render:function(It,ze){return(0,Ze.jsx)(dn,(0,J.Z)({inputProps:It,popoverProps:se},ze))}}},at),{},{style:(0,J.Z)((0,J.Z)({},zt),at==null?void 0:at.style),children:Ae}))};tt.Z=function(ht){var gt=ht.errorType,it=ht.rules,Se=ht.name,ge=ht.popoverProps,Ae=ht.children,se=(0,De.Z)(ht,nt);return Se&&(it==null?void 0:it.length)&>==="popover"?(0,Ze.jsx)(Vt,(0,J.Z)((0,J.Z)({name:Se,rules:it,popoverProps:ge},se),{},{children:Ae})):(0,Ze.jsx)(g.Z.Item,(0,J.Z)((0,J.Z)({rules:it},se),{},{style:(0,J.Z)((0,J.Z)({},zt),se.style),name:Se,children:Ae}))}},77398:function($t,tt,r){"use strict";r.d(tt,{X:function(){return ae}});var U=r(402),g=r(56256),De=r(85893),J=function(Ie){var xe;return!!((Ie==null||(xe=Ie.valueType)===null||xe===void 0?void 0:xe.toString().startsWith("date"))||(Ie==null?void 0:Ie.valueType)==="select"||(Ie==null?void 0:Ie.valueEnum))},ae=function(Ie,xe,Y){if(xe.copyable||xe.ellipsis){var Ze=xe.copyable&&Y?{text:Y,tooltips:["",""]}:void 0,l=J(xe),ie=xe.ellipsis&&Y?{tooltip:l?(0,De.jsx)("div",{className:"pro-table-tooltip-text",children:Ie}):Y}:!1;return(0,De.jsx)(g.Z.Text,{style:{width:"100%",margin:0,padding:0},title:"",copyable:Ze,ellipsis:ie,children:Ie})}return Ie}},2026:function($t,tt,r){"use strict";var U=r(22270),g=function(J,ae,Ke){return ae===void 0?J:(0,U.h)(J,ae,Ke)};tt.Z=g},86671:function($t,tt,r){"use strict";r.d(tt,{sN:function(){return G},cx:function(){return fe},aX:function(){return Pe}});var U=r(34792),g=r(48086),De=r(62350),J=r(24565),ae=r(55507),Ke=r(99809),Ie=r(92137),xe=r(28481),Y=r(9715),Ze=r(55843),l=r(96156),ie=r(85061),u=r(81253),a=r(28991),Et=r(90484),nt=r(85893),zt=r(7085),dn=r(78775),Vt=r(84164),ht=r(21770),gt=r(88306),it=r(8880),Se=r(80334),ge=r(67294),Ae=r(48171),se=r(10178),at=r(41036),Fe=r(27068),It=r(26369),ze=r(92210),Je=r(56725),rt=["map_row_parentKey"],Le=["map_row_parentKey","map_row_key"],pe=["map_row_key"],G=function(Q){return Array.isArray(Q)?Q.join(","):Q};function fe(x,Q){var Qe,ye=x.getRowKey,Oe=x.row,st=x.data,ft=x.childrenColumnName,dt=(Qe=G(x.key))===null||Qe===void 0?void 0:Qe.toString(),Ue=new Map;function Ut(qe,we,_){qe.forEach(function(ue,te){var me=(_||0)*10+te,re=ye(ue,me).toString();ue&&(0,Et.Z)(ue)==="object"&&ft in ue&&Ut(ue[ft]||[],re,me);var Re=(0,a.Z)((0,a.Z)({},ue),{},{map_row_key:re,children:void 0,map_row_parentKey:we});delete Re.children,we||delete Re.map_row_parentKey,Ue.set(re,Re)})}Q==="top"&&Ue.set(dt,(0,a.Z)((0,a.Z)({},Ue.get(dt)),Oe)),Ut(st),Q==="update"&&Ue.set(dt,(0,a.Z)((0,a.Z)({},Ue.get(dt)),Oe)),Q==="delete"&&Ue.delete(dt);var Rt=function(we){var _=new Map,ue=[],te=function(){we.forEach(function(re){if(re.map_row_parentKey&&!re.map_row_key){var Re=re.map_row_parentKey,Be=(0,u.Z)(re,rt);_.set(Re,[].concat((0,ie.Z)(_.get(Re)||[]),[Be]))}})};return Q==="top"&&te(),we.forEach(function(me){if(me.map_row_parentKey&&me.map_row_key){var re=me.map_row_parentKey,Re=me.map_row_key,Be=(0,u.Z)(me,Le);_.has(Re)&&(Be[ft]=_.get(Re)),_.set(re,[].concat((0,ie.Z)(_.get(re)||[]),[Be]))}}),Q==="update"&&te(),we.forEach(function(me){if(!me.map_row_parentKey){var re=me.map_row_key,Re=(0,u.Z)(me,pe);if(re&&_.has(re)){var Be=(0,a.Z)((0,a.Z)({},Re),{},(0,l.Z)({},ft,_.get(re)));ue.push(Be);return}ue.push(Re)}}),ue};return Rt(Ue)}function je(x){var Q=x.recordKey,Qe=x.onSave,ye=x.row,Oe=x.children,st=x.newLineConfig,ft=x.editorType,dt=x.tableName,Ue=(0,ge.useContext)(at.Z),Ut=Ze.Z.useFormInstance(),Rt=(0,Je.Z)(!1),qe=(0,xe.Z)(Rt,2),we=qe[0],_=qe[1];return(0,nt.jsxs)("a",{onClick:function(){var ue=(0,Ie.Z)((0,ae.Z)().mark(function me(re){var Re,Be,Ye,Dt,bn,Nt,kn,wn,En;return(0,ae.Z)().wrap(function(T){for(;;)switch(T.prev=T.next){case 0:return re.stopPropagation(),re.preventDefault(),T.prev=2,Be=ft==="Map",Ye=[dt,Array.isArray(Q)?Q[0]:Q].map(function(B){return B==null?void 0:B.toString()}).flat(1).filter(Boolean),_(!0),T.next=8,Ut.validateFields(Ye,{recursive:!0});case 8:return Dt=((Re=Ue.getFieldFormatValue)===null||Re===void 0?void 0:Re.call(Ue,Ye))||Ut.getFieldValue(Ye),Array.isArray(Q)&&Q.length>1&&(bn=(0,Ke.Z)(Q),Nt=bn.slice(1),kn=(0,gt.Z)(Dt,Nt),(0,it.Z)(Dt,Nt,kn)),wn=Be?(0,it.Z)({},Ye,Dt,!0):Dt,T.next=13,Qe==null?void 0:Qe(Q,(0,ze.T)({},ye,wn),ye,st);case 13:return En=T.sent,_(!1),T.abrupt("return",En);case 18:return T.prev=18,T.t0=T.catch(2),console.log(T.t0),_(!1),T.abrupt("return",null);case 23:case"end":return T.stop()}},me,null,[[2,18]])}));function te(me){return ue.apply(this,arguments)}return te}(),children:[we?(0,nt.jsx)(zt.Z,{style:{marginRight:8}}):null,Oe||"\u4FDD\u5B58"]},"save")}var Ee=function(Q){var Qe=Q.recordKey,ye=Q.onDelete,Oe=Q.row,st=Q.children,ft=Q.deletePopconfirmMessage,dt=(0,Je.Z)(function(){return!1}),Ue=(0,xe.Z)(dt,2),Ut=Ue[0],Rt=Ue[1],qe=(0,Ae.J)((0,Ie.Z)((0,ae.Z)().mark(function we(){var _;return(0,ae.Z)().wrap(function(te){for(;;)switch(te.prev=te.next){case 0:return te.prev=0,Rt(!0),te.next=4,ye==null?void 0:ye(Qe,Oe);case 4:return _=te.sent,Rt(!1),te.abrupt("return",_);case 9:return te.prev=9,te.t0=te.catch(0),console.log(te.t0),Rt(!1),te.abrupt("return",null);case 14:case"end":return te.stop()}},we,null,[[0,9]])})));return st!==!1?(0,nt.jsx)(J.Z,{title:ft,onConfirm:function(){return qe()},children:(0,nt.jsxs)("a",{children:[Ut?(0,nt.jsx)(zt.Z,{style:{marginRight:8}}):null,st||"\u5220\u9664"]})},"delete"):null},Pt=function(Q){var Qe=Q.recordKey,ye=Q.tableName,Oe=Q.newLineConfig,st=Q.editorType,ft=Q.onCancel,dt=Q.cancelEditable,Ue=Q.row,Ut=Q.cancelText,Rt=(0,ge.useContext)(at.Z),qe=Ze.Z.useFormInstance();return(0,nt.jsx)("a",{onClick:function(){var we=(0,Ie.Z)((0,ae.Z)().mark(function ue(te){var me,re,Re,Be,Ye,Dt;return(0,ae.Z)().wrap(function(Nt){for(;;)switch(Nt.prev=Nt.next){case 0:return te.stopPropagation(),te.preventDefault(),re=st==="Map",Re=[ye,Qe].flat(1).filter(Boolean),Be=((me=Rt.getFieldFormatValue)===null||me===void 0?void 0:me.call(Rt,Re))||qe.getFieldValue(Re),Ye=re?(0,it.Z)({},Re,Be):Be,Nt.next=8,ft==null?void 0:ft(Qe,Ye,Ue,Oe);case 8:return Dt=Nt.sent,dt(Qe),qe.setFieldsValue((0,l.Z)({},Qe,re?(0,gt.Z)(Ue,Re):Ue)),Nt.abrupt("return",Dt);case 12:case"end":return Nt.stop()}},ue)}));function _(ue){return we.apply(this,arguments)}return _}(),children:Ut||"\u53D6\u6D88"},"cancel")};function Pe(x,Q){var Qe=Q.recordKey,ye=Q.newLineConfig,Oe=Q.saveText,st=Q.deleteText;return[(0,nt.jsx)(je,(0,a.Z)((0,a.Z)({},Q),{},{row:x,children:Oe}),"save"+Qe),(ye==null?void 0:ye.options.recordKey)!==Qe?(0,nt.jsx)(Ee,(0,a.Z)((0,a.Z)({},Q),{},{row:x,children:st}),"delete"+Qe):null,(0,nt.jsx)(Pt,(0,a.Z)((0,a.Z)({},Q),{},{row:x}),"cancel"+Qe)]}function _t(x){var Q=(0,ge.useState)(void 0),Qe=(0,xe.Z)(Q,2),ye=Qe[0],Oe=Qe[1],st=(0,ge.useRef)(new Map),ft=(0,ge.useRef)(void 0);(0,Fe.Au)(function(){var E=new Map,P=function V(ce,he){ce==null||ce.forEach(function(We,Xe){var ve,Ge=he==null?Xe.toString():he+"_"+Xe.toString();E.set(Ge,G(x.getRowKey(We,-1))),E.set((ve=G(x.getRowKey(We,-1)))===null||ve===void 0?void 0:ve.toString(),Ge),x.childrenColumnName&&We[x.childrenColumnName]&&V(We[x.childrenColumnName],Ge)})};P(x.dataSource),st.current=E},[x.dataSource]),ft.current=ye;var dt=x.type||"single",Ue=(0,Vt.Z)(x.dataSource,"children",x.getRowKey),Ut=(0,xe.Z)(Ue,1),Rt=Ut[0],qe=(0,ht.Z)([],{value:x.editableKeys,onChange:x.onChange?function(E){var P;x==null||(P=x.onChange)===null||P===void 0||P.call(x,E.filter(function(V){return V!==void 0}),E.map(function(V){return Rt(V)}).filter(function(V){return V!==void 0}))}:void 0}),we=(0,xe.Z)(qe,2),_=we[0],ue=we[1],te=(0,ge.useMemo)(function(){var E=dt==="single"?_==null?void 0:_.slice(0,1):_;return new Set(E)},[(_||[]).join(","),dt]),me=(0,It.Z)(_),re=(0,Ae.J)(function(E){var P,V,ce,he,We=(P=x.getRowKey(E,E.index))===null||P===void 0||(V=P.toString)===null||V===void 0?void 0:V.call(P),Xe=(ce=x.getRowKey(E,-1))===null||ce===void 0||(he=ce.toString)===null||he===void 0?void 0:he.call(ce),ve=_.map(function(Ne){return Ne==null?void 0:Ne.toString()}),Ge=(me==null?void 0:me.map(function(Ne){return Ne==null?void 0:Ne.toString()}))||[],bt=x.tableName&&!!(Ge==null?void 0:Ge.includes(Xe))||!!(Ge==null?void 0:Ge.includes(We));return{recordKey:Xe,isEditable:x.tableName&&(ve==null?void 0:ve.includes(Xe))||(ve==null?void 0:ve.includes(We)),preIsEditable:bt}}),Re=(0,Ae.J)(function(E){return te.size>0&&dt==="single"&&x.onlyOneLineEditorAlertMessage!==!1?(g.default.warn(x.onlyOneLineEditorAlertMessage||"\u53EA\u80FD\u540C\u65F6\u7F16\u8F91\u4E00\u884C"),!1):(te.add(E),ue(Array.from(te)),!0)}),Be=(0,Ae.J)(function(){var E=(0,Ie.Z)((0,ae.Z)().mark(function P(V,ce){var he,We;return(0,ae.Z)().wrap(function(ve){for(;;)switch(ve.prev=ve.next){case 0:if(he=G(V).toString(),We=st.current.get(he),!(!te.has(he)&&We&&(ce!=null?ce:!0)&&x.tableName)){ve.next=5;break}return Be(We,!1),ve.abrupt("return");case 5:return ye&&ye.options.recordKey===V&&Oe(void 0),te.delete(he),te.delete(G(V)),ue(Array.from(te)),ve.abrupt("return",!0);case 10:case"end":return ve.stop()}},P)}));return function(P,V){return E.apply(this,arguments)}}()),Ye=(0,se.Z)((0,Ie.Z)((0,ae.Z)().mark(function E(){var P,V,ce,he,We=arguments;return(0,ae.Z)().wrap(function(ve){for(;;)switch(ve.prev=ve.next){case 0:for(V=We.length,ce=new Array(V),he=0;he0&&dt==="single"&&x.onlyOneLineEditorAlertMessage!==!1)return g.default.warn(x.onlyOneLineEditorAlertMessage||"\u53EA\u80FD\u540C\u65F6\u7F16\u8F91\u4E00\u884C"),!1;var V=x.getRowKey(E,-1);if(!V)throw(0,Se.ET)(!!V,`\u8BF7\u8BBE\u7F6E recordCreatorProps.record \u5E76\u8FD4\u56DE\u4E00\u4E2A\u552F\u4E00\u7684key https://procomponents.ant.design/components/editable-table#editable-%E6%96%B0%E5%BB%BA%E8%A1%8C`),new Error("\u8BF7\u8BBE\u7F6E recordCreatorProps.record \u5E76\u8FD4\u56DE\u4E00\u4E2A\u552F\u4E00\u7684key");if(te.add(V),ue(Array.from(te)),(P==null?void 0:P.newRecordType)==="dataSource"||x.tableName){var ce,he={data:x.dataSource,getRowKey:x.getRowKey,row:(0,a.Z)((0,a.Z)({},E),{},{map_row_parentKey:(P==null?void 0:P.parentKey)?(ce=G(P==null?void 0:P.parentKey))===null||ce===void 0?void 0:ce.toString():void 0}),key:V,childrenColumnName:x.childrenColumnName||"children"};x.setDataSource(fe(he,(P==null?void 0:P.position)==="top"?"top":"update"))}else Oe({defaultValue:E,options:(0,a.Z)((0,a.Z)({},P),{},{recordKey:V})});return!0}),Nt=(0,dn.YB)(),kn=(x==null?void 0:x.saveText)||Nt.getMessage("editableTable.action.save","\u4FDD\u5B58"),wn=(x==null?void 0:x.deleteText)||Nt.getMessage("editableTable.action.delete","\u5220\u9664"),En=(x==null?void 0:x.cancelText)||Nt.getMessage("editableTable.action.cancel","\u53D6\u6D88"),cn=(0,Ae.J)(function(){var E=(0,Ie.Z)((0,ae.Z)().mark(function P(V,ce,he,We){var Xe,ve,Ge,bt,Ne,Wt,Tt;return(0,ae.Z)().wrap(function(Jt){for(;;)switch(Jt.prev=Jt.next){case 0:return bt=We||ft.current||{},Ne=bt.options,Jt.next=3,x==null||(Xe=x.onSave)===null||Xe===void 0?void 0:Xe.call(x,V,ce,he,We);case 3:if(Wt=Jt.sent,Be(V),!(!(Ne==null?void 0:Ne.parentKey)&&(Ne==null?void 0:Ne.recordKey)===V)){Jt.next=8;break}return(Ne==null?void 0:Ne.position)==="top"?x.setDataSource([ce].concat((0,ie.Z)(x.dataSource))):x.setDataSource([].concat((0,ie.Z)(x.dataSource),[ce])),Jt.abrupt("return",Wt);case 8:return Tt={data:x.dataSource,getRowKey:x.getRowKey,row:Ne?(0,a.Z)((0,a.Z)({},ce),{},{map_row_parentKey:(ve=G((Ge=Ne==null?void 0:Ne.parentKey)!==null&&Ge!==void 0?Ge:""))===null||ve===void 0?void 0:ve.toString()}):ce,key:V,childrenColumnName:x.childrenColumnName||"children"},x.setDataSource(fe(Tt,(Ne==null?void 0:Ne.position)==="top"?"top":"update")),Jt.abrupt("return",Wt);case 11:case"end":return Jt.stop()}},P)}));return function(P,V,ce,he){return E.apply(this,arguments)}}()),T=(0,Ae.J)(function(){var E=(0,Ie.Z)((0,ae.Z)().mark(function P(V,ce){var he,We,Xe;return(0,ae.Z)().wrap(function(Ge){for(;;)switch(Ge.prev=Ge.next){case 0:return We={data:x.dataSource,getRowKey:x.getRowKey,row:ce,key:V,childrenColumnName:x.childrenColumnName||"children"},Ge.next=3,x==null||(he=x.onDelete)===null||he===void 0?void 0:he.call(x,V,ce);case 3:return Xe=Ge.sent,Ge.next=6,Be(V);case 6:return x.setDataSource(fe(We,"delete")),Ge.abrupt("return",Xe);case 8:case"end":return Ge.stop()}},P)}));return function(P,V){return E.apply(this,arguments)}}()),B=(0,Ae.J)(function(){var E=(0,Ie.Z)((0,ae.Z)().mark(function P(V,ce,he,We){var Xe,ve;return(0,ae.Z)().wrap(function(bt){for(;;)switch(bt.prev=bt.next){case 0:return bt.next=2,x==null||(Xe=x.onCancel)===null||Xe===void 0?void 0:Xe.call(x,V,ce,he,We);case 2:return ve=bt.sent,bt.abrupt("return",ve);case 4:case"end":return bt.stop()}},P)}));return function(P,V,ce,he){return E.apply(this,arguments)}}()),X=function(P){var V=x.getRowKey(P,P.index),ce={saveText:kn,cancelText:En,deleteText:wn,addEditRecord:bn,recordKey:V,cancelEditable:Be,index:P.index,tableName:x.tableName,newLineConfig:ye,onCancel:B,onDelete:T,onSave:cn,editableKeys:_,setEditableRowKeys:ue,deletePopconfirmMessage:x.deletePopconfirmMessage||"".concat(Nt.getMessage("deleteThisLine","\u5220\u9664\u6B64\u884C"),"?")},he=Pe(P,ce);return x.actionRender?x.actionRender(P,ce,{save:he[0],delete:he[1],cancel:he[2]}):he};return{editableKeys:_,setEditableRowKeys:ue,isEditable:re,actionRender:X,startEditable:Re,cancelEditable:Be,addEditRecord:bn,newLineRecord:ye,preEditableKeys:me,onValuesChange:Dt}}tt.ZP=_t},57084:function(){},98305:function(){},99509:function(){},16152:function(){},7391:function(){},29504:function(){},161:function(){},60870:function(){},16089:function(){},85378:function(){},36003:function(){},96106:function(){},45282:function(){},25394:function(){},68179:function(){},44887:function(){},48395:function(){},47828:function(){},27049:function($t,tt,r){"use strict";var U=r(22122),g=r(96156),De=r(94184),J=r.n(De),ae=r(67294),Ke=r(53124),Ie=function(Y,Ze){var l={};for(var ie in Y)Object.prototype.hasOwnProperty.call(Y,ie)&&Ze.indexOf(ie)<0&&(l[ie]=Y[ie]);if(Y!=null&&typeof Object.getOwnPropertySymbols=="function")for(var u=0,ie=Object.getOwnPropertySymbols(Y);u0?"-".concat(Vt):Vt,Fe=!!it,It=Vt==="left"&&ht!=null,ze=Vt==="right"&&ht!=null,Je=J()(se,"".concat(se,"-").concat(zt),(l={},(0,g.Z)(l,"".concat(se,"-with-text"),Fe),(0,g.Z)(l,"".concat(se,"-with-text").concat(at),Fe),(0,g.Z)(l,"".concat(se,"-dashed"),!!Se),(0,g.Z)(l,"".concat(se,"-plain"),!!ge),(0,g.Z)(l,"".concat(se,"-rtl"),a==="rtl"),(0,g.Z)(l,"".concat(se,"-no-default-orientation-margin-left"),It),(0,g.Z)(l,"".concat(se,"-no-default-orientation-margin-right"),ze),l),gt),rt=(0,U.Z)((0,U.Z)({},It&&{marginLeft:ht}),ze&&{marginRight:ht});return ae.createElement("div",(0,U.Z)({className:Je},Ae,{role:"separator"}),it&&zt!=="vertical"&&ae.createElement("span",{className:"".concat(se,"-inner-text"),style:rt},it))};tt.Z=xe},48736:function($t,tt,r){"use strict";var U=r(38663),g=r.n(U),De=r(68179),J=r.n(De)},24565:function($t,tt,r){"use strict";r.d(tt,{Z:function(){return it}});var U=r(22122),g=r(28481),De=r(68855),J=r(94184),ae=r.n(J),Ke=r(21770),Ie=r(15105),xe=r(67294),Y=r(53124),Ze=r(55241),l=r(96159),ie=r(71577),u=r(73839),a=r(86743),Et=r(42051),nt=r(85636),zt=r(81643),dn=function(ge){var Ae=ge.prefixCls,se=ge.okButtonProps,at=ge.cancelButtonProps,Fe=ge.title,It=ge.cancelText,ze=ge.okText,Je=ge.okType,rt=ge.icon,Le=ge.showCancel,pe=Le===void 0?!0:Le,G=ge.close,fe=ge.onConfirm,je=ge.onCancel,Ee=xe.useContext(Y.E_),Pt=Ee.getPrefixCls;return xe.createElement(Et.Z,{componentName:"Popconfirm",defaultLocale:nt.Z.Popconfirm},function(Pe){return xe.createElement("div",{className:"".concat(Ae,"-inner-content")},xe.createElement("div",{className:"".concat(Ae,"-message")},rt&&xe.createElement("span",{className:"".concat(Ae,"-message-icon")},rt),xe.createElement("div",{className:"".concat(Ae,"-message-title")},(0,zt.Z)(Fe))),xe.createElement("div",{className:"".concat(Ae,"-buttons")},pe&&xe.createElement(ie.Z,(0,U.Z)({onClick:je,size:"small"},at),It!=null?It:Pe.cancelText),xe.createElement(a.Z,{buttonProps:(0,U.Z)((0,U.Z)({size:"small"},(0,u.n)(Je)),se),actionFn:fe,close:G,prefixCls:Pt("btn"),quitOnNullishReturnValue:!0,emitEvent:!0},ze!=null?ze:Pe.okText)))})},Vt=void 0,ht=function(Se,ge){var Ae={};for(var se in Se)Object.prototype.hasOwnProperty.call(Se,se)&&ge.indexOf(se)<0&&(Ae[se]=Se[se]);if(Se!=null&&typeof Object.getOwnPropertySymbols=="function")for(var at=0,se=Object.getOwnPropertySymbols(Se);atB){var Xe=B-X;return E.push(String(V).slice(0,Xe)),E}E.push(V),X=We}return T}var Pt=0,Pe=1,_t=2,x=3,Q=4,Qe=function(B){var X=B.enabledMeasure,E=B.children,P=B.text,V=B.width,ce=B.fontSize,he=B.rows,We=B.onEllipsis,Xe=g.useState([0,0,0]),ve=(0,ae.Z)(Xe,2),Ge=(0,ae.Z)(ve[0],3),bt=Ge[0],Ne=Ge[1],Wt=Ge[2],Tt=ve[1],On=g.useState(Pt),Jt=(0,ae.Z)(On,2),an=Jt[0],Dn=Jt[1],vn=g.useState(0),fn=(0,ae.Z)(vn,2),qt=fn[0],mn=fn[1],Hn=g.useRef(null),Yt=g.useRef(null),Zn=g.useMemo(function(){return(0,a.Z)(P)},[P]),nn=g.useMemo(function(){return je(Zn)},[Zn]),Ft=g.useMemo(function(){return!X||an!==x?E(Zn,!1):E(Ee(Zn,Ne),Ne1&&hn,kr=function(Te){var yt;fr(!0),(yt=Qt.onExpand)===null||yt===void 0||yt.call(Qt,Te)},Ar=g.useState(0),i=(0,ae.Z)(Ar,2),f=i[0],p=i[1],ne=g.useState(0),ct=(0,ae.Z)(ne,2),Ot=ct[0],jt=ct[1],vt=function(Te,yt){var gn=Te.offsetWidth,Fn;p(gn),jt(parseInt((Fn=window.getComputedStyle)===null||Fn===void 0?void 0:Fn.call(window,yt).fontSize,10)||0)},Kt=function(Te){var yt;Qr(Te),Fr!==Te&&((yt=Qt.onEllipsis)===null||yt===void 0||yt.call(Qt,Te))};g.useEffect(function(){var pt=fn.current;if(Pn&&hn&&pt){var Te=ur?pt.offsetHeight-1}function vn(i,f){var p=this.__data__,ne=Nn(p,i);return ne<0?(++this.size,p.push([i,f])):p[ne][1]=f,this}Tt.prototype.clear=On,Tt.prototype.delete=Jt,Tt.prototype.get=an,Tt.prototype.has=Dn,Tt.prototype.set=vn;function fn(i){var f=-1,p=i==null?0:i.length;for(this.clear();++f1?p[ct-1]:void 0,jt=ct>2?p[2]:void 0;for(Ot=i.length>3&&typeof Ot=="function"?(ct--,Ot):void 0,jt&&Nr(p[0],p[1],jt)&&(Ot=ct<3?void 0:Ot,ct=1),f=Object(f);++ne-1&&i%1==0&&i0){if(++f>=De)return arguments[0]}else f=0;return i.apply(void 0,arguments)}}function Wr(i){if(i!=null){try{return te.call(i)}catch(f){}try{return i+""}catch(f){}}return""}function tr(i,f){return i===f||i!==i&&f!==f}var sr=Gn(function(){return arguments}())?Gn:function(i){return Un(i)&&me.call(i,"callee")&&!cn.call(i,"callee")},gr=Array.isArray;function Yn(i){return i!=null&&Qt(i.length)&&!Pn(i)}function Vr(i){return Un(i)&&Yn(i)}var pr=E||Ar;function Pn(i){if(!rn(i))return!1;var f=Sn(i);return f==ie||f==u||f==xe||f==dn}function Qt(i){return typeof i=="number"&&i>-1&&i%1==0&&i<=ae}function rn(i){var f=typeof i;return i!=null&&(f=="object"||f=="function")}function Un(i){return i!=null&&typeof i=="object"}function Qn(i){if(!Un(i)||Sn(i)!=zt)return!1;var f=wn(i);if(f===null)return!0;var p=me.call(f,"constructor")&&f.constructor;return typeof p=="function"&&p instanceof p&&te.call(p)==Be}var nr=st?Ue(st):An;function hn(i){return or(i,yr(i))}function yr(i){return Yn(i)?kt(i,!0):Rr(i)}var _r=lr(function(i,f,p){cr(i,f,p)});function ur(i){return function(){return i}}function kr(i){return i}function Ar(){return!1}$t.exports=_r},11742:function($t){$t.exports=function(){var tt=document.getSelection();if(!tt.rangeCount)return function(){};for(var r=document.activeElement,U=[],g=0;g1&&(u=t.addDate(u,-7)),u}function un(e,t,n){var a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;switch(t){case"year":return n.addYear(e,a*10);case"quarter":case"month":return n.addYear(e,a);default:return n.addMonth(e,a)}}function Ne(e,t){var n=t.generateConfig,a=t.locale,o=t.format;return typeof o=="function"?o(e):n.locale.format(a.locale,e,o)}function da(e,t){var n=t.generateConfig,a=t.locale,o=t.formatList;return!e||typeof o[0]=="function"?null:n.locale.parse(a.locale,e,o)}function Bn(e){var t=e.cellDate,n=e.mode,a=e.disabledDate,o=e.generateConfig;if(!a)return!1;var l=function(f,h,m){for(var D=h;D<=m;){var P=void 0;switch(f){case"date":{if(P=o.setDate(t,D),!a(P))return!1;break}case"month":{if(P=o.setMonth(t,D),!Bn({cellDate:P,mode:"month",generateConfig:o,disabledDate:a}))return!1;break}case"year":{if(P=o.setYear(t,D),!Bn({cellDate:P,mode:"year",generateConfig:o,disabledDate:a}))return!1;break}}D+=1}return!0};switch(n){case"date":case"week":return a(t);case"month":{var u=1,c=o.getDate(o.getEndDate(t));return l("date",u,c)}case"quarter":{var s=Math.floor(o.getMonth(t)/3)*3,v=s+2;return l("month",s,v)}case"year":return l("month",0,11);case"decade":{var C=o.getYear(t),d=Math.floor(C/at)*at,i=d+at-1;return l("year",d,i)}}}function Er(e){var t=r.useContext(ie),n=t.hideHeader;if(n)return null;var a=e.prefixCls,o=e.generateConfig,l=e.locale,u=e.value,c=e.format,s="".concat(a,"-header");return r.createElement($e,{prefixCls:s},u?Ne(u,{locale:l,format:c,generateConfig:o}):"\xA0")}var br=Er,va=x(56982);function kr(e){var t=e.prefixCls,n=e.units,a=e.onSelect,o=e.value,l=e.active,u=e.hideDisabledOptions,c="".concat(t,"-cell"),s=r.useContext(ie),v=s.open,C=(0,r.useRef)(null),d=(0,r.useRef)(new Map),i=(0,r.useRef)();return(0,r.useLayoutEffect)(function(){var g=d.current.get(o);g&&v!==!1&&an(C.current,g.offsetTop,120)},[o]),(0,r.useLayoutEffect)(function(){if(v){var g=d.current.get(o);g&&(i.current=Fn(g,function(){an(C.current,g.offsetTop,0)}))}return function(){var f;(f=i.current)===null||f===void 0||f.call(i)}},[v]),r.createElement("ul",{className:re()("".concat(t,"-column"),(0,S.Z)({},"".concat(t,"-column-active"),l)),ref:C,style:{position:"relative"}},n.map(function(g){var f;return u&&g.disabled?null:r.createElement("li",{key:g.value,ref:function(m){d.current.set(g.value,m)},className:re()(c,(f={},(0,S.Z)(f,"".concat(c,"-disabled"),g.disabled),(0,S.Z)(f,"".concat(c,"-selected"),o===g.value),f)),onClick:function(){g.disabled||a(g.value)}},r.createElement("div",{className:"".concat(c,"-inner")},g.label))}))}var En=kr;function ga(e,t){for(var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0",a=String(e);a.length=12,te%=12);var Ie=r.useMemo(function(){if(!v)return[!1,!1];var L=[!0,!0];return we.forEach(function(oe){var G=oe.disabled,B=oe.value;G||(B>=12?L[1]=!1:L[0]=!1)}),L},[v,we]),Oe=(0,M.Z)(Ie,2),Q=Oe[0],Fe=Oe[1],Pt=r.useMemo(function(){return v?we.filter(j?function(L){return L.value>=12}:function(L){return L.value<12}).map(function(L){var oe=L.value%12,G=oe===0?"12":ga(oe,2);return(0,p.Z)((0,p.Z)({},L),{},{label:G,value:oe})}):we},[v,j,we]),_e=Un(0,59,g,de&&de(ae)),We=Un(0,59,h,ve&&ve(ae,z));a.current={onUpDown:function(oe){var G=b[o];if(G)for(var B=G.units.findIndex(function(Je){return Je.value===G.value}),J=G.units.length,ye=1;ye2&&arguments[2]!==void 0?arguments[2]:!1;(Ze===h||Be)&&(cn(k),Y&&Y(k),_e&&_e(k,F),T&&!ln(c,k,ge)&&!(i==null?void 0:i(k))&&T(k))},_t=function(k){return J.current&&J.current.onKeyDown?([$.Z.LEFT,$.Z.RIGHT,$.Z.UP,$.Z.DOWN,$.Z.PAGE_UP,$.Z.PAGE_DOWN,$.Z.ENTER].includes(k.which)&&k.preventDefault(),J.current.onKeyDown(k)):((0,Te.ZP)(!1,"Panel not correct handle keyDown event. Please help to fire issue about this."),!1)},Mt=function(k){J.current&&J.current.onBlur&&J.current.onBlur(k)};Fe&&oe!=="right"&&(Fe.current={onKeyDown:_t,onClose:function(){J.current&&J.current.onClose&&J.current.onClose()}}),r.useEffect(function(){s&&!ye.current&&Kt(s)},[s]),r.useEffect(function(){ye.current=!1},[]);var R,pe=(0,p.Z)((0,p.Z)({},e),{},{operationRef:J,prefixCls:a,viewDate:Wt,value:ge,onViewDateChange:Le,sourceMode:tt,onPanelChange:Qe,disabledDate:i});switch(delete pe.onChange,delete pe.onSelect,Ze){case"decade":R=r.createElement(Pr,(0,y.Z)({},pe,{onSelect:function(k,F){Le(k),ce(k,F)}}));break;case"year":R=r.createElement(co,(0,y.Z)({},pe,{onSelect:function(k,F){Le(k),ce(k,F)}}));break;case"month":R=r.createElement(Qr,(0,y.Z)({},pe,{onSelect:function(k,F){Le(k),ce(k,F)}}));break;case"quarter":R=r.createElement(ao,(0,y.Z)({},pe,{onSelect:function(k,F){Le(k),ce(k,F)}}));break;case"week":R=r.createElement(Kr,(0,y.Z)({},pe,{onSelect:function(k,F){Le(k),ce(k,F)}}));break;case"time":delete pe.showTime,R=r.createElement(ha,(0,y.Z)({},pe,(0,nt.Z)(N)==="object"?N:null,{onSelect:function(k,F){Le(k),ce(k,F)}}));break;default:N?R=r.createElement(Fr,(0,y.Z)({},pe,{onSelect:function(k,F){Le(k),ce(k,F)}})):R=r.createElement($n,(0,y.Z)({},pe,{onSelect:function(k,F){Le(k),ce(k,F)}}))}var Ve,q,st=function(){var k=c.getNow(),F=On(c.getHour(k),c.getMinute(k),c.getSecond(k),we?X:1,Ie?de:1,Oe?xe:1),Be=Ot(c,k,F[0],F[1],F[2]);ce(Be,"submit")};We||(Ve=wa(a,Ze,E),q=ya({prefixCls:a,components:O,needConfirmButton:je,okDisabled:!ge||i&&i(ge),locale:u,showNow:P,onNow:je&&st,onOk:function(){ge&&(ce(ge,"submit",!0),z&&z(ge))}}));var Rt;if(K&&Ze==="date"&&h==="date"&&!N){var me=c.getNow(),zt="".concat(a,"-today-btn"),Zt=i&&i(me);Rt=r.createElement("a",{className:re()(zt,Zt&&"".concat(zt,"-disabled")),"aria-disabled":Zt,onClick:function(){Zt||ce(me,"mouse",!0)}},u.today)}return r.createElement(ie.Provider,{value:(0,p.Z)((0,p.Z)({},Q),{},{mode:Ze,hideHeader:"hideHeader"in e?b:Q.hideHeader,hidePrevBtn:L&&oe==="right",hideNextBtn:L&&oe==="left"})},r.createElement("div",{tabIndex:D,className:re()("".concat(a,"-panel"),o,(t={},(0,S.Z)(t,"".concat(a,"-panel-has-range"),G&&G[0]&&G[1]),(0,S.Z)(t,"".concat(a,"-panel-has-range-hover"),B&&B[0]&&B[1]),(0,S.Z)(t,"".concat(a,"-panel-rtl"),H==="rtl"),t)),style:l,onKeyDown:_t,onBlur:Mt,onMouseDown:ae,ref:Pt},R,Ve||q||Rt?r.createElement("div",{className:"".concat(a,"-footer")},Ve,q,Rt):null))}var Ea=so,fo=x(2306),vo={bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}}};function go(e){var t,n=e.prefixCls,a=e.popupElement,o=e.popupStyle,l=e.visible,u=e.dropdownClassName,c=e.dropdownAlign,s=e.transitionName,v=e.getPopupContainer,C=e.children,d=e.range,i=e.popupPlacement,g=e.direction,f="".concat(n,"-dropdown"),h=function(){return i!==void 0?i:g==="rtl"?"bottomRight":"bottomLeft"};return r.createElement(fo.Z,{showAction:[],hideAction:[],popupPlacement:h(),builtinPlacements:vo,prefixCls:f,popupTransitionName:s,popup:a,popupAlign:c,popupVisible:l,popupClassName:re()(u,(t={},(0,S.Z)(t,"".concat(f,"-range"),d),(0,S.Z)(t,"".concat(f,"-rtl"),g==="rtl"),t)),popupStyle:o,getPopupContainer:v},C)}var ba=go;function _n(e){var t=e.open,n=e.value,a=e.isClickOutside,o=e.triggerOpen,l=e.forwardKeyDown,u=e.onKeyDown,c=e.blurToCancel,s=e.onSubmit,v=e.onCancel,C=e.onFocus,d=e.onBlur,i=e.currentFocusedKey,g=e.key,f=g===void 0?"start":g,h=(0,r.useState)(!1),m=(0,M.Z)(h,2),D=m[0],P=m[1],N=(0,r.useState)(!1),K=(0,M.Z)(N,2),E=K[0],b=K[1],Y=(0,r.useRef)(),T=(0,r.useRef)(!1),j=(0,r.useRef)(!1),ae=(0,r.useRef)(!1),te={onMouseDown:function(){P(!0),o(!0)},onKeyDown:function(O){var H=function(){ae.current=!0};if(u(O,H),!ae.current){switch(O.which){case $.Z.ENTER:{t?s()!==!1&&P(!0):o(!0),O.preventDefault();return}case $.Z.TAB:{D&&t&&!O.shiftKey?(P(!1),O.preventDefault()):!D&&t&&!l(O)&&O.shiftKey&&(P(!0),O.preventDefault());return}case $.Z.ESC:{P(!0),v();return}}!t&&![$.Z.SHIFT].includes(O.which)?o(!0):D||l(O)}},onFocus:function(O){P(!0),b(!0),i&&(i.current=f),clearTimeout(Y.current),C&&C(O)},onBlur:function(O){if(T.current||!a(document.activeElement)){T.current=!1;return}c?setTimeout(function(){for(var H=document,ne=H.activeElement;ne&&ne.shadowRoot;)ne=ne.shadowRoot.activeElement;a(ne)&&v()},0):t&&(o(!1),j.current&&s()),b(!1),i?(i.current="",Y.current=setTimeout(function(){i.current||d==null||d(O)},100)):d==null||d(O)}};return(0,r.useEffect)(function(){j.current=!1},[t]),(0,r.useEffect)(function(){j.current=!0},[n]),(0,r.useEffect)(function(){return on(function(z){var O=dr(z);if(t){var H=a(O);H?(!E||H)&&o(!1):(T.current=!0,requestAnimationFrame(function(){T.current=!1}))}})}),(0,r.useEffect)(function(){return function(){return clearTimeout(Y.current)}},[]),[te,{focused:E,typing:D}]}function zn(e){var t=e.valueTexts,n=e.onTextChange,a=r.useState(""),o=(0,M.Z)(a,2),l=o[0],u=o[1],c=r.useRef([]);c.current=t;function s(C){u(C),n(C)}function v(){u(c.current[0])}return r.useEffect(function(){t.every(function(C){return C!==l})&&v()},[t.join("||")]),[l,s,v]}var mo=x(96774),Co=x.n(mo);function kn(e,t){var n=t.formatList,a=t.generateConfig,o=t.locale;return(0,va.Z)(function(){if(!e)return[[""],""];for(var l="",u=[],c=0;c1&&arguments[1]!==void 0?arguments[1]:!1;if(cancelAnimationFrame(v.current),D){s(m);return}v.current=requestAnimationFrame(function(){s(m)})}var d=kn(c,{formatList:n,generateConfig:a,locale:o}),i=(0,M.Z)(d,2),g=i[1];function f(m){C(m)}function h(){var m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;C(null,m)}return(0,r.useEffect)(function(){h(!0)},[e]),(0,r.useEffect)(function(){return function(){return cancelAnimationFrame(v.current)}},[]),[g,f,h]}function xl(e){var t=e.picker,n=e.disabledHours,a=e.disabledMinutes,o=e.disabledSeconds;t==="time"&&(n||a||o)&&warning(!1,"'disabledHours', 'disabledMinutes', 'disabledSeconds' will be removed in the next major version, please use 'disabledTime' instead.")}function ho(e){var t,n=e.prefixCls,a=n===void 0?"rc-picker":n,o=e.id,l=e.tabIndex,u=e.style,c=e.className,s=e.dropdownClassName,v=e.dropdownAlign,C=e.popupStyle,d=e.transitionName,i=e.generateConfig,g=e.locale,f=e.inputReadOnly,h=e.allowClear,m=e.autoFocus,D=e.showTime,P=e.picker,N=P===void 0?"date":P,K=e.format,E=e.use12Hours,b=e.value,Y=e.defaultValue,T=e.open,j=e.defaultOpen,ae=e.defaultOpenValue,te=e.suffixIcon,z=e.clearIcon,O=e.disabled,H=e.disabledDate,ne=e.placeholder,X=e.getPopupContainer,Pe=e.pickerRef,de=e.panelRender,ve=e.onChange,xe=e.onOpenChange,je=e.onFocus,we=e.onBlur,Ie=e.onMouseDown,Oe=e.onMouseUp,Q=e.onMouseEnter,Fe=e.onMouseLeave,Pt=e.onContextMenu,_e=e.onClick,We=e.onKeyDown,Se=e.onSelect,Me=e.direction,L=e.autoComplete,oe=L===void 0?"off":L,G=e.inputRender,B=r.useRef(null),J=N==="date"&&!!D||N==="time",ye=ma(rn(K,N,D,E)),ze=r.useRef(null),Je=r.useRef(null),ge=r.useRef(null),cn=(0,Ye.Z)(null,{value:b,defaultValue:Y}),Ft=(0,M.Z)(cn,2),Ee=Ft[0],Wt=Ft[1],Kt=r.useState(Ee),Le=(0,M.Z)(Kt,2),qe=Le[0],Re=Le[1],He=r.useRef(null),Ze=(0,Ye.Z)(!1,{value:T,defaultValue:j,postState:function(V){return O?!1:V},onChange:function(V){xe&&xe(V),!V&&He.current&&He.current.onClose&&He.current.onClose()}}),et=(0,M.Z)(Ze,2),Ke=et[0],xt=et[1],tt=kn(qe,{formatList:ye,generateConfig:i,locale:g}),rt=(0,M.Z)(tt,2),Qe=rt[0],ce=rt[1],_t=zn({valueTexts:Qe,onTextChange:function(V){var Ae=da(V,{locale:g,formatList:ye,generateConfig:i});Ae&&(!H||!H(Ae))&&Re(Ae)}}),Mt=(0,M.Z)(_t,3),R=Mt[0],pe=Mt[1],Ve=Mt[2],q=function(V){Re(V),Wt(V),ve&&!ln(i,Ee,V)&&ve(V,V?Ne(V,{generateConfig:i,locale:g,format:ye[0]}):"")},st=function(V){O&&V||xt(V)},Rt=function(V){return Ke&&He.current&&He.current.onKeyDown?He.current.onKeyDown(V):((0,Te.ZP)(!1,"Picker not correct forward KeyDown operation. Please help to fire issue about this."),!1)},me=function(){for(var V=arguments.length,Ae=new Array(V),ft=0;ftg(C);case"month":return i(m)>i(C);case"week":return d(m)>d(C);default:return!Dt(s,m,C)&&s.isAfter(m,C)}return!1},[u,c[1],C,t]),h=r.useCallback(function(m){if(u&&u(m))return!0;if(c[0]&&v)return!Dt(s,m,C)&&s.isAfter(v,m);if(n&&v)switch(a){case"quarter":return g(m)0&&arguments[0]!==void 0?arguments[0]:!1,w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Z=null;U&&Xt&&Xt[0]&&Xt[1]&&f.isAfter(Xt[1],Xt[0])&&(Z=Xt);var A=b;if(b&&(0,nt.Z)(b)==="object"&&b.defaultValue){var Ce=b.defaultValue;A=(0,p.Z)((0,p.Z)({},b),{},{defaultValue:W(Ce,R)||void 0})}var Ut=null;return Pe&&(Ut=function(ot,dt){return Pe(ot,dt,{range:R?"end":"start"})}),r.createElement(jt.Provider,{value:{inRange:!0,panelPosition:I,rangedValue:Go||ue,hoverRangedValue:Z}},r.createElement(Ea,(0,y.Z)({},e,w,{dateRender:Ut,showTime:A,mode:Bt[R],generateConfig:f,style:void 0,direction:Ee,disabledDate:R===0?dn:Zn,disabledTime:function(ot){return X?X(ot,R===0?"start":"end"):!1},className:re()((0,S.Z)({},"".concat(l,"-panel-focused"),R===0?!ar:!ur)),value:W(ue,R),locale:h,tabIndex:-1,onPanelChange:function(ot,dt){R===0&&aa(!0),R===1&&oa(!0),Xn(Xe(Bt,dt,R),Xe(ue,ot,R));var Et=ot;I==="right"&&Bt[R]===dt&&(Et=un(Et,dt,f,-1)),F(Et,R)},onOk:null,onSelect:void 0,onChange:void 0,defaultValue:R===0?W(ue,1):W(ue,0)})))}var pt=0,ir=0;if(R&&et.current&&xt.current&&Ze.current){pt=et.current.offsetWidth+xt.current.offsetWidth;var gl=Qe.current.offsetLeft>pt?Qe.current.offsetLeft-pt:Qe.current.offsetLeft;Ze.current.offsetWidth&&Qe.current.offsetWidth&&pt>Ze.current.offsetWidth-Qe.current.offsetWidth-(Ee==="rtl"?0:gl)&&(ir=pt)}var ml=Ee==="rtl"?{right:pt}:{left:pt};function Cl(){var I,w=wa(l,Bt[R],Pt),Z=ya({prefixCls:l,components:cn,needConfirmButton:qe,okDisabled:!W(ue,R)||ne&&ne(ue[R]),locale:h,rangeList:vl,onOk:function(){W(ue,R)&&(vn(ue,R),Je&&Je(ue))}});if(E!=="time"&&!b){var A=k(R),Ce=un(A,E,f),Ut=Bt[R],yt=Ut===E,ot=la(yt?"left":!1,{pickerValue:A,onPickerValueChange:function(Ge){F(Ge,R)}}),dt=la("right",{pickerValue:Ce,onPickerValueChange:function(Ge){F(un(Ge,E,f,-1),R)}});Ee==="rtl"?I=r.createElement(r.Fragment,null,dt,yt&&ot):I=r.createElement(r.Fragment,null,ot,yt&&dt)}else I=la();var Et=r.createElement(r.Fragment,null,r.createElement("div",{className:"".concat(l,"-panels")},I),(w||Z)&&r.createElement("div",{className:"".concat(l,"-footer")},w,Z));return de&&(Et=de(Et)),r.createElement("div",{className:"".concat(l,"-panel-container"),style:{marginLeft:ir},ref:Ze,onMouseDown:function(Ge){Ge.preventDefault()}},Et)}var hl=r.createElement("div",{className:re()("".concat(l,"-range-wrapper"),"".concat(l,"-").concat(E,"-range-wrapper")),style:{minWidth:Fo}},r.createElement("div",{ref:Qe,className:"".concat(l,"-range-arrow"),style:ml}),Cl()),cr;we&&(cr=r.createElement("span",{className:"".concat(l,"-suffix")},we));var sr;je&&(W(me,0)&&!q[0]||W(me,1)&&!q[1])&&(sr=r.createElement("span",{onMouseDown:function(w){w.preventDefault(),w.stopPropagation()},onMouseUp:function(w){w.preventDefault(),w.stopPropagation();var Z=me;q[0]||(Z=Xe(Z,null,0)),q[1]||(Z=Xe(Z,null,1)),vn(Z,null),Gt(!1,R)},className:"".concat(l,"-clear")},Ie||r.createElement("span",{className:"".concat(l,"-clear-btn")})));var fr={size:Pn(E,ce[0],f)},ua=0,ia=0;et.current&&Ke.current&&xt.current&&(R===0?ia=et.current.offsetWidth:(ua=pt,ia=Ke.current.offsetWidth));var Dl=Ee==="rtl"?{right:ua}:{left:ua},Pl=function(w,Z){var A=Xe(ue,w,R);Z==="submit"||Z!=="key"&&!qe?(vn(A,R),R===0?aa():oa()):wt(A)};return r.createElement(ie.Provider,{value:{operationRef:Ve,hideHeader:E==="time",onDateMouseEnter:nl,onDateMouseLeave:al,hideRanges:!0,onSelect:Pl,open:U}},r.createElement(ba,{visible:U,popupElement:hl,popupStyle:v,prefixCls:l,dropdownClassName:C,dropdownAlign:i,getPopupContainer:g,transitionName:d,range:!0,direction:Ee},r.createElement("div",(0,y.Z)({ref:He,className:re()(l,"".concat(l,"-range"),s,(t={},(0,S.Z)(t,"".concat(l,"-disabled"),q[0]&&q[1]),(0,S.Z)(t,"".concat(l,"-focused"),R===0?nr:lr),(0,S.Z)(t,"".concat(l,"-rtl"),Ee==="rtl"),t)),style:c,onClick:il,onMouseEnter:J,onMouseLeave:ye,onMouseDown:cl,onMouseUp:B},Ca(e)),r.createElement("div",{className:re()("".concat(l,"-input"),(n={},(0,S.Z)(n,"".concat(l,"-input-active"),R===0),(0,S.Z)(n,"".concat(l,"-input-placeholder"),!!Ga),n)),ref:et},r.createElement("input",(0,y.Z)({id:u,disabled:q[0],readOnly:Q||typeof ce[0]=="function"||!ar,value:Ga||Yn,onChange:function(w){Ka(w.target.value)},autoFocus:D,placeholder:W(m,0)||"",ref:tt},ol,fr,{autoComplete:Le}))),r.createElement("div",{className:"".concat(l,"-range-separator"),ref:xt},j),r.createElement("div",{className:re()("".concat(l,"-input"),(a={},(0,S.Z)(a,"".concat(l,"-input-active"),R===1),(0,S.Z)(a,"".concat(l,"-input-placeholder"),!!Xa),a)),ref:Ke},r.createElement("input",(0,y.Z)({disabled:q[1],readOnly:Q||typeof ce[0]=="function"||!ur,value:Xa||In,onChange:function(w){Ua(w.target.value)},placeholder:W(m,1)||"",ref:rt},ul,fr,{autoComplete:Le}))),r.createElement("div",{className:"".concat(l,"-active-bar"),style:(0,p.Z)((0,p.Z)({},Dl),{},{width:ia,position:"absolute"})}),cr,sr)))}var ko=function(e){(0,ee.Z)(n,e);var t=(0,ke.Z)(n);function n(){var a;(0,mn.Z)(this,n);for(var o=arguments.length,l=new Array(o),u=0;u1&&(u=t.addDate(u,-7)),u}function cn(e,t,n){var a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;switch(t){case"year":return n.addYear(e,a*10);case"quarter":case"month":return n.addYear(e,a);default:return n.addMonth(e,a)}}function Re(e,t){var n=t.generateConfig,a=t.locale,o=t.format;return typeof o=="function"?o(e):n.locale.format(a.locale,e,o)}function va(e,t){var n=t.generateConfig,a=t.locale,o=t.formatList;return!e||typeof o[0]=="function"?null:n.locale.parse(a.locale,e,o)}function Un(e){var t=e.cellDate,n=e.mode,a=e.disabledDate,o=e.generateConfig;if(!a)return!1;var l=function(f,h,m){for(var D=h;D<=m;){var P=void 0;switch(f){case"date":{if(P=o.setDate(t,D),!a(P))return!1;break}case"month":{if(P=o.setMonth(t,D),!Un({cellDate:P,mode:"month",generateConfig:o,disabledDate:a}))return!1;break}case"year":{if(P=o.setYear(t,D),!Un({cellDate:P,mode:"year",generateConfig:o,disabledDate:a}))return!1;break}}D+=1}return!0};switch(n){case"date":case"week":return a(t);case"month":{var u=1,i=o.getDate(o.getEndDate(t));return l("date",u,i)}case"quarter":{var s=Math.floor(o.getMonth(t)/3)*3,v=s+2;return l("month",s,v)}case"year":return l("month",0,11);case"decade":{var C=o.getYear(t),d=Math.floor(C/rt)*rt,c=d+rt-1;return l("year",d,c)}}}function yr(e){var t=r.useContext(ce),n=t.hideHeader;if(n)return null;var a=e.prefixCls,o=e.generateConfig,l=e.locale,u=e.value,i=e.format,s="".concat(a,"-header");return r.createElement($e,{prefixCls:s},u?Re(u,{locale:l,format:i,generateConfig:o}):"\xA0")}var br=yr,ga=x(56982);function Nr(e){var t=e.prefixCls,n=e.units,a=e.onSelect,o=e.value,l=e.active,u=e.hideDisabledOptions,i="".concat(t,"-cell"),s=r.useContext(ce),v=s.open,C=(0,r.useRef)(null),d=(0,r.useRef)(new Map),c=(0,r.useRef)();return(0,r.useLayoutEffect)(function(){var g=d.current.get(o);g&&v!==!1&&an(C.current,g.offsetTop,120)},[o]),(0,r.useLayoutEffect)(function(){if(v){var g=d.current.get(o);g&&(c.current=Fn(g,function(){an(C.current,g.offsetTop,0)}))}return function(){var f;(f=c.current)===null||f===void 0||f.call(c)}},[v]),r.createElement("ul",{className:oe()("".concat(t,"-column"),(0,M.Z)({},"".concat(t,"-column-active"),l)),ref:C,style:{position:"relative"}},n.map(function(g){var f;return u&&g.disabled?null:r.createElement("li",{key:g.value,ref:function(m){d.current.set(g.value,m)},className:oe()(i,(f={},(0,M.Z)(f,"".concat(i,"-disabled"),g.disabled),(0,M.Z)(f,"".concat(i,"-selected"),o===g.value),f)),onClick:function(){g.disabled||a(g.value)}},r.createElement("div",{className:"".concat(i,"-inner")},g.label))}))}var bn=Nr;function ma(e,t){for(var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0",a=String(e);a.length=1?n|0:1,u=e;u<=t;u+=l)o.push({label:ma(u,2),value:u,disabled:(a||[]).includes(u)});return o}function Mr(e){var t=e.generateConfig,n=e.prefixCls,a=e.operationRef,o=e.activeColumnIndex,l=e.value,u=e.showHour,i=e.showMinute,s=e.showSecond,v=e.use12Hours,C=e.hourStep,d=C===void 0?1:C,c=e.minuteStep,g=c===void 0?1:c,f=e.secondStep,h=f===void 0?1:f,m=e.disabledHours,D=e.disabledMinutes,P=e.disabledSeconds,k=e.disabledTime,K=e.hideDisabledOptions,b=e.onSelect,N=[],O="".concat(n,"-content"),T="".concat(n,"-time-panel"),j,ae=l?t.getHour(l):-1,J=ae,Q=l?t.getMinute(l):-1,L=l?t.getSecond(l):-1,B=t.getNow(),U=r.useMemo(function(){if(k){var A=k(B);return[A.disabledHours,A.disabledMinutes,A.disabledSeconds]}return[m,D,P]},[m,D,P,k,B]),ge=(0,R.Z)(U,3),Pe=ge[0],xe=ge[1],Ne=ge[2],we=function(le,X,$,ee){var ye=l||t.getNow(),ze=Math.max(0,X),Je=Math.max(0,$),me=Math.max(0,ee);return ye=Ot(t,ye,!v||!le?ze:ze+12,Je,me),ye},_e=Bn(0,23,d,Pe&&Pe()),Ee=(0,ga.Z)(function(){return _e},_e,Sr);v&&(j=J>=12,J%=12);var Ie=r.useMemo(function(){if(!v)return[!1,!1];var A=[!0,!0];return Ee.forEach(function(le){var X=le.disabled,$=le.value;X||($>=12?A[1]=!1:A[0]=!1)}),A},[v,Ee]),Oe=(0,R.Z)(Ie,2),G=Oe[0],We=Oe[1],xt=r.useMemo(function(){return v?Ee.filter(j?function(A){return A.value>=12}:function(A){return A.value<12}).map(function(A){var le=A.value%12,X=le===0?"12":ma(le,2);return(0,Z.Z)((0,Z.Z)({},A),{},{label:X,value:le})}):Ee},[v,j,Ee]),je=Bn(0,59,g,xe&&xe(ae)),Ke=Bn(0,59,h,Ne&&Ne(ae,Q));a.current={onUpDown:function(le){var X=N[o];if(X)for(var $=X.units.findIndex(function(Je){return Je.value===X.value}),ee=X.units.length,ye=1;ye2&&arguments[2]!==void 0?arguments[2]:!1;(be===h||ie)&&(sn(E),O&&O(E),je&&je(E,Y),T&&!un(i,E,me)&&!(c==null?void 0:c(E))&&T(E))},fn=function(E){if(so.includes(be)){var Y,ie,q=be==="date";switch(E===I.Z.PAGE_UP||E===I.Z.PAGE_DOWN?ie=q?i.addMonth:i.addYear:ie=q?i.addDate:i.addMonth,E){case I.Z.LEFT:case I.Z.PAGE_UP:Y=ie(ft,-1);break;case I.Z.RIGHT:case I.Z.PAGE_DOWN:Y=ie(ft,1);break;case I.Z.UP:case I.Z.DOWN:Y=ie(ft,Number("".concat(E===I.Z.UP?"-":"").concat(q?ln:_n)));break}if(Y)return!(c==null?void 0:c(Y))}return!0},Et=function(E){if(ee.current&&ee.current.onKeyDown){var Y=!0,ie=E.which;if([I.Z.LEFT,I.Z.RIGHT,I.Z.UP,I.Z.DOWN,I.Z.PAGE_UP,I.Z.PAGE_DOWN,I.Z.ENTER].includes(ie)&&(E.preventDefault(),ie!==I.Z.ENTER&&D===0&&(Y=fn(ie))),Y)return ee.current.onKeyDown(E)}return(0,Ve.ZP)(!1,"Panel not correct handle keyDown event. Please help to fire issue about this."),!1},p=function(E){ee.current&&ee.current.onBlur&&ee.current.onBlur(E)};We&&le!=="right"&&(We.current={onKeyDown:Et,onClose:function(){ee.current&&ee.current.onClose&&ee.current.onClose()}}),r.useEffect(function(){s&&!ye.current&&Wt(s)},[s]),r.useEffect(function(){ye.current=!1},[]);var Ae,ue=(0,Z.Z)((0,Z.Z)({},e),{},{operationRef:ee,prefixCls:a,viewDate:ft,value:me,onViewDateChange:Le,sourceMode:tt,onPanelChange:Qe,disabledDate:c});switch(delete ue.onChange,delete ue.onSelect,be){case"decade":Ae=r.createElement(Pr,(0,y.Z)({},ue,{onSelect:function(E,Y){Le(E),se(E,Y)}}));break;case"year":Ae=r.createElement(co,(0,y.Z)({},ue,{onSelect:function(E,Y){Le(E),se(E,Y)}}));break;case"month":Ae=r.createElement(Qr,(0,y.Z)({},ue,{onSelect:function(E,Y){Le(E),se(E,Y)}}));break;case"quarter":Ae=r.createElement(ao,(0,y.Z)({},ue,{onSelect:function(E,Y){Le(E),se(E,Y)}}));break;case"week":Ae=r.createElement(Kr,(0,y.Z)({},ue,{onSelect:function(E,Y){Le(E),se(E,Y)}}));break;case"time":delete ue.showTime,Ae=r.createElement(Da,(0,y.Z)({},ue,(0,at.Z)(k)==="object"?k:null,{onSelect:function(E,Y){Le(E),se(E,Y)}}));break;default:k?Ae=r.createElement(Fr,(0,y.Z)({},ue,{onSelect:function(E,Y){Le(E),se(E,Y)}})):Ae=r.createElement($n,(0,y.Z)({},ue,{onSelect:function(E,Y){Le(E),se(E,Y)}}))}var te,nt,jt=function(){var E=i.getNow(),Y=On(i.getHour(E),i.getMinute(E),i.getSecond(E),Ee?ge:1,Ie?xe:1,Oe?we:1),ie=Ot(i,E,Y[0],Y[1],Y[2]);se(ie,"submit")};Ke||(te=wa(a,be,b),nt=Ea({prefixCls:a,components:L,needConfirmButton:_e,okDisabled:!me||c&&c(me),locale:u,showNow:P,onNow:_e&&jt,onOk:function(){me&&(se(me,"submit",!0),Q&&Q(me))}}));var ve;if(K&&be==="date"&&h==="date"&&!k){var zt=i.getNow(),Kt="".concat(a,"-today-btn"),Zt=c&&c(zt);ve=r.createElement("a",{className:oe()(Kt,Zt&&"".concat(Kt,"-disabled")),"aria-disabled":Zt,onClick:function(){Zt||se(zt,"mouse",!0)}},u.today)}return r.createElement(ce.Provider,{value:(0,Z.Z)((0,Z.Z)({},G),{},{mode:be,hideHeader:"hideHeader"in e?N:G.hideHeader,hidePrevBtn:A&&le==="right",hideNextBtn:A&&le==="left"})},r.createElement("div",{tabIndex:D,className:oe()("".concat(a,"-panel"),o,(t={},(0,M.Z)(t,"".concat(a,"-panel-has-range"),X&&X[0]&&X[1]),(0,M.Z)(t,"".concat(a,"-panel-has-range-hover"),$&&$[0]&&$[1]),(0,M.Z)(t,"".concat(a,"-panel-rtl"),B==="rtl"),t)),style:l,onKeyDown:Et,onBlur:p,onMouseDown:ae,ref:xt},Ae,te||nt||ve?r.createElement("div",{className:"".concat(a,"-footer")},te,nt,ve):null))}var ya=fo,vo=x(2306),go={bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}}};function mo(e){var t,n=e.prefixCls,a=e.popupElement,o=e.popupStyle,l=e.visible,u=e.dropdownClassName,i=e.dropdownAlign,s=e.transitionName,v=e.getPopupContainer,C=e.children,d=e.range,c=e.popupPlacement,g=e.direction,f="".concat(n,"-dropdown"),h=function(){return c!==void 0?c:g==="rtl"?"bottomRight":"bottomLeft"};return r.createElement(vo.Z,{showAction:[],hideAction:[],popupPlacement:h(),builtinPlacements:go,prefixCls:f,popupTransitionName:s,popup:a,popupAlign:i,popupVisible:l,popupClassName:oe()(u,(t={},(0,M.Z)(t,"".concat(f,"-range"),d),(0,M.Z)(t,"".concat(f,"-rtl"),g==="rtl"),t)),popupStyle:o,getPopupContainer:v},C)}var ba=mo;function zn(e){var t=e.open,n=e.value,a=e.isClickOutside,o=e.triggerOpen,l=e.forwardKeyDown,u=e.onKeyDown,i=e.blurToCancel,s=e.onSubmit,v=e.onCancel,C=e.onFocus,d=e.onBlur,c=e.currentFocusedKey,g=e.key,f=g===void 0?"start":g,h=(0,r.useState)(!1),m=(0,R.Z)(h,2),D=m[0],P=m[1],k=(0,r.useState)(!1),K=(0,R.Z)(k,2),b=K[0],N=K[1],O=(0,r.useRef)(),T=(0,r.useRef)(!1),j=(0,r.useRef)(!1),ae=(0,r.useRef)(!1),J={onMouseDown:function(){P(!0),o(!0)},onKeyDown:function(L){var B=function(){ae.current=!0};if(u(L,B),!ae.current){switch(L.which){case I.Z.ENTER:{t?s()!==!1&&P(!0):o(!0),L.preventDefault();return}case I.Z.TAB:{D&&t&&!L.shiftKey?(P(!1),L.preventDefault()):!D&&t&&!l(L)&&L.shiftKey&&(P(!0),L.preventDefault());return}case I.Z.ESC:{P(!0),v();return}}!t&&![I.Z.SHIFT].includes(L.which)?o(!0):D||l(L)}},onFocus:function(L){P(!0),N(!0),c&&(c.current=f),clearTimeout(O.current),C&&C(L)},onBlur:function(L){if(T.current||!a(document.activeElement)){T.current=!1;return}i?setTimeout(function(){for(var B=document,U=B.activeElement;U&&U.shadowRoot;)U=U.shadowRoot.activeElement;a(U)&&v()},0):t&&(o(!1),j.current&&s()),N(!1),c?(c.current="",O.current=setTimeout(function(){c.current||d==null||d(L)},100)):d==null||d(L)}};return(0,r.useEffect)(function(){j.current=!1},[t]),(0,r.useEffect)(function(){j.current=!0},[n]),(0,r.useEffect)(function(){return on(function(Q){var L=dr(Q),B=a(L);t?B?(!b||B)&&o(!1):(T.current=!0,requestAnimationFrame(function(){T.current=!1})):b&&!B&&(T.current=!0)})}),(0,r.useEffect)(function(){return function(){return clearTimeout(O.current)}},[]),[J,{focused:b,typing:D}]}function Qn(e){var t=e.valueTexts,n=e.onTextChange,a=r.useState(""),o=(0,R.Z)(a,2),l=o[0],u=o[1],i=r.useRef([]);i.current=t;function s(C){u(C),n(C)}function v(){u(i.current[0])}return r.useEffect(function(){t.every(function(C){return C!==l})&&v()},[t.join("||")]),[l,s,v]}var Co=x(96774),ho=x.n(Co);function kn(e,t){var n=t.formatList,a=t.generateConfig,o=t.locale;return(0,ga.Z)(function(){if(!e)return[[""],""];for(var l="",u=[],i=0;i1&&arguments[1]!==void 0?arguments[1]:!1;if(cancelAnimationFrame(v.current),D){s(m);return}v.current=requestAnimationFrame(function(){s(m)})}var d=kn(i,{formatList:n,generateConfig:a,locale:o}),c=(0,R.Z)(d,2),g=c[1];function f(m){C(m)}function h(){var m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;C(null,m)}return(0,r.useEffect)(function(){h(!0)},[e]),(0,r.useEffect)(function(){return function(){return cancelAnimationFrame(v.current)}},[]),[g,f,h]}function wl(e){var t=e.picker,n=e.disabledHours,a=e.disabledMinutes,o=e.disabledSeconds;t==="time"&&(n||a||o)&&warning(!1,"'disabledHours', 'disabledMinutes', 'disabledSeconds' will be removed in the next major version, please use 'disabledTime' instead.")}function Do(e){var t,n=e.prefixCls,a=n===void 0?"rc-picker":n,o=e.id,l=e.tabIndex,u=e.style,i=e.className,s=e.dropdownClassName,v=e.dropdownAlign,C=e.popupStyle,d=e.transitionName,c=e.generateConfig,g=e.locale,f=e.inputReadOnly,h=e.allowClear,m=e.autoFocus,D=e.showTime,P=e.picker,k=P===void 0?"date":P,K=e.format,b=e.use12Hours,N=e.value,O=e.defaultValue,T=e.open,j=e.defaultOpen,ae=e.defaultOpenValue,J=e.suffixIcon,Q=e.clearIcon,L=e.disabled,B=e.disabledDate,U=e.placeholder,ge=e.getPopupContainer,Pe=e.pickerRef,xe=e.panelRender,Ne=e.onChange,we=e.onOpenChange,_e=e.onFocus,Ee=e.onBlur,Ie=e.onMouseDown,Oe=e.onMouseUp,G=e.onMouseEnter,We=e.onMouseLeave,xt=e.onContextMenu,je=e.onClick,Ke=e.onKeyDown,Ze=e.onSelect,pe=e.direction,A=e.autoComplete,le=A===void 0?"off":A,X=e.inputRender,$=r.useRef(null),ee=k==="date"&&!!D||k==="time",ye=Ca(rn(K,k,D,b)),ze=r.useRef(null),Je=r.useRef(null),me=r.useRef(null),sn=(0,Ye.Z)(null,{value:N,defaultValue:O}),Ft=(0,R.Z)(sn,2),ke=Ft[0],ft=Ft[1],Wt=r.useState(ke),Le=(0,R.Z)(Wt,2),qe=Le[0],Te=Le[1],He=r.useRef(null),be=(0,Ye.Z)(!1,{value:T,defaultValue:j,postState:function(V){return L?!1:V},onChange:function(V){we&&we(V),!V&&He.current&&He.current.onClose&&He.current.onClose()}}),et=(0,R.Z)(be,2),Ue=et[0],wt=et[1],tt=kn(qe,{formatList:ye,generateConfig:c,locale:g}),ot=(0,R.Z)(tt,2),Qe=ot[0],se=ot[1],fn=Qn({valueTexts:Qe,onTextChange:function(V){var Fe=va(V,{locale:g,formatList:ye,generateConfig:c});Fe&&(!B||!B(Fe))&&Te(Fe)}}),Et=(0,R.Z)(fn,3),p=Et[0],Ae=Et[1],ue=Et[2],te=function(V){Te(V),ft(V),Ne&&!un(c,ke,V)&&Ne(V,V?Re(V,{generateConfig:c,locale:g,format:ye[0]}):"")},nt=function(V){L&&V||wt(V)},jt=function(V){return Ue&&He.current&&He.current.onKeyDown?He.current.onKeyDown(V):((0,Ve.ZP)(!1,"Picker not correct forward KeyDown operation. Please help to fire issue about this."),!1)},ve=function(){for(var V=arguments.length,Fe=new Array(V),dt=0;dtg(C);case"month":return c(m)>c(C);case"week":return d(m)>d(C);default:return!Pt(s,m,C)&&s.isAfter(m,C)}return!1},[u,i[1],C,t]),h=r.useCallback(function(m){if(u&&u(m))return!0;if(i[0]&&v)return!Pt(s,m,C)&&s.isAfter(v,m);if(n&&v)switch(a){case"quarter":return g(m)0&&arguments[0]!==void 0?arguments[0]:!1,w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},S=null;_&&Xt&&Xt[0]&&Xt[1]&&f.isAfter(Xt[1],Xt[0])&&(S=Xt);var F=N;if(N&&(0,at.Z)(N)==="object"&&N.defaultValue){var Ce=N.defaultValue;F=(0,Z.Z)((0,Z.Z)({},N),{},{defaultValue:W(Ce,p)||void 0})}var Bt=null;return Pe&&(Bt=function(lt,vt){return Pe(lt,vt,{range:p?"end":"start"})}),r.createElement(_t.Provider,{value:{inRange:!0,panelPosition:H,rangedValue:Xo||q,hoverRangedValue:S}},r.createElement(ya,(0,y.Z)({},e,w,{dateRender:Bt,showTime:F,mode:Ut[p],generateConfig:f,style:void 0,direction:ke,disabledDate:p===0?gn:Zn,disabledTime:function(lt){return ge?ge(lt,p===0?"start":"end"):!1},className:oe()((0,M.Z)({},"".concat(l,"-panel-focused"),p===0?!ar:!ur)),value:W(q,p),locale:h,tabIndex:-1,onPanelChange:function(lt,vt){p===0&&ra(!0),p===1&&la(!0),Jn(Xe(Ut,vt,p),Xe(q,lt,p));var Nt=lt;H==="right"&&Ut[p]===vt&&(Nt=cn(Nt,vt,f,-1)),E(Nt,p)},onOk:null,onSelect:void 0,onChange:void 0,defaultValue:p===0?W(q,1):W(q,0)})))}var pt=0,ir=0;if(p&&et.current&&wt.current&&be.current){pt=et.current.offsetWidth+wt.current.offsetWidth;var ml=Qe.current.offsetLeft>pt?Qe.current.offsetLeft-pt:Qe.current.offsetLeft;be.current.offsetWidth&&Qe.current.offsetWidth&&pt>be.current.offsetWidth-Qe.current.offsetWidth-(ke==="rtl"?0:ml)&&(ir=pt)}var Cl=ke==="rtl"?{right:pt}:{left:pt};function hl(){var H,w=wa(l,Ut[p],xt),S=Ea({prefixCls:l,components:sn,needConfirmButton:qe,okDisabled:!W(q,p)||U&&U(q[p]),locale:h,rangeList:gl,onOk:function(){W(q,p)&&(mn(q,p),Je&&Je(q))}});if(b!=="time"&&!N){var F=re(p),Ce=cn(F,b,f),Bt=Ut[p],bt=Bt===b,lt=ua(bt?"left":!1,{pickerValue:F,onPickerValueChange:function(Ge){E(Ge,p)}}),vt=ua("right",{pickerValue:Ce,onPickerValueChange:function(Ge){E(cn(Ge,b,f,-1),p)}});ke==="rtl"?H=r.createElement(r.Fragment,null,vt,bt&<):H=r.createElement(r.Fragment,null,lt,bt&&vt)}else H=ua();var Nt=r.createElement(r.Fragment,null,r.createElement("div",{className:"".concat(l,"-panels")},H),(w||S)&&r.createElement("div",{className:"".concat(l,"-footer")},w,S));return xe&&(Nt=xe(Nt)),r.createElement("div",{className:"".concat(l,"-panel-container"),style:{marginLeft:ir},ref:be,onMouseDown:function(Ge){Ge.preventDefault()}},Nt)}var Dl=r.createElement("div",{className:oe()("".concat(l,"-range-wrapper"),"".concat(l,"-").concat(b,"-range-wrapper")),style:{minWidth:Wo}},r.createElement("div",{ref:Qe,className:"".concat(l,"-range-arrow"),style:Cl}),hl()),cr;Ee&&(cr=r.createElement("span",{className:"".concat(l,"-suffix")},Ee));var sr;_e&&(W(ve,0)&&!te[0]||W(ve,1)&&!te[1])&&(sr=r.createElement("span",{onMouseDown:function(w){w.preventDefault(),w.stopPropagation()},onMouseUp:function(w){w.preventDefault(),w.stopPropagation();var S=ve;te[0]||(S=Xe(S,null,0)),te[1]||(S=Xe(S,null,1)),mn(S,null),Gt(!1,p)},className:"".concat(l,"-clear")},Ie||r.createElement("span",{className:"".concat(l,"-clear-btn")})));var fr={size:wn(b,se[0],f)},ia=0,ca=0;et.current&&Ue.current&&wt.current&&(p===0?ca=et.current.offsetWidth:(ia=pt,ca=Ue.current.offsetWidth));var Pl=ke==="rtl"?{right:ia}:{left:ia},xl=function(w,S){var F=Xe(q,w,p);S==="submit"||S!=="key"&&!qe?(mn(F,p),p===0?ra():la()):yt(F)};return r.createElement(ce.Provider,{value:{operationRef:ue,hideHeader:b==="time",onDateMouseEnter:al,onDateMouseLeave:rl,hideRanges:!0,onSelect:xl,open:_}},r.createElement(ba,{visible:_,popupElement:Dl,popupStyle:v,prefixCls:l,dropdownClassName:C,dropdownAlign:c,getPopupContainer:g,transitionName:d,range:!0,direction:ke},r.createElement("div",(0,y.Z)({ref:He,className:oe()(l,"".concat(l,"-range"),s,(t={},(0,M.Z)(t,"".concat(l,"-disabled"),te[0]&&te[1]),(0,M.Z)(t,"".concat(l,"-focused"),p===0?nr:lr),(0,M.Z)(t,"".concat(l,"-rtl"),ke==="rtl"),t)),style:i,onClick:cl,onMouseEnter:ee,onMouseLeave:ye,onMouseDown:sl,onMouseUp:$},ha(e)),r.createElement("div",{className:oe()("".concat(l,"-input"),(n={},(0,M.Z)(n,"".concat(l,"-input-active"),p===0),(0,M.Z)(n,"".concat(l,"-input-placeholder"),!!Ga),n)),ref:et},r.createElement("input",(0,y.Z)({id:u,disabled:te[0],readOnly:G||typeof se[0]=="function"||!ar,value:Ga||Yn,onChange:function(w){Ka(w.target.value)},autoFocus:D,placeholder:W(m,0)||"",ref:tt},ll,fr,{autoComplete:Le}))),r.createElement("div",{className:"".concat(l,"-range-separator"),ref:wt},j),r.createElement("div",{className:oe()("".concat(l,"-input"),(a={},(0,M.Z)(a,"".concat(l,"-input-active"),p===1),(0,M.Z)(a,"".concat(l,"-input-placeholder"),!!Xa),a)),ref:Ue},r.createElement("input",(0,y.Z)({disabled:te[1],readOnly:G||typeof se[0]=="function"||!ur,value:Xa||In,onChange:function(w){Ba(w.target.value)},placeholder:W(m,1)||"",ref:ot},il,fr,{autoComplete:Le}))),r.createElement("div",{className:"".concat(l,"-active-bar"),style:(0,Z.Z)((0,Z.Z)({},Pl),{},{width:ca,position:"absolute"})}),cr,sr)))}var ko=function(e){(0,ne.Z)(n,e);var t=(0,Me.Z)(n);function n(){var a;(0,hn.Z)(this,n);for(var o=arguments.length,l=new Array(o),u=0;u0&&p[p.length-1])||W[0]!==6&&W[0]!==2)){O=0;continue}if(W[0]===3&&(!p||W[1]>p[0]&&W[1]60*this.strategy.requestInterval*1e3},d.prototype.getUploadUrl=function(){return this.strategy.httpsUploadUrl+"?appkey="+this.appkey},d.prototype.isBlackEvent=function(i){return this.strategy.blacklist.indexOf(i)!=-1},d.prototype.isEventUpOnOff=function(){return this.strategy.isEventUpOnOff},d.prototype.isSampleEvent=function(i){return!!Object.prototype.hasOwnProperty.call(this.realSample,i)&&this.realSample[i]this.duration)return this.createSession();a=p.sessionId,s=p.sessionStart,this.getSessionStackDepth=0}catch(O){}return{sessionId:a,sessionStart:s}},d.prototype.createSession=function(){var i=Date.now(),a={sessionId:this.appkey+"_"+i.toString(),sessionStart:i};this.storage.setItem(D,JSON.stringify(a)),this.storage.setItem(L,i.toString());var s="is_new_user",p=this.storage.getItem(s);return this.getSessionStackDepth<=1&&this.beacon.onDirectUserAction("rqd_applaunched",{A21:p?"N":"Y"}),this.storage.setItem(s,JSON.stringify(!1)),a},d}();function F(){var d=navigator.userAgent,i=d.indexOf("compatible")>-1&&d.indexOf("MSIE")>-1,a=d.indexOf("Edge")>-1&&!i,s=d.indexOf("Trident")>-1&&d.indexOf("rv:11.0")>-1;if(i){new RegExp("MSIE (\\d+\\.\\d+);").test(d);var p=parseFloat(RegExp.$1);return p==7?7:p==8?8:p==9?9:p==10?10:6}return a?-2:s?11:-1}function $(d,i){var a,s;return(a="https://tun-cos-1258344701.file.myqcloud.com/fp.js",s===void 0&&(s=Date.now()+"-"+Math.random()),new Promise(function(p,R){if(document.getElementById(s))p(void 0);else{var O=document.getElementsByTagName("head")[0],G=document.createElement("script");G.onload=function(){return function(){G.onload=null,p(void 0)}},G.onerror=function(ae){G.onerror=null,O.removeChild(G),R(ae)},G.src=a,G.id=s,O.appendChild(G)}})).then(function(){new Fingerprint().getQimei36(d,i)}).catch(function(p){}),""}var w=function(){return(w=Object.assign||function(i){for(var a,s=1,p=arguments.length;s0||!window.indexedDB||/X5Lite/.test(navigator.userAgent)?(this.store=new se(a),this.dbEventCount=this.store.getCount()):(this.store=new ce(i),this.getCount().then(function(p){s.dbEventCount=p}).catch(function(p){}))}return d.prototype.getCount=function(){return ee(this,void 0,void 0,function(){return B(this,function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),[4,this.store.getCount()];case 1:return[2,i.sent()];case 2:return i.sent(),[2,Promise.reject()];case 3:return[2]}})})},d.prototype.insertEvent=function(i,a){return ee(this,void 0,void 0,function(){var s,p;return B(this,function(R){switch(R.label){case 0:if(this.dbEventCount>=1e4)return[2,Promise.reject()];s=A(i.mapValue),R.label=1;case 1:return R.trys.push([1,3,,4]),this.dbEventCount++,[4,this.store.setItem(s,i)];case 2:return[2,R.sent()];case 3:return p=R.sent(),a&&a(p,i),this.dbEventCount--,[2,Promise.reject()];case 4:return[2]}})})},d.prototype.getEvents=function(){return ee(this,void 0,void 0,function(){var i;return B(this,function(a){switch(a.label){case 0:i=[],a.label=1;case 1:return a.trys.push([1,3,,4]),[4,this.store.iterate(function(s){i.push(s)})];case 2:return a.sent(),[2,Promise.all(i)];case 3:return a.sent(),[2,Promise.all(i)];case 4:return[2]}})})},d.prototype.removeEvent=function(i){return ee(this,void 0,void 0,function(){var a;return B(this,function(s){switch(s.label){case 0:a=A(i.mapValue),s.label=1;case 1:return s.trys.push([1,3,,4]),this.dbEventCount--,[4,this.store.removeItem(a)];case 2:return[2,s.sent()];case 3:return s.sent(),this.dbEventCount++,[2,Promise.reject()];case 4:return[2]}})})},d}(),Z=function(){return(Z=Object.assign||function(i){for(var a,s=1,p=arguments.length;s0&&p[p.length-1])||W[0]!==6&&W[0]!==2)){O=0;continue}if(W[0]===3&&(!p||W[1]>p[0]&&W[1]0&&O<8,s.isUnderIE8||(s.isUnderIE=O>0,a.needInitQimei&&$(a.appkey,function(G){s.qimei36=G.q36}),s.network=new Ae(a),s.storage=new V(a.appkey),s.initCommonInfo(a),s.store=new re(a.appkey,s.storage),s.errorReport=new K(s.config,s.commonInfo,"web",s.network),s.strategy=new g(a.needQueryConfig==null||a.needQueryConfig,s.config,s.commonInfo,s.storage,s.network),s.logidStartTime=s.storage.getItem(x),s.logidStartTime||(s.logidStartTime=Date.now().toString(),s.storage.setItem(x,s.logidStartTime)),p=s.logidStartTime,R=Date.now()-Number.parseFloat(p),Math.floor(R/864e5)>=365&&s.storage.clear(),s.initSession(a),s.onDirectUserAction("rqd_js_init",{}),setTimeout(function(){return s.lifeCycle.emit("init")},0),s.initDelayTime=a.delay?a.delay:1e3,s.cycleTask(s.initDelayTime)),s}return function(a,s){if(typeof s!="function"&&s!==null)throw new TypeError("Class extends value "+String(s)+" is not a constructor or null");function p(){this.constructor=a}k(a,s),a.prototype=s===null?Object.create(s):(p.prototype=s.prototype,new p)}(i,d),i.prototype.initSession=function(a){var s=18e5;a.sessionDuration&&a.sessionDuration>3e4&&(s=a.sessionDuration),this.beaconSession=new U(this.storage,s,this)},i.prototype.initCommonInfo=function(a){var s=Number(this.storage.getItem(L));try{var p=JSON.parse(this.storage.getItem(z));(Date.now()-s>3e4||!p)&&this.storage.setItem(z,JSON.stringify([]))}catch(O){}a.uploadUrl&&(this.uploadUrl=a.uploadUrl+"?appkey="+a.appkey);var R=[window.screen.width,window.screen.height];window.devicePixelRatio&&R.push(window.devicePixelRatio),this.commonInfo={deviceId:this.storage.createDeviceId(),language:navigator&&navigator.language||"zh_CN",query:window.location.search,userAgent:navigator.userAgent,pixel:R.join("*"),channelID:a.channelID?String(a.channelID):"",openid:a.openid?String(a.openid):"",unid:a.unionid?String(a.unionid):"",sdkVersion:I},this.config.appVersion=a.versionCode?String(a.versionCode):"",this.config.strictMode=a.strictMode},i.prototype.cycleTask=function(a){var s=this;this.intervalID=window.setInterval(function(){s.pauseSearching||s.store.getEvents().then(function(p){p.length==0&&(s.pauseSearching=!0);var R=[],O=JSON.parse(s.storage.getItem(z));O||(O=[]),p&&p.forEach(function(G){var ae=A(G.mapValue);O.indexOf(ae)==-1&&(R.push(G),O.push(ae))}),R.length!=0&&(s.storage.setItem(z,JSON.stringify(O)),s._normalLogPipeline(s.assembleData(R)))}).catch(function(p){})},a)},i.prototype.onReport=function(a,s,p){var R=this;if(this.isUnderIE8)this.errorReport.reportError("601","UnderIE8");else{this.pauseSearching=!1;var O=this.generateData(a,s,p);if(p&&this.delayTime==0&&!this.underWeakNet)this._normalLogPipeline(this.assembleData(O));else{var G=O.shift();G&&this.store.insertEvent(G,function(ae){ae&&R.errorReport.reportError("604","insertEvent fail!")}).catch(function(ae){R._normalLogPipeline(R.assembleData(O))})}}},i.prototype.onSendBeacon=function(a,s){if(this.isUnderIE)this.errorReport.reportError("605","UnderIE");else{this.pauseSearching=!1;var p=this.assembleData(this.generateData(a,s,!0));typeof navigator.sendBeacon=="function"&&navigator.sendBeacon(this.uploadUrl||this.strategy.getUploadUrl(),JSON.stringify(p))}},i.prototype.generateData=function(a,s,p){var R=[],O="4.5.14-web_"+(p?"direct_log_id":"normal_log_id"),G=Number(this.storage.getItem(O));return G=G||1,s=P(P({},s),{A99:p?"Y":"N",A100:G.toString(),A72:I,A88:this.logidStartTime}),G++,this.storage.setItem(O,G.toString()),R.push({eventCode:a,eventTime:Date.now().toString(),mapValue:M(s,this.config.strictMode)}),R},i.prototype.assembleData=function(a){var s=this.beaconSession.getSession();return{appVersion:this.config.appVersion?ge(this.config.appVersion):"",sdkId:"js",sdkVersion:I,mainAppKey:this.config.appkey,platformId:3,common:M(P(P({},this.additionalParams),{A2:this.commonInfo.deviceId,A8:this.commonInfo.openid,A12:this.commonInfo.language,A17:this.commonInfo.pixel,A23:this.commonInfo.channelID,A50:this.commonInfo.unid,A76:s.sessionId,A101:this.commonInfo.userAgent,A102:window.location.href,A104:document.referrer,A119:this.commonInfo.query,A153:this.qimei36}),!1),events:a}},i.prototype.monitorUploadFailed=function(){this.uselessCycleTaskNum++,this.uselessCycleTaskNum>=5&&(window.clearInterval(this.intervalID),this.cycleTask(6e4),this.underWeakNet=!0)},i.prototype.doCustomCycleTask=function(){this.uselessCycleTaskNum>=5&&(window.clearInterval(this.intervalID),this.cycleTask(this.initDelayTime)),this.uselessCycleTaskNum=0,this.underWeakNet=!1},i}(m)})},"./lib/crypto.js":function(y,C,u){(function(v){var T=u("./node_modules/@babel/runtime/helpers/typeof.js"),l=l||function(k,P){var ee={},B=ee.lib={},b=function(){},q=B.Base={extend:function(S){b.prototype=this;var m=new b;return S&&m.mixIn(S),m.hasOwnProperty("init")||(m.init=function(){m.$super.init.apply(this,arguments)}),m.init.prototype=m,m.$super=this,m},create:function(){var S=this.extend();return S.init.apply(S,arguments),S},init:function(){},mixIn:function(S){for(var m in S)S.hasOwnProperty(m)&&(this[m]=S[m]);S.hasOwnProperty("toString")&&(this.toString=S.toString)},clone:function(){return this.init.prototype.extend(this)}},L=B.WordArray=q.extend({init:function(S,m){S=this.words=S||[],this.sigBytes=m!=P?m:4*S.length},toString:function(S){return(S||_).stringify(this)},concat:function(S){var m=this.words,K=S.words,g=this.sigBytes;if(S=S.sigBytes,this.clamp(),g%4)for(var D=0;D>>2]|=(K[D>>>2]>>>24-8*(D%4)&255)<<24-8*((g+D)%4);else if(65535>>2]=K[D>>>2];else m.push.apply(m,K);return this.sigBytes+=S,this},clamp:function(){var S=this.words,m=this.sigBytes;S[m>>>2]&=4294967295<<32-8*(m%4),S.length=k.ceil(m/4)},clone:function(){var S=q.clone.call(this);return S.words=this.words.slice(0),S},random:function(S){for(var m=[],K=0;K>>2]>>>24-8*(g%4)&255;K.push((D>>>4).toString(16)),K.push((D&15).toString(16))}return K.join("")},parse:function(S){for(var m=S.length,K=[],g=0;g>>3]|=parseInt(S.substr(g,2),16)<<24-4*(g%8);return new L.init(K,m/2)}},j=z.Latin1={stringify:function(S){var m=S.words;S=S.sigBytes;for(var K=[],g=0;g>>2]>>>24-8*(g%4)&255));return K.join("")},parse:function(S){for(var m=S.length,K=[],g=0;g>>2]|=(S.charCodeAt(g)&255)<<24-8*(g%4);return new L.init(K,m)}},Q=z.Utf8={stringify:function(S){try{return decodeURIComponent(escape(j.stringify(S)))}catch(m){throw Error("Malformed UTF-8 data")}},parse:function(S){return j.parse(unescape(encodeURIComponent(S)))}},M=B.BufferedBlockAlgorithm=q.extend({reset:function(){this._data=new L.init,this._nDataBytes=0},_append:function(S){typeof S=="string"&&(S=Q.parse(S)),this._data.concat(S),this._nDataBytes+=S.sigBytes},_process:function(S){var m=this._data,K=m.words,g=m.sigBytes,D=this.blockSize,U=g/(4*D),U=S?k.ceil(U):k.max((U|0)-this._minBufferSize,0);if(S=U*D,g=k.min(4*S,g),S){for(var F=0;FS;S++){if(16>S)b[S]=L[z+S]|0;else{var m=b[S-3]^b[S-8]^b[S-14]^b[S-16];b[S]=m<<1|m>>>31}m=(j<<5|j>>>27)+A+b[S],m=20>S?m+((Q&M|~Q&ge)+1518500249):40>S?m+((Q^M^ge)+1859775393):60>S?m+((Q&M|Q&ge|M&ge)-1894007588):m+((Q^M^ge)-899497514),A=ge,ge=M,M=Q<<30|Q>>>2,Q=j,j=m}_[0]=_[0]+j|0,_[1]=_[1]+Q|0,_[2]=_[2]+M|0,_[3]=_[3]+ge|0,_[4]=_[4]+A|0},_doFinalize:function(){var L=this._data,z=L.words,_=8*this._nDataBytes,j=8*L.sigBytes;return z[j>>>5]|=128<<24-j%32,z[(j+64>>>9<<4)+14]=Math.floor(_/4294967296),z[(j+64>>>9<<4)+15]=_,L.sigBytes=4*z.length,this._process(),this._hash},clone:function(){var L=B.clone.call(this);return L._hash=this._hash.clone(),L}});k.SHA1=B._createHelper(P),k.HmacSHA1=B._createHmacHelper(P)})(),function(){var k=l,P=k.enc.Utf8;k.algo.HMAC=k.lib.Base.extend({init:function(B,b){B=this._hasher=new B.init,typeof b=="string"&&(b=P.parse(b));var q=B.blockSize,L=4*q;b.sigBytes>L&&(b=B.finalize(b)),b.clamp();for(var z=this._oKey=b.clone(),_=this._iKey=b.clone(),j=z.words,Q=_.words,M=0;M>>2]>>>24-M%4*8&255,A=z[M+1>>>2]>>>24-(M+1)%4*8&255,S=z[M+2>>>2]>>>24-(M+2)%4*8&255,m=ge<<16|A<<8|S,K=0;K<4&&M+K*.75<_;K++)Q.push(j.charAt(m>>>6*(3-K)&63));var g=j.charAt(64);if(g)for(;Q.length%4;)Q.push(g);return Q.join("")},parse:function(L){var z=L.length,_=this._map,j=_.charAt(64);if(j){var Q=L.indexOf(j);Q!=-1&&(z=Q)}for(var M=[],ge=0,A=0;A>>6-A%4*2;M[ge>>>2]|=(S|m)<<24-ge%4*8,ge++}return ee.create(M,ge)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),T(v)==="object"?v.exports=l:window.CryptoJS=l}).call(this,u("./node_modules/webpack/buildin/module.js")(y))},"./lib/json2xml.js":function(y,C,u){var v=u("./node_modules/@babel/runtime/helpers/typeof.js"),T="a-zA-Z_\xC0-\xD6\xD8-\xF6\xF8-\xFF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FFF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD",l="-.0-9\xB7\u0300-\u036F\u203F\u2040",k=new RegExp("^([^"+T+"])|^((x|X)(m|M)(l|L))|([^"+T+l+"])","g"),P=/[^\x09\x0A\x0D\x20-\xFF\x85\xA0-\uD7FF\uE000-\uFDCF\uFDE0-\uFFFD]/gm,ee=function(z){var _=[];if(z instanceof Object)for(var j in z)z.hasOwnProperty(j)&&_.push(j);return _},B=function(z,_){var j=function(M,ge,A,S,m){var K=_.indent!==void 0?_.indent:" ",g=_.prettyPrint?` -`+new Array(S).join(K):"";_.removeIllegalNameCharacters&&(M=M.replace(k,"_"));var D=[g,"<",M,A||""];return ge&&ge.length>0?(D.push(">"),D.push(ge),m&&D.push(g),D.push("")):D.push("/>"),D.join("")};return function Q(M,ge,A){var S=v(M);switch((Array.isArray?Array.isArray(M):M instanceof Array)?S="array":M instanceof Date&&(S="date"),S){case"array":var m=[];return M.map(function(U){m.push(Q(U,1,A+1))}),_.prettyPrint&&m.push(` -`),m.join("");break;case"date":return M.toJSON?M.toJSON():M+"";case"object":var K=[];for(var g in M)if(M.hasOwnProperty(g))if(M[g]instanceof Array)for(var D=0;D0&&K.push(` -`),K.join("");break;case"function":return M();default:return _.escape?q(M):""+M}}(z,0,0)},b=function(z){var _=['"),_.join("")};function q(L){return(""+L).replace(/&/g,"&").replace(//g,">").replace(/'/g,"'").replace(/"/g,""").replace(P,"")}y.exports=function(L,z){if(z||(z={xmlHeader:{standalone:!0},prettyPrint:!0,indent:" ",escape:!0}),typeof L=="string")try{L=JSON.parse(L.toString())}catch(M){return!1}var _="",j="";z&&(v(z)=="object"?(z.xmlHeader&&(_=b(!!z.xmlHeader.standalone)),typeof z.docType!="undefined"&&(j="")):_=b()),z=z||{};var Q=[_,z.prettyPrint&&j?` -`:"",j,B(L,z)];return Q.join("").replace(/\n{2,}/g,` -`).replace(/\s+$/g,"")}},"./lib/md5.js":function(module,exports,__nested_webpack_require_69768__){(function(process,global,module){var __WEBPACK_AMD_DEFINE_RESULT__,_typeof=__nested_webpack_require_69768__("./node_modules/@babel/runtime/helpers/typeof.js");(function(){"use strict";var ERROR="input is invalid type",WINDOW=(typeof window=="undefined"?"undefined":_typeof(window))==="object",root=WINDOW?window:{};root.JS_MD5_NO_WINDOW&&(WINDOW=!1);var WEB_WORKER=!WINDOW&&(typeof self=="undefined"?"undefined":_typeof(self))==="object",NODE_JS=!root.JS_MD5_NO_NODE_JS&&(typeof process=="undefined"?"undefined":_typeof(process))==="object"&&process.versions&&process.versions.node;NODE_JS?root=global:WEB_WORKER&&(root=self);var COMMON_JS=!root.JS_MD5_NO_COMMON_JS&&_typeof(module)==="object"&&module.exports,AMD=__nested_webpack_require_69768__("./node_modules/webpack/buildin/amd-options.js"),ARRAY_BUFFER=!root.JS_MD5_NO_ARRAY_BUFFER&&typeof ArrayBuffer!="undefined",HEX_CHARS="0123456789abcdef".split(""),EXTRA=[128,32768,8388608,-2147483648],SHIFT=[0,8,16,24],OUTPUT_TYPES=["hex","array","digest","buffer","arrayBuffer","base64"],BASE64_ENCODE_CHAR="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),blocks=[],buffer8;if(ARRAY_BUFFER){var buffer=new ArrayBuffer(68);buffer8=new Uint8Array(buffer),blocks=new Uint32Array(buffer)}(root.JS_MD5_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(y){return Object.prototype.toString.call(y)==="[object Array]"}),ARRAY_BUFFER&&(root.JS_MD5_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(y){return _typeof(y)==="object"&&y.buffer&&y.buffer.constructor===ArrayBuffer});var createOutputMethod=function(C){return function(u,v){return new Md5(!0).update(u,v)[C]()}},createMethod=function(){var C=createOutputMethod("hex");NODE_JS&&(C=nodeWrap(C)),C.getCtx=C.create=function(){return new Md5},C.update=function(T){return C.create().update(T)};for(var u=0;u>6,P[T++]=128|u&63):u<55296||u>=57344?(P[T++]=224|u>>12,P[T++]=128|u>>6&63,P[T++]=128|u&63):(u=65536+((u&1023)<<10|y.charCodeAt(++v)&1023),P[T++]=240|u>>18,P[T++]=128|u>>12&63,P[T++]=128|u>>6&63,P[T++]=128|u&63);else for(T=this.start;v>2]|=u<>2]|=(192|u>>6)<>2]|=(128|u&63)<=57344?(k[T>>2]|=(224|u>>12)<>2]|=(128|u>>6&63)<>2]|=(128|u&63)<>2]|=(240|u>>18)<>2]|=(128|u>>12&63)<>2]|=(128|u>>6&63)<>2]|=(128|u&63)<=64?(this.start=T-64,this.hash(),this.hashed=!0):this.start=T}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},Md5.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var y=this.blocks,C=this.lastByteIndex;y[C>>2]|=EXTRA[C&3],C>=56&&(this.hashed||this.hash(),y[0]=y[16],y[16]=y[1]=y[2]=y[3]=y[4]=y[5]=y[6]=y[7]=y[8]=y[9]=y[10]=y[11]=y[12]=y[13]=y[14]=y[15]=0),y[14]=this.bytes<<3,y[15]=this.hBytes<<3|this.bytes>>>29,this.hash()}},Md5.prototype.hash=function(){var y,C,u,v,T,l,k=this.blocks;this.first?(y=k[0]-680876937,y=(y<<7|y>>>25)-271733879<<0,v=(-1732584194^y&2004318071)+k[1]-117830708,v=(v<<12|v>>>20)+y<<0,u=(-271733879^v&(y^-271733879))+k[2]-1126478375,u=(u<<17|u>>>15)+v<<0,C=(y^u&(v^y))+k[3]-1316259209,C=(C<<22|C>>>10)+u<<0):(y=this.h0,C=this.h1,u=this.h2,v=this.h3,y+=(v^C&(u^v))+k[0]-680876936,y=(y<<7|y>>>25)+C<<0,v+=(u^y&(C^u))+k[1]-389564586,v=(v<<12|v>>>20)+y<<0,u+=(C^v&(y^C))+k[2]+606105819,u=(u<<17|u>>>15)+v<<0,C+=(y^u&(v^y))+k[3]-1044525330,C=(C<<22|C>>>10)+u<<0),y+=(v^C&(u^v))+k[4]-176418897,y=(y<<7|y>>>25)+C<<0,v+=(u^y&(C^u))+k[5]+1200080426,v=(v<<12|v>>>20)+y<<0,u+=(C^v&(y^C))+k[6]-1473231341,u=(u<<17|u>>>15)+v<<0,C+=(y^u&(v^y))+k[7]-45705983,C=(C<<22|C>>>10)+u<<0,y+=(v^C&(u^v))+k[8]+1770035416,y=(y<<7|y>>>25)+C<<0,v+=(u^y&(C^u))+k[9]-1958414417,v=(v<<12|v>>>20)+y<<0,u+=(C^v&(y^C))+k[10]-42063,u=(u<<17|u>>>15)+v<<0,C+=(y^u&(v^y))+k[11]-1990404162,C=(C<<22|C>>>10)+u<<0,y+=(v^C&(u^v))+k[12]+1804603682,y=(y<<7|y>>>25)+C<<0,v+=(u^y&(C^u))+k[13]-40341101,v=(v<<12|v>>>20)+y<<0,u+=(C^v&(y^C))+k[14]-1502002290,u=(u<<17|u>>>15)+v<<0,C+=(y^u&(v^y))+k[15]+1236535329,C=(C<<22|C>>>10)+u<<0,y+=(u^v&(C^u))+k[1]-165796510,y=(y<<5|y>>>27)+C<<0,v+=(C^u&(y^C))+k[6]-1069501632,v=(v<<9|v>>>23)+y<<0,u+=(y^C&(v^y))+k[11]+643717713,u=(u<<14|u>>>18)+v<<0,C+=(v^y&(u^v))+k[0]-373897302,C=(C<<20|C>>>12)+u<<0,y+=(u^v&(C^u))+k[5]-701558691,y=(y<<5|y>>>27)+C<<0,v+=(C^u&(y^C))+k[10]+38016083,v=(v<<9|v>>>23)+y<<0,u+=(y^C&(v^y))+k[15]-660478335,u=(u<<14|u>>>18)+v<<0,C+=(v^y&(u^v))+k[4]-405537848,C=(C<<20|C>>>12)+u<<0,y+=(u^v&(C^u))+k[9]+568446438,y=(y<<5|y>>>27)+C<<0,v+=(C^u&(y^C))+k[14]-1019803690,v=(v<<9|v>>>23)+y<<0,u+=(y^C&(v^y))+k[3]-187363961,u=(u<<14|u>>>18)+v<<0,C+=(v^y&(u^v))+k[8]+1163531501,C=(C<<20|C>>>12)+u<<0,y+=(u^v&(C^u))+k[13]-1444681467,y=(y<<5|y>>>27)+C<<0,v+=(C^u&(y^C))+k[2]-51403784,v=(v<<9|v>>>23)+y<<0,u+=(y^C&(v^y))+k[7]+1735328473,u=(u<<14|u>>>18)+v<<0,C+=(v^y&(u^v))+k[12]-1926607734,C=(C<<20|C>>>12)+u<<0,T=C^u,y+=(T^v)+k[5]-378558,y=(y<<4|y>>>28)+C<<0,v+=(T^y)+k[8]-2022574463,v=(v<<11|v>>>21)+y<<0,l=v^y,u+=(l^C)+k[11]+1839030562,u=(u<<16|u>>>16)+v<<0,C+=(l^u)+k[14]-35309556,C=(C<<23|C>>>9)+u<<0,T=C^u,y+=(T^v)+k[1]-1530992060,y=(y<<4|y>>>28)+C<<0,v+=(T^y)+k[4]+1272893353,v=(v<<11|v>>>21)+y<<0,l=v^y,u+=(l^C)+k[7]-155497632,u=(u<<16|u>>>16)+v<<0,C+=(l^u)+k[10]-1094730640,C=(C<<23|C>>>9)+u<<0,T=C^u,y+=(T^v)+k[13]+681279174,y=(y<<4|y>>>28)+C<<0,v+=(T^y)+k[0]-358537222,v=(v<<11|v>>>21)+y<<0,l=v^y,u+=(l^C)+k[3]-722521979,u=(u<<16|u>>>16)+v<<0,C+=(l^u)+k[6]+76029189,C=(C<<23|C>>>9)+u<<0,T=C^u,y+=(T^v)+k[9]-640364487,y=(y<<4|y>>>28)+C<<0,v+=(T^y)+k[12]-421815835,v=(v<<11|v>>>21)+y<<0,l=v^y,u+=(l^C)+k[15]+530742520,u=(u<<16|u>>>16)+v<<0,C+=(l^u)+k[2]-995338651,C=(C<<23|C>>>9)+u<<0,y+=(u^(C|~v))+k[0]-198630844,y=(y<<6|y>>>26)+C<<0,v+=(C^(y|~u))+k[7]+1126891415,v=(v<<10|v>>>22)+y<<0,u+=(y^(v|~C))+k[14]-1416354905,u=(u<<15|u>>>17)+v<<0,C+=(v^(u|~y))+k[5]-57434055,C=(C<<21|C>>>11)+u<<0,y+=(u^(C|~v))+k[12]+1700485571,y=(y<<6|y>>>26)+C<<0,v+=(C^(y|~u))+k[3]-1894986606,v=(v<<10|v>>>22)+y<<0,u+=(y^(v|~C))+k[10]-1051523,u=(u<<15|u>>>17)+v<<0,C+=(v^(u|~y))+k[1]-2054922799,C=(C<<21|C>>>11)+u<<0,y+=(u^(C|~v))+k[8]+1873313359,y=(y<<6|y>>>26)+C<<0,v+=(C^(y|~u))+k[15]-30611744,v=(v<<10|v>>>22)+y<<0,u+=(y^(v|~C))+k[6]-1560198380,u=(u<<15|u>>>17)+v<<0,C+=(v^(u|~y))+k[13]+1309151649,C=(C<<21|C>>>11)+u<<0,y+=(u^(C|~v))+k[4]-145523070,y=(y<<6|y>>>26)+C<<0,v+=(C^(y|~u))+k[11]-1120210379,v=(v<<10|v>>>22)+y<<0,u+=(y^(v|~C))+k[2]+718787259,u=(u<<15|u>>>17)+v<<0,C+=(v^(u|~y))+k[9]-343485551,C=(C<<21|C>>>11)+u<<0,this.first?(this.h0=y+1732584193<<0,this.h1=C-271733879<<0,this.h2=u-1732584194<<0,this.h3=v+271733878<<0,this.first=!1):(this.h0=this.h0+y<<0,this.h1=this.h1+C<<0,this.h2=this.h2+u<<0,this.h3=this.h3+v<<0)},Md5.prototype.hex=function(){this.finalize();var y=this.h0,C=this.h1,u=this.h2,v=this.h3;return HEX_CHARS[y>>4&15]+HEX_CHARS[y&15]+HEX_CHARS[y>>12&15]+HEX_CHARS[y>>8&15]+HEX_CHARS[y>>20&15]+HEX_CHARS[y>>16&15]+HEX_CHARS[y>>28&15]+HEX_CHARS[y>>24&15]+HEX_CHARS[C>>4&15]+HEX_CHARS[C&15]+HEX_CHARS[C>>12&15]+HEX_CHARS[C>>8&15]+HEX_CHARS[C>>20&15]+HEX_CHARS[C>>16&15]+HEX_CHARS[C>>28&15]+HEX_CHARS[C>>24&15]+HEX_CHARS[u>>4&15]+HEX_CHARS[u&15]+HEX_CHARS[u>>12&15]+HEX_CHARS[u>>8&15]+HEX_CHARS[u>>20&15]+HEX_CHARS[u>>16&15]+HEX_CHARS[u>>28&15]+HEX_CHARS[u>>24&15]+HEX_CHARS[v>>4&15]+HEX_CHARS[v&15]+HEX_CHARS[v>>12&15]+HEX_CHARS[v>>8&15]+HEX_CHARS[v>>20&15]+HEX_CHARS[v>>16&15]+HEX_CHARS[v>>28&15]+HEX_CHARS[v>>24&15]},Md5.prototype.toString=Md5.prototype.hex,Md5.prototype.digest=function(y){if(y==="hex")return this.hex();this.finalize();var C=this.h0,u=this.h1,v=this.h2,T=this.h3,l=[C&255,C>>8&255,C>>16&255,C>>24&255,u&255,u>>8&255,u>>16&255,u>>24&255,v&255,v>>8&255,v>>16&255,v>>24&255,T&255,T>>8&255,T>>16&255,T>>24&255];return l},Md5.prototype.array=Md5.prototype.digest,Md5.prototype.arrayBuffer=function(){this.finalize();var y=new ArrayBuffer(16),C=new Uint32Array(y);return C[0]=this.h0,C[1]=this.h1,C[2]=this.h2,C[3]=this.h3,y},Md5.prototype.buffer=Md5.prototype.arrayBuffer,Md5.prototype.base64=function(){for(var y,C,u,v="",T=this.array(),l=0;l<15;)y=T[l++],C=T[l++],u=T[l++],v+=BASE64_ENCODE_CHAR[y>>>2]+BASE64_ENCODE_CHAR[(y<<4|C>>>4)&63]+BASE64_ENCODE_CHAR[(C<<2|u>>>6)&63]+BASE64_ENCODE_CHAR[u&63];return y=T[l],v+=BASE64_ENCODE_CHAR[y>>>2]+BASE64_ENCODE_CHAR[y<<4&63]+"==",v};var exports=createMethod();COMMON_JS?module.exports=exports:(root.md5=exports,AMD&&(__WEBPACK_AMD_DEFINE_RESULT__=function(){return exports}.call(exports,__nested_webpack_require_69768__,exports,module),__WEBPACK_AMD_DEFINE_RESULT__!==void 0&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__)))})()}).call(this,__nested_webpack_require_69768__("./node_modules/process/browser.js"),__nested_webpack_require_69768__("./node_modules/webpack/buildin/global.js"),__nested_webpack_require_69768__("./node_modules/webpack/buildin/module.js")(module))},"./lib/request.js":function(y,C,u){var v=u("./node_modules/@babel/runtime/helpers/typeof.js"),T=function(b){switch(v(b)){case"string":return b;case"boolean":return b?"true":"false";case"number":return isFinite(b)?b:"";default:return""}},l=function(b,q,L,z){return q=q||"&",L=L||"=",b===null&&(b=void 0),v(b)==="object"?Object.keys(b).map(function(_){var j=encodeURIComponent(T(_))+L;return Array.isArray(b[_])?b[_].map(function(Q){return j+encodeURIComponent(T(Q))}).join(q):j+encodeURIComponent(T(b[_]))}).filter(Boolean).join(q):z?encodeURIComponent(T(z))+L+encodeURIComponent(T(b)):""},k=function(b,q,L){var z={};return q.getAllResponseHeaders().trim().split(` -`).forEach(function(_){if(_){var j=_.indexOf(":"),Q=_.substr(0,j).trim().toLowerCase(),M=_.substr(j+1).trim();z[Q]=M}}),{error:b,statusCode:q.status,statusMessage:q.statusText,headers:z,body:L}},P=function(b,q){return!q&&q==="text"?b.responseText:b.response},ee=function(b,q){var L=(b.method||"GET").toUpperCase(),z=b.url;if(b.qs){var _=l(b.qs);_&&(z+=(z.indexOf("?")===-1?"?":"&")+_)}var j=new XMLHttpRequest;if(j.open(L,z,!0),j.responseType=b.dataType||"text",b.xhrFields)for(var Q in b.xhrFields)j[Q]=b.xhrFields[Q];var M=b.headers;if(M)for(var ge in M)M.hasOwnProperty(ge)&&ge.toLowerCase()!=="content-length"&&ge.toLowerCase()!=="user-agent"&&ge.toLowerCase()!=="origin"&&ge.toLowerCase()!=="host"&&j.setRequestHeader(ge,M[ge]);return b.onProgress&&j.upload&&(j.upload.onprogress=b.onProgress),b.onDownloadProgress&&(j.onprogress=b.onDownloadProgress),b.timeout&&(j.timeout=b.timeout),j.ontimeout=function(A){var S=new Error("timeout");q(k(S,j))},j.onload=function(){q(k(null,j,P(j,b.dataType)))},j.onerror=function(A){var S=P(j,b.dataType);if(S)q(k(null,j,S));else{var m=j.statusText;!m&&j.status===0&&(m=new Error("CORS blocked or network error")),q(k(m,j,S))}},j.send(b.body||""),j};y.exports=ee},"./lib/xml2json.js":function(y,C,u){var v=u("./node_modules/@xmldom/xmldom/lib/index.js").DOMParser,T=function(){this.version="1.3.5";var k={mergeCDATA:!0,normalize:!0,stripElemPrefix:!0},P=new RegExp(/(?!xmlns)^.*:/),ee=new RegExp(/^\s+|\s+$/g);return this.grokType=function(B){return/^\s*$/.test(B)?null:/^(?:true|false)$/i.test(B)?B.toLowerCase()==="true":isFinite(B)?parseFloat(B):B},this.parseString=function(B,b){if(B){var q=this.stringToXML(B);return q.getElementsByTagName("parsererror").length?null:this.parseXML(q,b)}else return null},this.parseXML=function(B,b){for(var q in b)k[q]=b[q];var L={},z=0,_="",j=B.childNodes.length;if(j)for(var Q,M,ge,A=0;A=S+m||S?new java.lang.String(A,S,m)+"":A}"endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl".replace(/\w+/g,function(A){_.prototype[A]=function(){return null}});function ge(A,S){A.currentElement?A.currentElement.appendChild(S):A.doc.appendChild(S)}C.__DOMHandler=_,C.normalizeLineEndings=q,C.DOMParser=L},"./node_modules/@xmldom/xmldom/lib/dom.js":function(y,C,u){var v=u("./node_modules/@xmldom/xmldom/lib/conventions.js"),T=v.find,l=v.NAMESPACE;function k(t){return t!==""}function P(t){return t?t.split(/[\t\n\f\r ]+/).filter(k):[]}function ee(t,n){return t.hasOwnProperty(n)||(t[n]=!0),t}function B(t){if(!t)return[];var n=P(t);return Object.keys(n.reduce(ee,{}))}function b(t){return function(n){return t&&t.indexOf(n)!==-1}}function q(t,n){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r])}function L(t,n){var r=t.prototype;if(!(r instanceof n)){let E=function(){};var h=E;E.prototype=n.prototype,E=new E,q(r,E),t.prototype=r=E}r.constructor!=t&&(typeof t!="function"&&console.error("unknown Class:"+t),r.constructor=t)}var z={},_=z.ELEMENT_NODE=1,j=z.ATTRIBUTE_NODE=2,Q=z.TEXT_NODE=3,M=z.CDATA_SECTION_NODE=4,ge=z.ENTITY_REFERENCE_NODE=5,A=z.ENTITY_NODE=6,S=z.PROCESSING_INSTRUCTION_NODE=7,m=z.COMMENT_NODE=8,K=z.DOCUMENT_NODE=9,g=z.DOCUMENT_TYPE_NODE=10,D=z.DOCUMENT_FRAGMENT_NODE=11,U=z.NOTATION_NODE=12,F={},$={},w=F.INDEX_SIZE_ERR=($[1]="Index size error",1),H=F.DOMSTRING_SIZE_ERR=($[2]="DOMString size error",2),N=F.HIERARCHY_REQUEST_ERR=($[3]="Hierarchy request error",3),X=F.WRONG_DOCUMENT_ERR=($[4]="Wrong document",4),J=F.INVALID_CHARACTER_ERR=($[5]="Invalid character",5),ce=F.NO_DATA_ALLOWED_ERR=($[6]="No data allowed",6),se=F.NO_MODIFICATION_ALLOWED_ERR=($[7]="No modification allowed",7),re=F.NOT_FOUND_ERR=($[8]="Not found",8),Z=F.NOT_SUPPORTED_ERR=($[9]="Not supported",9),te=F.INUSE_ATTRIBUTE_ERR=($[10]="Attribute in use",10),ie=F.INVALID_STATE_ERR=($[11]="Invalid state",11),we=F.SYNTAX_ERR=($[12]="Syntax error",12),de=F.INVALID_MODIFICATION_ERR=($[13]="Invalid modification",13),Y=F.NAMESPACE_ERR=($[14]="Invalid namespace",14),pe=F.INVALID_ACCESS_ERR=($[15]="Invalid access",15);function oe(t,n){if(n instanceof Error)var r=n;else r=this,Error.call(this,$[t]),this.message=$[t],Error.captureStackTrace&&Error.captureStackTrace(this,oe);return r.code=t,n&&(this.message=this.message+": "+n),r}oe.prototype=Error.prototype,q(F,oe);function le(){}le.prototype={length:0,item:function(t){return this[t]||null},toString:function(t,n){for(var r=[],h=0;h=0){for(var E=n.length-1;h0},lookupPrefix:function(t){for(var n=this;n;){var r=n._nsMap;if(r){for(var h in r)if(Object.prototype.hasOwnProperty.call(r,h)&&r[h]===t)return h}n=n.nodeType==j?n.ownerDocument:n.parentNode}return null},lookupNamespaceURI:function(t){for(var n=this;n;){var r=n._nsMap;if(r&&Object.prototype.hasOwnProperty.call(r,t))return r[t];n=n.nodeType==j?n.ownerDocument:n.parentNode}return null},isDefaultNamespace:function(t){var n=this.lookupPrefix(t);return n==null}};function x(t){return t=="<"&&"<"||t==">"&&">"||t=="&"&&"&"||t=='"'&&"""||"&#"+t.charCodeAt()+";"}q(z,V),q(z,V.prototype);function I(t,n){if(n(t))return!0;if(t=t.firstChild)do if(I(t,n))return!0;while(t=t.nextSibling)}function d(){this.ownerDocument=this}function i(t,n,r){t&&t._inc++;var h=r.namespaceURI;h===l.XMLNS&&(n._nsMap[r.prefix?r.localName:""]=r.value)}function a(t,n,r,h){t&&t._inc++;var E=r.namespaceURI;E===l.XMLNS&&delete n._nsMap[r.prefix?r.localName:""]}function s(t,n,r){if(t&&t._inc){t._inc++;var h=n.childNodes;if(r)h[h.length++]=r;else{for(var E=n.firstChild,ne=0;E;)h[ne++]=E,E=E.nextSibling;h.length=ne,delete h[h.length]}}}function p(t,n){var r=n.previousSibling,h=n.nextSibling;return r?r.nextSibling=h:t.firstChild=h,h?h.previousSibling=r:t.lastChild=r,n.parentNode=null,n.previousSibling=null,n.nextSibling=null,s(t.ownerDocument,t),n}function R(t){return t&&(t.nodeType===V.DOCUMENT_NODE||t.nodeType===V.DOCUMENT_FRAGMENT_NODE||t.nodeType===V.ELEMENT_NODE)}function O(t){return t&&(ae(t)||Ce(t)||G(t)||t.nodeType===V.DOCUMENT_FRAGMENT_NODE||t.nodeType===V.COMMENT_NODE||t.nodeType===V.PROCESSING_INSTRUCTION_NODE)}function G(t){return t&&t.nodeType===V.DOCUMENT_TYPE_NODE}function ae(t){return t&&t.nodeType===V.ELEMENT_NODE}function Ce(t){return t&&t.nodeType===V.TEXT_NODE}function W(t,n){var r=t.childNodes||[];if(T(r,ae)||G(n))return!1;var h=T(r,G);return!(n&&h&&r.indexOf(h)>r.indexOf(n))}function Oe(t,n){var r=t.childNodes||[];function h(ne){return ae(ne)&&ne!==n}if(T(r,h))return!1;var E=T(r,G);return!(n&&E&&r.indexOf(E)>r.indexOf(n))}function ke(t,n,r){if(!R(t))throw new oe(N,"Unexpected parent node type "+t.nodeType);if(r&&r.parentNode!==t)throw new oe(re,"child not in parent");if(!O(n)||G(n)&&t.nodeType!==V.DOCUMENT_NODE)throw new oe(N,"Unexpected node type "+n.nodeType+" for parent node type "+t.nodeType)}function Ie(t,n,r){var h=t.childNodes||[],E=n.childNodes||[];if(n.nodeType===V.DOCUMENT_FRAGMENT_NODE){var ne=E.filter(ae);if(ne.length>1||T(E,Ce))throw new oe(N,"More than one element or text in fragment");if(ne.length===1&&!W(t,r))throw new oe(N,"Element in fragment can not be inserted before doctype")}if(ae(n)&&!W(t,r))throw new oe(N,"Only one element can be added and only after doctype");if(G(n)){if(T(h,G))throw new oe(N,"Only one doctype is allowed");var fe=T(h,ae);if(r&&h.indexOf(fe)1||T(E,Ce))throw new oe(N,"More than one element or text in fragment");if(ne.length===1&&!Oe(t,r))throw new oe(N,"Element in fragment can not be inserted before doctype")}if(ae(n)&&!Oe(t,r))throw new oe(N,"Only one element can be added and only after doctype");if(G(n)){let Te=function(Be){return G(Be)&&Be!==r};var ue=Te;if(T(h,Te))throw new oe(N,"Only one doctype is allowed");var fe=T(h,ae);if(r&&h.indexOf(fe)0&&I(r.documentElement,function(E){if(E!==r&&E.nodeType===_){var ne=E.getAttribute("class");if(ne){var fe=t===ne;if(!fe){var ue=B(ne);fe=n.every(b(ue))}fe&&h.push(E)}}}),h})},createElement:function(t){var n=new Fe;n.ownerDocument=this,n.nodeName=t,n.tagName=t,n.localName=t,n.childNodes=new le;var r=n.attributes=new me;return r._ownerElement=n,n},createDocumentFragment:function(){var t=new Je;return t.ownerDocument=this,t.childNodes=new le,t},createTextNode:function(t){var n=new ze;return n.ownerDocument=this,n.appendData(t),n},createComment:function(t){var n=new Xe;return n.ownerDocument=this,n.appendData(t),n},createCDATASection:function(t){var n=new nt;return n.ownerDocument=this,n.appendData(t),n},createProcessingInstruction:function(t,n){var r=new $e;return r.ownerDocument=this,r.tagName=r.target=t,r.nodeValue=r.data=n,r},createAttribute:function(t){var n=new je;return n.ownerDocument=this,n.name=t,n.nodeName=t,n.localName=t,n.specified=!0,n},createEntityReference:function(t){var n=new Ve;return n.ownerDocument=this,n.nodeName=t,n},createElementNS:function(t,n){var r=new Fe,h=n.split(":"),E=r.attributes=new me;return r.childNodes=new le,r.ownerDocument=this,r.nodeName=n,r.tagName=n,r.namespaceURI=t,h.length==2?(r.prefix=h[0],r.localName=h[1]):r.localName=n,E._ownerElement=r,r},createAttributeNS:function(t,n){var r=new je,h=n.split(":");return r.ownerDocument=this,r.nodeName=n,r.name=n,r.namespaceURI=t,r.specified=!0,h.length==2?(r.prefix=h[0],r.localName=h[1]):r.localName=n,r}},L(d,V);function Fe(){this._nsMap={}}Fe.prototype={nodeType:_,hasAttribute:function(t){return this.getAttributeNode(t)!=null},getAttribute:function(t){var n=this.getAttributeNode(t);return n&&n.value||""},getAttributeNode:function(t){return this.attributes.getNamedItem(t)},setAttribute:function(t,n){var r=this.ownerDocument.createAttribute(t);r.value=r.nodeValue=""+n,this.setAttributeNode(r)},removeAttribute:function(t){var n=this.getAttributeNode(t);n&&this.removeAttributeNode(n)},appendChild:function(t){return t.nodeType===D?this.insertBefore(t,null):Ge(this,t)},setAttributeNode:function(t){return this.attributes.setNamedItem(t)},setAttributeNodeNS:function(t){return this.attributes.setNamedItemNS(t)},removeAttributeNode:function(t){return this.attributes.removeNamedItem(t.nodeName)},removeAttributeNS:function(t,n){var r=this.getAttributeNodeNS(t,n);r&&this.removeAttributeNode(r)},hasAttributeNS:function(t,n){return this.getAttributeNodeNS(t,n)!=null},getAttributeNS:function(t,n){var r=this.getAttributeNodeNS(t,n);return r&&r.value||""},setAttributeNS:function(t,n,r){var h=this.ownerDocument.createAttributeNS(t,n);h.value=h.nodeValue=""+r,this.setAttributeNode(h)},getAttributeNodeNS:function(t,n){return this.attributes.getNamedItemNS(t,n)},getElementsByTagName:function(t){return new ye(this,function(n){var r=[];return I(n,function(h){h!==n&&h.nodeType==_&&(t==="*"||h.tagName==t)&&r.push(h)}),r})},getElementsByTagNameNS:function(t,n){return new ye(this,function(r){var h=[];return I(r,function(E){E!==r&&E.nodeType===_&&(t==="*"||E.namespaceURI===t)&&(n==="*"||E.localName==n)&&h.push(E)}),h})}},d.prototype.getElementsByTagName=Fe.prototype.getElementsByTagName,d.prototype.getElementsByTagNameNS=Fe.prototype.getElementsByTagNameNS,L(Fe,V);function je(){}je.prototype.nodeType=j,L(je,V);function Ne(){}Ne.prototype={data:"",substringData:function(t,n){return this.data.substring(t,t+n)},appendData:function(t){t=this.data+t,this.nodeValue=this.data=t,this.length=t.length},insertData:function(t,n){this.replaceData(t,0,n)},appendChild:function(t){throw new Error($[N])},deleteData:function(t,n){this.replaceData(t,n,"")},replaceData:function(t,n,r){var h=this.data.substring(0,t),E=this.data.substring(t+n);r=h+r+E,this.nodeValue=this.data=r,this.length=r.length}},L(Ne,V);function ze(){}ze.prototype={nodeName:"#text",nodeType:Q,splitText:function(t){var n=this.data,r=n.substring(t);n=n.substring(0,t),this.data=this.nodeValue=n,this.length=n.length;var h=this.ownerDocument.createTextNode(r);return this.parentNode&&this.parentNode.insertBefore(h,this.nextSibling),h}},L(ze,Ne);function Xe(){}Xe.prototype={nodeName:"#comment",nodeType:m},L(Xe,Ne);function nt(){}nt.prototype={nodeName:"#cdata-section",nodeType:M},L(nt,Ne);function Ye(){}Ye.prototype.nodeType=g,L(Ye,V);function Qe(){}Qe.prototype.nodeType=U,L(Qe,V);function Ze(){}Ze.prototype.nodeType=A,L(Ze,V);function Ve(){}Ve.prototype.nodeType=ge,L(Ve,V);function Je(){}Je.prototype.nodeName="#document-fragment",Je.prototype.nodeType=D,L(Je,V);function $e(){}$e.prototype.nodeType=S,L($e,V);function rt(){}rt.prototype.serializeToString=function(t,n,r){return he.call(t,n,r)},V.prototype.toString=he;function he(t,n){var r=[],h=this.nodeType==9&&this.documentElement||this,E=h.prefix,ne=h.namespaceURI;if(ne&&E==null){var E=h.lookupPrefix(ne);if(E==null)var fe=[{namespace:ne,prefix:null}]}return tt(this,r,t,n,fe),r.join("")}function et(t,n,r){var h=t.prefix||"",E=t.namespaceURI;if(!E||h==="xml"&&E===l.XML||E===l.XMLNS)return!1;for(var ne=r.length;ne--;){var fe=r[ne];if(fe.prefix===h)return fe.namespace!==E}return!0}function ot(t,n,r){t.push(" ",n,'="',r.replace(/[<>&"\t\n\r]/g,x),'"')}function tt(t,n,r,h,E){if(E||(E=[]),h)if(t=h(t),t){if(typeof t=="string"){n.push(t);return}}else return;switch(t.nodeType){case _:var ne=t.attributes,fe=ne.length,ue=t.firstChild,Te=t.tagName;r=l.isHTML(t.namespaceURI)||r;var Be=Te;if(!r&&!t.prefix&&t.namespaceURI){for(var Ue,We=0;We=0;He--){var Le=E[He];if(Le.prefix===""&&Le.namespace===t.namespaceURI){Ue=Le.namespace;break}}if(Ue!==t.namespaceURI)for(var He=E.length-1;He>=0;He--){var Le=E[He];if(Le.namespace===t.namespaceURI){Le.prefix&&(Be=Le.prefix+":"+Te);break}}}n.push("<",Be);for(var qe=0;qe"),r&&/^script$/i.test(Te))for(;ue;)ue.data?n.push(ue.data):tt(ue,n,r,h,E.slice()),ue=ue.nextSibling;else for(;ue;)tt(ue,n,r,h,E.slice()),ue=ue.nextSibling;n.push("")}else n.push("/>");return;case K:case D:for(var ue=t.firstChild;ue;)tt(ue,n,r,h,E.slice()),ue=ue.nextSibling;return;case j:return ot(n,t.name,t.value);case Q:return n.push(t.data.replace(/[<&>]/g,x));case M:return n.push("");case m:return n.push("");case g:var De=t.publicId,Ke=t.systemId;if(n.push("");else if(Ke&&Ke!=".")n.push(" SYSTEM ",Ke,">");else{var st=t.internalSubset;st&&n.push(" [",st,"]"),n.push(">")}return;case S:return n.push("");case ge:return n.push("&",t.nodeName,";");default:n.push("??",t.nodeName)}}function e(t,n,r){var h;switch(n.nodeType){case _:h=n.cloneNode(!1),h.ownerDocument=t;case D:break;case j:r=!0;break}if(h||(h=n.cloneNode(!1)),h.ownerDocument=t,h.parentNode=null,r)for(var E=n.firstChild;E;)h.appendChild(e(t,E,r)),E=E.nextSibling;return h}function f(t,n,r){var h=new n.constructor;for(var E in n)if(Object.prototype.hasOwnProperty.call(n,E)){var ne=n[E];typeof ne!="object"&&ne!=h[E]&&(h[E]=ne)}switch(n.childNodes&&(h.childNodes=new le),h.ownerDocument=t,h.nodeType){case _:var fe=n.attributes,ue=h.attributes=new me,Te=fe.length;ue._ownerElement=h;for(var Be=0;Be",lt:"<",quot:'"'}),C.HTML_ENTITIES=v({lt:"<",gt:">",amp:"&",quot:'"',apos:"'",Agrave:"\xC0",Aacute:"\xC1",Acirc:"\xC2",Atilde:"\xC3",Auml:"\xC4",Aring:"\xC5",AElig:"\xC6",Ccedil:"\xC7",Egrave:"\xC8",Eacute:"\xC9",Ecirc:"\xCA",Euml:"\xCB",Igrave:"\xCC",Iacute:"\xCD",Icirc:"\xCE",Iuml:"\xCF",ETH:"\xD0",Ntilde:"\xD1",Ograve:"\xD2",Oacute:"\xD3",Ocirc:"\xD4",Otilde:"\xD5",Ouml:"\xD6",Oslash:"\xD8",Ugrave:"\xD9",Uacute:"\xDA",Ucirc:"\xDB",Uuml:"\xDC",Yacute:"\xDD",THORN:"\xDE",szlig:"\xDF",agrave:"\xE0",aacute:"\xE1",acirc:"\xE2",atilde:"\xE3",auml:"\xE4",aring:"\xE5",aelig:"\xE6",ccedil:"\xE7",egrave:"\xE8",eacute:"\xE9",ecirc:"\xEA",euml:"\xEB",igrave:"\xEC",iacute:"\xED",icirc:"\xEE",iuml:"\xEF",eth:"\xF0",ntilde:"\xF1",ograve:"\xF2",oacute:"\xF3",ocirc:"\xF4",otilde:"\xF5",ouml:"\xF6",oslash:"\xF8",ugrave:"\xF9",uacute:"\xFA",ucirc:"\xFB",uuml:"\xFC",yacute:"\xFD",thorn:"\xFE",yuml:"\xFF",nbsp:"\xA0",iexcl:"\xA1",cent:"\xA2",pound:"\xA3",curren:"\xA4",yen:"\xA5",brvbar:"\xA6",sect:"\xA7",uml:"\xA8",copy:"\xA9",ordf:"\xAA",laquo:"\xAB",not:"\xAC",shy:"\xAD\xAD",reg:"\xAE",macr:"\xAF",deg:"\xB0",plusmn:"\xB1",sup2:"\xB2",sup3:"\xB3",acute:"\xB4",micro:"\xB5",para:"\xB6",middot:"\xB7",cedil:"\xB8",sup1:"\xB9",ordm:"\xBA",raquo:"\xBB",frac14:"\xBC",frac12:"\xBD",frac34:"\xBE",iquest:"\xBF",times:"\xD7",divide:"\xF7",forall:"\u2200",part:"\u2202",exist:"\u2203",empty:"\u2205",nabla:"\u2207",isin:"\u2208",notin:"\u2209",ni:"\u220B",prod:"\u220F",sum:"\u2211",minus:"\u2212",lowast:"\u2217",radic:"\u221A",prop:"\u221D",infin:"\u221E",ang:"\u2220",and:"\u2227",or:"\u2228",cap:"\u2229",cup:"\u222A",int:"\u222B",there4:"\u2234",sim:"\u223C",cong:"\u2245",asymp:"\u2248",ne:"\u2260",equiv:"\u2261",le:"\u2264",ge:"\u2265",sub:"\u2282",sup:"\u2283",nsub:"\u2284",sube:"\u2286",supe:"\u2287",oplus:"\u2295",otimes:"\u2297",perp:"\u22A5",sdot:"\u22C5",Alpha:"\u0391",Beta:"\u0392",Gamma:"\u0393",Delta:"\u0394",Epsilon:"\u0395",Zeta:"\u0396",Eta:"\u0397",Theta:"\u0398",Iota:"\u0399",Kappa:"\u039A",Lambda:"\u039B",Mu:"\u039C",Nu:"\u039D",Xi:"\u039E",Omicron:"\u039F",Pi:"\u03A0",Rho:"\u03A1",Sigma:"\u03A3",Tau:"\u03A4",Upsilon:"\u03A5",Phi:"\u03A6",Chi:"\u03A7",Psi:"\u03A8",Omega:"\u03A9",alpha:"\u03B1",beta:"\u03B2",gamma:"\u03B3",delta:"\u03B4",epsilon:"\u03B5",zeta:"\u03B6",eta:"\u03B7",theta:"\u03B8",iota:"\u03B9",kappa:"\u03BA",lambda:"\u03BB",mu:"\u03BC",nu:"\u03BD",xi:"\u03BE",omicron:"\u03BF",pi:"\u03C0",rho:"\u03C1",sigmaf:"\u03C2",sigma:"\u03C3",tau:"\u03C4",upsilon:"\u03C5",phi:"\u03C6",chi:"\u03C7",psi:"\u03C8",omega:"\u03C9",thetasym:"\u03D1",upsih:"\u03D2",piv:"\u03D6",OElig:"\u0152",oelig:"\u0153",Scaron:"\u0160",scaron:"\u0161",Yuml:"\u0178",fnof:"\u0192",circ:"\u02C6",tilde:"\u02DC",ensp:"\u2002",emsp:"\u2003",thinsp:"\u2009",zwnj:"\u200C",zwj:"\u200D",lrm:"\u200E",rlm:"\u200F",ndash:"\u2013",mdash:"\u2014",lsquo:"\u2018",rsquo:"\u2019",sbquo:"\u201A",ldquo:"\u201C",rdquo:"\u201D",bdquo:"\u201E",dagger:"\u2020",Dagger:"\u2021",bull:"\u2022",hellip:"\u2026",permil:"\u2030",prime:"\u2032",Prime:"\u2033",lsaquo:"\u2039",rsaquo:"\u203A",oline:"\u203E",euro:"\u20AC",trade:"\u2122",larr:"\u2190",uarr:"\u2191",rarr:"\u2192",darr:"\u2193",harr:"\u2194",crarr:"\u21B5",lceil:"\u2308",rceil:"\u2309",lfloor:"\u230A",rfloor:"\u230B",loz:"\u25CA",spades:"\u2660",clubs:"\u2663",hearts:"\u2665",diams:"\u2666"}),C.entityMap=C.HTML_ENTITIES},"./node_modules/@xmldom/xmldom/lib/index.js":function(y,C,u){var v=u("./node_modules/@xmldom/xmldom/lib/dom.js");C.DOMImplementation=v.DOMImplementation,C.XMLSerializer=v.XMLSerializer,C.DOMParser=u("./node_modules/@xmldom/xmldom/lib/dom-parser.js").DOMParser},"./node_modules/@xmldom/xmldom/lib/sax.js":function(y,C,u){var v=u("./node_modules/@xmldom/xmldom/lib/conventions.js").NAMESPACE,T=/[A-Z_a-z\xC0-\xD6\xD8-\xF6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,l=new RegExp("[\\-\\.0-9"+T.source.slice(1,-1)+"\\u00B7\\u0300-\\u036F\\u203F-\\u2040]"),k=new RegExp("^"+T.source+l.source+"*(?::"+T.source+l.source+"*)?$"),P=0,ee=1,B=2,b=3,q=4,L=5,z=6,_=7;function j(w,H){this.message=w,this.locator=H,Error.captureStackTrace&&Error.captureStackTrace(this,j)}j.prototype=new Error,j.prototype.name=j.name;function Q(){}Q.prototype={parse:function(w,H,N){var X=this.domBuilder;X.startDocument(),g(H,H={}),M(w,H,N,X,this.errorHandler),X.endDocument()}};function M(w,H,N,X,J){function ce(R){if(R>65535){R-=65536;var O=55296+(R>>10),G=56320+(R&1023);return String.fromCharCode(O,G)}else return String.fromCharCode(R)}function se(R){var O=R.slice(1,-1);return Object.hasOwnProperty.call(N,O)?N[O]:O.charAt(0)==="#"?ce(parseInt(O.substr(1).replace("x","0x"))):(J.error("entity not found:"+R),R)}function re(R){if(R>oe){var O=w.substring(oe,R).replace(/&#?\w+;/g,se);de&&Z(oe),X.characters(O,0,R-oe),oe=R}}function Z(R,O){for(;R>=ie&&(O=we.exec(w));)te=O.index,ie=te+O[0].length,de.lineNumber++;de.columnNumber=R-te+1}for(var te=0,ie=0,we=/.*(?:\r\n?|\n)|.*$/g,de=X.locator,Y=[{currentNSMap:H}],pe={},oe=0;;){try{var le=w.indexOf("<",oe);if(le<0){if(!w.substr(oe).match(/^\s*$/)){var ye=X.doc,ve=ye.createTextNode(w.substr(oe));ye.appendChild(ve),X.currentElement=ve}return}switch(le>oe&&re(le),w.charAt(le+1)){case"/":var me=w.indexOf(">",le+3),Ee=w.substring(le+2,me).replace(/[ \t\n\r]+$/g,""),Se=Y.pop();me<0?(Ee=w.substring(le+2).replace(/[\s<].*/,""),J.error("end tag name: "+Ee+" is not complete:"+Se.tagName),me=le+1+Ee.length):Ee.match(/\soe?oe=me:re(Math.max(le,oe)+1)}}function ge(w,H){return H.lineNumber=w.lineNumber,H.columnNumber=w.columnNumber,H}function A(w,H,N,X,J,ce){function se(Y,pe,oe){N.attributeNames.hasOwnProperty(Y)&&ce.fatalError("Attribute "+Y+" redefined"),N.addValue(Y,pe.replace(/[\t\n\r]/g," ").replace(/&#?\w+;/g,J),oe)}for(var re,Z,te=++H,ie=P;;){var we=w.charAt(te);switch(we){case"=":if(ie===ee)re=w.slice(H,te),ie=b;else if(ie===B)ie=b;else throw new Error("attribute equal must after attrName");break;case"'":case'"':if(ie===b||ie===ee)if(ie===ee&&(ce.warning('attribute value must after "="'),re=w.slice(H,te)),H=te+1,te=w.indexOf(we,H),te>0)Z=w.slice(H,te),se(re,Z,H-1),ie=L;else throw new Error("attribute value no end '"+we+"' match");else if(ie==q)Z=w.slice(H,te),se(re,Z,H),ce.warning('attribute "'+re+'" missed start quot('+we+")!!"),H=te+1,ie=L;else throw new Error('attribute value must after "="');break;case"/":switch(ie){case P:N.setTagName(w.slice(H,te));case L:case z:case _:ie=_,N.closed=!0;case q:case ee:case B:break;default:throw new Error("attribute invalid close char('/')")}break;case"":return ce.error("unexpected end of input"),ie==P&&N.setTagName(w.slice(H,te)),te;case">":switch(ie){case P:N.setTagName(w.slice(H,te));case L:case z:case _:break;case q:case ee:Z=w.slice(H,te),Z.slice(-1)==="/"&&(N.closed=!0,Z=Z.slice(0,-1));case B:ie===B&&(Z=re),ie==q?(ce.warning('attribute "'+Z+'" missed quot(")!'),se(re,Z,H)):((!v.isHTML(X[""])||!Z.match(/^(?:disabled|checked|selected)$/i))&&ce.warning('attribute "'+Z+'" missed value!! "'+Z+'" instead!!'),se(Z,Z,H));break;case b:throw new Error("attribute value missed!!")}return te;case"\x80":we=" ";default:if(we<=" ")switch(ie){case P:N.setTagName(w.slice(H,te)),ie=z;break;case ee:re=w.slice(H,te),ie=B;break;case q:var Z=w.slice(H,te);ce.warning('attribute "'+Z+'" missed quot(")!!'),se(re,Z,H);case L:ie=z;break}else switch(ie){case B:var de=N.tagName;(!v.isHTML(X[""])||!re.match(/^(?:disabled|checked|selected)$/i))&&ce.warning('attribute "'+re+'" missed value!! "'+re+'" instead2!!'),se(re,re,H),H=te,ie=ee;break;case L:ce.warning('attribute space is required"'+re+'"!!');case z:ie=ee,H=te;break;case b:ie=q,H=te;break;case _:throw new Error("elements closed character '/' and '>' must be connected to")}}te++}}function S(w,H,N){for(var X=w.tagName,J=null,ce=w.length;ce--;){var se=w[ce],re=se.qName,Z=se.value,de=re.indexOf(":");if(de>0)var te=se.prefix=re.slice(0,de),ie=re.slice(de+1),we=te==="xmlns"&&ie;else ie=re,te=null,we=re==="xmlns"&&"";se.localName=ie,we!==!1&&(J==null&&(J={},g(N,N={})),N[we]=J[we]=Z,se.uri=v.XMLNS,H.startPrefixMapping(we,Z))}for(var ce=w.length;ce--;){se=w[ce];var te=se.prefix;te&&(te==="xml"&&(se.uri=v.XML),te!=="xmlns"&&(se.uri=N[te||""]))}var de=X.indexOf(":");de>0?(te=w.prefix=X.slice(0,de),ie=w.localName=X.slice(de+1)):(te=null,ie=w.localName=X);var Y=w.uri=N[te||""];if(H.startElement(Y,ie,X,w),w.closed){if(H.endElement(Y,ie,X),J)for(te in J)Object.prototype.hasOwnProperty.call(J,te)&&H.endPrefixMapping(te)}else return w.currentNSMap=N,w.localNSMap=J,!0}function m(w,H,N,X,J){if(/^(?:script|textarea)$/i.test(N)){var ce=w.indexOf("",H),se=w.substring(H+1,ce);if(/[&<]/.test(se))return/^script$/i.test(N)?(J.characters(se,0,se.length),ce):(se=se.replace(/&#?\w+;/g,X),J.characters(se,0,se.length),ce)}return H+1}function K(w,H,N,X){var J=X[N];return J==null&&(J=w.lastIndexOf(""),J",H+4);return ce>H?(N.comment(w,H+4,ce-H-4),ce+3):(X.error("Unclosed comment"),-1)}else return-1;default:if(w.substr(H+3,6)=="CDATA["){var ce=w.indexOf("]]>",H+9);return N.startCDATA(),N.characters(w,H+9,ce-H-9),N.endCDATA(),ce+3}var se=$(w,H),re=se.length;if(re>1&&/!doctype/i.test(se[0][0])){var Z=se[1][0],te=!1,ie=!1;re>3&&(/^public$/i.test(se[2][0])?(te=se[3][0],ie=re>4&&se[4][0]):/^system$/i.test(se[2][0])&&(ie=se[3][0]));var we=se[re-1];return N.startDTD(Z,te,ie),N.endDTD(),we.index+we[0].length}}return-1}function U(w,H,N){var X=w.indexOf("?>",H);if(X){var J=w.substring(H,X).match(/^<\?(\S*)\s*([\s\S]*?)\s*$/);if(J){var ce=J[0].length;return N.processingInstruction(J[1],J[2]),X+2}else return-1}return-1}function F(){this.attributeNames={}}F.prototype={setTagName:function(w){if(!k.test(w))throw new Error("invalid tagName:"+w);this.tagName=w},addValue:function(w,H,N){if(!k.test(w))throw new Error("invalid attribute:"+w);this.attributeNames[w]=this.length,this[this.length++]={qName:w,value:H,offset:N}},length:0,getLocalName:function(w){return this[w].localName},getLocator:function(w){return this[w].locator},getQName:function(w){return this[w].qName},getURI:function(w){return this[w].uri},getValue:function(w){return this[w].value}};function $(w,H){var N,X=[],J=/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;for(J.lastIndex=H,J.exec(w);N=J.exec(w);)if(X.push(N),N[1])return X}C.XMLReader=Q,C.ParseError=j},"./node_modules/process/browser.js":function(y,C){var u=y.exports={},v,T;function l(){throw new Error("setTimeout has not been defined")}function k(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?v=setTimeout:v=l}catch(M){v=l}try{typeof clearTimeout=="function"?T=clearTimeout:T=k}catch(M){T=k}})();function P(M){if(v===setTimeout)return setTimeout(M,0);if((v===l||!v)&&setTimeout)return v=setTimeout,setTimeout(M,0);try{return v(M,0)}catch(ge){try{return v.call(null,M,0)}catch(A){return v.call(this,M,0)}}}function ee(M){if(T===clearTimeout)return clearTimeout(M);if((T===k||!T)&&clearTimeout)return T=clearTimeout,clearTimeout(M);try{return T(M)}catch(ge){try{return T.call(null,M)}catch(A){return T.call(this,M)}}}var B=[],b=!1,q,L=-1;function z(){!b||!q||(b=!1,q.length?B=q.concat(B):L=-1,B.length&&_())}function _(){if(!b){var M=P(z);b=!0;for(var ge=B.length;ge;){for(q=B,B=[];++L1)for(var A=1;Ase)return oe(null,!1);if(le>1){var ye=Math.max(pe[0].Size,pe[1].Size);if(ye!==ce)return oe(null,!1)}var ve=function me(Ee){if(Ee=oe.length){de.emit("has_and_check_upload_id",Y);return}var me=oe[ve];if(!P.isInArray(Y,me)){T.removeUploadId.call(N,me),ye(ve+1);return}if(T.using[me]){ye(ve+1);return}L.call(N,{Bucket:F,Region:$,Key:w,UploadId:me,tracker:g.tracker},function(Ee,Se){!N._isRunningTask(U)||(Ee?(T.removeUploadId.call(N,me),ye(ve+1)):de.emit("upload_id_available",{UploadId:me,PartList:Se.PartList}))})};le(0)}),de.on("get_remote_upload_id_list",function(){q.call(N,{Bucket:F,Region:$,Key:w,tracker:g.tracker},function(Y,pe){if(!!N._isRunningTask(U)){if(Y)return de.emit("error",Y);var oe=P.filter(pe.UploadList,function(ve){return ve.Key===w&&(!H||ve.StorageClass.toUpperCase()===H.toUpperCase())}).reverse().map(function(ve){return ve.UploadId||ve.UploadID});if(oe.length)de.emit("seek_local_avail_upload_id",oe);else{var le=T.getFileId(g.Body,g.ChunkSize,F,w),ye;le&&(ye=T.getUploadIdList.call(N,le))&&P.each(ye,function(ve){T.removeUploadId.call(N,ve)}),de.emit("no_available_upload_id")}}})}),de.emit("get_remote_upload_id_list")}function q(g,D){var U=this,F=[],$={Bucket:g.Bucket,Region:g.Region,Prefix:g.Key,calledBySdk:g.calledBySdk||"sliceUploadFile",tracker:g.tracker},w=function H(){U.multipartList($,function(N,X){if(N)return D(N);F.push.apply(F,X.Upload||[]),X.IsTruncated==="true"?($.KeyMarker=X.NextKeyMarker,$.UploadIdMarker=X.NextUploadIdMarker,H()):D(null,{UploadList:F})})};w()}function L(g,D){var U=this,F=[],$={Bucket:g.Bucket,Region:g.Region,Key:g.Key,UploadId:g.UploadId,calledBySdk:"sliceUploadFile",tracker:g.tracker},w=function H(){U.multipartListPart($,function(N,X){if(N)return D(N);F.push.apply(F,X.Part||[]),X.IsTruncated==="true"?($.PartNumberMarker=X.NextPartNumberMarker,H()):D(null,{PartList:F})})};w()}function z(g,D){var U=this,F=g.TaskId,$=g.Bucket,w=g.Region,H=g.Key,N=g.UploadData,X=g.FileSize,J=g.SliceSize,ce=Math.min(g.AsyncLimit||U.options.ChunkParallelLimit||1,256),se=g.Body,re=Math.ceil(X/J),Z=0,te=g.ServerSideEncryption,ie=g.Headers,we=P.filter(N.PartList,function(Y){return Y.Uploaded&&(Z+=Y.PartNumber>=re&&X%J||J),!Y.Uploaded}),de=g.onProgress;l.eachLimit(we,ce,function(Y,pe){if(!!U._isRunningTask(F)){var oe=Y.PartNumber,le=Math.min(X,Y.PartNumber*J)-(Y.PartNumber-1)*J,ye=0;_.call(U,{TaskId:F,Bucket:$,Region:w,Key:H,SliceSize:J,FileSize:X,PartNumber:oe,ServerSideEncryption:te,Body:se,UploadData:N,Headers:ie,onProgress:function(me){Z+=me.loaded-ye,ye=me.loaded,de({loaded:Z,total:X})},tracker:g.tracker},function(ve,me){!U._isRunningTask(F)||(!ve&&!me.ETag&&(ve='get ETag error, please add "ETag" to CORS ExposeHeader setting.( \u83B7\u53D6ETag\u5931\u8D25\uFF0C\u8BF7\u5728CORS ExposeHeader\u8BBE\u7F6E\u4E2D\u6DFB\u52A0ETag\uFF0C\u8BF7\u53C2\u8003\u6587\u6863\uFF1Ahttps://cloud.tencent.com/document/product/436/13318 )'),ve?Z-=ye:(Z+=le-ye,Y.ETag=me.ETag),de({loaded:Z,total:X}),pe(ve||null,me))})}},function(Y){if(!!U._isRunningTask(F)){if(Y)return D(Y);D(null,{UploadId:N.UploadId,SliceList:N.PartList})}})}function _(g,D){var U=this,F=g.TaskId,$=g.Bucket,w=g.Region,H=g.Key,N=g.FileSize,X=g.Body,J=g.PartNumber*1,ce=g.SliceSize,se=g.ServerSideEncryption,re=g.UploadData,Z=g.Headers||{},te=U.options.ChunkRetryTimes+1,ie=ce*(J-1),we=ce,de=ie+ce;de>N&&(de=N,we=de-ie);var Y=["x-cos-traffic-limit","x-cos-mime-limit"],pe={};P.each(Z,function(le,ye){Y.indexOf(ye)>-1&&(pe[ye]=le)});var oe=re.PartList[J-1];l.retry(te,function(le){!U._isRunningTask(F)||P.fileSlice(X,ie,de,!0,function(ye){U.multipartUpload({TaskId:F,Bucket:$,Region:w,Key:H,ContentLength:we,PartNumber:J,UploadId:re.UploadId,ServerSideEncryption:se,Body:ye,Headers:pe,onProgress:g.onProgress,calledBySdk:"sliceUploadFile",tracker:g.tracker},function(ve,me){if(!!U._isRunningTask(F))return ve?le(ve):(oe.Uploaded=!0,le(null,me))})})},function(le,ye){if(!!U._isRunningTask(F))return D(le,ye)})}function j(g,D){var U=g.Bucket,F=g.Region,$=g.Key,w=g.UploadId,H=g.SliceList,N=this,X=this.options.ChunkRetryTimes+1,J=g.Headers,ce=H.map(function(se){return{PartNumber:se.PartNumber,ETag:se.ETag}});l.retry(X,function(se){N.multipartComplete({Bucket:U,Region:F,Key:$,UploadId:w,Parts:ce,Headers:J,calledBySdk:"sliceUploadFile",tracker:g.tracker},se)},function(se,re){D(se,re)})}function Q(g,D){var U=g.Bucket,F=g.Region,$=g.Key,w=g.UploadId,H=g.Level||"task",N=g.AsyncLimit,X=this,J=new k;if(J.on("error",function(ce){return D(ce)}),J.on("get_abort_array",function(ce){M.call(X,{Bucket:U,Region:F,Key:$,Headers:g.Headers,AsyncLimit:N,AbortArray:ce},D)}),H==="bucket")q.call(X,{Bucket:U,Region:F,calledBySdk:"abortUploadTask"},function(ce,se){if(ce)return D(ce);J.emit("get_abort_array",se.UploadList||[])});else if(H==="file"){if(!$)return D(P.error(new Error("abort_upload_task_no_key")));q.call(X,{Bucket:U,Region:F,Key:$,calledBySdk:"abortUploadTask"},function(ce,se){if(ce)return D(ce);J.emit("get_abort_array",se.UploadList||[])})}else if(H==="task"){if(!w)return D(P.error(new Error("abort_upload_task_no_id")));if(!$)return D(P.error(new Error("abort_upload_task_no_key")));J.emit("get_abort_array",[{Key:$,UploadId:w}])}else return D(P.error(new Error("abort_unknown_level")))}function M(g,D){var U=g.Bucket,F=g.Region,$=g.Key,w=g.AbortArray,H=g.AsyncLimit||1,N=this,X=0,J=new Array(w.length);l.eachLimit(w,H,function(ce,se){var re=X;if($&&$!==ce.Key){J[re]={error:{KeyNotMatch:!0}},se(null);return}var Z=ce.UploadId||ce.UploadID;N.multipartAbort({Bucket:U,Region:F,Key:ce.Key,Headers:g.Headers,UploadId:Z},function(te){var ie={Bucket:U,Region:F,Key:ce.Key,UploadId:Z};J[re]={error:te,task:ie},se(null)}),X++},function(ce){if(ce)return D(ce);for(var se=[],re=[],Z=0,te=J.length;ZF?"sliceUploadFile":"putObject",re=g.onFileFinish,Z=function(ie,we){g.tracker&&g.tracker.formatResult(ie,we),re&&re(ie,we,N),D&&D(ie,we)};$.push({api:se,params:g,callback:Z}),U._addTasks($)}function A(g,D){var U=this,F=g.SliceSize===void 0?U.options.SliceSize:g.SliceSize,$=0,w=0,H=P.throttleOnProgress.call(U,w,g.onProgress),N=g.files.length,X=g.onFileFinish,J=Array(N),ce=function(Z,te,ie){H(null,!0),X&&X(Z,te,ie),J[ie.Index]={options:ie,error:Z,data:te},--N<=0&&D&&D(null,{files:J})},se=[];P.each(g.files,function(re,Z){(function(){var te=re.Body,ie=te.size||te.length||0,we={Index:Z,TaskId:""};if($+=ie,U.options.EnableTracker){var de=U.options.UseAccelerate||typeof U.options.Domain=="string"&&U.options.Domain.includes("accelerate.");re.tracker=new ee({bucket:re.Bucket,region:re.Region,apiName:"uploadFiles",fileKey:re.Key,fileSize:ie,accelerate:de,deepTracker:U.options.DeepTracker,customId:U.options.CustomId,delay:U.options.TrackerDelay})}P.each(re,function(Se,be){v(Se)!=="object"&&typeof Se!="function"&&(we[be]=Se)});var Y=re.onTaskReady,pe=function(be){we.TaskId=be,Y&&Y(be)};re.onTaskReady=pe;var oe=0,le=re.onProgress,ye=function(be){w=w-oe+be.loaded,oe=be.loaded,le&&le(be),H({loaded:w,total:$})};re.onProgress=ye;var ve=ie>F?"sliceUploadFile":"putObject",me=re.onFileFinish,Ee=function(be,Ae){re.tracker&&re.tracker.formatResult(be,Ae),me&&me(be,Ae),ce&&ce(be,Ae,we)};se.push({api:ve,params:re,callback:Ee})})()}),U._addTasks(se)}function S(g,D){var U=new k,F=this,$=g.Bucket,w=g.Region,H=g.Key,N=g.CopySource,X=P.getSourceParams.call(this,N);if(!X){D(P.error(new Error("CopySource format error")));return}var J=X.Bucket,ce=X.Region,se=decodeURIComponent(X.Key),re=g.CopySliceSize===void 0?F.options.CopySliceSize:g.CopySliceSize;re=Math.max(0,re);var Z=g.CopyChunkSize||this.options.CopyChunkSize,te=this.options.CopyChunkParallelLimit,ie=this.options.ChunkRetryTimes+1,we=0,de=0,Y,pe,oe={},le={},ye={};U.on("copy_slice_complete",function(ve){var me={};P.each(g.Headers,function(Se,be){be.toLowerCase().indexOf("x-cos-meta-")===0&&(me[be]=Se)});var Ee=P.map(ve.PartList,function(Se){return{PartNumber:Se.PartNumber,ETag:Se.ETag}});l.retry(ie,function(Se){F.multipartComplete({Bucket:$,Region:w,Key:H,UploadId:ve.UploadId,Parts:Ee,calledBySdk:"sliceCopyFile"},Se)},function(Se,be){if(T.removeUsing(ve.UploadId),Se)return pe(null,!0),D(Se);T.removeUploadId(ve.UploadId),pe({loaded:Y,total:Y},!0),D(null,be)})}),U.on("get_copy_data_finish",function(ve){var me=T.getCopyFileId(N,oe,Z,$,H);me&&T.saveUploadId(me,ve.UploadId,F.options.UploadIdCacheLimit),T.setUsing(ve.UploadId);var Ee=P.filter(ve.PartList,function(Se){return Se.Uploaded&&(de+=Se.PartNumber>=we&&Y%Z||Z),!Se.Uploaded});l.eachLimit(Ee,te,function(Se,be){var Ae=Se.PartNumber,V=Se.CopySourceRange,x=Se.end-Se.start;l.retry(ie,function(I){m.call(F,{Bucket:$,Region:w,Key:H,CopySource:N,UploadId:ve.UploadId,PartNumber:Ae,CopySourceRange:V},I)},function(I,d){if(I)return be(I);de+=x,pe({loaded:de,total:Y}),Se.ETag=d.ETag,be(I||null,d)})},function(Se){if(Se)return T.removeUsing(ve.UploadId),pe(null,!0),D(Se);U.emit("copy_slice_complete",ve)})}),U.on("get_chunk_size_finish",function(){var ve=function(){F.multipartInit({Bucket:$,Region:w,Key:H,Headers:ye},function(Ae,V){if(Ae)return D(Ae);g.UploadId=V.UploadId,U.emit("get_copy_data_finish",{UploadId:g.UploadId,PartList:g.PartList})})},me=T.getCopyFileId(N,oe,Z,$,H),Ee=T.getUploadIdList(me);if(!me||!Ee)return ve();var Se=function be(Ae){if(Ae>=Ee.length)return ve();var V=Ee[Ae];if(T.using[V])return be(Ae+1);L.call(F,{Bucket:$,Region:w,Key:H,UploadId:V},function(x,I){if(x)T.removeUploadId(V),be(Ae+1);else{if(T.using[V])return be(Ae+1);var d={},i=0;P.each(I.PartList,function(a){var s=parseInt(a.Size),p=i+s-1;d[a.PartNumber+"|"+i+"|"+p]=a.ETag,i+=s}),P.each(g.PartList,function(a){var s=d[a.PartNumber+"|"+a.start+"|"+a.end];s&&(a.ETag=s,a.Uploaded=!0)}),U.emit("get_copy_data_finish",{UploadId:V,PartList:g.PartList})}})};Se(0)}),U.on("get_file_size_finish",function(){if(function(){for(var me=[1,2,4,8,16,32,64,128,256,512,1024,1024*2,1024*4,1024*5],Ee=1024*1024,Se=0;SeAe.length&&(le[be]=Se)}),U.emit("get_file_size_finish")}})}function m(g,D){var U=g.TaskId,F=g.Bucket,$=g.Region,w=g.Key,H=g.CopySource,N=g.UploadId,X=g.PartNumber*1,J=g.CopySourceRange,ce=this.options.ChunkRetryTimes+1,se=this;l.retry(ce,function(re){se.uploadPartCopy({TaskId:U,Bucket:F,Region:$,Key:w,CopySource:H,UploadId:N,PartNumber:X,CopySourceRange:J},function(Z,te){re(Z||null,te)})},function(re,Z){return D(re,Z)})}var K={sliceUploadFile:B,abortUploadTask:Q,uploadFile:ge,uploadFiles:A,sliceCopyFile:S};y.exports.init=function(g,D){D.transferToTaskMethod(K,"sliceUploadFile"),P.each(K,function(U,F){g.prototype[F]=P.apiWrapper(F,U)})}},"./src/async.js":function(y,C){var u=function(k,P,ee,B){if(B=B||function(){},!k.length||P<=0)return B();var b=0,q=0,L=0;(function z(){if(b>=k.length)return B();for(;L=k.length?B():z())})})()},v=function(k,P,ee){var B=function b(q){P(function(L,z){L&&q/ig,"<$1Rule>"),c=c.replace(/<(\/?)Tags>/ig,"<$1Tag>");var t=e.Headers;t["Content-Type"]="application/xml",t["Content-MD5"]=l.binaryBase64(l.md5(c)),he.call(this,{Action:"name/cos:PutBucketReplication",method:"PUT",Bucket:e.Bucket,Region:e.Region,body:c,action:"replication",headers:t},function(n,r){if(n&&n.statusCode===204)return f(null,{statusCode:n.statusCode});if(n)return f(n);f(null,{statusCode:r.statusCode,headers:r.headers})})}function H(e,f){he.call(this,{Action:"name/cos:GetBucketReplication",method:"GET",Bucket:e.Bucket,Region:e.Region,headers:e.Headers,action:"replication"},function(o,c){if(o){if(o.statusCode===404&&o.error&&(o.error==="Not Found"||o.error.Code==="ReplicationConfigurationnotFoundError")){var t={ReplicationConfiguration:{Rules:[]},statusCode:o.statusCode};o.headers&&(t.headers=o.headers),f(null,t)}else f(o);return}!c.ReplicationConfiguration&&(c.ReplicationConfiguration={}),c.ReplicationConfiguration.Rule&&(c.ReplicationConfiguration.Rules=l.makeArray(c.ReplicationConfiguration.Rule),delete c.ReplicationConfiguration.Rule),f(o,c)})}function N(e,f){he.call(this,{Action:"name/cos:DeleteBucketReplication",method:"DELETE",Bucket:e.Bucket,Region:e.Region,headers:e.Headers,action:"replication"},function(o,c){if(o&&o.statusCode===204)return f(null,{statusCode:o.statusCode});if(o)return f(o);f(null,{statusCode:c.statusCode,headers:c.headers})})}function X(e,f){if(!e.WebsiteConfiguration){f(l.error(new Error("missing param WebsiteConfiguration")));return}var o=l.clone(e.WebsiteConfiguration||{}),c=o.RoutingRules||o.RoutingRule||[];c=l.isArray(c)?c:[c],delete o.RoutingRule,delete o.RoutingRules,c.length&&(o.RoutingRules={RoutingRule:c});var t=l.json2xml({WebsiteConfiguration:o}),n=e.Headers;n["Content-Type"]="application/xml",n["Content-MD5"]=l.binaryBase64(l.md5(t)),he.call(this,{Action:"name/cos:PutBucketWebsite",method:"PUT",Bucket:e.Bucket,Region:e.Region,body:t,action:"website",headers:n},function(r,h){if(r&&r.statusCode===204)return f(null,{statusCode:r.statusCode});if(r)return f(r);f(null,{statusCode:h.statusCode,headers:h.headers})})}function J(e,f){he.call(this,{Action:"name/cos:GetBucketWebsite",method:"GET",Bucket:e.Bucket,Region:e.Region,Key:e.Key,headers:e.Headers,action:"website"},function(o,c){if(o){if(o.statusCode===404&&o.error.Code==="NoSuchWebsiteConfiguration"){var t={WebsiteConfiguration:{},statusCode:o.statusCode};o.headers&&(t.headers=o.headers),f(null,t)}else f(o);return}var n=c.WebsiteConfiguration||{};if(n.RoutingRules){var r=l.clone(n.RoutingRules.RoutingRule||[]);r=l.makeArray(r),n.RoutingRules=r}f(null,{WebsiteConfiguration:n,statusCode:c.statusCode,headers:c.headers})})}function ce(e,f){he.call(this,{Action:"name/cos:DeleteBucketWebsite",method:"DELETE",Bucket:e.Bucket,Region:e.Region,headers:e.Headers,action:"website"},function(o,c){if(o&&o.statusCode===204)return f(null,{statusCode:o.statusCode});if(o)return f(o);f(null,{statusCode:c.statusCode,headers:c.headers})})}function se(e,f){if(!e.RefererConfiguration){f(l.error(new Error("missing param RefererConfiguration")));return}var o=l.clone(e.RefererConfiguration||{}),c=o.DomainList||{},t=c.Domains||c.Domain||[];t=l.isArray(t)?t:[t],t.length&&(o.DomainList={Domain:t});var n=l.json2xml({RefererConfiguration:o}),r=e.Headers;r["Content-Type"]="application/xml",r["Content-MD5"]=l.binaryBase64(l.md5(n)),he.call(this,{Action:"name/cos:PutBucketReferer",method:"PUT",Bucket:e.Bucket,Region:e.Region,body:n,action:"referer",headers:r},function(h,E){if(h&&h.statusCode===204)return f(null,{statusCode:h.statusCode});if(h)return f(h);f(null,{statusCode:E.statusCode,headers:E.headers})})}function re(e,f){he.call(this,{Action:"name/cos:GetBucketReferer",method:"GET",Bucket:e.Bucket,Region:e.Region,Key:e.Key,headers:e.Headers,action:"referer"},function(o,c){if(o){if(o.statusCode===404&&o.error.Code==="NoSuchRefererConfiguration"){var t={WebsiteConfiguration:{},statusCode:o.statusCode};o.headers&&(t.headers=o.headers),f(null,t)}else f(o);return}var n=c.RefererConfiguration||{};if(n.DomainList){var r=l.makeArray(n.DomainList.Domain||[]);n.DomainList={Domains:r}}f(null,{RefererConfiguration:n,statusCode:c.statusCode,headers:c.headers})})}function Z(e,f){var o=e.DomainConfiguration||{},c=o.DomainRule||e.DomainRule||[];c=l.clone(c);var t=l.json2xml({DomainConfiguration:{DomainRule:c}}),n=e.Headers;n["Content-Type"]="application/xml",n["Content-MD5"]=l.binaryBase64(l.md5(t)),he.call(this,{Action:"name/cos:PutBucketDomain",method:"PUT",Bucket:e.Bucket,Region:e.Region,body:t,action:"domain",headers:n},function(r,h){if(r&&r.statusCode===204)return f(null,{statusCode:r.statusCode});if(r)return f(r);f(null,{statusCode:h.statusCode,headers:h.headers})})}function te(e,f){he.call(this,{Action:"name/cos:GetBucketDomain",method:"GET",Bucket:e.Bucket,Region:e.Region,headers:e.Headers,action:"domain"},function(o,c){if(o)return f(o);var t=[];try{t=c.DomainConfiguration.DomainRule||[]}catch(n){}t=l.clone(l.isArray(t)?t:[t]),f(null,{DomainRule:t,statusCode:c.statusCode,headers:c.headers})})}function ie(e,f){he.call(this,{Action:"name/cos:DeleteBucketDomain",method:"DELETE",Bucket:e.Bucket,Region:e.Region,headers:e.Headers,action:"domain"},function(o,c){if(o&&o.statusCode===204)return f(null,{statusCode:o.statusCode});if(o)return f(o);f(null,{statusCode:c.statusCode,headers:c.headers})})}function we(e,f){var o=e.OriginConfiguration||{},c=o.OriginRule||e.OriginRule||[];c=l.clone(c);var t=l.json2xml({OriginConfiguration:{OriginRule:c}}),n=e.Headers;n["Content-Type"]="application/xml",n["Content-MD5"]=l.binaryBase64(l.md5(t)),he.call(this,{Action:"name/cos:PutBucketOrigin",method:"PUT",Bucket:e.Bucket,Region:e.Region,body:t,action:"origin",headers:n},function(r,h){if(r&&r.statusCode===204)return f(null,{statusCode:r.statusCode});if(r)return f(r);f(null,{statusCode:h.statusCode,headers:h.headers})})}function de(e,f){he.call(this,{Action:"name/cos:GetBucketOrigin",method:"GET",Bucket:e.Bucket,Region:e.Region,headers:e.Headers,action:"origin"},function(o,c){if(o)return f(o);var t=[];try{t=c.OriginConfiguration.OriginRule||[]}catch(n){}t=l.clone(l.isArray(t)?t:[t]),f(null,{OriginRule:t,statusCode:c.statusCode,headers:c.headers})})}function Y(e,f){he.call(this,{Action:"name/cos:DeleteBucketOrigin",method:"DELETE",Bucket:e.Bucket,Region:e.Region,headers:e.Headers,action:"origin"},function(o,c){if(o&&o.statusCode===204)return f(null,{statusCode:o.statusCode});if(o)return f(o);f(null,{statusCode:c.statusCode,headers:c.headers})})}function pe(e,f){var o=l.json2xml({BucketLoggingStatus:e.BucketLoggingStatus||""}),c=e.Headers;c["Content-Type"]="application/xml",c["Content-MD5"]=l.binaryBase64(l.md5(o)),he.call(this,{Action:"name/cos:PutBucketLogging",method:"PUT",Bucket:e.Bucket,Region:e.Region,body:o,action:"logging",headers:c},function(t,n){if(t&&t.statusCode===204)return f(null,{statusCode:t.statusCode});if(t)return f(t);f(null,{statusCode:n.statusCode,headers:n.headers})})}function oe(e,f){he.call(this,{Action:"name/cos:GetBucketLogging",method:"GET",Bucket:e.Bucket,Region:e.Region,headers:e.Headers,action:"logging"},function(o,c){if(o)return f(o);f(null,{BucketLoggingStatus:c.BucketLoggingStatus,statusCode:c.statusCode,headers:c.headers})})}function le(e,f){var o=l.clone(e.InventoryConfiguration);if(o.OptionalFields){var c=o.OptionalFields||[];o.OptionalFields={Field:c}}if(o.Destination&&o.Destination.COSBucketDestination&&o.Destination.COSBucketDestination.Encryption){var t=o.Destination.COSBucketDestination.Encryption;Object.keys(t).indexOf("SSECOS")>-1&&(t["SSE-COS"]=t.SSECOS,delete t.SSECOS)}var n=l.json2xml({InventoryConfiguration:o}),r=e.Headers;r["Content-Type"]="application/xml",r["Content-MD5"]=l.binaryBase64(l.md5(n)),he.call(this,{Action:"name/cos:PutBucketInventory",method:"PUT",Bucket:e.Bucket,Region:e.Region,body:n,action:"inventory",qs:{id:e.Id},headers:r},function(h,E){if(h&&h.statusCode===204)return f(null,{statusCode:h.statusCode});if(h)return f(h);f(null,{statusCode:E.statusCode,headers:E.headers})})}function ye(e,f){he.call(this,{Action:"name/cos:GetBucketInventory",method:"GET",Bucket:e.Bucket,Region:e.Region,headers:e.Headers,action:"inventory",qs:{id:e.Id}},function(o,c){if(o)return f(o);var t=c.InventoryConfiguration;if(t&&t.OptionalFields&&t.OptionalFields.Field){var n=t.OptionalFields.Field;l.isArray(n)||(n=[n]),t.OptionalFields=n}if(t.Destination&&t.Destination.COSBucketDestination&&t.Destination.COSBucketDestination.Encryption){var r=t.Destination.COSBucketDestination.Encryption;Object.keys(r).indexOf("SSE-COS")>-1&&(r.SSECOS=r["SSE-COS"],delete r["SSE-COS"])}f(null,{InventoryConfiguration:t,statusCode:c.statusCode,headers:c.headers})})}function ve(e,f){he.call(this,{Action:"name/cos:ListBucketInventory",method:"GET",Bucket:e.Bucket,Region:e.Region,headers:e.Headers,action:"inventory",qs:{"continuation-token":e.ContinuationToken}},function(o,c){if(o)return f(o);var t=c.ListInventoryConfigurationResult,n=t.InventoryConfiguration||[];n=l.isArray(n)?n:[n],delete t.InventoryConfiguration,l.each(n,function(r){if(r&&r.OptionalFields&&r.OptionalFields.Field){var h=r.OptionalFields.Field;l.isArray(h)||(h=[h]),r.OptionalFields=h}if(r.Destination&&r.Destination.COSBucketDestination&&r.Destination.COSBucketDestination.Encryption){var E=r.Destination.COSBucketDestination.Encryption;Object.keys(E).indexOf("SSE-COS")>-1&&(E.SSECOS=E["SSE-COS"],delete E["SSE-COS"])}}),t.InventoryConfigurations=n,l.extend(t,{statusCode:c.statusCode,headers:c.headers}),f(null,t)})}function me(e,f){he.call(this,{Action:"name/cos:DeleteBucketInventory",method:"DELETE",Bucket:e.Bucket,Region:e.Region,headers:e.Headers,action:"inventory",qs:{id:e.Id}},function(o,c){if(o&&o.statusCode===204)return f(null,{statusCode:o.statusCode});if(o)return f(o);f(null,{statusCode:c.statusCode,headers:c.headers})})}function Ee(e,f){if(!e.AccelerateConfiguration){f(l.error(new Error("missing param AccelerateConfiguration")));return}var o={AccelerateConfiguration:e.AccelerateConfiguration||{}},c=l.json2xml(o),t={};t["Content-Type"]="application/xml",t["Content-MD5"]=l.binaryBase64(l.md5(c)),he.call(this,{Action:"name/cos:PutBucketAccelerate",method:"PUT",Bucket:e.Bucket,Region:e.Region,body:c,action:"accelerate",headers:t},function(n,r){if(n)return f(n);f(null,{statusCode:r.statusCode,headers:r.headers})})}function Se(e,f){he.call(this,{Action:"name/cos:GetBucketAccelerate",method:"GET",Bucket:e.Bucket,Region:e.Region,action:"accelerate"},function(o,c){o||!c.AccelerateConfiguration&&(c.AccelerateConfiguration={}),f(o,c)})}function be(e,f){var o=e.ServerSideEncryptionConfiguration||{},c=o.Rule||o.Rules||[],t=l.json2xml({ServerSideEncryptionConfiguration:{Rule:c}}),n=e.Headers;n["Content-Type"]="application/xml",n["Content-MD5"]=l.binaryBase64(l.md5(t)),he.call(this,{Action:"name/cos:PutBucketEncryption",method:"PUT",Bucket:e.Bucket,Region:e.Region,body:t,action:"encryption",headers:n},function(r,h){if(r&&r.statusCode===204)return f(null,{statusCode:r.statusCode});if(r)return f(r);f(null,{statusCode:h.statusCode,headers:h.headers})})}function Ae(e,f){he.call(this,{Action:"name/cos:GetBucketEncryption",method:"GET",Bucket:e.Bucket,Region:e.Region,headers:e.Headers,action:"encryption"},function(o,c){if(o){if(o.statusCode===404&&o.code==="NoSuchEncryptionConfiguration"){var t={EncryptionConfiguration:{Rules:[]},statusCode:o.statusCode};o.headers&&(t.headers=o.headers),f(null,t)}else f(o);return}var n=l.makeArray(c.EncryptionConfiguration&&c.EncryptionConfiguration.Rule||[]);c.EncryptionConfiguration={Rules:n},f(o,c)})}function V(e,f){he.call(this,{Action:"name/cos:DeleteBucketReplication",method:"DELETE",Bucket:e.Bucket,Region:e.Region,headers:e.Headers,action:"encryption"},function(o,c){if(o&&o.statusCode===204)return f(null,{statusCode:o.statusCode});if(o)return f(o);f(null,{statusCode:c.statusCode,headers:c.headers})})}function x(e,f){he.call(this,{Action:"name/cos:HeadObject",method:"HEAD",Bucket:e.Bucket,Region:e.Region,Key:e.Key,VersionId:e.VersionId,headers:e.Headers},function(o,c){if(o){var t=o.statusCode;return e.Headers["If-Modified-Since"]&&t&&t===304?f(null,{NotModified:!0,statusCode:t}):f(o)}c.ETag=l.attr(c.headers,"etag",""),f(null,c)})}function I(e,f){var o={};o.prefix=e.Prefix||"",o.delimiter=e.Delimiter,o["key-marker"]=e.KeyMarker,o["version-id-marker"]=e.VersionIdMarker,o["max-keys"]=e.MaxKeys,o["encoding-type"]=e.EncodingType,he.call(this,{Action:"name/cos:GetBucketObjectVersions",ResourceKey:o.prefix,method:"GET",Bucket:e.Bucket,Region:e.Region,headers:e.Headers,qs:o,action:"versions"},function(c,t){if(c)return f(c);var n=t.ListVersionsResult||{},r=n.DeleteMarker||[];r=l.isArray(r)?r:[r];var h=n.Version||[];h=l.isArray(h)?h:[h];var E=l.clone(n);delete E.DeleteMarker,delete E.Version,l.extend(E,{DeleteMarkers:r,Versions:h,statusCode:t.statusCode,headers:t.headers}),f(null,E)})}function d(e,f){var o=e.Query||{},c=e.QueryString||"",t=l.throttleOnProgress.call(this,0,e.onProgress),n=e.tracker;n&&n.setParams({signStartTime:new Date().getTime()}),o["response-content-type"]=e.ResponseContentType,o["response-content-language"]=e.ResponseContentLanguage,o["response-expires"]=e.ResponseExpires,o["response-cache-control"]=e.ResponseCacheControl,o["response-content-disposition"]=e.ResponseContentDisposition,o["response-content-encoding"]=e.ResponseContentEncoding,he.call(this,{Action:"name/cos:GetObject",method:"GET",Bucket:e.Bucket,Region:e.Region,Key:e.Key,VersionId:e.VersionId,DataType:e.DataType,headers:e.Headers,qs:o,qsStr:c,rawBody:!0,onDownloadProgress:t,tracker:n},function(r,h){if(t(null,!0),r){var E=r.statusCode;return e.Headers["If-Modified-Since"]&&E&&E===304?f(null,{NotModified:!0}):f(r)}f(null,{Body:h.body,ETag:l.attr(h.headers,"etag",""),statusCode:h.statusCode,headers:h.headers})})}function i(e,f){var o=this,c=e.ContentLength,t=l.throttleOnProgress.call(o,c,e.onProgress),n=e.Headers;!n["Cache-Control"]&&!n["cache-control"]&&(n["Cache-Control"]=""),!n["Content-Type"]&&!n["content-type"]&&(n["Content-Type"]=e.Body&&e.Body.type||"");var r=e.UploadAddMetaMd5||o.options.UploadAddMetaMd5||o.options.UploadCheckContentMd5,h=e.tracker;r&&h&&h.setParams({md5StartTime:new Date().getTime()}),l.getBodyMd5(r,e.Body,function(E){E&&(h&&h.setParams({md5EndTime:new Date().getTime()}),o.options.UploadCheckContentMd5&&(n["Content-MD5"]=l.binaryBase64(E)),(e.UploadAddMetaMd5||o.options.UploadAddMetaMd5)&&(n["x-cos-meta-md5"]=E)),e.ContentLength!==void 0&&(n["Content-Length"]=e.ContentLength),t(null,!0),he.call(o,{Action:"name/cos:PutObject",TaskId:e.TaskId,method:"PUT",Bucket:e.Bucket,Region:e.Region,Key:e.Key,headers:e.Headers,qs:e.Query,body:e.Body,onProgress:t,tracker:h},function(ne,fe){if(ne)return t(null,!0),f(ne);t({loaded:c,total:c},!0);var ue=Ve({ForcePathStyle:o.options.ForcePathStyle,protocol:o.options.Protocol,domain:o.options.Domain,bucket:e.Bucket,region:o.options.UseAccelerate?"accelerate":e.Region,object:e.Key});ue=ue.substr(ue.indexOf("://")+3),fe.Location=ue,fe.ETag=l.attr(fe.headers,"etag",""),f(null,fe)})},e.onHashProgress)}function a(e,f){he.call(this,{Action:"name/cos:DeleteObject",method:"DELETE",Bucket:e.Bucket,Region:e.Region,Key:e.Key,headers:e.Headers,VersionId:e.VersionId,action:e.Recursive?"recursive":""},function(o,c){if(o){var t=o.statusCode;return t&&t===404?f(null,{BucketNotFound:!0,statusCode:t}):f(o)}f(null,{statusCode:c.statusCode,headers:c.headers})})}function s(e,f){var o={};e.VersionId&&(o.versionId=e.VersionId),he.call(this,{Action:"name/cos:GetObjectACL",method:"GET",Bucket:e.Bucket,Region:e.Region,Key:e.Key,headers:e.Headers,qs:o,action:"acl"},function(c,t){if(c)return f(c);var n=t.AccessControlPolicy||{},r=n.Owner||{},h=n.AccessControlList&&n.AccessControlList.Grant||[];h=l.isArray(h)?h:[h];var E=Qe(n);delete E.GrantWrite,t.headers&&t.headers["x-cos-acl"]&&(E.ACL=t.headers["x-cos-acl"]),E=l.extend(E,{Owner:r,Grants:h,statusCode:t.statusCode,headers:t.headers}),f(null,E)})}function p(e,f){var o=e.Headers,c="";if(e.AccessControlPolicy){var t=l.clone(e.AccessControlPolicy||{}),n=t.Grants||t.Grant;n=l.isArray(n)?n:[n],delete t.Grant,delete t.Grants,t.AccessControlList={Grant:n},c=l.json2xml({AccessControlPolicy:t}),o["Content-Type"]="application/xml",o["Content-MD5"]=l.binaryBase64(l.md5(c))}l.each(o,function(r,h){h.indexOf("x-cos-grant-")===0&&(o[h]=Ze(o[h]))}),he.call(this,{Action:"name/cos:PutObjectACL",method:"PUT",Bucket:e.Bucket,Region:e.Region,Key:e.Key,action:"acl",headers:o,body:c},function(r,h){if(r)return f(r);f(null,{statusCode:h.statusCode,headers:h.headers})})}function R(e,f){var o=e.Headers;o.Origin=e.Origin,o["Access-Control-Request-Method"]=e.AccessControlRequestMethod,o["Access-Control-Request-Headers"]=e.AccessControlRequestHeaders,he.call(this,{Action:"name/cos:OptionsObject",method:"OPTIONS",Bucket:e.Bucket,Region:e.Region,Key:e.Key,headers:o},function(c,t){if(c)return c.statusCode&&c.statusCode===403?f(null,{OptionsForbidden:!0,statusCode:c.statusCode}):f(c);var n=t.headers||{};f(null,{AccessControlAllowOrigin:n["access-control-allow-origin"],AccessControlAllowMethods:n["access-control-allow-methods"],AccessControlAllowHeaders:n["access-control-allow-headers"],AccessControlExposeHeaders:n["access-control-expose-headers"],AccessControlMaxAge:n["access-control-max-age"],statusCode:t.statusCode,headers:t.headers})})}function O(e,f){var o=this,c=e.Headers;!c["Cache-Control"]&&!c["cache-control"]&&(c["Cache-Control"]="");var t=e.CopySource||"",n=l.getSourceParams.call(this,t);if(!n){f(l.error(new Error("CopySource format error")));return}var r=n.Bucket,h=n.Region,E=decodeURIComponent(n.Key);he.call(this,{Scope:[{action:"name/cos:GetObject",bucket:r,region:h,prefix:E},{action:"name/cos:PutObject",bucket:e.Bucket,region:e.Region,prefix:e.Key}],method:"PUT",Bucket:e.Bucket,Region:e.Region,Key:e.Key,VersionId:e.VersionId,headers:e.Headers},function(ne,fe){if(ne)return f(ne);var ue=l.clone(fe.CopyObjectResult||{}),Te=Ve({ForcePathStyle:o.options.ForcePathStyle,protocol:o.options.Protocol,domain:o.options.Domain,bucket:e.Bucket,region:e.Region,object:e.Key,isLocation:!0});l.extend(ue,{Location:Te,statusCode:fe.statusCode,headers:fe.headers}),f(null,ue)})}function G(e,f){var o=e.CopySource||"",c=l.getSourceParams.call(this,o);if(!c){f(l.error(new Error("CopySource format error")));return}var t=c.Bucket,n=c.Region,r=decodeURIComponent(c.Key);he.call(this,{Scope:[{action:"name/cos:GetObject",bucket:t,region:n,prefix:r},{action:"name/cos:PutObject",bucket:e.Bucket,region:e.Region,prefix:e.Key}],method:"PUT",Bucket:e.Bucket,Region:e.Region,Key:e.Key,VersionId:e.VersionId,qs:{partNumber:e.PartNumber,uploadId:e.UploadId},headers:e.Headers},function(h,E){if(h)return f(h);var ne=l.clone(E.CopyPartResult||{});l.extend(ne,{statusCode:E.statusCode,headers:E.headers}),f(null,ne)})}function ae(e,f){var o=e.Objects||[],c=e.Quiet;o=l.isArray(o)?o:[o];var t=l.json2xml({Delete:{Object:o,Quiet:c||!1}}),n=e.Headers;n["Content-Type"]="application/xml",n["Content-MD5"]=l.binaryBase64(l.md5(t));var r=l.map(o,function(h){return{action:"name/cos:DeleteObject",bucket:e.Bucket,region:e.Region,prefix:h.Key}});he.call(this,{Scope:r,method:"POST",Bucket:e.Bucket,Region:e.Region,body:t,action:"delete",headers:n},function(h,E){if(h)return f(h);var ne=E.DeleteResult||{},fe=ne.Deleted||[],ue=ne.Error||[];fe=l.isArray(fe)?fe:[fe],ue=l.isArray(ue)?ue:[ue];var Te=l.clone(ne);l.extend(Te,{Error:ue,Deleted:fe,statusCode:E.statusCode,headers:E.headers}),f(null,Te)})}function Ce(e,f){var o=e.Headers;if(!e.RestoreRequest){f(l.error(new Error("missing param RestoreRequest")));return}var c=e.RestoreRequest||{},t=l.json2xml({RestoreRequest:c});o["Content-Type"]="application/xml",o["Content-MD5"]=l.binaryBase64(l.md5(t)),he.call(this,{Action:"name/cos:RestoreObject",method:"POST",Bucket:e.Bucket,Region:e.Region,Key:e.Key,VersionId:e.VersionId,body:t,action:"restore",headers:o},f)}function W(e,f){var o=e.Tagging||{},c=o.TagSet||o.Tags||e.Tags||[];c=l.clone(l.isArray(c)?c:[c]);var t=l.json2xml({Tagging:{TagSet:{Tag:c}}}),n=e.Headers;n["Content-Type"]="application/xml",n["Content-MD5"]=l.binaryBase64(l.md5(t)),he.call(this,{Action:"name/cos:PutObjectTagging",method:"PUT",Bucket:e.Bucket,Key:e.Key,Region:e.Region,body:t,action:"tagging",headers:n,VersionId:e.VersionId},function(r,h){if(r&&r.statusCode===204)return f(null,{statusCode:r.statusCode});if(r)return f(r);f(null,{statusCode:h.statusCode,headers:h.headers})})}function Oe(e,f){he.call(this,{Action:"name/cos:GetObjectTagging",method:"GET",Key:e.Key,Bucket:e.Bucket,Region:e.Region,headers:e.Headers,action:"tagging",VersionId:e.VersionId},function(o,c){if(o){if(o.statusCode===404&&o.error&&(o.error==="Not Found"||o.error.Code==="NoSuchTagSet")){var t={Tags:[],statusCode:o.statusCode};o.headers&&(t.headers=o.headers),f(null,t)}else f(o);return}var n=[];try{n=c.Tagging.TagSet.Tag||[]}catch(r){}n=l.clone(l.isArray(n)?n:[n]),f(null,{Tags:n,statusCode:c.statusCode,headers:c.headers})})}function ke(e,f){he.call(this,{Action:"name/cos:DeleteObjectTagging",method:"DELETE",Bucket:e.Bucket,Region:e.Region,Key:e.Key,headers:e.Headers,action:"tagging",VersionId:e.VersionId},function(o,c){if(o&&o.statusCode===204)return f(null,{statusCode:o.statusCode});if(o)return f(o);f(null,{statusCode:c.statusCode,headers:c.headers})})}function Ie(e,f){var o=e.SelectType;if(!o)return f(l.error(new Error("missing param SelectType")));var c=e.SelectRequest||{},t=l.json2xml({SelectRequest:c}),n=e.Headers;n["Content-Type"]="application/xml",n["Content-MD5"]=l.binaryBase64(l.md5(t)),he.call(this,{Action:"name/cos:GetObject",method:"POST",Bucket:e.Bucket,Region:e.Region,Key:e.Key,headers:e.Headers,action:"select",qs:{"select-type":e.SelectType},VersionId:e.VersionId,body:t,DataType:"arraybuffer",rawBody:!0},function(r,h){if(r&&r.statusCode===204)return f(null,{statusCode:r.statusCode});if(r)return f(r);var E=l.parseSelectPayload(h.body);f(null,{statusCode:h.statusCode,headers:h.headers,Body:E.body,Payload:E.payload})})}function Pe(e,f){var o=this,c=e.Headers,t=e.tracker;!c["Cache-Control"]&&!c["cache-control"]&&(c["Cache-Control"]=""),!c["Content-Type"]&&!c["content-type"]&&(c["Content-Type"]=e.Body&&e.Body.type||"");var n=e.Body&&(e.UploadAddMetaMd5||o.options.UploadAddMetaMd5);n&&t&&t.setParams({md5StartTime:new Date().getTime()}),l.getBodyMd5(n,e.Body,function(r){r&&(e.Headers["x-cos-meta-md5"]=r),n&&t&&t.setParams({md5EndTime:new Date().getTime()}),he.call(o,{Action:"name/cos:InitiateMultipartUpload",method:"POST",Bucket:e.Bucket,Region:e.Region,Key:e.Key,action:"uploads",headers:e.Headers,qs:e.Query,tracker:t},function(h,E){if(h)return t&&t.parent&&t.parent.setParams({errorNode:"multipartInit"}),f(h);if(E=l.clone(E||{}),E&&E.InitiateMultipartUploadResult)return f(null,l.extend(E.InitiateMultipartUploadResult,{statusCode:E.statusCode,headers:E.headers}));f(null,E)})},e.onHashProgress)}function Me(e,f){var o=this;l.getFileSize("multipartUpload",e,function(){var c=e.tracker,t=o.options.UploadCheckContentMd5;t&&c&&c.setParams({md5StartTime:new Date().getTime()}),l.getBodyMd5(t,e.Body,function(n){n&&(e.Headers["Content-MD5"]=l.binaryBase64(n)),t&&c&&c.setParams({md5EndTime:new Date().getTime()}),c&&c.setParams({partNumber:e.PartNumber}),he.call(o,{Action:"name/cos:UploadPart",TaskId:e.TaskId,method:"PUT",Bucket:e.Bucket,Region:e.Region,Key:e.Key,qs:{partNumber:e.PartNumber,uploadId:e.UploadId},headers:e.Headers,onProgress:e.onProgress,body:e.Body||null,tracker:c},function(r,h){if(r)return c&&c.parent&&c.parent.setParams({errorNode:"multipartUpload"}),f(r);f(null,{ETag:l.attr(h.headers,"etag",""),statusCode:h.statusCode,headers:h.headers})})})})}function Ge(e,f){for(var o=this,c=e.UploadId,t=e.Parts,n=e.tracker,r=0,h=t.length;r-1?ue(fe.Authorization):"sign="+encodeURIComponent(fe.Authorization)),fe.SecurityToken&&(Te+="&x-cos-security-token="+fe.SecurityToken),fe.ClientIP&&(Te+="&clientIP="+fe.ClientIP),fe.ClientUA&&(Te+="&clientUA="+fe.ClientUA),fe.Token&&(Te+="&token="+fe.Token),n&&(Te+="&"+n),setTimeout(function(){f(null,{Url:Te})})}});return E?(r+="?"+E.Authorization+(E.SecurityToken?"&x-cos-security-token="+E.SecurityToken:""),n&&(r+="&"+n)):n&&(r+="?"+n),r}function Qe(e){var f={GrantFullControl:[],GrantWrite:[],GrantRead:[],GrantReadAcp:[],GrantWriteAcp:[],ACL:""},o={FULL_CONTROL:"GrantFullControl",WRITE:"GrantWrite",READ:"GrantRead",READ_ACP:"GrantReadAcp",WRITE_ACP:"GrantWriteAcp"},c=e&&e.AccessControlList||{},t=c.Grant;t&&(t=l.isArray(t)?t:[t]);var n={READ:0,WRITE:0,FULL_CONTROL:0};return t&&t.length&&l.each(t,function(r){r.Grantee.ID==="qcs::cam::anyone:anyone"||r.Grantee.URI==="http://cam.qcloud.com/groups/global/AllUsers"?n[r.Permission]=1:r.Grantee.ID!==e.Owner.ID&&f[o[r.Permission]].push('id="'+r.Grantee.ID+'"')}),n.FULL_CONTROL||n.WRITE&&n.READ?f.ACL="public-read-write":n.READ?f.ACL="public-read":f.ACL="private",l.each(o,function(r){f[r]=Ze(f[r].join(","))}),f}function Ze(e){var f=e.split(","),o={},c,t;for(c=0;c-1?n="{Region}.myqcloud.com":n="cos.{Region}.myqcloud.com",e.ForcePathStyle||(n="{Bucket}."+n)),n=n.replace(/\{\{AppId\}\}/ig,t).replace(/\{\{Bucket\}\}/ig,c).replace(/\{\{Region\}\}/ig,f).replace(/\{\{.*?\}\}/ig,""),n=n.replace(/\{AppId\}/ig,t).replace(/\{BucketName\}/ig,c).replace(/\{Bucket\}/ig,o).replace(/\{Region\}/ig,f).replace(/\{.*?\}/ig,""),/^[a-zA-Z]+:\/\//.test(n)||(n=h+"//"+n),n.slice(-1)==="/"&&(n=n.slice(0,-1));var E=n;return e.ForcePathStyle&&(E+="/"+o),E+="/",r&&(E+=l.camSafeUrlEncode(r).replace(/%2F/g,"/")),e.isLocation&&(E=E.replace(/^https?:\/\//,"")),E}var Je=function(f){if(!f.Bucket||!f.Region)return"";var o=f.UseAccelerate===void 0?this.options.UseAccelerate:f.UseAccelerate,c=f.Url||Ve({ForcePathStyle:this.options.ForcePathStyle,protocol:this.options.Protocol,domain:this.options.Domain,bucket:f.Bucket,region:o?"accelerate":f.Region}),t=c.replace(/^https?:\/\/([^/]+)(\/.*)?$/,"$1"),n=new RegExp("^([a-z\\d-]+-\\d+\\.)?(cos|cosv6|ci|pic)\\.([a-z\\d-]+)\\.myqcloud\\.com$");return n.test(t)?t:""};function $e(e,f){var o=l.clone(e.Headers),c="";l.each(o,function(xe,Re){(xe===""||["content-type","cache-control","expires"].indexOf(Re.toLowerCase())>-1)&&delete o[Re],Re.toLowerCase()==="host"&&(c=xe)});var t=e.ForceSignHost!==!1;!c&&e.SignHost&&t&&(o.Host=e.SignHost);var n=!1,r=function(Re,_e){n||(n=!0,_e&&_e.XCosSecurityToken&&!_e.SecurityToken&&(_e=l.clone(_e),_e.SecurityToken=_e.XCosSecurityToken,delete _e.XCosSecurityToken),f&&f(Re,_e))},h=this,E=e.Bucket||"",ne=e.Region||"",fe=e.Key||"";h.options.ForcePathStyle&&E&&(fe=E+"/"+fe);var ue="/"+fe,Te={},Be=e.Scope;if(!Be){var Ue=e.Action||"",We=e.ResourceKey||e.Key||"";Be=e.Scope||[{action:Ue,bucket:E,region:ne,prefix:We}]}var He=l.md5(JSON.stringify(Be));h._StsCache=h._StsCache||[],function(){var xe,Re;for(xe=h._StsCache.length-1;xe>=0;xe--){Re=h._StsCache[xe];var _e=Math.round(l.getSkewTime(h.options.SystemClockOffset)/1e3)+30;if(Re.StartTime&&_e=Re.ExpiredTime){h._StsCache.splice(xe,1);continue}if(!Re.ScopeLimit||Re.ScopeLimit&&Re.ScopeKey===He){Te=Re;break}}}();var Le=function(){var Re="";Te.StartTime&&e.Expires?Re=Te.StartTime+";"+(Te.StartTime+e.Expires*1):Te.StartTime&&Te.ExpiredTime&&(Re=Te.StartTime+";"+Te.ExpiredTime);var _e=l.getAuth({SecretId:Te.TmpSecretId,SecretKey:Te.TmpSecretKey,Method:e.Method,Pathname:ue,Query:e.Query,Headers:o,Expires:e.Expires,UseRawKey:h.options.UseRawKey,SystemClockOffset:h.options.SystemClockOffset,KeyTime:Re,ForceSignHost:t}),De={Authorization:_e,SecurityToken:Te.SecurityToken||Te.XCosSecurityToken||"",Token:Te.Token||"",ClientIP:Te.ClientIP||"",ClientUA:Te.ClientUA||""};r(null,De)},qe=function(Re){if(Re.Authorization){var _e=!1,De=Re.Authorization;if(De)if(De.indexOf(" ")>-1)_e=!1;else if(De.indexOf("q-sign-algorithm=")>-1&&De.indexOf("q-ak=")>-1&&De.indexOf("q-sign-time=")>-1&&De.indexOf("q-key-time=")>-1&&De.indexOf("q-url-param-list=")>-1)_e=!0;else try{De=atob(De),De.indexOf("a=")>-1&&De.indexOf("k=")>-1&&De.indexOf("t=")>-1&&De.indexOf("r=")>-1&&De.indexOf("b=")>-1&&(_e=!0)}catch(Ke){}if(!_e)return l.error(new Error("getAuthorization callback params format error"))}else{if(!Re.TmpSecretId)return l.error(new Error('getAuthorization callback params missing "TmpSecretId"'));if(!Re.TmpSecretKey)return l.error(new Error('getAuthorization callback params missing "TmpSecretKey"'));if(!Re.SecurityToken&&!Re.XCosSecurityToken)return l.error(new Error('getAuthorization callback params missing "SecurityToken"'));if(!Re.ExpiredTime)return l.error(new Error('getAuthorization callback params missing "ExpiredTime"'));if(Re.ExpiredTime&&Re.ExpiredTime.toString().length!==10)return l.error(new Error('getAuthorization callback params "ExpiredTime" should be 10 digits'));if(Re.StartTime&&Re.StartTime.toString().length!==10)return l.error(new Error('getAuthorization callback params "StartTime" should be 10 StartTime'))}return!1};if(Te.ExpiredTime&&Te.ExpiredTime-l.getSkewTime(h.options.SystemClockOffset)/1e3>60)Le();else if(h.options.getAuthorization)h.options.getAuthorization.call(h,{Bucket:E,Region:ne,Method:e.Method,Key:fe,Pathname:ue,Query:e.Query,Headers:o,Scope:Be,SystemClockOffset:h.options.SystemClockOffset,ForceSignHost:t},function(xe){typeof xe=="string"&&(xe={Authorization:xe});var Re=qe(xe);if(Re)return r(Re);xe.Authorization?r(null,xe):(Te=xe||{},Te.Scope=Be,Te.ScopeKey=He,h._StsCache.push(Te),Le())});else if(h.options.getSTS)h.options.getSTS.call(h,{Bucket:E,Region:ne},function(xe){Te=xe||{},Te.Scope=Be,Te.ScopeKey=He,Te.TmpSecretId||(Te.TmpSecretId=Te.SecretId),Te.TmpSecretKey||(Te.TmpSecretKey=Te.SecretKey);var Re=qe(Te);if(Re)return r(Re);h._StsCache.push(Te),Le()});else return function(){var xe=l.getAuth({SecretId:e.SecretId||h.options.SecretId,SecretKey:e.SecretKey||h.options.SecretKey,Method:e.Method,Pathname:ue,Query:e.Query,Headers:o,Expires:e.Expires,UseRawKey:h.options.UseRawKey,SystemClockOffset:h.options.SystemClockOffset,ForceSignHost:t}),Re={Authorization:xe,SecurityToken:h.options.SecurityToken||h.options.XCosSecurityToken};return r(null,Re),Re}();return""}function rt(e){var f=!1,o=!1,c=e.headers&&(e.headers.date||e.headers.Date)||e.error&&e.error.ServerTime;try{var t=e.error.Code,n=e.error.Message;(t==="RequestTimeTooSkewed"||t==="AccessDenied"&&n==="Request has expired")&&(o=!0)}catch(h){}if(e)if(o&&c){var r=Date.parse(c);this.options.CorrectClockSkew&&Math.abs(l.getSkewTime(this.options.SystemClockOffset)-r)>=3e4&&(console.error("error: Local time is too skewed."),this.options.SystemClockOffset=r-Date.now(),f=!0)}else Math.floor(e.statusCode/100)===5&&(f=!0);return f}function he(e,f){var o=this;!e.headers&&(e.headers={}),!e.qs&&(e.qs={}),e.VersionId&&(e.qs.versionId=e.VersionId),e.qs=l.clearKey(e.qs),e.headers&&(e.headers=l.clearKey(e.headers)),e.qs&&(e.qs=l.clearKey(e.qs));var c=l.clone(e.qs);e.action&&(c[e.action]="");var t=e.url||e.Url,n=e.SignHost||Je.call(this,{Bucket:e.Bucket,Region:e.Region,Url:t}),r=e.tracker,h=function E(ne){var fe=o.options.SystemClockOffset;r&&r.setParams({signStartTime:new Date().getTime(),retryTimes:ne-1}),$e.call(o,{Bucket:e.Bucket||"",Region:e.Region||"",Method:e.method,Key:e.Key,Query:c,Headers:e.headers,SignHost:n,Action:e.Action,ResourceKey:e.ResourceKey,Scope:e.Scope,ForceSignHost:o.options.ForceSignHost},function(ue,Te){if(ue){f(ue);return}r&&r.setParams({signEndTime:new Date().getTime(),httpStartTime:new Date().getTime()}),e.AuthData=Te,et.call(o,e,function(Be,Ue){r&&r.setParams({httpEndTime:new Date().getTime()}),Be&&ne<2&&(fe!==o.options.SystemClockOffset||rt.call(o,Be))?(e.headers&&(delete e.headers.Authorization,delete e.headers.token,delete e.headers.clientIP,delete e.headers.clientUA,e.headers["x-cos-security-token"]&&delete e.headers["x-cos-security-token"],e.headers["x-ci-security-token"]&&delete e.headers["x-ci-security-token"]),E(ne+1)):f(Be,Ue)})})};h(1)}function et(e,f){var o=this,c=e.TaskId;if(!(c&&!o._isRunningTask(c))){var t=e.Bucket,n=e.Region,r=e.Key,h=e.method||"GET",E=e.Url||e.url,ne=e.body,fe=e.rawBody;o.options.UseAccelerate&&(n="accelerate"),E=E||Ve({ForcePathStyle:o.options.ForcePathStyle,protocol:o.options.Protocol,domain:o.options.Domain,bucket:t,region:n,object:r}),e.action&&(E=E+"?"+(l.isIOS_QQ?"".concat(e.action,"="):e.action)),e.qsStr&&(E.indexOf("?")>-1?E=E+"&"+e.qsStr:E=E+"?"+e.qsStr);var ue={method:h,url:E,headers:e.headers,qs:e.qs,body:ne},Te="x-cos-security-token";if(l.isCIHost(E)&&(Te="x-ci-security-token"),ue.headers.Authorization=e.AuthData.Authorization,e.AuthData.Token&&(ue.headers.token=e.AuthData.Token),e.AuthData.ClientIP&&(ue.headers.clientIP=e.AuthData.ClientIP),e.AuthData.ClientUA&&(ue.headers.clientUA=e.AuthData.ClientUA),e.AuthData.SecurityToken&&(ue.headers[Te]=e.AuthData.SecurityToken),ue.headers&&(ue.headers=l.clearKey(ue.headers)),ue=l.clearKey(ue),e.onProgress&&typeof e.onProgress=="function"){var Be=ne&&(ne.size||ne.length)||0;ue.onProgress=function(xe){if(!(c&&!o._isRunningTask(c))){var Re=xe?xe.loaded:0;e.onProgress({loaded:Re,total:Be})}}}e.onDownloadProgress&&(ue.onDownloadProgress=e.onDownloadProgress),e.DataType&&(ue.dataType=e.DataType),this.options.Timeout&&(ue.timeout=this.options.Timeout),o.options.ForcePathStyle&&(ue.pathStyle=o.options.ForcePathStyle),o.emit("before-send",ue);var Ue=ue.url.includes("accelerate."),We=ue.qs?Object.keys(ue.qs).map(function(xe){return"".concat(xe,"=").concat(ue.qs[xe])}).join("&"):"",He=We?ue.url+"?"+We:ue.url;e.tracker&&e.tracker.setParams({reqUrl:He,accelerate:Ue?"Y":"N"}),e.tracker&&e.tracker.parent&&e.tracker.parent.setParams({reqUrl:He,accelerate:Ue?"Y":"N"});var Le=(o.options.Request||T)(ue,function(xe){if(!(xe&&xe.error==="abort")){var Re={options:ue,error:xe&&xe.error,statusCode:xe&&xe.statusCode||0,statusMessage:xe&&xe.statusMessage||"",headers:xe&&xe.headers||{},body:xe&&xe.body};o.emit("after-receive",Re);var _e=Re.error,De=Re.body,Ke={statusCode:Re.statusCode,statusMessage:Re.statusMessage,headers:Re.headers},st,it=function(lt,ft){if(c&&o.off("inner-kill-task",qe),!st){st=!0;var dt={};Ke&&Ke.statusCode&&(dt.statusCode=Ke.statusCode),Ke&&Ke.headers&&(dt.headers=Ke.headers),lt?(lt=l.extend(lt||{},dt),f(lt,null)):(ft=l.extend(ft||{},dt),f(null,ft)),Le=null}};if(_e)return it(l.error(_e));var ut=Ke.statusCode,ht=Math.floor(ut/100)===2;if(fe&&ht)return it(null,{body:De});var at;try{at=De&&De.indexOf("<")>-1&&De.indexOf(">")>-1&&l.xml2json(De)||{}}catch(gt){at={}}var ct=at&&at.Error;ht?it(null,at):ct?it(l.error(new Error(ct.Message),{code:ct.Code,error:ct})):ut?it(l.error(new Error(Ke.statusMessage),{code:""+ut})):ut&&it(l.error(new Error("statusCode error")))}}),qe=function xe(Re){Re.TaskId===c&&(Le&&Le.abort&&Le.abort(),o.off("inner-kill-task",xe))};c&&o.on("inner-kill-task",qe)}}var ot={getService:k,putBucket:P,headBucket:ee,getBucket:B,deleteBucket:b,putBucketAcl:q,getBucketAcl:L,putBucketCors:z,getBucketCors:_,deleteBucketCors:j,getBucketLocation:Q,getBucketPolicy:ge,putBucketPolicy:M,deleteBucketPolicy:A,putBucketTagging:S,getBucketTagging:m,deleteBucketTagging:K,putBucketLifecycle:g,getBucketLifecycle:D,deleteBucketLifecycle:U,putBucketVersioning:F,getBucketVersioning:$,putBucketReplication:w,getBucketReplication:H,deleteBucketReplication:N,putBucketWebsite:X,getBucketWebsite:J,deleteBucketWebsite:ce,putBucketReferer:se,getBucketReferer:re,putBucketDomain:Z,getBucketDomain:te,deleteBucketDomain:ie,putBucketOrigin:we,getBucketOrigin:de,deleteBucketOrigin:Y,putBucketLogging:pe,getBucketLogging:oe,putBucketInventory:le,getBucketInventory:ye,listBucketInventory:ve,deleteBucketInventory:me,putBucketAccelerate:Ee,getBucketAccelerate:Se,putBucketEncryption:be,getBucketEncryption:Ae,deleteBucketEncryption:V,getObject:d,headObject:x,listObjectVersions:I,putObject:i,deleteObject:a,getObjectAcl:s,putObjectAcl:p,optionsObject:R,putObjectCopy:O,deleteMultipleObject:ae,restoreObject:Ce,putObjectTagging:W,getObjectTagging:Oe,deleteObjectTagging:ke,selectObjectContent:Ie,appendObject:Xe,uploadPartCopy:G,multipartInit:Pe,multipartUpload:Me,multipartComplete:Ge,multipartList:Fe,multipartListPart:je,multipartAbort:Ne,request:ze,getObjectUrl:Ye,getAuth:nt};function tt(e,f,o){l.each(["Cors","Acl"],function(c){if(e.slice(-c.length)===c){var t=e.slice(0,-c.length)+c.toUpperCase(),n=l.apiWrapper(e,f),r=!1;o[t]=function(){!r&&console.warn("warning: cos."+t+" has been deprecated. Please Use cos."+e+" instead."),r=!0,n.apply(this,arguments)}}})}y.exports.init=function(e,f){f.transferToTaskMethod(ot,"putObject"),l.each(ot,function(o,c){e.prototype[c]=l.apiWrapper(c,o),tt(c,o,e.prototype)})}},"./src/cos.js":function(y,C,u){"use strict";var v=u("./src/util.js"),T=u("./src/event.js"),l=u("./src/task.js"),k=u("./src/base.js"),P=u("./src/advance.js"),ee=u("./package.json"),B={AppId:"",SecretId:"",SecretKey:"",SecurityToken:"",ChunkRetryTimes:2,FileParallelLimit:3,ChunkParallelLimit:3,ChunkSize:1024*1024,SliceSize:1024*1024,CopyChunkParallelLimit:20,CopyChunkSize:1024*1024*10,CopySliceSize:1024*1024*10,MaxPartNumber:1e4,ProgressInterval:1e3,Domain:"",ServiceDomain:"",Protocol:"",CompatibilityMode:!1,ForcePathStyle:!1,UseRawKey:!1,Timeout:0,CorrectClockSkew:!0,SystemClockOffset:0,UploadCheckContentMd5:!1,UploadQueueSize:1e4,UploadAddMetaMd5:!1,UploadIdCacheLimit:50,UseAccelerate:!1,ForceSignHost:!0,EnableTracker:!1,DeepTracker:!1,TrackerDelay:5e3,CustomId:""},b=function(L){this.options=v.extend(v.clone(B),L||{}),this.options.FileParallelLimit=Math.max(1,this.options.FileParallelLimit),this.options.ChunkParallelLimit=Math.max(1,this.options.ChunkParallelLimit),this.options.ChunkRetryTimes=Math.max(0,this.options.ChunkRetryTimes),this.options.ChunkSize=Math.max(1024*1024,this.options.ChunkSize),this.options.CopyChunkParallelLimit=Math.max(1,this.options.CopyChunkParallelLimit),this.options.CopyChunkSize=Math.max(1024*1024,this.options.CopyChunkSize),this.options.CopySliceSize=Math.max(0,this.options.CopySliceSize),this.options.MaxPartNumber=Math.max(1024,Math.min(1e4,this.options.MaxPartNumber)),this.options.Timeout=Math.max(0,this.options.Timeout),this.options.AppId&&console.warn('warning: AppId has been deprecated, Please put it at the end of parameter Bucket(E.g: "test-1250000000").'),this.options.SecretId&&this.options.SecretId.indexOf(" ")>-1&&(console.error("error: SecretId\u683C\u5F0F\u9519\u8BEF\uFF0C\u8BF7\u68C0\u67E5"),console.error("error: SecretId format is incorrect. Please check")),this.options.SecretKey&&this.options.SecretKey.indexOf(" ")>-1&&(console.error("error: SecretKey\u683C\u5F0F\u9519\u8BEF\uFF0C\u8BF7\u68C0\u67E5"),console.error("error: SecretKey format is incorrect. Please check")),v.isNode()&&(console.warn("warning: cos-js-sdk-v5 \u4E0D\u652F\u6301 nodejs \u73AF\u5883\u4F7F\u7528\uFF0C\u8BF7\u6539\u7528 cos-nodejs-sdk-v5\uFF0C\u53C2\u8003\u6587\u6863\uFF1A https://cloud.tencent.com/document/product/436/8629"),console.warn("warning: cos-js-sdk-v5 does not support nodejs environment. Please use cos-nodejs-sdk-v5 instead. See: https://cloud.tencent.com/document/product/436/8629")),T.init(this),l.init(this)};k.init(b,l),P.init(b,l),b.util={md5:v.md5,xml2json:v.xml2json,json2xml:v.json2xml},b.getAuthorization=v.getAuth,b.version=ee.version,y.exports=b},"./src/event.js":function(y,C){var u=function(l){var k={},P=function(B){return!k[B]&&(k[B]=[]),k[B]};l.on=function(ee,B){ee==="task-list-update"&&console.warn('warning: Event "'+ee+'" has been deprecated. Please use "list-update" instead.'),P(ee).push(B)},l.off=function(ee,B){for(var b=P(ee),q=b.length-1;q>=0;q--)B===b[q]&&b.splice(q,1)},l.emit=function(ee,B){for(var b=P(ee).map(function(L){return L}),q=0;q=0;Q--){var M=k[Q][2];(!M||M+l=0;M--){var ge=k[M];ge[0]===_&&ge[1]===j&&k.splice(M,1)}k.unshift([_,j,Math.round(Date.now()/1e3)]),k.length>Q&&k.splice(Q),q()}},removeUploadId:function(_){b.call(this),delete L.using[_];for(var j=k.length-1;j>=0;j--)k[j][1]===_&&k.splice(j,1);q()}};y.exports=L},"./src/task.js":function(y,C,u){var v=u("./src/session.js"),T=u("./src/util.js"),l={},k=function(B,b){l[b]=B[b],B[b]=function(q,L){q.SkipTask?l[b].call(this,q,L):this._addTask(b,q,L)}},P=function(B){var b=[],q={},L=0,z=0,_=function(m){var K={id:m.id,Bucket:m.Bucket,Region:m.Region,Key:m.Key,FilePath:m.FilePath,state:m.state,loaded:m.loaded,size:m.size,speed:m.speed,percent:m.percent,hashPercent:m.hashPercent,error:m.error};return m.FilePath&&(K.FilePath=m.FilePath),m._custom&&(K._custom=m._custom),K},j=function(){var S,m=function(){S=0,B.emit("task-list-update",{list:T.map(b,_)}),B.emit("list-update",{list:T.map(b,_)})};return function(){S||(S=setTimeout(m))}}(),Q=function(){if(!(b.length<=B.options.UploadQueueSize)){for(var m=0;mB.options.UploadQueueSize;){var K=b[m].state==="waiting"||b[m].state==="checking"||b[m].state==="uploading";!b[m]||!K?(q[b[m].id]&&delete q[b[m].id],b.splice(m,1),z--):m++}j()}},M=function S(){if(!(L>=B.options.FileParallelLimit)){for(;b[z]&&b[z].state!=="waiting";)z++;if(!(z>=b.length)){var m=b[z];z++,L++,m.state="checking",m.params.onTaskStart&&m.params.onTaskStart(_(m)),!m.params.UploadData&&(m.params.UploadData={});var K=T.formatParams(m.api,m.params);l[m.api].call(B,K,function(g,D){!B._isRunningTask(m.id)||((m.state==="checking"||m.state==="uploading")&&(m.state=g?"error":"success",g&&(m.error=g),L--,j(),S(),m.callback&&m.callback(g,D),m.state==="success"&&(m.params&&(delete m.params.UploadData,delete m.params.Body,delete m.params),delete m.callback)),Q())}),j(),setTimeout(S)}}},ge=function(m,K){var g=q[m];if(!!g){var D=g&&g.state==="waiting",U=g&&(g.state==="checking"||g.state==="uploading");if(K==="canceled"&&g.state!=="canceled"||K==="paused"&&D||K==="paused"&&U){if(K==="paused"&&g.params.Body&&typeof g.params.Body.pipe=="function"){console.error("stream not support pause");return}g.state=K,B.emit("inner-kill-task",{TaskId:m,toState:K});try{var F=g&&g.params&&g.params.UploadData.UploadId}catch($){}K==="canceled"&&F&&v.removeUsing(F),j(),U&&(L--,M()),K==="canceled"&&(g.params&&(delete g.params.UploadData,delete g.params.Body,delete g.params),delete g.callback)}Q()}};B._addTasks=function(S){T.each(S,function(m){B._addTask(m.api,m.params,m.callback,!0)}),j()};var A=!0;B._addTask=function(S,m,K,g){m=T.formatParams(S,m);var D=T.uuid();m.TaskId=D,m.onTaskReady&&m.onTaskReady(D),m.TaskReady&&(m.TaskReady(D),A&&console.warn('warning: Param "TaskReady" has been deprecated. Please use "onTaskReady" instead.'),A=!1);var U={params:m,callback:K,api:S,index:b.length,id:D,Bucket:m.Bucket,Region:m.Region,Key:m.Key,FilePath:m.FilePath||"",state:"waiting",loaded:0,size:0,speed:0,percent:0,hashPercent:0,error:null,_custom:m._custom},F=m.onHashProgress;m.onHashProgress=function(w){!B._isRunningTask(U.id)||(U.hashPercent=w.percent,F&&F(w),j())};var $=m.onProgress;return m.onProgress=function(w){!B._isRunningTask(U.id)||(U.state==="checking"&&(U.state="uploading"),U.loaded=w.loaded,U.speed=w.speed,U.percent=w.percent,$&&$(w),j())},T.getFileSize(S,m,function(w,H){if(w)return K(T.error(w));q[D]=U,b.push(U),U.size=H,!g&&j(),M(),Q()}),D},B._isRunningTask=function(S){var m=q[S];return!!(m&&(m.state==="checking"||m.state==="uploading"))},B.getTaskList=function(){return T.map(b,_)},B.cancelTask=function(S){ge(S,"canceled")},B.pauseTask=function(S){ge(S,"paused")},B.restartTask=function(S){var m=q[S];m&&(m.state==="paused"||m.state==="error")&&(m.state="waiting",j(),z=Math.min(z,m.index),M())},B.isUploadRunning=function(){return L||z=0||S.indexOf("wow32")>=0?"win32":S.indexOf("win64")>=0||S.indexOf("wow64")>=0?"win64":m?"mac":"unknown os"},isMobile:function(){var S=/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i;return!!((typeof navigator=="undefined"?"undefined":l(navigator))==="object"&&navigator.userAgent.match(S))},isAndroid:function(){var S=/(Android|Adr|Linux)/i;return!!((typeof navigator=="undefined"?"undefined":l(navigator))==="object"&&navigator.userAgent.match(S))},isIOS:function(){var S=/(iPhone|iPod|iPad|iOS)/i;return!!((typeof navigator=="undefined"?"undefined":l(navigator))==="object"&&navigator.userAgent.match(S))},isOtherMobile:function(){return isMobile&&!isAndroid&&!isIOS},getDeviceName:function(){if((typeof navigator=="undefined"?"undefined":l(navigator))!=="object")return"unknown device";var S=navigator.userAgent.toLowerCase();if(S.includes("app/tencent_wemeet"))return"tencent_wemeet";if(S.indexOf("maxthon")>=0){var m=S.match(/maxthon\/([\d.]+)/),K=m&&m[1]||"";return"\u50B2\u6E38\u6D4F\u89C8\u5668 ".concat(K).trim()}if(S.indexOf("qqbrowser")>=0){var g=S.match(/qqbrowser\/([\d.]+)/),D=g&&g[1]||"";return"QQ\u6D4F\u89C8\u5668 ".concat(D).trim()}if(S.indexOf("se 2.x")>=0)return"\u641C\u72D7\u6D4F\u89C8\u5668";if(S.indexOf("wxwork")>=0)return"\u5FAE\u4FE1\u5185\u7F6E\u6D4F\u89C8\u5668";if(S.indexOf("msie")>=0){var U=S.match(/msie ([\d.]+)/),F=U&&U[1]||"";return"IE ".concat(F).trim()}if(S.indexOf("firefox")>=0){var $=S.match(/firefox\/([\d.]+)/),w=$&&$[1]||"";return"Firefox ".concat(w).trim()}if(S.indexOf("chrome")>=0){var H=S.match(/chrome\/([\d.]+)/),N=H&&H[1]||"";return"Chrome ".concat(N).trim()}if(S.indexOf("opera")>=0){var X=S.match(/opera.([\d.]+)/),J=X&&X[1]||"";return"Opera ".concat(J).trim()}if(S.indexOf("safari")>=0){var ce=S.match(/version\/([\d.]+)/),se=ce&&ce[1]||"";return"Safari ".concat(se).trim()}if(S.indexOf("edge")>=0){var re=S.match(/edge\/([\d.]+)/),Z=re&&re[1]||"";return"edge ".concat(Z).trim()}return S.substr(0,200)}},b={isMobile:B.isMobile(),isBrowser:!B.isMobile(),mobileOsType:B.isAndroid()?"android":B.isIOS?"ios":"other_mobile",pcOsType:B.getOsType()},q={deviceType:b.isMobile?"mobile":b.isBrowser?"browser":"unknown",devicePlatform:b.isMobile?b.mobileOsType:b.pcOsType,deviceName:B.getDeviceName()},L=["multipartInit","multipartUpload","multipartComplete","multipartList","multipartListPart","multipartAbort"],z=["putObject","postObject","appendObject","sliceUploadFile","uploadFile","uploadFiles"].concat(L),_=["getObject"];function j(A){return z.includes(A)?"cos_upload":_.includes(A)?"cos_download":"base_service"}function Q(A){return A.replace(/([A-Z])/g,"_$1").toLowerCase()}function M(A){var S={},m=["tracePlatform","cossdkVersion","region","networkType","host","accelerate","requestPath","size","httpMd5","httpSign","httpFull","name","result","tookTime","errorNode","errorCode","errorMessage","errorRequestId","errorStatusCode","errorServiceName","errorType","traceId","bucket","appid","partNumber","retryTimes","reqUrl","customId","fullError","deviceType","devicePlatform","deviceName"],K=["tracePlatform","cossdkVersion","region","bucket","appid","networkType","host","accelerate","requestPath","partNumber","size","name","result","tookTime","errorRequestId","retryTimes","reqUrl","customId","deviceType","devicePlatform","deviceName"],g=A.result==="Success"?K:m;for(var D in A)if(!!g.includes(D)){var U=Q(D);S[U]=A[D]}return S}var ge=function(){"use strict";function A(S){v(this,A);var m=S.parent,K=S.traceId,g=S.bucket,D=S.region,U=S.apiName,F=S.fileKey,$=S.fileSize,w=S.accelerate,H=S.customId,N=S.delay,X=S.deepTracker,J=g&&g.substr(g.lastIndexOf("-")+1)||"";this.parent=m,this.deepTracker=X,this.delay=N,this.params={cossdkVersion:k.version,region:D,networkType:"",host:"",accelerate:w?"Y":"N",requestPath:F||"",size:$||-1,httpMd5:0,httpSign:0,httpFull:0,name:U||"",result:"",tookTime:0,errorNode:"",errorCode:"",errorMessage:"",errorRequestId:"",errorStatusCode:0,errorServiceName:"",tracePlatform:"cos-js-sdk-v5",traceId:K||B.getUid(),bucket:g,appid:J,partNumber:0,retryTimes:0,reqUrl:"",customId:H||"",deviceType:q.deviceType,devicePlatform:q.devicePlatform,deviceName:q.deviceName,md5StartTime:0,md5EndTime:0,signStartTime:0,signEndTime:0,httpStartTime:0,httpEndTime:0,startTime:new Date().getTime(),endTime:0},this.beacon=ee(N)}return T(A,[{key:"formatResult",value:function(m,K){var g,D,U,F,$,w,H=new Date().getTime(),N=H-this.params.startTime,X=B.getNetType(),J=m?(m==null?void 0:m.code)||(m==null||(g=m.error)===null||g===void 0?void 0:g.code)||(m==null||(D=m.error)===null||D===void 0?void 0:D.Code):"",ce=m?(m==null?void 0:m.message)||(m==null||(U=m.error)===null||U===void 0?void 0:U.message)||(m==null||(F=m.error)===null||F===void 0?void 0:F.Message):"",se=m?(m==null?void 0:m.resource)||(m==null||($=m.error)===null||$===void 0?void 0:$.resource)||(m==null||(w=m.error)===null||w===void 0?void 0:w.Resource):"",re=m?m==null?void 0:m.statusCode:K.statusCode,Z=m?(m==null?void 0:m.headers)&&(m==null?void 0:m.headers["x-cos-request-id"]):(K==null?void 0:K.headers)&&(K==null?void 0:K.headers["x-cos-request-id"]),te=m?Z?"Server":"Client":"";if(Object.assign(this.params,{tookTime:N,networkType:X,httpMd5:this.params.md5EndTime-this.params.md5StartTime,httpSign:this.params.signEndTime-this.params.signStartTime,httpFull:this.params.httpEndTime-this.params.httpStartTime,result:m?"Fail":"Success",errorType:te,errorCode:J,errorStatusCode:re,errorMessage:ce,errorServiceName:se,errorRequestId:Z}),m&&(!J||!ce)&&(this.params.fullError=m?JSON.stringify(m):""),this.params.name==="getObject"&&(this.params.size=K?K.headers&&K.headers["content-length"]:-1),this.params.reqUrl)try{var ie=/^http(s)?:\/\/(.*?)\//.exec(this.params.reqUrl);this.params.host=ie[2]}catch(we){this.params.host=this.params.reqUrl}this.sendEvents()}},{key:"setParams",value:function(m){Object.assign(this.params,m)}},{key:"sendEvents",value:function(){if(!(L.includes(this.params.name)&&!this.deepTracker)){var m=j(this.params.name),K=M(this.params);this.beacon||(this.beacon=ee(this.delay||5e3)),this.delay===0?this.beacon&&this.beacon.onDirectUserAction(m,K):this.beacon&&this.beacon.onUserAction(m,K)}}},{key:"generateSubTracker",value:function(m){return Object.assign(m,{parent:this,deepTracker:this.deepTracker,traceId:this.params.traceId,bucket:this.params.bucket,region:this.params.region,fileKey:this.params.requestPath,customId:this.params.customId,delay:this.delay}),new A(m)}}]),A}();y.exports=ge},"./src/util.js":function(y,C,u){"use strict";(function(v){var T=u("./node_modules/@babel/runtime/helpers/typeof.js"),l=u("./lib/md5.js"),k=u("./lib/crypto.js"),P=u("./lib/xml2json.js"),ee=u("./lib/json2xml.js"),B=u("./src/tracker.js");function b(V){return encodeURIComponent(V).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A")}function q(V,x){var I=[];for(var d in V)V.hasOwnProperty(d)&&I.push(x?b(d).toLowerCase():d);return I.sort(function(i,a){return i=i.toLowerCase(),a=a.toLowerCase(),i===a?0:i>a?1:-1})}var L=function(x,I){var d,i,a,s=[],p=q(x);for(d=0;d-1||z.indexOf(i)>-1)&&(I[d]=x[d])}return I},j=function(x){x=x||{};var I=x.SecretId,d=x.SecretKey,i=x.KeyTime,a=(x.method||x.Method||"get").toLowerCase(),s=w(x.Query||x.params||{}),p=_(w(x.Headers||x.headers||{})),R=x.Key||"",O;x.UseRawKey?O=x.Pathname||x.pathname||"/"+R:(O=x.Pathname||x.pathname||R,O.indexOf("/")!==0&&(O="/"+O));var G=x.ForceSignHost!==!1;if(!p.Host&&!p.host&&x.Bucket&&x.Region&&G&&(p.Host=x.Bucket+".cos."+x.Region+".myqcloud.com"),!I)throw new Error("missing param SecretId");if(!d)throw new Error("missing param SecretKey");var ae=Math.round(le(x.SystemClockOffset)/1e3)-1,Ce=ae,W=x.Expires||x.expires;W===void 0?Ce+=900:Ce+=W*1||0;var Oe="sha1",ke=I,Ie=i||ae+";"+Ce,Pe=i||ae+";"+Ce,Me=q(p,!0).join(";").toLowerCase(),Ge=q(s,!0).join(";").toLowerCase(),Fe=k.HmacSHA1(Pe,d).toString(),je=[a,O,Ae.obj2str(s,!0),Ae.obj2str(p,!0),""].join(` -`),Ne=["sha1",Ie,k.SHA1(je).toString(),""].join(` -`),ze=k.HmacSHA1(Ne,Fe).toString(),Xe=["q-sign-algorithm="+Oe,"q-ak="+ke,"q-sign-time="+Ie,"q-key-time="+Pe,"q-header-list="+Me,"q-url-param-list="+Ge,"q-signature="+ze].join("&");return Xe},Q=function(x,I,d){var i=I/8,a=x.slice(d,d+i);return new Uint8Array(a).reverse(),new{8:Uint8Array,16:Uint16Array,32:Uint32Array}[I](a)[0]},M=function(x,I,d,i){var a=x.slice(I,d),s="";return new Uint8Array(a).forEach(function(p){s+=String.fromCharCode(p)}),i&&(s=decodeURIComponent(escape(s))),s},ge=function(x){for(var I={},d=M(x),i={records:[]};x.byteLength;){var a=Q(x,32,0),s=Q(x,32,4),p=a-s-16,R=0,O;for(x=x.slice(12);RparseInt(i[a])?1:-1;return 0},x=function(d){if(!d)return!1;var i=(d.match(/Chrome\/([.\d]+)/)||[])[1],a=(d.match(/QBCore\/([.\d]+)/)||[])[1],s=(d.match(/QQBrowser\/([.\d]+)/)||[])[1],p=i&&V(i,"53.0.2785.116")<0&&a&&V(a,"3.53.991.400")<0&&s&&V(s,"9.0.2524.400")<=0||!1;return p};return x(typeof navigator!="undefined"&&navigator.userAgent)}(),D=function(x,I,d,i,a){var s;if(x.slice?s=x.slice(I,d):x.mozSlice?s=x.mozSlice(I,d):x.webkitSlice&&(s=x.webkitSlice(I,d)),i&&g){var p=new FileReader;p.onload=function(R){s=null,a(new Blob([p.result]))},p.readAsArrayBuffer(s)}else a(s)},U=function(x,I,d,i){d=d||S,x?typeof I=="string"?d(Ae.md5(I,!0)):Blob&&I instanceof Blob?Ae.getFileMd5(I,function(a,s){d(s)},i):d():d()},F=1024*1024,$=function(x,I,d){var i=x.size,a=0,s=l.getCtx(),p=function R(O){if(O>=i){var G=s.digest("hex");I(null,G);return}var ae=Math.min(i,O+F);Ae.fileSlice(x,O,ae,!1,function(Ce){K(Ce,function(W){Ce=null,s=s.update(W,!0),a+=W.length,W=null,d&&d({loaded:a,total:i,percent:Math.round(a/i*1e4)/1e4}),R(O+F)})})};p(0)};function w(V){return re(V,function(x){return T(x)==="object"&&x!==null?w(x):x})}function H(V,x,I){return V&&x in V?V[x]:I}function N(V,x){return se(x,function(I,d){V[d]=x[d]}),V}function X(V){return V instanceof Array}function J(V,x){for(var I=!1,d=0;d-1,R=!s||typeof s=="string"&&s.indexOf("{Region}")>-1;if(x.indexOf("Bucket")>-1||x==="deleteMultipleObject"||x==="multipartList"||x==="listObjectVersions"){if(p&&!d)return"Bucket";if(R&&!i)return"Region"}else if(x.indexOf("Object")>-1||x.indexOf("multipart")>-1||x==="sliceUploadFile"||x==="abortUploadTask"){if(p&&!d)return"Bucket";if(R&&!i)return"Region";if(!a)return"Key"}return!1},de=function(x,I){if(I=N({},I),x!=="getAuth"&&x!=="getV4Auth"&&x!=="getObjectUrl"){var d=I.Headers||{};if(I&&T(I)==="object"){(function(){for(var a in I)I.hasOwnProperty(a)&&a.indexOf("x-cos-")>-1&&(d[a]=I[a])})();var i={"x-cos-mfa":"MFA","Content-MD5":"ContentMD5","Content-Length":"ContentLength","Content-Type":"ContentType",Expect:"Expect",Expires:"Expires","Cache-Control":"CacheControl","Content-Disposition":"ContentDisposition","Content-Encoding":"ContentEncoding",Range:"Range","If-Modified-Since":"IfModifiedSince","If-Unmodified-Since":"IfUnmodifiedSince","If-Match":"IfMatch","If-None-Match":"IfNoneMatch","x-cos-copy-source":"CopySource","x-cos-copy-source-Range":"CopySourceRange","x-cos-metadata-directive":"MetadataDirective","x-cos-copy-source-If-Modified-Since":"CopySourceIfModifiedSince","x-cos-copy-source-If-Unmodified-Since":"CopySourceIfUnmodifiedSince","x-cos-copy-source-If-Match":"CopySourceIfMatch","x-cos-copy-source-If-None-Match":"CopySourceIfNoneMatch","x-cos-acl":"ACL","x-cos-grant-read":"GrantRead","x-cos-grant-write":"GrantWrite","x-cos-grant-full-control":"GrantFullControl","x-cos-grant-read-acp":"GrantReadAcp","x-cos-grant-write-acp":"GrantWriteAcp","x-cos-storage-class":"StorageClass","x-cos-traffic-limit":"TrafficLimit","x-cos-mime-limit":"MimeLimit","x-cos-server-side-encryption-customer-algorithm":"SSECustomerAlgorithm","x-cos-server-side-encryption-customer-key":"SSECustomerKey","x-cos-server-side-encryption-customer-key-MD5":"SSECustomerKeyMD5","x-cos-server-side-encryption":"ServerSideEncryption","x-cos-server-side-encryption-cos-kms-key-id":"SSEKMSKeyId","x-cos-server-side-encryption-context":"SSEContext","Pic-Operations":"PicOperations"};Ae.each(i,function(a,s){I[a]!==void 0&&(d[s]=I[a])}),I.Headers=m(d)}}return I},Y=function(x,I){return function(d,i){var a=this;typeof d=="function"&&(i=d,d={}),d=de(x,d);var s;if(a.options.EnableTracker)if(d.calledBySdk==="sliceUploadFile")s=d.tracker&&d.tracker.generateSubTracker({apiName:x});else if(["uploadFile","uploadFiles"].includes(x))s=null;else{var p=-1;d.Body&&(p=typeof d.Body=="string"?d.Body.length:d.Body.size||d.Body.byteLength||-1),s=new B({bucket:d.Bucket,region:d.Region,apiName:x,fileKey:d.Key,fileSize:p,deepTracker:a.options.DeepTracker,customId:a.options.CustomId,delay:a.options.TrackerDelay})}d.tracker=s;var R=function(ke){return ke&&ke.headers&&(ke.headers["x-cos-request-id"]&&(ke.RequestId=ke.headers["x-cos-request-id"]),ke.headers["x-ci-request-id"]&&(ke.RequestId=ke.headers["x-ci-request-id"]),ke.headers["x-cos-version-id"]&&(ke.VersionId=ke.headers["x-cos-version-id"]),ke.headers["x-cos-delete-marker"]&&(ke.DeleteMarker=ke.headers["x-cos-delete-marker"])),ke},O=function(ke,Ie){s&&s.formatResult(ke,Ie),i&&i(R(ke),R(Ie))},G=function(){if(x!=="getService"&&x!=="abortUploadTask"){var ke=we.call(a,x,d);if(ke)return"missing param "+ke;if(d.Region){if(a.options.CompatibilityMode){if(!/^([a-z\d-.]+)$/.test(d.Region))return"Region format error."}else{if(d.Region.indexOf("cos.")>-1)return'param Region should not be start with "cos."';if(!/^([a-z\d-]+)$/.test(d.Region))return"Region format error."}!a.options.CompatibilityMode&&d.Region.indexOf("-")===-1&&d.Region!=="yfb"&&d.Region!=="default"&&d.Region!=="accelerate"&&console.warn("warning: param Region format error, find help here: https://cloud.tencent.com/document/product/436/6224")}if(d.Bucket){if(!/^([a-z\d-]+)-(\d+)$/.test(d.Bucket))if(d.AppId)d.Bucket=d.Bucket+"-"+d.AppId;else if(a.options.AppId)d.Bucket=d.Bucket+"-"+a.options.AppId;else return'Bucket should format as "test-1250000000".';d.AppId&&(console.warn('warning: AppId has been deprecated, Please put it at the end of parameter Bucket(E.g Bucket:"test-1250000000" ).'),delete d.AppId)}!a.options.UseRawKey&&d.Key&&d.Key.substr(0,1)==="/"&&(d.Key=d.Key.substr(1))}},ae=G(),Ce=["getAuth","getObjectUrl"].includes(x);if(typeof Promise=="function"&&!Ce&&!i)return new Promise(function(Oe,ke){if(i=function(Pe,Me){Pe?ke(Pe):Oe(Me)},ae)return O(Ae.error(new Error(ae)));I.call(a,d,O)});if(ae)return O(Ae.error(new Error(ae)));var W=I.call(a,d,O);if(Ce)return W}},pe=function(x,I){var d=this,i=0,a=0,s=Date.now(),p,R;function O(){if(R=0,I&&typeof I=="function"){p=Date.now();var G=Math.max(0,Math.round((a-i)/((p-s)/1e3)*100)/100)||0,ae;a===0&&x===0?ae=1:ae=Math.floor(a/x*100)/100||0,s=p,i=a;try{I({loaded:a,total:x,speed:G,percent:ae})}catch(Ce){}}}return function(G,ae){if(G&&(a=G.loaded,x=G.total),ae)clearTimeout(R),O();else{if(R)return;R=setTimeout(O,d.options.ProgressInterval)}}},oe=function(x,I,d){var i;if(typeof I.Body=="string"?I.Body=new Blob([I.Body],{type:"text/plain"}):I.Body instanceof ArrayBuffer&&(I.Body=new Blob([I.Body])),I.Body&&(I.Body instanceof Blob||I.Body.toString()==="[object File]"||I.Body.toString()==="[object Blob]"))i=I.Body.size;else{d(Ae.error(new Error("params body format error, Only allow File|Blob|String.")));return}I.ContentLength=i,d(null,i)},le=function(x){return Date.now()+(x||0)},ye=function(x,I){var d=x;return x.message=x.message||null,typeof I=="string"?(x.error=I,x.message=I):T(I)==="object"&&I!==null&&(N(x,I),(I.code||I.name)&&(x.code=I.code||I.name),I.message&&(x.message=I.message),I.stack&&(x.stack=I.stack)),typeof Object.defineProperty=="function"&&(Object.defineProperty(x,"name",{writable:!0,enumerable:!1}),Object.defineProperty(x,"message",{enumerable:!0})),x.name=I&&I.name||x.name||x.code||"Error",x.code||(x.code=x.name),x.error||(x.error=w(d)),x},ve=function(){return(typeof globalThis=="undefined"?"undefined":T(globalThis))==="object"&&(globalThis.constructor.name==="DedicatedWorkerGlobalScope"||globalThis.FileReaderSync)},me=function(){return(typeof window=="undefined"?"undefined":T(window))!=="object"&&(typeof v=="undefined"?"undefined":T(v))==="object"&&!0&&!ve()},Ee=function(x){return/^https?:\/\/([^/]+\.)?ci\.[^/]+/.test(x)},Se=function(){if((typeof navigator=="undefined"?"undefined":T(navigator))!=="object")return!1;var V=navigator.userAgent,x=!!V.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/);return x}(),be=function(){return(typeof navigator=="undefined"?"undefined":T(navigator))!=="object"?!1:/\sQQ/i.test(navigator.userAgent)}(),Ae={noop:S,formatParams:de,apiWrapper:Y,xml2json:P,json2xml:ee,md5:l,clearKey:m,fileSlice:D,getBodyMd5:U,getFileMd5:$,binaryBase64:te,extend:N,isArray:X,isInArray:J,makeArray:ce,each:se,map:re,filter:Z,clone:w,attr:H,uuid:ie,camSafeUrlEncode:b,throttleOnProgress:pe,getFileSize:oe,getSkewTime:le,error:ye,obj2str:L,getAuth:j,parseSelectPayload:ge,getSourceParams:A,isBrowser:!0,isNode:me,isCIHost:Ee,isIOS_QQ:Se&&be};y.exports=Ae}).call(this,u("./node_modules/process/browser.js"))}})})}}]); diff --git a/dist/5754.f1111397.async.js b/dist/5754.f1111397.async.js new file mode 100644 index 0000000..e52024d --- /dev/null +++ b/dist/5754.f1111397.async.js @@ -0,0 +1,12 @@ +(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[5754],{65754:function(module){(function(m,u){module.exports=u()})(this,function(){return function(p){var m={};function u(g){if(m[g])return m[g].exports;var T=m[g]={i:g,l:!1,exports:{}};return p[g].call(T.exports,T,T.exports,u),T.l=!0,T.exports}return u.m=p,u.c=m,u.d=function(g,T,c){u.o(g,T)||Object.defineProperty(g,T,{enumerable:!0,get:c})},u.r=function(g){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(g,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(g,"__esModule",{value:!0})},u.t=function(g,T){if(T&1&&(g=u(g)),T&8||T&4&&typeof g=="object"&&g&&g.__esModule)return g;var c=Object.create(null);if(u.r(c),Object.defineProperty(c,"default",{enumerable:!0,value:g}),T&2&&typeof g!="string")for(var k in g)u.d(c,k,function(_){return g[_]}.bind(null,k));return c},u.n=function(g){var T=g&&g.__esModule?function(){return g.default}:function(){return g};return u.d(T,"a",T),T},u.o=function(g,T){return Object.prototype.hasOwnProperty.call(g,T)},u.p="/dist/",u(u.s="./index.js")}({"./index.js":function(p,m,u){var g=u("./src/cos.js");p.exports=g},"./lib/beacon.min.js":function(p,m,u){var g,T,c=u("./node_modules/@babel/runtime/helpers/typeof.js");(function(k,_){c(m)=="object"&&typeof p!="undefined"?p.exports=_():(g=_,T=typeof g=="function"?g.call(m,u,m,p):g,T!==void 0&&(p.exports=T))})(this,function(){"use strict";var k=function(i,a){return k=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,v){s.__proto__=v}||function(s,v){for(var R in v)Object.prototype.hasOwnProperty.call(v,R)&&(s[R]=v[R])},k(i,a)},_=function(){return _=Object.assign||function(i){for(var a,s=1,v=arguments.length;s0&&v[v.length-1])||W[0]!==6&&W[0]!==2)){A=0;continue}if(W[0]===3&&(!v||W[1]>v[0]&&W[1]60*this.strategy.requestInterval*1e3},d.prototype.getUploadUrl=function(){return this.strategy.httpsUploadUrl+"?appkey="+this.appkey},d.prototype.isBlackEvent=function(i){return this.strategy.blacklist.indexOf(i)!=-1},d.prototype.isEventUpOnOff=function(){return this.strategy.isEventUpOnOff},d.prototype.isSampleEvent=function(i){return!!Object.prototype.hasOwnProperty.call(this.realSample,i)&&this.realSample[i]this.duration)return this.createSession();a=v.sessionId,s=v.sessionStart,this.getSessionStackDepth=0}catch(A){}return{sessionId:a,sessionStart:s}},d.prototype.createSession=function(){var i=Date.now(),a={sessionId:this.appkey+"_"+i.toString(),sessionStart:i};this.storage.setItem(P,JSON.stringify(a)),this.storage.setItem(L,i.toString());var s="is_new_user",v=this.storage.getItem(s);return this.getSessionStackDepth<=1&&this.beacon.onDirectUserAction("rqd_applaunched",{A21:v?"N":"Y"}),this.storage.setItem(s,JSON.stringify(!1)),a},d}();function M(){var d=navigator.userAgent,i=d.indexOf("compatible")>-1&&d.indexOf("MSIE")>-1,a=d.indexOf("Edge")>-1&&!i,s=d.indexOf("Trident")>-1&&d.indexOf("rv:11.0")>-1;if(i){new RegExp("MSIE (\\d+\\.\\d+);").test(d);var v=parseFloat(RegExp.$1);return v==7?7:v==8?8:v==9?9:v==10?10:6}return a?-2:s?11:-1}function $(d,i){var a,s;return(a="https://tun-cos-1258344701.file.myqcloud.com/fp.js",s===void 0&&(s=Date.now()+"-"+Math.random()),new Promise(function(v,R){if(document.getElementById(s))v(void 0);else{var A=document.getElementsByTagName("head")[0],G=document.createElement("script");G.onload=function(){return function(){G.onload=null,v(void 0)}},G.onerror=function(se){G.onerror=null,A.removeChild(G),R(se)},G.src=a,G.id=s,A.appendChild(G)}})).then(function(){new Fingerprint().getQimei36(d,i)}).catch(function(v){}),""}var b=function(){return(b=Object.assign||function(i){for(var a,s=1,v=arguments.length;s0||!window.indexedDB||/X5Lite/.test(navigator.userAgent)?(this.store=new ie(a),this.dbEventCount=this.store.getCount()):(this.store=new ae(i),this.getCount().then(function(v){s.dbEventCount=v}).catch(function(v){}))}return d.prototype.getCount=function(){return ee(this,void 0,void 0,function(){return O(this,function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),[4,this.store.getCount()];case 1:return[2,i.sent()];case 2:return i.sent(),[2,Promise.reject()];case 3:return[2]}})})},d.prototype.insertEvent=function(i,a){return ee(this,void 0,void 0,function(){var s,v;return O(this,function(R){switch(R.label){case 0:if(this.dbEventCount>=1e4)return[2,Promise.reject()];s=w(i.mapValue),R.label=1;case 1:return R.trys.push([1,3,,4]),this.dbEventCount++,[4,this.store.setItem(s,i)];case 2:return[2,R.sent()];case 3:return v=R.sent(),a&&a(v,i),this.dbEventCount--,[2,Promise.reject()];case 4:return[2]}})})},d.prototype.getEvents=function(){return ee(this,void 0,void 0,function(){var i;return O(this,function(a){switch(a.label){case 0:i=[],a.label=1;case 1:return a.trys.push([1,3,,4]),[4,this.store.iterate(function(s){i.push(s)})];case 2:return a.sent(),[2,Promise.all(i)];case 3:return a.sent(),[2,Promise.all(i)];case 4:return[2]}})})},d.prototype.removeEvent=function(i){return ee(this,void 0,void 0,function(){var a;return O(this,function(s){switch(s.label){case 0:a=w(i.mapValue),s.label=1;case 1:return s.trys.push([1,3,,4]),this.dbEventCount--,[4,this.store.removeItem(a)];case 2:return[2,s.sent()];case 3:return s.sent(),this.dbEventCount++,[2,Promise.reject()];case 4:return[2]}})})},d}(),Z=function(){return(Z=Object.assign||function(i){for(var a,s=1,v=arguments.length;s0&&v[v.length-1])||W[0]!==6&&W[0]!==2)){A=0;continue}if(W[0]===3&&(!v||W[1]>v[0]&&W[1]0&&A<8,s.isUnderIE8||(s.isUnderIE=A>0,a.needInitQimei&&$(a.appkey,function(G){s.qimei36=G.q36}),s.network=new we(a),s.storage=new V(a.appkey),s.initCommonInfo(a),s.store=new ne(a.appkey,s.storage),s.errorReport=new K(s.config,s.commonInfo,"web",s.network),s.strategy=new h(a.needQueryConfig==null||a.needQueryConfig,s.config,s.commonInfo,s.storage,s.network),s.logidStartTime=s.storage.getItem(E),s.logidStartTime||(s.logidStartTime=Date.now().toString(),s.storage.setItem(E,s.logidStartTime)),v=s.logidStartTime,R=Date.now()-Number.parseFloat(v),Math.floor(R/864e5)>=365&&s.storage.clear(),s.initSession(a),s.onDirectUserAction("rqd_js_init",{}),setTimeout(function(){return s.lifeCycle.emit("init")},0),s.initDelayTime=a.delay?a.delay:1e3,s.cycleTask(s.initDelayTime)),s}return function(a,s){if(typeof s!="function"&&s!==null)throw new TypeError("Class extends value "+String(s)+" is not a constructor or null");function v(){this.constructor=a}k(a,s),a.prototype=s===null?Object.create(s):(v.prototype=s.prototype,new v)}(i,d),i.prototype.initSession=function(a){var s=18e5;a.sessionDuration&&a.sessionDuration>3e4&&(s=a.sessionDuration),this.beaconSession=new N(this.storage,s,this)},i.prototype.initCommonInfo=function(a){var s=Number(this.storage.getItem(L));try{var v=JSON.parse(this.storage.getItem(z));(Date.now()-s>3e4||!v)&&this.storage.setItem(z,JSON.stringify([]))}catch(A){}a.uploadUrl&&(this.uploadUrl=a.uploadUrl+"?appkey="+a.appkey);var R=[window.screen.width,window.screen.height];window.devicePixelRatio&&R.push(window.devicePixelRatio),this.commonInfo={deviceId:this.storage.createDeviceId(),language:navigator&&navigator.language||"zh_CN",query:window.location.search,userAgent:navigator.userAgent,pixel:R.join("*"),channelID:a.channelID?String(a.channelID):"",openid:a.openid?String(a.openid):"",unid:a.unionid?String(a.unionid):"",sdkVersion:I},this.config.appVersion=a.versionCode?String(a.versionCode):"",this.config.strictMode=a.strictMode},i.prototype.cycleTask=function(a){var s=this;this.intervalID=window.setInterval(function(){s.pauseSearching||s.store.getEvents().then(function(v){v.length==0&&(s.pauseSearching=!0);var R=[],A=JSON.parse(s.storage.getItem(z));A||(A=[]),v&&v.forEach(function(G){var se=w(G.mapValue);A.indexOf(se)==-1&&(R.push(G),A.push(se))}),R.length!=0&&(s.storage.setItem(z,JSON.stringify(A)),s._normalLogPipeline(s.assembleData(R)))}).catch(function(v){})},a)},i.prototype.onReport=function(a,s,v){var R=this;if(this.isUnderIE8)this.errorReport.reportError("601","UnderIE8");else{this.pauseSearching=!1;var A=this.generateData(a,s,v);if(v&&this.delayTime==0&&!this.underWeakNet)this._normalLogPipeline(this.assembleData(A));else{var G=A.shift();G&&this.store.insertEvent(G,function(se){se&&R.errorReport.reportError("604","insertEvent fail!")}).catch(function(se){R._normalLogPipeline(R.assembleData(A))})}}},i.prototype.onSendBeacon=function(a,s){if(this.isUnderIE)this.errorReport.reportError("605","UnderIE");else{this.pauseSearching=!1;var v=this.assembleData(this.generateData(a,s,!0));typeof navigator.sendBeacon=="function"&&navigator.sendBeacon(this.uploadUrl||this.strategy.getUploadUrl(),JSON.stringify(v))}},i.prototype.generateData=function(a,s,v){var R=[],A="4.5.14-web_"+(v?"direct_log_id":"normal_log_id"),G=Number(this.storage.getItem(A));return G=G||1,s=_(_({},s),{A99:v?"Y":"N",A100:G.toString(),A72:I,A88:this.logidStartTime}),G++,this.storage.setItem(A,G.toString()),R.push({eventCode:a,eventTime:Date.now().toString(),mapValue:U(s,this.config.strictMode)}),R},i.prototype.assembleData=function(a){var s=this.beaconSession.getSession();return{appVersion:this.config.appVersion?le(this.config.appVersion):"",sdkId:"js",sdkVersion:I,mainAppKey:this.config.appkey,platformId:3,common:U(_(_({},this.additionalParams),{A2:this.commonInfo.deviceId,A8:this.commonInfo.openid,A12:this.commonInfo.language,A17:this.commonInfo.pixel,A23:this.commonInfo.channelID,A50:this.commonInfo.unid,A76:s.sessionId,A101:this.commonInfo.userAgent,A102:window.location.href,A104:document.referrer,A119:this.commonInfo.query,A153:this.qimei36}),!1),events:a}},i.prototype.monitorUploadFailed=function(){this.uselessCycleTaskNum++,this.uselessCycleTaskNum>=5&&(window.clearInterval(this.intervalID),this.cycleTask(6e4),this.underWeakNet=!0)},i.prototype.doCustomCycleTask=function(){this.uselessCycleTaskNum>=5&&(window.clearInterval(this.intervalID),this.cycleTask(this.initDelayTime)),this.uselessCycleTaskNum=0,this.underWeakNet=!1},i}(y)})},"./lib/crypto.js":function(p,m,u){(function(g){var T=u("./node_modules/@babel/runtime/helpers/typeof.js"),c=c||function(k,_){var ee={},O=ee.lib={},x=function(){},q=O.Base={extend:function(C){x.prototype=this;var y=new x;return C&&y.mixIn(C),y.hasOwnProperty("init")||(y.init=function(){y.$super.init.apply(this,arguments)}),y.init.prototype=y,y.$super=this,y},create:function(){var C=this.extend();return C.init.apply(C,arguments),C},init:function(){},mixIn:function(C){for(var y in C)C.hasOwnProperty(y)&&(this[y]=C[y]);C.hasOwnProperty("toString")&&(this.toString=C.toString)},clone:function(){return this.init.prototype.extend(this)}},L=O.WordArray=q.extend({init:function(C,y){C=this.words=C||[],this.sigBytes=y!=_?y:4*C.length},toString:function(C){return(C||B).stringify(this)},concat:function(C){var y=this.words,K=C.words,h=this.sigBytes;if(C=C.sigBytes,this.clamp(),h%4)for(var P=0;P>>2]|=(K[P>>>2]>>>24-8*(P%4)&255)<<24-8*((h+P)%4);else if(65535>>2]=K[P>>>2];else y.push.apply(y,K);return this.sigBytes+=C,this},clamp:function(){var C=this.words,y=this.sigBytes;C[y>>>2]&=4294967295<<32-8*(y%4),C.length=k.ceil(y/4)},clone:function(){var C=q.clone.call(this);return C.words=this.words.slice(0),C},random:function(C){for(var y=[],K=0;K>>2]>>>24-8*(h%4)&255;K.push((P>>>4).toString(16)),K.push((P&15).toString(16))}return K.join("")},parse:function(C){for(var y=C.length,K=[],h=0;h>>3]|=parseInt(C.substr(h,2),16)<<24-4*(h%8);return new L.init(K,y/2)}},j=z.Latin1={stringify:function(C){var y=C.words;C=C.sigBytes;for(var K=[],h=0;h>>2]>>>24-8*(h%4)&255));return K.join("")},parse:function(C){for(var y=C.length,K=[],h=0;h>>2]|=(C.charCodeAt(h)&255)<<24-8*(h%4);return new L.init(K,y)}},Q=z.Utf8={stringify:function(C){try{return decodeURIComponent(escape(j.stringify(C)))}catch(y){throw Error("Malformed UTF-8 data")}},parse:function(C){return j.parse(unescape(encodeURIComponent(C)))}},U=O.BufferedBlockAlgorithm=q.extend({reset:function(){this._data=new L.init,this._nDataBytes=0},_append:function(C){typeof C=="string"&&(C=Q.parse(C)),this._data.concat(C),this._nDataBytes+=C.sigBytes},_process:function(C){var y=this._data,K=y.words,h=y.sigBytes,P=this.blockSize,N=h/(4*P),N=C?k.ceil(N):k.max((N|0)-this._minBufferSize,0);if(C=N*P,h=k.min(4*C,h),C){for(var M=0;MC;C++){if(16>C)x[C]=L[z+C]|0;else{var y=x[C-3]^x[C-8]^x[C-14]^x[C-16];x[C]=y<<1|y>>>31}y=(j<<5|j>>>27)+w+x[C],y=20>C?y+((Q&U|~Q&le)+1518500249):40>C?y+((Q^U^le)+1859775393):60>C?y+((Q&U|Q&le|U&le)-1894007588):y+((Q^U^le)-899497514),w=le,le=U,U=Q<<30|Q>>>2,Q=j,j=y}B[0]=B[0]+j|0,B[1]=B[1]+Q|0,B[2]=B[2]+U|0,B[3]=B[3]+le|0,B[4]=B[4]+w|0},_doFinalize:function(){var L=this._data,z=L.words,B=8*this._nDataBytes,j=8*L.sigBytes;return z[j>>>5]|=128<<24-j%32,z[(j+64>>>9<<4)+14]=Math.floor(B/4294967296),z[(j+64>>>9<<4)+15]=B,L.sigBytes=4*z.length,this._process(),this._hash},clone:function(){var L=O.clone.call(this);return L._hash=this._hash.clone(),L}});k.SHA1=O._createHelper(_),k.HmacSHA1=O._createHmacHelper(_)})(),function(){var k=c,_=k.enc.Utf8;k.algo.HMAC=k.lib.Base.extend({init:function(O,x){O=this._hasher=new O.init,typeof x=="string"&&(x=_.parse(x));var q=O.blockSize,L=4*q;x.sigBytes>L&&(x=O.finalize(x)),x.clamp();for(var z=this._oKey=x.clone(),B=this._iKey=x.clone(),j=z.words,Q=B.words,U=0;U>>2]>>>24-U%4*8&255,w=z[U+1>>>2]>>>24-(U+1)%4*8&255,C=z[U+2>>>2]>>>24-(U+2)%4*8&255,y=le<<16|w<<8|C,K=0;K<4&&U+K*.75>>6*(3-K)&63));var h=j.charAt(64);if(h)for(;Q.length%4;)Q.push(h);return Q.join("")},parse:function(L){var z=L.length,B=this._map,j=B.charAt(64);if(j){var Q=L.indexOf(j);Q!=-1&&(z=Q)}for(var U=[],le=0,w=0;w>>6-w%4*2;U[le>>>2]|=(C|y)<<24-le%4*8,le++}return ee.create(U,le)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),T(g)==="object"?g.exports=c:window.CryptoJS=c}).call(this,u("./node_modules/webpack/buildin/module.js")(p))},"./lib/json2xml.js":function(p,m,u){var g=u("./node_modules/@babel/runtime/helpers/typeof.js"),T="a-zA-Z_\xC0-\xD6\xD8-\xF6\xF8-\xFF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FFF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD",c="-.0-9\xB7\u0300-\u036F\u203F\u2040",k=new RegExp("^([^"+T+"])|^((x|X)(m|M)(l|L))|([^"+T+c+"])","g"),_=/[^\x09\x0A\x0D\x20-\xFF\x85\xA0-\uD7FF\uE000-\uFDCF\uFDE0-\uFFFD]/gm,ee=function(z){var B=[];if(z instanceof Object)for(var j in z)z.hasOwnProperty(j)&&B.push(j);return B},O=function(z,B){var j=function(U,le,w,C,y){var K=B.indent!==void 0?B.indent:" ",h=B.prettyPrint?` +`+new Array(C).join(K):"";B.removeIllegalNameCharacters&&(U=U.replace(k,"_"));var P=[h,"<",U,w||""];return le&&le.length>0?(P.push(">"),P.push(le),y&&P.push(h),P.push("")):P.push("/>"),P.join("")};return function Q(U,le,w){var C=g(U);switch((Array.isArray?Array.isArray(U):U instanceof Array)?C="array":U instanceof Date&&(C="date"),C){case"array":var y=[];return U.map(function(N){y.push(Q(N,1,w+1))}),B.prettyPrint&&y.push(` +`),y.join("");break;case"date":return U.toJSON?U.toJSON():U+"";case"object":var K=[];for(var h in U)if(U.hasOwnProperty(h))if(U[h]instanceof Array)for(var P=0;P0&&K.push(` +`),K.join("");break;case"function":return U();default:return B.escape?q(U):""+U}}(z,0,0)},x=function(z){var B=['"),B.join("")};function q(L){return(""+L).replace(/&/g,"&").replace(//g,">").replace(/'/g,"'").replace(/"/g,""").replace(_,"")}p.exports=function(L,z){if(z||(z={xmlHeader:{standalone:!0},prettyPrint:!0,indent:" ",escape:!0}),typeof L=="string")try{L=JSON.parse(L.toString())}catch(U){return!1}var B="",j="";z&&(g(z)=="object"?(z.xmlHeader&&(B=x(!!z.xmlHeader.standalone)),typeof z.docType!="undefined"&&(j="")):B=x()),z=z||{};var Q=[B,z.prettyPrint&&j?` +`:"",j,O(L,z)];return Q.join("").replace(/\n{2,}/g,` +`).replace(/\s+$/g,"")}},"./lib/md5.js":function(module,exports,__nested_webpack_require_69768__){(function(process,global,module){var __WEBPACK_AMD_DEFINE_RESULT__,_typeof=__nested_webpack_require_69768__("./node_modules/@babel/runtime/helpers/typeof.js");(function(){"use strict";var ERROR="input is invalid type",WINDOW=(typeof window=="undefined"?"undefined":_typeof(window))==="object",root=WINDOW?window:{};root.JS_MD5_NO_WINDOW&&(WINDOW=!1);var WEB_WORKER=!WINDOW&&(typeof self=="undefined"?"undefined":_typeof(self))==="object",NODE_JS=!root.JS_MD5_NO_NODE_JS&&(typeof process=="undefined"?"undefined":_typeof(process))==="object"&&process.versions&&process.versions.node;NODE_JS?root=global:WEB_WORKER&&(root=self);var COMMON_JS=!root.JS_MD5_NO_COMMON_JS&&_typeof(module)==="object"&&module.exports,AMD=__nested_webpack_require_69768__("./node_modules/webpack/buildin/amd-options.js"),ARRAY_BUFFER=!root.JS_MD5_NO_ARRAY_BUFFER&&typeof ArrayBuffer!="undefined",HEX_CHARS="0123456789abcdef".split(""),EXTRA=[128,32768,8388608,-2147483648],SHIFT=[0,8,16,24],OUTPUT_TYPES=["hex","array","digest","buffer","arrayBuffer","base64"],BASE64_ENCODE_CHAR="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),blocks=[],buffer8;if(ARRAY_BUFFER){var buffer=new ArrayBuffer(68);buffer8=new Uint8Array(buffer),blocks=new Uint32Array(buffer)}(root.JS_MD5_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(p){return Object.prototype.toString.call(p)==="[object Array]"}),ARRAY_BUFFER&&(root.JS_MD5_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(p){return _typeof(p)==="object"&&p.buffer&&p.buffer.constructor===ArrayBuffer});var createOutputMethod=function(m){return function(u,g){return new Md5(!0).update(u,g)[m]()}},createMethod=function(){var m=createOutputMethod("hex");NODE_JS&&(m=nodeWrap(m)),m.getCtx=m.create=function(){return new Md5},m.update=function(T){return m.create().update(T)};for(var u=0;u>6,_[T++]=128|u&63):u<55296||u>=57344?(_[T++]=224|u>>12,_[T++]=128|u>>6&63,_[T++]=128|u&63):(u=65536+((u&1023)<<10|p.charCodeAt(++g)&1023),_[T++]=240|u>>18,_[T++]=128|u>>12&63,_[T++]=128|u>>6&63,_[T++]=128|u&63);else for(T=this.start;g>2]|=u<>2]|=(192|u>>6)<>2]|=(128|u&63)<=57344?(k[T>>2]|=(224|u>>12)<>2]|=(128|u>>6&63)<>2]|=(128|u&63)<>2]|=(240|u>>18)<>2]|=(128|u>>12&63)<>2]|=(128|u>>6&63)<>2]|=(128|u&63)<=64?(this.start=T-64,this.hash(),this.hashed=!0):this.start=T}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},Md5.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var p=this.blocks,m=this.lastByteIndex;p[m>>2]|=EXTRA[m&3],m>=56&&(this.hashed||this.hash(),p[0]=p[16],p[16]=p[1]=p[2]=p[3]=p[4]=p[5]=p[6]=p[7]=p[8]=p[9]=p[10]=p[11]=p[12]=p[13]=p[14]=p[15]=0),p[14]=this.bytes<<3,p[15]=this.hBytes<<3|this.bytes>>>29,this.hash()}},Md5.prototype.hash=function(){var p,m,u,g,T,c,k=this.blocks;this.first?(p=k[0]-680876937,p=(p<<7|p>>>25)-271733879<<0,g=(-1732584194^p&2004318071)+k[1]-117830708,g=(g<<12|g>>>20)+p<<0,u=(-271733879^g&(p^-271733879))+k[2]-1126478375,u=(u<<17|u>>>15)+g<<0,m=(p^u&(g^p))+k[3]-1316259209,m=(m<<22|m>>>10)+u<<0):(p=this.h0,m=this.h1,u=this.h2,g=this.h3,p+=(g^m&(u^g))+k[0]-680876936,p=(p<<7|p>>>25)+m<<0,g+=(u^p&(m^u))+k[1]-389564586,g=(g<<12|g>>>20)+p<<0,u+=(m^g&(p^m))+k[2]+606105819,u=(u<<17|u>>>15)+g<<0,m+=(p^u&(g^p))+k[3]-1044525330,m=(m<<22|m>>>10)+u<<0),p+=(g^m&(u^g))+k[4]-176418897,p=(p<<7|p>>>25)+m<<0,g+=(u^p&(m^u))+k[5]+1200080426,g=(g<<12|g>>>20)+p<<0,u+=(m^g&(p^m))+k[6]-1473231341,u=(u<<17|u>>>15)+g<<0,m+=(p^u&(g^p))+k[7]-45705983,m=(m<<22|m>>>10)+u<<0,p+=(g^m&(u^g))+k[8]+1770035416,p=(p<<7|p>>>25)+m<<0,g+=(u^p&(m^u))+k[9]-1958414417,g=(g<<12|g>>>20)+p<<0,u+=(m^g&(p^m))+k[10]-42063,u=(u<<17|u>>>15)+g<<0,m+=(p^u&(g^p))+k[11]-1990404162,m=(m<<22|m>>>10)+u<<0,p+=(g^m&(u^g))+k[12]+1804603682,p=(p<<7|p>>>25)+m<<0,g+=(u^p&(m^u))+k[13]-40341101,g=(g<<12|g>>>20)+p<<0,u+=(m^g&(p^m))+k[14]-1502002290,u=(u<<17|u>>>15)+g<<0,m+=(p^u&(g^p))+k[15]+1236535329,m=(m<<22|m>>>10)+u<<0,p+=(u^g&(m^u))+k[1]-165796510,p=(p<<5|p>>>27)+m<<0,g+=(m^u&(p^m))+k[6]-1069501632,g=(g<<9|g>>>23)+p<<0,u+=(p^m&(g^p))+k[11]+643717713,u=(u<<14|u>>>18)+g<<0,m+=(g^p&(u^g))+k[0]-373897302,m=(m<<20|m>>>12)+u<<0,p+=(u^g&(m^u))+k[5]-701558691,p=(p<<5|p>>>27)+m<<0,g+=(m^u&(p^m))+k[10]+38016083,g=(g<<9|g>>>23)+p<<0,u+=(p^m&(g^p))+k[15]-660478335,u=(u<<14|u>>>18)+g<<0,m+=(g^p&(u^g))+k[4]-405537848,m=(m<<20|m>>>12)+u<<0,p+=(u^g&(m^u))+k[9]+568446438,p=(p<<5|p>>>27)+m<<0,g+=(m^u&(p^m))+k[14]-1019803690,g=(g<<9|g>>>23)+p<<0,u+=(p^m&(g^p))+k[3]-187363961,u=(u<<14|u>>>18)+g<<0,m+=(g^p&(u^g))+k[8]+1163531501,m=(m<<20|m>>>12)+u<<0,p+=(u^g&(m^u))+k[13]-1444681467,p=(p<<5|p>>>27)+m<<0,g+=(m^u&(p^m))+k[2]-51403784,g=(g<<9|g>>>23)+p<<0,u+=(p^m&(g^p))+k[7]+1735328473,u=(u<<14|u>>>18)+g<<0,m+=(g^p&(u^g))+k[12]-1926607734,m=(m<<20|m>>>12)+u<<0,T=m^u,p+=(T^g)+k[5]-378558,p=(p<<4|p>>>28)+m<<0,g+=(T^p)+k[8]-2022574463,g=(g<<11|g>>>21)+p<<0,c=g^p,u+=(c^m)+k[11]+1839030562,u=(u<<16|u>>>16)+g<<0,m+=(c^u)+k[14]-35309556,m=(m<<23|m>>>9)+u<<0,T=m^u,p+=(T^g)+k[1]-1530992060,p=(p<<4|p>>>28)+m<<0,g+=(T^p)+k[4]+1272893353,g=(g<<11|g>>>21)+p<<0,c=g^p,u+=(c^m)+k[7]-155497632,u=(u<<16|u>>>16)+g<<0,m+=(c^u)+k[10]-1094730640,m=(m<<23|m>>>9)+u<<0,T=m^u,p+=(T^g)+k[13]+681279174,p=(p<<4|p>>>28)+m<<0,g+=(T^p)+k[0]-358537222,g=(g<<11|g>>>21)+p<<0,c=g^p,u+=(c^m)+k[3]-722521979,u=(u<<16|u>>>16)+g<<0,m+=(c^u)+k[6]+76029189,m=(m<<23|m>>>9)+u<<0,T=m^u,p+=(T^g)+k[9]-640364487,p=(p<<4|p>>>28)+m<<0,g+=(T^p)+k[12]-421815835,g=(g<<11|g>>>21)+p<<0,c=g^p,u+=(c^m)+k[15]+530742520,u=(u<<16|u>>>16)+g<<0,m+=(c^u)+k[2]-995338651,m=(m<<23|m>>>9)+u<<0,p+=(u^(m|~g))+k[0]-198630844,p=(p<<6|p>>>26)+m<<0,g+=(m^(p|~u))+k[7]+1126891415,g=(g<<10|g>>>22)+p<<0,u+=(p^(g|~m))+k[14]-1416354905,u=(u<<15|u>>>17)+g<<0,m+=(g^(u|~p))+k[5]-57434055,m=(m<<21|m>>>11)+u<<0,p+=(u^(m|~g))+k[12]+1700485571,p=(p<<6|p>>>26)+m<<0,g+=(m^(p|~u))+k[3]-1894986606,g=(g<<10|g>>>22)+p<<0,u+=(p^(g|~m))+k[10]-1051523,u=(u<<15|u>>>17)+g<<0,m+=(g^(u|~p))+k[1]-2054922799,m=(m<<21|m>>>11)+u<<0,p+=(u^(m|~g))+k[8]+1873313359,p=(p<<6|p>>>26)+m<<0,g+=(m^(p|~u))+k[15]-30611744,g=(g<<10|g>>>22)+p<<0,u+=(p^(g|~m))+k[6]-1560198380,u=(u<<15|u>>>17)+g<<0,m+=(g^(u|~p))+k[13]+1309151649,m=(m<<21|m>>>11)+u<<0,p+=(u^(m|~g))+k[4]-145523070,p=(p<<6|p>>>26)+m<<0,g+=(m^(p|~u))+k[11]-1120210379,g=(g<<10|g>>>22)+p<<0,u+=(p^(g|~m))+k[2]+718787259,u=(u<<15|u>>>17)+g<<0,m+=(g^(u|~p))+k[9]-343485551,m=(m<<21|m>>>11)+u<<0,this.first?(this.h0=p+1732584193<<0,this.h1=m-271733879<<0,this.h2=u-1732584194<<0,this.h3=g+271733878<<0,this.first=!1):(this.h0=this.h0+p<<0,this.h1=this.h1+m<<0,this.h2=this.h2+u<<0,this.h3=this.h3+g<<0)},Md5.prototype.hex=function(){this.finalize();var p=this.h0,m=this.h1,u=this.h2,g=this.h3;return HEX_CHARS[p>>4&15]+HEX_CHARS[p&15]+HEX_CHARS[p>>12&15]+HEX_CHARS[p>>8&15]+HEX_CHARS[p>>20&15]+HEX_CHARS[p>>16&15]+HEX_CHARS[p>>28&15]+HEX_CHARS[p>>24&15]+HEX_CHARS[m>>4&15]+HEX_CHARS[m&15]+HEX_CHARS[m>>12&15]+HEX_CHARS[m>>8&15]+HEX_CHARS[m>>20&15]+HEX_CHARS[m>>16&15]+HEX_CHARS[m>>28&15]+HEX_CHARS[m>>24&15]+HEX_CHARS[u>>4&15]+HEX_CHARS[u&15]+HEX_CHARS[u>>12&15]+HEX_CHARS[u>>8&15]+HEX_CHARS[u>>20&15]+HEX_CHARS[u>>16&15]+HEX_CHARS[u>>28&15]+HEX_CHARS[u>>24&15]+HEX_CHARS[g>>4&15]+HEX_CHARS[g&15]+HEX_CHARS[g>>12&15]+HEX_CHARS[g>>8&15]+HEX_CHARS[g>>20&15]+HEX_CHARS[g>>16&15]+HEX_CHARS[g>>28&15]+HEX_CHARS[g>>24&15]},Md5.prototype.toString=Md5.prototype.hex,Md5.prototype.digest=function(p){if(p==="hex")return this.hex();this.finalize();var m=this.h0,u=this.h1,g=this.h2,T=this.h3,c=[m&255,m>>8&255,m>>16&255,m>>24&255,u&255,u>>8&255,u>>16&255,u>>24&255,g&255,g>>8&255,g>>16&255,g>>24&255,T&255,T>>8&255,T>>16&255,T>>24&255];return c},Md5.prototype.array=Md5.prototype.digest,Md5.prototype.arrayBuffer=function(){this.finalize();var p=new ArrayBuffer(16),m=new Uint32Array(p);return m[0]=this.h0,m[1]=this.h1,m[2]=this.h2,m[3]=this.h3,p},Md5.prototype.buffer=Md5.prototype.arrayBuffer,Md5.prototype.base64=function(){for(var p,m,u,g="",T=this.array(),c=0;c<15;)p=T[c++],m=T[c++],u=T[c++],g+=BASE64_ENCODE_CHAR[p>>>2]+BASE64_ENCODE_CHAR[(p<<4|m>>>4)&63]+BASE64_ENCODE_CHAR[(m<<2|u>>>6)&63]+BASE64_ENCODE_CHAR[u&63];return p=T[c],g+=BASE64_ENCODE_CHAR[p>>>2]+BASE64_ENCODE_CHAR[p<<4&63]+"==",g};var exports=createMethod();COMMON_JS?module.exports=exports:(root.md5=exports,AMD&&(__WEBPACK_AMD_DEFINE_RESULT__=function(){return exports}.call(exports,__nested_webpack_require_69768__,exports,module),__WEBPACK_AMD_DEFINE_RESULT__!==void 0&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__)))})()}).call(this,__nested_webpack_require_69768__("./node_modules/process/browser.js"),__nested_webpack_require_69768__("./node_modules/webpack/buildin/global.js"),__nested_webpack_require_69768__("./node_modules/webpack/buildin/module.js")(module))},"./lib/request.js":function(p,m,u){var g=u("./node_modules/@babel/runtime/helpers/typeof.js"),T=function(x){switch(g(x)){case"string":return x;case"boolean":return x?"true":"false";case"number":return isFinite(x)?x:"";default:return""}},c=function(x,q,L,z){return q=q||"&",L=L||"=",x===null&&(x=void 0),g(x)==="object"?Object.keys(x).map(function(B){var j=encodeURIComponent(T(B))+L;return Array.isArray(x[B])?x[B].map(function(Q){return j+encodeURIComponent(T(Q))}).join(q):j+encodeURIComponent(T(x[B]))}).filter(Boolean).join(q):z?encodeURIComponent(T(z))+L+encodeURIComponent(T(x)):""},k=function(x,q,L){var z={};return q.getAllResponseHeaders().trim().split(` +`).forEach(function(B){if(B){var j=B.indexOf(":"),Q=B.substr(0,j).trim().toLowerCase(),U=B.substr(j+1).trim();z[Q]=U}}),{error:x,statusCode:q.status,statusMessage:q.statusText,headers:z,body:L}},_=function(x,q){return!q&&q==="text"?x.responseText:x.response},ee=function(x,q){var L=(x.method||"GET").toUpperCase(),z=x.url;if(x.qs){var B=c(x.qs);B&&(z+=(z.indexOf("?")===-1?"?":"&")+B)}var j=new XMLHttpRequest;if(j.open(L,z,!0),j.responseType=x.dataType||"text",x.xhrFields)for(var Q in x.xhrFields)j[Q]=x.xhrFields[Q];var U=x.headers;if(U)for(var le in U)U.hasOwnProperty(le)&&le.toLowerCase()!=="content-length"&&le.toLowerCase()!=="user-agent"&&le.toLowerCase()!=="origin"&&le.toLowerCase()!=="host"&&j.setRequestHeader(le,U[le]);return x.onProgress&&j.upload&&(j.upload.onprogress=x.onProgress),x.onDownloadProgress&&(j.onprogress=x.onDownloadProgress),x.timeout&&(j.timeout=x.timeout),j.ontimeout=function(w){var C=new Error("timeout");q(k(C,j))},j.onload=function(){q(k(null,j,_(j,x.dataType)))},j.onerror=function(w){var C=_(j,x.dataType);if(C)q(k(null,j,C));else{var y=j.statusText;!y&&j.status===0&&(y=new Error("CORS blocked or network error")),q(k(y,j,C))}},j.send(x.body||""),j};p.exports=ee},"./lib/xml2json.js":function(p,m,u){var g=u("./node_modules/@xmldom/xmldom/lib/index.js").DOMParser,T=function(){this.version="1.3.5";var k={mergeCDATA:!0,normalize:!0,stripElemPrefix:!0},_=new RegExp(/(?!xmlns)^.*:/),ee=new RegExp(/^\s+|\s+$/g);return this.grokType=function(O){return/^\s*$/.test(O)?null:/^(?:true|false)$/i.test(O)?O.toLowerCase()==="true":isFinite(O)?parseFloat(O):O},this.parseString=function(O,x){if(O){var q=this.stringToXML(O);return q.getElementsByTagName("parsererror").length?null:this.parseXML(q,x)}else return null},this.parseXML=function(O,x){for(var q in x)k[q]=x[q];var L={},z=0,B="",j=O.childNodes.length;if(j)for(var Q,U,le,w=0;w=C+y||C?new java.lang.String(w,C,y)+"":w}"endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl".replace(/\w+/g,function(w){B.prototype[w]=function(){return null}});function le(w,C){w.currentElement?w.currentElement.appendChild(C):w.doc.appendChild(C)}m.__DOMHandler=B,m.normalizeLineEndings=q,m.DOMParser=L},"./node_modules/@xmldom/xmldom/lib/dom.js":function(p,m,u){var g=u("./node_modules/@xmldom/xmldom/lib/conventions.js"),T=g.find,c=g.NAMESPACE;function k(e){return e!==""}function _(e){return e?e.split(/[\t\n\f\r ]+/).filter(k):[]}function ee(e,n){return e.hasOwnProperty(n)||(e[n]=!0),e}function O(e){if(!e)return[];var n=_(e);return Object.keys(n.reduce(ee,{}))}function x(e){return function(n){return e&&e.indexOf(n)!==-1}}function q(e,n){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r])}function L(e,n){var r=e.prototype;if(!(r instanceof n)){let f=function(){};var o=f;f.prototype=n.prototype,f=new f,q(r,f),e.prototype=r=f}r.constructor!=e&&(typeof e!="function"&&console.error("unknown Class:"+e),r.constructor=e)}var z={},B=z.ELEMENT_NODE=1,j=z.ATTRIBUTE_NODE=2,Q=z.TEXT_NODE=3,U=z.CDATA_SECTION_NODE=4,le=z.ENTITY_REFERENCE_NODE=5,w=z.ENTITY_NODE=6,C=z.PROCESSING_INSTRUCTION_NODE=7,y=z.COMMENT_NODE=8,K=z.DOCUMENT_NODE=9,h=z.DOCUMENT_TYPE_NODE=10,P=z.DOCUMENT_FRAGMENT_NODE=11,N=z.NOTATION_NODE=12,M={},$={},b=M.INDEX_SIZE_ERR=($[1]="Index size error",1),H=M.DOMSTRING_SIZE_ERR=($[2]="DOMString size error",2),D=M.HIERARCHY_REQUEST_ERR=($[3]="Hierarchy request error",3),X=M.WRONG_DOCUMENT_ERR=($[4]="Wrong document",4),J=M.INVALID_CHARACTER_ERR=($[5]="Invalid character",5),ae=M.NO_DATA_ALLOWED_ERR=($[6]="No data allowed",6),ie=M.NO_MODIFICATION_ALLOWED_ERR=($[7]="No modification allowed",7),ne=M.NOT_FOUND_ERR=($[8]="Not found",8),Z=M.NOT_SUPPORTED_ERR=($[9]="Not supported",9),te=M.INUSE_ATTRIBUTE_ERR=($[10]="Attribute in use",10),oe=M.INVALID_STATE_ERR=($[11]="Invalid state",11),be=M.SYNTAX_ERR=($[12]="Syntax error",12),ce=M.INVALID_MODIFICATION_ERR=($[13]="Invalid modification",13),Y=M.NAMESPACE_ERR=($[14]="Invalid namespace",14),he=M.INVALID_ACCESS_ERR=($[15]="Invalid access",15);function re(e,n){if(n instanceof Error)var r=n;else r=this,Error.call(this,$[e]),this.message=$[e],Error.captureStackTrace&&Error.captureStackTrace(this,re);return r.code=e,n&&(this.message=this.message+": "+n),r}re.prototype=Error.prototype,q(M,re);function ue(){}ue.prototype={length:0,item:function(e){return this[e]||null},toString:function(e,n){for(var r=[],o=0;o=0){for(var f=n.length-1;o0},lookupPrefix:function(e){for(var n=this;n;){var r=n._nsMap;if(r){for(var o in r)if(Object.prototype.hasOwnProperty.call(r,o)&&r[o]===e)return o}n=n.nodeType==j?n.ownerDocument:n.parentNode}return null},lookupNamespaceURI:function(e){for(var n=this;n;){var r=n._nsMap;if(r&&Object.prototype.hasOwnProperty.call(r,e))return r[e];n=n.nodeType==j?n.ownerDocument:n.parentNode}return null},isDefaultNamespace:function(e){var n=this.lookupPrefix(e);return n==null}};function E(e){return e=="<"&&"<"||e==">"&&">"||e=="&"&&"&"||e=='"'&&"""||"&#"+e.charCodeAt()+";"}q(z,V),q(z,V.prototype);function I(e,n){if(n(e))return!0;if(e=e.firstChild)do if(I(e,n))return!0;while(e=e.nextSibling)}function d(){this.ownerDocument=this}function i(e,n,r){e&&e._inc++;var o=r.namespaceURI;o===c.XMLNS&&(n._nsMap[r.prefix?r.localName:""]=r.value)}function a(e,n,r,o){e&&e._inc++;var f=r.namespaceURI;f===c.XMLNS&&delete n._nsMap[r.prefix?r.localName:""]}function s(e,n,r){if(e&&e._inc){e._inc++;var o=n.childNodes;if(r)o[o.length++]=r;else{for(var f=n.firstChild,S=0;f;)o[S++]=f,f=f.nextSibling;o.length=S,delete o[o.length]}}}function v(e,n){var r=n.previousSibling,o=n.nextSibling;return r?r.nextSibling=o:e.firstChild=o,o?o.previousSibling=r:e.lastChild=r,n.parentNode=null,n.previousSibling=null,n.nextSibling=null,s(e.ownerDocument,e),n}function R(e){return e&&(e.nodeType===V.DOCUMENT_NODE||e.nodeType===V.DOCUMENT_FRAGMENT_NODE||e.nodeType===V.ELEMENT_NODE)}function A(e){return e&&(se(e)||me(e)||G(e)||e.nodeType===V.DOCUMENT_FRAGMENT_NODE||e.nodeType===V.COMMENT_NODE||e.nodeType===V.PROCESSING_INSTRUCTION_NODE)}function G(e){return e&&e.nodeType===V.DOCUMENT_TYPE_NODE}function se(e){return e&&e.nodeType===V.ELEMENT_NODE}function me(e){return e&&e.nodeType===V.TEXT_NODE}function W(e,n){var r=e.childNodes||[];if(T(r,se)||G(n))return!1;var o=T(r,G);return!(n&&o&&r.indexOf(o)>r.indexOf(n))}function Oe(e,n){var r=e.childNodes||[];function o(S){return se(S)&&S!==n}if(T(r,o))return!1;var f=T(r,G);return!(n&&f&&r.indexOf(f)>r.indexOf(n))}function ke(e,n,r){if(!R(e))throw new re(D,"Unexpected parent node type "+e.nodeType);if(r&&r.parentNode!==e)throw new re(ne,"child not in parent");if(!A(n)||G(n)&&e.nodeType!==V.DOCUMENT_NODE)throw new re(D,"Unexpected node type "+n.nodeType+" for parent node type "+e.nodeType)}function Ie(e,n,r){var o=e.childNodes||[],f=n.childNodes||[];if(n.nodeType===V.DOCUMENT_FRAGMENT_NODE){var S=f.filter(se);if(S.length>1||T(f,me))throw new re(D,"More than one element or text in fragment");if(S.length===1&&!W(e,r))throw new re(D,"Element in fragment can not be inserted before doctype")}if(se(n)&&!W(e,r))throw new re(D,"Only one element can be added and only after doctype");if(G(n)){if(T(o,G))throw new re(D,"Only one doctype is allowed");var F=T(o,se);if(r&&o.indexOf(F)1||T(f,me))throw new re(D,"More than one element or text in fragment");if(S.length===1&&!Oe(e,r))throw new re(D,"Element in fragment can not be inserted before doctype")}if(se(n)&&!Oe(e,r))throw new re(D,"Only one element can be added and only after doctype");if(G(n)){let Ce=function(ve){return G(ve)&&ve!==r};var ge=Ce;if(T(o,Ce))throw new re(D,"Only one doctype is allowed");var F=T(o,se);if(r&&o.indexOf(F)0&&I(r.documentElement,function(f){if(f!==r&&f.nodeType===B){var S=f.getAttribute("class");if(S){var F=e===S;if(!F){var ge=O(S);F=n.every(x(ge))}F&&o.push(f)}}}),o})},createElement:function(e){var n=new Le;n.ownerDocument=this,n.nodeName=e,n.tagName=e,n.localName=e,n.childNodes=new ue;var r=n.attributes=new ye;return r._ownerElement=n,n},createDocumentFragment:function(){var e=new Xe;return e.ownerDocument=this,e.childNodes=new ue,e},createTextNode:function(e){var n=new Ke;return n.ownerDocument=this,n.appendData(e),n},createComment:function(e){var n=new We;return n.ownerDocument=this,n.appendData(e),n},createCDATASection:function(e){var n=new nt;return n.ownerDocument=this,n.appendData(e),n},createProcessingInstruction:function(e,n){var r=new Ve;return r.ownerDocument=this,r.tagName=r.target=e,r.nodeValue=r.data=n,r},createAttribute:function(e){var n=new je;return n.ownerDocument=this,n.name=e,n.nodeName=e,n.localName=e,n.specified=!0,n},createEntityReference:function(e){var n=new Je;return n.ownerDocument=this,n.nodeName=e,n},createElementNS:function(e,n){var r=new Le,o=n.split(":"),f=r.attributes=new ye;return r.childNodes=new ue,r.ownerDocument=this,r.nodeName=n,r.tagName=n,r.namespaceURI=e,o.length==2?(r.prefix=o[0],r.localName=o[1]):r.localName=n,f._ownerElement=r,r},createAttributeNS:function(e,n){var r=new je,o=n.split(":");return r.ownerDocument=this,r.nodeName=n,r.name=n,r.namespaceURI=e,r.specified=!0,o.length==2?(r.prefix=o[0],r.localName=o[1]):r.localName=n,r}},L(d,V);function Le(){this._nsMap={}}Le.prototype={nodeType:B,hasAttribute:function(e){return this.getAttributeNode(e)!=null},getAttribute:function(e){var n=this.getAttributeNode(e);return n&&n.value||""},getAttributeNode:function(e){return this.attributes.getNamedItem(e)},setAttribute:function(e,n){var r=this.ownerDocument.createAttribute(e);r.value=r.nodeValue=""+n,this.setAttributeNode(r)},removeAttribute:function(e){var n=this.getAttributeNode(e);n&&this.removeAttributeNode(n)},appendChild:function(e){return e.nodeType===P?this.insertBefore(e,null):Ge(this,e)},setAttributeNode:function(e){return this.attributes.setNamedItem(e)},setAttributeNodeNS:function(e){return this.attributes.setNamedItemNS(e)},removeAttributeNode:function(e){return this.attributes.removeNamedItem(e.nodeName)},removeAttributeNS:function(e,n){var r=this.getAttributeNodeNS(e,n);r&&this.removeAttributeNode(r)},hasAttributeNS:function(e,n){return this.getAttributeNodeNS(e,n)!=null},getAttributeNS:function(e,n){var r=this.getAttributeNodeNS(e,n);return r&&r.value||""},setAttributeNS:function(e,n,r){var o=this.ownerDocument.createAttributeNS(e,n);o.value=o.nodeValue=""+r,this.setAttributeNode(o)},getAttributeNodeNS:function(e,n){return this.attributes.getNamedItemNS(e,n)},getElementsByTagName:function(e){return new pe(this,function(n){var r=[];return I(n,function(o){o!==n&&o.nodeType==B&&(e==="*"||o.tagName==e)&&r.push(o)}),r})},getElementsByTagNameNS:function(e,n){return new pe(this,function(r){var o=[];return I(r,function(f){f!==r&&f.nodeType===B&&(e==="*"||f.namespaceURI===e)&&(n==="*"||f.localName==n)&&o.push(f)}),o})}},d.prototype.getElementsByTagName=Le.prototype.getElementsByTagName,d.prototype.getElementsByTagNameNS=Le.prototype.getElementsByTagNameNS,L(Le,V);function je(){}je.prototype.nodeType=j,L(je,V);function Ne(){}Ne.prototype={data:"",substringData:function(e,n){return this.data.substring(e,e+n)},appendData:function(e){e=this.data+e,this.nodeValue=this.data=e,this.length=e.length},insertData:function(e,n){this.replaceData(e,0,n)},appendChild:function(e){throw new Error($[D])},deleteData:function(e,n){this.replaceData(e,n,"")},replaceData:function(e,n,r){var o=this.data.substring(0,e),f=this.data.substring(e+n);r=o+r+f,this.nodeValue=this.data=r,this.length=r.length}},L(Ne,V);function Ke(){}Ke.prototype={nodeName:"#text",nodeType:Q,splitText:function(e){var n=this.data,r=n.substring(e);n=n.substring(0,e),this.data=this.nodeValue=n,this.length=n.length;var o=this.ownerDocument.createTextNode(r);return this.parentNode&&this.parentNode.insertBefore(o,this.nextSibling),o}},L(Ke,Ne);function We(){}We.prototype={nodeName:"#comment",nodeType:y},L(We,Ne);function nt(){}nt.prototype={nodeName:"#cdata-section",nodeType:U},L(nt,Ne);function Ye(){}Ye.prototype.nodeType=h,L(Ye,V);function Ze(){}Ze.prototype.nodeType=N,L(Ze,V);function ot(){}ot.prototype.nodeType=w,L(ot,V);function Je(){}Je.prototype.nodeType=le,L(Je,V);function Xe(){}Xe.prototype.nodeName="#document-fragment",Xe.prototype.nodeType=P,L(Xe,V);function Ve(){}Ve.prototype.nodeType=C,L(Ve,V);function rt(){}rt.prototype.serializeToString=function(e,n,r){return Qe.call(e,n,r)},V.prototype.toString=Qe;function Qe(e,n){var r=[],o=this.nodeType==9&&this.documentElement||this,f=o.prefix,S=o.namespaceURI;if(S&&f==null){var f=o.lookupPrefix(S);if(f==null)var F=[{namespace:S,prefix:null}]}return tt(this,r,e,n,F),r.join("")}function et(e,n,r){var o=e.prefix||"",f=e.namespaceURI;if(!f||o==="xml"&&f===c.XML||f===c.XMLNS)return!1;for(var S=r.length;S--;){var F=r[S];if(F.prefix===o)return F.namespace!==f}return!0}function de(e,n,r){e.push(" ",n,'="',r.replace(/[<>&"\t\n\r]/g,E),'"')}function tt(e,n,r,o,f){if(f||(f=[]),o)if(e=o(e),e){if(typeof e=="string"){n.push(e);return}}else return;switch(e.nodeType){case B:var S=e.attributes,F=S.length,ge=e.firstChild,Ce=e.tagName;r=c.isHTML(e.namespaceURI)||r;var ve=Ce;if(!r&&!e.prefix&&e.namespaceURI){for(var Te,Be=0;Be=0;Fe--){var ze=f[Fe];if(ze.prefix===""&&ze.namespace===e.namespaceURI){Te=ze.namespace;break}}if(Te!==e.namespaceURI)for(var Fe=f.length-1;Fe>=0;Fe--){var ze=f[Fe];if(ze.namespace===e.namespaceURI){ze.prefix&&(ve=ze.prefix+":"+Ce);break}}}n.push("<",ve);for(var He=0;He"),r&&/^script$/i.test(Ce))for(;ge;)ge.data?n.push(ge.data):tt(ge,n,r,o,f.slice()),ge=ge.nextSibling;else for(;ge;)tt(ge,n,r,o,f.slice()),ge=ge.nextSibling;n.push("")}else n.push("/>");return;case K:case P:for(var ge=e.firstChild;ge;)tt(ge,n,r,o,f.slice()),ge=ge.nextSibling;return;case j:return de(n,e.name,e.value);case Q:return n.push(e.data.replace(/[<&>]/g,E));case U:return n.push("");case y:return n.push("");case h:var Ee=e.publicId,_e=e.systemId;if(n.push("");else if(_e&&_e!=".")n.push(" SYSTEM ",_e,">");else{var De=e.internalSubset;De&&n.push(" [",De,"]"),n.push(">")}return;case C:return n.push("");case le:return n.push("&",e.nodeName,";");default:n.push("??",e.nodeName)}}function st(e,n,r){var o;switch(n.nodeType){case B:o=n.cloneNode(!1),o.ownerDocument=e;case P:break;case j:r=!0;break}if(o||(o=n.cloneNode(!1)),o.ownerDocument=e,o.parentNode=null,r)for(var f=n.firstChild;f;)o.appendChild(st(e,f,r)),f=f.nextSibling;return o}function at(e,n,r){var o=new n.constructor;for(var f in n)if(Object.prototype.hasOwnProperty.call(n,f)){var S=n[f];typeof S!="object"&&S!=o[f]&&(o[f]=S)}switch(n.childNodes&&(o.childNodes=new ue),o.ownerDocument=e,o.nodeType){case B:var F=n.attributes,ge=o.attributes=new ye,Ce=F.length;ge._ownerElement=o;for(var ve=0;ve",lt:"<",quot:'"'}),m.HTML_ENTITIES=g({lt:"<",gt:">",amp:"&",quot:'"',apos:"'",Agrave:"\xC0",Aacute:"\xC1",Acirc:"\xC2",Atilde:"\xC3",Auml:"\xC4",Aring:"\xC5",AElig:"\xC6",Ccedil:"\xC7",Egrave:"\xC8",Eacute:"\xC9",Ecirc:"\xCA",Euml:"\xCB",Igrave:"\xCC",Iacute:"\xCD",Icirc:"\xCE",Iuml:"\xCF",ETH:"\xD0",Ntilde:"\xD1",Ograve:"\xD2",Oacute:"\xD3",Ocirc:"\xD4",Otilde:"\xD5",Ouml:"\xD6",Oslash:"\xD8",Ugrave:"\xD9",Uacute:"\xDA",Ucirc:"\xDB",Uuml:"\xDC",Yacute:"\xDD",THORN:"\xDE",szlig:"\xDF",agrave:"\xE0",aacute:"\xE1",acirc:"\xE2",atilde:"\xE3",auml:"\xE4",aring:"\xE5",aelig:"\xE6",ccedil:"\xE7",egrave:"\xE8",eacute:"\xE9",ecirc:"\xEA",euml:"\xEB",igrave:"\xEC",iacute:"\xED",icirc:"\xEE",iuml:"\xEF",eth:"\xF0",ntilde:"\xF1",ograve:"\xF2",oacute:"\xF3",ocirc:"\xF4",otilde:"\xF5",ouml:"\xF6",oslash:"\xF8",ugrave:"\xF9",uacute:"\xFA",ucirc:"\xFB",uuml:"\xFC",yacute:"\xFD",thorn:"\xFE",yuml:"\xFF",nbsp:"\xA0",iexcl:"\xA1",cent:"\xA2",pound:"\xA3",curren:"\xA4",yen:"\xA5",brvbar:"\xA6",sect:"\xA7",uml:"\xA8",copy:"\xA9",ordf:"\xAA",laquo:"\xAB",not:"\xAC",shy:"\xAD\xAD",reg:"\xAE",macr:"\xAF",deg:"\xB0",plusmn:"\xB1",sup2:"\xB2",sup3:"\xB3",acute:"\xB4",micro:"\xB5",para:"\xB6",middot:"\xB7",cedil:"\xB8",sup1:"\xB9",ordm:"\xBA",raquo:"\xBB",frac14:"\xBC",frac12:"\xBD",frac34:"\xBE",iquest:"\xBF",times:"\xD7",divide:"\xF7",forall:"\u2200",part:"\u2202",exist:"\u2203",empty:"\u2205",nabla:"\u2207",isin:"\u2208",notin:"\u2209",ni:"\u220B",prod:"\u220F",sum:"\u2211",minus:"\u2212",lowast:"\u2217",radic:"\u221A",prop:"\u221D",infin:"\u221E",ang:"\u2220",and:"\u2227",or:"\u2228",cap:"\u2229",cup:"\u222A",int:"\u222B",there4:"\u2234",sim:"\u223C",cong:"\u2245",asymp:"\u2248",ne:"\u2260",equiv:"\u2261",le:"\u2264",ge:"\u2265",sub:"\u2282",sup:"\u2283",nsub:"\u2284",sube:"\u2286",supe:"\u2287",oplus:"\u2295",otimes:"\u2297",perp:"\u22A5",sdot:"\u22C5",Alpha:"\u0391",Beta:"\u0392",Gamma:"\u0393",Delta:"\u0394",Epsilon:"\u0395",Zeta:"\u0396",Eta:"\u0397",Theta:"\u0398",Iota:"\u0399",Kappa:"\u039A",Lambda:"\u039B",Mu:"\u039C",Nu:"\u039D",Xi:"\u039E",Omicron:"\u039F",Pi:"\u03A0",Rho:"\u03A1",Sigma:"\u03A3",Tau:"\u03A4",Upsilon:"\u03A5",Phi:"\u03A6",Chi:"\u03A7",Psi:"\u03A8",Omega:"\u03A9",alpha:"\u03B1",beta:"\u03B2",gamma:"\u03B3",delta:"\u03B4",epsilon:"\u03B5",zeta:"\u03B6",eta:"\u03B7",theta:"\u03B8",iota:"\u03B9",kappa:"\u03BA",lambda:"\u03BB",mu:"\u03BC",nu:"\u03BD",xi:"\u03BE",omicron:"\u03BF",pi:"\u03C0",rho:"\u03C1",sigmaf:"\u03C2",sigma:"\u03C3",tau:"\u03C4",upsilon:"\u03C5",phi:"\u03C6",chi:"\u03C7",psi:"\u03C8",omega:"\u03C9",thetasym:"\u03D1",upsih:"\u03D2",piv:"\u03D6",OElig:"\u0152",oelig:"\u0153",Scaron:"\u0160",scaron:"\u0161",Yuml:"\u0178",fnof:"\u0192",circ:"\u02C6",tilde:"\u02DC",ensp:"\u2002",emsp:"\u2003",thinsp:"\u2009",zwnj:"\u200C",zwj:"\u200D",lrm:"\u200E",rlm:"\u200F",ndash:"\u2013",mdash:"\u2014",lsquo:"\u2018",rsquo:"\u2019",sbquo:"\u201A",ldquo:"\u201C",rdquo:"\u201D",bdquo:"\u201E",dagger:"\u2020",Dagger:"\u2021",bull:"\u2022",hellip:"\u2026",permil:"\u2030",prime:"\u2032",Prime:"\u2033",lsaquo:"\u2039",rsaquo:"\u203A",oline:"\u203E",euro:"\u20AC",trade:"\u2122",larr:"\u2190",uarr:"\u2191",rarr:"\u2192",darr:"\u2193",harr:"\u2194",crarr:"\u21B5",lceil:"\u2308",rceil:"\u2309",lfloor:"\u230A",rfloor:"\u230B",loz:"\u25CA",spades:"\u2660",clubs:"\u2663",hearts:"\u2665",diams:"\u2666"}),m.entityMap=m.HTML_ENTITIES},"./node_modules/@xmldom/xmldom/lib/index.js":function(p,m,u){var g=u("./node_modules/@xmldom/xmldom/lib/dom.js");m.DOMImplementation=g.DOMImplementation,m.XMLSerializer=g.XMLSerializer,m.DOMParser=u("./node_modules/@xmldom/xmldom/lib/dom-parser.js").DOMParser},"./node_modules/@xmldom/xmldom/lib/sax.js":function(p,m,u){var g=u("./node_modules/@xmldom/xmldom/lib/conventions.js").NAMESPACE,T=/[A-Z_a-z\xC0-\xD6\xD8-\xF6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,c=new RegExp("[\\-\\.0-9"+T.source.slice(1,-1)+"\\u00B7\\u0300-\\u036F\\u203F-\\u2040]"),k=new RegExp("^"+T.source+c.source+"*(?::"+T.source+c.source+"*)?$"),_=0,ee=1,O=2,x=3,q=4,L=5,z=6,B=7;function j(b,H){this.message=b,this.locator=H,Error.captureStackTrace&&Error.captureStackTrace(this,j)}j.prototype=new Error,j.prototype.name=j.name;function Q(){}Q.prototype={parse:function(b,H,D){var X=this.domBuilder;X.startDocument(),h(H,H={}),U(b,H,D,X,this.errorHandler),X.endDocument()}};function U(b,H,D,X,J){function ae(R){if(R>65535){R-=65536;var A=55296+(R>>10),G=56320+(R&1023);return String.fromCharCode(A,G)}else return String.fromCharCode(R)}function ie(R){var A=R.slice(1,-1);return Object.hasOwnProperty.call(D,A)?D[A]:A.charAt(0)==="#"?ae(parseInt(A.substr(1).replace("x","0x"))):(J.error("entity not found:"+R),R)}function ne(R){if(R>re){var A=b.substring(re,R).replace(/&#?\w+;/g,ie);ce&&Z(re),X.characters(A,0,R-re),re=R}}function Z(R,A){for(;R>=oe&&(A=be.exec(b));)te=A.index,oe=te+A[0].length,ce.lineNumber++;ce.columnNumber=R-te+1}for(var te=0,oe=0,be=/.*(?:\r\n?|\n)|.*$/g,ce=X.locator,Y=[{currentNSMap:H}],he={},re=0;;){try{var ue=b.indexOf("<",re);if(ue<0){if(!b.substr(re).match(/^\s*$/)){var pe=X.doc,fe=pe.createTextNode(b.substr(re));pe.appendChild(fe),X.currentElement=fe}return}switch(ue>re&&ne(ue),b.charAt(ue+1)){case"/":var ye=b.indexOf(">",ue+3),Re=b.substring(ue+2,ye).replace(/[ \t\n\r]+$/g,""),Se=Y.pop();ye<0?(Re=b.substring(ue+2).replace(/[\s<].*/,""),J.error("end tag name: "+Re+" is not complete:"+Se.tagName),ye=ue+1+Re.length):Re.match(/\sre?re=ye:ne(Math.max(ue,re)+1)}}function le(b,H){return H.lineNumber=b.lineNumber,H.columnNumber=b.columnNumber,H}function w(b,H,D,X,J,ae){function ie(Y,he,re){D.attributeNames.hasOwnProperty(Y)&&ae.fatalError("Attribute "+Y+" redefined"),D.addValue(Y,he.replace(/[\t\n\r]/g," ").replace(/&#?\w+;/g,J),re)}for(var ne,Z,te=++H,oe=_;;){var be=b.charAt(te);switch(be){case"=":if(oe===ee)ne=b.slice(H,te),oe=x;else if(oe===O)oe=x;else throw new Error("attribute equal must after attrName");break;case"'":case'"':if(oe===x||oe===ee)if(oe===ee&&(ae.warning('attribute value must after "="'),ne=b.slice(H,te)),H=te+1,te=b.indexOf(be,H),te>0)Z=b.slice(H,te),ie(ne,Z,H-1),oe=L;else throw new Error("attribute value no end '"+be+"' match");else if(oe==q)Z=b.slice(H,te),ie(ne,Z,H),ae.warning('attribute "'+ne+'" missed start quot('+be+")!!"),H=te+1,oe=L;else throw new Error('attribute value must after "="');break;case"/":switch(oe){case _:D.setTagName(b.slice(H,te));case L:case z:case B:oe=B,D.closed=!0;case q:case ee:case O:break;default:throw new Error("attribute invalid close char('/')")}break;case"":return ae.error("unexpected end of input"),oe==_&&D.setTagName(b.slice(H,te)),te;case">":switch(oe){case _:D.setTagName(b.slice(H,te));case L:case z:case B:break;case q:case ee:Z=b.slice(H,te),Z.slice(-1)==="/"&&(D.closed=!0,Z=Z.slice(0,-1));case O:oe===O&&(Z=ne),oe==q?(ae.warning('attribute "'+Z+'" missed quot(")!'),ie(ne,Z,H)):((!g.isHTML(X[""])||!Z.match(/^(?:disabled|checked|selected)$/i))&&ae.warning('attribute "'+Z+'" missed value!! "'+Z+'" instead!!'),ie(Z,Z,H));break;case x:throw new Error("attribute value missed!!")}return te;case"\x80":be=" ";default:if(be<=" ")switch(oe){case _:D.setTagName(b.slice(H,te)),oe=z;break;case ee:ne=b.slice(H,te),oe=O;break;case q:var Z=b.slice(H,te);ae.warning('attribute "'+Z+'" missed quot(")!!'),ie(ne,Z,H);case L:oe=z;break}else switch(oe){case O:var ce=D.tagName;(!g.isHTML(X[""])||!ne.match(/^(?:disabled|checked|selected)$/i))&&ae.warning('attribute "'+ne+'" missed value!! "'+ne+'" instead2!!'),ie(ne,ne,H),H=te,oe=ee;break;case L:ae.warning('attribute space is required"'+ne+'"!!');case z:oe=ee,H=te;break;case x:oe=q,H=te;break;case B:throw new Error("elements closed character '/' and '>' must be connected to")}}te++}}function C(b,H,D){for(var X=b.tagName,J=null,ae=b.length;ae--;){var ie=b[ae],ne=ie.qName,Z=ie.value,ce=ne.indexOf(":");if(ce>0)var te=ie.prefix=ne.slice(0,ce),oe=ne.slice(ce+1),be=te==="xmlns"&&oe;else oe=ne,te=null,be=ne==="xmlns"&&"";ie.localName=oe,be!==!1&&(J==null&&(J={},h(D,D={})),D[be]=J[be]=Z,ie.uri=g.XMLNS,H.startPrefixMapping(be,Z))}for(var ae=b.length;ae--;){ie=b[ae];var te=ie.prefix;te&&(te==="xml"&&(ie.uri=g.XML),te!=="xmlns"&&(ie.uri=D[te||""]))}var ce=X.indexOf(":");ce>0?(te=b.prefix=X.slice(0,ce),oe=b.localName=X.slice(ce+1)):(te=null,oe=b.localName=X);var Y=b.uri=D[te||""];if(H.startElement(Y,oe,X,b),b.closed){if(H.endElement(Y,oe,X),J)for(te in J)Object.prototype.hasOwnProperty.call(J,te)&&H.endPrefixMapping(te)}else return b.currentNSMap=D,b.localNSMap=J,!0}function y(b,H,D,X,J){if(/^(?:script|textarea)$/i.test(D)){var ae=b.indexOf("",H),ie=b.substring(H+1,ae);if(/[&<]/.test(ie))return/^script$/i.test(D)?(J.characters(ie,0,ie.length),ae):(ie=ie.replace(/&#?\w+;/g,X),J.characters(ie,0,ie.length),ae)}return H+1}function K(b,H,D,X){var J=X[D];return J==null&&(J=b.lastIndexOf(""),J",H+4);return ae>H?(D.comment(b,H+4,ae-H-4),ae+3):(X.error("Unclosed comment"),-1)}else return-1;default:if(b.substr(H+3,6)=="CDATA["){var ae=b.indexOf("]]>",H+9);return D.startCDATA(),D.characters(b,H+9,ae-H-9),D.endCDATA(),ae+3}var ie=$(b,H),ne=ie.length;if(ne>1&&/!doctype/i.test(ie[0][0])){var Z=ie[1][0],te=!1,oe=!1;ne>3&&(/^public$/i.test(ie[2][0])?(te=ie[3][0],oe=ne>4&&ie[4][0]):/^system$/i.test(ie[2][0])&&(oe=ie[3][0]));var be=ie[ne-1];return D.startDTD(Z,te,oe),D.endDTD(),be.index+be[0].length}}return-1}function N(b,H,D){var X=b.indexOf("?>",H);if(X){var J=b.substring(H,X).match(/^<\?(\S*)\s*([\s\S]*?)\s*$/);if(J){var ae=J[0].length;return D.processingInstruction(J[1],J[2]),X+2}else return-1}return-1}function M(){this.attributeNames={}}M.prototype={setTagName:function(b){if(!k.test(b))throw new Error("invalid tagName:"+b);this.tagName=b},addValue:function(b,H,D){if(!k.test(b))throw new Error("invalid attribute:"+b);this.attributeNames[b]=this.length,this[this.length++]={qName:b,value:H,offset:D}},length:0,getLocalName:function(b){return this[b].localName},getLocator:function(b){return this[b].locator},getQName:function(b){return this[b].qName},getURI:function(b){return this[b].uri},getValue:function(b){return this[b].value}};function $(b,H){var D,X=[],J=/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;for(J.lastIndex=H,J.exec(b);D=J.exec(b);)if(X.push(D),D[1])return X}m.XMLReader=Q,m.ParseError=j},"./node_modules/process/browser.js":function(p,m){var u=p.exports={},g,T;function c(){throw new Error("setTimeout has not been defined")}function k(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?g=setTimeout:g=c}catch(U){g=c}try{typeof clearTimeout=="function"?T=clearTimeout:T=k}catch(U){T=k}})();function _(U){if(g===setTimeout)return setTimeout(U,0);if((g===c||!g)&&setTimeout)return g=setTimeout,setTimeout(U,0);try{return g(U,0)}catch(le){try{return g.call(null,U,0)}catch(w){return g.call(this,U,0)}}}function ee(U){if(T===clearTimeout)return clearTimeout(U);if((T===k||!T)&&clearTimeout)return T=clearTimeout,clearTimeout(U);try{return T(U)}catch(le){try{return T.call(null,U)}catch(w){return T.call(this,U)}}}var O=[],x=!1,q,L=-1;function z(){!x||!q||(x=!1,q.length?O=q.concat(O):L=-1,O.length&&B())}function B(){if(!x){var U=_(z);x=!0;for(var le=O.length;le;){for(q=O,O=[];++L1)for(var w=1;wie)return re(null,!1);if(ue>1){var pe=Math.max(he[0].Size,he[1].Size);if(pe!==ae)return re(null,!1)}var fe=function ye(Re){if(Re=re.length){ce.emit("has_and_check_upload_id",Y);return}var ye=re[fe];if(!_.isInArray(Y,ye)){T.removeUploadId.call(D,ye),pe(fe+1);return}if(T.using[ye]){pe(fe+1);return}L.call(D,{Bucket:M,Region:$,Key:b,UploadId:ye,tracker:h.tracker},function(Re,Se){!D._isRunningTask(N)||(Re?(T.removeUploadId.call(D,ye),pe(fe+1)):ce.emit("upload_id_available",{UploadId:ye,PartList:Se.PartList}))})};ue(0)}),ce.on("get_remote_upload_id_list",function(){q.call(D,{Bucket:M,Region:$,Key:b,tracker:h.tracker},function(Y,he){if(!!D._isRunningTask(N)){if(Y)return ce.emit("error",Y);var re=_.filter(he.UploadList,function(fe){return fe.Key===b&&(!H||fe.StorageClass.toUpperCase()===H.toUpperCase())}).reverse().map(function(fe){return fe.UploadId||fe.UploadID});if(re.length)ce.emit("seek_local_avail_upload_id",re);else{var ue=T.getFileId(h.Body,h.ChunkSize,M,b),pe;ue&&(pe=T.getUploadIdList.call(D,ue))&&_.each(pe,function(fe){T.removeUploadId.call(D,fe)}),ce.emit("no_available_upload_id")}}})}),ce.emit("get_remote_upload_id_list")}function q(h,P){var N=this,M=[],$={Bucket:h.Bucket,Region:h.Region,Prefix:h.Key,calledBySdk:h.calledBySdk||"sliceUploadFile",tracker:h.tracker},b=function H(){N.multipartList($,function(D,X){if(D)return P(D);M.push.apply(M,X.Upload||[]),X.IsTruncated==="true"?($.KeyMarker=X.NextKeyMarker,$.UploadIdMarker=X.NextUploadIdMarker,H()):P(null,{UploadList:M})})};b()}function L(h,P){var N=this,M=[],$={Bucket:h.Bucket,Region:h.Region,Key:h.Key,UploadId:h.UploadId,calledBySdk:"sliceUploadFile",tracker:h.tracker},b=function H(){N.multipartListPart($,function(D,X){if(D)return P(D);M.push.apply(M,X.Part||[]),X.IsTruncated==="true"?($.PartNumberMarker=X.NextPartNumberMarker,H()):P(null,{PartList:M})})};b()}function z(h,P){var N=this,M=h.TaskId,$=h.Bucket,b=h.Region,H=h.Key,D=h.UploadData,X=h.FileSize,J=h.SliceSize,ae=Math.min(h.AsyncLimit||N.options.ChunkParallelLimit||1,256),ie=h.Body,ne=Math.ceil(X/J),Z=0,te=h.ServerSideEncryption,oe=h.Headers,be=_.filter(D.PartList,function(Y){return Y.Uploaded&&(Z+=Y.PartNumber>=ne&&X%J||J),!Y.Uploaded}),ce=h.onProgress;c.eachLimit(be,ae,function(Y,he){if(!!N._isRunningTask(M)){var re=Y.PartNumber,ue=Math.min(X,Y.PartNumber*J)-(Y.PartNumber-1)*J,pe=0;B.call(N,{TaskId:M,Bucket:$,Region:b,Key:H,SliceSize:J,FileSize:X,PartNumber:re,ServerSideEncryption:te,Body:ie,UploadData:D,Headers:oe,onProgress:function(ye){Z+=ye.loaded-pe,pe=ye.loaded,ce({loaded:Z,total:X})},tracker:h.tracker},function(fe,ye){!N._isRunningTask(M)||(!fe&&!ye.ETag&&(fe='get ETag error, please add "ETag" to CORS ExposeHeader setting.( \u83B7\u53D6ETag\u5931\u8D25\uFF0C\u8BF7\u5728CORS ExposeHeader\u8BBE\u7F6E\u4E2D\u6DFB\u52A0ETag\uFF0C\u8BF7\u53C2\u8003\u6587\u6863\uFF1Ahttps://cloud.tencent.com/document/product/436/13318 )'),fe?Z-=pe:(Z+=ue-pe,Y.ETag=ye.ETag),ce({loaded:Z,total:X}),he(fe||null,ye))})}},function(Y){if(!!N._isRunningTask(M)){if(Y)return P(Y);P(null,{UploadId:D.UploadId,SliceList:D.PartList})}})}function B(h,P){var N=this,M=h.TaskId,$=h.Bucket,b=h.Region,H=h.Key,D=h.FileSize,X=h.Body,J=h.PartNumber*1,ae=h.SliceSize,ie=h.ServerSideEncryption,ne=h.UploadData,Z=h.Headers||{},te=N.options.ChunkRetryTimes+1,oe=ae*(J-1),be=ae,ce=oe+ae;ce>D&&(ce=D,be=ce-oe);var Y=["x-cos-traffic-limit","x-cos-mime-limit"],he={};_.each(Z,function(ue,pe){Y.indexOf(pe)>-1&&(he[pe]=ue)});var re=ne.PartList[J-1];c.retry(te,function(ue){!N._isRunningTask(M)||_.fileSlice(X,oe,ce,!0,function(pe){N.multipartUpload({TaskId:M,Bucket:$,Region:b,Key:H,ContentLength:be,PartNumber:J,UploadId:ne.UploadId,ServerSideEncryption:ie,Body:pe,Headers:he,onProgress:h.onProgress,calledBySdk:"sliceUploadFile",tracker:h.tracker},function(fe,ye){if(!!N._isRunningTask(M))return fe?ue(fe):(re.Uploaded=!0,ue(null,ye))})})},function(ue,pe){if(!!N._isRunningTask(M))return P(ue,pe)})}function j(h,P){var N=h.Bucket,M=h.Region,$=h.Key,b=h.UploadId,H=h.SliceList,D=this,X=this.options.ChunkRetryTimes+1,J=h.Headers,ae=H.map(function(ie){return{PartNumber:ie.PartNumber,ETag:ie.ETag}});c.retry(X,function(ie){D.multipartComplete({Bucket:N,Region:M,Key:$,UploadId:b,Parts:ae,Headers:J,calledBySdk:"sliceUploadFile",tracker:h.tracker},ie)},function(ie,ne){P(ie,ne)})}function Q(h,P){var N=h.Bucket,M=h.Region,$=h.Key,b=h.UploadId,H=h.Level||"task",D=h.AsyncLimit,X=this,J=new k;if(J.on("error",function(ae){return P(ae)}),J.on("get_abort_array",function(ae){U.call(X,{Bucket:N,Region:M,Key:$,Headers:h.Headers,AsyncLimit:D,AbortArray:ae},P)}),H==="bucket")q.call(X,{Bucket:N,Region:M,calledBySdk:"abortUploadTask"},function(ae,ie){if(ae)return P(ae);J.emit("get_abort_array",ie.UploadList||[])});else if(H==="file"){if(!$)return P(_.error(new Error("abort_upload_task_no_key")));q.call(X,{Bucket:N,Region:M,Key:$,calledBySdk:"abortUploadTask"},function(ae,ie){if(ae)return P(ae);J.emit("get_abort_array",ie.UploadList||[])})}else if(H==="task"){if(!b)return P(_.error(new Error("abort_upload_task_no_id")));if(!$)return P(_.error(new Error("abort_upload_task_no_key")));J.emit("get_abort_array",[{Key:$,UploadId:b}])}else return P(_.error(new Error("abort_unknown_level")))}function U(h,P){var N=h.Bucket,M=h.Region,$=h.Key,b=h.AbortArray,H=h.AsyncLimit||1,D=this,X=0,J=new Array(b.length);c.eachLimit(b,H,function(ae,ie){var ne=X;if($&&$!==ae.Key){J[ne]={error:{KeyNotMatch:!0}},ie(null);return}var Z=ae.UploadId||ae.UploadID;D.multipartAbort({Bucket:N,Region:M,Key:ae.Key,Headers:h.Headers,UploadId:Z},function(te){var oe={Bucket:N,Region:M,Key:ae.Key,UploadId:Z};J[ne]={error:te,task:oe},ie(null)}),X++},function(ae){if(ae)return P(ae);for(var ie=[],ne=[],Z=0,te=J.length;ZM?"sliceUploadFile":"putObject",ne=h.onFileFinish,Z=function(oe,be){h.tracker&&h.tracker.formatResult(oe,be),ne&&ne(oe,be,D),P&&P(oe,be)};$.push({api:ie,params:h,callback:Z}),N._addTasks($)}function w(h,P){var N=this,M=h.SliceSize===void 0?N.options.SliceSize:h.SliceSize,$=0,b=0,H=_.throttleOnProgress.call(N,b,h.onProgress),D=h.files.length,X=h.onFileFinish,J=Array(D),ae=function(Z,te,oe){H(null,!0),X&&X(Z,te,oe),J[oe.Index]={options:oe,error:Z,data:te},--D<=0&&P&&P(null,{files:J})},ie=[];_.each(h.files,function(ne,Z){(function(){var te=ne.Body,oe=te.size||te.length||0,be={Index:Z,TaskId:""};if($+=oe,N.options.EnableTracker){var ce=N.options.UseAccelerate||typeof N.options.Domain=="string"&&N.options.Domain.includes("accelerate.");ne.tracker=new ee({bucket:ne.Bucket,region:ne.Region,apiName:"uploadFiles",fileKey:ne.Key,fileSize:oe,accelerate:ce,deepTracker:N.options.DeepTracker,customId:N.options.CustomId,delay:N.options.TrackerDelay})}_.each(ne,function(Se,xe){g(Se)!=="object"&&typeof Se!="function"&&(be[xe]=Se)});var Y=ne.onTaskReady,he=function(xe){be.TaskId=xe,Y&&Y(xe)};ne.onTaskReady=he;var re=0,ue=ne.onProgress,pe=function(xe){b=b-re+xe.loaded,re=xe.loaded,ue&&ue(xe),H({loaded:b,total:$})};ne.onProgress=pe;var fe=oe>M?"sliceUploadFile":"putObject",ye=ne.onFileFinish,Re=function(xe,we){ne.tracker&&ne.tracker.formatResult(xe,we),ye&&ye(xe,we),ae&&ae(xe,we,be)};ie.push({api:fe,params:ne,callback:Re})})()}),N._addTasks(ie)}function C(h,P){var N=new k,M=this,$=h.Bucket,b=h.Region,H=h.Key,D=h.CopySource,X=_.getSourceParams.call(this,D);if(!X){P(_.error(new Error("CopySource format error")));return}var J=X.Bucket,ae=X.Region,ie=decodeURIComponent(X.Key),ne=h.CopySliceSize===void 0?M.options.CopySliceSize:h.CopySliceSize;ne=Math.max(0,ne);var Z=h.CopyChunkSize||this.options.CopyChunkSize,te=this.options.CopyChunkParallelLimit,oe=this.options.ChunkRetryTimes+1,be=0,ce=0,Y,he,re={},ue={},pe={};N.on("copy_slice_complete",function(fe){var ye={};_.each(h.Headers,function(Se,xe){xe.toLowerCase().indexOf("x-cos-meta-")===0&&(ye[xe]=Se)});var Re=_.map(fe.PartList,function(Se){return{PartNumber:Se.PartNumber,ETag:Se.ETag}});c.retry(oe,function(Se){M.multipartComplete({Bucket:$,Region:b,Key:H,UploadId:fe.UploadId,Parts:Re,calledBySdk:"sliceCopyFile"},Se)},function(Se,xe){if(T.removeUsing(fe.UploadId),Se)return he(null,!0),P(Se);T.removeUploadId(fe.UploadId),he({loaded:Y,total:Y},!0),P(null,xe)})}),N.on("get_copy_data_finish",function(fe){var ye=T.getCopyFileId(D,re,Z,$,H);ye&&T.saveUploadId(ye,fe.UploadId,M.options.UploadIdCacheLimit),T.setUsing(fe.UploadId);var Re=_.filter(fe.PartList,function(Se){return Se.Uploaded&&(ce+=Se.PartNumber>=be&&Y%Z||Z),!Se.Uploaded});c.eachLimit(Re,te,function(Se,xe){var we=Se.PartNumber,V=Se.CopySourceRange,E=Se.end-Se.start;c.retry(oe,function(I){y.call(M,{Bucket:$,Region:b,Key:H,CopySource:D,UploadId:fe.UploadId,PartNumber:we,CopySourceRange:V},I)},function(I,d){if(I)return xe(I);ce+=E,he({loaded:ce,total:Y}),Se.ETag=d.ETag,xe(I||null,d)})},function(Se){if(Se)return T.removeUsing(fe.UploadId),he(null,!0),P(Se);N.emit("copy_slice_complete",fe)})}),N.on("get_chunk_size_finish",function(){var fe=function(){M.multipartInit({Bucket:$,Region:b,Key:H,Headers:pe},function(we,V){if(we)return P(we);h.UploadId=V.UploadId,N.emit("get_copy_data_finish",{UploadId:h.UploadId,PartList:h.PartList})})},ye=T.getCopyFileId(D,re,Z,$,H),Re=T.getUploadIdList(ye);if(!ye||!Re)return fe();var Se=function xe(we){if(we>=Re.length)return fe();var V=Re[we];if(T.using[V])return xe(we+1);L.call(M,{Bucket:$,Region:b,Key:H,UploadId:V},function(E,I){if(E)T.removeUploadId(V),xe(we+1);else{if(T.using[V])return xe(we+1);var d={},i=0;_.each(I.PartList,function(a){var s=parseInt(a.Size),v=i+s-1;d[a.PartNumber+"|"+i+"|"+v]=a.ETag,i+=s}),_.each(h.PartList,function(a){var s=d[a.PartNumber+"|"+a.start+"|"+a.end];s&&(a.ETag=s,a.Uploaded=!0)}),N.emit("get_copy_data_finish",{UploadId:V,PartList:h.PartList})}})};Se(0)}),N.on("get_file_size_finish",function(){if(function(){for(var ye=[1,2,4,8,16,32,64,128,256,512,1024,1024*2,1024*4,1024*5],Re=1024*1024,Se=0;Sewe.length&&(ue[xe]=Se)}),N.emit("get_file_size_finish")}})}function y(h,P){var N=h.TaskId,M=h.Bucket,$=h.Region,b=h.Key,H=h.CopySource,D=h.UploadId,X=h.PartNumber*1,J=h.CopySourceRange,ae=this.options.ChunkRetryTimes+1,ie=this;c.retry(ae,function(ne){ie.uploadPartCopy({TaskId:N,Bucket:M,Region:$,Key:b,CopySource:H,UploadId:D,PartNumber:X,CopySourceRange:J},function(Z,te){ne(Z||null,te)})},function(ne,Z){return P(ne,Z)})}var K={sliceUploadFile:O,abortUploadTask:Q,uploadFile:le,uploadFiles:w,sliceCopyFile:C};p.exports.init=function(h,P){P.transferToTaskMethod(K,"sliceUploadFile"),_.each(K,function(N,M){h.prototype[M]=_.apiWrapper(M,N)})}},"./src/async.js":function(p,m){var u=function(k,_,ee,O){if(O=O||function(){},!k.length||_<=0)return O();var x=0,q=0,L=0;(function z(){if(x>=k.length)return O();for(;L<_&&q=k.length?O():z())})})()},g=function(k,_,ee){var O=function x(q){_(function(L,z){L&&q/gi,"<$1Rule>"),n=n.replace(/<(\/?)Tags>/gi,"<$1Tag>");var r=t.Headers;r["Content-Type"]="application/xml",r["Content-MD5"]=c.b64(c.md5(n)),de.call(this,{Action:"name/cos:PutBucketReplication",method:"PUT",Bucket:t.Bucket,Region:t.Region,body:n,action:"replication",headers:r},function(o,f){if(o&&o.statusCode===204)return l(null,{statusCode:o.statusCode});if(o)return l(o);l(null,{statusCode:f.statusCode,headers:f.headers})})}function H(t,l){de.call(this,{Action:"name/cos:GetBucketReplication",method:"GET",Bucket:t.Bucket,Region:t.Region,headers:t.Headers,action:"replication"},function(e,n){if(e){if(e.statusCode===404&&e.error&&(e.error==="Not Found"||e.error.Code==="ReplicationConfigurationnotFoundError")){var r={ReplicationConfiguration:{Rules:[]},statusCode:e.statusCode};e.headers&&(r.headers=e.headers),l(null,r)}else l(e);return}!n.ReplicationConfiguration&&(n.ReplicationConfiguration={}),n.ReplicationConfiguration.Rule&&(n.ReplicationConfiguration.Rules=c.makeArray(n.ReplicationConfiguration.Rule),delete n.ReplicationConfiguration.Rule),l(e,n)})}function D(t,l){de.call(this,{Action:"name/cos:DeleteBucketReplication",method:"DELETE",Bucket:t.Bucket,Region:t.Region,headers:t.Headers,action:"replication"},function(e,n){if(e&&e.statusCode===204)return l(null,{statusCode:e.statusCode});if(e)return l(e);l(null,{statusCode:n.statusCode,headers:n.headers})})}function X(t,l){if(!t.WebsiteConfiguration){l(c.error(new Error("missing param WebsiteConfiguration")));return}var e=c.clone(t.WebsiteConfiguration||{}),n=e.RoutingRules||e.RoutingRule||[];n=c.isArray(n)?n:[n],delete e.RoutingRule,delete e.RoutingRules,n.length&&(e.RoutingRules={RoutingRule:n});var r=c.json2xml({WebsiteConfiguration:e}),o=t.Headers;o["Content-Type"]="application/xml",o["Content-MD5"]=c.b64(c.md5(r)),de.call(this,{Action:"name/cos:PutBucketWebsite",method:"PUT",Bucket:t.Bucket,Region:t.Region,body:r,action:"website",headers:o},function(f,S){if(f&&f.statusCode===204)return l(null,{statusCode:f.statusCode});if(f)return l(f);l(null,{statusCode:S.statusCode,headers:S.headers})})}function J(t,l){de.call(this,{Action:"name/cos:GetBucketWebsite",method:"GET",Bucket:t.Bucket,Region:t.Region,Key:t.Key,headers:t.Headers,action:"website"},function(e,n){if(e){if(e.statusCode===404&&e.error.Code==="NoSuchWebsiteConfiguration"){var r={WebsiteConfiguration:{},statusCode:e.statusCode};e.headers&&(r.headers=e.headers),l(null,r)}else l(e);return}var o=n.WebsiteConfiguration||{};if(o.RoutingRules){var f=c.clone(o.RoutingRules.RoutingRule||[]);f=c.makeArray(f),o.RoutingRules=f}l(null,{WebsiteConfiguration:o,statusCode:n.statusCode,headers:n.headers})})}function ae(t,l){de.call(this,{Action:"name/cos:DeleteBucketWebsite",method:"DELETE",Bucket:t.Bucket,Region:t.Region,headers:t.Headers,action:"website"},function(e,n){if(e&&e.statusCode===204)return l(null,{statusCode:e.statusCode});if(e)return l(e);l(null,{statusCode:n.statusCode,headers:n.headers})})}function ie(t,l){if(!t.RefererConfiguration){l(c.error(new Error("missing param RefererConfiguration")));return}var e=c.clone(t.RefererConfiguration||{}),n=e.DomainList||{},r=n.Domains||n.Domain||[];r=c.isArray(r)?r:[r],r.length&&(e.DomainList={Domain:r});var o=c.json2xml({RefererConfiguration:e}),f=t.Headers;f["Content-Type"]="application/xml",f["Content-MD5"]=c.b64(c.md5(o)),de.call(this,{Action:"name/cos:PutBucketReferer",method:"PUT",Bucket:t.Bucket,Region:t.Region,body:o,action:"referer",headers:f},function(S,F){if(S&&S.statusCode===204)return l(null,{statusCode:S.statusCode});if(S)return l(S);l(null,{statusCode:F.statusCode,headers:F.headers})})}function ne(t,l){de.call(this,{Action:"name/cos:GetBucketReferer",method:"GET",Bucket:t.Bucket,Region:t.Region,Key:t.Key,headers:t.Headers,action:"referer"},function(e,n){if(e){if(e.statusCode===404&&e.error.Code==="NoSuchRefererConfiguration"){var r={WebsiteConfiguration:{},statusCode:e.statusCode};e.headers&&(r.headers=e.headers),l(null,r)}else l(e);return}var o=n.RefererConfiguration||{};if(o.DomainList){var f=c.makeArray(o.DomainList.Domain||[]);o.DomainList={Domains:f}}l(null,{RefererConfiguration:o,statusCode:n.statusCode,headers:n.headers})})}function Z(t,l){var e=t.DomainConfiguration||{},n=e.DomainRule||t.DomainRule||[];n=c.clone(n);var r=c.json2xml({DomainConfiguration:{DomainRule:n}}),o=t.Headers;o["Content-Type"]="application/xml",o["Content-MD5"]=c.b64(c.md5(r)),de.call(this,{Action:"name/cos:PutBucketDomain",method:"PUT",Bucket:t.Bucket,Region:t.Region,body:r,action:"domain",headers:o},function(f,S){if(f&&f.statusCode===204)return l(null,{statusCode:f.statusCode});if(f)return l(f);l(null,{statusCode:S.statusCode,headers:S.headers})})}function te(t,l){de.call(this,{Action:"name/cos:GetBucketDomain",method:"GET",Bucket:t.Bucket,Region:t.Region,headers:t.Headers,action:"domain"},function(e,n){if(e)return l(e);var r=[];try{r=n.DomainConfiguration.DomainRule||[]}catch(o){}r=c.clone(c.isArray(r)?r:[r]),l(null,{DomainRule:r,statusCode:n.statusCode,headers:n.headers})})}function oe(t,l){de.call(this,{Action:"name/cos:DeleteBucketDomain",method:"DELETE",Bucket:t.Bucket,Region:t.Region,headers:t.Headers,action:"domain"},function(e,n){if(e&&e.statusCode===204)return l(null,{statusCode:e.statusCode});if(e)return l(e);l(null,{statusCode:n.statusCode,headers:n.headers})})}function be(t,l){var e=t.OriginConfiguration||{},n=e.OriginRule||t.OriginRule||[];n=c.clone(n);var r=c.json2xml({OriginConfiguration:{OriginRule:n}}),o=t.Headers;o["Content-Type"]="application/xml",o["Content-MD5"]=c.b64(c.md5(r)),de.call(this,{Action:"name/cos:PutBucketOrigin",method:"PUT",Bucket:t.Bucket,Region:t.Region,body:r,action:"origin",headers:o},function(f,S){if(f&&f.statusCode===204)return l(null,{statusCode:f.statusCode});if(f)return l(f);l(null,{statusCode:S.statusCode,headers:S.headers})})}function ce(t,l){de.call(this,{Action:"name/cos:GetBucketOrigin",method:"GET",Bucket:t.Bucket,Region:t.Region,headers:t.Headers,action:"origin"},function(e,n){if(e)return l(e);var r=[];try{r=n.OriginConfiguration.OriginRule||[]}catch(o){}r=c.clone(c.isArray(r)?r:[r]),l(null,{OriginRule:r,statusCode:n.statusCode,headers:n.headers})})}function Y(t,l){de.call(this,{Action:"name/cos:DeleteBucketOrigin",method:"DELETE",Bucket:t.Bucket,Region:t.Region,headers:t.Headers,action:"origin"},function(e,n){if(e&&e.statusCode===204)return l(null,{statusCode:e.statusCode});if(e)return l(e);l(null,{statusCode:n.statusCode,headers:n.headers})})}function he(t,l){var e=c.json2xml({BucketLoggingStatus:t.BucketLoggingStatus||""}),n=t.Headers;n["Content-Type"]="application/xml",n["Content-MD5"]=c.b64(c.md5(e)),de.call(this,{Action:"name/cos:PutBucketLogging",method:"PUT",Bucket:t.Bucket,Region:t.Region,body:e,action:"logging",headers:n},function(r,o){if(r&&r.statusCode===204)return l(null,{statusCode:r.statusCode});if(r)return l(r);l(null,{statusCode:o.statusCode,headers:o.headers})})}function re(t,l){de.call(this,{Action:"name/cos:GetBucketLogging",method:"GET",Bucket:t.Bucket,Region:t.Region,headers:t.Headers,action:"logging"},function(e,n){if(e)return l(e);l(null,{BucketLoggingStatus:n.BucketLoggingStatus,statusCode:n.statusCode,headers:n.headers})})}function ue(t,l,e){var n=c.clone(l.InventoryConfiguration);if(n.OptionalFields){var r=n.OptionalFields||[];n.OptionalFields={Field:r}}if(n.Destination&&n.Destination.COSBucketDestination&&n.Destination.COSBucketDestination.Encryption){var o=n.Destination.COSBucketDestination.Encryption;Object.keys(o).indexOf("SSECOS")>-1&&(o["SSE-COS"]=o.SSECOS,delete o.SSECOS)}var f=c.json2xml({InventoryConfiguration:n}),S=l.Headers;S["Content-Type"]="application/xml",S["Content-MD5"]=c.b64(c.md5(f));var F=t==="PUT"?"name/cos:PutBucketInventory":"name/cos:PostBucketInventory";de.call(this,{Action:F,method:t,Bucket:l.Bucket,Region:l.Region,body:f,action:"inventory",qs:{id:l.Id},headers:S},function(ge,Ce){if(ge&&ge.statusCode===204)return e(null,{statusCode:ge.statusCode});if(ge)return e(ge);e(null,{statusCode:Ce.statusCode,headers:Ce.headers})})}function pe(t,l){return ue.call(this,"PUT",t,l)}function fe(t,l){return ue.call(this,"POST",t,l)}function ye(t,l){de.call(this,{Action:"name/cos:GetBucketInventory",method:"GET",Bucket:t.Bucket,Region:t.Region,headers:t.Headers,action:"inventory",qs:{id:t.Id}},function(e,n){if(e)return l(e);var r=n.InventoryConfiguration;if(r&&r.OptionalFields&&r.OptionalFields.Field){var o=r.OptionalFields.Field;c.isArray(o)||(o=[o]),r.OptionalFields=o}if(r.Destination&&r.Destination.COSBucketDestination&&r.Destination.COSBucketDestination.Encryption){var f=r.Destination.COSBucketDestination.Encryption;Object.keys(f).indexOf("SSE-COS")>-1&&(f.SSECOS=f["SSE-COS"],delete f["SSE-COS"])}l(null,{InventoryConfiguration:r,statusCode:n.statusCode,headers:n.headers})})}function Re(t,l){de.call(this,{Action:"name/cos:ListBucketInventory",method:"GET",Bucket:t.Bucket,Region:t.Region,headers:t.Headers,action:"inventory",qs:{"continuation-token":t.ContinuationToken}},function(e,n){if(e)return l(e);var r=n.ListInventoryConfigurationResult,o=r.InventoryConfiguration||[];o=c.isArray(o)?o:[o],delete r.InventoryConfiguration,c.each(o,function(f){if(f&&f.OptionalFields&&f.OptionalFields.Field){var S=f.OptionalFields.Field;c.isArray(S)||(S=[S]),f.OptionalFields=S}if(f.Destination&&f.Destination.COSBucketDestination&&f.Destination.COSBucketDestination.Encryption){var F=f.Destination.COSBucketDestination.Encryption;Object.keys(F).indexOf("SSE-COS")>-1&&(F.SSECOS=F["SSE-COS"],delete F["SSE-COS"])}}),r.InventoryConfigurations=o,c.extend(r,{statusCode:n.statusCode,headers:n.headers}),l(null,r)})}function Se(t,l){de.call(this,{Action:"name/cos:DeleteBucketInventory",method:"DELETE",Bucket:t.Bucket,Region:t.Region,headers:t.Headers,action:"inventory",qs:{id:t.Id}},function(e,n){if(e&&e.statusCode===204)return l(null,{statusCode:e.statusCode});if(e)return l(e);l(null,{statusCode:n.statusCode,headers:n.headers})})}function xe(t,l){if(!t.AccelerateConfiguration){l(c.error(new Error("missing param AccelerateConfiguration")));return}var e={AccelerateConfiguration:t.AccelerateConfiguration||{}},n=c.json2xml(e),r={};r["Content-Type"]="application/xml",r["Content-MD5"]=c.b64(c.md5(n)),de.call(this,{Action:"name/cos:PutBucketAccelerate",method:"PUT",Bucket:t.Bucket,Region:t.Region,body:n,action:"accelerate",headers:r},function(o,f){if(o)return l(o);l(null,{statusCode:f.statusCode,headers:f.headers})})}function we(t,l){de.call(this,{Action:"name/cos:GetBucketAccelerate",method:"GET",Bucket:t.Bucket,Region:t.Region,action:"accelerate"},function(e,n){e||!n.AccelerateConfiguration&&(n.AccelerateConfiguration={}),l(e,n)})}function V(t,l){var e=t.ServerSideEncryptionConfiguration||{},n=e.Rule||e.Rules||[],r=c.json2xml({ServerSideEncryptionConfiguration:{Rule:n}}),o=t.Headers;o["Content-Type"]="application/xml",o["Content-MD5"]=c.b64(c.md5(r)),de.call(this,{Action:"name/cos:PutBucketEncryption",method:"PUT",Bucket:t.Bucket,Region:t.Region,body:r,action:"encryption",headers:o},function(f,S){if(f&&f.statusCode===204)return l(null,{statusCode:f.statusCode});if(f)return l(f);l(null,{statusCode:S.statusCode,headers:S.headers})})}function E(t,l){de.call(this,{Action:"name/cos:GetBucketEncryption",method:"GET",Bucket:t.Bucket,Region:t.Region,headers:t.Headers,action:"encryption"},function(e,n){if(e){if(e.statusCode===404&&e.code==="NoSuchEncryptionConfiguration"){var r={EncryptionConfiguration:{Rules:[]},statusCode:e.statusCode};e.headers&&(r.headers=e.headers),l(null,r)}else l(e);return}var o=c.makeArray(n.EncryptionConfiguration&&n.EncryptionConfiguration.Rule||[]);n.EncryptionConfiguration={Rules:o},l(e,n)})}function I(t,l){de.call(this,{Action:"name/cos:DeleteBucketReplication",method:"DELETE",Bucket:t.Bucket,Region:t.Region,headers:t.Headers,action:"encryption"},function(e,n){if(e&&e.statusCode===204)return l(null,{statusCode:e.statusCode});if(e)return l(e);l(null,{statusCode:n.statusCode,headers:n.headers})})}function d(t,l){de.call(this,{Action:"name/cos:HeadObject",method:"HEAD",Bucket:t.Bucket,Region:t.Region,Key:t.Key,VersionId:t.VersionId,headers:t.Headers},function(e,n){if(e){var r=e.statusCode;return t.Headers["If-Modified-Since"]&&r&&r===304?l(null,{NotModified:!0,statusCode:r}):l(e)}n.ETag=c.attr(n.headers,"etag",""),l(null,n)})}function i(t,l){var e={};e.prefix=t.Prefix||"",e.delimiter=t.Delimiter,e["key-marker"]=t.KeyMarker,e["version-id-marker"]=t.VersionIdMarker,e["max-keys"]=t.MaxKeys,e["encoding-type"]=t.EncodingType,de.call(this,{Action:"name/cos:GetBucketObjectVersions",ResourceKey:e.prefix,method:"GET",Bucket:t.Bucket,Region:t.Region,headers:t.Headers,qs:e,action:"versions"},function(n,r){if(n)return l(n);var o=r.ListVersionsResult||{},f=o.DeleteMarker||[];f=c.isArray(f)?f:[f];var S=o.Version||[];S=c.isArray(S)?S:[S];var F=c.clone(o);delete F.DeleteMarker,delete F.Version,c.extend(F,{DeleteMarkers:f,Versions:S,statusCode:r.statusCode,headers:r.headers}),l(null,F)})}function a(t,l){var e=t.Query||{},n=t.QueryString||"",r=c.throttleOnProgress.call(this,0,t.onProgress),o=t.tracker;o&&o.setParams({signStartTime:new Date().getTime()}),e["response-content-type"]=t.ResponseContentType,e["response-content-language"]=t.ResponseContentLanguage,e["response-expires"]=t.ResponseExpires,e["response-cache-control"]=t.ResponseCacheControl,e["response-content-disposition"]=t.ResponseContentDisposition,e["response-content-encoding"]=t.ResponseContentEncoding,de.call(this,{Action:"name/cos:GetObject",method:"GET",Bucket:t.Bucket,Region:t.Region,Key:t.Key,VersionId:t.VersionId,DataType:t.DataType,headers:t.Headers,qs:e,qsStr:n,rawBody:!0,onDownloadProgress:r,tracker:o},function(f,S){if(r(null,!0),f){var F=f.statusCode;return t.Headers["If-Modified-Since"]&&F&&F===304?l(null,{NotModified:!0}):l(f)}l(null,{Body:S.body,ETag:c.attr(S.headers,"etag",""),statusCode:S.statusCode,headers:S.headers})})}function s(t,l){var e=this,n=t.ContentLength,r=c.throttleOnProgress.call(e,n,t.onProgress),o=t.Headers;!o["Cache-Control"]&&!o["cache-control"]&&(o["Cache-Control"]=""),!o["Content-Type"]&&!o["content-type"]&&(o["Content-Type"]=t.Body&&t.Body.type||"");var f=t.UploadAddMetaMd5||e.options.UploadAddMetaMd5||e.options.UploadCheckContentMd5,S=t.tracker;f&&S&&S.setParams({md5StartTime:new Date().getTime()}),c.getBodyMd5(f,t.Body,function(F){F&&(S&&S.setParams({md5EndTime:new Date().getTime()}),e.options.UploadCheckContentMd5&&(o["Content-MD5"]=c.b64(F)),(t.UploadAddMetaMd5||e.options.UploadAddMetaMd5)&&(o["x-cos-meta-md5"]=F)),t.ContentLength!==void 0&&(o["Content-Length"]=t.ContentLength),r(null,!0),de.call(e,{Action:"name/cos:PutObject",TaskId:t.TaskId,method:"PUT",Bucket:t.Bucket,Region:t.Region,Key:t.Key,headers:t.Headers,qs:t.Query,body:t.Body,onProgress:r,tracker:S},function(ge,Ce){if(ge)return r(null,!0),l(ge);r({loaded:n,total:n},!0);var ve=Ve({ForcePathStyle:e.options.ForcePathStyle,protocol:e.options.Protocol,domain:e.options.Domain,bucket:t.Bucket,region:e.options.UseAccelerate?"accelerate":t.Region,object:t.Key});ve=ve.substr(ve.indexOf("://")+3),Ce.Location=ve,Ce.ETag=c.attr(Ce.headers,"etag",""),l(null,Ce)})},t.onHashProgress)}function v(t,l){de.call(this,{Action:"name/cos:DeleteObject",method:"DELETE",Bucket:t.Bucket,Region:t.Region,Key:t.Key,headers:t.Headers,VersionId:t.VersionId,action:t.Recursive?"recursive":""},function(e,n){if(e){var r=e.statusCode;return r&&r===404?l(null,{BucketNotFound:!0,statusCode:r}):l(e)}l(null,{statusCode:n.statusCode,headers:n.headers})})}function R(t,l){var e={};t.VersionId&&(e.versionId=t.VersionId),de.call(this,{Action:"name/cos:GetObjectACL",method:"GET",Bucket:t.Bucket,Region:t.Region,Key:t.Key,headers:t.Headers,qs:e,action:"acl"},function(n,r){if(n)return l(n);var o=r.AccessControlPolicy||{},f=o.Owner||{},S=o.AccessControlList&&o.AccessControlList.Grant||[];S=c.isArray(S)?S:[S];var F=Je(o);delete F.GrantWrite,r.headers&&r.headers["x-cos-acl"]&&(F.ACL=r.headers["x-cos-acl"]),F=c.extend(F,{Owner:f,Grants:S,statusCode:r.statusCode,headers:r.headers}),l(null,F)})}function A(t,l){var e=t.Headers,n="";if(t.AccessControlPolicy){var r=c.clone(t.AccessControlPolicy||{}),o=r.Grants||r.Grant;o=c.isArray(o)?o:[o],delete r.Grant,delete r.Grants,r.AccessControlList={Grant:o},n=c.json2xml({AccessControlPolicy:r}),e["Content-Type"]="application/xml",e["Content-MD5"]=c.b64(c.md5(n))}c.each(e,function(f,S){S.indexOf("x-cos-grant-")===0&&(e[S]=Xe(e[S]))}),de.call(this,{Action:"name/cos:PutObjectACL",method:"PUT",Bucket:t.Bucket,Region:t.Region,Key:t.Key,action:"acl",headers:e,body:n},function(f,S){if(f)return l(f);l(null,{statusCode:S.statusCode,headers:S.headers})})}function G(t,l){var e=t.Headers;e.Origin=t.Origin,e["Access-Control-Request-Method"]=t.AccessControlRequestMethod,e["Access-Control-Request-Headers"]=t.AccessControlRequestHeaders,de.call(this,{Action:"name/cos:OptionsObject",method:"OPTIONS",Bucket:t.Bucket,Region:t.Region,Key:t.Key,headers:e},function(n,r){if(n)return n.statusCode&&n.statusCode===403?l(null,{OptionsForbidden:!0,statusCode:n.statusCode}):l(n);var o=r.headers||{};l(null,{AccessControlAllowOrigin:o["access-control-allow-origin"],AccessControlAllowMethods:o["access-control-allow-methods"],AccessControlAllowHeaders:o["access-control-allow-headers"],AccessControlExposeHeaders:o["access-control-expose-headers"],AccessControlMaxAge:o["access-control-max-age"],statusCode:r.statusCode,headers:r.headers})})}function se(t,l){var e=this,n=t.Headers;!n["Cache-Control"]&&!n["cache-control"]&&(n["Cache-Control"]="");var r=t.CopySource||"",o=c.getSourceParams.call(this,r);if(!o){l(c.error(new Error("CopySource format error")));return}var f=o.Bucket,S=o.Region,F=decodeURIComponent(o.Key);de.call(this,{Scope:[{action:"name/cos:GetObject",bucket:f,region:S,prefix:F},{action:"name/cos:PutObject",bucket:t.Bucket,region:t.Region,prefix:t.Key}],method:"PUT",Bucket:t.Bucket,Region:t.Region,Key:t.Key,VersionId:t.VersionId,headers:t.Headers},function(ge,Ce){if(ge)return l(ge);var ve=c.clone(Ce.CopyObjectResult||{}),Te=Ve({ForcePathStyle:e.options.ForcePathStyle,protocol:e.options.Protocol,domain:e.options.Domain,bucket:t.Bucket,region:t.Region,object:t.Key,isLocation:!0});c.extend(ve,{Location:Te,statusCode:Ce.statusCode,headers:Ce.headers}),l(null,ve)})}function me(t,l){var e=t.CopySource||"",n=c.getSourceParams.call(this,e);if(!n){l(c.error(new Error("CopySource format error")));return}var r=n.Bucket,o=n.Region,f=decodeURIComponent(n.Key);de.call(this,{Scope:[{action:"name/cos:GetObject",bucket:r,region:o,prefix:f},{action:"name/cos:PutObject",bucket:t.Bucket,region:t.Region,prefix:t.Key}],method:"PUT",Bucket:t.Bucket,Region:t.Region,Key:t.Key,VersionId:t.VersionId,qs:{partNumber:t.PartNumber,uploadId:t.UploadId},headers:t.Headers},function(S,F){if(S)return l(S);var ge=c.clone(F.CopyPartResult||{});c.extend(ge,{statusCode:F.statusCode,headers:F.headers}),l(null,ge)})}function W(t,l){var e=t.Objects||[],n=t.Quiet;e=c.isArray(e)?e:[e];var r=c.json2xml({Delete:{Object:e,Quiet:n||!1}}),o=t.Headers;o["Content-Type"]="application/xml",o["Content-MD5"]=c.b64(c.md5(r));var f=c.map(e,function(S){return{action:"name/cos:DeleteObject",bucket:t.Bucket,region:t.Region,prefix:S.Key}});de.call(this,{Scope:f,method:"POST",Bucket:t.Bucket,Region:t.Region,body:r,action:"delete",headers:o},function(S,F){if(S)return l(S);var ge=F.DeleteResult||{},Ce=ge.Deleted||[],ve=ge.Error||[];Ce=c.isArray(Ce)?Ce:[Ce],ve=c.isArray(ve)?ve:[ve];var Te=c.clone(ge);c.extend(Te,{Error:ve,Deleted:Ce,statusCode:F.statusCode,headers:F.headers}),l(null,Te)})}function Oe(t,l){var e=t.Headers;if(!t.RestoreRequest){l(c.error(new Error("missing param RestoreRequest")));return}var n=t.RestoreRequest||{},r=c.json2xml({RestoreRequest:n});e["Content-Type"]="application/xml",e["Content-MD5"]=c.b64(c.md5(r)),de.call(this,{Action:"name/cos:RestoreObject",method:"POST",Bucket:t.Bucket,Region:t.Region,Key:t.Key,VersionId:t.VersionId,body:r,action:"restore",headers:e},l)}function ke(t,l){var e=t.Tagging||{},n=e.TagSet||e.Tags||t.Tags||[];n=c.clone(c.isArray(n)?n:[n]);var r=c.json2xml({Tagging:{TagSet:{Tag:n}}}),o=t.Headers;o["Content-Type"]="application/xml",o["Content-MD5"]=c.b64(c.md5(r)),de.call(this,{Action:"name/cos:PutObjectTagging",method:"PUT",Bucket:t.Bucket,Key:t.Key,Region:t.Region,body:r,action:"tagging",headers:o,VersionId:t.VersionId},function(f,S){if(f&&f.statusCode===204)return l(null,{statusCode:f.statusCode});if(f)return l(f);l(null,{statusCode:S.statusCode,headers:S.headers})})}function Ie(t,l){de.call(this,{Action:"name/cos:GetObjectTagging",method:"GET",Key:t.Key,Bucket:t.Bucket,Region:t.Region,headers:t.Headers,action:"tagging",VersionId:t.VersionId},function(e,n){if(e){if(e.statusCode===404&&e.error&&(e.error==="Not Found"||e.error.Code==="NoSuchTagSet")){var r={Tags:[],statusCode:e.statusCode};e.headers&&(r.headers=e.headers),l(null,r)}else l(e);return}var o=[];try{o=n.Tagging.TagSet.Tag||[]}catch(f){}o=c.clone(c.isArray(o)?o:[o]),l(null,{Tags:o,statusCode:n.statusCode,headers:n.headers})})}function Pe(t,l){de.call(this,{Action:"name/cos:DeleteObjectTagging",method:"DELETE",Bucket:t.Bucket,Region:t.Region,Key:t.Key,headers:t.Headers,action:"tagging",VersionId:t.VersionId},function(e,n){if(e&&e.statusCode===204)return l(null,{statusCode:e.statusCode});if(e)return l(e);l(null,{statusCode:n.statusCode,headers:n.headers})})}function Me(t,l){var e=t.SelectType;if(!e)return l(c.error(new Error("missing param SelectType")));var n=t.SelectRequest||{},r=c.json2xml({SelectRequest:n}),o=t.Headers;o["Content-Type"]="application/xml",o["Content-MD5"]=c.b64(c.md5(r)),de.call(this,{Action:"name/cos:GetObject",method:"POST",Bucket:t.Bucket,Region:t.Region,Key:t.Key,headers:t.Headers,action:"select",qs:{"select-type":t.SelectType},VersionId:t.VersionId,body:r,DataType:"arraybuffer",rawBody:!0},function(f,S){if(f&&f.statusCode===204)return l(null,{statusCode:f.statusCode});if(f)return l(f);var F=c.parseSelectPayload(S.body);l(null,{statusCode:S.statusCode,headers:S.headers,Body:F.body,Payload:F.payload})})}function Ge(t,l){var e=this,n=t.Headers,r=t.tracker;!n["Cache-Control"]&&!n["cache-control"]&&(n["Cache-Control"]=""),!n["Content-Type"]&&!n["content-type"]&&(n["Content-Type"]=t.Body&&t.Body.type||"");var o=t.Body&&(t.UploadAddMetaMd5||e.options.UploadAddMetaMd5);o&&r&&r.setParams({md5StartTime:new Date().getTime()}),c.getBodyMd5(o,t.Body,function(f){f&&(t.Headers["x-cos-meta-md5"]=f),o&&r&&r.setParams({md5EndTime:new Date().getTime()}),de.call(e,{Action:"name/cos:InitiateMultipartUpload",method:"POST",Bucket:t.Bucket,Region:t.Region,Key:t.Key,action:"uploads",headers:t.Headers,qs:t.Query,tracker:r},function(S,F){if(S)return r&&r.parent&&r.parent.setParams({errorNode:"multipartInit"}),l(S);if(F=c.clone(F||{}),F&&F.InitiateMultipartUploadResult)return l(null,c.extend(F.InitiateMultipartUploadResult,{statusCode:F.statusCode,headers:F.headers}));l(null,F)})},t.onHashProgress)}function Le(t,l){var e=this;c.getFileSize("multipartUpload",t,function(){var n=t.tracker,r=e.options.UploadCheckContentMd5;r&&n&&n.setParams({md5StartTime:new Date().getTime()}),c.getBodyMd5(r,t.Body,function(o){o&&(t.Headers["Content-MD5"]=c.b64(o)),r&&n&&n.setParams({md5EndTime:new Date().getTime()}),n&&n.setParams({partNumber:t.PartNumber}),de.call(e,{Action:"name/cos:UploadPart",TaskId:t.TaskId,method:"PUT",Bucket:t.Bucket,Region:t.Region,Key:t.Key,qs:{partNumber:t.PartNumber,uploadId:t.UploadId},headers:t.Headers,onProgress:t.onProgress,body:t.Body||null,tracker:n},function(f,S){if(f)return n&&n.parent&&n.parent.setParams({errorNode:"multipartUpload"}),l(f);l(null,{ETag:c.attr(S.headers,"etag",""),statusCode:S.statusCode,headers:S.headers})})})})}function je(t,l){for(var e=this,n=t.UploadId,r=t.Parts,o=t.tracker,f=0,S=r.length;f-1?ve(Ce.Authorization):"sign="+encodeURIComponent(Ce.Authorization)),Ce.SecurityToken&&(Te+="&x-cos-security-token="+Ce.SecurityToken),Ce.ClientIP&&(Te+="&clientIP="+Ce.ClientIP),Ce.ClientUA&&(Te+="&clientUA="+Ce.ClientUA),Ce.Token&&(Te+="&token="+Ce.Token),o&&(Te+="&"+o),setTimeout(function(){l(null,{Url:Te})})}});return F?(f+="?"+F.Authorization+(F.SecurityToken?"&x-cos-security-token="+F.SecurityToken:""),o&&(f+="&"+o)):o&&(f+="?"+o),f}function Je(t){var l={GrantFullControl:[],GrantWrite:[],GrantRead:[],GrantReadAcp:[],GrantWriteAcp:[],ACL:""},e={FULL_CONTROL:"GrantFullControl",WRITE:"GrantWrite",READ:"GrantRead",READ_ACP:"GrantReadAcp",WRITE_ACP:"GrantWriteAcp"},n=t&&t.AccessControlList||{},r=n.Grant;r&&(r=c.isArray(r)?r:[r]);var o={READ:0,WRITE:0,FULL_CONTROL:0};return r&&r.length&&c.each(r,function(f){f.Grantee.ID==="qcs::cam::anyone:anyone"||f.Grantee.URI==="http://cam.qcloud.com/groups/global/AllUsers"?o[f.Permission]=1:f.Grantee.ID!==t.Owner.ID&&l[e[f.Permission]].push('id="'+f.Grantee.ID+'"')}),o.FULL_CONTROL||o.WRITE&&o.READ?l.ACL="public-read-write":o.READ?l.ACL="public-read":l.ACL="private",c.each(e,function(f){l[f]=Xe(l[f].join(","))}),l}function Xe(t){var l=t.split(","),e={},n,r;for(n=0;n-1?o="{Region}.myqcloud.com":o="cos.{Region}.myqcloud.com",t.ForcePathStyle||(o="{Bucket}."+o)),o=o.replace(/\{\{AppId\}\}/gi,r).replace(/\{\{Bucket\}\}/gi,n).replace(/\{\{Region\}\}/gi,l).replace(/\{\{.*?\}\}/gi,""),o=o.replace(/\{AppId\}/gi,r).replace(/\{BucketName\}/gi,n).replace(/\{Bucket\}/gi,e).replace(/\{Region\}/gi,l).replace(/\{.*?\}/gi,""),/^[a-zA-Z]+:\/\//.test(o)||(o=S+"//"+o),o.slice(-1)==="/"&&(o=o.slice(0,-1));var F=o;return t.ForcePathStyle&&(F+="/"+e),F+="/",f&&(F+=c.camSafeUrlEncode(f).replace(/%2F/g,"/")),t.isLocation&&(F=F.replace(/^https?:\/\//,"")),F}var rt=function(l){if(!l.Bucket||!l.Region)return"";var e=l.UseAccelerate===void 0?this.options.UseAccelerate:l.UseAccelerate,n=l.Url||Ve({ForcePathStyle:this.options.ForcePathStyle,protocol:this.options.Protocol,domain:this.options.Domain,bucket:l.Bucket,region:e?"accelerate":l.Region}),r=n.replace(/^https?:\/\/([^/]+)(\/.*)?$/,"$1"),o=new RegExp("^([a-z\\d-]+-\\d+\\.)?(cos|cosv6|ci|pic)\\.([a-z\\d-]+)\\.myqcloud\\.com$");return o.test(r)?r:""};function Qe(t,l){var e=c.clone(t.Headers),n="";c.each(e,function(Ae,Ee){(Ae===""||["content-type","cache-control","expires"].indexOf(Ee.toLowerCase())>-1)&&delete e[Ee],Ee.toLowerCase()==="host"&&(n=Ae)});var r=t.ForceSignHost!==!1;!n&&t.SignHost&&r&&(e.Host=t.SignHost);var o=!1,f=function(Ee,_e){o||(o=!0,_e&&_e.XCosSecurityToken&&!_e.SecurityToken&&(_e=c.clone(_e),_e.SecurityToken=_e.XCosSecurityToken,delete _e.XCosSecurityToken),l&&l(Ee,_e))},S=this,F=t.Bucket||"",ge=t.Region||"",Ce=t.Key||"";S.options.ForcePathStyle&&F&&(Ce=F+"/"+Ce);var ve="/"+Ce,Te={},Be=t.Scope;if(!Be){var Fe=t.Action||"",ze=t.ResourceKey||t.Key||"";Be=t.Scope||[{action:Fe,bucket:F,region:ge,prefix:ze}]}var He=c.md5(JSON.stringify(Be));S._StsCache=S._StsCache||[],function(){var Ae,Ee;for(Ae=S._StsCache.length-1;Ae>=0;Ae--){Ee=S._StsCache[Ae];var _e=Math.round(c.getSkewTime(S.options.SystemClockOffset)/1e3)+30;if(Ee.StartTime&&_e=Ee.ExpiredTime){S._StsCache.splice(Ae,1);continue}if(!Ee.ScopeLimit||Ee.ScopeLimit&&Ee.ScopeKey===He){Te=Ee;break}}}();var Ue=function(){var Ee="";Te.StartTime&&t.Expires?Ee=Te.StartTime+";"+(Te.StartTime+t.Expires*1):Te.StartTime&&Te.ExpiredTime&&(Ee=Te.StartTime+";"+Te.ExpiredTime);var _e=c.getAuth({SecretId:Te.TmpSecretId,SecretKey:Te.TmpSecretKey,Method:t.Method,Pathname:ve,Query:t.Query,Headers:e,Expires:t.Expires,UseRawKey:S.options.UseRawKey,SystemClockOffset:S.options.SystemClockOffset,KeyTime:Ee,ForceSignHost:r}),De={Authorization:_e,SecurityToken:Te.SecurityToken||Te.XCosSecurityToken||"",Token:Te.Token||"",ClientIP:Te.ClientIP||"",ClientUA:Te.ClientUA||""};f(null,De)},qe=function(Ee){if(Ee.Authorization){var _e=!1,De=Ee.Authorization;if(De)if(De.indexOf(" ")>-1)_e=!1;else if(De.indexOf("q-sign-algorithm=")>-1&&De.indexOf("q-ak=")>-1&&De.indexOf("q-sign-time=")>-1&&De.indexOf("q-key-time=")>-1&&De.indexOf("q-url-param-list=")>-1)_e=!0;else try{De=atob(De),De.indexOf("a=")>-1&&De.indexOf("k=")>-1&&De.indexOf("t=")>-1&&De.indexOf("r=")>-1&&De.indexOf("b=")>-1&&(_e=!0)}catch($e){}if(!_e)return c.error(new Error("getAuthorization callback params format error"))}else{if(!Ee.TmpSecretId)return c.error(new Error('getAuthorization callback params missing "TmpSecretId"'));if(!Ee.TmpSecretKey)return c.error(new Error('getAuthorization callback params missing "TmpSecretKey"'));if(!Ee.SecurityToken&&!Ee.XCosSecurityToken)return c.error(new Error('getAuthorization callback params missing "SecurityToken"'));if(!Ee.ExpiredTime)return c.error(new Error('getAuthorization callback params missing "ExpiredTime"'));if(Ee.ExpiredTime&&Ee.ExpiredTime.toString().length!==10)return c.error(new Error('getAuthorization callback params "ExpiredTime" should be 10 digits'));if(Ee.StartTime&&Ee.StartTime.toString().length!==10)return c.error(new Error('getAuthorization callback params "StartTime" should be 10 StartTime'))}return!1};if(Te.ExpiredTime&&Te.ExpiredTime-c.getSkewTime(S.options.SystemClockOffset)/1e3>60)Ue();else if(S.options.getAuthorization)S.options.getAuthorization.call(S,{Bucket:F,Region:ge,Method:t.Method,Key:Ce,Pathname:ve,Query:t.Query,Headers:e,Scope:Be,SystemClockOffset:S.options.SystemClockOffset,ForceSignHost:r},function(Ae){typeof Ae=="string"&&(Ae={Authorization:Ae});var Ee=qe(Ae);if(Ee)return f(Ee);Ae.Authorization?f(null,Ae):(Te=Ae||{},Te.Scope=Be,Te.ScopeKey=He,S._StsCache.push(Te),Ue())});else if(S.options.getSTS)S.options.getSTS.call(S,{Bucket:F,Region:ge},function(Ae){Te=Ae||{},Te.Scope=Be,Te.ScopeKey=He,Te.TmpSecretId||(Te.TmpSecretId=Te.SecretId),Te.TmpSecretKey||(Te.TmpSecretKey=Te.SecretKey);var Ee=qe(Te);if(Ee)return f(Ee);S._StsCache.push(Te),Ue()});else return function(){var Ae=c.getAuth({SecretId:t.SecretId||S.options.SecretId,SecretKey:t.SecretKey||S.options.SecretKey,Method:t.Method,Pathname:ve,Query:t.Query,Headers:e,Expires:t.Expires,UseRawKey:S.options.UseRawKey,SystemClockOffset:S.options.SystemClockOffset,ForceSignHost:r}),Ee={Authorization:Ae,SecurityToken:S.options.SecurityToken||S.options.XCosSecurityToken};return f(null,Ee),Ee}();return""}function et(t){var l=!1,e=!1,n=t.headers&&(t.headers.date||t.headers.Date)||t.error&&t.error.ServerTime;try{var r=t.error.Code,o=t.error.Message;(r==="RequestTimeTooSkewed"||r==="AccessDenied"&&o==="Request has expired")&&(e=!0)}catch(S){}if(t)if(e&&n){var f=Date.parse(n);this.options.CorrectClockSkew&&Math.abs(c.getSkewTime(this.options.SystemClockOffset)-f)>=3e4&&(console.error("error: Local time is too skewed."),this.options.SystemClockOffset=f-Date.now(),l=!0)}else Math.floor(t.statusCode/100)===5&&(l=!0);return l}function de(t,l){var e=this;!t.headers&&(t.headers={}),!t.qs&&(t.qs={}),t.VersionId&&(t.qs.versionId=t.VersionId),t.qs=c.clearKey(t.qs),t.headers&&(t.headers=c.clearKey(t.headers)),t.qs&&(t.qs=c.clearKey(t.qs));var n=c.clone(t.qs);t.action&&(n[t.action]="");var r=t.url||t.Url,o=t.SignHost||rt.call(this,{Bucket:t.Bucket,Region:t.Region,Url:r}),f=t.tracker,S=function F(ge){var Ce=e.options.SystemClockOffset;f&&f.setParams({signStartTime:new Date().getTime(),retryTimes:ge-1}),Qe.call(e,{Bucket:t.Bucket||"",Region:t.Region||"",Method:t.method,Key:t.Key,Query:n,Headers:t.headers,SignHost:o,Action:t.Action,ResourceKey:t.ResourceKey,Scope:t.Scope,ForceSignHost:e.options.ForceSignHost},function(ve,Te){if(ve){l(ve);return}f&&f.setParams({signEndTime:new Date().getTime(),httpStartTime:new Date().getTime()}),t.AuthData=Te,tt.call(e,t,function(Be,Fe){f&&f.setParams({httpEndTime:new Date().getTime()}),Be&&ge<2&&(Ce!==e.options.SystemClockOffset||et.call(e,Be))?(t.headers&&(delete t.headers.Authorization,delete t.headers.token,delete t.headers.clientIP,delete t.headers.clientUA,t.headers["x-cos-security-token"]&&delete t.headers["x-cos-security-token"],t.headers["x-ci-security-token"]&&delete t.headers["x-ci-security-token"]),F(ge+1)):l(Be,Fe)})})};S(1)}function tt(t,l){var e=this,n=t.TaskId;if(!(n&&!e._isRunningTask(n))){var r=t.Bucket,o=t.Region,f=t.Key,S=t.method||"GET",F=t.Url||t.url,ge=t.body,Ce=t.rawBody;e.options.UseAccelerate&&(o="accelerate"),F=F||Ve({ForcePathStyle:e.options.ForcePathStyle,protocol:e.options.Protocol,domain:e.options.Domain,bucket:r,region:o,object:f}),t.action&&(F=F+"?"+(c.isIOS_QQ?"".concat(t.action,"="):t.action)),t.qsStr&&(F.indexOf("?")>-1?F=F+"&"+t.qsStr:F=F+"?"+t.qsStr);var ve={method:S,url:F,headers:t.headers,qs:t.qs,body:ge},Te="x-cos-security-token";if(c.isCIHost(F)&&(Te="x-ci-security-token"),ve.headers.Authorization=t.AuthData.Authorization,t.AuthData.Token&&(ve.headers.token=t.AuthData.Token),t.AuthData.ClientIP&&(ve.headers.clientIP=t.AuthData.ClientIP),t.AuthData.ClientUA&&(ve.headers.clientUA=t.AuthData.ClientUA),t.AuthData.SecurityToken&&(ve.headers[Te]=t.AuthData.SecurityToken),ve.headers&&(ve.headers=c.clearKey(ve.headers)),ve=c.clearKey(ve),t.onProgress&&typeof t.onProgress=="function"){var Be=ge&&(ge.size||ge.length)||0;ve.onProgress=function(Ae){if(!(n&&!e._isRunningTask(n))){var Ee=Ae?Ae.loaded:0;t.onProgress({loaded:Ee,total:Be})}}}t.onDownloadProgress&&(ve.onDownloadProgress=t.onDownloadProgress),t.DataType&&(ve.dataType=t.DataType),this.options.Timeout&&(ve.timeout=this.options.Timeout),e.options.ForcePathStyle&&(ve.pathStyle=e.options.ForcePathStyle),e.emit("before-send",ve);var Fe=ve.url.includes("accelerate."),ze=ve.qs?Object.keys(ve.qs).map(function(Ae){return"".concat(Ae,"=").concat(ve.qs[Ae])}).join("&"):"",He=ze?ve.url+"?"+ze:ve.url;t.tracker&&t.tracker.setParams({reqUrl:He,accelerate:Fe?"Y":"N"}),t.tracker&&t.tracker.parent&&t.tracker.parent.setParams({reqUrl:He,accelerate:Fe?"Y":"N"});var Ue=(e.options.Request||T)(ve,function(Ae){if(!(Ae&&Ae.error==="abort")){var Ee={options:ve,error:Ae&&Ae.error,statusCode:Ae&&Ae.statusCode||0,statusMessage:Ae&&Ae.statusMessage||"",headers:Ae&&Ae.headers||{},body:Ae&&Ae.body};e.emit("after-receive",Ee);var _e=Ee.error,De=Ee.body,$e={statusCode:Ee.statusCode,statusMessage:Ee.statusMessage,headers:Ee.headers},gt,it=function(dt,ht){if(n&&e.off("inner-kill-task",qe),!gt){gt=!0;var ft={};$e&&$e.statusCode&&(ft.statusCode=$e.statusCode),$e&&$e.headers&&(ft.headers=$e.headers),dt?(dt=c.extend(dt||{},ft),l(dt,null)):(ht=c.extend(ht||{},ft),l(null,ht)),Ue=null}};if(_e)return it(c.error(_e));var ct=$e.statusCode,vt=Math.floor(ct/100)===2;if(Ce&&vt)return it(null,{body:De});var ut;try{ut=De&&De.indexOf("<")>-1&&De.indexOf(">")>-1&&c.xml2json(De)||{}}catch(pt){ut={}}var lt=ut&&ut.Error;vt?it(null,ut):lt?it(c.error(new Error(lt.Message),{code:lt.Code,error:lt})):ct?it(c.error(new Error($e.statusMessage),{code:""+ct})):ct&&it(c.error(new Error("statusCode error")))}}),qe=function Ae(Ee){Ee.TaskId===n&&(Ue&&Ue.abort&&Ue.abort(),e.off("inner-kill-task",Ae))};n&&e.on("inner-kill-task",qe)}}var st={getService:k,putBucket:_,headBucket:ee,getBucket:O,deleteBucket:x,putBucketAcl:q,getBucketAcl:L,putBucketCors:z,getBucketCors:B,deleteBucketCors:j,getBucketLocation:Q,getBucketPolicy:le,putBucketPolicy:U,deleteBucketPolicy:w,putBucketTagging:C,getBucketTagging:y,deleteBucketTagging:K,putBucketLifecycle:h,getBucketLifecycle:P,deleteBucketLifecycle:N,putBucketVersioning:M,getBucketVersioning:$,putBucketReplication:b,getBucketReplication:H,deleteBucketReplication:D,putBucketWebsite:X,getBucketWebsite:J,deleteBucketWebsite:ae,putBucketReferer:ie,getBucketReferer:ne,putBucketDomain:Z,getBucketDomain:te,deleteBucketDomain:oe,putBucketOrigin:be,getBucketOrigin:ce,deleteBucketOrigin:Y,putBucketLogging:he,getBucketLogging:re,putBucketInventory:pe,postBucketInventory:fe,getBucketInventory:ye,listBucketInventory:Re,deleteBucketInventory:Se,putBucketAccelerate:xe,getBucketAccelerate:we,putBucketEncryption:V,getBucketEncryption:E,deleteBucketEncryption:I,getObject:a,headObject:d,listObjectVersions:i,putObject:s,deleteObject:v,getObjectAcl:R,putObjectAcl:A,optionsObject:G,putObjectCopy:se,deleteMultipleObject:W,restoreObject:Oe,putObjectTagging:ke,getObjectTagging:Ie,deleteObjectTagging:Pe,selectObjectContent:Me,appendObject:Ye,uploadPartCopy:me,multipartInit:Ge,multipartUpload:Le,multipartComplete:je,multipartList:Ne,multipartListPart:Ke,multipartAbort:We,request:nt,getObjectUrl:ot,getAuth:Ze};function at(t,l,e){c.each(["Cors","Acl"],function(n){if(t.slice(-n.length)===n){var r=t.slice(0,-n.length)+n.toUpperCase(),o=c.apiWrapper(t,l),f=!1;e[r]=function(){!f&&console.warn("warning: cos."+r+" has been deprecated. Please Use cos."+t+" instead."),f=!0,o.apply(this,arguments)}}})}p.exports.init=function(t,l){l.transferToTaskMethod(st,"putObject"),c.each(st,function(e,n){t.prototype[n]=c.apiWrapper(n,e),at(n,e,t.prototype)})}},"./src/cos.js":function(p,m,u){"use strict";var g=u("./src/util.js"),T=u("./src/event.js"),c=u("./src/task.js"),k=u("./src/base.js"),_=u("./src/advance.js"),ee=u("./package.json"),O={AppId:"",SecretId:"",SecretKey:"",SecurityToken:"",ChunkRetryTimes:2,FileParallelLimit:3,ChunkParallelLimit:3,ChunkSize:1024*1024,SliceSize:1024*1024,CopyChunkParallelLimit:20,CopyChunkSize:1024*1024*10,CopySliceSize:1024*1024*10,MaxPartNumber:1e4,ProgressInterval:1e3,Domain:"",ServiceDomain:"",Protocol:"",CompatibilityMode:!1,ForcePathStyle:!1,UseRawKey:!1,Timeout:0,CorrectClockSkew:!0,SystemClockOffset:0,UploadCheckContentMd5:!1,UploadQueueSize:1e4,UploadAddMetaMd5:!1,UploadIdCacheLimit:50,UseAccelerate:!1,ForceSignHost:!0,EnableTracker:!1,DeepTracker:!1,TrackerDelay:5e3,CustomId:""},x=function(L){this.options=g.extend(g.clone(O),L||{}),this.options.FileParallelLimit=Math.max(1,this.options.FileParallelLimit),this.options.ChunkParallelLimit=Math.max(1,this.options.ChunkParallelLimit),this.options.ChunkRetryTimes=Math.max(0,this.options.ChunkRetryTimes),this.options.ChunkSize=Math.max(1024*1024,this.options.ChunkSize),this.options.CopyChunkParallelLimit=Math.max(1,this.options.CopyChunkParallelLimit),this.options.CopyChunkSize=Math.max(1024*1024,this.options.CopyChunkSize),this.options.CopySliceSize=Math.max(0,this.options.CopySliceSize),this.options.MaxPartNumber=Math.max(1024,Math.min(1e4,this.options.MaxPartNumber)),this.options.Timeout=Math.max(0,this.options.Timeout),this.options.AppId&&console.warn('warning: AppId has been deprecated, Please put it at the end of parameter Bucket(E.g: "test-1250000000").'),this.options.SecretId&&this.options.SecretId.indexOf(" ")>-1&&(console.error("error: SecretId\u683C\u5F0F\u9519\u8BEF\uFF0C\u8BF7\u68C0\u67E5"),console.error("error: SecretId format is incorrect. Please check")),this.options.SecretKey&&this.options.SecretKey.indexOf(" ")>-1&&(console.error("error: SecretKey\u683C\u5F0F\u9519\u8BEF\uFF0C\u8BF7\u68C0\u67E5"),console.error("error: SecretKey format is incorrect. Please check")),g.isNode()&&(console.warn("warning: cos-js-sdk-v5 \u4E0D\u652F\u6301 nodejs \u73AF\u5883\u4F7F\u7528\uFF0C\u8BF7\u6539\u7528 cos-nodejs-sdk-v5\uFF0C\u53C2\u8003\u6587\u6863\uFF1A https://cloud.tencent.com/document/product/436/8629"),console.warn("warning: cos-js-sdk-v5 does not support nodejs environment. Please use cos-nodejs-sdk-v5 instead. See: https://cloud.tencent.com/document/product/436/8629")),T.init(this),c.init(this)};k.init(x,c),_.init(x,c),x.util={md5:g.md5,xml2json:g.xml2json,json2xml:g.json2xml},x.getAuthorization=g.getAuth,x.version=ee.version,p.exports=x},"./src/event.js":function(p,m){var u=function(c){var k={},_=function(O){return!k[O]&&(k[O]=[]),k[O]};c.on=function(ee,O){ee==="task-list-update"&&console.warn('warning: Event "'+ee+'" has been deprecated. Please use "list-update" instead.'),_(ee).push(O)},c.off=function(ee,O){for(var x=_(ee),q=x.length-1;q>=0;q--)O===x[q]&&x.splice(q,1)},c.emit=function(ee,O){for(var x=_(ee).map(function(L){return L}),q=0;q=0;Q--){var U=k[Q][2];(!U||U+c=0;U--){var le=k[U];le[0]===B&&le[1]===j&&k.splice(U,1)}k.unshift([B,j,Math.round(Date.now()/1e3)]),k.length>Q&&k.splice(Q),q()}},removeUploadId:function(B){x.call(this),delete L.using[B];for(var j=k.length-1;j>=0;j--)k[j][1]===B&&k.splice(j,1);q()}};p.exports=L},"./src/task.js":function(p,m,u){var g=u("./src/session.js"),T=u("./src/util.js"),c={},k=function(O,x){c[x]=O[x],O[x]=function(q,L){q.SkipTask?c[x].call(this,q,L):this._addTask(x,q,L)}},_=function(O){var x=[],q={},L=0,z=0,B=function(y){var K={id:y.id,Bucket:y.Bucket,Region:y.Region,Key:y.Key,FilePath:y.FilePath,state:y.state,loaded:y.loaded,size:y.size,speed:y.speed,percent:y.percent,hashPercent:y.hashPercent,error:y.error};return y.FilePath&&(K.FilePath=y.FilePath),y._custom&&(K._custom=y._custom),K},j=function(){var C,y=function(){C=0,O.emit("task-list-update",{list:T.map(x,B)}),O.emit("list-update",{list:T.map(x,B)})};return function(){C||(C=setTimeout(y))}}(),Q=function(){if(!(x.length<=O.options.UploadQueueSize)){for(var y=0;yO.options.UploadQueueSize;){var K=x[y].state==="waiting"||x[y].state==="checking"||x[y].state==="uploading";!x[y]||!K?(q[x[y].id]&&delete q[x[y].id],x.splice(y,1),z--):y++}j()}},U=function C(){if(!(L>=O.options.FileParallelLimit)){for(;x[z]&&x[z].state!=="waiting";)z++;if(!(z>=x.length)){var y=x[z];z++,L++,y.state="checking",y.params.onTaskStart&&y.params.onTaskStart(B(y)),!y.params.UploadData&&(y.params.UploadData={});var K=T.formatParams(y.api,y.params);c[y.api].call(O,K,function(h,P){!O._isRunningTask(y.id)||((y.state==="checking"||y.state==="uploading")&&(y.state=h?"error":"success",h&&(y.error=h),L--,j(),C(),y.callback&&y.callback(h,P),y.state==="success"&&(y.params&&(delete y.params.UploadData,delete y.params.Body,delete y.params),delete y.callback)),Q())}),j(),setTimeout(C)}}},le=function(y,K){var h=q[y];if(!!h){var P=h&&h.state==="waiting",N=h&&(h.state==="checking"||h.state==="uploading");if(K==="canceled"&&h.state!=="canceled"||K==="paused"&&P||K==="paused"&&N){if(K==="paused"&&h.params.Body&&typeof h.params.Body.pipe=="function"){console.error("stream not support pause");return}h.state=K,O.emit("inner-kill-task",{TaskId:y,toState:K});try{var M=h&&h.params&&h.params.UploadData.UploadId}catch($){}K==="canceled"&&M&&g.removeUsing(M),j(),N&&(L--,U()),K==="canceled"&&(h.params&&(delete h.params.UploadData,delete h.params.Body,delete h.params),delete h.callback)}Q()}};O._addTasks=function(C){T.each(C,function(y){O._addTask(y.api,y.params,y.callback,!0)}),j()};var w=!0;O._addTask=function(C,y,K,h){y=T.formatParams(C,y);var P=T.uuid();y.TaskId=P,y.onTaskReady&&y.onTaskReady(P),y.TaskReady&&(y.TaskReady(P),w&&console.warn('warning: Param "TaskReady" has been deprecated. Please use "onTaskReady" instead.'),w=!1);var N={params:y,callback:K,api:C,index:x.length,id:P,Bucket:y.Bucket,Region:y.Region,Key:y.Key,FilePath:y.FilePath||"",state:"waiting",loaded:0,size:0,speed:0,percent:0,hashPercent:0,error:null,_custom:y._custom},M=y.onHashProgress;y.onHashProgress=function(b){!O._isRunningTask(N.id)||(N.hashPercent=b.percent,M&&M(b),j())};var $=y.onProgress;return y.onProgress=function(b){!O._isRunningTask(N.id)||(N.state==="checking"&&(N.state="uploading"),N.loaded=b.loaded,N.speed=b.speed,N.percent=b.percent,$&&$(b),j())},T.getFileSize(C,y,function(b,H){if(b)return K(T.error(b));q[P]=N,x.push(N),N.size=H,!h&&j(),U(),Q()}),P},O._isRunningTask=function(C){var y=q[C];return!!(y&&(y.state==="checking"||y.state==="uploading"))},O.getTaskList=function(){return T.map(x,B)},O.cancelTask=function(C){le(C,"canceled")},O.pauseTask=function(C){le(C,"paused")},O.restartTask=function(C){var y=q[C];y&&(y.state==="paused"||y.state==="error")&&(y.state="waiting",j(),z=Math.min(z,y.index),U())},O.isUploadRunning=function(){return L||z=0||C.indexOf("wow32")>=0?"win32":C.indexOf("win64")>=0||C.indexOf("wow64")>=0?"win64":y?"mac":"unknown os"},isMobile:function(){var C=/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i;return!!((typeof navigator=="undefined"?"undefined":c(navigator))==="object"&&navigator.userAgent.match(C))},isAndroid:function(){var C=/(Android|Adr|Linux)/i;return!!((typeof navigator=="undefined"?"undefined":c(navigator))==="object"&&navigator.userAgent.match(C))},isIOS:function(){var C=/(iPhone|iPod|iPad|iOS)/i;return!!((typeof navigator=="undefined"?"undefined":c(navigator))==="object"&&navigator.userAgent.match(C))},isOtherMobile:function(){return isMobile&&!isAndroid&&!isIOS},getDeviceName:function(){if((typeof navigator=="undefined"?"undefined":c(navigator))!=="object")return"unknown device";var C=navigator.userAgent.toLowerCase();if(C.includes("app/tencent_wemeet"))return"tencent_wemeet";if(C.indexOf("maxthon")>=0){var y=C.match(/maxthon\/([\d.]+)/),K=y&&y[1]||"";return"\u50B2\u6E38\u6D4F\u89C8\u5668 ".concat(K).trim()}if(C.indexOf("qqbrowser")>=0){var h=C.match(/qqbrowser\/([\d.]+)/),P=h&&h[1]||"";return"QQ\u6D4F\u89C8\u5668 ".concat(P).trim()}if(C.indexOf("se 2.x")>=0)return"\u641C\u72D7\u6D4F\u89C8\u5668";if(C.indexOf("wxwork")>=0)return"\u5FAE\u4FE1\u5185\u7F6E\u6D4F\u89C8\u5668";if(C.indexOf("msie")>=0){var N=C.match(/msie ([\d.]+)/),M=N&&N[1]||"";return"IE ".concat(M).trim()}if(C.indexOf("firefox")>=0){var $=C.match(/firefox\/([\d.]+)/),b=$&&$[1]||"";return"Firefox ".concat(b).trim()}if(C.indexOf("chrome")>=0){var H=C.match(/chrome\/([\d.]+)/),D=H&&H[1]||"";return"Chrome ".concat(D).trim()}if(C.indexOf("opera")>=0){var X=C.match(/opera.([\d.]+)/),J=X&&X[1]||"";return"Opera ".concat(J).trim()}if(C.indexOf("safari")>=0){var ae=C.match(/version\/([\d.]+)/),ie=ae&&ae[1]||"";return"Safari ".concat(ie).trim()}if(C.indexOf("edge")>=0){var ne=C.match(/edge\/([\d.]+)/),Z=ne&&ne[1]||"";return"edge ".concat(Z).trim()}return C.substr(0,200)}},x={isMobile:O.isMobile(),isBrowser:!O.isMobile(),mobileOsType:O.isAndroid()?"android":O.isIOS?"ios":"other_mobile",pcOsType:O.getOsType()},q={deviceType:x.isMobile?"mobile":x.isBrowser?"browser":"unknown",devicePlatform:x.isMobile?x.mobileOsType:x.pcOsType,deviceName:O.getDeviceName()},L=["multipartInit","multipartUpload","multipartComplete","multipartList","multipartListPart","multipartAbort"],z=["putObject","postObject","appendObject","sliceUploadFile","uploadFile","uploadFiles"].concat(L),B=["getObject"];function j(w){return z.includes(w)?"cos_upload":B.includes(w)?"cos_download":"base_service"}function Q(w){return w.replace(/([A-Z])/g,"_$1").toLowerCase()}function U(w){var C={},y=["tracePlatform","cossdkVersion","region","networkType","host","accelerate","requestPath","size","httpMd5","httpSign","httpFull","name","result","tookTime","errorNode","errorCode","errorMessage","errorRequestId","errorStatusCode","errorServiceName","errorType","traceId","bucket","appid","partNumber","retryTimes","reqUrl","customId","fullError","deviceType","devicePlatform","deviceName"],K=["tracePlatform","cossdkVersion","region","bucket","appid","networkType","host","accelerate","requestPath","partNumber","size","name","result","tookTime","errorRequestId","retryTimes","reqUrl","customId","deviceType","devicePlatform","deviceName"],h=w.result==="Success"?K:y;for(var P in w)if(!!h.includes(P)){var N=Q(P);C[N]=w[P]}return C}var le=function(){"use strict";function w(C){g(this,w);var y=C.parent,K=C.traceId,h=C.bucket,P=C.region,N=C.apiName,M=C.fileKey,$=C.fileSize,b=C.accelerate,H=C.customId,D=C.delay,X=C.deepTracker,J=h&&h.substr(h.lastIndexOf("-")+1)||"";this.parent=y,this.deepTracker=X,this.delay=D,this.params={cossdkVersion:k.version,region:P,networkType:"",host:"",accelerate:b?"Y":"N",requestPath:M||"",size:$||-1,httpMd5:0,httpSign:0,httpFull:0,name:N||"",result:"",tookTime:0,errorNode:"",errorCode:"",errorMessage:"",errorRequestId:"",errorStatusCode:0,errorServiceName:"",tracePlatform:"cos-js-sdk-v5",traceId:K||O.getUid(),bucket:h,appid:J,partNumber:0,retryTimes:0,reqUrl:"",customId:H||"",deviceType:q.deviceType,devicePlatform:q.devicePlatform,deviceName:q.deviceName,md5StartTime:0,md5EndTime:0,signStartTime:0,signEndTime:0,httpStartTime:0,httpEndTime:0,startTime:new Date().getTime(),endTime:0},this.beacon=ee(D)}return T(w,[{key:"formatResult",value:function(y,K){var h,P,N,M,$,b,H=new Date().getTime(),D=H-this.params.startTime,X=O.getNetType(),J=y?(y==null?void 0:y.code)||(y==null||(h=y.error)===null||h===void 0?void 0:h.code)||(y==null||(P=y.error)===null||P===void 0?void 0:P.Code):"",ae=y?(y==null?void 0:y.message)||(y==null||(N=y.error)===null||N===void 0?void 0:N.message)||(y==null||(M=y.error)===null||M===void 0?void 0:M.Message):"",ie=y?(y==null?void 0:y.resource)||(y==null||($=y.error)===null||$===void 0?void 0:$.resource)||(y==null||(b=y.error)===null||b===void 0?void 0:b.Resource):"",ne=y?y==null?void 0:y.statusCode:K.statusCode,Z=y?(y==null?void 0:y.headers)&&(y==null?void 0:y.headers["x-cos-request-id"]):(K==null?void 0:K.headers)&&(K==null?void 0:K.headers["x-cos-request-id"]),te=y?Z?"Server":"Client":"";if(Object.assign(this.params,{tookTime:D,networkType:X,httpMd5:this.params.md5EndTime-this.params.md5StartTime,httpSign:this.params.signEndTime-this.params.signStartTime,httpFull:this.params.httpEndTime-this.params.httpStartTime,result:y?"Fail":"Success",errorType:te,errorCode:J,errorStatusCode:ne,errorMessage:ae,errorServiceName:ie,errorRequestId:Z}),y&&(!J||!ae)&&(this.params.fullError=y?JSON.stringify(y):""),this.params.name==="getObject"&&(this.params.size=K?K.headers&&K.headers["content-length"]:-1),this.params.reqUrl)try{var oe=/^http(s)?:\/\/(.*?)\//.exec(this.params.reqUrl);this.params.host=oe[2]}catch(be){this.params.host=this.params.reqUrl}this.sendEvents()}},{key:"setParams",value:function(y){Object.assign(this.params,y)}},{key:"sendEvents",value:function(){if(!(L.includes(this.params.name)&&!this.deepTracker)){var y=j(this.params.name),K=U(this.params);this.beacon||(this.beacon=ee(this.delay||5e3)),this.delay===0?this.beacon&&this.beacon.onDirectUserAction(y,K):this.beacon&&this.beacon.onUserAction(y,K)}}},{key:"generateSubTracker",value:function(y){return Object.assign(y,{parent:this,deepTracker:this.deepTracker,traceId:this.params.traceId,bucket:this.params.bucket,region:this.params.region,fileKey:this.params.requestPath,customId:this.params.customId,delay:this.delay}),new w(y)}}]),w}();p.exports=le},"./src/util.js":function(p,m,u){"use strict";(function(g){var T=u("./node_modules/@babel/runtime/helpers/typeof.js"),c=u("./lib/md5.js"),k=u("./lib/crypto.js"),_=u("./lib/xml2json.js"),ee=u("./lib/json2xml.js"),O=u("./src/tracker.js");function x(V){return encodeURIComponent(V).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A")}function q(V,E){var I=[];for(var d in V)V.hasOwnProperty(d)&&I.push(E?x(d).toLowerCase():d);return I.sort(function(i,a){return i=i.toLowerCase(),a=a.toLowerCase(),i===a?0:i>a?1:-1})}var L=function(E,I){var d,i,a,s=[],v=q(E);for(d=0;d-1||z.indexOf(i)>-1)&&(I[d]=E[d])}return I},j=function(E){E=E||{};var I=E.SecretId,d=E.SecretKey,i=E.KeyTime,a=(E.method||E.Method||"get").toLowerCase(),s=b(E.Query||E.params||{}),v=B(b(E.Headers||E.headers||{})),R=E.Key||"",A;E.UseRawKey?A=E.Pathname||E.pathname||"/"+R:(A=E.Pathname||E.pathname||R,A.indexOf("/")!==0&&(A="/"+A));var G=E.ForceSignHost!==!1;if(!v.Host&&!v.host&&E.Bucket&&E.Region&&G&&(v.Host=E.Bucket+".cos."+E.Region+".myqcloud.com"),!I)throw new Error("missing param SecretId");if(!d)throw new Error("missing param SecretKey");var se=Math.round(ue(E.SystemClockOffset)/1e3)-1,me=se,W=E.Expires||E.expires;W===void 0?me+=900:me+=W*1||0;var Oe="sha1",ke=I,Ie=i||se+";"+me,Pe=i||se+";"+me,Me=q(v,!0).join(";").toLowerCase(),Ge=q(s,!0).join(";").toLowerCase(),Le=k.HmacSHA1(Pe,d).toString(),je=[a,A,we.obj2str(s,!0),we.obj2str(v,!0),""].join(` +`),Ne=["sha1",Ie,k.SHA1(je).toString(),""].join(` +`),Ke=k.HmacSHA1(Ne,Le).toString(),We=["q-sign-algorithm="+Oe,"q-ak="+ke,"q-sign-time="+Ie,"q-key-time="+Pe,"q-header-list="+Me,"q-url-param-list="+Ge,"q-signature="+Ke].join("&");return We},Q=function(E,I,d){var i=I/8,a=E.slice(d,d+i);return new Uint8Array(a).reverse(),new{8:Uint8Array,16:Uint16Array,32:Uint32Array}[I](a)[0]},U=function(E,I,d,i){var a=E.slice(I,d),s="";return new Uint8Array(a).forEach(function(v){s+=String.fromCharCode(v)}),i&&(s=decodeURIComponent(escape(s))),s},le=function(E){for(var I={},d=U(E),i={records:[]};E.byteLength;){var a=Q(E,32,0),s=Q(E,32,4),v=a-s-16,R=0,A;for(E=E.slice(12);RparseInt(i[a])?1:-1;return 0},E=function(d){if(!d)return!1;var i=(d.match(/Chrome\/([.\d]+)/)||[])[1],a=(d.match(/QBCore\/([.\d]+)/)||[])[1],s=(d.match(/QQBrowser\/([.\d]+)/)||[])[1],v=i&&V(i,"53.0.2785.116")<0&&a&&V(a,"3.53.991.400")<0&&s&&V(s,"9.0.2524.400")<=0||!1;return v};return E(typeof navigator!="undefined"&&navigator.userAgent)}(),P=function(E,I,d,i,a){var s;if(E.slice?s=E.slice(I,d):E.mozSlice?s=E.mozSlice(I,d):E.webkitSlice&&(s=E.webkitSlice(I,d)),i&&h){var v=new FileReader;v.onload=function(R){s=null,a(new Blob([v.result]))},v.readAsArrayBuffer(s)}else a(s)},N=function(E,I,d,i){d=d||C,E?typeof I=="string"?d(we.md5(I,!0)):Blob&&I instanceof Blob?we.getFileMd5(I,function(a,s){d(s)},i):d():d()},M=1024*1024,$=function(E,I,d){var i=E.size,a=0,s=c.getCtx(),v=function R(A){if(A>=i){var G=s.digest("hex");I(null,G);return}var se=Math.min(i,A+M);we.fileSlice(E,A,se,!1,function(me){K(me,function(W){me=null,s=s.update(W,!0),a+=W.length,W=null,d&&d({loaded:a,total:i,percent:Math.round(a/i*1e4)/1e4}),R(A+M)})})};v(0)};function b(V){return ne(V,function(E){return T(E)==="object"&&E!==null?b(E):E})}function H(V,E,I){return V&&E in V?V[E]:I}function D(V,E){return ie(E,function(I,d){V[d]=E[d]}),V}function X(V){return V instanceof Array}function J(V,E){for(var I=!1,d=0;d-1,R=!s||typeof s=="string"&&s.indexOf("{Region}")>-1;if(E.indexOf("Bucket")>-1||E==="deleteMultipleObject"||E==="multipartList"||E==="listObjectVersions"){if(v&&!d)return"Bucket";if(R&&!i)return"Region"}else if(E.indexOf("Object")>-1||E.indexOf("multipart")>-1||E==="sliceUploadFile"||E==="abortUploadTask"){if(v&&!d)return"Bucket";if(R&&!i)return"Region";if(!a)return"Key"}return!1},ce=function(E,I){if(I=D({},I),E!=="getAuth"&&E!=="getV4Auth"&&E!=="getObjectUrl"){var d=I.Headers||{};if(I&&T(I)==="object"){(function(){for(var a in I)I.hasOwnProperty(a)&&a.indexOf("x-cos-")>-1&&(d[a]=I[a])})();var i={"x-cos-mfa":"MFA","Content-MD5":"ContentMD5","Content-Length":"ContentLength","Content-Type":"ContentType",Expect:"Expect",Expires:"Expires","Cache-Control":"CacheControl","Content-Disposition":"ContentDisposition","Content-Encoding":"ContentEncoding",Range:"Range","If-Modified-Since":"IfModifiedSince","If-Unmodified-Since":"IfUnmodifiedSince","If-Match":"IfMatch","If-None-Match":"IfNoneMatch","x-cos-copy-source":"CopySource","x-cos-copy-source-Range":"CopySourceRange","x-cos-metadata-directive":"MetadataDirective","x-cos-copy-source-If-Modified-Since":"CopySourceIfModifiedSince","x-cos-copy-source-If-Unmodified-Since":"CopySourceIfUnmodifiedSince","x-cos-copy-source-If-Match":"CopySourceIfMatch","x-cos-copy-source-If-None-Match":"CopySourceIfNoneMatch","x-cos-acl":"ACL","x-cos-grant-read":"GrantRead","x-cos-grant-write":"GrantWrite","x-cos-grant-full-control":"GrantFullControl","x-cos-grant-read-acp":"GrantReadAcp","x-cos-grant-write-acp":"GrantWriteAcp","x-cos-storage-class":"StorageClass","x-cos-traffic-limit":"TrafficLimit","x-cos-mime-limit":"MimeLimit","x-cos-server-side-encryption-customer-algorithm":"SSECustomerAlgorithm","x-cos-server-side-encryption-customer-key":"SSECustomerKey","x-cos-server-side-encryption-customer-key-MD5":"SSECustomerKeyMD5","x-cos-server-side-encryption":"ServerSideEncryption","x-cos-server-side-encryption-cos-kms-key-id":"SSEKMSKeyId","x-cos-server-side-encryption-context":"SSEContext","Pic-Operations":"PicOperations"};we.each(i,function(a,s){I[a]!==void 0&&(d[s]=I[a])}),I.Headers=y(d)}}return I},Y=function(E,I){return function(d,i){var a=this;typeof d=="function"&&(i=d,d={}),d=ce(E,d);var s;if(a.options.EnableTracker)if(d.calledBySdk==="sliceUploadFile")s=d.tracker&&d.tracker.generateSubTracker({apiName:E});else if(["uploadFile","uploadFiles"].includes(E))s=null;else{var v=-1;d.Body&&(v=typeof d.Body=="string"?d.Body.length:d.Body.size||d.Body.byteLength||-1),s=new O({bucket:d.Bucket,region:d.Region,apiName:E,fileKey:d.Key,fileSize:v,deepTracker:a.options.DeepTracker,customId:a.options.CustomId,delay:a.options.TrackerDelay})}d.tracker=s;var R=function(ke){return ke&&ke.headers&&(ke.headers["x-cos-request-id"]&&(ke.RequestId=ke.headers["x-cos-request-id"]),ke.headers["x-ci-request-id"]&&(ke.RequestId=ke.headers["x-ci-request-id"]),ke.headers["x-cos-version-id"]&&(ke.VersionId=ke.headers["x-cos-version-id"]),ke.headers["x-cos-delete-marker"]&&(ke.DeleteMarker=ke.headers["x-cos-delete-marker"])),ke},A=function(ke,Ie){s&&s.formatResult(ke,Ie),i&&i(R(ke),R(Ie))},G=function(){if(E!=="getService"&&E!=="abortUploadTask"){var ke=be.call(a,E,d);if(ke)return"missing param "+ke;if(d.Region){if(a.options.CompatibilityMode){if(!/^([a-z\d-.]+)$/.test(d.Region))return"Region format error."}else{if(d.Region.indexOf("cos.")>-1)return'param Region should not be start with "cos."';if(!/^([a-z\d-]+)$/.test(d.Region))return"Region format error."}!a.options.CompatibilityMode&&d.Region.indexOf("-")===-1&&d.Region!=="yfb"&&d.Region!=="default"&&d.Region!=="accelerate"&&console.warn("warning: param Region format error, find help here: https://cloud.tencent.com/document/product/436/6224")}if(d.Bucket){if(!/^([a-z\d-]+)-(\d+)$/.test(d.Bucket))if(d.AppId)d.Bucket=d.Bucket+"-"+d.AppId;else if(a.options.AppId)d.Bucket=d.Bucket+"-"+a.options.AppId;else return'Bucket should format as "test-1250000000".';d.AppId&&(console.warn('warning: AppId has been deprecated, Please put it at the end of parameter Bucket(E.g Bucket:"test-1250000000" ).'),delete d.AppId)}!a.options.UseRawKey&&d.Key&&d.Key.substr(0,1)==="/"&&(d.Key=d.Key.substr(1))}},se=G(),me=["getAuth","getObjectUrl"].includes(E);if(typeof Promise=="function"&&!me&&!i)return new Promise(function(Oe,ke){if(i=function(Pe,Me){Pe?ke(Pe):Oe(Me)},se)return A(we.error(new Error(se)));I.call(a,d,A)});if(se)return A(we.error(new Error(se)));var W=I.call(a,d,A);if(me)return W}},he=function(E,I){var d=this,i=0,a=0,s=Date.now(),v,R;function A(){if(R=0,I&&typeof I=="function"){v=Date.now();var G=Math.max(0,Math.round((a-i)/((v-s)/1e3)*100)/100)||0,se;a===0&&E===0?se=1:se=Math.floor(a/E*100)/100||0,s=v,i=a;try{I({loaded:a,total:E,speed:G,percent:se})}catch(me){}}}return function(G,se){if(G&&(a=G.loaded,E=G.total),se)clearTimeout(R),A();else{if(R)return;R=setTimeout(A,d.options.ProgressInterval)}}},re=function(E,I,d){var i;if(typeof I.Body=="string"?I.Body=new Blob([I.Body],{type:"text/plain"}):I.Body instanceof ArrayBuffer&&(I.Body=new Blob([I.Body])),I.Body&&(I.Body instanceof Blob||I.Body.toString()==="[object File]"||I.Body.toString()==="[object Blob]"))i=I.Body.size;else{d(we.error(new Error("params body format error, Only allow File|Blob|String.")));return}I.ContentLength=i,d(null,i)},ue=function(E){return Date.now()+(E||0)},pe=function(E,I){var d=E;return E.message=E.message||null,typeof I=="string"?(E.error=I,E.message=I):T(I)==="object"&&I!==null&&(D(E,I),(I.code||I.name)&&(E.code=I.code||I.name),I.message&&(E.message=I.message),I.stack&&(E.stack=I.stack)),typeof Object.defineProperty=="function"&&(Object.defineProperty(E,"name",{writable:!0,enumerable:!1}),Object.defineProperty(E,"message",{enumerable:!0})),E.name=I&&I.name||E.name||E.code||"Error",E.code||(E.code=E.name),E.error||(E.error=b(d)),E},fe=function(){return(typeof globalThis=="undefined"?"undefined":T(globalThis))==="object"&&(globalThis.constructor.name==="DedicatedWorkerGlobalScope"||globalThis.FileReaderSync)},ye=function(){return(typeof window=="undefined"?"undefined":T(window))!=="object"&&(typeof g=="undefined"?"undefined":T(g))==="object"&&!0&&!fe()},Re=function(E){return/^https?:\/\/([^/]+\.)?ci\.[^/]+/.test(E)},Se=function(){if((typeof navigator=="undefined"?"undefined":T(navigator))!=="object")return!1;var V=navigator.userAgent,E=!!V.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/);return E}(),xe=function(){return(typeof navigator=="undefined"?"undefined":T(navigator))!=="object"?!1:/\sQQ/i.test(navigator.userAgent)}(),we={noop:C,formatParams:ce,apiWrapper:Y,xml2json:_,json2xml:ee,md5:c,clearKey:y,fileSlice:P,getBodyMd5:N,getFileMd5:$,b64:te,extend:D,isArray:X,isInArray:J,makeArray:ae,each:ie,map:ne,filter:Z,clone:b,attr:H,uuid:oe,camSafeUrlEncode:x,throttleOnProgress:he,getFileSize:re,getSkewTime:ue,error:pe,obj2str:L,getAuth:j,parseSelectPayload:le,getSourceParams:w,isBrowser:!0,isNode:ye,isCIHost:Re,isIOS_QQ:Se&&xe};p.exports=we}).call(this,u("./node_modules/process/browser.js"))}})})}}]); diff --git a/dist/3390.a23d1d23.chunk.css b/dist/5758.a23d1d23.chunk.css similarity index 100% rename from dist/3390.a23d1d23.chunk.css rename to dist/5758.a23d1d23.chunk.css diff --git a/dist/3390.9366325d.async.js b/dist/5758.b93a35fe.async.js similarity index 97% rename from dist/3390.9366325d.async.js rename to dist/5758.b93a35fe.async.js index 72c7e58..13220d0 100644 --- a/dist/3390.9366325d.async.js +++ b/dist/5758.b93a35fe.async.js @@ -1,4 +1,4 @@ -(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[3390],{53227:function(E,R,n){"use strict";n.d(R,{L9:function(){return $e},ZP:function(){return Ge},MP:function(){return Te},NA:function(){return Me},aK:function(){return De}});var h=n(20228),b=n(11382),g=n(28991),c=n(81253),i=n(28481),u=n(85061),O=n(90484),y=n(84305),S=n(39559),I=n(49111),$=n(19650),j=n(85893),l=n(78775),T=n(67294),k=n(51804);function de(U){var Z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:100,_=arguments.length>2?arguments[2]:void 0,J=(0,T.useState)(U),q=(0,i.Z)(J,2),be=q[0],ce=q[1],Pe=(0,k.Z)(U);return(0,T.useEffect)(function(){var Ke=setTimeout(function(){ce(Pe.current)},Z);return function(){return clearTimeout(Ke)}},_?[Z].concat((0,u.Z)(_)):void 0),be}var ae=n(75661),te=n(56725),ee=n(27068),G=n(29405),Ve=n(38663),Be=n(80341),ue=n(96156),ve=n(22122),we=n(94184),re=n.n(we),Qe=n(63441),Ct=n(53124),Xe=n(96159),Ie=n(98787);function Yt(U){return Ie.Y.includes(U)}var St=function(Z){var _,J=Z.className,q=Z.prefixCls,be=Z.style,ce=Z.color,Pe=Z.children,Ke=Z.text,nt=Z.placement,Et=nt===void 0?"end":nt,lt=T.useContext(Ct.E_),Ne=lt.getPrefixCls,$t=lt.direction,Le=Ne("ribbon",q),Zt=Yt(ce),tt=re()(Le,"".concat(Le,"-placement-").concat(Et),(_={},(0,ue.Z)(_,"".concat(Le,"-rtl"),$t==="rtl"),(0,ue.Z)(_,"".concat(Le,"-color-").concat(ce),Zt),_),J),Wt={},yt={};return ce&&!Zt&&(Wt.background=ce,yt.color=ce),T.createElement("div",{className:"".concat(Le,"-wrapper")},Pe,T.createElement("div",{className:tt,style:(0,ve.Z)((0,ve.Z)({},Wt),be)},T.createElement("span",{className:"".concat(Le,"-text")},Ke),T.createElement("div",{className:"".concat(Le,"-corner"),style:yt})))},fr=St;function vr(U){var Z=U.prefixCls,_=U.value,J=U.current,q=U.offset,be=q===void 0?0:q,ce;return be&&(ce={position:"absolute",top:"".concat(be,"00%"),left:0}),T.createElement("span",{style:ce,className:re()("".concat(Z,"-only-unit"),{current:J})},_)}function dt(U,Z,_){for(var J=U,q=0;(J+10)%10!==Z;)J+=_,q+=_;return q}function Ot(U){var Z=U.prefixCls,_=U.count,J=U.value,q=Number(J),be=Math.abs(_),ce=T.useState(q),Pe=(0,i.Z)(ce,2),Ke=Pe[0],nt=Pe[1],Et=T.useState(be),lt=(0,i.Z)(Et,2),Ne=lt[0],$t=lt[1],Le=function(){nt(q),$t(be)};T.useEffect(function(){var _t=setTimeout(function(){Le()},1e3);return function(){clearTimeout(_t)}},[q]);var Zt,tt;if(Ke===q||Number.isNaN(q)||Number.isNaN(Ke))Zt=[T.createElement(vr,(0,ve.Z)({},U,{key:q,current:!0}))],tt={transition:"none"};else{Zt=[];for(var Wt=q+10,yt=[],_e=q;_e<=Wt;_e+=1)yt.push(_e);var Ut=yt.findIndex(function(_t){return _t%10===Ke});Zt=yt.map(function(_t,rr){var Ft=_t%10;return T.createElement(vr,(0,ve.Z)({},U,{key:_t,value:Ft,offset:rr-Ut,current:rr===Ut}))});var gr=Ne$t?"".concat($t,"+"):lt,jt=pt==="0"||pt===0,ct=lt===null||jt&&!rr,Qt=(Pe!=null||nt!=null)&&ct,pr=Zt&&!jt,Cr=pr?"":pt,lr=(0,T.useMemo)(function(){var vt=Cr==null||Cr==="";return(vt||jt&&!rr)&&!pr},[Cr,jt,rr,pr]),hr=(0,T.useRef)(lt);lr||(hr.current=lt);var Tt=hr.current,Or=(0,T.useRef)(Cr);lr||(Or.current=Cr);var yr=Or.current,Er=(0,T.useRef)(pr);lr||(Er.current=pr);var or=(0,T.useMemo)(function(){if(!_e)return(0,ve.Z)({},Ut);var vt={marginTop:_e[1]};return ft==="rtl"?vt.left=parseInt(_e[0],10):vt.right=-parseInt(_e[0],10),(0,ve.Z)((0,ve.Z)({},vt),Ut)},[ft,_e,Ut]),ir=yt!=null?yt:typeof Tt=="string"||typeof Tt=="number"?Tt:void 0,mr=lr||!Ke?null:T.createElement("span",{className:"".concat(He,"-status-text")},Ke),Nt=!Tt||(0,O.Z)(Tt)!=="object"?void 0:(0,Xe.Tm)(Tt,function(vt){return{style:(0,ve.Z)((0,ve.Z)({},or),vt.style)}}),Kt=re()((_={},(0,ue.Z)(_,"".concat(He,"-status-dot"),Qt),(0,ue.Z)(_,"".concat(He,"-status-").concat(Pe),!!Pe),(0,ue.Z)(_,"".concat(He,"-status-").concat(nt),Yt(nt)),_)),qt={};nt&&!Yt(nt)&&(qt.background=nt);var zt=re()(He,(J={},(0,ue.Z)(J,"".concat(He,"-status"),Qt),(0,ue.Z)(J,"".concat(He,"-not-a-wrapper"),!ce),(0,ue.Z)(J,"".concat(He,"-rtl"),ft==="rtl"),J),gr);if(!ce&&Qt){var er=or.color;return T.createElement("span",(0,ve.Z)({},Ft,{className:zt,style:or}),T.createElement("span",{className:Kt,style:qt}),Ke&&T.createElement("span",{style:{color:er},className:"".concat(He,"-status-text")},Ke))}return T.createElement("span",(0,ve.Z)({},Ft,{className:zt}),ce,T.createElement(Qe.Z,{visible:!lr,motionName:"".concat(He,"-zoom"),motionAppear:!1,motionDeadline:1e3},function(vt){var Pt,Rr=vt.className,br=wt("scroll-number",be),Ar=Er.current,zr=re()((Pt={},(0,ue.Z)(Pt,"".concat(He,"-dot"),Ar),(0,ue.Z)(Pt,"".concat(He,"-count"),!Ar),(0,ue.Z)(Pt,"".concat(He,"-count-sm"),Wt==="small"),(0,ue.Z)(Pt,"".concat(He,"-multiple-words"),!Ar&&yr&&yr.toString().length>1),(0,ue.Z)(Pt,"".concat(He,"-status-").concat(Pe),!!Pe),(0,ue.Z)(Pt,"".concat(He,"-status-").concat(nt),Yt(nt)),Pt)),Nr=(0,ve.Z)({},or);return nt&&!Yt(nt)&&(Nr=Nr||{},Nr.background=nt),T.createElement(K,{prefixCls:br,show:!lr,motionClassName:Rr,className:zr,count:yr,title:ir,style:Nr,key:"scrollNumber"},Nt)}),mr)};ot.Ribbon=fr;var Ce=ot,m=n(59189),x={Success:function(Z){var _=Z.children;return(0,j.jsx)(Ce,{status:"success",text:_})},Error:function(Z){var _=Z.children;return(0,j.jsx)(Ce,{status:"error",text:_})},Default:function(Z){var _=Z.children;return(0,j.jsx)(Ce,{status:"default",text:_})},Processing:function(Z){var _=Z.children;return(0,j.jsx)(Ce,{status:"processing",text:_})},Warning:function(Z){var _=Z.children;return(0,j.jsx)(Ce,{status:"warning",text:_})},success:function(Z){var _=Z.children;return(0,j.jsx)(Ce,{status:"success",text:_})},error:function(Z){var _=Z.children;return(0,j.jsx)(Ce,{status:"error",text:_})},default:function(Z){var _=Z.children;return(0,j.jsx)(Ce,{status:"default",text:_})},processing:function(Z){var _=Z.children;return(0,j.jsx)(Ce,{status:"processing",text:_})},warning:function(Z){var _=Z.children;return(0,j.jsx)(Ce,{status:"warning",text:_})}},p=function(Z){var _=Z.color,J=Z.children;return(0,j.jsx)(Ce,{color:_,text:J})},L=x,X=n(81539),H=n(47673),Ae=n(4107),Re=n(43358),Ze=n(34041),me=n(76570),ut=n(76422),ge=n(26435),qe=["label","prefixCls","onChange","value","mode","children","defaultValue","size","showSearch","disabled","style","className","bordered","options","onSearch","allowClear","labelInValue","fieldNames","lightLabel","labelTrigger"],it=function(Z,_){return(0,O.Z)(_)!=="object"?Z[_]||_:Z[_==null?void 0:_.value]||_.label},It=function(Z,_){var J=Z.label,q=Z.prefixCls,be=Z.onChange,ce=Z.value,Pe=Z.mode,Ke=Z.children,nt=Z.defaultValue,Et=Z.size,lt=Z.showSearch,Ne=Z.disabled,$t=Z.style,Le=Z.className,Zt=Z.bordered,tt=Z.options,Wt=Z.onSearch,yt=Z.allowClear,_e=Z.labelInValue,Ut=Z.fieldNames,gr=Z.lightLabel,_t=Z.labelTrigger,rr=(0,c.Z)(Z,qe),Ft=Z.placeholder,bt=Ft===void 0?J:Ft,wt=Ut||{},ft=wt.label,He=ft===void 0?"label":ft,pt=wt.value,jt=pt===void 0?"value":pt,ct=(0,T.useContext)(S.ZP.ConfigContext),Qt=ct.getPrefixCls,pr=Qt("pro-field-select-light-select"),Cr=(0,T.useState)(!1),lr=(0,i.Z)(Cr,2),hr=lr[0],Tt=lr[1],Or=(0,T.useState)(""),yr=(0,i.Z)(Or,2),Er=yr[0],or=yr[1],ir=(0,T.useMemo)(function(){var Nt={};return tt==null||tt.forEach(function(Kt){var qt=Kt[He],zt=Kt[jt];Nt[zt]=qt||zt}),Nt},[He,tt,jt]),mr=Array.isArray(ce)?ce.map(function(Nt){return it(ir,Nt)}):it(ir,ce);return(0,j.jsxs)("div",{className:re()(pr,(0,ue.Z)({},"".concat(pr,"-searchable"),lt),Le),style:$t,onClick:function(Kt){var qt,zt,er;if(!Ne){var vt=gr==null||(qt=gr.current)===null||qt===void 0||(zt=qt.labelRef)===null||zt===void 0||(er=zt.current)===null||er===void 0?void 0:er.contains(Kt.target);Tt(vt?!hr:!0)}},children:[(0,j.jsx)(Ze.Z,(0,g.Z)((0,g.Z)({},rr),{},{allowClear:yt,value:ce,mode:Pe,labelInValue:_e,size:Et,disabled:Ne,onChange:function(Kt,qt){be==null||be(Kt,qt),Pe!=="multiple"&&setTimeout(function(){Tt(!1)},0)},bordered:Zt,showSearch:lt,onSearch:Wt,style:$t,dropdownRender:function(Kt){return(0,j.jsxs)("div",{ref:_,children:[lt&&(0,j.jsx)("div",{style:{margin:"4px 8px"},children:(0,j.jsx)(Ae.Z,{value:Er,allowClear:yt,onChange:function(zt){or(zt.target.value.toLowerCase()),Wt==null||Wt(zt.target.value)},onKeyDown:function(zt){zt.stopPropagation()},style:{width:"100%"},prefix:(0,j.jsx)(me.Z,{})})}),Kt]})},open:hr,onDropdownVisibleChange:function(Kt){Kt||setTimeout(function(){or("")},0),_t||Tt(Kt)},prefixCls:q,options:Er?tt==null?void 0:tt.filter(function(Nt){var Kt,qt,zt,er,vt;return((Kt=String(Nt[He]))===null||Kt===void 0||(qt=Kt.toLowerCase())===null||qt===void 0?void 0:qt.includes(Er))||((zt=Nt[jt])===null||zt===void 0||(er=zt.toString())===null||er===void 0||(vt=er.toLowerCase())===null||vt===void 0?void 0:vt.includes(Er))}):tt})),(0,j.jsx)(ut.Z,{ellipsis:!0,size:Et,label:J,placeholder:bt,disabled:Ne,expanded:hr,bordered:Zt,allowClear:yt,value:mr||(ce==null?void 0:ce.label)||ce,onClear:function(){be==null||be(void 0,void 0)},ref:gr})]})},je=T.forwardRef(It),gt=["optionItemRender","mode","onSearch","onFocus","onChange","autoClearSearchValue","searchOnFocus","resetAfterSelect","fetchDataOnSearch","optionFilterProp","optionLabelProp","className","disabled","options","fetchData","resetData","prefixCls","onClear","searchValue","showSearch","fieldNames"],W=Ze.Z.Option,se=Ze.Z.OptGroup,We=function(Z,_){var J=Z.optionItemRender,q=Z.mode,be=Z.onSearch,ce=Z.onFocus,Pe=Z.onChange,Ke=Z.autoClearSearchValue,nt=Z.searchOnFocus,Et=nt===void 0?!1:nt,lt=Z.resetAfterSelect,Ne=lt===void 0?!1:lt,$t=Z.fetchDataOnSearch,Le=$t===void 0?!0:$t,Zt=Z.optionFilterProp,tt=Zt===void 0?"label":Zt,Wt=Z.optionLabelProp,yt=Wt===void 0?"label":Wt,_e=Z.className,Ut=Z.disabled,gr=Z.options,_t=Z.fetchData,rr=Z.resetData,Ft=Z.prefixCls,bt=Z.onClear,wt=Z.searchValue,ft=Z.showSearch,He=Z.fieldNames,pt=(0,c.Z)(Z,gt),jt=He||{},ct=jt.label,Qt=ct===void 0?"label":ct,pr=jt.value,Cr=pr===void 0?"value":pr,lr=jt.options,hr=lr===void 0?"options":lr,Tt=(0,T.useState)(wt),Or=(0,i.Z)(Tt,2),yr=Or[0],Er=Or[1],or=(0,T.useRef)();(0,T.useImperativeHandle)(_,function(){return or.current}),(0,T.useEffect)(function(){if(pt.autoFocus){var er;or==null||(er=or.current)===null||er===void 0||er.focus()}},[pt.autoFocus]),(0,T.useEffect)(function(){Er(wt)},[wt]);var ir=(0,T.useContext)(S.ZP.ConfigContext),mr=ir.getPrefixCls,Nt=mr("pro-filed-search-select",Ft),Kt=re()(Nt,_e,(0,ue.Z)({},"".concat(Nt,"-disabled"),Ut)),qt=function(vt,Pt){return Array.isArray(vt)&&vt.length>0?vt.map(function(Rr,br){var Ar=Pt==null?void 0:Pt[br],zr=(Ar==null?void 0:Ar["data-item"])||{};return(0,g.Z)((0,g.Z)({},zr),Rr)}):[]},zt=function er(vt){return vt.map(function(Pt){var Rr,br=Pt.disabled,Ar=Pt.className,zr=Pt.optionType,Nr=Pt[Qt],mn=Pt[Cr],Mn=(Rr=Pt[hr])!==null&&Rr!==void 0?Rr:[];return zr==="optGroup"||Pt.options?(0,j.jsx)(se,{label:Nr,children:er(Mn)},mn):(0,T.createElement)(W,(0,g.Z)((0,g.Z)({},Pt),{},{value:mn,key:mn||(Nr==null?void 0:Nr.toString()),disabled:br,"data-item":Pt,className:"".concat(Nt,"-option ").concat(Ar||""),label:Nr}),(J==null?void 0:J(Pt))||Nr)})};return(0,j.jsx)(Ze.Z,(0,g.Z)((0,g.Z)({ref:or,className:Kt,allowClear:!0,autoClearSearchValue:Ke,disabled:Ut,mode:q,showSearch:ft,searchValue:yr,optionFilterProp:tt,optionLabelProp:yt,onClear:function(){bt==null||bt(),_t(""),ft&&Er("")}},pt),{},{onSearch:ft?function(er){Le&&_t(er),be==null||be(er),Er(er)}:void 0,onChange:function(vt,Pt){ft&&Ke&&(yr||_t(""),be==null||be(""),Er(""));for(var Rr=arguments.length,br=new Array(Rr>2?Rr-2:0),Ar=2;Are.offsetHeight&&e.scrollTo({top:a+t.offsetHeight-e.offsetHeight})}}function Ce(t,e,a){var r=new Set(t),o=e();return t.filter(function(s){var f=o[s],d=f?f.parent:null,v=f?f.children:null;return a===dt?!(v&&v.some(function(C){return C.key&&r.has(C.key)})):!(d&&!d.node.disabled&&r.has(d.key))})}function m(t,e,a){for(var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,o=e,s=[],f=function(){var C,P,w,A=t[d],M=(C=o)===null||C===void 0?void 0:C.findIndex(function(D){var N=D[a.value];return r?String(N)===String(A):N===A}),F=M!==-1?(P=o)===null||P===void 0?void 0:P[M]:null;s.push({value:(w=F==null?void 0:F[a.value])!==null&&w!==void 0?w:A,index:M,option:F}),o=F==null?void 0:F[a.children]},d=0;d0&&M.length>=w)){var V=[].concat((0,G.Z)(N),[z]),Y=z[a.children];if((!Y||Y.length===0||s)&&d(t,V,{label:a.label})){var oe;M.push((0,i.Z)((0,i.Z)({},z),{},(oe={},(0,ee.Z)(oe,a.label,C(t,V,r,a)),(0,ee.Z)(oe,Re,V),(0,ee.Z)(oe,a.children,void 0),oe)))}Y&&F(z[a.children],V)}})}return F(e,[]),A&&M.sort(function(D,N){return A(D[Re],N[Re],t,a)}),w>0?M.slice(0,w):M},[t,e,a,r,C,s,d,A,w])};function ge(t){var e,a=t.prefixCls,r=t.checked,o=t.halfChecked,s=t.disabled,f=t.onClick,d=l.useContext(St),v=d.checkable,C=typeof v!="boolean"?v:null;return l.createElement("span",{className:we()("".concat(a),(e={},(0,ee.Z)(e,"".concat(a,"-checked"),r),(0,ee.Z)(e,"".concat(a,"-indeterminate"),!r&&o),(0,ee.Z)(e,"".concat(a,"-disabled"),s),e)),onClick:f},C)}var qe="__cascader_fix_label__";function it(t){var e=t.prefixCls,a=t.multiple,r=t.options,o=t.activeValue,s=t.prevValuePath,f=t.onToggleOpen,d=t.onSelect,v=t.onActive,C=t.checkedSet,P=t.halfCheckedSet,w=t.loadingKeys,A=t.isSelectable,M="".concat(e,"-menu"),F="".concat(e,"-menu-item"),D=l.useContext(St),N=D.fieldNames,z=D.changeOnSelect,V=D.expandTrigger,Y=D.expandIcon,oe=D.loadingIcon,ne=D.dropdownMenuColumnStyle,ie=V==="hover",fe=l.useMemo(function(){return r.map(function(Q){var pe,Se=Q.disabled,le=Q[Re],ke=(pe=Q[qe])!==null&&pe!==void 0?pe:Q[N.label],Fe=Q[N.value],he=B(Q,N),ht=le?le.map(function(at){return at[N.value]}):[].concat((0,G.Z)(s),[Fe]),mt=Ot(ht),Ye=w.includes(mt),ze=C.has(mt),rt=P.has(mt);return{disabled:Se,label:ke,value:Fe,isLeaf:he,isLoading:Ye,checked:ze,halfChecked:rt,option:Q,fullPath:ht,fullPathKey:mt}})},[r,C,N,P,w,s]);return l.createElement("ul",{className:M,role:"menu"},fe.map(function(Q){var pe,Se=Q.disabled,le=Q.label,ke=Q.value,Fe=Q.isLeaf,he=Q.isLoading,ht=Q.checked,mt=Q.halfChecked,Ye=Q.option,ze=Q.fullPath,rt=Q.fullPathKey,at=function(){if(!Se){var Vt=(0,G.Z)(ze);ie&&Fe&&Vt.pop(),v(Vt)}},Ht=function(){A(Ye)&&d(ze,Fe)},Lt;return typeof Ye.title=="string"?Lt=Ye.title:typeof le=="string"&&(Lt=le),l.createElement("li",{key:rt,className:we()(F,(pe={},(0,ee.Z)(pe,"".concat(F,"-expand"),!Fe),(0,ee.Z)(pe,"".concat(F,"-active"),o===ke),(0,ee.Z)(pe,"".concat(F,"-disabled"),Se),(0,ee.Z)(pe,"".concat(F,"-loading"),he),pe)),style:ne,role:"menuitemcheckbox",title:Lt,"aria-checked":ht,"data-path-key":rt,onClick:function(){at(),(!a||Fe)&&Ht()},onDoubleClick:function(){z&&f(!1)},onMouseEnter:function(){ie&&at()},onMouseDown:function(Vt){Vt.preventDefault()}},a&&l.createElement(ge,{prefixCls:"".concat(e,"-checkbox"),checked:ht,halfChecked:mt,disabled:Se,onClick:function(Vt){Vt.stopPropagation(),Ht()}}),l.createElement("div",{className:"".concat(F,"-content")},le),!he&&Y&&!Fe&&l.createElement("div",{className:"".concat(F,"-expand-icon")},Y),he&&oe&&l.createElement("div",{className:"".concat(F,"-loading-icon")},oe))}))}var It=function(){var t=(0,Qe.lk)(),e=t.multiple,a=t.open,r=l.useContext(St),o=r.values,s=l.useState([]),f=(0,re.Z)(s,2),d=f[0],v=f[1];return l.useEffect(function(){if(a&&!e){var C=o[0];v(C||[])}},[a]),[d,v]},je=n(15105),gt=function(t,e,a,r,o,s){var f=(0,Qe.lk)(),d=f.direction,v=f.searchValue,C=f.toggleOpen,P=f.open,w=d==="rtl",A=l.useMemo(function(){for(var ne=-1,ie=e,fe=[],Q=[],pe=r.length,Se=function(mt){var Ye=ie.findIndex(function(ze){return ze[a.value]===r[mt]});if(Ye===-1)return"break";ne=Ye,fe.push(ne),Q.push(r[mt]),ie=ie[ne][a.children]},le=0;le1){var ie=F.slice(0,-1);z(ie)}else C(!1)},oe=function(){var ie,fe=((ie=N[D])===null||ie===void 0?void 0:ie[a.children])||[],Q=fe.find(function(Se){return!Se.disabled});if(Q){var pe=[].concat((0,G.Z)(F),[Q[a.value]]);z(pe)}};l.useImperativeHandle(t,function(){return{onKeyDown:function(ie){var fe=ie.which;switch(fe){case je.Z.UP:case je.Z.DOWN:{var Q=0;fe===je.Z.UP?Q=-1:fe===je.Z.DOWN&&(Q=1),Q!==0&&V(Q);break}case je.Z.LEFT:{w?oe():Y();break}case je.Z.RIGHT:{w?Y():oe();break}case je.Z.BACKSPACE:{v||Y();break}case je.Z.ENTER:{if(F.length){var pe=N[D],Se=(pe==null?void 0:pe[Re])||[];Se.length?s(Se.map(function(le){return le[a.value]}),Se[Se.length-1]):s(F,N[D])}break}case je.Z.ESC:C(!1),P&&ie.stopPropagation()}},onKeyUp:function(){}}})},W=l.forwardRef(function(t,e){var a,r,o,s,f=(0,Qe.lk)(),d=f.prefixCls,v=f.multiple,C=f.searchValue,P=f.toggleOpen,w=f.notFoundContent,A=f.direction,M=l.useRef(),F=A==="rtl",D=l.useContext(St),N=D.options,z=D.values,V=D.halfValues,Y=D.fieldNames,oe=D.changeOnSelect,ne=D.onSelect,ie=D.searchOptions,fe=D.dropdownPrefixCls,Q=D.loadData,pe=D.expandTrigger,Se=fe||d,le=l.useState([]),ke=(0,re.Z)(le,2),Fe=ke[0],he=ke[1],ht=function(st){if(!(!Q||C)){var xt=m(st,N,Y),Jt=xt.map(function(Ir){var Lr=Ir.option;return Lr}),cr=Jt[Jt.length-1];if(cr&&!B(cr,Y)){var Tr=Ot(st);he(function(Ir){return[].concat((0,G.Z)(Ir),[Tr])}),Q(Jt)}}};l.useEffect(function(){Fe.length&&Fe.forEach(function(Bt){var st=kt(Bt),xt=m(st,N,Y,!0).map(function(cr){var Tr=cr.option;return Tr}),Jt=xt[xt.length-1];(!Jt||Jt[Y.children]||B(Jt,Y))&&he(function(cr){return cr.filter(function(Tr){return Tr!==Bt})})})},[N,Fe,Y]);var mt=l.useMemo(function(){return new Set(Dt(z))},[z]),Ye=l.useMemo(function(){return new Set(Dt(V))},[V]),ze=It(),rt=(0,re.Z)(ze,2),at=rt[0],Ht=rt[1],Lt=function(st){Ht(st),ht(st)},Rt=function(st){var xt=st.disabled,Jt=B(st,Y);return!xt&&(Jt||oe||v)},Vt=function(st,xt){var Jt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;ne(st),!v&&(xt||oe&&(pe==="hover"||Jt))&&P(!1)},nr=l.useMemo(function(){return C?ie:N},[C,ie,N]),Gt=l.useMemo(function(){for(var Bt=[{options:nr}],st=nr,xt=function(){var Ir=at[Jt],Lr=st.find(function(Hr){return Hr[Y.value]===Ir}),Pr=Lr==null?void 0:Lr[Y.children];if(!(Pr==null?void 0:Pr.length))return"break";st=Pr,Bt.push({options:Pr})},Jt=0;Jt":ke,he=t.loadingIcon,ht=t.children,mt=t.dropdownMatchSelectWidth,Ye=mt===void 0?!1:mt,ze=t.showCheckedStrategy,rt=ze===void 0?vr:ze,at=(0,h.Z)(t,Ee),Ht=(0,Ct.ZP)(a),Lt=!!w,Rt=(0,Ie.Z)(f,{value:d,postState:Te}),Vt=(0,re.Z)(Rt,2),nr=Vt[0],Gt=Vt[1],At=l.useMemo(function(){return K(s)},[JSON.stringify(s)]),ur=l.useMemo(function(){return N||[]},[N]),sr=L(ur,At),Sr=l.useCallback(function(Mr){var dr=sr();return Mr.map(function(Fr){var Br=dr[Fr].nodes;return Br.map(function(Wr){return Wr[At.value]})})},[sr,At]),tr=(0,Ie.Z)("",{value:A,postState:function(dr){return dr||""}}),Xt=(0,re.Z)(tr,2),Bt=Xt[0],st=Xt[1],xt=function(dr,Fr){st(dr),Fr.source!=="blur"&&M&&M(dr)},Jt=Ae(F),cr=(0,re.Z)(Jt,2),Tr=cr[0],Ir=cr[1],Lr=ut(Bt,ur,At,z||o,Ir,v),Pr=X(ur,At),Hr=l.useMemo(function(){var Mr=Pr(nr),dr=(0,re.Z)(Mr,2),Fr=dr[0],Br=dr[1];if(!Lt||!nr.length)return[Fr,[],Br];var Wr=Dt(Fr),rn=sr(),Yr=(0,Xe.S)(Wr,!0,rn),vn=Yr.checkedKeys,nn=Yr.halfCheckedKeys;return[Sr(vn),Sr(nn),Br]},[Lt,nr,sr,Sr,Pr]),Ur=(0,re.Z)(Hr,3),$r=Ur[0],Xr=Ur[1],wr=Ur[2],aa=l.useMemo(function(){var Mr=Dt($r),dr=Ce(Mr,sr,rt);return[].concat((0,G.Z)(wr),(0,G.Z)(Sr(dr)))},[$r,sr,Sr,wr,rt]),Vr=x(aa,ur,At,Lt,P),Jr=H(function(Mr){if(Gt(Mr),C){var dr=Te(Mr),Fr=dr.map(function(rn){return m(rn,ur,At).map(function(Yr){return Yr.option})}),Br=Lt?dr:dr[0],Wr=Lt?Fr:Fr[0];C(Br,Wr)}}),Kr=H(function(Mr){if(st(""),!Lt)Jr(Mr);else{var dr=Ot(Mr),Fr=Dt($r),Br=Dt(Xr),Wr=Fr.includes(dr),rn=wr.some(function(Qr){return Ot(Qr)===dr}),Yr=$r,vn=wr;if(rn&&!Wr)vn=wr.filter(function(Qr){return Ot(Qr)!==dr});else{var nn=Wr?Fr.filter(function(Qr){return Qr!==dr}):[].concat((0,G.Z)(Fr),[dr]),En=sr(),Gr;if(Wr){var ua=(0,Xe.S)(nn,{checked:!1,halfCheckedKeys:Br},En);Gr=ua.checkedKeys}else{var $n=(0,Xe.S)(nn,!0,En);Gr=$n.checkedKeys}var Hn=Ce(Gr,sr,rt);Yr=Sr(Hn)}Jr([].concat((0,G.Z)(vn),(0,G.Z)(Yr)))}}),Sn=function(dr,Fr){if(Fr.type==="clear"){Jr([]);return}var Br=Fr.values[0].valueCells;Kr(Br)},Ln=oe!==void 0?oe:Y,oa=ie||ne,ia=pe||Q,Bn=function(dr){Se==null||Se(dr),le==null||le(dr)},Zn=l.useMemo(function(){return{options:ur,fieldNames:At,values:$r,halfValues:Xr,changeOnSelect:v,onSelect:Kr,checkable:w,searchOptions:Lr,dropdownPrefixCls:z,loadData:V,expandTrigger:D,expandIcon:Fe,loadingIcon:he,dropdownMenuColumnStyle:fe}},[ur,At,$r,Xr,v,Kr,w,Lr,z,V,D,Fe,he,fe]),On=!(Bt?Lr:ur).length,la=Bt&&Ir.matchInputWidth||On?{}:{minWidth:"auto"};return l.createElement(St.Provider,{value:Zn},l.createElement(Qe.Ac,(0,te.Z)({},at,{ref:e,id:Ht,prefixCls:o,dropdownMatchSelectWidth:Ye,dropdownStyle:la,displayValues:Vr,onDisplayValuesChange:Sn,mode:Lt?"multiple":void 0,searchValue:Bt,onSearch:xt,showSearch:Tr,OptionList:se,emptyOptions:On,open:Ln,dropdownClassName:oa,placement:ia,onDropdownVisibleChange:Bn,getRawInputElement:function(){return ht}})))});xe.SHOW_PARENT=vr,xe.SHOW_CHILD=dt;var Oe=xe,ye=Oe,Me=n(98423),De=n(53124),Je=n(88258),Ge=n(98866),U=n(97647),Z=n(4173),_=n(65223),J=n(46163),q=n(33603),be=n(9708),ce=function(t,e){var a={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(a[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(t);od?A=1:A=Math.round(w*100/d)/100,a.a!==A)return{h:a.h,s:a.s,l:a.l,a:A,source:"rgb"}}else{var M;if(P<0?M=0:P>f?M=1:M=Math.round(P*100/f)/100,o!==M)return{h:a.h,s:a.s,l:a.l,a:M,source:"rgb"}}return null},or={},ir=function(e,a,r,o){if(typeof document=="undefined"&&!o)return null;var s=o?new o:document.createElement("canvas");s.width=r*2,s.height=r*2;var f=s.getContext("2d");return f?(f.fillStyle=e,f.fillRect(0,0,s.width,s.height),f.fillStyle=a,f.fillRect(0,0,r,r),f.translate(r,r),f.fillRect(0,0,r,r),s.toDataURL()):null},mr=function(e,a,r,o){var s="".concat(e,"-").concat(a,"-").concat(r).concat(o?"-server":"");if(or[s])return or[s];var f=ir(e,a,r,o);return or[s]=f,f};function Nt(t){return Nt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Nt(t)}function Kt(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),a.push.apply(a,r)}return a}function qt(t){for(var e=1;e1&&arguments[1]!==void 0?arguments[1]:100,_=arguments.length>2?arguments[2]:void 0,J=(0,T.useState)(U),q=(0,i.Z)(J,2),be=q[0],ce=q[1],Pe=(0,k.Z)(U);return(0,T.useEffect)(function(){var Ke=setTimeout(function(){ce(Pe.current)},Z);return function(){return clearTimeout(Ke)}},_?[Z].concat((0,u.Z)(_)):void 0),be}var ae=n(75661),te=n(56725),ee=n(27068),G=n(29405),Ve=n(38663),Be=n(80341),ue=n(96156),ve=n(22122),we=n(94184),re=n.n(we),Qe=n(5461),Ct=n(53124),Xe=n(96159),Ie=n(98787);function Yt(U){return Ie.Y.includes(U)}var St=function(Z){var _,J=Z.className,q=Z.prefixCls,be=Z.style,ce=Z.color,Pe=Z.children,Ke=Z.text,nt=Z.placement,Et=nt===void 0?"end":nt,lt=T.useContext(Ct.E_),Ne=lt.getPrefixCls,$t=lt.direction,Le=Ne("ribbon",q),Zt=Yt(ce),tt=re()(Le,"".concat(Le,"-placement-").concat(Et),(_={},(0,ue.Z)(_,"".concat(Le,"-rtl"),$t==="rtl"),(0,ue.Z)(_,"".concat(Le,"-color-").concat(ce),Zt),_),J),Wt={},yt={};return ce&&!Zt&&(Wt.background=ce,yt.color=ce),T.createElement("div",{className:"".concat(Le,"-wrapper")},Pe,T.createElement("div",{className:tt,style:(0,ve.Z)((0,ve.Z)({},Wt),be)},T.createElement("span",{className:"".concat(Le,"-text")},Ke),T.createElement("div",{className:"".concat(Le,"-corner"),style:yt})))},fr=St;function vr(U){var Z=U.prefixCls,_=U.value,J=U.current,q=U.offset,be=q===void 0?0:q,ce;return be&&(ce={position:"absolute",top:"".concat(be,"00%"),left:0}),T.createElement("span",{style:ce,className:re()("".concat(Z,"-only-unit"),{current:J})},_)}function dt(U,Z,_){for(var J=U,q=0;(J+10)%10!==Z;)J+=_,q+=_;return q}function Ot(U){var Z=U.prefixCls,_=U.count,J=U.value,q=Number(J),be=Math.abs(_),ce=T.useState(q),Pe=(0,i.Z)(ce,2),Ke=Pe[0],nt=Pe[1],Et=T.useState(be),lt=(0,i.Z)(Et,2),Ne=lt[0],$t=lt[1],Le=function(){nt(q),$t(be)};T.useEffect(function(){var _t=setTimeout(function(){Le()},1e3);return function(){clearTimeout(_t)}},[q]);var Zt,tt;if(Ke===q||Number.isNaN(q)||Number.isNaN(Ke))Zt=[T.createElement(vr,(0,ve.Z)({},U,{key:q,current:!0}))],tt={transition:"none"};else{Zt=[];for(var Wt=q+10,yt=[],_e=q;_e<=Wt;_e+=1)yt.push(_e);var Ut=yt.findIndex(function(_t){return _t%10===Ke});Zt=yt.map(function(_t,rr){var Ft=_t%10;return T.createElement(vr,(0,ve.Z)({},U,{key:_t,value:Ft,offset:rr-Ut,current:rr===Ut}))});var gr=Ne$t?"".concat($t,"+"):lt,jt=pt==="0"||pt===0,ct=lt===null||jt&&!rr,Qt=(Pe!=null||nt!=null)&&ct,pr=Zt&&!jt,Cr=pr?"":pt,lr=(0,T.useMemo)(function(){var vt=Cr==null||Cr==="";return(vt||jt&&!rr)&&!pr},[Cr,jt,rr,pr]),hr=(0,T.useRef)(lt);lr||(hr.current=lt);var Tt=hr.current,Or=(0,T.useRef)(Cr);lr||(Or.current=Cr);var yr=Or.current,Er=(0,T.useRef)(pr);lr||(Er.current=pr);var or=(0,T.useMemo)(function(){if(!_e)return(0,ve.Z)({},Ut);var vt={marginTop:_e[1]};return ft==="rtl"?vt.left=parseInt(_e[0],10):vt.right=-parseInt(_e[0],10),(0,ve.Z)((0,ve.Z)({},vt),Ut)},[ft,_e,Ut]),ir=yt!=null?yt:typeof Tt=="string"||typeof Tt=="number"?Tt:void 0,mr=lr||!Ke?null:T.createElement("span",{className:"".concat(He,"-status-text")},Ke),Nt=!Tt||(0,O.Z)(Tt)!=="object"?void 0:(0,Xe.Tm)(Tt,function(vt){return{style:(0,ve.Z)((0,ve.Z)({},or),vt.style)}}),Kt=re()((_={},(0,ue.Z)(_,"".concat(He,"-status-dot"),Qt),(0,ue.Z)(_,"".concat(He,"-status-").concat(Pe),!!Pe),(0,ue.Z)(_,"".concat(He,"-status-").concat(nt),Yt(nt)),_)),qt={};nt&&!Yt(nt)&&(qt.background=nt);var zt=re()(He,(J={},(0,ue.Z)(J,"".concat(He,"-status"),Qt),(0,ue.Z)(J,"".concat(He,"-not-a-wrapper"),!ce),(0,ue.Z)(J,"".concat(He,"-rtl"),ft==="rtl"),J),gr);if(!ce&&Qt){var er=or.color;return T.createElement("span",(0,ve.Z)({},Ft,{className:zt,style:or}),T.createElement("span",{className:Kt,style:qt}),Ke&&T.createElement("span",{style:{color:er},className:"".concat(He,"-status-text")},Ke))}return T.createElement("span",(0,ve.Z)({},Ft,{className:zt}),ce,T.createElement(Qe.ZP,{visible:!lr,motionName:"".concat(He,"-zoom"),motionAppear:!1,motionDeadline:1e3},function(vt){var Pt,Rr=vt.className,br=wt("scroll-number",be),Ar=Er.current,zr=re()((Pt={},(0,ue.Z)(Pt,"".concat(He,"-dot"),Ar),(0,ue.Z)(Pt,"".concat(He,"-count"),!Ar),(0,ue.Z)(Pt,"".concat(He,"-count-sm"),Wt==="small"),(0,ue.Z)(Pt,"".concat(He,"-multiple-words"),!Ar&&yr&&yr.toString().length>1),(0,ue.Z)(Pt,"".concat(He,"-status-").concat(Pe),!!Pe),(0,ue.Z)(Pt,"".concat(He,"-status-").concat(nt),Yt(nt)),Pt)),Nr=(0,ve.Z)({},or);return nt&&!Yt(nt)&&(Nr=Nr||{},Nr.background=nt),T.createElement(K,{prefixCls:br,show:!lr,motionClassName:Rr,className:zr,count:yr,title:ir,style:Nr,key:"scrollNumber"},Nt)}),mr)};ot.Ribbon=fr;var Ce=ot,m=n(59189),x={Success:function(Z){var _=Z.children;return(0,j.jsx)(Ce,{status:"success",text:_})},Error:function(Z){var _=Z.children;return(0,j.jsx)(Ce,{status:"error",text:_})},Default:function(Z){var _=Z.children;return(0,j.jsx)(Ce,{status:"default",text:_})},Processing:function(Z){var _=Z.children;return(0,j.jsx)(Ce,{status:"processing",text:_})},Warning:function(Z){var _=Z.children;return(0,j.jsx)(Ce,{status:"warning",text:_})},success:function(Z){var _=Z.children;return(0,j.jsx)(Ce,{status:"success",text:_})},error:function(Z){var _=Z.children;return(0,j.jsx)(Ce,{status:"error",text:_})},default:function(Z){var _=Z.children;return(0,j.jsx)(Ce,{status:"default",text:_})},processing:function(Z){var _=Z.children;return(0,j.jsx)(Ce,{status:"processing",text:_})},warning:function(Z){var _=Z.children;return(0,j.jsx)(Ce,{status:"warning",text:_})}},p=function(Z){var _=Z.color,J=Z.children;return(0,j.jsx)(Ce,{color:_,text:J})},L=x,X=n(81539),H=n(47673),Ae=n(4107),Re=n(43358),Ze=n(34041),me=n(76570),ut=n(76422),ge=n(26435),qe=["label","prefixCls","onChange","value","mode","children","defaultValue","size","showSearch","disabled","style","className","bordered","options","onSearch","allowClear","labelInValue","fieldNames","lightLabel","labelTrigger"],it=function(Z,_){return(0,O.Z)(_)!=="object"?Z[_]||_:Z[_==null?void 0:_.value]||_.label},It=function(Z,_){var J=Z.label,q=Z.prefixCls,be=Z.onChange,ce=Z.value,Pe=Z.mode,Ke=Z.children,nt=Z.defaultValue,Et=Z.size,lt=Z.showSearch,Ne=Z.disabled,$t=Z.style,Le=Z.className,Zt=Z.bordered,tt=Z.options,Wt=Z.onSearch,yt=Z.allowClear,_e=Z.labelInValue,Ut=Z.fieldNames,gr=Z.lightLabel,_t=Z.labelTrigger,rr=(0,c.Z)(Z,qe),Ft=Z.placeholder,bt=Ft===void 0?J:Ft,wt=Ut||{},ft=wt.label,He=ft===void 0?"label":ft,pt=wt.value,jt=pt===void 0?"value":pt,ct=(0,T.useContext)(S.ZP.ConfigContext),Qt=ct.getPrefixCls,pr=Qt("pro-field-select-light-select"),Cr=(0,T.useState)(!1),lr=(0,i.Z)(Cr,2),hr=lr[0],Tt=lr[1],Or=(0,T.useState)(""),yr=(0,i.Z)(Or,2),Er=yr[0],or=yr[1],ir=(0,T.useMemo)(function(){var Nt={};return tt==null||tt.forEach(function(Kt){var qt=Kt[He],zt=Kt[jt];Nt[zt]=qt||zt}),Nt},[He,tt,jt]),mr=Array.isArray(ce)?ce.map(function(Nt){return it(ir,Nt)}):it(ir,ce);return(0,j.jsxs)("div",{className:re()(pr,(0,ue.Z)({},"".concat(pr,"-searchable"),lt),Le),style:$t,onClick:function(Kt){var qt,zt,er;if(!Ne){var vt=gr==null||(qt=gr.current)===null||qt===void 0||(zt=qt.labelRef)===null||zt===void 0||(er=zt.current)===null||er===void 0?void 0:er.contains(Kt.target);Tt(vt?!hr:!0)}},children:[(0,j.jsx)(Ze.Z,(0,g.Z)((0,g.Z)({},rr),{},{allowClear:yt,value:ce,mode:Pe,labelInValue:_e,size:Et,disabled:Ne,onChange:function(Kt,qt){be==null||be(Kt,qt),Pe!=="multiple"&&setTimeout(function(){Tt(!1)},0)},bordered:Zt,showSearch:lt,onSearch:Wt,style:$t,dropdownRender:function(Kt){return(0,j.jsxs)("div",{ref:_,children:[lt&&(0,j.jsx)("div",{style:{margin:"4px 8px"},children:(0,j.jsx)(Ae.Z,{value:Er,allowClear:yt,onChange:function(zt){or(zt.target.value.toLowerCase()),Wt==null||Wt(zt.target.value)},onKeyDown:function(zt){zt.stopPropagation()},style:{width:"100%"},prefix:(0,j.jsx)(me.Z,{})})}),Kt]})},open:hr,onDropdownVisibleChange:function(Kt){Kt||setTimeout(function(){or("")},0),_t||Tt(Kt)},prefixCls:q,options:Er?tt==null?void 0:tt.filter(function(Nt){var Kt,qt,zt,er,vt;return((Kt=String(Nt[He]))===null||Kt===void 0||(qt=Kt.toLowerCase())===null||qt===void 0?void 0:qt.includes(Er))||((zt=Nt[jt])===null||zt===void 0||(er=zt.toString())===null||er===void 0||(vt=er.toLowerCase())===null||vt===void 0?void 0:vt.includes(Er))}):tt})),(0,j.jsx)(ut.Z,{ellipsis:!0,size:Et,label:J,placeholder:bt,disabled:Ne,expanded:hr,bordered:Zt,allowClear:yt,value:mr||(ce==null?void 0:ce.label)||ce,onClear:function(){be==null||be(void 0,void 0)},ref:gr})]})},je=T.forwardRef(It),gt=["optionItemRender","mode","onSearch","onFocus","onChange","autoClearSearchValue","searchOnFocus","resetAfterSelect","fetchDataOnSearch","optionFilterProp","optionLabelProp","className","disabled","options","fetchData","resetData","prefixCls","onClear","searchValue","showSearch","fieldNames"],W=Ze.Z.Option,se=Ze.Z.OptGroup,We=function(Z,_){var J=Z.optionItemRender,q=Z.mode,be=Z.onSearch,ce=Z.onFocus,Pe=Z.onChange,Ke=Z.autoClearSearchValue,nt=Z.searchOnFocus,Et=nt===void 0?!1:nt,lt=Z.resetAfterSelect,Ne=lt===void 0?!1:lt,$t=Z.fetchDataOnSearch,Le=$t===void 0?!0:$t,Zt=Z.optionFilterProp,tt=Zt===void 0?"label":Zt,Wt=Z.optionLabelProp,yt=Wt===void 0?"label":Wt,_e=Z.className,Ut=Z.disabled,gr=Z.options,_t=Z.fetchData,rr=Z.resetData,Ft=Z.prefixCls,bt=Z.onClear,wt=Z.searchValue,ft=Z.showSearch,He=Z.fieldNames,pt=(0,c.Z)(Z,gt),jt=He||{},ct=jt.label,Qt=ct===void 0?"label":ct,pr=jt.value,Cr=pr===void 0?"value":pr,lr=jt.options,hr=lr===void 0?"options":lr,Tt=(0,T.useState)(wt),Or=(0,i.Z)(Tt,2),yr=Or[0],Er=Or[1],or=(0,T.useRef)();(0,T.useImperativeHandle)(_,function(){return or.current}),(0,T.useEffect)(function(){if(pt.autoFocus){var er;or==null||(er=or.current)===null||er===void 0||er.focus()}},[pt.autoFocus]),(0,T.useEffect)(function(){Er(wt)},[wt]);var ir=(0,T.useContext)(S.ZP.ConfigContext),mr=ir.getPrefixCls,Nt=mr("pro-filed-search-select",Ft),Kt=re()(Nt,_e,(0,ue.Z)({},"".concat(Nt,"-disabled"),Ut)),qt=function(vt,Pt){return Array.isArray(vt)&&vt.length>0?vt.map(function(Rr,br){var Ar=Pt==null?void 0:Pt[br],zr=(Ar==null?void 0:Ar["data-item"])||{};return(0,g.Z)((0,g.Z)({},zr),Rr)}):[]},zt=function er(vt){return vt.map(function(Pt){var Rr,br=Pt.disabled,Ar=Pt.className,zr=Pt.optionType,Nr=Pt[Qt],mn=Pt[Cr],Mn=(Rr=Pt[hr])!==null&&Rr!==void 0?Rr:[];return zr==="optGroup"||Pt.options?(0,j.jsx)(se,{label:Nr,children:er(Mn)},mn):(0,T.createElement)(W,(0,g.Z)((0,g.Z)({},Pt),{},{value:mn,key:mn||(Nr==null?void 0:Nr.toString()),disabled:br,"data-item":Pt,className:"".concat(Nt,"-option ").concat(Ar||""),label:Nr}),(J==null?void 0:J(Pt))||Nr)})};return(0,j.jsx)(Ze.Z,(0,g.Z)((0,g.Z)({ref:or,className:Kt,allowClear:!0,autoClearSearchValue:Ke,disabled:Ut,mode:q,showSearch:ft,searchValue:yr,optionFilterProp:tt,optionLabelProp:yt,onClear:function(){bt==null||bt(),_t(""),ft&&Er("")}},pt),{},{onSearch:ft?function(er){Le&&_t(er),be==null||be(er),Er(er)}:void 0,onChange:function(vt,Pt){ft&&Ke&&(yr||_t(""),be==null||be(""),Er(""));for(var Rr=arguments.length,br=new Array(Rr>2?Rr-2:0),Ar=2;Are.offsetHeight&&e.scrollTo({top:a+t.offsetHeight-e.offsetHeight})}}function Ce(t,e,a){var r=new Set(t),o=e();return t.filter(function(s){var f=o[s],d=f?f.parent:null,v=f?f.children:null;return a===dt?!(v&&v.some(function(C){return C.key&&r.has(C.key)})):!(d&&!d.node.disabled&&r.has(d.key))})}function m(t,e,a){for(var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,o=e,s=[],f=function(){var C,P,w,A=t[d],M=(C=o)===null||C===void 0?void 0:C.findIndex(function(D){var N=D[a.value];return r?String(N)===String(A):N===A}),F=M!==-1?(P=o)===null||P===void 0?void 0:P[M]:null;s.push({value:(w=F==null?void 0:F[a.value])!==null&&w!==void 0?w:A,index:M,option:F}),o=F==null?void 0:F[a.children]},d=0;d0&&M.length>=w)){var V=[].concat((0,G.Z)(N),[z]),Y=z[a.children];if((!Y||Y.length===0||s)&&d(t,V,{label:a.label})){var oe;M.push((0,i.Z)((0,i.Z)({},z),{},(oe={},(0,ee.Z)(oe,a.label,C(t,V,r,a)),(0,ee.Z)(oe,Re,V),(0,ee.Z)(oe,a.children,void 0),oe)))}Y&&F(z[a.children],V)}})}return F(e,[]),A&&M.sort(function(D,N){return A(D[Re],N[Re],t,a)}),w>0?M.slice(0,w):M},[t,e,a,r,C,s,d,A,w])};function ge(t){var e,a=t.prefixCls,r=t.checked,o=t.halfChecked,s=t.disabled,f=t.onClick,d=l.useContext(St),v=d.checkable,C=typeof v!="boolean"?v:null;return l.createElement("span",{className:we()("".concat(a),(e={},(0,ee.Z)(e,"".concat(a,"-checked"),r),(0,ee.Z)(e,"".concat(a,"-indeterminate"),!r&&o),(0,ee.Z)(e,"".concat(a,"-disabled"),s),e)),onClick:f},C)}var qe="__cascader_fix_label__";function it(t){var e=t.prefixCls,a=t.multiple,r=t.options,o=t.activeValue,s=t.prevValuePath,f=t.onToggleOpen,d=t.onSelect,v=t.onActive,C=t.checkedSet,P=t.halfCheckedSet,w=t.loadingKeys,A=t.isSelectable,M="".concat(e,"-menu"),F="".concat(e,"-menu-item"),D=l.useContext(St),N=D.fieldNames,z=D.changeOnSelect,V=D.expandTrigger,Y=D.expandIcon,oe=D.loadingIcon,ne=D.dropdownMenuColumnStyle,ie=V==="hover",fe=l.useMemo(function(){return r.map(function(Q){var pe,Se=Q.disabled,le=Q[Re],ke=(pe=Q[qe])!==null&&pe!==void 0?pe:Q[N.label],Fe=Q[N.value],he=B(Q,N),ht=le?le.map(function(at){return at[N.value]}):[].concat((0,G.Z)(s),[Fe]),mt=Ot(ht),Ye=w.includes(mt),ze=C.has(mt),rt=P.has(mt);return{disabled:Se,label:ke,value:Fe,isLeaf:he,isLoading:Ye,checked:ze,halfChecked:rt,option:Q,fullPath:ht,fullPathKey:mt}})},[r,C,N,P,w,s]);return l.createElement("ul",{className:M,role:"menu"},fe.map(function(Q){var pe,Se=Q.disabled,le=Q.label,ke=Q.value,Fe=Q.isLeaf,he=Q.isLoading,ht=Q.checked,mt=Q.halfChecked,Ye=Q.option,ze=Q.fullPath,rt=Q.fullPathKey,at=function(){if(!Se){var Vt=(0,G.Z)(ze);ie&&Fe&&Vt.pop(),v(Vt)}},Ht=function(){A(Ye)&&d(ze,Fe)},Lt;return typeof Ye.title=="string"?Lt=Ye.title:typeof le=="string"&&(Lt=le),l.createElement("li",{key:rt,className:we()(F,(pe={},(0,ee.Z)(pe,"".concat(F,"-expand"),!Fe),(0,ee.Z)(pe,"".concat(F,"-active"),o===ke),(0,ee.Z)(pe,"".concat(F,"-disabled"),Se),(0,ee.Z)(pe,"".concat(F,"-loading"),he),pe)),style:ne,role:"menuitemcheckbox",title:Lt,"aria-checked":ht,"data-path-key":rt,onClick:function(){at(),(!a||Fe)&&Ht()},onDoubleClick:function(){z&&f(!1)},onMouseEnter:function(){ie&&at()},onMouseDown:function(Vt){Vt.preventDefault()}},a&&l.createElement(ge,{prefixCls:"".concat(e,"-checkbox"),checked:ht,halfChecked:mt,disabled:Se,onClick:function(Vt){Vt.stopPropagation(),Ht()}}),l.createElement("div",{className:"".concat(F,"-content")},le),!he&&Y&&!Fe&&l.createElement("div",{className:"".concat(F,"-expand-icon")},Y),he&&oe&&l.createElement("div",{className:"".concat(F,"-loading-icon")},oe))}))}var It=function(){var t=(0,Qe.lk)(),e=t.multiple,a=t.open,r=l.useContext(St),o=r.values,s=l.useState([]),f=(0,re.Z)(s,2),d=f[0],v=f[1];return l.useEffect(function(){if(a&&!e){var C=o[0];v(C||[])}},[a]),[d,v]},je=n(15105),gt=function(t,e,a,r,o,s){var f=(0,Qe.lk)(),d=f.direction,v=f.searchValue,C=f.toggleOpen,P=f.open,w=d==="rtl",A=l.useMemo(function(){for(var ne=-1,ie=e,fe=[],Q=[],pe=r.length,Se=function(mt){var Ye=ie.findIndex(function(ze){return ze[a.value]===r[mt]});if(Ye===-1)return"break";ne=Ye,fe.push(ne),Q.push(r[mt]),ie=ie[ne][a.children]},le=0;le1){var ie=F.slice(0,-1);z(ie)}else C(!1)},oe=function(){var ie,fe=((ie=N[D])===null||ie===void 0?void 0:ie[a.children])||[],Q=fe.find(function(Se){return!Se.disabled});if(Q){var pe=[].concat((0,G.Z)(F),[Q[a.value]]);z(pe)}};l.useImperativeHandle(t,function(){return{onKeyDown:function(ie){var fe=ie.which;switch(fe){case je.Z.UP:case je.Z.DOWN:{var Q=0;fe===je.Z.UP?Q=-1:fe===je.Z.DOWN&&(Q=1),Q!==0&&V(Q);break}case je.Z.LEFT:{w?oe():Y();break}case je.Z.RIGHT:{w?Y():oe();break}case je.Z.BACKSPACE:{v||Y();break}case je.Z.ENTER:{if(F.length){var pe=N[D],Se=(pe==null?void 0:pe[Re])||[];Se.length?s(Se.map(function(le){return le[a.value]}),Se[Se.length-1]):s(F,N[D])}break}case je.Z.ESC:C(!1),P&&ie.stopPropagation()}},onKeyUp:function(){}}})},W=l.forwardRef(function(t,e){var a,r,o,s,f=(0,Qe.lk)(),d=f.prefixCls,v=f.multiple,C=f.searchValue,P=f.toggleOpen,w=f.notFoundContent,A=f.direction,M=l.useRef(),F=A==="rtl",D=l.useContext(St),N=D.options,z=D.values,V=D.halfValues,Y=D.fieldNames,oe=D.changeOnSelect,ne=D.onSelect,ie=D.searchOptions,fe=D.dropdownPrefixCls,Q=D.loadData,pe=D.expandTrigger,Se=fe||d,le=l.useState([]),ke=(0,re.Z)(le,2),Fe=ke[0],he=ke[1],ht=function(st){if(!(!Q||C)){var xt=m(st,N,Y),Jt=xt.map(function(Ir){var Lr=Ir.option;return Lr}),cr=Jt[Jt.length-1];if(cr&&!B(cr,Y)){var Tr=Ot(st);he(function(Ir){return[].concat((0,G.Z)(Ir),[Tr])}),Q(Jt)}}};l.useEffect(function(){Fe.length&&Fe.forEach(function(Bt){var st=kt(Bt),xt=m(st,N,Y,!0).map(function(cr){var Tr=cr.option;return Tr}),Jt=xt[xt.length-1];(!Jt||Jt[Y.children]||B(Jt,Y))&&he(function(cr){return cr.filter(function(Tr){return Tr!==Bt})})})},[N,Fe,Y]);var mt=l.useMemo(function(){return new Set(Dt(z))},[z]),Ye=l.useMemo(function(){return new Set(Dt(V))},[V]),ze=It(),rt=(0,re.Z)(ze,2),at=rt[0],Ht=rt[1],Lt=function(st){Ht(st),ht(st)},Rt=function(st){var xt=st.disabled,Jt=B(st,Y);return!xt&&(Jt||oe||v)},Vt=function(st,xt){var Jt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;ne(st),!v&&(xt||oe&&(pe==="hover"||Jt))&&P(!1)},nr=l.useMemo(function(){return C?ie:N},[C,ie,N]),Gt=l.useMemo(function(){for(var Bt=[{options:nr}],st=nr,xt=function(){var Ir=at[Jt],Lr=st.find(function(Hr){return Hr[Y.value]===Ir}),Pr=Lr==null?void 0:Lr[Y.children];if(!(Pr==null?void 0:Pr.length))return"break";st=Pr,Bt.push({options:Pr})},Jt=0;Jt":ke,he=t.loadingIcon,ht=t.children,mt=t.dropdownMatchSelectWidth,Ye=mt===void 0?!1:mt,ze=t.showCheckedStrategy,rt=ze===void 0?vr:ze,at=(0,h.Z)(t,Ee),Ht=(0,Ct.ZP)(a),Lt=!!w,Rt=(0,Ie.Z)(f,{value:d,postState:Te}),Vt=(0,re.Z)(Rt,2),nr=Vt[0],Gt=Vt[1],At=l.useMemo(function(){return K(s)},[JSON.stringify(s)]),ur=l.useMemo(function(){return N||[]},[N]),sr=L(ur,At),Sr=l.useCallback(function(Mr){var dr=sr();return Mr.map(function(Fr){var Br=dr[Fr].nodes;return Br.map(function(Wr){return Wr[At.value]})})},[sr,At]),tr=(0,Ie.Z)("",{value:A,postState:function(dr){return dr||""}}),Xt=(0,re.Z)(tr,2),Bt=Xt[0],st=Xt[1],xt=function(dr,Fr){st(dr),Fr.source!=="blur"&&M&&M(dr)},Jt=Ae(F),cr=(0,re.Z)(Jt,2),Tr=cr[0],Ir=cr[1],Lr=ut(Bt,ur,At,z||o,Ir,v),Pr=X(ur,At),Hr=l.useMemo(function(){var Mr=Pr(nr),dr=(0,re.Z)(Mr,2),Fr=dr[0],Br=dr[1];if(!Lt||!nr.length)return[Fr,[],Br];var Wr=Dt(Fr),rn=sr(),Yr=(0,Xe.S)(Wr,!0,rn),vn=Yr.checkedKeys,nn=Yr.halfCheckedKeys;return[Sr(vn),Sr(nn),Br]},[Lt,nr,sr,Sr,Pr]),Ur=(0,re.Z)(Hr,3),$r=Ur[0],Xr=Ur[1],wr=Ur[2],aa=l.useMemo(function(){var Mr=Dt($r),dr=Ce(Mr,sr,rt);return[].concat((0,G.Z)(wr),(0,G.Z)(Sr(dr)))},[$r,sr,Sr,wr,rt]),Vr=x(aa,ur,At,Lt,P),Jr=H(function(Mr){if(Gt(Mr),C){var dr=Te(Mr),Fr=dr.map(function(rn){return m(rn,ur,At).map(function(Yr){return Yr.option})}),Br=Lt?dr:dr[0],Wr=Lt?Fr:Fr[0];C(Br,Wr)}}),Kr=H(function(Mr){if(st(""),!Lt)Jr(Mr);else{var dr=Ot(Mr),Fr=Dt($r),Br=Dt(Xr),Wr=Fr.includes(dr),rn=wr.some(function(Qr){return Ot(Qr)===dr}),Yr=$r,vn=wr;if(rn&&!Wr)vn=wr.filter(function(Qr){return Ot(Qr)!==dr});else{var nn=Wr?Fr.filter(function(Qr){return Qr!==dr}):[].concat((0,G.Z)(Fr),[dr]),En=sr(),Gr;if(Wr){var ua=(0,Xe.S)(nn,{checked:!1,halfCheckedKeys:Br},En);Gr=ua.checkedKeys}else{var $n=(0,Xe.S)(nn,!0,En);Gr=$n.checkedKeys}var Hn=Ce(Gr,sr,rt);Yr=Sr(Hn)}Jr([].concat((0,G.Z)(vn),(0,G.Z)(Yr)))}}),Sn=function(dr,Fr){if(Fr.type==="clear"){Jr([]);return}var Br=Fr.values[0].valueCells;Kr(Br)},Ln=oe!==void 0?oe:Y,oa=ie||ne,ia=pe||Q,Bn=function(dr){Se==null||Se(dr),le==null||le(dr)},Zn=l.useMemo(function(){return{options:ur,fieldNames:At,values:$r,halfValues:Xr,changeOnSelect:v,onSelect:Kr,checkable:w,searchOptions:Lr,dropdownPrefixCls:z,loadData:V,expandTrigger:D,expandIcon:Fe,loadingIcon:he,dropdownMenuColumnStyle:fe}},[ur,At,$r,Xr,v,Kr,w,Lr,z,V,D,Fe,he,fe]),On=!(Bt?Lr:ur).length,la=Bt&&Ir.matchInputWidth||On?{}:{minWidth:"auto"};return l.createElement(St.Provider,{value:Zn},l.createElement(Qe.Ac,(0,te.Z)({},at,{ref:e,id:Ht,prefixCls:o,dropdownMatchSelectWidth:Ye,dropdownStyle:la,displayValues:Vr,onDisplayValuesChange:Sn,mode:Lt?"multiple":void 0,searchValue:Bt,onSearch:xt,showSearch:Tr,OptionList:se,emptyOptions:On,open:Ln,dropdownClassName:oa,placement:ia,onDropdownVisibleChange:Bn,getRawInputElement:function(){return ht}})))});xe.SHOW_PARENT=vr,xe.SHOW_CHILD=dt;var Oe=xe,ye=Oe,Me=n(98423),De=n(53124),Je=n(88258),Ge=n(98866),U=n(97647),Z=n(4173),_=n(65223),J=n(46163),q=n(33603),be=n(9708),ce=function(t,e){var a={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(a[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(t);od?A=1:A=Math.round(w*100/d)/100,a.a!==A)return{h:a.h,s:a.s,l:a.l,a:A,source:"rgb"}}else{var M;if(P<0?M=0:P>f?M=1:M=Math.round(P*100/f)/100,o!==M)return{h:a.h,s:a.s,l:a.l,a:M,source:"rgb"}}return null},or={},ir=function(e,a,r,o){if(typeof document=="undefined"&&!o)return null;var s=o?new o:document.createElement("canvas");s.width=r*2,s.height=r*2;var f=s.getContext("2d");return f?(f.fillStyle=e,f.fillRect(0,0,s.width,s.height),f.fillStyle=a,f.fillRect(0,0,r,r),f.translate(r,r),f.fillRect(0,0,r,r),s.toDataURL()):null},mr=function(e,a,r,o){var s="".concat(e,"-").concat(a,"-").concat(r).concat(o?"-server":"");if(or[s])return or[s];var f=ir(e,a,r,o);return or[s]=f,f};function Nt(t){return Nt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Nt(t)}function Kt(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),a.push.apply(a,r)}return a}function qt(t){for(var e=1;ef)w=0;else{var A=-(P*100/f)+100;w=360*A/100}if(r.h!==w)return{h:w,s:r.s,l:r.l,a:r.a,source:"hsl"}}else{var M;if(C<0)M=0;else if(C>s)M=359;else{var F=C*100/s;M=360*F/100}if(r.h!==M)return{h:M,s:r.s,l:r.l,a:r.a,source:"hsl"}}return null};function on(t){return on=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},on(t)}function io(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ca(t,e){for(var a=0;a0&&arguments[0]!==void 0?arguments[0]:[],$=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],B=u.length,e=$.length;if(Math.abs(B-e)!==1)return{add:!1,key:null};function p(z,I){var n=new Map;z.forEach(function(a){n.set(a,!0)});var d=I.filter(function(a){return!n.has(a)});return d.length===1?d[0]:null}return B ").concat($);return $}var xe=v.forwardRef(function(u,$){var B=u.prefixCls,e=u.data,p=u.selectable,z=u.checkable,I=u.expandedKeys,n=u.selectedKeys,d=u.checkedKeys,a=u.loadedKeys,f=u.loadingKeys,K=u.halfCheckedKeys,S=u.keyEntities,D=u.disabled,b=u.dragging,R=u.dragOverNodeKey,W=u.dropPosition,c=u.motion,H=u.height,U=u.itemHeight,L=u.virtual,G=u.focusable,X=u.activeItem,ne=u.focused,ie=u.tabIndex,ue=u.onKeyDown,Ee=u.onFocus,ae=u.onBlur,he=u.onActiveChange,Ne=u.onListChangeStart,be=u.onListChangeEnd,Ze=(0,g.Z)(u,y),Me=v.useRef(null),De=v.useRef(null);v.useImperativeHandle($,function(){return{scrollTo:function(Re){Me.current.scrollTo(Re)},getIndentWidth:function(){return De.current.offsetWidth}}});var Be=v.useState(I),je=(0,s.Z)(Be,2),Je=je[0],Qe=je[1],qe=v.useState(e),ze=(0,s.Z)(qe,2),Ae=ze[0],Ve=ze[1],et=v.useState(e),Ye=(0,s.Z)(et,2),tt=Ye[0],We=Ye[1],nt=v.useState([]),Ie=(0,s.Z)(nt,2),lt=Ie[0],at=Ie[1],ct=v.useState(null),dt=(0,s.Z)(ct,2),ut=dt[0],rt=dt[1],it=v.useRef(e);it.current=e;function ot(){var ce=it.current;Ve(ce),We(ce),at([]),rt(null),be()}(0,h.Z)(function(){Qe(I);var ce=o(Je,I);if(ce.key!==null)if(ce.add){var Re=Ae.findIndex(function(_e){var Ge=_e.key;return Ge===ce.key}),we=q(i(Ae,e,ce.key),L,H,U),He=Ae.slice();He.splice(Re+1,0,fe),We(He),at(we),rt("show")}else{var $e=e.findIndex(function(_e){var Ge=_e.key;return Ge===ce.key}),Ue=q(i(e,Ae,ce.key),L,H,U),Xe=e.slice();Xe.splice($e+1,0,fe),We(Xe),at(Ue),rt("hide")}else Ae!==e&&(Ve(e),We(e))},[I,e]),v.useEffect(function(){b||ot()},[b]);var ft=c?tt:e,st={expandedKeys:I,selectedKeys:n,loadedKeys:a,loadingKeys:f,checkedKeys:d,halfCheckedKeys:K,dragOverNodeKey:R,dropPosition:W,keyEntities:S};return v.createElement(v.Fragment,null,ne&&X&&v.createElement("span",{style:E,"aria-live":"assertive"},Se(X)),v.createElement("div",null,v.createElement("input",{style:E,disabled:G===!1||D,tabIndex:G!==!1?ie:null,onKeyDown:ue,onFocus:Ee,onBlur:ae,value:"",onChange:Z,"aria-label":"for screen reader"})),v.createElement("div",{className:"".concat(B,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},v.createElement("div",{className:"".concat(B,"-indent")},v.createElement("div",{ref:De,className:"".concat(B,"-indent-unit")}))),v.createElement(N.Z,(0,se.Z)({},Ze,{data:ft,itemKey:ye,height:H,fullHeight:!1,virtual:L,itemHeight:U,prefixCls:"".concat(B,"-list"),ref:Me,onVisibleChange:function(Re,we){var He=new Set(Re),$e=we.filter(function(Ue){return!He.has(Ue)});$e.some(function(Ue){return ye(Ue)===V})&&ot()}}),function(ce){var Re=ce.pos,we=(0,se.Z)({},(r(ce.data),ce.data)),He=ce.title,$e=ce.key,Ue=ce.isStart,Xe=ce.isEnd,_e=(0,m.km)($e,Re);delete we.key,delete we.children;var Ge=(0,m.H8)(_e,st);return v.createElement(_,(0,se.Z)({},we,Ge,{title:He,active:!!X&&$e===X.key,pos:Re,data:ce.data,isStart:Ue,isEnd:Xe,motion:c,motionNodes:$e===V?lt:null,motionType:ut,onMotionStart:Ne,onMotionEnd:ot,treeNodeRequiredProps:st,onMouseMove:function(){he(null)}}))}))});xe.displayName="NodeList";var pe=xe,Oe=l(17341);function Le(u){var $=u.dropPosition,B=u.dropLevelOffset,e=u.indent,p={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch($){case-1:p.top=0,p.left=-B*e;break;case 1:p.bottom=0,p.left=-B*e;break;case 0:p.bottom=0,p.left=e;break}return v.createElement("div",{style:p})}var Ke=10,ve=function(u){(0,Y.Z)(B,u);var $=(0,O.Z)(B);function B(){var e;(0,Te.Z)(this,B);for(var p=arguments.length,z=new Array(p),I=0;I2&&arguments[2]!==void 0?arguments[2]:!1,K=e.state,S=K.dragChildrenKeys,D=K.dropPosition,b=K.dropTargetKey,R=K.dropTargetPos,W=K.dropAllowed;if(!!W){var c=e.props.onDrop;if(e.setState({dragOverNodeKey:null}),e.cleanDragState(),b!==null){var H=(0,le.Z)((0,le.Z)({},(0,m.H8)(b,e.getTreeNodeRequiredProps())),{},{active:((a=e.getActiveItem())===null||a===void 0?void 0:a.key)===b,data:e.state.keyEntities[b].node}),U=S.indexOf(b)!==-1;(0,Q.ZP)(!U,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var L=(0,C.yx)(R),G={event:n,node:(0,m.F)(H),dragNode:e.dragNode?(0,m.F)(e.dragNode.props):null,dragNodesKeys:[e.dragNode.props.eventKey].concat(S),dropToGap:D!==0,dropPosition:D+Number(L[L.length-1])};f||c==null||c(G),e.dragNode=null}}},e.cleanDragState=function(){var n=e.state.draggingNodeKey;n!==null&&e.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),e.dragStartMousePosition=null,e.currentMouseOverDroppableNodeKey=null},e.triggerExpandActionExpand=function(n,d){var a=e.state,f=a.expandedKeys,K=a.flattenNodes,S=d.expanded,D=d.key,b=d.isLeaf;if(!(b||n.shiftKey||n.metaKey||n.ctrlKey)){var R=K.filter(function(c){return c.key===D})[0],W=(0,m.F)((0,le.Z)((0,le.Z)({},(0,m.H8)(D,e.getTreeNodeRequiredProps())),{},{data:R.data}));e.setExpandedKeys(S?(0,C._5)(f,D):(0,C.L0)(f,D)),e.onNodeExpand(n,W)}},e.onNodeClick=function(n,d){var a=e.props,f=a.onClick,K=a.expandAction;K==="click"&&e.triggerExpandActionExpand(n,d),f==null||f(n,d)},e.onNodeDoubleClick=function(n,d){var a=e.props,f=a.onDoubleClick,K=a.expandAction;K==="doubleClick"&&e.triggerExpandActionExpand(n,d),f==null||f(n,d)},e.onNodeSelect=function(n,d){var a=e.state.selectedKeys,f=e.state,K=f.keyEntities,S=f.fieldNames,D=e.props,b=D.onSelect,R=D.multiple,W=d.selected,c=d[S.key],H=!W;H?R?a=(0,C.L0)(a,c):a=[c]:a=(0,C._5)(a,c);var U=a.map(function(L){var G=K[L];return G?G.node:null}).filter(function(L){return L});e.setUncontrolledState({selectedKeys:a}),b==null||b(a,{event:"select",selected:H,node:d,selectedNodes:U,nativeEvent:n.nativeEvent})},e.onNodeCheck=function(n,d,a){var f=e.state,K=f.keyEntities,S=f.checkedKeys,D=f.halfCheckedKeys,b=e.props,R=b.checkStrictly,W=b.onCheck,c=d.key,H,U={event:"check",node:d,checked:a,nativeEvent:n.nativeEvent};if(R){var L=a?(0,C.L0)(S,c):(0,C._5)(S,c),G=(0,C._5)(D,c);H={checked:L,halfChecked:G},U.checkedNodes=L.map(function(ae){return K[ae]}).filter(function(ae){return ae}).map(function(ae){return ae.node}),e.setUncontrolledState({checkedKeys:L})}else{var X=(0,Oe.S)([].concat((0,Pe.Z)(S),[c]),!0,K),ne=X.checkedKeys,ie=X.halfCheckedKeys;if(!a){var ue=new Set(ne);ue.delete(c);var Ee=(0,Oe.S)(Array.from(ue),{checked:!1,halfCheckedKeys:ie},K);ne=Ee.checkedKeys,ie=Ee.halfCheckedKeys}H=ne,U.checkedNodes=[],U.checkedNodesPositions=[],U.halfCheckedKeys=ie,ne.forEach(function(ae){var he=K[ae];if(!!he){var Ne=he.node,be=he.pos;U.checkedNodes.push(Ne),U.checkedNodesPositions.push({node:Ne,pos:be})}}),e.setUncontrolledState({checkedKeys:ne},!1,{halfCheckedKeys:ie})}W==null||W(H,U)},e.onNodeLoad=function(n){var d=n.key,a=new Promise(function(f,K){e.setState(function(S){var D=S.loadedKeys,b=D===void 0?[]:D,R=S.loadingKeys,W=R===void 0?[]:R,c=e.props,H=c.loadData,U=c.onLoad;if(!H||b.indexOf(d)!==-1||W.indexOf(d)!==-1)return null;var L=H(n);return L.then(function(){var G=e.state.loadedKeys,X=(0,C.L0)(G,d);U==null||U(X,{event:"load",node:n}),e.setUncontrolledState({loadedKeys:X}),e.setState(function(ne){return{loadingKeys:(0,C._5)(ne.loadingKeys,d)}}),f()}).catch(function(G){if(e.setState(function(ne){return{loadingKeys:(0,C._5)(ne.loadingKeys,d)}}),e.loadingRetryTimes[d]=(e.loadingRetryTimes[d]||0)+1,e.loadingRetryTimes[d]>=Ke){var X=e.state.loadedKeys;(0,Q.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),e.setUncontrolledState({loadedKeys:(0,C.L0)(X,d)}),f()}K(G)}),{loadingKeys:(0,C.L0)(W,d)}})});return a.catch(function(){}),a},e.onNodeMouseEnter=function(n,d){var a=e.props.onMouseEnter;a==null||a({event:n,node:d})},e.onNodeMouseLeave=function(n,d){var a=e.props.onMouseLeave;a==null||a({event:n,node:d})},e.onNodeContextMenu=function(n,d){var a=e.props.onRightClick;a&&(n.preventDefault(),a({event:n,node:d}))},e.onFocus=function(){var n=e.props.onFocus;e.setState({focused:!0});for(var d=arguments.length,a=new Array(d),f=0;f1&&arguments[1]!==void 0?arguments[1]:!1,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!e.destroyed){var f=!1,K=!0,S={};Object.keys(n).forEach(function(D){if(D in e.props){K=!1;return}f=!0,S[D]=n[D]}),f&&(!d||K)&&e.setState((0,le.Z)((0,le.Z)({},S),a))}},e.scrollTo=function(n){e.listRef.current.scrollTo(n)},e}return(0,ee.Z)(B,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var p=this.props.activeKey;p!==void 0&&p!==this.state.activeKey&&(this.setState({activeKey:p}),p!==null&&this.scrollTo({key:p}))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("dragend",this.onWindowDragEnd),this.destroyed=!0}},{key:"resetDragState",value:function(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}},{key:"render",value:function(){var p,z=this.state,I=z.focused,n=z.flattenNodes,d=z.keyEntities,a=z.draggingNodeKey,f=z.activeKey,K=z.dropLevelOffset,S=z.dropContainerKey,D=z.dropTargetKey,b=z.dropPosition,R=z.dragOverNodeKey,W=z.indent,c=this.props,H=c.prefixCls,U=c.className,L=c.style,G=c.showLine,X=c.focusable,ne=c.tabIndex,ie=ne===void 0?0:ne,ue=c.selectable,Ee=c.showIcon,ae=c.icon,he=c.switcherIcon,Ne=c.draggable,be=c.checkable,Ze=c.checkStrictly,Me=c.disabled,De=c.motion,Be=c.loadData,je=c.filterTreeNode,Je=c.height,Qe=c.itemHeight,qe=c.virtual,ze=c.titleRender,Ae=c.dropIndicatorRender,Ve=c.onContextMenu,et=c.onScroll,Ye=c.direction,tt=c.rootClassName,We=c.rootStyle,nt=(0,re.Z)(this.props,{aria:!0,data:!0}),Ie;return Ne&&((0,ge.Z)(Ne)==="object"?Ie=Ne:typeof Ne=="function"?Ie={nodeDraggable:Ne}:Ie={}),v.createElement(j.k.Provider,{value:{prefixCls:H,selectable:ue,showIcon:Ee,icon:ae,switcherIcon:he,draggable:Ie,draggingNodeKey:a,checkable:be,checkStrictly:Ze,disabled:Me,keyEntities:d,dropLevelOffset:K,dropContainerKey:S,dropTargetKey:D,dropPosition:b,dragOverNodeKey:R,indent:W,direction:Ye,dropIndicatorRender:Ae,loadData:Be,filterTreeNode:je,titleRender:ze,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop}},v.createElement("div",{role:"tree",className:de()(H,U,tt,(p={},(0,F.Z)(p,"".concat(H,"-show-line"),G),(0,F.Z)(p,"".concat(H,"-focused"),I),(0,F.Z)(p,"".concat(H,"-active-focused"),f!==null),p)),style:We},v.createElement(pe,(0,se.Z)({ref:this.listRef,prefixCls:H,style:L,data:n,disabled:Me,selectable:ue,checkable:!!be,motion:De,dragging:a!==null,height:Je,itemHeight:Qe,virtual:qe,focusable:X,focused:I,tabIndex:ie,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:Ve,onScroll:et},this.getTreeNodeRequiredProps(),nt))))}}],[{key:"getDerivedStateFromProps",value:function(p,z){var I=z.prevProps,n={prevProps:p};function d(X){return!I&&X in p||I&&I[X]!==p[X]}var a,f=z.fieldNames;if(d("fieldNames")&&(f=(0,m.w$)(p.fieldNames),n.fieldNames=f),d("treeData")?a=p.treeData:d("children")&&((0,Q.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),a=(0,m.zn)(p.children)),a){n.treeData=a;var K=(0,m.I8)(a,{fieldNames:f});n.keyEntities=(0,le.Z)((0,F.Z)({},V,J),K.keyEntities)}var S=n.keyEntities||z.keyEntities;if(d("expandedKeys")||I&&d("autoExpandParent"))n.expandedKeys=p.autoExpandParent||!I&&p.defaultExpandParent?(0,C.r7)(p.expandedKeys,S):p.expandedKeys;else if(!I&&p.defaultExpandAll){var D=(0,le.Z)({},S);delete D[V],n.expandedKeys=Object.keys(D).map(function(X){return D[X].key})}else!I&&p.defaultExpandedKeys&&(n.expandedKeys=p.autoExpandParent||p.defaultExpandParent?(0,C.r7)(p.defaultExpandedKeys,S):p.defaultExpandedKeys);if(n.expandedKeys||delete n.expandedKeys,a||n.expandedKeys){var b=(0,m.oH)(a||z.treeData,n.expandedKeys||z.expandedKeys,f);n.flattenNodes=b}if(p.selectable&&(d("selectedKeys")?n.selectedKeys=(0,C.BT)(p.selectedKeys,p):!I&&p.defaultSelectedKeys&&(n.selectedKeys=(0,C.BT)(p.defaultSelectedKeys,p))),p.checkable){var R;if(d("checkedKeys")?R=(0,C.E6)(p.checkedKeys)||{}:!I&&p.defaultCheckedKeys?R=(0,C.E6)(p.defaultCheckedKeys)||{}:a&&(R=(0,C.E6)(p.checkedKeys)||{checkedKeys:z.checkedKeys,halfCheckedKeys:z.halfCheckedKeys}),R){var W=R,c=W.checkedKeys,H=c===void 0?[]:c,U=W.halfCheckedKeys,L=U===void 0?[]:U;if(!p.checkStrictly){var G=(0,Oe.S)(H,!0,S);H=G.checkedKeys,L=G.halfCheckedKeys}n.checkedKeys=H,n.halfCheckedKeys=L}}return d("loadedKeys")&&(n.loadedKeys=p.loadedKeys),n}}]),B}(v.Component);ve.defaultProps={prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:Le,allowDrop:function(){return!0},expandAction:!1},ve.TreeNode=k.Z;var me=ve,ke=me},10225:function(Fe,Ce,l){"use strict";l.d(Ce,{_5:function(){return te},L0:function(){return Y},yx:function(){return O},wA:function(){return v},OM:function(){return re},BT:function(){return oe},E6:function(){return C},r7:function(){return m}});var se=l(85061),F=l(90484),ge=l(67294),le=l(80334),Pe=l(4258),Te=l(1089),ee=null;function te(r,s){if(!r)return[];var g=r.slice(),h=g.indexOf(s);return h>=0&&g.splice(h,1),g}function Y(r,s){var g=(r||[]).slice();return g.indexOf(s)===-1&&g.push(s),g}function O(r){return r.split("-")}function v(r,s){var g=[],h=s[r];function N(){var M=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];M.forEach(function(k){var A=k.key,t=k.children;g.push(A),N(t)})}return N(h.children),g}function T(r){if(r.parent){var s=O(r.pos);return Number(s[s.length-1])===r.parent.children.length-1}return!1}function Q(r){var s=O(r.pos);return Number(s[s.length-1])===0}function re(r,s,g,h,N,M,k,A,t,x){var P,_=r.clientX,o=r.clientY,i=r.target.getBoundingClientRect(),y=i.top,E=i.height,Z=(x==="rtl"?-1:1)*(((N==null?void 0:N.x)||0)-_),V=(Z-12)/h,w=A[g.props.eventKey];if(o-1.5?M({dragNode:Ke,dropNode:ve,dropPosition:1})?pe=1:me=!1:M({dragNode:Ke,dropNode:ve,dropPosition:0})?pe=0:M({dragNode:Ke,dropNode:ve,dropPosition:1})?pe=1:me=!1:M({dragNode:Ke,dropNode:ve,dropPosition:1})?pe=1:me=!1,{dropPosition:pe,dropLevelOffset:Oe,dropTargetKey:w.key,dropTargetPos:w.pos,dragOverNodeKey:xe,dropContainerKey:pe===0?null:((P=w.parent)===null||P===void 0?void 0:P.key)||null,dropAllowed:me}}function oe(r,s){if(!!r){var g=s.multiple;return g?r.slice():r.length?[r[0]]:r}}var de=function(s){return s};function j(r,s){if(!r)return[];var g=s||{},h=g.processProps,N=h===void 0?de:h,M=Array.isArray(r)?r:[r];return M.map(function(k){var A=k.children,t=_objectWithoutProperties(k,ee),x=j(A,s);return React.createElement(TreeNode,_extends({key:t.key},N(t)),x)})}function C(r){if(!r)return null;var s;if(Array.isArray(r))s={checkedKeys:r,halfCheckedKeys:void 0};else if((0,F.Z)(r)==="object")s={checkedKeys:r.checked||void 0,halfCheckedKeys:r.halfChecked||void 0};else return(0,le.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return s}function m(r,s){var g=new Set;function h(N){if(!g.has(N)){var M=s[N];if(!!M){g.add(N);var k=M.parent,A=M.node;A.disabled||k&&h(k.key)}}}return(r||[]).forEach(function(N){h(N)}),(0,se.Z)(g)}},17341:function(Fe,Ce,l){"use strict";l.d(Ce,{S:function(){return Te}});var se=l(80334);function F(ee,te){var Y=new Set;return ee.forEach(function(O){te.has(O)||Y.add(O)}),Y}function ge(ee){var te=ee||{},Y=te.disabled,O=te.disableCheckbox,v=te.checkable;return!!(Y||O)||v===!1}function le(ee,te,Y,O){for(var v=new Set(ee),T=new Set,Q=0;Q<=Y;Q+=1){var re=te.get(Q)||new Set;re.forEach(function(C){var m=C.key,r=C.node,s=C.children,g=s===void 0?[]:s;v.has(m)&&!O(r)&&g.filter(function(h){return!O(h.node)}).forEach(function(h){v.add(h.key)})})}for(var oe=new Set,de=Y;de>=0;de-=1){var j=te.get(de)||new Set;j.forEach(function(C){var m=C.parent,r=C.node;if(!(O(r)||!C.parent||oe.has(C.parent.key))){if(O(C.parent.node)){oe.add(m.key);return}var s=!0,g=!1;(m.children||[]).filter(function(h){return!O(h.node)}).forEach(function(h){var N=h.key,M=v.has(N);s&&!M&&(s=!1),!g&&(M||T.has(N))&&(g=!0)}),s&&v.add(m.key),g&&T.add(m.key),oe.add(m.key)}})}return{checkedKeys:Array.from(v),halfCheckedKeys:Array.from(F(T,v))}}function Pe(ee,te,Y,O,v){for(var T=new Set(ee),Q=new Set(te),re=0;re<=O;re+=1){var oe=Y.get(re)||new Set;oe.forEach(function(m){var r=m.key,s=m.node,g=m.children,h=g===void 0?[]:g;!T.has(r)&&!Q.has(r)&&!v(s)&&h.filter(function(N){return!v(N.node)}).forEach(function(N){T.delete(N.key)})})}Q=new Set;for(var de=new Set,j=O;j>=0;j-=1){var C=Y.get(j)||new Set;C.forEach(function(m){var r=m.parent,s=m.node;if(!(v(s)||!m.parent||de.has(m.parent.key))){if(v(m.parent.node)){de.add(r.key);return}var g=!0,h=!1;(r.children||[]).filter(function(N){return!v(N.node)}).forEach(function(N){var M=N.key,k=T.has(M);g&&!k&&(g=!1),!h&&(k||Q.has(M))&&(h=!0)}),g||T.delete(r.key),h&&Q.add(r.key),de.add(r.key)}})}return{checkedKeys:Array.from(T),halfCheckedKeys:Array.from(F(Q,T))}}function Te(ee,te,Y,O){var v=[],T;O?T=O:T=ge;var Q=new Set(ee.filter(function(j){var C=!!Y[j];return C||v.push(j),C})),re=new Map,oe=0;Object.keys(Y).forEach(function(j){var C=Y[j],m=C.level,r=re.get(m);r||(r=new Set,re.set(m,r)),r.add(C),oe=Math.max(oe,m)}),(0,se.ZP)(!v.length,"Tree missing follow keys: ".concat(v.slice(0,100).map(function(j){return"'".concat(j,"'")}).join(", ")));var de;return te===!0?de=le(Q,re,oe,T):de=Pe(Q,te.halfCheckedKeys,re,oe,T),de}},1089:function(Fe,Ce,l){"use strict";l.d(Ce,{km:function(){return v},w$:function(){return T},zn:function(){return re},oH:function(){return oe},I8:function(){return j},H8:function(){return C},F:function(){return m}});var se=l(90484),F=l(85061),ge=l(28991),le=l(81253),Pe=l(50344),Te=l(98423),ee=l(80334),te=["children"];function Y(r,s){return"".concat(r,"-").concat(s)}function O(r){return r&&r.type&&r.type.isTreeNode}function v(r,s){return r!=null?r:s}function T(r){var s=r||{},g=s.title,h=s._title,N=s.key,M=s.children,k=g||"title";return{title:k,_title:h||[k],key:N||"key",children:M||"children"}}function Q(r,s){var g=new Map;function h(N){var M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(N||[]).forEach(function(k){var A=k[s.key],t=k[s.children];warning(A!=null,"Tree node must have a certain key: [".concat(M).concat(A,"]"));var x=String(A);warning(!g.has(x)||A===null||A===void 0,"Same 'key' exist in the Tree: ".concat(x)),g.set(x,!0),h(t,"".concat(M).concat(x," > "))})}h(r)}function re(r){function s(g){var h=(0,Pe.Z)(g);return h.map(function(N){if(!O(N))return(0,ee.ZP)(!N,"Tree/TreeNode can only accept TreeNode as children."),null;var M=N.key,k=N.props,A=k.children,t=(0,le.Z)(k,te),x=(0,ge.Z)({key:M},t),P=s(A);return P.length&&(x.children=P),x}).filter(function(N){return N})}return s(r)}function oe(r,s,g){var h=T(g),N=h._title,M=h.key,k=h.children,A=new Set(s===!0?[]:s),t=[];function x(P){var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return P.map(function(o,i){for(var y=Y(_?_.pos:"0",i),E=v(o[M],y),Z,V=0;V1&&arguments[1]!==void 0?arguments[1]:{},g=s.initWrapper,h=s.processEntity,N=s.onProcessFinished,M=s.externalGetKey,k=s.childrenPropName,A=s.fieldNames,t=arguments.length>2?arguments[2]:void 0,x=M||t,P={},_={},o={posEntities:P,keyEntities:_};return g&&(o=g(o)||o),de(r,function(i){var y=i.node,E=i.index,Z=i.pos,V=i.key,w=i.parentPos,J=i.level,fe=i.nodes,q={node:y,nodes:fe,index:E,key:V,pos:Z,level:J},ye=v(V,Z);P[Z]=q,_[ye]=q,q.parent=P[w],q.parent&&(q.parent.children=q.parent.children||[],q.parent.children.push(q)),h&&h(q,o)},{externalGetKey:x,childrenPropName:k,fieldNames:A}),N&&N(o),o}function C(r,s){var g=s.expandedKeys,h=s.selectedKeys,N=s.loadedKeys,M=s.loadingKeys,k=s.checkedKeys,A=s.halfCheckedKeys,t=s.dragOverNodeKey,x=s.dropPosition,P=s.keyEntities,_=P[r],o={eventKey:r,expanded:g.indexOf(r)!==-1,selected:h.indexOf(r)!==-1,loaded:N.indexOf(r)!==-1,loading:M.indexOf(r)!==-1,checked:k.indexOf(r)!==-1,halfChecked:A.indexOf(r)!==-1,pos:String(_?_.pos:""),dragOver:t===r&&x===0,dragOverGapTop:t===r&&x===-1,dragOverGapBottom:t===r&&x===1};return o}function m(r){var s=r.data,g=r.expanded,h=r.selected,N=r.checked,M=r.loaded,k=r.loading,A=r.halfChecked,t=r.dragOver,x=r.dragOverGapTop,P=r.dragOverGapBottom,_=r.pos,o=r.active,i=r.eventKey,y=(0,ge.Z)((0,ge.Z)({},s),{},{expanded:g,selected:h,checked:N,loaded:M,loading:k,halfChecked:A,dragOver:t,dragOverGapTop:x,dragOverGapBottom:P,pos:_,active:o,key:i});return"props"in y||Object.defineProperty(y,"props",{get:function(){return(0,ee.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),r}}),y}}}]); diff --git a/dist/2664.a0296ac4.chunk.css b/dist/6342.a0296ac4.chunk.css similarity index 100% rename from dist/2664.a0296ac4.chunk.css rename to dist/6342.a0296ac4.chunk.css diff --git a/dist/6342.a4678b64.async.js b/dist/6342.a4678b64.async.js new file mode 100644 index 0000000..c11f717 --- /dev/null +++ b/dist/6342.a4678b64.async.js @@ -0,0 +1 @@ +(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[6342],{25414:function(){},36166:function(Tt,Fe,p){"use strict";p.d(Fe,{Z:function(){return Za}});var K=p(96156),$=p(22122),Ne=p(54549),Ue=p(44545),Pt=p(49101),Zt=p(94184),U=p.n(Zt),H=p(28991),w=p(28481),Ce=p(90484),me=p(81253),t=p(67294),Nt=p(31131),je=p(21770),Rt=p(5461),Ee=(0,t.createContext)(null),kt=t.forwardRef(function(e,a){var o=e.prefixCls,n=e.className,r=e.style,i=e.id,l=e.active,s=e.tabKey,u=e.children;return t.createElement("div",{id:i&&"".concat(i,"-panel-").concat(s),role:"tabpanel",tabIndex:l?0:-1,"aria-labelledby":i&&"".concat(i,"-tab-").concat(s),"aria-hidden":!l,style:r,className:U()(o,l&&"".concat(o,"-active"),n),ref:a},u)}),$e=kt,It=["key","forceRender","style","className"];function At(e){var a=e.id,o=e.activeKey,n=e.animated,r=e.tabPosition,i=e.destroyInactiveTabPane,l=t.useContext(Ee),s=l.prefixCls,u=l.tabs,y=n.tabPane,x="".concat(s,"-tabpane");return t.createElement("div",{className:U()("".concat(s,"-content-holder"))},t.createElement("div",{className:U()("".concat(s,"-content"),"".concat(s,"-content-").concat(r),(0,K.Z)({},"".concat(s,"-content-animated"),y))},u.map(function(c){var m=c.key,g=c.forceRender,h=c.style,N=c.className,R=(0,me.Z)(c,It),M=m===o;return t.createElement(Rt.ZP,(0,$.Z)({key:m,visible:M,forceRender:g,removeOnLeave:!!i,leavedClassName:"".concat(x,"-hidden")},n.tabPaneMotion),function(O,k){var z=O.style,V=O.className;return t.createElement($e,(0,$.Z)({},R,{prefixCls:x,id:a,tabKey:m,animated:y,active:M,style:(0,H.Z)((0,H.Z)({},h),z),className:U()(N,V),ref:k}))})})))}var He=p(85061),Ge=p(48717),Mt=p(66680),Re=p(75164),wt=p(42550),Xe={width:0,height:0,left:0,top:0};function Ot(e,a,o){return(0,t.useMemo)(function(){for(var n,r=new Map,i=a.get((n=e[0])===null||n===void 0?void 0:n.key)||Xe,l=i.left+i.width,s=0;sP?(T=C,A.current="x"):(T=f,A.current="y"),a(-T,-T)&&b.preventDefault()}var D=(0,t.useRef)(null);D.current={onTouchStart:k,onTouchMove:z,onTouchEnd:V,onWheel:I},t.useEffect(function(){function b(E){D.current.onTouchStart(E)}function C(E){D.current.onTouchMove(E)}function f(E){D.current.onTouchEnd(E)}function T(E){D.current.onWheel(E)}return document.addEventListener("touchmove",C,{passive:!1}),document.addEventListener("touchend",f,{passive:!1}),e.current.addEventListener("touchstart",b,{passive:!1}),e.current.addEventListener("wheel",T),function(){document.removeEventListener("touchmove",C),document.removeEventListener("touchend",f)}},[])}var Dt=p(8410);function qe(e){var a=(0,t.useState)(0),o=(0,w.Z)(a,2),n=o[0],r=o[1],i=(0,t.useRef)(0),l=(0,t.useRef)();return l.current=e,(0,Dt.o)(function(){var s;(s=l.current)===null||s===void 0||s.call(l)},[n]),function(){i.current===n&&(i.current+=1,r(i.current))}}function Kt(e){var a=(0,t.useRef)([]),o=(0,t.useState)({}),n=(0,w.Z)(o,2),r=n[1],i=(0,t.useRef)(typeof e=="function"?e():e),l=qe(function(){var u=i.current;a.current.forEach(function(y){u=y(u)}),a.current=[],i.current=u,r({})});function s(u){a.current.push(u),l()}return[i.current,s]}var _e={width:0,height:0,left:0,top:0,right:0};function Vt(e,a,o,n,r,i,l){var s=l.tabs,u=l.tabPosition,y=l.rtl,x,c,m;return["top","bottom"].includes(u)?(x="width",c=y?"right":"left",m=Math.abs(o)):(x="height",c="top",m=-o),(0,t.useMemo)(function(){if(!s.length)return[0,0];for(var g=s.length,h=g,N=0;Nm+a){h=N-1;break}}for(var M=0,O=g-1;O>=0;O-=1){var k=e.get(s[O].key)||_e;if(k[c]S?"left":"right"})}),E=(0,w.Z)(T,2),P=E[0],X=E[1],te=Ye(0,function(Z,S){!f&&k&&k({direction:Z>S?"top":"bottom"})}),q=(0,w.Z)(te,2),G=q[0],Q=q[1],le=(0,t.useState)([0,0]),J=(0,w.Z)(le,2),v=J[0],d=J[1],L=(0,t.useState)([0,0]),F=(0,w.Z)(L,2),ae=F[0],fe=F[1],se=(0,t.useState)([0,0]),be=(0,w.Z)(se,2),ke=be[0],Ie=be[1],Ae=(0,t.useState)([0,0]),pe=(0,w.Z)(Ae,2),Me=pe[0],we=pe[1],B=Kt(new Map),ne=(0,w.Z)(B,2),ge=ne[0],Na=ne[1],Te=Ot(i,ge,ae[0]),Oe=xe(v,f),he=xe(ae,f),Le=xe(ke,f),st=xe(Me,f),ct=Oece?ce:Z}var ut=(0,t.useRef)(),ka=(0,t.useState)(),vt=(0,w.Z)(ka,2),Pe=vt[0],dt=vt[1];function De(){dt(Date.now())}function Ke(){window.clearTimeout(ut.current)}Bt(I,function(Z,S){function W(j,ie){j(function(ee){var Ka=Be(ee+ie);return Ka})}return ct?(f?W(X,Z):W(Q,S),Ke(),De(),!0):!1}),(0,t.useEffect)(function(){return Ke(),Pe&&(ut.current=window.setTimeout(function(){dt(0)},100)),Ke},[Pe]);var Ia=Vt(Te,_,f?P:G,he,Le,st,(0,H.Z)((0,H.Z)({},e),{},{tabs:i})),ft=(0,w.Z)(Ia,2),Aa=ft[0],Ma=ft[1],mt=(0,Mt.Z)(function(){var Z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:x,S=Te.get(Z)||{width:0,height:0,left:0,right:0,top:0};if(f){var W=P;c?S.rightP+_&&(W=S.right+S.width-_):S.left<-P?W=-S.left:S.left+S.width>-P+_&&(W=-(S.left+S.width-_)),Q(0),X(Be(W))}else{var j=G;S.top<-G?j=-S.top:S.top+S.height>-G+_&&(j=-(S.top+S.height-_)),X(0),Q(Be(j))}}),Ze={};N==="top"||N==="bottom"?Ze[c?"marginRight":"marginLeft"]=R:Ze.marginTop=R;var bt=i.map(function(Z,S){var W=Z.key;return t.createElement(na,{id:u,prefixCls:r,key:W,tab:Z,style:S===0?void 0:Ze,closable:Z.closable,editable:g,active:W===x,renderWrapper:M,removeAriaLabel:h==null?void 0:h.removeAriaLabel,onClick:function(ie){O(W,ie)},onFocus:function(){mt(W),De(),!!I.current&&(c||(I.current.scrollLeft=0),I.current.scrollTop=0)}})}),pt=function(){return Na(function(){var S=new Map;return i.forEach(function(W){var j,ie=W.key,ee=(j=D.current)===null||j===void 0?void 0:j.querySelector('[data-node-key="'.concat(tt(ie),'"]'));ee&&S.set(ie,{width:ee.offsetWidth,height:ee.offsetHeight,left:ee.offsetLeft,top:ee.offsetTop})}),S})};(0,t.useEffect)(function(){pt()},[i.map(function(Z){return Z.key}).join("_")]);var Ve=qe(function(){var Z=de(z),S=de(V),W=de(A);d([Z[0]-S[0]-W[0],Z[1]-S[1]-W[1]]);var j=de(C);Ie(j);var ie=de(b);we(ie);var ee=de(D);fe([ee[0]-j[0],ee[1]-j[1]]),pt()}),wa=i.slice(0,Aa),Oa=i.slice(Ma+1),gt=[].concat((0,He.Z)(wa),(0,He.Z)(Oa)),La=(0,t.useState)(),ht=(0,w.Z)(La,2),Ba=ht[0],Da=ht[1],oe=Te.get(x),yt=(0,t.useRef)();function Ct(){Re.Z.cancel(yt.current)}(0,t.useEffect)(function(){var Z={};return oe&&(f?(c?Z.right=oe.right:Z.left=oe.left,Z.width=oe.width):(Z.top=oe.top,Z.height=oe.height)),Ct(),yt.current=(0,Re.Z)(function(){Da(Z)}),Ct},[oe,f,c]),(0,t.useEffect)(function(){mt()},[x,re,ce,et(oe),et(Te),f]),(0,t.useEffect)(function(){Ve()},[c]);var Et=!!gt.length,ye="".concat(r,"-nav-wrap"),ze,We,St,xt;return f?c?(We=P>0,ze=P!==ce):(ze=P<0,We=P!==re):(St=G<0,xt=G!==re),t.createElement(Ge.Z,{onResize:Ve},t.createElement("div",{ref:(0,wt.x1)(a,z),role:"tablist",className:U()("".concat(r,"-nav"),l),style:s,onKeyDown:function(){De()}},t.createElement(nt,{ref:V,position:"left",extra:m,prefixCls:r}),t.createElement("div",{className:U()(ye,(o={},(0,K.Z)(o,"".concat(ye,"-ping-left"),ze),(0,K.Z)(o,"".concat(ye,"-ping-right"),We),(0,K.Z)(o,"".concat(ye,"-ping-top"),St),(0,K.Z)(o,"".concat(ye,"-ping-bottom"),xt),o)),ref:I},t.createElement(Ge.Z,{onResize:Ve},t.createElement("div",{ref:D,className:"".concat(r,"-nav-list"),style:{transform:"translate(".concat(P,"px, ").concat(G,"px)"),transition:Pe?"none":void 0}},bt,t.createElement(at,{ref:C,prefixCls:r,locale:h,editable:g,style:(0,H.Z)((0,H.Z)({},bt.length===0?void 0:Ze),{},{visibility:Et?"hidden":null})}),t.createElement("div",{className:U()("".concat(r,"-ink-bar"),(0,K.Z)({},"".concat(r,"-ink-bar-animated"),y.inkBar)),style:Ba})))),t.createElement(ta,(0,$.Z)({},e,{removeAriaLabel:h==null?void 0:h.removeAriaLabel,ref:b,prefixCls:r,tabs:gt,className:!Et&&Ra,tabMoving:!!Pe})),t.createElement(nt,{ref:A,position:"right",extra:m,prefixCls:r})))}var ot=t.forwardRef(ra),oa=["renderTabBar"],ia=["label","key"];function la(e){var a=e.renderTabBar,o=(0,me.Z)(e,oa),n=t.useContext(Ee),r=n.tabs;if(a){var i=(0,H.Z)((0,H.Z)({},o),{},{panes:r.map(function(l){var s=l.label,u=l.key,y=(0,me.Z)(l,ia);return t.createElement($e,(0,$.Z)({tab:s,key:u,tabKey:u},y))})});return a(i,ot)}return t.createElement(ot,o)}var Va=p(80334);function sa(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{inkBar:!0,tabPane:!1},a;return e===!1?a={inkBar:!1,tabPane:!1}:e===!0?a={inkBar:!0,tabPane:!1}:a=(0,H.Z)({inkBar:!0},(0,Ce.Z)(e)==="object"?e:{}),a.tabPaneMotion&&a.tabPane===void 0&&(a.tabPane=!0),!a.tabPaneMotion&&a.tabPane&&(a.tabPane=!1),a}var ca=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","moreIcon","moreTransitionName","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName"],it=0;function ua(e,a){var o,n=e.id,r=e.prefixCls,i=r===void 0?"rc-tabs":r,l=e.className,s=e.items,u=e.direction,y=e.activeKey,x=e.defaultActiveKey,c=e.editable,m=e.animated,g=e.tabPosition,h=g===void 0?"top":g,N=e.tabBarGutter,R=e.tabBarStyle,M=e.tabBarExtraContent,O=e.locale,k=e.moreIcon,z=e.moreTransitionName,V=e.destroyInactiveTabPane,A=e.renderTabBar,I=e.onChange,D=e.onTabClick,b=e.onTabScroll,C=e.getPopupContainer,f=e.popupClassName,T=(0,me.Z)(e,ca),E=t.useMemo(function(){return(s||[]).filter(function(B){return B&&(0,Ce.Z)(B)==="object"&&"key"in B})},[s]),P=u==="rtl",X=sa(m),te=(0,t.useState)(!1),q=(0,w.Z)(te,2),G=q[0],Q=q[1];(0,t.useEffect)(function(){Q((0,Nt.Z)())},[]);var le=(0,je.Z)(function(){var B;return(B=E[0])===null||B===void 0?void 0:B.key},{value:y,defaultValue:x}),J=(0,w.Z)(le,2),v=J[0],d=J[1],L=(0,t.useState)(function(){return E.findIndex(function(B){return B.key===v})}),F=(0,w.Z)(L,2),ae=F[0],fe=F[1];(0,t.useEffect)(function(){var B=E.findIndex(function(ge){return ge.key===v});if(B===-1){var ne;B=Math.max(0,Math.min(ae,E.length-1)),d((ne=E[B])===null||ne===void 0?void 0:ne.key)}fe(B)},[E.map(function(B){return B.key}).join("_"),v,ae]);var se=(0,je.Z)(null,{value:n}),be=(0,w.Z)(se,2),ke=be[0],Ie=be[1];(0,t.useEffect)(function(){n||(Ie("rc-tabs-".concat(it)),it+=1)},[]);function Ae(B,ne){D==null||D(B,ne);var ge=B!==v;d(B),ge&&(I==null||I(B))}var pe={id:ke,activeKey:v,animated:X,tabPosition:h,rtl:P,mobile:G},Me,we=(0,H.Z)((0,H.Z)({},pe),{},{editable:c,locale:O,moreIcon:k,moreTransitionName:z,tabBarGutter:N,onTabClick:Ae,onTabScroll:b,extra:M,style:R,panes:null,getPopupContainer:C,popupClassName:f});return t.createElement(Ee.Provider,{value:{tabs:E,prefixCls:i}},t.createElement("div",(0,$.Z)({ref:a,id:n,className:U()(i,"".concat(i,"-").concat(h),(o={},(0,K.Z)(o,"".concat(i,"-mobile"),G),(0,K.Z)(o,"".concat(i,"-editable"),c),(0,K.Z)(o,"".concat(i,"-rtl"),P),o),l)},T),Me,t.createElement(la,(0,$.Z)({},we,{renderTabBar:A})),t.createElement(At,(0,$.Z)({destroyInactiveTabPane:V},pe,{animated:X}))))}var va=t.forwardRef(ua),da=va,fa=da,ma=p(53124),ba=p(97647),pa=p(33603),ga={motionAppear:!1,motionEnter:!0,motionLeave:!0};function ha(e){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{inkBar:!0,tabPane:!1},o;return a===!1?o={inkBar:!1,tabPane:!1}:a===!0?o={inkBar:!0,tabPane:!0}:o=(0,$.Z)({inkBar:!0},(0,Ce.Z)(a)==="object"?a:{}),o.tabPane&&(o.tabPaneMotion=(0,$.Z)((0,$.Z)({},ga),{motionName:(0,pa.mL)(e,"switch")})),o}var ya=p(50344),Ca=function(e,a){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&a.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,n=Object.getOwnPropertySymbols(e);r2&&arguments[2]!==void 0?arguments[2]:!0,Ye=function(){me(function(lt){var qe=new Map(lt),ct=qe.delete(W);return ct?qe:lt})};return me(function(Je){return new Map(Je).set(W,{url:Ue,canPreview:Qe})}),Ye},Ae=function(W){W.stopPropagation(),H(!1),K(null)};return n.useEffect(function(){ue(k)},[k]),n.useEffect(function(){!G&&he&&ue(k)},[k,he,G]),n.createElement(He,{value:{isPreviewGroup:!0,previewUrls:Fe,setPreviewUrls:me,current:ce,setCurrent:ue,setShowPreview:H,setMousePosition:K,registerImage:ke}},c,n.createElement(L,(0,y.Z)({"aria-hidden":!G,visible:G,prefixCls:a,onClose:Ae,mousePosition:Y,src:Fe.get(ce),icons:m,getContainer:Z,countRender:de},Me)))},at=gt,ot=r(63441),Ct=r(38475),Ve=1,O=50,M=1,_=.2,Ne=function(e){var l,a=e.visible,c=e.maskTransitionName,u=e.getContainer,m=e.prefixCls,v=e.rootClassName,h=e.icons,D=e.countRender,S=e.showSwitch,p=e.showProgress,I=e.current,x=e.count,Z=e.scale,X=e.onSwitchLeft,w=e.onSwitchRight,F=e.onClose,de=e.onZoomIn,Me=e.onZoomOut,le=e.onRotateRight,Q=e.onRotateLeft,z=h.rotateLeft,me=h.rotateRight,ge=h.zoomIn,re=h.zoomOut,ce=h.close,ue=h.left,Le=h.right,Ce="".concat(m,"-operations-operation"),G="".concat(m,"-operations-icon"),H=[{icon:ce,onClick:F,type:"close"},{icon:ge,onClick:de,type:"zoomIn",disabled:Z===O},{icon:re,onClick:Me,type:"zoomOut",disabled:Z===Ve},{icon:me,onClick:le,type:"rotateRight"},{icon:z,onClick:Q,type:"rotateLeft"}],J=n.createElement(n.Fragment,null,S&&n.createElement(n.Fragment,null,n.createElement("div",{className:q()("".concat(m,"-switch-left"),(0,ae.Z)({},"".concat(m,"-switch-left-disabled"),I===0)),onClick:X},ue),n.createElement("div",{className:q()("".concat(m,"-switch-right"),(0,ae.Z)({},"".concat(m,"-switch-right-disabled"),I===x-1)),onClick:w},Le)),n.createElement("ul",{className:"".concat(m,"-operations")},p&&n.createElement("li",{className:"".concat(m,"-operations-progress")},(l=D==null?void 0:D(I+1,x))!==null&&l!==void 0?l:"".concat(I+1," / ").concat(x)),H.map(function(d){var Y,K=d.icon,he=d.onClick,we=d.type,k=d.disabled;return n.createElement("li",{className:q()(Ce,(Y={},(0,ae.Z)(Y,"".concat(m,"-operations-operation-").concat(we),!0),(0,ae.Z)(Y,"".concat(m,"-operations-operation-disabled"),!!k),Y)),onClick:he,key:we},n.isValidElement(K)?n.cloneElement(K,{className:G}):K)})));return n.createElement(ot.Z,{visible:a,motionName:c},function(d){var Y=d.className,K=d.style;return n.createElement(Ct.Z,{open:!0,getContainer:u!=null?u:document.body},n.createElement("div",{className:q()("".concat(m,"-operations-wrapper"),Y,v),style:K},J))})},j=Ne,Se=r(75164),t={x:0,y:0,rotate:0,scale:1};function f(s){var e=(0,n.useRef)(null),l=(0,n.useRef)([]),a=(0,n.useState)(t),c=(0,E.Z)(a,2),u=c[0],m=c[1],v=function(){m(t)},h=function(p){e.current===null&&(l.current=[],e.current=(0,Se.Z)(function(){m(function(I){var x=I;return l.current.forEach(function(Z){x=(0,V.Z)((0,V.Z)({},x),Z)}),e.current=null,x})})),l.current.push((0,V.Z)((0,V.Z)({},u),p))},D=function(p,I,x){var Z=s.current,X=Z.width,w=Z.height,F=Z.offsetWidth,de=Z.offsetHeight,Me=Z.offsetLeft,le=Z.offsetTop,Q=p,z=u.scale*p;z>O?(Q=O/u.scale,z=O):za){if(e>0)return(0,ae.Z)({},s,u);if(e<0&&ca)return(0,ae.Z)({},s,e<0?u:-u);return{}}function C(s,e,l,a){var c=(0,De.g1)(),u=c.width,m=c.height,v=null;return s<=u&&e<=m?v={x:0,y:0}:(s>u||e>m)&&(v=(0,V.Z)((0,V.Z)({},o("x",l,s,u)),o("y",a,e,m))),v}var R=["prefixCls","src","alt","onClose","afterClose","visible","icons","rootClassName","getContainer","countRender","scaleStep","transitionName","maskTransitionName"],P=function(e){var l=e.prefixCls,a=e.src,c=e.alt,u=e.onClose,m=e.afterClose,v=e.visible,h=e.icons,D=h===void 0?{}:h,S=e.rootClassName,p=e.getContainer,I=e.countRender,x=e.scaleStep,Z=x===void 0?.5:x,X=e.transitionName,w=X===void 0?"zoom":X,F=e.maskTransitionName,de=F===void 0?"fade":F,Me=(0,ze.Z)(e,R),le=(0,n.useRef)(),Q=(0,n.useRef)({deltaX:0,deltaY:0,transformX:0,transformY:0}),z=(0,n.useState)(!1),me=(0,E.Z)(z,2),ge=me[0],re=me[1],ce=(0,n.useContext)(We),ue=ce.previewUrls,Le=ce.current,Ce=ce.isPreviewGroup,G=ce.setCurrent,H=ue.size,J=Array.from(ue.keys()),d=J.indexOf(Le),Y=Ce?ue.get(Le):a,K=Ce&&H>1,he=Ce&&H>=1,we=f(le),k=we.transform,Fe=we.resetTransform,ke=we.updateTransform,Ae=we.dispatchZoonChange,ye=k.rotate,W=k.scale,Ue=q()((0,ae.Z)({},"".concat(l,"-moving"),ge)),Qe=function(){Fe()},Ye=function(){Ae(M+Z)},Je=function(){Ae(M-Z)},lt=function(){ke({rotate:ye+90})},qe=function(){ke({rotate:ye-90})},ct=function(g){g.preventDefault(),g.stopPropagation(),d>0&&G(J[d-1])},wt=function(g){g.preventDefault(),g.stopPropagation(),d0&&(pe=M/pe),Ae(pe,g.clientX,g.clientY)}},St=(0,n.useCallback)(function(A){!v||!K||(A.keyCode===tt.Z.LEFT?d>0&&G(J[d-1]):A.keyCode===tt.Z.RIGHT&&d2&&arguments[2]!==void 0?arguments[2]:!0,Ye=function(){me(function(lt){var qe=new Map(lt),ct=qe.delete(W);return ct?qe:lt})};return me(function(Je){return new Map(Je).set(W,{url:Ue,canPreview:Qe})}),Ye},Ae=function(W){W.stopPropagation(),H(!1),K(null)};return n.useEffect(function(){ue(k)},[k]),n.useEffect(function(){!G&&he&&ue(k)},[k,he,G]),n.createElement(He,{value:{isPreviewGroup:!0,previewUrls:Fe,setPreviewUrls:me,current:ce,setCurrent:ue,setShowPreview:H,setMousePosition:K,registerImage:ke}},c,n.createElement(L,(0,y.Z)({"aria-hidden":!G,visible:G,prefixCls:a,onClose:Ae,mousePosition:Y,src:Fe.get(ce),icons:m,getContainer:Z,countRender:de},Me)))},at=gt,ot=r(5461),Ct=r(38475),Ve=1,O=50,M=1,_=.2,Ne=function(e){var l,a=e.visible,c=e.maskTransitionName,u=e.getContainer,m=e.prefixCls,v=e.rootClassName,h=e.icons,D=e.countRender,S=e.showSwitch,p=e.showProgress,I=e.current,x=e.count,Z=e.scale,X=e.onSwitchLeft,w=e.onSwitchRight,F=e.onClose,de=e.onZoomIn,Me=e.onZoomOut,le=e.onRotateRight,Q=e.onRotateLeft,z=h.rotateLeft,me=h.rotateRight,ge=h.zoomIn,re=h.zoomOut,ce=h.close,ue=h.left,Le=h.right,Ce="".concat(m,"-operations-operation"),G="".concat(m,"-operations-icon"),H=[{icon:ce,onClick:F,type:"close"},{icon:ge,onClick:de,type:"zoomIn",disabled:Z===O},{icon:re,onClick:Me,type:"zoomOut",disabled:Z===Ve},{icon:me,onClick:le,type:"rotateRight"},{icon:z,onClick:Q,type:"rotateLeft"}],J=n.createElement(n.Fragment,null,S&&n.createElement(n.Fragment,null,n.createElement("div",{className:q()("".concat(m,"-switch-left"),(0,ae.Z)({},"".concat(m,"-switch-left-disabled"),I===0)),onClick:X},ue),n.createElement("div",{className:q()("".concat(m,"-switch-right"),(0,ae.Z)({},"".concat(m,"-switch-right-disabled"),I===x-1)),onClick:w},Le)),n.createElement("ul",{className:"".concat(m,"-operations")},p&&n.createElement("li",{className:"".concat(m,"-operations-progress")},(l=D==null?void 0:D(I+1,x))!==null&&l!==void 0?l:"".concat(I+1," / ").concat(x)),H.map(function(d){var Y,K=d.icon,he=d.onClick,we=d.type,k=d.disabled;return n.createElement("li",{className:q()(Ce,(Y={},(0,ae.Z)(Y,"".concat(m,"-operations-operation-").concat(we),!0),(0,ae.Z)(Y,"".concat(m,"-operations-operation-disabled"),!!k),Y)),onClick:he,key:we},n.isValidElement(K)?n.cloneElement(K,{className:G}):K)})));return n.createElement(ot.ZP,{visible:a,motionName:c},function(d){var Y=d.className,K=d.style;return n.createElement(Ct.Z,{open:!0,getContainer:u!=null?u:document.body},n.createElement("div",{className:q()("".concat(m,"-operations-wrapper"),Y,v),style:K},J))})},j=Ne,Se=r(75164),t={x:0,y:0,rotate:0,scale:1};function f(s){var e=(0,n.useRef)(null),l=(0,n.useRef)([]),a=(0,n.useState)(t),c=(0,E.Z)(a,2),u=c[0],m=c[1],v=function(){m(t)},h=function(p){e.current===null&&(l.current=[],e.current=(0,Se.Z)(function(){m(function(I){var x=I;return l.current.forEach(function(Z){x=(0,V.Z)((0,V.Z)({},x),Z)}),e.current=null,x})})),l.current.push((0,V.Z)((0,V.Z)({},u),p))},D=function(p,I,x){var Z=s.current,X=Z.width,w=Z.height,F=Z.offsetWidth,de=Z.offsetHeight,Me=Z.offsetLeft,le=Z.offsetTop,Q=p,z=u.scale*p;z>O?(Q=O/u.scale,z=O):za){if(e>0)return(0,ae.Z)({},s,u);if(e<0&&ca)return(0,ae.Z)({},s,e<0?u:-u);return{}}function C(s,e,l,a){var c=(0,De.g1)(),u=c.width,m=c.height,v=null;return s<=u&&e<=m?v={x:0,y:0}:(s>u||e>m)&&(v=(0,V.Z)((0,V.Z)({},o("x",l,s,u)),o("y",a,e,m))),v}var R=["prefixCls","src","alt","onClose","afterClose","visible","icons","rootClassName","getContainer","countRender","scaleStep","transitionName","maskTransitionName"],P=function(e){var l=e.prefixCls,a=e.src,c=e.alt,u=e.onClose,m=e.afterClose,v=e.visible,h=e.icons,D=h===void 0?{}:h,S=e.rootClassName,p=e.getContainer,I=e.countRender,x=e.scaleStep,Z=x===void 0?.5:x,X=e.transitionName,w=X===void 0?"zoom":X,F=e.maskTransitionName,de=F===void 0?"fade":F,Me=(0,ze.Z)(e,R),le=(0,n.useRef)(),Q=(0,n.useRef)({deltaX:0,deltaY:0,transformX:0,transformY:0}),z=(0,n.useState)(!1),me=(0,E.Z)(z,2),ge=me[0],re=me[1],ce=(0,n.useContext)(We),ue=ce.previewUrls,Le=ce.current,Ce=ce.isPreviewGroup,G=ce.setCurrent,H=ue.size,J=Array.from(ue.keys()),d=J.indexOf(Le),Y=Ce?ue.get(Le):a,K=Ce&&H>1,he=Ce&&H>=1,we=f(le),k=we.transform,Fe=we.resetTransform,ke=we.updateTransform,Ae=we.dispatchZoonChange,ye=k.rotate,W=k.scale,Ue=q()((0,ae.Z)({},"".concat(l,"-moving"),ge)),Qe=function(){Fe()},Ye=function(){Ae(M+Z)},Je=function(){Ae(M-Z)},lt=function(){ke({rotate:ye+90})},qe=function(){ke({rotate:ye-90})},ct=function(g){g.preventDefault(),g.stopPropagation(),d>0&&G(J[d-1])},wt=function(g){g.preventDefault(),g.stopPropagation(),d0&&(pe=M/pe),Ae(pe,g.clientX,g.clientY)}},St=(0,n.useCallback)(function(A){!v||!K||(A.keyCode===tt.Z.LEFT?d>0&&G(J[d-1]):A.keyCode===tt.Z.RIGHT&&d3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof e=="string"?e:"".concat(u,"-").concat(n),error:e,errorStatus:t}}function pe(e){var t=e.help,u=e.helpStatus,n=e.errors,s=n===void 0?F:n,f=e.warnings,p=f===void 0?F:f,m=e.className,v=e.fieldId,S=e.onVisibleChanged,Z=l.useContext(h.Rk),T=Z.prefixCls,A=l.useContext(tt.E_),L=A.getPrefixCls,W="".concat(T,"-item-explain"),j=L(),ae=We(s),M=We(p),Y=l.useMemo(function(){return t!=null?[Ve(t,u,"help")]:[].concat((0,k.Z)(ae.map(function(P,_){return Ve(P,"error","error",_)})),(0,k.Z)(M.map(function(P,_){return Ve(P,"warning","warning",_)})))},[t,u,ae,M]),K={};return v&&(K.id="".concat(v,"_help")),l.createElement(be.Z,{motionDeadline:c.ZP.motionDeadline,motionName:"".concat(j,"-show-help"),visible:!!Y.length,onVisibleChanged:S},function(P){var _=P.className,oe=P.style;return l.createElement("div",(0,x.Z)({},K,{className:Ce()(W,_,m),style:oe,role:"alert"}),l.createElement(be.V,(0,x.Z)({keys:Y},c.ZP,{motionName:"".concat(j,"-show-help-item"),component:!1}),function(q){var ee=q.key,te=q.error,V=q.errorStatus,se=q.className,Ee=q.style;return l.createElement("div",{key:ee,className:Ce()(se,(0,d.Z)({},"".concat(W,"-").concat(V),V)),style:Ee},te)}))})}var re=a(90484),J=a(48526),w=a(98866),de=a(97647);function Q(e){return typeof e=="object"&&e!=null&&e.nodeType===1}function le(e,t){return(!t||e!=="hidden")&&e!=="visible"&&e!=="clip"}function ge(e,t){if(e.clientHeightt||f>e&&p=t&&m>=u?f-e-n:p>t&&mu?p-t+s:0}var He=function(e,t){var u=window,n=t.scrollMode,s=t.block,f=t.inline,p=t.boundary,m=t.skipOverflowHiddenElements,v=typeof p=="function"?p:function(xt){return xt!==p};if(!Q(e))throw new TypeError("Invalid target");for(var S,Z,T=document.scrollingElement||document.documentElement,A=[],L=e;Q(L)&&v(L);){if((L=(Z=(S=L).parentElement)==null?S.getRootNode().host||null:Z)===T){A.push(L);break}L!=null&&L===document.body&&ge(L)&&!ge(document.documentElement)||L!=null&&ge(L,m)&&A.push(L)}for(var W=u.visualViewport?u.visualViewport.width:innerWidth,j=u.visualViewport?u.visualViewport.height:innerHeight,ae=window.scrollX||pageXOffset,M=window.scrollY||pageYOffset,Y=e.getBoundingClientRect(),K=Y.height,P=Y.width,_=Y.top,oe=Y.right,q=Y.bottom,ee=Y.left,te=s==="start"||s==="nearest"?_:s==="end"?q:_+K/2,V=f==="center"?ee+P/2:f==="end"?oe:ee,se=[],Ee=0;Ee=0&&ee>=0&&q<=j&&oe<=W&&_>=ue&&q<=gt&&ee>=Qe&&oe<=me)return se;var Ne=getComputedStyle(I),Je=parseInt(Ne.borderLeftWidth,10),qe=parseInt(Ne.borderTopWidth,10),Le=parseInt(Ne.borderRightWidth,10),it=parseInt(Ne.borderBottomWidth,10),E=0,g=0,N="offsetWidth"in I?I.offsetWidth-I.clientWidth-Je-Le:0,C="offsetHeight"in I?I.offsetHeight-I.clientHeight-qe-it:0,U="offsetWidth"in I?I.offsetWidth===0?0:Ze/I.offsetWidth:0,ce="offsetHeight"in I?I.offsetHeight===0?0:Ie/I.offsetHeight:0;if(T===I)E=s==="start"?te:s==="end"?te-j:s==="nearest"?Ae(M,M+j,j,qe,it,M+te,M+te+K,K):te-j/2,g=f==="start"?V:f==="center"?V-W/2:f==="end"?V-W:Ae(ae,ae+W,W,Je,Le,ae+V,ae+V+P,P),E=Math.max(0,E+M),g=Math.max(0,g+ae);else{E=s==="start"?te-ue-qe:s==="end"?te-gt+it+C:s==="nearest"?Ae(ue,gt,Ie,qe,it+C,te,te+K,K):te-(ue+Ie/2)+C/2,g=f==="start"?V-Qe-Je:f==="center"?V-(Qe+Ze/2)+N/2:f==="end"?V-me+Le+N:Ae(Qe,me,Ze,Je,Le+N,V,V+P,P);var Se=I.scrollLeft,Te=I.scrollTop;te+=Te-(E=Math.max(0,Math.min(Te+E/ce,I.scrollHeight-Ie/ce+C))),V+=Se-(g=Math.max(0,Math.min(Se+g/U,I.scrollWidth-Ze/U+N)))}se.push({el:I,top:E,left:g})}return se};function ve(e){return e===Object(e)&&Object.keys(e).length!==0}function Oe(e,t){t===void 0&&(t="auto");var u="scrollBehavior"in document.body.style;e.forEach(function(n){var s=n.el,f=n.top,p=n.left;s.scroll&&u?s.scroll({top:f,left:p,behavior:t}):(s.scrollTop=f,s.scrollLeft=p)})}function Be(e){return e===!1?{block:"end",inline:"nearest"}:ve(e)?e:{block:"start",inline:"nearest"}}function De(e,t){var u=e.isConnected||e.ownerDocument.documentElement.contains(e);if(ve(t)&&typeof t.behavior=="function")return t.behavior(u?He(e,t):[]);if(!!u){var n=Be(t);return Oe(He(e,n),n.behavior)}}var ut=De,St=["parentNode"],st="form_item";function ze(e){return e===void 0||e===!1?[]:Array.isArray(e)?e:[e]}function rt(e,t){if(!!e.length){var u=e.join("_");if(t)return"".concat(t,"_").concat(u);var n=St.includes(u);return n?"".concat(st,"_").concat(u):u}}function he(e){var t=ze(e);return t.join("_")}function ke(e){var t=(0,J.cI)(),u=(0,fe.Z)(t,1),n=u[0],s=l.useRef({}),f=l.useMemo(function(){return e!=null?e:(0,x.Z)((0,x.Z)({},n),{__INTERNAL__:{itemRef:function(m){return function(v){var S=he(m);v?s.current[S]=v:delete s.current[S]}}},scrollToField:function(m){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},S=ze(m),Z=rt(S,f.__INTERNAL__.name),T=Z?document.getElementById(Z):null;T&&ut(T,(0,x.Z)({scrollMode:"if-needed",block:"nearest"},v))},getFieldInstance:function(m){var v=he(m);return s.current[v]}})},[e,n]);return[f]}var yt=function(e,t){var u={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(u[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,n=Object.getOwnPropertySymbols(e);s0||it.length>0||e.extra){var Tt=[];(e.help||Le.length>0)&&Tt.push("".concat(Te,"_help")),e.extra&&Tt.push("".concat(Te,"_extra")),et["aria-describedby"]=Tt.join(" ")}Le.length>0&&(et["aria-invalid"]="true"),xt&&(et["aria-required"]="true"),(0,Me.Yr)(m)&&(et.ref=E(Se,m));var Kt=new Set([].concat((0,k.Z)(ze(A)),(0,k.Z)(ze(q))));Kt.forEach(function(ot){et[ot]=function(){for(var Pt,Vt,At,Bt,Lt,Ut=arguments.length,Wt=new Array(Ut),wt=0;wt0){var ct=Q[0]/2;Re.paddingLeft=ct,Re.paddingRight=ct}if(Q&&Q[1]>0&&!ge){var ft=Q[1]/2;Re.paddingTop=ft,Re.paddingBottom=ft}return st&&(Re.flex=c(st),le===!1&&!Re.minWidth&&(Re.minWidth=0)),Ce.createElement("div",(0,d.Z)({},rt,{style:(0,d.Z)((0,d.Z)({},Re),ze),className:yt,ref:Ve}),St)});ye.Z=We},92820:function(je,ye,a){"use strict";var h=a(22122),d=a(96156),x=a(90484),k=a(28481),Et=a(94184),Ce=a.n(Et),be=a(67294),l=a(53124),tt=a(98082),c=a(24308),fe=a(93355),We=a(99134),F=function(w,de){var Q={};for(var le in w)Object.prototype.hasOwnProperty.call(w,le)&&de.indexOf(le)<0&&(Q[le]=w[le]);if(w!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ge=0,le=Object.getOwnPropertySymbols(w);ge0?Ke[0]/-2:void 0,o=Ke[1]!=null&&Ke[1]>0?Ke[1]/-2:void 0;if(r&&(at.marginLeft=r,at.marginRight=r),nt){var i=(0,k.Z)(Ke,2);at.rowGap=i[1]}else o&&(at.marginTop=o,at.marginBottom=o);var y=(0,k.Z)(Ke,2),b=y[0],O=y[1],G=be.useMemo(function(){return{gutter:[b,O],wrap:ut,supportFlexGap:nt}},[b,O,ut,nt]);return be.createElement(We.Z.Provider,{value:G},be.createElement("div",(0,h.Z)({},St,{className:Dt,style:(0,h.Z)((0,h.Z)({},at),ve),ref:de}),Oe))});ye.Z=J},6999:function(je,ye,a){"use strict";var h=a(38663),d=a.n(h),x=a(80638),k=a.n(x)},85986:function(je,ye,a){"use strict";a.d(ye,{Z:function(){return at}});var h=a(22122),d=a(96156),x=a(90484),k=a(28481),Et=a(57254),Ce=a(58491),be=a(94184),l=a.n(be),tt=a(81253),c=a(67294),fe=a(15105),We=a(8410),F=a(42550),Ve=a(6610),pe=a(5991);function re(){return typeof BigInt=="function"}function J(r){var o=r.trim(),i=o.startsWith("-");i&&(o=o.slice(1)),o=o.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),o.startsWith(".")&&(o="0".concat(o));var y=o||"0",b=y.split("."),O=b[0]||"0",G=b[1]||"0";O==="0"&&G==="0"&&(i=!1);var $=i?"-":"";return{negative:i,negativeStr:$,trimStr:y,integerStr:O,decimalStr:G,fullStr:"".concat($).concat(y)}}function w(r){var o=String(r);return!Number.isNaN(Number(o))&&o.includes("e")}function de(r){var o=String(r);if(w(r)){var i=Number(o.slice(o.indexOf("e-")+2)),y=o.match(/\.(\d+)/);return(y==null?void 0:y[1])&&(i+=y[1].length),i}return o.includes(".")&&le(o)?o.length-o.indexOf(".")-1:0}function Q(r){var o=String(r);if(w(r)){if(r>Number.MAX_SAFE_INTEGER)return String(re()?BigInt(r).toString():Number.MAX_SAFE_INTEGER);if(rNumber.MAX_SAFE_INTEGER)return new r(Number.MAX_SAFE_INTEGER);if(b0&&arguments[0]!==void 0?arguments[0]:!0;return i?this.isInvalidate()?"":Q(this.number):this.origin}}]),r}(),He=function(){function r(o){if((0,Ve.Z)(this,r),this.origin="",this.negative=void 0,this.integer=void 0,this.decimal=void 0,this.decimalLen=void 0,this.empty=void 0,this.nan=void 0,!o&&o!==0||!String(o).trim()){this.empty=!0;return}if(this.origin=String(o),o==="-"){this.nan=!0;return}var i=o;if(w(i)&&(i=Number(i)),i=typeof i=="string"?i:Q(i),le(i)){var y=J(i);this.negative=y.negative;var b=y.trimStr.split(".");this.integer=BigInt(b[0]);var O=b[1]||"0";this.decimal=BigInt(O),this.decimalLen=O.length}else this.nan=!0}return(0,pe.Z)(r,[{key:"getMark",value:function(){return this.negative?"-":""}},{key:"getIntegerStr",value:function(){return this.integer.toString()}},{key:"getDecimalStr",value:function(){return this.decimal.toString().padStart(this.decimalLen,"0")}},{key:"alignDecimal",value:function(i){var y="".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd(i,"0"));return BigInt(y)}},{key:"negate",value:function(){var i=new r(this.toString());return i.negative=!i.negative,i}},{key:"add",value:function(i){if(this.isInvalidate())return new r(i);var y=new r(i);if(y.isInvalidate())return this;var b=Math.max(this.getDecimalStr().length,y.getDecimalStr().length),O=this.alignDecimal(b),G=y.alignDecimal(b),$=(O+G).toString(),H=J($),z=H.negativeStr,B=H.trimStr,X="".concat(z).concat(B.padStart(b+1,"0"));return new r("".concat(X.slice(0,-b),".").concat(X.slice(-b)))}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return this.nan}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(i){return this.toString()===(i==null?void 0:i.toString())}},{key:"lessEquals",value:function(i){return this.add(i.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.isNaN()?NaN:Number(this.toString())}},{key:"toString",value:function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return i?this.isInvalidate()?"":J("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),r}();function ve(r){return re()?new He(r):new Ae(r)}function Oe(r,o,i){var y=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(r==="")return"";var b=J(r),O=b.negativeStr,G=b.integerStr,$=b.decimalStr,H="".concat(o).concat($),z="".concat(O).concat(G);if(i>=0){var B=Number($[i]);if(B>=5&&!y){var X=ve(r).add("".concat(O,"0.").concat("0".repeat(i)).concat(10-B));return Oe(X.toString(),o,i,y)}return i===0?z:"".concat(z).concat(o).concat($.padEnd(i,"0").slice(0,i))}return H===".0"?z:"".concat(z).concat(H)}var Be=a(31131),De=200,ut=600;function St(r){var o=r.prefixCls,i=r.upNode,y=r.downNode,b=r.upDisabled,O=r.downDisabled,G=r.onStep,$=c.useRef(),H=c.useRef();H.current=G;var z=function(we,Xe){we.preventDefault(),H.current(Xe);function Ye(){H.current(Xe),$.current=setTimeout(Ye,De)}$.current=setTimeout(Ye,ut)},B=function(){clearTimeout($.current)};if(c.useEffect(function(){return B},[]),(0,Be.Z)())return null;var X="".concat(o,"-handler"),ne=l()(X,"".concat(X,"-up"),(0,d.Z)({},"".concat(X,"-up-disabled"),b)),Pe=l()(X,"".concat(X,"-down"),(0,d.Z)({},"".concat(X,"-down-disabled"),O)),$e={unselectable:"on",role:"button",onMouseUp:B,onMouseLeave:B};return c.createElement("div",{className:"".concat(X,"-wrap")},c.createElement("span",(0,h.Z)({},$e,{onMouseDown:function(we){z(we,!0)},"aria-label":"Increase Value","aria-disabled":b,className:ne}),i||c.createElement("span",{unselectable:"on",className:"".concat(o,"-handler-up-inner")})),c.createElement("span",(0,h.Z)({},$e,{onMouseDown:function(we){z(we,!1)},"aria-label":"Decrease Value","aria-disabled":O,className:Pe}),y||c.createElement("span",{unselectable:"on",className:"".concat(o,"-handler-down-inner")})))}var st=a(80334);function ze(r,o){var i=(0,c.useRef)(null);function y(){try{var O=r.selectionStart,G=r.selectionEnd,$=r.value,H=$.substring(0,O),z=$.substring(G);i.current={start:O,end:G,value:$,beforeTxt:H,afterTxt:z}}catch(B){}}function b(){if(r&&i.current&&o)try{var O=r.value,G=i.current,$=G.beforeTxt,H=G.afterTxt,z=G.start,B=O.length;if(O.endsWith(H))B=O.length-i.current.afterTxt.length;else if(O.startsWith($))B=$.length;else{var X=$[z-1],ne=O.indexOf(X,z-1);ne!==-1&&(B=ne+1)}r.setSelectionRange(B,B)}catch(Pe){(0,st.ZP)(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(Pe.message))}}return[y,b]}var rt=a(75164),he=function(){var r=(0,c.useRef)(0),o=function(){rt.Z.cancel(r.current)};return(0,c.useEffect)(function(){return o},[]),function(i){o(),r.current=(0,rt.Z)(function(){i()})}},ke=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","controls","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep"],yt=function(o,i){return o||i.isEmpty()?i.toString():i.toNumber()},Re=function(o){var i=ve(o);return i.isInvalidate()?null:i},ct=c.forwardRef(function(r,o){var i,y=r.prefixCls,b=y===void 0?"rc-input-number":y,O=r.className,G=r.style,$=r.min,H=r.max,z=r.step,B=z===void 0?1:z,X=r.defaultValue,ne=r.value,Pe=r.disabled,$e=r.readOnly,dt=r.upHandler,we=r.downHandler,Xe=r.keyboard,Ye=r.controls,Rt=Ye===void 0?!0:Ye,Mt=r.stringMode,vt=r.parser,mt=r.formatter,xe=r.precision,lt=r.decimalSeparator,R=r.onChange,Ct=r.onInput,Zt=r.onPressEnter,Nt=r.onStep,Ot=(0,tt.Z)(r,ke),bt="".concat(b,"-input"),_e=c.useRef(null),pt=c.useState(!1),e=(0,k.Z)(pt,2),t=e[0],u=e[1],n=c.useRef(!1),s=c.useRef(!1),f=c.useRef(!1),p=c.useState(function(){return ve(ne!=null?ne:X)}),m=(0,k.Z)(p,2),v=m[0],S=m[1];function Z(E){ne===void 0&&S(E)}var T=c.useCallback(function(E,g){if(!g)return xe>=0?xe:Math.max(de(E),de(B))},[xe,B]),A=c.useCallback(function(E){var g=String(E);if(vt)return vt(g);var N=g;return lt&&(N=N.replace(lt,".")),N.replace(/[^\w.-]+/g,"")},[vt,lt]),L=c.useRef(""),W=c.useCallback(function(E,g){if(mt)return mt(E,{userTyping:g,input:String(L.current)});var N=typeof E=="number"?Q(E):E;if(!g){var C=T(N,g);if(le(N)&&(lt||C>=0)){var U=lt||".";N=Oe(N,U,C)}}return N},[mt,T,lt]),j=c.useState(function(){var E=X!=null?X:ne;return v.isInvalidate()&&["string","number"].includes((0,x.Z)(E))?Number.isNaN(E)?"":E:W(v.toString(),!1)}),ae=(0,k.Z)(j,2),M=ae[0],Y=ae[1];L.current=M;function K(E,g){Y(W(E.isInvalidate()?E.toString(!1):E.toString(!g),g))}var P=c.useMemo(function(){return Re(H)},[H,xe]),_=c.useMemo(function(){return Re($)},[$,xe]),oe=c.useMemo(function(){return!P||!v||v.isInvalidate()?!1:P.lessEquals(v)},[P,v]),q=c.useMemo(function(){return!_||!v||v.isInvalidate()?!1:v.lessEquals(_)},[_,v]),ee=ze(_e.current,t),te=(0,k.Z)(ee,2),V=te[0],se=te[1],Ee=function(g){return P&&!g.lessEquals(P)?P:_&&!_.lessEquals(g)?_:null},I=function(g){return!Ee(g)},D=function(g,N){var C=g,U=I(C)||C.isEmpty();if(!C.isEmpty()&&!N&&(C=Ee(C)||C,U=!0),!$e&&!Pe&&U){var ce=C.toString(),Se=T(ce,N);return Se>=0&&(C=ve(Oe(ce,".",Se)),I(C)||(C=ve(Oe(ce,".",Se,!0)))),C.equals(v)||(Z(C),R==null||R(C.isEmpty()?null:yt(Mt,C)),ne===void 0&&K(C,N)),C}return v},Ie=he(),Ze=function E(g){if(V(),Y(g),!s.current){var N=A(g),C=ve(N);C.isNaN()||D(C,!0)}Ct==null||Ct(g),Ie(function(){var U=g;vt||(U=g.replace(/。/g,".")),U!==g&&E(U)})},ue=function(){s.current=!0},me=function(){s.current=!1,Ze(_e.current.value)},gt=function(g){Ze(g.target.value)},Qe=function(g){var N;if(!(g&&oe||!g&&q)){n.current=!1;var C=ve(f.current?ge(B):B);g||(C=C.negate());var U=(v||ve(0)).add(C.toString()),ce=D(U,!1);Nt==null||Nt(yt(Mt,ce),{offset:f.current?ge(B):B,type:g?"up":"down"}),(N=_e.current)===null||N===void 0||N.focus()}},Ne=function(g){var N=ve(A(M)),C=N;N.isNaN()?C=v:C=D(N,g),ne!==void 0?K(v,!1):C.isNaN()||K(C,!1)},Je=function(){n.current=!0},qe=function(g){var N=g.which,C=g.shiftKey;n.current=!0,C?f.current=!0:f.current=!1,N===fe.Z.ENTER&&(s.current||(n.current=!1),Ne(!1),Zt==null||Zt(g)),Xe!==!1&&!s.current&&[fe.Z.UP,fe.Z.DOWN].includes(N)&&(Qe(fe.Z.UP===N),g.preventDefault())},Le=function(){n.current=!1,f.current=!1},it=function(){Ne(!1),u(!1),n.current=!1};return(0,We.o)(function(){v.isInvalidate()||K(v,!1)},[xe]),(0,We.o)(function(){var E=ve(ne);S(E);var g=ve(A(M));(!E.equals(g)||!n.current||mt)&&K(E,n.current)},[ne]),(0,We.o)(function(){mt&&se()},[M]),c.createElement("div",{className:l()(b,O,(i={},(0,d.Z)(i,"".concat(b,"-focused"),t),(0,d.Z)(i,"".concat(b,"-disabled"),Pe),(0,d.Z)(i,"".concat(b,"-readonly"),$e),(0,d.Z)(i,"".concat(b,"-not-a-number"),v.isNaN()),(0,d.Z)(i,"".concat(b,"-out-of-range"),!v.isInvalidate()&&!I(v)),i)),style:G,onFocus:function(){u(!0)},onBlur:it,onKeyDown:qe,onKeyUp:Le,onCompositionStart:ue,onCompositionEnd:me,onBeforeInput:Je},Rt&&c.createElement(St,{prefixCls:b,upNode:dt,downNode:we,upDisabled:oe,downDisabled:q,onStep:Qe}),c.createElement("div",{className:"".concat(bt,"-wrap")},c.createElement("input",(0,h.Z)({autoComplete:"off",role:"spinbutton","aria-valuemin":$,"aria-valuemax":H,"aria-valuenow":v.isInvalidate()?null:v.toString(),step:B},Ot,{ref:(0,F.sQ)(_e,o),className:bt,value:M,onChange:gt,disabled:Pe,readOnly:$e}))))});ct.displayName="InputNumber";var ft=ct,Fe=ft,Me=a(53124),ie=a(98866),Ge=a(97647),nt=a(65223),_t=a(4173),It=a(96159),Ue=a(9708),Ke=function(r,o){var i={};for(var y in r)Object.prototype.hasOwnProperty.call(r,y)&&o.indexOf(y)<0&&(i[y]=r[y]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var b=0,y=Object.getOwnPropertySymbols(r);b0){var io=ae[0]/2;sr.paddingLeft=io,sr.paddingRight=io}if(ae&&ae[1]>0&&!Qe){var Fn=ae[1]/2;sr.paddingTop=Fn,sr.paddingBottom=Fn}return Gn&&(sr.flex=_a(Gn),ve===!1&&!sr.minWidth&&(sr.minWidth=0)),On.createElement("div",(0,se.Z)({},qa,{style:(0,se.Z)((0,se.Z)({},sr),St),className:ms,ref:Bn}),Pr)});Ve.Z=Tu},92820:function(Xa,Ve,mt){"use strict";var It=mt(22122),se=mt(96156),k=mt(90484),Lr=mt(28481),xu=mt(94184),On=mt.n(xu),ze=mt(67294),bu=mt(53124),wu=mt(98082),_a=mt(24308),Nn=mt(93355),Tu=mt(99134),Et=function(kt,ir){var ae={};for(var ve in kt)Object.prototype.hasOwnProperty.call(kt,ve)&&ir.indexOf(ve)<0&&(ae[ve]=kt[ve]);if(kt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Qe=0,ve=Object.getOwnPropertySymbols(kt);Qe0?Xr[0]/-2:void 0,Qa=Xr[1]!=null&&Xr[1]>0?Xr[1]/-2:void 0;if(lo&&($a.marginLeft=lo,$a.marginRight=lo),oo){var Ss=(0,Lr.Z)(Xr,2);$a.rowGap=Ss[1]}else Qa&&($a.marginTop=Qa,$a.marginBottom=Qa);var Cu=(0,Lr.Z)(Xr,2),xs=Cu[0],uo=Cu[1],tt=ze.useMemo(function(){return{gutter:[xs,uo],wrap:zn,supportFlexGap:oo}},[xs,uo,zn,oo]);return ze.createElement(Tu.Z.Provider,{value:tt},ze.createElement("div",(0,It.Z)({},Pr,{className:_s,style:(0,It.Z)((0,It.Z)({},$a),no),ref:ir}),Sa))});Ve.Z=Ir},6999:function(Xa,Ve,mt){"use strict";var It=mt(38663),se=mt.n(It),k=mt(80638),Lr=mt.n(k)},71230:function(Xa,Ve,mt){"use strict";var It=mt(92820);Ve.Z=It.Z},13062:function(Xa,Ve,mt){"use strict";var It=mt(38663),se=mt.n(It),k=mt(6999)},72866:function(Xa,Ve,mt){"use strict";mt.d(Ve,{S1:function(){return dB}});var It={};mt.r(It),mt.d(It,{Arc:function(){return ed},BezierCurve:function(){return Wf},BoundingRect:function(){return ht},Circle:function(){return ua},CompoundPath:function(){return rd},Ellipse:function(){return Jp},Group:function(){return rt},Image:function(){return _e},IncrementalDisplayable:function(){return HO},Line:function(){return de},LinearGradient:function(){return gl},OrientedBoundingRect:function(){return Zf},Path:function(){return pt},Point:function(){return lt},Polygon:function(){return Ye},Polyline:function(){return Ze},RadialGradient:function(){return Rx},Rect:function(){return bt},Ring:function(){return Hf},Sector:function(){return Ue},Text:function(){return Ct},applyTransform:function(){return Gr},clipPointsByRect:function(){return Bx},clipRectByRect:function(){return KO},createIcon:function(){return ml},extendPath:function(){return YO},extendShape:function(){return WO},getShapeClass:function(){return nd},getTransform:function(){return Di},groupTransition:function(){return yl},initProps:function(){return Ht},isElementRemoved:function(){return Ao},lineLineIntersect:function(){return Vx},linePolygonIntersect:function(){return _l},makeImage:function(){return Ex},makePath:function(){return qf},mergePath:function(){return xr},registerShape:function(){return zr},removeElement:function(){return vn},removeElementWithFadeOut:function(){return tl},resizePath:function(){return Ox},setTooltipConfig:function(){return Ho},subPixelOptimize:function(){return jf},subPixelOptimizeLine:function(){return Fo},subPixelOptimizeRect:function(){return ZO},transformDirection:function(){return $f},traverseElements:function(){return yn},updateProps:function(){return Mt}});/*! ***************************************************************************** +(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[74,1322,1279,7800,6398,6794,944,8208],{80638:function(){},15746:function(Xa,Ve,mt){"use strict";var It=mt(21584);Ve.Z=It.Z},89032:function(Xa,Ve,mt){"use strict";var It=mt(38663),se=mt.n(It),k=mt(6999)},99134:function(Xa,Ve,mt){"use strict";var It=mt(67294),se=(0,It.createContext)({});Ve.Z=se},21584:function(Xa,Ve,mt){"use strict";var It=mt(96156),se=mt(22122),k=mt(90484),Lr=mt(94184),xu=mt.n(Lr),On=mt(67294),ze=mt(53124),bu=mt(99134),wu=function(Et,Bn){var $e={};for(var ge in Et)Object.prototype.hasOwnProperty.call(Et,ge)&&Bn.indexOf(ge)<0&&($e[ge]=Et[ge]);if(Et!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ir=0,ge=Object.getOwnPropertySymbols(Et);Ir0){var io=ae[0]/2;sr.paddingLeft=io,sr.paddingRight=io}if(ae&&ae[1]>0&&!Qe){var Fn=ae[1]/2;sr.paddingTop=Fn,sr.paddingBottom=Fn}return Gn&&(sr.flex=_a(Gn),ve===!1&&!sr.minWidth&&(sr.minWidth=0)),On.createElement("div",(0,se.Z)({},qa,{style:(0,se.Z)((0,se.Z)({},sr),St),className:ms,ref:Bn}),Pr)});Ve.Z=Tu},92820:function(Xa,Ve,mt){"use strict";var It=mt(22122),se=mt(96156),k=mt(90484),Lr=mt(28481),xu=mt(94184),On=mt.n(xu),ze=mt(67294),bu=mt(53124),wu=mt(98082),_a=mt(24308),Nn=mt(93355),Tu=mt(99134),Et=function(kt,ir){var ae={};for(var ve in kt)Object.prototype.hasOwnProperty.call(kt,ve)&&ir.indexOf(ve)<0&&(ae[ve]=kt[ve]);if(kt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Qe=0,ve=Object.getOwnPropertySymbols(kt);Qe0?Xr[0]/-2:void 0,Qa=Xr[1]!=null&&Xr[1]>0?Xr[1]/-2:void 0;if(lo&&($a.marginLeft=lo,$a.marginRight=lo),oo){var Ss=(0,Lr.Z)(Xr,2);$a.rowGap=Ss[1]}else Qa&&($a.marginTop=Qa,$a.marginBottom=Qa);var Cu=(0,Lr.Z)(Xr,2),xs=Cu[0],uo=Cu[1],tt=ze.useMemo(function(){return{gutter:[xs,uo],wrap:zn,supportFlexGap:oo}},[xs,uo,zn,oo]);return ze.createElement(Tu.Z.Provider,{value:tt},ze.createElement("div",(0,It.Z)({},Pr,{className:_s,style:(0,It.Z)((0,It.Z)({},$a),no),ref:ir}),Sa))});Ve.Z=Ir},6999:function(Xa,Ve,mt){"use strict";var It=mt(38663),se=mt.n(It),k=mt(80638),Lr=mt.n(k)},71230:function(Xa,Ve,mt){"use strict";var It=mt(92820);Ve.Z=It.Z},13062:function(Xa,Ve,mt){"use strict";var It=mt(38663),se=mt.n(It),k=mt(6999)},72866:function(Xa,Ve,mt){"use strict";mt.d(Ve,{S1:function(){return dB}});var It={};mt.r(It),mt.d(It,{Arc:function(){return ed},BezierCurve:function(){return Wf},BoundingRect:function(){return ht},Circle:function(){return ua},CompoundPath:function(){return rd},Ellipse:function(){return Jp},Group:function(){return rt},Image:function(){return _e},IncrementalDisplayable:function(){return HO},Line:function(){return de},LinearGradient:function(){return gl},OrientedBoundingRect:function(){return Zf},Path:function(){return pt},Point:function(){return lt},Polygon:function(){return Ye},Polyline:function(){return Ze},RadialGradient:function(){return Rx},Rect:function(){return bt},Ring:function(){return Hf},Sector:function(){return Ue},Text:function(){return Ct},applyTransform:function(){return Gr},clipPointsByRect:function(){return Bx},clipRectByRect:function(){return KO},createIcon:function(){return ml},extendPath:function(){return YO},extendShape:function(){return WO},getShapeClass:function(){return nd},getTransform:function(){return Di},groupTransition:function(){return yl},initProps:function(){return Ht},isElementRemoved:function(){return Ao},lineLineIntersect:function(){return Vx},linePolygonIntersect:function(){return _l},makeImage:function(){return Ex},makePath:function(){return qf},mergePath:function(){return xr},registerShape:function(){return zr},removeElement:function(){return vn},removeElementWithFadeOut:function(){return tl},resizePath:function(){return Ox},setTooltipConfig:function(){return Ho},subPixelOptimize:function(){return jf},subPixelOptimizeLine:function(){return Fo},subPixelOptimizeRect:function(){return ZO},transformDirection:function(){return $f},traverseElements:function(){return yn},updateProps:function(){return Mt}});/*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any diff --git a/dist/7118.e3693903.chunk.css b/dist/74.e3693903.chunk.css similarity index 100% rename from dist/7118.e3693903.chunk.css rename to dist/74.e3693903.chunk.css diff --git a/dist/7679.55f904c1.async.js b/dist/7679.55f904c1.async.js new file mode 100644 index 0000000..a80092e --- /dev/null +++ b/dist/7679.55f904c1.async.js @@ -0,0 +1,70 @@ +(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[7679],{64183:function(kt,ut,F){"use strict";var B=F(67294),at=F(88126),bt=F(29640),wt=F(79360),yt=F(24770),vt=F(80803),rt=function(g,f){var tt={};for(var T in g)Object.prototype.hasOwnProperty.call(g,T)&&f.indexOf(T)<0&&(tt[T]=g[T]);if(g!=null&&typeof Object.getOwnPropertySymbols=="function")for(var N=0,T=Object.getOwnPropertySymbols(g);N0&&Z[Z.length-1])&&(ct[0]===6||ct[0]===2)){G=0;continue}if(ct[0]===3&&(!Z||ct[1]>Z[0]&&ct[1]=18&&(T=$.createRoot)}catch(W){}function Q(W){var H=$.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;H&&typeof H=="object"&&(H.usingClientEntryPoint=W)}var I="__rc_react_root__";function U(W,H){Q(!0);var G=H[I]||T(H);Q(!1),G.render(W),H[I]=G}function st(W,H){f(W,H)}function gt(W,H){}function Ct(W,H){if(T){U(W,H);return}st(W,H)}function it(W){return vt(this,void 0,void 0,function(){return rt(this,function(H){return[2,Promise.resolve().then(function(){var G;(G=W[I])===null||G===void 0||G.unmount(),delete W[I]})]})})}function Et(W){tt(W)}function Vt(W){}function jt(W){return vt(this,void 0,void 0,function(){return rt(this,function(H){return T!==void 0?[2,it(W)]:(Et(W),[2])})})}var Yt=new Map,se=function(W,H,G){var J=document.createElement("div");return H==="tooltip"&&(J.setAttribute("data-uuid",G),Yt.has(G)?J=Yt.get(G):Yt.set(G,J),J.className="g2-tooltip"),Ct(W,J),J},Zt=se,L=function(W,H){var G={}.toString;return G.call(W)==="[object ".concat(H,"]")},k=function(W){if(!W)return W;var H={};for(var G in W)H[G]=W[G];return H},et=function(W){return Object.prototype.toString.call(W).slice(8,-1)},Y=function(W){if(!W||typeof W!="object")return W;var H;return Array.isArray(W)?H=W.map(function(G){return Y(G)}):(H={},Object.keys(W).forEach(function(G){return H[G]=Y(W[G])})),H},R=function(W,H){for(var G=W,J=0;J=0},e.prototype.getAdjustRange=function(r,t,i){var n=this.yField,a=i.indexOf(t),o=i.length,s,l;return!n&&this.isAdjust("y")?(s=0,l=1):o>1?(s=i[a===0?0:a-1],l=i[a===o-1?o-1:a+1],a!==0?s+=(t-s)/2:s-=(l-t)/2,a!==o-1?l-=(l-t)/2:l+=(t-i[o-2])/2):(s=t===0?0:t-.5,l=t===0?1:t+.5),{pre:s,next:l}},e.prototype.adjustData=function(r,t){var i=this,n=this.getDimValues(t);f.each(r,function(a,o){f.each(n,function(s,l){i.adjustDim(l,s,a,o)})})},e.prototype.groupData=function(r,t){return f.each(r,function(i){i[t]===void 0&&(i[t]=W)}),f.groupBy(r,t)},e.prototype.adjustDim=function(r,t,i,n){},e.prototype.getDimValues=function(r){var t=this,i=t.xField,n=t.yField,a=f.assign({},this.dimValuesMap),o=[];if(i&&this.isAdjust("x")&&o.push(i),n&&this.isAdjust("y")&&o.push(n),o.forEach(function(l){a&&a[l]||(a[l]=f.valuesOfKey(r,l).sort(function(u,c){return u-c}))}),!n&&this.isAdjust("y")){var s="y";a[s]=[W,1]}return a},e}(),Z=ot,Ot={},It=function(e){return Ot[e.toLowerCase()]},Tt=function(e,r){if(It(e))throw new Error("Adjust type '"+e+"' existed.");Ot[e.toLowerCase()]=r};/*! ***************************************************************************** +Copyright (c) Microsoft Corporation. + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH +REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY +AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, +INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM +LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR +OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +PERFORMANCE OF THIS SOFTWARE. +***************************************************************************** */var ct=function(r,t){return ct=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var a in n)n.hasOwnProperty(a)&&(i[a]=n[a])},ct(r,t)};function Ft(e,r){ct(e,r);function t(){this.constructor=e}e.prototype=r===null?Object.create(r):(t.prototype=r.prototype,new t)}var xt=function(){return xt=Object.assign||function(t){for(var i,n=1,a=arguments.length;n=0;s--)(o=e[s])&&(a=(n<3?o(a):n>3?o(r,t,a):o(r,t))||a);return n>3&&a&&Object.defineProperty(r,t,a),a}function te(e,r){return function(t,i){r(t,i,e)}}function ae(e,r){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,r)}function we(e,r,t,i){function n(a){return a instanceof t?a:new t(function(o){o(a)})}return new(t||(t=Promise))(function(a,o){function s(c){try{u(i.next(c))}catch(h){o(h)}}function l(c){try{u(i.throw(c))}catch(h){o(h)}}function u(c){c.done?a(c.value):n(c.value).then(s,l)}u((i=i.apply(e,r||[])).next())})}function re(e,r){var t={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},i,n,a,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(u){return function(c){return l([u,c])}}function l(u){if(i)throw new TypeError("Generator is already executing.");for(;t;)try{if(i=1,n&&(a=u[0]&2?n.return:u[0]?n.throw||((a=n.return)&&a.call(n),0):n.next)&&!(a=a.call(n,u[1])).done)return a;switch(n=0,a&&(u=[u[0]&2,a.value]),u[0]){case 0:case 1:a=u;break;case 4:return t.label++,{value:u[1],done:!1};case 5:t.label++,n=u[1],u=[0];continue;case 7:u=t.ops.pop(),t.trys.pop();continue;default:if(a=t.trys,!(a=a.length>0&&a[a.length-1])&&(u[0]===6||u[0]===2)){t=0;continue}if(u[0]===3&&(!a||u[1]>a[0]&&u[1]=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(r?"Object is not iterable.":"Symbol.iterator is not defined.")}function ce(e,r){var t=typeof Symbol=="function"&&e[Symbol.iterator];if(!t)return e;var i=t.call(e),n,a=[],o;try{for(;(r===void 0||r-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(s){o={error:s}}finally{try{n&&!n.done&&(t=i.return)&&t.call(i)}finally{if(o)throw o.error}}return a}function ve(){for(var e=[],r=0;r1||s(v,d)})})}function s(v,d){try{l(i[v](d))}catch(p){h(a[0][3],p)}}function l(v){v.value instanceof Te?Promise.resolve(v.value.v).then(u,c):h(a[0][2],v)}function u(v){s("next",v)}function c(v){s("throw",v)}function h(v,d){v(d),a.shift(),a.length&&s(a[0][0],a[0][1])}}function oi(e){var r,t;return r={},i("next"),i("throw",function(n){throw n}),i("return"),r[Symbol.iterator]=function(){return this},r;function i(n,a){r[n]=e[n]?function(o){return(t=!t)?{value:Te(e[n](o)),done:n==="return"}:a?a(o):o}:a}}function si(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=e[Symbol.asyncIterator],t;return r?r.call(e):(e=typeof _e=="function"?_e(e):e[Symbol.iterator](),t={},i("next"),i("throw"),i("return"),t[Symbol.asyncIterator]=function(){return this},t);function i(a){t[a]=e[a]&&function(o){return new Promise(function(s,l){o=e[a](o),n(s,l,o.done,o.value)})}}function n(a,o,s,l){Promise.resolve(l).then(function(u){a({value:u,done:s})},o)}}function Ja(e,r){return Object.defineProperty?Object.defineProperty(e,"raw",{value:r}):e.raw=r,e}function ki(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var t in e)Object.hasOwnProperty.call(e,t)&&(r[t]=e[t]);return r.default=e,r}function Di(e){return e&&e.__esModule?e:{default:e}}function to(e,r){if(!r.has(e))throw new TypeError("attempted to get private field on non-instance");return r.get(e)}function eI(e,r,t){if(!r.has(e))throw new TypeError("attempted to set private field on non-instance");return r.set(e,t),t}var Zd=function(e){Ft(r,e);function r(t){var i=e.call(this,t)||this;i.cacheMap={},i.adjustDataArray=[],i.mergeData=[];var n=t.marginRatio,a=n===void 0?H:n,o=t.dodgeRatio,s=o===void 0?G:o,l=t.dodgeBy,u=t.intervalPadding,c=t.dodgePadding,h=t.xDimensionLength,v=t.groupNum,d=t.defaultSize,p=t.maxColumnWidth,y=t.minColumnWidth,x=t.columnWidthRatio,m=t.customOffset;return i.marginRatio=a,i.dodgeRatio=s,i.dodgeBy=l,i.intervalPadding=u,i.dodgePadding=c,i.xDimensionLegenth=h,i.groupNum=v,i.defaultSize=d,i.maxColumnWidth=p,i.minColumnWidth=y,i.columnWidthRatio=x,i.customOffset=m,i}return r.prototype.process=function(t){var i=f.clone(t),n=f.flatten(i),a=this.dodgeBy,o=a?f.group(n,a):i;return this.cacheMap={},this.adjustDataArray=o,this.mergeData=n,this.adjustData(o,n),this.adjustDataArray=[],this.mergeData=[],i},r.prototype.adjustDim=function(t,i,n,a){var o=this,s=this.customOffset,l=this.getDistribution(t),u=this.groupData(n,t);return f.each(u,function(c,h){var v;i.length===1?v={pre:i[0]-1,next:i[0]+1}:v=o.getAdjustRange(t,parseFloat(h),i),f.each(c,function(d){var p=d[t],y=l[p],x=y.indexOf(a);if(f.isNil(s))d[t]=o.getDodgeOffset(v,x,y.length);else{var m=v.pre,_=v.next;d[t]=f.isFunction(s)?s(d,v):(m+_)/2+s}})}),[]},r.prototype.getDodgeOffset=function(t,i,n){var a=this,o=a.dodgeRatio,s=a.marginRatio,l=a.intervalPadding,u=a.dodgePadding,c=t.pre,h=t.next,v=h-c,d;if(!f.isNil(l)&&f.isNil(u)&&l>=0){var p=this.getIntervalOnlyOffset(n,i);d=c+p}else if(!f.isNil(u)&&f.isNil(l)&&u>=0){var p=this.getDodgeOnlyOffset(n,i);d=c+p}else if(!f.isNil(l)&&!f.isNil(u)&&l>=0&&u>=0){var p=this.getIntervalAndDodgeOffset(n,i);d=c+p}else{var y=v*o/n,x=s*y,p=1/2*(v-n*y-(n-1)*x)+((i+1)*y+i*x)-1/2*y-1/2*v;d=(c+h)/2+p}return d},r.prototype.getIntervalOnlyOffset=function(t,i){var n=this,a=n.defaultSize,o=n.intervalPadding,s=n.xDimensionLegenth,l=n.groupNum,u=n.dodgeRatio,c=n.maxColumnWidth,h=n.minColumnWidth,v=n.columnWidthRatio,d=o/s,p=(1-(l-1)*d)/l*u/(t-1),y=((1-d*(l-1))/l-p*(t-1))/t;if(y=f.isNil(v)?y:1/l/t*v,!f.isNil(c)){var x=c/s;y=Math.min(y,x)}if(!f.isNil(h)){var m=h/s;y=Math.max(y,m)}y=a?a/s:y,p=((1-(l-1)*d)/l-t*y)/(t-1);var _=((1/2+i)*y+i*p+1/2*d)*l-d/2;return _},r.prototype.getDodgeOnlyOffset=function(t,i){var n=this,a=n.defaultSize,o=n.dodgePadding,s=n.xDimensionLegenth,l=n.groupNum,u=n.marginRatio,c=n.maxColumnWidth,h=n.minColumnWidth,v=n.columnWidthRatio,d=o/s,p=1*u/(l-1),y=((1-p*(l-1))/l-d*(t-1))/t;if(y=v?1/l/t*v:y,!f.isNil(c)){var x=c/s;y=Math.min(y,x)}if(!f.isNil(h)){var m=h/s;y=Math.max(y,m)}y=a?a/s:y,p=(1-(y*t+d*(t-1))*l)/(l-1);var _=((1/2+i)*y+i*d+1/2*p)*l-p/2;return _},r.prototype.getIntervalAndDodgeOffset=function(t,i){var n=this,a=n.intervalPadding,o=n.dodgePadding,s=n.xDimensionLegenth,l=n.groupNum,u=a/s,c=o/s,h=((1-u*(l-1))/l-c*(t-1))/t,v=((1/2+i)*h+i*c+1/2*u)*l-u/2;return v},r.prototype.getDistribution=function(t){var i=this.adjustDataArray,n=this.cacheMap,a=n[t];return a||(a={},f.each(i,function(o,s){var l=f.valuesOfKey(o,t);l.length||l.push(0),f.each(l,function(u){a[u]||(a[u]=[]),a[u].push(s)})}),n[t]=a),a},r}(Z),qd=Zd;function jd(e,r){return(r-e)*Math.random()+e}var Kd=function(e){Ft(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.process=function(t){var i=f.clone(t),n=f.flatten(i);return this.adjustData(i,n),i},r.prototype.adjustDim=function(t,i,n){var a=this,o=this.groupData(n,t);return f.each(o,function(s,l){return a.adjustGroup(s,t,parseFloat(l),i)})},r.prototype.getAdjustOffset=function(t){var i=t.pre,n=t.next,a=(n-i)*J;return jd(i+a,n-a)},r.prototype.adjustGroup=function(t,i,n,a){var o=this,s=this.getAdjustRange(i,n,a);return f.each(t,function(l){l[i]=o.getAdjustOffset(s)}),t},r}(Z),$d=Kd,eo=f.Cache,Qd=function(e){Ft(r,e);function r(t){var i=e.call(this,t)||this,n=t.adjustNames,a=n===void 0?["y"]:n,o=t.height,s=o===void 0?NaN:o,l=t.size,u=l===void 0?10:l,c=t.reverseOrder,h=c===void 0?!1:c;return i.adjustNames=a,i.height=s,i.size=u,i.reverseOrder=h,i}return r.prototype.process=function(t){var i=this,n=i.yField,a=i.reverseOrder,o=n?this.processStack(t):this.processOneDimStack(t);return a?this.reverse(o):o},r.prototype.reverse=function(t){return t.slice(0).reverse()},r.prototype.processStack=function(t){var i=this,n=i.xField,a=i.yField,o=i.reverseOrder,s=o?this.reverse(t):t,l=new eo,u=new eo;return s.map(function(c){return c.map(function(h){var v,d=f.get(h,n,0),p=f.get(h,[a]),y=d.toString();if(p=f.isArray(p)?p[1]:p,!f.isNil(p)){var x=p>=0?l:u;x.has(y)||x.set(y,0);var m=x.get(y),_=p+m;return x.set(y,_),xt(xt({},h),(v={},v[a]=[m,_],v))}return h})})},r.prototype.processOneDimStack=function(t){var i=this,n=this,a=n.xField,o=n.height,s=n.reverseOrder,l="y",u=s?this.reverse(t):t,c=new eo;return u.map(function(h){return h.map(function(v){var d,p=i.size,y=v[a],x=p*2/o;c.has(y)||c.set(y,x/2);var m=c.get(y);return c.set(y,m+x),xt(xt({},v),(d={},d[l]=m,d))})})},r}(Z),Jd=Qd,tg=function(e){Ft(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.process=function(t){var i=f.flatten(t),n=this,a=n.xField,o=n.yField,s=this.getXValuesMaxMap(i),l=Math.max.apply(Math,Object.keys(s).map(function(u){return s[u]}));return f.map(t,function(u){return f.map(u,function(c){var h,v,d=c[o],p=c[a];if(f.isArray(d)){var y=(l-s[p])/2;return xt(xt({},c),(h={},h[o]=f.map(d,function(m){return y+m}),h))}var x=(l-d)/2;return xt(xt({},c),(v={},v[o]=[x,d+x],v))})})},r.prototype.getXValuesMaxMap=function(t){var i=this,n=this,a=n.xField,o=n.yField,s=f.groupBy(t,function(l){return l[a]});return f.mapValues(s,function(l){return i.getDimMaxValue(l,o)})},r.prototype.getDimMaxValue=function(t,i){var n=f.map(t,function(o){return f.get(o,i,[])}),a=f.flatten(n);return Math.max.apply(Math,a)},r}(Z),eg=tg;Tt("Dodge",qd),Tt("Jitter",$d),Tt("Stack",Jd),Tt("Symmetric",eg);var Cl=function(e,r){return(0,f.isString)(r)?r:e.invert(e.scale(r))},rg=function(){function e(r){this.names=[],this.scales=[],this.linear=!1,this.values=[],this.callback=function(){return[]},this._parseCfg(r)}return e.prototype.mapping=function(){for(var r=this,t=[],i=0;i1?1:Number(r),i=e.length-1,n=Math.floor(i*t),a=i*t-n,o=e[n],s=n===i?o:e[n+1];return Ml([ro(o,s,a,0),ro(o,s,a,1),ro(o,s,a,2)])},On,Fl=function(e){if(e[0]==="#"&&e.length===7)return e;On||(On=lg()),On.style.color=e;var r=document.defaultView.getComputedStyle(On,"").getPropertyValue("color"),t=ig.exec(r),i=t[1].split(/\s*,\s*/).map(function(n){return Number(n)});return r=Ml(i),r},cg=function(e){var r=(0,f.isString)(e)?e.split("-"):e,t=(0,f.map)(r,function(i){return Al(i.indexOf("#")===-1?Fl(i):i)});return function(i){return ug(t,i)}},hg=function(e){if(sg(e)){var r,t=void 0;if(e[0]==="l"){var i=ng.exec(e),n=+i[1]+90;t=i[2],r="linear-gradient("+n+"deg, "}else if(e[0]==="r"){r="radial-gradient(";var i=ag.exec(e);t=i[4]}var a=t.match(og);return(0,f.each)(a,function(o,s){var l=o.split(":");r+=l[1]+" "+l[0]*100+"%",s!==a.length-1&&(r+=", ")}),r+=")",r}return e},xr={rgb2arr:Al,gradient:cg,toRGB:(0,f.memoize)(Fl),toCSSGradient:hg},fg=function(e){(0,g.__extends)(r,e);function r(t){var i=e.call(this,t)||this;return i.type="color",i.names=["color"],(0,f.isString)(i.values)&&(i.linear=!0),i.gradient=xr.gradient(i.values),i}return r.prototype.getLinearValue=function(t){return this.gradient(t)},r}(Bi),vg=fg,dg=function(e){(0,g.__extends)(r,e);function r(t){var i=e.call(this,t)||this;return i.type="opacity",i.names=["opacity"],i}return r}(Bi),gg=dg,pg=function(e){(0,g.__extends)(r,e);function r(t){var i=e.call(this,t)||this;return i.names=["x","y"],i.type="position",i}return r.prototype.mapping=function(t,i){var n=this.scales,a=n[0],o=n[1];return(0,f.isNil)(t)||(0,f.isNil)(i)?[]:[(0,f.isArray)(t)?t.map(function(s){return a.scale(s)}):a.scale(t),(0,f.isArray)(i)?i.map(function(s){return o.scale(s)}):o.scale(i)]},r}(Bi),yg=pg,mg=function(e){(0,g.__extends)(r,e);function r(t){var i=e.call(this,t)||this;return i.type="shape",i.names=["shape"],i}return r.prototype.getLinearValue=function(t){var i=Math.round((this.values.length-1)*t);return this.values[i]},r}(Bi),xg=mg,_g=function(e){(0,g.__extends)(r,e);function r(t){var i=e.call(this,t)||this;return i.type="size",i.names=["size"],i}return r}(Bi),wg=_g,Ri=F(86429),El={},Tl=function(e){return El[e.toLowerCase()]},Ni=function(e,r){if(Tl(e))throw new Error("Attribute type '".concat(e,"' existed."));El[e.toLowerCase()]=r};Ni("Color",vg),Ni("Opacity",gg),Ni("Position",yg),Ni("Shape",xg),Ni("Size",wg);var Pn=F(77160),Sg=F(35600),ie=F(31506),bg=function(){function e(r){this.type="coordinate",this.isRect=!1,this.isHelix=!1,this.isPolar=!1,this.isReflectX=!1,this.isReflectY=!1;var t=r.start,i=r.end,n=r.matrix,a=n===void 0?[1,0,0,0,1,0,0,0,1]:n,o=r.isTransposed,s=o===void 0?!1:o;this.start=t,this.end=i,this.matrix=a,this.originalMatrix=(0,g.__spreadArray)([],a),this.isTransposed=s}return e.prototype.initial=function(){this.center={x:(this.start.x+this.end.x)/2,y:(this.start.y+this.end.y)/2},this.width=Math.abs(this.end.x-this.start.x),this.height=Math.abs(this.end.y-this.start.y)},e.prototype.update=function(r){(0,f.assign)(this,r),this.initial()},e.prototype.convertDim=function(r,t){var i,n=this[t],a=n.start,o=n.end;return this.isReflect(t)&&(i=[o,a],a=i[0],o=i[1]),a+r*(o-a)},e.prototype.invertDim=function(r,t){var i,n=this[t],a=n.start,o=n.end;return this.isReflect(t)&&(i=[o,a],a=i[0],o=i[1]),(r-a)/(o-a)},e.prototype.applyMatrix=function(r,t,i){i===void 0&&(i=0);var n=this.matrix,a=[r,t,i];return Pn.transformMat3(a,a,n),a},e.prototype.invertMatrix=function(r,t,i){i===void 0&&(i=0);var n=this.matrix,a=Sg.invert([0,0,0,0,0,0,0,0,0],n),o=[r,t,i];return a&&Pn.transformMat3(o,o,a),o},e.prototype.convert=function(r){var t=this.convertPoint(r),i=t.x,n=t.y,a=this.applyMatrix(i,n,1);return{x:a[0],y:a[1]}},e.prototype.invert=function(r){var t=this.invertMatrix(r.x,r.y,1);return this.invertPoint({x:t[0],y:t[1]})},e.prototype.rotate=function(r){var t=this.matrix,i=this.center;return ie.m$(t,t,[-i.x,-i.y]),ie.zu(t,t,r),ie.m$(t,t,[i.x,i.y]),this},e.prototype.reflect=function(r){return r==="x"?this.isReflectX=!this.isReflectX:this.isReflectY=!this.isReflectY,this},e.prototype.scale=function(r,t){var i=this.matrix,n=this.center;return ie.m$(i,i,[-n.x,-n.y]),ie.lh(i,i,[r,t]),ie.m$(i,i,[n.x,n.y]),this},e.prototype.translate=function(r,t){var i=this.matrix;return ie.m$(i,i,[r,t]),this},e.prototype.transpose=function(){return this.isTransposed=!this.isTransposed,this},e.prototype.getCenter=function(){return this.center},e.prototype.getWidth=function(){return this.width},e.prototype.getHeight=function(){return this.height},e.prototype.getRadius=function(){return this.radius},e.prototype.isReflect=function(r){return r==="x"?this.isReflectX:this.isReflectY},e.prototype.resetMatrix=function(r){this.matrix=r||(0,g.__spreadArray)([],this.originalMatrix)},e}(),no=bg,Cg=function(e){(0,g.__extends)(r,e);function r(t){var i=e.call(this,t)||this;return i.isRect=!0,i.type="cartesian",i.initial(),i}return r.prototype.initial=function(){e.prototype.initial.call(this);var t=this.start,i=this.end;this.x={start:t.x,end:i.x},this.y={start:t.y,end:i.y}},r.prototype.convertPoint=function(t){var i,n=t.x,a=t.y;return this.isTransposed&&(i=[a,n],n=i[0],a=i[1]),{x:this.convertDim(n,"x"),y:this.convertDim(a,"y")}},r.prototype.invertPoint=function(t){var i,n=this.invertDim(t.x,"x"),a=this.invertDim(t.y,"y");return this.isTransposed&&(i=[a,n],n=i[0],a=i[1]),{x:n,y:a}},r}(no),Ll=Cg,ht=F(31437),Mg=function(e){(0,g.__extends)(r,e);function r(t){var i=e.call(this,t)||this;i.isHelix=!0,i.type="helix";var n=t.startAngle,a=n===void 0?1.25*Math.PI:n,o=t.endAngle,s=o===void 0?7.25*Math.PI:o,l=t.innerRadius,u=l===void 0?0:l,c=t.radius;return i.startAngle=a,i.endAngle=s,i.innerRadius=u,i.radius=c,i.initial(),i}return r.prototype.initial=function(){e.prototype.initial.call(this);var t=(this.endAngle-this.startAngle)/(2*Math.PI)+1,i=Math.min(this.width,this.height)/2;this.radius&&this.radius>=0&&this.radius<=1&&(i=i*this.radius),this.d=Math.floor(i*(1-this.innerRadius)/t),this.a=this.d/(Math.PI*2),this.x={start:this.startAngle,end:this.endAngle},this.y={start:this.innerRadius*i,end:this.innerRadius*i+this.d*.99}},r.prototype.convertPoint=function(t){var i,n=t.x,a=t.y;this.isTransposed&&(i=[a,n],n=i[0],a=i[1]);var o=this.convertDim(n,"x"),s=this.a*o,l=this.convertDim(a,"y");return{x:this.center.x+Math.cos(o)*(s+l),y:this.center.y+Math.sin(o)*(s+l)}},r.prototype.invertPoint=function(t){var i,n=this.d+this.y.start,a=ht.subtract([0,0],[t.x,t.y],[this.center.x,this.center.y]),o=ie.Dg(a,[1,0],!0),s=o*this.a;ht.length(a)this.width/i?(s=this.width/i,this.circleCenter={x:this.center.x-(.5-a)*this.width,y:this.center.y-(.5-o)*s*n}):(s=this.height/n,this.circleCenter={x:this.center.x-(.5-a)*s*i,y:this.center.y-(.5-o)*this.height}),this.polarRadius=this.radius,this.radius?this.radius>0&&this.radius<=1?this.polarRadius=s*this.radius:(this.radius<=0||this.radius>s)&&(this.polarRadius=s):this.polarRadius=s,this.x={start:this.startAngle,end:this.endAngle},this.y={start:this.innerRadius*this.polarRadius,end:this.polarRadius}},r.prototype.getRadius=function(){return this.polarRadius},r.prototype.convertPoint=function(t){var i,n=this.getCenter(),a=t.x,o=t.y;return this.isTransposed&&(i=[o,a],a=i[0],o=i[1]),a=this.convertDim(a,"x"),o=this.convertDim(o,"y"),{x:n.x+Math.cos(a)*o,y:n.y+Math.sin(a)*o}},r.prototype.invertPoint=function(t){var i,n=this.getCenter(),a=[t.x-n.x,t.y-n.y],o=this,s=o.startAngle,l=o.endAngle;this.isReflect("x")&&(i=[l,s],s=i[0],l=i[1]);var u=[1,0,0,0,1,0,0,0,1];ie.zu(u,u,s);var c=[1,0,0];Pn.transformMat3(c,c,u);var h=[c[0],c[1]],v=ie.Dg(h,a,l0?p:-p;var y=this.invertDim(d,"y"),x={x:0,y:0};return x.x=this.isTransposed?y:p,x.y=this.isTransposed?p:y,x},r.prototype.getCenter=function(){return this.circleCenter},r.prototype.getOneBox=function(){var t=this.startAngle,i=this.endAngle;if(Math.abs(i-t)>=Math.PI*2)return{minX:-1,maxX:1,minY:-1,maxY:1};for(var n=[0,Math.cos(t),Math.cos(i)],a=[0,Math.sin(t),Math.sin(i)],o=Math.min(t,i);o=0;i--)e.removeChild(r[i])}function Og(e,r){return!!e.className.match(new RegExp("(\\s|^)"+r+"(\\s|$)"))}function zi(e){var r=e.start,t=e.end,i=Math.min(r.x,t.x),n=Math.min(r.y,t.y),a=Math.max(r.x,t.x),o=Math.max(r.y,t.y);return{x:i,y:n,minX:i,minY:n,maxX:a,maxY:o,width:a-i,height:o-n}}function Pg(e){var r=e.map(function(s){return s.x}),t=e.map(function(s){return s.y}),i=Math.min.apply(Math,r),n=Math.min.apply(Math,t),a=Math.max.apply(Math,r),o=Math.max.apply(Math,t);return{x:i,y:n,minX:i,minY:n,maxX:a,maxY:o,width:a-i,height:o-n}}function Vi(e,r,t,i){var n=e+t,a=r+i;return{x:e,y:r,width:t,height:i,minX:e,minY:r,maxX:isNaN(n)?0:n,maxY:isNaN(a)?0:a}}function Nr(e,r,t){return(1-t)*e+r*t}function li(e,r,t){return{x:e.x+Math.cos(t)*r,y:e.y+Math.sin(t)*r}}function kg(e,r){var t=r.x-e.x,i=r.y-e.y;return Math.sqrt(t*t+i*i)}var rI=function(e){return new Promise(function(r){setTimeout(r,e)})},Rn=function(e,r,t){return t===void 0&&(t=Math.pow(Number.EPSILON,.5)),[e,r].includes(Infinity)?Math.abs(e)===Math.abs(r):Math.abs(e-r)0?(0,f.each)(l,function(u){if(u.get("visible")){if(u.isGroup()&&u.get("children").length===0)return!0;var c=Dl(u),h=u.applyToMatrix([c.minX,c.minY,1]),v=u.applyToMatrix([c.minX,c.maxY,1]),d=u.applyToMatrix([c.maxX,c.minY,1]),p=u.applyToMatrix([c.maxX,c.maxY,1]),y=Math.min(h[0],v[0],d[0],p[0]),x=Math.max(h[0],v[0],d[0],p[0]),m=Math.min(h[1],v[1],d[1],p[1]),_=Math.max(h[1],v[1],d[1],p[1]);ya&&(a=x),ms&&(s=_)}}):(n=0,a=0,o=0,s=0),i=Vi(n,o,a-n,s-o)}return t?Dg(i,t):i}function Bg(e,r){if(!(!e.getClip()&&!r.getClip())){var t=r.getClip();if(!t){e.setClip(null);return}var i={type:t.get("type"),attrs:t.attr()};e.setClip(i)}}function Le(e){return e+"px"}function Bl(e,r,t,i){var n=kg(e,r),a=i/n,o=0;return t==="start"?o=0-a:t==="end"&&(o=1+a),{x:Nr(e.x,r.x,o),y:Nr(e.y,r.y,o)}}var Rg={none:[],point:["x","y"],region:["start","end"],points:["points"],circle:["center","radius","startAngle","endAngle"]},Ng=function(e){(0,g.__extends)(r,e);function r(t){var i=e.call(this,t)||this;return i.initCfg(),i}return r.prototype.getDefaultCfg=function(){return{id:"",name:"",type:"",locationType:"none",offsetX:0,offsetY:0,animate:!1,capture:!0,updateAutoRender:!1,animateOption:{appear:null,update:{duration:400,easing:"easeQuadInOut"},enter:{duration:400,easing:"easeQuadInOut"},leave:{duration:350,easing:"easeQuadIn"}},events:null,defaultCfg:{},visible:!0}},r.prototype.clear=function(){},r.prototype.update=function(t){var i=this,n=this.get("defaultCfg")||{};(0,f.each)(t,function(a,o){var s=i.get(o),l=a;s!==a&&((0,f.isObject)(a)&&n[o]&&(l=(0,f.deepMix)({},n[o],a)),i.set(o,l))}),this.updateInner(t),this.afterUpdate(t)},r.prototype.updateInner=function(t){},r.prototype.afterUpdate=function(t){(0,f.hasKey)(t,"visible")&&(t.visible?this.show():this.hide()),(0,f.hasKey)(t,"capture")&&this.setCapture(t.capture)},r.prototype.getLayoutBBox=function(){return this.getBBox()},r.prototype.getLocationType=function(){return this.get("locationType")},r.prototype.getOffset=function(){return{offsetX:this.get("offsetX"),offsetY:this.get("offsetY")}},r.prototype.setOffset=function(t,i){this.update({offsetX:t,offsetY:i})},r.prototype.setLocation=function(t){var i=(0,g.__assign)({},t);this.update(i)},r.prototype.getLocation=function(){var t=this,i={},n=this.get("locationType"),a=Rg[n];return(0,f.each)(a,function(o){i[o]=t.get(o)}),i},r.prototype.isList=function(){return!1},r.prototype.isSlider=function(){return!1},r.prototype.init=function(){},r.prototype.initCfg=function(){var t=this,i=this.get("defaultCfg");(0,f.each)(i,function(n,a){var o=t.get(a);if((0,f.isObject)(o)){var s=(0,f.deepMix)({},n,o);t.set(a,s)}})},r}(Mt.Base),Rl=Ng,zr="update_status",zg=["visible","tip","delegateObject"],Vg=["container","group","shapesMap","isRegister","isUpdating","destroyed"],Gg=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,g.__assign)((0,g.__assign)({},t),{container:null,shapesMap:{},group:null,capture:!0,isRegister:!1,isUpdating:!1,isInit:!0})},r.prototype.remove=function(){this.clear();var t=this.get("group");t.remove()},r.prototype.clear=function(){var t=this.get("group");t.clear(),this.set("shapesMap",{}),this.clearOffScreenCache(),this.set("isInit",!0)},r.prototype.getChildComponentById=function(t){var i=this.getElementById(t),n=i&&i.get("component");return n},r.prototype.getElementById=function(t){return this.get("shapesMap")[t]},r.prototype.getElementByLocalId=function(t){var i=this.getElementId(t);return this.getElementById(i)},r.prototype.getElementsByName=function(t){var i=[];return(0,f.each)(this.get("shapesMap"),function(n){n.get("name")===t&&i.push(n)}),i},r.prototype.getContainer=function(){return this.get("container")},r.prototype.updateInner=function(t){this.offScreenRender(),this.get("updateAutoRender")&&this.render()},r.prototype.render=function(){var t=this.get("offScreenGroup");t||(t=this.offScreenRender());var i=this.get("group");this.updateElements(t,i),this.deleteElements(),this.applyOffset(),this.get("eventInitted")||(this.initEvent(),this.set("eventInitted",!0)),this.set("isInit",!1)},r.prototype.show=function(){var t=this.get("group");t.show(),this.set("visible",!0)},r.prototype.hide=function(){var t=this.get("group");t.hide(),this.set("visible",!1)},r.prototype.setCapture=function(t){var i=this.get("group");i.set("capture",t),this.set("capture",t)},r.prototype.destroy=function(){this.removeEvent(),this.remove(),e.prototype.destroy.call(this)},r.prototype.getBBox=function(){return this.get("group").getCanvasBBox()},r.prototype.getLayoutBBox=function(){var t=this.get("group"),i=this.getInnerLayoutBBox(),n=t.getTotalMatrix();return n&&(i=Ig(n,i)),i},r.prototype.on=function(t,i,n){var a=this.get("group");return a.on(t,i,n),this},r.prototype.off=function(t,i){var n=this.get("group");return n&&n.off(t,i),this},r.prototype.emit=function(t,i){var n=this.get("group");n.emit(t,i)},r.prototype.init=function(){e.prototype.init.call(this),this.get("group")||this.initGroup(),this.offScreenRender()},r.prototype.getInnerLayoutBBox=function(){return this.get("offScreenBBox")||this.get("group").getBBox()},r.prototype.delegateEmit=function(t,i){var n=this.get("group");i.target=n,n.emit(t,i),Ol(n,t,i)},r.prototype.createOffScreenGroup=function(){var t=this.get("group"),i=t.getGroupBase(),n=new i({delegateObject:this.getDelegateObject()});return n},r.prototype.applyOffset=function(){var t=this.get("offsetX"),i=this.get("offsetY");this.moveElementTo(this.get("group"),{x:t,y:i})},r.prototype.initGroup=function(){var t=this.get("container");this.set("group",t.addGroup({id:this.get("id"),name:this.get("name"),capture:this.get("capture"),visible:this.get("visible"),isComponent:!0,component:this,delegateObject:this.getDelegateObject()}))},r.prototype.offScreenRender=function(){this.clearOffScreenCache();var t=this.createOffScreenGroup();return this.renderInner(t),this.set("offScreenGroup",t),this.set("offScreenBBox",Dl(t)),t},r.prototype.addGroup=function(t,i){this.appendDelegateObject(t,i);var n=t.addGroup(i);return this.get("isRegister")&&this.registerElement(n),n},r.prototype.addShape=function(t,i){this.appendDelegateObject(t,i);var n=t.addShape(i);return this.get("isRegister")&&this.registerElement(n),n},r.prototype.addComponent=function(t,i){var n=i.id,a=i.component,o=(0,g.__rest)(i,["id","component"]),s=new a((0,g.__assign)((0,g.__assign)({},o),{id:n,container:t,updateAutoRender:this.get("updateAutoRender")}));return s.init(),s.render(),this.get("isRegister")&&this.registerElement(s.get("group")),s},r.prototype.initEvent=function(){},r.prototype.removeEvent=function(){var t=this.get("group");t.off()},r.prototype.getElementId=function(t){var i=this.get("id"),n=this.get("name");return i+"-"+n+"-"+t},r.prototype.registerElement=function(t){var i=t.get("id");this.get("shapesMap")[i]=t},r.prototype.unregisterElement=function(t){var i=t.get("id");delete this.get("shapesMap")[i]},r.prototype.moveElementTo=function(t,i){var n=ao(i);t.attr("matrix",n)},r.prototype.addAnimation=function(t,i,n){var a=i.attr("opacity");(0,f.isNil)(a)&&(a=1),i.attr("opacity",0),i.animate({opacity:a},n)},r.prototype.removeAnimation=function(t,i,n){i.animate({opacity:0},n)},r.prototype.updateAnimation=function(t,i,n,a){i.animate(n,a)},r.prototype.updateElements=function(t,i){var n=this,a=this.get("animate"),o=this.get("animateOption"),s=t.getChildren().slice(0),l;(0,f.each)(s,function(u){var c=u.get("id"),h=n.getElementById(c),v=u.get("name");if(h)if(u.get("isComponent")){var d=u.get("component"),p=h.get("component"),y=(0,f.pick)(d.cfg,(0,f.difference)((0,f.keys)(d.cfg),Vg));p.update(y),h.set(zr,"update")}else{var x=n.getReplaceAttrs(h,u);a&&o.update?n.updateAnimation(v,h,x,o.update):h.attr(x),u.isGroup()&&n.updateElements(u,h),(0,f.each)(zg,function(S){h.set(S,u.get(S))}),Bg(h,u),l=h,h.set(zr,"update")}else{i.add(u);var m=i.getChildren();if(m.splice(m.length-1,1),l){var _=m.indexOf(l);m.splice(_+1,0,u)}else m.unshift(u);if(n.registerElement(u),u.set(zr,"add"),u.get("isComponent")){var d=u.get("component");d.set("container",i)}else u.isGroup()&&n.registerNewGroup(u);if(l=u,a){var w=n.get("isInit")?o.appear:o.enter;w&&n.addAnimation(v,u,w)}}})},r.prototype.clearUpdateStatus=function(t){var i=t.getChildren();(0,f.each)(i,function(n){n.set(zr,null)})},r.prototype.clearOffScreenCache=function(){var t=this.get("offScreenGroup");t&&t.destroy(),this.set("offScreenGroup",null),this.set("offScreenBBox",null)},r.prototype.getDelegateObject=function(){var t,i=this.get("name"),n=(t={},t[i]=this,t.component=this,t);return n},r.prototype.appendDelegateObject=function(t,i){var n=t.get("delegateObject");i.delegateObject||(i.delegateObject={}),(0,f.mix)(i.delegateObject,n)},r.prototype.getReplaceAttrs=function(t,i){var n=t.attr(),a=i.attr();return(0,f.each)(n,function(o,s){a[s]===void 0&&(a[s]=void 0)}),a},r.prototype.registerNewGroup=function(t){var i=this,n=t.getChildren();(0,f.each)(n,function(a){i.registerElement(a),a.set(zr,"add"),a.isGroup()&&i.registerNewGroup(a)})},r.prototype.deleteElements=function(){var t=this,i=this.get("shapesMap"),n=[];(0,f.each)(i,function(s,l){!s.get(zr)||s.destroyed?n.push([l,s]):s.set(zr,null)});var a=this.get("animate"),o=this.get("animateOption");(0,f.each)(n,function(s){var l=s[0],u=s[1];if(!u.destroyed){var c=u.get("name");if(a&&o.leave){var h=(0,f.mix)({callback:function(){t.removeElement(u)}},o.leave);t.removeAnimation(c,u,h)}else t.removeElement(u)}delete i[l]})},r.prototype.removeElement=function(t){if(t.get("isGroup")){var i=t.get("component");i&&i.destroy()}t.remove()},r}(Rl),Me=Gg,lo="\u2026";function Wg(e){for(var r=0,t=0;t0&&e.charCodeAt(r)<128?1:2}function Hg(e,r,t){t===void 0&&(t="tail");var i=e.length,n="";if(t==="tail"){for(var a=0,o=0;a=19968&&s<=40869?a+=2:a+=1}a>t&&(t=a,i=n)}return e[i].getBBox().width}function uo(e){if(e.length>Ug)return Zg(e);var r=0;return(0,f.each)(e,function(t){var i=t.getBBox(),n=i.width;r=0?v=Hg(a,h,i):v=Yg,v&&(r.attr("text",v),c=!0)}return c?r.set("tip",a):r.set("tip",null),c}function Nn(e,r){var t=r.x,i=r.y,n=r.content,a=r.style,o=r.id,s=r.name,l=r.rotate,u=r.maxLength,c=r.autoEllipsis,h=r.isVertical,v=r.ellipsisPosition,d=r.background,p=e.addGroup({id:o+"-group",name:s+"-group",attrs:{x:t,y:i}}),y=p.addShape({type:"text",id:o,name:s,attrs:(0,g.__assign)({x:0,y:0,text:n},a)}),x=Bn((0,f.get)(d,"padding",0));if(u&&c){var m=u-(x[1]+x[3]);Gi(!h,y,m,v)}if(d){var _=(0,f.get)(d,"style",{}),w=y.getCanvasBBox(),S=w.minX,b=w.minY,C=w.width,M=w.height,A=p.addShape("rect",{id:o+"-bg",name:o+"-bg",attrs:(0,g.__assign)({x:S-x[3],y:b-x[0],width:C+x[1]+x[3],height:M+x[0]+x[2]},_)});A.toBack()}oo(p,t,i),kl(p,l,t,i)}var Gt={fontFamily:` + BlinkMacSystemFont, "Segoe UI", Roboto,"Helvetica Neue", + Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", + SimSun, "sans-serif"`,textColor:"#2C3542",activeTextColor:"#333333",uncheckedColor:"#D8D8D8",lineColor:"#416180",regionColor:"#CCD7EB",verticalAxisRotate:-Math.PI/4,horizontalAxisRotate:Math.PI/4,descriptionIconStroke:"#fff",descriptionIconFill:"rgba(58, 73, 101, .25)"},jg=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,g.__assign)((0,g.__assign)({},t),{name:"annotation",type:"line",locationType:"region",start:null,end:null,style:{},text:null,defaultCfg:{style:{fill:Gt.textColor,fontSize:12,textAlign:"center",textBaseline:"bottom",fontFamily:Gt.fontFamily},text:{position:"center",autoRotate:!0,content:null,offsetX:0,offsetY:0,style:{stroke:Gt.lineColor,lineWidth:1}}}})},r.prototype.renderInner=function(t){this.renderLine(t),this.get("text")&&this.renderLabel(t)},r.prototype.renderLine=function(t){var i=this.get("start"),n=this.get("end"),a=this.get("style");this.addShape(t,{type:"line",id:this.getElementId("line"),name:"annotation-line",attrs:(0,g.__assign)({x1:i.x,y1:i.y,x2:n.x,y2:n.y},a)})},r.prototype.getLabelPoint=function(t,i,n){var a;return n==="start"?a=0:n==="center"?a=.5:(0,f.isString)(n)&&n.indexOf("%")!==-1?a=parseInt(n,10)/100:(0,f.isNumber)(n)?a=n:a=1,(a>1||a<0)&&(a=1),{x:Nr(t.x,i.x,a),y:Nr(t.y,i.y,a)}},r.prototype.renderLabel=function(t){var i=this.get("text"),n=this.get("start"),a=this.get("end"),o=i.position,s=i.content,l=i.style,u=i.offsetX,c=i.offsetY,h=i.autoRotate,v=i.maxLength,d=i.autoEllipsis,p=i.ellipsisPosition,y=i.background,x=i.isVertical,m=x===void 0?!1:x,_=this.getLabelPoint(n,a,o),w=_.x+u,S=_.y+c,b={id:this.getElementId("line-text"),name:"annotation-line-text",x:w,y:S,content:s,style:l,maxLength:v,autoEllipsis:d,ellipsisPosition:p,background:y,isVertical:m};if(h){var C=[a.x-n.x,a.y-n.y];b.rotate=Math.atan2(C[1],C[0])}Nn(t,b)},r}(Me),Kg=jg,$g=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,g.__assign)((0,g.__assign)({},t),{name:"annotation",type:"text",locationType:"point",x:0,y:0,content:"",rotate:null,style:{},background:null,maxLength:null,autoEllipsis:!0,isVertical:!1,ellipsisPosition:"tail",defaultCfg:{style:{fill:Gt.textColor,fontSize:12,textAlign:"center",textBaseline:"middle",fontFamily:Gt.fontFamily}}})},r.prototype.setLocation=function(t){this.set("x",t.x),this.set("y",t.y),this.resetLocation()},r.prototype.renderInner=function(t){var i=this.getLocation(),n=i.x,a=i.y,o=this.get("content"),s=this.get("style"),l=this.getElementId("text"),u=this.get("name")+"-text",c=this.get("maxLength"),h=this.get("autoEllipsis"),v=this.get("isVertical"),d=this.get("ellipsisPosition"),p=this.get("background"),y=this.get("rotate"),x={id:l,name:u,x:n,y:a,content:o,style:s,maxLength:c,autoEllipsis:h,isVertical:v,ellipsisPosition:d,background:p,rotate:y};Nn(t,x)},r.prototype.resetLocation=function(){var t=this.getElementByLocalId("text-group");if(t){var i=this.getLocation(),n=i.x,a=i.y,o=this.get("rotate");oo(t,n,a),kl(t,o,n,a)}},r}(Me),Qg=$g,Jg=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,g.__assign)((0,g.__assign)({},t),{name:"annotation",type:"arc",locationType:"circle",center:null,radius:100,startAngle:-Math.PI/2,endAngle:Math.PI*3/2,style:{stroke:"#999",lineWidth:1}})},r.prototype.renderInner=function(t){this.renderArc(t)},r.prototype.getArcPath=function(){var t=this.getLocation(),i=t.center,n=t.radius,a=t.startAngle,o=t.endAngle,s=li(i,n,a),l=li(i,n,o),u=o-a>Math.PI?1:0,c=[["M",s.x,s.y]];if(o-a==Math.PI*2){var h=li(i,n,a+Math.PI);c.push(["A",n,n,0,u,1,h.x,h.y]),c.push(["A",n,n,0,u,1,l.x,l.y])}else c.push(["A",n,n,0,u,1,l.x,l.y]);return c},r.prototype.renderArc=function(t){var i=this.getArcPath(),n=this.get("style");this.addShape(t,{type:"path",id:this.getElementId("arc"),name:"annotation-arc",attrs:(0,g.__assign)({path:i},n)})},r}(Me),tp=Jg,ep=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,g.__assign)((0,g.__assign)({},t),{name:"annotation",type:"region",locationType:"region",start:null,end:null,style:{},defaultCfg:{style:{lineWidth:0,fill:Gt.regionColor,opacity:.4}}})},r.prototype.renderInner=function(t){this.renderRegion(t)},r.prototype.renderRegion=function(t){var i=this.get("start"),n=this.get("end"),a=this.get("style"),o=zi({start:i,end:n});this.addShape(t,{type:"rect",id:this.getElementId("region"),name:"annotation-region",attrs:(0,g.__assign)({x:o.x,y:o.y,width:o.width,height:o.height},a)})},r}(Me),rp=ep,ip=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,g.__assign)((0,g.__assign)({},t),{name:"annotation",type:"image",locationType:"region",start:null,end:null,src:null,style:{}})},r.prototype.renderInner=function(t){this.renderImage(t)},r.prototype.getImageAttrs=function(){var t=this.get("start"),i=this.get("end"),n=this.get("style"),a=zi({start:t,end:i}),o=this.get("src");return(0,g.__assign)({x:a.x,y:a.y,img:o,width:a.width,height:a.height},n)},r.prototype.renderImage=function(t){this.addShape(t,{type:"image",id:this.getElementId("image"),name:"annotation-image",attrs:this.getImageAttrs()})},r}(Me),np=ip,ap=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,g.__assign)((0,g.__assign)({},t),{name:"annotation",type:"dataMarker",locationType:"point",x:0,y:0,point:{},line:{},text:{},direction:"upward",autoAdjust:!0,coordinateBBox:null,defaultCfg:{point:{display:!0,style:{r:3,fill:"#FFFFFF",stroke:"#1890FF",lineWidth:2}},line:{display:!0,length:20,style:{stroke:Gt.lineColor,lineWidth:1}},text:{content:"",display:!0,style:{fill:Gt.textColor,opacity:.65,fontSize:12,textAlign:"start",fontFamily:Gt.fontFamily}}}})},r.prototype.renderInner=function(t){(0,f.get)(this.get("line"),"display")&&this.renderLine(t),(0,f.get)(this.get("text"),"display")&&this.renderText(t),(0,f.get)(this.get("point"),"display")&&this.renderPoint(t),this.get("autoAdjust")&&this.autoAdjust(t)},r.prototype.applyOffset=function(){this.moveElementTo(this.get("group"),{x:this.get("x")+this.get("offsetX"),y:this.get("y")+this.get("offsetY")})},r.prototype.renderPoint=function(t){var i=this.getShapeAttrs().point;this.addShape(t,{type:"circle",id:this.getElementId("point"),name:"annotation-point",attrs:i})},r.prototype.renderLine=function(t){var i=this.getShapeAttrs().line;this.addShape(t,{type:"path",id:this.getElementId("line"),name:"annotation-line",attrs:i})},r.prototype.renderText=function(t){var i=this.getShapeAttrs().text,n=i.x,a=i.y,o=i.text,s=(0,g.__rest)(i,["x","y","text"]),l=this.get("text"),u=l.background,c=l.maxLength,h=l.autoEllipsis,v=l.isVertival,d=l.ellipsisPosition,p={x:n,y:a,id:this.getElementId("text"),name:"annotation-text",content:o,style:s,background:u,maxLength:c,autoEllipsis:h,isVertival:v,ellipsisPosition:d};Nn(t,p)},r.prototype.autoAdjust=function(t){var i=this.get("direction"),n=this.get("x"),a=this.get("y"),o=(0,f.get)(this.get("line"),"length",0),s=this.get("coordinateBBox"),l=t.getBBox(),u=l.minX,c=l.maxX,h=l.minY,v=l.maxY,d=t.findById(this.getElementId("text-group")),p=t.findById(this.getElementId("text")),y=t.findById(this.getElementId("line"));if(!!s&&d){var x=d.attr("x"),m=d.attr("y"),_=p.getCanvasBBox(),w=_.width,S=_.height,b=0,C=0;if(n+u<=s.minX)if(i==="leftward")b=1;else{var M=s.minX-(n+u);x=d.attr("x")+M}else if(n+c>=s.maxX)if(i==="rightward")b=-1;else{var M=n+c-s.maxX;x=d.attr("x")-M}if(b&&(y&&y.attr("path",[["M",0,0],["L",o*b,0]]),x=(o+2+w)*b),a+h<=s.minY)if(i==="upward")C=1;else{var M=s.minY-(a+h);m=d.attr("y")+M}else if(a+v>=s.maxY)if(i==="downward")C=-1;else{var M=a+v-s.maxY;m=d.attr("y")-M}C&&(y&&y.attr("path",[["M",0,0],["L",0,o*C]]),m=(o+2+S)*C),(x!==d.attr("x")||m!==d.attr("y"))&&oo(d,x,m)}},r.prototype.getShapeAttrs=function(){var t=(0,f.get)(this.get("line"),"display"),i=(0,f.get)(this.get("point"),"style",{}),n=(0,f.get)(this.get("line"),"style",{}),a=(0,f.get)(this.get("text"),"style",{}),o=this.get("direction"),s=t?(0,f.get)(this.get("line"),"length",0):0,l=0,u=0,c="top",h="start";switch(o){case"upward":u=-1,c="bottom";break;case"downward":u=1,c="top";break;case"leftward":l=-1,h="end";break;case"rightward":l=1,h="start";break}return{point:(0,g.__assign)({x:0,y:0},i),line:(0,g.__assign)({path:[["M",0,0],["L",s*l,s*u]]},n),text:(0,g.__assign)({x:(s+2)*l,y:(s+2)*u,text:(0,f.get)(this.get("text"),"content",""),textBaseline:c,textAlign:h},a)}},r}(Me),op=ap,sp=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,g.__assign)((0,g.__assign)({},t),{name:"annotation",type:"dataRegion",locationType:"points",points:[],lineLength:0,region:{},text:{},defaultCfg:{region:{style:{lineWidth:0,fill:Gt.regionColor,opacity:.4}},text:{content:"",style:{textAlign:"center",textBaseline:"bottom",fontSize:12,fill:Gt.textColor,fontFamily:Gt.fontFamily}}}})},r.prototype.renderInner=function(t){var i=(0,f.get)(this.get("region"),"style",{}),n=(0,f.get)(this.get("text"),"style",{}),a=this.get("lineLength")||0,o=this.get("points");if(!!o.length){var s=Pg(o),l=[];l.push(["M",o[0].x,s.minY-a]),o.forEach(function(c){l.push(["L",c.x,c.y])}),l.push(["L",o[o.length-1].x,o[o.length-1].y-a]),this.addShape(t,{type:"path",id:this.getElementId("region"),name:"annotation-region",attrs:(0,g.__assign)({path:l},i)});var u=(0,g.__assign)({id:this.getElementId("text"),name:"annotation-text",x:(s.minX+s.maxX)/2,y:s.minY-a},this.get("text"));Nn(t,u)}},r}(Me),lp=sp,up=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,g.__assign)((0,g.__assign)({},t),{name:"annotation",type:"regionFilter",locationType:"region",start:null,end:null,color:null,shape:[]})},r.prototype.renderInner=function(t){var i=this,n=this.get("start"),a=this.get("end"),o=this.addGroup(t,{id:this.getElementId("region-filter"),capture:!1});(0,f.each)(this.get("shapes"),function(l,u){var c=l.get("type"),h=(0,f.clone)(l.attr());i.adjustShapeAttrs(h),i.addShape(o,{id:i.getElementId("shape-"+c+"-"+u),capture:!1,type:c,attrs:h})});var s=zi({start:n,end:a});o.setClip({type:"rect",attrs:{x:s.minX,y:s.minY,width:s.width,height:s.height}})},r.prototype.adjustShapeAttrs=function(t){var i=this.get("color");t.fill&&(t.fill=t.fillStyle=i),t.stroke=t.strokeStyle=i},r}(Me),cp=up,hp=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,g.__assign)((0,g.__assign)({},t),{name:"annotation",type:"shape",draw:f.noop})},r.prototype.renderInner=function(t){var i=this.get("render");(0,f.isFunction)(i)&&i(t)},r}(Me),fp=hp;function Ie(e,r,t){var i;try{i=window.getComputedStyle?window.getComputedStyle(e,null)[r]:e.style[r]}catch(n){}finally{i=i===void 0?t:i}return i}function vp(e,r){var t=Ie(e,"width",r);return t==="auto"&&(t=e.offsetWidth),parseFloat(t)}function dp(e,r){var t=vp(e,r),i=parseFloat(Ie(e,"borderLeftWidth"))||0,n=parseFloat(Ie(e,"paddingLeft"))||0,a=parseFloat(Ie(e,"paddingRight"))||0,o=parseFloat(Ie(e,"borderRightWidth"))||0,s=parseFloat(Ie(e,"marginRight"))||0,l=parseFloat(Ie(e,"marginLeft"))||0;return t+i+o+n+a+l+s}function gp(e,r){var t=Ie(e,"height",r);return t==="auto"&&(t=e.offsetHeight),parseFloat(t)}function pp(e,r){var t=gp(e,r),i=parseFloat(Ie(e,"borderTopWidth"))||0,n=parseFloat(Ie(e,"paddingTop"))||0,a=parseFloat(Ie(e,"paddingBottom"))||0,o=parseFloat(Ie(e,"borderBottomWidth"))||0,s=parseFloat(Ie(e,"marginTop"))||0,l=parseFloat(Ie(e,"marginBottom"))||0;return t+i+o+n+a+s+l}var yp=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,g.__assign)((0,g.__assign)({},t),{container:null,containerTpl:"
    ",updateAutoRender:!0,containerClassName:"",parent:null})},r.prototype.getContainer=function(){return this.get("container")},r.prototype.show=function(){var t=this.get("container");t.style.display="",this.set("visible",!0)},r.prototype.hide=function(){var t=this.get("container");t.style.display="none",this.set("visible",!1)},r.prototype.setCapture=function(t){var i=this.getContainer(),n=t?"auto":"none";i.style.pointerEvents=n,this.set("capture",t)},r.prototype.getBBox=function(){var t=this.getContainer(),i=parseFloat(t.style.left)||0,n=parseFloat(t.style.top)||0;return Vi(i,n,t.clientWidth,t.clientHeight)},r.prototype.clear=function(){var t=this.get("container");so(t)},r.prototype.destroy=function(){this.removeEvent(),this.removeDom(),e.prototype.destroy.call(this)},r.prototype.init=function(){e.prototype.init.call(this),this.initContainer(),this.initDom(),this.resetStyles(),this.applyStyles(),this.initEvent(),this.initCapture(),this.initVisible()},r.prototype.initCapture=function(){this.setCapture(this.get("capture"))},r.prototype.initVisible=function(){this.get("visible")?this.show():this.hide()},r.prototype.initDom=function(){},r.prototype.initContainer=function(){var t=this.get("container");if((0,f.isNil)(t)){t=this.createDom();var i=this.get("parent");(0,f.isString)(i)&&(i=document.getElementById(i),this.set("parent",i)),i.appendChild(t),this.get("containerId")&&t.setAttribute("id",this.get("containerId")),this.set("container",t)}else(0,f.isString)(t)&&(t=document.getElementById(t),this.set("container",t));this.get("parent")||this.set("parent",t.parentNode)},r.prototype.resetStyles=function(){var t=this.get("domStyles"),i=this.get("defaultStyles");t?t=(0,f.deepMix)({},i,t):t=i,this.set("domStyles",t)},r.prototype.applyStyles=function(){var t=this.get("domStyles");if(!!t){var i=this.getContainer();this.applyChildrenStyles(i,t);var n=this.get("containerClassName");if(n&&Og(i,n)){var a=t[n];(0,k.Z)(i,a)}}},r.prototype.applyChildrenStyles=function(t,i){(0,f.each)(i,function(n,a){var o=t.getElementsByClassName(a);(0,f.each)(o,function(s){(0,k.Z)(s,n)})})},r.prototype.applyStyle=function(t,i){var n=this.get("domStyles");(0,k.Z)(i,n[t])},r.prototype.createDom=function(){var t=this.get("containerTpl");return(0,L.Z)(t)},r.prototype.initEvent=function(){},r.prototype.removeDom=function(){var t=this.get("container");t&&t.parentNode&&t.parentNode.removeChild(t)},r.prototype.removeEvent=function(){},r.prototype.updateInner=function(t){(0,f.hasKey)(t,"domStyles")&&(this.resetStyles(),this.applyStyles()),this.resetPosition()},r.prototype.resetPosition=function(){},r}(Rl),co=yp,mp=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,g.__assign)((0,g.__assign)({},t),{name:"annotation",type:"html",locationType:"point",x:0,y:0,containerTpl:'
    ',alignX:"left",alignY:"top",html:"",zIndex:7})},r.prototype.render=function(){var t=this.getContainer(),i=this.get("html");so(t);var n=(0,f.isFunction)(i)?i(t):i;if((0,f.isElement)(n))t.appendChild(n);else if((0,f.isString)(n)||(0,f.isNumber)(n)){var a=(0,L.Z)(""+n);a&&t.appendChild(a)}this.resetPosition()},r.prototype.resetPosition=function(){var t=this.getContainer(),i=this.getLocation(),n=i.x,a=i.y,o=this.get("alignX"),s=this.get("alignY"),l=this.get("offsetX"),u=this.get("offsetY"),c=dp(t),h=pp(t),v={x:n,y:a};o==="middle"?v.x-=Math.round(c/2):o==="right"&&(v.x-=Math.round(c)),s==="middle"?v.y-=Math.round(h/2):s==="bottom"&&(v.y-=Math.round(h)),l&&(v.x+=l),u&&(v.y+=u),(0,k.Z)(t,{position:"absolute",left:v.x+"px",top:v.y+"px",zIndex:this.get("zIndex")})},r}(co),xp=mp;function Wi(e,r,t){var i=r+"Style",n=null;return(0,f.each)(t,function(a,o){e[o]&&a[i]&&(n||(n={}),(0,f.mix)(n,a[i]))}),n}var _p=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,g.__assign)((0,g.__assign)({},t),{name:"axis",ticks:[],line:{},tickLine:{},subTickLine:null,title:null,label:{},verticalFactor:1,verticalLimitLength:null,overlapOrder:["autoRotate","autoEllipsis","autoHide"],tickStates:{},optimize:{},defaultCfg:{line:{style:{lineWidth:1,stroke:Gt.lineColor}},tickLine:{style:{lineWidth:1,stroke:Gt.lineColor},alignTick:!0,length:5,displayWithLabel:!0},subTickLine:{style:{lineWidth:1,stroke:Gt.lineColor},count:4,length:2},label:{autoRotate:!0,autoHide:!1,autoEllipsis:!1,style:{fontSize:12,fill:Gt.textColor,fontFamily:Gt.fontFamily,fontWeight:"normal"},offset:10,offsetX:0,offsetY:0},title:{autoRotate:!0,spacing:5,position:"center",style:{fontSize:12,fill:Gt.textColor,textBaseline:"middle",fontFamily:Gt.fontFamily,textAlign:"center"},iconStyle:{fill:Gt.descriptionIconFill,stroke:Gt.descriptionIconStroke},description:""},tickStates:{active:{labelStyle:{fontWeight:500},tickLineStyle:{lineWidth:2}},inactive:{labelStyle:{fill:Gt.uncheckedColor}}},optimize:{enable:!0,threshold:400}},theme:{}})},r.prototype.renderInner=function(t){this.get("line")&&this.drawLine(t),this.drawTicks(t),this.get("title")&&this.drawTitle(t)},r.prototype.isList=function(){return!0},r.prototype.getItems=function(){return this.get("ticks")},r.prototype.setItems=function(t){this.update({ticks:t})},r.prototype.updateItem=function(t,i){(0,f.mix)(t,i),this.clear(),this.render()},r.prototype.clearItems=function(){var t=this.getElementByLocalId("label-group");t&&t.clear()},r.prototype.setItemState=function(t,i,n){t[i]=n,this.updateTickStates(t)},r.prototype.hasState=function(t,i){return!!t[i]},r.prototype.getItemStates=function(t){var i=this.get("tickStates"),n=[];return(0,f.each)(i,function(a,o){t[o]&&n.push(o)}),n},r.prototype.clearItemsState=function(t){var i=this,n=this.getItemsByState(t);(0,f.each)(n,function(a){i.setItemState(a,t,!1)})},r.prototype.getItemsByState=function(t){var i=this,n=this.getItems();return(0,f.filter)(n,function(a){return i.hasState(a,t)})},r.prototype.getSidePoint=function(t,i){var n=this,a=n.getSideVector(i,t);return{x:t.x+a[0],y:t.y+a[1]}},r.prototype.getTextAnchor=function(t){var i;return(0,f.isNumberEqual)(t[0],0)?i="center":t[0]>0?i="start":t[0]<0&&(i="end"),i},r.prototype.getTextBaseline=function(t){var i;return(0,f.isNumberEqual)(t[1],0)?i="middle":t[1]>0?i="top":t[1]<0&&(i="bottom"),i},r.prototype.processOverlap=function(t){},r.prototype.drawLine=function(t){var i=this.getLinePath(),n=this.get("line");this.addShape(t,{type:"path",id:this.getElementId("line"),name:"axis-line",attrs:(0,f.mix)({path:i},n.style)})},r.prototype.getTickLineItems=function(t){var i=this,n=[],a=this.get("tickLine"),o=a.alignTick,s=a.length,l=1,u=t.length;return u>=2&&(l=t[1].value-t[0].value),(0,f.each)(t,function(c){var h=c.point;o||(h=i.getTickPoint(c.value-l/2));var v=i.getSidePoint(h,s);n.push({startPoint:h,tickValue:c.value,endPoint:v,tickId:c.id,id:"tickline-"+c.id})}),n},r.prototype.getSubTickLineItems=function(t){var i=[],n=this.get("subTickLine"),a=n.count,o=t.length;if(o>=2)for(var s=0;s0){var n=(0,f.size)(i);if(n>t.threshold){var a=Math.ceil(n/t.threshold),o=i.filter(function(s,l){return l%a==0});this.set("ticks",o),this.set("originalTicks",i)}}},r.prototype.getLabelAttrs=function(t,i,n){var a=this.get("label"),o=a.offset,s=a.offsetX,l=a.offsetY,u=a.rotate,c=a.formatter,h=this.getSidePoint(t.point,o),v=this.getSideVector(o,h),d=c?c(t.name,t,i):t.name,p=a.style;p=(0,f.isFunction)(p)?(0,f.get)(this.get("theme"),["label","style"],{}):p;var y=(0,f.mix)({x:h.x+s,y:h.y+l,text:d,textAlign:this.getTextAnchor(v),textBaseline:this.getTextBaseline(v)},p);return u&&(y.matrix=Rr(h,u)),y},r.prototype.drawLabels=function(t){var i=this,n=this.get("ticks"),a=this.addGroup(t,{name:"axis-label-group",id:this.getElementId("label-group")});(0,f.each)(n,function(v,d){i.addShape(a,{type:"text",name:"axis-label",id:i.getElementId("label-"+v.id),attrs:i.getLabelAttrs(v,d,n),delegateObject:{tick:v,item:v,index:d}})}),this.processOverlap(a);var o=a.getChildren(),s=(0,f.get)(this.get("theme"),["label","style"],{}),l=this.get("label"),u=l.style,c=l.formatter;if((0,f.isFunction)(u)){var h=o.map(function(v){return(0,f.get)(v.get("delegateObject"),"tick")});(0,f.each)(o,function(v,d){var p=v.get("delegateObject").tick,y=c?c(p.name,p,d):p.name,x=(0,f.mix)({},s,u(y,d,h));v.attr(x)})}},r.prototype.getTitleAttrs=function(){var t=this.get("title"),i=t.style,n=t.position,a=t.offset,o=t.spacing,s=o===void 0?0:o,l=t.autoRotate,u=i.fontSize,c=.5;n==="start"?c=0:n==="end"&&(c=1);var h=this.getTickPoint(c),v=this.getSidePoint(h,a||s+u/2),d=(0,f.mix)({x:v.x,y:v.y,text:t.text},i),p=t.rotate,y=p;if((0,f.isNil)(p)&&l){var x=this.getAxisVector(h),m=[1,0];y=ie.Dg(x,m,!0)}if(y){var _=Rr(v,y);d.matrix=_}return d},r.prototype.drawTitle=function(t){var i,n=this.getTitleAttrs(),a=this.addShape(t,{type:"text",id:this.getElementId("title"),name:"axis-title",attrs:n});((i=this.get("title"))===null||i===void 0?void 0:i.description)&&this.drawDescriptionIcon(t,a,n.matrix)},r.prototype.drawDescriptionIcon=function(t,i,n){var a=this.addGroup(t,{name:"axis-description",id:this.getElementById("description")}),o=i.getBBox(),s=o.maxX,l=o.maxY,u=o.height,c=this.get("title").iconStyle,h=4,v=u/2,d=v/6,p=s+h,y=l-u/2,x=[p+v,y-v],m=x[0],_=x[1],w=[m+v,_+v],S=w[0],b=w[1],C=[m,b+v],M=C[0],A=C[1],O=[p,_+v],E=O[0],z=O[1],X=[p+v,y-u/4],lt=X[0],pt=X[1],At=[lt,pt+d],V=At[0],K=At[1],ft=[V,K+d],nt=ft[0],dt=ft[1],St=[nt,dt+v*3/4],Nt=St[0],Wt=St[1];this.addShape(a,{type:"path",id:this.getElementId("title-description-icon"),name:"axis-title-description-icon",attrs:(0,g.__assign)({path:[["M",m,_],["A",v,v,0,0,1,S,b],["A",v,v,0,0,1,M,A],["A",v,v,0,0,1,E,z],["A",v,v,0,0,1,m,_],["M",lt,pt],["L",V,K],["M",nt,dt],["L",Nt,Wt]],lineWidth:d,matrix:n},c)}),this.addShape(a,{type:"rect",id:this.getElementId("title-description-rect"),name:"axis-title-description-rect",attrs:{x:p,y:y-u/2,width:u,height:u,stroke:"#000",fill:"#000",opacity:0,matrix:n,cursor:"pointer"}})},r.prototype.applyTickStates=function(t,i){var n=this.getItemStates(t);if(n.length){var a=this.get("tickStates"),o=this.getElementId("label-"+t.id),s=i.findById(o);if(s){var l=Wi(t,"label",a);l&&s.attr(l)}var u=this.getElementId("tickline-"+t.id),c=i.findById(u);if(c){var h=Wi(t,"tickLine",a);h&&c.attr(h)}}},r.prototype.updateTickStates=function(t){var i=this.getItemStates(t),n=this.get("tickStates"),a=this.get("label"),o=this.getElementByLocalId("label-"+t.id),s=this.get("tickLine"),l=this.getElementByLocalId("tickline-"+t.id);if(i.length){if(o){var u=Wi(t,"label",n);u&&o.attr(u)}if(l){var c=Wi(t,"tickLine",n);c&&l.attr(c)}}else o&&o.attr(a.style),l&&l.attr(s.style)},r}(Me),Nl=_p;function ho(e,r,t,i){var n=r.getChildren(),a=!1;return(0,f.each)(n,function(o){var s=Gi(e,o,t,i);a=a||s}),a}function wp(){return zl}function Sp(e,r,t){return ho(e,r,t,"head")}function zl(e,r,t){return ho(e,r,t,"tail")}function bp(e,r,t){return ho(e,r,t,"middle")}function Cp(e){var r=e.attr("matrix");return r&&r[0]!==1}function Vl(e){var r=Cp(e)?Lg(e.attr("matrix")):0;return r%360}function fo(e,r,t,i){var n=!1,a=Vl(r),o=Math.abs(e?t.attr("y")-r.attr("y"):t.attr("x")-r.attr("x")),s=(e?t.attr("y")>r.attr("y"):t.attr("x")>r.attr("x"))?r.getBBox():t.getBBox();if(e){var l=Math.abs(Math.cos(a));Rn(l,0,Math.PI/180)?n=s.width+i>o:n=s.height/l+i>o}else{var l=Math.abs(Math.sin(a));Rn(l,0,Math.PI/180)?n=s.width+i>o:n=s.height/l+i>o}return n}function Hi(e,r,t,i){var n=(i==null?void 0:i.minGap)||0,a=r.getChildren().slice().filter(function(p){return p.get("visible")});if(!a.length)return!1;var o=!1;t&&a.reverse();for(var s=a.length,l=a[0],u=l,c=1;c1){v=Math.ceil(v);for(var y=0;y2){var o=n[0],s=n[n.length-1];o.get("visible")||(o.show(),Hi(e,r,!1,i)&&(a=!0)),s.get("visible")||(s.show(),Hi(e,r,!0,i)&&(a=!0))}return a}function Lp(e,r){(0,f.each)(e,function(t){var i=t.attr("x"),n=t.attr("y"),a=Rr({x:i,y:n},r);t.attr("matrix",a)})}function Hl(e,r,t,i){var n=r.getChildren();if(!n.length||!e&&n.length<2)return!1;var a=uo(n),o=!1;if(e)o=!!t&&a>t;else{var s=Math.abs(n[1].attr("x")-n[0].attr("x"));o=a>s}if(o){var l=i(t,a);Lp(n,l)}return o}function Ip(){return Yl}function Yl(e,r,t,i){return Hl(e,r,t,function(){return(0,f.isNumber)(i)?i:e?Gt.verticalAxisRotate:Gt.horizontalAxisRotate})}function Op(e,r,t){return Hl(e,r,t,function(i,n){if(!i)return e?Gt.verticalAxisRotate:Gt.horizontalAxisRotate;if(e)return-Math.acos(i/n);var a=0;return i>n?a=Math.PI/4:(a=Math.asin(i/n),a>Math.PI/4&&(a=Math.PI/4)),a})}var Pp=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,g.__assign)((0,g.__assign)({},t),{type:"line",locationType:"region",start:null,end:null})},r.prototype.getLinePath=function(){var t=this.get("start"),i=this.get("end"),n=[];return n.push(["M",t.x,t.y]),n.push(["L",i.x,i.y]),n},r.prototype.getInnerLayoutBBox=function(){var t=this.get("start"),i=this.get("end"),n=e.prototype.getInnerLayoutBBox.call(this),a=Math.min(t.x,i.x,n.x),o=Math.min(t.y,i.y,n.y),s=Math.max(t.x,i.x,n.maxX),l=Math.max(t.y,i.y,n.maxY);return{x:a,y:o,minX:a,minY:o,maxX:s,maxY:l,width:s-a,height:l-o}},r.prototype.isVertical=function(){var t=this.get("start"),i=this.get("end");return(0,f.isNumberEqual)(t.x,i.x)},r.prototype.isHorizontal=function(){var t=this.get("start"),i=this.get("end");return(0,f.isNumberEqual)(t.y,i.y)},r.prototype.getTickPoint=function(t){var i=this,n=i.get("start"),a=i.get("end"),o=a.x-n.x,s=a.y-n.y;return{x:n.x+o*t,y:n.y+s*t}},r.prototype.getSideVector=function(t){var i=this.getAxisVector(),n=ht.normalize([0,0],i),a=this.get("verticalFactor"),o=[n[1],n[0]*-1];return ht.scale([0,0],o,t*a)},r.prototype.getAxisVector=function(){var t=this.get("start"),i=this.get("end");return[i.x-t.x,i.y-t.y]},r.prototype.processOverlap=function(t){var i=this,n=this.isVertical(),a=this.isHorizontal();if(!(!n&&!a)){var o=this.get("label"),s=this.get("title"),l=this.get("verticalLimitLength"),u=o.offset,c=l,h=0,v=0;s&&(h=s.style.fontSize,v=s.spacing),c&&(c=c-u-v-h);var d=this.get("overlapOrder");if((0,f.each)(d,function(x){o[x]&&i.canProcessOverlap(x)&&i.autoProcessOverlap(x,o[x],t,c)}),s&&(0,f.isNil)(s.offset)){var p=t.getCanvasBBox(),y=n?p.width:p.height;s.offset=u+y+v+h/2}}},r.prototype.canProcessOverlap=function(t){var i=this.get("label");return t==="autoRotate"?(0,f.isNil)(i.rotate):!0},r.prototype.autoProcessOverlap=function(t,i,n,a){var o=this,s=this.isVertical(),l=!1,u=yt[t];if(i===!0){var c=this.get("label");l=u.getDefault()(s,n,a)}else if((0,f.isFunction)(i))l=i(s,n,a);else if((0,f.isObject)(i)){var h=i;u[h.type]&&(l=u[h.type](s,n,a,h.cfg))}else u[i]&&(l=u[i](s,n,a));if(t==="autoRotate"){if(l){var v=n.getChildren(),d=this.get("verticalFactor");(0,f.each)(v,function(y){var x=y.attr("textAlign");if(x==="center"){var m=d>0?"end":"start";y.attr("textAlign",m)}})}}else if(t==="autoHide"){var p=n.getChildren().slice(0);(0,f.each)(p,function(y){y.get("visible")||(o.get("isRegister")&&o.unregisterElement(y),y.remove())})}},r}(Nl),kp=Pp,Dp=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,g.__assign)((0,g.__assign)({},t),{type:"circle",locationType:"circle",center:null,radius:null,startAngle:-Math.PI/2,endAngle:Math.PI*3/2})},r.prototype.getLinePath=function(){var t=this.get("center"),i=t.x,n=t.y,a=this.get("radius"),o=a,s=this.get("startAngle"),l=this.get("endAngle"),u=[];if(Math.abs(l-s)===Math.PI*2)u=[["M",i,n-o],["A",a,o,0,1,1,i,n+o],["A",a,o,0,1,1,i,n-o],["Z"]];else{var c=this.getCirclePoint(s),h=this.getCirclePoint(l),v=Math.abs(l-s)>Math.PI?1:0,d=s>l?0:1;u=[["M",i,n],["L",c.x,c.y],["A",a,o,0,v,d,h.x,h.y],["L",i,n]]}return u},r.prototype.getTickPoint=function(t){var i=this.get("startAngle"),n=this.get("endAngle"),a=i+(n-i)*t;return this.getCirclePoint(a)},r.prototype.getSideVector=function(t,i){var n=this.get("center"),a=[i.x-n.x,i.y-n.y],o=this.get("verticalFactor"),s=ht.length(a);return ht.scale(a,a,o*t/s),a},r.prototype.getAxisVector=function(t){var i=this.get("center"),n=[t.x-i.x,t.y-i.y];return[n[1],-1*n[0]]},r.prototype.getCirclePoint=function(t,i){var n=this.get("center");return i=i||this.get("radius"),{x:n.x+Math.cos(t)*i,y:n.y+Math.sin(t)*i}},r.prototype.canProcessOverlap=function(t){var i=this.get("label");return t==="autoRotate"?(0,f.isNil)(i.rotate):!0},r.prototype.processOverlap=function(t){var i=this,n=this.get("label"),a=this.get("title"),o=this.get("verticalLimitLength"),s=n.offset,l=o,u=0,c=0;a&&(u=a.style.fontSize,c=a.spacing),l&&(l=l-s-c-u);var h=this.get("overlapOrder");if((0,f.each)(h,function(d){n[d]&&i.canProcessOverlap(d)&&i.autoProcessOverlap(d,n[d],t,l)}),a&&(0,f.isNil)(a.offset)){var v=t.getCanvasBBox().height;a.offset=s+v+c+u/2}},r.prototype.autoProcessOverlap=function(t,i,n,a){var o=this,s=!1,l=yt[t];if(a>0)if(i===!0)s=l.getDefault()(!1,n,a);else if((0,f.isFunction)(i))s=i(!1,n,a);else if((0,f.isObject)(i)){var u=i;l[u.type]&&(s=l[u.type](!1,n,a,u.cfg))}else l[i]&&(s=l[i](!1,n,a));if(t==="autoRotate"){if(s){var c=n.getChildren(),h=this.get("verticalFactor");(0,f.each)(c,function(d){var p=d.attr("textAlign");if(p==="center"){var y=h>0?"end":"start";d.attr("textAlign",y)}})}}else if(t==="autoHide"){var v=n.getChildren().slice(0);(0,f.each)(v,function(d){d.get("visible")||(o.get("isRegister")&&o.unregisterElement(d),d.remove())})}},r}(Nl),Bp=Dp,Rp=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,g.__assign)((0,g.__assign)({},t),{name:"crosshair",type:"base",line:{},text:null,textBackground:{},capture:!1,defaultCfg:{line:{style:{lineWidth:1,stroke:Gt.lineColor}},text:{position:"start",offset:10,autoRotate:!1,content:null,style:{fill:Gt.textColor,textAlign:"center",textBaseline:"middle",fontFamily:Gt.fontFamily}},textBackground:{padding:5,style:{stroke:Gt.lineColor}}}})},r.prototype.renderInner=function(t){this.get("line")&&this.renderLine(t),this.get("text")&&(this.renderText(t),this.renderBackground(t))},r.prototype.renderText=function(t){var i=this.get("text"),n=i.style,a=i.autoRotate,o=i.content;if(!(0,f.isNil)(o)){var s=this.getTextPoint(),l=null;if(a){var u=this.getRotateAngle();l=Rr(s,u)}this.addShape(t,{type:"text",name:"crosshair-text",id:this.getElementId("text"),attrs:(0,g.__assign)((0,g.__assign)((0,g.__assign)({},s),{text:o,matrix:l}),n)})}},r.prototype.renderLine=function(t){var i=this.getLinePath(),n=this.get("line"),a=n.style;this.addShape(t,{type:"path",name:"crosshair-line",id:this.getElementId("line"),attrs:(0,g.__assign)({path:i},a)})},r.prototype.renderBackground=function(t){var i=this.getElementId("text"),n=t.findById(i),a=this.get("textBackground");if(a&&n){var o=n.getBBox(),s=Bn(a.padding),l=a.style,u=this.addShape(t,{type:"rect",name:"crosshair-text-background",id:this.getElementId("text-background"),attrs:(0,g.__assign)({x:o.x-s[3],y:o.y-s[0],width:o.width+s[1]+s[3],height:o.height+s[0]+s[2],matrix:n.attr("matrix")},l)});u.toBack()}},r}(Me),vo=Rp,Np=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,g.__assign)((0,g.__assign)({},t),{type:"line",locationType:"region",start:null,end:null})},r.prototype.getRotateAngle=function(){var t=this.getLocation(),i=t.start,n=t.end,a=this.get("text").position,o=Math.atan2(n.y-i.y,n.x-i.x),s=a==="start"?o-Math.PI/2:o+Math.PI/2;return s},r.prototype.getTextPoint=function(){var t=this.getLocation(),i=t.start,n=t.end,a=this.get("text"),o=a.position,s=a.offset;return Bl(i,n,o,s)},r.prototype.getLinePath=function(){var t=this.getLocation(),i=t.start,n=t.end;return[["M",i.x,i.y],["L",n.x,n.y]]},r}(vo),Xl=Np,zp=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,g.__assign)((0,g.__assign)({},t),{type:"circle",locationType:"circle",center:null,radius:100,startAngle:-Math.PI/2,endAngle:Math.PI*3/2})},r.prototype.getRotateAngle=function(){var t=this.getLocation(),i=t.startAngle,n=t.endAngle,a=this.get("text").position,o=a==="start"?i+Math.PI/2:n-Math.PI/2;return o},r.prototype.getTextPoint=function(){var t=this.get("text"),i=t.position,n=t.offset,a=this.getLocation(),o=a.center,s=a.radius,l=a.startAngle,u=a.endAngle,c=i==="start"?l:u,h=this.getRotateAngle()-Math.PI,v=li(o,s,c),d=Math.cos(h)*n,p=Math.sin(h)*n;return{x:v.x+d,y:v.y+p}},r.prototype.getLinePath=function(){var t=this.getLocation(),i=t.center,n=t.radius,a=t.startAngle,o=t.endAngle,s=null;if(o-a==Math.PI*2){var l=i.x,u=i.y;s=[["M",l,u-n],["A",n,n,0,1,1,l,u+n],["A",n,n,0,1,1,l,u-n],["Z"]]}else{var c=li(i,n,a),h=li(i,n,o),v=Math.abs(o-a)>Math.PI?1:0,d=a>o?0:1;s=[["M",c.x,c.y],["A",n,n,0,v,d,h.x,h.y]]}return s},r}(vo),Vp=zp,Yi="g2-crosshair",go=Yi+"-line",po=Yi+"-text",Xi,Gp=(Xi={},Xi[""+Yi]={position:"relative"},Xi[""+go]={position:"absolute",backgroundColor:"rgba(0, 0, 0, 0.25)"},Xi[""+po]={position:"absolute",color:Gt.textColor,fontFamily:Gt.fontFamily},Xi),Wp=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,g.__assign)((0,g.__assign)({},t),{name:"crosshair",type:"html",locationType:"region",start:{x:0,y:0},end:{x:0,y:0},capture:!1,text:null,containerTpl:'
    ',crosshairTpl:'
    ',textTpl:'{content}',domStyles:null,containerClassName:Yi,defaultStyles:Gp,defaultCfg:{text:{position:"start",content:null,align:"center",offset:10}}})},r.prototype.render=function(){this.resetText(),this.resetPosition()},r.prototype.initCrossHair=function(){var t=this.getContainer(),i=this.get("crosshairTpl"),n=(0,L.Z)(i);t.appendChild(n),this.applyStyle(go,n),this.set("crosshairEl",n)},r.prototype.getTextPoint=function(){var t=this.getLocation(),i=t.start,n=t.end,a=this.get("text"),o=a.position,s=a.offset;return Bl(i,n,o,s)},r.prototype.resetText=function(){var t=this.get("text"),i=this.get("textEl");if(t){var n=t.content;if(!i){var a=this.getContainer(),o=(0,f.substitute)(this.get("textTpl"),t);i=(0,L.Z)(o),a.appendChild(i),this.applyStyle(po,i),this.set("textEl",i)}i.innerHTML=n}else i&&i.remove()},r.prototype.isVertical=function(t,i){return t.x===i.x},r.prototype.resetPosition=function(){var t=this.get("crosshairEl");t||(this.initCrossHair(),t=this.get("crosshairEl"));var i=this.get("start"),n=this.get("end"),a=Math.min(i.x,n.x),o=Math.min(i.y,n.y);this.isVertical(i,n)?(0,k.Z)(t,{width:"1px",height:Le(Math.abs(n.y-i.y))}):(0,k.Z)(t,{height:"1px",width:Le(Math.abs(n.x-i.x))}),(0,k.Z)(t,{top:Le(o),left:Le(a)}),this.alignText()},r.prototype.alignText=function(){var t=this.get("textEl");if(t){var i=this.get("text").align,n=t.clientWidth,a=this.getTextPoint();switch(i){case"center":a.x=a.x-n/2;break;case"right":a.x=a.x-n;case"left":break}(0,k.Z)(t,{top:Le(a.y),left:Le(a.x)})}},r.prototype.updateInner=function(t){(0,f.hasKey)(t,"text")&&this.resetText(),e.prototype.updateInner.call(this,t)},r}(co),Hp=Wp,Yp=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,g.__assign)((0,g.__assign)({},t),{name:"grid",line:{},alternateColor:null,capture:!1,items:[],closed:!1,defaultCfg:{line:{type:"line",style:{lineWidth:1,stroke:Gt.lineColor}}}})},r.prototype.getLineType=function(){var t=this.get("line")||this.get("defaultCfg").line;return t.type},r.prototype.renderInner=function(t){this.drawGrid(t)},r.prototype.getAlternatePath=function(t,i){var n=this.getGridPath(t),a=i.slice(0).reverse(),o=this.getGridPath(a,!0),s=this.get("closed");return s?n=n.concat(o):(o[0][0]="L",n=n.concat(o),n.push(["Z"])),n},r.prototype.getPathStyle=function(){return this.get("line").style},r.prototype.drawGrid=function(t){var i=this,n=this.get("line"),a=this.get("items"),o=this.get("alternateColor"),s=null;(0,f.each)(a,function(l,u){var c=l.id||u;if(n){var h=i.getPathStyle();h=(0,f.isFunction)(h)?h(l,u,a):h;var v=i.getElementId("line-"+c),d=i.getGridPath(l.points);i.addShape(t,{type:"path",name:"grid-line",id:v,attrs:(0,f.mix)({path:d},h)})}if(o&&u>0){var p=i.getElementId("region-"+c),y=u%2==0;if((0,f.isString)(o))y&&i.drawAlternateRegion(p,t,s.points,l.points,o);else{var x=y?o[1]:o[0];i.drawAlternateRegion(p,t,s.points,l.points,x)}}s=l})},r.prototype.drawAlternateRegion=function(t,i,n,a,o){var s=this.getAlternatePath(n,a);this.addShape(i,{type:"path",id:t,name:"grid-region",attrs:{path:s,fill:o}})},r}(Me),Ul=Yp;function Xp(e,r,t,i){var n=t-e,a=i-r;return Math.sqrt(n*n+a*a)}var Up=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,g.__assign)((0,g.__assign)({},t),{type:"circle",center:null,closed:!0})},r.prototype.getGridPath=function(t,i){var n=this.getLineType(),a=this.get("closed"),o=[];if(t.length)if(n==="circle"){var s=this.get("center"),l=t[0],u=Xp(s.x,s.y,l.x,l.y),c=i?0:1;a?(o.push(["M",s.x,s.y-u]),o.push(["A",u,u,0,0,c,s.x,s.y+u]),o.push(["A",u,u,0,0,c,s.x,s.y-u]),o.push(["Z"])):(0,f.each)(t,function(h,v){v===0?o.push(["M",h.x,h.y]):o.push(["A",u,u,0,0,c,h.x,h.y])})}else(0,f.each)(t,function(h,v){v===0?o.push(["M",h.x,h.y]):o.push(["L",h.x,h.y])}),a&&o.push(["Z"]);return o},r}(Ul),Zp=Up,qp=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,g.__assign)((0,g.__assign)({},t),{type:"line"})},r.prototype.getGridPath=function(t){var i=[];return(0,f.each)(t,function(n,a){a===0?i.push(["M",n.x,n.y]):i.push(["L",n.x,n.y])}),i},r}(Ul),jp=qp,Kp=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,g.__assign)((0,g.__assign)({},t),{name:"legend",layout:"horizontal",locationType:"point",x:0,y:0,offsetX:0,offsetY:0,title:null,background:null})},r.prototype.getLayoutBBox=function(){var t=e.prototype.getLayoutBBox.call(this),i=this.get("maxWidth"),n=this.get("maxHeight"),a=t.width,o=t.height;return i&&(a=Math.min(a,i)),n&&(o=Math.min(o,n)),Vi(t.minX,t.minY,a,o)},r.prototype.setLocation=function(t){this.set("x",t.x),this.set("y",t.y),this.resetLocation()},r.prototype.resetLocation=function(){var t=this.get("x"),i=this.get("y"),n=this.get("offsetX"),a=this.get("offsetY");this.moveElementTo(this.get("group"),{x:t+n,y:i+a})},r.prototype.applyOffset=function(){this.resetLocation()},r.prototype.getDrawPoint=function(){return this.get("currentPoint")},r.prototype.setDrawPoint=function(t){return this.set("currentPoint",t)},r.prototype.renderInner=function(t){this.resetDraw(),this.get("title")&&this.drawTitle(t),this.drawLegendContent(t),this.get("background")&&this.drawBackground(t)},r.prototype.drawBackground=function(t){var i=this.get("background"),n=t.getBBox(),a=Bn(i.padding),o=(0,g.__assign)({x:0,y:0,width:n.width+a[1]+a[3],height:n.height+a[0]+a[2]},i.style),s=this.addShape(t,{type:"rect",id:this.getElementId("background"),name:"legend-background",attrs:o});s.toBack()},r.prototype.drawTitle=function(t){var i=this.get("currentPoint"),n=this.get("title"),a=n.spacing,o=n.style,s=n.text,l=this.addShape(t,{type:"text",id:this.getElementId("title"),name:"legend-title",attrs:(0,g.__assign)({text:s,x:i.x,y:i.y},o)}),u=l.getBBox();this.set("currentPoint",{x:i.x,y:u.maxY+a})},r.prototype.resetDraw=function(){var t=this.get("background"),i={x:0,y:0};if(t){var n=Bn(t.padding);i.x=n[3],i.y=n[0]}this.set("currentPoint",i)},r}(Me),Zl=Kp,yo={marker:{style:{inactiveFill:"#000",inactiveOpacity:.45,fill:"#000",opacity:1,size:12}},text:{style:{fill:"#ccc",fontSize:12}}},zn={fill:Gt.textColor,fontSize:12,textAlign:"start",textBaseline:"middle",fontFamily:Gt.fontFamily,fontWeight:"normal",lineHeight:12},mo="navigation-arrow-right",xo="navigation-arrow-left",ql={right:90*Math.PI/180,left:(360-90)*Math.PI/180,up:0,down:180*Math.PI/180},$p=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.currentPageIndex=1,t.totalPagesCnt=1,t.pageWidth=0,t.pageHeight=0,t.startX=0,t.startY=0,t.onNavigationBack=function(){var i=t.getElementByLocalId("item-group");if(t.currentPageIndex>1){t.currentPageIndex-=1,t.updateNavigation();var n=t.getCurrentNavigationMatrix();t.get("animate")?i.animate({matrix:n},100):i.attr({matrix:n})}},t.onNavigationAfter=function(){var i=t.getElementByLocalId("item-group");if(t.currentPageIndexx&&(x=M),d==="horizontal"?(m&&mu}if(s==="horizontal"){var A=this.get("maxRow")||1,O=d+(A===1?0:C),E=u-v-x.width-x.minX;this.pageHeight=O*A,this.pageWidth=E,(0,f.each)(l,function(X){var lt=X.getBBox(),pt=h||lt.width;(w&&wS&&(S=lt.width)}),b=S,S+=v,u&&(S=Math.min(u,S),b=Math.min(u,b)),this.pageWidth=S,this.pageHeight=c-Math.max(x.height,d+C);var z=Math.floor(this.pageHeight/(d+C));(0,f.each)(l,function(X,lt){lt!==0&<%z==0&&(_+=1,m.x+=S,m.y=o),n.moveElementTo(X,m),X.getParent().setClip({type:"rect",attrs:{x:m.x,y:m.y,width:S,height:d}}),m.y+=d+C}),this.totalPagesCnt=_,this.moveElementTo(y,{x:a+b/2-x.width/2-x.minX,y:c-x.height-x.minY})}this.pageHeight&&this.pageWidth&&i.getParent().setClip({type:"rect",attrs:{x:this.startX,y:this.startY,width:this.pageWidth,height:this.pageHeight}}),s==="horizontal"&&this.get("maxRow")?this.totalPagesCnt=Math.ceil(_/this.get("maxRow")):this.totalPagesCnt=_,this.currentPageIndex>this.totalPagesCnt&&(this.currentPageIndex=1),this.updateNavigation(y),i.attr("matrix",this.getCurrentNavigationMatrix())},r.prototype.drawNavigation=function(t,i,n,a){var o={x:0,y:0},s=this.addGroup(t,{id:this.getElementId("navigation-group"),name:"legend-navigation"}),l=(0,f.get)(a.marker,"style",{}),u=l.size,c=u===void 0?12:u,h=(0,g.__rest)(l,["size"]),v=this.drawArrow(s,o,xo,i==="horizontal"?"up":"left",c,h);v.on("click",this.onNavigationBack);var d=v.getBBox();o.x+=d.width+2;var p=this.addShape(s,{type:"text",id:this.getElementId("navigation-text"),name:"navigation-text",attrs:(0,g.__assign)({x:o.x,y:o.y+c/2,text:n,textBaseline:"middle"},(0,f.get)(a.text,"style"))}),y=p.getBBox();o.x+=y.width+2;var x=this.drawArrow(s,o,mo,i==="horizontal"?"down":"right",c,h);return x.on("click",this.onNavigationAfter),s},r.prototype.updateNavigation=function(t){var i=(0,f.deepMix)({},yo,this.get("pageNavigator")),n=i.marker.style,a=n.fill,o=n.opacity,s=n.inactiveFill,l=n.inactiveOpacity,u=this.currentPageIndex+"/"+this.totalPagesCnt,c=t?t.getChildren()[1]:this.getElementByLocalId("navigation-text"),h=t?t.findById(this.getElementId(xo)):this.getElementByLocalId(xo),v=t?t.findById(this.getElementId(mo)):this.getElementByLocalId(mo);c.attr("text",u),h.attr("opacity",this.currentPageIndex===1?l:o),h.attr("fill",this.currentPageIndex===1?s:a),h.attr("cursor",this.currentPageIndex===1?"not-allowed":"pointer"),v.attr("opacity",this.currentPageIndex===this.totalPagesCnt?l:o),v.attr("fill",this.currentPageIndex===this.totalPagesCnt?s:a),v.attr("cursor",this.currentPageIndex===this.totalPagesCnt?"not-allowed":"pointer");var d=h.getBBox().maxX+2;c.attr("x",d),d+=c.getBBox().width+2,this.updateArrowPath(v,{x:d,y:0})},r.prototype.drawArrow=function(t,i,n,a,o,s){var l=i.x,u=i.y,c=this.addShape(t,{type:"path",id:this.getElementId(n),name:n,attrs:(0,g.__assign)({size:o,direction:a,path:[["M",l+o/2,u],["L",l,u+o],["L",l+o,u+o],["Z"]],cursor:"pointer"},s)});return c.attr("matrix",Rr({x:l+o/2,y:u+o/2},ql[a])),c},r.prototype.updateArrowPath=function(t,i){var n=i.x,a=i.y,o=t.attr(),s=o.size,l=o.direction,u=Rr({x:n+s/2,y:a+s/2},ql[l]);t.attr("path",[["M",n+s/2,a],["L",n,a+s],["L",n+s,a+s],["Z"]]),t.attr("matrix",u)},r.prototype.getCurrentNavigationMatrix=function(){var t=this,i=t.currentPageIndex,n=t.pageWidth,a=t.pageHeight,o=this.get("layout"),s=o==="horizontal"?{x:0,y:a*(1-i)}:{x:n*(1-i),y:0};return ao(s)},r.prototype.applyItemStates=function(t,i){var n=this.getItemStates(t),a=n.length>0;if(a){var o=i.getChildren(),s=this.get("itemStates");(0,f.each)(o,function(l){var u=l.get("name"),c=u.split("-")[2],h=Wi(t,c,s);h&&(l.attr(h),c==="marker"&&!(l.get("isStroke")&&l.get("isFill"))&&(l.get("isStroke")&&l.attr("fill",null),l.get("isFill")&&l.attr("stroke",null)))})}},r.prototype.getLimitItemWidth=function(){var t=this.get("itemWidth"),i=this.get("maxItemWidth");return i?t&&(i=t<=i?t:i):t&&(i=t),i},r}(Zl),Qp=$p,Jp=1.4,jl=.4,ty=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,g.__assign)((0,g.__assign)({},t),{type:"continue",min:0,max:100,value:null,colors:[],track:{},rail:{},label:{},handler:{},slidable:!0,tip:null,step:null,maxWidth:null,maxHeight:null,defaultCfg:{label:{align:"rail",spacing:5,formatter:null,style:{fontSize:12,fill:Gt.textColor,textBaseline:"middle",fontFamily:Gt.fontFamily}},handler:{size:10,style:{fill:"#fff",stroke:"#333"}},track:{},rail:{type:"color",size:20,defaultLength:100,style:{fill:"#DCDEE2"}},title:{spacing:5,style:{fill:Gt.textColor,fontSize:12,textAlign:"start",textBaseline:"top"}}}})},r.prototype.isSlider=function(){return!0},r.prototype.getValue=function(){return this.getCurrentValue()},r.prototype.getRange=function(){return{min:this.get("min"),max:this.get("max")}},r.prototype.setRange=function(t,i){this.update({min:t,max:i})},r.prototype.setValue=function(t){var i=this.getValue();this.set("value",t);var n=this.get("group");this.resetTrackClip(),this.get("slidable")&&this.resetHandlers(n),this.delegateEmit("valuechanged",{originValue:i,value:t})},r.prototype.initEvent=function(){var t=this.get("group");this.bindSliderEvent(t),this.bindRailEvent(t),this.bindTrackEvent(t)},r.prototype.drawLegendContent=function(t){this.drawRail(t),this.drawLabels(t),this.fixedElements(t),this.resetTrack(t),this.resetTrackClip(t),this.get("slidable")&&this.resetHandlers(t)},r.prototype.bindSliderEvent=function(t){this.bindHandlersEvent(t)},r.prototype.bindHandlersEvent=function(t){var i=this;t.on("legend-handler-min:drag",function(n){var a=i.getValueByCanvasPoint(n.x,n.y),o=i.getCurrentValue(),s=o[1];sa&&(s=a),i.setValue([s,a])})},r.prototype.bindRailEvent=function(t){},r.prototype.bindTrackEvent=function(t){var i=this,n=null;t.on("legend-track:dragstart",function(a){n={x:a.x,y:a.y}}),t.on("legend-track:drag",function(a){if(!!n){var o=i.getValueByCanvasPoint(n.x,n.y),s=i.getValueByCanvasPoint(a.x,a.y),l=i.getCurrentValue(),u=l[1]-l[0],c=i.getRange(),h=s-o;h<0?l[0]+h>c.min?i.setValue([l[0]+h,l[1]+h]):i.setValue([c.min,c.min+u]):h>0&&(h>0&&l[1]+ho&&(h=o),h0&&this.changeRailLength(a,s,n[s]-d)}},r.prototype.changeRailLength=function(t,i,n){var a=t.getBBox(),o;i==="height"?o=this.getRailPath(a.x,a.y,a.width,n):o=this.getRailPath(a.x,a.y,n,a.height),t.attr("path",o)},r.prototype.changeRailPosition=function(t,i,n){var a=t.getBBox(),o=this.getRailPath(i,n,a.width,a.height);t.attr("path",o)},r.prototype.fixedHorizontal=function(t,i,n,a){var o=this.get("label"),s=o.align,l=o.spacing,u=n.getBBox(),c=t.getBBox(),h=i.getBBox(),v=u.height;this.fitRailLength(c,h,u,n),u=n.getBBox(),s==="rail"?(t.attr({x:a.x,y:a.y+v/2}),this.changeRailPosition(n,a.x+c.width+l,a.y),i.attr({x:a.x+c.width+u.width+l*2,y:a.y+v/2})):s==="top"?(t.attr({x:a.x,y:a.y}),i.attr({x:a.x+u.width,y:a.y}),this.changeRailPosition(n,a.x,a.y+c.height+l)):(this.changeRailPosition(n,a.x,a.y),t.attr({x:a.x,y:a.y+u.height+l}),i.attr({x:a.x+u.width,y:a.y+u.height+l}))},r.prototype.fixedVertail=function(t,i,n,a){var o=this.get("label"),s=o.align,l=o.spacing,u=n.getBBox(),c=t.getBBox(),h=i.getBBox();if(this.fitRailLength(c,h,u,n),u=n.getBBox(),s==="rail")t.attr({x:a.x,y:a.y}),this.changeRailPosition(n,a.x,a.y+c.height+l),i.attr({x:a.x,y:a.y+c.height+u.height+l*2});else if(s==="right")t.attr({x:a.x+u.width+l,y:a.y}),this.changeRailPosition(n,a.x,a.y),i.attr({x:a.x+u.width+l,y:a.y+u.height});else{var v=Math.max(c.width,h.width);t.attr({x:a.x,y:a.y}),this.changeRailPosition(n,a.x+v+l,a.y),i.attr({x:a.x,y:a.y+u.height})}},r}(Zl),ey=ty,sr="g2-tooltip",lr="g2-tooltip-title",Ui="g2-tooltip-list",Vn="g2-tooltip-list-item",Gn="g2-tooltip-marker",Wn="g2-tooltip-value",Kl="g2-tooltip-name",_o="g2-tooltip-crosshair-x",wo="g2-tooltip-crosshair-y",$e,ry=($e={},$e[""+sr]={position:"absolute",visibility:"visible",zIndex:8,transition:"visibility 0.2s cubic-bezier(0.23, 1, 0.32, 1), left 0.4s cubic-bezier(0.23, 1, 0.32, 1), top 0.4s cubic-bezier(0.23, 1, 0.32, 1)",backgroundColor:"rgba(255, 255, 255, 0.9)",boxShadow:"0px 0px 10px #aeaeae",borderRadius:"3px",color:"rgb(87, 87, 87)",fontSize:"12px",fontFamily:Gt.fontFamily,lineHeight:"20px",padding:"10px 10px 6px 10px"},$e[""+lr]={marginBottom:"4px"},$e[""+Ui]={margin:"0px",listStyleType:"none",padding:"0px"},$e[""+Vn]={listStyleType:"none",marginBottom:"4px"},$e[""+Gn]={width:"8px",height:"8px",borderRadius:"50%",display:"inline-block",marginRight:"8px"},$e[""+Wn]={display:"inline-block",float:"right",marginLeft:"30px"},$e[""+_o]={position:"absolute",width:"1px",backgroundColor:"rgba(0, 0, 0, 0.25)"},$e[""+wo]={position:"absolute",height:"1px",backgroundColor:"rgba(0, 0, 0, 0.25)"},$e);function iy(e,r,t,i,n){var a={left:en.x+n.width,top:rn.y+n.height};return a}function ny(e,r,t,i,n,a){var o=e,s=r;switch(a){case"left":o=e-i-t,s=r-n/2;break;case"right":o=e+t,s=r-n/2;break;case"top":o=e-i/2,s=r-n-t;break;case"bottom":o=e-i/2,s=r+t;break;default:o=e+t,s=r-n-t;break}return{x:o,y:s}}function ay(e,r,t,i,n,a,o){var s=ny(e,r,t,i,n,a);if(o){var l=iy(s.x,s.y,i,n,o);a==="auto"?(l.right&&(s.x=Math.max(0,e-i-t)),l.top&&(s.y=Math.max(0,r-n-t))):a==="top"||a==="bottom"?(l.left&&(s.x=o.x),l.right&&(s.x=o.x+o.width-i),a==="top"&&l.top&&(s.y=r+t),a==="bottom"&&l.bottom&&(s.y=r-n-t)):(l.top&&(s.y=o.y),l.bottom&&(s.y=o.y+o.height-n),a==="left"&&l.left&&(s.x=e+t),a==="right"&&l.right&&(s.x=e-i-t))}return s}function oy(e,r){var t=!1;return(0,f.each)(r,function(i){if((0,f.hasKey)(e,i))return t=!0,!1}),t}var sy=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,g.__assign)((0,g.__assign)({},t),{name:"tooltip",type:"html",x:0,y:0,items:[],customContent:null,containerTpl:'
      ',itemTpl:'
    • + + {name}: + {value} +
    • `,xCrosshairTpl:'
      ',yCrosshairTpl:'
      ',title:null,showTitle:!0,region:null,crosshairsRegion:null,containerClassName:sr,crosshairs:null,offset:10,position:"right",domStyles:null,defaultStyles:ry})},r.prototype.render=function(){this.get("customContent")?this.renderCustomContent():(this.resetTitle(),this.renderItems()),this.resetPosition()},r.prototype.clear=function(){this.clearCrosshairs(),this.setTitle(""),this.clearItemDoms()},r.prototype.show=function(){var t=this.getContainer();!t||this.destroyed||(this.set("visible",!0),(0,k.Z)(t,{visibility:"visible"}),this.setCrossHairsVisible(!0))},r.prototype.hide=function(){var t=this.getContainer();!t||this.destroyed||(this.set("visible",!1),(0,k.Z)(t,{visibility:"hidden"}),this.setCrossHairsVisible(!1))},r.prototype.getLocation=function(){return{x:this.get("x"),y:this.get("y")}},r.prototype.setLocation=function(t){this.set("x",t.x),this.set("y",t.y),this.resetPosition()},r.prototype.setCrossHairsVisible=function(t){var i=t?"":"none",n=this.get("xCrosshairDom"),a=this.get("yCrosshairDom");n&&(0,k.Z)(n,{display:i}),a&&(0,k.Z)(a,{display:i})},r.prototype.initContainer=function(){if(e.prototype.initContainer.call(this),this.get("customContent")){this.get("container")&&this.get("container").remove();var t=this.getHtmlContentNode();this.get("parent").appendChild(t),this.set("container",t),this.resetStyles(),this.applyStyles()}},r.prototype.updateInner=function(t){this.get("customContent")?this.renderCustomContent():(oy(t,["title","showTitle"])&&this.resetTitle(),(0,f.hasKey)(t,"items")&&this.renderItems()),e.prototype.updateInner.call(this,t)},r.prototype.initDom=function(){this.cacheDoms()},r.prototype.removeDom=function(){e.prototype.removeDom.call(this),this.clearCrosshairs()},r.prototype.resetPosition=function(){var t=this.get("x"),i=this.get("y"),n=this.get("offset"),a=this.getOffset(),o=a.offsetX,s=a.offsetY,l=this.get("position"),u=this.get("region"),c=this.getContainer(),h=this.getBBox(),v=h.width,d=h.height,p;u&&(p=zi(u));var y=ay(t,i,n,v,d,l,p);(0,k.Z)(c,{left:Le(y.x+o),top:Le(y.y+s)}),this.resetCrosshairs()},r.prototype.renderCustomContent=function(){var t=this.getHtmlContentNode(),i=this.get("parent"),n=this.get("container");n&&n.parentNode===i?i.replaceChild(t,n):i.appendChild(t),this.set("container",t),this.resetStyles(),this.applyStyles()},r.prototype.getHtmlContentNode=function(){var t,i=this.get("customContent");if(i){var n=i(this.get("title"),this.get("items"));(0,f.isElement)(n)?t=n:t=(0,L.Z)(n)}return t},r.prototype.cacheDoms=function(){var t=this.getContainer(),i=t.getElementsByClassName(lr)[0],n=t.getElementsByClassName(Ui)[0];this.set("titleDom",i),this.set("listDom",n)},r.prototype.resetTitle=function(){var t=this.get("title"),i=this.get("showTitle");i&&t?this.setTitle(t):this.setTitle("")},r.prototype.setTitle=function(t){var i=this.get("titleDom");i&&(i.innerText=t)},r.prototype.resetCrosshairs=function(){var t=this.get("crosshairsRegion"),i=this.get("crosshairs");if(!t||!i)this.clearCrosshairs();else{var n=zi(t),a=this.get("xCrosshairDom"),o=this.get("yCrosshairDom");i==="x"?(this.resetCrosshair("x",n),o&&(o.remove(),this.set("yCrosshairDom",null))):i==="y"?(this.resetCrosshair("y",n),a&&(a.remove(),this.set("xCrosshairDom",null))):(this.resetCrosshair("x",n),this.resetCrosshair("y",n)),this.setCrossHairsVisible(this.get("visible"))}},r.prototype.resetCrosshair=function(t,i){var n=this.checkCrosshair(t),a=this.get(t);t==="x"?(0,k.Z)(n,{left:Le(a),top:Le(i.y),height:Le(i.height)}):(0,k.Z)(n,{top:Le(a),left:Le(i.x),width:Le(i.width)})},r.prototype.checkCrosshair=function(t){var i=t+"CrosshairDom",n=t+"CrosshairTpl",a="CROSSHAIR_"+t.toUpperCase(),o=rt[a],s=this.get(i),l=this.get("parent");return s||(s=(0,L.Z)(this.get(n)),this.applyStyle(o,s),l.appendChild(s),this.set(i,s)),s},r.prototype.renderItems=function(){this.clearItemDoms();var t=this.get("items"),i=this.get("itemTpl"),n=this.get("listDom");n&&((0,f.each)(t,function(a){var o=xr.toCSSGradient(a.color),s=(0,g.__assign)((0,g.__assign)({},a),{color:o}),l=(0,f.substitute)(i,s),u=(0,L.Z)(l);n.appendChild(u)}),this.applyChildrenStyles(n,this.get("domStyles")))},r.prototype.clearItemDoms=function(){this.get("listDom")&&so(this.get("listDom"))},r.prototype.clearCrosshairs=function(){var t=this.get("xCrosshairDom"),i=this.get("yCrosshairDom");t&&t.remove(),i&&i.remove(),this.set("xCrosshairDom",null),this.set("yCrosshairDom",null)},r}(co),ly=sy,uy={opacity:0},cy={stroke:"#C5C5C5",strokeOpacity:.85},hy={fill:"#CACED4",opacity:.85},fy=/[MLHVQTCSAZ]([^MLHVQTCSAZ]*)/ig,vy=/[^\s\,]+/ig;function aI(e){var r=e||[];if(isArray(r))return r;if(isString(r))return r=r.match(fy),each(r,function(t,i){if(t=t.match(vy),t[0].length>1){var n=t[0].charAt(0);t.splice(1,0,t[0].substr(1)),t[0]=n}each(t,function(a,o){isNaN(a)||(t[o]=+a)}),r[i]=t}),r}var oI=null;function dy(e,r,t,i){var n=[],a=!!i,o,s,l,u,c,h,v;if(a){l=i[0],u=i[1];for(var d=0,p=e.length;d=0;l--)o=a[l].index,a[l].type==="add"?e.splice(o,0,[].concat(e[o])):e.splice(o,1)}if(i=e.length,i2&&(t.push([n].concat(o.splice(0,2))),s="l",n=n==="m"?"l":"L"),s==="o"&&o.length===1&&t.push([n,o[0]]),s==="r")t.push([n].concat(o));else for(;o.length>=r[s]&&(t.push([n].concat(o.splice(0,r[s]))),!!r[s]););return""}),t}var wy=/[a-z]/;function $l(e,r){return[r[0]+(r[0]-e[0]),r[1]+(r[1]-e[1])]}function uI(e){var r=parsePathString(e);if(!r||!r.length)return[["M",0,0]];for(var t=!1,i=0;i=0){t=!0;break}}if(!t)return r;var a=[],o=0,s=0,l=0,u=0,c=0,h,v,d=r[0];(d[0]==="M"||d[0]==="m")&&(o=+d[1],s=+d[2],l=o,u=s,c++,a[0]=["M",o,s]);for(var i=c,p=r.length;i1&&(a=1),a<-1&&(a=-1),n*Math.acos(a)},by=function(e,r,t,i,n,a,o,s,l,u,c,h){var v=Math.pow(n,2),d=Math.pow(a,2),p=Math.pow(c,2),y=Math.pow(h,2),x=v*d-v*y-d*p;x<0&&(x=0),x/=v*y+d*p,x=Math.sqrt(x)*(o===s?-1:1);var m=x*n/a*h,_=x*-a/n*c,w=u*m-l*_+(e+t)/2,S=l*m+u*_+(r+i)/2,b=(c-m)/n,C=(h-_)/a,M=(-c-m)/n,A=(-h-_)/a,O=Ql(1,0,b,C),E=Ql(b,C,M,A);return s===0&&E>0&&(E-=qi),s===1&&E<0&&(E+=qi),[w,S,O,E]},Cy=function(e){var r=e.px,t=e.py,i=e.cx,n=e.cy,a=e.rx,o=e.ry,s=e.xAxisRotation,l=s===void 0?0:s,u=e.largeArcFlag,c=u===void 0?0:u,h=e.sweepFlag,v=h===void 0?0:h,d=[];if(a===0||o===0)return[{x1:0,y1:0,x2:0,y2:0,x:i,y:n}];var p=Math.sin(l*qi/360),y=Math.cos(l*qi/360),x=y*(r-i)/2+p*(t-n)/2,m=-p*(r-i)/2+y*(t-n)/2;if(x===0&&m===0)return[{x1:0,y1:0,x2:0,y2:0,x:i,y:n}];a=Math.abs(a),o=Math.abs(o);var _=Math.pow(x,2)/Math.pow(a,2)+Math.pow(m,2)/Math.pow(o,2);_>1&&(a*=Math.sqrt(_),o*=Math.sqrt(_));var w=by(r,t,i,n,a,o,c,v,p,y,x,m),S=w[0],b=w[1],C=w[2],M=w[3],A=Math.abs(M)/(qi/4);Math.abs(1-A)<1e-7&&(A=1);var O=Math.max(Math.ceil(A),1);M/=O;for(var E=0;E7){e[t].shift();for(var i=e[t],n=t;i.length;)r[t]="A",e.splice(n+=1,0,["C"].concat(i.splice(0,6)));e.splice(t,1)}}var Jl=function(e,r,t,i,n){var a=-3*r+9*t-9*i+3*n,o=e*a+6*r-12*t+6*i;return e*o-3*r+3*t},tu=function(e,r,t,i,n,a,o,s,l){l===null&&(l=1),l=l>1?1:l<0?0:l;for(var u=l/2,c=12,h=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],v=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],d=0,p=0;p0&&d<1&&l.push(d);continue}var y=h*h-4*v*c,x=Math.sqrt(y);if(!(y<0)){var m=(-h+x)/(2*c);m>0&&m<1&&l.push(m);var _=(-h-x)/(2*c);_>0&&_<1&&l.push(_)}}for(var w=l.length,S=w,b;w--;)d=l[w],b=1-d,u[0][w]=b*b*b*e+3*b*b*d*t+3*b*d*d*n+d*d*d*o,u[1][w]=b*b*b*r+3*b*b*d*i+3*b*d*d*a+d*d*d*s;return u[0][S]=e,u[1][S]=r,u[0][S+1]=o,u[1][S+1]=s,u[0].length=u[1].length=S+2,{min:{x:Math.min.apply(0,u[0]),y:Math.min.apply(0,u[1])},max:{x:Math.max.apply(0,u[0]),y:Math.max.apply(0,u[1])}}},Fy=function(e,r,t,i,n,a,o,s){if(!(Math.max(e,t)Math.max(n,o)||Math.max(r,i)Math.max(a,s))){var l=(e*i-r*t)*(n-o)-(e-t)*(n*s-a*o),u=(e*i-r*t)*(a-s)-(r-i)*(n*s-a*o),c=(e-t)*(a-s)-(r-i)*(n-o);if(!!c){var h=l/c,v=u/c,d=+h.toFixed(2),p=+v.toFixed(2);if(!(d<+Math.min(e,t).toFixed(2)||d>+Math.max(e,t).toFixed(2)||d<+Math.min(n,o).toFixed(2)||d>+Math.max(n,o).toFixed(2)||p<+Math.min(r,i).toFixed(2)||p>+Math.max(r,i).toFixed(2)||p<+Math.min(a,s).toFixed(2)||p>+Math.max(a,s).toFixed(2)))return{x:h,y:v}}}},_r=function(e,r,t){return r>=e.x&&r<=e.x+e.width&&t>=e.y&&t<=e.y+e.height},bo=function(e,r,t,i){return e===null&&(e=r=t=i=0),r===null&&(r=e.y,t=e.width,i=e.height,e=e.x),{x:e,y:r,width:t,w:t,height:i,h:i,x2:e+t,y2:r+i,cx:e+t/2,cy:r+i/2,r1:Math.min(t,i)/2,r2:Math.max(t,i)/2,r0:Math.sqrt(t*t+i*i)/2,path:rectPath(e,r,t,i),vb:[e,r,t,i].join(" ")}},Ey=function(e,r){return e=bo(e),r=bo(r),_r(r,e.x,e.y)||_r(r,e.x2,e.y)||_r(r,e.x,e.y2)||_r(r,e.x2,e.y2)||_r(e,r.x,r.y)||_r(e,r.x2,r.y)||_r(e,r.x,r.y2)||_r(e,r.x2,r.y2)||(e.xr.x||r.xe.x)&&(e.yr.y||r.ye.y)},eu=function(e,r,t,i,n,a,o,s){isArray(e)||(e=[e,r,t,i,n,a,o,s]);var l=Ay.apply(null,e);return bo(l.min.x,l.min.y,l.max.x-l.min.x,l.max.y-l.min.y)},ru=function(e,r,t,i,n,a,o,s,l){var u=1-l,c=Math.pow(u,3),h=Math.pow(u,2),v=l*l,d=v*l,p=c*e+h*3*l*t+u*3*l*l*n+d*o,y=c*r+h*3*l*i+u*3*l*l*a+d*s,x=e+2*l*(t-e)+v*(n-2*t+e),m=r+2*l*(i-r)+v*(a-2*i+r),_=t+2*l*(n-t)+v*(o-2*n+t),w=i+2*l*(a-i)+v*(s-2*a+i),S=u*e+l*t,b=u*r+l*i,C=u*n+l*o,M=u*a+l*s,A=90-Math.atan2(x-_,m-w)*180/Math.PI;return{x:p,y,m:{x,y:m},n:{x:_,y:w},start:{x:S,y:b},end:{x:C,y:M},alpha:A}},Ty=function(e,r,t){var i=eu(e),n=eu(r);if(!Ey(i,n))return t?0:[];for(var a=tu.apply(0,e),o=tu.apply(0,r),s=~~(a/8),l=~~(o/8),u=[],c=[],h={},v=t?0:[],d=0;d=0&&M<=1&&A>=0&&A<=1&&(t?v++:v.push({x:C.x,y:C.y,t1:M,t2:A}))}}return v},Ly=function(e,r,t){e=path2Curve(e),r=path2Curve(r);for(var i,n,a,o,s,l,u,c,h,v,d=t?0:[],p=0,y=e.length;p1&&(t*=Math.sqrt(d),i*=Math.sqrt(d));var p=t*t*(v*v)+i*i*(h*h),y=p?Math.sqrt((t*t*(i*i)-p)/p):1;a===o&&(y*=-1),isNaN(y)&&(y=0);var x=i?y*t*v/i:0,m=t?y*-i*h/t:0,_=(s+u)/2+Math.cos(n)*x-Math.sin(n)*m,w=(l+c)/2+Math.sin(n)*x+Math.cos(n)*m,S=[(h-x)/t,(v-m)/i],b=[(-1*h-x)/t,(-1*v-m)/i],C=iu([1,0],S),M=iu(S,b);return Co(S,b)<=-1&&(M=Math.PI),Co(S,b)>=1&&(M=0),o===0&&M>0&&(M=M-2*Math.PI),o===1&&M<0&&(M=M+2*Math.PI),{cx:_,cy:w,rx:nu(e,[u,c])?0:t,ry:nu(e,[u,c])?0:i,startAngle:C,endAngle:C+M,xRotation:n,arcFlag:a,sweepFlag:o}}function au(e,r){return[r[0]+(r[0]-e[0]),r[1]+(r[1]-e[1])]}function gI(e){e=parsePath(e);for(var r=[],t=null,i=null,n=null,a=0,o=e.length,s=0;s1){var o=e[0],s=e[t-1];r.push({from:{x:s[0],y:s[1]},to:{x:o[0],y:o[1]}})}return r}function Iy(e,r){var t=!1;return each(e,function(i){if(getLineIntersect(i.from,i.to,r.from,r.to))return t=!0,!1}),t}function su(e){var r=e.map(function(i){return i[0]}),t=e.map(function(i){return i[1]});return{minX:Math.min.apply(null,r),maxX:Math.max.apply(null,r),minY:Math.min.apply(null,t),maxY:Math.max.apply(null,t)}}function Oy(e,r){return!(r.minX>e.maxX||r.maxXe.maxY||r.maxYd&&(a=[d,v],v=a[0],d=a[1],o=[n,i],i=o[0],n=o[1],p=!0);var y=i.getBBox(),x=n.getBBox(),m=y.width>v-c?{x:v+h/2+c,textAlign:"left"}:{x:v-h/2-c,textAlign:"right"},_=x.width>u-d-c?{x:d-h/2-c,textAlign:"right"}:{x:d+h/2+c,textAlign:"left"};return p?[_,m]:[m,_]},r.prototype.draw=function(){var t=this.get("container"),i=t&&t.get("canvas");i&&i.draw()},r.prototype.getContainerDOM=function(){var t=this.get("container"),i=t&&t.get("canvas");return i&&i.get("container")},r}(Me),xI=null,ui=F(57817),Xy={trackColor:"rgba(0,0,0,0)",thumbColor:"rgba(0,0,0,0.15)",size:8,lineCap:"round"},Mo={default:Xy,hover:{thumbColor:"rgba(0,0,0,0.2)"}},Uy=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.clearEvents=f.noop,t.onStartEvent=function(i){return function(n){t.isMobile=i,n.originalEvent.preventDefault();var a=i?(0,f.get)(n.originalEvent,"touches.0.clientX"):n.clientX,o=i?(0,f.get)(n.originalEvent,"touches.0.clientY"):n.clientY;t.startPos=t.cfg.isHorizontal?a:o,t.bindLaterEvent()}},t.bindLaterEvent=function(){var i=t.getContainerDOM(),n=[];t.isMobile?n=[(0,ui.Z)(i,"touchmove",t.onMouseMove),(0,ui.Z)(i,"touchend",t.onMouseUp),(0,ui.Z)(i,"touchcancel",t.onMouseUp)]:n=[(0,ui.Z)(i,"mousemove",t.onMouseMove),(0,ui.Z)(i,"mouseup",t.onMouseUp),(0,ui.Z)(i,"mouseleave",t.onMouseUp)],t.clearEvents=function(){n.forEach(function(a){a.remove()})}},t.onMouseMove=function(i){var n=t.cfg,a=n.isHorizontal,o=n.thumbOffset;i.preventDefault();var s=t.isMobile?(0,f.get)(i,"touches.0.clientX"):i.clientX,l=t.isMobile?(0,f.get)(i,"touches.0.clientY"):i.clientY,u=a?s:l,c=u-t.startPos;t.startPos=u,t.updateThumbOffset(o+c)},t.onMouseUp=function(i){i.preventDefault(),t.clearEvents()},t.onTrackClick=function(i){var n=t.cfg,a=n.isHorizontal,o=n.x,s=n.y,l=n.thumbLen,u=t.getContainerDOM(),c=u.getBoundingClientRect(),h=i.clientX,v=i.clientY,d=a?h-c.left-o-l/2:v-c.top-s-l/2,p=t.validateRange(d);t.updateThumbOffset(p)},t.onThumbMouseOver=function(){var i=t.cfg.theme.hover.thumbColor;t.getElementByLocalId("thumb").attr("stroke",i),t.draw()},t.onThumbMouseOut=function(){var i=t.cfg.theme.default.thumbColor;t.getElementByLocalId("thumb").attr("stroke",i),t.draw()},t}return r.prototype.setRange=function(t,i){this.set("minLimit",t),this.set("maxLimit",i);var n=this.getValue(),a=(0,f.clamp)(n,t,i);n!==a&&!this.get("isInit")&&this.setValue(a)},r.prototype.getRange=function(){var t=this.get("minLimit")||0,i=this.get("maxLimit")||1;return{min:t,max:i}},r.prototype.setValue=function(t){var i=this.getRange(),n=this.getValue();this.update({thumbOffset:(this.get("trackLen")-this.get("thumbLen"))*(0,f.clamp)(t,i.min,i.max)}),this.delegateEmit("valuechange",{originalValue:n,value:this.getValue()})},r.prototype.getValue=function(){return(0,f.clamp)(this.get("thumbOffset")/(this.get("trackLen")-this.get("thumbLen")),0,1)},r.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,g.__assign)((0,g.__assign)({},t),{name:"scrollbar",isHorizontal:!0,minThumbLen:20,thumbOffset:0,theme:Mo})},r.prototype.renderInner=function(t){this.renderTrackShape(t),this.renderThumbShape(t)},r.prototype.applyOffset=function(){this.moveElementTo(this.get("group"),{x:this.get("x"),y:this.get("y")})},r.prototype.initEvent=function(){this.bindEvents()},r.prototype.renderTrackShape=function(t){var i=this.cfg,n=i.trackLen,a=i.theme,o=a===void 0?{default:{}}:a,s=(0,f.deepMix)({},Mo,o).default,l=s.lineCap,u=s.trackColor,c=s.size,h=(0,f.get)(this.cfg,"size",c),v=this.get("isHorizontal")?{x1:0+h/2,y1:h/2,x2:n-h/2,y2:h/2,lineWidth:h,stroke:u,lineCap:l}:{x1:h/2,y1:0+h/2,x2:h/2,y2:n-h/2,lineWidth:h,stroke:u,lineCap:l};return this.addShape(t,{id:this.getElementId("track"),name:"track",type:"line",attrs:v})},r.prototype.renderThumbShape=function(t){var i=this.cfg,n=i.thumbOffset,a=i.thumbLen,o=i.theme,s=(0,f.deepMix)({},Mo,o).default,l=s.size,u=s.lineCap,c=s.thumbColor,h=(0,f.get)(this.cfg,"size",l),v=this.get("isHorizontal")?{x1:n+h/2,y1:h/2,x2:n+a-h/2,y2:h/2,lineWidth:h,stroke:c,lineCap:u,cursor:"default"}:{x1:h/2,y1:n+h/2,x2:h/2,y2:n+a-h/2,lineWidth:h,stroke:c,lineCap:u,cursor:"default"};return this.addShape(t,{id:this.getElementId("thumb"),name:"thumb",type:"line",attrs:v})},r.prototype.bindEvents=function(){var t=this.get("group");t.on("mousedown",this.onStartEvent(!1)),t.on("mouseup",this.onMouseUp),t.on("touchstart",this.onStartEvent(!0)),t.on("touchend",this.onMouseUp);var i=t.findById(this.getElementId("track"));i.on("click",this.onTrackClick);var n=t.findById(this.getElementId("thumb"));n.on("mouseover",this.onThumbMouseOver),n.on("mouseout",this.onThumbMouseOut)},r.prototype.getContainerDOM=function(){var t=this.get("container"),i=t&&t.get("canvas");return i&&i.get("container")},r.prototype.validateRange=function(t){var i=this.cfg,n=i.thumbLen,a=i.trackLen,o=t;return t+n>a?o=a-n:t+na.x?a.x:r,t=ta.y?a.y:i,n=n=i&&e<=n}function t0(e,r,t){if((0,f.isString)(e))return e.padEnd(r,t);if((0,f.isArray)(e)){var i=e.length;if(i=this.minX&&r.maxX<=this.maxX&&r.minY>=this.minY&&r.maxY<=this.maxY},e.prototype.clone=function(){return new e(this.x,this.y,this.width,this.height)},e.prototype.add=function(){for(var r=[],t=0;tr.minX&&this.minYr.minY},e.prototype.size=function(){return this.width*this.height},e.prototype.isPointIn=function(r){return r.x>=this.minX&&r.x<=this.maxX&&r.y>=this.minY&&r.y<=this.maxY},e}(),_I=function(e,r){var t=r.start,i=r.end;return new Ee(e.x+e.width*t.x,e.y+e.height*t.y,e.width*Math.abs(i.x-t.x),e.height*Math.abs(i.y-t.y))};function e0(e){return[[e.minX,e.minY],[e.maxX,e.minY],[e.maxX,e.maxY],[e.minX,e.maxY]]}function Ki(e){if(e.isPolar&&!e.isTransposed)return(e.endAngle-e.startAngle)*e.getRadius();var r=e.convert({x:0,y:0}),t=e.convert({x:1,y:0});return Math.sqrt(Math.pow(t.x-r.x,2)+Math.pow(t.y-r.y,2))}function r0(e){if(e.isPolar){var r=e.startAngle,t=e.endAngle;return t-r==Math.PI*2}return!1}function Un(e,r){var t=e.getCenter();return Math.sqrt(Math.pow(r.x-t.x,2)+Math.pow(r.y-t.y,2))}function i0(e,r){var t=!1;if(e)if(e.type==="theta"){var i=e.start,n=e.end;t=ci(r.x,i.x,n.x)&&ci(r.y,i.y,n.y)}else{var a=e.invert(r);t=ci(a.x,0,1)&&ci(a.y,0,1)}return t}function hi(e,r){var t=e.getCenter();return Math.atan2(r.y-t.y,r.x-t.x)}function Ao(e,r){r===void 0&&(r=0);var t=e.start,i=e.end,n=e.getWidth(),a=e.getHeight();if(e.isPolar){var o=e.startAngle,s=e.endAngle,l=e.getCenter(),u=e.getRadius();return{type:"path",startState:{path:wr(l.x,l.y,u+r,o,o)},endState:function(h){var v=(s-o)*h+o,d=wr(l.x,l.y,u+r,o,v);return{path:d}},attrs:{path:wr(l.x,l.y,u+r,o,s)}}}var c;return e.isTransposed?c={height:a+r*2}:c={width:n+r*2},{type:"rect",startState:{x:t.x-r,y:i.y-r,width:e.isTransposed?n+r*2:0,height:e.isTransposed?0:a+r*2},endState:c,attrs:{x:t.x-r,y:i.y-r,width:n+r*2,height:a+r*2}}}function n0(e,r){r===void 0&&(r=0);var t=e.start,i=e.end,n=e.getWidth(),a=e.getHeight(),o=Math.min(t.x,i.x),s=Math.min(t.y,i.y);return Ee.fromRange(o-r,s-r,o+n+r,s+a+r)}var a0=/^(?:(?!0000)[0-9]{4}([-/.]+)(?:(?:0?[1-9]|1[0-2])\1(?:0?[1-9]|1[0-9]|2[0-8])|(?:0?[13-9]|1[0-2])\1(?:29|30)|(?:0?[13578]|1[02])\1(?:31))|(?:[0-9]{2}(?:0[48]|[2468][048]|[13579][26])|(?:0[48]|[2468][048]|[13579][26])00)([-/.]+)0?2\2(?:29))(\s+([01]|([01][0-9]|2[0-3])):([0-9]|[0-5][0-9]):([0-9]|[0-5][0-9]))?$/;function o0(e){var r="linear";return a0.test(e)?r="timeCat":(0,f.isString)(e)&&(r="cat"),r}function pu(e,r,t,i){return r===void 0&&(r={}),r.type?r.type:e.type!=="identity"&&Ct.includes(t)&&["interval"].includes(i)||e.isCategory?"cat":e.type}function s0(e,r,t){var i=r||[];if((0,f.isNumber)(e)||(0,f.isNil)((0,f.firstValue)(i,e))&&(0,f.isEmpty)(t)){var n=(0,Ri.yZ)("identity");return new n({field:e.toString(),values:[e]})}var a=(0,f.valuesOfKey)(i,e),o=(0,f.get)(t,"type",o0(a[0])),s=(0,Ri.yZ)(o);return new s((0,g.__assign)({field:e,values:a},t))}function l0(e,r){if(e.type!=="identity"&&r.type!=="identity"){var t={};for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i]);e.change(t)}}function $i(e){return e.alias||e.field}function yu(e,r,t){var i=e.values,n=i.length,a;if(n===1)a=[.5,1];else{var o=1,s=0;r0(r)?r.isTransposed?(o=(0,f.get)(t,"widthRatio.multiplePie",1/1.3),s=1/n*o,a=[s/2,1-s/2]):a=[0,1-1/n]:(s=1/n/2,a=[s,1-s])}return a}function u0(e){var r=e.values.filter(function(t){return!(0,f.isNil)(t)&&!isNaN(t)});return Math.max.apply(Math,(0,g.__spreadArray)((0,g.__spreadArray)([],(0,g.__read)(r),!1),[(0,f.isNil)(e.max)?-Infinity:e.max],!1))}function c0(e){var r,t;switch(e){case T.TOP:r={x:0,y:1},t={x:1,y:1};break;case T.RIGHT:r={x:1,y:0},t={x:1,y:1};break;case T.BOTTOM:r={x:0,y:0},t={x:1,y:0};break;case T.LEFT:r={x:0,y:0},t={x:0,y:1};break;default:r=t={x:0,y:0}}return{start:r,end:t}}function h0(e){var r,t;return e.isTransposed?(r={x:0,y:0},t={x:1,y:0}):(r={x:0,y:0},t={x:0,y:1}),{start:r,end:t}}function Zn(e,r){var t={start:{x:0,y:0},end:{x:0,y:0}};e.isRect?t=c0(r):e.isPolar&&(t=h0(e));var i=t.start,n=t.end;return{start:e.convert(i),end:e.convert(n)}}function wI(e,r){if(e.isRect)return e.isTransposed?[DIRECTION.RIGHT,DIRECTION.BOTTOM].includes(r)?1:-1:[DIRECTION.BOTTOM,DIRECTION.RIGHT].includes(r)?-1:1;if(e.isPolar){var t=e.x.start;return t<0?-1:1}return 1}function mu(e){var r=e.start,t=e.end;return r.x===t.x}function xu(e,r){var t=e.start,i=e.end,n=mu(e);return n?(t.y-i.y)*(r.x-t.x)>0?1:-1:(i.x-t.x)*(t.y-r.y)>0?-1:1}function qn(e,r){var t=(0,f.get)(e,["components","axis"],{});return(0,f.deepMix)({},(0,f.get)(t,["common"],{}),(0,f.deepMix)({},(0,f.get)(t,[r],{})))}function _u(e,r,t){var i=(0,f.get)(e,["components","axis"],{});return(0,f.deepMix)({},(0,f.get)(i,["common","title"],{}),(0,f.deepMix)({},(0,f.get)(i,[r,"title"],{})),t)}function Fo(e){var r=e.x,t=e.y,i=e.circleCenter,n=t.start>t.end,a=e.isTransposed?e.convert({x:n?0:1,y:0}):e.convert({x:0,y:n?0:1}),o=[a.x-i.x,a.y-i.y],s=[1,0],l=a.y>i.y?ht.angle(o,s):ht.angle(o,s)*-1,u=l+(r.end-r.start),c=Math.sqrt(Math.pow(a.x-i.x,2)+Math.pow(a.y-i.y,2));return{center:i,radius:c,startAngle:l,endAngle:u}}function jn(e,r){return(0,f.isBoolean)(e)?e===!1?!1:{}:(0,f.get)(e,[r])}function wu(e,r){return(0,f.get)(e,"position",r)}function Su(e,r){return(0,f.get)(r,["title","text"],$i(e))}var fi=function(){function e(r,t){this.destroyed=!1,this.facets=[],this.view=r,this.cfg=(0,f.deepMix)({},this.getDefaultCfg(),t)}return e.prototype.init=function(){this.container||(this.container=this.createContainer());var r=this.view.getData();this.facets=this.generateFacets(r)},e.prototype.render=function(){this.renderViews()},e.prototype.update=function(){},e.prototype.clear=function(){this.clearFacetViews()},e.prototype.destroy=function(){this.clear(),this.container&&(this.container.remove(!0),this.container=void 0),this.destroyed=!0,this.view=void 0,this.facets=[]},e.prototype.facetToView=function(r){var t=r.region,i=r.data,n=r.padding,a=n===void 0?this.cfg.padding:n,o=this.view.createView({region:t,padding:a});o.data(i||[]),r.view=o,this.beforeEachView(o,r);var s=this.cfg.eachView;return s&&s(o,r),this.afterEachView(o,r),o},e.prototype.createContainer=function(){var r=this.view.getLayer(tt.FORE);return r.addGroup()},e.prototype.renderViews=function(){this.createFacetViews()},e.prototype.createFacetViews=function(){var r=this;return this.facets.map(function(t){return r.facetToView(t)})},e.prototype.clearFacetViews=function(){var r=this;(0,f.each)(this.facets,function(t){t.view&&(r.view.removeView(t.view),t.view=void 0)})},e.prototype.parseSpacing=function(){var r=this.view.viewBBox,t=r.width,i=r.height,n=this.cfg.spacing;return n.map(function(a,o){return(0,f.isNumber)(a)?a/(o===0?t:i):parseFloat(a)/100})},e.prototype.getFieldValues=function(r,t){var i=[],n={};return(0,f.each)(r,function(a){var o=a[t];!(0,f.isNil)(o)&&!n[o]&&(i.push(o),n[o]=!0)}),i},e.prototype.getRegion=function(r,t,i,n){var a=(0,g.__read)(this.parseSpacing(),2),o=a[0],s=a[1],l=(1+o)/(t===0?1:t)-o,u=(1+s)/(r===0?1:r)-s,c={x:(l+o)*i,y:(u+s)*n},h={x:c.x+l,y:c.y+u};return{start:c,end:h}},e.prototype.getDefaultCfg=function(){return{eachView:void 0,showTitle:!0,spacing:[0,0],padding:10,fields:[]}},e.prototype.getDefaultTitleCfg=function(){var r=this.view.getTheme().fontFamily;return{style:{fontSize:14,fill:"#666",fontFamily:r}}},e.prototype.processAxis=function(r,t){var i=r.getOptions(),n=i.coordinate,a=r.geometries,o=(0,f.get)(n,"type","rect");if(o==="rect"&&a.length){(0,f.isNil)(i.axes)&&(i.axes={});var s=i.axes,l=(0,g.__read)(a[0].getXYFields(),2),u=l[0],c=l[1],h=jn(s,u),v=jn(s,c);h!==!1&&(i.axes[u]=this.getXAxisOption(u,s,h,t)),v!==!1&&(i.axes[c]=this.getYAxisOption(c,s,v,t))}},e.prototype.getFacetDataFilter=function(r){return function(t){return(0,f.every)(r,function(i){var n=i.field,a=i.value;return!(0,f.isNil)(a)&&n?t[n]===a:!0})}},e}(),bu={},f0=function(e){return bu[(0,f.lowerCase)(e)]},vi=function(e,r){bu[(0,f.lowerCase)(e)]=r},v0=function(){function e(r,t){this.context=r,this.cfg=t,r.addAction(this)}return e.prototype.applyCfg=function(r){(0,f.assign)(this,r)},e.prototype.init=function(){this.applyCfg(this.cfg)},e.prototype.destroy=function(){this.context.removeAction(this),this.context=null},e}(),ne=v0,d0=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.execute=function(){this.callback&&this.callback(this.context)},r.prototype.destroy=function(){e.prototype.destroy.call(this),this.callback=null},r}(ne),g0=d0,Kn={};function p0(e,r){var t=Kn[e],i=null;if(t){var n=t.ActionClass,a=t.cfg;i=new n(r,a),i.name=e,i.init()}return i}function $n(e){var r=Kn[e];return(0,f.get)(r,"ActionClass")}function _t(e,r,t){Kn[e]={ActionClass:r,cfg:t}}function SI(e){delete Kn[e]}function y0(e,r){var t=new g0(r);return t.callback=e,t.name="callback",t}function m0(e,r){var t=[];if(e.length){t.push(["M",e[0].x,e[0].y]);for(var i=1,n=e.length;i=o[u]?1:0,v=c>Math.PI?1:0,d=t.convert(s),p=Un(t,d);if(p>=.5)if(c===Math.PI*2){var y={x:(s.x+o.x)/2,y:(s.y+o.y)/2},x=t.convert(y);l.push(["A",p,p,0,v,h,x.x,x.y]),l.push(["A",p,p,0,v,h,d.x,d.y])}else l.push(["A",p,p,0,v,h,d.x,d.y]);return l}function _0(e){(0,f.each)(e,function(r,t){var i=r;if(i[0].toLowerCase()==="a"){var n=e[t-1],a=e[t+1];a&&a[0].toLowerCase()==="a"?n&&n[0].toLowerCase()==="l"&&(n[0]="M"):n&&n[0].toLowerCase()==="a"&&a&&a[0].toLowerCase()==="l"&&(a[0]="M")}})}var w0=function(e,r,t,i){var n,a=[],o=!!i,s,l,u,c,h,v,d;if(o){n=(0,g.__read)(i,2),u=n[0],c=n[1];for(var p=0,y=e.length;p1){var n=t[0].charAt(0);t.splice(1,0,t[0].substr(1)),t[0]=n}each(t,function(a,o){isNaN(a)||(t[o]=+a)}),r[i]=t}),r}var CI=null;function A0(e,r,t){var i=null,n=t;return r=0;l--)o=a[l].index,a[l].type==="add"?e.splice(o,0,[].concat(e[o])):e.splice(o,1)}if(i=e.length,i2&&(t.push([n].concat(o.splice(0,2))),s="l",n=n==="m"?"l":"L"),s==="o"&&o.length===1&&t.push([n,o[0]]),s==="r")t.push([n].concat(o));else for(;o.length>=r[s]&&(t.push([n].concat(o.splice(0,r[s]))),!!r[s]););return""}),t}var I0=/[a-z]/;function Au(e,r){return[r[0]+(r[0]-e[0]),r[1]+(r[1]-e[1])]}function AI(e){var r=parsePathString(e);if(!r||!r.length)return[["M",0,0]];for(var t=!1,i=0;i=0){t=!0;break}}if(!t)return r;var a=[],o=0,s=0,l=0,u=0,c=0,h,v,d=r[0];(d[0]==="M"||d[0]==="m")&&(o=+d[1],s=+d[2],l=o,u=s,c++,a[0]=["M",o,s]);for(var i=c,p=r.length;i1&&(a=1),a<-1&&(a=-1),n*Math.acos(a)},P0=function(e,r,t,i,n,a,o,s,l,u,c,h){var v=Math.pow(n,2),d=Math.pow(a,2),p=Math.pow(c,2),y=Math.pow(h,2),x=v*d-v*y-d*p;x<0&&(x=0),x/=v*y+d*p,x=Math.sqrt(x)*(o===s?-1:1);var m=x*n/a*h,_=x*-a/n*c,w=u*m-l*_+(e+t)/2,S=l*m+u*_+(r+i)/2,b=(c-m)/n,C=(h-_)/a,M=(-c-m)/n,A=(-h-_)/a,O=Fu(1,0,b,C),E=Fu(b,C,M,A);return s===0&&E>0&&(E-=tn),s===1&&E<0&&(E+=tn),[w,S,O,E]},k0=function(e){var r=e.px,t=e.py,i=e.cx,n=e.cy,a=e.rx,o=e.ry,s=e.xAxisRotation,l=s===void 0?0:s,u=e.largeArcFlag,c=u===void 0?0:u,h=e.sweepFlag,v=h===void 0?0:h,d=[];if(a===0||o===0)return[{x1:0,y1:0,x2:0,y2:0,x:i,y:n}];var p=Math.sin(l*tn/360),y=Math.cos(l*tn/360),x=y*(r-i)/2+p*(t-n)/2,m=-p*(r-i)/2+y*(t-n)/2;if(x===0&&m===0)return[{x1:0,y1:0,x2:0,y2:0,x:i,y:n}];a=Math.abs(a),o=Math.abs(o);var _=Math.pow(x,2)/Math.pow(a,2)+Math.pow(m,2)/Math.pow(o,2);_>1&&(a*=Math.sqrt(_),o*=Math.sqrt(_));var w=P0(r,t,i,n,a,o,c,v,p,y,x,m),S=w[0],b=w[1],C=w[2],M=w[3],A=Math.abs(M)/(tn/4);Math.abs(1-A)<1e-7&&(A=1);var O=Math.max(Math.ceil(A),1);M/=O;for(var E=0;E7){e[t].shift();for(var i=e[t],n=t;i.length;)r[t]="A",e.splice(n+=1,0,["C"].concat(i.splice(0,6)));e.splice(t,1)}}var Eu=function(e,r,t,i,n){var a=-3*r+9*t-9*i+3*n,o=e*a+6*r-12*t+6*i;return e*o-3*r+3*t},Tu=function(e,r,t,i,n,a,o,s,l){l===null&&(l=1),l=l>1?1:l<0?0:l;for(var u=l/2,c=12,h=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],v=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],d=0,p=0;p0&&d<1&&l.push(d);continue}var y=h*h-4*v*c,x=Math.sqrt(y);if(!(y<0)){var m=(-h+x)/(2*c);m>0&&m<1&&l.push(m);var _=(-h-x)/(2*c);_>0&&_<1&&l.push(_)}}for(var w=l.length,S=w,b;w--;)d=l[w],b=1-d,u[0][w]=b*b*b*e+3*b*b*d*t+3*b*d*d*n+d*d*d*o,u[1][w]=b*b*b*r+3*b*b*d*i+3*b*d*d*a+d*d*d*s;return u[0][S]=e,u[1][S]=r,u[0][S+1]=o,u[1][S+1]=s,u[0].length=u[1].length=S+2,{min:{x:Math.min.apply(0,u[0]),y:Math.min.apply(0,u[1])},max:{x:Math.max.apply(0,u[0]),y:Math.max.apply(0,u[1])}}},R0=function(e,r,t,i,n,a,o,s){if(!(Math.max(e,t)Math.max(n,o)||Math.max(r,i)Math.max(a,s))){var l=(e*i-r*t)*(n-o)-(e-t)*(n*s-a*o),u=(e*i-r*t)*(a-s)-(r-i)*(n*s-a*o),c=(e-t)*(a-s)-(r-i)*(n-o);if(!!c){var h=l/c,v=u/c,d=+h.toFixed(2),p=+v.toFixed(2);if(!(d<+Math.min(e,t).toFixed(2)||d>+Math.max(e,t).toFixed(2)||d<+Math.min(n,o).toFixed(2)||d>+Math.max(n,o).toFixed(2)||p<+Math.min(r,i).toFixed(2)||p>+Math.max(r,i).toFixed(2)||p<+Math.min(a,s).toFixed(2)||p>+Math.max(a,s).toFixed(2)))return{x:h,y:v}}}},br=function(e,r,t){return r>=e.x&&r<=e.x+e.width&&t>=e.y&&t<=e.y+e.height},Lo=function(e,r,t,i){return e===null&&(e=r=t=i=0),r===null&&(r=e.y,t=e.width,i=e.height,e=e.x),{x:e,y:r,width:t,w:t,height:i,h:i,x2:e+t,y2:r+i,cx:e+t/2,cy:r+i/2,r1:Math.min(t,i)/2,r2:Math.max(t,i)/2,r0:Math.sqrt(t*t+i*i)/2,path:rectPath(e,r,t,i),vb:[e,r,t,i].join(" ")}},N0=function(e,r){return e=Lo(e),r=Lo(r),br(r,e.x,e.y)||br(r,e.x2,e.y)||br(r,e.x,e.y2)||br(r,e.x2,e.y2)||br(e,r.x,r.y)||br(e,r.x2,r.y)||br(e,r.x,r.y2)||br(e,r.x2,r.y2)||(e.xr.x||r.xe.x)&&(e.yr.y||r.ye.y)},Lu=function(e,r,t,i,n,a,o,s){isArray(e)||(e=[e,r,t,i,n,a,o,s]);var l=B0.apply(null,e);return Lo(l.min.x,l.min.y,l.max.x-l.min.x,l.max.y-l.min.y)},Iu=function(e,r,t,i,n,a,o,s,l){var u=1-l,c=Math.pow(u,3),h=Math.pow(u,2),v=l*l,d=v*l,p=c*e+h*3*l*t+u*3*l*l*n+d*o,y=c*r+h*3*l*i+u*3*l*l*a+d*s,x=e+2*l*(t-e)+v*(n-2*t+e),m=r+2*l*(i-r)+v*(a-2*i+r),_=t+2*l*(n-t)+v*(o-2*n+t),w=i+2*l*(a-i)+v*(s-2*a+i),S=u*e+l*t,b=u*r+l*i,C=u*n+l*o,M=u*a+l*s,A=90-Math.atan2(x-_,m-w)*180/Math.PI;return{x:p,y,m:{x,y:m},n:{x:_,y:w},start:{x:S,y:b},end:{x:C,y:M},alpha:A}},z0=function(e,r,t){var i=Lu(e),n=Lu(r);if(!N0(i,n))return t?0:[];for(var a=Tu.apply(0,e),o=Tu.apply(0,r),s=~~(a/8),l=~~(o/8),u=[],c=[],h={},v=t?0:[],d=0;d=0&&M<=1&&A>=0&&A<=1&&(t?v++:v.push({x:C.x,y:C.y,t1:M,t2:A}))}}return v},V0=function(e,r,t){e=path2Curve(e),r=path2Curve(r);for(var i,n,a,o,s,l,u,c,h,v,d=t?0:[],p=0,y=e.length;p1&&(t*=Math.sqrt(d),i*=Math.sqrt(d));var p=t*t*(v*v)+i*i*(h*h),y=p?Math.sqrt((t*t*(i*i)-p)/p):1;a===o&&(y*=-1),isNaN(y)&&(y=0);var x=i?y*t*v/i:0,m=t?y*-i*h/t:0,_=(s+u)/2+Math.cos(n)*x-Math.sin(n)*m,w=(l+c)/2+Math.sin(n)*x+Math.cos(n)*m,S=[(h-x)/t,(v-m)/i],b=[(-1*h-x)/t,(-1*v-m)/i],C=Ou([1,0],S),M=Ou(S,b);return Io(S,b)<=-1&&(M=Math.PI),Io(S,b)>=1&&(M=0),o===0&&M>0&&(M=M-2*Math.PI),o===1&&M<0&&(M=M+2*Math.PI),{cx:_,cy:w,rx:Pu(e,[u,c])?0:t,ry:Pu(e,[u,c])?0:i,startAngle:C,endAngle:C+M,xRotation:n,arcFlag:a,sweepFlag:o}}function ku(e,r){return[r[0]+(r[0]-e[0]),r[1]+(r[1]-e[1])]}function OI(e){e=parsePath(e);for(var r=[],t=null,i=null,n=null,a=0,o=e.length,s=0;s0!=Oo(s[1]-t)>0&&Oo(r-(t-o[1])*(o[0]-s[0])/(o[1]-s[1])-o[0])<0&&(i=!i)}return i}var Bu=function(e,r,t){return e>=r&&e<=t};function H0(e,r,t,i){var n=.001,a={x:t.x-e.x,y:t.y-e.y},o={x:r.x-e.x,y:r.y-e.y},s={x:i.x-t.x,y:i.y-t.y},l=o.x*s.y-o.y*s.x,u=l*l,c=o.x*o.x+o.y*o.y,h=s.x*s.x+s.y*s.y,v=null;if(u>n*c*h){var d=(a.x*s.y-a.y*s.x)/l,p=(a.x*o.y-a.y*o.x)/l;Bu(d,0,1)&&Bu(p,0,1)&&(v={x:e.x+d*o.x,y:e.y+d*o.y})}return v}function Ru(e){for(var r=[],t=e.length,i=0;i1){var o=e[0],s=e[t-1];r.push({from:{x:s[0],y:s[1]},to:{x:o[0],y:o[1]}})}return r}function Y0(e,r){var t=!1;return(0,f.each)(e,function(i){if(H0(i.from,i.to,r.from,r.to))return t=!0,!1}),t}function Nu(e){var r=e.map(function(i){return i[0]}),t=e.map(function(i){return i[1]});return{minX:Math.min.apply(null,r),maxX:Math.max.apply(null,r),minY:Math.min.apply(null,t),maxY:Math.max.apply(null,t)}}function X0(e,r){return!(r.minX>e.maxX||r.maxXe.maxY||r.maxY0&&n>0&&(i>=r||n>=r)}function Gu(e,r){var t=e.getCanvasBBox();return Vu(e,r)?t:null}function Wu(e,r){var t=e.event.maskShapes;return t.map(function(i){return Gu(i,r)}).filter(function(i){return!!i})}function Z0(e,r){var t=e.event,i=t.target;return Hu(i,r)}function Hu(e,r){return Vu(e,r)?e.attr("path"):null}function q0(e,r){var t=e.event.maskShapes;return t.map(function(i){return Hu(i,r)})}function Cr(e){var r=e.event,t,i=r.target;return i&&(t=i.get("element")),t}function Gr(e){var r=e.event,t=r.target,i;return t&&(i=t.get("delegateObject")),i}function Yu(e){var r=e.event.gEvent;return!(r&&r.fromShape&&r.toShape&&r.fromShape.get("element")===r.toShape.get("element"))}function en(e){return e&&e.component&&e.component.isList()}function Xu(e){return e&&e.component&&e.component.isSlider()}function rn(e){var r=e.event,t=r.target;return t&&(t==null?void 0:t.get("name"))==="mask"||ta(e)}function ta(e){var r;return((r=e.event.target)===null||r===void 0?void 0:r.get("name"))==="multi-mask"}function Po(e,r){var t=e.event.target;if(ta(e))return j0(e,r);if(t.get("type")==="path"){var i=Z0(e,r);return i?Ku(e.view,i):void 0}var n=zu(e,r);return n?ea(e.view,n):null}function j0(e,r){var t=e.event.target;if(t.get("type")==="path"){var i=q0(e,r);return i.length>0?i.flatMap(function(a){return Ku(e.view,a)}):null}var n=Wu(e,r);return n.length>0?n.flatMap(function(a){return ea(e.view,a)}):null}function Uu(e,r,t){if(ta(e))return K0(e,r,t);var i=zu(e,t);return i?Zu(i,e,r):null}function Zu(e,r,t){var i=r.view,n=Do(i,t,{x:e.x,y:e.y}),a=Do(i,t,{x:e.maxX,y:e.maxY}),o={minX:n.x,minY:n.y,maxX:a.x,maxY:a.y};return ea(t,o)}function K0(e,r,t){var i=Wu(e,t);return i.length>0?i.flatMap(function(n){return Zu(n,e,r)}):null}function Ce(e){var r=e.geometries,t=[];return(0,f.each)(r,function(i){var n=i.elements;t=t.concat(n)}),e.views&&e.views.length&&(0,f.each)(e.views,function(i){t=t.concat(Ce(i))}),t}function $0(e,r,t){var i=Ce(e);return i.filter(function(n){return Ze(n,r)===t})}function qu(e,r){var t=e.geometries,i=[];return(0,f.each)(t,function(n){var a=n.getElementsBy(function(o){return o.hasState(r)});i=i.concat(a)}),i}function Ze(e,r){var t=e.getModel(),i=t.data,n;return(0,f.isArray)(i)?n=i[0][r]:n=i[r],n}function Q0(e,r){return!(r.minX>e.maxX||r.maxXe.maxY||r.maxY=r.x&&e.y<=r.y&&e.maxY>r.y}function Qe(e){var r=e.parent,t=null;return r&&(t=r.views.filter(function(i){return i!==e})),t}function tm(e,r){var t=e.getCoordinate();return t.invert(r)}function Do(e,r,t){var i=tm(e,t);return r.getCoordinate().convert(i)}function Ju(e,r,t,i){var n=!1;return(0,f.each)(e,function(a){if(a[t]===r[t]&&a[i]===r[i])return n=!0,!1}),n}function di(e,r){var t=e.getScaleByField(r);return!t&&e.views&&(0,f.each)(e.views,function(i){if(t=di(i,r),t)return!1}),t}var em=function(){function e(r){this.actions=[],this.event=null,this.cacheMap={},this.view=r}return e.prototype.cache=function(){for(var r=[],t=0;t=0&&t.splice(i,1)},e.prototype.getCurrentPoint=function(){var r=this.event;if(r)if(r.target instanceof HTMLElement){var t=this.view.getCanvas(),i=t.getPointByClient(r.clientX,r.clientY);return i}else return{x:r.x,y:r.y};return null},e.prototype.getCurrentShape=function(){return(0,f.get)(this.event,["gEvent","shape"])},e.prototype.isInPlot=function(){var r=this.getCurrentPoint();return r?this.view.isPointInPlot(r):!1},e.prototype.isInShape=function(r){var t=this.getCurrentShape();return t?t.get("name")===r:!1},e.prototype.isInComponent=function(r){var t=$u(this.view),i=this.getCurrentPoint();return i?!!t.find(function(n){var a=n.getBBox();return r?n.get("name")===r&&Qu(a,i):Qu(a,i)}):!1},e.prototype.destroy=function(){(0,f.each)(this.actions.slice(),function(r){r.destroy()}),this.view=null,this.event=null,this.actions=null,this.cacheMap=null},e}(),rm=em,im=function(){function e(r,t){this.view=r,this.cfg=t}return e.prototype.init=function(){this.initEvents()},e.prototype.initEvents=function(){},e.prototype.clearEvents=function(){},e.prototype.destroy=function(){this.clearEvents()},e}(),nm=im;function tc(e,r,t){var i=e.split(":"),n=i[0],a=r.getAction(n)||p0(n,r);if(!a)throw new Error("There is no action named ".concat(n));var o=i[1];return{action:a,methodName:o,arg:t}}function ec(e){var r=e.action,t=e.methodName,i=e.arg;if(r[t])r[t](i);else throw new Error("Action(".concat(r.name,") doesn't have a method called ").concat(t))}var Ne={START:"start",SHOW_ENABLE:"showEnable",END:"end",ROLLBACK:"rollback",PROCESSING:"processing"},am=function(e){(0,g.__extends)(r,e);function r(t,i){var n=e.call(this,t,i)||this;return n.callbackCaches={},n.emitCaches={},n.steps=i,n}return r.prototype.init=function(){this.initContext(),e.prototype.init.call(this)},r.prototype.destroy=function(){e.prototype.destroy.call(this),this.steps=null,this.context&&(this.context.destroy(),this.context=null),this.callbackCaches=null,this.view=null},r.prototype.initEvents=function(){var t=this;(0,f.each)(this.steps,function(i,n){(0,f.each)(i,function(a){var o=t.getActionCallback(n,a);o&&t.bindEvent(a.trigger,o)})})},r.prototype.clearEvents=function(){var t=this;(0,f.each)(this.steps,function(i,n){(0,f.each)(i,function(a){var o=t.getActionCallback(n,a);o&&t.offEvent(a.trigger,o)})})},r.prototype.initContext=function(){var t=this.view,i=new rm(t);this.context=i;var n=this.steps;(0,f.each)(n,function(a){(0,f.each)(a,function(o){if((0,f.isFunction)(o.action))o.actionObject={action:y0(o.action,i),methodName:"execute"};else if((0,f.isString)(o.action))o.actionObject=tc(o.action,i,o.arg);else if((0,f.isArray)(o.action)){var s=o.action,l=(0,f.isArray)(o.arg)?o.arg:[o.arg];o.actionObject=[],(0,f.each)(s,function(u,c){o.actionObject.push(tc(u,i,l[c]))})}})})},r.prototype.isAllowStep=function(t){var i=this.currentStepName,n=this.steps;if(i===t||t===Ne.SHOW_ENABLE)return!0;if(t===Ne.PROCESSING)return i===Ne.START;if(t===Ne.START)return i!==Ne.PROCESSING;if(t===Ne.END)return i===Ne.PROCESSING||i===Ne.START;if(t===Ne.ROLLBACK){if(n[Ne.END])return i===Ne.END;if(i===Ne.START)return!0}return!1},r.prototype.isAllowExecute=function(t,i){if(this.isAllowStep(t)){var n=this.getKey(t,i);return i.once&&this.emitCaches[n]?!1:i.isEnable?i.isEnable(this.context):!0}return!1},r.prototype.enterStep=function(t){this.currentStepName=t,this.emitCaches={}},r.prototype.afterExecute=function(t,i){t!==Ne.SHOW_ENABLE&&this.currentStepName!==t&&this.enterStep(t);var n=this.getKey(t,i);this.emitCaches[n]=!0},r.prototype.getKey=function(t,i){return t+i.trigger+i.action},r.prototype.getActionCallback=function(t,i){var n=this,a=this.context,o=this.callbackCaches,s=i.actionObject;if(i.action&&s){var l=this.getKey(t,i);if(!o[l]){var u=function(c){a.event=c,n.isAllowExecute(t,i)?((0,f.isArray)(s)?(0,f.each)(s,function(h){a.event=c,ec(h)}):(a.event=c,ec(s)),n.afterExecute(t,i),i.callback&&(a.event=c,i.callback(a))):a.event=null};i.debounce?o[l]=(0,f.debounce)(u,i.debounce.wait,i.debounce.immediate):i.throttle?o[l]=(0,f.throttle)(u,i.throttle.wait,{leading:i.throttle.leading,trailing:i.throttle.trailing}):o[l]=u}return o[l]}return null},r.prototype.bindEvent=function(t,i){var n=t.split(":");n[0]==="window"?window.addEventListener(n[1],i):n[0]==="document"?document.addEventListener(n[1],i):this.view.on(t,i)},r.prototype.offEvent=function(t,i){var n=t.split(":");n[0]==="window"?window.removeEventListener(n[1],i):n[0]==="document"?document.removeEventListener(n[1],i):this.view.off(t,i)},r}(nm),om=am,rc={};function sm(e){return rc[(0,f.lowerCase)(e)]}function Pt(e,r){rc[(0,f.lowerCase)(e)]=r}function lm(e,r,t){var i=sm(e);if(!i)return null;if((0,f.isPlainObject)(i)){var n=(0,f.mix)((0,f.clone)(i),t);return new om(r,n)}else{var a=i;return new a(r,t)}}function um(e){return{title:{autoRotate:!0,position:"center",spacing:e.axisTitleSpacing,style:{fill:e.axisTitleTextFillColor,fontSize:e.axisTitleTextFontSize,lineHeight:e.axisTitleTextLineHeight,textBaseline:"middle",fontFamily:e.fontFamily},iconStyle:{fill:e.axisDescriptionIconFillColor}},label:{autoRotate:!1,autoEllipsis:!1,autoHide:{type:"equidistance",cfg:{minGap:6}},offset:e.axisLabelOffset,style:{fill:e.axisLabelFillColor,fontSize:e.axisLabelFontSize,lineHeight:e.axisLabelLineHeight,fontFamily:e.fontFamily}},line:{style:{lineWidth:e.axisLineBorder,stroke:e.axisLineBorderColor}},grid:{line:{type:"line",style:{stroke:e.axisGridBorderColor,lineWidth:e.axisGridBorder,lineDash:e.axisGridLineDash}},alignTick:!0,animate:!0},tickLine:{style:{lineWidth:e.axisTickLineBorder,stroke:e.axisTickLineBorderColor},alignTick:!0,length:e.axisTickLineLength},subTickLine:null,animate:!0}}function cm(e){return{title:null,marker:{symbol:"circle",spacing:e.legendMarkerSpacing,style:{r:e.legendCircleMarkerSize,fill:e.legendMarkerColor}},itemName:{spacing:5,style:{fill:e.legendItemNameFillColor,fontFamily:e.fontFamily,fontSize:e.legendItemNameFontSize,lineHeight:e.legendItemNameLineHeight,fontWeight:e.legendItemNameFontWeight,textAlign:"start",textBaseline:"middle"}},itemStates:{active:{nameStyle:{opacity:.8}},unchecked:{nameStyle:{fill:"#D8D8D8"},markerStyle:{fill:"#D8D8D8",stroke:"#D8D8D8"}},inactive:{nameStyle:{fill:"#D8D8D8"},markerStyle:{opacity:.2}}},flipPage:!0,pageNavigator:{marker:{style:{size:e.legendPageNavigatorMarkerSize,inactiveFill:e.legendPageNavigatorMarkerInactiveFillColor,inactiveOpacity:e.legendPageNavigatorMarkerInactiveFillOpacity,fill:e.legendPageNavigatorMarkerFillColor,opacity:e.legendPageNavigatorMarkerFillOpacity}},text:{style:{fill:e.legendPageNavigatorTextFillColor,fontSize:e.legendPageNavigatorTextFontSize}}},animate:!1,maxItemWidth:200,itemSpacing:e.legendItemSpacing,itemMarginBottom:e.legendItemMarginBottom,padding:e.legendPadding}}function ic(e){var r,t={point:{default:{fill:e.pointFillColor,r:e.pointSize,stroke:e.pointBorderColor,lineWidth:e.pointBorder,fillOpacity:e.pointFillOpacity},active:{stroke:e.pointActiveBorderColor,lineWidth:e.pointActiveBorder},selected:{stroke:e.pointSelectedBorderColor,lineWidth:e.pointSelectedBorder},inactive:{fillOpacity:e.pointInactiveFillOpacity,strokeOpacity:e.pointInactiveBorderOpacity}},hollowPoint:{default:{fill:e.hollowPointFillColor,lineWidth:e.hollowPointBorder,stroke:e.hollowPointBorderColor,strokeOpacity:e.hollowPointBorderOpacity,r:e.hollowPointSize},active:{stroke:e.hollowPointActiveBorderColor,strokeOpacity:e.hollowPointActiveBorderOpacity},selected:{lineWidth:e.hollowPointSelectedBorder,stroke:e.hollowPointSelectedBorderColor,strokeOpacity:e.hollowPointSelectedBorderOpacity},inactive:{strokeOpacity:e.hollowPointInactiveBorderOpacity}},area:{default:{fill:e.areaFillColor,fillOpacity:e.areaFillOpacity,stroke:null},active:{fillOpacity:e.areaActiveFillOpacity},selected:{fillOpacity:e.areaSelectedFillOpacity},inactive:{fillOpacity:e.areaInactiveFillOpacity}},hollowArea:{default:{fill:null,stroke:e.hollowAreaBorderColor,lineWidth:e.hollowAreaBorder,strokeOpacity:e.hollowAreaBorderOpacity},active:{fill:null,lineWidth:e.hollowAreaActiveBorder},selected:{fill:null,lineWidth:e.hollowAreaSelectedBorder},inactive:{strokeOpacity:e.hollowAreaInactiveBorderOpacity}},interval:{default:{fill:e.intervalFillColor,fillOpacity:e.intervalFillOpacity},active:{stroke:e.intervalActiveBorderColor,lineWidth:e.intervalActiveBorder},selected:{stroke:e.intervalSelectedBorderColor,lineWidth:e.intervalSelectedBorder},inactive:{fillOpacity:e.intervalInactiveFillOpacity,strokeOpacity:e.intervalInactiveBorderOpacity}},hollowInterval:{default:{fill:e.hollowIntervalFillColor,stroke:e.hollowIntervalBorderColor,lineWidth:e.hollowIntervalBorder,strokeOpacity:e.hollowIntervalBorderOpacity},active:{stroke:e.hollowIntervalActiveBorderColor,lineWidth:e.hollowIntervalActiveBorder,strokeOpacity:e.hollowIntervalActiveBorderOpacity},selected:{stroke:e.hollowIntervalSelectedBorderColor,lineWidth:e.hollowIntervalSelectedBorder,strokeOpacity:e.hollowIntervalSelectedBorderOpacity},inactive:{stroke:e.hollowIntervalInactiveBorderColor,lineWidth:e.hollowIntervalInactiveBorder,strokeOpacity:e.hollowIntervalInactiveBorderOpacity}},line:{default:{stroke:e.lineBorderColor,lineWidth:e.lineBorder,strokeOpacity:e.lineBorderOpacity,fill:null,lineAppendWidth:10,lineCap:"round",lineJoin:"round"},active:{lineWidth:e.lineActiveBorder},selected:{lineWidth:e.lineSelectedBorder},inactive:{strokeOpacity:e.lineInactiveBorderOpacity}}},i=um(e),n=cm(e);return{background:e.backgroundColor,defaultColor:e.brandColor,subColor:e.subColor,semanticRed:e.paletteSemanticRed,semanticGreen:e.paletteSemanticGreen,padding:"auto",fontFamily:e.fontFamily,columnWidthRatio:1/2,maxColumnWidth:null,minColumnWidth:null,roseWidthRatio:.9999999,multiplePieWidthRatio:1/1.3,colors10:e.paletteQualitative10,colors20:e.paletteQualitative20,sequenceColors:e.paletteSequence,shapes:{point:["hollow-circle","hollow-square","hollow-bowtie","hollow-diamond","hollow-hexagon","hollow-triangle","hollow-triangle-down","circle","square","bowtie","diamond","hexagon","triangle","triangle-down","cross","tick","plus","hyphen","line"],line:["line","dash","dot","smooth"],area:["area","smooth","line","smooth-line"],interval:["rect","hollow-rect","line","tick"]},sizes:[1,10],geometries:{interval:{rect:{default:{style:t.interval.default},active:{style:t.interval.active},inactive:{style:t.interval.inactive},selected:{style:function(a){var o=a.geometry.coordinate;if(o.isPolar&&o.isTransposed){var s=ji(a.getModel(),o),l=s.startAngle,u=s.endAngle,c=(l+u)/2,h=7.5,v=h*Math.cos(c),d=h*Math.sin(c);return{matrix:ie.vs(null,[["t",v,d]])}}return t.interval.selected}}},"hollow-rect":{default:{style:t.hollowInterval.default},active:{style:t.hollowInterval.active},inactive:{style:t.hollowInterval.inactive},selected:{style:t.hollowInterval.selected}},line:{default:{style:t.hollowInterval.default},active:{style:t.hollowInterval.active},inactive:{style:t.hollowInterval.inactive},selected:{style:t.hollowInterval.selected}},tick:{default:{style:t.hollowInterval.default},active:{style:t.hollowInterval.active},inactive:{style:t.hollowInterval.inactive},selected:{style:t.hollowInterval.selected}},funnel:{default:{style:t.interval.default},active:{style:t.interval.active},inactive:{style:t.interval.inactive},selected:{style:t.interval.selected}},pyramid:{default:{style:t.interval.default},active:{style:t.interval.active},inactive:{style:t.interval.inactive},selected:{style:t.interval.selected}}},line:{line:{default:{style:t.line.default},active:{style:t.line.active},inactive:{style:t.line.inactive},selected:{style:t.line.selected}},dot:{default:{style:(0,g.__assign)((0,g.__assign)({},t.line.default),{lineCap:null,lineDash:[1,1]})},active:{style:(0,g.__assign)((0,g.__assign)({},t.line.active),{lineCap:null,lineDash:[1,1]})},inactive:{style:(0,g.__assign)((0,g.__assign)({},t.line.inactive),{lineCap:null,lineDash:[1,1]})},selected:{style:(0,g.__assign)((0,g.__assign)({},t.line.selected),{lineCap:null,lineDash:[1,1]})}},dash:{default:{style:(0,g.__assign)((0,g.__assign)({},t.line.default),{lineCap:null,lineDash:[5.5,1]})},active:{style:(0,g.__assign)((0,g.__assign)({},t.line.active),{lineCap:null,lineDash:[5.5,1]})},inactive:{style:(0,g.__assign)((0,g.__assign)({},t.line.inactive),{lineCap:null,lineDash:[5.5,1]})},selected:{style:(0,g.__assign)((0,g.__assign)({},t.line.selected),{lineCap:null,lineDash:[5.5,1]})}},smooth:{default:{style:t.line.default},active:{style:t.line.active},inactive:{style:t.line.inactive},selected:{style:t.line.selected}},hv:{default:{style:t.line.default},active:{style:t.line.active},inactive:{style:t.line.inactive},selected:{style:t.line.selected}},vh:{default:{style:t.line.default},active:{style:t.line.active},inactive:{style:t.line.inactive},selected:{style:t.line.selected}},hvh:{default:{style:t.line.default},active:{style:t.line.active},inactive:{style:t.line.inactive},selected:{style:t.line.selected}},vhv:{default:{style:t.line.default},active:{style:t.line.active},inactive:{style:t.line.inactive},selected:{style:t.line.selected}}},polygon:{polygon:{default:{style:t.interval.default},active:{style:t.interval.active},inactive:{style:t.interval.inactive},selected:{style:t.interval.selected}}},point:{circle:{default:{style:t.point.default},active:{style:t.point.active},inactive:{style:t.point.inactive},selected:{style:t.point.selected}},square:{default:{style:t.point.default},active:{style:t.point.active},inactive:{style:t.point.inactive},selected:{style:t.point.selected}},bowtie:{default:{style:t.point.default},active:{style:t.point.active},inactive:{style:t.point.inactive},selected:{style:t.point.selected}},diamond:{default:{style:t.point.default},active:{style:t.point.active},inactive:{style:t.point.inactive},selected:{style:t.point.selected}},hexagon:{default:{style:t.point.default},active:{style:t.point.active},inactive:{style:t.point.inactive},selected:{style:t.point.selected}},triangle:{default:{style:t.point.default},active:{style:t.point.active},inactive:{style:t.point.inactive},selected:{style:t.point.selected}},"triangle-down":{default:{style:t.point.default},active:{style:t.point.active},inactive:{style:t.point.inactive},selected:{style:t.point.selected}},"hollow-circle":{default:{style:t.hollowPoint.default},active:{style:t.hollowPoint.active},inactive:{style:t.hollowPoint.inactive},selected:{style:t.hollowPoint.selected}},"hollow-square":{default:{style:t.hollowPoint.default},active:{style:t.hollowPoint.active},inactive:{style:t.hollowPoint.inactive},selected:{style:t.hollowPoint.selected}},"hollow-bowtie":{default:{style:t.hollowPoint.default},active:{style:t.hollowPoint.active},inactive:{style:t.hollowPoint.inactive},selected:{style:t.hollowPoint.selected}},"hollow-diamond":{default:{style:t.hollowPoint.default},active:{style:t.hollowPoint.active},inactive:{style:t.hollowPoint.inactive},selected:{style:t.hollowPoint.selected}},"hollow-hexagon":{default:{style:t.hollowPoint.default},active:{style:t.hollowPoint.active},inactive:{style:t.hollowPoint.inactive},selected:{style:t.hollowPoint.selected}},"hollow-triangle":{default:{style:t.hollowPoint.default},active:{style:t.hollowPoint.active},inactive:{style:t.hollowPoint.inactive},selected:{style:t.hollowPoint.selected}},"hollow-triangle-down":{default:{style:t.hollowPoint.default},active:{style:t.hollowPoint.active},inactive:{style:t.hollowPoint.inactive},selected:{style:t.hollowPoint.selected}},cross:{default:{style:t.hollowPoint.default},active:{style:t.hollowPoint.active},inactive:{style:t.hollowPoint.inactive},selected:{style:t.hollowPoint.selected}},tick:{default:{style:t.hollowPoint.default},active:{style:t.hollowPoint.active},inactive:{style:t.hollowPoint.inactive},selected:{style:t.hollowPoint.selected}},plus:{default:{style:t.hollowPoint.default},active:{style:t.hollowPoint.active},inactive:{style:t.hollowPoint.inactive},selected:{style:t.hollowPoint.selected}},hyphen:{default:{style:t.hollowPoint.default},active:{style:t.hollowPoint.active},inactive:{style:t.hollowPoint.inactive},selected:{style:t.hollowPoint.selected}},line:{default:{style:t.hollowPoint.default},active:{style:t.hollowPoint.active},inactive:{style:t.hollowPoint.inactive},selected:{style:t.hollowPoint.selected}}},area:{area:{default:{style:t.area.default},active:{style:t.area.active},inactive:{style:t.area.inactive},selected:{style:t.area.selected}},smooth:{default:{style:t.area.default},active:{style:t.area.active},inactive:{style:t.area.inactive},selected:{style:t.area.selected}},line:{default:{style:t.hollowArea.default},active:{style:t.hollowArea.active},inactive:{style:t.hollowArea.inactive},selected:{style:t.hollowArea.selected}},"smooth-line":{default:{style:t.hollowArea.default},active:{style:t.hollowArea.active},inactive:{style:t.hollowArea.inactive},selected:{style:t.hollowArea.selected}}},schema:{candle:{default:{style:t.hollowInterval.default},active:{style:t.hollowInterval.active},inactive:{style:t.hollowInterval.inactive},selected:{style:t.hollowInterval.selected}},box:{default:{style:t.hollowInterval.default},active:{style:t.hollowInterval.active},inactive:{style:t.hollowInterval.inactive},selected:{style:t.hollowInterval.selected}}},edge:{line:{default:{style:t.line.default},active:{style:t.line.active},inactive:{style:t.line.inactive},selected:{style:t.line.selected}},vhv:{default:{style:t.line.default},active:{style:t.line.active},inactive:{style:t.line.inactive},selected:{style:t.line.selected}},smooth:{default:{style:t.line.default},active:{style:t.line.active},inactive:{style:t.line.inactive},selected:{style:t.line.selected}},arc:{default:{style:t.line.default},active:{style:t.line.active},inactive:{style:t.line.inactive},selected:{style:t.line.selected}}},violin:{violin:{default:{style:t.line.default},active:{style:t.line.active},inactive:{style:t.line.inactive},selected:{style:t.line.selected}},smooth:{default:{style:t.line.default},active:{style:t.line.active},inactive:{style:t.line.inactive},selected:{style:t.line.selected}},hollow:{default:{style:t.hollowArea.default},active:{style:t.hollowArea.active},inactive:{style:t.hollowArea.inactive},selected:{style:t.hollowArea.selected}},"hollow-smooth":{default:{style:t.hollowArea.default},active:{style:t.hollowArea.active},inactive:{style:t.hollowArea.inactive},selected:{style:t.hollowArea.selected}}}},components:{axis:{common:i,top:{position:"top",grid:null,title:null,verticalLimitLength:1/2},bottom:{position:"bottom",grid:null,title:null,verticalLimitLength:1/2},left:{position:"left",title:null,line:null,tickLine:null,verticalLimitLength:1/3},right:{position:"right",title:null,line:null,tickLine:null,verticalLimitLength:1/3},circle:{title:null,grid:(0,f.deepMix)({},i.grid,{line:{type:"line"}})},radius:{title:null,grid:(0,f.deepMix)({},i.grid,{line:{type:"circle"}})}},legend:{common:n,right:{layout:"vertical",padding:e.legendVerticalPadding},left:{layout:"vertical",padding:e.legendVerticalPadding},top:{layout:"horizontal",padding:e.legendHorizontalPadding},bottom:{layout:"horizontal",padding:e.legendHorizontalPadding},continuous:{title:null,background:null,track:{},rail:{type:"color",size:e.sliderRailHeight,defaultLength:e.sliderRailWidth,style:{fill:e.sliderRailFillColor,stroke:e.sliderRailBorderColor,lineWidth:e.sliderRailBorder}},label:{align:"rail",spacing:4,formatter:null,style:{fill:e.sliderLabelTextFillColor,fontSize:e.sliderLabelTextFontSize,lineHeight:e.sliderLabelTextLineHeight,textBaseline:"middle",fontFamily:e.fontFamily}},handler:{size:e.sliderHandlerWidth,style:{fill:e.sliderHandlerFillColor,stroke:e.sliderHandlerBorderColor}},slidable:!0,padding:n.padding}},tooltip:{showContent:!0,follow:!0,showCrosshairs:!1,showMarkers:!0,shared:!1,enterable:!1,position:"auto",marker:{symbol:"circle",stroke:"#fff",shadowBlur:10,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"rgba(0,0,0,0.09)",lineWidth:2,r:4},crosshairs:{line:{style:{stroke:e.tooltipCrosshairsBorderColor,lineWidth:e.tooltipCrosshairsBorder}},text:null,textBackground:{padding:2,style:{fill:"rgba(0, 0, 0, 0.25)",lineWidth:0,stroke:null}},follow:!1},domStyles:(r={},r["".concat(sr)]={position:"absolute",visibility:"hidden",zIndex:8,transition:"left 0.4s cubic-bezier(0.23, 1, 0.32, 1) 0s, top 0.4s cubic-bezier(0.23, 1, 0.32, 1) 0s",backgroundColor:e.tooltipContainerFillColor,opacity:e.tooltipContainerFillOpacity,boxShadow:e.tooltipContainerShadow,borderRadius:"".concat(e.tooltipContainerBorderRadius,"px"),color:e.tooltipTextFillColor,fontSize:"".concat(e.tooltipTextFontSize,"px"),fontFamily:e.fontFamily,lineHeight:"".concat(e.tooltipTextLineHeight,"px"),padding:"0 12px 0 12px"},r["".concat(lr)]={marginBottom:"12px",marginTop:"12px"},r["".concat(Ui)]={margin:0,listStyleType:"none",padding:0},r["".concat(Vn)]={listStyleType:"none",padding:0,marginBottom:"12px",marginTop:"12px",marginLeft:0,marginRight:0},r["".concat(Gn)]={width:"8px",height:"8px",borderRadius:"50%",display:"inline-block",marginRight:"8px"},r["".concat(Wn)]={display:"inline-block",float:"right",marginLeft:"30px"},r)},annotation:{arc:{style:{stroke:e.annotationArcBorderColor,lineWidth:e.annotationArcBorder},animate:!0},line:{style:{stroke:e.annotationLineBorderColor,lineDash:e.annotationLineDash,lineWidth:e.annotationLineBorder},text:{position:"start",autoRotate:!0,style:{fill:e.annotationTextFillColor,stroke:e.annotationTextBorderColor,lineWidth:e.annotationTextBorder,fontSize:e.annotationTextFontSize,textAlign:"start",fontFamily:e.fontFamily,textBaseline:"bottom"}},animate:!0},text:{style:{fill:e.annotationTextFillColor,stroke:e.annotationTextBorderColor,lineWidth:e.annotationTextBorder,fontSize:e.annotationTextFontSize,textBaseline:"middle",textAlign:"start",fontFamily:e.fontFamily},animate:!0},region:{top:!1,style:{lineWidth:e.annotationRegionBorder,stroke:e.annotationRegionBorderColor,fill:e.annotationRegionFillColor,fillOpacity:e.annotationRegionFillOpacity},animate:!0},image:{top:!1,animate:!0},dataMarker:{top:!0,point:{style:{r:3,stroke:e.brandColor,lineWidth:2}},line:{style:{stroke:e.annotationLineBorderColor,lineWidth:e.annotationLineBorder},length:e.annotationDataMarkerLineLength},text:{style:{textAlign:"start",fill:e.annotationTextFillColor,stroke:e.annotationTextBorderColor,lineWidth:e.annotationTextBorder,fontSize:e.annotationTextFontSize,fontFamily:e.fontFamily}},direction:"upward",autoAdjust:!0,animate:!0},dataRegion:{style:{region:{fill:e.annotationRegionFillColor,fillOpacity:e.annotationRegionFillOpacity},text:{textAlign:"center",textBaseline:"bottom",fill:e.annotationTextFillColor,stroke:e.annotationTextBorderColor,lineWidth:e.annotationTextBorder,fontSize:e.annotationTextFontSize,fontFamily:e.fontFamily}},animate:!0}},slider:{common:{padding:[8,8,8,8],backgroundStyle:{fill:e.cSliderBackgroundFillColor,opacity:e.cSliderBackgroundFillOpacity},foregroundStyle:{fill:e.cSliderForegroundFillColor,opacity:e.cSliderForegroundFillOpacity},handlerStyle:{width:e.cSliderHandlerWidth,height:e.cSliderHandlerHeight,fill:e.cSliderHandlerFillColor,opacity:e.cSliderHandlerFillOpacity,stroke:e.cSliderHandlerBorderColor,lineWidth:e.cSliderHandlerBorder,radius:e.cSliderHandlerBorderRadius,highLightFill:e.cSliderHandlerHighlightFillColor},textStyle:{fill:e.cSliderTextFillColor,opacity:e.cSliderTextFillOpacity,fontSize:e.cSliderTextFontSize,lineHeight:e.cSliderTextLineHeight,fontWeight:e.cSliderTextFontWeight,stroke:e.cSliderTextBorderColor,lineWidth:e.cSliderTextBorder}}},scrollbar:{common:{padding:[8,8,8,8]},default:{style:{trackColor:e.scrollbarTrackFillColor,thumbColor:e.scrollbarThumbFillColor}},hover:{style:{thumbColor:e.scrollbarThumbHighlightFillColor}}}},labels:{offset:12,style:{fill:e.labelFillColor,fontSize:e.labelFontSize,fontFamily:e.fontFamily,stroke:e.labelBorderColor,lineWidth:e.labelBorder},fillColorDark:e.labelFillColorDark,fillColorLight:e.labelFillColorLight,autoRotate:!0},innerLabels:{style:{fill:e.innerLabelFillColor,fontSize:e.innerLabelFontSize,fontFamily:e.fontFamily,stroke:e.innerLabelBorderColor,lineWidth:e.innerLabelBorder},autoRotate:!0},overflowLabels:{style:{fill:e.overflowLabelFillColor,fontSize:e.overflowLabelFontSize,fontFamily:e.fontFamily,stroke:e.overflowLabelBorderColor,lineWidth:e.overflowLabelBorder}},pieLabels:{labelHeight:14,offset:10,labelLine:{style:{lineWidth:e.labelLineBorder}},autoRotate:!0}}}var Kt={100:"#000",95:"#0D0D0D",85:"#262626",65:"#595959",45:"#8C8C8C",25:"#BFBFBF",15:"#D9D9D9",6:"#F0F0F0"},gi={100:"#FFFFFF",95:"#F2F2F2",85:"#D9D9D9",65:"#A6A6A6",45:"#737373",25:"#404040",15:"#262626",6:"#0F0F0F"},hm=["#5B8FF9","#5AD8A6","#5D7092","#F6BD16","#6F5EF9","#6DC8EC","#945FB9","#FF9845","#1E9493","#FF99C3"],fm=["#5B8FF9","#CDDDFD","#5AD8A6","#CDF3E4","#5D7092","#CED4DE","#F6BD16","#FCEBB9","#6F5EF9","#D3CEFD","#6DC8EC","#D3EEF9","#945FB9","#DECFEA","#FF9845","#FFE0C7","#1E9493","#BBDEDE","#FF99C3","#FFE0ED"],vm=["#B8E1FF","#9AC5FF","#7DAAFF","#5B8FF9","#3D76DD","#085EC0","#0047A5","#00318A","#001D70"],nc=function(e){e===void 0&&(e={});var r=e.paletteQualitative10,t=r===void 0?hm:r,i=e.paletteQualitative20,n=i===void 0?fm:i,a=e.brandColor,o=a===void 0?t[0]:a,s={backgroundColor:"transparent",brandColor:o,subColor:"rgba(0,0,0,0.05)",paletteQualitative10:t,paletteQualitative20:n,paletteSemanticRed:"#F4664A",paletteSemanticGreen:"#30BF78",paletteSemanticYellow:"#FAAD14",paletteSequence:vm,fontFamily:`"Segoe UI", Roboto, "Helvetica Neue", Arial, + "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", + "Noto Color Emoji"`,axisLineBorderColor:Kt[25],axisLineBorder:1,axisLineDash:null,axisTitleTextFillColor:Kt[65],axisTitleTextFontSize:12,axisTitleTextLineHeight:12,axisTitleTextFontWeight:"normal",axisTitleSpacing:12,axisDescriptionIconFillColor:gi[85],axisTickLineBorderColor:Kt[25],axisTickLineLength:4,axisTickLineBorder:1,axisSubTickLineBorderColor:Kt[15],axisSubTickLineLength:2,axisSubTickLineBorder:1,axisLabelFillColor:Kt[45],axisLabelFontSize:12,axisLabelLineHeight:12,axisLabelFontWeight:"normal",axisLabelOffset:8,axisGridBorderColor:Kt[15],axisGridBorder:1,axisGridLineDash:null,legendTitleTextFillColor:Kt[45],legendTitleTextFontSize:12,legendTitleTextLineHeight:21,legendTitleTextFontWeight:"normal",legendMarkerColor:o,legendMarkerSpacing:8,legendMarkerSize:4,legendCircleMarkerSize:4,legendSquareMarkerSize:4,legendLineMarkerSize:5,legendItemNameFillColor:Kt[65],legendItemNameFontSize:12,legendItemNameLineHeight:12,legendItemNameFontWeight:"normal",legendItemSpacing:24,legendItemMarginBottom:12,legendPadding:[8,8,8,8],legendHorizontalPadding:[8,0,8,0],legendVerticalPadding:[0,8,0,8],legendPageNavigatorMarkerSize:12,legendPageNavigatorMarkerInactiveFillColor:Kt[100],legendPageNavigatorMarkerInactiveFillOpacity:.45,legendPageNavigatorMarkerFillColor:Kt[100],legendPageNavigatorMarkerFillOpacity:1,legendPageNavigatorTextFillColor:Kt[45],legendPageNavigatorTextFontSize:12,sliderRailFillColor:Kt[15],sliderRailBorder:0,sliderRailBorderColor:null,sliderRailWidth:100,sliderRailHeight:12,sliderLabelTextFillColor:Kt[45],sliderLabelTextFontSize:12,sliderLabelTextLineHeight:12,sliderLabelTextFontWeight:"normal",sliderHandlerFillColor:Kt[6],sliderHandlerWidth:10,sliderHandlerHeight:14,sliderHandlerBorder:1,sliderHandlerBorderColor:Kt[25],annotationArcBorderColor:Kt[15],annotationArcBorder:1,annotationLineBorderColor:Kt[25],annotationLineBorder:1,annotationLineDash:null,annotationTextFillColor:Kt[65],annotationTextFontSize:12,annotationTextLineHeight:12,annotationTextFontWeight:"normal",annotationTextBorderColor:null,annotationTextBorder:0,annotationRegionFillColor:Kt[100],annotationRegionFillOpacity:.06,annotationRegionBorder:0,annotationRegionBorderColor:null,annotationDataMarkerLineLength:16,tooltipCrosshairsBorderColor:Kt[25],tooltipCrosshairsBorder:1,tooltipCrosshairsLineDash:null,tooltipContainerFillColor:"rgb(255, 255, 255)",tooltipContainerFillOpacity:.95,tooltipContainerShadow:"0px 0px 10px #aeaeae",tooltipContainerBorderRadius:3,tooltipTextFillColor:Kt[65],tooltipTextFontSize:12,tooltipTextLineHeight:12,tooltipTextFontWeight:"bold",labelFillColor:Kt[65],labelFillColorDark:"#2c3542",labelFillColorLight:"#ffffff",labelFontSize:12,labelLineHeight:12,labelFontWeight:"normal",labelBorderColor:null,labelBorder:0,innerLabelFillColor:gi[100],innerLabelFontSize:12,innerLabelLineHeight:12,innerLabelFontWeight:"normal",innerLabelBorderColor:null,innerLabelBorder:0,overflowLabelFillColor:Kt[65],overflowLabelFontSize:12,overflowLabelLineHeight:12,overflowLabelFontWeight:"normal",overflowLabelBorderColor:gi[100],overflowLabelBorder:1,labelLineBorder:1,labelLineBorderColor:Kt[25],cSliderRailHieght:16,cSliderBackgroundFillColor:"#416180",cSliderBackgroundFillOpacity:.05,cSliderForegroundFillColor:"#5B8FF9",cSliderForegroundFillOpacity:.15,cSliderHandlerHeight:24,cSliderHandlerWidth:10,cSliderHandlerFillColor:"#F7F7F7",cSliderHandlerFillOpacity:1,cSliderHandlerHighlightFillColor:"#FFF",cSliderHandlerBorderColor:"#BFBFBF",cSliderHandlerBorder:1,cSliderHandlerBorderRadius:2,cSliderTextFillColor:"#000",cSliderTextFillOpacity:.45,cSliderTextFontSize:12,cSliderTextLineHeight:12,cSliderTextFontWeight:"normal",cSliderTextBorderColor:null,cSliderTextBorder:0,scrollbarTrackFillColor:"rgba(0,0,0,0)",scrollbarThumbFillColor:"rgba(0,0,0,0.15)",scrollbarThumbHighlightFillColor:"rgba(0,0,0,0.2)",pointFillColor:o,pointFillOpacity:.95,pointSize:4,pointBorder:1,pointBorderColor:gi[100],pointBorderOpacity:1,pointActiveBorderColor:Kt[100],pointSelectedBorder:2,pointSelectedBorderColor:Kt[100],pointInactiveFillOpacity:.3,pointInactiveBorderOpacity:.3,hollowPointSize:4,hollowPointBorder:1,hollowPointBorderColor:o,hollowPointBorderOpacity:.95,hollowPointFillColor:gi[100],hollowPointActiveBorder:1,hollowPointActiveBorderColor:Kt[100],hollowPointActiveBorderOpacity:1,hollowPointSelectedBorder:2,hollowPointSelectedBorderColor:Kt[100],hollowPointSelectedBorderOpacity:1,hollowPointInactiveBorderOpacity:.3,lineBorder:2,lineBorderColor:o,lineBorderOpacity:1,lineActiveBorder:3,lineSelectedBorder:3,lineInactiveBorderOpacity:.3,areaFillColor:o,areaFillOpacity:.25,areaActiveFillColor:o,areaActiveFillOpacity:.5,areaSelectedFillColor:o,areaSelectedFillOpacity:.5,areaInactiveFillOpacity:.3,hollowAreaBorderColor:o,hollowAreaBorder:2,hollowAreaBorderOpacity:1,hollowAreaActiveBorder:3,hollowAreaActiveBorderColor:Kt[100],hollowAreaSelectedBorder:3,hollowAreaSelectedBorderColor:Kt[100],hollowAreaInactiveBorderOpacity:.3,intervalFillColor:o,intervalFillOpacity:.95,intervalActiveBorder:1,intervalActiveBorderColor:Kt[100],intervalActiveBorderOpacity:1,intervalSelectedBorder:2,intervalSelectedBorderColor:Kt[100],intervalSelectedBorderOpacity:1,intervalInactiveBorderOpacity:.3,intervalInactiveFillOpacity:.3,hollowIntervalBorder:2,hollowIntervalBorderColor:o,hollowIntervalBorderOpacity:1,hollowIntervalFillColor:gi[100],hollowIntervalActiveBorder:2,hollowIntervalActiveBorderColor:Kt[100],hollowIntervalSelectedBorder:3,hollowIntervalSelectedBorderColor:Kt[100],hollowIntervalSelectedBorderOpacity:1,hollowIntervalInactiveBorderOpacity:.3};return(0,g.__assign)((0,g.__assign)({},s),e)},PI=nc();function ra(e){var r=e.styleSheet,t=r===void 0?{}:r,i=(0,g.__rest)(e,["styleSheet"]),n=nc(t);return(0,f.deepMix)({},ic(n),i)}var dm=ra({}),Bo={default:dm};function nn(e){return(0,f.get)(Bo,(0,f.lowerCase)(e),Bo.default)}function gm(e,r){Bo[(0,f.lowerCase)(e)]=ra(r)}function ac(e,r,t){var i=t.translate(e),n=t.translate(r);return(0,f.isNumberEqual)(i,n)}function pm(e,r){var t=r.coordinate,i=r.getXScale(),n=i.range,a=n[n.length-1],o=n[0],s=t.invert(e),l=s.x;return t.isPolar&&l>(1+a)/2&&(l=o),i.translate(i.invert(l))}function oc(e,r,t){var i=t.coordinate,n=t.getYScale(),a=n.field,o=i.invert(r),s=n.invert(o.y),l=(0,f.find)(e,function(u){var c=u[it];return c[a][0]<=s&&c[a][1]>=s});return l||e[e.length-1]}var ym=(0,f.memoize)(function(e){if(e.isCategory)return 1;for(var r=e.values,t=r.length,i=e.translate(r[0]),n=i,a=0;an&&(n=s)}return(n-i)/(t-1)});function mm(e,r,t){var i=r.getAttribute("position"),n=i.getFields(),a=r.scales,o=(0,f.isFunction)(t)||!t?n[0]:t,s=a[o],l=s?s.getText(e[o]):e[o]||o;return(0,f.isFunction)(t)?t(l,e):l}function xm(e){var r=(0,f.values)(e.attributes);return(0,f.filter)(r,function(t){return(0,f.contains)(Ct,t.type)})}function sc(e){var r,t,i=xm(e),n;try{for(var a=(0,g.__values)(i),o=a.next();!o.done;o=a.next()){var s=o.value,l=s.getScale(s.type);if(l&&l.isLinear){var u=(0,f.get)(e.scaleDefs,l.field),c=pu(l,u,s.type,e.type);if(c!=="cat"){n=l;break}}}}catch(d){r={error:d}}finally{try{o&&!o.done&&(t=a.return)&&t.call(a)}finally{if(r)throw r.error}}var h=e.getXScale(),v=e.getYScale();return n||v||h}function _m(e,r){var t=r.field,i=e[t];if((0,f.isArray)(i)){var n=i.map(function(a){return r.getText(a)});return n.join("-")}return r.getText(i)}function wm(e,r){var t,i=r.getGroupScales();if(i.length&&(t=i[0]),t){var n=t.field;return t.getText(e[n])}var a=sc(r);return $i(a)}function lc(e,r,t){if(r.length===0)return null;var i=t.type,n=t.getXScale(),a=t.getYScale(),o=n.field,s=a.field,l=null;if(i==="heatmap"||i==="point"){for(var u=t.coordinate,c=u.invert(e),h=n.invert(c.x),v=a.invert(c.y),d=Infinity,p=0;p=S)if(A)(0,f.isArray)(l)||(l=[]),l.push(O);else{l=O;break}}(0,f.isArray)(l)&&(l=oc(l,e,t))}else{var E=void 0;if(!n.isLinear&&n.type!=="timeCat"){for(var p=0;pn.translate(M)||Sn.max||SMath.abs(n.translate(E[it][o])-S)&&(w=E)}var At=ym(t.getXScale());return!l&&Math.abs(n.translate(w[it][o])-S)<=At/2&&(l=w),l}function Ro(e,r,t,i){var n,a;t===void 0&&(t=""),i===void 0&&(i=!1);var o=e[it],s=mm(o,r,t),l=r.tooltipOption,u=r.theme.defaultColor,c=[],h,v;function d(O,E){if(i||!(0,f.isNil)(E)&&E!==""){var z={title:s,data:o,mappingData:e,name:O,value:E,color:e.color||u,marker:!0};c.push(z)}}if((0,f.isObject)(l)){var p=l.fields,y=l.callback;if(y){var x=p.map(function(O){return e[it][O]}),m=y.apply(void 0,(0,g.__spreadArray)([],(0,g.__read)(x),!1)),_=(0,g.__assign)({data:e[it],mappingData:e,title:s,color:e.color||u,marker:!0},m);c.push(_)}else{var w=r.scales;try{for(var S=(0,g.__values)(p),b=S.next();!b.done;b=S.next()){var C=b.value;if(!(0,f.isNil)(o[C])){var M=w[C];h=$i(M),v=M.getText(o[C]),d(h,v)}}}catch(O){n={error:O}}finally{try{b&&!b.done&&(a=S.return)&&a.call(S)}finally{if(n)throw n.error}}}}else{var A=sc(r);v=_m(o,A),h=wm(o,r),d(h,v)}return c}function uc(e,r,t,i){var n,a,o=i.showNil,s=[],l=e.dataArray;if(!(0,f.isEmpty)(l)){e.sort(l);try{for(var u=(0,g.__values)(l),c=u.next();!c.done;c=u.next()){var h=c.value,v=lc(r,h,e);if(v){var d=e.getElementId(v),p=e.elementsMap[d];if(e.type==="heatmap"||p.visible){var y=Ro(v,e,t,o);y.length&&s.push(y)}}}}catch(x){n={error:x}}finally{try{c&&!c.done&&(a=u.return)&&a.call(u)}finally{if(n)throw n.error}}}return s}function cc(e,r,t,i){var n=i.showNil,a=[],o=e.container,s=o.getShape(r.x,r.y);if(s&&s.get("visible")&&s.get("origin")){var l=s.get("origin").mappingData,u=Ro(l,e,t,n);u.length&&a.push(u)}return a}function No(e,r,t){var i,n,a=[],o=e.geometries,s=t.shared,l=t.title,u=t.reversed;try{for(var c=(0,g.__values)(o),h=c.next();!h.done;h=c.next()){var v=h.value;if(v.visible&&v.tooltipOption!==!1){var d=v.type,p=void 0;["point","edge","polygon"].includes(d)?p=cc(v,r,l,t):["area","line","path","heatmap"].includes(d)||s!==!1?p=uc(v,r,l,t):p=cc(v,r,l,t),p.length&&(u&&p.reverse(),a.push(p))}}}catch(y){i={error:y}}finally{try{h&&!h.done&&(n=c.return)&&n.call(c)}finally{if(i)throw i.error}}return a}function Sm(e,r,t){var i,n,a=No(e,r,t);try{for(var o=(0,g.__values)(e.views),s=o.next();!s.done;s=o.next()){var l=s.value;a=a.concat(No(l,r,t))}}catch(u){i={error:u}}finally{try{s&&!s.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function bm(e){return!(0,f.isNumber)(e)&&!(0,f.isArray)(e)}function zo(e){e===void 0&&(e=0);var r=(0,f.isArray)(e)?e:[e];switch(r.length){case 0:r=[0,0,0,0];break;case 1:r=new Array(4).fill(r[0]);break;case 2:r=(0,g.__spreadArray)((0,g.__spreadArray)([],(0,g.__read)(r),!1),(0,g.__read)(r),!1);break;case 3:r=(0,g.__spreadArray)((0,g.__spreadArray)([],(0,g.__read)(r),!1),[r[1]],!1);break;default:r=r.slice(0,4);break}return r}var ia={};function Wr(e,r){ia[e]=r}function kI(e){delete ia[e]}function Cm(){return Object.keys(ia)}function Mm(e){return ia[e]}var Am=function(){function e(r){this.option=this.wrapperOption(r)}return e.prototype.update=function(r){return this.option=this.wrapperOption(r),this},e.prototype.hasAction=function(r){var t=this.option.actions;return(0,f.some)(t,function(i){return i[0]===r})},e.prototype.create=function(r,t){var i=this.option,n=i.type,a=i.cfg,o=n==="theta",s=(0,g.__assign)({start:r,end:t},a),l=Tg(o?"polar":n);return this.coordinate=new l(s),this.coordinate.type=n,o&&(this.hasAction("transpose")||this.transpose()),this.execActions(),this.coordinate},e.prototype.adjust=function(r,t){return this.coordinate.update({start:r,end:t}),this.coordinate.resetMatrix(),this.execActions(["scale","rotate","translate"]),this.coordinate},e.prototype.rotate=function(r){return this.option.actions.push(["rotate",r]),this},e.prototype.reflect=function(r){return this.option.actions.push(["reflect",r]),this},e.prototype.scale=function(r,t){return this.option.actions.push(["scale",r,t]),this},e.prototype.transpose=function(){return this.option.actions.push(["transpose"]),this},e.prototype.getOption=function(){return this.option},e.prototype.getCoordinate=function(){return this.coordinate},e.prototype.wrapperOption=function(r){return(0,g.__assign)({type:"rect",actions:[],cfg:{}},r)},e.prototype.execActions=function(r){var t=this,i=this.option.actions;(0,f.each)(i,function(n){var a,o=(0,g.__read)(n),s=o[0],l=o.slice(1),u=(0,f.isNil)(r)?!0:r.includes(s);u&&(a=t.coordinate)[s].apply(a,(0,g.__spreadArray)([],(0,g.__read)(l),!1))})},e}(),Fm=Am,Em=function(){function e(r,t,i){this.view=r,this.gEvent=t,this.data=i,this.type=t.type}return e.fromData=function(r,t,i){return new e(r,new Mt.Event(t,{}),i)},Object.defineProperty(e.prototype,"target",{get:function(){return this.gEvent.target},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"event",{get:function(){return this.gEvent.originalEvent},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"x",{get:function(){return this.gEvent.x},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"y",{get:function(){return this.gEvent.y},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"clientX",{get:function(){return this.gEvent.clientX},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"clientY",{get:function(){return this.gEvent.clientY},enumerable:!1,configurable:!0}),e.prototype.toString=function(){return"[Event (type=".concat(this.type,")]")},e.prototype.clone=function(){return new e(this.view,this.gEvent,this.data)},e}(),ue=Em;function Tm(e){var r=e.getController("axis"),t=e.getController("legend"),i=e.getController("annotation"),n=e.getController("slider"),a=e.getController("scrollbar");[r,n,a,t,i].forEach(function(o){o&&o.layout()})}var Lm=function(){function e(){this.scales=new Map,this.syncScales=new Map}return e.prototype.createScale=function(r,t,i,n){var a=i,o=this.getScaleMeta(n);if(t.length===0&&o){var s=o.scale,l={type:s.type};s.isCategory&&(l.values=s.values),a=(0,f.deepMix)(l,o.scaleDef,i)}var u=s0(r,t,a);return this.cacheScale(u,i,n),u},e.prototype.sync=function(r,t){var i=this;this.syncScales.forEach(function(n,a){var o=Number.MAX_SAFE_INTEGER,s=Number.MIN_SAFE_INTEGER,l=[];(0,f.each)(n,function(u){var c=i.getScale(u);s=(0,f.isNumber)(c.max)?Math.max(s,c.max):s,o=(0,f.isNumber)(c.min)?Math.min(o,c.min):o,(0,f.each)(c.values,function(h){l.includes(h)||l.push(h)})}),(0,f.each)(n,function(u){var c=i.getScale(u);if(c.isContinuous)c.change({min:o,max:s,values:l});else if(c.isCategory){var h=c.range,v=i.getScaleMeta(u);l&&!(0,f.get)(v,["scaleDef","range"])&&(h=yu((0,f.deepMix)({},c,{values:l}),r,t)),c.change({values:l,range:h})}})})},e.prototype.cacheScale=function(r,t,i){var n=this.getScaleMeta(i);n&&n.scale.type===r.type?(l0(n.scale,r),n.scaleDef=t):(n={key:i,scale:r,scaleDef:t},this.scales.set(i,n));var a=this.getSyncKey(n);if(n.syncKey=a,this.removeFromSyncScales(i),a){var o=this.syncScales.get(a);o||(o=[],this.syncScales.set(a,o)),o.push(i)}},e.prototype.getScale=function(r){var t=this.getScaleMeta(r);if(!t){var i=(0,f.last)(r.split("-")),n=this.syncScales.get(i);n&&n.length&&(t=this.getScaleMeta(n[0]))}return t&&t.scale},e.prototype.deleteScale=function(r){var t=this.getScaleMeta(r);if(t){var i=t.syncKey,n=this.syncScales.get(i);if(n&&n.length){var a=n.indexOf(r);a!==-1&&n.splice(a,1)}}this.scales.delete(r)},e.prototype.clear=function(){this.scales.clear(),this.syncScales.clear()},e.prototype.removeFromSyncScales=function(r){var t=this;this.syncScales.forEach(function(i,n){var a=i.indexOf(r);if(a!==-1)return i.splice(a,1),i.length===0&&t.syncScales.delete(n),!1})},e.prototype.getSyncKey=function(r){var t=r.scale,i=r.scaleDef,n=t.field,a=(0,f.get)(i,["sync"]);return a===!0?n:a===!1?void 0:a},e.prototype.getScaleMeta=function(r){return this.scales.get(r)},e}(),na=function(){function e(r,t,i,n){r===void 0&&(r=0),t===void 0&&(t=0),i===void 0&&(i=0),n===void 0&&(n=0),this.top=r,this.right=t,this.bottom=i,this.left=n}return e.instance=function(r,t,i,n){return r===void 0&&(r=0),t===void 0&&(t=0),i===void 0&&(i=0),n===void 0&&(n=0),new e(r,t,i,n)},e.prototype.max=function(r){var t=(0,g.__read)(r,4),i=t[0],n=t[1],a=t[2],o=t[3];return this.top=Math.max(this.top,i),this.right=Math.max(this.right,n),this.bottom=Math.max(this.bottom,a),this.left=Math.max(this.left,o),this},e.prototype.shrink=function(r){var t=(0,g.__read)(r,4),i=t[0],n=t[1],a=t[2],o=t[3];return this.top+=i,this.right+=n,this.bottom+=a,this.left+=o,this},e.prototype.inc=function(r,t){var i=r.width,n=r.height;switch(t){case T.TOP:case T.TOP_LEFT:case T.TOP_RIGHT:this.top+=n;break;case T.RIGHT:case T.RIGHT_TOP:case T.RIGHT_BOTTOM:this.right+=i;break;case T.BOTTOM:case T.BOTTOM_LEFT:case T.BOTTOM_RIGHT:this.bottom+=n;break;case T.LEFT:case T.LEFT_TOP:case T.LEFT_BOTTOM:this.left+=i;break;default:break}return this},e.prototype.getPadding=function(){return[this.top,this.right,this.bottom,this.left]},e.prototype.clone=function(){return new(e.bind.apply(e,(0,g.__spreadArray)([void 0],(0,g.__read)(this.getPadding()),!1)))},e}();function Im(e){var r=e.padding;if(!bm(r))return new(na.bind.apply(na,(0,g.__spreadArray)([void 0],(0,g.__read)(zo(r)),!1)));var t=e.viewBBox,i=new na,n=[],a=[],o=[];return(0,f.each)(e.getComponents(),function(s){var l=s.type;l===N.AXIS?n.push(s):[N.LEGEND,N.SLIDER,N.SCROLLBAR].includes(l)?a.push(s):l!==N.GRID&&l!==N.TOOLTIP&&o.push(s)}),(0,f.each)(n,function(s){var l=s.component,u=l.getLayoutBBox(),c=new Ee(u.x,u.y,u.width,u.height),h=c.exceed(t);i.max(h)}),(0,f.each)(a,function(s){var l=s.component,u=s.direction,c=l.getLayoutBBox(),h=l.get("padding"),v=new Ee(c.x,c.y,c.width,c.height).expand(h);i.inc(v,u)}),(0,f.each)(o,function(s){var l=s.component,u=s.direction,c=l.getLayoutBBox(),h=new Ee(c.x,c.y,c.width,c.height);i.inc(h,u)}),i}function Om(e,r,t){var i=t.instance();r.forEach(function(n){n.autoPadding=i.max(n.autoPadding.getPadding())})}var hc=function(e){(0,g.__extends)(r,e);function r(t){var i=e.call(this,{visible:t.visible})||this;i.views=[],i.geometries=[],i.controllers=[],i.interactions={},i.limitInPlot=!1,i.options={data:[],animate:!0},i.usedControllers=Cm(),i.scalePool=new Lm,i.layoutFunc=Tm,i.isPreMouseInPlot=!1,i.isDataChanged=!1,i.isCoordinateChanged=!1,i.createdScaleKeys=new Map,i.onCanvasEvent=function(w){var S=w.name;if(!S.includes(":")){var b=i.createViewEvent(w);i.doPlotEvent(b),i.emit(S,b)}},i.onDelegateEvents=function(w){var S=w.name;if(!!S.includes(":")){var b=i.createViewEvent(w);i.emit(S,b)}};var n=t.id,a=n===void 0?(0,f.uniqueId)("view"):n,o=t.parent,s=t.canvas,l=t.backgroundGroup,u=t.middleGroup,c=t.foregroundGroup,h=t.region,v=h===void 0?{start:{x:0,y:0},end:{x:1,y:1}}:h,d=t.padding,p=t.appendPadding,y=t.theme,x=t.options,m=t.limitInPlot,_=t.syncViewPadding;return i.parent=o,i.canvas=s,i.backgroundGroup=l,i.middleGroup=u,i.foregroundGroup=c,i.region=v,i.padding=d,i.appendPadding=p,i.options=(0,g.__assign)((0,g.__assign)({},i.options),x),i.limitInPlot=m,i.id=a,i.syncViewPadding=_,i.themeObject=(0,f.isObject)(y)?(0,f.deepMix)({},nn("default"),ra(y)):nn(y),i.init(),i}return r.prototype.setLayout=function(t){this.layoutFunc=t},r.prototype.init=function(){this.calculateViewBBox(),this.initEvents(),this.initComponentController(),this.initOptions()},r.prototype.render=function(t,i){t===void 0&&(t=!1),this.emit(I.BEFORE_RENDER,ue.fromData(this,I.BEFORE_RENDER,i)),this.paint(t),this.emit(I.AFTER_RENDER,ue.fromData(this,I.AFTER_RENDER,i)),this.visible===!1&&this.changeVisible(!1)},r.prototype.clear=function(){var t=this;this.emit(I.BEFORE_CLEAR),this.filteredData=[],this.coordinateInstance=void 0,this.isDataChanged=!1,this.isCoordinateChanged=!1;for(var i=this.geometries,n=0;n
      ');E.appendChild(z);var X=R(E,l,a,o),lt=se(v),pt=new lt.Canvas((0,g.__assign)({container:z,pixelRatio:d,localRefresh:y,supportCSSTransform:w},X));return i=e.call(this,{parent:null,canvas:pt,backgroundGroup:pt.addGroup({zIndex:Q.BG}),middleGroup:pt.addGroup({zIndex:Q.MID}),foregroundGroup:pt.addGroup({zIndex:Q.FORE}),padding:u,appendPadding:c,visible:m,options:C,limitInPlot:M,theme:A,syncViewPadding:O})||this,i.onResize=(0,f.debounce)(function(){i.forceFit()},300),i.ele=E,i.canvas=pt,i.width=X.width,i.height=X.height,i.autoFit=l,i.localRefresh=y,i.renderer=v,i.wrapperElement=z,i.updateCanvasStyle(),i.bindAutoFit(),i.initDefaultInteractions(b),i}return r.prototype.initDefaultInteractions=function(t){var i=this;(0,f.each)(t,function(n){i.interaction(n)})},r.prototype.aria=function(t){var i="aria-label";t===!1?this.ele.removeAttribute(i):this.ele.setAttribute(i,t.label)},r.prototype.changeSize=function(t,i){return this.width===t&&this.height===i?this:(this.emit(I.BEFORE_CHANGE_SIZE),this.width=t,this.height=i,this.canvas.changeSize(t,i),this.render(!0),this.emit(I.AFTER_CHANGE_SIZE),this)},r.prototype.clear=function(){e.prototype.clear.call(this),this.aria(!1)},r.prototype.destroy=function(){e.prototype.destroy.call(this),this.unbindAutoFit(),this.canvas.destroy(),D(this.wrapperElement),this.wrapperElement=null},r.prototype.changeVisible=function(t){return e.prototype.changeVisible.call(this,t),this.wrapperElement.style.display=t?"":"none",this},r.prototype.forceFit=function(){if(!this.destroyed){var t=R(this.ele,!0,this.width,this.height),i=t.width,n=t.height;this.changeSize(i,n)}},r.prototype.updateCanvasStyle=function(){(0,k.Z)(this.canvas.get("el"),{display:"inline-block",verticalAlign:"middle"})},r.prototype.bindAutoFit=function(){this.autoFit&&window.addEventListener("resize",this.onResize)},r.prototype.unbindAutoFit=function(){this.autoFit&&window.removeEventListener("resize",this.onResize)},r}(Pm),Dm=km,pi=function(){function e(r){this.visible=!0,this.components=[],this.view=r}return e.prototype.clear=function(r){(0,f.each)(this.components,function(t){t.component.destroy()}),this.components=[]},e.prototype.destroy=function(){this.clear()},e.prototype.getComponents=function(){return this.components},e.prototype.changeVisible=function(r){this.visible!==r&&(this.components.forEach(function(t){r?t.component.show():t.component.hide()}),this.visible=r)},e}();function Bm(e){for(var r=[],t=function(n){var a=e[n],o=(0,f.find)(r,function(s){return s.color===a.color&&s.name===a.name&&s.value===a.value&&s.title===a.title});o||r.push(a)},i=0;i1){var S=u[0],b=Math.abs(t.y-S[0].y);try{for(var C=(0,g.__values)(u),M=C.next();!M.done;M=C.next()){var A=M.value,O=Math.abs(t.y-A[0].y);O<=b&&(S=A,b=O)}}catch(E){s={error:E}}finally{try{M&&!M.done&&(l=C.return)&&l.call(C)}finally{if(s)throw s.error}}u=[S]}return Bm((0,f.flatten)(u))}return[]},r.prototype.layout=function(){},r.prototype.update=function(){if(this.point&&this.showTooltip(this.point),this.tooltip){var t=this.view.getCanvas();this.tooltip.set("region",{start:{x:0,y:0},end:{x:t.get("width"),y:t.get("height")}})}},r.prototype.isCursorEntered=function(t){if(this.tooltip){var i=this.tooltip.getContainer(),n=this.tooltip.get("capture");if(i&&n){var a=i.getBoundingClientRect(),o=a.x,s=a.y,l=a.width,u=a.height;return new Ee(o,s,l,u).isPointIn(t)}}return!1},r.prototype.getTooltipCfg=function(){var t=this.view,i=t.getOptions().tooltip,n=this.processCustomContent(i),a=t.getTheme(),o=(0,f.get)(a,["components","tooltip"],{}),s=(0,f.get)(n,"enterable",o.enterable);return(0,f.deepMix)({},o,n,{capture:!!(s||this.isLocked)})},r.prototype.processCustomContent=function(t){if((0,f.isBoolean)(t)||!(0,f.get)(t,"customContent"))return t;var i=t.customContent,n=function(a,o){var s=i(a,o)||"";return(0,f.isString)(s)?'
      '+s+"
      ":s};return(0,g.__assign)((0,g.__assign)({},t),{customContent:n})},r.prototype.getTitle=function(t){var i=t[0].title||t[0].name;return this.title=i,i},r.prototype.renderTooltip=function(){var t=this.view.getCanvas(),i={start:{x:0,y:0},end:{x:t.get("width"),y:t.get("height")}},n=this.getTooltipCfg(),a=new Xn((0,g.__assign)((0,g.__assign)({parent:t.get("el").parentNode,region:i},n),{visible:!1,crosshairs:null}));a.init(),this.tooltip=a},r.prototype.renderTooltipMarkers=function(t,i){var n,a,o=this.getTooltipMarkersGroup(),s=this.view.getRootView(),l=s.limitInPlot;try{for(var u=(0,g.__values)(t),c=u.next();!c.done;c=u.next()){var h=c.value,v=h.x,d=h.y;if(l||(o==null?void 0:o.getClip())){var p=Ao(s.getCoordinate()),y=p.type,x=p.attrs;o==null||o.setClip({type:y,attrs:x})}else o==null||o.setClip(void 0);var m=this.view.getTheme(),_=(0,f.get)(m,["components","tooltip","marker"],{}),w=(0,g.__assign)((0,g.__assign)({fill:h.color,symbol:"circle",shadowColor:h.color},(0,f.isFunction)(i)?(0,g.__assign)((0,g.__assign)({},_),i(h)):i),{x:v,y:d});o.addShape("marker",{attrs:w})}}catch(S){n={error:S}}finally{try{c&&!c.done&&(a=u.return)&&a.call(u)}finally{if(n)throw n.error}}},r.prototype.renderCrosshairs=function(t,i){var n=(0,f.get)(i,["crosshairs","type"],"x");n==="x"?(this.yCrosshair&&this.yCrosshair.hide(),this.renderXCrosshairs(t,i)):n==="y"?(this.xCrosshair&&this.xCrosshair.hide(),this.renderYCrosshairs(t,i)):n==="xy"&&(this.renderXCrosshairs(t,i),this.renderYCrosshairs(t,i))},r.prototype.renderXCrosshairs=function(t,i){var n=this.getViewWithGeometry(this.view).getCoordinate(),a,o;if(n.isRect)n.isTransposed?(a={x:n.start.x,y:t.y},o={x:n.end.x,y:t.y}):(a={x:t.x,y:n.end.y},o={x:t.x,y:n.start.y});else{var s=hi(n,t),l=n.getCenter(),u=n.getRadius();o=ge(l.x,l.y,u,s),a=l}var c=(0,f.deepMix)({start:a,end:o,container:this.getTooltipCrosshairsGroup()},(0,f.get)(i,"crosshairs",{}),this.getCrosshairsText("x",t,i));delete c.type;var h=this.xCrosshair;h?h.update(c):(h=new Xl(c),h.init()),h.render(),h.show(),this.xCrosshair=h},r.prototype.renderYCrosshairs=function(t,i){var n=this.getViewWithGeometry(this.view).getCoordinate(),a,o;if(n.isRect){var s=void 0,l=void 0;n.isTransposed?(s={x:t.x,y:n.end.y},l={x:t.x,y:n.start.y}):(s={x:n.start.x,y:t.y},l={x:n.end.x,y:t.y}),a={start:s,end:l},o="Line"}else a={center:n.getCenter(),radius:Un(n,t),startAngle:n.startAngle,endAngle:n.endAngle},o="Circle";a=(0,f.deepMix)({container:this.getTooltipCrosshairsGroup()},a,(0,f.get)(i,"crosshairs",{}),this.getCrosshairsText("y",t,i)),delete a.type;var u=this.yCrosshair;u?n.isRect&&u.get("type")==="circle"||!n.isRect&&u.get("type")==="line"?(u=new vt[o](a),u.init()):u.update(a):(u=new vt[o](a),u.init()),u.render(),u.show(),this.yCrosshair=u},r.prototype.getCrosshairsText=function(t,i,n){var a=(0,f.get)(n,["crosshairs","text"]),o=(0,f.get)(n,["crosshairs","follow"]),s=this.items;if(a){var l=this.getViewWithGeometry(this.view),u=s[0],c=l.getXScale(),h=l.getYScales()[0],v=void 0,d=void 0;if(o){var p=this.view.getCoordinate().invert(i);v=c.invert(p.x),d=h.invert(p.y)}else v=u.data[c.field],d=u.data[h.field];var y=t==="x"?v:d;return(0,f.isFunction)(a)?a=a(t,y,s,i):a.content=y,{text:a}}},r.prototype.getGuideGroup=function(){if(!this.guideGroup){var t=this.view.foregroundGroup;this.guideGroup=t.addGroup({name:"tooltipGuide",capture:!1})}return this.guideGroup},r.prototype.getTooltipMarkersGroup=function(){var t=this.tooltipMarkersGroup;return t&&!t.destroyed?(t.clear(),t.show()):(t=this.getGuideGroup().addGroup({name:"tooltipMarkersGroup"}),t.toFront(),this.tooltipMarkersGroup=t),t},r.prototype.getTooltipCrosshairsGroup=function(){var t=this.tooltipCrosshairsGroup;return t||(t=this.getGuideGroup().addGroup({name:"tooltipCrosshairsGroup",capture:!1}),t.toBack(),this.tooltipCrosshairsGroup=t),t},r.prototype.findItemsFromView=function(t,i){var n,a;if(t.getOptions().tooltip===!1)return[];var o=this.getTooltipCfg(),s=No(t,i,o);try{for(var l=(0,g.__values)(t.views),u=l.next();!u.done;u=l.next()){var c=u.value;s=s.concat(this.findItemsFromView(c,i))}}catch(h){n={error:h}}finally{try{u&&!u.done&&(a=l.return)&&a.call(l)}finally{if(n)throw n.error}}return s},r.prototype.getViewWithGeometry=function(t){var i=this;return t.geometries.length?t:(0,f.find)(t.views,function(n){return i.getViewWithGeometry(n)})},r.prototype.getItemsAfterProcess=function(t){var i=this.getTooltipCfg().customItems,n=i||function(a){return a};return n(t)},r}(pi),fc=Rm,vc={};function dc(e){return vc[e.toLowerCase()]}function ze(e,r){vc[e.toLowerCase()]=r}var yi={appear:{duration:450,easing:"easeQuadOut"},update:{duration:400,easing:"easeQuadInOut"},enter:{duration:400,easing:"easeQuadInOut"},leave:{duration:350,easing:"easeQuadIn"}},Nm={interval:function(e){return{enter:{animation:e.isRect?e.isTransposed?"scale-in-x":"scale-in-y":"fade-in"},update:{animation:e.isPolar&&e.isTransposed?"sector-path-update":null},leave:{animation:"fade-out"}}},line:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},path:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},point:{appear:{animation:"zoom-in"},enter:{animation:"zoom-in"},leave:{animation:"zoom-out"}},area:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},polygon:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},schema:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},edge:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},label:{appear:{animation:"fade-in",delay:450},enter:{animation:"fade-in"},update:{animation:"position-update"},leave:{animation:"fade-out"}}},gc={line:function(){return{animation:"wave-in"}},area:function(){return{animation:"wave-in"}},path:function(){return{animation:"fade-in"}},interval:function(e){var r;return e.isRect?r=e.isTransposed?"grow-in-x":"grow-in-y":(r="grow-in-xy",e.isPolar&&e.isTransposed&&(r="wave-in")),{animation:r}},schema:function(e){var r;return e.isRect?r=e.isTransposed?"grow-in-x":"grow-in-y":r="grow-in-xy",{animation:r}},polygon:function(){return{animation:"fade-in",duration:500}},edge:function(){return{animation:"fade-in"}}};function zm(e,r){return{delay:(0,f.isFunction)(e.delay)?e.delay(r):e.delay,easing:(0,f.isFunction)(e.easing)?e.easing(r):e.easing,duration:(0,f.isFunction)(e.duration)?e.duration(r):e.duration,callback:e.callback,repeat:e.repeat}}function pc(e,r,t){var i=Nm[e];return i&&((0,f.isFunction)(i)&&(i=i(r)),i=(0,f.deepMix)({},yi,i),t)?i[t]:i}function mi(e,r,t){var i=(0,f.get)(e.get("origin"),"data",it),n=r.animation,a=zm(r,i);if(n){var o=dc(n);o&&o(e,a,t)}else e.animate(t.toAttrs,a)}function Vm(e,r,t,i,n){if(gc[t]){var a=gc[t](i),o=dc((0,f.get)(a,"animation",""));if(o){var s=(0,g.__assign)((0,g.__assign)((0,g.__assign)({},yi.appear),a),r);e.stopAnimate(),o(e,s,{coordinate:i,minYPoint:n,toAttrs:null})}}}var Vo="element-background",Gm=function(e){(0,g.__extends)(r,e);function r(t){var i=e.call(this,t)||this;i.labelShape=[],i.states=[];var n=t.shapeFactory,a=t.container,o=t.offscreenGroup,s=t.elementIndex,l=t.visible,u=l===void 0?!0:l;return i.shapeFactory=n,i.container=a,i.offscreenGroup=o,i.visible=u,i.elementIndex=s,i}return r.prototype.draw=function(t,i){i===void 0&&(i=!1),this.model=t,this.data=t.data,this.shapeType=this.getShapeType(t),this.drawShape(t,i),this.visible===!1&&this.changeVisible(!1)},r.prototype.update=function(t){var i=this,n=i.shapeFactory,a=i.shape;if(!!a){this.model=t,this.data=t.data,this.shapeType=this.getShapeType(t),this.setShapeInfo(a,t);var o=this.getOffscreenGroup(),s=n.drawShape(this.shapeType,t,o);s.cfg.data=this.data,s.cfg.origin=t,s.cfg.element=this,this.syncShapeStyle(a,s,this.getStates(),this.getAnimateCfg("update"))}},r.prototype.destroy=function(){var t=this,i=t.shapeFactory,n=t.shape;if(n){var a=this.getAnimateCfg("leave");a?mi(n,a,{coordinate:i.coordinate,toAttrs:(0,g.__assign)({},n.attr())}):n.remove(!0)}this.states=[],this.shapeFactory=void 0,this.container=void 0,this.shape=void 0,this.animate=void 0,this.geometry=void 0,this.labelShape=[],this.model=void 0,this.data=void 0,this.offscreenGroup=void 0,this.statesStyle=void 0,e.prototype.destroy.call(this)},r.prototype.changeVisible=function(t){e.prototype.changeVisible.call(this,t),t?(this.shape&&this.shape.show(),this.labelShape&&this.labelShape.forEach(function(i){i.show()})):(this.shape&&this.shape.hide(),this.labelShape&&this.labelShape.forEach(function(i){i.hide()}))},r.prototype.setState=function(t,i){var n=this,a=n.states,o=n.shapeFactory,s=n.model,l=n.shape,u=n.shapeType,c=a.indexOf(t);if(i){if(c>-1)return;a.push(t),(t==="active"||t==="selected")&&(l==null||l.toFront())}else{if(c===-1)return;if(a.splice(c,1),t==="active"||t==="selected"){var h=this.geometry,v=h.sortZIndex,d=h.zIndexReversed,p=d?this.geometry.elements.length-this.elementIndex:this.elementIndex;v?l.setZIndex(p):l.set("zIndex",p)}}var y=o.drawShape(u,s,this.getOffscreenGroup());a.length?this.syncShapeStyle(l,y,a,null):this.syncShapeStyle(l,y,["reset"],null),y.remove(!0);var x={state:t,stateStatus:i,element:this,target:this.container};this.container.emit("statechange",x),Ol(this.shape,"statechange",x)},r.prototype.clearStates=function(){var t=this,i=this.states;(0,f.each)(i,function(n){t.setState(n,!1)}),this.states=[]},r.prototype.hasState=function(t){return this.states.includes(t)},r.prototype.getStates=function(){return this.states},r.prototype.getData=function(){return this.data},r.prototype.getModel=function(){return this.model},r.prototype.getBBox=function(){var t=this,i=t.shape,n=t.labelShape,a={x:0,y:0,minX:0,minY:0,maxX:0,maxY:0,width:0,height:0};return i&&(a=i.getCanvasBBox()),n&&n.forEach(function(o){var s=o.getCanvasBBox();a.x=Math.min(s.x,a.x),a.y=Math.min(s.y,a.y),a.minX=Math.min(s.minX,a.minX),a.minY=Math.min(s.minY,a.minY),a.maxX=Math.max(s.maxX,a.maxX),a.maxY=Math.max(s.maxY,a.maxY)}),a.width=a.maxX-a.minX,a.height=a.maxY-a.minY,a},r.prototype.getStatesStyle=function(){if(!this.statesStyle){var t=this,i=t.shapeType,n=t.geometry,a=t.shapeFactory,o=n.stateOption,s=a.defaultShapeType,l=a.theme[i]||a.theme[s];this.statesStyle=(0,f.deepMix)({},l,o)}return this.statesStyle},r.prototype.getStateStyle=function(t,i){var n=this.getStatesStyle(),a=(0,f.get)(n,[t,"style"],{}),o=a[i]||a;return(0,f.isFunction)(o)?o(this):o},r.prototype.getAnimateCfg=function(t){var i=this,n=this.animate;if(n){var a=n[t];return a&&(0,g.__assign)((0,g.__assign)({},a),{callback:function(){var o;(0,f.isFunction)(a.callback)&&a.callback(),(o=i.geometry)===null||o===void 0||o.emit(U.AFTER_DRAW_ANIMATE)}})}return null},r.prototype.drawShape=function(t,i){var n;i===void 0&&(i=!1);var a=this,o=a.shapeFactory,s=a.container,l=a.shapeType;if(this.shape=o.drawShape(l,t,s),this.shape){this.setShapeInfo(this.shape,t);var u=this.shape.cfg.name;u?(0,f.isString)(u)&&(this.shape.cfg.name=["element",u]):this.shape.cfg.name=["element",this.shapeFactory.geometryType];var c=i?"enter":"appear",h=this.getAnimateCfg(c);h&&((n=this.geometry)===null||n===void 0||n.emit(U.BEFORE_DRAW_ANIMATE),mi(this.shape,h,{coordinate:o.coordinate,toAttrs:(0,g.__assign)({},this.shape.attr())}))}},r.prototype.getOffscreenGroup=function(){if(!this.offscreenGroup){var t=this.container.getGroupBase();this.offscreenGroup=new t({})}return this.offscreenGroup},r.prototype.setShapeInfo=function(t,i){var n=this;if(t.cfg.origin=i,t.cfg.element=this,t.isGroup()){var a=t.get("children");a.forEach(function(o){n.setShapeInfo(o,i)})}},r.prototype.syncShapeStyle=function(t,i,n,a,o){var s=this,l;if(n===void 0&&(n=[]),o===void 0&&(o=0),!(!t||!i)){var u=t.get("clipShape"),c=i.get("clipShape");if(this.syncShapeStyle(u,c,n,a),t.isGroup())for(var h=t.get("children"),v=i.get("children"),d=0;d=0?a=i:n<=0?a=n:a=0,a},r.prototype.createAttrOption=function(t,i,n){if((0,f.isNil)(i)||(0,f.isObject)(i))(0,f.isObject)(i)&&(0,f.isEqual)(Object.keys(i),["values"])?(0,f.set)(this.attributeOption,t,{fields:i.values}):(0,f.set)(this.attributeOption,t,i);else{var a={};(0,f.isNumber)(i)?a.values=[i]:a.fields=on(i),n&&((0,f.isFunction)(n)?a.callback=n:a.values=n),(0,f.set)(this.attributeOption,t,a)}},r.prototype.initAttributes=function(){var t=this,i=this,n=i.attributes,a=i.attributeOption,o=i.theme,s=i.shapeType;this.groupScales=[];var l={},u=function(v){if(a.hasOwnProperty(v)){var d=a[v];if(!d)return{value:void 0};var p=(0,g.__assign)({},d),y=p.callback,x=p.values,m=p.fields,_=m===void 0?[]:m,w=_.map(function(b){var C=t.scales[b];if(!l[b]&&Ct.includes(v)){var M=pu(C,(0,f.get)(t.scaleDefs,b),v,t.type);M==="cat"&&(t.groupScales.push(C),l[b]=!0)}return C});p.scales=w,v!=="position"&&w.length===1&&w[0].type==="identity"?p.values=w[0].values:!y&&!x&&(v==="size"?p.values=o.sizes:v==="shape"?p.values=o.shapes[s]||[]:v==="color"&&(w.length?p.values=w[0].values.length<=10?o.colors10:o.colors20:p.values=o.colors10));var S=Tl(v);n[v]=new S(p)}};for(var c in a){var h=u(c);if(typeof h=="object")return h.value}},r.prototype.processData=function(t){var i,n;this.hasSorted=!1;for(var a=this.getAttribute("position").scales,o=a.filter(function(M){return M.isCategory}),s=this.groupData(t),l=[],u=0,c=s.length;us&&(s=h)}var v=this.scaleDefs,d={};ot.max&&!(0,f.get)(v,[a,"max"])&&(d.max=s),t.change(d)},r.prototype.beforeMapping=function(t){var i=t;if(this.sortable&&this.sort(i),this.generatePoints)for(var n=0,a=i.length;n1)for(var v=0;v0})}function Cc(e,r,t){var i=t.data,n=t.origin,a=t.animateCfg,o=t.coordinate,s=(0,f.get)(a,"update");e.set("data",i),e.set("origin",n),e.set("animateCfg",a),e.set("coordinate",o),e.set("visible",r.get("visible")),(e.getChildren()||[]).forEach(function(l,u){var c=r.getChildByIndex(u);if(!c)e.removeChild(l),l.remove(!0);else{l.set("data",i),l.set("origin",n),l.set("animateCfg",a),l.set("coordinate",o);var h=gu(l,c);s?mi(l,s,{toAttrs:h,coordinate:o}):l.attr(h),c.isGroup()&&Cc(l,c,t)}}),(0,f.each)(r.getChildren(),function(l,u){u>=e.getCount()&&(l.destroyed||e.add(l))})}var Qm=function(){function e(r){this.shapesMap={};var t=r.layout,i=r.container;this.layout=t,this.container=i}return e.prototype.render=function(r,t,i){return i===void 0&&(i=!1),(0,g.__awaiter)(this,void 0,void 0,function(){var n,a,o,s,l,u,c,h,v=this;return(0,g.__generator)(this,function(d){switch(d.label){case 0:if(n={},a=this.createOffscreenGroup(),!r.length)return[3,2];try{for(o=(0,g.__values)(r),s=o.next();!s.done;s=o.next())l=s.value,l&&(n[l.id]=this.renderLabel(l,a))}catch(p){c={error:p}}finally{try{s&&!s.done&&(h=o.return)&&h.call(o)}finally{if(c)throw c.error}}return[4,this.doLayout(r,t,n)];case 1:d.sent(),this.renderLabelLine(r,n),this.renderLabelBackground(r,n),this.adjustLabel(r,n),d.label=2;case 2:return u=this.shapesMap,(0,f.each)(n,function(p,y){if(p.destroyed)delete n[y];else{if(u[y]){var x=p.get("data"),m=p.get("origin"),_=p.get("coordinate"),w=p.get("animateCfg"),S=u[y];Cc(S,n[y],{data:x,origin:m,animateCfg:w,coordinate:_}),n[y]=S}else{if(v.container.destroyed)return;v.container.add(p);var b=(0,f.get)(p.get("animateCfg"),i?"enter":"appear");b&&mi(p,b,{toAttrs:(0,g.__assign)({},p.attr()),coordinate:p.get("coordinate")})}delete u[y]}}),(0,f.each)(u,function(p){var y=(0,f.get)(p.get("animateCfg"),"leave");y?mi(p,y,{toAttrs:null,coordinate:p.get("coordinate")}):p.remove(!0)}),this.shapesMap=n,a.destroy(),[2]}})})},e.prototype.clear=function(){this.container.clear(),this.shapesMap={}},e.prototype.destroy=function(){this.container.destroy(),this.shapesMap=null},e.prototype.renderLabel=function(r,t){var i=r.id,n=r.elementId,a=r.data,o=r.mappingData,s=r.coordinate,l=r.animate,u=r.content,c=r.capture,h={id:i,elementId:n,capture:c,data:a,origin:(0,g.__assign)((0,g.__assign)({},o),{data:o[it]}),coordinate:s},v=t.addGroup((0,g.__assign)({name:"label",animateCfg:this.animate===!1||l===null||l===!1?!1:(0,f.deepMix)({},this.animate,l)},h)),d;if(u.isGroup&&u.isGroup()||u.isShape&&u.isShape()){var p=u.getCanvasBBox(),y=p.width,x=p.height,m=(0,f.get)(r,"textAlign","left"),_=r.x,w=r.y-x/2;m==="center"?_=_-y/2:(m==="right"||m==="end")&&(_=_-y),sn(u,_,w),d=u,v.add(u)}else{var S=(0,f.get)(r,["style","fill"]);d=v.addShape("text",(0,g.__assign)({attrs:(0,g.__assign)((0,g.__assign)({x:r.x,y:r.y,textAlign:r.textAlign,textBaseline:(0,f.get)(r,"textBaseline","middle"),text:r.content},r.style),{fill:(0,f.isNull)(S)?r.color:S})},h))}return r.rotate&&Wo(d,r.rotate),v},e.prototype.doLayout=function(r,t,i){return(0,g.__awaiter)(this,void 0,void 0,function(){var n,a=this;return(0,g.__generator)(this,function(o){switch(o.label){case 0:return this.layout?(n=(0,f.isArray)(this.layout)?this.layout:[this.layout],[4,Promise.all(n.map(function(s){var l=Hm((0,f.get)(s,"type",""));if(!!l){var u=[],c=[];return(0,f.each)(i,function(h,v){u.push(h),c.push(t[h.get("elementId")])}),l(r,u,c,a.region,s.cfg)}}))]):[3,2];case 1:o.sent(),o.label=2;case 2:return[2]}})})},e.prototype.renderLabelLine=function(r,t){(0,f.each)(r,function(i){var n=(0,f.get)(i,"coordinate");if(!(!i||!n)){var a=n.getCenter(),o=n.getRadius();if(!!i.labelLine){var s=(0,f.get)(i,"labelLine",{}),l=i.id,u=s.path;if(!u){var c=ge(a.x,a.y,o,i.angle);u=[["M",c.x,c.y],["L",i.x,i.y]]}var h=t[l];h.destroyed||h.addShape("path",{capture:!1,attrs:(0,g.__assign)({path:u,stroke:i.color?i.color:(0,f.get)(i,["style","fill"],"#000"),fill:null},s.style),id:l,origin:i.mappingData,data:i.data,coordinate:i.coordinate})}}})},e.prototype.renderLabelBackground=function(r,t){(0,f.each)(r,function(i){var n=(0,f.get)(i,"coordinate"),a=(0,f.get)(i,"background");if(!(!a||!n)){var o=i.id,s=t[o];if(!s.destroyed){var l=s.getChildren()[0];if(l){var u=bc(s,i,a.padding),c=u.rotation,h=(0,g.__rest)(u,["rotation"]),v=s.addShape("rect",{attrs:(0,g.__assign)((0,g.__assign)({},h),a.style||{}),id:o,origin:i.mappingData,data:i.data,coordinate:i.coordinate});if(v.setZIndex(-1),c){var d=l.getMatrix();v.setMatrix(d)}}}}})},e.prototype.createOffscreenGroup=function(){var r=this.container,t=r.getGroupBase(),i=new t({});return i},e.prototype.adjustLabel=function(r,t){(0,f.each)(r,function(i){if(i){var n=i.id,a=t[n];if(!a.destroyed){var o=a.findAll(function(s){return s.get("type")!=="path"});(0,f.each)(o,function(s){s&&(i.offsetX&&s.attr("x",s.attr("x")+i.offsetX),i.offsetY&&s.attr("y",s.attr("y")+i.offsetY))})}}})},e}(),Jm=Qm;function Mc(e){var r=0;return(0,f.each)(e,function(t){r+=t}),r/e.length}var tx=function(){function e(r){this.geometry=r}return e.prototype.getLabelItems=function(r){var t=this,i=[],n=this.getLabelCfgs(r);return(0,f.each)(r,function(a,o){var s=n[o];if(!s||(0,f.isNil)(a.x)||(0,f.isNil)(a.y)){i.push(null);return}var l=(0,f.isArray)(s.content)?s.content:[s.content];s.content=l;var u=l.length;(0,f.each)(l,function(c,h){if((0,f.isNil)(c)||c===""){i.push(null);return}var v=(0,g.__assign)((0,g.__assign)({},s),t.getLabelPoint(s,a,h));v.textAlign||(v.textAlign=t.getLabelAlign(v,h,u)),v.offset<=0&&(v.labelLine=null),i.push(v)})}),i},e.prototype.render=function(r,t){return t===void 0&&(t=!1),(0,g.__awaiter)(this,void 0,void 0,function(){var i,n,a;return(0,g.__generator)(this,function(o){switch(o.label){case 0:return i=this.getLabelItems(r),n=this.getLabelsRenderer(),a=this.getGeometryShapes(),[4,n.render(i,a,t)];case 1:return o.sent(),[2]}})})},e.prototype.clear=function(){var r=this.labelsRenderer;r&&r.clear()},e.prototype.destroy=function(){var r=this.labelsRenderer;r&&r.destroy(),this.labelsRenderer=null},e.prototype.getCoordinate=function(){return this.geometry.coordinate},e.prototype.getDefaultLabelCfg=function(r,t){var i=this.geometry,n=i.type,a=i.theme;return n==="polygon"||n==="interval"&&t==="middle"||r<0&&!["line","point","path"].includes(n)?(0,f.get)(a,"innerLabels",{}):(0,f.get)(a,"labels",{})},e.prototype.getThemedLabelCfg=function(r){var t=this.geometry,i=this.getDefaultLabelCfg(),n=t.type,a=t.theme,o;return n==="polygon"||r.offset<0&&!["line","point","path"].includes(n)?o=(0,f.deepMix)({},i,a.innerLabels,r):o=(0,f.deepMix)({},i,a.labels,r),o},e.prototype.setLabelPosition=function(r,t,i,n){},e.prototype.getLabelOffset=function(r){var t=this.getCoordinate(),i=this.getOffsetVector(r);return t.isTransposed?i[0]:i[1]},e.prototype.getLabelOffsetPoint=function(r,t,i){var n=r.offset,a=this.getCoordinate(),o=a.isTransposed,s=o?"x":"y",l=o?1:-1,u={x:0,y:0};return t>0||i===1?u[s]=n*l:u[s]=n*l*-1,u},e.prototype.getLabelPoint=function(r,t,i){var n=this.getCoordinate(),a=r.content.length;function o(x,m,_){_===void 0&&(_=!1);var w=x;return(0,f.isArray)(w)&&(r.content.length===1?_?w=Mc(w):w.length<=2?w=w[x.length-1]:w=Mc(w):w=w[m]),w}var s={content:r.content[i],x:0,y:0,start:{x:0,y:0},color:"#fff"},l=(0,f.isArray)(t.shape)?t.shape[0]:t.shape,u=l==="funnel"||l==="pyramid";if(this.geometry.type==="polygon"){var c=Jy(t.x,t.y);s.x=c[0],s.y=c[1]}else this.geometry.type==="interval"&&!u?(s.x=o(t.x,i,!0),s.y=o(t.y,i)):(s.x=o(t.x,i),s.y=o(t.y,i));if(u){var h=(0,f.get)(t,"nextPoints"),v=(0,f.get)(t,"points");if(h){var d=n.convert(v[1]),p=n.convert(h[1]);s.x=(d.x+p.x)/2,s.y=(d.y+p.y)/2}else if(l==="pyramid"){var d=n.convert(v[1]),p=n.convert(v[2]);s.x=(d.x+p.x)/2,s.y=(d.y+p.y)/2}}r.position&&this.setLabelPosition(s,t,i,r.position);var y=this.getLabelOffsetPoint(r,i,a);return s.start={x:s.x,y:s.y},s.x+=y.x,s.y+=y.y,s.color=t.color,s},e.prototype.getLabelAlign=function(r,t,i){var n="center",a=this.getCoordinate();if(a.isTransposed){var o=r.offset;o<0?n="right":o===0?n="center":n="left",i>1&&t===0&&(n==="right"?n="left":n==="left"&&(n="right"))}return n},e.prototype.getLabelId=function(r){var t=this.geometry,i=t.type,n=t.getXScale(),a=t.getYScale(),o=r[it],s=t.getElementId(r);return i==="line"||i==="area"?s+=" ".concat(o[n.field]):i==="path"&&(s+=" ".concat(o[n.field],"-").concat(o[a.field])),s},e.prototype.getLabelsRenderer=function(){var r=this.geometry,t=r.labelsContainer,i=r.labelOption,n=r.canvasRegion,a=r.animateOption,o=this.geometry.coordinate,s=this.labelsRenderer;return s||(s=new Jm({container:t,layout:(0,f.get)(i,["cfg","layout"],{type:this.defaultLayout})}),this.labelsRenderer=s),s.region=n,s.animate=a?pc("label",o):!1,s},e.prototype.getLabelCfgs=function(r){var t=this,i=this.geometry,n=i.labelOption,a=i.scales,o=i.coordinate,s=n,l=s.fields,u=s.callback,c=s.cfg,h=l.map(function(d){return a[d]}),v=[];return(0,f.each)(r,function(d,p){var y=d[it],x=t.getLabelText(y,h),m;if(u){var _=l.map(function(M){return y[M]});if(m=u.apply(void 0,(0,g.__spreadArray)([],(0,g.__read)(_),!1)),(0,f.isNil)(m)){v.push(null);return}}var w=(0,g.__assign)((0,g.__assign)({id:t.getLabelId(d),elementId:t.geometry.getElementId(d),data:y,mappingData:d,coordinate:o},c),m);(0,f.isFunction)(w.position)&&(w.position=w.position(y,d,p));var S=t.getLabelOffset(w.offset||0),b=t.getDefaultLabelCfg(S,w.position);w=(0,f.deepMix)({},b,w),w.offset=t.getLabelOffset(w.offset||0);var C=w.content;(0,f.isFunction)(C)?w.content=C(y,d,p):(0,f.isUndefined)(C)&&(w.content=x[0]),v.push(w)}),v},e.prototype.getLabelText=function(r,t){var i=[];return(0,f.each)(t,function(n){var a=r[n.field];(0,f.isArray)(a)?a=a.map(function(o){return n.getText(o)}):a=n.getText(a),(0,f.isNil)(a)||a===""?i.push(null):i.push(a)}),i},e.prototype.getOffsetVector=function(r){r===void 0&&(r=0);var t=this.getCoordinate(),i=0;return(0,f.isNumber)(r)&&(i=r),t.isTransposed?t.applyMatrix(i,0):t.applyMatrix(0,i)},e.prototype.getGeometryShapes=function(){var r=this.geometry,t={};return(0,f.each)(r.elementsMap,function(i,n){t[n]=i.shape}),(0,f.each)(r.getOffscreenGroup().getChildren(),function(i){var n=r.getElementId(i.get("origin").mappingData);t[n]=i}),t},e}(),oa=tx;function Ho(e,r,t){if(!e)return t;var i;if(e.callback&&e.callback.length>1){var n=Array(e.callback.length-1).fill("");i=e.mapping.apply(e,(0,g.__spreadArray)([r],(0,g.__read)(n),!1)).join("")}else i=e.mapping(r).join("");return i||t}var Hr={hexagon:function(e,r,t){var i=t/2*Math.sqrt(3);return[["M",e,r-t],["L",e+i,r-t/2],["L",e+i,r+t/2],["L",e,r+t],["L",e-i,r+t/2],["L",e-i,r-t/2],["Z"]]},bowtie:function(e,r,t){var i=t-1.5;return[["M",e-t,r-i],["L",e+t,r+i],["L",e+t,r-i],["L",e-t,r+i],["Z"]]},cross:function(e,r,t){return[["M",e-t,r-t],["L",e+t,r+t],["M",e+t,r-t],["L",e-t,r+t]]},tick:function(e,r,t){return[["M",e-t/2,r-t],["L",e+t/2,r-t],["M",e,r-t],["L",e,r+t],["M",e-t/2,r+t],["L",e+t/2,r+t]]},plus:function(e,r,t){return[["M",e-t,r],["L",e+t,r],["M",e,r-t],["L",e,r+t]]},hyphen:function(e,r,t){return[["M",e-t,r],["L",e+t,r]]},line:function(e,r,t){return[["M",e,r-t],["L",e,r+t]]}},ex=["line","cross","tick","plus","hyphen"];function rx(e,r){return(0,f.isFunction)(r)?r(e):(0,f.deepMix)({},e,r)}function ix(e,r){var t=e.symbol;if((0,f.isString)(t)&&ex.indexOf(t)!==-1){var i=(0,f.get)(e,"style",{}),n=(0,f.get)(i,"lineWidth",1),a=i.stroke||i.fill||r;e.style=(0,f.deepMix)({},e.style,{lineWidth:n,stroke:a,fill:null})}}function Ac(e){var r=e.symbol;(0,f.isString)(r)&&Hr[r]&&(e.symbol=Hr[r])}function Yo(e){return e.startsWith(T.LEFT)||e.startsWith(T.RIGHT)?"vertical":"horizontal"}function Fc(e,r,t,i,n){var a=t.getScale(t.type);if(a.isCategory){var o=a.field,s=r.getAttribute("color"),l=r.getAttribute("shape"),u=e.getTheme().defaultColor,c=r.coordinate.isPolar;return a.getTicks().map(function(h,v){var d,p=h.text,y=h.value,x=p,m=a.invert(y),_=e.filterFieldData(o,[(d={},d[o]=m,d)]).length===0;(0,f.each)(e.views,function(M){var A;M.filterFieldData(o,[(A={},A[o]=m,A)]).length||(_=!0)});var w=Ho(s,m,u),S=Ho(l,m,"point"),b=r.getShapeMarker(S,{color:w,isInPolar:c}),C=n;return(0,f.isFunction)(C)&&(C=C(x,v,(0,g.__assign)({name:x,value:m},(0,f.deepMix)({},i,b)))),b=(0,f.deepMix)({},i,b,Oe((0,g.__assign)({},C),["style"])),ix(b,w),C&&C.style&&(b.style=rx(b.style,C.style)),Ac(b),{id:m,name:x,value:m,marker:b,unchecked:_}})}return[]}function nx(e,r,t){return t.map(function(i,n){var a=r;(0,f.isFunction)(a)&&(a=a(i.name,n,(0,f.deepMix)({},e,i)));var o=(0,f.isFunction)(i.marker)?i.marker(i.name,n,(0,f.deepMix)({},e,i)):i.marker,s=(0,f.deepMix)({},e,a,o);return Ac(s),i.marker=s,i})}function Ec(e,r){var t=(0,f.get)(e,["components","legend"],{});return(0,f.deepMix)({},(0,f.get)(t,["common"],{}),(0,f.deepMix)({},(0,f.get)(t,[r],{})))}function Xo(e){return e?!1:e==null||isNaN(e)}function Tc(e){if((0,f.isArray)(e))return Xo(e[1].y);var r=e.y;return(0,f.isArray)(r)?Xo(r[0]):Xo(r)}function sa(e,r,t){if(r===void 0&&(r=!1),t===void 0&&(t=!0),!e.length||e.length===1&&!t)return[];if(r){for(var i=[],n=0,a=e.length;n0&&(d[0][0]="L")),a=a.concat(d)}),a.push(["Z"])}return a}function la(e,r,t,i,n){for(var a=fe(e,r,!r,"lineWidth"),o=e.connectNulls,s=e.isInCircle,l=e.points,u=e.showSinglePoint,c=sa(l,o,u),h=[],v=0,d=c.length;vo&&(o=l),l=i[0]}));var x=this.scales[p];try{for(var m=(0,g.__values)(t),_=m.next();!_.done;_=m.next()){var w=_.value,S=this.getDrawCfg(w),b=S.x,C=S.y,M=x.scale(w[it][p]);this.drawGrayScaleBlurredCircle(b-u.x,C-c.y,n+a,M,y)}}catch(E){o={error:E}}finally{try{_&&!_.done&&(s=m.return)&&s.call(m)}finally{if(o)throw o.error}}var A=y.getImageData(0,0,h,v);this.clearShadowCanvasCtx(),this.colorize(A),y.putImageData(A,0,0);var O=this.getImageShape();O.attr("x",u.x),O.attr("y",c.y),O.attr("width",h),O.attr("height",v),O.attr("img",y.canvas),O.set("origin",this.getShapeInfo(t))},r.prototype.getDefaultSize=function(){var t=this.getAttribute("position"),i=this.coordinate;return Math.min(i.getWidth()/(t.scales[0].ticks.length*4),i.getHeight()/(t.scales[1].ticks.length*4))},r.prototype.clearShadowCanvasCtx=function(){var t=this.getShadowCanvasCtx();t.clearRect(0,0,t.canvas.width,t.canvas.height)},r.prototype.getShadowCanvasCtx=function(){var t=this.shadowCanvas;return t||(t=document.createElement("canvas"),this.shadowCanvas=t),t.width=this.coordinate.getWidth(),t.height=this.coordinate.getHeight(),t.getContext("2d")},r.prototype.getGrayScaleBlurredCanvas=function(){return this.grayScaleBlurredCanvas||(this.grayScaleBlurredCanvas=document.createElement("canvas")),this.grayScaleBlurredCanvas},r.prototype.drawGrayScaleBlurredCircle=function(t,i,n,a,o){var s=this.getGrayScaleBlurredCanvas();o.globalAlpha=a,o.drawImage(s,t-n,i-n)},r.prototype.colorize=function(t){for(var i=this.getAttribute("color"),n=t.data,a=this.paletteCache,o=3;or&&(t=t?r/(1+i/t):0,i=r-t),n+a>r&&(n=n?r/(1+a/n):0,a=r-n),[t||0,i||0,n||0,a||0]}function Nc(e,r,t){var i=[];if(t.isRect){var n=t.isTransposed?{x:t.start.x,y:r[0].y}:{x:r[0].x,y:t.start.y},a=t.isTransposed?{x:t.end.x,y:r[2].y}:{x:r[3].x,y:t.end.y},o=(0,f.get)(e,["background","style","radius"]);if(o){var s=t.isTransposed?Math.abs(r[0].y-r[2].y):r[2].x-r[1].x,l=t.isTransposed?t.getWidth():t.getHeight(),u=(0,g.__read)(Rc(o,Math.min(s,l)),4),c=u[0],h=u[1],v=u[2],d=u[3],p=t.isTransposed&&t.isReflect("y"),y=p?0:1,x=function(C){return p?-C:C};i.push(["M",n.x,a.y+x(c)]),c!==0&&i.push(["A",c,c,0,0,y,n.x+c,a.y]),i.push(["L",a.x-h,a.y]),h!==0&&i.push(["A",h,h,0,0,y,a.x,a.y+x(h)]),i.push(["L",a.x,n.y-x(v)]),v!==0&&i.push(["A",v,v,0,0,y,a.x-v,n.y]),i.push(["L",n.x+d,n.y]),d!==0&&i.push(["A",d,d,0,0,y,n.x,n.y-x(d)])}else i.push(["M",n.x,n.y]),i.push(["L",a.x,n.y]),i.push(["L",a.x,a.y]),i.push(["L",n.x,a.y]),i.push(["L",n.x,n.y]);i.push(["z"])}if(t.isPolar){var m=t.getCenter(),_=ji(e,t),w=_.startAngle,S=_.endAngle;if(t.type!=="theta"&&!t.isTransposed)i=wr(m.x,m.y,t.getRadius(),w,S);else{var b=function(A){return Math.pow(A,2)},c=Math.sqrt(b(m.x-r[0].x)+b(m.y-r[0].y)),h=Math.sqrt(b(m.x-r[2].x)+b(m.y-r[2].y));i=wr(m.x,m.y,c,t.startAngle,t.endAngle,h)}}return i}function wx(e,r,t){var i=t.getWidth(),n=t.getHeight(),a=t.type==="rect",o=[],s=(e[2].x-e[1].x)/2,l=t.isTransposed?s*n/i:s*i/n;return r==="round"?(a?(o.push(["M",e[0].x,e[0].y+l]),o.push(["L",e[1].x,e[1].y-l]),o.push(["A",s,s,0,0,1,e[2].x,e[2].y-l]),o.push(["L",e[3].x,e[3].y+l]),o.push(["A",s,s,0,0,1,e[0].x,e[0].y+l])):(o.push(["M",e[0].x,e[0].y]),o.push(["L",e[1].x,e[1].y]),o.push(["A",s,s,0,0,1,e[2].x,e[2].y]),o.push(["L",e[3].x,e[3].y]),o.push(["A",s,s,0,0,1,e[0].x,e[0].y])),o.push(["z"])):o=Ko(e),o}function zc(e,r,t){var i=[];return(0,f.isNil)(r)?t?i.push(["M",e[0].x,e[0].y],["L",e[1].x,e[1].y],["L",(e[2].x+e[3].x)/2,(e[2].y+e[3].y)/2],["Z"]):i.push(["M",e[0].x,e[0].y],["L",e[1].x,e[1].y],["L",e[2].x,e[2].y],["L",e[3].x,e[3].y],["Z"]):i.push(["M",e[0].x,e[0].y],["L",e[1].x,e[1].y],["L",r[1].x,r[1].y],["L",r[0].x,r[0].y],["Z"]),i}function ln(e,r){return[r,e]}function Sx(e,r,t){var i,n,a,o,s,l,u,c=(0,g.__read)((0,g.__spreadArray)([],(0,g.__read)(e),!1),4),h=c[0],v=c[1],d=c[2],p=c[3],y=(0,g.__read)(typeof t=="number"?Array(4).fill(t):t,4),x=y[0],m=y[1],_=y[2],w=y[3];r.isTransposed&&(i=(0,g.__read)(ln(v,p),2),v=i[0],p=i[1]),r.isReflect("y")&&(n=(0,g.__read)(ln(h,v),2),h=n[0],v=n[1],a=(0,g.__read)(ln(d,p),2),d=a[0],p=a[1]),r.isReflect("x")&&(o=(0,g.__read)(ln(h,p),2),h=o[0],p=o[1],s=(0,g.__read)(ln(v,d),2),v=s[0],d=s[1]);var S=[],b=function(C){return Math.abs(C)};return l=(0,g.__read)(Rc([x,m,_,w],Math.min(b(p.x-h.x),b(v.y-h.y))).map(function(C){return b(C)}),4),x=l[0],m=l[1],_=l[2],w=l[3],r.isTransposed&&(u=(0,g.__read)([w,x,m,_],4),x=u[0],m=u[1],_=u[2],w=u[3]),h.yo&&(n=o)}return n}function Cx(e,r){if(r){var t=(0,f.flatten)(e),i=(0,f.valuesOfKey)(t,r);return i.length}return e.length}function $o(e){var r=e.theme,t=e.coordinate,i=e.getXScale(),n=i.values,a=e.beforeMappingData,o=n.length,s=Ki(e.coordinate),l=e.intervalPadding,u=e.dodgePadding,c=e.maxColumnWidth||r.maxColumnWidth,h=e.minColumnWidth||r.minColumnWidth,v=e.columnWidthRatio||r.columnWidthRatio,d=e.multiplePieWidthRatio||r.multiplePieWidthRatio,p=e.roseWidthRatio||r.roseWidthRatio;if(i.isLinear&&n.length>1){n.sort();var y=bx(n,i);o=(i.max-i.min)/y,n.length>o&&(o=n.length)}var x=i.range,m=1/o,_=1;if(t.isPolar?t.isTransposed&&o>1?_=d:_=p:(i.isLinear&&(m*=x[1]-x[0]),_=v),!(0,f.isNil)(l)&&l>=0){var w=l/s;m=(1-(o-1)*w)/o}else m*=_;if(e.getAdjust("dodge")){var S=e.getAdjust("dodge"),b=S.dodgeBy,C=Cx(a,b);if(!(0,f.isNil)(u)&&u>=0){var M=u/s;m=(m-M*(C-1))/C}else!(0,f.isNil)(l)&&l>=0&&(m*=_),m=m/C;m=m>=0?m:0}if(!(0,f.isNil)(c)&&c>=0){var A=c/s;m>A&&(m=A)}if(!(0,f.isNil)(h)&&h>=0){var O=h/s;m0&&!(0,f.get)(i,[n,"min"])&&t.change({min:0}),o<=0&&!(0,f.get)(i,[n,"max"])&&t.change({max:0}))}},r.prototype.getDrawCfg=function(t){var i=e.prototype.getDrawCfg.call(this,t);return i.background=this.background,i},r}(Ar),Ax=Mx,Fx=function(e){(0,g.__extends)(r,e);function r(t){var i=e.call(this,t)||this;i.type="line";var n=t.sortable,a=n===void 0?!1:n;return i.sortable=a,i}return r}(qo),Ex=Fx,Vc=["circle","square","bowtie","diamond","hexagon","triangle","triangle-down"],Tx=["cross","tick","plus","hyphen","line"];function Qo(e,r,t,i,n){var a,o,s=fe(r,n,!n,"r"),l=e.parsePoints(r.points),u=l[0];if(r.isStack)u=l[1];else if(l.length>1){var c=t.addGroup();try{for(var h=(0,g.__values)(l),v=h.next();!v.done;v=h.next()){var d=v.value;c.addShape({type:"marker",attrs:(0,g.__assign)((0,g.__assign)((0,g.__assign)({},s),{symbol:Hr[i]||i}),d)})}}catch(p){a={error:p}}finally{try{v&&!v.done&&(o=h.return)&&o.call(h)}finally{if(a)throw a.error}}return c}return t.addShape({type:"marker",attrs:(0,g.__assign)((0,g.__assign)((0,g.__assign)({},s),{symbol:Hr[i]||i}),u)})}var XI=Mr("point",{defaultShapeType:"hollow-circle",getDefaultPoints:function(e){return Uo(e)}});(0,f.each)(Vc,function(e){qt("point","hollow-".concat(e),{draw:function(r,t){return Qo(this,r,t,e,!0)},getMarker:function(r){var t=r.color;return{symbol:Hr[e]||e,style:{r:4.5,stroke:t,fill:null}}}})});var UI=null,Lx=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.type="point",t.shapeType="point",t.generatePoints=!0,t}return r.prototype.getDrawCfg=function(t){var i=e.prototype.getDrawCfg.call(this,t);return(0,g.__assign)((0,g.__assign)({},i),{isStack:!!this.getAdjust("stack")})},r}(Ar),Ix=Lx;function Ox(e){for(var r=e[0],t=1,i=[["M",r.x,r.y]];t2?"weight":"normal",a;if(e.isInCircle){var o={x:0,y:1};return n==="normal"?a=Vx(i[0],i[1],o):(t.fill=t.stroke,a=Gx(i,o)),a=this.parsePath(a),r.addShape("path",{attrs:(0,g.__assign)((0,g.__assign)({},t),{path:a})})}else{if(n==="normal")return i=this.parsePoints(i),a=du((i[1].x+i[0].x)/2,i[0].y,Math.abs(i[1].x-i[0].x)/2,Math.PI,Math.PI*2),r.addShape("path",{attrs:(0,g.__assign)((0,g.__assign)({},t),{path:a})});var s=Jo(i[1],i[3]),l=Jo(i[2],i[0]);return a=[["M",i[0].x,i[0].y],["L",i[1].x,i[1].y],s,["L",i[3].x,i[3].y],["L",i[2].x,i[2].y],l,["Z"]],a=this.parsePath(a),t.fill=t.stroke,r.addShape("path",{attrs:(0,g.__assign)((0,g.__assign)({},t),{path:a})})}},getMarker:function(e){return{symbol:"circle",style:{r:4.5,fill:e.color}}}});function Wx(e,r){var t=Jo(e,r),i=[["M",e.x,e.y]];return i.push(t),i}qt("edge","smooth",{draw:function(e,r){var t=fe(e,!0,!1,"lineWidth"),i=e.points,n=this.parsePath(Wx(i[0],i[1]));return r.addShape("path",{attrs:(0,g.__assign)((0,g.__assign)({},t),{path:n})})},getMarker:function(e){return{symbol:"circle",style:{r:4.5,fill:e.color}}}});var ua=1/3;function Hx(e,r){var t=[];t.push({x:e.x,y:e.y*(1-ua)+r.y*ua}),t.push({x:r.x,y:e.y*(1-ua)+r.y*ua}),t.push(r);var i=[["M",e.x,e.y]];return(0,f.each)(t,function(n){i.push(["L",n.x,n.y])}),i}qt("edge","vhv",{draw:function(e,r){var t=fe(e,!0,!1,"lineWidth"),i=e.points,n=this.parsePath(Hx(i[0],i[1]));return r.addShape("path",{attrs:(0,g.__assign)((0,g.__assign)({},t),{path:n})})},getMarker:function(e){return{symbol:"circle",style:{r:4.5,fill:e.color}}}}),qt("interval","funnel",{getPoints:function(e){return e.size=e.size*2,jo(e)},draw:function(e,r){var t=fe(e,!1,!0),i=this.parsePath(zc(e.points,e.nextPoints,!1)),n=r.addShape("path",{attrs:(0,g.__assign)((0,g.__assign)({},t),{path:i}),name:"interval"});return n},getMarker:function(e){var r=e.color;return{symbol:"square",style:{r:4,fill:r}}}}),qt("interval","hollow-rect",{draw:function(e,r){var t=fe(e,!0,!1),i=r,n=e==null?void 0:e.background;if(n){i=r.addGroup();var a=Oc(e),o=Nc(e,this.parsePoints(e.points),this.coordinate);i.addShape("path",{attrs:(0,g.__assign)((0,g.__assign)({},a),{path:o}),capture:!1,zIndex:-1,name:Vo})}var s=this.parsePath(Ko(e.points)),l=i.addShape("path",{attrs:(0,g.__assign)((0,g.__assign)({},t),{path:s}),name:"interval"});return n?i:l},getMarker:function(e){var r=e.color,t=e.isInPolar;return t?{symbol:"circle",style:{r:4.5,stroke:r,fill:null}}:{symbol:"square",style:{r:4,stroke:r,fill:null}}}});function Yx(e){var r=e.x,t=e.y,i=e.y0;return(0,f.isArray)(t)?t.map(function(n,a){return{x:(0,f.isArray)(r)?r[a]:r,y:n}}):[{x:r,y:i},{x:r,y:t}]}qt("interval","line",{getPoints:function(e){return Yx(e)},draw:function(e,r){var t=fe(e,!0,!1,"lineWidth"),i=Oe((0,g.__assign)({},t),["fill"]),n=this.parsePath(Ko(e.points,!1)),a=r.addShape("path",{attrs:(0,g.__assign)((0,g.__assign)({},i),{path:n}),name:"interval"});return a},getMarker:function(e){var r=e.color;return{symbol:function(t,i,n){return[["M",t,i-n],["L",t,i+n]]},style:{r:5,stroke:r}}}}),qt("interval","pyramid",{getPoints:function(e){return e.size=e.size*2,jo(e)},draw:function(e,r){var t=fe(e,!1,!0),i=this.parsePath(zc(e.points,e.nextPoints,!0)),n=r.addShape("path",{attrs:(0,g.__assign)((0,g.__assign)({},t),{path:i}),name:"interval"});return n},getMarker:function(e){var r=e.color;return{symbol:"square",style:{r:4,fill:r}}}});function Xx(e){var r,t=e.x,i=e.y,n=e.y0,a=e.size,o,s;(0,f.isArray)(i)?(r=(0,g.__read)(i,2),o=r[0],s=r[1]):(o=n,s=i);var l=t+a/2,u=t-a/2;return[{x:t,y:o},{x:t,y:s},{x:u,y:o},{x:l,y:o},{x:u,y:s},{x:l,y:s}]}function Ux(e){return[["M",e[0].x,e[0].y],["L",e[1].x,e[1].y],["M",e[2].x,e[2].y],["L",e[3].x,e[3].y],["M",e[4].x,e[4].y],["L",e[5].x,e[5].y]]}qt("interval","tick",{getPoints:function(e){return Xx(e)},draw:function(e,r){var t=fe(e,!0,!1),i=this.parsePath(Ux(e.points)),n=r.addShape("path",{attrs:(0,g.__assign)((0,g.__assign)({},t),{path:i}),name:"interval"});return n},getMarker:function(e){var r=e.color;return{symbol:function(t,i,n){return[["M",t-n/2,i-n],["L",t+n/2,i-n],["M",t,i-n],["L",t,i+n],["M",t-n/2,i+n],["L",t+n/2,i+n]]},style:{r:5,stroke:r}}}});var Zx=function(e,r,t){var i=e.x,n=e.y,a=r.x,o=r.y,s;switch(t){case"hv":s=[{x:a,y:n}];break;case"vh":s=[{x:i,y:o}];break;case"hvh":var l=(a+i)/2;s=[{x:l,y:n},{x:l,y:o}];break;case"vhv":var u=(n+o)/2;s=[{x:i,y:u},{x:a,y:u}];break;default:break}return s};function qx(e,r){var t=[];return(0,f.each)(e,function(i,n){var a=e[n+1];if(t.push(i),a){var o=Zx(i,a,r);t=t.concat(o)}}),t}function jx(e){return e.map(function(r,t){return t===0?["M",r.x,r.y]:["L",r.x,r.y]})}function Kx(e,r){var t=sa(e.points,e.connectNulls,e.showSinglePoint),i=[];return(0,f.each)(t,function(n){var a=qx(n,r);i=i.concat(jx(a))}),(0,g.__assign)((0,g.__assign)({},fe(e,!0,!1,"lineWidth")),{path:i})}(0,f.each)(["hv","vh","hvh","vhv"],function(e){qt("line",e,{draw:function(r,t){var i=Kx(r,e),n=t.addShape({type:"path",attrs:i,name:"line"});return n},getMarker:function(r){return Pc(r,e)}})}),(0,f.each)(Tx,function(e){qt("point",e,{draw:function(r,t){return Qo(this,r,t,e,!0)},getMarker:function(r){var t=r.color;return{symbol:Hr[e],style:{r:4.5,stroke:t,fill:null}}}})}),qt("point","image",{draw:function(e,r){var t,i,n=fe(e,!1,!1,"r").r,a=this.parsePoints(e.points),o=a[0];if(e.isStack)o=a[1];else if(a.length>1){var s=r.addGroup();try{for(var l=(0,g.__values)(a),u=l.next();!u.done;u=l.next()){var c=u.value;s.addShape("image",{attrs:{x:c.x-n/2,y:c.y-n,width:n,height:n,img:e.shape[1]}})}}catch(h){t={error:h}}finally{try{u&&!u.done&&(i=l.return)&&i.call(l)}finally{if(t)throw t.error}}return s}return r.addShape("image",{attrs:{x:o.x-n/2,y:o.y-n,width:n,height:n,img:e.shape[1]}})},getMarker:function(e){var r=e.color;return{symbol:"circle",style:{r:4.5,fill:r}}}}),(0,f.each)(Vc,function(e){qt("point",e,{draw:function(r,t){return Qo(this,r,t,e,!1)},getMarker:function(r){var t=r.color;return{symbol:Hr[e]||e,style:{r:4.5,fill:t}}}})});function Gc(e){var r=(0,f.isArray)(e)?e:[e],t=r[0],i=r[r.length-1],n=r.length>1?r[1]:t,a=r.length>3?r[3]:i,o=r.length>2?r[2]:n;return{min:t,max:i,min1:n,max1:a,median:o}}function Wc(e,r,t){var i=t/2,n;if((0,f.isArray)(r)){var a=Gc(r),o=a.min,s=a.max,l=a.median,u=a.min1,c=a.max1,h=e-i,v=e+i;n=[[h,s],[v,s],[e,s],[e,c],[h,u],[h,c],[v,c],[v,u],[e,u],[e,o],[h,o],[v,o],[h,l],[v,l]]}else{r=(0,f.isNil)(r)?.5:r;var d=Gc(e),o=d.min,s=d.max,l=d.median,u=d.min1,c=d.max1,p=r-i,y=r+i;n=[[o,p],[o,y],[o,r],[u,r],[u,p],[u,y],[c,y],[c,p],[c,r],[s,r],[s,p],[s,y],[l,p],[l,y]]}return n.map(function(x){return{x:x[0],y:x[1]}})}function $x(e){return[["M",e[0].x,e[0].y],["L",e[1].x,e[1].y],["M",e[2].x,e[2].y],["L",e[3].x,e[3].y],["M",e[4].x,e[4].y],["L",e[5].x,e[5].y],["L",e[6].x,e[6].y],["L",e[7].x,e[7].y],["L",e[4].x,e[4].y],["Z"],["M",e[8].x,e[8].y],["L",e[9].x,e[9].y],["M",e[10].x,e[10].y],["L",e[11].x,e[11].y],["M",e[12].x,e[12].y],["L",e[13].x,e[13].y]]}qt("schema","box",{getPoints:function(e){var r=e.x,t=e.y,i=e.size;return Wc(r,t,i)},draw:function(e,r){var t=fe(e,!0,!1),i=this.parsePath($x(e.points)),n=r.addShape("path",{attrs:(0,g.__assign)((0,g.__assign)({},t),{path:i,name:"schema"})});return n},getMarker:function(e){var r=e.color;return{symbol:function(t,i,n){var a=[i-6,i-3,i,i+3,i+6],o=Wc(t,a,n);return[["M",o[0].x+1,o[0].y],["L",o[1].x-1,o[1].y],["M",o[2].x,o[2].y],["L",o[3].x,o[3].y],["M",o[4].x,o[4].y],["L",o[5].x,o[5].y],["L",o[6].x,o[6].y],["L",o[7].x,o[7].y],["L",o[4].x,o[4].y],["Z"],["M",o[8].x,o[8].y],["L",o[9].x,o[9].y],["M",o[10].x+1,o[10].y],["L",o[11].x-1,o[11].y],["M",o[12].x,o[12].y],["L",o[13].x,o[13].y]]},style:{r:6,lineWidth:1,stroke:r}}}});function Qx(e){var r=(0,f.isArray)(e)?e:[e],t=r.sort(function(i,n){return n-i});return t0(t,4,t[t.length-1])}function Hc(e,r,t){var i=Qx(r);return[{x:e,y:i[0]},{x:e,y:i[1]},{x:e-t/2,y:i[2]},{x:e-t/2,y:i[1]},{x:e+t/2,y:i[1]},{x:e+t/2,y:i[2]},{x:e,y:i[2]},{x:e,y:i[3]}]}function Jx(e){return[["M",e[0].x,e[0].y],["L",e[1].x,e[1].y],["M",e[2].x,e[2].y],["L",e[3].x,e[3].y],["L",e[4].x,e[4].y],["L",e[5].x,e[5].y],["Z"],["M",e[6].x,e[6].y],["L",e[7].x,e[7].y]]}qt("schema","candle",{getPoints:function(e){var r=e.x,t=e.y,i=e.size;return Hc(r,t,i)},draw:function(e,r){var t=fe(e,!0,!0),i=this.parsePath(Jx(e.points)),n=r.addShape("path",{attrs:(0,g.__assign)((0,g.__assign)({},t),{path:i,name:"schema"})});return n},getMarker:function(e){var r=e.color;return{symbol:function(t,i,n){var a=[i+7.5,i+3,i-3,i-7.5],o=Hc(t,a,n);return[["M",o[0].x,o[0].y],["L",o[1].x,o[1].y],["M",o[2].x,o[2].y],["L",o[3].x,o[3].y],["L",o[4].x,o[4].y],["L",o[5].x,o[5].y],["Z"],["M",o[6].x,o[6].y],["L",o[7].x,o[7].y]]},style:{lineWidth:1,stroke:r,fill:r,r:6}}}});function t_(e,r){var t=Math.abs(e[0].x-e[2].x),i=Math.abs(e[0].y-e[2].y),n=Math.min(t,i);r&&(n=(0,f.clamp)(r,0,Math.min(t,i))),n=n/2;var a=(e[0].x+e[2].x)/2,o=(e[0].y+e[2].y)/2;return{x:a-n,y:o-n,width:n*2,height:n*2}}qt("polygon","square",{draw:function(e,r){if(!(0,f.isEmpty)(e.points)){var t=fe(e,!0,!0),i=this.parsePoints(e.points);return r.addShape("rect",{attrs:(0,g.__assign)((0,g.__assign)({},t),t_(i,e.size)),name:"polygon"})}},getMarker:function(e){var r=e.color;return{symbol:"square",style:{r:4,fill:r}}}}),qt("violin","smooth",{draw:function(e,r){var t=fe(e,!0,!0),i=this.parsePath(Ic(e.points));return r.addShape("path",{attrs:(0,g.__assign)((0,g.__assign)({},t),{path:i})})},getMarker:function(e){var r=e.color;return{symbol:"circle",style:{stroke:null,r:4,fill:r}}}}),qt("violin","hollow",{draw:function(e,r){var t=fe(e,!0,!1),i=this.parsePath(Lc(e.points));return r.addShape("path",{attrs:(0,g.__assign)((0,g.__assign)({},t),{path:i})})},getMarker:function(e){var r=e.color;return{symbol:"circle",style:{r:4,fill:null,stroke:r}}}}),qt("violin","hollow-smooth",{draw:function(e,r){var t=fe(e,!0,!1),i=this.parsePath(Ic(e.points));return r.addShape("path",{attrs:(0,g.__assign)((0,g.__assign)({},t),{path:i})})},getMarker:function(e){var r=e.color;return{symbol:"circle",style:{r:4,fill:null,stroke:r}}}});var e_=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getLabelValueDir=function(t){var i="y",n=t.points;return n[0][i]<=n[2][i]?1:-1},r.prototype.getLabelOffsetPoint=function(t,i,n,a){var o,s=e.prototype.getLabelOffsetPoint.call(this,t,i,n),l=this.getCoordinate(),u=l.isTransposed,c=u?"x":"y",h=this.getLabelValueDir(t.mappingData);return s=(0,g.__assign)((0,g.__assign)({},s),(o={},o[c]=s[c]*h,o)),l.isReflect("x")&&(s=(0,g.__assign)((0,g.__assign)({},s),{x:s.x*-1})),l.isReflect("y")&&(s=(0,g.__assign)((0,g.__assign)({},s),{y:s.y*-1})),s},r.prototype.getThemedLabelCfg=function(t){var i=this.geometry,n=this.getDefaultLabelCfg(),a=i.theme;return(0,f.deepMix)({},n,a.labels,t.position==="middle"?{offset:0}:{},t)},r.prototype.setLabelPosition=function(t,i,n,a){var o=this.getCoordinate(),s=o.isTransposed,l=i.points,u=o.convert(l[0]),c=o.convert(l[2]),h=this.getLabelValueDir(i),v,d,p,y,x=(0,f.isArray)(i.shape)?i.shape[0]:i.shape;if(x==="funnel"||x==="pyramid"){var m=(0,f.get)(i,"nextPoints"),_=(0,f.get)(i,"points");if(m){var w=o.convert(_[0]),S=o.convert(_[1]),b=o.convert(m[0]),C=o.convert(m[1]);s?(v=Math.min(b.y,w.y),p=Math.max(b.y,w.y),d=(S.x+C.x)/2,y=(w.x+b.x)/2):(v=Math.min((S.y+C.y)/2,(w.y+b.y)/2),p=Math.max((S.y+C.y)/2,(w.y+b.y)/2),d=C.x,y=w.x)}else v=Math.min(c.y,u.y),p=Math.max(c.y,u.y),d=c.x,y=u.x}else v=Math.min(c.y,u.y),p=Math.max(c.y,u.y),d=c.x,y=u.x;switch(a){case"right":t.x=d,t.y=(v+p)/2,t.textAlign=(0,f.get)(t,"textAlign",h>0?"left":"right");break;case"left":t.x=y,t.y=(v+p)/2,t.textAlign=(0,f.get)(t,"textAlign",h>0?"left":"right");break;case"bottom":s&&(t.x=(d+y)/2),t.y=p,t.textAlign=(0,f.get)(t,"textAlign","center"),t.textBaseline=(0,f.get)(t,"textBaseline",h>0?"bottom":"top");break;case"middle":s&&(t.x=(d+y)/2),t.y=(v+p)/2,t.textAlign=(0,f.get)(t,"textAlign","center"),t.textBaseline=(0,f.get)(t,"textBaseline","middle");break;case"top":s&&(t.x=(d+y)/2),t.y=v,t.textAlign=(0,f.get)(t,"textAlign","center"),t.textBaseline=(0,f.get)(t,"textBaseline",h>0?"bottom":"top");break;default:break}},r}(oa),r_=e_,ca=Math.PI/2,i_=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getLabelOffset=function(t){var i=this.getCoordinate(),n=0;if((0,f.isNumber)(t))n=t;else if((0,f.isString)(t)&&t.indexOf("%")!==-1){var a=i.getRadius();i.innerRadius>0&&(a=a*(1-i.innerRadius)),n=parseFloat(t)*.01*a}return n},r.prototype.getLabelItems=function(t){var i=e.prototype.getLabelItems.call(this,t),n=this.geometry.getYScale();return(0,f.map)(i,function(a){if(a&&n){var o=n.scale((0,f.get)(a.data,n.field));return(0,g.__assign)((0,g.__assign)({},a),{percent:o})}return a})},r.prototype.getLabelAlign=function(t){var i=this.getCoordinate(),n;if(t.labelEmit)n=t.angle<=Math.PI/2&&t.angle>=-Math.PI/2?"left":"right";else if(!i.isTransposed)n="center";else{var a=i.getCenter(),o=t.offset;Math.abs(t.x-a.x)<1?n="center":t.angle>Math.PI||t.angle<=0?n=o>0?"left":"right":n=o>0?"right":"left"}return n},r.prototype.getLabelPoint=function(t,i,n){var a=1,o,s=t.content[n];this.isToMiddle(i)?o=this.getMiddlePoint(i.points):(t.content.length===1&&n===0?n=1:n===0&&(a=-1),o=this.getArcPoint(i,n));var l=t.offset*a,u=this.getPointAngle(o),c=t.labelEmit,h=this.getCirclePoint(u,l,o,c);return h.r===0?h.content="":(h.content=s,h.angle=u,h.color=i.color),h.rotate=t.autoRotate?this.getLabelRotate(u,l,c):t.rotate,h.start={x:o.x,y:o.y},h},r.prototype.getArcPoint=function(t,i){return i===void 0&&(i=0),!(0,f.isArray)(t.x)&&!(0,f.isArray)(t.y)?{x:t.x,y:t.y}:{x:(0,f.isArray)(t.x)?t.x[i]:t.x,y:(0,f.isArray)(t.y)?t.y[i]:t.y}},r.prototype.getPointAngle=function(t){return hi(this.getCoordinate(),t)},r.prototype.getCirclePoint=function(t,i,n,a){var o=this.getCoordinate(),s=o.getCenter(),l=Un(o,n);if(l===0)return(0,g.__assign)((0,g.__assign)({},s),{r:l});var u=t;if(o.isTransposed&&l>i&&!a){var c=Math.asin(i/(2*l));u=t+c*2}else l=l+i;return{x:s.x+l*Math.cos(u),y:s.y+l*Math.sin(u),r:l}},r.prototype.getLabelRotate=function(t,i,n){var a=t+ca;return n&&(a-=ca),a&&(a>ca?a=a-Math.PI:a<-ca&&(a=a+Math.PI)),a},r.prototype.getMiddlePoint=function(t){var i=this.getCoordinate(),n=t.length,a={x:0,y:0};return(0,f.each)(t,function(o){a.x+=o.x,a.y+=o.y}),a.x/=n,a.y/=n,a=i.convert(a),a},r.prototype.isToMiddle=function(t){return t.x.length>2},r}(oa),Yc=i_,n_=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.defaultLayout="distribute",t}return r.prototype.getDefaultLabelCfg=function(t,i){var n=e.prototype.getDefaultLabelCfg.call(this,t,i);return(0,f.deepMix)({},n,(0,f.get)(this.geometry.theme,"pieLabels",{}))},r.prototype.getLabelOffset=function(t){return e.prototype.getLabelOffset.call(this,t)||0},r.prototype.getLabelRotate=function(t,i,n){var a;return i<0&&(a=t,a>Math.PI/2&&(a=a-Math.PI),a<-Math.PI/2&&(a=a+Math.PI)),a},r.prototype.getLabelAlign=function(t){var i=this.getCoordinate(),n=i.getCenter(),a;return t.angle<=Math.PI/2&&t.x>=n.x?a="left":a="right",t.offset<=0&&(a==="right"?a="left":a="right"),a},r.prototype.getArcPoint=function(t){return t},r.prototype.getPointAngle=function(t){var i=this.getCoordinate(),n={x:(0,f.isArray)(t.x)?t.x[0]:t.x,y:t.y[0]},a={x:(0,f.isArray)(t.x)?t.x[1]:t.x,y:t.y[1]},o,s=hi(i,n);if(t.points&&t.points[0].y===t.points[1].y)o=s;else{var l=hi(i,a);s>=l&&(l=l+Math.PI*2),o=s+(l-s)/2}return o},r.prototype.getCirclePoint=function(t,i){var n=this.getCoordinate(),a=n.getCenter(),o=n.getRadius()+i;return(0,g.__assign)((0,g.__assign)({},ge(a.x,a.y,o,t)),{angle:t,r:o})},r}(Yc),a_=n_,Xc=4;function o_(e,r,t,i,n,a){var o,s,l=!0,u=i.start,c=i.end,h=Math.min(u.y,c.y),v=Math.abs(u.y-c.y),d,p=0,y=Number.MIN_VALUE,x=r.map(function(M){return M.y>p&&(p=M.y),M.yv&&(v=p-h);l;)for(x.forEach(function(M){var A=(Math.min.apply(y,M.targets)+Math.max.apply(y,M.targets))/2;M.pos=Math.min(Math.max(y,A-M.size/2),v-M.size)}),l=!1,d=x.length;d--;)if(d>0){var m=x[d-1],_=x[d];m.pos+m.size>_.pos&&(m.size+=_.size,m.targets=m.targets.concat(_.targets),m.pos+m.size>v&&(m.pos=v-m.size),x.splice(d,1),l=!0)}d=0,x.forEach(function(M){var A=h+t/2;M.targets.forEach(function(){r[d].y=M.pos+A,A+=t,d++})});var w={};try{for(var S=(0,g.__values)(e),b=S.next();!b.done;b=S.next()){var C=b.value;w[C.get("id")]=C}}catch(M){o={error:M}}finally{try{b&&!b.done&&(s=S.return)&&s.call(S)}finally{if(o)throw o.error}}r.forEach(function(M){var A=M.r*M.r,O=Math.pow(Math.abs(M.y-n.y),2);if(A0){var l=14,u=o+n,c=u*2+l*2,h={start:a.start,end:a.end},v=[[],[]];e.forEach(function(d){!d||(d.textAlign==="right"?v[0].push(d):v[1].push(d))}),v.forEach(function(d,p){var y=c/l;d.length>y&&(d.sort(function(x,m){return m["..percent"]-x["..percent"]}),d.splice(y,d.length-y)),d.sort(function(x,m){return x.y-m.y}),o_(r,d,l,h,s,p)})}(0,f.each)(e,function(d){if(d&&d.labelLine){var p=d.offset,y=d.angle,x=ge(s.x,s.y,o,y),m=ge(s.x,s.y,o+p/2,y),_=d.x+(0,f.get)(d,"offsetX",0),w=d.y+(0,f.get)(d,"offsetY",0),S={x:_-Math.cos(y)*Xc,y:w-Math.sin(y)*Xc};(0,f.isObject)(d.labelLine)||(d.labelLine={}),d.labelLine.path=["M ".concat(x.x),"".concat(x.y," Q").concat(m.x),"".concat(m.y," ").concat(S.x),S.y].join(",")}})}}function Uc(e,r,t){var i=e.filter(function(p){return!p.invisible});i.sort(function(p,y){return p.y-y.y});var n=!0,a=t.minY,o=t.maxY,s=Math.abs(a-o),l,u=0,c=Number.MIN_VALUE,h=i.map(function(p){return p.y>u&&(u=p.y),p.ys&&(s=u-a);n;)for(h.forEach(function(p){var y=(Math.min.apply(c,p.targets)+Math.max.apply(c,p.targets))/2;p.pos=Math.min(Math.max(c,y-p.size/2),s-p.size),p.pos=Math.max(0,p.pos)}),n=!1,l=h.length;l--;)if(l>0){var v=h[l-1],d=h[l];v.pos+v.size>d.pos&&(v.size+=d.size,v.targets=v.targets.concat(d.targets),v.pos+v.size>s&&(v.pos=s-v.size),h.splice(l,1),n=!0)}l=0,h.forEach(function(p){var y=a+r/2;p.targets.forEach(function(){i[l].y=p.pos+y,y+=r,l++})})}var Zc=4;function l_(e,r){var t=r.getCenter(),i=r.getRadius();if(e&&e.labelLine){var n=e.angle,a=e.offset,o=ge(t.x,t.y,i,n),s=e.x+(0,f.get)(e,"offsetX",0)*(Math.cos(n)>0?1:-1),l=e.y+(0,f.get)(e,"offsetY",0)*(Math.sin(n)>0?1:-1),u={x:s-Math.cos(n)*Zc,y:l-Math.sin(n)*Zc},c=e.labelLine.smooth,h=[],v=u.x-t.x,d=u.y-t.y,p=Math.atan(d/v);if(v<0&&(p+=Math.PI),c===!1){(0,f.isObject)(e.labelLine)||(e.labelLine={});var y=0;(n<0&&n>-Math.PI/2||n>Math.PI*1.5)&&u.y>o.y&&(y=1),n>=0&&no.y&&(y=1),n>=Math.PI/2&&nu.y&&(y=1),(n<-Math.PI/2||n>=Math.PI&&nu.y&&(y=1);var x=a/2>4?4:Math.max(a/2-1,0),m=ge(t.x,t.y,i+x,n),_=ge(t.x,t.y,i+a/2,p),w=0;h.push("M ".concat(o.x," ").concat(o.y)),h.push("L ".concat(m.x," ").concat(m.y)),h.push("A ".concat(t.x," ").concat(t.y," 0 ").concat(w," ").concat(y," ").concat(_.x," ").concat(_.y)),h.push("L ".concat(u.x," ").concat(u.y))}else{var m=ge(t.x,t.y,i+(a/2>4?4:Math.max(a/2-1,0)),n),S=o.xMath.pow(Math.E,-16)&&h.push.apply(h,["C",u.x+S*4,u.y,2*m.x-o.x,2*m.y-o.y,o.x,o.y]),h.push("L ".concat(o.x," ").concat(o.y))}e.labelLine.path=h.join(" ")}}function u_(e,r,t,i){var n,a,o=(0,f.filter)(e,function(A){return!(0,f.isNil)(A)}),s=r[0]&&r[0].get("coordinate");if(!!s){var l=s.getCenter(),u=s.getRadius(),c={};try{for(var h=(0,g.__values)(r),v=h.next();!v.done;v=h.next()){var d=v.value;c[d.get("id")]=d}}catch(A){n={error:A}}finally{try{v&&!v.done&&(a=h.return)&&a.call(h)}finally{if(n)throw n.error}}var p=(0,f.get)(o[0],"labelHeight",14),y=(0,f.get)(o[0],"offset",0);if(!(y<=0)){var x="left",m="right",_=(0,f.groupBy)(o,function(A){return A.xE&&(A.sort(function(z,X){return X.percent-z.percent}),(0,f.each)(A,function(z,X){X+1>E&&(c[z.id].set("visible",!1),z.invisible=!0)})),Uc(A,p,M)}),(0,f.each)(_,function(A,O){(0,f.each)(A,function(E){var z=O===m,X=c[E.id],lt=X.getChildByIndex(0);if(lt){var pt=u+y,At=E.y-l.y,V=Math.pow(pt,2),K=Math.pow(At,2),ft=V-K>0?V-K:0,nt=Math.sqrt(ft),dt=Math.abs(Math.cos(E.angle)*pt);z?E.x=l.x+Math.max(nt,dt):E.x=l.x-Math.max(nt,dt)}lt&&(lt.attr("y",E.y),lt.attr("x",E.x)),l_(E,s)})})}}}var es=4,c_=4,qc=4;function h_(e,r,t){var i=r.getCenter(),n=r.getRadius(),a={x:e.x-(t?qc:-qc),y:e.y},o=ge(i.x,i.y,n+es,e.angle),s={x:a.x,y:a.y},l={x:o.x,y:o.y},u=ge(i.x,i.y,n,e.angle),c="";if(a.y!==o.y){var h=t?4:-4;s.y=a.y,e.angle<0&&e.angle>=-Math.PI/2&&(s.x=Math.max(o.x,a.x-h),a.y0&&e.angleo.y?l.y=s.y:(l.y=o.y,l.x=Math.max(l.x,s.x-h))),e.angle>Math.PI/2&&(s.x=Math.min(o.x,a.x-h),a.y>o.y?l.y=s.y:(l.y=o.y,l.x=Math.min(l.x,s.x-h))),e.angle<-Math.PI/2&&(s.x=Math.min(o.x,a.x-h),a.ys.x||A.x===s.x&&A.y>s.y,z=(0,f.isNil)(A.offsetX)?c_:A.offsetX,X=ge(s.x,s.y,l+es,A.angle),lt=p+z;A.x=s.x+(E?1:-1)*(l+lt),A.y=X.y}}});var y=o.start,x=o.end,m="left",_="right",w=(0,f.groupBy)(e,function(A){return A.xS&&(S=Math.min(O,Math.abs(y.y-x.y)))});var b={minX:y.x,maxX:x.x,minY:s.y-S/2,maxY:s.y+S/2};(0,f.each)(w,function(A,O){var E=S/d;A.length>E&&(A.sort(function(z,X){return X.percent-z.percent}),(0,f.each)(A,function(z,X){X>E&&(u[z.id].set("visible",!1),z.invisible=!0)})),Uc(A,d,b)});var C=b.minY,M=b.maxY;(0,f.each)(w,function(A,O){var E=O===_;(0,f.each)(A,function(z){var X=(0,f.get)(u,z&&[z.id]);if(!!X){if(z.yM){X.set("visible",!1);return}var lt=X.getChildByIndex(0),pt=lt.getCanvasBBox(),At={x:E?pt.x:pt.maxX,y:pt.y+pt.height/2};sn(lt,z.x-At.x,z.y-At.y),z.labelLine&&h_(z,o,E)}})})}}function v_(e,r,t,i){(0,f.each)(r,function(n){var a=i.minX,o=i.minY,s=i.maxX,l=i.maxY,u=n.getCanvasBBox(),c=u.minX,h=u.minY,v=u.maxX,d=u.maxY,p=u.x,y=u.y,x=u.width,m=u.height,_=p,w=y;(cs?_=s-x:v>s&&(_=_-(v-s)),h>l?w=l-m:d>l&&(w=w-(d-l)),(_!==p||w!==y)&&sn(n,_-p,w-y)})}function d_(e,r,t,i){(0,f.each)(r,function(n,a){var o=n.getCanvasBBox(),s=t[a].getBBox();(o.minXs.maxX||o.maxY>s.maxY)&&n.remove(!0)})}var g_=100,jc=function(){function e(r){r===void 0&&(r={}),this.bitmap={};var t=r.xGap,i=t===void 0?1:t,n=r.yGap,a=n===void 0?8:n;this.xGap=i,this.yGap=a}return e.prototype.hasGap=function(r){for(var t=!0,i=this.bitmap,n=Math.round(r.minX),a=Math.round(r.maxX),o=Math.round(r.minY),s=Math.round(r.maxY),l=n;l<=a;l+=1){if(!i[l]){i[l]={};continue}if(l===n||l===a){for(var u=o;u<=s;u++)if(i[l][u]){t=!1;break}}else if(i[l][o]||i[l][s]){t=!1;break}}return t},e.prototype.fillGap=function(r){for(var t=this.bitmap,i=Math.round(r.minX),n=Math.round(r.maxX),a=Math.round(r.minY),o=Math.round(r.maxY),s=i;s<=n;s+=1)t[s]||(t[s]={});for(var s=i;s<=n;s+=this.xGap){for(var l=a;l<=o;l+=this.yGap)t[s][l]=!0;t[s][o]=!0}if(this.yGap!==1)for(var s=a;s<=o;s+=1)t[i][s]=!0,t[n][s]=!0;if(this.xGap!==1)for(var s=i;s<=n;s+=1)t[s][a]=!0,t[s][o]=!0},e.prototype.destroy=function(){this.bitmap={}},e}();function p_(e,r,t){t===void 0&&(t=g_);var i=-1,n=e.attr(),a=n.x,o=n.y,s=e.getCanvasBBox(),l=Math.sqrt(s.width*s.width+s.height*s.height),u,c=-i,h=0,v=0,d=function(m){var _=m*.1;return[_*Math.cos(_),_*Math.sin(_)]};if(r.hasGap(s))return r.fillGap(s),!0;for(var p=!1,y=0,x={};Math.min(Math.abs(h),Math.abs(v))4)return[];var r=function(n,a){return[a.x-n.x,a.y-n.y]},t=r(e[0],e[1]),i=r(e[1],e[2]);return[t,i]}function ha(e,r,t){r===void 0&&(r=0),t===void 0&&(t={x:0,y:0});var i=e.x,n=e.y;return{x:(i-t.x)*Math.cos(-r)+(n-t.y)*Math.sin(-r)+t.x,y:(t.x-i)*Math.sin(-r)+(n-t.y)*Math.cos(-r)+t.y}}function $c(e){var r=[{x:e.x,y:e.y},{x:e.x+e.width,y:e.y},{x:e.x+e.width,y:e.y+e.height},{x:e.x,y:e.y+e.height}],t=e.rotation;return t?[ha(r[0],t,r[0]),ha(r[1],t,r[0]),ha(r[2],t,r[0]),ha(r[3],t,r[0])]:r}function Qc(e,r){if(e.length>4)return{min:0,max:0};var t=[];return e.forEach(function(i){t.push(__([i.x,i.y],r))}),{min:Math.min.apply(Math,(0,g.__spreadArray)([],(0,g.__read)(t),!1)),max:Math.max.apply(Math,(0,g.__spreadArray)([],(0,g.__read)(t),!1))}}function w_(e,r){return e.max>r.min&&e.mine.x+e.width+t||r.x+r.widthe.y+e.height+t||r.y+r.height4)return[];var S=function(M,A){return[A.x-M.x,A.y-M.y]},b=S(w[0],w[1]),C=S(w[1],w[2]);return[b,C]}function h(w,S,b){S===void 0&&(S=0),b===void 0&&(b={x:0,y:0});var C=w.x,M=w.y;return{x:(C-b.x)*Math.cos(-S)+(M-b.y)*Math.sin(-S)+b.x,y:(b.x-C)*Math.sin(-S)+(M-b.y)*Math.cos(-S)+b.y}}function v(w){var S=[{x:w.x,y:w.y},{x:w.x+w.width,y:w.y},{x:w.x+w.width,y:w.y+w.height},{x:w.x,y:w.y+w.height}],b=w.rotation;return b?[h(S[0],b,S[0]),h(S[1],b,S[0]),h(S[2],b,S[0]),h(S[3],b,S[0])]:S}function d(w,S){if(w.length>4)return{min:0,max:0};var b=[];return w.forEach(function(C){b.push(u([C.x,C.y],S))}),{min:Math.min.apply(null,b),max:Math.max.apply(null,b)}}function p(w,S){return w.max>S.min&&w.minw.x+w.width+b||S.x+S.widthw.y+w.height+b||S.y+S.height=a.height:o.width>=a.width}function P_(e,r,t){var i=!!e.getAdjust("stack");return i||r.every(function(n,a){var o=t[a];return O_(e,n,o)})}function k_(e,r,t){var i=e.coordinate,n=Ee.fromObject(t.getBBox()),a=Fr(r);i.isTransposed?a.attr({x:n.minX+n.width/2,textAlign:"center"}):a.attr({y:n.minY+n.height/2,textBaseline:"middle"})}function D_(e,r,t){var i;if(t.length!==0){var n=(i=t[0])===null||i===void 0?void 0:i.get("element"),a=n==null?void 0:n.geometry;if(!(!a||a.type!=="interval")){var o=P_(a,r,t);o&&t.forEach(function(s,l){var u=r[l];k_(a,u,s)})}}}function B_(e){var r=500,t=[],i=Math.max(Math.floor(e.length/r),1);return(0,f.each)(e,function(n,a){a%i==0?t.push(n):n.set("visible",!1)}),t}function R_(e,r,t){var i;if(t.length!==0){var n=(i=t[0])===null||i===void 0?void 0:i.get("element"),a=n==null?void 0:n.geometry;if(!(!a||a.type!=="interval")){var o=B_(r),s=(0,g.__read)(a.getXYFields(),1),l=s[0],u=[],c=[],h=(0,f.groupBy)(o,function(x){return x.get("data")[l]}),v=(0,f.uniq)((0,f.map)(o,function(x){return x.get("data")[l]})),d;o.forEach(function(x){x.set("visible",!0)});var p=function(x){x&&(x.length&&c.push(x.pop()),c.push.apply(c,(0,g.__spreadArray)([],(0,g.__read)(x),!1)))};for((0,f.size)(v)>0&&(d=v.shift(),p(h[d])),(0,f.size)(v)>0&&(d=v.pop(),p(h[d])),(0,f.each)(v.reverse(),function(x){p(h[x])});c.length>0;){var y=c.shift();y.get("visible")&&($m(y,u)?y.set("visible",!1):u.push(y))}}}}function N_(e,r){var t=e.getXYFields()[1],i=[],n=r.sort(function(a,o){return a.get("data")[t]-a.get("data")[t]});return n.length>0&&i.push(n.shift()),n.length>0&&i.push(n.pop()),i.push.apply(i,(0,g.__spreadArray)([],(0,g.__read)(n),!1)),i}function rh(e,r,t){return e.some(function(i){return t(i,r)})}function z_(e,r,t){t===void 0&&(t=0);var i=Math.max(0,Math.min(e.x+e.width+t,r.x+r.width+t)-Math.max(e.x-t,r.x-t)),n=Math.max(0,Math.min(e.y+e.height+t,r.y+r.height+t)-Math.max(e.y-t,r.y-t));return i*n}function ih(e,r){return rh(e,r,function(t,i){var n=Fr(t),a=Fr(i);return z_(n.getCanvasBBox(),a.getCanvasBBox(),2)>0})}function V_(e,r,t,i,n){var a,o;if(t.length!==0){var s=(a=t[0])===null||a===void 0?void 0:a.get("element"),l=s==null?void 0:s.geometry;if(!(!l||l.type!=="point")){var u=(0,g.__read)(l.getXYFields(),2),c=u[0],h=u[1],v=(0,f.groupBy)(r,function(y){return y.get("data")[c]}),d=[],p=n&&n.offset||((o=e[0])===null||o===void 0?void 0:o.offset)||12;(0,f.map)((0,f.keys)(v).reverse(),function(y){for(var x=N_(l,v[y]);x.length;){var m=x.shift(),_=Fr(m);if(rh(d,m,function(b,C){return b.get("data")[c]===C.get("data")[c]&&b.get("data")[h]===C.get("data")[h]})){_.set("visible",!1);continue}var w=ih(d,m),S=!1;if(w&&(_.attr("y",_.attr("y")+2*p),S=ih(d,m)),S){_.set("visible",!1);continue}d.push(m)}})}}}function G_(e,r){var t=e.getXYFields()[1],i=[],n=r.sort(function(a,o){return a.get("data")[t]-a.get("data")[t]});return n.length>0&&i.push(n.shift()),n.length>0&&i.push(n.pop()),i.push.apply(i,(0,g.__spreadArray)([],(0,g.__read)(n),!1)),i}function nh(e,r,t){return e.some(function(i){return t(i,r)})}function W_(e,r,t){t===void 0&&(t=0);var i=Math.max(0,Math.min(e.x+e.width+t,r.x+r.width+t)-Math.max(e.x-t,r.x-t)),n=Math.max(0,Math.min(e.y+e.height+t,r.y+r.height+t)-Math.max(e.y-t,r.y-t));return i*n}function ah(e,r){return nh(e,r,function(t,i){var n=Fr(t),a=Fr(i);return W_(n.getCanvasBBox(),a.getCanvasBBox(),2)>0})}function H_(e,r,t,i,n){var a,o;if(t.length!==0){var s=(a=t[0])===null||a===void 0?void 0:a.get("element"),l=s==null?void 0:s.geometry;if(!(!l||["path","line","area"].indexOf(l.type)<0)){var u=(0,g.__read)(l.getXYFields(),2),c=u[0],h=u[1],v=(0,f.groupBy)(r,function(y){return y.get("data")[c]}),d=[],p=n&&n.offset||((o=e[0])===null||o===void 0?void 0:o.offset)||12;(0,f.map)((0,f.keys)(v).reverse(),function(y){for(var x=G_(l,v[y]);x.length;){var m=x.shift(),_=Fr(m);if(nh(d,m,function(b,C){return b.get("data")[c]===C.get("data")[c]&&b.get("data")[h]===C.get("data")[h]})){_.set("visible",!1);continue}var w=ah(d,m),S=!1;if(w&&(_.attr("y",_.attr("y")+2*p),S=ah(d,m)),S){_.set("visible",!1);continue}d.push(m)}})}}}var ns;function Y_(){return ns||(ns=document.createElement("canvas").getContext("2d")),ns}var fa=(0,f.memoize)(function(e,r){r===void 0&&(r={});var t=r.fontSize,i=r.fontFamily,n=r.fontWeight,a=r.fontStyle,o=r.fontVariant,s=Y_();return s.font=[a,o,n,"".concat(t,"px"),i].join(" "),s.measureText((0,f.isString)(e)?e:"").width},function(e,r){return r===void 0&&(r={}),(0,g.__spreadArray)([e],(0,g.__read)((0,f.values)(r)),!1).join("")}),X_=function(e,r,t){var i=16,n=fa("...",t),a;(0,f.isString)(e)?a=e:a=(0,f.toString)(e);var o=r,s=[],l,u;if(fa(e,t)<=r)return e;for(;l=a.substr(0,i),u=fa(l,t),!(u+n>o&&u>o);)if(s.push(l),o-=u,a=a.substr(i),!a)return s.join("");for(;l=a.substr(0,1),u=fa(l,t),!(u+n>o);)if(s.push(l),o-=u,a=a.substr(1),!a)return s.join("");return"".concat(s.join(""),"...")};function U_(e,r,t,i,n){if(!(r.length<=0)){var a=(n==null?void 0:n.direction)||["top","right","bottom","left"],o=(n==null?void 0:n.action)||"translate",s=(n==null?void 0:n.margin)||0,l=r[0].get("coordinate");if(!!l){var u=n0(l,s),c=u.minX,h=u.minY,v=u.maxX,d=u.maxY;(0,f.each)(r,function(p){var y=p.getCanvasBBox(),x=y.minX,m=y.minY,_=y.maxX,w=y.maxY,S=y.x,b=y.y,C=y.width,M=y.height,A=S,O=b;if(a.indexOf("left")>=0&&(x=0&&(m=0&&(x>v?A=v-C:_>v&&(A=A-(_-v))),a.indexOf("bottom")>=0&&(m>d?O=d-M:w>d&&(O=O-(w-d))),A!==S||O!==b){var E=A-S;if(o==="translate")sn(p,E,O-b);else if(o==="ellipsis"){var z=p.findAll(function(X){return X.get("type")==="text"});z.forEach(function(X){var lt=(0,f.pick)(X.attr(),["fontSize","fontFamily","fontWeight","fontStyle","fontVariant"]),pt=X.getCanvasBBox(),At=X_(X.attr("text"),pt.width-Math.abs(E),lt);X.attr("text",At)})}else p.hide()}})}}}function Z_(e,r,t){var i={fillOpacity:(0,f.isNil)(e.attr("fillOpacity"))?1:e.attr("fillOpacity"),strokeOpacity:(0,f.isNil)(e.attr("strokeOpacity"))?1:e.attr("strokeOpacity"),opacity:(0,f.isNil)(e.attr("opacity"))?1:e.attr("opacity")};e.attr({fillOpacity:0,strokeOpacity:0,opacity:0}),e.animate(i,r)}function q_(e,r,t){var i={fillOpacity:0,strokeOpacity:0,opacity:0},n=r.easing,a=r.duration,o=r.delay;e.animate(i,a,n,function(){e.remove(!0)},o)}function j_(e,r,t){var i,n=(0,g.__read)(r,2),a=n[0],o=n[1];return e.applyToMatrix([a,o,1]),t==="x"?(e.setMatrix(ie.vs(e.getMatrix(),[["t",-a,-o],["s",.01,1],["t",a,o]])),i=ie.vs(e.getMatrix(),[["t",-a,-o],["s",100,1],["t",a,o]])):t==="y"?(e.setMatrix(ie.vs(e.getMatrix(),[["t",-a,-o],["s",1,.01],["t",a,o]])),i=ie.vs(e.getMatrix(),[["t",-a,-o],["s",1,100],["t",a,o]])):t==="xy"&&(e.setMatrix(ie.vs(e.getMatrix(),[["t",-a,-o],["s",.01,.01],["t",a,o]])),i=ie.vs(e.getMatrix(),[["t",-a,-o],["s",100,100],["t",a,o]])),i}function as(e,r,t,i,n){var a=t.start,o=t.end,s=t.getWidth(),l=t.getHeight(),u,c;n==="y"?(u=a.x+s/2,c=i.ya.x?i.x:a.x,c=a.y+l/2):n==="xy"&&(t.isPolar?(u=t.getCenter().x,c=t.getCenter().y):(u=(a.x+o.x)/2,c=(a.y+o.y)/2));var h=j_(e,[u,c],n);e.animate({matrix:h},r)}function K_(e,r,t){var i=t.coordinate,n=t.minYPoint;as(e,r,i,n,"x")}function $_(e,r,t){var i=t.coordinate,n=t.minYPoint;as(e,r,i,n,"y")}function Q_(e,r,t){var i=t.coordinate,n=t.minYPoint;as(e,r,i,n,"xy")}function J_(e,r,t){var i=e.getTotalLength();e.attr("lineDash",[i]),e.animate(function(n){return{lineDashOffset:(1-n)*i}},r)}function tw(e,r,t){var i=t.toAttrs,n=i.x,a=i.y;delete i.x,delete i.y,e.attr(i),e.animate({x:n,y:a},r)}function ew(e,r,t){var i=e.getBBox(),n=e.get("origin").mappingData,a=n.points,o=a[0].y-a[1].y>0?i.maxX:i.minX,s=(i.minY+i.maxY)/2;e.applyToMatrix([o,s,1]);var l=ie.vs(e.getMatrix(),[["t",-o,-s],["s",.01,1],["t",o,s]]);e.setMatrix(l),e.animate({matrix:ie.vs(e.getMatrix(),[["t",-o,-s],["s",100,1],["t",o,s]])},r)}function rw(e,r,t){var i=e.getBBox(),n=e.get("origin").mappingData,a=(i.minX+i.maxX)/2,o=n.points,s=o[0].y-o[1].y<=0?i.maxY:i.minY;e.applyToMatrix([a,s,1]);var l=ie.vs(e.getMatrix(),[["t",-a,-s],["s",1,.01],["t",a,s]]);e.setMatrix(l),e.animate({matrix:ie.vs(e.getMatrix(),[["t",-a,-s],["s",1,100],["t",a,s]])},r)}function oh(e,r){var t,i=(0,Dc.getArcParams)(e,r),n=i.startAngle,a=i.endAngle;return!(0,f.isNumberEqual)(n,-Math.PI*.5)&&n<-Math.PI*.5&&(n+=Math.PI*2),!(0,f.isNumberEqual)(a,-Math.PI*.5)&&a<-Math.PI*.5&&(a+=Math.PI*2),r[5]===0&&(t=(0,g.__read)([a,n],2),n=t[0],a=t[1]),(0,f.isNumberEqual)(n,Math.PI*1.5)&&(n=Math.PI*-.5),(0,f.isNumberEqual)(a,Math.PI*-.5)&&!(0,f.isNumberEqual)(n,a)&&(a=Math.PI*1.5),{startAngle:n,endAngle:a}}function sh(e){var r;return e[0]==="M"||e[0]==="L"?r=[e[1],e[2]]:(e[0]==="a"||e[0]==="A"||e[0]==="C")&&(r=[e[e.length-2],e[e.length-1]]),r}function lh(e){var r,t,i,n=e.filter(function(w){return w[0]==="A"||w[0]==="a"});if(n.length===0)return{startAngle:0,endAngle:0,radius:0,innerRadius:0};var a=n[0],o=n.length>1?n[1]:n[0],s=e.indexOf(a),l=e.indexOf(o),u=sh(e[s-1]),c=sh(e[l-1]),h=oh(u,a),v=h.startAngle,d=h.endAngle,p=oh(c,o),y=p.startAngle,x=p.endAngle;(0,f.isNumberEqual)(v,y)&&(0,f.isNumberEqual)(d,x)?(t=v,i=d):(t=Math.min(v,y),i=Math.max(d,x));var m=a[1],_=n[n.length-1][1];return m<_?(r=(0,g.__read)([_,m],2),m=r[0],_=r[1]):m===_&&(_=0),{startAngle:t,endAngle:i,radius:m,innerRadius:_}}function iw(e,r,t){var i=t.toAttrs,n=t.coordinate,a=i.path||[],o=a.map(function(_){return _[0]});if(!(a.length<1)){var s=lh(a),l=s.startAngle,u=s.endAngle,c=s.radius,h=s.innerRadius,v=lh(e.attr("path")),d=v.startAngle,p=v.endAngle,y=n.getCenter(),x=l-d,m=u-p;if(x===0&&m===0){e.attr("path",a);return}e.animate(function(_){var w=d+_*x,S=p+_*m;return(0,g.__assign)((0,g.__assign)({},i),{path:(0,f.isEqual)(o,["M","A","A","Z"])?du(y.x,y.y,c,w,S):wr(y.x,y.y,c,w,S,h)})},(0,g.__assign)((0,g.__assign)({},r),{callback:function(){e.attr("path",a),(0,f.isFunction)(r.callback)&&r.callback()}}))}}function nw(e,r,t){var i=Ao(t.coordinate,20),n=i.type,a=i.startState,o=i.endState,s=e.setClip({type:n,attrs:a});t.toAttrs&&e.attr(t.toAttrs),s.animate(o,(0,g.__assign)((0,g.__assign)({},r),{callback:function(){e&&!e.get("destroyed")&&e.set("clipShape",null),s.remove(!0),(0,f.isFunction)(r.callback)&&r.callback()}}))}function os(e,r,t){if(e.isGroup())(0,f.each)(e.getChildren(),function(s){os(s,r,t)});else{var i=e.getBBox(),n=(i.minX+i.maxX)/2,a=(i.minY+i.maxY)/2;if(e.applyToMatrix([n,a,1]),t==="zoomIn"){var o=ie.vs(e.getMatrix(),[["t",-n,-a],["s",.01,.01],["t",n,a]]);e.setMatrix(o),e.animate({matrix:ie.vs(e.getMatrix(),[["t",-n,-a],["s",100,100],["t",n,a]])},r)}else e.animate({matrix:ie.vs(e.getMatrix(),[["t",-n,-a],["s",.01,.01],["t",n,a]])},(0,g.__assign)((0,g.__assign)({},r),{callback:function(){e.remove(!0),(0,f.isFunction)(r.callback)&&r.callback()}}))}}function aw(e,r,t){os(e,r,"zoomIn")}function ow(e,r,t){os(e,r,"zoomOut")}function ur(e){return[T.TOP,T.BOTTOM].includes(e)?{offsetX:0,offsetY:e===T.TOP?-8:8,style:{textAlign:"center",textBaseline:e===T.TOP?"bottom":"top"}}:[T.LEFT,T.RIGHT].includes(e)?{offsetX:e===T.LEFT?-8:8,offsetY:0,style:{textAlign:e===T.LEFT?"right":"left",textBaseline:"middle",rotate:Math.PI/2}}:{}}function ss(e,r,t){return{x:e.x+r*Math.cos(t),y:e.y+r*Math.sin(t)}}var sw=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getDefaultCfg=function(){return(0,f.deepMix)({},e.prototype.getDefaultCfg.call(this),{type:"circle",showTitle:!0,title:e.prototype.getDefaultTitleCfg.call(this)})},r.prototype.render=function(){e.prototype.render.call(this),this.cfg.showTitle&&this.renderTitle()},r.prototype.getRegion=function(t,i){var n=1/2,a={x:.5,y:.5},o=Math.PI*2/t,s=-1*Math.PI/2+o*i,l=n/(1+1/Math.sin(o/2)),u=ss(a,n-l,s),c=Math.PI*5/4,h=Math.PI*1/4;return{start:ss(u,l,c),end:ss(u,l,h)}},r.prototype.afterEachView=function(t,i){this.processAxis(t,i)},r.prototype.beforeEachView=function(t,i){},r.prototype.generateFacets=function(t){var i=this,n=this.cfg,a=n.fields,o=n.type,s=(0,g.__read)(a,1),l=s[0];if(!l)throw new Error("No `fields` specified!");var u=this.getFieldValues(t,l),c=u.length,h=[];return u.forEach(function(v,d){var p=[{field:l,value:v,values:u}],y=(0,f.filter)(t,i.getFacetDataFilter(p)),x={type:o,data:y,region:i.getRegion(c,d),columnValue:v,columnField:l,columnIndex:d,columnValuesLength:c,rowValue:null,rowField:null,rowIndex:0,rowValuesLength:1};h.push(x)}),h},r.prototype.getXAxisOption=function(t,i,n,a){return n},r.prototype.getYAxisOption=function(t,i,n,a){return n},r.prototype.renderTitle=function(){var t=this;(0,f.each)(this.facets,function(i){var n=i.columnValue,a=i.view,o=(0,f.get)(t.cfg.title,"formatter"),s=(0,f.deepMix)({position:["50%","0%"],content:o?o(n):n},ur(T.TOP),t.cfg.title);a.annotation().text(s)})},r}(fi),lw=sw,uw=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getDefaultCfg=function(){return(0,f.deepMix)({},e.prototype.getDefaultCfg.call(this),{type:"list",cols:null,showTitle:!0,title:e.prototype.getDefaultTitleCfg.call(this)})},r.prototype.render=function(){e.prototype.render.call(this),this.cfg.showTitle&&this.renderTitle()},r.prototype.afterEachView=function(t,i){this.processAxis(t,i)},r.prototype.beforeEachView=function(t,i){},r.prototype.generateFacets=function(t){var i=this,n=this.cfg.fields,a=this.cfg.cols,o=(0,g.__read)(n,1),s=o[0];if(!s)throw new Error("No `fields` specified!");var l=this.getFieldValues(t,s),u=l.length;a=a||u;var c=this.getPageCount(u,a),h=[];return l.forEach(function(v,d){var p=i.getRowCol(d,a),y=p.row,x=p.col,m=[{field:s,value:v,values:l}],_=(0,f.filter)(t,i.getFacetDataFilter(m)),w={type:i.cfg.type,data:_,region:i.getRegion(c,a,x,y),columnValue:v,rowValue:v,columnField:s,rowField:null,columnIndex:x,rowIndex:y,columnValuesLength:a,rowValuesLength:c,total:u};h.push(w)}),h},r.prototype.getXAxisOption=function(t,i,n,a){return a.rowIndex!==a.rowValuesLength-1&&a.columnValuesLength*a.rowIndex+a.columnIndex+1+a.columnValuesLength<=a.total?(0,g.__assign)((0,g.__assign)({},n),{label:null,title:null}):n},r.prototype.getYAxisOption=function(t,i,n,a){return a.columnIndex!==0?(0,g.__assign)((0,g.__assign)({},n),{title:null,label:null}):n},r.prototype.renderTitle=function(){var t=this;(0,f.each)(this.facets,function(i){var n=i.columnValue,a=i.view,o=(0,f.get)(t.cfg.title,"formatter"),s=(0,f.deepMix)({position:["50%","0%"],content:o?o(n):n},ur(T.TOP),t.cfg.title);a.annotation().text(s)})},r.prototype.getPageCount=function(t,i){return Math.floor((t+i-1)/i)},r.prototype.getRowCol=function(t,i){var n=Math.floor(t/i),a=t%i;return{row:n,col:a}},r}(fi),cw=uw,hw=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getDefaultCfg=function(){return(0,f.deepMix)({},e.prototype.getDefaultCfg.call(this),{type:"matrix",showTitle:!1,columnTitle:(0,g.__assign)({},e.prototype.getDefaultTitleCfg.call(this)),rowTitle:(0,g.__assign)({},e.prototype.getDefaultTitleCfg.call(this))})},r.prototype.render=function(){e.prototype.render.call(this),this.cfg.showTitle&&this.renderTitle()},r.prototype.afterEachView=function(t,i){this.processAxis(t,i)},r.prototype.beforeEachView=function(t,i){},r.prototype.generateFacets=function(t){for(var i=this.cfg,n=i.fields,a=i.type,o=n.length,s=o,l=[],u=0;u=0;u--){var c=this.getFacetsByLevel(t,u);try{for(var h=(i=void 0,(0,g.__values)(c)),v=h.next();!v.done;v=h.next()){var d=v.value;this.isLeaf(d)||(d.originColIndex=d.columnIndex,d.columnIndex=this.getRegionIndex(d.children),d.columnValuesLength=o.length)}}catch(p){i={error:p}}finally{try{v&&!v.done&&(n=h.return)&&n.call(h)}finally{if(i)throw i.error}}}},r.prototype.getFacetsByLevel=function(t,i){var n=[];return t.forEach(function(a){a.rowIndex===i&&n.push(a)}),n},r.prototype.getRegionIndex=function(t){var i=t[0],n=t[t.length-1];return(n.columnIndex-i.columnIndex)/2+i.columnIndex},r.prototype.isLeaf=function(t){return!t.children||!t.children.length},r.prototype.getRows=function(){return this.cfg.fields.length+1},r.prototype.getChildFacets=function(t,i,n){var a=this,o=this.cfg.fields,s=o.length;if(!(s=d){var x=n.parsePosition([p[l],p[s.field]]);x&&v.push(x)}if(p[l]===h)return!1}),v},r.prototype.parsePercentPosition=function(t){var i=parseFloat(t[0])/100,n=parseFloat(t[1])/100,a=this.view.getCoordinate(),o=a.start,s=a.end,l={x:Math.min(o.x,s.x),y:Math.min(o.y,s.y)},u=a.getWidth()*i+l.x,c=a.getHeight()*n+l.y;return{x:u,y:c}},r.prototype.getCoordinateBBox=function(){var t=this.view.getCoordinate(),i=t.start,n=t.end,a=t.getWidth(),o=t.getHeight(),s={x:Math.min(i.x,n.x),y:Math.min(i.y,n.y)};return{x:s.x,y:s.y,minX:s.x,minY:s.y,maxX:s.x+a,maxY:s.y+o,width:a,height:o}},r.prototype.getAnnotationCfg=function(t,i,n){var a=this,o=this.view.getCoordinate(),s=this.view.getCanvas(),l={};if((0,f.isNil)(i))return null;var u=i.start,c=i.end,h=i.position,v=this.parsePosition(u),d=this.parsePosition(c),p=this.parsePosition(h);if(["arc","image","line","region","regionFilter"].includes(t)&&(!v||!d))return null;if(["text","dataMarker","html"].includes(t)&&!p)return null;if(t==="arc"){var y=i,x=y.start,m=y.end,_=(0,g.__rest)(y,["start","end"]),w=hi(o,v),S=hi(o,d);w>S&&(S=Math.PI*2+S),l=(0,g.__assign)((0,g.__assign)({},_),{center:o.getCenter(),radius:Un(o,v),startAngle:w,endAngle:S})}else if(t==="image"){var b=i,C=b.start,M=b.end,_=(0,g.__rest)(b,["start","end"]);l=(0,g.__assign)((0,g.__assign)({},_),{start:v,end:d,src:i.src})}else if(t==="line"){var A=i,O=A.start,E=A.end,_=(0,g.__rest)(A,["start","end"]);l=(0,g.__assign)((0,g.__assign)({},_),{start:v,end:d,text:(0,f.get)(i,"text",null)})}else if(t==="region"){var z=i,X=z.start,lt=z.end,_=(0,g.__rest)(z,["start","end"]);l=(0,g.__assign)((0,g.__assign)({},_),{start:v,end:d})}else if(t==="text"){var pt=this.view.getData(),At=i,V=At.position,K=At.content,_=(0,g.__rest)(At,["position","content"]),ft=K;(0,f.isFunction)(K)&&(ft=K(pt)),l=(0,g.__assign)((0,g.__assign)((0,g.__assign)({},p),_),{content:ft})}else if(t==="dataMarker"){var nt=i,dt=nt.position,St=nt.point,Nt=nt.line,Wt=nt.text,Bt=nt.autoAdjust,Ht=nt.direction,_=(0,g.__rest)(nt,["position","point","line","text","autoAdjust","direction"]);l=(0,g.__assign)((0,g.__assign)((0,g.__assign)({},_),p),{coordinateBBox:this.getCoordinateBBox(),point:St,line:Nt,text:Wt,autoAdjust:Bt,direction:Ht})}else if(t==="dataRegion"){var Jt=i,pe=Jt.start,ye=Jt.end,ar=Jt.region,Wt=Jt.text,ni=Jt.lineLength,_=(0,g.__rest)(Jt,["start","end","region","text","lineLength"]);l=(0,g.__assign)((0,g.__assign)({},_),{points:this.getRegionPoints(pe,ye),region:ar,text:Wt,lineLength:ni})}else if(t==="regionFilter"){var mr=i,Oi=mr.start,Pi=mr.end,Yd=mr.apply,jL=mr.color,_=(0,g.__rest)(mr,["start","end","apply","color"]),KL=this.view.geometries,Xd=[],_l=function(or){!or||(or.isGroup()?or.getChildren().forEach(function(In){return _l(In)}):Xd.push(or))};(0,f.each)(KL,function(or){Yd?(0,f.contains)(Yd,or.type)&&(0,f.each)(or.elements,function(In){_l(In.shape)}):(0,f.each)(or.elements,function(In){_l(In.shape)})}),l=(0,g.__assign)((0,g.__assign)({},_),{color:jL,shapes:Xd,start:v,end:d})}else if(t==="shape"){var Ud=i,$L=Ud.render,wl=(0,g.__rest)(Ud,["render"]),QL=function(tI){if((0,f.isFunction)(i.render))return $L(tI,a.view,{parsePosition:a.parsePosition.bind(a)})};l=(0,g.__assign)((0,g.__assign)({},wl),{render:QL})}else if(t==="html"){var Sl=i,bl=Sl.html,PO=Sl.position,wl=(0,g.__rest)(Sl,["html","position"]),JL=function(or){return(0,f.isFunction)(bl)?bl(or,a.view):bl};l=(0,g.__assign)((0,g.__assign)((0,g.__assign)({},wl),p),{parent:s.get("el").parentNode,html:JL})}var Br=(0,f.deepMix)({},n,(0,g.__assign)((0,g.__assign)({},l),{top:i.top,style:i.style,offsetX:i.offsetX,offsetY:i.offsetY}));return t!=="html"&&(Br.container=this.getComponentContainer(Br)),Br.animate=this.view.getOptions().animate&&Br.animate&&(0,f.get)(i,"animate",Br.animate),Br.animateOption=(0,f.deepMix)({},yi,Br.animateOption,i.animateOption),Br},r.prototype.isTop=function(t){return(0,f.get)(t,"top",!0)},r.prototype.getComponentContainer=function(t){return this.isTop(t)?this.foregroundContainer:this.backgroundContainer},r.prototype.getAnnotationTheme=function(t){return(0,f.get)(this.view.getTheme(),["components","annotation",t],{})},r.prototype.updateOrCreate=function(t){var i=this.cache.get(this.getCacheKey(t));if(i){var n=t.type,a=this.getAnnotationTheme(n),o=this.getAnnotationCfg(n,t,a);o&&Oe(o,["container"]),i.component.update((0,g.__assign)((0,g.__assign)({},o||{}),{visible:!!o})),(0,f.includes)(da,t.type)&&i.component.render()}else i=this.createAnnotation(t),i&&(i.component.init(),(0,f.includes)(da,t.type)&&i.component.render());return i},r.prototype.syncCache=function(t){var i=this,n=new Map(this.cache);return t.forEach(function(a,o){n.set(o,a)}),n.forEach(function(a,o){(0,f.find)(i.option,function(s){return o===i.getCacheKey(s)})||(a.component.destroy(),n.delete(o))}),n},r.prototype.getCacheKey=function(t){return t},r}(pi),ww=_w;function ch(e,r){var t=(0,f.deepMix)({},(0,f.get)(e,["components","axis","common"]),(0,f.get)(e,["components","axis",r]));return(0,f.get)(t,["grid"],{})}function ga(e,r,t,i){var n=[],a=r.getTicks();return e.isPolar&&a.push({value:1,text:"",tickValue:""}),a.reduce(function(o,s,l){var u=s.value;if(i)n.push({points:[e.convert(t==="y"?{x:0,y:u}:{x:u,y:0}),e.convert(t==="y"?{x:1,y:u}:{x:u,y:1})]});else if(l){var c=o.value,h=(c+u)/2;n.push({points:[e.convert(t==="y"?{x:0,y:h}:{x:h,y:0}),e.convert(t==="y"?{x:1,y:h}:{x:h,y:1})]})}return s},a[0]),n}function ls(e,r,t,i,n){var a=r.values.length,o=[],s=t.getTicks();return s.reduce(function(l,u){var c=l?l.value:u.value,h=u.value,v=(c+h)/2;return n==="x"?o.push({points:[e.convert({x:i?h:v,y:0}),e.convert({x:i?h:v,y:1})]}):o.push({points:(0,f.map)(Array(a+1),function(d,p){return e.convert({x:p/a,y:i?h:v})})}),u},s[0]),o}function hh(e,r){var t=(0,f.get)(r,"grid");if(t===null)return!1;var i=(0,f.get)(e,"grid");return!(t===void 0&&i===null)}var Tr=["container"],fh=(0,g.__assign)((0,g.__assign)({},yi),{appear:null}),Sw=function(e){(0,g.__extends)(r,e);function r(t){var i=e.call(this,t)||this;return i.cache=new Map,i.gridContainer=i.view.getLayer(tt.BG).addGroup(),i.gridForeContainer=i.view.getLayer(tt.FORE).addGroup(),i.axisContainer=i.view.getLayer(tt.BG).addGroup(),i.axisForeContainer=i.view.getLayer(tt.FORE).addGroup(),i}return Object.defineProperty(r.prototype,"name",{get:function(){return"axis"},enumerable:!1,configurable:!0}),r.prototype.init=function(){},r.prototype.render=function(){this.update()},r.prototype.layout=function(){var t=this,i=this.view.getCoordinate();(0,f.each)(this.getComponents(),function(n){var a=n.component,o=n.direction,s=n.type,l=n.extra,u=l.dim,c=l.scale,h=l.alignTick,v;if(s===N.AXIS)i.isPolar?u==="x"?v=i.isTransposed?Zn(i,o):Fo(i):u==="y"&&(v=i.isTransposed?Fo(i):Zn(i,o)):v=Zn(i,o);else if(s===N.GRID)if(i.isPolar){var d=void 0;i.isTransposed?d=u==="x"?ls(i,t.view.getYScales()[0],c,h,u):ga(i,c,u,h):d=u==="x"?ga(i,c,u,h):ls(i,t.view.getXScale(),c,h,u),v={items:d,center:t.view.getCoordinate().getCenter()}}else v={items:ga(i,c,u,h)};a.update(v)})},r.prototype.update=function(){this.option=this.view.getOptions().axes;var t=new Map;this.updateXAxes(t),this.updateYAxes(t);var i=new Map;this.cache.forEach(function(n,a){t.has(a)?i.set(a,n):n.component.destroy()}),this.cache=i},r.prototype.clear=function(){e.prototype.clear.call(this),this.cache.clear(),this.gridContainer.clear(),this.gridForeContainer.clear(),this.axisContainer.clear(),this.axisForeContainer.clear()},r.prototype.destroy=function(){e.prototype.destroy.call(this),this.gridContainer.remove(!0),this.gridForeContainer.remove(!0),this.axisContainer.remove(!0),this.axisForeContainer.remove(!0)},r.prototype.getComponents=function(){var t=[];return this.cache.forEach(function(i){t.push(i)}),t},r.prototype.updateXAxes=function(t){var i=this.view.getXScale();if(!(!i||i.isIdentity)){var n=jn(this.option,i.field);if(n!==!1){var a=wu(n,T.BOTTOM),o=tt.BG,s="x",l=this.view.getCoordinate(),u=this.getId("axis",i.field),c=this.getId("grid",i.field);if(l.isRect){var h=this.cache.get(u);if(h){var v=this.getLineAxisCfg(i,n,a);Oe(v,Tr),h.component.update(v),t.set(u,h)}else h=this.createLineAxis(i,n,o,a,s),this.cache.set(u,h),t.set(u,h);var d=this.cache.get(c);if(d){var v=this.getLineGridCfg(i,n,a,s);Oe(v,Tr),d.component.update(v),t.set(c,d)}else d=this.createLineGrid(i,n,o,a,s),d&&(this.cache.set(c,d),t.set(c,d))}else if(l.isPolar){var h=this.cache.get(u);if(h){var v=l.isTransposed?this.getLineAxisCfg(i,n,T.RADIUS):this.getCircleAxisCfg(i,n,a);Oe(v,Tr),h.component.update(v),t.set(u,h)}else{if(l.isTransposed){if((0,f.isUndefined)(n))return;h=this.createLineAxis(i,n,o,T.RADIUS,s)}else h=this.createCircleAxis(i,n,o,a,s);this.cache.set(u,h),t.set(u,h)}var d=this.cache.get(c);if(d){var v=l.isTransposed?this.getCircleGridCfg(i,n,T.RADIUS,s):this.getLineGridCfg(i,n,T.CIRCLE,s);Oe(v,Tr),d.component.update(v),t.set(c,d)}else{if(l.isTransposed){if((0,f.isUndefined)(n))return;d=this.createCircleGrid(i,n,o,T.RADIUS,s)}else d=this.createLineGrid(i,n,o,T.CIRCLE,s);d&&(this.cache.set(c,d),t.set(c,d))}}}}},r.prototype.updateYAxes=function(t){var i=this,n=this.view.getYScales();(0,f.each)(n,function(a,o){if(!(!a||a.isIdentity)){var s=a.field,l=jn(i.option,s);if(l!==!1){var u=tt.BG,c="y",h=i.getId("axis",s),v=i.getId("grid",s),d=i.view.getCoordinate();if(d.isRect){var p=wu(l,o===0?T.LEFT:T.RIGHT),y=i.cache.get(h);if(y){var x=i.getLineAxisCfg(a,l,p);Oe(x,Tr),y.component.update(x),t.set(h,y)}else y=i.createLineAxis(a,l,u,p,c),i.cache.set(h,y),t.set(h,y);var m=i.cache.get(v);if(m){var x=i.getLineGridCfg(a,l,p,c);Oe(x,Tr),m.component.update(x),t.set(v,m)}else m=i.createLineGrid(a,l,u,p,c),m&&(i.cache.set(v,m),t.set(v,m))}else if(d.isPolar){var y=i.cache.get(h);if(y){var x=d.isTransposed?i.getCircleAxisCfg(a,l,T.CIRCLE):i.getLineAxisCfg(a,l,T.RADIUS);Oe(x,Tr),y.component.update(x),t.set(h,y)}else{if(d.isTransposed){if((0,f.isUndefined)(l))return;y=i.createCircleAxis(a,l,u,T.CIRCLE,c)}else y=i.createLineAxis(a,l,u,T.RADIUS,c);i.cache.set(h,y),t.set(h,y)}var m=i.cache.get(v);if(m){var x=d.isTransposed?i.getLineGridCfg(a,l,T.CIRCLE,c):i.getCircleGridCfg(a,l,T.RADIUS,c);Oe(x,Tr),m.component.update(x),t.set(v,m)}else{if(d.isTransposed){if((0,f.isUndefined)(l))return;m=i.createLineGrid(a,l,u,T.CIRCLE,c)}else m=i.createCircleGrid(a,l,u,T.RADIUS,c);m&&(i.cache.set(v,m),t.set(v,m))}}}}})},r.prototype.createLineAxis=function(t,i,n,a,o){var s={component:new Zy(this.getLineAxisCfg(t,i,a)),layer:n,direction:a===T.RADIUS?T.NONE:a,type:N.AXIS,extra:{dim:o,scale:t}};return s.component.set("field",t.field),s.component.init(),s},r.prototype.createLineGrid=function(t,i,n,a,o){var s=this.getLineGridCfg(t,i,a,o);if(s){var l={component:new jy(s),layer:n,direction:T.NONE,type:N.GRID,extra:{dim:o,scale:t,alignTick:(0,f.get)(s,"alignTick",!0)}};return l.component.init(),l}},r.prototype.createCircleAxis=function(t,i,n,a,o){var s={component:new qy(this.getCircleAxisCfg(t,i,a)),layer:n,direction:a,type:N.AXIS,extra:{dim:o,scale:t}};return s.component.set("field",t.field),s.component.init(),s},r.prototype.createCircleGrid=function(t,i,n,a,o){var s=this.getCircleGridCfg(t,i,a,o);if(s){var l={component:new Ky(s),layer:n,direction:T.NONE,type:N.GRID,extra:{dim:o,scale:t,alignTick:(0,f.get)(s,"alignTick",!0)}};return l.component.init(),l}},r.prototype.getLineAxisCfg=function(t,i,n){var a=(0,f.get)(i,["top"])?this.axisForeContainer:this.axisContainer,o=this.view.getCoordinate(),s=Zn(o,n),l=Su(t,i),u=qn(this.view.getTheme(),n),c=(0,f.get)(i,["title"])?(0,f.deepMix)({title:{style:{text:l}}},{title:_u(this.view.getTheme(),n,i.title)},i):i,h=(0,f.deepMix)((0,g.__assign)((0,g.__assign)({container:a},s),{ticks:t.getTicks().map(function(w){return{id:"".concat(w.tickValue),name:w.text,value:w.value}}),verticalFactor:o.isPolar?xu(s,o.getCenter())*-1:xu(s,o.getCenter()),theme:u}),u,c),v=this.getAnimateCfg(h),d=v.animate,p=v.animateOption;h.animateOption=p,h.animate=d;var y=mu(s),x=(0,f.get)(h,"verticalLimitLength",y?1/3:1/2);if(x<=1){var m=this.view.getCanvas().get("width"),_=this.view.getCanvas().get("height");h.verticalLimitLength=x*(y?m:_)}return h},r.prototype.getLineGridCfg=function(t,i,n,a){if(!!hh(qn(this.view.getTheme(),n),i)){var o=ch(this.view.getTheme(),n),s=(0,f.deepMix)({container:(0,f.get)(i,["top"])?this.gridForeContainer:this.gridContainer},o,(0,f.get)(i,"grid"),this.getAnimateCfg(i));return s.items=ga(this.view.getCoordinate(),t,a,(0,f.get)(s,"alignTick",!0)),s}},r.prototype.getCircleAxisCfg=function(t,i,n){var a=(0,f.get)(i,["top"])?this.axisForeContainer:this.axisContainer,o=this.view.getCoordinate(),s=t.getTicks().map(function(y){return{id:"".concat(y.tickValue),name:y.text,value:y.value}});!t.isCategory&&Math.abs(o.endAngle-o.startAngle)===Math.PI*2&&s.length&&(s[s.length-1].name="");var l=Su(t,i),u=qn(this.view.getTheme(),T.CIRCLE),c=(0,f.get)(i,["title"])?(0,f.deepMix)({title:{style:{text:l}}},{title:_u(this.view.getTheme(),n,i.title)},i):i,h=(0,f.deepMix)((0,g.__assign)((0,g.__assign)({container:a},Fo(this.view.getCoordinate())),{ticks:s,verticalFactor:1,theme:u}),u,c),v=this.getAnimateCfg(h),d=v.animate,p=v.animateOption;return h.animate=d,h.animateOption=p,h},r.prototype.getCircleGridCfg=function(t,i,n,a){if(!!hh(qn(this.view.getTheme(),n),i)){var o=ch(this.view.getTheme(),T.RADIUS),s=(0,f.deepMix)({container:(0,f.get)(i,["top"])?this.gridForeContainer:this.gridContainer,center:this.view.getCoordinate().getCenter()},o,(0,f.get)(i,"grid"),this.getAnimateCfg(i)),l=(0,f.get)(s,"alignTick",!0),u=a==="x"?this.view.getYScales()[0]:this.view.getXScale();return s.items=ls(this.view.getCoordinate(),u,t,l,a),s}},r.prototype.getId=function(t,i){var n=this.view.getCoordinate();return"".concat(t,"-").concat(i,"-").concat(n.type)},r.prototype.getAnimateCfg=function(t){return{animate:this.view.getOptions().animate&&(0,f.get)(t,"animate"),animateOption:t&&t.animateOption?(0,f.deepMix)({},fh,t.animateOption):fh}},r}(pi),bw=Sw;function Lr(e,r,t){return t===T.TOP?[e.minX+e.width/2-r.width/2,e.minY]:t===T.BOTTOM?[e.minX+e.width/2-r.width/2,e.maxY-r.height]:t===T.LEFT?[e.minX,e.minY+e.height/2-r.height/2]:t===T.RIGHT?[e.maxX-r.width,e.minY+e.height/2-r.height/2]:t===T.TOP_LEFT||t===T.LEFT_TOP?[e.tl.x,e.tl.y]:t===T.TOP_RIGHT||t===T.RIGHT_TOP?[e.tr.x-r.width,e.tr.y]:t===T.BOTTOM_LEFT||t===T.LEFT_BOTTOM?[e.bl.x,e.bl.y-r.height]:t===T.BOTTOM_RIGHT||t===T.RIGHT_BOTTOM?[e.br.x-r.width,e.br.y-r.height]:[0,0]}function Cw(e,r){if(r.isTransposed)switch(e){case DIRECTION.BOTTOM:return DIRECTION.LEFT;case DIRECTION.LEFT:return DIRECTION.BOTTOM;case DIRECTION.RIGHT:return DIRECTION.TOP;case DIRECTION.TOP:return DIRECTION.RIGHT}return e}function vh(e){return e===DIRECTION.LEFT?DIRECTION.RIGHT:e===DIRECTION.RIGHT?DIRECTION.LEFT:e}function dh(e){return e===DIRECTION.TOP?DIRECTION.BOTTOM:e===DIRECTION.BOTTOM?DIRECTION.TOP:e}function Mw(e,r){var t=r.matrix[0],i=r.matrix[4],n=e;return t<0&&(n=vh(n)),i<0&&(n=dh(n)),n}function Aw(e,r){var t=e;return r.isReflect("x")&&(t=vh(t)),r.isReflect("y")&&(t=dh(t)),t}function JI(e,r){var t=e;return t=Cw(t,r),t=Mw(t,r),t=Aw(t,r),t}function gh(e,r){return(0,f.isBoolean)(e)?e===!1?!1:{}:(0,f.get)(e,[r],e)}function pa(e){return(0,f.get)(e,"position",T.BOTTOM)}var Fw=function(e){(0,g.__extends)(r,e);function r(t){var i=e.call(this,t)||this;return i.container=i.view.getLayer(tt.FORE).addGroup(),i}return Object.defineProperty(r.prototype,"name",{get:function(){return"legend"},enumerable:!1,configurable:!0}),r.prototype.init=function(){},r.prototype.render=function(){this.update()},r.prototype.layout=function(){var t=this;this.layoutBBox=this.view.viewBBox,(0,f.each)(this.components,function(i){var n=i.component,a=i.direction,o=Yo(a),s=n.get("maxWidthRatio"),l=n.get("maxHeightRatio"),u=t.getCategoryLegendSizeCfg(o,s,l),c=n.get("maxWidth"),h=n.get("maxHeight");n.update({maxWidth:Math.min(u.maxWidth,c||0),maxHeight:Math.min(u.maxHeight,h||0)});var v=n.get("padding"),d=n.getLayoutBBox(),p=new Ee(d.x,d.y,d.width,d.height).expand(v),y=(0,g.__read)(Lr(t.view.viewBBox,p,a),2),x=y[0],m=y[1],_=(0,g.__read)(Lr(t.layoutBBox,p,a),2),w=_[0],S=_[1],b=0,C=0;a.startsWith("top")||a.startsWith("bottom")?(b=x,C=S):(b=w,C=m),n.setLocation({x:b+v[3],y:C+v[0]}),t.layoutBBox=t.layoutBBox.cut(p,a)})},r.prototype.update=function(){var t=this;this.option=this.view.getOptions().legends;var i={},n=function(v,d,p){var y=t.getId(p.field),x=t.getComponentById(y);if(x){var m=void 0,_=gh(t.option,p.field);_!==!1&&((0,f.get)(_,"custom")?m=t.getCategoryCfg(v,d,p,_,!0):p.isLinear?m=t.getContinuousCfg(v,d,p,_):p.isCategory&&(m=t.getCategoryCfg(v,d,p,_))),m&&(Oe(m,["container"]),x.direction=pa(_),x.component.update(m),i[y]=!0)}else{var w=t.createFieldLegend(v,d,p);w&&(w.component.init(),t.components.push(w),i[y]=!0)}};if((0,f.get)(this.option,"custom")){var a="global-custom",o=this.getComponentById(a);if(o){var s=this.getCategoryCfg(void 0,void 0,void 0,this.option,!0);Oe(s,["container"]),o.component.update(s),i[a]=!0}else{var l=this.createCustomLegend(void 0,void 0,void 0,this.option);if(l){l.init();var u=tt.FORE,c=pa(this.option);this.components.push({id:a,component:l,layer:u,direction:c,type:N.LEGEND,extra:void 0}),i[a]=!0}}}else this.loopLegends(n);var h=[];(0,f.each)(this.getComponents(),function(v){i[v.id]?h.push(v):v.component.destroy()}),this.components=h},r.prototype.clear=function(){e.prototype.clear.call(this),this.container.clear()},r.prototype.destroy=function(){e.prototype.destroy.call(this),this.container.remove(!0)},r.prototype.getGeometries=function(t){var i=this,n=t.geometries;return(0,f.each)(t.views,function(a){n=n.concat(i.getGeometries(a))}),n},r.prototype.loopLegends=function(t){var i=this.view.getRootView()===this.view;if(!!i){var n=this.getGeometries(this.view),a={};(0,f.each)(n,function(o){var s=o.getGroupAttributes();(0,f.each)(s,function(l){var u=l.getScale(l.type);!u||u.type==="identity"||a[u.field]||(t(o,l,u),a[u.field]=!0)})})}},r.prototype.createFieldLegend=function(t,i,n){var a,o=gh(this.option,n.field),s=tt.FORE,l=pa(o);if(o!==!1&&((0,f.get)(o,"custom")?a=this.createCustomLegend(t,i,n,o):n.isLinear?a=this.createContinuousLegend(t,i,n,o):n.isCategory&&(a=this.createCategoryLegend(t,i,n,o))),a)return a.set("field",n.field),{id:this.getId(n.field),component:a,layer:s,direction:l,type:N.LEGEND,extra:{scale:n}}},r.prototype.createCustomLegend=function(t,i,n,a){var o=this.getCategoryCfg(t,i,n,a,!0);return new hu(o)},r.prototype.createContinuousLegend=function(t,i,n,a){var o=this.getContinuousCfg(t,i,n,Oe(a,["value"]));return new $y(o)},r.prototype.createCategoryLegend=function(t,i,n,a){var o=this.getCategoryCfg(t,i,n,a);return new hu(o)},r.prototype.getContinuousCfg=function(t,i,n,a){var o=n.getTicks(),s=(0,f.find)(o,function(y){return y.value===0}),l=(0,f.find)(o,function(y){return y.value===1}),u=o.map(function(y){var x=y.value,m=y.tickValue,_=i.mapping(n.invert(x)).join("");return{value:m,attrValue:_,color:_,scaleValue:x}});s||u.push({value:n.min,attrValue:i.mapping(n.invert(0)).join(""),color:i.mapping(n.invert(0)).join(""),scaleValue:0}),l||u.push({value:n.max,attrValue:i.mapping(n.invert(1)).join(""),color:i.mapping(n.invert(1)).join(""),scaleValue:1}),u.sort(function(y,x){return y.value-x.value});var c={min:(0,f.head)(u).value,max:(0,f.last)(u).value,colors:[],rail:{type:i.type},track:{}};i.type==="size"&&(c.track={style:{fill:i.type==="size"?this.view.getTheme().defaultColor:void 0}}),i.type==="color"&&(c.colors=u.map(function(y){return y.attrValue}));var h=this.container,v=pa(a),d=Yo(v),p=(0,f.get)(a,"title");return p&&(p=(0,f.deepMix)({text:$i(n)},p)),c.container=h,c.layout=d,c.title=p,c.animateOption=yi,this.mergeLegendCfg(c,a,"continuous")},r.prototype.getCategoryCfg=function(t,i,n,a,o){var s=this.container,l=(0,f.get)(a,"position",T.BOTTOM),u=Ec(this.view.getTheme(),l),c=(0,f.get)(u,["marker"]),h=(0,f.get)(a,"marker"),v=Yo(l),d=(0,f.get)(u,["pageNavigator"]),p=(0,f.get)(a,"pageNavigator"),y=o?nx(c,h,a.items):Fc(this.view,t,i,c,h),x=(0,f.get)(a,"title");x&&(x=(0,f.deepMix)({text:n?$i(n):""},x));var m=(0,f.get)(a,"maxWidthRatio"),_=(0,f.get)(a,"maxHeightRatio"),w=this.getCategoryLegendSizeCfg(v,m,_);w.container=s,w.layout=v,w.items=y,w.title=x,w.animateOption=yi,w.pageNavigator=(0,f.deepMix)({},d,p);var S=this.mergeLegendCfg(w,a,l);S.reversed&&S.items.reverse();var b=(0,f.get)(S,"maxItemWidth");return b&&b<=1&&(S.maxItemWidth=this.view.viewBBox.width*b),S},r.prototype.mergeLegendCfg=function(t,i,n){var a=n.split("-")[0],o=Ec(this.view.getTheme(),a);return(0,f.deepMix)({},o,t,i)},r.prototype.getId=function(t){return"".concat(this.name,"-").concat(t)},r.prototype.getComponentById=function(t){return(0,f.find)(this.components,function(i){return i.id===t})},r.prototype.getCategoryLegendSizeCfg=function(t,i,n){i===void 0&&(i=jt),n===void 0&&(n=jt);var a=this.view.viewBBox,o=a.width,s=a.height;return t==="vertical"?{maxWidth:o*i,maxHeight:s}:{maxWidth:o,maxHeight:s*n}},r}(pi),Ew=Fw,Tw=function(e){(0,g.__extends)(r,e);function r(t){var i=e.call(this,t)||this;return i.onChangeFn=f.noop,i.resetMeasure=function(){i.clear()},i.onValueChange=function(n){var a=(0,g.__read)(n,2),o=a[0],s=a[1];i.start=o,i.end=s,i.changeViewData(o,s)},i.container=i.view.getLayer(tt.FORE).addGroup(),i.onChangeFn=(0,f.throttle)(i.onValueChange,20,{leading:!0}),i.width=0,i.view.on(I.BEFORE_CHANGE_DATA,i.resetMeasure),i.view.on(I.BEFORE_CHANGE_SIZE,i.resetMeasure),i}return Object.defineProperty(r.prototype,"name",{get:function(){return"slider"},enumerable:!1,configurable:!0}),r.prototype.destroy=function(){e.prototype.destroy.call(this),this.view.off(I.BEFORE_CHANGE_DATA,this.resetMeasure),this.view.off(I.BEFORE_CHANGE_SIZE,this.resetMeasure)},r.prototype.init=function(){},r.prototype.render=function(){this.option=this.view.getOptions().slider;var t=this.getSliderCfg(),i=t.start,n=t.end;(0,f.isNil)(this.start)&&(this.start=i,this.end=n);var a=this.view.getOptions().data;this.option&&!(0,f.isEmpty)(a)?this.slider?this.slider=this.updateSlider():(this.slider=this.createSlider(),this.slider.component.on("sliderchange",this.onChangeFn)):this.slider&&(this.slider.component.destroy(),this.slider=void 0)},r.prototype.layout=function(){var t=this;if(this.option&&!this.width&&(this.measureSlider(),setTimeout(function(){t.view.destroyed||t.changeViewData(t.start,t.end)},0)),this.slider){var i=this.view.coordinateBBox.width,n=this.slider.component.get("padding"),a=(0,g.__read)(n,4),o=a[0],s=a[1],l=a[2],u=a[3],c=this.slider.component.getLayoutBBox(),h=new Ee(c.x,c.y,Math.min(c.width,i),c.height).expand(n),v=this.getMinMaxText(this.start,this.end),d=v.minText,p=v.maxText,y=(0,g.__read)(Lr(this.view.viewBBox,h,T.BOTTOM),2),x=y[0],m=y[1],_=(0,g.__read)(Lr(this.view.coordinateBBox,h,T.BOTTOM),2),w=_[0],S=_[1];this.slider.component.update((0,g.__assign)((0,g.__assign)({},this.getSliderCfg()),{x:w+u,y:m+o,width:this.width,start:this.start,end:this.end,minText:d,maxText:p})),this.view.viewBBox=this.view.viewBBox.cut(h,T.BOTTOM)}},r.prototype.update=function(){this.render()},r.prototype.createSlider=function(){var t=this.getSliderCfg(),i=new Yy((0,g.__assign)({container:this.container},t));return i.init(),{component:i,layer:tt.FORE,direction:T.BOTTOM,type:N.SLIDER}},r.prototype.updateSlider=function(){var t=this.getSliderCfg();if(this.width){var i=this.getMinMaxText(this.start,this.end),n=i.minText,a=i.maxText;t=(0,g.__assign)((0,g.__assign)({},t),{width:this.width,start:this.start,end:this.end,minText:n,maxText:a})}return this.slider.component.update(t),this.slider},r.prototype.measureSlider=function(){var t=this.getSliderCfg().width;this.width=t},r.prototype.getSliderCfg=function(){var t={height:16,start:0,end:1,minText:"",maxText:"",x:0,y:0,width:this.view.coordinateBBox.width};if((0,f.isObject)(this.option)){var i=(0,g.__assign)({data:this.getData()},(0,f.get)(this.option,"trendCfg",{}));t=(0,f.deepMix)({},t,this.getThemeOptions(),this.option),t=(0,g.__assign)((0,g.__assign)({},t),{trendCfg:i})}return t.start=(0,f.clamp)(Math.min((0,f.isNil)(t.start)?0:t.start,(0,f.isNil)(t.end)?1:t.end),0,1),t.end=(0,f.clamp)(Math.max((0,f.isNil)(t.start)?0:t.start,(0,f.isNil)(t.end)?1:t.end),0,1),t},r.prototype.getData=function(){var t=this.view.getOptions().data,i=(0,g.__read)(this.view.getYScales(),1),n=i[0],a=this.view.getGroupScales();if(a.length){var o=a[0],s=o.field,l=o.ticks;return t.reduce(function(u,c){return c[s]===l[0]&&u.push(c[n.field]),u},[])}return t.map(function(u){return u[n.field]||0})},r.prototype.getThemeOptions=function(){var t=this.view.getTheme();return(0,f.get)(t,["components","slider","common"],{})},r.prototype.getMinMaxText=function(t,i){var n=this.view.getOptions().data,a=this.view.getXScale(),o=!0,s=(0,f.valuesOfKey)(n,a.field);a.isLinear&&(s=s.sort());var l=o?s:s.reverse(),u=(0,f.size)(n);if(!a||!u)return{};var c=(0,f.size)(l),h=Math.round(t*(c-1)),v=Math.round(i*(c-1)),d=(0,f.get)(l,[h]),p=(0,f.get)(l,[v]),y=this.getSliderCfg().formatter;return y&&(d=y(d,n[h],h),p=y(p,n[v],v)),{minText:d,maxText:p}},r.prototype.changeViewData=function(t,i){var n=this.view.getOptions().data,a=this.view.getXScale(),o=(0,f.size)(n);if(!(!a||!o)){var s=!0,l=(0,f.valuesOfKey)(n,a.field),u=this.view.getXScale().isLinear?l.sort(function(p,y){return Number(p)-Number(y)}):l,c=s?u:u.reverse(),h=(0,f.size)(c),v=Math.round(t*(h-1)),d=Math.round(i*(h-1));this.view.filter(a.field,function(p,y){var x=c.indexOf(p);return x>-1?ci(x,v,d):!0}),this.view.render(!0)}},r.prototype.getComponents=function(){return this.slider?[this.slider]:[]},r.prototype.clear=function(){this.slider&&(this.slider.component.destroy(),this.slider=void 0),this.width=0,this.start=void 0,this.end=void 0},r}(pi),Lw=Tw,ya=0,ph=8,Iw=32,Ow=20,Pw=function(e){(0,g.__extends)(r,e);function r(t){var i=e.call(this,t)||this;return i.onChangeFn=f.noop,i.resetMeasure=function(){i.clear()},i.onValueChange=function(n){var a=n.ratio,o=i.getValidScrollbarCfg().animate;i.ratio=(0,f.clamp)(a,0,1);var s=i.view.getOptions().animate;o||i.view.animate(!1),i.changeViewData(i.getScrollRange(),!0),i.view.animate(s)},i.container=i.view.getLayer(tt.FORE).addGroup(),i.onChangeFn=(0,f.throttle)(i.onValueChange,20,{leading:!0}),i.trackLen=0,i.thumbLen=0,i.ratio=0,i.view.on(I.BEFORE_CHANGE_DATA,i.resetMeasure),i.view.on(I.BEFORE_CHANGE_SIZE,i.resetMeasure),i}return Object.defineProperty(r.prototype,"name",{get:function(){return"scrollbar"},enumerable:!1,configurable:!0}),r.prototype.destroy=function(){e.prototype.destroy.call(this),this.view.off(I.BEFORE_CHANGE_DATA,this.resetMeasure),this.view.off(I.BEFORE_CHANGE_SIZE,this.resetMeasure)},r.prototype.init=function(){},r.prototype.render=function(){this.option=this.view.getOptions().scrollbar,this.option?this.scrollbar?this.scrollbar=this.updateScrollbar():(this.scrollbar=this.createScrollbar(),this.scrollbar.component.on("scrollchange",this.onChangeFn)):this.scrollbar&&(this.scrollbar.component.destroy(),this.scrollbar=void 0)},r.prototype.layout=function(){var t=this;if(this.option&&!this.trackLen&&(this.measureScrollbar(),setTimeout(function(){t.view.destroyed||t.changeViewData(t.getScrollRange(),!0)})),this.scrollbar){var i=this.view.coordinateBBox.width,n=this.scrollbar.component.get("padding"),a=this.scrollbar.component.getLayoutBBox(),o=new Ee(a.x,a.y,Math.min(a.width,i),a.height).expand(n),s=this.getScrollbarComponentCfg(),l=void 0,u=void 0;if(s.isHorizontal){var c=(0,g.__read)(Lr(this.view.viewBBox,o,T.BOTTOM),2),h=c[0],v=c[1],d=(0,g.__read)(Lr(this.view.coordinateBBox,o,T.BOTTOM),2),p=d[0],y=d[1];l=p,u=v}else{var x=(0,g.__read)(Lr(this.view.viewBBox,o,T.RIGHT),2),h=x[0],v=x[1],m=(0,g.__read)(Lr(this.view.viewBBox,o,T.RIGHT),2),p=m[0],y=m[1];l=p,u=v}l+=n[3],u+=n[0],this.trackLen?this.scrollbar.component.update((0,g.__assign)((0,g.__assign)({},s),{x:l,y:u,trackLen:this.trackLen,thumbLen:this.thumbLen,thumbOffset:(this.trackLen-this.thumbLen)*this.ratio})):this.scrollbar.component.update((0,g.__assign)((0,g.__assign)({},s),{x:l,y:u})),this.view.viewBBox=this.view.viewBBox.cut(o,s.isHorizontal?T.BOTTOM:T.RIGHT)}},r.prototype.update=function(){this.render()},r.prototype.getComponents=function(){return this.scrollbar?[this.scrollbar]:[]},r.prototype.clear=function(){this.scrollbar&&(this.scrollbar.component.destroy(),this.scrollbar=void 0),this.trackLen=0,this.thumbLen=0,this.ratio=0,this.cnt=0,this.step=0,this.data=void 0,this.xScaleCfg=void 0,this.yScalesCfg=[]},r.prototype.setValue=function(t){this.onValueChange({ratio:t})},r.prototype.getValue=function(){return this.ratio},r.prototype.getThemeOptions=function(){var t=this.view.getTheme();return(0,f.get)(t,["components","scrollbar","common"],{})},r.prototype.getScrollbarTheme=function(t){var i=(0,f.get)(this.view.getTheme(),["components","scrollbar"]),n=t||{},a=n.thumbHighlightColor,o=(0,g.__rest)(n,["thumbHighlightColor"]);return{default:(0,f.deepMix)({},(0,f.get)(i,["default","style"],{}),o),hover:(0,f.deepMix)({},(0,f.get)(i,["hover","style"],{}),{thumbColor:a})}},r.prototype.measureScrollbar=function(){var t=this.view.getXScale(),i=this.view.getYScales().slice();this.data=this.getScrollbarData(),this.step=this.getStep(),this.cnt=this.getCnt();var n=this.getScrollbarComponentCfg(),a=n.trackLen,o=n.thumbLen;this.trackLen=a,this.thumbLen=o,this.xScaleCfg={field:t.field,values:t.values||[]},this.yScalesCfg=i},r.prototype.getScrollRange=function(){var t=Math.floor((this.cnt-this.step)*(0,f.clamp)(this.ratio,0,1)),i=Math.min(t+this.step-1,this.cnt-1);return[t,i]},r.prototype.changeViewData=function(t,i){var n=this,a=(0,g.__read)(t,2),o=a[0],s=a[1],l=this.getValidScrollbarCfg().type,u=l!=="vertical",c=(0,f.valuesOfKey)(this.data,this.xScaleCfg.field),h=this.view.getXScale().isLinear?c.sort(function(d,p){return Number(d)-Number(p)}):c,v=u?h:h.reverse();this.yScalesCfg.forEach(function(d){n.view.scale(d.field,{formatter:d.formatter,type:d.type,min:d.min,max:d.max,tickMethod:d.tickMethod})}),this.view.filter(this.xScaleCfg.field,function(d){var p=v.indexOf(d);return p>-1?ci(p,o,s):!0}),this.view.render(!0)},r.prototype.createScrollbar=function(){var t=this.getValidScrollbarCfg().type,i=t!=="vertical",n=new Uy((0,g.__assign)((0,g.__assign)({container:this.container},this.getScrollbarComponentCfg()),{x:0,y:0}));return n.init(),{component:n,layer:tt.FORE,direction:i?T.BOTTOM:T.RIGHT,type:N.SCROLLBAR}},r.prototype.updateScrollbar=function(){var t=this.getScrollbarComponentCfg(),i=this.trackLen?(0,g.__assign)((0,g.__assign)({},t),{trackLen:this.trackLen,thumbLen:this.thumbLen,thumbOffset:(this.trackLen-this.thumbLen)*this.ratio}):(0,g.__assign)({},t);return this.scrollbar.component.update(i),this.scrollbar},r.prototype.getStep=function(){if(this.step)return this.step;var t=this.view.coordinateBBox,i=this.getValidScrollbarCfg(),n=i.type,a=i.categorySize,o=n!=="vertical";return Math.floor((o?t.width:t.height)/a)},r.prototype.getCnt=function(){if(this.cnt)return this.cnt;var t=this.view.getXScale(),i=this.getScrollbarData(),n=(0,f.valuesOfKey)(i,t.field);return(0,f.size)(n)},r.prototype.getScrollbarComponentCfg=function(){var t=this.view,i=t.coordinateBBox,n=t.viewBBox,a=this.getValidScrollbarCfg(),o=a.type,s=a.padding,l=a.width,u=a.height,c=a.style,h=o!=="vertical",v=(0,g.__read)(s,4),d=v[0],p=v[1],y=v[2],x=v[3],m=h?{x:i.minX+x,y:n.maxY-u-y}:{x:n.maxX-l-p,y:i.minY+d},_=this.getStep(),w=this.getCnt(),S=h?i.width-x-p:i.height-d-y,b=Math.max(S*(0,f.clamp)(_/w,0,1),Ow);return(0,g.__assign)((0,g.__assign)({},this.getThemeOptions()),{x:m.x,y:m.y,size:h?u:l,isHorizontal:h,trackLen:S,thumbLen:b,thumbOffset:0,theme:this.getScrollbarTheme(c)})},r.prototype.getValidScrollbarCfg=function(){var t={type:"horizontal",categorySize:Iw,width:ph,height:ph,padding:[0,0,0,0],animate:!0,style:{}};return(0,f.isObject)(this.option)&&(t=(0,g.__assign)((0,g.__assign)({},t),this.option)),(!(0,f.isObject)(this.option)||!this.option.padding)&&(t.padding=t.type==="horizontal"?[ya,0,ya,0]:[0,ya,0,ya]),t},r.prototype.getScrollbarData=function(){var t=this.view.getCoordinate(),i=this.getValidScrollbarCfg(),n=this.view.getOptions().data||[];return t.isReflect("y")&&i.type==="vertical"&&(n=(0,g.__spreadArray)([],(0,g.__read)(n),!1).reverse()),n},r}(pi),kw=Pw,Dw={fill:"#CCD6EC",opacity:.3};function Bw(e,r,t){var i,n,a,o,s,l,u=Sm(e,r,t);if(u.length){u=(0,f.flatten)(u);try{for(var c=(0,g.__values)(u),h=c.next();!h.done;h=c.next()){var v=h.value;try{for(var d=(a=void 0,(0,g.__values)(v)),p=d.next();!p.done;p=d.next()){var y=p.value,x=y.mappingData,m=x.x,_=x.y;y.x=(0,f.isArray)(m)?m[m.length-1]:m,y.y=(0,f.isArray)(_)?_[_.length-1]:_}}catch(E){a={error:E}}finally{try{p&&!p.done&&(o=d.return)&&o.call(d)}finally{if(a)throw a.error}}}}catch(E){i={error:E}}finally{try{h&&!h.done&&(n=c.return)&&n.call(c)}finally{if(i)throw i.error}}var w=t.shared;if(w===!1&&u.length>1){var S=u[0],b=Math.abs(r.y-S[0].y);try{for(var C=(0,g.__values)(u),M=C.next();!M.done;M=C.next()){var A=M.value,O=Math.abs(r.y-A[0].y);O<=b&&(S=A,b=O)}}catch(E){s={error:E}}finally{try{M&&!M.done&&(l=C.return)&&l.call(C)}finally{if(s)throw s.error}}u=[S]}return(0,f.uniq)((0,f.flatten)(u))}return[]}var Rw=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.show=function(t){var i=this.context.view,n=this.context.event,a=i.getController("tooltip").getTooltipCfg(),o=Bw(i,{x:n.x,y:n.y},a);if(!(0,f.isEqual)(o,this.items)&&(this.items=o,o.length)){var s=i.getXScale().field,l=o[0].data[s],u=[],c=i.geometries;if((0,f.each)(c,function(ft){if(ft.type==="interval"||ft.type==="schema"){var nt=ft.getElementsBy(function(dt){var St=dt.getData();return St[s]===l});u=u.concat(nt)}}),u.length){var h=i.getCoordinate(),v=u[0].shape.getCanvasBBox(),d=u[0].shape.getCanvasBBox(),p=v;(0,f.each)(u,function(ft){var nt=ft.shape.getCanvasBBox();h.isTransposed?(nt.minYd.maxY&&(d=nt)):(nt.minXd.maxX&&(d=nt)),p.x=Math.min(nt.minX,p.minX),p.y=Math.min(nt.minY,p.minY),p.width=Math.max(nt.maxX,p.maxX)-p.x,p.height=Math.max(nt.maxY,p.maxY)-p.y});var y=i.backgroundGroup,x=i.coordinateBBox,m=void 0;if(h.isRect){var _=i.getXScale(),w=t||{},S=w.appendRatio,b=w.appendWidth;(0,f.isNil)(b)&&(S=(0,f.isNil)(S)?_.isLinear?0:.25:S,b=h.isTransposed?S*d.height:S*v.width);var C=void 0,M=void 0,A=void 0,O=void 0;h.isTransposed?(C=x.minX,M=Math.min(d.minY,v.minY)-b,A=x.width,O=p.height+b*2):(C=Math.min(v.minX,d.minX)-b,M=x.minY,A=p.width+b*2,O=x.height),m=[["M",C,M],["L",C+A,M],["L",C+A,M+O],["L",C,M+O],["Z"]]}else{var E=(0,f.head)(u),z=(0,f.last)(u),X=ji(E.getModel(),h).startAngle,lt=ji(z.getModel(),h).endAngle,pt=h.getCenter(),At=h.getRadius(),V=h.innerRadius*At;m=wr(pt.x,pt.y,At,X,lt,V)}if(this.regionPath)this.regionPath.attr("path",m),this.regionPath.show();else{var K=(0,f.get)(t,"style",Dw);this.regionPath=y.addShape({type:"path",name:"active-region",capture:!1,attrs:(0,g.__assign)((0,g.__assign)({},K),{path:m})})}}}},r.prototype.hide=function(){this.regionPath&&this.regionPath.hide(),this.items=null},r.prototype.destroy=function(){this.hide(),this.regionPath&&this.regionPath.remove(!0),e.prototype.destroy.call(this)},r}(ne),Nw=Rw,zw=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.timeStamp=0,t}return r.prototype.show=function(){var t=this.context,i=t.event,n=t.view,a=n.isTooltipLocked();if(!a){var o=this.timeStamp,s=+new Date,l=(0,f.get)(t.view.getOptions(),"tooltip.showDelay",16);if(s-o>l){var u=this.location,c={x:i.x,y:i.y};(!u||!(0,f.isEqual)(u,c))&&this.showTooltip(n,c),this.timeStamp=s,this.location=c}}},r.prototype.hide=function(){var t=this.context.view,i=t.getController("tooltip"),n=this.context.event,a=n.clientX,o=n.clientY;i.isCursorEntered({x:a,y:o})||t.isTooltipLocked()||(this.hideTooltip(t),this.location=null)},r.prototype.showTooltip=function(t,i){t.showTooltip(i)},r.prototype.hideTooltip=function(t){t.hideTooltip()},r}(ne),yh=zw,Vw=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.showTooltip=function(t,i){var n=Qe(t);(0,f.each)(n,function(a){var o=Do(t,a,i);a.showTooltip(o)})},r.prototype.hideTooltip=function(t){var i=Qe(t);(0,f.each)(i,function(n){n.hideTooltip()})},r}(yh),Gw=Vw,Ww=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.timeStamp=0,t}return r.prototype.destroy=function(){e.prototype.destroy.call(this),this.tooltip&&this.tooltip.destroy()},r.prototype.show=function(){var t=this.context,i=t.event,n=this.timeStamp,a=+new Date;if(a-n>16){var o=this.location,s={x:i.x,y:i.y};(!o||!(0,f.isEqual)(o,s))&&this.showTooltip(s),this.timeStamp=a,this.location=s}},r.prototype.hide=function(){this.hideTooltip(),this.location=null},r.prototype.showTooltip=function(t){var i=this.context,n=i.event,a=n.target;if(a&&a.get("tip")){this.tooltip||this.renderTooltip();var o=a.get("tip");this.tooltip.update((0,g.__assign)({title:o},t)),this.tooltip.show()}},r.prototype.hideTooltip=function(){this.tooltip&&this.tooltip.hide()},r.prototype.renderTooltip=function(){var t,i=this.context.view,n=i.canvas,a={start:{x:0,y:0},end:{x:n.get("width"),y:n.get("height")}},o=i.getTheme(),s=(0,f.get)(o,["components","tooltip","domStyles"],{}),l=new Xn({parent:n.get("el").parentNode,region:a,visible:!1,crosshairs:null,domStyles:(0,g.__assign)({},(0,f.deepMix)({},s,(t={},t[sr]={"max-width":"50%"},t[lr]={"word-break":"break-all"},t)))});l.init(),l.setCapture(!1),this.tooltip=l},r}(ne),Hw=Ww,Yw=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.stateName="",t}return r.prototype.hasState=function(t){return t.hasState(this.stateName)},r.prototype.setElementState=function(t,i){t.setState(this.stateName,i)},r.prototype.setState=function(){this.setStateEnable(!0)},r.prototype.clear=function(){var t=this.context.view;this.clearViewState(t)},r.prototype.clearViewState=function(t){var i=this,n=qu(t,this.stateName);(0,f.each)(n,function(a){i.setElementState(a,!1)})},r}(ne),us=Yw;function mh(e){return(0,f.get)(e.get("delegateObject"),"item")}var Xw=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.ignoreListItemStates=["unchecked"],t}return r.prototype.isItemIgnore=function(t,i){var n=this.ignoreListItemStates,a=n.filter(function(o){return i.hasState(t,o)});return!!a.length},r.prototype.setStateByComponent=function(t,i,n){var a=this.context.view,o=t.get("field"),s=Ce(a);this.setElementsStateByItem(s,o,i,n)},r.prototype.setStateByElement=function(t,i){this.setElementState(t,i)},r.prototype.isMathItem=function(t,i,n){var a=this.context.view,o=di(a,i),s=Ze(t,i);return!(0,f.isNil)(s)&&n.name===o.getText(s)},r.prototype.setElementsStateByItem=function(t,i,n,a){var o=this;(0,f.each)(t,function(s){o.isMathItem(s,i,n)&&s.setState(o.stateName,a)})},r.prototype.setStateEnable=function(t){var i=Cr(this.context);if(i)Yu(this.context)&&this.setStateByElement(i,t);else{var n=Gr(this.context);if(en(n)){var a=n.item,o=n.component;if(a&&o&&!this.isItemIgnore(a,o)){var s=this.context.event.gEvent;if(s&&s.fromShape&&s.toShape&&mh(s.fromShape)===mh(s.toShape))return;this.setStateByComponent(o,a,t)}}}},r.prototype.toggle=function(){var t=Cr(this.context);if(t){var i=t.hasState(this.stateName);this.setElementState(t,!i)}},r.prototype.reset=function(){this.setStateEnable(!1)},r}(us),cs=Xw,Uw=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.stateName="active",t}return r.prototype.active=function(){this.setState()},r}(cs),Zw=Uw,qw=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.cache={},t}return r.prototype.getColorScale=function(t,i){var n=i.geometry.getAttribute("color");if(!n)return null;var a=t.getScaleByField(n.getFields()[0]);return a},r.prototype.getLinkPath=function(t,i){var n=this.context.view,a=n.getCoordinate().isTransposed,o=t.shape.getCanvasBBox(),s=i.shape.getCanvasBBox(),l=a?[["M",o.minX,o.minY],["L",s.minX,s.maxY],["L",s.maxX,s.maxY],["L",o.maxX,o.minY],["Z"]]:[["M",o.maxX,o.minY],["L",s.minX,s.minY],["L",s.minX,s.maxY],["L",o.maxX,o.maxY],["Z"]];return l},r.prototype.addLinkShape=function(t,i,n,a){var o={opacity:.4,fill:i.shape.attr("fill")};t.addShape({type:"path",attrs:(0,g.__assign)((0,g.__assign)({},(0,f.deepMix)({},o,(0,f.isFunction)(a)?a(o,i):a)),{path:this.getLinkPath(i,n)})})},r.prototype.linkByElement=function(t,i){var n=this,a=this.context.view,o=this.getColorScale(a,t);if(!!o){var s=Ze(t,o.field);if(!this.cache[s]){var l=$0(a,o.field,s),u=this.linkGroup,c=u.addGroup();this.cache[s]=c;var h=l.length;(0,f.each)(l,function(v,d){if(d=0},i)},r}(hs),_h=sS,lS=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.stateName="active",t}return r.prototype.highlight=function(){this.setState()},r.prototype.setElementState=function(t,i){var n=this.context.view,a=Ce(n);xh(a,function(o){return t===o},i)},r.prototype.clear=function(){var t=this.context.view;vs(t)},r}(fs),uS=lS,cS=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.stateName="selected",t}return r.prototype.selected=function(){this.setState()},r}(hs),hS=cS,fS=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.stateName="selected",t}return r.prototype.selected=function(){this.setState()},r}(cs),vS=fS,dS=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.stateName="selected",t}return r.prototype.selected=function(){this.setState()},r}(fs),gS=dS,pS=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.stateName="",t.ignoreItemStates=[],t}return r.prototype.getTriggerListInfo=function(){var t=Gr(this.context),i=null;return en(t)&&(i={item:t.item,list:t.component}),i},r.prototype.getAllowComponents=function(){var t=this,i=this.context.view,n=$u(i),a=[];return(0,f.each)(n,function(o){o.isList()&&t.allowSetStateByElement(o)&&a.push(o)}),a},r.prototype.hasState=function(t,i){return t.hasState(i,this.stateName)},r.prototype.clearAllComponentsState=function(){var t=this,i=this.getAllowComponents();(0,f.each)(i,function(n){n.clearItemsState(t.stateName)})},r.prototype.allowSetStateByElement=function(t){var i=t.get("field");if(!i)return!1;if(this.cfg&&this.cfg.componentNames){var n=t.get("name");if(this.cfg.componentNames.indexOf(n)===-1)return!1}var a=this.context.view,o=di(a,i);return o&&o.isCategory},r.prototype.allowSetStateByItem=function(t,i){var n=this.ignoreItemStates;if(n.length){var a=n.filter(function(o){return i.hasState(t,o)});return a.length===0}return!0},r.prototype.setStateByElement=function(t,i,n){var a=t.get("field"),o=this.context.view,s=di(o,a),l=Ze(i,a),u=s.getText(l);this.setItemsState(t,u,n)},r.prototype.setStateEnable=function(t){var i=this,n=Cr(this.context);if(n){var a=this.getAllowComponents();(0,f.each)(a,function(u){i.setStateByElement(u,n,t)})}else{var o=Gr(this.context);if(en(o)){var s=o.item,l=o.component;this.allowSetStateByElement(l)&&this.allowSetStateByItem(s,l)&&this.setItemState(l,s,t)}}},r.prototype.setItemsState=function(t,i,n){var a=this,o=t.getItems();(0,f.each)(o,function(s){s.name===i&&a.setItemState(t,s,n)})},r.prototype.setItemState=function(t,i,n){t.setItemState(i,this.stateName,n)},r.prototype.setState=function(){this.setStateEnable(!0)},r.prototype.reset=function(){this.setStateEnable(!1)},r.prototype.toggle=function(){var t=this.getTriggerListInfo();if(t&&t.item){var i=t.list,n=t.item,a=this.hasState(i,n);this.setItemState(i,n,!a)}},r.prototype.clear=function(){var t=this.getTriggerListInfo();t?t.list.clearItemsState(this.stateName):this.clearAllComponentsState()},r}(ne),Xr=pS,yS=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.stateName="active",t}return r.prototype.active=function(){this.setState()},r}(Xr),mS=yS,wh="inactive",Sh="active";function xS(e){var r=e.getItems();(0,f.each)(r,function(t){e.hasState(t,Sh)&&e.setItemState(t,Sh,!1),e.hasState(t,wh)&&e.setItemState(t,wh,!1)})}var hn="inactive",Ur="active",_S=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.stateName=Ur,t.ignoreItemStates=["unchecked"],t}return r.prototype.setItemsState=function(t,i,n){this.setHighlightBy(t,function(a){return a.name===i},n)},r.prototype.setItemState=function(t,i,n){var a=t.getItems();this.setHighlightBy(t,function(o){return o===i},n)},r.prototype.setHighlightBy=function(t,i,n){var a=t.getItems();if(n)(0,f.each)(a,function(l){i(l)?(t.hasState(l,hn)&&t.setItemState(l,hn,!1),t.setItemState(l,Ur,!0)):t.hasState(l,Ur)||t.setItemState(l,hn,!0)});else{var o=t.getItemsByState(Ur),s=!0;(0,f.each)(o,function(l){if(!i(l))return s=!1,!1}),s?this.clear():(0,f.each)(a,function(l){i(l)&&(t.hasState(l,Ur)&&t.setItemState(l,Ur,!1),t.setItemState(l,hn,!0))})}},r.prototype.highlight=function(){this.setState()},r.prototype.clear=function(){var t=this.getTriggerListInfo();if(t)xS(t.list);else{var i=this.getAllowComponents();(0,f.each)(i,function(n){n.clearItemsState(Ur),n.clearItemsState(hn)})}},r}(Xr),gs=_S,wS=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.stateName="selected",t}return r.prototype.selected=function(){this.setState()},r}(Xr),SS=wS,bS=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.stateName="unchecked",t}return r.prototype.unchecked=function(){this.setState()},r}(Xr),CS=bS,xi="unchecked",ma="checked",MS=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.stateName=ma,t}return r.prototype.setItemState=function(t,i,n){this.setCheckedBy(t,function(a){return a===i},n)},r.prototype.setCheckedBy=function(t,i,n){var a=t.getItems();n&&(0,f.each)(a,function(o){i(o)?(t.hasState(o,xi)&&t.setItemState(o,xi,!1),t.setItemState(o,ma,!0)):t.hasState(o,ma)||t.setItemState(o,xi,!0)})},r.prototype.toggle=function(){var t=this.getTriggerListInfo();if(t&&t.item){var i=t.list,n=t.item,a=!(0,f.some)(i.getItems(),function(o){return i.hasState(o,xi)});a||i.hasState(n,xi)?this.setItemState(i,n,!0):this.reset()}},r.prototype.checked=function(){this.setState()},r.prototype.reset=function(){var t=this.getAllowComponents();(0,f.each)(t,function(i){i.clearItemsState(ma),i.clearItemsState(xi)})},r}(Xr),AS=MS,_i="unchecked",FS=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.toggle=function(){var t,i,n,a,o,s,l,u,c=this.getTriggerListInfo();if(c==null?void 0:c.item){var h=c.list,v=c.item,d=h.getItems(),p=d.filter(function(E){return!h.hasState(E,_i)}),y=d.filter(function(E){return h.hasState(E,_i)}),x=p[0];if(d.length===p.length)try{for(var m=(0,g.__values)(d),_=m.next();!_.done;_=m.next()){var w=_.value;h.setItemState(w,_i,w.id!==v.id)}}catch(E){t={error:E}}finally{try{_&&!_.done&&(i=m.return)&&i.call(m)}finally{if(t)throw t.error}}else if(d.length-y.length==1)if(x.id===v.id)try{for(var S=(0,g.__values)(d),b=S.next();!b.done;b=S.next()){var w=b.value;h.setItemState(w,_i,!1)}}catch(E){n={error:E}}finally{try{b&&!b.done&&(a=S.return)&&a.call(S)}finally{if(n)throw n.error}}else try{for(var C=(0,g.__values)(d),M=C.next();!M.done;M=C.next()){var w=M.value;h.setItemState(w,_i,w.id!==v.id)}}catch(E){o={error:E}}finally{try{M&&!M.done&&(s=C.return)&&s.call(C)}finally{if(o)throw o.error}}else try{for(var A=(0,g.__values)(d),O=A.next();!O.done;O=A.next()){var w=O.value;h.setItemState(w,_i,w.id!==v.id)}}catch(E){l={error:E}}finally{try{O&&!O.done&&(u=A.return)&&u.call(A)}finally{if(l)throw l.error}}}},r}(Xr),ES=FS,bh="showRadio",ps="legend-radio-tip",TS=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.timeStamp=0,t}return r.prototype.show=function(){var t=this.getTriggerListInfo();if(t==null?void 0:t.item){var i=t.list,n=t.item;i.setItemState(n,bh,!0)}},r.prototype.hide=function(){var t=this.getTriggerListInfo();if(t==null?void 0:t.item){var i=t.list,n=t.item;i.setItemState(n,bh,!1)}},r.prototype.destroy=function(){e.prototype.destroy.call(this),this.tooltip&&this.tooltip.destroy()},r.prototype.showTip=function(){var t=this.context,i=t.event,n=this.timeStamp,a=+new Date,o=this.context.event.target;if(a-n>16&&o.get("name")==="legend-item-radio"){var s=this.location,l={x:i.x,y:i.y};this.timeStamp=a,this.location=l,(!s||!(0,f.isEqual)(s,l))&&this.showTooltip(l)}},r.prototype.hideTip=function(){this.hideTooltip(),this.location=null},r.prototype.showTooltip=function(t){var i=this.context,n=i.event,a=n.target;if(a&&a.get("tip")){this.tooltip||this.renderTooltip();var o=i.view.getCanvas().get("el").getBoundingClientRect(),s=o.x,l=o.y;this.tooltip.update((0,g.__assign)((0,g.__assign)({title:a.get("tip")},t),{x:t.x+s,y:t.y+l})),this.tooltip.show()}},r.prototype.hideTooltip=function(){this.tooltip&&this.tooltip.hide()},r.prototype.renderTooltip=function(){var t,i=(t={},t[sr]={padding:"6px 8px",transform:"translate(-50%, -80%)",background:"rgba(0,0,0,0.75)",color:"#fff","border-radius":"2px","z-index":100},t[lr]={"font-size":"12px","line-height":"14px","margin-bottom":0,"word-break":"break-all"},t);document.getElementById(ps)&&document.body.removeChild(document.getElementById(ps));var n=new Xn({parent:document.body,region:null,visible:!1,crosshairs:null,domStyles:i,containerId:ps});n.init(),n.setCapture(!1),this.tooltip=n},r}(Xr),LS=TS,IS=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.maskShape=null,t.points=[],t.starting=!1,t.moving=!1,t.preMovePoint=null,t.shapeType="path",t}return r.prototype.getCurrentPoint=function(){var t=this.context.event;return{x:t.x,y:t.y}},r.prototype.emitEvent=function(t){var i="mask:".concat(t),n=this.context.view,a=this.context.event;n.emit(i,{target:this.maskShape,shape:this.maskShape,points:this.points,x:a.x,y:a.y})},r.prototype.createMask=function(){var t=this.context.view,i=this.getMaskAttrs(),n=t.foregroundGroup.addShape({type:this.shapeType,name:"mask",draggable:!0,attrs:(0,g.__assign)({fill:"#C5D4EB",opacity:.3},i)});return n},r.prototype.getMaskPath=function(){return[]},r.prototype.show=function(){this.maskShape&&(this.maskShape.show(),this.emitEvent("show"))},r.prototype.start=function(t){this.starting=!0,this.moving=!1,this.points=[this.getCurrentPoint()],this.maskShape||(this.maskShape=this.createMask(),this.maskShape.set("capture",!1)),this.updateMask(t==null?void 0:t.maskStyle),this.emitEvent("start")},r.prototype.moveStart=function(){this.moving=!0,this.preMovePoint=this.getCurrentPoint()},r.prototype.move=function(){if(!(!this.moving||!this.maskShape)){var t=this.getCurrentPoint(),i=this.preMovePoint,n=t.x-i.x,a=t.y-i.y,o=this.points;(0,f.each)(o,function(s){s.x+=n,s.y+=a}),this.updateMask(),this.emitEvent("change"),this.preMovePoint=t}},r.prototype.updateMask=function(t){var i=(0,f.deepMix)({},this.getMaskAttrs(),t);this.maskShape.attr(i)},r.prototype.moveEnd=function(){this.moving=!1,this.preMovePoint=null},r.prototype.end=function(){this.starting=!1,this.emitEvent("end"),this.maskShape&&this.maskShape.set("capture",!0)},r.prototype.hide=function(){this.maskShape&&(this.maskShape.hide(),this.emitEvent("hide"))},r.prototype.resize=function(){this.starting&&this.maskShape&&(this.points.push(this.getCurrentPoint()),this.updateMask(),this.emitEvent("change"))},r.prototype.destroy=function(){this.points=[],this.maskShape&&this.maskShape.remove(),this.maskShape=null,this.preMovePoint=null,e.prototype.destroy.call(this)},r}(ne),ys=IS;function Ch(e){var r=(0,f.last)(e),t=0,i=0,n=0;if(e.length){var a=e[0];t=ko(a,r)/2,i=(r.x+a.x)/2,n=(r.y+a.y)/2}return{x:i,y:n,r:t}}var OS=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.shapeType="circle",t}return r.prototype.getMaskAttrs=function(){return Ch(this.points)},r}(ys),PS=OS;function Mh(e){return{start:(0,f.head)(e),end:(0,f.last)(e)}}function Ah(e,r){var t=Math.min(e.x,r.x),i=Math.min(e.y,r.y),n=Math.abs(r.x-e.x),a=Math.abs(r.y-e.y);return{x:t,y:i,width:n,height:a}}var kS=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.shapeType="rect",t}return r.prototype.getRegion=function(){return Mh(this.points)},r.prototype.getMaskAttrs=function(){var t=this.getRegion(),i=t.start,n=t.end;return Ah(i,n)},r}(ys),Fh=kS;function Eh(e){e.x=(0,f.clamp)(e.x,0,1),e.y=(0,f.clamp)(e.y,0,1)}function Th(e,r,t,i){var n=null,a=null,o=i.invert((0,f.head)(e)),s=i.invert((0,f.last)(e));return t&&(Eh(o),Eh(s)),r==="x"?(n=i.convert({x:o.x,y:0}),a=i.convert({x:s.x,y:1})):(n=i.convert({x:0,y:o.y}),a=i.convert({x:1,y:s.y})),{start:n,end:a}}var DS=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.dim="x",t.inPlot=!0,t}return r.prototype.getRegion=function(){var t=this.context.view.getCoordinate();return Th(this.points,this.dim,this.inPlot,t)},r}(Fh),Lh=DS;function ms(e){var r=[];return e.length&&((0,f.each)(e,function(t,i){i===0?r.push(["M",t.x,t.y]):r.push(["L",t.x,t.y])}),r.push(["L",e[0].x,e[0].y])),r}function Ih(e){return{path:ms(e)}}var BS=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getMaskPath=function(){return ms(this.points)},r.prototype.getMaskAttrs=function(){return Ih(this.points)},r.prototype.addPoint=function(){this.resize()},r}(ys),Oh=BS;function xs(e){return J0(e,!0)}function Ph(e){return{path:xs(e)}}var RS=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getMaskPath=function(){return xs(this.points)},r.prototype.getMaskAttrs=function(){return Ph(this.points)},r}(Oh),NS=RS,zS=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.maskShapes=[],t.starting=!1,t.moving=!1,t.recordPoints=null,t.preMovePoint=null,t.shapeType="path",t.maskType="multi-mask",t}return r.prototype.getCurrentPoint=function(){var t=this.context.event;return{x:t.x,y:t.y}},r.prototype.emitEvent=function(t){var i="".concat(this.maskType,":").concat(t),n=this.context.view,a=this.context.event,o={type:this.shapeType,name:this.maskType,get:function(s){return o.hasOwnProperty(s)?o[s]:void 0}};n.emit(i,{target:o,maskShapes:this.maskShapes,multiPoints:this.recordPoints,x:a.x,y:a.y})},r.prototype.createMask=function(t){var i=this.context.view,n=this.recordPoints[t],a=this.getMaskAttrs(n),o=i.foregroundGroup.addShape({type:this.shapeType,name:"mask",draggable:!0,attrs:(0,g.__assign)({fill:"#C5D4EB",opacity:.3},a)});this.maskShapes.push(o)},r.prototype.getMaskPath=function(t){return[]},r.prototype.show=function(){this.maskShapes.length>0&&(this.maskShapes.forEach(function(t){return t.show()}),this.emitEvent("show"))},r.prototype.start=function(t){this.recordPointStart(),this.starting=!0,this.moving=!1;var i=this.recordPoints.length-1;this.createMask(i),this.updateShapesCapture(!1),this.updateMask(t==null?void 0:t.maskStyle),this.emitEvent("start")},r.prototype.moveStart=function(){this.moving=!0,this.preMovePoint=this.getCurrentPoint(),this.updateShapesCapture(!1)},r.prototype.move=function(){if(!(!this.moving||this.maskShapes.length===0)){var t=this.getCurrentPoint(),i=this.preMovePoint,n=t.x-i.x,a=t.y-i.y,o=this.getCurMaskShapeIndex();o>-1&&(this.recordPoints[o].forEach(function(s){s.x+=n,s.y+=a}),this.updateMask(),this.emitEvent("change"),this.preMovePoint=t)}},r.prototype.updateMask=function(t){var i=this;this.recordPoints.forEach(function(n,a){var o=(0,f.deepMix)({},i.getMaskAttrs(n),t);i.maskShapes[a].attr(o)})},r.prototype.resize=function(){this.starting&&this.maskShapes.length>0&&(this.recordPointContinue(),this.updateMask(),this.emitEvent("change"))},r.prototype.moveEnd=function(){this.moving=!1,this.preMovePoint=null,this.updateShapesCapture(!0)},r.prototype.end=function(){this.starting=!1,this.emitEvent("end"),this.updateShapesCapture(!0)},r.prototype.hide=function(){this.maskShapes.length>0&&(this.maskShapes.forEach(function(t){return t.hide()}),this.emitEvent("hide"))},r.prototype.remove=function(){var t=this.getCurMaskShapeIndex();t>-1&&(this.recordPoints.splice(t,1),this.maskShapes[t].remove(),this.maskShapes.splice(t,1),this.preMovePoint=null,this.updateShapesCapture(!0),this.emitEvent("change"))},r.prototype.clearAll=function(){this.recordPointClear(),this.maskShapes.forEach(function(t){return t.remove()}),this.maskShapes=[],this.preMovePoint=null},r.prototype.clear=function(){var t=this.getCurMaskShapeIndex();t===-1?(this.recordPointClear(),this.maskShapes.forEach(function(i){return i.remove()}),this.maskShapes=[],this.emitEvent("clearAll")):(this.recordPoints.splice(t,1),this.maskShapes[t].remove(),this.maskShapes.splice(t,1),this.preMovePoint=null,this.emitEvent("clearSingle")),this.preMovePoint=null},r.prototype.destroy=function(){this.clear(),e.prototype.destroy.call(this)},r.prototype.getRecordPoints=function(){var t;return(0,g.__spreadArray)([],(0,g.__read)((t=this.recordPoints)!==null&&t!==void 0?t:[]),!1)},r.prototype.recordPointStart=function(){var t=this.getRecordPoints(),i=this.getCurrentPoint();this.recordPoints=(0,g.__spreadArray)((0,g.__spreadArray)([],(0,g.__read)(t),!1),[[i]],!1)},r.prototype.recordPointContinue=function(){var t=this.getRecordPoints(),i=this.getCurrentPoint(),n=t.splice(-1,1)[0]||[];n.push(i),this.recordPoints=(0,g.__spreadArray)((0,g.__spreadArray)([],(0,g.__read)(t),!1),[n],!1)},r.prototype.recordPointClear=function(){this.recordPoints=[]},r.prototype.updateShapesCapture=function(t){this.maskShapes.forEach(function(i){return i.set("capture",t)})},r.prototype.getCurMaskShapeIndex=function(){var t=this.getCurrentPoint();return this.maskShapes.findIndex(function(i){var n=i.attrs,a=n.width,o=n.height,s=n.r,l=a===0||o===0||s===0;return!l&&i.isHit(t.x,t.y)})},r}(ne),_s=zS,VS=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.shapeType="rect",t}return r.prototype.getRegion=function(t){return Mh(t)},r.prototype.getMaskAttrs=function(t){var i=this.getRegion(t),n=i.start,a=i.end;return Ah(n,a)},r}(_s),kh=VS,GS=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.dim="x",t.inPlot=!0,t}return r.prototype.getRegion=function(t){var i=this.context.view.getCoordinate();return Th(t,this.dim,this.inPlot,i)},r}(kh),Dh=GS,WS=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.shapeType="circle",t.getMaskAttrs=Ch,t}return r}(_s),HS=WS,YS=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.getMaskPath=ms,t.getMaskAttrs=Ih,t}return r.prototype.addPoint=function(){this.resize()},r}(_s),Bh=YS,XS=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.getMaskPath=xs,t.getMaskAttrs=Ph,t}return r}(Bh),US=XS,ZS=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.setCursor=function(t){var i=this.context.view;i.getCanvas().setCursor(t)},r.prototype.default=function(){this.setCursor("default")},r.prototype.pointer=function(){this.setCursor("pointer")},r.prototype.move=function(){this.setCursor("move")},r.prototype.crosshair=function(){this.setCursor("crosshair")},r.prototype.wait=function(){this.setCursor("wait")},r.prototype.help=function(){this.setCursor("help")},r.prototype.text=function(){this.setCursor("text")},r.prototype.eResize=function(){this.setCursor("e-resize")},r.prototype.wResize=function(){this.setCursor("w-resize")},r.prototype.nResize=function(){this.setCursor("n-resize")},r.prototype.sResize=function(){this.setCursor("s-resize")},r.prototype.neResize=function(){this.setCursor("ne-resize")},r.prototype.nwResize=function(){this.setCursor("nw-resize")},r.prototype.seResize=function(){this.setCursor("se-resize")},r.prototype.swResize=function(){this.setCursor("sw-resize")},r.prototype.nsResize=function(){this.setCursor("ns-resize")},r.prototype.ewResize=function(){this.setCursor("ew-resize")},r.prototype.zoomIn=function(){this.setCursor("zoom-in")},r.prototype.zoomOut=function(){this.setCursor("zoom-out")},r}(ne),qS=ZS,jS=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.filterView=function(t,i,n){var a=this;t.getScaleByField(i)&&t.filter(i,n),t.views&&t.views.length&&(0,f.each)(t.views,function(o){a.filterView(o,i,n)})},r.prototype.filter=function(){var t=Gr(this.context);if(t){var i=this.context.view,n=t.component,a=n.get("field");if(en(t)){if(a){var o=n.getItemsByState("unchecked"),s=di(i,a),l=o.map(function(d){return d.name});l.length?this.filterView(i,a,function(d){var p=s.getText(d);return!l.includes(p)}):this.filterView(i,a,null),i.render(!0)}}else if(Xu(t)){var u=n.getValue(),c=(0,g.__read)(u,2),h=c[0],v=c[1];this.filterView(i,a,function(d){return d>=h&&d<=v}),i.render(!0)}}},r}(ne),KS=jS;function Rh(e,r,t,i){var n=Math.min(t[r],i[r]),a=Math.max(t[r],i[r]),o=(0,g.__read)(e.range,2),s=o[0],l=o[1];if(nl&&(a=l),n===l&&a===l)return null;var u=e.invert(n),c=e.invert(a);if(e.isCategory){var h=e.values.indexOf(u),v=e.values.indexOf(c),d=e.values.slice(h,v+1);return function(p){return d.includes(p)}}else return function(p){return p>=u&&p<=c}}var De;(function(e){e.FILTER="brush-filter-processing",e.RESET="brush-filter-reset",e.BEFORE_FILTER="brush-filter:beforefilter",e.AFTER_FILTER="brush-filter:afterfilter",e.BEFORE_RESET="brush-filter:beforereset",e.AFTER_RESET="brush-filter:afterreset"})(De||(De={}));var $S=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.dims=["x","y"],t.startPoint=null,t.isStarted=!1,t}return r.prototype.hasDim=function(t){return this.dims.includes(t)},r.prototype.start=function(){var t=this.context;this.isStarted=!0,this.startPoint=t.getCurrentPoint()},r.prototype.filter=function(){var t,i;if(rn(this.context)){var n=this.context.event.target,a=n.getCanvasBBox();t={x:a.x,y:a.y},i={x:a.maxX,y:a.maxY}}else{if(!this.isStarted)return;t=this.startPoint,i=this.context.getCurrentPoint()}if(!(Math.abs(t.x-i.x)<5||Math.abs(t.x-i.y)<5)){var o=this.context,s=o.view,l=o.event,u={view:s,event:l,dims:this.dims};s.emit(De.BEFORE_FILTER,ue.fromData(s,De.BEFORE_FILTER,u));var c=s.getCoordinate(),h=c.invert(i),v=c.invert(t);if(this.hasDim("x")){var d=s.getXScale(),p=Rh(d,"x",h,v);this.filterView(s,d.field,p)}if(this.hasDim("y")){var y=s.getYScales()[0],p=Rh(y,"y",h,v);this.filterView(s,y.field,p)}this.reRender(s,{source:De.FILTER}),s.emit(De.AFTER_FILTER,ue.fromData(s,De.AFTER_FILTER,u))}},r.prototype.end=function(){this.isStarted=!1},r.prototype.reset=function(){var t=this.context.view;if(t.emit(De.BEFORE_RESET,ue.fromData(t,De.BEFORE_RESET,{})),this.isStarted=!1,this.hasDim("x")){var i=t.getXScale();this.filterView(t,i.field,null)}if(this.hasDim("y")){var n=t.getYScales()[0];this.filterView(t,n.field,null)}this.reRender(t,{source:De.RESET}),t.emit(De.AFTER_RESET,ue.fromData(t,De.AFTER_RESET,{}))},r.prototype.filterView=function(t,i,n){t.filter(i,n)},r.prototype.reRender=function(t,i){t.render(!0,i)},r}(ne),xa=$S,QS=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.filterView=function(t,i,n){var a=Qe(t);(0,f.each)(a,function(o){o.filter(i,n)})},r.prototype.reRender=function(t){var i=Qe(t);(0,f.each)(i,function(n){n.render(!0)})},r}(xa),ws=QS,JS=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.filter=function(){var t=Gr(this.context),i=this.context.view,n=Ce(i);if(rn(this.context)){var a=Po(this.context,10);a&&(0,f.each)(n,function(y){a.includes(y)?y.show():y.hide()})}else if(t){var o=t.component,s=o.get("field");if(en(t)){if(s){var l=o.getItemsByState("unchecked"),u=di(i,s),c=l.map(function(y){return y.name});(0,f.each)(n,function(y){var x=Ze(y,s),m=u.getText(x);c.indexOf(m)>=0?y.hide():y.show()})}}else if(Xu(t)){var h=o.getValue(),v=(0,g.__read)(h,2),d=v[0],p=v[1];(0,f.each)(n,function(y){var x=Ze(y,s);x>=d&&x<=p?y.show():y.hide()})}}},r.prototype.clear=function(){var t=Ce(this.context.view);(0,f.each)(t,function(i){i.show()})},r.prototype.reset=function(){this.clear()},r}(ne),t1=JS,e1=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.byRecord=!1,t}return r.prototype.filter=function(){rn(this.context)&&(this.byRecord?this.filterByRecord():this.filterByBBox())},r.prototype.filterByRecord=function(){var t=this.context.view,i=Po(this.context,10);if(!!i){var n=t.getXScale().field,a=t.getYScales()[0].field,o=i.map(function(l){return l.getModel().data}),s=Qe(t);(0,f.each)(s,function(l){var u=Ce(l);(0,f.each)(u,function(c){var h=c.getModel().data;Ju(o,h,n,a)?c.show():c.hide()})})}},r.prototype.filterByBBox=function(){var t=this,i=this.context.view,n=Qe(i);(0,f.each)(n,function(a){var o=Uu(t.context,a,10),s=Ce(a);o&&(0,f.each)(s,function(l){o.includes(l)?l.show():l.hide()})})},r.prototype.reset=function(){var t=Qe(this.context.view);(0,f.each)(t,function(i){var n=Ce(i);(0,f.each)(n,function(a){a.show()})})},r}(ne),Nh=e1,r1=10,i1=5,n1=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.buttonGroup=null,t.buttonCfg={name:"button",text:"button",textStyle:{x:0,y:0,fontSize:12,fill:"#333333",cursor:"pointer"},padding:[8,10],style:{fill:"#f7f7f7",stroke:"#cccccc",cursor:"pointer"},activeStyle:{fill:"#e6e6e6"}},t}return r.prototype.getButtonCfg=function(){return(0,f.deepMix)(this.buttonCfg,this.cfg)},r.prototype.drawButton=function(){var t=this.getButtonCfg(),i=this.context.view.foregroundGroup.addGroup({name:t.name}),n=i.addShape({type:"text",name:"button-text",attrs:(0,g.__assign)({text:t.text},t.textStyle)}),a=n.getBBox(),o=zo(t.padding),s=i.addShape({type:"rect",name:"button-rect",attrs:(0,g.__assign)({x:a.x-o[3],y:a.y-o[0],width:a.width+o[1]+o[3],height:a.height+o[0]+o[2]},t.style)});s.toBack(),i.on("mouseenter",function(){s.attr(t.activeStyle)}),i.on("mouseleave",function(){s.attr(t.style)}),this.buttonGroup=i},r.prototype.resetPosition=function(){var t=this.context.view,i=t.getCoordinate(),n=i.convert({x:1,y:1}),a=this.buttonGroup,o=a.getBBox(),s=ie.vs(null,[["t",n.x-o.width-r1,n.y+o.height+i1]]);a.setMatrix(s)},r.prototype.show=function(){this.buttonGroup||this.drawButton(),this.resetPosition(),this.buttonGroup.show()},r.prototype.hide=function(){this.buttonGroup&&this.buttonGroup.hide()},r.prototype.destroy=function(){var t=this.buttonGroup;t&&t.remove(),e.prototype.destroy.call(this)},r}(ne),a1=n1,o1=4,s1=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.starting=!1,t.dragStart=!1,t}return r.prototype.start=function(){this.starting=!0,this.startPoint=this.context.getCurrentPoint()},r.prototype.drag=function(){if(!!this.startPoint){var t=this.context.getCurrentPoint(),i=this.context.view,n=this.context.event;this.dragStart?i.emit("drag",{target:n.target,x:n.x,y:n.y}):ko(t,this.startPoint)>o1&&(i.emit("dragstart",{target:n.target,x:n.x,y:n.y}),this.dragStart=!0)}},r.prototype.end=function(){if(this.dragStart){var t=this.context.view,i=this.context.event;t.emit("dragend",{target:i.target,x:i.x,y:i.y})}this.starting=!1,this.dragStart=!1},r}(ne),l1=s1,u1=5,c1=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.starting=!1,t.isMoving=!1,t.startPoint=null,t.startMatrix=null,t}return r.prototype.start=function(){this.starting=!0,this.startPoint=this.context.getCurrentPoint(),this.startMatrix=this.context.view.middleGroup.getMatrix()},r.prototype.move=function(){if(!!this.starting){var t=this.startPoint,i=this.context.getCurrentPoint(),n=ko(t,i);if(n>u1&&!this.isMoving&&(this.isMoving=!0),this.isMoving){var a=this.context.view,o=ie.vs(this.startMatrix,[["t",i.x-t.x,i.y-t.y]]);a.backgroundGroup.setMatrix(o),a.foregroundGroup.setMatrix(o),a.middleGroup.setMatrix(o)}}},r.prototype.end=function(){this.isMoving&&(this.isMoving=!1),this.startMatrix=null,this.starting=!1,this.startPoint=null},r.prototype.reset=function(){this.starting=!1,this.startPoint=null,this.isMoving=!1;var t=this.context.view;t.backgroundGroup.resetMatrix(),t.foregroundGroup.resetMatrix(),t.middleGroup.resetMatrix(),this.isMoving=!1},r}(ne),h1=c1,zh="x",Vh="y",f1=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.dims=[zh,Vh],t.cfgFields=["dims"],t.cacheScaleDefs={},t}return r.prototype.hasDim=function(t){return this.dims.includes(t)},r.prototype.getScale=function(t){var i=this.context.view;return t==="x"?i.getXScale():i.getYScales()[0]},r.prototype.resetDim=function(t){var i=this.context.view;if(this.hasDim(t)&&this.cacheScaleDefs[t]){var n=this.getScale(t);i.scale(n.field,this.cacheScaleDefs[t]),this.cacheScaleDefs[t]=null}},r.prototype.reset=function(){this.resetDim(zh),this.resetDim(Vh);var t=this.context.view;t.render(!0)},r}(ne),Gh=f1,v1=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.startPoint=null,t.starting=!1,t.startCache={},t}return r.prototype.start=function(){var t=this;this.startPoint=this.context.getCurrentPoint(),this.starting=!0;var i=this.dims;(0,f.each)(i,function(n){var a=t.getScale(n),o=a.min,s=a.max,l=a.values;t.startCache[n]={min:o,max:s,values:l}})},r.prototype.end=function(){this.startPoint=null,this.starting=!1,this.startCache={}},r.prototype.translate=function(){var t=this;if(!!this.starting){var i=this.startPoint,n=this.context.view.getCoordinate(),a=this.context.getCurrentPoint(),o=n.invert(i),s=n.invert(a),l=s.x-o.x,u=s.y-o.y,c=this.context.view,h=this.dims;(0,f.each)(h,function(v){t.translateDim(v,{x:l*-1,y:u*-1})}),c.render(!0)}},r.prototype.translateDim=function(t,i){if(this.hasDim(t)){var n=this.getScale(t);n.isLinear&&this.translateLinear(t,n,i)}},r.prototype.translateLinear=function(t,i,n){var a=this.context.view,o=this.startCache[t],s=o.min,l=o.max,u=l-s,c=n[t]*u;this.cacheScaleDefs[t]||(this.cacheScaleDefs[t]={nice:i.nice,min:s,max:l}),a.scale(i.field,{nice:!1,min:s+c,max:l+c})},r.prototype.reset=function(){e.prototype.reset.call(this),this.startPoint=null,this.starting=!1},r}(Gh),d1=v1,g1=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.zoomRatio=.05,t}return r.prototype.zoomIn=function(){this.zoom(this.zoomRatio)},r.prototype.zoom=function(t){var i=this,n=this.dims;(0,f.each)(n,function(a){i.zoomDim(a,t)}),this.context.view.render(!0)},r.prototype.zoomOut=function(){this.zoom(-1*this.zoomRatio)},r.prototype.zoomDim=function(t,i){if(this.hasDim(t)){var n=this.getScale(t);n.isLinear&&this.zoomLinear(t,n,i)}},r.prototype.zoomLinear=function(t,i,n){var a=this.context.view;this.cacheScaleDefs[t]||(this.cacheScaleDefs[t]={nice:i.nice,min:i.min,max:i.max});var o=this.cacheScaleDefs[t],s=o.max-o.min,l=i.min,u=i.max,c=n*s,h=l-c,v=u+c,d=v-h,p=d/s;v>h&&p<100&&p>.01&&a.scale(i.field,{nice:!1,min:l-c,max:u+c})},r}(Gh),p1=g1;function y1(e){var r=e.gEvent.originalEvent;return r.deltaY>0}var m1=1,x1=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.scroll=function(t){var i=this.context,n=i.view,a=i.event;if(!!n.getOptions().scrollbar){var o=(t==null?void 0:t.wheelDelta)||m1,s=n.getController("scrollbar"),l=n.getXScale(),u=n.getOptions().data,c=(0,f.size)((0,f.valuesOfKey)(u,l.field)),h=(0,f.size)(l.values),v=s.getValue(),d=Math.floor((c-h)*v),p=d+(y1(a)?o:-o),y=o/(c-h)/1e4,x=(0,f.clamp)(p/(c-h)+y,0,1);s.setValue(x)}},r}(ne),_1=x1,w1="aixs-description-tooltip",S1=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.show=function(){var t=this.context,i=Gr(t).axis,n=i.cfg.title,a=n.description,o=n.text,s=n.descriptionTooltipStyle,l=t.event,u=l.x,c=l.y;this.tooltip||this.renderTooltip(),this.tooltip.update({title:o||"",customContent:function(){return` +
      +
      + \u5B57\u6BB5\u8BF4\u660E\uFF1A`).concat(a,` +
      +
      + `)},x:u,y:c}),this.tooltip.show()},r.prototype.destroy=function(){e.prototype.destroy.call(this),this.tooltip&&this.tooltip.destroy()},r.prototype.hide=function(){this.tooltip&&this.tooltip.hide()},r.prototype.renderTooltip=function(){var t,i=this.context.view,n=i.canvas,a={start:{x:0,y:0},end:{x:n.get("width"),y:n.get("height")}},o=new Xn({parent:n.get("el").parentNode,region:a,visible:!1,containerId:w1,domStyles:(0,g.__assign)({},(0,f.deepMix)({},(t={},t[sr]={"max-width":"50%",padding:"10px","line-height":"15px","font-size":"12px",color:"rgba(0, 0, 0, .65)"},t[lr]={"word-break":"break-all","margin-bottom":"3px"},t)))});o.init(),o.setCapture(!1),this.tooltip=o},r}(ne),b1=S1;gm("dark",ic(hx)),Zt("canvas",Dc),Zt("svg",fx),Je("Polygon",kx),Je("Interval",Ax),Je("Schema",Bx),Je("Path",qo),Je("Point",Ix),Je("Line",Ex),Je("Area",px),Je("Edge",mx),Je("Heatmap",_x),Je("Violin",zx),an("base",oa),an("interval",r_),an("pie",a_),an("polar",Yc),Pe("overlap",x_),Pe("distribute",s_),Pe("fixed-overlap",m_),Pe("hide-overlap",T_),Pe("limit-in-shape",d_),Pe("limit-in-canvas",v_),Pe("limit-in-plot",U_),Pe("pie-outer",u_),Pe("adjust-color",I_),Pe("interval-adjust-position",D_),Pe("interval-hide-overlap",R_),Pe("point-adjust-position",V_),Pe("pie-spider",f_),Pe("path-adjust-position",H_),ze("fade-in",Z_),ze("fade-out",q_),ze("grow-in-x",K_),ze("grow-in-xy",Q_),ze("grow-in-y",$_),ze("scale-in-x",ew),ze("scale-in-y",rw),ze("wave-in",nw),ze("zoom-in",aw),ze("zoom-out",ow),ze("position-update",tw),ze("sector-path-update",iw),ze("path-in",J_),vi("rect",pw),vi("mirror",dw),vi("list",cw),vi("matrix",fw),vi("circle",lw),vi("tree",mw),Wr("axis",bw),Wr("legend",Ew),Wr("tooltip",fc),Wr("annotation",ww),Wr("slider",Lw),Wr("scrollbar",kw),_t("tooltip",yh),_t("sibling-tooltip",Gw),_t("ellipsis-text",Hw),_t("element-active",Zw),_t("element-single-active",eS),_t("element-range-active",Qw),_t("element-highlight",ds),_t("element-highlight-by-x",oS),_t("element-highlight-by-color",nS),_t("element-single-highlight",uS),_t("element-range-highlight",_h),_t("element-sibling-highlight",_h,{effectSiblings:!0,effectByRecord:!0}),_t("element-selected",vS),_t("element-single-selected",gS),_t("element-range-selected",hS),_t("element-link-by-color",jw),_t("active-region",Nw),_t("list-active",mS),_t("list-selected",SS),_t("list-highlight",gs),_t("list-unchecked",CS),_t("list-checked",AS),_t("list-focus",ES),_t("list-radio",LS),_t("legend-item-highlight",gs,{componentNames:["legend"]}),_t("axis-label-highlight",gs,{componentNames:["axis"]}),_t("axis-description",b1),_t("rect-mask",Fh),_t("x-rect-mask",Lh,{dim:"x"}),_t("y-rect-mask",Lh,{dim:"y"}),_t("circle-mask",PS),_t("path-mask",Oh),_t("smooth-path-mask",NS),_t("rect-multi-mask",kh),_t("x-rect-multi-mask",Dh,{dim:"x"}),_t("y-rect-multi-mask",Dh,{dim:"y"}),_t("circle-multi-mask",HS),_t("path-multi-mask",Bh),_t("smooth-path-multi-mask",US),_t("cursor",qS),_t("data-filter",KS),_t("brush",xa),_t("brush-x",xa,{dims:["x"]}),_t("brush-y",xa,{dims:["y"]}),_t("sibling-filter",ws),_t("sibling-x-filter",ws,{dims:"x"}),_t("sibling-y-filter",ws,{dims:"y"}),_t("element-filter",t1),_t("element-sibling-filter",Nh),_t("element-sibling-filter-record",Nh,{byRecord:!0}),_t("view-drag",l1),_t("view-move",h1),_t("scale-translate",d1),_t("scale-zoom",p1),_t("reset-button",a1,{name:"reset-button",text:"reset"}),_t("mousewheel-scroll",_1);function hr(e){return e.isInPlot()}Pt("tooltip",{start:[{trigger:"plot:mousemove",action:"tooltip:show",throttle:{wait:50,leading:!0,trailing:!1}},{trigger:"plot:touchmove",action:"tooltip:show",throttle:{wait:50,leading:!0,trailing:!1}}],end:[{trigger:"plot:mouseleave",action:"tooltip:hide"},{trigger:"plot:leave",action:"tooltip:hide"},{trigger:"plot:touchend",action:"tooltip:hide"}]}),Pt("ellipsis-text",{start:[{trigger:"legend-item-name:mousemove",action:"ellipsis-text:show",throttle:{wait:50,leading:!0,trailing:!1}},{trigger:"legend-item-name:touchstart",action:"ellipsis-text:show",throttle:{wait:50,leading:!0,trailing:!1}},{trigger:"axis-label:mousemove",action:"ellipsis-text:show",throttle:{wait:50,leading:!0,trailing:!1}},{trigger:"axis-label:touchstart",action:"ellipsis-text:show",throttle:{wait:50,leading:!0,trailing:!1}}],end:[{trigger:"legend-item-name:mouseleave",action:"ellipsis-text:hide"},{trigger:"legend-item-name:touchend",action:"ellipsis-text:hide"},{trigger:"axis-label:mouseleave",action:"ellipsis-text:hide"},{trigger:"axis-label:mouseout",action:"ellipsis-text:hide"},{trigger:"axis-label:touchend",action:"ellipsis-text:hide"}]}),Pt("element-active",{start:[{trigger:"element:mouseenter",action:"element-active:active"}],end:[{trigger:"element:mouseleave",action:"element-active:reset"}]}),Pt("element-selected",{start:[{trigger:"element:click",action:"element-selected:toggle"}]}),Pt("element-highlight",{start:[{trigger:"element:mouseenter",action:"element-highlight:highlight"}],end:[{trigger:"element:mouseleave",action:"element-highlight:reset"}]}),Pt("element-highlight-by-x",{start:[{trigger:"element:mouseenter",action:"element-highlight-by-x:highlight"}],end:[{trigger:"element:mouseleave",action:"element-highlight-by-x:reset"}]}),Pt("element-highlight-by-color",{start:[{trigger:"element:mouseenter",action:"element-highlight-by-color:highlight"}],end:[{trigger:"element:mouseleave",action:"element-highlight-by-color:reset"}]}),Pt("legend-active",{start:[{trigger:"legend-item:mouseenter",action:["list-active:active","element-active:active"]}],end:[{trigger:"legend-item:mouseleave",action:["list-active:reset","element-active:reset"]}]}),Pt("legend-highlight",{start:[{trigger:"legend-item:mouseenter",action:["legend-item-highlight:highlight","element-highlight:highlight"]}],end:[{trigger:"legend-item:mouseleave",action:["legend-item-highlight:reset","element-highlight:reset"]}]}),Pt("axis-label-highlight",{start:[{trigger:"axis-label:mouseenter",action:["axis-label-highlight:highlight","element-highlight:highlight"]}],end:[{trigger:"axis-label:mouseleave",action:["axis-label-highlight:reset","element-highlight:reset"]}]}),Pt("element-list-highlight",{start:[{trigger:"element:mouseenter",action:["list-highlight:highlight","element-highlight:highlight"]}],end:[{trigger:"element:mouseleave",action:["list-highlight:reset","element-highlight:reset"]}]}),Pt("element-range-highlight",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"mask:mouseenter",action:"cursor:move"},{trigger:"plot:mouseleave",action:"cursor:default"},{trigger:"mask:mouseleave",action:"cursor:crosshair"}],start:[{trigger:"plot:mousedown",isEnable:function(e){return!e.isInShape("mask")},action:["rect-mask:start","rect-mask:show"]},{trigger:"mask:dragstart",action:["rect-mask:moveStart"]}],processing:[{trigger:"plot:mousemove",action:["rect-mask:resize"]},{trigger:"mask:drag",action:["rect-mask:move"]},{trigger:"mask:change",action:["element-range-highlight:highlight"]}],end:[{trigger:"plot:mouseup",action:["rect-mask:end"]},{trigger:"mask:dragend",action:["rect-mask:moveEnd"]},{trigger:"document:mouseup",isEnable:function(e){return!e.isInPlot()},action:["element-range-highlight:clear","rect-mask:end","rect-mask:hide"]}],rollback:[{trigger:"dblclick",action:["element-range-highlight:clear","rect-mask:hide"]}]}),Pt("brush",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:hr,action:["brush:start","rect-mask:start","rect-mask:show"]}],processing:[{trigger:"mousemove",isEnable:hr,action:["rect-mask:resize"]}],end:[{trigger:"mouseup",isEnable:hr,action:["brush:filter","brush:end","rect-mask:end","rect-mask:hide","reset-button:show"]}],rollback:[{trigger:"reset-button:click",action:["brush:reset","reset-button:hide","cursor:crosshair"]}]}),Pt("brush-visible",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"plot:mousedown",action:["rect-mask:start","rect-mask:show"]}],processing:[{trigger:"plot:mousemove",action:["rect-mask:resize"]},{trigger:"mask:change",action:["element-range-highlight:highlight"]}],end:[{trigger:"plot:mouseup",action:["rect-mask:end","rect-mask:hide","element-filter:filter","element-range-highlight:clear"]}],rollback:[{trigger:"dblclick",action:["element-filter:clear"]}]}),Pt("brush-x",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:hr,action:["brush-x:start","x-rect-mask:start","x-rect-mask:show"]}],processing:[{trigger:"mousemove",isEnable:hr,action:["x-rect-mask:resize"]}],end:[{trigger:"mouseup",isEnable:hr,action:["brush-x:filter","brush-x:end","x-rect-mask:end","x-rect-mask:hide"]}],rollback:[{trigger:"dblclick",action:["brush-x:reset"]}]}),Pt("element-path-highlight",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:hr,action:"path-mask:start"},{trigger:"mousedown",isEnable:hr,action:"path-mask:show"}],processing:[{trigger:"mousemove",action:"path-mask:addPoint"}],end:[{trigger:"mouseup",action:"path-mask:end"}],rollback:[{trigger:"dblclick",action:"path-mask:hide"}]}),Pt("brush-x-multi",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"mask:mouseenter",action:"cursor:move"},{trigger:"plot:mouseleave",action:"cursor:default"},{trigger:"mask:mouseleave",action:"cursor:crosshair"}],start:[{trigger:"mousedown",isEnable:hr,action:["x-rect-multi-mask:start","x-rect-multi-mask:show"]},{trigger:"mask:dragstart",action:["x-rect-multi-mask:moveStart"]}],processing:[{trigger:"mousemove",isEnable:function(e){return!ta(e)},action:["x-rect-multi-mask:resize"]},{trigger:"multi-mask:change",action:"element-range-highlight:highlight"},{trigger:"mask:drag",action:["x-rect-multi-mask:move"]}],end:[{trigger:"mouseup",action:["x-rect-multi-mask:end"]},{trigger:"mask:dragend",action:["x-rect-multi-mask:moveEnd"]}],rollback:[{trigger:"dblclick",action:["x-rect-multi-mask:clear","cursor:crosshair"]},{trigger:"multi-mask:clearAll",action:["element-range-highlight:clear"]},{trigger:"multi-mask:clearSingle",action:["element-range-highlight:highlight"]}]}),Pt("element-single-selected",{start:[{trigger:"element:click",action:"element-single-selected:toggle"}]}),Pt("legend-filter",{showEnable:[{trigger:"legend-item:mouseenter",action:["cursor:pointer","list-radio:show"]},{trigger:"legend-item:mouseleave",action:["cursor:default","list-radio:hide"]}],start:[{trigger:"legend-item:click",isEnable:function(e){return!e.isInShape("legend-item-radio")},action:["legend-item-highlight:reset","element-highlight:reset","list-unchecked:toggle","data-filter:filter","list-radio:show"]},{trigger:"legend-item-radio:mouseenter",action:["list-radio:showTip"]},{trigger:"legend-item-radio:mouseleave",action:["list-radio:hideTip"]},{trigger:"legend-item-radio:click",action:["list-focus:toggle","data-filter:filter","list-radio:show"]}]}),Pt("continuous-filter",{start:[{trigger:"legend:valuechanged",action:"data-filter:filter"}]}),Pt("continuous-visible-filter",{start:[{trigger:"legend:valuechanged",action:"element-filter:filter"}]}),Pt("legend-visible-filter",{showEnable:[{trigger:"legend-item:mouseenter",action:"cursor:pointer"},{trigger:"legend-item:mouseleave",action:"cursor:default"}],start:[{trigger:"legend-item:click",action:["legend-item-highlight:reset","element-highlight:reset","list-unchecked:toggle","element-filter:filter"]}]}),Pt("active-region",{start:[{trigger:"plot:mousemove",action:"active-region:show"}],end:[{trigger:"plot:mouseleave",action:"active-region:hide"}]}),Pt("axis-description",{start:[{trigger:"axis-description:mousemove",action:"axis-description:show"}],end:[{trigger:"axis-description:mouseleave",action:"axis-description:hide"}]});function Wh(e){return e.gEvent.preventDefault(),e.gEvent.originalEvent.deltaY>0}Pt("view-zoom",{start:[{trigger:"plot:mousewheel",isEnable:function(e){return Wh(e.event)},action:"scale-zoom:zoomOut",throttle:{wait:100,leading:!0,trailing:!1}},{trigger:"plot:mousewheel",isEnable:function(e){return!Wh(e.event)},action:"scale-zoom:zoomIn",throttle:{wait:100,leading:!0,trailing:!1}}]}),Pt("sibling-tooltip",{start:[{trigger:"plot:mousemove",action:"sibling-tooltip:show"}],end:[{trigger:"plot:mouseleave",action:"sibling-tooltip:hide"}]}),Pt("plot-mousewheel-scroll",{start:[{trigger:"plot:mousewheel",action:"mousewheel-scroll:scroll"}]});var Be=["type","alias","tickCount","tickInterval","min","max","nice","minLimit","maxLimit","range","tickMethod","base","exponent","mask","sync"],je;(function(e){e.ERROR="error",e.WARN="warn",e.INFO="log"})(je||(je={}));var Hh="AntV/G2Plot";function Yh(e){for(var r=[],t=1;t=0}),n=t.every(function(a){return(0,f.get)(a,[r])<=0});return i?{min:0}:n?{max:0}:{}}function Xh(e,r,t,i,n){if(n===void 0&&(n=[]),!Array.isArray(e))return{nodes:[],links:[]};var a=[],o={},s=-1;return e.forEach(function(l){var u=l[r],c=l[t],h=l[i],v=$t(l,n);o[u]||(o[u]=(0,g.__assign)({id:++s,name:u},v)),o[c]||(o[c]=(0,g.__assign)({id:++s,name:c},v)),a.push((0,g.__assign)({source:o[u].id,target:o[c].id,value:h},v))}),{nodes:Object.values(o).sort(function(l,u){return l.id-u.id}),links:a}}function wi(e,r){var t=(0,f.filter)(e,function(i){var n=i[r];return n===null||typeof n=="number"&&!isNaN(n)});return fr(je.WARN,t.length===e.length,"illegal data existed in chart data."),t}var C1=5,M1={}.toString,Uh=function(e,r){return M1.call(e)==="[object "+r+"]"},A1=function(e){return Uh(e,"Array")},F1=function(e){return typeof e=="object"&&e!==null},Zh=function(e){if(!F1(e)||!Uh(e,"Object"))return!1;for(var r=e;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return Object.getPrototypeOf(e)===r},qh=function(e,r,t,i){t=t||0,i=i||C1;for(var n in r)if(Object.prototype.hasOwnProperty.call(r,n)){var a=r[n];a?Zh(a)?(Zh(e[n])||(e[n]={}),t=i&&e<=n}function Ir(e){if((0,f.isNumber)(e))return[e,e,e,e];if((0,f.isArray)(e)){var r=e.length;if(r===1)return[e[0],e[0],e[0],e[0]];if(r===2)return[e[0],e[1],e[0],e[1]];if(r===3)return[e[0],e[1],e[2],e[1]];if(r===4)return e}return[0,0,0,0]}function wa(e,r,t){r===void 0&&(r="bottom"),t===void 0&&(t=25);var i=Ir(e),n=[r.startsWith("top")?t:0,r.startsWith("right")?t:0,r.startsWith("bottom")?t:0,r.startsWith("left")?t:0];return[i[0]+n[0],i[1]+n[1],i[2]+n[2],i[3]+n[3]]}function Ms(e){var r=e.map(function(i){return Ir(i)}),t=[0,0,0,0];return r.length>0&&(t=t.map(function(i,n){return r.forEach(function(a,o){i+=r[o][n]}),i})),t}function I1(e,r){var t=[];if(e.length){t.push(["M",e[0].x,e[0].y]);for(var i=1,n=e.length;i"},key:"".concat(l===0?"top":"bottom","-statistic")},$t(s,["offsetX","offsetY","rotate","style","formatter"])))}})},D1=function(e,r,t){var i=r.statistic,n=i.title,a=i.content;[n,a].forEach(function(o){if(!!o){var s=(0,f.isFunction)(o.style)?o.style(t):o.style;e.annotation().html((0,g.__assign)({position:["50%","100%"],html:function(l,u){var c=u.getCoordinate(),h=u.views[0].getCoordinate(),v=h.getCenter(),d=h.getRadius(),p=Math.max(Math.sin(h.startAngle),Math.sin(h.endAngle))*d,y=v.y+p-c.y.start-parseFloat((0,f.get)(s,"fontSize",0)),x=c.getRadius()*c.innerRadius*2;$h(l,(0,g.__assign)({width:"".concat(x,"px"),transform:"translate(-50%, ".concat(y,"px)")},Kh(s)));var m=u.getData();if(o.customHtml)return o.customHtml(l,u,t,m);var _=o.content;return o.formatter&&(_=o.formatter(t,m)),_?(0,f.isString)(_)?_:"".concat(_):"
      "}},$t(o,["offsetX","offsetY","rotate","style","formatter"])))}})};function Qh(e,r){return r?(0,f.reduce)(r,function(t,i,n){return t.replace(new RegExp("{\\s*".concat(n,"\\s*}"),"g"),i)},e):e}function zt(e,r){return e.views.find(function(t){return t.id===r})}function vn(e){var r=e.parent;return r?r.views:[]}function Jh(e){return vn(e).filter(function(r){return r!==e})}function dn(e,r,t){t===void 0&&(t=e.geometries),typeof r=="boolean"?e.animate(r):e.animate(!0),(0,f.each)(t,function(i){var n;(0,f.isFunction)(r)?n=r(i.type||i.shapeType,i)||!0:n=r,i.animate(n)})}function ba(){return typeof window=="object"?window==null?void 0:window.devicePixelRatio:2}function As(e,r){r===void 0&&(r=e);var t=document.createElement("canvas"),i=ba();t.width=e*i,t.height=r*i,t.style.width="".concat(e,"px"),t.style.height="".concat(r,"px");var n=t.getContext("2d");return n.scale(i,i),t}function Fs(e,r,t,i){i===void 0&&(i=t);var n=r.backgroundColor,a=r.opacity;e.globalAlpha=a,e.fillStyle=n,e.beginPath(),e.fillRect(0,0,t,i),e.closePath()}function tf(e,r,t){var i=e+r;return t?i*2:i}function ef(e,r){var t=r?[[e*(1/4),e*(1/4)],[e*(3/4),e*(3/4)]]:[[e*(1/2),e*(1/2)]];return t}function Es(e,r){var t=r*Math.PI/180,i={a:Math.cos(t)*(1/e),b:Math.sin(t)*(1/e),c:-Math.sin(t)*(1/e),d:Math.cos(t)*(1/e),e:0,f:0};return i}var B1={size:6,padding:2,backgroundColor:"transparent",opacity:1,rotation:0,fill:"#fff",fillOpacity:.5,stroke:"transparent",lineWidth:0,isStagger:!0};function R1(e,r,t,i){var n=r.size,a=r.fill,o=r.lineWidth,s=r.stroke,l=r.fillOpacity;e.beginPath(),e.globalAlpha=l,e.fillStyle=a,e.strokeStyle=s,e.lineWidth=o,e.arc(t,i,n/2,0,2*Math.PI,!1),e.fill(),o&&e.stroke(),e.closePath()}function N1(e){var r=P({},B1,e),t=r.size,i=r.padding,n=r.isStagger,a=r.rotation,o=tf(t,i,n),s=ef(o,n),l=As(o,o),u=l.getContext("2d");Fs(u,r,o);for(var c=0,h=s;cw){var b=S/y.length,C=Math.max(1,Math.ceil(w/b)-1),M="".concat(y.slice(0,C),"...");_.attr("text",M)}}}}function db(e,r,t){fb(e,r,t),vb(e,r,t)}function gb(e,r,t){return r===void 0&&(r=!0),t===void 0&&(t=!1),function(i){var n=i.options,a=i.chart,o=n.conversionTag,s=n.theme;return o&&!t&&(a.theme(P({},(0,f.isObject)(s)?s:nn(s),{columnWidthRatio:1/3})),a.annotation().shape({render:function(l,u){var c=l.addGroup({id:"".concat(a.id,"-conversion-tag-group"),name:"conversion-tag-group"}),h=(0,f.find)(a.geometries,function(p){return p.type==="interval"}),v={view:u,geometry:h,group:c,field:e,horizontal:r,options:hb(o,r)},d=h.elements;(0,f.each)(d,function(p,y){y>0&&db(v,d[y-1],p)})}})),i}}function pb(e){var r=e.options,t=r.legend,i=r.seriesField,n=r.isStack;return i?t!==!1&&(t=(0,g.__assign)({position:n?"right-top":"top-left"},t)):t=!1,e.options.legend=t,e}function yb(e){var r=e.chart,t=e.options,i=t.data,n=t.columnStyle,a=t.color,o=t.columnWidthRatio,s=t.isPercent,l=t.isGroup,u=t.isStack,c=t.xField,h=t.yField,v=t.seriesField,d=t.groupField,p=t.tooltip,y=t.shape,x=s&&l&&u?$1(i,h,[c,d],h):pn(i,h,c,h,s),m=[];u&&v&&!l?x.forEach(function(S){var b=m.find(function(C){return C[c]===S[c]&&C[v]===S[v]});b?b[h]+=S[h]||0:m.push((0,g.__assign)({},S))}):m=x,r.data(m);var _=s?(0,g.__assign)({formatter:function(S){var b;return{name:l&&u?"".concat(S[v]," - ").concat(S[d]):(b=S[v])!==null&&b!==void 0?b:S[c],value:(Number(S[h])*100).toFixed(2)+"%"}}},p):p,w=P({},e,{options:{data:m,widthRatio:o,tooltip:_,interval:{shape:y,style:n,color:a}}});return Fe(w),w}function Os(e){var r,t,i=e.options,n=i.xAxis,a=i.yAxis,o=i.xField,s=i.yField,l=i.data,u=i.isPercent,c=u?{max:1,min:0,minLimit:0,maxLimit:1}:{};return Lt(he((r={},r[o]=n,r[s]=a,r),(t={},t[o]={type:"cat"},t[s]=(0,g.__assign)((0,g.__assign)({},Ss(l,s)),c),t)))(e)}function mb(e){var r=e.chart,t=e.options,i=t.xAxis,n=t.yAxis,a=t.xField,o=t.yField;return i===!1?r.axis(a,!1):r.axis(a,i),n===!1?r.axis(o,!1):r.axis(o,n),e}function xb(e){var r=e.chart,t=e.options,i=t.legend,n=t.seriesField;return i&&n?r.legend(n,i):i===!1&&r.legend(!1),e}function _b(e){var r=e.chart,t=e.options,i=t.label,n=t.yField,a=t.isRange,o=Ae(r,"interval");if(!i)o.label(!1);else{var s=i.callback,l=(0,g.__rest)(i,["callback"]);o.label({fields:[n],callback:s,cfg:(0,g.__assign)({layout:(l==null?void 0:l.position)?void 0:[{type:"interval-adjust-position"},{type:"interval-hide-overlap"},{type:"adjust-color"},{type:"limit-in-plot",cfg:{action:"hide"}}]},Se(a?(0,g.__assign)({content:function(u){var c;return(c=u[n])===null||c===void 0?void 0:c.join("-")}},l):l))})}return e}function wb(e){var r=e.chart,t=e.options,i=t.tooltip,n=t.isGroup,a=t.isStack,o=t.groupField,s=t.data,l=t.xField,u=t.yField,c=t.seriesField;if(i===!1)r.tooltip(!1);else{var h=i;if(n&&a){var v=h.customItems,d=(h==null?void 0:h.formatter)||function(p){return{name:"".concat(p[c]," - ").concat(p[o]),value:p[u]}};h=(0,g.__assign)((0,g.__assign)({},h),{customItems:function(p){var y=[];return(0,f.each)(p,function(x){var m=(0,f.filter)(s,function(_){return(0,f.isMatch)(_,$t(x.data,[l,c]))});m.forEach(function(_){y.push((0,g.__assign)((0,g.__assign)((0,g.__assign)({},x),{value:_[u],data:_,mappingData:{_origin:_}}),d(_)))})}),v?v(y):y}})}r.tooltip(h)}return e}function Ia(e,r){r===void 0&&(r=!1);var t=e.options,i=t.seriesField;return Lt(pb,Xt,Ve("columnStyle"),Or,rf("rect"),yb,Os,mb,xb,wb,gn,Ts,_b,pf,oe,Qt,le(),gb(t.yField,!r,!!i),cb(!t.isStack),jr)(e)}function Sb(e){var r=e.options,t=r.xField,i=r.yField,n=r.xAxis,a=r.yAxis,o={left:"bottom",right:"top",top:"left",bottom:"right"},s=a!==!1?(0,g.__assign)({position:o[(a==null?void 0:a.position)||"left"]},a):!1,l=n!==!1?(0,g.__assign)({position:o[(n==null?void 0:n.position)||"bottom"]},n):!1;return(0,g.__assign)((0,g.__assign)({},e),{options:(0,g.__assign)((0,g.__assign)({},r),{xField:i,yField:t,xAxis:s,yAxis:l})})}function bb(e){var r=e.options,t=r.label;return t&&!t.position&&(t.position="left",t.layout||(t.layout=[{type:"interval-adjust-position"},{type:"interval-hide-overlap"},{type:"adjust-color"},{type:"limit-in-plot",cfg:{action:"hide"}}])),P({},e,{options:{label:t}})}function Cb(e){var r=e.options,t=r.seriesField,i=r.isStack,n=r.legend;return t?n!==!1&&(n=(0,g.__assign)({position:i?"top-left":"right-top"},n||{})):n=!1,P({},e,{options:{legend:n}})}function Mb(e){var r=e.options,t=[{type:"transpose"},{type:"reflectY"}].concat(r.coordinate||[]);return P({},e,{options:{coordinate:t}})}function Ab(e){var r=e.chart,t=e.options,i=t.barStyle,n=t.barWidthRatio,a=t.minBarWidth,o=t.maxBarWidth,s=t.barBackground;return Ia({chart:r,options:(0,g.__assign)((0,g.__assign)({},t),{columnStyle:i,columnWidthRatio:n,minColumnWidth:a,maxColumnWidth:o,columnBackground:s})},!0)}function mf(e){return Lt(Sb,bb,Cb,me,Mb,Ab)(e)}var Fb=P({},Dt.getDefaultOptions(),{barWidthRatio:.6,marginRatio:1/32,tooltip:{shared:!0,showMarkers:!1,offset:20},legend:{radio:{}},interactions:[{type:"active-region"}]}),Eb=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.type="bar",t}return r.getDefaultOptions=function(){return Fb},r.prototype.changeData=function(t){var i,n;this.updateOption({data:t});var a=this,o=a.chart,s=a.options,l=s.isPercent,u=s.xField,c=s.yField,h=s.xAxis,v=s.yAxis;i=[c,u],u=i[0],c=i[1],n=[v,h],h=n[0],v=n[1];var d=(0,g.__assign)((0,g.__assign)({},s),{xField:u,yField:c,yAxis:v,xAxis:h});Os({chart:o,options:d}),o.changeData(pn(t,u,c,u,l))},r.prototype.getDefaultOptions=function(){return r.getDefaultOptions()},r.prototype.getSchemaAdaptor=function(){return mf},r}(Dt),Tb=P({},Dt.getDefaultOptions(),{columnWidthRatio:.6,marginRatio:1/32,tooltip:{shared:!0,showMarkers:!1,offset:20},legend:{radio:{}},interactions:[{type:"active-region"}]}),xf=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.type="column",t}return r.getDefaultOptions=function(){return Tb},r.prototype.changeData=function(t){this.updateOption({data:t});var i=this.options,n=i.yField,a=i.xField,o=i.isPercent,s=this,l=s.chart,u=s.options;Os({chart:l,options:u}),this.chart.changeData(pn(t,n,a,n,o))},r.prototype.getDefaultOptions=function(){return r.getDefaultOptions()},r.prototype.getSchemaAdaptor=function(){return Ia},r}(Dt),Ps,Pr="$$percentage$$",kr="$$mappingValue$$",dr="$$conversion$$",ks="$$totalPercentage$$",yn="$$x$$",mn="$$y$$",Lb={appendPadding:[0,80],minSize:0,maxSize:1,meta:(Ps={},Ps[kr]={min:0,max:1,nice:!1},Ps),label:{style:{fill:"#fff",fontSize:12}},tooltip:{showTitle:!1,showMarkers:!1,shared:!1},conversionTag:{offsetX:10,offsetY:0,style:{fontSize:12,fill:"rgba(0,0,0,0.45)"}}},_f="CONVERSION_TAG_NAME";function Ds(e,r,t){var i=[],n=t.yField,a=t.maxSize,o=t.minSize,s=(0,f.get)((0,f.maxBy)(r,n),[n]),l=(0,f.isNumber)(a)?a:1,u=(0,f.isNumber)(o)?o:0;return i=(0,f.map)(e,function(c,h){var v=(c[n]||0)/s;return c[Pr]=v,c[kr]=(l-u)*v+u,c[dr]=[(0,f.get)(e,[h-1,n]),c[n]],c}),i}function Bs(e){return function(r){var t=r.chart,i=r.options,n=i.conversionTag,a=i.filteredData,o=a||t.getOptions().data;if(n){var s=n.formatter;o.forEach(function(l,u){if(!(u<=0||Number.isNaN(l[kr]))){var c=e(l,u,o,{top:!0,name:_f,text:{content:(0,f.isFunction)(s)?s(l,o):s,offsetX:n.offsetX,offsetY:n.offsetY,position:"end",autoRotate:!1,style:(0,g.__assign)({textAlign:"start",textBaseline:"middle"},n.style)}});t.annotation().line(c)}})}return r}}function Ib(e){var r=e.chart,t=e.options,i=t.data,n=i===void 0?[]:i,a=t.yField,o=t.maxSize,s=t.minSize,l=Ds(n,n,{yField:a,maxSize:o,minSize:s});return r.data(l),e}function Ob(e){var r=e.chart,t=e.options,i=t.xField,n=t.yField,a=t.color,o=t.tooltip,s=t.label,l=t.shape,u=l===void 0?"funnel":l,c=t.funnelStyle,h=t.state,v=Ye(o,[i,n]),d=v.fields,p=v.formatter;Re({chart:r,options:{type:"interval",xField:i,yField:kr,colorField:i,tooltipFields:(0,f.isArray)(d)&&d.concat([Pr,dr]),mapping:{shape:u,tooltip:p,color:a,style:c},label:s,state:h}});var y=Ae(e.chart,"interval");return y.adjust("symmetric"),e}function Pb(e){var r=e.chart,t=e.options,i=t.isTransposed;return r.coordinate({type:"rect",actions:i?[]:[["transpose"],["scale",1,-1]]}),e}function wf(e){var r=e.options,t=e.chart,i=r.maxSize,n=(0,f.get)(t,["geometries","0","dataArray"],[]),a=(0,f.get)(t,["options","data","length"]),o=(0,f.map)(n,function(l){return(0,f.get)(l,["0","nextPoints","0","x"])*a-.5}),s=function(l,u,c,h){var v=i-(i-l[kr])/2;return(0,g.__assign)((0,g.__assign)({},h),{start:[o[u-1]||u-.5,v],end:[o[u-1]||u-.5,v+.05]})};return Bs(s)(e),e}function Sf(e){return Lt(Ib,Ob,Pb,wf)(e)}function kb(e){var r,t=e.chart,i=e.options,n=i.data,a=n===void 0?[]:n,o=i.yField;return t.data(a),t.scale((r={},r[o]={sync:!0},r)),e}function Db(e){var r=e.chart,t=e.options,i=t.data,n=t.xField,a=t.yField,o=t.color,s=t.compareField,l=t.isTransposed,u=t.tooltip,c=t.maxSize,h=t.minSize,v=t.label,d=t.funnelStyle,p=t.state,y=t.showFacetTitle;return r.facet("mirror",{fields:[s],transpose:!l,padding:l?0:[32,0,0,0],showTitle:y,eachView:function(x,m){var _=l?m.rowIndex:m.columnIndex;l||x.coordinate({type:"rect",actions:[["transpose"],["scale",_===0?-1:1,-1]]});var w=Ds(m.data,i,{yField:a,maxSize:c,minSize:h});x.data(w);var S=Ye(u,[n,a,s]),b=S.fields,C=S.formatter,M=l?{offset:_===0?10:-23,position:_===0?"bottom":"top"}:{offset:10,position:"left",style:{textAlign:_===0?"end":"start"}};Re({chart:x,options:{type:"interval",xField:n,yField:kr,colorField:n,tooltipFields:(0,f.isArray)(b)&&b.concat([Pr,dr]),mapping:{shape:"funnel",tooltip:C,color:o,style:d},label:v===!1?!1:P({},M,v),state:p}})}}),e}function bf(e){var r=e.chart,t=e.index,i=e.options,n=i.conversionTag,a=i.isTransposed;((0,f.isNumber)(t)?[r]:r.views).forEach(function(o,s){var l=(0,f.get)(o,["geometries","0","dataArray"],[]),u=(0,f.get)(o,["options","data","length"]),c=(0,f.map)(l,function(v){return(0,f.get)(v,["0","nextPoints","0","x"])*u-.5}),h=function(v,d,p,y){var x=(t||s)===0?-1:1;return P({},y,{start:[c[d-1]||d-.5,v[kr]],end:[c[d-1]||d-.5,v[kr]+.05],text:a?{style:{textAlign:"start"}}:{offsetX:n!==!1?x*n.offsetX:0,style:{textAlign:(t||s)===0?"end":"start"}}})};Bs(h)(P({},{chart:o,options:i}))})}function Bb(e){var r=e.chart;return r.once("beforepaint",function(){return bf(e)}),e}function Rb(e){return Lt(kb,Db,Bb)(e)}function Nb(e){var r=e.chart,t=e.options,i=t.data,n=i===void 0?[]:i,a=t.yField,o=(0,f.reduce)(n,function(u,c){return u+(c[a]||0)},0),s=(0,f.maxBy)(n,a)[a],l=(0,f.map)(n,function(u,c){var h=[],v=[];if(u[ks]=(u[a]||0)/o,c){var d=n[c-1][yn],p=n[c-1][mn];h[0]=d[3],v[0]=p[3],h[1]=d[2],v[1]=p[2]}else h[0]=-.5,v[0]=1,h[1]=.5,v[1]=1;return v[2]=v[1]-u[ks],h[2]=(v[2]+1)/4,v[3]=v[2],h[3]=-h[2],u[yn]=h,u[mn]=v,u[Pr]=(u[a]||0)/s,u[dr]=[(0,f.get)(n,[c-1,a]),u[a]],u});return r.data(l),e}function zb(e){var r=e.chart,t=e.options,i=t.xField,n=t.yField,a=t.color,o=t.tooltip,s=t.label,l=t.funnelStyle,u=t.state,c=Ye(o,[i,n]),h=c.fields,v=c.formatter;return Re({chart:r,options:{type:"polygon",xField:yn,yField:mn,colorField:i,tooltipFields:(0,f.isArray)(h)&&h.concat([Pr,dr]),label:s,state:u,mapping:{tooltip:v,color:a,style:l}}}),e}function Vb(e){var r=e.chart,t=e.options,i=t.isTransposed;return r.coordinate({type:"rect",actions:i?[["transpose"],["reflect","x"]]:[]}),e}function Gb(e){var r=function(t,i,n,a){return(0,g.__assign)((0,g.__assign)({},a),{start:[t[yn][1],t[mn][1]],end:[t[yn][1]+.05,t[mn][1]]})};return Bs(r)(e),e}function Wb(e){return Lt(Nb,zb,Vb,Gb)(e)}function Hb(e){var r,t=e.chart,i=e.options,n=i.data,a=n===void 0?[]:n,o=i.yField;return t.data(a),t.scale((r={},r[o]={sync:!0},r)),e}function Yb(e){var r=e.chart,t=e.options,i=t.seriesField,n=t.isTransposed,a=t.showFacetTitle;return r.facet("rect",{fields:[i],padding:[n?0:32,10,0,10],showTitle:a,eachView:function(o,s){Sf(P({},e,{chart:o,options:{data:s.data}}))}}),e}function Xb(e){return Lt(Hb,Yb)(e)}var Ub=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.rendering=!1,t}return r.prototype.change=function(t){var i=this;if(!this.rendering){var n=t.seriesField,a=t.compareField,o=a?bf:wf,s=this.context.view,l=n||a?s.views:[s];(0,f.map)(l,function(u,c){var h=u.getController("annotation"),v=(0,f.filter)((0,f.get)(h,["option"],[]),function(p){var y=p.name;return y!==_f});h.clear(!0),(0,f.each)(v,function(p){typeof p=="object"&&u.annotation()[p.type](p)});var d=(0,f.get)(u,["filteredData"],u.getOptions().data);o({chart:u,index:c,options:(0,g.__assign)((0,g.__assign)({},t),{filteredData:Ds(d,d,t)})}),u.filterData(d),i.rendering=!0,u.render(!0)})}this.rendering=!1},r}(ne),Cf="funnel-conversion-tag",Rs="funnel-afterrender",Mf={trigger:"afterrender",action:"".concat(Cf,":change")};_t(Cf,Ub),Pt(Rs,{start:[Mf]});function Zb(e){var r=e.options,t=r.compareField,i=r.xField,n=r.yField,a=r.locale,o=r.funnelStyle,s=r.data,l=Ma(a),u={label:t?{fields:[i,n,t,Pr,dr],formatter:function(h){return"".concat(h[n])}}:{fields:[i,n,Pr,dr],offset:0,position:"middle",formatter:function(h){return"".concat(h[i]," ").concat(h[n])}},tooltip:{title:i,formatter:function(h){return{name:h[i],value:h[n]}}},conversionTag:{formatter:function(h){return"".concat(l.get(["conversionTag","label"]),": ").concat(yf.apply(void 0,h[dr]))}}},c;return(t||o)&&(c=function(h){return P({},t&&{lineWidth:1,stroke:"#fff"},(0,f.isFunction)(o)?o(h):o)}),P({options:u},e,{options:{funnelStyle:c,data:(0,f.clone)(s)}})}function qb(e){var r=e.options,t=r.compareField,i=r.dynamicHeight,n=r.seriesField;return n?Xb(e):t?Rb(e):i?Wb(e):Sf(e)}function jb(e){var r,t=e.options,i=t.xAxis,n=t.yAxis,a=t.xField,o=t.yField;return Lt(he((r={},r[a]=i,r[o]=n,r)))(e)}function Kb(e){var r=e.chart;return r.axis(!1),e}function $b(e){var r=e.chart,t=e.options,i=t.legend;return i===!1?r.legend(!1):r.legend(i),e}function Qb(e){var r=e.chart,t=e.options,i=t.interactions,n=t.dynamicHeight;return(0,f.each)(i,function(a){a.enable===!1?r.removeInteraction(a.type):r.interaction(a.type,a.cfg||{})}),n?r.removeInteraction(Rs):r.interaction(Rs,{start:[(0,g.__assign)((0,g.__assign)({},Mf),{arg:t})]}),e}function Af(e){return Lt(Zb,qb,jb,Kb,me,Qb,$b,Qt,Xt,le())(e)}var Jb=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.type="funnel",t}return r.getDefaultOptions=function(){return Lb},r.prototype.getDefaultOptions=function(){return r.getDefaultOptions()},r.prototype.getSchemaAdaptor=function(){return Af},r.prototype.setState=function(t,i,n){n===void 0&&(n=!0);var a=fn(this.chart);(0,f.each)(a,function(o){i(o.getData())&&o.setState(t,n)})},r.prototype.getStates=function(){var t=fn(this.chart),i=[];return(0,f.each)(t,function(n){var a=n.getData(),o=n.getStates();(0,f.each)(o,function(s){i.push({data:a,state:s,geometry:n.geometry,element:n})})}),i},r.CONVERSATION_FIELD=dr,r.PERCENT_FIELD=Pr,r.TOTAL_PERCENT_FIELD=ks,r}(Dt),Oa,Ns="range",Ff="type",gr="percent",tC="#f0f0f0",Ef="indicator-view",Tf="range-view",eC={percent:0,range:{ticks:[]},innerRadius:.9,radius:.95,startAngle:-7/6*Math.PI,endAngle:1/6*Math.PI,syncViewPadding:!0,axis:{line:null,label:{offset:-24,style:{textAlign:"center",textBaseline:"middle"}},subTickLine:{length:-8},tickLine:{length:-12},grid:null},indicator:{pointer:{style:{lineWidth:5,lineCap:"round"}},pin:{style:{r:9.75,lineWidth:4.5,fill:"#fff"}}},statistic:{title:!1},meta:(Oa={},Oa[Ns]={sync:"v"},Oa[gr]={sync:"v",tickCount:5,tickInterval:.2},Oa),animation:!1};function rC(e,r){return e.map(function(t,i){var n;return n={},n[Ns]=t-(e[i-1]||0),n[Ff]="".concat(i),n[gr]=r,n})}function Lf(e){var r;return[(r={},r[gr]=(0,f.clamp)(e,0,1),r)]}function If(e,r){var t=(0,f.get)(r,["ticks"],[]),i=(0,f.size)(t)?(0,f.uniq)(t):[0,(0,f.clamp)(e,0,1),1];return i[0]||i.shift(),rC(i,e)}function iC(e){var r=e.chart,t=e.options,i=t.percent,n=t.range,a=t.radius,o=t.innerRadius,s=t.startAngle,l=t.endAngle,u=t.axis,c=t.indicator,h=t.gaugeStyle,v=t.type,d=t.meter,p=n.color,y=n.width;if(c){var x=Lf(i),m=r.createView({id:Ef});m.data(x),m.point().position("".concat(gr,"*1")).shape(c.shape||"gauge-indicator").customInfo({defaultColor:r.getTheme().defaultColor,indicator:c}),m.coordinate("polar",{startAngle:s,endAngle:l,radius:o*a}),m.axis(gr,u),m.scale(gr,$t(u,Be))}var _=If(i,t.range),w=r.createView({id:Tf});w.data(_);var S=(0,f.isString)(p)?[p,tC]:p,b=Fe({chart:w,options:{xField:"1",yField:Ns,seriesField:Ff,rawFields:[gr],isStack:!0,interval:{color:S,style:h,shape:v==="meter"?"meter-gauge":null},args:{zIndexReversed:!0,sortZIndex:!0},minColumnWidth:y,maxColumnWidth:y}}).ext,C=b.geometry;return C.customInfo({meter:d}),w.coordinate("polar",{innerRadius:o,radius:a,startAngle:s,endAngle:l}).transpose(),e}function nC(e){var r;return Lt(he((r={range:{min:0,max:1,maxLimit:1,minLimit:0}},r[gr]={},r)))(e)}function Of(e,r){var t=e.chart,i=e.options,n=i.statistic,a=i.percent;if(t.getController("annotation").clear(!0),n){var o=n.content,s=void 0;o&&(s=P({},{content:"".concat((a*100).toFixed(2),"%"),style:{opacity:.75,fontSize:"30px",lineHeight:1,textAlign:"center",color:"rgba(44,53,66,0.85)"}},o)),D1(t,{statistic:(0,g.__assign)((0,g.__assign)({},n),{content:s})},{percent:a})}return r&&t.render(!0),e}function aC(e){var r=e.chart,t=e.options,i=t.tooltip;return i?r.tooltip(P({showTitle:!1,showMarkers:!1,containerTpl:'
      ',domStyles:{"g2-tooltip":{padding:"4px 8px",fontSize:"10px"}},customContent:function(n,a){var o=(0,f.get)(a,[0,"data",gr],0);return"".concat((o*100).toFixed(2),"%")}},i)):r.tooltip(!1),e}function oC(e){var r=e.chart;return r.legend(!1),e}function Pf(e){return Lt(Xt,Qt,iC,nC,aC,Of,oe,le(),oC)(e)}qt("point","gauge-indicator",{draw:function(e,r){var t=e.customInfo,i=t.indicator,n=t.defaultColor,a=i,o=a.pointer,s=a.pin,l=r.addGroup(),u=this.parsePoint({x:0,y:0});return o&&l.addShape("line",{name:"pointer",attrs:(0,g.__assign)({x1:u.x,y1:u.y,x2:e.x,y2:e.y,stroke:n},o.style)}),s&&l.addShape("circle",{name:"pin",attrs:(0,g.__assign)({x:u.x,y:u.y,stroke:n},s.style)}),l}}),qt("interval","meter-gauge",{draw:function(e,r){var t=e.customInfo.meter,i=t===void 0?{}:t,n=i.steps,a=n===void 0?50:n,o=i.stepRatio,s=o===void 0?.5:o;a=a<1?1:a,s=(0,f.clamp)(s,0,1);var l=this.coordinate,u=l.startAngle,c=l.endAngle,h=0;if(s>0&&s<1){var v=c-u;h=v/a/(s/(1-s)+1-1/a)}for(var d=h/(1-s)*s,p=r.addGroup(),y=this.coordinate.getCenter(),x=this.coordinate.getRadius(),m=ke.getAngle(e,this.coordinate),_=m.startAngle,w=m.endAngle,S=_;S1?l/(i-1):s.max),!t&&!i){var c=lC(o);u=l/c}var h={},v=(0,f.groupBy)(a,n);(0,f.isEmpty)(v)?(0,f.each)(a,function(p){var y=p[r],x=kf(y,u,i),m="".concat(x[0],"-").concat(x[1]);(0,f.hasKey)(h,m)||(h[m]={range:x,count:0}),h[m].count+=1}):Object.keys(v).forEach(function(p){(0,f.each)(v[p],function(y){var x=y[r],m=kf(x,u,i),_="".concat(m[0],"-").concat(m[1]),w="".concat(_,"-").concat(p);(0,f.hasKey)(h,w)||(h[w]={range:m,count:0},h[w][n]=p),h[w].count+=1})});var d=[];return(0,f.each)(h,function(p){d.push(p)}),d}var Pa="range",xn="count",uC=P({},Dt.getDefaultOptions(),{columnStyle:{stroke:"#FFFFFF"},tooltip:{shared:!0,showMarkers:!1},interactions:[{type:"active-region"}]});function cC(e){var r=e.chart,t=e.options,i=t.data,n=t.binField,a=t.binNumber,o=t.binWidth,s=t.color,l=t.stackField,u=t.legend,c=t.columnStyle,h=Df(i,n,o,a,l);r.data(h);var v=P({},e,{options:{xField:Pa,yField:xn,seriesField:l,isStack:!0,interval:{color:s,style:c}}});return Fe(v),u&&l?r.legend(l,u):r.legend(!1),e}function hC(e){var r,t=e.options,i=t.xAxis,n=t.yAxis;return Lt(he((r={},r[Pa]=i,r[xn]=n,r)))(e)}function fC(e){var r=e.chart,t=e.options,i=t.xAxis,n=t.yAxis;return i===!1?r.axis(Pa,!1):r.axis(Pa,i),n===!1?r.axis(xn,!1):r.axis(xn,n),e}function vC(e){var r=e.chart,t=e.options,i=t.label,n=Ae(r,"interval");if(!i)n.label(!1);else{var a=i.callback,o=(0,g.__rest)(i,["callback"]);n.label({fields:[xn],callback:a,cfg:Se(o)})}return e}function Bf(e){return Lt(Xt,Ve("columnStyle"),cC,hC,fC,Or,vC,me,oe,Qt)(e)}var dC=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.type="histogram",t}return r.getDefaultOptions=function(){return uC},r.prototype.changeData=function(t){this.updateOption({data:t});var i=this.options,n=i.binField,a=i.binNumber,o=i.binWidth,s=i.stackField;this.chart.changeData(Df(t,n,o,a,s))},r.prototype.getDefaultOptions=function(){return r.getDefaultOptions()},r.prototype.getSchemaAdaptor=function(){return Bf},r}(Dt),gC=P({},Dt.getDefaultOptions(),{tooltip:{shared:!0,showMarkers:!0,showCrosshairs:!0,crosshairs:{type:"x"}},legend:{position:"top-left",radio:{}},isStack:!1}),pC=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.active=function(){var t=this.getView(),i=this.context.event;if(i.data){var n=i.data.items,a=t.geometries.filter(function(o){return o.type==="point"});(0,f.each)(a,function(o){(0,f.each)(o.elements,function(s){var l=(0,f.findIndex)(n,function(u){return u.data===s.data})!==-1;s.setState("active",l)})})}},r.prototype.reset=function(){var t=this.getView(),i=t.geometries.filter(function(n){return n.type==="point"});(0,f.each)(i,function(n){(0,f.each)(n.elements,function(a){a.setState("active",!1)})})},r.prototype.getView=function(){return this.context.view},r}(ne);_t("marker-active",pC),Pt("marker-active",{start:[{trigger:"tooltip:show",action:"marker-active:active"}],end:[{trigger:"tooltip:hide",action:"marker-active:reset"}]});var Rf=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.type="line",t}return r.getDefaultOptions=function(){return gC},r.prototype.changeData=function(t){this.updateOption({data:t});var i=this,n=i.chart,a=i.options;Ta({chart:n,options:a}),this.chart.changeData(t)},r.prototype.getDefaultOptions=function(){return r.getDefaultOptions()},r.prototype.getSchemaAdaptor=function(){return ff},r}(Dt),Nf=P({},Dt.getDefaultOptions(),{legend:{position:"right",radio:{}},tooltip:{shared:!1,showTitle:!1,showMarkers:!1},label:{layout:{type:"limit-in-plot",cfg:{action:"ellipsis"}}},pieStyle:{stroke:"white",lineWidth:1},statistic:{title:{style:{fontWeight:300,color:"#4B535E",textAlign:"center",fontSize:"20px",lineHeight:1}},content:{style:{fontWeight:"bold",color:"rgba(44,53,66,0.85)",textAlign:"center",fontSize:"32px",lineHeight:1}}},theme:{components:{annotation:{text:{animate:!1}}}}}),yC=[1,0,0,0,1,0,0,0,1];function zs(e,r){var t=r?(0,g.__spreadArray)([],r,!0):(0,g.__spreadArray)([],yC,!0);return ke.transform(t,e)}var mC=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getActiveElements=function(){var t=ke.getDelegationObject(this.context);if(t){var i=this.context.view,n=t.component,a=t.item,o=n.get("field");if(o){var s=i.geometries[0].elements;return s.filter(function(l){return l.getModel().data[o]===a.value})}}return[]},r.prototype.getActiveElementLabels=function(){var t=this.context.view,i=this.getActiveElements(),n=t.geometries[0].labelsContainer.getChildren();return n.filter(function(a){return i.find(function(o){return(0,f.isEqual)(o.getData(),a.get("data"))})})},r.prototype.transfrom=function(t){t===void 0&&(t=7.5);var i=this.getActiveElements(),n=this.getActiveElementLabels();i.forEach(function(a,o){var s=n[o],l=a.geometry.coordinate;if(l.isPolar&&l.isTransposed){var u=ke.getAngle(a.getModel(),l),c=u.startAngle,h=u.endAngle,v=(c+h)/2,d=t,p=d*Math.cos(v),y=d*Math.sin(v);a.shape.setMatrix(zs([["t",p,y]])),s.setMatrix(zs([["t",p,y]]))}})},r.prototype.active=function(){this.transfrom()},r.prototype.reset=function(){this.transfrom(0)},r}(ne);function xC(e){var r=e.event,t,i=r.target;return i&&(t=i.get("element")),t}var _C=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getAnnotations=function(t){var i=t||this.context.view;return i.getController("annotation").option},r.prototype.getInitialAnnotation=function(){return this.initialAnnotation},r.prototype.init=function(){var t=this,i=this.context.view;i.removeInteraction("tooltip"),i.on("afterchangesize",function(){var n=t.getAnnotations(i);t.initialAnnotation=n})},r.prototype.change=function(t){var i=this.context,n=i.view,a=i.event;this.initialAnnotation||(this.initialAnnotation=this.getAnnotations());var o=(0,f.get)(a,["data","data"]);if(a.type.match("legend-item")){var s=ke.getDelegationObject(this.context),l=n.getGroupedFields()[0];if(s&&l){var u=s.item;o=n.getData().find(function(d){return d[l]===u.value})}}if(o){var c=(0,f.get)(t,"annotations",[]),h=(0,f.get)(t,"statistic",{});n.getController("annotation").clear(!0),(0,f.each)(c,function(d){typeof d=="object"&&n.annotation()[d.type](d)}),Sa(n,{statistic:h,plotType:"pie"},o),n.render(!0)}var v=xC(this.context);v&&v.shape.toFront()},r.prototype.reset=function(){var t=this.context.view,i=t.getController("annotation");i.clear(!0);var n=this.getInitialAnnotation();(0,f.each)(n,function(a){t.annotation()[a.type](a)}),t.render(!0)},r}(ne),zf="pie-statistic";_t(zf,_C),Pt("pie-statistic-active",{start:[{trigger:"element:mouseenter",action:"pie-statistic:change"}],end:[{trigger:"element:mouseleave",action:"pie-statistic:reset"}]}),_t("pie-legend",mC),Pt("pie-legend-active",{start:[{trigger:"legend-item:mouseenter",action:"pie-legend:active"}],end:[{trigger:"legend-item:mouseleave",action:"pie-legend:reset"}]});function wC(e,r){var t=null;return(0,f.each)(e,function(i){typeof i[r]=="number"&&(t+=i[r])}),t}function SC(e,r){var t;switch(e){case"inner":return t="-30%",(0,f.isString)(r)&&r.endsWith("%")?parseFloat(r)*.01>0?t:r:r<0?r:t;case"outer":return t=12,(0,f.isString)(r)&&r.endsWith("%")?parseFloat(r)*.01<0?t:r:r>0?r:t;default:return r}}function ka(e,r){return(0,f.every)(wi(e,r),function(t){return t[r]===0})}function bC(e){var r=e.chart,t=e.options,i=t.data,n=t.angleField,a=t.colorField,o=t.color,s=t.pieStyle,l=t.shape,u=wi(i,n);if(ka(u,n)){var c="$$percentage$$";u=u.map(function(v){var d;return(0,g.__assign)((0,g.__assign)({},v),(d={},d[c]=1/u.length,d))}),r.data(u);var h=P({},e,{options:{xField:"1",yField:c,seriesField:a,isStack:!0,interval:{color:o,shape:l,style:s},args:{zIndexReversed:!0,sortZIndex:!0}}});Fe(h)}else{r.data(u);var h=P({},e,{options:{xField:"1",yField:n,seriesField:a,isStack:!0,interval:{color:o,shape:l,style:s},args:{zIndexReversed:!0,sortZIndex:!0}}});Fe(h)}return e}function CC(e){var r,t=e.chart,i=e.options,n=i.meta,a=i.colorField,o=P({},n);return t.scale(o,(r={},r[a]={type:"cat"},r)),e}function MC(e){var r=e.chart,t=e.options,i=t.radius,n=t.innerRadius,a=t.startAngle,o=t.endAngle;return r.coordinate({type:"theta",cfg:{radius:i,innerRadius:n,startAngle:a,endAngle:o}}),e}function AC(e){var r=e.chart,t=e.options,i=t.label,n=t.colorField,a=t.angleField,o=r.geometries[0];if(!i)o.label(!1);else{var s=i.callback,l=(0,g.__rest)(i,["callback"]),u=Se(l);if(u.content){var c=u.content;u.content=function(p,y,x){var m=p[n],_=p[a],w=r.getScaleByField(a),S=w==null?void 0:w.scale(_);return(0,f.isFunction)(c)?c((0,g.__assign)((0,g.__assign)({},p),{percent:S}),y,x):(0,f.isString)(c)?Qh(c,{value:_,name:m,percentage:(0,f.isNumber)(S)&&!(0,f.isNil)(_)?"".concat((S*100).toFixed(2),"%"):null}):c}}var h={inner:"",outer:"pie-outer",spider:"pie-spider"},v=u.type?h[u.type]:"pie-outer",d=u.layout?(0,f.isArray)(u.layout)?u.layout:[u.layout]:[];u.layout=(v?[{type:v}]:[]).concat(d),o.label({fields:n?[a,n]:[a],callback:s,cfg:(0,g.__assign)((0,g.__assign)({},u),{offset:SC(u.type,u.offset),type:"pie"})})}return e}function Vf(e){var r=e.innerRadius,t=e.statistic,i=e.angleField,n=e.colorField,a=e.meta,o=e.locale,s=Ma(o);if(r&&t){var l=P({},Nf.statistic,t),u=l.title,c=l.content;return u!==!1&&(u=P({},{formatter:function(h){var v=h?h[n]:(0,f.isNil)(u.content)?s.get(["statistic","total"]):u.content,d=(0,f.get)(a,[n,"formatter"])||function(p){return p};return d(v)}},u)),c!==!1&&(c=P({},{formatter:function(h,v){var d=h?h[i]:wC(v,i),p=(0,f.get)(a,[i,"formatter"])||function(y){return y};return h||(0,f.isNil)(c.content)?p(d):c.content}},c)),P({},{statistic:{title:u,content:c}},e)}return e}function Gf(e){var r=e.chart,t=e.options,i=Vf(t),n=i.innerRadius,a=i.statistic;return r.getController("annotation").clear(!0),Lt(le())(e),n&&a&&Sa(r,{statistic:a,plotType:"pie"}),e}function FC(e){var r=e.chart,t=e.options,i=t.tooltip,n=t.colorField,a=t.angleField,o=t.data;if(i===!1)r.tooltip(i);else if(r.tooltip(P({},i,{shared:!1})),ka(o,a)){var s=(0,f.get)(i,"fields"),l=(0,f.get)(i,"formatter");(0,f.isEmpty)((0,f.get)(i,"fields"))&&(s=[n,a],l=l||function(u){return{name:u[n],value:(0,f.toString)(u[a])}}),r.geometries[0].tooltip(s.join("*"),Si(s,l))}return e}function EC(e){var r=e.chart,t=e.options,i=Vf(t),n=i.interactions,a=i.statistic,o=i.annotations;return(0,f.each)(n,function(s){var l,u;if(s.enable===!1)r.removeInteraction(s.type);else if(s.type==="pie-statistic-active"){var c=[];((l=s.cfg)===null||l===void 0?void 0:l.start)||(c=[{trigger:"element:mouseenter",action:"".concat(zf,":change"),arg:{statistic:a,annotations:o}}]),(0,f.each)((u=s.cfg)===null||u===void 0?void 0:u.start,function(h){c.push((0,g.__assign)((0,g.__assign)({},h),{arg:{statistic:a,annotations:o}}))}),r.interaction(s.type,P({},s.cfg,{start:c}))}else r.interaction(s.type,s.cfg||{})}),e}function Wf(e){return Lt(Ve("pieStyle"),bC,CC,Xt,MC,qr,FC,AC,Or,Gf,EC,Qt)(e)}var Hf=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.type="pie",t}return r.getDefaultOptions=function(){return Nf},r.prototype.changeData=function(t){this.chart.emit(I.BEFORE_CHANGE_DATA,ue.fromData(this.chart,I.BEFORE_CHANGE_DATA,null));var i=this.options,n=this.options.angleField,a=wi(i.data,n),o=wi(t,n);ka(a,n)||ka(o,n)?this.update({data:t}):(this.updateOption({data:t}),this.chart.data(o),Gf({chart:this.chart,options:this.options}),this.chart.render(!0)),this.chart.emit(I.AFTER_CHANGE_DATA,ue.fromData(this.chart,I.AFTER_CHANGE_DATA,null))},r.prototype.getDefaultOptions=function(){return r.getDefaultOptions()},r.prototype.getSchemaAdaptor=function(){return Wf},r}(Dt),Yf=["#FAAD14","#E8EDF3"],TC={percent:.2,color:Yf,animation:{}};function Vs(e){var r=(0,f.clamp)(Zr(e)?e:0,0,1);return[{current:"".concat(r),type:"current",percent:r},{current:"".concat(r),type:"target",percent:1}]}function Xf(e){var r=e.chart,t=e.options,i=t.percent,n=t.progressStyle,a=t.color,o=t.barWidthRatio;r.data(Vs(i));var s=P({},e,{options:{xField:"current",yField:"percent",seriesField:"type",widthRatio:o,interval:{style:n,color:(0,f.isString)(a)?[a,Yf[1]]:a},args:{zIndexReversed:!0,sortZIndex:!0}}});return Fe(s),r.tooltip(!1),r.axis(!1),r.legend(!1),e}function LC(e){var r=e.chart;return r.coordinate("rect").transpose(),e}function Uf(e){return Lt(Xf,he({}),LC,Qt,Xt,le())(e)}var IC=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.type="process",t}return r.getDefaultOptions=function(){return TC},r.prototype.changeData=function(t){this.updateOption({percent:t}),this.chart.changeData(Vs(t))},r.prototype.getDefaultOptions=function(){return r.getDefaultOptions()},r.prototype.getSchemaAdaptor=function(){return Uf},r}(Dt);function OC(e){var r=e.chart,t=e.options,i=t.innerRadius,n=t.radius;return r.coordinate("theta",{innerRadius:i,radius:n}),e}function Zf(e,r){var t=e.chart,i=e.options,n=i.innerRadius,a=i.statistic,o=i.percent,s=i.meta;if(t.getController("annotation").clear(!0),n&&a){var l=(0,f.get)(s,["percent","formatter"])||function(c){return"".concat((c*100).toFixed(2),"%")},u=a.content;u&&(u=P({},u,{content:(0,f.isNil)(u.content)?l(o):u.content})),Sa(t,{statistic:(0,g.__assign)((0,g.__assign)({},a),{content:u}),plotType:"ring-progress"},{percent:o})}return r&&t.render(!0),e}function qf(e){return Lt(Xf,he({}),OC,Zf,Qt,Xt,le())(e)}var PC={percent:.2,innerRadius:.8,radius:.98,color:["#FAAD14","#E8EDF3"],statistic:{title:!1,content:{style:{fontSize:"14px",fontWeight:300,fill:"#4D4D4D",textAlign:"center",textBaseline:"middle"}}},animation:{}},kC=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.type="ring-process",t}return r.getDefaultOptions=function(){return PC},r.prototype.changeData=function(t){this.chart.emit(I.BEFORE_CHANGE_DATA,ue.fromData(this.chart,I.BEFORE_CHANGE_DATA,null)),this.updateOption({percent:t}),this.chart.data(Vs(t)),Zf({chart:this.chart,options:this.options},!0),this.chart.emit(I.AFTER_CHANGE_DATA,ue.fromData(this.chart,I.AFTER_CHANGE_DATA,null))},r.prototype.getDefaultOptions=function(){return r.getDefaultOptions()},r.prototype.getSchemaAdaptor=function(){return qf},r}(Dt),Qr=F(56645),DC={exp:Qr.regressionExp,linear:Qr.regressionLinear,loess:Qr.regressionLoess,log:Qr.regressionLog,poly:Qr.regressionPoly,pow:Qr.regressionPow,quad:Qr.regressionQuad};function BC(e,r){var t=10,i={regionStyle:[{position:{start:[e,"max"],end:["max",r]},style:{fill:"#d8d0c0",opacity:.4}},{position:{start:["min","max"],end:[e,r]},style:{fill:"#a3dda1",opacity:.4}},{position:{start:["min",r],end:[e,"min"]},style:{fill:"#d8d0c0",opacity:.4}},{position:{start:[e,r],end:["max","min"]},style:{fill:"#a3dda1",opacity:.4}}],lineStyle:{stroke:"#9ba29a",lineWidth:1},labelStyle:[{position:["max",r],offsetX:-t,offsetY:-t,style:{textAlign:"right",textBaseline:"bottom",fontSize:14,fill:"#ccc"}},{position:["min",r],offsetX:t,offsetY:-t,style:{textAlign:"left",textBaseline:"bottom",fontSize:14,fill:"#ccc"}},{position:["min",r],offsetX:t,offsetY:t,style:{textAlign:"left",textBaseline:"top",fontSize:14,fill:"#ccc"}},{position:["max",r],offsetX:-t,offsetY:t,style:{textAlign:"right",textBaseline:"top",fontSize:14,fill:"#ccc"}}]};return i}var RC=function(e,r){var t=r.view,i=r.options,n=i.xField,a=i.yField,o=t.getScaleByField(n),s=t.getScaleByField(a),l=e.map(function(u){return t.getCoordinate().convert({x:o.scale(u[0]),y:s.scale(u[1])})});return k1(l,!1)},NC=function(e){var r=e.options,t=r.xField,i=r.yField,n=r.data,a=r.regressionLine,o=a.type,s=o===void 0?"linear":o,l=a.algorithm,u=a.equation,c,h=null;if(l)c=(0,f.isArray)(l)?l:l(n),h=u;else{var v=DC[s]().x(function(d){return d[t]}).y(function(d){return d[i]});c=v(n),h=VC(s,c)}return[RC(c,e),h]},zC=function(e){var r,t=e.meta,i=t===void 0?{}:t,n=e.xField,a=e.yField,o=e.data,s=o[0][n],l=o[0][a],u=s>0,c=l>0;function h(v,d){var p=(0,f.get)(i,[v]);function y(m){return(0,f.get)(p,m)}var x={};return d==="x"?((0,f.isNumber)(s)&&((0,f.isNumber)(y("min"))||(x.min=u?0:s*2),(0,f.isNumber)(y("max"))||(x.max=u?s*2:0)),x):((0,f.isNumber)(l)&&((0,f.isNumber)(y("min"))||(x.min=c?0:l*2),(0,f.isNumber)(y("max"))||(x.max=c?l*2:0)),x)}return(0,g.__assign)((0,g.__assign)({},i),(r={},r[n]=(0,g.__assign)((0,g.__assign)({},i[n]),h(n,"x")),r[a]=(0,g.__assign)((0,g.__assign)({},i[a]),h(a,"y")),r))};function VC(e,r){var t,i,n,a=function(u,c){return c===void 0&&(c=4),Math.round(u*Math.pow(10,c))/Math.pow(10,c)},o=function(u){return Number.isFinite(u)?a(u):"?"};switch(e){case"linear":return"y = ".concat(o(r.a),"x + ").concat(o(r.b),", R^2 = ").concat(o(r.rSquared));case"exp":return"y = ".concat(o(r.a),"e^(").concat(o(r.b),"x), R^2 = ").concat(o(r.rSquared));case"log":return"y = ".concat(o(r.a),"ln(x) + ").concat(o(r.b),", R^2 = ").concat(o(r.rSquared));case"quad":return"y = ".concat(o(r.a),"x^2 + ").concat(o(r.b),"x + ").concat(o(r.c),", R^2 = ").concat(o(r.rSquared));case"poly":for(var s="y = ".concat(o((t=r.coefficients)===null||t===void 0?void 0:t[0])," + ").concat(o((i=r.coefficients)===null||i===void 0?void 0:i[1]),"x + ").concat(o((n=r.coefficients)===null||n===void 0?void 0:n[2]),"x^2"),l=3;l
      ',itemTpl:"{value}",domStyles:{"g2-tooltip":{padding:"2px 4px",fontSize:"10px"}},showCrosshairs:!0,crosshairs:{type:"x"}},nM={appendPadding:2,tooltip:(0,g.__assign)({},ev),animation:{}};function aM(e){var r=e.chart,t=e.options,i=t.data,n=t.color,a=t.areaStyle,o=t.point,s=t.line,l=o==null?void 0:o.state,u=Jr(i);r.data(u);var c=P({},e,{options:{xField:wn,yField:Ci,area:{color:n,style:a},line:s,point:o}}),h=P({},c,{options:{tooltip:!1}}),v=P({},c,{options:{tooltip:!1,state:l}});return Fa(c),bi(h),Ge(v),r.axis(!1),r.legend(!1),e}function Mi(e){var r,t,i=e.options,n=i.xAxis,a=i.yAxis,o=i.data,s=Jr(o);return Lt(he((r={},r[wn]=n,r[Ci]=a,r),(t={},t[wn]={type:"cat"},t[Ci]=Ss(s,Ci),t)))(e)}function rv(e){return Lt(Ve("areaStyle"),aM,Mi,me,Xt,Qt,le())(e)}var oM={appendPadding:2,tooltip:(0,g.__assign)({},ev),color:"l(90) 0:#E5EDFE 1:#ffffff",areaStyle:{fillOpacity:.6},line:{size:1,color:"#5B8FF9"},animation:{}},sM=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.type="tiny-area",t}return r.getDefaultOptions=function(){return oM},r.prototype.changeData=function(t){this.updateOption({data:t});var i=this,n=i.chart,a=i.options;Mi({chart:n,options:a}),n.changeData(Jr(t))},r.prototype.getDefaultOptions=function(){return r.getDefaultOptions()},r.prototype.getSchemaAdaptor=function(){return rv},r}(Dt);function lM(e){var r=e.chart,t=e.options,i=t.data,n=t.color,a=t.columnStyle,o=t.columnWidthRatio,s=Jr(i);r.data(s);var l=P({},e,{options:{xField:wn,yField:Ci,widthRatio:o,interval:{style:a,color:n}}});return Fe(l),r.axis(!1),r.legend(!1),r.interaction("element-active"),e}function iv(e){return Lt(Xt,Ve("columnStyle"),lM,Mi,me,Qt,le())(e)}var uM={showTitle:!1,shared:!0,showMarkers:!1,customContent:function(e,r){return"".concat((0,f.get)(r,[0,"data","y"],0))},containerTpl:'
      ',itemTpl:"{value}",domStyles:{"g2-tooltip":{padding:"2px 4px",fontSize:"10px"}}},cM={appendPadding:2,tooltip:(0,g.__assign)({},uM),animation:{}},hM=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.type="tiny-column",t}return r.getDefaultOptions=function(){return cM},r.prototype.changeData=function(t){this.updateOption({data:t});var i=this,n=i.chart,a=i.options;Mi({chart:n,options:a}),n.changeData(Jr(t))},r.prototype.getDefaultOptions=function(){return r.getDefaultOptions()},r.prototype.getSchemaAdaptor=function(){return iv},r}(Dt);function fM(e){var r=e.chart,t=e.options,i=t.data,n=t.color,a=t.lineStyle,o=t.point,s=o==null?void 0:o.state,l=Jr(i);r.data(l);var u=P({},e,{options:{xField:wn,yField:Ci,line:{color:n,style:a},point:o}}),c=P({},u,{options:{tooltip:!1,state:s}});return bi(u),Ge(c),r.axis(!1),r.legend(!1),e}function nv(e){return Lt(fM,Mi,Xt,me,Qt,le())(e)}var vM=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.type="tiny-line",t}return r.getDefaultOptions=function(){return nM},r.prototype.changeData=function(t){this.updateOption({data:t});var i=this,n=i.chart,a=i.options;Mi({chart:n,options:a}),n.changeData(Jr(t))},r.prototype.getDefaultOptions=function(){return r.getDefaultOptions()},r.prototype.getSchemaAdaptor=function(){return nv},r}(Dt),dM={line:ff,pie:Wf,column:Ia,bar:mf,area:vf,gauge:Pf,"tiny-line":nv,"tiny-column":iv,"tiny-area":rv,"ring-progress":qf,progress:Uf,scatter:Kf,histogram:Bf,funnel:Af,stock:tv},gM={line:Rf,pie:Hf,column:xf,bar:Eb,area:df,gauge:sC,"tiny-line":vM,"tiny-column":hM,"tiny-area":sM,"ring-progress":kC,progress:IC,scatter:jC,histogram:dC,funnel:Jb,stock:iM},pM={pie:{label:!1},column:{tooltip:{showMarkers:!1}},bar:{tooltip:{showMarkers:!1}}};function Gs(e,r,t){var i=gM[e];if(!i){console.error("could not find ".concat(e," plot"));return}var n=dM[e];n({chart:r,options:P({},i.getDefaultOptions(),(0,f.get)(pM,e,{}),t)})}function yM(e){var r=e.chart,t=e.options,i=t.views,n=t.legend;return(0,f.each)(i,function(a){var o=a.region,s=a.data,l=a.meta,u=a.axes,c=a.coordinate,h=a.interactions,v=a.annotations,d=a.tooltip,p=a.geometries,y=r.createView({region:o});y.data(s);var x={};u&&(0,f.each)(u,function(m,_){x[_]=$t(m,Be)}),x=P({},l,x),y.scale(x),u?(0,f.each)(u,function(m,_){y.axis(_,m)}):y.axis(!1),y.coordinate(c),(0,f.each)(p,function(m){var _=Re({chart:y,options:m}).ext,w=m.adjust;w&&_.geometry.adjust(w)}),(0,f.each)(h,function(m){m.enable===!1?y.removeInteraction(m.type):y.interaction(m.type,m.cfg)}),(0,f.each)(v,function(m){y.annotation()[m.type]((0,g.__assign)({},m))}),typeof a.animation=="boolean"?y.animate(!1):(y.animate(!0),(0,f.each)(y.geometries,function(m){m.animate(a.animation)})),d&&(y.interaction("tooltip"),y.tooltip(d))}),n?(0,f.each)(n,function(a,o){r.legend(o,a)}):r.legend(!1),r.tooltip(t.tooltip),e}function mM(e){var r=e.chart,t=e.options,i=t.plots,n=t.data,a=n===void 0?[]:n;return(0,f.each)(i,function(o){var s=o.type,l=o.region,u=o.options,c=u===void 0?{}:u,h=o.top,v=c.tooltip;if(h){Gs(s,r,(0,g.__assign)((0,g.__assign)({},c),{data:a}));return}var d=r.createView((0,g.__assign)({region:l},$t(c,lf)));v&&d.interaction("tooltip"),Gs(s,d,(0,g.__assign)({data:a},c))}),e}function xM(e){var r=e.chart,t=e.options;return r.option("slider",t.slider),e}function _M(e){return Lt(Qt,yM,mM,oe,Qt,Xt,me,xM,le())(e)}function wM(e,r){var t=e.getModel(),i=t.data,n;return(0,f.isArray)(i)?n=i[0][r]:n=i[r],n}function SM(e){var r=_a(e);(0,f.each)(r,function(t){t.hasState("active")&&t.setState("active",!1),t.hasState("selected")&&t.setState("selected",!1),t.hasState("inactive")&&t.setState("inactive",!1)})}var bM=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getAssociationItems=function(t,i){var n,a=this.context.event,o=i||{},s=o.linkField,l=o.dim,u=[];if((n=a.data)===null||n===void 0?void 0:n.data){var c=a.data.data;(0,f.each)(t,function(h){var v,d,p=s;if(l==="x"?p=h.getXScale().field:l==="y"?p=(v=h.getYScales().find(function(x){return x.field===p}))===null||v===void 0?void 0:v.field:p||(p=(d=h.getGroupScales()[0])===null||d===void 0?void 0:d.field),!!p){var y=(0,f.map)(_a(h),function(x){var m=!1,_=!1,w=(0,f.isArray)(c)?(0,f.get)(c[0],p):(0,f.get)(c,p);return wM(x,p)===w?m=!0:_=!0,{element:x,view:h,active:m,inactive:_}});u.push.apply(u,y)}})}return u},r.prototype.showTooltip=function(t){var i=Jh(this.context.view),n=this.getAssociationItems(i,t);(0,f.each)(n,function(a){if(a.active){var o=a.element.shape.getCanvasBBox();a.view.showTooltip({x:o.minX+o.width/2,y:o.minY+o.height/2})}})},r.prototype.hideTooltip=function(){var t=Jh(this.context.view);(0,f.each)(t,function(i){i.hideTooltip()})},r.prototype.active=function(t){var i=vn(this.context.view),n=this.getAssociationItems(i,t);(0,f.each)(n,function(a){var o=a.active,s=a.element;o&&s.setState("active",!0)})},r.prototype.selected=function(t){var i=vn(this.context.view),n=this.getAssociationItems(i,t);(0,f.each)(n,function(a){var o=a.active,s=a.element;o&&s.setState("selected",!0)})},r.prototype.highlight=function(t){var i=vn(this.context.view),n=this.getAssociationItems(i,t);(0,f.each)(n,function(a){var o=a.inactive,s=a.element;o&&s.setState("inactive",!0)})},r.prototype.reset=function(){var t=vn(this.context.view);(0,f.each)(t,function(i){SM(i)})},r}(ne);_t("association",bM),Pt("association-active",{start:[{trigger:"element:mouseenter",action:"association:active"}],end:[{trigger:"element:mouseleave",action:"association:reset"}]}),Pt("association-selected",{start:[{trigger:"element:mouseenter",action:"association:selected"}],end:[{trigger:"element:mouseleave",action:"association:reset"}]}),Pt("association-highlight",{start:[{trigger:"element:mouseenter",action:"association:highlight"}],end:[{trigger:"element:mouseleave",action:"association:reset"}]}),Pt("association-tooltip",{start:[{trigger:"element:mousemove",action:"association:showTooltip"}],end:[{trigger:"element:mouseleave",action:"association:hideTooltip"}]});var CM=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.type="mix",t}return r.prototype.getSchemaAdaptor=function(){return _M},r}(Dt),Ai;(function(e){e.DEV="DEV",e.BETA="BETA",e.STABLE="STABLE"})(Ai||(Ai={}));function MM(e,r){console.warn(e===Ai.DEV?"Plot '".concat(r,"' is in DEV stage, just give us issues."):e===Ai.BETA?"Plot '".concat(r,"' is in BETA stage, DO NOT use it in production env."):e===Ai.STABLE?"Plot '".concat(r,`' is in STABLE stage, import it by "import { `).concat(r,` } from '@antv/g2plot'".`):"invalid Stage type.")}var iO=function(){function e(){}return Object.defineProperty(e,"MultiView",{get:function(){return MM(Ai.STABLE,"MultiView"),CM},enumerable:!1,configurable:!0}),e}(),er="first-axes-view",rr="second-axes-view",ti="series-field-key";function av(e,r,t,i,n){var a=[];r.forEach(function(h){i.forEach(function(v){var d,p=(d={},d[e]=v[e],d[t]=h,d[h]=v[h],d);a.push(p)})});var o=Object.values((0,f.groupBy)(a,t)),s=o[0],l=s===void 0?[]:s,u=o[1],c=u===void 0?[]:u;return n?[l.reverse(),c.reverse()]:[l,c]}function pr(e){return e!=="vertical"}function AM(e,r,t){var i=r[0],n=r[1],a=i.autoPadding,o=n.autoPadding,s=e.__axisPosition,l=s.layout,u=s.position;if(pr(l)&&u==="top"&&(i.autoPadding=t.instance(a.top,0,a.bottom,a.left),n.autoPadding=t.instance(o.top,a.left,o.bottom,0)),pr(l)&&u==="bottom"&&(i.autoPadding=t.instance(a.top,a.right/2+5,a.bottom,a.left),n.autoPadding=t.instance(o.top,o.right,o.bottom,a.right/2+5)),!pr(l)&&u==="bottom"){var c=a.left>=o.left?a.left:o.left;i.autoPadding=t.instance(a.top,a.right,a.bottom/2+5,c),n.autoPadding=t.instance(a.bottom/2+5,o.right,o.bottom,c)}if(!pr(l)&&u==="top"){var c=a.left>=o.left?a.left:o.left;i.autoPadding=t.instance(a.top,a.right,0,c),n.autoPadding=t.instance(0,o.right,a.top,c)}}function FM(e){var r=e.chart,t=e.options,i=t.data,n=t.xField,a=t.yField,o=t.color,s=t.barStyle,l=t.widthRatio,u=t.legend,c=t.layout,h=av(n,a,ti,i,pr(c));u?r.legend(ti,u):u===!1&&r.legend(!1);var v,d,p=h[0],y=h[1];pr(c)?(v=r.createView({region:{start:{x:0,y:0},end:{x:.5,y:1}},id:er}),v.coordinate().transpose().reflect("x"),d=r.createView({region:{start:{x:.5,y:0},end:{x:1,y:1}},id:rr}),d.coordinate().transpose(),v.data(p),d.data(y)):(v=r.createView({region:{start:{x:0,y:0},end:{x:1,y:.5}},id:er}),d=r.createView({region:{start:{x:0,y:.5},end:{x:1,y:1}},id:rr}),d.coordinate().reflect("y"),v.data(p),d.data(y));var x=P({},e,{chart:v,options:{widthRatio:l,xField:n,yField:a[0],seriesField:ti,interval:{color:o,style:s}}});Fe(x);var m=P({},e,{chart:d,options:{xField:n,yField:a[1],seriesField:ti,widthRatio:l,interval:{color:o,style:s}}});return Fe(m),e}function EM(e){var r,t,i,n=e.options,a=e.chart,o=n.xAxis,s=n.yAxis,l=n.xField,u=n.yField,c=zt(a,er),h=zt(a,rr),v={};return(0,f.keys)((n==null?void 0:n.meta)||{}).map(function(d){(0,f.get)(n==null?void 0:n.meta,[d,"alias"])&&(v[d]=n.meta[d].alias)}),a.scale((r={},r[ti]={sync:!0,formatter:function(d){return(0,f.get)(v,d,d)}},r)),he((t={},t[l]=o,t[u[0]]=s[u[0]],t))(P({},e,{chart:c})),he((i={},i[l]=o,i[u[1]]=s[u[1]],i))(P({},e,{chart:h})),e}function TM(e){var r=e.chart,t=e.options,i=t.xAxis,n=t.yAxis,a=t.xField,o=t.yField,s=t.layout,l=zt(r,er),u=zt(r,rr);return(i==null?void 0:i.position)==="bottom"?u.axis(a,(0,g.__assign)((0,g.__assign)({},i),{label:{formatter:function(){return""}}})):u.axis(a,!1),i===!1?l.axis(a,!1):l.axis(a,(0,g.__assign)({position:pr(s)?"top":"bottom"},i)),n===!1?(l.axis(o[0],!1),u.axis(o[1],!1)):(l.axis(o[0],n[o[0]]),u.axis(o[1],n[o[1]])),r.__axisPosition={position:l.getOptions().axes[a].position,layout:s},e}function LM(e){var r=e.chart;return oe(P({},e,{chart:zt(r,er)})),oe(P({},e,{chart:zt(r,rr)})),e}function IM(e){var r=e.chart,t=e.options,i=t.yField,n=t.yAxis;return jr(P({},e,{chart:zt(r,er),options:{yAxis:n[i[0]]}})),jr(P({},e,{chart:zt(r,rr),options:{yAxis:n[i[1]]}})),e}function OM(e){var r=e.chart;return Xt(P({},e,{chart:zt(r,er)})),Xt(P({},e,{chart:zt(r,rr)})),Xt(e),e}function PM(e){var r=e.chart;return Qt(P({},e,{chart:zt(r,er)})),Qt(P({},e,{chart:zt(r,rr)})),e}function kM(e){var r=this,t,i,n=e.chart,a=e.options,o=a.label,s=a.yField,l=a.layout,u=zt(n,er),c=zt(n,rr),h=Ae(u,"interval"),v=Ae(c,"interval");if(!o)h.label(!1),v.label(!1);else{var d=o.callback,p=(0,g.__rest)(o,["callback"]);p.position||(p.position="middle"),p.offset===void 0&&(p.offset=2);var y=(0,g.__assign)({},p);if(pr(l)){var x=((t=y.style)===null||t===void 0?void 0:t.textAlign)||(p.position==="middle"?"center":"left");p.style=P({},p.style,{textAlign:x});var m={left:"right",right:"left",center:"center"};y.style=P({},y.style,{textAlign:m[x]})}else{var _={top:"bottom",bottom:"top",middle:"middle"};typeof p.position=="string"?p.position=_[p.position]:typeof p.position=="function"&&(p.position=function(){for(var b=[],C=0;C1?"".concat(r,"_").concat(t):"".concat(r)}function uv(e){var r=e.data,t=e.xField,i=e.measureField,n=e.rangeField,a=e.targetField,o=e.layout,s=[],l=[];r.forEach(function(h,v){var d=[h[n]].flat();d.sort(function(x,m){return x-m}),d.forEach(function(x,m){var _,w=m===0?x:d[m]-d[m-1];s.push((_={rKey:"".concat(n,"_").concat(m)},_[t]=t?h[t]:String(v),_[n]=w,_))});var p=[h[i]].flat();p.forEach(function(x,m){var _;s.push((_={mKey:lv(p,i,m)},_[t]=t?h[t]:String(v),_[i]=x,_))});var y=[h[a]].flat();y.forEach(function(x,m){var _;s.push((_={tKey:lv(y,a,m)},_[t]=t?h[t]:String(v),_[a]=x,_))}),l.push(h[n],h[i],h[a])});var u=Math.min.apply(Math,l.flat(Infinity)),c=Math.max.apply(Math,l.flat(Infinity));return u=u>0?0:u,o==="vertical"&&s.reverse(),{min:u,max:c,ds:s}}function XM(e){var r=e.chart,t=e.options,i=t.bulletStyle,n=t.targetField,a=t.rangeField,o=t.measureField,s=t.xField,l=t.color,u=t.layout,c=t.size,h=t.label,v=uv(t),d=v.min,p=v.max,y=v.ds;r.data(y);var x=P({},e,{options:{xField:s,yField:a,seriesField:"rKey",isStack:!0,label:(0,f.get)(h,"range"),interval:{color:(0,f.get)(l,"range"),style:(0,f.get)(i,"range"),size:(0,f.get)(c,"range")}}});Fe(x),r.geometries[0].tooltip(!1);var m=P({},e,{options:{xField:s,yField:o,seriesField:"mKey",isStack:!0,label:(0,f.get)(h,"measure"),interval:{color:(0,f.get)(l,"measure"),style:(0,f.get)(i,"measure"),size:(0,f.get)(c,"measure")}}});Fe(m);var _=P({},e,{options:{xField:s,yField:n,seriesField:"tKey",label:(0,f.get)(h,"target"),point:{color:(0,f.get)(l,"target"),style:(0,f.get)(i,"target"),size:(0,f.isFunction)((0,f.get)(c,"target"))?function(w){return(0,f.get)(c,"target")(w)/2}:(0,f.get)(c,"target")/2,shape:u==="horizontal"?"line":"hyphen"}}});return Ge(_),u==="horizontal"&&r.coordinate().transpose(),(0,g.__assign)((0,g.__assign)({},e),{ext:{data:{min:d,max:p}}})}function cv(e){var r,t,i=e.options,n=e.ext,a=i.xAxis,o=i.yAxis,s=i.targetField,l=i.rangeField,u=i.measureField,c=i.xField,h=n.data;return Lt(he((r={},r[c]=a,r[u]=o,r),(t={},t[u]={min:h==null?void 0:h.min,max:h==null?void 0:h.max,sync:!0},t[s]={sync:"".concat(u)},t[l]={sync:"".concat(u)},t)))(e)}function UM(e){var r=e.chart,t=e.options,i=t.xAxis,n=t.yAxis,a=t.xField,o=t.measureField,s=t.rangeField,l=t.targetField;return r.axis("".concat(s),!1),r.axis("".concat(l),!1),i===!1?r.axis("".concat(a),!1):r.axis("".concat(a),i),n===!1?r.axis("".concat(o),!1):r.axis("".concat(o),n),e}function ZM(e){var r=e.chart,t=e.options,i=t.legend;return r.removeInteraction("legend-filter"),r.legend(i),r.legend("rKey",!1),r.legend("mKey",!1),r.legend("tKey",!1),e}function qM(e){var r=e.chart,t=e.options,i=t.label,n=t.measureField,a=t.targetField,o=t.rangeField,s=r.geometries,l=s[0],u=s[1],c=s[2];return(0,f.get)(i,"range")?l.label("".concat(o),(0,g.__assign)({layout:[{type:"limit-in-plot"}]},Se(i.range))):l.label(!1),(0,f.get)(i,"measure")?u.label("".concat(n),(0,g.__assign)({layout:[{type:"limit-in-plot"}]},Se(i.measure))):u.label(!1),(0,f.get)(i,"target")?c.label("".concat(a),(0,g.__assign)({layout:[{type:"limit-in-plot"}]},Se(i.target))):c.label(!1),e}function jM(e){Lt(XM,cv,UM,ZM,Xt,qM,me,oe,Qt)(e)}var KM=P({},Dt.getDefaultOptions(),{layout:"horizontal",size:{range:30,measure:20,target:20},xAxis:{tickLine:!1,line:null},bulletStyle:{range:{fillOpacity:.5}},label:{measure:{position:"right"}},tooltip:{showMarkers:!1}}),oO=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.type="bullet",t}return r.getDefaultOptions=function(){return KM},r.prototype.changeData=function(t){this.updateOption({data:t});var i=uv(this.options),n=i.min,a=i.max,o=i.ds;cv({options:this.options,ext:{data:{min:n,max:a}},chart:this.chart}),this.chart.changeData(o)},r.prototype.getSchemaAdaptor=function(){return jM},r.prototype.getDefaultOptions=function(){return r.getDefaultOptions()},r}(Dt),$M={y:0,nodeWidthRatio:.05,weight:!1,nodePaddingRatio:.1,id:function(e){return e.id},source:function(e){return e.source},target:function(e){return e.target},sourceWeight:function(e){return e.value||1},targetWeight:function(e){return e.value||1},sortBy:null};function QM(e,r,t){(0,f.forIn)(e,function(i,n){i.inEdges=r.filter(function(a){return"".concat(t.target(a))==="".concat(n)}),i.outEdges=r.filter(function(a){return"".concat(t.source(a))==="".concat(n)}),i.edges=i.outEdges.concat(i.inEdges),i.frequency=i.edges.length,i.value=0,i.inEdges.forEach(function(a){i.value+=t.targetWeight(a)}),i.outEdges.forEach(function(a){i.value+=t.sourceWeight(a)})})}function JM(e,r){var t={weight:function(n,a){return a.value-n.value},frequency:function(n,a){return a.frequency-n.frequency},id:function(n,a){return"".concat(r.id(n)).localeCompare("".concat(r.id(a)))}},i=t[r.sortBy];!i&&(0,f.isFunction)(r.sortBy)&&(i=r.sortBy),i&&e.sort(i)}function tA(e,r){var t=e.length;if(!t)throw new TypeError("Invalid nodes: it's empty!");if(r.weight){var i=r.nodePaddingRatio;if(i<0||i>=1)throw new TypeError("Invalid nodePaddingRatio: it must be in range [0, 1)!");var n=i/(2*t),a=r.nodeWidthRatio;if(a<=0||a>=1)throw new TypeError("Invalid nodeWidthRatio: it must be in range (0, 1)!");var o=0;e.forEach(function(l){o+=l.value}),e.forEach(function(l){l.weight=l.value/o,l.width=l.weight*(1-i),l.height=a}),e.forEach(function(l,u){for(var c=0,h=u-1;h>=0;h--)c+=e[h].width+2*n;var v=l.minX=n+c,d=l.maxX=l.minX+l.width,p=l.minY=r.y-a/2,y=l.maxY=p+a;l.x=[v,d,d,v],l.y=[p,p,y,y]})}else{var s=1/t;e.forEach(function(l,u){l.x=(u+.5)*s,l.y=r.y})}return e}function eA(e,r,t){if(t.weight){var i={};(0,f.forIn)(e,function(n,a){i[a]=n.value}),r.forEach(function(n){var a=t.source(n),o=t.target(n),s=e[a],l=e[o];if(s&&l){var u=i[a],c=t.sourceWeight(n),h=s.minX+(s.value-u)/s.value*s.width,v=h+c/s.value*s.width;i[a]-=c;var d=i[o],p=t.targetWeight(n),y=l.minX+(l.value-d)/l.value*l.width,x=y+p/l.value*l.width;i[o]-=p;var m=t.y;n.x=[h,v,y,x],n.y=[m,m,m,m],n.source=s,n.target=l}})}else r.forEach(function(n){var a=e[t.source(n)],o=e[t.target(n)];a&&o&&(n.x=[a.x,o.x],n.y=[a.y,o.y],n.source=a,n.target=o)});return r}function rA(e){return(0,f.assign)({},$M,e)}function iA(e,r){var t=rA(e),i={},n=r.nodes,a=r.links;n.forEach(function(l){var u=t.id(l);i[u]=l}),QM(i,a,t),JM(n,t);var o=tA(n,t),s=eA(i,a,t);return{nodes:o,links:s}}var hv="x",fv="y",vv="name",dv="source",nA={nodeStyle:{opacity:1,fillOpacity:1,lineWidth:1},edgeStyle:{opacity:.5,lineWidth:2},label:{fields:["x","name"],callback:function(e,r){var t=(e[0]+e[1])/2,i=t>.5?-4:4;return{offsetX:i,content:r}},labelEmit:!0,style:{fill:"#8c8c8c"}},tooltip:{showTitle:!1,showMarkers:!1,fields:["source","target","value","isNode"],showContent:function(e){return!(0,f.get)(e,[0,"data","isNode"])},formatter:function(e){var r=e.source,t=e.target,i=e.value;return{name:"".concat(r," -> ").concat(t),value:i}}},interactions:[{type:"element-active"}],weight:!0,nodePaddingRatio:.1,nodeWidthRatio:.05};function aA(e){var r=e.options,t=r.data,i=r.sourceField,n=r.targetField,a=r.weightField,o=r.nodePaddingRatio,s=r.nodeWidthRatio,l=r.rawFields,u=l===void 0?[]:l,c=Xh(t,i,n,a),h=iA({weight:!0,nodePaddingRatio:o,nodeWidthRatio:s},c),v=h.nodes,d=h.links,p=v.map(function(x){return(0,g.__assign)((0,g.__assign)({},$t(x,(0,g.__spreadArray)(["id","x","y","name"],u,!0))),{isNode:!0})}),y=d.map(function(x){return(0,g.__assign)((0,g.__assign)({source:x.source.name,target:x.target.name,name:x.source.name||x.target.name},$t(x,(0,g.__spreadArray)(["x","y","value"],u,!0))),{isNode:!1})});return(0,g.__assign)((0,g.__assign)({},e),{ext:(0,g.__assign)((0,g.__assign)({},e.ext),{chordData:{nodesData:p,edgesData:y}})})}function oA(e){var r,t=e.chart;return t.scale((r={x:{sync:!0,nice:!0},y:{sync:!0,nice:!0,max:1}},r[vv]={sync:"color"},r[dv]={sync:"color"},r)),e}function sA(e){var r=e.chart;return r.axis(!1),e}function lA(e){var r=e.chart;return r.legend(!1),e}function uA(e){var r=e.chart,t=e.options,i=t.tooltip;return r.tooltip(i),e}function cA(e){var r=e.chart;return r.coordinate("polar").reflect("y"),e}function hA(e){var r=e.chart,t=e.options,i=e.ext.chordData.nodesData,n=t.nodeStyle,a=t.label,o=t.tooltip,s=r.createView();return s.data(i),Ea({chart:s,options:{xField:hv,yField:fv,seriesField:vv,polygon:{style:n},label:a,tooltip:o}}),e}function fA(e){var r=e.chart,t=e.options,i=e.ext.chordData.edgesData,n=t.edgeStyle,a=t.tooltip,o=r.createView();o.data(i);var s={xField:hv,yField:fv,seriesField:dv,edge:{style:n,shape:"arc"},tooltip:a};return of({chart:o,options:s}),e}function vA(e){var r=e.chart,t=e.options,i=t.animation;return dn(r,i,E1(r)),e}function dA(e){return Lt(Xt,aA,cA,oA,sA,lA,uA,fA,hA,oe,Or,vA)(e)}var sO=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.type="chord",t}return r.getDefaultOptions=function(){return nA},r.prototype.getDefaultOptions=function(){return r.getDefaultOptions()},r.prototype.getSchemaAdaptor=function(){return dA},r}(Dt),gA=["x","y","r","name","value","path","depth"],pA={colorField:"name",autoFit:!0,pointStyle:{lineWidth:0,stroke:"#fff"},legend:!1,hierarchyConfig:{size:[1,1],padding:0},label:{fields:["name"],layout:{type:"limit-in-shape"}},tooltip:{showMarkers:!1,showTitle:!1},drilldown:{enabled:!1}},gv=4,yA=0,pv=5,yv="drilldown-bread-crumb",mA={position:"top-left",dividerText:"/",textStyle:{fontSize:12,fill:"rgba(0, 0, 0, 0.65)",cursor:"pointer"},activeTextStyle:{fill:"#87B5FF"}},Sn="hierarchy-data-transform-params",xA=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.name="drill-down",t.historyCache=[],t.breadCrumbGroup=null,t.breadCrumbCfg=mA,t}return r.prototype.click=function(){var t=(0,f.get)(this.context,["event","data","data"]);if(!t)return!1;this.drill(t),this.drawBreadCrumb()},r.prototype.resetPosition=function(){if(!!this.breadCrumbGroup){var t=this.context.view.getCoordinate(),i=this.breadCrumbGroup,n=i.getBBox(),a=this.getButtonCfg().position,o={x:t.start.x,y:t.end.y-(n.height+pv*2)};t.isPolar&&(o={x:0,y:0}),a==="bottom-left"&&(o={x:t.start.x,y:t.start.y});var s=ke.transform(null,[["t",o.x+yA,o.y+n.height+pv]]);i.setMatrix(s)}},r.prototype.back=function(){(0,f.size)(this.historyCache)&&this.backTo(this.historyCache.slice(0,-1))},r.prototype.reset=function(){this.historyCache[0]&&this.backTo(this.historyCache.slice(0,1)),this.historyCache=[],this.hideCrumbGroup()},r.prototype.drill=function(t){var i=this.context.view,n=(0,f.get)(i,["interactions","drill-down","cfg","transformData"],function(u){return u}),a=n((0,g.__assign)({data:t.data},t[Sn]));i.changeData(a);for(var o=[],s=t;s;){var l=s.data;o.unshift({id:"".concat(l.name,"_").concat(s.height,"_").concat(s.depth),name:l.name,children:n((0,g.__assign)({data:l},t[Sn]))}),s=s.parent}this.historyCache=(this.historyCache||[]).slice(0,-1).concat(o)},r.prototype.backTo=function(t){if(!(!t||t.length<=0)){var i=this.context.view,n=(0,f.last)(t).children;i.changeData(n),t.length>1?(this.historyCache=t,this.drawBreadCrumb()):(this.historyCache=[],this.hideCrumbGroup())}},r.prototype.getButtonCfg=function(){var t=this.context.view,i=(0,f.get)(t,["interactions","drill-down","cfg","drillDownConfig"]);return P(this.breadCrumbCfg,i==null?void 0:i.breadCrumb,this.cfg)},r.prototype.drawBreadCrumb=function(){this.drawBreadCrumbGroup(),this.resetPosition(),this.breadCrumbGroup.show()},r.prototype.drawBreadCrumbGroup=function(){var t=this,i=this.getButtonCfg(),n=this.historyCache;this.breadCrumbGroup?this.breadCrumbGroup.clear():this.breadCrumbGroup=this.context.view.foregroundGroup.addGroup({name:yv});var a=0;n.forEach(function(o,s){var l=t.breadCrumbGroup.addShape({type:"text",id:o.id,name:"".concat(yv,"_").concat(o.name,"_text"),attrs:(0,g.__assign)((0,g.__assign)({text:s===0&&!(0,f.isNil)(i.rootText)?i.rootText:o.name},i.textStyle),{x:a,y:0})}),u=l.getBBox();if(a+=u.width+gv,l.on("click",function(v){var d,p=v.target.get("id");if(p!==((d=(0,f.last)(n))===null||d===void 0?void 0:d.id)){var y=n.slice(0,n.findIndex(function(x){return x.id===p})+1);t.backTo(y)}}),l.on("mouseenter",function(v){var d,p=v.target.get("id");p!==((d=(0,f.last)(n))===null||d===void 0?void 0:d.id)?l.attr(i.activeTextStyle):l.attr({cursor:"default"})}),l.on("mouseleave",function(){l.attr(i.textStyle)}),s0&&t*t>i*i+n*n}function Hs(e,r){for(var t=0;tl?(n=(u+l-a)/(2*u),s=Math.sqrt(Math.max(0,l/u-n*n)),t.x=e.x-n*i-s*o,t.y=e.y-n*o+s*i):(n=(u+a-l)/(2*u),s=Math.sqrt(Math.max(0,a/u-n*n)),t.x=r.x+n*i-s*o,t.y=r.y+n*o+s*i)):(t.x=r.x+t.r,t.y=r.y)}function Sv(e,r){var t=e.r+r.r-1e-6,i=r.x-e.x,n=r.y-e.y;return t>0&&t*t>i*i+n*n}function bv(e){var r=e._,t=e.next._,i=r.r+t.r,n=(r.x*t.r+t.x*r.r)/i,a=(r.y*t.r+t.y*r.r)/i;return n*n+a*a}function Na(e){this._=e,this.next=null,this.previous=null}function Cv(e){if(!(n=(e=_A(e)).length))return 0;var r,t,i,n,a,o,s,l,u,c,h;if(r=e[0],r.x=0,r.y=0,!(n>1))return r.r;if(t=e[1],r.x=-t.r,t.x=r.r,t.y=0,!(n>2))return r.r+t.r;wv(t,r,i=e[2]),r=new Na(r),t=new Na(t),i=new Na(i),r.next=i.previous=t,t.next=r.previous=i,i.next=t.previous=r;t:for(s=3;s=0;)r+=t[i].value;e.value=r}function LA(){return this.eachAfter(TA)}var IA=F(64254);function Ev(e,r){var t=typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=(0,IA.Z)(e))||r&&e&&typeof e.length=="number"){t&&(e=t);var i=0,n=function(){};return{s:n,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(u){throw u},f:n}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a=!0,o=!1,s;return{s:function(){t=t.call(e)},n:function(){var u=t.next();return a=u.done,u},e:function(u){o=!0,s=u},f:function(){try{!a&&t.return!=null&&t.return()}finally{if(o)throw s}}}}function OA(e,r){var t=-1,i=Ev(this),n;try{for(i.s();!(n=i.n()).done;){var a=n.value;e.call(r,a,++t,this)}}catch(o){i.e(o)}finally{i.f()}return this}function PA(e,r){for(var t=this,i=[t],n,a,o=-1;t=i.pop();)if(e.call(r,t,++o,this),n=t.children)for(a=n.length-1;a>=0;--a)i.push(n[a]);return this}function kA(e,r){for(var t=this,i=[t],n=[],a,o,s,l=-1;t=i.pop();)if(n.push(t),a=t.children)for(o=0,s=a.length;o=0;)t+=i[n].value;r.value=t})}function RA(e){return this.eachBefore(function(r){r.children&&r.children.sort(e)})}function NA(e){for(var r=this,t=zA(r,e),i=[r];r!==t;)r=r.parent,i.push(r);for(var n=i.length;e!==t;)i.splice(n,0,e),e=e.parent;return i}function zA(e,r){if(e===r)return e;var t=e.ancestors(),i=r.ancestors(),n=null;for(e=t.pop(),r=i.pop();e===r;)n=e,e=t.pop(),r=i.pop();return n}function VA(){for(var e=this,r=[e];e=e.parent;)r.push(e);return r}function GA(){return Array.from(this)}function WA(){var e=[];return this.eachBefore(function(r){r.children||e.push(r)}),e}function HA(){var e=this,r=[];return e.each(function(t){t!==e&&r.push({source:t.parent,target:t})}),r}var Tv=F(39428),YA=(0,Tv.Z)().mark(Lv);function Lv(){var e,r,t,i,n,a;return(0,Tv.Z)().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:e=this,t=[e];case 1:r=t.reverse(),t=[];case 2:if(!(e=r.pop())){s.next=8;break}return s.next=5,e;case 5:if(i=e.children)for(n=0,a=i.length;n=0;--s)n.push(a=o[s]=new Li(o[s])),a.parent=i,a.depth=i.depth+1;return t.eachBefore(Iv)}function XA(){return Ti(this).eachBefore(qA)}function UA(e){return e.children}function ZA(e){return Array.isArray(e)?e[1]:null}function qA(e){e.data.value!==void 0&&(e.value=e.data.value),e.data=e.data.data}function Iv(e){var r=0;do e.height=r;while((e=e.parent)&&e.height<++r)}function Li(e){this.data=e,this.depth=this.height=0,this.parent=null}Li.prototype=Ti.prototype=(0,EA.Z)({constructor:Li,count:LA,each:OA,eachAfter:kA,eachBefore:PA,find:DA,sum:BA,sort:RA,path:NA,ancestors:VA,descendants:GA,leaves:WA,links:HA,copy:XA},Symbol.iterator,Lv);var Ov="nodeIndex",Pv="childNodeCount",Xs="nodeAncestor",Us="Invalid field: it must be a string!";function Zs(e,r){var t=e.field,i=e.fields;if((0,f.isString)(t))return t;if((0,f.isArray)(t))return console.warn(Us),t[0];if(console.warn("".concat(Us," will try to get fields instead.")),(0,f.isString)(i))return i;if((0,f.isArray)(i)&&i.length)return i[0];if(r)return r;throw new TypeError(Us)}function qs(e){var r=[];if(e&&e.each){var t,i;e.each(function(n){var a,o;n.parent!==t?(t=n.parent,i=0):i+=1;var s=(0,f.filter)((((a=n.ancestors)===null||a===void 0?void 0:a.call(n))||[]).map(function(l){return r.find(function(u){return u.name===l.name})||l}),function(l){var u=l.depth;return u>0&&u1;)c="".concat((u=h.parent.data)===null||u===void 0?void 0:u.name," / ").concat(c),h=h.parent;if(a&&l.depth>2)return null;var v=P({},l.data,(0,g.__assign)((0,g.__assign)((0,g.__assign)({},$t(l.data,n)),{path:c}),l));v.ext=t,v[Sn]={hierarchyConfig:t,rawFields:n,enableDrillDown:a},s.push(v)}),s}function Dv(e,r,t){var i=Ms([e,r]),n=i[0],a=i[1],o=i[2],s=i[3],l=t.width,u=t.height,c=l-(s+a),h=u-(n+o),v=Math.min(c,h),d=(c-v)/2,p=(h-v)/2,y=n+p,x=a+d,m=o+p,_=s+d,w=[y,x,m,_],S=v<0?0:v;return{finalPadding:w,finalSize:S}}function $A(e){var r=e.chart,t=Math.min(r.viewBBox.width,r.viewBBox.height);return P({options:{size:function(i){var n=i.r;return n*t}}},e)}function QA(e){var r=e.options,t=e.chart,i=t.viewBBox,n=r.padding,a=r.appendPadding,o=r.drilldown,s=a;if(o==null?void 0:o.enabled){var l=wa(t.appendPadding,(0,f.get)(o,["breadCrumb","position"]));s=Ms([l,a])}var u=Dv(n,s,i).finalPadding;return t.padding=u,t.appendPadding=0,e}function JA(e){var r=e.chart,t=e.options,i=r.padding,n=r.appendPadding,a=t.color,o=t.colorField,s=t.pointStyle,l=t.hierarchyConfig,u=t.sizeField,c=t.rawFields,h=c===void 0?[]:c,v=t.drilldown,d=kv({data:t.data,hierarchyConfig:l,enableDrillDown:v==null?void 0:v.enabled,rawFields:h});r.data(d);var p=r.viewBBox,y=Dv(i,n,p).finalSize,x=function(m){var _=m.r;return _*y};return u&&(x=function(m){return m[u]*y}),Ge(P({},e,{options:{xField:"x",yField:"y",seriesField:o,sizeField:u,rawFields:(0,g.__spreadArray)((0,g.__spreadArray)([],gA,!0),h,!0),point:{color:a,style:s,shape:"circle",size:x}}})),e}function tF(e){return Lt(he({},{x:{min:0,max:1,minLimit:0,maxLimit:1,nice:!0},y:{min:0,max:1,minLimit:0,maxLimit:1,nice:!0}}))(e)}function eF(e){var r=e.chart,t=e.options,i=t.tooltip;if(i===!1)r.tooltip(!1);else{var n=i;(0,f.get)(i,"fields")||(n=P({},{customItems:function(a){return a.map(function(o){var s=(0,f.get)(r.getOptions(),"scales"),l=(0,f.get)(s,["name","formatter"],function(c){return c}),u=(0,f.get)(s,["value","formatter"],function(c){return c});return(0,g.__assign)((0,g.__assign)({},o),{name:l(o.data.name),value:u(o.data.value)})})}},n)),r.tooltip(n)}return e}function rF(e){var r=e.chart;return r.axis(!1),e}function iF(e){var r=e.drilldown,t=e.interactions,i=t===void 0?[]:t;return(r==null?void 0:r.enabled)?P({},e,{interactions:(0,g.__spreadArray)((0,g.__spreadArray)([],i,!0),[{type:"drill-down",cfg:{drillDownConfig:r,transformData:kv,enableDrillDown:!0}}],!1)}):e}function nF(e){var r=e.chart,t=e.options;return oe({chart:r,options:iF(t)}),e}function aF(e){return Lt(Ve("pointStyle"),$A,QA,Xt,tF,JA,rF,qr,eF,nF,Qt,le())(e)}function Bv(e){var r=(0,f.get)(e,["event","data","data"],{});return(0,f.isArray)(r.children)&&r.children.length>0}function Rv(e){var r=e.view.getCoordinate(),t=r.innerRadius;if(t){var i=e.event,n=i.x,a=i.y,o=r.center,s=o.x,l=o.y,u=r.getRadius()*t,c=Math.sqrt(Math.pow(s-n,2)+Math.pow(l-a,2));return c-1?L1(p,h,v):!0}),e.getRootView().render(!0)}};function uF(e){var r,t=e.options,i=t.geometryOptions,n=i===void 0?[]:i,a=t.xField,o=t.yField,s=(0,f.every)(n,function(l){var u=l.geometry;return u===ri.Line||u===void 0});return P({},{options:{geometryOptions:[],meta:(r={},r[a]={type:"cat",sync:!0,range:s?[0,1]:void 0},r),tooltip:{showMarkers:s,showCrosshairs:s,shared:!0,crosshairs:{type:"x"}},interactions:s?[{type:"legend-visible-filter"}]:[{type:"legend-visible-filter"},{type:"active-region"}],legend:{position:"top-left"}}},e,{options:{yAxis:Vv(o,t.yAxis),geometryOptions:[zv(a,o[0],n[0]),zv(a,o[1],n[1])],annotations:Vv(o,t.annotations)}})}function cF(e){var r,t,i=e.chart,n=e.options,a=n.geometryOptions,o={line:0,column:1},s=[{type:(r=a[0])===null||r===void 0?void 0:r.geometry,id:We},{type:(t=a[1])===null||t===void 0?void 0:t.geometry,id:He}];return s.sort(function(l,u){return-o[l.type]+o[u.type]}).forEach(function(l){return i.createView({id:l.id})}),e}function hF(e){var r=e.chart,t=e.options,i=t.xField,n=t.yField,a=t.geometryOptions,o=t.data,s=t.tooltip,l=[(0,g.__assign)((0,g.__assign)({},a[0]),{id:We,data:o[0],yField:n[0]}),(0,g.__assign)((0,g.__assign)({},a[1]),{id:He,data:o[1],yField:n[1]})];return l.forEach(function(u){var c=u.id,h=u.data,v=u.yField,d=Ks(u)&&u.isPercent,p=d?uf(h,v,i,v):h,y=zt(r,c).data(p),x=d?(0,g.__assign)({formatter:function(m){return{name:m[u.seriesField]||v,value:(Number(m[v])*100).toFixed(2)+"%"}}},s):s;lF({chart:y,options:{xField:i,yField:v,tooltip:x,geometryOption:u}})}),e}function fF(e){var r,t=e.chart,i=e.options,n=i.geometryOptions,a=((r=t.getTheme())===null||r===void 0?void 0:r.colors10)||[],o=0;return t.once("beforepaint",function(){(0,f.each)(n,function(s,l){var u=zt(t,l===0?We:He);if(!s.color){var c=u.getGroupScales(),h=(0,f.get)(c,[0,"values","length"],1),v=a.slice(o,o+h).concat(l===0?[]:a);u.geometries.forEach(function(d){s.seriesField?d.color(s.seriesField,v):d.color(v[0])}),o+=h}}),t.render(!0)}),e}function vF(e){var r,t,i=e.chart,n=e.options,a=n.xAxis,o=n.yAxis,s=n.xField,l=n.yField;return he((r={},r[s]=a,r[l[0]]=o[0],r))(P({},e,{chart:zt(i,We)})),he((t={},t[s]=a,t[l[1]]=o[1],t))(P({},e,{chart:zt(i,He)})),e}function dF(e){var r=e.chart,t=e.options,i=zt(r,We),n=zt(r,He),a=t.xField,o=t.yField,s=t.xAxis,l=t.yAxis;return r.axis(a,!1),r.axis(o[0],!1),r.axis(o[1],!1),i.axis(a,s),i.axis(o[0],Gv(l[0],Ii.Left)),n.axis(a,!1),n.axis(o[1],Gv(l[1],Ii.Right)),e}function gF(e){var r=e.chart,t=e.options,i=t.tooltip,n=zt(r,We),a=zt(r,He);return r.tooltip(i),n.tooltip({shared:!0}),a.tooltip({shared:!0}),e}function pF(e){var r=e.chart;return oe(P({},e,{chart:zt(r,We)})),oe(P({},e,{chart:zt(r,He)})),e}function yF(e){var r=e.chart,t=e.options,i=t.annotations,n=(0,f.get)(i,[0]),a=(0,f.get)(i,[1]);return le(n)(P({},e,{chart:zt(r,We),options:{annotations:n}})),le(a)(P({},e,{chart:zt(r,He),options:{annotations:a}})),e}function mF(e){var r=e.chart;return Xt(P({},e,{chart:zt(r,We)})),Xt(P({},e,{chart:zt(r,He)})),Xt(e),e}function xF(e){var r=e.chart;return Qt(P({},e,{chart:zt(r,We)})),Qt(P({},e,{chart:zt(r,He)})),e}function _F(e){var r=e.chart,t=e.options,i=t.yAxis;return jr(P({},e,{chart:zt(r,We),options:{yAxis:i[0]}})),jr(P({},e,{chart:zt(r,He),options:{yAxis:i[1]}})),e}function wF(e){var r=e.chart,t=e.options,i=t.legend,n=t.geometryOptions,a=t.yField,o=t.data,s=zt(r,We),l=zt(r,He);if(i===!1)r.legend(!1);else if((0,f.isObject)(i)&&i.custom===!0)r.legend(i);else{var u=(0,f.get)(n,[0,"legend"],i),c=(0,f.get)(n,[1,"legend"],i);r.once("beforepaint",function(){var h=o[0].length?Wv({view:s,geometryOption:n[0],yField:a[0],legend:u}):[],v=o[1].length?Wv({view:l,geometryOption:n[1],yField:a[1],legend:c}):[];r.legend(P({},i,{custom:!0,items:h.concat(v)}))}),n[0].seriesField&&s.legend(n[0].seriesField,u),n[1].seriesField&&l.legend(n[1].seriesField,c),r.on("legend-item:click",function(h){var v=(0,f.get)(h,"gEvent.delegateObject",{});if(v&&v.item){var d=v.item,p=d.value,y=d.isGeometry,x=d.viewId;if(y){var m=(0,f.findIndex)(a,function(S){return S===p});if(m>-1){var _=(0,f.get)(zt(r,x),"geometries");(0,f.each)(_,function(S){S.changeVisible(!v.item.unchecked)})}}else{var w=(0,f.get)(r.getController("legend"),"option.items",[]);(0,f.each)(r.views,function(S){var b=S.getGroupScales();(0,f.each)(b,function(C){C.values&&C.values.indexOf(p)>-1&&S.filter(C.field,function(M){var A=(0,f.find)(w,function(O){return O.value===M});return!A.unchecked})}),r.render(!0)})}}})}return e}function SF(e){var r=e.chart,t=e.options,i=t.slider,n=zt(r,We),a=zt(r,He);return i&&(n.option("slider",i),n.on("slider:valuechanged",function(o){var s=o.event,l=s.value,u=s.originValue;(0,f.isEqual)(l,u)||Hv(a,l)}),r.once("afterpaint",function(){if(!(0,f.isBoolean)(i)){var o=i.start,s=i.end;(o||s)&&Hv(a,[o,s])}})),e}function bF(e){return Lt(uF,cF,mF,hF,vF,dF,_F,gF,pF,yF,xF,fF,wF,SF)(e)}var uO=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.type="dual-axes",t}return r.prototype.getDefaultOptions=function(){return P({},e.prototype.getDefaultOptions.call(this),{yAxis:[],syncViewPadding:!0})},r.prototype.getSchemaAdaptor=function(){return bF},r}(Dt);function CF(e,r){var t=r.data,i=r.coordinate,n=r.interactions,a=r.annotations,o=r.animation,s=r.tooltip,l=r.axes,u=r.meta,c=r.geometries;t&&e.data(t);var h={};l&&(0,f.each)(l,function(v,d){h[d]=$t(v,Be)}),h=P({},u,h),e.scale(h),i&&e.coordinate(i),l===!1?e.axis(!1):(0,f.each)(l,function(v,d){e.axis(d,v)}),(0,f.each)(c,function(v){var d=Re({chart:e,options:v}).ext,p=v.adjust;p&&d.geometry.adjust(p)}),(0,f.each)(n,function(v){v.enable===!1?e.removeInteraction(v.type):e.interaction(v.type,v.cfg)}),(0,f.each)(a,function(v){e.annotation()[v.type]((0,g.__assign)({},v))}),dn(e,o),s?(e.interaction("tooltip"),e.tooltip(s)):s===!1&&e.removeInteraction("tooltip")}function MF(e){var r=e.chart,t=e.options,i=t.type,n=t.data,a=t.fields,o=t.eachView,s=(0,f.omit)(t,["type","data","fields","eachView","axes","meta","tooltip","coordinate","theme","legend","interactions","annotations"]);return r.data(n),r.facet(i,(0,g.__assign)((0,g.__assign)({},s),{fields:a,eachView:function(l,u){var c=o(l,u);if(c.geometries)CF(l,c);else{var h=c,v=h.options;v.tooltip&&l.interaction("tooltip"),Gs(h.type,l,v)}}})),e}function AF(e){var r=e.chart,t=e.options,i=t.axes,n=t.meta,a=t.tooltip,o=t.coordinate,s=t.theme,l=t.legend,u=t.interactions,c=t.annotations,h={};return i&&(0,f.each)(i,function(v,d){h[d]=$t(v,Be)}),h=P({},n,h),r.scale(h),r.coordinate(o),i?(0,f.each)(i,function(v,d){r.axis(d,v)}):r.axis(!1),a?(r.interaction("tooltip"),r.tooltip(a)):a===!1&&r.removeInteraction("tooltip"),r.legend(l),s&&r.theme(s),(0,f.each)(u,function(v){v.enable===!1?r.removeInteraction(v.type):r.interaction(v.type,v.cfg)}),(0,f.each)(c,function(v){r.annotation()[v.type]((0,g.__assign)({},v))}),e}function FF(e){return Lt(Xt,MF,AF)(e)}var EF={title:{style:{fontSize:12,fill:"rgba(0,0,0,0.65)"}},rowTitle:{style:{fontSize:12,fill:"rgba(0,0,0,0.65)"}},columnTitle:{style:{fontSize:12,fill:"rgba(0,0,0,0.65)"}}},cO=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.type="area",t}return r.getDefaultOptions=function(){return EF},r.prototype.getDefaultOptions=function(){return r.getDefaultOptions()},r.prototype.getSchemaAdaptor=function(){return FF},r}(Dt);function TF(e){var r=e.chart,t=e.options,i=t.data,n=t.type,a=t.xField,o=t.yField,s=t.colorField,l=t.sizeField,u=t.sizeRatio,c=t.shape,h=t.color,v=t.tooltip,d=t.heatmapStyle,p=t.meta;r.data(i);var y="polygon";n==="density"&&(y="heatmap");var x=Ye(v,[a,o,s]),m=x.fields,_=x.formatter,w=1;return(u||u===0)&&(!c&&!l?console.warn("sizeRatio is not in effect: Must define shape or sizeField first"):u<0||u>1?console.warn("sizeRatio is not in effect: It must be a number in [0,1]"):w=u),Re(P({},e,{options:{type:y,colorField:s,tooltipFields:m,shapeField:l||"",label:void 0,mapping:{tooltip:_,shape:c&&(l?function(S){var b=i.map(function(O){return O[l]}),C=(p==null?void 0:p[l])||{},M=C.min,A=C.max;return M=(0,f.isNumber)(M)?M:Math.min.apply(Math,b),A=(0,f.isNumber)(A)?A:Math.max.apply(Math,b),[c,((0,f.get)(S,l)-M)/(A-M),w]}:function(){return[c,1,w]}),color:h||s&&r.getTheme().sequenceColors.join("-"),style:d}}})),e}function LF(e){var r,t=e.options,i=t.xAxis,n=t.yAxis,a=t.xField,o=t.yField;return Lt(he((r={},r[a]=i,r[o]=n,r)))(e)}function IF(e){var r=e.chart,t=e.options,i=t.xAxis,n=t.yAxis,a=t.xField,o=t.yField;return i===!1?r.axis(a,!1):r.axis(a,i),n===!1?r.axis(o,!1):r.axis(o,n),e}function OF(e){var r=e.chart,t=e.options,i=t.legend,n=t.colorField,a=t.sizeField,o=t.sizeLegend,s=i!==!1;return n&&r.legend(n,s?i:!1),a&&r.legend(a,o===void 0?i:o),!s&&!o&&r.legend(!1),e}function PF(e){var r=e.chart,t=e.options,i=t.label,n=t.colorField,a=t.type,o=Ae(r,a==="density"?"heatmap":"polygon");if(!i)o.label(!1);else if(n){var s=i.callback,l=(0,g.__rest)(i,["callback"]);o.label({fields:[n],callback:s,cfg:Se(l)})}return e}function kF(e){var r,t,i=e.chart,n=e.options,a=n.coordinate,o=n.reflect,s=P({actions:[]},a!=null?a:{type:"rect"});return o&&((t=(r=s.actions)===null||r===void 0?void 0:r.push)===null||t===void 0||t.call(r,["reflect",o])),i.coordinate(s),e}function DF(e){return Lt(Xt,Ve("heatmapStyle"),LF,kF,TF,IF,OF,me,PF,le(),oe,Qt,Or)(e)}var BF=P({},Dt.getDefaultOptions(),{type:"polygon",legend:!1,coordinate:{type:"rect"},xAxis:{tickLine:null,line:null,grid:{alignTick:!1,line:{style:{lineWidth:1,lineDash:null,stroke:"#f0f0f0"}}}},yAxis:{grid:{alignTick:!1,line:{style:{lineWidth:1,lineDash:null,stroke:"#f0f0f0"}}}}});qt("polygon","circle",{draw:function(e,r){var t,i,n=e.x,a=e.y,o=this.parsePoints(e.points),s=Math.abs(o[2].x-o[1].x),l=Math.abs(o[1].y-o[0].y),u=Math.min(s,l)/2,c=Number(e.shape[1]),h=Number(e.shape[2]),v=Math.sqrt(h),d=u*v*Math.sqrt(c),p=((t=e.style)===null||t===void 0?void 0:t.fill)||e.color||((i=e.defaultStyle)===null||i===void 0?void 0:i.fill),y=r.addShape("circle",{attrs:(0,g.__assign)((0,g.__assign)((0,g.__assign)({x:n,y:a,r:d},e.defaultStyle),e.style),{fill:p})});return y}}),qt("polygon","square",{draw:function(e,r){var t,i,n=e.x,a=e.y,o=this.parsePoints(e.points),s=Math.abs(o[2].x-o[1].x),l=Math.abs(o[1].y-o[0].y),u=Math.min(s,l),c=Number(e.shape[1]),h=Number(e.shape[2]),v=Math.sqrt(h),d=u*v*Math.sqrt(c),p=((t=e.style)===null||t===void 0?void 0:t.fill)||e.color||((i=e.defaultStyle)===null||i===void 0?void 0:i.fill),y=r.addShape("rect",{attrs:(0,g.__assign)((0,g.__assign)((0,g.__assign)({x:n-d/2,y:a-d/2,width:d,height:d},e.defaultStyle),e.style),{fill:p})});return y}});var hO=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.type="heatmap",t}return r.getDefaultOptions=function(){return BF},r.prototype.getSchemaAdaptor=function(){return DF},r.prototype.getDefaultOptions=function(){return r.getDefaultOptions()},r}(Dt),RF="liquid";function Yv(e){return[{percent:e,type:RF}]}function NF(e){var r=e.chart,t=e.options,i=t.percent,n=t.liquidStyle,a=t.radius,o=t.outline,s=t.wave,l=t.shape,u=t.shapeStyle,c=t.animation;r.scale({percent:{min:0,max:1}}),r.data(Yv(i));var h=t.color||r.getTheme().defaultColor,v=P({},e,{options:{xField:"type",yField:"percent",widthRatio:a,interval:{color:h,style:n,shape:"liquid-fill-gauge"}}}),d=Fe(v).ext,p=d.geometry,y=r.getTheme().background,x={percent:i,radius:a,outline:o,wave:s,shape:l,shapeStyle:u,background:y,animation:c};return p.customInfo(x),r.legend(!1),r.axis(!1),r.tooltip(!1),e}function Xv(e,r){var t=e.chart,i=e.options,n=i.statistic,a=i.percent,o=i.meta;t.getController("annotation").clear(!0);var s=(0,f.get)(o,["percent","formatter"])||function(u){return"".concat((u*100).toFixed(2),"%")},l=n.content;return l&&(l=P({},l,{content:(0,f.isNil)(l.content)?s(a):l.content})),Sa(t,{statistic:(0,g.__assign)((0,g.__assign)({},n),{content:l}),plotType:"liquid"},{percent:a}),r&&t.render(!0),e}function zF(e){return Lt(Xt,Ve("liquidStyle"),NF,Xv,he({}),Qt,oe)(e)}var VF={radius:.9,statistic:{title:!1,content:{style:{opacity:.75,fontSize:"30px",lineHeight:"30px",textAlign:"center"}}},outline:{border:2,distance:0},wave:{count:3,length:192},shape:"circle"},Uv=5e3;function Zv(e,r,t){return e+(r-e)*t}function GF(e){var r=(0,g.__assign)({opacity:1},e.style);return e.color&&!r.fill&&(r.fill=e.color),r}function WF(e){var r={fill:"#fff",fillOpacity:0,lineWidth:4},t=(0,f.mix)({},r,e.style);return e.color&&!t.stroke&&(t.stroke=e.color),(0,f.isNumber)(e.opacity)&&(t.opacity=t.strokeOpacity=e.opacity),t}function HF(e,r,t,i){return r===0?[[e+1/2*t/Math.PI/2,i/2],[e+1/2*t/Math.PI,i],[e+t/4,i]]:r===1?[[e+1/2*t/Math.PI/2*(Math.PI-2),i],[e+1/2*t/Math.PI/2*(Math.PI-1),i/2],[e+t/4,0]]:r===2?[[e+1/2*t/Math.PI/2,-i/2],[e+1/2*t/Math.PI,-i],[e+t/4,-i]]:[[e+1/2*t/Math.PI/2*(Math.PI-2),-i],[e+1/2*t/Math.PI/2*(Math.PI-1),-i/2],[e+t/4,0]]}function YF(e,r,t,i,n,a,o){for(var s=Math.ceil(2*e/t*4)*4,l=[],u=i;u<-Math.PI*2;)u+=Math.PI*2;for(;u>0;)u-=Math.PI*2;u=u/Math.PI/2*t;var c=a-e+u-e*2;l.push(["M",c,r]);for(var h=0,v=0;v0){var X=r.addGroup({name:"waves"}),lt=X.setClip({type:"path",attrs:{path:z}});XF(w.x,w.y,1-e.points[1].y,x,M,X,lt,C*2,m,h)}return r.addShape("path",{name:"distance",attrs:{path:z,fill:"transparent",lineWidth:p+y*2,stroke:c==="transparent"?"#fff":c}}),r.addShape("path",{name:"wrap",attrs:(0,f.mix)(A,{path:z,fill:"transparent",lineWidth:p})}),r}});var fO=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.type="liquid",t}return r.getDefaultOptions=function(){return VF},r.prototype.getDefaultOptions=function(){return r.getDefaultOptions()},r.prototype.changeData=function(t){this.chart.emit(I.BEFORE_CHANGE_DATA,ue.fromData(this.chart,I.BEFORE_CHANGE_DATA,null)),this.updateOption({percent:t}),this.chart.data(Yv(t)),Xv({chart:this.chart,options:this.options},!0),this.chart.emit(I.AFTER_CHANGE_DATA,ue.fromData(this.chart,I.AFTER_CHANGE_DATA,null))},r.prototype.getSchemaAdaptor=function(){return zF},r}(Dt);function $F(e){var r=e.chart,t=e.options,i=t.data,n=t.lineStyle,a=t.color,o=t.point,s=t.area;r.data(i);var l=P({},e,{options:{line:{style:n,color:a},point:o&&(0,g.__assign)({color:a},o),area:s&&(0,g.__assign)({color:a},s),label:void 0}}),u=P({},l,{options:{tooltip:!1}}),c=(o==null?void 0:o.state)||t.state,h=P({},l,{options:{tooltip:!1,state:c}});return bi(l),Ge(h),Fa(u),e}function QF(e){var r,t=e.options,i=t.xAxis,n=t.yAxis,a=t.xField,o=t.yField;return Lt(he((r={},r[a]=i,r[o]=n,r)))(e)}function JF(e){var r=e.chart,t=e.options,i=t.radius,n=t.startAngle,a=t.endAngle;return r.coordinate("polar",{radius:i,startAngle:n,endAngle:a}),e}function tE(e){var r=e.chart,t=e.options,i=t.xField,n=t.xAxis,a=t.yField,o=t.yAxis;return r.axis(i,n),r.axis(a,o),e}function eE(e){var r=e.chart,t=e.options,i=t.label,n=t.yField,a=Ae(r,"line");if(!i)a.label(!1);else{var o=i.callback,s=(0,g.__rest)(i,["callback"]);a.label({fields:[n],callback:o,cfg:Se(s)})}return e}function rE(e){return Lt($F,QF,Xt,JF,tE,qr,me,eE,oe,Qt,le())(e)}var iE=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return Object.defineProperty(r.prototype,"name",{get:function(){return"radar-tooltip"},enumerable:!1,configurable:!0}),r.prototype.getTooltipItems=function(t){var i=this.getTooltipCfg(),n=i.shared,a=i.title,o=e.prototype.getTooltipItems.call(this,t);if(o.length>0){var s=this.view.geometries[0],l=s.dataArray,u=o[0].name,c=[];return l.forEach(function(h){h.forEach(function(v){var d=ke.getTooltipItems(v,s),p=d[0];if(!n&&p&&p.name===u){var y=(0,f.isNil)(a)?u:a;c.push((0,g.__assign)((0,g.__assign)({},p),{name:p.title,title:y}))}else if(n&&p){var y=(0,f.isNil)(a)?p.name||u:a;c.push((0,g.__assign)((0,g.__assign)({},p),{name:p.title,title:y}))}})}),c}return[]},r}(fc);Wr("radar-tooltip",iE);var nE=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.init=function(){var t=this.context.view;t.removeInteraction("tooltip")},r.prototype.show=function(){var t=this.context.event,i=this.getTooltipController();i.showTooltip({x:t.x,y:t.y})},r.prototype.hide=function(){var t=this.getTooltipController();t.hideTooltip()},r.prototype.getTooltipController=function(){var t=this.context.view;return t.getController("radar-tooltip")},r}(ne);_t("radar-tooltip",nE),Pt("radar-tooltip",{start:[{trigger:"plot:mousemove",action:"radar-tooltip:show"}],end:[{trigger:"plot:mouseleave",action:"radar-tooltip:hide"}]});var vO=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.type="radar",t}return r.prototype.changeData=function(t){this.updateOption({data:t}),this.chart.changeData(t)},r.prototype.getDefaultOptions=function(){return P({},e.prototype.getDefaultOptions.call(this),{xAxis:{label:{offset:15},grid:{line:{type:"line"}}},yAxis:{grid:{line:{type:"circle"}}},legend:{position:"top"},tooltip:{shared:!0,showCrosshairs:!0,showMarkers:!0,crosshairs:{type:"xy",line:{style:{stroke:"#565656",lineDash:[4]}},follow:!0}}})},r.prototype.getSchemaAdaptor=function(){return rE},r}(Dt);function aE(e,r,t){var i=t.map(function(o){return o[r]}).filter(function(o){return o!==void 0}),n=i.length>0?Math.max.apply(Math,i):0,a=Math.abs(e)%360;return a?n*360/a:n}function oE(e,r,t){var i=[];return e.forEach(function(n){var a=i.find(function(o){return o[r]===n[r]});a?a[t]+=n[t]||null:i.push((0,g.__assign)({},n))}),i}function sE(e){var r=e.chart,t=e.options,i=t.barStyle,n=t.color,a=t.tooltip,o=t.colorField,s=t.type,l=t.xField,u=t.yField,c=t.data,h=t.shape,v=wi(c,u);r.data(v);var d=P({},e,{options:{tooltip:a,seriesField:o,interval:{style:i,color:n,shape:h||(s==="line"?"line":"intervel")},minColumnWidth:t.minBarWidth,maxColumnWidth:t.maxBarWidth,columnBackground:t.barBackground}});return Fe(d),s==="line"&&Ge({chart:r,options:{xField:l,yField:u,seriesField:o,point:{shape:"circle",color:n}}}),e}function jv(e){var r,t=e.options,i=t.yField,n=t.xField,a=t.data,o=t.isStack,s=t.isGroup,l=t.colorField,u=t.maxAngle,c=o&&!s&&l?oE(a,n,i):a,h=wi(c,i);return Lt(he((r={},r[i]={min:0,max:aE(u,i,h)},r)))(e)}function lE(e){var r=e.chart,t=e.options,i=t.radius,n=t.innerRadius,a=t.startAngle,o=t.endAngle;return r.coordinate({type:"polar",cfg:{radius:i,innerRadius:n,startAngle:a,endAngle:o}}).transpose(),e}function uE(e){var r=e.chart,t=e.options,i=t.xField,n=t.xAxis;return r.axis(i,n),e}function cE(e){var r=e.chart,t=e.options,i=t.label,n=t.yField,a=Ae(r,"interval");if(!i)a.label(!1);else{var o=i.callback,s=(0,g.__rest)(i,["callback"]);a.label({fields:[n],callback:o,cfg:(0,g.__assign)((0,g.__assign)({},Se(s)),{type:"polar"})})}return e}function hE(e){return Lt(Ve("barStyle"),sE,jv,uE,lE,oe,Qt,Xt,me,qr,le(),cE)(e)}var fE=P({},Dt.getDefaultOptions(),{interactions:[{type:"element-active"}],legend:!1,tooltip:{showMarkers:!1},xAxis:{grid:null,tickLine:null,line:null},maxAngle:240}),dO=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.type="radial-bar",t}return r.getDefaultOptions=function(){return fE},r.prototype.changeData=function(t){this.updateOption({data:t}),jv({chart:this.chart,options:this.options}),this.chart.changeData(t)},r.prototype.getDefaultOptions=function(){return r.getDefaultOptions()},r.prototype.getSchemaAdaptor=function(){return hE},r}(Dt);function vE(e){var r=e.chart,t=e.options,i=t.data,n=t.sectorStyle,a=t.shape,o=t.color;return r.data(i),Lt(Fe)(P({},e,{options:{marginRatio:1,interval:{style:n,color:o,shape:a}}})),e}function dE(e){var r=e.chart,t=e.options,i=t.label,n=t.xField,a=Ae(r,"interval");if(i===!1)a.label(!1);else if((0,f.isObject)(i)){var o=i.callback,s=i.fields,l=(0,g.__rest)(i,["callback","fields"]),u=l.offset,c=l.layout;(u===void 0||u>=0)&&(c=c?(0,f.isArray)(c)?c:[c]:[],l.layout=(0,f.filter)(c,function(h){return h.type!=="limit-in-shape"}),l.layout.length||delete l.layout),a.label({fields:s||[n],callback:o,cfg:Se(l)})}else fr(je.WARN,i===null,"the label option must be an Object."),a.label({fields:[n]});return e}function gE(e){var r=e.chart,t=e.options,i=t.legend,n=t.seriesField;return i===!1?r.legend(!1):n&&r.legend(n,i),e}function pE(e){var r=e.chart,t=e.options,i=t.radius,n=t.innerRadius,a=t.startAngle,o=t.endAngle;return r.coordinate({type:"polar",cfg:{radius:i,innerRadius:n,startAngle:a,endAngle:o}}),e}function yE(e){var r,t=e.options,i=t.xAxis,n=t.yAxis,a=t.xField,o=t.yField;return Lt(he((r={},r[a]=i,r[o]=n,r)))(e)}function mE(e){var r=e.chart,t=e.options,i=t.xAxis,n=t.yAxis,a=t.xField,o=t.yField;return i?r.axis(a,i):r.axis(a,!1),n?r.axis(o,n):r.axis(o,!1),e}function xE(e){Lt(Ve("sectorStyle"),vE,yE,dE,pE,mE,gE,me,oe,Qt,Xt,le(),Or)(e)}var _E=P({},Dt.getDefaultOptions(),{xAxis:!1,yAxis:!1,legend:{position:"right",radio:{}},sectorStyle:{stroke:"#fff",lineWidth:1},label:{layout:{type:"limit-in-shape"}},tooltip:{shared:!0,showMarkers:!1},interactions:[{type:"active-region"}]}),gO=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.type="rose",t}return r.getDefaultOptions=function(){return _E},r.prototype.changeData=function(t){this.updateOption({data:t}),this.chart.changeData(t)},r.prototype.getDefaultOptions=function(){return r.getDefaultOptions()},r.prototype.getSchemaAdaptor=function(){return xE},r}(Dt),Kv="x",$v="y",Qv="name",Va="nodes",Ga="edges";function wE(e,r,t){var i=[];return e.forEach(function(n){var a=n[r],o=n[t];i.includes(a)||i.push(a),i.includes(o)||i.push(o)}),i}function SE(e,r,t,i){var n={};return r.forEach(function(a){n[a]={},r.forEach(function(o){n[a][o]=0})}),e.forEach(function(a){n[a[t]][a[i]]=1}),n}function bE(e,r,t){if(!(0,f.isArray)(e))return[];var i=[],n=wE(e,r,t),a=SE(e,n,r,t),o={};n.forEach(function(l){o[l]=0});function s(l){o[l]=1,n.forEach(function(u){if(a[l][u]!=0)if(o[u]==1)i.push("".concat(l,"_").concat(u));else{if(o[u]==-1)return;s(u)}}),o[l]=-1}return n.forEach(function(l){o[l]!=-1&&s(l)}),i.length!==0&&console.warn("sankey data contains circle, ".concat(i.length," records removed."),i),e.filter(function(l){return i.findIndex(function(u){return u==="".concat(l[r],"_").concat(l[t])})<0})}function CE(e){return e.target.depth}function ME(e){return e.depth}function AE(e,r){return r-1-e.height}function $s(e,r){return e.sourceLinks.length?e.depth:r-1}function FE(e){return e.targetLinks.length?e.depth:e.sourceLinks.length?(0,f.minBy)(e.sourceLinks,CE)-1:0}function Wa(e){return function(){return e}}function Qs(e,r){for(var t=0,i=0;ift)throw new Error("circular link");nt=dt,dt=new Set}if(u)for(var Nt=Math.max(Js(K,function(Ht){return Ht.depth})+1,0),Wt=void 0,Bt=0;Btft)throw new Error("circular link");nt=dt,dt=new Set}}function S(V){for(var K=V.nodes,ft=Math.max(Js(K,function(ye){return ye.depth})+1,0),nt=(t-e-n)/(ft-1),dt=new Array(ft).fill(0).map(function(){return[]}),St=0,Nt=K;St0){var Pi=(Ht/Jt-Bt.y0)*K;Bt.y0+=Pi,Bt.y1+=Pi,X(Bt)}}c===void 0&&St.sort(Ha),St.length&&O(St,ft)}}function A(V,K,ft){for(var nt=V.length,dt=nt-2;dt>=0;--dt){for(var St=V[dt],Nt=0,Wt=St;Nt0){var Pi=(Ht/Jt-Bt.y0)*K;Bt.y0+=Pi,Bt.y1+=Pi,X(Bt)}}c===void 0&&St.sort(Ha),St.length&&O(St,ft)}}function O(V,K){var ft=V.length>>1,nt=V[ft];z(V,nt.y0-o,ft-1,K),E(V,nt.y1+o,ft+1,K),z(V,i,V.length-1,K),E(V,r,0,K)}function E(V,K,ft,nt){for(;ft1e-6&&(dt.y0+=St,dt.y1+=St),K=dt.y1+o}}function z(V,K,ft,nt){for(;ft>=0;--ft){var dt=V[ft],St=(dt.y1-K)*nt;St>1e-6&&(dt.y0-=St,dt.y1-=St),K=dt.y0-o}}function X(V){var K=V.sourceLinks,ft=V.targetLinks;if(h===void 0){for(var nt=0,dt=ft;nt "+n,value:a}}},nodeWidthRatio:.008,nodePaddingRatio:.01,animation:{appear:{animation:"wave-in"},enter:{animation:"wave-in"}}}},r.prototype.changeData=function(t){this.updateOption({data:t});var i=id(this.options,this.chart.width,this.chart.height),n=i.nodes,a=i.edges,o=zt(this.chart,Va),s=zt(this.chart,Ga);o.changeData(n),s.changeData(a)},r.prototype.getSchemaAdaptor=function(){return UE},r.prototype.getDefaultOptions=function(){return r.getDefaultOptions()},r}(Dt),el="ancestor-node",nd="value",Cn="path",qE=[Cn,Ov,Xs,Pv,"name","depth","height"],jE=P({},Dt.getDefaultOptions(),{innerRadius:0,radius:.85,hierarchyConfig:{field:"value"},tooltip:{shared:!0,showMarkers:!1,offset:20,showTitle:!1},legend:!1,sunburstStyle:{lineWidth:.5,stroke:"#FFF"},drilldown:{enabled:!0}});function ad(e){e.x0=Math.round(e.x0),e.y0=Math.round(e.y0),e.x1=Math.round(e.x1),e.y1=Math.round(e.y1)}function Mn(e,r,t,i,n){for(var a=e.children,o,s=-1,l=a.length,u=e.value&&(i-r)/e.value;++s0)throw new Error("cycle");return l}return t.id=function(i){return arguments.length?(e=za(i),t):e},t.parentId=function(i){return arguments.length?(r=za(i),t):r},t}function cT(e,r){return e.parent===r.parent?1:2}function rl(e){var r=e.children;return r?r[0]:e.t}function il(e){var r=e.children;return r?r[r.length-1]:e.t}function hT(e,r,t){var i=t/(r.i-e.i);r.c-=i,r.s+=t,e.c+=i,r.z+=t,r.m+=t}function fT(e){for(var r=0,t=0,i=e.children,n=i.length,a;--n>=0;)a=i[n],a.z+=r,a.m+=r,r+=a.s+(t+=a.c)}function vT(e,r,t){return e.a.parent===r.parent?e.a:t}function Ya(e,r){this._=e,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=r}Ya.prototype=Object.create(Li.prototype);function dT(e){for(var r=new Ya(e,0),t,i=[r],n,a,o,s;t=i.pop();)if(a=t._.children)for(t.children=new Array(s=a.length),o=s-1;o>=0;--o)i.push(n=t.children[o]=new Ya(a[o],o)),n.parent=t;return(r.parent=new Ya(null,0)).children=[r],r}function gT(){var e=cT,r=1,t=1,i=null;function n(u){var c=dT(u);if(c.eachAfter(a),c.parent.m=-c.z,c.eachBefore(o),i)u.eachBefore(l);else{var h=u,v=u,d=u;u.eachBefore(function(_){_.xv.x&&(v=_),_.depth>d.depth&&(d=_)});var p=h===v?1:e(h,v)/2,y=p-h.x,x=r/(v.x+p+y),m=t/(d.depth||1);u.eachBefore(function(_){_.x=(_.x+y)*x,_.y=_.depth*m})}return u}function a(u){var c=u.children,h=u.parent.children,v=u.i?h[u.i-1]:null;if(c){fT(u);var d=(c[0].z+c[c.length-1].z)/2;v?(u.z=v.z+e(u._,v._),u.m=u.z-d):u.z=d}else v&&(u.z=v.z+e(u._,v._));u.parent.A=s(u,v,u.parent.A||h[0])}function o(u){u._.x=u.z+u.parent.m,u.m+=u.parent.m}function s(u,c,h){if(c){for(var v=u,d=u,p=c,y=v.parent.children[0],x=v.m,m=d.m,_=p.m,w=y.m,S;p=il(p),v=rl(v),p&&v;)y=rl(y),d=il(d),d.a=u,S=p.z+_-v.z-x+e(p._,v._),S>0&&(hT(vT(p,u,h),u,S),x+=S,m+=S),_+=p.m,x+=v.m,w+=y.m,m+=d.m;p&&!il(d)&&(d.t=p,d.m+=_-m),v&&!rl(y)&&(y.t=v,y.m+=x-w,h=u)}return h}function l(u){u.x*=r,u.y=u.depth*t}return n.separation=function(u){return arguments.length?(e=u,n):e},n.size=function(u){return arguments.length?(i=!1,r=+u[0],t=+u[1],n):i?null:[r,t]},n.nodeSize=function(u){return arguments.length?(i=!0,r=+u[0],t=+u[1],n):i?[r,t]:null},n}function Xa(e,r,t,i,n){for(var a=e.children,o,s=-1,l=a.length,u=e.value&&(n-t)/e.value;++s_&&(_=u),C=x*x*b,w=Math.max(_/C,C/m),w>S){x-=u;break}S=w}o.push(l={value:x,dice:d1?i:1)},t}(ld);function hd(){var e=cd,r=!1,t=1,i=1,n=[0],a=ei,o=ei,s=ei,l=ei,u=ei;function c(v){return v.x0=v.y0=0,v.x1=t,v.y1=i,v.eachBefore(h),n=[0],r&&v.eachBefore(ad),v}function h(v){var d=n[v.depth],p=v.x0+d,y=v.y0+d,x=v.x1-d,m=v.y1-d;x=v-1){var _=a[h];_.x0=p,_.y0=y,_.x1=x,_.y1=m;return}for(var w=u[h],S=d/2+w,b=h+1,C=v-1;b>>1;u[M]m-y){var E=d?(p*O+x*A)/d:x;c(h,b,A,p,y,E,m),c(b,v,O,E,y,x,m)}else{var z=d?(y*O+m*A)/d:m;c(h,b,A,p,y,x,z),c(b,v,O,p,z,x,m)}}}function yT(e,r,t,i,n){(e.depth&1?Xa:Mn)(e,r,t,i,n)}var mT=function e(r){function t(i,n,a,o,s){if((l=i._squarify)&&l.ratio===r)for(var l,u,c,h,v=-1,d,p=l.length,y=i.value;++v1?i:1)},t}(ld),xT={field:"value",tile:"treemapSquarify",size:[1,1],round:!1,ignoreParentValue:!0,padding:0,paddingInner:0,paddingOuter:0,paddingTop:0,paddingRight:0,paddingBottom:0,paddingLeft:0,as:["x","y"],sort:function(e,r){return r.value-e.value},ratio:.5*(1+Math.sqrt(5))};function _T(e,r){return e==="treemapSquarify"?$[e].ratio(r):$[e]}function fd(e,r){r=(0,f.assign)({},xT,r);var t=r.as;if(!(0,f.isArray)(t)||t.length!==2)throw new TypeError('Invalid as: it must be an array with 2 strings (e.g. [ "x", "y" ])!');var i;try{i=Zs(r)}catch(u){console.warn(u)}var n=_T(r.tile,r.ratio),a=function(u){return hd().tile(n).size(r.size).round(r.round).padding(r.padding).paddingInner(r.paddingInner).paddingOuter(r.paddingOuter).paddingTop(r.paddingTop).paddingRight(r.paddingRight).paddingBottom(r.paddingBottom).paddingLeft(r.paddingLeft)(Ti(u).sum(function(c){return r.ignoreParentValue&&c.children?0:c[i]}).sort(r.sort))},o=a(e),s=t[0],l=t[1];return o.each(function(u){u[s]=[u.x0,u.x1,u.x1,u.x0],u[l]=[u.y1,u.y1,u.y0,u.y0],["x0","x1","y0","y1"].forEach(function(c){t.indexOf(c)===-1&&delete u[c]})}),qs(o)}function vd(e){var r=e.data,t=e.colorField,i=e.rawFields,n=e.hierarchyConfig,a=n===void 0?{}:n,o=a.activeDepth,s={partition:$E,treemap:fd},l=e.seriesField,u=e.type||"partition",c=s[u](r,(0,g.__assign)((0,g.__assign)({field:l||"value"},(0,f.omit)(a,["activeDepth"])),{type:"hierarchy.".concat(u),as:["x","y"]})),h=[];return c.forEach(function(v){var d,p,y,x,m,_;if(v.depth===0||o>0&&v.depth>o)return null;for(var w=v.data.name,S=(0,g.__assign)({},v);S.depth>1;)w="".concat((p=S.parent.data)===null||p===void 0?void 0:p.name," / ").concat(w),S=S.parent;var b=(0,g.__assign)((0,g.__assign)((0,g.__assign)({},$t(v.data,(0,g.__spreadArray)((0,g.__spreadArray)([],i||[],!0),[a.field],!1))),(d={},d[Cn]=w,d[el]=S.data.name,d)),v);l&&(b[l]=v.data[l]||((x=(y=v.parent)===null||y===void 0?void 0:y.data)===null||x===void 0?void 0:x[l])),t&&(b[t]=v.data[t]||((_=(m=v.parent)===null||m===void 0?void 0:m.data)===null||_===void 0?void 0:_[t])),b.ext=a,b[Sn]={hierarchyConfig:a,colorField:t,rawFields:i},h.push(b)}),h}function wT(e){var r=e.chart,t=e.options,i=t.color,n=t.colorField,a=n===void 0?el:n,o=t.sunburstStyle,s=t.rawFields,l=s===void 0?[]:s,u=t.shape,c=vd(t);r.data(c);var h;return o&&(h=function(v){return P({},{fillOpacity:Math.pow(.85,v.depth)},(0,f.isFunction)(o)?o(v):o)}),Ea(P({},e,{options:{xField:"x",yField:"y",seriesField:a,rawFields:(0,f.uniq)((0,g.__spreadArray)((0,g.__spreadArray)([],qE,!0),l,!0)),polygon:{color:i,style:h,shape:u}}})),e}function ST(e){var r=e.chart;return r.axis(!1),e}function bT(e){var r=e.chart,t=e.options,i=t.label,n=Ae(r,"polygon");if(!i)n.label(!1);else{var a=i.fields,o=a===void 0?["name"]:a,s=i.callback,l=(0,g.__rest)(i,["fields","callback"]);n.label({fields:o,callback:s,cfg:Se(l)})}return e}function CT(e){var r=e.chart,t=e.options,i=t.innerRadius,n=t.radius,a=t.reflect,o=r.coordinate({type:"polar",cfg:{innerRadius:i,radius:n}});return a&&o.reflect(a),e}function MT(e){var r,t=e.options,i=t.hierarchyConfig,n=t.meta;return Lt(he({},(r={},r[nd]=(0,f.get)(n,(0,f.get)(i,["field"],"value")),r)))(e)}function AT(e){var r=e.chart,t=e.options,i=t.tooltip;if(i===!1)r.tooltip(!1);else{var n=i;(0,f.get)(i,"fields")||(n=P({},{customItems:function(a){return a.map(function(o){var s=(0,f.get)(r.getOptions(),"scales"),l=(0,f.get)(s,[Cn,"formatter"],function(c){return c}),u=(0,f.get)(s,[nd,"formatter"],function(c){return c});return(0,g.__assign)((0,g.__assign)({},o),{name:l(o.data[Cn]),value:u(o.data.value)})})}},n)),r.tooltip(n)}return e}function FT(e){var r=e.drilldown,t=e.interactions,i=t===void 0?[]:t;return(r==null?void 0:r.enabled)?P({},e,{interactions:(0,g.__spreadArray)((0,g.__spreadArray)([],i,!0),[{type:"drill-down",cfg:{drillDownConfig:r,transformData:vd}}],!1)}):e}function ET(e){var r=e.chart,t=e.options,i=t.drilldown;return oe({chart:r,options:FT(t)}),(i==null?void 0:i.enabled)&&(r.appendPadding=wa(r.appendPadding,(0,f.get)(i,["breadCrumb","position"]))),e}function TT(e){return Lt(Xt,Ve("sunburstStyle"),wT,ST,MT,qr,CT,AT,bT,ET,Qt,le())(e)}var yO=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.type="sunburst",t}return r.getDefaultOptions=function(){return jE},r.prototype.getDefaultOptions=function(){return r.getDefaultOptions()},r.prototype.getSchemaAdaptor=function(){return TT},r.SUNBURST_ANCESTOR_FIELD=el,r.SUNBURST_PATH_FIELD=Cn,r.NODE_ANCESTORS_FIELD=Xs,r}(Dt);function dd(e,r){if(!!(0,f.isArray)(e))return e.find(function(t){return t.type===r})}function gd(e,r){var t=dd(e,r);return t&&t.enable!==!1}function nl(e){var r=e.interactions,t=e.drilldown;return(0,f.get)(t,"enabled")||gd(r,"treemap-drill-down")}function LT(e){var r=e.interactions["drill-down"];if(!!r){var t=r.context.actions.find(function(i){return i.name==="drill-down-action"});t.reset()}}function al(e){var r=e.data,t=e.colorField,i=e.enableDrillDown,n=e.hierarchyConfig,a=fd(r,(0,g.__assign)((0,g.__assign)({},n),{type:"hierarchy.treemap",field:"value",as:["x","y"]})),o=[];return a.forEach(function(s){if(s.depth===0||i&&s.depth!==1||!i&&s.children)return null;var l=s.ancestors().map(function(v){return{data:v.data,height:v.height,value:v.value}}),u=i&&(0,f.isArray)(r.path)?l.concat(r.path.slice(1)):l,c=Object.assign({},s.data,(0,g.__assign)({x:s.x,y:s.y,depth:s.depth,value:s.value,path:u},s));if(!s.data[t]&&s.parent){var h=s.ancestors().find(function(v){return v.data[t]});c[t]=h==null?void 0:h.data[t]}else c[t]=s.data[t];c[Sn]={hierarchyConfig:n,colorField:t,enableDrillDown:i},o.push(c)}),o}function IT(e){var r=e.options,t=r.colorField;return P({options:{rawFields:["value"],tooltip:{fields:["name","value",t,"path"],formatter:function(i){return{name:i.name,value:i.value}}}}},e)}function OT(e){var r=e.chart,t=e.options,i=t.color,n=t.colorField,a=t.rectStyle,o=t.hierarchyConfig,s=t.rawFields,l=al({data:t.data,colorField:t.colorField,enableDrillDown:nl(t),hierarchyConfig:o});return r.data(l),Ea(P({},e,{options:{xField:"x",yField:"y",seriesField:n,rawFields:s,polygon:{color:i,style:a}}})),r.coordinate().reflect("y"),e}function PT(e){var r=e.chart;return r.axis(!1),e}function kT(e){var r=e.drilldown,t=e.interactions,i=t===void 0?[]:t,n=nl(e);return n?P({},e,{interactions:(0,g.__spreadArray)((0,g.__spreadArray)([],i,!0),[{type:"drill-down",cfg:{drillDownConfig:r,transformData:al}}],!1)}):e}function DT(e){var r=e.chart,t=e.options,i=t.interactions,n=t.drilldown;oe({chart:r,options:kT(t)});var a=dd(i,"view-zoom");a&&(a.enable!==!1?r.getCanvas().on("mousewheel",function(s){s.preventDefault()}):r.getCanvas().off("mousewheel"));var o=nl(t);return o&&(r.appendPadding=wa(r.appendPadding,(0,f.get)(n,["breadCrumb","position"]))),e}function BT(e){return Lt(IT,Xt,Ve("rectStyle"),OT,PT,qr,me,DT,Qt,le())(e)}var RT={colorField:"name",rectStyle:{lineWidth:1,stroke:"#fff"},hierarchyConfig:{tile:"treemapSquarify"},label:{fields:["name"],layout:{type:"limit-in-shape"}},tooltip:{showMarkers:!1,showTitle:!1},drilldown:{enabled:!1,breadCrumb:{position:"bottom-left",rootText:"\u521D\u59CB",dividerText:"/",textStyle:{fontSize:12,fill:"rgba(0, 0, 0, 0.65)",cursor:"pointer"},activeTextStyle:{fill:"#87B5FF"}}}},mO=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.type="treemap",t}return r.getDefaultOptions=function(){return RT},r.prototype.changeData=function(t){var i=this.options,n=i.colorField,a=i.interactions,o=i.hierarchyConfig;this.updateOption({data:t});var s=al({data:t,colorField:n,enableDrillDown:gd(a,"treemap-drill-down"),hierarchyConfig:o});this.chart.changeData(s),LT(this.chart)},r.prototype.getDefaultOptions=function(){return r.getDefaultOptions()},r.prototype.getSchemaAdaptor=function(){return BT},r}(Dt),yr="id",ol="path",NT={appendPadding:[10,0,20,0],blendMode:"multiply",tooltip:{showTitle:!1,showMarkers:!1,fields:["id","size"],formatter:function(e){return{name:e.id,value:e.size}}},legend:{position:"top-left"},label:{style:{textAlign:"center",fill:"#fff"}},interactions:[{type:"legend-filter",enable:!1}],state:{active:{style:{stroke:"#000"}},selected:{style:{stroke:"#000",lineWidth:2}},inactive:{style:{fillOpacity:.3,strokeOpacity:.3}}},defaultInteractions:["tooltip","venn-legend-active"]};function Ua(e){if(!!e){var r=e.geometries[0].elements;r.forEach(function(t){t.shape.toFront()})}}var zT=$n("element-active"),VT=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.syncElementsPos=function(){Ua(this.context.view)},r.prototype.active=function(){e.prototype.active.call(this),this.syncElementsPos()},r.prototype.toggle=function(){e.prototype.toggle.call(this),this.syncElementsPos()},r.prototype.reset=function(){e.prototype.reset.call(this),this.syncElementsPos()},r}(zT),GT=$n("element-highlight"),WT=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.syncElementsPos=function(){Ua(this.context.view)},r.prototype.highlight=function(){e.prototype.highlight.call(this),this.syncElementsPos()},r.prototype.toggle=function(){e.prototype.toggle.call(this),this.syncElementsPos()},r.prototype.clear=function(){e.prototype.clear.call(this),this.syncElementsPos()},r.prototype.reset=function(){e.prototype.reset.call(this),this.syncElementsPos()},r}(GT),HT=$n("element-selected"),YT=$n("element-single-selected"),XT=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.syncElementsPos=function(){Ua(this.context.view)},r.prototype.selected=function(){e.prototype.selected.call(this),this.syncElementsPos()},r.prototype.toggle=function(){e.prototype.toggle.call(this),this.syncElementsPos()},r.prototype.reset=function(){e.prototype.reset.call(this),this.syncElementsPos()},r}(HT),UT=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.syncElementsPos=function(){Ua(this.context.view)},r.prototype.selected=function(){e.prototype.selected.call(this),this.syncElementsPos()},r.prototype.toggle=function(){e.prototype.toggle.call(this),this.syncElementsPos()},r.prototype.reset=function(){e.prototype.reset.call(this),this.syncElementsPos()},r}(YT);_t("venn-element-active",VT),_t("venn-element-highlight",WT),_t("venn-element-selected",XT),_t("venn-element-single-selected",UT),Pt("venn-element-active",{start:[{trigger:"element:mouseenter",action:"venn-element-active:active"}],end:[{trigger:"element:mouseleave",action:"venn-element-active:reset"}]}),Pt("venn-element-highlight",{start:[{trigger:"element:mouseenter",action:"venn-element-highlight:highlight"}],end:[{trigger:"element:mouseleave",action:"venn-element-highlight:reset"}]}),Pt("venn-element-selected",{start:[{trigger:"element:click",action:"venn-element-selected:toggle"}],rollback:[{trigger:"dblclick",action:["venn-element-selected:reset"]}]}),Pt("venn-element-single-selected",{start:[{trigger:"element:click",action:"venn-element-single-selected:toggle"}],rollback:[{trigger:"dblclick",action:["venn-element-single-selected:reset"]}]}),Pt("venn-legend-active",{start:[{trigger:"legend-item:mouseenter",action:["list-active:active","venn-element-active:active"]}],end:[{trigger:"legend-item:mouseleave",action:["list-active:reset","venn-element-active:reset"]}]}),Pt("venn-legend-highlight",{start:[{trigger:"legend-item:mouseenter",action:["legend-item-highlight:highlight","venn-element-highlight:highlight"]}],end:[{trigger:"legend-item:mouseleave",action:["legend-item-highlight:reset","venn-element-highlight:reset"]}]});var ZT=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getLabelPoint=function(t,i,n){var a=t.data,o=a.x,s=a.y,l=t.customLabelInfo,u=l.offsetX,c=l.offsetY;return{content:t.content[n],x:o+u,y:s+c}},r}(oa);an("venn",ZT);var qT=Array.isArray,jT=qT,An=` +\v\f\r \xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029`,KT=new RegExp("([a-z])["+An+",]*((-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?["+An+"]*,?["+An+"]*)+)","ig"),$T=new RegExp("(-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?)["+An+"]*,?["+An+"]*","ig");function QT(e){if(!e)return null;if(jT(e))return e;var r={a:7,c:6,o:2,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,u:3,z:0},t=[];return String(e).replace(KT,function(i,n,a){var o=[],s=n.toLowerCase();if(a.replace($T,function(l,u){u&&o.push(+u)}),s==="m"&&o.length>2&&(t.push([n].concat(o.splice(0,2))),s="l",n=n==="m"?"l":"L"),s==="o"&&o.length===1&&t.push([n,o[0]]),s==="r")t.push([n].concat(o));else for(;o.length>=r[s]&&(t.push([n].concat(o.splice(0,r[s]))),!!r[s]););return""}),t}var JT=/[a-z]/;function pd(e,r){return[r[0]+(r[0]-e[0]),r[1]+(r[1]-e[1])]}function xO(e){var r=parsePathString(e);if(!r||!r.length)return[["M",0,0]];for(var t=!1,i=0;i=0){t=!0;break}}if(!t)return r;var a=[],o=0,s=0,l=0,u=0,c=0,h,v,d=r[0];(d[0]==="M"||d[0]==="m")&&(o=+d[1],s=+d[2],l=o,u=s,c++,a[0]=["M",o,s]);for(var i=c,p=r.length;i1&&(a=1),a<-1&&(a=-1),n*Math.acos(a)},e2=function(e,r,t,i,n,a,o,s,l,u,c,h){var v=Math.pow(n,2),d=Math.pow(a,2),p=Math.pow(c,2),y=Math.pow(h,2),x=v*d-v*y-d*p;x<0&&(x=0),x/=v*y+d*p,x=Math.sqrt(x)*(o===s?-1:1);var m=x*n/a*h,_=x*-a/n*c,w=u*m-l*_+(e+t)/2,S=l*m+u*_+(r+i)/2,b=(c-m)/n,C=(h-_)/a,M=(-c-m)/n,A=(-h-_)/a,O=yd(1,0,b,C),E=yd(b,C,M,A);return s===0&&E>0&&(E-=Fn),s===1&&E<0&&(E+=Fn),[w,S,O,E]},r2=function(e){var r=e.px,t=e.py,i=e.cx,n=e.cy,a=e.rx,o=e.ry,s=e.xAxisRotation,l=s===void 0?0:s,u=e.largeArcFlag,c=u===void 0?0:u,h=e.sweepFlag,v=h===void 0?0:h,d=[];if(a===0||o===0)return[{x1:0,y1:0,x2:0,y2:0,x:i,y:n}];var p=Math.sin(l*Fn/360),y=Math.cos(l*Fn/360),x=y*(r-i)/2+p*(t-n)/2,m=-p*(r-i)/2+y*(t-n)/2;if(x===0&&m===0)return[{x1:0,y1:0,x2:0,y2:0,x:i,y:n}];a=Math.abs(a),o=Math.abs(o);var _=Math.pow(x,2)/Math.pow(a,2)+Math.pow(m,2)/Math.pow(o,2);_>1&&(a*=Math.sqrt(_),o*=Math.sqrt(_));var w=e2(r,t,i,n,a,o,c,v,p,y,x,m),S=w[0],b=w[1],C=w[2],M=w[3],A=Math.abs(M)/(Fn/4);Math.abs(1-A)<1e-7&&(A=1);var O=Math.max(Math.ceil(A),1);M/=O;for(var E=0;E7){e[t].shift();for(var i=e[t],n=t;i.length;)r[t]="A",e.splice(n+=1,0,["C"].concat(i.splice(0,6)));e.splice(t,1)}}var md=function(e,r,t,i,n){var a=-3*r+9*t-9*i+3*n,o=e*a+6*r-12*t+6*i;return e*o-3*r+3*t},xd=function(e,r,t,i,n,a,o,s,l){l===null&&(l=1),l=l>1?1:l<0?0:l;for(var u=l/2,c=12,h=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],v=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],d=0,p=0;p0&&d<1&&l.push(d);continue}var y=h*h-4*v*c,x=Math.sqrt(y);if(!(y<0)){var m=(-h+x)/(2*c);m>0&&m<1&&l.push(m);var _=(-h-x)/(2*c);_>0&&_<1&&l.push(_)}}for(var w=l.length,S=w,b;w--;)d=l[w],b=1-d,u[0][w]=b*b*b*e+3*b*b*d*t+3*b*d*d*n+d*d*d*o,u[1][w]=b*b*b*r+3*b*b*d*i+3*b*d*d*a+d*d*d*s;return u[0][S]=e,u[1][S]=r,u[0][S+1]=o,u[1][S+1]=s,u[0].length=u[1].length=S+2,{min:{x:Math.min.apply(0,u[0]),y:Math.min.apply(0,u[1])},max:{x:Math.max.apply(0,u[0]),y:Math.max.apply(0,u[1])}}},a2=function(e,r,t,i,n,a,o,s){if(!(Math.max(e,t)Math.max(n,o)||Math.max(r,i)Math.max(a,s))){var l=(e*i-r*t)*(n-o)-(e-t)*(n*s-a*o),u=(e*i-r*t)*(a-s)-(r-i)*(n*s-a*o),c=(e-t)*(a-s)-(r-i)*(n-o);if(!!c){var h=l/c,v=u/c,d=+h.toFixed(2),p=+v.toFixed(2);if(!(d<+Math.min(e,t).toFixed(2)||d>+Math.max(e,t).toFixed(2)||d<+Math.min(n,o).toFixed(2)||d>+Math.max(n,o).toFixed(2)||p<+Math.min(r,i).toFixed(2)||p>+Math.max(r,i).toFixed(2)||p<+Math.min(a,s).toFixed(2)||p>+Math.max(a,s).toFixed(2)))return{x:h,y:v}}}},Dr=function(e,r,t){return r>=e.x&&r<=e.x+e.width&&t>=e.y&&t<=e.y+e.height},ll=function(e,r,t,i){return e===null&&(e=r=t=i=0),r===null&&(r=e.y,t=e.width,i=e.height,e=e.x),{x:e,y:r,width:t,w:t,height:i,h:i,x2:e+t,y2:r+i,cx:e+t/2,cy:r+i/2,r1:Math.min(t,i)/2,r2:Math.max(t,i)/2,r0:Math.sqrt(t*t+i*i)/2,path:rectPath(e,r,t,i),vb:[e,r,t,i].join(" ")}},o2=function(e,r){return e=ll(e),r=ll(r),Dr(r,e.x,e.y)||Dr(r,e.x2,e.y)||Dr(r,e.x,e.y2)||Dr(r,e.x2,e.y2)||Dr(e,r.x,r.y)||Dr(e,r.x2,r.y)||Dr(e,r.x,r.y2)||Dr(e,r.x2,r.y2)||(e.xr.x||r.xe.x)&&(e.yr.y||r.ye.y)},_d=function(e,r,t,i,n,a,o,s){isArray(e)||(e=[e,r,t,i,n,a,o,s]);var l=n2.apply(null,e);return ll(l.min.x,l.min.y,l.max.x-l.min.x,l.max.y-l.min.y)},wd=function(e,r,t,i,n,a,o,s,l){var u=1-l,c=Math.pow(u,3),h=Math.pow(u,2),v=l*l,d=v*l,p=c*e+h*3*l*t+u*3*l*l*n+d*o,y=c*r+h*3*l*i+u*3*l*l*a+d*s,x=e+2*l*(t-e)+v*(n-2*t+e),m=r+2*l*(i-r)+v*(a-2*i+r),_=t+2*l*(n-t)+v*(o-2*n+t),w=i+2*l*(a-i)+v*(s-2*a+i),S=u*e+l*t,b=u*r+l*i,C=u*n+l*o,M=u*a+l*s,A=90-Math.atan2(x-_,m-w)*180/Math.PI;return{x:p,y,m:{x,y:m},n:{x:_,y:w},start:{x:S,y:b},end:{x:C,y:M},alpha:A}},s2=function(e,r,t){var i=_d(e),n=_d(r);if(!o2(i,n))return t?0:[];for(var a=xd.apply(0,e),o=xd.apply(0,r),s=~~(a/8),l=~~(o/8),u=[],c=[],h={},v=t?0:[],d=0;d=0&&M<=1&&A>=0&&A<=1&&(t?v++:v.push({x:C.x,y:C.y,t1:M,t2:A}))}}return v},l2=function(e,r,t){e=path2Curve(e),r=path2Curve(r);for(var i,n,a,o,s,l,u,c,h,v,d=t?0:[],p=0,y=e.length;pr?r:e},lighten:function(e,r){return e>r?e:r},dodge:function(e,r){return e===255?255:(e=255*(r/255)/(1-e/255),e>255?255:e)},burn:function(e,r){return r===255?255:e===0?0:255*(1-Math.min(1,(1-r/255)/(e/255)))}},h2=function(e){if(!Sd[e])throw new Error("unknown blend mode "+e);return Sd[e]};function f2(e,r,t){t===void 0&&(t="normal");var i=c2(h2(t))(Za(e),Za(r)),n=Za(e),a=n[0],o=n[1],s=n[2],l=n[3],u=Za(r),c=u[0],h=u[1],v=u[2],d=u[3],p=Number((l+d*(1-l)).toFixed(2)),y=Math.round((l*(1-d)*(a/255)+l*d*(i[0]/255)+(1-l)*d*(c/255))/p*255),x=Math.round((l*(1-d)*(o/255)+l*d*(i[1]/255)+(1-l)*d*(h/255))/p*255),m=Math.round((l*(1-d)*(s/255)+l*d*(i[2]/255)+(1-l)*d*(v/255))/p*255);return"rgba(".concat(y,", ").concat(x,", ").concat(m,", ").concat(p,")")}function Za(e){var r=e.replace("/s+/g",""),t;return typeof r=="string"&&!r.startsWith("rgba")&&!r.startsWith("#")?t=xr.rgb2arr(xr.toRGB(r)).concat([1]):(r.startsWith("rgba")&&(t=r.replace("rgba(","").replace(")","").split(",")),r.startsWith("#")&&(t=xr.rgb2arr(r).concat([1])),t.map(function(i,n){return n===3?Number(i):i|0}))}var ir=F(87026),bd=1e-10;function ul(e,r){var t=d2(e),i=t.filter(function(M){return v2(M,e)}),n=0,a=0,o,s=[];if(i.length>1){var l=Ad(i);for(o=0;o-1){var y=e[h.parentIndex[p]],x=Math.atan2(h.x-y.x,h.y-y.y),m=Math.atan2(c.x-y.x,c.y-y.y),_=m-x;_<0&&(_+=2*Math.PI);var w=m-_/2,S=Ke(v,{x:y.x+y.radius*Math.sin(w),y:y.y+y.radius*Math.cos(w)});S>y.radius*2&&(S=y.radius*2),(d===null||d.width>S)&&(d={circle:y,width:S,p1:h,p2:c})}d!==null&&(s.push(d),n+=cl(d.circle.radius,d.width),c=h)}}else{var b=e[0];for(o=1;oMath.abs(b.radius-e[o].radius)){C=!0;break}C?n=a=0:(n=b.radius*b.radius*Math.PI,s.push({circle:b,p1:{x:b.x,y:b.y+b.radius},p2:{x:b.x-bd,y:b.y+b.radius},width:b.radius*2}))}return a/=2,r&&(r.area=n+a,r.arcArea=n,r.polygonArea=a,r.arcs=s,r.innerPoints=i,r.intersectionPoints=t),n+a}function v2(e,r){for(var t=0;tr[t].radius+bd)return!1;return!0}function d2(e){for(var r=[],t=0;t=e+r)return 0;if(t<=Math.abs(e-r))return Math.PI*Math.min(e,r)*Math.min(e,r);var i=e-(t*t-r*r+e*e)/(2*t),n=r-(t*t-e*e+r*r)/(2*t);return cl(e,i)+cl(r,n)}function Md(e,r){var t=Ke(e,r),i=e.radius,n=r.radius;if(t>=i+n||t<=Math.abs(i-n))return[];var a=(i*i-n*n+t*t)/(2*t),o=Math.sqrt(i*i-a*a),s=e.x+a*(r.x-e.x)/t,l=e.y+a*(r.y-e.y)/t,u=-(r.y-e.y)*(o/t),c=-(r.x-e.x)*(o/t);return[{x:s+u,y:l-c},{x:s-u,y:l+c}]}function Ad(e){for(var r={x:0,y:0},t=0;t=o&&(a=t[i],o=s)}var l=(0,ir.nelderMead)(function(v){return-1*hl({x:v[0],y:v[1]},e,r)},[a.x,a.y],{maxIterations:500,minErrorDelta:1e-10}).x,u={x:l[0],y:l[1]},c=!0;for(i=0;ie[i].radius){c=!1;break}for(i=0;i0&&console.log("WARNING: area "+a+" not represented on screen")}return t}function y2(e,r,t){var i=[],n=e-t,a=r;return i.push("M",n,a),i.push("A",t,t,0,1,0,n+2*t,a),i.push("A",t,t,0,1,0,n,a),i.join(" ")}function CO(e){var r=e.split(" ");return{x:parseFloat(r[1]),y:parseFloat(r[2]),radius:-parseFloat(r[4])}}function m2(e){var r={};ul(e,r);var t=r.arcs;if(t.length===0)return"M 0 0";if(t.length==1){var i=t[0].circle;return y2(i.x,i.y,i.radius)}else{for(var n=[` +M`,t[0].p2.x,t[0].p2.y],a=0;as;n.push(` +A`,s,s,0,l?1:0,1,o.p1.x,o.p1.y)}return n.join(" ")}}function x2(e,r){r=r||{},r.maxIterations=r.maxIterations||500;var t=r.initialLayout||b2,i=r.lossFunction||vl;e=_2(e);var n=t(e,r),a=[],o=[],s;for(s in n)n.hasOwnProperty(s)&&(a.push(n[s].x),a.push(n[s].y),o.push(s));for(var l=(0,ir.nelderMead)(function(h){for(var v={},d=0;du?1:-1}),i=0;i=Math.min(r[o].size,r[s].size)?h=1:a.size<=1e-10&&(h=-1),n[o][s]=n[s][o]=h}),{distances:i,constraints:n}}function S2(e,r,t,i){var n=0,a;for(a=0;a0&&p<=h||v<0&&p>=h||(n+=2*y*y,r[2*a]+=4*y*(o-u),r[2*a+1]+=4*y*(s-c),r[2*l]+=4*y*(u-o),r[2*l+1]+=4*y*(c-s))}return n}function b2(e,r){var t=M2(e,r),i=r.lossFunction||vl;if(e.length>=8){var n=C2(e,r),a=i(n,e),o=i(t,e);a+1e-8=Math.min(i[c].size,i[h].size)&&(u=0),n[c].push({set:h,size:l.size,weight:u}),n[h].push({set:c,size:l.size,weight:u})}var v=[];for(a in n)if(n.hasOwnProperty(a)){for(var d=0,o=0;o0){var n=e[0].x,a=e[0].y;for(i=0;i1){var s=Math.atan2(e[1].x,e[1].y)-r,l=void 0,u=void 0,c=Math.cos(s),h=Math.sin(s);for(i=0;i2){for(var v=Math.atan2(e[2].x,e[2].y)-r;v<0;)v+=2*Math.PI;for(;v>2*Math.PI;)v-=2*Math.PI;if(v>Math.PI){var d=e[1].y/(1e-10+e[1].x);for(i=0;i1)throw new Error("quantiles must be between 0 and 1");return r===1?e[e.length-1]:r===0?e[0]:t%1!=0?e[Math.ceil(t)-1]:e.length%2==0?(e[t-1]+e[t])/2:e[t]}function En(e,r,t){var i=e[r];e[r]=e[t],e[t]=i}function qa(e,r,t,i){for(t=t||0,i=i||e.length-1;i>t;){if(i-t>600){var n=i-t+1,a=r-t+1,o=Math.log(n),s=.5*Math.exp(2*o/3),l=.5*Math.sqrt(o*s*(n-s)/n);a-n/2<0&&(l*=-1);var u=Math.max(t,Math.floor(r-a*s/n+l)),c=Math.min(i,Math.floor(r+(n-a)*s/n+l));qa(e,r,u,c)}var h=e[r],v=t,d=i;for(En(e,t,r),e[i]>h&&En(e,t,i);vh;)d--}e[t]===h?En(e,t,d):(d++,En(e,d,i)),d<=r&&(t=d+1),r<=d&&(i=d-1)}}function Tn(e,r){var t=e.slice();if(Array.isArray(r)){j2(t,r);for(var i=[],n=0;n0?c:h},x=P({},e,{options:{xField:n,yField:Ue,seriesField:n,rawFields:[a,$a,yl,Ue],widthRatio:l,interval:{style:u,shape:d||"waterfall",color:y}}}),m=Fe(x).ext,_=m.geometry;return _.customInfo((0,g.__assign)((0,g.__assign)({},p),{leaderLine:s})),e}function fL(e){var r,t,i=e.options,n=i.xAxis,a=i.yAxis,o=i.xField,s=i.yField,l=i.meta,u=P({},{alias:s},(0,f.get)(l,s));return Lt(he((r={},r[o]=n,r[s]=a,r[Ue]=a,r),P({},l,(t={},t[Ue]=u,t[$a]=u,t[pl]=u,t))))(e)}function vL(e){var r=e.chart,t=e.options,i=t.xAxis,n=t.yAxis,a=t.xField,o=t.yField;return i===!1?r.axis(a,!1):r.axis(a,i),n===!1?(r.axis(o,!1),r.axis(Ue,!1)):(r.axis(o,n),r.axis(Ue,n)),e}function dL(e){var r=e.chart,t=e.options,i=t.legend,n=t.total,a=t.risingFill,o=t.fallingFill,s=t.locale,l=Ma(s);if(i===!1)r.legend(!1);else{var u=[{name:l.get(["general","increase"]),value:"increase",marker:{symbol:"square",style:{r:5,fill:a}}},{name:l.get(["general","decrease"]),value:"decrease",marker:{symbol:"square",style:{r:5,fill:o}}}];n&&u.push({name:n.label||"",value:"total",marker:{symbol:"square",style:P({},{r:5},(0,f.get)(n,"style"))}}),r.legend(P({},{custom:!0,position:"top",items:u},i)),r.removeInteraction("legend-filter")}return e}function gL(e){var r=e.chart,t=e.options,i=t.label,n=t.labelMode,a=t.xField,o=Ae(r,"interval");if(!i)o.label(!1);else{var s=i.callback,l=(0,g.__rest)(i,["callback"]);o.label({fields:n==="absolute"?[pl,a]:[$a,a],callback:s,cfg:Se(l)})}return e}function pL(e){var r=e.chart,t=e.options,i=t.tooltip,n=t.xField,a=t.yField;if(i!==!1){r.tooltip((0,g.__assign)({showCrosshairs:!1,showMarkers:!1,shared:!0,fields:[a]},i));var o=r.geometries[0];(i==null?void 0:i.formatter)?o.tooltip("".concat(n,"*").concat(a),i.formatter):o.tooltip(a)}else r.tooltip(!1);return e}function yL(e){return Lt(cL,Xt,hL,fL,vL,dL,pL,gL,Or,oe,Qt,le())(e)}var EO=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.type="waterfall",t}return r.getDefaultOptions=function(){return oL},r.prototype.changeData=function(t){var i=this.options,n=i.xField,a=i.yField,o=i.total;this.updateOption({data:t}),this.chart.changeData(zd(t,n,a,o))},r.prototype.getSchemaAdaptor=function(){return yL},r.prototype.getDefaultOptions=function(){return r.getDefaultOptions()},r}(Dt),ml="color",mL=P({},Dt.getDefaultOptions(),{timeInterval:2e3,legend:!1,tooltip:{showTitle:!1,showMarkers:!1,showCrosshairs:!1,fields:["text","value",ml],formatter:function(e){return{name:e.text,value:e.value}}},wordStyle:{fontFamily:"Verdana",fontWeight:"normal",padding:1,fontSize:[12,60],rotation:[0,90],rotationSteps:2,rotateRatio:.5}}),xL={font:function(){return"serif"},padding:1,size:[500,500],spiral:"archimedean",timeInterval:3e3};function _L(e,r){return r=(0,f.assign)({},xL,r),wL(e,r)}function wL(e,r){var t=kL();["font","fontSize","fontWeight","padding","rotate","size","spiral","timeInterval","random"].forEach(function(l){(0,f.isNil)(r[l])||t[l](r[l])}),t.words(e),r.imageMask&&t.createMask(r.imageMask);var i=t.start(),n=i._tags;n.forEach(function(l){l.x+=r.size[0]/2,l.y+=r.size[1]/2});var a=r.size,o=a[0],s=a[1];return n.push({text:"",value:0,x:0,y:0,opacity:0}),n.push({text:"",value:0,x:o,y:s,opacity:0}),n}var xl=Math.PI/180,Ln=1<<11>>5,Qa=1<<11;function SL(e){return e.text}function bL(){return"serif"}function Vd(){return"normal"}function CL(e){return e.value}function ML(){return~~(Math.random()*2)*90}function AL(){return 1}function FL(e,r,t,i){if(!r.sprite){var n=e.context,a=e.ratio;n.clearRect(0,0,(Ln<<5)/a,Qa/a);var o=0,s=0,l=0,u=t.length;for(--i;++i>5<<5,h=~~Math.max(Math.abs(y+x),Math.abs(y-x))}else c=c+31>>5<<5;if(h>l&&(l=h),o+c>=Ln<<5&&(o=0,s+=l,l=0),s+h>=Qa)break;n.translate((o+(c>>1))/a,(s+(h>>1))/a),r.rotate&&n.rotate(r.rotate*xl),n.fillText(r.text,0,0),r.padding&&(n.lineWidth=2*r.padding,n.strokeText(r.text,0,0)),n.restore(),r.width=c,r.height=h,r.xoff=o,r.yoff=s,r.x1=c>>1,r.y1=h>>1,r.x0=-r.x1,r.y0=-r.y1,r.hasText=!0,o+=c}for(var _=n.getImageData(0,0,(Ln<<5)/a,Qa/a).data,w=[];--i>=0;)if(r=t[i],!!r.hasText){for(var c=r.width,S=c>>5,h=r.y1-r.y0,b=0;b>5),E=_[(s+A)*(Ln<<5)+(o+b)<<2]?1<<31-b%32:0;w[O]|=E,C|=E}C?M=A:(r.y0++,h--,A--,s++)}r.y1=r.y0+M,r.sprite=w.slice(0,(r.y1-r.y0)*S)}}}function EL(e,r,t){t>>=5;for(var i=e.sprite,n=e.width>>5,a=e.x-(n<<4),o=a&127,s=32-o,l=e.y1-e.y0,u=(e.y+e.y0)*t+(a>>5),c,h=0;h>>o:0))&r[u+v])return!0;u+=t}return!1}function TL(e,r){var t=e[0],i=e[1];r.x+r.x0i.x&&(i.x=r.x+r.x1),r.y+r.y1>i.y&&(i.y=r.y+r.y1)}function LL(e,r){return e.x+e.x1>r[0].x&&e.x+e.x0r[0].y&&e.y+e.y0>5)*e[1]),S=l.length,b=[],C=l.map(function(E,z,X){return E.text=c.call(this,E,z,X),E.font=r.call(this,E,z,X),E.style=h.call(this,E,z,X),E.weight=i.call(this,E,z,X),E.rotate=n.call(this,E,z,X),E.size=~~t.call(this,E,z,X),E.padding=a.call(this,E,z,X),E}).sort(function(E,z){return z.size-E.size}),M=-1,A=d.board?[{x:0,y:0},{x,y:m}]:null;O();function O(){for(var E=Date.now();Date.now()-E>1,z.y=m*(s()+.5)>>1,FL(_,z,C,M),z.hasText&&y(w,z,A)&&(b.push(z),A?d.hasImage||TL(A,z):A=[{x:z.x+z.x0,y:z.y+z.y0},{x:z.x+z.x1,y:z.y+z.y1}],z.x-=e[0]>>1,z.y-=e[1]>>1)}d._tags=b,d._bounds=A}return d};function p(x){x.width=x.height=1;var m=Math.sqrt(x.getContext("2d",{willReadFrequently:!0}).getImageData(0,0,1,1).data.length>>2);x.width=(Ln<<5)/m,x.height=Qa/m;var _=x.getContext("2d",{willReadFrequently:!0});return _.fillStyle=_.strokeStyle="red",_.textAlign="center",{context:_,ratio:m}}function y(x,m,_){for(var w=m.x,S=m.y,b=Math.sqrt(e[0]*e[0]+e[1]*e[1]),C=o(e),M=s()<.5?1:-1,A,O=-M,E,z;(A=C(O+=M))&&(E=~~A[0],z=~~A[1],!(Math.min(Math.abs(E),Math.abs(z))>=b));)if(m.x=w+E,m.y=S+z,!(m.x+m.x0<0||m.y+m.y0<0||m.x+m.x1>e[0]||m.y+m.y1>e[1])&&(!_||!EL(m,x,e[0]))&&(!_||LL(m,_))){for(var X=m.sprite,lt=m.width>>5,pt=e[0]>>5,At=m.x-(lt<<4),V=At&127,K=32-V,ft=m.y1-m.y0,nt=void 0,dt=(m.y+m.y0)*pt+(At>>5),St=0;St>>V:0);dt+=pt}return delete m.sprite,!0}return!1}return d.createMask=function(x){var m=document.createElement("canvas"),_=e[0],w=e[1];if(!(!_||!w)){var S=_>>5,b=Wd((_>>5)*w);m.width=_,m.height=w;var C=m.getContext("2d");C.drawImage(x,0,0,x.width,x.height,0,0,_,w);for(var M=C.getImageData(0,0,_,w).data,A=0;A>5),z=A*_+O<<2,X=M[z]>=250&&M[z+1]>=250&&M[z+2]>=250,lt=X?1<<31-O%32:0;b[E]|=lt}d.board=b,d.hasImage=!0}},d.timeInterval=function(x){u=x==null?Infinity:x},d.words=function(x){l=x},d.size=function(x){e=[+x[0],+x[1]]},d.font=function(x){r=nr(x)},d.fontWeight=function(x){i=nr(x)},d.rotate=function(x){n=nr(x)},d.spiral=function(x){o=PL[x]||x},d.fontSize=function(x){t=nr(x)},d.padding=function(x){a=nr(x)},d.random=function(x){s=nr(x)},d}function Hd(e){var r=e.options,t=e.chart,i=t,n=i.width,a=i.height,o=i.padding,s=i.appendPadding,l=i.ele,u=r.data,c=r.imageMask,h=r.wordField,v=r.weightField,d=r.colorField,p=r.wordStyle,y=r.timeInterval,x=r.random,m=r.spiral,_=r.autoFit,w=_===void 0?!0:_,S=r.placementStrategy;if(!u||!u.length)return[];var b=p.fontFamily,C=p.fontWeight,M=p.padding,A=p.fontSize,O=zL(u,v),E=[WL(O),HL(O)],z=u.map(function(pt){return{text:pt[h],value:pt[v],color:pt[d],datum:pt}}),X={imageMask:c,font:b,fontSize:NL(A,E),fontWeight:C,size:DL({width:n,height:a,padding:o,appendPadding:s,autoFit:w,container:l}),padding:M,timeInterval:y,random:x,spiral:m,rotate:VL(r)};if((0,f.isFunction)(S)){var lt=z.map(function(pt,At,V){return(0,g.__assign)((0,g.__assign)((0,g.__assign)({},pt),{hasText:!!pt.text,font:nr(X.font)(pt,At,V),weight:nr(X.fontWeight)(pt,At,V),rotate:nr(X.rotate)(pt,At,V),size:nr(X.fontSize)(pt,At,V),style:"normal"}),S.call(t,pt,At,V))});return lt.push({text:"",value:0,x:0,y:0,opacity:0}),lt.push({text:"",value:0,x:X.size[0],y:X.size[1],opacity:0}),lt}return _L(z,X)}function DL(e){var r=e.width,t=e.height,i=e.container,n=e.autoFit,a=e.padding,o=e.appendPadding;if(n){var s=bs(i);r=s.width,t=s.height}r=r||400,t=t||400;var l=BL({padding:a,appendPadding:o}),u=l[0],c=l[1],h=l[2],v=l[3],d=[r-(v+c),t-(u+h)];return d}function BL(e){var r=Ir(e.padding),t=Ir(e.appendPadding),i=r[0]+t[0],n=r[1]+t[1],a=r[2]+t[2],o=r[3]+t[3];return[i,n,a,o]}function RL(e){return new Promise(function(r,t){if(e instanceof HTMLImageElement){r(e);return}if((0,f.isString)(e)){var i=new Image;i.crossOrigin="anonymous",i.src=e,i.onload=function(){r(i)},i.onerror=function(){fr(je.ERROR,!1,"image %s load failed !!!",e),t()};return}fr(je.WARN,e===void 0,"The type of imageMask option must be String or HTMLImageElement."),t()})}function NL(e,r){if((0,f.isFunction)(e))return e;if((0,f.isArray)(e)){var t=e[0],i=e[1];if(!r)return function(){return(i+t)/2};var n=r[0],a=r[1];return a===n?function(){return(i+t)/2}:function(s){var l=s.value;return(i-t)/(a-n)*(l-n)+t}}return function(){return e}}function zL(e,r){return e.map(function(t){return t[r]}).filter(function(t){return typeof t=="number"&&!isNaN(t)})}function VL(e){var r=GL(e),t=r.rotation,i=r.rotationSteps;if(!(0,f.isArray)(t))return t;var n=t[0],a=t[1],o=i===1?0:(a-n)/(i-1);return function(){return a===n?a:Math.floor(Math.random()*i)*o}}function GL(e){var r=e.wordStyle.rotationSteps;return r<1&&(fr(je.WARN,!1,"The rotationSteps option must be greater than or equal to 1."),r=1),{rotation:e.wordStyle.rotation,rotationSteps:r}}function WL(e){return Math.min.apply(Math,e)}function HL(e){return Math.max.apply(Math,e)}function YL(e){var r=e.chart,t=e.options,i=t.colorField,n=t.color,a=Hd(e);r.data(a);var o=P({},e,{options:{xField:"x",yField:"y",seriesField:i&&ml,rawFields:(0,f.isFunction)(n)&&(0,g.__spreadArray)((0,g.__spreadArray)([],(0,f.get)(t,"rawFields",[]),!0),["datum"],!1),point:{color:n,shape:"word-cloud"}}}),s=Ge(o).ext;return s.geometry.label(!1),r.coordinate().reflect("y"),r.axis(!1),e}function XL(e){return Lt(he({x:{nice:!1},y:{nice:!1}}))(e)}function UL(e){var r=e.chart,t=e.options,i=t.legend,n=t.colorField;return i===!1?r.legend(!1):n&&r.legend(ml,i),e}function ZL(e){Lt(YL,XL,me,UL,oe,Qt,Xt,Or)(e)}qt("point","word-cloud",{draw:function(e,r){var t=e.x,i=e.y,n=r.addShape("text",{attrs:(0,g.__assign)((0,g.__assign)({},qL(e)),{x:t,y:i})}),a=e.data.rotate;return typeof a=="number"&&ke.rotate(n,a*Math.PI/180),n}});function qL(e){return{fontSize:e.data.size,text:e.data.text,textAlign:"center",fontFamily:e.data.font,fontWeight:e.data.weight,fill:e.color||e.defaultStyle.stroke,textBaseline:"alphabetic"}}var TO=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.type="word-cloud",t}return r.getDefaultOptions=function(){return mL},r.prototype.changeData=function(t){this.updateOption({data:t}),this.options.imageMask?this.render():this.chart.changeData(Hd({chart:this.chart,options:this.options}))},r.prototype.getDefaultOptions=function(){return r.getDefaultOptions()},r.prototype.render=function(){var t=this;return new Promise(function(i){var n=t.options.imageMask;if(!n){e.prototype.render.call(t),i();return}var a=function(o){t.options=(0,g.__assign)((0,g.__assign)({},t.options),{imageMask:o||null}),e.prototype.render.call(t),i()};RL(n).then(a).catch(a)})},r.prototype.getSchemaAdaptor=function(){return ZL},r.prototype.triggerResize=function(){var t=this;this.chart.destroyed||(this.execAdaptor(),window.setTimeout(function(){e.prototype.triggerResize.call(t)}))},r}(Dt),LO=function(e){(0,g.__extends)(r,e);function r(t,i,n,a){var o=e.call(this,t,P({},a,i))||this;return o.type="g2-plot",o.defaultOptions=a,o.adaptor=n,o}return r.prototype.getDefaultOptions=function(){return this.defaultOptions},r.prototype.getSchemaAdaptor=function(){return this.adaptor},r}(Dt),IO="2.4.31";af("en-US",U1),af("zh-CN",Z1);var OO={scale:he,legend:qr,tooltip:me,annotation:le,interaction:oe,theme:Xt,animation:Qt}},80638:function(){},15746:function(kt,ut,F){"use strict";var B=F(21584);ut.Z=B.Z},89032:function(kt,ut,F){"use strict";var B=F(38663),at=F.n(B),bt=F(6999)},99134:function(kt,ut,F){"use strict";var B=F(67294),at=(0,B.createContext)({});ut.Z=at},21584:function(kt,ut,F){"use strict";var B=F(96156),at=F(22122),bt=F(90484),wt=F(94184),yt=F.n(wt),vt=F(67294),rt=F(53124),$=F(99134),g=function(N,Q){var I={};for(var U in N)Object.prototype.hasOwnProperty.call(N,U)&&Q.indexOf(U)<0&&(I[U]=N[U]);if(N!=null&&typeof Object.getOwnPropertySymbols=="function")for(var st=0,U=Object.getOwnPropertySymbols(N);st0){var H=it[0]/2;W.paddingLeft=H,W.paddingRight=H}if(it&&it[1]>0&&!Vt){var G=it[1]/2;W.paddingTop=G,W.paddingBottom=G}return R&&(W.flex=f(R),Et===!1&&!W.minWidth&&(W.minWidth=0)),vt.createElement("div",(0,at.Z)({},q,{style:(0,at.Z)((0,at.Z)({},W),D),className:Mt,ref:Q}),Y)});ut.Z=T},92820:function(kt,ut,F){"use strict";var B=F(22122),at=F(96156),bt=F(90484),wt=F(28481),yt=F(94184),vt=F.n(yt),rt=F(67294),$=F(53124),g=F(98082),f=F(24308),tt=F(93355),T=F(99134),N=function(gt,Ct){var it={};for(var Et in gt)Object.prototype.hasOwnProperty.call(gt,Et)&&Ct.indexOf(Et)<0&&(it[Et]=gt[Et]);if(gt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Vt=0,Et=Object.getOwnPropertySymbols(gt);Vt0?xt[0]/-2:void 0,ae=xt[1]!=null&&xt[1]>0?xt[1]/-2:void 0;if(te&&(Ut.marginLeft=te,Ut.marginRight=te),It){var we=(0,wt.Z)(xt,2);Ut.rowGap=we[1]}else ae&&(Ut.marginTop=ae,Ut.marginBottom=ae);var re=(0,wt.Z)(xt,2),xe=re[0],be=re[1],_e=rt.useMemo(function(){return{gutter:[xe,be],wrap:et,supportFlexGap:It}},[xe,be,et,It]);return rt.createElement(T.Z.Provider,{value:_e},rt.createElement("div",(0,B.Z)({},Y,{className:Rt,style:(0,B.Z)((0,B.Z)({},Ut),se),ref:Ct}),Zt))});ut.Z=st},6999:function(kt,ut,F){"use strict";var B=F(38663),at=F.n(B),bt=F(80638),wt=F.n(bt)},71230:function(kt,ut,F){"use strict";var B=F(92820);ut.Z=B.Z},13062:function(kt,ut,F){"use strict";var B=F(38663),at=F.n(B),bt=F(6999)},56645:function(kt,ut){(function(F,B){B(ut)})(this,function(F){"use strict";function B(L,k){return at(L)||bt(L,k)||wt()}function at(L){if(Array.isArray(L))return L}function bt(L,k){var et=[],Y=!0,R=!1,D=void 0;try{for(var q=L[Symbol.iterator](),j;!(Y=(j=q.next()).done)&&(et.push(j.value),!(k&&et.length===k));Y=!0);}catch(mt){R=!0,D=mt}finally{try{!Y&&q.return!=null&&q.return()}finally{if(R)throw D}}return et}function wt(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function yt(L,k,et,Y){L=L.filter(function(ot,Z){var Ot=k(ot,Z),It=et(ot,Z);return Ot!=null&&isFinite(Ot)&&It!=null&&isFinite(It)}),Y&&L.sort(function(ot,Z){return k(ot)-k(Z)});for(var R=L.length,D=new Float64Array(R),q=new Float64Array(R),j=0,mt=0,Mt,W,H,G=0;GR&&(W.splice(J+1,0,It),G=!0)}return G}}function tt(L,k,et,Y){var R=Y-L*L,D=Math.abs(R)<1e-24?0:(et-L*k)/R,q=k-D*L;return[q,D]}function T(){var L=function(D){return D[0]},k=function(D){return D[1]},et;function Y(R){var D=0,q=0,j=0,mt=0,Mt=0,W=0,H=et?+et[0]:Infinity,G=et?+et[1]:-Infinity;vt(R,L,k,function(ct,Ft){var xt=Math.log(Ft),Rt=ct*Ft;++D,q+=(Ft-q)/D,mt+=(Rt-mt)/D,W+=(ct*Rt-W)/D,j+=(Ft*xt-j)/D,Mt+=(Rt*xt-Mt)/D,et||(ctG&&(G=ct))});var J=tt(mt/q,j/q,Mt/q,W/q),ot=B(J,2),Z=ot[0],Ot=ot[1];Z=Math.exp(Z);var It=function(Ft){return Z*Math.exp(Ot*Ft)},Tt=f(H,G,It);return Tt.a=Z,Tt.b=Ot,Tt.predict=It,Tt.rSquared=rt(R,L,k,q,It),Tt}return Y.domain=function(R){return arguments.length?(et=R,Y):et},Y.x=function(R){return arguments.length?(L=R,Y):L},Y.y=function(R){return arguments.length?(k=R,Y):k},Y}function N(){var L=function(D){return D[0]},k=function(D){return D[1]},et;function Y(R){var D=0,q=0,j=0,mt=0,Mt=0,W=et?+et[0]:Infinity,H=et?+et[1]:-Infinity;vt(R,L,k,function(Tt,ct){++D,q+=(Tt-q)/D,j+=(ct-j)/D,mt+=(Tt*ct-mt)/D,Mt+=(Tt*Tt-Mt)/D,et||(TtH&&(H=Tt))});var G=tt(q,j,mt,Mt),J=B(G,2),ot=J[0],Z=J[1],Ot=function(ct){return Z*ct+ot},It=[[W,Ot(W)],[H,Ot(H)]];return It.a=Z,It.b=ot,It.predict=Ot,It.rSquared=rt(R,L,k,j,Ot),It}return Y.domain=function(R){return arguments.length?(et=R,Y):et},Y.x=function(R){return arguments.length?(L=R,Y):L},Y.y=function(R){return arguments.length?(k=R,Y):k},Y}function Q(L){L.sort(function(et,Y){return et-Y});var k=L.length/2;return k%1==0?(L[k-1]+L[k])/2:L[Math.floor(k)]}var I=2,U=1e-12;function st(){var L=function(D){return D[0]},k=function(D){return D[1]},et=.3;function Y(R){for(var D=yt(R,L,k,!0),q=B(D,4),j=q[0],mt=q[1],Mt=q[2],W=q[3],H=j.length,G=Math.max(2,~~(et*H)),J=new Float64Array(H),ot=new Float64Array(H),Z=new Float64Array(H).fill(1),Ot=-1;++Ot<=I;){for(var It=[0,G-1],Tt=0;Ttj[xt]-ct?Ft:xt,Ut=0,te=0,ae=0,we=0,re=0,xe=1/Math.abs(j[Rt]-ct||1),be=Ft;be<=xt;++be){var _e=j[be],ce=mt[be],ve=gt(Math.abs(ct-_e)*xe)*Z[be],de=_e*ve;Ut+=ve,te+=de,ae+=ce*ve,we+=ce*de,re+=_e*de}var Te=tt(te/Ut,ae/Ut,we/Ut,re/Ut),ai=B(Te,2),oi=ai[0],si=ai[1];J[Tt]=oi+si*ct,ot[Tt]=Math.abs(mt[Tt]-J[Tt]),Ct(j,Tt+1,It)}if(Ot===I)break;var Ja=Q(ot);if(Math.abs(Ja)=1?U:(to=1-Di*Di)*to}return it(j,J,Mt,W)}return Y.bandwidth=function(R){return arguments.length?(et=R,Y):et},Y.x=function(R){return arguments.length?(L=R,Y):L},Y.y=function(R){return arguments.length?(k=R,Y):k},Y}function gt(L){return(L=1-L*L*L)*L*L}function Ct(L,k,et){var Y=L[k],R=et[0],D=et[1]+1;if(!(D>=L.length))for(;k>R&&L[D]-Y<=Y-L[R];)et[0]=++R,et[1]=D,++D}function it(L,k,et,Y){for(var R=L.length,D=[],q=0,j=0,mt=[],Mt;qG&&(G=Ft))});var ot=tt(j,mt,Mt,W),Z=B(ot,2),Ot=Z[0],It=Z[1],Tt=function(xt){return It*Math.log(xt)/J+Ot},ct=f(H,G,Tt);return ct.a=It,ct.b=Ot,ct.predict=Tt,ct.rSquared=rt(D,L,k,mt,Tt),ct}return R.domain=function(D){return arguments.length?(Y=D,R):Y},R.x=function(D){return arguments.length?(L=D,R):L},R.y=function(D){return arguments.length?(k=D,R):k},R.base=function(D){return arguments.length?(et=D,R):et},R}function Vt(){var L=function(D){return D[0]},k=function(D){return D[1]},et;function Y(R){var D=yt(R,L,k),q=B(D,4),j=q[0],mt=q[1],Mt=q[2],W=q[3],H=j.length,G=0,J=0,ot=0,Z=0,Ot=0,It,Tt,ct,Ft;for(It=0;Itte&&(te=ve))});var ae=ot-G*G,we=G*ae-J*J,re=(Ot*G-Z*J)/we,xe=(Z*ae-Ot*J)/we,be=-re*G,_e=function(de){return de=de-Mt,re*de*de+xe*de+be+W},ce=f(Ut,te,_e);return ce.a=re,ce.b=xe-2*re*Mt,ce.c=be-xe*Mt+re*Mt*Mt+W,ce.predict=_e,ce.rSquared=rt(R,L,k,xt,_e),ce}return Y.domain=function(R){return arguments.length?(et=R,Y):et},Y.x=function(R){return arguments.length?(L=R,Y):L},Y.y=function(R){return arguments.length?(k=R,Y):k},Y}function jt(){var L=function(q){return q[0]},k=function(q){return q[1]},et=3,Y;function R(D){if(et===1){var q=N().x(L).y(k).domain(Y)(D);return q.coefficients=[q.b,q.a],delete q.a,delete q.b,q}if(et===2){var j=Vt().x(L).y(k).domain(Y)(D);return j.coefficients=[j.c,j.b,j.a],delete j.a,delete j.b,delete j.c,j}var mt=yt(D,L,k),Mt=B(mt,4),W=Mt[0],H=Mt[1],G=Mt[2],J=Mt[3],ot=W.length,Z=[],Ot=[],It=et+1,Tt=0,ct=0,Ft=Y?+Y[0]:Infinity,xt=Y?+Y[1]:-Infinity;vt(D,L,k,function(_e,ce){++ct,Tt+=(ce-Tt)/ct,Y||(_ext&&(xt=_e))});var Rt,Ut,te,ae,we;for(Rt=0;Rt=0;--D)for(j=k[D],mt=1,R[D]+=j,q=1;q<=D;++q)mt*=(D+1-q)/q,R[D-q]+=j*Math.pow(et,q)*mt;return R[0]+=Y,R}function se(L){var k=L.length-1,et=[],Y,R,D,q,j;for(Y=0;YMath.abs(L[Y][q])&&(q=R);for(D=Y;D=Y;D--)L[D][R]-=L[D][Y]*L[Y][R]/L[Y][Y]}for(R=k-1;R>=0;--R){for(j=0,D=R+1;DG&&(G=ct))});var J=tt(q,j,mt,Mt),ot=B(J,2),Z=ot[0],Ot=ot[1];Z=Math.exp(Z);var It=function(Ft){return Z*Math.pow(Ft,Ot)},Tt=f(H,G,It);return Tt.a=Z,Tt.b=Ot,Tt.predict=It,Tt.rSquared=rt(R,L,k,W,It),Tt}return Y.domain=function(R){return arguments.length?(et=R,Y):et},Y.x=function(R){return arguments.length?(L=R,Y):L},Y.y=function(R){return arguments.length?(k=R,Y):k},Y}F.regressionExp=T,F.regressionLinear=N,F.regressionLoess=st,F.regressionLog=Et,F.regressionPoly=jt,F.regressionPow=Zt,F.regressionQuad=Vt,Object.defineProperty(F,"__esModule",{value:!0})})},87026:function(kt,ut){(function(F,B){B(ut)})(this,function(F){"use strict";function B(N,Q,I,U){U=U||{};var st=U.maxIterations||100,gt=U.tolerance||1e-10,Ct=N(Q),it=N(I),Et=I-Q;if(Ct*it>0)throw"Initial bisect points must have opposite signs";if(Ct===0)return Q;if(it===0)return I;for(var Vt=0;Vt=0&&(Q=jt),Math.abs(Et)=L[Zt-1].fx){var J=!1;if(q.fx>G.fx?(rt(j,1+jt,D,-jt,G),j.fx=N(j),j.fx=1)break;for(k=1;kit+gt*st*Et||Vt>=Y)et=st;else{if(Math.abs(Yt)<=-Ct*Et)return st;Yt*(et-k)>=0&&(et=k),k=st,Y=Vt}return 0}for(var L=0;L<10;++L){if(rt(U.x,1,I.x,st,Q),Vt=U.fx=N(U.x,U.fxprime),Yt=wt(U.fxprime,Q),Vt>it+gt*st*Et||L&&Vt>=jt)return Zt(se,st,jt);if(Math.abs(Yt)<=-Ct*Et)return st;if(Yt>=0)return Zt(st,se,Vt);jt=Vt,se=st,st*=2}return st}function f(N,Q,I){var U={x:Q.slice(),fx:0,fxprime:Q.slice()},st={x:Q.slice(),fx:0,fxprime:Q.slice()},gt=Q.slice(),Ct,it,Et=1,Vt;I=I||{},Vt=I.maxIterations||Q.length*20,U.fx=N(U.x,U.fxprime),Ct=U.fxprime.slice(),vt(Ct,U.fxprime,-1);for(var jt=0;jt=st.length)){var et=Math.max(k-tt,0),Y=k,R=Math.min(k+tt,st.length-1),D=et-(k-tt),q=k+tt-R,j=it[-tt-1+D]||0,mt=it[-tt-1+q]||0,Mt=Et/(Et-j-mt);D>0&&(jt+=Mt*(D-1)*Vt);var W=Math.max(0,k-tt+1);yt.inside(0,st.length-1,W)&&(st[W].y+=Mt*1*Vt),yt.inside(0,st.length-1,Y+1)&&(st[Y+1].y-=Mt*2*Vt),yt.inside(0,st.length-1,R+1)&&(st[R+1].y+=Mt*1*Vt)}});var Yt=jt,se=0,Zt=0;return st.forEach(function(L){se+=L.y,Yt+=se,L.y=Yt,Zt+=Yt}),Zt>0&&st.forEach(function(L){L.y/=Zt}),st};function rt($,g){for(var f={},tt=0,T=-g;T<=g;T++)tt+=$(T/g),f[T]=tt;return f}kt.exports.getExpectedValueFromPdf=function($){if(!(!$||$.length===0)){var g=0;return $.forEach(function(f){g+=f.x*f.y}),g}},kt.exports.getXWithLeftTailArea=function($,g){if(!(!$||$.length===0)){for(var f=0,tt=0,T=0;T<$.length&&(tt=T,f+=$[T].y,!(f>=g));T++);return $[tt].x}},kt.exports.getPerplexity=function($){if(!(!$||$.length===0)){var g=0;return $.forEach(function(f){var tt=Math.log(f.y);isFinite(tt)&&(g+=f.y*tt)}),g=-g/bt,Math.pow(2,g)}}},55168:function(kt,ut){"use strict";Object.defineProperty(ut,"__esModule",{value:!0}),ut.SensorTabIndex=ut.SensorClassName=ut.SizeSensorId=void 0;var F="size-sensor-id";ut.SizeSensorId=F;var B="size-sensor-object";ut.SensorClassName=B;var at="-1";ut.SensorTabIndex=at},12177:function(kt,ut){"use strict";Object.defineProperty(ut,"__esModule",{value:!0}),ut.default=void 0;var F=function(at){var bt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:60,wt=null;return function(){for(var yt=this,vt=arguments.length,rt=new Array(vt),$=0;$0&&U[U.length-1])&&(lt[0]===6||lt[0]===2)){z=0;continue}if(lt[0]===3&&(!U||lt[1]>U[0]&<[1]=18&&(E=K.createRoot)}catch(W){}function $(W){var H=K.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;H&&typeof H=="object"&&(H.usingClientEntryPoint=W)}var L="__rc_react_root__";function X(W,H){$(!0);var z=H[L]||E(H);$(!1),z.render(W),H[L]=z}function ot(W,H){h(W,H)}function ht(W,H){}function bt(W,H){if(E){X(W,H);return}ot(W,H)}function rt(W){return ct(this,void 0,void 0,function(){return et(this,function(H){return[2,Promise.resolve().then(function(){var z;(z=W[L])===null||z===void 0||z.unmount(),delete W[L]})]})})}function Mt(W){J(W)}function zt(W){}function qt(W){return ct(this,void 0,void 0,function(){return et(this,function(H){return E!==void 0?[2,rt(W)]:(Mt(W),[2])})})}var Yt=new Map,se=function(W,H,z){var Q=document.createElement("div");return H==="tooltip"&&(Q.setAttribute("data-uuid",z),Yt.has(z)?Q=Yt.get(z):Yt.set(z,Q),Q.className="g2-tooltip"),bt(W,Q),Q},jt=se,T=function(W,H){var z={}.toString;return z.call(W)==="[object ".concat(H,"]")},k=function(W){if(!W)return W;var H={};for(var z in W)H[z]=W[z];return H},tt=function(W){return Object.prototype.toString.call(W).slice(8,-1)},Y=function(W){if(!W||typeof W!="object")return W;var H;return Array.isArray(W)?H=W.map(function(z){return Y(z)}):(H={},Object.keys(W).forEach(function(z){return H[z]=Y(W[z])})),H},R=function(W,H){for(var z=W,Q=0;Q=0},e.prototype.getAdjustRange=function(r,t,i){var n=this.yField,a=i.indexOf(t),o=i.length,s,l;return!n&&this.isAdjust("y")?(s=0,l=1):o>1?(s=i[a===0?0:a-1],l=i[a===o-1?o-1:a+1],a!==0?s+=(t-s)/2:s-=(l-t)/2,a!==o-1?l-=(l-t)/2:l+=(t-i[o-2])/2):(s=t===0?0:t-.5,l=t===0?1:t+.5),{pre:s,next:l}},e.prototype.adjustData=function(r,t){var i=this,n=this.getDimValues(t);h.each(r,function(a,o){h.each(n,function(s,l){i.adjustDim(l,s,a,o)})})},e.prototype.groupData=function(r,t){return h.each(r,function(i){i[t]===void 0&&(i[t]=W)}),h.groupBy(r,t)},e.prototype.adjustDim=function(r,t,i,n){},e.prototype.getDimValues=function(r){var t=this,i=t.xField,n=t.yField,a=h.assign({},this.dimValuesMap),o=[];if(i&&this.isAdjust("x")&&o.push(i),n&&this.isAdjust("y")&&o.push(n),o.forEach(function(l){a&&a[l]||(a[l]=h.valuesOfKey(r,l).sort(function(u,c){return u-c}))}),!n&&this.isAdjust("y")){var s="y";a[s]=[W,1]}return a},e}(),U=nt,It={},Tt=function(e){return It[e.toLowerCase()]},Ft=function(e,r){if(Tt(e))throw new Error("Adjust type '"+e+"' existed.");It[e.toLowerCase()]=r};/*! ***************************************************************************** -Copyright (c) Microsoft Corporation. - -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH -REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY -AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, -INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM -LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR -OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR -PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */var lt=function(r,t){return lt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var a in n)n.hasOwnProperty(a)&&(i[a]=n[a])},lt(r,t)};function Ct(e,r){lt(e,r);function t(){this.constructor=e}e.prototype=r===null?Object.create(r):(t.prototype=r.prototype,new t)}var gt=function(){return gt=Object.assign||function(t){for(var i,n=1,a=arguments.length;n=0;s--)(o=e[s])&&(a=(n<3?o(a):n>3?o(r,t,a):o(r,t))||a);return n>3&&a&&Object.defineProperty(r,t,a),a}function te(e,r){return function(t,i){r(t,i,e)}}function ae(e,r){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,r)}function we(e,r,t,i){function n(a){return a instanceof t?a:new t(function(o){o(a)})}return new(t||(t=Promise))(function(a,o){function s(c){try{u(i.next(c))}catch(f){o(f)}}function l(c){try{u(i.throw(c))}catch(f){o(f)}}function u(c){c.done?a(c.value):n(c.value).then(s,l)}u((i=i.apply(e,r||[])).next())})}function re(e,r){var t={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},i,n,a,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(u){return function(c){return l([u,c])}}function l(u){if(i)throw new TypeError("Generator is already executing.");for(;t;)try{if(i=1,n&&(a=u[0]&2?n.return:u[0]?n.throw||((a=n.return)&&a.call(n),0):n.next)&&!(a=a.call(n,u[1])).done)return a;switch(n=0,a&&(u=[u[0]&2,a.value]),u[0]){case 0:case 1:a=u;break;case 4:return t.label++,{value:u[1],done:!1};case 5:t.label++,n=u[1],u=[0];continue;case 7:u=t.ops.pop(),t.trys.pop();continue;default:if(a=t.trys,!(a=a.length>0&&a[a.length-1])&&(u[0]===6||u[0]===2)){t=0;continue}if(u[0]===3&&(!a||u[1]>a[0]&&u[1]=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(r?"Object is not iterable.":"Symbol.iterator is not defined.")}function ce(e,r){var t=typeof Symbol=="function"&&e[Symbol.iterator];if(!t)return e;var i=t.call(e),n,a=[],o;try{for(;(r===void 0||r-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(s){o={error:s}}finally{try{n&&!n.done&&(t=i.return)&&t.call(i)}finally{if(o)throw o.error}}return a}function ve(){for(var e=[],r=0;r1||s(v,d)})})}function s(v,d){try{l(i[v](d))}catch(p){f(a[0][3],p)}}function l(v){v.value instanceof Te?Promise.resolve(v.value.v).then(u,c):f(a[0][2],v)}function u(v){s("next",v)}function c(v){s("throw",v)}function f(v,d){v(d),a.shift(),a.length&&s(a[0][0],a[0][1])}}function ni(e){var r,t;return r={},i("next"),i("throw",function(n){throw n}),i("return"),r[Symbol.iterator]=function(){return this},r;function i(n,a){r[n]=e[n]?function(o){return(t=!t)?{value:Te(e[n](o)),done:n==="return"}:a?a(o):o}:a}}function ai(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=e[Symbol.asyncIterator],t;return r?r.call(e):(e=typeof _e=="function"?_e(e):e[Symbol.iterator](),t={},i("next"),i("throw"),i("return"),t[Symbol.asyncIterator]=function(){return this},t);function i(a){t[a]=e[a]&&function(o){return new Promise(function(s,l){o=e[a](o),n(s,l,o.done,o.value)})}}function n(a,o,s,l){Promise.resolve(l).then(function(u){a({value:u,done:s})},o)}}function Xa(e,r){return Object.defineProperty?Object.defineProperty(e,"raw",{value:r}):e.raw=r,e}function Oi(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var t in e)Object.hasOwnProperty.call(e,t)&&(r[t]=e[t]);return r.default=e,r}function Pi(e){return e&&e.__esModule?e:{default:e}}function Ua(e,r){if(!r.has(e))throw new TypeError("attempted to get private field on non-instance");return r.get(e)}function FL(e,r,t){if(!r.has(e))throw new TypeError("attempted to set private field on non-instance");return r.set(e,t),t}var ud=function(e){Ct(r,e);function r(t){var i=e.call(this,t)||this;i.cacheMap={},i.adjustDataArray=[],i.mergeData=[];var n=t.marginRatio,a=n===void 0?H:n,o=t.dodgeRatio,s=o===void 0?z:o,l=t.dodgeBy,u=t.intervalPadding,c=t.dodgePadding,f=t.xDimensionLength,v=t.groupNum,d=t.defaultSize,p=t.maxColumnWidth,y=t.minColumnWidth,m=t.columnWidthRatio,x=t.customOffset;return i.marginRatio=a,i.dodgeRatio=s,i.dodgeBy=l,i.intervalPadding=u,i.dodgePadding=c,i.xDimensionLegenth=f,i.groupNum=v,i.defaultSize=d,i.maxColumnWidth=p,i.minColumnWidth=y,i.columnWidthRatio=m,i.customOffset=x,i}return r.prototype.process=function(t){var i=h.clone(t),n=h.flatten(i),a=this.dodgeBy,o=a?h.group(n,a):i;return this.cacheMap={},this.adjustDataArray=o,this.mergeData=n,this.adjustData(o,n),this.adjustDataArray=[],this.mergeData=[],i},r.prototype.adjustDim=function(t,i,n,a){var o=this,s=this.customOffset,l=this.getDistribution(t),u=this.groupData(n,t);return h.each(u,function(c,f){var v;i.length===1?v={pre:i[0]-1,next:i[0]+1}:v=o.getAdjustRange(t,parseFloat(f),i),h.each(c,function(d){var p=d[t],y=l[p],m=y.indexOf(a);if(h.isNil(s))d[t]=o.getDodgeOffset(v,m,y.length);else{var x=v.pre,_=v.next;d[t]=h.isFunction(s)?s(d,v):(x+_)/2+s}})}),[]},r.prototype.getDodgeOffset=function(t,i,n){var a=this,o=a.dodgeRatio,s=a.marginRatio,l=a.intervalPadding,u=a.dodgePadding,c=t.pre,f=t.next,v=f-c,d;if(!h.isNil(l)&&h.isNil(u)&&l>=0){var p=this.getIntervalOnlyOffset(n,i);d=c+p}else if(!h.isNil(u)&&h.isNil(l)&&u>=0){var p=this.getDodgeOnlyOffset(n,i);d=c+p}else if(!h.isNil(l)&&!h.isNil(u)&&l>=0&&u>=0){var p=this.getIntervalAndDodgeOffset(n,i);d=c+p}else{var y=v*o/n,m=s*y,p=1/2*(v-n*y-(n-1)*m)+((i+1)*y+i*m)-1/2*y-1/2*v;d=(c+f)/2+p}return d},r.prototype.getIntervalOnlyOffset=function(t,i){var n=this,a=n.defaultSize,o=n.intervalPadding,s=n.xDimensionLegenth,l=n.groupNum,u=n.dodgeRatio,c=n.maxColumnWidth,f=n.minColumnWidth,v=n.columnWidthRatio,d=o/s,p=(1-(l-1)*d)/l*u/(t-1),y=((1-d*(l-1))/l-p*(t-1))/t;if(y=h.isNil(v)?y:1/l/t*v,!h.isNil(c)){var m=c/s;y=Math.min(y,m)}if(!h.isNil(f)){var x=f/s;y=Math.max(y,x)}y=a?a/s:y,p=((1-(l-1)*d)/l-t*y)/(t-1);var _=((1/2+i)*y+i*p+1/2*d)*l-d/2;return _},r.prototype.getDodgeOnlyOffset=function(t,i){var n=this,a=n.defaultSize,o=n.dodgePadding,s=n.xDimensionLegenth,l=n.groupNum,u=n.marginRatio,c=n.maxColumnWidth,f=n.minColumnWidth,v=n.columnWidthRatio,d=o/s,p=1*u/(l-1),y=((1-p*(l-1))/l-d*(t-1))/t;if(y=v?1/l/t*v:y,!h.isNil(c)){var m=c/s;y=Math.min(y,m)}if(!h.isNil(f)){var x=f/s;y=Math.max(y,x)}y=a?a/s:y,p=(1-(y*t+d*(t-1))*l)/(l-1);var _=((1/2+i)*y+i*d+1/2*p)*l-p/2;return _},r.prototype.getIntervalAndDodgeOffset=function(t,i){var n=this,a=n.intervalPadding,o=n.dodgePadding,s=n.xDimensionLegenth,l=n.groupNum,u=a/s,c=o/s,f=((1-u*(l-1))/l-c*(t-1))/t,v=((1/2+i)*f+i*c+1/2*u)*l-u/2;return v},r.prototype.getDistribution=function(t){var i=this.adjustDataArray,n=this.cacheMap,a=n[t];return a||(a={},h.each(i,function(o,s){var l=h.valuesOfKey(o,t);l.length||l.push(0),h.each(l,function(u){a[u]||(a[u]=[]),a[u].push(s)})}),n[t]=a),a},r}(U),cd=ud;function hd(e,r){return(r-e)*Math.random()+e}var fd=function(e){Ct(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.process=function(t){var i=h.clone(t),n=h.flatten(i);return this.adjustData(i,n),i},r.prototype.adjustDim=function(t,i,n){var a=this,o=this.groupData(n,t);return h.each(o,function(s,l){return a.adjustGroup(s,t,parseFloat(l),i)})},r.prototype.getAdjustOffset=function(t){var i=t.pre,n=t.next,a=(n-i)*Q;return hd(i+a,n-a)},r.prototype.adjustGroup=function(t,i,n,a){var o=this,s=this.getAdjustRange(i,n,a);return h.each(t,function(l){l[i]=o.getAdjustOffset(s)}),t},r}(U),vd=fd,ja=h.Cache,dd=function(e){Ct(r,e);function r(t){var i=e.call(this,t)||this,n=t.adjustNames,a=n===void 0?["y"]:n,o=t.height,s=o===void 0?NaN:o,l=t.size,u=l===void 0?10:l,c=t.reverseOrder,f=c===void 0?!1:c;return i.adjustNames=a,i.height=s,i.size=u,i.reverseOrder=f,i}return r.prototype.process=function(t){var i=this,n=i.yField,a=i.reverseOrder,o=n?this.processStack(t):this.processOneDimStack(t);return a?this.reverse(o):o},r.prototype.reverse=function(t){return t.slice(0).reverse()},r.prototype.processStack=function(t){var i=this,n=i.xField,a=i.yField,o=i.reverseOrder,s=o?this.reverse(t):t,l=new ja,u=new ja;return s.map(function(c){return c.map(function(f){var v,d=h.get(f,n,0),p=h.get(f,[a]),y=d.toString();if(p=h.isArray(p)?p[1]:p,!h.isNil(p)){var m=p>=0?l:u;m.has(y)||m.set(y,0);var x=m.get(y),_=p+x;return m.set(y,_),gt(gt({},f),(v={},v[a]=[x,_],v))}return f})})},r.prototype.processOneDimStack=function(t){var i=this,n=this,a=n.xField,o=n.height,s=n.reverseOrder,l="y",u=s?this.reverse(t):t,c=new ja;return u.map(function(f){return f.map(function(v){var d,p=i.size,y=v[a],m=p*2/o;c.has(y)||c.set(y,m/2);var x=c.get(y);return c.set(y,x+m),gt(gt({},v),(d={},d[l]=x,d))})})},r}(U),gd=dd,pd=function(e){Ct(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.process=function(t){var i=h.flatten(t),n=this,a=n.xField,o=n.yField,s=this.getXValuesMaxMap(i),l=Math.max.apply(Math,Object.keys(s).map(function(u){return s[u]}));return h.map(t,function(u){return h.map(u,function(c){var f,v,d=c[o],p=c[a];if(h.isArray(d)){var y=(l-s[p])/2;return gt(gt({},c),(f={},f[o]=h.map(d,function(x){return y+x}),f))}var m=(l-d)/2;return gt(gt({},c),(v={},v[o]=[m,d+m],v))})})},r.prototype.getXValuesMaxMap=function(t){var i=this,n=this,a=n.xField,o=n.yField,s=h.groupBy(t,function(l){return l[a]});return h.mapValues(s,function(l){return i.getDimMaxValue(l,o)})},r.prototype.getDimMaxValue=function(t,i){var n=h.map(t,function(o){return h.get(o,i,[])}),a=h.flatten(n);return Math.max.apply(Math,a)},r}(U),yd=pd;Ft("Dodge",cd),Ft("Jitter",vd),Ft("Stack",gd),Ft("Symmetric",yd);var cl=function(e,r){return(0,h.isString)(r)?r:e.invert(e.scale(r))},md=function(){function e(r){this.names=[],this.scales=[],this.linear=!1,this.values=[],this.callback=function(){return[]},this._parseCfg(r)}return e.prototype.mapping=function(){for(var r=this,t=[],i=0;i1?1:Number(r),i=e.length-1,n=Math.floor(i*t),a=i*t-n,o=e[n],s=n===i?o:e[n+1];return hl([Za(o,s,a,0),Za(o,s,a,1),Za(o,s,a,2)])},Mn,vl=function(e){if(e[0]==="#"&&e.length===7)return e;Mn||(Mn=Cd()),Mn.style.color=e;var r=document.defaultView.getComputedStyle(Mn,"").getPropertyValue("color"),t=xd.exec(r),i=t[1].split(/\s*,\s*/).map(function(n){return Number(n)});return r=hl(i),r},Md=function(e){var r=(0,h.isString)(e)?e.split("-"):e,t=(0,h.map)(r,function(i){return fl(i.indexOf("#")===-1?vl(i):i)});return function(i){return Ad(t,i)}},Fd=function(e){if(Sd(e)){var r,t=void 0;if(e[0]==="l"){var i=_d.exec(e),n=+i[1]+90;t=i[2],r="linear-gradient("+n+"deg, "}else if(e[0]==="r"){r="radial-gradient(";var i=wd.exec(e);t=i[4]}var a=t.match(bd);return(0,h.each)(a,function(o,s){var l=o.split(":");r+=l[1]+" "+l[0]*100+"%",s!==a.length-1&&(r+=", ")}),r+=")",r}return e},xr={rgb2arr:fl,gradient:Md,toRGB:(0,h.memoize)(vl),toCSSGradient:Fd},Ed=function(e){(0,g.__extends)(r,e);function r(t){var i=e.call(this,t)||this;return i.type="color",i.names=["color"],(0,h.isString)(i.values)&&(i.linear=!0),i.gradient=xr.gradient(i.values),i}return r.prototype.getLinearValue=function(t){return this.gradient(t)},r}(ki),Td=Ed,Ld=function(e){(0,g.__extends)(r,e);function r(t){var i=e.call(this,t)||this;return i.type="opacity",i.names=["opacity"],i}return r}(ki),Id=Ld,Od=function(e){(0,g.__extends)(r,e);function r(t){var i=e.call(this,t)||this;return i.names=["x","y"],i.type="position",i}return r.prototype.mapping=function(t,i){var n=this.scales,a=n[0],o=n[1];return(0,h.isNil)(t)||(0,h.isNil)(i)?[]:[(0,h.isArray)(t)?t.map(function(s){return a.scale(s)}):a.scale(t),(0,h.isArray)(i)?i.map(function(s){return o.scale(s)}):o.scale(i)]},r}(ki),Pd=Od,kd=function(e){(0,g.__extends)(r,e);function r(t){var i=e.call(this,t)||this;return i.type="shape",i.names=["shape"],i}return r.prototype.getLinearValue=function(t){var i=Math.round((this.values.length-1)*t);return this.values[i]},r}(ki),Dd=kd,Bd=function(e){(0,g.__extends)(r,e);function r(t){var i=e.call(this,t)||this;return i.type="size",i.names=["size"],i}return r}(ki),Rd=Bd,Di=M(86429),dl={},gl=function(e){return dl[e.toLowerCase()]},Bi=function(e,r){if(gl(e))throw new Error("Attribute type '".concat(e,"' existed."));dl[e.toLowerCase()]=r};Bi("Color",Td),Bi("Opacity",Id),Bi("Position",Pd),Bi("Shape",Dd),Bi("Size",Rd);var Fn=M(77160),Nd=M(35600),ie=M(31506),zd=function(){function e(r){this.type="coordinate",this.isRect=!1,this.isHelix=!1,this.isPolar=!1,this.isReflectX=!1,this.isReflectY=!1;var t=r.start,i=r.end,n=r.matrix,a=n===void 0?[1,0,0,0,1,0,0,0,1]:n,o=r.isTransposed,s=o===void 0?!1:o;this.start=t,this.end=i,this.matrix=a,this.originalMatrix=(0,g.__spreadArray)([],a),this.isTransposed=s}return e.prototype.initial=function(){this.center={x:(this.start.x+this.end.x)/2,y:(this.start.y+this.end.y)/2},this.width=Math.abs(this.end.x-this.start.x),this.height=Math.abs(this.end.y-this.start.y)},e.prototype.update=function(r){(0,h.assign)(this,r),this.initial()},e.prototype.convertDim=function(r,t){var i,n=this[t],a=n.start,o=n.end;return this.isReflect(t)&&(i=[o,a],a=i[0],o=i[1]),a+r*(o-a)},e.prototype.invertDim=function(r,t){var i,n=this[t],a=n.start,o=n.end;return this.isReflect(t)&&(i=[o,a],a=i[0],o=i[1]),(r-a)/(o-a)},e.prototype.applyMatrix=function(r,t,i){i===void 0&&(i=0);var n=this.matrix,a=[r,t,i];return Fn.transformMat3(a,a,n),a},e.prototype.invertMatrix=function(r,t,i){i===void 0&&(i=0);var n=this.matrix,a=Nd.invert([0,0,0,0,0,0,0,0,0],n),o=[r,t,i];return a&&Fn.transformMat3(o,o,a),o},e.prototype.convert=function(r){var t=this.convertPoint(r),i=t.x,n=t.y,a=this.applyMatrix(i,n,1);return{x:a[0],y:a[1]}},e.prototype.invert=function(r){var t=this.invertMatrix(r.x,r.y,1);return this.invertPoint({x:t[0],y:t[1]})},e.prototype.rotate=function(r){var t=this.matrix,i=this.center;return ie.m$(t,t,[-i.x,-i.y]),ie.zu(t,t,r),ie.m$(t,t,[i.x,i.y]),this},e.prototype.reflect=function(r){return r==="x"?this.isReflectX=!this.isReflectX:this.isReflectY=!this.isReflectY,this},e.prototype.scale=function(r,t){var i=this.matrix,n=this.center;return ie.m$(i,i,[-n.x,-n.y]),ie.lh(i,i,[r,t]),ie.m$(i,i,[n.x,n.y]),this},e.prototype.translate=function(r,t){var i=this.matrix;return ie.m$(i,i,[r,t]),this},e.prototype.transpose=function(){return this.isTransposed=!this.isTransposed,this},e.prototype.getCenter=function(){return this.center},e.prototype.getWidth=function(){return this.width},e.prototype.getHeight=function(){return this.height},e.prototype.getRadius=function(){return this.radius},e.prototype.isReflect=function(r){return r==="x"?this.isReflectX:this.isReflectY},e.prototype.resetMatrix=function(r){this.matrix=r||(0,g.__spreadArray)([],this.originalMatrix)},e}(),Ka=zd,Vd=function(e){(0,g.__extends)(r,e);function r(t){var i=e.call(this,t)||this;return i.isRect=!0,i.type="cartesian",i.initial(),i}return r.prototype.initial=function(){e.prototype.initial.call(this);var t=this.start,i=this.end;this.x={start:t.x,end:i.x},this.y={start:t.y,end:i.y}},r.prototype.convertPoint=function(t){var i,n=t.x,a=t.y;return this.isTransposed&&(i=[a,n],n=i[0],a=i[1]),{x:this.convertDim(n,"x"),y:this.convertDim(a,"y")}},r.prototype.invertPoint=function(t){var i,n=this.invertDim(t.x,"x"),a=this.invertDim(t.y,"y");return this.isTransposed&&(i=[a,n],n=i[0],a=i[1]),{x:n,y:a}},r}(Ka),pl=Vd,Lt=M(31437),Gd=function(e){(0,g.__extends)(r,e);function r(t){var i=e.call(this,t)||this;i.isHelix=!0,i.type="helix";var n=t.startAngle,a=n===void 0?1.25*Math.PI:n,o=t.endAngle,s=o===void 0?7.25*Math.PI:o,l=t.innerRadius,u=l===void 0?0:l,c=t.radius;return i.startAngle=a,i.endAngle=s,i.innerRadius=u,i.radius=c,i.initial(),i}return r.prototype.initial=function(){e.prototype.initial.call(this);var t=(this.endAngle-this.startAngle)/(2*Math.PI)+1,i=Math.min(this.width,this.height)/2;this.radius&&this.radius>=0&&this.radius<=1&&(i=i*this.radius),this.d=Math.floor(i*(1-this.innerRadius)/t),this.a=this.d/(Math.PI*2),this.x={start:this.startAngle,end:this.endAngle},this.y={start:this.innerRadius*i,end:this.innerRadius*i+this.d*.99}},r.prototype.convertPoint=function(t){var i,n=t.x,a=t.y;this.isTransposed&&(i=[a,n],n=i[0],a=i[1]);var o=this.convertDim(n,"x"),s=this.a*o,l=this.convertDim(a,"y");return{x:this.center.x+Math.cos(o)*(s+l),y:this.center.y+Math.sin(o)*(s+l)}},r.prototype.invertPoint=function(t){var i,n=this.d+this.y.start,a=Lt.subtract([0,0],[t.x,t.y],[this.center.x,this.center.y]),o=ie.Dg(a,[1,0],!0),s=o*this.a;Lt.length(a)this.width/i?(s=this.width/i,this.circleCenter={x:this.center.x-(.5-a)*this.width,y:this.center.y-(.5-o)*s*n}):(s=this.height/n,this.circleCenter={x:this.center.x-(.5-a)*s*i,y:this.center.y-(.5-o)*this.height}),this.polarRadius=this.radius,this.radius?this.radius>0&&this.radius<=1?this.polarRadius=s*this.radius:(this.radius<=0||this.radius>s)&&(this.polarRadius=s):this.polarRadius=s,this.x={start:this.startAngle,end:this.endAngle},this.y={start:this.innerRadius*this.polarRadius,end:this.polarRadius}},r.prototype.getRadius=function(){return this.polarRadius},r.prototype.convertPoint=function(t){var i,n=this.getCenter(),a=t.x,o=t.y;return this.isTransposed&&(i=[o,a],a=i[0],o=i[1]),a=this.convertDim(a,"x"),o=this.convertDim(o,"y"),{x:n.x+Math.cos(a)*o,y:n.y+Math.sin(a)*o}},r.prototype.invertPoint=function(t){var i,n=this.getCenter(),a=[t.x-n.x,t.y-n.y],o=this,s=o.startAngle,l=o.endAngle;this.isReflect("x")&&(i=[l,s],s=i[0],l=i[1]);var u=[1,0,0,0,1,0,0,0,1];ie.zu(u,u,s);var c=[1,0,0];Fn.transformMat3(c,c,u);var f=[c[0],c[1]],v=ie.Dg(f,a,l0?p:-p;var y=this.invertDim(d,"y"),m={x:0,y:0};return m.x=this.isTransposed?y:p,m.y=this.isTransposed?p:y,m},r.prototype.getCenter=function(){return this.circleCenter},r.prototype.getOneBox=function(){var t=this.startAngle,i=this.endAngle;if(Math.abs(i-t)>=Math.PI*2)return{minX:-1,maxX:1,minY:-1,maxY:1};for(var n=[0,Math.cos(t),Math.cos(i)],a=[0,Math.sin(t),Math.sin(i)],o=Math.min(t,i);o=0;i--)e.removeChild(r[i])}function Zd(e,r){return!!e.className.match(new RegExp("(\\s|^)"+r+"(\\s|$)"))}function Ri(e){var r=e.start,t=e.end,i=Math.min(r.x,t.x),n=Math.min(r.y,t.y),a=Math.max(r.x,t.x),o=Math.max(r.y,t.y);return{x:i,y:n,minX:i,minY:n,maxX:a,maxY:o,width:a-i,height:o-n}}function qd(e){var r=e.map(function(s){return s.x}),t=e.map(function(s){return s.y}),i=Math.min.apply(Math,r),n=Math.min.apply(Math,t),a=Math.max.apply(Math,r),o=Math.max.apply(Math,t);return{x:i,y:n,minX:i,minY:n,maxX:a,maxY:o,width:a-i,height:o-n}}function Ni(e,r,t,i){var n=e+t,a=r+i;return{x:e,y:r,width:t,height:i,minX:e,minY:r,maxX:isNaN(n)?0:n,maxY:isNaN(a)?0:a}}function Br(e,r,t){return(1-t)*e+r*t}function oi(e,r,t){return{x:e.x+Math.cos(t)*r,y:e.y+Math.sin(t)*r}}function Kd(e,r){var t=r.x-e.x,i=r.y-e.y;return Math.sqrt(t*t+i*i)}var EL=function(e){return new Promise(function(r){setTimeout(r,e)})},In=function(e,r,t){return t===void 0&&(t=Math.pow(Number.EPSILON,.5)),[e,r].includes(Infinity)?Math.abs(e)===Math.abs(r):Math.abs(e-r)0?(0,h.each)(l,function(u){if(u.get("visible")){if(u.isGroup()&&u.get("children").length===0)return!0;var c=wl(u),f=u.applyToMatrix([c.minX,c.minY,1]),v=u.applyToMatrix([c.minX,c.maxY,1]),d=u.applyToMatrix([c.maxX,c.minY,1]),p=u.applyToMatrix([c.maxX,c.maxY,1]),y=Math.min(f[0],v[0],d[0],p[0]),m=Math.max(f[0],v[0],d[0],p[0]),x=Math.min(f[1],v[1],d[1],p[1]),_=Math.max(f[1],v[1],d[1],p[1]);ya&&(a=m),xs&&(s=_)}}):(n=0,a=0,o=0,s=0),i=Ni(n,o,a-n,s-o)}return t?$d(i,t):i}function Qd(e,r){if(!(!e.getClip()&&!r.getClip())){var t=r.getClip();if(!t){e.setClip(null);return}var i={type:t.get("type"),attrs:t.attr()};e.setClip(i)}}function Le(e){return e+"px"}function bl(e,r,t,i){var n=Kd(e,r),a=i/n,o=0;return t==="start"?o=0-a:t==="end"&&(o=1+a),{x:Br(e.x,r.x,o),y:Br(e.y,r.y,o)}}var Jd={none:[],point:["x","y"],region:["start","end"],points:["points"],circle:["center","radius","startAngle","endAngle"]},tg=function(e){(0,g.__extends)(r,e);function r(t){var i=e.call(this,t)||this;return i.initCfg(),i}return r.prototype.getDefaultCfg=function(){return{id:"",name:"",type:"",locationType:"none",offsetX:0,offsetY:0,animate:!1,capture:!0,updateAutoRender:!1,animateOption:{appear:null,update:{duration:400,easing:"easeQuadInOut"},enter:{duration:400,easing:"easeQuadInOut"},leave:{duration:350,easing:"easeQuadIn"}},events:null,defaultCfg:{},visible:!0}},r.prototype.clear=function(){},r.prototype.update=function(t){var i=this,n=this.get("defaultCfg")||{};(0,h.each)(t,function(a,o){var s=i.get(o),l=a;s!==a&&((0,h.isObject)(a)&&n[o]&&(l=(0,h.deepMix)({},n[o],a)),i.set(o,l))}),this.updateInner(t),this.afterUpdate(t)},r.prototype.updateInner=function(t){},r.prototype.afterUpdate=function(t){(0,h.hasKey)(t,"visible")&&(t.visible?this.show():this.hide()),(0,h.hasKey)(t,"capture")&&this.setCapture(t.capture)},r.prototype.getLayoutBBox=function(){return this.getBBox()},r.prototype.getLocationType=function(){return this.get("locationType")},r.prototype.getOffset=function(){return{offsetX:this.get("offsetX"),offsetY:this.get("offsetY")}},r.prototype.setOffset=function(t,i){this.update({offsetX:t,offsetY:i})},r.prototype.setLocation=function(t){var i=(0,g.__assign)({},t);this.update(i)},r.prototype.getLocation=function(){var t=this,i={},n=this.get("locationType"),a=Jd[n];return(0,h.each)(a,function(o){i[o]=t.get(o)}),i},r.prototype.isList=function(){return!1},r.prototype.isSlider=function(){return!1},r.prototype.init=function(){},r.prototype.initCfg=function(){var t=this,i=this.get("defaultCfg");(0,h.each)(i,function(n,a){var o=t.get(a);if((0,h.isObject)(o)){var s=(0,h.deepMix)({},n,o);t.set(a,s)}})},r}(St.Base),Sl=tg,Rr="update_status",eg=["visible","tip","delegateObject"],rg=["container","group","shapesMap","isRegister","isUpdating","destroyed"],ig=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,g.__assign)((0,g.__assign)({},t),{container:null,shapesMap:{},group:null,capture:!0,isRegister:!1,isUpdating:!1,isInit:!0})},r.prototype.remove=function(){this.clear();var t=this.get("group");t.remove()},r.prototype.clear=function(){var t=this.get("group");t.clear(),this.set("shapesMap",{}),this.clearOffScreenCache(),this.set("isInit",!0)},r.prototype.getChildComponentById=function(t){var i=this.getElementById(t),n=i&&i.get("component");return n},r.prototype.getElementById=function(t){return this.get("shapesMap")[t]},r.prototype.getElementByLocalId=function(t){var i=this.getElementId(t);return this.getElementById(i)},r.prototype.getElementsByName=function(t){var i=[];return(0,h.each)(this.get("shapesMap"),function(n){n.get("name")===t&&i.push(n)}),i},r.prototype.getContainer=function(){return this.get("container")},r.prototype.updateInner=function(t){this.offScreenRender(),this.get("updateAutoRender")&&this.render()},r.prototype.render=function(){var t=this.get("offScreenGroup");t||(t=this.offScreenRender());var i=this.get("group");this.updateElements(t,i),this.deleteElements(),this.applyOffset(),this.get("eventInitted")||(this.initEvent(),this.set("eventInitted",!0)),this.set("isInit",!1)},r.prototype.show=function(){var t=this.get("group");t.show(),this.set("visible",!0)},r.prototype.hide=function(){var t=this.get("group");t.hide(),this.set("visible",!1)},r.prototype.setCapture=function(t){var i=this.get("group");i.set("capture",t),this.set("capture",t)},r.prototype.destroy=function(){this.removeEvent(),this.remove(),e.prototype.destroy.call(this)},r.prototype.getBBox=function(){return this.get("group").getCanvasBBox()},r.prototype.getLayoutBBox=function(){var t=this.get("group"),i=this.getInnerLayoutBBox(),n=t.getTotalMatrix();return n&&(i=jd(n,i)),i},r.prototype.on=function(t,i,n){var a=this.get("group");return a.on(t,i,n),this},r.prototype.off=function(t,i){var n=this.get("group");return n&&n.off(t,i),this},r.prototype.emit=function(t,i){var n=this.get("group");n.emit(t,i)},r.prototype.init=function(){e.prototype.init.call(this),this.get("group")||this.initGroup(),this.offScreenRender()},r.prototype.getInnerLayoutBBox=function(){return this.get("offScreenBBox")||this.get("group").getBBox()},r.prototype.delegateEmit=function(t,i){var n=this.get("group");i.target=n,n.emit(t,i),ml(n,t,i)},r.prototype.createOffScreenGroup=function(){var t=this.get("group"),i=t.getGroupBase(),n=new i({delegateObject:this.getDelegateObject()});return n},r.prototype.applyOffset=function(){var t=this.get("offsetX"),i=this.get("offsetY");this.moveElementTo(this.get("group"),{x:t,y:i})},r.prototype.initGroup=function(){var t=this.get("container");this.set("group",t.addGroup({id:this.get("id"),name:this.get("name"),capture:this.get("capture"),visible:this.get("visible"),isComponent:!0,component:this,delegateObject:this.getDelegateObject()}))},r.prototype.offScreenRender=function(){this.clearOffScreenCache();var t=this.createOffScreenGroup();return this.renderInner(t),this.set("offScreenGroup",t),this.set("offScreenBBox",wl(t)),t},r.prototype.addGroup=function(t,i){this.appendDelegateObject(t,i);var n=t.addGroup(i);return this.get("isRegister")&&this.registerElement(n),n},r.prototype.addShape=function(t,i){this.appendDelegateObject(t,i);var n=t.addShape(i);return this.get("isRegister")&&this.registerElement(n),n},r.prototype.addComponent=function(t,i){var n=i.id,a=i.component,o=(0,g.__rest)(i,["id","component"]),s=new a((0,g.__assign)((0,g.__assign)({},o),{id:n,container:t,updateAutoRender:this.get("updateAutoRender")}));return s.init(),s.render(),this.get("isRegister")&&this.registerElement(s.get("group")),s},r.prototype.initEvent=function(){},r.prototype.removeEvent=function(){var t=this.get("group");t.off()},r.prototype.getElementId=function(t){var i=this.get("id"),n=this.get("name");return i+"-"+n+"-"+t},r.prototype.registerElement=function(t){var i=t.get("id");this.get("shapesMap")[i]=t},r.prototype.unregisterElement=function(t){var i=t.get("id");delete this.get("shapesMap")[i]},r.prototype.moveElementTo=function(t,i){var n=$a(i);t.attr("matrix",n)},r.prototype.addAnimation=function(t,i,n){var a=i.attr("opacity");(0,h.isNil)(a)&&(a=1),i.attr("opacity",0),i.animate({opacity:a},n)},r.prototype.removeAnimation=function(t,i,n){i.animate({opacity:0},n)},r.prototype.updateAnimation=function(t,i,n,a){i.animate(n,a)},r.prototype.updateElements=function(t,i){var n=this,a=this.get("animate"),o=this.get("animateOption"),s=t.getChildren().slice(0),l;(0,h.each)(s,function(u){var c=u.get("id"),f=n.getElementById(c),v=u.get("name");if(f)if(u.get("isComponent")){var d=u.get("component"),p=f.get("component"),y=(0,h.pick)(d.cfg,(0,h.difference)((0,h.keys)(d.cfg),rg));p.update(y),f.set(Rr,"update")}else{var m=n.getReplaceAttrs(f,u);a&&o.update?n.updateAnimation(v,f,m,o.update):f.attr(m),u.isGroup()&&n.updateElements(u,f),(0,h.each)(eg,function(b){f.set(b,u.get(b))}),Qd(f,u),l=f,f.set(Rr,"update")}else{i.add(u);var x=i.getChildren();if(x.splice(x.length-1,1),l){var _=x.indexOf(l);x.splice(_+1,0,u)}else x.unshift(u);if(n.registerElement(u),u.set(Rr,"add"),u.get("isComponent")){var d=u.get("component");d.set("container",i)}else u.isGroup()&&n.registerNewGroup(u);if(l=u,a){var w=n.get("isInit")?o.appear:o.enter;w&&n.addAnimation(v,u,w)}}})},r.prototype.clearUpdateStatus=function(t){var i=t.getChildren();(0,h.each)(i,function(n){n.set(Rr,null)})},r.prototype.clearOffScreenCache=function(){var t=this.get("offScreenGroup");t&&t.destroy(),this.set("offScreenGroup",null),this.set("offScreenBBox",null)},r.prototype.getDelegateObject=function(){var t,i=this.get("name"),n=(t={},t[i]=this,t.component=this,t);return n},r.prototype.appendDelegateObject=function(t,i){var n=t.get("delegateObject");i.delegateObject||(i.delegateObject={}),(0,h.mix)(i.delegateObject,n)},r.prototype.getReplaceAttrs=function(t,i){var n=t.attr(),a=i.attr();return(0,h.each)(n,function(o,s){a[s]===void 0&&(a[s]=void 0)}),a},r.prototype.registerNewGroup=function(t){var i=this,n=t.getChildren();(0,h.each)(n,function(a){i.registerElement(a),a.set(Rr,"add"),a.isGroup()&&i.registerNewGroup(a)})},r.prototype.deleteElements=function(){var t=this,i=this.get("shapesMap"),n=[];(0,h.each)(i,function(s,l){!s.get(Rr)||s.destroyed?n.push([l,s]):s.set(Rr,null)});var a=this.get("animate"),o=this.get("animateOption");(0,h.each)(n,function(s){var l=s[0],u=s[1];if(!u.destroyed){var c=u.get("name");if(a&&o.leave){var f=(0,h.mix)({callback:function(){t.removeElement(u)}},o.leave);t.removeAnimation(c,u,f)}else t.removeElement(u)}delete i[l]})},r.prototype.removeElement=function(t){if(t.get("isGroup")){var i=t.get("component");i&&i.destroy()}t.remove()},r}(Sl),Ae=ig,to="\u2026";function ng(e){for(var r=0,t=0;t0&&e.charCodeAt(r)<128?1:2}function ag(e,r,t){t===void 0&&(t="tail");var i=e.length,n="";if(t==="tail"){for(var a=0,o=0;a=19968&&s<=40869?a+=2:a+=1}a>t&&(t=a,i=n)}return e[i].getBBox().width}function eo(e){if(e.length>lg)return ug(e);var r=0;return(0,h.each)(e,function(t){var i=t.getBBox(),n=i.width;r=0?v=ag(a,f,i):v=og,v&&(r.attr("text",v),c=!0)}return c?r.set("tip",a):r.set("tip",null),c}function On(e,r){var t=r.x,i=r.y,n=r.content,a=r.style,o=r.id,s=r.name,l=r.rotate,u=r.maxLength,c=r.autoEllipsis,f=r.isVertical,v=r.ellipsisPosition,d=r.background,p=e.addGroup({id:o+"-group",name:s+"-group",attrs:{x:t,y:i}}),y=p.addShape({type:"text",id:o,name:s,attrs:(0,g.__assign)({x:0,y:0,text:n},a)}),m=Ln((0,h.get)(d,"padding",0));if(u&&c){var x=u-(m[1]+m[3]);zi(!f,y,x,v)}if(d){var _=(0,h.get)(d,"style",{}),w=y.getCanvasBBox(),b=w.minX,S=w.minY,C=w.width,A=w.height,F=p.addShape("rect",{id:o+"-bg",name:o+"-bg",attrs:(0,g.__assign)({x:b-m[3],y:S-m[0],width:C+m[1]+m[3],height:A+m[0]+m[2]},_)});F.toBack()}Qa(p,t,i),_l(p,l,t,i)}var Vt={fontFamily:` - BlinkMacSystemFont, "Segoe UI", Roboto,"Helvetica Neue", - Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", - SimSun, "sans-serif"`,textColor:"#2C3542",activeTextColor:"#333333",uncheckedColor:"#D8D8D8",lineColor:"#416180",regionColor:"#CCD7EB",verticalAxisRotate:-Math.PI/4,horizontalAxisRotate:Math.PI/4,descriptionIconStroke:"#fff",descriptionIconFill:"rgba(58, 73, 101, .25)"},hg=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,g.__assign)((0,g.__assign)({},t),{name:"annotation",type:"line",locationType:"region",start:null,end:null,style:{},text:null,defaultCfg:{style:{fill:Vt.textColor,fontSize:12,textAlign:"center",textBaseline:"bottom",fontFamily:Vt.fontFamily},text:{position:"center",autoRotate:!0,content:null,offsetX:0,offsetY:0,style:{stroke:Vt.lineColor,lineWidth:1}}}})},r.prototype.renderInner=function(t){this.renderLine(t),this.get("text")&&this.renderLabel(t)},r.prototype.renderLine=function(t){var i=this.get("start"),n=this.get("end"),a=this.get("style");this.addShape(t,{type:"line",id:this.getElementId("line"),name:"annotation-line",attrs:(0,g.__assign)({x1:i.x,y1:i.y,x2:n.x,y2:n.y},a)})},r.prototype.getLabelPoint=function(t,i,n){var a;return n==="start"?a=0:n==="center"?a=.5:(0,h.isString)(n)&&n.indexOf("%")!==-1?a=parseInt(n,10)/100:(0,h.isNumber)(n)?a=n:a=1,(a>1||a<0)&&(a=1),{x:Br(t.x,i.x,a),y:Br(t.y,i.y,a)}},r.prototype.renderLabel=function(t){var i=this.get("text"),n=this.get("start"),a=this.get("end"),o=i.position,s=i.content,l=i.style,u=i.offsetX,c=i.offsetY,f=i.autoRotate,v=i.maxLength,d=i.autoEllipsis,p=i.ellipsisPosition,y=i.background,m=i.isVertical,x=m===void 0?!1:m,_=this.getLabelPoint(n,a,o),w=_.x+u,b=_.y+c,S={id:this.getElementId("line-text"),name:"annotation-line-text",x:w,y:b,content:s,style:l,maxLength:v,autoEllipsis:d,ellipsisPosition:p,background:y,isVertical:x};if(f){var C=[a.x-n.x,a.y-n.y];S.rotate=Math.atan2(C[1],C[0])}On(t,S)},r}(Ae),fg=hg,vg=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,g.__assign)((0,g.__assign)({},t),{name:"annotation",type:"text",locationType:"point",x:0,y:0,content:"",rotate:null,style:{},background:null,maxLength:null,autoEllipsis:!0,isVertical:!1,ellipsisPosition:"tail",defaultCfg:{style:{fill:Vt.textColor,fontSize:12,textAlign:"center",textBaseline:"middle",fontFamily:Vt.fontFamily}}})},r.prototype.setLocation=function(t){this.set("x",t.x),this.set("y",t.y),this.resetLocation()},r.prototype.renderInner=function(t){var i=this.getLocation(),n=i.x,a=i.y,o=this.get("content"),s=this.get("style"),l=this.getElementId("text"),u=this.get("name")+"-text",c=this.get("maxLength"),f=this.get("autoEllipsis"),v=this.get("isVertical"),d=this.get("ellipsisPosition"),p=this.get("background"),y=this.get("rotate"),m={id:l,name:u,x:n,y:a,content:o,style:s,maxLength:c,autoEllipsis:f,isVertical:v,ellipsisPosition:d,background:p,rotate:y};On(t,m)},r.prototype.resetLocation=function(){var t=this.getElementByLocalId("text-group");if(t){var i=this.getLocation(),n=i.x,a=i.y,o=this.get("rotate");Qa(t,n,a),_l(t,o,n,a)}},r}(Ae),dg=vg,gg=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,g.__assign)((0,g.__assign)({},t),{name:"annotation",type:"arc",locationType:"circle",center:null,radius:100,startAngle:-Math.PI/2,endAngle:Math.PI*3/2,style:{stroke:"#999",lineWidth:1}})},r.prototype.renderInner=function(t){this.renderArc(t)},r.prototype.getArcPath=function(){var t=this.getLocation(),i=t.center,n=t.radius,a=t.startAngle,o=t.endAngle,s=oi(i,n,a),l=oi(i,n,o),u=o-a>Math.PI?1:0,c=[["M",s.x,s.y]];if(o-a==Math.PI*2){var f=oi(i,n,a+Math.PI);c.push(["A",n,n,0,u,1,f.x,f.y]),c.push(["A",n,n,0,u,1,l.x,l.y])}else c.push(["A",n,n,0,u,1,l.x,l.y]);return c},r.prototype.renderArc=function(t){var i=this.getArcPath(),n=this.get("style");this.addShape(t,{type:"path",id:this.getElementId("arc"),name:"annotation-arc",attrs:(0,g.__assign)({path:i},n)})},r}(Ae),pg=gg,yg=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,g.__assign)((0,g.__assign)({},t),{name:"annotation",type:"region",locationType:"region",start:null,end:null,style:{},defaultCfg:{style:{lineWidth:0,fill:Vt.regionColor,opacity:.4}}})},r.prototype.renderInner=function(t){this.renderRegion(t)},r.prototype.renderRegion=function(t){var i=this.get("start"),n=this.get("end"),a=this.get("style"),o=Ri({start:i,end:n});this.addShape(t,{type:"rect",id:this.getElementId("region"),name:"annotation-region",attrs:(0,g.__assign)({x:o.x,y:o.y,width:o.width,height:o.height},a)})},r}(Ae),mg=yg,xg=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,g.__assign)((0,g.__assign)({},t),{name:"annotation",type:"image",locationType:"region",start:null,end:null,src:null,style:{}})},r.prototype.renderInner=function(t){this.renderImage(t)},r.prototype.getImageAttrs=function(){var t=this.get("start"),i=this.get("end"),n=this.get("style"),a=Ri({start:t,end:i}),o=this.get("src");return(0,g.__assign)({x:a.x,y:a.y,img:o,width:a.width,height:a.height},n)},r.prototype.renderImage=function(t){this.addShape(t,{type:"image",id:this.getElementId("image"),name:"annotation-image",attrs:this.getImageAttrs()})},r}(Ae),_g=xg,wg=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,g.__assign)((0,g.__assign)({},t),{name:"annotation",type:"dataMarker",locationType:"point",x:0,y:0,point:{},line:{},text:{},direction:"upward",autoAdjust:!0,coordinateBBox:null,defaultCfg:{point:{display:!0,style:{r:3,fill:"#FFFFFF",stroke:"#1890FF",lineWidth:2}},line:{display:!0,length:20,style:{stroke:Vt.lineColor,lineWidth:1}},text:{content:"",display:!0,style:{fill:Vt.textColor,opacity:.65,fontSize:12,textAlign:"start",fontFamily:Vt.fontFamily}}}})},r.prototype.renderInner=function(t){(0,h.get)(this.get("line"),"display")&&this.renderLine(t),(0,h.get)(this.get("text"),"display")&&this.renderText(t),(0,h.get)(this.get("point"),"display")&&this.renderPoint(t),this.get("autoAdjust")&&this.autoAdjust(t)},r.prototype.applyOffset=function(){this.moveElementTo(this.get("group"),{x:this.get("x")+this.get("offsetX"),y:this.get("y")+this.get("offsetY")})},r.prototype.renderPoint=function(t){var i=this.getShapeAttrs().point;this.addShape(t,{type:"circle",id:this.getElementId("point"),name:"annotation-point",attrs:i})},r.prototype.renderLine=function(t){var i=this.getShapeAttrs().line;this.addShape(t,{type:"path",id:this.getElementId("line"),name:"annotation-line",attrs:i})},r.prototype.renderText=function(t){var i=this.getShapeAttrs().text,n=i.x,a=i.y,o=i.text,s=(0,g.__rest)(i,["x","y","text"]),l=this.get("text"),u=l.background,c=l.maxLength,f=l.autoEllipsis,v=l.isVertival,d=l.ellipsisPosition,p={x:n,y:a,id:this.getElementId("text"),name:"annotation-text",content:o,style:s,background:u,maxLength:c,autoEllipsis:f,isVertival:v,ellipsisPosition:d};On(t,p)},r.prototype.autoAdjust=function(t){var i=this.get("direction"),n=this.get("x"),a=this.get("y"),o=(0,h.get)(this.get("line"),"length",0),s=this.get("coordinateBBox"),l=t.getBBox(),u=l.minX,c=l.maxX,f=l.minY,v=l.maxY,d=t.findById(this.getElementId("text-group")),p=t.findById(this.getElementId("text")),y=t.findById(this.getElementId("line"));if(!!s&&d){var m=d.attr("x"),x=d.attr("y"),_=void 0,w=void 0,b=0,S=0;if(n+u<=s.minX)if(i==="leftward")w="start",b=1;else{var C=s.minX-(n+u);m=d.attr("x")+C}else if(n+c>=s.maxX)if(i==="rightward")w="end",b=-1;else{var C=n+c-s.maxX;m=d.attr("x")-C}if(!!b&&w&&(p.attr("textAlign",w),y&&y.attr("path",[["M",0,0],["L",o*b,0]]),m=(o+2)*b),a+f<=s.minY)if(i==="upward")_="top",S=1;else{var C=s.minY-(a+f);x=d.attr("y")+C}else if(a+v>=s.maxY)if(i==="downward")_="bottom",S=-1;else{var C=a+v-s.maxY;x=d.attr("y")-C}!!S&&_&&(p.attr("textBaseline",_),y&&y.attr("path",[["M",0,0],["L",0,o*S]]),x=(o+2)*S),(m!==d.attr("x")||x!==d.attr("y"))&&Qa(d,m,x)}},r.prototype.getShapeAttrs=function(){var t=(0,h.get)(this.get("line"),"display"),i=(0,h.get)(this.get("point"),"style",{}),n=(0,h.get)(this.get("line"),"style",{}),a=(0,h.get)(this.get("text"),"style",{}),o=this.get("direction"),s=t?(0,h.get)(this.get("line"),"length",0):0,l=0,u=0,c="top",f="start";switch(o){case"upward":u=-1,c="bottom";break;case"downward":u=1,c="top";break;case"leftward":l=-1,f="end";break;case"rightward":l=1,f="start";break}return{point:(0,g.__assign)({x:0,y:0},i),line:(0,g.__assign)({path:[["M",0,0],["L",0,s*l,s*u]]},n),text:(0,g.__assign)({x:(s+2)*l,y:(s+2)*u,text:(0,h.get)(this.get("text"),"content",""),textBaseline:c,textAlign:f},a)}},r}(Ae),bg=wg,Sg=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,g.__assign)((0,g.__assign)({},t),{name:"annotation",type:"dataRegion",locationType:"points",points:[],lineLength:0,region:{},text:{},defaultCfg:{region:{style:{lineWidth:0,fill:Vt.regionColor,opacity:.4}},text:{content:"",style:{textAlign:"center",textBaseline:"bottom",fontSize:12,fill:Vt.textColor,fontFamily:Vt.fontFamily}}}})},r.prototype.renderInner=function(t){var i=(0,h.get)(this.get("region"),"style",{}),n=(0,h.get)(this.get("text"),"style",{}),a=this.get("lineLength")||0,o=this.get("points");if(!!o.length){var s=qd(o),l=[];l.push(["M",o[0].x,s.minY-a]),o.forEach(function(c){l.push(["L",c.x,c.y])}),l.push(["L",o[o.length-1].x,o[o.length-1].y-a]),this.addShape(t,{type:"path",id:this.getElementId("region"),name:"annotation-region",attrs:(0,g.__assign)({path:l},i)});var u=(0,g.__assign)({id:this.getElementId("text"),name:"annotation-text",x:(s.minX+s.maxX)/2,y:s.minY-a},this.get("text"));On(t,u)}},r}(Ae),Cg=Sg,Ag=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,g.__assign)((0,g.__assign)({},t),{name:"annotation",type:"regionFilter",locationType:"region",start:null,end:null,color:null,shape:[]})},r.prototype.renderInner=function(t){var i=this,n=this.get("start"),a=this.get("end"),o=this.addGroup(t,{id:this.getElementId("region-filter"),capture:!1});(0,h.each)(this.get("shapes"),function(l,u){var c=l.get("type"),f=(0,h.clone)(l.attr());i.adjustShapeAttrs(f),i.addShape(o,{id:i.getElementId("shape-"+c+"-"+u),capture:!1,type:c,attrs:f})});var s=Ri({start:n,end:a});o.setClip({type:"rect",attrs:{x:s.minX,y:s.minY,width:s.width,height:s.height}})},r.prototype.adjustShapeAttrs=function(t){var i=this.get("color");t.fill&&(t.fill=t.fillStyle=i),t.stroke=t.strokeStyle=i},r}(Ae),Mg=Ag,Fg=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,g.__assign)((0,g.__assign)({},t),{name:"annotation",type:"shape",draw:h.noop})},r.prototype.renderInner=function(t){var i=this.get("render");(0,h.isFunction)(i)&&i(t)},r}(Ae),Eg=Fg;function Ie(e,r,t){var i;try{i=window.getComputedStyle?window.getComputedStyle(e,null)[r]:e.style[r]}catch(n){}finally{i=i===void 0?t:i}return i}function Tg(e,r){var t=Ie(e,"width",r);return t==="auto"&&(t=e.offsetWidth),parseFloat(t)}function Lg(e,r){var t=Tg(e,r),i=parseFloat(Ie(e,"borderLeftWidth"))||0,n=parseFloat(Ie(e,"paddingLeft"))||0,a=parseFloat(Ie(e,"paddingRight"))||0,o=parseFloat(Ie(e,"borderRightWidth"))||0,s=parseFloat(Ie(e,"marginRight"))||0,l=parseFloat(Ie(e,"marginLeft"))||0;return t+i+o+n+a+l+s}function Ig(e,r){var t=Ie(e,"height",r);return t==="auto"&&(t=e.offsetHeight),parseFloat(t)}function Og(e,r){var t=Ig(e,r),i=parseFloat(Ie(e,"borderTopWidth"))||0,n=parseFloat(Ie(e,"paddingTop"))||0,a=parseFloat(Ie(e,"paddingBottom"))||0,o=parseFloat(Ie(e,"borderBottomWidth"))||0,s=parseFloat(Ie(e,"marginTop"))||0,l=parseFloat(Ie(e,"marginBottom"))||0;return t+i+o+n+a+s+l}var Pg=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,g.__assign)((0,g.__assign)({},t),{container:null,containerTpl:"
      ",updateAutoRender:!0,containerClassName:"",parent:null})},r.prototype.getContainer=function(){return this.get("container")},r.prototype.show=function(){var t=this.get("container");t.style.display="",this.set("visible",!0)},r.prototype.hide=function(){var t=this.get("container");t.style.display="none",this.set("visible",!1)},r.prototype.setCapture=function(t){var i=this.getContainer(),n=t?"auto":"none";i.style.pointerEvents=n,this.set("capture",t)},r.prototype.getBBox=function(){var t=this.getContainer(),i=parseFloat(t.style.left)||0,n=parseFloat(t.style.top)||0;return Ni(i,n,t.clientWidth,t.clientHeight)},r.prototype.clear=function(){var t=this.get("container");Ja(t)},r.prototype.destroy=function(){this.removeEvent(),this.removeDom(),e.prototype.destroy.call(this)},r.prototype.init=function(){e.prototype.init.call(this),this.initContainer(),this.initDom(),this.resetStyles(),this.applyStyles(),this.initEvent(),this.initCapture(),this.initVisible()},r.prototype.initCapture=function(){this.setCapture(this.get("capture"))},r.prototype.initVisible=function(){this.get("visible")?this.show():this.hide()},r.prototype.initDom=function(){},r.prototype.initContainer=function(){var t=this.get("container");if((0,h.isNil)(t)){t=this.createDom();var i=this.get("parent");(0,h.isString)(i)&&(i=document.getElementById(i),this.set("parent",i)),i.appendChild(t),this.get("containerId")&&t.setAttribute("id",this.get("containerId")),this.set("container",t)}else(0,h.isString)(t)&&(t=document.getElementById(t),this.set("container",t));this.get("parent")||this.set("parent",t.parentNode)},r.prototype.resetStyles=function(){var t=this.get("domStyles"),i=this.get("defaultStyles");t?t=(0,h.deepMix)({},i,t):t=i,this.set("domStyles",t)},r.prototype.applyStyles=function(){var t=this.get("domStyles");if(!!t){var i=this.getContainer();this.applyChildrenStyles(i,t);var n=this.get("containerClassName");if(n&&Zd(i,n)){var a=t[n];(0,k.Z)(i,a)}}},r.prototype.applyChildrenStyles=function(t,i){(0,h.each)(i,function(n,a){var o=t.getElementsByClassName(a);(0,h.each)(o,function(s){(0,k.Z)(s,n)})})},r.prototype.applyStyle=function(t,i){var n=this.get("domStyles");(0,k.Z)(i,n[t])},r.prototype.createDom=function(){var t=this.get("containerTpl");return(0,T.Z)(t)},r.prototype.initEvent=function(){},r.prototype.removeDom=function(){var t=this.get("container");t&&t.parentNode&&t.parentNode.removeChild(t)},r.prototype.removeEvent=function(){},r.prototype.updateInner=function(t){(0,h.hasKey)(t,"domStyles")&&(this.resetStyles(),this.applyStyles()),this.resetPosition()},r.prototype.resetPosition=function(){},r}(Sl),ro=Pg,kg=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,g.__assign)((0,g.__assign)({},t),{name:"annotation",type:"html",locationType:"point",x:0,y:0,containerTpl:'
      ',alignX:"left",alignY:"top",html:"",zIndex:7})},r.prototype.render=function(){var t=this.getContainer(),i=this.get("html");Ja(t);var n=(0,h.isFunction)(i)?i(t):i;if((0,h.isElement)(n))t.appendChild(n);else if((0,h.isString)(n)||(0,h.isNumber)(n)){var a=(0,T.Z)(""+n);a&&t.appendChild(a)}this.resetPosition()},r.prototype.resetPosition=function(){var t=this.getContainer(),i=this.getLocation(),n=i.x,a=i.y,o=this.get("alignX"),s=this.get("alignY"),l=this.get("offsetX"),u=this.get("offsetY"),c=Lg(t),f=Og(t),v={x:n,y:a};o==="middle"?v.x-=Math.round(c/2):o==="right"&&(v.x-=Math.round(c)),s==="middle"?v.y-=Math.round(f/2):s==="bottom"&&(v.y-=Math.round(f)),l&&(v.x+=l),u&&(v.y+=u),(0,k.Z)(t,{position:"absolute",left:v.x+"px",top:v.y+"px",zIndex:this.get("zIndex")})},r}(ro),Dg=kg;function Vi(e,r,t){var i=r+"Style",n=null;return(0,h.each)(t,function(a,o){e[o]&&a[i]&&(n||(n={}),(0,h.mix)(n,a[i]))}),n}var Bg=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,g.__assign)((0,g.__assign)({},t),{name:"axis",ticks:[],line:{},tickLine:{},subTickLine:null,title:null,label:{},verticalFactor:1,verticalLimitLength:null,overlapOrder:["autoRotate","autoEllipsis","autoHide"],tickStates:{},optimize:{},defaultCfg:{line:{style:{lineWidth:1,stroke:Vt.lineColor}},tickLine:{style:{lineWidth:1,stroke:Vt.lineColor},alignTick:!0,length:5,displayWithLabel:!0},subTickLine:{style:{lineWidth:1,stroke:Vt.lineColor},count:4,length:2},label:{autoRotate:!0,autoHide:!1,autoEllipsis:!1,style:{fontSize:12,fill:Vt.textColor,fontFamily:Vt.fontFamily,fontWeight:"normal"},offset:10,offsetX:0,offsetY:0},title:{autoRotate:!0,spacing:5,position:"center",style:{fontSize:12,fill:Vt.textColor,textBaseline:"middle",fontFamily:Vt.fontFamily,textAlign:"center"},iconStyle:{fill:Vt.descriptionIconFill,stroke:Vt.descriptionIconStroke},description:""},tickStates:{active:{labelStyle:{fontWeight:500},tickLineStyle:{lineWidth:2}},inactive:{labelStyle:{fill:Vt.uncheckedColor}}},optimize:{enable:!0,threshold:400}},theme:{}})},r.prototype.renderInner=function(t){this.get("line")&&this.drawLine(t),this.drawTicks(t),this.get("title")&&this.drawTitle(t)},r.prototype.isList=function(){return!0},r.prototype.getItems=function(){return this.get("ticks")},r.prototype.setItems=function(t){this.update({ticks:t})},r.prototype.updateItem=function(t,i){(0,h.mix)(t,i),this.clear(),this.render()},r.prototype.clearItems=function(){var t=this.getElementByLocalId("label-group");t&&t.clear()},r.prototype.setItemState=function(t,i,n){t[i]=n,this.updateTickStates(t)},r.prototype.hasState=function(t,i){return!!t[i]},r.prototype.getItemStates=function(t){var i=this.get("tickStates"),n=[];return(0,h.each)(i,function(a,o){t[o]&&n.push(o)}),n},r.prototype.clearItemsState=function(t){var i=this,n=this.getItemsByState(t);(0,h.each)(n,function(a){i.setItemState(a,t,!1)})},r.prototype.getItemsByState=function(t){var i=this,n=this.getItems();return(0,h.filter)(n,function(a){return i.hasState(a,t)})},r.prototype.getSidePoint=function(t,i){var n=this,a=n.getSideVector(i,t);return{x:t.x+a[0],y:t.y+a[1]}},r.prototype.getTextAnchor=function(t){var i;return(0,h.isNumberEqual)(t[0],0)?i="center":t[0]>0?i="start":t[0]<0&&(i="end"),i},r.prototype.getTextBaseline=function(t){var i;return(0,h.isNumberEqual)(t[1],0)?i="middle":t[1]>0?i="top":t[1]<0&&(i="bottom"),i},r.prototype.processOverlap=function(t){},r.prototype.drawLine=function(t){var i=this.getLinePath(),n=this.get("line");this.addShape(t,{type:"path",id:this.getElementId("line"),name:"axis-line",attrs:(0,h.mix)({path:i},n.style)})},r.prototype.getTickLineItems=function(t){var i=this,n=[],a=this.get("tickLine"),o=a.alignTick,s=a.length,l=1,u=t.length;return u>=2&&(l=t[1].value-t[0].value),(0,h.each)(t,function(c){var f=c.point;o||(f=i.getTickPoint(c.value-l/2));var v=i.getSidePoint(f,s);n.push({startPoint:f,tickValue:c.value,endPoint:v,tickId:c.id,id:"tickline-"+c.id})}),n},r.prototype.getSubTickLineItems=function(t){var i=[],n=this.get("subTickLine"),a=n.count,o=t.length;if(o>=2)for(var s=0;s0){var n=(0,h.size)(i);if(n>t.threshold){var a=Math.ceil(n/t.threshold),o=i.filter(function(s,l){return l%a==0});this.set("ticks",o),this.set("originalTicks",i)}}},r.prototype.getLabelAttrs=function(t,i,n){var a=this.get("label"),o=a.offset,s=a.offsetX,l=a.offsetY,u=a.rotate,c=a.formatter,f=this.getSidePoint(t.point,o),v=this.getSideVector(o,f),d=c?c(t.name,t,i):t.name,p=a.style;p=(0,h.isFunction)(p)?(0,h.get)(this.get("theme"),["label","style"],{}):p;var y=(0,h.mix)({x:f.x+s,y:f.y+l,text:d,textAlign:this.getTextAnchor(v),textBaseline:this.getTextBaseline(v)},p);return u&&(y.matrix=Dr(f,u)),y},r.prototype.drawLabels=function(t){var i=this,n=this.get("ticks"),a=this.addGroup(t,{name:"axis-label-group",id:this.getElementId("label-group")});(0,h.each)(n,function(v,d){i.addShape(a,{type:"text",name:"axis-label",id:i.getElementId("label-"+v.id),attrs:i.getLabelAttrs(v,d,n),delegateObject:{tick:v,item:v,index:d}})}),this.processOverlap(a);var o=a.getChildren(),s=(0,h.get)(this.get("theme"),["label","style"],{}),l=this.get("label"),u=l.style,c=l.formatter;if((0,h.isFunction)(u)){var f=o.map(function(v){return(0,h.get)(v.get("delegateObject"),"tick")});(0,h.each)(o,function(v,d){var p=v.get("delegateObject").tick,y=c?c(p.name,p,d):p.name,m=(0,h.mix)({},s,u(y,d,f));v.attr(m)})}},r.prototype.getTitleAttrs=function(){var t=this.get("title"),i=t.style,n=t.position,a=t.offset,o=t.spacing,s=o===void 0?0:o,l=t.autoRotate,u=i.fontSize,c=.5;n==="start"?c=0:n==="end"&&(c=1);var f=this.getTickPoint(c),v=this.getSidePoint(f,a||s+u/2),d=(0,h.mix)({x:v.x,y:v.y,text:t.text},i),p=t.rotate,y=p;if((0,h.isNil)(p)&&l){var m=this.getAxisVector(f),x=[1,0];y=ie.Dg(m,x,!0)}if(y){var _=Dr(v,y);d.matrix=_}return d},r.prototype.drawTitle=function(t){var i,n=this.getTitleAttrs(),a=this.addShape(t,{type:"text",id:this.getElementId("title"),name:"axis-title",attrs:n});((i=this.get("title"))===null||i===void 0?void 0:i.description)&&this.drawDescriptionIcon(t,a,n.matrix)},r.prototype.drawDescriptionIcon=function(t,i,n){var a=this.addGroup(t,{name:"axis-description",id:this.getElementById("description")}),o=i.getBBox(),s=o.maxX,l=o.maxY,u=o.height,c=this.get("title").iconStyle,f=4,v=u/2,d=v/6,p=s+f,y=l-u/2,m=[p+v,y-v],x=m[0],_=m[1],w=[x+v,_+v],b=w[0],S=w[1],C=[x,S+v],A=C[0],F=C[1],P=[p,_+v],I=P[0],V=P[1],Z=[p+v,y-u/4],vt=Z[0],yt=Z[1],Bt=[vt,yt+d],G=Bt[0],at=Bt[1],mt=[G,at+d],ut=mt[0],pt=mt[1],At=[ut,pt+v*3/4],Gt=At[0],Wt=At[1];this.addShape(a,{type:"path",id:this.getElementId("title-description-icon"),name:"axis-title-description-icon",attrs:(0,g.__assign)({path:[["M",x,_],["A",v,v,0,0,1,b,S],["A",v,v,0,0,1,A,F],["A",v,v,0,0,1,I,V],["A",v,v,0,0,1,x,_],["M",vt,yt],["L",G,at],["M",ut,pt],["L",Gt,Wt]],lineWidth:d,matrix:n},c)}),this.addShape(a,{type:"rect",id:this.getElementId("title-description-rect"),name:"axis-title-description-rect",attrs:{x:p,y:y-u/2,width:u,height:u,stroke:"#000",fill:"#000",opacity:0,matrix:n,cursor:"pointer"}})},r.prototype.applyTickStates=function(t,i){var n=this.getItemStates(t);if(n.length){var a=this.get("tickStates"),o=this.getElementId("label-"+t.id),s=i.findById(o);if(s){var l=Vi(t,"label",a);l&&s.attr(l)}var u=this.getElementId("tickline-"+t.id),c=i.findById(u);if(c){var f=Vi(t,"tickLine",a);f&&c.attr(f)}}},r.prototype.updateTickStates=function(t){var i=this.getItemStates(t),n=this.get("tickStates"),a=this.get("label"),o=this.getElementByLocalId("label-"+t.id),s=this.get("tickLine"),l=this.getElementByLocalId("tickline-"+t.id);if(i.length){if(o){var u=Vi(t,"label",n);u&&o.attr(u)}if(l){var c=Vi(t,"tickLine",n);c&&l.attr(c)}}else o&&o.attr(a.style),l&&l.attr(s.style)},r}(Ae),Cl=Bg;function io(e,r,t,i){var n=r.getChildren(),a=!1;return(0,h.each)(n,function(o){var s=zi(e,o,t,i);a=a||s}),a}function Rg(){return Al}function Ng(e,r,t){return io(e,r,t,"head")}function Al(e,r,t){return io(e,r,t,"tail")}function zg(e,r,t){return io(e,r,t,"middle")}function Vg(e){var r=e.attr("matrix");return r&&r[0]!==1}function Ml(e){var r=Vg(e)?Ud(e.attr("matrix")):0;return r%360}function no(e,r,t,i){var n=!1,a=Ml(r),o=Math.abs(e?t.attr("y")-r.attr("y"):t.attr("x")-r.attr("x")),s=(e?t.attr("y")>r.attr("y"):t.attr("x")>r.attr("x"))?r.getBBox():t.getBBox();if(e){var l=Math.abs(Math.cos(a));In(l,0,Math.PI/180)?n=s.width+i>o:n=s.height/l+i>o}else{var l=Math.abs(Math.sin(a));In(l,0,Math.PI/180)?n=s.width+i>o:n=s.height/l+i>o}return n}function Gi(e,r,t,i){var n=(i==null?void 0:i.minGap)||0,a=r.getChildren().slice().filter(function(p){return p.get("visible")});if(!a.length)return!1;var o=!1;t&&a.reverse();for(var s=a.length,l=a[0],u=l,c=1;c1){v=Math.ceil(v);for(var y=0;y2){var o=n[0],s=n[n.length-1];o.get("visible")||(o.show(),Gi(e,r,!1,i)&&(a=!0)),s.get("visible")||(s.show(),Gi(e,r,!0,i)&&(a=!0))}return a}function Ug(e,r){(0,h.each)(e,function(t){var i=t.attr("x"),n=t.attr("y"),a=Dr({x:i,y:n},r);t.attr("matrix",a)})}function Tl(e,r,t,i){var n=r.getChildren();if(!n.length||!e&&n.length<2)return!1;var a=eo(n),o=!1;if(e)o=!!t&&a>t;else{var s=Math.abs(n[1].attr("x")-n[0].attr("x"));o=a>s}if(o){var l=i(t,a);Ug(n,l)}return o}function jg(){return Ll}function Ll(e,r,t,i){return Tl(e,r,t,function(){return(0,h.isNumber)(i)?i:e?Vt.verticalAxisRotate:Vt.horizontalAxisRotate})}function Zg(e,r,t){return Tl(e,r,t,function(i,n){if(!i)return e?Vt.verticalAxisRotate:Vt.horizontalAxisRotate;if(e)return-Math.acos(i/n);var a=0;return i>n?a=Math.PI/4:(a=Math.asin(i/n),a>Math.PI/4&&(a=Math.PI/4)),a})}var qg=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,g.__assign)((0,g.__assign)({},t),{type:"line",locationType:"region",start:null,end:null})},r.prototype.getLinePath=function(){var t=this.get("start"),i=this.get("end"),n=[];return n.push(["M",t.x,t.y]),n.push(["L",i.x,i.y]),n},r.prototype.getInnerLayoutBBox=function(){var t=this.get("start"),i=this.get("end"),n=e.prototype.getInnerLayoutBBox.call(this),a=Math.min(t.x,i.x,n.x),o=Math.min(t.y,i.y,n.y),s=Math.max(t.x,i.x,n.maxX),l=Math.max(t.y,i.y,n.maxY);return{x:a,y:o,minX:a,minY:o,maxX:s,maxY:l,width:s-a,height:l-o}},r.prototype.isVertical=function(){var t=this.get("start"),i=this.get("end");return(0,h.isNumberEqual)(t.x,i.x)},r.prototype.isHorizontal=function(){var t=this.get("start"),i=this.get("end");return(0,h.isNumberEqual)(t.y,i.y)},r.prototype.getTickPoint=function(t){var i=this,n=i.get("start"),a=i.get("end"),o=a.x-n.x,s=a.y-n.y;return{x:n.x+o*t,y:n.y+s*t}},r.prototype.getSideVector=function(t){var i=this.getAxisVector(),n=Lt.normalize([0,0],i),a=this.get("verticalFactor"),o=[n[1],n[0]*-1];return Lt.scale([0,0],o,t*a)},r.prototype.getAxisVector=function(){var t=this.get("start"),i=this.get("end");return[i.x-t.x,i.y-t.y]},r.prototype.processOverlap=function(t){var i=this,n=this.isVertical(),a=this.isHorizontal();if(!(!n&&!a)){var o=this.get("label"),s=this.get("title"),l=this.get("verticalLimitLength"),u=o.offset,c=l,f=0,v=0;s&&(f=s.style.fontSize,v=s.spacing),c&&(c=c-u-v-f);var d=this.get("overlapOrder");if((0,h.each)(d,function(m){o[m]&&i.canProcessOverlap(m)&&i.autoProcessOverlap(m,o[m],t,c)}),s&&(0,h.isNil)(s.offset)){var p=t.getCanvasBBox(),y=n?p.width:p.height;s.offset=u+y+v+f/2}}},r.prototype.canProcessOverlap=function(t){var i=this.get("label");return t==="autoRotate"?(0,h.isNil)(i.rotate):!0},r.prototype.autoProcessOverlap=function(t,i,n,a){var o=this,s=this.isVertical(),l=!1,u=ft[t];if(i===!0){var c=this.get("label");l=u.getDefault()(s,n,a)}else if((0,h.isFunction)(i))l=i(s,n,a);else if((0,h.isObject)(i)){var f=i;u[f.type]&&(l=u[f.type](s,n,a,f.cfg))}else u[i]&&(l=u[i](s,n,a));if(t==="autoRotate"){if(l){var v=n.getChildren(),d=this.get("verticalFactor");(0,h.each)(v,function(y){var m=y.attr("textAlign");if(m==="center"){var x=d>0?"end":"start";y.attr("textAlign",x)}})}}else if(t==="autoHide"){var p=n.getChildren().slice(0);(0,h.each)(p,function(y){y.get("visible")||(o.get("isRegister")&&o.unregisterElement(y),y.remove())})}},r}(Cl),Kg=qg,$g=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,g.__assign)((0,g.__assign)({},t),{type:"circle",locationType:"circle",center:null,radius:null,startAngle:-Math.PI/2,endAngle:Math.PI*3/2})},r.prototype.getLinePath=function(){var t=this.get("center"),i=t.x,n=t.y,a=this.get("radius"),o=a,s=this.get("startAngle"),l=this.get("endAngle"),u=[];if(Math.abs(l-s)===Math.PI*2)u=[["M",i,n-o],["A",a,o,0,1,1,i,n+o],["A",a,o,0,1,1,i,n-o],["Z"]];else{var c=this.getCirclePoint(s),f=this.getCirclePoint(l),v=Math.abs(l-s)>Math.PI?1:0,d=s>l?0:1;u=[["M",i,n],["L",c.x,c.y],["A",a,o,0,v,d,f.x,f.y],["L",i,n]]}return u},r.prototype.getTickPoint=function(t){var i=this.get("startAngle"),n=this.get("endAngle"),a=i+(n-i)*t;return this.getCirclePoint(a)},r.prototype.getSideVector=function(t,i){var n=this.get("center"),a=[i.x-n.x,i.y-n.y],o=this.get("verticalFactor"),s=Lt.length(a);return Lt.scale(a,a,o*t/s),a},r.prototype.getAxisVector=function(t){var i=this.get("center"),n=[t.x-i.x,t.y-i.y];return[n[1],-1*n[0]]},r.prototype.getCirclePoint=function(t,i){var n=this.get("center");return i=i||this.get("radius"),{x:n.x+Math.cos(t)*i,y:n.y+Math.sin(t)*i}},r.prototype.canProcessOverlap=function(t){var i=this.get("label");return t==="autoRotate"?(0,h.isNil)(i.rotate):!0},r.prototype.processOverlap=function(t){var i=this,n=this.get("label"),a=this.get("title"),o=this.get("verticalLimitLength"),s=n.offset,l=o,u=0,c=0;a&&(u=a.style.fontSize,c=a.spacing),l&&(l=l-s-c-u);var f=this.get("overlapOrder");if((0,h.each)(f,function(d){n[d]&&i.canProcessOverlap(d)&&i.autoProcessOverlap(d,n[d],t,l)}),a&&(0,h.isNil)(a.offset)){var v=t.getCanvasBBox().height;a.offset=s+v+c+u/2}},r.prototype.autoProcessOverlap=function(t,i,n,a){var o=this,s=!1,l=ft[t];if(a>0)if(i===!0)s=l.getDefault()(!1,n,a);else if((0,h.isFunction)(i))s=i(!1,n,a);else if((0,h.isObject)(i)){var u=i;l[u.type]&&(s=l[u.type](!1,n,a,u.cfg))}else l[i]&&(s=l[i](!1,n,a));if(t==="autoRotate"){if(s){var c=n.getChildren(),f=this.get("verticalFactor");(0,h.each)(c,function(d){var p=d.attr("textAlign");if(p==="center"){var y=f>0?"end":"start";d.attr("textAlign",y)}})}}else if(t==="autoHide"){var v=n.getChildren().slice(0);(0,h.each)(v,function(d){d.get("visible")||(o.get("isRegister")&&o.unregisterElement(d),d.remove())})}},r}(Cl),Qg=$g,Jg=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,g.__assign)((0,g.__assign)({},t),{name:"crosshair",type:"base",line:{},text:null,textBackground:{},capture:!1,defaultCfg:{line:{style:{lineWidth:1,stroke:Vt.lineColor}},text:{position:"start",offset:10,autoRotate:!1,content:null,style:{fill:Vt.textColor,textAlign:"center",textBaseline:"middle",fontFamily:Vt.fontFamily}},textBackground:{padding:5,style:{stroke:Vt.lineColor}}}})},r.prototype.renderInner=function(t){this.get("line")&&this.renderLine(t),this.get("text")&&(this.renderText(t),this.renderBackground(t))},r.prototype.renderText=function(t){var i=this.get("text"),n=i.style,a=i.autoRotate,o=i.content;if(!(0,h.isNil)(o)){var s=this.getTextPoint(),l=null;if(a){var u=this.getRotateAngle();l=Dr(s,u)}this.addShape(t,{type:"text",name:"crosshair-text",id:this.getElementId("text"),attrs:(0,g.__assign)((0,g.__assign)((0,g.__assign)({},s),{text:o,matrix:l}),n)})}},r.prototype.renderLine=function(t){var i=this.getLinePath(),n=this.get("line"),a=n.style;this.addShape(t,{type:"path",name:"crosshair-line",id:this.getElementId("line"),attrs:(0,g.__assign)({path:i},a)})},r.prototype.renderBackground=function(t){var i=this.getElementId("text"),n=t.findById(i),a=this.get("textBackground");if(a&&n){var o=n.getBBox(),s=Ln(a.padding),l=a.style,u=this.addShape(t,{type:"rect",name:"crosshair-text-background",id:this.getElementId("text-background"),attrs:(0,g.__assign)({x:o.x-s[3],y:o.y-s[0],width:o.width+s[1]+s[3],height:o.height+s[0]+s[2],matrix:n.attr("matrix")},l)});u.toBack()}},r}(Ae),ao=Jg,tp=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,g.__assign)((0,g.__assign)({},t),{type:"line",locationType:"region",start:null,end:null})},r.prototype.getRotateAngle=function(){var t=this.getLocation(),i=t.start,n=t.end,a=this.get("text").position,o=Math.atan2(n.y-i.y,n.x-i.x),s=a==="start"?o-Math.PI/2:o+Math.PI/2;return s},r.prototype.getTextPoint=function(){var t=this.getLocation(),i=t.start,n=t.end,a=this.get("text"),o=a.position,s=a.offset;return bl(i,n,o,s)},r.prototype.getLinePath=function(){var t=this.getLocation(),i=t.start,n=t.end;return[["M",i.x,i.y],["L",n.x,n.y]]},r}(ao),Il=tp,ep=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,g.__assign)((0,g.__assign)({},t),{type:"circle",locationType:"circle",center:null,radius:100,startAngle:-Math.PI/2,endAngle:Math.PI*3/2})},r.prototype.getRotateAngle=function(){var t=this.getLocation(),i=t.startAngle,n=t.endAngle,a=this.get("text").position,o=a==="start"?i+Math.PI/2:n-Math.PI/2;return o},r.prototype.getTextPoint=function(){var t=this.get("text"),i=t.position,n=t.offset,a=this.getLocation(),o=a.center,s=a.radius,l=a.startAngle,u=a.endAngle,c=i==="start"?l:u,f=this.getRotateAngle()-Math.PI,v=oi(o,s,c),d=Math.cos(f)*n,p=Math.sin(f)*n;return{x:v.x+d,y:v.y+p}},r.prototype.getLinePath=function(){var t=this.getLocation(),i=t.center,n=t.radius,a=t.startAngle,o=t.endAngle,s=null;if(o-a==Math.PI*2){var l=i.x,u=i.y;s=[["M",l,u-n],["A",n,n,0,1,1,l,u+n],["A",n,n,0,1,1,l,u-n],["Z"]]}else{var c=oi(i,n,a),f=oi(i,n,o),v=Math.abs(o-a)>Math.PI?1:0,d=a>o?0:1;s=[["M",c.x,c.y],["A",n,n,0,v,d,f.x,f.y]]}return s},r}(ao),rp=ep,Wi="g2-crosshair",oo=Wi+"-line",so=Wi+"-text",Hi,ip=(Hi={},Hi[""+Wi]={position:"relative"},Hi[""+oo]={position:"absolute",backgroundColor:"rgba(0, 0, 0, 0.25)"},Hi[""+so]={position:"absolute",color:Vt.textColor,fontFamily:Vt.fontFamily},Hi),np=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,g.__assign)((0,g.__assign)({},t),{name:"crosshair",type:"html",locationType:"region",start:{x:0,y:0},end:{x:0,y:0},capture:!1,text:null,containerTpl:'
      ',crosshairTpl:'
      ',textTpl:'{content}',domStyles:null,containerClassName:Wi,defaultStyles:ip,defaultCfg:{text:{position:"start",content:null,align:"center",offset:10}}})},r.prototype.render=function(){this.resetText(),this.resetPosition()},r.prototype.initCrossHair=function(){var t=this.getContainer(),i=this.get("crosshairTpl"),n=(0,T.Z)(i);t.appendChild(n),this.applyStyle(oo,n),this.set("crosshairEl",n)},r.prototype.getTextPoint=function(){var t=this.getLocation(),i=t.start,n=t.end,a=this.get("text"),o=a.position,s=a.offset;return bl(i,n,o,s)},r.prototype.resetText=function(){var t=this.get("text"),i=this.get("textEl");if(t){var n=t.content;if(!i){var a=this.getContainer(),o=(0,h.substitute)(this.get("textTpl"),t);i=(0,T.Z)(o),a.appendChild(i),this.applyStyle(so,i),this.set("textEl",i)}i.innerHTML=n}else i&&i.remove()},r.prototype.isVertical=function(t,i){return t.x===i.x},r.prototype.resetPosition=function(){var t=this.get("crosshairEl");t||(this.initCrossHair(),t=this.get("crosshairEl"));var i=this.get("start"),n=this.get("end"),a=Math.min(i.x,n.x),o=Math.min(i.y,n.y);this.isVertical(i,n)?(0,k.Z)(t,{width:"1px",height:Le(Math.abs(n.y-i.y))}):(0,k.Z)(t,{height:"1px",width:Le(Math.abs(n.x-i.x))}),(0,k.Z)(t,{top:Le(o),left:Le(a)}),this.alignText()},r.prototype.alignText=function(){var t=this.get("textEl");if(t){var i=this.get("text").align,n=t.clientWidth,a=this.getTextPoint();switch(i){case"center":a.x=a.x-n/2;break;case"right":a.x=a.x-n;case"left":break}(0,k.Z)(t,{top:Le(a.y),left:Le(a.x)})}},r.prototype.updateInner=function(t){(0,h.hasKey)(t,"text")&&this.resetText(),e.prototype.updateInner.call(this,t)},r}(ro),ap=np,op=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,g.__assign)((0,g.__assign)({},t),{name:"grid",line:{},alternateColor:null,capture:!1,items:[],closed:!1,defaultCfg:{line:{type:"line",style:{lineWidth:1,stroke:Vt.lineColor}}}})},r.prototype.getLineType=function(){var t=this.get("line")||this.get("defaultCfg").line;return t.type},r.prototype.renderInner=function(t){this.drawGrid(t)},r.prototype.getAlternatePath=function(t,i){var n=this.getGridPath(t),a=i.slice(0).reverse(),o=this.getGridPath(a,!0),s=this.get("closed");return s?n=n.concat(o):(o[0][0]="L",n=n.concat(o),n.push(["Z"])),n},r.prototype.getPathStyle=function(){return this.get("line").style},r.prototype.drawGrid=function(t){var i=this,n=this.get("line"),a=this.get("items"),o=this.get("alternateColor"),s=null;(0,h.each)(a,function(l,u){var c=l.id||u;if(n){var f=i.getPathStyle();f=(0,h.isFunction)(f)?f(l,u,a):f;var v=i.getElementId("line-"+c),d=i.getGridPath(l.points);i.addShape(t,{type:"path",name:"grid-line",id:v,attrs:(0,h.mix)({path:d},f)})}if(o&&u>0){var p=i.getElementId("region-"+c),y=u%2==0;if((0,h.isString)(o))y&&i.drawAlternateRegion(p,t,s.points,l.points,o);else{var m=y?o[1]:o[0];i.drawAlternateRegion(p,t,s.points,l.points,m)}}s=l})},r.prototype.drawAlternateRegion=function(t,i,n,a,o){var s=this.getAlternatePath(n,a);this.addShape(i,{type:"path",id:t,name:"grid-region",attrs:{path:s,fill:o}})},r}(Ae),Ol=op;function sp(e,r,t,i){var n=t-e,a=i-r;return Math.sqrt(n*n+a*a)}var lp=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,g.__assign)((0,g.__assign)({},t),{type:"circle",center:null,closed:!0})},r.prototype.getGridPath=function(t,i){var n=this.getLineType(),a=this.get("closed"),o=[];if(t.length)if(n==="circle"){var s=this.get("center"),l=t[0],u=sp(s.x,s.y,l.x,l.y),c=i?0:1;a?(o.push(["M",s.x,s.y-u]),o.push(["A",u,u,0,0,c,s.x,s.y+u]),o.push(["A",u,u,0,0,c,s.x,s.y-u]),o.push(["Z"])):(0,h.each)(t,function(f,v){v===0?o.push(["M",f.x,f.y]):o.push(["A",u,u,0,0,c,f.x,f.y])})}else(0,h.each)(t,function(f,v){v===0?o.push(["M",f.x,f.y]):o.push(["L",f.x,f.y])}),a&&o.push(["Z"]);return o},r}(Ol),up=lp,cp=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,g.__assign)((0,g.__assign)({},t),{type:"line"})},r.prototype.getGridPath=function(t){var i=[];return(0,h.each)(t,function(n,a){a===0?i.push(["M",n.x,n.y]):i.push(["L",n.x,n.y])}),i},r}(Ol),hp=cp,fp=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,g.__assign)((0,g.__assign)({},t),{name:"legend",layout:"horizontal",locationType:"point",x:0,y:0,offsetX:0,offsetY:0,title:null,background:null})},r.prototype.getLayoutBBox=function(){var t=e.prototype.getLayoutBBox.call(this),i=this.get("maxWidth"),n=this.get("maxHeight"),a=t.width,o=t.height;return i&&(a=Math.min(a,i)),n&&(o=Math.min(o,n)),Ni(t.minX,t.minY,a,o)},r.prototype.setLocation=function(t){this.set("x",t.x),this.set("y",t.y),this.resetLocation()},r.prototype.resetLocation=function(){var t=this.get("x"),i=this.get("y"),n=this.get("offsetX"),a=this.get("offsetY");this.moveElementTo(this.get("group"),{x:t+n,y:i+a})},r.prototype.applyOffset=function(){this.resetLocation()},r.prototype.getDrawPoint=function(){return this.get("currentPoint")},r.prototype.setDrawPoint=function(t){return this.set("currentPoint",t)},r.prototype.renderInner=function(t){this.resetDraw(),this.get("title")&&this.drawTitle(t),this.drawLegendContent(t),this.get("background")&&this.drawBackground(t)},r.prototype.drawBackground=function(t){var i=this.get("background"),n=t.getBBox(),a=Ln(i.padding),o=(0,g.__assign)({x:0,y:0,width:n.width+a[1]+a[3],height:n.height+a[0]+a[2]},i.style),s=this.addShape(t,{type:"rect",id:this.getElementId("background"),name:"legend-background",attrs:o});s.toBack()},r.prototype.drawTitle=function(t){var i=this.get("currentPoint"),n=this.get("title"),a=n.spacing,o=n.style,s=n.text,l=this.addShape(t,{type:"text",id:this.getElementId("title"),name:"legend-title",attrs:(0,g.__assign)({text:s,x:i.x,y:i.y},o)}),u=l.getBBox();this.set("currentPoint",{x:i.x,y:u.maxY+a})},r.prototype.resetDraw=function(){var t=this.get("background"),i={x:0,y:0};if(t){var n=Ln(t.padding);i.x=n[3],i.y=n[0]}this.set("currentPoint",i)},r}(Ae),Pl=fp,lo={marker:{style:{inactiveFill:"#000",inactiveOpacity:.45,fill:"#000",opacity:1,size:12}},text:{style:{fill:"#ccc",fontSize:12}}},Pn={fill:Vt.textColor,fontSize:12,textAlign:"start",textBaseline:"middle",fontFamily:Vt.fontFamily,fontWeight:"normal",lineHeight:12},uo="navigation-arrow-right",co="navigation-arrow-left",kl={right:90*Math.PI/180,left:(360-90)*Math.PI/180,up:0,down:180*Math.PI/180},vp=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.currentPageIndex=1,t.totalPagesCnt=1,t.pageWidth=0,t.pageHeight=0,t.startX=0,t.startY=0,t.onNavigationBack=function(){var i=t.getElementByLocalId("item-group");if(t.currentPageIndex>1){t.currentPageIndex-=1,t.updateNavigation();var n=t.getCurrentNavigationMatrix();t.get("animate")?i.animate({matrix:n},100):i.attr({matrix:n})}},t.onNavigationAfter=function(){var i=t.getElementByLocalId("item-group");if(t.currentPageIndexm&&(m=A),d==="horizontal"?(x&&xu}if(s==="horizontal"){var F=this.get("maxRow")||1,P=d+(F===1?0:C),I=u-v-m.width-m.minX;this.pageHeight=P*F,this.pageWidth=I,(0,h.each)(l,function(Z){var vt=Z.getBBox(),yt=f||vt.width;(w&&wb&&(b=vt.width)}),S=b,b+=v,u&&(b=Math.min(u,b),S=Math.min(u,S)),this.pageWidth=b,this.pageHeight=c-Math.max(m.height,d+C);var V=Math.floor(this.pageHeight/(d+C));(0,h.each)(l,function(Z,vt){vt!==0&&vt%V==0&&(_+=1,x.x+=b,x.y=o),n.moveElementTo(Z,x),Z.getParent().setClip({type:"rect",attrs:{x:x.x,y:x.y,width:b,height:d}}),x.y+=d+C}),this.totalPagesCnt=_,this.moveElementTo(y,{x:a+S/2-m.width/2-m.minX,y:c-m.height-m.minY})}this.pageHeight&&this.pageWidth&&i.getParent().setClip({type:"rect",attrs:{x:this.startX,y:this.startY,width:this.pageWidth,height:this.pageHeight}}),s==="horizontal"&&this.get("maxRow")?this.totalPagesCnt=Math.ceil(_/this.get("maxRow")):this.totalPagesCnt=_,this.currentPageIndex>this.totalPagesCnt&&(this.currentPageIndex=1),this.updateNavigation(y),i.attr("matrix",this.getCurrentNavigationMatrix())},r.prototype.drawNavigation=function(t,i,n,a){var o={x:0,y:0},s=this.addGroup(t,{id:this.getElementId("navigation-group"),name:"legend-navigation"}),l=(0,h.get)(a.marker,"style",{}),u=l.size,c=u===void 0?12:u,f=(0,g.__rest)(l,["size"]),v=this.drawArrow(s,o,co,i==="horizontal"?"up":"left",c,f);v.on("click",this.onNavigationBack);var d=v.getBBox();o.x+=d.width+2;var p=this.addShape(s,{type:"text",id:this.getElementId("navigation-text"),name:"navigation-text",attrs:(0,g.__assign)({x:o.x,y:o.y+c/2,text:n,textBaseline:"middle"},(0,h.get)(a.text,"style"))}),y=p.getBBox();o.x+=y.width+2;var m=this.drawArrow(s,o,uo,i==="horizontal"?"down":"right",c,f);return m.on("click",this.onNavigationAfter),s},r.prototype.updateNavigation=function(t){var i=(0,h.deepMix)({},lo,this.get("pageNavigator")),n=i.marker.style,a=n.fill,o=n.opacity,s=n.inactiveFill,l=n.inactiveOpacity,u=this.currentPageIndex+"/"+this.totalPagesCnt,c=t?t.getChildren()[1]:this.getElementByLocalId("navigation-text"),f=t?t.findById(this.getElementId(co)):this.getElementByLocalId(co),v=t?t.findById(this.getElementId(uo)):this.getElementByLocalId(uo);c.attr("text",u),f.attr("opacity",this.currentPageIndex===1?l:o),f.attr("fill",this.currentPageIndex===1?s:a),f.attr("cursor",this.currentPageIndex===1?"not-allowed":"pointer"),v.attr("opacity",this.currentPageIndex===this.totalPagesCnt?l:o),v.attr("fill",this.currentPageIndex===this.totalPagesCnt?s:a),v.attr("cursor",this.currentPageIndex===this.totalPagesCnt?"not-allowed":"pointer");var d=f.getBBox().maxX+2;c.attr("x",d),d+=c.getBBox().width+2,this.updateArrowPath(v,{x:d,y:0})},r.prototype.drawArrow=function(t,i,n,a,o,s){var l=i.x,u=i.y,c=this.addShape(t,{type:"path",id:this.getElementId(n),name:n,attrs:(0,g.__assign)({size:o,direction:a,path:[["M",l+o/2,u],["L",l,u+o],["L",l+o,u+o],["Z"]],cursor:"pointer"},s)});return c.attr("matrix",Dr({x:l+o/2,y:u+o/2},kl[a])),c},r.prototype.updateArrowPath=function(t,i){var n=i.x,a=i.y,o=t.attr(),s=o.size,l=o.direction,u=Dr({x:n+s/2,y:a+s/2},kl[l]);t.attr("path",[["M",n+s/2,a],["L",n,a+s],["L",n+s,a+s],["Z"]]),t.attr("matrix",u)},r.prototype.getCurrentNavigationMatrix=function(){var t=this,i=t.currentPageIndex,n=t.pageWidth,a=t.pageHeight,o=this.get("layout"),s=o==="horizontal"?{x:0,y:a*(1-i)}:{x:n*(1-i),y:0};return $a(s)},r.prototype.applyItemStates=function(t,i){var n=this.getItemStates(t),a=n.length>0;if(a){var o=i.getChildren(),s=this.get("itemStates");(0,h.each)(o,function(l){var u=l.get("name"),c=u.split("-")[2],f=Vi(t,c,s);f&&(l.attr(f),c==="marker"&&!(l.get("isStroke")&&l.get("isFill"))&&(l.get("isStroke")&&l.attr("fill",null),l.get("isFill")&&l.attr("stroke",null)))})}},r.prototype.getLimitItemWidth=function(){var t=this.get("itemWidth"),i=this.get("maxItemWidth");return i?t&&(i=t<=i?t:i):t&&(i=t),i},r}(Pl),dp=vp,gp=1.4,Dl=.4,pp=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,g.__assign)((0,g.__assign)({},t),{type:"continue",min:0,max:100,value:null,colors:[],track:{},rail:{},label:{},handler:{},slidable:!0,tip:null,step:null,maxWidth:null,maxHeight:null,defaultCfg:{label:{align:"rail",spacing:5,formatter:null,style:{fontSize:12,fill:Vt.textColor,textBaseline:"middle",fontFamily:Vt.fontFamily}},handler:{size:10,style:{fill:"#fff",stroke:"#333"}},track:{},rail:{type:"color",size:20,defaultLength:100,style:{fill:"#DCDEE2"}},title:{spacing:5,style:{fill:Vt.textColor,fontSize:12,textAlign:"start",textBaseline:"top"}}}})},r.prototype.isSlider=function(){return!0},r.prototype.getValue=function(){return this.getCurrentValue()},r.prototype.getRange=function(){return{min:this.get("min"),max:this.get("max")}},r.prototype.setRange=function(t,i){this.update({min:t,max:i})},r.prototype.setValue=function(t){var i=this.getValue();this.set("value",t);var n=this.get("group");this.resetTrackClip(),this.get("slidable")&&this.resetHandlers(n),this.delegateEmit("valuechanged",{originValue:i,value:t})},r.prototype.initEvent=function(){var t=this.get("group");this.bindSliderEvent(t),this.bindRailEvent(t),this.bindTrackEvent(t)},r.prototype.drawLegendContent=function(t){this.drawRail(t),this.drawLabels(t),this.fixedElements(t),this.resetTrack(t),this.resetTrackClip(t),this.get("slidable")&&this.resetHandlers(t)},r.prototype.bindSliderEvent=function(t){this.bindHandlersEvent(t)},r.prototype.bindHandlersEvent=function(t){var i=this;t.on("legend-handler-min:drag",function(n){var a=i.getValueByCanvasPoint(n.x,n.y),o=i.getCurrentValue(),s=o[1];sa&&(s=a),i.setValue([s,a])})},r.prototype.bindRailEvent=function(t){},r.prototype.bindTrackEvent=function(t){var i=this,n=null;t.on("legend-track:dragstart",function(a){n={x:a.x,y:a.y}}),t.on("legend-track:drag",function(a){if(!!n){var o=i.getValueByCanvasPoint(n.x,n.y),s=i.getValueByCanvasPoint(a.x,a.y),l=i.getCurrentValue(),u=l[1]-l[0],c=i.getRange(),f=s-o;f<0?l[0]+f>c.min?i.setValue([l[0]+f,l[1]+f]):i.setValue([c.min,c.min+u]):f>0&&(f>0&&l[1]+fo&&(f=o),f0&&this.changeRailLength(a,s,n[s]-d)}},r.prototype.changeRailLength=function(t,i,n){var a=t.getBBox(),o;i==="height"?o=this.getRailPath(a.x,a.y,a.width,n):o=this.getRailPath(a.x,a.y,n,a.height),t.attr("path",o)},r.prototype.changeRailPosition=function(t,i,n){var a=t.getBBox(),o=this.getRailPath(i,n,a.width,a.height);t.attr("path",o)},r.prototype.fixedHorizontal=function(t,i,n,a){var o=this.get("label"),s=o.align,l=o.spacing,u=n.getBBox(),c=t.getBBox(),f=i.getBBox(),v=u.height;this.fitRailLength(c,f,u,n),u=n.getBBox(),s==="rail"?(t.attr({x:a.x,y:a.y+v/2}),this.changeRailPosition(n,a.x+c.width+l,a.y),i.attr({x:a.x+c.width+u.width+l*2,y:a.y+v/2})):s==="top"?(t.attr({x:a.x,y:a.y}),i.attr({x:a.x+u.width,y:a.y}),this.changeRailPosition(n,a.x,a.y+c.height+l)):(this.changeRailPosition(n,a.x,a.y),t.attr({x:a.x,y:a.y+u.height+l}),i.attr({x:a.x+u.width,y:a.y+u.height+l}))},r.prototype.fixedVertail=function(t,i,n,a){var o=this.get("label"),s=o.align,l=o.spacing,u=n.getBBox(),c=t.getBBox(),f=i.getBBox();if(this.fitRailLength(c,f,u,n),u=n.getBBox(),s==="rail")t.attr({x:a.x,y:a.y}),this.changeRailPosition(n,a.x,a.y+c.height+l),i.attr({x:a.x,y:a.y+c.height+u.height+l*2});else if(s==="right")t.attr({x:a.x+u.width+l,y:a.y}),this.changeRailPosition(n,a.x,a.y),i.attr({x:a.x+u.width+l,y:a.y+u.height});else{var v=Math.max(c.width,f.width);t.attr({x:a.x,y:a.y}),this.changeRailPosition(n,a.x+v+l,a.y),i.attr({x:a.x,y:a.y+u.height})}},r}(Pl),yp=pp,sr="g2-tooltip",lr="g2-tooltip-title",Yi="g2-tooltip-list",kn="g2-tooltip-list-item",Dn="g2-tooltip-marker",Bn="g2-tooltip-value",Bl="g2-tooltip-name",ho="g2-tooltip-crosshair-x",fo="g2-tooltip-crosshair-y",$e,mp=($e={},$e[""+sr]={position:"absolute",visibility:"visible",zIndex:8,transition:"visibility 0.2s cubic-bezier(0.23, 1, 0.32, 1), left 0.4s cubic-bezier(0.23, 1, 0.32, 1), top 0.4s cubic-bezier(0.23, 1, 0.32, 1)",backgroundColor:"rgba(255, 255, 255, 0.9)",boxShadow:"0px 0px 10px #aeaeae",borderRadius:"3px",color:"rgb(87, 87, 87)",fontSize:"12px",fontFamily:Vt.fontFamily,lineHeight:"20px",padding:"10px 10px 6px 10px"},$e[""+lr]={marginBottom:"4px"},$e[""+Yi]={margin:"0px",listStyleType:"none",padding:"0px"},$e[""+kn]={listStyleType:"none",marginBottom:"4px"},$e[""+Dn]={width:"8px",height:"8px",borderRadius:"50%",display:"inline-block",marginRight:"8px"},$e[""+Bn]={display:"inline-block",float:"right",marginLeft:"30px"},$e[""+ho]={position:"absolute",width:"1px",backgroundColor:"rgba(0, 0, 0, 0.25)"},$e[""+fo]={position:"absolute",height:"1px",backgroundColor:"rgba(0, 0, 0, 0.25)"},$e);function xp(e,r,t,i,n){var a={left:en.x+n.width,top:rn.y+n.height};return a}function _p(e,r,t,i,n,a){var o=e,s=r;switch(a){case"left":o=e-i-t,s=r-n/2;break;case"right":o=e+t,s=r-n/2;break;case"top":o=e-i/2,s=r-n-t;break;case"bottom":o=e-i/2,s=r+t;break;default:o=e+t,s=r-n-t;break}return{x:o,y:s}}function wp(e,r,t,i,n,a,o){var s=_p(e,r,t,i,n,a);if(o){var l=xp(s.x,s.y,i,n,o);a==="auto"?(l.right&&(s.x=Math.max(0,e-i-t)),l.top&&(s.y=Math.max(0,r-n-t))):a==="top"||a==="bottom"?(l.left&&(s.x=o.x),l.right&&(s.x=o.x+o.width-i),a==="top"&&l.top&&(s.y=r+t),a==="bottom"&&l.bottom&&(s.y=r-n-t)):(l.top&&(s.y=o.y),l.bottom&&(s.y=o.y+o.height-n),a==="left"&&l.left&&(s.x=e+t),a==="right"&&l.right&&(s.x=e-i-t))}return s}function bp(e,r){var t=!1;return(0,h.each)(r,function(i){if((0,h.hasKey)(e,i))return t=!0,!1}),t}var Sp=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,g.__assign)((0,g.__assign)({},t),{name:"tooltip",type:"html",x:0,y:0,items:[],customContent:null,containerTpl:'
        ',itemTpl:'
      • - - {name}: - {value} -
      • `,xCrosshairTpl:'
        ',yCrosshairTpl:'
        ',title:null,showTitle:!0,region:null,crosshairsRegion:null,containerClassName:sr,crosshairs:null,offset:10,position:"right",domStyles:null,defaultStyles:mp})},r.prototype.render=function(){this.get("customContent")?this.renderCustomContent():(this.resetTitle(),this.renderItems()),this.resetPosition()},r.prototype.clear=function(){this.clearCrosshairs(),this.setTitle(""),this.clearItemDoms()},r.prototype.show=function(){var t=this.getContainer();!t||this.destroyed||(this.set("visible",!0),(0,k.Z)(t,{visibility:"visible"}),this.setCrossHairsVisible(!0))},r.prototype.hide=function(){var t=this.getContainer();!t||this.destroyed||(this.set("visible",!1),(0,k.Z)(t,{visibility:"hidden"}),this.setCrossHairsVisible(!1))},r.prototype.getLocation=function(){return{x:this.get("x"),y:this.get("y")}},r.prototype.setLocation=function(t){this.set("x",t.x),this.set("y",t.y),this.resetPosition()},r.prototype.setCrossHairsVisible=function(t){var i=t?"":"none",n=this.get("xCrosshairDom"),a=this.get("yCrosshairDom");n&&(0,k.Z)(n,{display:i}),a&&(0,k.Z)(a,{display:i})},r.prototype.initContainer=function(){if(e.prototype.initContainer.call(this),this.get("customContent")){this.get("container")&&this.get("container").remove();var t=this.getHtmlContentNode();this.get("parent").appendChild(t),this.set("container",t),this.resetStyles(),this.applyStyles()}},r.prototype.updateInner=function(t){this.get("customContent")?this.renderCustomContent():(bp(t,["title","showTitle"])&&this.resetTitle(),(0,h.hasKey)(t,"items")&&this.renderItems()),e.prototype.updateInner.call(this,t)},r.prototype.initDom=function(){this.cacheDoms()},r.prototype.removeDom=function(){e.prototype.removeDom.call(this),this.clearCrosshairs()},r.prototype.resetPosition=function(){var t=this.get("x"),i=this.get("y"),n=this.get("offset"),a=this.getOffset(),o=a.offsetX,s=a.offsetY,l=this.get("position"),u=this.get("region"),c=this.getContainer(),f=this.getBBox(),v=f.width,d=f.height,p;u&&(p=Ri(u));var y=wp(t,i,n,v,d,l,p);(0,k.Z)(c,{left:Le(y.x+o),top:Le(y.y+s)}),this.resetCrosshairs()},r.prototype.renderCustomContent=function(){var t=this.getHtmlContentNode(),i=this.get("parent"),n=this.get("container");n&&n.parentNode===i?i.replaceChild(t,n):i.appendChild(t),this.set("container",t),this.resetStyles(),this.applyStyles()},r.prototype.getHtmlContentNode=function(){var t,i=this.get("customContent");if(i){var n=i(this.get("title"),this.get("items"));(0,h.isElement)(n)?t=n:t=(0,T.Z)(n)}return t},r.prototype.cacheDoms=function(){var t=this.getContainer(),i=t.getElementsByClassName(lr)[0],n=t.getElementsByClassName(Yi)[0];this.set("titleDom",i),this.set("listDom",n)},r.prototype.resetTitle=function(){var t=this.get("title"),i=this.get("showTitle");i&&t?this.setTitle(t):this.setTitle("")},r.prototype.setTitle=function(t){var i=this.get("titleDom");i&&(i.innerText=t)},r.prototype.resetCrosshairs=function(){var t=this.get("crosshairsRegion"),i=this.get("crosshairs");if(!t||!i)this.clearCrosshairs();else{var n=Ri(t),a=this.get("xCrosshairDom"),o=this.get("yCrosshairDom");i==="x"?(this.resetCrosshair("x",n),o&&(o.remove(),this.set("yCrosshairDom",null))):i==="y"?(this.resetCrosshair("y",n),a&&(a.remove(),this.set("xCrosshairDom",null))):(this.resetCrosshair("x",n),this.resetCrosshair("y",n)),this.setCrossHairsVisible(this.get("visible"))}},r.prototype.resetCrosshair=function(t,i){var n=this.checkCrosshair(t),a=this.get(t);t==="x"?(0,k.Z)(n,{left:Le(a),top:Le(i.y),height:Le(i.height)}):(0,k.Z)(n,{top:Le(a),left:Le(i.x),width:Le(i.width)})},r.prototype.checkCrosshair=function(t){var i=t+"CrosshairDom",n=t+"CrosshairTpl",a="CROSSHAIR_"+t.toUpperCase(),o=et[a],s=this.get(i),l=this.get("parent");return s||(s=(0,T.Z)(this.get(n)),this.applyStyle(o,s),l.appendChild(s),this.set(i,s)),s},r.prototype.renderItems=function(){this.clearItemDoms();var t=this.get("items"),i=this.get("itemTpl"),n=this.get("listDom");n&&((0,h.each)(t,function(a){var o=xr.toCSSGradient(a.color),s=(0,g.__assign)((0,g.__assign)({},a),{color:o}),l=(0,h.substitute)(i,s),u=(0,T.Z)(l);n.appendChild(u)}),this.applyChildrenStyles(n,this.get("domStyles")))},r.prototype.clearItemDoms=function(){this.get("listDom")&&Ja(this.get("listDom"))},r.prototype.clearCrosshairs=function(){var t=this.get("xCrosshairDom"),i=this.get("yCrosshairDom");t&&t.remove(),i&&i.remove(),this.set("xCrosshairDom",null),this.set("yCrosshairDom",null)},r}(ro),Cp=Sp,Ap={opacity:0},Mp={stroke:"#C5C5C5",strokeOpacity:.85},Fp={fill:"#CACED4",opacity:.85},vo=M(80389);function Ep(e){return(0,h.map)(e,function(r,t){var i=t===0?"M":"L",n=r[0],a=r[1];return[i,n,a]})}function Rl(e){return Ep(e)}function Tp(e){if(e.length<=2)return Rl(e);var r=[];(0,h.each)(e,function(o){(0,h.isEqual)(o,r.slice(r.length-2))||r.push(o[0],o[1])});var t=(0,vo.e9)(r,!1),i=(0,h.head)(e),n=i[0],a=i[1];return t.unshift(["M",n,a]),t}function Lp(e,r,t,i){i===void 0&&(i=!0);var n=new Di.bJ({values:e}),a=new Di.WD({values:(0,h.map)(e,function(s,l){return l})}),o=(0,h.map)(e,function(s,l){return[a.scale(l)*r,t-n.scale(s)*t]});return i?Tp(o):Rl(o)}function Ip(e,r){var t=new Di.bJ({values:e}),i=t.max<0?t.max:Math.max(0,t.min);return r-t.scale(i)*r}function Op(e,r,t,i){var n=(0,g.__spreadArrays)(e),a=Ip(i,t);return n.push(["L",r,a]),n.push(["L",0,a]),n.push(["Z"]),n}var Pp=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,g.__assign)((0,g.__assign)({},t),{name:"trend",x:0,y:0,width:200,height:16,smooth:!0,isArea:!1,data:[],backgroundStyle:Ap,lineStyle:Mp,areaStyle:Fp})},r.prototype.renderInner=function(t){var i=this.cfg,n=i.width,a=i.height,o=i.data,s=i.smooth,l=i.isArea,u=i.backgroundStyle,c=i.lineStyle,f=i.areaStyle;this.addShape(t,{id:this.getElementId("background"),type:"rect",attrs:(0,g.__assign)({x:0,y:0,width:n,height:a},u)});var v=Lp(o,n,a,s);if(this.addShape(t,{id:this.getElementId("line"),type:"path",attrs:(0,g.__assign)({path:v},c)}),l){var d=Op(v,n,a,o);this.addShape(t,{id:this.getElementId("area"),type:"path",attrs:(0,g.__assign)({path:d},f)})}},r.prototype.applyOffset=function(){var t=this.cfg,i=t.x,n=t.y;this.moveElementTo(this.get("group"),{x:i,y:n})},r}(Ae),IL=null,Nl={fill:"#F7F7F7",stroke:"#BFBFBF",radius:2,opacity:1,cursor:"ew-resize",highLightFill:"#FFF"},zl=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,g.__assign)((0,g.__assign)({},t),{name:"handler",x:0,y:0,width:10,height:24,style:Nl})},r.prototype.renderInner=function(t){var i=this.cfg,n=i.width,a=i.height,o=i.style,s=o.fill,l=o.stroke,u=o.radius,c=o.opacity,f=o.cursor;this.addShape(t,{type:"rect",id:this.getElementId("background"),attrs:{x:0,y:0,width:n,height:a,fill:s,stroke:l,radius:u,opacity:c,cursor:f}});var v=1/3*n,d=2/3*n,p=1/4*a,y=3/4*a;this.addShape(t,{id:this.getElementId("line-left"),type:"line",attrs:{x1:v,y1:p,x2:v,y2:y,stroke:l,cursor:f}}),this.addShape(t,{id:this.getElementId("line-right"),type:"line",attrs:{x1:d,y1:p,x2:d,y2:y,stroke:l,cursor:f}})},r.prototype.applyOffset=function(){this.moveElementTo(this.get("group"),{x:this.get("x"),y:this.get("y")})},r.prototype.initEvent=function(){this.bindEvents()},r.prototype.bindEvents=function(){var t=this;this.get("group").on("mouseenter",function(){var i=t.get("style").highLightFill;t.getElementByLocalId("background").attr("fill",i),t.draw()}),this.get("group").on("mouseleave",function(){var i=t.get("style").fill;t.getElementByLocalId("background").attr("fill",i),t.draw()})},r.prototype.draw=function(){var t=this.get("container").get("canvas");t&&t.draw()},r}(Ae),OL=null,kp={fill:"#416180",opacity:.05},Dp={fill:"#5B8FF9",opacity:.15,cursor:"move"},Rn=10,Bp={width:Rn,height:24},Rp={textBaseline:"middle",fill:"#000",opacity:.45},Np="sliderchange",zp=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.onMouseDown=function(i){return function(n){t.currentTarget=i;var a=n.originalEvent;a.stopPropagation(),a.preventDefault(),t.prevX=(0,h.get)(a,"touches.0.pageX",a.pageX),t.prevY=(0,h.get)(a,"touches.0.pageY",a.pageY);var o=t.getContainerDOM();o.addEventListener("mousemove",t.onMouseMove),o.addEventListener("mouseup",t.onMouseUp),o.addEventListener("mouseleave",t.onMouseUp),o.addEventListener("touchmove",t.onMouseMove),o.addEventListener("touchend",t.onMouseUp),o.addEventListener("touchcancel",t.onMouseUp)}},t.onMouseMove=function(i){var n=t.cfg.width,a=[t.get("start"),t.get("end")];i.stopPropagation(),i.preventDefault();var o=(0,h.get)(i,"touches.0.pageX",i.pageX),s=(0,h.get)(i,"touches.0.pageY",i.pageY),l=o-t.prevX,u=t.adjustOffsetRange(l/n);t.updateStartEnd(u),t.updateUI(t.getElementByLocalId("foreground"),t.getElementByLocalId("minText"),t.getElementByLocalId("maxText")),t.prevX=o,t.prevY=s,t.draw(),t.emit(Np,[t.get("start"),t.get("end")].sort()),t.delegateEmit("valuechanged",{originValue:a,value:[t.get("start"),t.get("end")]})},t.onMouseUp=function(){t.currentTarget&&(t.currentTarget=void 0);var i=t.getContainerDOM();i&&(i.removeEventListener("mousemove",t.onMouseMove),i.removeEventListener("mouseup",t.onMouseUp),i.removeEventListener("mouseleave",t.onMouseUp),i.removeEventListener("touchmove",t.onMouseMove),i.removeEventListener("touchend",t.onMouseUp),i.removeEventListener("touchcancel",t.onMouseUp))},t}return r.prototype.setRange=function(t,i){this.set("minLimit",t),this.set("maxLimit",i);var n=this.get("start"),a=this.get("end"),o=(0,h.clamp)(n,t,i),s=(0,h.clamp)(a,t,i);!this.get("isInit")&&(n!==o||a!==s)&&this.setValue([o,s])},r.prototype.getRange=function(){return{min:this.get("minLimit")||0,max:this.get("maxLimit")||1}},r.prototype.setValue=function(t){var i=this.getRange();if((0,h.isArray)(t)&&t.length===2){var n=[this.get("start"),this.get("end")];this.update({start:(0,h.clamp)(t[0],i.min,i.max),end:(0,h.clamp)(t[1],i.min,i.max)}),this.get("updateAutoRender")||this.render(),this.delegateEmit("valuechanged",{originValue:n,value:t})}},r.prototype.getValue=function(){return[this.get("start"),this.get("end")]},r.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,g.__assign)((0,g.__assign)({},t),{name:"slider",x:0,y:0,width:100,height:16,backgroundStyle:{},foregroundStyle:{},handlerStyle:{},textStyle:{},defaultCfg:{backgroundStyle:kp,foregroundStyle:Dp,handlerStyle:Bp,textStyle:Rp}})},r.prototype.update=function(t){var i=t.start,n=t.end,a=(0,g.__assign)({},t);(0,h.isNil)(i)||(a.start=(0,h.clamp)(i,0,1)),(0,h.isNil)(n)||(a.end=(0,h.clamp)(n,0,1)),e.prototype.update.call(this,a),this.minHandler=this.getChildComponentById(this.getElementId("minHandler")),this.maxHandler=this.getChildComponentById(this.getElementId("maxHandler")),this.trend=this.getChildComponentById(this.getElementId("trend"))},r.prototype.init=function(){this.set("start",(0,h.clamp)(this.get("start"),0,1)),this.set("end",(0,h.clamp)(this.get("end"),0,1)),e.prototype.init.call(this)},r.prototype.render=function(){e.prototype.render.call(this),this.updateUI(this.getElementByLocalId("foreground"),this.getElementByLocalId("minText"),this.getElementByLocalId("maxText"))},r.prototype.renderInner=function(t){var i=this.cfg,n=i.start,a=i.end,o=i.width,s=i.height,l=i.trendCfg,u=l===void 0?{}:l,c=i.minText,f=i.maxText,v=i.backgroundStyle,d=v===void 0?{}:v,p=i.foregroundStyle,y=p===void 0?{}:p,m=i.textStyle,x=m===void 0?{}:m,_=(0,h.deepMix)({},Nl,this.cfg.handlerStyle),w=n*o,b=a*o;(0,h.size)((0,h.get)(u,"data"))&&(this.trend=this.addComponent(t,(0,g.__assign)({component:Pp,id:this.getElementId("trend"),x:0,y:0,width:o,height:s},u))),this.addShape(t,{id:this.getElementId("background"),type:"rect",attrs:(0,g.__assign)({x:0,y:0,width:o,height:s},d)});var S=this.addShape(t,{id:this.getElementId("minText"),type:"text",attrs:(0,g.__assign)({y:s/2,textAlign:"right",text:c,silent:!1},x)}),C=this.addShape(t,{id:this.getElementId("maxText"),type:"text",attrs:(0,g.__assign)({y:s/2,textAlign:"left",text:f,silent:!1},x)}),A=this.addShape(t,{id:this.getElementId("foreground"),name:"foreground",type:"rect",attrs:(0,g.__assign)({y:0,height:s},y)}),F=(0,h.get)(_,"width",Rn),P=(0,h.get)(_,"height",24);this.minHandler=this.addComponent(t,{component:zl,id:this.getElementId("minHandler"),name:"handler-min",x:0,y:(s-P)/2,width:F,height:P,cursor:"ew-resize",style:_}),this.maxHandler=this.addComponent(t,{component:zl,id:this.getElementId("maxHandler"),name:"handler-max",x:0,y:(s-P)/2,width:F,height:P,cursor:"ew-resize",style:_})},r.prototype.applyOffset=function(){this.moveElementTo(this.get("group"),{x:this.get("x"),y:this.get("y")})},r.prototype.initEvent=function(){this.bindEvents()},r.prototype.updateUI=function(t,i,n){var a=this.cfg,o=a.start,s=a.end,l=a.width,u=a.minText,c=a.maxText,f=a.handlerStyle,v=a.height,d=o*l,p=s*l;this.trend&&(this.trend.update({width:l,height:v}),this.get("updateAutoRender")||this.trend.render()),t.attr("x",d),t.attr("width",p-d);var y=(0,h.get)(f,"width",Rn);i.attr("text",u),n.attr("text",c);var m=this._dodgeText([d,p],i,n),x=m[0],_=m[1];this.minHandler&&(this.minHandler.update({x:d-y/2}),this.get("updateAutoRender")||this.minHandler.render()),(0,h.each)(x,function(w,b){return i.attr(b,w)}),this.maxHandler&&(this.maxHandler.update({x:p-y/2}),this.get("updateAutoRender")||this.maxHandler.render()),(0,h.each)(_,function(w,b){return n.attr(b,w)})},r.prototype.bindEvents=function(){var t=this.get("group");t.on("handler-min:mousedown",this.onMouseDown("minHandler")),t.on("handler-min:touchstart",this.onMouseDown("minHandler")),t.on("handler-max:mousedown",this.onMouseDown("maxHandler")),t.on("handler-max:touchstart",this.onMouseDown("maxHandler"));var i=t.findById(this.getElementId("foreground"));i.on("mousedown",this.onMouseDown("foreground")),i.on("touchstart",this.onMouseDown("foreground"))},r.prototype.adjustOffsetRange=function(t){var i=this.cfg,n=i.start,a=i.end;switch(this.currentTarget){case"minHandler":{var o=0-n,s=1-n;return Math.min(s,Math.max(o,t))}case"maxHandler":{var o=0-a,s=1-a;return Math.min(s,Math.max(o,t))}case"foreground":{var o=0-n,s=1-a;return Math.min(s,Math.max(o,t))}}},r.prototype.updateStartEnd=function(t){var i=this.cfg,n=i.start,a=i.end;switch(this.currentTarget){case"minHandler":n+=t;break;case"maxHandler":a+=t;break;case"foreground":n+=t,a+=t;break}this.set("start",n),this.set("end",a)},r.prototype._dodgeText=function(t,i,n){var a,o,s=this.cfg,l=s.handlerStyle,u=s.width,c=2,f=(0,h.get)(l,"width",Rn),v=t[0],d=t[1],p=!1;v>d&&(a=[d,v],v=a[0],d=a[1],o=[n,i],i=o[0],n=o[1],p=!0);var y=i.getBBox(),m=n.getBBox(),x=y.width>v-c?{x:v+f/2+c,textAlign:"left"}:{x:v-f/2-c,textAlign:"right"},_=m.width>u-d-c?{x:d-f/2-c,textAlign:"right"}:{x:d+f/2+c,textAlign:"left"};return p?[_,x]:[x,_]},r.prototype.draw=function(){var t=this.get("container"),i=t&&t.get("canvas");i&&i.draw()},r.prototype.getContainerDOM=function(){var t=this.get("container"),i=t&&t.get("canvas");return i&&i.get("container")},r}(Ae),PL=null,si=M(57817),Vp={trackColor:"rgba(0,0,0,0)",thumbColor:"rgba(0,0,0,0.15)",size:8,lineCap:"round"},go={default:Vp,hover:{thumbColor:"rgba(0,0,0,0.2)"}},Gp=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.clearEvents=h.noop,t.onStartEvent=function(i){return function(n){t.isMobile=i,n.originalEvent.preventDefault();var a=i?(0,h.get)(n.originalEvent,"touches.0.clientX"):n.clientX,o=i?(0,h.get)(n.originalEvent,"touches.0.clientY"):n.clientY;t.startPos=t.cfg.isHorizontal?a:o,t.bindLaterEvent()}},t.bindLaterEvent=function(){var i=t.getContainerDOM(),n=[];t.isMobile?n=[(0,si.Z)(i,"touchmove",t.onMouseMove),(0,si.Z)(i,"touchend",t.onMouseUp),(0,si.Z)(i,"touchcancel",t.onMouseUp)]:n=[(0,si.Z)(i,"mousemove",t.onMouseMove),(0,si.Z)(i,"mouseup",t.onMouseUp),(0,si.Z)(i,"mouseleave",t.onMouseUp)],t.clearEvents=function(){n.forEach(function(a){a.remove()})}},t.onMouseMove=function(i){var n=t.cfg,a=n.isHorizontal,o=n.thumbOffset;i.preventDefault();var s=t.isMobile?(0,h.get)(i,"touches.0.clientX"):i.clientX,l=t.isMobile?(0,h.get)(i,"touches.0.clientY"):i.clientY,u=a?s:l,c=u-t.startPos;t.startPos=u,t.updateThumbOffset(o+c)},t.onMouseUp=function(i){i.preventDefault(),t.clearEvents()},t.onTrackClick=function(i){var n=t.cfg,a=n.isHorizontal,o=n.x,s=n.y,l=n.thumbLen,u=t.getContainerDOM(),c=u.getBoundingClientRect(),f=i.clientX,v=i.clientY,d=a?f-c.left-o-l/2:v-c.top-s-l/2,p=t.validateRange(d);t.updateThumbOffset(p)},t.onThumbMouseOver=function(){var i=t.cfg.theme.hover.thumbColor;t.getElementByLocalId("thumb").attr("stroke",i),t.draw()},t.onThumbMouseOut=function(){var i=t.cfg.theme.default.thumbColor;t.getElementByLocalId("thumb").attr("stroke",i),t.draw()},t}return r.prototype.setRange=function(t,i){this.set("minLimit",t),this.set("maxLimit",i);var n=this.getValue(),a=(0,h.clamp)(n,t,i);n!==a&&!this.get("isInit")&&this.setValue(a)},r.prototype.getRange=function(){var t=this.get("minLimit")||0,i=this.get("maxLimit")||1;return{min:t,max:i}},r.prototype.setValue=function(t){var i=this.getRange(),n=this.getValue();this.update({thumbOffset:(this.get("trackLen")-this.get("thumbLen"))*(0,h.clamp)(t,i.min,i.max)}),this.delegateEmit("valuechange",{originalValue:n,value:this.getValue()})},r.prototype.getValue=function(){return(0,h.clamp)(this.get("thumbOffset")/(this.get("trackLen")-this.get("thumbLen")),0,1)},r.prototype.getDefaultCfg=function(){var t=e.prototype.getDefaultCfg.call(this);return(0,g.__assign)((0,g.__assign)({},t),{name:"scrollbar",isHorizontal:!0,minThumbLen:20,thumbOffset:0,theme:go})},r.prototype.renderInner=function(t){this.renderTrackShape(t),this.renderThumbShape(t)},r.prototype.applyOffset=function(){this.moveElementTo(this.get("group"),{x:this.get("x"),y:this.get("y")})},r.prototype.initEvent=function(){this.bindEvents()},r.prototype.renderTrackShape=function(t){var i=this.cfg,n=i.trackLen,a=i.theme,o=a===void 0?{default:{}}:a,s=(0,h.deepMix)({},go,o).default,l=s.lineCap,u=s.trackColor,c=s.size,f=(0,h.get)(this.cfg,"size",c),v=this.get("isHorizontal")?{x1:0+f/2,y1:f/2,x2:n-f/2,y2:f/2,lineWidth:f,stroke:u,lineCap:l}:{x1:f/2,y1:0+f/2,x2:f/2,y2:n-f/2,lineWidth:f,stroke:u,lineCap:l};return this.addShape(t,{id:this.getElementId("track"),name:"track",type:"line",attrs:v})},r.prototype.renderThumbShape=function(t){var i=this.cfg,n=i.thumbOffset,a=i.thumbLen,o=i.theme,s=(0,h.deepMix)({},go,o).default,l=s.size,u=s.lineCap,c=s.thumbColor,f=(0,h.get)(this.cfg,"size",l),v=this.get("isHorizontal")?{x1:n+f/2,y1:f/2,x2:n+a-f/2,y2:f/2,lineWidth:f,stroke:c,lineCap:u,cursor:"default"}:{x1:f/2,y1:n+f/2,x2:f/2,y2:n+a-f/2,lineWidth:f,stroke:c,lineCap:u,cursor:"default"};return this.addShape(t,{id:this.getElementId("thumb"),name:"thumb",type:"line",attrs:v})},r.prototype.bindEvents=function(){var t=this.get("group");t.on("mousedown",this.onStartEvent(!1)),t.on("mouseup",this.onMouseUp),t.on("touchstart",this.onStartEvent(!0)),t.on("touchend",this.onMouseUp);var i=t.findById(this.getElementId("track"));i.on("click",this.onTrackClick);var n=t.findById(this.getElementId("thumb"));n.on("mouseover",this.onThumbMouseOver),n.on("mouseout",this.onThumbMouseOut)},r.prototype.getContainerDOM=function(){var t=this.get("container"),i=t&&t.get("canvas");return i&&i.get("container")},r.prototype.validateRange=function(t){var i=this.cfg,n=i.thumbLen,a=i.trackLen,o=t;return t+n>a?o=a-n:t+na.x?a.x:r,t=ta.y?a.y:i,n=n=i&&e<=n}function qp(e,r,t){if((0,h.isString)(e))return e.padEnd(r,t);if((0,h.isArray)(e)){var i=e.length;if(i=this.minX&&r.maxX<=this.maxX&&r.minY>=this.minY&&r.maxY<=this.maxY},e.prototype.clone=function(){return new e(this.x,this.y,this.width,this.height)},e.prototype.add=function(){for(var r=[],t=0;tr.minX&&this.minYr.minY},e.prototype.size=function(){return this.width*this.height},e.prototype.isPointIn=function(r){return r.x>=this.minX&&r.x<=this.maxX&&r.y>=this.minY&&r.y<=this.maxY},e}(),kL=function(e,r){var t=r.start,i=r.end;return new Ee(e.x+e.width*t.x,e.y+e.height*t.y,e.width*Math.abs(i.x-t.x),e.height*Math.abs(i.y-t.y))};function Kp(e){return[[e.minX,e.minY],[e.maxX,e.minY],[e.maxX,e.maxY],[e.minX,e.maxY]]}function Ui(e){if(e.isPolar&&!e.isTransposed)return(e.endAngle-e.startAngle)*e.getRadius();var r=e.convert({x:0,y:0}),t=e.convert({x:1,y:0});return Math.sqrt(Math.pow(t.x-r.x,2)+Math.pow(t.y-r.y,2))}function $p(e){if(e.isPolar){var r=e.startAngle,t=e.endAngle;return t-r==Math.PI*2}return!1}function zn(e,r){var t=e.getCenter();return Math.sqrt(Math.pow(r.x-t.x,2)+Math.pow(r.y-t.y,2))}function Qp(e,r){var t=!1;if(e)if(e.type==="theta"){var i=e.start,n=e.end;t=li(r.x,i.x,n.x)&&li(r.y,i.y,n.y)}else{var a=e.invert(r);t=li(a.x,0,1)&&li(a.y,0,1)}return t}function ui(e,r){var t=e.getCenter();return Math.atan2(r.y-t.y,r.x-t.x)}function po(e,r){r===void 0&&(r=0);var t=e.start,i=e.end,n=e.getWidth(),a=e.getHeight();if(e.isPolar){var o=e.startAngle,s=e.endAngle,l=e.getCenter(),u=e.getRadius();return{type:"path",startState:{path:_r(l.x,l.y,u+r,o,o)},endState:function(f){var v=(s-o)*f+o,d=_r(l.x,l.y,u+r,o,v);return{path:d}},attrs:{path:_r(l.x,l.y,u+r,o,s)}}}var c;return e.isTransposed?c={height:a+r*2}:c={width:n+r*2},{type:"rect",startState:{x:t.x-r,y:i.y-r,width:e.isTransposed?n+r*2:0,height:e.isTransposed?0:a+r*2},endState:c,attrs:{x:t.x-r,y:i.y-r,width:n+r*2,height:a+r*2}}}function Jp(e,r){r===void 0&&(r=0);var t=e.start,i=e.end,n=e.getWidth(),a=e.getHeight(),o=Math.min(t.x,i.x),s=Math.min(t.y,i.y);return Ee.fromRange(o-r,s-r,o+n+r,s+a+r)}var ty=/^(?:(?!0000)[0-9]{4}([-/.]+)(?:(?:0?[1-9]|1[0-2])\1(?:0?[1-9]|1[0-9]|2[0-8])|(?:0?[13-9]|1[0-2])\1(?:29|30)|(?:0?[13578]|1[02])\1(?:31))|(?:[0-9]{2}(?:0[48]|[2468][048]|[13579][26])|(?:0[48]|[2468][048]|[13579][26])00)([-/.]+)0?2\2(?:29))(\s+([01]|([01][0-9]|2[0-3])):([0-9]|[0-5][0-9]):([0-9]|[0-5][0-9]))?$/;function ey(e){var r="linear";return ty.test(e)?r="timeCat":(0,h.isString)(e)&&(r="cat"),r}function Xl(e,r,t,i){return r===void 0&&(r={}),r.type?r.type:e.type!=="identity"&&bt.includes(t)&&["interval"].includes(i)||e.isCategory?"cat":e.type}function ry(e,r,t){var i=r||[];if((0,h.isNumber)(e)||(0,h.isNil)((0,h.firstValue)(i,e))&&(0,h.isEmpty)(t)){var n=(0,Di.yZ)("identity");return new n({field:e.toString(),values:[e]})}var a=(0,h.valuesOfKey)(i,e),o=(0,h.get)(t,"type",ey(a[0])),s=(0,Di.yZ)(o);return new s((0,g.__assign)({field:e,values:a},t))}function iy(e,r){if(e.type!=="identity"&&r.type!=="identity"){var t={};for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i]);e.change(t)}}function ji(e){return e.alias||e.field}function Ul(e,r,t){var i=e.values,n=i.length,a;if(n===1)a=[.5,1];else{var o=1,s=0;$p(r)?r.isTransposed?(o=(0,h.get)(t,"widthRatio.multiplePie",1/1.3),s=1/n*o,a=[s/2,1-s/2]):a=[0,1-1/n]:(s=1/n/2,a=[s,1-s])}return a}function ny(e){var r=e.values.filter(function(t){return!(0,h.isNil)(t)&&!isNaN(t)});return Math.max.apply(Math,(0,g.__spreadArray)((0,g.__spreadArray)([],(0,g.__read)(r),!1),[(0,h.isNil)(e.max)?-Infinity:e.max],!1))}function ay(e){var r,t;switch(e){case E.TOP:r={x:0,y:1},t={x:1,y:1};break;case E.RIGHT:r={x:1,y:0},t={x:1,y:1};break;case E.BOTTOM:r={x:0,y:0},t={x:1,y:0};break;case E.LEFT:r={x:0,y:0},t={x:0,y:1};break;default:r=t={x:0,y:0}}return{start:r,end:t}}function oy(e){var r,t;return e.isTransposed?(r={x:0,y:0},t={x:1,y:0}):(r={x:0,y:0},t={x:0,y:1}),{start:r,end:t}}function Vn(e,r){var t={start:{x:0,y:0},end:{x:0,y:0}};e.isRect?t=ay(r):e.isPolar&&(t=oy(e));var i=t.start,n=t.end;return{start:e.convert(i),end:e.convert(n)}}function DL(e,r){if(e.isRect)return e.isTransposed?[DIRECTION.RIGHT,DIRECTION.BOTTOM].includes(r)?1:-1:[DIRECTION.BOTTOM,DIRECTION.RIGHT].includes(r)?-1:1;if(e.isPolar){var t=e.x.start;return t<0?-1:1}return 1}function jl(e){var r=e.start,t=e.end;return r.x===t.x}function Zl(e,r){var t=e.start,i=e.end,n=jl(e);return n?(t.y-i.y)*(r.x-t.x)>0?1:-1:(i.x-t.x)*(t.y-r.y)>0?-1:1}function Gn(e,r){var t=(0,h.get)(e,["components","axis"],{});return(0,h.deepMix)({},(0,h.get)(t,["common"],{}),(0,h.deepMix)({},(0,h.get)(t,[r],{})))}function ql(e,r,t){var i=(0,h.get)(e,["components","axis"],{});return(0,h.deepMix)({},(0,h.get)(i,["common","title"],{}),(0,h.deepMix)({},(0,h.get)(i,[r,"title"],{})),t)}function yo(e){var r=e.x,t=e.y,i=e.circleCenter,n=t.start>t.end,a=e.isTransposed?e.convert({x:n?0:1,y:0}):e.convert({x:0,y:n?0:1}),o=[a.x-i.x,a.y-i.y],s=[1,0],l=a.y>i.y?Lt.angle(o,s):Lt.angle(o,s)*-1,u=l+(r.end-r.start),c=Math.sqrt(Math.pow(a.x-i.x,2)+Math.pow(a.y-i.y,2));return{center:i,radius:c,startAngle:l,endAngle:u}}function Wn(e,r){return(0,h.isBoolean)(e)?e===!1?!1:{}:(0,h.get)(e,[r])}function Kl(e,r){return(0,h.get)(e,"position",r)}function $l(e,r){return(0,h.get)(r,["title","text"],ji(e))}var ci=function(){function e(r,t){this.destroyed=!1,this.facets=[],this.view=r,this.cfg=(0,h.deepMix)({},this.getDefaultCfg(),t)}return e.prototype.init=function(){this.container||(this.container=this.createContainer());var r=this.view.getData();this.facets=this.generateFacets(r)},e.prototype.render=function(){this.renderViews()},e.prototype.update=function(){},e.prototype.clear=function(){this.clearFacetViews()},e.prototype.destroy=function(){this.clear(),this.container&&(this.container.remove(!0),this.container=void 0),this.destroyed=!0,this.view=void 0,this.facets=[]},e.prototype.facetToView=function(r){var t=r.region,i=r.data,n=r.padding,a=n===void 0?this.cfg.padding:n,o=this.view.createView({region:t,padding:a});o.data(i||[]),r.view=o,this.beforeEachView(o,r);var s=this.cfg.eachView;return s&&s(o,r),this.afterEachView(o,r),o},e.prototype.createContainer=function(){var r=this.view.getLayer(J.FORE);return r.addGroup()},e.prototype.renderViews=function(){this.createFacetViews()},e.prototype.createFacetViews=function(){var r=this;return this.facets.map(function(t){return r.facetToView(t)})},e.prototype.clearFacetViews=function(){var r=this;(0,h.each)(this.facets,function(t){t.view&&(r.view.removeView(t.view),t.view=void 0)})},e.prototype.parseSpacing=function(){var r=this.view.viewBBox,t=r.width,i=r.height,n=this.cfg.spacing;return n.map(function(a,o){return(0,h.isNumber)(a)?a/(o===0?t:i):parseFloat(a)/100})},e.prototype.getFieldValues=function(r,t){var i=[],n={};return(0,h.each)(r,function(a){var o=a[t];!(0,h.isNil)(o)&&!n[o]&&(i.push(o),n[o]=!0)}),i},e.prototype.getRegion=function(r,t,i,n){var a=(0,g.__read)(this.parseSpacing(),2),o=a[0],s=a[1],l=(1+o)/(t===0?1:t)-o,u=(1+s)/(r===0?1:r)-s,c={x:(l+o)*i,y:(u+s)*n},f={x:c.x+l,y:c.y+u};return{start:c,end:f}},e.prototype.getDefaultCfg=function(){return{eachView:void 0,showTitle:!0,spacing:[0,0],padding:10,fields:[]}},e.prototype.getDefaultTitleCfg=function(){var r=this.view.getTheme().fontFamily;return{style:{fontSize:14,fill:"#666",fontFamily:r}}},e.prototype.processAxis=function(r,t){var i=r.getOptions(),n=i.coordinate,a=r.geometries,o=(0,h.get)(n,"type","rect");if(o==="rect"&&a.length){(0,h.isNil)(i.axes)&&(i.axes={});var s=i.axes,l=(0,g.__read)(a[0].getXYFields(),2),u=l[0],c=l[1],f=Wn(s,u),v=Wn(s,c);f!==!1&&(i.axes[u]=this.getXAxisOption(u,s,f,t)),v!==!1&&(i.axes[c]=this.getYAxisOption(c,s,v,t))}},e.prototype.getFacetDataFilter=function(r){return function(t){return(0,h.every)(r,function(i){var n=i.field,a=i.value;return!(0,h.isNil)(a)&&n?t[n]===a:!0})}},e}(),Ql={},sy=function(e){return Ql[(0,h.lowerCase)(e)]},hi=function(e,r){Ql[(0,h.lowerCase)(e)]=r},ly=function(){function e(r,t){this.context=r,this.cfg=t,r.addAction(this)}return e.prototype.applyCfg=function(r){(0,h.assign)(this,r)},e.prototype.init=function(){this.applyCfg(this.cfg)},e.prototype.destroy=function(){this.context.removeAction(this),this.context=null},e}(),ne=ly,uy=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.execute=function(){this.callback&&this.callback(this.context)},r.prototype.destroy=function(){e.prototype.destroy.call(this),this.callback=null},r}(ne),cy=uy,Hn={};function hy(e,r){var t=Hn[e],i=null;if(t){var n=t.ActionClass,a=t.cfg;i=new n(r,a),i.name=e,i.init()}return i}function Yn(e){var r=Hn[e];return(0,h.get)(r,"ActionClass")}function xt(e,r,t){Hn[e]={ActionClass:r,cfg:t}}function BL(e){delete Hn[e]}function fy(e,r){var t=new cy(r);return t.callback=e,t.name="callback",t}function vy(e,r){var t=[];if(e.length){t.push(["M",e[0].x,e[0].y]);for(var i=1,n=e.length;i=o[u]?1:0,v=c>Math.PI?1:0,d=t.convert(s),p=zn(t,d);if(p>=.5)if(c===Math.PI*2){var y={x:(s.x+o.x)/2,y:(s.y+o.y)/2},m=t.convert(y);l.push(["A",p,p,0,v,f,m.x,m.y]),l.push(["A",p,p,0,v,f,d.x,d.y])}else l.push(["A",p,p,0,v,f,d.x,d.y]);return l}function gy(e){(0,h.each)(e,function(r,t){var i=r;if(i[0].toLowerCase()==="a"){var n=e[t-1],a=e[t+1];a&&a[0].toLowerCase()==="a"?n&&n[0].toLowerCase()==="l"&&(n[0]="M"):n&&n[0].toLowerCase()==="a"&&a&&a[0].toLowerCase()==="l"&&(a[0]="M")}})}var py=function(e,r,t,i){var n,a=[],o=!!i,s,l,u,c,f,v,d;if(o){n=(0,g.__read)(i,2),u=n[0],c=n[1];for(var p=0,y=e.length;p0&&n>0&&(i>=r||n>=r)}function iu(e,r){var t=e.getCanvasBBox();return ru(e,r)?t:null}function nu(e,r){var t=e.event.maskShapes;return t.map(function(i){return iu(i,r)}).filter(function(i){return!!i})}function xy(e,r){var t=e.event,i=t.target;return au(i,r)}function au(e,r){return ru(e,r)?e.attr("path"):null}function _y(e,r){var t=e.event.maskShapes;return t.map(function(i){return au(i,r)})}function br(e){var r=e.event,t,i=r.target;return i&&(t=i.get("element")),t}function zr(e){var r=e.event,t=r.target,i;return t&&(i=t.get("delegateObject")),i}function ou(e){var r=e.event.gEvent;return!(r&&r.fromShape&&r.toShape&&r.fromShape.get("element")===r.toShape.get("element"))}function qi(e){return e&&e.component&&e.component.isList()}function su(e){return e&&e.component&&e.component.isSlider()}function Ki(e){var r=e.event,t=r.target;return t&&(t==null?void 0:t.get("name"))==="mask"||Un(e)}function Un(e){var r;return((r=e.event.target)===null||r===void 0?void 0:r.get("name"))==="multi-mask"}function xo(e,r){var t=e.event.target;if(Un(e))return wy(e,r);if(t.get("type")==="path"){var i=xy(e,r);return i?fu(e.view,i):void 0}var n=eu(e,r);return n?jn(e.view,n):null}function wy(e,r){var t=e.event.target;if(t.get("type")==="path"){var i=_y(e,r);return i.length>0?i.flatMap(function(a){return fu(e.view,a)}):null}var n=nu(e,r);return n.length>0?n.flatMap(function(a){return jn(e.view,a)}):null}function lu(e,r,t){if(Un(e))return by(e,r,t);var i=eu(e,t);return i?uu(i,e,r):null}function uu(e,r,t){var i=r.view,n=wo(i,t,{x:e.x,y:e.y}),a=wo(i,t,{x:e.maxX,y:e.maxY}),o={minX:n.x,minY:n.y,maxX:a.x,maxY:a.y};return jn(t,o)}function by(e,r,t){var i=nu(e,t);return i.length>0?i.flatMap(function(n){return uu(n,e,r)}):null}function Ce(e){var r=e.geometries,t=[];return(0,h.each)(r,function(i){var n=i.elements;t=t.concat(n)}),e.views&&e.views.length&&(0,h.each)(e.views,function(i){t=t.concat(Ce(i))}),t}function Sy(e,r,t){var i=Ce(e);return i.filter(function(n){return je(n,r)===t})}function cu(e,r){var t=e.geometries,i=[];return(0,h.each)(t,function(n){var a=n.getElementsBy(function(o){return o.hasState(r)});i=i.concat(a)}),i}function je(e,r){var t=e.getModel(),i=t.data,n;return(0,h.isArray)(i)?n=i[0][r]:n=i[r],n}function Cy(e,r){return!(r.minX>e.maxX||r.maxXe.maxY||r.maxY=r.x&&e.y<=r.y&&e.maxY>r.y}function Qe(e){var r=e.parent,t=null;return r&&(t=r.views.filter(function(i){return i!==e})),t}function My(e,r){var t=e.getCoordinate();return t.invert(r)}function wo(e,r,t){var i=My(e,t);return r.getCoordinate().convert(i)}function gu(e,r,t,i){var n=!1;return(0,h.each)(e,function(a){if(a[t]===r[t]&&a[i]===r[i])return n=!0,!1}),n}function fi(e,r){var t=e.getScaleByField(r);return!t&&e.views&&(0,h.each)(e.views,function(i){if(t=fi(i,r),t)return!1}),t}var Fy=function(){function e(r){this.actions=[],this.event=null,this.cacheMap={},this.view=r}return e.prototype.cache=function(){for(var r=[],t=0;t=0&&t.splice(i,1)},e.prototype.getCurrentPoint=function(){var r=this.event;if(r)if(r.target instanceof HTMLElement){var t=this.view.getCanvas(),i=t.getPointByClient(r.clientX,r.clientY);return i}else return{x:r.x,y:r.y};return null},e.prototype.getCurrentShape=function(){return(0,h.get)(this.event,["gEvent","shape"])},e.prototype.isInPlot=function(){var r=this.getCurrentPoint();return r?this.view.isPointInPlot(r):!1},e.prototype.isInShape=function(r){var t=this.getCurrentShape();return t?t.get("name")===r:!1},e.prototype.isInComponent=function(r){var t=vu(this.view),i=this.getCurrentPoint();return i?!!t.find(function(n){var a=n.getBBox();return r?n.get("name")===r&&du(a,i):du(a,i)}):!1},e.prototype.destroy=function(){(0,h.each)(this.actions.slice(),function(r){r.destroy()}),this.view=null,this.event=null,this.actions=null,this.cacheMap=null},e}(),Ey=Fy,Ty=function(){function e(r,t){this.view=r,this.cfg=t}return e.prototype.init=function(){this.initEvents()},e.prototype.initEvents=function(){},e.prototype.clearEvents=function(){},e.prototype.destroy=function(){this.clearEvents()},e}(),Ly=Ty;function pu(e,r,t){var i=e.split(":"),n=i[0],a=r.getAction(n)||hy(n,r);if(!a)throw new Error("There is no action named ".concat(n));var o=i[1];return{action:a,methodName:o,arg:t}}function yu(e){var r=e.action,t=e.methodName,i=e.arg;if(r[t])r[t](i);else throw new Error("Action(".concat(r.name,") doesn't have a method called ").concat(t))}var Ne={START:"start",SHOW_ENABLE:"showEnable",END:"end",ROLLBACK:"rollback",PROCESSING:"processing"},Iy=function(e){(0,g.__extends)(r,e);function r(t,i){var n=e.call(this,t,i)||this;return n.callbackCaches={},n.emitCaches={},n.steps=i,n}return r.prototype.init=function(){this.initContext(),e.prototype.init.call(this)},r.prototype.destroy=function(){e.prototype.destroy.call(this),this.steps=null,this.context&&(this.context.destroy(),this.context=null),this.callbackCaches=null,this.view=null},r.prototype.initEvents=function(){var t=this;(0,h.each)(this.steps,function(i,n){(0,h.each)(i,function(a){var o=t.getActionCallback(n,a);o&&t.bindEvent(a.trigger,o)})})},r.prototype.clearEvents=function(){var t=this;(0,h.each)(this.steps,function(i,n){(0,h.each)(i,function(a){var o=t.getActionCallback(n,a);o&&t.offEvent(a.trigger,o)})})},r.prototype.initContext=function(){var t=this.view,i=new Ey(t);this.context=i;var n=this.steps;(0,h.each)(n,function(a){(0,h.each)(a,function(o){if((0,h.isFunction)(o.action))o.actionObject={action:fy(o.action,i),methodName:"execute"};else if((0,h.isString)(o.action))o.actionObject=pu(o.action,i,o.arg);else if((0,h.isArray)(o.action)){var s=o.action,l=(0,h.isArray)(o.arg)?o.arg:[o.arg];o.actionObject=[],(0,h.each)(s,function(u,c){o.actionObject.push(pu(u,i,l[c]))})}})})},r.prototype.isAllowStep=function(t){var i=this.currentStepName,n=this.steps;if(i===t||t===Ne.SHOW_ENABLE)return!0;if(t===Ne.PROCESSING)return i===Ne.START;if(t===Ne.START)return i!==Ne.PROCESSING;if(t===Ne.END)return i===Ne.PROCESSING||i===Ne.START;if(t===Ne.ROLLBACK){if(n[Ne.END])return i===Ne.END;if(i===Ne.START)return!0}return!1},r.prototype.isAllowExecute=function(t,i){if(this.isAllowStep(t)){var n=this.getKey(t,i);return i.once&&this.emitCaches[n]?!1:i.isEnable?i.isEnable(this.context):!0}return!1},r.prototype.enterStep=function(t){this.currentStepName=t,this.emitCaches={}},r.prototype.afterExecute=function(t,i){t!==Ne.SHOW_ENABLE&&this.currentStepName!==t&&this.enterStep(t);var n=this.getKey(t,i);this.emitCaches[n]=!0},r.prototype.getKey=function(t,i){return t+i.trigger+i.action},r.prototype.getActionCallback=function(t,i){var n=this,a=this.context,o=this.callbackCaches,s=i.actionObject;if(i.action&&s){var l=this.getKey(t,i);if(!o[l]){var u=function(c){a.event=c,n.isAllowExecute(t,i)?((0,h.isArray)(s)?(0,h.each)(s,function(f){a.event=c,yu(f)}):(a.event=c,yu(s)),n.afterExecute(t,i),i.callback&&(a.event=c,i.callback(a))):a.event=null};i.debounce?o[l]=(0,h.debounce)(u,i.debounce.wait,i.debounce.immediate):i.throttle?o[l]=(0,h.throttle)(u,i.throttle.wait,{leading:i.throttle.leading,trailing:i.throttle.trailing}):o[l]=u}return o[l]}return null},r.prototype.bindEvent=function(t,i){var n=t.split(":");n[0]==="window"?window.addEventListener(n[1],i):n[0]==="document"?document.addEventListener(n[1],i):this.view.on(t,i)},r.prototype.offEvent=function(t,i){var n=t.split(":");n[0]==="window"?window.removeEventListener(n[1],i):n[0]==="document"?document.removeEventListener(n[1],i):this.view.off(t,i)},r}(Ly),Oy=Iy,mu={};function Py(e){return mu[(0,h.lowerCase)(e)]}function Ot(e,r){mu[(0,h.lowerCase)(e)]=r}function ky(e,r,t){var i=Py(e);if(!i)return null;if((0,h.isPlainObject)(i)){var n=(0,h.mix)((0,h.clone)(i),t);return new Oy(r,n)}else{var a=i;return new a(r,t)}}function Dy(e){return{title:{autoRotate:!0,position:"center",spacing:e.axisTitleSpacing,style:{fill:e.axisTitleTextFillColor,fontSize:e.axisTitleTextFontSize,lineHeight:e.axisTitleTextLineHeight,textBaseline:"middle",fontFamily:e.fontFamily},iconStyle:{fill:e.axisDescriptionIconFillColor}},label:{autoRotate:!1,autoEllipsis:!1,autoHide:{type:"equidistance",cfg:{minGap:6}},offset:e.axisLabelOffset,style:{fill:e.axisLabelFillColor,fontSize:e.axisLabelFontSize,lineHeight:e.axisLabelLineHeight,fontFamily:e.fontFamily}},line:{style:{lineWidth:e.axisLineBorder,stroke:e.axisLineBorderColor}},grid:{line:{type:"line",style:{stroke:e.axisGridBorderColor,lineWidth:e.axisGridBorder,lineDash:e.axisGridLineDash}},alignTick:!0,animate:!0},tickLine:{style:{lineWidth:e.axisTickLineBorder,stroke:e.axisTickLineBorderColor},alignTick:!0,length:e.axisTickLineLength},subTickLine:null,animate:!0}}function By(e){return{title:null,marker:{symbol:"circle",spacing:e.legendMarkerSpacing,style:{r:e.legendCircleMarkerSize,fill:e.legendMarkerColor}},itemName:{spacing:5,style:{fill:e.legendItemNameFillColor,fontFamily:e.fontFamily,fontSize:e.legendItemNameFontSize,lineHeight:e.legendItemNameLineHeight,fontWeight:e.legendItemNameFontWeight,textAlign:"start",textBaseline:"middle"}},itemStates:{active:{nameStyle:{opacity:.8}},unchecked:{nameStyle:{fill:"#D8D8D8"},markerStyle:{fill:"#D8D8D8",stroke:"#D8D8D8"}},inactive:{nameStyle:{fill:"#D8D8D8"},markerStyle:{opacity:.2}}},flipPage:!0,pageNavigator:{marker:{style:{size:e.legendPageNavigatorMarkerSize,inactiveFill:e.legendPageNavigatorMarkerInactiveFillColor,inactiveOpacity:e.legendPageNavigatorMarkerInactiveFillOpacity,fill:e.legendPageNavigatorMarkerFillColor,opacity:e.legendPageNavigatorMarkerFillOpacity}},text:{style:{fill:e.legendPageNavigatorTextFillColor,fontSize:e.legendPageNavigatorTextFontSize}}},animate:!1,maxItemWidth:200,itemSpacing:e.legendItemSpacing,itemMarginBottom:e.legendItemMarginBottom,padding:e.legendPadding}}function xu(e){var r,t={point:{default:{fill:e.pointFillColor,r:e.pointSize,stroke:e.pointBorderColor,lineWidth:e.pointBorder,fillOpacity:e.pointFillOpacity},active:{stroke:e.pointActiveBorderColor,lineWidth:e.pointActiveBorder},selected:{stroke:e.pointSelectedBorderColor,lineWidth:e.pointSelectedBorder},inactive:{fillOpacity:e.pointInactiveFillOpacity,strokeOpacity:e.pointInactiveBorderOpacity}},hollowPoint:{default:{fill:e.hollowPointFillColor,lineWidth:e.hollowPointBorder,stroke:e.hollowPointBorderColor,strokeOpacity:e.hollowPointBorderOpacity,r:e.hollowPointSize},active:{stroke:e.hollowPointActiveBorderColor,strokeOpacity:e.hollowPointActiveBorderOpacity},selected:{lineWidth:e.hollowPointSelectedBorder,stroke:e.hollowPointSelectedBorderColor,strokeOpacity:e.hollowPointSelectedBorderOpacity},inactive:{strokeOpacity:e.hollowPointInactiveBorderOpacity}},area:{default:{fill:e.areaFillColor,fillOpacity:e.areaFillOpacity,stroke:null},active:{fillOpacity:e.areaActiveFillOpacity},selected:{fillOpacity:e.areaSelectedFillOpacity},inactive:{fillOpacity:e.areaInactiveFillOpacity}},hollowArea:{default:{fill:null,stroke:e.hollowAreaBorderColor,lineWidth:e.hollowAreaBorder,strokeOpacity:e.hollowAreaBorderOpacity},active:{fill:null,lineWidth:e.hollowAreaActiveBorder},selected:{fill:null,lineWidth:e.hollowAreaSelectedBorder},inactive:{strokeOpacity:e.hollowAreaInactiveBorderOpacity}},interval:{default:{fill:e.intervalFillColor,fillOpacity:e.intervalFillOpacity},active:{stroke:e.intervalActiveBorderColor,lineWidth:e.intervalActiveBorder},selected:{stroke:e.intervalSelectedBorderColor,lineWidth:e.intervalSelectedBorder},inactive:{fillOpacity:e.intervalInactiveFillOpacity,strokeOpacity:e.intervalInactiveBorderOpacity}},hollowInterval:{default:{fill:e.hollowIntervalFillColor,stroke:e.hollowIntervalBorderColor,lineWidth:e.hollowIntervalBorder,strokeOpacity:e.hollowIntervalBorderOpacity},active:{stroke:e.hollowIntervalActiveBorderColor,lineWidth:e.hollowIntervalActiveBorder,strokeOpacity:e.hollowIntervalActiveBorderOpacity},selected:{stroke:e.hollowIntervalSelectedBorderColor,lineWidth:e.hollowIntervalSelectedBorder,strokeOpacity:e.hollowIntervalSelectedBorderOpacity},inactive:{stroke:e.hollowIntervalInactiveBorderColor,lineWidth:e.hollowIntervalInactiveBorder,strokeOpacity:e.hollowIntervalInactiveBorderOpacity}},line:{default:{stroke:e.lineBorderColor,lineWidth:e.lineBorder,strokeOpacity:e.lineBorderOpacity,fill:null,lineAppendWidth:10,lineCap:"round",lineJoin:"round"},active:{lineWidth:e.lineActiveBorder},selected:{lineWidth:e.lineSelectedBorder},inactive:{strokeOpacity:e.lineInactiveBorderOpacity}}},i=Dy(e),n=By(e);return{background:e.backgroundColor,defaultColor:e.brandColor,subColor:e.subColor,semanticRed:e.paletteSemanticRed,semanticGreen:e.paletteSemanticGreen,padding:"auto",fontFamily:e.fontFamily,columnWidthRatio:1/2,maxColumnWidth:null,minColumnWidth:null,roseWidthRatio:.9999999,multiplePieWidthRatio:1/1.3,colors10:e.paletteQualitative10,colors20:e.paletteQualitative20,sequenceColors:e.paletteSequence,shapes:{point:["hollow-circle","hollow-square","hollow-bowtie","hollow-diamond","hollow-hexagon","hollow-triangle","hollow-triangle-down","circle","square","bowtie","diamond","hexagon","triangle","triangle-down","cross","tick","plus","hyphen","line"],line:["line","dash","dot","smooth"],area:["area","smooth","line","smooth-line"],interval:["rect","hollow-rect","line","tick"]},sizes:[1,10],geometries:{interval:{rect:{default:{style:t.interval.default},active:{style:t.interval.active},inactive:{style:t.interval.inactive},selected:{style:function(a){var o=a.geometry.coordinate;if(o.isPolar&&o.isTransposed){var s=Xi(a.getModel(),o),l=s.startAngle,u=s.endAngle,c=(l+u)/2,f=7.5,v=f*Math.cos(c),d=f*Math.sin(c);return{matrix:ie.vs(null,[["t",v,d]])}}return t.interval.selected}}},"hollow-rect":{default:{style:t.hollowInterval.default},active:{style:t.hollowInterval.active},inactive:{style:t.hollowInterval.inactive},selected:{style:t.hollowInterval.selected}},line:{default:{style:t.hollowInterval.default},active:{style:t.hollowInterval.active},inactive:{style:t.hollowInterval.inactive},selected:{style:t.hollowInterval.selected}},tick:{default:{style:t.hollowInterval.default},active:{style:t.hollowInterval.active},inactive:{style:t.hollowInterval.inactive},selected:{style:t.hollowInterval.selected}},funnel:{default:{style:t.interval.default},active:{style:t.interval.active},inactive:{style:t.interval.inactive},selected:{style:t.interval.selected}},pyramid:{default:{style:t.interval.default},active:{style:t.interval.active},inactive:{style:t.interval.inactive},selected:{style:t.interval.selected}}},line:{line:{default:{style:t.line.default},active:{style:t.line.active},inactive:{style:t.line.inactive},selected:{style:t.line.selected}},dot:{default:{style:(0,g.__assign)((0,g.__assign)({},t.line.default),{lineCap:null,lineDash:[1,1]})},active:{style:(0,g.__assign)((0,g.__assign)({},t.line.active),{lineCap:null,lineDash:[1,1]})},inactive:{style:(0,g.__assign)((0,g.__assign)({},t.line.inactive),{lineCap:null,lineDash:[1,1]})},selected:{style:(0,g.__assign)((0,g.__assign)({},t.line.selected),{lineCap:null,lineDash:[1,1]})}},dash:{default:{style:(0,g.__assign)((0,g.__assign)({},t.line.default),{lineCap:null,lineDash:[5.5,1]})},active:{style:(0,g.__assign)((0,g.__assign)({},t.line.active),{lineCap:null,lineDash:[5.5,1]})},inactive:{style:(0,g.__assign)((0,g.__assign)({},t.line.inactive),{lineCap:null,lineDash:[5.5,1]})},selected:{style:(0,g.__assign)((0,g.__assign)({},t.line.selected),{lineCap:null,lineDash:[5.5,1]})}},smooth:{default:{style:t.line.default},active:{style:t.line.active},inactive:{style:t.line.inactive},selected:{style:t.line.selected}},hv:{default:{style:t.line.default},active:{style:t.line.active},inactive:{style:t.line.inactive},selected:{style:t.line.selected}},vh:{default:{style:t.line.default},active:{style:t.line.active},inactive:{style:t.line.inactive},selected:{style:t.line.selected}},hvh:{default:{style:t.line.default},active:{style:t.line.active},inactive:{style:t.line.inactive},selected:{style:t.line.selected}},vhv:{default:{style:t.line.default},active:{style:t.line.active},inactive:{style:t.line.inactive},selected:{style:t.line.selected}}},polygon:{polygon:{default:{style:t.interval.default},active:{style:t.interval.active},inactive:{style:t.interval.inactive},selected:{style:t.interval.selected}}},point:{circle:{default:{style:t.point.default},active:{style:t.point.active},inactive:{style:t.point.inactive},selected:{style:t.point.selected}},square:{default:{style:t.point.default},active:{style:t.point.active},inactive:{style:t.point.inactive},selected:{style:t.point.selected}},bowtie:{default:{style:t.point.default},active:{style:t.point.active},inactive:{style:t.point.inactive},selected:{style:t.point.selected}},diamond:{default:{style:t.point.default},active:{style:t.point.active},inactive:{style:t.point.inactive},selected:{style:t.point.selected}},hexagon:{default:{style:t.point.default},active:{style:t.point.active},inactive:{style:t.point.inactive},selected:{style:t.point.selected}},triangle:{default:{style:t.point.default},active:{style:t.point.active},inactive:{style:t.point.inactive},selected:{style:t.point.selected}},"triangle-down":{default:{style:t.point.default},active:{style:t.point.active},inactive:{style:t.point.inactive},selected:{style:t.point.selected}},"hollow-circle":{default:{style:t.hollowPoint.default},active:{style:t.hollowPoint.active},inactive:{style:t.hollowPoint.inactive},selected:{style:t.hollowPoint.selected}},"hollow-square":{default:{style:t.hollowPoint.default},active:{style:t.hollowPoint.active},inactive:{style:t.hollowPoint.inactive},selected:{style:t.hollowPoint.selected}},"hollow-bowtie":{default:{style:t.hollowPoint.default},active:{style:t.hollowPoint.active},inactive:{style:t.hollowPoint.inactive},selected:{style:t.hollowPoint.selected}},"hollow-diamond":{default:{style:t.hollowPoint.default},active:{style:t.hollowPoint.active},inactive:{style:t.hollowPoint.inactive},selected:{style:t.hollowPoint.selected}},"hollow-hexagon":{default:{style:t.hollowPoint.default},active:{style:t.hollowPoint.active},inactive:{style:t.hollowPoint.inactive},selected:{style:t.hollowPoint.selected}},"hollow-triangle":{default:{style:t.hollowPoint.default},active:{style:t.hollowPoint.active},inactive:{style:t.hollowPoint.inactive},selected:{style:t.hollowPoint.selected}},"hollow-triangle-down":{default:{style:t.hollowPoint.default},active:{style:t.hollowPoint.active},inactive:{style:t.hollowPoint.inactive},selected:{style:t.hollowPoint.selected}},cross:{default:{style:t.hollowPoint.default},active:{style:t.hollowPoint.active},inactive:{style:t.hollowPoint.inactive},selected:{style:t.hollowPoint.selected}},tick:{default:{style:t.hollowPoint.default},active:{style:t.hollowPoint.active},inactive:{style:t.hollowPoint.inactive},selected:{style:t.hollowPoint.selected}},plus:{default:{style:t.hollowPoint.default},active:{style:t.hollowPoint.active},inactive:{style:t.hollowPoint.inactive},selected:{style:t.hollowPoint.selected}},hyphen:{default:{style:t.hollowPoint.default},active:{style:t.hollowPoint.active},inactive:{style:t.hollowPoint.inactive},selected:{style:t.hollowPoint.selected}},line:{default:{style:t.hollowPoint.default},active:{style:t.hollowPoint.active},inactive:{style:t.hollowPoint.inactive},selected:{style:t.hollowPoint.selected}}},area:{area:{default:{style:t.area.default},active:{style:t.area.active},inactive:{style:t.area.inactive},selected:{style:t.area.selected}},smooth:{default:{style:t.area.default},active:{style:t.area.active},inactive:{style:t.area.inactive},selected:{style:t.area.selected}},line:{default:{style:t.hollowArea.default},active:{style:t.hollowArea.active},inactive:{style:t.hollowArea.inactive},selected:{style:t.hollowArea.selected}},"smooth-line":{default:{style:t.hollowArea.default},active:{style:t.hollowArea.active},inactive:{style:t.hollowArea.inactive},selected:{style:t.hollowArea.selected}}},schema:{candle:{default:{style:t.hollowInterval.default},active:{style:t.hollowInterval.active},inactive:{style:t.hollowInterval.inactive},selected:{style:t.hollowInterval.selected}},box:{default:{style:t.hollowInterval.default},active:{style:t.hollowInterval.active},inactive:{style:t.hollowInterval.inactive},selected:{style:t.hollowInterval.selected}}},edge:{line:{default:{style:t.line.default},active:{style:t.line.active},inactive:{style:t.line.inactive},selected:{style:t.line.selected}},vhv:{default:{style:t.line.default},active:{style:t.line.active},inactive:{style:t.line.inactive},selected:{style:t.line.selected}},smooth:{default:{style:t.line.default},active:{style:t.line.active},inactive:{style:t.line.inactive},selected:{style:t.line.selected}},arc:{default:{style:t.line.default},active:{style:t.line.active},inactive:{style:t.line.inactive},selected:{style:t.line.selected}}},violin:{violin:{default:{style:t.line.default},active:{style:t.line.active},inactive:{style:t.line.inactive},selected:{style:t.line.selected}},smooth:{default:{style:t.line.default},active:{style:t.line.active},inactive:{style:t.line.inactive},selected:{style:t.line.selected}},hollow:{default:{style:t.hollowArea.default},active:{style:t.hollowArea.active},inactive:{style:t.hollowArea.inactive},selected:{style:t.hollowArea.selected}},"hollow-smooth":{default:{style:t.hollowArea.default},active:{style:t.hollowArea.active},inactive:{style:t.hollowArea.inactive},selected:{style:t.hollowArea.selected}}}},components:{axis:{common:i,top:{position:"top",grid:null,title:null,verticalLimitLength:1/2},bottom:{position:"bottom",grid:null,title:null,verticalLimitLength:1/2},left:{position:"left",title:null,line:null,tickLine:null,verticalLimitLength:1/3},right:{position:"right",title:null,line:null,tickLine:null,verticalLimitLength:1/3},circle:{title:null,grid:(0,h.deepMix)({},i.grid,{line:{type:"line"}})},radius:{title:null,grid:(0,h.deepMix)({},i.grid,{line:{type:"circle"}})}},legend:{common:n,right:{layout:"vertical",padding:e.legendVerticalPadding},left:{layout:"vertical",padding:e.legendVerticalPadding},top:{layout:"horizontal",padding:e.legendHorizontalPadding},bottom:{layout:"horizontal",padding:e.legendHorizontalPadding},continuous:{title:null,background:null,track:{},rail:{type:"color",size:e.sliderRailHeight,defaultLength:e.sliderRailWidth,style:{fill:e.sliderRailFillColor,stroke:e.sliderRailBorderColor,lineWidth:e.sliderRailBorder}},label:{align:"rail",spacing:4,formatter:null,style:{fill:e.sliderLabelTextFillColor,fontSize:e.sliderLabelTextFontSize,lineHeight:e.sliderLabelTextLineHeight,textBaseline:"middle",fontFamily:e.fontFamily}},handler:{size:e.sliderHandlerWidth,style:{fill:e.sliderHandlerFillColor,stroke:e.sliderHandlerBorderColor}},slidable:!0,padding:n.padding}},tooltip:{showContent:!0,follow:!0,showCrosshairs:!1,showMarkers:!0,shared:!1,enterable:!1,position:"auto",marker:{symbol:"circle",stroke:"#fff",shadowBlur:10,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"rgba(0,0,0,0.09)",lineWidth:2,r:4},crosshairs:{line:{style:{stroke:e.tooltipCrosshairsBorderColor,lineWidth:e.tooltipCrosshairsBorder}},text:null,textBackground:{padding:2,style:{fill:"rgba(0, 0, 0, 0.25)",lineWidth:0,stroke:null}},follow:!1},domStyles:(r={},r["".concat(sr)]={position:"absolute",visibility:"hidden",zIndex:8,transition:"left 0.4s cubic-bezier(0.23, 1, 0.32, 1) 0s, top 0.4s cubic-bezier(0.23, 1, 0.32, 1) 0s",backgroundColor:e.tooltipContainerFillColor,opacity:e.tooltipContainerFillOpacity,boxShadow:e.tooltipContainerShadow,borderRadius:"".concat(e.tooltipContainerBorderRadius,"px"),color:e.tooltipTextFillColor,fontSize:"".concat(e.tooltipTextFontSize,"px"),fontFamily:e.fontFamily,lineHeight:"".concat(e.tooltipTextLineHeight,"px"),padding:"0 12px 0 12px"},r["".concat(lr)]={marginBottom:"12px",marginTop:"12px"},r["".concat(Yi)]={margin:0,listStyleType:"none",padding:0},r["".concat(kn)]={listStyleType:"none",padding:0,marginBottom:"12px",marginTop:"12px",marginLeft:0,marginRight:0},r["".concat(Dn)]={width:"8px",height:"8px",borderRadius:"50%",display:"inline-block",marginRight:"8px"},r["".concat(Bn)]={display:"inline-block",float:"right",marginLeft:"30px"},r)},annotation:{arc:{style:{stroke:e.annotationArcBorderColor,lineWidth:e.annotationArcBorder},animate:!0},line:{style:{stroke:e.annotationLineBorderColor,lineDash:e.annotationLineDash,lineWidth:e.annotationLineBorder},text:{position:"start",autoRotate:!0,style:{fill:e.annotationTextFillColor,stroke:e.annotationTextBorderColor,lineWidth:e.annotationTextBorder,fontSize:e.annotationTextFontSize,textAlign:"start",fontFamily:e.fontFamily,textBaseline:"bottom"}},animate:!0},text:{style:{fill:e.annotationTextFillColor,stroke:e.annotationTextBorderColor,lineWidth:e.annotationTextBorder,fontSize:e.annotationTextFontSize,textBaseline:"middle",textAlign:"start",fontFamily:e.fontFamily},animate:!0},region:{top:!1,style:{lineWidth:e.annotationRegionBorder,stroke:e.annotationRegionBorderColor,fill:e.annotationRegionFillColor,fillOpacity:e.annotationRegionFillOpacity},animate:!0},image:{top:!1,animate:!0},dataMarker:{top:!0,point:{style:{r:3,stroke:e.brandColor,lineWidth:2}},line:{style:{stroke:e.annotationLineBorderColor,lineWidth:e.annotationLineBorder},length:e.annotationDataMarkerLineLength},text:{style:{textAlign:"start",fill:e.annotationTextFillColor,stroke:e.annotationTextBorderColor,lineWidth:e.annotationTextBorder,fontSize:e.annotationTextFontSize,fontFamily:e.fontFamily}},direction:"upward",autoAdjust:!0,animate:!0},dataRegion:{style:{region:{fill:e.annotationRegionFillColor,fillOpacity:e.annotationRegionFillOpacity},text:{textAlign:"center",textBaseline:"bottom",fill:e.annotationTextFillColor,stroke:e.annotationTextBorderColor,lineWidth:e.annotationTextBorder,fontSize:e.annotationTextFontSize,fontFamily:e.fontFamily}},animate:!0}},slider:{common:{padding:[8,8,8,8],backgroundStyle:{fill:e.cSliderBackgroundFillColor,opacity:e.cSliderBackgroundFillOpacity},foregroundStyle:{fill:e.cSliderForegroundFillColor,opacity:e.cSliderForegroundFillOpacity},handlerStyle:{width:e.cSliderHandlerWidth,height:e.cSliderHandlerHeight,fill:e.cSliderHandlerFillColor,opacity:e.cSliderHandlerFillOpacity,stroke:e.cSliderHandlerBorderColor,lineWidth:e.cSliderHandlerBorder,radius:e.cSliderHandlerBorderRadius,highLightFill:e.cSliderHandlerHighlightFillColor},textStyle:{fill:e.cSliderTextFillColor,opacity:e.cSliderTextFillOpacity,fontSize:e.cSliderTextFontSize,lineHeight:e.cSliderTextLineHeight,fontWeight:e.cSliderTextFontWeight,stroke:e.cSliderTextBorderColor,lineWidth:e.cSliderTextBorder}}},scrollbar:{common:{padding:[8,8,8,8]},default:{style:{trackColor:e.scrollbarTrackFillColor,thumbColor:e.scrollbarThumbFillColor}},hover:{style:{thumbColor:e.scrollbarThumbHighlightFillColor}}}},labels:{offset:12,style:{fill:e.labelFillColor,fontSize:e.labelFontSize,fontFamily:e.fontFamily,stroke:e.labelBorderColor,lineWidth:e.labelBorder},fillColorDark:e.labelFillColorDark,fillColorLight:e.labelFillColorLight,autoRotate:!0},innerLabels:{style:{fill:e.innerLabelFillColor,fontSize:e.innerLabelFontSize,fontFamily:e.fontFamily,stroke:e.innerLabelBorderColor,lineWidth:e.innerLabelBorder},autoRotate:!0},overflowLabels:{style:{fill:e.overflowLabelFillColor,fontSize:e.overflowLabelFontSize,fontFamily:e.fontFamily,stroke:e.overflowLabelBorderColor,lineWidth:e.overflowLabelBorder}},pieLabels:{labelHeight:14,offset:10,labelLine:{style:{lineWidth:e.labelLineBorder}},autoRotate:!0}}}var Kt={100:"#000",95:"#0D0D0D",85:"#262626",65:"#595959",45:"#8C8C8C",25:"#BFBFBF",15:"#D9D9D9",6:"#F0F0F0"},vi={100:"#FFFFFF",95:"#F2F2F2",85:"#D9D9D9",65:"#A6A6A6",45:"#737373",25:"#404040",15:"#262626",6:"#0F0F0F"},Ry=["#5B8FF9","#5AD8A6","#5D7092","#F6BD16","#6F5EF9","#6DC8EC","#945FB9","#FF9845","#1E9493","#FF99C3"],Ny=["#5B8FF9","#CDDDFD","#5AD8A6","#CDF3E4","#5D7092","#CED4DE","#F6BD16","#FCEBB9","#6F5EF9","#D3CEFD","#6DC8EC","#D3EEF9","#945FB9","#DECFEA","#FF9845","#FFE0C7","#1E9493","#BBDEDE","#FF99C3","#FFE0ED"],zy=["#B8E1FF","#9AC5FF","#7DAAFF","#5B8FF9","#3D76DD","#085EC0","#0047A5","#00318A","#001D70"],_u=function(e){e===void 0&&(e={});var r=e.paletteQualitative10,t=r===void 0?Ry:r,i=e.paletteQualitative20,n=i===void 0?Ny:i,a=e.brandColor,o=a===void 0?t[0]:a,s={backgroundColor:"transparent",brandColor:o,subColor:"rgba(0,0,0,0.05)",paletteQualitative10:t,paletteQualitative20:n,paletteSemanticRed:"#F4664A",paletteSemanticGreen:"#30BF78",paletteSemanticYellow:"#FAAD14",paletteSequence:zy,fontFamily:`"Segoe UI", Roboto, "Helvetica Neue", Arial, - "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", - "Noto Color Emoji"`,axisLineBorderColor:Kt[25],axisLineBorder:1,axisLineDash:null,axisTitleTextFillColor:Kt[65],axisTitleTextFontSize:12,axisTitleTextLineHeight:12,axisTitleTextFontWeight:"normal",axisTitleSpacing:12,axisDescriptionIconFillColor:vi[85],axisTickLineBorderColor:Kt[25],axisTickLineLength:4,axisTickLineBorder:1,axisSubTickLineBorderColor:Kt[15],axisSubTickLineLength:2,axisSubTickLineBorder:1,axisLabelFillColor:Kt[45],axisLabelFontSize:12,axisLabelLineHeight:12,axisLabelFontWeight:"normal",axisLabelOffset:8,axisGridBorderColor:Kt[15],axisGridBorder:1,axisGridLineDash:null,legendTitleTextFillColor:Kt[45],legendTitleTextFontSize:12,legendTitleTextLineHeight:21,legendTitleTextFontWeight:"normal",legendMarkerColor:o,legendMarkerSpacing:8,legendMarkerSize:4,legendCircleMarkerSize:4,legendSquareMarkerSize:4,legendLineMarkerSize:5,legendItemNameFillColor:Kt[65],legendItemNameFontSize:12,legendItemNameLineHeight:12,legendItemNameFontWeight:"normal",legendItemSpacing:24,legendItemMarginBottom:12,legendPadding:[8,8,8,8],legendHorizontalPadding:[8,0,8,0],legendVerticalPadding:[0,8,0,8],legendPageNavigatorMarkerSize:12,legendPageNavigatorMarkerInactiveFillColor:Kt[100],legendPageNavigatorMarkerInactiveFillOpacity:.45,legendPageNavigatorMarkerFillColor:Kt[100],legendPageNavigatorMarkerFillOpacity:1,legendPageNavigatorTextFillColor:Kt[45],legendPageNavigatorTextFontSize:12,sliderRailFillColor:Kt[15],sliderRailBorder:0,sliderRailBorderColor:null,sliderRailWidth:100,sliderRailHeight:12,sliderLabelTextFillColor:Kt[45],sliderLabelTextFontSize:12,sliderLabelTextLineHeight:12,sliderLabelTextFontWeight:"normal",sliderHandlerFillColor:Kt[6],sliderHandlerWidth:10,sliderHandlerHeight:14,sliderHandlerBorder:1,sliderHandlerBorderColor:Kt[25],annotationArcBorderColor:Kt[15],annotationArcBorder:1,annotationLineBorderColor:Kt[25],annotationLineBorder:1,annotationLineDash:null,annotationTextFillColor:Kt[65],annotationTextFontSize:12,annotationTextLineHeight:12,annotationTextFontWeight:"normal",annotationTextBorderColor:null,annotationTextBorder:0,annotationRegionFillColor:Kt[100],annotationRegionFillOpacity:.06,annotationRegionBorder:0,annotationRegionBorderColor:null,annotationDataMarkerLineLength:16,tooltipCrosshairsBorderColor:Kt[25],tooltipCrosshairsBorder:1,tooltipCrosshairsLineDash:null,tooltipContainerFillColor:"rgb(255, 255, 255)",tooltipContainerFillOpacity:.95,tooltipContainerShadow:"0px 0px 10px #aeaeae",tooltipContainerBorderRadius:3,tooltipTextFillColor:Kt[65],tooltipTextFontSize:12,tooltipTextLineHeight:12,tooltipTextFontWeight:"bold",labelFillColor:Kt[65],labelFillColorDark:"#2c3542",labelFillColorLight:"#ffffff",labelFontSize:12,labelLineHeight:12,labelFontWeight:"normal",labelBorderColor:null,labelBorder:0,innerLabelFillColor:vi[100],innerLabelFontSize:12,innerLabelLineHeight:12,innerLabelFontWeight:"normal",innerLabelBorderColor:null,innerLabelBorder:0,overflowLabelFillColor:Kt[65],overflowLabelFontSize:12,overflowLabelLineHeight:12,overflowLabelFontWeight:"normal",overflowLabelBorderColor:vi[100],overflowLabelBorder:1,labelLineBorder:1,labelLineBorderColor:Kt[25],cSliderRailHieght:16,cSliderBackgroundFillColor:"#416180",cSliderBackgroundFillOpacity:.05,cSliderForegroundFillColor:"#5B8FF9",cSliderForegroundFillOpacity:.15,cSliderHandlerHeight:24,cSliderHandlerWidth:10,cSliderHandlerFillColor:"#F7F7F7",cSliderHandlerFillOpacity:1,cSliderHandlerHighlightFillColor:"#FFF",cSliderHandlerBorderColor:"#BFBFBF",cSliderHandlerBorder:1,cSliderHandlerBorderRadius:2,cSliderTextFillColor:"#000",cSliderTextFillOpacity:.45,cSliderTextFontSize:12,cSliderTextLineHeight:12,cSliderTextFontWeight:"normal",cSliderTextBorderColor:null,cSliderTextBorder:0,scrollbarTrackFillColor:"rgba(0,0,0,0)",scrollbarThumbFillColor:"rgba(0,0,0,0.15)",scrollbarThumbHighlightFillColor:"rgba(0,0,0,0.2)",pointFillColor:o,pointFillOpacity:.95,pointSize:4,pointBorder:1,pointBorderColor:vi[100],pointBorderOpacity:1,pointActiveBorderColor:Kt[100],pointSelectedBorder:2,pointSelectedBorderColor:Kt[100],pointInactiveFillOpacity:.3,pointInactiveBorderOpacity:.3,hollowPointSize:4,hollowPointBorder:1,hollowPointBorderColor:o,hollowPointBorderOpacity:.95,hollowPointFillColor:vi[100],hollowPointActiveBorder:1,hollowPointActiveBorderColor:Kt[100],hollowPointActiveBorderOpacity:1,hollowPointSelectedBorder:2,hollowPointSelectedBorderColor:Kt[100],hollowPointSelectedBorderOpacity:1,hollowPointInactiveBorderOpacity:.3,lineBorder:2,lineBorderColor:o,lineBorderOpacity:1,lineActiveBorder:3,lineSelectedBorder:3,lineInactiveBorderOpacity:.3,areaFillColor:o,areaFillOpacity:.25,areaActiveFillColor:o,areaActiveFillOpacity:.5,areaSelectedFillColor:o,areaSelectedFillOpacity:.5,areaInactiveFillOpacity:.3,hollowAreaBorderColor:o,hollowAreaBorder:2,hollowAreaBorderOpacity:1,hollowAreaActiveBorder:3,hollowAreaActiveBorderColor:Kt[100],hollowAreaSelectedBorder:3,hollowAreaSelectedBorderColor:Kt[100],hollowAreaInactiveBorderOpacity:.3,intervalFillColor:o,intervalFillOpacity:.95,intervalActiveBorder:1,intervalActiveBorderColor:Kt[100],intervalActiveBorderOpacity:1,intervalSelectedBorder:2,intervalSelectedBorderColor:Kt[100],intervalSelectedBorderOpacity:1,intervalInactiveBorderOpacity:.3,intervalInactiveFillOpacity:.3,hollowIntervalBorder:2,hollowIntervalBorderColor:o,hollowIntervalBorderOpacity:1,hollowIntervalFillColor:vi[100],hollowIntervalActiveBorder:2,hollowIntervalActiveBorderColor:Kt[100],hollowIntervalSelectedBorder:3,hollowIntervalSelectedBorderColor:Kt[100],hollowIntervalSelectedBorderOpacity:1,hollowIntervalInactiveBorderOpacity:.3};return(0,g.__assign)((0,g.__assign)({},s),e)},RL=_u();function Zn(e){var r=e.styleSheet,t=r===void 0?{}:r,i=(0,g.__rest)(e,["styleSheet"]),n=_u(t);return(0,h.deepMix)({},xu(n),i)}var Vy=Zn({}),bo={default:Vy};function $i(e){return(0,h.get)(bo,(0,h.lowerCase)(e),bo.default)}function Gy(e,r){bo[(0,h.lowerCase)(e)]=Zn(r)}function wu(e,r,t){var i=t.translate(e),n=t.translate(r);return(0,h.isNumberEqual)(i,n)}function Wy(e,r){var t=r.coordinate,i=r.getXScale(),n=i.range,a=n[n.length-1],o=n[0],s=t.invert(e),l=s.x;return t.isPolar&&l>(1+a)/2&&(l=o),i.translate(i.invert(l))}function bu(e,r,t){var i=t.coordinate,n=t.getYScale(),a=n.field,o=i.invert(r),s=n.invert(o.y),l=(0,h.find)(e,function(u){var c=u[rt];return c[a][0]<=s&&c[a][1]>=s});return l||e[e.length-1]}var Hy=(0,h.memoize)(function(e){if(e.isCategory)return 1;for(var r=e.values,t=r.length,i=e.translate(r[0]),n=i,a=0;an&&(n=s)}return(n-i)/(t-1)});function Yy(e,r,t){var i=r.getAttribute("position"),n=i.getFields(),a=r.scales,o=(0,h.isFunction)(t)||!t?n[0]:t,s=a[o],l=s?s.getText(e[o]):e[o]||o;return(0,h.isFunction)(t)?t(l,e):l}function Xy(e){var r=(0,h.values)(e.attributes);return(0,h.filter)(r,function(t){return(0,h.contains)(bt,t.type)})}function Su(e){var r,t,i=Xy(e),n;try{for(var a=(0,g.__values)(i),o=a.next();!o.done;o=a.next()){var s=o.value,l=s.getScale(s.type);if(l&&l.isLinear){var u=(0,h.get)(e.scaleDefs,l.field),c=Xl(l,u,s.type,e.type);if(c!=="cat"){n=l;break}}}}catch(d){r={error:d}}finally{try{o&&!o.done&&(t=a.return)&&t.call(a)}finally{if(r)throw r.error}}var f=e.getXScale(),v=e.getYScale();return n||v||f}function Uy(e,r){var t=r.field,i=e[t];if((0,h.isArray)(i)){var n=i.map(function(a){return r.getText(a)});return n.join("-")}return r.getText(i)}function jy(e,r){var t,i=r.getGroupScales();if(i.length&&(t=i[0]),t){var n=t.field;return t.getText(e[n])}var a=Su(r);return ji(a)}function Cu(e,r,t){if(r.length===0)return null;var i=t.type,n=t.getXScale(),a=t.getYScale(),o=n.field,s=a.field,l=null;if(i==="heatmap"||i==="point"){for(var u=t.coordinate,c=u.invert(e),f=n.invert(c.x),v=a.invert(c.y),d=Infinity,p=0;p=b)if(F)(0,h.isArray)(l)||(l=[]),l.push(P);else{l=P;break}}(0,h.isArray)(l)&&(l=bu(l,e,t))}else{var I=void 0;if(!n.isLinear&&n.type!=="timeCat"){for(var p=0;pn.translate(A)||bn.max||bMath.abs(n.translate(I[rt][o])-b)&&(w=I)}var Bt=Hy(t.getXScale());return!l&&Math.abs(n.translate(w[rt][o])-b)<=Bt/2&&(l=w),l}function So(e,r,t,i){var n,a;t===void 0&&(t=""),i===void 0&&(i=!1);var o=e[rt],s=Yy(o,r,t),l=r.tooltipOption,u=r.theme.defaultColor,c=[],f,v;function d(P,I){if(i||!(0,h.isNil)(I)&&I!==""){var V={title:s,data:o,mappingData:e,name:P,value:I,color:e.color||u,marker:!0};c.push(V)}}if((0,h.isObject)(l)){var p=l.fields,y=l.callback;if(y){var m=p.map(function(P){return e[rt][P]}),x=y.apply(void 0,(0,g.__spreadArray)([],(0,g.__read)(m),!1)),_=(0,g.__assign)({data:e[rt],mappingData:e,title:s,color:e.color||u,marker:!0},x);c.push(_)}else{var w=r.scales;try{for(var b=(0,g.__values)(p),S=b.next();!S.done;S=b.next()){var C=S.value;if(!(0,h.isNil)(o[C])){var A=w[C];f=ji(A),v=A.getText(o[C]),d(f,v)}}}catch(P){n={error:P}}finally{try{S&&!S.done&&(a=b.return)&&a.call(b)}finally{if(n)throw n.error}}}}else{var F=Su(r);v=Uy(o,F),f=jy(o,r),d(f,v)}return c}function Au(e,r,t,i){var n,a,o=i.showNil,s=[],l=e.dataArray;if(!(0,h.isEmpty)(l)){e.sort(l);try{for(var u=(0,g.__values)(l),c=u.next();!c.done;c=u.next()){var f=c.value,v=Cu(r,f,e);if(v){var d=e.getElementId(v),p=e.elementsMap[d];if(e.type==="heatmap"||p.visible){var y=So(v,e,t,o);y.length&&s.push(y)}}}}catch(m){n={error:m}}finally{try{c&&!c.done&&(a=u.return)&&a.call(u)}finally{if(n)throw n.error}}}return s}function Mu(e,r,t,i){var n=i.showNil,a=[],o=e.container,s=o.getShape(r.x,r.y);if(s&&s.get("visible")&&s.get("origin")){var l=s.get("origin").mappingData,u=So(l,e,t,n);u.length&&a.push(u)}return a}function Co(e,r,t){var i,n,a=[],o=e.geometries,s=t.shared,l=t.title,u=t.reversed;try{for(var c=(0,g.__values)(o),f=c.next();!f.done;f=c.next()){var v=f.value;if(v.visible&&v.tooltipOption!==!1){var d=v.type,p=void 0;["point","edge","polygon"].includes(d)?p=Mu(v,r,l,t):["area","line","path","heatmap"].includes(d)||s!==!1?p=Au(v,r,l,t):p=Mu(v,r,l,t),p.length&&(u&&p.reverse(),a.push(p))}}}catch(y){i={error:y}}finally{try{f&&!f.done&&(n=c.return)&&n.call(c)}finally{if(i)throw i.error}}return a}function Zy(e,r,t){var i,n,a=Co(e,r,t);try{for(var o=(0,g.__values)(e.views),s=o.next();!s.done;s=o.next()){var l=s.value;a=a.concat(Co(l,r,t))}}catch(u){i={error:u}}finally{try{s&&!s.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function qy(e){return!(0,h.isNumber)(e)&&!(0,h.isArray)(e)}function Ao(e){e===void 0&&(e=0);var r=(0,h.isArray)(e)?e:[e];switch(r.length){case 0:r=[0,0,0,0];break;case 1:r=new Array(4).fill(r[0]);break;case 2:r=(0,g.__spreadArray)((0,g.__spreadArray)([],(0,g.__read)(r),!1),(0,g.__read)(r),!1);break;case 3:r=(0,g.__spreadArray)((0,g.__spreadArray)([],(0,g.__read)(r),!1),[r[1]],!1);break;default:r=r.slice(0,4);break}return r}var qn={};function Vr(e,r){qn[e]=r}function NL(e){delete qn[e]}function Ky(){return Object.keys(qn)}function $y(e){return qn[e]}var Qy=function(){function e(r){this.option=this.wrapperOption(r)}return e.prototype.update=function(r){return this.option=this.wrapperOption(r),this},e.prototype.hasAction=function(r){var t=this.option.actions;return(0,h.some)(t,function(i){return i[0]===r})},e.prototype.create=function(r,t){var i=this.option,n=i.type,a=i.cfg,o=n==="theta",s=(0,g.__assign)({start:r,end:t},a),l=Xd(o?"polar":n);return this.coordinate=new l(s),this.coordinate.type=n,o&&(this.hasAction("transpose")||this.transpose()),this.execActions(),this.coordinate},e.prototype.adjust=function(r,t){return this.coordinate.update({start:r,end:t}),this.coordinate.resetMatrix(),this.execActions(["scale","rotate","translate"]),this.coordinate},e.prototype.rotate=function(r){return this.option.actions.push(["rotate",r]),this},e.prototype.reflect=function(r){return this.option.actions.push(["reflect",r]),this},e.prototype.scale=function(r,t){return this.option.actions.push(["scale",r,t]),this},e.prototype.transpose=function(){return this.option.actions.push(["transpose"]),this},e.prototype.getOption=function(){return this.option},e.prototype.getCoordinate=function(){return this.coordinate},e.prototype.wrapperOption=function(r){return(0,g.__assign)({type:"rect",actions:[],cfg:{}},r)},e.prototype.execActions=function(r){var t=this,i=this.option.actions;(0,h.each)(i,function(n){var a,o=(0,g.__read)(n),s=o[0],l=o.slice(1),u=(0,h.isNil)(r)?!0:r.includes(s);u&&(a=t.coordinate)[s].apply(a,(0,g.__spreadArray)([],(0,g.__read)(l),!1))})},e}(),Jy=Qy,t0=function(){function e(r,t,i){this.view=r,this.gEvent=t,this.data=i,this.type=t.type}return e.fromData=function(r,t,i){return new e(r,new St.Event(t,{}),i)},Object.defineProperty(e.prototype,"target",{get:function(){return this.gEvent.target},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"event",{get:function(){return this.gEvent.originalEvent},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"x",{get:function(){return this.gEvent.x},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"y",{get:function(){return this.gEvent.y},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"clientX",{get:function(){return this.gEvent.clientX},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"clientY",{get:function(){return this.gEvent.clientY},enumerable:!1,configurable:!0}),e.prototype.toString=function(){return"[Event (type=".concat(this.type,")]")},e.prototype.clone=function(){return new e(this.view,this.gEvent,this.data)},e}(),ue=t0;function e0(e){var r=e.getController("axis"),t=e.getController("legend"),i=e.getController("annotation"),n=e.getController("slider"),a=e.getController("scrollbar");[r,n,a,t,i].forEach(function(o){o&&o.layout()})}var r0=function(){function e(){this.scales=new Map,this.syncScales=new Map}return e.prototype.createScale=function(r,t,i,n){var a=i,o=this.getScaleMeta(n);if(t.length===0&&o){var s=o.scale,l={type:s.type};s.isCategory&&(l.values=s.values),a=(0,h.deepMix)(l,o.scaleDef,i)}var u=ry(r,t,a);return this.cacheScale(u,i,n),u},e.prototype.sync=function(r,t){var i=this;this.syncScales.forEach(function(n,a){var o=Number.MAX_SAFE_INTEGER,s=Number.MIN_SAFE_INTEGER,l=[];(0,h.each)(n,function(u){var c=i.getScale(u);s=(0,h.isNumber)(c.max)?Math.max(s,c.max):s,o=(0,h.isNumber)(c.min)?Math.min(o,c.min):o,(0,h.each)(c.values,function(f){l.includes(f)||l.push(f)})}),(0,h.each)(n,function(u){var c=i.getScale(u);if(c.isContinuous)c.change({min:o,max:s,values:l});else if(c.isCategory){var f=c.range,v=i.getScaleMeta(u);l&&!(0,h.get)(v,["scaleDef","range"])&&(f=Ul((0,h.deepMix)({},c,{values:l}),r,t)),c.change({values:l,range:f})}})})},e.prototype.cacheScale=function(r,t,i){var n=this.getScaleMeta(i);n&&n.scale.type===r.type?(iy(n.scale,r),n.scaleDef=t):(n={key:i,scale:r,scaleDef:t},this.scales.set(i,n));var a=this.getSyncKey(n);if(n.syncKey=a,this.removeFromSyncScales(i),a){var o=this.syncScales.get(a);o||(o=[],this.syncScales.set(a,o)),o.push(i)}},e.prototype.getScale=function(r){var t=this.getScaleMeta(r);if(!t){var i=(0,h.last)(r.split("-")),n=this.syncScales.get(i);n&&n.length&&(t=this.getScaleMeta(n[0]))}return t&&t.scale},e.prototype.deleteScale=function(r){var t=this.getScaleMeta(r);if(t){var i=t.syncKey,n=this.syncScales.get(i);if(n&&n.length){var a=n.indexOf(r);a!==-1&&n.splice(a,1)}}this.scales.delete(r)},e.prototype.clear=function(){this.scales.clear(),this.syncScales.clear()},e.prototype.removeFromSyncScales=function(r){var t=this;this.syncScales.forEach(function(i,n){var a=i.indexOf(r);if(a!==-1)return i.splice(a,1),i.length===0&&t.syncScales.delete(n),!1})},e.prototype.getSyncKey=function(r){var t=r.scale,i=r.scaleDef,n=t.field,a=(0,h.get)(i,["sync"]);return a===!0?n:a===!1?void 0:a},e.prototype.getScaleMeta=function(r){return this.scales.get(r)},e}(),Kn=function(){function e(r,t,i,n){r===void 0&&(r=0),t===void 0&&(t=0),i===void 0&&(i=0),n===void 0&&(n=0),this.top=r,this.right=t,this.bottom=i,this.left=n}return e.instance=function(r,t,i,n){return r===void 0&&(r=0),t===void 0&&(t=0),i===void 0&&(i=0),n===void 0&&(n=0),new e(r,t,i,n)},e.prototype.max=function(r){var t=(0,g.__read)(r,4),i=t[0],n=t[1],a=t[2],o=t[3];return this.top=Math.max(this.top,i),this.right=Math.max(this.right,n),this.bottom=Math.max(this.bottom,a),this.left=Math.max(this.left,o),this},e.prototype.shrink=function(r){var t=(0,g.__read)(r,4),i=t[0],n=t[1],a=t[2],o=t[3];return this.top+=i,this.right+=n,this.bottom+=a,this.left+=o,this},e.prototype.inc=function(r,t){var i=r.width,n=r.height;switch(t){case E.TOP:case E.TOP_LEFT:case E.TOP_RIGHT:this.top+=n;break;case E.RIGHT:case E.RIGHT_TOP:case E.RIGHT_BOTTOM:this.right+=i;break;case E.BOTTOM:case E.BOTTOM_LEFT:case E.BOTTOM_RIGHT:this.bottom+=n;break;case E.LEFT:case E.LEFT_TOP:case E.LEFT_BOTTOM:this.left+=i;break;default:break}return this},e.prototype.getPadding=function(){return[this.top,this.right,this.bottom,this.left]},e.prototype.clone=function(){return new(e.bind.apply(e,(0,g.__spreadArray)([void 0],(0,g.__read)(this.getPadding()),!1)))},e}();function i0(e){var r=e.padding;if(!qy(r))return new(Kn.bind.apply(Kn,(0,g.__spreadArray)([void 0],(0,g.__read)(Ao(r)),!1)));var t=e.viewBBox,i=new Kn,n=[],a=[],o=[];return(0,h.each)(e.getComponents(),function(s){var l=s.type;l===N.AXIS?n.push(s):[N.LEGEND,N.SLIDER,N.SCROLLBAR].includes(l)?a.push(s):l!==N.GRID&&l!==N.TOOLTIP&&o.push(s)}),(0,h.each)(n,function(s){var l=s.component,u=l.getLayoutBBox(),c=new Ee(u.x,u.y,u.width,u.height),f=c.exceed(t);i.max(f)}),(0,h.each)(a,function(s){var l=s.component,u=s.direction,c=l.getLayoutBBox(),f=l.get("padding"),v=new Ee(c.x,c.y,c.width,c.height).expand(f);i.inc(v,u)}),(0,h.each)(o,function(s){var l=s.component,u=s.direction,c=l.getLayoutBBox(),f=new Ee(c.x,c.y,c.width,c.height);i.inc(f,u)}),i}function n0(e,r,t){var i=t.instance();r.forEach(function(n){n.autoPadding=i.max(n.autoPadding.getPadding())})}var Fu=function(e){(0,g.__extends)(r,e);function r(t){var i=e.call(this,{visible:t.visible})||this;i.views=[],i.geometries=[],i.controllers=[],i.interactions={},i.limitInPlot=!1,i.options={data:[],animate:!0},i.usedControllers=Ky(),i.scalePool=new r0,i.layoutFunc=e0,i.isPreMouseInPlot=!1,i.isDataChanged=!1,i.isCoordinateChanged=!1,i.createdScaleKeys=new Map,i.onCanvasEvent=function(w){var b=w.name;if(!b.includes(":")){var S=i.createViewEvent(w);i.doPlotEvent(S),i.emit(b,S)}},i.onDelegateEvents=function(w){var b=w.name;if(!!b.includes(":")){var S=i.createViewEvent(w);i.emit(b,S)}};var n=t.id,a=n===void 0?(0,h.uniqueId)("view"):n,o=t.parent,s=t.canvas,l=t.backgroundGroup,u=t.middleGroup,c=t.foregroundGroup,f=t.region,v=f===void 0?{start:{x:0,y:0},end:{x:1,y:1}}:f,d=t.padding,p=t.appendPadding,y=t.theme,m=t.options,x=t.limitInPlot,_=t.syncViewPadding;return i.parent=o,i.canvas=s,i.backgroundGroup=l,i.middleGroup=u,i.foregroundGroup=c,i.region=v,i.padding=d,i.appendPadding=p,i.options=(0,g.__assign)((0,g.__assign)({},i.options),m),i.limitInPlot=x,i.id=a,i.syncViewPadding=_,i.themeObject=(0,h.isObject)(y)?(0,h.deepMix)({},$i("default"),Zn(y)):$i(y),i.init(),i}return r.prototype.setLayout=function(t){this.layoutFunc=t},r.prototype.init=function(){this.calculateViewBBox(),this.initEvents(),this.initComponentController(),this.initOptions()},r.prototype.render=function(t,i){t===void 0&&(t=!1),this.emit(L.BEFORE_RENDER,ue.fromData(this,L.BEFORE_RENDER,i)),this.paint(t),this.emit(L.AFTER_RENDER,ue.fromData(this,L.AFTER_RENDER,i)),this.visible===!1&&this.changeVisible(!1)},r.prototype.clear=function(){var t=this;this.emit(L.BEFORE_CLEAR),this.filteredData=[],this.coordinateInstance=void 0,this.isDataChanged=!1,this.isCoordinateChanged=!1;for(var i=this.geometries,n=0;n');I.appendChild(V);var Z=R(I,l,a,o),vt=se(v),yt=new vt.Canvas((0,g.__assign)({container:V,pixelRatio:d,localRefresh:y,supportCSSTransform:w},Z));return i=e.call(this,{parent:null,canvas:yt,backgroundGroup:yt.addGroup({zIndex:$.BG}),middleGroup:yt.addGroup({zIndex:$.MID}),foregroundGroup:yt.addGroup({zIndex:$.FORE}),padding:u,appendPadding:c,visible:x,options:C,limitInPlot:A,theme:F,syncViewPadding:P})||this,i.onResize=(0,h.debounce)(function(){i.forceFit()},300),i.ele=I,i.canvas=yt,i.width=Z.width,i.height=Z.height,i.autoFit=l,i.localRefresh=y,i.renderer=v,i.wrapperElement=V,i.updateCanvasStyle(),i.bindAutoFit(),i.initDefaultInteractions(S),i}return r.prototype.initDefaultInteractions=function(t){var i=this;(0,h.each)(t,function(n){i.interaction(n)})},r.prototype.aria=function(t){var i="aria-label";t===!1?this.ele.removeAttribute(i):this.ele.setAttribute(i,t.label)},r.prototype.changeSize=function(t,i){return this.width===t&&this.height===i?this:(this.emit(L.BEFORE_CHANGE_SIZE),this.width=t,this.height=i,this.canvas.changeSize(t,i),this.render(!0),this.emit(L.AFTER_CHANGE_SIZE),this)},r.prototype.clear=function(){e.prototype.clear.call(this),this.aria(!1)},r.prototype.destroy=function(){e.prototype.destroy.call(this),this.unbindAutoFit(),this.canvas.destroy(),D(this.wrapperElement),this.wrapperElement=null},r.prototype.changeVisible=function(t){return e.prototype.changeVisible.call(this,t),this.wrapperElement.style.display=t?"":"none",this},r.prototype.forceFit=function(){if(!this.destroyed){var t=R(this.ele,!0,this.width,this.height),i=t.width,n=t.height;this.changeSize(i,n)}},r.prototype.updateCanvasStyle=function(){(0,k.Z)(this.canvas.get("el"),{display:"inline-block",verticalAlign:"middle"})},r.prototype.bindAutoFit=function(){this.autoFit&&window.addEventListener("resize",this.onResize)},r.prototype.unbindAutoFit=function(){this.autoFit&&window.removeEventListener("resize",this.onResize)},r}(a0),s0=o0,di=function(){function e(r){this.visible=!0,this.components=[],this.view=r}return e.prototype.clear=function(r){(0,h.each)(this.components,function(t){t.component.destroy()}),this.components=[]},e.prototype.destroy=function(){this.clear()},e.prototype.getComponents=function(){return this.components},e.prototype.changeVisible=function(r){this.visible!==r&&(this.components.forEach(function(t){r?t.component.show():t.component.hide()}),this.visible=r)},e}();function l0(e){for(var r=[],t=function(n){var a=e[n],o=(0,h.find)(r,function(s){return s.color===a.color&&s.name===a.name&&s.value===a.value&&s.title===a.title});o||r.push(a)},i=0;i1){var b=u[0],S=Math.abs(t.y-b[0].y);try{for(var C=(0,g.__values)(u),A=C.next();!A.done;A=C.next()){var F=A.value,P=Math.abs(t.y-F[0].y);P<=S&&(b=F,S=P)}}catch(I){s={error:I}}finally{try{A&&!A.done&&(l=C.return)&&l.call(C)}finally{if(s)throw s.error}}u=[b]}return l0((0,h.flatten)(u))}return[]},r.prototype.layout=function(){},r.prototype.update=function(){if(this.point&&this.showTooltip(this.point),this.tooltip){var t=this.view.getCanvas();this.tooltip.set("region",{start:{x:0,y:0},end:{x:t.get("width"),y:t.get("height")}})}},r.prototype.isCursorEntered=function(t){if(this.tooltip){var i=this.tooltip.getContainer(),n=this.tooltip.get("capture");if(i&&n){var a=i.getBoundingClientRect(),o=a.x,s=a.y,l=a.width,u=a.height;return new Ee(o,s,l,u).isPointIn(t)}}return!1},r.prototype.getTooltipCfg=function(){var t=this.view,i=t.getOptions().tooltip,n=this.processCustomContent(i),a=t.getTheme(),o=(0,h.get)(a,["components","tooltip"],{}),s=(0,h.get)(n,"enterable",o.enterable);return(0,h.deepMix)({},o,n,{capture:!!(s||this.isLocked)})},r.prototype.processCustomContent=function(t){if((0,h.isBoolean)(t)||!(0,h.get)(t,"customContent"))return t;var i=t.customContent,n=function(a,o){var s=i(a,o)||"";return(0,h.isString)(s)?'
        '+s+"
        ":s};return(0,g.__assign)((0,g.__assign)({},t),{customContent:n})},r.prototype.getTitle=function(t){var i=t[0].title||t[0].name;return this.title=i,i},r.prototype.renderTooltip=function(){var t=this.view.getCanvas(),i={start:{x:0,y:0},end:{x:t.get("width"),y:t.get("height")}},n=this.getTooltipCfg(),a=new Nn((0,g.__assign)((0,g.__assign)({parent:t.get("el").parentNode,region:i},n),{visible:!1,crosshairs:null}));a.init(),this.tooltip=a},r.prototype.renderTooltipMarkers=function(t,i){var n,a,o=this.getTooltipMarkersGroup(),s=this.view.getRootView(),l=s.limitInPlot;try{for(var u=(0,g.__values)(t),c=u.next();!c.done;c=u.next()){var f=c.value,v=f.x,d=f.y;if(l||(o==null?void 0:o.getClip())){var p=po(s.getCoordinate()),y=p.type,m=p.attrs;o==null||o.setClip({type:y,attrs:m})}else o==null||o.setClip(void 0);var x=this.view.getTheme(),_=(0,h.get)(x,["components","tooltip","marker"],{}),w=(0,g.__assign)((0,g.__assign)({fill:f.color,symbol:"circle",shadowColor:f.color},(0,h.isFunction)(i)?(0,g.__assign)((0,g.__assign)({},_),i(f)):i),{x:v,y:d});o.addShape("marker",{attrs:w})}}catch(b){n={error:b}}finally{try{c&&!c.done&&(a=u.return)&&a.call(u)}finally{if(n)throw n.error}}},r.prototype.renderCrosshairs=function(t,i){var n=(0,h.get)(i,["crosshairs","type"],"x");n==="x"?(this.yCrosshair&&this.yCrosshair.hide(),this.renderXCrosshairs(t,i)):n==="y"?(this.xCrosshair&&this.xCrosshair.hide(),this.renderYCrosshairs(t,i)):n==="xy"&&(this.renderXCrosshairs(t,i),this.renderYCrosshairs(t,i))},r.prototype.renderXCrosshairs=function(t,i){var n=this.getViewWithGeometry(this.view).getCoordinate(),a,o;if(n.isRect)n.isTransposed?(a={x:n.start.x,y:t.y},o={x:n.end.x,y:t.y}):(a={x:t.x,y:n.end.y},o={x:t.x,y:n.start.y});else{var s=ui(n,t),l=n.getCenter(),u=n.getRadius();o=ge(l.x,l.y,u,s),a=l}var c=(0,h.deepMix)({start:a,end:o,container:this.getTooltipCrosshairsGroup()},(0,h.get)(i,"crosshairs",{}),this.getCrosshairsText("x",t,i));delete c.type;var f=this.xCrosshair;f?f.update(c):(f=new Il(c),f.init()),f.render(),f.show(),this.xCrosshair=f},r.prototype.renderYCrosshairs=function(t,i){var n=this.getViewWithGeometry(this.view).getCoordinate(),a,o;if(n.isRect){var s=void 0,l=void 0;n.isTransposed?(s={x:t.x,y:n.end.y},l={x:t.x,y:n.start.y}):(s={x:n.start.x,y:t.y},l={x:n.end.x,y:t.y}),a={start:s,end:l},o="Line"}else a={center:n.getCenter(),radius:zn(n,t),startAngle:n.startAngle,endAngle:n.endAngle},o="Circle";a=(0,h.deepMix)({container:this.getTooltipCrosshairsGroup()},a,(0,h.get)(i,"crosshairs",{}),this.getCrosshairsText("y",t,i)),delete a.type;var u=this.yCrosshair;u?n.isRect&&u.get("type")==="circle"||!n.isRect&&u.get("type")==="line"?(u=new ct[o](a),u.init()):u.update(a):(u=new ct[o](a),u.init()),u.render(),u.show(),this.yCrosshair=u},r.prototype.getCrosshairsText=function(t,i,n){var a=(0,h.get)(n,["crosshairs","text"]),o=(0,h.get)(n,["crosshairs","follow"]),s=this.items;if(a){var l=this.getViewWithGeometry(this.view),u=s[0],c=l.getXScale(),f=l.getYScales()[0],v=void 0,d=void 0;if(o){var p=this.view.getCoordinate().invert(i);v=c.invert(p.x),d=f.invert(p.y)}else v=u.data[c.field],d=u.data[f.field];var y=t==="x"?v:d;return(0,h.isFunction)(a)?a=a(t,y,s,i):a.content=y,{text:a}}},r.prototype.getGuideGroup=function(){if(!this.guideGroup){var t=this.view.foregroundGroup;this.guideGroup=t.addGroup({name:"tooltipGuide",capture:!1})}return this.guideGroup},r.prototype.getTooltipMarkersGroup=function(){var t=this.tooltipMarkersGroup;return t&&!t.destroyed?(t.clear(),t.show()):(t=this.getGuideGroup().addGroup({name:"tooltipMarkersGroup"}),t.toFront(),this.tooltipMarkersGroup=t),t},r.prototype.getTooltipCrosshairsGroup=function(){var t=this.tooltipCrosshairsGroup;return t||(t=this.getGuideGroup().addGroup({name:"tooltipCrosshairsGroup",capture:!1}),t.toBack(),this.tooltipCrosshairsGroup=t),t},r.prototype.findItemsFromView=function(t,i){var n,a;if(t.getOptions().tooltip===!1)return[];var o=this.getTooltipCfg(),s=Co(t,i,o);try{for(var l=(0,g.__values)(t.views),u=l.next();!u.done;u=l.next()){var c=u.value;s=s.concat(this.findItemsFromView(c,i))}}catch(f){n={error:f}}finally{try{u&&!u.done&&(a=l.return)&&a.call(l)}finally{if(n)throw n.error}}return s},r.prototype.getViewWithGeometry=function(t){var i=this;return t.geometries.length?t:(0,h.find)(t.views,function(n){return i.getViewWithGeometry(n)})},r.prototype.getItemsAfterProcess=function(t){var i=this.getTooltipCfg().customItems,n=i||function(a){return a};return n(t)},r}(di),Eu=u0,Tu={};function Lu(e){return Tu[e.toLowerCase()]}function ze(e,r){Tu[e.toLowerCase()]=r}var gi={appear:{duration:450,easing:"easeQuadOut"},update:{duration:400,easing:"easeQuadInOut"},enter:{duration:400,easing:"easeQuadInOut"},leave:{duration:350,easing:"easeQuadIn"}},c0={interval:function(e){return{enter:{animation:e.isRect?e.isTransposed?"scale-in-x":"scale-in-y":"fade-in"},update:{animation:e.isPolar&&e.isTransposed?"sector-path-update":null},leave:{animation:"fade-out"}}},line:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},path:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},point:{appear:{animation:"zoom-in"},enter:{animation:"zoom-in"},leave:{animation:"zoom-out"}},area:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},polygon:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},schema:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},edge:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},label:{appear:{animation:"fade-in",delay:450},enter:{animation:"fade-in"},update:{animation:"position-update"},leave:{animation:"fade-out"}}},Iu={line:function(){return{animation:"wave-in"}},area:function(){return{animation:"wave-in"}},path:function(){return{animation:"fade-in"}},interval:function(e){var r;return e.isRect?r=e.isTransposed?"grow-in-x":"grow-in-y":(r="grow-in-xy",e.isPolar&&e.isTransposed&&(r="wave-in")),{animation:r}},schema:function(e){var r;return e.isRect?r=e.isTransposed?"grow-in-x":"grow-in-y":r="grow-in-xy",{animation:r}},polygon:function(){return{animation:"fade-in",duration:500}},edge:function(){return{animation:"fade-in"}}};function h0(e,r){return{delay:(0,h.isFunction)(e.delay)?e.delay(r):e.delay,easing:(0,h.isFunction)(e.easing)?e.easing(r):e.easing,duration:(0,h.isFunction)(e.duration)?e.duration(r):e.duration,callback:e.callback,repeat:e.repeat}}function Ou(e,r,t){var i=c0[e];return i&&((0,h.isFunction)(i)&&(i=i(r)),i=(0,h.deepMix)({},gi,i),t)?i[t]:i}function pi(e,r,t){var i=(0,h.get)(e.get("origin"),"data",rt),n=r.animation,a=h0(r,i);if(n){var o=Lu(n);o&&o(e,a,t)}else e.animate(t.toAttrs,a)}function f0(e,r,t,i,n){if(Iu[t]){var a=Iu[t](i),o=Lu((0,h.get)(a,"animation",""));if(o){var s=(0,g.__assign)((0,g.__assign)((0,g.__assign)({},gi.appear),a),r);e.stopAnimate(),o(e,s,{coordinate:i,minYPoint:n,toAttrs:null})}}}var Mo="element-background",v0=function(e){(0,g.__extends)(r,e);function r(t){var i=e.call(this,t)||this;i.labelShape=[],i.states=[];var n=t.shapeFactory,a=t.container,o=t.offscreenGroup,s=t.elementIndex,l=t.visible,u=l===void 0?!0:l;return i.shapeFactory=n,i.container=a,i.offscreenGroup=o,i.visible=u,i.elementIndex=s,i}return r.prototype.draw=function(t,i){i===void 0&&(i=!1),this.model=t,this.data=t.data,this.shapeType=this.getShapeType(t),this.drawShape(t,i),this.visible===!1&&this.changeVisible(!1)},r.prototype.update=function(t){var i=this,n=i.shapeFactory,a=i.shape;if(!!a){this.model=t,this.data=t.data,this.shapeType=this.getShapeType(t),this.setShapeInfo(a,t);var o=this.getOffscreenGroup(),s=n.drawShape(this.shapeType,t,o);s.cfg.data=this.data,s.cfg.origin=t,s.cfg.element=this,this.syncShapeStyle(a,s,this.getStates(),this.getAnimateCfg("update"))}},r.prototype.destroy=function(){var t=this,i=t.shapeFactory,n=t.shape;if(n){var a=this.getAnimateCfg("leave");a?pi(n,a,{coordinate:i.coordinate,toAttrs:(0,g.__assign)({},n.attr())}):n.remove(!0)}this.states=[],this.shapeFactory=void 0,this.container=void 0,this.shape=void 0,this.animate=void 0,this.geometry=void 0,this.labelShape=[],this.model=void 0,this.data=void 0,this.offscreenGroup=void 0,this.statesStyle=void 0,e.prototype.destroy.call(this)},r.prototype.changeVisible=function(t){e.prototype.changeVisible.call(this,t),t?(this.shape&&this.shape.show(),this.labelShape&&this.labelShape.forEach(function(i){i.show()})):(this.shape&&this.shape.hide(),this.labelShape&&this.labelShape.forEach(function(i){i.hide()}))},r.prototype.setState=function(t,i){var n=this,a=n.states,o=n.shapeFactory,s=n.model,l=n.shape,u=n.shapeType,c=a.indexOf(t);if(i){if(c>-1)return;a.push(t),(t==="active"||t==="selected")&&(l==null||l.toFront())}else{if(c===-1)return;if(a.splice(c,1),t==="active"||t==="selected"){var f=this.geometry,v=f.sortZIndex,d=f.zIndexReversed,p=d?this.geometry.elements.length-this.elementIndex:this.elementIndex;v?l.setZIndex(p):l.set("zIndex",p)}}var y=o.drawShape(u,s,this.getOffscreenGroup());a.length?this.syncShapeStyle(l,y,a,null):this.syncShapeStyle(l,y,["reset"],null),y.remove(!0);var m={state:t,stateStatus:i,element:this,target:this.container};this.container.emit("statechange",m),ml(this.shape,"statechange",m)},r.prototype.clearStates=function(){var t=this,i=this.states;(0,h.each)(i,function(n){t.setState(n,!1)}),this.states=[]},r.prototype.hasState=function(t){return this.states.includes(t)},r.prototype.getStates=function(){return this.states},r.prototype.getData=function(){return this.data},r.prototype.getModel=function(){return this.model},r.prototype.getBBox=function(){var t=this,i=t.shape,n=t.labelShape,a={x:0,y:0,minX:0,minY:0,maxX:0,maxY:0,width:0,height:0};return i&&(a=i.getCanvasBBox()),n&&n.forEach(function(o){var s=o.getCanvasBBox();a.x=Math.min(s.x,a.x),a.y=Math.min(s.y,a.y),a.minX=Math.min(s.minX,a.minX),a.minY=Math.min(s.minY,a.minY),a.maxX=Math.max(s.maxX,a.maxX),a.maxY=Math.max(s.maxY,a.maxY)}),a.width=a.maxX-a.minX,a.height=a.maxY-a.minY,a},r.prototype.getStatesStyle=function(){if(!this.statesStyle){var t=this,i=t.shapeType,n=t.geometry,a=t.shapeFactory,o=n.stateOption,s=a.defaultShapeType,l=a.theme[i]||a.theme[s];this.statesStyle=(0,h.deepMix)({},l,o)}return this.statesStyle},r.prototype.getStateStyle=function(t,i){var n=this.getStatesStyle(),a=(0,h.get)(n,[t,"style"],{}),o=a[i]||a;return(0,h.isFunction)(o)?o(this):o},r.prototype.getAnimateCfg=function(t){var i=this,n=this.animate;if(n){var a=n[t];return a&&(0,g.__assign)((0,g.__assign)({},a),{callback:function(){var o;(0,h.isFunction)(a.callback)&&a.callback(),(o=i.geometry)===null||o===void 0||o.emit(X.AFTER_DRAW_ANIMATE)}})}return null},r.prototype.drawShape=function(t,i){var n;i===void 0&&(i=!1);var a=this,o=a.shapeFactory,s=a.container,l=a.shapeType;if(this.shape=o.drawShape(l,t,s),this.shape){this.setShapeInfo(this.shape,t);var u=this.shape.cfg.name;u?(0,h.isString)(u)&&(this.shape.cfg.name=["element",u]):this.shape.cfg.name=["element",this.shapeFactory.geometryType];var c=i?"enter":"appear",f=this.getAnimateCfg(c);f&&((n=this.geometry)===null||n===void 0||n.emit(X.BEFORE_DRAW_ANIMATE),pi(this.shape,f,{coordinate:o.coordinate,toAttrs:(0,g.__assign)({},this.shape.attr())}))}},r.prototype.getOffscreenGroup=function(){if(!this.offscreenGroup){var t=this.container.getGroupBase();this.offscreenGroup=new t({})}return this.offscreenGroup},r.prototype.setShapeInfo=function(t,i){var n=this;if(t.cfg.origin=i,t.cfg.element=this,t.isGroup()){var a=t.get("children");a.forEach(function(o){n.setShapeInfo(o,i)})}},r.prototype.syncShapeStyle=function(t,i,n,a,o){var s=this,l;if(n===void 0&&(n=[]),o===void 0&&(o=0),!(!t||!i)){var u=t.get("clipShape"),c=i.get("clipShape");if(this.syncShapeStyle(u,c,n,a),t.isGroup())for(var f=t.get("children"),v=i.get("children"),d=0;d=0?a=i:n<=0?a=n:a=0,a},r.prototype.createAttrOption=function(t,i,n){if((0,h.isNil)(i)||(0,h.isObject)(i))(0,h.isObject)(i)&&(0,h.isEqual)(Object.keys(i),["values"])?(0,h.set)(this.attributeOption,t,{fields:i.values}):(0,h.set)(this.attributeOption,t,i);else{var a={};(0,h.isNumber)(i)?a.values=[i]:a.fields=Ji(i),n&&((0,h.isFunction)(n)?a.callback=n:a.values=n),(0,h.set)(this.attributeOption,t,a)}},r.prototype.initAttributes=function(){var t=this,i=this,n=i.attributes,a=i.attributeOption,o=i.theme,s=i.shapeType;this.groupScales=[];var l={},u=function(v){if(a.hasOwnProperty(v)){var d=a[v];if(!d)return{value:void 0};var p=(0,g.__assign)({},d),y=p.callback,m=p.values,x=p.fields,_=x===void 0?[]:x,w=_.map(function(S){var C=t.scales[S];if(!l[S]&&bt.includes(v)){var A=Xl(C,(0,h.get)(t.scaleDefs,S),v,t.type);A==="cat"&&(t.groupScales.push(C),l[S]=!0)}return C});p.scales=w,v!=="position"&&w.length===1&&w[0].type==="identity"?p.values=w[0].values:!y&&!m&&(v==="size"?p.values=o.sizes:v==="shape"?p.values=o.shapes[s]||[]:v==="color"&&(w.length?p.values=w[0].values.length<=10?o.colors10:o.colors20:p.values=o.colors10));var b=gl(v);n[v]=new b(p)}};for(var c in a){var f=u(c);if(typeof f=="object")return f.value}},r.prototype.processData=function(t){var i,n;this.hasSorted=!1;for(var a=this.getAttribute("position").scales,o=a.filter(function(A){return A.isCategory}),s=this.groupData(t),l=[],u=0,c=s.length;us&&(s=f)}var v=this.scaleDefs,d={};ot.max&&!(0,h.get)(v,[a,"max"])&&(d.max=s),t.change(d)},r.prototype.beforeMapping=function(t){var i=t;if(this.sortable&&this.sort(i),this.generatePoints)for(var n=0,a=i.length;n1)for(var v=0;v0})}function Vu(e,r,t){var i=t.data,n=t.origin,a=t.animateCfg,o=t.coordinate,s=(0,h.get)(a,"update");e.set("data",i),e.set("origin",n),e.set("animateCfg",a),e.set("coordinate",o),e.set("visible",r.get("visible")),(e.getChildren()||[]).forEach(function(l,u){var c=r.getChildByIndex(u);if(!c)e.removeChild(l),l.remove(!0);else{l.set("data",i),l.set("origin",n),l.set("animateCfg",a),l.set("coordinate",o);var f=Yl(l,c);s?pi(l,s,{toAttrs:f,coordinate:o}):l.attr(f),c.isGroup()&&Vu(l,c,t)}}),(0,h.each)(r.getChildren(),function(l,u){u>=e.getCount()&&(l.destroyed||e.add(l))})}var C0=function(){function e(r){this.shapesMap={};var t=r.layout,i=r.container;this.layout=t,this.container=i}return e.prototype.render=function(r,t,i){return i===void 0&&(i=!1),(0,g.__awaiter)(this,void 0,void 0,function(){var n,a,o,s,l,u,c,f,v=this;return(0,g.__generator)(this,function(d){switch(d.label){case 0:if(n={},a=this.createOffscreenGroup(),!r.length)return[3,2];try{for(o=(0,g.__values)(r),s=o.next();!s.done;s=o.next())l=s.value,l&&(n[l.id]=this.renderLabel(l,a))}catch(p){c={error:p}}finally{try{s&&!s.done&&(f=o.return)&&f.call(o)}finally{if(c)throw c.error}}return[4,this.doLayout(r,t,n)];case 1:d.sent(),this.renderLabelLine(r,n),this.renderLabelBackground(r,n),this.adjustLabel(r,n),d.label=2;case 2:return u=this.shapesMap,(0,h.each)(n,function(p,y){if(p.destroyed)delete n[y];else{if(u[y]){var m=p.get("data"),x=p.get("origin"),_=p.get("coordinate"),w=p.get("animateCfg"),b=u[y];Vu(b,n[y],{data:m,origin:x,animateCfg:w,coordinate:_}),n[y]=b}else{if(v.container.destroyed)return;v.container.add(p);var S=(0,h.get)(p.get("animateCfg"),i?"enter":"appear");S&&pi(p,S,{toAttrs:(0,g.__assign)({},p.attr()),coordinate:p.get("coordinate")})}delete u[y]}}),(0,h.each)(u,function(p){var y=(0,h.get)(p.get("animateCfg"),"leave");y?pi(p,y,{toAttrs:null,coordinate:p.get("coordinate")}):p.remove(!0)}),this.shapesMap=n,a.destroy(),[2]}})})},e.prototype.clear=function(){this.container.clear(),this.shapesMap={}},e.prototype.destroy=function(){this.container.destroy(),this.shapesMap=null},e.prototype.renderLabel=function(r,t){var i=r.id,n=r.elementId,a=r.data,o=r.mappingData,s=r.coordinate,l=r.animate,u=r.content,c=r.capture,f={id:i,elementId:n,capture:c,data:a,origin:(0,g.__assign)((0,g.__assign)({},o),{data:o[rt]}),coordinate:s},v=t.addGroup((0,g.__assign)({name:"label",animateCfg:this.animate===!1||l===null||l===!1?!1:(0,h.deepMix)({},this.animate,l)},f)),d;if(u.isGroup&&u.isGroup()||u.isShape&&u.isShape()){var p=u.getCanvasBBox(),y=p.width,m=p.height,x=(0,h.get)(r,"textAlign","left"),_=r.x,w=r.y-m/2;x==="center"?_=_-y/2:(x==="right"||x==="end")&&(_=_-y),tn(u,_,w),d=u,v.add(u)}else{var b=(0,h.get)(r,["style","fill"]);d=v.addShape("text",(0,g.__assign)({attrs:(0,g.__assign)((0,g.__assign)({x:r.x,y:r.y,textAlign:r.textAlign,textBaseline:(0,h.get)(r,"textBaseline","middle"),text:r.content},r.style),{fill:(0,h.isNull)(b)?r.color:b})},f))}return r.rotate&&Eo(d,r.rotate),v},e.prototype.doLayout=function(r,t,i){return(0,g.__awaiter)(this,void 0,void 0,function(){var n,a=this;return(0,g.__generator)(this,function(o){switch(o.label){case 0:return this.layout?(n=(0,h.isArray)(this.layout)?this.layout:[this.layout],[4,Promise.all(n.map(function(s){var l=g0((0,h.get)(s,"type",""));if(!!l){var u=[],c=[];return(0,h.each)(i,function(f,v){u.push(f),c.push(t[f.get("elementId")])}),l(r,u,c,a.region,s.cfg)}}))]):[3,2];case 1:o.sent(),o.label=2;case 2:return[2]}})})},e.prototype.renderLabelLine=function(r,t){(0,h.each)(r,function(i){var n=(0,h.get)(i,"coordinate");if(!(!i||!n)){var a=n.getCenter(),o=n.getRadius();if(!!i.labelLine){var s=(0,h.get)(i,"labelLine",{}),l=i.id,u=s.path;if(!u){var c=ge(a.x,a.y,o,i.angle);u=[["M",c.x,c.y],["L",i.x,i.y]]}var f=t[l];f.destroyed||f.addShape("path",{capture:!1,attrs:(0,g.__assign)({path:u,stroke:i.color?i.color:(0,h.get)(i,["style","fill"],"#000"),fill:null},s.style),id:l,origin:i.mappingData,data:i.data,coordinate:i.coordinate})}}})},e.prototype.renderLabelBackground=function(r,t){(0,h.each)(r,function(i){var n=(0,h.get)(i,"coordinate"),a=(0,h.get)(i,"background");if(!(!a||!n)){var o=i.id,s=t[o];if(!s.destroyed){var l=s.getChildren()[0];if(l){var u=zu(s,i,a.padding),c=u.rotation,f=(0,g.__rest)(u,["rotation"]),v=s.addShape("rect",{attrs:(0,g.__assign)((0,g.__assign)({},f),a.style||{}),id:o,origin:i.mappingData,data:i.data,coordinate:i.coordinate});if(v.setZIndex(-1),c){var d=l.getMatrix();v.setMatrix(d)}}}}})},e.prototype.createOffscreenGroup=function(){var r=this.container,t=r.getGroupBase(),i=new t({});return i},e.prototype.adjustLabel=function(r,t){(0,h.each)(r,function(i){if(i){var n=i.id,a=t[n];if(!a.destroyed){var o=a.findAll(function(s){return s.get("type")!=="path"});(0,h.each)(o,function(s){s&&(i.offsetX&&s.attr("x",s.attr("x")+i.offsetX),i.offsetY&&s.attr("y",s.attr("y")+i.offsetY))})}}})},e}(),A0=C0;function Gu(e){var r=0;return(0,h.each)(e,function(t){r+=t}),r/e.length}var M0=function(){function e(r){this.geometry=r}return e.prototype.getLabelItems=function(r){var t=this,i=[],n=this.getLabelCfgs(r);return(0,h.each)(r,function(a,o){var s=n[o];if(!s||(0,h.isNil)(a.x)||(0,h.isNil)(a.y)){i.push(null);return}var l=(0,h.isArray)(s.content)?s.content:[s.content];s.content=l;var u=l.length;(0,h.each)(l,function(c,f){if((0,h.isNil)(c)||c===""){i.push(null);return}var v=(0,g.__assign)((0,g.__assign)({},s),t.getLabelPoint(s,a,f));v.textAlign||(v.textAlign=t.getLabelAlign(v,f,u)),v.offset<=0&&(v.labelLine=null),i.push(v)})}),i},e.prototype.render=function(r,t){return t===void 0&&(t=!1),(0,g.__awaiter)(this,void 0,void 0,function(){var i,n,a;return(0,g.__generator)(this,function(o){switch(o.label){case 0:return i=this.getLabelItems(r),n=this.getLabelsRenderer(),a=this.getGeometryShapes(),[4,n.render(i,a,t)];case 1:return o.sent(),[2]}})})},e.prototype.clear=function(){var r=this.labelsRenderer;r&&r.clear()},e.prototype.destroy=function(){var r=this.labelsRenderer;r&&r.destroy(),this.labelsRenderer=null},e.prototype.getCoordinate=function(){return this.geometry.coordinate},e.prototype.getDefaultLabelCfg=function(r,t){var i=this.geometry,n=i.type,a=i.theme;return n==="polygon"||n==="interval"&&t==="middle"||r<0&&!["line","point","path"].includes(n)?(0,h.get)(a,"innerLabels",{}):(0,h.get)(a,"labels",{})},e.prototype.getThemedLabelCfg=function(r){var t=this.geometry,i=this.getDefaultLabelCfg(),n=t.type,a=t.theme,o;return n==="polygon"||r.offset<0&&!["line","point","path"].includes(n)?o=(0,h.deepMix)({},i,a.innerLabels,r):o=(0,h.deepMix)({},i,a.labels,r),o},e.prototype.setLabelPosition=function(r,t,i,n){},e.prototype.getLabelOffset=function(r){var t=this.getCoordinate(),i=this.getOffsetVector(r);return t.isTransposed?i[0]:i[1]},e.prototype.getLabelOffsetPoint=function(r,t,i){var n=r.offset,a=this.getCoordinate(),o=a.isTransposed,s=o?"x":"y",l=o?1:-1,u={x:0,y:0};return t>0||i===1?u[s]=n*l:u[s]=n*l*-1,u},e.prototype.getLabelPoint=function(r,t,i){var n=this.getCoordinate(),a=r.content.length;function o(m,x,_){_===void 0&&(_=!1);var w=m;return(0,h.isArray)(w)&&(r.content.length===1?_?w=Gu(w):w.length<=2?w=w[m.length-1]:w=Gu(w):w=w[x]),w}var s={content:r.content[i],x:0,y:0,start:{x:0,y:0},color:"#fff"},l=(0,h.isArray)(t.shape)?t.shape[0]:t.shape,u=l==="funnel"||l==="pyramid";if(this.geometry.type==="polygon"){var c=Zp(t.x,t.y);s.x=c[0],s.y=c[1]}else this.geometry.type==="interval"&&!u?(s.x=o(t.x,i,!0),s.y=o(t.y,i)):(s.x=o(t.x,i),s.y=o(t.y,i));if(u){var f=(0,h.get)(t,"nextPoints"),v=(0,h.get)(t,"points");if(f){var d=n.convert(v[1]),p=n.convert(f[1]);s.x=(d.x+p.x)/2,s.y=(d.y+p.y)/2}else if(l==="pyramid"){var d=n.convert(v[1]),p=n.convert(v[2]);s.x=(d.x+p.x)/2,s.y=(d.y+p.y)/2}}r.position&&this.setLabelPosition(s,t,i,r.position);var y=this.getLabelOffsetPoint(r,i,a);return s.start={x:s.x,y:s.y},s.x+=y.x,s.y+=y.y,s.color=t.color,s},e.prototype.getLabelAlign=function(r,t,i){var n="center",a=this.getCoordinate();if(a.isTransposed){var o=r.offset;o<0?n="right":o===0?n="center":n="left",i>1&&t===0&&(n==="right"?n="left":n==="left"&&(n="right"))}return n},e.prototype.getLabelId=function(r){var t=this.geometry,i=t.type,n=t.getXScale(),a=t.getYScale(),o=r[rt],s=t.getElementId(r);return i==="line"||i==="area"?s+=" ".concat(o[n.field]):i==="path"&&(s+=" ".concat(o[n.field],"-").concat(o[a.field])),s},e.prototype.getLabelsRenderer=function(){var r=this.geometry,t=r.labelsContainer,i=r.labelOption,n=r.canvasRegion,a=r.animateOption,o=this.geometry.coordinate,s=this.labelsRenderer;return s||(s=new A0({container:t,layout:(0,h.get)(i,["cfg","layout"],{type:this.defaultLayout})}),this.labelsRenderer=s),s.region=n,s.animate=a?Ou("label",o):!1,s},e.prototype.getLabelCfgs=function(r){var t=this,i=this.geometry,n=i.labelOption,a=i.scales,o=i.coordinate,s=n,l=s.fields,u=s.callback,c=s.cfg,f=l.map(function(d){return a[d]}),v=[];return(0,h.each)(r,function(d,p){var y=d[rt],m=t.getLabelText(y,f),x;if(u){var _=l.map(function(A){return y[A]});if(x=u.apply(void 0,(0,g.__spreadArray)([],(0,g.__read)(_),!1)),(0,h.isNil)(x)){v.push(null);return}}var w=(0,g.__assign)((0,g.__assign)({id:t.getLabelId(d),elementId:t.geometry.getElementId(d),data:y,mappingData:d,coordinate:o},c),x);(0,h.isFunction)(w.position)&&(w.position=w.position(y,d,p));var b=t.getLabelOffset(w.offset||0),S=t.getDefaultLabelCfg(b,w.position);w=(0,h.deepMix)({},S,w),w.offset=t.getLabelOffset(w.offset||0);var C=w.content;(0,h.isFunction)(C)?w.content=C(y,d,p):(0,h.isUndefined)(C)&&(w.content=m[0]),v.push(w)}),v},e.prototype.getLabelText=function(r,t){var i=[];return(0,h.each)(t,function(n){var a=r[n.field];(0,h.isArray)(a)?a=a.map(function(o){return n.getText(o)}):a=n.getText(a),(0,h.isNil)(a)||a===""?i.push(null):i.push(a)}),i},e.prototype.getOffsetVector=function(r){r===void 0&&(r=0);var t=this.getCoordinate(),i=0;return(0,h.isNumber)(r)&&(i=r),t.isTransposed?t.applyMatrix(i,0):t.applyMatrix(0,i)},e.prototype.getGeometryShapes=function(){var r=this.geometry,t={};return(0,h.each)(r.elementsMap,function(i,n){t[n]=i.shape}),(0,h.each)(r.getOffscreenGroup().getChildren(),function(i){var n=r.getElementId(i.get("origin").mappingData);t[n]=i}),t},e}(),Qn=M0;function To(e,r,t){if(!e)return t;var i;if(e.callback&&e.callback.length>1){var n=Array(e.callback.length-1).fill("");i=e.mapping.apply(e,(0,g.__spreadArray)([r],(0,g.__read)(n),!1)).join("")}else i=e.mapping(r).join("");return i||t}var Gr={hexagon:function(e,r,t){var i=t/2*Math.sqrt(3);return[["M",e,r-t],["L",e+i,r-t/2],["L",e+i,r+t/2],["L",e,r+t],["L",e-i,r+t/2],["L",e-i,r-t/2],["Z"]]},bowtie:function(e,r,t){var i=t-1.5;return[["M",e-t,r-i],["L",e+t,r+i],["L",e+t,r-i],["L",e-t,r+i],["Z"]]},cross:function(e,r,t){return[["M",e-t,r-t],["L",e+t,r+t],["M",e+t,r-t],["L",e-t,r+t]]},tick:function(e,r,t){return[["M",e-t/2,r-t],["L",e+t/2,r-t],["M",e,r-t],["L",e,r+t],["M",e-t/2,r+t],["L",e+t/2,r+t]]},plus:function(e,r,t){return[["M",e-t,r],["L",e+t,r],["M",e,r-t],["L",e,r+t]]},hyphen:function(e,r,t){return[["M",e-t,r],["L",e+t,r]]},line:function(e,r,t){return[["M",e,r-t],["L",e,r+t]]}},F0=["line","cross","tick","plus","hyphen"];function E0(e,r){return(0,h.isFunction)(r)?r(e):(0,h.deepMix)({},e,r)}function T0(e,r){var t=e.symbol;if((0,h.isString)(t)&&F0.indexOf(t)!==-1){var i=(0,h.get)(e,"style",{}),n=(0,h.get)(i,"lineWidth",1),a=i.stroke||i.fill||r;e.style=(0,h.deepMix)({},e.style,{lineWidth:n,stroke:a,fill:null})}}function Wu(e){var r=e.symbol;(0,h.isString)(r)&&Gr[r]&&(e.symbol=Gr[r])}function Lo(e){return e.startsWith(E.LEFT)||e.startsWith(E.RIGHT)?"vertical":"horizontal"}function Hu(e,r,t,i,n){var a=t.getScale(t.type);if(a.isCategory){var o=a.field,s=r.getAttribute("color"),l=r.getAttribute("shape"),u=e.getTheme().defaultColor,c=r.coordinate.isPolar;return a.getTicks().map(function(f,v){var d,p=f.text,y=f.value,m=p,x=a.invert(y),_=e.filterFieldData(o,[(d={},d[o]=x,d)]).length===0;(0,h.each)(e.views,function(A){var F;A.filterFieldData(o,[(F={},F[o]=x,F)]).length||(_=!0)});var w=To(s,x,u),b=To(l,x,"point"),S=r.getShapeMarker(b,{color:w,isInPolar:c}),C=n;return(0,h.isFunction)(C)&&(C=C(m,v,(0,g.__assign)({name:m,value:x},(0,h.deepMix)({},i,S)))),S=(0,h.deepMix)({},i,S,Oe((0,g.__assign)({},C),["style"])),T0(S,w),C&&C.style&&(S.style=E0(S.style,C.style)),Wu(S),{id:x,name:m,value:x,marker:S,unchecked:_}})}return[]}function L0(e,r,t){return t.map(function(i,n){var a=r;(0,h.isFunction)(a)&&(a=a(i.name,n,(0,h.deepMix)({},e,i)));var o=(0,h.isFunction)(i.marker)?i.marker(i.name,n,(0,h.deepMix)({},e,i)):i.marker,s=(0,h.deepMix)({},e,a,o);return Wu(s),i.marker=s,i})}function Yu(e,r){var t=(0,h.get)(e,["components","legend"],{});return(0,h.deepMix)({},(0,h.get)(t,["common"],{}),(0,h.deepMix)({},(0,h.get)(t,[r],{})))}function Io(e){return e?!1:e==null||isNaN(e)}function Xu(e){if((0,h.isArray)(e))return Io(e[1].y);var r=e.y;return(0,h.isArray)(r)?Io(r[0]):Io(r)}function Jn(e,r,t){if(r===void 0&&(r=!1),t===void 0&&(t=!0),!e.length||e.length===1&&!t)return[];if(r){for(var i=[],n=0,a=e.length;n0&&(d[0][0]="L")),a=a.concat(d)}),a.push(["Z"])}return a}function ta(e,r,t,i,n){for(var a=fe(e,r,!r,"lineWidth"),o=e.connectNulls,s=e.isInCircle,l=e.points,u=e.showSinglePoint,c=Jn(l,o,u),f=[],v=0,d=c.length;vo&&(o=l),l=i[0]}));var m=this.scales[p];try{for(var x=(0,g.__values)(t),_=x.next();!_.done;_=x.next()){var w=_.value,b=this.getDrawCfg(w),S=b.x,C=b.y,A=m.scale(w[rt][p]);this.drawGrayScaleBlurredCircle(S-u.x,C-c.y,n+a,A,y)}}catch(I){o={error:I}}finally{try{_&&!_.done&&(s=x.return)&&s.call(x)}finally{if(o)throw o.error}}var F=y.getImageData(0,0,f,v);this.clearShadowCanvasCtx(),this.colorize(F),y.putImageData(F,0,0);var P=this.getImageShape();P.attr("x",u.x),P.attr("y",c.y),P.attr("width",f),P.attr("height",v),P.attr("img",y.canvas),P.set("origin",this.getShapeInfo(t))},r.prototype.getDefaultSize=function(){var t=this.getAttribute("position"),i=this.coordinate;return Math.min(i.getWidth()/(t.scales[0].ticks.length*4),i.getHeight()/(t.scales[1].ticks.length*4))},r.prototype.clearShadowCanvasCtx=function(){var t=this.getShadowCanvasCtx();t.clearRect(0,0,t.canvas.width,t.canvas.height)},r.prototype.getShadowCanvasCtx=function(){var t=this.shadowCanvas;return t||(t=document.createElement("canvas"),this.shadowCanvas=t),t.width=this.coordinate.getWidth(),t.height=this.coordinate.getHeight(),t.getContext("2d")},r.prototype.getGrayScaleBlurredCanvas=function(){return this.grayScaleBlurredCanvas||(this.grayScaleBlurredCanvas=document.createElement("canvas")),this.grayScaleBlurredCanvas},r.prototype.drawGrayScaleBlurredCircle=function(t,i,n,a,o){var s=this.getGrayScaleBlurredCanvas();o.globalAlpha=a,o.drawImage(s,t-n,i-n)},r.prototype.colorize=function(t){for(var i=this.getAttribute("color"),n=t.data,a=this.paletteCache,o=3;or&&(t=t?r/(1+i/t):0,i=r-t),n+a>r&&(n=n?r/(1+a/n):0,a=r-n),[t||0,i||0,n||0,a||0]}function tc(e,r,t){var i=[];if(t.isRect){var n=t.isTransposed?{x:t.start.x,y:r[0].y}:{x:r[0].x,y:t.start.y},a=t.isTransposed?{x:t.end.x,y:r[2].y}:{x:r[3].x,y:t.end.y},o=(0,h.get)(e,["background","style","radius"]);if(o){var s=t.isTransposed?Math.abs(r[0].y-r[2].y):r[2].x-r[1].x,l=t.isTransposed?t.getWidth():t.getHeight(),u=(0,g.__read)(Ju(o,Math.min(s,l)),4),c=u[0],f=u[1],v=u[2],d=u[3],p=t.isTransposed&&t.isReflect("y"),y=p?0:1,m=function(C){return p?-C:C};i.push(["M",n.x,a.y+m(c)]),c!==0&&i.push(["A",c,c,0,0,y,n.x+c,a.y]),i.push(["L",a.x-f,a.y]),f!==0&&i.push(["A",f,f,0,0,y,a.x,a.y+m(f)]),i.push(["L",a.x,n.y-m(v)]),v!==0&&i.push(["A",v,v,0,0,y,a.x-v,n.y]),i.push(["L",n.x+d,n.y]),d!==0&&i.push(["A",d,d,0,0,y,n.x,n.y-m(d)])}else i.push(["M",n.x,n.y]),i.push(["L",a.x,n.y]),i.push(["L",a.x,a.y]),i.push(["L",n.x,a.y]),i.push(["L",n.x,n.y]);i.push(["z"])}if(t.isPolar){var x=t.getCenter(),_=Xi(e,t),w=_.startAngle,b=_.endAngle;if(t.type!=="theta"&&!t.isTransposed)i=_r(x.x,x.y,t.getRadius(),w,b);else{var S=function(F){return Math.pow(F,2)},c=Math.sqrt(S(x.x-r[0].x)+S(x.y-r[0].y)),f=Math.sqrt(S(x.x-r[2].x)+S(x.y-r[2].y));i=_r(x.x,x.y,c,t.startAngle,t.endAngle,f)}}return i}function j0(e,r,t){var i=t.getWidth(),n=t.getHeight(),a=t.type==="rect",o=[],s=(e[2].x-e[1].x)/2,l=t.isTransposed?s*n/i:s*i/n;return r==="round"?(a?(o.push(["M",e[0].x,e[0].y+l]),o.push(["L",e[1].x,e[1].y-l]),o.push(["A",s,s,0,0,1,e[2].x,e[2].y-l]),o.push(["L",e[3].x,e[3].y+l]),o.push(["A",s,s,0,0,1,e[0].x,e[0].y+l])):(o.push(["M",e[0].x,e[0].y]),o.push(["L",e[1].x,e[1].y]),o.push(["A",s,s,0,0,1,e[2].x,e[2].y]),o.push(["L",e[3].x,e[3].y]),o.push(["A",s,s,0,0,1,e[0].x,e[0].y])),o.push(["z"])):o=Bo(e),o}function ec(e,r,t){var i=[];return(0,h.isNil)(r)?t?i.push(["M",e[0].x,e[0].y],["L",e[1].x,e[1].y],["L",(e[2].x+e[3].x)/2,(e[2].y+e[3].y)/2],["Z"]):i.push(["M",e[0].x,e[0].y],["L",e[1].x,e[1].y],["L",e[2].x,e[2].y],["L",e[3].x,e[3].y],["Z"]):i.push(["M",e[0].x,e[0].y],["L",e[1].x,e[1].y],["L",r[1].x,r[1].y],["L",r[0].x,r[0].y],["Z"]),i}function en(e,r){return[r,e]}function Z0(e,r,t){var i,n,a,o,s,l,u,c=(0,g.__read)((0,g.__spreadArray)([],(0,g.__read)(e),!1),4),f=c[0],v=c[1],d=c[2],p=c[3],y=(0,g.__read)(typeof t=="number"?Array(4).fill(t):t,4),m=y[0],x=y[1],_=y[2],w=y[3];r.isTransposed&&(i=(0,g.__read)(en(v,p),2),v=i[0],p=i[1]),r.isReflect("y")&&(n=(0,g.__read)(en(f,v),2),f=n[0],v=n[1],a=(0,g.__read)(en(d,p),2),d=a[0],p=a[1]),r.isReflect("x")&&(o=(0,g.__read)(en(f,p),2),f=o[0],p=o[1],s=(0,g.__read)(en(v,d),2),v=s[0],d=s[1]);var b=[],S=function(C){return Math.abs(C)};return l=(0,g.__read)(Ju([m,x,_,w],Math.min(S(p.x-f.x),S(v.y-f.y))).map(function(C){return S(C)}),4),m=l[0],x=l[1],_=l[2],w=l[3],r.isTransposed&&(u=(0,g.__read)([w,m,x,_],4),m=u[0],x=u[1],_=u[2],w=u[3]),f.yo&&(n=o)}return n}function K0(e,r){if(r){var t=(0,h.flatten)(e),i=(0,h.valuesOfKey)(t,r);return i.length}return e.length}function Ro(e){var r=e.theme,t=e.coordinate,i=e.getXScale(),n=i.values,a=e.beforeMappingData,o=n.length,s=Ui(e.coordinate),l=e.intervalPadding,u=e.dodgePadding,c=e.maxColumnWidth||r.maxColumnWidth,f=e.minColumnWidth||r.minColumnWidth,v=e.columnWidthRatio||r.columnWidthRatio,d=e.multiplePieWidthRatio||r.multiplePieWidthRatio,p=e.roseWidthRatio||r.roseWidthRatio;if(i.isLinear&&n.length>1){n.sort();var y=q0(n,i);o=(i.max-i.min)/y,n.length>o&&(o=n.length)}var m=i.range,x=1/o,_=1;if(t.isPolar?t.isTransposed&&o>1?_=d:_=p:(i.isLinear&&(x*=m[1]-m[0]),_=v),!(0,h.isNil)(l)&&l>=0){var w=l/s;x=(1-(o-1)*w)/o}else x*=_;if(e.getAdjust("dodge")){var b=e.getAdjust("dodge"),S=b.dodgeBy,C=K0(a,S);if(!(0,h.isNil)(u)&&u>=0){var A=u/s;x=(x-A*(C-1))/C}else!(0,h.isNil)(l)&&l>=0&&(x*=_),x=x/C;x=x>=0?x:0}if(!(0,h.isNil)(c)&&c>=0){var F=c/s;x>F&&(x=F)}if(!(0,h.isNil)(f)&&f>=0){var P=f/s;x0&&!(0,h.get)(i,[n,"min"])&&t.change({min:0}),o<=0&&!(0,h.get)(i,[n,"max"])&&t.change({max:0}))}},r.prototype.getDrawCfg=function(t){var i=e.prototype.getDrawCfg.call(this,t);return i.background=this.background,i},r}(Cr),Q0=$0,J0=function(e){(0,g.__extends)(r,e);function r(t){var i=e.call(this,t)||this;i.type="line";var n=t.sortable,a=n===void 0?!1:n;return i.sortable=a,i}return r}(ko),tm=J0,rc=["circle","square","bowtie","diamond","hexagon","triangle","triangle-down"],em=["cross","tick","plus","hyphen","line"];function No(e,r,t,i,n){var a,o,s=fe(r,n,!n,"r"),l=e.parsePoints(r.points),u=l[0];if(r.isStack)u=l[1];else if(l.length>1){var c=t.addGroup();try{for(var f=(0,g.__values)(l),v=f.next();!v.done;v=f.next()){var d=v.value;c.addShape({type:"marker",attrs:(0,g.__assign)((0,g.__assign)((0,g.__assign)({},s),{symbol:Gr[i]||i}),d)})}}catch(p){a={error:p}}finally{try{v&&!v.done&&(o=f.return)&&o.call(f)}finally{if(a)throw a.error}}return c}return t.addShape({type:"marker",attrs:(0,g.__assign)((0,g.__assign)((0,g.__assign)({},s),{symbol:Gr[i]||i}),u)})}var qL=Sr("point",{defaultShapeType:"hollow-circle",getDefaultPoints:function(e){return Oo(e)}});(0,h.each)(rc,function(e){Zt("point","hollow-".concat(e),{draw:function(r,t){return No(this,r,t,e,!0)},getMarker:function(r){var t=r.color;return{symbol:Gr[e]||e,style:{r:4.5,stroke:t,fill:null}}}})});var KL=null,rm=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.type="point",t.shapeType="point",t.generatePoints=!0,t}return r.prototype.getDrawCfg=function(t){var i=e.prototype.getDrawCfg.call(this,t);return(0,g.__assign)((0,g.__assign)({},i),{isStack:!!this.getAdjust("stack")})},r}(Cr),im=rm;function nm(e){for(var r=e[0],t=1,i=[["M",r.x,r.y]];t2?"weight":"normal",a;if(e.isInCircle){var o={x:0,y:1};return n==="normal"?a=fm(i[0],i[1],o):(t.fill=t.stroke,a=vm(i,o)),a=this.parsePath(a),r.addShape("path",{attrs:(0,g.__assign)((0,g.__assign)({},t),{path:a})})}else{if(n==="normal")return i=this.parsePoints(i),a=Hl((i[1].x+i[0].x)/2,i[0].y,Math.abs(i[1].x-i[0].x)/2,Math.PI,Math.PI*2),r.addShape("path",{attrs:(0,g.__assign)((0,g.__assign)({},t),{path:a})});var s=zo(i[1],i[3]),l=zo(i[2],i[0]);return a=[["M",i[0].x,i[0].y],["L",i[1].x,i[1].y],s,["L",i[3].x,i[3].y],["L",i[2].x,i[2].y],l,["Z"]],a=this.parsePath(a),t.fill=t.stroke,r.addShape("path",{attrs:(0,g.__assign)((0,g.__assign)({},t),{path:a})})}},getMarker:function(e){return{symbol:"circle",style:{r:4.5,fill:e.color}}}});function dm(e,r){var t=zo(e,r),i=[["M",e.x,e.y]];return i.push(t),i}Zt("edge","smooth",{draw:function(e,r){var t=fe(e,!0,!1,"lineWidth"),i=e.points,n=this.parsePath(dm(i[0],i[1]));return r.addShape("path",{attrs:(0,g.__assign)((0,g.__assign)({},t),{path:n})})},getMarker:function(e){return{symbol:"circle",style:{r:4.5,fill:e.color}}}});var ea=1/3;function gm(e,r){var t=[];t.push({x:e.x,y:e.y*(1-ea)+r.y*ea}),t.push({x:r.x,y:e.y*(1-ea)+r.y*ea}),t.push(r);var i=[["M",e.x,e.y]];return(0,h.each)(t,function(n){i.push(["L",n.x,n.y])}),i}Zt("edge","vhv",{draw:function(e,r){var t=fe(e,!0,!1,"lineWidth"),i=e.points,n=this.parsePath(gm(i[0],i[1]));return r.addShape("path",{attrs:(0,g.__assign)((0,g.__assign)({},t),{path:n})})},getMarker:function(e){return{symbol:"circle",style:{r:4.5,fill:e.color}}}}),Zt("interval","funnel",{getPoints:function(e){return e.size=e.size*2,Do(e)},draw:function(e,r){var t=fe(e,!1,!0),i=this.parsePath(ec(e.points,e.nextPoints,!1)),n=r.addShape("path",{attrs:(0,g.__assign)((0,g.__assign)({},t),{path:i}),name:"interval"});return n},getMarker:function(e){var r=e.color;return{symbol:"square",style:{r:4,fill:r}}}}),Zt("interval","hollow-rect",{draw:function(e,r){var t=fe(e,!0,!1),i=r,n=e==null?void 0:e.background;if(n){i=r.addGroup();var a=Zu(e),o=tc(e,this.parsePoints(e.points),this.coordinate);i.addShape("path",{attrs:(0,g.__assign)((0,g.__assign)({},a),{path:o}),capture:!1,zIndex:-1,name:Mo})}var s=this.parsePath(Bo(e.points)),l=i.addShape("path",{attrs:(0,g.__assign)((0,g.__assign)({},t),{path:s}),name:"interval"});return n?i:l},getMarker:function(e){var r=e.color,t=e.isInPolar;return t?{symbol:"circle",style:{r:4.5,stroke:r,fill:null}}:{symbol:"square",style:{r:4,stroke:r,fill:null}}}});function pm(e){var r=e.x,t=e.y,i=e.y0;return(0,h.isArray)(t)?t.map(function(n,a){return{x:(0,h.isArray)(r)?r[a]:r,y:n}}):[{x:r,y:i},{x:r,y:t}]}Zt("interval","line",{getPoints:function(e){return pm(e)},draw:function(e,r){var t=fe(e,!0,!1,"lineWidth"),i=Oe((0,g.__assign)({},t),["fill"]),n=this.parsePath(Bo(e.points,!1)),a=r.addShape("path",{attrs:(0,g.__assign)((0,g.__assign)({},i),{path:n}),name:"interval"});return a},getMarker:function(e){var r=e.color;return{symbol:function(t,i,n){return[["M",t,i-n],["L",t,i+n]]},style:{r:5,stroke:r}}}}),Zt("interval","pyramid",{getPoints:function(e){return e.size=e.size*2,Do(e)},draw:function(e,r){var t=fe(e,!1,!0),i=this.parsePath(ec(e.points,e.nextPoints,!0)),n=r.addShape("path",{attrs:(0,g.__assign)((0,g.__assign)({},t),{path:i}),name:"interval"});return n},getMarker:function(e){var r=e.color;return{symbol:"square",style:{r:4,fill:r}}}});function ym(e){var r,t=e.x,i=e.y,n=e.y0,a=e.size,o,s;(0,h.isArray)(i)?(r=(0,g.__read)(i,2),o=r[0],s=r[1]):(o=n,s=i);var l=t+a/2,u=t-a/2;return[{x:t,y:o},{x:t,y:s},{x:u,y:o},{x:l,y:o},{x:u,y:s},{x:l,y:s}]}function mm(e){return[["M",e[0].x,e[0].y],["L",e[1].x,e[1].y],["M",e[2].x,e[2].y],["L",e[3].x,e[3].y],["M",e[4].x,e[4].y],["L",e[5].x,e[5].y]]}Zt("interval","tick",{getPoints:function(e){return ym(e)},draw:function(e,r){var t=fe(e,!0,!1),i=this.parsePath(mm(e.points)),n=r.addShape("path",{attrs:(0,g.__assign)((0,g.__assign)({},t),{path:i}),name:"interval"});return n},getMarker:function(e){var r=e.color;return{symbol:function(t,i,n){return[["M",t-n/2,i-n],["L",t+n/2,i-n],["M",t,i-n],["L",t,i+n],["M",t-n/2,i+n],["L",t+n/2,i+n]]},style:{r:5,stroke:r}}}});var xm=function(e,r,t){var i=e.x,n=e.y,a=r.x,o=r.y,s;switch(t){case"hv":s=[{x:a,y:n}];break;case"vh":s=[{x:i,y:o}];break;case"hvh":var l=(a+i)/2;s=[{x:l,y:n},{x:l,y:o}];break;case"vhv":var u=(n+o)/2;s=[{x:i,y:u},{x:a,y:u}];break;default:break}return s};function _m(e,r){var t=[];return(0,h.each)(e,function(i,n){var a=e[n+1];if(t.push(i),a){var o=xm(i,a,r);t=t.concat(o)}}),t}function wm(e){return e.map(function(r,t){return t===0?["M",r.x,r.y]:["L",r.x,r.y]})}function bm(e,r){var t=Jn(e.points,e.connectNulls,e.showSinglePoint),i=[];return(0,h.each)(t,function(n){var a=_m(n,r);i=i.concat(wm(a))}),(0,g.__assign)((0,g.__assign)({},fe(e,!0,!1,"lineWidth")),{path:i})}(0,h.each)(["hv","vh","hvh","vhv"],function(e){Zt("line",e,{draw:function(r,t){var i=bm(r,e),n=t.addShape({type:"path",attrs:i,name:"line"});return n},getMarker:function(r){return qu(r,e)}})}),(0,h.each)(em,function(e){Zt("point",e,{draw:function(r,t){return No(this,r,t,e,!0)},getMarker:function(r){var t=r.color;return{symbol:Gr[e],style:{r:4.5,stroke:t,fill:null}}}})}),Zt("point","image",{draw:function(e,r){var t,i,n=fe(e,!1,!1,"r").r,a=this.parsePoints(e.points),o=a[0];if(e.isStack)o=a[1];else if(a.length>1){var s=r.addGroup();try{for(var l=(0,g.__values)(a),u=l.next();!u.done;u=l.next()){var c=u.value;s.addShape("image",{attrs:{x:c.x-n/2,y:c.y-n,width:n,height:n,img:e.shape[1]}})}}catch(f){t={error:f}}finally{try{u&&!u.done&&(i=l.return)&&i.call(l)}finally{if(t)throw t.error}}return s}return r.addShape("image",{attrs:{x:o.x-n/2,y:o.y-n,width:n,height:n,img:e.shape[1]}})},getMarker:function(e){var r=e.color;return{symbol:"circle",style:{r:4.5,fill:r}}}}),(0,h.each)(rc,function(e){Zt("point",e,{draw:function(r,t){return No(this,r,t,e,!1)},getMarker:function(r){var t=r.color;return{symbol:Gr[e]||e,style:{r:4.5,fill:t}}}})});function ic(e){var r=(0,h.isArray)(e)?e:[e],t=r[0],i=r[r.length-1],n=r.length>1?r[1]:t,a=r.length>3?r[3]:i,o=r.length>2?r[2]:n;return{min:t,max:i,min1:n,max1:a,median:o}}function nc(e,r,t){var i=t/2,n;if((0,h.isArray)(r)){var a=ic(r),o=a.min,s=a.max,l=a.median,u=a.min1,c=a.max1,f=e-i,v=e+i;n=[[f,s],[v,s],[e,s],[e,c],[f,u],[f,c],[v,c],[v,u],[e,u],[e,o],[f,o],[v,o],[f,l],[v,l]]}else{r=(0,h.isNil)(r)?.5:r;var d=ic(e),o=d.min,s=d.max,l=d.median,u=d.min1,c=d.max1,p=r-i,y=r+i;n=[[o,p],[o,y],[o,r],[u,r],[u,p],[u,y],[c,y],[c,p],[c,r],[s,r],[s,p],[s,y],[l,p],[l,y]]}return n.map(function(m){return{x:m[0],y:m[1]}})}function Sm(e){return[["M",e[0].x,e[0].y],["L",e[1].x,e[1].y],["M",e[2].x,e[2].y],["L",e[3].x,e[3].y],["M",e[4].x,e[4].y],["L",e[5].x,e[5].y],["L",e[6].x,e[6].y],["L",e[7].x,e[7].y],["L",e[4].x,e[4].y],["Z"],["M",e[8].x,e[8].y],["L",e[9].x,e[9].y],["M",e[10].x,e[10].y],["L",e[11].x,e[11].y],["M",e[12].x,e[12].y],["L",e[13].x,e[13].y]]}Zt("schema","box",{getPoints:function(e){var r=e.x,t=e.y,i=e.size;return nc(r,t,i)},draw:function(e,r){var t=fe(e,!0,!1),i=this.parsePath(Sm(e.points)),n=r.addShape("path",{attrs:(0,g.__assign)((0,g.__assign)({},t),{path:i,name:"schema"})});return n},getMarker:function(e){var r=e.color;return{symbol:function(t,i,n){var a=[i-6,i-3,i,i+3,i+6],o=nc(t,a,n);return[["M",o[0].x+1,o[0].y],["L",o[1].x-1,o[1].y],["M",o[2].x,o[2].y],["L",o[3].x,o[3].y],["M",o[4].x,o[4].y],["L",o[5].x,o[5].y],["L",o[6].x,o[6].y],["L",o[7].x,o[7].y],["L",o[4].x,o[4].y],["Z"],["M",o[8].x,o[8].y],["L",o[9].x,o[9].y],["M",o[10].x+1,o[10].y],["L",o[11].x-1,o[11].y],["M",o[12].x,o[12].y],["L",o[13].x,o[13].y]]},style:{r:6,lineWidth:1,stroke:r}}}});function Cm(e){var r=(0,h.isArray)(e)?e:[e],t=r.sort(function(i,n){return n-i});return qp(t,4,t[t.length-1])}function ac(e,r,t){var i=Cm(r);return[{x:e,y:i[0]},{x:e,y:i[1]},{x:e-t/2,y:i[2]},{x:e-t/2,y:i[1]},{x:e+t/2,y:i[1]},{x:e+t/2,y:i[2]},{x:e,y:i[2]},{x:e,y:i[3]}]}function Am(e){return[["M",e[0].x,e[0].y],["L",e[1].x,e[1].y],["M",e[2].x,e[2].y],["L",e[3].x,e[3].y],["L",e[4].x,e[4].y],["L",e[5].x,e[5].y],["Z"],["M",e[6].x,e[6].y],["L",e[7].x,e[7].y]]}Zt("schema","candle",{getPoints:function(e){var r=e.x,t=e.y,i=e.size;return ac(r,t,i)},draw:function(e,r){var t=fe(e,!0,!0),i=this.parsePath(Am(e.points)),n=r.addShape("path",{attrs:(0,g.__assign)((0,g.__assign)({},t),{path:i,name:"schema"})});return n},getMarker:function(e){var r=e.color;return{symbol:function(t,i,n){var a=[i+7.5,i+3,i-3,i-7.5],o=ac(t,a,n);return[["M",o[0].x,o[0].y],["L",o[1].x,o[1].y],["M",o[2].x,o[2].y],["L",o[3].x,o[3].y],["L",o[4].x,o[4].y],["L",o[5].x,o[5].y],["Z"],["M",o[6].x,o[6].y],["L",o[7].x,o[7].y]]},style:{lineWidth:1,stroke:r,fill:r,r:6}}}});function Mm(e,r){var t=Math.abs(e[0].x-e[2].x),i=Math.abs(e[0].y-e[2].y),n=Math.min(t,i);r&&(n=(0,h.clamp)(r,0,Math.min(t,i))),n=n/2;var a=(e[0].x+e[2].x)/2,o=(e[0].y+e[2].y)/2;return{x:a-n,y:o-n,width:n*2,height:n*2}}Zt("polygon","square",{draw:function(e,r){if(!(0,h.isEmpty)(e.points)){var t=fe(e,!0,!0),i=this.parsePoints(e.points);return r.addShape("rect",{attrs:(0,g.__assign)((0,g.__assign)({},t),Mm(i,e.size)),name:"polygon"})}},getMarker:function(e){var r=e.color;return{symbol:"square",style:{r:4,fill:r}}}}),Zt("violin","smooth",{draw:function(e,r){var t=fe(e,!0,!0),i=this.parsePath(ju(e.points));return r.addShape("path",{attrs:(0,g.__assign)((0,g.__assign)({},t),{path:i})})},getMarker:function(e){var r=e.color;return{symbol:"circle",style:{stroke:null,r:4,fill:r}}}}),Zt("violin","hollow",{draw:function(e,r){var t=fe(e,!0,!1),i=this.parsePath(Uu(e.points));return r.addShape("path",{attrs:(0,g.__assign)((0,g.__assign)({},t),{path:i})})},getMarker:function(e){var r=e.color;return{symbol:"circle",style:{r:4,fill:null,stroke:r}}}}),Zt("violin","hollow-smooth",{draw:function(e,r){var t=fe(e,!0,!1),i=this.parsePath(ju(e.points));return r.addShape("path",{attrs:(0,g.__assign)((0,g.__assign)({},t),{path:i})})},getMarker:function(e){var r=e.color;return{symbol:"circle",style:{r:4,fill:null,stroke:r}}}});var Fm=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getLabelValueDir=function(t){var i="y",n=t.points;return n[0][i]<=n[2][i]?1:-1},r.prototype.getLabelOffsetPoint=function(t,i,n,a){var o,s=e.prototype.getLabelOffsetPoint.call(this,t,i,n),l=this.getCoordinate(),u=l.isTransposed,c=u?"x":"y",f=this.getLabelValueDir(t.mappingData);return s=(0,g.__assign)((0,g.__assign)({},s),(o={},o[c]=s[c]*f,o)),l.isReflect("x")&&(s=(0,g.__assign)((0,g.__assign)({},s),{x:s.x*-1})),l.isReflect("y")&&(s=(0,g.__assign)((0,g.__assign)({},s),{y:s.y*-1})),s},r.prototype.getThemedLabelCfg=function(t){var i=this.geometry,n=this.getDefaultLabelCfg(),a=i.theme;return(0,h.deepMix)({},n,a.labels,t.position==="middle"?{offset:0}:{},t)},r.prototype.setLabelPosition=function(t,i,n,a){var o=this.getCoordinate(),s=o.isTransposed,l=i.points,u=o.convert(l[0]),c=o.convert(l[2]),f=this.getLabelValueDir(i),v,d,p,y,m=(0,h.isArray)(i.shape)?i.shape[0]:i.shape;if(m==="funnel"||m==="pyramid"){var x=(0,h.get)(i,"nextPoints"),_=(0,h.get)(i,"points");if(x){var w=o.convert(_[0]),b=o.convert(_[1]),S=o.convert(x[0]),C=o.convert(x[1]);s?(v=Math.min(S.y,w.y),p=Math.max(S.y,w.y),d=(b.x+C.x)/2,y=(w.x+S.x)/2):(v=Math.min((b.y+C.y)/2,(w.y+S.y)/2),p=Math.max((b.y+C.y)/2,(w.y+S.y)/2),d=C.x,y=w.x)}else v=Math.min(c.y,u.y),p=Math.max(c.y,u.y),d=c.x,y=u.x}else v=Math.min(c.y,u.y),p=Math.max(c.y,u.y),d=c.x,y=u.x;switch(a){case"right":t.x=d,t.y=(v+p)/2,t.textAlign=(0,h.get)(t,"textAlign",f>0?"left":"right");break;case"left":t.x=y,t.y=(v+p)/2,t.textAlign=(0,h.get)(t,"textAlign",f>0?"left":"right");break;case"bottom":s&&(t.x=(d+y)/2),t.y=p,t.textAlign=(0,h.get)(t,"textAlign","center"),t.textBaseline=(0,h.get)(t,"textBaseline",f>0?"bottom":"top");break;case"middle":s&&(t.x=(d+y)/2),t.y=(v+p)/2,t.textAlign=(0,h.get)(t,"textAlign","center"),t.textBaseline=(0,h.get)(t,"textBaseline","middle");break;case"top":s&&(t.x=(d+y)/2),t.y=v,t.textAlign=(0,h.get)(t,"textAlign","center"),t.textBaseline=(0,h.get)(t,"textBaseline",f>0?"bottom":"top");break;default:break}},r}(Qn),Em=Fm,ra=Math.PI/2,Tm=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getLabelOffset=function(t){var i=this.getCoordinate(),n=0;if((0,h.isNumber)(t))n=t;else if((0,h.isString)(t)&&t.indexOf("%")!==-1){var a=i.getRadius();i.innerRadius>0&&(a=a*(1-i.innerRadius)),n=parseFloat(t)*.01*a}return n},r.prototype.getLabelItems=function(t){var i=e.prototype.getLabelItems.call(this,t),n=this.geometry.getYScale();return(0,h.map)(i,function(a){if(a&&n){var o=n.scale((0,h.get)(a.data,n.field));return(0,g.__assign)((0,g.__assign)({},a),{percent:o})}return a})},r.prototype.getLabelAlign=function(t){var i=this.getCoordinate(),n;if(t.labelEmit)n=t.angle<=Math.PI/2&&t.angle>=-Math.PI/2?"left":"right";else if(!i.isTransposed)n="center";else{var a=i.getCenter(),o=t.offset;Math.abs(t.x-a.x)<1?n="center":t.angle>Math.PI||t.angle<=0?n=o>0?"left":"right":n=o>0?"right":"left"}return n},r.prototype.getLabelPoint=function(t,i,n){var a=1,o,s=t.content[n];this.isToMiddle(i)?o=this.getMiddlePoint(i.points):(t.content.length===1&&n===0?n=1:n===0&&(a=-1),o=this.getArcPoint(i,n));var l=t.offset*a,u=this.getPointAngle(o),c=t.labelEmit,f=this.getCirclePoint(u,l,o,c);return f.r===0?f.content="":(f.content=s,f.angle=u,f.color=i.color),f.rotate=t.autoRotate?this.getLabelRotate(u,l,c):t.rotate,f.start={x:o.x,y:o.y},f},r.prototype.getArcPoint=function(t,i){return i===void 0&&(i=0),!(0,h.isArray)(t.x)&&!(0,h.isArray)(t.y)?{x:t.x,y:t.y}:{x:(0,h.isArray)(t.x)?t.x[i]:t.x,y:(0,h.isArray)(t.y)?t.y[i]:t.y}},r.prototype.getPointAngle=function(t){return ui(this.getCoordinate(),t)},r.prototype.getCirclePoint=function(t,i,n,a){var o=this.getCoordinate(),s=o.getCenter(),l=zn(o,n);if(l===0)return(0,g.__assign)((0,g.__assign)({},s),{r:l});var u=t;if(o.isTransposed&&l>i&&!a){var c=Math.asin(i/(2*l));u=t+c*2}else l=l+i;return{x:s.x+l*Math.cos(u),y:s.y+l*Math.sin(u),r:l}},r.prototype.getLabelRotate=function(t,i,n){var a=t+ra;return n&&(a-=ra),a&&(a>ra?a=a-Math.PI:a<-ra&&(a=a+Math.PI)),a},r.prototype.getMiddlePoint=function(t){var i=this.getCoordinate(),n=t.length,a={x:0,y:0};return(0,h.each)(t,function(o){a.x+=o.x,a.y+=o.y}),a.x/=n,a.y/=n,a=i.convert(a),a},r.prototype.isToMiddle=function(t){return t.x.length>2},r}(Qn),oc=Tm,Lm=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.defaultLayout="distribute",t}return r.prototype.getDefaultLabelCfg=function(t,i){var n=e.prototype.getDefaultLabelCfg.call(this,t,i);return(0,h.deepMix)({},n,(0,h.get)(this.geometry.theme,"pieLabels",{}))},r.prototype.getLabelOffset=function(t){return e.prototype.getLabelOffset.call(this,t)||0},r.prototype.getLabelRotate=function(t,i,n){var a;return i<0&&(a=t,a>Math.PI/2&&(a=a-Math.PI),a<-Math.PI/2&&(a=a+Math.PI)),a},r.prototype.getLabelAlign=function(t){var i=this.getCoordinate(),n=i.getCenter(),a;return t.angle<=Math.PI/2&&t.x>=n.x?a="left":a="right",t.offset<=0&&(a==="right"?a="left":a="right"),a},r.prototype.getArcPoint=function(t){return t},r.prototype.getPointAngle=function(t){var i=this.getCoordinate(),n={x:(0,h.isArray)(t.x)?t.x[0]:t.x,y:t.y[0]},a={x:(0,h.isArray)(t.x)?t.x[1]:t.x,y:t.y[1]},o,s=ui(i,n);if(t.points&&t.points[0].y===t.points[1].y)o=s;else{var l=ui(i,a);s>=l&&(l=l+Math.PI*2),o=s+(l-s)/2}return o},r.prototype.getCirclePoint=function(t,i){var n=this.getCoordinate(),a=n.getCenter(),o=n.getRadius()+i;return(0,g.__assign)((0,g.__assign)({},ge(a.x,a.y,o,t)),{angle:t,r:o})},r}(oc),Im=Lm,sc=4;function Om(e,r,t,i,n,a){var o,s,l=!0,u=i.start,c=i.end,f=Math.min(u.y,c.y),v=Math.abs(u.y-c.y),d,p=0,y=Number.MIN_VALUE,m=r.map(function(A){return A.y>p&&(p=A.y),A.yv&&(v=p-f);l;)for(m.forEach(function(A){var F=(Math.min.apply(y,A.targets)+Math.max.apply(y,A.targets))/2;A.pos=Math.min(Math.max(y,F-A.size/2),v-A.size)}),l=!1,d=m.length;d--;)if(d>0){var x=m[d-1],_=m[d];x.pos+x.size>_.pos&&(x.size+=_.size,x.targets=x.targets.concat(_.targets),x.pos+x.size>v&&(x.pos=v-x.size),m.splice(d,1),l=!0)}d=0,m.forEach(function(A){var F=f+t/2;A.targets.forEach(function(){r[d].y=A.pos+F,F+=t,d++})});var w={};try{for(var b=(0,g.__values)(e),S=b.next();!S.done;S=b.next()){var C=S.value;w[C.get("id")]=C}}catch(A){o={error:A}}finally{try{S&&!S.done&&(s=b.return)&&s.call(b)}finally{if(o)throw o.error}}r.forEach(function(A){var F=A.r*A.r,P=Math.pow(Math.abs(A.y-n.y),2);if(F0){var l=14,u=o+n,c=u*2+l*2,f={start:a.start,end:a.end},v=[[],[]];e.forEach(function(d){!d||(d.textAlign==="right"?v[0].push(d):v[1].push(d))}),v.forEach(function(d,p){var y=c/l;d.length>y&&(d.sort(function(m,x){return x["..percent"]-m["..percent"]}),d.splice(y,d.length-y)),d.sort(function(m,x){return m.y-x.y}),Om(r,d,l,f,s,p)})}(0,h.each)(e,function(d){if(d&&d.labelLine){var p=d.offset,y=d.angle,m=ge(s.x,s.y,o,y),x=ge(s.x,s.y,o+p/2,y),_=d.x+(0,h.get)(d,"offsetX",0),w=d.y+(0,h.get)(d,"offsetY",0),b={x:_-Math.cos(y)*sc,y:w-Math.sin(y)*sc};(0,h.isObject)(d.labelLine)||(d.labelLine={}),d.labelLine.path=["M ".concat(m.x),"".concat(m.y," Q").concat(x.x),"".concat(x.y," ").concat(b.x),b.y].join(",")}})}}function lc(e,r,t){var i=e.filter(function(p){return!p.invisible});i.sort(function(p,y){return p.y-y.y});var n=!0,a=t.minY,o=t.maxY,s=Math.abs(a-o),l,u=0,c=Number.MIN_VALUE,f=i.map(function(p){return p.y>u&&(u=p.y),p.ys&&(s=u-a);n;)for(f.forEach(function(p){var y=(Math.min.apply(c,p.targets)+Math.max.apply(c,p.targets))/2;p.pos=Math.min(Math.max(c,y-p.size/2),s-p.size),p.pos=Math.max(0,p.pos)}),n=!1,l=f.length;l--;)if(l>0){var v=f[l-1],d=f[l];v.pos+v.size>d.pos&&(v.size+=d.size,v.targets=v.targets.concat(d.targets),v.pos+v.size>s&&(v.pos=s-v.size),f.splice(l,1),n=!0)}l=0,f.forEach(function(p){var y=a+r/2;p.targets.forEach(function(){i[l].y=p.pos+y,y+=r,l++})})}var uc=4;function km(e,r){var t=r.getCenter(),i=r.getRadius();if(e&&e.labelLine){var n=e.angle,a=e.offset,o=ge(t.x,t.y,i,n),s=e.x+(0,h.get)(e,"offsetX",0)*(Math.cos(n)>0?1:-1),l=e.y+(0,h.get)(e,"offsetY",0)*(Math.sin(n)>0?1:-1),u={x:s-Math.cos(n)*uc,y:l-Math.sin(n)*uc},c=e.labelLine.smooth,f=[],v=u.x-t.x,d=u.y-t.y,p=Math.atan(d/v);if(v<0&&(p+=Math.PI),c===!1){(0,h.isObject)(e.labelLine)||(e.labelLine={});var y=0;(n<0&&n>-Math.PI/2||n>Math.PI*1.5)&&u.y>o.y&&(y=1),n>=0&&no.y&&(y=1),n>=Math.PI/2&&nu.y&&(y=1),(n<-Math.PI/2||n>=Math.PI&&nu.y&&(y=1);var m=a/2>4?4:Math.max(a/2-1,0),x=ge(t.x,t.y,i+m,n),_=ge(t.x,t.y,i+a/2,p),w=0;f.push("M ".concat(o.x," ").concat(o.y)),f.push("L ".concat(x.x," ").concat(x.y)),f.push("A ".concat(t.x," ").concat(t.y," 0 ").concat(w," ").concat(y," ").concat(_.x," ").concat(_.y)),f.push("L ".concat(u.x," ").concat(u.y))}else{var x=ge(t.x,t.y,i+(a/2>4?4:Math.max(a/2-1,0)),n),b=o.xMath.pow(Math.E,-16)&&f.push.apply(f,["C",u.x+b*4,u.y,2*x.x-o.x,2*x.y-o.y,o.x,o.y]),f.push("L ".concat(o.x," ").concat(o.y))}e.labelLine.path=f.join(" ")}}function Dm(e,r,t,i){var n,a,o=(0,h.filter)(e,function(F){return!(0,h.isNil)(F)}),s=r[0]&&r[0].get("coordinate");if(!!s){var l=s.getCenter(),u=s.getRadius(),c={};try{for(var f=(0,g.__values)(r),v=f.next();!v.done;v=f.next()){var d=v.value;c[d.get("id")]=d}}catch(F){n={error:F}}finally{try{v&&!v.done&&(a=f.return)&&a.call(f)}finally{if(n)throw n.error}}var p=(0,h.get)(o[0],"labelHeight",14),y=(0,h.get)(o[0],"offset",0);if(!(y<=0)){var m="left",x="right",_=(0,h.groupBy)(o,function(F){return F.xI&&(F.sort(function(V,Z){return Z.percent-V.percent}),(0,h.each)(F,function(V,Z){Z+1>I&&(c[V.id].set("visible",!1),V.invisible=!0)})),lc(F,p,A)}),(0,h.each)(_,function(F,P){(0,h.each)(F,function(I){var V=P===x,Z=c[I.id],vt=Z.getChildByIndex(0);if(vt){var yt=u+y,Bt=I.y-l.y,G=Math.pow(yt,2),at=Math.pow(Bt,2),mt=G-at>0?G-at:0,ut=Math.sqrt(mt),pt=Math.abs(Math.cos(I.angle)*yt);V?I.x=l.x+Math.max(ut,pt):I.x=l.x-Math.max(ut,pt)}vt&&(vt.attr("y",I.y),vt.attr("x",I.x)),km(I,s)})})}}}var Go=4,Bm=4,cc=4;function Rm(e,r,t){var i=r.getCenter(),n=r.getRadius(),a={x:e.x-(t?cc:-cc),y:e.y},o=ge(i.x,i.y,n+Go,e.angle),s={x:a.x,y:a.y},l={x:o.x,y:o.y},u=ge(i.x,i.y,n,e.angle),c="";if(a.y!==o.y){var f=t?4:-4;s.y=a.y,e.angle<0&&e.angle>=-Math.PI/2&&(s.x=Math.max(o.x,a.x-f),a.y0&&e.angleo.y?l.y=s.y:(l.y=o.y,l.x=Math.max(l.x,s.x-f))),e.angle>Math.PI/2&&(s.x=Math.min(o.x,a.x-f),a.y>o.y?l.y=s.y:(l.y=o.y,l.x=Math.min(l.x,s.x-f))),e.angle<-Math.PI/2&&(s.x=Math.min(o.x,a.x-f),a.ys.x||F.x===s.x&&F.y>s.y,V=(0,h.isNil)(F.offsetX)?Bm:F.offsetX,Z=ge(s.x,s.y,l+Go,F.angle),vt=p+V;F.x=s.x+(I?1:-1)*(l+vt),F.y=Z.y}}});var y=o.start,m=o.end,x="left",_="right",w=(0,h.groupBy)(e,function(F){return F.xb&&(b=Math.min(P,Math.abs(y.y-m.y)))});var S={minX:y.x,maxX:m.x,minY:s.y-b/2,maxY:s.y+b/2};(0,h.each)(w,function(F,P){var I=b/d;F.length>I&&(F.sort(function(V,Z){return Z.percent-V.percent}),(0,h.each)(F,function(V,Z){Z>I&&(u[V.id].set("visible",!1),V.invisible=!0)})),lc(F,d,S)});var C=S.minY,A=S.maxY;(0,h.each)(w,function(F,P){var I=P===_;(0,h.each)(F,function(V){var Z=(0,h.get)(u,V&&[V.id]);if(!!Z){if(V.yA){Z.set("visible",!1);return}var vt=Z.getChildByIndex(0),yt=vt.getCanvasBBox(),Bt={x:I?yt.x:yt.maxX,y:yt.y+yt.height/2};tn(vt,V.x-Bt.x,V.y-Bt.y),V.labelLine&&Rm(V,o,I)}})})}}function zm(e,r,t,i){(0,h.each)(r,function(n){var a=i.minX,o=i.minY,s=i.maxX,l=i.maxY,u=n.getCanvasBBox(),c=u.minX,f=u.minY,v=u.maxX,d=u.maxY,p=u.x,y=u.y,m=u.width,x=u.height,_=p,w=y;(cs?_=s-m:v>s&&(_=_-(v-s)),f>l?w=l-x:d>l&&(w=w-(d-l)),(_!==p||w!==y)&&tn(n,_-p,w-y)})}function Vm(e,r,t,i){(0,h.each)(r,function(n,a){var o=n.getCanvasBBox(),s=t[a].getBBox();(o.minXs.maxX||o.maxY>s.maxY)&&n.remove(!0)})}var Gm=100,hc=function(){function e(r){r===void 0&&(r={}),this.bitmap={};var t=r.xGap,i=t===void 0?1:t,n=r.yGap,a=n===void 0?8:n;this.xGap=i,this.yGap=a}return e.prototype.hasGap=function(r){for(var t=!0,i=this.bitmap,n=Math.round(r.minX),a=Math.round(r.maxX),o=Math.round(r.minY),s=Math.round(r.maxY),l=n;l<=a;l+=1){if(!i[l]){i[l]={};continue}if(l===n||l===a){for(var u=o;u<=s;u++)if(i[l][u]){t=!1;break}}else if(i[l][o]||i[l][s]){t=!1;break}}return t},e.prototype.fillGap=function(r){for(var t=this.bitmap,i=Math.round(r.minX),n=Math.round(r.maxX),a=Math.round(r.minY),o=Math.round(r.maxY),s=i;s<=n;s+=1)t[s]||(t[s]={});for(var s=i;s<=n;s+=this.xGap){for(var l=a;l<=o;l+=this.yGap)t[s][l]=!0;t[s][o]=!0}if(this.yGap!==1)for(var s=a;s<=o;s+=1)t[i][s]=!0,t[n][s]=!0;if(this.xGap!==1)for(var s=i;s<=n;s+=1)t[s][a]=!0,t[s][o]=!0},e.prototype.destroy=function(){this.bitmap={}},e}();function Wm(e,r,t){t===void 0&&(t=Gm);var i=-1,n=e.attr(),a=n.x,o=n.y,s=e.getCanvasBBox(),l=Math.sqrt(s.width*s.width+s.height*s.height),u,c=-i,f=0,v=0,d=function(x){var _=x*.1;return[_*Math.cos(_),_*Math.sin(_)]};if(r.hasGap(s))return r.fillGap(s),!0;for(var p=!1,y=0,m={};Math.min(Math.abs(f),Math.abs(v))4)return[];var r=function(n,a){return[a.x-n.x,a.y-n.y]},t=r(e[0],e[1]),i=r(e[1],e[2]);return[t,i]}function ia(e,r,t){r===void 0&&(r=0),t===void 0&&(t={x:0,y:0});var i=e.x,n=e.y;return{x:(i-t.x)*Math.cos(-r)+(n-t.y)*Math.sin(-r)+t.x,y:(t.x-i)*Math.sin(-r)+(n-t.y)*Math.cos(-r)+t.y}}function vc(e){var r=[{x:e.x,y:e.y},{x:e.x+e.width,y:e.y},{x:e.x+e.width,y:e.y+e.height},{x:e.x,y:e.y+e.height}],t=e.rotation;return t?[ia(r[0],t,r[0]),ia(r[1],t,r[0]),ia(r[2],t,r[0]),ia(r[3],t,r[0])]:r}function dc(e,r){if(e.length>4)return{min:0,max:0};var t=[];return e.forEach(function(i){t.push(Um([i.x,i.y],r))}),{min:Math.min.apply(Math,(0,g.__spreadArray)([],(0,g.__read)(t),!1)),max:Math.max.apply(Math,(0,g.__spreadArray)([],(0,g.__read)(t),!1))}}function jm(e,r){return e.max>r.min&&e.mine.x+e.width+t||r.x+r.widthe.y+e.height+t||r.y+r.height4)return[];var b=function(A,F){return[F.x-A.x,F.y-A.y]},S=b(w[0],w[1]),C=b(w[1],w[2]);return[S,C]}function f(w,b,S){b===void 0&&(b=0),S===void 0&&(S={x:0,y:0});var C=w.x,A=w.y;return{x:(C-S.x)*Math.cos(-b)+(A-S.y)*Math.sin(-b)+S.x,y:(S.x-C)*Math.sin(-b)+(A-S.y)*Math.cos(-b)+S.y}}function v(w){var b=[{x:w.x,y:w.y},{x:w.x+w.width,y:w.y},{x:w.x+w.width,y:w.y+w.height},{x:w.x,y:w.y+w.height}],S=w.rotation;return S?[f(b[0],S,b[0]),f(b[1],S,b[0]),f(b[2],S,b[0]),f(b[3],S,b[0])]:b}function d(w,b){if(w.length>4)return{min:0,max:0};var S=[];return w.forEach(function(C){S.push(u([C.x,C.y],b))}),{min:Math.min.apply(null,S),max:Math.max.apply(null,S)}}function p(w,b){return w.max>b.min&&w.minw.x+w.width+S||b.x+b.widthw.y+w.height+S||b.y+b.height=a.height:o.width>=a.width}function ax(e,r,t){var i=!!e.getAdjust("stack");return i||r.every(function(n,a){var o=t[a];return nx(e,n,o)})}function ox(e,r,t){var i=e.coordinate,n=Ee.fromObject(t.getBBox()),a=Ar(r);i.isTransposed?a.attr({x:n.minX+n.width/2,textAlign:"center"}):a.attr({y:n.minY+n.height/2,textBaseline:"middle"})}function sx(e,r,t){var i;if(t.length!==0){var n=(i=t[0])===null||i===void 0?void 0:i.get("element"),a=n==null?void 0:n.geometry;if(!(!a||a.type!=="interval")){var o=ax(a,r,t);o&&t.forEach(function(s,l){var u=r[l];ox(a,u,s)})}}}function lx(e){var r=500,t=[],i=Math.max(Math.floor(e.length/r),1);return(0,h.each)(e,function(n,a){a%i==0?t.push(n):n.set("visible",!1)}),t}function ux(e,r,t){var i;if(t.length!==0){var n=(i=t[0])===null||i===void 0?void 0:i.get("element"),a=n==null?void 0:n.geometry;if(!(!a||a.type!=="interval")){var o=lx(r),s=(0,g.__read)(a.getXYFields(),1),l=s[0],u=[],c=[],f=(0,h.groupBy)(o,function(m){return m.get("data")[l]}),v=(0,h.uniq)((0,h.map)(o,function(m){return m.get("data")[l]})),d;o.forEach(function(m){m.set("visible",!0)});var p=function(m){m&&(m.length&&c.push(m.pop()),c.push.apply(c,(0,g.__spreadArray)([],(0,g.__read)(m),!1)))};for((0,h.size)(v)>0&&(d=v.shift(),p(f[d])),(0,h.size)(v)>0&&(d=v.pop(),p(f[d])),(0,h.each)(v.reverse(),function(m){p(f[m])});c.length>0;){var y=c.shift();y.get("visible")&&(S0(y,u)?y.set("visible",!1):u.push(y))}}}}function cx(e,r){var t=e.getXYFields()[1],i=[],n=r.sort(function(a,o){return a.get("data")[t]-a.get("data")[t]});return n.length>0&&i.push(n.shift()),n.length>0&&i.push(n.pop()),i.push.apply(i,(0,g.__spreadArray)([],(0,g.__read)(n),!1)),i}function mc(e,r,t){return e.some(function(i){return t(i,r)})}function hx(e,r,t){t===void 0&&(t=0);var i=Math.max(0,Math.min(e.x+e.width+t,r.x+r.width+t)-Math.max(e.x-t,r.x-t)),n=Math.max(0,Math.min(e.y+e.height+t,r.y+r.height+t)-Math.max(e.y-t,r.y-t));return i*n}function xc(e,r){return mc(e,r,function(t,i){var n=Ar(t),a=Ar(i);return hx(n.getCanvasBBox(),a.getCanvasBBox(),2)>0})}function fx(e,r,t,i,n){var a,o;if(t.length!==0){var s=(a=t[0])===null||a===void 0?void 0:a.get("element"),l=s==null?void 0:s.geometry;if(!(!l||l.type!=="point")){var u=(0,g.__read)(l.getXYFields(),2),c=u[0],f=u[1],v=(0,h.groupBy)(r,function(y){return y.get("data")[c]}),d=[],p=n&&n.offset||((o=e[0])===null||o===void 0?void 0:o.offset)||12;(0,h.map)((0,h.keys)(v).reverse(),function(y){for(var m=cx(l,v[y]);m.length;){var x=m.shift(),_=Ar(x);if(mc(d,x,function(S,C){return S.get("data")[c]===C.get("data")[c]&&S.get("data")[f]===C.get("data")[f]})){_.set("visible",!1);continue}var w=xc(d,x),b=!1;if(w&&(_.attr("y",_.attr("y")+2*p),b=xc(d,x)),b){_.set("visible",!1);continue}d.push(x)}})}}}function vx(e,r){var t=e.getXYFields()[1],i=[],n=r.sort(function(a,o){return a.get("data")[t]-a.get("data")[t]});return n.length>0&&i.push(n.shift()),n.length>0&&i.push(n.pop()),i.push.apply(i,(0,g.__spreadArray)([],(0,g.__read)(n),!1)),i}function _c(e,r,t){return e.some(function(i){return t(i,r)})}function dx(e,r,t){t===void 0&&(t=0);var i=Math.max(0,Math.min(e.x+e.width+t,r.x+r.width+t)-Math.max(e.x-t,r.x-t)),n=Math.max(0,Math.min(e.y+e.height+t,r.y+r.height+t)-Math.max(e.y-t,r.y-t));return i*n}function wc(e,r){return _c(e,r,function(t,i){var n=Ar(t),a=Ar(i);return dx(n.getCanvasBBox(),a.getCanvasBBox(),2)>0})}function gx(e,r,t,i,n){var a,o;if(t.length!==0){var s=(a=t[0])===null||a===void 0?void 0:a.get("element"),l=s==null?void 0:s.geometry;if(!(!l||["path","line","area"].indexOf(l.type)<0)){var u=(0,g.__read)(l.getXYFields(),2),c=u[0],f=u[1],v=(0,h.groupBy)(r,function(y){return y.get("data")[c]}),d=[],p=n&&n.offset||((o=e[0])===null||o===void 0?void 0:o.offset)||12;(0,h.map)((0,h.keys)(v).reverse(),function(y){for(var m=vx(l,v[y]);m.length;){var x=m.shift(),_=Ar(x);if(_c(d,x,function(S,C){return S.get("data")[c]===C.get("data")[c]&&S.get("data")[f]===C.get("data")[f]})){_.set("visible",!1);continue}var w=wc(d,x),b=!1;if(w&&(_.attr("y",_.attr("y")+2*p),b=wc(d,x)),b){_.set("visible",!1);continue}d.push(x)}})}}}var Yo;function px(){return Yo||(Yo=document.createElement("canvas").getContext("2d")),Yo}var na=(0,h.memoize)(function(e,r){r===void 0&&(r={});var t=r.fontSize,i=r.fontFamily,n=r.fontWeight,a=r.fontStyle,o=r.fontVariant,s=px();return s.font=[a,o,n,"".concat(t,"px"),i].join(" "),s.measureText((0,h.isString)(e)?e:"").width},function(e,r){return r===void 0&&(r={}),(0,g.__spreadArray)([e],(0,g.__read)((0,h.values)(r)),!1).join("")}),yx=function(e,r,t){var i=16,n=na("...",t),a;(0,h.isString)(e)?a=e:a=(0,h.toString)(e);var o=r,s=[],l,u;if(na(e,t)<=r)return e;for(;l=a.substr(0,i),u=na(l,t),!(u+n>o&&u>o);)if(s.push(l),o-=u,a=a.substr(i),!a)return s.join("");for(;l=a.substr(0,1),u=na(l,t),!(u+n>o);)if(s.push(l),o-=u,a=a.substr(1),!a)return s.join("");return"".concat(s.join(""),"...")};function mx(e,r,t,i,n){if(!(r.length<=0)){var a=(n==null?void 0:n.direction)||["top","right","bottom","left"],o=(n==null?void 0:n.action)||"translate",s=(n==null?void 0:n.margin)||0,l=r[0].get("coordinate");if(!!l){var u=Jp(l,s),c=u.minX,f=u.minY,v=u.maxX,d=u.maxY;(0,h.each)(r,function(p){var y=p.getCanvasBBox(),m=y.minX,x=y.minY,_=y.maxX,w=y.maxY,b=y.x,S=y.y,C=y.width,A=y.height,F=b,P=S;if(a.indexOf("left")>=0&&(m=0&&(x=0&&(m>v?F=v-C:_>v&&(F=F-(_-v))),a.indexOf("bottom")>=0&&(x>d?P=d-A:w>d&&(P=P-(w-d))),F!==b||P!==S){var I=F-b;if(o==="translate")tn(p,I,P-S);else if(o==="ellipsis"){var V=p.findAll(function(Z){return Z.get("type")==="text"});V.forEach(function(Z){var vt=(0,h.pick)(Z.attr(),["fontSize","fontFamily","fontWeight","fontStyle","fontVariant"]),yt=Z.getCanvasBBox(),Bt=yx(Z.attr("text"),yt.width-Math.abs(I),vt);Z.attr("text",Bt)})}else p.hide()}})}}}function xx(e,r,t){var i={fillOpacity:(0,h.isNil)(e.attr("fillOpacity"))?1:e.attr("fillOpacity"),strokeOpacity:(0,h.isNil)(e.attr("strokeOpacity"))?1:e.attr("strokeOpacity"),opacity:(0,h.isNil)(e.attr("opacity"))?1:e.attr("opacity")};e.attr({fillOpacity:0,strokeOpacity:0,opacity:0}),e.animate(i,r)}function _x(e,r,t){var i={fillOpacity:0,strokeOpacity:0,opacity:0},n=r.easing,a=r.duration,o=r.delay;e.animate(i,a,n,function(){e.remove(!0)},o)}function wx(e,r,t){var i,n=(0,g.__read)(r,2),a=n[0],o=n[1];return e.applyToMatrix([a,o,1]),t==="x"?(e.setMatrix(ie.vs(e.getMatrix(),[["t",-a,-o],["s",.01,1],["t",a,o]])),i=ie.vs(e.getMatrix(),[["t",-a,-o],["s",100,1],["t",a,o]])):t==="y"?(e.setMatrix(ie.vs(e.getMatrix(),[["t",-a,-o],["s",1,.01],["t",a,o]])),i=ie.vs(e.getMatrix(),[["t",-a,-o],["s",1,100],["t",a,o]])):t==="xy"&&(e.setMatrix(ie.vs(e.getMatrix(),[["t",-a,-o],["s",.01,.01],["t",a,o]])),i=ie.vs(e.getMatrix(),[["t",-a,-o],["s",100,100],["t",a,o]])),i}function Xo(e,r,t,i,n){var a=t.start,o=t.end,s=t.getWidth(),l=t.getHeight(),u,c;n==="y"?(u=a.x+s/2,c=i.ya.x?i.x:a.x,c=a.y+l/2):n==="xy"&&(t.isPolar?(u=t.getCenter().x,c=t.getCenter().y):(u=(a.x+o.x)/2,c=(a.y+o.y)/2));var f=wx(e,[u,c],n);e.animate({matrix:f},r)}function bx(e,r,t){var i=t.coordinate,n=t.minYPoint;Xo(e,r,i,n,"x")}function Sx(e,r,t){var i=t.coordinate,n=t.minYPoint;Xo(e,r,i,n,"y")}function Cx(e,r,t){var i=t.coordinate,n=t.minYPoint;Xo(e,r,i,n,"xy")}function Ax(e,r,t){var i=e.getTotalLength();e.attr("lineDash",[i]),e.animate(function(n){return{lineDashOffset:(1-n)*i}},r)}function Mx(e,r,t){var i=t.toAttrs,n=i.x,a=i.y;delete i.x,delete i.y,e.attr(i),e.animate({x:n,y:a},r)}function Fx(e,r,t){var i=e.getBBox(),n=e.get("origin").mappingData,a=n.points,o=a[0].y-a[1].y>0?i.maxX:i.minX,s=(i.minY+i.maxY)/2;e.applyToMatrix([o,s,1]);var l=ie.vs(e.getMatrix(),[["t",-o,-s],["s",.01,1],["t",o,s]]);e.setMatrix(l),e.animate({matrix:ie.vs(e.getMatrix(),[["t",-o,-s],["s",100,1],["t",o,s]])},r)}function Ex(e,r,t){var i=e.getBBox(),n=e.get("origin").mappingData,a=(i.minX+i.maxX)/2,o=n.points,s=o[0].y-o[1].y<=0?i.maxY:i.minY;e.applyToMatrix([a,s,1]);var l=ie.vs(e.getMatrix(),[["t",-a,-s],["s",1,.01],["t",a,s]]);e.setMatrix(l),e.animate({matrix:ie.vs(e.getMatrix(),[["t",-a,-s],["s",1,100],["t",a,s]])},r)}function bc(e,r){var t,i=(0,$u.getArcParams)(e,r),n=i.startAngle,a=i.endAngle;return!(0,h.isNumberEqual)(n,-Math.PI*.5)&&n<-Math.PI*.5&&(n+=Math.PI*2),!(0,h.isNumberEqual)(a,-Math.PI*.5)&&a<-Math.PI*.5&&(a+=Math.PI*2),r[5]===0&&(t=(0,g.__read)([a,n],2),n=t[0],a=t[1]),(0,h.isNumberEqual)(n,Math.PI*1.5)&&(n=Math.PI*-.5),(0,h.isNumberEqual)(a,Math.PI*-.5)&&!(0,h.isNumberEqual)(n,a)&&(a=Math.PI*1.5),{startAngle:n,endAngle:a}}function Sc(e){var r;return e[0]==="M"||e[0]==="L"?r=[e[1],e[2]]:(e[0]==="a"||e[0]==="A"||e[0]==="C")&&(r=[e[e.length-2],e[e.length-1]]),r}function Cc(e){var r,t,i,n=e.filter(function(w){return w[0]==="A"||w[0]==="a"});if(n.length===0)return{startAngle:0,endAngle:0,radius:0,innerRadius:0};var a=n[0],o=n.length>1?n[1]:n[0],s=e.indexOf(a),l=e.indexOf(o),u=Sc(e[s-1]),c=Sc(e[l-1]),f=bc(u,a),v=f.startAngle,d=f.endAngle,p=bc(c,o),y=p.startAngle,m=p.endAngle;(0,h.isNumberEqual)(v,y)&&(0,h.isNumberEqual)(d,m)?(t=v,i=d):(t=Math.min(v,y),i=Math.max(d,m));var x=a[1],_=n[n.length-1][1];return x<_?(r=(0,g.__read)([_,x],2),x=r[0],_=r[1]):x===_&&(_=0),{startAngle:t,endAngle:i,radius:x,innerRadius:_}}function Tx(e,r,t){var i=t.toAttrs,n=t.coordinate,a=i.path||[],o=a.map(function(_){return _[0]});if(!(a.length<1)){var s=Cc(a),l=s.startAngle,u=s.endAngle,c=s.radius,f=s.innerRadius,v=Cc(e.attr("path")),d=v.startAngle,p=v.endAngle,y=n.getCenter(),m=l-d,x=u-p;if(m===0&&x===0){e.attr("path",a);return}e.animate(function(_){var w=d+_*m,b=p+_*x;return(0,g.__assign)((0,g.__assign)({},i),{path:(0,h.isEqual)(o,["M","A","A","Z"])?Hl(y.x,y.y,c,w,b):_r(y.x,y.y,c,w,b,f)})},(0,g.__assign)((0,g.__assign)({},r),{callback:function(){e.attr("path",a),(0,h.isFunction)(r.callback)&&r.callback()}}))}}function Lx(e,r,t){var i=po(t.coordinate,20),n=i.type,a=i.startState,o=i.endState,s=e.setClip({type:n,attrs:a});t.toAttrs&&e.attr(t.toAttrs),s.animate(o,(0,g.__assign)((0,g.__assign)({},r),{callback:function(){e&&!e.get("destroyed")&&e.set("clipShape",null),s.remove(!0),(0,h.isFunction)(r.callback)&&r.callback()}}))}function Uo(e,r,t){if(e.isGroup())(0,h.each)(e.getChildren(),function(s){Uo(s,r,t)});else{var i=e.getBBox(),n=(i.minX+i.maxX)/2,a=(i.minY+i.maxY)/2;if(e.applyToMatrix([n,a,1]),t==="zoomIn"){var o=ie.vs(e.getMatrix(),[["t",-n,-a],["s",.01,.01],["t",n,a]]);e.setMatrix(o),e.animate({matrix:ie.vs(e.getMatrix(),[["t",-n,-a],["s",100,100],["t",n,a]])},r)}else e.animate({matrix:ie.vs(e.getMatrix(),[["t",-n,-a],["s",.01,.01],["t",n,a]])},(0,g.__assign)((0,g.__assign)({},r),{callback:function(){e.remove(!0),(0,h.isFunction)(r.callback)&&r.callback()}}))}}function Ix(e,r,t){Uo(e,r,"zoomIn")}function Ox(e,r,t){Uo(e,r,"zoomOut")}function ur(e){return[E.TOP,E.BOTTOM].includes(e)?{offsetX:0,offsetY:e===E.TOP?-8:8,style:{textAlign:"center",textBaseline:e===E.TOP?"bottom":"top"}}:[E.LEFT,E.RIGHT].includes(e)?{offsetX:e===E.LEFT?-8:8,offsetY:0,style:{textAlign:e===E.LEFT?"right":"left",textBaseline:"middle",rotate:Math.PI/2}}:{}}function jo(e,r,t){return{x:e.x+r*Math.cos(t),y:e.y+r*Math.sin(t)}}var Px=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getDefaultCfg=function(){return(0,h.deepMix)({},e.prototype.getDefaultCfg.call(this),{type:"circle",showTitle:!0,title:e.prototype.getDefaultTitleCfg.call(this)})},r.prototype.render=function(){e.prototype.render.call(this),this.cfg.showTitle&&this.renderTitle()},r.prototype.getRegion=function(t,i){var n=1/2,a={x:.5,y:.5},o=Math.PI*2/t,s=-1*Math.PI/2+o*i,l=n/(1+1/Math.sin(o/2)),u=jo(a,n-l,s),c=Math.PI*5/4,f=Math.PI*1/4;return{start:jo(u,l,c),end:jo(u,l,f)}},r.prototype.afterEachView=function(t,i){this.processAxis(t,i)},r.prototype.beforeEachView=function(t,i){},r.prototype.generateFacets=function(t){var i=this,n=this.cfg,a=n.fields,o=n.type,s=(0,g.__read)(a,1),l=s[0];if(!l)throw new Error("No `fields` specified!");var u=this.getFieldValues(t,l),c=u.length,f=[];return u.forEach(function(v,d){var p=[{field:l,value:v,values:u}],y=(0,h.filter)(t,i.getFacetDataFilter(p)),m={type:o,data:y,region:i.getRegion(c,d),columnValue:v,columnField:l,columnIndex:d,columnValuesLength:c,rowValue:null,rowField:null,rowIndex:0,rowValuesLength:1};f.push(m)}),f},r.prototype.getXAxisOption=function(t,i,n,a){return n},r.prototype.getYAxisOption=function(t,i,n,a){return n},r.prototype.renderTitle=function(){var t=this;(0,h.each)(this.facets,function(i){var n=i.columnValue,a=i.view,o=(0,h.get)(t.cfg.title,"formatter"),s=(0,h.deepMix)({position:["50%","0%"],content:o?o(n):n},ur(E.TOP),t.cfg.title);a.annotation().text(s)})},r}(ci),kx=Px,Dx=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getDefaultCfg=function(){return(0,h.deepMix)({},e.prototype.getDefaultCfg.call(this),{type:"list",cols:null,showTitle:!0,title:e.prototype.getDefaultTitleCfg.call(this)})},r.prototype.render=function(){e.prototype.render.call(this),this.cfg.showTitle&&this.renderTitle()},r.prototype.afterEachView=function(t,i){this.processAxis(t,i)},r.prototype.beforeEachView=function(t,i){},r.prototype.generateFacets=function(t){var i=this,n=this.cfg.fields,a=this.cfg.cols,o=(0,g.__read)(n,1),s=o[0];if(!s)throw new Error("No `fields` specified!");var l=this.getFieldValues(t,s),u=l.length;a=a||u;var c=this.getPageCount(u,a),f=[];return l.forEach(function(v,d){var p=i.getRowCol(d,a),y=p.row,m=p.col,x=[{field:s,value:v,values:l}],_=(0,h.filter)(t,i.getFacetDataFilter(x)),w={type:i.cfg.type,data:_,region:i.getRegion(c,a,m,y),columnValue:v,rowValue:v,columnField:s,rowField:null,columnIndex:m,rowIndex:y,columnValuesLength:a,rowValuesLength:c,total:u};f.push(w)}),f},r.prototype.getXAxisOption=function(t,i,n,a){return a.rowIndex!==a.rowValuesLength-1&&a.columnValuesLength*a.rowIndex+a.columnIndex+1+a.columnValuesLength<=a.total?(0,g.__assign)((0,g.__assign)({},n),{label:null,title:null}):n},r.prototype.getYAxisOption=function(t,i,n,a){return a.columnIndex!==0?(0,g.__assign)((0,g.__assign)({},n),{title:null,label:null}):n},r.prototype.renderTitle=function(){var t=this;(0,h.each)(this.facets,function(i){var n=i.columnValue,a=i.view,o=(0,h.get)(t.cfg.title,"formatter"),s=(0,h.deepMix)({position:["50%","0%"],content:o?o(n):n},ur(E.TOP),t.cfg.title);a.annotation().text(s)})},r.prototype.getPageCount=function(t,i){return Math.floor((t+i-1)/i)},r.prototype.getRowCol=function(t,i){var n=Math.floor(t/i),a=t%i;return{row:n,col:a}},r}(ci),Bx=Dx,Rx=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getDefaultCfg=function(){return(0,h.deepMix)({},e.prototype.getDefaultCfg.call(this),{type:"matrix",showTitle:!1,columnTitle:(0,g.__assign)({},e.prototype.getDefaultTitleCfg.call(this)),rowTitle:(0,g.__assign)({},e.prototype.getDefaultTitleCfg.call(this))})},r.prototype.render=function(){e.prototype.render.call(this),this.cfg.showTitle&&this.renderTitle()},r.prototype.afterEachView=function(t,i){this.processAxis(t,i)},r.prototype.beforeEachView=function(t,i){},r.prototype.generateFacets=function(t){for(var i=this.cfg,n=i.fields,a=i.type,o=n.length,s=o,l=[],u=0;u=0;u--){var c=this.getFacetsByLevel(t,u);try{for(var f=(i=void 0,(0,g.__values)(c)),v=f.next();!v.done;v=f.next()){var d=v.value;this.isLeaf(d)||(d.originColIndex=d.columnIndex,d.columnIndex=this.getRegionIndex(d.children),d.columnValuesLength=o.length)}}catch(p){i={error:p}}finally{try{v&&!v.done&&(n=f.return)&&n.call(f)}finally{if(i)throw i.error}}}},r.prototype.getFacetsByLevel=function(t,i){var n=[];return t.forEach(function(a){a.rowIndex===i&&n.push(a)}),n},r.prototype.getRegionIndex=function(t){var i=t[0],n=t[t.length-1];return(n.columnIndex-i.columnIndex)/2+i.columnIndex},r.prototype.isLeaf=function(t){return!t.children||!t.children.length},r.prototype.getRows=function(){return this.cfg.fields.length+1},r.prototype.getChildFacets=function(t,i,n){var a=this,o=this.cfg.fields,s=o.length;if(!(s=d){var m=n.parsePosition([p[l],p[s.field]]);m&&v.push(m)}if(p[l]===f)return!1}),v},r.prototype.parsePercentPosition=function(t){var i=parseFloat(t[0])/100,n=parseFloat(t[1])/100,a=this.view.getCoordinate(),o=a.start,s=a.end,l={x:Math.min(o.x,s.x),y:Math.min(o.y,s.y)},u=a.getWidth()*i+l.x,c=a.getHeight()*n+l.y;return{x:u,y:c}},r.prototype.getCoordinateBBox=function(){var t=this.view.getCoordinate(),i=t.start,n=t.end,a=t.getWidth(),o=t.getHeight(),s={x:Math.min(i.x,n.x),y:Math.min(i.y,n.y)};return{x:s.x,y:s.y,minX:s.x,minY:s.y,maxX:s.x+a,maxY:s.y+o,width:a,height:o}},r.prototype.getAnnotationCfg=function(t,i,n){var a=this,o=this.view.getCoordinate(),s=this.view.getCanvas(),l={};if((0,h.isNil)(i))return null;var u=i.start,c=i.end,f=i.position,v=this.parsePosition(u),d=this.parsePosition(c),p=this.parsePosition(f);if(["arc","image","line","region","regionFilter"].includes(t)&&(!v||!d))return null;if(["text","dataMarker","html"].includes(t)&&!p)return null;if(t==="arc"){var y=i,m=y.start,x=y.end,_=(0,g.__rest)(y,["start","end"]),w=ui(o,v),b=ui(o,d);w>b&&(b=Math.PI*2+b),l=(0,g.__assign)((0,g.__assign)({},_),{center:o.getCenter(),radius:zn(o,v),startAngle:w,endAngle:b})}else if(t==="image"){var S=i,C=S.start,A=S.end,_=(0,g.__rest)(S,["start","end"]);l=(0,g.__assign)((0,g.__assign)({},_),{start:v,end:d,src:i.src})}else if(t==="line"){var F=i,P=F.start,I=F.end,_=(0,g.__rest)(F,["start","end"]);l=(0,g.__assign)((0,g.__assign)({},_),{start:v,end:d,text:(0,h.get)(i,"text",null)})}else if(t==="region"){var V=i,Z=V.start,vt=V.end,_=(0,g.__rest)(V,["start","end"]);l=(0,g.__assign)((0,g.__assign)({},_),{start:v,end:d})}else if(t==="text"){var yt=this.view.getData(),Bt=i,G=Bt.position,at=Bt.content,_=(0,g.__rest)(Bt,["position","content"]),mt=at;(0,h.isFunction)(at)&&(mt=at(yt)),l=(0,g.__assign)((0,g.__assign)((0,g.__assign)({},p),_),{content:mt})}else if(t==="dataMarker"){var ut=i,pt=ut.position,At=ut.point,Gt=ut.line,Wt=ut.text,Dt=ut.autoAdjust,Ht=ut.direction,_=(0,g.__rest)(ut,["position","point","line","text","autoAdjust","direction"]);l=(0,g.__assign)((0,g.__assign)((0,g.__assign)({},_),p),{coordinateBBox:this.getCoordinateBBox(),point:At,line:Gt,text:Wt,autoAdjust:Dt,direction:Ht})}else if(t==="dataRegion"){var Jt=i,pe=Jt.start,ye=Jt.end,ar=Jt.region,Wt=Jt.text,ri=Jt.lineLength,_=(0,g.__rest)(Jt,["start","end","region","text","lineLength"]);l=(0,g.__assign)((0,g.__assign)({},_),{points:this.getRegionPoints(pe,ye),region:ar,text:Wt,lineLength:ri})}else if(t==="regionFilter"){var mr=i,Li=mr.start,Ii=mr.end,od=mr.apply,wL=mr.color,_=(0,g.__rest)(mr,["start","end","apply","color"]),bL=this.view.geometries,sd=[],ol=function(or){!or||(or.isGroup()?or.getChildren().forEach(function(An){return ol(An)}):sd.push(or))};(0,h.each)(bL,function(or){od?(0,h.contains)(od,or.type)&&(0,h.each)(or.elements,function(An){ol(An.shape)}):(0,h.each)(or.elements,function(An){ol(An.shape)})}),l=(0,g.__assign)((0,g.__assign)({},_),{color:wL,shapes:sd,start:v,end:d})}else if(t==="shape"){var ld=i,SL=ld.render,sl=(0,g.__rest)(ld,["render"]),CL=function(ML){if((0,h.isFunction)(i.render))return SL(ML,a.view,{parsePosition:a.parsePosition.bind(a)})};l=(0,g.__assign)((0,g.__assign)({},sl),{render:CL})}else if(t==="html"){var ll=i,ul=ll.html,RI=ll.position,sl=(0,g.__rest)(ll,["html","position"]),AL=function(or){return(0,h.isFunction)(ul)?ul(or,a.view):ul};l=(0,g.__assign)((0,g.__assign)((0,g.__assign)({},sl),p),{parent:s.get("el").parentNode,html:AL})}var kr=(0,h.deepMix)({},n,(0,g.__assign)((0,g.__assign)({},l),{top:i.top,style:i.style,offsetX:i.offsetX,offsetY:i.offsetY}));return t!=="html"&&(kr.container=this.getComponentContainer(kr)),kr.animate=this.view.getOptions().animate&&kr.animate&&(0,h.get)(i,"animate",kr.animate),kr.animateOption=(0,h.deepMix)({},gi,kr.animateOption,i.animateOption),kr},r.prototype.isTop=function(t){return(0,h.get)(t,"top",!0)},r.prototype.getComponentContainer=function(t){return this.isTop(t)?this.foregroundContainer:this.backgroundContainer},r.prototype.getAnnotationTheme=function(t){return(0,h.get)(this.view.getTheme(),["components","annotation",t],{})},r.prototype.updateOrCreate=function(t){var i=this.cache.get(this.getCacheKey(t));if(i){var n=t.type,a=this.getAnnotationTheme(n),o=this.getAnnotationCfg(n,t,a);o&&Oe(o,["container"]),i.component.update((0,g.__assign)((0,g.__assign)({},o||{}),{visible:!!o})),(0,h.includes)(oa,t.type)&&i.component.render()}else i=this.createAnnotation(t),i&&(i.component.init(),(0,h.includes)(oa,t.type)&&i.component.render());return i},r.prototype.syncCache=function(t){var i=this,n=new Map(this.cache);return t.forEach(function(a,o){n.set(o,a)}),n.forEach(function(a,o){(0,h.find)(i.option,function(s){return o===i.getCacheKey(s)})||(a.component.destroy(),n.delete(o))}),n},r.prototype.getCacheKey=function(t){return t},r}(di),jx=Ux;function Mc(e,r){var t=(0,h.deepMix)({},(0,h.get)(e,["components","axis","common"]),(0,h.get)(e,["components","axis",r]));return(0,h.get)(t,["grid"],{})}function sa(e,r,t,i){var n=[],a=r.getTicks();return e.isPolar&&a.push({value:1,text:"",tickValue:""}),a.reduce(function(o,s,l){var u=s.value;if(i)n.push({points:[e.convert(t==="y"?{x:0,y:u}:{x:u,y:0}),e.convert(t==="y"?{x:1,y:u}:{x:u,y:1})]});else if(l){var c=o.value,f=(c+u)/2;n.push({points:[e.convert(t==="y"?{x:0,y:f}:{x:f,y:0}),e.convert(t==="y"?{x:1,y:f}:{x:f,y:1})]})}return s},a[0]),n}function Zo(e,r,t,i,n){var a=r.values.length,o=[],s=t.getTicks();return s.reduce(function(l,u){var c=l?l.value:u.value,f=u.value,v=(c+f)/2;return n==="x"?o.push({points:[e.convert({x:i?f:v,y:0}),e.convert({x:i?f:v,y:1})]}):o.push({points:(0,h.map)(Array(a+1),function(d,p){return e.convert({x:p/a,y:i?f:v})})}),u},s[0]),o}function Fc(e,r){var t=(0,h.get)(r,"grid");if(t===null)return!1;var i=(0,h.get)(e,"grid");return!(t===void 0&&i===null)}var Fr=["container"],Ec=(0,g.__assign)((0,g.__assign)({},gi),{appear:null}),Zx=function(e){(0,g.__extends)(r,e);function r(t){var i=e.call(this,t)||this;return i.cache=new Map,i.gridContainer=i.view.getLayer(J.BG).addGroup(),i.gridForeContainer=i.view.getLayer(J.FORE).addGroup(),i.axisContainer=i.view.getLayer(J.BG).addGroup(),i.axisForeContainer=i.view.getLayer(J.FORE).addGroup(),i}return Object.defineProperty(r.prototype,"name",{get:function(){return"axis"},enumerable:!1,configurable:!0}),r.prototype.init=function(){},r.prototype.render=function(){this.update()},r.prototype.layout=function(){var t=this,i=this.view.getCoordinate();(0,h.each)(this.getComponents(),function(n){var a=n.component,o=n.direction,s=n.type,l=n.extra,u=l.dim,c=l.scale,f=l.alignTick,v;if(s===N.AXIS)i.isPolar?u==="x"?v=i.isTransposed?Vn(i,o):yo(i):u==="y"&&(v=i.isTransposed?yo(i):Vn(i,o)):v=Vn(i,o);else if(s===N.GRID)if(i.isPolar){var d=void 0;i.isTransposed?d=u==="x"?Zo(i,t.view.getYScales()[0],c,f,u):sa(i,c,u,f):d=u==="x"?sa(i,c,u,f):Zo(i,t.view.getXScale(),c,f,u),v={items:d,center:t.view.getCoordinate().getCenter()}}else v={items:sa(i,c,u,f)};a.update(v)})},r.prototype.update=function(){this.option=this.view.getOptions().axes;var t=new Map;this.updateXAxes(t),this.updateYAxes(t);var i=new Map;this.cache.forEach(function(n,a){t.has(a)?i.set(a,n):n.component.destroy()}),this.cache=i},r.prototype.clear=function(){e.prototype.clear.call(this),this.cache.clear(),this.gridContainer.clear(),this.gridForeContainer.clear(),this.axisContainer.clear(),this.axisForeContainer.clear()},r.prototype.destroy=function(){e.prototype.destroy.call(this),this.gridContainer.remove(!0),this.gridForeContainer.remove(!0),this.axisContainer.remove(!0),this.axisForeContainer.remove(!0)},r.prototype.getComponents=function(){var t=[];return this.cache.forEach(function(i){t.push(i)}),t},r.prototype.updateXAxes=function(t){var i=this.view.getXScale();if(!(!i||i.isIdentity)){var n=Wn(this.option,i.field);if(n!==!1){var a=Kl(n,E.BOTTOM),o=J.BG,s="x",l=this.view.getCoordinate(),u=this.getId("axis",i.field),c=this.getId("grid",i.field);if(l.isRect){var f=this.cache.get(u);if(f){var v=this.getLineAxisCfg(i,n,a);Oe(v,Fr),f.component.update(v),t.set(u,f)}else f=this.createLineAxis(i,n,o,a,s),this.cache.set(u,f),t.set(u,f);var d=this.cache.get(c);if(d){var v=this.getLineGridCfg(i,n,a,s);Oe(v,Fr),d.component.update(v),t.set(c,d)}else d=this.createLineGrid(i,n,o,a,s),d&&(this.cache.set(c,d),t.set(c,d))}else if(l.isPolar){var f=this.cache.get(u);if(f){var v=l.isTransposed?this.getLineAxisCfg(i,n,E.RADIUS):this.getCircleAxisCfg(i,n,a);Oe(v,Fr),f.component.update(v),t.set(u,f)}else{if(l.isTransposed){if((0,h.isUndefined)(n))return;f=this.createLineAxis(i,n,o,E.RADIUS,s)}else f=this.createCircleAxis(i,n,o,a,s);this.cache.set(u,f),t.set(u,f)}var d=this.cache.get(c);if(d){var v=l.isTransposed?this.getCircleGridCfg(i,n,E.RADIUS,s):this.getLineGridCfg(i,n,E.CIRCLE,s);Oe(v,Fr),d.component.update(v),t.set(c,d)}else{if(l.isTransposed){if((0,h.isUndefined)(n))return;d=this.createCircleGrid(i,n,o,E.RADIUS,s)}else d=this.createLineGrid(i,n,o,E.CIRCLE,s);d&&(this.cache.set(c,d),t.set(c,d))}}}}},r.prototype.updateYAxes=function(t){var i=this,n=this.view.getYScales();(0,h.each)(n,function(a,o){if(!(!a||a.isIdentity)){var s=a.field,l=Wn(i.option,s);if(l!==!1){var u=J.BG,c="y",f=i.getId("axis",s),v=i.getId("grid",s),d=i.view.getCoordinate();if(d.isRect){var p=Kl(l,o===0?E.LEFT:E.RIGHT),y=i.cache.get(f);if(y){var m=i.getLineAxisCfg(a,l,p);Oe(m,Fr),y.component.update(m),t.set(f,y)}else y=i.createLineAxis(a,l,u,p,c),i.cache.set(f,y),t.set(f,y);var x=i.cache.get(v);if(x){var m=i.getLineGridCfg(a,l,p,c);Oe(m,Fr),x.component.update(m),t.set(v,x)}else x=i.createLineGrid(a,l,u,p,c),x&&(i.cache.set(v,x),t.set(v,x))}else if(d.isPolar){var y=i.cache.get(f);if(y){var m=d.isTransposed?i.getCircleAxisCfg(a,l,E.CIRCLE):i.getLineAxisCfg(a,l,E.RADIUS);Oe(m,Fr),y.component.update(m),t.set(f,y)}else{if(d.isTransposed){if((0,h.isUndefined)(l))return;y=i.createCircleAxis(a,l,u,E.CIRCLE,c)}else y=i.createLineAxis(a,l,u,E.RADIUS,c);i.cache.set(f,y),t.set(f,y)}var x=i.cache.get(v);if(x){var m=d.isTransposed?i.getLineGridCfg(a,l,E.CIRCLE,c):i.getCircleGridCfg(a,l,E.RADIUS,c);Oe(m,Fr),x.component.update(m),t.set(v,x)}else{if(d.isTransposed){if((0,h.isUndefined)(l))return;x=i.createLineGrid(a,l,u,E.CIRCLE,c)}else x=i.createCircleGrid(a,l,u,E.RADIUS,c);x&&(i.cache.set(v,x),t.set(v,x))}}}}})},r.prototype.createLineAxis=function(t,i,n,a,o){var s={component:new Wp(this.getLineAxisCfg(t,i,a)),layer:n,direction:a===E.RADIUS?E.NONE:a,type:N.AXIS,extra:{dim:o,scale:t}};return s.component.set("field",t.field),s.component.init(),s},r.prototype.createLineGrid=function(t,i,n,a,o){var s=this.getLineGridCfg(t,i,a,o);if(s){var l={component:new Yp(s),layer:n,direction:E.NONE,type:N.GRID,extra:{dim:o,scale:t,alignTick:(0,h.get)(s,"alignTick",!0)}};return l.component.init(),l}},r.prototype.createCircleAxis=function(t,i,n,a,o){var s={component:new Hp(this.getCircleAxisCfg(t,i,a)),layer:n,direction:a,type:N.AXIS,extra:{dim:o,scale:t}};return s.component.set("field",t.field),s.component.init(),s},r.prototype.createCircleGrid=function(t,i,n,a,o){var s=this.getCircleGridCfg(t,i,a,o);if(s){var l={component:new Xp(s),layer:n,direction:E.NONE,type:N.GRID,extra:{dim:o,scale:t,alignTick:(0,h.get)(s,"alignTick",!0)}};return l.component.init(),l}},r.prototype.getLineAxisCfg=function(t,i,n){var a=(0,h.get)(i,["top"])?this.axisForeContainer:this.axisContainer,o=this.view.getCoordinate(),s=Vn(o,n),l=$l(t,i),u=Gn(this.view.getTheme(),n),c=(0,h.get)(i,["title"])?(0,h.deepMix)({title:{style:{text:l}}},{title:ql(this.view.getTheme(),n,i.title)},i):i,f=(0,h.deepMix)((0,g.__assign)((0,g.__assign)({container:a},s),{ticks:t.getTicks().map(function(w){return{id:"".concat(w.tickValue),name:w.text,value:w.value}}),verticalFactor:o.isPolar?Zl(s,o.getCenter())*-1:Zl(s,o.getCenter()),theme:u}),u,c),v=this.getAnimateCfg(f),d=v.animate,p=v.animateOption;f.animateOption=p,f.animate=d;var y=jl(s),m=(0,h.get)(f,"verticalLimitLength",y?1/3:1/2);if(m<=1){var x=this.view.getCanvas().get("width"),_=this.view.getCanvas().get("height");f.verticalLimitLength=m*(y?x:_)}return f},r.prototype.getLineGridCfg=function(t,i,n,a){if(!!Fc(Gn(this.view.getTheme(),n),i)){var o=Mc(this.view.getTheme(),n),s=(0,h.deepMix)({container:(0,h.get)(i,["top"])?this.gridForeContainer:this.gridContainer},o,(0,h.get)(i,"grid"),this.getAnimateCfg(i));return s.items=sa(this.view.getCoordinate(),t,a,(0,h.get)(s,"alignTick",!0)),s}},r.prototype.getCircleAxisCfg=function(t,i,n){var a=(0,h.get)(i,["top"])?this.axisForeContainer:this.axisContainer,o=this.view.getCoordinate(),s=t.getTicks().map(function(y){return{id:"".concat(y.tickValue),name:y.text,value:y.value}});!t.isCategory&&Math.abs(o.endAngle-o.startAngle)===Math.PI*2&&s.length&&(s[s.length-1].name="");var l=$l(t,i),u=Gn(this.view.getTheme(),E.CIRCLE),c=(0,h.get)(i,["title"])?(0,h.deepMix)({title:{style:{text:l}}},{title:ql(this.view.getTheme(),n,i.title)},i):i,f=(0,h.deepMix)((0,g.__assign)((0,g.__assign)({container:a},yo(this.view.getCoordinate())),{ticks:s,verticalFactor:1,theme:u}),u,c),v=this.getAnimateCfg(f),d=v.animate,p=v.animateOption;return f.animate=d,f.animateOption=p,f},r.prototype.getCircleGridCfg=function(t,i,n,a){if(!!Fc(Gn(this.view.getTheme(),n),i)){var o=Mc(this.view.getTheme(),E.RADIUS),s=(0,h.deepMix)({container:(0,h.get)(i,["top"])?this.gridForeContainer:this.gridContainer,center:this.view.getCoordinate().getCenter()},o,(0,h.get)(i,"grid"),this.getAnimateCfg(i)),l=(0,h.get)(s,"alignTick",!0),u=a==="x"?this.view.getYScales()[0]:this.view.getXScale();return s.items=Zo(this.view.getCoordinate(),u,t,l,a),s}},r.prototype.getId=function(t,i){var n=this.view.getCoordinate();return"".concat(t,"-").concat(i,"-").concat(n.type)},r.prototype.getAnimateCfg=function(t){return{animate:this.view.getOptions().animate&&(0,h.get)(t,"animate"),animateOption:t&&t.animateOption?(0,h.deepMix)({},Ec,t.animateOption):Ec}},r}(di),qx=Zx;function Er(e,r,t){return t===E.TOP?[e.minX+e.width/2-r.width/2,e.minY]:t===E.BOTTOM?[e.minX+e.width/2-r.width/2,e.maxY-r.height]:t===E.LEFT?[e.minX,e.minY+e.height/2-r.height/2]:t===E.RIGHT?[e.maxX-r.width,e.minY+e.height/2-r.height/2]:t===E.TOP_LEFT||t===E.LEFT_TOP?[e.tl.x,e.tl.y]:t===E.TOP_RIGHT||t===E.RIGHT_TOP?[e.tr.x-r.width,e.tr.y]:t===E.BOTTOM_LEFT||t===E.LEFT_BOTTOM?[e.bl.x,e.bl.y-r.height]:t===E.BOTTOM_RIGHT||t===E.RIGHT_BOTTOM?[e.br.x-r.width,e.br.y-r.height]:[0,0]}function Kx(e,r){if(r.isTransposed)switch(e){case DIRECTION.BOTTOM:return DIRECTION.LEFT;case DIRECTION.LEFT:return DIRECTION.BOTTOM;case DIRECTION.RIGHT:return DIRECTION.TOP;case DIRECTION.TOP:return DIRECTION.RIGHT}return e}function Tc(e){return e===DIRECTION.LEFT?DIRECTION.RIGHT:e===DIRECTION.RIGHT?DIRECTION.LEFT:e}function Lc(e){return e===DIRECTION.TOP?DIRECTION.BOTTOM:e===DIRECTION.BOTTOM?DIRECTION.TOP:e}function $x(e,r){var t=r.matrix[0],i=r.matrix[4],n=e;return t<0&&(n=Tc(n)),i<0&&(n=Lc(n)),n}function Qx(e,r){var t=e;return r.isReflect("x")&&(t=Tc(t)),r.isReflect("y")&&(t=Lc(t)),t}function iI(e,r){var t=e;return t=Kx(t,r),t=$x(t,r),t=Qx(t,r),t}function Ic(e,r){return(0,h.isBoolean)(e)?e===!1?!1:{}:(0,h.get)(e,[r],e)}function la(e){return(0,h.get)(e,"position",E.BOTTOM)}var Jx=function(e){(0,g.__extends)(r,e);function r(t){var i=e.call(this,t)||this;return i.container=i.view.getLayer(J.FORE).addGroup(),i}return Object.defineProperty(r.prototype,"name",{get:function(){return"legend"},enumerable:!1,configurable:!0}),r.prototype.init=function(){},r.prototype.render=function(){this.update()},r.prototype.layout=function(){var t=this;this.layoutBBox=this.view.viewBBox,(0,h.each)(this.components,function(i){var n=i.component,a=i.direction,o=Lo(a),s=n.get("maxWidthRatio"),l=n.get("maxHeightRatio"),u=t.getCategoryLegendSizeCfg(o,s,l),c=n.get("maxWidth"),f=n.get("maxHeight");n.update({maxWidth:Math.min(u.maxWidth,c||0),maxHeight:Math.min(u.maxHeight,f||0)});var v=n.get("padding"),d=n.getLayoutBBox(),p=new Ee(d.x,d.y,d.width,d.height).expand(v),y=(0,g.__read)(Er(t.view.viewBBox,p,a),2),m=y[0],x=y[1],_=(0,g.__read)(Er(t.layoutBBox,p,a),2),w=_[0],b=_[1],S=0,C=0;a.startsWith("top")||a.startsWith("bottom")?(S=m,C=b):(S=w,C=x),n.setLocation({x:S+v[3],y:C+v[0]}),t.layoutBBox=t.layoutBBox.cut(p,a)})},r.prototype.update=function(){var t=this;this.option=this.view.getOptions().legends;var i={},n=function(v,d,p){var y=t.getId(p.field),m=t.getComponentById(y);if(m){var x=void 0,_=Ic(t.option,p.field);_!==!1&&((0,h.get)(_,"custom")?x=t.getCategoryCfg(v,d,p,_,!0):p.isLinear?x=t.getContinuousCfg(v,d,p,_):p.isCategory&&(x=t.getCategoryCfg(v,d,p,_))),x&&(Oe(x,["container"]),m.direction=la(_),m.component.update(x),i[y]=!0)}else{var w=t.createFieldLegend(v,d,p);w&&(w.component.init(),t.components.push(w),i[y]=!0)}};if((0,h.get)(this.option,"custom")){var a="global-custom",o=this.getComponentById(a);if(o){var s=this.getCategoryCfg(void 0,void 0,void 0,this.option,!0);Oe(s,["container"]),o.component.update(s),i[a]=!0}else{var l=this.createCustomLegend(void 0,void 0,void 0,this.option);if(l){l.init();var u=J.FORE,c=la(this.option);this.components.push({id:a,component:l,layer:u,direction:c,type:N.LEGEND,extra:void 0}),i[a]=!0}}}else this.loopLegends(n);var f=[];(0,h.each)(this.getComponents(),function(v){i[v.id]?f.push(v):v.component.destroy()}),this.components=f},r.prototype.clear=function(){e.prototype.clear.call(this),this.container.clear()},r.prototype.destroy=function(){e.prototype.destroy.call(this),this.container.remove(!0)},r.prototype.getGeometries=function(t){var i=this,n=t.geometries;return(0,h.each)(t.views,function(a){n=n.concat(i.getGeometries(a))}),n},r.prototype.loopLegends=function(t){var i=this.view.getRootView()===this.view;if(!!i){var n=this.getGeometries(this.view),a={};(0,h.each)(n,function(o){var s=o.getGroupAttributes();(0,h.each)(s,function(l){var u=l.getScale(l.type);!u||u.type==="identity"||a[u.field]||(t(o,l,u),a[u.field]=!0)})})}},r.prototype.createFieldLegend=function(t,i,n){var a,o=Ic(this.option,n.field),s=J.FORE,l=la(o);if(o!==!1&&((0,h.get)(o,"custom")?a=this.createCustomLegend(t,i,n,o):n.isLinear?a=this.createContinuousLegend(t,i,n,o):n.isCategory&&(a=this.createCategoryLegend(t,i,n,o))),a)return a.set("field",n.field),{id:this.getId(n.field),component:a,layer:s,direction:l,type:N.LEGEND,extra:{scale:n}}},r.prototype.createCustomLegend=function(t,i,n,a){var o=this.getCategoryCfg(t,i,n,a,!0);return new Vl(o)},r.prototype.createContinuousLegend=function(t,i,n,a){var o=this.getContinuousCfg(t,i,n,Oe(a,["value"]));return new Up(o)},r.prototype.createCategoryLegend=function(t,i,n,a){var o=this.getCategoryCfg(t,i,n,a);return new Vl(o)},r.prototype.getContinuousCfg=function(t,i,n,a){var o=n.getTicks(),s=(0,h.find)(o,function(y){return y.value===0}),l=(0,h.find)(o,function(y){return y.value===1}),u=o.map(function(y){var m=y.value,x=y.tickValue,_=i.mapping(n.invert(m)).join("");return{value:x,attrValue:_,color:_,scaleValue:m}});s||u.push({value:n.min,attrValue:i.mapping(n.invert(0)).join(""),color:i.mapping(n.invert(0)).join(""),scaleValue:0}),l||u.push({value:n.max,attrValue:i.mapping(n.invert(1)).join(""),color:i.mapping(n.invert(1)).join(""),scaleValue:1}),u.sort(function(y,m){return y.value-m.value});var c={min:(0,h.head)(u).value,max:(0,h.last)(u).value,colors:[],rail:{type:i.type},track:{}};i.type==="size"&&(c.track={style:{fill:i.type==="size"?this.view.getTheme().defaultColor:void 0}}),i.type==="color"&&(c.colors=u.map(function(y){return y.attrValue}));var f=this.container,v=la(a),d=Lo(v),p=(0,h.get)(a,"title");return p&&(p=(0,h.deepMix)({text:ji(n)},p)),c.container=f,c.layout=d,c.title=p,c.animateOption=gi,this.mergeLegendCfg(c,a,"continuous")},r.prototype.getCategoryCfg=function(t,i,n,a,o){var s=this.container,l=(0,h.get)(a,"position",E.BOTTOM),u=Yu(this.view.getTheme(),l),c=(0,h.get)(u,["marker"]),f=(0,h.get)(a,"marker"),v=Lo(l),d=(0,h.get)(u,["pageNavigator"]),p=(0,h.get)(a,"pageNavigator"),y=o?L0(c,f,a.items):Hu(this.view,t,i,c,f),m=(0,h.get)(a,"title");m&&(m=(0,h.deepMix)({text:n?ji(n):""},m));var x=(0,h.get)(a,"maxWidthRatio"),_=(0,h.get)(a,"maxHeightRatio"),w=this.getCategoryLegendSizeCfg(v,x,_);w.container=s,w.layout=v,w.items=y,w.title=m,w.animateOption=gi,w.pageNavigator=(0,h.deepMix)({},d,p);var b=this.mergeLegendCfg(w,a,l);b.reversed&&b.items.reverse();var S=(0,h.get)(b,"maxItemWidth");return S&&S<=1&&(b.maxItemWidth=this.view.viewBBox.width*S),b},r.prototype.mergeLegendCfg=function(t,i,n){var a=n.split("-")[0],o=Yu(this.view.getTheme(),a);return(0,h.deepMix)({},o,t,i)},r.prototype.getId=function(t){return"".concat(this.name,"-").concat(t)},r.prototype.getComponentById=function(t){return(0,h.find)(this.components,function(i){return i.id===t})},r.prototype.getCategoryLegendSizeCfg=function(t,i,n){i===void 0&&(i=qt),n===void 0&&(n=qt);var a=this.view.viewBBox,o=a.width,s=a.height;return t==="vertical"?{maxWidth:o*i,maxHeight:s}:{maxWidth:o,maxHeight:s*n}},r}(di),t_=Jx,e_=function(e){(0,g.__extends)(r,e);function r(t){var i=e.call(this,t)||this;return i.onChangeFn=h.noop,i.resetMeasure=function(){i.clear()},i.onValueChange=function(n){var a=(0,g.__read)(n,2),o=a[0],s=a[1];i.start=o,i.end=s,i.changeViewData(o,s)},i.container=i.view.getLayer(J.FORE).addGroup(),i.onChangeFn=(0,h.throttle)(i.onValueChange,20,{leading:!0}),i.width=0,i.view.on(L.BEFORE_CHANGE_DATA,i.resetMeasure),i.view.on(L.BEFORE_CHANGE_SIZE,i.resetMeasure),i}return Object.defineProperty(r.prototype,"name",{get:function(){return"slider"},enumerable:!1,configurable:!0}),r.prototype.destroy=function(){e.prototype.destroy.call(this),this.view.off(L.BEFORE_CHANGE_DATA,this.resetMeasure),this.view.off(L.BEFORE_CHANGE_SIZE,this.resetMeasure)},r.prototype.init=function(){},r.prototype.render=function(){this.option=this.view.getOptions().slider;var t=this.getSliderCfg(),i=t.start,n=t.end;(0,h.isNil)(this.start)&&(this.start=i,this.end=n);var a=this.view.getOptions().data;this.option&&!(0,h.isEmpty)(a)?this.slider?this.slider=this.updateSlider():(this.slider=this.createSlider(),this.slider.component.on("sliderchange",this.onChangeFn)):this.slider&&(this.slider.component.destroy(),this.slider=void 0)},r.prototype.layout=function(){var t=this;if(this.option&&!this.width&&(this.measureSlider(),setTimeout(function(){t.view.destroyed||t.changeViewData(t.start,t.end)},0)),this.slider){var i=this.view.coordinateBBox.width,n=this.slider.component.get("padding"),a=(0,g.__read)(n,4),o=a[0],s=a[1],l=a[2],u=a[3],c=this.slider.component.getLayoutBBox(),f=new Ee(c.x,c.y,Math.min(c.width,i),c.height).expand(n),v=this.getMinMaxText(this.start,this.end),d=v.minText,p=v.maxText,y=(0,g.__read)(Er(this.view.viewBBox,f,E.BOTTOM),2),m=y[0],x=y[1],_=(0,g.__read)(Er(this.view.coordinateBBox,f,E.BOTTOM),2),w=_[0],b=_[1];this.slider.component.update((0,g.__assign)((0,g.__assign)({},this.getSliderCfg()),{x:w+u,y:x+o,width:this.width,start:this.start,end:this.end,minText:d,maxText:p})),this.view.viewBBox=this.view.viewBBox.cut(f,E.BOTTOM)}},r.prototype.update=function(){this.render()},r.prototype.createSlider=function(){var t=this.getSliderCfg(),i=new zp((0,g.__assign)({container:this.container},t));return i.init(),{component:i,layer:J.FORE,direction:E.BOTTOM,type:N.SLIDER}},r.prototype.updateSlider=function(){var t=this.getSliderCfg();if(this.width){var i=this.getMinMaxText(this.start,this.end),n=i.minText,a=i.maxText;t=(0,g.__assign)((0,g.__assign)({},t),{width:this.width,start:this.start,end:this.end,minText:n,maxText:a})}return this.slider.component.update(t),this.slider},r.prototype.measureSlider=function(){var t=this.getSliderCfg().width;this.width=t},r.prototype.getSliderCfg=function(){var t={height:16,start:0,end:1,minText:"",maxText:"",x:0,y:0,width:this.view.coordinateBBox.width};if((0,h.isObject)(this.option)){var i=(0,g.__assign)({data:this.getData()},(0,h.get)(this.option,"trendCfg",{}));t=(0,h.deepMix)({},t,this.getThemeOptions(),this.option),t=(0,g.__assign)((0,g.__assign)({},t),{trendCfg:i})}return t.start=(0,h.clamp)(Math.min((0,h.isNil)(t.start)?0:t.start,(0,h.isNil)(t.end)?1:t.end),0,1),t.end=(0,h.clamp)(Math.max((0,h.isNil)(t.start)?0:t.start,(0,h.isNil)(t.end)?1:t.end),0,1),t},r.prototype.getData=function(){var t=this.view.getOptions().data,i=(0,g.__read)(this.view.getYScales(),1),n=i[0],a=this.view.getGroupScales();if(a.length){var o=a[0],s=o.field,l=o.ticks;return t.reduce(function(u,c){return c[s]===l[0]&&u.push(c[n.field]),u},[])}return t.map(function(u){return u[n.field]||0})},r.prototype.getThemeOptions=function(){var t=this.view.getTheme();return(0,h.get)(t,["components","slider","common"],{})},r.prototype.getMinMaxText=function(t,i){var n=this.view.getOptions().data,a=this.view.getXScale(),o=!0,s=(0,h.valuesOfKey)(n,a.field);a.isLinear&&(s=s.sort());var l=o?s:s.reverse(),u=(0,h.size)(n);if(!a||!u)return{};var c=(0,h.size)(l),f=Math.round(t*(c-1)),v=Math.round(i*(c-1)),d=(0,h.get)(l,[f]),p=(0,h.get)(l,[v]),y=this.getSliderCfg().formatter;return y&&(d=y(d,n[f],f),p=y(p,n[v],v)),{minText:d,maxText:p}},r.prototype.changeViewData=function(t,i){var n=this.view.getOptions().data,a=this.view.getXScale(),o=(0,h.size)(n);if(!(!a||!o)){var s=!0,l=(0,h.valuesOfKey)(n,a.field),u=this.view.getXScale().isLinear?l.sort(function(p,y){return Number(p)-Number(y)}):l,c=s?u:u.reverse(),f=(0,h.size)(c),v=Math.round(t*(f-1)),d=Math.round(i*(f-1));this.view.filter(a.field,function(p,y){var m=c.indexOf(p);return m>-1?li(m,v,d):!0}),this.view.render(!0)}},r.prototype.getComponents=function(){return this.slider?[this.slider]:[]},r.prototype.clear=function(){this.slider&&(this.slider.component.destroy(),this.slider=void 0),this.width=0,this.start=void 0,this.end=void 0},r}(di),r_=e_,ua=0,Oc=8,i_=32,n_=20,a_=function(e){(0,g.__extends)(r,e);function r(t){var i=e.call(this,t)||this;return i.onChangeFn=h.noop,i.resetMeasure=function(){i.clear()},i.onValueChange=function(n){var a=n.ratio,o=i.getValidScrollbarCfg().animate;i.ratio=(0,h.clamp)(a,0,1);var s=i.view.getOptions().animate;o||i.view.animate(!1),i.changeViewData(i.getScrollRange(),!0),i.view.animate(s)},i.container=i.view.getLayer(J.FORE).addGroup(),i.onChangeFn=(0,h.throttle)(i.onValueChange,20,{leading:!0}),i.trackLen=0,i.thumbLen=0,i.ratio=0,i.view.on(L.BEFORE_CHANGE_DATA,i.resetMeasure),i.view.on(L.BEFORE_CHANGE_SIZE,i.resetMeasure),i}return Object.defineProperty(r.prototype,"name",{get:function(){return"scrollbar"},enumerable:!1,configurable:!0}),r.prototype.destroy=function(){e.prototype.destroy.call(this),this.view.off(L.BEFORE_CHANGE_DATA,this.resetMeasure),this.view.off(L.BEFORE_CHANGE_SIZE,this.resetMeasure)},r.prototype.init=function(){},r.prototype.render=function(){this.option=this.view.getOptions().scrollbar,this.option?this.scrollbar?this.scrollbar=this.updateScrollbar():(this.scrollbar=this.createScrollbar(),this.scrollbar.component.on("scrollchange",this.onChangeFn)):this.scrollbar&&(this.scrollbar.component.destroy(),this.scrollbar=void 0)},r.prototype.layout=function(){var t=this;if(this.option&&!this.trackLen&&(this.measureScrollbar(),setTimeout(function(){t.view.destroyed||t.changeViewData(t.getScrollRange(),!0)})),this.scrollbar){var i=this.view.coordinateBBox.width,n=this.scrollbar.component.get("padding"),a=this.scrollbar.component.getLayoutBBox(),o=new Ee(a.x,a.y,Math.min(a.width,i),a.height).expand(n),s=this.getScrollbarComponentCfg(),l=void 0,u=void 0;if(s.isHorizontal){var c=(0,g.__read)(Er(this.view.viewBBox,o,E.BOTTOM),2),f=c[0],v=c[1],d=(0,g.__read)(Er(this.view.coordinateBBox,o,E.BOTTOM),2),p=d[0],y=d[1];l=p,u=v}else{var m=(0,g.__read)(Er(this.view.viewBBox,o,E.RIGHT),2),f=m[0],v=m[1],x=(0,g.__read)(Er(this.view.viewBBox,o,E.RIGHT),2),p=x[0],y=x[1];l=p,u=v}l+=n[3],u+=n[0],this.trackLen?this.scrollbar.component.update((0,g.__assign)((0,g.__assign)({},s),{x:l,y:u,trackLen:this.trackLen,thumbLen:this.thumbLen,thumbOffset:(this.trackLen-this.thumbLen)*this.ratio})):this.scrollbar.component.update((0,g.__assign)((0,g.__assign)({},s),{x:l,y:u})),this.view.viewBBox=this.view.viewBBox.cut(o,s.isHorizontal?E.BOTTOM:E.RIGHT)}},r.prototype.update=function(){this.render()},r.prototype.getComponents=function(){return this.scrollbar?[this.scrollbar]:[]},r.prototype.clear=function(){this.scrollbar&&(this.scrollbar.component.destroy(),this.scrollbar=void 0),this.trackLen=0,this.thumbLen=0,this.ratio=0,this.cnt=0,this.step=0,this.data=void 0,this.xScaleCfg=void 0,this.yScalesCfg=[]},r.prototype.setValue=function(t){this.onValueChange({ratio:t})},r.prototype.getValue=function(){return this.ratio},r.prototype.getThemeOptions=function(){var t=this.view.getTheme();return(0,h.get)(t,["components","scrollbar","common"],{})},r.prototype.getScrollbarTheme=function(t){var i=(0,h.get)(this.view.getTheme(),["components","scrollbar"]),n=t||{},a=n.thumbHighlightColor,o=(0,g.__rest)(n,["thumbHighlightColor"]);return{default:(0,h.deepMix)({},(0,h.get)(i,["default","style"],{}),o),hover:(0,h.deepMix)({},(0,h.get)(i,["hover","style"],{}),{thumbColor:a})}},r.prototype.measureScrollbar=function(){var t=this.view.getXScale(),i=this.view.getYScales().slice();this.data=this.getScrollbarData(),this.step=this.getStep(),this.cnt=this.getCnt();var n=this.getScrollbarComponentCfg(),a=n.trackLen,o=n.thumbLen;this.trackLen=a,this.thumbLen=o,this.xScaleCfg={field:t.field,values:t.values||[]},this.yScalesCfg=i},r.prototype.getScrollRange=function(){var t=Math.floor((this.cnt-this.step)*(0,h.clamp)(this.ratio,0,1)),i=Math.min(t+this.step-1,this.cnt-1);return[t,i]},r.prototype.changeViewData=function(t,i){var n=this,a=(0,g.__read)(t,2),o=a[0],s=a[1],l=this.getValidScrollbarCfg().type,u=l!=="vertical",c=(0,h.valuesOfKey)(this.data,this.xScaleCfg.field),f=this.view.getXScale().isLinear?c.sort(function(d,p){return Number(d)-Number(p)}):c,v=u?f:f.reverse();this.yScalesCfg.forEach(function(d){n.view.scale(d.field,{formatter:d.formatter,type:d.type,min:d.min,max:d.max,tickMethod:d.tickMethod})}),this.view.filter(this.xScaleCfg.field,function(d){var p=v.indexOf(d);return p>-1?li(p,o,s):!0}),this.view.render(!0)},r.prototype.createScrollbar=function(){var t=this.getValidScrollbarCfg().type,i=t!=="vertical",n=new Gp((0,g.__assign)((0,g.__assign)({container:this.container},this.getScrollbarComponentCfg()),{x:0,y:0}));return n.init(),{component:n,layer:J.FORE,direction:i?E.BOTTOM:E.RIGHT,type:N.SCROLLBAR}},r.prototype.updateScrollbar=function(){var t=this.getScrollbarComponentCfg(),i=this.trackLen?(0,g.__assign)((0,g.__assign)({},t),{trackLen:this.trackLen,thumbLen:this.thumbLen,thumbOffset:(this.trackLen-this.thumbLen)*this.ratio}):(0,g.__assign)({},t);return this.scrollbar.component.update(i),this.scrollbar},r.prototype.getStep=function(){if(this.step)return this.step;var t=this.view.coordinateBBox,i=this.getValidScrollbarCfg(),n=i.type,a=i.categorySize,o=n!=="vertical";return Math.floor((o?t.width:t.height)/a)},r.prototype.getCnt=function(){if(this.cnt)return this.cnt;var t=this.view.getXScale(),i=this.getScrollbarData(),n=(0,h.valuesOfKey)(i,t.field);return(0,h.size)(n)},r.prototype.getScrollbarComponentCfg=function(){var t=this.view,i=t.coordinateBBox,n=t.viewBBox,a=this.getValidScrollbarCfg(),o=a.type,s=a.padding,l=a.width,u=a.height,c=a.style,f=o!=="vertical",v=(0,g.__read)(s,4),d=v[0],p=v[1],y=v[2],m=v[3],x=f?{x:i.minX+m,y:n.maxY-u-y}:{x:n.maxX-l-p,y:i.minY+d},_=this.getStep(),w=this.getCnt(),b=f?i.width-m-p:i.height-d-y,S=Math.max(b*(0,h.clamp)(_/w,0,1),n_);return(0,g.__assign)((0,g.__assign)({},this.getThemeOptions()),{x:x.x,y:x.y,size:f?u:l,isHorizontal:f,trackLen:b,thumbLen:S,thumbOffset:0,theme:this.getScrollbarTheme(c)})},r.prototype.getValidScrollbarCfg=function(){var t={type:"horizontal",categorySize:i_,width:Oc,height:Oc,padding:[0,0,0,0],animate:!0,style:{}};return(0,h.isObject)(this.option)&&(t=(0,g.__assign)((0,g.__assign)({},t),this.option)),(!(0,h.isObject)(this.option)||!this.option.padding)&&(t.padding=t.type==="horizontal"?[ua,0,ua,0]:[0,ua,0,ua]),t},r.prototype.getScrollbarData=function(){var t=this.view.getCoordinate(),i=this.getValidScrollbarCfg(),n=this.view.getOptions().data||[];return t.isReflect("y")&&i.type==="vertical"&&(n=(0,g.__spreadArray)([],(0,g.__read)(n),!1).reverse()),n},r}(di),o_=a_,s_={fill:"#CCD6EC",opacity:.3};function l_(e,r,t){var i,n,a,o,s,l,u=Zy(e,r,t);if(u.length){u=(0,h.flatten)(u);try{for(var c=(0,g.__values)(u),f=c.next();!f.done;f=c.next()){var v=f.value;try{for(var d=(a=void 0,(0,g.__values)(v)),p=d.next();!p.done;p=d.next()){var y=p.value,m=y.mappingData,x=m.x,_=m.y;y.x=(0,h.isArray)(x)?x[x.length-1]:x,y.y=(0,h.isArray)(_)?_[_.length-1]:_}}catch(I){a={error:I}}finally{try{p&&!p.done&&(o=d.return)&&o.call(d)}finally{if(a)throw a.error}}}}catch(I){i={error:I}}finally{try{f&&!f.done&&(n=c.return)&&n.call(c)}finally{if(i)throw i.error}}var w=t.shared;if(w===!1&&u.length>1){var b=u[0],S=Math.abs(r.y-b[0].y);try{for(var C=(0,g.__values)(u),A=C.next();!A.done;A=C.next()){var F=A.value,P=Math.abs(r.y-F[0].y);P<=S&&(b=F,S=P)}}catch(I){s={error:I}}finally{try{A&&!A.done&&(l=C.return)&&l.call(C)}finally{if(s)throw s.error}}u=[b]}return(0,h.uniq)((0,h.flatten)(u))}return[]}var u_=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.show=function(t){var i=this.context.view,n=this.context.event,a=i.getController("tooltip").getTooltipCfg(),o=l_(i,{x:n.x,y:n.y},a);if(!(0,h.isEqual)(o,this.items)&&(this.items=o,o.length)){var s=i.getXScale().field,l=o[0].data[s],u=[],c=i.geometries;if((0,h.each)(c,function(mt){if(mt.type==="interval"||mt.type==="schema"){var ut=mt.getElementsBy(function(pt){var At=pt.getData();return At[s]===l});u=u.concat(ut)}}),u.length){var f=i.getCoordinate(),v=u[0].shape.getCanvasBBox(),d=u[0].shape.getCanvasBBox(),p=v;(0,h.each)(u,function(mt){var ut=mt.shape.getCanvasBBox();f.isTransposed?(ut.minYd.maxY&&(d=ut)):(ut.minXd.maxX&&(d=ut)),p.x=Math.min(ut.minX,p.minX),p.y=Math.min(ut.minY,p.minY),p.width=Math.max(ut.maxX,p.maxX)-p.x,p.height=Math.max(ut.maxY,p.maxY)-p.y});var y=i.backgroundGroup,m=i.coordinateBBox,x=void 0;if(f.isRect){var _=i.getXScale(),w=t||{},b=w.appendRatio,S=w.appendWidth;(0,h.isNil)(S)&&(b=(0,h.isNil)(b)?_.isLinear?0:.25:b,S=f.isTransposed?b*d.height:b*v.width);var C=void 0,A=void 0,F=void 0,P=void 0;f.isTransposed?(C=m.minX,A=Math.min(d.minY,v.minY)-S,F=m.width,P=p.height+S*2):(C=Math.min(v.minX,d.minX)-S,A=m.minY,F=p.width+S*2,P=m.height),x=[["M",C,A],["L",C+F,A],["L",C+F,A+P],["L",C,A+P],["Z"]]}else{var I=(0,h.head)(u),V=(0,h.last)(u),Z=Xi(I.getModel(),f).startAngle,vt=Xi(V.getModel(),f).endAngle,yt=f.getCenter(),Bt=f.getRadius(),G=f.innerRadius*Bt;x=_r(yt.x,yt.y,Bt,Z,vt,G)}if(this.regionPath)this.regionPath.attr("path",x),this.regionPath.show();else{var at=(0,h.get)(t,"style",s_);this.regionPath=y.addShape({type:"path",name:"active-region",capture:!1,attrs:(0,g.__assign)((0,g.__assign)({},at),{path:x})})}}}},r.prototype.hide=function(){this.regionPath&&this.regionPath.hide(),this.items=null},r.prototype.destroy=function(){this.hide(),this.regionPath&&this.regionPath.remove(!0),e.prototype.destroy.call(this)},r}(ne),c_=u_,h_=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.timeStamp=0,t}return r.prototype.show=function(){var t=this.context,i=t.event,n=t.view,a=n.isTooltipLocked();if(!a){var o=this.timeStamp,s=+new Date,l=(0,h.get)(t.view.getOptions(),"tooltip.showDelay",16);if(s-o>l){var u=this.location,c={x:i.x,y:i.y};(!u||!(0,h.isEqual)(u,c))&&this.showTooltip(n,c),this.timeStamp=s,this.location=c}}},r.prototype.hide=function(){var t=this.context.view,i=t.getController("tooltip"),n=this.context.event,a=n.clientX,o=n.clientY;i.isCursorEntered({x:a,y:o})||t.isTooltipLocked()||(this.hideTooltip(t),this.location=null)},r.prototype.showTooltip=function(t,i){t.showTooltip(i)},r.prototype.hideTooltip=function(t){t.hideTooltip()},r}(ne),Pc=h_,f_=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.showTooltip=function(t,i){var n=Qe(t);(0,h.each)(n,function(a){var o=wo(t,a,i);a.showTooltip(o)})},r.prototype.hideTooltip=function(t){var i=Qe(t);(0,h.each)(i,function(n){n.hideTooltip()})},r}(Pc),v_=f_,d_=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.timeStamp=0,t}return r.prototype.destroy=function(){e.prototype.destroy.call(this),this.tooltip&&this.tooltip.destroy()},r.prototype.show=function(){var t=this.context,i=t.event,n=this.timeStamp,a=+new Date;if(a-n>16){var o=this.location,s={x:i.x,y:i.y};(!o||!(0,h.isEqual)(o,s))&&this.showTooltip(s),this.timeStamp=a,this.location=s}},r.prototype.hide=function(){this.hideTooltip(),this.location=null},r.prototype.showTooltip=function(t){var i=this.context,n=i.event,a=n.target;if(a&&a.get("tip")){this.tooltip||this.renderTooltip();var o=a.get("tip");this.tooltip.update((0,g.__assign)({title:o},t)),this.tooltip.show()}},r.prototype.hideTooltip=function(){this.tooltip&&this.tooltip.hide()},r.prototype.renderTooltip=function(){var t,i=this.context.view,n=i.canvas,a={start:{x:0,y:0},end:{x:n.get("width"),y:n.get("height")}},o=i.getTheme(),s=(0,h.get)(o,["components","tooltip","domStyles"],{}),l=new Nn({parent:n.get("el").parentNode,region:a,visible:!1,crosshairs:null,domStyles:(0,g.__assign)({},(0,h.deepMix)({},s,(t={},t[sr]={"max-width":"50%"},t[lr]={"word-break":"break-all"},t)))});l.init(),l.setCapture(!1),this.tooltip=l},r}(ne),g_=d_,p_=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.stateName="",t}return r.prototype.hasState=function(t){return t.hasState(this.stateName)},r.prototype.setElementState=function(t,i){t.setState(this.stateName,i)},r.prototype.setState=function(){this.setStateEnable(!0)},r.prototype.clear=function(){var t=this.context.view;this.clearViewState(t)},r.prototype.clearViewState=function(t){var i=this,n=cu(t,this.stateName);(0,h.each)(n,function(a){i.setElementState(a,!1)})},r}(ne),qo=p_;function kc(e){return(0,h.get)(e.get("delegateObject"),"item")}var y_=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.ignoreListItemStates=["unchecked"],t}return r.prototype.isItemIgnore=function(t,i){var n=this.ignoreListItemStates,a=n.filter(function(o){return i.hasState(t,o)});return!!a.length},r.prototype.setStateByComponent=function(t,i,n){var a=this.context.view,o=t.get("field"),s=Ce(a);this.setElementsStateByItem(s,o,i,n)},r.prototype.setStateByElement=function(t,i){this.setElementState(t,i)},r.prototype.isMathItem=function(t,i,n){var a=this.context.view,o=fi(a,i),s=je(t,i);return!(0,h.isNil)(s)&&n.name===o.getText(s)},r.prototype.setElementsStateByItem=function(t,i,n,a){var o=this;(0,h.each)(t,function(s){o.isMathItem(s,i,n)&&s.setState(o.stateName,a)})},r.prototype.setStateEnable=function(t){var i=br(this.context);if(i)ou(this.context)&&this.setStateByElement(i,t);else{var n=zr(this.context);if(qi(n)){var a=n.item,o=n.component;if(a&&o&&!this.isItemIgnore(a,o)){var s=this.context.event.gEvent;if(s&&s.fromShape&&s.toShape&&kc(s.fromShape)===kc(s.toShape))return;this.setStateByComponent(o,a,t)}}}},r.prototype.toggle=function(){var t=br(this.context);if(t){var i=t.hasState(this.stateName);this.setElementState(t,!i)}},r.prototype.reset=function(){this.setStateEnable(!1)},r}(qo),Ko=y_,m_=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.stateName="active",t}return r.prototype.active=function(){this.setState()},r}(Ko),x_=m_,__=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.cache={},t}return r.prototype.getColorScale=function(t,i){var n=i.geometry.getAttribute("color");if(!n)return null;var a=t.getScaleByField(n.getFields()[0]);return a},r.prototype.getLinkPath=function(t,i){var n=this.context.view,a=n.getCoordinate().isTransposed,o=t.shape.getCanvasBBox(),s=i.shape.getCanvasBBox(),l=a?[["M",o.minX,o.minY],["L",s.minX,s.maxY],["L",s.maxX,s.maxY],["L",o.maxX,o.minY],["Z"]]:[["M",o.maxX,o.minY],["L",s.minX,s.minY],["L",s.minX,s.maxY],["L",o.maxX,o.maxY],["Z"]];return l},r.prototype.addLinkShape=function(t,i,n,a){var o={opacity:.4,fill:i.shape.attr("fill")};t.addShape({type:"path",attrs:(0,g.__assign)((0,g.__assign)({},(0,h.deepMix)({},o,(0,h.isFunction)(a)?a(o,i):a)),{path:this.getLinkPath(i,n)})})},r.prototype.linkByElement=function(t,i){var n=this,a=this.context.view,o=this.getColorScale(a,t);if(!!o){var s=je(t,o.field);if(!this.cache[s]){var l=Sy(a,o.field,s),u=this.linkGroup,c=u.addGroup();this.cache[s]=c;var f=l.length;(0,h.each)(l,function(v,d){if(d=0},i)},r}($o),Bc=P_,k_=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.stateName="active",t}return r.prototype.highlight=function(){this.setState()},r.prototype.setElementState=function(t,i){var n=this.context.view,a=Ce(n);Dc(a,function(o){return t===o},i)},r.prototype.clear=function(){var t=this.context.view;Jo(t)},r}(Qo),D_=k_,B_=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.stateName="selected",t}return r.prototype.selected=function(){this.setState()},r}($o),R_=B_,N_=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.stateName="selected",t}return r.prototype.selected=function(){this.setState()},r}(Ko),z_=N_,V_=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.stateName="selected",t}return r.prototype.selected=function(){this.setState()},r}(Qo),G_=V_,W_=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.stateName="",t.ignoreItemStates=[],t}return r.prototype.getTriggerListInfo=function(){var t=zr(this.context),i=null;return qi(t)&&(i={item:t.item,list:t.component}),i},r.prototype.getAllowComponents=function(){var t=this,i=this.context.view,n=vu(i),a=[];return(0,h.each)(n,function(o){o.isList()&&t.allowSetStateByElement(o)&&a.push(o)}),a},r.prototype.hasState=function(t,i){return t.hasState(i,this.stateName)},r.prototype.clearAllComponentsState=function(){var t=this,i=this.getAllowComponents();(0,h.each)(i,function(n){n.clearItemsState(t.stateName)})},r.prototype.allowSetStateByElement=function(t){var i=t.get("field");if(!i)return!1;if(this.cfg&&this.cfg.componentNames){var n=t.get("name");if(this.cfg.componentNames.indexOf(n)===-1)return!1}var a=this.context.view,o=fi(a,i);return o&&o.isCategory},r.prototype.allowSetStateByItem=function(t,i){var n=this.ignoreItemStates;if(n.length){var a=n.filter(function(o){return i.hasState(t,o)});return a.length===0}return!0},r.prototype.setStateByElement=function(t,i,n){var a=t.get("field"),o=this.context.view,s=fi(o,a),l=je(i,a),u=s.getText(l);this.setItemsState(t,u,n)},r.prototype.setStateEnable=function(t){var i=this,n=br(this.context);if(n){var a=this.getAllowComponents();(0,h.each)(a,function(u){i.setStateByElement(u,n,t)})}else{var o=zr(this.context);if(qi(o)){var s=o.item,l=o.component;this.allowSetStateByElement(l)&&this.allowSetStateByItem(s,l)&&this.setItemState(l,s,t)}}},r.prototype.setItemsState=function(t,i,n){var a=this,o=t.getItems();(0,h.each)(o,function(s){s.name===i&&a.setItemState(t,s,n)})},r.prototype.setItemState=function(t,i,n){t.setItemState(i,this.stateName,n)},r.prototype.setState=function(){this.setStateEnable(!0)},r.prototype.reset=function(){this.setStateEnable(!1)},r.prototype.toggle=function(){var t=this.getTriggerListInfo();if(t&&t.item){var i=t.list,n=t.item,a=this.hasState(i,n);this.setItemState(i,n,!a)}},r.prototype.clear=function(){var t=this.getTriggerListInfo();t?t.list.clearItemsState(this.stateName):this.clearAllComponentsState()},r}(ne),Hr=W_,H_=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.stateName="active",t}return r.prototype.active=function(){this.setState()},r}(Hr),Y_=H_,Rc="inactive",Nc="active";function X_(e){var r=e.getItems();(0,h.each)(r,function(t){e.hasState(t,Nc)&&e.setItemState(t,Nc,!1),e.hasState(t,Rc)&&e.setItemState(t,Rc,!1)})}var an="inactive",Yr="active",U_=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.stateName=Yr,t.ignoreItemStates=["unchecked"],t}return r.prototype.setItemsState=function(t,i,n){this.setHighlightBy(t,function(a){return a.name===i},n)},r.prototype.setItemState=function(t,i,n){var a=t.getItems();this.setHighlightBy(t,function(o){return o===i},n)},r.prototype.setHighlightBy=function(t,i,n){var a=t.getItems();if(n)(0,h.each)(a,function(l){i(l)?(t.hasState(l,an)&&t.setItemState(l,an,!1),t.setItemState(l,Yr,!0)):t.hasState(l,Yr)||t.setItemState(l,an,!0)});else{var o=t.getItemsByState(Yr),s=!0;(0,h.each)(o,function(l){if(!i(l))return s=!1,!1}),s?this.clear():(0,h.each)(a,function(l){i(l)&&(t.hasState(l,Yr)&&t.setItemState(l,Yr,!1),t.setItemState(l,an,!0))})}},r.prototype.highlight=function(){this.setState()},r.prototype.clear=function(){var t=this.getTriggerListInfo();if(t)X_(t.list);else{var i=this.getAllowComponents();(0,h.each)(i,function(n){n.clearItemsState(Yr),n.clearItemsState(an)})}},r}(Hr),es=U_,j_=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.stateName="selected",t}return r.prototype.selected=function(){this.setState()},r}(Hr),Z_=j_,q_=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.stateName="unchecked",t}return r.prototype.unchecked=function(){this.setState()},r}(Hr),K_=q_,yi="unchecked",ca="checked",$_=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.stateName=ca,t}return r.prototype.setItemState=function(t,i,n){this.setCheckedBy(t,function(a){return a===i},n)},r.prototype.setCheckedBy=function(t,i,n){var a=t.getItems();n&&(0,h.each)(a,function(o){i(o)?(t.hasState(o,yi)&&t.setItemState(o,yi,!1),t.setItemState(o,ca,!0)):t.hasState(o,ca)||t.setItemState(o,yi,!0)})},r.prototype.toggle=function(){var t=this.getTriggerListInfo();if(t&&t.item){var i=t.list,n=t.item,a=!(0,h.some)(i.getItems(),function(o){return i.hasState(o,yi)});a||i.hasState(n,yi)?this.setItemState(i,n,!0):this.reset()}},r.prototype.checked=function(){this.setState()},r.prototype.reset=function(){var t=this.getAllowComponents();(0,h.each)(t,function(i){i.clearItemsState(ca),i.clearItemsState(yi)})},r}(Hr),Q_=$_,mi="unchecked",J_=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.toggle=function(){var t,i,n,a,o,s,l,u,c=this.getTriggerListInfo();if(c==null?void 0:c.item){var f=c.list,v=c.item,d=f.getItems(),p=d.filter(function(I){return!f.hasState(I,mi)}),y=d.filter(function(I){return f.hasState(I,mi)}),m=p[0];if(d.length===p.length)try{for(var x=(0,g.__values)(d),_=x.next();!_.done;_=x.next()){var w=_.value;f.setItemState(w,mi,w.id!==v.id)}}catch(I){t={error:I}}finally{try{_&&!_.done&&(i=x.return)&&i.call(x)}finally{if(t)throw t.error}}else if(d.length-y.length==1)if(m.id===v.id)try{for(var b=(0,g.__values)(d),S=b.next();!S.done;S=b.next()){var w=S.value;f.setItemState(w,mi,!1)}}catch(I){n={error:I}}finally{try{S&&!S.done&&(a=b.return)&&a.call(b)}finally{if(n)throw n.error}}else try{for(var C=(0,g.__values)(d),A=C.next();!A.done;A=C.next()){var w=A.value;f.setItemState(w,mi,w.id!==v.id)}}catch(I){o={error:I}}finally{try{A&&!A.done&&(s=C.return)&&s.call(C)}finally{if(o)throw o.error}}else try{for(var F=(0,g.__values)(d),P=F.next();!P.done;P=F.next()){var w=P.value;f.setItemState(w,mi,w.id!==v.id)}}catch(I){l={error:I}}finally{try{P&&!P.done&&(u=F.return)&&u.call(F)}finally{if(l)throw l.error}}}},r}(Hr),tw=J_,zc="showRadio",rs="legend-radio-tip",ew=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.timeStamp=0,t}return r.prototype.show=function(){var t=this.getTriggerListInfo();if(t==null?void 0:t.item){var i=t.list,n=t.item;i.setItemState(n,zc,!0)}},r.prototype.hide=function(){var t=this.getTriggerListInfo();if(t==null?void 0:t.item){var i=t.list,n=t.item;i.setItemState(n,zc,!1)}},r.prototype.destroy=function(){e.prototype.destroy.call(this),this.tooltip&&this.tooltip.destroy()},r.prototype.showTip=function(){var t=this.context,i=t.event,n=this.timeStamp,a=+new Date,o=this.context.event.target;if(a-n>16&&o.get("name")==="legend-item-radio"){var s=this.location,l={x:i.x,y:i.y};this.timeStamp=a,this.location=l,(!s||!(0,h.isEqual)(s,l))&&this.showTooltip(l)}},r.prototype.hideTip=function(){this.hideTooltip(),this.location=null},r.prototype.showTooltip=function(t){var i=this.context,n=i.event,a=n.target;if(a&&a.get("tip")){this.tooltip||this.renderTooltip();var o=i.view.getCanvas().get("el").getBoundingClientRect(),s=o.x,l=o.y;this.tooltip.update((0,g.__assign)((0,g.__assign)({title:a.get("tip")},t),{x:t.x+s,y:t.y+l})),this.tooltip.show()}},r.prototype.hideTooltip=function(){this.tooltip&&this.tooltip.hide()},r.prototype.renderTooltip=function(){var t,i=(t={},t[sr]={padding:"6px 8px",transform:"translate(-50%, -80%)",background:"rgba(0,0,0,0.75)",color:"#fff","border-radius":"2px","z-index":100},t[lr]={"font-size":"12px","line-height":"14px","margin-bottom":0,"word-break":"break-all"},t);document.getElementById(rs)&&document.body.removeChild(document.getElementById(rs));var n=new Nn({parent:document.body,region:null,visible:!1,crosshairs:null,domStyles:i,containerId:rs});n.init(),n.setCapture(!1),this.tooltip=n},r}(Hr),rw=ew,iw=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.maskShape=null,t.points=[],t.starting=!1,t.moving=!1,t.preMovePoint=null,t.shapeType="path",t}return r.prototype.getCurrentPoint=function(){var t=this.context.event;return{x:t.x,y:t.y}},r.prototype.emitEvent=function(t){var i="mask:".concat(t),n=this.context.view,a=this.context.event;n.emit(i,{target:this.maskShape,shape:this.maskShape,points:this.points,x:a.x,y:a.y})},r.prototype.createMask=function(){var t=this.context.view,i=this.getMaskAttrs(),n=t.foregroundGroup.addShape({type:this.shapeType,name:"mask",draggable:!0,attrs:(0,g.__assign)({fill:"#C5D4EB",opacity:.3},i)});return n},r.prototype.getMaskPath=function(){return[]},r.prototype.show=function(){this.maskShape&&(this.maskShape.show(),this.emitEvent("show"))},r.prototype.start=function(t){this.starting=!0,this.moving=!1,this.points=[this.getCurrentPoint()],this.maskShape||(this.maskShape=this.createMask(),this.maskShape.set("capture",!1)),this.updateMask(t==null?void 0:t.maskStyle),this.emitEvent("start")},r.prototype.moveStart=function(){this.moving=!0,this.preMovePoint=this.getCurrentPoint()},r.prototype.move=function(){if(!(!this.moving||!this.maskShape)){var t=this.getCurrentPoint(),i=this.preMovePoint,n=t.x-i.x,a=t.y-i.y,o=this.points;(0,h.each)(o,function(s){s.x+=n,s.y+=a}),this.updateMask(),this.emitEvent("change"),this.preMovePoint=t}},r.prototype.updateMask=function(t){var i=(0,h.deepMix)({},this.getMaskAttrs(),t);this.maskShape.attr(i)},r.prototype.moveEnd=function(){this.moving=!1,this.preMovePoint=null},r.prototype.end=function(){this.starting=!1,this.emitEvent("end"),this.maskShape&&this.maskShape.set("capture",!0)},r.prototype.hide=function(){this.maskShape&&(this.maskShape.hide(),this.emitEvent("hide"))},r.prototype.resize=function(){this.starting&&this.maskShape&&(this.points.push(this.getCurrentPoint()),this.updateMask(),this.emitEvent("change"))},r.prototype.destroy=function(){this.points=[],this.maskShape&&this.maskShape.remove(),this.maskShape=null,this.preMovePoint=null,e.prototype.destroy.call(this)},r}(ne),is=iw;function Vc(e){var r=(0,h.last)(e),t=0,i=0,n=0;if(e.length){var a=e[0];t=_o(a,r)/2,i=(r.x+a.x)/2,n=(r.y+a.y)/2}return{x:i,y:n,r:t}}var nw=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.shapeType="circle",t}return r.prototype.getMaskAttrs=function(){return Vc(this.points)},r}(is),aw=nw;function Gc(e){return{start:(0,h.head)(e),end:(0,h.last)(e)}}function Wc(e,r){var t=Math.min(e.x,r.x),i=Math.min(e.y,r.y),n=Math.abs(r.x-e.x),a=Math.abs(r.y-e.y);return{x:t,y:i,width:n,height:a}}var ow=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.shapeType="rect",t}return r.prototype.getRegion=function(){return Gc(this.points)},r.prototype.getMaskAttrs=function(){var t=this.getRegion(),i=t.start,n=t.end;return Wc(i,n)},r}(is),Hc=ow;function Yc(e){e.x=(0,h.clamp)(e.x,0,1),e.y=(0,h.clamp)(e.y,0,1)}function Xc(e,r,t,i){var n=null,a=null,o=i.invert((0,h.head)(e)),s=i.invert((0,h.last)(e));return t&&(Yc(o),Yc(s)),r==="x"?(n=i.convert({x:o.x,y:0}),a=i.convert({x:s.x,y:1})):(n=i.convert({x:0,y:o.y}),a=i.convert({x:1,y:s.y})),{start:n,end:a}}var sw=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.dim="x",t.inPlot=!0,t}return r.prototype.getRegion=function(){var t=this.context.view.getCoordinate();return Xc(this.points,this.dim,this.inPlot,t)},r}(Hc),Uc=sw;function ns(e){var r=[];return e.length&&((0,h.each)(e,function(t,i){i===0?r.push(["M",t.x,t.y]):r.push(["L",t.x,t.y])}),r.push(["L",e[0].x,e[0].y])),r}function jc(e){return{path:ns(e)}}var lw=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getMaskPath=function(){return ns(this.points)},r.prototype.getMaskAttrs=function(){return jc(this.points)},r.prototype.addPoint=function(){this.resize()},r}(is),Zc=lw;function as(e){return Ay(e,!0)}function qc(e){return{path:as(e)}}var uw=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getMaskPath=function(){return as(this.points)},r.prototype.getMaskAttrs=function(){return qc(this.points)},r}(Zc),cw=uw,hw=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.maskShapes=[],t.starting=!1,t.moving=!1,t.recordPoints=null,t.preMovePoint=null,t.shapeType="path",t.maskType="multi-mask",t}return r.prototype.getCurrentPoint=function(){var t=this.context.event;return{x:t.x,y:t.y}},r.prototype.emitEvent=function(t){var i="".concat(this.maskType,":").concat(t),n=this.context.view,a=this.context.event,o={type:this.shapeType,name:this.maskType,get:function(s){return o.hasOwnProperty(s)?o[s]:void 0}};n.emit(i,{target:o,maskShapes:this.maskShapes,multiPoints:this.recordPoints,x:a.x,y:a.y})},r.prototype.createMask=function(t){var i=this.context.view,n=this.recordPoints[t],a=this.getMaskAttrs(n),o=i.foregroundGroup.addShape({type:this.shapeType,name:"mask",draggable:!0,attrs:(0,g.__assign)({fill:"#C5D4EB",opacity:.3},a)});this.maskShapes.push(o)},r.prototype.getMaskPath=function(t){return[]},r.prototype.show=function(){this.maskShapes.length>0&&(this.maskShapes.forEach(function(t){return t.show()}),this.emitEvent("show"))},r.prototype.start=function(t){this.recordPointStart(),this.starting=!0,this.moving=!1;var i=this.recordPoints.length-1;this.createMask(i),this.updateShapesCapture(!1),this.updateMask(t==null?void 0:t.maskStyle),this.emitEvent("start")},r.prototype.moveStart=function(){this.moving=!0,this.preMovePoint=this.getCurrentPoint(),this.updateShapesCapture(!1)},r.prototype.move=function(){if(!(!this.moving||this.maskShapes.length===0)){var t=this.getCurrentPoint(),i=this.preMovePoint,n=t.x-i.x,a=t.y-i.y,o=this.getCurMaskShapeIndex();o>-1&&(this.recordPoints[o].forEach(function(s){s.x+=n,s.y+=a}),this.updateMask(),this.emitEvent("change"),this.preMovePoint=t)}},r.prototype.updateMask=function(t){var i=this;this.recordPoints.forEach(function(n,a){var o=(0,h.deepMix)({},i.getMaskAttrs(n),t);i.maskShapes[a].attr(o)})},r.prototype.resize=function(){this.starting&&this.maskShapes.length>0&&(this.recordPointContinue(),this.updateMask(),this.emitEvent("change"))},r.prototype.moveEnd=function(){this.moving=!1,this.preMovePoint=null,this.updateShapesCapture(!0)},r.prototype.end=function(){this.starting=!1,this.emitEvent("end"),this.updateShapesCapture(!0)},r.prototype.hide=function(){this.maskShapes.length>0&&(this.maskShapes.forEach(function(t){return t.hide()}),this.emitEvent("hide"))},r.prototype.remove=function(){var t=this.getCurMaskShapeIndex();t>-1&&(this.recordPoints.splice(t,1),this.maskShapes[t].remove(),this.maskShapes.splice(t,1),this.preMovePoint=null,this.updateShapesCapture(!0),this.emitEvent("change"))},r.prototype.clearAll=function(){this.recordPointClear(),this.maskShapes.forEach(function(t){return t.remove()}),this.maskShapes=[],this.preMovePoint=null},r.prototype.clear=function(){var t=this.getCurMaskShapeIndex();t===-1?(this.recordPointClear(),this.maskShapes.forEach(function(i){return i.remove()}),this.maskShapes=[],this.emitEvent("clearAll")):(this.recordPoints.splice(t,1),this.maskShapes[t].remove(),this.maskShapes.splice(t,1),this.preMovePoint=null,this.emitEvent("clearSingle")),this.preMovePoint=null},r.prototype.destroy=function(){this.clear(),e.prototype.destroy.call(this)},r.prototype.getRecordPoints=function(){var t;return(0,g.__spreadArray)([],(0,g.__read)((t=this.recordPoints)!==null&&t!==void 0?t:[]),!1)},r.prototype.recordPointStart=function(){var t=this.getRecordPoints(),i=this.getCurrentPoint();this.recordPoints=(0,g.__spreadArray)((0,g.__spreadArray)([],(0,g.__read)(t),!1),[[i]],!1)},r.prototype.recordPointContinue=function(){var t=this.getRecordPoints(),i=this.getCurrentPoint(),n=t.splice(-1,1)[0]||[];n.push(i),this.recordPoints=(0,g.__spreadArray)((0,g.__spreadArray)([],(0,g.__read)(t),!1),[n],!1)},r.prototype.recordPointClear=function(){this.recordPoints=[]},r.prototype.updateShapesCapture=function(t){this.maskShapes.forEach(function(i){return i.set("capture",t)})},r.prototype.getCurMaskShapeIndex=function(){var t=this.getCurrentPoint();return this.maskShapes.findIndex(function(i){var n=i.attrs,a=n.width,o=n.height,s=n.r,l=a===0||o===0||s===0;return!l&&i.isHit(t.x,t.y)})},r}(ne),os=hw,fw=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.shapeType="rect",t}return r.prototype.getRegion=function(t){return Gc(t)},r.prototype.getMaskAttrs=function(t){var i=this.getRegion(t),n=i.start,a=i.end;return Wc(n,a)},r}(os),Kc=fw,vw=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.dim="x",t.inPlot=!0,t}return r.prototype.getRegion=function(t){var i=this.context.view.getCoordinate();return Xc(t,this.dim,this.inPlot,i)},r}(Kc),$c=vw,dw=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.shapeType="circle",t.getMaskAttrs=Vc,t}return r}(os),gw=dw,pw=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.getMaskPath=ns,t.getMaskAttrs=jc,t}return r.prototype.addPoint=function(){this.resize()},r}(os),Qc=pw,yw=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.getMaskPath=as,t.getMaskAttrs=qc,t}return r}(Qc),mw=yw,xw=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.setCursor=function(t){var i=this.context.view;i.getCanvas().setCursor(t)},r.prototype.default=function(){this.setCursor("default")},r.prototype.pointer=function(){this.setCursor("pointer")},r.prototype.move=function(){this.setCursor("move")},r.prototype.crosshair=function(){this.setCursor("crosshair")},r.prototype.wait=function(){this.setCursor("wait")},r.prototype.help=function(){this.setCursor("help")},r.prototype.text=function(){this.setCursor("text")},r.prototype.eResize=function(){this.setCursor("e-resize")},r.prototype.wResize=function(){this.setCursor("w-resize")},r.prototype.nResize=function(){this.setCursor("n-resize")},r.prototype.sResize=function(){this.setCursor("s-resize")},r.prototype.neResize=function(){this.setCursor("ne-resize")},r.prototype.nwResize=function(){this.setCursor("nw-resize")},r.prototype.seResize=function(){this.setCursor("se-resize")},r.prototype.swResize=function(){this.setCursor("sw-resize")},r.prototype.nsResize=function(){this.setCursor("ns-resize")},r.prototype.ewResize=function(){this.setCursor("ew-resize")},r.prototype.zoomIn=function(){this.setCursor("zoom-in")},r.prototype.zoomOut=function(){this.setCursor("zoom-out")},r}(ne),_w=xw,ww=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.filterView=function(t,i,n){var a=this;t.getScaleByField(i)&&t.filter(i,n),t.views&&t.views.length&&(0,h.each)(t.views,function(o){a.filterView(o,i,n)})},r.prototype.filter=function(){var t=zr(this.context);if(t){var i=this.context.view,n=t.component,a=n.get("field");if(qi(t)){if(a){var o=n.getItemsByState("unchecked"),s=fi(i,a),l=o.map(function(d){return d.name});l.length?this.filterView(i,a,function(d){var p=s.getText(d);return!l.includes(p)}):this.filterView(i,a,null),i.render(!0)}}else if(su(t)){var u=n.getValue(),c=(0,g.__read)(u,2),f=c[0],v=c[1];this.filterView(i,a,function(d){return d>=f&&d<=v}),i.render(!0)}}},r}(ne),bw=ww;function Jc(e,r,t,i){var n=Math.min(t[r],i[r]),a=Math.max(t[r],i[r]),o=(0,g.__read)(e.range,2),s=o[0],l=o[1];if(nl&&(a=l),n===l&&a===l)return null;var u=e.invert(n),c=e.invert(a);if(e.isCategory){var f=e.values.indexOf(u),v=e.values.indexOf(c),d=e.values.slice(f,v+1);return function(p){return d.includes(p)}}else return function(p){return p>=u&&p<=c}}var De;(function(e){e.FILTER="brush-filter-processing",e.RESET="brush-filter-reset",e.BEFORE_FILTER="brush-filter:beforefilter",e.AFTER_FILTER="brush-filter:afterfilter",e.BEFORE_RESET="brush-filter:beforereset",e.AFTER_RESET="brush-filter:afterreset"})(De||(De={}));var Sw=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.dims=["x","y"],t.startPoint=null,t.isStarted=!1,t}return r.prototype.hasDim=function(t){return this.dims.includes(t)},r.prototype.start=function(){var t=this.context;this.isStarted=!0,this.startPoint=t.getCurrentPoint()},r.prototype.filter=function(){var t,i;if(Ki(this.context)){var n=this.context.event.target,a=n.getCanvasBBox();t={x:a.x,y:a.y},i={x:a.maxX,y:a.maxY}}else{if(!this.isStarted)return;t=this.startPoint,i=this.context.getCurrentPoint()}if(!(Math.abs(t.x-i.x)<5||Math.abs(t.x-i.y)<5)){var o=this.context,s=o.view,l=o.event,u={view:s,event:l,dims:this.dims};s.emit(De.BEFORE_FILTER,ue.fromData(s,De.BEFORE_FILTER,u));var c=s.getCoordinate(),f=c.invert(i),v=c.invert(t);if(this.hasDim("x")){var d=s.getXScale(),p=Jc(d,"x",f,v);this.filterView(s,d.field,p)}if(this.hasDim("y")){var y=s.getYScales()[0],p=Jc(y,"y",f,v);this.filterView(s,y.field,p)}this.reRender(s,{source:De.FILTER}),s.emit(De.AFTER_FILTER,ue.fromData(s,De.AFTER_FILTER,u))}},r.prototype.end=function(){this.isStarted=!1},r.prototype.reset=function(){var t=this.context.view;if(t.emit(De.BEFORE_RESET,ue.fromData(t,De.BEFORE_RESET,{})),this.isStarted=!1,this.hasDim("x")){var i=t.getXScale();this.filterView(t,i.field,null)}if(this.hasDim("y")){var n=t.getYScales()[0];this.filterView(t,n.field,null)}this.reRender(t,{source:De.RESET}),t.emit(De.AFTER_RESET,ue.fromData(t,De.AFTER_RESET,{}))},r.prototype.filterView=function(t,i,n){t.filter(i,n)},r.prototype.reRender=function(t,i){t.render(!0,i)},r}(ne),ha=Sw,Cw=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.filterView=function(t,i,n){var a=Qe(t);(0,h.each)(a,function(o){o.filter(i,n)})},r.prototype.reRender=function(t){var i=Qe(t);(0,h.each)(i,function(n){n.render(!0)})},r}(ha),ss=Cw,Aw=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.filter=function(){var t=zr(this.context),i=this.context.view,n=Ce(i);if(Ki(this.context)){var a=xo(this.context,10);a&&(0,h.each)(n,function(y){a.includes(y)?y.show():y.hide()})}else if(t){var o=t.component,s=o.get("field");if(qi(t)){if(s){var l=o.getItemsByState("unchecked"),u=fi(i,s),c=l.map(function(y){return y.name});(0,h.each)(n,function(y){var m=je(y,s),x=u.getText(m);c.indexOf(x)>=0?y.hide():y.show()})}}else if(su(t)){var f=o.getValue(),v=(0,g.__read)(f,2),d=v[0],p=v[1];(0,h.each)(n,function(y){var m=je(y,s);m>=d&&m<=p?y.show():y.hide()})}}},r.prototype.clear=function(){var t=Ce(this.context.view);(0,h.each)(t,function(i){i.show()})},r.prototype.reset=function(){this.clear()},r}(ne),Mw=Aw,Fw=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.byRecord=!1,t}return r.prototype.filter=function(){Ki(this.context)&&(this.byRecord?this.filterByRecord():this.filterByBBox())},r.prototype.filterByRecord=function(){var t=this.context.view,i=xo(this.context,10);if(!!i){var n=t.getXScale().field,a=t.getYScales()[0].field,o=i.map(function(l){return l.getModel().data}),s=Qe(t);(0,h.each)(s,function(l){var u=Ce(l);(0,h.each)(u,function(c){var f=c.getModel().data;gu(o,f,n,a)?c.show():c.hide()})})}},r.prototype.filterByBBox=function(){var t=this,i=this.context.view,n=Qe(i);(0,h.each)(n,function(a){var o=lu(t.context,a,10),s=Ce(a);o&&(0,h.each)(s,function(l){o.includes(l)?l.show():l.hide()})})},r.prototype.reset=function(){var t=Qe(this.context.view);(0,h.each)(t,function(i){var n=Ce(i);(0,h.each)(n,function(a){a.show()})})},r}(ne),th=Fw,Ew=10,Tw=5,Lw=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.buttonGroup=null,t.buttonCfg={name:"button",text:"button",textStyle:{x:0,y:0,fontSize:12,fill:"#333333",cursor:"pointer"},padding:[8,10],style:{fill:"#f7f7f7",stroke:"#cccccc",cursor:"pointer"},activeStyle:{fill:"#e6e6e6"}},t}return r.prototype.getButtonCfg=function(){return(0,h.deepMix)(this.buttonCfg,this.cfg)},r.prototype.drawButton=function(){var t=this.getButtonCfg(),i=this.context.view.foregroundGroup.addGroup({name:t.name}),n=i.addShape({type:"text",name:"button-text",attrs:(0,g.__assign)({text:t.text},t.textStyle)}),a=n.getBBox(),o=Ao(t.padding),s=i.addShape({type:"rect",name:"button-rect",attrs:(0,g.__assign)({x:a.x-o[3],y:a.y-o[0],width:a.width+o[1]+o[3],height:a.height+o[0]+o[2]},t.style)});s.toBack(),i.on("mouseenter",function(){s.attr(t.activeStyle)}),i.on("mouseleave",function(){s.attr(t.style)}),this.buttonGroup=i},r.prototype.resetPosition=function(){var t=this.context.view,i=t.getCoordinate(),n=i.convert({x:1,y:1}),a=this.buttonGroup,o=a.getBBox(),s=ie.vs(null,[["t",n.x-o.width-Ew,n.y+o.height+Tw]]);a.setMatrix(s)},r.prototype.show=function(){this.buttonGroup||this.drawButton(),this.resetPosition(),this.buttonGroup.show()},r.prototype.hide=function(){this.buttonGroup&&this.buttonGroup.hide()},r.prototype.destroy=function(){var t=this.buttonGroup;t&&t.remove(),e.prototype.destroy.call(this)},r}(ne),Iw=Lw,Ow=4,Pw=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.starting=!1,t.dragStart=!1,t}return r.prototype.start=function(){this.starting=!0,this.startPoint=this.context.getCurrentPoint()},r.prototype.drag=function(){if(!!this.startPoint){var t=this.context.getCurrentPoint(),i=this.context.view,n=this.context.event;this.dragStart?i.emit("drag",{target:n.target,x:n.x,y:n.y}):_o(t,this.startPoint)>Ow&&(i.emit("dragstart",{target:n.target,x:n.x,y:n.y}),this.dragStart=!0)}},r.prototype.end=function(){if(this.dragStart){var t=this.context.view,i=this.context.event;t.emit("dragend",{target:i.target,x:i.x,y:i.y})}this.starting=!1,this.dragStart=!1},r}(ne),kw=Pw,Dw=5,Bw=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.starting=!1,t.isMoving=!1,t.startPoint=null,t.startMatrix=null,t}return r.prototype.start=function(){this.starting=!0,this.startPoint=this.context.getCurrentPoint(),this.startMatrix=this.context.view.middleGroup.getMatrix()},r.prototype.move=function(){if(!!this.starting){var t=this.startPoint,i=this.context.getCurrentPoint(),n=_o(t,i);if(n>Dw&&!this.isMoving&&(this.isMoving=!0),this.isMoving){var a=this.context.view,o=ie.vs(this.startMatrix,[["t",i.x-t.x,i.y-t.y]]);a.backgroundGroup.setMatrix(o),a.foregroundGroup.setMatrix(o),a.middleGroup.setMatrix(o)}}},r.prototype.end=function(){this.isMoving&&(this.isMoving=!1),this.startMatrix=null,this.starting=!1,this.startPoint=null},r.prototype.reset=function(){this.starting=!1,this.startPoint=null,this.isMoving=!1;var t=this.context.view;t.backgroundGroup.resetMatrix(),t.foregroundGroup.resetMatrix(),t.middleGroup.resetMatrix(),this.isMoving=!1},r}(ne),Rw=Bw,eh="x",rh="y",Nw=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.dims=[eh,rh],t.cfgFields=["dims"],t.cacheScaleDefs={},t}return r.prototype.hasDim=function(t){return this.dims.includes(t)},r.prototype.getScale=function(t){var i=this.context.view;return t==="x"?i.getXScale():i.getYScales()[0]},r.prototype.resetDim=function(t){var i=this.context.view;if(this.hasDim(t)&&this.cacheScaleDefs[t]){var n=this.getScale(t);i.scale(n.field,this.cacheScaleDefs[t]),this.cacheScaleDefs[t]=null}},r.prototype.reset=function(){this.resetDim(eh),this.resetDim(rh);var t=this.context.view;t.render(!0)},r}(ne),ih=Nw,zw=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.startPoint=null,t.starting=!1,t.startCache={},t}return r.prototype.start=function(){var t=this;this.startPoint=this.context.getCurrentPoint(),this.starting=!0;var i=this.dims;(0,h.each)(i,function(n){var a=t.getScale(n),o=a.min,s=a.max,l=a.values;t.startCache[n]={min:o,max:s,values:l}})},r.prototype.end=function(){this.startPoint=null,this.starting=!1,this.startCache={}},r.prototype.translate=function(){var t=this;if(!!this.starting){var i=this.startPoint,n=this.context.view.getCoordinate(),a=this.context.getCurrentPoint(),o=n.invert(i),s=n.invert(a),l=s.x-o.x,u=s.y-o.y,c=this.context.view,f=this.dims;(0,h.each)(f,function(v){t.translateDim(v,{x:l*-1,y:u*-1})}),c.render(!0)}},r.prototype.translateDim=function(t,i){if(this.hasDim(t)){var n=this.getScale(t);n.isLinear&&this.translateLinear(t,n,i)}},r.prototype.translateLinear=function(t,i,n){var a=this.context.view,o=this.startCache[t],s=o.min,l=o.max,u=l-s,c=n[t]*u;this.cacheScaleDefs[t]||(this.cacheScaleDefs[t]={nice:i.nice,min:s,max:l}),a.scale(i.field,{nice:!1,min:s+c,max:l+c})},r.prototype.reset=function(){e.prototype.reset.call(this),this.startPoint=null,this.starting=!1},r}(ih),Vw=zw,Gw=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.zoomRatio=.05,t}return r.prototype.zoomIn=function(){this.zoom(this.zoomRatio)},r.prototype.zoom=function(t){var i=this,n=this.dims;(0,h.each)(n,function(a){i.zoomDim(a,t)}),this.context.view.render(!0)},r.prototype.zoomOut=function(){this.zoom(-1*this.zoomRatio)},r.prototype.zoomDim=function(t,i){if(this.hasDim(t)){var n=this.getScale(t);n.isLinear&&this.zoomLinear(t,n,i)}},r.prototype.zoomLinear=function(t,i,n){var a=this.context.view;this.cacheScaleDefs[t]||(this.cacheScaleDefs[t]={nice:i.nice,min:i.min,max:i.max});var o=this.cacheScaleDefs[t],s=o.max-o.min,l=i.min,u=i.max,c=n*s,f=l-c,v=u+c,d=v-f,p=d/s;v>f&&p<100&&p>.01&&a.scale(i.field,{nice:!1,min:l-c,max:u+c})},r}(ih),Ww=Gw;function Hw(e){var r=e.gEvent.originalEvent;return r.deltaY>0}var Yw=1,Xw=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.scroll=function(t){var i=this.context,n=i.view,a=i.event;if(!!n.getOptions().scrollbar){var o=(t==null?void 0:t.wheelDelta)||Yw,s=n.getController("scrollbar"),l=n.getXScale(),u=n.getOptions().data,c=(0,h.size)((0,h.valuesOfKey)(u,l.field)),f=(0,h.size)(l.values),v=s.getValue(),d=Math.floor((c-f)*v),p=d+(Hw(a)?o:-o),y=o/(c-f)/1e4,m=(0,h.clamp)(p/(c-f)+y,0,1);s.setValue(m)}},r}(ne),Uw=Xw,jw="aixs-description-tooltip",Zw=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.show=function(){var t=this.context,i=zr(t).axis,n=i.cfg.title,a=n.description,o=n.text,s=n.descriptionTooltipStyle,l=t.event,u=l.x,c=l.y;this.tooltip||this.renderTooltip(),this.tooltip.update({title:o||"",customContent:function(){return` -
        -
        - \u5B57\u6BB5\u8BF4\u660E\uFF1A`).concat(a,` -
        -
        - `)},x:u,y:c}),this.tooltip.show()},r.prototype.destroy=function(){e.prototype.destroy.call(this),this.tooltip&&this.tooltip.destroy()},r.prototype.hide=function(){this.tooltip&&this.tooltip.hide()},r.prototype.renderTooltip=function(){var t,i=this.context.view,n=i.canvas,a={start:{x:0,y:0},end:{x:n.get("width"),y:n.get("height")}},o=new Nn({parent:n.get("el").parentNode,region:a,visible:!1,containerId:jw,domStyles:(0,g.__assign)({},(0,h.deepMix)({},(t={},t[sr]={"max-width":"50%",padding:"10px","line-height":"15px","font-size":"12px",color:"rgba(0, 0, 0, .65)"},t[lr]={"word-break":"break-all","margin-bottom":"3px"},t)))});o.init(),o.setCapture(!1),this.tooltip=o},r}(ne),qw=Zw;Gy("dark",xu(R0)),jt("canvas",$u),jt("svg",N0),Je("Polygon",om),Je("Interval",Q0),Je("Schema",lm),Je("Path",ko),Je("Point",im),Je("Line",tm),Je("Area",W0),Je("Edge",Y0),Je("Heatmap",U0),Je("Violin",hm),Qi("base",Qn),Qi("interval",Em),Qi("pie",Im),Qi("polar",oc),Pe("overlap",Xm),Pe("distribute",Pm),Pe("fixed-overlap",Ym),Pe("hide-overlap",ex),Pe("limit-in-shape",Vm),Pe("limit-in-canvas",zm),Pe("limit-in-plot",mx),Pe("pie-outer",Dm),Pe("adjust-color",ix),Pe("interval-adjust-position",sx),Pe("interval-hide-overlap",ux),Pe("point-adjust-position",fx),Pe("pie-spider",Nm),Pe("path-adjust-position",gx),ze("fade-in",xx),ze("fade-out",_x),ze("grow-in-x",bx),ze("grow-in-xy",Cx),ze("grow-in-y",Sx),ze("scale-in-x",Fx),ze("scale-in-y",Ex),ze("wave-in",Lx),ze("zoom-in",Ix),ze("zoom-out",Ox),ze("position-update",Mx),ze("sector-path-update",Tx),ze("path-in",Ax),hi("rect",Wx),hi("mirror",Vx),hi("list",Bx),hi("matrix",Nx),hi("circle",kx),hi("tree",Yx),Vr("axis",qx),Vr("legend",t_),Vr("tooltip",Eu),Vr("annotation",jx),Vr("slider",r_),Vr("scrollbar",o_),xt("tooltip",Pc),xt("sibling-tooltip",v_),xt("ellipsis-text",g_),xt("element-active",x_),xt("element-single-active",F_),xt("element-range-active",C_),xt("element-highlight",ts),xt("element-highlight-by-x",O_),xt("element-highlight-by-color",L_),xt("element-single-highlight",D_),xt("element-range-highlight",Bc),xt("element-sibling-highlight",Bc,{effectSiblings:!0,effectByRecord:!0}),xt("element-selected",z_),xt("element-single-selected",G_),xt("element-range-selected",R_),xt("element-link-by-color",w_),xt("active-region",c_),xt("list-active",Y_),xt("list-selected",Z_),xt("list-highlight",es),xt("list-unchecked",K_),xt("list-checked",Q_),xt("list-focus",tw),xt("list-radio",rw),xt("legend-item-highlight",es,{componentNames:["legend"]}),xt("axis-label-highlight",es,{componentNames:["axis"]}),xt("axis-description",qw),xt("rect-mask",Hc),xt("x-rect-mask",Uc,{dim:"x"}),xt("y-rect-mask",Uc,{dim:"y"}),xt("circle-mask",aw),xt("path-mask",Zc),xt("smooth-path-mask",cw),xt("rect-multi-mask",Kc),xt("x-rect-multi-mask",$c,{dim:"x"}),xt("y-rect-multi-mask",$c,{dim:"y"}),xt("circle-multi-mask",gw),xt("path-multi-mask",Qc),xt("smooth-path-multi-mask",mw),xt("cursor",_w),xt("data-filter",bw),xt("brush",ha),xt("brush-x",ha,{dims:["x"]}),xt("brush-y",ha,{dims:["y"]}),xt("sibling-filter",ss),xt("sibling-x-filter",ss,{dims:"x"}),xt("sibling-y-filter",ss,{dims:"y"}),xt("element-filter",Mw),xt("element-sibling-filter",th),xt("element-sibling-filter-record",th,{byRecord:!0}),xt("view-drag",kw),xt("view-move",Rw),xt("scale-translate",Vw),xt("scale-zoom",Ww),xt("reset-button",Iw,{name:"reset-button",text:"reset"}),xt("mousewheel-scroll",Uw);function hr(e){return e.isInPlot()}Ot("tooltip",{start:[{trigger:"plot:mousemove",action:"tooltip:show",throttle:{wait:50,leading:!0,trailing:!1}},{trigger:"plot:touchmove",action:"tooltip:show",throttle:{wait:50,leading:!0,trailing:!1}}],end:[{trigger:"plot:mouseleave",action:"tooltip:hide"},{trigger:"plot:leave",action:"tooltip:hide"},{trigger:"plot:touchend",action:"tooltip:hide"}]}),Ot("ellipsis-text",{start:[{trigger:"legend-item-name:mousemove",action:"ellipsis-text:show",throttle:{wait:50,leading:!0,trailing:!1}},{trigger:"legend-item-name:touchstart",action:"ellipsis-text:show",throttle:{wait:50,leading:!0,trailing:!1}},{trigger:"axis-label:mousemove",action:"ellipsis-text:show",throttle:{wait:50,leading:!0,trailing:!1}},{trigger:"axis-label:touchstart",action:"ellipsis-text:show",throttle:{wait:50,leading:!0,trailing:!1}}],end:[{trigger:"legend-item-name:mouseleave",action:"ellipsis-text:hide"},{trigger:"legend-item-name:touchend",action:"ellipsis-text:hide"},{trigger:"axis-label:mouseleave",action:"ellipsis-text:hide"},{trigger:"axis-label:mouseout",action:"ellipsis-text:hide"},{trigger:"axis-label:touchend",action:"ellipsis-text:hide"}]}),Ot("element-active",{start:[{trigger:"element:mouseenter",action:"element-active:active"}],end:[{trigger:"element:mouseleave",action:"element-active:reset"}]}),Ot("element-selected",{start:[{trigger:"element:click",action:"element-selected:toggle"}]}),Ot("element-highlight",{start:[{trigger:"element:mouseenter",action:"element-highlight:highlight"}],end:[{trigger:"element:mouseleave",action:"element-highlight:reset"}]}),Ot("element-highlight-by-x",{start:[{trigger:"element:mouseenter",action:"element-highlight-by-x:highlight"}],end:[{trigger:"element:mouseleave",action:"element-highlight-by-x:reset"}]}),Ot("element-highlight-by-color",{start:[{trigger:"element:mouseenter",action:"element-highlight-by-color:highlight"}],end:[{trigger:"element:mouseleave",action:"element-highlight-by-color:reset"}]}),Ot("legend-active",{start:[{trigger:"legend-item:mouseenter",action:["list-active:active","element-active:active"]}],end:[{trigger:"legend-item:mouseleave",action:["list-active:reset","element-active:reset"]}]}),Ot("legend-highlight",{start:[{trigger:"legend-item:mouseenter",action:["legend-item-highlight:highlight","element-highlight:highlight"]}],end:[{trigger:"legend-item:mouseleave",action:["legend-item-highlight:reset","element-highlight:reset"]}]}),Ot("axis-label-highlight",{start:[{trigger:"axis-label:mouseenter",action:["axis-label-highlight:highlight","element-highlight:highlight"]}],end:[{trigger:"axis-label:mouseleave",action:["axis-label-highlight:reset","element-highlight:reset"]}]}),Ot("element-list-highlight",{start:[{trigger:"element:mouseenter",action:["list-highlight:highlight","element-highlight:highlight"]}],end:[{trigger:"element:mouseleave",action:["list-highlight:reset","element-highlight:reset"]}]}),Ot("element-range-highlight",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"mask:mouseenter",action:"cursor:move"},{trigger:"plot:mouseleave",action:"cursor:default"},{trigger:"mask:mouseleave",action:"cursor:crosshair"}],start:[{trigger:"plot:mousedown",isEnable:function(e){return!e.isInShape("mask")},action:["rect-mask:start","rect-mask:show"]},{trigger:"mask:dragstart",action:["rect-mask:moveStart"]}],processing:[{trigger:"plot:mousemove",action:["rect-mask:resize"]},{trigger:"mask:drag",action:["rect-mask:move"]},{trigger:"mask:change",action:["element-range-highlight:highlight"]}],end:[{trigger:"plot:mouseup",action:["rect-mask:end"]},{trigger:"mask:dragend",action:["rect-mask:moveEnd"]},{trigger:"document:mouseup",isEnable:function(e){return!e.isInPlot()},action:["element-range-highlight:clear","rect-mask:end","rect-mask:hide"]}],rollback:[{trigger:"dblclick",action:["element-range-highlight:clear","rect-mask:hide"]}]}),Ot("brush",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:hr,action:["brush:start","rect-mask:start","rect-mask:show"]}],processing:[{trigger:"mousemove",isEnable:hr,action:["rect-mask:resize"]}],end:[{trigger:"mouseup",isEnable:hr,action:["brush:filter","brush:end","rect-mask:end","rect-mask:hide","reset-button:show"]}],rollback:[{trigger:"reset-button:click",action:["brush:reset","reset-button:hide","cursor:crosshair"]}]}),Ot("brush-visible",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"plot:mousedown",action:["rect-mask:start","rect-mask:show"]}],processing:[{trigger:"plot:mousemove",action:["rect-mask:resize"]},{trigger:"mask:change",action:["element-range-highlight:highlight"]}],end:[{trigger:"plot:mouseup",action:["rect-mask:end","rect-mask:hide","element-filter:filter","element-range-highlight:clear"]}],rollback:[{trigger:"dblclick",action:["element-filter:clear"]}]}),Ot("brush-x",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:hr,action:["brush-x:start","x-rect-mask:start","x-rect-mask:show"]}],processing:[{trigger:"mousemove",isEnable:hr,action:["x-rect-mask:resize"]}],end:[{trigger:"mouseup",isEnable:hr,action:["brush-x:filter","brush-x:end","x-rect-mask:end","x-rect-mask:hide"]}],rollback:[{trigger:"dblclick",action:["brush-x:reset"]}]}),Ot("element-path-highlight",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:hr,action:"path-mask:start"},{trigger:"mousedown",isEnable:hr,action:"path-mask:show"}],processing:[{trigger:"mousemove",action:"path-mask:addPoint"}],end:[{trigger:"mouseup",action:"path-mask:end"}],rollback:[{trigger:"dblclick",action:"path-mask:hide"}]}),Ot("brush-x-multi",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"mask:mouseenter",action:"cursor:move"},{trigger:"plot:mouseleave",action:"cursor:default"},{trigger:"mask:mouseleave",action:"cursor:crosshair"}],start:[{trigger:"mousedown",isEnable:hr,action:["x-rect-multi-mask:start","x-rect-multi-mask:show"]},{trigger:"mask:dragstart",action:["x-rect-multi-mask:moveStart"]}],processing:[{trigger:"mousemove",isEnable:function(e){return!Un(e)},action:["x-rect-multi-mask:resize"]},{trigger:"multi-mask:change",action:"element-range-highlight:highlight"},{trigger:"mask:drag",action:["x-rect-multi-mask:move"]}],end:[{trigger:"mouseup",action:["x-rect-multi-mask:end"]},{trigger:"mask:dragend",action:["x-rect-multi-mask:moveEnd"]}],rollback:[{trigger:"dblclick",action:["x-rect-multi-mask:clear","cursor:crosshair"]},{trigger:"multi-mask:clearAll",action:["element-range-highlight:clear"]},{trigger:"multi-mask:clearSingle",action:["element-range-highlight:highlight"]}]}),Ot("element-single-selected",{start:[{trigger:"element:click",action:"element-single-selected:toggle"}]}),Ot("legend-filter",{showEnable:[{trigger:"legend-item:mouseenter",action:["cursor:pointer","list-radio:show"]},{trigger:"legend-item:mouseleave",action:["cursor:default","list-radio:hide"]}],start:[{trigger:"legend-item:click",isEnable:function(e){return!e.isInShape("legend-item-radio")},action:["legend-item-highlight:reset","element-highlight:reset","list-unchecked:toggle","data-filter:filter","list-radio:show"]},{trigger:"legend-item-radio:mouseenter",action:["list-radio:showTip"]},{trigger:"legend-item-radio:mouseleave",action:["list-radio:hideTip"]},{trigger:"legend-item-radio:click",action:["list-focus:toggle","data-filter:filter","list-radio:show"]}]}),Ot("continuous-filter",{start:[{trigger:"legend:valuechanged",action:"data-filter:filter"}]}),Ot("continuous-visible-filter",{start:[{trigger:"legend:valuechanged",action:"element-filter:filter"}]}),Ot("legend-visible-filter",{showEnable:[{trigger:"legend-item:mouseenter",action:"cursor:pointer"},{trigger:"legend-item:mouseleave",action:"cursor:default"}],start:[{trigger:"legend-item:click",action:["legend-item-highlight:reset","element-highlight:reset","list-unchecked:toggle","element-filter:filter"]}]}),Ot("active-region",{start:[{trigger:"plot:mousemove",action:"active-region:show"}],end:[{trigger:"plot:mouseleave",action:"active-region:hide"}]}),Ot("axis-description",{start:[{trigger:"axis-description:mousemove",action:"axis-description:show"}],end:[{trigger:"axis-description:mouseleave",action:"axis-description:hide"}]});function nh(e){return e.gEvent.preventDefault(),e.gEvent.originalEvent.deltaY>0}Ot("view-zoom",{start:[{trigger:"plot:mousewheel",isEnable:function(e){return nh(e.event)},action:"scale-zoom:zoomOut",throttle:{wait:100,leading:!0,trailing:!1}},{trigger:"plot:mousewheel",isEnable:function(e){return!nh(e.event)},action:"scale-zoom:zoomIn",throttle:{wait:100,leading:!0,trailing:!1}}]}),Ot("sibling-tooltip",{start:[{trigger:"plot:mousemove",action:"sibling-tooltip:show"}],end:[{trigger:"plot:mouseleave",action:"sibling-tooltip:hide"}]}),Ot("plot-mousewheel-scroll",{start:[{trigger:"plot:mousewheel",action:"mousewheel-scroll:scroll"}]});var Be=["type","alias","tickCount","tickInterval","min","max","nice","minLimit","maxLimit","range","tickMethod","base","exponent","mask","sync"],qe;(function(e){e.ERROR="error",e.WARN="warn",e.INFO="log"})(qe||(qe={}));var ah="AntV/G2Plot";function oh(e){for(var r=[],t=1;t=0}),n=t.every(function(a){return(0,h.get)(a,[r])<=0});return i?{min:0}:n?{max:0}:{}}function sh(e,r,t,i,n){if(n===void 0&&(n=[]),!Array.isArray(e))return{nodes:[],links:[]};var a=[],o={},s=-1;return e.forEach(function(l){var u=l[r],c=l[t],f=l[i],v=$t(l,n);o[u]||(o[u]=(0,g.__assign)({id:++s,name:u},v)),o[c]||(o[c]=(0,g.__assign)({id:++s,name:c},v)),a.push((0,g.__assign)({source:o[u].id,target:o[c].id,value:f},v))}),{nodes:Object.values(o).sort(function(l,u){return l.id-u.id}),links:a}}function xi(e,r){var t=(0,h.filter)(e,function(i){var n=i[r];return n===null||typeof n=="number"&&!isNaN(n)});return fr(qe.WARN,t.length===e.length,"illegal data existed in chart data."),t}var Kw=5,$w={}.toString,lh=function(e,r){return $w.call(e)==="[object "+r+"]"},Qw=function(e){return lh(e,"Array")},Jw=function(e){return typeof e=="object"&&e!==null},uh=function(e){if(!Jw(e)||!lh(e,"Object"))return!1;for(var r=e;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return Object.getPrototypeOf(e)===r},ch=function(e,r,t,i){t=t||0,i=i||Kw;for(var n in r)if(Object.prototype.hasOwnProperty.call(r,n)){var a=r[n];a?uh(a)?(uh(e[n])||(e[n]={}),t=i&&e<=n}function Tr(e){if((0,h.isNumber)(e))return[e,e,e,e];if((0,h.isArray)(e)){var r=e.length;if(r===1)return[e[0],e[0],e[0],e[0]];if(r===2)return[e[0],e[1],e[0],e[1]];if(r===3)return[e[0],e[1],e[2],e[1]];if(r===4)return e}return[0,0,0,0]}function va(e,r,t){r===void 0&&(r="bottom"),t===void 0&&(t=25);var i=Tr(e),n=[r.startsWith("top")?t:0,r.startsWith("right")?t:0,r.startsWith("bottom")?t:0,r.startsWith("left")?t:0];return[i[0]+n[0],i[1]+n[1],i[2]+n[2],i[3]+n[3]]}function hs(e){var r=e.map(function(i){return Tr(i)}),t=[0,0,0,0];return r.length>0&&(t=t.map(function(i,n){return r.forEach(function(a,o){i+=r[o][n]}),i})),t}function ib(e,r){var t=[];if(e.length){t.push(["M",e[0].x,e[0].y]);for(var i=1,n=e.length;i"},key:"".concat(l===0?"top":"bottom","-statistic")},$t(s,["offsetX","offsetY","rotate","style","formatter"])))}})},sb=function(e,r,t){var i=r.statistic,n=i.title,a=i.content;[n,a].forEach(function(o){if(!!o){var s=(0,h.isFunction)(o.style)?o.style(t):o.style;e.annotation().html((0,g.__assign)({position:["50%","100%"],html:function(l,u){var c=u.getCoordinate(),f=u.views[0].getCoordinate(),v=f.getCenter(),d=f.getRadius(),p=Math.max(Math.sin(f.startAngle),Math.sin(f.endAngle))*d,y=v.y+p-c.y.start-parseFloat((0,h.get)(s,"fontSize",0)),m=c.getRadius()*c.innerRadius*2;vh(l,(0,g.__assign)({width:"".concat(m,"px"),transform:"translate(-50%, ".concat(y,"px)")},fh(s)));var x=u.getData();if(o.customHtml)return o.customHtml(l,u,t,x);var _=o.content;return o.formatter&&(_=o.formatter(t,x)),_?(0,h.isString)(_)?_:"".concat(_):"
        "}},$t(o,["offsetX","offsetY","rotate","style","formatter"])))}})};function dh(e,r){return r?(0,h.reduce)(r,function(t,i,n){return t.replace(new RegExp("{\\s*".concat(n,"\\s*}"),"g"),i)},e):e}function Nt(e,r){return e.views.find(function(t){return t.id===r})}function sn(e){var r=e.parent;return r?r.views:[]}function gh(e){return sn(e).filter(function(r){return r!==e})}function ln(e,r,t){t===void 0&&(t=e.geometries),typeof r=="boolean"?e.animate(r):e.animate(!0),(0,h.each)(t,function(i){var n;(0,h.isFunction)(r)?n=r(i.type||i.shapeType,i)||!0:n=r,i.animate(n)})}function ga(){return typeof window=="object"?window==null?void 0:window.devicePixelRatio:2}function fs(e,r){r===void 0&&(r=e);var t=document.createElement("canvas"),i=ga();t.width=e*i,t.height=r*i,t.style.width="".concat(e,"px"),t.style.height="".concat(r,"px");var n=t.getContext("2d");return n.scale(i,i),t}function vs(e,r,t,i){i===void 0&&(i=t);var n=r.backgroundColor,a=r.opacity;e.globalAlpha=a,e.fillStyle=n,e.beginPath(),e.fillRect(0,0,t,i),e.closePath()}function ph(e,r,t){var i=e+r;return t?i*2:i}function yh(e,r){var t=r?[[e*(1/4),e*(1/4)],[e*(3/4),e*(3/4)]]:[[e*(1/2),e*(1/2)]];return t}function ds(e,r){var t=r*Math.PI/180,i={a:Math.cos(t)*(1/e),b:Math.sin(t)*(1/e),c:-Math.sin(t)*(1/e),d:Math.cos(t)*(1/e),e:0,f:0};return i}var lb={size:6,padding:2,backgroundColor:"transparent",opacity:1,rotation:0,fill:"#fff",fillOpacity:.5,stroke:"transparent",lineWidth:0,isStagger:!0};function ub(e,r,t,i){var n=r.size,a=r.fill,o=r.lineWidth,s=r.stroke,l=r.fillOpacity;e.beginPath(),e.globalAlpha=l,e.fillStyle=a,e.strokeStyle=s,e.lineWidth=o,e.arc(t,i,n/2,0,2*Math.PI,!1),e.fill(),o&&e.stroke(),e.closePath()}function cb(e){var r=O({},lb,e),t=r.size,i=r.padding,n=r.isStagger,a=r.rotation,o=ph(t,i,n),s=yh(o,n),l=fs(o,o),u=l.getContext("2d");vs(u,r,o);for(var c=0,f=s;cw){var S=b/y.length,C=Math.max(1,Math.ceil(w/S)-1),A="".concat(y.slice(0,C),"...");_.attr("text",A)}}}}function Vb(e,r,t){Nb(e,r,t),zb(e,r,t)}function Gb(e,r,t){return r===void 0&&(r=!0),t===void 0&&(t=!1),function(i){var n=i.options,a=i.chart,o=n.conversionTag,s=n.theme;return o&&!t&&(a.theme(O({},(0,h.isObject)(s)?s:$i(s),{columnWidthRatio:1/3})),a.annotation().shape({render:function(l,u){var c=l.addGroup({id:"".concat(a.id,"-conversion-tag-group"),name:"conversion-tag-group"}),f=(0,h.find)(a.geometries,function(p){return p.type==="interval"}),v={view:u,geometry:f,group:c,field:e,horizontal:r,options:Rb(o,r)},d=f.elements;(0,h.each)(d,function(p,y){y>0&&Vb(v,d[y-1],p)})}})),i}}function Wb(e){var r=e.options,t=r.legend,i=r.seriesField,n=r.isStack;return i?t!==!1&&(t=(0,g.__assign)({position:n?"right-top":"top-left"},t)):t=!1,e.options.legend=t,e}function Hb(e){var r=e.chart,t=e.options,i=t.data,n=t.columnStyle,a=t.color,o=t.columnWidthRatio,s=t.isPercent,l=t.isGroup,u=t.isStack,c=t.xField,f=t.yField,v=t.seriesField,d=t.groupField,p=t.tooltip,y=t.shape,m=s&&l&&u?Sb(i,f,[c,d],f):cn(i,f,c,f,s),x=[];u&&v&&!l?m.forEach(function(b){var S=x.find(function(C){return C[c]===b[c]&&C[v]===b[v]});S?S[f]+=b[f]||0:x.push((0,g.__assign)({},b))}):x=m,r.data(x);var _=s?(0,g.__assign)({formatter:function(b){var S;return{name:l&&u?"".concat(b[v]," - ").concat(b[d]):(S=b[v])!==null&&S!==void 0?S:b[c],value:(Number(b[f])*100).toFixed(2)+"%"}}},p):p,w=O({},e,{options:{data:x,widthRatio:o,tooltip:_,interval:{shape:y,style:n,color:a}}});return Fe(w),w}function ms(e){var r,t,i=e.options,n=i.xAxis,a=i.yAxis,o=i.xField,s=i.yField,l=i.data,u=i.isPercent,c=u?{max:1,min:0,minLimit:0,maxLimit:1}:{};return Et(he((r={},r[o]=n,r[s]=a,r),(t={},t[o]={type:"cat"},t[s]=(0,g.__assign)((0,g.__assign)({},ls(l,s)),c),t)))(e)}function Yb(e){var r=e.chart,t=e.options,i=t.xAxis,n=t.yAxis,a=t.xField,o=t.yField;return i===!1?r.axis(a,!1):r.axis(a,i),n===!1?r.axis(o,!1):r.axis(o,n),e}function Xb(e){var r=e.chart,t=e.options,i=t.legend,n=t.seriesField;return i&&n?r.legend(n,i):i===!1&&r.legend(!1),e}function Ub(e){var r=e.chart,t=e.options,i=t.label,n=t.yField,a=t.isRange,o=Me(r,"interval");if(!i)o.label(!1);else{var s=i.callback,l=(0,g.__rest)(i,["callback"]);o.label({fields:[n],callback:s,cfg:(0,g.__assign)({layout:(l==null?void 0:l.position)?void 0:[{type:"interval-adjust-position"},{type:"interval-hide-overlap"},{type:"adjust-color"},{type:"limit-in-plot",cfg:{action:"hide"}}]},be(a?(0,g.__assign)({content:function(u){var c;return(c=u[n])===null||c===void 0?void 0:c.join("-")}},l):l))})}return e}function jb(e){var r=e.chart,t=e.options,i=t.tooltip,n=t.isGroup,a=t.isStack,o=t.groupField,s=t.data,l=t.xField,u=t.yField,c=t.seriesField;if(i===!1)r.tooltip(!1);else{var f=i;if(n&&a){var v=f.customItems,d=(f==null?void 0:f.formatter)||function(p){return{name:"".concat(p[c]," - ").concat(p[o]),value:p[u]}};f=(0,g.__assign)((0,g.__assign)({},f),{customItems:function(p){var y=[];return(0,h.each)(p,function(m){var x=(0,h.filter)(s,function(_){return(0,h.isMatch)(_,$t(m.data,[l,c]))});x.forEach(function(_){y.push((0,g.__assign)((0,g.__assign)((0,g.__assign)({},m),{value:_[u],data:_,mappingData:{_origin:_}}),d(_)))})}),v?v(y):y}})}r.tooltip(f)}return e}function Sa(e,r){r===void 0&&(r=!1);var t=e.options,i=t.seriesField;return Et(Wb,Xt,Ve("columnStyle"),Lr,mh("rect"),Hb,ms,Yb,Xb,jb,un,gs,Ub,Ih,oe,Qt,le(),Gb(t.yField,!r,!!i),Bb(!t.isStack),jr)(e)}function Zb(e){var r=e.options,t=r.xField,i=r.yField,n=r.xAxis,a=r.yAxis,o={left:"bottom",right:"top",top:"left",bottom:"right"},s=a!==!1?(0,g.__assign)({position:o[(a==null?void 0:a.position)||"left"]},a):!1,l=n!==!1?(0,g.__assign)({position:o[(n==null?void 0:n.position)||"bottom"]},n):!1;return(0,g.__assign)((0,g.__assign)({},e),{options:(0,g.__assign)((0,g.__assign)({},r),{xField:i,yField:t,xAxis:s,yAxis:l})})}function qb(e){var r=e.options,t=r.label;return t&&!t.position&&(t.position="left",t.layout||(t.layout=[{type:"interval-adjust-position"},{type:"interval-hide-overlap"},{type:"adjust-color"},{type:"limit-in-plot",cfg:{action:"hide"}}])),O({},e,{options:{label:t}})}function Kb(e){var r=e.options,t=r.seriesField,i=r.isStack,n=r.legend;return t?n!==!1&&(n=(0,g.__assign)({position:i?"top-left":"right-top"},n||{})):n=!1,O({},e,{options:{legend:n}})}function $b(e){var r=e.options,t=[{type:"transpose"},{type:"reflectY"}].concat(r.coordinate||[]);return O({},e,{options:{coordinate:t}})}function Qb(e){var r=e.chart,t=e.options,i=t.barStyle,n=t.barWidthRatio,a=t.minBarWidth,o=t.maxBarWidth,s=t.barBackground;return Sa({chart:r,options:(0,g.__assign)((0,g.__assign)({},t),{columnStyle:i,columnWidthRatio:n,minColumnWidth:a,maxColumnWidth:o,columnBackground:s})},!0)}function Ph(e){return Et(Zb,qb,Kb,me,$b,Qb)(e)}var Jb=O({},kt.getDefaultOptions(),{barWidthRatio:.6,marginRatio:1/32,tooltip:{shared:!0,showMarkers:!1,offset:20},legend:{radio:{}},interactions:[{type:"active-region"}]}),tS=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.type="bar",t}return r.getDefaultOptions=function(){return Jb},r.prototype.changeData=function(t){var i,n;this.updateOption({data:t});var a=this,o=a.chart,s=a.options,l=s.isPercent,u=s.xField,c=s.yField,f=s.xAxis,v=s.yAxis;i=[c,u],u=i[0],c=i[1],n=[v,f],f=n[0],v=n[1];var d=(0,g.__assign)((0,g.__assign)({},s),{xField:u,yField:c,yAxis:v,xAxis:f});ms({chart:o,options:d}),o.changeData(cn(t,u,c,u,l))},r.prototype.getDefaultOptions=function(){return r.getDefaultOptions()},r.prototype.getSchemaAdaptor=function(){return Ph},r}(kt),eS=O({},kt.getDefaultOptions(),{columnWidthRatio:.6,marginRatio:1/32,tooltip:{shared:!0,showMarkers:!1,offset:20},legend:{radio:{}},interactions:[{type:"active-region"}]}),kh=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.type="column",t}return r.getDefaultOptions=function(){return eS},r.prototype.changeData=function(t){this.updateOption({data:t});var i=this.options,n=i.yField,a=i.xField,o=i.isPercent,s=this,l=s.chart,u=s.options;ms({chart:l,options:u}),this.chart.changeData(cn(t,n,a,n,o))},r.prototype.getDefaultOptions=function(){return r.getDefaultOptions()},r.prototype.getSchemaAdaptor=function(){return Sa},r}(kt),xs,Ir="$$percentage$$",Or="$$mappingValue$$",dr="$$conversion$$",_s="$$totalPercentage$$",hn="$$x$$",fn="$$y$$",rS={appendPadding:[0,80],minSize:0,maxSize:1,meta:(xs={},xs[Or]={min:0,max:1,nice:!1},xs),label:{style:{fill:"#fff",fontSize:12}},tooltip:{showTitle:!1,showMarkers:!1,shared:!1},conversionTag:{offsetX:10,offsetY:0,style:{fontSize:12,fill:"rgba(0,0,0,0.45)"}}},Dh="CONVERSION_TAG_NAME";function ws(e,r,t){var i=[],n=t.yField,a=t.maxSize,o=t.minSize,s=(0,h.get)((0,h.maxBy)(r,n),[n]),l=(0,h.isNumber)(a)?a:1,u=(0,h.isNumber)(o)?o:0;return i=(0,h.map)(e,function(c,f){var v=(c[n]||0)/s;return c[Ir]=v,c[Or]=(l-u)*v+u,c[dr]=[(0,h.get)(e,[f-1,n]),c[n]],c}),i}function bs(e){return function(r){var t=r.chart,i=r.options,n=i.conversionTag,a=i.filteredData,o=a||t.getOptions().data;if(n){var s=n.formatter;o.forEach(function(l,u){if(!(u<=0||Number.isNaN(l[Or]))){var c=e(l,u,o,{top:!0,name:Dh,text:{content:(0,h.isFunction)(s)?s(l,o):s,offsetX:n.offsetX,offsetY:n.offsetY,position:"end",autoRotate:!1,style:(0,g.__assign)({textAlign:"start",textBaseline:"middle"},n.style)}});t.annotation().line(c)}})}return r}}function iS(e){var r=e.chart,t=e.options,i=t.data,n=i===void 0?[]:i,a=t.yField,o=t.maxSize,s=t.minSize,l=ws(n,n,{yField:a,maxSize:o,minSize:s});return r.data(l),e}function nS(e){var r=e.chart,t=e.options,i=t.xField,n=t.yField,a=t.color,o=t.tooltip,s=t.label,l=t.shape,u=l===void 0?"funnel":l,c=t.funnelStyle,f=t.state,v=Ye(o,[i,n]),d=v.fields,p=v.formatter;Re({chart:r,options:{type:"interval",xField:i,yField:Or,colorField:i,tooltipFields:(0,h.isArray)(d)&&d.concat([Ir,dr]),mapping:{shape:u,tooltip:p,color:a,style:c},label:s,state:f}});var y=Me(e.chart,"interval");return y.adjust("symmetric"),e}function aS(e){var r=e.chart,t=e.options,i=t.isTransposed;return r.coordinate({type:"rect",actions:i?[]:[["transpose"],["scale",1,-1]]}),e}function Bh(e){var r=e.options,t=e.chart,i=r.maxSize,n=(0,h.get)(t,["geometries","0","dataArray"],[]),a=(0,h.get)(t,["options","data","length"]),o=(0,h.map)(n,function(l){return(0,h.get)(l,["0","nextPoints","0","x"])*a-.5}),s=function(l,u,c,f){var v=i-(i-l[Or])/2;return(0,g.__assign)((0,g.__assign)({},f),{start:[o[u-1]||u-.5,v],end:[o[u-1]||u-.5,v+.05]})};return bs(s)(e),e}function Rh(e){return Et(iS,nS,aS,Bh)(e)}function oS(e){var r,t=e.chart,i=e.options,n=i.data,a=n===void 0?[]:n,o=i.yField;return t.data(a),t.scale((r={},r[o]={sync:!0},r)),e}function sS(e){var r=e.chart,t=e.options,i=t.data,n=t.xField,a=t.yField,o=t.color,s=t.compareField,l=t.isTransposed,u=t.tooltip,c=t.maxSize,f=t.minSize,v=t.label,d=t.funnelStyle,p=t.state,y=t.showFacetTitle;return r.facet("mirror",{fields:[s],transpose:!l,padding:l?0:[32,0,0,0],showTitle:y,eachView:function(m,x){var _=l?x.rowIndex:x.columnIndex;l||m.coordinate({type:"rect",actions:[["transpose"],["scale",_===0?-1:1,-1]]});var w=ws(x.data,i,{yField:a,maxSize:c,minSize:f});m.data(w);var b=Ye(u,[n,a,s]),S=b.fields,C=b.formatter,A=l?{offset:_===0?10:-23,position:_===0?"bottom":"top"}:{offset:10,position:"left",style:{textAlign:_===0?"end":"start"}};Re({chart:m,options:{type:"interval",xField:n,yField:Or,colorField:n,tooltipFields:(0,h.isArray)(S)&&S.concat([Ir,dr]),mapping:{shape:"funnel",tooltip:C,color:o,style:d},label:v===!1?!1:O({},A,v),state:p}})}}),e}function Nh(e){var r=e.chart,t=e.index,i=e.options,n=i.conversionTag,a=i.isTransposed;((0,h.isNumber)(t)?[r]:r.views).forEach(function(o,s){var l=(0,h.get)(o,["geometries","0","dataArray"],[]),u=(0,h.get)(o,["options","data","length"]),c=(0,h.map)(l,function(v){return(0,h.get)(v,["0","nextPoints","0","x"])*u-.5}),f=function(v,d,p,y){var m=(t||s)===0?-1:1;return O({},y,{start:[c[d-1]||d-.5,v[Or]],end:[c[d-1]||d-.5,v[Or]+.05],text:a?{style:{textAlign:"start"}}:{offsetX:n!==!1?m*n.offsetX:0,style:{textAlign:(t||s)===0?"end":"start"}}})};bs(f)(O({},{chart:o,options:i}))})}function lS(e){var r=e.chart;return r.once("beforepaint",function(){return Nh(e)}),e}function uS(e){return Et(oS,sS,lS)(e)}function cS(e){var r=e.chart,t=e.options,i=t.data,n=i===void 0?[]:i,a=t.yField,o=(0,h.reduce)(n,function(u,c){return u+(c[a]||0)},0),s=(0,h.maxBy)(n,a)[a],l=(0,h.map)(n,function(u,c){var f=[],v=[];if(u[_s]=(u[a]||0)/o,c){var d=n[c-1][hn],p=n[c-1][fn];f[0]=d[3],v[0]=p[3],f[1]=d[2],v[1]=p[2]}else f[0]=-.5,v[0]=1,f[1]=.5,v[1]=1;return v[2]=v[1]-u[_s],f[2]=(v[2]+1)/4,v[3]=v[2],f[3]=-f[2],u[hn]=f,u[fn]=v,u[Ir]=(u[a]||0)/s,u[dr]=[(0,h.get)(n,[c-1,a]),u[a]],u});return r.data(l),e}function hS(e){var r=e.chart,t=e.options,i=t.xField,n=t.yField,a=t.color,o=t.tooltip,s=t.label,l=t.funnelStyle,u=t.state,c=Ye(o,[i,n]),f=c.fields,v=c.formatter;return Re({chart:r,options:{type:"polygon",xField:hn,yField:fn,colorField:i,tooltipFields:(0,h.isArray)(f)&&f.concat([Ir,dr]),label:s,state:u,mapping:{tooltip:v,color:a,style:l}}}),e}function fS(e){var r=e.chart,t=e.options,i=t.isTransposed;return r.coordinate({type:"rect",actions:i?[["transpose"],["reflect","x"]]:[]}),e}function vS(e){var r=function(t,i,n,a){return(0,g.__assign)((0,g.__assign)({},a),{start:[t[hn][1],t[fn][1]],end:[t[hn][1]+.05,t[fn][1]]})};return bs(r)(e),e}function dS(e){return Et(cS,hS,fS,vS)(e)}function gS(e){var r,t=e.chart,i=e.options,n=i.data,a=n===void 0?[]:n,o=i.yField;return t.data(a),t.scale((r={},r[o]={sync:!0},r)),e}function pS(e){var r=e.chart,t=e.options,i=t.seriesField,n=t.isTransposed,a=t.showFacetTitle;return r.facet("rect",{fields:[i],padding:[n?0:32,10,0,10],showTitle:a,eachView:function(o,s){Rh(O({},e,{chart:o,options:{data:s.data}}))}}),e}function yS(e){return Et(gS,pS)(e)}var mS=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.rendering=!1,t}return r.prototype.change=function(t){var i=this;if(!this.rendering){var n=t.seriesField,a=t.compareField,o=a?Nh:Bh,s=this.context.view,l=n||a?s.views:[s];(0,h.map)(l,function(u,c){var f=u.getController("annotation"),v=(0,h.filter)((0,h.get)(f,["option"],[]),function(p){var y=p.name;return y!==Dh});f.clear(!0),(0,h.each)(v,function(p){typeof p=="object"&&u.annotation()[p.type](p)});var d=(0,h.get)(u,["filteredData"],u.getOptions().data);o({chart:u,index:c,options:(0,g.__assign)((0,g.__assign)({},t),{filteredData:ws(d,d,t)})}),u.filterData(d),i.rendering=!0,u.render(!0)})}this.rendering=!1},r}(ne),zh="funnel-conversion-tag",Ss="funnel-afterrender",Vh={trigger:"afterrender",action:"".concat(zh,":change")};xt(zh,mS),Ot(Ss,{start:[Vh]});function xS(e){var r=e.options,t=r.compareField,i=r.xField,n=r.yField,a=r.locale,o=r.funnelStyle,s=r.data,l=ya(a),u={label:t?{fields:[i,n,t,Ir,dr],formatter:function(f){return"".concat(f[n])}}:{fields:[i,n,Ir,dr],offset:0,position:"middle",formatter:function(f){return"".concat(f[i]," ").concat(f[n])}},tooltip:{title:i,formatter:function(f){return{name:f[i],value:f[n]}}},conversionTag:{formatter:function(f){return"".concat(l.get(["conversionTag","label"]),": ").concat(Oh.apply(void 0,f[dr]))}}},c;return(t||o)&&(c=function(f){return O({},t&&{lineWidth:1,stroke:"#fff"},(0,h.isFunction)(o)?o(f):o)}),O({options:u},e,{options:{funnelStyle:c,data:(0,h.clone)(s)}})}function _S(e){var r=e.options,t=r.compareField,i=r.dynamicHeight,n=r.seriesField;return n?yS(e):t?uS(e):i?dS(e):Rh(e)}function wS(e){var r,t=e.options,i=t.xAxis,n=t.yAxis,a=t.xField,o=t.yField;return Et(he((r={},r[a]=i,r[o]=n,r)))(e)}function bS(e){var r=e.chart;return r.axis(!1),e}function SS(e){var r=e.chart,t=e.options,i=t.legend;return i===!1?r.legend(!1):r.legend(i),e}function CS(e){var r=e.chart,t=e.options,i=t.interactions,n=t.dynamicHeight;return(0,h.each)(i,function(a){a.enable===!1?r.removeInteraction(a.type):r.interaction(a.type,a.cfg||{})}),n?r.removeInteraction(Ss):r.interaction(Ss,{start:[(0,g.__assign)((0,g.__assign)({},Vh),{arg:t})]}),e}function Gh(e){return Et(xS,_S,wS,bS,me,CS,SS,Qt,Xt,le())(e)}var AS=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.type="funnel",t}return r.getDefaultOptions=function(){return rS},r.prototype.getDefaultOptions=function(){return r.getDefaultOptions()},r.prototype.getSchemaAdaptor=function(){return Gh},r.prototype.setState=function(t,i,n){n===void 0&&(n=!0);var a=on(this.chart);(0,h.each)(a,function(o){i(o.getData())&&o.setState(t,n)})},r.prototype.getStates=function(){var t=on(this.chart),i=[];return(0,h.each)(t,function(n){var a=n.getData(),o=n.getStates();(0,h.each)(o,function(s){i.push({data:a,state:s,geometry:n.geometry,element:n})})}),i},r.CONVERSATION_FIELD=dr,r.PERCENT_FIELD=Ir,r.TOTAL_PERCENT_FIELD=_s,r}(kt),Ca,Cs="range",Wh="type",gr="percent",MS="#f0f0f0",Hh="indicator-view",Yh="range-view",FS={percent:0,range:{ticks:[]},innerRadius:.9,radius:.95,startAngle:-7/6*Math.PI,endAngle:1/6*Math.PI,syncViewPadding:!0,axis:{line:null,label:{offset:-24,style:{textAlign:"center",textBaseline:"middle"}},subTickLine:{length:-8},tickLine:{length:-12},grid:null},indicator:{pointer:{style:{lineWidth:5,lineCap:"round"}},pin:{style:{r:9.75,lineWidth:4.5,fill:"#fff"}}},statistic:{title:!1},meta:(Ca={},Ca[Cs]={sync:"v"},Ca[gr]={sync:"v",tickCount:5,tickInterval:.2},Ca),animation:!1};function ES(e,r){return e.map(function(t,i){var n;return n={},n[Cs]=t-(e[i-1]||0),n[Wh]="".concat(i),n[gr]=r,n})}function Xh(e){var r;return[(r={},r[gr]=(0,h.clamp)(e,0,1),r)]}function Uh(e,r){var t=(0,h.get)(r,["ticks"],[]),i=(0,h.size)(t)?(0,h.uniq)(t):[0,(0,h.clamp)(e,0,1),1];return i[0]||i.shift(),ES(i,e)}function TS(e){var r=e.chart,t=e.options,i=t.percent,n=t.range,a=t.radius,o=t.innerRadius,s=t.startAngle,l=t.endAngle,u=t.axis,c=t.indicator,f=t.gaugeStyle,v=t.type,d=t.meter,p=n.color,y=n.width;if(c){var m=Xh(i),x=r.createView({id:Hh});x.data(m),x.point().position("".concat(gr,"*1")).shape(c.shape||"gauge-indicator").customInfo({defaultColor:r.getTheme().defaultColor,indicator:c}),x.coordinate("polar",{startAngle:s,endAngle:l,radius:o*a}),x.axis(gr,u),x.scale(gr,$t(u,Be))}var _=Uh(i,t.range),w=r.createView({id:Yh});w.data(_);var b=(0,h.isString)(p)?[p,MS]:p,S=Fe({chart:w,options:{xField:"1",yField:Cs,seriesField:Wh,rawFields:[gr],isStack:!0,interval:{color:b,style:f,shape:v==="meter"?"meter-gauge":null},args:{zIndexReversed:!0,sortZIndex:!0},minColumnWidth:y,maxColumnWidth:y}}).ext,C=S.geometry;return C.customInfo({meter:d}),w.coordinate("polar",{innerRadius:o,radius:a,startAngle:s,endAngle:l}).transpose(),e}function LS(e){var r;return Et(he((r={range:{min:0,max:1,maxLimit:1,minLimit:0}},r[gr]={},r)))(e)}function jh(e,r){var t=e.chart,i=e.options,n=i.statistic,a=i.percent;if(t.getController("annotation").clear(!0),n){var o=n.content,s=void 0;o&&(s=O({},{content:"".concat((a*100).toFixed(2),"%"),style:{opacity:.75,fontSize:"30px",lineHeight:1,textAlign:"center",color:"rgba(44,53,66,0.85)"}},o)),sb(t,{statistic:(0,g.__assign)((0,g.__assign)({},n),{content:s})},{percent:a})}return r&&t.render(!0),e}function IS(e){var r=e.chart,t=e.options,i=t.tooltip;return i?r.tooltip(O({showTitle:!1,showMarkers:!1,containerTpl:'
        ',domStyles:{"g2-tooltip":{padding:"4px 8px",fontSize:"10px"}},customContent:function(n,a){var o=(0,h.get)(a,[0,"data",gr],0);return"".concat((o*100).toFixed(2),"%")}},i)):r.tooltip(!1),e}function OS(e){var r=e.chart;return r.legend(!1),e}function Zh(e){return Et(Xt,Qt,TS,LS,IS,jh,oe,le(),OS)(e)}Zt("point","gauge-indicator",{draw:function(e,r){var t=e.customInfo,i=t.indicator,n=t.defaultColor,a=i,o=a.pointer,s=a.pin,l=r.addGroup(),u=this.parsePoint({x:0,y:0});return o&&l.addShape("line",{name:"pointer",attrs:(0,g.__assign)({x1:u.x,y1:u.y,x2:e.x,y2:e.y,stroke:n},o.style)}),s&&l.addShape("circle",{name:"pin",attrs:(0,g.__assign)({x:u.x,y:u.y,stroke:n},s.style)}),l}}),Zt("interval","meter-gauge",{draw:function(e,r){var t=e.customInfo.meter,i=t===void 0?{}:t,n=i.steps,a=n===void 0?50:n,o=i.stepRatio,s=o===void 0?.5:o;a=a<1?1:a,s=(0,h.clamp)(s,0,1);var l=this.coordinate,u=l.startAngle,c=l.endAngle,f=0;if(s>0&&s<1){var v=c-u;f=v/a/(s/(1-s)+1-1/a)}for(var d=f/(1-s)*s,p=r.addGroup(),y=this.coordinate.getCenter(),m=this.coordinate.getRadius(),x=ke.getAngle(e,this.coordinate),_=x.startAngle,w=x.endAngle,b=_;b1?l/(i-1):s.max),!t&&!i){var c=kS(o);u=l/c}var f={},v=(0,h.groupBy)(a,n);(0,h.isEmpty)(v)?(0,h.each)(a,function(p){var y=p[r],m=qh(y,u,i),x="".concat(m[0],"-").concat(m[1]);(0,h.hasKey)(f,x)||(f[x]={range:m,count:0}),f[x].count+=1}):Object.keys(v).forEach(function(p){(0,h.each)(v[p],function(y){var m=y[r],x=qh(m,u,i),_="".concat(x[0],"-").concat(x[1]),w="".concat(_,"-").concat(p);(0,h.hasKey)(f,w)||(f[w]={range:x,count:0},f[w][n]=p),f[w].count+=1})});var d=[];return(0,h.each)(f,function(p){d.push(p)}),d}var Aa="range",vn="count",DS=O({},kt.getDefaultOptions(),{columnStyle:{stroke:"#FFFFFF"},tooltip:{shared:!0,showMarkers:!1},interactions:[{type:"active-region"}]});function BS(e){var r=e.chart,t=e.options,i=t.data,n=t.binField,a=t.binNumber,o=t.binWidth,s=t.color,l=t.stackField,u=t.legend,c=t.columnStyle,f=Kh(i,n,o,a,l);r.data(f);var v=O({},e,{options:{xField:Aa,yField:vn,seriesField:l,isStack:!0,interval:{color:s,style:c}}});return Fe(v),u&&l?r.legend(l,u):r.legend(!1),e}function RS(e){var r,t=e.options,i=t.xAxis,n=t.yAxis;return Et(he((r={},r[Aa]=i,r[vn]=n,r)))(e)}function NS(e){var r=e.chart,t=e.options,i=t.xAxis,n=t.yAxis;return i===!1?r.axis(Aa,!1):r.axis(Aa,i),n===!1?r.axis(vn,!1):r.axis(vn,n),e}function zS(e){var r=e.chart,t=e.options,i=t.label,n=Me(r,"interval");if(!i)n.label(!1);else{var a=i.callback,o=(0,g.__rest)(i,["callback"]);n.label({fields:[vn],callback:a,cfg:be(o)})}return e}function $h(e){return Et(Xt,Ve("columnStyle"),BS,RS,NS,Lr,zS,me,oe,Qt)(e)}var VS=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.type="histogram",t}return r.getDefaultOptions=function(){return DS},r.prototype.changeData=function(t){this.updateOption({data:t});var i=this.options,n=i.binField,a=i.binNumber,o=i.binWidth,s=i.stackField;this.chart.changeData(Kh(t,n,o,a,s))},r.prototype.getDefaultOptions=function(){return r.getDefaultOptions()},r.prototype.getSchemaAdaptor=function(){return $h},r}(kt),GS=O({},kt.getDefaultOptions(),{tooltip:{shared:!0,showMarkers:!0,showCrosshairs:!0,crosshairs:{type:"x"}},legend:{position:"top-left",radio:{}},isStack:!1}),WS=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.active=function(){var t=this.getView(),i=this.context.event;if(i.data){var n=i.data.items,a=t.geometries.filter(function(o){return o.type==="point"});(0,h.each)(a,function(o){(0,h.each)(o.elements,function(s){var l=(0,h.findIndex)(n,function(u){return u.data===s.data})!==-1;s.setState("active",l)})})}},r.prototype.reset=function(){var t=this.getView(),i=t.geometries.filter(function(n){return n.type==="point"});(0,h.each)(i,function(n){(0,h.each)(n.elements,function(a){a.setState("active",!1)})})},r.prototype.getView=function(){return this.context.view},r}(ne);xt("marker-active",WS),Ot("marker-active",{start:[{trigger:"tooltip:show",action:"marker-active:active"}],end:[{trigger:"tooltip:hide",action:"marker-active:reset"}]});var Qh=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.type="line",t}return r.getDefaultOptions=function(){return GS},r.prototype.changeData=function(t){this.updateOption({data:t});var i=this,n=i.chart,a=i.options;wa({chart:n,options:a}),this.chart.changeData(t)},r.prototype.getDefaultOptions=function(){return r.getDefaultOptions()},r.prototype.getSchemaAdaptor=function(){return Fh},r}(kt),Jh=O({},kt.getDefaultOptions(),{legend:{position:"right",radio:{}},tooltip:{shared:!1,showTitle:!1,showMarkers:!1},label:{layout:{type:"limit-in-plot",cfg:{action:"ellipsis"}}},pieStyle:{stroke:"white",lineWidth:1},statistic:{title:{style:{fontWeight:300,color:"#4B535E",textAlign:"center",fontSize:"20px",lineHeight:1}},content:{style:{fontWeight:"bold",color:"rgba(44,53,66,0.85)",textAlign:"center",fontSize:"32px",lineHeight:1}}},theme:{components:{annotation:{text:{animate:!1}}}}}),HS=[1,0,0,0,1,0,0,0,1];function As(e,r){var t=r?(0,g.__spreadArray)([],r,!0):(0,g.__spreadArray)([],HS,!0);return ke.transform(t,e)}var YS=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getActiveElements=function(){var t=ke.getDelegationObject(this.context);if(t){var i=this.context.view,n=t.component,a=t.item,o=n.get("field");if(o){var s=i.geometries[0].elements;return s.filter(function(l){return l.getModel().data[o]===a.value})}}return[]},r.prototype.getActiveElementLabels=function(){var t=this.context.view,i=this.getActiveElements(),n=t.geometries[0].labelsContainer.getChildren();return n.filter(function(a){return i.find(function(o){return(0,h.isEqual)(o.getData(),a.get("data"))})})},r.prototype.transfrom=function(t){t===void 0&&(t=7.5);var i=this.getActiveElements(),n=this.getActiveElementLabels();i.forEach(function(a,o){var s=n[o],l=a.geometry.coordinate;if(l.isPolar&&l.isTransposed){var u=ke.getAngle(a.getModel(),l),c=u.startAngle,f=u.endAngle,v=(c+f)/2,d=t,p=d*Math.cos(v),y=d*Math.sin(v);a.shape.setMatrix(As([["t",p,y]])),s.setMatrix(As([["t",p,y]]))}})},r.prototype.active=function(){this.transfrom()},r.prototype.reset=function(){this.transfrom(0)},r}(ne);function XS(e){var r=e.event,t,i=r.target;return i&&(t=i.get("element")),t}var US=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getAnnotations=function(t){var i=t||this.context.view;return i.getController("annotation").option},r.prototype.getInitialAnnotation=function(){return this.initialAnnotation},r.prototype.init=function(){var t=this,i=this.context.view;i.removeInteraction("tooltip"),i.on("afterchangesize",function(){var n=t.getAnnotations(i);t.initialAnnotation=n})},r.prototype.change=function(t){var i=this.context,n=i.view,a=i.event;this.initialAnnotation||(this.initialAnnotation=this.getAnnotations());var o=(0,h.get)(a,["data","data"]);if(a.type.match("legend-item")){var s=ke.getDelegationObject(this.context),l=n.getGroupedFields()[0];if(s&&l){var u=s.item;o=n.getData().find(function(d){return d[l]===u.value})}}if(o){var c=(0,h.get)(t,"annotations",[]),f=(0,h.get)(t,"statistic",{});n.getController("annotation").clear(!0),(0,h.each)(c,function(d){typeof d=="object"&&n.annotation()[d.type](d)}),da(n,{statistic:f,plotType:"pie"},o),n.render(!0)}var v=XS(this.context);v&&v.shape.toFront()},r.prototype.reset=function(){var t=this.context.view,i=t.getController("annotation");i.clear(!0);var n=this.getInitialAnnotation();(0,h.each)(n,function(a){t.annotation()[a.type](a)}),t.render(!0)},r}(ne),tf="pie-statistic";xt(tf,US),Ot("pie-statistic-active",{start:[{trigger:"element:mouseenter",action:"pie-statistic:change"}],end:[{trigger:"element:mouseleave",action:"pie-statistic:reset"}]}),xt("pie-legend",YS),Ot("pie-legend-active",{start:[{trigger:"legend-item:mouseenter",action:"pie-legend:active"}],end:[{trigger:"legend-item:mouseleave",action:"pie-legend:reset"}]});function jS(e,r){var t=null;return(0,h.each)(e,function(i){typeof i[r]=="number"&&(t+=i[r])}),t}function ZS(e,r){var t;switch(e){case"inner":return t="-30%",(0,h.isString)(r)&&r.endsWith("%")?parseFloat(r)*.01>0?t:r:r<0?r:t;case"outer":return t=12,(0,h.isString)(r)&&r.endsWith("%")?parseFloat(r)*.01<0?t:r:r>0?r:t;default:return r}}function Ma(e,r){return(0,h.every)(xi(e,r),function(t){return t[r]===0})}function qS(e){var r=e.chart,t=e.options,i=t.data,n=t.angleField,a=t.colorField,o=t.color,s=t.pieStyle,l=t.shape,u=xi(i,n);if(Ma(u,n)){var c="$$percentage$$";u=u.map(function(v){var d;return(0,g.__assign)((0,g.__assign)({},v),(d={},d[c]=1/u.length,d))}),r.data(u);var f=O({},e,{options:{xField:"1",yField:c,seriesField:a,isStack:!0,interval:{color:o,shape:l,style:s},args:{zIndexReversed:!0,sortZIndex:!0}}});Fe(f)}else{r.data(u);var f=O({},e,{options:{xField:"1",yField:n,seriesField:a,isStack:!0,interval:{color:o,shape:l,style:s},args:{zIndexReversed:!0,sortZIndex:!0}}});Fe(f)}return e}function KS(e){var r,t=e.chart,i=e.options,n=i.meta,a=i.colorField,o=O({},n);return t.scale(o,(r={},r[a]={type:"cat"},r)),e}function $S(e){var r=e.chart,t=e.options,i=t.radius,n=t.innerRadius,a=t.startAngle,o=t.endAngle;return r.coordinate({type:"theta",cfg:{radius:i,innerRadius:n,startAngle:a,endAngle:o}}),e}function QS(e){var r=e.chart,t=e.options,i=t.label,n=t.colorField,a=t.angleField,o=r.geometries[0];if(!i)o.label(!1);else{var s=i.callback,l=(0,g.__rest)(i,["callback"]),u=be(l);if(u.content){var c=u.content;u.content=function(p,y,m){var x=p[n],_=p[a],w=r.getScaleByField(a),b=w==null?void 0:w.scale(_);return(0,h.isFunction)(c)?c((0,g.__assign)((0,g.__assign)({},p),{percent:b}),y,m):(0,h.isString)(c)?dh(c,{value:_,name:x,percentage:(0,h.isNumber)(b)&&!(0,h.isNil)(_)?"".concat((b*100).toFixed(2),"%"):null}):c}}var f={inner:"",outer:"pie-outer",spider:"pie-spider"},v=u.type?f[u.type]:"pie-outer",d=u.layout?(0,h.isArray)(u.layout)?u.layout:[u.layout]:[];u.layout=(v?[{type:v}]:[]).concat(d),o.label({fields:n?[a,n]:[a],callback:s,cfg:(0,g.__assign)((0,g.__assign)({},u),{offset:ZS(u.type,u.offset),type:"pie"})})}return e}function ef(e){var r=e.innerRadius,t=e.statistic,i=e.angleField,n=e.colorField,a=e.meta,o=e.locale,s=ya(o);if(r&&t){var l=O({},Jh.statistic,t),u=l.title,c=l.content;return u!==!1&&(u=O({},{formatter:function(f){var v=f?f[n]:(0,h.isNil)(u.content)?s.get(["statistic","total"]):u.content,d=(0,h.get)(a,[n,"formatter"])||function(p){return p};return d(v)}},u)),c!==!1&&(c=O({},{formatter:function(f,v){var d=f?f[i]:jS(v,i),p=(0,h.get)(a,[i,"formatter"])||function(y){return y};return f||(0,h.isNil)(c.content)?p(d):c.content}},c)),O({},{statistic:{title:u,content:c}},e)}return e}function rf(e){var r=e.chart,t=e.options,i=ef(t),n=i.innerRadius,a=i.statistic;return r.getController("annotation").clear(!0),Et(le())(e),n&&a&&da(r,{statistic:a,plotType:"pie"}),e}function JS(e){var r=e.chart,t=e.options,i=t.tooltip,n=t.colorField,a=t.angleField,o=t.data;if(i===!1)r.tooltip(i);else if(r.tooltip(O({},i,{shared:!1})),Ma(o,a)){var s=(0,h.get)(i,"fields"),l=(0,h.get)(i,"formatter");(0,h.isEmpty)((0,h.get)(i,"fields"))&&(s=[n,a],l=l||function(u){return{name:u[n],value:(0,h.toString)(u[a])}}),r.geometries[0].tooltip(s.join("*"),_i(s,l))}return e}function tC(e){var r=e.chart,t=e.options,i=ef(t),n=i.interactions,a=i.statistic,o=i.annotations;return(0,h.each)(n,function(s){var l,u;if(s.enable===!1)r.removeInteraction(s.type);else if(s.type==="pie-statistic-active"){var c=[];((l=s.cfg)===null||l===void 0?void 0:l.start)||(c=[{trigger:"element:mouseenter",action:"".concat(tf,":change"),arg:{statistic:a,annotations:o}}]),(0,h.each)((u=s.cfg)===null||u===void 0?void 0:u.start,function(f){c.push((0,g.__assign)((0,g.__assign)({},f),{arg:{statistic:a,annotations:o}}))}),r.interaction(s.type,O({},s.cfg,{start:c}))}else r.interaction(s.type,s.cfg||{})}),e}function nf(e){return Et(Ve("pieStyle"),qS,KS,Xt,$S,Ur,JS,QS,Lr,rf,tC,Qt)(e)}var af=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.type="pie",t}return r.getDefaultOptions=function(){return Jh},r.prototype.changeData=function(t){this.chart.emit(L.BEFORE_CHANGE_DATA,ue.fromData(this.chart,L.BEFORE_CHANGE_DATA,null));var i=this.options,n=this.options.angleField,a=xi(i.data,n),o=xi(t,n);Ma(a,n)||Ma(o,n)?this.update({data:t}):(this.updateOption({data:t}),this.chart.data(o),rf({chart:this.chart,options:this.options}),this.chart.render(!0)),this.chart.emit(L.AFTER_CHANGE_DATA,ue.fromData(this.chart,L.AFTER_CHANGE_DATA,null))},r.prototype.getDefaultOptions=function(){return r.getDefaultOptions()},r.prototype.getSchemaAdaptor=function(){return nf},r}(kt),of=["#FAAD14","#E8EDF3"],eC={percent:.2,color:of,animation:{}};function Ms(e){var r=(0,h.clamp)(Xr(e)?e:0,0,1);return[{current:"".concat(r),type:"current",percent:r},{current:"".concat(r),type:"target",percent:1}]}function sf(e){var r=e.chart,t=e.options,i=t.percent,n=t.progressStyle,a=t.color,o=t.barWidthRatio;r.data(Ms(i));var s=O({},e,{options:{xField:"current",yField:"percent",seriesField:"type",widthRatio:o,interval:{style:n,color:(0,h.isString)(a)?[a,of[1]]:a},args:{zIndexReversed:!0,sortZIndex:!0}}});return Fe(s),r.tooltip(!1),r.axis(!1),r.legend(!1),e}function rC(e){var r=e.chart;return r.coordinate("rect").transpose(),e}function lf(e){return Et(sf,he({}),rC,Qt,Xt,le())(e)}var iC=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.type="process",t}return r.getDefaultOptions=function(){return eC},r.prototype.changeData=function(t){this.updateOption({percent:t}),this.chart.changeData(Ms(t))},r.prototype.getDefaultOptions=function(){return r.getDefaultOptions()},r.prototype.getSchemaAdaptor=function(){return lf},r}(kt);function nC(e){var r=e.chart,t=e.options,i=t.innerRadius,n=t.radius;return r.coordinate("theta",{innerRadius:i,radius:n}),e}function uf(e,r){var t=e.chart,i=e.options,n=i.innerRadius,a=i.statistic,o=i.percent,s=i.meta;if(t.getController("annotation").clear(!0),n&&a){var l=(0,h.get)(s,["percent","formatter"])||function(c){return"".concat((c*100).toFixed(2),"%")},u=a.content;u&&(u=O({},u,{content:(0,h.isNil)(u.content)?l(o):u.content})),da(t,{statistic:(0,g.__assign)((0,g.__assign)({},a),{content:u}),plotType:"ring-progress"},{percent:o})}return r&&t.render(!0),e}function cf(e){return Et(sf,he({}),nC,uf,Qt,Xt,le())(e)}var aC={percent:.2,innerRadius:.8,radius:.98,color:["#FAAD14","#E8EDF3"],statistic:{title:!1,content:{style:{fontSize:"14px",fontWeight:300,fill:"#4D4D4D",textAlign:"center",textBaseline:"middle"}}},animation:{}},oC=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.type="ring-process",t}return r.getDefaultOptions=function(){return aC},r.prototype.changeData=function(t){this.chart.emit(L.BEFORE_CHANGE_DATA,ue.fromData(this.chart,L.BEFORE_CHANGE_DATA,null)),this.updateOption({percent:t}),this.chart.data(Ms(t)),uf({chart:this.chart,options:this.options},!0),this.chart.emit(L.AFTER_CHANGE_DATA,ue.fromData(this.chart,L.AFTER_CHANGE_DATA,null))},r.prototype.getDefaultOptions=function(){return r.getDefaultOptions()},r.prototype.getSchemaAdaptor=function(){return cf},r}(kt),Kr=M(56645),sC={exp:Kr.regressionExp,linear:Kr.regressionLinear,loess:Kr.regressionLoess,log:Kr.regressionLog,poly:Kr.regressionPoly,pow:Kr.regressionPow,quad:Kr.regressionQuad};function lC(e,r){var t=10,i={regionStyle:[{position:{start:[e,"max"],end:["max",r]},style:{fill:"#d8d0c0",opacity:.4}},{position:{start:["min","max"],end:[e,r]},style:{fill:"#a3dda1",opacity:.4}},{position:{start:["min",r],end:[e,"min"]},style:{fill:"#d8d0c0",opacity:.4}},{position:{start:[e,r],end:["max","min"]},style:{fill:"#a3dda1",opacity:.4}}],lineStyle:{stroke:"#9ba29a",lineWidth:1},labelStyle:[{position:["max",r],offsetX:-t,offsetY:-t,style:{textAlign:"right",textBaseline:"bottom",fontSize:14,fill:"#ccc"}},{position:["min",r],offsetX:t,offsetY:-t,style:{textAlign:"left",textBaseline:"bottom",fontSize:14,fill:"#ccc"}},{position:["min",r],offsetX:t,offsetY:t,style:{textAlign:"left",textBaseline:"top",fontSize:14,fill:"#ccc"}},{position:["max",r],offsetX:-t,offsetY:t,style:{textAlign:"right",textBaseline:"top",fontSize:14,fill:"#ccc"}}]};return i}var uC=function(e,r){var t=r.view,i=r.options,n=i.xField,a=i.yField,o=t.getScaleByField(n),s=t.getScaleByField(a),l=e.map(function(u){return t.getCoordinate().convert({x:o.scale(u[0]),y:s.scale(u[1])})});return ob(l,!1)},cC=function(e){var r=e.options,t=r.xField,i=r.yField,n=r.data,a=r.regressionLine,o=a.type,s=o===void 0?"linear":o,l=a.algorithm,u=a.equation,c,f=null;if(l)c=(0,h.isArray)(l)?l:l(n),f=u;else{var v=sC[s]().x(function(d){return d[t]}).y(function(d){return d[i]});c=v(n),f=fC(s,c)}return[uC(c,e),f]},hC=function(e){var r,t=e.meta,i=t===void 0?{}:t,n=e.xField,a=e.yField,o=e.data,s=o[0][n],l=o[0][a],u=s>0,c=l>0;function f(v,d){var p=(0,h.get)(i,[v]);function y(x){return(0,h.get)(p,x)}var m={};return d==="x"?((0,h.isNumber)(s)&&((0,h.isNumber)(y("min"))||(m.min=u?0:s*2),(0,h.isNumber)(y("max"))||(m.max=u?s*2:0)),m):((0,h.isNumber)(l)&&((0,h.isNumber)(y("min"))||(m.min=c?0:l*2),(0,h.isNumber)(y("max"))||(m.max=c?l*2:0)),m)}return(0,g.__assign)((0,g.__assign)({},i),(r={},r[n]=(0,g.__assign)((0,g.__assign)({},i[n]),f(n,"x")),r[a]=(0,g.__assign)((0,g.__assign)({},i[a]),f(a,"y")),r))};function fC(e,r){var t,i,n,a=function(u,c){return c===void 0&&(c=4),Math.round(u*Math.pow(10,c))/Math.pow(10,c)},o=function(u){return Number.isFinite(u)?a(u):"?"};switch(e){case"linear":return"y = ".concat(o(r.a),"x + ").concat(o(r.b),", R^2 = ").concat(o(r.rSquared));case"exp":return"y = ".concat(o(r.a),"e^(").concat(o(r.b),"x), R^2 = ").concat(o(r.rSquared));case"log":return"y = ".concat(o(r.a),"ln(x) + ").concat(o(r.b),", R^2 = ").concat(o(r.rSquared));case"quad":return"y = ".concat(o(r.a),"x^2 + ").concat(o(r.b),"x + ").concat(o(r.c),", R^2 = ").concat(o(r.rSquared));case"poly":for(var s="y = ".concat(o((t=r.coefficients)===null||t===void 0?void 0:t[0])," + ").concat(o((i=r.coefficients)===null||i===void 0?void 0:i[1]),"x + ").concat(o((n=r.coefficients)===null||n===void 0?void 0:n[2]),"x^2"),l=3;l
        ',itemTpl:"{value}",domStyles:{"g2-tooltip":{padding:"2px 4px",fontSize:"10px"}},showCrosshairs:!0,crosshairs:{type:"x"}},LC={appendPadding:2,tooltip:(0,g.__assign)({},yf),animation:{}};function IC(e){var r=e.chart,t=e.options,i=t.data,n=t.color,a=t.areaStyle,o=t.point,s=t.line,l=o==null?void 0:o.state,u=$r(i);r.data(u);var c=O({},e,{options:{xField:gn,yField:bi,area:{color:n,style:a},line:s,point:o}}),f=O({},c,{options:{tooltip:!1}}),v=O({},c,{options:{tooltip:!1,state:l}});return xa(c),wi(f),Ge(v),r.axis(!1),r.legend(!1),e}function Si(e){var r,t,i=e.options,n=i.xAxis,a=i.yAxis,o=i.data,s=$r(o);return Et(he((r={},r[gn]=n,r[bi]=a,r),(t={},t[gn]={type:"cat"},t[bi]=ls(s,bi),t)))(e)}function mf(e){return Et(Ve("areaStyle"),IC,Si,me,Xt,Qt,le())(e)}var OC={appendPadding:2,tooltip:(0,g.__assign)({},yf),color:"l(90) 0:#E5EDFE 1:#ffffff",areaStyle:{fillOpacity:.6},line:{size:1,color:"#5B8FF9"},animation:{}},PC=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.type="tiny-area",t}return r.getDefaultOptions=function(){return OC},r.prototype.changeData=function(t){this.updateOption({data:t});var i=this,n=i.chart,a=i.options;Si({chart:n,options:a}),n.changeData($r(t))},r.prototype.getDefaultOptions=function(){return r.getDefaultOptions()},r.prototype.getSchemaAdaptor=function(){return mf},r}(kt);function kC(e){var r=e.chart,t=e.options,i=t.data,n=t.color,a=t.columnStyle,o=t.columnWidthRatio,s=$r(i);r.data(s);var l=O({},e,{options:{xField:gn,yField:bi,widthRatio:o,interval:{style:a,color:n}}});return Fe(l),r.axis(!1),r.legend(!1),r.interaction("element-active"),e}function xf(e){return Et(Xt,Ve("columnStyle"),kC,Si,me,Qt,le())(e)}var DC={showTitle:!1,shared:!0,showMarkers:!1,customContent:function(e,r){return"".concat((0,h.get)(r,[0,"data","y"],0))},containerTpl:'
        ',itemTpl:"{value}",domStyles:{"g2-tooltip":{padding:"2px 4px",fontSize:"10px"}}},BC={appendPadding:2,tooltip:(0,g.__assign)({},DC),animation:{}},RC=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.type="tiny-column",t}return r.getDefaultOptions=function(){return BC},r.prototype.changeData=function(t){this.updateOption({data:t});var i=this,n=i.chart,a=i.options;Si({chart:n,options:a}),n.changeData($r(t))},r.prototype.getDefaultOptions=function(){return r.getDefaultOptions()},r.prototype.getSchemaAdaptor=function(){return xf},r}(kt);function NC(e){var r=e.chart,t=e.options,i=t.data,n=t.color,a=t.lineStyle,o=t.point,s=o==null?void 0:o.state,l=$r(i);r.data(l);var u=O({},e,{options:{xField:gn,yField:bi,line:{color:n,style:a},point:o}}),c=O({},u,{options:{tooltip:!1,state:s}});return wi(u),Ge(c),r.axis(!1),r.legend(!1),e}function _f(e){return Et(NC,Si,Xt,me,Qt,le())(e)}var zC=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.type="tiny-line",t}return r.getDefaultOptions=function(){return LC},r.prototype.changeData=function(t){this.updateOption({data:t});var i=this,n=i.chart,a=i.options;Si({chart:n,options:a}),n.changeData($r(t))},r.prototype.getDefaultOptions=function(){return r.getDefaultOptions()},r.prototype.getSchemaAdaptor=function(){return _f},r}(kt),VC={line:Fh,pie:nf,column:Sa,bar:Ph,area:Eh,gauge:Zh,"tiny-line":_f,"tiny-column":xf,"tiny-area":mf,"ring-progress":cf,progress:lf,scatter:ff,histogram:$h,funnel:Gh,stock:pf},GC={line:Qh,pie:af,column:kh,bar:tS,area:Th,gauge:PS,"tiny-line":zC,"tiny-column":RC,"tiny-area":PC,"ring-progress":oC,progress:iC,scatter:wC,histogram:VS,funnel:AS,stock:TC},WC={pie:{label:!1},column:{tooltip:{showMarkers:!1}},bar:{tooltip:{showMarkers:!1}}};function Fs(e,r,t){var i=GC[e];if(!i){console.error("could not find ".concat(e," plot"));return}var n=VC[e];n({chart:r,options:O({},i.getDefaultOptions(),(0,h.get)(WC,e,{}),t)})}function HC(e){var r=e.chart,t=e.options,i=t.views,n=t.legend;return(0,h.each)(i,function(a){var o=a.region,s=a.data,l=a.meta,u=a.axes,c=a.coordinate,f=a.interactions,v=a.annotations,d=a.tooltip,p=a.geometries,y=r.createView({region:o});y.data(s);var m={};u&&(0,h.each)(u,function(x,_){m[_]=$t(x,Be)}),m=O({},l,m),y.scale(m),u?(0,h.each)(u,function(x,_){y.axis(_,x)}):y.axis(!1),y.coordinate(c),(0,h.each)(p,function(x){var _=Re({chart:y,options:x}).ext,w=x.adjust;w&&_.geometry.adjust(w)}),(0,h.each)(f,function(x){x.enable===!1?y.removeInteraction(x.type):y.interaction(x.type,x.cfg)}),(0,h.each)(v,function(x){y.annotation()[x.type]((0,g.__assign)({},x))}),typeof a.animation=="boolean"?y.animate(!1):(y.animate(!0),(0,h.each)(y.geometries,function(x){x.animate(a.animation)})),d&&(y.interaction("tooltip"),y.tooltip(d))}),n?(0,h.each)(n,function(a,o){r.legend(o,a)}):r.legend(!1),r.tooltip(t.tooltip),e}function YC(e){var r=e.chart,t=e.options,i=t.plots,n=t.data,a=n===void 0?[]:n;return(0,h.each)(i,function(o){var s=o.type,l=o.region,u=o.options,c=u===void 0?{}:u,f=o.top,v=c.tooltip;if(f){Fs(s,r,(0,g.__assign)((0,g.__assign)({},c),{data:a}));return}var d=r.createView((0,g.__assign)({region:l},$t(c,Sh)));v&&d.interaction("tooltip"),Fs(s,d,(0,g.__assign)({data:a},c))}),e}function XC(e){var r=e.chart,t=e.options;return r.option("slider",t.slider),e}function UC(e){return Et(Qt,HC,YC,oe,Qt,Xt,me,XC,le())(e)}function jC(e,r){var t=e.getModel(),i=t.data,n;return(0,h.isArray)(i)?n=i[0][r]:n=i[r],n}function ZC(e){var r=fa(e);(0,h.each)(r,function(t){t.hasState("active")&&t.setState("active",!1),t.hasState("selected")&&t.setState("selected",!1),t.hasState("inactive")&&t.setState("inactive",!1)})}var qC=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getAssociationItems=function(t,i){var n,a=this.context.event,o=i||{},s=o.linkField,l=o.dim,u=[];if((n=a.data)===null||n===void 0?void 0:n.data){var c=a.data.data;(0,h.each)(t,function(f){var v,d,p=s;if(l==="x"?p=f.getXScale().field:l==="y"?p=(v=f.getYScales().find(function(m){return m.field===p}))===null||v===void 0?void 0:v.field:p||(p=(d=f.getGroupScales()[0])===null||d===void 0?void 0:d.field),!!p){var y=(0,h.map)(fa(f),function(m){var x=!1,_=!1,w=(0,h.isArray)(c)?(0,h.get)(c[0],p):(0,h.get)(c,p);return jC(m,p)===w?x=!0:_=!0,{element:m,view:f,active:x,inactive:_}});u.push.apply(u,y)}})}return u},r.prototype.showTooltip=function(t){var i=gh(this.context.view),n=this.getAssociationItems(i,t);(0,h.each)(n,function(a){if(a.active){var o=a.element.shape.getCanvasBBox();a.view.showTooltip({x:o.minX+o.width/2,y:o.minY+o.height/2})}})},r.prototype.hideTooltip=function(){var t=gh(this.context.view);(0,h.each)(t,function(i){i.hideTooltip()})},r.prototype.active=function(t){var i=sn(this.context.view),n=this.getAssociationItems(i,t);(0,h.each)(n,function(a){var o=a.active,s=a.element;o&&s.setState("active",!0)})},r.prototype.selected=function(t){var i=sn(this.context.view),n=this.getAssociationItems(i,t);(0,h.each)(n,function(a){var o=a.active,s=a.element;o&&s.setState("selected",!0)})},r.prototype.highlight=function(t){var i=sn(this.context.view),n=this.getAssociationItems(i,t);(0,h.each)(n,function(a){var o=a.inactive,s=a.element;o&&s.setState("inactive",!0)})},r.prototype.reset=function(){var t=sn(this.context.view);(0,h.each)(t,function(i){ZC(i)})},r}(ne);xt("association",qC),Ot("association-active",{start:[{trigger:"element:mouseenter",action:"association:active"}],end:[{trigger:"element:mouseleave",action:"association:reset"}]}),Ot("association-selected",{start:[{trigger:"element:mouseenter",action:"association:selected"}],end:[{trigger:"element:mouseleave",action:"association:reset"}]}),Ot("association-highlight",{start:[{trigger:"element:mouseenter",action:"association:highlight"}],end:[{trigger:"element:mouseleave",action:"association:reset"}]}),Ot("association-tooltip",{start:[{trigger:"element:mousemove",action:"association:showTooltip"}],end:[{trigger:"element:mouseleave",action:"association:hideTooltip"}]});var KC=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.type="mix",t}return r.prototype.getSchemaAdaptor=function(){return UC},r}(kt),Ci;(function(e){e.DEV="DEV",e.BETA="BETA",e.STABLE="STABLE"})(Ci||(Ci={}));function $C(e,r){console.warn(e===Ci.DEV?"Plot '".concat(r,"' is in DEV stage, just give us issues."):e===Ci.BETA?"Plot '".concat(r,"' is in BETA stage, DO NOT use it in production env."):e===Ci.STABLE?"Plot '".concat(r,`' is in STABLE stage, import it by "import { `).concat(r,` } from '@antv/g2plot'".`):"invalid Stage type.")}var sI=function(){function e(){}return Object.defineProperty(e,"MultiView",{get:function(){return $C(Ci.STABLE,"MultiView"),KC},enumerable:!1,configurable:!0}),e}(),er="first-axes-view",rr="second-axes-view",Qr="series-field-key";function wf(e,r,t,i,n){var a=[];r.forEach(function(f){i.forEach(function(v){var d,p=(d={},d[e]=v[e],d[t]=f,d[f]=v[f],d);a.push(p)})});var o=Object.values((0,h.groupBy)(a,t)),s=o[0],l=s===void 0?[]:s,u=o[1],c=u===void 0?[]:u;return n?[l.reverse(),c.reverse()]:[l,c]}function pr(e){return e!=="vertical"}function QC(e,r,t){var i=r[0],n=r[1],a=i.autoPadding,o=n.autoPadding,s=e.__axisPosition,l=s.layout,u=s.position;if(pr(l)&&u==="top"&&(i.autoPadding=t.instance(a.top,0,a.bottom,a.left),n.autoPadding=t.instance(o.top,a.left,o.bottom,0)),pr(l)&&u==="bottom"&&(i.autoPadding=t.instance(a.top,a.right/2+5,a.bottom,a.left),n.autoPadding=t.instance(o.top,o.right,o.bottom,a.right/2+5)),!pr(l)&&u==="bottom"){var c=a.left>=o.left?a.left:o.left;i.autoPadding=t.instance(a.top,a.right,a.bottom/2+5,c),n.autoPadding=t.instance(a.bottom/2+5,o.right,o.bottom,c)}if(!pr(l)&&u==="top"){var c=a.left>=o.left?a.left:o.left;i.autoPadding=t.instance(a.top,a.right,0,c),n.autoPadding=t.instance(0,o.right,a.top,c)}}function JC(e){var r=e.chart,t=e.options,i=t.data,n=t.xField,a=t.yField,o=t.color,s=t.barStyle,l=t.widthRatio,u=t.legend,c=t.layout,f=wf(n,a,Qr,i,pr(c));u?r.legend(Qr,u):u===!1&&r.legend(!1);var v,d,p=f[0],y=f[1];pr(c)?(v=r.createView({region:{start:{x:0,y:0},end:{x:.5,y:1}},id:er}),v.coordinate().transpose().reflect("x"),d=r.createView({region:{start:{x:.5,y:0},end:{x:1,y:1}},id:rr}),d.coordinate().transpose(),v.data(p),d.data(y)):(v=r.createView({region:{start:{x:0,y:0},end:{x:1,y:.5}},id:er}),d=r.createView({region:{start:{x:0,y:.5},end:{x:1,y:1}},id:rr}),d.coordinate().reflect("y"),v.data(p),d.data(y));var m=O({},e,{chart:v,options:{widthRatio:l,xField:n,yField:a[0],seriesField:Qr,interval:{color:o,style:s}}});Fe(m);var x=O({},e,{chart:d,options:{xField:n,yField:a[1],seriesField:Qr,widthRatio:l,interval:{color:o,style:s}}});return Fe(x),e}function tA(e){var r,t,i,n=e.options,a=e.chart,o=n.xAxis,s=n.yAxis,l=n.xField,u=n.yField,c=Nt(a,er),f=Nt(a,rr),v={};return(0,h.keys)((n==null?void 0:n.meta)||{}).map(function(d){(0,h.get)(n==null?void 0:n.meta,[d,"alias"])&&(v[d]=n.meta[d].alias)}),a.scale((r={},r[Qr]={sync:!0,formatter:function(d){return(0,h.get)(v,d,d)}},r)),he((t={},t[l]=o,t[u[0]]=s[u[0]],t))(O({},e,{chart:c})),he((i={},i[l]=o,i[u[1]]=s[u[1]],i))(O({},e,{chart:f})),e}function eA(e){var r=e.chart,t=e.options,i=t.xAxis,n=t.yAxis,a=t.xField,o=t.yField,s=t.layout,l=Nt(r,er),u=Nt(r,rr);return(i==null?void 0:i.position)==="bottom"?u.axis(a,(0,g.__assign)((0,g.__assign)({},i),{label:{formatter:function(){return""}}})):u.axis(a,!1),i===!1?l.axis(a,!1):l.axis(a,(0,g.__assign)({position:pr(s)?"top":"bottom"},i)),n===!1?(l.axis(o[0],!1),u.axis(o[1],!1)):(l.axis(o[0],n[o[0]]),u.axis(o[1],n[o[1]])),r.__axisPosition={position:l.getOptions().axes[a].position,layout:s},e}function rA(e){var r=e.chart;return oe(O({},e,{chart:Nt(r,er)})),oe(O({},e,{chart:Nt(r,rr)})),e}function iA(e){var r=e.chart,t=e.options,i=t.yField,n=t.yAxis;return jr(O({},e,{chart:Nt(r,er),options:{yAxis:n[i[0]]}})),jr(O({},e,{chart:Nt(r,rr),options:{yAxis:n[i[1]]}})),e}function nA(e){var r=e.chart;return Xt(O({},e,{chart:Nt(r,er)})),Xt(O({},e,{chart:Nt(r,rr)})),Xt(e),e}function aA(e){var r=e.chart;return Qt(O({},e,{chart:Nt(r,er)})),Qt(O({},e,{chart:Nt(r,rr)})),e}function oA(e){var r=this,t,i,n=e.chart,a=e.options,o=a.label,s=a.yField,l=a.layout,u=Nt(n,er),c=Nt(n,rr),f=Me(u,"interval"),v=Me(c,"interval");if(!o)f.label(!1),v.label(!1);else{var d=o.callback,p=(0,g.__rest)(o,["callback"]);p.position||(p.position="middle"),p.offset===void 0&&(p.offset=2);var y=(0,g.__assign)({},p);if(pr(l)){var m=((t=y.style)===null||t===void 0?void 0:t.textAlign)||(p.position==="middle"?"center":"left");p.style=O({},p.style,{textAlign:m});var x={left:"right",right:"left",center:"center"};y.style=O({},y.style,{textAlign:x[m]})}else{var _={top:"bottom",bottom:"top",middle:"middle"};typeof p.position=="string"?p.position=_[p.position]:typeof p.position=="function"&&(p.position=function(){for(var S=[],C=0;C1?"".concat(r,"_").concat(t):"".concat(r)}function Af(e){var r=e.data,t=e.xField,i=e.measureField,n=e.rangeField,a=e.targetField,o=e.layout,s=[],l=[];r.forEach(function(f,v){var d=[f[n]].flat();d.sort(function(m,x){return m-x}),d.forEach(function(m,x){var _,w=x===0?m:d[x]-d[x-1];s.push((_={rKey:"".concat(n,"_").concat(x)},_[t]=t?f[t]:String(v),_[n]=w,_))});var p=[f[i]].flat();p.forEach(function(m,x){var _;s.push((_={mKey:Cf(p,i,x)},_[t]=t?f[t]:String(v),_[i]=m,_))});var y=[f[a]].flat();y.forEach(function(m,x){var _;s.push((_={tKey:Cf(y,a,x)},_[t]=t?f[t]:String(v),_[a]=m,_))}),l.push(f[n],f[i],f[a])});var u=Math.min.apply(Math,l.flat(Infinity)),c=Math.max.apply(Math,l.flat(Infinity));return u=u>0?0:u,o==="vertical"&&s.reverse(),{min:u,max:c,ds:s}}function yA(e){var r=e.chart,t=e.options,i=t.bulletStyle,n=t.targetField,a=t.rangeField,o=t.measureField,s=t.xField,l=t.color,u=t.layout,c=t.size,f=t.label,v=Af(t),d=v.min,p=v.max,y=v.ds;r.data(y);var m=O({},e,{options:{xField:s,yField:a,seriesField:"rKey",isStack:!0,label:(0,h.get)(f,"range"),interval:{color:(0,h.get)(l,"range"),style:(0,h.get)(i,"range"),size:(0,h.get)(c,"range")}}});Fe(m),r.geometries[0].tooltip(!1);var x=O({},e,{options:{xField:s,yField:o,seriesField:"mKey",isStack:!0,label:(0,h.get)(f,"measure"),interval:{color:(0,h.get)(l,"measure"),style:(0,h.get)(i,"measure"),size:(0,h.get)(c,"measure")}}});Fe(x);var _=O({},e,{options:{xField:s,yField:n,seriesField:"tKey",label:(0,h.get)(f,"target"),point:{color:(0,h.get)(l,"target"),style:(0,h.get)(i,"target"),size:(0,h.isFunction)((0,h.get)(c,"target"))?function(w){return(0,h.get)(c,"target")(w)/2}:(0,h.get)(c,"target")/2,shape:u==="horizontal"?"line":"hyphen"}}});return Ge(_),u==="horizontal"&&r.coordinate().transpose(),(0,g.__assign)((0,g.__assign)({},e),{ext:{data:{min:d,max:p}}})}function Mf(e){var r,t,i=e.options,n=e.ext,a=i.xAxis,o=i.yAxis,s=i.targetField,l=i.rangeField,u=i.measureField,c=i.xField,f=n.data;return Et(he((r={},r[c]=a,r[u]=o,r),(t={},t[u]={min:f==null?void 0:f.min,max:f==null?void 0:f.max,sync:!0},t[s]={sync:"".concat(u)},t[l]={sync:"".concat(u)},t)))(e)}function mA(e){var r=e.chart,t=e.options,i=t.xAxis,n=t.yAxis,a=t.xField,o=t.measureField,s=t.rangeField,l=t.targetField;return r.axis("".concat(s),!1),r.axis("".concat(l),!1),i===!1?r.axis("".concat(a),!1):r.axis("".concat(a),i),n===!1?r.axis("".concat(o),!1):r.axis("".concat(o),n),e}function xA(e){var r=e.chart,t=e.options,i=t.legend;return r.removeInteraction("legend-filter"),r.legend(i),r.legend("rKey",!1),r.legend("mKey",!1),r.legend("tKey",!1),e}function _A(e){var r=e.chart,t=e.options,i=t.label,n=t.measureField,a=t.targetField,o=t.rangeField,s=r.geometries,l=s[0],u=s[1],c=s[2];return(0,h.get)(i,"range")?l.label("".concat(o),(0,g.__assign)({layout:[{type:"limit-in-plot"}]},be(i.range))):l.label(!1),(0,h.get)(i,"measure")?u.label("".concat(n),(0,g.__assign)({layout:[{type:"limit-in-plot"}]},be(i.measure))):u.label(!1),(0,h.get)(i,"target")?c.label("".concat(a),(0,g.__assign)({layout:[{type:"limit-in-plot"}]},be(i.target))):c.label(!1),e}function wA(e){Et(yA,Mf,mA,xA,Xt,_A,me,oe,Qt)(e)}var bA=O({},kt.getDefaultOptions(),{layout:"horizontal",size:{range:30,measure:20,target:20},xAxis:{tickLine:!1,line:null},bulletStyle:{range:{fillOpacity:.5}},label:{measure:{position:"right"}},tooltip:{showMarkers:!1}}),cI=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.type="bullet",t}return r.getDefaultOptions=function(){return bA},r.prototype.changeData=function(t){this.updateOption({data:t});var i=Af(this.options),n=i.min,a=i.max,o=i.ds;Mf({options:this.options,ext:{data:{min:n,max:a}},chart:this.chart}),this.chart.changeData(o)},r.prototype.getSchemaAdaptor=function(){return wA},r.prototype.getDefaultOptions=function(){return r.getDefaultOptions()},r}(kt),SA={y:0,nodeWidthRatio:.05,weight:!1,nodePaddingRatio:.1,id:function(e){return e.id},source:function(e){return e.source},target:function(e){return e.target},sourceWeight:function(e){return e.value||1},targetWeight:function(e){return e.value||1},sortBy:null};function CA(e,r,t){(0,h.forIn)(e,function(i,n){i.inEdges=r.filter(function(a){return"".concat(t.target(a))==="".concat(n)}),i.outEdges=r.filter(function(a){return"".concat(t.source(a))==="".concat(n)}),i.edges=i.outEdges.concat(i.inEdges),i.frequency=i.edges.length,i.value=0,i.inEdges.forEach(function(a){i.value+=t.targetWeight(a)}),i.outEdges.forEach(function(a){i.value+=t.sourceWeight(a)})})}function AA(e,r){var t={weight:function(n,a){return a.value-n.value},frequency:function(n,a){return a.frequency-n.frequency},id:function(n,a){return"".concat(r.id(n)).localeCompare("".concat(r.id(a)))}},i=t[r.sortBy];!i&&(0,h.isFunction)(r.sortBy)&&(i=r.sortBy),i&&e.sort(i)}function MA(e,r){var t=e.length;if(!t)throw new TypeError("Invalid nodes: it's empty!");if(r.weight){var i=r.nodePaddingRatio;if(i<0||i>=1)throw new TypeError("Invalid nodePaddingRatio: it must be in range [0, 1)!");var n=i/(2*t),a=r.nodeWidthRatio;if(a<=0||a>=1)throw new TypeError("Invalid nodeWidthRatio: it must be in range (0, 1)!");var o=0;e.forEach(function(l){o+=l.value}),e.forEach(function(l){l.weight=l.value/o,l.width=l.weight*(1-i),l.height=a}),e.forEach(function(l,u){for(var c=0,f=u-1;f>=0;f--)c+=e[f].width+2*n;var v=l.minX=n+c,d=l.maxX=l.minX+l.width,p=l.minY=r.y-a/2,y=l.maxY=p+a;l.x=[v,d,d,v],l.y=[p,p,y,y]})}else{var s=1/t;e.forEach(function(l,u){l.x=(u+.5)*s,l.y=r.y})}return e}function FA(e,r,t){if(t.weight){var i={};(0,h.forIn)(e,function(n,a){i[a]=n.value}),r.forEach(function(n){var a=t.source(n),o=t.target(n),s=e[a],l=e[o];if(s&&l){var u=i[a],c=t.sourceWeight(n),f=s.minX+(s.value-u)/s.value*s.width,v=f+c/s.value*s.width;i[a]-=c;var d=i[o],p=t.targetWeight(n),y=l.minX+(l.value-d)/l.value*l.width,m=y+p/l.value*l.width;i[o]-=p;var x=t.y;n.x=[f,v,y,m],n.y=[x,x,x,x],n.source=s,n.target=l}})}else r.forEach(function(n){var a=e[t.source(n)],o=e[t.target(n)];a&&o&&(n.x=[a.x,o.x],n.y=[a.y,o.y],n.source=a,n.target=o)});return r}function EA(e){return(0,h.assign)({},SA,e)}function TA(e,r){var t=EA(e),i={},n=r.nodes,a=r.links;n.forEach(function(l){var u=t.id(l);i[u]=l}),CA(i,a,t),AA(n,t);var o=MA(n,t),s=FA(i,a,t);return{nodes:o,links:s}}var Ff="x",Ef="y",Tf="name",Lf="source",LA={nodeStyle:{opacity:1,fillOpacity:1,lineWidth:1},edgeStyle:{opacity:.5,lineWidth:2},label:{fields:["x","name"],callback:function(e,r){var t=(e[0]+e[1])/2,i=t>.5?-4:4;return{offsetX:i,content:r}},labelEmit:!0,style:{fill:"#8c8c8c"}},tooltip:{showTitle:!1,showMarkers:!1,fields:["source","target","value","isNode"],showContent:function(e){return!(0,h.get)(e,[0,"data","isNode"])},formatter:function(e){var r=e.source,t=e.target,i=e.value;return{name:"".concat(r," -> ").concat(t),value:i}}},interactions:[{type:"element-active"}],weight:!0,nodePaddingRatio:.1,nodeWidthRatio:.05};function IA(e){var r=e.options,t=r.data,i=r.sourceField,n=r.targetField,a=r.weightField,o=r.nodePaddingRatio,s=r.nodeWidthRatio,l=r.rawFields,u=l===void 0?[]:l,c=sh(t,i,n,a),f=TA({weight:!0,nodePaddingRatio:o,nodeWidthRatio:s},c),v=f.nodes,d=f.links,p=v.map(function(m){return(0,g.__assign)((0,g.__assign)({},$t(m,(0,g.__spreadArray)(["id","x","y","name"],u,!0))),{isNode:!0})}),y=d.map(function(m){return(0,g.__assign)((0,g.__assign)({source:m.source.name,target:m.target.name,name:m.source.name||m.target.name},$t(m,(0,g.__spreadArray)(["x","y","value"],u,!0))),{isNode:!1})});return(0,g.__assign)((0,g.__assign)({},e),{ext:(0,g.__assign)((0,g.__assign)({},e.ext),{chordData:{nodesData:p,edgesData:y}})})}function OA(e){var r,t=e.chart;return t.scale((r={x:{sync:!0,nice:!0},y:{sync:!0,nice:!0,max:1}},r[Tf]={sync:"color"},r[Lf]={sync:"color"},r)),e}function PA(e){var r=e.chart;return r.axis(!1),e}function kA(e){var r=e.chart;return r.legend(!1),e}function DA(e){var r=e.chart,t=e.options,i=t.tooltip;return r.tooltip(i),e}function BA(e){var r=e.chart;return r.coordinate("polar").reflect("y"),e}function RA(e){var r=e.chart,t=e.options,i=e.ext.chordData.nodesData,n=t.nodeStyle,a=t.label,o=t.tooltip,s=r.createView();return s.data(i),_a({chart:s,options:{xField:Ff,yField:Ef,seriesField:Tf,polygon:{style:n},label:a,tooltip:o}}),e}function NA(e){var r=e.chart,t=e.options,i=e.ext.chordData.edgesData,n=t.edgeStyle,a=t.tooltip,o=r.createView();o.data(i);var s={xField:Ff,yField:Ef,seriesField:Lf,edge:{style:n,shape:"arc"},tooltip:a};return wh({chart:o,options:s}),e}function zA(e){var r=e.chart,t=e.options,i=t.animation;return ln(r,i,tb(r)),e}function VA(e){return Et(Xt,IA,BA,OA,PA,kA,DA,NA,RA,oe,Lr,zA)(e)}var hI=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.type="chord",t}return r.getDefaultOptions=function(){return LA},r.prototype.getDefaultOptions=function(){return r.getDefaultOptions()},r.prototype.getSchemaAdaptor=function(){return VA},r}(kt),GA=["x","y","r","name","value","path","depth"],WA={colorField:"name",autoFit:!0,pointStyle:{lineWidth:0,stroke:"#fff"},legend:!1,hierarchyConfig:{size:[1,1],padding:0},label:{fields:["name"],layout:{type:"limit-in-shape"}},tooltip:{showMarkers:!1,showTitle:!1},drilldown:{enabled:!1}},If=4,HA=0,Of=5,Pf="drilldown-bread-crumb",YA={position:"top-left",dividerText:"/",textStyle:{fontSize:12,fill:"rgba(0, 0, 0, 0.65)",cursor:"pointer"},activeTextStyle:{fill:"#87B5FF"}},pn="hierarchy-data-transform-params",XA=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.name="drill-down",t.historyCache=[],t.breadCrumbGroup=null,t.breadCrumbCfg=YA,t}return r.prototype.click=function(){var t=(0,h.get)(this.context,["event","data","data"]);if(!t)return!1;this.drill(t),this.drawBreadCrumb()},r.prototype.resetPosition=function(){if(!!this.breadCrumbGroup){var t=this.context.view.getCoordinate(),i=this.breadCrumbGroup,n=i.getBBox(),a=this.getButtonCfg().position,o={x:t.start.x,y:t.end.y-(n.height+Of*2)};t.isPolar&&(o={x:0,y:0}),a==="bottom-left"&&(o={x:t.start.x,y:t.start.y});var s=ke.transform(null,[["t",o.x+HA,o.y+n.height+Of]]);i.setMatrix(s)}},r.prototype.back=function(){(0,h.size)(this.historyCache)&&this.backTo(this.historyCache.slice(0,-1))},r.prototype.reset=function(){this.historyCache[0]&&this.backTo(this.historyCache.slice(0,1)),this.historyCache=[],this.hideCrumbGroup()},r.prototype.drill=function(t){var i=this.context.view,n=(0,h.get)(i,["interactions","drill-down","cfg","transformData"],function(u){return u}),a=n((0,g.__assign)({data:t.data},t[pn]));i.changeData(a);for(var o=[],s=t;s;){var l=s.data;o.unshift({id:"".concat(l.name,"_").concat(s.height,"_").concat(s.depth),name:l.name,children:n((0,g.__assign)({data:l},t[pn]))}),s=s.parent}this.historyCache=(this.historyCache||[]).slice(0,-1).concat(o)},r.prototype.backTo=function(t){if(!(!t||t.length<=0)){var i=this.context.view,n=(0,h.last)(t).children;i.changeData(n),t.length>1?(this.historyCache=t,this.drawBreadCrumb()):(this.historyCache=[],this.hideCrumbGroup())}},r.prototype.getButtonCfg=function(){var t=this.context.view,i=(0,h.get)(t,["interactions","drill-down","cfg","drillDownConfig"]);return O(this.breadCrumbCfg,i==null?void 0:i.breadCrumb,this.cfg)},r.prototype.drawBreadCrumb=function(){this.drawBreadCrumbGroup(),this.resetPosition(),this.breadCrumbGroup.show()},r.prototype.drawBreadCrumbGroup=function(){var t=this,i=this.getButtonCfg(),n=this.historyCache;this.breadCrumbGroup?this.breadCrumbGroup.clear():this.breadCrumbGroup=this.context.view.foregroundGroup.addGroup({name:Pf});var a=0;n.forEach(function(o,s){var l=t.breadCrumbGroup.addShape({type:"text",id:o.id,name:"".concat(Pf,"_").concat(o.name,"_text"),attrs:(0,g.__assign)((0,g.__assign)({text:s===0&&!(0,h.isNil)(i.rootText)?i.rootText:o.name},i.textStyle),{x:a,y:0})}),u=l.getBBox();if(a+=u.width+If,l.on("click",function(v){var d,p=v.target.get("id");if(p!==((d=(0,h.last)(n))===null||d===void 0?void 0:d.id)){var y=n.slice(0,n.findIndex(function(m){return m.id===p})+1);t.backTo(y)}}),l.on("mouseenter",function(v){var d,p=v.target.get("id");p!==((d=(0,h.last)(n))===null||d===void 0?void 0:d.id)?l.attr(i.activeTextStyle):l.attr({cursor:"default"})}),l.on("mouseleave",function(){l.attr(i.textStyle)}),s0&&t*t>i*i+n*n}function Ts(e,r){for(var t=0;tl?(n=(u+l-a)/(2*u),s=Math.sqrt(Math.max(0,l/u-n*n)),t.x=e.x-n*i-s*o,t.y=e.y-n*o+s*i):(n=(u+a-l)/(2*u),s=Math.sqrt(Math.max(0,a/u-n*n)),t.x=r.x+n*i-s*o,t.y=r.y+n*o+s*i)):(t.x=r.x+t.r,t.y=r.y)}function Nf(e,r){var t=e.r+r.r-1e-6,i=r.x-e.x,n=r.y-e.y;return t>0&&t*t>i*i+n*n}function zf(e){var r=e._,t=e.next._,i=r.r+t.r,n=(r.x*t.r+t.x*r.r)/i,a=(r.y*t.r+t.y*r.r)/i;return n*n+a*a}function La(e){this._=e,this.next=null,this.previous=null}function Vf(e){if(!(n=(e=UA(e)).length))return 0;var r,t,i,n,a,o,s,l,u,c,f;if(r=e[0],r.x=0,r.y=0,!(n>1))return r.r;if(t=e[1],r.x=-t.r,t.x=r.r,t.y=0,!(n>2))return r.r+t.r;Rf(t,r,i=e[2]),r=new La(r),t=new La(t),i=new La(i),r.next=i.previous=t,t.next=r.previous=i,i.next=t.previous=r;t:for(s=3;s=0;)r+=t[i].value;e.value=r}function rM(){return this.eachAfter(eM)}var iM=M(64254);function Yf(e,r){var t=typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=(0,iM.Z)(e))||r&&e&&typeof e.length=="number"){t&&(e=t);var i=0,n=function(){};return{s:n,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(u){throw u},f:n}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a=!0,o=!1,s;return{s:function(){t=t.call(e)},n:function(){var u=t.next();return a=u.done,u},e:function(u){o=!0,s=u},f:function(){try{!a&&t.return!=null&&t.return()}finally{if(o)throw s}}}}function nM(e,r){var t=-1,i=Yf(this),n;try{for(i.s();!(n=i.n()).done;){var a=n.value;e.call(r,a,++t,this)}}catch(o){i.e(o)}finally{i.f()}return this}function aM(e,r){for(var t=this,i=[t],n,a,o=-1;t=i.pop();)if(e.call(r,t,++o,this),n=t.children)for(a=n.length-1;a>=0;--a)i.push(n[a]);return this}function oM(e,r){for(var t=this,i=[t],n=[],a,o,s,l=-1;t=i.pop();)if(n.push(t),a=t.children)for(o=0,s=a.length;o=0;)t+=i[n].value;r.value=t})}function uM(e){return this.eachBefore(function(r){r.children&&r.children.sort(e)})}function cM(e){for(var r=this,t=hM(r,e),i=[r];r!==t;)r=r.parent,i.push(r);for(var n=i.length;e!==t;)i.splice(n,0,e),e=e.parent;return i}function hM(e,r){if(e===r)return e;var t=e.ancestors(),i=r.ancestors(),n=null;for(e=t.pop(),r=i.pop();e===r;)n=e,e=t.pop(),r=i.pop();return n}function fM(){for(var e=this,r=[e];e=e.parent;)r.push(e);return r}function vM(){return Array.from(this)}function dM(){var e=[];return this.eachBefore(function(r){r.children||e.push(r)}),e}function gM(){var e=this,r=[];return e.each(function(t){t!==e&&r.push({source:t.parent,target:t})}),r}var Xf=M(39428),pM=(0,Xf.Z)().mark(Uf);function Uf(){var e,r,t,i,n,a;return(0,Xf.Z)().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:e=this,t=[e];case 1:r=t.reverse(),t=[];case 2:if(!(e=r.pop())){s.next=8;break}return s.next=5,e;case 5:if(i=e.children)for(n=0,a=i.length;n=0;--s)n.push(a=o[s]=new Ei(o[s])),a.parent=i,a.depth=i.depth+1;return t.eachBefore(jf)}function yM(){return Fi(this).eachBefore(_M)}function mM(e){return e.children}function xM(e){return Array.isArray(e)?e[1]:null}function _M(e){e.data.value!==void 0&&(e.value=e.data.value),e.data=e.data.data}function jf(e){var r=0;do e.height=r;while((e=e.parent)&&e.height<++r)}function Ei(e){this.data=e,this.depth=this.height=0,this.parent=null}Ei.prototype=Fi.prototype=(0,tM.Z)({constructor:Ei,count:rM,each:nM,eachAfter:oM,eachBefore:aM,find:sM,sum:lM,sort:uM,path:cM,ancestors:fM,descendants:vM,leaves:dM,links:gM,copy:yM},Symbol.iterator,Uf);var Zf="nodeIndex",qf="childNodeCount",Is="nodeAncestor",Os="Invalid field: it must be a string!";function Ps(e,r){var t=e.field,i=e.fields;if((0,h.isString)(t))return t;if((0,h.isArray)(t))return console.warn(Os),t[0];if(console.warn("".concat(Os," will try to get fields instead.")),(0,h.isString)(i))return i;if((0,h.isArray)(i)&&i.length)return i[0];if(r)return r;throw new TypeError(Os)}function ks(e){var r=[];if(e&&e.each){var t,i;e.each(function(n){var a,o;n.parent!==t?(t=n.parent,i=0):i+=1;var s=(0,h.filter)((((a=n.ancestors)===null||a===void 0?void 0:a.call(n))||[]).map(function(l){return r.find(function(u){return u.name===l.name})||l}),function(l){var u=l.depth;return u>0&&u1;)c="".concat((u=f.parent.data)===null||u===void 0?void 0:u.name," / ").concat(c),f=f.parent;if(a&&l.depth>2)return null;var v=O({},l.data,(0,g.__assign)((0,g.__assign)((0,g.__assign)({},$t(l.data,n)),{path:c}),l));v.ext=t,v[pn]={hierarchyConfig:t,rawFields:n,enableDrillDown:a},s.push(v)}),s}function $f(e,r,t){var i=hs([e,r]),n=i[0],a=i[1],o=i[2],s=i[3],l=t.width,u=t.height,c=l-(s+a),f=u-(n+o),v=Math.min(c,f),d=(c-v)/2,p=(f-v)/2,y=n+p,m=a+d,x=o+p,_=s+d,w=[y,m,x,_],b=v<0?0:v;return{finalPadding:w,finalSize:b}}function SM(e){var r=e.chart,t=Math.min(r.viewBBox.width,r.viewBBox.height);return O({options:{size:function(i){var n=i.r;return n*t}}},e)}function CM(e){var r=e.options,t=e.chart,i=t.viewBBox,n=r.padding,a=r.appendPadding,o=r.drilldown,s=a;if(o==null?void 0:o.enabled){var l=va(t.appendPadding,(0,h.get)(o,["breadCrumb","position"]));s=hs([l,a])}var u=$f(n,s,i).finalPadding;return t.padding=u,t.appendPadding=0,e}function AM(e){var r=e.chart,t=e.options,i=r.padding,n=r.appendPadding,a=t.color,o=t.colorField,s=t.pointStyle,l=t.hierarchyConfig,u=t.sizeField,c=t.rawFields,f=c===void 0?[]:c,v=t.drilldown,d=Kf({data:t.data,hierarchyConfig:l,enableDrillDown:v==null?void 0:v.enabled,rawFields:f});r.data(d);var p=r.viewBBox,y=$f(i,n,p).finalSize,m=function(x){var _=x.r;return _*y};return u&&(m=function(x){return x[u]*y}),Ge(O({},e,{options:{xField:"x",yField:"y",seriesField:o,sizeField:u,rawFields:(0,g.__spreadArray)((0,g.__spreadArray)([],GA,!0),f,!0),point:{color:a,style:s,shape:"circle",size:m}}})),e}function MM(e){return Et(he({},{x:{min:0,max:1,minLimit:0,maxLimit:1,nice:!0},y:{min:0,max:1,minLimit:0,maxLimit:1,nice:!0}}))(e)}function FM(e){var r=e.chart,t=e.options,i=t.tooltip;if(i===!1)r.tooltip(!1);else{var n=i;(0,h.get)(i,"fields")||(n=O({},{customItems:function(a){return a.map(function(o){var s=(0,h.get)(r.getOptions(),"scales"),l=(0,h.get)(s,["name","formatter"],function(c){return c}),u=(0,h.get)(s,["value","formatter"],function(c){return c});return(0,g.__assign)((0,g.__assign)({},o),{name:l(o.data.name),value:u(o.data.value)})})}},n)),r.tooltip(n)}return e}function EM(e){var r=e.chart;return r.axis(!1),e}function TM(e){var r=e.drilldown,t=e.interactions,i=t===void 0?[]:t;return(r==null?void 0:r.enabled)?O({},e,{interactions:(0,g.__spreadArray)((0,g.__spreadArray)([],i,!0),[{type:"drill-down",cfg:{drillDownConfig:r,transformData:Kf,enableDrillDown:!0}}],!1)}):e}function LM(e){var r=e.chart,t=e.options;return oe({chart:r,options:TM(t)}),e}function IM(e){return Et(Ve("pointStyle"),SM,CM,Xt,MM,AM,EM,Ur,FM,LM,Qt,le())(e)}function Qf(e){var r=(0,h.get)(e,["event","data","data"],{});return(0,h.isArray)(r.children)&&r.children.length>0}function Jf(e){var r=e.view.getCoordinate(),t=r.innerRadius;if(t){var i=e.event,n=i.x,a=i.y,o=r.center,s=o.x,l=o.y,u=r.getRadius()*t,c=Math.sqrt(Math.pow(s-n,2)+Math.pow(l-a,2));return c-1?rb(p,f,v):!0}),e.getRootView().render(!0)}};function DM(e){var r,t=e.options,i=t.geometryOptions,n=i===void 0?[]:i,a=t.xField,o=t.yField,s=(0,h.every)(n,function(l){var u=l.geometry;return u===ti.Line||u===void 0});return O({},{options:{geometryOptions:[],meta:(r={},r[a]={type:"cat",sync:!0,range:s?[0,1]:void 0},r),tooltip:{showMarkers:s,showCrosshairs:s,shared:!0,crosshairs:{type:"x"}},interactions:s?[{type:"legend-visible-filter"}]:[{type:"legend-visible-filter"},{type:"active-region"}],legend:{position:"top-left"}}},e,{options:{yAxis:rv(o,t.yAxis),geometryOptions:[ev(a,o[0],n[0]),ev(a,o[1],n[1])],annotations:rv(o,t.annotations)}})}function BM(e){var r,t,i=e.chart,n=e.options,a=n.geometryOptions,o={line:0,column:1},s=[{type:(r=a[0])===null||r===void 0?void 0:r.geometry,id:We},{type:(t=a[1])===null||t===void 0?void 0:t.geometry,id:He}];return s.sort(function(l,u){return-o[l.type]+o[u.type]}).forEach(function(l){return i.createView({id:l.id})}),e}function RM(e){var r=e.chart,t=e.options,i=t.xField,n=t.yField,a=t.geometryOptions,o=t.data,s=t.tooltip,l=[(0,g.__assign)((0,g.__assign)({},a[0]),{id:We,data:o[0],yField:n[0]}),(0,g.__assign)((0,g.__assign)({},a[1]),{id:He,data:o[1],yField:n[1]})];return l.forEach(function(u){var c=u.id,f=u.data,v=u.yField,d=Bs(u)&&u.isPercent,p=d?Ch(f,v,i,v):f,y=Nt(r,c).data(p),m=d?(0,g.__assign)({formatter:function(x){return{name:x[u.seriesField]||v,value:(Number(x[v])*100).toFixed(2)+"%"}}},s):s;kM({chart:y,options:{xField:i,yField:v,tooltip:m,geometryOption:u}})}),e}function NM(e){var r,t=e.chart,i=e.options,n=i.geometryOptions,a=((r=t.getTheme())===null||r===void 0?void 0:r.colors10)||[],o=0;return t.once("beforepaint",function(){(0,h.each)(n,function(s,l){var u=Nt(t,l===0?We:He);if(!s.color){var c=u.getGroupScales(),f=(0,h.get)(c,[0,"values","length"],1),v=a.slice(o,o+f).concat(l===0?[]:a);u.geometries.forEach(function(d){s.seriesField?d.color(s.seriesField,v):d.color(v[0])}),o+=f}}),t.render(!0)}),e}function zM(e){var r,t,i=e.chart,n=e.options,a=n.xAxis,o=n.yAxis,s=n.xField,l=n.yField;return he((r={},r[s]=a,r[l[0]]=o[0],r))(O({},e,{chart:Nt(i,We)})),he((t={},t[s]=a,t[l[1]]=o[1],t))(O({},e,{chart:Nt(i,He)})),e}function VM(e){var r=e.chart,t=e.options,i=Nt(r,We),n=Nt(r,He),a=t.xField,o=t.yField,s=t.xAxis,l=t.yAxis;return r.axis(a,!1),r.axis(o[0],!1),r.axis(o[1],!1),i.axis(a,s),i.axis(o[0],iv(l[0],Ti.Left)),n.axis(a,!1),n.axis(o[1],iv(l[1],Ti.Right)),e}function GM(e){var r=e.chart,t=e.options,i=t.tooltip,n=Nt(r,We),a=Nt(r,He);return r.tooltip(i),n.tooltip({shared:!0}),a.tooltip({shared:!0}),e}function WM(e){var r=e.chart;return oe(O({},e,{chart:Nt(r,We)})),oe(O({},e,{chart:Nt(r,He)})),e}function HM(e){var r=e.chart,t=e.options,i=t.annotations,n=(0,h.get)(i,[0]),a=(0,h.get)(i,[1]);return le(n)(O({},e,{chart:Nt(r,We),options:{annotations:n}})),le(a)(O({},e,{chart:Nt(r,He),options:{annotations:a}})),e}function YM(e){var r=e.chart;return Xt(O({},e,{chart:Nt(r,We)})),Xt(O({},e,{chart:Nt(r,He)})),Xt(e),e}function XM(e){var r=e.chart;return Qt(O({},e,{chart:Nt(r,We)})),Qt(O({},e,{chart:Nt(r,He)})),e}function UM(e){var r=e.chart,t=e.options,i=t.yAxis;return jr(O({},e,{chart:Nt(r,We),options:{yAxis:i[0]}})),jr(O({},e,{chart:Nt(r,He),options:{yAxis:i[1]}})),e}function jM(e){var r=e.chart,t=e.options,i=t.legend,n=t.geometryOptions,a=t.yField,o=t.data,s=Nt(r,We),l=Nt(r,He);if(i===!1)r.legend(!1);else if((0,h.isObject)(i)&&i.custom===!0)r.legend(i);else{var u=(0,h.get)(n,[0,"legend"],i),c=(0,h.get)(n,[1,"legend"],i);r.once("beforepaint",function(){var f=o[0].length?nv({view:s,geometryOption:n[0],yField:a[0],legend:u}):[],v=o[1].length?nv({view:l,geometryOption:n[1],yField:a[1],legend:c}):[];r.legend(O({},i,{custom:!0,items:f.concat(v)}))}),n[0].seriesField&&s.legend(n[0].seriesField,u),n[1].seriesField&&l.legend(n[1].seriesField,c),r.on("legend-item:click",function(f){var v=(0,h.get)(f,"gEvent.delegateObject",{});if(v&&v.item){var d=v.item,p=d.value,y=d.isGeometry,m=d.viewId;if(y){var x=(0,h.findIndex)(a,function(b){return b===p});if(x>-1){var _=(0,h.get)(Nt(r,m),"geometries");(0,h.each)(_,function(b){b.changeVisible(!v.item.unchecked)})}}else{var w=(0,h.get)(r.getController("legend"),"option.items",[]);(0,h.each)(r.views,function(b){var S=b.getGroupScales();(0,h.each)(S,function(C){C.values&&C.values.indexOf(p)>-1&&b.filter(C.field,function(A){var F=(0,h.find)(w,function(P){return P.value===A});return!F.unchecked})}),r.render(!0)})}}})}return e}function ZM(e){var r=e.chart,t=e.options,i=t.slider,n=Nt(r,We),a=Nt(r,He);return i&&(n.option("slider",i),n.on("slider:valuechanged",function(o){var s=o.event,l=s.value,u=s.originValue;(0,h.isEqual)(l,u)||av(a,l)}),r.once("afterpaint",function(){if(!(0,h.isBoolean)(i)){var o=i.start,s=i.end;(o||s)&&av(a,[o,s])}})),e}function qM(e){return Et(DM,BM,YM,RM,zM,VM,UM,GM,WM,HM,XM,NM,jM,ZM)(e)}var vI=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.type="dual-axes",t}return r.prototype.getDefaultOptions=function(){return O({},e.prototype.getDefaultOptions.call(this),{yAxis:[],syncViewPadding:!0})},r.prototype.getSchemaAdaptor=function(){return qM},r}(kt);function KM(e,r){var t=r.data,i=r.coordinate,n=r.interactions,a=r.annotations,o=r.animation,s=r.tooltip,l=r.axes,u=r.meta,c=r.geometries;t&&e.data(t);var f={};l&&(0,h.each)(l,function(v,d){f[d]=$t(v,Be)}),f=O({},u,f),e.scale(f),i&&e.coordinate(i),l===!1?e.axis(!1):(0,h.each)(l,function(v,d){e.axis(d,v)}),(0,h.each)(c,function(v){var d=Re({chart:e,options:v}).ext,p=v.adjust;p&&d.geometry.adjust(p)}),(0,h.each)(n,function(v){v.enable===!1?e.removeInteraction(v.type):e.interaction(v.type,v.cfg)}),(0,h.each)(a,function(v){e.annotation()[v.type]((0,g.__assign)({},v))}),ln(e,o),s?(e.interaction("tooltip"),e.tooltip(s)):s===!1&&e.removeInteraction("tooltip")}function $M(e){var r=e.chart,t=e.options,i=t.type,n=t.data,a=t.fields,o=t.eachView,s=(0,h.omit)(t,["type","data","fields","eachView","axes","meta","tooltip","coordinate","theme","legend","interactions","annotations"]);return r.data(n),r.facet(i,(0,g.__assign)((0,g.__assign)({},s),{fields:a,eachView:function(l,u){var c=o(l,u);if(c.geometries)KM(l,c);else{var f=c,v=f.options;v.tooltip&&l.interaction("tooltip"),Fs(f.type,l,v)}}})),e}function QM(e){var r=e.chart,t=e.options,i=t.axes,n=t.meta,a=t.tooltip,o=t.coordinate,s=t.theme,l=t.legend,u=t.interactions,c=t.annotations,f={};return i&&(0,h.each)(i,function(v,d){f[d]=$t(v,Be)}),f=O({},n,f),r.scale(f),r.coordinate(o),i?(0,h.each)(i,function(v,d){r.axis(d,v)}):r.axis(!1),a?(r.interaction("tooltip"),r.tooltip(a)):a===!1&&r.removeInteraction("tooltip"),r.legend(l),s&&r.theme(s),(0,h.each)(u,function(v){v.enable===!1?r.removeInteraction(v.type):r.interaction(v.type,v.cfg)}),(0,h.each)(c,function(v){r.annotation()[v.type]((0,g.__assign)({},v))}),e}function JM(e){return Et(Xt,$M,QM)(e)}var tF={title:{style:{fontSize:12,fill:"rgba(0,0,0,0.65)"}},rowTitle:{style:{fontSize:12,fill:"rgba(0,0,0,0.65)"}},columnTitle:{style:{fontSize:12,fill:"rgba(0,0,0,0.65)"}}},dI=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.type="area",t}return r.getDefaultOptions=function(){return tF},r.prototype.getDefaultOptions=function(){return r.getDefaultOptions()},r.prototype.getSchemaAdaptor=function(){return JM},r}(kt);function eF(e){var r=e.chart,t=e.options,i=t.data,n=t.type,a=t.xField,o=t.yField,s=t.colorField,l=t.sizeField,u=t.sizeRatio,c=t.shape,f=t.color,v=t.tooltip,d=t.heatmapStyle,p=t.meta;r.data(i);var y="polygon";n==="density"&&(y="heatmap");var m=Ye(v,[a,o,s]),x=m.fields,_=m.formatter,w=1;return(u||u===0)&&(!c&&!l?console.warn("sizeRatio is not in effect: Must define shape or sizeField first"):u<0||u>1?console.warn("sizeRatio is not in effect: It must be a number in [0,1]"):w=u),Re(O({},e,{options:{type:y,colorField:s,tooltipFields:x,shapeField:l||"",label:void 0,mapping:{tooltip:_,shape:c&&(l?function(b){var S=i.map(function(P){return P[l]}),C=(p==null?void 0:p[l])||{},A=C.min,F=C.max;return A=(0,h.isNumber)(A)?A:Math.min.apply(Math,S),F=(0,h.isNumber)(F)?F:Math.max.apply(Math,S),[c,((0,h.get)(b,l)-A)/(F-A),w]}:function(){return[c,1,w]}),color:f||s&&r.getTheme().sequenceColors.join("-"),style:d}}})),e}function rF(e){var r,t=e.options,i=t.xAxis,n=t.yAxis,a=t.xField,o=t.yField;return Et(he((r={},r[a]=i,r[o]=n,r)))(e)}function iF(e){var r=e.chart,t=e.options,i=t.xAxis,n=t.yAxis,a=t.xField,o=t.yField;return i===!1?r.axis(a,!1):r.axis(a,i),n===!1?r.axis(o,!1):r.axis(o,n),e}function nF(e){var r=e.chart,t=e.options,i=t.legend,n=t.colorField,a=t.sizeField,o=t.sizeLegend,s=i!==!1;return n&&r.legend(n,s?i:!1),a&&r.legend(a,o===void 0?i:o),!s&&!o&&r.legend(!1),e}function aF(e){var r=e.chart,t=e.options,i=t.label,n=t.colorField,a=t.type,o=Me(r,a==="density"?"heatmap":"polygon");if(!i)o.label(!1);else if(n){var s=i.callback,l=(0,g.__rest)(i,["callback"]);o.label({fields:[n],callback:s,cfg:be(l)})}return e}function oF(e){var r,t,i=e.chart,n=e.options,a=n.coordinate,o=n.reflect,s=O({actions:[]},a!=null?a:{type:"rect"});return o&&((t=(r=s.actions)===null||r===void 0?void 0:r.push)===null||t===void 0||t.call(r,["reflect",o])),i.coordinate(s),e}function sF(e){return Et(Xt,Ve("heatmapStyle"),rF,oF,eF,iF,nF,me,aF,le(),oe,Qt,Lr)(e)}var lF=O({},kt.getDefaultOptions(),{type:"polygon",legend:!1,coordinate:{type:"rect"},xAxis:{tickLine:null,line:null,grid:{alignTick:!1,line:{style:{lineWidth:1,lineDash:null,stroke:"#f0f0f0"}}}},yAxis:{grid:{alignTick:!1,line:{style:{lineWidth:1,lineDash:null,stroke:"#f0f0f0"}}}}});Zt("polygon","circle",{draw:function(e,r){var t,i,n=e.x,a=e.y,o=this.parsePoints(e.points),s=Math.abs(o[2].x-o[1].x),l=Math.abs(o[1].y-o[0].y),u=Math.min(s,l)/2,c=Number(e.shape[1]),f=Number(e.shape[2]),v=Math.sqrt(f),d=u*v*Math.sqrt(c),p=((t=e.style)===null||t===void 0?void 0:t.fill)||e.color||((i=e.defaultStyle)===null||i===void 0?void 0:i.fill),y=r.addShape("circle",{attrs:(0,g.__assign)((0,g.__assign)((0,g.__assign)({x:n,y:a,r:d},e.defaultStyle),e.style),{fill:p})});return y}}),Zt("polygon","square",{draw:function(e,r){var t,i,n=e.x,a=e.y,o=this.parsePoints(e.points),s=Math.abs(o[2].x-o[1].x),l=Math.abs(o[1].y-o[0].y),u=Math.min(s,l),c=Number(e.shape[1]),f=Number(e.shape[2]),v=Math.sqrt(f),d=u*v*Math.sqrt(c),p=((t=e.style)===null||t===void 0?void 0:t.fill)||e.color||((i=e.defaultStyle)===null||i===void 0?void 0:i.fill),y=r.addShape("rect",{attrs:(0,g.__assign)((0,g.__assign)((0,g.__assign)({x:n-d/2,y:a-d/2,width:d,height:d},e.defaultStyle),e.style),{fill:p})});return y}});var gI=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.type="heatmap",t}return r.getDefaultOptions=function(){return lF},r.prototype.getSchemaAdaptor=function(){return sF},r.prototype.getDefaultOptions=function(){return r.getDefaultOptions()},r}(kt),uF="liquid";function ov(e){return[{percent:e,type:uF}]}function cF(e){var r=e.chart,t=e.options,i=t.percent,n=t.liquidStyle,a=t.radius,o=t.outline,s=t.wave,l=t.shape,u=t.shapeStyle,c=t.animation;r.scale({percent:{min:0,max:1}}),r.data(ov(i));var f=t.color||r.getTheme().defaultColor,v=O({},e,{options:{xField:"type",yField:"percent",widthRatio:a,interval:{color:f,style:n,shape:"liquid-fill-gauge"}}}),d=Fe(v).ext,p=d.geometry,y=r.getTheme().background,m={percent:i,radius:a,outline:o,wave:s,shape:l,shapeStyle:u,background:y,animation:c};return p.customInfo(m),r.legend(!1),r.axis(!1),r.tooltip(!1),e}function sv(e,r){var t=e.chart,i=e.options,n=i.statistic,a=i.percent,o=i.meta;t.getController("annotation").clear(!0);var s=(0,h.get)(o,["percent","formatter"])||function(u){return"".concat((u*100).toFixed(2),"%")},l=n.content;return l&&(l=O({},l,{content:(0,h.isNil)(l.content)?s(a):l.content})),da(t,{statistic:(0,g.__assign)((0,g.__assign)({},n),{content:l}),plotType:"liquid"},{percent:a}),r&&t.render(!0),e}function hF(e){return Et(Xt,Ve("liquidStyle"),cF,sv,he({}),Qt,oe)(e)}var fF={radius:.9,statistic:{title:!1,content:{style:{opacity:.75,fontSize:"30px",lineHeight:"30px",textAlign:"center"}}},outline:{border:2,distance:0},wave:{count:3,length:192},shape:"circle"},lv=5e3;function uv(e,r,t){return e+(r-e)*t}function vF(e){var r=(0,g.__assign)({opacity:1},e.style);return e.color&&!r.fill&&(r.fill=e.color),r}function dF(e){var r={fill:"#fff",fillOpacity:0,lineWidth:4},t=(0,h.mix)({},r,e.style);return e.color&&!t.stroke&&(t.stroke=e.color),(0,h.isNumber)(e.opacity)&&(t.opacity=t.strokeOpacity=e.opacity),t}function gF(e,r,t,i){return r===0?[[e+1/2*t/Math.PI/2,i/2],[e+1/2*t/Math.PI,i],[e+t/4,i]]:r===1?[[e+1/2*t/Math.PI/2*(Math.PI-2),i],[e+1/2*t/Math.PI/2*(Math.PI-1),i/2],[e+t/4,0]]:r===2?[[e+1/2*t/Math.PI/2,-i/2],[e+1/2*t/Math.PI,-i],[e+t/4,-i]]:[[e+1/2*t/Math.PI/2*(Math.PI-2),-i],[e+1/2*t/Math.PI/2*(Math.PI-1),-i/2],[e+t/4,0]]}function pF(e,r,t,i,n,a,o){for(var s=Math.ceil(2*e/t*4)*4,l=[],u=i;u<-Math.PI*2;)u+=Math.PI*2;for(;u>0;)u-=Math.PI*2;u=u/Math.PI/2*t;var c=a-e+u-e*2;l.push(["M",c,r]);for(var f=0,v=0;v0){var Z=r.addGroup({name:"waves"}),vt=Z.setClip({type:"path",attrs:{path:V}});yF(w.x,w.y,1-e.points[1].y,m,A,Z,vt,C*2,x,f)}return r.addShape("path",{name:"distance",attrs:{path:V,fill:"transparent",lineWidth:p+y*2,stroke:c==="transparent"?"#fff":c}}),r.addShape("path",{name:"wrap",attrs:(0,h.mix)(F,{path:V,fill:"transparent",lineWidth:p})}),r}});var pI=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.type="liquid",t}return r.getDefaultOptions=function(){return fF},r.prototype.getDefaultOptions=function(){return r.getDefaultOptions()},r.prototype.changeData=function(t){this.chart.emit(L.BEFORE_CHANGE_DATA,ue.fromData(this.chart,L.BEFORE_CHANGE_DATA,null)),this.updateOption({percent:t}),this.chart.data(ov(t)),sv({chart:this.chart,options:this.options},!0),this.chart.emit(L.AFTER_CHANGE_DATA,ue.fromData(this.chart,L.AFTER_CHANGE_DATA,null))},r.prototype.getSchemaAdaptor=function(){return hF},r}(kt);function SF(e){var r=e.chart,t=e.options,i=t.data,n=t.lineStyle,a=t.color,o=t.point,s=t.area;r.data(i);var l=O({},e,{options:{line:{style:n,color:a},point:o&&(0,g.__assign)({color:a},o),area:s&&(0,g.__assign)({color:a},s),label:void 0}}),u=O({},l,{options:{tooltip:!1}}),c=(o==null?void 0:o.state)||t.state,f=O({},l,{options:{tooltip:!1,state:c}});return wi(l),Ge(f),xa(u),e}function CF(e){var r,t=e.options,i=t.xAxis,n=t.yAxis,a=t.xField,o=t.yField;return Et(he((r={},r[a]=i,r[o]=n,r)))(e)}function AF(e){var r=e.chart,t=e.options,i=t.radius,n=t.startAngle,a=t.endAngle;return r.coordinate("polar",{radius:i,startAngle:n,endAngle:a}),e}function MF(e){var r=e.chart,t=e.options,i=t.xField,n=t.xAxis,a=t.yField,o=t.yAxis;return r.axis(i,n),r.axis(a,o),e}function FF(e){var r=e.chart,t=e.options,i=t.label,n=t.yField,a=Me(r,"line");if(!i)a.label(!1);else{var o=i.callback,s=(0,g.__rest)(i,["callback"]);a.label({fields:[n],callback:o,cfg:be(s)})}return e}function EF(e){return Et(SF,CF,Xt,AF,MF,Ur,me,FF,oe,Qt,le())(e)}var TF=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return Object.defineProperty(r.prototype,"name",{get:function(){return"radar-tooltip"},enumerable:!1,configurable:!0}),r.prototype.getTooltipItems=function(t){var i=this.getTooltipCfg(),n=i.shared,a=i.title,o=e.prototype.getTooltipItems.call(this,t);if(o.length>0){var s=this.view.geometries[0],l=s.dataArray,u=o[0].name,c=[];return l.forEach(function(f){f.forEach(function(v){var d=ke.getTooltipItems(v,s),p=d[0];if(!n&&p&&p.name===u){var y=(0,h.isNil)(a)?u:a;c.push((0,g.__assign)((0,g.__assign)({},p),{name:p.title,title:y}))}else if(n&&p){var y=(0,h.isNil)(a)?p.name||u:a;c.push((0,g.__assign)((0,g.__assign)({},p),{name:p.title,title:y}))}})}),c}return[]},r}(Eu);Vr("radar-tooltip",TF);var LF=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.init=function(){var t=this.context.view;t.removeInteraction("tooltip")},r.prototype.show=function(){var t=this.context.event,i=this.getTooltipController();i.showTooltip({x:t.x,y:t.y})},r.prototype.hide=function(){var t=this.getTooltipController();t.hideTooltip()},r.prototype.getTooltipController=function(){var t=this.context.view;return t.getController("radar-tooltip")},r}(ne);xt("radar-tooltip",LF),Ot("radar-tooltip",{start:[{trigger:"plot:mousemove",action:"radar-tooltip:show"}],end:[{trigger:"plot:mouseleave",action:"radar-tooltip:hide"}]});var yI=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.type="radar",t}return r.prototype.changeData=function(t){this.updateOption({data:t}),this.chart.changeData(t)},r.prototype.getDefaultOptions=function(){return O({},e.prototype.getDefaultOptions.call(this),{xAxis:{label:{offset:15},grid:{line:{type:"line"}}},yAxis:{grid:{line:{type:"circle"}}},legend:{position:"top"},tooltip:{shared:!0,showCrosshairs:!0,showMarkers:!0,crosshairs:{type:"xy",line:{style:{stroke:"#565656",lineDash:[4]}},follow:!0}}})},r.prototype.getSchemaAdaptor=function(){return EF},r}(kt);function IF(e,r,t){var i=t.map(function(o){return o[r]}).filter(function(o){return o!==void 0}),n=i.length>0?Math.max.apply(Math,i):0,a=Math.abs(e)%360;return a?n*360/a:n}function OF(e,r,t){var i=[];return e.forEach(function(n){var a=i.find(function(o){return o[r]===n[r]});a?a[t]+=n[t]||null:i.push((0,g.__assign)({},n))}),i}function PF(e){var r=e.chart,t=e.options,i=t.barStyle,n=t.color,a=t.tooltip,o=t.colorField,s=t.type,l=t.xField,u=t.yField,c=t.data,f=t.shape,v=xi(c,u);r.data(v);var d=O({},e,{options:{tooltip:a,seriesField:o,interval:{style:i,color:n,shape:f||(s==="line"?"line":"intervel")},minColumnWidth:t.minBarWidth,maxColumnWidth:t.maxBarWidth,columnBackground:t.barBackground}});return Fe(d),s==="line"&&Ge({chart:r,options:{xField:l,yField:u,seriesField:o,point:{shape:"circle",color:n}}}),e}function hv(e){var r,t=e.options,i=t.yField,n=t.xField,a=t.data,o=t.isStack,s=t.isGroup,l=t.colorField,u=t.maxAngle,c=o&&!s&&l?OF(a,n,i):a,f=xi(c,i);return Et(he((r={},r[i]={min:0,max:IF(u,i,f)},r)))(e)}function kF(e){var r=e.chart,t=e.options,i=t.radius,n=t.innerRadius,a=t.startAngle,o=t.endAngle;return r.coordinate({type:"polar",cfg:{radius:i,innerRadius:n,startAngle:a,endAngle:o}}).transpose(),e}function DF(e){var r=e.chart,t=e.options,i=t.xField,n=t.xAxis;return r.axis(i,n),e}function BF(e){var r=e.chart,t=e.options,i=t.label,n=t.yField,a=Me(r,"interval");if(!i)a.label(!1);else{var o=i.callback,s=(0,g.__rest)(i,["callback"]);a.label({fields:[n],callback:o,cfg:(0,g.__assign)((0,g.__assign)({},be(s)),{type:"polar"})})}return e}function RF(e){return Et(Ve("barStyle"),PF,hv,DF,kF,oe,Qt,Xt,me,Ur,le(),BF)(e)}var NF=O({},kt.getDefaultOptions(),{interactions:[{type:"element-active"}],legend:!1,tooltip:{showMarkers:!1},xAxis:{grid:null,tickLine:null,line:null},maxAngle:240}),mI=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.type="radial-bar",t}return r.getDefaultOptions=function(){return NF},r.prototype.changeData=function(t){this.updateOption({data:t}),hv({chart:this.chart,options:this.options}),this.chart.changeData(t)},r.prototype.getDefaultOptions=function(){return r.getDefaultOptions()},r.prototype.getSchemaAdaptor=function(){return RF},r}(kt);function zF(e){var r=e.chart,t=e.options,i=t.data,n=t.sectorStyle,a=t.shape,o=t.color;return r.data(i),Et(Fe)(O({},e,{options:{marginRatio:1,interval:{style:n,color:o,shape:a}}})),e}function VF(e){var r=e.chart,t=e.options,i=t.label,n=t.xField,a=Me(r,"interval");if(i===!1)a.label(!1);else if((0,h.isObject)(i)){var o=i.callback,s=i.fields,l=(0,g.__rest)(i,["callback","fields"]),u=l.offset,c=l.layout;(u===void 0||u>=0)&&(c=c?(0,h.isArray)(c)?c:[c]:[],l.layout=(0,h.filter)(c,function(f){return f.type!=="limit-in-shape"}),l.layout.length||delete l.layout),a.label({fields:s||[n],callback:o,cfg:be(l)})}else fr(qe.WARN,i===null,"the label option must be an Object."),a.label({fields:[n]});return e}function GF(e){var r=e.chart,t=e.options,i=t.legend,n=t.seriesField;return i===!1?r.legend(!1):n&&r.legend(n,i),e}function WF(e){var r=e.chart,t=e.options,i=t.radius,n=t.innerRadius,a=t.startAngle,o=t.endAngle;return r.coordinate({type:"polar",cfg:{radius:i,innerRadius:n,startAngle:a,endAngle:o}}),e}function HF(e){var r,t=e.options,i=t.xAxis,n=t.yAxis,a=t.xField,o=t.yField;return Et(he((r={},r[a]=i,r[o]=n,r)))(e)}function YF(e){var r=e.chart,t=e.options,i=t.xAxis,n=t.yAxis,a=t.xField,o=t.yField;return i?r.axis(a,i):r.axis(a,!1),n?r.axis(o,n):r.axis(o,!1),e}function XF(e){Et(Ve("sectorStyle"),zF,HF,VF,WF,YF,GF,me,oe,Qt,Xt,le(),Lr)(e)}var UF=O({},kt.getDefaultOptions(),{xAxis:!1,yAxis:!1,legend:{position:"right",radio:{}},sectorStyle:{stroke:"#fff",lineWidth:1},label:{layout:{type:"limit-in-shape"}},tooltip:{shared:!0,showMarkers:!1},interactions:[{type:"active-region"}]}),xI=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.type="rose",t}return r.getDefaultOptions=function(){return UF},r.prototype.changeData=function(t){this.updateOption({data:t}),this.chart.changeData(t)},r.prototype.getDefaultOptions=function(){return r.getDefaultOptions()},r.prototype.getSchemaAdaptor=function(){return XF},r}(kt),fv="x",vv="y",dv="name",Oa="nodes",Pa="edges";function jF(e,r,t){var i=[];return e.forEach(function(n){var a=n[r],o=n[t];i.includes(a)||i.push(a),i.includes(o)||i.push(o)}),i}function ZF(e,r,t,i){var n={};return r.forEach(function(a){n[a]={},r.forEach(function(o){n[a][o]=0})}),e.forEach(function(a){n[a[t]][a[i]]=1}),n}function qF(e,r,t){if(!(0,h.isArray)(e))return[];var i=[],n=jF(e,r,t),a=ZF(e,n,r,t),o={};n.forEach(function(l){o[l]=0});function s(l){o[l]=1,n.forEach(function(u){if(a[l][u]!=0)if(o[u]==1)i.push("".concat(l,"_").concat(u));else{if(o[u]==-1)return;s(u)}}),o[l]=-1}return n.forEach(function(l){o[l]!=-1&&s(l)}),i.length!==0&&console.warn("sankey data contains circle, ".concat(i.length," records removed."),i),e.filter(function(l){return i.findIndex(function(u){return u==="".concat(l[r],"_").concat(l[t])})<0})}function KF(e){return e.target.depth}function $F(e){return e.depth}function QF(e,r){return r-1-e.height}function Rs(e,r){return e.sourceLinks.length?e.depth:r-1}function JF(e){return e.targetLinks.length?e.depth:e.sourceLinks.length?(0,h.minBy)(e.sourceLinks,KF)-1:0}function ka(e){return function(){return e}}function Ns(e,r){for(var t=0,i=0;imt)throw new Error("circular link");ut=pt,pt=new Set}if(u)for(var Gt=Math.max(zs(at,function(Ht){return Ht.depth})+1,0),Wt=void 0,Dt=0;Dtmt)throw new Error("circular link");ut=pt,pt=new Set}}function b(G){for(var at=G.nodes,mt=Math.max(zs(at,function(ye){return ye.depth})+1,0),ut=(t-e-n)/(mt-1),pt=new Array(mt).fill(0).map(function(){return[]}),At=0,Gt=at;At0){var Ii=(Ht/Jt-Dt.y0)*at;Dt.y0+=Ii,Dt.y1+=Ii,Z(Dt)}}c===void 0&&At.sort(Da),At.length&&P(At,mt)}}function F(G,at,mt){for(var ut=G.length,pt=ut-2;pt>=0;--pt){for(var At=G[pt],Gt=0,Wt=At;Gt0){var Ii=(Ht/Jt-Dt.y0)*at;Dt.y0+=Ii,Dt.y1+=Ii,Z(Dt)}}c===void 0&&At.sort(Da),At.length&&P(At,mt)}}function P(G,at){var mt=G.length>>1,ut=G[mt];V(G,ut.y0-o,mt-1,at),I(G,ut.y1+o,mt+1,at),V(G,i,G.length-1,at),I(G,r,0,at)}function I(G,at,mt,ut){for(;mt1e-6&&(pt.y0+=At,pt.y1+=At),at=pt.y1+o}}function V(G,at,mt,ut){for(;mt>=0;--mt){var pt=G[mt],At=(pt.y1-at)*ut;At>1e-6&&(pt.y0-=At,pt.y1-=At),at=pt.y0-o}}function Z(G){var at=G.sourceLinks,mt=G.targetLinks;if(f===void 0){for(var ut=0,pt=mt;ut "+n,value:a}}},nodeWidthRatio:.008,nodePaddingRatio:.01,animation:{appear:{animation:"wave-in"},enter:{animation:"wave-in"}}}},r.prototype.changeData=function(t){this.updateOption({data:t});var i=xv(this.options,this.chart.width,this.chart.height),n=i.nodes,a=i.edges,o=Nt(this.chart,Oa),s=Nt(this.chart,Pa);o.changeData(n),s.changeData(a)},r.prototype.getSchemaAdaptor=function(){return mE},r.prototype.getDefaultOptions=function(){return r.getDefaultOptions()},r}(kt),Gs="ancestor-node",_v="value",mn="path",_E=[mn,Zf,Is,qf,"name","depth","height"],wE=O({},kt.getDefaultOptions(),{innerRadius:0,radius:.85,hierarchyConfig:{field:"value"},tooltip:{shared:!0,showMarkers:!1,offset:20,showTitle:!1},legend:!1,sunburstStyle:{lineWidth:.5,stroke:"#FFF"},drilldown:{enabled:!0}});function wv(e){e.x0=Math.round(e.x0),e.y0=Math.round(e.y0),e.x1=Math.round(e.x1),e.y1=Math.round(e.y1)}function xn(e,r,t,i,n){for(var a=e.children,o,s=-1,l=a.length,u=e.value&&(i-r)/e.value;++s0)throw new Error("cycle");return l}return t.id=function(i){return arguments.length?(e=Ia(i),t):e},t.parentId=function(i){return arguments.length?(r=Ia(i),t):r},t}function BE(e,r){return e.parent===r.parent?1:2}function Ws(e){var r=e.children;return r?r[0]:e.t}function Hs(e){var r=e.children;return r?r[r.length-1]:e.t}function RE(e,r,t){var i=t/(r.i-e.i);r.c-=i,r.s+=t,e.c+=i,r.z+=t,r.m+=t}function NE(e){for(var r=0,t=0,i=e.children,n=i.length,a;--n>=0;)a=i[n],a.z+=r,a.m+=r,r+=a.s+(t+=a.c)}function zE(e,r,t){return e.a.parent===r.parent?e.a:t}function Ba(e,r){this._=e,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=r}Ba.prototype=Object.create(Ei.prototype);function VE(e){for(var r=new Ba(e,0),t,i=[r],n,a,o,s;t=i.pop();)if(a=t._.children)for(t.children=new Array(s=a.length),o=s-1;o>=0;--o)i.push(n=t.children[o]=new Ba(a[o],o)),n.parent=t;return(r.parent=new Ba(null,0)).children=[r],r}function GE(){var e=BE,r=1,t=1,i=null;function n(u){var c=VE(u);if(c.eachAfter(a),c.parent.m=-c.z,c.eachBefore(o),i)u.eachBefore(l);else{var f=u,v=u,d=u;u.eachBefore(function(_){_.xv.x&&(v=_),_.depth>d.depth&&(d=_)});var p=f===v?1:e(f,v)/2,y=p-f.x,m=r/(v.x+p+y),x=t/(d.depth||1);u.eachBefore(function(_){_.x=(_.x+y)*m,_.y=_.depth*x})}return u}function a(u){var c=u.children,f=u.parent.children,v=u.i?f[u.i-1]:null;if(c){NE(u);var d=(c[0].z+c[c.length-1].z)/2;v?(u.z=v.z+e(u._,v._),u.m=u.z-d):u.z=d}else v&&(u.z=v.z+e(u._,v._));u.parent.A=s(u,v,u.parent.A||f[0])}function o(u){u._.x=u.z+u.parent.m,u.m+=u.parent.m}function s(u,c,f){if(c){for(var v=u,d=u,p=c,y=v.parent.children[0],m=v.m,x=d.m,_=p.m,w=y.m,b;p=Hs(p),v=Ws(v),p&&v;)y=Ws(y),d=Hs(d),d.a=u,b=p.z+_-v.z-m+e(p._,v._),b>0&&(RE(zE(p,u,f),u,b),m+=b,x+=b),_+=p.m,m+=v.m,w+=y.m,x+=d.m;p&&!Hs(d)&&(d.t=p,d.m+=_-x),v&&!Ws(y)&&(y.t=v,y.m+=m-w,f=u)}return f}function l(u){u.x*=r,u.y=u.depth*t}return n.separation=function(u){return arguments.length?(e=u,n):e},n.size=function(u){return arguments.length?(i=!1,r=+u[0],t=+u[1],n):i?null:[r,t]},n.nodeSize=function(u){return arguments.length?(i=!0,r=+u[0],t=+u[1],n):i?[r,t]:null},n}function Ra(e,r,t,i,n){for(var a=e.children,o,s=-1,l=a.length,u=e.value&&(n-t)/e.value;++s_&&(_=u),C=m*m*S,w=Math.max(_/C,C/x),w>b){m-=u;break}b=w}o.push(l={value:m,dice:d1?i:1)},t}(Cv);function Fv(){var e=Mv,r=!1,t=1,i=1,n=[0],a=Jr,o=Jr,s=Jr,l=Jr,u=Jr;function c(v){return v.x0=v.y0=0,v.x1=t,v.y1=i,v.eachBefore(f),n=[0],r&&v.eachBefore(wv),v}function f(v){var d=n[v.depth],p=v.x0+d,y=v.y0+d,m=v.x1-d,x=v.y1-d;m=v-1){var _=a[f];_.x0=p,_.y0=y,_.x1=m,_.y1=x;return}for(var w=u[f],b=d/2+w,S=f+1,C=v-1;S>>1;u[A]x-y){var I=d?(p*P+m*F)/d:m;c(f,S,F,p,y,I,x),c(S,v,P,I,y,m,x)}else{var V=d?(y*P+x*F)/d:x;c(f,S,F,p,y,m,V),c(S,v,P,p,V,m,x)}}}function HE(e,r,t,i,n){(e.depth&1?Ra:xn)(e,r,t,i,n)}var YE=function e(r){function t(i,n,a,o,s){if((l=i._squarify)&&l.ratio===r)for(var l,u,c,f,v=-1,d,p=l.length,y=i.value;++v1?i:1)},t}(Cv),XE={field:"value",tile:"treemapSquarify",size:[1,1],round:!1,ignoreParentValue:!0,padding:0,paddingInner:0,paddingOuter:0,paddingTop:0,paddingRight:0,paddingBottom:0,paddingLeft:0,as:["x","y"],sort:function(e,r){return r.value-e.value},ratio:.5*(1+Math.sqrt(5))};function UE(e,r){return e==="treemapSquarify"?K[e].ratio(r):K[e]}function Ev(e,r){r=(0,h.assign)({},XE,r);var t=r.as;if(!(0,h.isArray)(t)||t.length!==2)throw new TypeError('Invalid as: it must be an array with 2 strings (e.g. [ "x", "y" ])!');var i;try{i=Ps(r)}catch(u){console.warn(u)}var n=UE(r.tile,r.ratio),a=function(u){return Fv().tile(n).size(r.size).round(r.round).padding(r.padding).paddingInner(r.paddingInner).paddingOuter(r.paddingOuter).paddingTop(r.paddingTop).paddingRight(r.paddingRight).paddingBottom(r.paddingBottom).paddingLeft(r.paddingLeft)(Fi(u).sum(function(c){return r.ignoreParentValue&&c.children?0:c[i]}).sort(r.sort))},o=a(e),s=t[0],l=t[1];return o.each(function(u){u[s]=[u.x0,u.x1,u.x1,u.x0],u[l]=[u.y1,u.y1,u.y0,u.y0],["x0","x1","y0","y1"].forEach(function(c){t.indexOf(c)===-1&&delete u[c]})}),ks(o)}function Tv(e){var r=e.data,t=e.colorField,i=e.rawFields,n=e.hierarchyConfig,a=n===void 0?{}:n,o=a.activeDepth,s={partition:SE,treemap:Ev},l=e.seriesField,u=e.type||"partition",c=s[u](r,(0,g.__assign)((0,g.__assign)({field:l||"value"},(0,h.omit)(a,["activeDepth"])),{type:"hierarchy.".concat(u),as:["x","y"]})),f=[];return c.forEach(function(v){var d,p,y,m,x,_;if(v.depth===0||o>0&&v.depth>o)return null;for(var w=v.data.name,b=(0,g.__assign)({},v);b.depth>1;)w="".concat((p=b.parent.data)===null||p===void 0?void 0:p.name," / ").concat(w),b=b.parent;var S=(0,g.__assign)((0,g.__assign)((0,g.__assign)({},$t(v.data,(0,g.__spreadArray)((0,g.__spreadArray)([],i||[],!0),[a.field],!1))),(d={},d[mn]=w,d[Gs]=b.data.name,d)),v);l&&(S[l]=v.data[l]||((m=(y=v.parent)===null||y===void 0?void 0:y.data)===null||m===void 0?void 0:m[l])),t&&(S[t]=v.data[t]||((_=(x=v.parent)===null||x===void 0?void 0:x.data)===null||_===void 0?void 0:_[t])),S.ext=a,S[pn]={hierarchyConfig:a,colorField:t,rawFields:i},f.push(S)}),f}function jE(e){var r=e.chart,t=e.options,i=t.color,n=t.colorField,a=n===void 0?Gs:n,o=t.sunburstStyle,s=t.rawFields,l=s===void 0?[]:s,u=t.shape,c=Tv(t);r.data(c);var f;return o&&(f=function(v){return O({},{fillOpacity:Math.pow(.85,v.depth)},(0,h.isFunction)(o)?o(v):o)}),_a(O({},e,{options:{xField:"x",yField:"y",seriesField:a,rawFields:(0,h.uniq)((0,g.__spreadArray)((0,g.__spreadArray)([],_E,!0),l,!0)),polygon:{color:i,style:f,shape:u}}})),e}function ZE(e){var r=e.chart;return r.axis(!1),e}function qE(e){var r=e.chart,t=e.options,i=t.label,n=Me(r,"polygon");if(!i)n.label(!1);else{var a=i.fields,o=a===void 0?["name"]:a,s=i.callback,l=(0,g.__rest)(i,["fields","callback"]);n.label({fields:o,callback:s,cfg:be(l)})}return e}function KE(e){var r=e.chart,t=e.options,i=t.innerRadius,n=t.radius,a=t.reflect,o=r.coordinate({type:"polar",cfg:{innerRadius:i,radius:n}});return a&&o.reflect(a),e}function $E(e){var r,t=e.options,i=t.hierarchyConfig,n=t.meta;return Et(he({},(r={},r[_v]=(0,h.get)(n,(0,h.get)(i,["field"],"value")),r)))(e)}function QE(e){var r=e.chart,t=e.options,i=t.tooltip;if(i===!1)r.tooltip(!1);else{var n=i;(0,h.get)(i,"fields")||(n=O({},{customItems:function(a){return a.map(function(o){var s=(0,h.get)(r.getOptions(),"scales"),l=(0,h.get)(s,[mn,"formatter"],function(c){return c}),u=(0,h.get)(s,[_v,"formatter"],function(c){return c});return(0,g.__assign)((0,g.__assign)({},o),{name:l(o.data[mn]),value:u(o.data.value)})})}},n)),r.tooltip(n)}return e}function JE(e){var r=e.drilldown,t=e.interactions,i=t===void 0?[]:t;return(r==null?void 0:r.enabled)?O({},e,{interactions:(0,g.__spreadArray)((0,g.__spreadArray)([],i,!0),[{type:"drill-down",cfg:{drillDownConfig:r,transformData:Tv}}],!1)}):e}function t1(e){var r=e.chart,t=e.options,i=t.drilldown;return oe({chart:r,options:JE(t)}),(i==null?void 0:i.enabled)&&(r.appendPadding=va(r.appendPadding,(0,h.get)(i,["breadCrumb","position"]))),e}function e1(e){return Et(Xt,Ve("sunburstStyle"),jE,ZE,$E,Ur,KE,QE,qE,t1,Qt,le())(e)}var wI=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.type="sunburst",t}return r.getDefaultOptions=function(){return wE},r.prototype.getDefaultOptions=function(){return r.getDefaultOptions()},r.prototype.getSchemaAdaptor=function(){return e1},r.SUNBURST_ANCESTOR_FIELD=Gs,r.SUNBURST_PATH_FIELD=mn,r.NODE_ANCESTORS_FIELD=Is,r}(kt);function Lv(e,r){if(!!(0,h.isArray)(e))return e.find(function(t){return t.type===r})}function Iv(e,r){var t=Lv(e,r);return t&&t.enable!==!1}function Ys(e){var r=e.interactions,t=e.drilldown;return(0,h.get)(t,"enabled")||Iv(r,"treemap-drill-down")}function r1(e){var r=e.interactions["drill-down"];if(!!r){var t=r.context.actions.find(function(i){return i.name==="drill-down-action"});t.reset()}}function Xs(e){var r=e.data,t=e.colorField,i=e.enableDrillDown,n=e.hierarchyConfig,a=Ev(r,(0,g.__assign)((0,g.__assign)({},n),{type:"hierarchy.treemap",field:"value",as:["x","y"]})),o=[];return a.forEach(function(s){if(s.depth===0||i&&s.depth!==1||!i&&s.children)return null;var l=s.ancestors().map(function(v){return{data:v.data,height:v.height,value:v.value}}),u=i&&(0,h.isArray)(r.path)?l.concat(r.path.slice(1)):l,c=Object.assign({},s.data,(0,g.__assign)({x:s.x,y:s.y,depth:s.depth,value:s.value,path:u},s));if(!s.data[t]&&s.parent){var f=s.ancestors().find(function(v){return v.data[t]});c[t]=f==null?void 0:f.data[t]}else c[t]=s.data[t];c[pn]={hierarchyConfig:n,colorField:t,enableDrillDown:i},o.push(c)}),o}function i1(e){var r=e.options,t=r.colorField;return O({options:{rawFields:["value"],tooltip:{fields:["name","value",t,"path"],formatter:function(i){return{name:i.name,value:i.value}}}}},e)}function n1(e){var r=e.chart,t=e.options,i=t.color,n=t.colorField,a=t.rectStyle,o=t.hierarchyConfig,s=t.rawFields,l=Xs({data:t.data,colorField:t.colorField,enableDrillDown:Ys(t),hierarchyConfig:o});return r.data(l),_a(O({},e,{options:{xField:"x",yField:"y",seriesField:n,rawFields:s,polygon:{color:i,style:a}}})),r.coordinate().reflect("y"),e}function a1(e){var r=e.chart;return r.axis(!1),e}function o1(e){var r=e.drilldown,t=e.interactions,i=t===void 0?[]:t,n=Ys(e);return n?O({},e,{interactions:(0,g.__spreadArray)((0,g.__spreadArray)([],i,!0),[{type:"drill-down",cfg:{drillDownConfig:r,transformData:Xs}}],!1)}):e}function s1(e){var r=e.chart,t=e.options,i=t.interactions,n=t.drilldown;oe({chart:r,options:o1(t)});var a=Lv(i,"view-zoom");a&&(a.enable!==!1?r.getCanvas().on("mousewheel",function(s){s.preventDefault()}):r.getCanvas().off("mousewheel"));var o=Ys(t);return o&&(r.appendPadding=va(r.appendPadding,(0,h.get)(n,["breadCrumb","position"]))),e}function l1(e){return Et(i1,Xt,Ve("rectStyle"),n1,a1,Ur,me,s1,Qt,le())(e)}var u1={colorField:"name",rectStyle:{lineWidth:1,stroke:"#fff"},hierarchyConfig:{tile:"treemapSquarify"},label:{fields:["name"],layout:{type:"limit-in-shape"}},tooltip:{showMarkers:!1,showTitle:!1},drilldown:{enabled:!1,breadCrumb:{position:"bottom-left",rootText:"\u521D\u59CB",dividerText:"/",textStyle:{fontSize:12,fill:"rgba(0, 0, 0, 0.65)",cursor:"pointer"},activeTextStyle:{fill:"#87B5FF"}}}},bI=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.type="treemap",t}return r.getDefaultOptions=function(){return u1},r.prototype.changeData=function(t){var i=this.options,n=i.colorField,a=i.interactions,o=i.hierarchyConfig;this.updateOption({data:t});var s=Xs({data:t,colorField:n,enableDrillDown:Iv(a,"treemap-drill-down"),hierarchyConfig:o});this.chart.changeData(s),r1(this.chart)},r.prototype.getDefaultOptions=function(){return r.getDefaultOptions()},r.prototype.getSchemaAdaptor=function(){return l1},r}(kt),yr="id",Us="path",c1={appendPadding:[10,0,20,0],blendMode:"multiply",tooltip:{showTitle:!1,showMarkers:!1,fields:["id","size"],formatter:function(e){return{name:e.id,value:e.size}}},legend:{position:"top-left"},label:{style:{textAlign:"center",fill:"#fff"}},interactions:[{type:"legend-filter",enable:!1}],state:{active:{style:{stroke:"#000"}},selected:{style:{stroke:"#000",lineWidth:2}},inactive:{style:{fillOpacity:.3,strokeOpacity:.3}}},defaultInteractions:["tooltip","venn-legend-active"]};function Na(e){if(!!e){var r=e.geometries[0].elements;r.forEach(function(t){t.shape.toFront()})}}var h1=Yn("element-active"),f1=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.syncElementsPos=function(){Na(this.context.view)},r.prototype.active=function(){e.prototype.active.call(this),this.syncElementsPos()},r.prototype.toggle=function(){e.prototype.toggle.call(this),this.syncElementsPos()},r.prototype.reset=function(){e.prototype.reset.call(this),this.syncElementsPos()},r}(h1),v1=Yn("element-highlight"),d1=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.syncElementsPos=function(){Na(this.context.view)},r.prototype.highlight=function(){e.prototype.highlight.call(this),this.syncElementsPos()},r.prototype.toggle=function(){e.prototype.toggle.call(this),this.syncElementsPos()},r.prototype.clear=function(){e.prototype.clear.call(this),this.syncElementsPos()},r.prototype.reset=function(){e.prototype.reset.call(this),this.syncElementsPos()},r}(v1),g1=Yn("element-selected"),p1=Yn("element-single-selected"),y1=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.syncElementsPos=function(){Na(this.context.view)},r.prototype.selected=function(){e.prototype.selected.call(this),this.syncElementsPos()},r.prototype.toggle=function(){e.prototype.toggle.call(this),this.syncElementsPos()},r.prototype.reset=function(){e.prototype.reset.call(this),this.syncElementsPos()},r}(g1),m1=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.syncElementsPos=function(){Na(this.context.view)},r.prototype.selected=function(){e.prototype.selected.call(this),this.syncElementsPos()},r.prototype.toggle=function(){e.prototype.toggle.call(this),this.syncElementsPos()},r.prototype.reset=function(){e.prototype.reset.call(this),this.syncElementsPos()},r}(p1);xt("venn-element-active",f1),xt("venn-element-highlight",d1),xt("venn-element-selected",y1),xt("venn-element-single-selected",m1),Ot("venn-element-active",{start:[{trigger:"element:mouseenter",action:"venn-element-active:active"}],end:[{trigger:"element:mouseleave",action:"venn-element-active:reset"}]}),Ot("venn-element-highlight",{start:[{trigger:"element:mouseenter",action:"venn-element-highlight:highlight"}],end:[{trigger:"element:mouseleave",action:"venn-element-highlight:reset"}]}),Ot("venn-element-selected",{start:[{trigger:"element:click",action:"venn-element-selected:toggle"}],rollback:[{trigger:"dblclick",action:["venn-element-selected:reset"]}]}),Ot("venn-element-single-selected",{start:[{trigger:"element:click",action:"venn-element-single-selected:toggle"}],rollback:[{trigger:"dblclick",action:["venn-element-single-selected:reset"]}]}),Ot("venn-legend-active",{start:[{trigger:"legend-item:mouseenter",action:["list-active:active","venn-element-active:active"]}],end:[{trigger:"legend-item:mouseleave",action:["list-active:reset","venn-element-active:reset"]}]}),Ot("venn-legend-highlight",{start:[{trigger:"legend-item:mouseenter",action:["legend-item-highlight:highlight","venn-element-highlight:highlight"]}],end:[{trigger:"legend-item:mouseleave",action:["legend-item-highlight:reset","venn-element-highlight:reset"]}]});var x1=function(e){(0,g.__extends)(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}return r.prototype.getLabelPoint=function(t,i,n){var a=t.data,o=a.x,s=a.y,l=t.customLabelInfo,u=l.offsetX,c=l.offsetY;return{content:t.content[n],x:o+u,y:s+c}},r}(Qn);Qi("venn",x1);var _1=Array.isArray,w1=_1,_n=` -\v\f\r \xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029`,b1=new RegExp("([a-z])["+_n+",]*((-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?["+_n+"]*,?["+_n+"]*)+)","ig"),S1=new RegExp("(-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?)["+_n+"]*,?["+_n+"]*","ig");function C1(e){if(!e)return null;if(w1(e))return e;var r={a:7,c:6,o:2,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,u:3,z:0},t=[];return String(e).replace(b1,function(i,n,a){var o=[],s=n.toLowerCase();if(a.replace(S1,function(l,u){u&&o.push(+u)}),s==="m"&&o.length>2&&(t.push([n].concat(o.splice(0,2))),s="l",n=n==="m"?"l":"L"),s==="o"&&o.length===1&&t.push([n,o[0]]),s==="r")t.push([n].concat(o));else for(;o.length>=r[s]&&(t.push([n].concat(o.splice(0,r[s]))),!!r[s]););return""}),t}var A1=/[a-z]/;function Ov(e,r){return[r[0]+(r[0]-e[0]),r[1]+(r[1]-e[1])]}function SI(e){var r=parsePathString(e);if(!r||!r.length)return[["M",0,0]];for(var t=!1,i=0;i=0){t=!0;break}}if(!t)return r;var a=[],o=0,s=0,l=0,u=0,c=0,f,v,d=r[0];(d[0]==="M"||d[0]==="m")&&(o=+d[1],s=+d[2],l=o,u=s,c++,a[0]=["M",o,s]);for(var i=c,p=r.length;i1&&(a=1),a<-1&&(a=-1),n*Math.acos(a)},F1=function(e,r,t,i,n,a,o,s,l,u,c,f){var v=Math.pow(n,2),d=Math.pow(a,2),p=Math.pow(c,2),y=Math.pow(f,2),m=v*d-v*y-d*p;m<0&&(m=0),m/=v*y+d*p,m=Math.sqrt(m)*(o===s?-1:1);var x=m*n/a*f,_=m*-a/n*c,w=u*x-l*_+(e+t)/2,b=l*x+u*_+(r+i)/2,S=(c-x)/n,C=(f-_)/a,A=(-c-x)/n,F=(-f-_)/a,P=Pv(1,0,S,C),I=Pv(S,C,A,F);return s===0&&I>0&&(I-=wn),s===1&&I<0&&(I+=wn),[w,b,P,I]},E1=function(e){var r=e.px,t=e.py,i=e.cx,n=e.cy,a=e.rx,o=e.ry,s=e.xAxisRotation,l=s===void 0?0:s,u=e.largeArcFlag,c=u===void 0?0:u,f=e.sweepFlag,v=f===void 0?0:f,d=[];if(a===0||o===0)return[{x1:0,y1:0,x2:0,y2:0,x:i,y:n}];var p=Math.sin(l*wn/360),y=Math.cos(l*wn/360),m=y*(r-i)/2+p*(t-n)/2,x=-p*(r-i)/2+y*(t-n)/2;if(m===0&&x===0)return[{x1:0,y1:0,x2:0,y2:0,x:i,y:n}];a=Math.abs(a),o=Math.abs(o);var _=Math.pow(m,2)/Math.pow(a,2)+Math.pow(x,2)/Math.pow(o,2);_>1&&(a*=Math.sqrt(_),o*=Math.sqrt(_));var w=F1(r,t,i,n,a,o,c,v,p,y,m,x),b=w[0],S=w[1],C=w[2],A=w[3],F=Math.abs(A)/(wn/4);Math.abs(1-F)<1e-7&&(F=1);var P=Math.max(Math.ceil(F),1);A/=P;for(var I=0;I7){e[t].shift();for(var i=e[t],n=t;i.length;)r[t]="A",e.splice(n+=1,0,["C"].concat(i.splice(0,6)));e.splice(t,1)}}var kv=function(e,r,t,i,n){var a=-3*r+9*t-9*i+3*n,o=e*a+6*r-12*t+6*i;return e*o-3*r+3*t},Dv=function(e,r,t,i,n,a,o,s,l){l===null&&(l=1),l=l>1?1:l<0?0:l;for(var u=l/2,c=12,f=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],v=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],d=0,p=0;p0&&d<1&&l.push(d);continue}var y=f*f-4*v*c,m=Math.sqrt(y);if(!(y<0)){var x=(-f+m)/(2*c);x>0&&x<1&&l.push(x);var _=(-f-m)/(2*c);_>0&&_<1&&l.push(_)}}for(var w=l.length,b=w,S;w--;)d=l[w],S=1-d,u[0][w]=S*S*S*e+3*S*S*d*t+3*S*d*d*n+d*d*d*o,u[1][w]=S*S*S*r+3*S*S*d*i+3*S*d*d*a+d*d*d*s;return u[0][b]=e,u[1][b]=r,u[0][b+1]=o,u[1][b+1]=s,u[0].length=u[1].length=b+2,{min:{x:Math.min.apply(0,u[0]),y:Math.min.apply(0,u[1])},max:{x:Math.max.apply(0,u[0]),y:Math.max.apply(0,u[1])}}},I1=function(e,r,t,i,n,a,o,s){if(!(Math.max(e,t)Math.max(n,o)||Math.max(r,i)Math.max(a,s))){var l=(e*i-r*t)*(n-o)-(e-t)*(n*s-a*o),u=(e*i-r*t)*(a-s)-(r-i)*(n*s-a*o),c=(e-t)*(a-s)-(r-i)*(n-o);if(!!c){var f=l/c,v=u/c,d=+f.toFixed(2),p=+v.toFixed(2);if(!(d<+Math.min(e,t).toFixed(2)||d>+Math.max(e,t).toFixed(2)||d<+Math.min(n,o).toFixed(2)||d>+Math.max(n,o).toFixed(2)||p<+Math.min(r,i).toFixed(2)||p>+Math.max(r,i).toFixed(2)||p<+Math.min(a,s).toFixed(2)||p>+Math.max(a,s).toFixed(2)))return{x:f,y:v}}}},Pr=function(e,r,t){return r>=e.x&&r<=e.x+e.width&&t>=e.y&&t<=e.y+e.height},Zs=function(e,r,t,i){return e===null&&(e=r=t=i=0),r===null&&(r=e.y,t=e.width,i=e.height,e=e.x),{x:e,y:r,width:t,w:t,height:i,h:i,x2:e+t,y2:r+i,cx:e+t/2,cy:r+i/2,r1:Math.min(t,i)/2,r2:Math.max(t,i)/2,r0:Math.sqrt(t*t+i*i)/2,path:rectPath(e,r,t,i),vb:[e,r,t,i].join(" ")}},O1=function(e,r){return e=Zs(e),r=Zs(r),Pr(r,e.x,e.y)||Pr(r,e.x2,e.y)||Pr(r,e.x,e.y2)||Pr(r,e.x2,e.y2)||Pr(e,r.x,r.y)||Pr(e,r.x2,r.y)||Pr(e,r.x,r.y2)||Pr(e,r.x2,r.y2)||(e.xr.x||r.xe.x)&&(e.yr.y||r.ye.y)},Bv=function(e,r,t,i,n,a,o,s){isArray(e)||(e=[e,r,t,i,n,a,o,s]);var l=L1.apply(null,e);return Zs(l.min.x,l.min.y,l.max.x-l.min.x,l.max.y-l.min.y)},Rv=function(e,r,t,i,n,a,o,s,l){var u=1-l,c=Math.pow(u,3),f=Math.pow(u,2),v=l*l,d=v*l,p=c*e+f*3*l*t+u*3*l*l*n+d*o,y=c*r+f*3*l*i+u*3*l*l*a+d*s,m=e+2*l*(t-e)+v*(n-2*t+e),x=r+2*l*(i-r)+v*(a-2*i+r),_=t+2*l*(n-t)+v*(o-2*n+t),w=i+2*l*(a-i)+v*(s-2*a+i),b=u*e+l*t,S=u*r+l*i,C=u*n+l*o,A=u*a+l*s,F=90-Math.atan2(m-_,x-w)*180/Math.PI;return{x:p,y,m:{x:m,y:x},n:{x:_,y:w},start:{x:b,y:S},end:{x:C,y:A},alpha:F}},P1=function(e,r,t){var i=Bv(e),n=Bv(r);if(!O1(i,n))return t?0:[];for(var a=Dv.apply(0,e),o=Dv.apply(0,r),s=~~(a/8),l=~~(o/8),u=[],c=[],f={},v=t?0:[],d=0;d=0&&A<=1&&F>=0&&F<=1&&(t?v++:v.push({x:C.x,y:C.y,t1:A,t2:F}))}}return v},k1=function(e,r,t){e=path2Curve(e),r=path2Curve(r);for(var i,n,a,o,s,l,u,c,f,v,d=t?0:[],p=0,y=e.length;pr?r:e},lighten:function(e,r){return e>r?e:r},dodge:function(e,r){return e===255?255:(e=255*(r/255)/(1-e/255),e>255?255:e)},burn:function(e,r){return r===255?255:e===0?0:255*(1-Math.min(1,(1-r/255)/(e/255)))}},R1=function(e){if(!Nv[e])throw new Error("unknown blend mode "+e);return Nv[e]};function N1(e,r,t){t===void 0&&(t="normal");var i=B1(R1(t))(za(e),za(r)),n=za(e),a=n[0],o=n[1],s=n[2],l=n[3],u=za(r),c=u[0],f=u[1],v=u[2],d=u[3],p=Number((l+d*(1-l)).toFixed(2)),y=Math.round((l*(1-d)*(a/255)+l*d*(i[0]/255)+(1-l)*d*(c/255))/p*255),m=Math.round((l*(1-d)*(o/255)+l*d*(i[1]/255)+(1-l)*d*(f/255))/p*255),x=Math.round((l*(1-d)*(s/255)+l*d*(i[2]/255)+(1-l)*d*(v/255))/p*255);return"rgba(".concat(y,", ").concat(m,", ").concat(x,", ").concat(p,")")}function za(e){var r=e.replace("/s+/g",""),t;return typeof r=="string"&&!r.startsWith("rgba")&&!r.startsWith("#")?t=xr.rgb2arr(xr.toRGB(r)).concat([1]):(r.startsWith("rgba")&&(t=r.replace("rgba(","").replace(")","").split(",")),r.startsWith("#")&&(t=xr.rgb2arr(r).concat([1])),t.map(function(i,n){return n===3?Number(i):i|0}))}var ir=M(87026),zv=1e-10;function qs(e,r){var t=V1(e),i=t.filter(function(A){return z1(A,e)}),n=0,a=0,o,s=[];if(i.length>1){var l=Wv(i);for(o=0;o-1){var y=e[f.parentIndex[p]],m=Math.atan2(f.x-y.x,f.y-y.y),x=Math.atan2(c.x-y.x,c.y-y.y),_=x-m;_<0&&(_+=2*Math.PI);var w=x-_/2,b=Ke(v,{x:y.x+y.radius*Math.sin(w),y:y.y+y.radius*Math.cos(w)});b>y.radius*2&&(b=y.radius*2),(d===null||d.width>b)&&(d={circle:y,width:b,p1:f,p2:c})}d!==null&&(s.push(d),n+=Ks(d.circle.radius,d.width),c=f)}}else{var S=e[0];for(o=1;oMath.abs(S.radius-e[o].radius)){C=!0;break}C?n=a=0:(n=S.radius*S.radius*Math.PI,s.push({circle:S,p1:{x:S.x,y:S.y+S.radius},p2:{x:S.x-zv,y:S.y+S.radius},width:S.radius*2}))}return a/=2,r&&(r.area=n+a,r.arcArea=n,r.polygonArea=a,r.arcs=s,r.innerPoints=i,r.intersectionPoints=t),n+a}function z1(e,r){for(var t=0;tr[t].radius+zv)return!1;return!0}function V1(e){for(var r=[],t=0;t=e+r)return 0;if(t<=Math.abs(e-r))return Math.PI*Math.min(e,r)*Math.min(e,r);var i=e-(t*t-r*r+e*e)/(2*t),n=r-(t*t-e*e+r*r)/(2*t);return Ks(e,i)+Ks(r,n)}function Gv(e,r){var t=Ke(e,r),i=e.radius,n=r.radius;if(t>=i+n||t<=Math.abs(i-n))return[];var a=(i*i-n*n+t*t)/(2*t),o=Math.sqrt(i*i-a*a),s=e.x+a*(r.x-e.x)/t,l=e.y+a*(r.y-e.y)/t,u=-(r.y-e.y)*(o/t),c=-(r.x-e.x)*(o/t);return[{x:s+u,y:l-c},{x:s-u,y:l+c}]}function Wv(e){for(var r={x:0,y:0},t=0;t=o&&(a=t[i],o=s)}var l=(0,ir.nelderMead)(function(v){return-1*$s({x:v[0],y:v[1]},e,r)},[a.x,a.y],{maxIterations:500,minErrorDelta:1e-10}).x,u={x:l[0],y:l[1]},c=!0;for(i=0;ie[i].radius){c=!1;break}for(i=0;i0&&console.log("WARNING: area "+a+" not represented on screen")}return t}function H1(e,r,t){var i=[],n=e-t,a=r;return i.push("M",n,a),i.push("A",t,t,0,1,0,n+2*t,a),i.push("A",t,t,0,1,0,n,a),i.join(" ")}function EI(e){var r=e.split(" ");return{x:parseFloat(r[1]),y:parseFloat(r[2]),radius:-parseFloat(r[4])}}function Y1(e){var r={};qs(e,r);var t=r.arcs;if(t.length===0)return"M 0 0";if(t.length==1){var i=t[0].circle;return H1(i.x,i.y,i.radius)}else{for(var n=[` -M`,t[0].p2.x,t[0].p2.y],a=0;as;n.push(` -A`,s,s,0,l?1:0,1,o.p1.x,o.p1.y)}return n.join(" ")}}function X1(e,r){r=r||{},r.maxIterations=r.maxIterations||500;var t=r.initialLayout||q1,i=r.lossFunction||Js;e=U1(e);var n=t(e,r),a=[],o=[],s;for(s in n)n.hasOwnProperty(s)&&(a.push(n[s].x),a.push(n[s].y),o.push(s));for(var l=(0,ir.nelderMead)(function(f){for(var v={},d=0;du?1:-1}),i=0;i=Math.min(r[o].size,r[s].size)?f=1:a.size<=1e-10&&(f=-1),n[o][s]=n[s][o]=f}),{distances:i,constraints:n}}function Z1(e,r,t,i){var n=0,a;for(a=0;a0&&p<=f||v<0&&p>=f||(n+=2*y*y,r[2*a]+=4*y*(o-u),r[2*a+1]+=4*y*(s-c),r[2*l]+=4*y*(u-o),r[2*l+1]+=4*y*(c-s))}return n}function q1(e,r){var t=$1(e,r),i=r.lossFunction||Js;if(e.length>=8){var n=K1(e,r),a=i(n,e),o=i(t,e);a+1e-8=Math.min(i[c].size,i[f].size)&&(u=0),n[c].push({set:f,size:l.size,weight:u}),n[f].push({set:c,size:l.size,weight:u})}var v=[];for(a in n)if(n.hasOwnProperty(a)){for(var d=0,o=0;o0){var n=e[0].x,a=e[0].y;for(i=0;i1){var s=Math.atan2(e[1].x,e[1].y)-r,l=void 0,u=void 0,c=Math.cos(s),f=Math.sin(s);for(i=0;i2){for(var v=Math.atan2(e[2].x,e[2].y)-r;v<0;)v+=2*Math.PI;for(;v>2*Math.PI;)v-=2*Math.PI;if(v>Math.PI){var d=e[1].y/(1e-10+e[1].x);for(i=0;i1)throw new Error("quantiles must be between 0 and 1");return r===1?e[e.length-1]:r===0?e[0]:t%1!=0?e[Math.ceil(t)-1]:e.length%2==0?(e[t-1]+e[t])/2:e[t]}function bn(e,r,t){var i=e[r];e[r]=e[t],e[t]=i}function Va(e,r,t,i){for(t=t||0,i=i||e.length-1;i>t;){if(i-t>600){var n=i-t+1,a=r-t+1,o=Math.log(n),s=.5*Math.exp(2*o/3),l=.5*Math.sqrt(o*s*(n-s)/n);a-n/2<0&&(l*=-1);var u=Math.max(t,Math.floor(r-a*s/n+l)),c=Math.min(i,Math.floor(r+(n-a)*s/n+l));Va(e,r,u,c)}var f=e[r],v=t,d=i;for(bn(e,t,r),e[i]>f&&bn(e,t,i);vf;)d--}e[t]===f?bn(e,t,d):(d++,bn(e,d,i)),d<=r&&(t=d+1),r<=d&&(i=d-1)}}function Sn(e,r){var t=e.slice();if(Array.isArray(r)){wT(t,r);for(var i=[],n=0;n0?c:f},m=O({},e,{options:{xField:n,yField:Ue,seriesField:n,rawFields:[a,Ha,il,Ue],widthRatio:l,interval:{style:u,shape:d||"waterfall",color:y}}}),x=Fe(m).ext,_=x.geometry;return _.customInfo((0,g.__assign)((0,g.__assign)({},p),{leaderLine:s})),e}function NT(e){var r,t,i=e.options,n=i.xAxis,a=i.yAxis,o=i.xField,s=i.yField,l=i.meta,u=O({},{alias:s},(0,h.get)(l,s));return Et(he((r={},r[o]=n,r[s]=a,r[Ue]=a,r),O({},l,(t={},t[Ue]=u,t[Ha]=u,t[rl]=u,t))))(e)}function zT(e){var r=e.chart,t=e.options,i=t.xAxis,n=t.yAxis,a=t.xField,o=t.yField;return i===!1?r.axis(a,!1):r.axis(a,i),n===!1?(r.axis(o,!1),r.axis(Ue,!1)):(r.axis(o,n),r.axis(Ue,n)),e}function VT(e){var r=e.chart,t=e.options,i=t.legend,n=t.total,a=t.risingFill,o=t.fallingFill,s=t.locale,l=ya(s);if(i===!1)r.legend(!1);else{var u=[{name:l.get(["general","increase"]),value:"increase",marker:{symbol:"square",style:{r:5,fill:a}}},{name:l.get(["general","decrease"]),value:"decrease",marker:{symbol:"square",style:{r:5,fill:o}}}];n&&u.push({name:n.label||"",value:"total",marker:{symbol:"square",style:O({},{r:5},(0,h.get)(n,"style"))}}),r.legend(O({},{custom:!0,position:"top",items:u},i)),r.removeInteraction("legend-filter")}return e}function GT(e){var r=e.chart,t=e.options,i=t.label,n=t.labelMode,a=t.xField,o=Me(r,"interval");if(!i)o.label(!1);else{var s=i.callback,l=(0,g.__rest)(i,["callback"]);o.label({fields:n==="absolute"?[rl,a]:[Ha,a],callback:s,cfg:be(l)})}return e}function WT(e){var r=e.chart,t=e.options,i=t.tooltip,n=t.xField,a=t.yField;if(i!==!1){r.tooltip((0,g.__assign)({showCrosshairs:!1,showMarkers:!1,shared:!0,fields:[a]},i));var o=r.geometries[0];(i==null?void 0:i.formatter)?o.tooltip("".concat(n,"*").concat(a),i.formatter):o.tooltip(a)}else r.tooltip(!1);return e}function HT(e){return Et(BT,Xt,RT,NT,zT,VT,WT,GT,Lr,oe,Qt,le())(e)}var OI=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.type="waterfall",t}return r.getDefaultOptions=function(){return OT},r.prototype.changeData=function(t){var i=this.options,n=i.xField,a=i.yField,o=i.total;this.updateOption({data:t}),this.chart.changeData(ed(t,n,a,o))},r.prototype.getSchemaAdaptor=function(){return HT},r.prototype.getDefaultOptions=function(){return r.getDefaultOptions()},r}(kt),nl="color",YT=O({},kt.getDefaultOptions(),{timeInterval:2e3,legend:!1,tooltip:{showTitle:!1,showMarkers:!1,showCrosshairs:!1,fields:["text","value",nl],formatter:function(e){return{name:e.text,value:e.value}}},wordStyle:{fontFamily:"Verdana",fontWeight:"normal",padding:1,fontSize:[12,60],rotation:[0,90],rotationSteps:2,rotateRatio:.5}}),XT={font:function(){return"serif"},padding:1,size:[500,500],spiral:"archimedean",timeInterval:3e3};function UT(e,r){return r=(0,h.assign)({},XT,r),jT(e,r)}function jT(e,r){var t=oL();["font","fontSize","fontWeight","padding","rotate","size","spiral","timeInterval","random"].forEach(function(l){(0,h.isNil)(r[l])||t[l](r[l])}),t.words(e),r.imageMask&&t.createMask(r.imageMask);var i=t.start(),n=i._tags;n.forEach(function(l){l.x+=r.size[0]/2,l.y+=r.size[1]/2});var a=r.size,o=a[0],s=a[1];return n.push({text:"",value:0,x:0,y:0,opacity:0}),n.push({text:"",value:0,x:o,y:s,opacity:0}),n}var al=Math.PI/180,Cn=1<<11>>5,Ya=1<<11;function ZT(e){return e.text}function qT(){return"serif"}function rd(){return"normal"}function KT(e){return e.value}function $T(){return~~(Math.random()*2)*90}function QT(){return 1}function JT(e,r,t,i){if(!r.sprite){var n=e.context,a=e.ratio;n.clearRect(0,0,(Cn<<5)/a,Ya/a);var o=0,s=0,l=0,u=t.length;for(--i;++i>5<<5,f=~~Math.max(Math.abs(y+m),Math.abs(y-m))}else c=c+31>>5<<5;if(f>l&&(l=f),o+c>=Cn<<5&&(o=0,s+=l,l=0),s+f>=Ya)break;n.translate((o+(c>>1))/a,(s+(f>>1))/a),r.rotate&&n.rotate(r.rotate*al),n.fillText(r.text,0,0),r.padding&&(n.lineWidth=2*r.padding,n.strokeText(r.text,0,0)),n.restore(),r.width=c,r.height=f,r.xoff=o,r.yoff=s,r.x1=c>>1,r.y1=f>>1,r.x0=-r.x1,r.y0=-r.y1,r.hasText=!0,o+=c}for(var _=n.getImageData(0,0,(Cn<<5)/a,Ya/a).data,w=[];--i>=0;)if(r=t[i],!!r.hasText){for(var c=r.width,b=c>>5,f=r.y1-r.y0,S=0;S>5),I=_[(s+F)*(Cn<<5)+(o+S)<<2]?1<<31-S%32:0;w[P]|=I,C|=I}C?A=F:(r.y0++,f--,F--,s++)}r.y1=r.y0+A,r.sprite=w.slice(0,(r.y1-r.y0)*b)}}}function tL(e,r,t){t>>=5;for(var i=e.sprite,n=e.width>>5,a=e.x-(n<<4),o=a&127,s=32-o,l=e.y1-e.y0,u=(e.y+e.y0)*t+(a>>5),c,f=0;f>>o:0))&r[u+v])return!0;u+=t}return!1}function eL(e,r){var t=e[0],i=e[1];r.x+r.x0i.x&&(i.x=r.x+r.x1),r.y+r.y1>i.y&&(i.y=r.y+r.y1)}function rL(e,r){return e.x+e.x1>r[0].x&&e.x+e.x0r[0].y&&e.y+e.y0>5)*e[1]),b=l.length,S=[],C=l.map(function(I,V,Z){return I.text=c.call(this,I,V,Z),I.font=r.call(this,I,V,Z),I.style=f.call(this,I,V,Z),I.weight=i.call(this,I,V,Z),I.rotate=n.call(this,I,V,Z),I.size=~~t.call(this,I,V,Z),I.padding=a.call(this,I,V,Z),I}).sort(function(I,V){return V.size-I.size}),A=-1,F=d.board?[{x:0,y:0},{x:m,y:x}]:null;P();function P(){for(var I=Date.now();Date.now()-I>1,V.y=x*(s()+.5)>>1,JT(_,V,C,A),V.hasText&&y(w,V,F)&&(S.push(V),F?d.hasImage||eL(F,V):F=[{x:V.x+V.x0,y:V.y+V.y0},{x:V.x+V.x1,y:V.y+V.y1}],V.x-=e[0]>>1,V.y-=e[1]>>1)}d._tags=S,d._bounds=F}return d};function p(m){m.width=m.height=1;var x=Math.sqrt(m.getContext("2d",{willReadFrequently:!0}).getImageData(0,0,1,1).data.length>>2);m.width=(Cn<<5)/x,m.height=Ya/x;var _=m.getContext("2d",{willReadFrequently:!0});return _.fillStyle=_.strokeStyle="red",_.textAlign="center",{context:_,ratio:x}}function y(m,x,_){for(var w=x.x,b=x.y,S=Math.sqrt(e[0]*e[0]+e[1]*e[1]),C=o(e),A=s()<.5?1:-1,F,P=-A,I,V;(F=C(P+=A))&&(I=~~F[0],V=~~F[1],!(Math.min(Math.abs(I),Math.abs(V))>=S));)if(x.x=w+I,x.y=b+V,!(x.x+x.x0<0||x.y+x.y0<0||x.x+x.x1>e[0]||x.y+x.y1>e[1])&&(!_||!tL(x,m,e[0]))&&(!_||rL(x,_))){for(var Z=x.sprite,vt=x.width>>5,yt=e[0]>>5,Bt=x.x-(vt<<4),G=Bt&127,at=32-G,mt=x.y1-x.y0,ut=void 0,pt=(x.y+x.y0)*yt+(Bt>>5),At=0;At>>G:0);pt+=yt}return delete x.sprite,!0}return!1}return d.createMask=function(m){var x=document.createElement("canvas"),_=e[0],w=e[1];if(!(!_||!w)){var b=_>>5,S=nd((_>>5)*w);x.width=_,x.height=w;var C=x.getContext("2d");C.drawImage(m,0,0,m.width,m.height,0,0,_,w);for(var A=C.getImageData(0,0,_,w).data,F=0;F>5),V=F*_+P<<2,Z=A[V]>=250&&A[V+1]>=250&&A[V+2]>=250,vt=Z?1<<31-P%32:0;S[I]|=vt}d.board=S,d.hasImage=!0}},d.timeInterval=function(m){u=m==null?Infinity:m},d.words=function(m){l=m},d.size=function(m){e=[+m[0],+m[1]]},d.font=function(m){r=nr(m)},d.fontWeight=function(m){i=nr(m)},d.rotate=function(m){n=nr(m)},d.spiral=function(m){o=aL[m]||m},d.fontSize=function(m){t=nr(m)},d.padding=function(m){a=nr(m)},d.random=function(m){s=nr(m)},d}function ad(e){var r=e.options,t=e.chart,i=t,n=i.width,a=i.height,o=i.padding,s=i.appendPadding,l=i.ele,u=r.data,c=r.imageMask,f=r.wordField,v=r.weightField,d=r.colorField,p=r.wordStyle,y=r.timeInterval,m=r.random,x=r.spiral,_=r.autoFit,w=_===void 0?!0:_,b=r.placementStrategy;if(!u||!u.length)return[];var S=p.fontFamily,C=p.fontWeight,A=p.padding,F=p.fontSize,P=hL(u,v),I=[dL(P),gL(P)],V=u.map(function(yt){return{text:yt[f],value:yt[v],color:yt[d],datum:yt}}),Z={imageMask:c,font:S,fontSize:cL(F,I),fontWeight:C,size:sL({width:n,height:a,padding:o,appendPadding:s,autoFit:w,container:l}),padding:A,timeInterval:y,random:m,spiral:x,rotate:fL(r)};if((0,h.isFunction)(b)){var vt=V.map(function(yt,Bt,G){return(0,g.__assign)((0,g.__assign)((0,g.__assign)({},yt),{hasText:!!yt.text,font:nr(Z.font)(yt,Bt,G),weight:nr(Z.fontWeight)(yt,Bt,G),rotate:nr(Z.rotate)(yt,Bt,G),size:nr(Z.fontSize)(yt,Bt,G),style:"normal"}),b.call(t,yt,Bt,G))});return vt.push({text:"",value:0,x:0,y:0,opacity:0}),vt.push({text:"",value:0,x:Z.size[0],y:Z.size[1],opacity:0}),vt}return UT(V,Z)}function sL(e){var r=e.width,t=e.height,i=e.container,n=e.autoFit,a=e.padding,o=e.appendPadding;if(n){var s=us(i);r=s.width,t=s.height}r=r||400,t=t||400;var l=lL({padding:a,appendPadding:o}),u=l[0],c=l[1],f=l[2],v=l[3],d=[r-(v+c),t-(u+f)];return d}function lL(e){var r=Tr(e.padding),t=Tr(e.appendPadding),i=r[0]+t[0],n=r[1]+t[1],a=r[2]+t[2],o=r[3]+t[3];return[i,n,a,o]}function uL(e){return new Promise(function(r,t){if(e instanceof HTMLImageElement){r(e);return}if((0,h.isString)(e)){var i=new Image;i.crossOrigin="anonymous",i.src=e,i.onload=function(){r(i)},i.onerror=function(){fr(qe.ERROR,!1,"image %s load failed !!!",e),t()};return}fr(qe.WARN,e===void 0,"The type of imageMask option must be String or HTMLImageElement."),t()})}function cL(e,r){if((0,h.isFunction)(e))return e;if((0,h.isArray)(e)){var t=e[0],i=e[1];if(!r)return function(){return(i+t)/2};var n=r[0],a=r[1];return a===n?function(){return(i+t)/2}:function(s){var l=s.value;return(i-t)/(a-n)*(l-n)+t}}return function(){return e}}function hL(e,r){return e.map(function(t){return t[r]}).filter(function(t){return typeof t=="number"&&!isNaN(t)})}function fL(e){var r=vL(e),t=r.rotation,i=r.rotationSteps;if(!(0,h.isArray)(t))return t;var n=t[0],a=t[1],o=i===1?0:(a-n)/(i-1);return function(){return a===n?a:Math.floor(Math.random()*i)*o}}function vL(e){var r=e.wordStyle.rotationSteps;return r<1&&(fr(qe.WARN,!1,"The rotationSteps option must be greater than or equal to 1."),r=1),{rotation:e.wordStyle.rotation,rotationSteps:r}}function dL(e){return Math.min.apply(Math,e)}function gL(e){return Math.max.apply(Math,e)}function pL(e){var r=e.chart,t=e.options,i=t.colorField,n=t.color,a=ad(e);r.data(a);var o=O({},e,{options:{xField:"x",yField:"y",seriesField:i&&nl,rawFields:(0,h.isFunction)(n)&&(0,g.__spreadArray)((0,g.__spreadArray)([],(0,h.get)(t,"rawFields",[]),!0),["datum"],!1),point:{color:n,shape:"word-cloud"}}}),s=Ge(o).ext;return s.geometry.label(!1),r.coordinate().reflect("y"),r.axis(!1),e}function yL(e){return Et(he({x:{nice:!1},y:{nice:!1}}))(e)}function mL(e){var r=e.chart,t=e.options,i=t.legend,n=t.colorField;return i===!1?r.legend(!1):n&&r.legend(nl,i),e}function xL(e){Et(pL,yL,me,mL,oe,Qt,Xt,Lr)(e)}Zt("point","word-cloud",{draw:function(e,r){var t=e.x,i=e.y,n=r.addShape("text",{attrs:(0,g.__assign)((0,g.__assign)({},_L(e)),{x:t,y:i})}),a=e.data.rotate;return typeof a=="number"&&ke.rotate(n,a*Math.PI/180),n}});function _L(e){return{fontSize:e.data.size,text:e.data.text,textAlign:"center",fontFamily:e.data.font,fontWeight:e.data.weight,fill:e.color||e.defaultStyle.stroke,textBaseline:"alphabetic"}}var PI=function(e){(0,g.__extends)(r,e);function r(){var t=e!==null&&e.apply(this,arguments)||this;return t.type="word-cloud",t}return r.getDefaultOptions=function(){return YT},r.prototype.changeData=function(t){this.updateOption({data:t}),this.options.imageMask?this.render():this.chart.changeData(ad({chart:this.chart,options:this.options}))},r.prototype.getDefaultOptions=function(){return r.getDefaultOptions()},r.prototype.render=function(){var t=this;return new Promise(function(i){var n=t.options.imageMask;if(!n){e.prototype.render.call(t),i();return}var a=function(o){t.options=(0,g.__assign)((0,g.__assign)({},t.options),{imageMask:o||null}),e.prototype.render.call(t),i()};uL(n).then(a).catch(a)})},r.prototype.getSchemaAdaptor=function(){return xL},r.prototype.triggerResize=function(){var t=this;this.chart.destroyed||(this.execAdaptor(),window.setTimeout(function(){e.prototype.triggerResize.call(t)}))},r}(kt),kI=function(e){(0,g.__extends)(r,e);function r(t,i,n,a){var o=e.call(this,t,O({},a,i))||this;return o.type="g2-plot",o.defaultOptions=a,o.adaptor=n,o}return r.prototype.getDefaultOptions=function(){return this.defaultOptions},r.prototype.getSchemaAdaptor=function(){return this.adaptor},r}(kt),DI="2.4.29";_h("en-US",mb),_h("zh-CN",xb);var BI={scale:he,legend:Ur,tooltip:me,annotation:le,interaction:oe,theme:Xt,animation:Qt}},80638:function(){},15746:function(Pt,st,M){"use strict";var B=M(21584);st.Z=B.Z},89032:function(Pt,st,M){"use strict";var B=M(38663),it=M.n(B),wt=M(6999)},99134:function(Pt,st,M){"use strict";var B=M(67294),it=(0,B.createContext)({});st.Z=it},21584:function(Pt,st,M){"use strict";var B=M(96156),it=M(22122),wt=M(90484),_t=M(94184),ft=M.n(_t),ct=M(67294),et=M(53124),K=M(99134),g=function(N,$){var L={};for(var X in N)Object.prototype.hasOwnProperty.call(N,X)&&$.indexOf(X)<0&&(L[X]=N[X]);if(N!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ot=0,X=Object.getOwnPropertySymbols(N);ot0){var H=rt[0]/2;W.paddingLeft=H,W.paddingRight=H}if(rt&&rt[1]>0&&!zt){var z=rt[1]/2;W.paddingTop=z,W.paddingBottom=z}return R&&(W.flex=h(R),Mt===!1&&!W.minWidth&&(W.minWidth=0)),ct.createElement("div",(0,it.Z)({},j,{style:(0,it.Z)((0,it.Z)({},W),D),className:St,ref:$}),Y)});st.Z=E},92820:function(Pt,st,M){"use strict";var B=M(22122),it=M(96156),wt=M(90484),_t=M(28481),ft=M(94184),ct=M.n(ft),et=M(67294),K=M(53124),g=M(98082),h=M(24308),J=M(93355),E=M(99134),N=function(ht,bt){var rt={};for(var Mt in ht)Object.prototype.hasOwnProperty.call(ht,Mt)&&bt.indexOf(Mt)<0&&(rt[Mt]=ht[Mt]);if(ht!=null&&typeof Object.getOwnPropertySymbols=="function")for(var zt=0,Mt=Object.getOwnPropertySymbols(ht);zt0?gt[0]/-2:void 0,ae=gt[1]!=null&>[1]>0?gt[1]/-2:void 0;if(te&&(Ut.marginLeft=te,Ut.marginRight=te),Tt){var we=(0,_t.Z)(gt,2);Ut.rowGap=we[1]}else ae&&(Ut.marginTop=ae,Ut.marginBottom=ae);var re=(0,_t.Z)(gt,2),xe=re[0],Se=re[1],_e=et.useMemo(function(){return{gutter:[xe,Se],wrap:tt,supportFlexGap:Tt}},[xe,Se,tt,Tt]);return et.createElement(E.Z.Provider,{value:_e},et.createElement("div",(0,B.Z)({},Y,{className:Rt,style:(0,B.Z)((0,B.Z)({},Ut),se),ref:bt}),jt))});st.Z=ot},6999:function(Pt,st,M){"use strict";var B=M(38663),it=M.n(B),wt=M(80638),_t=M.n(wt)},71230:function(Pt,st,M){"use strict";var B=M(92820);st.Z=B.Z},13062:function(Pt,st,M){"use strict";var B=M(38663),it=M.n(B),wt=M(6999)},56645:function(Pt,st){(function(M,B){B(st)})(this,function(M){"use strict";function B(T,k){return it(T)||wt(T,k)||_t()}function it(T){if(Array.isArray(T))return T}function wt(T,k){var tt=[],Y=!0,R=!1,D=void 0;try{for(var j=T[Symbol.iterator](),q;!(Y=(q=j.next()).done)&&(tt.push(q.value),!(k&&tt.length===k));Y=!0);}catch(dt){R=!0,D=dt}finally{try{!Y&&j.return!=null&&j.return()}finally{if(R)throw D}}return tt}function _t(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function ft(T,k,tt,Y){T=T.filter(function(nt,U){var It=k(nt,U),Tt=tt(nt,U);return It!=null&&isFinite(It)&&Tt!=null&&isFinite(Tt)}),Y&&T.sort(function(nt,U){return k(nt)-k(U)});for(var R=T.length,D=new Float64Array(R),j=new Float64Array(R),q=0,dt=0,St,W,H,z=0;zR&&(W.splice(Q+1,0,Tt),z=!0)}return z}}function J(T,k,tt,Y){var R=Y-T*T,D=Math.abs(R)<1e-24?0:(tt-T*k)/R,j=k-D*T;return[j,D]}function E(){var T=function(D){return D[0]},k=function(D){return D[1]},tt;function Y(R){var D=0,j=0,q=0,dt=0,St=0,W=0,H=tt?+tt[0]:Infinity,z=tt?+tt[1]:-Infinity;ct(R,T,k,function(lt,Ct){var gt=Math.log(Ct),Rt=lt*Ct;++D,j+=(Ct-j)/D,dt+=(Rt-dt)/D,W+=(lt*Rt-W)/D,q+=(Ct*gt-q)/D,St+=(Rt*gt-St)/D,tt||(ltz&&(z=lt))});var Q=J(dt/j,q/j,St/j,W/j),nt=B(Q,2),U=nt[0],It=nt[1];U=Math.exp(U);var Tt=function(Ct){return U*Math.exp(It*Ct)},Ft=h(H,z,Tt);return Ft.a=U,Ft.b=It,Ft.predict=Tt,Ft.rSquared=et(R,T,k,j,Tt),Ft}return Y.domain=function(R){return arguments.length?(tt=R,Y):tt},Y.x=function(R){return arguments.length?(T=R,Y):T},Y.y=function(R){return arguments.length?(k=R,Y):k},Y}function N(){var T=function(D){return D[0]},k=function(D){return D[1]},tt;function Y(R){var D=0,j=0,q=0,dt=0,St=0,W=tt?+tt[0]:Infinity,H=tt?+tt[1]:-Infinity;ct(R,T,k,function(Ft,lt){++D,j+=(Ft-j)/D,q+=(lt-q)/D,dt+=(Ft*lt-dt)/D,St+=(Ft*Ft-St)/D,tt||(FtH&&(H=Ft))});var z=J(j,q,dt,St),Q=B(z,2),nt=Q[0],U=Q[1],It=function(lt){return U*lt+nt},Tt=[[W,It(W)],[H,It(H)]];return Tt.a=U,Tt.b=nt,Tt.predict=It,Tt.rSquared=et(R,T,k,q,It),Tt}return Y.domain=function(R){return arguments.length?(tt=R,Y):tt},Y.x=function(R){return arguments.length?(T=R,Y):T},Y.y=function(R){return arguments.length?(k=R,Y):k},Y}function $(T){T.sort(function(tt,Y){return tt-Y});var k=T.length/2;return k%1==0?(T[k-1]+T[k])/2:T[Math.floor(k)]}var L=2,X=1e-12;function ot(){var T=function(D){return D[0]},k=function(D){return D[1]},tt=.3;function Y(R){for(var D=ft(R,T,k,!0),j=B(D,4),q=j[0],dt=j[1],St=j[2],W=j[3],H=q.length,z=Math.max(2,~~(tt*H)),Q=new Float64Array(H),nt=new Float64Array(H),U=new Float64Array(H).fill(1),It=-1;++It<=L;){for(var Tt=[0,z-1],Ft=0;Ftq[gt]-lt?Ct:gt,Ut=0,te=0,ae=0,we=0,re=0,xe=1/Math.abs(q[Rt]-lt||1),Se=Ct;Se<=gt;++Se){var _e=q[Se],ce=dt[Se],ve=ht(Math.abs(lt-_e)*xe)*U[Se],de=_e*ve;Ut+=ve,te+=de,ae+=ce*ve,we+=ce*de,re+=_e*de}var Te=J(te/Ut,ae/Ut,we/Ut,re/Ut),ii=B(Te,2),ni=ii[0],ai=ii[1];Q[Ft]=ni+ai*lt,nt[Ft]=Math.abs(dt[Ft]-Q[Ft]),bt(q,Ft+1,Tt)}if(It===L)break;var Xa=$(nt);if(Math.abs(Xa)=1?X:(Ua=1-Pi*Pi)*Ua}return rt(q,Q,St,W)}return Y.bandwidth=function(R){return arguments.length?(tt=R,Y):tt},Y.x=function(R){return arguments.length?(T=R,Y):T},Y.y=function(R){return arguments.length?(k=R,Y):k},Y}function ht(T){return(T=1-T*T*T)*T*T}function bt(T,k,tt){var Y=T[k],R=tt[0],D=tt[1]+1;if(!(D>=T.length))for(;k>R&&T[D]-Y<=Y-T[R];)tt[0]=++R,tt[1]=D,++D}function rt(T,k,tt,Y){for(var R=T.length,D=[],j=0,q=0,dt=[],St;jz&&(z=Ct))});var nt=J(q,dt,St,W),U=B(nt,2),It=U[0],Tt=U[1],Ft=function(gt){return Tt*Math.log(gt)/Q+It},lt=h(H,z,Ft);return lt.a=Tt,lt.b=It,lt.predict=Ft,lt.rSquared=et(D,T,k,dt,Ft),lt}return R.domain=function(D){return arguments.length?(Y=D,R):Y},R.x=function(D){return arguments.length?(T=D,R):T},R.y=function(D){return arguments.length?(k=D,R):k},R.base=function(D){return arguments.length?(tt=D,R):tt},R}function zt(){var T=function(D){return D[0]},k=function(D){return D[1]},tt;function Y(R){var D=ft(R,T,k),j=B(D,4),q=j[0],dt=j[1],St=j[2],W=j[3],H=q.length,z=0,Q=0,nt=0,U=0,It=0,Tt,Ft,lt,Ct;for(Tt=0;Ttte&&(te=ve))});var ae=nt-z*z,we=z*ae-Q*Q,re=(It*z-U*Q)/we,xe=(U*ae-It*Q)/we,Se=-re*z,_e=function(de){return de=de-St,re*de*de+xe*de+Se+W},ce=h(Ut,te,_e);return ce.a=re,ce.b=xe-2*re*St,ce.c=Se-xe*St+re*St*St+W,ce.predict=_e,ce.rSquared=et(R,T,k,gt,_e),ce}return Y.domain=function(R){return arguments.length?(tt=R,Y):tt},Y.x=function(R){return arguments.length?(T=R,Y):T},Y.y=function(R){return arguments.length?(k=R,Y):k},Y}function qt(){var T=function(j){return j[0]},k=function(j){return j[1]},tt=3,Y;function R(D){if(tt===1){var j=N().x(T).y(k).domain(Y)(D);return j.coefficients=[j.b,j.a],delete j.a,delete j.b,j}if(tt===2){var q=zt().x(T).y(k).domain(Y)(D);return q.coefficients=[q.c,q.b,q.a],delete q.a,delete q.b,delete q.c,q}var dt=ft(D,T,k),St=B(dt,4),W=St[0],H=St[1],z=St[2],Q=St[3],nt=W.length,U=[],It=[],Tt=tt+1,Ft=0,lt=0,Ct=Y?+Y[0]:Infinity,gt=Y?+Y[1]:-Infinity;ct(D,T,k,function(_e,ce){++lt,Ft+=(ce-Ft)/lt,Y||(_egt&&(gt=_e))});var Rt,Ut,te,ae,we;for(Rt=0;Rt=0;--D)for(q=k[D],dt=1,R[D]+=q,j=1;j<=D;++j)dt*=(D+1-j)/j,R[D-j]+=q*Math.pow(tt,j)*dt;return R[0]+=Y,R}function se(T){var k=T.length-1,tt=[],Y,R,D,j,q;for(Y=0;YMath.abs(T[Y][j])&&(j=R);for(D=Y;D=Y;D--)T[D][R]-=T[D][Y]*T[Y][R]/T[Y][Y]}for(R=k-1;R>=0;--R){for(q=0,D=R+1;Dz&&(z=lt))});var Q=J(j,q,dt,St),nt=B(Q,2),U=nt[0],It=nt[1];U=Math.exp(U);var Tt=function(Ct){return U*Math.pow(Ct,It)},Ft=h(H,z,Tt);return Ft.a=U,Ft.b=It,Ft.predict=Tt,Ft.rSquared=et(R,T,k,W,Tt),Ft}return Y.domain=function(R){return arguments.length?(tt=R,Y):tt},Y.x=function(R){return arguments.length?(T=R,Y):T},Y.y=function(R){return arguments.length?(k=R,Y):k},Y}M.regressionExp=E,M.regressionLinear=N,M.regressionLoess=ot,M.regressionLog=Mt,M.regressionPoly=qt,M.regressionPow=jt,M.regressionQuad=zt,Object.defineProperty(M,"__esModule",{value:!0})})},87026:function(Pt,st){(function(M,B){B(st)})(this,function(M){"use strict";function B(N,$,L,X){X=X||{};var ot=X.maxIterations||100,ht=X.tolerance||1e-10,bt=N($),rt=N(L),Mt=L-$;if(bt*rt>0)throw"Initial bisect points must have opposite signs";if(bt===0)return $;if(rt===0)return L;for(var zt=0;zt=0&&($=qt),Math.abs(Mt)=T[jt-1].fx){var Q=!1;if(j.fx>z.fx?(et(q,1+qt,D,-qt,z),q.fx=N(q),q.fx=1)break;for(k=1;krt+ht*ot*Mt||zt>=Y)tt=ot;else{if(Math.abs(Yt)<=-bt*Mt)return ot;Yt*(tt-k)>=0&&(tt=k),k=ot,Y=zt}return 0}for(var T=0;T<10;++T){if(et(X.x,1,L.x,ot,$),zt=X.fx=N(X.x,X.fxprime),Yt=_t(X.fxprime,$),zt>rt+ht*ot*Mt||T&&zt>=qt)return jt(se,ot,qt);if(Math.abs(Yt)<=-bt*Mt)return ot;if(Yt>=0)return jt(ot,se,zt);qt=zt,se=ot,ot*=2}return ot}function h(N,$,L){var X={x:$.slice(),fx:0,fxprime:$.slice()},ot={x:$.slice(),fx:0,fxprime:$.slice()},ht=$.slice(),bt,rt,Mt=1,zt;L=L||{},zt=L.maxIterations||$.length*20,X.fx=N(X.x,X.fxprime),bt=X.fxprime.slice(),ct(bt,X.fxprime,-1);for(var qt=0;qt=ot.length)){var tt=Math.max(k-J,0),Y=k,R=Math.min(k+J,ot.length-1),D=tt-(k-J),j=k+J-R,q=rt[-J-1+D]||0,dt=rt[-J-1+j]||0,St=Mt/(Mt-q-dt);D>0&&(qt+=St*(D-1)*zt);var W=Math.max(0,k-J+1);ft.inside(0,ot.length-1,W)&&(ot[W].y+=St*1*zt),ft.inside(0,ot.length-1,Y+1)&&(ot[Y+1].y-=St*2*zt),ft.inside(0,ot.length-1,R+1)&&(ot[R+1].y+=St*1*zt)}});var Yt=qt,se=0,jt=0;return ot.forEach(function(T){se+=T.y,Yt+=se,T.y=Yt,jt+=Yt}),jt>0&&ot.forEach(function(T){T.y/=jt}),ot};function et(K,g){for(var h={},J=0,E=-g;E<=g;E++)J+=K(E/g),h[E]=J;return h}Pt.exports.getExpectedValueFromPdf=function(K){if(!(!K||K.length===0)){var g=0;return K.forEach(function(h){g+=h.x*h.y}),g}},Pt.exports.getXWithLeftTailArea=function(K,g){if(!(!K||K.length===0)){for(var h=0,J=0,E=0;E=g));E++);return K[J].x}},Pt.exports.getPerplexity=function(K){if(!(!K||K.length===0)){var g=0;return K.forEach(function(h){var J=Math.log(h.y);isFinite(J)&&(g+=h.y*J)}),g=-g/wt,Math.pow(2,g)}}},55168:function(Pt,st){"use strict";Object.defineProperty(st,"__esModule",{value:!0}),st.SensorTabIndex=st.SensorClassName=st.SizeSensorId=void 0;var M="size-sensor-id";st.SizeSensorId=M;var B="size-sensor-object";st.SensorClassName=B;var it="-1";st.SensorTabIndex=it},12177:function(Pt,st){"use strict";Object.defineProperty(st,"__esModule",{value:!0}),st.default=void 0;var M=function(it){var wt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:60,_t=null;return function(){for(var ft=this,ct=arguments.length,et=new Array(ct),K=0;K=r||t<0||t>=r)return f;var e=f[l],n=l-t;return n>0?[].concat((0,V.Z)(f.slice(0,t)),[e],(0,V.Z)(f.slice(t,l)),(0,V.Z)(f.slice(l+1,r))):n<0?[].concat((0,V.Z)(f.slice(0,l)),(0,V.Z)(f.slice(l+1,t+1)),[e],(0,V.Z)(f.slice(t+1,r))):f}var Be=["name"],ue=[];function De(f,l,t,r,e,n){return typeof f=="function"?f(l,t,"source"in n?{source:n.source}:{}):r!==e}var Ae=function(f){(0,j.Z)(t,f);var l=(0,Ze.Z)(t);function t(r){var e;if((0,ie.Z)(this,t),e=l.call(this,r),e.state={resetCount:0},e.cancelRegisterFunc=null,e.mounted=!1,e.touched=!1,e.dirty=!1,e.validatePromise=void 0,e.prevValidating=void 0,e.errors=ue,e.warnings=ue,e.cancelRegister=function(){var a=e.props,o=a.preserve,u=a.isListField,s=a.name;e.cancelRegisterFunc&&e.cancelRegisterFunc(u,o,T(s)),e.cancelRegisterFunc=null},e.getNamePath=function(){var a=e.props,o=a.name,u=a.fieldContext,s=u.prefixName,v=s===void 0?[]:s;return o!==void 0?[].concat((0,V.Z)(v),(0,V.Z)(o)):[]},e.getRules=function(){var a=e.props,o=a.rules,u=o===void 0?[]:o,s=a.fieldContext;return u.map(function(v){return typeof v=="function"?v(s):v})},e.refresh=function(){!e.mounted||e.setState(function(a){var o=a.resetCount;return{resetCount:o+1}})},e.triggerMetaEvent=function(a){var o=e.props.onMetaChange;o==null||o((0,C.Z)((0,C.Z)({},e.getMeta()),{},{destroy:a}))},e.onStoreChange=function(a,o,u){var s=e.props,v=s.shouldUpdate,y=s.dependencies,F=y===void 0?[]:y,Z=s.onReset,h=u.store,E=e.getNamePath(),p=e.getValue(a),M=e.getValue(h),w=o&&R(o,E);switch(u.type==="valueUpdate"&&u.source==="external"&&p!==M&&(e.touched=!0,e.dirty=!0,e.validatePromise=null,e.errors=ue,e.warnings=ue,e.triggerMetaEvent()),u.type){case"reset":if(!o||w){e.touched=!1,e.dirty=!1,e.validatePromise=void 0,e.errors=ue,e.warnings=ue,e.triggerMetaEvent(),Z==null||Z(),e.refresh();return}break;case"remove":{if(v){e.reRender();return}break}case"setField":{if(w){var z=u.data;"touched"in z&&(e.touched=z.touched),"validating"in z&&!("originRCField"in z)&&(e.validatePromise=z.validating?Promise.resolve([]):null),"errors"in z&&(e.errors=z.errors||ue),"warnings"in z&&(e.warnings=z.warnings||ue),e.dirty=!0,e.triggerMetaEvent(),e.reRender();return}if(v&&!E.length&&De(v,a,h,p,M,u)){e.reRender();return}break}case"dependenciesUpdate":{var b=F.map(T);if(b.some(function(k){return R(u.relatedFields,k)})){e.reRender();return}break}default:if(w||(!F.length||E.length||v)&&De(v,a,h,p,M,u)){e.reRender();return}break}v===!0&&e.reRender()},e.validateRules=function(a){var o=e.getNamePath(),u=e.getValue(),s=a||{},v=s.triggerName,y=s.validateOnly,F=y===void 0?!1:y,Z=Promise.resolve().then(function(){if(!e.mounted)return[];var h=e.props,E=h.validateFirst,p=E===void 0?!1:E,M=h.messageVariables,w=e.getRules();v&&(w=w.filter(function(b){return b}).filter(function(b){var k=b.validateTrigger;if(!k)return!0;var Pe=ge(k);return Pe.includes(v)}));var z=A(o,u,w,a,p,M);return z.catch(function(b){return b}).then(function(){var b=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ue;if(e.validatePromise===Z){var k;e.validatePromise=null;var Pe=[],ye=[];(k=b.forEach)===null||k===void 0||k.call(b,function(U){var J=U.rule.warningOnly,$=U.errors,Ce=$===void 0?ue:$;J?ye.push.apply(ye,(0,V.Z)(Ce)):Pe.push.apply(Pe,(0,V.Z)(Ce))}),e.errors=Pe,e.warnings=ye,e.triggerMetaEvent(),e.reRender()}}),z});return F||(e.validatePromise=Z,e.dirty=!0,e.errors=ue,e.warnings=ue,e.triggerMetaEvent(),e.reRender()),Z},e.isFieldValidating=function(){return!!e.validatePromise},e.isFieldTouched=function(){return e.touched},e.isFieldDirty=function(){if(e.dirty||e.props.initialValue!==void 0)return!0;var a=e.props.fieldContext,o=a.getInternalHooks(I),u=o.getInitialValue;return u(e.getNamePath())!==void 0},e.getErrors=function(){return e.errors},e.getWarnings=function(){return e.warnings},e.isListField=function(){return e.props.isListField},e.isList=function(){return e.props.isList},e.isPreserve=function(){return e.props.preserve},e.getMeta=function(){e.prevValidating=e.isFieldValidating();var a={touched:e.isFieldTouched(),validating:e.prevValidating,errors:e.errors,warnings:e.warnings,name:e.getNamePath(),validated:e.validatePromise===null};return a},e.getOnlyChild=function(a){if(typeof a=="function"){var o=e.getMeta();return(0,C.Z)((0,C.Z)({},e.getOnlyChild(a(e.getControlled(),o,e.props.fieldContext))),{},{isFunction:!0})}var u=(0,ve.Z)(a);return u.length!==1||!g.isValidElement(u[0])?{child:u,isFunction:!1}:{child:u[0],isFunction:!1}},e.getValue=function(a){var o=e.props.fieldContext.getFieldsValue,u=e.getNamePath();return(0,X.Z)(a||o(!0),u)},e.getControlled=function(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=e.props,u=o.trigger,s=o.validateTrigger,v=o.getValueFromEvent,y=o.normalize,F=o.valuePropName,Z=o.getValueProps,h=o.fieldContext,E=s!==void 0?s:h.validateTrigger,p=e.getNamePath(),M=h.getInternalHooks,w=h.getFieldsValue,z=M(I),b=z.dispatch,k=e.getValue(),Pe=Z||function($){return(0,ae.Z)({},F,$)},ye=a[u],U=(0,C.Z)((0,C.Z)({},a),Pe(k));U[u]=function(){e.touched=!0,e.dirty=!0,e.triggerMetaEvent();for(var $,Ce=arguments.length,Ee=new Array(Ce),Ke=0;Ke=0&&J<=$.length?(s.keys=[].concat((0,V.Z)(s.keys.slice(0,J)),[s.id],(0,V.Z)(s.keys.slice(J))),w([].concat((0,V.Z)($.slice(0,J)),[U],(0,V.Z)($.slice(J))))):(s.keys=[].concat((0,V.Z)(s.keys),[s.id]),w([].concat((0,V.Z)($),[U]))),s.id+=1},remove:function(U){var J=b(),$=new Set(Array.isArray(U)?U:[U]);$.size<=0||(s.keys=s.keys.filter(function(Ce,Ee){return!$.has(Ee)}),w(J.filter(function(Ce,Ee){return!$.has(Ee)})))},move:function(U,J){if(U!==J){var $=b();U<0||U>=$.length||J<0||J>=$.length||(s.keys=he(s.keys,U,J),w(he($,U,J)))}}},Pe=M||[];return Array.isArray(Pe)||(Pe=[]),e(Pe.map(function(ye,U){var J=s.keys[U];return J===void 0&&(s.keys[U]=s.id,J=s.keys[U],s.id+=1),{name:U,key:J,isListField:!0}}),k,E)})))},rt=be,pe=c(28481);function Te(f){var l=!1,t=f.length,r=[];return f.length?new Promise(function(e,n){f.forEach(function(i,d){i.catch(function(a){return l=!0,a}).then(function(a){t-=1,r[d]=a,!(t>0)&&(l&&n(r),e(r))})})}):Promise.resolve([])}var qe="__@field_split__";function je(f){return f.map(function(l){return"".concat((0,q.Z)(l),":").concat(l)}).join(qe)}var ne=function(){function f(){(0,ie.Z)(this,f),this.kvs=new Map}return(0,ce.Z)(f,[{key:"set",value:function(t,r){this.kvs.set(je(t),r)}},{key:"get",value:function(t){return this.kvs.get(je(t))}},{key:"update",value:function(t,r){var e=this.get(t),n=r(e);n?this.set(t,n):this.delete(t)}},{key:"delete",value:function(t){this.kvs.delete(je(t))}},{key:"map",value:function(t){return(0,V.Z)(this.kvs.entries()).map(function(r){var e=(0,pe.Z)(r,2),n=e[0],i=e[1],d=n.split(qe);return t({key:d.map(function(a){var o=a.match(/^([^:]*):(.*)$/),u=(0,pe.Z)(o,3),s=u[1],v=u[2];return s==="number"?Number(v):v}),value:i})})}},{key:"toJSON",value:function(){var t={};return this.map(function(r){var e=r.key,n=r.value;return t[e.join(".")]=n,null}),t}}]),f}(),D=ne,we=["name"],te=(0,ce.Z)(function f(l){var t=this;(0,ie.Z)(this,f),this.formHooked=!1,this.forceRootUpdate=void 0,this.subscribable=!0,this.store={},this.fieldEntities=[],this.initialValues={},this.callbacks={},this.validateMessages=null,this.preserve=null,this.lastValidatePromise=null,this.getForm=function(){return{getFieldValue:t.getFieldValue,getFieldsValue:t.getFieldsValue,getFieldError:t.getFieldError,getFieldWarning:t.getFieldWarning,getFieldsError:t.getFieldsError,isFieldsTouched:t.isFieldsTouched,isFieldTouched:t.isFieldTouched,isFieldValidating:t.isFieldValidating,isFieldsValidating:t.isFieldsValidating,resetFields:t.resetFields,setFields:t.setFields,setFieldValue:t.setFieldValue,setFieldsValue:t.setFieldsValue,validateFields:t.validateFields,submit:t.submit,_init:!0,getInternalHooks:t.getInternalHooks}},this.getInternalHooks=function(r){return r===I?(t.formHooked=!0,{dispatch:t.dispatch,initEntityValue:t.initEntityValue,registerField:t.registerField,useSubscribe:t.useSubscribe,setInitialValues:t.setInitialValues,destroyForm:t.destroyForm,setCallbacks:t.setCallbacks,setValidateMessages:t.setValidateMessages,getFields:t.getFields,setPreserve:t.setPreserve,getInitialValue:t.getInitialValue,registerWatch:t.registerWatch}):((0,oe.ZP)(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)},this.useSubscribe=function(r){t.subscribable=r},this.prevWithoutPreserves=null,this.setInitialValues=function(r,e){if(t.initialValues=r||{},e){var n,i=(0,K.T)(r,t.store);(n=t.prevWithoutPreserves)===null||n===void 0||n.map(function(d){var a=d.key;i=(0,K.Z)(i,a,(0,X.Z)(r,a))}),t.prevWithoutPreserves=null,t.updateStore(i)}},this.destroyForm=function(){var r=new D;t.getFieldEntities(!0).forEach(function(e){t.isMergedPreserve(e.isPreserve())||r.set(e.getNamePath(),!0)}),t.prevWithoutPreserves=r},this.getInitialValue=function(r){var e=(0,X.Z)(t.initialValues,r);return r.length?(0,K.T)(e):e},this.setCallbacks=function(r){t.callbacks=r},this.setValidateMessages=function(r){t.validateMessages=r},this.setPreserve=function(r){t.preserve=r},this.watchList=[],this.registerWatch=function(r){return t.watchList.push(r),function(){t.watchList=t.watchList.filter(function(e){return e!==r})}},this.notifyWatch=function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(t.watchList.length){var e=t.getFieldsValue(),n=t.getFieldsValue(!0);t.watchList.forEach(function(i){i(e,n,r)})}},this.timeoutId=null,this.warningUnhooked=function(){},this.updateStore=function(r){t.store=r},this.getFieldEntities=function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return r?t.fieldEntities.filter(function(e){return e.getNamePath().length}):t.fieldEntities},this.getFieldsMap=function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,e=new D;return t.getFieldEntities(r).forEach(function(n){var i=n.getNamePath();e.set(i,n)}),e},this.getFieldEntitiesForNamePathList=function(r){if(!r)return t.getFieldEntities(!0);var e=t.getFieldsMap(!0);return r.map(function(n){var i=T(n);return e.get(i)||{INVALIDATE_NAME_PATH:T(n)}})},this.getFieldsValue=function(r,e){if(t.warningUnhooked(),r===!0&&!e)return t.store;var n=t.getFieldEntitiesForNamePathList(Array.isArray(r)?r:null),i=[];return n.forEach(function(d){var a,o="INVALIDATE_NAME_PATH"in d?d.INVALIDATE_NAME_PATH:d.getNamePath();if(!(!r&&((a=d.isListField)===null||a===void 0?void 0:a.call(d))))if(!e)i.push(o);else{var u="getMeta"in d?d.getMeta():null;e(u)&&i.push(o)}}),le(t.store,i.map(T))},this.getFieldValue=function(r){t.warningUnhooked();var e=T(r);return(0,X.Z)(t.store,e)},this.getFieldsError=function(r){t.warningUnhooked();var e=t.getFieldEntitiesForNamePathList(r);return e.map(function(n,i){return n&&!("INVALIDATE_NAME_PATH"in n)?{name:n.getNamePath(),errors:n.getErrors(),warnings:n.getWarnings()}:{name:T(r[i]),errors:[],warnings:[]}})},this.getFieldError=function(r){t.warningUnhooked();var e=T(r),n=t.getFieldsError([e])[0];return n.errors},this.getFieldWarning=function(r){t.warningUnhooked();var e=T(r),n=t.getFieldsError([e])[0];return n.warnings},this.isFieldsTouched=function(){t.warningUnhooked();for(var r=arguments.length,e=new Array(r),n=0;n0&&arguments[0]!==void 0?arguments[0]:{},e=new D,n=t.getFieldEntities(!0);n.forEach(function(a){var o=a.props.initialValue,u=a.getNamePath();if(o!==void 0){var s=e.get(u)||new Set;s.add({entity:a,value:o}),e.set(u,s)}});var i=function(o){o.forEach(function(u){var s=u.props.initialValue;if(s!==void 0){var v=u.getNamePath(),y=t.getInitialValue(v);if(y!==void 0)(0,oe.ZP)(!1,"Form already set 'initialValues' with path '".concat(v.join("."),"'. Field can not overwrite it."));else{var F=e.get(v);if(F&&F.size>1)(0,oe.ZP)(!1,"Multiple Field with path '".concat(v.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(F){var Z=t.getFieldValue(v);(!r.skipExist||Z===void 0)&&t.updateStore((0,K.Z)(t.store,v,(0,V.Z)(F)[0].value))}}}})},d;r.entities?d=r.entities:r.namePathList?(d=[],r.namePathList.forEach(function(a){var o=e.get(a);if(o){var u;(u=d).push.apply(u,(0,V.Z)((0,V.Z)(o).map(function(s){return s.entity})))}})):d=n,i(d)},this.resetFields=function(r){t.warningUnhooked();var e=t.store;if(!r){t.updateStore((0,K.T)(t.initialValues)),t.resetWithFieldInitialValue(),t.notifyObservers(e,null,{type:"reset"}),t.notifyWatch();return}var n=r.map(T);n.forEach(function(i){var d=t.getInitialValue(i);t.updateStore((0,K.Z)(t.store,i,d))}),t.resetWithFieldInitialValue({namePathList:n}),t.notifyObservers(e,n,{type:"reset"}),t.notifyWatch(n)},this.setFields=function(r){t.warningUnhooked();var e=t.store,n=[];r.forEach(function(i){var d=i.name,a=(0,P.Z)(i,we),o=T(d);n.push(o),"value"in a&&t.updateStore((0,K.Z)(t.store,o,a.value)),t.notifyObservers(e,[o],{type:"setField",data:i})}),t.notifyWatch(n)},this.getFields=function(){var r=t.getFieldEntities(!0),e=r.map(function(n){var i=n.getNamePath(),d=n.getMeta(),a=(0,C.Z)((0,C.Z)({},d),{},{name:i,value:t.getFieldValue(i)});return Object.defineProperty(a,"originRCField",{value:!0}),a});return e},this.initEntityValue=function(r){var e=r.props.initialValue;if(e!==void 0){var n=r.getNamePath(),i=(0,X.Z)(t.store,n);i===void 0&&t.updateStore((0,K.Z)(t.store,n,e))}},this.isMergedPreserve=function(r){var e=r!==void 0?r:t.preserve;return e!=null?e:!0},this.registerField=function(r){t.fieldEntities.push(r);var e=r.getNamePath();if(t.notifyWatch([e]),r.props.initialValue!==void 0){var n=t.store;t.resetWithFieldInitialValue({entities:[r],skipExist:!0}),t.notifyObservers(n,[r.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(i,d){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(t.fieldEntities=t.fieldEntities.filter(function(s){return s!==r}),!t.isMergedPreserve(d)&&(!i||a.length>1)){var o=i?void 0:t.getInitialValue(e);if(e.length&&t.getFieldValue(e)!==o&&t.fieldEntities.every(function(s){return!Y(s.getNamePath(),e)})){var u=t.store;t.updateStore((0,K.Z)(u,e,o,!0)),t.notifyObservers(u,[e],{type:"remove"}),t.triggerDependenciesUpdate(u,e)}}t.notifyWatch([e])}},this.dispatch=function(r){switch(r.type){case"updateValue":{var e=r.namePath,n=r.value;t.updateValue(e,n);break}case"validateField":{var i=r.namePath,d=r.triggerName;t.validateFields([i],{triggerName:d});break}default:}},this.notifyObservers=function(r,e,n){if(t.subscribable){var i=(0,C.Z)((0,C.Z)({},n),{},{store:t.getFieldsValue(!0)});t.getFieldEntities().forEach(function(d){var a=d.onStoreChange;a(r,e,i)})}else t.forceRootUpdate()},this.triggerDependenciesUpdate=function(r,e){var n=t.getDependencyChildrenFields(e);return n.length&&t.validateFields(n),t.notifyObservers(r,n,{type:"dependenciesUpdate",relatedFields:[e].concat((0,V.Z)(n))}),n},this.updateValue=function(r,e){var n=T(r),i=t.store;t.updateStore((0,K.Z)(t.store,n,e)),t.notifyObservers(i,[n],{type:"valueUpdate",source:"internal"}),t.notifyWatch([n]);var d=t.triggerDependenciesUpdate(i,n),a=t.callbacks.onValuesChange;if(a){var o=le(t.store,[n]);a(o,t.getFieldsValue())}t.triggerOnFieldsChange([n].concat((0,V.Z)(d)))},this.setFieldsValue=function(r){t.warningUnhooked();var e=t.store;if(r){var n=(0,K.T)(t.store,r);t.updateStore(n)}t.notifyObservers(e,null,{type:"valueUpdate",source:"external"}),t.notifyWatch()},this.setFieldValue=function(r,e){t.setFields([{name:r,value:e}])},this.getDependencyChildrenFields=function(r){var e=new Set,n=[],i=new D;t.getFieldEntities().forEach(function(a){var o=a.props.dependencies;(o||[]).forEach(function(u){var s=T(u);i.update(s,function(){var v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return v.add(a),v})})});var d=function a(o){var u=i.get(o)||new Set;u.forEach(function(s){if(!e.has(s)){e.add(s);var v=s.getNamePath();s.isFieldDirty()&&v.length&&(n.push(v),a(v))}})};return d(r),n},this.triggerOnFieldsChange=function(r,e){var n=t.callbacks.onFieldsChange;if(n){var i=t.getFields();if(e){var d=new D;e.forEach(function(o){var u=o.name,s=o.errors;d.set(u,s)}),i.forEach(function(o){o.errors=d.get(o.name)||o.errors})}var a=i.filter(function(o){var u=o.name;return R(r,u)});n(a,i)}},this.validateFields=function(r,e){t.warningUnhooked();var n,i;Array.isArray(r)||typeof r=="string"||typeof e=="string"?(n=r,i=e):i=r;var d=!!n,a=d?n.map(T):[],o=[];t.getFieldEntities(!0).forEach(function(v){var y;if(d||a.push(v.getNamePath()),((y=i)===null||y===void 0?void 0:y.recursive)&&d){var F=v.getNamePath();F.every(function(E,p){return n[p]===E||n[p]===void 0})&&a.push(F)}if(!(!v.props.rules||!v.props.rules.length)){var Z=v.getNamePath();if(!d||R(a,Z)){var h=v.validateRules((0,C.Z)({validateMessages:(0,C.Z)((0,C.Z)({},G),t.validateMessages)},i));o.push(h.then(function(){return{name:Z,errors:[],warnings:[]}}).catch(function(E){var p,M=[],w=[];return(p=E.forEach)===null||p===void 0||p.call(E,function(z){var b=z.rule.warningOnly,k=z.errors;b?w.push.apply(w,(0,V.Z)(k)):M.push.apply(M,(0,V.Z)(k))}),M.length?Promise.reject({name:Z,errors:M,warnings:w}):{name:Z,errors:M,warnings:w}}))}}});var u=Te(o);t.lastValidatePromise=u,u.catch(function(v){return v}).then(function(v){var y=v.map(function(F){var Z=F.name;return Z});t.notifyObservers(t.store,y,{type:"validateFinish"}),t.triggerOnFieldsChange(y,v)});var s=u.then(function(){return t.lastValidatePromise===u?Promise.resolve(t.getFieldsValue(a)):Promise.reject([])}).catch(function(v){var y=v.filter(function(F){return F&&F.errors.length});return Promise.reject({values:t.getFieldsValue(a),errorFields:y,outOfDate:t.lastValidatePromise!==u})});return s.catch(function(v){return v}),t.triggerOnFieldsChange(a),s},this.submit=function(){t.warningUnhooked(),t.validateFields().then(function(r){var e=t.callbacks.onFinish;if(e)try{e(r)}catch(n){console.error(n)}}).catch(function(r){var e=t.callbacks.onFinishFailed;e&&e(r)})},this.forceRootUpdate=l});function _e(f){var l=g.useRef(),t=g.useState({}),r=(0,pe.Z)(t,2),e=r[1];if(!l.current)if(f)l.current=f;else{var n=function(){e({})},i=new te(n);l.current=i.getForm()}return[l.current]}var Ye=_e,ke=g.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),Qe=function(l){var t=l.validateMessages,r=l.onFormChange,e=l.onFormFinish,n=l.children,i=g.useContext(ke),d=g.useRef({});return g.createElement(ke.Provider,{value:(0,C.Z)((0,C.Z)({},i),{},{validateMessages:(0,C.Z)((0,C.Z)({},i.validateMessages),t),triggerFormChange:function(o,u){r&&r(o,{changedFields:u,forms:d.current}),i.triggerFormChange(o,u)},triggerFormFinish:function(o,u){e&&e(o,{values:u,forms:d.current}),i.triggerFormFinish(o,u)},registerForm:function(o,u){o&&(d.current=(0,C.Z)((0,C.Z)({},d.current),{},(0,ae.Z)({},o,u))),i.registerForm(o,u)},unregisterForm:function(o){var u=(0,C.Z)({},d.current);delete u[o],d.current=u,i.unregisterForm(o)}})},n)},He=ke,et=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed"],tt=function(l,t){var r=l.name,e=l.initialValues,n=l.fields,i=l.form,d=l.preserve,a=l.children,o=l.component,u=o===void 0?"form":o,s=l.validateMessages,v=l.validateTrigger,y=v===void 0?"onChange":v,F=l.onValuesChange,Z=l.onFieldsChange,h=l.onFinish,E=l.onFinishFailed,p=(0,P.Z)(l,et),M=g.useContext(He),w=Ye(i),z=(0,pe.Z)(w,1),b=z[0],k=b.getInternalHooks(I),Pe=k.useSubscribe,ye=k.setInitialValues,U=k.setCallbacks,J=k.setValidateMessages,$=k.setPreserve,Ce=k.destroyForm;g.useImperativeHandle(t,function(){return b}),g.useEffect(function(){return M.registerForm(r,b),function(){M.unregisterForm(r)}},[M,b,r]),J((0,C.Z)((0,C.Z)({},M.validateMessages),s)),U({onValuesChange:F,onFieldsChange:function(Se){if(M.triggerFormChange(r,Se),Z){for(var Je=arguments.length,ct=new Array(Je>1?Je-1:0),ot=1;ot");return t}return{Provider:S,useContainer:g}}function x(D){return D.useContainer()}},38069:function(ge,I,o){"use strict";o.d(I,{ZP:function(){return pe}});var c=o(67294);function w(n,r){return g(n)||S(n,r)||D(n,r)||x()}function x(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function D(n,r){if(!!n){if(typeof n=="string")return U(n,r);var a=Object.prototype.toString.call(n).slice(8,-1);if(a==="Object"&&n.constructor&&(a=n.constructor.name),a==="Map"||a==="Set")return Array.from(n);if(a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return U(n,r)}}function U(n,r){(r==null||r>n.length)&&(r=n.length);for(var a=0,l=new Array(r);an.length)&&(r=n.length);for(var a=0,l=new Array(r);a");return t}return{Provider:S,useContainer:g}}function x(D){return D.useContainer()}},38069:function(ge,I,o){"use strict";o.d(I,{ZP:function(){return pe}});var c=o(67294);function w(n,r){return g(n)||S(n,r)||D(n,r)||x()}function x(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function D(n,r){if(!!n){if(typeof n=="string")return U(n,r);var a=Object.prototype.toString.call(n).slice(8,-1);if(a==="Object"&&n.constructor&&(a=n.constructor.name),a==="Map"||a==="Set")return Array.from(n);if(a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return U(n,r)}}function U(n,r){(r==null||r>n.length)&&(r=n.length);for(var a=0,l=new Array(r);an.length)&&(r=n.length);for(var a=0,l=new Array(r);ao.top-r)return r+e.top}function ue(o,e,r){if(r!==void 0&&e.bottom=0;d--)(s=o[d])&&(i=(a<3?s(i):a>3?s(e,r,i):s(e,r))||i);return a>3&&i&&Object.defineProperty(e,r,i),i};function te(){return typeof window!="undefined"?window:null}var q;(function(o){o[o.None=0]="None",o[o.Prepare=1]="Prepare"})(q||(q={}));var re=function(o){(0,O.Z)(r,o);var e=(0,$.Z)(r);function r(){var t;return(0,H.Z)(this,r),t=e.apply(this,arguments),t.state={status:q.None,lastAffix:!1,prevTarget:null},t.getOffsetTop=function(){var a=t.props,i=a.offsetBottom,s=a.offsetTop;return i===void 0&&s===void 0?0:s},t.getOffsetBottom=function(){return t.props.offsetBottom},t.savePlaceholderNode=function(a){t.placeholderNode=a},t.saveFixedNode=function(a){t.fixedNode=a},t.measure=function(){var a=t.state,i=a.status,s=a.lastAffix,d=t.props.onChange,u=t.getTargetFunc();if(!(i!==q.Prepare||!t.fixedNode||!t.placeholderNode||!u)){var v=t.getOffsetTop(),m=t.getOffsetBottom(),g=u();if(!!g){var c={status:q.None},y=V(g),f=V(t.placeholderNode),b=oe(f,y,v),p=ue(f,y,m);f.top===0&&f.left===0&&f.width===0&&f.height===0||(b!==void 0?(c.affixStyle={position:"fixed",top:b,width:f.width,height:f.height},c.placeholderStyle={width:f.width,height:f.height}):p!==void 0&&(c.affixStyle={position:"fixed",bottom:p,width:f.width,height:f.height},c.placeholderStyle={width:f.width,height:f.height}),c.lastAffix=!!c.affixStyle,d&&s!==c.lastAffix&&d(c.lastAffix),t.setState(c))}}},t.prepareMeasure=function(){if(t.setState({status:q.Prepare,affixStyle:void 0,placeholderStyle:void 0}),!1)var a},t}return(0,k.Z)(r,[{key:"getTargetFunc",value:function(){var a=this.context.getTargetContainer,i=this.props.target;return i!==void 0?i:a!=null?a:te}},{key:"componentDidMount",value:function(){var a=this,i=this.getTargetFunc();i&&(this.timeout=setTimeout(function(){E(i(),a),a.updatePosition()}))}},{key:"componentDidUpdate",value:function(a){var i=this.state.prevTarget,s=this.getTargetFunc(),d=(s==null?void 0:s())||null;i!==d&&(le(this),d&&(E(d,this),this.updatePosition()),this.setState({prevTarget:d})),(a.offsetTop!==this.props.offsetTop||a.offsetBottom!==this.props.offsetBottom)&&this.updatePosition(),this.measure()}},{key:"componentWillUnmount",value:function(){clearTimeout(this.timeout),le(this),this.updatePosition.cancel(),this.lazyUpdatePosition.cancel()}},{key:"updatePosition",value:function(){this.prepareMeasure()}},{key:"lazyUpdatePosition",value:function(){var a=this.getTargetFunc(),i=this.state.affixStyle;if(a&&i){var s=this.getOffsetTop(),d=this.getOffsetBottom(),u=a();if(u&&this.placeholderNode){var v=V(u),m=V(this.placeholderNode),g=oe(m,v,s),c=ue(m,v,d);if(g!==void 0&&i.top===g||c!==void 0&&i.bottom===c)return}}this.prepareMeasure()}},{key:"render",value:function(){var a=this,i=this.state,s=i.affixStyle,d=i.placeholderStyle,u=this.props,v=u.affixPrefixCls,m=u.children,g=N()((0,L.Z)({},v,!!s)),c=(0,ee.Z)(this.props,["prefixCls","offsetTop","offsetBottom","target","onChange","affixPrefixCls"]);return l.createElement(W.Z,{onResize:function(){a.updatePosition()}},l.createElement("div",(0,Z.Z)({},c,{ref:this.savePlaceholderNode}),s&&l.createElement("div",{style:d,"aria-hidden":"true"}),l.createElement("div",{className:g,ref:this.saveFixedNode,style:s},l.createElement(W.Z,{onResize:function(){a.updatePosition()}},m))))}}]),r}(l.Component);re.contextType=D.E_,se([Y()],re.prototype,"updatePosition",null),se([Y()],re.prototype,"lazyUpdatePosition",null);var Ie=l.forwardRef(function(o,e){var r=o.prefixCls,t=l.useContext(D.E_),a=t.getPrefixCls,i=a("affix",r),s=(0,Z.Z)((0,Z.Z)({},o),{affixPrefixCls:i});return l.createElement(re,(0,Z.Z)({},s,{ref:e}))}),Le=Ie,Ft=n(84305),xe=n(39559),Kt=n(59903),Ht=n(94233),zt=n(81262),$t=n(59250),wt=n(30887),Gt=n(49111),Ce=n(28481),Ue=n(6700),We=n(93488),Fe=n(30470),Ke=n(51890),He=n(50344),ze=n(28682),$e=n(96159),we=n(57254),Ge=n(81555),Xe=function(o,e){var r={};for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&e.indexOf(t)<0&&(r[t]=o[t]);if(o!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,t=Object.getOwnPropertySymbols(o);a0){var M=[];x=d.map(function(C){var F=Ee(C.path,c);F&&M.push(F);var U;C.children&&C.children.length&&(U=l.createElement(ze.Z,{items:C.children.map(function(K){return{key:K.path||K.breadcrumbName,label:m(K,c,d,ke(M,K.path,c))}})}));var w={separator:a};return U&&(w.overlay=U),l.createElement(ye,(0,Z.Z)({},w,{key:F||C.breadcrumbName}),m(C,c,d,M))})}else u&&(x=(0,He.Z)(u).map(function(C,F){return C&&(0,$e.Tm)(C,{separator:a,key:F})}));var j=N()(T,(0,L.Z)({},"".concat(T,"-rtl"),p==="rtl"),s);return l.createElement("nav",(0,Z.Z)({className:j,style:i},y),l.createElement("ol",null,x))};he.Item=ye,he.Separator=Ye;var _e=he,qe=_e,et=n(42051),tt=n(19650),rt=n(34952),at=function(e,r,t){return!r||!t?null:l.createElement(et.Z,{componentName:"PageHeader"},function(a){return l.createElement("div",{className:"".concat(e,"-back")},l.createElement(rt.Z,{onClick:function(s){t==null||t(s)},className:"".concat(e,"-back-button"),"aria-label":a.back},r))})},nt=function(e){return l.createElement(qe,(0,Z.Z)({},e))},ot=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"ltr";return e.backIcon!==void 0?e.backIcon:r==="rtl"?l.createElement(We.Z,null):l.createElement(Ue.Z,null)},it=function(e,r){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"ltr",a=r.title,i=r.avatar,s=r.subTitle,d=r.tags,u=r.extra,v=r.onBack,m="".concat(e,"-heading"),g=a||s||d||u;if(!g)return null;var c=ot(r,t),y=at(e,c,v),f=y||i||g;return l.createElement("div",{className:m},f&&l.createElement("div",{className:"".concat(m,"-left")},y,i&&l.createElement(Ke.C,(0,Z.Z)({},i)),a&&l.createElement("span",{className:"".concat(m,"-title"),title:typeof a=="string"?a:void 0},a),s&&l.createElement("span",{className:"".concat(m,"-sub-title"),title:typeof s=="string"?s:void 0},s),d&&l.createElement("span",{className:"".concat(m,"-tags")},d)),u&&l.createElement("span",{className:"".concat(m,"-extra")},l.createElement(tt.Z,null,u)))},lt=function(e,r){return r?l.createElement("div",{className:"".concat(e,"-footer")},r):null},st=function(e,r){return l.createElement("div",{className:"".concat(e,"-content")},r)},dt=function(e){var r=(0,Fe.Z)(!1),t=(0,Ce.Z)(r,2),a=t[0],i=t[1],s=function(u){var v=u.width;i(v<768,!0)};return l.createElement(D.C,null,function(d){var u,v=d.getPrefixCls,m=d.pageHeader,g=d.direction,c,y=e.prefixCls,f=e.style,b=e.footer,p=e.children,x=e.breadcrumb,T=e.breadcrumbRender,M=e.className,j=!0;"ghost"in e?j=e.ghost:m&&"ghost"in m&&(j=m.ghost);var C=v("page-header",y),F=function(){return(x==null?void 0:x.routes)?nt(x):null},U=F(),w=x&&"props"in x,K=(c=T==null?void 0:T(e,U))!==null&&c!==void 0?c:U,A=w?x:K,ie=N()(C,M,(u={"has-breadcrumb":!!A,"has-footer":!!b},(0,L.Z)(u,"".concat(C,"-ghost"),j),(0,L.Z)(u,"".concat(C,"-rtl"),g==="rtl"),(0,L.Z)(u,"".concat(C,"-compact"),a),u));return l.createElement(W.Z,{onResize:s},l.createElement("div",{className:ie,style:f},A,it(C,e,g),p&&st(C,p),lt(C,b)))})},ct=dt,pe=n(81253),h=n(28991),Xt=n(18106),Ze=n(95562),P=n(85893),Oe=n(64335),ft=n(85224),ut=n(21349),vt=n(83832),mt=function(e){if(!e)return 1;var r=e.backingStorePixelRatio||e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1;return(window.devicePixelRatio||1)/r},ht=function(e){var r=e.children,t=e.style,a=e.className,i=e.markStyle,s=e.markClassName,d=e.zIndex,u=d===void 0?9:d,v=e.gapX,m=v===void 0?212:v,g=e.gapY,c=g===void 0?222:g,y=e.width,f=y===void 0?120:y,b=e.height,p=b===void 0?64:b,x=e.rotate,T=x===void 0?-22:x,M=e.image,j=e.content,C=e.offsetLeft,F=e.offsetTop,U=e.fontStyle,w=U===void 0?"normal":U,K=e.fontWeight,A=K===void 0?"normal":K,ie=e.fontColor,ge=ie===void 0?"rgba(0,0,0,.15)":ie,Re=e.fontSize,Ne=Re===void 0?16:Re,Te=e.fontFamily,Me=Te===void 0?"sans-serif":Te,Ot=e.prefixCls,Rt=(0,l.useContext)(xe.ZP.ConfigContext),Nt=Rt.getPrefixCls,Be=Nt("pro-layout-watermark",Ot),Tt=N()("".concat(Be,"-wrapper"),a),Mt=N()(Be,s),Bt=(0,l.useState)(""),De=(0,Ce.Z)(Bt,2),Se=De[0],je=De[1];return(0,l.useEffect)(function(){var de=document.createElement("canvas"),J=de.getContext("2d"),ae=mt(J),Dt="".concat((m+f)*ae,"px"),St="".concat((c+p)*ae,"px"),jt=C||m/2,At=F||c/2;if(de.setAttribute("width",Dt),de.setAttribute("height",St),J){J.translate(jt*ae,At*ae),J.rotate(Math.PI/180*Number(T));var It=f*ae,Ae=p*ae;if(M){var ce=new Image;ce.crossOrigin="anonymous",ce.referrerPolicy="no-referrer",ce.src=M,ce.onload=function(){J.drawImage(ce,0,0,It,Ae),je(de.toDataURL())}}else if(j){var Lt=Number(Ne)*ae;J.font="".concat(w," normal ").concat(A," ").concat(Lt,"px/").concat(Ae,"px ").concat(Me),J.fillStyle=ge,Array.isArray(j)?j==null||j.forEach(function(Ut,Wt){return J.fillText(Ut,0,Wt*50)}):J.fillText(j,0,0),je(de.toDataURL())}}else console.error("\u5F53\u524D\u73AF\u5883\u4E0D\u652F\u6301Canvas")},[m,c,C,F,T,w,A,f,p,Me,ge,M,j,Ne]),(0,P.jsxs)("div",{style:(0,h.Z)({position:"relative"},t),className:Tt,children:[r,(0,P.jsx)("div",{className:Mt,style:(0,h.Z)((0,h.Z)({zIndex:u,position:"absolute",left:0,top:0,width:"100%",height:"100%",backgroundSize:"".concat(m+f,"px"),pointerEvents:"none",backgroundRepeat:"repeat"},Se?{backgroundImage:"url('".concat(Se,"')")}:null),i)})]})},gt=ht,Yt=n(12395),xt=["title","content","pageHeaderRender","header","prefixedClassName","extraContent","style","prefixCls","breadcrumbRender"],Ct=["children","loading","className","style","footer","affixProps","ghost","fixedHeader","breadcrumbRender"];function Pt(o){return(0,I.Z)(o)==="object"?o:{spinning:o}}var yt=function(e){var r=e.tabList,t=e.tabActiveKey,a=e.onTabChange,i=e.tabBarExtraContent,s=e.tabProps,d=e.prefixedClassName;return Array.isArray(r)||i?(0,P.jsx)(Ze.Z,(0,h.Z)((0,h.Z)({className:"".concat(d,"-tabs"),activeKey:t,onChange:function(v){a&&a(v)},tabBarExtraContent:i},s),{},{children:r==null?void 0:r.map(function(u,v){return(0,l.createElement)(Ze.Z.TabPane,(0,h.Z)((0,h.Z)({},u),{},{tab:u.tab,key:u.key||v}))})})):null},bt=function(e,r,t){return!e&&!r?null:(0,P.jsx)("div",{className:"".concat(t,"-detail"),children:(0,P.jsx)("div",{className:"".concat(t,"-main"),children:(0,P.jsxs)("div",{className:"".concat(t,"-row"),children:[e&&(0,P.jsx)("div",{className:"".concat(t,"-content"),children:e}),r&&(0,P.jsx)("div",{className:"".concat(t,"-extraContent"),children:r})]})})})},Vt=function(e){var r=useContext(RouteContext);return _jsx("div",{style:{height:"100%",display:"flex",alignItems:"center"},children:_jsx(_Breadcrumb,_objectSpread(_objectSpread(_objectSpread({},r==null?void 0:r.breadcrumb),r==null?void 0:r.breadcrumbProps),e))})},Et=function(e){var r,t=(0,l.useContext)(Oe.Z),a=e.title,i=e.content,s=e.pageHeaderRender,d=e.header,u=e.prefixedClassName,v=e.extraContent,m=e.style,g=e.prefixCls,c=e.breadcrumbRender,y=(0,pe.Z)(e,xt),f=(0,l.useMemo)(function(){if(!!c)return c},[c]);if(s===!1)return null;if(s)return(0,P.jsxs)(P.Fragment,{children:[" ",s((0,h.Z)((0,h.Z)({},e),t))]});var b=a;!a&&a!==!1&&(b=t.title);var p=(0,h.Z)((0,h.Z)((0,h.Z)({},t),{},{title:b},y),{},{footer:yt((0,h.Z)((0,h.Z)({},y),{},{breadcrumbRender:c,prefixedClassName:u}))},d),x=p.breadcrumb,T=(!x||!(x==null?void 0:x.itemRender)&&!(x==null||(r=x.routes)===null||r===void 0?void 0:r.length))&&!c;return["title","subTitle","extra","tags","footer","avatar","backIcon"].every(function(M){return!p[M]})&&T&&!i&&!v?null:(0,P.jsx)("div",{className:"".concat(u,"-warp"),children:(0,P.jsx)(ct,(0,h.Z)((0,h.Z)({},p),{},{breadcrumb:c===!1?void 0:(0,h.Z)((0,h.Z)({},p.breadcrumb),t.breadcrumbProps),breadcrumbRender:f,prefixCls:g,children:(d==null?void 0:d.children)||bt(i,v,u)}))})},pt=function(e){var r,t,a=e.children,i=e.loading,s=i===void 0?!1:i,d=e.className,u=e.style,v=e.footer,m=e.affixProps,g=e.ghost,c=e.fixedHeader,y=e.breadcrumbRender,f=(0,pe.Z)(e,Ct),b=(0,l.useContext)(Oe.Z),p=(0,l.useContext)(xe.ZP.ConfigContext),x=p.getPrefixCls,T=e.prefixCls||x("pro"),M="".concat(T,"-page-container"),j=N()(M,d,(r={},(0,L.Z)(r,"".concat(T,"-page-container-ghost"),g),(0,L.Z)(r,"".concat(T,"-page-container-with-footer"),v),r)),C=(0,l.useMemo)(function(){return a?(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)("div",{className:"".concat(M,"-children-content"),children:a}),b.hasFooterToolbar&&(0,P.jsx)("div",{style:{height:48,marginTop:24}})]}):null},[a,M,b.hasFooterToolbar]),F=(0,l.useMemo)(function(){var A;return y==!1?!1:y||(f==null||(A=f.header)===null||A===void 0?void 0:A.breadcrumbRender)},[y,f==null||(t=f.header)===null||t===void 0?void 0:t.breadcrumbRender]),U=(0,P.jsx)(Et,(0,h.Z)((0,h.Z)({},f),{},{breadcrumbRender:F,ghost:g,prefixCls:void 0,prefixedClassName:M})),w=(0,l.useMemo)(function(){if(l.isValidElement(s))return s;if(typeof s=="boolean"&&!s)return null;var A=Pt(s);return A.spinning?(0,P.jsx)(vt.Z,(0,h.Z)({},A)):null},[s]),K=(0,l.useMemo)(function(){var A=w||C;if(e.waterMarkProps||b.waterMarkProps){var ie=(0,h.Z)((0,h.Z)({},b.waterMarkProps),e.waterMarkProps);return(0,P.jsx)(gt,(0,h.Z)((0,h.Z)({},ie),{},{children:A}))}return A},[e.waterMarkProps,b.waterMarkProps,w,C]);return(0,P.jsxs)("div",{style:u,className:j,children:[c&&U?(0,P.jsx)(Le,(0,h.Z)((0,h.Z)({offsetTop:b.hasHeader&&b.fixedHeader?b.headerHeight:0},m),{},{children:U})):U,K&&(0,P.jsx)(ut.Z,{children:K}),v&&(0,P.jsx)(ft.Z,{prefixCls:T,children:v})]})},Zt=pt},56264:function(){},53645:function(){},12395:function(){},70883:function(){},81262:function(){},59903:function(){},34952:function(fe,G,n){"use strict";var B=n(22122),Q=n(15105),Z=n(67294),L=function(O,$){var I={};for(var R in O)Object.prototype.hasOwnProperty.call(O,R)&&$.indexOf(R)<0&&(I[R]=O[R]);if(O!=null&&typeof Object.getOwnPropertySymbols=="function")for(var N=0,R=Object.getOwnPropertySymbols(O);No.top-r)return r+e.top}function ue(o,e,r){if(r!==void 0&&e.bottom=0;d--)(s=o[d])&&(i=(a<3?s(i):a>3?s(e,r,i):s(e,r))||i);return a>3&&i&&Object.defineProperty(e,r,i),i};function te(){return typeof window!="undefined"?window:null}var q;(function(o){o[o.None=0]="None",o[o.Prepare=1]="Prepare"})(q||(q={}));var re=function(o){(0,O.Z)(r,o);var e=(0,$.Z)(r);function r(){var t;return(0,H.Z)(this,r),t=e.apply(this,arguments),t.state={status:q.None,lastAffix:!1,prevTarget:null},t.getOffsetTop=function(){var a=t.props,i=a.offsetBottom,s=a.offsetTop;return i===void 0&&s===void 0?0:s},t.getOffsetBottom=function(){return t.props.offsetBottom},t.savePlaceholderNode=function(a){t.placeholderNode=a},t.saveFixedNode=function(a){t.fixedNode=a},t.measure=function(){var a=t.state,i=a.status,s=a.lastAffix,d=t.props.onChange,u=t.getTargetFunc();if(!(i!==q.Prepare||!t.fixedNode||!t.placeholderNode||!u)){var v=t.getOffsetTop(),m=t.getOffsetBottom(),g=u();if(!!g){var c={status:q.None},y=V(g),f=V(t.placeholderNode),b=oe(f,y,v),p=ue(f,y,m);f.top===0&&f.left===0&&f.width===0&&f.height===0||(b!==void 0?(c.affixStyle={position:"fixed",top:b,width:f.width,height:f.height},c.placeholderStyle={width:f.width,height:f.height}):p!==void 0&&(c.affixStyle={position:"fixed",bottom:p,width:f.width,height:f.height},c.placeholderStyle={width:f.width,height:f.height}),c.lastAffix=!!c.affixStyle,d&&s!==c.lastAffix&&d(c.lastAffix),t.setState(c))}}},t.prepareMeasure=function(){if(t.setState({status:q.Prepare,affixStyle:void 0,placeholderStyle:void 0}),!1)var a},t}return(0,k.Z)(r,[{key:"getTargetFunc",value:function(){var a=this.context.getTargetContainer,i=this.props.target;return i!==void 0?i:a!=null?a:te}},{key:"componentDidMount",value:function(){var a=this,i=this.getTargetFunc();i&&(this.timeout=setTimeout(function(){E(i(),a),a.updatePosition()}))}},{key:"componentDidUpdate",value:function(a){var i=this.state.prevTarget,s=this.getTargetFunc(),d=(s==null?void 0:s())||null;i!==d&&(le(this),d&&(E(d,this),this.updatePosition()),this.setState({prevTarget:d})),(a.offsetTop!==this.props.offsetTop||a.offsetBottom!==this.props.offsetBottom)&&this.updatePosition(),this.measure()}},{key:"componentWillUnmount",value:function(){clearTimeout(this.timeout),le(this),this.updatePosition.cancel(),this.lazyUpdatePosition.cancel()}},{key:"updatePosition",value:function(){this.prepareMeasure()}},{key:"lazyUpdatePosition",value:function(){var a=this.getTargetFunc(),i=this.state.affixStyle;if(a&&i){var s=this.getOffsetTop(),d=this.getOffsetBottom(),u=a();if(u&&this.placeholderNode){var v=V(u),m=V(this.placeholderNode),g=oe(m,v,s),c=ue(m,v,d);if(g!==void 0&&i.top===g||c!==void 0&&i.bottom===c)return}}this.prepareMeasure()}},{key:"render",value:function(){var a=this,i=this.state,s=i.affixStyle,d=i.placeholderStyle,u=this.props,v=u.affixPrefixCls,m=u.children,g=N()((0,L.Z)({},v,!!s)),c=(0,ee.Z)(this.props,["prefixCls","offsetTop","offsetBottom","target","onChange","affixPrefixCls"]);return l.createElement(W.Z,{onResize:function(){a.updatePosition()}},l.createElement("div",(0,Z.Z)({},c,{ref:this.savePlaceholderNode}),s&&l.createElement("div",{style:d,"aria-hidden":"true"}),l.createElement("div",{className:g,ref:this.saveFixedNode,style:s},l.createElement(W.Z,{onResize:function(){a.updatePosition()}},m))))}}]),r}(l.Component);re.contextType=D.E_,se([Y()],re.prototype,"updatePosition",null),se([Y()],re.prototype,"lazyUpdatePosition",null);var Ie=l.forwardRef(function(o,e){var r=o.prefixCls,t=l.useContext(D.E_),a=t.getPrefixCls,i=a("affix",r),s=(0,Z.Z)((0,Z.Z)({},o),{affixPrefixCls:i});return l.createElement(re,(0,Z.Z)({},s,{ref:e}))}),Le=Ie,Ft=n(84305),xe=n(39559),Kt=n(59903),Ht=n(94233),zt=n(81262),$t=n(59250),wt=n(30887),Gt=n(49111),Ce=n(28481),Ue=n(6700),We=n(93488),Fe=n(30470),Ke=n(51890),He=n(50344),ze=n(28682),$e=n(96159),we=n(57254),Ge=n(40383),Xe=function(o,e){var r={};for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&e.indexOf(t)<0&&(r[t]=o[t]);if(o!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,t=Object.getOwnPropertySymbols(o);a0){var M=[];x=d.map(function(C){var F=Ee(C.path,c);F&&M.push(F);var U;C.children&&C.children.length&&(U=l.createElement(ze.Z,{items:C.children.map(function(K){return{key:K.path||K.breadcrumbName,label:m(K,c,d,ke(M,K.path,c))}})}));var w={separator:a};return U&&(w.overlay=U),l.createElement(ye,(0,Z.Z)({},w,{key:F||C.breadcrumbName}),m(C,c,d,M))})}else u&&(x=(0,He.Z)(u).map(function(C,F){return C&&(0,$e.Tm)(C,{separator:a,key:F})}));var j=N()(T,(0,L.Z)({},"".concat(T,"-rtl"),p==="rtl"),s);return l.createElement("nav",(0,Z.Z)({className:j,style:i},y),l.createElement("ol",null,x))};he.Item=ye,he.Separator=Ye;var _e=he,qe=_e,et=n(42051),tt=n(19650),rt=n(34952),at=function(e,r,t){return!r||!t?null:l.createElement(et.Z,{componentName:"PageHeader"},function(a){return l.createElement("div",{className:"".concat(e,"-back")},l.createElement(rt.Z,{onClick:function(s){t==null||t(s)},className:"".concat(e,"-back-button"),"aria-label":a.back},r))})},nt=function(e){return l.createElement(qe,(0,Z.Z)({},e))},ot=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"ltr";return e.backIcon!==void 0?e.backIcon:r==="rtl"?l.createElement(We.Z,null):l.createElement(Ue.Z,null)},it=function(e,r){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"ltr",a=r.title,i=r.avatar,s=r.subTitle,d=r.tags,u=r.extra,v=r.onBack,m="".concat(e,"-heading"),g=a||s||d||u;if(!g)return null;var c=ot(r,t),y=at(e,c,v),f=y||i||g;return l.createElement("div",{className:m},f&&l.createElement("div",{className:"".concat(m,"-left")},y,i&&l.createElement(Ke.C,(0,Z.Z)({},i)),a&&l.createElement("span",{className:"".concat(m,"-title"),title:typeof a=="string"?a:void 0},a),s&&l.createElement("span",{className:"".concat(m,"-sub-title"),title:typeof s=="string"?s:void 0},s),d&&l.createElement("span",{className:"".concat(m,"-tags")},d)),u&&l.createElement("span",{className:"".concat(m,"-extra")},l.createElement(tt.Z,null,u)))},lt=function(e,r){return r?l.createElement("div",{className:"".concat(e,"-footer")},r):null},st=function(e,r){return l.createElement("div",{className:"".concat(e,"-content")},r)},dt=function(e){var r=(0,Fe.Z)(!1),t=(0,Ce.Z)(r,2),a=t[0],i=t[1],s=function(u){var v=u.width;i(v<768,!0)};return l.createElement(D.C,null,function(d){var u,v=d.getPrefixCls,m=d.pageHeader,g=d.direction,c,y=e.prefixCls,f=e.style,b=e.footer,p=e.children,x=e.breadcrumb,T=e.breadcrumbRender,M=e.className,j=!0;"ghost"in e?j=e.ghost:m&&"ghost"in m&&(j=m.ghost);var C=v("page-header",y),F=function(){return(x==null?void 0:x.routes)?nt(x):null},U=F(),w=x&&"props"in x,K=(c=T==null?void 0:T(e,U))!==null&&c!==void 0?c:U,A=w?x:K,ie=N()(C,M,(u={"has-breadcrumb":!!A,"has-footer":!!b},(0,L.Z)(u,"".concat(C,"-ghost"),j),(0,L.Z)(u,"".concat(C,"-rtl"),g==="rtl"),(0,L.Z)(u,"".concat(C,"-compact"),a),u));return l.createElement(W.Z,{onResize:s},l.createElement("div",{className:ie,style:f},A,it(C,e,g),p&&st(C,p),lt(C,b)))})},ct=dt,pe=n(81253),h=n(28991),Xt=n(18106),Ze=n(36166),P=n(85893),Oe=n(64335),ft=n(85224),ut=n(21349),vt=n(83832),mt=function(e){if(!e)return 1;var r=e.backingStorePixelRatio||e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1;return(window.devicePixelRatio||1)/r},ht=function(e){var r=e.children,t=e.style,a=e.className,i=e.markStyle,s=e.markClassName,d=e.zIndex,u=d===void 0?9:d,v=e.gapX,m=v===void 0?212:v,g=e.gapY,c=g===void 0?222:g,y=e.width,f=y===void 0?120:y,b=e.height,p=b===void 0?64:b,x=e.rotate,T=x===void 0?-22:x,M=e.image,j=e.content,C=e.offsetLeft,F=e.offsetTop,U=e.fontStyle,w=U===void 0?"normal":U,K=e.fontWeight,A=K===void 0?"normal":K,ie=e.fontColor,ge=ie===void 0?"rgba(0,0,0,.15)":ie,Re=e.fontSize,Ne=Re===void 0?16:Re,Te=e.fontFamily,Me=Te===void 0?"sans-serif":Te,Ot=e.prefixCls,Rt=(0,l.useContext)(xe.ZP.ConfigContext),Nt=Rt.getPrefixCls,Be=Nt("pro-layout-watermark",Ot),Tt=N()("".concat(Be,"-wrapper"),a),Mt=N()(Be,s),Bt=(0,l.useState)(""),De=(0,Ce.Z)(Bt,2),Se=De[0],je=De[1];return(0,l.useEffect)(function(){var de=document.createElement("canvas"),J=de.getContext("2d"),ae=mt(J),Dt="".concat((m+f)*ae,"px"),St="".concat((c+p)*ae,"px"),jt=C||m/2,At=F||c/2;if(de.setAttribute("width",Dt),de.setAttribute("height",St),J){J.translate(jt*ae,At*ae),J.rotate(Math.PI/180*Number(T));var It=f*ae,Ae=p*ae;if(M){var ce=new Image;ce.crossOrigin="anonymous",ce.referrerPolicy="no-referrer",ce.src=M,ce.onload=function(){J.drawImage(ce,0,0,It,Ae),je(de.toDataURL())}}else if(j){var Lt=Number(Ne)*ae;J.font="".concat(w," normal ").concat(A," ").concat(Lt,"px/").concat(Ae,"px ").concat(Me),J.fillStyle=ge,Array.isArray(j)?j==null||j.forEach(function(Ut,Wt){return J.fillText(Ut,0,Wt*50)}):J.fillText(j,0,0),je(de.toDataURL())}}else console.error("\u5F53\u524D\u73AF\u5883\u4E0D\u652F\u6301Canvas")},[m,c,C,F,T,w,A,f,p,Me,ge,M,j,Ne]),(0,P.jsxs)("div",{style:(0,h.Z)({position:"relative"},t),className:Tt,children:[r,(0,P.jsx)("div",{className:Mt,style:(0,h.Z)((0,h.Z)({zIndex:u,position:"absolute",left:0,top:0,width:"100%",height:"100%",backgroundSize:"".concat(m+f,"px"),pointerEvents:"none",backgroundRepeat:"repeat"},Se?{backgroundImage:"url('".concat(Se,"')")}:null),i)})]})},gt=ht,Yt=n(12395),xt=["title","content","pageHeaderRender","header","prefixedClassName","extraContent","style","prefixCls","breadcrumbRender"],Ct=["children","loading","className","style","footer","affixProps","ghost","fixedHeader","breadcrumbRender"];function Pt(o){return(0,I.Z)(o)==="object"?o:{spinning:o}}var yt=function(e){var r=e.tabList,t=e.tabActiveKey,a=e.onTabChange,i=e.tabBarExtraContent,s=e.tabProps,d=e.prefixedClassName;return Array.isArray(r)||i?(0,P.jsx)(Ze.Z,(0,h.Z)((0,h.Z)({className:"".concat(d,"-tabs"),activeKey:t,onChange:function(v){a&&a(v)},tabBarExtraContent:i},s),{},{children:r==null?void 0:r.map(function(u,v){return(0,l.createElement)(Ze.Z.TabPane,(0,h.Z)((0,h.Z)({},u),{},{tab:u.tab,key:u.key||v}))})})):null},bt=function(e,r,t){return!e&&!r?null:(0,P.jsx)("div",{className:"".concat(t,"-detail"),children:(0,P.jsx)("div",{className:"".concat(t,"-main"),children:(0,P.jsxs)("div",{className:"".concat(t,"-row"),children:[e&&(0,P.jsx)("div",{className:"".concat(t,"-content"),children:e}),r&&(0,P.jsx)("div",{className:"".concat(t,"-extraContent"),children:r})]})})})},Vt=function(e){var r=useContext(RouteContext);return _jsx("div",{style:{height:"100%",display:"flex",alignItems:"center"},children:_jsx(_Breadcrumb,_objectSpread(_objectSpread(_objectSpread({},r==null?void 0:r.breadcrumb),r==null?void 0:r.breadcrumbProps),e))})},Et=function(e){var r,t=(0,l.useContext)(Oe.Z),a=e.title,i=e.content,s=e.pageHeaderRender,d=e.header,u=e.prefixedClassName,v=e.extraContent,m=e.style,g=e.prefixCls,c=e.breadcrumbRender,y=(0,pe.Z)(e,xt),f=(0,l.useMemo)(function(){if(!!c)return c},[c]);if(s===!1)return null;if(s)return(0,P.jsxs)(P.Fragment,{children:[" ",s((0,h.Z)((0,h.Z)({},e),t))]});var b=a;!a&&a!==!1&&(b=t.title);var p=(0,h.Z)((0,h.Z)((0,h.Z)({},t),{},{title:b},y),{},{footer:yt((0,h.Z)((0,h.Z)({},y),{},{breadcrumbRender:c,prefixedClassName:u}))},d),x=p.breadcrumb,T=(!x||!(x==null?void 0:x.itemRender)&&!(x==null||(r=x.routes)===null||r===void 0?void 0:r.length))&&!c;return["title","subTitle","extra","tags","footer","avatar","backIcon"].every(function(M){return!p[M]})&&T&&!i&&!v?null:(0,P.jsx)("div",{className:"".concat(u,"-warp"),children:(0,P.jsx)(ct,(0,h.Z)((0,h.Z)({},p),{},{breadcrumb:c===!1?void 0:(0,h.Z)((0,h.Z)({},p.breadcrumb),t.breadcrumbProps),breadcrumbRender:f,prefixCls:g,children:(d==null?void 0:d.children)||bt(i,v,u)}))})},pt=function(e){var r,t,a=e.children,i=e.loading,s=i===void 0?!1:i,d=e.className,u=e.style,v=e.footer,m=e.affixProps,g=e.ghost,c=e.fixedHeader,y=e.breadcrumbRender,f=(0,pe.Z)(e,Ct),b=(0,l.useContext)(Oe.Z),p=(0,l.useContext)(xe.ZP.ConfigContext),x=p.getPrefixCls,T=e.prefixCls||x("pro"),M="".concat(T,"-page-container"),j=N()(M,d,(r={},(0,L.Z)(r,"".concat(T,"-page-container-ghost"),g),(0,L.Z)(r,"".concat(T,"-page-container-with-footer"),v),r)),C=(0,l.useMemo)(function(){return a?(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)("div",{className:"".concat(M,"-children-content"),children:a}),b.hasFooterToolbar&&(0,P.jsx)("div",{style:{height:48,marginTop:24}})]}):null},[a,M,b.hasFooterToolbar]),F=(0,l.useMemo)(function(){var A;return y==!1?!1:y||(f==null||(A=f.header)===null||A===void 0?void 0:A.breadcrumbRender)},[y,f==null||(t=f.header)===null||t===void 0?void 0:t.breadcrumbRender]),U=(0,P.jsx)(Et,(0,h.Z)((0,h.Z)({},f),{},{breadcrumbRender:F,ghost:g,prefixCls:void 0,prefixedClassName:M})),w=(0,l.useMemo)(function(){if(l.isValidElement(s))return s;if(typeof s=="boolean"&&!s)return null;var A=Pt(s);return A.spinning?(0,P.jsx)(vt.Z,(0,h.Z)({},A)):null},[s]),K=(0,l.useMemo)(function(){var A=w||C;if(e.waterMarkProps||b.waterMarkProps){var ie=(0,h.Z)((0,h.Z)({},b.waterMarkProps),e.waterMarkProps);return(0,P.jsx)(gt,(0,h.Z)((0,h.Z)({},ie),{},{children:A}))}return A},[e.waterMarkProps,b.waterMarkProps,w,C]);return(0,P.jsxs)("div",{style:u,className:j,children:[c&&U?(0,P.jsx)(Le,(0,h.Z)((0,h.Z)({offsetTop:b.hasHeader&&b.fixedHeader?b.headerHeight:0},m),{},{children:U})):U,K&&(0,P.jsx)(ut.Z,{children:K}),v&&(0,P.jsx)(ft.Z,{prefixCls:T,children:v})]})},Zt=pt},56264:function(){},53645:function(){},12395:function(){},70883:function(){},81262:function(){},59903:function(){},34952:function(fe,G,n){"use strict";var B=n(22122),Q=n(15105),Z=n(67294),L=function(O,$){var I={};for(var R in O)Object.prototype.hasOwnProperty.call(O,R)&&$.indexOf(R)<0&&(I[R]=O[R]);if(O!=null&&typeof Object.getOwnPropertySymbols=="function")for(var N=0,R=Object.getOwnPropertySymbols(O);N]*>/,ut={tr:document.createElement("tbody"),tbody:j,thead:j,tfoot:j,td:E,th:E,"*":document.createElement("div")}}function Q(W){j||pt();var $=wt.test(W)&&RegExp.$1;(!$||!($ in ut))&&($="*");var at=ut[$];W=typeof W=="string"?W.replace(/(^\s*)|(\s*$)/g,""):W,at.innerHTML=""+W;var yt=at.childNodes[0];return yt&&at.contains(yt)&&at.removeChild(yt),yt}},45442:function(nr,St,U){"use strict";U.d(St,{Z:function(){return j}});function j(E,wt){if(E)for(var ut in wt)wt.hasOwnProperty(ut)&&(E.style[ut]=wt[ut]);return E}},90494:function(nr,St){"use strict";var U="*",j=function(){function E(){this._events={}}return E.prototype.on=function(wt,ut,pt){return this._events[wt]||(this._events[wt]=[]),this._events[wt].push({callback:ut,once:!!pt}),this},E.prototype.once=function(wt,ut){return this.on(wt,ut,!0)},E.prototype.emit=function(wt){for(var ut=this,pt=[],Q=1;Q=0&&k._call.call(null,m),k=k._next;--Q}function z(){H=(G=O.now())+X,Q=W=0;try{P()}finally{Q=0,dt(),H=0}}function Z(){var k=O.now(),m=k-G;m>at&&(X-=m,G=k)}function dt(){for(var k,m=yt,R,J=Infinity;m;)m._call?(J>m._time&&(J=m._time),k=m,m=m._next):(R=m._next,m._next=null,m=k?k._next=R:yt=R);lt=k,Et(J)}function Et(k){if(!Q){W&&(W=clearTimeout(W));var m=k-H;m>24?(k>8&15|m>>4&240,m>>4&15|m&240,(m&15)<<4|m&15,1):R===8?t(m>>24&255,m>>16&255,m>>8&255,(m&255)/255):R===4?t(m>>12&15|m>>8&240,m>>8&15|m>>4&240,m>>4&15|m&240,((m&15)<<4|m&15)/255):null):(m=l.exec(k))?new e(m[1],m[2],m[3],1):(m=T.exec(k))?new e(m[1]*255/100,m[2]*255/100,m[3]*255/100,1):(m=q.exec(k))?t(m[1],m[2],m[3],m[4]):(m=xt.exec(k))?t(m[1]*255/100,m[2]*255/100,m[3]*255/100,m[4]):(m=x.exec(k))?y(m[1],m[2]/100,m[3]/100,1):(m=b.exec(k))?y(m[1],m[2]/100,m[3]/100,m[4]):I.hasOwnProperty(k)?r(I[k]):k==="transparent"?new e(NaN,NaN,NaN,0):null}function r(k){return new e(k>>16&255,k>>8&255,k&255,1)}function t(k,m,R,J){return J<=0&&(k=m=R=NaN),new e(k,m,R,J)}function o(k){return k instanceof Ht||(k=f(k)),k?(k=k.rgb(),new e(k.r,k.g,k.b,k.opacity)):new e}function n(k,m,R,J){return arguments.length===1?o(k):new e(k,m,R,J==null?1:J)}function e(k,m,R,J){this.r=+k,this.g=+m,this.b=+R,this.opacity=+J}Ot(e,n,Kt(Ht,{brighter:function(m){return m=m==null?Lt:Math.pow(Lt,m),new e(this.r*m,this.g*m,this.b*m,this.opacity)},darker:function(m){return m=m==null?Bt:Math.pow(Bt,m),new e(this.r*m,this.g*m,this.b*m,this.opacity)},rgb:function(){return this},clamp:function(){return new e(d(this.r),d(this.g),d(this.b),w(this.opacity))},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:c,formatHex:c,formatHex8:v,formatRgb:_,toString:_}));function c(){return"#".concat(u(this.r)).concat(u(this.g)).concat(u(this.b))}function v(){return"#".concat(u(this.r)).concat(u(this.g)).concat(u(this.b)).concat(u((isNaN(this.opacity)?1:this.opacity)*255))}function _(){var k=w(this.opacity);return"".concat(k===1?"rgb(":"rgba(").concat(d(this.r),", ").concat(d(this.g),", ").concat(d(this.b)).concat(k===1?")":", ".concat(k,")"))}function w(k){return isNaN(k)?1:Math.max(0,Math.min(1,k))}function d(k){return Math.max(0,Math.min(255,Math.round(k)||0))}function u(k){return k=d(k),(k<16?"0":"")+k.toString(16)}function y(k,m,R,J){return J<=0?k=m=R=NaN:R<=0||R>=1?k=m=NaN:m<=0&&(k=NaN),new s(k,m,R,J)}function M(k){if(k instanceof s)return new s(k.h,k.s,k.l,k.opacity);if(k instanceof Ht||(k=f(k)),!k)return new s;if(k instanceof s)return k;k=k.rgb();var m=k.r/255,R=k.g/255,J=k.b/255,At=Math.min(m,R,J),bt=Math.max(m,R,J),kt=NaN,Rt=bt-At,rr=(bt+At)/2;return Rt?(m===bt?kt=(R-J)/Rt+(R0&&rr<1?0:kt,new s(kt,Rt,rr,k.opacity)}function i(k,m,R,J){return arguments.length===1?M(k):new s(k,m,R,J==null?1:J)}function s(k,m,R,J){this.h=+k,this.s=+m,this.l=+R,this.opacity=+J}Ot(s,i,Kt(Ht,{brighter:function(m){return m=m==null?Lt:Math.pow(Lt,m),new s(this.h,this.s,this.l*m,this.opacity)},darker:function(m){return m=m==null?Bt:Math.pow(Bt,m),new s(this.h,this.s,this.l*m,this.opacity)},rgb:function(){var m=this.h%360+(this.h<0)*360,R=isNaN(m)||isNaN(this.s)?0:this.s,J=this.l,At=J+(J<.5?J:1-J)*R,bt=2*J-At;return new e(K(m>=240?m-240:m+120,bt,At),K(m,bt,At),K(m<120?m+240:m-120,bt,At),this.opacity)},clamp:function(){return new s(h(this.h),B(this.s),B(this.l),w(this.opacity))},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var m=w(this.opacity);return"".concat(m===1?"hsl(":"hsla(").concat(h(this.h),", ").concat(B(this.s)*100,"%, ").concat(B(this.l)*100,"%").concat(m===1?")":", ".concat(m,")"))}}));function h(k){return k=(k||0)%360,k<0?k+360:k}function B(k){return Math.max(0,Math.min(1,k||0))}function K(k,m,R){return(k<60?m+(R-m)*k/60:k<180?R:k<240?m+(R-m)*(240-k)/60:m)*255}function it(k,m,R,J,At){var bt=k*k,kt=bt*k;return((1-3*k+3*bt-kt)*m+(4-6*bt+3*kt)*R+(1+3*k+3*bt-3*kt)*J+kt*At)/6}function ot(k){var m=k.length-1;return function(R){var J=R<=0?R=0:R>=1?(R=1,m-1):Math.floor(R*m),At=k[J],bt=k[J+1],kt=J>0?k[J-1]:2*At-bt,Rt=J180||R<-180?R-360*Math.round(R/360):R):constant(isNaN(k)?m:k)}function Zt(k){return(k=+k)==1?Tt:function(m,R){return R-m?Ct(m,R,k):vt(isNaN(m)?R:m)}}function Tt(k,m){var R=m-k;return R?Pt(k,R):vt(isNaN(k)?m:k)}var Xt=function k(m){var R=Zt(m);function J(At,bt){var kt=R((At=n(At)).r,(bt=n(bt)).r),Rt=R(At.g,bt.g),rr=R(At.b,bt.b),sr=Tt(At.opacity,bt.opacity);return function(gr){return At.r=kt(gr),At.g=Rt(gr),At.b=rr(gr),At.opacity=sr(gr),At+""}}return J.gamma=k,J}(1);function Wt(k){return function(m){var R=m.length,J=new Array(R),At=new Array(R),bt=new Array(R),kt,Rt;for(kt=0;ktR&&(bt=m.slice(R,bt),Rt[kt]?Rt[kt]+=bt:Rt[++kt]=bt),(J=J[0])===(At=At[0])?Rt[kt]?Rt[kt]+=At:Rt[++kt]=At:(Rt[++kt]=null,rr.push({i:kt,x:ar(J,At)})),R=lr.lastIndex;return Rsr.length?(rr=pr.parsePathString(bt[Rt]),sr=pr.parsePathString(At[Rt]),sr=pr.fillPathByDiff(sr,rr),sr=pr.formatPath(sr,rr),m.fromAttrs.path=sr,m.toAttrs.path=rr):m.pathFormatted||(rr=pr.parsePathString(bt[Rt]),sr=pr.parsePathString(At[Rt]),sr=pr.formatPath(sr,rr),m.fromAttrs.path=sr,m.toAttrs.path=rr,m.pathFormatted=!0),J[Rt]=[];for(var gr=0;gr0){for(var Rt=m.animators.length-1;Rt>=0;Rt--){if(J=m.animators[Rt],J.destroyed){m.removeAnimator(Rt);continue}if(!J.isAnimatePaused()){At=J.get("animations");for(var rr=At.length-1;rr>=0;rr--)bt=At[rr],R=kr(J,bt,kt),R&&(At.splice(rr,1),R=!1,bt.callback&&bt.callback())}At.length===0&&m.removeAnimator(Rt)}var sr=m.canvas.get("autoDraw");sr||m.canvas.draw()}})},k.prototype.addAnimator=function(m){this.animators.push(m)},k.prototype.removeAnimator=function(m){this.animators.splice(m,1)},k.prototype.isAnimating=function(){return!!this.animators.length},k.prototype.stop=function(){this.timer&&this.timer.stop()},k.prototype.stopAllAnimations=function(m){m===void 0&&(m=!0),this.animators.forEach(function(R){R.stopAnimate(m)}),this.animators=[],this.canvas.draw()},k.prototype.getTime=function(){return this.current},k}(),Jr=Xr,jr=U(89473),tn=40,zr=0,rn=":",Kr=["mousedown","mouseup","dblclick","mouseout","mouseover","mousemove","mouseleave","mouseenter","touchstart","touchmove","touchend","dragenter","dragover","dragleave","drop","contextmenu","mousewheel"];function ln(k,m){for(var R in k)if(k.hasOwnProperty(R)&&R.indexOf(rn+m)>=0)return!0;return!1}function Gr(k,m,R){R.name=m,R.target=k,R.currentTarget=k,R.delegateTarget=k,k.emit(m,R)}function nn(k,m,R){if(R.bubbles){var J=void 0,At=!1;if(m==="mouseenter"?(J=R.fromShape,At=!0):m==="mouseleave"&&(At=!0,J=R.toShape),k.isCanvas()&&At)return;if(J&&(0,ut.UY)(k,J)){R.bubbles=!1;return}R.name=m,R.currentTarget=k,R.delegateTarget=k,k.emit(m,R)}}var en=function(){function k(m){var R=this;this.draggingShape=null,this.dragging=!1,this.currentShape=null,this.mousedownShape=null,this.mousedownPoint=null,this._eventCallback=function(J){var At=J.type;R._triggerEvent(At,J)},this._onDocumentMove=function(J){var At=R.canvas,bt=At.get("el");if(bt!==J.target&&(R.dragging||R.currentShape)){var kt=R._getPointInfo(J);R.dragging&&R._emitEvent("drag",J,kt,R.draggingShape)}},this._onDocumentMouseUp=function(J){var At=R.canvas,bt=At.get("el");if(bt!==J.target&&R.dragging){var kt=R._getPointInfo(J);R.draggingShape&&R._emitEvent("drop",J,kt,null),R._emitEvent("dragend",J,kt,R.draggingShape),R._afterDrag(R.draggingShape,kt,J)}},this.canvas=m.canvas}return k.prototype.init=function(){this._bindEvents()},k.prototype._bindEvents=function(){var m=this,R=this.canvas.get("el");(0,ut.S6)(Kr,function(J){R.addEventListener(J,m._eventCallback)}),document&&(document.addEventListener("mousemove",this._onDocumentMove),document.addEventListener("mouseup",this._onDocumentMouseUp))},k.prototype._clearEvents=function(){var m=this,R=this.canvas.get("el");(0,ut.S6)(Kr,function(J){R.removeEventListener(J,m._eventCallback)}),document&&(document.removeEventListener("mousemove",this._onDocumentMove),document.removeEventListener("mouseup",this._onDocumentMouseUp))},k.prototype._getEventObj=function(m,R,J,At,bt,kt){var Rt=new jr.Z(m,R);return Rt.fromShape=bt,Rt.toShape=kt,Rt.x=J.x,Rt.y=J.y,Rt.clientX=J.clientX,Rt.clientY=J.clientY,Rt.propagationPath.push(At),Rt},k.prototype._getShape=function(m,R){return this.canvas.getShape(m.x,m.y,R)},k.prototype._getPointInfo=function(m){var R=this.canvas,J=R.getClientByEvent(m),At=R.getPointByEvent(m);return{x:At.x,y:At.y,clientX:J.x,clientY:J.y}},k.prototype._triggerEvent=function(m,R){var J=this._getPointInfo(R),At=this._getShape(J,R),bt=this["_on"+m],kt=!1;if(bt)bt.call(this,J,At,R);else{var Rt=this.currentShape;m==="mouseenter"||m==="dragenter"||m==="mouseover"?(this._emitEvent(m,R,J,null,null,At),At&&this._emitEvent(m,R,J,At,null,At),m==="mouseenter"&&this.draggingShape&&this._emitEvent("dragenter",R,J,null)):m==="mouseleave"||m==="dragleave"||m==="mouseout"?(kt=!0,Rt&&this._emitEvent(m,R,J,Rt,Rt,null),this._emitEvent(m,R,J,null,Rt,null),m==="mouseleave"&&this.draggingShape&&this._emitEvent("dragleave",R,J,null)):this._emitEvent(m,R,J,At,null,null)}if(kt||(this.currentShape=At),At&&!At.get("destroyed")){var rr=this.canvas,sr=rr.get("el");sr.style.cursor=At.attr("cursor")||rr.get("cursor")}},k.prototype._onmousedown=function(m,R,J){J.button===zr&&(this.mousedownShape=R,this.mousedownPoint=m,this.mousedownTimeStamp=J.timeStamp),this._emitEvent("mousedown",J,m,R,null,null)},k.prototype._emitMouseoverEvents=function(m,R,J,At){var bt=this.canvas.get("el");J!==At&&(J&&(this._emitEvent("mouseout",m,R,J,J,At),this._emitEvent("mouseleave",m,R,J,J,At),(!At||At.get("destroyed"))&&(bt.style.cursor=this.canvas.get("cursor"))),At&&(this._emitEvent("mouseover",m,R,At,J,At),this._emitEvent("mouseenter",m,R,At,J,At)))},k.prototype._emitDragoverEvents=function(m,R,J,At,bt){At?(At!==J&&(J&&this._emitEvent("dragleave",m,R,J,J,At),this._emitEvent("dragenter",m,R,At,J,At)),bt||this._emitEvent("dragover",m,R,At)):J&&this._emitEvent("dragleave",m,R,J,J,At),bt&&this._emitEvent("dragover",m,R,At)},k.prototype._afterDrag=function(m,R,J){m&&(m.set("capture",!0),this.draggingShape=null),this.dragging=!1;var At=this._getShape(R,J);At!==m&&this._emitMouseoverEvents(J,R,m,At),this.currentShape=At},k.prototype._onmouseup=function(m,R,J){if(J.button===zr){var At=this.draggingShape;this.dragging?(At&&this._emitEvent("drop",J,m,R),this._emitEvent("dragend",J,m,At),this._afterDrag(At,m,J)):(this._emitEvent("mouseup",J,m,R),R===this.mousedownShape&&this._emitEvent("click",J,m,R),this.mousedownShape=null,this.mousedownPoint=null)}},k.prototype._ondragover=function(m,R,J){J.preventDefault();var At=this.currentShape;this._emitDragoverEvents(J,m,At,R,!0)},k.prototype._onmousemove=function(m,R,J){var At=this.canvas,bt=this.currentShape,kt=this.draggingShape;if(this.dragging)kt&&this._emitDragoverEvents(J,m,bt,R,!1),this._emitEvent("drag",J,m,kt);else{var Rt=this.mousedownPoint;if(Rt){var rr=this.mousedownShape,sr=J.timeStamp,gr=sr-this.mousedownTimeStamp,g=Rt.clientX-m.clientX,D=Rt.clientY-m.clientY,L=g*g+D*D;gr>120||L>tn?rr&&rr.get("draggable")?(kt=this.mousedownShape,kt.set("capture",!1),this.draggingShape=kt,this.dragging=!0,this._emitEvent("dragstart",J,m,kt),this.mousedownShape=null,this.mousedownPoint=null):!rr&&At.get("draggable")?(this.dragging=!0,this._emitEvent("dragstart",J,m,null),this.mousedownShape=null,this.mousedownPoint=null):(this._emitMouseoverEvents(J,m,bt,R),this._emitEvent("mousemove",J,m,R)):(this._emitMouseoverEvents(J,m,bt,R),this._emitEvent("mousemove",J,m,R))}else this._emitMouseoverEvents(J,m,bt,R),this._emitEvent("mousemove",J,m,R)}},k.prototype._emitEvent=function(m,R,J,At,bt,kt){var Rt=this._getEventObj(m,R,J,At,bt,kt);if(At){Rt.shape=At,Gr(At,m,Rt);for(var rr=At.getParent();rr;)rr.emitDelegation(m,Rt),Rt.propagationStopped||nn(rr,m,Rt),Rt.propagationPath.push(rr),rr=rr.getParent()}else{var sr=this.canvas;Gr(sr,m,Rt)}},k.prototype.destroy=function(){this._clearEvents(),this.canvas=null,this.currentShape=null,this.draggingShape=null,this.mousedownPoint=null,this.mousedownShape=null,this.mousedownTimeStamp=null},k}(),an=en,Wr="px",Zr=(0,E.qY)(),on=Zr&&Zr.name==="firefox",un=function(k){(0,j.__extends)(m,k);function m(R){var J=k.call(this,R)||this;return J.initContainer(),J.initDom(),J.initEvents(),J.initTimeline(),J}return m.prototype.getDefaultCfg=function(){var R=k.prototype.getDefaultCfg.call(this);return R.cursor="default",R.supportCSSTransform=!1,R},m.prototype.initContainer=function(){var R=this.get("container");(0,ut.HD)(R)&&(R=document.getElementById(R),this.set("container",R))},m.prototype.initDom=function(){var R=this.createDom();this.set("el",R);var J=this.get("container");J.appendChild(R),this.setDOMSize(this.get("width"),this.get("height"))},m.prototype.initEvents=function(){var R=new an({canvas:this});R.init(),this.set("eventController",R)},m.prototype.initTimeline=function(){var R=new Jr(this);this.set("timeline",R)},m.prototype.setDOMSize=function(R,J){var At=this.get("el");ut.jU&&(At.style.width=R+Wr,At.style.height=J+Wr)},m.prototype.changeSize=function(R,J){this.setDOMSize(R,J),this.set("width",R),this.set("height",J),this.onCanvasChange("changeSize")},m.prototype.getRenderer=function(){return this.get("renderer")},m.prototype.getCursor=function(){return this.get("cursor")},m.prototype.setCursor=function(R){this.set("cursor",R);var J=this.get("el");ut.jU&&J&&(J.style.cursor=R)},m.prototype.getPointByEvent=function(R){var J=this.get("supportCSSTransform");if(J){if(on&&!(0,ut.kK)(R.layerX)&&R.layerX!==R.offsetX)return{x:R.layerX,y:R.layerY};if(!(0,ut.kK)(R.offsetX))return{x:R.offsetX,y:R.offsetY}}var At=this.getClientByEvent(R),bt=At.x,kt=At.y;return this.getPointByClient(bt,kt)},m.prototype.getClientByEvent=function(R){var J=R;return R.touches&&(R.type==="touchend"?J=R.changedTouches[0]:J=R.touches[0]),{x:J.clientX,y:J.clientY}},m.prototype.getPointByClient=function(R,J){var At=this.get("el"),bt=At.getBoundingClientRect();return{x:R-bt.left,y:J-bt.top}},m.prototype.getClientByPoint=function(R,J){var At=this.get("el"),bt=At.getBoundingClientRect();return{x:R+bt.left,y:J+bt.top}},m.prototype.draw=function(){},m.prototype.removeDom=function(){var R=this.get("el");R.parentNode.removeChild(R)},m.prototype.clearEvents=function(){var R=this.get("eventController");R.destroy()},m.prototype.isCanvas=function(){return!0},m.prototype.getParent=function(){return null},m.prototype.destroy=function(){var R=this.get("timeline");this.get("destroyed")||(this.clear(),R&&R.stop(),this.clearEvents(),this.removeDom(),k.prototype.destroy.call(this))},m}(wt.Z),sn=un},37153:function(nr,St,U){"use strict";var j=U(70655),E=U(49242),wt=U(29881),ut=U(77341),pt={},Q="_INDEX";function W(H,X){if(H.set("canvas",X),H.isGroup()){var O=H.get("children");O.length&&O.forEach(function(F){W(F,X)})}}function $(H,X){if(H.set("timeline",X),H.isGroup()){var O=H.get("children");O.length&&O.forEach(function(F){$(F,X)})}}function at(H,X){var O=H.getChildren();return O.indexOf(X)>=0}function yt(H,X,O){O===void 0&&(O=!0),O?X.destroy():(X.set("parent",null),X.set("canvas",null)),(0,ut.As)(H.getChildren(),X)}function lt(H){return function(X,O){var F=H(X,O);return F===0?X[Q]-O[Q]:F}}var G=function(H){(0,j.__extends)(X,H);function X(){return H!==null&&H.apply(this,arguments)||this}return X.prototype.isCanvas=function(){return!1},X.prototype.getBBox=function(){var O=Infinity,F=-Infinity,ht=Infinity,st=-Infinity,Y=[],A=[],P=this.getChildren().filter(function(Z){return Z.get("visible")&&(!Z.isGroup()||Z.isGroup()&&Z.getChildren().length>0)});P.length>0?((0,ut.S6)(P,function(Z){var dt=Z.getBBox();Y.push(dt.minX,dt.maxX),A.push(dt.minY,dt.maxY)}),O=(0,E.min)(Y),F=(0,E.max)(Y),ht=(0,E.min)(A),st=(0,E.max)(A)):(O=0,F=0,ht=0,st=0);var z={x:O,y:ht,minX:O,minY:ht,maxX:F,maxY:st,width:F-O,height:st-ht};return z},X.prototype.getCanvasBBox=function(){var O=Infinity,F=-Infinity,ht=Infinity,st=-Infinity,Y=[],A=[],P=this.getChildren().filter(function(Z){return Z.get("visible")&&(!Z.isGroup()||Z.isGroup()&&Z.getChildren().length>0)});P.length>0?((0,ut.S6)(P,function(Z){var dt=Z.getCanvasBBox();Y.push(dt.minX,dt.maxX),A.push(dt.minY,dt.maxY)}),O=(0,E.min)(Y),F=(0,E.max)(Y),ht=(0,E.min)(A),st=(0,E.max)(A)):(O=0,F=0,ht=0,st=0);var z={x:O,y:ht,minX:O,minY:ht,maxX:F,maxY:st,width:F-O,height:st-ht};return z},X.prototype.getDefaultCfg=function(){var O=H.prototype.getDefaultCfg.call(this);return O.children=[],O},X.prototype.onAttrChange=function(O,F,ht){if(H.prototype.onAttrChange.call(this,O,F,ht),O==="matrix"){var st=this.getTotalMatrix();this._applyChildrenMarix(st)}},X.prototype.applyMatrix=function(O){var F=this.getTotalMatrix();H.prototype.applyMatrix.call(this,O);var ht=this.getTotalMatrix();ht!==F&&this._applyChildrenMarix(ht)},X.prototype._applyChildrenMarix=function(O){var F=this.getChildren();(0,ut.S6)(F,function(ht){ht.applyMatrix(O)})},X.prototype.addShape=function(){for(var O=[],F=0;F=0;A--){var P=O[A];if((0,ut.pP)(P)&&(P.isGroup()?Y=P.getShape(F,ht,st):P.isHit(F,ht)&&(Y=P)),Y)break}return Y},X.prototype.add=function(O){var F=this.getCanvas(),ht=this.getChildren(),st=this.get("timeline"),Y=O.getParent();Y&&yt(Y,O,!1),O.set("parent",this),F&&W(O,F),st&&$(O,st),ht.push(O),O.onCanvasChange("add"),this._applyElementMatrix(O)},X.prototype._applyElementMatrix=function(O){var F=this.getTotalMatrix();F&&O.applyMatrix(F)},X.prototype.getChildren=function(){return this.get("children")},X.prototype.sort=function(){var O=this.getChildren();(0,ut.S6)(O,function(F,ht){return F[Q]=ht,F}),O.sort(lt(function(F,ht){return F.get("zIndex")-ht.get("zIndex")})),this.onCanvasChange("sort")},X.prototype.clear=function(){if(this.set("clearing",!0),!this.destroyed){for(var O=this.getChildren(),F=O.length-1;F>=0;F--)O[F].destroy();this.set("children",[]),this.onCanvasChange("clear"),this.set("clearing",!1)}},X.prototype.destroy=function(){this.get("destroyed")||(this.clear(),H.prototype.destroy.call(this))},X.prototype.getFirst=function(){return this.getChildByIndex(0)},X.prototype.getLast=function(){var O=this.getChildren();return this.getChildByIndex(O.length-1)},X.prototype.getChildByIndex=function(O){var F=this.getChildren();return F[O]},X.prototype.getCount=function(){var O=this.getChildren();return O.length},X.prototype.contain=function(O){var F=this.getChildren();return F.indexOf(O)>-1},X.prototype.removeChild=function(O,F){F===void 0&&(F=!0),this.contain(O)&&O.remove(F)},X.prototype.findAll=function(O){var F=[],ht=this.getChildren();return(0,ut.S6)(ht,function(st){O(st)&&F.push(st),st.isGroup()&&(F=F.concat(st.findAll(O)))}),F},X.prototype.find=function(O){var F=null,ht=this.getChildren();return(0,ut.S6)(ht,function(st){if(O(st)?F=st:st.isGroup()&&(F=st.find(O)),F)return!1}),F},X.prototype.findById=function(O){return this.find(function(F){return F.get("id")===O})},X.prototype.findByClassName=function(O){return this.find(function(F){return F.get("className")===O})},X.prototype.findAllByName=function(O){return this.findAll(function(F){return F.get("name")===O})},X}(wt.Z);St.Z=G},29881:function(nr,St,U){"use strict";var j=U(70655),E=U(49242),wt=U(31506),ut=U(77341),pt=U(41482),Q=U(2667),W=wt.vs,$="matrix",at=["zIndex","capture","visible","type"],yt=["repeat"],lt=":",G="*";function H(st){for(var Y=[],A=0;Adt.delay&&(0,E.each)(Y.toAttrs,function(Et,Ot){Z.call(dt.toAttrs,Ot)&&(delete dt.toAttrs[Ot],delete dt.fromAttrs[Ot])})}),st}var ht=function(st){(0,j.__extends)(Y,st);function Y(A){var P=st.call(this,A)||this;P.attrs={};var z=P.getDefaultAttrs();return(0,E.mix)(z,A.attrs),P.attrs=z,P.initAttrs(z),P.initAnimate(),P}return Y.prototype.getDefaultCfg=function(){return{visible:!0,capture:!0,zIndex:0}},Y.prototype.getDefaultAttrs=function(){return{matrix:this.getDefaultMatrix(),opacity:1}},Y.prototype.onCanvasChange=function(A){},Y.prototype.initAttrs=function(A){},Y.prototype.initAnimate=function(){this.set("animable",!0),this.set("animating",!1)},Y.prototype.isGroup=function(){return!1},Y.prototype.getParent=function(){return this.get("parent")},Y.prototype.getCanvas=function(){return this.get("canvas")},Y.prototype.attr=function(){for(var A,P=[],z=0;z0?Z=F(Z,xt):z.addAnimator(this),Z.push(xt),this.set("animations",Z),this.set("_pause",{isPaused:!1})}},Y.prototype.stopAnimate=function(A){var P=this;A===void 0&&(A=!0);var z=this.get("animations");(0,E.each)(z,function(Z){A&&(Z.onFrame?P.attr(Z.onFrame(1)):P.attr(Z.toAttrs)),Z.callback&&Z.callback()}),this.set("animating",!1),this.set("animations",[])},Y.prototype.pauseAnimate=function(){var A=this.get("timeline"),P=this.get("animations"),z=A.getTime();return(0,E.each)(P,function(Z){Z._paused=!0,Z._pauseTime=z,Z.pauseCallback&&Z.pauseCallback()}),this.set("_pause",{isPaused:!0,pauseTime:z}),this},Y.prototype.resumeAnimate=function(){var A=this.get("timeline"),P=A.getTime(),z=this.get("animations"),Z=this.get("_pause").pauseTime;return(0,E.each)(z,function(dt){dt.startTime=dt.startTime+(P-Z),dt._paused=!1,dt._pauseTime=null,dt.resumeCallback&&dt.resumeCallback()}),this.set("_pause",{isPaused:!1}),this.set("animations",z),this},Y.prototype.emitDelegation=function(A,P){var z=this,Z=P.propagationPath,dt=this.getEvents(),Et;A==="mouseenter"?Et=P.fromShape:A==="mouseleave"&&(Et=P.toShape);for(var Ot=function(Lt){var zt=Z[Lt],ft=zt.get("name");if(ft){if((zt.isGroup()||zt.isCanvas&&zt.isCanvas())&&Et&&(0,ut.UY)(zt,Et))return"break";(0,E.isArray)(ft)?(0,E.each)(ft,function(rt){z.emitDelegateEvent(zt,rt,P)}):Kt.emitDelegateEvent(zt,ft,P)}},Kt=this,Ht=0;Ht=W&&at.minY<=$&&at.maxY>=$},Q.prototype.afterAttrsChange=function(W){pt.prototype.afterAttrsChange.call(this,W),this.clearCacheBBox()},Q.prototype.getBBox=function(){var W=this.cfg.bbox;return W||(W=this.calculateBBox(),this.set("bbox",W)),W},Q.prototype.getCanvasBBox=function(){var W=this.cfg.canvasBBox;return W||(W=this.calculateCanvasBBox(),this.set("canvasBBox",W)),W},Q.prototype.applyMatrix=function(W){pt.prototype.applyMatrix.call(this,W),this.set("canvasBBox",null)},Q.prototype.calculateCanvasBBox=function(){var W=this.getBBox(),$=this.getTotalMatrix(),at=W.minX,yt=W.minY,lt=W.maxX,G=W.maxY;if($){var H=(0,wt.rG)($,[W.minX,W.minY]),X=(0,wt.rG)($,[W.maxX,W.minY]),O=(0,wt.rG)($,[W.minX,W.maxY]),F=(0,wt.rG)($,[W.maxX,W.maxY]);at=Math.min(H[0],X[0],O[0],F[0]),lt=Math.max(H[0],X[0],O[0],F[0]),yt=Math.min(H[1],X[1],O[1],F[1]),G=Math.max(H[1],X[1],O[1],F[1])}var ht=this.attrs;if(ht.shadowColor){var st=ht.shadowBlur,Y=st===void 0?0:st,A=ht.shadowOffsetX,P=A===void 0?0:A,z=ht.shadowOffsetY,Z=z===void 0?0:z,dt=at-Y+P,Et=lt+Y+P,Ot=yt-Y+Z,Kt=G+Y+Z;at=Math.min(at,dt),lt=Math.max(lt,Et),yt=Math.min(yt,Ot),G=Math.max(G,Kt)}return{x:at,y:yt,minX:at,minY:yt,maxX:lt,maxY:G,width:lt-at,height:G-yt}},Q.prototype.clearCacheBBox=function(){this.set("bbox",null),this.set("canvasBBox",null)},Q.prototype.isClipShape=function(){return this.get("isClipShape")},Q.prototype.isInShape=function(W,$){return!1},Q.prototype.isOnlyHitBox=function(){return!1},Q.prototype.isHit=function(W,$){var at=this.get("startArrowShape"),yt=this.get("endArrowShape"),lt=[W,$,1];lt=this.invertFromMatrix(lt);var G=lt[0],H=lt[1],X=this._isInBBox(G,H);return this.isOnlyHitBox()?X:!!(X&&!this.isClipped(G,H)&&(this.isInShape(G,H)||at&&at.isHit(G,H)||yt&&yt.isHit(G,H)))},Q}(E.Z);St.Z=ut},97492:function(nr,St,U){"use strict";U.d(St,{_:function(){return o},C:function(){return n}});var j={};U.r(j),U.d(j,{easeBack:function(){return I},easeBackIn:function(){return x},easeBackInOut:function(){return I},easeBackOut:function(){return b},easeBounce:function(){return T},easeBounceIn:function(){return l},easeBounceInOut:function(){return q},easeBounceOut:function(){return T},easeCircle:function(){return dt},easeCircleIn:function(){return z},easeCircleInOut:function(){return dt},easeCircleOut:function(){return Z},easeCubic:function(){return $},easeCubicIn:function(){return Q},easeCubicInOut:function(){return $},easeCubicOut:function(){return W},easeElastic:function(){return f},easeElasticIn:function(){return C},easeElasticInOut:function(){return r},easeElasticOut:function(){return f},easeExp:function(){return P},easeExpIn:function(){return Y},easeExpInOut:function(){return P},easeExpOut:function(){return A},easeLinear:function(){return E},easePoly:function(){return G},easePolyIn:function(){return yt},easePolyInOut:function(){return G},easePolyOut:function(){return lt},easeQuad:function(){return pt},easeQuadIn:function(){return wt},easeQuadInOut:function(){return pt},easeQuadOut:function(){return ut},easeSin:function(){return ht},easeSinIn:function(){return O},easeSinInOut:function(){return ht},easeSinOut:function(){return F}});function E(e){return+e}function wt(e){return e*e}function ut(e){return e*(2-e)}function pt(e){return((e*=2)<=1?e*e:--e*(2-e)+1)/2}function Q(e){return e*e*e}function W(e){return--e*e*e+1}function $(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var at=3,yt=function e(c){c=+c;function v(_){return Math.pow(_,c)}return v.exponent=e,v}(at),lt=function e(c){c=+c;function v(_){return 1-Math.pow(1-_,c)}return v.exponent=e,v}(at),G=function e(c){c=+c;function v(_){return((_*=2)<=1?Math.pow(_,c):2-Math.pow(2-_,c))/2}return v.exponent=e,v}(at),H=Math.PI,X=H/2;function O(e){return+e==1?1:1-Math.cos(e*X)}function F(e){return Math.sin(e*X)}function ht(e){return(1-Math.cos(H*e))/2}function st(e){return(Math.pow(2,-10*e)-.0009765625)*1.0009775171065494}function Y(e){return st(1-+e)}function A(e){return 1-st(e)}function P(e){return((e*=2)<=1?st(1-e):2-st(e-1))/2}function z(e){return 1-Math.sqrt(1-e*e)}function Z(e){return Math.sqrt(1- --e*e)}function dt(e){return((e*=2)<=1?1-Math.sqrt(1-e*e):Math.sqrt(1-(e-=2)*e)+1)/2}var Et=4/11,Ot=6/11,Kt=8/11,Ht=3/4,Bt=9/11,Lt=10/11,zt=15/16,ft=21/22,rt=63/64,a=1/Et/Et;function l(e){return 1-T(1-e)}function T(e){return(e=+e)Math.PI/2?Math.PI-Bt:Bt,Lt=Lt>Math.PI/2?Math.PI-Lt:Lt;var zt={xExtra:Math.cos(Ht/2-Bt)*(P/2*(1/Math.sin(Ht/2)))-P/2||0,yExtra:Math.cos(Lt-Ht/2)*(P/2*(1/Math.sin(Ht/2)))-P/2||0};return zt}function ht(A){var P=A.attr(),z=P.path,Z=P.stroke,dt=Z?P.lineWidth:0,Et=A.get("segments")||(0,H.zx)(z),Ot=O(Et,dt),Kt=Ot.x,Ht=Ot.y,Bt=Ot.width,Lt=Ot.height,zt={minX:Kt,minY:Ht,maxX:Kt+Bt,maxY:Ht+Lt};return zt=$(A,zt),{x:zt.minX,y:zt.minY,width:zt.maxX-zt.minX,height:zt.maxY-zt.minY}}function st(A){var P=A.attr(),z=P.x1,Z=P.y1,dt=P.x2,Et=P.y2,Ot=Math.min(z,dt),Kt=Math.max(z,dt),Ht=Math.min(Z,Et),Bt=Math.max(Z,Et),Lt={minX:Ot,maxX:Kt,minY:Ht,maxY:Bt};return Lt=$(A,Lt),{x:Lt.minX,y:Lt.minY,width:Lt.maxX-Lt.minX,height:Lt.maxY-Lt.minY}}function Y(A){var P=A.attr(),z=P.x,Z=P.y,dt=P.rx,Et=P.ry;return{x:z-dt,y:Z-Et,width:dt*2,height:Et*2}}E("rect",ut),E("image",ut),E("circle",pt),E("marker",pt),E("polyline",at),E("polygon",yt),E("text",G),E("path",ht),E("line",st),E("ellipse",Y)},89473:function(nr,St){"use strict";var U=function(){function j(E,wt){this.bubbles=!0,this.target=null,this.currentTarget=null,this.delegateTarget=null,this.delegateObject=null,this.defaultPrevented=!1,this.propagationStopped=!1,this.shape=null,this.fromShape=null,this.toShape=null,this.propagationPath=[],this.type=E,this.name=E,this.originalEvent=wt,this.timeStamp=wt.timeStamp}return j.prototype.preventDefault=function(){this.defaultPrevented=!0,this.originalEvent.preventDefault&&this.originalEvent.preventDefault()},j.prototype.stopPropagation=function(){this.propagationStopped=!0},j.prototype.toString=function(){var E=this.type;return"[Event (type="+E+")]"},j.prototype.save=function(){},j.prototype.restore=function(){},j}();St.Z=U},98190:function(nr,St,U){"use strict";U.r(St),U.d(St,{Event:function(){return $.Z},Base:function(){return at.Z},AbstractCanvas:function(){return yt.Z},AbstractGroup:function(){return lt.Z},AbstractShape:function(){return G.Z},PathUtil:function(){return j},getBBoxMethod:function(){return H.b},registerBBox:function(){return H.W},getTextHeight:function(){return X.FE},assembleFont:function(){return X.$O},isAllowCapture:function(){return O.pP},multiplyVec2:function(){return F.rG},invert:function(){return F.U_},getOffScreenContext:function(){return ht.L},registerEasing:function(){return st.C},version:function(){return Y}});var j=U(47575),E=U(52),wt=U.n(E),ut={};for(var pt in E)["default","Event","Base","AbstractCanvas","AbstractGroup","AbstractShape","PathUtil","getBBoxMethod","registerBBox","getTextHeight","assembleFont","isAllowCapture","multiplyVec2","invert","getOffScreenContext","registerEasing","version"].indexOf(pt)<0&&(ut[pt]=function(A){return E[A]}.bind(0,pt));U.d(St,ut);var Q=U(15294),W=U.n(Q),ut={};for(var pt in Q)["default","Event","Base","AbstractCanvas","AbstractGroup","AbstractShape","PathUtil","getBBoxMethod","registerBBox","getTextHeight","assembleFont","isAllowCapture","multiplyVec2","invert","getOffScreenContext","registerEasing","version"].indexOf(pt)<0&&(ut[pt]=function(P){return Q[P]}.bind(0,pt));U.d(St,ut);var $=U(89473),at=U(2667),yt=U(81166),lt=U(31841),G=U(15032),H=U(78393),X=U(8723),O=U(77341),F=U(41482),ht=U(67052),st=U(97492),Y="0.5.11"},15294:function(){},52:function(){},41482:function(nr,St,U){"use strict";U.d(St,{xq:function(){return j},rG:function(){return E},U_:function(){return wt}});function j(ut,pt){var Q=[],W=ut[0],$=ut[1],at=ut[2],yt=ut[3],lt=ut[4],G=ut[5],H=ut[6],X=ut[7],O=ut[8],F=pt[0],ht=pt[1],st=pt[2],Y=pt[3],A=pt[4],P=pt[5],z=pt[6],Z=pt[7],dt=pt[8];return Q[0]=F*W+ht*yt+st*H,Q[1]=F*$+ht*lt+st*X,Q[2]=F*at+ht*G+st*O,Q[3]=Y*W+A*yt+P*H,Q[4]=Y*$+A*lt+P*X,Q[5]=Y*at+A*G+P*O,Q[6]=z*W+Z*yt+dt*H,Q[7]=z*$+Z*lt+dt*X,Q[8]=z*at+Z*G+dt*O,Q}function E(ut,pt){var Q=[],W=pt[0],$=pt[1];return Q[0]=ut[0]*W+ut[3]*$+ut[6],Q[1]=ut[1]*W+ut[4]*$+ut[7],Q}function wt(ut){var pt=[],Q=ut[0],W=ut[1],$=ut[2],at=ut[3],yt=ut[4],lt=ut[5],G=ut[6],H=ut[7],X=ut[8],O=X*yt-lt*H,F=-X*at+lt*G,ht=H*at-yt*G,st=Q*O+W*F+$*ht;return st?(st=1/st,pt[0]=O*st,pt[1]=(-X*W+$*H)*st,pt[2]=(lt*W-$*yt)*st,pt[3]=F*st,pt[4]=(X*Q-$*G)*st,pt[5]=(-lt*Q+$*at)*st,pt[6]=ht*st,pt[7]=(-H*Q+W*G)*st,pt[8]=(yt*Q-W*at)*st,pt):null}},67052:function(nr,St,U){"use strict";U.d(St,{L:function(){return E}});var j=null;function E(){if(!j){var wt=document.createElement("canvas");wt.width=1,wt.height=1,j=wt.getContext("2d")}return j}},47575:function(nr,St,U){"use strict";U.r(St),U.d(St,{catmullRomToBezier:function(){return Q},fillPath:function(){return zt},fillPathByDiff:function(){return l},formatPath:function(){return xt},intersection:function(){return Kt},parsePathArray:function(){return X},parsePathString:function(){return pt},pathToAbsolute:function(){return $},pathToCurve:function(){return G},rectPath:function(){return A}});var j=U(49242),E=` -\v\f\r \xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029`,wt=new RegExp("([a-z])["+E+",]*((-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?["+E+"]*,?["+E+"]*)+)","ig"),ut=new RegExp("(-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?)["+E+"]*,?["+E+"]*","ig"),pt=function(x){if(!x)return null;if((0,j.isArray)(x))return x;var b={a:7,c:6,o:2,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,u:3,z:0},I=[];return String(x).replace(wt,function(S,V,ct){var C=[],f=V.toLowerCase();if(ct.replace(ut,function(r,t){t&&C.push(+t)}),f==="m"&&C.length>2&&(I.push([V].concat(C.splice(0,2))),f="l",V=V==="m"?"l":"L"),f==="o"&&C.length===1&&I.push([V,C[0]]),f==="r")I.push([V].concat(C));else for(;C.length>=b[f]&&(I.push([V].concat(C.splice(0,b[f]))),!!b[f]););return x}),I},Q=function(x,b){for(var I=[],S=0,V=x.length;V-2*!b>S;S+=2){var ct=[{x:+x[S-2],y:+x[S-1]},{x:+x[S],y:+x[S+1]},{x:+x[S+2],y:+x[S+3]},{x:+x[S+4],y:+x[S+5]}];b?S?V-4===S?ct[3]={x:+x[0],y:+x[1]}:V-2===S&&(ct[2]={x:+x[0],y:+x[1]},ct[3]={x:+x[2],y:+x[3]}):ct[0]={x:+x[V-2],y:+x[V-1]}:V-4===S?ct[3]=ct[2]:S||(ct[0]={x:+x[S],y:+x[S+1]}),I.push(["C",(-ct[0].x+6*ct[1].x+ct[2].x)/6,(-ct[0].y+6*ct[1].y+ct[2].y)/6,(ct[1].x+6*ct[2].x-ct[3].x)/6,(ct[1].y+6*ct[2].y-ct[3].y)/6,ct[2].x,ct[2].y])}return I},W=function(x,b,I,S,V){var ct=[];if(V===null&&S===null&&(S=I),x=+x,b=+b,I=+I,S=+S,V!==null){var C=Math.PI/180,f=x+I*Math.cos(-S*C),r=x+I*Math.cos(-V*C),t=b+I*Math.sin(-S*C),o=b+I*Math.sin(-V*C);ct=[["M",f,t],["A",I,I,0,+(V-S>180),0,r,o]]}else ct=[["M",x,b],["m",0,-S],["a",I,S,0,1,1,0,2*S],["a",I,S,0,1,1,0,-2*S],["z"]];return ct},$=function(x){if(x=pt(x),!x||!x.length)return[["M",0,0]];var b=[],I=0,S=0,V=0,ct=0,C=0,f,r;x[0][0]==="M"&&(I=+x[0][1],S=+x[0][2],V=I,ct=S,C++,b[0]=["M",I,S]);for(var t=x.length===3&&x[0][0]==="M"&&x[1][0].toUpperCase()==="R"&&x[2][0].toUpperCase()==="Z",o=void 0,n=void 0,e=C,c=x.length;e1&&(i=Math.sqrt(i),I=i*I,S=i*S);var s=I*I,h=S*S,B=(ct===C?-1:1)*Math.sqrt(Math.abs((s*h-s*M*M-h*y*y)/(s*M*M+h*y*y)));w=B*I*M/S+(x+f)/2,d=B*-S*y/I+(b+r)/2,v=Math.asin(((b-d)/S).toFixed(9)),_=Math.asin(((r-d)/S).toFixed(9)),v=x_&&(v=v-Math.PI*2),!C&&_>v&&(_=_-Math.PI*2)}var K=_-v;if(Math.abs(K)>o){var it=_,ot=f,gt=r;_=v+o*(C&&_>v?1:-1),f=w+I*Math.cos(_),r=d+S*Math.sin(_),e=lt(f,r,I,S,V,0,C,ot,gt,[_,it,w,d])}K=_-v;var vt=Math.cos(v),Pt=Math.sin(v),Ct=Math.cos(_),Yt=Math.sin(_),Zt=Math.tan(K/4),Tt=4/3*I*Zt,Xt=4/3*S*Zt,Wt=[x,b],Vt=[x+Tt*Pt,b-Xt*vt],Nt=[f+Tt*Yt,r-Xt*Ct],Gt=[f,r];if(Vt[0]=2*Wt[0]-Vt[0],Vt[1]=2*Wt[1]-Vt[1],t)return[Vt,Nt,Gt].concat(e);e=[Vt,Nt,Gt].concat(e).join().split(",");for(var Jt=[],qt=0,jt=e.length;qt7){y[M].shift();for(var i=y[M];i.length;)C[M]="A",S&&(f[M]="A"),y.splice(M++,0,["C"].concat(i.splice(0,6)));y.splice(M,1),o=Math.max(I.length,S&&S.length||0)}},c=function(y,M,i,s,h){y&&M&&y[h][0]==="M"&&M[h][0]!=="M"&&(M.splice(h,0,["M",s.x,s.y]),i.bx=0,i.by=0,i.x=y[h][1],i.y=y[h][2],o=Math.max(I.length,S&&S.length||0))};o=Math.max(I.length,S&&S.length||0);for(var v=0;v1?1:r<0?0:r;for(var t=r/2,o=12,n=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],e=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],c=0,v=0;v0&&c<1&&r.push(c);continue}var _=n*n-4*e*o,w=Math.sqrt(_);if(!(_<0)){var d=(-n+w)/(2*o);d>0&&d<1&&r.push(d);var u=(-n-w)/(2*o);u>0&&u<1&&r.push(u)}}for(var y=r.length,M=y,i;y--;)c=r[y],i=1-c,t[0][y]=i*i*i*x+3*i*i*c*I+3*i*c*c*V+c*c*c*C,t[1][y]=i*i*i*b+3*i*i*c*S+3*i*c*c*ct+c*c*c*f;return t[0][M]=x,t[1][M]=b,t[0][M+1]=C,t[1][M+1]=f,t[0].length=t[1].length=M+2,{min:{x:Math.min.apply(0,t[0]),y:Math.min.apply(0,t[1])},max:{x:Math.max.apply(0,t[0]),y:Math.max.apply(0,t[1])}}},st=function(x,b,I,S,V,ct,C,f){if(!(Math.max(x,I)Math.max(V,C)||Math.max(b,S)Math.max(ct,f))){var r=(x*S-b*I)*(V-C)-(x-I)*(V*f-ct*C),t=(x*S-b*I)*(ct-f)-(b-S)*(V*f-ct*C),o=(x-I)*(ct-f)-(b-S)*(V-C);if(!!o){var n=r/o,e=t/o,c=+n.toFixed(2),v=+e.toFixed(2);if(!(c<+Math.min(x,I).toFixed(2)||c>+Math.max(x,I).toFixed(2)||c<+Math.min(V,C).toFixed(2)||c>+Math.max(V,C).toFixed(2)||v<+Math.min(b,S).toFixed(2)||v>+Math.max(b,S).toFixed(2)||v<+Math.min(ct,f).toFixed(2)||v>+Math.max(ct,f).toFixed(2)))return{x:n,y:e}}}},Y=function(x,b,I){return b>=x.x&&b<=x.x+x.width&&I>=x.y&&I<=x.y+x.height},A=function(x,b,I,S,V){if(V)return[["M",+x+ +V,b],["l",I-V*2,0],["a",V,V,0,0,1,V,V],["l",0,S-V*2],["a",V,V,0,0,1,-V,V],["l",V*2-I,0],["a",V,V,0,0,1,-V,-V],["l",0,V*2-S],["a",V,V,0,0,1,V,-V],["z"]];var ct=[["M",x,b],["l",I,0],["l",0,S],["l",-I,0],["z"]];return ct.parsePathArray=X,ct},P=function(x,b,I,S){return x===null&&(x=b=I=S=0),b===null&&(b=x.y,I=x.width,S=x.height,x=x.x),{x,y:b,width:I,w:I,height:S,h:S,x2:x+I,y2:b+S,cx:x+I/2,cy:b+S/2,r1:Math.min(I,S)/2,r2:Math.max(I,S)/2,r0:Math.sqrt(I*I+S*S)/2,path:A(x,b,I,S),vb:[x,b,I,S].join(" ")}},z=function(x,b){return x=P(x),b=P(b),Y(b,x.x,x.y)||Y(b,x.x2,x.y)||Y(b,x.x,x.y2)||Y(b,x.x2,x.y2)||Y(x,b.x,b.y)||Y(x,b.x2,b.y)||Y(x,b.x,b.y2)||Y(x,b.x2,b.y2)||(x.xb.x||b.xx.x)&&(x.yb.y||b.yx.y)},Z=function(x,b,I,S,V,ct,C,f){(0,j.isArray)(x)||(x=[x,b,I,S,V,ct,C,f]);var r=ht.apply(null,x);return P(r.min.x,r.min.y,r.max.x-r.min.x,r.max.y-r.min.y)},dt=function(x,b,I,S,V,ct,C,f,r){var t=1-r,o=Math.pow(t,3),n=Math.pow(t,2),e=r*r,c=e*r,v=o*x+n*3*r*I+t*3*r*r*V+c*C,_=o*b+n*3*r*S+t*3*r*r*ct+c*f,w=x+2*r*(I-x)+e*(V-2*I+x),d=b+2*r*(S-b)+e*(ct-2*S+b),u=I+2*r*(V-I)+e*(C-2*V+I),y=S+2*r*(ct-S)+e*(f-2*ct+S),M=t*x+r*I,i=t*b+r*S,s=t*V+r*C,h=t*ct+r*f,B=90-Math.atan2(w-u,d-y)*180/Math.PI;return{x:v,y:_,m:{x:w,y:d},n:{x:u,y},start:{x:M,y:i},end:{x:s,y:h},alpha:B}},Et=function(x,b,I){var S=Z(x),V=Z(b);if(!z(S,V))return I?0:[];for(var ct=F.apply(0,x),C=F.apply(0,b),f=~~(ct/8),r=~~(C/8),t=[],o=[],n={},e=I?0:[],c=0;c=0&&h<=1&&B>=0&&B<=1&&(I?e+=1:e.push({x:s.x,y:s.y,t1:h,t2:B}))}}return e},Ot=function(x,b,I){x=G(x),b=G(b);for(var S,V,ct,C,f,r,t,o,n,e,c=I?0:[],v=0,_=x.length;v<_;v++){var w=x[v];if(w[0]==="M")S=f=w[1],V=r=w[2];else{w[0]==="C"?(n=[S,V].concat(w.slice(1)),S=n[6],V=n[7]):(n=[S,V,S,V,f,r,f,r],S=f,V=r);for(var d=0,u=b.length;d=3&&(n.length===3&&e.push("Q"),e=e.concat(n[1])),n.length===2&&e.push("L"),e=e.concat(n[n.length-1]),e});return o}var Lt=function(x,b,I){if(I===1)return[[].concat(x)];var S=[];if(b[0]==="L"||b[0]==="C"||b[0]==="Q")S=S.concat(Bt(x,b,I));else{var V=[].concat(x);V[0]==="M"&&(V[0]="L");for(var ct=0;ct<=I-1;ct++)S.push(V)}return S},zt=function(x,b){if(x.length===1)return x;var I=x.length-1,S=b.length-1,V=I/S,ct=[];if(x.length===1&&x[0][0]==="M"){for(var C=0;C=0;r--)C=ct[r].index,ct[r].type==="add"?x.splice(C,0,[].concat(x[C])):x.splice(C,1)}S=x.length;var n=V-S;if(S0)I=T(I,x[S-1],1);else{x[S]=b[S];break}x[S]=["Q"].concat(I.reduce(function(V,ct){return V.concat(ct)},[]));break;case"T":x[S]=["T"].concat(I[0]);break;case"C":if(I.length<3)if(S>0)I=T(I,x[S-1],2);else{x[S]=b[S];break}x[S]=["C"].concat(I.reduce(function(V,ct){return V.concat(ct)},[]));break;case"S":if(I.length<2)if(S>0)I=T(I,x[S-1],1);else{x[S]=b[S];break}x[S]=["S"].concat(I.reduce(function(V,ct){return V.concat(ct)},[]));break;default:x[S]=b[S]}return x}},8723:function(nr,St,U){"use strict";U.d(St,{FE:function(){return wt},mY:function(){return pt},$O:function(){return Q}});var j=U(77341),E=U(67052);function wt(W,$,at){var yt=1;if((0,j.HD)(W)&&(yt=W.split(` -`).length),yt>1){var lt=ut($,at);return $*yt+lt*(yt-1)}return $}function ut(W,$){return $?$-W:W*.14}function pt(W,$){var at=(0,E.L)(),yt=0;if((0,j.kK)(W)||W==="")return yt;if(at.save(),at.font=$,(0,j.HD)(W)&&W.includes(` -`)){var lt=W.split(` -`);(0,j.S6)(lt,function(G){var H=at.measureText(G).width;yt=Y.minX&&X<=Y.maxX&&O>=Y.minY&&O<=Y.maxY}function Q(H,X,O){if(!pt(H,X,O))return null;for(var F=null,ht=H.getChildren(),st=ht.length,Y=st-1;Y>=0;Y--){var A=ht[Y];if(A.isGroup())F=Q(A,X,O);else if(pt(A,X,O)){var P=A,z=ut(A,X,O),Z=z[0],dt=z[1];P.isInShape(Z,dt)&&(F=A)}if(F)break}return F}var W=U(5501),$=U(25252),at=U(92793),yt=U(23645),lt=function(H){(0,j.__extends)(X,H);function X(){return H!==null&&H.apply(this,arguments)||this}return X.prototype.getDefaultCfg=function(){var O=H.prototype.getDefaultCfg.call(this);return O.renderer="canvas",O.autoDraw=!0,O.localRefresh=!0,O.refreshElements=[],O.clipView=!0,O.quickHit=!1,O},X.prototype.onCanvasChange=function(O){(O==="attr"||O==="sort"||O==="changeSize")&&(this.set("refreshElements",[this]),this.draw())},X.prototype.getShapeBase=function(){return W},X.prototype.getGroupBase=function(){return $.Z},X.prototype.getPixelRatio=function(){var O=this.get("pixelRatio")||(0,at.mX)();return O>=1?Math.ceil(O):1},X.prototype.getViewRange=function(){return{minX:0,minY:0,maxX:this.cfg.width,maxY:this.cfg.height}},X.prototype.createDom=function(){var O=document.createElement("canvas"),F=O.getContext("2d");return this.set("context",F),O},X.prototype.setDOMSize=function(O,F){H.prototype.setDOMSize.call(this,O,F);var ht=this.get("context"),st=this.get("el"),Y=this.getPixelRatio();st.width=Y*O,st.height=Y*F,Y>1&&ht.scale(Y,Y)},X.prototype.clear=function(){H.prototype.clear.call(this),this._clearFrame();var O=this.get("context"),F=this.get("el");O.clearRect(0,0,F.width,F.height)},X.prototype.getShape=function(O,F){var ht;return this.get("quickHit")?ht=Q(this,O,F):ht=H.prototype.getShape.call(this,O,F,null),ht},X.prototype._getRefreshRegion=function(){var O=this.get("refreshElements"),F=this.getViewRange(),ht;if(O.length&&O[0]===this)ht=F;else if(ht=(0,yt.tJ)(O),ht){ht.minX=Math.floor(ht.minX),ht.minY=Math.floor(ht.minY),ht.maxX=Math.ceil(ht.maxX),ht.maxY=Math.ceil(ht.maxY),ht.maxY+=1;var st=this.get("clipView");st&&(ht=(0,yt.T2)(ht,F))}return ht},X.prototype.refreshElement=function(O){var F=this.get("refreshElements");F.push(O)},X.prototype._clearFrame=function(){var O=this.get("drawFrame");O&&((0,at.VS)(O),this.set("drawFrame",null),this.set("refreshElements",[]))},X.prototype.draw=function(){var O=this.get("drawFrame");this.get("autoDraw")&&O||this._startDraw()},X.prototype._drawAll=function(){var O=this.get("context"),F=this.get("el"),ht=this.getChildren();O.clearRect(0,0,F.width,F.height),(0,yt.DE)(O,this),(0,yt.NX)(O,ht),this.set("refreshElements",[])},X.prototype._drawRegion=function(){var O=this.get("context"),F=this.get("refreshElements"),ht=this.getChildren(),st=this._getRefreshRegion();st?(O.clearRect(st.minX,st.minY,st.maxX-st.minX,st.maxY-st.minY),O.save(),O.beginPath(),O.rect(st.minX,st.minY,st.maxX-st.minX,st.maxY-st.minY),O.clip(),(0,yt.DE)(O,this),(0,yt.kU)(this,ht,st),(0,yt.NX)(O,ht,st),O.restore()):F.length&&(0,yt.sT)(F),(0,at.S6)(F,function(Y){Y.get("hasChanged")&&Y.set("hasChanged",!1)}),this.set("refreshElements",[])},X.prototype._startDraw=function(){var O=this,F=this.get("drawFrame");F||(F=(0,at.U7)(function(){O.get("localRefresh")?O._drawRegion():O._drawAll(),O.set("drawFrame",null)}),this.set("drawFrame",F))},X.prototype.skipDraw=function(){},X.prototype.removeDom=function(){var O=this.get("el");O.width=0,O.height=0,O.parentNode.removeChild(O)},X}(E.AbstractCanvas),G=lt},25252:function(nr,St,U){"use strict";var j=U(70655),E=U(98190),wt=U(5501),ut=U(23645),pt=U(49242),Q=U(92793),W=function($){(0,j.__extends)(at,$);function at(){return $!==null&&$.apply(this,arguments)||this}return at.prototype.onCanvasChange=function(yt){(0,ut.md)(this,yt)},at.prototype.getShapeBase=function(){return wt},at.prototype.getGroupBase=function(){return at},at.prototype._applyClip=function(yt,lt){lt&&(yt.save(),(0,ut.DE)(yt,lt),lt.createPath(yt),yt.restore(),yt.clip(),lt._afterDraw())},at.prototype.cacheCanvasBBox=function(){var yt=this.cfg.children,lt=[],G=[];(0,pt.each)(yt,function(A){var P=A.cfg.cacheCanvasBBox;P&&A.cfg.isInView&&(lt.push(P.minX,P.maxX),G.push(P.minY,P.maxY))});var H=null;if(lt.length){var X=(0,pt.min)(lt),O=(0,pt.max)(lt),F=(0,pt.min)(G),ht=(0,pt.max)(G);H={minX:X,minY:F,x:X,y:F,maxX:O,maxY:ht,width:O-X,height:ht-F};var st=this.cfg.canvas;if(st){var Y=st.getViewRange();this.set("isInView",(0,Q.qb)(H,Y))}}else this.set("isInView",!1);this.set("cacheCanvasBBox",H)},at.prototype.draw=function(yt,lt){var G=this.cfg.children,H=lt?this.cfg.refresh:!0;G.length&&H&&(yt.save(),(0,ut.DE)(yt,this),this._applyClip(yt,this.getClip()),(0,ut.NX)(yt,G,lt),yt.restore(),this.cacheCanvasBBox()),this.cfg.refresh=null,this.set("hasChanged",!1)},at.prototype.skipDraw=function(){this.set("cacheCanvasBBox",null),this.set("hasChanged",!1)},at}(E.AbstractGroup);St.Z=W},70375:function(nr,St,U){"use strict";U.r(St),U.d(St,{Canvas:function(){return pt.Z},Group:function(){return Q.Z},Shape:function(){return j},getArcParams:function(){return W.Z},version:function(){return $}});var j=U(5501),E=U(98190),wt={};for(var ut in E)["default","Canvas","Group","Shape","getArcParams","version"].indexOf(ut)<0&&(wt[ut]=function(at){return E[at]}.bind(0,ut));U.d(St,wt);var pt=U(86325),Q=U(25252),W=U(46068),$="0.5.12"},5501:function(nr,St,U){"use strict";U.r(St),U.d(St,{Base:function(){return $},Circle:function(){return yt},Ellipse:function(){return H},Image:function(){return F},Line:function(){return P},Marker:function(){return Ot},Path:function(){return S},Polygon:function(){return C},Polyline:function(){return r},Rect:function(){return c},Text:function(){return _}});var j={};U.r(j),U.d(j,{Base:function(){return $},Circle:function(){return yt},Ellipse:function(){return H},Image:function(){return F},Line:function(){return P},Marker:function(){return Ot},Path:function(){return S},Polygon:function(){return C},Polyline:function(){return r},Rect:function(){return c},Text:function(){return _}});var E=U(70655),wt=U(98190),ut=U(92793),pt=U(23645),Q=U(25252),W=function(w){(0,E.__extends)(d,w);function d(){return w!==null&&w.apply(this,arguments)||this}return d.prototype.getDefaultAttrs=function(){var u=w.prototype.getDefaultAttrs.call(this);return(0,E.__assign)((0,E.__assign)({},u),{lineWidth:1,lineAppendWidth:0,strokeOpacity:1,fillOpacity:1})},d.prototype.getShapeBase=function(){return j},d.prototype.getGroupBase=function(){return Q.Z},d.prototype.onCanvasChange=function(u){(0,pt.md)(this,u)},d.prototype.calculateBBox=function(){var u=this.get("type"),y=this.getHitLineWidth(),M=(0,wt.getBBoxMethod)(u),i=M(this),s=y/2,h=i.x-s,B=i.y-s,K=i.x+i.width+s,it=i.y+i.height+s;return{x:h,minX:h,y:B,minY:B,width:i.width+y,height:i.height+y,maxX:K,maxY:it}},d.prototype.isFill=function(){return!!this.attrs.fill||this.isClipShape()},d.prototype.isStroke=function(){return!!this.attrs.stroke},d.prototype._applyClip=function(u,y){y&&(u.save(),(0,pt.DE)(u,y),y.createPath(u),u.restore(),u.clip(),y._afterDraw())},d.prototype.draw=function(u,y){var M=this.cfg.clipShape;if(y){if(this.cfg.refresh===!1){this.set("hasChanged",!1);return}var i=this.getCanvasBBox();if(!(0,ut.qb)(y,i)){this.set("hasChanged",!1),this.cfg.isInView&&this._afterDraw();return}}u.save(),(0,pt.DE)(u,this),this._applyClip(u,M),this.drawPath(u),u.restore(),this._afterDraw()},d.prototype.getCanvasViewBox=function(){var u=this.cfg.canvas;return u?u.getViewRange():null},d.prototype.cacheCanvasBBox=function(){var u=this.getCanvasViewBox();if(u){var y=this.getCanvasBBox(),M=(0,ut.qb)(y,u);this.set("isInView",M),M?this.set("cacheCanvasBBox",y):this.set("cacheCanvasBBox",null)}},d.prototype._afterDraw=function(){this.cacheCanvasBBox(),this.set("hasChanged",!1),this.set("refresh",null)},d.prototype.skipDraw=function(){this.set("cacheCanvasBBox",null),this.set("isInView",null),this.set("hasChanged",!1)},d.prototype.drawPath=function(u){this.createPath(u),this.strokeAndFill(u),this.afterDrawPath(u)},d.prototype.fill=function(u){u.fill()},d.prototype.stroke=function(u){u.stroke()},d.prototype.strokeAndFill=function(u){var y=this.attrs,M=y.lineWidth,i=y.opacity,s=y.strokeOpacity,h=y.fillOpacity;this.isFill()&&(!(0,ut.kK)(h)&&h!==1?(u.globalAlpha=h,this.fill(u),u.globalAlpha=i):this.fill(u)),this.isStroke()&&M>0&&(!(0,ut.kK)(s)&&s!==1&&(u.globalAlpha=s),this.stroke(u)),this.afterDrawPath(u)},d.prototype.createPath=function(u){},d.prototype.afterDrawPath=function(u){},d.prototype.isInShape=function(u,y){var M=this.isStroke(),i=this.isFill(),s=this.getHitLineWidth();return this.isInStrokeOrPath(u,y,M,i,s)},d.prototype.isInStrokeOrPath=function(u,y,M,i,s){return!1},d.prototype.getHitLineWidth=function(){if(!this.isStroke())return 0;var u=this.attrs;return u.lineWidth+u.lineAppendWidth},d}(wt.AbstractShape),$=W,at=function(w){(0,E.__extends)(d,w);function d(){return w!==null&&w.apply(this,arguments)||this}return d.prototype.getDefaultAttrs=function(){var u=w.prototype.getDefaultAttrs.call(this);return(0,E.__assign)((0,E.__assign)({},u),{x:0,y:0,r:0})},d.prototype.isInStrokeOrPath=function(u,y,M,i,s){var h=this.attr(),B=h.x,K=h.y,it=h.r,ot=s/2,gt=(0,ut.TE)(B,K,u,y);return i&&M?gt<=it+ot:i?gt<=it:M?gt>=it-ot&><=it+ot:!1},d.prototype.createPath=function(u){var y=this.attr(),M=y.x,i=y.y,s=y.r;u.beginPath(),u.arc(M,i,s,0,Math.PI*2,!1),u.closePath()},d}($),yt=at;function lt(w,d,u,y){return w/(u*u)+d/(y*y)}var G=function(w){(0,E.__extends)(d,w);function d(){return w!==null&&w.apply(this,arguments)||this}return d.prototype.getDefaultAttrs=function(){var u=w.prototype.getDefaultAttrs.call(this);return(0,E.__assign)((0,E.__assign)({},u),{x:0,y:0,rx:0,ry:0})},d.prototype.isInStrokeOrPath=function(u,y,M,i,s){var h=this.attr(),B=s/2,K=h.x,it=h.y,ot=h.rx,gt=h.ry,vt=(u-K)*(u-K),Pt=(y-it)*(y-it);return i&&M?lt(vt,Pt,ot+B,gt+B)<=1:i?lt(vt,Pt,ot,gt)<=1:M?lt(vt,Pt,ot-B,gt-B)>=1&<(vt,Pt,ot+B,gt+B)<=1:!1},d.prototype.createPath=function(u){var y=this.attr(),M=y.x,i=y.y,s=y.rx,h=y.ry;if(u.beginPath(),u.ellipse)u.ellipse(M,i,s,h,0,0,Math.PI*2,!1);else{var B=s>h?s:h,K=s>h?1:s/h,it=s>h?h/s:1;u.save(),u.translate(M,i),u.scale(K,it),u.arc(0,0,B,0,Math.PI*2),u.restore(),u.closePath()}},d}($),H=G;function X(w){return w instanceof HTMLElement&&(0,ut.HD)(w.nodeName)&&w.nodeName.toUpperCase()==="CANVAS"}var O=function(w){(0,E.__extends)(d,w);function d(){return w!==null&&w.apply(this,arguments)||this}return d.prototype.getDefaultAttrs=function(){var u=w.prototype.getDefaultAttrs.call(this);return(0,E.__assign)((0,E.__assign)({},u),{x:0,y:0,width:0,height:0})},d.prototype.initAttrs=function(u){this._setImage(u.img)},d.prototype.isStroke=function(){return!1},d.prototype.isOnlyHitBox=function(){return!0},d.prototype._afterLoading=function(){if(this.get("toDraw")===!0){var u=this.get("canvas");u?u.draw():this.createPath(this.get("context"))}},d.prototype._setImage=function(u){var y=this,M=this.attrs;if((0,ut.HD)(u)){var i=new Image;i.onload=function(){if(y.destroyed)return!1;y.attr("img",i),y.set("loading",!1),y._afterLoading();var s=y.get("callback");s&&s.call(y)},i.crossOrigin="Anonymous",i.src=u,this.set("loading",!0)}else u instanceof Image?(M.width||(M.width=u.width),M.height||(M.height=u.height)):X(u)&&(M.width||(M.width=Number(u.getAttribute("width"))),M.height||(M.height,Number(u.getAttribute("height"))))},d.prototype.onAttrChange=function(u,y,M){w.prototype.onAttrChange.call(this,u,y,M),u==="img"&&this._setImage(y)},d.prototype.createPath=function(u){if(this.get("loading")){this.set("toDraw",!0),this.set("context",u);return}var y=this.attr(),M=y.x,i=y.y,s=y.width,h=y.height,B=y.sx,K=y.sy,it=y.swidth,ot=y.sheight,gt=y.img;(gt instanceof Image||X(gt))&&(!(0,ut.kK)(B)&&!(0,ut.kK)(K)&&!(0,ut.kK)(it)&&!(0,ut.kK)(ot)?u.drawImage(gt,B,K,it,ot,M,i,s,h):u.drawImage(gt,M,i,s,h))},d}($),F=O,ht=U(89838);function st(w,d,u,y,M,i,s){var h=Math.min(w,u),B=Math.max(w,u),K=Math.min(d,y),it=Math.max(d,y),ot=M/2;return i>=h-ot&&i<=B+ot&&s>=K-ot&&s<=it+ot?ht.x1.pointToLine(w,d,u,y,i,s)<=M/2:!1}var Y=U(55922),A=function(w){(0,E.__extends)(d,w);function d(){return w!==null&&w.apply(this,arguments)||this}return d.prototype.getDefaultAttrs=function(){var u=w.prototype.getDefaultAttrs.call(this);return(0,E.__assign)((0,E.__assign)({},u),{x1:0,y1:0,x2:0,y2:0,startArrow:!1,endArrow:!1})},d.prototype.initAttrs=function(u){this.setArrow()},d.prototype.onAttrChange=function(u,y,M){w.prototype.onAttrChange.call(this,u,y,M),this.setArrow()},d.prototype.setArrow=function(){var u=this.attr(),y=u.x1,M=u.y1,i=u.x2,s=u.y2,h=u.startArrow,B=u.endArrow;h&&Y.Yf(this,u,i,s,y,M),B&&Y.YR(this,u,y,M,i,s)},d.prototype.isInStrokeOrPath=function(u,y,M,i,s){if(!M||!s)return!1;var h=this.attr(),B=h.x1,K=h.y1,it=h.x2,ot=h.y2;return st(B,K,it,ot,s,u,y)},d.prototype.createPath=function(u){var y=this.attr(),M=y.x1,i=y.y1,s=y.x2,h=y.y2,B=y.startArrow,K=y.endArrow,it={dx:0,dy:0},ot={dx:0,dy:0};B&&B.d&&(it=Y.jF(M,i,s,h,y.startArrow.d)),K&&K.d&&(ot=Y.jF(M,i,s,h,y.endArrow.d)),u.beginPath(),u.moveTo(M+it.dx,i+it.dy),u.lineTo(s-ot.dx,h-ot.dy)},d.prototype.afterDrawPath=function(u){var y=this.get("startArrowShape"),M=this.get("endArrowShape");y&&y.draw(u),M&&M.draw(u)},d.prototype.getTotalLength=function(){var u=this.attr(),y=u.x1,M=u.y1,i=u.x2,s=u.y2;return ht.x1.length(y,M,i,s)},d.prototype.getPoint=function(u){var y=this.attr(),M=y.x1,i=y.y1,s=y.x2,h=y.y2;return ht.x1.pointAt(M,i,s,h,u)},d}($),P=A,z=U(49242),Z=U(80389),dt={circle:function(w,d,u){return[["M",w-u,d],["A",u,u,0,1,0,w+u,d],["A",u,u,0,1,0,w-u,d]]},square:function(w,d,u){return[["M",w-u,d-u],["L",w+u,d-u],["L",w+u,d+u],["L",w-u,d+u],["Z"]]},diamond:function(w,d,u){return[["M",w-u,d],["L",w,d-u],["L",w+u,d],["L",w,d+u],["Z"]]},triangle:function(w,d,u){var y=u*Math.sin(1/3*Math.PI);return[["M",w-u,d+y],["L",w,d-y],["L",w+u,d+y],["Z"]]},"triangle-down":function(w,d,u){var y=u*Math.sin(1/3*Math.PI);return[["M",w-u,d-y],["L",w+u,d-y],["L",w,d+y],["Z"]]}},Et=function(w){(0,E.__extends)(d,w);function d(){return w!==null&&w.apply(this,arguments)||this}return d.prototype.initAttrs=function(u){this._resetParamsCache()},d.prototype._resetParamsCache=function(){this.set("paramsCache",{})},d.prototype.onAttrChange=function(u,y,M){w.prototype.onAttrChange.call(this,u,y,M),["symbol","x","y","r","radius"].indexOf(u)!==-1&&this._resetParamsCache()},d.prototype.isOnlyHitBox=function(){return!0},d.prototype._getR=function(u){return(0,z.isNil)(u.r)?u.radius:u.r},d.prototype._getPath=function(){var u=this.attr(),y=u.x,M=u.y,i=u.symbol||"circle",s=this._getR(u),h,B;if((0,ut.mf)(i))h=i,B=h(y,M,s),B=(0,Z.wb)(B);else{if(h=d.Symbols[i],!h)return console.warn(i+" marker is not supported."),null;B=h(y,M,s)}return B},d.prototype.createPath=function(u){var y=this._getPath(),M=this.get("paramsCache");(0,pt.MC)(this,u,{path:y},M)},d.Symbols=dt,d}($),Ot=Et;function Kt(w,d,u){var y=(0,wt.getOffScreenContext)();return w.createPath(y),y.isPointInPath(d,u)}var Ht=1e-6;function Bt(w){return Math.abs(w)0!=Bt(h[1]-u)>0&&Bt(d-(u-s[1])*(s[0]-h[0])/(s[1]-h[1])-s[0])<0&&(y=!y)}return y}var ft=U(31506),rt=U(77160);function a(w,d,u,y,M,i,s,h){var B=(Math.atan2(h-d,s-w)+Math.PI*2)%(Math.PI*2);if(BM)return!1;var K={x:w+u*Math.cos(B),y:d+u*Math.sin(B)};return(0,ut.TE)(K.x,K.y,s,h)<=i/2}var l=ft.vs;function T(w){for(var d=!1,u=w.length,y=0;yXt?Tt:Xt,qt=Tt>Xt?1:Tt/Xt,jt=Tt>Xt?Xt/Tt:1,er=l(null,[["t",-Yt,-Zt],["r",-Nt],["s",1/qt,1/jt]]);rt.transformMat3(Gt,Gt,er),i=a(0,0,Jt,Wt,Vt,d,Gt[0],Gt[1]);break;default:break}if(i)break}}return i}function xt(w){for(var d=w.length,u=[],y=[],M=[],i=0;i0&&y.push(M),{polygons:u,polylines:y}}var x=(0,E.__assign)({hasArc:T,extractPolygons:xt,isPointInStroke:q},wt.PathUtil);function b(w,d,u){for(var y=!1,M=0;M=it[0]&&u<=it[1]&&(M=(u-it[0])/(it[1]-it[0]),i=ot)});var h=s[i];if((0,z.isNil)(h)||(0,z.isNil)(i))return null;var B=h.length,K=s[i+1];return ht.Ll.pointAt(h[B-2],h[B-1],K[1],K[2],K[3],K[4],K[5],K[6],M)},d.prototype._calculateCurve=function(){var u=this.attr().path;this.set("curve",x.pathToCurve(u))},d.prototype._setTcache=function(){var u=0,y=0,M=[],i,s,h,B,K=this.get("curve");if(!!K){if((0,z.each)(K,function(it,ot){h=K[ot+1],B=it.length,h&&(u+=ht.Ll.length(it[B-2],it[B-1],h[1],h[2],h[3],h[4],h[5],h[6])||0)}),this.set("totalLength",u),u===0){this.set("tCache",[]);return}(0,z.each)(K,function(it,ot){h=K[ot+1],B=it.length,h&&(i=[],i[0]=y/u,s=ht.Ll.length(it[B-2],it[B-1],h[1],h[2],h[3],h[4],h[5],h[6]),y+=s||0,i[1]=y/u,M.push(i))}),this.set("tCache",M)}},d.prototype.getStartTangent=function(){var u=this.getSegments(),y;if(u.length>1){var M=u[0].currentPoint,i=u[1].currentPoint,s=u[1].startTangent;y=[],s?(y.push([M[0]-s[0],M[1]-s[1]]),y.push([M[0],M[1]])):(y.push([i[0],i[1]]),y.push([M[0],M[1]]))}return y},d.prototype.getEndTangent=function(){var u=this.getSegments(),y=u.length,M;if(y>1){var i=u[y-2].currentPoint,s=u[y-1].currentPoint,h=u[y-1].endTangent;M=[],h?(M.push([s[0]-h[0],s[1]-h[1]]),M.push([s[0],s[1]])):(M.push([i[0],i[1]]),M.push([s[0],s[1]]))}return M},d}($),S=I;function V(w,d,u,y,M){var i=w.length;if(i<2)return!1;for(var s=0;s=h[0]&&u<=h[1]&&(i=(u-h[0])/(h[1]-h[0]),s=B)}),ht.x1.pointAt(y[s][0],y[s][1],y[s+1][0],y[s+1][1],i)},d.prototype._setTcache=function(){var u=this.attr().points;if(!(!u||u.length===0)){var y=this.getTotalLength();if(!(y<=0)){var M=0,i=[],s,h;(0,z.each)(u,function(B,K){u[K+1]&&(s=[],s[0]=M/y,h=ht.x1.length(B[0],B[1],u[K+1][0],u[K+1][1]),M+=h,s[1]=M/y,i.push(s))}),this.set("tCache",i)}}},d.prototype.getStartTangent=function(){var u=this.attr().points,y=[];return y.push([u[1][0],u[1][1]]),y.push([u[0][0],u[0][1]]),y},d.prototype.getEndTangent=function(){var u=this.attr().points,y=u.length-1,M=[];return M.push([u[y-1][0],u[y-1][1]]),M.push([u[y][0],u[y][1]]),M},d}($),r=f,t=U(38425);function o(w,d,u,y,M,i,s){var h=M/2;return(0,ut.mh)(w-h,d-h,u,M,i,s)||(0,ut.mh)(w+u-h,d-h,M,y,i,s)||(0,ut.mh)(w+h,d+y-h,u,M,i,s)||(0,ut.mh)(w-h,d+h,M,y,i,s)}function n(w,d,u,y,M,i,s,h){var B=i/2;return st(w+M,d,w+u-M,d,i,s,h)||st(w+u,d+M,w+u,d+y-M,i,s,h)||st(w+u-M,d+y,w+M,d+y,i,s,h)||st(w,d+y-M,w,d+M,i,s,h)||a(w+u-M,d+M,M,1.5*Math.PI,2*Math.PI,i,s,h)||a(w+u-M,d+y-M,M,0,.5*Math.PI,i,s,h)||a(w+M,d+y-M,M,.5*Math.PI,Math.PI,i,s,h)||a(w+M,d+M,M,Math.PI,1.5*Math.PI,i,s,h)}var e=function(w){(0,E.__extends)(d,w);function d(){return w!==null&&w.apply(this,arguments)||this}return d.prototype.getDefaultAttrs=function(){var u=w.prototype.getDefaultAttrs.call(this);return(0,E.__assign)((0,E.__assign)({},u),{x:0,y:0,width:0,height:0,radius:0})},d.prototype.isInStrokeOrPath=function(u,y,M,i,s){var h=this.attr(),B=h.x,K=h.y,it=h.width,ot=h.height,gt=h.radius;if(gt){var Pt=!1;return M&&(Pt=n(B,K,it,ot,gt,s,u,y)),!Pt&&i&&(Pt=Kt(this,u,y)),Pt}else{var vt=s/2;if(i&&M)return(0,ut.mh)(B-vt,K-vt,it+vt,ot+vt,u,y);if(i)return(0,ut.mh)(B,K,it,ot,u,y);if(M)return o(B,K,it,ot,s,u,y)}},d.prototype.createPath=function(u){var y=this.attr(),M=y.x,i=y.y,s=y.width,h=y.height,B=y.radius;if(u.beginPath(),B===0)u.rect(M,i,s,h);else{var K=(0,t.Fy)(B),it=K[0],ot=K[1],gt=K[2],vt=K[3];u.moveTo(M+it,i),u.lineTo(M+s-ot,i),ot!==0&&u.arc(M+s-ot,i+ot,ot,-Math.PI/2,0),u.lineTo(M+s,i+h-gt),gt!==0&&u.arc(M+s-gt,i+h-gt,gt,0,Math.PI/2),u.lineTo(M+vt,i+h),vt!==0&&u.arc(M+vt,i+h-vt,vt,Math.PI/2,Math.PI),u.lineTo(M,i+it),it!==0&&u.arc(M+it,i+it,it,Math.PI,Math.PI*1.5),u.closePath()}},d}($),c=e,v=function(w){(0,E.__extends)(d,w);function d(){return w!==null&&w.apply(this,arguments)||this}return d.prototype.getDefaultAttrs=function(){var u=w.prototype.getDefaultAttrs.call(this);return(0,E.__assign)((0,E.__assign)({},u),{x:0,y:0,text:null,fontSize:12,fontFamily:"sans-serif",fontStyle:"normal",fontWeight:"normal",fontVariant:"normal",textAlign:"start",textBaseline:"bottom"})},d.prototype.isOnlyHitBox=function(){return!0},d.prototype.initAttrs=function(u){this._assembleFont(),u.text&&this._setText(u.text)},d.prototype._assembleFont=function(){var u=this.attrs;u.font=(0,wt.assembleFont)(u)},d.prototype._setText=function(u){var y=null;(0,ut.HD)(u)&&u.indexOf(` -`)!==-1&&(y=u.split(` -`)),this.set("textArr",y)},d.prototype.onAttrChange=function(u,y,M){w.prototype.onAttrChange.call(this,u,y,M),u.startsWith("font")&&this._assembleFont(),u==="text"&&this._setText(y)},d.prototype._getSpaceingY=function(){var u=this.attrs,y=u.lineHeight,M=u.fontSize*1;return y?y-M:M*.14},d.prototype._drawTextArr=function(u,y,M){var i=this.attrs,s=i.textBaseline,h=i.x,B=i.y,K=i.fontSize*1,it=this._getSpaceingY(),ot=(0,wt.getTextHeight)(i.text,i.fontSize,i.lineHeight),gt;(0,ut.S6)(y,function(vt,Pt){gt=B+Pt*(it+K)-ot+K,s==="middle"&&(gt+=ot-K-(ot-K)/2),s==="top"&&(gt+=ot-K),(0,ut.kK)(vt)||(M?u.fillText(vt,h,gt):u.strokeText(vt,h,gt))})},d.prototype._drawText=function(u,y){var M=this.attr(),i=M.x,s=M.y,h=this.get("textArr");if(h)this._drawTextArr(u,h,y);else{var B=M.text;(0,ut.kK)(B)||(y?u.fillText(B,i,s):u.strokeText(B,i,s))}},d.prototype.strokeAndFill=function(u){var y=this.attrs,M=y.lineWidth,i=y.opacity,s=y.strokeOpacity,h=y.fillOpacity;this.isStroke()&&M>0&&(!(0,ut.kK)(s)&&s!==1&&(u.globalAlpha=i),this.stroke(u)),this.isFill()&&(!(0,ut.kK)(h)&&h!==1?(u.globalAlpha=h,this.fill(u),u.globalAlpha=i):this.fill(u)),this.afterDrawPath(u)},d.prototype.fill=function(u){this._drawText(u,!0)},d.prototype.stroke=function(u){this._drawText(u,!1)},d}($),_=v},46068:function(nr,St,U){"use strict";U.d(St,{Z:function(){return pt}});var j=U(92793);function E(Q){return Math.sqrt(Q[0]*Q[0]+Q[1]*Q[1])}function wt(Q,W){return E(Q)*E(W)?(Q[0]*W[0]+Q[1]*W[1])/(E(Q)*E(W)):1}function ut(Q,W){return(Q[0]*W[1]1&&($*=Math.sqrt(Y),at*=Math.sqrt(Y));var A=$*$*(st*st)+at*at*(ht*ht),P=A?Math.sqrt(($*$*(at*at)-A)/A):1;lt===G&&(P*=-1),isNaN(P)&&(P=0);var z=at?P*$*st/at:0,Z=$?P*-at*ht/$:0,dt=(H+O)/2+Math.cos(yt)*z-Math.sin(yt)*Z,Et=(X+F)/2+Math.sin(yt)*z+Math.cos(yt)*Z,Ot=[(ht-z)/$,(st-Z)/at],Kt=[(-1*ht-z)/$,(-1*st-Z)/at],Ht=ut([1,0],Ot),Bt=ut(Ot,Kt);return wt(Ot,Kt)<=-1&&(Bt=Math.PI),wt(Ot,Kt)>=1&&(Bt=0),G===0&&Bt>0&&(Bt=Bt-2*Math.PI),G===1&&Bt<0&&(Bt=Bt+2*Math.PI),{cx:dt,cy:Et,rx:(0,j.CF)(Q,[O,F])?0:$,ry:(0,j.CF)(Q,[O,F])?0:at,startAngle:Ht,endAngle:Ht+Bt,xRotation:yt,arcFlag:lt,sweepFlag:G}}},55922:function(nr,St,U){"use strict";U.d(St,{jF:function(){return at},Yf:function(){return yt},YR:function(){return lt}});var j=U(70655),E=U(5501),wt=Math.sin,ut=Math.cos,pt=Math.atan2,Q=Math.PI;function W(G,H,X,O,F,ht,st){var Y=H.stroke,A=H.lineWidth,P=X-F,z=O-ht,Z=pt(z,P),dt=new E.Path({type:"path",canvas:G.get("canvas"),isArrowShape:!0,attrs:{path:"M"+10*ut(Q/6)+","+10*wt(Q/6)+" L0,0 L"+10*ut(Q/6)+",-"+10*wt(Q/6),stroke:Y,lineWidth:A}});dt.translate(F,ht),dt.rotateAtPoint(F,ht,Z),G.set(st?"startArrowShape":"endArrowShape",dt)}function $(G,H,X,O,F,ht,st){var Y=H.startArrow,A=H.endArrow,P=H.stroke,z=H.lineWidth,Z=st?Y:A,dt=Z.d,Et=Z.fill,Ot=Z.stroke,Kt=Z.lineWidth,Ht=(0,j.__rest)(Z,["d","fill","stroke","lineWidth"]),Bt=X-F,Lt=O-ht,zt=pt(Lt,Bt);dt&&(F=F-ut(zt)*dt,ht=ht-wt(zt)*dt);var ft=new E.Path({type:"path",canvas:G.get("canvas"),isArrowShape:!0,attrs:(0,j.__assign)((0,j.__assign)({},Ht),{stroke:Ot||P,lineWidth:Kt||z,fill:Et})});ft.translate(F,ht),ft.rotateAtPoint(F,ht,zt),G.set(st?"startArrowShape":"endArrowShape",ft)}function at(G,H,X,O,F){var ht=pt(O-H,X-G);return{dx:ut(ht)*F,dy:wt(ht)*F}}function yt(G,H,X,O,F,ht){typeof H.startArrow=="object"?$(G,H,X,O,F,ht,!0):H.startArrow?W(G,H,X,O,F,ht,!0):G.set("startArrowShape",null)}function lt(G,H,X,O,F,ht){typeof H.endArrow=="object"?$(G,H,X,O,F,ht,!1):H.endArrow?W(G,H,X,O,F,ht,!1):G.set("startArrowShape",null)}},23645:function(nr,St,U){"use strict";U.d(St,{DE:function(){return W},NX:function(){return $},kU:function(){return at},sT:function(){return lt},MC:function(){return X},md:function(){return O},tJ:function(){return ht},T2:function(){return st}});var j=U(49242),E=U(38425),wt=U(46068),ut=U(92793),pt=U(55922),Q={fill:"fillStyle",stroke:"strokeStyle",opacity:"globalAlpha"};function W(Y,A){var P=A.attr();for(var z in P){var Z=P[z],dt=Q[z]?Q[z]:z;dt==="matrix"&&Z?Y.transform(Z[0],Z[1],Z[3],Z[4],Z[6],Z[7]):dt==="lineDash"&&Y.setLineDash?(0,j.isArray)(Z)&&Y.setLineDash(Z):(dt==="strokeStyle"||dt==="fillStyle"?Z=(0,E.QK)(Y,A,Z):dt==="globalAlpha"&&(Z=Z*Y.globalAlpha),Y[dt]=Z)}}function $(Y,A,P){for(var z=0;zb?x:b,f=x>b?1:x/b,r=x>b?b/x:1;A.translate(q,xt),A.rotate(V),A.scale(f,r),A.arc(0,0,C,I,S,1-ct),A.scale(1/f,1/r),A.rotate(-V),A.translate(-q,-xt)}break}case"Z":A.closePath();break;default:break}if(zt==="Z")Ot=Kt;else{var t=Lt.length;Ot=[Lt[t-2],Lt[t-1]]}}}}function O(Y,A){var P=Y.get("canvas");P&&(A==="remove"&&(Y._cacheCanvasBBox=Y.get("cacheCanvasBBox")),Y.get("hasChanged")||(Y.set("hasChanged",!0),Y.cfg.parent&&Y.cfg.parent.get("hasChanged")||(P.refreshElement(Y,A,P),P.get("autoDraw")&&P.draw())))}function F(Y){var A;if(Y.destroyed)A=Y._cacheCanvasBBox;else{var P=Y.get("cacheCanvasBBox"),z=P&&!!(P.width&&P.height),Z=Y.getCanvasBBox(),dt=Z&&!!(Z.width&&Z.height);z&&dt?A=(0,ut.Me)(P,Z):z?A=P:dt&&(A=Z)}return A}function ht(Y){if(!Y.length)return null;var A=[],P=[],z=[],Z=[];return(0,j.each)(Y,function(dt){var Et=F(dt);Et&&(A.push(Et.minX),P.push(Et.minY),z.push(Et.maxX),Z.push(Et.maxY))}),{minX:(0,j.min)(A),minY:(0,j.min)(P),maxX:(0,j.max)(z),maxY:(0,j.max)(Z)}}function st(Y,A){return!Y||!A||!(0,ut.qb)(Y,A)?null:{minX:Math.max(Y.minX,A.minX),minY:Math.max(Y.minY,A.minY),maxX:Math.min(Y.maxX,A.maxX),maxY:Math.min(Y.maxY,A.maxY)}}},38425:function(nr,St,U){"use strict";U.d(St,{QK:function(){return yt},Fy:function(){return lt}});var j=U(92793),E=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,wt=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,ut=/^p\s*\(\s*([axyn])\s*\)\s*(.*)/i,pt=/[\d.]+:(#[^\s]+|[^\)]+\))/gi;function Q(G,H){var X=G.match(pt);(0,j.S6)(X,function(O){var F=O.split(":");H.addColorStop(F[0],F[1])})}function W(G,H,X){var O=E.exec(X),F=parseFloat(O[1])%360*(Math.PI/180),ht=O[2],st=H.getBBox(),Y,A;F>=0&&F<1/2*Math.PI?(Y={x:st.minX,y:st.minY},A={x:st.maxX,y:st.maxY}):1/2*Math.PI<=F&&F=$&&G<=$+yt&&H>=at&&H<=at+lt}function pt($,at){return!(at.minX>$.maxX||at.maxX<$.minX||at.minY>$.maxY||at.maxY<$.minY)}function Q($,at){return!$||!at?$||at:{minX:Math.min($.minX,at.minX),minY:Math.min($.minY,at.minY),maxX:Math.max($.maxX,at.maxX),maxY:Math.max($.maxY,at.maxY)}}function W($,at){return $[0]===at[0]&&$[1]===at[1]}},89838:function(nr,St,U){"use strict";U.d(St,{wN:function(){return T},Ll:function(){return dt},x1:function(){return at},aH:function(){return S},lD:function(){return st},Zr:function(){return j}});var j={};U.r(j),U.d(j,{distance:function(){return wt},getBBoxByArray:function(){return pt},getBBoxRange:function(){return Q},isNumberEqual:function(){return ut},piMod:function(){return W}});var E=U(49242);function wt(C,f,r,t){var o=C-r,n=f-t;return Math.sqrt(o*o+n*n)}function ut(C,f){return Math.abs(C-f)<.001}function pt(C,f){var r=(0,E.min)(C),t=(0,E.min)(f),o=(0,E.max)(C),n=(0,E.max)(f);return{x:r,y:t,width:o-r,height:n-t}}function Q(C,f,r,t){return{minX:(0,E.min)([C,r]),maxX:(0,E.max)([C,r]),minY:(0,E.min)([f,t]),maxY:(0,E.max)([f,t])}}function W(C){return(C+Math.PI*2)%(Math.PI*2)}var $=U(31437),at={box:function(C,f,r,t){return pt([C,r],[f,t])},length:function(C,f,r,t){return wt(C,f,r,t)},pointAt:function(C,f,r,t,o){return{x:(1-o)*C+o*r,y:(1-o)*f+o*t}},pointDistance:function(C,f,r,t,o,n){var e=(r-C)*(o-C)+(t-f)*(n-f);if(e<0)return wt(C,f,o,n);var c=(r-C)*(r-C)+(t-f)*(t-f);return e>c?wt(r,t,o,n):this.pointToLine(C,f,r,t,o,n)},pointToLine:function(C,f,r,t,o,n){var e=[r-C,t-f];if($.exactEquals(e,[0,0]))return Math.sqrt((o-C)*(o-C)+(n-f)*(n-f));var c=[-e[1],e[0]];$.normalize(c,c);var v=[o-C,n-f];return Math.abs($.dot(v,c))},tangentAngle:function(C,f,r,t){return Math.atan2(t-f,r-C)}},yt=1e-4;function lt(C,f,r,t,o,n){var e,c=Infinity,v=[r,t],_=20;n&&n>200&&(_=n/10);for(var w=1/_,d=w/10,u=0;u<=_;u++){var y=u*w,M=[o.apply(null,C.concat([y])),o.apply(null,f.concat([y]))],i=wt(v[0],v[1],M[0],M[1]);i=0&&i=0?[o]:[]}function O(C,f,r,t){return 2*(1-t)*(f-C)+2*t*(r-f)}function F(C,f,r,t,o,n,e){var c=H(C,r,o,e),v=H(f,t,n,e),_=at.pointAt(C,f,r,t,e),w=at.pointAt(r,t,o,n,e);return[[C,f,_.x,_.y,c,v],[c,v,w.x,w.y,o,n]]}function ht(C,f,r,t,o,n,e){if(e===0)return(wt(C,f,r,t)+wt(r,t,o,n)+wt(C,f,o,n))/2;var c=F(C,f,r,t,o,n,.5),v=c[0],_=c[1];return v.push(e-1),_.push(e-1),ht.apply(null,v)+ht.apply(null,_)}var st={box:function(C,f,r,t,o,n){var e=X(C,r,o)[0],c=X(f,t,n)[0],v=[C,o],_=[f,n];return e!==void 0&&v.push(H(C,r,o,e)),c!==void 0&&_.push(H(f,t,n,c)),pt(v,_)},length:function(C,f,r,t,o,n){return ht(C,f,r,t,o,n,3)},nearestPoint:function(C,f,r,t,o,n,e,c){return lt([C,r,o],[f,t,n],e,c,H)},pointDistance:function(C,f,r,t,o,n,e,c){var v=this.nearestPoint(C,f,r,t,o,n,e,c);return wt(v.x,v.y,e,c)},interpolationAt:H,pointAt:function(C,f,r,t,o,n,e){return{x:H(C,r,o,e),y:H(f,t,n,e)}},divide:function(C,f,r,t,o,n,e){return F(C,f,r,t,o,n,e)},tangentAngle:function(C,f,r,t,o,n,e){var c=O(C,r,o,e),v=O(f,t,n,e),_=Math.atan2(v,c);return W(_)}};function Y(C,f,r,t,o){var n=1-o;return n*n*n*C+3*f*o*n*n+3*r*o*o*n+t*o*o*o}function A(C,f,r,t,o){var n=1-o;return 3*(n*n*(f-C)+2*n*o*(r-f)+o*o*(t-r))}function P(C,f,r,t){var o=-3*C+9*f-9*r+3*t,n=6*C-12*f+6*r,e=3*f-3*C,c=[],v,_,w;if(ut(o,0))ut(n,0)||(v=-e/n,v>=0&&v<=1&&c.push(v));else{var d=n*n-4*o*e;ut(d,0)?c.push(-n/(2*o)):d>0&&(w=Math.sqrt(d),v=(-n+w)/(2*o),_=(-n-w)/(2*o),v>=0&&v<=1&&c.push(v),_>=0&&_<=1&&c.push(_))}return c}function z(C,f,r,t,o,n,e,c,v){var _=Y(C,r,o,e,v),w=Y(f,t,n,c,v),d=at.pointAt(C,f,r,t,v),u=at.pointAt(r,t,o,n,v),y=at.pointAt(o,n,e,c,v),M=at.pointAt(d.x,d.y,u.x,u.y,v),i=at.pointAt(u.x,u.y,y.x,y.y,v);return[[C,f,d.x,d.y,M.x,M.y,_,w],[_,w,i.x,i.y,y.x,y.y,e,c]]}function Z(C,f,r,t,o,n,e,c,v){if(v===0)return G([C,r,o,e],[f,t,n,c]);var _=z(C,f,r,t,o,n,e,c,.5),w=_[0],d=_[1];return w.push(v-1),d.push(v-1),Z.apply(null,w)+Z.apply(null,d)}var dt={extrema:P,box:function(C,f,r,t,o,n,e,c){for(var v=[C,e],_=[f,c],w=P(C,r,o,e),d=P(f,t,n,c),u=0;u0?r:r*-1}var Ot={box:function(C,f,r,t){return{x:C-r,y:f-t,width:r*2,height:t*2}},length:function(C,f,r,t){return Math.PI*(3*(r+t)-Math.sqrt((3*r+t)*(r+3*t)))},nearestPoint:function(C,f,r,t,o,n){var e=r,c=t;if(e===0||c===0)return{x:C,y:f};for(var v=o-C,_=n-f,w=Math.abs(v),d=Math.abs(_),u=e*e,y=c*c,M=Math.PI/4,i,s,h=0;h<4;h++){i=e*Math.cos(M),s=c*Math.sin(M);var B=(u-y)*Math.pow(Math.cos(M),3)/e,K=(y-u)*Math.pow(Math.sin(M),3)/c,it=i-B,ot=s-K,gt=w-B,vt=d-K,Pt=Math.hypot(ot,it),Ct=Math.hypot(vt,gt),Yt=Pt*Math.asin((it*vt-ot*gt)/(Pt*Ct)),Zt=Yt/Math.sqrt(u+y-i*i-s*s);M+=Zt,M=Math.min(Math.PI/2,Math.max(0,M))}return{x:C+Et(i,v),y:f+Et(s,_)}},pointDistance:function(C,f,r,t,o,n){var e=this.nearestPoint(C,f,r,t,o,n);return wt(e.x,e.y,o,n)},pointAt:function(C,f,r,t,o){var n=2*Math.PI*o;return{x:C+r*Math.cos(n),y:f+t*Math.sin(n)}},tangentAngle:function(C,f,r,t,o){var n=2*Math.PI*o,e=Math.atan2(t*Math.cos(n),-r*Math.sin(n));return W(e)}};function Kt(C,f,r,t,o,n,e,c){return-1*r*Math.cos(o)*Math.sin(c)-t*Math.sin(o)*Math.cos(c)}function Ht(C,f,r,t,o,n,e,c){return-1*r*Math.sin(o)*Math.sin(c)+t*Math.cos(o)*Math.cos(c)}function Bt(C,f,r){return Math.atan(-f/C*Math.tan(r))}function Lt(C,f,r){return Math.atan(f/(C*Math.tan(r)))}function zt(C,f,r,t,o,n){return r*Math.cos(o)*Math.cos(n)-t*Math.sin(o)*Math.sin(n)+C}function ft(C,f,r,t,o,n){return r*Math.sin(o)*Math.cos(n)+t*Math.cos(o)*Math.sin(n)+f}function rt(C,f,r,t){var o=Math.atan2(t*C,r*f);return(o+Math.PI*2)%(Math.PI*2)}function a(C,f,r){return{x:C*Math.cos(r),y:f*Math.sin(r)}}function l(C,f,r){var t=Math.cos(r),o=Math.sin(r);return[C*t-f*o,C*o+f*t]}var T={box:function(C,f,r,t,o,n,e){for(var c=Bt(r,t,o),v=Infinity,_=-Infinity,w=[n,e],d=-Math.PI*2;d<=Math.PI*2;d+=Math.PI){var u=c+d;n_&&(_=y)}for(var M=Lt(r,t,o),i=Infinity,s=-Infinity,h=[n,e],d=-Math.PI*2;d<=Math.PI*2;d+=Math.PI){var B=M+d;ns&&(s=K)}return{x:v,y:i,width:_-v,height:s-i}},length:function(C,f,r,t,o,n,e){},nearestPoint:function(C,f,r,t,o,n,e,c,v){var _=l(c-C,v-f,-o),w=_[0],d=_[1],u=Ot.nearestPoint(0,0,r,t,w,d),y=rt(r,t,u.x,u.y);ye&&(u=a(r,t,e));var M=l(u.x,u.y,o);return{x:M[0]+C,y:M[1]+f}},pointDistance:function(C,f,r,t,o,n,e,c,v){var _=this.nearestPoint(C,f,r,t,c,v);return wt(_.x,_.y,c,v)},pointAt:function(C,f,r,t,o,n,e,c){var v=(e-n)*c+n;return{x:zt(C,f,r,t,o,v),y:ft(C,f,r,t,o,v)}},tangentAngle:function(C,f,r,t,o,n,e,c){var v=(e-n)*c+n,_=Kt(C,f,r,t,o,n,e,v),w=Ht(C,f,r,t,o,n,e,v);return W(Math.atan2(w,_))}};function q(C){for(var f=0,r=[],t=0;t1||f<0||C.length<2)return null;var r=q(C),t=r.segments,o=r.totalLength;if(o===0)return{x:C[0][0],y:C[0][1]};for(var n=0,e=null,c=0;c=n&&f<=n+d){var u=(f-n)/d;e=at.pointAt(_[0],_[1],w[0],w[1],u);break}n+=d}return e}function b(C,f){if(f>1||f<0||C.length<2)return 0;for(var r=q(C),t=r.segments,o=r.totalLength,n=0,e=0,c=0;c=n&&f<=n+d){e=Math.atan2(w[1]-_[1],w[0]-_[0]);break}n+=d}return e}function I(C,f,r){for(var t=Infinity,o=0;o'}),l}function X(rt,a){var l=yt.exec(rt),T=(0,at.mod)((0,at.toRadian)(parseFloat(l[1])),Math.PI*2),q=l[2],xt,x;T>=0&&T<.5*Math.PI?(xt={x:0,y:0},x={x:1,y:1}):.5*Math.PI<=T&&T`;l.innerHTML=T},rt}(),P=A,z=function(){function rt(a,l){this.cfg={};var T=(0,Q.rS)("marker"),q=(0,at.uniqueId)("marker_");T.setAttribute("id",q);var xt=(0,Q.rS)("path");xt.setAttribute("stroke",a.stroke||"none"),xt.setAttribute("fill",a.fill||"none"),T.appendChild(xt),T.setAttribute("overflow","visible"),T.setAttribute("orient","auto-start-reverse"),this.el=T,this.child=xt,this.id=q;var x=a[l==="marker-start"?"startArrow":"endArrow"];return this.stroke=a.stroke||"#000",x===!0?this._setDefaultPath(l,xt):(this.cfg=x,this._setMarker(a.lineWidth,xt)),this}return rt.prototype.match=function(){return!1},rt.prototype._setDefaultPath=function(a,l){var T=this.el;l.setAttribute("d","M0,0 L"+10*Math.cos(Math.PI/6)+",5 L0,10"),T.setAttribute("refX",""+10*Math.cos(Math.PI/6)),T.setAttribute("refY",""+5)},rt.prototype._setMarker=function(a,l){var T=this.el,q=this.cfg.path,xt=this.cfg.d;(0,at.isArray)(q)&&(q=q.map(function(x){return x.join(" ")}).join("")),l.setAttribute("d",q),T.appendChild(l),xt&&T.setAttribute("refX",""+xt/a)},rt.prototype.update=function(a){var l=this.child;l.attr?l.attr("fill",a):l.setAttribute("fill",a)},rt}(),Z=z,dt=function(){function rt(a){this.type="clip",this.cfg={};var l=(0,Q.rS)("clipPath");this.el=l,this.id=(0,at.uniqueId)("clip_"),l.id=this.id;var T=a.cfg.el;return l.appendChild(T),this.cfg=a,this}return rt.prototype.match=function(){return!1},rt.prototype.remove=function(){var a=this.el;a.parentNode.removeChild(a)},rt}(),Et=dt,Ot=/^p\s*\(\s*([axyn])\s*\)\s*(.*)/i,Kt=function(){function rt(a){this.cfg={};var l=(0,Q.rS)("pattern");l.setAttribute("patternUnits","userSpaceOnUse");var T=(0,Q.rS)("image");l.appendChild(T);var q=(0,at.uniqueId)("pattern_");l.id=q,this.el=l,this.id=q,this.cfg=a;var xt=Ot.exec(a),x=xt[2];T.setAttribute("href",x);var b=new Image;x.match(/^data:/i)||(b.crossOrigin="Anonymous"),b.src=x;function I(){l.setAttribute("width",""+b.width),l.setAttribute("height",""+b.height)}return b.complete?I():(b.onload=I,b.src=b.src),this}return rt.prototype.match=function(a,l){return this.cfg===l},rt}(),Ht=Kt,Bt=function(){function rt(a){var l=(0,Q.rS)("defs"),T=(0,at.uniqueId)("defs_");l.id=T,a.appendChild(l),this.children=[],this.defaultArrow={},this.el=l,this.canvas=a}return rt.prototype.find=function(a,l){for(var T=this.children,q=null,xt=0;xt0&&(o?"stroke"in n?this._setColor(t,"stroke",v):"strokeStyle"in n&&this._setColor(t,"stroke",_):this._setColor(t,"stroke",v||_),d&&y.setAttribute(W.A8.strokeOpacity,d),u&&y.setAttribute(W.A8.lineWidth,u))},r.prototype._setColor=function(t,o,n){var e=this.get("el");if(!n){e.setAttribute(W.A8[o],"none");return}if(n=n.trim(),/^[r,R,L,l]{1}[\s]*\(/.test(n)){var c=t.find("gradient",n);c||(c=t.addGradient(n)),e.setAttribute(W.A8[o],"url(#"+c+")")}else if(/^[p,P]{1}[\s]*\(/.test(n)){var c=t.find("pattern",n);c||(c=t.addPattern(n)),e.setAttribute(W.A8[o],"url(#"+c+")")}else e.setAttribute(W.A8[o],n)},r.prototype.shadow=function(t,o){var n=this.attr(),e=o||n,c=e.shadowOffsetX,v=e.shadowOffsetY,_=e.shadowBlur,w=e.shadowColor;(c||v||_||w)&&(0,ut.kr)(this,t)},r.prototype.transform=function(t){var o=this.attr(),n=(t||o).matrix;n&&(0,ut.B2)(this)},r.prototype.isInShape=function(t,o){return this.isPointInPath(t,o)},r.prototype.isPointInPath=function(t,o){var n=this.get("el"),e=this.get("canvas"),c=e.get("el").getBoundingClientRect(),v=t+c.left,_=o+c.top,w=document.elementFromPoint(v,_);return!!(w&&w.isEqualNode(n))},r.prototype.getHitLineWidth=function(){var t=this.attrs,o=t.lineWidth,n=t.lineAppendWidth;return this.isStroke()?o+n:0},r}(wt.AbstractShape),yt=at,lt=U(49242),G=function(f){(0,E.__extends)(r,f);function r(){var t=f!==null&&f.apply(this,arguments)||this;return t.type="circle",t.canFill=!0,t.canStroke=!0,t}return r.prototype.getDefaultAttrs=function(){var t=f.prototype.getDefaultAttrs.call(this);return(0,E.__assign)((0,E.__assign)({},t),{x:0,y:0,r:0})},r.prototype.createPath=function(t,o){var n=this.attr(),e=this.get("el");(0,lt.each)(o||n,function(c,v){v==="x"||v==="y"?e.setAttribute("c"+v,c):W.A8[v]&&e.setAttribute(W.A8[v],c)})},r}(yt),H=G,X=function(f){(0,E.__extends)(r,f);function r(){var t=f!==null&&f.apply(this,arguments)||this;return t.type="dom",t.canFill=!1,t.canStroke=!1,t}return r.prototype.createPath=function(t,o){var n=this.attr(),e=this.get("el");if((0,lt.each)(o||n,function(w,d){W.A8[d]&&e.setAttribute(W.A8[d],w)}),typeof n.html=="function"){var c=n.html.call(this,n);if(c instanceof Element||c instanceof HTMLDocument){for(var v=e.childNodes,_=v.length-1;_>=0;_--)e.removeChild(v[_]);e.appendChild(c)}else e.innerHTML=c}else e.innerHTML=n.html},r}(yt),O=X,F=function(f){(0,E.__extends)(r,f);function r(){var t=f!==null&&f.apply(this,arguments)||this;return t.type="ellipse",t.canFill=!0,t.canStroke=!0,t}return r.prototype.getDefaultAttrs=function(){var t=f.prototype.getDefaultAttrs.call(this);return(0,E.__assign)((0,E.__assign)({},t),{x:0,y:0,rx:0,ry:0})},r.prototype.createPath=function(t,o){var n=this.attr(),e=this.get("el");(0,lt.each)(o||n,function(c,v){v==="x"||v==="y"?e.setAttribute("c"+v,c):W.A8[v]&&e.setAttribute(W.A8[v],c)})},r}(yt),ht=F,st=function(f){(0,E.__extends)(r,f);function r(){var t=f!==null&&f.apply(this,arguments)||this;return t.type="image",t.canFill=!1,t.canStroke=!1,t}return r.prototype.getDefaultAttrs=function(){var t=f.prototype.getDefaultAttrs.call(this);return(0,E.__assign)((0,E.__assign)({},t),{x:0,y:0,width:0,height:0})},r.prototype.createPath=function(t,o){var n=this,e=this.attr(),c=this.get("el");(0,lt.each)(o||e,function(v,_){_==="img"?n._setImage(e.img):W.A8[_]&&c.setAttribute(W.A8[_],v)})},r.prototype.setAttr=function(t,o){this.attrs[t]=o,t==="img"&&this._setImage(o)},r.prototype._setImage=function(t){var o=this.attr(),n=this.get("el");if((0,lt.isString)(t))n.setAttribute("href",t);else if(t instanceof window.Image)o.width||(n.setAttribute("width",t.width),this.attr("width",t.width)),o.height||(n.setAttribute("height",t.height),this.attr("height",t.height)),n.setAttribute("href",t.src);else if(t instanceof HTMLElement&&(0,lt.isString)(t.nodeName)&&t.nodeName.toUpperCase()==="CANVAS")n.setAttribute("href",t.toDataURL());else if(t instanceof ImageData){var e=document.createElement("canvas");e.setAttribute("width",""+t.width),e.setAttribute("height",""+t.height),e.getContext("2d").putImageData(t,0,0),o.width||(n.setAttribute("width",""+t.width),this.attr("width",t.width)),o.height||(n.setAttribute("height",""+t.height),this.attr("height",t.height)),n.setAttribute("href",e.toDataURL())}},r}(yt),Y=st,A=U(89838),P=function(f){(0,E.__extends)(r,f);function r(){var t=f!==null&&f.apply(this,arguments)||this;return t.type="line",t.canFill=!1,t.canStroke=!0,t}return r.prototype.getDefaultAttrs=function(){var t=f.prototype.getDefaultAttrs.call(this);return(0,E.__assign)((0,E.__assign)({},t),{x1:0,y1:0,x2:0,y2:0,startArrow:!1,endArrow:!1})},r.prototype.createPath=function(t,o){var n=this.attr(),e=this.get("el");(0,lt.each)(o||n,function(c,v){if(v==="startArrow"||v==="endArrow")if(c){var _=(0,lt.isObject)(c)?t.addArrow(n,W.A8[v]):t.getDefaultArrow(n,W.A8[v]);e.setAttribute(W.A8[v],"url(#"+_+")")}else e.removeAttribute(W.A8[v]);else W.A8[v]&&e.setAttribute(W.A8[v],c)})},r.prototype.getTotalLength=function(){var t=this.attr(),o=t.x1,n=t.y1,e=t.x2,c=t.y2;return A.x1.length(o,n,e,c)},r.prototype.getPoint=function(t){var o=this.attr(),n=o.x1,e=o.y1,c=o.x2,v=o.y2;return A.x1.pointAt(n,e,c,v,t)},r}(yt),z=P,Z={circle:function(f,r,t){return[["M",f,r],["m",-t,0],["a",t,t,0,1,0,t*2,0],["a",t,t,0,1,0,-t*2,0]]},square:function(f,r,t){return[["M",f-t,r-t],["L",f+t,r-t],["L",f+t,r+t],["L",f-t,r+t],["Z"]]},diamond:function(f,r,t){return[["M",f-t,r],["L",f,r-t],["L",f+t,r],["L",f,r+t],["Z"]]},triangle:function(f,r,t){var o=t*Math.sin(1/3*Math.PI);return[["M",f-t,r+o],["L",f,r-o],["L",f+t,r+o],["z"]]},triangleDown:function(f,r,t){var o=t*Math.sin(1/3*Math.PI);return[["M",f-t,r-o],["L",f+t,r-o],["L",f,r+o],["Z"]]}},dt={get:function(f){return Z[f]},register:function(f,r){Z[f]=r},remove:function(f){delete Z[f]},getAll:function(){return Z}},Et=function(f){(0,E.__extends)(r,f);function r(){var t=f!==null&&f.apply(this,arguments)||this;return t.type="marker",t.canFill=!0,t.canStroke=!0,t}return r.prototype.createPath=function(t){var o=this.get("el");o.setAttribute("d",this._assembleMarker())},r.prototype._assembleMarker=function(){var t=this._getPath();return(0,lt.isArray)(t)?t.map(function(o){return o.join(" ")}).join(""):t},r.prototype._getPath=function(){var t=this.attr(),o=t.x,n=t.y,e=t.r||t.radius,c=t.symbol||"circle",v;return(0,lt.isFunction)(c)?v=c:v=dt.get(c),v?v(o,n,e):(console.warn(v+" symbol is not exist."),null)},r.symbolsFactory=dt,r}(yt),Ot=Et,Kt=function(f){(0,E.__extends)(r,f);function r(){var t=f!==null&&f.apply(this,arguments)||this;return t.type="path",t.canFill=!0,t.canStroke=!0,t}return r.prototype.getDefaultAttrs=function(){var t=f.prototype.getDefaultAttrs.call(this);return(0,E.__assign)((0,E.__assign)({},t),{startArrow:!1,endArrow:!1})},r.prototype.createPath=function(t,o){var n=this,e=this.attr(),c=this.get("el");(0,lt.each)(o||e,function(v,_){if(_==="path"&&(0,lt.isArray)(v))c.setAttribute("d",n._formatPath(v));else if(_==="startArrow"||_==="endArrow")if(v){var w=(0,lt.isObject)(v)?t.addArrow(e,W.A8[_]):t.getDefaultArrow(e,W.A8[_]);c.setAttribute(W.A8[_],"url(#"+w+")")}else c.removeAttribute(W.A8[_]);else W.A8[_]&&c.setAttribute(W.A8[_],v)})},r.prototype._formatPath=function(t){var o=t.map(function(n){return n.join(" ")}).join("");return~o.indexOf("NaN")?"":o},r.prototype.getTotalLength=function(){var t=this.get("el");return t?t.getTotalLength():null},r.prototype.getPoint=function(t){var o=this.get("el"),n=this.getTotalLength();if(n===0)return null;var e=o?o.getPointAtLength(t*n):null;return e?{x:e.x,y:e.y}:null},r}(yt),Ht=Kt,Bt=function(f){(0,E.__extends)(r,f);function r(){var t=f!==null&&f.apply(this,arguments)||this;return t.type="polygon",t.canFill=!0,t.canStroke=!0,t}return r.prototype.createPath=function(t,o){var n=this.attr(),e=this.get("el");(0,lt.each)(o||n,function(c,v){v==="points"&&(0,lt.isArray)(c)&&c.length>=2?e.setAttribute("points",c.map(function(_){return _[0]+","+_[1]}).join(" ")):W.A8[v]&&e.setAttribute(W.A8[v],c)})},r}(yt),Lt=Bt,zt=function(f){(0,E.__extends)(r,f);function r(){var t=f!==null&&f.apply(this,arguments)||this;return t.type="polyline",t.canFill=!0,t.canStroke=!0,t}return r.prototype.getDefaultAttrs=function(){var t=f.prototype.getDefaultAttrs.call(this);return(0,E.__assign)((0,E.__assign)({},t),{startArrow:!1,endArrow:!1})},r.prototype.onAttrChange=function(t,o,n){f.prototype.onAttrChange.call(this,t,o,n),["points"].indexOf(t)!==-1&&this._resetCache()},r.prototype._resetCache=function(){this.set("totalLength",null),this.set("tCache",null)},r.prototype.createPath=function(t,o){var n=this.attr(),e=this.get("el");(0,lt.each)(o||n,function(c,v){v==="points"&&(0,lt.isArray)(c)&&c.length>=2?e.setAttribute("points",c.map(function(_){return _[0]+","+_[1]}).join(" ")):W.A8[v]&&e.setAttribute(W.A8[v],c)})},r.prototype.getTotalLength=function(){var t=this.attr().points,o=this.get("totalLength");return(0,lt.isNil)(o)?(this.set("totalLength",A.aH.length(t)),this.get("totalLength")):o},r.prototype.getPoint=function(t){var o=this.attr().points,n=this.get("tCache");n||(this._setTcache(),n=this.get("tCache"));var e,c;return(0,lt.each)(n,function(v,_){t>=v[0]&&t<=v[1]&&(e=(t-v[0])/(v[1]-v[0]),c=_)}),A.x1.pointAt(o[c][0],o[c][1],o[c+1][0],o[c+1][1],e)},r.prototype._setTcache=function(){var t=this.attr().points;if(!(!t||t.length===0)){var o=this.getTotalLength();if(!(o<=0)){var n=0,e=[],c,v;(0,lt.each)(t,function(_,w){t[w+1]&&(c=[],c[0]=n/o,v=A.x1.length(_[0],_[1],t[w+1][0],t[w+1][1]),n+=v,c[1]=n/o,e.push(c))}),this.set("tCache",e)}}},r.prototype.getStartTangent=function(){var t=this.attr().points,o=[];return o.push([t[1][0],t[1][1]]),o.push([t[0][0],t[0][1]]),o},r.prototype.getEndTangent=function(){var t=this.attr().points,o=t.length-1,n=[];return n.push([t[o-1][0],t[o-1][1]]),n.push([t[o][0],t[o][1]]),n},r}(yt),ft=zt,rt=/[MLHVQTCSAZ]([^MLHVQTCSAZ]*)/gi,a=/[^\s,]+/gi;function l(f){var r=0,t=0,o=0,n=0;return(0,lt.isArray)(f)?f.length===1?r=t=o=n=f[0]:f.length===2?(r=o=f[0],t=n=f[1]):f.length===3?(r=f[0],t=n=f[1],o=f[2]):(r=f[0],t=f[1],o=f[2],n=f[3]):r=t=o=n=f,{r1:r,r2:t,r3:o,r4:n}}function T(f){if(f=f||[],isArray(f))return f;if(isString(f))return f=f.match(rt),each(f,function(r,t){if(r=r.match(a),r[0].length>1){var o=r[0].charAt(0);r.splice(1,0,r[0].substr(1)),r[0]=o}each(r,function(n,e){isNaN(n)||(r[e]=+n)}),f[t]=r}),f}var q=function(f){(0,E.__extends)(r,f);function r(){var t=f!==null&&f.apply(this,arguments)||this;return t.type="rect",t.canFill=!0,t.canStroke=!0,t}return r.prototype.getDefaultAttrs=function(){var t=f.prototype.getDefaultAttrs.call(this);return(0,E.__assign)((0,E.__assign)({},t),{x:0,y:0,width:0,height:0,radius:0})},r.prototype.createPath=function(t,o){var n=this,e=this.attr(),c=this.get("el"),v=!1,_=["x","y","width","height","radius"];(0,lt.each)(o||e,function(w,d){_.indexOf(d)!==-1&&!v?(c.setAttribute("d",n._assembleRect(e)),v=!0):_.indexOf(d)===-1&&W.A8[d]&&c.setAttribute(W.A8[d],w)})},r.prototype._assembleRect=function(t){var o=t.x,n=t.y,e=t.width,c=t.height,v=t.radius;if(!v)return"M "+o+","+n+" l "+e+",0 l 0,"+c+" l"+-e+" 0 z";var _=l(v);(0,lt.isArray)(v)?v.length===1?_.r1=_.r2=_.r3=_.r4=v[0]:v.length===2?(_.r1=_.r3=v[0],_.r2=_.r4=v[1]):v.length===3?(_.r1=v[0],_.r2=_.r4=v[1],_.r3=v[2]):(_.r1=v[0],_.r2=v[1],_.r3=v[2],_.r4=v[3]):_.r1=_.r2=_.r3=_.r4=v;var w=[["M "+(o+_.r1)+","+n],["l "+(e-_.r1-_.r2)+",0"],["a "+_.r2+","+_.r2+",0,0,1,"+_.r2+","+_.r2],["l 0,"+(c-_.r2-_.r3)],["a "+_.r3+","+_.r3+",0,0,1,"+-_.r3+","+_.r3],["l "+(_.r3+_.r4-e)+",0"],["a "+_.r4+","+_.r4+",0,0,1,"+-_.r4+","+-_.r4],["l 0,"+(_.r4+_.r1-c)],["a "+_.r1+","+_.r1+",0,0,1,"+_.r1+","+-_.r1],["z"]];return w.join(" ")},r}(yt),xt=q,x=U(43631),b=.3,I={top:"before-edge",middle:"central",bottom:"after-edge",alphabetic:"baseline",hanging:"hanging"},S={top:"text-before-edge",middle:"central",bottom:"text-after-edge",alphabetic:"alphabetic",hanging:"hanging"},V={left:"left",start:"left",center:"middle",right:"end",end:"end"},ct=function(f){(0,E.__extends)(r,f);function r(){var t=f!==null&&f.apply(this,arguments)||this;return t.type="text",t.canFill=!0,t.canStroke=!0,t}return r.prototype.getDefaultAttrs=function(){var t=f.prototype.getDefaultAttrs.call(this);return(0,E.__assign)((0,E.__assign)({},t),{x:0,y:0,text:null,fontSize:12,fontFamily:"sans-serif",fontStyle:"normal",fontWeight:"normal",fontVariant:"normal",textAlign:"start",textBaseline:"bottom"})},r.prototype.createPath=function(t,o){var n=this,e=this.attr(),c=this.get("el");this._setFont(),(0,lt.each)(o||e,function(v,_){_==="text"?n._setText(""+v):_==="matrix"&&v?(0,ut.B2)(n):W.A8[_]&&c.setAttribute(W.A8[_],v)}),c.setAttribute("paint-order","stroke"),c.setAttribute("style","stroke-linecap:butt; stroke-linejoin:miter;")},r.prototype._setFont=function(){var t=this.get("el"),o=this.attr(),n=o.textBaseline,e=o.textAlign,c=(0,x.qY)();c&&c.name==="firefox"?t.setAttribute("dominant-baseline",S[n]||"alphabetic"):t.setAttribute("alignment-baseline",I[n]||"baseline"),t.setAttribute("text-anchor",V[e]||"left")},r.prototype._setText=function(t){var o=this.get("el"),n=this.attr(),e=n.x,c=n.textBaseline,v=c===void 0?"bottom":c;if(!t)o.innerHTML="";else if(~t.indexOf(` -`)){var _=t.split(` -`),w=_.length-1,d="";(0,lt.each)(_,function(u,y){y===0?v==="alphabetic"?d+=''+u+"":v==="top"?d+=''+u+"":v==="middle"?d+=''+u+"":v==="bottom"?d+=''+u+"":v==="hanging"&&(d+=''+u+""):d+=''+u+""}),o.innerHTML=d}else o.innerHTML=t},r}(yt),C=ct},19372:function(nr,St,U){"use strict";U.d(St,{rS:function(){return wt},WV:function(){return ut},ZL:function(){return pt},Ao:function(){return Q}});var j=U(49242),E=U(37486);function wt(W){return document.createElementNS("http://www.w3.org/2000/svg",W)}function ut(W){var $=E.CX[W.type],at=W.getParent();if(!$)throw new Error("the type "+W.type+" is not supported by svg");var yt=wt($);if(W.get("id")&&(yt.id=W.get("id")),W.set("el",yt),W.set("attrs",{}),at){var lt=at.get("el");lt||(lt=at.createDom(),at.set("el",lt)),lt.appendChild(yt)}return yt}function pt(W,$){var at=W.get("el"),yt=(0,j.toArray)(at.children).sort($),lt=document.createDocumentFragment();yt.forEach(function(G){lt.appendChild(G)}),at.appendChild(lt)}function Q(W,$){var at=W.parentNode,yt=Array.from(at.childNodes).filter(function(X){return X.nodeType===1&&X.nodeName.toLowerCase()!=="defs"}),lt=yt[$],G=yt.indexOf(W);if(lt){if(G>$)at.insertBefore(W,lt);else if(G<$){var H=yt[$+1];H?at.insertBefore(W,H):at.appendChild(W)}}else at.appendChild(W)}},9051:function(nr,St,U){"use strict";U.d(St,{N:function(){return wt},m:function(){return ut}});var j=U(56814),E=U(19372);function wt(pt,Q){Q.forEach(function(W){W.draw(pt)})}function ut(pt,Q){var W=pt.get("canvas");if(W&&W.get("autoDraw")){var $=W.get("context"),at=pt.getParent(),yt=at?at.getChildren():[W],lt=pt.get("el");if(Q==="remove"){var G=pt.get("isClipShape");if(G){var H=lt&<.parentNode,X=H&&H.parentNode;H&&X&&X.removeChild(H)}else lt&<.parentNode&<.parentNode.removeChild(lt)}else if(Q==="show")lt.setAttribute("visibility","visible");else if(Q==="hide")lt.setAttribute("visibility","hidden");else if(Q==="zIndex")(0,E.Ao)(lt,yt.indexOf(pt));else if(Q==="sort"){var O=pt.get("children");O&&O.length&&(0,E.ZL)(pt,function(F,ht){return O.indexOf(F)-O.indexOf(ht)?1:0})}else Q==="clear"?lt&&(lt.innerHTML=""):Q==="matrix"?(0,j.B2)(pt):Q==="clip"?(0,j.r7)(pt,$):Q==="attr"||Q==="add"&&pt.draw($)}}},56814:function(nr,St,U){"use strict";U.d(St,{kr:function(){return E},B2:function(){return wt},r7:function(){return ut}});var j=U(19372);function E(pt,Q){var W=pt.cfg.el,$=pt.attr(),at={dx:$.shadowOffsetX,dy:$.shadowOffsetY,blur:$.shadowBlur,color:$.shadowColor};if(!at.dx&&!at.dy&&!at.blur&&!at.color)W.removeAttribute("filter");else{var yt=Q.find("filter",at);yt||(yt=Q.addShadow(at)),W.setAttribute("filter","url(#"+yt+")")}}function wt(pt){var Q=pt.attr().matrix;if(Q){for(var W=pt.cfg.el,$=[],at=0;at<9;at+=3)$.push(Q[at]+","+Q[at+1]);$=$.join(","),$.indexOf("NaN")===-1?W.setAttribute("transform","matrix("+$+")"):console.warn("invalid matrix:",Q)}}function ut(pt,Q){var W=pt.getClip(),$=pt.get("el");if(!W)$.removeAttribute("clip-path");else if(W&&!$.hasAttribute("clip-path")){(0,j.WV)(W),W.createPath(Q);var at=Q.addClip(W);$.setAttribute("clip-path","url(#"+at+")")}}},31506:function(nr,St,U){"use strict";U.d(St,{m$:function(){return wt},zu:function(){return ut},lh:function(){return pt},vs:function(){return W},Dg:function(){return at}});var j=U(35600),E=U(31437);function wt(lt,G,H){var X=[0,0,0,0,0,0,0,0,0];return j.fromTranslation(X,H),j.multiply(lt,X,G)}function ut(lt,G,H){var X=[0,0,0,0,0,0,0,0,0];return j.fromRotation(X,H),j.multiply(lt,X,G)}function pt(lt,G,H){var X=[0,0,0,0,0,0,0,0,0];return j.fromScaling(X,H),j.multiply(lt,X,G)}function Q(lt,G,H){return j.multiply(lt,H,G)}function W(lt,G){for(var H=lt?[].concat(lt):[1,0,0,0,1,0,0,0,1],X=0,O=G.length;X=0;return H?O?Math.PI*2-X:X:O?X:Math.PI*2-X}function yt(lt,G,H){return H?(lt[0]=G[1],lt[1]=-1*G[0]):(lt[0]=-1*G[1],lt[1]=G[0]),lt}},80389:function(nr,St,U){"use strict";U.d(St,{e9:function(){return at},Wq:function(){return M},tr:function(){return F},wb:function(){return Y},zx:function(){return t}});var j=U(49242),E=/[MLHVQTCSAZ]([^MLHVQTCSAZ]*)/ig,wt=/[^\s\,]+/ig;function ut(i){var s=i||[];if((0,j.isArray)(s))return s;if((0,j.isString)(s))return s=s.match(E),(0,j.each)(s,function(h,B){if(h=h.match(wt),h[0].length>1){var K=h[0].charAt(0);h.splice(1,0,h[0].substr(1)),h[0]=K}(0,j.each)(h,function(it,ot){isNaN(it)||(h[ot]=+it)}),s[B]=h}),s}var pt=ut,Q=U(31437);function W(i,s,h,B){var K=[],it=!!B,ot,gt,vt,Pt,Ct,Yt,Zt;if(it){vt=B[0],Pt=B[1];for(var Tt=0,Xt=i.length;Tt=0;vt--)ot=it[vt].index,it[vt].type==="add"?i.splice(ot,0,[].concat(i[ot])):i.splice(ot,1)}if(B=i.length,B2&&(h.push([K].concat(ot.splice(0,2))),gt="l",K=K==="m"?"l":"L"),gt==="o"&&ot.length===1&&h.push([K,ot[0]]),gt==="r")h.push([K].concat(ot));else for(;ot.length>=s[gt]&&(h.push([K].concat(ot.splice(0,s[gt]))),!!s[gt]););return""}),h}var ht=/[a-z]/;function st(i,s){return[s[0]+(s[0]-i[0]),s[1]+(s[1]-i[1])]}function Y(i){var s=F(i);if(!s||!s.length)return[["M",0,0]];for(var h=!1,B=0;B=0){h=!0;break}}if(!h)return s;var it=[],ot=0,gt=0,vt=0,Pt=0,Ct=0,Yt,Zt,Tt=s[0];(Tt[0]==="M"||Tt[0]==="m")&&(ot=+Tt[1],gt=+Tt[2],vt=ot,Pt=gt,Ct++,it[0]=["M",ot,gt]);for(var B=Ct,Xt=s.length;B1&&(it=1),it<-1&&(it=-1),K*Math.acos(it)},dt=function(i,s,h,B,K,it,ot,gt,vt,Pt,Ct,Yt){var Zt=Math.pow(K,2),Tt=Math.pow(it,2),Xt=Math.pow(Ct,2),Wt=Math.pow(Yt,2),Vt=Zt*Tt-Zt*Wt-Tt*Xt;Vt<0&&(Vt=0),Vt/=Zt*Wt+Tt*Xt,Vt=Math.sqrt(Vt)*(ot===gt?-1:1);var Nt=Vt*K/it*Yt,Gt=Vt*-it/K*Ct,Jt=Pt*Nt-vt*Gt+(i+h)/2,qt=vt*Nt+Pt*Gt+(s+B)/2,jt=(Ct-Nt)/K,er=(Yt-Gt)/it,ar=(-Ct-Nt)/K,cr=(-Yt-Gt)/it,dr=Z(1,0,jt,er),lr=Z(jt,er,ar,cr);return gt===0&&lr>0&&(lr-=A),gt===1&&lr<0&&(lr+=A),[Jt,qt,dr,lr]},Et=function(i){var s=i.px,h=i.py,B=i.cx,K=i.cy,it=i.rx,ot=i.ry,gt=i.xAxisRotation,vt=gt===void 0?0:gt,Pt=i.largeArcFlag,Ct=Pt===void 0?0:Pt,Yt=i.sweepFlag,Zt=Yt===void 0?0:Yt,Tt=[];if(it===0||ot===0)return[{x1:0,y1:0,x2:0,y2:0,x:B,y:K}];var Xt=Math.sin(vt*A/360),Wt=Math.cos(vt*A/360),Vt=Wt*(s-B)/2+Xt*(h-K)/2,Nt=-Xt*(s-B)/2+Wt*(h-K)/2;if(Vt===0&&Nt===0)return[{x1:0,y1:0,x2:0,y2:0,x:B,y:K}];it=Math.abs(it),ot=Math.abs(ot);var Gt=Math.pow(Vt,2)/Math.pow(it,2)+Math.pow(Nt,2)/Math.pow(ot,2);Gt>1&&(it*=Math.sqrt(Gt),ot*=Math.sqrt(Gt));var Jt=dt(s,h,B,K,it,ot,Ct,Zt,Xt,Wt,Vt,Nt),qt=Jt[0],jt=Jt[1],er=Jt[2],ar=Jt[3],cr=Math.abs(ar)/(A/4);Math.abs(1-cr)<1e-7&&(cr=1);var dr=Math.max(Math.ceil(cr),1);ar/=dr;for(var lr=0;lr7){i[h].shift();for(var B=i[h],K=h;B.length;)s[h]="A",i.splice(K+=1,0,["C"].concat(B.splice(0,6)));i.splice(h,1)}}var Lt=function(i,s,h,B,K){var it=-3*s+9*h-9*B+3*K,ot=i*it+6*s-12*h+6*B;return i*ot-3*s+3*h},zt=function(i,s,h,B,K,it,ot,gt,vt){vt===null&&(vt=1),vt=vt>1?1:vt<0?0:vt;for(var Pt=vt/2,Ct=12,Yt=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],Zt=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],Tt=0,Xt=0;Xt0&&Tt<1&&vt.push(Tt);continue}var Wt=Yt*Yt-4*Zt*Ct,Vt=Math.sqrt(Wt);if(!(Wt<0)){var Nt=(-Yt+Vt)/(2*Ct);Nt>0&&Nt<1&&vt.push(Nt);var Gt=(-Yt-Vt)/(2*Ct);Gt>0&&Gt<1&&vt.push(Gt)}}for(var Jt=vt.length,qt=Jt,jt;Jt--;)Tt=vt[Jt],jt=1-Tt,Pt[0][Jt]=jt*jt*jt*i+3*jt*jt*Tt*h+3*jt*Tt*Tt*K+Tt*Tt*Tt*ot,Pt[1][Jt]=jt*jt*jt*s+3*jt*jt*Tt*B+3*jt*Tt*Tt*it+Tt*Tt*Tt*gt;return Pt[0][qt]=i,Pt[1][qt]=s,Pt[0][qt+1]=ot,Pt[1][qt+1]=gt,Pt[0].length=Pt[1].length=qt+2,{min:{x:Math.min.apply(0,Pt[0]),y:Math.min.apply(0,Pt[1])},max:{x:Math.max.apply(0,Pt[0]),y:Math.max.apply(0,Pt[1])}}},rt=function(i,s,h,B,K,it,ot,gt){if(!(Math.max(i,h)Math.max(K,ot)||Math.max(s,B)Math.max(it,gt))){var vt=(i*B-s*h)*(K-ot)-(i-h)*(K*gt-it*ot),Pt=(i*B-s*h)*(it-gt)-(s-B)*(K*gt-it*ot),Ct=(i-h)*(it-gt)-(s-B)*(K-ot);if(!!Ct){var Yt=vt/Ct,Zt=Pt/Ct,Tt=+Yt.toFixed(2),Xt=+Zt.toFixed(2);if(!(Tt<+Math.min(i,h).toFixed(2)||Tt>+Math.max(i,h).toFixed(2)||Tt<+Math.min(K,ot).toFixed(2)||Tt>+Math.max(K,ot).toFixed(2)||Xt<+Math.min(s,B).toFixed(2)||Xt>+Math.max(s,B).toFixed(2)||Xt<+Math.min(it,gt).toFixed(2)||Xt>+Math.max(it,gt).toFixed(2)))return{x:Yt,y:Zt}}}},a=function(i,s,h){return s>=i.x&&s<=i.x+i.width&&h>=i.y&&h<=i.y+i.height},l=function(i,s,h,B){return i===null&&(i=s=h=B=0),s===null&&(s=i.y,h=i.width,B=i.height,i=i.x),{x:i,y:s,width:h,w:h,height:B,h:B,x2:i+h,y2:s+B,cx:i+h/2,cy:s+B/2,r1:Math.min(h,B)/2,r2:Math.max(h,B)/2,r0:Math.sqrt(h*h+B*B)/2,path:rectPath(i,s,h,B),vb:[i,s,h,B].join(" ")}},T=function(i,s){return i=l(i),s=l(s),a(s,i.x,i.y)||a(s,i.x2,i.y)||a(s,i.x,i.y2)||a(s,i.x2,i.y2)||a(i,s.x,s.y)||a(i,s.x2,s.y)||a(i,s.x,s.y2)||a(i,s.x2,s.y2)||(i.xs.x||s.xi.x)&&(i.ys.y||s.yi.y)},q=function(i,s,h,B,K,it,ot,gt){isArray(i)||(i=[i,s,h,B,K,it,ot,gt]);var vt=ft.apply(null,i);return l(vt.min.x,vt.min.y,vt.max.x-vt.min.x,vt.max.y-vt.min.y)},xt=function(i,s,h,B,K,it,ot,gt,vt){var Pt=1-vt,Ct=Math.pow(Pt,3),Yt=Math.pow(Pt,2),Zt=vt*vt,Tt=Zt*vt,Xt=Ct*i+Yt*3*vt*h+Pt*3*vt*vt*K+Tt*ot,Wt=Ct*s+Yt*3*vt*B+Pt*3*vt*vt*it+Tt*gt,Vt=i+2*vt*(h-i)+Zt*(K-2*h+i),Nt=s+2*vt*(B-s)+Zt*(it-2*B+s),Gt=h+2*vt*(K-h)+Zt*(ot-2*K+h),Jt=B+2*vt*(it-B)+Zt*(gt-2*it+B),qt=Pt*i+vt*h,jt=Pt*s+vt*B,er=Pt*K+vt*ot,ar=Pt*it+vt*gt,cr=90-Math.atan2(Vt-Gt,Nt-Jt)*180/Math.PI;return{x:Xt,y:Wt,m:{x:Vt,y:Nt},n:{x:Gt,y:Jt},start:{x:qt,y:jt},end:{x:er,y:ar},alpha:cr}},x=function(i,s,h){var B=q(i),K=q(s);if(!T(B,K))return h?0:[];for(var it=zt.apply(0,i),ot=zt.apply(0,s),gt=~~(it/8),vt=~~(ot/8),Pt=[],Ct=[],Yt={},Zt=h?0:[],Tt=0;Tt=0&&ar<=1&&cr>=0&&cr<=1&&(h?Zt++:Zt.push({x:er.x,y:er.y,t1:ar,t2:cr}))}}return Zt},b=function(i,s,h){i=path2Curve(i),s=path2Curve(s);for(var B,K,it,ot,gt,vt,Pt,Ct,Yt,Zt,Tt=h?0:[],Xt=0,Wt=i.length;Xt1&&(h*=Math.sqrt(Tt),B*=Math.sqrt(Tt));var Xt=h*h*(Zt*Zt)+B*B*(Yt*Yt),Wt=Xt?Math.sqrt((h*h*(B*B)-Xt)/Xt):1;it===ot&&(Wt*=-1),isNaN(Wt)&&(Wt=0);var Vt=B?Wt*h*Zt/B:0,Nt=h?Wt*-B*Yt/h:0,Gt=(gt+Pt)/2+Math.cos(K)*Vt-Math.sin(K)*Nt,Jt=(vt+Ct)/2+Math.sin(K)*Vt+Math.cos(K)*Nt,qt=[(Yt-Vt)/h,(Zt-Nt)/B],jt=[(-1*Yt-Vt)/h,(-1*Zt-Nt)/B],er=ct([1,0],qt),ar=ct(qt,jt);return V(qt,jt)<=-1&&(ar=Math.PI),V(qt,jt)>=1&&(ar=0),ot===0&&ar>0&&(ar=ar-2*Math.PI),ot===1&&ar<0&&(ar=ar+2*Math.PI),{cx:Gt,cy:Jt,rx:C(i,[Pt,Ct])?0:h,ry:C(i,[Pt,Ct])?0:B,startAngle:er,endAngle:er+ar,xRotation:K,arcFlag:it,sweepFlag:ot}}function r(i,s){return[s[0]+(s[0]-i[0]),s[1]+(s[1]-i[1])]}function t(i){i=pt(i);for(var s=[],h=null,B=null,K=null,it=0,ot=i.length,gt=0;gt0!=n(gt[1]-h)>0&&n(s-(h-ot[1])*(ot[0]-gt[0])/(ot[1]-gt[1])-ot[0])<0&&(B=!B)}return B}var v=function(i,s,h){return i>=s&&i<=h};function _(i,s,h,B){var K=.001,it={x:h.x-i.x,y:h.y-i.y},ot={x:s.x-i.x,y:s.y-i.y},gt={x:B.x-h.x,y:B.y-h.y},vt=ot.x*gt.y-ot.y*gt.x,Pt=vt*vt,Ct=ot.x*ot.x+ot.y*ot.y,Yt=gt.x*gt.x+gt.y*gt.y,Zt=null;if(Pt>K*Ct*Yt){var Tt=(it.x*gt.y-it.y*gt.x)/vt,Xt=(it.x*ot.y-it.y*ot.x)/vt;v(Tt,0,1)&&v(Xt,0,1)&&(Zt={x:i.x+Tt*ot.x,y:i.y+Tt*ot.y})}return Zt}function w(i){for(var s=[],h=i.length,B=0;B1){var ot=i[0],gt=i[h-1];s.push({from:{x:gt[0],y:gt[1]},to:{x:ot[0],y:ot[1]}})}return s}function d(i,s){var h=!1;return(0,j.each)(i,function(B){if(_(B.from,B.to,s.from,s.to))return h=!0,!1}),h}function u(i){var s=i.map(function(B){return B[0]}),h=i.map(function(B){return B[1]});return{minX:Math.min.apply(null,s),maxX:Math.max.apply(null,s),minY:Math.min.apply(null,h),maxY:Math.max.apply(null,h)}}function y(i,s){return!(s.minX>i.maxX||s.maxXi.maxY||s.maxYthis.max?NaN:this.values[Mt]},D.prototype.getText=function(L){for(var nt=[],tt=1;tt1?L-1:L}this.translateIndexMap&&(this.translateIndexMap=void 0)},D}(W),yt=at,lt=/d{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|ZZ|Z|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,G="\\d\\d?",H="\\d\\d",X="\\d{3}",O="\\d{4}",F="[^\\s]+",ht=/\[([^]*?)\]/gm;function st(g,D){for(var L=[],nt=0,tt=g.length;nt-1?tt:null}};function A(g){for(var D=[],L=1;L3?0:(g-g%10!=10?1:0)*g%10]}},Ot=A({},Et),Kt=function(g){return Ot=A(Ot,g)},Ht=function(g){return g.replace(/[|\\{()[^$+*?.-]/g,"\\$&")},Bt=function(g,D){for(D===void 0&&(D=2),g=String(g);g.length0?"-":"+")+Bt(Math.floor(Math.abs(D)/60)*100+Math.abs(D)%60,4)},Z:function(g){var D=g.getTimezoneOffset();return(D>0?"-":"+")+Bt(Math.floor(Math.abs(D)/60),2)+":"+Bt(Math.abs(D)%60,2)}},zt=function(g){return+g-1},ft=[null,G],rt=[null,F],a=["isPm",F,function(g,D){var L=g.toLowerCase();return L===D.amPm[0]?0:L===D.amPm[1]?1:null}],l=["timezoneOffset","[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z?",function(g){var D=(g+"").match(/([+-]|\d\d)/gi);if(D){var L=+D[1]*60+parseInt(D[2],10);return D[0]==="+"?L:-L}return 0}],T={D:["day",G],DD:["day",H],Do:["day",G+F,function(g){return parseInt(g,10)}],M:["month",G,zt],MM:["month",H,zt],YY:["year",H,function(g){var D=new Date,L=+(""+D.getFullYear()).substr(0,2);return+(""+(+g>68?L-1:L)+g)}],h:["hour",G,void 0,"isPm"],hh:["hour",H,void 0,"isPm"],H:["hour",G],HH:["hour",H],m:["minute",G],mm:["minute",H],s:["second",G],ss:["second",H],YYYY:["year",O],S:["millisecond","\\d",function(g){return+g*100}],SS:["millisecond",H,function(g){return+g*10}],SSS:["millisecond",X],d:ft,dd:ft,ddd:rt,dddd:rt,MMM:["month",F,Y("monthNamesShort")],MMMM:["month",F,Y("monthNames")],a,A:a,ZZ:l,Z:l},q={default:"ddd MMM DD YYYY HH:mm:ss",shortDate:"M/D/YY",mediumDate:"MMM D, YYYY",longDate:"MMMM D, YYYY",fullDate:"dddd, MMMM D, YYYY",isoDate:"YYYY-MM-DD",isoDateTime:"YYYY-MM-DDTHH:mm:ssZ",shortTime:"HH:mm",mediumTime:"HH:mm:ss",longTime:"HH:mm:ss.SSS"},xt=function(g){return A(q,g)},x=function(g,D,L){if(D===void 0&&(D=q.default),L===void 0&&(L={}),typeof g=="number"&&(g=new Date(g)),Object.prototype.toString.call(g)!=="[object Date]"||isNaN(g.getTime()))throw new Error("Invalid Date pass to format");D=q[D]||D;var nt=[];D=D.replace(ht,function(Mt,Dt){return nt.push(Dt),"@@@"});var tt=A(A({},Ot),L);return D=D.replace(lt,function(Mt){return Lt[Mt](g,tt)}),D.replace(/@@@/g,function(){return nt.shift()})};function b(g,D,L){if(L===void 0&&(L={}),typeof D!="string")throw new Error("Invalid format in fecha parse");if(D=q[D]||D,g.length>1e3)return null;var nt=new Date,tt={year:nt.getFullYear(),month:0,day:1,hour:0,minute:0,second:0,millisecond:0,isPm:null,timezoneOffset:null},Mt=[],Dt=[],It=D.replace(ht,function(Pr,Ar){return Dt.push(Ht(Ar)),"@@@"}),$t={},Ut={};It=Ht(It).replace(lt,function(Pr){var Ar=T[Pr],Or=Ar[0],Ur=Ar[1],wr=Ar[3];if($t[Or])throw new Error("Invalid format. "+Or+" specified twice in format");return $t[Or]=!0,wr&&(Ut[wr]=!0),Mt.push(Ar),"("+Ur+")"}),Object.keys(Ut).forEach(function(Pr){if(!$t[Pr])throw new Error("Invalid format. "+Pr+" is required in specified format")}),It=It.replace(/@@@/g,function(){return Dt.shift()});var Qt=g.match(new RegExp(It,"i"));if(!Qt)return null;for(var or=A(A({},Ot),L),ir=1;ir11||tt.month<0||tt.day>31||tt.day<1||tt.hour>23||tt.hour<0||tt.minute>59||tt.minute<0||tt.second>59||tt.second<0)return null;return Sr}var I={format:x,parse:b,defaultI18n:Et,setGlobalDateI18n:Kt,setGlobalDateMasks:xt},S=I;function V(g){return function(D,L,nt,tt){for(var Mt=(0,E.isNil)(nt)?0:nt,Dt=(0,E.isNil)(tt)?D.length:tt;Mt>>1;g(D[It])>L?Dt=It:Mt=It+1}return Mt}}var ct="format";function C(g,D){var L=j[ct]||S[ct];return L(g,D)}function f(g){return(0,E.isString)(g)&&(g.indexOf("T")>0?g=new Date(g).getTime():g=new Date(g.replace(/-/gi,"/")).getTime()),(0,E.isDate)(g)&&(g=g.getTime()),g}var r=1e3,t=60*r,o=60*t,n=24*o,e=n*31,c=n*365,v=[["HH:mm:ss",r],["HH:mm:ss",r*10],["HH:mm:ss",r*30],["HH:mm",t],["HH:mm",t*10],["HH:mm",t*30],["HH",o],["HH",o*6],["HH",o*12],["YYYY-MM-DD",n],["YYYY-MM-DD",n*4],["YYYY-WW",n*7],["YYYY-MM",e],["YYYY-MM",e*4],["YYYY-MM",e*6],["YYYY",n*380]];function _(g,D,L){var nt=(D-g)/L,tt=V(function(Dt){return Dt[1]})(v,nt)-1,Mt=v[tt];return tt<0?Mt=v[0]:tt>=v.length&&(Mt=(0,E.last)(v)),Mt}var w=function(g){(0,$.__extends)(D,g);function D(){var L=g!==null&&g.apply(this,arguments)||this;return L.type="timeCat",L}return D.prototype.translate=function(L){L=f(L);var nt=this.values.indexOf(L);return nt===-1&&((0,E.isNumber)(L)&&L-1){var Mt=this.values[tt],Dt=this.formatter;return Mt=Dt?Dt(Mt,nt):C(Mt,this.mask),Mt}return L},D.prototype.initCfg=function(){this.tickMethod="time-cat",this.mask="YYYY-MM-DD",this.tickCount=7},D.prototype.setDomain=function(){var L=this.values;(0,E.each)(L,function(nt,tt){L[tt]=f(nt)}),L.sort(function(nt,tt){return nt-tt}),g.prototype.setDomain.call(this)},D}(yt),d=w,u=function(g){(0,$.__extends)(D,g);function D(){var L=g!==null&&g.apply(this,arguments)||this;return L.isContinuous=!0,L}return D.prototype.scale=function(L){if((0,E.isNil)(L))return NaN;var nt=this.rangeMin(),tt=this.rangeMax(),Mt=this.max,Dt=this.min;if(Mt===Dt)return nt;var It=this.getScalePercent(L);return nt+It*(tt-nt)},D.prototype.init=function(){g.prototype.init.call(this);var L=this.ticks,nt=(0,E.head)(L),tt=(0,E.last)(L);ntthis.max&&(this.max=tt),(0,E.isNil)(this.minLimit)||(this.min=nt),(0,E.isNil)(this.maxLimit)||(this.max=tt)},D.prototype.setDomain=function(){var L=(0,E.getRange)(this.values),nt=L.min,tt=L.max;(0,E.isNil)(this.min)&&(this.min=nt),(0,E.isNil)(this.max)&&(this.max=tt),this.min>this.max&&(this.min=nt,this.max=tt)},D.prototype.calculateTicks=function(){var L=this,nt=g.prototype.calculateTicks.call(this);return this.nice||(nt=(0,E.filter)(nt,function(tt){return tt>=L.min&&tt<=L.max})),nt},D.prototype.getScalePercent=function(L){var nt=this.max,tt=this.min;return(L-tt)/(nt-tt)},D.prototype.getInvertPercent=function(L){return(L-this.rangeMin())/(this.rangeMax()-this.rangeMin())},D}(W),y=u,M=function(g){(0,$.__extends)(D,g);function D(){var L=g!==null&&g.apply(this,arguments)||this;return L.type="linear",L.isLinear=!0,L}return D.prototype.invert=function(L){var nt=this.getInvertPercent(L);return this.min+nt*(this.max-this.min)},D.prototype.initCfg=function(){this.tickMethod="wilkinson-extended",this.nice=!1},D}(y),i=M;function s(g,D){var L=Math.E,nt;return D>=0?nt=Math.pow(L,Math.log(D)/g):nt=Math.pow(L,Math.log(-D)/g)*-1,nt}function h(g,D){return g===1?1:Math.log(D)/Math.log(g)}function B(g,D,L){(0,E.isNil)(L)&&(L=Math.max.apply(null,g));var nt=L;return(0,E.each)(g,function(tt){tt>0&&tt1&&(nt=1),nt}function K(g){var D=g.toString().split(/[eE]/),L=(D[0].split(".")[1]||"").length-+(D[1]||0);return L>0?L:0}function it(g,D){var L=K(g),nt=K(D),tt=Math.pow(10,Math.max(L,nt));return(g*tt+D*tt)/tt}var ot=function(g){(0,$.__extends)(D,g);function D(){var L=g!==null&&g.apply(this,arguments)||this;return L.type="log",L}return D.prototype.invert=function(L){var nt=this.base,tt=h(nt,this.max),Mt=this.rangeMin(),Dt=this.rangeMax()-Mt,It,$t=this.positiveMin;if($t){if(L===0)return 0;It=h(nt,$t/nt);var Ut=1/(tt-It)*Dt;if(L=0?1:-1;return Math.pow(It,tt)*$t},D.prototype.initCfg=function(){this.tickMethod="pow",this.exponent=2,this.tickCount=5,this.nice=!0},D.prototype.getScalePercent=function(L){var nt=this.max,tt=this.min;if(nt===tt)return 0;var Mt=this.exponent,Dt=(s(Mt,L)-s(Mt,tt))/(s(Mt,nt)-s(Mt,tt));return Dt},D}(y),Pt=vt,Ct=function(g){(0,$.__extends)(D,g);function D(){var L=g!==null&&g.apply(this,arguments)||this;return L.type="time",L}return D.prototype.getText=function(L,nt){var tt=this.translate(L),Mt=this.formatter;return Mt?Mt(tt,nt):C(tt,this.mask)},D.prototype.scale=function(L){var nt=L;return((0,E.isString)(nt)||(0,E.isDate)(nt))&&(nt=this.translate(nt)),g.prototype.scale.call(this,nt)},D.prototype.translate=function(L){return f(L)},D.prototype.initCfg=function(){this.tickMethod="time-pretty",this.mask="YYYY-MM-DD",this.tickCount=7,this.nice=!1},D.prototype.setDomain=function(){var L=this.values,nt=this.getConfig("min"),tt=this.getConfig("max");if((!(0,E.isNil)(nt)||!(0,E.isNumber)(nt))&&(this.min=this.translate(this.min)),(!(0,E.isNil)(tt)||!(0,E.isNumber)(tt))&&(this.max=this.translate(this.max)),L&&L.length){var Mt=[],Dt=Infinity,It=Dt,$t=0;(0,E.each)(L,function(Ut){var Qt=f(Ut);if(isNaN(Qt))throw new TypeError("Invalid Time: "+Ut+" in time scale!");Dt>Qt?(It=Dt,Dt=Qt):It>Qt&&(It=Qt),$t1&&(this.minTickInterval=It-Dt),(0,E.isNil)(nt)&&(this.min=Dt),(0,E.isNil)(tt)&&(this.max=$t)}},D}(i),Yt=Ct,Zt=function(g){(0,$.__extends)(D,g);function D(){var L=g!==null&&g.apply(this,arguments)||this;return L.type="quantize",L}return D.prototype.invert=function(L){var nt=this.ticks,tt=nt.length,Mt=this.getInvertPercent(L),Dt=Math.floor(Mt*(tt-1));if(Dt>=tt-1)return(0,E.last)(nt);if(Dt<0)return(0,E.head)(nt);var It=nt[Dt],$t=nt[Dt+1],Ut=Dt/(tt-1),Qt=(Dt+1)/(tt-1);return It+(Mt-Ut)/(Qt-Ut)*($t-It)},D.prototype.initCfg=function(){this.tickMethod="r-pretty",this.tickCount=5,this.nice=!0},D.prototype.calculateTicks=function(){var L=g.prototype.calculateTicks.call(this);return this.nice||((0,E.last)(L)!==this.max&&L.push(this.max),(0,E.head)(L)!==this.min&&L.unshift(this.min)),L},D.prototype.getScalePercent=function(L){var nt=this.ticks;if(L<(0,E.head)(nt))return 0;if(L>(0,E.last)(nt))return 1;var tt=0;return(0,E.each)(nt,function(Mt,Dt){if(L>=Mt)tt=Dt;else return!1}),tt/(nt.length-1)},D}(y),Tt=Zt,Xt=function(g){(0,$.__extends)(D,g);function D(){var L=g!==null&&g.apply(this,arguments)||this;return L.type="quantile",L}return D.prototype.initCfg=function(){this.tickMethod="quantile",this.tickCount=5,this.nice=!0},D}(Tt),Wt=Xt,Vt={};function Nt(g){return Vt[g]}function Gt(g,D){if(Nt(g))throw new Error("type '"+g+"' existed.");Vt[g]=D}var Jt=function(g){(0,$.__extends)(D,g);function D(){var L=g!==null&&g.apply(this,arguments)||this;return L.type="identity",L.isIdentity=!0,L}return D.prototype.calculateTicks=function(){return this.values},D.prototype.scale=function(L){return this.values[0]!==L&&(0,E.isNumber)(L)?L:this.range[0]},D.prototype.invert=function(L){var nt=this.range;return Lnt[1]?NaN:this.values[0]},D}(W),qt=Jt;function jt(g){var D=g.values,L=g.tickInterval,nt=g.tickCount,tt=g.showLast;if((0,E.isNumber)(L)){var Mt=(0,E.filter)(D,function(fr,xr){return xr%L==0}),Dt=(0,E.last)(D);return tt&&(0,E.last)(Mt)!==Dt&&Mt.push(Dt),Mt}var It=D.length,$t=g.min,Ut=g.max;if((0,E.isNil)($t)&&($t=0),(0,E.isNil)(Ut)&&(Ut=D.length-1),!(0,E.isNumber)(nt)||nt>=It)return D.slice($t,Ut+1);if(nt<=0||Ut<=0)return[];for(var Qt=nt===1?It:Math.floor(It/(nt-1)),or=[],ir=$t,hr=0;hr=Ut);hr++)ir=Math.min($t+hr*Qt,Ut),hr===nt-1&&tt?or.push(D[Ut]):or.push(D[ir]);return or}function er(g){var D=g.min,L=g.max,nt=g.nice,tt=g.tickCount,Mt=new Dr;return Mt.domain([D,L]),nt&&Mt.nice(tt),Mt.ticks(tt)}var ar=5,cr=Math.sqrt(50),dr=Math.sqrt(10),lr=Math.sqrt(2),Dr=function(){function g(){this._domain=[0,1]}return g.prototype.domain=function(D){return D?(this._domain=Array.from(D,Number),this):this._domain.slice()},g.prototype.nice=function(D){var L,nt;D===void 0&&(D=ar);var tt=this._domain.slice(),Mt=0,Dt=this._domain.length-1,It=this._domain[Mt],$t=this._domain[Dt],Ut;return $t0?(It=Math.floor(It/Ut)*Ut,$t=Math.ceil($t/Ut)*Ut,Ut=vr(It,$t,D)):Ut<0&&(It=Math.ceil(It*Ut)/Ut,$t=Math.floor($t*Ut)/Ut,Ut=vr(It,$t,D)),Ut>0?(tt[Mt]=Math.floor(It/Ut)*Ut,tt[Dt]=Math.ceil($t/Ut)*Ut,this.domain(tt)):Ut<0&&(tt[Mt]=Math.ceil(It*Ut)/Ut,tt[Dt]=Math.floor($t*Ut)/Ut,this.domain(tt)),this},g.prototype.ticks=function(D){return D===void 0&&(D=ar),Tr(this._domain[0],this._domain[this._domain.length-1],D||ar)},g}();function Tr(g,D,L){var nt,tt=-1,Mt,Dt,It;if(D=+D,g=+g,L=+L,g===D&&L>0)return[g];if((nt=D0)for(g=Math.ceil(g/It),D=Math.floor(D/It),Dt=new Array(Mt=Math.ceil(D-g+1));++tt=0?(Mt>=cr?10:Mt>=dr?5:Mt>=lr?2:1)*Math.pow(10,tt):-Math.pow(10,-tt)/(Mt>=cr?10:Mt>=dr?5:Mt>=lr?2:1)}function Er(g,D,L){var nt;return L==="ceil"?nt=Math.ceil(g/D):L==="floor"?nt=Math.floor(g/D):nt=Math.round(g/D),nt*D}function _r(g,D,L){var nt=Er(g,L,"floor"),tt=Er(D,L,"ceil");nt=(0,E.fixedBase)(nt,L),tt=(0,E.fixedBase)(tt,L);for(var Mt=[],Dt=Math.max((tt-nt)/(Math.pow(2,12)-1),L),It=nt;It<=tt;It=It+Dt){var $t=(0,E.fixedBase)(It,Dt);Mt.push($t)}return{min:nt,max:tt,ticks:Mt}}function pr(g,D,L){var nt,tt=g.minLimit,Mt=g.maxLimit,Dt=g.min,It=g.max,$t=g.tickCount,Ut=$t===void 0?5:$t,Qt=(0,E.isNil)(tt)?(0,E.isNil)(D)?Dt:D:tt,or=(0,E.isNil)(Mt)?(0,E.isNil)(L)?It:L:Mt;if(Qt>or&&(nt=[Qt,or],or=nt[0],Qt=nt[1]),Ut<=2)return[Qt,or];for(var ir=(or-Qt)/(Ut-1),hr=[],fr=0;fr=0&&($t=1),1-It/(Dt-1)-L+$t}function tn(g,D,L){var nt=(0,E.size)(D),tt=(0,E.indexOf)(D,g),Mt=1;return 1-tt/(nt-1)-L+Mt}function zr(g,D,L,nt,tt,Mt){var Dt=(g-1)/(Mt-tt),It=(D-1)/(Math.max(Mt,nt)-Math.min(L,tt));return 2-Math.max(Dt/It,It/Dt)}function rn(g,D){return g>=D?2-(g-1)/(D-1):1}function Kr(g,D,L,nt){var tt=D-g;return 1-.5*(Math.pow(D-nt,2)+Math.pow(g-L,2))/Math.pow(.1*tt,2)}function ln(g,D,L){var nt=D-g;if(L>nt){var tt=(L-nt)/2;return 1-Math.pow(tt,2)/Math.pow(.1*nt,2)}return 1}function Gr(){return 1}function nn(g,D,L,nt,tt,Mt){L===void 0&&(L=5),nt===void 0&&(nt=!0),tt===void 0&&(tt=Rr),Mt===void 0&&(Mt=[.25,.2,.5,.05]);var Dt=L<0?0:Math.round(L);if(Number.isNaN(g)||Number.isNaN(D)||typeof g!="number"||typeof D!="number"||!Dt)return{min:0,max:0,ticks:[]};if(D-g<1e-15||Dt===1)return{min:g,max:D,ticks:[g]};if(D-g>1e148){var It=L||5,$t=(D-g)/It;return{min:g,max:D,ticks:Array(It).fill(null).map(function(An,yn){return yr(g+$t*yn)})}}for(var Ut={score:-2,lmin:0,lmax:0,lstep:0},Qt=1;QtUt.score&&(!nt||wr<=g&&Ir>=D)&&(Ut.lmin=wr,Ut.lmax=Ir,Ut.lstep=Vr,Ut.score=$r)}Sr+=1}fr+=1}}Qt+=1}var Yr=yr(Ut.lmax),hn=yr(Ut.lmin),vn=yr(Ut.lstep),qr=Math.floor(Jr((Yr-hn)/vn))+1,Fr=new Array(qr);Fr[0]=yr(hn);for(var or=1;or0)Dt=Math.floor(h(D,nt));else{var $t=B(Mt,D,tt);Dt=Math.floor(h(D,$t))}for(var Ut=It-Dt,Qt=Math.ceil(Ut/L),or=[],ir=Dt;ir=0?1:-1;return Math.pow(Dt,D)*It})}function on(g,D){var L=g.length*D;return D===1?g[g.length-1]:D===0?g[0]:L%1!=0?g[Math.ceil(L)-1]:g.length%2==0?(g[L-1]+g[L])/2:g[L]}function un(g){var D=g.tickCount,L=g.values;if(!L||!L.length)return[];for(var nt=L.slice().sort(function(It,$t){return It-$t}),tt=[],Mt=0;Mt1&&(tt=tt*Math.ceil(It)),nt&&ttc)for(var $t=R(L),Ut=Math.ceil(Mt/c),Qt=It;Qt<=$t+Ut;Qt=Qt+Ut)Dt.push(J(Qt));else if(Mt>e)for(var or=Math.ceil(Mt/e),ir=At(D),hr=bt(D,L),Qt=0;Qt<=hr+or;Qt=Qt+or)Dt.push(kt(It,Qt+ir));else if(Mt>n)for(var fr=new Date(D),xr=fr.getFullYear(),Mr=fr.getMonth(),Sr=fr.getDate(),mr=Math.ceil(Mt/n),Hr=Rt(D,L),Qt=0;Qto)for(var fr=new Date(D),xr=fr.getFullYear(),Mr=fr.getMonth(),mr=fr.getDate(),Pr=fr.getHours(),Ar=Math.ceil(Mt/o),Or=rr(D,L),Qt=0;Qt<=Or+Ar;Qt=Qt+Ar)Dt.push(new Date(xr,Mr,mr,Pr+Qt).getTime());else if(Mt>t)for(var Ur=sr(D,L),wr=Math.ceil(Mt/t),Qt=0;Qt<=Ur+wr;Qt=Qt+wr)Dt.push(D+Qt*t);else{var Ir=Mt;Ir=512&&console.warn("Notice: current ticks length("+Dt.length+') >= 512, may cause performance issues, even out of memory. Because of the configure "tickInterval"(in milliseconds, current is '+Mt+") is too small, increase the value to solve the problem!"),Dt}pt("cat",jt),pt("time-cat",m),pt("wilkinson-extended",en),pt("r-pretty",sn),pt("time",k),pt("time-pretty",gr),pt("log",an),pt("pow",Zr),pt("quantile",un),pt("d3-linear",Lr),Gt("cat",yt),Gt("category",yt),Gt("identity",qt),Gt("linear",i),Gt("log",gt),Gt("pow",Pt),Gt("time",Yt),Gt("timeCat",d),Gt("quantize",Tt),Gt("quantile",Wt)},49242:function(nr,St,U){"use strict";U.r(St),U.d(St,{Cache:function(){return te},assign:function(){return Yr},augment:function(){return vn},clamp:function(){return dr},clearAnimationFrame:function(){return mn},clone:function(){return Fr},contains:function(){return ut},debounce:function(){return yn},deepMix:function(){return Dn},difference:function(){return $},each:function(){return st},endsWith:function(){return it},every:function(){return gt},extend:function(){return On},filter:function(){return Q},find:function(){return Ht},findIndex:function(){return Lt},firstValue:function(){return ft},fixedBase:function(){return Dr},flatten:function(){return a},flattenDeep:function(){return T},forIn:function(){return k},get:function(){return Xn},getEllipsisText:function(){return Jn},getRange:function(){return b},getType:function(){return $t},getWrapBehavior:function(){return Vt},group:function(){return Xt},groupBy:function(){return Zt},groupToMap:function(){return Tt},has:function(){return m},hasKey:function(){return R},hasValue:function(){return bt},head:function(){return i},identity:function(){return Qn},includes:function(){return ut},indexOf:function(){return Tn},isArguments:function(){return Qt},isArray:function(){return O},isArrayLike:function(){return E},isBoolean:function(){return ir},isDate:function(){return fr},isDecimal:function(){return _r},isElement:function(){return Qr},isEmpty:function(){return Ln},isEqual:function(){return En},isEqualWith:function(){return Rn},isError:function(){return Mr},isEven:function(){return Lr},isFinite:function(){return Sr},isFunction:function(){return G},isInteger:function(){return Rr},isMatch:function(){return z},isNegative:function(){return kr},isNil:function(){return X},isNull:function(){return Hr},isNumber:function(){return vr},isNumberEqual:function(){return Jr},isObject:function(){return F},isObjectLike:function(){return dt},isOdd:function(){return tn},isPlainObject:function(){return Ot},isPositive:function(){return rn},isPrototype:function(){return Or},isRegExp:function(){return wr},isString:function(){return v},isType:function(){return lt},isUndefined:function(){return Vr},keys:function(){return A},last:function(){return s},lowerCase:function(){return rr},lowerFirst:function(){return gr},map:function(){return kn},mapValues:function(){return Fn},max:function(){return q},maxBy:function(){return Kr},measureTextWidth:function(){return cn},memoize:function(){return wn},min:function(){return xt},minBy:function(){return ln},mix:function(){return Yr},mod:function(){return nn},noop:function(){return Vn},number2color:function(){return jt},omit:function(){return zn},parseRadius:function(){return ar},pick:function(){return Un},pull:function(){return C},pullAt:function(){return t},reduce:function(){return n},remove:function(){return c},requestAnimationFrame:function(){return dn},set:function(){return Wn},size:function(){return $n},some:function(){return Pt},sortBy:function(){return w},startsWith:function(){return B},substitute:function(){return D},throttle:function(){return Kn},toArray:function(){return Gn},toDegree:function(){return Wr},toInteger:function(){return Zr},toRadian:function(){return sn},toString:function(){return kt},union:function(){return y},uniq:function(){return d},uniqueId:function(){return Zn},upperCase:function(){return nt},upperFirst:function(){return Mt},values:function(){return At},valuesOfKey:function(){return M},wrapBehavior:function(){return Gt}});var j=function(p){return p!==null&&typeof p!="function"&&isFinite(p.length)},E=j,wt=function(p,N){return E(p)?p.indexOf(N)>-1:!1},ut=wt,pt=function(p,N){if(!E(p))return p;for(var et=[],mt=0;mt-1;)S.call(p,Ft,1);return p},C=ct,f=Array.prototype.splice,r=function(N,et){if(!E(N))return[];for(var mt=N?et.length:0,_t=mt-1;mt--;){var Ft=void 0,tr=et[mt];(mt===_t||tr!==Ft)&&(Ft=tr,f.call(N,tr,1))}return N},t=r,o=function(p,N,et){if(!O(p)&&!Ot(p))return p;var mt=et;return st(p,function(_t,Ft){mt=N(mt,_t,Ft)}),mt},n=o,e=function(p,N){var et=[];if(!E(p))return et;for(var mt=-1,_t=[],Ft=p.length;++mtFt[ur])return 1;if(_t[ur]et?et:p},dr=cr,lr=function(p,N){var et=N.toString(),mt=et.indexOf(".");if(mt===-1)return Math.round(p);var _t=et.substr(mt+1).length;return _t>20&&(_t=20),parseFloat(p.toFixed(_t))},Dr=lr,Tr=function(p){return lt(p,"Number")},vr=Tr,Er=function(p){return vr(p)&&p%1!=0},_r=Er,pr=function(p){return vr(p)&&p%2==0},Lr=pr,yr=Number.isInteger?Number.isInteger:function(p){return vr(p)&&p%1==0},Rr=yr,Nr=function(p){return vr(p)&&p<0},kr=Nr,Xr=1e-5;function Jr(p,N,et){return et===void 0&&(et=Xr),Math.abs(p-N)0},rn=zr,Kr=function(p,N){if(!!O(p)){for(var et,mt=-Infinity,_t=0;_tmt&&(et=Ft,mt=tr)}return et}},ln=function(p,N){if(!!O(p)){for(var et,mt=Infinity,_t=0;_tN?(mt&&(clearTimeout(mt),mt=null),ur=Br,tr=p.apply(_t,Ft),mt||(_t=Ft=null)):!mt&&et.trailing!==!1&&(mt=setTimeout(Cr,Mn)),tr};return br.cancel=function(){clearTimeout(mt),ur=0,mt=_t=Ft=null},br},Gn=function(p){return E(p)?Array.prototype.slice.call(p):[]},pn={},Zn=function(p){return p=p||"g",pn[p]?pn[p]+=1:pn[p]=1,p+pn[p]},Vn=function(){},Qn=function(p){return p};function $n(p){return X(p)?0:E(p)?p.length:Object.keys(p).length}var qn=U(70655),gn,cn=wn(function(p,N){N===void 0&&(N={});var et=N.fontSize,mt=N.fontFamily,_t=N.fontWeight,Ft=N.fontStyle,tr=N.fontVariant;return gn||(gn=document.createElement("canvas").getContext("2d")),gn.font=[Ft,tr,_t,et+"px",mt].join(" "),gn.measureText(v(p)?p:"").width},function(p,N){return N===void 0&&(N={}),(0,qn.__spreadArrays)([p],At(N)).join("")}),Jn=function(p,N,et,mt){mt===void 0&&(mt="...");var _t=16,Ft=cn(mt,et),tr=v(p)?p:kt(p),ur=N,Cr=[],br,Br;if(cn(p,et)<=N)return p;for(;br=tr.substr(0,_t),Br=cn(br,et),!(Br+Ft>ur&&Br>ur);)if(Cr.push(br),ur-=Br,tr=tr.substr(_t),!tr)return Cr.join("");for(;br=tr.substr(0,1),Br=cn(br,et),!(Br+Ft>ur);)if(Cr.push(br),ur-=Br,tr=tr.substr(1),!tr)return Cr.join("");return""+Cr.join("")+mt},jn=function(){function p(){this.map={}}return p.prototype.has=function(N){return this.map[N]!==void 0},p.prototype.get=function(N,et){var mt=this.map[N];return mt===void 0?et:mt},p.prototype.set=function(N,et){this.map[N]=et},p.prototype.clear=function(){this.map={}},p.prototype.delete=function(N){delete this.map[N]},p.prototype.size=function(){return Object.keys(this.map).length},p}(),te=jn},43631:function(nr,St,U){"use strict";U.d(St,{qY:function(){return H}});var j=U(34155),E=function(A,P,z){if(z||arguments.length===2)for(var Z=0,dt=P.length,Et;Z0&&(e=1/Math.sqrt(e)),r[0]=t[0]*e,r[1]=t[1]*e,r}function Et(r,t){return r[0]*t[0]+r[1]*t[1]}function Ot(r,t,o){var n=t[0]*o[1]-t[1]*o[0];return r[0]=r[1]=0,r[2]=n,r}function Kt(r,t,o,n){var e=t[0],c=t[1];return r[0]=e+n*(o[0]-e),r[1]=c+n*(o[1]-c),r}function Ht(r,t){t=t||1;var o=j.RANDOM()*2*Math.PI;return r[0]=Math.cos(o)*t,r[1]=Math.sin(o)*t,r}function Bt(r,t,o){var n=t[0],e=t[1];return r[0]=o[0]*n+o[2]*e,r[1]=o[1]*n+o[3]*e,r}function Lt(r,t,o){var n=t[0],e=t[1];return r[0]=o[0]*n+o[2]*e+o[4],r[1]=o[1]*n+o[3]*e+o[5],r}function zt(r,t,o){var n=t[0],e=t[1];return r[0]=o[0]*n+o[3]*e+o[6],r[1]=o[1]*n+o[4]*e+o[7],r}function ft(r,t,o){var n=t[0],e=t[1];return r[0]=o[0]*n+o[4]*e+o[12],r[1]=o[1]*n+o[5]*e+o[13],r}function rt(r,t,o,n){var e=t[0]-o[0],c=t[1]-o[1],v=Math.sin(n),_=Math.cos(n);return r[0]=e*_-c*v+o[0],r[1]=e*v+c*_+o[1],r}function a(r,t){var o=r[0],n=r[1],e=t[0],c=t[1],v=Math.sqrt(o*o+n*n)*Math.sqrt(e*e+c*c),_=v&&(o*e+n*c)/v;return Math.acos(Math.min(Math.max(_,-1),1))}function l(r){return r[0]=0,r[1]=0,r}function T(r){return"vec2("+r[0]+", "+r[1]+")"}function q(r,t){return r[0]===t[0]&&r[1]===t[1]}function xt(r,t){var o=r[0],n=r[1],e=t[0],c=t[1];return Math.abs(o-e)<=j.EPSILON*Math.max(1,Math.abs(o),Math.abs(e))&&Math.abs(n-c)<=j.EPSILON*Math.max(1,Math.abs(n),Math.abs(c))}var x=A,b=$,I=at,S=yt,V=st,ct=Y,C=P,f=function(){var r=E();return function(t,o,n,e,c,v){var _,w;for(o||(o=2),n||(n=0),e?w=Math.min(e*o+n,t.length):w=t.length,_=n;_0&&(w=1/Math.sqrt(w)),n[0]=e[0]*w,n[1]=e[1]*w,n[2]=e[2]*w,n}function Et(n,e){return n[0]*e[0]+n[1]*e[1]+n[2]*e[2]}function Ot(n,e,c){var v=e[0],_=e[1],w=e[2],d=c[0],u=c[1],y=c[2];return n[0]=_*y-w*u,n[1]=w*d-v*y,n[2]=v*u-_*d,n}function Kt(n,e,c,v){var _=e[0],w=e[1],d=e[2];return n[0]=_+v*(c[0]-_),n[1]=w+v*(c[1]-w),n[2]=d+v*(c[2]-d),n}function Ht(n,e,c,v,_,w){var d=w*w,u=d*(2*w-3)+1,y=d*(w-2)+w,M=d*(w-1),i=d*(3-2*w);return n[0]=e[0]*u+c[0]*y+v[0]*M+_[0]*i,n[1]=e[1]*u+c[1]*y+v[1]*M+_[1]*i,n[2]=e[2]*u+c[2]*y+v[2]*M+_[2]*i,n}function Bt(n,e,c,v,_,w){var d=1-w,u=d*d,y=w*w,M=u*d,i=3*w*u,s=3*y*d,h=y*w;return n[0]=e[0]*M+c[0]*i+v[0]*s+_[0]*h,n[1]=e[1]*M+c[1]*i+v[1]*s+_[1]*h,n[2]=e[2]*M+c[2]*i+v[2]*s+_[2]*h,n}function Lt(n,e){e=e||1;var c=j.RANDOM()*2*Math.PI,v=j.RANDOM()*2-1,_=Math.sqrt(1-v*v)*e;return n[0]=Math.cos(c)*_,n[1]=Math.sin(c)*_,n[2]=v*e,n}function zt(n,e,c){var v=e[0],_=e[1],w=e[2],d=c[3]*v+c[7]*_+c[11]*w+c[15];return d=d||1,n[0]=(c[0]*v+c[4]*_+c[8]*w+c[12])/d,n[1]=(c[1]*v+c[5]*_+c[9]*w+c[13])/d,n[2]=(c[2]*v+c[6]*_+c[10]*w+c[14])/d,n}function ft(n,e,c){var v=e[0],_=e[1],w=e[2];return n[0]=v*c[0]+_*c[3]+w*c[6],n[1]=v*c[1]+_*c[4]+w*c[7],n[2]=v*c[2]+_*c[5]+w*c[8],n}function rt(n,e,c){var v=c[0],_=c[1],w=c[2],d=c[3],u=e[0],y=e[1],M=e[2],i=_*M-w*y,s=w*u-v*M,h=v*y-_*u,B=_*h-w*s,K=w*i-v*h,it=v*s-_*i,ot=d*2;return i*=ot,s*=ot,h*=ot,B*=2,K*=2,it*=2,n[0]=u+i+B,n[1]=y+s+K,n[2]=M+h+it,n}function a(n,e,c,v){var _=[],w=[];return _[0]=e[0]-c[0],_[1]=e[1]-c[1],_[2]=e[2]-c[2],w[0]=_[0],w[1]=_[1]*Math.cos(v)-_[2]*Math.sin(v),w[2]=_[1]*Math.sin(v)+_[2]*Math.cos(v),n[0]=w[0]+c[0],n[1]=w[1]+c[1],n[2]=w[2]+c[2],n}function l(n,e,c,v){var _=[],w=[];return _[0]=e[0]-c[0],_[1]=e[1]-c[1],_[2]=e[2]-c[2],w[0]=_[2]*Math.sin(v)+_[0]*Math.cos(v),w[1]=_[1],w[2]=_[2]*Math.cos(v)-_[0]*Math.sin(v),n[0]=w[0]+c[0],n[1]=w[1]+c[1],n[2]=w[2]+c[2],n}function T(n,e,c,v){var _=[],w=[];return _[0]=e[0]-c[0],_[1]=e[1]-c[1],_[2]=e[2]-c[2],w[0]=_[0]*Math.cos(v)-_[1]*Math.sin(v),w[1]=_[0]*Math.sin(v)+_[1]*Math.cos(v),w[2]=_[2],n[0]=w[0]+c[0],n[1]=w[1]+c[1],n[2]=w[2]+c[2],n}function q(n,e){var c=n[0],v=n[1],_=n[2],w=e[0],d=e[1],u=e[2],y=Math.sqrt(c*c+v*v+_*_),M=Math.sqrt(w*w+d*d+u*u),i=y*M,s=i&&Et(n,e)/i;return Math.acos(Math.min(Math.max(s,-1),1))}function xt(n){return n[0]=0,n[1]=0,n[2]=0,n}function x(n){return"vec3("+n[0]+", "+n[1]+", "+n[2]+")"}function b(n,e){return n[0]===e[0]&&n[1]===e[1]&&n[2]===e[2]}function I(n,e){var c=n[0],v=n[1],_=n[2],w=e[0],d=e[1],u=e[2];return Math.abs(c-w)<=j.EPSILON*Math.max(1,Math.abs(c),Math.abs(w))&&Math.abs(v-d)<=j.EPSILON*Math.max(1,Math.abs(v),Math.abs(d))&&Math.abs(_-u)<=j.EPSILON*Math.max(1,Math.abs(_),Math.abs(u))}var S=at,V=yt,ct=lt,C=Y,f=A,r=ut,t=P,o=function(){var n=E();return function(e,c,v,_,w,d){var u,y;for(c||(c=3),v||(v=0),_?y=Math.min(_*c+v,e.length):y=e.length,u=v;u=0;x--)(xt=ft[x])&&(q=(T<3?xt(q):T>3?xt(rt,a,q):xt(rt,a))||q);return T>3&&q&&Object.defineProperty(rt,a,q),q}function Q(ft,rt){return function(a,l){rt(a,l,ft)}}function W(ft,rt,a,l,T,q){function xt(o){if(o!==void 0&&typeof o!="function")throw new TypeError("Function expected");return o}for(var x=l.kind,b=x==="getter"?"get":x==="setter"?"set":"value",I=!rt&&ft?l.static?ft:ft.prototype:null,S=rt||(I?Object.getOwnPropertyDescriptor(I,l.name):{}),V,ct=!1,C=a.length-1;C>=0;C--){var f={};for(var r in l)f[r]=r==="access"?{}:l[r];for(var r in l.access)f.access[r]=l.access[r];f.addInitializer=function(o){if(ct)throw new TypeError("Cannot add initializers after decoration has completed");q.push(xt(o||null))};var t=(0,a[C])(x==="accessor"?{get:S.get,set:S.set}:S[b],f);if(x==="accessor"){if(t===void 0)continue;if(t===null||typeof t!="object")throw new TypeError("Object expected");(V=xt(t.get))&&(S.get=V),(V=xt(t.set))&&(S.set=V),(V=xt(t.init))&&T.push(V)}else(V=xt(t))&&(x==="field"?T.push(V):S[b]=V)}I&&Object.defineProperty(I,l.name,S),ct=!0}function $(ft,rt,a){for(var l=arguments.length>2,T=0;T0&&q[q.length-1])&&(I[0]===6||I[0]===2)){a=0;continue}if(I[0]===3&&(!q||I[1]>q[0]&&I[1]=ft.length&&(ft=void 0),{value:ft&&ft[l++],done:!ft}}};throw new TypeError(rt?"Object is not iterable.":"Symbol.iterator is not defined.")}function ht(ft,rt){var a=typeof Symbol=="function"&&ft[Symbol.iterator];if(!a)return ft;var l=a.call(ft),T,q=[],xt;try{for(;(rt===void 0||rt-- >0)&&!(T=l.next()).done;)q.push(T.value)}catch(x){xt={error:x}}finally{try{T&&!T.done&&(a=l.return)&&a.call(l)}finally{if(xt)throw xt.error}}return q}function st(){for(var ft=[],rt=0;rt1||x(ct,C)})})}function x(ct,C){try{b(l[ct](C))}catch(f){V(q[0][3],f)}}function b(ct){ct.value instanceof P?Promise.resolve(ct.value.v).then(I,S):V(q[0][2],ct)}function I(ct){x("next",ct)}function S(ct){x("throw",ct)}function V(ct,C){ct(C),q.shift(),q.length&&x(q[0][0],q[0][1])}}function Z(ft){var rt,a;return rt={},l("next"),l("throw",function(T){throw T}),l("return"),rt[Symbol.iterator]=function(){return this},rt;function l(T,q){rt[T]=ft[T]?function(xt){return(a=!a)?{value:P(ft[T](xt)),done:!1}:q?q(xt):xt}:q}}function dt(ft){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var rt=ft[Symbol.asyncIterator],a;return rt?rt.call(ft):(ft=typeof F=="function"?F(ft):ft[Symbol.iterator](),a={},l("next"),l("throw"),l("return"),a[Symbol.asyncIterator]=function(){return this},a);function l(q){a[q]=ft[q]&&function(xt){return new Promise(function(x,b){xt=ft[q](xt),T(x,b,xt.done,xt.value)})}}function T(q,xt,x,b){Promise.resolve(b).then(function(I){q({value:I,done:x})},xt)}}function Et(ft,rt){return Object.defineProperty?Object.defineProperty(ft,"raw",{value:rt}):ft.raw=rt,ft}var Ot=Object.create?function(ft,rt){Object.defineProperty(ft,"default",{enumerable:!0,value:rt})}:function(ft,rt){ft.default=rt};function Kt(ft){if(ft&&ft.__esModule)return ft;var rt={};if(ft!=null)for(var a in ft)a!=="default"&&Object.prototype.hasOwnProperty.call(ft,a)&&X(rt,ft,a);return Ot(rt,ft),rt}function Ht(ft){return ft&&ft.__esModule?ft:{default:ft}}function Bt(ft,rt,a,l){if(a==="a"&&!l)throw new TypeError("Private accessor was defined without a getter");if(typeof rt=="function"?ft!==rt||!l:!rt.has(ft))throw new TypeError("Cannot read private member from an object whose class did not declare it");return a==="m"?l:a==="a"?l.call(ft):l?l.value:rt.get(ft)}function Lt(ft,rt,a,l,T){if(l==="m")throw new TypeError("Private method is not writable");if(l==="a"&&!T)throw new TypeError("Private accessor was defined without a setter");if(typeof rt=="function"?ft!==rt||!T:!rt.has(ft))throw new TypeError("Cannot write private member to an object whose class did not declare it");return l==="a"?T.call(ft,a):T?T.value=a:rt.set(ft,a),a}function zt(ft,rt){if(rt===null||typeof rt!="object"&&typeof rt!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof ft=="function"?rt===ft:ft.has(rt)}}}]); diff --git a/dist/8321.985f5731.async.js b/dist/8321.985f5731.async.js new file mode 100644 index 0000000..5c35541 --- /dev/null +++ b/dist/8321.985f5731.async.js @@ -0,0 +1,30 @@ +(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[8321],{57817:function(Tr,Yt,V){"use strict";V.d(Yt,{Z:function(){return it}});function it(C,wt,lt){if(C){if(typeof C.addEventListener=="function")return C.addEventListener(wt,lt,!1),{remove:function(){C.removeEventListener(wt,lt,!1)}};if(typeof C.attachEvent=="function")return C.attachEvent("on"+wt,lt),{remove:function(){C.detachEvent("on"+wt,lt)}}}}},6056:function(Tr,Yt,V){"use strict";V.d(Yt,{Z:function(){return ut}});var it,C,wt,lt;function vt(){it=document.createElement("table"),C=document.createElement("tr"),wt=/^\s*<(\w+|!)[^>]*>/,lt={tr:document.createElement("tbody"),tbody:it,thead:it,tfoot:it,td:C,th:C,"*":document.createElement("div")}}function ut(W){it||vt();var Q=wt.test(W)&&RegExp.$1;(!Q||!(Q in lt))&&(Q="*");var nt=lt[Q];W=typeof W=="string"?W.replace(/(^\s*)|(\s*$)/g,""):W,nt.innerHTML=""+W;var mt=nt.childNodes[0];return mt&&nt.contains(mt)&&nt.removeChild(mt),mt}},45442:function(Tr,Yt,V){"use strict";V.d(Yt,{Z:function(){return it}});function it(C,wt){if(C)for(var lt in wt)wt.hasOwnProperty(lt)&&(C.style[lt]=wt[lt]);return C}},90494:function(Tr,Yt){"use strict";var V="*",it=function(){function C(){this._events={}}return C.prototype.on=function(wt,lt,vt){return this._events[wt]||(this._events[wt]=[]),this._events[wt].push({callback:lt,once:!!vt}),this},C.prototype.once=function(wt,lt){return this.on(wt,lt,!0)},C.prototype.emit=function(wt){for(var lt=this,vt=[],ut=1;ut>8&15|M>>4&240,M>>4&15|M&240,(M&15)<<4|M&15,1):B===8?mr(M>>24&255,M>>16&255,M>>8&255,(M&255)/255):B===4?mr(M>>12&15|M>>8&240,M>>8&15|M>>4&240,M>>4&15|M&240,((M&15)<<4|M&15)/255):null):(M=$.exec(S))?new hr(M[1],M[2],M[3],1):(M=gt.exec(S))?new hr(M[1]*255/100,M[2]*255/100,M[3]*255/100,1):(M=ht.exec(S))?mr(M[1],M[2],M[3],M[4]):(M=z.exec(S))?mr(M[1]*255/100,M[2]*255/100,M[3]*255/100,M[4]):(M=P.exec(S))?o(M[1],M[2]/100,M[3]/100,1):(M=b.exec(S))?o(M[1],M[2]/100,M[3]/100,M[4]):G.hasOwnProperty(S)?xr(G[S]):S==="transparent"?new hr(NaN,NaN,NaN,0):null}function xr(S){return new hr(S>>16&255,S>>8&255,S&255,1)}function mr(S,M,B,j){return j<=0&&(S=M=B=NaN),new hr(S,M,B,j)}function ir(S){return S instanceof nt||(S=ar(S)),S?(S=S.rgb(),new hr(S.r,S.g,S.b,S.opacity)):new hr}function lr(S,M,B,j){return arguments.length===1?ir(S):new hr(S,M,B,j==null?1:j)}function hr(S,M,B,j){this.r=+S,this.g=+M,this.b=+B,this.opacity=+j}W(hr,lr,Q(nt,{brighter:function(S){return S=S==null?ct:Math.pow(ct,S),new hr(this.r*S,this.g*S,this.b*S,this.opacity)},darker:function(S){return S=S==null?mt:Math.pow(mt,S),new hr(this.r*S,this.g*S,this.b*S,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:gr,formatHex:gr,formatRgb:rr,toString:rr}));function gr(){return"#"+f(this.r)+f(this.g)+f(this.b)}function rr(){var S=this.opacity;return S=isNaN(S)?1:Math.max(0,Math.min(1,S)),(S===1?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(S===1?")":", "+S+")")}function f(S){return S=Math.max(0,Math.min(255,Math.round(S)||0)),(S<16?"0":"")+S.toString(16)}function o(S,M,B,j){return j<=0?S=M=B=NaN:B<=0||B>=1?S=M=NaN:M<=0&&(S=NaN),new K(S,M,B,j)}function x(S){if(S instanceof K)return new K(S.h,S.s,S.l,S.opacity);if(S instanceof nt||(S=ar(S)),!S)return new K;if(S instanceof K)return S;S=S.rgb();var M=S.r/255,B=S.g/255,j=S.b/255,At=Math.min(M,B,j),Nt=Math.max(M,B,j),Zt=NaN,Xt=Nt-At,pr=(Nt+At)/2;return Xt?(M===Nt?Zt=(B-j)/Xt+(B0&&pr<1?0:Zt,new K(Zt,Xt,pr,S.opacity)}function U(S,M,B,j){return arguments.length===1?x(S):new K(S,M,B,j==null?1:j)}function K(S,M,B,j){this.h=+S,this.s=+M,this.l=+B,this.opacity=+j}W(K,U,Q(nt,{brighter:function(S){return S=S==null?ct:Math.pow(ct,S),new K(this.h,this.s,this.l*S,this.opacity)},darker:function(S){return S=S==null?mt:Math.pow(mt,S),new K(this.h,this.s,this.l*S,this.opacity)},rgb:function(){var S=this.h%360+(this.h<0)*360,M=isNaN(S)||isNaN(this.s)?0:this.s,B=this.l,j=B+(B<.5?B:1-B)*M,At=2*B-j;return new hr(l(S>=240?S-240:S+120,At,j),l(S,At,j),l(S<120?S+240:S-120,At,j),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var S=this.opacity;return S=isNaN(S)?1:Math.max(0,Math.min(1,S)),(S===1?"hsl(":"hsla(")+(this.h||0)+", "+(this.s||0)*100+"%, "+(this.l||0)*100+"%"+(S===1?")":", "+S+")")}}));function l(S,M,B){return(S<60?M+(B-M)*S/60:S<180?B:S<240?M+(B-M)*(240-S)/60:M)*255}function m(S,M,B,j,At){var Nt=S*S,Zt=Nt*S;return((1-3*S+3*Nt-Zt)*M+(4-6*Nt+3*Zt)*B+(1+3*S+3*Nt-3*Zt)*j+Zt*At)/6}function O(S){var M=S.length-1;return function(B){var j=B<=0?B=0:B>=1?(B=1,M-1):Math.floor(B*M),At=S[j],Nt=S[j+1],Zt=j>0?S[j-1]:2*At-Nt,Xt=j180||B<-180?B-360*Math.round(B/360):B):constant(isNaN(S)?M:S)}function r(S){return(S=+S)==1?t:function(M,B){return B-M?y(M,B,S):Z(isNaN(M)?B:M)}}function t(S,M){var B=M-S;return B?J(S,B):Z(isNaN(S)?M:S)}var i=function S(M){var B=r(M);function j(At,Nt){var Zt=B((At=lr(At)).r,(Nt=lr(Nt)).r),Xt=B(At.g,Nt.g),pr=B(At.b,Nt.b),Ir=t(At.opacity,Nt.opacity);return function(Yr){return At.r=Zt(Yr),At.g=Xt(Yr),At.b=pr(Yr),At.opacity=Ir(Yr),At+""}}return j.gamma=S,j}(1);function n(S){return function(M){var B=M.length,j=new Array(B),At=new Array(B),Nt=new Array(B),Zt,Xt;for(Zt=0;ZtB&&(Nt=M.slice(B,Nt),Xt[Zt]?Xt[Zt]+=Nt:Xt[++Zt]=Nt),(j=j[0])===(At=At[0])?Xt[Zt]?Xt[Zt]+=At:Xt[++Zt]=At:(Xt[++Zt]=null,pr.push({i:Zt,x:It(j,At)})),B=fr.lastIndex;return BIr.length?(pr=Y.parsePathString(Nt[Xt]),Ir=Y.parsePathString(At[Xt]),Ir=Y.fillPathByDiff(Ir,pr),Ir=Y.formatPath(Ir,pr),M.fromAttrs.path=Ir,M.toAttrs.path=pr):M.pathFormatted||(pr=Y.parsePathString(Nt[Xt]),Ir=Y.parsePathString(At[Xt]),Ir=Y.formatPath(Ir,pr),M.fromAttrs.path=Ir,M.toAttrs.path=pr,M.pathFormatted=!0),j[Xt]=[];for(var Yr=0;Yr0){for(var Xt=M.animators.length-1;Xt>=0;Xt--){if(j=M.animators[Xt],j.destroyed){M.removeAnimator(Xt);continue}if(!j.isAnimatePaused()){At=j.get("animations");for(var pr=At.length-1;pr>=0;pr--)Nt=At[pr],B=Tt(j,Nt,Zt),B&&(At.splice(pr,1),B=!1,Nt.callback&&Nt.callback())}At.length===0&&M.removeAnimator(Xt)}var Ir=M.canvas.get("autoDraw");Ir||M.canvas.draw()}})},S.prototype.addAnimator=function(M){this.animators.push(M)},S.prototype.removeAnimator=function(M){this.animators.splice(M,1)},S.prototype.isAnimating=function(){return!!this.animators.length},S.prototype.stop=function(){this.timer&&this.timer.stop()},S.prototype.stopAllAnimations=function(M){M===void 0&&(M=!0),this.animators.forEach(function(B){B.stopAnimate(M)}),this.animators=[],this.canvas.draw()},S.prototype.getTime=function(){return this.current},S}(),Ot=_t,yt=V(89473),Bt=40,St=0,zt=":",tr=["mousedown","mouseup","dblclick","mouseout","mouseover","mousemove","mouseleave","mouseenter","touchstart","touchmove","touchend","dragenter","dragover","dragleave","drop","contextmenu","mousewheel"];function Kt(S,M){for(var B in S)if(S.hasOwnProperty(B)&&B.indexOf(zt+M)>=0)return!0;return!1}function $t(S,M,B){B.name=M,B.target=S,B.currentTarget=S,B.delegateTarget=S,S.emit(M,B)}function ur(S,M,B){if(B.bubbles){var j=void 0,At=!1;if(M==="mouseenter"?(j=B.fromShape,At=!0):M==="mouseleave"&&(At=!0,j=B.toShape),S.isCanvas()&&At)return;if(j&&(0,lt.UY)(S,j)){B.bubbles=!1;return}B.name=M,B.currentTarget=S,B.delegateTarget=S,S.emit(M,B)}}var er=function(){function S(M){var B=this;this.draggingShape=null,this.dragging=!1,this.currentShape=null,this.mousedownShape=null,this.mousedownPoint=null,this._eventCallback=function(j){var At=j.type;B._triggerEvent(At,j)},this._onDocumentMove=function(j){var At=B.canvas,Nt=At.get("el");if(Nt!==j.target&&(B.dragging||B.currentShape)){var Zt=B._getPointInfo(j);B.dragging&&B._emitEvent("drag",j,Zt,B.draggingShape)}},this._onDocumentMouseUp=function(j){var At=B.canvas,Nt=At.get("el");if(Nt!==j.target&&B.dragging){var Zt=B._getPointInfo(j);B.draggingShape&&B._emitEvent("drop",j,Zt,null),B._emitEvent("dragend",j,Zt,B.draggingShape),B._afterDrag(B.draggingShape,Zt,j)}},this.canvas=M.canvas}return S.prototype.init=function(){this._bindEvents()},S.prototype._bindEvents=function(){var M=this,B=this.canvas.get("el");(0,lt.S6)(tr,function(j){B.addEventListener(j,M._eventCallback)}),document&&(document.addEventListener("mousemove",this._onDocumentMove),document.addEventListener("mouseup",this._onDocumentMouseUp))},S.prototype._clearEvents=function(){var M=this,B=this.canvas.get("el");(0,lt.S6)(tr,function(j){B.removeEventListener(j,M._eventCallback)}),document&&(document.removeEventListener("mousemove",this._onDocumentMove),document.removeEventListener("mouseup",this._onDocumentMouseUp))},S.prototype._getEventObj=function(M,B,j,At,Nt,Zt){var Xt=new yt.Z(M,B);return Xt.fromShape=Nt,Xt.toShape=Zt,Xt.x=j.x,Xt.y=j.y,Xt.clientX=j.clientX,Xt.clientY=j.clientY,Xt.propagationPath.push(At),Xt},S.prototype._getShape=function(M,B){return this.canvas.getShape(M.x,M.y,B)},S.prototype._getPointInfo=function(M){var B=this.canvas,j=B.getClientByEvent(M),At=B.getPointByEvent(M);return{x:At.x,y:At.y,clientX:j.x,clientY:j.y}},S.prototype._triggerEvent=function(M,B){var j=this._getPointInfo(B),At=this._getShape(j,B),Nt=this["_on"+M],Zt=!1;if(Nt)Nt.call(this,j,At,B);else{var Xt=this.currentShape;M==="mouseenter"||M==="dragenter"||M==="mouseover"?(this._emitEvent(M,B,j,null,null,At),At&&this._emitEvent(M,B,j,At,null,At),M==="mouseenter"&&this.draggingShape&&this._emitEvent("dragenter",B,j,null)):M==="mouseleave"||M==="dragleave"||M==="mouseout"?(Zt=!0,Xt&&this._emitEvent(M,B,j,Xt,Xt,null),this._emitEvent(M,B,j,null,Xt,null),M==="mouseleave"&&this.draggingShape&&this._emitEvent("dragleave",B,j,null)):this._emitEvent(M,B,j,At,null,null)}if(Zt||(this.currentShape=At),At&&!At.get("destroyed")){var pr=this.canvas,Ir=pr.get("el");Ir.style.cursor=At.attr("cursor")||pr.get("cursor")}},S.prototype._onmousedown=function(M,B,j){j.button===St&&(this.mousedownShape=B,this.mousedownPoint=M,this.mousedownTimeStamp=j.timeStamp),this._emitEvent("mousedown",j,M,B,null,null)},S.prototype._emitMouseoverEvents=function(M,B,j,At){var Nt=this.canvas.get("el");j!==At&&(j&&(this._emitEvent("mouseout",M,B,j,j,At),this._emitEvent("mouseleave",M,B,j,j,At),(!At||At.get("destroyed"))&&(Nt.style.cursor=this.canvas.get("cursor"))),At&&(this._emitEvent("mouseover",M,B,At,j,At),this._emitEvent("mouseenter",M,B,At,j,At)))},S.prototype._emitDragoverEvents=function(M,B,j,At,Nt){At?(At!==j&&(j&&this._emitEvent("dragleave",M,B,j,j,At),this._emitEvent("dragenter",M,B,At,j,At)),Nt||this._emitEvent("dragover",M,B,At)):j&&this._emitEvent("dragleave",M,B,j,j,At),Nt&&this._emitEvent("dragover",M,B,At)},S.prototype._afterDrag=function(M,B,j){M&&(M.set("capture",!0),this.draggingShape=null),this.dragging=!1;var At=this._getShape(B,j);At!==M&&this._emitMouseoverEvents(j,B,M,At),this.currentShape=At},S.prototype._onmouseup=function(M,B,j){if(j.button===St){var At=this.draggingShape;this.dragging?(At&&this._emitEvent("drop",j,M,B),this._emitEvent("dragend",j,M,At),this._afterDrag(At,M,j)):(this._emitEvent("mouseup",j,M,B),B===this.mousedownShape&&this._emitEvent("click",j,M,B),this.mousedownShape=null,this.mousedownPoint=null)}},S.prototype._ondragover=function(M,B,j){j.preventDefault();var At=this.currentShape;this._emitDragoverEvents(j,M,At,B,!0)},S.prototype._onmousemove=function(M,B,j){var At=this.canvas,Nt=this.currentShape,Zt=this.draggingShape;if(this.dragging)Zt&&this._emitDragoverEvents(j,M,Nt,B,!1),this._emitEvent("drag",j,M,Zt);else{var Xt=this.mousedownPoint;if(Xt){var pr=this.mousedownShape,Ir=j.timeStamp,Yr=Ir-this.mousedownTimeStamp,Xr=Xt.clientX-M.clientX,d=Xt.clientY-M.clientY,c=Xr*Xr+d*d;Yr>120||c>Bt?pr&&pr.get("draggable")?(Zt=this.mousedownShape,Zt.set("capture",!1),this.draggingShape=Zt,this.dragging=!0,this._emitEvent("dragstart",j,M,Zt),this.mousedownShape=null,this.mousedownPoint=null):!pr&&At.get("draggable")?(this.dragging=!0,this._emitEvent("dragstart",j,M,null),this.mousedownShape=null,this.mousedownPoint=null):(this._emitMouseoverEvents(j,M,Nt,B),this._emitEvent("mousemove",j,M,B)):(this._emitMouseoverEvents(j,M,Nt,B),this._emitEvent("mousemove",j,M,B))}else this._emitMouseoverEvents(j,M,Nt,B),this._emitEvent("mousemove",j,M,B)}},S.prototype._emitEvent=function(M,B,j,At,Nt,Zt){var Xt=this._getEventObj(M,B,j,At,Nt,Zt);if(At){Xt.shape=At,$t(At,M,Xt);for(var pr=At.getParent();pr;)pr.emitDelegation(M,Xt),Xt.propagationStopped||ur(pr,M,Xt),Xt.propagationPath.push(pr),pr=pr.getParent()}else{var Ir=this.canvas;$t(Ir,M,Xt)}},S.prototype.destroy=function(){this._clearEvents(),this.canvas=null,this.currentShape=null,this.draggingShape=null,this.mousedownPoint=null,this.mousedownShape=null,this.mousedownTimeStamp=null},S}(),Wt=er,dr="px",wr=(0,C.qY)(),Er=wr&&wr.name==="firefox",Cr=function(S){(0,it.__extends)(M,S);function M(B){var j=S.call(this,B)||this;return j.initContainer(),j.initDom(),j.initEvents(),j.initTimeline(),j}return M.prototype.getDefaultCfg=function(){var B=S.prototype.getDefaultCfg.call(this);return B.cursor="default",B.supportCSSTransform=!1,B},M.prototype.initContainer=function(){var B=this.get("container");(0,lt.HD)(B)&&(B=document.getElementById(B),this.set("container",B))},M.prototype.initDom=function(){var B=this.createDom();this.set("el",B);var j=this.get("container");j.appendChild(B),this.setDOMSize(this.get("width"),this.get("height"))},M.prototype.initEvents=function(){var B=new Wt({canvas:this});B.init(),this.set("eventController",B)},M.prototype.initTimeline=function(){var B=new Ot(this);this.set("timeline",B)},M.prototype.setDOMSize=function(B,j){var At=this.get("el");lt.jU&&(At.style.width=B+dr,At.style.height=j+dr)},M.prototype.changeSize=function(B,j){this.setDOMSize(B,j),this.set("width",B),this.set("height",j),this.onCanvasChange("changeSize")},M.prototype.getRenderer=function(){return this.get("renderer")},M.prototype.getCursor=function(){return this.get("cursor")},M.prototype.setCursor=function(B){this.set("cursor",B);var j=this.get("el");lt.jU&&j&&(j.style.cursor=B)},M.prototype.getPointByEvent=function(B){var j=this.get("supportCSSTransform");if(j){if(Er&&!(0,lt.kK)(B.layerX)&&B.layerX!==B.offsetX)return{x:B.layerX,y:B.layerY};if(!(0,lt.kK)(B.offsetX))return{x:B.offsetX,y:B.offsetY}}var At=this.getClientByEvent(B),Nt=At.x,Zt=At.y;return this.getPointByClient(Nt,Zt)},M.prototype.getClientByEvent=function(B){var j=B;return B.touches&&(B.type==="touchend"?j=B.changedTouches[0]:j=B.touches[0]),{x:j.clientX,y:j.clientY}},M.prototype.getPointByClient=function(B,j){var At=this.get("el"),Nt=At.getBoundingClientRect();return{x:B-Nt.left,y:j-Nt.top}},M.prototype.getClientByPoint=function(B,j){var At=this.get("el"),Nt=At.getBoundingClientRect();return{x:B+Nt.left,y:j+Nt.top}},M.prototype.draw=function(){},M.prototype.removeDom=function(){var B=this.get("el");B.parentNode.removeChild(B)},M.prototype.clearEvents=function(){var B=this.get("eventController");B.destroy()},M.prototype.isCanvas=function(){return!0},M.prototype.getParent=function(){return null},M.prototype.destroy=function(){var B=this.get("timeline");this.get("destroyed")||(this.clear(),B&&B.stop(),this.clearEvents(),this.removeDom(),S.prototype.destroy.call(this))},M}(wt.Z),_r=Cr},37153:function(Tr,Yt,V){"use strict";var it=V(65353),C=V(29881),wt=V(77341),lt={},vt="_INDEX";function ut(X,R){if(X.set("canvas",R),X.isGroup()){var T=X.get("children");T.length&&T.forEach(function(D){ut(D,R)})}}function W(X,R){if(X.set("timeline",R),X.isGroup()){var T=X.get("children");T.length&&T.forEach(function(D){W(D,R)})}}function Q(X,R){var T=X.getChildren();return T.indexOf(R)>=0}function nt(X,R,T){T===void 0&&(T=!0),T?R.destroy():(R.set("parent",null),R.set("canvas",null)),(0,wt.As)(X.getChildren(),R)}function mt(X){return function(R,T){var D=X(R,T);return D===0?R[vt]-T[vt]:D}}var ct=function(X){(0,it.__extends)(R,X);function R(){return X!==null&&X.apply(this,arguments)||this}return R.prototype.isCanvas=function(){return!1},R.prototype.getBBox=function(){var T=Infinity,D=-Infinity,$=Infinity,gt=-Infinity,ht=this.getChildren().filter(function(P){return P.get("visible")&&(!P.isGroup()||P.isGroup()&&P.getChildren().length>0)});ht.length>0?(0,wt.S6)(ht,function(P){var b=P.getBBox(),G=b.minX,ft=b.maxX,Pt=b.minY,Ut=b.maxY;GD&&(D=ft),Pt<$&&($=Pt),Ut>gt&&(gt=Ut)}):(T=0,D=0,$=0,gt=0);var z={x:T,y:$,minX:T,minY:$,maxX:D,maxY:gt,width:D-T,height:gt-$};return z},R.prototype.getCanvasBBox=function(){var T=Infinity,D=-Infinity,$=Infinity,gt=-Infinity,ht=this.getChildren().filter(function(P){return P.get("visible")&&(!P.isGroup()||P.isGroup()&&P.getChildren().length>0)});ht.length>0?(0,wt.S6)(ht,function(P){var b=P.getCanvasBBox(),G=b.minX,ft=b.maxX,Pt=b.minY,Ut=b.maxY;GD&&(D=ft),Pt<$&&($=Pt),Ut>gt&&(gt=Ut)}):(T=0,D=0,$=0,gt=0);var z={x:T,y:$,minX:T,minY:$,maxX:D,maxY:gt,width:D-T,height:gt-$};return z},R.prototype.getDefaultCfg=function(){var T=X.prototype.getDefaultCfg.call(this);return T.children=[],T},R.prototype.onAttrChange=function(T,D,$){if(X.prototype.onAttrChange.call(this,T,D,$),T==="matrix"){var gt=this.getTotalMatrix();this._applyChildrenMarix(gt)}},R.prototype.applyMatrix=function(T){var D=this.getTotalMatrix();X.prototype.applyMatrix.call(this,T);var $=this.getTotalMatrix();$!==D&&this._applyChildrenMarix($)},R.prototype._applyChildrenMarix=function(T){var D=this.getChildren();(0,wt.S6)(D,function($){$.applyMatrix(T)})},R.prototype.addShape=function(){for(var T=[],D=0;D=0;z--){var P=T[z];if((0,wt.pP)(P)&&(P.isGroup()?ht=P.getShape(D,$,gt):P.isHit(D,$)&&(ht=P)),ht)break}return ht},R.prototype.add=function(T){var D=this.getCanvas(),$=this.getChildren(),gt=this.get("timeline"),ht=T.getParent();ht&&nt(ht,T,!1),T.set("parent",this),D&&ut(T,D),gt&&W(T,gt),$.push(T),T.onCanvasChange("add"),this._applyElementMatrix(T)},R.prototype._applyElementMatrix=function(T){var D=this.getTotalMatrix();D&&T.applyMatrix(D)},R.prototype.getChildren=function(){return this.get("children")},R.prototype.sort=function(){var T=this.getChildren();(0,wt.S6)(T,function(D,$){return D[vt]=$,D}),T.sort(mt(function(D,$){return D.get("zIndex")-$.get("zIndex")})),this.onCanvasChange("sort")},R.prototype.clear=function(){if(this.set("clearing",!0),!this.destroyed){for(var T=this.getChildren(),D=T.length-1;D>=0;D--)T[D].destroy();this.set("children",[]),this.onCanvasChange("clear"),this.set("clearing",!1)}},R.prototype.destroy=function(){this.get("destroyed")||(this.clear(),X.prototype.destroy.call(this))},R.prototype.getFirst=function(){return this.getChildByIndex(0)},R.prototype.getLast=function(){var T=this.getChildren();return this.getChildByIndex(T.length-1)},R.prototype.getChildByIndex=function(T){var D=this.getChildren();return D[T]},R.prototype.getCount=function(){var T=this.getChildren();return T.length},R.prototype.contain=function(T){var D=this.getChildren();return D.indexOf(T)>-1},R.prototype.removeChild=function(T,D){D===void 0&&(D=!0),this.contain(T)&&T.remove(D)},R.prototype.findAll=function(T){var D=[],$=this.getChildren();return(0,wt.S6)($,function(gt){T(gt)&&D.push(gt),gt.isGroup()&&(D=D.concat(gt.findAll(T)))}),D},R.prototype.find=function(T){var D=null,$=this.getChildren();return(0,wt.S6)($,function(gt){if(T(gt)?D=gt:gt.isGroup()&&(D=gt.find(T)),D)return!1}),D},R.prototype.findById=function(T){return this.find(function(D){return D.get("id")===T})},R.prototype.findByClassName=function(T){return this.find(function(D){return D.get("className")===T})},R.prototype.findAllByName=function(T){return this.findAll(function(D){return D.get("name")===T})},R}(C.Z);Yt.Z=ct},29881:function(Tr,Yt,V){"use strict";var it=V(65353),C=V(49242),wt=V(31506),lt=V(77341),vt=V(41482),ut=V(2667),W=wt.vs,Q="matrix",nt=["zIndex","capture","visible","type"],mt=["repeat"],ct=":",X="*";function R(ht){for(var z=[],P=0;PPt.delay&&(0,C.each)(z.toAttrs,function(Ut,ar){ft.call(Pt.toAttrs,ar)&&(delete Pt.toAttrs[ar],delete Pt.fromAttrs[ar])})}),ht}var gt=function(ht){(0,it.__extends)(z,ht);function z(P){var b=ht.call(this,P)||this;b.attrs={};var G=b.getDefaultAttrs();return(0,C.mix)(G,P.attrs),b.attrs=G,b.initAttrs(G),b.initAnimate(),b}return z.prototype.getDefaultCfg=function(){return{visible:!0,capture:!0,zIndex:0}},z.prototype.getDefaultAttrs=function(){return{matrix:this.getDefaultMatrix(),opacity:1}},z.prototype.onCanvasChange=function(P){},z.prototype.initAttrs=function(P){},z.prototype.initAnimate=function(){this.set("animable",!0),this.set("animating",!1)},z.prototype.isGroup=function(){return!1},z.prototype.getParent=function(){return this.get("parent")},z.prototype.getCanvas=function(){return this.get("canvas")},z.prototype.attr=function(){for(var P,b=[],G=0;G0?ft=$(ft,K):G.addAnimator(this),ft.push(K),this.set("animations",ft),this.set("_pause",{isPaused:!1})}},z.prototype.stopAnimate=function(P){var b=this;P===void 0&&(P=!0);var G=this.get("animations");(0,C.each)(G,function(ft){P&&(ft.onFrame?b.attr(ft.onFrame(1)):b.attr(ft.toAttrs)),ft.callback&&ft.callback()}),this.set("animating",!1),this.set("animations",[])},z.prototype.pauseAnimate=function(){var P=this.get("timeline"),b=this.get("animations"),G=P.getTime();return(0,C.each)(b,function(ft){ft._paused=!0,ft._pauseTime=G,ft.pauseCallback&&ft.pauseCallback()}),this.set("_pause",{isPaused:!0,pauseTime:G}),this},z.prototype.resumeAnimate=function(){var P=this.get("timeline"),b=P.getTime(),G=this.get("animations"),ft=this.get("_pause").pauseTime;return(0,C.each)(G,function(Pt){Pt.startTime=Pt.startTime+(b-ft),Pt._paused=!1,Pt._pauseTime=null,Pt.resumeCallback&&Pt.resumeCallback()}),this.set("_pause",{isPaused:!1}),this.set("animations",G),this},z.prototype.emitDelegation=function(P,b){var G=this,ft=b.propagationPath,Pt=this.getEvents(),Ut;P==="mouseenter"?Ut=b.fromShape:P==="mouseleave"&&(Ut=b.toShape);for(var ar=function(lr){var hr=ft[lr],gr=hr.get("name");if(gr){if((hr.isGroup()||hr.isCanvas&&hr.isCanvas())&&Ut&&(0,lt.UY)(hr,Ut))return"break";(0,C.isArray)(gr)?(0,C.each)(gr,function(rr){G.emitDelegateEvent(hr,rr,b)}):xr.emitDelegateEvent(hr,gr,b)}},xr=this,mr=0;mr=W&&nt.minY<=Q&&nt.maxY>=Q},ut.prototype.afterAttrsChange=function(W){vt.prototype.afterAttrsChange.call(this,W),this.clearCacheBBox()},ut.prototype.getBBox=function(){var W=this.cfg.bbox;return W||(W=this.calculateBBox(),this.set("bbox",W)),W},ut.prototype.getCanvasBBox=function(){var W=this.cfg.canvasBBox;return W||(W=this.calculateCanvasBBox(),this.set("canvasBBox",W)),W},ut.prototype.applyMatrix=function(W){vt.prototype.applyMatrix.call(this,W),this.set("canvasBBox",null)},ut.prototype.calculateCanvasBBox=function(){var W=this.getBBox(),Q=this.getTotalMatrix(),nt=W.minX,mt=W.minY,ct=W.maxX,X=W.maxY;if(Q){var R=(0,wt.rG)(Q,[W.minX,W.minY]),T=(0,wt.rG)(Q,[W.maxX,W.minY]),D=(0,wt.rG)(Q,[W.minX,W.maxY]),$=(0,wt.rG)(Q,[W.maxX,W.maxY]);nt=Math.min(R[0],T[0],D[0],$[0]),ct=Math.max(R[0],T[0],D[0],$[0]),mt=Math.min(R[1],T[1],D[1],$[1]),X=Math.max(R[1],T[1],D[1],$[1])}var gt=this.attrs;if(gt.shadowColor){var ht=gt.shadowBlur,z=ht===void 0?0:ht,P=gt.shadowOffsetX,b=P===void 0?0:P,G=gt.shadowOffsetY,ft=G===void 0?0:G,Pt=nt-z+b,Ut=ct+z+b,ar=mt-z+ft,xr=X+z+ft;nt=Math.min(nt,Pt),ct=Math.max(ct,Ut),mt=Math.min(mt,ar),X=Math.max(X,xr)}return{x:nt,y:mt,minX:nt,minY:mt,maxX:ct,maxY:X,width:ct-nt,height:X-mt}},ut.prototype.clearCacheBBox=function(){this.set("bbox",null),this.set("canvasBBox",null)},ut.prototype.isClipShape=function(){return this.get("isClipShape")},ut.prototype.isInShape=function(W,Q){return!1},ut.prototype.isOnlyHitBox=function(){return!1},ut.prototype.isHit=function(W,Q){var nt=this.get("startArrowShape"),mt=this.get("endArrowShape"),ct=[W,Q,1];ct=this.invertFromMatrix(ct);var X=ct[0],R=ct[1],T=this._isInBBox(X,R);return this.isOnlyHitBox()?T:!!(T&&!this.isClipped(X,R)&&(this.isInShape(X,R)||nt&&nt.isHit(X,R)||mt&&mt.isHit(X,R)))},ut}(C.Z);Yt.Z=lt},97492:function(Tr,Yt,V){"use strict";V.d(Yt,{_:function(){return i},C:function(){return n}});var it={};V.r(it),V.d(it,{easeBack:function(){return O},easeBackIn:function(){return l},easeBackInOut:function(){return O},easeBackOut:function(){return m},easeBounce:function(){return x},easeBounceIn:function(){return o},easeBounceInOut:function(){return U},easeBounceOut:function(){return x},easeCircle:function(){return Pt},easeCircleIn:function(){return G},easeCircleInOut:function(){return Pt},easeCircleOut:function(){return ft},easeCubic:function(){return Q},easeCubicIn:function(){return ut},easeCubicInOut:function(){return Q},easeCubicOut:function(){return W},easeElastic:function(){return u},easeElasticIn:function(){return y},easeElasticInOut:function(){return r},easeElasticOut:function(){return u},easeExp:function(){return b},easeExpIn:function(){return z},easeExpInOut:function(){return b},easeExpOut:function(){return P},easeLinear:function(){return C},easePoly:function(){return X},easePolyIn:function(){return mt},easePolyInOut:function(){return X},easePolyOut:function(){return ct},easeQuad:function(){return vt},easeQuadIn:function(){return wt},easeQuadInOut:function(){return vt},easeQuadOut:function(){return lt},easeSin:function(){return gt},easeSinIn:function(){return D},easeSinInOut:function(){return gt},easeSinOut:function(){return $}});function C(e){return+e}function wt(e){return e*e}function lt(e){return e*(2-e)}function vt(e){return((e*=2)<=1?e*e:--e*(2-e)+1)/2}function ut(e){return e*e*e}function W(e){return--e*e*e+1}function Q(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var nt=3,mt=function e(s){s=+s;function h(w){return Math.pow(w,s)}return h.exponent=e,h}(nt),ct=function e(s){s=+s;function h(w){return 1-Math.pow(1-w,s)}return h.exponent=e,h}(nt),X=function e(s){s=+s;function h(w){return((w*=2)<=1?Math.pow(w,s):2-Math.pow(2-w,s))/2}return h.exponent=e,h}(nt),R=Math.PI,T=R/2;function D(e){return+e==1?1:1-Math.cos(e*T)}function $(e){return Math.sin(e*T)}function gt(e){return(1-Math.cos(R*e))/2}function ht(e){return(Math.pow(2,-10*e)-.0009765625)*1.0009775171065494}function z(e){return ht(1-+e)}function P(e){return 1-ht(e)}function b(e){return((e*=2)<=1?ht(1-e):2-ht(e-1))/2}function G(e){return 1-Math.sqrt(1-e*e)}function ft(e){return Math.sqrt(1- --e*e)}function Pt(e){return((e*=2)<=1?1-Math.sqrt(1-e*e):Math.sqrt(1-(e-=2)*e)+1)/2}var Ut=4/11,ar=6/11,xr=8/11,mr=3/4,ir=9/11,lr=10/11,hr=15/16,gr=21/22,rr=63/64,f=1/Ut/Ut;function o(e){return 1-x(1-e)}function x(e){return(e=+e)1){var Ct=tt[0].charAt(0);tt.splice(1,0,tt[0].substr(1)),tt[0]=Ct}(0,R.each)(tt,function(Tt,_t){isNaN(Tt)||(tt[_t]=+Tt)}),L[st]=tt}),L}var gt=$;function ht(Y,L,tt){var st=null,Ct=tt;return L=0;yt--)_t=Tt[yt].index,Tt[yt].type==="add"?Y.splice(_t,0,[].concat(Y[_t])):Y.splice(_t,1)}if(st=Y.length,st2&&(tt.push([Ct].concat(_t.splice(0,2))),Ot="l",Ct=Ct==="m"?"l":"L"),Ot==="o"&&_t.length===1&&tt.push([Ct,_t[0]]),Ot==="r")tt.push([Ct].concat(_t));else for(;_t.length>=L[Ot]&&(tt.push([Ct].concat(_t.splice(0,L[Ot]))),!!L[Ot]););return""}),tt}var Ut=/[a-z]/;function ar(Y,L){return[L[0]+(L[0]-Y[0]),L[1]+(L[1]-Y[1])]}function xr(Y){var L=parsePathString(Y);if(!L||!L.length)return[["M",0,0]];for(var tt=!1,st=0;st=0){tt=!0;break}}if(!tt)return L;var Tt=[],_t=0,Ot=0,yt=0,Bt=0,St=0,zt,tr,Kt=L[0];(Kt[0]==="M"||Kt[0]==="m")&&(_t=+Kt[1],Ot=+Kt[2],yt=_t,Bt=Ot,St++,Tt[0]=["M",_t,Ot]);for(var st=St,$t=L.length;st<$t;st++){var ur=L[st],er=Tt[st-1],Wt=[],Ct=ur[0],dr=Ct.toUpperCase();if(Ct!==dr)switch(Wt[0]=dr,dr){case"A":Wt[1]=ur[1],Wt[2]=ur[2],Wt[3]=ur[3],Wt[4]=ur[4],Wt[5]=ur[5],Wt[6]=+ur[6]+_t,Wt[7]=+ur[7]+Ot;break;case"V":Wt[1]=+ur[1]+Ot;break;case"H":Wt[1]=+ur[1]+_t;break;case"M":yt=+ur[1]+_t,Bt=+ur[2]+Ot,Wt[1]=yt,Wt[2]=Bt;break;default:for(var wr=1,Er=ur.length;wr1&&(Tt=1),Tt<-1&&(Tt=-1),Ct*Math.acos(Tt)},gr=function(Y,L,tt,st,Ct,Tt,_t,Ot,yt,Bt,St,zt){var tr=Math.pow(Ct,2),Kt=Math.pow(Tt,2),$t=Math.pow(St,2),ur=Math.pow(zt,2),er=tr*Kt-tr*ur-Kt*$t;er<0&&(er=0),er/=tr*ur+Kt*$t,er=Math.sqrt(er)*(_t===Ot?-1:1);var Wt=er*Ct/Tt*zt,dr=er*-Tt/Ct*St,wr=Bt*Wt-yt*dr+(Y+tt)/2,Er=yt*Wt+Bt*dr+(L+st)/2,Cr=(St-Wt)/Ct,_r=(zt-dr)/Tt,S=(-St-Wt)/Ct,M=(-zt-dr)/Tt,B=hr(1,0,Cr,_r),j=hr(Cr,_r,S,M);return Ot===0&&j>0&&(j-=mr),Ot===1&&j<0&&(j+=mr),[wr,Er,B,j]},rr=function(Y){var L=Y.px,tt=Y.py,st=Y.cx,Ct=Y.cy,Tt=Y.rx,_t=Y.ry,Ot=Y.xAxisRotation,yt=Ot===void 0?0:Ot,Bt=Y.largeArcFlag,St=Bt===void 0?0:Bt,zt=Y.sweepFlag,tr=zt===void 0?0:zt,Kt=[];if(Tt===0||_t===0)return[{x1:0,y1:0,x2:0,y2:0,x:st,y:Ct}];var $t=Math.sin(yt*mr/360),ur=Math.cos(yt*mr/360),er=ur*(L-st)/2+$t*(tt-Ct)/2,Wt=-$t*(L-st)/2+ur*(tt-Ct)/2;if(er===0&&Wt===0)return[{x1:0,y1:0,x2:0,y2:0,x:st,y:Ct}];Tt=Math.abs(Tt),_t=Math.abs(_t);var dr=Math.pow(er,2)/Math.pow(Tt,2)+Math.pow(Wt,2)/Math.pow(_t,2);dr>1&&(Tt*=Math.sqrt(dr),_t*=Math.sqrt(dr));var wr=gr(L,tt,st,Ct,Tt,_t,St,tr,$t,ur,er,Wt),Er=wr[0],Cr=wr[1],_r=wr[2],S=wr[3],M=Math.abs(S)/(mr/4);Math.abs(1-M)<1e-7&&(M=1);var B=Math.max(Math.ceil(M),1);S/=B;for(var j=0;j7){Y[tt].shift();for(var st=Y[tt],Ct=tt;st.length;)L[tt]="A",Y.splice(Ct+=1,0,["C"].concat(st.splice(0,6)));Y.splice(tt,1)}}var K=function(Y,L,tt,st,Ct){var Tt=-3*L+9*tt-9*st+3*Ct,_t=Y*Tt+6*L-12*tt+6*st;return Y*_t-3*L+3*tt},l=function(Y,L,tt,st,Ct,Tt,_t,Ot,yt){yt===null&&(yt=1),yt=yt>1?1:yt<0?0:yt;for(var Bt=yt/2,St=12,zt=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],tr=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],Kt=0,$t=0;$t0&&Kt<1&&yt.push(Kt);continue}var ur=zt*zt-4*tr*St,er=Math.sqrt(ur);if(!(ur<0)){var Wt=(-zt+er)/(2*St);Wt>0&&Wt<1&&yt.push(Wt);var dr=(-zt-er)/(2*St);dr>0&&dr<1&&yt.push(dr)}}for(var wr=yt.length,Er=wr,Cr;wr--;)Kt=yt[wr],Cr=1-Kt,Bt[0][wr]=Cr*Cr*Cr*Y+3*Cr*Cr*Kt*tt+3*Cr*Kt*Kt*Ct+Kt*Kt*Kt*_t,Bt[1][wr]=Cr*Cr*Cr*L+3*Cr*Cr*Kt*st+3*Cr*Kt*Kt*Tt+Kt*Kt*Kt*Ot;return Bt[0][Er]=Y,Bt[1][Er]=L,Bt[0][Er+1]=_t,Bt[1][Er+1]=Ot,Bt[0].length=Bt[1].length=Er+2,{min:{x:Math.min.apply(0,Bt[0]),y:Math.min.apply(0,Bt[1])},max:{x:Math.max.apply(0,Bt[0]),y:Math.max.apply(0,Bt[1])}}},O=function(Y,L,tt,st,Ct,Tt,_t,Ot){if(!(Math.max(Y,tt)Math.max(Ct,_t)||Math.max(L,st)Math.max(Tt,Ot))){var yt=(Y*st-L*tt)*(Ct-_t)-(Y-tt)*(Ct*Ot-Tt*_t),Bt=(Y*st-L*tt)*(Tt-Ot)-(L-st)*(Ct*Ot-Tt*_t),St=(Y-tt)*(Tt-Ot)-(L-st)*(Ct-_t);if(!!St){var zt=yt/St,tr=Bt/St,Kt=+zt.toFixed(2),$t=+tr.toFixed(2);if(!(Kt<+Math.min(Y,tt).toFixed(2)||Kt>+Math.max(Y,tt).toFixed(2)||Kt<+Math.min(Ct,_t).toFixed(2)||Kt>+Math.max(Ct,_t).toFixed(2)||$t<+Math.min(L,st).toFixed(2)||$t>+Math.max(L,st).toFixed(2)||$t<+Math.min(Tt,Ot).toFixed(2)||$t>+Math.max(Tt,Ot).toFixed(2)))return{x:zt,y:tr}}}},E=function(Y,L,tt){return L>=Y.x&&L<=Y.x+Y.width&&tt>=Y.y&&tt<=Y.y+Y.height},Z=function(Y,L,tt,st){return Y===null&&(Y=L=tt=st=0),L===null&&(L=Y.y,tt=Y.width,st=Y.height,Y=Y.x),{x:Y,y:L,width:tt,w:tt,height:st,h:st,x2:Y+tt,y2:L+st,cx:Y+tt/2,cy:L+st/2,r1:Math.min(tt,st)/2,r2:Math.max(tt,st)/2,r0:Math.sqrt(tt*tt+st*st)/2,path:rectPath(Y,L,tt,st),vb:[Y,L,tt,st].join(" ")}},J=function(Y,L){return Y=Z(Y),L=Z(L),E(L,Y.x,Y.y)||E(L,Y.x2,Y.y)||E(L,Y.x,Y.y2)||E(L,Y.x2,Y.y2)||E(Y,L.x,L.y)||E(Y,L.x2,L.y)||E(Y,L.x,L.y2)||E(Y,L.x2,L.y2)||(Y.xL.x||L.xY.x)&&(Y.yL.y||L.yY.y)},y=function(Y,L,tt,st,Ct,Tt,_t,Ot){isArray(Y)||(Y=[Y,L,tt,st,Ct,Tt,_t,Ot]);var yt=m.apply(null,Y);return Z(yt.min.x,yt.min.y,yt.max.x-yt.min.x,yt.max.y-yt.min.y)},u=function(Y,L,tt,st,Ct,Tt,_t,Ot,yt){var Bt=1-yt,St=Math.pow(Bt,3),zt=Math.pow(Bt,2),tr=yt*yt,Kt=tr*yt,$t=St*Y+zt*3*yt*tt+Bt*3*yt*yt*Ct+Kt*_t,ur=St*L+zt*3*yt*st+Bt*3*yt*yt*Tt+Kt*Ot,er=Y+2*yt*(tt-Y)+tr*(Ct-2*tt+Y),Wt=L+2*yt*(st-L)+tr*(Tt-2*st+L),dr=tt+2*yt*(Ct-tt)+tr*(_t-2*Ct+tt),wr=st+2*yt*(Tt-st)+tr*(Ot-2*Tt+st),Er=Bt*Y+yt*tt,Cr=Bt*L+yt*st,_r=Bt*Ct+yt*_t,S=Bt*Tt+yt*Ot,M=90-Math.atan2(er-dr,Wt-wr)*180/Math.PI;return{x:$t,y:ur,m:{x:er,y:Wt},n:{x:dr,y:wr},start:{x:Er,y:Cr},end:{x:_r,y:S},alpha:M}},r=function(Y,L,tt){var st=y(Y),Ct=y(L);if(!J(st,Ct))return tt?0:[];for(var Tt=l.apply(0,Y),_t=l.apply(0,L),Ot=~~(Tt/8),yt=~~(_t/8),Bt=[],St=[],zt={},tr=tt?0:[],Kt=0;Kt=0&&S<=1&&M>=0&&M<=1&&(tt?tr++:tr.push({x:_r.x,y:_r.y,t1:S,t2:M}))}}return tr},t=function(Y,L,tt){Y=path2Curve(Y),L=path2Curve(L);for(var st,Ct,Tt,_t,Ot,yt,Bt,St,zt,tr,Kt=tt?0:[],$t=0,ur=Y.length;$t1&&(tt*=Math.sqrt(Kt),st*=Math.sqrt(Kt));var $t=tt*tt*(tr*tr)+st*st*(zt*zt),ur=$t?Math.sqrt((tt*tt*(st*st)-$t)/$t):1;Tt===_t&&(ur*=-1),isNaN(ur)&&(ur=0);var er=st?ur*tt*tr/st:0,Wt=tt?ur*-st*zt/tt:0,dr=(Ot+Bt)/2+Math.cos(Ct)*er-Math.sin(Ct)*Wt,wr=(yt+St)/2+Math.sin(Ct)*er+Math.cos(Ct)*Wt,Er=[(zt-er)/tt,(tr-Wt)/st],Cr=[(-1*zt-er)/tt,(-1*tr-Wt)/st],_r=s([1,0],Er),S=s(Er,Cr);return e(Er,Cr)<=-1&&(S=Math.PI),e(Er,Cr)>=1&&(S=0),_t===0&&S>0&&(S=S-2*Math.PI),_t===1&&S<0&&(S=S+2*Math.PI),{cx:dr,cy:wr,rx:h(Y,[Bt,St])?0:tt,ry:h(Y,[Bt,St])?0:st,startAngle:_r,endAngle:_r+S,xRotation:Ct,arcFlag:Tt,sweepFlag:_t}}function ot(Y,L){return[L[0]+(L[0]-Y[0]),L[1]+(L[1]-Y[1])]}function dt(Y){Y=gt(Y);for(var L=[],tt=null,st=null,Ct=null,Tt=0,_t=Y.length,Ot=0;Ot<_t;Ot++){var yt=Y[Ot];st=Y[Ot+1];var Bt=yt[0],St={command:Bt,prePoint:tt,params:yt,startTangent:null,endTangent:null};switch(Bt){case"M":Ct=[yt[1],yt[2]],Tt=Ot;break;case"A":var zt=w(tt,yt);St.arcParams=zt;break;default:break}if(Bt==="Z")tt=Ct,st=Y[Tt+1];else{var tr=yt.length;tt=[yt[tr-2],yt[tr-1]]}st&&st[0]==="Z"&&(st=Y[Tt],L[Tt]&&(L[Tt].prePoint=tt)),St.currentPoint=tt,L[Tt]&&h(tt,L[Tt].currentPoint)&&(L[Tt].prePoint=St.prePoint);var Kt=st?[st[st.length-2],st[st.length-1]]:null;St.nextPoint=Kt;var $t=St.prePoint;if(["L","H","V"].includes(Bt))St.startTangent=[$t[0]-tt[0],$t[1]-tt[1]],St.endTangent=[tt[0]-$t[0],tt[1]-$t[1]];else if(Bt==="Q"){var ur=[yt[1],yt[2]];St.startTangent=[$t[0]-ur[0],$t[1]-ur[1]],St.endTangent=[tt[0]-ur[0],tt[1]-ur[1]]}else if(Bt==="T"){var er=L[Ot-1],ur=ot(er.currentPoint,$t);er.command==="Q"?(St.command="Q",St.startTangent=[$t[0]-ur[0],$t[1]-ur[1]],St.endTangent=[tt[0]-ur[0],tt[1]-ur[1]]):(St.command="TL",St.startTangent=[$t[0]-tt[0],$t[1]-tt[1]],St.endTangent=[tt[0]-$t[0],tt[1]-$t[1]])}else if(Bt==="C"){var Wt=[yt[1],yt[2]],dr=[yt[3],yt[4]];St.startTangent=[$t[0]-Wt[0],$t[1]-Wt[1]],St.endTangent=[tt[0]-dr[0],tt[1]-dr[1]],St.startTangent[0]===0&&St.startTangent[1]===0&&(St.startTangent=[Wt[0]-dr[0],Wt[1]-dr[1]]),St.endTangent[0]===0&&St.endTangent[1]===0&&(St.endTangent=[dr[0]-Wt[0],dr[1]-Wt[1]])}else if(Bt==="S"){var er=L[Ot-1],Wt=ot(er.currentPoint,$t),dr=[yt[1],yt[2]];er.command==="C"?(St.command="C",St.startTangent=[$t[0]-Wt[0],$t[1]-Wt[1]],St.endTangent=[tt[0]-dr[0],tt[1]-dr[1]]):(St.command="SQ",St.startTangent=[$t[0]-dr[0],$t[1]-dr[1]],St.endTangent=[tt[0]-dr[0],tt[1]-dr[1]])}else if(Bt==="A"){var wr=.001,Er=St.arcParams||{},Cr=Er.cx,_r=Cr===void 0?0:Cr,S=Er.cy,M=S===void 0?0:S,B=Er.rx,j=B===void 0?0:B,At=Er.ry,Nt=At===void 0?0:At,Zt=Er.sweepFlag,Xt=Zt===void 0?0:Zt,pr=Er.startAngle,Ir=pr===void 0?0:pr,Yr=Er.endAngle,Xr=Yr===void 0?0:Yr;Xt===0&&(wr*=-1);var d=j*Math.cos(Ir-wr)+_r,c=Nt*Math.sin(Ir-wr)+M;St.startTangent=[d-Ct[0],c-Ct[1]];var a=j*Math.cos(Ir+Xr+wr)+_r,g=Nt*Math.sin(Ir+Xr-wr)+M;St.endTangent=[$t[0]-a,$t[1]-g]}L.push(St)}return L}function Lt(Y){for(var L=[],tt=Y.length,st=0;st1){var _t=Y[0],Ot=Y[tt-1];L.push({from:{x:Ot[0],y:Ot[1]},to:{x:_t[0],y:_t[1]}})}return L}function It(Y,L){var tt=!1;return each(Y,function(st){if(getLineIntersect(st.from,st.to,L.from,L.to))return tt=!0,!1}),tt}function Dt(Y){var L=Y.map(function(st){return st[0]}),tt=Y.map(function(st){return st[1]});return{minX:Math.min.apply(null,L),maxX:Math.max.apply(null,L),minY:Math.min.apply(null,tt),maxY:Math.max.apply(null,tt)}}function Ht(Y,L){return!(L.minX>Y.maxX||L.maxXY.maxY||L.maxYMath.PI/2?Math.PI-Bt:Bt,St=St>Math.PI/2?Math.PI-St:St;var zt={xExtra:Math.cos(yt/2-Bt)*(L/2*(1/Math.sin(yt/2)))-L/2||0,yExtra:Math.cos(St-yt/2)*(L/2*(1/Math.sin(yt/2)))-L/2||0};return zt}function Or(Y){var L=Y.attr(),tt=L.path,st=L.stroke,Ct=st?L.lineWidth:0,Tt=Y.get("segments")||dt(tt),_t=cr(Tt,Ct),Ot=_t.x,yt=_t.y,Bt=_t.width,St=_t.height,zt={minX:Ot,minY:yt,maxX:Ot+Bt,maxY:yt+St};return zt=Q(Y,zt),{x:zt.minX,y:zt.minY,width:zt.maxX-zt.minX,height:zt.maxY-zt.minY}}function Hr(Y){var L=Y.attr(),tt=L.x1,st=L.y1,Ct=L.x2,Tt=L.y2,_t=Math.min(tt,Ct),Ot=Math.max(tt,Ct),yt=Math.min(st,Tt),Bt=Math.max(st,Tt),St={minX:_t,maxX:Ot,minY:yt,maxY:Bt};return St=Q(Y,St),{x:St.minX,y:St.minY,width:St.maxX-St.minX,height:St.maxY-St.minY}}function Wr(Y){var L=Y.attr(),tt=L.x,st=L.y,Ct=L.rx,Tt=L.ry;return{x:tt-Ct,y:st-Tt,width:Ct*2,height:Tt*2}}C("rect",lt),C("image",lt),C("circle",vt),C("marker",vt),C("polyline",nt),C("polygon",mt),C("text",X),C("path",Or),C("line",Hr),C("ellipse",Wr)},89473:function(Tr,Yt){"use strict";var V=function(){function it(C,wt){this.bubbles=!0,this.target=null,this.currentTarget=null,this.delegateTarget=null,this.delegateObject=null,this.defaultPrevented=!1,this.propagationStopped=!1,this.shape=null,this.fromShape=null,this.toShape=null,this.propagationPath=[],this.type=C,this.name=C,this.originalEvent=wt,this.timeStamp=wt.timeStamp}return it.prototype.preventDefault=function(){this.defaultPrevented=!0,this.originalEvent.preventDefault&&this.originalEvent.preventDefault()},it.prototype.stopPropagation=function(){this.propagationStopped=!0},it.prototype.toString=function(){var C=this.type;return"[Event (type="+C+")]"},it.prototype.save=function(){},it.prototype.restore=function(){},it}();Yt.Z=V},98190:function(Tr,Yt,V){"use strict";V.r(Yt),V.d(Yt,{Event:function(){return Q.Z},Base:function(){return nt.Z},AbstractCanvas:function(){return mt.Z},AbstractGroup:function(){return ct.Z},AbstractShape:function(){return X.Z},PathUtil:function(){return it},getBBoxMethod:function(){return R.b},registerBBox:function(){return R.W},getTextHeight:function(){return T.FE},assembleFont:function(){return T.$O},isAllowCapture:function(){return D.pP},multiplyVec2:function(){return $.rG},invert:function(){return $.U_},getOffScreenContext:function(){return gt.L},registerEasing:function(){return ht.C},version:function(){return z}});var it=V(47575),C=V(52),wt=V.n(C),lt={};for(var vt in C)["default","Event","Base","AbstractCanvas","AbstractGroup","AbstractShape","PathUtil","getBBoxMethod","registerBBox","getTextHeight","assembleFont","isAllowCapture","multiplyVec2","invert","getOffScreenContext","registerEasing","version"].indexOf(vt)<0&&(lt[vt]=function(P){return C[P]}.bind(0,vt));V.d(Yt,lt);var ut=V(15294),W=V.n(ut),lt={};for(var vt in ut)["default","Event","Base","AbstractCanvas","AbstractGroup","AbstractShape","PathUtil","getBBoxMethod","registerBBox","getTextHeight","assembleFont","isAllowCapture","multiplyVec2","invert","getOffScreenContext","registerEasing","version"].indexOf(vt)<0&&(lt[vt]=function(b){return ut[b]}.bind(0,vt));V.d(Yt,lt);var Q=V(89473),nt=V(2667),mt=V(82306),ct=V(31841),X=V(15032),R=V(63427),T=V(8723),D=V(77341),$=V(41482),gt=V(67052),ht=V(97492),z="0.5.11"},15294:function(){},52:function(){},41482:function(Tr,Yt,V){"use strict";V.d(Yt,{xq:function(){return it},rG:function(){return C},U_:function(){return wt}});function it(lt,vt){var ut=[],W=lt[0],Q=lt[1],nt=lt[2],mt=lt[3],ct=lt[4],X=lt[5],R=lt[6],T=lt[7],D=lt[8],$=vt[0],gt=vt[1],ht=vt[2],z=vt[3],P=vt[4],b=vt[5],G=vt[6],ft=vt[7],Pt=vt[8];return ut[0]=$*W+gt*mt+ht*R,ut[1]=$*Q+gt*ct+ht*T,ut[2]=$*nt+gt*X+ht*D,ut[3]=z*W+P*mt+b*R,ut[4]=z*Q+P*ct+b*T,ut[5]=z*nt+P*X+b*D,ut[6]=G*W+ft*mt+Pt*R,ut[7]=G*Q+ft*ct+Pt*T,ut[8]=G*nt+ft*X+Pt*D,ut}function C(lt,vt){var ut=[],W=vt[0],Q=vt[1];return ut[0]=lt[0]*W+lt[3]*Q+lt[6],ut[1]=lt[1]*W+lt[4]*Q+lt[7],ut}function wt(lt){var vt=[],ut=lt[0],W=lt[1],Q=lt[2],nt=lt[3],mt=lt[4],ct=lt[5],X=lt[6],R=lt[7],T=lt[8],D=T*mt-ct*R,$=-T*nt+ct*X,gt=R*nt-mt*X,ht=ut*D+W*$+Q*gt;return ht?(ht=1/ht,vt[0]=D*ht,vt[1]=(-T*W+Q*R)*ht,vt[2]=(ct*W-Q*mt)*ht,vt[3]=$*ht,vt[4]=(T*ut-Q*X)*ht,vt[5]=(-ct*ut+Q*nt)*ht,vt[6]=gt*ht,vt[7]=(-R*ut+W*X)*ht,vt[8]=(mt*ut-W*nt)*ht,vt):null}},67052:function(Tr,Yt,V){"use strict";V.d(Yt,{L:function(){return C}});var it=null;function C(){if(!it){var wt=document.createElement("canvas");wt.width=1,wt.height=1,it=wt.getContext("2d")}return it}},47575:function(Tr,Yt,V){"use strict";V.r(Yt),V.d(Yt,{catmullRomToBezier:function(){return ut},fillPath:function(){return hr},fillPathByDiff:function(){return o},formatPath:function(){return K},intersection:function(){return xr},parsePathArray:function(){return T},parsePathString:function(){return vt},pathToAbsolute:function(){return Q},pathToCurve:function(){return X},rectPath:function(){return P}});var it=V(49242),C=` +\v\f\r \xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029`,wt=new RegExp("([a-z])["+C+",]*((-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?["+C+"]*,?["+C+"]*)+)","ig"),lt=new RegExp("(-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?)["+C+"]*,?["+C+"]*","ig"),vt=function(l){if(!l)return null;if((0,it.isArray)(l))return l;var m={a:7,c:6,o:2,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,u:3,z:0},O=[];return String(l).replace(wt,function(E,Z,J){var y=[],u=Z.toLowerCase();if(J.replace(lt,function(r,t){t&&y.push(+t)}),u==="m"&&y.length>2&&(O.push([Z].concat(y.splice(0,2))),u="l",Z=Z==="m"?"l":"L"),u==="o"&&y.length===1&&O.push([Z,y[0]]),u==="r")O.push([Z].concat(y));else for(;y.length>=m[u]&&(O.push([Z].concat(y.splice(0,m[u]))),!!m[u]););return l}),O},ut=function(l,m){for(var O=[],E=0,Z=l.length;Z-2*!m>E;E+=2){var J=[{x:+l[E-2],y:+l[E-1]},{x:+l[E],y:+l[E+1]},{x:+l[E+2],y:+l[E+3]},{x:+l[E+4],y:+l[E+5]}];m?E?Z-4===E?J[3]={x:+l[0],y:+l[1]}:Z-2===E&&(J[2]={x:+l[0],y:+l[1]},J[3]={x:+l[2],y:+l[3]}):J[0]={x:+l[Z-2],y:+l[Z-1]}:Z-4===E?J[3]=J[2]:E||(J[0]={x:+l[E],y:+l[E+1]}),O.push(["C",(-J[0].x+6*J[1].x+J[2].x)/6,(-J[0].y+6*J[1].y+J[2].y)/6,(J[1].x+6*J[2].x-J[3].x)/6,(J[1].y+6*J[2].y-J[3].y)/6,J[2].x,J[2].y])}return O},W=function(l,m,O,E,Z){var J=[];if(Z===null&&E===null&&(E=O),l=+l,m=+m,O=+O,E=+E,Z!==null){var y=Math.PI/180,u=l+O*Math.cos(-E*y),r=l+O*Math.cos(-Z*y),t=m+O*Math.sin(-E*y),i=m+O*Math.sin(-Z*y);J=[["M",u,t],["A",O,O,0,+(Z-E>180),0,r,i]]}else J=[["M",l,m],["m",0,-E],["a",O,E,0,1,1,0,2*E],["a",O,E,0,1,1,0,-2*E],["z"]];return J},Q=function(l){if(l=vt(l),!l||!l.length)return[["M",0,0]];var m=[],O=0,E=0,Z=0,J=0,y=0,u,r;l[0][0]==="M"&&(O=+l[0][1],E=+l[0][2],Z=O,J=E,y++,m[0]=["M",O,E]);for(var t=l.length===3&&l[0][0]==="M"&&l[1][0].toUpperCase()==="R"&&l[2][0].toUpperCase()==="Z",i=void 0,n=void 0,e=y,s=l.length;e1&&(Ht=Math.sqrt(Ht),O=Ht*O,E=Ht*E);var fr=O*O,cr=E*E,Dr=(J===y?-1:1)*Math.sqrt(Math.abs((fr*cr-fr*Dt*Dt-cr*It*It)/(fr*Dt*Dt+cr*It*It)));ot=Dr*O*Dt/E+(l+u)/2,dt=Dr*-E*It/O+(m+r)/2,h=Math.asin(((m-dt)/E).toFixed(9)),w=Math.asin(((r-dt)/E).toFixed(9)),h=lw&&(h=h-Math.PI*2),!y&&w>h&&(w=w-Math.PI*2)}var Or=w-h;if(Math.abs(Or)>i){var Hr=w,Wr=u,Y=r;w=h+i*(y&&w>h?1:-1),u=ot+O*Math.cos(w),r=dt+E*Math.sin(w),e=ct(u,r,O,E,Z,0,y,Wr,Y,[w,Hr,ot,dt])}Or=w-h;var L=Math.cos(h),tt=Math.sin(h),st=Math.cos(w),Ct=Math.sin(w),Tt=Math.tan(Or/4),_t=4/3*O*Tt,Ot=4/3*E*Tt,yt=[l,m],Bt=[l+_t*tt,m-Ot*L],St=[u+_t*Ct,r-Ot*st],zt=[u,r];if(Bt[0]=2*yt[0]-Bt[0],Bt[1]=2*yt[1]-Bt[1],t)return[Bt,St,zt].concat(e);e=[Bt,St,zt].concat(e).join().split(",");for(var tr=[],Kt=0,$t=e.length;Kt<$t;Kt++)tr[Kt]=Kt%2?Lt(e[Kt-1],e[Kt],n).y:Lt(e[Kt],e[Kt+1],n).x;return tr},X=function(l,m){var O=Q(l),E=m&&Q(m),Z={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},J={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},y=[],u=[],r="",t="",i,n=function(It,Dt,Ht){var fr,cr;if(!It)return["C",Dt.x,Dt.y,Dt.x,Dt.y,Dt.x,Dt.y];switch(!(It[0]in{T:1,Q:1})&&(Dt.qx=Dt.qy=null),It[0]){case"M":Dt.X=It[1],Dt.Y=It[2];break;case"A":It=["C"].concat(ct.apply(0,[Dt.x,Dt.y].concat(It.slice(1))));break;case"S":Ht==="C"||Ht==="S"?(fr=Dt.x*2-Dt.bx,cr=Dt.y*2-Dt.by):(fr=Dt.x,cr=Dt.y),It=["C",fr,cr].concat(It.slice(1));break;case"T":Ht==="Q"||Ht==="T"?(Dt.qx=Dt.x*2-Dt.qx,Dt.qy=Dt.y*2-Dt.qy):(Dt.qx=Dt.x,Dt.qy=Dt.y),It=["C"].concat(mt(Dt.x,Dt.y,Dt.qx,Dt.qy,It[1],It[2]));break;case"Q":Dt.qx=It[1],Dt.qy=It[2],It=["C"].concat(mt(Dt.x,Dt.y,It[1],It[2],It[3],It[4]));break;case"L":It=["C"].concat(nt(Dt.x,Dt.y,It[1],It[2]));break;case"H":It=["C"].concat(nt(Dt.x,Dt.y,It[1],Dt.y));break;case"V":It=["C"].concat(nt(Dt.x,Dt.y,Dt.x,It[1]));break;case"Z":It=["C"].concat(nt(Dt.x,Dt.y,Dt.X,Dt.Y));break;default:break}return It},e=function(It,Dt){if(It[Dt].length>7){It[Dt].shift();for(var Ht=It[Dt];Ht.length;)y[Dt]="A",E&&(u[Dt]="A"),It.splice(Dt++,0,["C"].concat(Ht.splice(0,6)));It.splice(Dt,1),i=Math.max(O.length,E&&E.length||0)}},s=function(It,Dt,Ht,fr,cr){It&&Dt&&It[cr][0]==="M"&&Dt[cr][0]!=="M"&&(Dt.splice(cr,0,["M",fr.x,fr.y]),Ht.bx=0,Ht.by=0,Ht.x=It[cr][1],Ht.y=It[cr][2],i=Math.max(O.length,E&&E.length||0))};i=Math.max(O.length,E&&E.length||0);for(var h=0;h1?1:r<0?0:r;for(var t=r/2,i=12,n=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],e=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],s=0,h=0;h0&&s<1&&r.push(s);continue}var w=n*n-4*e*i,ot=Math.sqrt(w);if(!(w<0)){var dt=(-n+ot)/(2*i);dt>0&&dt<1&&r.push(dt);var Lt=(-n-ot)/(2*i);Lt>0&&Lt<1&&r.push(Lt)}}for(var It=r.length,Dt=It,Ht;It--;)s=r[It],Ht=1-s,t[0][It]=Ht*Ht*Ht*l+3*Ht*Ht*s*O+3*Ht*s*s*Z+s*s*s*y,t[1][It]=Ht*Ht*Ht*m+3*Ht*Ht*s*E+3*Ht*s*s*J+s*s*s*u;return t[0][Dt]=l,t[1][Dt]=m,t[0][Dt+1]=y,t[1][Dt+1]=u,t[0].length=t[1].length=Dt+2,{min:{x:Math.min.apply(0,t[0]),y:Math.min.apply(0,t[1])},max:{x:Math.max.apply(0,t[0]),y:Math.max.apply(0,t[1])}}},ht=function(l,m,O,E,Z,J,y,u){if(!(Math.max(l,O)Math.max(Z,y)||Math.max(m,E)Math.max(J,u))){var r=(l*E-m*O)*(Z-y)-(l-O)*(Z*u-J*y),t=(l*E-m*O)*(J-u)-(m-E)*(Z*u-J*y),i=(l-O)*(J-u)-(m-E)*(Z-y);if(!!i){var n=r/i,e=t/i,s=+n.toFixed(2),h=+e.toFixed(2);if(!(s<+Math.min(l,O).toFixed(2)||s>+Math.max(l,O).toFixed(2)||s<+Math.min(Z,y).toFixed(2)||s>+Math.max(Z,y).toFixed(2)||h<+Math.min(m,E).toFixed(2)||h>+Math.max(m,E).toFixed(2)||h<+Math.min(J,u).toFixed(2)||h>+Math.max(J,u).toFixed(2)))return{x:n,y:e}}}},z=function(l,m,O){return m>=l.x&&m<=l.x+l.width&&O>=l.y&&O<=l.y+l.height},P=function(l,m,O,E,Z){if(Z)return[["M",+l+ +Z,m],["l",O-Z*2,0],["a",Z,Z,0,0,1,Z,Z],["l",0,E-Z*2],["a",Z,Z,0,0,1,-Z,Z],["l",Z*2-O,0],["a",Z,Z,0,0,1,-Z,-Z],["l",0,Z*2-E],["a",Z,Z,0,0,1,Z,-Z],["z"]];var J=[["M",l,m],["l",O,0],["l",0,E],["l",-O,0],["z"]];return J.parsePathArray=T,J},b=function(l,m,O,E){return l===null&&(l=m=O=E=0),m===null&&(m=l.y,O=l.width,E=l.height,l=l.x),{x:l,y:m,width:O,w:O,height:E,h:E,x2:l+O,y2:m+E,cx:l+O/2,cy:m+E/2,r1:Math.min(O,E)/2,r2:Math.max(O,E)/2,r0:Math.sqrt(O*O+E*E)/2,path:P(l,m,O,E),vb:[l,m,O,E].join(" ")}},G=function(l,m){return l=b(l),m=b(m),z(m,l.x,l.y)||z(m,l.x2,l.y)||z(m,l.x,l.y2)||z(m,l.x2,l.y2)||z(l,m.x,m.y)||z(l,m.x2,m.y)||z(l,m.x,m.y2)||z(l,m.x2,m.y2)||(l.xm.x||m.xl.x)&&(l.ym.y||m.yl.y)},ft=function(l,m,O,E,Z,J,y,u){(0,it.isArray)(l)||(l=[l,m,O,E,Z,J,y,u]);var r=gt.apply(null,l);return b(r.min.x,r.min.y,r.max.x-r.min.x,r.max.y-r.min.y)},Pt=function(l,m,O,E,Z,J,y,u,r){var t=1-r,i=Math.pow(t,3),n=Math.pow(t,2),e=r*r,s=e*r,h=i*l+n*3*r*O+t*3*r*r*Z+s*y,w=i*m+n*3*r*E+t*3*r*r*J+s*u,ot=l+2*r*(O-l)+e*(Z-2*O+l),dt=m+2*r*(E-m)+e*(J-2*E+m),Lt=O+2*r*(Z-O)+e*(y-2*Z+O),It=E+2*r*(J-E)+e*(u-2*J+E),Dt=t*l+r*O,Ht=t*m+r*E,fr=t*Z+r*y,cr=t*J+r*u,Dr=90-Math.atan2(ot-Lt,dt-It)*180/Math.PI;return{x:h,y:w,m:{x:ot,y:dt},n:{x:Lt,y:It},start:{x:Dt,y:Ht},end:{x:fr,y:cr},alpha:Dr}},Ut=function(l,m,O){var E=ft(l),Z=ft(m);if(!G(E,Z))return O?0:[];for(var J=$.apply(0,l),y=$.apply(0,m),u=~~(J/8),r=~~(y/8),t=[],i=[],n={},e=O?0:[],s=0;s=0&&cr<=1&&Dr>=0&&Dr<=1&&(O?e+=1:e.push({x:fr.x,y:fr.y,t1:cr,t2:Dr}))}}return e},ar=function(l,m,O){l=X(l),m=X(m);for(var E,Z,J,y,u,r,t,i,n,e,s=O?0:[],h=0,w=l.length;h=3&&(n.length===3&&e.push("Q"),e=e.concat(n[1])),n.length===2&&e.push("L"),e=e.concat(n[n.length-1]),e});return i}var lr=function(l,m,O){if(O===1)return[[].concat(l)];var E=[];if(m[0]==="L"||m[0]==="C"||m[0]==="Q")E=E.concat(ir(l,m,O));else{var Z=[].concat(l);Z[0]==="M"&&(Z[0]="L");for(var J=0;J<=O-1;J++)E.push(Z)}return E},hr=function(l,m){if(l.length===1)return l;var O=l.length-1,E=m.length-1,Z=O/E,J=[];if(l.length===1&&l[0][0]==="M"){for(var y=0;y=0;r--)y=J[r].index,J[r].type==="add"?l.splice(y,0,[].concat(l[y])):l.splice(y,1)}E=l.length;var n=Z-E;if(E0)O=x(O,l[E-1],1);else{l[E]=m[E];break}l[E]=["Q"].concat(O.reduce(function(Z,J){return Z.concat(J)},[]));break;case"T":l[E]=["T"].concat(O[0]);break;case"C":if(O.length<3)if(E>0)O=x(O,l[E-1],2);else{l[E]=m[E];break}l[E]=["C"].concat(O.reduce(function(Z,J){return Z.concat(J)},[]));break;case"S":if(O.length<2)if(E>0)O=x(O,l[E-1],1);else{l[E]=m[E];break}l[E]=["S"].concat(O.reduce(function(Z,J){return Z.concat(J)},[]));break;default:l[E]=m[E]}return l}},8723:function(Tr,Yt,V){"use strict";V.d(Yt,{FE:function(){return wt},mY:function(){return vt},$O:function(){return ut}});var it=V(77341),C=V(67052);function wt(W,Q,nt){var mt=1;if((0,it.HD)(W)&&(mt=W.split(` +`).length),mt>1){var ct=lt(Q,nt);return Q*mt+ct*(mt-1)}return Q}function lt(W,Q){return Q?Q-W:W*.14}function vt(W,Q){var nt=(0,C.L)(),mt=0;if((0,it.kK)(W)||W==="")return mt;if(nt.save(),nt.font=Q,(0,it.HD)(W)&&W.includes(` +`)){var ct=W.split(` +`);(0,it.S6)(ct,function(X){var R=nt.measureText(X).width;mt=z.minX&&T<=z.maxX&&D>=z.minY&&D<=z.maxY}function ut(R,T,D){if(!vt(R,T,D))return null;for(var $=null,gt=R.getChildren(),ht=gt.length,z=ht-1;z>=0;z--){var P=gt[z];if(P.isGroup())$=ut(P,T,D);else if(vt(P,T,D)){var b=P,G=lt(P,T,D),ft=G[0],Pt=G[1];b.isInShape(ft,Pt)&&($=P)}if($)break}return $}var W=V(31013),Q=V(25252),nt=V(92793),mt=V(23645),ct=function(R){(0,it.__extends)(T,R);function T(){return R!==null&&R.apply(this,arguments)||this}return T.prototype.getDefaultCfg=function(){var D=R.prototype.getDefaultCfg.call(this);return D.renderer="canvas",D.autoDraw=!0,D.localRefresh=!0,D.refreshElements=[],D.clipView=!0,D.quickHit=!1,D},T.prototype.onCanvasChange=function(D){(D==="attr"||D==="sort"||D==="changeSize")&&(this.set("refreshElements",[this]),this.draw())},T.prototype.getShapeBase=function(){return W},T.prototype.getGroupBase=function(){return Q.Z},T.prototype.getPixelRatio=function(){var D=this.get("pixelRatio")||(0,nt.mX)();return D>=1?Math.ceil(D):1},T.prototype.getViewRange=function(){return{minX:0,minY:0,maxX:this.cfg.width,maxY:this.cfg.height}},T.prototype.createDom=function(){var D=document.createElement("canvas"),$=D.getContext("2d");return this.set("context",$),D},T.prototype.setDOMSize=function(D,$){R.prototype.setDOMSize.call(this,D,$);var gt=this.get("context"),ht=this.get("el"),z=this.getPixelRatio();ht.width=z*D,ht.height=z*$,z>1&>.scale(z,z)},T.prototype.clear=function(){R.prototype.clear.call(this),this._clearFrame();var D=this.get("context"),$=this.get("el");D.clearRect(0,0,$.width,$.height)},T.prototype.getShape=function(D,$){var gt;return this.get("quickHit")?gt=ut(this,D,$):gt=R.prototype.getShape.call(this,D,$,null),gt},T.prototype._getRefreshRegion=function(){var D=this.get("refreshElements"),$=this.getViewRange(),gt;if(D.length&&D[0]===this)gt=$;else if(gt=(0,mt.tJ)(D),gt){gt.minX=Math.floor(gt.minX),gt.minY=Math.floor(gt.minY),gt.maxX=Math.ceil(gt.maxX),gt.maxY=Math.ceil(gt.maxY),gt.maxY+=1;var ht=this.get("clipView");ht&&(gt=(0,mt.T2)(gt,$))}return gt},T.prototype.refreshElement=function(D){var $=this.get("refreshElements");$.push(D)},T.prototype._clearFrame=function(){var D=this.get("drawFrame");D&&((0,nt.VS)(D),this.set("drawFrame",null),this.set("refreshElements",[]))},T.prototype.draw=function(){var D=this.get("drawFrame");this.get("autoDraw")&&D||this._startDraw()},T.prototype._drawAll=function(){var D=this.get("context"),$=this.get("el"),gt=this.getChildren();D.clearRect(0,0,$.width,$.height),(0,mt.DE)(D,this),(0,mt.NX)(D,gt),this.set("refreshElements",[])},T.prototype._drawRegion=function(){var D=this.get("context"),$=this.get("refreshElements"),gt=this.getChildren(),ht=this._getRefreshRegion();ht?(D.clearRect(ht.minX,ht.minY,ht.maxX-ht.minX,ht.maxY-ht.minY),D.save(),D.beginPath(),D.rect(ht.minX,ht.minY,ht.maxX-ht.minX,ht.maxY-ht.minY),D.clip(),(0,mt.DE)(D,this),(0,mt.kU)(this,gt,ht),(0,mt.NX)(D,gt,ht),D.restore()):$.length&&(0,mt.sT)($),(0,nt.S6)($,function(z){z.get("hasChanged")&&z.set("hasChanged",!1)}),this.set("refreshElements",[])},T.prototype._startDraw=function(){var D=this,$=this.get("drawFrame");$||($=(0,nt.U7)(function(){D.get("localRefresh")?D._drawRegion():D._drawAll(),D.set("drawFrame",null)}),this.set("drawFrame",$))},T.prototype.skipDraw=function(){},T.prototype.removeDom=function(){var D=this.get("el");D.width=0,D.height=0,D.parentNode.removeChild(D)},T}(C.AbstractCanvas),X=ct},25252:function(Tr,Yt,V){"use strict";var it=V(65353),C=V(98190),wt=V(31013),lt=V(23645),vt=V(49242),ut=V(92793),W=function(Q){(0,it.__extends)(nt,Q);function nt(){return Q!==null&&Q.apply(this,arguments)||this}return nt.prototype.onCanvasChange=function(mt){(0,lt.md)(this,mt)},nt.prototype.getShapeBase=function(){return wt},nt.prototype.getGroupBase=function(){return nt},nt.prototype._applyClip=function(mt,ct){ct&&(mt.save(),(0,lt.DE)(mt,ct),ct.createPath(mt),mt.restore(),mt.clip(),ct._afterDraw())},nt.prototype.cacheCanvasBBox=function(){var mt=this.cfg.children,ct=[],X=[];(0,vt.each)(mt,function(P){var b=P.cfg.cacheCanvasBBox;b&&P.cfg.isInView&&(ct.push(b.minX,b.maxX),X.push(b.minY,b.maxY))});var R=null;if(ct.length){var T=(0,vt.min)(ct),D=(0,vt.max)(ct),$=(0,vt.min)(X),gt=(0,vt.max)(X);R={minX:T,minY:$,x:T,y:$,maxX:D,maxY:gt,width:D-T,height:gt-$};var ht=this.cfg.canvas;if(ht){var z=ht.getViewRange();this.set("isInView",(0,ut.qb)(R,z))}}else this.set("isInView",!1);this.set("cacheCanvasBBox",R)},nt.prototype.draw=function(mt,ct){var X=this.cfg.children,R=ct?this.cfg.refresh:!0;X.length&&R&&(mt.save(),(0,lt.DE)(mt,this),this._applyClip(mt,this.getClip()),(0,lt.NX)(mt,X,ct),mt.restore(),this.cacheCanvasBBox()),this.cfg.refresh=null,this.set("hasChanged",!1)},nt.prototype.skipDraw=function(){this.set("cacheCanvasBBox",null),this.set("hasChanged",!1)},nt}(C.AbstractGroup);Yt.Z=W},70375:function(Tr,Yt,V){"use strict";V.r(Yt),V.d(Yt,{Canvas:function(){return vt.Z},Group:function(){return ut.Z},Shape:function(){return it},getArcParams:function(){return W.Z},version:function(){return Q}});var it=V(31013),C=V(98190),wt={};for(var lt in C)["default","Canvas","Group","Shape","getArcParams","version"].indexOf(lt)<0&&(wt[lt]=function(nt){return C[nt]}.bind(0,lt));V.d(Yt,wt);var vt=V(86325),ut=V(25252),W=V(46068),Q="0.5.12"},31013:function(Tr,Yt,V){"use strict";V.r(Yt),V.d(Yt,{Base:function(){return Q},Circle:function(){return mt},Ellipse:function(){return R},Image:function(){return $},Line:function(){return b},Marker:function(){return _t},Path:function(){return _r},Polygon:function(){return B},Polyline:function(){return At},Rect:function(){return Ir},Text:function(){return Xr}});var it={};V.r(it),V.d(it,{Base:function(){return Q},Circle:function(){return mt},Ellipse:function(){return R},Image:function(){return $},Line:function(){return b},Marker:function(){return _t},Path:function(){return _r},Polygon:function(){return B},Polyline:function(){return At},Rect:function(){return Ir},Text:function(){return Xr}});var C=V(65353),wt=V(98190),lt=V(92793),vt=V(23645),ut=V(25252),W=function(d){(0,C.__extends)(c,d);function c(){return d!==null&&d.apply(this,arguments)||this}return c.prototype.getDefaultAttrs=function(){var a=d.prototype.getDefaultAttrs.call(this);return(0,C.__assign)((0,C.__assign)({},a),{lineWidth:1,lineAppendWidth:0,strokeOpacity:1,fillOpacity:1})},c.prototype.getShapeBase=function(){return it},c.prototype.getGroupBase=function(){return ut.Z},c.prototype.onCanvasChange=function(a){(0,vt.md)(this,a)},c.prototype.calculateBBox=function(){var a=this.get("type"),g=this.getHitLineWidth(),A=(0,wt.getBBoxMethod)(a),k=A(this),F=g/2,H=k.x-F,q=k.y-F,Et=k.x+k.width+F,Mt=k.y+k.height+F;return{x:H,minX:H,y:q,minY:q,width:k.width+g,height:k.height+g,maxX:Et,maxY:Mt}},c.prototype.isFill=function(){return!!this.attrs.fill||this.isClipShape()},c.prototype.isStroke=function(){return!!this.attrs.stroke},c.prototype._applyClip=function(a,g){g&&(a.save(),(0,vt.DE)(a,g),g.createPath(a),a.restore(),a.clip(),g._afterDraw())},c.prototype.draw=function(a,g){var A=this.cfg.clipShape;if(g){if(this.cfg.refresh===!1){this.set("hasChanged",!1);return}var k=this.getCanvasBBox();if(!(0,lt.qb)(g,k)){this.set("hasChanged",!1),this.cfg.isInView&&this._afterDraw();return}}a.save(),(0,vt.DE)(a,this),this._applyClip(a,A),this.drawPath(a),a.restore(),this._afterDraw()},c.prototype.getCanvasViewBox=function(){var a=this.cfg.canvas;return a?a.getViewRange():null},c.prototype.cacheCanvasBBox=function(){var a=this.getCanvasViewBox();if(a){var g=this.getCanvasBBox(),A=(0,lt.qb)(g,a);this.set("isInView",A),A?this.set("cacheCanvasBBox",g):this.set("cacheCanvasBBox",null)}},c.prototype._afterDraw=function(){this.cacheCanvasBBox(),this.set("hasChanged",!1),this.set("refresh",null)},c.prototype.skipDraw=function(){this.set("cacheCanvasBBox",null),this.set("isInView",null),this.set("hasChanged",!1)},c.prototype.drawPath=function(a){this.createPath(a),this.strokeAndFill(a),this.afterDrawPath(a)},c.prototype.fill=function(a){a.fill()},c.prototype.stroke=function(a){a.stroke()},c.prototype.strokeAndFill=function(a){var g=this.attrs,A=g.lineWidth,k=g.opacity,F=g.strokeOpacity,H=g.fillOpacity;this.isFill()&&(!(0,lt.kK)(H)&&H!==1?(a.globalAlpha=H,this.fill(a),a.globalAlpha=k):this.fill(a)),this.isStroke()&&A>0&&(!(0,lt.kK)(F)&&F!==1&&(a.globalAlpha=F),this.stroke(a)),this.afterDrawPath(a)},c.prototype.createPath=function(a){},c.prototype.afterDrawPath=function(a){},c.prototype.isInShape=function(a,g){var A=this.isStroke(),k=this.isFill(),F=this.getHitLineWidth();return this.isInStrokeOrPath(a,g,A,k,F)},c.prototype.isInStrokeOrPath=function(a,g,A,k,F){return!1},c.prototype.getHitLineWidth=function(){if(!this.isStroke())return 0;var a=this.attrs;return a.lineWidth+a.lineAppendWidth},c}(wt.AbstractShape),Q=W,nt=function(d){(0,C.__extends)(c,d);function c(){return d!==null&&d.apply(this,arguments)||this}return c.prototype.getDefaultAttrs=function(){var a=d.prototype.getDefaultAttrs.call(this);return(0,C.__assign)((0,C.__assign)({},a),{x:0,y:0,r:0})},c.prototype.isInStrokeOrPath=function(a,g,A,k,F){var H=this.attr(),q=H.x,Et=H.y,Mt=H.r,Rt=F/2,Gt=(0,lt.TE)(q,Et,a,g);return k&&A?Gt<=Mt+Rt:k?Gt<=Mt:A?Gt>=Mt-Rt&&Gt<=Mt+Rt:!1},c.prototype.createPath=function(a){var g=this.attr(),A=g.x,k=g.y,F=g.r;a.beginPath(),a.arc(A,k,F,0,Math.PI*2,!1),a.closePath()},c}(Q),mt=nt;function ct(d,c,a,g){return d/(a*a)+c/(g*g)}var X=function(d){(0,C.__extends)(c,d);function c(){return d!==null&&d.apply(this,arguments)||this}return c.prototype.getDefaultAttrs=function(){var a=d.prototype.getDefaultAttrs.call(this);return(0,C.__assign)((0,C.__assign)({},a),{x:0,y:0,rx:0,ry:0})},c.prototype.isInStrokeOrPath=function(a,g,A,k,F){var H=this.attr(),q=F/2,Et=H.x,Mt=H.y,Rt=H.rx,Gt=H.ry,Vt=(a-Et)*(a-Et),Jt=(g-Mt)*(g-Mt);return k&&A?ct(Vt,Jt,Rt+q,Gt+q)<=1:k?ct(Vt,Jt,Rt,Gt)<=1:A?ct(Vt,Jt,Rt-q,Gt-q)>=1&&ct(Vt,Jt,Rt+q,Gt+q)<=1:!1},c.prototype.createPath=function(a){var g=this.attr(),A=g.x,k=g.y,F=g.rx,H=g.ry;if(a.beginPath(),a.ellipse)a.ellipse(A,k,F,H,0,0,Math.PI*2,!1);else{var q=F>H?F:H,Et=F>H?1:F/H,Mt=F>H?H/F:1;a.save(),a.translate(A,k),a.scale(Et,Mt),a.arc(0,0,q,0,Math.PI*2),a.restore(),a.closePath()}},c}(Q),R=X;function T(d){return d instanceof HTMLElement&&(0,lt.HD)(d.nodeName)&&d.nodeName.toUpperCase()==="CANVAS"}var D=function(d){(0,C.__extends)(c,d);function c(){return d!==null&&d.apply(this,arguments)||this}return c.prototype.getDefaultAttrs=function(){var a=d.prototype.getDefaultAttrs.call(this);return(0,C.__assign)((0,C.__assign)({},a),{x:0,y:0,width:0,height:0})},c.prototype.initAttrs=function(a){this._setImage(a.img)},c.prototype.isStroke=function(){return!1},c.prototype.isOnlyHitBox=function(){return!0},c.prototype._afterLoading=function(){if(this.get("toDraw")===!0){var a=this.get("canvas");a?a.draw():this.createPath(this.get("context"))}},c.prototype._setImage=function(a){var g=this,A=this.attrs;if((0,lt.HD)(a)){var k=new Image;k.onload=function(){if(g.destroyed)return!1;g.attr("img",k),g.set("loading",!1),g._afterLoading();var F=g.get("callback");F&&F.call(g)},k.crossOrigin="Anonymous",k.src=a,this.set("loading",!0)}else a instanceof Image?(A.width||(A.width=a.width),A.height||(A.height=a.height)):T(a)&&(A.width||(A.width=Number(a.getAttribute("width"))),A.height||(A.height,Number(a.getAttribute("height"))))},c.prototype.onAttrChange=function(a,g,A){d.prototype.onAttrChange.call(this,a,g,A),a==="img"&&this._setImage(g)},c.prototype.createPath=function(a){if(this.get("loading")){this.set("toDraw",!0),this.set("context",a);return}var g=this.attr(),A=g.x,k=g.y,F=g.width,H=g.height,q=g.sx,Et=g.sy,Mt=g.swidth,Rt=g.sheight,Gt=g.img;(Gt instanceof Image||T(Gt))&&(!(0,lt.kK)(q)&&!(0,lt.kK)(Et)&&!(0,lt.kK)(Mt)&&!(0,lt.kK)(Rt)?a.drawImage(Gt,q,Et,Mt,Rt,A,k,F,H):a.drawImage(Gt,A,k,F,H))},c}(Q),$=D,gt=V(89838);function ht(d,c,a,g,A,k,F){var H=Math.min(d,a),q=Math.max(d,a),Et=Math.min(c,g),Mt=Math.max(c,g),Rt=A/2;return k>=H-Rt&&k<=q+Rt&&F>=Et-Rt&&F<=Mt+Rt?gt.x1.pointToLine(d,c,a,g,k,F)<=A/2:!1}var z=V(55922),P=function(d){(0,C.__extends)(c,d);function c(){return d!==null&&d.apply(this,arguments)||this}return c.prototype.getDefaultAttrs=function(){var a=d.prototype.getDefaultAttrs.call(this);return(0,C.__assign)((0,C.__assign)({},a),{x1:0,y1:0,x2:0,y2:0,startArrow:!1,endArrow:!1})},c.prototype.initAttrs=function(a){this.setArrow()},c.prototype.onAttrChange=function(a,g,A){d.prototype.onAttrChange.call(this,a,g,A),this.setArrow()},c.prototype.setArrow=function(){var a=this.attr(),g=a.x1,A=a.y1,k=a.x2,F=a.y2,H=a.startArrow,q=a.endArrow;H&&z.Yf(this,a,k,F,g,A),q&&z.YR(this,a,g,A,k,F)},c.prototype.isInStrokeOrPath=function(a,g,A,k,F){if(!A||!F)return!1;var H=this.attr(),q=H.x1,Et=H.y1,Mt=H.x2,Rt=H.y2;return ht(q,Et,Mt,Rt,F,a,g)},c.prototype.createPath=function(a){var g=this.attr(),A=g.x1,k=g.y1,F=g.x2,H=g.y2,q=g.startArrow,Et=g.endArrow,Mt={dx:0,dy:0},Rt={dx:0,dy:0};q&&q.d&&(Mt=z.jF(A,k,F,H,g.startArrow.d)),Et&&Et.d&&(Rt=z.jF(A,k,F,H,g.endArrow.d)),a.beginPath(),a.moveTo(A+Mt.dx,k+Mt.dy),a.lineTo(F-Rt.dx,H-Rt.dy)},c.prototype.afterDrawPath=function(a){var g=this.get("startArrowShape"),A=this.get("endArrowShape");g&&g.draw(a),A&&A.draw(a)},c.prototype.getTotalLength=function(){var a=this.attr(),g=a.x1,A=a.y1,k=a.x2,F=a.y2;return gt.x1.length(g,A,k,F)},c.prototype.getPoint=function(a){var g=this.attr(),A=g.x1,k=g.y1,F=g.x2,H=g.y2;return gt.x1.pointAt(A,k,F,H,a)},c}(Q),b=P,G=V(49242),ft=/[MLHVQTCSAZ]([^MLHVQTCSAZ]*)/ig,Pt=/[^\s\,]+/ig;function Ut(d){var c=d||[];if((0,G.isArray)(c))return c;if((0,G.isString)(c))return c=c.match(ft),(0,G.each)(c,function(a,g){if(a=a.match(Pt),a[0].length>1){var A=a[0].charAt(0);a.splice(1,0,a[0].substr(1)),a[0]=A}(0,G.each)(a,function(k,F){isNaN(k)||(a[F]=+k)}),c[g]=a}),c}var ar=Ut;function xr(d,c,a){var g=null,A=a;return c=0;q--)F=k[q].index,k[q].type==="add"?d.splice(F,0,[].concat(d[F])):d.splice(F,1)}if(g=d.length,g2&&(a.push([A].concat(F.splice(0,2))),H="l",A=A==="m"?"l":"L"),H==="o"&&F.length===1&&a.push([A,F[0]]),H==="r")a.push([A].concat(F));else for(;F.length>=c[H]&&(a.push([A].concat(F.splice(0,c[H]))),!!c[H]););return""}),a}var f=/[a-z]/;function o(d,c){return[c[0]+(c[0]-d[0]),c[1]+(c[1]-d[1])]}function x(d){var c=rr(d);if(!c||!c.length)return[["M",0,0]];for(var a=!1,g=0;g=0){a=!0;break}}if(!a)return c;var k=[],F=0,H=0,q=0,Et=0,Mt=0,Rt,Gt,Vt=c[0];(Vt[0]==="M"||Vt[0]==="m")&&(F=+Vt[1],H=+Vt[2],q=F,Et=H,Mt++,k[0]=["M",F,H]);for(var g=Mt,Jt=c.length;g1&&(k=1),k<-1&&(k=-1),A*Math.acos(k)},O=function(d,c,a,g,A,k,F,H,q,Et,Mt,Rt){var Gt=Math.pow(A,2),Vt=Math.pow(k,2),Jt=Math.pow(Mt,2),sr=Math.pow(Rt,2),vr=Gt*Vt-Gt*sr-Vt*Jt;vr<0&&(vr=0),vr/=Gt*sr+Vt*Jt,vr=Math.sqrt(vr)*(F===H?-1:1);var qt=vr*A/k*Rt,yr=vr*-k/A*Mt,Ar=Et*qt-q*yr+(d+a)/2,Sr=q*qt+Et*yr+(c+g)/2,Pr=(Mt-qt)/A,Rr=(Rt-yr)/k,Br=(-Mt-qt)/A,p=(-Rt-yr)/k,_=m(1,0,Pr,Rr),I=m(Pr,Rr,Br,p);return H===0&&I>0&&(I-=U),H===1&&I<0&&(I+=U),[Ar,Sr,_,I]},E=function(d){var c=d.px,a=d.py,g=d.cx,A=d.cy,k=d.rx,F=d.ry,H=d.xAxisRotation,q=H===void 0?0:H,Et=d.largeArcFlag,Mt=Et===void 0?0:Et,Rt=d.sweepFlag,Gt=Rt===void 0?0:Rt,Vt=[];if(k===0||F===0)return[{x1:0,y1:0,x2:0,y2:0,x:g,y:A}];var Jt=Math.sin(q*U/360),sr=Math.cos(q*U/360),vr=sr*(c-g)/2+Jt*(a-A)/2,qt=-Jt*(c-g)/2+sr*(a-A)/2;if(vr===0&&qt===0)return[{x1:0,y1:0,x2:0,y2:0,x:g,y:A}];k=Math.abs(k),F=Math.abs(F);var yr=Math.pow(vr,2)/Math.pow(k,2)+Math.pow(qt,2)/Math.pow(F,2);yr>1&&(k*=Math.sqrt(yr),F*=Math.sqrt(yr));var Ar=O(c,a,g,A,k,F,Mt,Gt,Jt,sr,vr,qt),Sr=Ar[0],Pr=Ar[1],Rr=Ar[2],Br=Ar[3],p=Math.abs(Br)/(U/4);Math.abs(1-p)<1e-7&&(p=1);var _=Math.max(Math.ceil(p),1);Br/=_;for(var I=0;I<_;I++)Vt.push(l(Rr,Br)),Rr+=Br;return Vt.map(function(et){var rt=K(et[0],k,F,sr,Jt,Sr,Pr),xt=rt.x,kt=rt.y,Ft=K(et[1],k,F,sr,Jt,Sr,Pr),or=Ft.x,Qt=Ft.y,nr=K(et[2],k,F,sr,Jt,Sr,Pr),Lr=nr.x,br=nr.y;return{x1:xt,y1:kt,x2:or,y2:Qt,x:Lr,y:br}})};function Z(d,c,a,g,A,k,F,H,q){var Et=E({px:d,py:c,cx:H,cy:q,rx:a,ry:g,xAxisRotation:A,largeArcFlag:k,sweepFlag:F});return Et.reduce(function(Mt,Rt){var Gt=Rt.x1,Vt=Rt.y1,Jt=Rt.x2,sr=Rt.y2,vr=Rt.x,qt=Rt.y;return Mt.push(Gt,Vt,Jt,sr,vr,qt),Mt},[])}function J(d,c){"TQ".indexOf(d[0])<0&&(c.qx=null,c.qy=null);var a=d.slice(1),g=a[0],A=a[1];switch(d[0]){case"M":return c.x=g,c.y=A,d;case"A":return["C"].concat(arcToCubic.apply(0,[c.x1,c.y1].concat(d.slice(1))));case"Q":return c.qx=g,c.qy=A,["C"].concat(quadToCubic.apply(0,[c.x1,c.y1].concat(d.slice(1))));case"L":return["C"].concat(lineToCubic(c.x1,c.y1,d[1],d[2]));case"H":return["C"].concat(lineToCubic(c.x1,c.y1,d[1],c.y1));case"V":return["C"].concat(lineToCubic(c.x1,c.y1,c.x1,d[1]));case"Z":return["C"].concat(lineToCubic(c.x1,c.y1,c.x,c.y));default:}return d}function y(d,c){c===void 0&&(c=!1);for(var a=path2Absolute(d),g={x1:0,y1:0,x2:0,y2:0,x:0,y:0,qx:null,qy:null},A=[],k="",F=a.length,H,q,Et=[],Mt=0;Mt7){d[a].shift();for(var g=d[a],A=a;g.length;)c[a]="A",d.splice(A+=1,0,["C"].concat(g.splice(0,6)));d.splice(a,1)}}var r=function(d,c,a,g,A){var k=-3*c+9*a-9*g+3*A,F=d*k+6*c-12*a+6*g;return d*F-3*c+3*a},t=function(d,c,a,g,A,k,F,H,q){q===null&&(q=1),q=q>1?1:q<0?0:q;for(var Et=q/2,Mt=12,Rt=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],Gt=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],Vt=0,Jt=0;Jt0&&Vt<1&&q.push(Vt);continue}var sr=Rt*Rt-4*Gt*Mt,vr=Math.sqrt(sr);if(!(sr<0)){var qt=(-Rt+vr)/(2*Mt);qt>0&&qt<1&&q.push(qt);var yr=(-Rt-vr)/(2*Mt);yr>0&&yr<1&&q.push(yr)}}for(var Ar=q.length,Sr=Ar,Pr;Ar--;)Vt=q[Ar],Pr=1-Vt,Et[0][Ar]=Pr*Pr*Pr*d+3*Pr*Pr*Vt*a+3*Pr*Vt*Vt*A+Vt*Vt*Vt*F,Et[1][Ar]=Pr*Pr*Pr*c+3*Pr*Pr*Vt*g+3*Pr*Vt*Vt*k+Vt*Vt*Vt*H;return Et[0][Sr]=d,Et[1][Sr]=c,Et[0][Sr+1]=F,Et[1][Sr+1]=H,Et[0].length=Et[1].length=Sr+2,{min:{x:Math.min.apply(0,Et[0]),y:Math.min.apply(0,Et[1])},max:{x:Math.max.apply(0,Et[0]),y:Math.max.apply(0,Et[1])}}},n=function(d,c,a,g,A,k,F,H){if(!(Math.max(d,a)Math.max(A,F)||Math.max(c,g)Math.max(k,H))){var q=(d*g-c*a)*(A-F)-(d-a)*(A*H-k*F),Et=(d*g-c*a)*(k-H)-(c-g)*(A*H-k*F),Mt=(d-a)*(k-H)-(c-g)*(A-F);if(!!Mt){var Rt=q/Mt,Gt=Et/Mt,Vt=+Rt.toFixed(2),Jt=+Gt.toFixed(2);if(!(Vt<+Math.min(d,a).toFixed(2)||Vt>+Math.max(d,a).toFixed(2)||Vt<+Math.min(A,F).toFixed(2)||Vt>+Math.max(A,F).toFixed(2)||Jt<+Math.min(c,g).toFixed(2)||Jt>+Math.max(c,g).toFixed(2)||Jt<+Math.min(k,H).toFixed(2)||Jt>+Math.max(k,H).toFixed(2)))return{x:Rt,y:Gt}}}},e=function(d,c,a){return c>=d.x&&c<=d.x+d.width&&a>=d.y&&a<=d.y+d.height},s=function(d,c,a,g){return d===null&&(d=c=a=g=0),c===null&&(c=d.y,a=d.width,g=d.height,d=d.x),{x:d,y:c,width:a,w:a,height:g,h:g,x2:d+a,y2:c+g,cx:d+a/2,cy:c+g/2,r1:Math.min(a,g)/2,r2:Math.max(a,g)/2,r0:Math.sqrt(a*a+g*g)/2,path:rectPath(d,c,a,g),vb:[d,c,a,g].join(" ")}},h=function(d,c){return d=s(d),c=s(c),e(c,d.x,d.y)||e(c,d.x2,d.y)||e(c,d.x,d.y2)||e(c,d.x2,d.y2)||e(d,c.x,c.y)||e(d,c.x2,c.y)||e(d,c.x,c.y2)||e(d,c.x2,c.y2)||(d.xc.x||c.xd.x)&&(d.yc.y||c.yd.y)},w=function(d,c,a,g,A,k,F,H){isArray(d)||(d=[d,c,a,g,A,k,F,H]);var q=i.apply(null,d);return s(q.min.x,q.min.y,q.max.x-q.min.x,q.max.y-q.min.y)},ot=function(d,c,a,g,A,k,F,H,q){var Et=1-q,Mt=Math.pow(Et,3),Rt=Math.pow(Et,2),Gt=q*q,Vt=Gt*q,Jt=Mt*d+Rt*3*q*a+Et*3*q*q*A+Vt*F,sr=Mt*c+Rt*3*q*g+Et*3*q*q*k+Vt*H,vr=d+2*q*(a-d)+Gt*(A-2*a+d),qt=c+2*q*(g-c)+Gt*(k-2*g+c),yr=a+2*q*(A-a)+Gt*(F-2*A+a),Ar=g+2*q*(k-g)+Gt*(H-2*k+g),Sr=Et*d+q*a,Pr=Et*c+q*g,Rr=Et*A+q*F,Br=Et*k+q*H,p=90-Math.atan2(vr-yr,qt-Ar)*180/Math.PI;return{x:Jt,y:sr,m:{x:vr,y:qt},n:{x:yr,y:Ar},start:{x:Sr,y:Pr},end:{x:Rr,y:Br},alpha:p}},dt=function(d,c,a){var g=w(d),A=w(c);if(!h(g,A))return a?0:[];for(var k=t.apply(0,d),F=t.apply(0,c),H=~~(k/8),q=~~(F/8),Et=[],Mt=[],Rt={},Gt=a?0:[],Vt=0;Vt=0&&Br<=1&&p>=0&&p<=1&&(a?Gt++:Gt.push({x:Rr.x,y:Rr.y,t1:Br,t2:p}))}}return Gt},Lt=function(d,c,a){d=path2Curve(d),c=path2Curve(c);for(var g,A,k,F,H,q,Et,Mt,Rt,Gt,Vt=a?0:[],Jt=0,sr=d.length;Jt1&&(a*=Math.sqrt(Vt),g*=Math.sqrt(Vt));var Jt=a*a*(Gt*Gt)+g*g*(Rt*Rt),sr=Jt?Math.sqrt((a*a*(g*g)-Jt)/Jt):1;k===F&&(sr*=-1),isNaN(sr)&&(sr=0);var vr=g?sr*a*Gt/g:0,qt=a?sr*-g*Rt/a:0,yr=(H+Et)/2+Math.cos(A)*vr-Math.sin(A)*qt,Ar=(q+Mt)/2+Math.sin(A)*vr+Math.cos(A)*qt,Sr=[(Rt-vr)/a,(Gt-qt)/g],Pr=[(-1*Rt-vr)/a,(-1*Gt-qt)/g],Rr=fr([1,0],Sr),Br=fr(Sr,Pr);return Ht(Sr,Pr)<=-1&&(Br=Math.PI),Ht(Sr,Pr)>=1&&(Br=0),F===0&&Br>0&&(Br=Br-2*Math.PI),F===1&&Br<0&&(Br=Br+2*Math.PI),{cx:yr,cy:Ar,rx:cr(d,[Et,Mt])?0:a,ry:cr(d,[Et,Mt])?0:g,startAngle:Rr,endAngle:Rr+Br,xRotation:A,arcFlag:k,sweepFlag:F}}function Or(d,c){return[c[0]+(c[0]-d[0]),c[1]+(c[1]-d[1])]}function Hr(d){d=ar(d);for(var c=[],a=null,g=null,A=null,k=0,F=d.length,H=0;H1){var F=d[0],H=d[a-1];c.push({from:{x:H[0],y:H[1]},to:{x:F[0],y:F[1]}})}return c}function Y(d,c){var a=!1;return each(d,function(g){if(getLineIntersect(g.from,g.to,c.from,c.to))return a=!0,!1}),a}function L(d){var c=d.map(function(g){return g[0]}),a=d.map(function(g){return g[1]});return{minX:Math.min.apply(null,c),maxX:Math.max.apply(null,c),minY:Math.min.apply(null,a),maxY:Math.max.apply(null,a)}}function tt(d,c){return!(c.minX>d.maxX||c.maxXd.maxY||c.maxY0!=Bt(H[1]-a)>0&&Bt(c-(a-F[1])*(F[0]-H[0])/(F[1]-H[1])-F[0])<0&&(g=!g)}return g}var tr=V(31506),Kt=V(77160);function $t(d,c,a,g,A,k,F,H){var q=(Math.atan2(H-c,F-d)+Math.PI*2)%(Math.PI*2);if(qA)return!1;var Et={x:d+a*Math.cos(q),y:c+a*Math.sin(q)};return(0,lt.TE)(Et.x,Et.y,F,H)<=k/2}var ur=tr.vs;function er(d){for(var c=!1,a=d.length,g=0;gAr?yr:Ar,_=yr>Ar?1:yr/Ar,I=yr>Ar?Ar/yr:1,et=ur(null,[["t",-vr,-qt],["r",-Rr],["s",1/_,1/I]]);Kt.transformMat3(Br,Br,et),k=$t(0,0,p,Sr,Pr,c,Br[0],Br[1]);break;default:break}if(k)break}}return k}function dr(d){for(var c=d.length,a=[],g=[],A=[],k=0;k0&&g.push(A),{polygons:a,polylines:g}}var wr=(0,C.__assign)({hasArc:er,extractPolygons:dr,isPointInStroke:Wt},wt.PathUtil);function Er(d,c,a){for(var g=!1,A=0;A=Mt[0]&&a<=Mt[1]&&(A=(a-Mt[0])/(Mt[1]-Mt[0]),k=Rt)});var H=F[k];if((0,G.isNil)(H)||(0,G.isNil)(k))return null;var q=H.length,Et=F[k+1];return gt.Ll.pointAt(H[q-2],H[q-1],Et[1],Et[2],Et[3],Et[4],Et[5],Et[6],A)},c.prototype._calculateCurve=function(){var a=this.attr().path;this.set("curve",wr.pathToCurve(a))},c.prototype._setTcache=function(){var a=0,g=0,A=[],k,F,H,q,Et=this.get("curve");if(!!Et){if((0,G.each)(Et,function(Mt,Rt){H=Et[Rt+1],q=Mt.length,H&&(a+=gt.Ll.length(Mt[q-2],Mt[q-1],H[1],H[2],H[3],H[4],H[5],H[6])||0)}),this.set("totalLength",a),a===0){this.set("tCache",[]);return}(0,G.each)(Et,function(Mt,Rt){H=Et[Rt+1],q=Mt.length,H&&(k=[],k[0]=g/a,F=gt.Ll.length(Mt[q-2],Mt[q-1],H[1],H[2],H[3],H[4],H[5],H[6]),g+=F||0,k[1]=g/a,A.push(k))}),this.set("tCache",A)}},c.prototype.getStartTangent=function(){var a=this.getSegments(),g;if(a.length>1){var A=a[0].currentPoint,k=a[1].currentPoint,F=a[1].startTangent;g=[],F?(g.push([A[0]-F[0],A[1]-F[1]]),g.push([A[0],A[1]])):(g.push([k[0],k[1]]),g.push([A[0],A[1]]))}return g},c.prototype.getEndTangent=function(){var a=this.getSegments(),g=a.length,A;if(g>1){var k=a[g-2].currentPoint,F=a[g-1].currentPoint,H=a[g-1].endTangent;A=[],H?(A.push([F[0]-H[0],F[1]-H[1]]),A.push([F[0],F[1]])):(A.push([k[0],k[1]]),A.push([F[0],F[1]]))}return A},c}(Q),_r=Cr;function S(d,c,a,g,A){var k=d.length;if(k<2)return!1;for(var F=0;F=H[0]&&a<=H[1]&&(k=(a-H[0])/(H[1]-H[0]),F=q)}),gt.x1.pointAt(g[F][0],g[F][1],g[F+1][0],g[F+1][1],k)},c.prototype._setTcache=function(){var a=this.attr().points;if(!(!a||a.length===0)){var g=this.getTotalLength();if(!(g<=0)){var A=0,k=[],F,H;(0,G.each)(a,function(q,Et){a[Et+1]&&(F=[],F[0]=A/g,H=gt.x1.length(q[0],q[1],a[Et+1][0],a[Et+1][1]),A+=H,F[1]=A/g,k.push(F))}),this.set("tCache",k)}}},c.prototype.getStartTangent=function(){var a=this.attr().points,g=[];return g.push([a[1][0],a[1][1]]),g.push([a[0][0],a[0][1]]),g},c.prototype.getEndTangent=function(){var a=this.attr().points,g=a.length-1,A=[];return A.push([a[g-1][0],a[g-1][1]]),A.push([a[g][0],a[g][1]]),A},c}(Q),At=j,Nt=V(38425);function Zt(d,c,a,g,A,k,F){var H=A/2;return(0,lt.mh)(d-H,c-H,a,A,k,F)||(0,lt.mh)(d+a-H,c-H,A,g,k,F)||(0,lt.mh)(d+H,c+g-H,a,A,k,F)||(0,lt.mh)(d-H,c+H,A,g,k,F)}function Xt(d,c,a,g,A,k,F,H){var q=k/2;return ht(d+A,c,d+a-A,c,k,F,H)||ht(d+a,c+A,d+a,c+g-A,k,F,H)||ht(d+a-A,c+g,d+A,c+g,k,F,H)||ht(d,c+g-A,d,c+A,k,F,H)||$t(d+a-A,c+A,A,1.5*Math.PI,2*Math.PI,k,F,H)||$t(d+a-A,c+g-A,A,0,.5*Math.PI,k,F,H)||$t(d+A,c+g-A,A,.5*Math.PI,Math.PI,k,F,H)||$t(d+A,c+A,A,Math.PI,1.5*Math.PI,k,F,H)}var pr=function(d){(0,C.__extends)(c,d);function c(){return d!==null&&d.apply(this,arguments)||this}return c.prototype.getDefaultAttrs=function(){var a=d.prototype.getDefaultAttrs.call(this);return(0,C.__assign)((0,C.__assign)({},a),{x:0,y:0,width:0,height:0,radius:0})},c.prototype.isInStrokeOrPath=function(a,g,A,k,F){var H=this.attr(),q=H.x,Et=H.y,Mt=H.width,Rt=H.height,Gt=H.radius;if(Gt){var Jt=!1;return A&&(Jt=Xt(q,Et,Mt,Rt,Gt,F,a,g)),!Jt&&k&&(Jt=Ot(this,a,g)),Jt}else{var Vt=F/2;if(k&&A)return(0,lt.mh)(q-Vt,Et-Vt,Mt+Vt,Rt+Vt,a,g);if(k)return(0,lt.mh)(q,Et,Mt,Rt,a,g);if(A)return Zt(q,Et,Mt,Rt,F,a,g)}},c.prototype.createPath=function(a){var g=this.attr(),A=g.x,k=g.y,F=g.width,H=g.height,q=g.radius;if(a.beginPath(),q===0)a.rect(A,k,F,H);else{var Et=(0,Nt.Fy)(q),Mt=Et[0],Rt=Et[1],Gt=Et[2],Vt=Et[3];a.moveTo(A+Mt,k),a.lineTo(A+F-Rt,k),Rt!==0&&a.arc(A+F-Rt,k+Rt,Rt,-Math.PI/2,0),a.lineTo(A+F,k+H-Gt),Gt!==0&&a.arc(A+F-Gt,k+H-Gt,Gt,0,Math.PI/2),a.lineTo(A+Vt,k+H),Vt!==0&&a.arc(A+Vt,k+H-Vt,Vt,Math.PI/2,Math.PI),a.lineTo(A,k+Mt),Mt!==0&&a.arc(A+Mt,k+Mt,Mt,Math.PI,Math.PI*1.5),a.closePath()}},c}(Q),Ir=pr,Yr=function(d){(0,C.__extends)(c,d);function c(){return d!==null&&d.apply(this,arguments)||this}return c.prototype.getDefaultAttrs=function(){var a=d.prototype.getDefaultAttrs.call(this);return(0,C.__assign)((0,C.__assign)({},a),{x:0,y:0,text:null,fontSize:12,fontFamily:"sans-serif",fontStyle:"normal",fontWeight:"normal",fontVariant:"normal",textAlign:"start",textBaseline:"bottom"})},c.prototype.isOnlyHitBox=function(){return!0},c.prototype.initAttrs=function(a){this._assembleFont(),a.text&&this._setText(a.text)},c.prototype._assembleFont=function(){var a=this.attrs;a.font=(0,wt.assembleFont)(a)},c.prototype._setText=function(a){var g=null;(0,lt.HD)(a)&&a.indexOf(` +`)!==-1&&(g=a.split(` +`)),this.set("textArr",g)},c.prototype.onAttrChange=function(a,g,A){d.prototype.onAttrChange.call(this,a,g,A),a.startsWith("font")&&this._assembleFont(),a==="text"&&this._setText(g)},c.prototype._getSpaceingY=function(){var a=this.attrs,g=a.lineHeight,A=a.fontSize*1;return g?g-A:A*.14},c.prototype._drawTextArr=function(a,g,A){var k=this.attrs,F=k.textBaseline,H=k.x,q=k.y,Et=k.fontSize*1,Mt=this._getSpaceingY(),Rt=(0,wt.getTextHeight)(k.text,k.fontSize,k.lineHeight),Gt;(0,lt.S6)(g,function(Vt,Jt){Gt=q+Jt*(Mt+Et)-Rt+Et,F==="middle"&&(Gt+=Rt-Et-(Rt-Et)/2),F==="top"&&(Gt+=Rt-Et),(0,lt.kK)(Vt)||(A?a.fillText(Vt,H,Gt):a.strokeText(Vt,H,Gt))})},c.prototype._drawText=function(a,g){var A=this.attr(),k=A.x,F=A.y,H=this.get("textArr");if(H)this._drawTextArr(a,H,g);else{var q=A.text;(0,lt.kK)(q)||(g?a.fillText(q,k,F):a.strokeText(q,k,F))}},c.prototype.strokeAndFill=function(a){var g=this.attrs,A=g.lineWidth,k=g.opacity,F=g.strokeOpacity,H=g.fillOpacity;this.isStroke()&&A>0&&(!(0,lt.kK)(F)&&F!==1&&(a.globalAlpha=k),this.stroke(a)),this.isFill()&&(!(0,lt.kK)(H)&&H!==1?(a.globalAlpha=H,this.fill(a),a.globalAlpha=k):this.fill(a)),this.afterDrawPath(a)},c.prototype.fill=function(a){this._drawText(a,!0)},c.prototype.stroke=function(a){this._drawText(a,!1)},c}(Q),Xr=Yr},46068:function(Tr,Yt,V){"use strict";V.d(Yt,{Z:function(){return vt}});var it=V(92793);function C(ut){return Math.sqrt(ut[0]*ut[0]+ut[1]*ut[1])}function wt(ut,W){return C(ut)*C(W)?(ut[0]*W[0]+ut[1]*W[1])/(C(ut)*C(W)):1}function lt(ut,W){return(ut[0]*W[1]1&&(Q*=Math.sqrt(z),nt*=Math.sqrt(z));var P=Q*Q*(ht*ht)+nt*nt*(gt*gt),b=P?Math.sqrt((Q*Q*(nt*nt)-P)/P):1;ct===X&&(b*=-1),isNaN(b)&&(b=0);var G=nt?b*Q*ht/nt:0,ft=Q?b*-nt*gt/Q:0,Pt=(R+D)/2+Math.cos(mt)*G-Math.sin(mt)*ft,Ut=(T+$)/2+Math.sin(mt)*G+Math.cos(mt)*ft,ar=[(gt-G)/Q,(ht-ft)/nt],xr=[(-1*gt-G)/Q,(-1*ht-ft)/nt],mr=lt([1,0],ar),ir=lt(ar,xr);return wt(ar,xr)<=-1&&(ir=Math.PI),wt(ar,xr)>=1&&(ir=0),X===0&&ir>0&&(ir=ir-2*Math.PI),X===1&&ir<0&&(ir=ir+2*Math.PI),{cx:Pt,cy:Ut,rx:(0,it.CF)(ut,[D,$])?0:Q,ry:(0,it.CF)(ut,[D,$])?0:nt,startAngle:mr,endAngle:mr+ir,xRotation:mt,arcFlag:ct,sweepFlag:X}}},55922:function(Tr,Yt,V){"use strict";V.d(Yt,{jF:function(){return nt},Yf:function(){return mt},YR:function(){return ct}});var it=V(65353),C=V(31013),wt=Math.sin,lt=Math.cos,vt=Math.atan2,ut=Math.PI;function W(X,R,T,D,$,gt,ht){var z=R.stroke,P=R.lineWidth,b=T-$,G=D-gt,ft=vt(G,b),Pt=new C.Path({type:"path",canvas:X.get("canvas"),isArrowShape:!0,attrs:{path:"M"+10*lt(ut/6)+","+10*wt(ut/6)+" L0,0 L"+10*lt(ut/6)+",-"+10*wt(ut/6),stroke:z,lineWidth:P}});Pt.translate($,gt),Pt.rotateAtPoint($,gt,ft),X.set(ht?"startArrowShape":"endArrowShape",Pt)}function Q(X,R,T,D,$,gt,ht){var z=R.startArrow,P=R.endArrow,b=R.stroke,G=R.lineWidth,ft=ht?z:P,Pt=ft.d,Ut=ft.fill,ar=ft.stroke,xr=ft.lineWidth,mr=(0,it.__rest)(ft,["d","fill","stroke","lineWidth"]),ir=T-$,lr=D-gt,hr=vt(lr,ir);Pt&&($=$-lt(hr)*Pt,gt=gt-wt(hr)*Pt);var gr=new C.Path({type:"path",canvas:X.get("canvas"),isArrowShape:!0,attrs:(0,it.__assign)((0,it.__assign)({},mr),{stroke:ar||b,lineWidth:xr||G,fill:Ut})});gr.translate($,gt),gr.rotateAtPoint($,gt,hr),X.set(ht?"startArrowShape":"endArrowShape",gr)}function nt(X,R,T,D,$){var gt=vt(D-R,T-X);return{dx:lt(gt)*$,dy:wt(gt)*$}}function mt(X,R,T,D,$,gt){typeof R.startArrow=="object"?Q(X,R,T,D,$,gt,!0):R.startArrow?W(X,R,T,D,$,gt,!0):X.set("startArrowShape",null)}function ct(X,R,T,D,$,gt){typeof R.endArrow=="object"?Q(X,R,T,D,$,gt,!1):R.endArrow?W(X,R,T,D,$,gt,!1):X.set("startArrowShape",null)}},23645:function(Tr,Yt,V){"use strict";V.d(Yt,{DE:function(){return W},NX:function(){return Q},kU:function(){return nt},sT:function(){return ct},MC:function(){return T},md:function(){return D},tJ:function(){return gt},T2:function(){return ht}});var it=V(49242),C=V(38425),wt=V(46068),lt=V(92793),vt=V(55922),ut={fill:"fillStyle",stroke:"strokeStyle",opacity:"globalAlpha"};function W(z,P){var b=P.attr();for(var G in b){var ft=b[G],Pt=ut[G]?ut[G]:G;Pt==="matrix"&&ft?z.transform(ft[0],ft[1],ft[3],ft[4],ft[6],ft[7]):Pt==="lineDash"&&z.setLineDash?(0,it.isArray)(ft)&&z.setLineDash(ft):(Pt==="strokeStyle"||Pt==="fillStyle"?ft=(0,C.QK)(z,P,ft):Pt==="globalAlpha"&&(ft=ft*z.globalAlpha),z[Pt]=ft)}}function Q(z,P,b){for(var G=0;Gm?l:m,u=l>m?1:l/m,r=l>m?m/l:1;P.translate(U,K),P.rotate(Z),P.scale(u,r),P.arc(0,0,y,O,E,1-J),P.scale(1/u,1/r),P.rotate(-Z),P.translate(-U,-K)}break}case"Z":P.closePath();break;default:break}if(hr==="Z")ar=xr;else{var t=lr.length;ar=[lr[t-2],lr[t-1]]}}}}function D(z,P){var b=z.get("canvas");b&&(P==="remove"&&(z._cacheCanvasBBox=z.get("cacheCanvasBBox")),z.get("hasChanged")||(z.set("hasChanged",!0),z.cfg.parent&&z.cfg.parent.get("hasChanged")||(b.refreshElement(z,P,b),b.get("autoDraw")&&b.draw())))}function $(z){var P;if(z.destroyed)P=z._cacheCanvasBBox;else{var b=z.get("cacheCanvasBBox"),G=b&&!!(b.width&&b.height),ft=z.getCanvasBBox(),Pt=ft&&!!(ft.width&&ft.height);G&&Pt?P=(0,lt.Me)(b,ft):G?P=b:Pt&&(P=ft)}return P}function gt(z){if(!z.length)return null;var P=[],b=[],G=[],ft=[];return(0,it.each)(z,function(Pt){var Ut=$(Pt);Ut&&(P.push(Ut.minX),b.push(Ut.minY),G.push(Ut.maxX),ft.push(Ut.maxY))}),{minX:(0,it.min)(P),minY:(0,it.min)(b),maxX:(0,it.max)(G),maxY:(0,it.max)(ft)}}function ht(z,P){return!z||!P||!(0,lt.qb)(z,P)?null:{minX:Math.max(z.minX,P.minX),minY:Math.max(z.minY,P.minY),maxX:Math.min(z.maxX,P.maxX),maxY:Math.min(z.maxY,P.maxY)}}},38425:function(Tr,Yt,V){"use strict";V.d(Yt,{QK:function(){return mt},Fy:function(){return ct}});var it=V(92793),C=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,wt=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,lt=/^p\s*\(\s*([axyn])\s*\)\s*(.*)/i,vt=/[\d.]+:(#[^\s]+|[^\)]+\))/gi;function ut(X,R){var T=X.match(vt);(0,it.S6)(T,function(D){var $=D.split(":");R.addColorStop($[0],$[1])})}function W(X,R,T){var D=C.exec(T),$=parseFloat(D[1])%360*(Math.PI/180),gt=D[2],ht=R.getBBox(),z,P;$>=0&&$<1/2*Math.PI?(z={x:ht.minX,y:ht.minY},P={x:ht.maxX,y:ht.maxY}):1/2*Math.PI<=$&&$=Q&&X<=Q+mt&&R>=nt&&R<=nt+ct}function vt(Q,nt){return!(nt.minX>Q.maxX||nt.maxXQ.maxY||nt.maxYs?wt(r,t,i,n):this.pointToLine(y,u,r,t,i,n)},pointToLine:function(y,u,r,t,i,n){var e=[r-y,t-u];if(Q.exactEquals(e,[0,0]))return Math.sqrt((i-y)*(i-y)+(n-u)*(n-u));var s=[-e[1],e[0]];Q.normalize(s,s);var h=[i-y,n-u];return Math.abs(Q.dot(h,s))},tangentAngle:function(y,u,r,t){return Math.atan2(t-u,r-y)}},mt=1e-4;function ct(y,u,r,t,i,n){var e,s=Infinity,h=[r,t],w=20;n&&n>200&&(w=n/10);for(var ot=1/w,dt=ot/10,Lt=0;Lt<=w;Lt++){var It=Lt*ot,Dt=[i.apply(null,y.concat([It])),i.apply(null,u.concat([It]))],Ht=wt(h[0],h[1],Dt[0],Dt[1]);Ht=0&&Ht=0?[i]:[]}function D(y,u,r,t){return 2*(1-t)*(u-y)+2*t*(r-u)}function $(y,u,r,t,i,n,e){var s=R(y,r,i,e),h=R(u,t,n,e),w=nt.pointAt(y,u,r,t,e),ot=nt.pointAt(r,t,i,n,e);return[[y,u,w.x,w.y,s,h],[s,h,ot.x,ot.y,i,n]]}function gt(y,u,r,t,i,n,e){if(e===0)return(wt(y,u,r,t)+wt(r,t,i,n)+wt(y,u,i,n))/2;var s=$(y,u,r,t,i,n,.5),h=s[0],w=s[1];return h.push(e-1),w.push(e-1),gt.apply(null,h)+gt.apply(null,w)}var ht={box:function(y,u,r,t,i,n){var e=T(y,r,i)[0],s=T(u,t,n)[0],h=[y,i],w=[u,n];return e!==void 0&&h.push(R(y,r,i,e)),s!==void 0&&w.push(R(u,t,n,s)),vt(h,w)},length:function(y,u,r,t,i,n){return gt(y,u,r,t,i,n,3)},nearestPoint:function(y,u,r,t,i,n,e,s){return ct([y,r,i],[u,t,n],e,s,R)},pointDistance:function(y,u,r,t,i,n,e,s){var h=this.nearestPoint(y,u,r,t,i,n,e,s);return wt(h.x,h.y,e,s)},interpolationAt:R,pointAt:function(y,u,r,t,i,n,e){return{x:R(y,r,i,e),y:R(u,t,n,e)}},divide:function(y,u,r,t,i,n,e){return $(y,u,r,t,i,n,e)},tangentAngle:function(y,u,r,t,i,n,e){var s=D(y,r,i,e),h=D(u,t,n,e),w=Math.atan2(h,s);return W(w)}};function z(y,u,r,t,i){var n=1-i;return n*n*n*y+3*u*i*n*n+3*r*i*i*n+t*i*i*i}function P(y,u,r,t,i){var n=1-i;return 3*(n*n*(u-y)+2*n*i*(r-u)+i*i*(t-r))}function b(y,u,r,t){var i=-3*y+9*u-9*r+3*t,n=6*y-12*u+6*r,e=3*u-3*y,s=[],h,w,ot;if(lt(i,0))lt(n,0)||(h=-e/n,h>=0&&h<=1&&s.push(h));else{var dt=n*n-4*i*e;lt(dt,0)?s.push(-n/(2*i)):dt>0&&(ot=Math.sqrt(dt),h=(-n+ot)/(2*i),w=(-n-ot)/(2*i),h>=0&&h<=1&&s.push(h),w>=0&&w<=1&&s.push(w))}return s}function G(y,u,r,t,i,n,e,s,h){var w=z(y,r,i,e,h),ot=z(u,t,n,s,h),dt=nt.pointAt(y,u,r,t,h),Lt=nt.pointAt(r,t,i,n,h),It=nt.pointAt(i,n,e,s,h),Dt=nt.pointAt(dt.x,dt.y,Lt.x,Lt.y,h),Ht=nt.pointAt(Lt.x,Lt.y,It.x,It.y,h);return[[y,u,dt.x,dt.y,Dt.x,Dt.y,w,ot],[w,ot,Ht.x,Ht.y,It.x,It.y,e,s]]}function ft(y,u,r,t,i,n,e,s,h){if(h===0)return X([y,r,i,e],[u,t,n,s]);var w=G(y,u,r,t,i,n,e,s,.5),ot=w[0],dt=w[1];return ot.push(h-1),dt.push(h-1),ft.apply(null,ot)+ft.apply(null,dt)}var Pt={extrema:b,box:function(y,u,r,t,i,n,e,s){for(var h=[y,e],w=[u,s],ot=b(y,r,i,e),dt=b(u,t,n,s),Lt=0;Lt0?r:r*-1}var ar={box:function(y,u,r,t){return{x:y-r,y:u-t,width:r*2,height:t*2}},length:function(y,u,r,t){return Math.PI*(3*(r+t)-Math.sqrt((3*r+t)*(r+3*t)))},nearestPoint:function(y,u,r,t,i,n){var e=r,s=t;if(e===0||s===0)return{x:y,y:u};for(var h=i-y,w=n-u,ot=Math.abs(h),dt=Math.abs(w),Lt=e*e,It=s*s,Dt=Math.PI/4,Ht,fr,cr=0;cr<4;cr++){Ht=e*Math.cos(Dt),fr=s*Math.sin(Dt);var Dr=(Lt-It)*Math.pow(Math.cos(Dt),3)/e,Or=(It-Lt)*Math.pow(Math.sin(Dt),3)/s,Hr=Ht-Dr,Wr=fr-Or,Y=ot-Dr,L=dt-Or,tt=Math.hypot(Wr,Hr),st=Math.hypot(L,Y),Ct=tt*Math.asin((Hr*L-Wr*Y)/(tt*st)),Tt=Ct/Math.sqrt(Lt+It-Ht*Ht-fr*fr);Dt+=Tt,Dt=Math.min(Math.PI/2,Math.max(0,Dt))}return{x:y+Ut(Ht,h),y:u+Ut(fr,w)}},pointDistance:function(y,u,r,t,i,n){var e=this.nearestPoint(y,u,r,t,i,n);return wt(e.x,e.y,i,n)},pointAt:function(y,u,r,t,i){var n=2*Math.PI*i;return{x:y+r*Math.cos(n),y:u+t*Math.sin(n)}},tangentAngle:function(y,u,r,t,i){var n=2*Math.PI*i,e=Math.atan2(t*Math.cos(n),-r*Math.sin(n));return W(e)}};function xr(y,u,r,t,i,n,e,s){return-1*r*Math.cos(i)*Math.sin(s)-t*Math.sin(i)*Math.cos(s)}function mr(y,u,r,t,i,n,e,s){return-1*r*Math.sin(i)*Math.sin(s)+t*Math.cos(i)*Math.cos(s)}function ir(y,u,r){return Math.atan(-u/y*Math.tan(r))}function lr(y,u,r){return Math.atan(u/(y*Math.tan(r)))}function hr(y,u,r,t,i,n){return r*Math.cos(i)*Math.cos(n)-t*Math.sin(i)*Math.sin(n)+y}function gr(y,u,r,t,i,n){return r*Math.sin(i)*Math.cos(n)+t*Math.cos(i)*Math.sin(n)+u}function rr(y,u,r,t){var i=Math.atan2(t*y,r*u);return(i+Math.PI*2)%(Math.PI*2)}function f(y,u,r){return{x:y*Math.cos(r),y:u*Math.sin(r)}}function o(y,u,r){var t=Math.cos(r),i=Math.sin(r);return[y*t-u*i,y*i+u*t]}var x={box:function(y,u,r,t,i,n,e){for(var s=ir(r,t,i),h=Infinity,w=-Infinity,ot=[n,e],dt=-Math.PI*2;dt<=Math.PI*2;dt+=Math.PI){var Lt=s+dt;nw&&(w=It)}for(var Dt=lr(r,t,i),Ht=Infinity,fr=-Infinity,cr=[n,e],dt=-Math.PI*2;dt<=Math.PI*2;dt+=Math.PI){var Dr=Dt+dt;nfr&&(fr=Or)}return{x:h,y:Ht,width:w-h,height:fr-Ht}},length:function(y,u,r,t,i,n,e){},nearestPoint:function(y,u,r,t,i,n,e,s,h){var w=o(s-y,h-u,-i),ot=w[0],dt=w[1],Lt=ar.nearestPoint(0,0,r,t,ot,dt),It=rr(r,t,Lt.x,Lt.y);Ite&&(Lt=f(r,t,e));var Dt=o(Lt.x,Lt.y,i);return{x:Dt[0]+y,y:Dt[1]+u}},pointDistance:function(y,u,r,t,i,n,e,s,h){var w=this.nearestPoint(y,u,r,t,s,h);return wt(w.x,w.y,s,h)},pointAt:function(y,u,r,t,i,n,e,s){var h=(e-n)*s+n;return{x:hr(y,u,r,t,i,h),y:gr(y,u,r,t,i,h)}},tangentAngle:function(y,u,r,t,i,n,e,s){var h=(e-n)*s+n,w=xr(y,u,r,t,i,n,e,h),ot=mr(y,u,r,t,i,n,e,h);return W(Math.atan2(ot,w))}};function U(y){for(var u=0,r=[],t=0;t1||u<0||y.length<2)return null;var r=U(y),t=r.segments,i=r.totalLength;if(i===0)return{x:y[0][0],y:y[0][1]};for(var n=0,e=null,s=0;s=n&&u<=n+dt){var Lt=(u-n)/dt;e=nt.pointAt(w[0],w[1],ot[0],ot[1],Lt);break}n+=dt}return e}function m(y,u){if(u>1||u<0||y.length<2)return 0;for(var r=U(y),t=r.segments,i=r.totalLength,n=0,e=0,s=0;s=n&&u<=n+dt){e=Math.atan2(ot[1]-w[1],ot[0]-w[0]);break}n+=dt}return e}function O(y,u,r){for(var t=Infinity,i=0;i'}),o}function T(rr,f){var o=mt.exec(rr),x=(0,nt.mod)((0,nt.toRadian)(parseFloat(o[1])),Math.PI*2),U=o[2],K,l;x>=0&&x<.5*Math.PI?(K={x:0,y:0},l={x:1,y:1}):.5*Math.PI<=x&&x`;o.innerHTML=x},rr}(),b=P,G=function(){function rr(f,o){this.cfg={};var x=(0,ut.rS)("marker"),U=(0,nt.uniqueId)("marker_");x.setAttribute("id",U);var K=(0,ut.rS)("path");K.setAttribute("stroke",f.stroke||"none"),K.setAttribute("fill",f.fill||"none"),x.appendChild(K),x.setAttribute("overflow","visible"),x.setAttribute("orient","auto-start-reverse"),this.el=x,this.child=K,this.id=U;var l=f[o==="marker-start"?"startArrow":"endArrow"];return this.stroke=f.stroke||"#000",l===!0?this._setDefaultPath(o,K):(this.cfg=l,this._setMarker(f.lineWidth,K)),this}return rr.prototype.match=function(){return!1},rr.prototype._setDefaultPath=function(f,o){var x=this.el;o.setAttribute("d","M0,0 L"+10*Math.cos(Math.PI/6)+",5 L0,10"),x.setAttribute("refX",""+10*Math.cos(Math.PI/6)),x.setAttribute("refY",""+5)},rr.prototype._setMarker=function(f,o){var x=this.el,U=this.cfg.path,K=this.cfg.d;(0,nt.isArray)(U)&&(U=U.map(function(l){return l.join(" ")}).join("")),o.setAttribute("d",U),x.appendChild(o),K&&x.setAttribute("refX",""+K/f)},rr.prototype.update=function(f){var o=this.child;o.attr?o.attr("fill",f):o.setAttribute("fill",f)},rr}(),ft=G,Pt=function(){function rr(f){this.type="clip",this.cfg={};var o=(0,ut.rS)("clipPath");this.el=o,this.id=(0,nt.uniqueId)("clip_"),o.id=this.id;var x=f.cfg.el;return o.appendChild(x),this.cfg=f,this}return rr.prototype.match=function(){return!1},rr.prototype.remove=function(){var f=this.el;f.parentNode.removeChild(f)},rr}(),Ut=Pt,ar=/^p\s*\(\s*([axyn])\s*\)\s*(.*)/i,xr=function(){function rr(f){this.cfg={};var o=(0,ut.rS)("pattern");o.setAttribute("patternUnits","userSpaceOnUse");var x=(0,ut.rS)("image");o.appendChild(x);var U=(0,nt.uniqueId)("pattern_");o.id=U,this.el=o,this.id=U,this.cfg=f;var K=ar.exec(f),l=K[2];x.setAttribute("href",l);var m=new Image;l.match(/^data:/i)||(m.crossOrigin="Anonymous"),m.src=l;function O(){o.setAttribute("width",""+m.width),o.setAttribute("height",""+m.height)}return m.complete?O():(m.onload=O,m.src=m.src),this}return rr.prototype.match=function(f,o){return this.cfg===o},rr}(),mr=xr,ir=function(){function rr(f){var o=(0,ut.rS)("defs"),x=(0,nt.uniqueId)("defs_");o.id=x,f.appendChild(o),this.children=[],this.defaultArrow={},this.el=o,this.canvas=f}return rr.prototype.find=function(f,o){for(var x=this.children,U=null,K=0;K0&&(i?"stroke"in n?this._setColor(t,"stroke",h):"strokeStyle"in n&&this._setColor(t,"stroke",w):this._setColor(t,"stroke",h||w),dt&&It.setAttribute(W.A8.strokeOpacity,dt),Lt&&It.setAttribute(W.A8.lineWidth,Lt))},r.prototype._setColor=function(t,i,n){var e=this.get("el");if(!n){e.setAttribute(W.A8[i],"none");return}if(n=n.trim(),/^[r,R,L,l]{1}[\s]*\(/.test(n)){var s=t.find("gradient",n);s||(s=t.addGradient(n)),e.setAttribute(W.A8[i],"url(#"+s+")")}else if(/^[p,P]{1}[\s]*\(/.test(n)){var s=t.find("pattern",n);s||(s=t.addPattern(n)),e.setAttribute(W.A8[i],"url(#"+s+")")}else e.setAttribute(W.A8[i],n)},r.prototype.shadow=function(t,i){var n=this.attr(),e=i||n,s=e.shadowOffsetX,h=e.shadowOffsetY,w=e.shadowBlur,ot=e.shadowColor;(s||h||w||ot)&&(0,lt.kr)(this,t)},r.prototype.transform=function(t){var i=this.attr(),n=(t||i).matrix;n&&(0,lt.B2)(this)},r.prototype.isInShape=function(t,i){return this.isPointInPath(t,i)},r.prototype.isPointInPath=function(t,i){var n=this.get("el"),e=this.get("canvas"),s=e.get("el").getBoundingClientRect(),h=t+s.left,w=i+s.top,ot=document.elementFromPoint(h,w);return!!(ot&&ot.isEqualNode(n))},r.prototype.getHitLineWidth=function(){var t=this.attrs,i=t.lineWidth,n=t.lineAppendWidth;return this.isStroke()?i+n:0},r}(wt.AbstractShape),mt=nt,ct=V(49242),X=function(u){(0,C.__extends)(r,u);function r(){var t=u!==null&&u.apply(this,arguments)||this;return t.type="circle",t.canFill=!0,t.canStroke=!0,t}return r.prototype.getDefaultAttrs=function(){var t=u.prototype.getDefaultAttrs.call(this);return(0,C.__assign)((0,C.__assign)({},t),{x:0,y:0,r:0})},r.prototype.createPath=function(t,i){var n=this.attr(),e=this.get("el");(0,ct.each)(i||n,function(s,h){h==="x"||h==="y"?e.setAttribute("c"+h,s):W.A8[h]&&e.setAttribute(W.A8[h],s)})},r}(mt),R=X,T=function(u){(0,C.__extends)(r,u);function r(){var t=u!==null&&u.apply(this,arguments)||this;return t.type="dom",t.canFill=!1,t.canStroke=!1,t}return r.prototype.createPath=function(t,i){var n=this.attr(),e=this.get("el");if((0,ct.each)(i||n,function(ot,dt){W.A8[dt]&&e.setAttribute(W.A8[dt],ot)}),typeof n.html=="function"){var s=n.html.call(this,n);if(s instanceof Element||s instanceof HTMLDocument){for(var h=e.childNodes,w=h.length-1;w>=0;w--)e.removeChild(h[w]);e.appendChild(s)}else e.innerHTML=s}else e.innerHTML=n.html},r}(mt),D=T,$=function(u){(0,C.__extends)(r,u);function r(){var t=u!==null&&u.apply(this,arguments)||this;return t.type="ellipse",t.canFill=!0,t.canStroke=!0,t}return r.prototype.getDefaultAttrs=function(){var t=u.prototype.getDefaultAttrs.call(this);return(0,C.__assign)((0,C.__assign)({},t),{x:0,y:0,rx:0,ry:0})},r.prototype.createPath=function(t,i){var n=this.attr(),e=this.get("el");(0,ct.each)(i||n,function(s,h){h==="x"||h==="y"?e.setAttribute("c"+h,s):W.A8[h]&&e.setAttribute(W.A8[h],s)})},r}(mt),gt=$,ht=function(u){(0,C.__extends)(r,u);function r(){var t=u!==null&&u.apply(this,arguments)||this;return t.type="image",t.canFill=!1,t.canStroke=!1,t}return r.prototype.getDefaultAttrs=function(){var t=u.prototype.getDefaultAttrs.call(this);return(0,C.__assign)((0,C.__assign)({},t),{x:0,y:0,width:0,height:0})},r.prototype.createPath=function(t,i){var n=this,e=this.attr(),s=this.get("el");(0,ct.each)(i||e,function(h,w){w==="img"?n._setImage(e.img):W.A8[w]&&s.setAttribute(W.A8[w],h)})},r.prototype.setAttr=function(t,i){this.attrs[t]=i,t==="img"&&this._setImage(i)},r.prototype._setImage=function(t){var i=this.attr(),n=this.get("el");if((0,ct.isString)(t))n.setAttribute("href",t);else if(t instanceof window.Image)i.width||(n.setAttribute("width",t.width),this.attr("width",t.width)),i.height||(n.setAttribute("height",t.height),this.attr("height",t.height)),n.setAttribute("href",t.src);else if(t instanceof HTMLElement&&(0,ct.isString)(t.nodeName)&&t.nodeName.toUpperCase()==="CANVAS")n.setAttribute("href",t.toDataURL());else if(t instanceof ImageData){var e=document.createElement("canvas");e.setAttribute("width",""+t.width),e.setAttribute("height",""+t.height),e.getContext("2d").putImageData(t,0,0),i.width||(n.setAttribute("width",""+t.width),this.attr("width",t.width)),i.height||(n.setAttribute("height",""+t.height),this.attr("height",t.height)),n.setAttribute("href",e.toDataURL())}},r}(mt),z=ht,P=V(89838),b=function(u){(0,C.__extends)(r,u);function r(){var t=u!==null&&u.apply(this,arguments)||this;return t.type="line",t.canFill=!1,t.canStroke=!0,t}return r.prototype.getDefaultAttrs=function(){var t=u.prototype.getDefaultAttrs.call(this);return(0,C.__assign)((0,C.__assign)({},t),{x1:0,y1:0,x2:0,y2:0,startArrow:!1,endArrow:!1})},r.prototype.createPath=function(t,i){var n=this.attr(),e=this.get("el");(0,ct.each)(i||n,function(s,h){if(h==="startArrow"||h==="endArrow")if(s){var w=(0,ct.isObject)(s)?t.addArrow(n,W.A8[h]):t.getDefaultArrow(n,W.A8[h]);e.setAttribute(W.A8[h],"url(#"+w+")")}else e.removeAttribute(W.A8[h]);else W.A8[h]&&e.setAttribute(W.A8[h],s)})},r.prototype.getTotalLength=function(){var t=this.attr(),i=t.x1,n=t.y1,e=t.x2,s=t.y2;return P.x1.length(i,n,e,s)},r.prototype.getPoint=function(t){var i=this.attr(),n=i.x1,e=i.y1,s=i.x2,h=i.y2;return P.x1.pointAt(n,e,s,h,t)},r}(mt),G=b,ft={circle:function(u,r,t){return[["M",u,r],["m",-t,0],["a",t,t,0,1,0,t*2,0],["a",t,t,0,1,0,-t*2,0]]},square:function(u,r,t){return[["M",u-t,r-t],["L",u+t,r-t],["L",u+t,r+t],["L",u-t,r+t],["Z"]]},diamond:function(u,r,t){return[["M",u-t,r],["L",u,r-t],["L",u+t,r],["L",u,r+t],["Z"]]},triangle:function(u,r,t){var i=t*Math.sin(1/3*Math.PI);return[["M",u-t,r+i],["L",u,r-i],["L",u+t,r+i],["z"]]},triangleDown:function(u,r,t){var i=t*Math.sin(1/3*Math.PI);return[["M",u-t,r-i],["L",u+t,r-i],["L",u,r+i],["Z"]]}},Pt={get:function(u){return ft[u]},register:function(u,r){ft[u]=r},remove:function(u){delete ft[u]},getAll:function(){return ft}},Ut=function(u){(0,C.__extends)(r,u);function r(){var t=u!==null&&u.apply(this,arguments)||this;return t.type="marker",t.canFill=!0,t.canStroke=!0,t}return r.prototype.createPath=function(t){var i=this.get("el");i.setAttribute("d",this._assembleMarker())},r.prototype._assembleMarker=function(){var t=this._getPath();return(0,ct.isArray)(t)?t.map(function(i){return i.join(" ")}).join(""):t},r.prototype._getPath=function(){var t=this.attr(),i=t.x,n=t.y,e=t.r||t.radius,s=t.symbol||"circle",h;return(0,ct.isFunction)(s)?h=s:h=Pt.get(s),h?h(i,n,e):(console.warn(h+" symbol is not exist."),null)},r.symbolsFactory=Pt,r}(mt),ar=Ut,xr=function(u){(0,C.__extends)(r,u);function r(){var t=u!==null&&u.apply(this,arguments)||this;return t.type="path",t.canFill=!0,t.canStroke=!0,t}return r.prototype.getDefaultAttrs=function(){var t=u.prototype.getDefaultAttrs.call(this);return(0,C.__assign)((0,C.__assign)({},t),{startArrow:!1,endArrow:!1})},r.prototype.createPath=function(t,i){var n=this,e=this.attr(),s=this.get("el");(0,ct.each)(i||e,function(h,w){if(w==="path"&&(0,ct.isArray)(h))s.setAttribute("d",n._formatPath(h));else if(w==="startArrow"||w==="endArrow")if(h){var ot=(0,ct.isObject)(h)?t.addArrow(e,W.A8[w]):t.getDefaultArrow(e,W.A8[w]);s.setAttribute(W.A8[w],"url(#"+ot+")")}else s.removeAttribute(W.A8[w]);else W.A8[w]&&s.setAttribute(W.A8[w],h)})},r.prototype._formatPath=function(t){var i=t.map(function(n){return n.join(" ")}).join("");return~i.indexOf("NaN")?"":i},r.prototype.getTotalLength=function(){var t=this.get("el");return t?t.getTotalLength():null},r.prototype.getPoint=function(t){var i=this.get("el"),n=this.getTotalLength();if(n===0)return null;var e=i?i.getPointAtLength(t*n):null;return e?{x:e.x,y:e.y}:null},r}(mt),mr=xr,ir=function(u){(0,C.__extends)(r,u);function r(){var t=u!==null&&u.apply(this,arguments)||this;return t.type="polygon",t.canFill=!0,t.canStroke=!0,t}return r.prototype.createPath=function(t,i){var n=this.attr(),e=this.get("el");(0,ct.each)(i||n,function(s,h){h==="points"&&(0,ct.isArray)(s)&&s.length>=2?e.setAttribute("points",s.map(function(w){return w[0]+","+w[1]}).join(" ")):W.A8[h]&&e.setAttribute(W.A8[h],s)})},r}(mt),lr=ir,hr=function(u){(0,C.__extends)(r,u);function r(){var t=u!==null&&u.apply(this,arguments)||this;return t.type="polyline",t.canFill=!0,t.canStroke=!0,t}return r.prototype.getDefaultAttrs=function(){var t=u.prototype.getDefaultAttrs.call(this);return(0,C.__assign)((0,C.__assign)({},t),{startArrow:!1,endArrow:!1})},r.prototype.onAttrChange=function(t,i,n){u.prototype.onAttrChange.call(this,t,i,n),["points"].indexOf(t)!==-1&&this._resetCache()},r.prototype._resetCache=function(){this.set("totalLength",null),this.set("tCache",null)},r.prototype.createPath=function(t,i){var n=this.attr(),e=this.get("el");(0,ct.each)(i||n,function(s,h){h==="points"&&(0,ct.isArray)(s)&&s.length>=2?e.setAttribute("points",s.map(function(w){return w[0]+","+w[1]}).join(" ")):W.A8[h]&&e.setAttribute(W.A8[h],s)})},r.prototype.getTotalLength=function(){var t=this.attr().points,i=this.get("totalLength");return(0,ct.isNil)(i)?(this.set("totalLength",P.aH.length(t)),this.get("totalLength")):i},r.prototype.getPoint=function(t){var i=this.attr().points,n=this.get("tCache");n||(this._setTcache(),n=this.get("tCache"));var e,s;return(0,ct.each)(n,function(h,w){t>=h[0]&&t<=h[1]&&(e=(t-h[0])/(h[1]-h[0]),s=w)}),P.x1.pointAt(i[s][0],i[s][1],i[s+1][0],i[s+1][1],e)},r.prototype._setTcache=function(){var t=this.attr().points;if(!(!t||t.length===0)){var i=this.getTotalLength();if(!(i<=0)){var n=0,e=[],s,h;(0,ct.each)(t,function(w,ot){t[ot+1]&&(s=[],s[0]=n/i,h=P.x1.length(w[0],w[1],t[ot+1][0],t[ot+1][1]),n+=h,s[1]=n/i,e.push(s))}),this.set("tCache",e)}}},r.prototype.getStartTangent=function(){var t=this.attr().points,i=[];return i.push([t[1][0],t[1][1]]),i.push([t[0][0],t[0][1]]),i},r.prototype.getEndTangent=function(){var t=this.attr().points,i=t.length-1,n=[];return n.push([t[i-1][0],t[i-1][1]]),n.push([t[i][0],t[i][1]]),n},r}(mt),gr=hr,rr=/[MLHVQTCSAZ]([^MLHVQTCSAZ]*)/gi,f=/[^\s,]+/gi;function o(u){var r=0,t=0,i=0,n=0;return(0,ct.isArray)(u)?u.length===1?r=t=i=n=u[0]:u.length===2?(r=i=u[0],t=n=u[1]):u.length===3?(r=u[0],t=n=u[1],i=u[2]):(r=u[0],t=u[1],i=u[2],n=u[3]):r=t=i=n=u,{r1:r,r2:t,r3:i,r4:n}}function x(u){if(u=u||[],isArray(u))return u;if(isString(u))return u=u.match(rr),each(u,function(r,t){if(r=r.match(f),r[0].length>1){var i=r[0].charAt(0);r.splice(1,0,r[0].substr(1)),r[0]=i}each(r,function(n,e){isNaN(n)||(r[e]=+n)}),u[t]=r}),u}var U=function(u){(0,C.__extends)(r,u);function r(){var t=u!==null&&u.apply(this,arguments)||this;return t.type="rect",t.canFill=!0,t.canStroke=!0,t}return r.prototype.getDefaultAttrs=function(){var t=u.prototype.getDefaultAttrs.call(this);return(0,C.__assign)((0,C.__assign)({},t),{x:0,y:0,width:0,height:0,radius:0})},r.prototype.createPath=function(t,i){var n=this,e=this.attr(),s=this.get("el"),h=!1,w=["x","y","width","height","radius"];(0,ct.each)(i||e,function(ot,dt){w.indexOf(dt)!==-1&&!h?(s.setAttribute("d",n._assembleRect(e)),h=!0):w.indexOf(dt)===-1&&W.A8[dt]&&s.setAttribute(W.A8[dt],ot)})},r.prototype._assembleRect=function(t){var i=t.x,n=t.y,e=t.width,s=t.height,h=t.radius;if(!h)return"M "+i+","+n+" l "+e+",0 l 0,"+s+" l"+-e+" 0 z";var w=o(h);(0,ct.isArray)(h)?h.length===1?w.r1=w.r2=w.r3=w.r4=h[0]:h.length===2?(w.r1=w.r3=h[0],w.r2=w.r4=h[1]):h.length===3?(w.r1=h[0],w.r2=w.r4=h[1],w.r3=h[2]):(w.r1=h[0],w.r2=h[1],w.r3=h[2],w.r4=h[3]):w.r1=w.r2=w.r3=w.r4=h;var ot=[["M "+(i+w.r1)+","+n],["l "+(e-w.r1-w.r2)+",0"],["a "+w.r2+","+w.r2+",0,0,1,"+w.r2+","+w.r2],["l 0,"+(s-w.r2-w.r3)],["a "+w.r3+","+w.r3+",0,0,1,"+-w.r3+","+w.r3],["l "+(w.r3+w.r4-e)+",0"],["a "+w.r4+","+w.r4+",0,0,1,"+-w.r4+","+-w.r4],["l 0,"+(w.r4+w.r1-s)],["a "+w.r1+","+w.r1+",0,0,1,"+w.r1+","+-w.r1],["z"]];return ot.join(" ")},r}(mt),K=U,l=V(43631),m=.3,O={top:"before-edge",middle:"central",bottom:"after-edge",alphabetic:"baseline",hanging:"hanging"},E={top:"text-before-edge",middle:"central",bottom:"text-after-edge",alphabetic:"alphabetic",hanging:"hanging"},Z={left:"left",start:"left",center:"middle",right:"end",end:"end"},J=function(u){(0,C.__extends)(r,u);function r(){var t=u!==null&&u.apply(this,arguments)||this;return t.type="text",t.canFill=!0,t.canStroke=!0,t}return r.prototype.getDefaultAttrs=function(){var t=u.prototype.getDefaultAttrs.call(this);return(0,C.__assign)((0,C.__assign)({},t),{x:0,y:0,text:null,fontSize:12,fontFamily:"sans-serif",fontStyle:"normal",fontWeight:"normal",fontVariant:"normal",textAlign:"start",textBaseline:"bottom"})},r.prototype.createPath=function(t,i){var n=this,e=this.attr(),s=this.get("el");this._setFont(),(0,ct.each)(i||e,function(h,w){w==="text"?n._setText(""+h):w==="matrix"&&h?(0,lt.B2)(n):W.A8[w]&&s.setAttribute(W.A8[w],h)}),s.setAttribute("paint-order","stroke"),s.setAttribute("style","stroke-linecap:butt; stroke-linejoin:miter;")},r.prototype._setFont=function(){var t=this.get("el"),i=this.attr(),n=i.textBaseline,e=i.textAlign,s=(0,l.qY)();s&&s.name==="firefox"?t.setAttribute("dominant-baseline",E[n]||"alphabetic"):t.setAttribute("alignment-baseline",O[n]||"baseline"),t.setAttribute("text-anchor",Z[e]||"left")},r.prototype._setText=function(t){var i=this.get("el"),n=this.attr(),e=n.x,s=n.textBaseline,h=s===void 0?"bottom":s;if(!t)i.innerHTML="";else if(~t.indexOf(` +`)){var w=t.split(` +`),ot=w.length-1,dt="";(0,ct.each)(w,function(Lt,It){It===0?h==="alphabetic"?dt+=''+Lt+"":h==="top"?dt+=''+Lt+"":h==="middle"?dt+=''+Lt+"":h==="bottom"?dt+=''+Lt+"":h==="hanging"&&(dt+=''+Lt+""):dt+=''+Lt+""}),i.innerHTML=dt}else i.innerHTML=t},r}(mt),y=J},19372:function(Tr,Yt,V){"use strict";V.d(Yt,{rS:function(){return wt},WV:function(){return lt},ZL:function(){return vt},Ao:function(){return ut}});var it=V(49242),C=V(37486);function wt(W){return document.createElementNS("http://www.w3.org/2000/svg",W)}function lt(W){var Q=C.CX[W.type],nt=W.getParent();if(!Q)throw new Error("the type "+W.type+" is not supported by svg");var mt=wt(Q);if(W.get("id")&&(mt.id=W.get("id")),W.set("el",mt),W.set("attrs",{}),nt){var ct=nt.get("el");ct||(ct=nt.createDom(),nt.set("el",ct)),ct.appendChild(mt)}return mt}function vt(W,Q){var nt=W.get("el"),mt=(0,it.toArray)(nt.children).sort(Q),ct=document.createDocumentFragment();mt.forEach(function(X){ct.appendChild(X)}),nt.appendChild(ct)}function ut(W,Q){var nt=W.parentNode,mt=Array.from(nt.childNodes).filter(function(T){return T.nodeType===1&&T.nodeName.toLowerCase()!=="defs"}),ct=mt[Q],X=mt.indexOf(W);if(ct){if(X>Q)nt.insertBefore(W,ct);else if(X=0;return R?D?Math.PI*2-T:T:D?T:Math.PI*2-T}function mt(ct,X,R){return R?(ct[0]=X[1],ct[1]=-1*X[0]):(ct[0]=-1*X[1],ct[1]=X[0]),ct}},86429:function(Tr,Yt,V){"use strict";V.d(Yt,{WD:function(){return mt},bJ:function(){return Ht},yZ:function(){return St}});var it={};V.r(it),V.d(it,{assign:function(){return P},default:function(){return E},defaultI18n:function(){return Ut},format:function(){return l},parse:function(){return m},setGlobalDateI18n:function(){return xr},setGlobalDateMasks:function(){return K}});var C=V(49242),wt={};function lt(p){return wt[p]}function vt(p,_){wt[p]=_}var ut=function(){function p(_){this.type="base",this.isCategory=!1,this.isLinear=!1,this.isContinuous=!1,this.isIdentity=!1,this.values=[],this.range=[0,1],this.ticks=[],this.__cfg__=_,this.initCfg(),this.init()}return p.prototype.translate=function(_){return _},p.prototype.change=function(_){(0,C.assign)(this.__cfg__,_),this.init()},p.prototype.clone=function(){return this.constructor(this.__cfg__)},p.prototype.getTicks=function(){var _=this;return(0,C.map)(this.ticks,function(I,et){return(0,C.isObject)(I)?I:{text:_.getText(I,et),tickValue:I,value:_.scale(I)}})},p.prototype.getText=function(_,I){var et=this.formatter,rt=et?et(_,I):_;return(0,C.isNil)(rt)||!(0,C.isFunction)(rt.toString)?"":rt.toString()},p.prototype.getConfig=function(_){return this.__cfg__[_]},p.prototype.init=function(){(0,C.assign)(this,this.__cfg__),this.setDomain(),(0,C.isEmpty)(this.getConfig("ticks"))&&(this.ticks=this.calculateTicks())},p.prototype.initCfg=function(){},p.prototype.setDomain=function(){},p.prototype.calculateTicks=function(){var _=this.tickMethod,I=[];if((0,C.isString)(_)){var et=lt(_);if(!et)throw new Error("There is no method to to calculate ticks!");I=et(this)}else(0,C.isFunction)(_)&&(I=_(this));return I},p.prototype.rangeMin=function(){return this.range[0]},p.prototype.rangeMax=function(){return this.range[1]},p.prototype.calcPercent=function(_,I,et){return(0,C.isNumber)(_)?(_-I)/(et-I):NaN},p.prototype.calcValue=function(_,I,et){return I+_*(et-I)},p}(),W=ut,Q=V(65353),nt=function(p){(0,Q.__extends)(_,p);function _(){var I=p!==null&&p.apply(this,arguments)||this;return I.type="cat",I.isCategory=!0,I}return _.prototype.buildIndexMap=function(){if(!this.translateIndexMap){this.translateIndexMap=new Map;for(var I=0;Ithis.max?NaN:this.values[xt]},_.prototype.getText=function(I){for(var et=[],rt=1;rt1?I-1:I}this.translateIndexMap&&(this.translateIndexMap=void 0)},_}(W),mt=nt,ct=/d{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|ZZ|Z|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,X="\\d\\d?",R="\\d\\d",T="\\d{3}",D="\\d{4}",$="[^\\s]+",gt=/\[([^]*?)\]/gm;function ht(p,_){for(var I=[],et=0,rt=p.length;et-1?rt:null}};function P(p){for(var _=[],I=1;I3?0:(p-p%10!=10?1:0)*p%10]}},ar=P({},Ut),xr=function(p){return ar=P(ar,p)},mr=function(p){return p.replace(/[|\\{()[^$+*?.-]/g,"\\$&")},ir=function(p,_){for(_===void 0&&(_=2),p=String(p);p.length<_;)p="0"+p;return p},lr={D:function(p){return String(p.getDate())},DD:function(p){return ir(p.getDate())},Do:function(p,_){return _.DoFn(p.getDate())},d:function(p){return String(p.getDay())},dd:function(p){return ir(p.getDay())},ddd:function(p,_){return _.dayNamesShort[p.getDay()]},dddd:function(p,_){return _.dayNames[p.getDay()]},M:function(p){return String(p.getMonth()+1)},MM:function(p){return ir(p.getMonth()+1)},MMM:function(p,_){return _.monthNamesShort[p.getMonth()]},MMMM:function(p,_){return _.monthNames[p.getMonth()]},YY:function(p){return ir(String(p.getFullYear()),4).substr(2)},YYYY:function(p){return ir(p.getFullYear(),4)},h:function(p){return String(p.getHours()%12||12)},hh:function(p){return ir(p.getHours()%12||12)},H:function(p){return String(p.getHours())},HH:function(p){return ir(p.getHours())},m:function(p){return String(p.getMinutes())},mm:function(p){return ir(p.getMinutes())},s:function(p){return String(p.getSeconds())},ss:function(p){return ir(p.getSeconds())},S:function(p){return String(Math.round(p.getMilliseconds()/100))},SS:function(p){return ir(Math.round(p.getMilliseconds()/10),2)},SSS:function(p){return ir(p.getMilliseconds(),3)},a:function(p,_){return p.getHours()<12?_.amPm[0]:_.amPm[1]},A:function(p,_){return p.getHours()<12?_.amPm[0].toUpperCase():_.amPm[1].toUpperCase()},ZZ:function(p){var _=p.getTimezoneOffset();return(_>0?"-":"+")+ir(Math.floor(Math.abs(_)/60)*100+Math.abs(_)%60,4)},Z:function(p){var _=p.getTimezoneOffset();return(_>0?"-":"+")+ir(Math.floor(Math.abs(_)/60),2)+":"+ir(Math.abs(_)%60,2)}},hr=function(p){return+p-1},gr=[null,X],rr=[null,$],f=["isPm",$,function(p,_){var I=p.toLowerCase();return I===_.amPm[0]?0:I===_.amPm[1]?1:null}],o=["timezoneOffset","[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z?",function(p){var _=(p+"").match(/([+-]|\d\d)/gi);if(_){var I=+_[1]*60+parseInt(_[2],10);return _[0]==="+"?I:-I}return 0}],x={D:["day",X],DD:["day",R],Do:["day",X+$,function(p){return parseInt(p,10)}],M:["month",X,hr],MM:["month",R,hr],YY:["year",R,function(p){var _=new Date,I=+(""+_.getFullYear()).substr(0,2);return+(""+(+p>68?I-1:I)+p)}],h:["hour",X,void 0,"isPm"],hh:["hour",R,void 0,"isPm"],H:["hour",X],HH:["hour",R],m:["minute",X],mm:["minute",R],s:["second",X],ss:["second",R],YYYY:["year",D],S:["millisecond","\\d",function(p){return+p*100}],SS:["millisecond",R,function(p){return+p*10}],SSS:["millisecond",T],d:gr,dd:gr,ddd:rr,dddd:rr,MMM:["month",$,z("monthNamesShort")],MMMM:["month",$,z("monthNames")],a:f,A:f,ZZ:o,Z:o},U={default:"ddd MMM DD YYYY HH:mm:ss",shortDate:"M/D/YY",mediumDate:"MMM D, YYYY",longDate:"MMMM D, YYYY",fullDate:"dddd, MMMM D, YYYY",isoDate:"YYYY-MM-DD",isoDateTime:"YYYY-MM-DDTHH:mm:ssZ",shortTime:"HH:mm",mediumTime:"HH:mm:ss",longTime:"HH:mm:ss.SSS"},K=function(p){return P(U,p)},l=function(p,_,I){if(_===void 0&&(_=U.default),I===void 0&&(I={}),typeof p=="number"&&(p=new Date(p)),Object.prototype.toString.call(p)!=="[object Date]"||isNaN(p.getTime()))throw new Error("Invalid Date pass to format");_=U[_]||_;var et=[];_=_.replace(gt,function(xt,kt){return et.push(kt),"@@@"});var rt=P(P({},ar),I);return _=_.replace(ct,function(xt){return lr[xt](p,rt)}),_.replace(/@@@/g,function(){return et.shift()})};function m(p,_,I){if(I===void 0&&(I={}),typeof _!="string")throw new Error("Invalid format in fecha parse");if(_=U[_]||_,p.length>1e3)return null;var et=new Date,rt={year:et.getFullYear(),month:0,day:1,hour:0,minute:0,second:0,millisecond:0,isPm:null,timezoneOffset:null},xt=[],kt=[],Ft=_.replace(gt,function(qr,Gr){return kt.push(mr(Gr)),"@@@"}),or={},Qt={};Ft=mr(Ft).replace(ct,function(qr){var Gr=x[qr],$r=Gr[0],an=Gr[1],Vr=Gr[3];if(or[$r])throw new Error("Invalid format. "+$r+" specified twice in format");return or[$r]=!0,Vr&&(Qt[Vr]=!0),xt.push(Gr),"("+an+")"}),Object.keys(Qt).forEach(function(qr){if(!or[qr])throw new Error("Invalid format. "+qr+" is required in specified format")}),Ft=Ft.replace(/@@@/g,function(){return kt.shift()});var nr=p.match(new RegExp(Ft,"i"));if(!nr)return null;for(var Lr=P(P({},ar),I),br=1;br11||rt.month<0||rt.day>31||rt.day<1||rt.hour>23||rt.hour<0||rt.minute>59||rt.minute<0||rt.second>59||rt.second<0)return null;return Qr}var O={format:l,parse:m,defaultI18n:Ut,setGlobalDateI18n:xr,setGlobalDateMasks:K},E=O;function Z(p){return function(_,I,et,rt){for(var xt=(0,C.isNil)(et)?0:et,kt=(0,C.isNil)(rt)?_.length:rt;xt>>1;p(_[Ft])>I?kt=Ft:xt=Ft+1}return xt}}var J="format";function y(p,_){var I=it[J]||E[J];return I(p,_)}function u(p){return(0,C.isString)(p)&&(p.indexOf("T")>0?p=new Date(p).getTime():p=new Date(p.replace(/-/gi,"/")).getTime()),(0,C.isDate)(p)&&(p=p.getTime()),p}var r=1e3,t=60*r,i=60*t,n=24*i,e=n*31,s=n*365,h=[["HH:mm:ss",r],["HH:mm:ss",r*10],["HH:mm:ss",r*30],["HH:mm",t],["HH:mm",t*10],["HH:mm",t*30],["HH",i],["HH",i*6],["HH",i*12],["YYYY-MM-DD",n],["YYYY-MM-DD",n*4],["YYYY-WW",n*7],["YYYY-MM",e],["YYYY-MM",e*4],["YYYY-MM",e*6],["YYYY",n*380]];function w(p,_,I){var et=(_-p)/I,rt=Z(function(kt){return kt[1]})(h,et)-1,xt=h[rt];return rt<0?xt=h[0]:rt>=h.length&&(xt=(0,C.last)(h)),xt}var ot=function(p){(0,Q.__extends)(_,p);function _(){var I=p!==null&&p.apply(this,arguments)||this;return I.type="timeCat",I}return _.prototype.translate=function(I){I=u(I);var et=this.values.indexOf(I);return et===-1&&((0,C.isNumber)(I)&&I-1){var xt=this.values[rt],kt=this.formatter;return xt=kt?kt(xt,et):y(xt,this.mask),xt}return I},_.prototype.initCfg=function(){this.tickMethod="time-cat",this.mask="YYYY-MM-DD",this.tickCount=7},_.prototype.setDomain=function(){var I=this.values;(0,C.each)(I,function(et,rt){I[rt]=u(et)}),I.sort(function(et,rt){return et-rt}),p.prototype.setDomain.call(this)},_}(mt),dt=ot,Lt=function(p){(0,Q.__extends)(_,p);function _(){var I=p!==null&&p.apply(this,arguments)||this;return I.isContinuous=!0,I}return _.prototype.scale=function(I){if((0,C.isNil)(I))return NaN;var et=this.rangeMin(),rt=this.rangeMax(),xt=this.max,kt=this.min;if(xt===kt)return et;var Ft=this.getScalePercent(I);return et+Ft*(rt-et)},_.prototype.init=function(){p.prototype.init.call(this);var I=this.ticks,et=(0,C.head)(I),rt=(0,C.last)(I);etthis.max&&(this.max=rt),(0,C.isNil)(this.minLimit)||(this.min=et),(0,C.isNil)(this.maxLimit)||(this.max=rt)},_.prototype.setDomain=function(){var I=(0,C.getRange)(this.values),et=I.min,rt=I.max;(0,C.isNil)(this.min)&&(this.min=et),(0,C.isNil)(this.max)&&(this.max=rt),this.min>this.max&&(this.min=et,this.max=rt)},_.prototype.calculateTicks=function(){var I=this,et=p.prototype.calculateTicks.call(this);return this.nice||(et=(0,C.filter)(et,function(rt){return rt>=I.min&&rt<=I.max})),et},_.prototype.getScalePercent=function(I){var et=this.max,rt=this.min;return(I-rt)/(et-rt)},_.prototype.getInvertPercent=function(I){return(I-this.rangeMin())/(this.rangeMax()-this.rangeMin())},_}(W),It=Lt,Dt=function(p){(0,Q.__extends)(_,p);function _(){var I=p!==null&&p.apply(this,arguments)||this;return I.type="linear",I.isLinear=!0,I}return _.prototype.invert=function(I){var et=this.getInvertPercent(I);return this.min+et*(this.max-this.min)},_.prototype.initCfg=function(){this.tickMethod="wilkinson-extended",this.nice=!1},_}(It),Ht=Dt;function fr(p,_){var I=Math.E,et;return _>=0?et=Math.pow(I,Math.log(_)/p):et=Math.pow(I,Math.log(-_)/p)*-1,et}function cr(p,_){return p===1?1:Math.log(_)/Math.log(p)}function Dr(p,_,I){(0,C.isNil)(I)&&(I=Math.max.apply(null,p));var et=I;return(0,C.each)(p,function(rt){rt>0&&rt1&&(et=1),et}function Or(p){var _=p.toString().split(/[eE]/),I=(_[0].split(".")[1]||"").length-+(_[1]||0);return I>0?I:0}function Hr(p,_){var I=Or(p),et=Or(_),rt=Math.pow(10,Math.max(I,et));return(p*rt+_*rt)/rt}var Wr=function(p){(0,Q.__extends)(_,p);function _(){var I=p!==null&&p.apply(this,arguments)||this;return I.type="log",I}return _.prototype.invert=function(I){var et=this.base,rt=cr(et,this.max),xt=this.rangeMin(),kt=this.rangeMax()-xt,Ft,or=this.positiveMin;if(or){if(I===0)return 0;Ft=cr(et,or/et);var Qt=1/(rt-Ft)*kt;if(I=0?1:-1;return Math.pow(Ft,rt)*or},_.prototype.initCfg=function(){this.tickMethod="pow",this.exponent=2,this.tickCount=5,this.nice=!0},_.prototype.getScalePercent=function(I){var et=this.max,rt=this.min;if(et===rt)return 0;var xt=this.exponent,kt=(fr(xt,I)-fr(xt,rt))/(fr(xt,et)-fr(xt,rt));return kt},_}(It),tt=L,st=function(p){(0,Q.__extends)(_,p);function _(){var I=p!==null&&p.apply(this,arguments)||this;return I.type="time",I}return _.prototype.getText=function(I,et){var rt=this.translate(I),xt=this.formatter;return xt?xt(rt,et):y(rt,this.mask)},_.prototype.scale=function(I){var et=I;return((0,C.isString)(et)||(0,C.isDate)(et))&&(et=this.translate(et)),p.prototype.scale.call(this,et)},_.prototype.translate=function(I){return u(I)},_.prototype.initCfg=function(){this.tickMethod="time-pretty",this.mask="YYYY-MM-DD",this.tickCount=7,this.nice=!1},_.prototype.setDomain=function(){var I=this.values,et=this.getConfig("min"),rt=this.getConfig("max");if((!(0,C.isNil)(et)||!(0,C.isNumber)(et))&&(this.min=this.translate(this.min)),(!(0,C.isNil)(rt)||!(0,C.isNumber)(rt))&&(this.max=this.translate(this.max)),I&&I.length){var xt=[],kt=Infinity,Ft=kt,or=0;(0,C.each)(I,function(Qt){var nr=u(Qt);if(isNaN(nr))throw new TypeError("Invalid Time: "+Qt+" in time scale!");kt>nr?(Ft=kt,kt=nr):Ft>nr&&(Ft=nr),or1&&(this.minTickInterval=Ft-kt),(0,C.isNil)(et)&&(this.min=kt),(0,C.isNil)(rt)&&(this.max=or)}},_}(Ht),Ct=st,Tt=function(p){(0,Q.__extends)(_,p);function _(){var I=p!==null&&p.apply(this,arguments)||this;return I.type="quantize",I}return _.prototype.invert=function(I){var et=this.ticks,rt=et.length,xt=this.getInvertPercent(I),kt=Math.floor(xt*(rt-1));if(kt>=rt-1)return(0,C.last)(et);if(kt<0)return(0,C.head)(et);var Ft=et[kt],or=et[kt+1],Qt=kt/(rt-1),nr=(kt+1)/(rt-1);return Ft+(xt-Qt)/(nr-Qt)*(or-Ft)},_.prototype.initCfg=function(){this.tickMethod="r-pretty",this.tickCount=5,this.nice=!0},_.prototype.calculateTicks=function(){var I=p.prototype.calculateTicks.call(this);return this.nice||((0,C.last)(I)!==this.max&&I.push(this.max),(0,C.head)(I)!==this.min&&I.unshift(this.min)),I},_.prototype.getScalePercent=function(I){var et=this.ticks;if(I<(0,C.head)(et))return 0;if(I>(0,C.last)(et))return 1;var rt=0;return(0,C.each)(et,function(xt,kt){if(I>=xt)rt=kt;else return!1}),rt/(et.length-1)},_}(It),_t=Tt,Ot=function(p){(0,Q.__extends)(_,p);function _(){var I=p!==null&&p.apply(this,arguments)||this;return I.type="quantile",I}return _.prototype.initCfg=function(){this.tickMethod="quantile",this.tickCount=5,this.nice=!0},_}(_t),yt=Ot,Bt={};function St(p){return Bt[p]}function zt(p,_){if(St(p))throw new Error("type '"+p+"' existed.");Bt[p]=_}var tr=function(p){(0,Q.__extends)(_,p);function _(){var I=p!==null&&p.apply(this,arguments)||this;return I.type="identity",I.isIdentity=!0,I}return _.prototype.calculateTicks=function(){return this.values},_.prototype.scale=function(I){return this.values[0]!==I&&(0,C.isNumber)(I)?I:this.range[0]},_.prototype.invert=function(I){var et=this.range;return Iet[1]?NaN:this.values[0]},_}(W),Kt=tr;function $t(p){var _=p.values,I=p.tickInterval,et=p.tickCount,rt=p.showLast;if((0,C.isNumber)(I)){var xt=(0,C.filter)(_,function(Nr,zr){return zr%I==0}),kt=(0,C.last)(_);return rt&&(0,C.last)(xt)!==kt&&xt.push(kt),xt}var Ft=_.length,or=p.min,Qt=p.max;if((0,C.isNil)(or)&&(or=0),(0,C.isNil)(Qt)&&(Qt=_.length-1),!(0,C.isNumber)(et)||et>=Ft)return _.slice(or,Qt+1);if(et<=0||Qt<=0)return[];for(var nr=et===1?Ft:Math.floor(Ft/(et-1)),Lr=[],br=or,Fr=0;Fr=Qt);Fr++)br=Math.min(or+Fr*nr,Qt),Fr===et-1&&rt?Lr.push(_[Qt]):Lr.push(_[br]);return Lr}function ur(p){var _=p.min,I=p.max,et=p.nice,rt=p.tickCount,xt=new Er;return xt.domain([_,I]),et&&xt.nice(rt),xt.ticks(rt)}var er=5,Wt=Math.sqrt(50),dr=Math.sqrt(10),wr=Math.sqrt(2),Er=function(){function p(){this._domain=[0,1]}return p.prototype.domain=function(_){return _?(this._domain=Array.from(_,Number),this):this._domain.slice()},p.prototype.nice=function(_){var I,et;_===void 0&&(_=er);var rt=this._domain.slice(),xt=0,kt=this._domain.length-1,Ft=this._domain[xt],or=this._domain[kt],Qt;return or0?(Ft=Math.floor(Ft/Qt)*Qt,or=Math.ceil(or/Qt)*Qt,Qt=_r(Ft,or,_)):Qt<0&&(Ft=Math.ceil(Ft*Qt)/Qt,or=Math.floor(or*Qt)/Qt,Qt=_r(Ft,or,_)),Qt>0?(rt[xt]=Math.floor(Ft/Qt)*Qt,rt[kt]=Math.ceil(or/Qt)*Qt,this.domain(rt)):Qt<0&&(rt[xt]=Math.ceil(Ft*Qt)/Qt,rt[kt]=Math.floor(or*Qt)/Qt,this.domain(rt)),this},p.prototype.ticks=function(_){return _===void 0&&(_=er),Cr(this._domain[0],this._domain[this._domain.length-1],_||er)},p}();function Cr(p,_,I){var et,rt=-1,xt,kt,Ft;if(_=+_,p=+p,I=+I,p===_&&I>0)return[p];if((et=_0)for(p=Math.ceil(p/Ft),_=Math.floor(_/Ft),kt=new Array(xt=Math.ceil(_-p+1));++rt=0?(xt>=Wt?10:xt>=dr?5:xt>=wr?2:1)*Math.pow(10,rt):-Math.pow(10,-rt)/(xt>=Wt?10:xt>=dr?5:xt>=wr?2:1)}function S(p,_,I){var et;return I==="ceil"?et=Math.ceil(p/_):I==="floor"?et=Math.floor(p/_):et=Math.round(p/_),et*_}function M(p,_,I){var et=S(p,I,"floor"),rt=S(_,I,"ceil");et=(0,C.fixedBase)(et,I),rt=(0,C.fixedBase)(rt,I);for(var xt=[],kt=Math.max((rt-et)/(Math.pow(2,12)-1),I),Ft=et;Ft<=rt;Ft=Ft+kt){var or=(0,C.fixedBase)(Ft,kt);xt.push(or)}return{min:et,max:rt,ticks:xt}}function B(p,_,I){var et,rt=p.minLimit,xt=p.maxLimit,kt=p.min,Ft=p.max,or=p.tickCount,Qt=or===void 0?5:or,nr=(0,C.isNil)(rt)?(0,C.isNil)(_)?kt:_:rt,Lr=(0,C.isNil)(xt)?(0,C.isNil)(I)?Ft:I:xt;if(nr>Lr&&(et=[nr,Lr],Lr=et[0],nr=et[1]),Qt<=2)return[nr,Lr];for(var br=(Lr-nr)/(Qt-1),Fr=[],Nr=0;Nr=0&&(or=1),1-Ft/(kt-1)-I+or}function Xr(p,_,I){var et=(0,C.size)(_),rt=(0,C.indexOf)(_,p),xt=1;return 1-rt/(et-1)-I+xt}function d(p,_,I,et,rt,xt){var kt=(p-1)/(xt-rt),Ft=(_-1)/(Math.max(xt,et)-Math.min(I,rt));return 2-Math.max(kt/Ft,Ft/kt)}function c(p,_){return p>=_?2-(p-1)/(_-1):1}function a(p,_,I,et){var rt=_-p;return 1-.5*(Math.pow(_-et,2)+Math.pow(p-I,2))/Math.pow(.1*rt,2)}function g(p,_,I){var et=_-p;if(I>et){var rt=(I-et)/2;return 1-Math.pow(rt,2)/Math.pow(.1*et,2)}return 1}function A(){return 1}function k(p,_,I,et,rt,xt){I===void 0&&(I=5),et===void 0&&(et=!0),rt===void 0&&(rt=Nt),xt===void 0&&(xt=[.25,.2,.5,.05]);var kt=I<0?0:Math.round(I);if(Number.isNaN(p)||Number.isNaN(_)||typeof p!="number"||typeof _!="number"||!kt)return{min:0,max:0,ticks:[]};if(_-p<1e-15||kt===1)return{min:p,max:_,ticks:[p]};if(_-p>1e148){var Ft=I||5,or=(_-p)/Ft;return{min:p,max:_,ticks:Array(Ft).fill(null).map(function(An,yn){return At(p+or*yn)})}}for(var Qt={score:-2,lmin:0,lmax:0,lstep:0},nr=1;nrQt.score&&(!et||Vr<=p&&jr>=_)&&(Qt.lmin=Vr,Qt.lmax=jr,Qt.lstep=on,Qt.score=sn)}Qr+=1}Nr+=1}}nr+=1}var rn=At(Qt.lmax),hn=At(Qt.lmin),vn=At(Qt.lstep),fn=Math.floor(Ir((rn-hn)/vn))+1,nn=new Array(fn);nn[0]=At(hn);for(var Lr=1;Lr0)kt=Math.floor(cr(_,et));else{var or=Dr(xt,_,rt);kt=Math.floor(cr(_,or))}for(var Qt=Ft-kt,nr=Math.ceil(Qt/I),Lr=[],br=kt;br=0?1:-1;return Math.pow(kt,_)*Ft})}function Mt(p,_){var I=p.length*_;return _===1?p[p.length-1]:_===0?p[0]:I%1!=0?p[Math.ceil(I)-1]:p.length%2==0?(p[I-1]+p[I])/2:p[I]}function Rt(p){var _=p.tickCount,I=p.values;if(!I||!I.length)return[];for(var et=I.slice().sort(function(Ft,or){return Ft-or}),rt=[],xt=0;xt<_;xt++){var kt=xt/(_-1);rt.push(Mt(et,kt))}return rt}function Gt(p){var _=p.min,I=p.max,et=p.tickCount,rt=p.tickInterval,xt=p.minLimit,kt=p.maxLimit,Ft=q(_,I,et).ticks;return!(0,C.isNil)(xt)||!(0,C.isNil)(kt)?B(p,(0,C.head)(Ft),(0,C.last)(Ft)):rt?M(_,I,rt).ticks:Ft}function Vt(p){var _=p.min,I=p.max,et=p.minTickInterval,rt=p.tickInterval,xt=p.tickCount;if(rt)xt=Math.ceil((I-_)/rt);else{rt=w(_,I,xt)[1];var kt=(I-_)/rt,Ft=kt/xt;Ft>1&&(rt=rt*Math.ceil(Ft)),et&&rts)for(var or=sr(I),Qt=Math.ceil(xt/s),nr=Ft;nr<=or+Qt;nr=nr+Qt)kt.push(vr(nr));else if(xt>e)for(var Lr=Math.ceil(xt/e),br=qt(_),Fr=yr(_,I),nr=0;nr<=Fr+Lr;nr=nr+Lr)kt.push(Ar(Ft,nr+br));else if(xt>n)for(var Nr=new Date(_),zr=Nr.getFullYear(),Kr=Nr.getMonth(),Qr=Nr.getDate(),Ur=Math.ceil(xt/n),en=Sr(_,I),nr=0;nri)for(var Nr=new Date(_),zr=Nr.getFullYear(),Kr=Nr.getMonth(),Ur=Nr.getDate(),qr=Nr.getHours(),Gr=Math.ceil(xt/i),$r=Pr(_,I),nr=0;nr<=$r+Gr;nr=nr+Gr)kt.push(new Date(zr,Kr,Ur,qr+nr).getTime());else if(xt>t)for(var an=Rr(_,I),Vr=Math.ceil(xt/t),nr=0;nr<=an+Vr;nr=nr+Vr)kt.push(_+nr*t);else{var jr=xt;jr=512&&console.warn("Notice: current ticks length("+kt.length+') >= 512, may cause performance issues, even out of memory. Because of the configure "tickInterval"(in milliseconds, current is '+xt+") is too small, increase the value to solve the problem!"),kt}vt("cat",$t),vt("time-cat",Jt),vt("wilkinson-extended",F),vt("r-pretty",Gt),vt("time",Vt),vt("time-pretty",Br),vt("log",H),vt("pow",Et),vt("quantile",Rt),vt("d3-linear",j),zt("cat",mt),zt("category",mt),zt("identity",Kt),zt("linear",Ht),zt("log",Y),zt("pow",tt),zt("time",Ct),zt("timeCat",dt),zt("quantize",_t),zt("quantile",yt)},49242:function(Tr,Yt,V){"use strict";V.r(Yt),V.d(Yt,{Cache:function(){return te},assign:function(){return rn},augment:function(){return vn},clamp:function(){return dr},clearAnimationFrame:function(){return mn},clone:function(){return nn},contains:function(){return lt},debounce:function(){return yn},deepMix:function(){return Tn},difference:function(){return Q},each:function(){return ht},endsWith:function(){return Hr},every:function(){return Y},extend:function(){return Dn},filter:function(){return ut},find:function(){return mr},findIndex:function(){return lr},firstValue:function(){return gr},fixedBase:function(){return Er},flatten:function(){return f},flattenDeep:function(){return x},forIn:function(){return Vt},get:function(){return Xn},getEllipsisText:function(){return Jn},getRange:function(){return m},getType:function(){return or},getWrapBehavior:function(){return Bt},group:function(){return Ot},groupBy:function(){return Tt},groupToMap:function(){return _t},has:function(){return Jt},hasKey:function(){return sr},hasValue:function(){return yr},head:function(){return Ht},identity:function(){return qn},includes:function(){return lt},indexOf:function(){return In},isArguments:function(){return nr},isArray:function(){return D},isArrayLike:function(){return C},isBoolean:function(){return br},isDate:function(){return Nr},isDecimal:function(){return M},isElement:function(){return un},isEmpty:function(){return Ln},isEqual:function(){return En},isEqualWith:function(){return Rn},isError:function(){return Kr},isEven:function(){return j},isFinite:function(){return Qr},isFunction:function(){return X},isInteger:function(){return Nt},isMatch:function(){return G},isNegative:function(){return Xt},isNil:function(){return T},isNull:function(){return en},isNumber:function(){return _r},isNumberEqual:function(){return Ir},isObject:function(){return $},isObjectLike:function(){return Pt},isOdd:function(){return Xr},isPlainObject:function(){return ar},isPositive:function(){return c},isPrototype:function(){return $r},isRegExp:function(){return Vr},isString:function(){return h},isType:function(){return ct},isUndefined:function(){return on},keys:function(){return P},last:function(){return fr},lowerCase:function(){return Pr},lowerFirst:function(){return Br},map:function(){return Nn},mapValues:function(){return Fn},max:function(){return U},maxBy:function(){return a},measureTextWidth:function(){return ln},memoize:function(){return wn},min:function(){return K},minBy:function(){return g},mix:function(){return rn},mod:function(){return k},noop:function(){return Zn},number2color:function(){return $t},omit:function(){return zn},parseRadius:function(){return er},pick:function(){return Un},pull:function(){return y},pullAt:function(){return t},reduce:function(){return n},remove:function(){return s},requestAnimationFrame:function(){return dn},set:function(){return Hn},size:function(){return Qn},some:function(){return tt},sortBy:function(){return ot},startsWith:function(){return Dr},substitute:function(){return _},throttle:function(){return Kn},toArray:function(){return Gn},toDegree:function(){return q},toInteger:function(){return Et},toRadian:function(){return Gt},toString:function(){return Ar},union:function(){return It},uniq:function(){return dt},uniqueId:function(){return Vn},upperCase:function(){return et},upperFirst:function(){return xt},values:function(){return qt},valuesOfKey:function(){return Dt},wrapBehavior:function(){return zt}});var it=function(v){return v!==null&&typeof v!="function"&&isFinite(v.length)},C=it,wt=function(v,N){return C(v)?v.indexOf(N)>-1:!1},lt=wt,vt=function(v,N){if(!C(v))return v;for(var at=[],pt=0;pt-1;)E.call(v,jt,1);return v},y=J,u=Array.prototype.splice,r=function(N,at){if(!C(N))return[];for(var pt=N?at.length:0,bt=pt-1;pt--;){var jt=void 0,Mr=at[pt];(pt===bt||Mr!==jt)&&(jt=Mr,u.call(N,Mr,1))}return N},t=r,i=function(v,N,at){if(!D(v)&&!ar(v))return v;var pt=at;return ht(v,function(bt,jt){pt=N(pt,bt,jt)}),pt},n=i,e=function(v,N){var at=[];if(!C(v))return at;for(var pt=-1,bt=[],jt=v.length;++ptjt[kr])return 1;if(bt[kr]at?at:v},dr=Wt,wr=function(v,N){var at=N.toString(),pt=at.indexOf(".");if(pt===-1)return Math.round(v);var bt=at.substr(pt+1).length;return bt>20&&(bt=20),parseFloat(v.toFixed(bt))},Er=wr,Cr=function(v){return ct(v,"Number")},_r=Cr,S=function(v){return _r(v)&&v%1!=0},M=S,B=function(v){return _r(v)&&v%2==0},j=B,At=Number.isInteger?Number.isInteger:function(v){return _r(v)&&v%1==0},Nt=At,Zt=function(v){return _r(v)&&v<0},Xt=Zt,pr=1e-5;function Ir(v,N,at){return at===void 0&&(at=pr),Math.abs(v-N)0},c=d,a=function(v,N){if(!!D(v)){for(var at,pt=-Infinity,bt=0;btpt&&(at=jt,pt=Mr)}return at}},g=function(v,N){if(!!D(v)){for(var at,pt=Infinity,bt=0;btN?(pt&&(clearTimeout(pt),pt=null),kr=tn,Mr=v.apply(bt,jt),pt||(bt=jt=null)):!pt&&at.trailing!==!1&&(pt=setTimeout(Zr,xn)),Mr};return Jr.cancel=function(){clearTimeout(pt),kr=0,pt=bt=jt=null},Jr},Gn=function(v){return C(v)?Array.prototype.slice.call(v):[]},gn={},Vn=function(v){return v=v||"g",gn[v]?gn[v]+=1:gn[v]=1,v+gn[v]},Zn=function(){},qn=function(v){return v};function Qn(v){return T(v)?0:C(v)?v.length:Object.keys(v).length}var $n=V(65353),pn,ln=wn(function(v,N){N===void 0&&(N={});var at=N.fontSize,pt=N.fontFamily,bt=N.fontWeight,jt=N.fontStyle,Mr=N.fontVariant;return pn||(pn=document.createElement("canvas").getContext("2d")),pn.font=[jt,Mr,bt,at+"px",pt].join(" "),pn.measureText(h(v)?v:"").width},function(v,N){return N===void 0&&(N={}),(0,$n.__spreadArrays)([v],qt(N)).join("")}),Jn=function(v,N,at,pt){pt===void 0&&(pt="...");var bt=16,jt=ln(pt,at),Mr=h(v)?v:Ar(v),kr=N,Zr=[],Jr,tn;if(ln(v,at)<=N)return v;for(;Jr=Mr.substr(0,bt),tn=ln(Jr,at),!(tn+jt>kr&&tn>kr);)if(Zr.push(Jr),kr-=tn,Mr=Mr.substr(bt),!Mr)return Zr.join("");for(;Jr=Mr.substr(0,1),tn=ln(Jr,at),!(tn+jt>kr);)if(Zr.push(Jr),kr-=tn,Mr=Mr.substr(1),!Mr)return Zr.join("");return""+Zr.join("")+pt},jn=function(){function v(){this.map={}}return v.prototype.has=function(N){return this.map[N]!==void 0},v.prototype.get=function(N,at){var pt=this.map[N];return pt===void 0?at:pt},v.prototype.set=function(N,at){this.map[N]=at},v.prototype.clear=function(){this.map={}},v.prototype.delete=function(N){delete this.map[N]},v.prototype.size=function(){return Object.keys(this.map).length},v}(),te=jn},35374:function(Tr,Yt,V){"use strict";V.d(Yt,{HT:function(){return D}});var it=0,C=0,wt=0,lt=1e3,vt,ut,W=0,Q=0,nt=0,mt=typeof performance=="object"&&performance.now?performance:Date,ct=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(b){setTimeout(b,17)};function X(){return Q||(ct(R),Q=mt.now()+nt)}function R(){Q=0}function T(){this._call=this._time=this._next=null}T.prototype=D.prototype={constructor:T,restart:function(b,G,ft){if(typeof b!="function")throw new TypeError("callback is not a function");ft=(ft==null?X():+ft)+(G==null?0:+G),!this._next&&ut!==this&&(ut?ut._next=this:vt=this,ut=this),this._call=b,this._time=ft,P()},stop:function(){this._call&&(this._call=null,this._time=Infinity,P())}};function D(b,G,ft){var Pt=new T;return Pt.restart(b,G,ft),Pt}function $(){X(),++it;for(var b=vt,G;b;)(G=Q-b._time)>=0&&b._call.call(null,G),b=b._next;--it}function gt(){Q=(W=mt.now())+nt,it=C=0;try{$()}finally{it=0,z(),Q=0}}function ht(){var b=mt.now(),G=b-W;G>lt&&(nt-=G,W=b)}function z(){for(var b,G=vt,ft,Pt=Infinity;G;)G._call?(Pt>G._time&&(Pt=G._time),b=G,G=G._next):(ft=G._next,G._next=null,G=b?b._next=ft:vt=ft);ut=b,P(Pt)}function P(b){if(!it){C&&(C=clearTimeout(C));var G=b-Q;G>24?(b0&&(e=1/Math.sqrt(e)),r[0]=t[0]*e,r[1]=t[1]*e,r}function Ut(r,t){return r[0]*t[0]+r[1]*t[1]}function ar(r,t,i){var n=t[0]*i[1]-t[1]*i[0];return r[0]=r[1]=0,r[2]=n,r}function xr(r,t,i,n){var e=t[0],s=t[1];return r[0]=e+n*(i[0]-e),r[1]=s+n*(i[1]-s),r}function mr(r,t){t=t||1;var i=it.RANDOM()*2*Math.PI;return r[0]=Math.cos(i)*t,r[1]=Math.sin(i)*t,r}function ir(r,t,i){var n=t[0],e=t[1];return r[0]=i[0]*n+i[2]*e,r[1]=i[1]*n+i[3]*e,r}function lr(r,t,i){var n=t[0],e=t[1];return r[0]=i[0]*n+i[2]*e+i[4],r[1]=i[1]*n+i[3]*e+i[5],r}function hr(r,t,i){var n=t[0],e=t[1];return r[0]=i[0]*n+i[3]*e+i[6],r[1]=i[1]*n+i[4]*e+i[7],r}function gr(r,t,i){var n=t[0],e=t[1];return r[0]=i[0]*n+i[4]*e+i[12],r[1]=i[1]*n+i[5]*e+i[13],r}function rr(r,t,i,n){var e=t[0]-i[0],s=t[1]-i[1],h=Math.sin(n),w=Math.cos(n);return r[0]=e*w-s*h+i[0],r[1]=e*h+s*w+i[1],r}function f(r,t){var i=r[0],n=r[1],e=t[0],s=t[1],h=Math.sqrt(i*i+n*n)*Math.sqrt(e*e+s*s),w=h&&(i*e+n*s)/h;return Math.acos(Math.min(Math.max(w,-1),1))}function o(r){return r[0]=0,r[1]=0,r}function x(r){return"vec2("+r[0]+", "+r[1]+")"}function U(r,t){return r[0]===t[0]&&r[1]===t[1]}function K(r,t){var i=r[0],n=r[1],e=t[0],s=t[1];return Math.abs(i-e)<=it.EPSILON*Math.max(1,Math.abs(i),Math.abs(e))&&Math.abs(n-s)<=it.EPSILON*Math.max(1,Math.abs(n),Math.abs(s))}var l=P,m=Q,O=nt,E=mt,Z=ht,J=z,y=b,u=function(){var r=C();return function(t,i,n,e,s,h){var w,ot;for(i||(i=2),n||(n=0),e?ot=Math.min(e*i+n,t.length):ot=t.length,w=n;w0&&(ot=1/Math.sqrt(ot)),n[0]=e[0]*ot,n[1]=e[1]*ot,n[2]=e[2]*ot,n}function Ut(n,e){return n[0]*e[0]+n[1]*e[1]+n[2]*e[2]}function ar(n,e,s){var h=e[0],w=e[1],ot=e[2],dt=s[0],Lt=s[1],It=s[2];return n[0]=w*It-ot*Lt,n[1]=ot*dt-h*It,n[2]=h*Lt-w*dt,n}function xr(n,e,s,h){var w=e[0],ot=e[1],dt=e[2];return n[0]=w+h*(s[0]-w),n[1]=ot+h*(s[1]-ot),n[2]=dt+h*(s[2]-dt),n}function mr(n,e,s,h,w,ot){var dt=ot*ot,Lt=dt*(2*ot-3)+1,It=dt*(ot-2)+ot,Dt=dt*(ot-1),Ht=dt*(3-2*ot);return n[0]=e[0]*Lt+s[0]*It+h[0]*Dt+w[0]*Ht,n[1]=e[1]*Lt+s[1]*It+h[1]*Dt+w[1]*Ht,n[2]=e[2]*Lt+s[2]*It+h[2]*Dt+w[2]*Ht,n}function ir(n,e,s,h,w,ot){var dt=1-ot,Lt=dt*dt,It=ot*ot,Dt=Lt*dt,Ht=3*ot*Lt,fr=3*It*dt,cr=It*ot;return n[0]=e[0]*Dt+s[0]*Ht+h[0]*fr+w[0]*cr,n[1]=e[1]*Dt+s[1]*Ht+h[1]*fr+w[1]*cr,n[2]=e[2]*Dt+s[2]*Ht+h[2]*fr+w[2]*cr,n}function lr(n,e){e=e||1;var s=it.RANDOM()*2*Math.PI,h=it.RANDOM()*2-1,w=Math.sqrt(1-h*h)*e;return n[0]=Math.cos(s)*w,n[1]=Math.sin(s)*w,n[2]=h*e,n}function hr(n,e,s){var h=e[0],w=e[1],ot=e[2],dt=s[3]*h+s[7]*w+s[11]*ot+s[15];return dt=dt||1,n[0]=(s[0]*h+s[4]*w+s[8]*ot+s[12])/dt,n[1]=(s[1]*h+s[5]*w+s[9]*ot+s[13])/dt,n[2]=(s[2]*h+s[6]*w+s[10]*ot+s[14])/dt,n}function gr(n,e,s){var h=e[0],w=e[1],ot=e[2];return n[0]=h*s[0]+w*s[3]+ot*s[6],n[1]=h*s[1]+w*s[4]+ot*s[7],n[2]=h*s[2]+w*s[5]+ot*s[8],n}function rr(n,e,s){var h=s[0],w=s[1],ot=s[2],dt=s[3],Lt=e[0],It=e[1],Dt=e[2],Ht=w*Dt-ot*It,fr=ot*Lt-h*Dt,cr=h*It-w*Lt,Dr=w*cr-ot*fr,Or=ot*Ht-h*cr,Hr=h*fr-w*Ht,Wr=dt*2;return Ht*=Wr,fr*=Wr,cr*=Wr,Dr*=2,Or*=2,Hr*=2,n[0]=Lt+Ht+Dr,n[1]=It+fr+Or,n[2]=Dt+cr+Hr,n}function f(n,e,s,h){var w=[],ot=[];return w[0]=e[0]-s[0],w[1]=e[1]-s[1],w[2]=e[2]-s[2],ot[0]=w[0],ot[1]=w[1]*Math.cos(h)-w[2]*Math.sin(h),ot[2]=w[1]*Math.sin(h)+w[2]*Math.cos(h),n[0]=ot[0]+s[0],n[1]=ot[1]+s[1],n[2]=ot[2]+s[2],n}function o(n,e,s,h){var w=[],ot=[];return w[0]=e[0]-s[0],w[1]=e[1]-s[1],w[2]=e[2]-s[2],ot[0]=w[2]*Math.sin(h)+w[0]*Math.cos(h),ot[1]=w[1],ot[2]=w[2]*Math.cos(h)-w[0]*Math.sin(h),n[0]=ot[0]+s[0],n[1]=ot[1]+s[1],n[2]=ot[2]+s[2],n}function x(n,e,s,h){var w=[],ot=[];return w[0]=e[0]-s[0],w[1]=e[1]-s[1],w[2]=e[2]-s[2],ot[0]=w[0]*Math.cos(h)-w[1]*Math.sin(h),ot[1]=w[0]*Math.sin(h)+w[1]*Math.cos(h),ot[2]=w[2],n[0]=ot[0]+s[0],n[1]=ot[1]+s[1],n[2]=ot[2]+s[2],n}function U(n,e){var s=n[0],h=n[1],w=n[2],ot=e[0],dt=e[1],Lt=e[2],It=Math.sqrt(s*s+h*h+w*w),Dt=Math.sqrt(ot*ot+dt*dt+Lt*Lt),Ht=It*Dt,fr=Ht&&Ut(n,e)/Ht;return Math.acos(Math.min(Math.max(fr,-1),1))}function K(n){return n[0]=0,n[1]=0,n[2]=0,n}function l(n){return"vec3("+n[0]+", "+n[1]+", "+n[2]+")"}function m(n,e){return n[0]===e[0]&&n[1]===e[1]&&n[2]===e[2]}function O(n,e){var s=n[0],h=n[1],w=n[2],ot=e[0],dt=e[1],Lt=e[2];return Math.abs(s-ot)<=it.EPSILON*Math.max(1,Math.abs(s),Math.abs(ot))&&Math.abs(h-dt)<=it.EPSILON*Math.max(1,Math.abs(h),Math.abs(dt))&&Math.abs(w-Lt)<=it.EPSILON*Math.max(1,Math.abs(w),Math.abs(Lt))}var E=nt,Z=mt,J=ct,y=z,u=P,r=lt,t=b,i=function(){var n=C();return function(e,s,h,w,ot,dt){var Lt,It;for(s||(s=3),h||(h=0),w?It=Math.min(w*s+h,e.length):It=e.length,Lt=h;Lt=0;E--)(O=o[E])&&(m=(l<3?O(m):l>3?O(x,U,m):O(x,U))||m);return l>3&&m&&Object.defineProperty(x,U,m),m}function ut(o,x){return function(U,K){x(U,K,o)}}function W(o,x,U,K,l,m){function O(s){if(s!==void 0&&typeof s!="function")throw new TypeError("Function expected");return s}for(var E=K.kind,Z=E==="getter"?"get":E==="setter"?"set":"value",J=!x&&o?K.static?o:o.prototype:null,y=x||(J?Object.getOwnPropertyDescriptor(J,K.name):{}),u,r=!1,t=U.length-1;t>=0;t--){var i={};for(var n in K)i[n]=n==="access"?{}:K[n];for(var n in K.access)i.access[n]=K.access[n];i.addInitializer=function(s){if(r)throw new TypeError("Cannot add initializers after decoration has completed");m.push(O(s||null))};var e=(0,U[t])(E==="accessor"?{get:y.get,set:y.set}:y[Z],i);if(E==="accessor"){if(e===void 0)continue;if(e===null||typeof e!="object")throw new TypeError("Object expected");(u=O(e.get))&&(y.get=u),(u=O(e.set))&&(y.set=u),(u=O(e.init))&&l.unshift(u)}else(u=O(e))&&(E==="field"?l.unshift(u):y[Z]=u)}J&&Object.defineProperty(J,K.name,y),r=!0}function Q(o,x,U){for(var K=arguments.length>2,l=0;l0&&m[m.length-1])&&(J[0]===6||J[0]===2)){U=0;continue}if(J[0]===3&&(!m||J[1]>m[0]&&J[1]=o.length&&(o=void 0),{value:o&&o[K++],done:!o}}};throw new TypeError(x?"Object is not iterable.":"Symbol.iterator is not defined.")}function gt(o,x){var U=typeof Symbol=="function"&&o[Symbol.iterator];if(!U)return o;var K=U.call(o),l,m=[],O;try{for(;(x===void 0||x-- >0)&&!(l=K.next()).done;)m.push(l.value)}catch(E){O={error:E}}finally{try{l&&!l.done&&(U=K.return)&&U.call(K)}finally{if(O)throw O.error}}return m}function ht(){for(var o=[],x=0;x1||E(r,t)})})}function E(r,t){try{Z(K[r](t))}catch(i){u(m[0][3],i)}}function Z(r){r.value instanceof b?Promise.resolve(r.value.v).then(J,y):u(m[0][2],r)}function J(r){E("next",r)}function y(r){E("throw",r)}function u(r,t){r(t),m.shift(),m.length&&E(m[0][0],m[0][1])}}function ft(o){var x,U;return x={},K("next"),K("throw",function(l){throw l}),K("return"),x[Symbol.iterator]=function(){return this},x;function K(l,m){x[l]=o[l]?function(O){return(U=!U)?{value:b(o[l](O)),done:!1}:m?m(O):O}:m}}function Pt(o){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var x=o[Symbol.asyncIterator],U;return x?x.call(o):(o=typeof $=="function"?$(o):o[Symbol.iterator](),U={},K("next"),K("throw"),K("return"),U[Symbol.asyncIterator]=function(){return this},U);function K(m){U[m]=o[m]&&function(O){return new Promise(function(E,Z){O=o[m](O),l(E,Z,O.done,O.value)})}}function l(m,O,E,Z){Promise.resolve(Z).then(function(J){m({value:J,done:E})},O)}}function Ut(o,x){return Object.defineProperty?Object.defineProperty(o,"raw",{value:x}):o.raw=x,o}var ar=Object.create?function(o,x){Object.defineProperty(o,"default",{enumerable:!0,value:x})}:function(o,x){o.default=x};function xr(o){if(o&&o.__esModule)return o;var x={};if(o!=null)for(var U in o)U!=="default"&&Object.prototype.hasOwnProperty.call(o,U)&&T(x,o,U);return ar(x,o),x}function mr(o){return o&&o.__esModule?o:{default:o}}function ir(o,x,U,K){if(U==="a"&&!K)throw new TypeError("Private accessor was defined without a getter");if(typeof x=="function"?o!==x||!K:!x.has(o))throw new TypeError("Cannot read private member from an object whose class did not declare it");return U==="m"?K:U==="a"?K.call(o):K?K.value:x.get(o)}function lr(o,x,U,K,l){if(K==="m")throw new TypeError("Private method is not writable");if(K==="a"&&!l)throw new TypeError("Private accessor was defined without a setter");if(typeof x=="function"?o!==x||!l:!x.has(o))throw new TypeError("Cannot write private member to an object whose class did not declare it");return K==="a"?l.call(o,U):l?l.value=U:x.set(o,U),U}function hr(o,x){if(x===null||typeof x!="object"&&typeof x!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof o=="function"?x===o:o.has(x)}function gr(o,x,U){if(x!=null){if(typeof x!="object")throw new TypeError("Object expected.");var K;if(U){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");K=x[Symbol.asyncDispose]}if(K===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");K=x[Symbol.dispose]}if(typeof K!="function")throw new TypeError("Object not disposable.");o.stack.push({value:x,dispose:K,async:U})}else U&&o.stack.push({async:!0});return x}var rr=typeof SuppressedError=="function"?SuppressedError:function(o,x,U){var K=new Error(U);return K.name="SuppressedError",K.error=o,K.suppressed=x,K};function f(o){function x(K){o.error=o.hasError?new rr(K,o.error,"An error was suppressed during disposal."):K,o.hasError=!0}function U(){for(;o.stack.length;){var K=o.stack.pop();try{var l=K.dispose&&K.dispose.call(K.value);if(K.async)return Promise.resolve(l).then(U,function(m){return x(m),U()})}catch(m){x(m)}}if(o.hasError)throw o.error}return U()}Yt.default={__extends:C,__assign:wt,__rest:lt,__decorate:vt,__param:ut,__metadata:ct,__awaiter:X,__generator:R,__createBinding:T,__exportStar:D,__values:$,__read:gt,__spread:ht,__spreadArrays:z,__spreadArray:P,__await:b,__asyncGenerator:G,__asyncDelegator:ft,__asyncValues:Pt,__makeTemplateObject:Ut,__importStar:xr,__importDefault:mr,__classPrivateFieldGet:ir,__classPrivateFieldSet:lr,__classPrivateFieldIn:hr,__addDisposableResource:gr,__disposeResources:f}}}]); diff --git a/dist/3315.09f1def5.chunk.css b/dist/8676.09f1def5.chunk.css similarity index 100% rename from dist/3315.09f1def5.chunk.css rename to dist/8676.09f1def5.chunk.css diff --git a/dist/8676.5ef744b4.async.js b/dist/8676.5ef744b4.async.js new file mode 100644 index 0000000..532bdf6 --- /dev/null +++ b/dist/8676.5ef744b4.async.js @@ -0,0 +1 @@ +(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[8676,1322,1279,7800,6398,6794,944,8208],{12826:function(we,Ce,n){"use strict";n.d(Ce,{ZP:function(){return at}});var V=n(85061),G=n(55507),_=n(92137),Pe=n(84305),le=n(39559),ze=n(98858),v=n(4914),xe=n(81253),Me=n(49111),Y=n(19650),d=n(28991),U=n(67294),e=n(85893),ve=n(54549),De=n(79508),pe=n(8212),fe=n(952),Ze=n(31649),Ne=n(58024),O=n(91894),Ie=n(18446),h=n(19586),me=n(38069),$e=n(48736),Ee=n(27049),je=function(t){var a=t.padding;return(0,e.jsx)("div",{style:{padding:a||"0 24px"},children:(0,e.jsx)(Ee.Z,{style:{margin:0}})})},f={xs:2,sm:2,md:4,lg:4,xl:6,xxl:6},u=function(t){var a=t.size,r=t.active,i=(0,me.ZP)(),s=a===void 0?f[i]||6:a,x=function(o){return o===0?0:s>2?42:16};return(0,e.jsx)(O.Z,{bordered:!1,style:{marginBottom:16},children:(0,e.jsx)("div",{style:{width:"100%",justifyContent:"space-between",display:"flex"},children:new Array(s).fill(null).map(function(Z,o){return(0,e.jsxs)("div",{style:{borderLeft:s>2&&o===1?"1px solid rgba(0,0,0,0.06)":void 0,paddingLeft:x(o),flex:1,marginRight:o===0?16:0},children:[(0,e.jsx)(h.Z,{active:r,paragraph:!1,title:{width:100,style:{marginTop:0}}}),(0,e.jsx)(h.Z.Button,{active:r,style:{height:48}})]},o)})})})},m=function(t){var a=t.active;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(O.Z,{bordered:!1,style:{borderRadius:0},bodyStyle:{padding:24},children:(0,e.jsxs)("div",{style:{width:"100%",display:"flex",alignItems:"center",justifyContent:"space-between"},children:[(0,e.jsx)("div",{style:{maxWidth:"100%",flex:1},children:(0,e.jsx)(h.Z,{active:a,title:{width:100,style:{marginTop:0}},paragraph:{rows:1,style:{margin:0}}})}),(0,e.jsx)(h.Z.Button,{active:a,size:"small",style:{width:165,marginTop:12}})]})}),(0,e.jsx)(je,{})]})},j=function(t){var a=t.size,r=t.active,i=r===void 0?!0:r,s=t.actionButton;return(0,e.jsxs)(O.Z,{bordered:!1,bodyStyle:{padding:0},children:[new Array(a).fill(null).map(function(x,Z){return(0,e.jsx)(m,{active:!!i},Z)}),s!==!1&&(0,e.jsx)(O.Z,{bordered:!1,style:{borderTopRightRadius:0,borderTopLeftRadius:0},bodyStyle:{display:"flex",alignItems:"center",justifyContent:"center"},children:(0,e.jsx)(h.Z.Button,{style:{width:102},active:i,size:"small"})})]})},D=function(t){var a=t.active;return(0,e.jsxs)("div",{style:{marginBottom:16},children:[(0,e.jsx)(h.Z,{paragraph:!1,title:{width:185}}),(0,e.jsx)(h.Z.Button,{active:a,size:"small"})]})},I=function(t){var a=t.active;return(0,e.jsx)(O.Z,{bordered:!1,style:{borderBottomRightRadius:0,borderBottomLeftRadius:0},bodyStyle:{paddingBottom:8},children:(0,e.jsxs)(Y.Z,{style:{width:"100%",justifyContent:"space-between"},children:[(0,e.jsx)(h.Z.Button,{active:a,style:{width:200},size:"small"}),(0,e.jsxs)(Y.Z,{children:[(0,e.jsx)(h.Z.Button,{active:a,size:"small",style:{width:120}}),(0,e.jsx)(h.Z.Button,{active:a,size:"small",style:{width:80}})]})]})})},E=function(t){var a=t.active,r=a===void 0?!0:a,i=t.statistic,s=t.actionButton,x=t.toolbar,Z=t.pageHeader,o=t.list,P=o===void 0?5:o;return(0,e.jsxs)("div",{style:{width:"100%"},children:[Z!==!1&&(0,e.jsx)(D,{active:r}),i!==!1&&(0,e.jsx)(u,{size:i,active:r}),(x!==!1||P!==!1)&&(0,e.jsxs)(O.Z,{bordered:!1,bodyStyle:{padding:0},children:[x!==!1&&(0,e.jsx)(I,{active:r}),P!==!1&&(0,e.jsx)(j,{size:P,active:r,actionButton:s})]})]})},k=E,W={xs:1,sm:2,md:3,lg:3,xl:3,xxl:4},J=function(t){var a=t.active;return(0,e.jsxs)("div",{style:{marginTop:32},children:[(0,e.jsx)(h.Z.Button,{active:a,size:"small",style:{width:100,marginBottom:16}}),(0,e.jsxs)("div",{style:{width:"100%",justifyContent:"space-between",display:"flex"},children:[(0,e.jsxs)("div",{style:{flex:1,marginRight:24,maxWidth:300},children:[(0,e.jsx)(h.Z,{active:a,paragraph:!1,title:{style:{marginTop:0}}}),(0,e.jsx)(h.Z,{active:a,paragraph:!1,title:{style:{marginTop:8}}}),(0,e.jsx)(h.Z,{active:a,paragraph:!1,title:{style:{marginTop:8}}})]}),(0,e.jsx)("div",{style:{flex:1,alignItems:"center",justifyContent:"center"},children:(0,e.jsxs)("div",{style:{maxWidth:300,margin:"auto"},children:[(0,e.jsx)(h.Z,{active:a,paragraph:!1,title:{style:{marginTop:0}}}),(0,e.jsx)(h.Z,{active:a,paragraph:!1,title:{style:{marginTop:8}}})]})})]})]})},z=function(t){var a=t.size,r=t.active,i=(0,me.ZP)(),s=a===void 0?W[i]||3:a;return(0,e.jsx)("div",{style:{width:"100%",justifyContent:"space-between",display:"flex"},children:new Array(s).fill(null).map(function(x,Z){return(0,e.jsxs)("div",{style:{flex:1,paddingLeft:Z===0?0:24,paddingRight:Z===s-1?0:24},children:[(0,e.jsx)(h.Z,{active:r,paragraph:!1,title:{style:{marginTop:0}}}),(0,e.jsx)(h.Z,{active:r,paragraph:!1,title:{style:{marginTop:8}}}),(0,e.jsx)(h.Z,{active:r,paragraph:!1,title:{style:{marginTop:8}}})]},Z)})})},A=function(t){var a=t.active,r=t.header,i=r===void 0?!1:r,s=(0,me.ZP)(),x=W[s]||3;return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsxs)("div",{style:{display:"flex",background:i?"rgba(0,0,0,0.02)":"none",padding:"24px 8px"},children:[new Array(x).fill(null).map(function(Z,o){return(0,e.jsx)("div",{style:{flex:1,paddingLeft:i&&o===0?0:20,paddingRight:32},children:(0,e.jsx)(h.Z,{active:a,paragraph:!1,title:{style:{margin:0,height:24,width:i?"75px":"100%"}}})},o)}),(0,e.jsx)("div",{style:{flex:3,paddingLeft:32},children:(0,e.jsx)(h.Z,{active:a,paragraph:!1,title:{style:{margin:0,height:24,width:i?"75px":"100%"}}})})]}),(0,e.jsx)(je,{padding:"0px 0px"})]})},ae=function(t){var a=t.active,r=t.size,i=r===void 0?4:r;return(0,e.jsxs)(O.Z,{bordered:!1,children:[(0,e.jsx)(h.Z.Button,{active:a,size:"small",style:{width:100,marginBottom:16}}),(0,e.jsx)(A,{header:!0,active:a}),new Array(i).fill(null).map(function(s,x){return(0,e.jsx)(A,{active:a},x)}),(0,e.jsx)("div",{style:{display:"flex",justifyContent:"flex-end",paddingTop:16},children:(0,e.jsx)(h.Z,{active:a,paragraph:!1,title:{style:{margin:0,height:32,float:"right",maxWidth:"630px"}}})})]})},q=function(t){var a=t.active;return(0,e.jsxs)(O.Z,{bordered:!1,style:{borderTopRightRadius:0,borderTopLeftRadius:0},children:[(0,e.jsx)(h.Z.Button,{active:a,size:"small",style:{width:100,marginBottom:16}}),(0,e.jsx)(z,{active:a}),(0,e.jsx)(J,{active:a})]})},R=function(t){var a=t.active,r=a===void 0?!0:a,i=t.pageHeader,s=t.list;return(0,e.jsxs)("div",{style:{width:"100%"},children:[i!==!1&&(0,e.jsx)(D,{active:r}),(0,e.jsx)(q,{active:r}),s!==!1&&(0,e.jsx)(je,{}),s!==!1&&(0,e.jsx)(ae,{active:r,size:s})]})},ie=R,se=function(t){var a=t.active,r=a===void 0?!0:a,i=t.pageHeader;return(0,e.jsxs)("div",{style:{width:"100%"},children:[i!==!1&&(0,e.jsx)(D,{active:r}),(0,e.jsx)(O.Z,{children:(0,e.jsxs)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",flexDirection:"column",padding:128},children:[(0,e.jsx)(h.Z.Avatar,{size:64,style:{marginBottom:32}}),(0,e.jsx)(h.Z.Button,{active:r,style:{width:214,marginBottom:8}}),(0,e.jsx)(h.Z.Button,{active:r,style:{width:328},size:"small"}),(0,e.jsxs)(Y.Z,{style:{marginTop:24},children:[(0,e.jsx)(h.Z.Button,{active:r,style:{width:116}}),(0,e.jsx)(h.Z.Button,{active:r,style:{width:116}})]})]})})]})},oe=se,de=["type"],ce=function(t){var a=t.type,r=a===void 0?"list":a,i=(0,xe.Z)(t,de);return r==="result"?(0,e.jsx)(oe,(0,d.Z)({},i)):r==="descriptions"?(0,e.jsx)(ie,(0,d.Z)({},i)):(0,e.jsx)(k,(0,d.Z)({},i))},N=ce,Se=n(34792),ue=n(48086),ne=n(28481),ye=n(78775),ee=n(21770),ge=n(86671);function Re(l){var t=l.data,a=l.row;return(0,d.Z)((0,d.Z)({},t),a)}function be(l){var t=l.type||"single",a=(0,ye.YB)(),r=(0,ee.Z)([],{value:l.editableKeys,onChange:l.onChange?function(y){var S;l==null||(S=l.onChange)===null||S===void 0||S.call(l,y,l.dataSource)}:void 0}),i=(0,ne.Z)(r,2),s=i[0],x=i[1],Z=(0,U.useMemo)(function(){var y=t==="single"?s==null?void 0:s.slice(0,1):s;return new Set(y)},[(s||[]).join(","),t]),o=(0,U.useCallback)(function(y){return!!(s==null?void 0:s.includes((0,ge.sN)(y)))},[(s||[]).join(",")]),P=function(S){return Z.size>0&&t==="single"?(ue.default.warn(l.onlyOneLineEditorAlertMessage||a.getMessage("editableTable.onlyOneLineEditor","\u53EA\u80FD\u540C\u65F6\u7F16\u8F91\u4E00\u884C")),!1):(Z.add((0,ge.sN)(S)),x(Array.from(Z)),!0)},$=function(S){return Z.delete((0,ge.sN)(S)),x(Array.from(Z)),!0},Q=function(){var y=(0,_.Z)((0,G.Z)().mark(function S(w,b,g,T){var L,M;return(0,G.Z)().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.next=2,l==null||(L=l.onCancel)===null||L===void 0?void 0:L.call(l,w,b,g,T);case 2:if(M=c.sent,M!==!1){c.next=5;break}return c.abrupt("return",!1);case 5:return c.abrupt("return",!0);case 6:case"end":return c.stop()}},S)}));return function(w,b,g,T){return y.apply(this,arguments)}}(),F=function(){var y=(0,_.Z)((0,G.Z)().mark(function S(w,b,g){var T,L,M;return(0,G.Z)().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.next=2,l==null||(T=l.onSave)===null||T===void 0?void 0:T.call(l,w,b,g);case 2:if(L=c.sent,L!==!1){c.next=5;break}return c.abrupt("return",!1);case 5:return $(w),M={data:l.dataSource,row:b,key:w,childrenColumnName:l.childrenColumnName||"children"},l.setDataSource(Re(M)),c.abrupt("return",!0);case 9:case"end":return c.stop()}},S)}));return function(w,b,g){return y.apply(this,arguments)}}(),K=a.getMessage("editableTable.action.save","\u4FDD\u5B58"),H=a.getMessage("editableTable.action.delete","\u5220\u9664"),B=a.getMessage("editableTable.action.cancel","\u53D6\u6D88"),X=(0,U.useCallback)(function(y,S){var w=(0,d.Z)({recordKey:y,cancelEditable:$,onCancel:Q,onSave:F,editableKeys:s,setEditableRowKeys:x,saveText:K,cancelText:B,deleteText:H,deletePopconfirmMessage:"".concat(a.getMessage("deleteThisLine","\u5220\u9664\u6B64\u884C"),"?"),editorType:"Map"},S),b=(0,ge.aX)(l.dataSource,w);return l.actionRender?l.actionRender(l.dataSource,w,{save:b[0],delete:b[1],cancel:b[2]}):b},[s&&s.join(","),l.dataSource]);return{editableKeys:s,setEditableRowKeys:x,isEditable:o,actionRender:X,startEditable:P,cancelEditable:$}}var he=be,Le=n(2026),Oe=n(94984),ke=n(77398),Fe=n(53621),We=n(78164),He=n(50344),Ve=n(88306),Ue=n(30939),it=n(65515),Qe=function(t,a){var r=a||{},i=r.onRequestError,s=r.effects,x=r.manual,Z=r.dataSource,o=r.defaultDataSource,P=r.onDataSourceChange,$=(0,ee.Z)(o,{value:Z,onChange:P}),Q=(0,ne.Z)($,2),F=Q[0],K=Q[1],H=(0,ee.Z)(a==null?void 0:a.loading,{value:a==null?void 0:a.loading,onChange:a==null?void 0:a.onLoadingChange}),B=(0,ne.Z)(H,2),X=B[0],y=B[1],S=function(g){K(g),y(!1)},w=function(){var b=(0,_.Z)((0,G.Z)().mark(function g(){var T,L,M;return(0,G.Z)().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:if(!X){c.next=2;break}return c.abrupt("return");case 2:return y(!0),c.prev=3,c.next=6,t();case 6:if(c.t0=c.sent,c.t0){c.next=9;break}c.t0={};case 9:T=c.t0,L=T.data,M=T.success,M!==!1&&S(L),c.next=23;break;case 15:if(c.prev=15,c.t1=c.catch(3),i!==void 0){c.next=21;break}throw new Error(c.t1);case 21:i(c.t1);case 22:y(!1);case 23:case"end":return c.stop()}},g,null,[[3,15]])}));return function(){return b.apply(this,arguments)}}();return(0,U.useEffect)(function(){x||w()},[].concat((0,V.Z)(s||[]),[x])),{dataSource:F,setDataSource:K,loading:X,reload:function(){return w()}}},Xe=Qe,Ge=["valueEnum","render","renderText","mode","plain","dataIndex","request","params","editable"],Ye=["request","columns","params","dataSource","onDataSourceChange","formProps","editable","loading","onLoadingChange","actionRef","onRequestError"],Je=function(t,a){var r=t.dataIndex;if(r){var i=Array.isArray(r)?(0,Ve.Z)(a,r):a[r];if(i!==void 0||i!==null)return i}return t.children},qe=function(t){var a=t.valueEnum,r=t.action,i=t.index,s=t.text,x=t.entity,Z=t.mode,o=t.render,P=t.editableUtils,$=t.valueType,Q=t.plain,F=t.dataIndex,K=t.request,H=t.renderFormItem,B=t.params,X=fe.ZP.useFormInstance(),y={text:s,valueEnum:a,mode:Z||"read",proFieldProps:{render:o?function(){return o==null?void 0:o(s,x,i,r,(0,d.Z)((0,d.Z)({},t),{},{type:"descriptions"}))}:void 0},ignoreFormItem:!0,valueType:$,request:K,params:B,plain:Q};if(Z==="read"||!Z||$==="option"){var S=(0,Le.Z)(t.fieldProps,void 0,(0,d.Z)((0,d.Z)({},t),{},{rowKey:F,isEditable:!1}));return(0,e.jsx)(Ze.Z,(0,d.Z)((0,d.Z)({name:F},y),{},{fieldProps:S}))}var w=function(){var g,T=(0,Le.Z)(t.formItemProps,X,(0,d.Z)((0,d.Z)({},t),{},{rowKey:F,isEditable:!0})),L=(0,Le.Z)(t.fieldProps,X,(0,d.Z)((0,d.Z)({},t),{},{rowKey:F,isEditable:!0})),M=H?H==null?void 0:H((0,d.Z)((0,d.Z)({},t),{},{type:"descriptions"}),{isEditable:!0,recordKey:F,record:X.getFieldValue([F].flat(1)),defaultRender:function(){return(0,e.jsx)(Ze.Z,(0,d.Z)((0,d.Z)({},y),{},{fieldProps:L}))},type:"descriptions"},X):void 0;return(0,e.jsxs)(Y.Z,{children:[(0,e.jsx)(Oe.Z,(0,d.Z)((0,d.Z)({name:F},T),{},{style:(0,d.Z)({margin:0},(T==null?void 0:T.style)||{}),initialValue:s||(T==null?void 0:T.initialValue),children:M||(0,e.jsx)(Ze.Z,(0,d.Z)((0,d.Z)({},y),{},{proFieldProps:(0,d.Z)({},y.proFieldProps),fieldProps:L}))})),P==null||(g=P.actionRender)===null||g===void 0?void 0:g.call(P,F||i,{cancelText:(0,e.jsx)(ve.Z,{}),saveText:(0,e.jsx)(De.Z,{}),deleteText:!1})]})};return(0,e.jsx)("div",{style:{marginTop:-5,marginBottom:-5,marginLeft:0,marginRight:0},children:w()})},_e=function(t,a,r,i){var s,x=[],Z=t==null||(s=t.map)===null||s===void 0?void 0:s.call(t,function(o,P){var $,Q;if(U.isValidElement(o))return o;var F=o.valueEnum,K=o.render,H=o.renderText,B=o.mode,X=o.plain,y=o.dataIndex,S=o.request,w=o.params,b=o.editable,g=(0,xe.Z)(o,Ge),T=($=Je(o,a))!==null&&$!==void 0?$:g.children,L=H?H(T,a,P,r):T,M=typeof g.title=="function"?g.title(o,"descriptions",null):g.title,te=typeof g.valueType=="function"?g.valueType(a||{},"descriptions"):g.valueType,c=i==null?void 0:i.isEditable(y||P),re=B||c?"edit":"read",p=i&&re==="read"&&b!==!1&&(b==null?void 0:b(L,a,P))!==!1,C=p?Y.Z:U.Fragment,Be=re==="edit"?L:(0,ke.X)(L,o,L),Te=(0,U.createElement)(v.Z.Item,(0,d.Z)((0,d.Z)({},g),{},{key:g.key||((Q=g.label)===null||Q===void 0?void 0:Q.toString())||P,label:(M||g.label||g.tooltip||g.tip)&&(0,e.jsx)(Fe.Z,{label:M||g.label,tooltip:g.tooltip||g.tip,ellipsis:o.ellipsis})}),(0,e.jsxs)(C,{children:[(0,e.jsx)(qe,(0,d.Z)((0,d.Z)({},o),{},{dataIndex:o.dataIndex||P,mode:re,text:Be,valueType:te,entity:a,index:P,action:r,editableUtils:i})),p&&te!=="option"&&(0,e.jsx)(pe.Z,{onClick:function(){i==null||i.startEditable(y||P)}})]}));return te==="option"?(x.push(Te),null):Te}).filter(function(o){return o});return{options:(x==null?void 0:x.length)?x:null,children:Z}},et=function(t){return(0,e.jsx)(v.Z.Item,(0,d.Z)((0,d.Z)({},t),{},{children:t.children}))},tt=function(t){return t.children},Ae=function(t){var a,r=t.request,i=t.columns,s=t.params,x=s===void 0?{}:s,Z=t.dataSource,o=t.onDataSourceChange,P=t.formProps,$=t.editable,Q=t.loading,F=t.onLoadingChange,K=t.actionRef,H=t.onRequestError,B=(0,xe.Z)(t,Ye),X=(0,U.useContext)(le.ZP.ConfigContext),y=Xe((0,_.Z)((0,G.Z)().mark(function c(){var re;return(0,G.Z)().wrap(function(C){for(;;)switch(C.prev=C.next){case 0:if(!r){C.next=6;break}return C.next=3,r(x);case 3:C.t0=C.sent,C.next=7;break;case 6:C.t0={data:{}};case 7:return re=C.t0,C.abrupt("return",re);case 9:case"end":return C.stop()}},c)})),{onRequestError:H,effects:[(0,Ue.P)(x)],manual:!r,dataSource:Z,loading:Q,onLoadingChange:F,onDataSourceChange:o}),S=he((0,d.Z)((0,d.Z)({},t.editable),{},{childrenColumnName:void 0,dataSource:y.dataSource,setDataSource:y.setDataSource}));if((0,U.useEffect)(function(){K&&(K.current=(0,d.Z)({reload:y.reload},S))},[y,K,S]),y.loading||y.loading===void 0&&r)return(0,e.jsx)(N,{type:"descriptions",list:!1,pageHeader:!1});var w=function(){var re=(0,He.Z)(t.children).filter(Boolean).map(function(p){if(!U.isValidElement(p))return p;var C=p==null?void 0:p.props,Be=C.valueEnum,Te=C.valueType,Ke=C.dataIndex,nt=C.ellipsis,rt=C.copyable,lt=C.request;return!Te&&!Be&&!Ke&&!lt&&!nt&&!rt?p:(0,d.Z)((0,d.Z)({},p==null?void 0:p.props),{},{entity:Z})});return[].concat((0,V.Z)(i||[]),(0,V.Z)(re)).filter(function(p){return!p||(p==null?void 0:p.valueType)&&["index","indexBorder"].includes(p==null?void 0:p.valueType)?!1:!(p==null?void 0:p.hideInDescriptions)}).sort(function(p,C){return C.order||p.order?(C.order||0)-(p.order||0):(C.index||0)-(p.index||0)})},b=_e(w(),y.dataSource||{},(K==null?void 0:K.current)||y,$?S:void 0),g=b.options,T=b.children,L=$?fe.ZP:tt,M=null;(B.title||B.tooltip||B.tip)&&(M=(0,e.jsx)(Fe.Z,{label:B.title,tooltip:B.tooltip||B.tip}));var te=X.getPrefixCls("pro-descriptions");return(0,e.jsx)(We.Z,{children:(0,e.jsx)(L,(0,d.Z)((0,d.Z)({form:(a=t.editable)===null||a===void 0?void 0:a.form,component:!1,submitter:!1},P),{},{onFinish:void 0,children:(0,e.jsx)(v.Z,(0,d.Z)((0,d.Z)({className:te},B),{},{extra:B.extra?(0,e.jsxs)(Y.Z,{children:[g,B.extra]}):g,title:M,children:T}))}),"form")})};Ae.Item=et;var at=Ae},65515:function(){},52953:function(){},4914:function(we,Ce,n){"use strict";n.d(Ce,{K:function(){return O},Z:function(){return je}});var V=n(96156),G=n(28481),_=n(90484),Pe=n(94184),le=n.n(Pe),ze=n(50344),v=n(67294),xe=n(53124),Me=n(96159),Y=n(24308),d=function(u){var m=u.children;return m},U=d,e=n(22122);function ve(f){return f!=null}var De=function(u){var m=u.itemPrefixCls,j=u.component,D=u.span,I=u.className,E=u.style,k=u.labelStyle,W=u.contentStyle,J=u.bordered,z=u.label,A=u.content,ae=u.colon,q=j;if(J){var R;return v.createElement(q,{className:le()((R={},(0,V.Z)(R,"".concat(m,"-item-label"),ve(z)),(0,V.Z)(R,"".concat(m,"-item-content"),ve(A)),R),I),style:E,colSpan:D},ve(z)&&v.createElement("span",{style:k},z),ve(A)&&v.createElement("span",{style:W},A))}return v.createElement(q,{className:le()("".concat(m,"-item"),I),style:E,colSpan:D},v.createElement("div",{className:"".concat(m,"-item-container")},(z||z===0)&&v.createElement("span",{className:le()("".concat(m,"-item-label"),(0,V.Z)({},"".concat(m,"-item-no-colon"),!ae)),style:k},z),(A||A===0)&&v.createElement("span",{className:le()("".concat(m,"-item-content")),style:W},A)))},pe=De;function fe(f,u,m){var j=u.colon,D=u.prefixCls,I=u.bordered,E=m.component,k=m.type,W=m.showLabel,J=m.showContent,z=m.labelStyle,A=m.contentStyle;return f.map(function(ae,q){var R=ae.props,ie=R.label,se=R.children,oe=R.prefixCls,de=oe===void 0?D:oe,ce=R.className,N=R.style,Se=R.labelStyle,ue=R.contentStyle,ne=R.span,ye=ne===void 0?1:ne,ee=ae.key;return typeof E=="string"?v.createElement(pe,{key:"".concat(k,"-").concat(ee||q),className:ce,style:N,labelStyle:(0,e.Z)((0,e.Z)({},z),Se),contentStyle:(0,e.Z)((0,e.Z)({},A),ue),span:ye,colon:j,component:E,itemPrefixCls:de,bordered:I,label:W?ie:null,content:J?se:null}):[v.createElement(pe,{key:"label-".concat(ee||q),className:ce,style:(0,e.Z)((0,e.Z)((0,e.Z)({},z),N),Se),span:1,colon:j,component:E[0],itemPrefixCls:de,bordered:I,label:ie}),v.createElement(pe,{key:"content-".concat(ee||q),className:ce,style:(0,e.Z)((0,e.Z)((0,e.Z)({},A),N),ue),span:ye*2-1,component:E[1],itemPrefixCls:de,bordered:I,content:se})]})}var Ze=function(u){var m=v.useContext(O),j=u.prefixCls,D=u.vertical,I=u.row,E=u.index,k=u.bordered;return D?v.createElement(v.Fragment,null,v.createElement("tr",{key:"label-".concat(E),className:"".concat(j,"-row")},fe(I,u,(0,e.Z)({component:"th",type:"label",showLabel:!0},m))),v.createElement("tr",{key:"content-".concat(E),className:"".concat(j,"-row")},fe(I,u,(0,e.Z)({component:"td",type:"content",showContent:!0},m)))):v.createElement("tr",{key:E,className:"".concat(j,"-row")},fe(I,u,(0,e.Z)({component:k?["th","td"]:"td",type:"item",showLabel:!0,showContent:!0},m)))},Ne=Ze,O=v.createContext({}),Ie={xxl:3,xl:3,lg:3,md:3,sm:2,xs:1};function h(f,u){if(typeof f=="number")return f;if((0,_.Z)(f)==="object")for(var m=0;mm)&&(j=(0,Me.Tm)(f,{span:m})),j}function $e(f,u){var m=(0,ze.Z)(f).filter(function(E){return E}),j=[],D=[],I=u;return m.forEach(function(E,k){var W,J=(W=E.props)===null||W===void 0?void 0:W.span,z=J||1;if(k===m.length-1){D.push(me(E,J,I)),j.push(D);return}z0&&arguments[0]!==void 0?arguments[0]:[],P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],M=v.length,e=P.length;if(Math.abs(M-e)!==1)return{add:!1,key:null};function y(z,_){var n=new Map;z.forEach(function(a){n.set(a,!0)});var r=_.filter(function(a){return!n.has(a)});return r.length===1?r[0]:null}return M ").concat(P);return P}var Ee=g.forwardRef(function(v,P){var M=v.prefixCls,e=v.data,y=v.selectable,z=v.checkable,_=v.expandedKeys,n=v.selectedKeys,r=v.checkedKeys,a=v.loadedKeys,p=v.loadingKeys,m=v.halfCheckedKeys,b=v.keyEntities,E=v.disabled,T=v.dragging,R=v.dragOverNodeKey,$=v.dropPosition,c=v.motion,W=v.height,U=v.itemHeight,Z=v.virtual,H=v.focusable,X=v.activeItem,de=v.focused,ce=v.tabIndex,ee=v.onKeyDown,he=v.onFocus,ue=v.onBlur,ve=v.onActiveChange,Ke=v.onListChangeStart,Oe=v.onListChangeEnd,Te=(0,u.Z)(v,d),Le=g.useRef(null),be=g.useRef(null);g.useImperativeHandle(P,function(){return{scrollTo:function(Me){Le.current.scrollTo(Me)},getIndentWidth:function(){return be.current.offsetWidth}}});var Ue=g.useState(_),He=(0,s.Z)(Ue,2),Xe=He[0],Ve=He[1],Je=g.useState(e),Ge=(0,s.Z)(Je,2),Ze=Ge[0],je=Ge[1],Qe=g.useState(e),ze=(0,s.Z)(Qe,2),qe=ze[0],Fe=ze[1],et=g.useState([]),Re=(0,s.Z)(et,2),it=Re[0],tt=Re[1],st=g.useState(null),rt=(0,s.Z)(st,2),lt=rt[0],nt=rt[1],ot=g.useRef(e);ot.current=e;function at(){var le=ot.current;je(le),Fe(le),tt([]),nt(null),Oe()}g.useEffect(function(){Ve(_);var le=k(Xe,_);if(le.key!==null)if(le.add){var Me=Ze.findIndex(function(We){var _e=We.key;return _e===le.key}),Ae=G(I(Ze,e,le.key),Z,W,U),Be=Ze.slice();Be.splice(Me+1,0,V),Fe(Be),tt(Ae),nt("show")}else{var Ie=e.findIndex(function(We){var _e=We.key;return _e===le.key}),we=G(I(e,Ze,le.key),Z,W,U),Ye=e.slice();Ye.splice(Ie+1,0,V),Fe(Ye),tt(we),nt("hide")}else Ze!==e&&(je(e),Fe(e))},[_,e]),g.useEffect(function(){T||at()},[T]);var ct=c?qe:e,dt={expandedKeys:_,selectedKeys:n,loadedKeys:a,loadingKeys:p,checkedKeys:r,halfCheckedKeys:m,dragOverNodeKey:R,dropPosition:$,keyEntities:b};return g.createElement(g.Fragment,null,de&&X&&g.createElement("span",{style:o,"aria-live":"assertive"},fe(X)),g.createElement("div",null,g.createElement("input",{style:o,disabled:H===!1||E,tabIndex:H!==!1?ce:null,onKeyDown:ee,onFocus:he,onBlur:ue,value:"",onChange:N,"aria-label":"for screen reader"})),g.createElement("div",{className:"".concat(M,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},g.createElement("div",{className:"".concat(M,"-indent")},g.createElement("div",{ref:be,className:"".concat(M,"-indent-unit")}))),g.createElement(f.Z,(0,ie.Z)({},Te,{data:ct,itemKey:q,height:W,fullHeight:!1,virtual:Z,itemHeight:U,prefixCls:"".concat(M,"-list"),ref:Le,onVisibleChange:function(Me,Ae){var Be=new Set(Me),Ie=Ae.filter(function(we){return!Be.has(we)});Ie.some(function(we){return q(we)===K})&&at()}}),function(le){var Me=le.pos,Ae=(0,ie.Z)({},(h(le.data),le.data)),Be=le.title,Ie=le.key,we=le.isStart,Ye=le.isEnd,We=(0,i.km)(Ie,Me);delete Ae.key,delete Ae.children;var _e=(0,i.H8)(We,dt);return g.createElement(D,(0,ie.Z)({},Ae,_e,{title:Be,active:!!X&&Ie===X.key,pos:Me,data:le.data,isStart:we,isEnd:Ye,motion:c,motionNodes:Ie===K?it:null,motionType:lt,onMotionStart:Ke,onMotionEnd:at,treeNodeRequiredProps:dt,onMouseMove:function(){ve(null)}}))}))});Ee.displayName="NodeList";var xe=Ee,De=l(17341);function ke(v){var P=v.dropPosition,M=v.dropLevelOffset,e=v.indent,y={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(P){case-1:y.top=0,y.left=-M*e;break;case 1:y.bottom=0,y.left=-M*e;break;case 0:y.bottom=0,y.left=e;break}return g.createElement("div",{style:y})}var ye=10,Pe=function(v){(0,Y.Z)(M,v);var P=(0,O.Z)(M);function M(){var e;(0,Ce.Z)(this,M);for(var y=arguments.length,z=new Array(y),_=0;_2&&arguments[2]!==void 0?arguments[2]:!1,m=e.state,b=m.dragChildrenKeys,E=m.dropPosition,T=m.dropTargetKey,R=m.dropTargetPos,$=m.dropAllowed;if(!!$){var c=e.props.onDrop;if(e.setState({dragOverNodeKey:null}),e.cleanDragState(),T!==null){var W=(0,se.Z)((0,se.Z)({},(0,i.H8)(T,e.getTreeNodeRequiredProps())),{},{active:((a=e.getActiveItem())===null||a===void 0?void 0:a.key)===T,data:e.state.keyEntities[T].node}),U=b.indexOf(T)!==-1;(0,Q.ZP)(!U,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var Z=(0,C.yx)(R),H={event:n,node:(0,i.F)(W),dragNode:e.dragNode?(0,i.F)(e.dragNode.props):null,dragNodesKeys:[e.dragNode.props.eventKey].concat(b),dropToGap:E!==0,dropPosition:E+Number(Z[Z.length-1])};p||c==null||c(H),e.dragNode=null}}},e.cleanDragState=function(){var n=e.state.draggingNodeKey;n!==null&&e.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),e.dragStartMousePosition=null,e.currentMouseOverDroppableNodeKey=null},e.triggerExpandActionExpand=function(n,r){var a=e.state,p=a.expandedKeys,m=a.flattenNodes,b=r.expanded,E=r.key,T=r.isLeaf;if(!(T||n.shiftKey||n.metaKey||n.ctrlKey)){var R=m.filter(function(c){return c.key===E})[0],$=(0,i.F)((0,se.Z)((0,se.Z)({},(0,i.H8)(E,e.getTreeNodeRequiredProps())),{},{data:R.data}));e.setExpandedKeys(b?(0,C._5)(p,E):(0,C.L0)(p,E)),e.onNodeExpand(n,$)}},e.onNodeClick=function(n,r){var a=e.props,p=a.onClick,m=a.expandAction;m==="click"&&e.triggerExpandActionExpand(n,r),p==null||p(n,r)},e.onNodeDoubleClick=function(n,r){var a=e.props,p=a.onDoubleClick,m=a.expandAction;m==="doubleClick"&&e.triggerExpandActionExpand(n,r),p==null||p(n,r)},e.onNodeSelect=function(n,r){var a=e.state.selectedKeys,p=e.state,m=p.keyEntities,b=p.fieldNames,E=e.props,T=E.onSelect,R=E.multiple,$=r.selected,c=r[b.key],W=!$;W?R?a=(0,C.L0)(a,c):a=[c]:a=(0,C._5)(a,c);var U=a.map(function(Z){var H=m[Z];return H?H.node:null}).filter(function(Z){return Z});e.setUncontrolledState({selectedKeys:a}),T==null||T(a,{event:"select",selected:W,node:r,selectedNodes:U,nativeEvent:n.nativeEvent})},e.onNodeCheck=function(n,r,a){var p=e.state,m=p.keyEntities,b=p.checkedKeys,E=p.halfCheckedKeys,T=e.props,R=T.checkStrictly,$=T.onCheck,c=r.key,W,U={event:"check",node:r,checked:a,nativeEvent:n.nativeEvent};if(R){var Z=a?(0,C.L0)(b,c):(0,C._5)(b,c),H=(0,C._5)(E,c);W={checked:Z,halfChecked:H},U.checkedNodes=Z.map(function(ue){return m[ue]}).filter(function(ue){return ue}).map(function(ue){return ue.node}),e.setUncontrolledState({checkedKeys:Z})}else{var X=(0,De.S)([].concat((0,Ne.Z)(b),[c]),!0,m),de=X.checkedKeys,ce=X.halfCheckedKeys;if(!a){var ee=new Set(de);ee.delete(c);var he=(0,De.S)(Array.from(ee),{checked:!1,halfCheckedKeys:ce},m);de=he.checkedKeys,ce=he.halfCheckedKeys}W=de,U.checkedNodes=[],U.checkedNodesPositions=[],U.halfCheckedKeys=ce,de.forEach(function(ue){var ve=m[ue];if(!!ve){var Ke=ve.node,Oe=ve.pos;U.checkedNodes.push(Ke),U.checkedNodesPositions.push({node:Ke,pos:Oe})}}),e.setUncontrolledState({checkedKeys:de},!1,{halfCheckedKeys:ce})}$==null||$(W,U)},e.onNodeLoad=function(n){var r=n.key,a=new Promise(function(p,m){e.setState(function(b){var E=b.loadedKeys,T=E===void 0?[]:E,R=b.loadingKeys,$=R===void 0?[]:R,c=e.props,W=c.loadData,U=c.onLoad;if(!W||T.indexOf(r)!==-1||$.indexOf(r)!==-1)return null;var Z=W(n);return Z.then(function(){var H=e.state.loadedKeys,X=(0,C.L0)(H,r);U==null||U(X,{event:"load",node:n}),e.setUncontrolledState({loadedKeys:X}),e.setState(function(de){return{loadingKeys:(0,C._5)(de.loadingKeys,r)}}),p()}).catch(function(H){if(e.setState(function(de){return{loadingKeys:(0,C._5)(de.loadingKeys,r)}}),e.loadingRetryTimes[r]=(e.loadingRetryTimes[r]||0)+1,e.loadingRetryTimes[r]>=ye){var X=e.state.loadedKeys;(0,Q.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),e.setUncontrolledState({loadedKeys:(0,C.L0)(X,r)}),p()}m(H)}),{loadingKeys:(0,C.L0)($,r)}})});return a.catch(function(){}),a},e.onNodeMouseEnter=function(n,r){var a=e.props.onMouseEnter;a==null||a({event:n,node:r})},e.onNodeMouseLeave=function(n,r){var a=e.props.onMouseLeave;a==null||a({event:n,node:r})},e.onNodeContextMenu=function(n,r){var a=e.props.onRightClick;a&&(n.preventDefault(),a({event:n,node:r}))},e.onFocus=function(){var n=e.props.onFocus;e.setState({focused:!0});for(var r=arguments.length,a=new Array(r),p=0;p1&&arguments[1]!==void 0?arguments[1]:!1,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!e.destroyed){var p=!1,m=!0,b={};Object.keys(n).forEach(function(E){if(E in e.props){m=!1;return}p=!0,b[E]=n[E]}),p&&(!r||m)&&e.setState((0,se.Z)((0,se.Z)({},b),a))}},e.scrollTo=function(n){e.listRef.current.scrollTo(n)},e}return(0,te.Z)(M,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var y=this.props.activeKey;y!==void 0&&y!==this.state.activeKey&&(this.setState({activeKey:y}),y!==null&&this.scrollTo({key:y}))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("dragend",this.onWindowDragEnd),this.destroyed=!0}},{key:"resetDragState",value:function(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}},{key:"render",value:function(){var y,z=this.state,_=z.focused,n=z.flattenNodes,r=z.keyEntities,a=z.draggingNodeKey,p=z.activeKey,m=z.dropLevelOffset,b=z.dropContainerKey,E=z.dropTargetKey,T=z.dropPosition,R=z.dragOverNodeKey,$=z.indent,c=this.props,W=c.prefixCls,U=c.className,Z=c.style,H=c.showLine,X=c.focusable,de=c.tabIndex,ce=de===void 0?0:de,ee=c.selectable,he=c.showIcon,ue=c.icon,ve=c.switcherIcon,Ke=c.draggable,Oe=c.checkable,Te=c.checkStrictly,Le=c.disabled,be=c.motion,Ue=c.loadData,He=c.filterTreeNode,Xe=c.height,Ve=c.itemHeight,Je=c.virtual,Ge=c.titleRender,Ze=c.dropIndicatorRender,je=c.onContextMenu,Qe=c.onScroll,ze=c.direction,qe=c.rootClassName,Fe=c.rootStyle,et=(0,ne.Z)(this.props,{aria:!0,data:!0}),Re;return Ke&&((0,ge.Z)(Ke)==="object"?Re=Ke:typeof Ke=="function"?Re={nodeDraggable:Ke}:Re={}),g.createElement(j.k.Provider,{value:{prefixCls:W,selectable:ee,showIcon:he,icon:ue,switcherIcon:ve,draggable:Re,draggingNodeKey:a,checkable:Oe,checkStrictly:Te,disabled:Le,keyEntities:r,dropLevelOffset:m,dropContainerKey:b,dropTargetKey:E,dropPosition:T,dragOverNodeKey:R,indent:$,direction:ze,dropIndicatorRender:Ze,loadData:Ue,filterTreeNode:He,titleRender:Ge,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop}},g.createElement("div",{role:"tree",className:oe()(W,U,qe,(y={},(0,F.Z)(y,"".concat(W,"-show-line"),H),(0,F.Z)(y,"".concat(W,"-focused"),_),(0,F.Z)(y,"".concat(W,"-active-focused"),p!==null),y)),style:Fe},g.createElement(xe,(0,ie.Z)({ref:this.listRef,prefixCls:W,style:Z,data:n,disabled:Le,selectable:ee,checkable:!!Oe,motion:be,dragging:a!==null,height:Xe,itemHeight:Ve,virtual:Je,focusable:X,focused:_,tabIndex:ce,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:je,onScroll:Qe},this.getTreeNodeRequiredProps(),et))))}}],[{key:"getDerivedStateFromProps",value:function(y,z){var _=z.prevProps,n={prevProps:y};function r(X){return!_&&X in y||_&&_[X]!==y[X]}var a,p=z.fieldNames;if(r("fieldNames")&&(p=(0,i.w$)(y.fieldNames),n.fieldNames=p),r("treeData")?a=y.treeData:r("children")&&((0,Q.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),a=(0,i.zn)(y.children)),a){n.treeData=a;var m=(0,i.I8)(a,{fieldNames:p});n.keyEntities=(0,se.Z)((0,F.Z)({},K,re),m.keyEntities)}var b=n.keyEntities||z.keyEntities;if(r("expandedKeys")||_&&r("autoExpandParent"))n.expandedKeys=y.autoExpandParent||!_&&y.defaultExpandParent?(0,C.r7)(y.expandedKeys,b):y.expandedKeys;else if(!_&&y.defaultExpandAll){var E=(0,se.Z)({},b);delete E[K],n.expandedKeys=Object.keys(E).map(function(X){return E[X].key})}else!_&&y.defaultExpandedKeys&&(n.expandedKeys=y.autoExpandParent||y.defaultExpandParent?(0,C.r7)(y.defaultExpandedKeys,b):y.defaultExpandedKeys);if(n.expandedKeys||delete n.expandedKeys,a||n.expandedKeys){var T=(0,i.oH)(a||z.treeData,n.expandedKeys||z.expandedKeys,p);n.flattenNodes=T}if(y.selectable&&(r("selectedKeys")?n.selectedKeys=(0,C.BT)(y.selectedKeys,y):!_&&y.defaultSelectedKeys&&(n.selectedKeys=(0,C.BT)(y.defaultSelectedKeys,y))),y.checkable){var R;if(r("checkedKeys")?R=(0,C.E6)(y.checkedKeys)||{}:!_&&y.defaultCheckedKeys?R=(0,C.E6)(y.defaultCheckedKeys)||{}:a&&(R=(0,C.E6)(y.checkedKeys)||{checkedKeys:z.checkedKeys,halfCheckedKeys:z.halfCheckedKeys}),R){var $=R,c=$.checkedKeys,W=c===void 0?[]:c,U=$.halfCheckedKeys,Z=U===void 0?[]:U;if(!y.checkStrictly){var H=(0,De.S)(W,!0,b);W=H.checkedKeys,Z=H.halfCheckedKeys}n.checkedKeys=W,n.halfCheckedKeys=Z}}return r("loadedKeys")&&(n.loadedKeys=y.loadedKeys),n}}]),M}(g.Component);Pe.defaultProps={prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:ke,allowDrop:function(){return!0},expandAction:!1},Pe.TreeNode=x.Z;var Se=Pe,pe=Se},10225:function($e,me,l){"use strict";l.d(me,{_5:function(){return te},L0:function(){return J},yx:function(){return Y},bt:function(){return O},Ds:function(){return g},wA:function(){return w},OM:function(){return ae},BT:function(){return oe},E6:function(){return i},r7:function(){return h}});var ie=l(85061),F=l(90484),ge=l(67294),se=l(80334),Ne=l(4258),Ce=null;function te(s,u){if(!s)return[];var f=s.slice(),L=f.indexOf(u);return L>=0&&f.splice(L,1),f}function J(s,u){var f=(s||[]).slice();return f.indexOf(u)===-1&&f.push(u),f}function Y(s){return s.split("-")}function O(s,u){return"".concat(s,"-").concat(u)}function g(s){return s&&s.type&&s.type.isTreeNode}function w(s,u){var f=[],L=u[s];function x(){var S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];S.forEach(function(A){var t=A.key,D=A.children;f.push(t),x(D)})}return x(L.children),f}function Q(s){if(s.parent){var u=Y(s.pos);return Number(u[u.length-1])===s.parent.children.length-1}return!1}function ne(s){var u=Y(s.pos);return Number(u[u.length-1])===0}function ae(s,u,f,L,x,S,A,t,D,k){var I,d=s.clientX,o=s.clientY,N=s.target.getBoundingClientRect(),K=N.top,B=N.height,re=(k==="rtl"?-1:1)*(((x==null?void 0:x.x)||0)-d),V=(re-12)/L,G=t[f.props.eventKey];if(o-1.5?S({dragNode:pe,dropNode:v,dropPosition:1})?ye=1:P=!1:S({dragNode:pe,dropNode:v,dropPosition:0})?ye=0:S({dragNode:pe,dropNode:v,dropPosition:1})?ye=1:P=!1:S({dragNode:pe,dropNode:v,dropPosition:1})?ye=1:P=!1,{dropPosition:ye,dropLevelOffset:Pe,dropTargetKey:G.key,dropTargetPos:G.pos,dragOverNodeKey:ke,dropContainerKey:ye===0?null:((I=G.parent)===null||I===void 0?void 0:I.key)||null,dropAllowed:P}}function oe(s,u){if(!!s){var f=u.multiple;return f?s.slice():s.length?[s[0]]:s}}var j=function(u){return u};function C(s,u){if(!s)return[];var f=u||{},L=f.processProps,x=L===void 0?j:L,S=Array.isArray(s)?s:[s];return S.map(function(A){var t=A.children,D=_objectWithoutProperties(A,Ce),k=C(t,u);return React.createElement(TreeNode,_extends({key:D.key},x(D)),k)})}function i(s){if(!s)return null;var u;if(Array.isArray(s))u={checkedKeys:s,halfCheckedKeys:void 0};else if((0,F.Z)(s)==="object")u={checkedKeys:s.checked||void 0,halfCheckedKeys:s.halfChecked||void 0};else return(0,se.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return u}function h(s,u){var f=new Set;function L(x){if(!f.has(x)){var S=u[x];if(!!S){f.add(x);var A=S.parent,t=S.node;t.disabled||A&&L(A.key)}}}return(s||[]).forEach(function(x){L(x)}),(0,ie.Z)(f)}},17341:function($e,me,l){"use strict";l.d(me,{S:function(){return Ce}});var ie=l(80334);function F(te,J){var Y=new Set;return te.forEach(function(O){J.has(O)||Y.add(O)}),Y}function ge(te){var J=te||{},Y=J.disabled,O=J.disableCheckbox,g=J.checkable;return!!(Y||O)||g===!1}function se(te,J,Y,O){for(var g=new Set(te),w=new Set,Q=0;Q<=Y;Q+=1){var ne=J.get(Q)||new Set;ne.forEach(function(C){var i=C.key,h=C.node,s=C.children,u=s===void 0?[]:s;g.has(i)&&!O(h)&&u.filter(function(f){return!O(f.node)}).forEach(function(f){g.add(f.key)})})}for(var ae=new Set,oe=Y;oe>=0;oe-=1){var j=J.get(oe)||new Set;j.forEach(function(C){var i=C.parent,h=C.node;if(!(O(h)||!C.parent||ae.has(C.parent.key))){if(O(C.parent.node)){ae.add(i.key);return}var s=!0,u=!1;(i.children||[]).filter(function(f){return!O(f.node)}).forEach(function(f){var L=f.key,x=g.has(L);s&&!x&&(s=!1),!u&&(x||w.has(L))&&(u=!0)}),s&&g.add(i.key),u&&w.add(i.key),ae.add(i.key)}})}return{checkedKeys:Array.from(g),halfCheckedKeys:Array.from(F(w,g))}}function Ne(te,J,Y,O,g){for(var w=new Set(te),Q=new Set(J),ne=0;ne<=O;ne+=1){var ae=Y.get(ne)||new Set;ae.forEach(function(i){var h=i.key,s=i.node,u=i.children,f=u===void 0?[]:u;!w.has(h)&&!Q.has(h)&&!g(s)&&f.filter(function(L){return!g(L.node)}).forEach(function(L){w.delete(L.key)})})}Q=new Set;for(var oe=new Set,j=O;j>=0;j-=1){var C=Y.get(j)||new Set;C.forEach(function(i){var h=i.parent,s=i.node;if(!(g(s)||!i.parent||oe.has(i.parent.key))){if(g(i.parent.node)){oe.add(h.key);return}var u=!0,f=!1;(h.children||[]).filter(function(L){return!g(L.node)}).forEach(function(L){var x=L.key,S=w.has(x);u&&!S&&(u=!1),!f&&(S||Q.has(x))&&(f=!0)}),u||w.delete(h.key),f&&Q.add(h.key),oe.add(h.key)}})}return{checkedKeys:Array.from(w),halfCheckedKeys:Array.from(F(Q,w))}}function Ce(te,J,Y,O){var g=[],w;O?w=O:w=ge;var Q=new Set(te.filter(function(j){var C=!!Y[j];return C||g.push(j),C})),ne=new Map,ae=0;Object.keys(Y).forEach(function(j){var C=Y[j],i=C.level,h=ne.get(i);h||(h=new Set,ne.set(i,h)),h.add(C),ae=Math.max(ae,i)}),(0,ie.ZP)(!g.length,"Tree missing follow keys: ".concat(g.slice(0,100).map(function(j){return"'".concat(j,"'")}).join(", ")));var oe;return J===!0?oe=se(Q,ne,ae,w):oe=Ne(Q,J.halfCheckedKeys,ne,ae,w),oe}},1089:function($e,me,l){"use strict";l.d(me,{km:function(){return O},w$:function(){return g},zn:function(){return Q},oH:function(){return ne},I8:function(){return oe},H8:function(){return j},F:function(){return C}});var ie=l(90484),F=l(85061),ge=l(28991),se=l(81253),Ne=l(98423),Ce=l(50344),te=l(80334),J=l(10225),Y=["children"];function O(i,h){return i!=null?i:h}function g(i){var h=i||{},s=h.title,u=h._title,f=h.key,L=h.children,x=s||"title";return{title:x,_title:u||[x],key:f||"key",children:L||"children"}}function w(i,h){var s=new Map;function u(f){var L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(f||[]).forEach(function(x){var S=x[h.key],A=x[h.children];warning(S!=null,"Tree node must have a certain key: [".concat(L).concat(S,"]"));var t=String(S);warning(!s.has(t)||S===null||S===void 0,"Same 'key' exist in the Tree: ".concat(t)),s.set(t,!0),u(A,"".concat(L).concat(t," > "))})}u(i)}function Q(i){function h(s){var u=(0,Ce.Z)(s);return u.map(function(f){if(!(0,J.Ds)(f))return(0,te.ZP)(!f,"Tree/TreeNode can only accept TreeNode as children."),null;var L=f.key,x=f.props,S=x.children,A=(0,se.Z)(x,Y),t=(0,ge.Z)({key:L},A),D=h(S);return D.length&&(t.children=D),t}).filter(function(f){return f})}return h(i)}function ne(i,h,s){var u=g(s),f=u._title,L=u.key,x=u.children,S=new Set(h===!0?[]:h),A=[];function t(D){var k=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return D.map(function(I,d){for(var o=(0,J.bt)(k?k.pos:"0",d),N=O(I[L],o),K,B=0;B1&&arguments[1]!==void 0?arguments[1]:{},s=h.initWrapper,u=h.processEntity,f=h.onProcessFinished,L=h.externalGetKey,x=h.childrenPropName,S=h.fieldNames,A=arguments.length>2?arguments[2]:void 0,t=L||A,D={},k={},I={posEntities:D,keyEntities:k};return s&&(I=s(I)||I),ae(i,function(d){var o=d.node,N=d.index,K=d.pos,B=d.key,re=d.parentPos,V=d.level,G=d.nodes,q={node:o,nodes:G,index:N,key:B,pos:K,level:V},fe=O(B,K);D[K]=q,k[fe]=q,q.parent=D[re],q.parent&&(q.parent.children=q.parent.children||[],q.parent.children.push(q)),u&&u(q,I)},{externalGetKey:t,childrenPropName:x,fieldNames:S}),f&&f(I),I}function j(i,h){var s=h.expandedKeys,u=h.selectedKeys,f=h.loadedKeys,L=h.loadingKeys,x=h.checkedKeys,S=h.halfCheckedKeys,A=h.dragOverNodeKey,t=h.dropPosition,D=h.keyEntities,k=D[i],I={eventKey:i,expanded:s.indexOf(i)!==-1,selected:u.indexOf(i)!==-1,loaded:f.indexOf(i)!==-1,loading:L.indexOf(i)!==-1,checked:x.indexOf(i)!==-1,halfChecked:S.indexOf(i)!==-1,pos:String(k?k.pos:""),dragOver:A===i&&t===0,dragOverGapTop:A===i&&t===-1,dragOverGapBottom:A===i&&t===1};return I}function C(i){var h=i.data,s=i.expanded,u=i.selected,f=i.checked,L=i.loaded,x=i.loading,S=i.halfChecked,A=i.dragOver,t=i.dragOverGapTop,D=i.dragOverGapBottom,k=i.pos,I=i.active,d=i.eventKey,o=(0,ge.Z)((0,ge.Z)({},h),{},{expanded:s,selected:u,checked:f,loaded:L,loading:x,halfChecked:S,dragOver:A,dragOverGapTop:t,dragOverGapBottom:D,pos:k,active:I,key:d});return"props"in o||Object.defineProperty(o,"props",{get:function(){return(0,te.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),i}}),o}}}]); diff --git a/dist/9396.82d7aca4.async.js b/dist/9396.a3667fc5.async.js similarity index 99% rename from dist/9396.82d7aca4.async.js rename to dist/9396.a3667fc5.async.js index 0a818d5..2973c9f 100644 --- a/dist/9396.82d7aca4.async.js +++ b/dist/9396.a3667fc5.async.js @@ -1 +1 @@ -(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[9396],{70347:function(){},18067:function(){},91894:function(te,W,l){"use strict";l.d(W,{Z:function(){return fe}});var c=l(96156),C=l(22122),A=l(94184),$=l.n(A),Z=l(98423),t=l(67294),S=l(53124),U=l(97647),ae=l(19586),K=l(95562),ne=function(a,v){var x={};for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&v.indexOf(n)<0&&(x[n]=a[n]);if(a!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,n=Object.getOwnPropertySymbols(a);s10&&arguments[10]!==void 0?arguments[10]:0,k=r/100*360*((360-n)/360),g=n===0?0:{bottom:0,top:180,left:90,right:-90}[l],f=(100-s)/100*t;return d==="round"&&s!==100&&(f+=v/2,f>=t&&(f=t-.01)),{stroke:typeof i=="string"?i:void 0,strokeDasharray:"".concat(t,"px ").concat(e),strokeDashoffset:f+p,transform:"rotate(".concat(c+k+g,"deg)"),transformOrigin:"0 0",transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}},Oe=function(e){var t=(0,_.Z)((0,_.Z)({},oe),e),r=t.id,s=t.prefixCls,c=t.steps,n=t.strokeWidth,l=t.trailWidth,i=t.gapDegree,d=i===void 0?0:i,v=t.gapPosition,p=t.trailColor,k=t.strokeLinecap,g=t.style,f=t.className,h=t.strokeColor,m=t.percent,C=(0,ae.Z)(t,Le),W=be(r),P="".concat(W,"-gradient"),x=F/2-n/2,b=Math.PI*2*x,y=d>0?90+d/2:-90,S=b*((360-d)/360),L=(0,V.Z)(c)==="object"?c:{count:c,space:2},N=L.count,w=L.space,T=q(b,S,0,100,y,d,v,p,k,n),M=le(m),E=le(h),A=E.find(function(O){return O&&(0,V.Z)(O)==="object"}),G=ne(),ee=function(){var D=0;return M.map(function(R,z){var H=E[z]||E[E.length-1],U=H&&(0,V.Z)(H)==="object"?"url(#".concat(P,")"):void 0,K=q(b,S,D,R,y,d,v,H,k,n);return D+=R,o.createElement("circle",{key:z,className:"".concat(s,"-circle-path"),r:x,cx:0,cy:0,stroke:U,strokeLinecap:k,strokeWidth:n,opacity:R===0?0:1,style:K,ref:function(J){G[z]=J}})}).reverse()},$=function(){var D=Math.round(N*(M[0]/100)),R=100/N,z=0;return new Array(N).fill(null).map(function(H,U){var K=U<=D-1?E[0]:p,de=K&&(0,V.Z)(K)==="object"?"url(#".concat(P,")"):void 0,J=q(b,S,z,R,y,d,v,K,"butt",n,w);return z+=(S-J.strokeDashoffset+w)*100/S,o.createElement("circle",{key:U,className:"".concat(s,"-circle-path"),r:x,cx:0,cy:0,stroke:de,strokeWidth:n,opacity:1,style:J,ref:function(Ue){G[U]=Ue}})})};return o.createElement("svg",(0,I.Z)({className:B()("".concat(s,"-circle"),f),viewBox:"".concat(-F/2," ").concat(-F/2," ").concat(F," ").concat(F),style:g,id:r,role:"presentation"},C),A&&o.createElement("defs",null,o.createElement("linearGradient",{id:P,x1:"100%",y1:"0%",x2:"0%",y2:"0%"},Object.keys(A).sort(function(O,D){return ie(O)-ie(D)}).map(function(O,D){return o.createElement("stop",{key:D,offset:O,stopColor:A[O]})}))),!N&&o.createElement("circle",{className:"".concat(s,"-circle-trail"),r:x,cx:0,cy:0,stroke:p,strokeLinecap:k,strokeWidth:l||n,style:T}),N?$():ee())},ue=Oe,Ke={Line:Ce,Circle:ue};function j(a){return!a||a<0?0:a>100?100:a}function X(a){var e=a.success,t=a.successPercent,r=t;return e&&"progress"in e&&(r=e.progress),e&&"percent"in e&&(r=e.percent),r}function De(a){var e=a.percent,t=a.success,r=a.successPercent,s=j(X({success:t,successPercent:r}));return[s,j(j(e)-s)]}function We(a){var e=a.success,t=e===void 0?{}:e,r=a.strokeColor,s=t.strokeColor;return[s||Y.presetPrimaryColors.green,r||null]}var Ne=function(e){var t=e.prefixCls,r=e.width,s=e.strokeWidth,c=e.trailColor,n=c===void 0?null:c,l=e.strokeLinecap,i=l===void 0?"round":l,d=e.gapPosition,v=e.gapDegree,p=e.type,k=e.children,g=e.success,f=r||120,h={width:f,height:f,fontSize:f*.15+6},m=s||6,C=d||p==="dashboard"&&"bottom"||void 0,W=function(){if(v||v===0)return v;if(p==="dashboard")return 75},P=Object.prototype.toString.call(e.strokeColor)==="[object Object]",x=We({success:g,strokeColor:e.strokeColor}),b=B()("".concat(t,"-inner"),(0,Z.Z)({},"".concat(t,"-circle-gradient"),P));return o.createElement("div",{className:b,style:h},o.createElement(ue,{percent:De(e),strokeWidth:m,trailWidth:m,strokeColor:x,strokeLinecap:i,trailColor:n,prefixCls:t,gapDegree:W(),gapPosition:C}),k)},Ze=Ne,Ie=function(a,e){var t={};for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&e.indexOf(r)<0&&(t[r]=a[r]);if(a!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(a);s=100?"success":E||"normal"}function W(E,A){var G=e.format,ee=X(e);if(!k)return null;var $,O=G||function(R){return"".concat(R,"%")},D=f==="line";return G||A!=="exception"&&A!=="success"?$=O(j(i),j(ee)):A==="exception"?$=D?o.createElement(ve.Z,null):o.createElement(pe.Z,null):A==="success"&&($=D?o.createElement(Q.Z,null):o.createElement(re.Z,null)),o.createElement("span",{className:"".concat(E,"-text"),title:typeof $=="string"?$:void 0},$)}var P=o.useContext(ye.E_),x=P.getPrefixCls,b=P.direction,y=x("progress",r),S=C(),L=W(y,S),N=Array.isArray(n)?n[0]:n,w=typeof n=="string"||Array.isArray(n)?n:void 0,T;f==="line"?T=c?o.createElement(Te,(0,I.Z)({},e,{strokeColor:w,prefixCls:y,steps:c}),L):o.createElement(Re,(0,I.Z)({},e,{strokeColor:N,prefixCls:y,direction:b}),L):(f==="circle"||f==="dashboard")&&(T=o.createElement(Ze,(0,I.Z)({},e,{strokeColor:N,prefixCls:y,progressStatus:S}),L));var M=B()(y,(t={},(0,Z.Z)(t,"".concat(y,"-").concat(f==="dashboard"&&"circle"||c&&"steps"||f),!0),(0,Z.Z)(t,"".concat(y,"-status-").concat(S),!0),(0,Z.Z)(t,"".concat(y,"-show-info"),k),(0,Z.Z)(t,"".concat(y,"-").concat(v),v),(0,Z.Z)(t,"".concat(y,"-rtl"),b==="rtl"),t),s);return o.createElement("div",(0,I.Z)({},(0,me.Z)(h,["status","format","trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"]),{className:M,role:"progressbar"}),T)},Fe=Be,Ge=Fe},34669:function(fe,te,u){"use strict";var Z=u(38663),I=u.n(Z),Q=u(70350),re=u.n(Q)}}]); diff --git a/dist/9597.3aaf12cb.async.js b/dist/9597.3aaf12cb.async.js deleted file mode 100644 index 3f07109..0000000 --- a/dist/9597.3aaf12cb.async.js +++ /dev/null @@ -1,2 +0,0 @@ -(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[9597],{70350:function(){},54458:function(ve,te,d){"use strict";d.d(te,{Z:function(){return Be}});var W=d(96156),Z=d(22122),J=d(38819),re=d(79508),fe=d(43061),pe=d(54549),ge=d(94184),M=d.n(ge),me=d(98423),o=d(67294),ye=d(53124),ae=d(93355),Q=d(92138),se=d(81253),oe={className:"",percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,style:{},trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},ne=function(){var e=(0,o.useRef)([]),r=(0,o.useRef)(null);return(0,o.useEffect)(function(){var t=Date.now(),s=!1;e.current.forEach(function(n){if(!!n){s=!0;var c=n.style;c.transitionDuration=".3s, .3s, .3s, .06s",r.current&&t-r.current<100&&(c.transitionDuration="0s, 0s")}}),s&&(r.current=Date.now())}),e.current},ke=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],Y=function(e){var r=e.className,t=e.percent,s=e.prefixCls,n=e.strokeColor,c=e.strokeLinecap,i=e.strokeWidth,l=e.style,v=e.trailColor,g=e.trailWidth,f=e.transition,C=(0,se.Z)(e,ke);delete C.gapPosition;var y=Array.isArray(t)?t:[t],u=Array.isArray(n)?n:[n],h=ne(),m=i/2,x=100-i/2,P="M ".concat(c==="round"?m:0,",").concat(m,` - L `).concat(c==="round"?x:100,",").concat(m),E="0 0 100 ".concat(i),S=0;return o.createElement("svg",(0,Z.Z)({className:M()("".concat(s,"-line"),r),viewBox:E,preserveAspectRatio:"none",style:l},C),o.createElement("path",{className:"".concat(s,"-line-trail"),d:P,strokeLinecap:c,stroke:v,strokeWidth:g||i,fillOpacity:"0"}),y.map(function(b,p){var L=1;switch(c){case"round":L=1-i/100;break;case"square":L=1-i/2/100;break;default:L=1;break}var O={strokeDasharray:"".concat(b*L,"px, 100px"),strokeDashoffset:"-".concat(S,"px"),transition:f||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},R=u[p]||u[u.length-1];return S+=b,o.createElement("path",{key:p,className:"".concat(s,"-line-path"),d:P,strokeLinecap:c,stroke:R,strokeWidth:i,fillOpacity:"0",ref:function(I){h[p]=I},style:O})}))};Y.defaultProps=oe,Y.displayName="Line";var Ce=Y,G=d(90484),he=d(28481),Pe=d(98924),ce=0,Ee=(0,Pe.Z)();function Se(){var a;return Ee?(a=ce,ce+=1):a="TEST_OR_SSR",a}var xe=function(a){var e=o.useState(),r=(0,he.Z)(e,2),t=r[0],s=r[1];return o.useEffect(function(){s("rc_progress_".concat(Se()))},[]),a||t},be=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function ie(a){return+a.replace("%","")}function le(a){var e=a!=null?a:[];return Array.isArray(e)?e:[e]}var z=100,_=function(e,r,t,s,n,c,i,l,v,g){var f=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,C=t/100*360*((360-c)/360),y=c===0?0:{bottom:0,top:180,left:90,right:-90}[i],u=(100-s)/100*r;return v==="round"&&s!==100&&(u+=g/2,u>=r&&(u=r-.01)),{stroke:typeof l=="string"?l:void 0,strokeDasharray:"".concat(r,"px ").concat(e),strokeDashoffset:u+f,transform:"rotate(".concat(n+C+y,"deg)"),transformOrigin:"0 0",transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}},q=function(e){var r=e.id,t=e.prefixCls,s=e.steps,n=e.strokeWidth,c=e.trailWidth,i=e.gapDegree,l=i===void 0?0:i,v=e.gapPosition,g=e.trailColor,f=e.strokeLinecap,C=e.style,y=e.className,u=e.strokeColor,h=e.percent,m=(0,se.Z)(e,be),x=xe(r),P="".concat(x,"-gradient"),E=z/2-n/2,S=Math.PI*2*E,b=l>0?90+l/2:-90,p=S*((360-l)/360),L=(0,G.Z)(s)==="object"?s:{count:s,space:2},O=L.count,R=L.space,K=_(S,p,0,100,b,l,v,g,f,n),I=le(h),w=le(u),D=w.find(function(k){return k&&(0,G.Z)(k)==="object"}),T=ne(),V=function(){var N=0;return I.map(function(A,j){var X=w[j]||w[w.length-1],B=X&&(0,G.Z)(X)==="object"?"url(#".concat(P,")"):void 0,F=_(S,p,N,A,b,l,v,X,f,n);return N+=A,o.createElement("circle",{key:j,className:"".concat(t,"-circle-path"),r:E,cx:0,cy:0,stroke:B,strokeLinecap:f,strokeWidth:n,opacity:A===0?0:1,style:F,ref:function(H){T[j]=H}})}).reverse()},ee=function(){var N=Math.round(O*(I[0]/100)),A=100/O,j=0;return new Array(O).fill(null).map(function(X,B){var F=B<=N-1?w[0]:g,de=F&&(0,G.Z)(F)==="object"?"url(#".concat(P,")"):void 0,H=_(S,p,j,A,b,l,v,F,"butt",n,R);return j+=(p-H.strokeDashoffset+R)*100/p,o.createElement("circle",{key:B,className:"".concat(t,"-circle-path"),r:E,cx:0,cy:0,stroke:de,strokeWidth:n,opacity:1,style:H,ref:function(Fe){T[B]=Fe}})})};return o.createElement("svg",(0,Z.Z)({className:M()("".concat(t,"-circle"),y),viewBox:"".concat(-z/2," ").concat(-z/2," ").concat(z," ").concat(z),style:C,id:r,role:"presentation"},m),D&&o.createElement("defs",null,o.createElement("linearGradient",{id:P,x1:"100%",y1:"0%",x2:"0%",y2:"0%"},Object.keys(D).sort(function(k,N){return ie(k)-ie(N)}).map(function(k,N){return o.createElement("stop",{key:N,offset:k,stopColor:D[k]})}))),!O&&o.createElement("circle",{className:"".concat(t,"-circle-trail"),r:E,cx:0,cy:0,stroke:g,strokeLinecap:f,strokeWidth:c||n,style:K}),O?ee():V())};q.defaultProps=oe,q.displayName="Circle";var ue=q,Ge={Line:Ce,Circle:ue};function $(a){return!a||a<0?0:a>100?100:a}function U(a){var e=a.success,r=a.successPercent,t=r;return e&&"progress"in e&&(t=e.progress),e&&"percent"in e&&(t=e.percent),t}function Le(a){var e=a.percent,r=a.success,t=a.successPercent,s=$(U({success:r,successPercent:t}));return[s,$($(e)-s)]}function Oe(a){var e=a.success,r=e===void 0?{}:e,t=a.strokeColor,s=r.strokeColor;return[s||Q.presetPrimaryColors.green,t||null]}var De=function(e){var r=e.prefixCls,t=e.width,s=e.strokeWidth,n=e.trailColor,c=n===void 0?null:n,i=e.strokeLinecap,l=i===void 0?"round":i,v=e.gapPosition,g=e.gapDegree,f=e.type,C=e.children,y=e.success,u=t||120,h={width:u,height:u,fontSize:u*.15+6},m=s||6,x=v||f==="dashboard"&&"bottom"||void 0,P=function(){if(g||g===0)return g;if(f==="dashboard")return 75},E=Object.prototype.toString.call(e.strokeColor)==="[object Object]",S=Oe({success:y,strokeColor:e.strokeColor}),b=M()("".concat(r,"-inner"),(0,W.Z)({},"".concat(r,"-circle-gradient"),E));return o.createElement("div",{className:b,style:h},o.createElement(ue,{percent:Le(e),strokeWidth:m,trailWidth:m,strokeColor:S,strokeLinecap:l,trailColor:c,prefixCls:r,gapDegree:P(),gapPosition:x}),C)},Ne=De,We=function(a,e){var r={};for(var t in a)Object.prototype.hasOwnProperty.call(a,t)&&e.indexOf(t)<0&&(r[t]=a[t]);if(a!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,t=Object.getOwnPropertySymbols(a);s=100?"success":D||"normal"}function P(D,T){var V=e.format,ee=U(e);if(!C)return null;var k,N=V||function(j){return"".concat(j,"%")},A=u==="line";return V||T!=="exception"&&T!=="success"?k=N($(l),$(ee)):T==="exception"?k=A?o.createElement(fe.Z,null):o.createElement(pe.Z,null):T==="success"&&(k=A?o.createElement(J.Z,null):o.createElement(re.Z,null)),o.createElement("span",{className:"".concat(D,"-text"),title:typeof k=="string"?k:void 0},k)}var E=o.useContext(ye.E_),S=E.getPrefixCls,b=E.direction,p=S("progress",t),L=x(),O=P(p,L),R=Array.isArray(c)?c[0]:c,K=typeof c=="string"||Array.isArray(c)?c:void 0,I;u==="line"?I=n?o.createElement(Re,(0,Z.Z)({},e,{strokeColor:K,prefixCls:p,steps:n}),O):o.createElement(je,(0,Z.Z)({},e,{strokeColor:R,prefixCls:p,direction:b}),O):(u==="circle"||u==="dashboard")&&(I=o.createElement(Ne,(0,Z.Z)({},e,{strokeColor:R,prefixCls:p,progressStatus:L}),O));var w=M()(p,(r={},(0,W.Z)(r,"".concat(p,"-").concat(u==="dashboard"&&"circle"||n&&"steps"||u),!0),(0,W.Z)(r,"".concat(p,"-status-").concat(L),!0),(0,W.Z)(r,"".concat(p,"-show-info"),C),(0,W.Z)(r,"".concat(p,"-").concat(g),g),(0,W.Z)(r,"".concat(p,"-rtl"),b==="rtl"),r),s);return o.createElement("div",(0,Z.Z)({},(0,me.Z)(h,["status","format","trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"]),{className:w,role:"progressbar"}),I)},ze=Me,Be=ze},34669:function(ve,te,d){"use strict";var W=d(38663),Z=d.n(W),J=d(70350),re=d.n(J)}}]); diff --git a/dist/9645.697e668e.async.js b/dist/9645.697e668e.async.js deleted file mode 100644 index b6177aa..0000000 --- a/dist/9645.697e668e.async.js +++ /dev/null @@ -1,674 +0,0 @@ -(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[9645],{75009:function(or,U,z){"use strict";z.d(U,{Z:function(){return Xg}});var B={};z.r(B),z.d(B,{GADDI:function(){return to},Stack:function(){return ni},breadthFirstSearch:function(){return ht},connectedComponent:function(){return Qe},cosineSimilarity:function(){return he},default:function(){return Ss},depthFirstSearch:function(){return xr},detectAllCycles:function(){return qt},detectAllDirectedCycle:function(){return Bt},detectAllUndirectedCycle:function(){return ft},detectCycle:function(){return br},detectDirectedCycle:function(){return lo},dijkstra:function(){return Hr},findAllPath:function(){return Gr},findShortestPath:function(){return qr},floydWarshall:function(){return Gn},getAdjMatrix:function(){return te},getDegree:function(){return St},getInDegree:function(){return Ct},getNeighbors:function(){return pe},getOutDegree:function(){return _t},iLouvain:function(){return rt},kCore:function(){return ae},kMeans:function(){return C},labelPropagation:function(){return $r},louvain:function(){return K},minimumSpanningTree:function(){return Ot},nodesCosineSimilarity:function(){return Ee},pageRank:function(){return pr}});var j={};z.r(j),z.d(j,{Line:function(){return ga},applyMatrix:function(){return _n},compare:function(){return Yi},distance:function(){return Va},floydWarshall:function(){return Ko},fractionToLine:function(){return Ao},getAdjMatrix:function(){return Li},getBBoxBoundLine:function(){return vo},getCircleCenterByPoints:function(){return Go},getCircleIntersectByPoint:function(){return Oo},getDegree:function(){return $o},getEllipseIntersectByPoint:function(){return Hi},getLineIntersect:function(){return Bo},getPointsCenter:function(){return as},getRectIntersectByPoint:function(){return _s},intersectBBox:function(){return Qo},invertMatrix:function(){return Fo},isPointInPolygon:function(){return ro},isPointsOverlap:function(){return _i},isPolygonsIntersect:function(){return zi},itemIntersectByLine:function(){return Pi},lerp:function(){return da},lerpArray:function(){return Fa},move:function(){return ho},pointLineDistance:function(){return Ui},pointLineSquareDist:function(){return Zi},pointRectSquareDist:function(){return no},rotate:function(){return Di},scale:function(){return Gi},scaleMatrix:function(){return Ms},squareDist:function(){return vi},translate:function(){return Mo}});var R={};z.r(R),z.d(R,{cloneBesidesImg:function(){return Uo},getAnimateCfgWithCallback:function(){return bo},getBBox:function(){return Eo},getComboBBox:function(){return us},getLabelPosition:function(){return Hu},getLetterWidth:function(){return Zs},getLoopCfgs:function(){return Yu},getTextSize:function(){return Ks},plainCombosToTrees:function(){return os},reconstructTree:function(){return ss},shouldRefreshEdge:function(){return $s},traverseTree:function(){return Ei},traverseTreeUp:function(){return Ki},truncateLabelByLength:function(){return io}});var A={};z.r(A),z.d(A,{calculationItemsBBox:function(){return $u},cloneEvent:function(){return cs},formatPadding:function(){return Cs},isNaN:function(){return xo},isViewportChanged:function(){return $i},processParallelEdges:function(){return Mf},uniqueId:function(){return Co}});var N={};z.r(N),z.d(N,{getClosedSpline:function(){return ls},getControlPoint:function(){return ca},getSpline:function(){return Os},getStarPath:function(){return Lo},paddedHull:function(){return Nf},pathToPoints:function(){return Eu},pointsToPolygon:function(){return Lf},roundedHull:function(){return ef}});var L={};z.r(L),z.d(L,{defaultSubjectColors:function(){return ol}});var y={};z.r(y),z.d(y,{isForce:function(){return _u}});var x={};z.r(x),z.d(x,{getColorSetsBySubjectColors:function(){return Bs},getColorsWithSubjectColor:function(){return vs},mixColor:function(){return gi}});var v={};z.r(v),z.d(v,{arrayToTextureData:function(){return Lc},attributesToTextureData:function(){return Gs},buildTextureData:function(){return Jf},buildTextureDataWithOneEdgeAttr:function(){return qf},buildTextureDataWithTwoEdgeAttr:function(){return Ac},proccessToFunc:function(){return hf},radialLayout:function(){return Dc}});var g={};z.r(g),z.d(g,{gpuDetector:function(){return Nc}});var d=z(67294),_=z(24561),E=function(c){var t=c.loadingTemplate,e=function(){return t||d.createElement(_.ZP,{viewBox:"0 0 400 180",width:200,height:90,speed:1},d.createElement("rect",{x:"20",y:"5",rx:"0",ry:"0",width:"1",height:"170"}),d.createElement("rect",{x:"20",y:"175",rx:"0",ry:"0",width:"360",height:"1"}),d.createElement("rect",{x:"40",y:"75",rx:"0",ry:"0",width:"35",height:"100"}),d.createElement("rect",{x:"80",y:"125",rx:"0",ry:"0",width:"35",height:"50"}),d.createElement("rect",{x:"120",y:"105",rx:"0",ry:"0",width:"35",height:"70"}),d.createElement("rect",{x:"160",y:"35",rx:"0",ry:"0",width:"35",height:"140"}),d.createElement("rect",{x:"200",y:"55",rx:"0",ry:"0",width:"35",height:"120"}),d.createElement("rect",{x:"240",y:"15",rx:"0",ry:"0",width:"35",height:"160"}),d.createElement("rect",{x:"280",y:"135",rx:"0",ry:"0",width:"35",height:"40"}),d.createElement("rect",{x:"320",y:"85",rx:"0",ry:"0",width:"35",height:"90"}))};return d.createElement("div",{style:{position:"absolute",width:"100%",height:"100%",display:"flex",alignItems:"center",justifyContent:"center",left:0,top:0,zIndex:99,backgroundColor:"#fff"}},e())},w=function(){var c=function(t,e){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(r[a]=n[a])},c(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");c(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),T=function(c){w(t,c);function t(){var e=c!==null&&c.apply(this,arguments)||this;return e.state={hasError:!1},e.renderError=function(r){var n=e.props.errorTemplate;switch(r){default:return typeof n=="function"?n(r):n||d.createElement("h5",null,"\u7EC4\u4EF6\u51FA\u9519\u4E86\uFF0C\u8BF7\u6838\u67E5\u540E\u91CD\u8BD5\uFF1A ",r.message)}},e}return t.getDerivedStateFromError=function(e){return{hasError:!0,error:e}},t.getDerivedStateFromProps=function(e,r){return r.children!==e.children?{children:e.children,hasError:!1,error:void 0}:null},t.prototype.render=function(){return this.state.hasError?this.renderError(this.state.error):d.createElement(d.Fragment,null,this.props.children)},t}(d.Component),k=T,b=z(70655),m=z(49242),$={getDefaultCfg:function(){return{}},getEvents:function(){return{}},updateCfg:function(t){return Object.assign(this,t),!0},shouldBegin:function(){return!0},shouldUpdate:function(){return!0},shouldEnd:function(){return!0},bind:function(t){var e=this,r=this.events;this.graph=t,(this.type==="drag-canvas"||this.type==="brush-select"||this.type==="lasso-select")&&t.get("canvas").set("draggable",!0),(0,m.each)(r,function(n,a){t.on(a,n)}),document.addEventListener("visibilitychange",function(){e.keydown=!1})},unbind:function(t){var e=this.events,r=t.get("canvas").get("draggable");(this.type==="drag-canvas"||this.type==="brush-select"||this.type==="lasso-select")&&t.get("canvas").set("draggable",!1),(0,m.each)(e,function(n,a){t.off(a,n)}),t.get("canvas").set("draggable",r)},get:function(t){return this[t]},set:function(t,e){return this[t]=e,this}},W=function(){function c(){}return c.registerBehavior=function(t,e){if(!e)throw new Error("please specify handler for this behavior: ".concat(t));var r=(0,m.clone)($);Object.assign(r,e);var n=function(i){var o=this;Object.assign(this,this.getDefaultCfg(),i);var s=this.getEvents();this.events=null;var l={};s&&((0,m.each)(s,function(h,p){l[p]=(0,m.wrapBehavior)(o,h)}),this.events=l)};n.prototype=r,c.types[t]=n},c.hasBehavior=function(t){return!!c.types[t]},c.getBehavior=function(t){return c.types[t]},c.types={},c}(),X=W,H=X,Q=z(90494),q=z(31506),J=function(t,e){var r=t.nodes,n=t.edges,a=[],i={};if(!r)throw new Error("invalid nodes data!");return r&&r.forEach(function(o,s){i[o.id]=s;var l=[];a.push(l)}),n&&n.forEach(function(o){var s=o.source,l=o.target,h=i[s],p=i[l];!h&&h!==0||!p&&p!==0||(a[h][p]=1,e||(a[p][h]=1))}),a},te=J,fe=function(t,e){return t===e},de=function(){function c(t,e){e===void 0&&(e=null),this.value=t,this.next=e}return c.prototype.toString=function(t){return t?t(this.value):"".concat(this.value)},c}(),Te=function(){function c(t){t===void 0&&(t=fe),this.head=null,this.tail=null,this.compare=t}return c.prototype.prepend=function(t){var e=new de(t,this.head);return this.head=e,this.tail||(this.tail=e),this},c.prototype.append=function(t){var e=new de(t);return this.head?(this.tail.next=e,this.tail=e,this):(this.head=e,this.tail=e,this)},c.prototype.delete=function(t){if(!this.head)return null;for(var e=null;this.head&&this.compare(this.head.value,t);)e=this.head,this.head=this.head.next;var r=this.head;if(r!==null)for(;r.next;)this.compare(r.next.value,t)?(e=r.next,r.next=r.next.next):r=r.next;return this.compare(this.tail.value,t)&&(this.tail=r),e},c.prototype.find=function(t){var e=t.value,r=e===void 0?void 0:e,n=t.callback,a=n===void 0?void 0:n;if(!this.head)return null;for(var i=this.head;i;){if(a&&a(i.value)||r!==void 0&&this.compare(i.value,r))return i;i=i.next}return null},c.prototype.deleteTail=function(){var t=this.tail;if(this.head===this.tail)return this.head=null,this.tail=null,t;for(var e=this.head;e.next;)e.next.next?e=e.next:e.next=null;return this.tail=e,t},c.prototype.deleteHead=function(){if(!this.head)return null;var t=this.head;return this.head.next?this.head=this.head.next:(this.head=null,this.tail=null),t},c.prototype.fromArray=function(t){var e=this;return t.forEach(function(r){return e.append(r)}),this},c.prototype.toArray=function(){for(var t=[],e=this.head;e;)t.push(e),e=e.next;return t},c.prototype.reverse=function(){for(var t=this.head,e=null,r=null;t;)r=t.next,t.next=e,e=t,t=r;this.tail=this.head,this.head=e},c.prototype.toString=function(t){return t===void 0&&(t=void 0),this.toArray().map(function(e){return e.toString(t)}).toString()},c}(),Se=Te,Ie=function(){function c(){this.linkedList=new Se}return c.prototype.isEmpty=function(){return!this.linkedList.head},c.prototype.peek=function(){return this.linkedList.head?this.linkedList.head.value:null},c.prototype.enqueue=function(t){this.linkedList.append(t)},c.prototype.dequeue=function(){var t=this.linkedList.deleteHead();return t?t.value:null},c.prototype.toString=function(t){return this.linkedList.toString(t)},c}(),be=Ie,pe=function(t,e,r){e===void 0&&(e=[]);var n=e.filter(function(s){return s.source===t||s.target===t});if(r==="target"){var a=function(l){return l.source===t};return n.filter(a).map(function(s){return s.target})}if(r==="source"){var i=function(l){return l.target===t};return n.filter(i).map(function(s){return s.source})}var o=function(l){return l.source===t?l.target:l.source};return n.map(o)},Me=function(t,e){return e.filter(function(r){return r.source===t})},De=function(t,e){return e.filter(function(r){return r.source===t||r.target===t})},Ue=function(t){t===void 0&&(t=0);var e="".concat(Math.random()).split(".")[1].substr(0,5),r="".concat(Math.random()).split(".")[1].substr(0,5);return"".concat(t,"-").concat(e).concat(r)};function nt(c){c===void 0&&(c={});var t=c,e=function(){},r=function(){var n={};return function(a){var i=a.next,o=i;return n[o]?!1:(n[o]=!0,!0)}}();return t.allowTraversal=c.allowTraversal||r,t.enter=c.enter||e,t.leave=c.leave||e,t}var Ze=function(t,e,r,n){n===void 0&&(n=!0);var a=nt(r),i=new be,o=t.edges,s=o===void 0?[]:o;i.enqueue(e);for(var l="",h=function(){var D=i.dequeue();a.enter({current:D,previous:l}),pe(D,s,n?"target":void 0).forEach(function(I){a.allowTraversal({previous:l,current:D,next:I})&&i.enqueue(I)}),a.leave({current:D,previous:l}),l=D};!i.isEmpty();)h()},ht=Ze,Rt=function(t){for(var e=t.nodes,r=e===void 0?[]:e,n=t.edges,a=n===void 0?[]:n,i=[],o={},s=[],l=function I(F){s.push(F),o[F.id]=!0;for(var Z=pe(F.id,a),ee=function(ce){var we=Z[ce];if(!o[we]){var Re=r.filter(function(Oe){return Oe.id===we});Re.length>0&&I(Re[0])}},se=0;se0;)D.push(s.pop());i.push(D)}}return i},tr=function(t){for(var e=t.nodes,r=e===void 0?[]:e,n=t.edges,a=n===void 0?[]:n,i=[],o={},s={},l={},h=[],p=0,D=function ee(se){s[se.id]=p,l[se.id]=p,p+=1,i.push(se),o[se.id]=!0;for(var oe=pe(se.id,a,"target").filter(function(Pe){return r.map(function(He){return He.id}).indexOf(Pe)>-1}),ce=function(He){var at=oe[He];if(!s[at]&&s[at]!==0){var qe=r.filter(function(yt){return yt.id===at});qe.length>0&&ee(qe[0]),l[se.id]=Math.min(l[se.id],l[at])}else o[at]&&(l[se.id]=Math.min(l[se.id],s[at]))},we=0;we0;){var Oe=i.pop();if(o[Oe.id]=!1,Re.push(Oe),Oe===se)break}Re.length>0&&h.push(Re)}},I=0,F=r;I0;)for(var ee=I.pop(),se=ee.id,oe=pe(se,t.edges),ce=function(Oe){var Pe,He=oe[Oe],at=t.nodes.find(function(lr){return lr.id===He});if(He===se)i.push((Pe={},Pe[He]=ee,Pe));else if(!(He in Z))F[He]=ee,I.push(at),Z[He]=new Set([ee]);else if(!Z[se].has(at)){for(var qe=!0,yt=[at,ee],Ft=F[se];Z[He].size&&!Z[He].has(Ft)&&(yt.push(Ft),Ft!==F[Ft.id]);)Ft=F[Ft.id];if(yt.push(Ft),e&&r?(qe=!1,yt.findIndex(function(lr){return e.indexOf(lr.id)>-1})>-1&&(qe=!0)):e&&!r&&yt.findIndex(function(lr){return e.indexOf(lr.id)>-1})>-1&&(qe=!1),qe){for(var yr={},fr=1;fr0;){var fr=yr.pop();a.has(fr)&&(a.delete(fr),i[fr.id].forEach(function(lr){yr.push(lr)}),i[fr.id].clear())}},p=function yt(Ft,yr,fr){var lr=!1;if(e&&r===!1&&e.indexOf(Ft.id)>-1)return lr;n.push(Ft),a.add(Ft);for(var Kt=fr[Ft.id],jr=0;jr-1});Jr-1)?o.push((yr={},yr[Fr.id]=Fr,yr)):kr[Fr.id].push(l[Vn])}}return{component:mr,adjList:kr,minIdx:lr}},ce=0;ce=ce}),Re=tr({nodes:we,edges:t.edges}).filter(function(yt){return yt.length>1});if(Re.length===0)break;var Oe=oe(Re),Pe=Oe.minIdx,He=Oe.adjList,at=Oe.component;if(at.length>1){at.forEach(function(yt){i[yt.id]=new Set});var qe=s[Pe];if(e&&r&&e.indexOf(qe.id)===-1)return o;p(qe,qe,He),ce=Pe+1}else break}return o},qt=function(t,e,r,n){return n===void 0&&(n=!0),e?Bt(t,r,n):ft(t,r,n)},br=Vt,Ur=function(t,e,r){for(var n=Infinity,a,i=0;ip[Re.id]+Ft?(p[yt]=p[Re.id]+Ft,D[yt]=[Re.id]):p[yt]===p[Re.id]+Ft&&D[yt].push(Re.id)})},Z=0;Z0&&h.length>0;){var I=h[h.length-1];if(I.length){var F=I.shift();F&&(s.push(F),l[F]=!0,D=n?pe(F,o,"target"):pe(F,o),h.push(D.filter(function(se){return!l[se]})))}else{var Z=s.pop();l[Z]=!1,h.pop();continue}if(s[s.length-1]===r){var ee=s.map(function(oe){return oe});p.push(ee);var Z=s.pop();l[Z]=!1,h.pop()}}return p},vn=function(t,e){for(var r=te(t,e),n=[],a=r.length,i=0;in[i][s]+n[s][o]&&(n[i][o]=n[i][s]+n[s][o]);return n},Gn=vn,mn=function(t,e,r,n){e===void 0&&(e=!1),r===void 0&&(r="weight"),n===void 0&&(n=1e3);var a=t.nodes,i=a===void 0?[]:a,o=t.edges,s=o===void 0?[]:o,l={},h={};i.forEach(function(we,Re){var Oe=Ue();we.clusterId=Oe,l[Oe]={id:Oe,nodes:[we]},h[we.id]={node:we,idx:Re}});var p=te(t,e),D=[],I={};p.forEach(function(we,Re){var Oe=0,Pe=i[Re].id;I[Pe]={},we.forEach(function(He,at){if(!!He){Oe+=He;var qe=i[at].id;I[Pe][qe]=He}}),D.push(Oe)});for(var F=0,Z=function(){var Re=!1;if(i.forEach(function(Oe){var Pe={};Object.keys(I[Oe.id]).forEach(function(lr){var Kt=I[Oe.id][lr],jr=h[lr].node,Xr=jr.clusterId;Pe[Xr]||(Pe[Xr]=0),Pe[Xr]+=Kt});var He=-Infinity,at=[];if(Object.keys(Pe).forEach(function(lr){He=0&&at.splice(qe,1),at&&at.length){Re=!0;var yt=l[Oe.clusterId],Ft=yt.nodes.indexOf(Oe);yt.nodes.splice(Ft,1);var yr=Math.floor(Math.random()*at.length),fr=l[at[yr]];fr.nodes.push(Oe),Oe.clusterId=fr.id}}}),!Re)return"break";F++};F0&&He>at&&He-atat&&(yt=p.map(function(er){return{node:er,clusterId:er.clusterId}}),Ft=(0,m.clone)(oe),at=He),yr||qe>100)break;qe++,Object.keys(oe).forEach(function(er){var mr=0;I.forEach(function(kr){var Fr=kr.source,Jr=kr.target,fn=ce[Fr].node.clusterId,Vn=ce[Jr].node.clusterId;(fn===er&&Vn!==er||Vn===er&&fn!==er)&&(mr=mr+(kr[r]||1))}),oe[er].sumTot=mr}),p.forEach(function(er,mr){var kr=oe[er.clusterId],Fr=0,Jr,fn=Re[mr]/(2*Pe),Vn=0,Tn=kr.nodes;Tn.forEach(function(Qa){var Ja=ce[Qa.id].idx;Vn+=we[mr][Ja]||0});var wa=Vn-kr.sumTot*fn,ua=Tn.filter(function(Qa){return Qa.id!==er.id}),fa=[];ua.forEach(function(Qa,Ja){fa[Ja]=F[Qa.originIndex]});var Ma=ln(ua,F)*l,ja=Oe[er.id];if(Object.keys(ja).forEach(function(Qa){var Ja=ce[Qa].node,oi=Ja.clusterId;if(oi!==er.clusterId){var Si=oe[oi],Ai=Si.nodes;if(!(!Ai||!Ai.length)){var la=0;Ai.forEach(function(pa){var ma=ce[pa.id].idx;la+=we[mr][ma]||0});var Ca=la-Si.sumTot*fn,Xn=Ai.concat([er]),Ta=[];Xn.forEach(function(pa,ma){Ta[ma]=F[pa.originIndex]});var Na=ln(Xn,F)*l,cn=Ca-wa;a&&(cn=Ca+Na-(wa+Ma)),cn>Fr&&(Fr=cn,Jr=Si)}}}),Fr>0){Jr.nodes.push(er);var Ra=er.clusterId;er.clusterId=Jr.id;var uo=kr.nodes.indexOf(er);kr.nodes.splice(uo,1);var Da=0,fo=0;I.forEach(function(Qa){var Ja=Qa.source,oi=Qa.target,Si=ce[Ja].node.clusterId,Ai=ce[oi].node.clusterId;(Si===Jr.id&&Ai!==Jr.id||Ai===Jr.id&&Si!==Jr.id)&&(Da=Da+(Qa[r]||1)),(Si===Ra&&Ai!==Ra||Ai===Ra&&Si!==Ra)&&(fo=fo+(Qa[r]||1))}),Jr.sumTot=Da,kr.sumTot=fo}})}var fr={},lr=0;Object.keys(Ft).forEach(function(er){var mr=Ft[er];if(!mr.nodes||!mr.nodes.length){delete Ft[er];return}var kr=String(lr+1);kr!==er&&(mr.id=kr,mr.nodes=mr.nodes.map(function(Fr){return{id:Fr.id,clusterId:kr}}),Ft[kr]=mr,fr[er]=kr,delete Ft[er],lr++)}),yt.forEach(function(er){var mr=er.node,kr=er.clusterId;!mr||(mr.clusterId=kr,mr.clusterId&&fr[mr.clusterId]&&(mr.clusterId=fr[mr.clusterId]))});var Kt=[],jr={};I.forEach(function(er){var mr=er.source,kr=er.target,Fr=er[r]||1,Jr=ce[mr].node.clusterId,fn=ce[kr].node.clusterId;if(!(!Jr||!fn)){var Vn="".concat(Jr,"---").concat(fn);if(jr[Vn])jr[Vn].weight+=Fr,jr[Vn].count++;else{var Tn={source:Jr,target:fn,weight:Fr,count:1};jr[Vn]=Tn,Kt.push(Tn)}}});var Xr=[];return Object.keys(Ft).forEach(function(er){Xr.push(Ft[er])}),{clusters:Xr,clusterEdges:Kt}},K=va,Dt=function(t,e,r,n,a,i,o,s){return e===void 0&&(e=!1),r===void 0&&(r="weight"),n===void 0&&(n=1e-4),a===void 0&&(a=void 0),i===void 0&&(i=[]),o===void 0&&(o=["id"]),s===void 0&&(s=1),K(t,e,r,n,!0,a,i,o,s)},rt=Dt,ne=function(t,e){var r;e===void 0&&(e=1);for(var n=(0,m.clone)(t),a=n.nodes,i=a===void 0?[]:a,o=n.edges,s=o===void 0?[]:o,l=function(){var D=St({nodes:i,edges:s}),I=Object.keys(D);I.sort(function(ee,se){var oe,ce;return((oe=D[ee])===null||oe===void 0?void 0:oe.degree)-((ce=D[se])===null||ce===void 0?void 0:ce.degree)});var F=I[0];if(!i.length||((r=D[F])===null||r===void 0?void 0:r.degree)>=e)return"break";var Z=i.findIndex(function(ee){return ee.id===F});i.splice(Z,1),s=s.filter(function(ee){return!(ee.source===F||ee.target===F)})};;){var h=l();if(h==="break")break}return{nodes:i,edges:s}},ae=ne,P=function(t,e,r){var n=[];switch(t){case Sn.EuclideanDistance:n=e[r];break;default:n=[];break}return n},S=function(t,e,r,n,a,i){e===void 0&&(e=3),r===void 0&&(r=void 0),n===void 0&&(n=[]),a===void 0&&(a=["id"]),i===void 0&&(i=Sn.EuclideanDistance);var o=t.nodes,s=o===void 0?[]:o,l=t.edges,h=l===void 0?[]:l,p={clusters:[{id:"0",nodes:s}],clusterEdges:[]};if(i===Sn.EuclideanDistance&&!s.every(function(kr){return kr.hasOwnProperty(r)}))return p;var D=[],I=[];if(i===Sn.EuclideanDistance&&(D=pn(s,r),I=$n(D,n,a)),!I.length)return p;for(var F=(0,m.uniq)(I.map(function(kr){return kr.join("")})),Z=Math.min(e,s.length,F.length),ee=0;eeRe&&!se.find(function(ua){return(0,m.isEqual)(ua,P(i,I,s[Jr].originIndex))})&&(Re=wa,Oe=Jr)}},He=0;He=0;fr--)ce[Number(s[ee].clusterId)][fr].id===s[ee].id&&ce[Number(s[ee].clusterId)].splice(fr,1);s[ee].clusterId=String(qe),ce[qe].push(s[ee])}}for(var lr=!1,ee=0;ee=1e3)break}var er=[],mr={};return h.forEach(function(kr){var Fr,Jr,fn=kr.source,Vn=kr.target,Tn=(Fr=s.find(function(Ma){return Ma.id===fn}))===null||Fr===void 0?void 0:Fr.clusterId,wa=(Jr=s.find(function(Ma){return Ma.id===Vn}))===null||Jr===void 0?void 0:Jr.clusterId,ua="".concat(Tn,"---").concat(wa);if(mr[ua])mr[ua].count++;else{var fa={source:Tn,target:wa,count:1};mr[ua]=fa,er.push(fa)}}),{clusters:ce,clusterEdges:er}},C=S,V=function(t,e){var r=new Rr(e),n=r.norm2(),a=new Rr(t),i=a.norm2(),o=r.dot(a),s=n*i,l=s?o/s:0;return l},he=V,xe=function(t,e,r,n,a){t===void 0&&(t=[]),r===void 0&&(r=void 0),n===void 0&&(n=[]),a===void 0&&(a=[]);var i=(0,m.clone)(t.filter(function(D){return D.id!==e.id})),o=t.findIndex(function(D){return D.id===e.id}),s=pn(t,r),l=$n(s,n,a),h=l[o],p=[];return i.forEach(function(D,I){if(D.id!==e.id){var F=l[I],Z=he(F,h);p.push(Z),D.cosineSimilarity=Z}}),i.sort(function(D,I){return I.cosineSimilarity-D.cosineSimilarity}),{allCosineSimilarity:p,similarNodes:i}},Ee=xe,Ne=function(){function c(t){this.count=t.length,this.parent={};for(var e=0,r=t;e0&&(this.list[0]=e,this.moveDown(0)),t},c.prototype.insert=function(t){if(t!==null){this.list.push(t);var e=this.list.length-1;return this.moveUp(e),!0}return!1},c.prototype.moveUp=function(t){for(var e=this.getParent(t);t&&t>0&&this.compareFn(this.list[e],this.list[t])>0;){var r=this.list[e];this.list[e]=this.list[t],this.list[t]=r,t=e,e=this.getParent(t)}},c.prototype.moveDown=function(t){var e,r=t,n=this.getLeft(t),a=this.getRight(t),i=this.list.length;n!==null&&n0?r=n:a!==null&&a0&&(r=a),t!==r&&(e=[this.list[r],this.list[t]],this.list[t]=e[0],this.list[r]=e[1],this.moveDown(r))},c}(),$t=Pt,Ht=function(t,e){var r=[],n=t.nodes,a=n===void 0?[]:n,i=t.edges,o=i===void 0?[]:i;if(a.length===0)return r;var s=a[0],l=new Set;l.add(s);var h=function(ee,se){return e?ee.weight-se.weight:0},p=new $t(h);for(De(s.id,o).forEach(function(Z){p.insert(Z)});!p.isEmpty();){var D=p.delMin(),I=D.source,F=D.target;l.has(I)&&l.has(F)||(r.push(D),l.has(I)||(l.add(I),De(I,o).forEach(function(Z){p.insert(Z)})),l.has(F)||(l.add(F),De(F,o).forEach(function(Z){p.insert(Z)})))}return r},Br=function(t,e){var r=[],n=t.nodes,a=n===void 0?[]:n,i=t.edges,o=i===void 0?[]:i;if(a.length===0)return r;var s=o.map(function(I){return I});e&&s.sort(function(I,F){return I.weight-F.weight});for(var l=new Et(a.map(function(I){return I.id}));s.length>0;){var h=s.shift(),p=h.source,D=h.target;l.connected(p,D)||(r.push(h),l.union(p,D))}return r},hn=function(t,e,r){var n={prim:Ht,kruskal:Br};return r?n[r](t,e):Br(t,e)},Ot=hn,Qt=function(t,e,r){typeof e!="number"&&(e=1e-6),typeof r!="number"&&(r=.85);for(var n=1,a=0,i=1e3,o=t.nodes,s=o===void 0?[]:o,l=t.edges,h=l===void 0?[]:l,p=s.length,D,I={},F={},Z=0;Z0&&n>e;){a=0;for(var Z=0;Z0&&(D+=F[Re]/Oe)}I[se]=r*D,a+=I[se]}}a=(1-a)/p,n=0;for(var Z=0;Z=0;r--){var n=this.dfsEdgeList[r],a=n.fromNode,i=n.toNode;aI||n.hasNode(i[D.to])||(e.labelce;Re--){var Oe=we(Re);if(Oe==="break")break}if(se){var Pe=t.findMinLabel(ee);i.dfsEdgeList.push(new Ce(Z,oe,kn,Pe.edgeLabel,kn));var He=i.dfsEdgeList.length-1;return t.dfsCode.dfsEdgeList[He]!==i.dfsEdgeList[He]?!1:p(ee[Pe.edgeLabel].projected)}var at={};se=!1;var qe=0;D.forEach(function(Kt){var jr=new ut(Kt),Xr=t.findForwardPureEdges(n,jr.edges[I[0]],F,jr);Xr.length>0&&(se=!0,qe=Z,Xr.forEach(function(er){var mr="".concat(er.label,"-").concat(a[er.to].label);at[mr]||(at[mr]={projected:[],edgeLabel:er.label,nodeLabel2:a[er.to].label}),at[mr].projected.push({graphId:n.id,edge:er,preNode:Kt})}))});for(var yt=I.length,Ft=function(jr){if(se)return"break";var Xr=I[jr];D.forEach(function(er){var mr=new ut(er),kr=t.findForwardRmpathEdges(n,mr.edges[Xr],F,mr);kr.length>0&&(se=!0,qe=i.dfsEdgeList[Xr].fromNode,kr.forEach(function(Fr){var Jr="".concat(Fr.label,"-").concat(a[Fr.to].label);at[Jr]||(at[Jr]={projected:[],edgeLabel:Fr.label,nodeLabel2:a[Fr.to].label}),at[Jr].projected.push({graphId:n.id,edge:Fr,preNode:er})}))})},Re=0;Re=0;F--){var Z=e.findBackwardEdge(p,I.edges[a[F]],I.edges[a[0]],I);if(Z){var ee="".concat(e.dfsCode.dfsEdgeList[a[F]].fromNode,"-").concat(Z.label);l[ee]||(l[ee]={projected:[],toNodeId:e.dfsCode.dfsEdgeList[a[F]].fromNode,edgeLabel:Z.label}),l[ee].projected.push({graphId:h.graphId,edge:Z,preNode:h})}}if(!(n>=e.maxNodeNum)){var se=e.findForwardPureEdges(p,I.edges[a[0]],o,I);se.forEach(function(ce){var we="".concat(i,"-").concat(ce.label,"-").concat(D[ce.to].label);s[we]||(s[we]={projected:[],fromNodeId:i,edgeLabel:ce.label,nodeLabel2:D[ce.to].label}),s[we].projected.push({graphId:h.graphId,edge:ce,preNode:h})});for(var oe=function(we){var Re=e.findForwardRmpathEdges(p,I.edges[a[we]],o,I);Re.forEach(function(Oe){var Pe="".concat(e.dfsCode.dfsEdgeList[a[we]].fromNode,"-").concat(Oe.label,"-").concat(D[Oe.to].label);s[Pe]||(s[Pe]={projected:[],fromNodeId:e.dfsCode.dfsEdgeList[a[we]].fromNode,edgeLabel:Oe.label,nodeLabel2:D[Oe.to].label}),s[Pe].projected.push({graphId:h.graphId,edge:Oe,preNode:h})})},F=0;Fce){var we=ce;ce=oe,oe=we}var Re=se.label,Oe="".concat(l,"-").concat(oe,"-").concat(Re,"-").concat(ce),Pe="".concat(oe,"-").concat(Re,"-").concat(ce);if(!i[Pe]){var He=i[Pe]||0;He++,i[Pe]=He}s[Oe]={graphId:l,nodeLabel1:oe,edgeLabel:Re,nodeLabel2:ce}})})}),Object.keys(a).forEach(function(l){var h=a[l];if(!(h2*e)););if(ee<2*e&&(o["".concat(h,"-").concat(Z)]={start:h,end:Z,distance:a[h][Z]},p++,s++,s>=r))return o;if(D++,D>2*e)break}if(pD&&(s=D);var I=r[p.id].inDegree;l>I&&(l=I);var F=r[p.id].outDegree;h>F&&(h=F)}),t[e]={degree:s,inDegree:l,outDegree:h}),{minPatternNodeLabelDegree:s,minPatternNodeLabelInDegree:l,minPatternNodeLabelOutDegree:h}},So=function(t,e,r,n,a,i,o){var s;if(r===void 0&&(r=!1),i===void 0&&(i="cluster"),o===void 0&&(o="cluster"),!(!t||!t.nodes)){var l=t.nodes.length;if(!!l){var h=Gn(t,r),p=Gn(e,r),D=qa(t.nodes,h,r),I=qa(e.nodes,p,r),F=Ba(t.nodes,i),Z=F.nodeMap,ee=F.nodeLabelMap,se=Ba(e.nodes,i),oe=se.nodeMap,ce=se.nodeLabelMap;Ea(t.edges,o,Z);var we=Ea(e.edges,o,oe).edgeLabelMap,Re=[];p==null||p.forEach(function(la){Re=Re.concat(la)}),a||(a=Math.max.apply(Math,(0,b.__spreadArray)((0,b.__spreadArray)([],Re,!1),[2],!1))),n||(n=a);var Oe=xn(t,h,i,n),Pe=xn(e,p,i,n),He=Math.min(100,l*(l-1)/2),at=Qn(n,l,He,Oe,h),qe=ia(at,Oe,t),yt=10,Ft=1,yr=1,fr=4,lr={graphs:qe,nodeLabelProp:i,edgeLabelProp:o,minSupport:Ft,minNodeNum:yr,maxNodeNum:fr,directed:r},Kt=on(lr).slice(0,yt),jr=Kt.length,Xr=[];Kt.forEach(function(la,Ca){Xr[Ca]={},Object.keys(qe).forEach(function(Xn){var Ta=qe[Xn],Na=Wa(Ta,la,i,o);Xr[Ca][Xn]=Na})});var er=Ia(Xr,jr,Kt),mr=er.structure,kr=er.structureCountMap,Fr=e.nodes[0],Jr=[],fn=(s=e.nodes[0])===null||s===void 0?void 0:s[i],Vn=-Infinity;e.nodes.forEach(function(la){var Ca=la[i],Xn=ee[Ca];(Xn==null?void 0:Xn.length)>Vn&&(Vn=Xn.length,Jr=Xn,fn=Ca,Fr=la)});var Tn={},wa={},ua={},fa={},Ma={},ja={};Object.keys(ce).forEach(function(la,Ca){Ma[la]=[],r&&(ja[la]=[]);var Xn=-Infinity,Ta=ce[la],Na={};Ta.forEach(function(xa){var Nn=I["".concat(Fr.id,"-").concat(xa.id)];if(Nn&&Ma[la].push(Nn),XnMa[la][Po]){qc=!0;break}if(qc)return Jr.splice(Nn,1),"continue";var ws={};Ci.neighbors.forEach(function(ko){var Xs=D["".concat(Xa.id,"-").concat(ko.id)];ws["".concat(Xa.id,"-").concat(ko.id)]={start:Z[Xa.id].idx,end:Z[ko.id].idx,distance:Xs}}),qe=ia(ws,Oe,t,qe);var fu=[];Object.keys(ws).forEach(function(ko){if(kr[ko]){fu.push(kr[ko]);return}var Xs=qe[ko];kr[ko]=Wa(Xs,mr,i,o),fu.push(kr[ko])}),fu=fu.sort(function(ko,Xs){return Xs-ko});for(var Sf=!1,Po=0;Po=0;Ua--)ma(Ua)});var Ra=[];Jr==null||Jr.forEach(function(la){for(var Ca=Z[la.id].idx,Xn=zn(t.nodes,h[Ca],Ca,i,a),Ta=Xn.neighbors,Na=Ta.length,cn=!1,pa=Na-1;pa>=0;pa--){if(Ta.length+1Ci){Ta.splice(pa,1);continue}if(r){var Ti="".concat(ma.id,"-").concat(la.id),uc=D[Ti];Xa=ja[Ua].length-1;var qc=ja[Ua][Xa];if(uc>qc){Ta.splice(pa,1);continue}}var Po=kr[xa]?kr[xa]:si(t,la,ma,Z,Nn,Oe,mr,i,o,kr,qe),ws="".concat(Fr.id,"-").concat(Ua),fu=fa[ws][fa[ws].length-1];if(Po=0;Nn--){var qc=uc(Nn);if(qc==="break")break}if(Ti)return Ra.splice(Ca,1),"continue";Xn.edges=pa;var Po=Hr(Xn,Xn.nodes[0].id,!1).length;if(Object.keys(Po).reverse().forEach(function(hi){if(!(hi===Xn.nodes[0].id||Ti)){if(Po[hi]===Infinity){var rs=cn[hi].node[i];if(Na[rs]--,Na[rs]Da[cu][Da[cu].length-1]){var rs=cn[hi].node[i];if(Na[rs]--,Na[rs]=0;Xs--){var Xu=Xn.nodes[Xs],uh=cn[Xu.id].degree,Vg=cn[Xu.id].inDegree,Yg=cn[Xu.id].outDegree,Hg=Xu[i],dd=_a(Tn,Hg,oe,ce),fh=dd.minPatternNodeLabelDegree,Zg=dd.minPatternNodeLabelInDegree,Kg=dd.minPatternNodeLabelOutDegree,$g=r?uh=0;Ql--){var Vu=pa[Ql];if(!cn[Vu.source]||!cn[Vu.target]){pa.splice(Ql,1);var Jl=Vu[o];if(ma[Jl]--,cn[Vu.source]&&(cn[Vu.source].degree--,cn[Vu.source].outDegree--),cn[Vu.target]&&(cn[Vu.target].degree--,cn[Vu.target].inDegree--),we[Jl]&&ma[Jl]=0;Ja--){var oi=Qa(Ja);if(oi==="break")break}for(var Si=Ra.length,Ai=function(Ca){var Xn=Ra[Ca],Ta={};Xn.edges.forEach(function(pa){var ma="".concat(pa.source,"-").concat(pa.target,"-").concat(pa.label);Ta[ma]?Ta[ma]++:Ta[ma]=1});for(var Na=function(ma){var Ua=Ra[ma],xa={};Ua.edges.forEach(function(Xa){var Ci="".concat(Xa.source,"-").concat(Xa.target,"-").concat(Xa.label);xa[Ci]?xa[Ci]++:xa[Ci]=1});var Nn=!0;Object.keys(xa).length!==Object.keys(Ta).length?Nn=!1:Object.keys(Ta).forEach(function(Xa){xa[Xa]!==Ta[Xa]&&(Nn=!1)}),Nn&&Ra.splice(ma,1)},cn=Si-1;cn>Ca;cn--)Na(cn);Si=Ra.length},Ja=0;Ja<=Si-1;Ja++)Ai(Ja);return Ra}}},to=So,co=function(){function c(t){t===void 0&&(t=10),this.linkedList=new Se,this.maxStep=t}return Object.defineProperty(c.prototype,"length",{get:function(){return this.linkedList.toArray().length},enumerable:!1,configurable:!0}),c.prototype.isEmpty=function(){return!this.linkedList.head},c.prototype.isMaxStack=function(){return this.toArray().length>=this.maxStep},c.prototype.peek=function(){return this.isEmpty()?null:this.linkedList.head.value},c.prototype.push=function(t){this.linkedList.prepend(t),this.length>this.maxStep&&this.linkedList.deleteTail()},c.prototype.pop=function(){var t=this.linkedList.deleteHead();return t?t.value:null},c.prototype.toArray=function(){return this.linkedList.toArray().map(function(t){return t.value})},c.prototype.clear=function(){for(;!this.isEmpty();)this.pop()},c}(),ni=co,lo=br,Ss={getAdjMatrix:te,breadthFirstSearch:ht,connectedComponent:Qe,getDegree:St,getInDegree:Ct,getOutDegree:_t,detectCycle:br,detectDirectedCycle:lo,detectAllCycles:qt,detectAllDirectedCycle:Bt,detectAllUndirectedCycle:ft,depthFirstSearch:xr,dijkstra:Hr,findAllPath:Gr,findShortestPath:qr,floydWarshall:Gn,labelPropagation:$r,louvain:K,iLouvain:rt,kCore:ae,kMeans:C,cosineSimilarity:he,nodesCosineSimilarity:Ee,minimumSpanningTree:Ot,pageRank:pr,getNeighbors:pe,Stack:ni,GADDI:to},Ro=z(77160),mi=z(35600),ya=z(31437),_o=q.vs,Yi=function(t){return function(e,r){return e[t]-r[t]}},Fi=function(t,e,r){return t>=e&&t<=r},Bo=function(t,e,r,n){var a=1e-4,i={x:r.x-t.x,y:r.y-t.y},o={x:e.x-t.x,y:e.y-t.y},s={x:n.x-r.x,y:n.y-r.y},l=o.x*s.y-o.y*s.x,h=l*l,p=1/l,D=o.x*o.x+o.y*o.y,I=s.x*s.x+s.y*s.y;if(h>a*D*I){var F=(i.x*s.y-i.y*s.x)*p,Z=(i.x*o.y-i.y*o.x)*p;return!Fi(F,0,1)||!Fi(Z,0,1)?null:{x:t.x+F*o.x,y:t.y+F*o.y}}return null},_s=function(t,e){var r=t.x,n=t.y,a=t.width,i=t.height,o=r+a/2,s=n+i/2,l=[],h={x:o,y:s};l.push({x:r,y:n}),l.push({x:r+a,y:n}),l.push({x:r+a,y:n+i}),l.push({x:r,y:n+i}),l.push({x:r,y:n});for(var p=null,D=1;De[n][i]+e[i][a]&&(e[n][a]=e[n][i]+e[i][a]);return e},Li=function(t,e){var r=t.nodes,n=t.edges,a=[],i={};if(!r)throw new Error("invalid nodes data!");return r&&r.forEach(function(o,s){i[o.id]=s;var l=[];a.push(l)}),n&&n.forEach(function(o){var s=o.source,l=o.target,h=i[s],p=i[l];a[h][p]=1,e||(a[p][h]=1)}),a},Mo=function(t,e){t.translate(e.x,e.y)},ho=function(t,e,r,n){n===void 0&&(n={duration:500});var a=t.getMatrix();a||(a=[1,0,0,0,1,0,0,0,1]);var i=t.getCanvasBBox(),o=e.x-i.minX,s=e.y-i.minY;if(r){var l=o*a[0],h=s*a[4],p=0,D=0,I=0,F=0;t.animate(function(ee){return I=l*ee,F=h*ee,a=_o(a,[["t",I-p,F-D]]),p=I,D=F,{matrix:a}},n)}else{var Z=_o(a,[["t",o,s]]);t.setMatrix(Z)}},Gi=function(t,e){var r=t.getMatrix();r||(r=[1,0,0,0,1,0,0,0,1]);var n=e;(0,m.isArray)(e)||(n=[e,e]),(0,m.isArray)(e)&&e.length===1&&(n=[e[0],e[0]]),r=_o(r,[["s",n[0],n[1]]]),t.setMatrix(r)},Di=function(t,e){var r=t.getMatrix();r||(r=[1,0,0,0,1,0,0,0,1]),r=_o(r,[["r",e]]),t.setMatrix(r)},$o=function(t,e,r){for(var n=[],a=0;a0!=o(h[1]-r)>0&&o(e-(r-l[1])*(l[0]-h[0])/(l[1]-h[1])-l[0])<0&&(n=!n)}return n},Qo=function(t,e){return!(e.minX>t.maxX||e.maxXt.maxY||e.maxY1){var oe=D[0],ce=D[F-1];I.push({from:{x:ce[0],y:ce[1]},to:{x:oe[0],y:oe[1]}})}return I};if(t.length<2||e.length<2)return!1;var a=r(t),i=r(e);if(!Qo(a,i))return!1;var o=!1;if((0,m.each)(e,function(p){if(ro(t,p[0],p[1]))return o=!0,!1}),o||((0,m.each)(t,function(p){if(ro(e,p[0],p[1]))return o=!0,!1}),o))return!0;var s=n(t),l=n(e),h=!1;return(0,m.each)(l,function(p){if(ns(s,p))return h=!0,!1}),h},ga=function(){function c(t,e,r,n){this.x1=t,this.y1=e,this.x2=r,this.y2=n}return c.prototype.getBBox=function(){var t=Math.min(this.x1,this.x2),e=Math.min(this.y1,this.y2),r=Math.max(this.x1,this.x2),n=Math.max(this.y1,this.y2),a={x:t,y:e,minX:t,minY:e,maxX:r,maxY:n,width:r-t,height:n-e};return a},c}(),vo=function(t,e){var r={top:[t.minX,t.minY,t.maxX,t.minY],left:[t.minX,t.minY,t.minX,t.maxY],bottom:[t.minX,t.maxY,t.maxX,t.maxY],right:[t.maxX,t.minY,t.maxX,t.maxY]};return r[e]},Vs=function(t,e){var r=(e.x2-e.x1)*(t.y1-e.y1)-(e.y2-e.y1)*(t.x1-e.x1),n=(t.x2-t.x1)*(t.y1-e.y1)-(t.y2-t.y1)*(t.x1-e.x1),a=(e.y2-e.y1)*(t.x2-t.x1)-(e.x2-e.x1)*(t.y2-t.y1);if(a){var i=r/a,o=n/a;if(i>=0&&i<=1&&o>=0&&o<=1)return i}return Number.POSITIVE_INFINITY},Pi=function(t,e){for(var r=["top","left","bottom","right"],n=t.getBBox(),a=0,i=[],o=0;o<4;o++){var s=vo(n,r[o]),l=s[0],h=s[1],p=s[2],D=s[3];i[o]=Bo({x:e.x1,y:e.y1},{x:e.x2,y:e.y2},{x:l,y:h},{x:p,y:D}),i[o]&&(a+=1)}return[i,a]},Ao=function(t,e){for(var r=["top","left","bottom","right"],n=t.getBBox(),a=Number.POSITIVE_INFINITY,i=0,o=0;o<4;o++){var s=vo(n,r[o]),l=s[0],h=s[1],p=s[2],D=s[3],I=Vs(e,new ga(l,h,p,D));I=Math.abs(I-.5),I>=0&&I<=1&&(i+=1,a=I0){for(var n=0,a=t;ne.x+e.width,a=t.y>e.y+e.height,i=t.y":.604998779296875,"/":.5,"?":.53699951171875},Xi=Math.PI,zo=Math.sin,is=Math.cos,ui=zo(Xi/8),ai=is(Xi/8),Eo=function(t,e){var r=t.getBBox(),n={x:r.minX,y:r.minY},a={x:r.maxX,y:r.maxY};if(e){var i=e.getMatrix();i||(i=[1,0,0,0,1,0,0,0,1]),n=_n(n,i),a=_n(a,i)}var o=n.x,s=n.y,l=a.x,h=a.y;return{x:o,y:s,minX:o,minY:s,maxX:l,maxY:h,width:l-o,height:h-s}},Yu=function(t){var e=t.sourceNode||t.targetNode,r=e.get("group"),n=r.getMatrix();n||(n=[1,0,0,0,1,0,0,0,1]);var a=e.getKeyShape(),i=a.getBBox(),o=t.loopCfg||{},s=o.dist||Math.max(i.width,i.height)*2,l=o.position||an.defaultLoopPosition,h=[(i.minX+i.maxX)/2+n[6],(i.minY+i.maxY)/2+n[7]],p=[t.startPoint.x,t.startPoint.y],D=[t.endPoint.x,t.endPoint.y],I=i.height/2,F=i.width/2,Z=I,ee=I,se=Z*ui,oe=Z*ai,ce=ee*ui,we=ee*ai,Re=a.get("type"),Oe=Math.min(I/2,F/2),Pe=Math.min(I,F),He=(o==null?void 0:o.pointPadding)?Math.min(Pe,o==null?void 0:o.pointPadding):Oe;if(p[0]===D[0]&&p[1]===D[1]){switch(l){case"top":Re==="circle"?(p=[h[0]-se,h[1]-oe],D=[h[0]+ce,h[1]-we]):(p=[h[0]-He,h[1]-I],D=[h[0]+He,h[1]-I]);break;case"top-right":Z=I,ee=F,Re==="circle"?(se=Z*ui,oe=Z*ai,ce=ee*ui,we=ee*ai,p=[h[0]+se,h[1]-oe],D=[h[0]+we,h[1]-ce]):(p=[h[0]+F-He,h[1]-I],D=[h[0]+F,h[1]-I+He]);break;case"right":Z=F,ee=F,Re==="circle"?(se=Z*ui,oe=Z*ai,ce=ee*ui,we=ee*ai,p=[h[0]+oe,h[1]-se],D=[h[0]+we,h[1]+ce]):(p=[h[0]+F,h[1]-He],D=[h[0]+F,h[1]+He]);break;case"bottom-right":Z=F,ee=I,Re==="circle"?(se=Z*ui,oe=Z*ai,ce=ee*ui,we=ee*ai,p=[h[0]+oe,h[1]+se],D=[h[0]+ce,h[1]+we]):(p=[h[0]+F,h[1]+I-He],D=[h[0]+F-He,h[1]+I]);break;case"bottom":Z=I,ee=I,Re==="circle"?(se=Z*ui,oe=Z*ai,ce=ee*ui,we=ee*ai,p=[h[0]+se,h[1]+oe],D=[h[0]-ce,h[1]+we]):(p=[h[0]-He,h[1]+I],D=[h[0]+He,h[1]+I]);break;case"bottom-left":Z=I,ee=F,Re==="circle"?(se=Z*ui,oe=Z*ai,ce=ee*ui,we=ee*ai,p=[h[0]-se,h[1]+oe],D=[h[0]-we,h[1]+ce]):(p=[h[0]-F,h[1]+I-He],D=[h[0]-F+He,h[1]+I]);break;case"left":Z=F,ee=F,Re==="circle"?(se=Z*ui,oe=Z*ai,ce=ee*ui,we=ee*ai,p=[h[0]-oe,h[1]+se],D=[h[0]-we,h[1]-ce]):(p=[h[0]-F,h[1]-He],D=[h[0]-F,h[1]+He]);break;case"top-left":Z=F,ee=I,Re==="circle"?(se=Z*ui,oe=Z*ai,ce=ee*ui,we=ee*ai,p=[h[0]-oe,h[1]-se],D=[h[0]-ce,h[1]-we]):(p=[h[0]-F+He,h[1]-I],D=[h[0]-F,h[1]-I+He]);break;default:Z=F,ee=F,se=Z*ui,oe=Z*ai,ce=ee*ui,we=ee*ai,p=[h[0]-se,h[1]-oe],D=[h[0]+ce,h[1]-we]}if(o.clockwise===!1){var at=[p[0],p[1]];p=[D[0],D[1]],D=[at[0],at[1]]}}var qe=[p[0]-h[0],p[1]-h[1]],yt=(Z+s)/Z,Ft=(ee+s)/ee;o.clockwise===!1&&(yt=(ee+s)/ee,Ft=(Z+s)/Z);var yr=ya.scale([0,0],qe,yt),fr=[h[0]+yr[0],h[1]+yr[1]],lr=[D[0]-h[0],D[1]-h[1]],Kt=ya.scale([0,0],lr,Ft),jr=[h[0]+Kt[0],h[1]+Kt[1]];return t.startPoint={x:p[0],y:p[1]},t.endPoint={x:D[0],y:D[1]},t.controlPoints=[{x:fr[0],y:fr[1]},{x:jr[0],y:jr[1]}],t},Hu=function(t,e,r,n,a){var i=1e-4,o=[],s=t==null?void 0:t.getPoint(e);if(!s)return{x:0,y:0,angle:0};if(e1-i)o=t.getEndTangent();else{var l=t==null?void 0:t.getPoint(e+i);o.push([s.x,s.y]),o.push([l.x,l.y])}var h=Math.atan2(o[1][1]-o[0][1],o[1][0]-o[0][0]);if(h<0&&(h+=Xi*2),r&&(s.x+=is(h)*r,s.y+=zo(h)*r),n){var p=h-Xi/2;h>1/2*Xi&&h<3*1/2*Xi&&(p-=Xi),s.x+=is(p)*n,s.y+=zo(p)*n}var D={x:s.x,y:s.y,angle:h};return a?(h>.5*Xi&&h<1.5*Xi&&(h-=Xi),(0,b.__assign)({rotate:h},D)):D},du=function c(t,e,r,n){if(n(t,e,r)===!1)return!1;if(t&&t.children){for(var a=t.children.length-1;a>=0;a--)if(!c(t.children[a],t,a,n))return!1}return!0},hu=function c(t,e,r,n){if(t&&t.children){for(var a=t.children.length-1;a>=0;a--)if(!c(t.children[a],t,a,n))return}return n(t,e,r)!==!1},Ei=function(t,e){typeof e=="function"&&du(t,null,-1,e)},Ki=function(t,e){typeof e=="function"&&hu(t,null,-1,e)},Zs=function(t,e){return e*(Hs[t]||1)},Ks=function(t,e){var r=0,n=new RegExp("[\u4E00-\u9FA5]+");return t.split("").forEach(function(a){n.test(a)?r+=e:r+=Zs(a,e)}),[r,e]},io=function(t,e){return typeof e!="number"||e<=0||e>=t.length?t:t.substring(0,e)+"..."},os=function(t,e){var r=[],n={},a={};t.forEach(function(s){a[s.id]=s}),t.forEach(function(s,l){var h=(0,m.clone)(s);h.itemType="combo",h.children=void 0,h.parentId===h.id?(console.warn("The parentId for combo ".concat(h.id," can not be the same as the combo's id")),delete h.parentId):h.parentId&&!a[h.parentId]&&(console.warn("The parent combo for combo ".concat(h.id," does not exist!")),delete h.parentId);var p=n[h.id];if(p){if(h.children=p.children,n[h.id]=h,p=h,!p.parentId){r.push(p);return}var D=n[p.parentId];if(D)D.children?D.children.push(h):D.children=[h];else{var I={id:p.parentId,children:[p]};n[p.parentId]=I,n[h.id]=h}return}if((0,m.isString)(s.parentId)){var F=n[s.parentId];if(F)F.children?F.children.push(h):F.children=[h],n[h.id]=h;else{var Z={id:s.parentId,children:[h]};n[Z.id]=Z,n[h.id]=h}}else r.push(h),n[h.id]=h});var i={};(e||[]).forEach(function(s){i[s.id]=s;var l=n[s.comboId];if(l){var h={id:s.id,comboId:s.comboId};l.children?l.children.push(h):l.children=[h],h.itemType="node",n[s.id]=h}});var o=0;return r.forEach(function(s){s.depth=o+10,Ei(s,function(l){var h,p=n[l.id].itemType;p==="node"?h=n[l.comboId]:h=n[l.parentId],h&&p==="node"?l.depth=o+1:l.depth=o+10,o-1&&a.splice(h,1),s||(i={id:e,itemType:"node",comboId:r},o[e]={children:void 0}),e){var p=!1;if(r){var D=0;(t||[]).forEach(function(F){p||Ei(F,function(Z){return r===Z.id?(p=!0,Z.children?Z.children.push(i):Z.children=[i],D=Z.depth,i.itemType==="node"?i.depth=D+2:i.depth=D+1,!1):!0})})}else(!r||!p)&&i.itemType!=="node"&&t.push(i);var I=i.depth;Ei(i,function(F){return F.itemType==="node"?I+=2:I+=1,F.depth=I,!0})}return t},us=function(t,e,r){var n={minX:Infinity,minY:Infinity,maxX:-Infinity,maxY:-Infinity,x:void 0,y:void 0,width:void 0,height:void 0,centerX:void 0,centerY:void 0};if(!t||t.length===0){var a=r==null?void 0:r.getModel(),i=a||{},o=i.x,s=i.y,l=i.fixSize,h=i.collapsed,p=i.fixCollapseSize,D=h?p:l,I=(0,m.isArray)(D)?D:[D,D],F=I[0],Z=I[1],ee=[F/2,Z/2];return{minX:o-ee[0],minY:s-ee[1],maxX:o+ee[0],maxY:s+ee[1],x:o,y:s,width:F,height:Z}}return t.forEach(function(se){var oe=e.findById(se.id);if(!(!oe||!oe.isVisible())){oe.set("bboxCanvasCache",void 0);var ce=oe.getCanvasBBox();ce.x&&n.minX>ce.minX&&(n.minX=ce.minX),ce.y&&n.minY>ce.minY&&(n.minY=ce.minY),ce.x&&n.maxXr&&(r=p),D>a&&(a=D)}var I=Math.floor(e),F=Math.floor(n),Z=Math.ceil(r)-Math.floor(e),ee=Math.ceil(a)-Math.floor(n);return{x:I,y:F,width:Z,height:ee,minX:e,minY:n,maxX:r,maxY:a}},Mf=function(t,e,r,n,a){e===void 0&&(e=15),r===void 0&&(r="quadratic"),n===void 0&&(n=void 0),a===void 0&&(a=void 0);for(var i=t.length,o=e*2,s=["top","top-right","right","bottom-right","bottom","bottom-left","left","top-left"],l={},h=[],p={},D=0;Dr.get("optimizeThreshold")){var o=Infinity,s=Infinity,l=-Infinity,h=-Infinity;i.forEach(function(we){var Re=we.getModel(),Oe=Re.x,Pe=Re.y;o>Oe&&(o=Oe),s>Pe&&(s=Pe),lee&&(se=ee,console.warn("fitview failed, ratio out of range, ratio: %f",o,"graph maxzoom has been used instead"));var oe=(0,Ts.vs)(I,[["t",-a.x,-a.y],["s",se,se],["t",a.x,a.y]]),ce=bo({animateCfg:r,callback:function(){t.setMatrix(oe),l.emit("viewportchange",{action:"translate",matrix:I}),l.emit("viewportchange",{action:"zoom",matrix:oe})}});t.stopAnimate(),t.setMatrix(e),t.animate(function(we){return{matrix:Fa(e,oe,we)}},ce)}},c.prototype.fitView=function(t,e){var r=this.graph,n=this.getFormatPadding(),a=r.get("width"),i=r.get("height"),o=r.get("group"),s=o.getMatrix()||[1,0,0,0,1,0,0,0,1];o.resetMatrix();var l,h=r.getNodes();if(h.length>r.get("optimizeThreshold")){var p=Infinity,D=Infinity,I=-Infinity,F=-Infinity;h.forEach(function(Oe){var Pe=Oe.getModel(),He=Pe.x,at=Pe.y;p>He&&(p=He),D>at&&(D=at),Ioe&&(ce=oe),t)this.animatedFitView(o,s,e,l,Z,ee,ce,!0);else{var we=Z.x-ee.x,Re=Z.y-ee.y;if(xo(we)||xo(Re))return;r.translate(we,Re),r.zoom(ce,Z)||console.warn("zoom failed, ratio out of range, ratio: %f",ce)}}},c.prototype.fitViewByRules=function(t,e,r){var n=t.onlyOutOfViewPort,a=n===void 0?!1:n,i=t.direction,o=i===void 0?"both":i,s=t.ratioRule,l=s===void 0?"min":s,h=this.graph,p=this.getFormatPadding(),D=h.get("width"),I=h.get("height"),F=h.get("group"),Z=F.getMatrix()||[1,0,0,0,1,0,0,0,1];F.resetMatrix();var ee,se=h.getNodes();if(se.length>h.get("optimizeThreshold")){var oe=Infinity,ce=Infinity,we=-Infinity,Re=-Infinity;se.forEach(function(fr){var lr=fr.getModel(),Kt=lr.x,jr=lr.y;oe>Kt&&(oe=Kt),ce>jr&&(ce=jr),wep.maxX&&(p.maxX=Z.maxX),Z.maxY>p.maxY&&(p.maxY=Z.maxY)}if(p.x=p.minX,p.y=p.minY,p.width=p.maxX-p.minX,p.height=p.maxY-p.minY,!(p.width===0||p.height===0)){var ee=this.getViewCenter(),se={x:p.x+p.width/2,y:p.y+p.height/2},oe=(o-i[1]-i[3])/p.width,ce=(s-i[0]-i[2])/p.height,we=oe;oe>ce&&(we=ce),r?this.animatedFitView(l,h,n,p,ee,se,we,e):(a.translate(ee.x-se.x,ee.y-se.y),e&&!a.zoom(we,ee)&&console.warn("zoom failed, ratio out of range, ratio: %f",we))}}},c.prototype.changeSize=function(t,e){var r=this.graph;if(!(0,m.isNumber)(t)||!(0,m.isNumber)(e))throw Error("invalid canvas width & height, please make sure width & height type is number");r.set({width:t,height:e});var n=r.get("canvas");n.changeSize(t,e);var a=r.get("plugins");a.forEach(function(i){i.get("gridContainer")&&i.positionInit()})},c.prototype.destroy=function(){this.graph=null,this.destroyed=!1},c}(),u=Cf;function O(c){return O=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},O(c)}function ue(c){if(typeof c!="string")return c;var t=function(Pe){if(typeof Pe!="string")return Pe;try{return JSON.parse(Pe.trim())}catch(He){return Pe.trim()}},e=t(c);if(typeof e!="string")return e;for(var r=function(Pe){return Pe[Pe.length-1]},n=c.trim(),a=[],i=[],o=function(){for(var Pe=[],He=0;He=0&&(a.height=i),o>=0&&(a.width=o),n.marginTop&&(a.y+=n.marginTop),n.marginLeft&&(a.x+=n.marginLeft),a}function Ye(c,t){var e;t===void 0&&(t={x:0,y:0});var r=(0,b.__assign)({x:0,y:0,width:0,height:0},t);if((e=c.children)===null||e===void 0?void 0:e.length){var n=c.attrs,a=n===void 0?{}:n,i=a.marginTop,o=(0,b.__assign)({},t);i&&(o.y+=i);for(var s=0;sr.width&&(r.width=h.width+h.x),h.height+h.y>r.height&&(r.height=h.height+h.y)}}}return c.bbox=Be(c,t,r),c.attrs=(0,b.__assign)((0,b.__assign)({},c.attrs),c.bbox),c}function Je(c,t){var e,r,n,a,i=(c||{}).type,o=((t==null?void 0:t.attrs)||{}).key;if(o&&c&&(c.attrs.key=o),!c&&t)return{action:"delete",val:t,type:i,key:o};if(c&&!t)return{action:"add",val:c,type:i};if(!c&&!t)return{action:"same",type:i};var s=[];if(((e=c.children)===null||e===void 0?void 0:e.length)>0||((r=t.children)===null||r===void 0?void 0:r.length)>0)for(var l=Math.max((n=c.children)===null||n===void 0?void 0:n.length,(a=t.children)===null||a===void 0?void 0:a.length),h=t.children||[],p=c.children||[],D=0;D-1)return;r.push(a)}else s>-1&&r.splice(s,1)}else if((0,m.isString)(e)){var l=r.filter(function(D){return D.includes(i)});l.length>0&&this.clearStates(l),o=o.filter(function(D){return!D.includes(i)}),o.push(a),this.set("states",o)}if(n){var h=this.get("model"),p=h.type;n.setState(p,t,e,this)}},c.prototype.clearStates=function(t){var e=this,r=e.getStates(),n=e.get("shapeFactory"),a=e.get("model"),i=a.type;t||(t=r),(0,m.isString)(t)&&(t=[t]);var o=r.filter(function(s){return t.indexOf(s)===-1});e.set("states",o),t.forEach(function(s){n.setState(i,s,!1,e)})},c.prototype.setOptimize=function(t){this.optimize=t},c.prototype.getContainer=function(){return this.get("group")},c.prototype.getKeyShape=function(){return this.get("keyShape")},c.prototype.getModel=function(){return this.get("model")},c.prototype.getType=function(){return this.get("type")},c.prototype.getID=function(){return this.get("id")},c.prototype.isItem=function(){return!0},c.prototype.getStates=function(){return this.get("states")},c.prototype.hasState=function(t){var e=this.getStates();return e.indexOf(t)>=0},c.prototype.refresh=function(t){var e=this.get("model");this.updatePosition(e),this.updateShape(t),this.afterUpdate(),this.clearCache()},c.prototype.getUpdateType=function(t){},c.prototype.update=function(t,e){e===void 0&&(e=void 0);var r=this.get("model");if(e==="move")this.updatePosition(t);else{var n=r.visible,a=t.visible;n!==a&&a!==void 0&&this.changeVisibility(a);var i={x:r.x,y:r.y};t.x=isNaN(+t.x)?r.x:+t.x,t.y=isNaN(+t.y)?r.y:+t.y;var o=this.get("styles");if(t.stateStyles){var s=t.stateStyles;(0,m.mix)(o,s),delete t.stateStyles}Object.assign(r,t),(i.x!==t.x||i.y!==t.y)&&this.updatePosition(t),this.updateShape(e)}this.afterUpdate(),this.clearCache()},c.prototype.updateShape=function(t){var e=this.get("shapeFactory"),r=this.get("model"),n=r.type;if(e.shouldUpdate(n)&&n===this.get("currentShape")){var a=this.getShapeCfg(r,t);e.baseUpdate(n,a,this,t),t!=="move"&&this.setOriginStyle()}else this.draw();this.restoreStates(e,n)},c.prototype.updatePosition=function(t){var e=this.get("model"),r=isNaN(+t.x)?+e.x:+t.x,n=isNaN(+t.y)?+e.y:+t.y,a=this.get("group");if(isNaN(r)||isNaN(n))return!1;e.x=r,e.y=n;var i=a.getMatrix();return i&&i[6]===r&&i[7]===n?!1:(a.resetMatrix(),Mo(a,{x:r,y:n}),this.clearCache(),!0)},c.prototype.getBBox=function(){var t=this.get(hr);return t||(t=this.calculateBBox(),this.set(hr,t)),t},c.prototype.getCanvasBBox=function(){var t=this.get(rn);return t||(t=this.calculateCanvasBBox(),this.set(rn,t)),t},c.prototype.toFront=function(){var t=this.get("group");t.toFront()},c.prototype.toBack=function(){var t=this.get("group");t.toBack()},c.prototype.show=function(){this.changeVisibility(!0)},c.prototype.hide=function(){this.changeVisibility(!1)},c.prototype.changeVisibility=function(t){var e=this.get("group");t?e.show():e.hide(),this.set("visible",t)},c.prototype.isVisible=function(){return this.get("visible")},c.prototype.enableCapture=function(t){var e=this.get("group");e&&e.set("capture",t)},c.prototype.destroy=function(){if(!this.destroyed){var t=this.get("animate"),e=this.get("group");t&&e.stopAnimate(),e.shapeMap={},this.clearCache(),e.remove(),this._cfg=null,this.destroyed=!0}},c}(),Un=qn,Mn={source:"start",target:"end"},Cn="Node",Ga="Point",ei="Anchor",Ka=function(c){(0,b.__extends)(t,c);function t(){return c!==null&&c.apply(this,arguments)||this}return t.prototype.getDefaultCfg=function(){return{type:"edge",sourceNode:null,targetNode:null,startPoint:null,endPoint:null,linkCenter:!1}},t.prototype.setEnd=function(e,r){var n=Mn[e]+Ga,a=e+Cn,i=this.get(a);i&&!i.destroyed&&i.removeEdge(this),(0,m.isPlainObject)(r)?(this.set(n,r),this.set(a,null)):r&&(r.addEdge(this),this.set(a,r),this.set(n,null))},t.prototype.getLinkPoint=function(e,r,n){var a=Mn[e]+Ga,i=e+Cn,o=this.get(a);if(!o){var s=this.get(i),l=e+ei,h=this.getPrePoint(e,n),p=r[l];(0,m.isNil)(p)||(o=s.getLinkPointByAnchor(p)),o=o||s.getLinkPoint(h),(0,m.isNil)(o.index)||this.set("".concat(e,"AnchorIndex"),o.index)}return o},t.prototype.getPrePoint=function(e,r){if(r&&r.length){var n=e==="source"?0:r.length-1;return r[n]}var a=e==="source"?"target":"source";return this.getEndPoint(a)},t.prototype.getEndPoint=function(e){var r=e+Cn,n=Mn[e]+Ga,a=this.get(r);return a&&!a.destroyed?a.get("model"):this.get(n)},t.prototype.getControlPointsByCenter=function(e){var r=this.getEndPoint("source"),n=this.getEndPoint("target"),a=this.get("shapeFactory"),i=e.type;return a.getControlPoints(i,{startPoint:r,endPoint:n})},t.prototype.getEndCenter=function(e){var r=e+Cn,n=Mn[e]+Ga,a=this.get(r);if(a){var i=a.getBBox();return{x:i.centerX,y:i.centerY}}return this.get(n)},t.prototype.init=function(){c.prototype.init.call(this),this.setSource(this.get("source")),this.setTarget(this.get("target"))},t.prototype.getShapeCfg=function(e,r){var n=this,a=n.get("linkCenter"),i=(r==null?void 0:r.includes("move"))?e:c.prototype.getShapeCfg.call(this,e);if(a)i.startPoint=n.getEndCenter("source"),i.endPoint=n.getEndCenter("target");else{var o=i.controlPoints||n.getControlPointsByCenter(i);i.startPoint=n.getLinkPoint("source",e,o),i.endPoint=n.getLinkPoint("target",e,o)}return i.sourceNode=n.get("sourceNode"),i.targetNode=n.get("targetNode"),i},t.prototype.getModel=function(){var e=this.get("model"),r=this.get("source".concat(Cn)),n=this.get("target".concat(Cn));return r?delete e["source".concat(Cn)]:e.source=this.get("start".concat(Ga)),n?delete e["target".concat(Cn)]:e.target=this.get("end".concat(Ga)),!(0,m.isString)(e.source)&&!(0,m.isPlainObject)(e.source)&&(e.source=e.source.getID()),!(0,m.isString)(e.target)&&!(0,m.isPlainObject)(e.target)&&(e.target=e.target.getID()),e},t.prototype.setSource=function(e){this.setEnd("source",e),this.set("source",e)},t.prototype.setTarget=function(e){this.setEnd("target",e),this.set("target",e)},t.prototype.getSource=function(){return this.get("source")},t.prototype.getTarget=function(){return this.get("target")},t.prototype.updatePosition=function(){return!1},t.prototype.update=function(e,r){r===void 0&&(r=void 0);var n=this.get("model"),a=n.visible,i=e.visible;a!==i&&i!==void 0&&this.changeVisibility(i);var o=this.get("source"),s=this.get("target");if(!(!o||o.destroyed||!s||s.destroyed)){var l=this.get("styles");if(e.stateStyles){var h=e.stateStyles;(0,m.mix)(l,h),delete e.stateStyles}Object.assign(n,e),this.updateShape(r),this.afterUpdate(),this.clearCache()}},t.prototype.destroy=function(){var e=this.get("source".concat(Cn)),r=this.get("target".concat(Cn));e&&!e.destroyed&&e.removeEdge(this),r&&!r.destroyed&&r.removeEdge(this),c.prototype.destroy.call(this)},t}(Un),$a=Ka,Ha="anchorPointsCache",fi="bboxCache",bi=function(c){(0,b.__extends)(t,c);function t(){return c!==null&&c.apply(this,arguments)||this}return t.prototype.getNearestPoint=function(e,r){for(var n=0,a=e[0],i=Va(e[0],r),o=0;o-1&&r.splice(n,1)},t.prototype.clearCache=function(){this.set(fi,null),this.set(Ha,null)},t.prototype.getUpdateType=function(e){var r,n,a,i,o;if(!!e){var s=!(0,m.isNil)(e.x),l=!(0,m.isNil)(e.y),h=Object.keys(e);if(h.length===1&&(s||l)||h.length===2&&s&&l)return"move";if((0,m.isNumber)(e.x)||(0,m.isNumber)(e.y)||e.type||e.anchorPoints||e.size||(e==null?void 0:e.style)&&(((r=e==null?void 0:e.style)===null||r===void 0?void 0:r.r)||((n=e==null?void 0:e.style)===null||n===void 0?void 0:n.width)||((a=e==null?void 0:e.style)===null||a===void 0?void 0:a.height)||((i=e==null?void 0:e.style)===null||i===void 0?void 0:i.rx)||((o=e==null?void 0:e.style)===null||o===void 0?void 0:o.ry)))return"bbox|label";var p=h.includes("label")||h.includes("labelCfg");return p?"style|label":"style"}},t.prototype.setState=function(e,r){var n=this;if(this.optimize){c.prototype.setState.call(this,e,r);return}this.runWithBBoxAffected(function(){return c.prototype.setState.call(n,e,r)})},t.prototype.clearStates=function(e){var r=this;if(this.optimize){c.prototype.clearStates.call(this,e);return}this.runWithBBoxAffected(function(){return c.prototype.clearStates.call(r,e)})},t.prototype.runWithBBoxAffected=function(e){var r=["r","width","height","rx","ry","lineWidth"],n=this.getKeyShape().attr(),a={};Object.keys(this.getKeyShape().attr()).forEach(function(l){r.includes(l)&&(a[l]=n[l])}),e();for(var i=this.getKeyShape().attr(),o=0;o-1?(r.splice(n,1),!0):!1}},t.prototype.removeNode=function(e){if(!!e){var r=this.getNodes(),n=r.indexOf(e);return n>-1?(r.splice(n,1),!0):!1}},t.prototype.getUpdateType=function(e){},t.prototype.getBBox=function(){this.set(Jo,null);var e=this.calculateCanvasBBox();return e},t.prototype.clearCache=function(){this.set(Oa,null),this.set(Jo,null),this.set(oo,null)},t.prototype.destroy=function(){if(!this.destroyed){var e=this.get("animate"),r=this.get("group");e&&r.stopAnimate(),r.shapeMap={},this.clearCache(),this.set(Wo,null),this.set("bbox",null),r.remove(),this._cfg=null,this.destroyed=!0}},t}(ha),Tf=Qs,Qu="node",Ju="edge",cc="vedge",yu="combo",If="default",Of="Mapper",qo="stateStyles",Af=function(){function c(t){var e=this;this.edgeToBeUpdateMap={},this.throttleRefresh=(0,m.throttle)(function(r){var n=e.graph;if(!(!n||n.get("destroyed"))){var a=e.edgeToBeUpdateMap;if(!!a){var i=Object.values(a);!i.length||(i.forEach(function(o){var s=o.edge;if(!(!s||s.destroyed)){var l=s.getSource(),h=s.getTarget();!l||l.destroyed||!h||h.destroyed||s.refresh(o.updateType)}}),e.edgeToBeUpdateMap={})}}},16,{trailing:!0,leading:!0}),this.graph=t,this.destroyed=!1}return c.prototype.addItem=function(t,e){var r=this.graph,n=t===cc?Ju:t,a=r.get("".concat(n,"Group"))||r.get("group"),i=(0,m.upperFirst)(n),o=null,s=r.get(n+(0,m.upperFirst)(qo))||{},l=r.get(If+i);e[qo]&&(s=e[qo]),l&&(0,m.each)(l,function(Oe,Pe){(0,m.isObject)(Oe)&&!(0,m.isArray)(Oe)?e[Pe]=(0,m.deepMix)({},Oe,e[Pe]):(0,m.isArray)(Oe)?e[Pe]=e[Pe]||(0,m.clone)(l[Pe]):e[Pe]=e[Pe]||l[Pe]});var h=r.get(n+Of);if(h){var p=h(e);p[qo]&&(s=p[qo],delete p[qo]),(0,m.each)(p,function(Oe,Pe){(0,m.isObject)(Oe)&&!(0,m.isArray)(Oe)?e[Pe]=(0,m.deepMix)({},e[Pe],Oe):e[Pe]=p[Pe]||e[Pe]})}if(r.emit("beforeadditem",{type:t,model:e}),t===Ju||t===cc){var D=void 0,I=void 0;if(D=e.source,I=e.target,D&&(0,m.isString)(D)&&(D=r.findById(D)),I&&(0,m.isString)(I)&&(I=r.findById(I)),!D||!I){console.warn("The source or target node of edge ".concat(e.id," does not exist!"));return}D.getType&&D.getType()==="combo"&&(e.isComboEdge=!0),I.getType&&I.getType()==="combo"&&(e.isComboEdge=!0),o=new $a({model:e,source:D,target:I,styles:s,linkCenter:r.get("linkCenter"),group:a.addGroup()})}else if(t===Qu)o=new ha({model:e,styles:s,group:a.addGroup()});else if(t===yu){var F=e.children,Z=us(F,r),ee=void 0,se=void 0;if(isNaN(Z.x)?isNaN(e.x)&&(ee=Math.random()*100):ee=Z.x,isNaN(Z.y)?isNaN(e.y)&&(se=Math.random()*100):se=Z.y,isNaN(e.x)||isNaN(e.y))e.x=ee,e.y=se;else{var oe=e.x-ee,ce=e.y-se;this.updateComboSucceeds(e.id,oe,ce,F)}var we=a.addGroup();we.setZIndex(e.depth),o=new Tf({model:e,styles:s,animate:r.get("animate"),bbox:e.collapsed?us([],r):Z,group:we}),!e.collapsed&&o.getKeyShape().get("type")==="circle"&&(Z.width=Math.hypot(Z.height,Z.width),Z.height=Z.width,o.set("bbox",Z),o.refresh());var Re=o.getModel();(F||[]).forEach(function(Oe){var Pe=r.findById(Oe.id);o.addChild(Pe),Oe.depth=Re.depth+2})}if(o)return o.setOptimize(r.getNodes().length>r.get("optimizeThreshold")),r.get("".concat(t,"s")).push(o),r.get("itemMap")[o.get("id")]=o,r.emit("afteradditem",{item:o,model:e}),o},c.prototype.updateItem=function(t,e){var r=this,n,a,i=this.graph;if((0,m.isString)(t)&&(t=i.findById(t)),!(!t||t.destroyed)){var o="";t.getType&&(o=t.getType());var s=i.get(o+Of),l=t.getModel(),h=l.x,p=l.y,D=t.getUpdateType(e);if(s){var I=(0,m.deepMix)({},l,e),F=s(I),Z=(0,m.deepMix)({},l,F,e);F[qo]&&(t.set("styles",Z[qo]),delete Z[qo]),(0,m.each)(Z,function(qe,yt){e[yt]=qe})}else(0,m.each)(e,function(qe,yt){l[yt]&&(0,m.isObject)(qe)&&!(0,m.isArray)(qe)&&(e[yt]=(0,b.__assign)((0,b.__assign)({},l[yt]),e[yt]))});if(i.emit("beforeupdateitem",{item:t,cfg:e}),o===Ju){if(e.source){var ee=e.source;(0,m.isString)(ee)&&(ee=i.findById(ee)),t.setSource(ee)}if(e.target){var se=e.target;(0,m.isString)(se)&&(se=i.findById(se)),t.setTarget(se)}t.update(e)}else if(o===Qu){t.update(e,D);var oe=t.getEdges();D==="move"?(0,m.each)(oe,function(qe){r.edgeToBeUpdateMap[qe.getID()]={edge:qe,updateType:D},r.throttleRefresh()}):(D==null?void 0:D.includes("bbox"))&&(0,m.each)(oe,function(qe){qe.refresh(D)})}else if(o===yu){if(t.update(e,D),!isNaN(e.x)||!isNaN(e.y)){var ce=e.x-h||0,we=e.y-p||0;this.updateComboSucceeds(l.id,ce,we)}var Re=t.getEdges(),Oe=(D==null?void 0:D.includes("bbox"))||D==="move";if(Oe&&o===yu){var Pe=t.get("shapeFactory"),He=l.type||"circle",at=l.animate===void 0||e.animate===void 0?(a=(n=Pe[He])===null||n===void 0?void 0:n.options)===null||a===void 0?void 0:a.animate:l.animate||e.animate;at?setTimeout(function(){if(!(!t||t.destroyed)){var qe=t.getKeyShape();!qe||qe.destroyed||(0,m.each)(Re,function(yt){yt&&!yt.destroyed&&yt.refresh()})}},201):(0,m.each)(Re,function(qe){qe.refresh()})}}t.setOptimize(i.getNodes().length>i.get("optimizeThreshold")),i.emit("afterupdateitem",{item:t,cfg:e})}},c.prototype.updateCombo=function(t,e,r){var n=this,a,i,o=this.graph;if((0,m.isString)(t)&&(t=o.findById(t)),!(!t||t.destroyed)){var s=t.getModel(),l=us(e,o,t),h=l.x,p=l.y;t.set("bbox",l);var D=h,I=p;r?(D=isNaN(s.x)?h:s.x,I=isNaN(s.y)?p:s.y):(D=isNaN(h)?s.x:h,I=isNaN(p)?s.y:p),t.update({x:D,y:I});var F=t.get("shapeFactory"),Z=s.type||"circle",ee=s.animate===void 0?(i=(a=F[Z])===null||a===void 0?void 0:a.options)===null||i===void 0?void 0:i.animate:s.animate;ee?setTimeout(function(){if(!(!t||t.destroyed)){var se=t.getKeyShape();!se||se.destroyed||(t.getShapeCfg(s),n.updateComboEdges(t))}},201):this.updateComboEdges(t)}},c.prototype.updateComboEdges=function(t){for(var e,r,n=t.getEdges()||[],a=0;a-1&&i.splice(o,1),a===Ju){var s=r.get("v".concat(a,"s")),l=s.indexOf(t);l>-1&&s.splice(l,1)}var h=t.get("id"),p=r.get("itemMap");delete p[h];var D=r.get("comboTrees"),I=t.get("id");if(a===Qu){var F=t.getModel().comboId;if(D&&F){var Z=D,ee=!1;D.forEach(function(Oe){ee||Ei(Oe,function(Pe){if(Pe.id===I&&Z){var He=Z.indexOf(Pe);return Z.splice(He,1),ee=!0,!1}return Z=Pe.children,!0})})}for(var se=t.getEdges(),oe=se.length-1;oe>=0;oe--)r.removeItem(se[oe],!1);F&&r.updateCombo(F)}else if(a===yu){var ce=t.getModel().parentId,we,Re=!1;(D||[]).forEach(function(Pe){Re||Ei(Pe,function(He){return He.id===I?(we=He,Re=!0,!1):!0})}),we.removed=!0,we&&we.children&&we.children.forEach(function(Pe){e.removeItem(Pe.id)});for(var se=t.getEdges(),oe=se.length;oe>=0;oe--)r.removeItem(se[oe],!1);ce&&r.updateCombo(ce)}t.destroy(),r.emit("afterremoveitem",{item:n,type:a})}},c.prototype.setItemState=function(t,e,r){var n=this.graph,a=e;(0,m.isString)(r)&&(a="".concat(e,":").concat(r)),!(t.hasState(a)===r&&r||(0,m.isString)(r)&&t.hasState(a))&&(n.emit("beforeitemstatechange",{item:t,state:a,enabled:r}),t.setState(e,r),n.autoPaint(),n.emit("afteritemstatechange",{item:t,state:a,enabled:r}))},c.prototype.priorityState=function(t,e){var r=this.graph,n=t;(0,m.isString)(t)&&(n=r.findById(t)),this.setItemState(n,e,!1),this.setItemState(n,e,!0)},c.prototype.clearItemStates=function(t,e){var r=this.graph;(0,m.isString)(t)&&(t=r.findById(t)),r.emit("beforeitemstatesclear",{item:t,states:e}),t.clearStates(e),r.emit("afteritemstatesclear",{item:t,states:e})},c.prototype.refreshItem=function(t){var e=this.graph;(0,m.isString)(t)&&(t=e.findById(t)),e.emit("beforeitemrefresh",{item:t}),t.refresh(),e.emit("afteritemrefresh",{item:t})},c.prototype.addCombos=function(t,e){var r=this,n=this.graph;(t||[]).forEach(function(i){Ki(i,function(o){var s;return e.forEach(function(l){l.id===o.id&&(l.children=o.children,l.depth=o.depth,s=l)}),s&&r.addItem("combo",s),!0})});var a=n.get("comboGroup");a&&a.sort()},c.prototype.changeItemVisibility=function(t,e){var r=this,n=this.graph;if((0,m.isString)(t)&&(t=n.findById(t)),!t){console.warn("The item to be shown or hidden does not exist!");return}if(n.emit("beforeitemvisibilitychange",{item:t,visible:e}),t.changeVisibility(e),t.getType&&t.getType()===Qu){var a=t.getEdges();(0,m.each)(a,function(h){e&&!(h.get("source").isVisible()&&h.get("target").isVisible())||r.changeItemVisibility(h,e)})}else if(t.getType&&t.getType()===yu){var i=n.get("comboTrees"),o=t.get("id"),s=[],l=!1;(i||[]).forEach(function(p){l||!p.children||p.children.length===0||Ei(p,function(D){return D.id===o?(s=D.children,l=!0,!1):!0})}),s&&(!e||e&&!t.getModel().collapsed)&&s.forEach(function(p){var D=n.findById(p.id);r.changeItemVisibility(D,e)});var a=t.getEdges();(0,m.each)(a,function(p){e&&!(p.get("source").isVisible()&&p.get("target").isVisible())||r.changeItemVisibility(p,e)})}return n.emit("afteritemvisibilitychange",{item:t,visible:e}),t},c.prototype.destroy=function(){this.graph=null,this.destroyed=!0},c}(),lc=Af,el=function(){function c(t){this.graph=t,this.destroyed=!1}return c.prototype.updateState=function(t,e,r){var n=this.graph.get("states"),a=e;(0,m.isString)(r)&&(a="".concat(e,":").concat(r)),n[a]||(n[a]=[]),r?n[a].push(t):n[a]=n[a].filter(function(i){return i!==t}),this.graph.set("states",n),this.graph.emit("graphstatechange",{states:n})},c.prototype.updateStates=function(t,e,r){var n=this.graph.get("states"),a=(0,m.isString)(e)?[e]:e;a.forEach(function(i){var o=i;n[o]||(n[o]=[]),(0,m.isString)(r)&&(o="".concat(i,":").concat(r)),r?n[o].push(t):n[o]=n[o].filter(function(s){return s!==t})}),this.graph.set("states",n),this.graph.emit("graphstatechange",{states:e})},c.prototype.destroy=function(){this.graph=null,this.destroyed=!0},c}(),Is=el,mu=z(80389),Qr=function(t,e){return!t||!e?t:t.replace(/\\?\{([^{}]+)\}/g,function(r,n){if(r.charAt(0)==="\\")return r.slice(1);var a=e[n];return a===0&&(a="0"),a||""})},Os=function(t){var e=[];if(t.length<2)throw new Error("point length must largn than 2, now it's ".concat(t.length));for(var r=0,n=t;r0?i-1:e-1,s=ya.normalize([0,0],ya.add([0,0],a[o].v,ya.scale([0,0],a[i].v,-1)));a[i].p=ya.add([0,0],a[i].p,ya.scale([0,0],s,t))}return a.map(function(l){var h=l.p;return{x:h[0],y:h[1]}})}var Lo=function(t,e){for(var r=[],n=0;n<5;n++){var a=Math.cos((18+72*n)/180*Math.PI)*t,i=Math.sin((18+72*n)/180*Math.PI)*t,o=Math.cos((54+72*n)/180*Math.PI)*e,s=Math.sin((54+72*n)/180*Math.PI)*e;n===0?r.push(["M",a,-i]):r.push(["L",a,-i]),r.push(["L",o,-s])}return r.push(["Z"]),r},Pf=function(t,e,r){return(t.y-r.y)*(e.x-r.x)-(t.x-r.x)*(e.y-r.y)},kf=function(t){var e=t.map(function(p){return{x:p.getModel().x,y:p.getModel().y}});e.sort(function(p,D){return p.x===D.x?p.y-D.y:p.x-D.x});for(var r={},n=e.length-1;n>=0;n--){var a=e[n],i=a.x,o=a.y;r["".concat(i,"-").concat(o)]&&e.splice(n,1),r["".concat(i,"-").concat(o)]=!0}if(e.length===1)return e;for(var s=[],n=0;n=2&&Pf(s[s.length-2],s[s.length-1],e[n])<=0;)s.pop();s.push(e[n])}for(var l=[],n=e.length-1;n>=0;n--){for(;l.length>=2&&Pf(l[l.length-2],l[l.length-1],e[n])<=0;)l.pop();l.push(e[n])}l.pop(),s.pop();var h=s.concat(l);return h},xi={maxRoutingIterations:100,maxMarchingIterations:100,pixelGroupSize:2,edgeR0:10,edgeR1:10,nodeR0:5,nodeR1:10,morphBuffer:5,threshold:.001,skip:16,nodeInfluenceFactor:1,edgeInfluenceFactor:1,negativeNodeInfluenceFactor:-.5};function tf(c,t,e){var r=!1,n=function(s,l){return t.cells[s+l*t.width]},a=function(s,l){var h=0;return n(s-1,l-1)>=e&&(h+=1),n(s,l-1)>e&&(h+=2),n(s-1,l)>e&&(h+=4),n(s,l)>e&&(h+=8),h},i=function(s,l){for(var h=s,p=l,D,I,F=0;F-1){if(!(c[0].x!==h||c[0].y!==p))return!0}else c.push({x:h,y:p});var Z=a(h,p);switch(Z){case-1:return console.warn("Marched out of bounds"),!0;case 0:case 3:case 2:case 7:h++;break;case 12:case 14:case 4:h--;break;case 6:D===0&&(I===-1?h-=1:h+=1);break;case 1:case 13:case 5:p--;break;case 9:D===1&&(I===0?p-=1:p+=1);break;case 10:case 8:case 11:p++;break;default:return console.warn("Marching squares invalid state: ".concat(Z)),!0}}};this.march=function(){for(var o=0;oe&&a(o,s)!==15&&(r=i(o,s));return r}}var As=function(t,e,r){var n=Math.ceil(t/r),a=Math.ceil(e/r),i=new Float32Array(Math.max(0,n*a)).fill(0);return{cells:i,width:n,height:a}},rf=function(t,e,r){var n=null,a=Number.POSITIVE_INFINITY;return e.forEach(function(i){var o={x:t.getModel().x,y:t.getModel().y},s={x:i.getModel().x,y:i.getModel().y},l=vi(o,s),h=new ga(o.x,o.y,s.x,s.y),p=r.reduce(function(D,I){return Ao(I,h)>0?D+1:D},0);l*Math.pow(p+1,2)=0&&i=1;)Re/=1.5,Oe=xu(F,Re,ee,we),Pe=l(Oe,i)||l(Oe,a),He=h(Oe,e);Oe&&!Pe&&(!we||!He)&&(i.push(new ga(I.x1,I.y1,Oe.x,Oe.y)),i.push(new ga(Oe.x,Oe.y,I.x2,I.y2)),o=!0)};oe(!0),o||oe(!1)}}o||a.push(I),s+=1};!o&&i.length;)p()}for(;i.length;)a.push(i.pop());return a};function hc(c,t,e,r,n){var a=rf(c,e,t);if(a===null)return[];var i=function(p){for(var D=[];p.length>0;){var I=p.pop();if(p.length===0){D.push(I);break}var F=p.pop(),Z=new ga(I.x1,I.y1,F.x2,F.y2),ee=nf(t,Z);ee?(D.push(I),p.push(F)):p.push(Z)}return D},o=new ga(c.getModel().x,c.getModel().y,a.getModel().x,a.getModel().y),s=dc(o,t,r,n),l=i(s);return l}var vc=function(t,e,r){var n=Object.assign(xi,r),a=as(t.map(function(oe){return{x:oe.getModel().x,y:oe.getModel().y}}));t=t.sort(function(oe,ce){return vi({x:oe.getModel().x,y:oe.getModel().y},a)-vi({x:ce.getModel().x,y:ce.getModel().y},a)});var i=[],o=[];t.forEach(function(oe){var ce=hc(oe,e,i,n.maxRoutingIterations,n.morphBuffer);ce.forEach(function(we){o.push(we)}),i.push(oe)});for(var s=af(t,o,n.nodeR0),l=As(s.width,s.height,n.pixelGroupSize),h=[],p=[],D=0;D1)for(F=Math.floor(I.length/n.skip);F<3&&n.skip>1;)n.skip-=1,F=Math.floor(I.length/n.skip);for(var Z=0,ee=0;ee0)n.nonMemberInfluenceFactor*=.8;else break}return p};function af(c,t,e){var r={minX:Number.POSITIVE_INFINITY,minY:Number.POSITIVE_INFINITY,maxX:Number.NEGATIVE_INFINITY,maxY:Number.NEGATIVE_INFINITY,width:0,height:0,x:0,y:0},n=[];c.forEach(function(s){n.push(s.getBBox())}),t.forEach(function(s){n.push(s.getBBox())});for(var a=0,i=n;ar.maxX?o.maxX:r.maxX)+e,r.maxY=(o.maxY>r.maxY?o.maxY:r.maxY)+e}return r.width=r.maxX-r.minX,r.height=r.maxY-r.minY,r.x=r.minX,r.y=r.minY,r}function gc(c,t,e,r,n,a){function i(I,F){var Z=Math.floor((I-F)/a.pixelGroupSize);return Z<0?0:Z}function o(I,F){return I*a.pixelGroupSize+F}var s=(a.nodeR0-a.nodeR1)*(a.nodeR0-a.nodeR1),l=(a.edgeR0-a.edgeR1)*(a.edgeR0-a.edgeR1),h=function(F,Z){var ee=Math.min(i(F.minX,Z+r.minX),n.width),se=Math.min(i(F.minY,Z+r.minY),n.height),oe=Math.min(i(F.maxX,-Z+r.minX),n.width),ce=Math.min(i(F.maxY,-Z+r.minY),n.height);return[ee,se,oe,ce]},p=function(F,Z){for(var ee=F.getBBox(),se=h(ee,a.nodeR1),oe=se[0],ce=se[1],we=se[2],Re=se[3],Oe=ce;Oes.y?r?l.topLeft:l.bottomRight:r?l.topRight:l.bottomLeft:i.yo.x?r?l.topLeft:l.bottomRight:r?l.bottomLeft:l.topRight:a.x0?this.cfg.padding+t:10+t,this.cfg.bubbleCfg={nodeR0:this.padding-t,nodeR1:this.padding-t,morphBuffer:this.padding-t}},c.prototype.setType=function(){this.type=this.cfg.type,this.members.length<3&&(this.type="round-convex"),this.type!=="round-convex"&&this.type!=="smooth-convex"&&this.type!=="bubble"&&(console.warn("The hull type should be either round-convex, smooth-convex or bubble, round-convex is used by default."),this.type="round-convex")},c.prototype.calcPath=function(t,e){var r,n,a;switch(this.type){case"round-convex":r=kf(t),a=ef(r.map(function(i){return[i.x,i.y]}),this.padding),n=(0,mu.tr)(a);break;case"smooth-convex":r=kf(t),r.length===2?(a=ef(r.map(function(i){return[i.x,i.y]}),this.padding),n=(0,mu.tr)(a)):r.length>2&&(a=Nf(r.map(function(i){return[i.x,i.y]}),this.padding),n=ls(a));break;case"bubble":r=vc(t,e,this.cfg.bubbleCfg),n=r.length>=2&&ls(r);break;default:}return n},c.prototype.render=function(){this.group.addShape("path",{attrs:(0,b.__assign)({path:this.path},this.cfg.style),id:this.id,name:this.cfg.id,capture:!1}),this.group.toBack()},c.prototype.addMember=function(t){if(!!t){(0,m.isString)(t)&&(t=this.graph.findById(t)),this.members.push(t);var e=this.nonMembers.indexOf(t);return e>-1&&this.nonMembers.splice(e,1),this.updateData(this.members,this.nonMembers),!0}},c.prototype.addNonMember=function(t){if(!!t){(0,m.isString)(t)&&(t=this.graph.findById(t)),this.nonMembers.push(t);var e=this.members.indexOf(t);return e>-1&&this.members.splice(e,1),this.updateData(this.members,this.nonMembers),!0}},c.prototype.removeMember=function(t){if(!!t){(0,m.isString)(t)&&(t=this.graph.findById(t));var e=this.members.indexOf(t);return e>-1?(this.members.splice(e,1),this.updateData(this.members,this.nonMembers),!0):!1}},c.prototype.removeNonMember=function(t){if(!!t){(0,m.isString)(t)&&(t=this.graph.findById(t));var e=this.nonMembers.indexOf(t);return e>-1?(this.nonMembers.splice(e,1),this.updateData(this.members,this.nonMembers),!0):!1}},c.prototype.updateData=function(t,e){var r=this;this.group.findById(this.id).remove(),t&&(this.members=t.map(function(n){return(0,m.isString)(n)?r.graph.findById(n):n})),e&&(this.nonMembers=e.map(function(n){return(0,m.isString)(n)?r.graph.findById(n):n})),this.path=this.calcPath(this.members,this.nonMembers),this.render()},c.prototype.updateStyle=function(t){var e=this.group.findById(this.id);e.attr((0,b.__assign)({},t))},c.prototype.updateCfg=function(t){var e=this;this.cfg=(0,m.deepMix)(this.cfg,t),this.id=this.cfg.id,this.group=this.cfg.group,t.members&&(this.members=this.cfg.members.map(function(r){return(0,m.isString)(r)?e.graph.findById(r):r})),t.nonMembers&&(this.nonMembers=this.cfg.nonMembers.map(function(r){return(0,m.isString)(r)?e.graph.findById(r):r})),this.setPadding(),this.setType(),this.path=this.calcPath(this.members,this.nonMembers),this.render()},c.prototype.contain=function(t){var e=this,r;(0,m.isString)(t)?r=this.graph.findById(t):r=t;var n,a=r.getKeyShape();if(r.get("type")==="path")n=Eu(a.attr("path"));else{var i=a.getCanvasBBox();n=[[i.minX,i.minY],[i.maxX,i.minY],[i.maxX,i.maxY],[i.minX,i.maxY]]}return n=n.map(function(o){var s=e.graph.getPointByCanvas(o[0],o[1]);return[s.x,s.y]}),zi(n,Eu(this.path))},c.prototype.destroy=function(){this.group.remove(),this.cfg=null},c}(),Rf=pc,ds=q.vs,tl="node",Do=function(c){(0,b.__extends)(t,c);function t(e){var r=c.call(this)||this;return r.sortCombos=(0,m.debounce)(function(){var n=r.get("comboSorted");if(!(!r||r.destroyed||n)){r.set("comboSorted",!0);var a=[],i={},o=r.get("comboTrees");(o||[]).forEach(function(l){Ei(l,function(h){return a[h.depth]?a[h.depth].push(h.id):a[h.depth]=[h.id],i[h.id]=h.depth,!0})});var s=r.getEdges().concat(r.get("vedges"));(s||[]).forEach(function(l){var h=l.getModel(),p=i[h.source]||0,D=i[h.target]||0,I=Math.max(p,D);a[I]?a[I].push(h.id):a[I]=[h.id]}),a.forEach(function(l){if(!(!l||!l.length))for(var h=l.length-1;h>=0;h--){var p=r.findById(l[h]);p&&p.toFront()}})}},500,!1),r.cfg=(0,m.deepMix)(r.getDefaultCfg(),e),r.init(),r.animating=!1,r.destroyed=!1,r.cfg.enabledStack&&(r.undoStack=new ni(r.cfg.maxStep),r.redoStack=new ni(r.cfg.maxStep)),r}return t.prototype.init=function(){this.initCanvas();var e=new u(this),r=new gu(this),n=new lc(this),a=new Is(this);this.set({viewController:e,modeController:r,itemController:n,stateController:a}),this.initLayoutController(),this.initEventController(),this.initGroups(),this.initPlugins()},t.prototype.initGroups=function(){var e=this.get("canvas");if(!!e){var r=e.get("el"),n=(r||{}).id,a=n===void 0?"g6":n,i=e.addGroup({id:"".concat(a,"-root"),className:an.rootContainerClassName});if(this.get("groupByTypes")){var o=i.addGroup({id:"".concat(a,"-edge"),className:an.edgeContainerClassName}),s=i.addGroup({id:"".concat(a,"-node"),className:an.nodeContainerClassName}),l=i.addGroup({id:"".concat(a,"-combo"),className:an.comboContainerClassName});l.toBack(),this.set({nodeGroup:s,edgeGroup:o,comboGroup:l})}var h=i.addGroup({id:"".concat(a,"-delegate"),className:an.delegateContainerClassName});this.set({delegateGroup:h}),this.set("group",i)}},t.prototype.getDefaultCfg=function(){return{container:void 0,width:void 0,height:void 0,renderer:"canvas",modes:{},plugins:[],data:{},fitViewPadding:10,minZoom:.02,maxZoom:10,event:!0,groupByTypes:!0,directed:!1,autoPaint:!0,nodes:[],edges:[],combos:[],vedges:[],itemMap:{},linkCenter:!1,defaultNode:{},defaultEdge:{},nodeStateStyles:{},edgeStateStyles:{},states:{},animate:!1,animateCfg:{onFrame:void 0,duration:500,easing:"easeLinear"},callback:void 0,enabledStack:!1,maxStep:10,tooltips:[],optimizeThreshold:1e3}},t.prototype.set=function(e,r){return(0,m.isPlainObject)(e)?this.cfg=(0,b.__assign)((0,b.__assign)({},this.cfg),e):this.cfg[e]=r,e==="enabledStack"&&r&&!this.undoStack&&!this.redoStack&&(this.undoStack=new ni(this.cfg.maxStep),this.redoStack=new ni(this.cfg.maxStep)),this},t.prototype.get=function(e){var r;return(r=this.cfg)===null||r===void 0?void 0:r[e]},t.prototype.getGroup=function(){return this.get("group")},t.prototype.getContainer=function(){return this.get("container")},t.prototype.getMinZoom=function(){return this.get("minZoom")},t.prototype.setMinZoom=function(e){return this.set("minZoom",e)},t.prototype.getMaxZoom=function(){return this.get("maxZoom")},t.prototype.setMaxZoom=function(e){return this.set("maxZoom",e)},t.prototype.getWidth=function(){return this.get("width")},t.prototype.getHeight=function(){return this.get("height")},t.prototype.clearItemStates=function(e,r){(0,m.isString)(e)&&(e=this.findById(e));var n=this.get("itemController");r||(r=e.get("states")),n.clearItemStates(e,r);var a=this.get("stateController");a.updateStates(e,r,!1)},t.prototype.node=function(e){typeof e=="function"&&this.set("nodeMapper",e)},t.prototype.edge=function(e){typeof e=="function"&&this.set("edgeMapper",e)},t.prototype.combo=function(e){typeof e=="function"&&this.set("comboMapper",e)},t.prototype.findById=function(e){return this.get("itemMap")[e]},t.prototype.find=function(e,r){var n,a=this.get("".concat(e,"s"));return(0,m.each)(a,function(i,o){if(r(i,o))return n=i,n}),n},t.prototype.findAll=function(e,r){var n=[];return(0,m.each)(this.get("".concat(e,"s")),function(a,i){r(a,i)&&n.push(a)}),n},t.prototype.findAllByState=function(e,r,n){return n?this.findAll(e,function(a){return a.hasState(r)&&n(a)}):this.findAll(e,function(a){return a.hasState(r)})},t.prototype.translate=function(e,r,n,a){var i=this,o=this.get("group"),s=(0,m.clone)(o.getMatrix());if(s||(s=[1,0,0,0,1,0,0,0,1]),n){var l=bo({animateCfg:a,callback:function(){return i.emit("viewportchange",{action:"translate",matrix:o.getMatrix()})}});ho(o,{x:o.getCanvasBBox().x+e,y:o.getCanvasBBox().y+r},n,l||{duration:500,easing:"easeCubic"})}else s=ds(s,[["t",e,r]]),o.setMatrix(s),this.emit("viewportchange",{action:"translate",matrix:s}),this.autoPaint()},t.prototype.moveTo=function(e,r,n,a){var i=this.get("group");ho(i,{x:e,y:r},n,a||{duration:500,easing:"easeCubic"}),this.emit("viewportchange",{action:"move",matrix:i.getMatrix()})},t.prototype.fitView=function(e,r,n,a){e&&this.set("fitViewPadding",e);var i=this.get("viewController");r?i.fitViewByRules(r,n,a):i.fitView(n,a),this.autoPaint()},t.prototype.fitCenter=function(e,r){var n=this.get("viewController");n.fitCenter(e,r),this.autoPaint()},t.prototype.addBehaviors=function(e,r){var n=this.get("modeController");return n.manipulateBehaviors(e,r,!0),this},t.prototype.removeBehaviors=function(e,r){var n=this.get("modeController");return n.manipulateBehaviors(e,r,!1),this},t.prototype.updateBehavior=function(e,r,n){var a=this.get("modeController");return a.updateBehavior(e,r,n),this},t.prototype.zoom=function(e,r,n,a){var i=this,o=this.get("group"),s=(0,m.clone)(o.getMatrix())||[1,0,0,0,1,0,0,0,1],l=this.get("minZoom"),h=this.get("maxZoom"),p=this.getZoom()||1,D=p*e,I=e,F=!1;if(l&&Dh&&(I=h/p,F=!0),r?s=ds(s,[["t",-r.x,-r.y],["s",I,I],["t",r.x,r.y]]):s=ds(s,[["s",I,I]]),n){var Z=(0,m.clone)(o.getMatrix());Z||(Z=[1,0,0,0,1,0,0,0,1]);var ee=Z[0],se=ee*I,oe=bo({animateCfg:a,callback:function(){return i.emit("viewportchange",{action:"zoom",matrix:o.getMatrix()})}});o.animate(function(ce){if(ce===1)Z=s;else{var we=da(ee,se,ce)/Z[0];r?Z=ds(Z,[["t",-r.x,-r.y],["s",we,we],["t",r.x,r.y]]):Z=ds(Z,[["s",we,we]])}return{matrix:Z}},oe)}else o.setMatrix(s),this.emit("viewportchange",{action:"zoom",matrix:s}),this.autoPaint();return!F},t.prototype.zoomTo=function(e,r,n,a){var i=e/this.getZoom();return this.zoom(i,r,n,a)},t.prototype.focusItem=function(e,r,n){var a=this.get("viewController"),i=!1;r?i=!0:r===void 0&&(i=this.get("animate"));var o={};n?o=n:n===void 0&&(o=this.get("animateCfg")),a.focus(e,i,o),this.autoPaint()},t.prototype.focusItems=function(e,r,n,a){var i=this.get("viewController");i.focusItems(e,r,n,a)},t.prototype.autoPaint=function(){this.get("autoPaint")&&this.paint()},t.prototype.paint=function(){this.emit("beforepaint"),this.get("canvas").draw(),this.emit("afterpaint")},t.prototype.getPointByClient=function(e,r){var n=this.get("viewController");return n.getPointByClient(e,r)},t.prototype.getClientByPoint=function(e,r){var n=this.get("viewController");return n.getClientByPoint(e,r)},t.prototype.getPointByCanvas=function(e,r){var n=this.get("viewController");return n.getPointByCanvas(e,r)},t.prototype.getCanvasByPoint=function(e,r){var n=this.get("viewController");return n.getCanvasByPoint(e,r)},t.prototype.getGraphCenterPoint=function(){var e=this.get("group").getCanvasBBox();return{x:(e.minX+e.maxX)/2,y:(e.minY+e.maxY)/2}},t.prototype.getViewPortCenterPoint=function(){return this.getPointByCanvas(this.get("width")/2,this.get("height")/2)},t.prototype.showItem=function(e,r){r===void 0&&(r=!0);var n=this.get("itemController"),a=n.changeItemVisibility(e,!0);if(r&&this.get("enabledStack")){var i=a.getID(),o=a.getType(),s={},l={};switch(o){case"node":s.nodes=[{id:i,visible:!1}],l.nodes=[{id:i,visible:!0}];break;case"edge":s.nodes=[{id:i,visible:!1}],l.edges=[{id:i,visible:!0}];break;case"combo":s.nodes=[{id:i,visible:!1}],l.combos=[{id:i,visible:!0}];break;default:break}this.pushStack("visible",{before:s,after:l})}},t.prototype.hideItem=function(e,r){r===void 0&&(r=!0);var n=this.get("itemController"),a=n.changeItemVisibility(e,!1);if(r&&this.get("enabledStack")){var i=a.getID(),o=a.getType(),s={},l={};switch(o){case"node":s.nodes=[{id:i,visible:!0}],l.nodes=[{id:i,visible:!1}];break;case"edge":s.nodes=[{id:i,visible:!0}],l.edges=[{id:i,visible:!1}];break;case"combo":s.nodes=[{id:i,visible:!0}],l.combos=[{id:i,visible:!1}];break;default:break}this.pushStack("visible",{before:s,after:l})}},t.prototype.refreshItem=function(e){var r=this.get("itemController");r.refreshItem(e)},t.prototype.setAutoPaint=function(e){var r=this;r.set("autoPaint",e);var n=r.get("canvas");n.set("autoDraw",e)},t.prototype.remove=function(e,r){r===void 0&&(r=!0),this.removeItem(e,r)},t.prototype.removeItem=function(e,r){r===void 0&&(r=!0);var n=e;if((0,m.isString)(e)&&(n=this.findById(e)),!n&&(0,m.isString)(e))console.warn("The item ".concat(e," to be removed does not exist!"));else if(n){var a="";if(n.getType&&(a=n.getType()),r&&this.get("enabledStack")){var i=(0,b.__assign)((0,b.__assign)({},n.getModel()),{itemType:a}),o={};switch(a){case"node":{o.nodes=[i],o.edges=[];for(var s=n.getEdges(),l=s.length-1;l>=0;l--)o.edges.push((0,b.__assign)((0,b.__assign)({},s[l].getModel()),{itemType:"edge"}));break}case"edge":o.edges=[i];break;case"combo":o.combos=[i];break;default:break}this.pushStack("delete",{before:o,after:{}})}if(a==="node"){var h=n.getModel();h.comboId&&this.updateComboTree(n,void 0,!1)}var p=this.get("itemController");if(p.removeItem(n),a==="combo"){var D=ss(this.get("comboTrees"));this.set("comboTrees",D)}}},t.prototype.innerAddItem=function(e,r,n){if(!Zu(e,r))return!1;if(r.id&&this.findById(r.id)){console.warn("This item exists already. Be sure the id %c".concat(r.id,"%c is unique."),"font-size: 20px; color: red;","");return}var a,i=this.get("comboTrees")||[];if(e==="combo"){var o=this.get("itemMap"),s=!1;if(i.forEach(function(F){s||Ki(F,function(Z){if(r.parentId===Z.id){s=!0;var ee=(0,b.__assign)({id:r.id,depth:Z.depth+2},r);Z.children?Z.children.push(ee):Z.children=[ee],r.depth=ee.depth,a=n.addItem(e,r)}var se=o[Z.id];return s&&se&&se.getType&&se.getType()==="combo"&&n.updateCombo(se,Z.children),!0})}),!s){var l=(0,b.__assign)({id:r.id,depth:0},r);r.depth=l.depth,i.push(l),a=n.addItem(e,r)}this.set("comboTrees",i),r.collapsed&&(this.collapseCombo(a,!1),this.updateCombo(a))}else if(e==="node"&&(0,m.isString)(r.comboId)&&i){var h=this.findById(r.comboId);h&&h.getType&&h.getType()!=="combo"&&console.warn("'".concat(r.comboId,"' is not a id of a combo in the graph, the node will be added without combo.")),a=n.addItem(e,r);var p=this.get("itemMap"),D=!1,I=!1;i.forEach(function(F){I||D||Ki(F,function(Z){if(Z.id===r.id)return I=!0,!1;if(r.comboId===Z.id&&!I){D=!0;var ee=(0,m.clone)(r);ee.itemType="node",Z.children?Z.children.push(ee):Z.children=[ee],ee.depth=Z.depth+1}return D&&p[Z.id].getType&&p[Z.id].getType()==="combo"&&n.updateCombo(p[Z.id],Z.children),!0})})}else a=n.addItem(e,r);if(e==="node"&&r.comboId||e==="combo"&&r.parentId){var h=this.findById(r.comboId||r.parentId);h&&h.getType&&h.getType()==="combo"&&h.addChild(a)}return a},t.prototype.addItem=function(e,r,n,a){n===void 0&&(n=!0),a===void 0&&(a=!0);var i=this.get("comboSorted");this.set("comboSorted",i&&!a);var o=this.get("itemController"),s=this.innerAddItem(e,r,o);if(s===!1||s===!0)return s;var l=this.get("combos");if(l&&l.length>0&&this.sortCombos(),this.autoPaint(),n&&this.get("enabledStack")){var h=(0,b.__assign)((0,b.__assign)({},s.getModel()),{itemType:e}),p={};switch(e){case"node":p.nodes=[h];break;case"edge":p.edges=[h];break;case"combo":p.combos=[h];break;default:break}this.pushStack("add",{before:{},after:p})}return s},t.prototype.addItems=function(e,r,n){e===void 0&&(e=[]),r===void 0&&(r=!0),n===void 0&&(n=!0);var a=this.get("comboSorted");this.set("comboSorted",a&&!n);for(var i=this.get("itemController"),o=[],s=0;s0&&this.sortCombos()}if(this.autoPaint(),r&&this.get("enabledStack")){for(var p={nodes:[],edges:[],combos:[]},s=0;s=0;ee--)F[ee].destroyed&&F.splice(ee,1);D&&(i.addCombos(D),this.get("groupByTypes")||this.sortCombos()),this.diffItems("edge",p,o.edges),(0,m.each)(h,function(oe,ce){oe.getType&&(oe.getType()==="node"||oe.getType()==="combo")||p.edges.indexOf(oe)<0&&(delete h[ce],i.remove(oe,!1))}),(this.get("comboTrees")||[]).forEach(function(oe){Ki(oe,function(ce){var we=n.findById(ce.id);return we.getType()==="combo"&&ce.collapsed&&n.collapseCombo(ce.id,!1),!0})}),this.set({nodes:p.nodes,edges:p.edges});var se=this.get("layoutController");return se&&(se.changeData(function(){setTimeout(function(){var oe;(oe=i.getCombos())===null||oe===void 0||oe.forEach(function(ce){ce.set("animate",!0)})},0)}),i.get("animate")&&!se.getLayoutType()?(i.positionsAnimate(),(a=i.getCombos())===null||a===void 0||a.forEach(function(oe){return oe.set("animate",!0)})):i.autoPaint()),setTimeout(function(){s.set("localRefresh",l)},16),this.set("data",o),this.emit("afterchangedata"),this},t.prototype.addCombos=function(e){var r=this,n=r.get("comboTrees"),a=this.get("itemController");a.addCombos(n,e)},t.prototype.createCombo=function(e,r,n){var a=this;n===void 0&&(n=!0);var i=this.get("itemController");this.set("comboSorted",!1);var o="",s;if(!!e){if((0,m.isString)(e))o=e,s={id:e};else{if(o=e.id,!o){console.warn("Create combo failed. Please assign a unique string id for the adding combo.");return}s=e}var l=n&&this.get("enabledStack"),h={nodes:[],combos:[]};l&&r.forEach(function(se){var oe=a.findById(se),ce=oe.getType();if(!(ce!=="node"&&ce!=="combo")){var we=oe.getModel();h["".concat(ce,"s")].push({id:se,parentId:ce==="node"?we.comboId:we.parentId})}});var p=this.get("comboTrees"),D=new Set(r),I=new Map;p&&(p.forEach(function(se){Ki(se,function(oe,ce,we){if(D.has(oe.id)){if(ce){var Re=a.findById(ce.id),Oe=a.findById(oe.id);ce.children.splice(we,1),Re.removeChild(Oe),i.updateCombo(Re,ce.children)}oe.itemType==="combo"&&I.set(oe.id,oe)}return!0})}),p=p.filter(function(se){return!D.has(se.id)}),this.set("comboTrees",p));var F={nodes:[],combos:[]},Z=r.map(function(se){var oe=a.findById(se),ce=oe.getModel(),we="";oe.getType&&(we=oe.getType());var Re=I.get(se)||{id:oe.getID(),itemType:we};return we==="combo"?(Re.parentId=o,ce.parentId=o):we==="node"&&(Re.comboId=o,ce.comboId=o),l&&F["".concat(we,"s")].push({id:ce.id,parentId:o}),Re});s.children=Z,this.addItem("combo",s,!1),this.set("comboSorted",!1),p&&(p.forEach(function(se){Ei(se,function(oe){return oe.id===o?(oe.itemType="combo",oe.children=Z,!1):!0})}),this.sortCombos()),l&&(F.combos.push(s),this.pushStack("createCombo",{before:h,after:F}));var ee=this.findById(o);!ee.getModel().parentId&&ee.getChildren().combos.length&&this.updateComboTree(ee,void 0,!1)}},t.prototype.uncombo=function(e,r){var n=this,a,i;r===void 0&&(r=!0);var o=this,s=e;if((0,m.isString)(e)&&(s=this.findById(e)),!s||s.getType&&s.getType()!=="combo"){console.warn("The item is not a combo!");return}var l=s.getModel(),h=s.getModel().parentId,p=o.get("comboTrees");p||(p=[]);var D=this.get("itemMap"),I=s.get("id"),F,Z=[],ee=this.get("combos"),se=this.findById(h),oe=r&&this.get("enabledStack"),ce={};if(oe&&(ce=(0,m.clone)(l),ce.children=[]),p.forEach(function(Pe){F||Ki(Pe,function(He){var at;if(He.id===I){F=He;var qe=s.getEdges().map(function(yr){return yr.getID()});qe.forEach(function(yr){n.removeItem(yr,!1)});var yt=ee.indexOf(s);ee.splice(yt,1),delete D[I];var Ft=(0,m.clone)(s.getModel());s.destroy(),n.emit("afterremoveitem",{item:Ft,type:"combo"})}if(h&&F&&He.id===h){se.removeCombo(s),Z=He.children;var yt=Z.indexOf(F);return yt!==-1&&Z.splice(yt,1),(at=F.children)===null||at===void 0||at.forEach(function(fr){var lr=n.findById(fr.id),Kt=lr.getModel();lr.getType&&lr.getType()==="combo"?(fr.parentId=h,delete fr.comboId,Kt.parentId=h,delete Kt.comboId):lr.getType&&lr.getType()==="node"&&(fr.comboId=h,Kt.comboId=h),se.addChild(lr),Z.push(fr)}),n.updateCombo(se),!1}return!0})}),!h&&F){var we=p.indexOf(F);p.splice(we,1),(a=F.children)===null||a===void 0||a.forEach(function(Pe){Pe.parentId=void 0;var He=n.findById(Pe.id).getModel();delete He.parentId,delete He.comboId,Pe.itemType!=="node"&&p.push(Pe)})}if(oe){var Re={nodes:[],combos:[]},Oe={nodes:[],combos:[]};(i=F.children)===null||i===void 0||i.forEach(function(Pe){var He=n.findById(Pe.id),at=He.getType();at!=="node"&&at!=="combo"||(Re["".concat(at,"s")].push({id:Pe.id,parentId:I}),Oe["".concat(at,"s")].push({id:Pe.id,parentId:h}))}),Re.combos.push(ce),this.pushStack("uncombo",{before:Re,after:Oe})}},t.prototype.updateCombos=function(e){var r=this;e===void 0&&(e=!1);var n=this,a=this.get("comboTrees"),i=n.get("itemController"),o=n.get("itemMap");(a||[]).forEach(function(s){Ki(s,function(l){var h;if(!l)return!0;var p=o[l.id];if(((h=p==null?void 0:p.getType)===null||h===void 0?void 0:h.call(p))==="combo"){var D=(0,b.__spreadArray)([],p.getStates(),!0);(0,m.each)(D,function(I){return r.setItemState(p,I,!1)}),i.updateCombo(p,l.children,e),(0,m.each)(D,function(I){return r.setItemState(p,I,!0)})}return!0})}),n.sortCombos()},t.prototype.updateCombo=function(e){var r=this,n=this,a=e,i;if((0,m.isString)(e)&&(a=this.findById(e)),!a||a.getType&&a.getType()!=="combo"){console.warn("The item to be updated is not a combo!");return}i=a.get("id");var o=this.get("comboTrees"),s=n.get("itemController"),l=n.get("itemMap");(o||[]).forEach(function(h){Ki(h,function(p){if(!p)return!0;var D=l[p.id];if(i===p.id&&D&&D.getType&&D.getType()==="combo"){var I=(0,b.__spreadArray)([],D.getStates(),!0);(0,m.each)(I,function(F){D.getStateStyle(F)&&r.setItemState(D,F,!1)}),s.updateCombo(D,p.children),(0,m.each)(I,function(F){D.getStateStyle(F)&&r.setItemState(D,F,!0)}),i&&(i=p.parentId)}return!0})})},t.prototype.updateComboTree=function(e,r,n){n===void 0&&(n=!0);var a=this;this.set("comboSorted",!1);var i;(0,m.isString)(e)?i=a.findById(e):i=e;var o=i.getModel(),s=o.comboId||o.parentId,l="";if(i.getType&&(l=i.getType()),r&&l==="combo"){var h=this.get("comboTrees"),p=!0,D;if((h||[]).forEach(function(oe){D||Ei(oe,function(ce){if(!D)return ce.id===i.getID()&&(D=ce),!0})}),Ei(D,function(oe){return oe.id===r?(p=!1,!1):!0}),!p){console.warn("Failed to update the combo tree! The parentId points to a descendant of the combo!");return}}if(n&&this.get("enabledStack")){var I={},F={};l==="combo"?(I.combos=[{id:o.id,parentId:o.parentId}],F.combos=[{id:o.id,parentId:r}]):l==="node"&&(I.nodes=[{id:o.id,parentId:o.comboId}],F.nodes=[{id:o.id,parentId:r}]),this.pushStack("updateComboTree",{before:I,after:F})}if(o.parentId||o.comboId){var Z=this.findById(o.parentId||o.comboId);Z&&Z.removeChild(i)}if(l==="combo"?o.parentId=r:l==="node"&&(o.comboId=r),r){var ee=this.findById(r);ee&&ee.addChild(i)}if(s){var ee=this.findById(s);ee&&ee.removeChild(i)}var se=ss(this.get("comboTrees"),o.id,r);this.set("comboTrees",se),this.updateCombos()},t.prototype.save=function(){var e=[],r=[],n=[];return(0,m.each)(this.get("nodes"),function(a){e.push(a.getModel())}),(0,m.each)(this.get("edges"),function(a){r.push(a.getModel())}),(0,m.each)(this.get("combos"),function(a){n.push(a.getModel())}),{nodes:e,edges:r,combos:n}},t.prototype.changeSize=function(e,r){var n=this.get("viewController");return n.changeSize(e,r),this},t.prototype.refresh=function(){var e=this;if(e.emit("beforegraphrefresh"),e.get("animate"))e.positionsAnimate();else{var r=e.get("nodes"),n=e.get("edges"),a=e.get("edges");(0,m.each)(r,function(i){i.refresh()}),(0,m.each)(n,function(i){i.refresh()}),(0,m.each)(a,function(i){i.refresh()})}e.emit("aftergraphrefresh"),e.autoPaint()},t.prototype.getNodes=function(){return this.get("nodes")},t.prototype.getEdges=function(){return this.get("edges")},t.prototype.getCombos=function(){return this.get("combos")},t.prototype.getComboChildren=function(e){if((0,m.isString)(e)&&(e=this.findById(e)),!e||e.getType&&e.getType()!=="combo"){console.warn("The combo does not exist!");return}return e.getChildren()},t.prototype.positionsAnimate=function(e){var r=this;r.emit("beforeanimate");var n=r.get("animateCfg"),a=n.onFrame,i=e?r.getNodes().concat(r.getCombos()):r.getNodes(),o=i.map(function(l){var h=l.getModel();return{id:h.id,x:h.x,y:h.y}});r.stopAnimate();var s=r.get("canvas");r.animating=!0,s.animate(function(l){(0,m.each)(o,function(h){var p=r.findById(h.id);if(!(!p||p.destroyed)){var D=p.get("originAttrs"),I=p.get("model"),F=p.getContainer().getMatrix();if(D==null&&(F&&(D={x:F[6],y:F[7]}),p.set("originAttrs",D||0)),a){var Z=a(p,l,h,D||{x:0,y:0});p.set("model",Object.assign(I,Z))}else D?(I.x=D.x+(h.x-D.x)*l,I.y=D.y+(h.y-D.y)*l):(I.x=h.x,I.y=h.y)}}),r.refreshPositions(e)},{duration:n.duration,easing:n.easing,callback:function(){(0,m.each)(i,function(h){h.set("originAttrs",null)}),n.callback&&n.callback(),r.emit("afteranimate"),r.animating=!1}})},t.prototype.refreshPositions=function(e){var r=this;r.emit("beforegraphrefreshposition");var n=r.get("nodes"),a=r.get("edges"),i=r.get("vedges"),o=r.get("combos"),s,l={},h=function(D){(0,m.each)(D,function(I){s=I.getModel();var F=I.get("originAttrs");if(!(F&&s.x===F.x&&s.y===F.y)){var Z=I.updatePosition({x:s.x,y:s.y});l[s.id]=Z,s.comboId&&(l[s.comboId]=l[s.comboId]||Z),s.parentId&&(l[s.parentId]=l[s.parentId]||Z)}})};h(o),h(n),o&&o.length!==0&&(e&&h(o),r.updateCombos()),(0,m.each)(a,function(p){var D=p.getSource().getModel(),I=p.getTarget();if(!(0,m.isPlainObject)(I)){var F=I.getModel();(l[D.id]||l[F.id]||p.getModel().isComboEdge)&&p.refresh()}}),(0,m.each)(i,function(p){p.refresh()}),r.emit("aftergraphrefreshposition"),r.autoPaint()},t.prototype.stopAnimate=function(){this.isAnimating()&&this.get("canvas").stopAnimate()},t.prototype.isAnimating=function(){return this.animating},t.prototype.getZoom=function(){var e=this.get("group").getMatrix();return e?e[0]:1},t.prototype.getCurrentMode=function(){var e=this.get("modeController");return e.getMode()},t.prototype.setMode=function(e){var r=this.get("modeController");return r.setMode(e),this},t.prototype.clear=function(e){var r;return e===void 0&&(e=!1),(r=this.get("canvas"))===null||r===void 0||r.clear(),this.initGroups(),this.set({itemMap:{},nodes:[],edges:[],vedges:[],groups:[],combos:[],comboTrees:[]}),e||this.emit("afterrender"),this},t.prototype.updateLayout=function(e,r,n,a){var i=this;e===void 0&&(e={}),a===void 0&&(a=!0);var o=this.get("layoutController");if((0,m.isString)(e)&&(e={type:e}),r){var s=n;s||(r==="begin"?s={x:0,y:0}:s={x:this.getWidth()/2,y:this.getHeight()/2}),s=this.getPointByCanvas(s.x,s.y);var l=["force","gForce","fruchterman","force2"];l.includes(e.type)||!e.type&&l.includes(o==null?void 0:o.layoutType)?e.center=[s.x,s.y]:this.once("afterlayout",function(D){var I=i.getGroup().getMatrix()||[1,0,0,0,1,0,0,0,1];s.x=s.x*I[0]+I[6],s.y=s.y*I[0]+I[7];var F=i.getGroup().getCanvasBBox(),Z=F.minX,ee=F.maxX,se=F.minY,oe=F.maxY,ce={x:(Z+ee)/2,y:(se+oe)/2};r==="begin"&&(ce.x=Z,ce.y=se),i.translate(s.x-ce.x,s.y-ce.y)})}var h=(0,b.__assign)({},this.get("layout")),p={};Object.assign(p,h,e),e.pipes&&!e.type?delete p.type:!e.pipes&&p.type&&delete p.pipes,this.set("layout",p),!!o&&(o.isLayoutTypeSame(p)&&p.gpuEnabled===h.gpuEnabled?o.updateLayoutCfg(p):o.changeLayout(p),a&&this.get("enabledStack")&&this.pushStack("layout",{before:h,after:p}))},t.prototype.destroyLayout=function(){var e=this.get("layoutController");e==null||e.destroyLayout()},t.prototype.layout=function(){var e,r=this.get("layoutController"),n=this.get("layout");if(!(!n||!r)){if(n.workerEnabled){r.layout();return}((e=r.layoutMethods)===null||e===void 0?void 0:e.length)?r.relayout(!0):r.layout()}},t.prototype.collapseCombo=function(e,r){var n=this;if(r===void 0&&(r=!0),!this.destroyed){if((0,m.isString)(e)&&(e=this.findById(e)),!e){console.warn("The combo to be collapsed does not exist!");return}this.emit("beforecollapseexpandcombo",{action:"expand",item:e});var a=e.getModel(),i=this.get("itemController");i.collapseCombo(e,r),a.collapsed=!0;var o=this.getEdges().concat(this.get("vedges")),s=[],l=this.get("comboTrees"),h=!1;(l||[]).forEach(function(D){h||Ei(D,function(I){if(h&&I.depth<=a.depth)return!1;if(a.id===I.id&&(h=!0),h){var F=n.findById(I.id);F&&F.getType&&F.getType()==="combo"&&(s=s.concat(F.getNodes()),s=s.concat(F.getCombos()))}return!0})});var p={};o.forEach(function(D){var I=D.getModel(),F=I.isVEdge,Z=I.size,ee=Z===void 0?1:Z;if(!(D.isVisible()&&!F)){var se=D.getSource(),oe=D.getTarget(),ce=null,we;if(se.getModel().id===a.id||s.includes(se)&&!s.includes(oe)?(ce=oe,we=!1):(oe.getModel().id===a.id||!s.includes(se)&&s.includes(oe))&&(ce=se,we=!0),ce){if(F){n.removeItem(D,!1);return}for(var Re=ce.getModel();!ce.isVisible();){var Oe=Re.parentId,Pe=Re.comboId,He=Oe||Pe;if(ce=n.findById(He),!ce||!He)return;Re=ce.getModel()}var at=Re.id,qe=we?{source:at,target:a.id,size:ee,isVEdge:!0}:{source:a.id,target:at,size:ee,isVEdge:!0},yt="".concat(qe.source,"-").concat(qe.target);if(p[yt]){p[yt].size+=ee;return}p[yt]=qe}}}),this.addItems(Object.values(p).map(function(D){return{type:"vedge",model:D}}),!1),this.emit("aftercollapseexpandcombo",{action:"collapse",item:e})}},t.prototype.expandCombo=function(e,r){var n=this;if(r===void 0&&(r=!0),(0,m.isString)(e)&&(e=this.findById(e)),!e||e.getType&&e.getType()!=="combo"){console.warn("The combo to be collapsed does not exist!");return}this.emit("beforecollapseexpandcombo",{action:"expand",item:e});var a=e.getModel(),i=this.get("itemController");i.expandCombo(e,r),a.collapsed=!1;var o=this.getEdges().concat(this.get("vedges")),s=[],l=this.get("comboTrees"),h=!1;(l||[]).forEach(function(D){h||Ei(D,function(I){if(h&&I.depth<=a.depth)return!1;if(a.id===I.id&&(h=!0),h){var F=n.findById(I.id);F&&F.getType&&F.getType()==="combo"&&(s=s.concat(F.getNodes()),s=s.concat(F.getCombos()))}return!0})});var p={};o.forEach(function(D){if(!(D.isVisible()&&!D.getModel().isVEdge)){var I=D.getSource(),F=D.getTarget(),Z=I.get("id"),ee=F.get("id"),se=null,oe;if(Z===a.id||s.includes(I)&&!s.includes(F)?(se=F,oe=!1):ee===a.id||!s.includes(I)&&s.includes(F)?(se=I,oe=!0):s.includes(I)&&s.includes(F)&&I.isVisible()&&F.isVisible()&&D.show(),se){var ce=D.getModel(),we=ce.isVEdge,Re=ce.size,Oe=Re===void 0?1:Re;if(we){n.removeItem(D,!1);return}for(var Pe=se.getModel();!se.isVisible();){var He=Pe.parentId,at=Pe.comboId,qe=He||at;if(se=n.findById(qe),!se||!qe)return;Pe=se.getModel()}for(var yt=Pe.id,Ft=oe?F:I,yr=Ft.getModel();!Ft.isVisible();){var fr=yr.parentId,lr=yr.comboId,Kt=fr||lr;if(Ft=n.findById(Kt),!Ft||!Kt)return;if(yr.comboId===a.id||yr.parentId===a.id)break;yr=Ft.getModel()}var jr=yr.id;if(yt){var Xr=oe?{source:yt,target:jr,isVEdge:!0,size:Oe}:{source:jr,target:yt,isVEdge:!0,size:Oe},er="".concat(Xr.source,"-").concat(Xr.target);if(p[er]){p[er].size+=Oe;return}p[er]=Xr}}}}),this.addItems(Object.values(p).map(function(D){return{type:"vedge",model:D}}),!1),this.emit("aftercollapseexpandcombo",{action:"expand",item:e})},t.prototype.collapseExpandCombo=function(e,r){if(r===void 0&&(r=!0),(0,m.isString)(e)&&(e=this.findById(e)),!(!e||e.getType&&e.getType()!=="combo")){for(var n=e.getModel(),a=this.findById(n.parentId);a;){var i=a.getModel();if(i.collapsed){console.warn("Fail to expand the combo since it's ancestor combo is collapsed."),a=void 0;return}a=this.findById(i.parentId)}var o=n.collapsed;o?this.expandCombo(e,r):this.collapseCombo(e,r),this.updateCombo(e)}},t.prototype.getNeighbors=function(e,r){var n=e;return(0,m.isString)(e)&&(n=this.findById(e)),n.getNeighbors(r)},t.prototype.getNodeDegree=function(e,r,n){r===void 0&&(r=void 0),n===void 0&&(n=!1);var a=e;(0,m.isString)(e)&&(a=this.findById(e));var i=this.get("degrees");(!i||n)&&(i=St(this.save()),this.set("degrees",i));var o=i[a.getID()],s=0;if(!o)return 0;switch(r){case"in":s=o.inDegree;break;case"out":s=o.outDegree;break;case"all":s=o;break;default:s=o.degree;break}return s},t.prototype.getUndoStack=function(){return this.undoStack},t.prototype.getRedoStack=function(){return this.redoStack},t.prototype.getStackData=function(){return this.get("enabledStack")?{undoStack:this.undoStack.toArray(),redoStack:this.redoStack.toArray()}:null},t.prototype.clearStack=function(){this.get("enabledStack")&&(this.undoStack.clear(),this.redoStack.clear(),this.emit("stackchange",{undoStack:this.undoStack,redoStack:this.redoStack}))},t.prototype.pushStack=function(e,r,n){if(e===void 0&&(e="update"),n===void 0&&(n="undo"),!this.get("enabledStack")){console.warn("\u8BF7\u5148\u542F\u7528 undo & redo \u529F\u80FD\uFF0C\u5728\u5B9E\u4F8B\u5316 Graph \u65F6\u5019\u914D\u7F6E enabledStack: true !");return}var a=r?(0,m.clone)(r):{before:{},after:(0,m.clone)(this.save())};n==="redo"?this.redoStack.push({action:e,data:a}):this.undoStack.push({action:e,data:a}),this.emit("stackchange",{action:e,stackType:n,undoStack:this.undoStack,redoStack:this.redoStack})},t.prototype.getAdjMatrix=function(e,r){e===void 0&&(e=!0),r===void 0&&(r=this.get("directed"));var n=this.get("adjMatrix");return(!n||!e)&&(n=te(this.save(),r),this.set("adjMatrix",n)),n},t.prototype.getShortestPathMatrix=function(e,r){e===void 0&&(e=!0),r===void 0&&(r=this.get("directed"));var n=this.get("adjMatrix"),a=this.get("shortestPathMatrix");return(!n||!e)&&(n=te(this.save(),r),this.set("adjMatrix",n)),(!a||!e)&&(a=Gn(this.save(),r),this.set("shortestPathMatrix",a)),a},t.prototype.on=function(e,r,n){return c.prototype.on.call(this,e,r,n)},t.prototype.destroy=function(){var e,r,n,a,i;this.clear(),this.clearStack(),(e=this.get("itemController"))===null||e===void 0||e.destroy(),(r=this.get("modeController"))===null||r===void 0||r.destroy(),(n=this.get("viewController"))===null||n===void 0||n.destroy(),(a=this.get("stateController"))===null||a===void 0||a.destroy(),(i=this.get("canvas"))===null||i===void 0||i.destroy(),this.cfg=null,this.destroyed=!0,this.redoStack=null,this.undoStack=null},t.prototype.createHull=function(e){if(!e.members||e.members.length<1){console.warn("Create hull failed! The members is empty.");return}var r=this.get("hullGroup"),n=this.get("hullMap");if(n||(n={},this.set("hullMap",n)),(!r||r.get("destroyed"))&&(r=this.get("group").addGroup({id:"hullGroup"}),r.toBack(),this.set("hullGroup",r)),n[e.id])return console.warn("Existed hull id."),n[e.id];var a=r.addGroup({id:"".concat(e.id,"-container")}),i=new Rf(this,(0,b.__assign)((0,b.__assign)({},e),{group:a})),o=i.id;return n[o]=i,i},t.prototype.getHulls=function(){return this.get("hullMap")},t.prototype.getHullById=function(e){return this.get("hullMap")[e]},t.prototype.removeHull=function(e){var r,n;(0,m.isString)(e)?n=this.getHullById(e):n=e,(r=this.get("hullMap"))===null||r===void 0||delete r[n.id],n.destroy()},t.prototype.removeHulls=function(){var e=this.getHulls();!e||!Object.keys(e).length||(Object.keys(e).forEach(function(r){var n=e[r];n.destroy()}),this.set("hullMap",{}))},t}(Q.Z),Bf=Do;function hs(c){return hs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},hs(c)}var Ls=q.vs,yc="-shape",wu="-label",Ds=["startArrow","endArrow"],mc={lineWidth:1,stroke:void 0,fill:void 0,lineAppendWidth:1,opacity:void 0,strokeOpacity:void 0,fillOpacity:void 0,x:0,y:0,r:10,width:20,height:20,shadowColor:void 0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0},rl={lineWidth:1,stroke:"#000",lineDash:void 0,startArrow:!1,endArrow:!1,opacity:void 0,strokeOpacity:void 0,fillOpacity:void 0,shadowColor:void 0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0},of={edge:rl,node:mc,combo:mc},Ff="-label-bg",Gf={options:{labelCfg:{style:{fontFamily:an.windowFontFamily}},descriptionCfg:{style:{fontFamily:an.windowFontFamily}}},itemType:"",type:"",getCustomConfig:function(t){return{}},getOptions:function(t,e){return e==="move"||(e==null?void 0:e.includes("bbox"))?t:(0,m.deepMix)({},this.options,this.getCustomConfig(t)||{},t)},draw:function(t,e){e.shapeMap={},this.mergeStyle=this.getOptions(t);var r=this.drawShape(t,e);if(r.set("className",this.itemType+yc),e.shapeMap[this.itemType+yc]=r,t.label){var n=this.drawLabel(t,e);n.set("className",this.itemType+wu),e.shapeMap[this.itemType+wu]=n}return r},afterDraw:function(t,e,r){},drawShape:function(t,e){return null},drawLabel:function(t,e){var r=(this.mergeStyle||this.getOptions(t)||{}).labelCfg,n=r||{},a=this.getLabelStyle(t,n,e),i=a.rotate;delete a.rotate;var o=e.addShape("text",{attrs:a,draggable:!0,className:"text-shape",name:"text-shape",labelRelated:!0});if(e.shapeMap["text-shape"]=o,!isNaN(i)&&i!==""){var s=o.getBBox(),l=[1,0,0,0,1,0,0,0,1];if(a.rotateCenter)switch(a.rotateCenter){case"center":l=Ls(l,[["t",-s.width/2,-s.height/2],["r",i],["t",s.width/2,s.height/2]]);break;case"lefttop":l=Ls(l,[["t",-a.x,-a.y],["r",i],["t",a.x,a.y]]);break;case"leftcenter":l=Ls(l,[["t",-a.x,-a.y-s.height/2],["r",i],["t",a.x,a.y+s.height/2]]);break;default:l=Ls(l,[["t",-s.width/2,-s.height/2],["r",i],["t",s.width/2,s.height/2]]);break}else l=Ls(l,[["t",-a.x,-a.y-s.height/2],["r",i],["t",a.x,a.y+s.height/2]]);o.setMatrix(l)}if(a.background){var h=this.drawLabelBg(t,e,o),p=this.itemType+Ff;h.set("classname",p),e.shapeMap[p]=h,o.toFront()}return o},drawLabelBg:function(t,e,r){var n=this.options.labelCfg,a=(0,m.mix)({},n,t.labelCfg),i=this.getLabelBgStyleByPosition(r,a),o=e.addShape("rect",{name:"text-bg-shape",attrs:i,labelRelated:!0});return e.shapeMap["text-bg-shape"]=o,o},getLabelStyleByPosition:function(t,e,r){return{text:t.label}},getLabelBgStyleByPosition:function(t,e){return{}},getLabelStyle:function(t,e,r){var n=this.getLabelStyleByPosition(t,e,r),a="".concat(this.itemType,"Label"),i=an[a]?an[a].style:null;return(0,b.__assign)((0,b.__assign)((0,b.__assign)({},i),n),e.style)},getShapeStyle:function(t){return t.style},update:function(t,e,r){this.updateShapeStyle(t,e,r),this.updateLabel(t,e,r)},updateShapeStyle:function(t,e,r){var n,a=e.getContainer(),i=e.getKeyShape(),o=(0,m.mix)({},i.attr(),t.style),s=function(p){var D,I=o[p];if((0,m.isPlainObject)(I)){var F=((n=a.shapeMap)===null||n===void 0?void 0:n[p])||a.find(function(Z){return Z.get("name")===p});F==null||F.attr(I)}else i.attr((D={},D[p]=I,D))};for(var l in o)s(l)},updateLabel:function(t,e,r){var n,a;if(t.label||t.label===""){var i=e.getContainer(),o=(this.mergeStyle||this.getOptions({},r)||{}).labelCfg,s=o===void 0?{}:o,l=this.itemType+wu,h=i.shapeMap[l]||i.find(function(we){return we.get("className")===l}),p=this.itemType+Ff,D=i.shapeMap[p]||i.find(function(we){return we.get("className")===p});if(h){(!r||r==="bbox|label"||this.itemType==="edge"&&r!=="style")&&(s=(0,m.deepMix)(s,t.labelCfg));var F=this.getLabelStyleByPosition(t,s,i),Z=(n=t.labelCfg)===null||n===void 0?void 0:n.style,ee=(0,b.__assign)((0,b.__assign)({},F),Z),se=ee.rotate;if(delete ee.rotate,!isNaN(se)&&se!==""){var oe=[1,0,0,0,1,0,0,0,1];oe=Ls(oe,[["t",-ee.x,-ee.y],["r",se],["t",ee.x,ee.y]]),ee.matrix=oe,h.attr(ee)}else((a=h.getMatrix())===null||a===void 0?void 0:a[4])!==1&&h.resetMatrix(),h.attr(ee);if(!D)ee.background&&(D=this.drawLabelBg(t,i,h),D.set("classname",p),i.shapeMap[p]=D,h.toFront());else if(ee.background){var ce=this.getLabelBgStyleByPosition(h,s);D.attr(ce)}else i.removeChild(D)}else{var I=this.drawLabel(t,i);I.set("className",l),i.shapeMap[l]=I}}},afterUpdate:function(t,e){},setState:function(t,e,r){var n,a,i,o=r.get("keyShape");if(!(!o||o.destroyed)){var s=r.getType(),l=(0,m.isBoolean)(e)?t:"".concat(t,":").concat(e),h=this.getStateStyle(l,r),p=r.getStateStyle(l);if(!(!p&&!h)){var D=(0,m.mix)({},p||h),I=r.getContainer(),F={x:1,y:1,cx:1,cy:1,matrix:1};if(s==="combo"&&(F.r=1,F.width=1,F.height=1),e){var Z=function(Kt){var jr,Xr=D[Kt];if((0,m.isPlainObject)(Xr)&&!Ds.includes(Kt)){var er=((i=I.shapeMap)===null||i===void 0?void 0:i[Kt])||I.find(function(mr){return mr.get("name")===Kt});er==null||er.attr(Xr)}else o.attr((jr={},jr[Kt]=Xr,jr))};for(var ee in D)Z(ee)}else{var se=Uo(r.getCurrentStatesStyle()),oe=r.getModel(),ce=(0,m.mix)({},oe.style,Uo(r.getOriginStyle())),we=o.get("name"),Re=o.attr(),Oe={};Object.keys(Re).forEach(function(lr){if(lr!=="img"){var Kt=Re[lr];Kt&&hs(Kt)==="object"?Oe[lr]=(0,m.clone)(Kt):Oe[lr]=Kt}});var Pe={},He=function(Kt){var jr=D[Kt];if((0,m.isPlainObject)(jr)&&!Ds.includes(Kt)){var Xr=I.shapeMap[Kt]||I.find(function(kr){return kr.get("name")===Kt});if(Xr){var er=Uo(Xr.attr());(0,m.each)(jr,function(kr,Fr){if(Kt===we&&Oe[Fr]&&!F[Fr]){delete Oe[Fr];var Jr=ce[Kt][Fr]||of[s][Fr];o.attr(Fr,Jr)}else if(er[Fr]||er[Fr]===0){delete er[Fr];var fn=ce[Kt][Fr]||of[s][Fr];Xr.attr(Fr,fn)}}),Pe[Kt]=er}}else if(Oe[Kt]&&!F[Kt]){delete Oe[Kt];var mr=ce[Kt]||(ce[we]?ce[we][Kt]:void 0)||of[s][Kt];o.attr(Kt,mr)}};for(var at in D)He(at);we?Pe[we]=Oe:(0,m.mix)(Pe,Oe);for(var ee in se)if(!F[ee]){var qe=se[ee];(!(0,m.isPlainObject)(qe)||Ds.includes(ee))&&(we?((0,m.mix)(ce[we],(a={},a[ee]=qe,a)),delete ce[ee]):(0,m.mix)(ce,(n={},n[ee]=qe,n)),delete se[ee])}var yt={};(0,m.deepMix)(yt,ce,Pe,se);var Ft=!1,yr=function(Kt){var jr,Xr,er=yt[Kt];if((0,m.isPlainObject)(er)&&!Ds.includes(Kt)){var mr=I.shapeMap[Kt]||I.find(function(Fr){return Fr.get("name")===Kt});mr&&((mr.get("type")==="text"||mr.get("labelRelated"))&&(delete er.x,delete er.y,delete er.matrix),Kt===we&&(s==="combo"&&(delete er.r,delete er.width,delete er.height),Ft=!0),mr.attr(er))}else if(!Ft){var kr=er||of[s][Kt];s==="combo"?we||o.attr((jr={},jr[Kt]=kr,jr)):o.attr((Xr={},Xr[Kt]=kr,Xr))}};for(var fr in yt)yr(fr)}}}},getStateStyle:function(t,e){var r=e.getModel(),n=e.getType(),a=this.getOptions(r),i=a.stateStyles,o=a.style,s=o===void 0?{}:o,l=r.stateStyles?r.stateStyles[t]:i&&i[t];return n==="combo"?(0,m.clone)(l):(0,m.mix)({},s,l)},getControlPoints:function(t){return t.controlPoints},getAnchorPoints:function(t){var e,r,n=(t==null?void 0:t.anchorPoints)||((e=this.getCustomConfig(t))===null||e===void 0?void 0:e.anchorPoints)||((r=this.options)===null||r===void 0?void 0:r.anchorPoints);return n}},Ec={itemType:"node",shapeType:"single-node",labelPosition:"center",offset:an.nodeLabel.offset,getSize:function(t){var e,r=((e=this.mergeStyle)===null||e===void 0?void 0:e.size)||t.size||this.getOptions({}).size||an.defaultNode.size;return(0,m.isArray)(r)&&r.length===1&&(r=[r[0],r[0]]),(0,m.isArray)(r)||(r=[r,r]),r},getLabelStyleByPosition:function(t,e){var r=e.maxLength,n=t.label;r&&(n=io(n,r));var a=e.position||this.labelPosition;if(a==="center")return{x:0,y:0,text:n,textBaseline:"middle",textAlign:"center"};var i=e.offset;(0,m.isNil)(i)&&(i=this.offset);var o=this.getSize(t),s;switch(a){case"top":s={x:0,y:-o[1]/2-i,textBaseline:"bottom",textAlign:"center"};break;case"bottom":s={x:0,y:o[1]/2+i,textBaseline:"top",textAlign:"center"};break;case"left":s={x:-o[0]/2-i,y:0,textBaseline:"middle",textAlign:"right"};break;default:s={x:o[0]/2+i,y:0,textBaseline:"middle",textAlign:"left"};break}return s.text=n,s},getLabelBgStyleByPosition:function(t,e){var r;if(!t)return{};var n=(r=e.style)===null||r===void 0?void 0:r.background;if(!n)return{};var a=t.getBBox(),i=Cs(n.padding),o=a.width+i[1]+i[3],s=a.height+i[0]+i[2];return(0,b.__assign)((0,b.__assign)({x:a.minX-i[3],y:a.minY-i[0]},n),{width:o,height:s})},drawShape:function(t,e){var r=this.shapeType,n=this.getShapeStyle(t),a=e.addShape(r,{attrs:n,draggable:!0,name:"node-shape"});return e.shapeMap["node-shape"]=a,a},updateLinkPoints:function(t,e){var r=(this.mergeStyle||this.getOptions(t)).linkPoints,n=e.shapeMap["link-point-left"]||e.find(function(yt){return yt.get("className")==="link-point-left"}),a=e.shapeMap["link-point-right"]||e.find(function(yt){return yt.get("className")==="link-point-right"}),i=e.shapeMap["link-point-top"]||e.find(function(yt){return yt.get("className")==="link-point-top"}),o=e.shapeMap["link-point-bottom"]||e.find(function(yt){return yt.get("className")==="link-point-bottom"}),s;n&&(s=n.attr()),a&&!s&&(s=a.attr()),i&&!s&&(s=i.attr()),o&&!s&&(s=o.attr()),s||(s=r);var l=(0,m.mix)({},s,t.linkPoints),h=l.fill,p=l.stroke,D=l.lineWidth,I=l.size/2;I||(I=l.r);var F=t.linkPoints?t.linkPoints:{left:void 0,right:void 0,top:void 0,bottom:void 0},Z=F.left,ee=F.right,se=F.top,oe=F.bottom,ce=this.getSize(t),we=ce[0],Re=ce[1],Oe={r:I,fill:h,stroke:p,lineWidth:D};if(n)!Z&&Z!==void 0?(n.remove(),delete e.shapeMap["link-point-left"]):n.attr((0,b.__assign)((0,b.__assign)({},Oe),{x:-we/2,y:0}));else if(Z){var Pe="link-point-left";e.shapeMap[Pe]=e.addShape("circle",{attrs:(0,b.__assign)((0,b.__assign)({},Oe),{x:-we/2,y:0}),className:Pe,name:Pe,isAnchorPoint:!0})}if(a)!ee&&ee!==void 0&&(a.remove(),delete e.shapeMap["link-point-right"]),a.attr((0,b.__assign)((0,b.__assign)({},Oe),{x:we/2,y:0}));else if(ee){var He="link-point-right";e.shapeMap[He]=e.addShape("circle",{attrs:(0,b.__assign)((0,b.__assign)({},Oe),{x:we/2,y:0}),className:He,name:He,isAnchorPoint:!0})}if(i)!se&&se!==void 0&&(i.remove(),delete e.shapeMap["link-point-top"]),i.attr((0,b.__assign)((0,b.__assign)({},Oe),{x:0,y:-Re/2}));else if(se){var at="link-point-top";e.shapeMap[at]=e.addShape("circle",{attrs:(0,b.__assign)((0,b.__assign)({},Oe),{x:0,y:-Re/2}),className:at,name:at,isAnchorPoint:!0})}if(o)!oe&&oe!==void 0?(o.remove(),delete e.shapeMap["link-point-bottom"]):o.attr((0,b.__assign)((0,b.__assign)({},Oe),{x:0,y:Re/2}));else if(oe){var qe="link-point-bottom";e.shapeMap[qe]=e.addShape("circle",{attrs:(0,b.__assign)((0,b.__assign)({},Oe),{x:0,y:Re/2}),className:qe,name:qe,isAnchorPoint:!0})}},updateShape:function(t,e,r,n,a){var i=e.get("keyShape");i.attr((0,b.__assign)({},r)),this.updateLabel(t,e,a),n&&this.updateIcon(t,e)},updateIcon:function(t,e){var r=this,n=e.getContainer(),a=(this.mergeStyle||this.getOptions(t)).icon,i=t.icon?t.icon:{show:void 0,text:void 0},o=i.show,s=i.text,l=n.shapeMap["".concat(this.type,"-icon")]||n.find(function(se){return se.get("name")==="".concat(r.type,"-icon")});if(l)if(o||o===void 0){var h=(0,m.mix)({},l.attr(),a),p=h.width,D=p===void 0?20:p,I=h.height,F=I===void 0?20:I;(h.fontFamily==="iconfont"||h.hasOwnProperty("text"))&&(D=0,F=0),l.attr((0,b.__assign)((0,b.__assign)({},h),{x:-D/2,y:-F/2}))}else l.remove(),delete n.shapeMap["".concat(this.type,"-icon")];else if(o){var Z="".concat(this.type,"-icon");if(s)n.shapeMap[Z]=n.addShape("text",{attrs:(0,b.__assign)({x:0,y:0,fontSize:12,fill:"#000",stroke:"#000",textBaseline:"middle",textAlign:"center"},a),className:Z,name:Z});else{var D=a.width,F=a.height;n.shapeMap[Z]=n.addShape("image",{attrs:(0,b.__assign)((0,b.__assign)({},a),{x:-D/2,y:-F/2}),className:Z,name:Z})}var ee=n.shapeMap["node-label"]||n.find(function(se){return se.get("name")==="node-label"});ee&&ee.toFront()}}},sf=(0,b.__assign)((0,b.__assign)({},Gf),Ec);Cr.registerNode("single-node",sf);var uf="edge-shape";function nl(c){var t=c;return c==="start"?t="end":c==="end"&&(t="start"),t}var al={itemType:"edge",labelPosition:"center",refX:0,refY:0,labelAutoRotate:!1,options:{size:an.defaultEdge.size,style:{x:0,y:0,stroke:an.defaultEdge.style.stroke,lineAppendWidth:an.defaultEdge.style.lineAppendWidth},labelCfg:{style:{fill:an.edgeLabel.style.fill,fontSize:an.edgeLabel.style.fontSize,fontFamily:an.windowFontFamily}},stateStyles:(0,b.__assign)({},an.edgeStateStyles)},getPath:function(t){var e=[];return(0,m.each)(t,function(r,n){n===0?e.push(["M",r.x,r.y]):e.push(["L",r.x,r.y])}),e},getShapeStyle:function(t){var e=this.options.style,r={stroke:t.color},n=(0,m.mix)({},e,r,t.style),a=t.size||an.defaultEdge.size;t=this.getPathPoints(t);var i=t.startPoint,o=t.endPoint,s=this.getControlPoints(t),l=[i];s&&(l=l.concat(s)),l.push(o);var h=this.getPath(l),p=(0,m.mix)({},an.defaultEdge.style,{stroke:an.defaultEdge.color,lineWidth:a,path:h},n);return p},updateShapeStyle:function(t,e,r){var n,a=e.getContainer(),i=((n=e.getKeyShape)===null||n===void 0?void 0:n.call(e))||a.shapeMap["edge-shape"],o=t.size;t=this.getPathPoints(t);var s=t.startPoint,l=t.endPoint,h=this.getControlPoints(t),p=[s];h&&(p=p.concat(h)),p.push(l);var D=i.attr(),I=t.style||{};I.stroke===void 0&&(I.stroke=t.color);var F=t.sourceNode,Z=t.targetNode,ee={radius:I.radius};h||(ee={source:F,target:Z,offset:I.offset,radius:I.radius});var se=this.getPath(p,ee),oe={};r==="move"?oe={path:se}:(D.endArrow&&I.endArrow===!1&&(t.style.endArrow={path:""}),D.startArrow&&I.startArrow===!1&&(t.style.startArrow={path:""}),oe=(0,b.__assign)({},t.style),oe.lineWidth===void 0&&(oe.lineWdith=((0,m.isNumber)(o)?o:o==null?void 0:o[0])||D.lineWidth),oe.path===void 0&&(oe.path=se),oe.stroke===void 0&&(oe.stroke=D.stroke||t.color)),i&&i.attr(oe)},getLabelStyleByPosition:function(t,e,r){var n=e.position||this.labelPosition,a={},i=r==null?void 0:r.shapeMap[uf],o;n==="start"?o=0:n==="end"?o=1:o=.5;var s=e.refX||this.refX,l=e.refY||this.refY;if(t.startPoint.x===t.endPoint.x&&t.startPoint.y===t.endPoint.y)return a.x=t.startPoint.x+s,a.y=t.startPoint.y+l,a.text=t.label,a;var h;(0,m.isNil)(e.autoRotate)?h=this.labelAutoRotate:h=e.autoRotate;var p=Hu(i,o,s,l,h);return a.x=p.x,a.y=p.y,a.rotate=p.rotate,a.textAlign=this._getTextAlign(n,p.angle),a.text=t.label,a},getLabelBgStyleByPosition:function(t,e){if(!t)return{};var r=t.getBBox(),n=e.style&&e.style.background;if(!n)return{};var a=n.padding,i=r.width+a[1]+a[3],o=r.height+a[0]+a[2],s=(0,b.__assign)((0,b.__assign)({},n),{width:i,height:o,x:r.minX-a[3],y:r.minY-a[0],matrix:[1,0,0,0,1,0,0,0,1]}),l;return(0,m.isNil)(e.autoRotate)?l=this.labelAutoRotate:l=e.autoRotate,l&&(s.matrix=t.attr("matrix")||[1,0,0,0,1,0,0,0,1]),s},_getTextAlign:function(t,e){var r="center";return e?(e=e%(Math.PI*2),t!=="center"&&(e>=0&&e<=Math.PI/2||e>=3/2*Math.PI&&e<2*Math.PI?r=t:r=nl(t)),r):t},getControlPoints:function(t){return t.controlPoints},getPathPoints:function(t){return t},drawShape:function(t,e){var r=this.getShapeStyle(t),n=e.addShape("path",{className:uf,name:uf,attrs:r});return e.shapeMap[uf]=n,n},drawLabel:function(t,e){var r=this.options.labelCfg,n=(0,m.deepMix)({},r,t.labelCfg),a=this.getLabelStyle(t,n,e),i=a.rotate;delete a.rotate;var o=e.addShape("text",{attrs:a,name:"text-shape",labelRelated:!0});if(e.shapeMap["text-shape"]=o,!isNaN(i)&&i!==""&&o.rotateAtStart(i),a.background){var s=this.drawLabelBg(t,e,o,a,i),l=this.itemType+Ff;s.set("classname",l),e.shapeMap[l]=s,o.toFront()}return o},drawLabelBg:function(t,e,r,n,a){var i=this.options.labelCfg,o=(0,m.deepMix)({},i,t.labelCfg),s=this.getLabelBgStyleByPosition(r,o),l=e.addShape("rect",{name:"text-bg-shape",attrs:s,labelRelated:!0});return e.shapeMap["text-bg-shape"]=l,l}},bc=(0,b.__assign)((0,b.__assign)({},Gf),al);Cr.registerEdge("single-edge",bc),Cr.registerEdge("line",{getControlPoints:function(){}},"single-edge"),Cr.registerEdge("spline",{getPath:function(t){var e=Os(t);return e}},"single-edge"),Cr.registerEdge("arc",{curveOffset:20,clockwise:1,getControlPoints:function(t){var e=t.startPoint,r=t.endPoint,n={x:(e.x+r.x)/2,y:(e.y+r.y)/2},a,i;if(t.controlPoints!==void 0){if(i=t.controlPoints[0],a=Go(e,i,r),e.x<=r.x&&e.y>r.y?this.clockwise=a.x>i.x?0:1:e.x<=r.x&&e.yi.x?1:0:e.x>r.x&&e.y<=r.y?this.clockwise=a.y=60&&Math.round(c.h)<=240?r=e?Math.round(c.h)-tu*t:Math.round(c.h)+tu*t:r=e?Math.round(c.h)+tu*t:Math.round(c.h)-tu*t,r<0?r+=360:r>=360&&(r-=360),r}function Xf(c,t,e){if(c.h===0&&c.s===0)return c.s;var r;return e?r=c.s-Tu*t:t===Wf?r=c.s+Tu:r=c.s+Mc*t,r>1&&(r=1),e&&t===Uf&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2))}function Vf(c,t,e){var r;return e?r=c.v+Cc*t:r=c.v-Tc*t,r>1&&(r=1),Number(r.toFixed(2))}function Iu(c){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},e=[],r=(0,eu.Z)(c),n=Uf;n>0;n-=1){var a=r.toHsv(),i=(0,eu.Z)({h:cf(a,n,!0),s:Xf(a,n,!0),v:Vf(a,n,!0)}).toHexString();e.push(i)}e.push(r.toHexString());for(var o=1;o<=Wf;o+=1){var s=r.toHsv(),l=(0,eu.Z)({h:cf(s,o),s:Xf(s,o),v:Vf(s,o)}).toHexString();e.push(l)}return t.theme==="dark"?jf.map(function(h){var p=h.index,D=h.opacity,I=eu.Z.mix(t.backgroundColor||"#141414",e[p],D*100).toHexString();return I}):e}var Rs={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1890FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},Oi={},gt={};Object.keys(Rs).forEach(function(c){Oi[c]=Iu(Rs[c]),Oi[c].primary=Oi[c][5],gt[c]=Iu(Rs[c],{theme:"dark",backgroundColor:"#141414"}),gt[c].primary=gt[c][5]});var cl=Oi.red,Ou=Oi.volcano,Yf=Oi.gold,ll=Oi.orange,Ic=Oi.yellow,dl=Oi.lime,hl=Oi.green,lf=Oi.cyan,Hf=Oi.blue,Oc=Oi.geekblue,Zf=Oi.purple,Mi=Oi.magenta,Au=Oi.grey,gi=function(t,e,r){var n=ks()(t),a=ks()(e);return ks()([(1-r)*n.red()+r*a.red(),(1-r)*n.green()+r*a.green(),(1-r)*n.blue()+r*a.blue()]).rgb()},Lu=function(t,e,r){e===void 0&&(e="#fff"),r===void 0&&(r="rgb(150, 150, 150)");var n=gi(e,t,.05).rgb().toString(),a=gi(e,t,.1).rgb().toString(),i=gi(e,t,.2).rgb().toString(),o=gi(e,t,.4).rgb().toString(),s=gi(e,r,.02).rgb().toString(),l=gi(e,r,.05).rgb().toString(),h=gi(e,r,.1).rgb().toString(),p=gi(e,r,.2).rgb().toString(),D=gi(e,r,.3).rgb().toString(),I=Iu(t,{theme:"default",backgroundColor:e}),F=ks()(t).hex().toLowerCase(),Z=I.indexOf(F),ee=t;return Z!==-1&&(ee=I[Z+1]),{mainStroke:t,mainFill:a,activeStroke:t,activeFill:n,inactiveStroke:o,inactiveFill:n,selectedStroke:t,selectedFill:e,highlightStroke:ee,highlightFill:i,disableStroke:D,disableFill:l,edgeMainStroke:D,edgeActiveStroke:t,edgeInactiveStroke:p,edgeSelectedStroke:t,edgeHighlightStroke:t,edgeDisableStroke:h,comboMainStroke:D,comboMainFill:s,comboActiveStroke:t,comboActiveFill:n,comboInactiveStroke:D,comboInactiveFill:s,comboSelectedStroke:t,comboSelectedFill:s,comboHighlightStroke:ee,comboHighlightFill:s,comboDisableStroke:p,comboDisableFill:l}},Xo=function(t,e,r){e===void 0&&(e="#fff"),r===void 0&&(r="#777");var n=gi(e,t,.2).rgb().toString(),a=gi(e,t,.3).rgb().toString(),i=gi(e,t,.6).rgb().toString(),o=gi(e,t,.8).rgb().toString(),s=gi(e,r,.2).rgb().toString(),l=gi(e,r,.25).rgb().toString(),h=gi(e,r,.3).rgb().toString(),p=gi(e,r,.4).rgb().toString(),D=gi(e,r,.5).rgb().toString(),I=Iu(t,{theme:"dark",backgroundColor:e}),F=ks()(t).hex().toLowerCase(),Z=I.indexOf(F),ee=t;return Z!==-1&&(ee=I[Z+1]),{mainStroke:o,mainFill:n,activeStroke:t,activeFill:a,inactiveStroke:o,inactiveFill:n,selectedStroke:t,selectedFill:n,highlightStroke:t,highlightFill:i,disableStroke:D,disableFill:l,edgeMainStroke:r,edgeActiveStroke:t,edgeInactiveStroke:r,edgeSelectedStroke:t,edgeHighlightStroke:t,edgeDisableStroke:h,comboMainStroke:p,comboMainFill:l,comboActiveStroke:t,comboActiveFill:s,comboInactiveStroke:p,comboInactiveFill:l,comboSelectedStroke:t,comboSelectedFill:s,comboHighlightStroke:ee,comboHighlightFill:l,comboDisableStroke:p,comboDisableFill:s}},vs=function(t,e,r,n){return e===void 0&&(e="#fff"),r===void 0&&(r="default"),n===void 0&&(n="rgb(150, 150, 150)"),r==="default"?Lu(t,e,"rgb(150, 150, 150)"):Xo(t,e,"#777")},Bs=function(t,e,r,n){e===void 0&&(e="#fff"),r===void 0&&(r="default"),n===void 0&&(n="rgb(150, 150, 150)");var a=[];return t.forEach(function(i){a.push(vs(i,e,r,n))}),a},gs="rgb(95, 149, 255)",ru="rgb(255, 255, 255)",ps="rgb(0, 0, 0)",ra=vs(gs,ru),wo={version:"0.8.9",rootContainerClassName:"root-container",nodeContainerClassName:"node-container",edgeContainerClassName:"edge-container",comboContainerClassName:"combo-container",delegateContainerClassName:"delegate-container",defaultLoopPosition:"top",nodeLabel:{style:{fill:"#000",fontSize:12,textAlign:"center",textBaseline:"middle"},offset:4},defaultNode:{type:"circle",style:{lineWidth:1,stroke:ra.mainStroke,fill:ra.mainFill},size:20,color:ra.mainStroke,linkPoints:{size:8,lineWidth:1,fill:ra.activeFill,stroke:ra.activeStroke}},nodeStateStyles:{active:{fill:ra.activeFill,stroke:ra.activeStroke,lineWidth:2,shadowColor:ra.mainStroke,shadowBlur:10},selected:{fill:ra.selectedFill,stroke:ra.selectedStroke,lineWidth:4,shadowColor:ra.selectedStroke,shadowBlur:10,"text-shape":{fontWeight:500}},highlight:{fill:ra.highlightFill,stroke:ra.highlightStroke,lineWidth:2,"text-shape":{fontWeight:500}},inactive:{fill:ra.inactiveFill,stroke:ra.inactiveStroke,lineWidth:1},disable:{fill:ra.disableFill,stroke:ra.disableStroke,lineWidth:1}},edgeLabel:{style:{fill:ps,textAlign:"center",textBaseline:"middle",fontSize:12}},defaultEdge:{type:"line",size:1,style:{stroke:ra.edgeMainStroke,lineAppendWidth:2},color:ra.edgeMainStroke},edgeStateStyles:{active:{stroke:ra.edgeActiveStroke,lineWidth:1},selected:{stroke:ra.edgeSelectedStroke,lineWidth:2,shadowColor:ra.edgeSelectedStroke,shadowBlur:10,"text-shape":{fontWeight:500}},highlight:{stroke:ra.edgeHighlightStroke,lineWidth:2,"text-shape":{fontWeight:500}},inactive:{stroke:ra.edgeInactiveStroke,lineWidth:1},disable:{stroke:ra.edgeDisableStroke,lineWidth:1}},comboLabel:{style:{fill:ps,textBaseline:"middle",fontSize:12},refY:10,refX:10},defaultCombo:{type:"circle",style:{fill:ra.comboMainFill,lineWidth:1,stroke:ra.comboMainStroke,r:5,width:20,height:10},size:[20,5],color:ra.comboMainStroke,padding:[25,20,15,20]},comboStateStyles:{active:{stroke:ra.comboActiveStroke,lineWidth:1,fill:ra.comboActiveFill},selected:{stroke:ra.comboSelectedStroke,lineWidth:2,fill:ra.comboSelectedFill,shadowColor:ra.comboSelectedStroke,shadowBlur:10,"text-shape":{fontWeight:500}},highlight:{stroke:ra.comboHighlightStroke,lineWidth:2,fill:ra.comboHighlightFill,"text-shape":{fontWeight:500}},inactive:{stroke:ra.comboInactiveStroke,fill:ra.comboInactiveFill,lineWidth:1},disable:{stroke:ra.comboDisableStroke,fill:ra.comboDisableFill,lineWidth:1}},delegateStyle:{fill:"#F3F9FF",fillOpacity:.5,stroke:"#1890FF",strokeOpacity:.9,lineDash:[5,5]},textWaterMarkerConfig:{width:150,height:100,compatible:!1,text:{x:0,y:60,lineHeight:20,rotate:20,fontSize:14,fontFamily:"Microsoft YaHei",fill:"rgba(0, 0, 0, 0.1)",baseline:"Middle"}},imageWaterMarkerConfig:{width:150,height:130,compatible:!1,image:{x:0,y:0,width:30,height:20,rotate:0}},waterMarkerImage:"https://gw.alipayobjects.com/os/s/prod/antv/assets/image/logo-with-text-73b8a.svg"},Fs=z(57817),df=ki.cloneEvent,Du=ki.isViewportChanged,Kf=function(c){(0,b.__extends)(t,c);function t(e){var r=c.call(this,e)||this;return r.extendEvents=[],r.dragging=!1,r.mousedown=!1,r.preItem=null,r.destroy(),r.graph=e,r.destroyed=!1,r.initEvents(),r}return t.prototype.initEvents=function(){var e=this,r=e.graph,n=e.extendEvents,a=n===void 0?[]:n,i=r.get("canvas"),o=i.get("el"),s=(0,m.wrapBehavior)(this,"onCanvasEvents"),l=(0,m.wrapBehavior)(this,"onExtendEvents"),h=(0,m.wrapBehavior)(this,"onWheelEvent");i.off("*").on("*",s),this.canvasHandler=s,a.push((0,Fs.Z)(o,"wheel",h)),typeof window!="undefined"&&(a.push((0,Fs.Z)(window,"keydown",l)),a.push((0,Fs.Z)(window,"keyup",l)),a.push((0,Fs.Z)(window,"focus",l))),this.resetHandler&&r.off("afterchangedata",this.resetHandler),this.resetHandler=(0,m.wrapBehavior)(this,"resetStatus"),r.on("afterchangedata",this.resetHandler)},t.getItemRoot=function(e){for(;e&&!e.get("item");)e=e.get("parent");return e},t.prototype.onCanvasEvents=function(e){var r=this,n=this.graph,a=n.get("canvas"),i=e.target,o=e.type;switch(o){case"drag":this.onCanvasEvents(Object.assign({},e,{type:"mousemove"}));break;case"dragend":this.onCanvasEvents(Object.assign({},e,{type:"mouseup"}));break;case"mousedown":this.mousedown=!0;break;case"dragend":case"mouseup":setTimeout(function(){return r.mousedown=!1});break;case"click":if(!this.mousedown)return;break;default:break}e.canvasX=e.x,e.canvasY=e.y;var s={x:e.canvasX,y:e.canvasY},l=n.get("group"),h=l.getMatrix();if(h||(h=[1,0,0,0,1,0,0,0,1]),Du(h)&&(s=n.getPointByClient(e.clientX,e.clientY)),e.x=s.x,e.y=s.y,e.currentTarget=n,i===a){(o==="mousemove"||o==="mouseleave")&&this.handleMouseMove(e,"canvas"),e.target=a,e.item=null,n.emit(o,e),n.emit("canvas:".concat(o),e);return}var p=t.getItemRoot(i);if(!p){n.emit(o,e);return}var D=p.get("item");if(!D.destroyed){var I=D.getType();if(e.target=i,e.item=D,e.canvasX===e.x&&e.canvasY===e.y){var F=n.getCanvasByPoint(e.x,e.y);e.canvasX=F.x,e.canvasY=F.y}e.name&&!e.name.includes(":")?(n.emit("".concat(I,":").concat(o),e),n.emit(o,e)):e.name&&n.emit(e.name,e),o==="dragstart"&&(this.dragging=!0),o==="dragend"&&(this.dragging=!1),o==="mousemove"&&this.handleMouseMove(e,I)}},t.prototype.onExtendEvents=function(e){this.graph.emit(e.type,e)},t.prototype.onWheelEvent=function(e){(0,m.isNil)(e.wheelDelta)&&(e.wheelDelta=-e.detail),this.graph.emit("wheel",e)},t.prototype.handleMouseMove=function(e,r){var n=this,a=n.graph,i=n.preItem,o=a.get("canvas"),s=e.target===o?null:e.item;e=df(e),i&&i!==s&&!i.destroyed&&(e.item=i,this.emitCustomEvent(i.getType(),"mouseleave",e),this.dragging&&this.emitCustomEvent(i.getType(),"dragleave",e)),s&&i!==s&&(e.item=s,this.emitCustomEvent(r,"mouseenter",e),this.dragging&&this.emitCustomEvent(r,"dragenter",e)),this.preItem=s},t.prototype.emitCustomEvent=function(e,r,n){n.type=r,this.graph.emit("".concat(e,":").concat(r),n)},t.prototype.resetStatus=function(){this.mousedown=!1,this.dragging=!1,this.preItem=null},t.prototype.destroy=function(){var e=this,r=e.graph,n=e.canvasHandler,a=e.extendEvents,i=r.get("canvas");i.off("*",n),(0,m.each)(a,function(o){o.remove()}),this.resetStatus(),this.extendEvents.length=0,this.canvasHandler=null,this.resetHandler=null,this.destroyed=!0},t}(ff),$f=Kf,ea=z(67320),Io=z(81746),nu=z.n(Io),Qf=ki.traverseTree,hf=function(t,e){var r;return t?(0,m.isNumber)(t)?r=function(a){return t}:r=t:r=function(a){return e||1},r},Jf=function(t,e){var r=[],n=[],a={},i=0;for(i=0;i=0&&(o="x",i="y");var s=0;Qf(t,function(p){return s++,p.x>a.x&&(a.x=p.x),p.xa.y&&(a.y=p.y),p.yWebGL.
        ','Find out how to get it here.'].join(` -`):['Your browser does not seem to support WebGL.
        ','Find out how to get it here.'].join(` -`)),e},addGetWebGLMessage:function(e){e=e||{};var r=e.parent!==void 0?e.parent:document.body,n=e.id!==void 0?e.id:"oldie",a=c().getWebGLErrorMessage();a.id=n,r.appendChild(a)}}},Pc=(0,b.__assign)((0,b.__assign)((0,b.__assign)((0,b.__assign)({},ki),x),v),g),Vo=Pc,vl=Vo.radialLayout,kc=function(){function c(t){this.type=t.type,this.radial=t.radial,this.config=t}return c.prototype.init=function(t){var e=this;if(this.data=t,this.radial){this.layoutMethod=function(r){var n=nu()[e.type](r,e.config);return vl(n),n};return}this.layoutMethod=function(r){return nu()[e.type](r,e.config)}},c.prototype.execute=function(){return this.layoutMethod(this.data,this.config)},c.prototype.layout=function(t){return this.init(t),this.execute()},c}(),Rc=kc;(0,ea.registerLayout)("grid",ea.GridLayout),(0,ea.registerLayout)("random",ea.RandomLayout),(0,ea.registerLayout)("force",ea.ForceLayout),(0,ea.registerLayout)("circular",ea.CircularLayout),(0,ea.registerLayout)("dagre",ea.DagreLayout),(0,ea.registerLayout)("dagreCompound",ea.DagreCompoundLayout),(0,ea.registerLayout)("radial",ea.RadialLayout),(0,ea.registerLayout)("concentric",ea.ConcentricLayout),(0,ea.registerLayout)("mds",ea.MDSLayout),(0,ea.registerLayout)("fruchterman",ea.FruchtermanLayout),(0,ea.registerLayout)("fruchterman-gpu",ea.FruchtermanGPULayout),(0,ea.registerLayout)("gForce",ea.GForceLayout),(0,ea.registerLayout)("force2",ea.Force2Layout),(0,ea.registerLayout)("gForce-gpu",ea.GForceGPULayout),(0,ea.registerLayout)("comboForce",ea.ComboForceLayout),(0,ea.registerLayout)("comboCombined",ea.ComboCombinedLayout),(0,ea.registerLayout)("forceAtlas2",ea.ForceAtlas2Layout);var gl=function(t,e){e.isCustomLayout=!0,ea.Layouts[t]=(0,ea.registerLayout)(t,e)},Bc=function(){function c(t,e){var r=t.toString(),n=new Blob(["importScripts('".concat(e,"');(").concat(r,")()")],{type:"text/javascript"});return new Worker(URL.createObjectURL(n))}return c}(),Fc=Bc,Gc=function(t){t===void 0&&(t="https://unpkg.com/@antv/layout@latest/dist/layout.min.js");function e(){var n={RUN:"LAYOUT_RUN",END:"LAYOUT_END",ERROR:"LAYOUT_ERROR",TICK:"LAYOUT_TICK",GPURUN:"GPU_LAYOUT_RUN",GPUEND:"GPU_LAYOUT_END"};layout.registerLayout("grid",layout.GridLayout),layout.registerLayout("random",layout.RandomLayout),layout.registerLayout("force",layout.ForceLayout),layout.registerLayout("force2",layout.Force2Layout),layout.registerLayout("circular",layout.CircularLayout),layout.registerLayout("dagre",layout.DagreLayout),layout.registerLayout("dagreCompound",layout.DagreCompoundLayout),layout.registerLayout("radial",layout.RadialLayout),layout.registerLayout("concentric",layout.ConcentricLayout),layout.registerLayout("mds",layout.MDSLayout),layout.registerLayout("fruchterman",layout.FruchtermanLayout),layout.registerLayout("fruchterman-gpu",layout.FruchtermanGPULayout),layout.registerLayout("gForce",layout.GForceLayout),layout.registerLayout("gForce-gpu",layout.GForceGPULayout),layout.registerLayout("comboForce",layout.ComboForceLayout),layout.registerLayout("comboCombined",layout.ComboCombinedLayout),layout.registerLayout("forceAtlas2",layout.ForceAtlas2Layout);function a(o){var s=o.data.type;return s===n.RUN||s===n.GPURUN}function i(o){var s=this,l=o.data.type;switch(l){case n.RUN:{var h=o.data,p=h.nodes,D=h.edges,I=h.layoutCfg,F=I===void 0?{}:I,Z=F.type,ee=layout.getLayoutByName(Z);if(!ee){this.postMessage({type:n.ERROR,message:"layout ".concat(Z," not found")});break}var se;F.onLayoutEnd=function(){s.postMessage({type:n.END,nodes:p}),se==null||se.destroy()},se=new ee(F),se.init({nodes:p,edges:D}),se.execute();break}case n.GPURUN:{var oe=o.data,ce=oe.nodes,D=oe.edges,we=oe.layoutCfg,F=we===void 0?{}:we,Re=oe.canvas,Z=F.type,ee=layout.getLayoutByName(Z);if(!ee){this.postMessage({type:n.ERROR,message:"layout ".concat(Z," not found")});break}if(Z.split("-")[1]!=="gpu"){this.postMessage({type:n.ERROR,message:"layout ".concat(Z," does not support GPU")});break}var Oe=new ee(F);Oe.init({nodes:ce,edges:D}),Oe.executeWithWorker(Re,this);break}default:break}}onmessage=function(s){a(s)&&i(s)}}var r=new Fc(e,t);return r},zs={RUN:"LAYOUT_RUN",END:"LAYOUT_END",ERROR:"LAYOUT_ERROR",TICK:"LAYOUT_TICK",GPURUN:"GPU_LAYOUT_RUN",GPUEND:"GPU_LAYOUT_END"};function Nu(c){return Nu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Nu(c)}var au=function(t){return setTimeout(t,16)},Pu=function(t){return clearTimeout(t)},Us={requestAnimationFrame:function(t){var e=typeof window!="undefined"&&(window.requestAnimationFrame||window.webkitRequestAnimationFrame)||au;return e(t)},cancelAnimationFrame:function(t){var e=typeof window!="undefined"&&(window.cancelAnimationFrame||window.webkitCancelAnimationFrame)||Pu;return e(t)}},vf=["fruchterman","gForce"],ec=["force","grid","circular"],gf=function(c){(0,b.__extends)(t,c);function t(e){var r=c.call(this,e)||this;return r.graph=e,r.layoutCfg=e.get("layout")||{},r.layoutType=r.getLayoutType(),r.worker=null,r.workerData={},r.initLayout(),r}return t.prototype.initLayout=function(){},t.prototype.getWorker=function(){return this.worker?this.worker:(typeof Worker=="undefined"?(console.warn("Web worker is not supported in current browser."),this.worker=null):this.worker=Gc(this.layoutCfg.workerScriptURL),this.worker)},t.prototype.stopWorker=function(){var e=this.workerData;!this.worker||(this.worker.terminate(),this.worker=null,e.requestId&&(Us.cancelAnimationFrame(e.requestId),e.requestId=null),e.requestId2&&(Us.cancelAnimationFrame(e.requestId2),e.requestId2=null))},t.prototype.execLayoutMethod=function(e,r){var n=this;return new Promise(function(a,i){return(0,b.__awaiter)(n,void 0,void 0,function(){var o,s,l,h,p,D,I,F,Z,D,ee;return(0,b.__generator)(this,function(se){switch(se.label){case 0:if(o=this.graph,!o||o.get("destroyed"))return[2];s=e.type,e.onLayoutEnd=function(){o.emit("aftersublayout",{type:s}),a()},s&&this.isGPU&&(ku(s)?s="".concat(s,"-gpu"):console.warn("The '".concat(s,"' layout does not support GPU calculation for now, it will run in CPU."))),ki.isForce(s)?(l=e.onTick,h=e.animate,p=h===void 0&&(s==="force"||s==="force2"),D=function(){l&&l(),(h||p)&&o.refreshPositions()},e.tick=D):(s==="comboForce"||s==="comboCombined")&&(e.comboTrees=o.get("comboTrees")),I=!1;try{F=new ea.Layouts[s](e),this.layoutMethods[r]&&this.layoutMethods[r].destroy(),this.layoutMethods[r]=F}catch(oe){console.warn("The layout method: '".concat(s,"' does not exist! Please specify it first.")),i()}return I=F.enableTick,I&&(Z=e.onTick,D=function(){Z&&Z(),o.refreshPositions()},F.tick=D),ee=this.filterLayoutData(this.data,e),mf(ee,r),F.init(ee),o.emit("beforesublayout",{type:s}),[4,F.execute()];case 1:return se.sent(),F.isCustomLayout&&e.onLayoutEnd&&e.onLayoutEnd(),[2]}})})})},t.prototype.updateLayoutMethod=function(e,r){var n=this;return new Promise(function(a,i){return(0,b.__awaiter)(n,void 0,void 0,function(){var o,s,l;return(0,b.__generator)(this,function(h){switch(h.label){case 0:return o=this.graph,s=r==null?void 0:r.type,r.onLayoutEnd=function(){o.emit("aftersublayout",{type:s}),a()},l=this.filterLayoutData(this.data,r),e.init(l),e.updateCfg(r),o.emit("beforesublayout",{type:s}),[4,e.execute()];case 1:return h.sent(),e.isCustomLayout&&r.onLayoutEnd&&r.onLayoutEnd(),[2]}})})})},t.prototype.layout=function(e){var r=this,n,a=this.graph;if(!(!a||a.get("destroyed"))){this.data=this.setDataFromGraph();var i=this.data,o=i.nodes,s=i.hiddenNodes;if(!o)return!1;var l=a.get("width"),h=a.get("height"),p={};Object.assign(p,{width:l,height:h,center:[l/2,h/2]},this.layoutCfg),this.layoutCfg=p;var D=p.type,I=!1;(n=this.layoutMethods)===null||n===void 0||n.forEach(function(Re){var Oe;return I=!!((Oe=Re.nodes)===null||Oe===void 0?void 0:Oe.length)||I});var F=this.destoryLayoutMethods();a.emit("beforelayout");var Z=Promise.resolve();I&&D&&(F==null?void 0:F.length)===1&&F[0]===D?this.tweakInit():Z=this.initPositions(p.center,o);var ee=this.initPositions(p.center,s);ee.then(),this.isGPU=iu(p,D);var se=p.onLayoutEnd,oe=p.layoutEndFormatted,ce=p.adjust;if(oe||(p.layoutEndFormatted=!0,p.onAllLayoutEnd=function(){return(0,b.__awaiter)(r,void 0,void 0,function(){return(0,b.__generator)(this,function(Re){switch(Re.label){case 0:return se&&se(o),this.refreshLayout(),ce&&p.pipes?[4,this.adjustPipesBox(this.data,ce)]:[3,2];case 1:Re.sent(),this.refreshLayout(),Re.label=2;case 2:return a.emit("afterlayout"),[2]}})})}),this.stopWorker(),p.workerEnabled&&this.layoutWithWorker(this.data,e))return!0;var we=!1;return p.type?(we=!0,Z=Z.then(function(){return(0,b.__awaiter)(r,void 0,void 0,function(){return(0,b.__generator)(this,function(Re){switch(Re.label){case 0:return[4,this.execLayoutMethod(p,0)];case 1:return[2,Re.sent()]}})})})):p.pipes&&(we=!0,p.pipes.forEach(function(Re,Oe){Z=Z.then(function(){return(0,b.__awaiter)(r,void 0,void 0,function(){return(0,b.__generator)(this,function(Pe){switch(Pe.label){case 0:return[4,this.execLayoutMethod(Re,Oe)];case 1:return[2,Pe.sent()]}})})})})),we?Z.then(function(){p.onAllLayoutEnd&&p.onAllLayoutEnd(),e&&e()}).catch(function(Re){console.warn("graph layout failed,",Re)}):(a.refreshPositions(),e==null||e()),!1}},t.prototype.tweakInit=function(){var e=this,r=e.data,n=e.graph,a=r.nodes,i=r.edges;if(!!(a==null?void 0:a.length)){var o={};a.forEach(function(h){var p=h.x,D=h.y;!isNaN(p)&&!isNaN(D)&&(o[h.id]={x:p,y:D},h.mass=h.mass||2)}),i.forEach(function(h){var p=h.source,D=h.target,I=o[p],F=o[D];!I&&F?o[p]={x:F.x+(Math.random()-.5)*80,y:F.y+(Math.random()-.5)*80}:!F&&I&&(o[D]={x:I.x+(Math.random()-.5)*80,y:I.y+(Math.random()-.5)*80})});var s=n.get("width"),l=n.get("height");a.forEach(function(h){var p=o[h.id]||{x:s/2+(Math.random()-.5)*20,y:l/2+(Math.random()-.5)*20};h.x=p.x,h.y=p.y})}},t.prototype.initWithPreset=function(e,r){var n=this;return new Promise(function(a,i){return(0,b.__awaiter)(n,void 0,void 0,function(){var o,s,l,h,p,D,I;return(0,b.__generator)(this,function(F){switch(F.label){case 0:return o=this,s=o.layoutCfg,l=o.data,h=s.preset,!(h==null?void 0:h.type)||!ea.Layouts[h==null?void 0:h.type]?(r==null||r(),a(),[2,!1]):(p=iu(h,h.type),D=p?"".concat(h.type,"-gpu"):h.type,I=new ea.Layouts[D](h),delete s.preset,I.init(l),[4,I.execute()]);case 1:return F.sent(),e==null||e(),a(),[2,!0]}})})})},t.prototype.layoutWithWorker=function(e,r){var n=this,a=this,i=a.layoutCfg,o=a.graph,s=this.getWorker(),l=this.workerData;if(!s)return!1;l.requestId=null,l.requestId2=null,l.currentTick=null,l.currentTickData=null,o.emit("beforelayout");var h=Promise.resolve(),p=!1;if(i.type)p=!0,h=h.then(function(){return n.runWebworker(s,e,i)});else if(i.pipes){p=!0;for(var D=function(se){h=h.then(function(){return n.runWebworker(s,e,se)})},I=0,F=i.pipes;I'),h=n?n.backgroundColor:void 0,p=n?n.padding:void 0;p?(0,m.isNumber)(p)&&(p=[p,p,p,p]):p=[0,0,0,0];var D=i+p[0]+p[2],I=o+p[1]+p[3],F={container:l,height:D,width:I,quickHit:!0},Z=s==="svg"?new Ps.Canvas(F):new so.Canvas(F),ee=this.get("group"),se=ee.clone(),oe=(0,m.clone)(se.getMatrix());oe||(oe=[1,0,0,0,1,0,0,0,1]);var ce=(a.maxX+a.minX)/2,we=(a.maxY+a.minY)/2;oe=js(oe,[["t",-ce,-we],["t",o/2+p[3],i/2+p[0]]]),se.resetMatrix(),se.setMatrix(oe),Z.add(se);var Re=Z.get("el"),Oe="";r||(r="image/png"),setTimeout(function(){if(s==="svg"){var Pe=Re.cloneNode(!0),He=document.implementation.createDocumentType("svg","-//W3C//DTD SVG 1.1//EN","http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"),at=document.implementation.createDocument("http://www.w3.org/2000/svg","svg",He);at.replaceChild(Pe,at.documentElement);var qe=new XMLSerializer().serializeToString(at);Oe="data:image/svg+xml;charset=utf8,".concat(encodeURIComponent(qe))}else{var yt=void 0,Ft=Re.getContext("2d"),yr=void 0;if(h){var fr=typeof window!="undefined"?window.devicePixelRatio:1;try{yt=Ft.getImageData(0,0,I*fr,D*fr),yr=Ft.globalCompositeOperation,Ft.globalCompositeOperation="destination-over",Ft.fillStyle=h,Ft.fillRect(0,0,I,D)}catch(lr){console.error("Download image failed. Out of memory at ImageData creation")}}Oe=Re.toDataURL(r),h&&(Ft.clearRect(0,0,I,D),Ft.putImageData(yt,0,0),Ft.globalCompositeOperation=yr)}e&&e(Oe)},16)},t.prototype.downloadFullImage=function(e,r,n){var a=this,i=this.get("group").getCanvasBBox(),o=i.height,s=i.width,l=this.get("renderer"),h=(0,Aa.Z)('
        '),p=document.querySelector(".g6-graph-watermarker"),D=n?n.backgroundColor:void 0,I=n?n.padding:void 0;I?(0,m.isNumber)(I)&&(I=[I,I,I,I]):I=[0,0,0,0];var F=o+I[0]+I[2],Z=s+I[1]+I[3];if(p){var ee=this.get("graphWaterMarker").cfg||{},se=ee.width,oe=ee.height;F=Math.ceil(F/oe)*oe,Z=Math.ceil(Z/se)*se}var ce={container:h,height:F,width:Z},we=l==="svg"?new Ps.Canvas(ce):new so.Canvas(ce),Re=this.get("group"),Oe=ou(Re),Pe=(0,m.clone)(Oe.getMatrix());Pe||(Pe=[1,0,0,0,1,0,0,0,1]);var He=(i.maxX+i.minX)/2,at=(i.maxY+i.minY)/2;Pe=js(Pe,[["t",-He,-at],["t",s/2+I[3],o/2+I[0]]]),Oe.resetMatrix(),Oe.setMatrix(Pe),we.add(Oe);var qe=we.get("el");r||(r="image/png"),this.asyncToDataUrl(r,D,function(yt){var Ft=document.createElement("a"),yr=(e||"graph")+(l==="svg"?".svg":".".concat(r.split("/")[1]));a.dataURLToImage(yt,l,Ft,yr);var fr=document.createEvent("MouseEvents");fr.initEvent("click",!1,!1),Ft.dispatchEvent(fr)},Z,F,qe)},t.prototype.downloadImage=function(e,r,n){var a=this,i=this;i.stopAnimate();var o=i.get("canvas"),s=o.getRenderer();r||(r="image/png");var l=(e||"graph")+(s==="svg"?".svg":r.split("/")[1]),h=document.createElement("a");i.asyncToDataUrl(r,n,function(p){a.dataURLToImage(p,s,h,l);var D=document.createEvent("MouseEvents");D.initEvent("click",!1,!1),h.dispatchEvent(D)})},t.prototype.dataURLToImage=function(e,r,n,a){if(!e||e==="data:"){console.error("Download image failed. The graph is too large or there is invalid attribute values in graph items");return}if(typeof window!="undefined")if(window.Blob&&window.URL&&r!=="svg"){var i=e.split(","),o="";if(i&&i.length>0){var s=i[0].match(/:(.*?);/);s&&s.length>=2&&(o=s[1])}for(var l=atob(i[1]),h=l.length,p=new Uint8Array(h);h--;)p[h]=l.charCodeAt(h);var D=new Blob([p],{type:o});window.navigator.msSaveBlob?window.navigator.msSaveBlob(D,a):n.addEventListener("click",function(){n.download=a,n.href=window.URL.createObjectURL(D)})}else n.addEventListener("click",function(){n.download=a,n.href=e})},t.prototype.addPlugin=function(e){var r=this;e.destroyed||(r.get("plugins").push(e),e.initPlugin(r))},t.prototype.removePlugin=function(e){var r=this.get("plugins"),n=r.indexOf(e);n>=0&&(e.destroyPlugin(),r.splice(n,1))},t.prototype.setImageWaterMarker=function(e,r){e===void 0&&(e=wo.waterMarkerImage);var n=this.get("container");(0,m.isString)(n)&&(n=document.getElementById(n)),n.style.position||(n.style.position="relative");var a=this.get("graphWaterMarker"),i=(0,m.deepMix)({},wo.imageWaterMarkerConfig,r),o=i.width,s=i.height,l=i.compatible,h=i.image;if(!e){var p=l?n:document.querySelector(".g6-graph-watermarker");p&&(p.style.cssText=void 0),a&&a.clear();return}if(a)a.clear();else{var D={container:n,width:o,height:s,capture:!1},I=this.get("pixelRatio");I&&(D.pixelRatio=I,window.devicePixelRatio=I),a=new so.Canvas(D),this.set("graphWaterMarker",a)}a.get("el").style.display="none";var F=a.get("context"),Z=h.rotate,ee=h.x,se=h.y;F.rotate(-Z*Math.PI/180);var oe=new Image;oe.crossOrigin="anonymous",oe.src=e,oe.onload=function(){if(F.drawImage(oe,ee,se,h.width,h.height),F.rotate(Z*Math.PI/180),l)n.style.cssText="background-image: url(".concat(a.get("el").toDataURL("image/png"),");background-repeat:repeat;");else{var ce=document.querySelector(".g6-graph-watermarker");ce||(ce=document.createElement("div"),ce.className="g6-graph-watermarker"),ce.className="g6-graph-watermarker",a.destroyed||(ce.style.cssText="background-image: url(".concat(a.get("el").toDataURL("image/png"),");background-repeat:repeat;position:absolute;top:0;bottom:0;left:0;right:0;pointer-events:none;z-index:-1;"),n.appendChild(ce))}}},t.prototype.setTextWaterMarker=function(e,r){var n=this.get("container");(0,m.isString)(n)&&(n=document.getElementById(n)),n.style.position||(n.style.position="relative");var a=this.get("graphWaterMarker"),i=(0,m.deepMix)({},wo.textWaterMarkerConfig,r),o=i.width,s=i.height,l=i.compatible,h=i.text;if(!(e==null?void 0:e.length)){var p=l?n:document.querySelector(".g6-graph-watermarker");p&&(p.style.cssText=void 0),a&&a.clear();return}if(a)a.clear();else{var D={container:n,width:o,height:s,capture:!1},I=this.get("pixelRatio");I&&(D.pixelRatio=I,window.devicePixelRatio=I),a=new so.Canvas(D),this.set("graphWaterMarker",a)}a.get("el").style.display="none";var F=a.get("context"),Z=h.rotate,ee=h.fill,se=h.fontFamily,oe=h.fontSize,ce=h.baseline,we=h.x,Re=h.y,Oe=h.lineHeight;F.rotate(-Z*Math.PI/180),F.font="".concat(oe,"px ").concat(se),F.fillStyle=ee,F.textBaseline=ce;for(var Pe=(0,m.isString)(e)?[e]:e,He=Pe.length-1;He>=0;He--)F.fillText(Pe[He],we,Re+He*Oe);if(F.rotate(Z*Math.PI/180),l)n.style.cssText="background-image: url(".concat(a.get("el").toDataURL("image/png"),");background-repeat:repeat;");else{var at=document.querySelector(".g6-graph-watermarker");at||(at=document.createElement("div"),at.className="g6-graph-watermarker"),at.style.cssText="background-image: url(".concat(a.get("el").toDataURL("image/png"),");background-repeat:repeat;position:absolute;top:0;bottom:0;left:0;right:0;pointer-events:none;z-index:99;"),n.appendChild(at)}},t.prototype.destroy=function(){var e,r,n,a;(0,m.each)(this.get("plugins"),function(h){h.destroyPlugin()});var i=this.get("tooltips");if(i)for(var o=0;o0)for(var l=o.length-1;l>=0;l--){var h=o[l].getModel();t.indexOfChild(e.children||[],h.id)===-1&&(a.innerRemoveChild(h.id,{x:e.x,y:e.y},n),o.splice(l,1))}}var p,D;i.get("originAttrs")&&(p=i.get("originAttrs").x,D=i.get("originAttrs").y);var I=i.getModel();n&&i.set("originAttrs",{x:I.x,y:I.y}),i.set("model",Object.assign(I,e.data)),(p!==e.x||D!==e.y)&&i.updatePosition({x:e.x,y:e.y})},t.prototype.innerRemoveChild=function(e,r,n){var a=this,i=a.findById(e);if(!!i)if((0,m.each)(i.get("children"),function(s){a.innerRemoveChild(s.getModel().id,r,n)}),n){var o=i.getModel();i.set("to",r),i.set("originAttrs",{x:o.x,y:o.y}),a.get("removeList").push(i)}else a.removeItem(i,!1)},t.prototype.changeData=function(e,r){r===void 0&&(r=!0);var n=this;this.getNodes().map(function(a){return n.clearItemStates(a)}),this.getEdges().map(function(a){return n.clearItemStates(a)}),r&&this.get("enabledStack")&&this.pushStack("changedata",{before:n.get("originData"),after:e||n.get("data")}),e?(n.data(e),n.render(!1)):n.layout(this.get("fitView"))},t.prototype.changeLayout=function(e){console.warn("Please call updateLayout instead of changeLayout. changeLayout will be discarded soon");var r=this;r.updateLayout(e)},t.prototype.updateLayout=function(e,r,n,a){a===void 0&&(a=!0);var i=this;if(!e){console.warn("layout cannot be null");return}if(a&&this.get("enabledStack")&&this.pushStack("layout",{before:i.get("layout"),after:e}),i.set("layout",e),i.set("layoutMethod",i.getLayout()),i.layout(),r){var o=n;o||(r==="begin"?o={x:0,y:0}:o={x:this.getWidth()/2,y:this.getHeight()/2}),o=this.getPointByCanvas(o.x,o.y);var s=this.getGroup().getMatrix()||[1,0,0,0,1,0,0,0,1];o.x=o.x*s[0]+s[6],o.y=o.y*s[0]+s[7];var l=this.getGroup().getCanvasBBox(),h=l.minX,p=l.maxX,D=l.minY,I=l.maxY,F={x:(h+p)/2,y:(D+I)/2};r==="begin"&&(F.x=h,F.y=D),this.translate(o.x-F.x,o.y-F.y)}},t.prototype.refreshLayout=function(e){console.warn("Please call layout instead of refreshLayout. refreshLayout will be discarded soon");var r=this;r.layout(e)},t.prototype.layout=function(e){var r=this,n=this,a=n.get("data"),i=n.get("layoutMethod"),o=n.get("layout"),s=a;if(o==null?void 0:o.excludeInvisibles){a=(0,m.clone)(n.get("data"));var l={};su(a,function(D){var I=D.children;if(!(I==null?void 0:I.length))return!0;for(var F=I.length-1;F>=0;F--){var Z=r.findById(I[F].id),ee=Z?!Z.isVisible():I[F].visible===!1;ee&&(l[D.id]=l[D.id]||[],l[D.id].push({idx:F,child:I.splice(F,1)[0]}))}}),s=i?i(a,n.get("layout")):a,su(s,function(D){var I=l[D.id];if(I==null?void 0:I.length)for(var F=I.length-1;F>=0;F--){var Z=I[F],ee=Z.idx,se=Z.child;D.children.splice(ee,0,se)}})}else s=i?i(a,n.get("layout")):a;var h=n.get("animate");if(n.emit("beforerefreshlayout",{data:a,layoutData:s}),n.emit("beforelayout"),n.innerUpdateChild(s,void 0,h),e){var p=n.get("viewController");p.fitView()}h?n.layoutAnimate(s):(n.refresh(),n.paint()),n.emit("afterrefreshlayout",{data:a,layoutData:s}),n.emit("afterlayout")},t.prototype.addChild=function(e,r,n){n===void 0&&(n=!0);var a=this;a.emit("beforeaddchild",{model:e,parent:r}),(0,m.isString)(r)||(r=r.get("id"));var i=a.findDataById(r);if(i){i.children||(i.children=[]),i.children.push(e);var o=a.findById(r);o.refresh(),a.changeData(void 0,n)}},t.prototype.updateChildren=function(e,r,n){n===void 0&&(n=!0);var a=this,i=a.findById(r);if(!r||!i){console.warn("Update children failed! There is no node with id '".concat(r,"'"));return}var o=a.findDataById(r);o.children=e,i.refresh(),a.changeData(void 0,n)},t.prototype.updateChild=function(e,r,n){n===void 0&&(n=!0);var a=this;if(!r||!a.findById(r)){a.changeData(e,n);return}var i=a.findDataById(r),o=a.findById(e.id);if(i.children||(i.children=[]),!o)i.children.push(e);else{var s=t.indexOfChild(i.children,e.id);s>-1&&(i.children[s]=e)}var l=a.findById(r);l==null||l.refresh(),a.changeData(void 0,n)},t.prototype.removeChild=function(e,r){r===void 0&&(r=!0);var n=this,a=n.findById(e),i;if(a?i=a==null?void 0:a.get("parent"):i=n.getNodes().find(function(p){var D=p.getModel().children||[];return!!D.find(function(I){return I.id===e})}),i&&!i.destroyed){var o=i.get("id"),s=n.findDataById(o),l=s&&s.children||[],h=t.indexOfChild(l,e);l.splice(h,1),i.refresh()}n.changeData(void 0,r)},t.prototype.findDataById=function(e,r){var n=this;if(r||(r=n.get("data")),e===r.id)return r;var a=null;return(0,m.each)(r.children||[],function(i){if(i.id===e)return a=i,!1;if(a=n.findDataById(e,i),a)return!1}),a},t.prototype.layoutAnimate=function(e,r){var n=this,a=this.get("animateCfg");n.emit("beforeanimate",{data:e}),n.getEdges().forEach(function(i){var o=i.get("model");o.sourceAnchor||(o.sourceAnchor=i.get("sourceAnchorIndex"))}),this.get("canvas").animate(function(i){su(e,function(o){var s=n.findById(o.id);if(s){var l=s.get("originAttrs"),h=s.get("model");if(l||(l={x:h.x,y:h.y},s.set("originAttrs",l)),r){var p=r(s,i,l,e);s.set("model",Object.assign(h,p))}else h.x=l.x+(o.x-l.x)*i,h.y=l.y+(o.y-l.y)*i}return!0}),(0,m.each)(n.get("removeList"),function(o){var s=o.getModel(),l=o.get("originAttrs"),h=o.get("to");s.x=l.x+(h.x-l.x)*i,s.y=l.y+(h.y-l.y)*i}),n.refreshPositions()},{duration:a.duration,easing:a.ease,callback:function(){(0,m.each)(n.getNodes(),function(o){o.set("originAttrs",null)}),(0,m.each)(n.get("removeList"),function(o){n.removeItem(o,!1)}),n.set("removeList",[]),a.callback&&a.callback(),n.emit("afteranimate",{data:e})},delay:a.delay})},t.prototype.stopLayoutAnimate=function(){this.get("canvas").stopAnimate(),this.emit("layoutanimateend",{data:this.get("data")}),this.layoutAnimating=!1},t.prototype.isLayoutAnimating=function(){return this.layoutAnimating},t.prototype.render=function(e){e===void 0&&(e=!0);var r=this,n=r.get("data");if(!n||!(0,m.isObject)(n)||!Object.keys(n).length)throw new Error("data must be defined first");r.clear(),e&&this.get("enabledStack")&&this.clearStack(),r.emit("beforerender"),r.layout(this.get("fitView")),r.emit("afterrender")},t.prototype.save=function(){return this.get("data")},t.prototype.data=function(e){c.prototype.data.call(this,e),this.set("originData",JSON.parse(JSON.stringify(e)))},t}(ys),yl=pl,Kn=z(45442),ms=function(){function c(t){this._cfgs=(0,m.deepMix)(this.getDefaultCfgs(),t),this._events={},this.destroyed=!1}return c.prototype.getDefaultCfgs=function(){return{}},c.prototype.initPlugin=function(t){var e=this;e.set("graph",t);var r=e.getEvents(),n={};(0,m.each)(r,function(a,i){var o=(0,m.wrapBehavior)(e,a);n[i]=o,t.on(i,o)}),this._events=n,this.init()},c.prototype.getEvents=function(){return{}},c.prototype.get=function(t){var e;return(e=this._cfgs)===null||e===void 0?void 0:e[t]},c.prototype.set=function(t,e){this._cfgs[t]=e},c.prototype.destroy=function(){},c.prototype.destroyPlugin=function(){this.destroy();var t=this.get("graph"),e=this._events;(0,m.each)(e,function(r,n){t.off(n,r)}),this._events=null,this._cfgs=null,this.destroyed=!0},c}(),Qi=ms,Wc=function(){var c=function(e,r){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},c(e,r)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");c(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),rc="url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PHBhdHRlcm4gaWQ9ImdyaWQiIHdpZHRoPSI0MCIgaGVpZ2h0PSI0MCIgcGF0dGVyblVuaXRzPSJ1c2VyU3BhY2VPblVzZSI+PHBhdGggZD0iTSAwIDEwIEwgNDAgMTAgTSAxMCAwIEwgMTAgNDAgTSAwIDIwIEwgNDAgMjAgTSAyMCAwIEwgMjAgNDAgTSAwIDMwIEwgNDAgMzAgTSAzMCAwIEwgMzAgNDAiIGZpbGw9Im5vbmUiIHN0cm9rZT0iI2UwZTBlMCIgb3BhY2l0eT0iMC4yIiBzdHJva2Utd2lkdGg9IjEiLz48cGF0aCBkPSJNIDQwIDAgTCAwIDAgMCA0MCIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjZTBlMGUwIiBzdHJva2Utd2lkdGg9IjEiLz48L3BhdHRlcm4+PC9kZWZzPjxyZWN0IHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbGw9InVybCgjZ3JpZCkiLz48L3N2Zz4=)",ml=function(c){Wc(t,c);function t(e){return c.call(this,e)||this}return t.prototype.getDefaultCfgs=function(){return{img:rc,follow:!0}},t.prototype.init=function(){var e=this.get("graph"),r=e.get("container"),n=e.get("canvas").get("el"),a=this.get("img")||rc;a.includes("url(")||(a='url("'.concat(a,'")'));var i=(0,Aa.Z)(`
        `),o=(0,Aa.Z)(`
        `));this.set("container",i),this.set("gridContainer",o),this.positionInit(),i.appendChild(o),r.insertBefore(i,n)},t.prototype.positionInit=function(){var e=this.get("graph"),r=e.get("minZoom"),n=e.get("width"),a=e.get("height");(0,Kn.Z)(this.get("container"),{width:"".concat(n,"px"),height:"".concat(a,"px")});var i=n*80/r,o=a*80/r;(0,Kn.Z)(this.get("gridContainer"),{width:"".concat(i,"px"),height:"".concat(o,"px"),left:"-".concat(i/2,"px"),top:"-".concat(o/2,"px")})},t.prototype.getEvents=function(){return{viewportchange:"updateGrid"}},t.prototype.updateGrid=function(e){var r=this.get("gridContainer"),n=e.matrix;n||(n=[1,0,0,0,1,0,0,0,1]);var a=this.get("follow"),i="matrix(".concat(n[0],", ").concat(n[1],", ").concat(n[3],", ").concat(n[4],", ").concat(a?n[6]:"0",", ").concat(a?n[7]:"0",")");(0,Kn.Z)(r,{transform:i})},t.prototype.getContainer=function(){return this.get("container")},t.prototype.destroy=function(){var e=this.get("graph"),r=e.get("container"),n=this.get("container");r.removeChild(n)},t}(Qi),jc=ml,El=z(38186),pi=z.n(El),Xc=function(){var c=function(e,r){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},c(e,r)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");c(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}();typeof document!="undefined"&&pi()(` - .g6-component-contextmenu { - border: 1px solid #e2e2e2; - border-radius: 4px; - font-size: 12px; - color: #545454; - background-color: rgba(255, 255, 255, 0.9); - padding: 10px 8px; - box-shadow: rgb(174, 174, 174) 0px 0px 10px; - } - .g6-contextmenu-ul { - padding: 0; - margin: 0; - list-style: none; - } - -`);var uu=function(c){Xc(t,c);function t(e){return c.call(this,e)||this}return t.prototype.getDefaultCfgs=function(){return{offsetX:6,offsetY:6,handleMenuClick:void 0,getContent:function(r){return` -
          -
        • \u83DC\u5355\u98791
        • -
        • \u83DC\u5355\u98792
        • -
        - `},shouldBegin:function(r){return!0},onHide:function(){return!0},itemTypes:["node","edge","combo"],trigger:"contextmenu"}},t.prototype.getEvents=function(){return this.get("trigger")==="click"?{click:"onMenuShow",touchend:"onMenuShow"}:{contextmenu:"onMenuShow"}},t.prototype.init=function(){var e=this.get("className"),r=(0,Aa.Z)("
        "));(0,Kn.Z)(r,{top:"0px",position:"absolute",visibility:"hidden"});var n=this.get("container");n||(n=this.get("graph").get("container")),(0,m.isString)(n)&&(n=document.getElementById(n)),n.appendChild(r),this.set("menu",r)},t.prototype.onMenuShow=function(e){var r=this;e.preventDefault();var n=this.get("itemTypes");if(e.item){if(e.item&&e.item.getType&&n.indexOf(e.item.getType())===-1){r.onMenuHide();return}}else if(n.indexOf("canvas")===-1){r.onMenuHide();return}var a=this.get("shouldBegin");if(!!a(e)){var i=this.get("menu"),o=this.get("getContent"),s=this.get("graph"),l=o(e,s);(0,m.isString)(l)?i.innerHTML=l:i.innerHTML=l.outerHTML,this.removeMenuEventListener();var h=this.get("handleMenuClick");if(h){var p=function(He){h(He.target,e.item,s)};this.set("handleMenuClickWrapper",p),i.addEventListener("click",p)}var D=s.get("width"),I=s.get("height"),F=i.getBoundingClientRect(),Z=this.get("offsetX")||0,ee=this.get("offsetY")||0,se=s.getContainer().offsetTop,oe=s.getContainer().offsetLeft,ce=e.canvasX+oe+Z,we=e.canvasY+se+ee;ce+F.width>D&&(ce=e.canvasX-F.width-Z+oe),we+F.height>I&&(we=e.canvasY-F.height-ee+se),(0,Kn.Z)(i,{top:"".concat(we,"px"),left:"".concat(ce,"px"),visibility:"visible"});var Re=this.get("trigger")==="click",Oe=function(He){if(Re){Re=!1;return}r.onMenuHide()};document.body.addEventListener("click",Oe),this.set("handler",Oe)}},t.prototype.removeMenuEventListener=function(){var e=this.get("handleMenuClickWrapper"),r=this.get("handler");if(e){var n=this.get("menu");n.removeEventListener("click",e),this.set("handleMenuClickWrapper",null)}r&&document.body.removeEventListener("click",r)},t.prototype.onMenuHide=function(){var e=this.get("menu");e&&(0,Kn.Z)(e,{visibility:"hidden"}),this.removeMenuEventListener()},t.prototype.destroy=function(){var e=this.get("menu");if(this.removeMenuEventListener(),e){var r=this.get("container");r||(r=this.get("graph").get("container")),(0,m.isString)(r)&&(r=document.getElementById(r)),r.removeChild(e)}},t}(Qi),Es=uu,Vc=function(){var c=function(e,r){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},c(e,r)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");c(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),Fu=function(){return Fu=Object.assign||function(c){for(var t,e=1,r=arguments.length;e-1,l=navigator.userAgent.toLowerCase().indexOf("safari")>-1,h=(0,Aa.Z)(` -
        `)),p=0,D=0,I=!1,F=0,Z=0,ee=0,se=0,oe=0,ce=0,we=l||s?"mousedown":"dragstart";h.addEventListener(we,function(He){var at,qe;if(He.dataTransfer){var yt=new Image;yt.src="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' %3E%3Cpath /%3E%3C/svg%3E",(qe=(at=He.dataTransfer).setDragImage)===null||qe===void 0||qe.call(at,yt,0,0);try{He.dataTransfer.setData("text/html","view-port-minimap")}catch(yr){He.dataTransfer.setData("text","view-port-minimap")}}if(r.refresh=!1,He.target===h){var Ft=h.style;F=parseInt(Ft.left,10),Z=parseInt(Ft.top,10),ee=parseInt(Ft.width,10),se=parseInt(Ft.height,10),!(ee>n[0]||se>n[1])&&(ce=a.getZoom(),oe=e.get("ratio"),I=!0,p=He.clientX,D=He.clientY)}},!1);var Re=function(at){if(!(!I||(0,m.isNil)(at.clientX)||(0,m.isNil)(at.clientY))){var qe=p-at.clientX,yt=D-at.clientY;(F-qe<0||F-qe+ee>=n[0])&&(qe=0),(Z-yt<0||Z-yt+se>=n[1])&&(yt=0),F-=qe,Z-=yt,(0,Kn.Z)(h,{left:"".concat(F,"px"),top:"".concat(Z,"px")}),a.translate(qe*ce/oe,yt*ce/oe),p=at.clientX,D=at.clientY}};!l&&!s&&h.addEventListener("drag",Re,!1);var Oe=function(){I=!1,r.refresh=!0},Pe=l||s?"mouseup":"dragend";h.addEventListener(Pe,Oe,!1),o.addEventListener("mouseleave",Oe),o.addEventListener("mouseup",Oe),(l||s)&&o.addEventListener("mousemove",Re,!1),this.set("viewport",h),o.appendChild(h)}},t.prototype.updateViewport=function(){if(!this.destroyed){var e=this.get("ratio"),r=this.get("totaldx"),n=this.get("totaldy"),a=this.get("graph"),i=this.get("size"),o=a.get("canvas").get("el"),s=a.get("width")||o.scrollWidth||500,l=a.get("height")||o.scrollHeight||500,h=a.getPointByCanvas(0,0),p=a.getPointByCanvas(s,l),D=this.get("viewport");D||this.initViewport();var I=(p.x-h.x)*e,F=(p.y-h.y)*e,Z=h.x*e+r,ee=h.y*e+n,se=Z+I,oe=ee+F;Z<0&&(I+=Z,Z=0),se>i[0]&&(I=I-(se-i[0])),ee<0&&(F+=ee,ee=0),oe>i[1]&&(F=F-(oe-i[1])),this.set("ratio",e);var ce="".concat(Z,"px"),we="".concat(ee,"px");(0,Kn.Z)(D,{left:ce,top:we,width:"".concat(I,"px"),height:"".concat(F,"px")})}},t.prototype.updateGraphShapes=function(){var e=this._cfgs.graph,r=this.get("canvas"),n=e.get("group");if(!n.destroyed){r.clear();var a;this.get("hideEdge")?(a=r.addGroup(),n.get("children").forEach(function(o){o.get("id").includes("-edge")||a.add(o.clone())})):(a=n.clone(),a.resetMatrix(),r.add(a));var i=e.get("renderer");i===Ri&&this.updateVisible(a)}},t.prototype.updateVisible=function(e){var r=this;if(!e.isGroup()&&!e.get("visible"))e.hide();else{var n=e.get("children");if(!n||!n.length)return;n.forEach(function(a){a.get("visible")||a.hide(),r.updateVisible(a)})}},t.prototype.updateKeyShapes=function(){var e=this,r=this._cfgs.graph,n=this.get("canvas"),a=n.get("children")[0]||n.addGroup();this.get("hideEdge")||(0,m.each)(r.getEdges(),function(s){e.updateOneEdgeKeyShape(s,a)}),(0,m.each)(r.getNodes(),function(s){e.updateOneNodeKeyShape(s,a)});var i=r.getCombos();if(i&&i.length){var o=a.find(function(s){return s.get("name")==="comboGroup"})||a.addGroup({name:"comboGroup"});setTimeout(function(){e.destroyed||((0,m.each)(i,function(s){e.updateOneComboKeyShape(s,o)}),o==null||o.sort(),o==null||o.toBack(),e.updateCanvas())},250)}this.clearDestroyedShapes()},t.prototype.updateOneComboKeyShape=function(e,r){if(!this.destroyed){var n=this.get("itemMap")||{},a=n[e.get("id")],i=e.getBBox(),o=e.get("keyShape").clone(),s=o.attr(),l={x:i.centerX,y:i.centerY};a?l=Object.assign(s,l):(a=o,r.add(a));var h=a.get("type");(h==="rect"||h==="image")&&(l.x=i.minX,l.y=i.minY),a.attr(l),e.isVisible()?a.show():a.hide(),a.exist=!0;var p=e.getModel().depth;isNaN(p)||a.set("zIndex",p),n[e.get("id")]=a,this.set("itemMap",n)}},t.prototype.updateOneNodeKeyShape=function(e,r){var n=this.get("itemMap")||{},a=n[e.get("id")],i=e.getBBox(),o=e.get("keyShape").clone(),s=o.attr(),l={x:i.centerX,y:i.centerY};a?(l=Object.assign(s,l),a.toFront()):(a=o,r.add(a));var h=a.get("type");(h==="rect"||h==="image")&&(l.x=i.minX,l.y=i.minY),a.attr(l),e.isVisible()?a.show():a.hide(),a.exist=!0;var p=e.getModel().depth;isNaN(p)||a.set("zIndex",p),n[e.get("id")]=a,this.set("itemMap",n)},t.prototype.updateDelegateShapes=function(){var e=this,r=this._cfgs.graph,n=this.get("canvas"),a=n.get("children")[0]||n.addGroup();this.get("hideEdge")||(0,m.each)(r.getEdges(),function(s){e.updateOneEdgeKeyShape(s,a)}),(0,m.each)(r.getNodes(),function(s){e.updateOneNodeDelegateShape(s,a)});var i=r.getCombos();if(i&&i.length){var o=a.find(function(s){return s.get("name")==="comboGroup"})||a.addGroup({name:"comboGroup"});setTimeout(function(){e.destroyed||((0,m.each)(i,function(s){e.updateOneComboKeyShape(s,o)}),o==null||o.sort(),o==null||o.toBack(),e.updateCanvas())},250)}this.clearDestroyedShapes()},t.prototype.clearDestroyedShapes=function(){var e=this.get("itemMap")||{},r=Object.keys(e);if(!(!r||r.length===0))for(var n=r.length-1;n>=0;n--){var a=e[r[n]],i=a.exist;a.exist=!1,i||(a.remove(),delete e[r[n]])}},t.prototype.updateOneEdgeKeyShape=function(e,r){var n=this.get("itemMap")||{},a=n[e.get("id")];if(a){var i=e.get("keyShape").attr("path");a.attr("path",i)}else a=e.get("keyShape").clone(),r.add(a);e.isVisible()?a.show():a.hide(),a.exist=!0,n[e.get("id")]=a,this.set("itemMap",n)},t.prototype.updateOneNodeDelegateShape=function(e,r){var n=this.get("delegateStyle"),a=this.get("itemMap")||{},i=a[e.get("id")],o=e.getBBox();if(i){var s={x:o.minX,y:o.minY,width:o.width,height:o.height};i.attr(s),i.toFront()}else i=r.addShape("rect",{attrs:Fu({x:o.minX,y:o.minY,width:o.width,height:o.height},n),name:"minimap-node-shape"});e.isVisible()?i.show():i.hide(),i.exist=!0,a[e.get("id")]=i,this.set("itemMap",a)},t.prototype.init=function(){this.initContainer(),this.get("graph").on("afterupdateitem",this.handleUpdateCanvas),this.get("graph").on("afteritemstatechange",this.handleUpdateCanvas),this.get("graph").on("afteradditem",this.handleUpdateCanvas),this.get("graph").on("afterremoveitem",this.handleUpdateCanvas),this.get("graph").on("afterrender",this.handleUpdateCanvas),this.get("graph").on("afterlayout",this.handleUpdateCanvas)},t.prototype.initContainer=function(){var e=this,r=e.get("graph"),n=e.get("size"),a=e.get("className"),i=e.get("container"),o=(0,Aa.Z)("
        "));(0,m.isString)(i)&&(i=document.getElementById(i)),i?i.appendChild(o):r.get("container").appendChild(o),e.set("container",o);var s=(0,Aa.Z)('
        ');o.appendChild(s),s.addEventListener("dragenter",function(p){p.preventDefault()}),s.addEventListener("dragover",function(p){p.preventDefault()});var l,h=r.get("renderer");h===Ri?l=new Ps.Canvas({container:s,width:n[0],height:n[1]}):l=new so.Canvas({container:s,width:n[0],height:n[1]}),e.set("canvas",l),e.updateCanvas()},t.prototype.updateCanvas=function(){if(!this.destroyed){var e=this.get("refresh");if(!!e){var r=this.get("graph");if(!r.get("destroyed")){this.get("viewportChange")&&(this.set("viewportChange",!1),this.updateViewport());var n=this.get("size"),a=this.get("canvas"),i=this.get("type"),o=this.get("padding");if(!a.destroyed){switch(i){case Ji:this.updateGraphShapes();break;case bs:this.updateKeyShapes();break;case ci:this.updateDelegateShapes();break;default:break}var s=a.get("children")[0];if(!!s){s.resetMatrix();var l=s.getCanvasBBox(),h=r.get("canvas").getCanvasBBox(),p=r.getZoom()||1,D=h.width/p,I=h.height/p;Number.isFinite(l.width)&&(D=Gu(l.width,D),I=Gu(l.height,I)),D+=2*o,I+=2*o;var F=Math.min(n[0]/D,n[1]/I),Z=[1,0,0,0,1,0,0,0,1],ee=0,se=0;Number.isFinite(l.minX)&&(ee=-l.minX),Number.isFinite(l.minY)&&(se=-l.minY);var oe=(n[0]-(D-2*o)*F)/2,ce=(n[1]-(I-2*o)*F)/2;Z=Yc(Z,[["t",ee,se],["s",F,F],["t",oe,ce]]),s.setMatrix(Z),this.set("ratio",F),this.set("totaldx",oe+ee*F),this.set("totaldy",ce+se*F),this.set("dx",oe),this.set("dy",ce),this.updateViewport()}}}}}},t.prototype.getCanvas=function(){return this.get("canvas")},t.prototype.getViewport=function(){return this.get("viewport")},t.prototype.getContainer=function(){return this.get("container")},t.prototype.destroy=function(){var e;(e=this.get("canvas"))===null||e===void 0||e.destroy();var r=this.get("container");(r==null?void 0:r.parentNode)&&r.parentNode.removeChild(r)},t}(Qi),bl=Ef,Hc=function(){var c=function(e,r){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},c(e,r)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");c(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}();function Yo(c,t,e){var r=c.x-t.x,n=c.y-t.y;return!e||Math.abs(r)>e||Math.abs(n)>e?Math.sqrt(r*r+n*n):e}function xl(c,t){return c.x*t.x+c.y*t.y}function nc(c,t){var e=(t.source.y-t.target.y)/(t.source.x-t.target.x),r=(e*e*t.source.x+e*(c.y-t.source.y)+c.x)/(e*e+1),n=e*(r-t.source.x)+t.source.y;return{x:r,y:n}}var wl=function(c){Hc(t,c);function t(e){return c.call(this,e)||this}return t.prototype.getDefaultCfgs=function(){return{edgeBundles:[],edgePoints:[],K:.1,lambda:.1,divisions:1,divRate:2,cycles:6,iterations:90,iterRate:.6666667,bundleThreshold:.6,eps:1e-6,onLayoutEnd:function(){},onTick:function(){}}},t.prototype.init=function(){var e=this.get("graph"),r=this.get("onTick"),n=function(){r&&r(),e.refreshPositions()};this.set("tick",n)},t.prototype.bundling=function(e){var r=this;if(r.set("data",e),!r.isTicking()){var n=e.edges||[],a=e.nodes||[],i={},o=!1;if(a.forEach(function(we){(we.x===null||!we.y===null||we.x===void 0||!we.y===void 0)&&(o=!0),i[we.id]=we}),o)throw new Error("please layout the graph or assign x and y for nodes first");r.set("nodeIdMap",i);var s=r.get("divisions"),l=r.get("divRate"),h=r.divideEdges(s);r.set("edgePoints",h);var p=r.getEdgeBundles();r.set("edgeBundles",p);for(var D=r.get("cycles"),I=r.get("iterations"),F=r.get("iterRate"),Z=r.get("lambda"),ee=0;eeF;){var ce=F/oe,we={x:i[s][se-1].x,y:i[s][se-1].y};we.x+=ce*(ee.x-i[s][se-1].x),we.y+=ce*(ee.y-i[s][se-1].y),Z.push(we),oe-=F,F=I}F-=oe}}),Z.push({x:p.x,y:p.y}),i[s]=Z}}),i},t.prototype.getEdgeLength=function(e){var r=0;return e.forEach(function(n,a){a!==0&&(r+=Yo(n,e[a-1]))}),r},t.prototype.getEdgeBundles=function(){var e=this,r=e.get("data"),n=r.edges||[],a=e.get("bundleThreshold"),i=e.get("nodeIdMap"),o=e.get("edgeBundles");return o||(o=[]),n.forEach(function(s,l){(!o[l]||o[l]===void 0)&&(o[l]=[])}),n.forEach(function(s,l){var h=i[s.source],p=i[s.target];n.forEach(function(D,I){if(!(I<=l)){var F=i[D.source],Z=i[D.target],ee=e.getBundleScore({source:h,target:p},{source:F,target:Z});ee>=a&&(o[l].push(I),o[I].push(l))}})}),o},t.prototype.getBundleScore=function(e,r){var n=this;e.vx=e.target.x-e.source.x,e.vy=e.target.y-e.source.y,r.vx=r.target.x-r.source.x,r.vy=r.target.y-r.source.y,e.length=Yo({x:e.source.x,y:e.source.y},{x:e.target.x,y:e.target.y}),r.length=Yo({x:r.source.x,y:r.source.y},{x:r.target.x,y:r.target.y});var a=n.getAngleScore(e,r),i=n.getScaleScore(e,r),o=n.getPositionScore(e,r),s=n.getVisibilityScore(e,r);return a*i*o*s},t.prototype.getAngleScore=function(e,r){var n=xl({x:e.vx,y:e.vy},{x:r.vx,y:r.vy});return n/(e.length*r.length)},t.prototype.getScaleScore=function(e,r){var n=(e.length+r.length)/2,a=2/(n/Math.min(e.length,r.length)+Math.max(e.length,r.length)/n);return a},t.prototype.getPositionScore=function(e,r){var n=(e.length+r.length)/2,a={x:(e.source.x+e.target.x)/2,y:(e.source.y+e.target.y)/2},i={x:(r.source.x+r.target.x)/2,y:(r.source.y+r.target.y)/2},o=Yo(a,i);return n/(n+o)},t.prototype.getVisibilityScore=function(e,r){var n=this.getEdgeVisibility(e,r),a=this.getEdgeVisibility(r,e);return na||Math.abs(p.y)>a){var D=Yo(o[h][e],o[r][e]),I=1/D;l.x+=p.x*I,l.y+=p.y*I}}),l},t.prototype.isTicking=function(){return this.get("ticking")},t.prototype.getSimulation=function(){return this.get("forceSimulation")},t.prototype.destroy=function(){this.get("ticking")&&this.getSimulation().stop(),c.prototype.destroy.call(this)},t}(Qi),Sl=wl,_l=function(){var c=function(e,r){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},c(e,r)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");c(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),ac=function(){return ac=Object.assign||function(c){for(var t,e=1,r=arguments.length;e(l||n.get("height"))&&a>1||p<(h||n.get("height")*.05)&&a<1)&&(a=1),p*=a,r.set("r",p),r.set("r2",p*p);var D=r.get("d");r.set("molecularParam",(D+1)*p),r.set("delegateCenterDiff",void 0),r.magnify(e,s)}},t.prototype.scaleRByDrag=function(e){var r=this;if(!!e){var n=r.get("dragPrePos"),a=r.get("graph"),i,o=a.getPointByClient(e.clientX,e.clientY);e.x-n.x<0?i=1-zu:i=1/(1-zu);var s=r.get("maxR"),l=r.get("minR"),h=r.get("r");(h>(s||a.get("height"))&&i>1||h<(l||a.get("height")*.05)&&i<1)&&(i=1),h*=i,r.set("r",h),r.set("r2",h*h);var p=r.get("d");r.set("molecularParam",(p+1)*h),r.magnify(e,o),r.set("dragPrePos",{x:e.x,y:e.y})}},t.prototype.scaleDByWheel=function(e){var r=this;if(!(!e&&!e.originalEvent)){e.preventDefault&&e.preventDefault();var n=0;e.originalEvent.wheelDelta<0?n=-.1:n=.1;var a=r.get("d"),i=a+n,o=r.get("maxD"),s=r.get("minD");if(is){r.set("d",i);var l=r.get("r");r.set("molecularParam",(i+1)*l);var h=r.get("delegate"),p=h?{x:h.attr("x"),y:h.attr("y")}:void 0;r.set("delegateCenterDiff",void 0),r.magnify(e,p)}}},t.prototype.scaleDByDrag=function(e){var r=this,n=r.get("dragPrePos"),a=e.x-n.x>0?.1:-.1,i=r.get("d"),o=i+a,s=r.get("maxD"),l=r.get("minD");if(ol){r.set("d",o);var h=r.get("r");r.set("molecularParam",(o+1)*h),r.magnify(e)}r.set("dragPrePos",{x:e.x,y:e.y})},t.prototype.magnify=function(e,r){var n=this;n.restoreCache();var a=n.get("graph"),i=n.get("cachedMagnifiedModels"),o=n.get("cachedOriginPositions"),s=n.get("showLabel"),l=n.get("r"),h=n.get("r2"),p=n.get("d"),D=n.get("molecularParam"),I=a.getNodes(),F=I.length,Z=r?{x:r.x,y:r.y}:{x:e.x,y:e.y};n.get("dragging")&&(n.get("trigger")==="mousemove"||n.get("trigger")==="click")&&(Z=n.get("cacheCenter"));var ee=n.get("delegateCenterDiff");ee&&(Z.x+=ee.x,Z.y+=ee.y),n.updateDelegate(Z,l);for(var se=0;se -
      • - - - -
      • -
      • - - - -
      • -
      • - - - -
      • -
      • - - - -
      • -
      • - - - -
      • -
      • - - - -
      • - - `},zoomSensitivity:2}},t.prototype.init=function(){var e=this,r=this.get("graph"),n=this.get("getContent"),a=n(r),i=a;(0,m.isString)(a)&&(i=(0,Aa.Z)(a));var o=this.get("className");i.setAttribute("class",o||"g6-component-toolbar");var s=this.get("container");s||(s=this.get("graph").get("container")),(0,m.isString)(s)&&(s=document.getElementById(s)),s.appendChild(i),this.set("toolBar",i);var l=this.get("handleClick");i.addEventListener("click",function(p){var D=Kc(p).filter(function(F){return F.nodeName==="LI"});if(D.length!==0){var I=D[0].getAttribute("code");!I||(l?l(I,r):e.handleDefaultOperator(I))}});var h=this.get("position");h&&(0,Kn.Z)(i,{top:"".concat(h.y,"px"),left:"".concat(h.x,"px")}),this.bindUndoRedo()},t.prototype.bindUndoRedo=function(){var e=this.get("graph"),r=document.querySelector('.g6-component-toolbar li[code="undo"]'),n=document.querySelector('.g6-component-toolbar li[code="undo"] svg'),a=document.querySelector('.g6-component-toolbar li[code="redo"]'),i=document.querySelector('.g6-component-toolbar li[code="redo"] svg');!r||!n||!a||!i||(r.setAttribute("style","cursor: not-allowed"),n.setAttribute("style","opacity: 0.4"),a.setAttribute("style","cursor: not-allowed"),i.setAttribute("style","opacity: 0.4"),e.on("stackchange",function(o){var s=o.undoStack,l=o.redoStack,h=s.length,p=l.length;h===0?(r.setAttribute("style","cursor: not-allowed"),n.setAttribute("style","opacity: 0.4")):(r.removeAttribute("style"),n.removeAttribute("style")),p===0?(a.setAttribute("style","cursor: not-allowed"),i.setAttribute("style","opacity: 0.4")):(a.removeAttribute("style"),i.removeAttribute("style"))}))},t.prototype.undo=function(){var e=this.get("graph"),r=e.getUndoStack();if(!(!r||r.length===0)){var n=r.pop();if(n){var a=n.action;e.pushStack(a,(0,m.clone)(n.data),"redo");var i=n.data.before;if(a==="add"&&(i=n.data.after),!i)return;switch(a){case"visible":{Object.keys(i).forEach(function(p){var D=i[p];!D||D.forEach(function(I){var F=e.findById(I.id);I.visible?e.showItem(F,!1):e.hideItem(F,!1)})});break}case"render":case"update":Object.keys(i).forEach(function(p){var D=i[p];!D||D.forEach(function(I){var F=e.findById(I.id);delete I.id,e.updateItem(F,I,!1),F.getType()==="combo"&&e.updateCombo(F)})});break;case"changedata":e.changeData(i,!1);break;case"delete":{Object.keys(i).forEach(function(p){var D=i[p];!D||D.forEach(function(I){var F=I.itemType;delete I.itemType,e.addItem(F,I,!1)})});break}case"add":Object.keys(i).forEach(function(p){var D=i[p];!D||D.forEach(function(I){e.removeItem(I.id,!1)})});break;case"updateComboTree":Object.keys(i).forEach(function(p){var D=i[p];!D||D.forEach(function(I){e.updateComboTree(I.id,I.parentId,!1)})});break;case"createCombo":var o=n.data.after.combos,s=o[o.length-1];Object.keys(i).forEach(function(p){var D=i[p];!D||D.forEach(function(I){e.updateComboTree(I.id,I.parentId,!1)})}),e.removeItem(s.id,!1);break;case"uncombo":var l=i.combos[i.combos.length-1],h=i.nodes.concat(i.combos).map(function(p){return p.id}).filter(function(p){return p!==l.id});e.createCombo(l,h,!1);break;case"layout":e.updateLayout(i,void 0,void 0,!1);break;default:}}}},t.prototype.redo=function(){var e=this.get("graph"),r=e.getRedoStack();if(!(!r||r.length===0)){var n=r.pop();if(n){var a=n.action,i=n.data.after;if(e.pushStack(a,(0,m.clone)(n.data)),a==="delete"&&(i=n.data.before),!i)return;switch(a){case"visible":{Object.keys(i).forEach(function(h){var p=i[h];!p||p.forEach(function(D){var I=e.findById(D.id);D.visible?e.showItem(I,!1):e.hideItem(I,!1)})});break}case"render":case"update":Object.keys(i).forEach(function(h){var p=i[h];!p||p.forEach(function(D){var I=e.findById(D.id);delete D.id,e.updateItem(I,D,!1),I.getType()==="combo"&&e.updateCombo(I)})});break;case"changedata":e.changeData(i,!1);break;case"delete":i.edges&&i.edges.forEach(function(h){e.removeItem(h.id,!1)}),i.nodes&&i.nodes.forEach(function(h){e.removeItem(h.id,!1)}),i.combos&&i.combos.forEach(function(h){e.removeItem(h.id,!1)});break;case"add":{Object.keys(i).forEach(function(h){var p=i[h];!p||p.forEach(function(D){var I=D.itemType;delete D.itemType,e.addItem(I,D,!1)})});break}case"updateComboTree":Object.keys(i).forEach(function(h){var p=i[h];!p||p.forEach(function(D){e.updateComboTree(D.id,D.parentId,!1)})});break;case"createCombo":var o=i.combos[i.combos.length-1];e.createCombo(o,o.children.map(function(h){return h.id}),!1);break;case"uncombo":var s=n.data.before.combos,l=s[s.length-1];e.uncombo(l.id,!1);break;case"layout":e.updateLayout(i,void 0,void 0,!1);break;default:}}}},t.prototype.zoomOut=function(){var e=this.get("graph"),r=e.getZoom(),n=1/(1-ic*this.get("zoomSensitivity")),a=this.get("maxZoom")||e.get("maxZoom");n*r>a||e.zoomTo(r*n)},t.prototype.zoomIn=function(){var e=this.get("graph"),r=e.getZoom(),n=1-ic*this.get("zoomSensitivity"),a=this.get("minZoom")||e.get("minZoom");n*r\u7C7B\u578B\uFF1A`.concat(r.item.getType(),` - ID\uFF1A`).concat(r.item.getID(),` - `)},shouldBegin:function(r){return!0},itemTypes:["node","edge","combo"],trigger:"mouseenter",fixToNode:void 0}},t.prototype.getEvents=function(){return this.get("trigger")==="click"?{"node:click":"onClick","edge:click":"onClick","combo:click":"onClick","canvas:click":"onMouseLeave",afterremoveitem:"onMouseLeave",contextmenu:"onMouseLeave",drag:"onMouseLeave"}:{"node:mouseenter":"onMouseEnter","node:mouseleave":"onMouseLeave","node:mousemove":"onMouseMove","edge:mouseenter":"onMouseEnter","edge:mouseleave":"onMouseLeave","edge:mousemove":"onMouseMove","combo:mouseenter":"onMouseEnter","combo:mouseleave":"onMouseLeave","combo:mousemove":"onMouseMove",afterremoveitem:"onMouseLeave",contextmenu:"onMouseLeave","node:drag":"onMouseLeave"}},t.prototype.init=function(){var e=this,r=e.get("className")||"g6-component-tooltip",n=(0,Aa.Z)("
        ")),a=e.get("container");a||(a=e.get("graph").get("container")),(0,m.isString)(a)&&(a=document.getElementById(a)),(0,Kn.Z)(n,{position:"absolute",visibility:"hidden",display:"none"}),a.appendChild(n),e.get("trigger")!=="click"&&(n.addEventListener("mouseenter",function(i){(0,Kn.Z)(n,{visibility:"visible",display:"unset"})}),n.addEventListener("mouseleave",function(i){e.hideTooltip()})),e.set("tooltip",n)},t.prototype.onClick=function(e){var r=this.get("itemTypes");if(!(e.item&&e.item.getType&&r.indexOf(e.item.getType())===-1)){var n=e.item,a=this.get("graph");this.currentTarget===n?(this.currentTarget=null,this.hideTooltip(),a.emit("tooltipchange",{item:e.item,action:"hide"})):(this.currentTarget=n,this.showTooltip(e),a.emit("tooltipchange",{item:e.item,action:"show"}))}},t.prototype.onMouseEnter=function(e){var r=this.get("itemTypes");if(!(e.item&&e.item.getType&&r.indexOf(e.item.getType())===-1)){var n=e.item,a=this.get("graph");this.currentTarget=n,this.showTooltip(e),a.emit("tooltipchange",{item:e.item,action:"show"})}},t.prototype.onMouseMove=function(e){var r=this.get("itemTypes");e.item&&e.item.getType&&r.indexOf(e.item.getType())===-1||!this.currentTarget||e.item!==this.currentTarget||this.showTooltip(e)},t.prototype.onMouseLeave=function(){this.hideTooltip();var e=this.get("graph");e.emit("tooltipchange",{item:this.currentTarget,action:"hide"}),this.currentTarget=null},t.prototype.clearContainer=function(){var e=this.get("tooltip");e&&(e.innerHTML="")},t.prototype.showTooltip=function(e){if(!!e.item){var r=this.get("itemTypes");if(!(e.item.getType&&r.indexOf(e.item.getType())===-1)){var n=this.get("tooltip"),a=this.get("getContent"),i=a(e);(0,m.isString)(i)?n.innerHTML=i:(this.clearContainer(),n.appendChild(i)),this.updatePosition(e)}}},t.prototype.hideTooltip=function(){var e=this.get("tooltip");e&&(0,Kn.Z)(e,{visibility:"hidden",display:"none"})},t.prototype.updatePosition=function(e){var r=this.get("shouldBegin"),n=this.get("tooltip");if(!r(e)){(0,Kn.Z)(n,{visibility:"hidden",display:"none"});return}var a=this.get("graph"),i=a.get("width"),o=a.get("height"),s=this.get("offsetX")||0,l=this.get("offsetY")||0,h=a.getPointByClient(e.clientX,e.clientY),p=this.get("fixToNode"),D=e.item;if(D.getType&&D.getType()==="node"&&p&&(0,m.isArray)(p)&&p.length>=2){var I=D.getBBox();h={x:I.minX+I.width*p[0],y:I.minY+I.height*p[1]}}var F=a.getCanvasByPoint(h.x,h.y),Z=F.x,ee=F.y,se=a.getContainer(),oe={x:Z+se.offsetLeft+s,y:ee+se.offsetTop+l};(0,Kn.Z)(n,{visibility:"visible",display:"unset"});var ce=n.getBoundingClientRect();Z+ce.width+s>i&&(oe.x-=ce.width+s),ee+ce.height+l>o&&(oe.y-=ce.height+l,oe.y<0&&(oe.y=0)),(0,Kn.Z)(n,{left:"".concat(oe.x,"px"),top:"".concat(oe.y,"px")})},t.prototype.hide=function(){this.onMouseLeave()},t.prototype.destroy=function(){var e=this.get("tooltip");if(e){var r=this.get("container");r||(r=this.get("graph").get("container")),(0,m.isString)(r)&&(r=document.getElementById(r)),r.removeChild(e)}},t}(Qi),Zt=it,dr=z(86429),Yt=function(c,t,e){if(e||arguments.length===2)for(var r=0,n=t.length,a;rh&&(i=h,a=l)})}e.originalEvent.deltaY>0?a=Math.max(0,a-1):a=Math.min(t.speedAxisY.length-1,a+1);var o=t.speedAxisY[a]-n;r=Bn(r,[["t",0,o]]),t.speedPoint.setMatrix(r),t.currentSpeed=t.speedAxisY.length-a,t.speedText.attr("text","".concat(t.currentSpeed,".0X")),t.group.emit(Nt,{speed:t.currentSpeed,type:t.currentType})}),this.toggleGroup&&this.toggleGroup.on("toggle-model:click",function(e){var r,n,a=e.target.get("isChecked");a?(t.checkedIcon.hide(),t.checkedText.attr("text",((n=t.controllerCfg)===null||n===void 0?void 0:n.timePointControllerText)||"\u5355\u4E00\u65F6\u95F4"),t.currentType=Pa.RANGE):(t.checkedIcon.show(),t.checkedText.attr("text",((r=t.controllerCfg)===null||r===void 0?void 0:r.timeRangeControllerText)||"\u65F6\u95F4\u8303\u56F4"),t.currentType=Pa.SINGLE),e.target.set("isChecked",!a),t.group.emit(Nt,{type:t.currentType,speed:t.currentSpeed})})},c.prototype.destroy=function(){this.speedGroup.off("speed-rect:click"),this.toggleGroup&&(this.toggleGroup.off("toggle-model:click"),this.toggleGroup.destroy()),this.speedGroup.destroy()},c}(),Bi=Hn,Ln=function(){return Ln=Object.assign||function(c){for(var t,e=1,r=arguments.length;eZ?(Oe.show(),He.show(),Z=at.minX+at.width+10):(Oe.hide(),He.hide()),Oe}),this.controllerBtnGroup=new Bi(Ln({group:this.group,x:this.x,y:this.y+n+25,width:r,height:35},this.controllerCfg)),this.updateStartEnd(0),this.updateUI(),o.move(this.x,this.y),this.bindEvents(),this.currentMode===Pa.SINGLE&&(this.minHandlerShape.hide(),this.foregroundShape.hide(),this.minTextShape.hide())},c.prototype.bindEvents=function(){var t=this,e=this.group.find(function(n){return n.get("name")==="minHandlerShape"});e&&(e.on("minHandlerShape-handler:mousedown",this.onMouseDown(this.minHandlerShape)),e.on("minHandlerShape-handler:touchstart",this.onMouseDown(this.minHandlerShape)));var r=this.group.find(function(n){return n.get("name")==="maxHandlerShape"});r&&(r.on("maxHandlerShape-handler:mousedown",this.onMouseDown(this.maxHandlerShape)),r.on("maxHandlerShape-handler:touchstart",this.onMouseDown(this.maxHandlerShape))),this.foregroundShape.on("mousedown",this.onMouseDown(this.foregroundShape)),this.foregroundShape.on("touchstart",this.onMouseDown(this.foregroundShape)),this.group.on("".concat(Lt,":click"),function(){t.isPlay=!t.isPlay,t.currentHandler=t.maxHandlerShape,t.changePlayStatus()}),this.group.on("".concat(_r,":click"),function(){t.currentHandler=t.maxHandlerShape,t.updateStartEnd(.01),t.updateUI()}),this.group.on("".concat(Yr,":click"),function(){t.currentHandler=t.maxHandlerShape,t.updateStartEnd(-.01),t.updateUI()}),this.group.on(Nt,function(n){var a=n.type,i=n.speed;t.currentSpeed=i,t.currentMode=a,a===Pa.SINGLE?(t.minHandlerShape.hide(),t.foregroundShape.hide(),t.minTextShape.hide()):a===Pa.RANGE&&(t.minHandlerShape.show(),t.foregroundShape.show(),t.minTextShape.show())})},c.prototype.adjustTickIndex=function(t){for(var e=0;e1&&(this.end=1);var e=this.x+this.start*this.width,r=this.x+this.end*this.width;this.foregroundShape.attr("x",e),this.foregroundShape.attr("width",r-e);var n=(0,m.get)(this.handlerStyle,"width",Ho);this.setText(this.minText,this.maxText);var a=this.dodgeText([e,r]),i=a[0],o=a[1];this.minHandlerShape.setX(e-n/2),(0,m.each)(i,function(s,l){return t.minTextShape.attr(l,s)}),this.maxHandlerShape.setX(r-n/2),(0,m.each)(o,function(s,l){return t.maxTextShape.attr(l,s)}),this.currentMode===Pa.RANGE?this.graph.emit(Tt,{value:[this.start,this.end].sort()}):this.currentMode===Pa.SINGLE&&this.graph.emit(Tt,{value:[this.end,this.end]})},c.prototype.dodgeText=function(t){var e,r,n=2,a=(0,m.get)(this.handlerStyle,"width",Ho),i=this.minTextShape,o=this.maxTextShape,s=t[0],l=t[1],h=!1;s>l&&(e=[l,s],s=e[0],l=e[1],r=[o,i],i=r[0],o=r[1],h=!0);var p=i.getBBox(),D=o.getBBox(),I=null,F=null;return this.timeBarType==="trend"?(I=s-p.widththis.x+this.width?{x:l-a/2-n,textAlign:"right"}:{x:l+a/2+n,textAlign:"left"}):this.timeBarType==="simple"&&(I=i.attr("x")>p.width?{x:s,textAlign:"center"}:{x:s,textAlign:"left"},F=o.attr("x")>this.width-D.width?{x:l,textAlign:"right"}:{x:l,textAlign:"center"}),h?[F,I]:[I,F]},c.prototype.startPlay=function(){var t=this;return typeof window!="undefined"?window.requestAnimationFrame(function(){var e=t,r=e.ticks,n=e.width,a=t.currentSpeed,i=n/r.length,o=i/((10-a)*1e3/60),s=t.adjustOffsetRange(o/t.width);t.updateStartEnd(s),t.updateUI(),t.isPlay&&(t.playHandler=t.startPlay())}):void 0},c.prototype.changePlayStatus=function(t){t===void 0&&(t=!0),this.controllerBtnGroup.playButton.update({isPlay:this.isPlay}),this.isPlay?(this.playHandler=this.startPlay(),this.graph.emit(Mt,null)):this.playHandler&&(typeof window!="undefined"&&window.cancelAnimationFrame(this.playHandler),t&&this.graph.emit(sr,null))},c.prototype.destory=function(){this.graph.off(Tt,function(){});var t=this.group,e=t.find(function(n){return n.get("name")==="minHandlerShape"});e&&(e.off("minHandlerShape-handler:mousedown"),e.off("minHandlerShape-handler:touchstart"),e.destroy());var r=t.find(function(n){return n.get("name")==="maxHandlerShape"});r&&(r.off("maxHandlerShape-handler:mousedown"),r.off("maxHandlerShape-handler:touchstart"),r.destroy()),this.foregroundShape.off("mousedown"),this.foregroundShape.off("touchstart"),this.foregroundShape.destroy(),t.off("".concat(Lt,":click")),t.off("".concat(_r,":click")),t.off("".concat(Yr,":click")),t.off(Nt),t.destroy(),this.trendComponent&&this.trendComponent.destory()},c}(),aa=nn,$e={opacity:.5,fill:"#000"},Ge={opacity:.5,fill:"#000",r:5},mt={fill:"#fff",fontSize:12},Gt=function(){function c(t){var e=t.x,r=e===void 0?0:e,n=t.y,a=n===void 0?0:n,i=t.container,o=t.text,s=t.padding,l=s===void 0?[4,4,4,4]:s,h=t.className,p=h===void 0?"g6-component-timebar-tooltip":h,D=t.backgroundColor,I=D===void 0?"#000":D,F=t.textColor,Z=F===void 0?"#fff":F,ee=t.opacity,se=ee===void 0?.8:ee,oe=t.fontSize,ce=oe===void 0?12:oe;this.container=i,this.className=p,this.backgroundColor=I,this.textColor=Z,this.x=r,this.y=a,this.text=o,this.padding=l,this.opacity=se,this.fontSize=ce,this.render()}return c.prototype.render=function(){var t=this,e=t.className,r=t.x,n=t.y,a=t.backgroundColor,i=t.textColor,o=t.text,s=t.padding,l=t.opacity,h=t.fontSize,p=t.container,D=(0,Aa.Z)("
        '));(0,m.isString)(p)&&(p=document.getElementById(p)),p.appendChild(D),t.parentHeight=p.offsetHeight,t.parentWidth=p.offsetWidth,(0,Kn.Z)(D,{visibility:"hidden",top:0,left:0});var I=(0,Aa.Z)(` -
        "));I.innerHTML=o,D.appendChild(I),t.backgroundDOM=I;var F=(0,Aa.Z)("
        "));D.appendChild(F),t.arrowDOM=F,t.container=D},c.prototype.show=function(t){var e=this,r=t.text,n=t.x,a=t.y,i=t.clientX,o=t.clientY;e.backgroundDOM.innerHTML=r;var s=e.backgroundDOM.offsetWidth,l=e.backgroundDOM.offsetHeight,h=e.arrowDOM.offsetWidth,p=e.arrowDOM.offsetHeight;(0,Kn.Z)(e.container,{top:"".concat(-l-p,"px"),left:"".concat(n,"px"),visibility:"visible"}),(0,Kn.Z)(e.backgroundDOM,{marginLeft:"".concat(-s/2,"px")}),(0,Kn.Z)(e.arrowDOM,{marginLeft:"".concat(-h/2,"px"),top:"".concat(l,"px")});var D=n-s/2,I=n+s/2;D<0?(0,Kn.Z)(e.backgroundDOM,{marginLeft:"".concat(-s/2-D,"px")}):I>e.parentWidth&&(0,Kn.Z)(e.backgroundDOM,{marginLeft:"".concat(-s/2-I+e.parentWidth+12,"px")})},c.prototype.hide=function(){(0,Kn.Z)(this.container,{top:0,left:0,visibility:"hidden"})},c}(),Ut=Gt,wt=function(){return wt=Object.assign||function(c){for(var t,e=1,r=arguments.length;e=He&&yr<=at,lr=fr?h:p,Kt=Re.addShape("rect",{attrs:wt({x:a+yr*(we+oe),y:a,width:we,height:se},lr),draggable:!0,name:"tick-rect-".concat(yr)}),jr=Re.addShape("rect",{attrs:{x:a+yr*we+oe*(2*yr-1)/2,y:a,width:yr===0||yr===ce-1?we+oe/2:we+oe,height:se,fill:"#fff",opacity:0},draggable:!0,name:"pick-rect-".concat(yr)});jr.toFront();var Xr=Kt.getBBox(),er=(Xr.minX+Xr.maxX)/2;Oe.push({rect:Kt,pickRect:jr,value:Ft.date,x:er,y:Xr.minY});var mr;if(l?(mr=l(Ft),!(0,m.isString)(mr)&&mr&&(mr=Ft.date)):yr%Math.round(ce/10)==0&&(mr=Ft.date),mr){Pe.push(mr);var kr=Xr.maxY+a*2;Re.addShape("line",{attrs:{stroke:"#BFBFBF",x1:er,y1:kr,x2:er,y2:kr+Z},name:"tick-line"});var Fr=kr+Z+a,Jr=Re.addShape("text",{attrs:wt({fill:"#8c8c8c",stroke:"#fff",lineWidth:1,x:er,y:Fr,textAlign:"center",text:mr,textBaseline:"top",fontSize:10,fontFamily:t.fontFamily||"Arial, sans-serif"},D),capture:!1,name:"tick-label"}),fn=Jr.getBBox();if(fn.maxX>r?Jr.attr("textAlign","right"):fn.minX<0&&Jr.attr("textAlign","left"),(0,m.isNumber)(qe)&&Pe.length!==10){var Vn=xt([1,0,0,0,1,0,0,0,1],[["t",-er,-Fr],["r",qe],["t",er-5,Fr+2]]);Jr.attr({textAlign:"left",matrix:Vn})}Pe.length===1?Jr.attr({textAlign:"left"}):Pe.length===10&&Jr.attr({textAlign:"right"})}}),this.tickRects=Oe;var yt=this.group;this.currentSpeed=1,this.controllerBtnGroup=new Bi(wt({group:yt,x:this.x,y:this.y+n+5,width:r,height:40,hideTimeTypeController:!0,speed:this.currentSpeed,fontFamily:this.fontFamily||"Arial, sans-serif"},this.controllerCfg))},c.prototype.initEvent=function(){var t=this,e=this.sliceGroup;e.on("click",function(h){var p=h.target;if(!(p.get("type")!=="rect"||!p.get("name"))){var D=parseInt(p.get("name").split("-")[2],10);if(!isNaN(D)){var I=t.tickRects,F=t.unselectedTickStyle;I.forEach(function(oe){oe.rect.attr(F)});var Z=t.selectedTickStyle;I[D].rect.attr(Z),t.startTickRectId=D,t.endTickRectId=D;var ee=I.length,se=D/ee;t.graph.emit(Tt,{value:[se,se]})}}}),e.on("dragstart",function(h){var p=t.tickRects,D=t.unselectedTickStyle;p.forEach(function(oe){oe.rect.attr(D)});var I=h.target,F=parseInt(I.get("name").split("-")[2],10),Z=t.selectedTickStyle;p[F].rect.attr(Z),t.startTickRectId=F;var ee=p.length,se=F/ee;t.graph.emit(Tt,{value:[se,se]}),t.dragging=!0}),e.on("dragover",function(h){if(!!t.dragging&&h.target.get("type")==="rect"){for(var p=parseInt(h.target.get("name").split("-")[2],10),D=t.startTickRectId,I=t.tickRects,F=t.selectedTickStyle,Z=t.unselectedTickStyle,ee=0;ee=D&&ee<=p?F:Z;I[ee].rect.attr(se)}var oe=I.length;t.endTickRectId=p;var ce=D/oe,we=p/oe;t.graph.emit(Tt,{value:[ce,we]})}}),e.on("drop",function(h){if(!!t.dragging&&(t.dragging=!1,h.target.get("type")==="rect")){var p=t.startTickRectId,D=parseInt(h.target.get("name").split("-")[2],10);if(!(D0?e.endTickRectId++:(r[e.endTickRectId].rect.attr(a),e.endTickRectId--),o!==e.startTickRectId)e.endTickRectId
        ")),(0,Kn.Z)(l,{position:"relative"})),s.appendChild(l),this.set("timeBarContainer",l);var h,p=e.get("renderer");p==="SVG"?h=new Ps.Canvas({container:l,width:n,height:a}):h=new so.Canvas({container:l,width:n,height:a}),this.get("containerCSS")&&(0,Kn.Z)(l,this.get("containerCSS")),this.set("canvas",h)},t.prototype.init=function(){this.initContainer();var e=this.get("canvas"),r=e.addGroup({name:"timebar-group"});this.set("timeBarGroup",r),this.renderTrend(),this.initEvent();var n=typeof window!="undefined"&&window.getComputedStyle(document.body,null).getPropertyValue("font-family")||"Arial, sans-serif";this.set("fontFamily",n)},t.prototype.play=function(){this.togglePlay(!0)},t.prototype.pause=function(){this.togglePlay(!1)},t.prototype.togglePlay=function(e){var r=this.get("timebar");!r||(r.isPlay=!!e,r.changePlayStatus())},t.prototype.renderTrend=function(){var e=this,r=this._cfgs,n=r.width,a=r.x,i=r.y,o=r.padding,s=r.type,l=r.trend,h=r.slider,p=r.controllerCfg,D=r.textStyle,I=r.tick,F=r.backgroundStyle,Z=r.foregroundStyle,ee=l.data,se=vr(l,["data"]),oe=n-2*o,ce=s==="trend"?ur:gr,we=this.get("graph"),Re=this.get("timeBarGroup"),Oe=this.get("canvas"),Pe=null;if(s==="trend"||s==="simple"){var He=this.get("getValue");Pe=new aa(zt(zt({graph:we,canvas:Oe,group:Re,type:s,x:a+o,y:s==="trend"?i+o:i+o+15,width:oe,height:ce,padding:o,backgroundStyle:F,foregroundStyle:Z,trendCfg:zt(zt({},se),{data:ee.map(function(qe){return(He==null?void 0:He(qe))||qe.value})})},h),{tick:{ticks:ee,tickLabelFormatter:I.tickLabelFormatter,tickLabelStyle:I.tickLabelStyle,tickLineStyle:I.tickLineStyle},handlerStyle:zt(zt({},h.handlerStyle),{height:h.height||ce}),controllerCfg:p,textStyle:D}))}else s==="tick"&&(Pe=new Ve(zt({graph:we,canvas:Oe,group:Re,x:a+o,y:i+o,width:n,height:42,padding:2,controllerCfg:p},I)));var at=function qe(){var yt=e.get("timebar");yt.draggingHandler=!1,yt.isPlay&&(yt.isPlay=!1,yt.currentHandler=yt.maxHandlerShape,yt.changePlayStatus()),document.removeEventListener("mouseup",qe)};Oe.on("mousedown",function(qe){(qe.target.get("name")==="maxHandlerShape-handler"||qe.target.get("name")==="minHandlerShape-handler"||qe.target===Pe.foregroundShape)&&document.addEventListener("mouseup",at)}),this.set("timebar",Pe)},t.prototype.filterData=function(e){var r,n=e.value;if(!n){n=[];var a=this._cfgs.type;!a||a==="trend"||a==="simple"?(n[0]=this._cfgs.slider.start,n[1]=this._cfgs.slider.end):a==="tick"&&(n[0]=this._cfgs.tick.start,n[1]=this._cfgs.tick.end)}var i=null,o=this._cfgs.type;if(o==="trend"||o==="simple"?i=this._cfgs.trend.data:o==="tick"&&(i=this._cfgs.tick.data),!i||i.length===0){console.warn("\u8BF7\u914D\u7F6E TimeBar \u7EC4\u4EF6\u7684\u6570\u636E");return}var s=this.get("rangeChange"),l=this.get("graph"),h=Math.round(i.length*n[0]),p=Math.round(i.length*n[1]);p=p>=i.length?i.length-1:p,h=h>=i.length?i.length-1:h;var D=(r=this._cfgs.tick)===null||r===void 0?void 0:r.tickLabelFormatter,I=D?D(i[h]):i[h].date,F=D?D(i[p]):i[p].date;if(o!=="tick"){var Z=this.get("timebar");Z.setText(I,F)}if(s)s(l,I,F);else{(!this.cacheGraphData||this.cacheGraphData.nodes&&this.cacheGraphData.nodes.length===0)&&(this.cacheGraphData=l.get("data"));var ee=this.get("filterItemTypes"),se=this.get("changeData"),oe=this.get("getDate"),ce=this.get("shouldIgnore"),we=i[h].date,Re=i[p].date;if(se||se===void 0){var Oe=this.cacheGraphData.nodes,Pe=this.cacheGraphData.edges,He={},at={};l.getNodes().forEach(function(qe){return He[qe.getID()]=!0}),l.getEdges().forEach(function(qe){return at[qe.getID()]=!0}),ee.includes("node")&&(Oe==null||Oe.forEach(function(qe){var yt=+((oe==null?void 0:oe(qe))||qe.date),Ft=yt>=we&&yt<=Re||(ce==null?void 0:ce("node",qe,{min:we,max:Re})),yr=He[qe.id];yr&&!Ft?(l.removeItem(qe.id),He[qe.id]=!1):!yr&&Ft&&(l.addItem("node",qe),He[qe.id]=!0)}),Pe==null||Pe.forEach(function(qe){var yt=He[qe.source]&&He[qe.target]||(ce==null?void 0:ce("edge",qe,{min:we,max:Re})),Ft=!!l.findById(qe.id);Ft&&!yt?(l.removeItem(qe.id),at[qe.id]=!1):!Ft&&yt?(l.addItem("edge",qe),at[qe.id]=!0):Ft||(at[qe.id]=!1)})),(this.get("filterEdge")||ee.includes("edge"))&&(Pe==null||Pe.filter(function(qe){var yt=+((oe==null?void 0:oe(qe))||qe.date),Ft=yt>=we&&yt<=Re||(ce==null?void 0:ce("edge",qe,{min:we,max:Re})),yr=He[qe.source]&&He[qe.target],fr=Ft&&yr,lr=at[qe.id];lr&&!fr?(at[qe.id]=!1,l.removeItem(qe.id)):!lr&&fr&&(at[qe.id]=!0,l.addItem("edge",qe))}))}else ee.includes("node")&&l.getNodes().forEach(function(qe){var yt=qe.getModel();if(!(ce==null?void 0:ce("node",yt,{min:we,max:Re}))){var Ft=+((oe==null?void 0:oe(yt))||yt.date);FtRe?l.hideItem(qe):l.showItem(qe)}}),(this.get("filterEdge")||ee.includes("edge"))&&l.getEdges().forEach(function(qe){var yt=qe.getModel();if(!(ce==null?void 0:ce("edge",yt,{min:i[h].date,max:i[p].date}))){var Ft=+((oe==null?void 0:oe(yt))||yt.date);if(Fti[p].date)l.hideItem(qe);else{var yr=qe.getSource().isVisible(),fr=qe.getTarget().isVisible();yr&&fr&&l.showItem(qe)}}})}},t.prototype.initEvent=function(){var e=this.get("graph");e.on("afterchangedata",this.changeData),e.on("afterrender",this.afterrenderListener),e.on(Tt,this.valueChangeListener)},t.prototype.destroy=function(){var e=this.get("graph");e.off("afterchangedata",this.changeData),e.off("afterrender",this.afterrenderListener),e.off(Tt,this.valueChangeListener);var r=this.get("timebar");r&&r.destory&&r.destory(),c.prototype.destroy.call(this);var n=this.get("timeBarContainer");if(n){var a=this.get("container");a||(a=this.get("graph").get("container")),(0,m.isString)(a)&&(a=document.getElementById(a)),a.removeChild(n)}},t}(Qi),yn=Lr,Zn=function(){var c=function(e,r){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},c(e,r)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");c(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),un=ki.applyMatrix;function Dn(c,t){var e,r;if(c.naturalWidth)e=c.naturalWidth,r=c.naturalHeight;else{var n=new Image;n.src=c.src,n.onload=function(){t&&t(n.width,n.height)}}return[e,r]}var jn=function(c){Zn(t,c);function t(e){return c.call(this,e)||this}return t.prototype.getDefaultCfgs=function(){return{container:null,className:"g6-minimap",viewportClassName:"g6-minimap-viewport",width:200,delegateStyle:{fill:"#40a9ff",stroke:"#096dd9"},refresh:!0}},t.prototype.getEvents=function(){return{beforepaint:"updateViewport",beforeanimate:"disableRefresh",afteranimate:"enableRefresh",viewportchange:"disableOneRefresh"}},t.prototype.disableRefresh=function(){this.set("refresh",!1)},t.prototype.enableRefresh=function(){this.set("refresh",!0),this.updateCanvas()},t.prototype.disableOneRefresh=function(){this.set("viewportChange",!0)},t.prototype.initViewport=function(){var e=this,r=this._cfgs,n=r.graph;if(!this.destroyed){var a=this.get("container");(0,m.isString)(a)&&(a=document.getElementById(a));var i=(0,Aa.Z)("
        oe||I>ce||(Z=n.getZoom(),F=e.get("ratio"),l=!0,o=ee.clientX,s=ee.clientY)}},!1),a.addEventListener("mousemove",function(ee){if(!(!l||(0,m.isNil)(ee.clientX)||(0,m.isNil)(ee.clientY))){var se=e.get("width"),oe=e.get("height"),ce=i.style;h=parseInt(ce.left,10),p=parseInt(ce.top,10),D=parseInt(ce.width,10),I=parseInt(ce.height,10);var we=o-ee.clientX,Re=s-ee.clientY;h-we<0?we=h:h-we+D>=se&&(we=0),p-Re<0?Re=p:p-Re+I>=oe&&(Re=0),h-=we,p-=Re,(0,Kn.Z)(i,{left:"".concat(h,"px"),top:"".concat(p,"px")}),n.translate(we*Z/F,Re*Z/F),o=ee.clientX,s=ee.clientY}},!1),a.addEventListener("mouseleave",function(){l=!1,r.refresh=!0},!1),a.addEventListener("mouseup",function(){l=!1,r.refresh=!0},!1),this.set("viewport",i),a.appendChild(i)}},t.prototype.updateViewport=function(){if(!this.destroyed){var e=this.get("ratio"),r=this.get("width"),n=this.get("height"),a=this.get("graph"),i=a.get("width"),o=a.get("height"),s=i/o,l=a.getGroup(),h=l.getCanvasBBox(),p=[(h.minX+h.maxX)/2,(h.minY+h.maxY)/2],D=[h.maxX-h.minX,h.maxY-h.minY],I={centerX:p[0],centerY:p[1],width:0,height:0,minX:0,minY:0};h[0]/h[1]>s?(I.width=D[0],I.height=I.width/s):(I.height=D[1],I.width=I.height*s),I.minX=p[0]-I.width/2,I.minY=p[1]-I.height/2;var F=l.getMatrix();F||(F=[1,0,0,0,1,0,0,0,1]);var Z=mi.invert([1,0,0,0,1,0,0,0,1],F),ee=un({x:I.minX,y:I.minY},Z),se=a.getCanvasByPoint(ee.x,ee.y),oe=this.get("viewport");oe||this.initViewport();var ce=i/I.width,we=ce*r,Re=ce*n,Oe=r*-se.x/I.width,Pe=n*-se.y/I.height,He=Oe+we,at=Pe+Re;Oe<0&&(we+=Oe,Oe=0),He>r&&(we=we-(He-r)),Pe<0&&(Re+=Pe,Pe=0),at>n&&(Re=Re-(at-n)),this.set("ratio",e);var qe="".concat(Oe,"px"),yt="".concat(Pe,"px");(0,Kn.Z)(oe,{left:qe,top:yt,width:"".concat(we,"px"),height:"".concat(Re,"px")})}},t.prototype.init=function(){this.initContainer()},t.prototype.initContainer=function(){var e=this,r=e.get("graph"),n=r.get("width"),a=r.get("height"),i=a/n,o=e.get("className"),s=e.get("container"),l=e.get("width"),h=e.get("height");!l&&!h&&(l=200),l?(h=i*l,e.set("height",h)):(l=1/i*h,e.set("width",l));var p=(0,Aa.Z)("
        "));(0,m.isString)(s)&&(s=document.getElementById(s)),s?s.appendChild(p):r.get("container").appendChild(p),e.set("container",p);var D=(0,Aa.Z)('
        ');p.appendChild(D);var I=(0,Aa.Z)('');D.appendChild(I),e.set("containerDOM",D),e.set("containerSpan",I);var F=(0,Aa.Z)(''));e.set("imgDOM",F),e.updateImgSize(),I.appendChild(F),e.updateCanvas()},t.prototype.updateImgSize=function(){var e=this,r=e.get("imgDOM"),n=e.get("width"),a=e.get("height");r.onload=function(){var i=Dn(r);i[0]>i[1]?r.width=n:r.height=a}},t.prototype.updateCanvas=function(){var e=this.get("refresh");if(!!e){var r=this.get("graph");if(!r.get("destroyed")){this.get("viewportChange")&&(this.set("viewportChange",!1),this.updateViewport());var n=this.get("width"),a=r.get("canvas").getCanvasBBox(),i=a.width,o=n/i;this.set("ratio",o),this.updateViewport()}}},t.prototype.getViewport=function(){return this.get("viewport")},t.prototype.getContainer=function(){return this.get("container")},t.prototype.updateGraphImg=function(e){var r=this,n=r.get("imgDOM");n.remove(),r.set("graphImg",e);var a=(0,Aa.Z)(''));r.set("imgDOM",a),a.src=e,r.updateImgSize();var i=r.get("containerSpan");i.appendChild(a),r.updateCanvas()},t.prototype.destroy=function(){var e=this.get("container");e.parentNode.removeChild(e)},t}(Qi),Sa=jn,di=function(){var c=function(e,r){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},c(e,r)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");c(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),qi=function(){return qi=Object.assign||function(c){for(var t,e=1,r=arguments.length;e(l||n.get("height"))&&a>1||p<(h||n.get("height")*.05)&&a<1)&&(a=1),p*=a,r.set("r",p),r.filter(e)}},t.prototype.filter=function(e){var r=this,n=r.get("graph"),a=n.getNodes(),i={},o=r.get("r"),s=r.get("type"),l={x:e.x,y:e.y};r.updateDelegate(l,o);var h=r.get("shouldShow"),p=r.get("vShapes");p&&p.forEach(function(se){se.remove(),se.destroy()}),p=[],a.forEach(function(se){var oe=se.getModel(),ce=oe.x,we=oe.y;Cl({x:ce,y:we},l)
        `);o.appendChild(s),this.set("container",s);var l=this.render();(0,Kn.Z)(s,this.getContainerPos(l)),this.bindEvents()},t.prototype.getContainerPos=function(e){e===void 0&&(e=[0,0]);var r=this,n=r.get("graph"),a=this.get("offsetX"),i=this.get("offsetY"),o=this.get("margin"),s=this.get("position").split("-"),l={top:0,right:1,bottom:2,left:3},h=0,p=0,D={left:(n.getWidth()-e[0])/2+h,top:(n.getHeight()-e[1])/2+p};return s.forEach(function(I){var F=o[l[I]],Z=I;switch(I){case"top":F+=p;break;case"left":F+=h;break;case"bottom":F=n.getHeight()-e[1]-F+p,Z="top";break;default:F=n.getWidth()-e[0]-F+h,Z="left";break}D[Z]=F}),D.top+=i+n.getContainer().offsetTop,D.left+=a+n.getContainer().offsetLeft,Object.keys(D).forEach(function(I){D[I]="".concat(D[I],"px")}),D},t.prototype.bindEvents=function(){var e=this,r=e.get("filter");if(!(!r||!r.enable)){var n=r.trigger||"click";xh.includes(n)||(console.warn("Trigger for legend filterling must be 'click' or 'mouseenter', 'click' will take effect by default."),n="click");var a=e.get("legendCanvas");n==="mouseenter"?(a.on("node-container:mouseenter",function(i){return e.filterData(i)}),a.on("node-container:mouseleave",function(i){e.clearFilter(),e.clearActiveLegend()})):(a.on("node-container:click",function(i){return e.filterData(i)}),a.on("click",function(i){i.target&&i.target.isCanvas&&i.target.isCanvas()&&(e.clearFilter(),e.clearActiveLegend())}))}},t.prototype.changeData=function(e){this.set("data",e);var r=this.render();(0,Kn.Z)(this.get("container"),this.getContainerPos(r))},t.prototype.activateLegend=function(e){var r=this.get("filter"),n=r==null?void 0:r.multiple;n||this.clearActiveLegend();var a=e.get("parent");a.get("active")?(a.set("active",!1),this.findLegendItemsByState("active").length&&a.set("inactive",!0)):(a.set("inactive",!1),a.set("active",!0)),this.findLegendItemsByState("active").length?this.findLegendItemsByState("active","all",!1).forEach(function(p){p.set("inactive",!0)}):this.clearActiveLegend();var i=(r==null?void 0:r.legendStateStyles)||{},o=(i==null?void 0:i.inactive)||{opacity:.5,"text-shape":{opacity:.5}},s=o["text-shape"]||{};this.findLegendItemsByState("inactive").forEach(function(p){var D=p.get("children"),I=D[0],F=D[1];I.attr(wi(wi({},I.get("oriAttrs")),o)),F.attr(wi(wi({},F.get("oriAttrs")),s))});var l=(i==null?void 0:i.active)||{stroke:"#000",lineWidth:2,"text-shape":{fontWeight:"bold"}},h=l["text-shape"]||{};this.findLegendItemsByState("active").forEach(function(p){var D=p.get("children"),I=D[0],F=D[1];I.attr(wi(wi({},I.get("oriAttrs")),l)),F.attr(wi(wi({},F.get("oriAttrs")),h))})},t.prototype.findLegendItemsByState=function(e,r,n){r===void 0&&(r="all"),n===void 0&&(n=!0);var a=this.get("legendCanvas").find(function(s){return s.get("name")==="root"}),i=a.find(function(s){return s.get("name")==="node-group"}),o=a.find(function(s){return s.get("name")==="edge-group"});return r==="node"?i.get("children").filter(function(s){return!!s.get(e)===n}):r==="edge"?o.get("children").filter(function(s){return!!s.get(e)===n}):i.get("children").filter(function(s){return!!s.get(e)===n}).concat(o.get("children").filter(function(s){return!!s.get(e)===n}))},t.prototype.clearActiveLegend=function(){var e=this.get("legendCanvas"),r=e.find(function(a){return a.get("name")==="root"}),n=[r.find(function(a){return a.get("name")==="node-group"}),r.find(function(a){return a.get("name")==="edge-group"})];n.forEach(function(a){a.get("children").forEach(function(i){i.set("active",!1),i.set("inactive",!1);var o=i.get("children"),s=o[0],l=o[1];s.attr(s.get("oriAttrs")),l.attr(l.get("oriAttrs"))})})},t.prototype.filterData=function(e){var r=this.get("filter"),n=r==null?void 0:r.filterFunctions;if(!(!r||!n)){var a=this.get("legendCanvas"),i=this.get("graph"),o=r.graphActiveState||"active",s=r.graphInactiveState||"inactive",l=r.multiple;this.clearFilter(),l||this.clearActiveLegend(),this.activateLegend(e.target);var h=a.find(function(se){return se.get("name")==="root"}),p=h.find(function(se){return se.get("name")==="node-group"}),D=h.find(function(se){return se.get("name")==="edge-group"}),I=p.get("children").filter(function(se){return se.get("active")}),F=D.get("children").filter(function(se){return se.get("active")}),Z=0,ee=["getNodes","getEdges"];ee.forEach(function(se){i[se]().forEach(function(oe){var ce=!1,we=se==="getNodes"?I:F;we.forEach(function(Re){var Oe=n[Re.get("id")];ce=ce||Oe(oe.getModel())}),ce?(i.setItemState(oe,s,!1),i.setItemState(oe,o,!0),Z++):(i.setItemState(oe,o,!1),i.setItemState(oe,s,!0))})}),Z||ee.forEach(function(se){i[se]().forEach(function(oe){i.clearItemStates(oe,[s])})})}},t.prototype.clearFilter=function(){var e=this.get("graph"),r=this.get("filter");if(!!r){var n=r.graphActiveState||"active",a=r.graphInactiveState||"inactive";e.getNodes().forEach(function(i){e.clearItemStates(i,[n,a])}),e.getEdges().forEach(function(i){e.clearItemStates(i,[n,a])})}},t.prototype.render=function(){var e=this;this.processData();var r=this.get("legendCanvas");r?r.clear():r=new so.Canvas({container:this.get("container"),width:200,height:200});var n=r.addGroup({name:"root"}),a=n.addGroup({name:"node-group"}),i=n.addGroup({name:"edge-group"});this.set("legendCanvas",r);var o=this.get("itemsData"),s=["nodes","edges"],l=[a,i];s.forEach(function(Kt,jr){o[Kt].forEach(function(Xr){var er,mr=l[jr].addGroup({id:Xr.id,name:"node-container"}),kr,Fr=Xr.type,Jr=e.getShapeSize(Xr),fn=Jr.width,Vn=Jr.height,Tn=Jr.r,wa=e.getStyle(Kt.substr(0,4),Xr);switch(Xr.type){case"circle":kr={r:Tn,x:0,y:0};break;case"rect":kr={width:fn,height:Vn,x:-fn/2,y:-Vn/2};break;case"ellipse":kr={rx:fn,ry:Vn,x:0,y:0},Fr="ellipse";break;case"line":kr={x1:-fn/2,y1:0,x2:fn/2,y2:0},Fr="line";break;case"quadratic":kr={path:[["M",-fn/2,0],["Q",0,fn/2,fn/2,0]]},Fr="path";break;case"cubic":kr={path:[["M",-fn/2,0],["C",-fn/6,fn/2,fn/6,-fn/2,fn/2,0]]},Fr="path";break;case"diamond":kr={path:[["M",0,-Vn],["L",fn,0],["L",0,Vn],["L",-fn,0],["Z"]]},Fr="path";break;case"triangle":kr={path:[["M",-fn,Vn],["L",0,-Vn],["L",fn,Vn],["Z"]]},Fr="path";break;case"star":kr={path:ki.getStarPath(Tn*3,Tn*1.2)},Fr="path";break;default:kr={r:Tn,x:0,y:0};break}var ua=mr.addShape(Fr,{attrs:wi(wi({},kr),wa),name:"".concat(Xr.type,"-node-keyShape"),oriAttrs:wi({opacity:1},wa)});if(Xr.label){var fa=ua.getBBox(),Ma=((er=Xr.labelCfg)===null||er===void 0?void 0:er.style)||{},ja=wi({textAlign:"begin",fontSize:12,textBaseline:"middle",fill:"#000",opacity:1,fontWeight:"normal"},Ma);mr.addShape("text",{attrs:wi({x:fa.maxX+4,y:0,text:Xr.label},ja),className:"legend-label",name:"".concat(Xr.type,"-node-text"),oriAttrs:ja})}})});var h=this.get("padding"),p,D=n.find(function(Kt){return Kt.get("name")==="title-container"}),I={height:0,maxY:0,width:0};if(this.get("title")){D||(D=n.addGroup({name:"title-container"}));var F={fontSize:20,fontFamily:"Arial",fontWeight:300,textBaseline:"top",textAlign:"center",fill:"#000",x:0,y:h[0]},Z=this.get("titleConfig")||{},ee=Object.assign(F,Z.style||{});p=D.addShape("text",{attrs:wi({text:this.get("title")},ee)}),I=D.getCanvasBBox(),D.setMatrix([1,0,0,0,1,0,Z.offsetX,Z.offsetY,1])}this.layoutItems();var se=n.getCanvasBBox(),oe=a.getCanvasBBox(),ce=oe.minX<0?Math.abs(oe.minX)+h[3]:h[3],we=I.maxYp.max&&(p.max=o[0]),yt>D&&(D=yt),we.setMatrix([1,0,0,0,1,0,Ft,yr,1])});var I=p.max-p.min,F={min:0,max:-Infinity},Z=l.getCanvasBBox();o[0]=0,o[1]=a==="vertical"?Z.maxX+r:Z.maxY+n,h.get("children").forEach(function(we,Re){Re===0&&(F.min=o[0]);var Oe=we.get("children")[0],Pe=we.getCanvasBBox(),He=Oe.getBBox(),at=He.width,qe=He.height,yt=0,Ft=0;a==="vertical"?(yt=o[1],Ft=o[0],o[0]=Ft+Pe.height+n,we.setMatrix([1,0,0,0,1,0,0,Ft+qe/2,1])):(yt=o[0],Ft=o[1],o[0]=yt+Pe.width+r,we.setMatrix([1,0,0,0,1,0,yt+at/2,0,1])),o[0]>F.max&&(F.max=o[0])});var ee=F.max-F.min;if(i&&i!==""&&i!=="left"){var se=I-ee,oe=i==="center"?Math.abs(se)/2:Math.abs(se),ce=se<0?l:h;ce.get("children").forEach(function(we){var Re=we.getMatrix()||[1,0,0,0,1,0,0,0,1];a==="vertical"?Re[7]+=oe:Re[6]+=oe,we.setMatrix(Re)})}},t.prototype.processData=function(){var e=this.get("data"),r={nodes:[],edges:[]};e.nodes&&(e.nodes.sort(function(n,a){return n.order-a.order}),e.nodes.forEach(function(n){var a,i,o,s,l,h=n.size||[((a=n.style)===null||a===void 0?void 0:a.width)||((i=n.style)===null||i===void 0?void 0:i.r)||8,((o=n.style)===null||o===void 0?void 0:o.height)||((s=n.style)===null||s===void 0?void 0:s.r)||8],p=((l=n.labelCfg)===null||l===void 0?void 0:l.style)||{};r.nodes.push({id:n.id||(0,m.uniqueId)(),type:n.type||"circle",style:wi({},n.style),order:n.order,label:n.label,itemType:"node",size:h,labelCfg:{position:"right",style:wi({fontFamily:"Arial"},p)}})})),e.edges&&(e.edges.sort(function(n,a){return n.order-a.order}),e.edges.forEach(function(n){var a,i,o=n.type||"line";n.type==="cubic-horizontal"&&(o="cubic");var s=((a=n.labelCfg)===null||a===void 0?void 0:a.style)||{},l=n.size||[((i=n.style)===null||i===void 0?void 0:i.width)||8,1];r.edges.push({id:n.id||(0,m.uniqueId)(),type:o,size:l,style:wi({lineWidth:(0,m.isArray)(l)?l[1]:1},n.style),order:n.order,label:n.label,itemType:"edge",labelCfg:{position:"right",style:wi({fontFamily:"Arial"},s)}})})),this.set("itemsData",r)},t.prototype.getContainer=function(){return this.get("container")},t.prototype.formatArray=function(e){var r=this.get(e);if((0,m.isNumber)(r))this.set(e,[r,r,r,r]);else if((0,m.isArray)(r))switch(r.length){case 0:this.set(e,[0,0,0,0]);break;case 1:this.set(e,[r[0],r[0],r[0],r[0]]);break;case 2:this.set(e,[r[0],r[1],r[0],r[1]]);break;case 3:this.set(e,[r[0],r[1],r[2],r[1]]);break;default:break}return this.get(e)},t.prototype.getShapeSize=function(e){var r,n,a;return e.size&&((0,m.isArray)(e.size)?(r=e.size[0],n=e.size[1]||e.size[0],a=e.size[0]/2):(0,m.isNumber)(e.size)&&(r=e.size,n=e.size,a=e.size/2)),e.style&&(e.style.width&&(r=e.style.width),e.style.height&&(n=e.style.height),e.style.r&&(a=e.style.r)),a||(a=5),r||(r=a),n||(n=a),{width:r,height:n,r:a}},t.prototype.getStyle=function(e,r){var n=e==="node"?{fill:"#ccc",lineWidth:0}:{stroke:"#000",lineWidth:1};return wi(wi({},n),r.style||{})},t.prototype.destroy=function(){var e=this.get("legendCanvas");e==null||e.destroy();var r=this.get("graph"),n=r.get("container"),a=this.get("container");n.removeChild(a)},t}(Qi),Sh=wh,_h=function(){var c=function(e,r){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},c(e,r)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");c(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),xs=function(){return xs=Object.assign||function(c){for(var t,e=1,r=arguments.length;e+

        ":"

        -

        ",D=r?"":"

        ".concat(s,"

        "),I="

        x

        ",F=r?"".concat(h,"px"):"".concat(h,"px ").concat(h,"px 0 0");return'
        -
        -

        `).concat(i,`

        - `).concat(p,` - `).concat(I,` -
        - `).concat(D,` -
        `)}},t.prototype.init=function(){var e=this;if(!e.destroyed){var r=e.get("graph"),n=r.getContainer(),a=e.get("container"),i=this.get("containerCfg");i?(a=this.createContainer(),n.appendChild(a)):a=n,this.set("container",a);var o=n.getBoundingClientRect(),s=new so.Canvas({container:n,width:o.right-o.left,height:o.bottom-o.top});(0,Kn.Z)(s.get("el"),{position:"absolute",top:0,left:0,pointerEvents:"none"}),window.addEventListener("resize",(0,m.debounce)(function(){return e.resizeCanvas(e)},100));var l=s.addGroup({id:"annotation-link-group"});e.set("linkGroup",l),e.set("canvas",s),e.get("getTitle")||e.set("getTitle",function(p){var D,I=((D=p==null?void 0:p.getModel)===null||D===void 0?void 0:D.call(p))||{},F=I.label,Z=I.id;return F||Z||"-"}),e.get("getContent")||e.set("getContent",function(p){var D,I;if(!p)return"-";var F=((D=p.getModel)===null||D===void 0?void 0:D.call(p))||{},Z=F.label,ee=F.id,se=(I=p.getType)===null||I===void 0?void 0:I.call(p),oe=se?"".concat(se,": "):"";return"".concat(oe).concat(Z||ee||"")});var h=e.get("defaultData");h&&this.readData(h)}},t.prototype.createContainer=function(){var e=this;if(!this.destroyed){var r=this.get("containerCfg"),n=this.get("graph"),a=n.getContainer(),i=a.getBoundingClientRect(),o=i.left,s=i.right,l=i.top,h=i.bottom,p=h-l,D=s-o,I=r.position,F=I===void 0?"top":I,Z=r.offsetX,ee=Z===void 0?0:Z,se=r.offsetY,oe=se===void 0?0:se,ce=vd(r,["position","offsetX","offsetY"]),we=r.height,Re=we===void 0?"fit-content":we,Oe=r.width,Pe=Oe===void 0?n.getWidth():Oe;Re==="100%"&&(Re=p),Pe==="100%"&&(Pe=D);var He="unset",at="unset",qe={};switch(F){case"right":He="".concat(p,"px"),qe={top:0,right:0},qe.right+=o+ee,qe.top+=l+oe;break;case"bottom":at="".concat(D,"px"),qe={bottom:0,left:0},qe.left+=o+ee,qe.bottom+=l+oe;break;case"top":at="".concat(D,"px");case"left":He="".concat(p,"px");default:qe={top:0,left:0},qe.left+=o+ee,qe.top+=l+oe;break}Object.keys(qe).forEach(function(Ft){qe[Ft]="".concat(qe[Ft],"px")});var yt=(0,Aa.Z)("
        "));return(0,Kn.Z)(yt,xs(xs({position:"absolute",display:F==="top"||F==="bottom"?"inline-flex":"unset",width:(0,m.isNumber)(Pe)?"".concat(Pe,"px"):Pe,height:(0,m.isNumber)(Re)?"".concat(Re,"px"):Re,maxHeight:He,maxWidth:at,overflow:"scroll"},qe),ce)),a.appendChild(yt),yt.addEventListener("scroll",function(Ft){e.updateLinks()}),yt}},t.prototype.resizeCanvas=function(e){clearTimeout(e.resizeTimer),e.resizeTimer=setTimeout(function(){if(!(!e||e.destroyed)){var r=e.get("container").getBoundingClientRect(),n=r.right-r.left,a=r.bottom-r.top;e.get("canvas").changeSize(n,a),e.updateOutsideCards(e)}},250)},t.prototype.updateOutsideCards=function(e){var r=e||this,n=r.get("cardInfoMap")||{},a=r.get("graph"),i=a.getPointByCanvas(0,0),o=a.getPointByCanvas(a.getWidth(),a.getHeight()),s=a.getClientByPoint(i.x,i.y),l=s.x,h=s.y,p=a.getClientByPoint(o.x,o.y),D=p.x,I=p.y;Object.values(n).forEach(function(F){var Z=F.card;if(!!Z){var ee=Z.style,se=oc(ee.left),oe=oc(ee.top),ce=Z.getBoundingClientRect(),we=ce.width,Re=ce.height,Oe=se,Pe=oe;se+we>D-l&&(Oe=D-l-we),se<0&&(Oe=0),oe+Re>I-h&&(Pe=I-h-Re),oe<0&&(Pe=0),(0,Kn.Z)(Z,{left:"".concat(Oe,"px"),top:"".concat(Pe,"px")})}}),r.updateLinks()},t.prototype.showAnnotation=function(e){if(!this.destroyed){var r=e.item;this.toggleAnnotation(r)}},t.prototype.hideCards=function(){var e=this;if(!e.destroyed){var r=e.get("cardInfoMap")||{};Object.keys(r).forEach(function(n){e.hideCard(n)})}},t.prototype.toggleAnnotation=function(e,r){var n,a;r===void 0&&(r={});var i=this;if(!i.destroyed){var o=i.get("cardInfoMap")||{},s=i.get("graph"),l=i.get("container"),h=i.get("containerCfg"),p=Object.assign({},i.get("cardCfg")||{},r),D=p.minHeight,I=p.minWidth,F=p.width,Z=p.height,ee=p.collapsed,se=ee===void 0?!1:ee,oe=p.x,ce=p.y,we=p.title,Re=p.content,Oe=p.maxTitleLength,Pe=p.defaultBegin,He=vd(p,["minHeight","minWidth","width","height","collapsed","x","y","title","content","maxTitleLength","defaultBegin"]),at=i.get("linkGroup"),qe=this.get("rows")||[[]],yt=(n=e.isCanvas)===null||n===void 0?void 0:n.call(e),Ft=yt?gd:e.getID(),yr=o[Ft]||{},fr=yr.card,lr=yr.link,Kt=yr.x,jr=yr.y,Xr=yr.title,er=yr.content,mr=this.get("getTitle"),kr=this.get("getContent"),Fr=this.get("getContentPlaceholder")||function(){return""},Jr=this.get("getTitlePlaceHolder")||function(){return""},fn=Fr(e),Vn=Jr(e),Tn=(0,Aa.Z)(this.getDOMContent(xs({itemId:Ft,collapsed:se,title:((a=Xr||we||(mr==null?void 0:mr(e)))===null||a===void 0?void 0:a.substr(0,Oe))||Vn,content:er||Re||(kr==null?void 0:kr(e))||fn},He))),wa=(0,m.isNumber)(D)?"".concat(D,"px"):D;(0,Kn.Z)(Tn,{minHeight:se?"unset":wa,minWidth:(0,m.isNumber)(I)?"".concat(I,"px"):I,height:Z,width:F});var ua=!!fr;ua?(lr==null||lr.remove(!0),l.replaceChild(Tn,fr)):l.appendChild(Tn);var fa;if(!h){if(fa=l.getBoundingClientRect()||{},oe!==void 0&&ce!==void 0)Kt=oe,jr=ce;else if(!ua&&!yt){var Ma=fa.top,ja=Pe||{},Ra=ja.left,uo=ja.right,Da=uo===void 0?16:uo,fo=ja.top,Qa=fo===void 0?8:fo,Ja=ja.bottom,oi=Da,Si=Qa;isNaN(Ra)||(oi=l.scrollWidth-Ra),isNaN(Ja)||(Si=l.scrollHeight-Ja);var Ai=(0,m.isNumber)(I)?I:100;Kt=l.scrollWidth-Tn.scrollWidth-(qe.length-1)*Ai-oi;var la=qe[qe.length-1],Ca=(la[la.length-1]||{}).bbox;jr=(Ca==null?void 0:Ca.bottom)-Ma||Si}(0,Kn.Z)(Tn,{position:"absolute",left:"".concat(Kt,"px"),top:"".concat(jr,"px"),cusor:h?"unset":"move"})}this.bindListener(Tn,Ft);var Xn=Tn.getBoundingClientRect();if(!yt){var Ta=ql(e,Xn,s,this.get("canvas")),Na=this.get("linkStyle");lr=at.addShape("path",{attrs:xs({lineWidth:1,lineDash:[5,5],stroke:"#ccc",path:Ta},Na)})}if(o[Ft]=xs(xs({},o[Ft]||{}),{id:Ft,collapsed:se,card:Tn,link:lr,x:Kt,y:jr,cardBBox:Xn,content:er||Re,title:Xr||we,contentPlaceholder:fn,titlePlaceholder:Vn,isCanvas:yt}),i.set("cardInfoMap",o),h)this.updateCardPositionsInConatainer(),this.updateLinks();else{var cn=!isNaN(oe)&&!isNaN(ce);if(!ua&&!yt&&!cn){var pa=fa.bottom,ma=pa===void 0?0:pa,Ma=fa.top;qe[qe.length-1].push({id:Ft,bbox:Xn}),Xn.top>ma-Ma-Xn.height-16&&qe.push([]),this.set("rows",qe)}}this.updateCardSize(Ft);var Ua=this.get("onAnnotationChange");Ua==null||Ua(o[Ft],ua?"update":"create")}},t.prototype.updateCardPositionsInConatainer=function(){if(!this.destroyed){var e=this.get("cardInfoMap");if(!!e){var r=this.get("container"),n=this.get("containerCfg").position,a=r.getBoundingClientRect().width,i=getComputedStyle(r),o=oc(i.paddingLeft)+oc(i.paddingRight);a-=o,Object.values(e).forEach(function(s){var l=s.card,h=l.getBoundingClientRect().width;switch(n){case"right":(0,Kn.Z)(l,{marginLeft:a?"".concat(a-h,"px"):"0px"});break;case"top":case"bottom":(0,Kn.Z)(l,{marginLeft:"8px"});default:break}})}}},t.prototype.handleExpandCollapseCard=function(e){if(!this.destroyed){var r=this.get("graph"),n=this.get("cardInfoMap");if(!!n){var a=n[e].collapsed,i=r.findById(e);if(!!i){var o=this.get("cardCfg").collapseType;o==="hide"&&!a?this.hideCard(e):this.toggleAnnotation(i,{collapsed:!a}),n[e]=xs(xs({},n[e]),{collapsed:!a})}}}},t.prototype.hideCard=function(e){if(!this.destroyed){var r=this.get("cardInfoMap");if(!(!r||!r[e])){var n=r[e],a=n.card,i=n.link;(0,Kn.Z)(a,{display:"none"}),i==null||i.hide();var o=this.get("onAnnotationChange");o(r[e],"hide")}}},t.prototype.removeCard=function(e){if(!this.destroyed){var r=this.get("cardInfoMap");if(!!r){var n=r[e],a=n.card,i=n.link,o=this.get("container");o.removeChild(a),i==null||i.remove(!0),delete r[e];var s=this.get("onAnnotationChange");s(n,"remove")}}},t.prototype.bindListener=function(e,r){var n=this;if(!this.destroyed){e.addEventListener("mousemove",function(s){var l;if(s.target.className==="g6-annotation-collapse"?l="collapse":s.target.className==="g6-annotation-expand"?l="expand":s.target.className==="g6-annotation-close"&&(l="close"),l){var h=n.get("cardCfg").onMouseEnterIcon,p=h===void 0?function(){}:h;p(s,r,l)}}),e.addEventListener("mouseout",function(s){var l;if(s.target.className==="g6-annotation-collapse"?l="collapse":s.target.className==="g6-annotation-expand"?l="expand":s.target.className==="g6-annotation-close"&&(l="close"),l){var h=n.get("cardCfg").onMouseLeaveIcon,p=h===void 0?function(){}:h;p(s,r,l)}}),e.addEventListener("mouseenter",function(s){var l=n.get("cardInfoMap");if(!!l){var h=n.get("graph"),p=h.findById(r);if(p){var D=n.get("itemHighlightState");h.setItemState(p,D,!0)}var I=l[r].link;if(I){var F=n.get("linkHighlightStyle")||{};I.attr(F)}}}),e.addEventListener("mouseleave",function(s){var l=n.get("cardInfoMap");if(!!l){var h=n.get("graph"),p=h.findById(r);if(p){var D=n.get("itemHighlightState");h.setItemState(p,D,!1)}var I=l[r].link;if(I){var F=n.get("linkHighlightStyle")||{};Object.keys(F).forEach(function(ee){I.attr(ee,void 0),I.attr(ee,void 0)});var Z=n.get("linkStyle");I.attr(Z)}}}),e.addEventListener("click",function(s){var l=(n.get("cardCfg")||{}).onClickIcon;if(s.target.className==="g6-annotation-collapse"||s.target.className==="g6-annotation-expand"){var h=n.get("cardCfg").collapseType;h==="hide"?n.hideCard(r):n.handleExpandCollapseCard(r),l==null||l(s,r,s.target.className==="g6-annotation-collapse"?"collapse":"expand")}else if(s.target.className==="g6-annotation-close"){var p=n.get("cardCfg").closeType;p==="remove"?n.removeCard(r):n.hideCard(r),l==null||l(s,r,"close")}});var a=this.get("editable");a&&e.addEventListener("dblclick",function(s){var l=n.get("cardInfoMap"),h=(n.get("cardCfg")||{}).maxTitleLength,p=h===void 0?20:h;if(!!l){var D=s.target,I=D.className;if(!(I!=="g6-annotation-title"&&I!=="g6-annotation-content")){var F=I==="g6-annotation-title"?D.getBoundingClientRect():D.parentNode.getBoundingClientRect(),Z=F.width,ee=F.height,se=getComputedStyle(D),oe=I==="g6-annotation-title"?"input":"textarea",ce=(0,Aa.Z)("<".concat(oe,' class="').concat(I,'-input" type="textarea" style="width:').concat(Z,"px; height: ").concat(ee,'px; min-width: 16px;"/>')),we=(0,Aa.Z)('
        '));we.appendChild(ce),D.parentNode.replaceChild(we,D);var Re=l[r],Oe=Re.contentPlaceholder,Pe=Re.titlePlaceholder,He=Re.content,at=Re.title,qe=He;I==="g6-annotation-title"?(ce.name="title",ce.maxLength=p,qe=at):ce.name="content",qe?(ce.innerHTML=D.innerHTML,ce.value=D.innerHTML):ce.placeholder=I==="g6-annotation-title"?Pe:Oe,ce.focus(),ce.addEventListener("blur",function(yt){ce.value&&(D.innerHTML=ce.value,Re[ce.name||"title"]=ce.value),we.parentNode.replaceChild(D,we),n.updateCardSize(r);var Ft=n.get("onAnnotationChange");Ft==null||Ft(Re,"update")})}}});var i=["g6-annotation-title","g6-annotation-content","g6-annotation-title-input","g6-annotation-content-input"];e.draggable=!0,e.addEventListener("dragstart",function(s){var l=s.target.className;if(!i.includes(l)){var h=e.style;n.set("dragging",{card:e,x:s.clientX,y:s.clientY,left:oc(h.left),top:oc(h.top)})}}),e.addEventListener("drag",function(s){s.preventDefault();var l=n.get("cardInfoMap");if(!!l){var h=s.clientX,p=s.clientY,D=n.get("dragging");if(!(isNaN(h)||isNaN(p)||!D)){var I=D.x,F=D.y,Z=D.left,ee=D.top,se=D.card,oe=h-I,ce=p-F;Z+=oe,ee+=ce;var we=n.get("graph"),Re=we.getPointByCanvas(0,0),Oe=we.getPointByCanvas(we.getWidth(),we.getHeight()),Pe=we.getClientByPoint(Re.x,Re.y),He=Pe.x,at=Pe.y,qe=we.getClientByPoint(Oe.x,Oe.y),yt=qe.x,Ft=qe.y,yr=se.getBoundingClientRect(),fr=yr.right-yr.left,lr=yr.bottom-yr.top;(Z>yt-He-fr&&oe>0||Z<0&&oe<0)&&(Z-=oe),(ee>Ft-at-lr&&ce>0||ee<0&&ce<0)&&(ee-=ce),(0,Kn.Z)(se,{left:"".concat(Z,"px"),top:"".concat(ee,"px"),visibility:"hidden"}),I=h,F=p;var Kt=(l[r]||{}).link;if(Kt){var jr=we.findById(r);Kt.attr("path",ql(jr,yr,we,n.get("canvas")))}n.set("dragging",{x:I,y:F,left:Z,top:ee,card:se})}}});var o=function(l){var h=n.get("cardInfoMap");if(!!h){var p=n.get("dragging");if(p){var D=p.left,I=p.top,F=p.card;h[r].x=D,h[r].y=I,(0,Kn.Z)(F,{visibility:"visible"}),n.set("dragging",!1);var Z=n.get("rows");Z==null||Z.forEach(function(se){for(var oe=se.length-1;oe>=0;oe--)se[oe].id===r&&se.splice(oe,1)});var ee=n.get("onAnnotationChange");ee==null||ee(h[r],"update")}}};e.addEventListener("dragend",o)}},t.prototype.updateCardSize=function(e){var r=this.get("cardInfoMap");if(!!r){var n=r[e].card,a=n.getBoundingClientRect().width,i=n.getElementsByClassName("g6-annotation-title")[0];if(i){var o=getComputedStyle(i),s=oc(o.marginLeft),l=i.getBoundingClientRect().width;(0,Kn.Z)(i,{marginRight:"".concat(a-s-24-16-l,"px")})}}},t.prototype.updateLink=function(e){var r=e.item;if(!!r){var n=this.get("cardInfoMap");if(!!n){var a=this.get("canvas"),i=this.get("graph"),o=r.getID(),s=n[o]||{},l=s.link,h=s.card;if(l){var p=ql(r,h.getBoundingClientRect(),i,a);l.attr("path",p)}}}},t.prototype.updateLinks=function(){var e=this;if(!this.destroyed){var r=this.get("cardInfoMap");if(!!r){var n=this.get("graph");Object.values(r).forEach(function(a){var i=a.id,o=n.findById(i);e.updateLink({item:o})})}}},t.prototype.onGraphDataChange=function(){var e=this,r=this.get("cardInfoMap");if(!!r){var n=this.get("graph");Object.values(r).forEach(function(a){var i=a.id,o=a.card,s=a.isCanvas;if(!(!o||s||o.style.display==="none")){var l=n.findById(i);l&&l.isVisible()?e.toggleAnnotation(l):e.hideCard(i)}})}},t.prototype.onGraphItemVisibilityChange=function(e){var r=e.item,n=e.visible;if(!(!r||r.destroyed)){var a=this.get("cardInfoMap");if(!!a){var i=r.getID();!a[i]||n||this.hideCard(i)}}},t.prototype.saveData=function(e){e===void 0&&(e=!1);var r=this.get("cardInfoMap");if(!!r){var n=this.get("graph"),a=this.get("getTitle"),i=this.get("getContent"),o=[];return Object.values(r).forEach(function(s){var l=s.title,h=s.content,p=s.x,D=s.y,I=s.id,F=s.collapsed,Z=s.card;if(!(Z&&Z.style.display==="none"&&!e)){var ee=n.findById(I)||n.get("canvas");o.push({id:I,x:p,y:D,collapsed:F,title:l||(a==null?void 0:a(ee)),content:h||(i==null?void 0:i(ee)),visible:Z&&Z.style.display!=="none"})}}),o}},t.prototype.readData=function(e){var r=this,n=this.get("graph");e.forEach(function(a){var i=a.id,o=a.x,s=a.y,l=a.title,h=a.content,p=a.collapsed,D=a.visible,I=n.findById(i);if(!I&&i===gd&&(I=n.get("canvas")),!I){var F=r.get("cardInfoMap")||{};F[i]=a,r.set("cardInfoMap",F);return}r.toggleAnnotation(I,{x:o,y:s,title:l,content:h,collapsed:p}),D||r.hideCard(i)})},t.prototype.clear=function(){var e=this.get("cardInfoMap");if(!!e){var r=this.get("container");Object.values(e).forEach(function(n){var a=n.card,i=n.link;r.removeChild(a),i==null||i.remove(!0)}),this.set("cardInfoMap",{})}},t.prototype.destroy=function(){var e;this.clear(),(e=this.get("canvas"))===null||e===void 0||e.destroy();var r=this.get("graph");!r||r.destroyed||(this.get("containerCfg")&&r.getContainer().removeChild(this.get("container")),this.destroyed=!0)},t}(Qi),Ch=Mh,Th=function(t,e){var r,n,a,i=Infinity;Object.keys(t).forEach(function(l){var h=t[l];Object.keys(e).forEach(function(p){var D=e[p],I=h.x-D.x,F=h.y-D.y,Z=I*I+F*F;i>Z&&(i=Z,r=h,n=D,a=[l,p])})});var o=20,s=ki.getControlPoint(r,n,.5,o);return[["M",r.x,r.y],["Q",s.x,s.y,n.x,n.y]]},ql=function(t,e,r,n){var a,i,o=t.getType();if(o==="edge")i=[t.getKeyShape().getPoint(.5)];else{var s=(a=t.getKeyShape)===null||a===void 0?void 0:a.call(t).getBBox(),l=s.minX,h=s.minY,p=s.maxX,D=s.maxY,I=t.getModel(),F=I.x,Z=I.y;l+=F,h+=Z,p+=F,D+=Z,i={left:{x:l,y:(h+D)/2},right:{x:p,y:(h+D)/2},top:{x:(l+p)/2,y:h},bottom:{x:(l+p)/2,y:D}}}Object.keys(i).forEach(function(at){var qe=i[at],yt=qe.x,Ft=qe.y,yr=r.getClientByPoint(yt,Ft);i[at]=n.getPointByClient(yr.x,yr.y)});var ee=e.top,se=ee===void 0?0:ee,oe=e.left,ce=oe===void 0?0:oe,we=e.right,Re=we===void 0?0:we,Oe=e.bottom,Pe=Oe===void 0?0:Oe,He={left:n.getPointByClient(ce,(se+Pe)/2),right:n.getPointByClient(Re,(se+Pe)/2),top:n.getPointByClient((ce+Re)/2,se),bottom:n.getPointByClient((ce+Re)/2,Pe)};return Th(i,He)},oc=function(t){return Number(t.replace(/\s+|px/gi,""))||0},Ih={PluginBase:Qi,Menu:Es,Grid:jc,Minimap:bl,Bundling:Sl,ToolBar:ve,Tooltip:Zt,Fisheye:Zc,TimeBar:yn,ImageMinimap:Sa,EdgeFilterLens:kl,SnapLine:Eh,Legend:Sh,Annotation:Ch},Oh=Ih,Vi=Oh;To("circle",{options:{size:Kr.defaultNode.size,style:{x:0,y:0,stroke:Kr.defaultNode.style.stroke,fill:Kr.defaultNode.style.fill,lineWidth:Kr.defaultNode.style.lineWidth},labelCfg:{style:{fill:Kr.nodeLabel.style.fill,fontSize:Kr.nodeLabel.style.fontSize,fontFamily:Kr.windowFontFamily}},linkPoints:{top:!1,right:!1,bottom:!1,left:!1,size:Kr.defaultNode.linkPoints.size,lineWidth:Kr.defaultNode.linkPoints.lineWidth,fill:Kr.defaultNode.linkPoints.fill,stroke:Kr.defaultNode.linkPoints.stroke},icon:{show:!1,img:"https://gw.alipayobjects.com/zos/bmw-prod/5d015065-8505-4e7a-baec-976f81e3c41d.svg",width:20,height:20},stateStyles:(0,b.__assign)({},Kr.nodeStateStyles)},shapeType:"circle",labelPosition:"center",drawShape:function(t,e){var r=(this.mergeStyle||this.getOptions(t)).icon,n=r===void 0?{}:r,a=this.getShapeStyle(t),i=(0,m.deepMix)({},n,t.icon),o="".concat(this.type,"-keyShape"),s=e.addShape("circle",{attrs:a,className:o,name:o,draggable:!0});e.shapeMap[o]=s;var l=i.width,h=i.height,p=i.show,D=i.text;if(p){var I="".concat(this.type,"-icon");D?e.shapeMap[I]=e.addShape("text",{attrs:(0,b.__assign)({x:0,y:0,fontSize:12,fill:"#000",stroke:"#000",textBaseline:"middle",textAlign:"center"},i),className:I,name:I,draggable:!0}):e.shapeMap[I]=e.addShape("image",{attrs:(0,b.__assign)({x:-l/2,y:-h/2},i),className:I,name:I,draggable:!0})}return this.drawLinkPoints(t,e),s},drawLinkPoints:function(t,e){var r=(this.mergeStyle||this.getOptions(t)).linkPoints;if(!!r){var n=r||{},a=n.top,i=n.left,o=n.right,s=n.bottom,l=n.size,h=n.r,p=(0,b.__rest)(n,["top","left","right","bottom","size","r"]),D=this.getSize(t),I=D[0]/2;if(i){var F="link-point-left";e.shapeMap[F]=e.addShape("circle",{attrs:(0,b.__assign)((0,b.__assign)({},p),{x:-I,y:0,r:l/2||h||5}),className:F,name:F,isAnchorPoint:!0})}if(o){var Z="link-point-right";e.shapeMap[Z]=e.addShape("circle",{attrs:(0,b.__assign)((0,b.__assign)({},p),{x:I,y:0,r:l/2||h||5}),className:Z,name:Z,isAnchorPoint:!0})}if(a){var ee="link-point-top";e.shapeMap[ee]=e.addShape("circle",{attrs:(0,b.__assign)((0,b.__assign)({},p),{x:0,y:-I,r:l/2||h||5}),className:ee,name:ee,isAnchorPoint:!0})}if(s){var se="link-point-bottom";e.shapeMap[se]=e.addShape("circle",{attrs:(0,b.__assign)((0,b.__assign)({},p),{x:0,y:I,r:l/2||h||5}),className:se,name:se,isAnchorPoint:!0})}}},getShapeStyle:function(t){var e=(this.mergeStyle||this.getOptions(t)).style,r={stroke:t.color},n=(0,m.deepMix)({},e,r),a=this.getSize(t),i=a[0]/2,o=(0,b.__assign)({x:0,y:0,r:i},n);return o},update:function(t,e,r){var n=e.getContainer(),a=this.getSize(t),i=(0,b.__assign)({},t.style);t.style.stroke===void 0&&t.color&&(i.stroke=t.color),t.style.r===void 0&&!isNaN(a[0])&&(i.r=a[0]/2),this.updateShape(t,e,i,!0,r),this.updateLinkPoints(t,n)}},"single-node"),To("rect",{options:{size:[100,30],style:{radius:0,stroke:Kr.defaultNode.style.stroke,fill:Kr.defaultNode.style.fill,lineWidth:Kr.defaultNode.style.lineWidth},labelCfg:{style:{fill:Kr.nodeLabel.style.fill,fontSize:Kr.nodeLabel.style.fontSize,fontFamily:Kr.windowFontFamily}},linkPoints:{top:!1,right:!1,bottom:!1,left:!1,size:Kr.defaultNode.linkPoints.size,lineWidth:Kr.defaultNode.linkPoints.lineWidth,fill:Kr.defaultNode.linkPoints.fill,stroke:Kr.defaultNode.linkPoints.stroke},icon:{show:!1,img:"https://gw.alipayobjects.com/zos/bmw-prod/5d015065-8505-4e7a-baec-976f81e3c41d.svg",width:20,height:20},anchorPoints:[[0,.5],[1,.5]],stateStyles:(0,b.__assign)({},Kr.nodeStateStyles)},shapeType:"rect",labelPosition:"center",drawShape:function(t,e){var r=this.getShapeStyle(t),n=e.addShape("rect",{attrs:r,className:"".concat(this.type,"-keyShape"),name:"".concat(this.type,"-keyShape"),draggable:!0});return e.shapeMap["".concat(this.type,"-keyShape")]=n,this.drawLinkPoints(t,e),n},drawLinkPoints:function(t,e){var r=(this.mergeStyle||this.getOptions(t)).linkPoints,n=r===void 0?{}:r,a=n.top,i=n.left,o=n.right,s=n.bottom,l=n.size,h=n.r,p=(0,b.__rest)(n,["top","left","right","bottom","size","r"]),D=this.getSize(t),I=D[0],F=D[1];i&&(e.shapeMap["link-point-left"]=e.addShape("circle",{attrs:(0,b.__assign)((0,b.__assign)({},p),{x:-I/2,y:0,r:l/2||h||5}),className:"link-point-left",name:"link-point-left",isAnchorPoint:!0})),o&&(e.shapeMap["link-point-right"]=e.addShape("circle",{attrs:(0,b.__assign)((0,b.__assign)({},p),{x:I/2,y:0,r:l/2||h||5}),className:"link-point-right",name:"link-point-right",isAnchorPoint:!0})),a&&(e.shapeMap["link-point-top"]=e.addShape("circle",{attrs:(0,b.__assign)((0,b.__assign)({},p),{x:0,y:-F/2,r:l/2||h||5}),className:"link-point-top",name:"link-point-top",isAnchorPoint:!0})),s&&(e.shapeMap["link-point-bottom"]=e.addShape("circle",{attrs:(0,b.__assign)((0,b.__assign)({},p),{x:0,y:F/2,r:l/2||h||5}),className:"link-point-bottom",name:"link-point-bottom",isAnchorPoint:!0}))},getShapeStyle:function(t){var e=(this.mergeStyle||this.getOptions(t)).style,r={stroke:t.color},n=(0,m.mix)({},e,r),a=this.getSize(t),i=n.width||a[0],o=n.height||a[1],s=(0,b.__assign)({x:-i/2,y:-o/2,width:i,height:o},n);return s},update:function(t,e,r){var n=e.getContainer(),a=this.getOptions({}).style,i=this.getSize(t),o=e.get("keyShape");t.size||(i[0]=o.attr("width")||a.width,i[1]=o.attr("height")||a.height);var s={stroke:t.color,x:-i[0]/2,y:-i[1]/2,width:i[0],height:i[1]},l=(0,m.mix)({},a,o.attr(),s);l=(0,m.mix)(l,t.style),this.updateShape(t,e,l,!1,r),this.updateLinkPoints(t,n)}},"single-node"),To("ellipse",{options:{size:[80,40],style:{x:0,y:0,stroke:Kr.defaultNode.style.stroke,fill:Kr.defaultNode.style.fill,lineWidth:Kr.defaultNode.style.lineWidth},labelCfg:{style:{fill:Kr.nodeLabel.style.fill,fontSize:Kr.nodeLabel.style.fontSize,fontFamily:Kr.windowFontFamily}},linkPoints:{top:!1,right:!1,bottom:!1,left:!1,size:Kr.defaultNode.linkPoints.size,lineWidth:Kr.defaultNode.linkPoints.lineWidth,fill:Kr.defaultNode.linkPoints.fill,stroke:Kr.defaultNode.linkPoints.stroke},icon:{show:!1,img:"https://gw.alipayobjects.com/zos/bmw-prod/5d015065-8505-4e7a-baec-976f81e3c41d.svg",width:20,height:20},stateStyles:(0,b.__assign)({},Kr.nodeStateStyles)},shapeType:"ellipse",labelPosition:"center",drawShape:function(t,e){var r=(this.mergeStyle||this.getOptions(t)).icon,n=r===void 0?{}:r,a=this.getShapeStyle(t),i=e.addShape("ellipse",{attrs:a,className:"ellipse-keyShape",name:"ellipse-keyShape",draggable:!0});e.shapeMap["ellipse-keyShape"]=i;var o=n.width,s=n.height,l=n.show,h=n.text;return l&&(h?e.shapeMap["".concat(this.type,"-icon")]=e.addShape("text",{attrs:(0,b.__assign)({x:0,y:0,fontSize:12,fill:"#000",stroke:"#000",textBaseline:"middle",textAlign:"center"},n),className:"".concat(this.type,"-icon"),name:"".concat(this.type,"-icon"),draggable:!0}):e.shapeMap["".concat(this.type,"-icon")]=e.addShape("image",{attrs:(0,b.__assign)({x:-o/2,y:-s/2},n),className:"".concat(this.type,"-icon"),name:"".concat(this.type,"-icon"),draggable:!0})),this.drawLinkPoints(t,e),i},drawLinkPoints:function(t,e){var r=(this.mergeStyle||this.getOptions(t)).linkPoints,n=r===void 0?{}:r,a=n.top,i=n.left,o=n.right,s=n.bottom,l=n.size,h=n.r,p=(0,b.__rest)(n,["top","left","right","bottom","size","r"]),D=this.getSize(t),I=D[0]/2,F=D[1]/2;i&&(e.shapeMap["link-point-left"]=e.addShape("circle",{attrs:(0,b.__assign)((0,b.__assign)({},p),{x:-I,y:0,r:l/2||h||5}),className:"link-point-left",name:"link-point-left",isAnchorPoint:!0})),o&&(e.shapeMap["link-point-right"]=e.addShape("circle",{attrs:(0,b.__assign)((0,b.__assign)({},p),{x:I,y:0,r:l/2||h||5}),className:"link-point-right",name:"link-point-right",isAnchorPoint:!0})),a&&(e.shapeMap["link-point-top"]=e.addShape("circle",{attrs:(0,b.__assign)((0,b.__assign)({},p),{x:0,y:-F,r:l/2||h||5}),className:"link-point-top",name:"link-point-top",isAnchorPoint:!0})),s&&(e.shapeMap["link-point-bottom"]=e.addShape("circle",{attrs:(0,b.__assign)((0,b.__assign)({},p),{x:0,y:F,r:l/2||h||5}),className:"link-point-bottom",name:"link-point-bottom",isAnchorPoint:!0}))},getShapeStyle:function(t){var e=(this.mergeStyle||this.getOptions(t)).style,r={stroke:t.color},n=(0,m.mix)({},e,r),a=this.getSize(t),i=a[0]/2,o=a[1]/2,s=(0,b.__assign)({x:0,y:0,rx:i,ry:o},n);return s},update:function(t,e,r){var n=e.getContainer(),a=this.getOptions({}).style,i=this.getSize(t),o={stroke:t.color,rx:i[0]/2,ry:i[1]/2},s=e.get("keyShape"),l=(0,m.mix)({},a,s.attr(),o);l=(0,m.mix)(l,t.style),this.updateShape(t,e,l,!0,r),this.updateLinkPoints(t,n)}},"single-node"),To("diamond",{options:{size:[80,80],style:{stroke:Kr.defaultNode.style.stroke,fill:Kr.defaultNode.style.fill,lineWidth:Kr.defaultNode.style.lineWidth},labelCfg:{style:{fill:Kr.nodeLabel.style.fill,fontSize:Kr.nodeLabel.style.fontSize,fontFamily:Kr.windowFontFamily}},linkPoints:{top:!1,right:!1,bottom:!1,left:!1,size:Kr.defaultNode.linkPoints.size,lineWidth:Kr.defaultNode.linkPoints.lineWidth,fill:Kr.defaultNode.linkPoints.fill,stroke:Kr.defaultNode.linkPoints.stroke},icon:{show:!1,img:"https://gw.alipayobjects.com/zos/bmw-prod/5d015065-8505-4e7a-baec-976f81e3c41d.svg",width:20,height:20},stateStyles:(0,b.__assign)({},Kr.nodeStateStyles)},shapeType:"diamond",labelPosition:"center",drawShape:function(t,e){var r=(this.mergeStyle||this.getOptions(t)).icon,n=r===void 0?{}:r,a=this.getShapeStyle(t),i=e.addShape("path",{attrs:a,className:"".concat(this.type,"-keyShape"),name:"".concat(this.type,"-keyShape"),draggable:!0});e.shapeMap["".concat(this.type,"-keyShape")]=i;var o=n.width,s=n.height,l=n.show,h=n.text;return l&&(h?e.shapeMap["".concat(this.type,"-icon")]=e.addShape("text",{attrs:(0,b.__assign)({x:0,y:0,fontSize:12,fill:"#000",stroke:"#000",textBaseline:"middle",textAlign:"center"},n),className:"".concat(this.type,"-icon"),name:"".concat(this.type,"-icon"),draggable:!0}):e.shapeMap["".concat(this.type,"-icon")]=e.addShape("image",{attrs:(0,b.__assign)({x:-o/2,y:-s/2},n),className:"".concat(this.type,"-icon"),name:"".concat(this.type,"-icon"),draggable:!0})),this.drawLinkPoints(t,e),i},drawLinkPoints:function(t,e){var r=(this.mergeStyle||this.getOptions(t)).linkPoints,n=r===void 0?{}:r,a=n.top,i=n.left,o=n.right,s=n.bottom,l=n.size,h=n.r,p=(0,b.__rest)(n,["top","left","right","bottom","size","r"]),D=this.getSize(t),I=D[0],F=D[1];i&&(e.shapeMap["link-point-left"]=e.addShape("circle",{attrs:(0,b.__assign)((0,b.__assign)({},p),{x:-I/2,y:0,r:l/2||h||5}),className:"link-point-left",name:"link-point-left",isAnchorPoint:!0})),o&&(e.shapeMap["link-point-right"]=e.addShape("circle",{attrs:(0,b.__assign)((0,b.__assign)({},p),{x:I/2,y:0,r:l/2||h||5}),className:"link-point-right",name:"link-point-right",isAnchorPoint:!0})),a&&(e.shapeMap["link-point-top"]=e.addShape("circle",{attrs:(0,b.__assign)((0,b.__assign)({},p),{x:0,y:-F/2,r:l/2||h||5}),className:"link-point-top",name:"link-point-top",isAnchorPoint:!0})),s&&(e.shapeMap["link-point-bottom"]=e.addShape("circle",{attrs:(0,b.__assign)((0,b.__assign)({},p),{x:0,y:F/2,r:l/2||h||5}),className:"link-point-bottom",name:"link-point-bottom",isAnchorPoint:!0}))},getPath:function(t){var e=this.getSize(t),r=e[0],n=e[1],a=[["M",0,-n/2],["L",r/2,0],["L",0,n/2],["L",-r/2,0],["Z"]];return a},getShapeStyle:function(t){var e=(this.mergeStyle||this.getOptions(t)).style,r={stroke:t.color},n=(0,m.mix)({},e,r),a=this.getPath(t),i=(0,b.__assign)({path:a},n);return i},update:function(t,e,r){var n=e.getContainer(),a=this.getOptions({}).style,i=this.getPath(t),o={stroke:t.color,path:i},s=e.get("keyShape"),l=(0,m.mix)({},a,s.attr(),o);l=(0,m.mix)(l,t.style),this.updateShape(t,e,l,!0,r),this.updateLinkPoints(t,n)}},"single-node"),To("triangle",{options:{size:40,direction:"up",style:{stroke:Kr.defaultNode.style.stroke,fill:Kr.defaultNode.style.fill,lineWidth:Kr.defaultNode.style.lineWidth},labelCfg:{style:{fill:Kr.nodeLabel.style.fill,fontSize:Kr.nodeLabel.style.fontSize},offset:15},linkPoints:{top:!1,right:!1,bottom:!1,left:!1,size:Kr.defaultNode.linkPoints.size,lineWidth:Kr.defaultNode.linkPoints.lineWidth,fill:Kr.defaultNode.linkPoints.fill,stroke:Kr.defaultNode.linkPoints.stroke},icon:{show:!1,img:"https://gw.alipayobjects.com/zos/bmw-prod/5d015065-8505-4e7a-baec-976f81e3c41d.svg",width:20,height:20,offset:6},stateStyles:(0,b.__assign)({},Kr.nodeStateStyles)},shapeType:"triangle",labelPosition:"bottom",drawShape:function(t,e){var r=this.mergeStyle||this.getOptions(t),n=r.icon,a=n===void 0?{}:n,i=r.direction,o=this.getShapeStyle(t),s=t.direction||i,l=e.addShape("path",{attrs:o,className:"".concat(this.type,"-keyShape"),name:"".concat(this.type,"-keyShape"),draggable:!0});e.shapeMap["".concat(this.type,"-keyShape")]=l;var h=a.width,p=a.height,D=a.show,I=a.offset,F=a.text;if(D)if(F)e.shapeMap["".concat(this.type,"-icon")]=e.addShape("text",{attrs:(0,b.__assign)({x:0,y:0,fontSize:12,fill:"#000",stroke:"#000",textBaseline:"middle",textAlign:"center"},a),className:"".concat(this.type,"-icon"),name:"".concat(this.type,"-icon"),draggable:!0});else{var Z=-h/2,ee=-p/2;(s==="up"||s==="down")&&(ee+=I),(s==="left"||s==="right")&&(Z+=I),e.shapeMap["".concat(this.type,"-icon")]=e.addShape("image",{attrs:(0,b.__assign)({x:Z,y:ee},a),className:"".concat(this.type,"-icon"),name:"".concat(this.type,"-icon"),draggable:!0})}return this.drawLinkPoints(t,e),l},drawLinkPoints:function(t,e){var r=this.mergeStyle||this.getOptions(t),n=r.linkPoints,a=n===void 0?{}:n,i=r.direction,o=t.direction||i,s=a.top,l=a.left,h=a.right,p=a.bottom,D=a.size,I=a.r,F=(0,b.__rest)(a,["top","left","right","bottom","size","r"]),Z=this.getSize(t),ee=Z[0];if(l){var se=null,oe=ee*Math.sin(1/3*Math.PI),ce=ee*Math.sin(1/3*Math.PI);o==="up"?se=[-ce,oe]:o==="down"?se=[-ce,-oe]:o==="left"&&(se=[-ce,ce-oe]),se&&(e.shapeMap["link-point-left"]=e.addShape("circle",{attrs:(0,b.__assign)((0,b.__assign)({},F),{x:se[0],y:se[1],r:D/2||I||5}),className:"link-point-left",name:"link-point-left"}))}if(h){var we=null,oe=ee*Math.sin(1/3*Math.PI),ce=ee*Math.sin(1/3*Math.PI);o==="up"?we=[ce,oe]:o==="down"?we=[ce,-oe]:o==="right"&&(we=[ce,ce-oe]),we&&(e.shapeMap["link-point-right"]=e.addShape("circle",{attrs:(0,b.__assign)((0,b.__assign)({},F),{x:we[0],y:we[1],r:D/2||I||5}),className:"link-point-right",name:"link-point-right"}))}if(s){var Re=null,oe=ee*Math.sin(1/3*Math.PI),ce=ee*Math.sin(1/3*Math.PI);o==="up"?Re=[ce-oe,-oe]:o==="left"?Re=[ce,-oe]:o==="right"&&(Re=[-ce,-oe]),Re&&(e.shapeMap["link-point-top"]=e.addShape("circle",{attrs:(0,b.__assign)((0,b.__assign)({},F),{x:Re[0],y:Re[1],r:D/2||I||5}),className:"link-point-top",name:"link-point-top"}))}if(p){var Oe=null,oe=ee*Math.sin(1/3*Math.PI),ce=ee*Math.sin(1/3*Math.PI);o==="down"?Oe=[-ce+oe,oe]:o==="left"?Oe=[ce,oe]:o==="right"&&(Oe=[-ce,oe]),Oe&&(e.shapeMap["link-point-bottom"]=e.addShape("circle",{attrs:(0,b.__assign)((0,b.__assign)({},F),{x:Oe[0],y:Oe[1],r:D/2||I||5}),className:"link-point-bottom",name:"link-point-bottom"}))}},getPath:function(t){var e=(this.mergeStyle||this.getOptions(t)).direction,r=t.direction||e,n=this.getSize(t),a=n[0],i=a*Math.sin(1/3*Math.PI),o=a*Math.sin(1/3*Math.PI),s=[["M",-o,i],["L",0,-i],["L",o,i],["Z"]];return r==="down"?s=[["M",-o,-i],["L",o,-i],["L",0,i],["Z"]]:r==="left"?s=[["M",-o,o-i],["L",o,-o],["L",o,o],["Z"]]:r==="right"&&(s=[["M",o,o-i],["L",-o,o],["L",-o,-o],["Z"]]),s},getShapeStyle:function(t){var e=(this.mergeStyle||this.getOptions(t)).style,r={stroke:t.color},n=(0,m.mix)({},e,r),a=this.getPath(t),i=(0,b.__assign)({path:a},n);return i},update:function(t,e,r){var n=e.getContainer(),a=this.getOptions({}).style,i=this.getPath(t),o={stroke:t.color,path:i},s=e.get("keyShape"),l=(0,m.mix)({},a,s.attr(),o);l=(0,m.mix)(l,t.style),this.updateShape(t,e,l,!0,r),this.updateLinkPoints(t,n)},updateLinkPoints:function(t,e){var r=this.getOptions({}),n=r.linkPoints,a=r.direction,i=t.direction||a,o=e.shapeMap["link-point-left"]||e.find(function(Kt){return Kt.get("className")==="link-point-left"}),s=e.shapeMap["link-point-right"]||e.find(function(Kt){return Kt.get("className")==="link-point-right"}),l=e.shapeMap["link-point-top"]||e.find(function(Kt){return Kt.get("className")==="link-point-top"}),h=e.shapeMap["link-point-bottom"]||e.find(function(Kt){return Kt.get("className")==="link-point-bottom"}),p=n,D=o||s||l||h;D&&(p=D.attr());var I=(0,m.mix)({},p,t.linkPoints),F=I.fill,Z=I.stroke,ee=I.lineWidth,se=I.size/2;se||(se=I.r);var oe=t.linkPoints?t.linkPoints:{left:void 0,right:void 0,top:void 0,bottom:void 0},ce=oe.left,we=oe.right,Re=oe.top,Oe=oe.bottom,Pe=this.getSize(t),He=Pe[0],at={r:se,fill:F,stroke:Z,lineWidth:ee},qe=null,yt=He*Math.sin(1/3*Math.PI),Ft=He*Math.sin(1/3*Math.PI);i==="up"?qe=[-Ft,yt]:i==="down"?qe=[-Ft,-yt]:i==="left"&&(qe=[-Ft,Ft-yt]),qe&&(o?!ce&&ce!==void 0?(o.remove(),delete e.shapeMap["link-point-left"]):o.attr((0,b.__assign)((0,b.__assign)({},at),{x:qe[0],y:qe[1]})):ce&&(e.shapeMap["link-point-left"]=e.addShape("circle",{attrs:(0,b.__assign)((0,b.__assign)({},at),{x:qe[0],y:qe[1]}),className:"link-point-left",name:"link-point-left",isAnchorPoint:!0})));var yr=null;i==="up"?yr=[Ft,yt]:i==="down"?yr=[Ft,-yt]:i==="right"&&(yr=[Ft,Ft-yt]),yr&&(s?!we&&we!==void 0?(s.remove(),delete e.shapeMap["link-point-right"]):s.attr((0,b.__assign)((0,b.__assign)({},at),{x:yr[0],y:yr[1]})):we&&(e.shapeMap["link-point-right"]=e.addShape("circle",{attrs:(0,b.__assign)((0,b.__assign)({},at),{x:yr[0],y:yr[1]}),className:"link-point-right",name:"link-point-right",isAnchorPoint:!0})));var fr=null;i==="up"?fr=[Ft-yt,-yt]:i==="left"?fr=[Ft,-yt]:i==="right"&&(fr=[-Ft,-yt]),fr&&(l?!Re&&Re!==void 0?(l.remove(),delete e.shapeMap["link-point-top"]):l.attr((0,b.__assign)((0,b.__assign)({},at),{x:fr[0],y:fr[1]})):Re&&(e.shapeMap["link-point-top"]=e.addShape("circle",{attrs:(0,b.__assign)((0,b.__assign)({},at),{x:fr[0],y:fr[1]}),className:"link-point-top",name:"link-point-top",isAnchorPoint:!0})));var lr=null;i==="down"?lr=[-Ft+yt,yt]:i==="left"?lr=[Ft,yt]:i==="right"&&(lr=[-Ft,yt]),lr&&(h?!Oe&&Oe!==void 0?(h.remove(),delete e.shapeMap["link-point-bottom"]):h.attr((0,b.__assign)((0,b.__assign)({},at),{x:lr[0],y:lr[1]})):Oe&&(e.shapeMap["link-point-bottom"]=e.addShape("circle",{attrs:(0,b.__assign)((0,b.__assign)({},at),{x:lr[0],y:lr[1]}),className:"link-point-bottom",name:"link-point-bottom",isAnchorPoint:!0})))}},"single-node"),To("modelRect",{options:{size:[185,70],style:{radius:5,stroke:"#69c0ff",fill:"#ffffff",lineWidth:Kr.defaultNode.style.lineWidth,fillOpacity:1},labelCfg:{style:{fill:"#595959",fontSize:14,fontFamily:Kr.windowFontFamily},offset:30},descriptionCfg:{style:{fontSize:12,fill:"#bfbfbf",fontFamily:Kr.windowFontFamily},paddingTop:0},preRect:{show:!0,width:4,fill:"#40a9ff",radius:2},linkPoints:{top:!1,right:!1,bottom:!1,left:!1,size:10,lineWidth:1,fill:"#72CC4A",stroke:"#72CC4A"},logoIcon:{show:!0,x:0,y:0,img:"https://gw.alipayobjects.com/zos/basement_prod/4f81893c-1806-4de4-aff3-9a6b266bc8a2.svg",width:16,height:16,offset:0},stateIcon:{show:!0,x:0,y:0,img:"https://gw.alipayobjects.com/zos/basement_prod/300a2523-67e0-4cbf-9d4a-67c077b40395.svg",width:16,height:16,offset:-5},anchorPoints:[[0,.5],[1,.5]]},shapeType:"modelRect",drawShape:function(t,e){var r=(this.mergeStyle||this.getOptions(t)).preRect,n=r===void 0?{}:r,a=this.getShapeStyle(t),i=this.getSize(t),o=i[0],s=i[1],l=e.addShape("rect",{attrs:a,className:"".concat(this.type,"-keyShape"),name:"".concat(this.type,"-keyShape"),draggable:!0});e.shapeMap["".concat(this.type,"-keyShape")]=l;var h=n.show,p=(0,b.__rest)(n,["show"]);return h&&(e.shapeMap["pre-rect"]=e.addShape("rect",{attrs:(0,b.__assign)({x:-o/2,y:-s/2,height:s},p),className:"pre-rect",name:"pre-rect",draggable:!0})),this.drawLogoIcon(t,e),this.drawStateIcon(t,e),this.drawLinkPoints(t,e),l},drawLogoIcon:function(t,e){var r=(this.mergeStyle||this.getOptions(t)).logoIcon,n=r===void 0?{}:r,a=this.getSize(t),i=a[0];if(n.show){var o=n.width,s=n.height,l=n.x,h=n.y,p=n.offset,D=n.text,I=(0,b.__rest)(n,["width","height","x","y","offset","text"]);D?e.shapeMap["rect-logo-icon"]=e.addShape("text",{attrs:(0,b.__assign)({x:0,y:0,fontSize:12,fill:"#000",stroke:"#000",textBaseline:"middle",textAlign:"center"},I),className:"rect-logo-icon",name:"rect-logo-icon",draggable:!0}):e.shapeMap["rect-logo-icon"]=e.addShape("image",{attrs:(0,b.__assign)((0,b.__assign)({},I),{x:l||-i/2+o+p,y:h||-s/2,width:o,height:s}),className:"rect-logo-icon",name:"rect-logo-icon",draggable:!0})}},drawStateIcon:function(t,e){var r=(this.mergeStyle||this.getOptions(t)).stateIcon,n=r===void 0?{}:r,a=this.getSize(t),i=a[0];if(n.show){var o=n.width,s=n.height,l=n.x,h=n.y,p=n.offset,D=n.text,I=(0,b.__rest)(n,["width","height","x","y","offset","text"]);D?e.shapeMap["rect-state-icon"]=e.addShape("text",{attrs:(0,b.__assign)({x:0,y:0,fontSize:12,fill:"#000",stroke:"#000",textBaseline:"middle",textAlign:"center"},I),className:"rect-state-icon",name:"rect-state-icon",draggable:!0}):e.shapeMap["rect-state-icon"]=e.addShape("image",{attrs:(0,b.__assign)((0,b.__assign)({},I),{x:l||i/2-o+p,y:h||-s/2,width:o,height:s}),className:"rect-state-icon",name:"rect-state-icon",draggable:!0})}},drawLinkPoints:function(t,e){var r=(this.mergeStyle||this.getOptions(t)).linkPoints,n=r===void 0?{}:r,a=n.top,i=n.left,o=n.right,s=n.bottom,l=n.size,h=n.r,p=(0,b.__rest)(n,["top","left","right","bottom","size","r"]),D=this.getSize(t),I=D[0],F=D[1];i&&(e.shapeMap["link-point-left"]=e.addShape("circle",{attrs:(0,b.__assign)((0,b.__assign)({},p),{x:-I/2,y:0,r:l/2||h||5}),className:"link-point-left",name:"link-point-left",isAnchorPoint:!0})),o&&(e.shapeMap["link-point-right"]=e.addShape("circle",{attrs:(0,b.__assign)((0,b.__assign)({},p),{x:I/2,y:0,r:l/2||h||5}),className:"link-point-right",name:"link-point-right",isAnchorPoint:!0})),a&&(e.shapeMap["link-point-top"]=e.addShape("circle",{attrs:(0,b.__assign)((0,b.__assign)({},p),{x:0,y:-F/2,r:l/2||h||5}),className:"link-point-top",name:"link-point-top",isAnchorPoint:!0})),s&&(e.shapeMap["link-point-bottom"]=e.addShape("circle",{attrs:(0,b.__assign)((0,b.__assign)({},p),{x:0,y:F/2,r:l/2||h||5}),className:"link-point-bottom",name:"link-point-bottom",isAnchorPoint:!0}))},drawLabel:function(t,e){var r=this.getOptions(t),n=r.labelCfg,a=n===void 0?{}:n,i=r.logoIcon,o=i===void 0?{}:i,s=r.descriptionCfg,l=s===void 0?{}:s,h=this.getSize(t),p=h[0],D=null,I=o.show,F=o.width,Z=-p/2+a.offset;I&&(Z=-p/2+F+a.offset);var ee=a.style,se=l.style,oe=l.paddingTop;return(0,m.isString)(t.description)?(D=e.addShape("text",{attrs:(0,b.__assign)((0,b.__assign)({},ee),{x:Z,y:-5,text:t.label}),className:"text-shape",name:"text-shape",draggable:!0,labelRelated:!0}),e.shapeMap["text-shape"]=D,e.shapeMap["rect-description"]=e.addShape("text",{attrs:(0,b.__assign)((0,b.__assign)({},se),{x:Z,y:17+(oe||0),text:t.description}),className:"rect-description",name:"rect-description",draggable:!0,labelRelated:!0})):(D=e.addShape("text",{attrs:(0,b.__assign)((0,b.__assign)({},ee),{x:Z,y:7,text:t.label}),className:"text-shape",name:"text-shape",draggable:!0,labelRelated:!0}),e.shapeMap["text-shape"]=D),D},getShapeStyle:function(t){var e=(this.mergeStyle||this.getOptions(t)).style,r={stroke:t.color},n=(0,m.mix)({},e,r),a=this.getSize(t),i=n.width||a[0],o=n.height||a[1],s=(0,b.__assign)({x:-i/2,y:-o/2,width:i,height:o},n);return s},update:function(t,e){var r=this.mergeStyle||this.getOptions(t),n=r.style,a=n===void 0?{}:n,i=r.labelCfg,o=i===void 0?{}:i,s=r.descriptionCfg,l=s===void 0?{}:s,h=this.getSize(t),p=h[0],D=h[1],I=e.get("keyShape");I.attr((0,b.__assign)((0,b.__assign)({},a),{x:-p/2,y:-D/2,width:p,height:D}));var F=e.getContainer(),Z=F.shapeMap["rect-logo-icon"]||F.find(function(Tn){return Tn.get("className")==="rect-logo-icon"}),ee=Z?Z.attr():{},se=(0,m.mix)({},ee,t.logoIcon),oe=se.width;oe===void 0&&(oe=this.options.logoIcon.width);var ce=t.logoIcon?t.logoIcon.show:void 0,we=o.offset,Re=-p/2+oe+we;!ce&&ce!==void 0&&(Re=-p/2+we);var Oe=F.shapeMap["node-label"]||F.find(function(Tn){return Tn.get("className")==="node-label"}),Pe=F.shapeMap["rect-description"]||F.find(function(Tn){return Tn.get("className")==="rect-description"});if(t.label)if(!Oe)F.shapeMap["node-label"]=F.addShape("text",{attrs:(0,b.__assign)((0,b.__assign)({},o.style),{x:Re,y:t.description?-5:7,text:t.label}),className:"node-label",name:"node-label",draggable:!0,labelRelated:!0});else{var He=t.labelCfg?t.labelCfg.style:{},at=(0,m.mix)({},Oe.attr(),He);t.label&&(at.text=t.label),at.x=Re,(0,m.isString)(t.description)&&(at.y=-5),Pe&&(Pe.resetMatrix(),Pe.attr({x:Re})),Oe.resetMatrix(),Oe.attr(at)}if((0,m.isString)(t.description)){var qe=l.paddingTop;if(!Pe)F.shapeMap["rect-description"]=F.addShape("text",{attrs:(0,b.__assign)((0,b.__assign)({},l.style),{x:Re,y:17+(qe||0),text:t.description}),className:"rect-description",name:"rect-description",draggable:!0,labelRelated:!0});else{var He=t.descriptionCfg?t.descriptionCfg.style:{},yt=(0,m.mix)({},Pe.attr(),He);(0,m.isString)(t.description)&&(yt.text=t.description),yt.x=Re,Pe.resetMatrix(),Pe.attr((0,b.__assign)((0,b.__assign)({},yt),{y:17+(qe||0)}))}}var Ft=F.shapeMap["pre-rect"]||F.find(function(Tn){return Tn.get("className")==="pre-rect"});if(Ft&&!Ft.destroyed){var yr=(0,m.mix)({},Ft.attr(),t.preRect);Ft.attr((0,b.__assign)((0,b.__assign)({},yr),{x:-p/2,y:-D/2,height:D}))}if(Z&&!Z.destroyed)if(!ce&&ce!==void 0)Z.remove(),delete F.shapeMap["pre-rect"];else{var fr=se.width,lr=se.height,Kt=se.x,jr=se.y,Xr=se.offset,er=(0,b.__rest)(se,["width","height","x","y","offset"]);Z.attr((0,b.__assign)((0,b.__assign)({},er),{x:Kt||-p/2+fr+Xr,y:jr||-lr/2,width:fr,height:lr}))}else ce&&this.drawLogoIcon(t,F);var mr=F.shapeMap["rect-state-icon"]||F.find(function(Tn){return Tn.get("className")==="rect-state-icon"}),kr=mr?mr.attr():{},Fr=(0,m.mix)({},kr,t.stateIcon);if(mr){!Fr.show&&Fr.show!==void 0&&(mr.remove(),delete F.shapeMap["rect-state-icon"]);var Jr=Fr.width,lr=Fr.height,Kt=Fr.x,jr=Fr.y,fn=Fr.offset,Vn=(0,b.__rest)(Fr,["width","height","x","y","offset"]);mr.attr((0,b.__assign)((0,b.__assign)({},Vn),{x:Kt||p/2-Jr+fn,y:jr||-lr/2,width:Jr,height:lr}))}else Fr.show&&this.drawStateIcon(t,F);this.updateLinkPoints(t,F)},getOptions:function(t,e){return e==="move"?t:(0,m.deepMix)({},this.options,this.getCustomConfig(t)||{},t)}},"single-node"),To("star",{options:{size:60,style:{stroke:Kr.defaultNode.style.stroke,fill:Kr.defaultNode.style.fill,lineWidth:Kr.defaultNode.style.lineWidth},labelCfg:{style:{fill:Kr.nodeLabel.style.fill,fontSize:Kr.nodeLabel.style.fontSize,fontFamily:Kr.windowFontFamily}},linkPoints:{top:!1,right:!1,bottom:!1,left:!1,size:Kr.defaultNode.linkPoints.size,lineWidth:Kr.defaultNode.linkPoints.lineWidth,fill:Kr.defaultNode.linkPoints.fill,stroke:Kr.defaultNode.linkPoints.stroke},icon:{show:!1,img:"https://gw.alipayobjects.com/zos/bmw-prod/5d015065-8505-4e7a-baec-976f81e3c41d.svg",width:20,height:20},stateStyles:(0,b.__assign)({},Kr.nodeStateStyles)},shapeType:"star",labelPosition:"center",drawShape:function(t,e){var r=(this.mergeStyle||this.getOptions(t)).icon,n=r===void 0?{}:r,a=this.getShapeStyle(t),i=e.addShape("path",{attrs:a,className:"".concat(this.type,"-keyShape"),name:"".concat(this.type,"-keyShape"),draggable:!0});e.shapeMap["".concat(this.type,"-keyShape")]=i;var o=n.width,s=n.height,l=n.show,h=n.text;return l&&(h?e.shapeMap["".concat(this.type,"-icon")]=e.addShape("text",{attrs:(0,b.__assign)({x:0,y:0,fontSize:12,fill:"#000",stroke:"#000",textBaseline:"middle",textAlign:"center"},n),className:"".concat(this.type,"-icon"),name:"".concat(this.type,"-icon"),draggable:!0}):e.shapeMap["".concat(this.type,"-icon")]=e.addShape("image",{attrs:(0,b.__assign)({x:-o/2,y:-s/2},n),className:"".concat(this.type,"-icon"),name:"".concat(this.type,"-icon"),draggable:!0})),this.drawLinkPoints(t,e),i},drawLinkPoints:function(t,e){var r=(this.mergeStyle||this.getOptions(t)).linkPoints,n=r===void 0?{}:r,a=n.top,i=n.left,o=n.right,s=n.leftBottom,l=n.rightBottom,h=n.size,p=n.r,D=(0,b.__rest)(n,["top","left","right","leftBottom","rightBottom","size","r"]),I=this.getSize(t),F=I[0];if(o){var Z=Math.cos((18+72*0)/180*Math.PI)*F,ee=Math.sin((18+72*0)/180*Math.PI)*F;e.shapeMap["link-point-right"]=e.addShape("circle",{attrs:(0,b.__assign)((0,b.__assign)({},D),{x:Z,y:-ee,r:h/2||p||5}),className:"link-point-right",name:"link-point-right"})}if(a){var Z=Math.cos((18+72*1)/180*Math.PI)*F,ee=Math.sin((18+72*1)/180*Math.PI)*F;e.shapeMap["link-point-top"]=e.addShape("circle",{attrs:(0,b.__assign)((0,b.__assign)({},D),{x:Z,y:-ee,r:h/2||p||5}),className:"link-point-top",name:"link-point-top"})}if(i){var Z=Math.cos((18+72*2)/180*Math.PI)*F,ee=Math.sin((18+72*2)/180*Math.PI)*F;e.shapeMap["link-point-left"]=e.addShape("circle",{attrs:(0,b.__assign)((0,b.__assign)({},D),{x:Z,y:-ee,r:h/2||p||5}),className:"link-point-left",name:"link-point-left"})}if(s){var Z=Math.cos((18+72*3)/180*Math.PI)*F,ee=Math.sin((18+72*3)/180*Math.PI)*F;e.shapeMap["link-point-bottom"]=e.addShape("circle",{attrs:(0,b.__assign)((0,b.__assign)({},D),{x:Z,y:-ee,r:h/2||p||5}),className:"link-point-left-bottom",name:"link-point-left-bottom"})}if(l){var Z=Math.cos((18+72*4)/180*Math.PI)*F,ee=Math.sin((18+72*4)/180*Math.PI)*F;e.shapeMap["link-point-right-bottom"]=e.addShape("circle",{attrs:(0,b.__assign)((0,b.__assign)({},D),{x:Z,y:-ee,r:h/2||p||5}),className:"link-point-right-bottom",name:"link-point-right-bottom"})}},getPath:function(t){var e=this.getSize(t),r=e[0],n=r*3/8,a=t.innerR||n;return ki.getStarPath(r,a)},getShapeStyle:function(t){var e=(this.mergeStyle||this.getOptions(t)).style,r={stroke:t.color},n=(0,m.mix)({},e,r),a=this.getPath(t),i=(0,b.__assign)({path:a},n);return i},update:function(t,e,r){var n=e.getContainer(),a=this.getOptions({}).style,i=this.getPath(t),o={stroke:t.color,path:i},s=e.get("keyShape"),l=(0,m.mix)({},a,s.attr(),o);l=(0,m.mix)(l,t.style),this.updateShape(t,e,l,!0,r),this.updateLinkPoints(t,n)},updateLinkPoints:function(t,e){var r=this.getOptions({}).linkPoints,n=e.shapeMap["link-point-left"]||e.find(function(yt){return yt.get("className")==="link-point-left"}),a=e.shapeMap["link-point-right"]||e.find(function(yt){return yt.get("className")==="link-point-right"}),i=e.shapeMap["link-point-top"]||e.find(function(yt){return yt.get("className")==="link-point-top"}),o=e.shapeMap["link-point-left-bottom"]||e.find(function(yt){return yt.get("className")==="link-point-left-bottom"}),s=e.shapeMap["link-point-left-bottom"]||e.find(function(yt){return yt.get("className")==="link-point-right-bottom"}),l=r,h=n||a||i||o||s;h&&(l=h.attr());var p=(0,m.mix)({},l,t.linkPoints),D=p.fill,I=p.stroke,F=p.lineWidth,Z=p.size/2;Z||(Z=p.r);var ee=t.linkPoints?t.linkPoints:{left:void 0,right:void 0,top:void 0,leftBottom:void 0,rightBottom:void 0},se=ee.left,oe=ee.right,ce=ee.top,we=ee.leftBottom,Re=ee.rightBottom,Oe=this.getSize(t),Pe=Oe[0],He={r:Z,fill:D,stroke:I,lineWidth:F},at=Math.cos((18+72*0)/180*Math.PI)*Pe,qe=Math.sin((18+72*0)/180*Math.PI)*Pe;a?!oe&&oe!==void 0?(a.remove(),delete e.shapeMap["link-point-right"]):a.attr((0,b.__assign)((0,b.__assign)({},He),{x:at,y:-qe})):oe&&(e.shapeMap["link-point-right"]=e.addShape("circle",{attrs:(0,b.__assign)((0,b.__assign)({},He),{x:at,y:-qe}),className:"link-point-right",name:"link-point-right",isAnchorPoint:!0})),at=Math.cos((18+72*1)/180*Math.PI)*Pe,qe=Math.sin((18+72*1)/180*Math.PI)*Pe,i?!ce&&ce!==void 0?(i.remove(),delete e.shapeMap["link-point-top"]):i.attr((0,b.__assign)((0,b.__assign)({},He),{x:at,y:-qe})):ce&&(e.shapeMap["link-point-top"]=e.addShape("circle",{attrs:(0,b.__assign)((0,b.__assign)({},He),{x:at,y:-qe}),className:"link-point-top",name:"link-point-top",isAnchorPoint:!0})),at=Math.cos((18+72*2)/180*Math.PI)*Pe,qe=Math.sin((18+72*2)/180*Math.PI)*Pe,n?!se&&se!==void 0?(n.remove(),delete e.shapeMap["link-point-left"]):n.attr((0,b.__assign)((0,b.__assign)({},He),{x:at,y:-qe})):se&&(e.shapeMap["link-point-left"]=e.addShape("circle",{attrs:(0,b.__assign)((0,b.__assign)({},He),{x:at,y:-qe}),className:"link-point-left",name:"link-point-left",isAnchorPoint:!0})),at=Math.cos((18+72*3)/180*Math.PI)*Pe,qe=Math.sin((18+72*3)/180*Math.PI)*Pe,o?!we&&we!==void 0?(o.remove(),delete e.shapeMap["link-point-left-bottom"]):o.attr((0,b.__assign)((0,b.__assign)({},He),{x:at,y:-qe})):we&&(e.shapeMap["link-point-left-bottom"]=e.addShape("circle",{attrs:(0,b.__assign)((0,b.__assign)({},He),{x:at,y:-qe}),className:"link-point-left-bottom",name:"link-point-left-bottom",isAnchorPoint:!0})),at=Math.cos((18+72*4)/180*Math.PI)*Pe,qe=Math.sin((18+72*4)/180*Math.PI)*Pe,s?!Re&&Re!==void 0?(s.remove(),delete e.shapeMap["link-point-right-bottom"]):s.attr((0,b.__assign)((0,b.__assign)({},He),{x:at,y:-qe})):Re&&(e.shapeMap["link-point-right-bottom"]=e.addShape("circle",{attrs:(0,b.__assign)((0,b.__assign)({},He),{x:at,y:-qe}),className:"link-point-right-bottom",name:"link-point-right-bottom",isAnchorPoint:!0}))}},"single-node");var pd=ki.defaultSubjectColors,Il="fan-shape-";To("donut",{options:{size:Kr.defaultNode.size,style:{x:0,y:0,stroke:Kr.defaultNode.style.stroke,fill:Kr.defaultNode.style.fill,lineWidth:Kr.defaultNode.style.lineWidth},labelCfg:{style:{fill:Kr.nodeLabel.style.fill,fontSize:Kr.nodeLabel.style.fontSize,fontFamily:Kr.windowFontFamily}},linkPoints:{top:!1,right:!1,bottom:!1,left:!1,size:Kr.defaultNode.linkPoints.size,lineWidth:Kr.defaultNode.linkPoints.lineWidth,fill:Kr.defaultNode.linkPoints.fill,stroke:Kr.defaultNode.linkPoints.stroke},icon:{show:!1,img:"https://gw.alipayobjects.com/zos/bmw-prod/5d015065-8505-4e7a-baec-976f81e3c41d.svg",width:20,height:20},stateStyles:(0,b.__assign)({},Kr.nodeStateStyles)},shapeType:"circle",labelPosition:"center",drawShape:function(t,e){var r=(this.mergeStyle||this.getOptions(t)).icon,n=r===void 0?{}:r,a=this.getShapeStyle(t),i=(0,m.deepMix)({},n,t.icon),o=e.addShape("circle",{attrs:a,className:"".concat(this.type,"-keyShape"),draggable:!0,name:"".concat(this.type,"-keyShape")});e.shapeMap["".concat(this.type,"-keyShape")]=o;var s=i.width,l=i.height,h=i.show,p=i.text;return h&&(p?e.shapeMap["".concat(this.type,"-icon")]=e.addShape("text",{attrs:(0,b.__assign)({x:0,y:0,fontSize:12,fill:"#000",stroke:"#000",textBaseline:"middle",textAlign:"center"},i),className:"".concat(this.type,"-icon"),name:"".concat(this.type,"-icon"),draggable:!0}):e.shapeMap["".concat(this.type,"-icon")]=e.addShape("image",{attrs:(0,b.__assign)({x:-s/2,y:-l/2},i),className:"".concat(this.type,"-icon"),name:"".concat(this.type,"-icon"),draggable:!0})),Ah(t,e,o),this.drawLinkPoints(t,e),o},updateShape:function(t,e,r,n,a){var i=e.get("keyShape");i.attr((0,b.__assign)({},r)),Lh(t,e,i),this.updateLabel(t,e,a),n&&this.updateIcon(t,e)}},"circle");var Ah=function(t,e,r){var n=t.donutAttrs,a=n===void 0?{}:n,i=t.donutColorMap,o=i===void 0?{}:i,s=Object.keys(a).length;if(a&&s>1){var l=yd(a,o),h=l.configs,p=l.totalValue;if(p){var D=md(r),I=D.lineWidth,F=D.arcR,Z=[F,0],ee=0;if(s===1){ed(e,{arcR:F,arcBegin:Z,beginAngle:ee,config:h[0],fanIndex:0,lineWidth:I,totalValue:p,drawWhole:!0});return}for(var se=0;se.999)Z=[r,1e-4],se=1;else{var oe=F*Math.PI*2;ee=a+oe,Z=[r*Math.cos(ee),-r*Math.sin(ee)],se=oe>Math.PI?1:0}var ce={path:[["M",n[0],n[1]],["A",r,r,0,se,0,Z[0],Z[1]],["L",Z[0],Z[1]]],stroke:i.color||(I==null?void 0:I.attr("stroke"))||pd[o%pd.length],lineWidth:s};return I?I.attr(ce):t.shapeMap["".concat(Il).concat(o)]=t.addShape("path",{attrs:ce,name:"".concat(Il).concat(o),draggable:!0}),{beginAngle:ee,arcBegin:Z,shape:t.shapeMap["".concat(Il).concat(o)],shouldEnd:p||F>.999}},Lh=function(t,e,r){var n=t.donutAttrs,a=t.donutColorMap,i=a===void 0?{}:a,o={},s=e.getContainer();if(n){var l=yd(n,i),h=l.configs,p=l.totalValue;if(p)for(var D=md(r),I=D.lineWidth,F=D.arcR,Z=[F,0],ee=0,se=0;se=0;a--){var i=t[a];i.id="".concat(i.x,"|||").concat(i.y),r[i.id]||(r[i.id]=i,e.push(i))}return e},Ed=function(t){return td(t)},Jg=function(t,e){return[t,{x:t.x,y:e.y},e]},Bl=function(t,e){return t.width||t.height?{centerX:t.centerX,centerY:t.centerY,minX:t.minX-e,minY:t.minY-e,maxX:t.maxX+e,maxY:t.maxY+e,height:t.height+2*e,width:t.width+2*e}:t},Nh=function(t,e){var r=Math.abs(t.x-e.centerX),n=Math.abs(t.y-e.centerY);return r===0&&n===0?0:r/e.width>n/e.height},rd=function(t,e,r){var n=Nh(e,t);if(n===0){var a=t.centerX,i=t.centerY;return r.ye.x?a=t.maxX:r.xt.centerX?t.maxX:t.minX,y:e.y}:{x:e.x,y:e.y>t.centerY?t.maxY:t.minY}},bd=function(t,e){var r=Math.min(t.minX,e.minX),n=Math.min(t.minY,e.minY),a=Math.max(t.maxX,e.maxX),i=Math.max(t.maxY,e.maxY);return{centerX:(r+a)/2,centerY:(n+i)/2,minX:r,minY:n,maxX:a,maxY:i,height:i-n,width:a-r}},nd=function(t){return[{x:t.minX,y:t.minY},{x:t.maxX,y:t.minY},{x:t.maxX,y:t.maxY},{x:t.minX,y:t.maxY}]},Fl=function(t,e){var r=t.x,n=t.y;return re.maxX||ne.maxY},Ph=function(t,e){return et.maxX?[]:[{x:e,y:t.minY},{x:e,y:t.maxY}]},kh=function(t,e){return et.maxY?[]:[{x:t.minX,y:e},{x:t.maxX,y:e}]},Rh=function(t,e){return Ph(t,e.x).concat(kh(t,e.y))},Ol=function(t,e){return Math.abs(t.x-e.x)+Math.abs(t.y-e.y)},Bh=function(t,e){var r=-2,n=0;return e.forEach(function(a){a&&(t.x===a.x&&(n+=r),t.y===a.y&&(n+=r))}),n},xd=function(t,e,r,n,a){return Ol(t,e)+Ol(t,r)+Bh(t,[e,r,n,a])},Fh=function c(t,e,r,n,a){a===void 0&&(a=0),t.unshift(e[n]),r[n]&&r[n]!==n&&a<=100&&c(t,e,r,r[n],a+1)},qg=function(t,e){var r=t.indexOf(e);r>-1&&t.splice(r,1)},Gl=function(t,e,r,n){var a=r.x-t.x,i=r.y-t.y,o=n.x-t.x,s=n.y-t.y,l=r.x-e.x,h=r.y-e.y,p=n.x-e.x,D=n.y-e.y,I=a*s-i*o,F=l*D-h*p,Z=a*h-i*l,ee=o*D-s*p;return I*F<=0&&Z*ee<=0},ad=function(t,e,r){if(r.width||r.height){var n=nd(r),a=n[0],i=n[1],o=n[2],s=n[3];return Gl(t,e,a,i)||Gl(t,e,a,s)||Gl(t,e,i,o)||Gl(t,e,o,s)}return!1},Gh=function(t,e,r,n){var a=[];return t.forEach(function(i){if(i!==e&&(i.x===e.x||i.y===e.y)){if(ad(i,e,r)||ad(i,e,n))return;a.push(i)}}),td(a)},zh=function(t,e,r,n,a,i,o){var s,l=[],h=(s={},s[e.id]=e,s),p={},D={},I={};D[e.id]=0,I[e.id]=xd(e,r,e);var F=new _d;F.add({id:e.id,value:I[e.id]});var Z={};t.forEach(function(Re){Z[Re.id]=Re});for(var ee;Object.keys(h).length;){var se=F.minId(!1);if(se)ee=h[se];else break;if(ee===r){var oe=[];return Fh(oe,Z,p,r.id),oe}delete h[ee.id],F.remove(ee.id),l.push(ee);var ce=Gh(t,ee,n,a),we=function(Oe){Oe.forEach(function(Pe){if(l.indexOf(Pe)===-1){var He=Pe.id;h[He]||(h[He]=Pe);var at=I[ee.id]+Ol(ee,Pe);if(D[He]&&at>=D[He]){F.add({id:He,value:I[He]});return}p[He]=ee.id,D[He]=at,I[He]=D[He]+xd(Pe,r,e,i,o),F.add({id:He,value:I[He]})}})};we(ce)}return[e,r]},Uh=function(t,e,r){return!(t.x===e.x&&e.x===r.x||t.y===e.y&&e.y===r.y)},Wh=function(t,e,r,n){var a=Ol(t,e),i=Ol(r,e);a=0;i--){var o=t[i];if(o.x===r.x?n.push(o):(n=[o],r.x=o.x),o.y===r.y?a.push(o):(a=[o],r.y=o.y),n.length>2){var s=t.indexOf(n[1]);s>-1&&t.splice(s,1);continue}if(a.length>2){var s=t.indexOf(a[1]);s>-1&&t.splice(s,1)}}return t},_d=function(){function c(){this.arr=[],this.map={},this.arr=[],this.map={}}return c.prototype._innerAdd=function(t,e){for(var r=[0,e-1];r[1]-r[0]>1;){var n=Math.floor((r[0]+r[1])/2);if(this.arr[n].value>t.value)r[1]=n;else if(this.arr[n].value=0;e--)this.map[this.arr[e].id]?t=this.arr[e].id:this.arr.splice(e,1);return t},c.prototype._findFirstId=function(){for(;this.arr.length;){var t=this.arr.shift();if(this.map[t.id])return t.id}},c.prototype.minId=function(t){return t?this._clearAndGetMinId():this._findFirstId()},c}(),Xh=function(t,e){return Math.abs(t.x-e.x)+Math.abs(t.y-e.y)},Vh=function(t,e){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))},Yh=function(t,e){return[t,e]},Hh=function(t,e,r,n,a){return Ed(Sd(t,e,r,n,a.offset))},Zh={offset:20,maxAllowedDirectionChange:Math.PI/2,maximumLoops:2e3,gridSize:10,directions:[{stepX:1,stepY:0},{stepX:-1,stepY:0},{stepX:0,stepY:1},{stepX:0,stepY:-1}],get penalties(){return{0:0,45:this.gridSize/2,90:this.gridSize/2}},distFunc:Xh,fallbackRoute:Hh},ep={maxAllowedDirectionChange:Math.PI/4,directions:[{stepX:1,stepY:0},{stepX:1,stepY:1},{stepX:0,stepY:1},{stepX:-1,stepY:1},{stepX:-1,stepY:0},{stepX:-1,stepY:-1},{stepX:0,stepY:-1},{stepX:1,stepY:-1}],distFunc:Vh,fallbackRoute:Yh},Wu=function(t,e){var r=Math.round(Math.abs(t/e)),n=t<0?-1:1;return r<0?0:n*r},Kh=function(t,e,r){var n={};return t.forEach(function(a){if(!!a)for(var i=Bl(a.getBBox(),r),o=Wu(i.minX,e);o<=Wu(i.maxX,e);o+=1)for(var s=Wu(i.minY,e);s<=Wu(i.maxY,e);s+=1)n["".concat(o,"|||").concat(s)]=!0}),n},id=function(t,e){var r=e.x-t.x,n=e.y-t.y;return r||n?Math.atan2(n,r):0},Md=function(t,e){var r=Math.abs(t-e);return r>Math.PI?2*Math.PI-r:r},Cd=function(t,e,r){for(var n=Infinity,a=0,i=e.length;al.minX&&e.xl.minY&&e.y0&&Oe>0;){var lr=ce.minId((Oe+1)%30==0);if(lr)Pe=F[lr];else break;if(fr["".concat(Pe.x,"|||").concat(Pe.y)])return $h(Pe,ee,h,e,t,p,s);delete F[Pe.id],ce.remove(Pe.id),Z[Pe.id]=!0;for(var we=0;wei.maxAllowedDirectionChange)&&!l[Kt])){F[Kt]||(F[Kt]=at);var jr=o[Ft];qe=i.distFunc(Pe,at)+(isNaN(jr)?s:jr),yt=se[Pe.id]+qe;var Xr=se[Kt];Xr&&yt>=Xr||(ee[Kt]=Pe,se[Kt]=yt,oe[Kt]=yt+Cd(at,I,i.distFunc),ce.add({id:Kt,value:oe[Kt]}))}}Oe-=1}return i.fallbackRoute(t,e,r,n,i)};Sc("polyline",{options:{color:Kr.defaultEdge.color,size:Kr.defaultEdge.size,style:{radius:0,offset:15,x:0,y:0,stroke:Kr.defaultEdge.style.stroke,lineAppendWidth:Kr.defaultEdge.style.lineAppendWidth},labelCfg:{style:{fill:Kr.edgeLabel.style.fill,fontSize:Kr.edgeLabel.style.fontSize,fontFamily:Kr.windowFontFamily}},routeCfg:{obstacles:[],maxAllowedDirectionChange:Math.PI,maximumLoops:500,gridSize:10},stateStyles:(0,b.__assign)({},Kr.edgeStateStyles)},shapeType:"polyline",labelPosition:"center",drawShape:function(t,e){var r=this.getShapeStyle(t);r.radius===0&&delete r.radius;var n=e.addShape("path",{className:"edge-shape",name:"edge-shape",attrs:r});return e.shapeMap["edge-shape"]=n,n},getShapeStyle:function(t){var e=this.options.style,r={stroke:t.color},n=(0,m.mix)({},e,r,t.style);t=this.getPathPoints(t),this.radius=n.radius,this.offset=n.offset;var a=t.startPoint,i=t.endPoint,o=this.getControlPoints(t),s=[a];o&&(s=s.concat(o)),s.push(i);var l=t.sourceNode,h=t.targetNode,p=n.radius,D=this.options.routeCfg,I=(0,m.mix)({},D,t.routeCfg);I.offset=n.offset;var F=this.getPath(s,l,h,p,I,!Boolean(o));((0,m.isArray)(F)&&F.length<=1||(0,m.isString)(F)&&F.indexOf("L")===-1)&&(F="M0 0, L0 0"),(isNaN(a.x)||isNaN(a.y)||isNaN(i.x)||isNaN(i.y))&&(F="M0 0, L0 0");var Z=(0,m.mix)({},Kr.defaultEdge.style,n,{lineWidth:t.size,path:F});return Z},updateShapeStyle:function(t,e){var r=e.getContainer();if(!!e.isVisible()){var n={stroke:t.color},a=r.shapeMap["edge-shape"]||r.find(function(we){return we.get("className")==="edge-shape"})||e.getKeyShape(),i=t.size;t=this.getPathPoints(t);var o=t.startPoint,s=t.endPoint,l=this.getControlPoints(t),h=[o];l&&(h=h.concat(l)),h.push(s);var p=a.attr(),D=(0,m.mix)({},n,p,t.style),I=t.sourceNode,F=t.targetNode,Z=D.radius,ee=this.options.routeCfg,se=(0,m.mix)({},ee,t.routeCfg);se.offset=D.offset;var oe=this.getPath(h,I,F,Z,se,!Boolean(l));((0,m.isArray)(oe)&&oe.length<=1||(0,m.isString)(oe)&&oe.indexOf("L")===-1)&&(oe="M0 0, L0 0"),(isNaN(o.x)||isNaN(o.y)||isNaN(s.x)||isNaN(s.y))&&(oe="M0 0, L0 0"),p.endArrow&&D.endArrow===!1&&(t.style.endArrow={path:""}),p.startArrow&&D.startArrow===!1&&(t.style.startArrow={path:""});var ce=(0,m.mix)(n,a.attr(),{lineWidth:i,path:oe},t.style);a&&a.attr(ce)}},getPath:function(t,e,r,n,a,i){var o=a.offset,s=a.obstacles,l=a.simple;if(!o||t.length>2||i===!1){if(n)return wd(t,n);var h=[];return(0,m.each)(t,function(F,Z){Z===0?h.push(["M",F.x,F.y]):h.push(["L",F.x,F.y])}),h}l!==!1&&!(s==null?void 0:s.length)&&(l=!0);var p=l?Sd(t[t.length-1],t[0],r,e,o):Qh(t[0],t[t.length-1],e,r,a);if(!p||!p.length)return"M0 0, L0 0";if(n){var D=wd(p,n);return D}p=jh(p);var I=ki.pointsToPolygon(p);return I}},"single-edge");var Id=Vo.cloneEvent,Od=Vo.isNaN,Ad=Math.abs,Jh=10,qh=["shift","ctrl","alt","control"],ev={getDefaultCfg:function(){return{direction:"both",enableOptimize:!1,scalableRange:0,allowDragOnItem:!1}},getEvents:function(){return{mousedown:"onMouseDown",drag:"onDragMove",dragend:"onMouseUp","canvas:click":"onMouseUp",keyup:"onKeyUp",focus:"onKeyUp",keydown:"onKeyDown",touchstart:"onTouchStart",touchmove:"onTouchMove",touchend:"onMouseUp"}},updateViewport:function(t){var e=this.origin,r=+t.clientX,n=+t.clientY;if(!(Od(r)||Od(n))){var a=r-e.x,i=n-e.y;this.get("direction")==="x"?i=0:this.get("direction")==="y"&&(a=0),this.origin={x:r,y:n};var o=this.graph.get("width"),s=this.graph.get("height"),l=this.graph.get("canvas").getCanvasBBox(),h=this.scalableRange,p=this.scalableRange;h<1&&h>-1&&(h=o*h,p=s*p),(l.minX<=o+h&&l.minX+a>o+h||l.maxX+h>=0&&l.maxX+h+a<0)&&(a=0),(l.minY<=s+p&&l.minY+i>s+p||l.maxY+p>=0&&l.maxY+p+i<0)&&(i=0),this.graph.translate(a,i)}},onTouchStart:function(t){var e=this,r=t.originalEvent.touches,n=r[0],a=r[1];n&&a||(t.preventDefault(),this.mousedown=!0,e.onDragStart(t))},onMouseDown:function(t){this.mousedown=!0},onDragMove:function(t){!this.mousedown||(this.dragstart?this.onDrag(t):(this.dragstart=!0,this.onDragStart(t)))},onDragStart:function(t){var e=this,r=t.originalEvent;if(!(r&&t.name!=="touchstart"&&r.button!==0)&&!(t.name!=="touchstart"&&typeof window!="undefined"&&window.event&&!window.event.buttons&&!window.event.button)&&!!this.shouldBegin(t,this)&&!e.keydown&&!!this.allowDrag(t)){if(e.origin={x:t.clientX,y:t.clientY},e.dragging=!1,this.enableOptimize){for(var n=this.graph,a=n.getEdges(),i=0,o=a.length;is)for(var I=n.getNodes(),F=0,Z=I.length;F-1?e.keydown=!0:e.keydown=!1)},onKeyUp:function(){this.keydown=!1,this.origin=null,this.dragging=!1,this.dragbegin=!1},allowDrag:function(t){var e,r,n=t.target,a=n&&n.isCanvas&&n.isCanvas();if((0,m.isBoolean)(this.allowDragOnItem)&&!this.allowDragOnItem&&!a)return!1;if((0,m.isObject)(this.allowDragOnItem)){var i=this.allowDragOnItem,o=i.node,s=i.edge,l=i.combo,h=(r=(e=t.item)===null||e===void 0?void 0:e.getType)===null||r===void 0?void 0:r.call(e);if(!o&&h==="node"||!s&&h==="edge"||!l&&h==="combo")return!1}return!0}},tv={getDefaultCfg:function(){return{updateEdge:!0,delegateStyle:{},enableDelegate:!1,onlyChangeComboSize:!1,comboActiveState:"",selectedState:"selected",enableOptimize:!1,enableDebounce:!1,enableStack:!0}},getEvents:function(){return{"node:mousedown":"onMouseDown",drag:"onDragMove",dragend:"onDragEnd","combo:dragenter":"onDragEnter","combo:dragleave":"onDragLeave","combo:drop":"onDropCombo","node:drop":"onDropNode","canvas:drop":"onDropCanvas",touchstart:"onTouchStart",touchmove:"onTouchMove",touchend:"onDragEnd",afterchangedata:"onDragEnd"}},validationCombo:function(t){if(!this.origin||!t||t.destroyed)return!1;var e=t.getType();return e==="combo"},onTouchStart:function(t){if(!!t.item){var e=this;try{var r=t.originalEvent.touches,n=r[0],a=r[1];if(n&&a)return;t.preventDefault()}catch(i){console.warn("Touch original event not exist!")}this.mousedown={item:t.item,target:t.target,origin:{x:t.x,y:t.y}},this.dragstart=!0,e.onDragStart(t)}},onTouchMove:function(t){var e=this;try{var r=t.originalEvent.touches,n=r[0],a=r[1];if(n&&a){e.onDragEnd(t);return}t.preventDefault()}catch(i){console.warn("Touch original event not exist!")}e.onDrag(t)},onMouseDown:function(t){this.mousedown={item:t.item,target:t.target,origin:{x:t.x,y:t.y}},typeof window!="undefined"&&!this.windowEventBinded&&(this.windowEventBinded=!0,document.body.addEventListener("contextmenu",this.onDragEnd.bind(this)),document.body.addEventListener("mouseup",this.onDragEnd.bind(this)))},onDragMove:function(t){var e,r;if(((r=(e=t.item)===null||e===void 0?void 0:e.getType)===null||r===void 0?void 0:r.call(e))!=="node"){this.onDragEnd();return}!this.mousedown||(this.dragstart?this.onDrag((0,b.__assign)((0,b.__assign)({},t),this.mousedown)):(this.dragstart=!0,this.onDragStart(t)))},onDragStart:function(t){var e=this;if(this.currentShouldEnd=!0,!!this.shouldBegin((0,b.__assign)((0,b.__assign)({},t),this.mousedown),this)){var r=this.mousedown,n=r.item,a=r.target;if(!(!n||n.destroyed||n.hasLocked())){var i=n.getContainer();if(i.set("capture",!1),this.cachedCaptureItems||(this.cachedCaptureItems=[]),this.cachedCaptureItems.push(n),a){var o=a.get("isAnchorPoint");if(o)return}var s=this.graph;this.targets=[],this.targetCombo=null;var l=s.findAllByState("node",this.selectedState),h=n.get("id"),p=l.filter(function(I){var F=I.get("id");return h===F});if(p.length===0?this.targets.push(n):l.length>1?l.forEach(function(I){var F=I.hasLocked();F||e.targets.push(I)}):this.targets.push(n),this.graph.get("enabledStack")&&this.enableStack){var D=[];this.targets.forEach(function(I){var F=I.getModel(),Z=F.x,ee=F.y,se=F.id;D.push({x:Z,y:ee,id:se})}),this.set("beforeDragNodes",D)}this.hidenEdge={},this.get("updateEdge")&&this.enableOptimize&&!this.enableDelegate&&this.targets.forEach(function(I){var F=I.getEdges();F.forEach(function(Z){!Z.isVisible()||(e.hidenEdge[Z.getID()]=!0,Z.hide())})}),this.origin=this.mousedown.origin,this.point={},this.originPoint={}}}},onDrag:function(t){var e=this;if(!(!this.mousedown||!this.origin)&&!!this.shouldUpdate(t,this))if(this.get("enableDelegate"))this.updateDelegate(t);else if(this.enableDebounce)this.debounceUpdate({targets:this.targets,graph:this.graph,point:this.point,origin:this.origin,evt:t,updateEdge:this.get("updateEdge"),onlyChangeComboSize:this.onlyChangeComboSize,updateParentCombos:this.updateParentCombos});else{var r={};this.targets.map(function(n){e.update(n,t);var a=n.getModel().comboId;a&&(r[a]=e.graph.findById(a))}),this.onlyChangeComboSize&&this.updateParentCombos()}},onDragEnd:function(t){var e=this,r;if(this.mousedown=!1,this.dragstart=!1,typeof window!="undefined"&&this.windowEventBinded&&(this.windowEventBinded=!1,document.body.removeEventListener("contextmenu",this.onDragEnd.bind(this)),document.body.removeEventListener("mouseup",this.onDragEnd.bind(this))),!!this.origin){(r=this.cachedCaptureItems)===null||r===void 0||r.forEach(function(i){var o=i.getContainer();o.set("capture",!0)}),this.cachedCaptureItems=[],this.delegateRect&&(this.delegateRect.remove(),this.delegateRect=null),this.get("updateEdge")&&this.enableOptimize&&!this.enableDelegate&&this.targets.forEach(function(i){var o=i.getEdges();o.forEach(function(s){e.hidenEdge[s.getID()]&&s.show(),s.refresh()})}),this.hidenEdge={};var n=this.graph;if(n.get("enabledStack")&&this.enableStack){var a={before:{nodes:[],edges:[],combos:[]},after:{nodes:[],edges:[],combos:[]}};this.get("beforeDragNodes").forEach(function(i){a.before.nodes.push(i)}),this.targets.forEach(function(i){var o=i.getModel(),s=o.x,l=o.y,h=o.id;a.after.nodes.push({x:s,y:l,id:h})}),n.pushStack("update",(0,m.clone)(a))}n.emit("dragnodeend",{items:this.targets,targetItem:null}),this.point={},this.origin=null,this.originPoint={},this.targets.length=0,this.targetCombo=null}},onDropCombo:function(t){var e=t.item;if(this.currentShouldEnd=this.shouldEnd(t,e,this),this.updatePositions(t,!this.currentShouldEnd),!(!this.currentShouldEnd||!this.validationCombo(e))){var r=this.graph;if(this.comboActiveState&&r.setItemState(e,this.comboActiveState,!1),this.targetCombo=e,this.onlyChangeComboSize)r.updateCombos();else{var n=e.getModel();this.targets.map(function(a){var i=a.getModel();i.comboId!==n.id&&r.updateComboTree(a,n.id)}),r.updateCombo(e)}r.emit("dragnodeend",{items:this.targets,targetItem:this.targetCombo})}},onDropCanvas:function(t){var e=this.graph;this.currentShouldEnd=this.shouldEnd(t,void 0,this),this.updatePositions(t,!this.currentShouldEnd),!(!this.targets||this.targets.length===0||!this.currentShouldEnd)&&(this.onlyChangeComboSize?this.updateParentCombos():this.targets.map(function(r){var n=r.getModel();n.comboId&&e.updateComboTree(r)}))},onDropNode:function(t){if(!(!this.targets||this.targets.length===0)){var e=this,r=t.item,n=e.graph,a=r.getModel().comboId,i=a?n.findById(a):void 0;if(this.currentShouldEnd=this.shouldEnd(t,i,this),this.updatePositions(t,!this.currentShouldEnd),!!this.currentShouldEnd){if(this.onlyChangeComboSize)this.updateParentCombos();else if(a){var o=n.findById(a);e.comboActiveState&&n.setItemState(o,e.comboActiveState,!1),this.targets.map(function(s){var l=s.getModel();a!==l.comboId&&n.updateComboTree(s,a)}),n.updateCombo(o)}else this.targets.map(function(s){var l=s.getModel();l.comboId&&n.updateComboTree(s)});n.emit("dragnodeend",{items:this.targets,targetItem:r})}}},onDragEnter:function(t){var e=t.item;if(!!this.validationCombo(e)){var r=this.graph;this.comboActiveState&&r.setItemState(e,this.comboActiveState,!0)}},onDragLeave:function(t){var e=t.item;if(!!this.validationCombo(e)){var r=this.graph;this.comboActiveState&&r.setItemState(e,this.comboActiveState,!1)}},updatePositions:function(t,e){var r=this;!this.targets||this.targets.length===0||(this.get("enableDelegate")?this.enableDebounce?this.debounceUpdate({targets:this.targets,graph:this.graph,point:this.point,origin:this.origin,evt:t,updateEdge:this.get("updateEdge"),onlyChangeComboSize:this.onlyChangeComboSize,updateParentCombos:this.updateParentCombos}):e||this.targets.map(function(n){return r.update(n,t)}):this.targets.map(function(n){return r.update(n,t,e)}))},update:function(t,e,r){var n=this.origin,a=t.get("model"),i=t.get("id");this.point[i]||(this.point[i]={x:a.x||0,y:a.y||0});var o=e.x-n.x+this.point[i].x,s=e.y-n.y+this.point[i].y;r&&(o+=n.x-e.x,s+=n.y-e.y);var l={x:o,y:s};this.get("updateEdge")?this.graph.updateItem(t,l,!1):t.updatePosition(l)},debounceUpdate:(0,m.debounce)(function(c){var t=c.targets,e=c.graph,r=c.point,n=c.origin,a=c.evt,i=c.updateEdge,o=c.onlyChangeComboSize,s=c.updateParentCombos;t.map(function(l){var h=l.get("model"),p=l.get("id");r[p]||(r[p]={x:h.x||0,y:h.y||0});var D=a.x-n.x+r[p].x,I=a.y-n.y+r[p].y,F={x:D,y:I};i?e.updateItem(l,F,!1):l.updatePosition(F)}),o&&s(e,t)},50,!0),updateDelegate:function(t){var e=this.graph;if(this.delegateRect){var D=t.x-this.origin.x+this.originPoint.minX,I=t.y-this.origin.y+this.originPoint.minY;this.delegateRect.attr({x:D,y:I})}else{var r=e.get("group"),n=(0,m.deepMix)({},wo.delegateStyle,this.delegateStyle),a=this.calculationGroupPosition(t),i=a.x,o=a.y,s=a.width,l=a.height,h=a.minX,p=a.minY;this.originPoint={x:i,y:o,width:s,height:l,minX:h,minY:p},this.delegateRect=r.addShape("rect",{attrs:(0,b.__assign)({width:s,height:l,x:i,y:o},n),name:"rect-delegate-shape"}),this.delegate=this.delegateRect,this.delegateRect.set("capture",!1)}},calculationGroupPosition:function(t){var e=this.targets;e.length===0&&e.push(t.item);for(var r=Infinity,n=-Infinity,a=Infinity,i=-Infinity,o=0;on&&(n=D),I>i&&(i=I)}var F=Math.floor(r),Z=Math.floor(a),ee=Math.ceil(n)-Math.floor(r),se=Math.ceil(i)-Math.floor(a);return{x:F,y:Z,width:ee,height:se,minX:r,minY:a}},updateParentCombos:function(t,e){var r=t||this.graph,n=e||this.targets,a={};n==null||n.forEach(function(i){var o=i.getModel().comboId;o&&(a[o]=r.findById(o))}),Object.values(a).forEach(function(i){i&&r.updateCombo(i)})}},rv={getDefaultCfg:function(){return{trigger:"mouseenter",activeState:"active",inactiveState:"inactive",resetSelected:!1,shouldUpdate:function(){return!0}}},getEvents:function(){return this.get("trigger")==="mouseenter"?{"node:mouseenter":"setAllItemStates","combo:mouseenter":"setAllItemStates","node:mouseleave":"clearActiveState","combo:mouseleave":"clearActiveState"}:{"node:click":"setAllItemStates","combo:click":"setAllItemStates","canvas:click":"clearActiveState","node:touchstart":"setOnTouchStart","combo:touchstart":"setOnTouchStart","canvas:touchstart":"clearOnTouchStart"}},setOnTouchStart:function(t){var e=this;try{var r=t.originalEvent.touches,n=r[0],a=r[1];if(n&&a)return;t.preventDefault()}catch(i){console.warn("Touch original event not exist!")}e.setAllItemStates(t)},clearOnTouchStart:function(t){var e=this;try{var r=t.originalEvent.touches,n=r[0],a=r[1];if(n&&a)return;t.preventDefault()}catch(i){console.warn("Touch original event not exist!")}e.clearActiveState(t)},setAllItemStates:function(t){clearTimeout(this.timer),this.throttleSetAllItemStates(t,this)},clearActiveState:function(t){var e=this;this.timer=setTimeout(function(){e.throttleClearActiveState(t,e)},50)},throttleSetAllItemStates:(0,m.throttle)(function(c,t){var e=c.item,r=t.graph;if(!(!r||r.destroyed)&&(t.item=e,!!t.shouldUpdate(c.item,{event:c,action:"activate"},t))){for(var n=t.activeState,a=t.inactiveState,i=r.getNodes(),o=r.getCombos(),s=r.getEdges(),l=r.get("vedges"),h=i.length,p=o.length,D=s.length,I=l.length,F=t.inactiveItems||{},Z=t.activeItems||{},ee=0;ee-1||(this.trigger=Nd,console.warn("Behavior brush-select \u7684 trigger \u53C2\u6570\u4E0D\u5408\u6CD5\uFF0C\u8BF7\u8F93\u5165 'drag'\u3001'shift'\u3001'ctrl' \u6216 'alt'")),this.trigger==="drag"?{dragstart:"onMouseDown",drag:"onMouseMove",dragend:"onMouseUp","canvas:click":"clearStates"}:{dragstart:"onMouseDown",drag:"onMouseMove",dragend:"onMouseUp","canvas:click":"clearStates",keyup:"onKeyUp",keydown:"onKeyDown"}},onMouseDown:function(t){var e=t.item,r=this.brush;e||this.trigger!=="drag"&&!this.keydown||(this.selectedNodes&&this.selectedNodes.length!==0&&this.clearStates(),r||(r=this.createBrush()),this.originPoint={x:t.canvasX,y:t.canvasY},r.attr({width:0,height:0}),r.show(),this.dragging=!0)},onMouseMove:function(t){!this.dragging||this.trigger!=="drag"&&!this.keydown||this.updateBrush(t)},onMouseUp:function(t){var e=this.graph;!this.brush&&!this.dragging||this.trigger!=="drag"&&!this.keydown||(this.brush.remove(!0),this.brush=null,this.getSelectedNodes(t),this.dragging=!1)},clearStates:function(){var t=this,e=t.graph,r=t.selectedState,n=e.findAllByState("node",r),a=e.findAllByState("edge",r),i=e.findAllByState("combo",r);n.forEach(function(o){return e.setItemState(o,r,!1)}),a.forEach(function(o){return e.setItemState(o,r,!1)}),i.forEach(function(o){return e.setItemState(o,r,!1)}),this.selectedNodes=[],this.selectedEdges=[],this.selectedCombos=[],this.onDeselect&&this.onDeselect(this.selectedNodes,this.selectedEdges,this.selectedCombos),e.emit("nodeselectchange",{selectedItems:{nodes:[],edges:[],combos:[]},select:!1})},isBBoxCenterInRect:function(t,e,r,n,a){var i=t.getBBox();return i.centerX>=e&&i.centerX<=r&&i.centerY>=n&&i.centerY<=a},getSelectedNodes:function(t){var e=this,r=this,n=r.graph,a=r.originPoint,i=r.shouldUpdate,o=r.isBBoxCenterInRect,s=this.selectedState,l={x:t.x,y:t.y},h=n.getPointByCanvas(a.x,a.y),p=zl(l.x,h.x),D=Ld(l.x,h.x),I=zl(l.y,h.y),F=Ld(l.y,h.y),Z=[],ee=[];n.getNodes().forEach(function(ce){if(ce.isVisible()&&o(ce,p,D,I,F)&&i(ce,"select",e)){Z.push(ce);var we=ce.getModel();ee.push(we.id),n.setItemState(ce,s,!0)}});var se=[];this.includeEdges&&Z.forEach(function(ce){var we=ce.getOutEdges();we.forEach(function(Re){if(!!Re.isVisible()){var Oe=Re.getModel(),Pe=Oe.source,He=Oe.target;ee.includes(Pe)&&ee.includes(He)&&i(Re,"select",e)&&(se.push(Re),n.setItemState(Re,e.selectedState,!0))}})});var oe=[];this.includeCombos&&n.getCombos().forEach(function(ce){if(ce.isVisible()&&o(ce,p,D,I,F)&&i(ce,"select",e)){oe.push(ce);var we=ce.getModel();ee.push(we.id),n.setItemState(ce,s,!0)}}),this.selectedEdges=se,this.selectedNodes=Z,this.selectedCombos=oe,this.onSelect&&this.onSelect(Z,se,oe),n.emit("nodeselectchange",{selectedItems:{nodes:Z,edges:se,combos:oe},select:!0})},createBrush:function(){var t=this,e=t.graph.get("canvas").addShape("rect",{attrs:t.brushStyle,capture:!1,name:"brush-shape"});return this.brush=e,this.delegate=e,e},updateBrush:function(t){var e=this.originPoint;this.brush.attr({width:Dd(t.canvasX-e.x),height:Dd(t.canvasY-e.y),x:zl(t.canvasX,e.x),y:zl(t.canvasY,e.y)})},onKeyDown:function(t){var e=t.key;if(!!e){var r=this.trigger.toLowerCase(),n=e.toLowerCase();n===r||n==="control"&&r==="ctrl"||n==="ctrl"&&r==="control"?this.keydown=!0:this.keydown=!1}},onKeyUp:function(){this.brush&&(this.brush.remove(!0),this.brush=null,this.dragging=!1),this.keydown=!1}},Pd="shift",iv=["shift","ctrl","alt","control"],ov={getDefaultCfg:function(){return{multiple:!0,trigger:Pd,selectedState:"selected",selectNode:!0,selectEdge:!1,selectCombo:!0}},getEvents:function(){var t=this;return iv.indexOf(t.trigger.toLowerCase())>-1||(t.trigger=Pd,console.warn("Behavior click-select \u7684 trigger \u53C2\u6570\u4E0D\u5408\u6CD5\uFF0C\u8BF7\u8F93\u5165 'drag'\u3001'shift'\u3001'ctrl' \u6216 'alt'")),t.multiple?{"node:click":"onClick","combo:click":"onClick","edge:click":"onClick","canvas:click":"onCanvasClick",keyup:"onKeyUp",keydown:"onKeyDown"}:{"node:click":"onClick","combo:click":"onClick","edge:click":"onClick","canvas:click":"onCanvasClick"}},onClick:function(t){var e=this,r=t.item;if(!(!r||r.destroyed)){var n=r.getType(),a=e.graph,i=e.keydown,o=e.multiple,s=e.shouldUpdate,l=e.shouldBegin;if(!!l(t,e)){if(!i||!o){var h=a.findAllByState("node",e.selectedState).concat(a.findAllByState("edge",e.selectedState)).concat(a.findAllByState("combo",e.selectedState));(0,m.each)(h,function(Z){Z!==r&&a.setItemState(Z,e.selectedState,!1)})}var p=function(){switch(n){case"node":return e.selectNode;case"edge":return e.selectEdge;case"combo":return e.selectCombo;default:return!1}}();if(!p){var D=a.findAllByState("node",e.selectedState),I=a.findAllByState("edge",e.selectedState),F=a.findAllByState("combo",e.selectedState);a.emit("nodeselectchange",{selectedItems:{nodes:D,edges:I,combos:F},select:!1});return}if(r.hasState(e.selectedState)){s(t,e)&&a.setItemState(r,e.selectedState,!1);var D=a.findAllByState("node",e.selectedState),I=a.findAllByState("edge",e.selectedState),F=a.findAllByState("combo",e.selectedState);a.emit("nodeselectchange",{target:r,selectedItems:{nodes:D,edges:I,combos:F},select:!1})}else{s(t,e)&&a.setItemState(r,e.selectedState,!0);var D=a.findAllByState("node",e.selectedState),I=a.findAllByState("edge",e.selectedState),F=a.findAllByState("combo",e.selectedState);a.emit("nodeselectchange",{target:r,selectedItems:{nodes:D,edges:I,combos:F},select:!0})}}}},onCanvasClick:function(t){var e=this,r=this,n=r.graph,a=r.shouldBegin;if(!!a(t,this)){var i=n.findAllByState("node",this.selectedState);(0,m.each)(i,function(l){n.setItemState(l,e.selectedState,!1)});var o=n.findAllByState("edge",this.selectedState);(0,m.each)(o,function(l){n.setItemState(l,e.selectedState,!1)});var s=n.findAllByState("combo",this.selectedState);(0,m.each)(s,function(l){n.setItemState(l,e.selectedState,!1)}),n.emit("nodeselectchange",{selectedItems:{nodes:[],edges:[],combos:[]},select:!1})}},onKeyDown:function(t){var e=this,r=t.key;!r||(r.toLowerCase()===this.trigger.toLowerCase()||r.toLowerCase()==="control"?e.keydown=!0:e.keydown=!1)},onKeyUp:function(){var t=this;t.keydown=!1}},sv=q.vs,kd=.05,uv={getDefaultCfg:function(){return{sensitivity:2,minZoom:void 0,maxZoom:void 0,enableOptimize:!1,optimizeZoom:.1,fixSelectedItems:{fixAll:!1,fixLineWidth:!1,fixLabel:!1,fixState:"selected"},animate:!1,animateCfg:{duration:500}}},getEvents:function(){var t=this.fixSelectedItems;return t.fixState||(t.fixState="selected"),t.fixAll&&(t.fixLineWidth=!0,t.fixLabel=!0),{wheel:"onWheel",touchstart:"onTouchStart",touchmove:"onTouchMove",touchend:"onTouchEnd"}},onTouchStart:function(t){var e=t.originalEvent.touches,r=e[0],n=e[1];t.preventDefault(),!!n&&(this.shouldBegin&&!this.shouldBegin(t,this)||(this.startPoint={pageX:r.pageX,pageY:r.pageY},this.moveable=!0,n&&(this.endPoint={pageX:n.pageX,pageY:n.pageY}),this.originScale=this.graph.getZoom()||this.currentScale||1))},onTouchMove:function(t){if(!!this.moveable){t.preventDefault();var e=t.originalEvent.touches,r=e[0],n=e[1];if(!!n){this.endPoint||(this.endPoint={pageX:n.pageX,pageY:n.pageY});var a=function(Z,ee){return Math.hypot(ee.x-Z.x,ee.y-Z.y)},i=a({x:r.pageX,y:r.pageY},{x:n.pageX,y:n.pageY})/a({x:this.startPoint.pageX,y:this.startPoint.pageY},{x:this.endPoint.pageX,y:this.endPoint.pageY}),o=this.originScale*i;this.currentScale=o;var s=this.get("minZoom")||this.graph.get("minZoom"),l=this.get("maxZoom")||this.graph.get("maxZoom");if(!(o>l||oI?p=I:pn/2?h-=D.width:h+=this.offset,p>a/2?p-=D.height:p+=this.offset;var I="".concat(h,"px"),F="".concat(p,"px");(0,Kn.Z)(this.container,{left:I,top:F,visibility:"visible"})},createTooltip:function(t){var e=t.get("el");e.style.position="relative";var r=(0,Aa.Z)('
        '));return e.parentNode.appendChild(r),(0,Kn.Z)(r,{position:"absolute",visibility:"visible"}),this.width=t.get("width"),this.height=t.get("height"),this.container=r,this.graph.get("tooltips").push(r),r}},fv=(0,b.__assign)({getDefaultCfg:function(){return{item:"node",offset:12,formatText:function(e){return e.label}}},getEvents:function(){return{"node:mouseenter":"onMouseEnter","node:mouseleave":"onMouseLeave","node:mousemove":"onMouseMove",afterremoveitem:"onMouseLeave"}}},Rd),cv=(0,b.__assign)({getDefaultCfg:function(){return{item:"edge",offset:12,formatText:function(e){return"source: ".concat(e.source," target: ").concat(e.target)}}},getEvents:function(){return{"edge:mouseenter":"onMouseEnter","edge:mouseleave":"onMouseLeave","edge:mousemove":"onMouseMove",afterremoveitem:"onMouseLeave"}}},Rd),Bd="click",lv=["click","dblclick"],dv={getDefaultCfg:function(){return{trigger:Bd,onChange:function(){}}},getEvents:function(){var t,e;return lv.includes(this.trigger)?e=this.trigger:(e=Bd,console.warn("Behavior collapse-expand \u7684 trigger \u53C2\u6570\u4E0D\u5408\u6CD5\uFF0C\u8BF7\u8F93\u5165 'click' \u6216 'dblclick'")),t={},t["node:".concat(e)]="onNodeClick",t.touchstart="onNodeClick",t},onNodeClick:function(t){var e=this;if(this.trigger==="click"){if(this.timer){clearTimeout(this.timer),this.timer=0;return}this.timer=setTimeout(function(){e.toggle(t),clearTimeout(e.timer),e.timer=0},200)}else this.toggle(t)},toggle:function(t){var e=t.item;if(!!e){var r=this.graph.findDataById(e.get("id"));if(!!r){var n=r.children;if(!(!n||n.length===0)){var a=!r.collapsed;!this.shouldBegin(t,a,this)||(r.collapsed=a,e.getModel().collapsed=a,this.graph.emit("itemcollapsed",{item:t.item,collapsed:a}),!!this.shouldUpdate(t,a,this)&&(this.onChange(e,a,this),this.graph.layout()))}}}}},hv=Vo.calculationItemsBBox,vv=function c(t,e){if(e(t)!==!1&&t){var r=t.get("combos");if(r.length===0)return!1;(0,m.each)(r,function(n){c(n,e)})}},gv={getDefaultCfg:function(){return{enableDelegate:!1,delegateStyle:{},onlyChangeComboSize:!1,activeState:"",selectedState:"selected",enableStack:!0}},getEvents:function(){return{"combo:mousedown":"onMouseDown","combo:dragstart":"onDragStart","combo:drag":"onDrag","combo:dragend":"onDragEnd","combo:drop":"onDrop","node:drop":"onNodeDrop","combo:dragenter":"onDragEnter","combo:dragleave":"onDragLeave"}},validationCombo:function(t){var e=t.item;if(!e||e.destroyed||!this.shouldUpdate(t,this))return!1;var r=e.getType();return r==="combo"},onMouseDown:function(t){this.origin={x:t.x,y:t.y}},onDragStart:function(t){var e=this,r=this.graph,n=t.item;if(this.currentShouldEnd=!0,!!this.validationCombo(t)){this.targets=[];var a=r.findAllByState("combo",this.selectedState),i=n.get("id"),o=a.filter(function(l){var h=l.get("id");return i===h});o.length===0?this.targets.push(n):this.targets=a;var s=[];this.targets.forEach(function(l){var h=l.getModel(),p=h.x,D=h.y,I=h.id;s.push({x:p,y:D,id:I})}),this.set("beforeDragItems",s),this.activeState&&this.targets.map(function(l){var h=l.getModel();if(h.parentId){var p=r.findById(h.parentId);p&&r.setItemState(p,e.activeState,!0)}}),this.point={},this.originPoint={},this.currentItemChildCombos=[],vv(n,function(l){if(l.destroyed)return!1;var h=l.getModel();return e.currentItemChildCombos.push(h.id),!0})}},onDrag:function(t){var e=this;if(!!this.origin&&!!this.validationCombo(t))if(this.enableDelegate)this.updateDelegate(t);else{if(this.activeState){var r=this.graph,n=t.item,a=n.getModel(),i=r.getCombos(),o=n.getBBox(),s=o.centerX,l=o.centerY,h=o.width,p=i.filter(function(D){var I=D.getModel();return a.parentId,I.id!==a.id&&!e.currentItemChildCombos.includes(I.id)});p.map(function(D){var I=D.getBBox(),F=I.centerX,Z=I.centerY,ee=I.width,se=s-F,oe=l-Z,ce=2*Math.sqrt(se*se+oe*oe);h+ee-ce>.8*h?r.setItemState(D,e.activeState,!0):r.setItemState(D,e.activeState,!1)})}(0,m.each)(this.targets,function(D){e.updateCombo(D,t)}),this.onlyChangeComboSize&&this.updateParentCombos()}},updatePositions:function(t,e){var r=this;(this.enableDelegate||e)&&(0,m.each)(this.targets,function(n){r.updateCombo(n,t,e)})},onDrop:function(t){var e=this,r=t.item;if(this.currentShouldEnd=this.shouldEnd(t,r,this),this.updatePositions(t,!this.currentShouldEnd),!(!this.currentShouldEnd||!r||!this.targets||r.destroyed)){var n=this.graph,a=r.getModel();this.targets.map(function(i){var o=i.getModel();o.parentId!==a.id?(e.activeState&&n.setItemState(r,e.activeState,!1),e.onlyChangeComboSize?n.updateCombo(i):n.updateComboTree(i,a.id,!1)):n.updateCombo(r)}),this.end(r,t),this.endComparison=!0}},onNodeDrop:function(t){var e=this;if(!(!this.targets||this.targets.length===0)){var r=this.graph,n=t.item,a=n.getModel().comboId,i=a?r.findById(a):void 0;if(this.currentShouldEnd=this.shouldEnd(t,i,this),this.updatePositions(t,!this.currentShouldEnd),!!this.currentShouldEnd){var o;if(a){if(this.activeState){var s=r.findById(a);r.setItemState(s,this.activeState,!1)}this.targets.map(function(l){e.onlyChangeComboSize?r.updateCombo(l):a!==l.getID()&&(o=r.findById(a),a!==l.getModel().parentId&&r.updateComboTree(l,a,!1))})}else this.targets.map(function(l){if(e.onlyChangeComboSize)r.updateCombo(l);else{var h=l.getModel();h.comboId&&r.updateComboTree(l,void 0,!1)}});this.endComparison=!0,this.end(o,t)}}},onDragEnter:function(t){if(!!this.origin&&!!this.validationCombo(t)){var e=t.item,r=this.graph;this.activeState&&r.setItemState(e,this.activeState,!0)}},onDragLeave:function(t){if(!!this.origin&&!!this.validationCombo(t)){var e=t.item,r=this.graph;this.activeState&&r.setItemState(e,this.activeState,!1)}},onDragEnd:function(t){if(!(!this.targets||this.targets.length===0)){var e=t.item;this.currentShouldEnd&&this.updatePositions(t);var r=this.getParentCombo(e.getModel().parentId),n=this.graph;r&&this.activeState&&n.setItemState(r,this.activeState,!1),this.end(void 0,t)}},end:function(t,e){var r=this;if(!!this.origin){var n=this.graph;if(this.delegateShape){var a=n.get("delegateGroup");a.clear(),this.delegateShape=null}if(t&&this.activeState&&n.setItemState(t,this.activeState,!1),!t){var i=n.get("enabledStack")&&this.enableStack,o={before:{nodes:[],edges:[],combos:[].concat(this.get("beforeDragItems"))},after:{nodes:[],edges:[],combos:[]}};this.targets.map(function(s){if(!r.onlyChangeComboSize)n.updateComboTree(s,void 0,i);else{n.updateCombo(s);var l=s.getModel(),h=l.x,p=l.y,D=l.id;o.after.combos.push({x:h,y:p,id:D}),n.pushStack("update",o)}})}this.point=[],this.origin=null,this.originPoint=null,this.targets.length=0}},traverse:function(t,e,r){var n=this;if(r===void 0&&(r={}),e(t,r)!==!1&&t){var a=t.get("combos");(0,m.each)(a,function(o){n.traverse(o,e,r)});var i=t.get("nodes");(0,m.each)(i,function(o){n.traverse(o,e,r)})}},updateCombo:function(t,e,r){this.updateSingleItem(t,e,r);var n={};this.traverse(t,function(a,i){return a.destroyed?!1:(a.getEdges().forEach(function(o){return i[o.getID()]=o}),!0)},n),Object.values(n).forEach(function(a){return a.refresh()})},updateSingleItem:function(t,e,r){var n=this.origin,a=this.graph,i=t.getModel(),o=t.get("id");this.point[o]||(this.point[o]={x:i.x,y:i.y});var s=e.x-n.x+this.point[o].x,l=e.y-n.y+this.point[o].y;r&&(s+=n.x-e.x,l+=n.y-e.y),a.updateItem(t,{x:s,y:l},!1)},getParentCombo:function(t){var e=this.graph;if(!!t){var r=e.findById(t);if(!!r)return r}},updateDelegate:function(t){var e=this.graph;if(this.delegateShape){var D=t.x-this.origin.x+this.originPoint.minX,I=t.y-this.origin.y+this.originPoint.minY;this.delegateShape.attr({x:D,y:I})}else{var r=e.get("delegateGroup"),n=null;this.targets.length>1?n=hv(this.targets):n=this.targets[0].getBBox();var a=n.x,i=n.y,o=n.width,s=n.height,l=n.minX,h=n.minY;this.originPoint={x:a,y:i,width:o,height:s,minX:l,minY:h};var p=(0,b.__assign)((0,b.__assign)({},wo.delegateStyle),this.delegateStyle);this.delegateShape=r.addShape("rect",{attrs:(0,b.__assign)({width:n.width,height:n.height,x:n.x,y:n.y},p),name:"combo-delegate-shape"}),this.delegateShape.set("capture",!1),this.delegate=this.delegateShape}},updateParentCombos:function(){var t=this,e=t.graph,r=t.targets,n={};r==null||r.forEach(function(a){var i=a.getModel().parentId;i&&(n[i]=e.findById(i))}),Object.values(n).forEach(function(a){a&&e.updateCombo(a)})}},Fd="dblclick",pv=["click","dblclick"],yv={getDefaultCfg:function(){return{trigger:Fd,relayout:!0}},getEvents:function(){var t,e;return pv.includes(this.trigger)?e=this.trigger:(e=Fd,console.warn("Behavior collapse-expand-group \u7684 trigger \u53C2\u6570\u4E0D\u5408\u6CD5\uFF0C\u8BF7\u8F93\u5165 'click' \u6216 'dblclick'")),t={},t["combo:".concat(e)]="onComboClick",t},onComboClick:function(t){var e=t.item,r=this,n=r.graph,a=r.relayout;if(!(!e||e.destroyed||e.getType()!=="combo")){var i=e.getModel(),o=i.id;!o||(n.collapseExpandCombo(o),a&&n.get("layout")?n.layout():n.refreshPositions())}}},mv=Vo.isPolygonsIntersect,Ev=Vo.pathToPoints,Gd="shift",bv=["drag","shift","ctrl","alt","control"],xv=function(t,e){var r,n=t.getKeyShape();if(t.get("type")==="path")r=Ev(n.attr("path"));else{var a=n.getCanvasBBox();r=[[a.minX,a.minY],[a.maxX,a.minY],[a.maxX,a.maxY],[a.minX,a.maxY]]}return mv(e,r)},wv={getDefaultCfg:function(){return{delegateStyle:{fill:"#EEF6FF",fillOpacity:.4,stroke:"#DDEEFE",lineWidth:1},onSelect:function(){},onDeselect:function(){},shouldDeselect:void 0,selectedState:"selected",trigger:Gd,includeEdges:!0,selectedEdges:[],selectedNodes:[]}},getEvents:function(){return bv.indexOf(this.trigger.toLowerCase())>-1||(this.trigger=Gd,console.warn("Behavior lasso-select \u7684 trigger \u53C2\u6570\u4E0D\u5408\u6CD5\uFF0C\u8BF7\u8F93\u5165 'drag'\u3001'shift'\u3001'ctrl' \u6216 'alt'")),this.trigger==="drag"?{dragstart:"onDragStart",drag:"onDragMove",dragend:"onDragEnd","canvas:click":"clearStates"}:{dragstart:"onDragStart",drag:"onDragMove",dragend:"onDragEnd",keyup:"onKeyUp",keydown:"onKeyDown","canvas:click":"clearStates"}},onDragStart:function(t){var e=this.lasso,r=t.item;r||this.trigger!=="drag"&&!this.keydown||(this.selectedNodes&&this.selectedNodes.length!==0&&this.clearStates("dragstart"),e||(e=this.createLasso()),this.dragging=!0,this.originPoint={x:t.x,y:t.y},this.points.push(this.originPoint),e.show())},onDragMove:function(t){!this.dragging||this.trigger!=="drag"&&!this.keydown||(this.points.push({x:t.x,y:t.y}),this.updateLasso(t))},onDragEnd:function(t){!this.lasso&&!this.dragging||this.trigger!=="drag"&&!this.keydown||(this.points.push(this.originPoint),this.getSelectedItems(),this.lasso.remove(!0),this.lasso=null,this.points=[],this.dragging=!1)},getLassoPath:function(){var t=this.points,e=[];return t.length&&(t.forEach(function(r,n){n===0?e.push(["M",r.x,r.y]):e.push(["L",r.x,r.y])}),e.push(["L",t[0].x,t[0].y])),e},clearStates:function(t){t===void 0&&(t="canvas:click");var e=this,r=e.graph,n=e.selectedState,a=e.shouldDeselect,i=r.findAllByState("node",n),o=r.findAllByState("edge",n);(!a||a({action:t,nodes:i,edges:o}))&&(i.forEach(function(s){return r.setItemState(s,n,!1)}),o.forEach(function(s){return r.setItemState(s,n,!1)})),this.onDeselect&&this.onDeselect(this.selectedNodes,this.selectedEdges),this.selectedNodes=[],this.selectedEdges=[],r.emit("nodeselectchange",{selectedItems:{nodes:[],edges:[]},select:!1})},getSelectedItems:function(){var t=this,e=this,r=e.graph,n=e.shouldUpdate,a=this.points.map(function(h){return[r.getCanvasByPoint(h.x,h.y).x,r.getCanvasByPoint(h.x,h.y).y]}),i=this.selectedState,o=[],s=[];r.getNodes().forEach(function(h){if(!!h.isVisible()&&xv(h,a)&&n(h,"select",t)){o.push(h);var p=h.getModel();s.push(p.id),r.setItemState(h,i,!0)}});var l=[];this.includeEdges&&o.forEach(function(h){var p=h.getOutEdges();p.forEach(function(D){if(!!D.isVisible()){var I=D.getModel(),F=I.source,Z=I.target;s.includes(F)&&s.includes(Z)&&n(D,"select",t)&&(l.push(D),r.setItemState(D,t.selectedState,!0))}})}),this.selectedEdges=l,this.selectedNodes=o,this.onSelect&&this.onSelect(o,l),r.emit("nodeselectchange",{selectedItems:{nodes:o,edges:l},select:!0})},createLasso:function(){var t=this,e=t.graph.get("delegateGroup").addShape("path",{attrs:(0,b.__assign)({path:[]},t.delegateStyle),capture:!1,name:"lasso-shape"});return this.lasso=e,this.delegate=e,this.points=[],e},updateLasso:function(t){var e=this;this.lasso.attr({path:e.getLassoPath()})},onKeyDown:function(t){var e=t.key;!e||(e.toLowerCase()===this.trigger.toLowerCase()?this.keydown=!0:this.keydown=!1)},onKeyUp:function(){this.lasso&&(this.lasso.remove(!0),this.lasso=null,this.points=[],this.dragging=!1),this.keydown=!1}},zd="click",Sv=["click","drag"],Ud=void 0,_v=["shift","ctrl","control","alt","meta",void 0],Mv={getDefaultCfg:function(){return{trigger:zd,key:Ud,edgeConfig:{},getEdgeConfig:void 0}},getEvents:function(){var t=this;Sv.indexOf(t.trigger.toLowerCase())>-1||(t.trigger=zd,console.warn("Behavior create-edge \u7684 trigger \u53C2\u6570\u4E0D\u5408\u6CD5\uFF0C\u8BF7\u8F93\u5165 'click'\uFF0C'drag'")),t.key&&_v.indexOf(t.key.toLowerCase())===-1&&(t.trigger=Ud,console.warn("Behavior create-edge \u7684 key \u53C2\u6570\u4E0D\u5408\u6CD5\uFF0C\u8BF7\u8F93\u5165 'shift'\uFF0C'ctrl'\uFF0C'alt'\uFF0C'control'\uFF0C\u6216 undefined"));var e;return t.trigger==="drag"?e={"node:dragstart":"onClick","combo:dragstart":"onClick",drag:"updateEndPoint","node:drop":"onClick","combo:drop":"onClick",dragend:"onDragEnd"}:t.trigger==="click"&&(e={"node:click":"onClick",mousemove:"updateEndPoint","edge:click":"cancelCreating","canvas:click":"cancelCreating","combo:click":"onClick"}),t.key&&(e.keydown="onKeyDown",e.keyup="onKeyUp"),e},onDragEnd:function(t){var e=this;if(!(e.key&&!e.keydown)){var r=t.item;(!r||r.getID()===e.source||r.getType()!=="node")&&e.cancelCreating({item:e.edge,x:t.x,y:t.y})}},onClick:function(t){var e=this;if(!(e.key&&!e.keydown)){var r=t.item,n=e.graph,a=r.getModel(),i=e.getEdgeConfig;if(e.addingEdge&&e.edge){if(!e.shouldEnd(t,e))return;var o=void 0;i&&(0,m.isFunction)(i)?o=i({source:e.source,target:a.id},e):o=e.edgeConfig;var s=(0,b.__assign)({target:a.id},o);if(e.source===a.id&&(s.type="loop"),n.emit("beforecreateedge",{}),n.updateItem(e.edge,s,!1),n.get("enabledStack")){var l=(0,b.__assign)((0,b.__assign)({},e.edge.getModel()),{itemType:"edge"}),h={};h.edges=[l],n.pushStack("add",{before:{},after:h})}n.emit("aftercreateedge",{edge:e.edge}),e.edge.getKeyShape().set("capture",!0),e.edge=null,e.addingEdge=!1}else{if(!e.shouldBegin(t,e))return;var o=void 0;i&&(0,m.isFunction)(i)?o=i({source:a.id,target:a.id},e):o=e.edgeConfig,e.edge=n.addItem("edge",(0,b.__assign)({source:a.id,target:a.id},o),!1),e.source=a.id,e.addingEdge=!0,e.edge.getKeyShape().set("capture",!1)}}},updateEndPoint:function(t){var e=this;if(!(e.key&&!e.keydown)){e.edge&&e.edge.destroyed&&e.cancelCreating({item:e.edge});var r={x:t.x,y:t.y};if(!e.graph.findById(e.source)){e.addingEdge=!1;return}e.addingEdge&&e.edge&&e.graph.updateItem(e.edge,{target:r},!1)}},cancelCreating:function(t){var e,r,n=this;if(!(n.key&&!n.keydown)){var a=n.graph,i=t.item;if(n.addingEdge&&(n.edge===i||((r=(e=t.target)===null||e===void 0?void 0:e.isCanvas)===null||r===void 0?void 0:r.call(e)))){n.edge&&!n.edge.destroyed&&a.removeItem(n.edge,!1),n.edge=null,n.addingEdge=!1;return}}},onKeyDown:function(t){var e=this,r=t.key;!r||(r.toLowerCase()===e.key.toLowerCase()?e.keydown=!0:e.keydown=!1)},onKeyUp:function(){var t=this;t.addingEdge&&t.edge&&(t.graph.removeItem(t.edge,!1),t.addingEdge=!1,t.edge=null),this.keydown=!1}},Wd="ctrl",Cv=["shift","ctrl","alt","control"],Tv="1",Iv={getDefaultCfg:function(){return{trigger:Wd,combinedKey:Tv,functionName:"fitView",functionParams:[]}},getEvents:function(){return Cv.indexOf(this.trigger.toLowerCase())>-1||(this.trigger=Wd,console.warn("Behavior shortcuts-fit-view \u7684 trigger \u53C2\u6570 '".concat(this.trigger,"' \u4E0D\u5408\u6CD5\uFF0C\u8BF7\u8F93\u5165 'drag'\u3001'shift'\u3001'ctrl' \u6216 'alt'"))),this.combinedKey===this.trigger&&(this.combinedKey=void 0),{keyup:"onKeyUp",keydown:"onKeyDown"}},onKeyDown:function(t){var e=t.key;if(!!e){var r=this.trigger.toLowerCase(),n=e.toLowerCase();this.triggerKeydown||(n===r||n==="control"&&r==="ctrl"||n==="ctrl"&&r==="control"?this.triggerKeydown=!0:this.triggerKeydown=!1);var a=this.graph;if(!a[this.functionName])return console.warn("Behavior shortcuts-fit-view \u7684 functionName \u53C2\u6570 '".concat(this.functionName,"' \u4E0D\u5408\u6CD5\uFF0C\u5B83\u4E0D\u662F Graph \u7684\u4E00\u4E2A\u51FD\u6570\u540D")),{};if(this.triggerKeydown&&!this.combinedKey){this.functionParams&&this.functionParams.length?a[this.functionName].apply(a,this.functionParams):a[this.functionName]();return}var i=this.combinedKey.toLowerCase();this.triggerKeydown&&(n===i||n==="control"&&i==="ctrl"||n==="ctrl"&&i==="control")&&(this.functionParams&&this.functionParams.length?a[this.functionName].apply(a,this.functionParams):a[this.functionName]())}},onKeyUp:function(){this.brush&&(this.brush.remove(!0),this.brush=null,this.dragging=!1),this.triggerKeydown=!1}},Ov=["shift","ctrl","alt","control","meta"],Av={getDefaultCfg:function(){return{direction:"both",enableOptimize:!1,zoomKey:"ctrl",scalableRange:0,allowDragOnItem:!0}},getEvents:function(){return(!this.zoomKey||Ov.indexOf(this.zoomKey)===-1)&&(this.zoomKey="ctrl"),{wheel:"onWheel"}},onWheel:function(t){var e=this;if(!!this.allowDrag(t)){var r=this.graph,n=Array.isArray(this.zoomKey)?[].concat(this.zoomKey):[this.zoomKey];n.includes("control")&&n.push("ctrl");var a=n.some(function(mr){return t["".concat(mr,"Key")]});if(a){var i=r.get("canvas"),o=i.getPointByClient(t.clientX,t.clientY),s=r.getZoom();t.wheelDelta>0?s=s+s*.05:s=s-s*.05,r.zoomTo(s,{x:o.x,y:o.y})}else{var l=t.deltaX||t.movementX,h=t.deltaY||t.movementY;!h&&navigator.userAgent.indexOf("Firefox")>-1&&(h=-t.wheelDelta*125/3);var p=this.graph.get("width"),D=this.graph.get("height"),I=this.graph.get("canvas").getCanvasBBox(),F=this.scalableRange,Z=this.scalableRange;F<1&&F>-1&&(F=p*F,Z=D*Z);var ee=I.minX,se=I.maxX,oe=I.minY,ce=I.maxY;l>0?se<-F?l=0:se-l<-F&&(l=se+F):l<0&&(ee>p+F?l=0:ee-l>p+F&&(l=ee-(p+F))),h>0?ce<-Z?h=0:ce-h<-Z&&(h=ce+Z):h<0&&(oe>D+Z?h=0:oe-h>D+Z&&(h=oe-(D+Z))),this.get("direction")==="x"?h=0:this.get("direction")==="y"&&(l=0),r.translate(-l,-h)}t.preventDefault();var we=this.get("enableOptimize");if(we){var Re=this.get("optimizeZoom"),Oe=this.get("optimized"),Pe=r.getNodes(),He=r.getEdges(),at=Pe.length,qe=He.length;if(!Oe){for(var yt=0;yt=2})}},Ul=function(){return Ul=Object.assign||function(c){for(var t,e=1,r=arguments.length;ea&&(a=n[o],i=o);return i},Jd=function(c,t,e){var r,n;return e&&e.current&&(r=e.current.offsetWidth,n=e.current.offsetHeight||500),!c&&!r||!t&&!n?(Al.warn("\u8BF7\u4E3A Graph \u6307\u5B9A width \u4E0E height\uFF01\u5426\u5219\u5C06\u4F7F\u7528\u9ED8\u8BA4\u503C 500 * 500"),[500,500]):[c||r||500,t||n||500]},Jv=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(c){var t=Math.random()*16|0,e=c=="x"?t:t&3|8;return e.toString(16)})},qv=function(c,t){return c.current||(c.current="".concat(t,"-graph-").concat(Jv())),c.current},eg=function(c,t){var e=t!=null?t:{},r=e.nodeCfg,n=r===void 0?{}:r,a=e.edgeCfg,i=a===void 0?{}:a,o=n.nodeStateStyles,s=i.edgeStateStyles,l={},h=function(I,F,Z){c.updateItem(I,{style:{endArrow:!!F&&{fill:F},startArrow:!!Z&&{fill:Z}}})},p=function(I,F,Z){var ee,se,oe;Z?I.toFront():I.toBack();var ce=(ee=I.getModel().style)!==null&&ee!==void 0?ee:{},we=ce.endArrow,Re=ce.startArrow;if(we||Re){if(!l[I.getID()]){var Oe=(we!=null?we:{}).fill,Pe=(Re!=null?Re:{}).fill,He=(oe=(se=I.getModel().style)===null||se===void 0?void 0:se[F])===null||oe===void 0?void 0:oe.stroke;l[I.getID()]=[[He!=null?He:Oe,Oe],[He!=null?He:Pe,Pe]]}var at=l[I.getID()];h(I,we&&at[0][Z?0:1],Re&&at[1][Z?0:1])}c.setItemState(I,F,Z)},D=function(I,F,Z,ee){var se=ee==="node"?c.findAll("edge",function(ce){return ce.getSource()===I||ce.getTarget()===I}):c.findAll("node",function(ce){return I.getSource().get("id")===ce.get("id")||I.getTarget().get("id")===ce.get("id")}),oe=[I].concat(se);oe.forEach(function(ce){p(ce,F,Z)})};o&&(c.on("node:mouseenter",function(I){var F=I.item;D(F,"hover",!0,"node")}),c.on("node:mouseleave",function(I){var F=I.item;D(F,"hover",!1,"node")})),s&&(c.on("edge:mouseenter",function(I){var F=I.item;D(F,"hover",!0,"edge")}),c.on("edge:mouseleave",function(I){var F=I.item;D(F,"hover",!1,"edge")}))},Xl=function(){return Xl=Object.assign||function(c){for(var t,e=1,r=arguments.length;e0&&a[a.length-1])&&(l[0]===6||l[0]===2)){e=0;continue}if(l[0]===3&&(!a||l[1]>a[0]&&l[1]=18&&(Vl=Dl.createRoot)}catch(c){}function rh(c){var t=Dl.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&typeof t=="object"&&(t.usingClientEntryPoint=c)}var Yl="__rc_react_root__";function sg(c,t){rh(!0);var e=t[Yl]||Vl(t);rh(!1),e.render(c),t[Yl]=e}function ug(c,t){ag(c,t)}function vp(c,t){}function nh(c,t){if(Vl){sg(c,t);return}ug(c,t)}function fg(c){return eh(this,void 0,void 0,function(){return th(this,function(t){return[2,Promise.resolve().then(function(){var e;(e=c[Yl])===null||e===void 0||e.unmount(),delete c[Yl]})]})})}function cg(c){ig(c)}function gp(c){}function pp(c){return eh(this,void 0,void 0,function(){return th(this,function(t){return Vl!==void 0?[2,fg(c)]:(cg(c),[2])})})}var ah=function(c,t){t===void 0&&(t={});var e=Object.keys(t);e.forEach(function(r){c.style[r]=t[r]})},cd=function(c,t,e){t===void 0&&(t={});var r=document.createElement("div");return Object.keys(t).forEach(function(n){r[n]=t[n]}),e&&ah(r,e),nh(c,r),r},Hl=function(){return Hl=Object.assign||function(c){for(var t,e=1,r=arguments.length;e0){var r=c.customContent,n=lg(c,["customContent"]),a=new sc.Tooltip(Hl(Hl({offsetX:10,offsetY:20,itemTypes:["node"]},n),{getContent:function(i){return(0,m.isFunction)(r)?cd(r(i.item.getModel()),{className:"g6-tooltip"}):""},name:"tooltip"}));t.addPlugin(a)}}},hg=function(){function c(t){this._cfgs=(0,m.deepMix)(this.getDefaultCfgs(),t),this._events={},this.destroyed=!1}return c.prototype.getDefaultCfgs=function(){return{}},c.prototype.initPlugin=function(t){var e=this;e.set("graph",t);var r=e.getEvents(),n={};(0,m.each)(r,function(a,i){var o=(0,m.wrapBehavior)(e,a);n[i]=o,t.on(i,o)}),this._events=n,this.init()},c.prototype.getEvents=function(){return{}},c.prototype.get=function(t){var e;return(e=this._cfgs)===null||e===void 0?void 0:e[t]},c.prototype.set=function(t,e){this._cfgs[t]=e},c.prototype.destroy=function(){},c.prototype.destroyPlugin=function(){this.destroy();var t=this.get("graph"),e=this._events;(0,m.each)(e,function(r,n){t.off(n,r)}),this._events=null,this._cfgs=null,this.destroyed=!0},c}(),vg=hg,gg=function(){var c=function(t,e){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(r[a]=n[a])},c(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");c(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}();typeof document!="undefined"&&pi()(` - .g6-component-contextmenu { - border: 1px solid #e2e2e2; - border-radius: 4px; - font-size: 12px; - color: #545454; - background-color: rgba(255, 255, 255, 0.9); - padding: 10px 8px; - box-shadow: rgb(174, 174, 174) 0px 0px 10px; - } - .g6-contextmenu-ul { - padding: 0; - margin: 0; - list-style: none; - } - -`);var pg=function(c){gg(t,c);function t(e){return c.call(this,e)||this}return t.prototype.getDefaultCfgs=function(){return{offsetX:6,offsetY:6,handleMenuClick:void 0,customContent:function(e){return` -
          -
        • \u83DC\u5355\u98791
        • -
        • \u83DC\u5355\u98792
        • -
        - `},shouldBegin:function(e){return!0},onHide:function(){return!0},itemTypes:["node","edge","combo"],trigger:"contextmenu"}},t.prototype.getEvents=function(){return this.get("trigger")==="click"?{click:"onMenuShow",touchend:"onMenuShow"}:{contextmenu:"onMenuShow"}},t.prototype.init=function(){var e=this.get("className"),r=(0,Aa.Z)("
        "));(0,Kn.Z)(r,{top:"0px",position:"absolute",visibility:"hidden"});var n=this.get("container");n||(n=this.get("graph").get("container")),(0,m.isString)(n)&&(n=document.getElementById(n)),n.appendChild(r),this.set("menu",r)},t.prototype.onMenuShow=function(e){var r=this;e.preventDefault();var n=this.get("itemTypes");if(e.item){if(e.item&&e.item.getType&&n.indexOf(e.item.getType())===-1){r.onMenuHide();return}}else if(n.indexOf("canvas")===-1){r.onMenuHide();return}var a=this.get("shouldBegin");if(!!a(e)){var i=this.get("menu"),o=this.get("customContent"),s=this.get("graph"),l=o(e,s);nh(l,i),this.removeMenuEventListener();var h=this.get("handleMenuClick");if(h){var p=function(Pe){h(Pe.target,e.item,s)};this.set("handleMenuClickWrapper",p),i.addEventListener("click",p)}var D=s.get("width"),I=s.get("height"),F=i.getBoundingClientRect(),Z=this.get("offsetX")||0,ee=this.get("offsetY")||0,se=s.getContainer().offsetTop,oe=s.getContainer().offsetLeft,ce=e.canvasX+oe+Z,we=e.canvasY+se+ee;ce+F.width>D&&(ce=e.canvasX-F.width-Z+oe),we+F.height>I&&(we=e.canvasY-F.height-ee+se),(0,Kn.Z)(i,{top:"".concat(we,"px"),left:"".concat(ce,"px"),visibility:"visible"});var Re=this.get("trigger")==="click",Oe=function(Pe){if(Re){Re=!1;return}r.onMenuHide()};document.body.addEventListener("click",Oe),this.set("handler",Oe)}},t.prototype.removeMenuEventListener=function(){var e=this.get("handleMenuClickWrapper"),r=this.get("handler");if(e){var n=this.get("menu");n.removeEventListener("click",e),this.set("handleMenuClickWrapper",null)}r&&document.body.removeEventListener("click",r)},t.prototype.onMenuHide=function(){var e=this.get("menu");e&&(0,Kn.Z)(e,{visibility:"hidden"}),this.removeMenuEventListener()},t.prototype.destroy=function(){var e=this.get("menu");if(this.removeMenuEventListener(),e){var r=this.get("container");r||(r=this.get("graph").get("container")),(0,m.isString)(r)&&(r=document.getElementById(r)),r.removeChild(e)}},t}(vg),yg=pg,Zl=function(){return Zl=Object.assign||function(c){for(var t,e=1,r=arguments.length;e0&&a[a.length-1])&&(l[0]===6||l[0]===2)){e=0;continue}if(l[0]===3&&(!a||l[1]>a[0]&&l[1]0?(s.children=se,t.updateChild(s,s.id),t.updateItem(o,{collapsed:!1}),t.refreshItem(o),t.emit(oh,i,{type:"fetch",collapsed:!0})):(t.updateItem(o,{collapsed:!h}),t.layout(),t.emit(oh,i,{type:"collapse",collapsed:!!h})),we.label=3;case 3:return[2]}})})};t.on("node:click",function(i){a(i)}),t.on("node:touchstart",function(i){a(i)})},kg=function(c){if(typeof c=="number")return[c,c,c,c];var t=[];switch(c.length){case 1:t=[c[0],c[0],c[0],c[0]];break;case 2:t=[c[0],c[1],c[0],c[1]];break;case 3:t=[c[0],c[1],c[2],c[1]];break;case 4:t=c;break;default:break}return t},sh=function(c,t,e,r){return typeof c=="function"?c(t,e,r)||{}:c||{}},Pl=function(){return Pl=Object.assign||function(c){for(var t,e=1,r=arguments.length;e0&&m(te[0])}},H=0;H0;)b.push(E.pop());d.push(b)}}return d};U.detectConnectedComponents=j;var R=function(L){for(var y=L.nodes,x=y===void 0?[]:y,v=L.edges,g=v===void 0?[]:v,d=[],_={},E={},w={},T=[],k=0,b=function X(H){E[H.id]=k,w[H.id]=k,k+=1,d.push(H),_[H.id]=!0;for(var Q=(0,B.getNeighbors)(H.id,g,"target").filter(function(de){return x.map(function(Te){return Te.id}).indexOf(de)>-1}),q=function(Te){var Se=Q[Te];if(!E[Se]&&E[Se]!==0){var Ie=x.filter(function(be){return be.id===Se});Ie.length>0&&X(Ie[0]),w[H.id]=Math.min(w[H.id],w[Se])}else _[Se]&&(w[H.id]=Math.min(w[H.id],E[Se]))},J=0;J0;){var fe=d.pop();if(_[fe.id]=!1,te.push(fe),fe===H)break}te.length>0&&T.push(te)}},m=0,$=x;m<$.length;m++){var W=$[m];!E[W.id]&&E[W.id]!==0&&b(W)}return T};U.detectStrongConnectComponents=R;function A(N,L){return L?R(N):j(N)}},92935:function(or,U){"use strict";Object.defineProperty(U,"__esModule",{value:!0}),U.secondReg=U.dateReg=void 0;var z=/^(\d{1,4})(-|\/)(\d{1,2})\2(\d{1,2})$/;U.secondReg=z;var B=/^(\d{1,4})(-|\/)(\d{1,2})\2(\d{1,2}) (\d{1,2}):(\d{1,2}):(\d{1,2})$/;U.dateReg=B},82556:function(or,U){"use strict";Object.defineProperty(U,"__esModule",{value:!0}),U.getOutDegree=U.getInDegree=U.default=void 0;var z=function(N){var L={},y=N.nodes,x=y===void 0?[]:y,v=N.edges,g=v===void 0?[]:v;return x.forEach(function(d){L[d.id]={degree:0,inDegree:0,outDegree:0}}),g.forEach(function(d){L[d.source].degree++,L[d.source].outDegree++,L[d.target].degree++,L[d.target].inDegree++}),L},B=z;U.default=B;var j=function(N,L){var y=z(N);return y[L]?z(N)[L].inDegree:0};U.getInDegree=j;var R=function(N,L){var y=z(N);return y[L]?z(N)[L].outDegree:0};U.getOutDegree=R},94282:function(or,U,z){"use strict";function B(E){return B=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(w){return typeof w}:function(w){return w&&typeof Symbol=="function"&&w.constructor===Symbol&&w!==Symbol.prototype?"symbol":typeof w},B(E)}Object.defineProperty(U,"__esModule",{value:!0}),U.detectAllUndirectedCycle=U.detectAllDirectedCycle=U.detectAllCycles=U.default=void 0;var j=y(z(45891)),R=L(z(59527)),A=z(70643);function N(E){if(typeof WeakMap!="function")return null;var w=new WeakMap,T=new WeakMap;return(N=function(b){return b?T:w})(E)}function L(E,w){if(!w&&E&&E.__esModule)return E;if(E===null||B(E)!=="object"&&typeof E!="function")return{default:E};var T=N(w);if(T&&T.has(E))return T.get(E);var k={},b=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var m in E)if(m!=="default"&&Object.prototype.hasOwnProperty.call(E,m)){var $=b?Object.getOwnPropertyDescriptor(E,m):null;$&&($.get||$.set)?Object.defineProperty(k,m,$):k[m]=E[m]}return k.default=E,T&&T.set(E,k),k}function y(E){return E&&E.__esModule?E:{default:E}}var x=function(w){var T=null,k=w.nodes,b=k===void 0?[]:k,m={},$={},W={},X={};b.forEach(function(q){$[q.id]=q});for(var H={enter:function(J){var te=J.current,fe=J.previous;if(W[te]){T={};for(var de=te,Te=fe;Te!==te;)T[de]=Te,de=Te,Te=m[Te];T[de]=Te}else W[te]=te,delete $[te],m[te]=fe},leave:function(J){var te=J.current;X[te]=te,delete W[te]},allowTraversal:function(J){var te=J.next;return T?!1:!X[te]}};Object.keys($).length;){var Q=Object.keys($)[0];(0,j.default)(w,Q,H)}return T},v=function(w,T,k){var b,m;k===void 0&&(k=!0);for(var $=[],W=(0,R.default)(w,!1),X=0,H=W;X0;)for(var Te=te.pop(),Se=Te.id,Ie=(0,A.getNeighbors)(Se,w.edges),be=function(De){var Ue,nt=Ie[De],Ze=w.nodes.find(function(St){return St.id===nt});if(nt===Se)$.push((Ue={},Ue[nt]=Te,Ue));else if(!(nt in de))fe[nt]=Te,te.push(Ze),de[nt]=new Set([Te]);else if(!de[Se].has(Ze)){for(var ht=!0,Rt=[Ze,Te],tr=fe[Se];de[nt].size&&!de[nt].has(tr)&&(Rt.push(tr),tr!==fe[tr.id]);)tr=fe[tr.id];if(Rt.push(tr),T&&k?(ht=!1,Rt.findIndex(function(St){return T.indexOf(St.id)>-1})>-1&&(ht=!0)):T&&!k&&Rt.findIndex(function(St){return T.indexOf(St.id)>-1})>-1&&(ht=!1),ht){for(var Qe={},lt=1;lt0;){var lt=Qe.pop();m.has(lt)&&(m.delete(lt),$[lt.id].forEach(function(St){Qe.push(St)}),$[lt.id].clear())}},q=function Rt(tr,Qe,lt){var St=!1;if(T&&k===!1&&T.indexOf(tr.id)>-1)return St;b.push(tr),m.add(tr);for(var Ct=lt[tr.id],_t=0;_t-1});Bt-1)?W.push((Qe={},Qe[ft.id]=ft,Qe)):Vt[ft.id].push(H[br])}}return{component:xr,adjList:Vt,minIdx:St}},be=0;be=be}),Me=(0,R.detectStrongConnectComponents)({nodes:pe,edges:w.edges}).filter(function(Rt){return Rt.length>1});if(Me.length===0)break;var De=Ie(Me),Ue=De.minIdx,nt=De.adjList,Ze=De.component;if(Ze.length>1){Ze.forEach(function(Rt){$[Rt.id]=new Set});var ht=X[Ue];if(T&&k&&T.indexOf(ht.id)===-1)return W;q(ht,ht,nt),be=Ue+1}else break}return W};U.detectAllDirectedCycle=g;var d=function(w,T,k,b){return b===void 0&&(b=!0),T?g(w,k,b):v(w,k,b)};U.detectAllCycles=d;var _=x;U.default=_},45891:function(or,U,z){"use strict";Object.defineProperty(U,"__esModule",{value:!0}),U.default=A;var B=z(70643);function j(N){N===void 0&&(N={});var L=N,y=function(){},x=function(){var v={};return function(g){var d=g.next;return v[d]?!1:(v[d]=!0,!0)}}();return L.allowTraversal=N.allowTraversal||x,L.enter=N.enter||y,L.leave=N.leave||y,L}function R(N,L,y,x){x.enter({current:L,previous:y});var v=N.edges,g=v===void 0?[]:v;(0,B.getNeighbors)(L,g,"target").forEach(function(d){x.allowTraversal({previous:y,current:L,next:d})&&R(N,d,L,x)}),x.leave({current:L,previous:y})}function A(N,L,y){R(N,L,"",j(y))}},78089:function(or,U,z){"use strict";Object.defineProperty(U,"__esModule",{value:!0}),U.default=void 0;var B=z(70655),j=z(49242),R=z(70643),A=function(v,g,d){for(var _=Infinity,E,w=0;w$[Te.id]+Ue?($[De]=$[Te.id]+Ue,W[De]=[Te.id]):$[De]===$[Te.id]+Ue&&W[De].push(Te.id)})},Q=0;Q0&&k.length>0;){var $=k[k.length-1];if($.length){var W=$.shift();W&&(w.push(W),T[W]=!0,m=g?(0,j.getNeighbors)(W,E,"target"):(0,j.getNeighbors)(W,E),k.push(m.filter(function(Q){return!T[Q]})))}else{var X=w.pop();T[X]=!1,k.pop();continue}if(w[w.length-1]===v){var H=w.map(function(q){return q});b.push(H);var X=w.pop();T[X]=!1,k.pop()}}return b};U.findAllPath=N},75033:function(or,U,z){"use strict";Object.defineProperty(U,"__esModule",{value:!0}),U.default=void 0;var B=j(z(62238));function j(N){return N&&N.__esModule?N:{default:N}}var R=function(L,y){for(var x=(0,B.default)(L,y),v=[],g=x.length,d=0;dv[d][E]+v[E][_]&&(v[d][_]=v[d][E]+v[E][_]);return v},A=R;U.default=A},21146:function(or,U,z){"use strict";Object.defineProperty(U,"__esModule",{value:!0}),U.default=void 0;var B=z(49242),j=z(68575),R=function(){function _(E,w,T,k,b){this.fromNode=E,this.toNode=w,this.nodeEdgeNodeLabel={nodeLabel1:T||j.VACANT_NODE_LABEL,edgeLabel:k||j.VACANT_EDGE_LABEL,nodeLabel2:b||j.VACANT_NODE_LABEL}}return _.prototype.equalTo=function(E){return this.fromNode===E.formNode&&this.toNode===E.toNode&&this.nodeEdgeNodeLabel===E.nodeEdgeNodeLabel},_.prototype.notEqualTo=function(E){return!this.equalTo(E)},_}(),A=function(){function _(){this.rmpath=[],this.dfsEdgeList=[]}return _.prototype.equalTo=function(E){var w=this.dfsEdgeList.length,T=E.length;if(w!==T)return!1;for(var k=0;k=0;T--){var k=this.dfsEdgeList[T],b=k.fromNode,m=k.toNode;bJ||k.hasNode(m[q.to])||(w.labelIe;pe--){var Me=be(pe);if(Me==="break")break}if(Te){var De=E.findMinLabel(de);m.dfsEdgeList.push(new R(fe,Se,j.VACANT_NODE_LABEL,De.edgeLabel,j.VACANT_NODE_LABEL));var Ue=m.dfsEdgeList.length-1;return E.dfsCode.dfsEdgeList[Ue]!==m.dfsEdgeList[Ue]?!1:Q(de[De.edgeLabel].projected)}var nt={};Te=!1;var Ze=0;q.forEach(function(St){var Ct=new N(St),_t=E.findForwardPureEdges(k,Ct.edges[J[0]],te,Ct);_t.length>0&&(Te=!0,Ze=fe,_t.forEach(function(pt){var rr="".concat(pt.label,"-").concat(b[pt.to].label);nt[rr]||(nt[rr]={projected:[],edgeLabel:pt.label,nodeLabel2:b[pt.to].label}),nt[rr].projected.push({graphId:k.id,edge:pt,preNode:St})}))});for(var ht=J.length,Rt=function(Ct){if(Te)return"break";var _t=J[Ct];q.forEach(function(pt){var rr=new N(pt),xr=E.findForwardRmpathEdges(k,rr.edges[_t],te,rr);xr.length>0&&(Te=!0,Ze=m.dfsEdgeList[_t].fromNode,xr.forEach(function(Vt){var ft="".concat(Vt.label,"-").concat(b[Vt.to].label);nt[ft]||(nt[ft]={projected:[],edgeLabel:Vt.label,nodeLabel2:b[Vt.to].label}),nt[ft].projected.push({graphId:k.id,edge:Vt,preNode:pt})}))})},pe=0;pe=0;te--){var fe=w.findBackwardEdge(Q,J.edges[b[te]],J.edges[b[0]],J);if(fe){var de="".concat(w.dfsCode.dfsEdgeList[b[te]].fromNode,"-").concat(fe.label);X[de]||(X[de]={projected:[],toNodeId:w.dfsCode.dfsEdgeList[b[te]].fromNode,edgeLabel:fe.label}),X[de].projected.push({graphId:H.graphId,edge:fe,preNode:H})}}if(!(k>=w.maxNodeNum)){var Te=w.findForwardPureEdges(Q,J.edges[b[0]],$,J);Te.forEach(function(Ie){var be="".concat(m,"-").concat(Ie.label,"-").concat(q[Ie.to].label);W[be]||(W[be]={projected:[],fromNodeId:m,edgeLabel:Ie.label,nodeLabel2:q[Ie.to].label}),W[be].projected.push({graphId:H.graphId,edge:Ie,preNode:H})});for(var Se=function(be){var pe=w.findForwardRmpathEdges(Q,J.edges[b[be]],$,J);pe.forEach(function(Me){var De="".concat(w.dfsCode.dfsEdgeList[b[be]].fromNode,"-").concat(Me.label,"-").concat(q[Me.to].label);W[De]||(W[De]={projected:[],fromNodeId:w.dfsCode.dfsEdgeList[b[be]].fromNode,edgeLabel:Me.label,nodeLabel2:q[Me.to].label}),W[De].projected.push({graphId:H.graphId,edge:Me,preNode:H})})},te=0;teIe){var be=Ie;Ie=Se,Se=be}var pe=Te.label,Me="".concat(X,"-").concat(Se,"-").concat(pe,"-").concat(Ie),De="".concat(Se,"-").concat(pe,"-").concat(Ie);if(!m[De]){var Ue=m[De]||0;Ue++,m[De]=Ue}W[Me]={graphId:X,nodeLabel1:Se,edgeLabel:pe,nodeLabel2:Ie}})})}),Object.keys(b).forEach(function(X){var H=b[X];if(!(H2*H)););if(Ue<2*H&&(fe["".concat(Se,"-").concat(De)]={start:Se,end:De,distance:J[Se][De]},Ie++,de++,de>=Q))return fe;if(be++,be>2*H)break}if(Iebe&&(de=be);var pe=Q[Ie.id].inDegree;Te>pe&&(Te=pe);var Me=Q[Ie.id].outDegree;Se>Me&&(Se=Me)}),X[H]={degree:de,inDegree:Te,outDegree:Se}),{minPatternNodeLabelDegree:de,minPatternNodeLabelInDegree:Te,minPatternNodeLabelOutDegree:Se}},m=function(X,H,Q,q,J,te,fe){var de;if(Q===void 0&&(Q=!1),te===void 0&&(te="cluster"),fe===void 0&&(fe="cluster"),!(!X||!X.nodes)){var Te=X.nodes.length;if(!!Te){var Se=(0,j.default)(X,Q),Ie=(0,j.default)(H,Q),be=T(X.nodes,Se,Q),pe=T(H.nodes,Ie,Q),Me=E(X.nodes,te),De=Me.nodeMap,Ue=Me.nodeLabelMap,nt=E(H.nodes,te),Ze=nt.nodeMap,ht=nt.nodeLabelMap;w(X.edges,fe,De);var Rt=w(H.edges,fe,Ze).edgeLabelMap,tr=[];Ie==null||Ie.forEach(function(Zr){tr=tr.concat(Zr)}),J||(J=Math.max.apply(Math,(0,B.__spreadArray)((0,B.__spreadArray)([],tr,!1),[2],!1))),q||(q=J);var Qe=y(X,Se,te,q),lt=y(H,Ie,te,q),St=Math.min(100,Te*(Te-1)/2),Ct=v(q,Te,St,Qe,Se),_t=g(Ct,Qe,X),pt=10,rr=1,xr=1,Vt=4,ft={graphs:_t,nodeLabelProp:te,edgeLabelProp:fe,minSupport:rr,minNodeNum:xr,maxNodeNum:Vt,directed:Q},Bt=(0,R.default)(ft).slice(0,pt),qt=Bt.length,br=[];Bt.forEach(function(Zr,Pn){br[Pn]={},Object.keys(_t).forEach(function(An){var ln=_t[An],va=d(ln,Zr,te,fe);br[Pn][An]=va})});var Ur=_(br,qt,Bt),Ae=Ur.structure,Hr=Ur.structureCountMap,Sr=H.nodes[0],qr=[],Gr=(de=H.nodes[0])===null||de===void 0?void 0:de[te],vn=-Infinity;H.nodes.forEach(function(Zr){var Pn=Zr[te],An=Ue[Pn];(An==null?void 0:An.length)>vn&&(vn=An.length,qr=An,Gr=Pn,Sr=Zr)});var Gn={},mn={},$r={},gn={},Rr={},ct={};Object.keys(ht).forEach(function(Zr,Pn){Rr[Zr]=[],Q&&(ct[Zr]=[]);var An=-Infinity,ln=ht[Zr],va={};ln.forEach(function(ae){var P=pe["".concat(Sr.id,"-").concat(ae.id)];if(P&&Rr[Zr].push(P),AnRr[Zr][Ee]){xe=!0;break}if(xe)return qr.splice(P,1),"continue";var Ne={};C.neighbors.forEach(function(Pt){var $t=be["".concat(S.id,"-").concat(Pt.id)];Ne["".concat(S.id,"-").concat(Pt.id)]={start:De[S.id].idx,end:De[Pt.id].idx,distance:$t}}),_t=g(Ne,Qe,X,_t);var Et=[];Object.keys(Ne).forEach(function(Pt){if(Hr[Pt]){Et.push(Hr[Pt]);return}var $t=_t[Pt];Hr[Pt]=d($t,Ae,te,fe),Et.push(Hr[Pt])}),Et=Et.sort(function(Pt,$t){return $t-Pt});for(var st=!1,Ee=0;Ee=0;ne--)rt(ne)});var Wt=[];qr==null||qr.forEach(function(Zr){for(var Pn=De[Zr.id].idx,An=x(X.nodes,Se[Pn],Pn,te,J),ln=An.neighbors,va=ln.length,K=!1,Dt=va-1;Dt>=0;Dt--){if(ln.length+1C){ln.splice(Dt,1);continue}if(Q){var V="".concat(rt.id,"-").concat(Zr.id),he=be[V];S=ct[ne].length-1;var xe=ct[ne][S];if(he>xe){ln.splice(Dt,1);continue}}var Ee=Hr[ae]?Hr[ae]:k(X,Zr,rt,De,P,Qe,Ae,te,fe,Hr,_t),Ne="".concat(Sr.id,"-").concat(ne),Et=gn[Ne][gn[Ne].length-1];if(Ee=0;P--){var xe=he(P);if(xe==="break")break}if(V)return Wt.splice(Pn,1),"continue";An.edges=Dt;var Ee=(0,A.default)(An,An.nodes[0].id,!1).length;if(Object.keys(Ee).reverse().forEach(function(bn){if(!(bn===An.nodes[0].id||V)){if(Ee[bn]===Infinity){var je=K[bn].node[te];if(va[je]--,va[je]Dr[Xe][Dr[Xe].length-1]){var je=K[bn].node[te];if(va[je]--,va[je]=0;$t--){var Ht=An.nodes[$t],Br=K[Ht.id].degree,hn=K[Ht.id].inDegree,Ot=K[Ht.id].outDegree,Qt=Ht[te],pr=b(Gn,Qt,Ze,ht),en=pr.minPatternNodeLabelDegree,Nr=pr.minPatternNodeLabelInDegree,ta=pr.minPatternNodeLabelOutDegree,kn=Q?Br=0;En--){var Rn=Dt[En];if(!K[Rn.source]||!K[Rn.target]){Dt.splice(En,1);var Yn=Rn[fe];if(rt[Yn]--,K[Rn.source]&&(K[Rn.source].degree--,K[Rn.source].outDegree--),K[Rn.target]&&(K[Rn.target].degree--,K[Rn.target].inDegree--),Rt[Yn]&&rt[Yn]=0;wn--){var Sn=pn(wn);if(Sn==="break")break}for(var In=Wt.length,$n=function(Pn){var An=Wt[Pn],ln={};An.edges.forEach(function(Dt){var rt="".concat(Dt.source,"-").concat(Dt.target,"-").concat(Dt.label);ln[rt]?ln[rt]++:ln[rt]=1});for(var va=function(rt){var ne=Wt[rt],ae={};ne.edges.forEach(function(S){var C="".concat(S.source,"-").concat(S.target,"-").concat(S.label);ae[C]?ae[C]++:ae[C]=1});var P=!0;Object.keys(ae).length!==Object.keys(ln).length?P=!1:Object.keys(ln).forEach(function(S){ae[S]!==ln[S]&&(P=!1)}),P&&Wt.splice(rt,1)},K=In-1;K>Pn;K--)va(K);In=Wt.length},wn=0;wn<=In-1;wn++)$n(wn);return Wt}}},$=m;U.default=$},5170:function(or,U,z){"use strict";Object.defineProperty(U,"__esModule",{value:!0}),U.default=void 0;var B=R(z(62238)),j=z(70643);function R(L){return L&&L.__esModule?L:{default:L}}var A=function(y,x,v,g){x===void 0&&(x=!1),v===void 0&&(v="weight"),g===void 0&&(g=1e3);var d=y.nodes,_=d===void 0?[]:d,E=y.edges,w=E===void 0?[]:E,T={},k={};_.forEach(function(te,fe){var de=(0,j.uniqueId)();te.clusterId=de,T[de]={id:de,nodes:[te]},k[te.id]={node:te,idx:fe}});var b=(0,B.default)(y,x),m=[],$={};b.forEach(function(te,fe){var de=0,Te=_[fe].id;$[Te]={},te.forEach(function(Se,Ie){if(!!Se){de+=Se;var be=_[Ie].id;$[Te][be]=Se}}),m.push(de)});for(var W=0,X=function(){var fe=!1;if(_.forEach(function(de){var Te={};Object.keys($[de.id]).forEach(function(nt){var Ze=$[de.id][nt],ht=k[nt].node,Rt=ht.clusterId;Te[Rt]||(Te[Rt]=0),Te[Rt]+=Ze});var Se=-Infinity,Ie=[];if(Object.keys(Te).forEach(function(nt){Se=0&&Ie.splice(be,1),Ie&&Ie.length){fe=!0;var pe=T[de.clusterId],Me=pe.nodes.indexOf(de);pe.nodes.splice(Me,1);var De=Math.floor(Math.random()*Ie.length),Ue=T[Ie[De]];Ue.nodes.push(de),de.clusterId=Ue.id}}}),!fe)return"break";W++};W0&&De>Ue&&De-UeUe&&(Ze=H.map(function(_t){return{node:_t,clusterId:_t.clusterId}}),ht=(0,B.clone)(Te),Ue=De),Rt||nt>100)break;nt++,Object.keys(Te).forEach(function(_t){var pt=0;q.forEach(function(rr){var xr=rr.source,Vt=rr.target,ft=Se[xr].node.clusterId,Bt=Se[Vt].node.clusterId;(ft===_t&&Bt!==_t||Bt===_t&&ft!==_t)&&(pt=pt+(rr[w]||1))}),Te[_t].sumTot=pt}),H.forEach(function(_t,pt){var rr=Te[_t.clusterId],xr=0,Vt,ft=be[pt]/(2*Me),Bt=0,qt=rr.nodes;qt.forEach(function(mn){var $r=Se[mn.id].idx;Bt+=Ie[pt][$r]||0});var br=Bt-rr.sumTot*ft,Ur=qt.filter(function(mn){return mn.id!==_t.id}),Ae=[];Ur.forEach(function(mn,$r){Ae[$r]=J[mn.originIndex]});var Hr=x(Ur,J)*W,Sr=pe[_t.id];if(Object.keys(Sr).forEach(function(mn){var $r=Se[mn].node,gn=$r.clusterId;if(gn!==_t.clusterId){var Rr=Te[gn],ct=Rr.nodes;if(!(!ct||!ct.length)){var Wt=0;ct.forEach(function(Sn){var In=Se[Sn.id].idx;Wt+=Ie[pt][In]||0});var Er=Wt-Rr.sumTot*ft,Dr=ct.concat([_t]),Vr=[];Dr.forEach(function(Sn,In){Vr[In]=J[Sn.originIndex]});var pn=x(Dr,J)*W,wn=Er-br;k&&(wn=Er+pn-(br+Hr)),wn>xr&&(xr=wn,Vt=Rr)}}}),xr>0){Vt.nodes.push(_t);var qr=_t.clusterId;_t.clusterId=Vt.id;var Gr=rr.nodes.indexOf(_t);rr.nodes.splice(Gr,1);var vn=0,Gn=0;q.forEach(function(mn){var $r=mn.source,gn=mn.target,Rr=Se[$r].node.clusterId,ct=Se[gn].node.clusterId;(Rr===Vt.id&&ct!==Vt.id||ct===Vt.id&&Rr!==Vt.id)&&(vn=vn+(mn[w]||1)),(Rr===qr&&ct!==qr||ct===qr&&Rr!==qr)&&(Gn=Gn+(mn[w]||1))}),Vt.sumTot=vn,rr.sumTot=Gn}})}var tr={},Qe=0;Object.keys(ht).forEach(function(_t){var pt=ht[_t];if(!pt.nodes||!pt.nodes.length){delete ht[_t];return}var rr=String(Qe+1);rr!==_t&&(pt.id=rr,pt.nodes=pt.nodes.map(function(xr){return{id:xr.id,clusterId:rr}}),ht[rr]=pt,tr[_t]=rr,delete ht[_t],Qe++)}),Ze.forEach(function(_t){var pt=_t.node,rr=_t.clusterId;!pt||(pt.clusterId=rr,pt.clusterId&&tr[pt.clusterId]&&(pt.clusterId=tr[pt.clusterId]))});var lt=[],St={};q.forEach(function(_t){var pt=_t.source,rr=_t.target,xr=_t[w]||1,Vt=Se[pt].node.clusterId,ft=Se[rr].node.clusterId;if(!(!Vt||!ft)){var Bt="".concat(Vt,"---").concat(ft);if(St[Bt])St[Bt].weight+=xr,St[Bt].count++;else{var qt={source:Vt,target:ft,weight:xr,count:1};St[Bt]=qt,lt.push(qt)}}});var Ct=[];return Object.keys(ht).forEach(function(_t){Ct.push(ht[_t])}),{clusters:Ct,clusterEdges:lt}},g=v;U.default=g},89454:function(or,U,z){"use strict";Object.defineProperty(U,"__esModule",{value:!0}),U.default=void 0;var B=A(z(38823)),j=A(z(57085)),R=z(70643);function A(v){return v&&v.__esModule?v:{default:v}}var N=function(g,d){var _=[],E=g.nodes,w=E===void 0?[]:E,T=g.edges,k=T===void 0?[]:T;if(w.length===0)return _;var b=w[0],m=new Set;m.add(b);var $=function(J,te){return d?J.weight-te.weight:0},W=new j.default($);for((0,R.getEdgesByNodeId)(b.id,k).forEach(function(q){W.insert(q)});!W.isEmpty();){var X=W.delMin(),H=X.source,Q=X.target;m.has(H)&&m.has(Q)||(_.push(X),m.has(H)||(m.add(H),(0,R.getEdgesByNodeId)(H,k).forEach(function(q){W.insert(q)})),m.has(Q)||(m.add(Q),(0,R.getEdgesByNodeId)(Q,k).forEach(function(q){W.insert(q)})))}return _},L=function(g,d){var _=[],E=g.nodes,w=E===void 0?[]:E,T=g.edges,k=T===void 0?[]:T;if(w.length===0)return _;var b=k.map(function(H){return H});d&&b.sort(function(H,Q){return H.weight-Q.weight});for(var m=new B.default(w.map(function(H){return H.id}));b.length>0;){var $=b.shift(),W=$.source,X=$.target;m.connected(W,X)||(_.push($),m.union(W,X))}return _},y=function(g,d,_){var E={prim:N,kruskal:L};return _?E[_](g,d):L(g,d)},x=y;U.default=x},74926:function(or,U,z){"use strict";Object.defineProperty(U,"__esModule",{value:!0}),U.default=void 0;var B=R(z(82556)),j=z(70643);function R(L){return L&&L.__esModule?L:{default:L}}var A=function(y,x,v){typeof x!="number"&&(x=1e-6),typeof v!="number"&&(v=.85);for(var g=1,d=0,_=1e3,E=y.nodes,w=E===void 0?[]:E,T=y.edges,k=T===void 0?[]:T,b=w.length,m,$={},W={},X=0;X0&&g>x;){d=0;for(var X=0;X0&&(m+=W[fe]/de)}$[Q]=v*m,d+=$[Q]}}d=(1-d)/b,g=0;for(var X=0;X0&&(this.list[0]=N,this.moveDown(0)),A},R.prototype.insert=function(A){if(A!==null){this.list.push(A);var N=this.list.length-1;return this.moveUp(N),!0}return!1},R.prototype.moveUp=function(A){for(var N=this.getParent(A);A&&A>0&&this.compareFn(this.list[N],this.list[A])>0;){var L=this.list[N];this.list[N]=this.list[A],this.list[A]=L,A=N,N=this.getParent(A)}},R.prototype.moveDown=function(A){var N,L=A,y=this.getLeft(A),x=this.getRight(A),v=this.list.length;y!==null&&y0?L=y:x!==null&&x0&&(L=x),A!==L&&(N=[this.list[L],this.list[A]],this.list[A]=N[0],this.list[L]=N[1],this.moveDown(L))},R}(),j=B;U.default=j},88481:function(or,U){"use strict";Object.defineProperty(U,"__esModule",{value:!0}),U.default=U.LinkedListNode=void 0;var z=function(N,L){return N===L},B=function(){function A(N,L){L===void 0&&(L=null),this.value=N,this.next=L}return A.prototype.toString=function(N){return N?N(this.value):"".concat(this.value)},A}();U.LinkedListNode=B;var j=function(){function A(N){N===void 0&&(N=z),this.head=null,this.tail=null,this.compare=N}return A.prototype.prepend=function(N){var L=new B(N,this.head);return this.head=L,this.tail||(this.tail=L),this},A.prototype.append=function(N){var L=new B(N);return this.head?(this.tail.next=L,this.tail=L,this):(this.head=L,this.tail=L,this)},A.prototype.delete=function(N){if(!this.head)return null;for(var L=null;this.head&&this.compare(this.head.value,N);)L=this.head,this.head=this.head.next;var y=this.head;if(y!==null)for(;y.next;)this.compare(y.next.value,N)?(L=y.next,y.next=y.next.next):y=y.next;return this.compare(this.tail.value,N)&&(this.tail=y),L},A.prototype.find=function(N){var L=N.value,y=L===void 0?void 0:L,x=N.callback,v=x===void 0?void 0:x;if(!this.head)return null;for(var g=this.head;g;){if(v&&v(g.value)||y!==void 0&&this.compare(g.value,y))return g;g=g.next}return null},A.prototype.deleteTail=function(){var N=this.tail;if(this.head===this.tail)return this.head=null,this.tail=null,N;for(var L=this.head;L.next;)L.next.next?L=L.next:L.next=null;return this.tail=L,N},A.prototype.deleteHead=function(){if(!this.head)return null;var N=this.head;return this.head.next?this.head=this.head.next:(this.head=null,this.tail=null),N},A.prototype.fromArray=function(N){var L=this;return N.forEach(function(y){return L.append(y)}),this},A.prototype.toArray=function(){for(var N=[],L=this.head;L;)N.push(L),L=L.next;return N},A.prototype.reverse=function(){for(var N=this.head,L=null,y=null;N;)y=N.next,N.next=L,L=N,N=y;this.tail=this.head,this.head=L},A.prototype.toString=function(N){return N===void 0&&(N=void 0),this.toArray().map(function(L){return L.toString(N)}).toString()},A}(),R=j;U.default=R},93026:function(or,U,z){"use strict";Object.defineProperty(U,"__esModule",{value:!0}),U.default=void 0;var B=j(z(88481));function j(N){return N&&N.__esModule?N:{default:N}}var R=function(){function N(){this.linkedList=new B.default}return N.prototype.isEmpty=function(){return!this.linkedList.head},N.prototype.peek=function(){return this.linkedList.head?this.linkedList.head.value:null},N.prototype.enqueue=function(L){this.linkedList.append(L)},N.prototype.dequeue=function(){var L=this.linkedList.deleteHead();return L?L.value:null},N.prototype.toString=function(L){return this.linkedList.toString(L)},N}(),A=R;U.default=A},38823:function(or,U){"use strict";Object.defineProperty(U,"__esModule",{value:!0}),U.default=void 0;var z=function(){function j(R){this.count=R.length,this.parent={};for(var A=0,N=R;A0&&C[0]!==void 0?C[0]:1,!this.dirty){he.next=6;break}return this.compiledBundle.context&&(P>1?this.compiledBundle.context.maxIteration=P:this.compiledBundle.context.maxIteration++),he.next=5,this.compile();case 5:this.dirty=!1;case 6:for(this.engine.beginFrame(),this.engine.clear({}),this.compiledBundle.context&&this.compiledBundle.context.uniforms.filter(function(xe){var Ee=xe.isReferer;return Ee}).forEach(function(xe){var Ee=xe.data,Ne=xe.name;ae.model.confirmInput(Ee.model,Ne)}),S=0;S16)throw new Error("invalid data type ".concat(Ee));ae[xe]=function(){return he.data}}});var P=this.getOuputDataTexture(),S=P.textureWidth,C=P.texelCount;ae.u_OutputTextureSize=[S,S],ae.u_OutputTexelCount=C,this.context.output.textureSize=[S,S];var V={attributes:{a_Position:[[-1,1,0],[-1,-1,0],[1,1,0],[1,-1,0]],a_TexCoord:[[0,1],[0,0],[1,1],[1,0]]},frag:`#ifdef GL_FRAGMENT_PRECISION_HIGH - precision highp float; -#else - precision mediump float; -#endif -`.concat(this.context.shader),uniforms:ae,vert:gn,primitive:"triangle strip",count:4};this.computeCommand=this.reGl(V)}return(0,A.Z)(K,[{key:"run",value:function(){var rt=this;this.context.maxIteration>1&&this.context.needPingpong&&(this.compiledPingpong=!0),(this.compiledPingpong||this.dynamicPingpong)&&this.swap(),this.texFBO=this.reGl.framebuffer({color:this.getOuputDataTexture().texture}),this.texFBO.use(function(){rt.computeCommand()}),ct&&console.log("[".concat(this.entity,"]: output ").concat(this.getOuputDataTexture().id))}},{key:"readData",value:function(){var Dt=(0,B.Z)(_().mark(function ne(){var ae=this,P,S,C,V,he,xe,Ee,Ne;return _().wrap(function(st){for(;;)switch(st.prev=st.next){case 0:if(this.reGl({framebuffer:this.texFBO})(function(){P=ae.reGl.read()}),!P){st.next=6;break}if(S=this.getOuputDataTexture(),C=S.originalDataLength,V=S.elementsPerTexel,he=S.typedArrayConstructor,xe=he===void 0?Float32Array:he,Ee=[],V!==4)for(Ne=0;Ne2&&arguments[2]!==void 0?arguments[2]:0,P=this.context.uniforms.find(function(he){var xe=he.name;return xe===rt});if(P){var S=this.calcDataTexture(rt,P.type,ne),C=S.texture,V=S.data;this.textureCache[rt].data=V,this.textureCache[rt].texture=C}}},{key:"destroy",value:function(){}},{key:"swap",value:function(){if(this.swapOutputTextureName||this.createSwapOutputDataTexture(),this.compiledPingpong){var rt=this.context.output.name;this.textureCache[rt].id=this.getOuputDataTexture().id,this.textureCache[rt].texture=this.getOuputDataTexture().texture}var ne=this.outputTextureName;this.outputTextureName=this.swapOutputTextureName,this.swapOutputTextureName=ne,ct&&console.log("[".concat(this.entity,"]: after swap, output ").concat(this.getOuputDataTexture().id))}},{key:"getOuputDataTexture",value:function(){return this.textureCache[this.outputTextureName]}},{key:"createSwapOutputDataTexture",value:function(){var rt=this.cloneDataTexture(this.getOuputDataTexture());this.swapOutputTextureName="".concat(this.entity,"-swap"),this.textureCache[this.swapOutputTextureName]=rt}},{key:"cloneDataTexture",value:function(rt){var ne=rt.data,ae=rt.textureWidth;return $r($r({},rt),{},{id:Rr++,texture:this.reGl.texture({width:ae,height:ae,data:ne,type:"float"})})}},{key:"calcDataTexture",value:function(rt,ne,ae){var P=1;ne===X.Vector4FloatArray&&(P=4);for(var S=[],C=0;C0&&arguments[0]!==void 0?arguments[0]:{},ne=new K;return ne.setConfig(rt),ne.setEngine(new ln),ne}}]),K}()},67320:function(or,U,z){"use strict";var B=this&&this.__createBinding||(Object.create?function(A,N,L,y){y===void 0&&(y=L);var x=Object.getOwnPropertyDescriptor(N,L);(!x||("get"in x?!N.__esModule:x.writable||x.configurable))&&(x={enumerable:!0,get:function(){return N[L]}}),Object.defineProperty(A,y,x)}:function(A,N,L,y){y===void 0&&(y=L),A[y]=N[L]}),j=this&&this.__exportStar||function(A,N){for(var L in A)L!=="default"&&!Object.prototype.hasOwnProperty.call(N,L)&&B(N,A,L)};Object.defineProperty(U,"__esModule",{value:!0}),U.getLayoutByName=U.unRegisterLayout=U.registerLayout=void 0;var R=z(39464);Object.defineProperty(U,"registerLayout",{enumerable:!0,get:function(){return R.registerLayout}}),Object.defineProperty(U,"unRegisterLayout",{enumerable:!0,get:function(){return R.unRegisterLayout}}),Object.defineProperty(U,"getLayoutByName",{enumerable:!0,get:function(){return R.getLayoutByName}}),j(z(64649),U)},46253:function(or,U){"use strict";Object.defineProperty(U,"__esModule",{value:!0}),U.Base=void 0;var z=function(){function B(){this.nodes=[],this.edges=[],this.combos=[],this.comboEdges=[],this.hiddenNodes=[],this.hiddenEdges=[],this.hiddenCombos=[],this.vedges=[],this.positions=[],this.destroyed=!1,this.onLayoutEnd=function(){}}return B.prototype.layout=function(j){return this.init(j),this.execute(!0)},B.prototype.init=function(j){this.nodes=j.nodes||[],this.edges=j.edges||[],this.combos=j.combos||[],this.comboEdges=j.comboEdges||[],this.hiddenNodes=j.hiddenNodes||[],this.hiddenEdges=j.hiddenEdges||[],this.hiddenCombos=j.hiddenCombos||[],this.vedges=j.vedges||[]},B.prototype.execute=function(j){},B.prototype.executeWithWorker=function(){},B.prototype.getDefaultCfg=function(){return{}},B.prototype.updateCfg=function(j){j&&Object.assign(this,j)},B.prototype.getType=function(){return"base"},B.prototype.destroy=function(){this.nodes=null,this.edges=null,this.combos=null,this.positions=null,this.destroyed=!0},B}();U.Base=z},93959:function(or,U,z){"use strict";var B=this&&this.__extends||function(){var x=function(v,g){return x=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,_){d.__proto__=_}||function(d,_){for(var E in _)Object.prototype.hasOwnProperty.call(_,E)&&(d[E]=_[E])},x(v,g)};return function(v,g){if(typeof g!="function"&&g!==null)throw new TypeError("Class extends value "+String(g)+" is not a constructor or null");x(v,g);function d(){this.constructor=v}v.prototype=g===null?Object.create(g):(d.prototype=g.prototype,new d)}}();Object.defineProperty(U,"__esModule",{value:!0}),U.CircularLayout=void 0;var j=z(46253),R=z(8273);function A(x,v,g,d){x.forEach(function(_,E){x[E].children=[],x[E].parent=[]}),d?v.forEach(function(_){var E=(0,R.getEdgeTerminal)(_,"source"),w=(0,R.getEdgeTerminal)(_,"target"),T=0;E&&(T=g[E]);var k=0;w&&(k=g[w]);var b=x[T].children,m=x[k].parent;b.push(x[k].id),m.push(x[T].id)}):v.forEach(function(_){var E=(0,R.getEdgeTerminal)(_,"source"),w=(0,R.getEdgeTerminal)(_,"target"),T=0;E&&(T=g[E]);var k=0;w&&(k=g[w]);var b=x[T].children,m=x[k].children;b.push(x[k].id),m.push(x[T].id)})}function N(x,v,g){for(var d=g.length,_=0;_d?1:0}var y=function(x){B(v,x);function v(g){var d=x.call(this)||this;return d.radius=null,d.nodeSize=void 0,d.startRadius=null,d.endRadius=null,d.startAngle=0,d.endAngle=2*Math.PI,d.clockwise=!0,d.divisions=1,d.ordering=null,d.angleRatio=1,d.nodes=[],d.edges=[],d.nodeMap={},d.degrees=[],d.width=300,d.height=300,d.updateCfg(g),d}return v.prototype.getDefaultCfg=function(){return{radius:null,startRadius:null,endRadius:null,startAngle:0,endAngle:2*Math.PI,clockwise:!0,divisions:1,ordering:null,angleRatio:1}},v.prototype.execute=function(){var g,d=this,_=d.nodes,E=d.edges,w=_.length;if(w===0){d.onLayoutEnd&&d.onLayoutEnd();return}!d.width&&typeof window!="undefined"&&(d.width=window.innerWidth),!d.height&&typeof window!="undefined"&&(d.height=window.innerHeight),d.center||(d.center=[d.width/2,d.height/2]);var T=d.center;if(w===1){_[0].x=T[0],_[0].y=T[1],d.onLayoutEnd&&d.onLayoutEnd();return}var k=d.radius,b=d.startRadius,m=d.endRadius,$=d.divisions,W=d.startAngle,X=d.endAngle,H=d.angleRatio,Q=d.ordering,q=d.clockwise,J=d.nodeSpacing,te=d.nodeSize,fe=(X-W)/w,de={};_.forEach(function(Rt,tr){de[Rt.id]=tr}),d.nodeMap=de;var Te=(0,R.getDegree)(_.length,de,E);if(d.degrees=Te,J){var Se=(0,R.getFuncByUnknownType)(10,J),Ie=(0,R.getFuncByUnknownType)(10,te),be=-Infinity;_.forEach(function(Rt){var tr=Ie(Rt);bed.width?d.width/2:d.height/2:!b&&m?b=m:b&&!m&&(m=b);var Me=fe*H,De=[];Q==="topology"?De=d.topologyOrdering():Q==="topology-directed"?De=d.topologyOrdering(!0):Q==="degree"?De=d.degreeOrdering():De=_;for(var Ue=Math.ceil(w/$),nt=0;nt=0;Ie--)Se(Ie);return{nodes:_,edges:E,combos:w,comboEdges:T}},v.prototype.getInnerGraphs=function(g){var d=this,_=d.comboTrees,E=d.nodeSize,w=d.edges,T=d.comboPadding,k=d.spacing,b={},m=this.innerLayout||new L.ConcentricLayout({sortBy:"id"});return m.center=[0,0],m.preventOverlap=!0,m.nodeSpacing=k,(_||[]).forEach(function($){(0,N.traverseTreeUp)($,function(W){var X,H=(T==null?void 0:T(W))||10;if((0,N.isArray)(H)&&(H=Math.max.apply(Math,H)),(X=W.children)===null||X===void 0?void 0:X.length){var q=W.children.map(function(De){if(De.itemType==="combo")return b[De.id];var Ue=g[De.id]||{};return j(j({},Ue),De)}),J=q.map(function(De){return De.id}),te={nodes:q,edges:w.filter(function(De){return J.includes(De.source)&&J.includes(De.target)})},fe=Infinity;q.forEach(function(De){var Ue;De.size||(De.size=((Ue=b[De.id])===null||Ue===void 0?void 0:Ue.size)||(E==null?void 0:E(De))||[30,30]),(0,N.isNumber)(De.size)&&(De.size=[De.size,De.size]),fe>De.size[0]&&(fe=De.size[0]),fe>De.size[1]&&(fe=De.size[1])}),m.layout(te);var de=(0,N.getLayoutBBox)(q),Te=de.minX,Se=de.minY,Ie=de.maxX,be=de.maxY,pe={x:(Ie+Te)/2,y:(be+Se)/2};te.nodes.forEach(function(De){De.x-=pe.x,De.y-=pe.y});var Me=Math.max(Ie-Te,be-Se,fe)+H*2;b[W.id]={id:W.id,nodes:q,size:[Me,Me]}}else if(W.itemType==="combo"){var Q=H?[H*2,H*2]:[30,30];b[W.id]={id:W.id,nodes:[],size:Q}}return!0})}),b},v.prototype.initVals=function(){var g=this,d=g.nodeSize,_=g.spacing,E,w;if((0,N.isNumber)(_)?w=function(){return _}:(0,N.isFunction)(_)?w=_:w=function(){return 0},this.spacing=w,!d)E=function(W){var X=w(W);if(W.size){if((0,N.isArray)(W.size)){var H=W.size[0]>W.size[1]?W.size[0]:W.size[1];return(H+X)/2}if((0,N.isObject)(W.size)){var H=W.size.width>W.size.height?W.size.width:W.size.height;return(H+X)/2}return(W.size+X)/2}return 10+X/2};else if((0,N.isFunction)(d))E=function(W){var X=d(W),H=w(W);if((0,N.isArray)(W.size)){var Q=W.size[0]>W.size[1]?W.size[0]:W.size[1];return(Q+H)/2}return((X||10)+H)/2};else if((0,N.isArray)(d)){var T=d[0]>d[1]?d[0]:d[1],k=T/2;E=function(W){return k+w(W)/2}}else{var b=d/2;E=function(W){return b+w(W)/2}}this.nodeSize=E;var m=g.comboPadding,$;(0,N.isNumber)(m)?$=function(){return m}:(0,N.isArray)(m)?$=function(){return Math.max.apply(null,m)}:(0,N.isFunction)(m)?$=m:$=function(){return 0},this.comboPadding=$},v.prototype.getType=function(){return"comboCombined"},v}(A.Base);U.ComboCombinedLayout=y},48133:function(or,U,z){"use strict";var B=this&&this.__extends||function(){var N=function(L,y){return N=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,v){x.__proto__=v}||function(x,v){for(var g in v)Object.prototype.hasOwnProperty.call(v,g)&&(x[g]=v[g])},N(L,y)};return function(L,y){if(typeof y!="function"&&y!==null)throw new TypeError("Class extends value "+String(y)+" is not a constructor or null");N(L,y);function x(){this.constructor=L}L.prototype=y===null?Object.create(y):(x.prototype=y.prototype,new x)}}();Object.defineProperty(U,"__esModule",{value:!0}),U.ComboForceLayout=void 0;var j=z(46253),R=z(8273),A=function(N){B(L,N);function L(y){var x=N.call(this)||this;return x.center=[0,0],x.maxIteration=100,x.gravity=10,x.comboGravity=10,x.linkDistance=10,x.alpha=1,x.alphaMin=.001,x.alphaDecay=1-Math.pow(x.alphaMin,1/300),x.alphaTarget=0,x.velocityDecay=.6,x.edgeStrength=.6,x.nodeStrength=30,x.preventOverlap=!1,x.preventNodeOverlap=!1,x.preventComboOverlap=!1,x.collideStrength=void 0,x.nodeCollideStrength=.5,x.comboCollideStrength=.5,x.comboSpacing=20,x.comboPadding=10,x.optimizeRangeFactor=1,x.onTick=function(){},x.onLayoutEnd=function(){},x.depthAttractiveForceScale=1,x.depthRepulsiveForceScale=2,x.nodes=[],x.edges=[],x.combos=[],x.comboTrees=[],x.width=300,x.height=300,x.bias=[],x.nodeMap={},x.oriComboMap={},x.indexMap={},x.comboMap={},x.previousLayouted=!1,x.updateCfg(y),x}return L.prototype.getDefaultCfg=function(){return{maxIteration:100,center:[0,0],gravity:10,speed:1,comboGravity:30,preventOverlap:!1,preventComboOverlap:!0,preventNodeOverlap:!0,nodeSpacing:void 0,collideStrength:void 0,nodeCollideStrength:.5,comboCollideStrength:.5,comboSpacing:20,comboPadding:10,edgeStrength:.6,nodeStrength:30,linkDistance:10}},L.prototype.execute=function(){var y=this,x=y.nodes,v=y.center;if(y.comboTree={id:"comboTreeRoot",depth:-1,children:y.comboTrees},!x||x.length===0){y.onLayoutEnd&&y.onLayoutEnd();return}if(x.length===1){x[0].x=v[0],x[0].y=v[1],y.onLayoutEnd&&y.onLayoutEnd();return}y.initVals(),y.run(),y.onLayoutEnd&&y.onLayoutEnd()},L.prototype.run=function(){var y=this,x=y.nodes,v=y.previousLayouted?y.maxIteration/5:y.maxIteration;!y.width&&typeof window!="undefined"&&(y.width=window.innerWidth),!y.height&&typeof window!="undefined"&&(y.height=window.innerHeight);var g=y.center,d=y.velocityDecay,_=y.comboMap;y.previousLayouted||y.initPos(_);for(var E=function(b){var m=[];x.forEach(function($,W){m[W]={x:0,y:0}}),y.applyCalculate(m),y.applyComboCenterForce(m),x.forEach(function($,W){!(0,R.isNumber)($.x)||!(0,R.isNumber)($.y)||($.x+=m[W].x*d,$.y+=m[W].y*d)}),y.alpha+=(y.alphaTarget-y.alpha)*y.alphaDecay,y.onTick()},w=0;wZe.size[1]?Ze.size[0]:Ze.size[1];return ht/2}if((0,R.isObject)(Ze.size)){var ht=Ze.size.width>Ze.size.height?Ze.size.width:Ze.size.height;return ht/2}return Ze.size/2}return 10};else if((0,R.isFunction)(X))Q=function(Ze){return X(Ze)};else if((0,R.isArray)(X)){var J=X[0]>X[1]?X[0]:X[1],te=J/2;Q=function(Ze){return te}}else{var fe=X/2;Q=function(Ze){return fe}}this.nodeSize=Q;var de=y.comboSpacing,Te;(0,R.isNumber)(de)?Te=function(){return de}:(0,R.isFunction)(de)?Te=de:Te=function(){return 0},this.comboSpacing=Te;var Se=y.comboPadding,Ie;(0,R.isNumber)(Se)?Ie=function(){return Se}:(0,R.isArray)(Se)?Ie=function(){return Math.max.apply(null,Se)}:(0,R.isFunction)(Se)?Ie=Se:Ie=function(){return 0},this.comboPadding=Ie;var be=this.linkDistance,pe;be||(be=10),(0,R.isNumber)(be)?pe=function(Ze){return be}:pe=be,this.linkDistance=pe;var Me=this.edgeStrength,De;Me||(Me=1),(0,R.isNumber)(Me)?De=function(Ze){return Me}:De=Me,this.edgeStrength=De;var Ue=this.nodeStrength,nt;Ue||(Ue=30),(0,R.isNumber)(Ue)?nt=function(Ze){return Ue}:nt=Ue,this.nodeStrength=nt},L.prototype.initPos=function(y){var x=this,v=x.nodes;v.forEach(function(g,d){var _=g.comboId,E=y[_];_&&E?(g.x=E.cx+100/(d+1),g.y=E.cy+100/(d+1)):(g.x=100/(d+1),g.y=100/(d+1))})},L.prototype.getComboMap=function(){var y=this,x=y.nodeMap,v=y.comboTrees,g=y.oriComboMap,d={};return(v||[]).forEach(function(_){var E=[];(0,R.traverseTreeUp)(_,function(w){if(w.itemType==="node"||!g[w.id])return!0;if(d[w.id]===void 0){var T={id:w.id,name:w.id,cx:0,cy:0,count:0,depth:y.oriComboMap[w.id].depth||0,children:[]};d[w.id]=T}var k=w.children;k&&k.forEach(function($){if(!d[$.id]&&!x[$.id])return!0;E.push($)});var b=d[w.id];if(b.cx=0,b.cy=0,E.length===0){b.empty=!0;var m=g[w.id];b.cx=m.x,b.cy=m.y}return E.forEach(function($){if(b.count++,$.itemType!=="node"){var W=d[$.id];(0,R.isNumber)(W.cx)&&(b.cx+=W.cx),(0,R.isNumber)(W.cy)&&(b.cy+=W.cy);return}var X=x[$.id];!X||((0,R.isNumber)(X.x)&&(b.cx+=X.x),(0,R.isNumber)(X.y)&&(b.cy+=X.y))}),b.cx/=b.count||1,b.cy/=b.count||1,b.children=E,!0})}),d},L.prototype.applyComboCenterForce=function(y){var x=this,v=x.gravity,g=x.comboGravity||v,d=this.alpha,_=x.comboTrees,E=x.indexMap,w=x.nodeMap,T=x.comboMap;(_||[]).forEach(function(k){(0,R.traverseTreeUp)(k,function(b){if(b.itemType==="node")return!0;var m=T[b.id];if(!m)return!0;var $=T[b.id],W=($.depth+1)/10*.5,X=$.cx,H=$.cy;return $.cx=0,$.cy=0,$.children.forEach(function(Q){if(Q.itemType!=="node"){var q=T[Q.id];q&&(0,R.isNumber)(q.cx)&&($.cx+=q.cx),q&&(0,R.isNumber)(q.cy)&&($.cy+=q.cy);return}var J=w[Q.id],te=J.x-X||.005,fe=J.y-H||.005,de=Math.sqrt(te*te+fe*fe),Te=E[J.id],Se=g*d/de*W;y[Te].x-=te*Se,y[Te].y-=fe*Se,(0,R.isNumber)(J.x)&&($.cx+=J.x),(0,R.isNumber)(J.y)&&($.cy+=J.y)}),$.cx/=$.count||1,$.cy/=$.count||1,!0})})},L.prototype.applyCalculate=function(y){var x=this,v=x.comboMap,g=x.nodes,d={};g.forEach(function(E,w){g.forEach(function(T,k){if(!(wq&&(b.minX=q),b.minY>J&&(b.minY=J),b.maxX1&&T.forEach(function(k,b){if(k.itemType==="node")return!1;var m=x[k.id];!m||T.forEach(function($,W){if(b<=W||$.itemType==="node")return!1;var X=x[$.id];if(!X)return!1;var H=m.cx-X.cx||.005,Q=m.cy-X.cy||.005,q=H*H+Q*Q,J=m.r||1,te=X.r||1,fe=J+te,de=te*te,Te=J*J;if(qd)){var Ie=x["".concat(W.id,"-").concat(te.id)],be=Ie.vx,pe=Ie.vy,Me=Math.log(Math.abs(te.depth-W.depth)/10)+1||1;Me=Me<1?1:Me,te.comboId!==W.comboId&&(Me+=1);var De=Me?Math.pow(m,Me):1,Ue=_(te)*E/Te*De;if(y[X].x+=be*Ue,y[X].y+=pe*Ue,X0){var De=Math.abs(Q[0][v.sortBy]-Me[v.sortBy]);v.maxLevelDiff&&De>=v.maxLevelDiff&&(Q=[],H.push(Q))}Q.push(Me)});var q=b+(m||v.minNodeSpacing);if(!v.preventOverlap){var J=H.length>0&&H[0].length>1,te=Math.min(v.width,v.height)/2-q,fe=te/(H.length+(J?1:0));q=Math.min(q,fe)}var de=0;if(H.forEach(function(Me){var De=v.sweep;De===void 0&&(De=2*Math.PI-2*Math.PI/Me.length);var Ue=Me.dTheta=De/Math.max(1,Me.length-1);if(Me.length>1&&v.preventOverlap){var nt=Math.cos(Ue)-Math.cos(0),Ze=Math.sin(Ue)-Math.sin(0),ht=Math.sqrt(q*q/(nt*nt+Ze*Ze));de=Math.max(ht,de)}Me.r=de,de+=q}),v.equidistant){for(var Te=0,Se=0,Ie=0;IeWt.x&&(Rt=Wt.x),tr>Wt.y&&(tr=Wt.y)}),de.edges().forEach(function(ct){var Wt,Er=de.edge(ct);(Wt=Er.points)===null||Wt===void 0||Wt.forEach(function(Dr){Rt>Dr.x&&(Rt=Dr.x),tr>Dr.y&&(tr=Dr.y)})}),ht[0]=X[0]-Rt,ht[1]=X[1]-tr}var Qe=$==="LR"||$==="RL";if(H){var lt=this,St=lt.focusNode,Ct=lt.ranksep,_t=lt.getRadialPos,pt=(0,A.isString)(St)?St:St==null?void 0:St.id,rr=pt?(T=de.node(pt))===null||T===void 0?void 0:T._rank:0,xr=[],Vt=Qe?"y":"x",ft=Qe?"height":"width",Bt=Infinity,qt=-Infinity;de.nodes().forEach(function(ct){var Wt=de.node(ct);if(!!k.nodeMap[ct]){var Er=Me(k.nodeMap[ct]);if(rr===0)xr[Wt._rank]||(xr[Wt._rank]={nodes:[],totalWidth:0,maxSize:-Infinity}),xr[Wt._rank].nodes.push(ct),xr[Wt._rank].totalWidth+=Er*2+Wt[ft],xr[Wt._rank].maxSizeqt&&(qt=wn)}});var br=Ct||50,Ur={},Ae=(qt-Bt)/.9,Hr=[(Bt+qt-Ae)*.5,(Bt+qt+Ae)*.5],Sr=function(ct,Wt,Er,Dr){Er===void 0&&(Er=-Infinity),Dr===void 0&&(Dr=[0,1]);var Vr=Er;return ct.forEach(function(pn){var wn=de.node(pn);Ur[pn]=Wt;var Sn=_t(wn[Vt],Hr,Ae,Wt,Dr),In=Sn.x,$n=Sn.y;if(!!k.nodeMap[pn]){k.nodeMap[pn].x=In+ht[0],k.nodeMap[pn].y=$n+ht[1],k.nodeMap[pn]._order=wn._order;var Zr=pe(k.nodeMap[pn]);Vr=Vr})}:function(ct,Wt,Er){var Dr=Math.max(Wt.x,Er.x),Vr=Math.min(Wt.x,Er.x);return ct.filter(function(pn){return pn.x<=Dr&&pn.x>=Vr})};de.edges().forEach(function(ct){var Wt,Er=de.edge(ct),Dr=fe.findIndex(function(wn){var Sn=(0,A.getEdgeTerminal)(wn,"source"),In=(0,A.getEdgeTerminal)(wn,"target");return Sn===ct.v&&In===ct.w});if(!(Dr<=-1)&&k.edgeLabelSpace&&k.controlPoints&&fe[Dr].type!=="loop"){(Wt=Er==null?void 0:Er.points)===null||Wt===void 0||Wt.forEach(function(wn){wn.x+=ht[0],wn.y+=ht[1]});var Vr=k.nodeMap[ct.v],pn=k.nodeMap[ct.w];fe[Dr].controlPoints=x(Er==null?void 0:Er.points,Vr,pn,$r,Qe,gn,Rr)}})}return k.onLayoutEnd&&k.onLayoutEnd(),{nodes:b,edges:fe}}},g.prototype.getRadialPos=function(d,_,E,w,T){T===void 0&&(T=[0,1]);var k=(d-_[0])/E;k=k*(T[1]-T[0])+T[0];var b=k*2*Math.PI;return{x:Math.cos(b)*w,y:Math.sin(b)*w}},g.prototype.getType=function(){return"dagre"},g}(N.Base);U.DagreLayout=y;var x=function(v,g,d,_,E,w,T){var k=(v==null?void 0:v.slice(1,v.length-1))||[];if(g&&d){var b=g.x,m=g.y,$=d.x,W=d.y;if(E&&(b=g.y,m=g.x,$=d.y,W=d.x),W!==m&&b!==$){var X=_.indexOf(m),H=_[X+1];if(H){var Q=k[0],q=E?{x:(m+H)/2,y:(Q==null?void 0:Q.y)||$}:{x:(Q==null?void 0:Q.x)||$,y:(m+H)/2};(!Q||w(Q,q))&&k.unshift(q)}var J=_.indexOf(W),te=Math.abs(J-X);if(te===1)k=T(k,g,d),k.length||k.push(E?{x:(m+W)/2,y:b}:{x:b,y:(m+W)/2});else if(te>1){var fe=_[J-1];if(fe){var de=k[k.length-1],Te=E?{x:(W+fe)/2,y:(de==null?void 0:de.y)||$}:{x:(de==null?void 0:de.x)||b,y:(W+fe)/2};(!de||w(de,Te))&&k.push(Te)}}}}return k}},77620:function(or,U,z){"use strict";var B=this&&this.__extends||function(){var x=function(v,g){return x=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,_){d.__proto__=_}||function(d,_){for(var E in _)Object.prototype.hasOwnProperty.call(_,E)&&(d[E]=_[E])},x(v,g)};return function(v,g){if(typeof g!="function"&&g!==null)throw new TypeError("Class extends value "+String(g)+" is not a constructor or null");x(v,g);function d(){this.constructor=v}v.prototype=g===null?Object.create(g):(d.prototype=g.prototype,new d)}}(),j=this&&this.__assign||function(){return j=Object.assign||function(x){for(var v,g=1,d=arguments.length;gb.x&&(T=b.x),k>b.y&&(k=b.y)}),d.forEach(function(b){b.points.forEach(function(m){T>m.x&&(T=m.x),k>m.y&&(k=m.y)})}),w[0]=E[0]-T,w[1]=E[1]-k}return w},v.prototype.updateNodePosition=function(g,d){var _=this,E=_.combos,w=_.nodes,T=_.edges,k=_.anchorPoint,b=_.graphSettings,m=this.getBegin(g,d);g.forEach(function($){var W,X=$.x,H=$.y,Q=$.id,q=$.type,J=$.coreBox;if(q===N.HierarchyNodeType.META&&Q!==N.ROOT_NAME){var te=E.findIndex(function(Ie){return Ie.id===Q}),fe=(W=b==null?void 0:b.subScene)===null||W===void 0?void 0:W.meta;E[te].offsetX=X+m[0],E[te].offsetY=H+m[1],E[te].fixSize=[J.width,J.height],E[te].fixCollapseSize=[J.width,J.height],$.expanded?E[te].padding=[fe==null?void 0:fe.paddingTop,fe==null?void 0:fe.paddingRight,fe==null?void 0:fe.paddingBottom,fe==null?void 0:fe.paddingLeft]:E[te].padding=[0,0,0,0]}else if(q===N.HierarchyNodeType.OP){var te=w.findIndex(function(be){return be.id===Q});if(w[te].x=X+m[0],w[te].y=H+m[1],k){var de=[],Te=d.filter(function(be){return be.v===Q}),Se=d.filter(function(be){return be.w===Q});Te.length>0&&Te.forEach(function(be){var pe=be.points[0],Me=(pe.x-X)/$.width+.5,De=(pe.y-H)/$.height+.5;de.push([Me,De]),be.baseEdgeList.forEach(function(Ue){var nt=T.find(function(Ze){return Ze.source===Ue.v&&Ze.target===Ue.w});nt&&(nt.sourceAnchor=de.length-1)})}),Se.length>0&&Se.forEach(function(be){var pe=be.points[be.points.length-1],Me=(pe.x-X)/$.width+.5,De=(pe.y-H)/$.height+.5;de.push([Me,De]),be.baseEdgeList.forEach(function(Ue){var nt=T.find(function(Ze){return Ze.source===Ue.v&&Ze.target===Ue.w});nt&&(nt.targetAnchor=de.length-1)})}),w[te].anchorPoints=de.length>0?de:w[te].anchorPoints||[]}}})},v.prototype.updateEdgePosition=function(g,d){var _=this,E=_.combos,w=_.edges,T=_.controlPoints,k=this.getBegin(g,d);T&&(E.forEach(function(b){b.inEdges=[],b.outEdges=[]}),w.forEach(function(b){var m,$,W,X,H=g.find(function(Ie){return Ie.id===b.source}),Q=g.find(function(Ie){return Ie.id===b.target}),q=[],J=[];if(H&&Q)J=(0,N.getEdges)(H==null?void 0:H.id,Q==null?void 0:Q.id,g);else if(!H||!Q){var te=_.getNodePath(b.source),fe=_.getNodePath(b.target),de=te.reverse().slice(H?0:1).find(function(Ie){return g.find(function(be){return be.id===Ie})}),Te=fe.reverse().slice(Q?0:1).find(function(Ie){return g.find(function(be){return be.id===Ie})});H=g.find(function(Ie){return Ie.id===de}),Q=g.find(function(Ie){return Ie.id===Te}),J=(0,N.getEdges)(H==null?void 0:H.id,Q==null?void 0:Q.id,g,{v:b.source,w:b.target})}if(q=J.reduce(function(Ie,be){return R(R([],Ie,!0),be.points.map(function(pe){return j(j({},pe),{x:pe.x+k[0],y:pe.y+k[1]})}),!0)},[]),q=q.slice(1,-1),b.controlPoints=q,(Q==null?void 0:Q.type)===N.NodeType.META){var Se=E.findIndex(function(Ie){return Ie.id===(Q==null?void 0:Q.id)});if(!E[Se]||((m=E[Se].inEdges)===null||m===void 0?void 0:m.some(function(Ie){return Ie.source===H.id&&Ie.target===Q.id})))return;($=E[Se].inEdges)===null||$===void 0||$.push({source:H.id,target:Q.id,controlPoints:q})}if((H==null?void 0:H.type)===N.NodeType.META){var Se=E.findIndex(function(be){return be.id===(H==null?void 0:H.id)});if(!E[Se]||((W=E[Se].outEdges)===null||W===void 0?void 0:W.some(function(be){return be.source===H.id&&be.target===Q.id})))return;(X=E[Se].outEdges)===null||X===void 0||X.push({source:H.id,target:Q.id,controlPoints:q})}}))},v.prototype.getType=function(){return"dagreCompound"},v.prototype.getDataByOrder=function(g){return g.every(function(d){return d.layoutOrder!==void 0})||g.forEach(function(d,_){d.layoutOrder=_}),g.sort(function(d,_){return d.layoutOrder-_.layoutOrder})},v}(A.Base);U.DagreCompoundLayout=y},67858:function(or,U,z){"use strict";var B=this&&this.__extends||function(){var A=function(N,L){return A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,x){y.__proto__=x}||function(y,x){for(var v in x)Object.prototype.hasOwnProperty.call(x,v)&&(y[v]=x[v])},A(N,L)};return function(N,L){if(typeof L!="function"&&L!==null)throw new TypeError("Class extends value "+String(L)+" is not a constructor or null");A(N,L);function y(){this.constructor=N}N.prototype=L===null?Object.create(L):(y.prototype=L.prototype,new y)}}();Object.defineProperty(U,"__esModule",{value:!0}),U.Graph=void 0;var j=z(69787),R=function(A){B(N,A);function N(){return A!==null&&A.apply(this,arguments)||this}return N}(j.Graph);U.Graph=R},53186:function(or,U,z){"use strict";var B=this&&this.__importDefault||function(A){return A&&A.__esModule?A:{default:A}};Object.defineProperty(U,"__esModule",{value:!0});var j=B(z(86282)),R=z(95869);U.default={layout:j.default,util:{time:R.time,notime:R.notime}}},65721:function(or,U,z){"use strict";var B=this&&this.__importDefault||function(L){return L&&L.__esModule?L:{default:L}};Object.defineProperty(U,"__esModule",{value:!0});var j=B(z(81628)),R=function(L){var y=function(v){return function(g){var d;return((d=v.edge(g))===null||d===void 0?void 0:d.weight)||1}},x=L.graph().acyclicer==="greedy"?(0,j.default)(L,y(L)):A(L);x==null||x.forEach(function(v){var g=L.edge(v);L.removeEdgeObj(v),g.forwardName=v.name,g.reversed=!0,L.setEdge(v.w,v.v,g,"rev-".concat(Math.random()))})},A=function(L){var y=[],x={},v={},g=function(d){var _;v[d]||(v[d]=!0,x[d]=!0,(_=L.outEdges(d))===null||_===void 0||_.forEach(function(E){x[E.w]?y.push(E):g(E.w)}),delete x[d])};return L.nodes().forEach(g),y},N=function(L){L.edges().forEach(function(y){var x=L.edge(y);if(x.reversed){L.removeEdgeObj(y);var v=x.forwardName;delete x.reversed,delete x.forwardName,L.setEdge(y.w,y.v,x,v)}})};U.default={run:R,undo:N}},88597:function(or,U,z){"use strict";Object.defineProperty(U,"__esModule",{value:!0});var B=z(95869),j=function(A){var N,L=function(y){var x=A.children(y),v=A.node(y);if((x==null?void 0:x.length)&&x.forEach(function(_){return L(_)}),v.hasOwnProperty("minRank")){v.borderLeft=[],v.borderRight=[];for(var g=v.minRank,d=v.maxRank+1;g0;--W)if($=w[W].dequeue(),$){k=k.concat(g(E,w,T,$,!0));break}}}return k},g=function(E,w,T,k,b){var m,$,W=[];return(m=E.inEdges(k.v))===null||m===void 0||m.forEach(function(X){var H=E.edge(X),Q=E.node(X.v);b&&W.push({v:X.v,w:X.w,in:0,out:0}),Q.out===void 0&&(Q.out=0),Q.out-=H,_(w,T,Q)}),($=E.outEdges(k.v))===null||$===void 0||$.forEach(function(X){var H=E.edge(X),Q=X.w,q=E.node(Q);q.in===void 0&&(q.in=0),q.in-=H,_(w,T,q)}),E.removeNode(k.v),b?W:void 0},d=function(E,w){var T=new L,k=0,b=0;E.nodes().forEach(function(H){T.setNode(H,{v:H,in:0,out:0})}),E.edges().forEach(function(H){var Q=T.edge(H)||0,q=(w==null?void 0:w(H))||1,J=Q+q;T.setEdge(H.v,H.w,J),b=Math.max(b,T.node(H.v).out+=q),k=Math.max(k,T.node(H.w).in+=q)});for(var m=[],$=b+k+3,W=0;W<$;W++)m.push(new N);var X=k+1;return T.nodes().forEach(function(H){_(m,X,T.node(H))}),{buckets:m,zeroIdx:X,graph:T}},_=function(E,w,T){T.out?T.in?E[T.out-T.in+w].enqueue(T):E[E.length-1].enqueue(T):E[0].enqueue(T)};U.default=x},86282:function(or,U,z){"use strict";var B=this&&this.__assign||function(){return B=Object.assign||function(Qe){for(var lt,St=1,Ct=arguments.length;St0;)T%2&&(k+=_[T+1]),T=T-1>>1,_[T]+=w.weight;E+=w.weight*k}}),E},R=function(A,N){for(var L=0,y=1;y<(N==null?void 0:N.length);y+=1)L+=j(A,N[y-1],N[y]);return L};U.default=R},15113:function(or,U,z){"use strict";var B=this&&this.__importDefault||function(w){return w&&w.__esModule?w:{default:w}};Object.defineProperty(U,"__esModule",{value:!0});var j=B(z(19722)),R=B(z(14842)),A=B(z(74798)),N=B(z(99388)),L=B(z(69563)),y=z(8273),x=z(67858),v=z(95869),g=function(w,T){for(var k=(0,v.maxRank)(w),b=[],m=[],$=1;$-1;$--)m.push($);var W=d(w,b,"inEdges"),X=d(w,m,"outEdges"),H=(0,j.default)(w);E(w,H);for(var Q=Number.POSITIVE_INFINITY,q,$=0,J=0;J<4;++$,++J){_($%2?W:X,$%4>=2,!1,T),H=(0,v.buildLayerMatrix)(w);var te=(0,R.default)(w,H);te=2,!0,T),H=(0,v.buildLayerMatrix)(w);var te=(0,R.default)(w,H);te=_.barycenter)&&j(_,E)}},x=function(_){return function(E){E.in.push(_),--E.indegree==0&&R.push(E)}},v=function(){var _=R.pop();L.push(_),(A=_.in.reverse())===null||A===void 0||A.forEach(function(E){return y(_)(E)}),(N=_.out)===null||N===void 0||N.forEach(function(E){return x(_)(E)})};R==null?void 0:R.length;)v();var g=L.filter(function(_){return!_.merged}),d=["vs","i","barycenter","weight"];return g.map(function(_){var E={};return d==null||d.forEach(function(w){_[w]!==void 0&&(E[w]=_[w])}),E})},j=function(R,A){var N,L=0,y=0;R.weight&&(L+=R.barycenter*R.weight,y+=R.weight),A.weight&&(L+=A.barycenter*A.weight,y+=A.weight),R.vs=(N=A.vs)===null||N===void 0?void 0:N.concat(R.vs),R.barycenter=L/y,R.weight=y,R.i=Math.min(A.i,R.i),A.merged=!0};U.default=z},69563:function(or,U,z){"use strict";var B=this&&this.__importDefault||function(x){return x&&x.__esModule?x:{default:x}};Object.defineProperty(U,"__esModule",{value:!0});var j=B(z(38937)),R=B(z(73792)),A=B(z(17457)),N=function(x,v,g,d,_,E){var w,T,k,b,m=x.children(v),$=x.node(v),W=$?$.borderLeft:void 0,X=$?$.borderRight:void 0,H={};W&&(m=m==null?void 0:m.filter(function(de){return de!==W&&de!==X}));var Q=(0,j.default)(x,m||[]);Q==null||Q.forEach(function(de){var Te;if((Te=x.children(de.v))===null||Te===void 0?void 0:Te.length){var Se=N(x,de.v,g,d,E);H[de.v]=Se,Se.hasOwnProperty("barycenter")&&y(de,Se)}});var q=(0,R.default)(Q,g);L(q,H),(w=q.filter(function(de){return de.vs.length>0}))===null||w===void 0||w.forEach(function(de){var Te=x.node(de.vs[0]);Te&&(de.fixorder=Te.fixorder,de.order=Te.order)});var J=(0,A.default)(q,d,_,E);if(W&&(J.vs=[W,J.vs,X].flat(),(T=x.predecessors(W))===null||T===void 0?void 0:T.length)){var te=x.node(((k=x.predecessors(W))===null||k===void 0?void 0:k[0])||""),fe=x.node(((b=x.predecessors(X))===null||b===void 0?void 0:b[0])||"");J.hasOwnProperty("barycenter")||(J.barycenter=0,J.weight=0),J.barycenter=(J.barycenter*J.weight+te.order+fe.order)/(J.weight+2),J.weight+=2}return J},L=function(x,v){x==null||x.forEach(function(g){var d,_=(d=g.vs)===null||d===void 0?void 0:d.map(function(E){return v[E]?v[E].vs:E});g.vs=_.flat()})},y=function(x,v){x.barycenter!==void 0?(x.barycenter=(x.barycenter*x.weight+v.barycenter*v.weight)/(x.weight+v.weight),x.weight+=v.weight):(x.barycenter=v.barycenter,x.weight=v.weight)};U.default=N},17457:function(or,U,z){"use strict";Object.defineProperty(U,"__esModule",{value:!0});var B=z(95869),j=function(N,L,y,x){var v=(0,B.partition)(N,function(b){var m=b.hasOwnProperty("fixorder")&&!isNaN(b.fixorder);return x?!m&&b.hasOwnProperty("barycenter"):m||b.hasOwnProperty("barycenter")}),g=v.lhs,d=v.rhs.sort(function(b,m){return-b.i- -m.i}),_=[],E=0,w=0,T=0;g==null||g.sort(A(!!L,!!y)),T=R(_,d,T),g==null||g.forEach(function(b){var m;T+=(m=b.vs)===null||m===void 0?void 0:m.length,_.push(b.vs),E+=b.barycenter*b.weight,w+=b.weight,T=R(_,d,T)});var k={vs:_.flat()};return w&&(k.barycenter=E/w,k.weight=w),k},R=function(N,L,y){for(var x=y,v;L.length&&(v=L[L.length-1]).i<=x;)L.pop(),N==null||N.push(v.vs),x++;return x},A=function(N,L){return function(y,x){if(y.fixorder!==void 0&&x.fixorder!==void 0)return y.fixorder-x.fixorder;if(y.barycenterx.barycenter)return 1;if(L&&y.order!==void 0&&x.order!==void 0){if(y.orderx.order)return 1}return N?x.i-y.i:y.i-x.i}};U.default=j},99946:function(or,U){"use strict";Object.defineProperty(U,"__esModule",{value:!0});var z=function(R){var A,N={},L=0,y=function(x){var v,g=L;(v=R.children(x))===null||v===void 0||v.forEach(y),N[x]={low:g,lim:L++}};return(A=R.children())===null||A===void 0||A.forEach(y),N},B=function(R,A,N,L){var y=[],x=[],v=Math.min(A[N].low,A[L].low),g=Math.max(A[N].lim,A[L].lim),d,_;d=N;do d=R.parent(d),y.push(d);while(d&&(A[d].low>v||g>A[d].lim));for(_=d,d=L;d&&d!==_;)x.push(d),d=R.parent(d);return{lca:_,path:y.concat(x.reverse())}},j=function(R){var A,N=z(R);(A=R.graph().dummyChains)===null||A===void 0||A.forEach(function(L){var y,x,v=L,g=R.node(v),d=g.edgeObj;if(!!d)for(var _=B(R,N,d.v,d.w),E=_.path,w=_.lca,T=0,k=E[T],b=!0;v!==d.w;){if(g=R.node(v),b){for(;k!==w&&((y=R.node(k))===null||y===void 0?void 0:y.maxRank)Se)&&(0,U.addConflict)(X,De,pe)}))}function Q(te){return JSON.stringify(te.slice(1))}function q(te,fe){var de=Q(te);fe.get(de)||(H.apply(void 0,te),fe.set(de,!0))}var J=function(te,fe){var de=-1,Te,Se=0,Ie=new Map;return fe==null||fe.forEach(function(be,pe){var Me;if(((Me=$.node(be))===null||Me===void 0?void 0:Me.dummy)==="border"){var De=$.predecessors(be)||[];De.length&&(Te=$.node(De[0]).order,q([fe,Se,pe,de,Te],Ie),Se=pe,de=Te)}q([fe,Se,fe.length,Te,te.length],Ie)}),fe};return(W==null?void 0:W.length)&&W.reduce(J),X};U.findType2Conflicts=L;var y=function($,W){var X,H;if((X=$.node(W))===null||X===void 0?void 0:X.dummy)return(H=$.predecessors(W))===null||H===void 0?void 0:H.find(function(Q){return $.node(Q).dummy})};U.findOtherInnerSegmentNode=y;var x=function($,W,X){var H=W,Q=X;if(H>Q){var q=H;H=Q,Q=q}var J=$[H];J||($[H]=J={}),J[Q]=!0};U.addConflict=x;var v=function($,W,X){var H=W,Q=X;if(H>Q){var q=W;H=Q,Q=q}return!!$[H]};U.hasConflict=v;var g=function($,W,X,H){var Q={},q={},J={};return W==null||W.forEach(function(te){te==null||te.forEach(function(fe,de){Q[fe]=fe,q[fe]=fe,J[fe]=de})}),W==null||W.forEach(function(te){var fe=-1;te==null||te.forEach(function(de){var Te=H(de);if(Te.length){Te=Te.sort(function(Me,De){return J[Me]-J[De]});for(var Se=(Te.length-1)/2,Ie=Math.floor(Se),be=Math.ceil(Se);Ie<=be;++Ie){var pe=Te[Ie];q[de]===de&&feJ.lim&&(te=J,fe=!0);var de=W.edges().filter(function(Te){return fe===m($,$.node(Te.v),te)&&fe!==m($,$.node(Te.w),te)});return(0,R.minBy)(de,function(Te){return(0,j.slack)(W,Te)})};U.enterEdge=w;var T=function($,W,X,H){var Q=X.v,q=X.w;$.removeEdge(Q,q),$.setEdge(H.v,H.w,{}),(0,U.initLowLimValues)($),(0,U.initCutValues)($,W),k($,W)};U.exchangeEdges=T;var k=function($,W){var X=$.nodes().find(function(Q){var q;return!((q=W.node(Q))===null||q===void 0?void 0:q.parent)}),H=N($,X);H=H==null?void 0:H.slice(1),H==null||H.forEach(function(Q){var q=$.node(Q).parent,J=W.edgeFromArgs(Q,q),te=!1;J||(J=W.edgeFromArgs(q,Q),te=!0),W.node(Q).rank=W.node(q).rank+(te?J.minlen:-J.minlen)})},b=function($,W,X){return $.hasEdge(W,X)},m=function($,W,X){return X.low<=W.lim&&W.lim<=X.lim};U.default=y},76783:function(or,U){"use strict";Object.defineProperty(U,"__esModule",{value:!0}),U.slack=U.longestPathWithLayer=U.longestPath=void 0;var z=function(R){var A,N={},L=function(y){var x,v=R.node(y);if(!v)return 0;if(N[y])return v.rank;N[y]=!0;var g;return(x=R.outEdges(y))===null||x===void 0||x.forEach(function(d){var _=L(d.w),E=R.edge(d).minlen,w=_-E;w&&(g===void 0||wMath.abs(q)*fe?(J<0&&(fe=-fe),de=fe*q/J,Te=fe):(q<0&&(te=-te),de=te,Te=te*J/q),{x:H+de,y:Q+Te}};U.intersectRect=g;var d=function(W){for(var X=[],H=(0,U.maxRank)(W)+1,Q=0;QX)&&(X=q)}),X||(X=0),X};U.maxRank=T;var k=function(W,X){var H={lhs:[],rhs:[]};return W==null||W.forEach(function(Q){X(Q)?H.lhs.push(Q):H.rhs.push(Q)}),H};U.partition=k;var b=function(W,X){var H=Date.now();try{return X()}finally{console.log("".concat(W," time: ").concat(Date.now()-H,"ms"))}};U.time=b;var m=function(W,X){return X()};U.notime=m;var $=function(W,X){return W.reduce(function(H,Q){var q=X(H),J=X(Q);return q>J?Q:H})};U.minBy=$},29279:function(or,U,z){"use strict";var B=this&&this.__assign||function(){return B=Object.assign||function(d){for(var _,E=1,w=arguments.length;E1){var fe=B({},J);delete fe.size,b.push(fe)}});var m=[];w.forEach(function(J){var te=b.find(function(de){return de.id===J.source}),fe=b.find(function(de){return de.id===J.target});te&&fe&&m.push(J)});var $=new v.DagreLayout({type:"dagre",ranksep:_.nodeMinGap,nodesep:_.nodeMinGap}),W=$.layout({nodes:b,edges:m}).nodes;E.forEach(function(J){var te=(W||[]).find(function(fe){return fe.id===J.id});J.x=(te==null?void 0:te.x)||T/2,J.y=(te==null?void 0:te.y)||k/2});var X=JSON.parse(JSON.stringify(E)),H=JSON.parse(JSON.stringify(w)),Q=L.forceSimulation().nodes(X).force("link",L.forceLink(H).id(function(J){return J.id}).distance(function(J){var te=m.find(function(fe){return fe.source===J.source&&fe.target===J.target});return te?30:20})).force("charge",L.forceManyBody()).force("center",L.forceCenter(T/2,k/2)).force("x",L.forceX(T/2)).force("y",L.forceY(k/2)).alpha(.3).alphaDecay(.08).alphaMin(.001),q=new Promise(function(J){Q.on("end",function(){E.forEach(function(be){var pe=X.find(function(Me){return Me.id===be.id});pe&&(be.x=pe.x,be.y=pe.y)});var te=Math.min.apply(Math,E.map(function(be){return be.x})),fe=Math.max.apply(Math,E.map(function(be){return be.x})),de=Math.min.apply(Math,E.map(function(be){return be.y})),Te=Math.max.apply(Math,E.map(function(be){return be.y})),Se=T/(fe-te),Ie=k/(Te-de);E.forEach(function(be){be.x!==void 0&&Se<1&&(be.x=(be.x-te)*Se),be.y!==void 0&&Ie<1&&(be.y=(be.y-de)*Ie)}),E.forEach(function(be){be.sizeTemp=be.size,be.size=[10,10]}),(0,x.default)(E,w),E.forEach(function(be){be.size=be.sizeTemp||[],delete be.sizeTemp}),(0,y.default)({nodes:E,edges:w},_),J()})});return q}U.default=g},28563:function(or,U,z){"use strict";var B=this&&this.__importDefault||function(A){return A&&A.__esModule?A:{default:A}};Object.defineProperty(U,"__esModule",{value:!0});var j=B(z(62120));function R(A,N){if(!A.nodes||A.nodes.length===0)return A;var L=N.width,y=N.height,x=N.nodeMinGap,v=1e4,g=1e4;A.nodes.forEach(function(H){var Q=H.size[0]||50,q=H.size[1]||50;v=Math.min(Q,v),g=Math.min(q,g)});var d=new j.default;d.init(L,y,{CELL_H:g,CELL_W:v}),A.nodes.forEach(function(H){var Q=d.occupyNearest(H);Q&&(Q.node={id:H.id,size:H.size},H.x=Q.x,H.y=Q.y,H.dx=Q.dx,H.dy=Q.dy)});for(var _=0;_v){for(var b=Math.ceil((E.size[0]+x)/v)-1,m=b,$=0;$-1;if(W&&!d.cells[T+$+1][k].node)m--;else break}d.insertColumn(T,m)}if(E.size[1]+x>g){for(var b=Math.ceil((E.size[1]+x)/g)-1,m=b,$=0;$-1;if(W&&!d.cells[T][k+$+1].node)m--;else break}d.insertRow(k,m)}}for(var _=0;_R;N--)for(var L=0;L=R&&(this.additionColumn[L]+=A);for(var N=0;NR;N--)this.cells[L][N+A]=z(z({},this.cells[L][N]),{dx:L,dy:N+A,x:L*this.CELL_W,y:(N+A)*this.CELL_H}),this.cells[L][N]={dx:L,dy:N,x:L*this.CELL_W,y:N*this.CELL_H,occupied:!1,node:null};for(var N=0;N=R&&(this.additionRow[N]+=A);for(var L=0;LN?(ht=J-Ie,Ze=de-te,Rt=parseFloat(ht?(ht/Math.cos(nt)).toFixed(2):Ze.toFixed(2)),tr=parseFloat(Ze?(Ze/Math.sin(nt)).toFixed(2):ht.toFixed(2))):0Ze?Rt=tr=parseFloat(ht?(ht/Math.cos(nt)).toFixed(2):Ze.toFixed(2)):Rt=tr=parseFloat(Ze?(Ze/Math.sin(nt)).toFixed(2):ht.toFixed(2))):nt<-N?(ht=J-Ie,Ze=-(Se-q),ht>Ze?Rt=tr=parseFloat(ht?(ht/Math.cos(nt)).toFixed(2):Ze.toFixed(2)):Rt=tr=parseFloat(Ze?(Ze/Math.sin(nt)).toFixed(2):ht.toFixed(2))):(ht=Te-fe,Math.abs(Ue)>(te-q)/2?Ze=q-Se:Ze=Ue,ht>Ze?Rt=tr=parseFloat(ht?(ht/Math.cos(nt)).toFixed(2):Ze.toFixed(2)):Rt=tr=parseFloat(Ze&&nt!==0?(Ze/Math.sin(nt)).toFixed(2):ht.toFixed(2)));var Qe=parseFloat(nt.toFixed(2)),lt=Q;return Q&&(lt=Lte?H:X,de=J>te?X:H,Te=fe.x-fe.size[0]/2,Se=fe.y-fe.size[1]/2,Ie=fe.x+fe.size[0]/2,be=fe.y+fe.size[1]/2,pe=de.x-de.size[0]/2,Me=de.y-de.size[1]/2,De=de.x+de.size[0]/2,Ue=de.y+de.size[1]/2,nt=fe.x,Ze=fe.y,ht=de.x,Rt=de.y,tr=Ie>=pe&&De>=Te&&be>=Me&&Ue>=Se,Qe=0,lt=0;if(tr){lt=Math.sqrt(Math.pow(ht-nt,2)+Math.pow(Rt-Ze,2));var St=Te>pe?Te:pe,Ct=Se>Me?Se:Me,_t=Iez||q.y>B)&&(H+=1e12);for(var J=Q+1;J150,Me=be<30||be>150,De=Ie>70&&Ie<110,Ue=be>70&&be<110;if(pe&&!Me||Ie*be<0){de=!1;break}else if(De&&!Ue||Ie*be<0){de=!1;break}else if((Se.x-X.x)*(Se.x-H.x)<0){de=!1;break}else if((Se.y-X.y)*(Se.y-H.y)<0){de=!1;break}}return de}function m(X,H){for(var Q=!1,q=1,J=v*q,te=g*q,fe=[J,-J,0,0],de=[0,0,te,-te],Te=0;Te_?(Ie=Me,Q=!0):(Se.x-=fe[be],Se.y-=de[be])}}return d>_&&(d*=E),Q?k(X):0}function $(X,H){var Q=0;(X.x<0||X.y<0||X.x+X.size[0]+20>z||X.y+X.size[1]+20>B)&&(Q+=1e12);for(var q=0;q0&&(de++,!(de>=fe));){var Te=m(X,H);Te!==0&&(te=Te),J=te-Q,Q=te,J===0?--q:q=20}return X.forEach(function(Se){Se.x=Se.x-Se.size[0]/2,Se.y=Se.y-Se.size[1]/2}),{nodes:X,edges:H}}U.default=W},26961:function(or,U,z){"use strict";Object.defineProperty(U,"__esModule",{value:!0}),U.forceNBody=void 0;var B=z(71829),j=.81,R=.1;function A(x,v,g,d,_){var E=g/d,w=x.map(function(k,b){var m=v[k.id],$=m.data,W=m.x,X=m.y,H=m.size,Q=$.layout.force.nodeStrength;return{x:W,y:X,size:H,index:b,vx:0,vy:0,weight:E*Q}}),T=(0,B.quadtree)(w,function(k){return k.x},function(k){return k.y}).visitAfter(N);return w.forEach(function(k){y(k,T)}),w.map(function(k,b){var m=v[x[b].id],$=m.data.layout.force.mass,W=$===void 0?1:$;_[2*b]=k.vx/W,_[2*b+1]=k.vy/W}),_}U.forceNBody=A;function N(x){var v=0,g=0,d=0;if(x.length){for(var _=0;_<4;_++){var E=x[_];E&&E.weight&&(v+=E.weight,g+=E.x*E.weight,d+=E.y*E.weight)}x.x=g/v,x.y=d/v,x.weight=v}else{var E=x;x.x=E.data.x,x.y=E.data.y,x.weight=E.data.weight}}var L=function(x,v,g,d,_,E){var w=E.x-x.x||R,T=E.y-x.y||R,k=d-v,b=w*w+T*T,m=Math.sqrt(b)*b;if(k*k*j1&&(be=(0,A.getAvgNodePosition)(Me))}else be=void 0;return{x:be==null?void 0:be.x,y:be==null?void 0:be.y}}}}if(_){$||($=this.getSameTypeLeafMap());var X=Array.from(new Set(w.map(function(fe,de){return fe[E]}))).filter(function(fe){return fe!==void 0}),H={};X.forEach(function(fe){var de=w.filter(function(Te){return Te[E]===fe}).map(function(Te){return T[Te.id]});H[fe]=(0,A.getAvgNodePosition)(de)}),m={single:function(fe){return b(fe)},leaf:function(fe){return b(fe)},others:function(fe){return b(fe)},center:function(fe,de,Te){var Se=H[fe[E]];return{x:Se==null?void 0:Se.x,y:Se==null?void 0:Se.y}}}}this.centripetalOptions=j(j({},this.centripetalOptions),m);var Q=this.centripetalOptions,q=Q.leaf,J=Q.single,te=Q.others;q&&typeof q!="function"&&(this.centripetalOptions.leaf=function(){return q}),J&&typeof J!="function"&&(this.centripetalOptions.single=function(){return J}),te&&typeof te!="function"&&(this.centripetalOptions.others=function(){return te})},v.prototype.updateCfg=function(g){g&&Object.assign(this,g)},v.prototype.getDefaultCfg=function(){return{maxIteration:500,gravity:10,enableTick:!0,animate:!0}},v.prototype.execute=function(){var g=this;g.stop();var d=g.nodes,_=g.edges,E=g.defSpringLen;if(g.judgingDistance=0,!d||d.length===0){g.onLayoutEnd([]);return}!g.width&&typeof window!="undefined"&&(g.width=window.innerWidth),!g.height&&typeof window!="undefined"&&(g.height=window.innerHeight),g.center||(g.center=[g.width/2,g.height/2]);var w=g.center;if(d.length===1){d[0].x=w[0],d[0].y=w[1],g.onLayoutEnd([j({},d[0])]);return}g.degreesMap=(0,A.getDegreeMap)(d,_),g.propsGetMass?g.getMass=g.propsGetMass:g.getMass=function(X){var H=1;(0,A.isNumber)(X.mass)&&(H=X.mass);var Q=g.degreesMap[X.id].all;return!Q||Q<5?H:Q*5*H};var T=g.nodeSize,k;if(g.preventOverlap){var b=g.nodeSpacing,m;(0,A.isNumber)(b)?m=function(){return b}:(0,A.isFunction)(b)?m=b:m=function(){return 0},T?(0,A.isArray)(T)?k=function(X){return Math.max(T[0],T[1])+m(X)}:k=function(X){return T+m(X)}:k=function(X){return X.size?(0,A.isArray)(X.size)?Math.max(X.size[0],X.size[1])+m(X):(0,A.isObject)(X.size)?Math.max(X.size.width,X.size.height)+m(X):X.size+m(X):10+m(X)}}g.nodeSize=k,g.linkDistance=L(g.linkDistance,1),g.nodeStrength=L(g.nodeStrength,1),g.edgeStrength=L(g.edgeStrength,1);var $={},W={};d.forEach(function(X,H){(0,A.isNumber)(X.x)||(X.x=Math.random()*g.width),(0,A.isNumber)(X.y)||(X.y=Math.random()*g.height);var Q=g.degreesMap[X.id];$[X.id]=j(j({},X),{data:j(j({},X.data),{size:g.nodeSize(X)||30,layout:{inDegree:Q.in,outDegree:Q.out,degree:Q.all,tDegree:Q.in,sDegree:Q.out,force:{mass:g.getMass(X),nodeStrength:g.nodeStrength(X)}}})}),W[X.id]=H}),g.nodeMap=$,g.nodeIdxMap=W,g.edgeInfos=[],_==null||_.forEach(function(X){var H=$[X.source],Q=$[X.target];!H||!Q?elf.edgeInfos.push({}):g.edgeInfos.push({edgeStrength:g.edgeStrength(X),linkDistance:E?E(j(j({},X),{source:H,target:Q}),H,Q):g.linkDistance(X,H,Q)||1+(T(H)+T(H)||0)/2})}),this.getCentripetalOptions(),g.onLayoutEnd=g.onLayoutEnd||function(){},g.run()},v.prototype.run=function(){var g=this,d=g.maxIteration,_=g.nodes,E=g.workerEnabled,w=g.minMovement,T=g.animate,k=g.nodeMap;if(!!_){var b=[];_.forEach(function(Q,q){b[2*q]=0,b[2*q+1]=0});var m=d,$=!T;if(E||$){for(var W=0,X=0;(g.judgingDistance>w||X<1)&&X=m||g.judgingDistancek){var H=k/X;$=H*$,W=H*W}d[2*m]=$,d[2*m+1]=W})},v.prototype.updatePosition=function(g,d){var _=this,E=_.nodes,w=_.distanceThresholdMode,T=_.nodeMap;if(!(E==null?void 0:E.length)){this.judgingDistance=0;return}var k=0;w==="max"?_.judgingDistance=-Infinity:w==="min"&&(_.judgingDistance=Infinity),E.forEach(function(b,m){var $=T[b.id];if((0,A.isNumber)(b.fx)&&(0,A.isNumber)(b.fy)){b.x=b.fx,b.y=b.fy,$.x=b.x,$.y=b.y;return}var W=g[2*m]*d,X=g[2*m+1]*d;b.x+=W,b.y+=X,$.x=b.x,$.y=b.y;var H=Math.sqrt(W*W+X*X);switch(w){case"max":_.judgingDistanceH&&(_.judgingDistance=H);break;default:k=k+H;break}}),(!w||w==="mean")&&(_.judgingDistance=k/E.length)},v.prototype.stop=function(){this.timeInterval&&typeof window!="undefined"&&window.clearInterval(this.timeInterval)},v.prototype.destroy=function(){var g=this;g.stop(),g.tick=null,g.nodes=null,g.edges=null,g.destroyed=!0},v.prototype.getType=function(){return"force2"},v.prototype.getSameTypeLeafMap=function(){var g=this,d=g.nodeClusterBy,_=g.nodes,E=g.edges,w=g.nodeMap,T=g.degreesMap;if(!!(_==null?void 0:_.length)){var k={};return _.forEach(function(b,m){var $=T[b.id].all;$===1&&(k[b.id]=(0,A.getCoreNodeAndRelativeLeafNodes)("leaf",b,E,d,T,w))}),k}},v}(R.Base);U.Force2Layout=y},20039:function(or,U){"use strict";Object.defineProperty(U,"__esModule",{value:!0});var z=function(){function B(j){this.id=j.id||0,this.rx=j.rx,this.ry=j.ry,this.fx=0,this.fy=0,this.mass=j.mass,this.degree=j.degree,this.g=j.g||0}return B.prototype.distanceTo=function(j){var R=this.rx-j.rx,A=this.ry-j.ry;return Math.hypot(R,A)},B.prototype.setPos=function(j,R){this.rx=j,this.ry=R},B.prototype.resetForce=function(){this.fx=0,this.fy=0},B.prototype.addForce=function(j){var R=j.rx-this.rx,A=j.ry-this.ry,N=Math.hypot(R,A);N=N<1e-4?1e-4:N;var L=this.g*(this.degree+1)*(j.degree+1)/N;this.fx+=L*R/N,this.fy+=L*A/N},B.prototype.in=function(j){return j.contains(this.rx,this.ry)},B.prototype.add=function(j){var R=this.mass+j.mass,A=(this.rx*this.mass+j.rx*j.mass)/R,N=(this.ry*this.mass+j.ry*j.mass)/R,L=this.degree+j.degree,y={rx:A,ry:N,mass:R,degree:L};return new B(y)},B}();U.default=z},16919:function(or,U,z){"use strict";var B=this&&this.__extends||function(){var v=function(g,d){return v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(_,E){_.__proto__=E}||function(_,E){for(var w in E)Object.prototype.hasOwnProperty.call(E,w)&&(_[w]=E[w])},v(g,d)};return function(g,d){if(typeof d!="function"&&d!==null)throw new TypeError("Class extends value "+String(d)+" is not a constructor or null");v(g,d);function _(){this.constructor=g}g.prototype=d===null?Object.create(d):(_.prototype=d.prototype,new _)}}(),j=this&&this.__importDefault||function(v){return v&&v.__esModule?v:{default:v}};Object.defineProperty(U,"__esModule",{value:!0}),U.ForceAtlas2Layout=void 0;var R=z(46253),A=z(8273),N=j(z(20039)),L=j(z(78150)),y=j(z(58979)),x=function(v){B(g,v);function g(d){var _=v.call(this)||this;return _.center=[0,0],_.width=300,_.height=300,_.nodes=[],_.edges=[],_.kr=5,_.kg=1,_.mode="normal",_.preventOverlap=!1,_.dissuadeHubs=!1,_.barnesHut=void 0,_.maxIteration=0,_.ks=.1,_.ksmax=10,_.tao=.1,_.onLayoutEnd=function(){},_.prune=void 0,_.updateCfg(d),_}return g.prototype.getDefaultCfg=function(){return{}},g.prototype.execute=function(){var d=this,_=d.nodes,E=d.onLayoutEnd,w=d.prune,T=d.maxIteration;!d.width&&typeof window!="undefined"&&(d.width=window.innerWidth),!d.height&&typeof window!="undefined"&&(d.height=window.innerHeight);for(var k=[],b=_.length,m=0;m250&&(d.barnesHut=!0),d.prune===void 0&&b>100&&(d.prune=!0),this.maxIteration===0&&!d.prune?(T=250,b<=200&&b>100?T=1e3:b>200&&(T=1200),this.maxIteration=T):this.maxIteration===0&&w&&(T=100,b<=200&&b>100?T=500:b>200&&(T=950),this.maxIteration=T),d.kr||(d.kr=50,b>100&&b<=500?d.kr=20:b>500&&(d.kr=1)),d.kg||(d.kg=20,b>100&&b<=500?d.kg=10:b>500&&(d.kg=1)),this.nodes=d.updateNodesByForces(k),E()},g.prototype.updateNodesByForces=function(d){for(var _=this,E=_.edges,w=_.maxIteration,T=_.nodes,k=E.filter(function(be){var pe=(0,A.getEdgeTerminal)(be,"source"),Me=(0,A.getEdgeTerminal)(be,"target");return pe!==Me}),b=T.length,m=k.length,$=[],W={},X={},H=[],Q=0;Q0;){for(var Se=0;Sete||!W)?fe=this.getOptRepGraForces(fe,Te,T):fe=this.getRepGraForces(J,te,fe,q,k,T);var be=this.updatePos(fe,de,Q,T);m=be.nodes,Q=be.sg,J--,b.tick&&b.tick()}return m},g.prototype.getAttrForces=function(d,_,E,w,T,k,b,m){for(var $=this,W=$.nodes,X=$.preventOverlap,H=$.dissuadeHubs,Q=$.mode,q=$.prune,J=0;J0&&(be=Ie,pe=Ie),m[2*w[te.id]]+=be*Se[0],m[2*w[de.id]]-=pe*Se[0],m[2*w[te.id]+1]+=be*Se[1],m[2*w[de.id]+1]-=pe*Se[1]}}return m},g.prototype.getRepGraForces=function(d,_,E,w,T,k){for(var b=this,m=b.nodes,$=b.preventOverlap,W=b.kr,X=b.kg,H=b.center,Q=b.prune,q=m.length,J=0;J0&&(Te=W*(k[J]+1)*(k[te]+1)/de),E[2*J]-=Te*fe[0],E[2*te]+=Te*fe[0],E[2*J+1]-=Te*fe[1],E[2*te+1]+=Te*fe[1]}var Se=[m[J].x-H[0],m[J].y-H[1]],Ie=Math.hypot(Se[0],Se[1]);Se[0]=Se[0]/Ie,Se[1]=Se[1]/Ie;var be=X*(k[J]+1);E[2*J]-=be*Se[0],E[2*J+1]-=be*Se[1]}return E},g.prototype.getOptRepGraForces=function(d,_,E){for(var w=this,T=w.nodes,k=w.kg,b=w.center,m=w.prune,$=T.length,W=9e10,X=-9e10,H=9e10,Q=-9e10,q=0;q<$;q+=1)m&&E[q]<=1||(_[q].setPos(T[q].x,T[q].y),T[q].x>=X&&(X=T[q].x),T[q].x<=W&&(W=T[q].x),T[q].y>=Q&&(Q=T[q].y),T[q].y<=H&&(H=T[q].y));for(var J=Math.max(X-W,Q-H),te={xmid:(X+W)/2,ymid:(Q+H)/2,length:J,massCenter:b,mass:$},fe=new L.default(te),de=new y.default(fe),q=0;q<$;q+=1)m&&E[q]<=1||_[q].in(fe)&&de.insert(_[q]);for(var q=0;q<$;q+=1)if(!(m&&E[q]<=1)){_[q].resetForce(),de.updateForce(_[q]),d[2*q]-=_[q].fx,d[2*q+1]-=_[q].fy;var Te=[T[q].x-b[0],T[q].y-b[1]],Se=Math.hypot(Te[0],Te[1]);Se=Se<1e-4?1e-4:Se,Te[0]=Te[0]/Se,Te[1]=Te[1]/Se;var Ie=k*(E[q]+1);d[2*q]-=Ie*Te[0],d[2*q+1]-=Ie*Te[1]}return d},g.prototype.updatePos=function(d,_,E,w){for(var T=this,k=T.nodes,b=T.ks,m=T.tao,$=T.prune,W=T.ksmax,X=k.length,H=[],Q=[],q=0,J=0,te=0;te1.5*Ie?1.5*Ie:E);for(var te=0;teMe?Me:be;var De=be*d[2*te],Ue=be*d[2*te+1];k[te].x+=De,k[te].y+=Ue}return{nodes:k,sg:E}},g}(R.Base);U.ForceAtlas2Layout=x},78150:function(or,U){"use strict";Object.defineProperty(U,"__esModule",{value:!0});var z=function(){function B(j){this.xmid=j.xmid,this.ymid=j.ymid,this.length=j.length,this.massCenter=j.massCenter||[0,0],this.mass=j.mass||1}return B.prototype.getLength=function(){return this.length},B.prototype.contains=function(j,R){var A=this.length/2;return j<=this.xmid+A&&j>=this.xmid-A&&R<=this.ymid+A&&R>=this.ymid-A},B.prototype.NW=function(){var j=this.xmid-this.length/4,R=this.ymid+this.length/4,A=this.length/2,N={xmid:j,ymid:R,length:A},L=new B(N);return L},B.prototype.NE=function(){var j=this.xmid+this.length/4,R=this.ymid+this.length/4,A=this.length/2,N={xmid:j,ymid:R,length:A},L=new B(N);return L},B.prototype.SW=function(){var j=this.xmid-this.length/4,R=this.ymid-this.length/4,A=this.length/2,N={xmid:j,ymid:R,length:A},L=new B(N);return L},B.prototype.SE=function(){var j=this.xmid+this.length/4,R=this.ymid-this.length/4,A=this.length/2,N={xmid:j,ymid:R,length:A},L=new B(N);return L},B}();U.default=z},58979:function(or,U){"use strict";Object.defineProperty(U,"__esModule",{value:!0});var z=function(){function B(j){this.body=null,this.quad=null,this.NW=null,this.NE=null,this.SW=null,this.SE=null,this.theta=.5,j!=null&&(this.quad=j)}return B.prototype.insert=function(j){if(this.body==null){this.body=j;return}this._isExternal()?(this.quad&&(this.NW=new B(this.quad.NW()),this.NE=new B(this.quad.NE()),this.SW=new B(this.quad.SW()),this.SE=new B(this.quad.SE())),this._putBody(this.body),this._putBody(j),this.body=this.body.add(j)):(this.body=this.body.add(j),this._putBody(j))},B.prototype._putBody=function(j){!this.quad||(j.in(this.quad.NW())&&this.NW?this.NW.insert(j):j.in(this.quad.NE())&&this.NE?this.NE.insert(j):j.in(this.quad.SW())&&this.SW?this.SW.insert(j):j.in(this.quad.SE())&&this.SE&&this.SE.insert(j))},B.prototype._isExternal=function(){return this.NW==null&&this.NE==null&&this.SW==null&&this.SE==null},B.prototype.updateForce=function(j){if(!(this.body==null||j===this.body))if(this._isExternal())j.addForce(this.body);else{var R=this.quad?this.quad.getLength():0,A=this.body.distanceTo(j);R/A-1||(W[H]=$[H])}),W}),b.ticking=!1},T.prototype.execute=function(k){var b=this,m=b.nodes,$=b.edges;if(!b.ticking){var W=b.forceSimulation,X=b.alphaMin,H=b.alphaDecay,Q=b.alpha;if(W){if(k){if(b.clustering&&b.clusterForce&&(b.clusterForce.nodes(m),b.clusterForce.links($)),W.nodes(m),$&&b.edgeForce)b.edgeForce.links($);else if($&&!b.edgeForce){var te=L.forceLink().id(function(Se){return Se.id}).links($);b.edgeStrength&&te.strength(b.edgeStrength),b.linkDistance&&te.distance(b.linkDistance),b.edgeForce=te,W.force("link",te)}}b.preventOverlap&&b.overlapProcess(W),W.alpha(Q).restart(),this.ticking=!0}else try{var q=L.forceManyBody();if(b.nodeStrength&&q.strength(b.nodeStrength),W=L.forceSimulation().nodes(m),b.clustering){var J=(0,y.default)();J.centerX(b.center[0]).centerY(b.center[1]).template("force").strength(b.clusterFociStrength),$&&J.links($),m&&J.nodes(m),J.forceLinkDistance(b.clusterEdgeDistance).forceLinkStrength(b.clusterEdgeStrength).forceCharge(b.clusterNodeStrength).forceNodeSize(b.clusterNodeSize),b.clusterForce=J,W.force("group",J)}if(W.force("center",L.forceCenter(b.center[0],b.center[1])).force("charge",q).alpha(Q).alphaDecay(H).alphaMin(X),b.preventOverlap&&b.overlapProcess(W),$){var te=L.forceLink().id(function(Te){return Te.id}).links($);b.edgeStrength&&te.strength(b.edgeStrength),b.linkDistance&&te.distance(b.linkDistance),b.edgeForce=te,W.force("link",te)}if(b.workerEnabled&&!E()&&(b.workerEnabled=!1,console.warn("workerEnabled option is only supported when running in web worker.")),!b.workerEnabled)W.on("tick",function(){b.tick()}).on("end",function(){b.ticking=!1,b.onLayoutEnd&&b.onLayoutEnd()}),b.ticking=!0;else{W.stop();for(var fe=_(W),de=1;de<=fe;de++)W.tick(),postMessage({nodes:m,currentTick:de,totalTicks:fe,type:g.LAYOUT_MESSAGE.TICK},void 0);b.ticking=!1}b.forceSimulation=W,b.ticking=!0}catch(Te){b.ticking=!1,console.warn(Te)}}},T.prototype.overlapProcess=function(k){var b=this,m=b.nodeSize,$=b.nodeSpacing,W,X,H=b.collideStrength;if((0,x.isNumber)($)?X=function(){return $}:(0,x.isFunction)($)?X=$:X=function(){return 0},!m)W=function(te){if(te.size){if((0,x.isArray)(te.size)){var fe=te.size[0]>te.size[1]?te.size[0]:te.size[1];return fe/2+X(te)}if((0,x.isObject)(te.size)){var fe=te.size.width>te.size.height?te.size.width:te.size.height;return fe/2+X(te)}return te.size/2+X(te)}return 10+X(te)};else if((0,x.isFunction)(m))W=function(te){var fe=m(te);return fe+X(te)};else if((0,x.isArray)(m)){var Q=m[0]>m[1]?m[0]:m[1],q=Q/2;W=function(te){return q+X(te)}}else if((0,x.isNumber)(m)){var J=m/2;W=function(te){return J+X(te)}}else W=function(){return 10};k.force("collisionForce",L.forceCollide(W).strength(H))},T.prototype.updateCfg=function(k){var b=this;b.ticking&&(b.forceSimulation.stop(),b.ticking=!1),b.forceSimulation=null,Object.assign(b,k)},T.prototype.destroy=function(){var k=this;k.ticking&&(k.forceSimulation.stop(),k.ticking=!1),k.nodes=null,k.edges=null,k.destroyed=!0},T}(v.Base);U.ForceLayout=d;function _(w){var T=w.alphaMin(),k=w.alphaTarget(),b=w.alpha(),m=Math.log((T-k)/(b-k))/Math.log(1-w.alphaDecay()),$=Math.ceil(m);return $}function E(){return typeof WorkerGlobalScope!="undefined"&&self instanceof WorkerGlobalScope}},64180:function(or,U,z){"use strict";var B=this&&this.__createBinding||(Object.create?function(R,A,N,L){L===void 0&&(L=N);var y=Object.getOwnPropertyDescriptor(A,N);(!y||("get"in y?!A.__esModule:y.writable||y.configurable))&&(y={enumerable:!0,get:function(){return A[N]}}),Object.defineProperty(R,L,y)}:function(R,A,N,L){L===void 0&&(L=N),R[L]=A[N]}),j=this&&this.__exportStar||function(R,A){for(var N in R)N!=="default"&&!Object.prototype.hasOwnProperty.call(A,N)&&B(A,R,N)};Object.defineProperty(U,"__esModule",{value:!0}),j(z(68553),U)},23826:function(or,U,z){"use strict";var B=this&&this.__extends||function(){var L=function(y,x){return L=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,g){v.__proto__=g}||function(v,g){for(var d in g)Object.prototype.hasOwnProperty.call(g,d)&&(v[d]=g[d])},L(y,x)};return function(y,x){if(typeof x!="function"&&x!==null)throw new TypeError("Class extends value "+String(x)+" is not a constructor or null");L(y,x);function v(){this.constructor=y}y.prototype=x===null?Object.create(x):(v.prototype=x.prototype,new v)}}();Object.defineProperty(U,"__esModule",{value:!0}),U.FruchtermanLayout=void 0;var j=z(46253),R=z(8273),A=800,N=function(L){B(y,L);function y(x){var v=L.call(this)||this;return v.maxIteration=1e3,v.workerEnabled=!1,v.gravity=10,v.speed=5,v.clustering=!1,v.clusterGravity=10,v.nodes=[],v.edges=[],v.width=300,v.height=300,v.nodeMap={},v.nodeIdxMap={},v.onLayoutEnd=function(){},v.tick=function(){},v.animate=!0,v.updateCfg(x),v}return y.prototype.getDefaultCfg=function(){return{maxIteration:1e3,gravity:10,speed:1,clustering:!1,clusterGravity:10,animate:!0}},y.prototype.execute=function(){var x=this,v,g,d=this,_=d.nodes;if(d.timeInterval!==void 0&&typeof window!="undefined"&&window.clearInterval(d.timeInterval),!_||_.length===0){(v=d.onLayoutEnd)===null||v===void 0||v.call(d);return}!d.width&&typeof window!="undefined"&&(d.width=window.innerWidth),!d.height&&typeof window!="undefined"&&(d.height=window.innerHeight),d.center||(d.center=[d.width/2,d.height/2]);var E=d.center;if(_.length===1){_[0].x=E[0],_[0].y=E[1],(g=d.onLayoutEnd)===null||g===void 0||g.call(d);return}var w={},T={};return _.forEach(function(k,b){(0,R.isNumber)(k.x)||(k.x=Math.random()*x.width),(0,R.isNumber)(k.y)||(k.y=Math.random()*x.height),w[k.id]=k,T[k.id]=b}),d.nodeMap=w,d.nodeIdxMap=T,d.run()},y.prototype.run=function(){var x,v=this,g=v.nodes;if(!!g){var d=v.edges,_=v.maxIteration,E=v.workerEnabled,w=v.clustering,T=v.animate,k={};if(w&&g.forEach(function($){k[$.cluster]===void 0&&(k[$.cluster]={name:$.cluster,cx:0,cy:0,count:0})}),E||!T){for(var b=0;b<_;b++)v.runOneStep(k);(x=v.onLayoutEnd)===null||x===void 0||x.call(v)}else{if(typeof window=="undefined")return;var m=0;this.timeInterval=window.setInterval(function(){var $;v.runOneStep(k),m++,m>=_&&(($=v.onLayoutEnd)===null||$===void 0||$.call(v),window.clearInterval(v.timeInterval))},0)}return{nodes:g,edges:d}}},y.prototype.runOneStep=function(x){var v,g=this,d=g.nodes;if(!!d){var _=g.edges,E=g.center,w=g.gravity,T=g.speed,k=g.clustering,b=g.height*g.width,m=Math.sqrt(b)/10,$=b/(d.length+1),W=Math.sqrt($),X=[];if(d.forEach(function(q,J){X[J]={x:0,y:0}}),g.applyCalculate(d,_,X,W,$),k){for(var H in x)x[H].cx=0,x[H].cy=0,x[H].count=0;d.forEach(function(q){var J=x[q.cluster];(0,R.isNumber)(q.x)&&(J.cx+=q.x),(0,R.isNumber)(q.y)&&(J.cy+=q.y),J.count++});for(var H in x)x[H].cx/=x[H].count,x[H].cy/=x[H].count;var Q=g.clusterGravity||w;d.forEach(function(q,J){if(!(!(0,R.isNumber)(q.x)||!(0,R.isNumber)(q.y))){var te=x[q.cluster],fe=Math.sqrt((q.x-te.cx)*(q.x-te.cx)+(q.y-te.cy)*(q.y-te.cy)),de=W*Q;X[J].x-=de*(q.x-te.cx)/fe,X[J].y-=de*(q.y-te.cy)/fe}})}d.forEach(function(q,J){if(!(!(0,R.isNumber)(q.x)||!(0,R.isNumber)(q.y))){var te=.01*W*w;X[J].x-=te*(q.x-E[0]),X[J].y-=te*(q.y-E[1])}}),d.forEach(function(q,J){if((0,R.isNumber)(q.fx)&&(0,R.isNumber)(q.fy)){q.x=q.fx,q.y=q.fy;return}if(!(!(0,R.isNumber)(q.x)||!(0,R.isNumber)(q.y))){var te=Math.sqrt(X[J].x*X[J].x+X[J].y*X[J].y);if(te>0){var fe=Math.min(m*(T/A),te);q.x+=X[J].x/te*fe,q.y+=X[J].y/te*fe}}}),(v=g.tick)===null||v===void 0||v.call(g)}},y.prototype.applyCalculate=function(x,v,g,d,_){var E=this;E.calRepulsive(x,g,_),v&&E.calAttractive(v,g,d)},y.prototype.calRepulsive=function(x,v,g){x.forEach(function(d,_){v[_]={x:0,y:0},x.forEach(function(E,w){if(_!==w&&!(!(0,R.isNumber)(d.x)||!(0,R.isNumber)(E.x)||!(0,R.isNumber)(d.y)||!(0,R.isNumber)(E.y))){var T=d.x-E.x,k=d.y-E.y,b=T*T+k*k;if(b===0){b=1;var m=_>w?1:-1;T=.01*m,k=.01*m}var $=g/b;v[_].x+=T*$,v[_].y+=k*$}})})},y.prototype.calAttractive=function(x,v,g){var d=this;x.forEach(function(_){var E=(0,R.getEdgeTerminal)(_,"source"),w=(0,R.getEdgeTerminal)(_,"target");if(!(!E||!w)){var T=d.nodeIdxMap[E],k=d.nodeIdxMap[w];if(T!==k){var b=d.nodeMap[E],m=d.nodeMap[w];if(!(!(0,R.isNumber)(m.x)||!(0,R.isNumber)(b.x)||!(0,R.isNumber)(m.y)||!(0,R.isNumber)(b.y))){var $=m.x-b.x,W=m.y-b.y,X=Math.sqrt($*$+W*W),H=X*X/g;v[k].x-=$/X*H,v[k].y-=W/X*H,v[T].x+=$/X*H,v[T].y+=W/X*H}}}})},y.prototype.stop=function(){this.timeInterval&&typeof window!="undefined"&&window.clearInterval(this.timeInterval)},y.prototype.destroy=function(){var x=this;x.stop(),x.tick=null,x.nodes=null,x.edges=null,x.destroyed=!0},y.prototype.getType=function(){return"fruchterman"},y}(j.Base);U.FruchtermanLayout=N},46260:function(or,U,z){"use strict";var B=this&&this.__extends||function(){var L=function(y,x){return L=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,g){v.__proto__=g}||function(v,g){for(var d in g)Object.prototype.hasOwnProperty.call(g,d)&&(v[d]=g[d])},L(y,x)};return function(y,x){if(typeof x!="function"&&x!==null)throw new TypeError("Class extends value "+String(x)+" is not a constructor or null");L(y,x);function v(){this.constructor=y}y.prototype=x===null?Object.create(x):(v.prototype=x.prototype,new v)}}();Object.defineProperty(U,"__esModule",{value:!0}),U.GForceLayout=void 0;var j=z(46253),R=z(8273),A=function(L,y){var x;return L?(0,R.isNumber)(L)?x=function(v){return L}:x=L:x=function(v){return y||1},x},N=function(L){B(y,L);function y(x){var v=L.call(this)||this;return v.maxIteration=500,v.workerEnabled=!1,v.edgeStrength=200,v.nodeStrength=1e3,v.coulombDisScale=.005,v.damping=.9,v.maxSpeed=1e3,v.minMovement=.5,v.interval=.02,v.factor=1,v.linkDistance=1,v.gravity=10,v.preventOverlap=!0,v.collideStrength=1,v.tick=function(){},v.nodes=[],v.edges=[],v.width=300,v.height=300,v.nodeMap={},v.nodeIdxMap={},v.animate=!0,v.updateCfg(x),v}return y.prototype.getDefaultCfg=function(){return{maxIteration:500,gravity:10,enableTick:!0,animate:!0}},y.prototype.execute=function(){var x,v,g=this,d=g.nodes;if(g.timeInterval!==void 0&&typeof window!="undefined"&&window.clearInterval(g.timeInterval),!d||d.length===0){(x=g.onLayoutEnd)===null||x===void 0||x.call(g);return}!g.width&&typeof window!="undefined"&&(g.width=window.innerWidth),!g.height&&typeof window!="undefined"&&(g.height=window.innerHeight),g.center||(g.center=[g.width/2,g.height/2]);var _=g.center;if(d.length===1){d[0].x=_[0],d[0].y=_[1],(v=g.onLayoutEnd)===null||v===void 0||v.call(g);return}var E={},w={};d.forEach(function(W,X){(0,R.isNumber)(W.x)||(W.x=Math.random()*g.width),(0,R.isNumber)(W.y)||(W.y=Math.random()*g.height),E[W.id]=W,w[W.id]=X}),g.nodeMap=E,g.nodeIdxMap=w,g.linkDistance=A(g.linkDistance,1),g.nodeStrength=A(g.nodeStrength,1),g.edgeStrength=A(g.edgeStrength,1);var T=g.nodeSize,k;if(g.preventOverlap){var b=g.nodeSpacing,m;(0,R.isNumber)(b)?m=function(){return b}:(0,R.isFunction)(b)?m=b:m=function(){return 0},T?(0,R.isArray)(T)?k=function(W){return Math.max(T[0],T[1])+m(W)}:k=function(W){return T+m(W)}:k=function(W){return W.size?(0,R.isArray)(W.size)?Math.max(W.size[0],W.size[1])+m(W):(0,R.isObject)(W.size)?Math.max(W.size.width,W.size.height)+m(W):W.size+m(W):10+m(W)}}g.nodeSize=k;var $=g.edges;g.degrees=(0,R.getDegree)(d.length,g.nodeIdxMap,$),g.getMass||(g.getMass=function(W){var X=W.mass||g.degrees[g.nodeIdxMap[W.id]].all||1;return X}),g.run()},y.prototype.run=function(){var x,v=this,g=v.maxIteration,d=v.nodes,_=v.workerEnabled,E=v.minMovement,w=v.animate;if(!!d)if(_||!w){for(var T=0;T=g&&(($=v.onLayoutEnd)===null||$===void 0||$.call(v),window.clearInterval(v.timeInterval))}},0)}},y.prototype.reachMoveThreshold=function(x,v,g){var d=0;return x.forEach(function(_,E){var w=_.x-v[E].x,T=_.y-v[E].y;d+=Math.sqrt(w*w+T*T)}),d/=x.length,d=Q)){var q=$.x-H.x,J=$.y-H.y;q===0&&J===0&&(q=Math.random()*.01,J=Math.random()*.01);var te=q*q+J*J,fe=Math.sqrt(te),de=(fe+.1)*E,Te=q/fe,Se=J/fe,Ie=(b($)+b(H))*.5*_/(de*de),be=d?d(H):1;if(x[2*W]+=Te*Ie,x[2*W+1]+=Se*Ie,x[2*Q]-=Te*Ie,x[2*Q+1]-=Se*Ie,w&&(m($)+m(H))/2>fe){var pe=k*(b($)+b(H))*.5/te;x[2*W]+=Te*pe/X,x[2*W+1]+=Se*pe/X,x[2*Q]-=Te*pe/be,x[2*Q+1]-=Se*pe/be}}})})},y.prototype.calAttractive=function(x,v){var g=this,d=g.nodeMap,_=g.nodeIdxMap,E=g.linkDistance,w=g.edgeStrength,T=g.nodeSize,k=g.getMass;v.forEach(function(b,m){var $=(0,R.getEdgeTerminal)(b,"source"),W=(0,R.getEdgeTerminal)(b,"target"),X=d[$],H=d[W],Q=H.x-X.x,q=H.y-X.y;Q===0&&q===0&&(Q=Math.random()*.01,q=Math.random()*.01);var J=Math.sqrt(Q*Q+q*q),te=Q/J,fe=q/J,de=E(b,X,H)||1+(T(X)+T(H)||0)/2,Te=de-J,Se=Te*w(b),Ie=_[$],be=_[W],pe=k?k(X):1,Me=k?k(H):1;x[2*Ie]-=te*Se/pe,x[2*Ie+1]-=fe*Se/pe,x[2*be]+=te*Se/Me,x[2*be+1]+=fe*Se/Me})},y.prototype.calGravity=function(x,v){for(var g=this,d=g.center,_=g.gravity,E=g.degrees,w=v.length,T=0;T_.maxSpeed){var $=_.maxSpeed/m;k=$*k,b=$*b}v[2*T]=k,v[2*T+1]=b})},y.prototype.updatePosition=function(x,v,g){g.forEach(function(d,_){if((0,R.isNumber)(d.fx)&&(0,R.isNumber)(d.fy)){d.x=d.fx,d.y=d.fy;return}var E=x[2*_]*v,w=x[2*_+1]*v;d.x+=E,d.y+=w})},y.prototype.stop=function(){this.timeInterval&&typeof window!="undefined"&&window.clearInterval(this.timeInterval)},y.prototype.destroy=function(){var x=this;x.stop(),x.tick=null,x.nodes=null,x.edges=null,x.destroyed=!0},y.prototype.getType=function(){return"gForce"},y}(j.Base);U.GForceLayout=N},81822:function(or,U,z){"use strict";var B=this&&this.__extends||function(){var d=function(_,E){return d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,T){w.__proto__=T}||function(w,T){for(var k in T)Object.prototype.hasOwnProperty.call(T,k)&&(w[k]=T[k])},d(_,E)};return function(_,E){if(typeof E!="function"&&E!==null)throw new TypeError("Class extends value "+String(E)+" is not a constructor or null");d(_,E);function w(){this.constructor=_}_.prototype=E===null?Object.create(E):(w.prototype=E.prototype,new w)}}(),j=this&&this.__awaiter||function(d,_,E,w){function T(k){return k instanceof E?k:new E(function(b){b(k)})}return new(E||(E=Promise))(function(k,b){function m(X){try{W(w.next(X))}catch(H){b(H)}}function $(X){try{W(w.throw(X))}catch(H){b(H)}}function W(X){X.done?k(X.value):T(X.value).then(m,$)}W((w=w.apply(d,_||[])).next())})},R=this&&this.__generator||function(d,_){var E={label:0,sent:function(){if(k[0]&1)throw k[1];return k[1]},trys:[],ops:[]},w,T,k,b;return b={next:m(0),throw:m(1),return:m(2)},typeof Symbol=="function"&&(b[Symbol.iterator]=function(){return this}),b;function m(W){return function(X){return $([W,X])}}function $(W){if(w)throw new TypeError("Generator is already executing.");for(;b&&(b=0,W[0]&&(E=0)),E;)try{if(w=1,T&&(k=W[0]&2?T.return:W[0]?T.throw||((k=T.return)&&k.call(T),0):T.next)&&!(k=k.call(T,W[1])).done)return k;switch(T=0,k&&(W=[W[0]&2,k.value]),W[0]){case 0:case 1:k=W;break;case 4:return E.label++,{value:W[1],done:!1};case 5:E.label++,T=W[1],W=[0];continue;case 7:W=E.ops.pop(),E.trys.pop();continue;default:if(k=E.trys,!(k=k.length>0&&k[k.length-1])&&(W[0]===6||W[0]===2)){E=0;continue}if(W[0]===3&&(!k||W[1]>k[0]&&W[1] 0.0) { - dx += param * xDist; - dy += param * yDist; - if (xDist == 0 && yDist == 0) { - const sign = i < j ? 1 : -1; - dx += param * sign; - dy += param * sign; - } - } - } - } - return [dx, dy]; - } - calcGravity(currentNode: vec4, nodeAttributes: vec4): vec2 { // - let dx = 0, dy = 0; - const vx = currentNode[0] - this.u_Center[0]; - const vy = currentNode[1] - this.u_Center[1]; - const gf = 0.01 * this.u_K * this.u_Gravity; - dx = gf * vx; - dy = gf * vy; - if (this.u_Clustering == 1) { - const clusterIdx = int(nodeAttributes[0]); - const center = this.u_ClusterCenters[clusterIdx]; - const cvx = currentNode[0] - center[0]; - const cvy = currentNode[1] - center[1]; - const dist = sqrt(cvx * cvx + cvy * cvy) + 0.01; - const parma = this.u_K * this.u_ClusterGravity / dist; - dx += parma * cvx; - dy += parma * cvy; - } - return [dx, dy]; - } - calcAttractive(i: int, currentNode: vec4): vec2 { - let dx = 0, dy = 0; - const arr_offset = int(floor(currentNode[2] + 0.5)); - const length = int(floor(currentNode[3] + 0.5)); - const node_buffer: vec4; - for (let p = 0; p < MAX_EDGE_PER_VERTEX; p++) { - if (p >= length) break; - const arr_idx = arr_offset + p; - // when arr_idx % 4 == 0 update currentNodedx_buffer - const buf_offset = arr_idx - arr_idx / 4 * 4; - if (p == 0 || buf_offset == 0) { - node_buffer = this.u_Data[int(arr_idx / 4)]; - } - const float_j = buf_offset == 0 ? node_buffer[0] : - buf_offset == 1 ? node_buffer[1] : - buf_offset == 2 ? node_buffer[2] : - node_buffer[3]; - const nextNode = this.u_Data[int(float_j)]; - const xDist = currentNode[0] - nextNode[0]; - const yDist = currentNode[1] - nextNode[1]; - const dist = sqrt(xDist * xDist + yDist * yDist) + 0.01; - let attractiveF = dist / this.u_K; - - if (dist > 0.0) { - dx -= xDist * attractiveF; - dy -= yDist * attractiveF; - if (xDist == 0 && yDist == 0) { - const sign = i < int(float_j) ? 1 : -1; - dx -= sign * attractiveF; - dy -= sign * attractiveF; - } - } - } - return [dx, dy]; - } - @main - compute() { - const i = globalInvocationID.x; - const currentNode = this.u_Data[i]; - let dx = 0, dy = 0; - if (i >= VERTEX_COUNT) { - this.u_Data[i] = currentNode; - return; - } - - // [gravity, fx, fy, 0] - const nodeAttributes = this.u_AttributeArray[i]; - - if (nodeAttributes[1] != 0 && nodeAttributes[2] != 0) { - // the node is fixed - this.u_Data[i] = [ - nodeAttributes[1], - nodeAttributes[2], - currentNode[2], - currentNode[3] - ]; - return; - } - - // repulsive - const repulsive = this.calcRepulsive(i, currentNode); - dx += repulsive[0]; - dy += repulsive[1]; - // attractive - const attractive = this.calcAttractive(i, currentNode); - dx += attractive[0]; - dy += attractive[1]; - // gravity - const gravity = this.calcGravity(currentNode, nodeAttributes); - dx -= gravity[0]; - dy -= gravity[1]; - // speed - dx *= this.u_Speed; - dy *= this.u_Speed; - - // move - const distLength = sqrt(dx * dx + dy * dy); - if (distLength > 0.0) { - const limitedDist = min(this.u_MaxDisplace * this.u_Speed, distLength); - this.u_Data[i] = [ - currentNode[0] + dx / distLength * limitedDist, - currentNode[1] + dy / distLength * limitedDist, - currentNode[2], - currentNode[3] - ]; - } - } -} -`,U.fruchtermanBundle='{"shaders":{"WGSL":"","GLSL450":"","GLSL100":"\\n\\nfloat epsilon = 0.00001;\\nvec2 addrTranslation_1Dto2D(float address1D, vec2 texSize) {\\n vec2 conv_const = vec2(1.0 / texSize.x, 1.0 / (texSize.x * texSize.y));\\n vec2 normAddr2D = float(address1D) * conv_const;\\n return vec2(fract(normAddr2D.x + epsilon), normAddr2D.y);\\n}\\n\\nvoid barrier() {}\\n \\n\\nuniform vec2 u_OutputTextureSize;\\nuniform int u_OutputTexelCount;\\nvarying vec2 v_TexCoord;\\n\\nbool gWebGPUDebug = false;\\nvec4 gWebGPUDebugOutput = vec4(0.0);\\n\\n#define MAX_EDGE_PER_VERTEX __DefineValuePlaceholder__MAX_EDGE_PER_VERTEX\\n#define VERTEX_COUNT __DefineValuePlaceholder__VERTEX_COUNT\\n\\nuniform sampler2D u_Data;\\nuniform vec2 u_DataSize;\\nvec4 getDatau_Data(vec2 address2D) {\\n return vec4(texture2D(u_Data, address2D).rgba);\\n}\\nvec4 getDatau_Data(float address1D) {\\n return getDatau_Data(addrTranslation_1Dto2D(address1D, u_DataSize));\\n}\\nvec4 getDatau_Data(int address1D) {\\n return getDatau_Data(float(address1D));\\n}\\nuniform float u_K;\\nuniform float u_K2;\\nuniform vec2 u_Center;\\nuniform float u_Gravity;\\nuniform float u_ClusterGravity;\\nuniform float u_Speed;\\nuniform float u_MaxDisplace;\\nuniform float u_Clustering;\\nuniform sampler2D u_AttributeArray;\\nuniform vec2 u_AttributeArraySize;\\nvec4 getDatau_AttributeArray(vec2 address2D) {\\n return vec4(texture2D(u_AttributeArray, address2D).rgba);\\n}\\nvec4 getDatau_AttributeArray(float address1D) {\\n return getDatau_AttributeArray(addrTranslation_1Dto2D(address1D, u_AttributeArraySize));\\n}\\nvec4 getDatau_AttributeArray(int address1D) {\\n return getDatau_AttributeArray(float(address1D));\\n}\\nuniform sampler2D u_ClusterCenters;\\nuniform vec2 u_ClusterCentersSize;\\nvec4 getDatau_ClusterCenters(vec2 address2D) {\\n return vec4(texture2D(u_ClusterCenters, address2D).rgba);\\n}\\nvec4 getDatau_ClusterCenters(float address1D) {\\n return getDatau_ClusterCenters(addrTranslation_1Dto2D(address1D, u_ClusterCentersSize));\\n}\\nvec4 getDatau_ClusterCenters(int address1D) {\\n return getDatau_ClusterCenters(float(address1D));\\n}\\nvec2 calcRepulsive(int i, vec4 currentNode) {\\nivec3 workGroupSize = ivec3(1, 1, 1);\\nivec3 numWorkGroups = ivec3(1, 1, 1); \\nint globalInvocationIndex = int(floor(v_TexCoord.x * u_OutputTextureSize.x))\\n + int(floor(v_TexCoord.y * u_OutputTextureSize.y)) * int(u_OutputTextureSize.x);\\nint workGroupIDLength = globalInvocationIndex / (workGroupSize.x * workGroupSize.y * workGroupSize.z);\\nivec3 workGroupID = ivec3(workGroupIDLength / numWorkGroups.y / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.y);\\nint localInvocationIDZ = globalInvocationIndex / (workGroupSize.x * workGroupSize.y);\\nint localInvocationIDY = (globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y) / workGroupSize.x;\\nint localInvocationIDX = globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y - localInvocationIDY * workGroupSize.x;\\nivec3 localInvocationID = ivec3(localInvocationIDX, localInvocationIDY, localInvocationIDZ);\\nivec3 globalInvocationID = workGroupID * workGroupSize + localInvocationID;\\nint localInvocationIndex = localInvocationID.z * workGroupSize.x * workGroupSize.y\\n + localInvocationID.y * workGroupSize.x + localInvocationID.x;\\nfloat dx = 0.0;\\nfloat dy = 0.0;\\nfor (int j = 0; j < VERTEX_COUNT; j++) {if (i != j) {vec4 nextNode = getDatau_Data(j);\\nfloat xDist = currentNode.x - nextNode.x;\\nfloat yDist = currentNode.y - nextNode.y;\\nfloat dist = ((xDist * xDist) + (yDist * yDist)) + 0.01;\\nfloat param = u_K2 / dist;\\nif (dist > 0.0) {dx += param * xDist;\\ndy += param * yDist;\\nif ((xDist == 0.0) && (yDist == 0.0)) {float sign = (i < j) ? (1.0) : (-1.0);\\ndx += param * sign;\\ndy += param * sign;}}}}\\nreturn vec2(dx, dy);}\\nvec2 calcGravity(vec4 currentNode, vec4 nodeAttributes) {\\nivec3 workGroupSize = ivec3(1, 1, 1);\\nivec3 numWorkGroups = ivec3(1, 1, 1); \\nint globalInvocationIndex = int(floor(v_TexCoord.x * u_OutputTextureSize.x))\\n + int(floor(v_TexCoord.y * u_OutputTextureSize.y)) * int(u_OutputTextureSize.x);\\nint workGroupIDLength = globalInvocationIndex / (workGroupSize.x * workGroupSize.y * workGroupSize.z);\\nivec3 workGroupID = ivec3(workGroupIDLength / numWorkGroups.y / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.y);\\nint localInvocationIDZ = globalInvocationIndex / (workGroupSize.x * workGroupSize.y);\\nint localInvocationIDY = (globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y) / workGroupSize.x;\\nint localInvocationIDX = globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y - localInvocationIDY * workGroupSize.x;\\nivec3 localInvocationID = ivec3(localInvocationIDX, localInvocationIDY, localInvocationIDZ);\\nivec3 globalInvocationID = workGroupID * workGroupSize + localInvocationID;\\nint localInvocationIndex = localInvocationID.z * workGroupSize.x * workGroupSize.y\\n + localInvocationID.y * workGroupSize.x + localInvocationID.x;\\nfloat dx = 0.0;\\nfloat dy = 0.0;\\nfloat vx = currentNode.x - u_Center.x;\\nfloat vy = currentNode.y - u_Center.y;\\nfloat gf = (0.01 * u_K) * u_Gravity;\\ndx = gf * vx;\\ndy = gf * vy;\\nif (u_Clustering == 1.0) {int clusterIdx = int(nodeAttributes.x);\\nvec4 center = getDatau_ClusterCenters(clusterIdx);\\nfloat cvx = currentNode.x - center.x;\\nfloat cvy = currentNode.y - center.y;\\nfloat dist = sqrt((cvx * cvx) + (cvy * cvy)) + 0.01;\\nfloat parma = (u_K * u_ClusterGravity) / dist;\\ndx += parma * cvx;\\ndy += parma * cvy;}\\nreturn vec2(dx, dy);}\\nvec2 calcAttractive(int i, vec4 currentNode) {\\nivec3 workGroupSize = ivec3(1, 1, 1);\\nivec3 numWorkGroups = ivec3(1, 1, 1); \\nint globalInvocationIndex = int(floor(v_TexCoord.x * u_OutputTextureSize.x))\\n + int(floor(v_TexCoord.y * u_OutputTextureSize.y)) * int(u_OutputTextureSize.x);\\nint workGroupIDLength = globalInvocationIndex / (workGroupSize.x * workGroupSize.y * workGroupSize.z);\\nivec3 workGroupID = ivec3(workGroupIDLength / numWorkGroups.y / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.y);\\nint localInvocationIDZ = globalInvocationIndex / (workGroupSize.x * workGroupSize.y);\\nint localInvocationIDY = (globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y) / workGroupSize.x;\\nint localInvocationIDX = globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y - localInvocationIDY * workGroupSize.x;\\nivec3 localInvocationID = ivec3(localInvocationIDX, localInvocationIDY, localInvocationIDZ);\\nivec3 globalInvocationID = workGroupID * workGroupSize + localInvocationID;\\nint localInvocationIndex = localInvocationID.z * workGroupSize.x * workGroupSize.y\\n + localInvocationID.y * workGroupSize.x + localInvocationID.x;\\nfloat dx = 0.0;\\nfloat dy = 0.0;\\nint arr_offset = int(floor(currentNode.z + 0.5));\\nint length = int(floor(currentNode.w + 0.5));\\nvec4 node_buffer;\\nfor (int p = 0; p < MAX_EDGE_PER_VERTEX; p++) {if (p >= length) {break;}\\nint arr_idx = arr_offset + int(p);\\nint buf_offset = arr_idx - ((arr_idx / 4) * 4);\\nif ((p == 0) || (buf_offset == 0)) {node_buffer = getDatau_Data(int(arr_idx / 4));}\\nfloat float_j = (buf_offset == 0) ? (node_buffer.x) : ((buf_offset == 1) ? (node_buffer.y) : ((buf_offset == 2) ? (node_buffer.z) : (node_buffer.w)));\\nvec4 nextNode = getDatau_Data(int(float_j));\\nfloat xDist = currentNode.x - nextNode.x;\\nfloat yDist = currentNode.y - nextNode.y;\\nfloat dist = sqrt((xDist * xDist) + (yDist * yDist)) + 0.01;\\nfloat attractiveF = dist / u_K;\\nif (dist > 0.0) {dx -= xDist * attractiveF;\\ndy -= yDist * attractiveF;\\nif ((xDist == 0.0) && (yDist == 0.0)) {float sign = (i < int(float_j)) ? (1.0) : (-1.0);\\ndx -= sign * attractiveF;\\ndy -= sign * attractiveF;}}}\\nreturn vec2(dx, dy);}\\nvoid main() {\\nivec3 workGroupSize = ivec3(1, 1, 1);\\nivec3 numWorkGroups = ivec3(1, 1, 1); \\nint globalInvocationIndex = int(floor(v_TexCoord.x * u_OutputTextureSize.x))\\n + int(floor(v_TexCoord.y * u_OutputTextureSize.y)) * int(u_OutputTextureSize.x);\\nint workGroupIDLength = globalInvocationIndex / (workGroupSize.x * workGroupSize.y * workGroupSize.z);\\nivec3 workGroupID = ivec3(workGroupIDLength / numWorkGroups.y / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.y);\\nint localInvocationIDZ = globalInvocationIndex / (workGroupSize.x * workGroupSize.y);\\nint localInvocationIDY = (globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y) / workGroupSize.x;\\nint localInvocationIDX = globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y - localInvocationIDY * workGroupSize.x;\\nivec3 localInvocationID = ivec3(localInvocationIDX, localInvocationIDY, localInvocationIDZ);\\nivec3 globalInvocationID = workGroupID * workGroupSize + localInvocationID;\\nint localInvocationIndex = localInvocationID.z * workGroupSize.x * workGroupSize.y\\n + localInvocationID.y * workGroupSize.x + localInvocationID.x;\\nint i = globalInvocationID.x;\\nvec4 currentNode = getDatau_Data(i);\\nfloat dx = 0.0;\\nfloat dy = 0.0;\\nif (i >= VERTEX_COUNT) {gl_FragColor = vec4(currentNode);\\nreturn ;}\\nvec4 nodeAttributes = getDatau_AttributeArray(i);\\nif ((nodeAttributes.y != 0.0) && (nodeAttributes.z != 0.0)) {gl_FragColor = vec4(vec4(nodeAttributes.y, nodeAttributes.z, currentNode.z, currentNode.w));\\nreturn ;}\\nvec2 repulsive = calcRepulsive(i, currentNode);\\ndx += repulsive.x;\\ndy += repulsive.y;\\nvec2 attractive = calcAttractive(i, currentNode);\\ndx += attractive.x;\\ndy += attractive.y;\\nvec2 gravity = calcGravity(currentNode, nodeAttributes);\\ndx -= gravity.x;\\ndy -= gravity.y;\\ndx *= u_Speed;\\ndy *= u_Speed;\\nfloat distLength = sqrt((dx * dx) + (dy * dy));\\nif (distLength > 0.0) {float limitedDist = min(u_MaxDisplace * u_Speed, distLength);\\ngl_FragColor = vec4(vec4(currentNode.x + ((dx / distLength) * limitedDist), currentNode.y + ((dy / distLength) * limitedDist), currentNode.z, currentNode.w));}if (gWebGPUDebug) {\\n gl_FragColor = gWebGPUDebugOutput;\\n}}\\n"},"context":{"name":"","dispatch":[1,1,1],"threadGroupSize":[1,1,1],"maxIteration":1,"defines":[{"name":"MAX_EDGE_PER_VERTEX","type":"Float","runtime":true},{"name":"VERTEX_COUNT","type":"Float","runtime":true}],"uniforms":[{"name":"u_Data","type":"vec4[]","storageClass":"StorageBuffer","readonly":false,"writeonly":false,"size":[1,1]},{"name":"u_K","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_K2","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_Center","type":"vec2","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_Gravity","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_ClusterGravity","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_Speed","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_MaxDisplace","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_Clustering","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_AttributeArray","type":"vec4[]","storageClass":"StorageBuffer","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_ClusterCenters","type":"vec4[]","storageClass":"StorageBuffer","readonly":true,"writeonly":false,"size":[1,1]}],"globalDeclarations":[],"output":{"name":"u_Data","size":[1,1],"length":1},"needPingpong":true}}',U.clusterCode=` -import { globalInvocationID } from 'g-webgpu'; -const VERTEX_COUNT; -const CLUSTER_COUNT; -@numthreads(1, 1, 1) -class CalcCenter { - @in - u_Data: vec4[]; - @in - u_NodeAttributes: vec4[]; // [[clusterIdx, 0, 0, 0], ...] - @in @out - u_ClusterCenters: vec4[]; // [[cx, cy, nodeCount, clusterIdx], ...] - @main - compute() { - const i = globalInvocationID.x; - const center = this.u_ClusterCenters[i]; - let sumx = 0; - let sumy = 0; - let count = 0; - for (let j = 0; j < VERTEX_COUNT; j++) { - const attributes = this.u_NodeAttributes[j]; - const clusterIdx = int(attributes[0]); - const vertex = this.u_Data[j]; - if (clusterIdx == i) { - sumx += vertex.x; - sumy += vertex.y; - count += 1; - } - } - this.u_ClusterCenters[i] = [ - sumx / count, - sumy / count, - count, - i - ]; - } -} -`,U.clusterBundle='{"shaders":{"WGSL":"","GLSL450":"","GLSL100":"\\n\\nfloat epsilon = 0.00001;\\nvec2 addrTranslation_1Dto2D(float address1D, vec2 texSize) {\\n vec2 conv_const = vec2(1.0 / texSize.x, 1.0 / (texSize.x * texSize.y));\\n vec2 normAddr2D = float(address1D) * conv_const;\\n return vec2(fract(normAddr2D.x + epsilon), normAddr2D.y);\\n}\\n\\nvoid barrier() {}\\n \\n\\nuniform vec2 u_OutputTextureSize;\\nuniform int u_OutputTexelCount;\\nvarying vec2 v_TexCoord;\\n\\nbool gWebGPUDebug = false;\\nvec4 gWebGPUDebugOutput = vec4(0.0);\\n\\n#define VERTEX_COUNT __DefineValuePlaceholder__VERTEX_COUNT\\n#define CLUSTER_COUNT __DefineValuePlaceholder__CLUSTER_COUNT\\n\\nuniform sampler2D u_Data;\\nuniform vec2 u_DataSize;\\nvec4 getDatau_Data(vec2 address2D) {\\n return vec4(texture2D(u_Data, address2D).rgba);\\n}\\nvec4 getDatau_Data(float address1D) {\\n return getDatau_Data(addrTranslation_1Dto2D(address1D, u_DataSize));\\n}\\nvec4 getDatau_Data(int address1D) {\\n return getDatau_Data(float(address1D));\\n}\\nuniform sampler2D u_NodeAttributes;\\nuniform vec2 u_NodeAttributesSize;\\nvec4 getDatau_NodeAttributes(vec2 address2D) {\\n return vec4(texture2D(u_NodeAttributes, address2D).rgba);\\n}\\nvec4 getDatau_NodeAttributes(float address1D) {\\n return getDatau_NodeAttributes(addrTranslation_1Dto2D(address1D, u_NodeAttributesSize));\\n}\\nvec4 getDatau_NodeAttributes(int address1D) {\\n return getDatau_NodeAttributes(float(address1D));\\n}\\nuniform sampler2D u_ClusterCenters;\\nuniform vec2 u_ClusterCentersSize;\\nvec4 getDatau_ClusterCenters(vec2 address2D) {\\n return vec4(texture2D(u_ClusterCenters, address2D).rgba);\\n}\\nvec4 getDatau_ClusterCenters(float address1D) {\\n return getDatau_ClusterCenters(addrTranslation_1Dto2D(address1D, u_ClusterCentersSize));\\n}\\nvec4 getDatau_ClusterCenters(int address1D) {\\n return getDatau_ClusterCenters(float(address1D));\\n}\\nvoid main() {\\nivec3 workGroupSize = ivec3(1, 1, 1);\\nivec3 numWorkGroups = ivec3(1, 1, 1); \\nint globalInvocationIndex = int(floor(v_TexCoord.x * u_OutputTextureSize.x))\\n + int(floor(v_TexCoord.y * u_OutputTextureSize.y)) * int(u_OutputTextureSize.x);\\nint workGroupIDLength = globalInvocationIndex / (workGroupSize.x * workGroupSize.y * workGroupSize.z);\\nivec3 workGroupID = ivec3(workGroupIDLength / numWorkGroups.y / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.y);\\nint localInvocationIDZ = globalInvocationIndex / (workGroupSize.x * workGroupSize.y);\\nint localInvocationIDY = (globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y) / workGroupSize.x;\\nint localInvocationIDX = globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y - localInvocationIDY * workGroupSize.x;\\nivec3 localInvocationID = ivec3(localInvocationIDX, localInvocationIDY, localInvocationIDZ);\\nivec3 globalInvocationID = workGroupID * workGroupSize + localInvocationID;\\nint localInvocationIndex = localInvocationID.z * workGroupSize.x * workGroupSize.y\\n + localInvocationID.y * workGroupSize.x + localInvocationID.x;\\nint i = globalInvocationID.x;\\nvec4 center = getDatau_ClusterCenters(i);\\nfloat sumx = 0.0;\\nfloat sumy = 0.0;\\nfloat count = 0.0;\\nfor (int j = 0; j < VERTEX_COUNT; j++) {vec4 attributes = getDatau_NodeAttributes(j);\\nint clusterIdx = int(attributes.x);\\nvec4 vertex = getDatau_Data(j);\\nif (clusterIdx == i) {sumx += vertex.x;\\nsumy += vertex.y;\\ncount += 1.0;}}\\ngl_FragColor = vec4(vec4(sumx / count, sumy / count, count, i));if (gWebGPUDebug) {\\n gl_FragColor = gWebGPUDebugOutput;\\n}}\\n"},"context":{"name":"","dispatch":[1,1,1],"threadGroupSize":[1,1,1],"maxIteration":1,"defines":[{"name":"VERTEX_COUNT","type":"Float","runtime":true},{"name":"CLUSTER_COUNT","type":"Float","runtime":true}],"uniforms":[{"name":"u_Data","type":"vec4[]","storageClass":"StorageBuffer","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_NodeAttributes","type":"vec4[]","storageClass":"StorageBuffer","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_ClusterCenters","type":"vec4[]","storageClass":"StorageBuffer","readonly":false,"writeonly":false,"size":[1,1]}],"globalDeclarations":[],"output":{"name":"u_ClusterCenters","size":[1,1],"length":1},"needPingpong":true}}'},86043:function(or,U,z){"use strict";var B=this&&this.__extends||function(){var _=function(E,w){return _=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(T,k){T.__proto__=k}||function(T,k){for(var b in k)Object.prototype.hasOwnProperty.call(k,b)&&(T[b]=k[b])},_(E,w)};return function(E,w){if(typeof w!="function"&&w!==null)throw new TypeError("Class extends value "+String(w)+" is not a constructor or null");_(E,w);function T(){this.constructor=E}E.prototype=w===null?Object.create(w):(T.prototype=w.prototype,new T)}}(),j=this&&this.__awaiter||function(_,E,w,T){function k(b){return b instanceof w?b:new w(function(m){m(b)})}return new(w||(w=Promise))(function(b,m){function $(H){try{X(T.next(H))}catch(Q){m(Q)}}function W(H){try{X(T.throw(H))}catch(Q){m(Q)}}function X(H){H.done?b(H.value):k(H.value).then($,W)}X((T=T.apply(_,E||[])).next())})},R=this&&this.__generator||function(_,E){var w={label:0,sent:function(){if(b[0]&1)throw b[1];return b[1]},trys:[],ops:[]},T,k,b,m;return m={next:$(0),throw:$(1),return:$(2)},typeof Symbol=="function"&&(m[Symbol.iterator]=function(){return this}),m;function $(X){return function(H){return W([X,H])}}function W(X){if(T)throw new TypeError("Generator is already executing.");for(;m&&(m=0,X[0]&&(w=0)),w;)try{if(T=1,k&&(b=X[0]&2?k.return:X[0]?k.throw||((b=k.return)&&b.call(k),0):k.next)&&!(b=b.call(k,X[1])).done)return b;switch(k=0,b&&(X=[X[0]&2,b.value]),X[0]){case 0:case 1:b=X;break;case 4:return w.label++,{value:X[1],done:!1};case 5:w.label++,k=X[1],X=[0];continue;case 7:X=w.ops.pop(),w.trys.pop();continue;default:if(b=w.trys,!(b=b.length>0&&b[b.length-1])&&(X[0]===6||X[0]===2)){w=0;continue}if(X[0]===3&&(!b||X[1]>b[0]&&X[1]= length) break; - const arr_idx = arr_offset + 4 * p; // i \u8282\u70B9\u7684\u7B2C p \u6761\u8FB9\u5F00\u59CB\u7684\u5C0F\u683C\u5B50\u4F4D\u7F6E - const buf_offset = arr_idx - arr_idx / 4 * 4; - if (p == 0 || buf_offset == 0) { - node_buffer = this.u_Data[int(arr_idx / 4)]; // \u5927\u683C\u5B50\uFF0C\u5927\u683C\u5B50\u4F4D\u7F6E=\u5C0F\u4E2A\u5B50\u4F4D\u7F6E / 4\uFF0C - } - - let float_j: float = node_buffer[0]; - - const nextNode = this.u_Data[int(float_j)]; - const vx = nextNode[0] - currentNode[0]; - const vy = nextNode[1] - currentNode[1]; - const dist = sqrt(vx * vx + vy * vy) + 0.01; - const direx = vx / dist; - const direy = vy / dist; - const edgeLength = node_buffer[1]; - const edgeStrength = node_buffer[2]; - const diff: float = edgeLength - dist;//edgeLength - // const param = diff * this.u_stiffness / mass; // - const param = diff * edgeStrength / mass; // - ax -= direx * param; - ay -= direy * param; - } - return [ax, ay]; - } - - @main - compute() { - const i = globalInvocationID.x; - const currentNode = this.u_Data[i]; - const movement = u_AveMovement[0]; - let ax = 0, ay = 0; - - if (i >= VERTEX_COUNT || movement.x < u_minMovement) { - this.u_Data[i] = currentNode; - return; - } - - // \u6BCF\u4E2A\u8282\u70B9\u5C5E\u6027\u5360\u4E24\u4E2A\u6570\u7EC4\u4E2D\u5404\u4E00\u683C - // [mass, degree, nodeStrength, fx] - const nodeAttributes1 = this.u_NodeAttributeArray1[i]; - // [centerX, centerY, centerGravity, fy] - const nodeAttributes2 = this.u_NodeAttributeArray2[i]; - - // repulsive - const repulsive = this.calcRepulsive(i, currentNode); - ax += repulsive[0]; - ay += repulsive[1]; - - // attractive - const attractive = this.calcAttractive(i, currentNode, nodeAttributes1); - ax += attractive[0]; - ay += attractive[1]; - - // gravity - const gravity = this.calcGravity(i, currentNode, nodeAttributes2); - ax -= gravity[0]; - ay -= gravity[1]; - - // speed - const param = this.u_interval * this.u_damping; - let vx = ax * param; - let vy = ay * param; - const vlength = sqrt(vx * vx + vy * vy) + 0.0001; - if (vlength > this.u_maxSpeed) { - const param2 = this.u_maxSpeed / vlength; - vx = param2 * vx; - vy = param2 * vy; - } - - // move - if (nodeAttributes1[3] != 0 && nodeAttributes2[3] != 0) { - this.u_Data[i] = [ - nodeAttributes1[3], - nodeAttributes2[3], - currentNode[2], - 0 - ]; - } else { - const distx = vx * this.u_interval; - const disty = vy * this.u_interval; - const distLength = sqrt(distx * distx + disty * disty); - this.u_Data[i] = [ - currentNode[0] + distx, - currentNode[1] + disty, - currentNode[2], - distLength - ]; - } - - // the avarage move distance - // need to share memory - - } -} -`,U.gForceBundle='{"shaders":{"WGSL":"","GLSL450":"","GLSL100":"\\n\\nfloat epsilon = 0.00001;\\nvec2 addrTranslation_1Dto2D(float address1D, vec2 texSize) {\\n vec2 conv_const = vec2(1.0 / texSize.x, 1.0 / (texSize.x * texSize.y));\\n vec2 normAddr2D = float(address1D) * conv_const;\\n return vec2(fract(normAddr2D.x + epsilon), normAddr2D.y);\\n}\\n\\nvoid barrier() {}\\n \\n\\nuniform vec2 u_OutputTextureSize;\\nuniform int u_OutputTexelCount;\\nvarying vec2 v_TexCoord;\\n\\nbool gWebGPUDebug = false;\\nvec4 gWebGPUDebugOutput = vec4(0.0);\\n\\n#define MAX_EDGE_PER_VERTEX __DefineValuePlaceholder__MAX_EDGE_PER_VERTEX\\n#define VERTEX_COUNT __DefineValuePlaceholder__VERTEX_COUNT\\n#define SHIFT_20 1048576.0\\n\\nuniform sampler2D u_Data;\\nuniform vec2 u_DataSize;\\nvec4 getDatau_Data(vec2 address2D) {\\n return vec4(texture2D(u_Data, address2D).rgba);\\n}\\nvec4 getDatau_Data(float address1D) {\\n return getDatau_Data(addrTranslation_1Dto2D(address1D, u_DataSize));\\n}\\nvec4 getDatau_Data(int address1D) {\\n return getDatau_Data(float(address1D));\\n}\\nuniform float u_damping;\\nuniform float u_maxSpeed;\\nuniform float u_minMovement;\\nuniform sampler2D u_AveMovement;\\nuniform vec2 u_AveMovementSize;\\nvec4 getDatau_AveMovement(vec2 address2D) {\\n return vec4(texture2D(u_AveMovement, address2D).rgba);\\n}\\nvec4 getDatau_AveMovement(float address1D) {\\n return getDatau_AveMovement(addrTranslation_1Dto2D(address1D, u_AveMovementSize));\\n}\\nvec4 getDatau_AveMovement(int address1D) {\\n return getDatau_AveMovement(float(address1D));\\n}\\nuniform float u_coulombDisScale;\\nuniform float u_factor;\\nuniform sampler2D u_NodeAttributeArray1;\\nuniform vec2 u_NodeAttributeArray1Size;\\nvec4 getDatau_NodeAttributeArray1(vec2 address2D) {\\n return vec4(texture2D(u_NodeAttributeArray1, address2D).rgba);\\n}\\nvec4 getDatau_NodeAttributeArray1(float address1D) {\\n return getDatau_NodeAttributeArray1(addrTranslation_1Dto2D(address1D, u_NodeAttributeArray1Size));\\n}\\nvec4 getDatau_NodeAttributeArray1(int address1D) {\\n return getDatau_NodeAttributeArray1(float(address1D));\\n}\\nuniform sampler2D u_NodeAttributeArray2;\\nuniform vec2 u_NodeAttributeArray2Size;\\nvec4 getDatau_NodeAttributeArray2(vec2 address2D) {\\n return vec4(texture2D(u_NodeAttributeArray2, address2D).rgba);\\n}\\nvec4 getDatau_NodeAttributeArray2(float address1D) {\\n return getDatau_NodeAttributeArray2(addrTranslation_1Dto2D(address1D, u_NodeAttributeArray2Size));\\n}\\nvec4 getDatau_NodeAttributeArray2(int address1D) {\\n return getDatau_NodeAttributeArray2(float(address1D));\\n}\\nuniform float u_interval;\\nivec2 unpack_float(float packedValue) {\\nivec3 workGroupSize = ivec3(1, 1, 1);\\nivec3 numWorkGroups = ivec3(1, 1, 1); \\nint globalInvocationIndex = int(floor(v_TexCoord.x * u_OutputTextureSize.x))\\n + int(floor(v_TexCoord.y * u_OutputTextureSize.y)) * int(u_OutputTextureSize.x);\\nint workGroupIDLength = globalInvocationIndex / (workGroupSize.x * workGroupSize.y * workGroupSize.z);\\nivec3 workGroupID = ivec3(workGroupIDLength / numWorkGroups.y / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.y);\\nint localInvocationIDZ = globalInvocationIndex / (workGroupSize.x * workGroupSize.y);\\nint localInvocationIDY = (globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y) / workGroupSize.x;\\nint localInvocationIDX = globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y - localInvocationIDY * workGroupSize.x;\\nivec3 localInvocationID = ivec3(localInvocationIDX, localInvocationIDY, localInvocationIDZ);\\nivec3 globalInvocationID = workGroupID * workGroupSize + localInvocationID;\\nint localInvocationIndex = localInvocationID.z * workGroupSize.x * workGroupSize.y\\n + localInvocationID.y * workGroupSize.x + localInvocationID.x;\\nint packedIntValue = int(packedValue);\\nint v0 = packedIntValue / int(SHIFT_20);\\nreturn ivec2(v0, packedIntValue - (v0 * int(SHIFT_20)));}\\nvec2 calcRepulsive(int i, vec4 currentNode) {\\nivec3 workGroupSize = ivec3(1, 1, 1);\\nivec3 numWorkGroups = ivec3(1, 1, 1); \\nint globalInvocationIndex = int(floor(v_TexCoord.x * u_OutputTextureSize.x))\\n + int(floor(v_TexCoord.y * u_OutputTextureSize.y)) * int(u_OutputTextureSize.x);\\nint workGroupIDLength = globalInvocationIndex / (workGroupSize.x * workGroupSize.y * workGroupSize.z);\\nivec3 workGroupID = ivec3(workGroupIDLength / numWorkGroups.y / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.y);\\nint localInvocationIDZ = globalInvocationIndex / (workGroupSize.x * workGroupSize.y);\\nint localInvocationIDY = (globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y) / workGroupSize.x;\\nint localInvocationIDX = globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y - localInvocationIDY * workGroupSize.x;\\nivec3 localInvocationID = ivec3(localInvocationIDX, localInvocationIDY, localInvocationIDZ);\\nivec3 globalInvocationID = workGroupID * workGroupSize + localInvocationID;\\nint localInvocationIndex = localInvocationID.z * workGroupSize.x * workGroupSize.y\\n + localInvocationID.y * workGroupSize.x + localInvocationID.x;\\nfloat ax = 0.0;\\nfloat ay = 0.0;\\nfor (int j = 0; j < VERTEX_COUNT; j++) {if (i != j) {vec4 nextNode = getDatau_Data(j);\\nfloat vx = currentNode.x - nextNode.x;\\nfloat vy = currentNode.y - nextNode.y;\\nfloat dist = sqrt((vx * vx) + (vy * vy)) + 0.01;\\nfloat n_dist = (dist + 0.1) * u_coulombDisScale;\\nfloat direx = vx / dist;\\nfloat direy = vy / dist;\\nvec4 attributesi = getDatau_NodeAttributeArray1(i);\\nvec4 attributesj = getDatau_NodeAttributeArray1(j);\\nfloat massi = attributesi.x;\\nfloat nodeStrengthi = attributesi.z;\\nfloat nodeStrengthj = attributesj.z;\\nfloat nodeStrength = (nodeStrengthi + nodeStrengthj) / 2.0;\\nfloat param = (nodeStrength * u_factor) / (n_dist * n_dist);\\nax += direx * param;\\nay += direy * param;}}\\nreturn vec2(ax, ay);}\\nvec2 calcGravity(int i, vec4 currentNode, vec4 attributes2) {\\nivec3 workGroupSize = ivec3(1, 1, 1);\\nivec3 numWorkGroups = ivec3(1, 1, 1); \\nint globalInvocationIndex = int(floor(v_TexCoord.x * u_OutputTextureSize.x))\\n + int(floor(v_TexCoord.y * u_OutputTextureSize.y)) * int(u_OutputTextureSize.x);\\nint workGroupIDLength = globalInvocationIndex / (workGroupSize.x * workGroupSize.y * workGroupSize.z);\\nivec3 workGroupID = ivec3(workGroupIDLength / numWorkGroups.y / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.y);\\nint localInvocationIDZ = globalInvocationIndex / (workGroupSize.x * workGroupSize.y);\\nint localInvocationIDY = (globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y) / workGroupSize.x;\\nint localInvocationIDX = globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y - localInvocationIDY * workGroupSize.x;\\nivec3 localInvocationID = ivec3(localInvocationIDX, localInvocationIDY, localInvocationIDZ);\\nivec3 globalInvocationID = workGroupID * workGroupSize + localInvocationID;\\nint localInvocationIndex = localInvocationID.z * workGroupSize.x * workGroupSize.y\\n + localInvocationID.y * workGroupSize.x + localInvocationID.x;\\nfloat vx = currentNode.x - attributes2.x;\\nfloat vy = currentNode.y - attributes2.y;\\nfloat ax = vx * attributes2.z;\\nfloat ay = vy * attributes2.z;\\nreturn vec2(ax, ay);}\\nvec2 calcAttractive(int i, vec4 currentNode, vec4 attributes1) {\\nivec3 workGroupSize = ivec3(1, 1, 1);\\nivec3 numWorkGroups = ivec3(1, 1, 1); \\nint globalInvocationIndex = int(floor(v_TexCoord.x * u_OutputTextureSize.x))\\n + int(floor(v_TexCoord.y * u_OutputTextureSize.y)) * int(u_OutputTextureSize.x);\\nint workGroupIDLength = globalInvocationIndex / (workGroupSize.x * workGroupSize.y * workGroupSize.z);\\nivec3 workGroupID = ivec3(workGroupIDLength / numWorkGroups.y / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.y);\\nint localInvocationIDZ = globalInvocationIndex / (workGroupSize.x * workGroupSize.y);\\nint localInvocationIDY = (globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y) / workGroupSize.x;\\nint localInvocationIDX = globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y - localInvocationIDY * workGroupSize.x;\\nivec3 localInvocationID = ivec3(localInvocationIDX, localInvocationIDY, localInvocationIDZ);\\nivec3 globalInvocationID = workGroupID * workGroupSize + localInvocationID;\\nint localInvocationIndex = localInvocationID.z * workGroupSize.x * workGroupSize.y\\n + localInvocationID.y * workGroupSize.x + localInvocationID.x;\\nfloat mass = attributes1.x;\\nfloat ax = 0.0;\\nfloat ay = 0.0;\\nivec2 compressed = unpack_float(currentNode.z);\\nint length = compressed.x;\\nint arr_offset = compressed.y;\\nvec4 node_buffer;\\nfor (int p = 0; p < MAX_EDGE_PER_VERTEX; p++) {if (p >= length) {break;}\\nint arr_idx = arr_offset + (4 * p);\\nint buf_offset = arr_idx - ((arr_idx / 4) * 4);\\nif ((p == 0) || (buf_offset == 0)) {node_buffer = getDatau_Data(int(arr_idx / 4));}\\nfloat float_j = node_buffer.x;\\nvec4 nextNode = getDatau_Data(int(float_j));\\nfloat vx = nextNode.x - currentNode.x;\\nfloat vy = nextNode.y - currentNode.y;\\nfloat dist = sqrt((vx * vx) + (vy * vy)) + 0.01;\\nfloat direx = vx / dist;\\nfloat direy = vy / dist;\\nfloat edgeLength = node_buffer.y;\\nfloat edgeStrength = node_buffer.z;\\nfloat diff = edgeLength - dist;\\nfloat param = (diff * edgeStrength) / mass;\\nax -= direx * param;\\nay -= direy * param;}\\nreturn vec2(ax, ay);}\\nvoid main() {\\nivec3 workGroupSize = ivec3(1, 1, 1);\\nivec3 numWorkGroups = ivec3(1, 1, 1); \\nint globalInvocationIndex = int(floor(v_TexCoord.x * u_OutputTextureSize.x))\\n + int(floor(v_TexCoord.y * u_OutputTextureSize.y)) * int(u_OutputTextureSize.x);\\nint workGroupIDLength = globalInvocationIndex / (workGroupSize.x * workGroupSize.y * workGroupSize.z);\\nivec3 workGroupID = ivec3(workGroupIDLength / numWorkGroups.y / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.y);\\nint localInvocationIDZ = globalInvocationIndex / (workGroupSize.x * workGroupSize.y);\\nint localInvocationIDY = (globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y) / workGroupSize.x;\\nint localInvocationIDX = globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y - localInvocationIDY * workGroupSize.x;\\nivec3 localInvocationID = ivec3(localInvocationIDX, localInvocationIDY, localInvocationIDZ);\\nivec3 globalInvocationID = workGroupID * workGroupSize + localInvocationID;\\nint localInvocationIndex = localInvocationID.z * workGroupSize.x * workGroupSize.y\\n + localInvocationID.y * workGroupSize.x + localInvocationID.x;\\nint i = globalInvocationID.x;\\nvec4 currentNode = getDatau_Data(i);\\nvec4 movement = getDatau_AveMovement(0.0);\\nfloat ax = 0.0;\\nfloat ay = 0.0;\\nif ((i >= VERTEX_COUNT) || (movement.x < u_minMovement)) {gl_FragColor = vec4(currentNode);\\nreturn ;}\\nvec4 nodeAttributes1 = getDatau_NodeAttributeArray1(i);\\nvec4 nodeAttributes2 = getDatau_NodeAttributeArray2(i);\\nvec2 repulsive = calcRepulsive(i, currentNode);\\nax += repulsive.x;\\nay += repulsive.y;\\nvec2 attractive = calcAttractive(i, currentNode, nodeAttributes1);\\nax += attractive.x;\\nay += attractive.y;\\nvec2 gravity = calcGravity(i, currentNode, nodeAttributes2);\\nax -= gravity.x;\\nay -= gravity.y;\\nfloat param = u_interval * u_damping;\\nfloat vx = ax * param;\\nfloat vy = ay * param;\\nfloat vlength = sqrt((vx * vx) + (vy * vy)) + 0.0001;\\nif (vlength > u_maxSpeed) {float param2 = u_maxSpeed / vlength;\\nvx = param2 * vx;\\nvy = param2 * vy;}\\nif ((nodeAttributes1.w != 0.0) && (nodeAttributes2.w != 0.0)) {gl_FragColor = vec4(vec4(nodeAttributes1.w, nodeAttributes2.w, currentNode.z, 0.0));}else {float distx = vx * u_interval;\\nfloat disty = vy * u_interval;\\nfloat distLength = sqrt((distx * distx) + (disty * disty));\\ngl_FragColor = vec4(vec4(currentNode.x + distx, currentNode.y + disty, currentNode.z, distLength));}if (gWebGPUDebug) {\\n gl_FragColor = gWebGPUDebugOutput;\\n}}\\n"},"context":{"name":"","dispatch":[1,1,1],"threadGroupSize":[1,1,1],"maxIteration":1,"defines":[{"name":"MAX_EDGE_PER_VERTEX","type":"Float","runtime":true},{"name":"VERTEX_COUNT","type":"Float","runtime":true},{"name":"SHIFT_20","type":"Float","value":1048576,"runtime":false}],"uniforms":[{"name":"u_Data","type":"vec4[]","storageClass":"StorageBuffer","readonly":false,"writeonly":false,"size":[1,1]},{"name":"u_damping","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_maxSpeed","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_minMovement","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_AveMovement","type":"vec4[]","storageClass":"StorageBuffer","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_coulombDisScale","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_factor","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_NodeAttributeArray1","type":"vec4[]","storageClass":"StorageBuffer","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_NodeAttributeArray2","type":"vec4[]","storageClass":"StorageBuffer","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_interval","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]}],"globalDeclarations":[],"output":{"name":"u_Data","size":[1,1],"length":1},"needPingpong":true}}',U.aveMovementCode=` -const VERTEX_COUNT; -@numthreads(1, 1, 1) -class CalcAveMovement { - @in - u_Data: vec4[]; - @in - u_iter: float; - @in @out - u_AveMovement: vec4[]; - @main - compute() { - let movement = 0; - for (let j: int = 0; j < VERTEX_COUNT; j++) { - const vertex = this.u_Data[j]; - movement += vertex[3]; - } - movement = movement / float(VERTEX_COUNT); - this.u_AveMovement[0] = [movement, 0, 0, 0]; - } -} -`,U.aveMovementBundle='{"shaders":{"WGSL":"","GLSL450":"","GLSL100":"\\n\\nfloat epsilon = 0.00001;\\nvec2 addrTranslation_1Dto2D(float address1D, vec2 texSize) {\\n vec2 conv_const = vec2(1.0 / texSize.x, 1.0 / (texSize.x * texSize.y));\\n vec2 normAddr2D = float(address1D) * conv_const;\\n return vec2(fract(normAddr2D.x + epsilon), normAddr2D.y);\\n}\\n\\nvoid barrier() {}\\n \\n\\nuniform vec2 u_OutputTextureSize;\\nuniform int u_OutputTexelCount;\\nvarying vec2 v_TexCoord;\\n\\nbool gWebGPUDebug = false;\\nvec4 gWebGPUDebugOutput = vec4(0.0);\\n\\n#define VERTEX_COUNT __DefineValuePlaceholder__VERTEX_COUNT\\n\\nuniform sampler2D u_Data;\\nuniform vec2 u_DataSize;\\nvec4 getDatau_Data(vec2 address2D) {\\n return vec4(texture2D(u_Data, address2D).rgba);\\n}\\nvec4 getDatau_Data(float address1D) {\\n return getDatau_Data(addrTranslation_1Dto2D(address1D, u_DataSize));\\n}\\nvec4 getDatau_Data(int address1D) {\\n return getDatau_Data(float(address1D));\\n}\\nuniform float u_iter;\\nuniform sampler2D u_AveMovement;\\nuniform vec2 u_AveMovementSize;\\nvec4 getDatau_AveMovement(vec2 address2D) {\\n return vec4(texture2D(u_AveMovement, address2D).rgba);\\n}\\nvec4 getDatau_AveMovement(float address1D) {\\n return getDatau_AveMovement(addrTranslation_1Dto2D(address1D, u_AveMovementSize));\\n}\\nvec4 getDatau_AveMovement(int address1D) {\\n return getDatau_AveMovement(float(address1D));\\n}\\nvoid main() {\\nivec3 workGroupSize = ivec3(1, 1, 1);\\nivec3 numWorkGroups = ivec3(1, 1, 1); \\nint globalInvocationIndex = int(floor(v_TexCoord.x * u_OutputTextureSize.x))\\n + int(floor(v_TexCoord.y * u_OutputTextureSize.y)) * int(u_OutputTextureSize.x);\\nint workGroupIDLength = globalInvocationIndex / (workGroupSize.x * workGroupSize.y * workGroupSize.z);\\nivec3 workGroupID = ivec3(workGroupIDLength / numWorkGroups.y / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.y);\\nint localInvocationIDZ = globalInvocationIndex / (workGroupSize.x * workGroupSize.y);\\nint localInvocationIDY = (globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y) / workGroupSize.x;\\nint localInvocationIDX = globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y - localInvocationIDY * workGroupSize.x;\\nivec3 localInvocationID = ivec3(localInvocationIDX, localInvocationIDY, localInvocationIDZ);\\nivec3 globalInvocationID = workGroupID * workGroupSize + localInvocationID;\\nint localInvocationIndex = localInvocationID.z * workGroupSize.x * workGroupSize.y\\n + localInvocationID.y * workGroupSize.x + localInvocationID.x;\\nfloat movement = 0.0;\\nfor (int j = 0; j < VERTEX_COUNT; j++) {vec4 vertex = getDatau_Data(j);\\nmovement += vertex.w;}\\nmovement = movement / float(VERTEX_COUNT);\\ngl_FragColor = vec4(vec4(movement, 0.0, 0.0, 0.0));if (gWebGPUDebug) {\\n gl_FragColor = gWebGPUDebugOutput;\\n}}\\n"},"context":{"name":"","dispatch":[1,1,1],"threadGroupSize":[1,1,1],"maxIteration":1,"defines":[{"name":"VERTEX_COUNT","type":"Float","runtime":true}],"uniforms":[{"name":"u_Data","type":"vec4[]","storageClass":"StorageBuffer","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_iter","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_AveMovement","type":"vec4[]","storageClass":"StorageBuffer","readonly":false,"writeonly":false,"size":[1,1]}],"globalDeclarations":[],"output":{"name":"u_AveMovement","size":[1,1],"length":1},"needPingpong":true}}'},74294:function(or,U,z){"use strict";var B=this&&this.__extends||function(){var N=function(L,y){return N=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,v){x.__proto__=v}||function(x,v){for(var g in v)Object.prototype.hasOwnProperty.call(v,g)&&(x[g]=v[g])},N(L,y)};return function(L,y){if(typeof y!="function"&&y!==null)throw new TypeError("Class extends value "+String(y)+" is not a constructor or null");N(L,y);function x(){this.constructor=L}L.prototype=y===null?Object.create(y):(x.prototype=y.prototype,new x)}}();Object.defineProperty(U,"__esModule",{value:!0}),U.GridLayout=void 0;var j=z(8273),R=z(46253),A=function(N){B(L,N);function L(y){var x=N.call(this)||this;return x.begin=[0,0],x.preventOverlap=!0,x.preventOverlapPadding=10,x.condense=!1,x.sortBy="degree",x.nodes=[],x.edges=[],x.width=300,x.height=300,x.row=0,x.col=0,x.cellWidth=0,x.cellHeight=0,x.cellUsed={},x.id2manPos={},x.onLayoutEnd=function(){},x.updateCfg(y),x}return L.prototype.getDefaultCfg=function(){return{begin:[0,0],preventOverlap:!0,preventOverlapPadding:10,condense:!1,rows:void 0,cols:void 0,position:void 0,sortBy:"degree",nodeSize:30}},L.prototype.execute=function(){var y=this,x=y.nodes,v=y.edges,g=y.begin,d=x.length;if(d===0)return y.onLayoutEnd&&y.onLayoutEnd(),{nodes:x,edges:v};if(d===1)return x[0].x=g[0],x[0].y=g[1],y.onLayoutEnd&&y.onLayoutEnd(),{nodes:x,edges:v};var _=y.sortBy,E=y.width,w=y.height,T=y.condense,k=y.preventOverlapPadding,b=y.preventOverlap,m=y.nodeSpacing,$=y.nodeSize,W=[];x.forEach(function(pe){W.push(pe)});var X={};if(W.forEach(function(pe,Me){X[pe.id]=Me}),(_==="degree"||!(0,j.isString)(_)||W[0][_]===void 0)&&(_="degree",(0,j.isNaN)(x[0].degree))){var H=(0,j.getDegree)(W.length,X,v);W.forEach(function(pe,Me){pe.degree=H[Me].all})}W.sort(function(pe,Me){return Me[_]-pe[_]}),!E&&typeof window!="undefined"&&(E=window.innerWidth),!w&&typeof window!="undefined"&&(w=window.innerHeight);var Q=y.rows,q=y.cols!=null?y.cols:y.columns;if(y.cells=d,Q!=null&&q!=null?(y.rows=Q,y.cols=q):Q!=null&&q==null?(y.rows=Q,y.cols=Math.ceil(y.cells/y.rows)):Q==null&&q!=null?(y.cols=q,y.rows=Math.ceil(y.cells/y.cols)):(y.splits=Math.sqrt(y.cells*y.height/y.width),y.rows=Math.round(y.splits),y.cols=Math.round(y.width/y.height*y.splits)),y.rows=Math.max(y.rows,1),y.cols=Math.max(y.cols,1),y.cols*y.rows>y.cells){var J=y.small(),te=y.large();(J-1)*te>=y.cells?y.small(J-1):(te-1)*J>=y.cells&&y.large(te-1)}else for(;y.cols*y.rows=y.cells?y.large(te+1):y.small(J+1)}if(y.cellWidth=E/y.cols,y.cellHeight=w/y.rows,T&&(y.cellWidth=0,y.cellHeight=0),b||m){var fe=(0,j.getFuncByUnknownType)(10,m),de=(0,j.getFuncByUnknownType)(30,$,!1);W.forEach(function(pe){(!pe.x||!pe.y)&&(pe.x=0,pe.y=0);var Me=de(pe)||30,De,Ue;(0,j.isArray)(Me)?(De=Me[0],Ue=Me[1]):(De=Me,Ue=Me);var nt=fe!==void 0?fe(pe):k,Ze=De+nt,ht=Ue+nt;y.cellWidth=Math.max(y.cellWidth,Ze),y.cellHeight=Math.max(y.cellHeight,ht)})}y.cellUsed={},y.row=0,y.col=0,y.id2manPos={};for(var Te=0;Te=x&&(y.col=0,y.row++)},L.prototype.getPos=function(y){var x=this,v=x.begin,g=x.cellWidth,d=x.cellHeight,_,E,w=x.id2manPos[y.id];if(w)_=w.col*g+g/2+v[0],E=w.row*d+d/2+v[1];else{for(;x.used(x.row,x.col);)x.moveToNextCell();_=x.col*g+g/2+v[0],E=x.row*d+d/2+v[1],x.use(x.row,x.col),x.moveToNextCell()}y.x=_,y.y=E},L.prototype.getType=function(){return"grid"},L}(R.Base);U.GridLayout=A},64649:function(or,U,z){"use strict";var B=this&&this.__createBinding||(Object.create?function(H,Q,q,J){J===void 0&&(J=q);var te=Object.getOwnPropertyDescriptor(Q,q);(!te||("get"in te?!Q.__esModule:te.writable||te.configurable))&&(te={enumerable:!0,get:function(){return Q[q]}}),Object.defineProperty(H,J,te)}:function(H,Q,q,J){J===void 0&&(J=q),H[J]=Q[q]}),j=this&&this.__exportStar||function(H,Q){for(var q in H)q!=="default"&&!Object.prototype.hasOwnProperty.call(Q,q)&&B(Q,H,q)};Object.defineProperty(U,"__esModule",{value:!0}),U.ERLayout=U.ForceAtlas2Layout=U.ComboCombinedLayout=U.ComboForceLayout=U.GForceGPULayout=U.FruchtermanGPULayout=U.FruchtermanLayout=U.MDSLayout=U.ConcentricLayout=U.RadialLayout=U.DagreCompoundLayout=U.DagreLayout=U.CircularLayout=U.ForceLayout=U.Force2Layout=U.GForceLayout=U.RandomLayout=U.GridLayout=U.Layouts=U.Layout=void 0;var R=z(74294);Object.defineProperty(U,"GridLayout",{enumerable:!0,get:function(){return R.GridLayout}});var A=z(26729);Object.defineProperty(U,"RandomLayout",{enumerable:!0,get:function(){return A.RandomLayout}});var N=z(46260);Object.defineProperty(U,"GForceLayout",{enumerable:!0,get:function(){return N.GForceLayout}});var L=z(38129);Object.defineProperty(U,"Force2Layout",{enumerable:!0,get:function(){return L.Force2Layout}});var y=z(64180);Object.defineProperty(U,"ForceLayout",{enumerable:!0,get:function(){return y.ForceLayout}});var x=z(93959);Object.defineProperty(U,"CircularLayout",{enumerable:!0,get:function(){return x.CircularLayout}});var v=z(2);Object.defineProperty(U,"DagreLayout",{enumerable:!0,get:function(){return v.DagreLayout}});var g=z(77620);Object.defineProperty(U,"DagreCompoundLayout",{enumerable:!0,get:function(){return g.DagreCompoundLayout}});var d=z(90106);Object.defineProperty(U,"RadialLayout",{enumerable:!0,get:function(){return d.RadialLayout}});var _=z(98162);Object.defineProperty(U,"ConcentricLayout",{enumerable:!0,get:function(){return _.ConcentricLayout}});var E=z(98204);Object.defineProperty(U,"MDSLayout",{enumerable:!0,get:function(){return E.MDSLayout}});var w=z(23826);Object.defineProperty(U,"FruchtermanLayout",{enumerable:!0,get:function(){return w.FruchtermanLayout}});var T=z(81822);Object.defineProperty(U,"FruchtermanGPULayout",{enumerable:!0,get:function(){return T.FruchtermanGPULayout}});var k=z(86043);Object.defineProperty(U,"GForceGPULayout",{enumerable:!0,get:function(){return k.GForceGPULayout}});var b=z(48133);Object.defineProperty(U,"ComboForceLayout",{enumerable:!0,get:function(){return b.ComboForceLayout}});var m=z(6412);Object.defineProperty(U,"ComboCombinedLayout",{enumerable:!0,get:function(){return m.ComboCombinedLayout}});var $=z(16919);Object.defineProperty(U,"ForceAtlas2Layout",{enumerable:!0,get:function(){return $.ForceAtlas2Layout}});var W=z(40311);Object.defineProperty(U,"ERLayout",{enumerable:!0,get:function(){return W.ERLayout}});var X=z(99745);Object.defineProperty(U,"Layout",{enumerable:!0,get:function(){return X.Layout}}),Object.defineProperty(U,"Layouts",{enumerable:!0,get:function(){return X.Layouts}}),j(z(2230),U)},99745:function(or,U,z){"use strict";Object.defineProperty(U,"__esModule",{value:!0}),U.Layouts=U.Layout=void 0;var B=z(39464),j=z(74294),R=z(26729),A=z(38129),N=z(46260),L=z(64180),y=z(93959),x=z(2),v=z(90106),g=z(98162),d=z(98204),_=z(23826),E=z(81822),w=z(86043),T=z(48133),k=z(6412),b=z(16919),m=z(40311),$=z(77620),W=z(8273),X=function(){function H(Q){var q=(0,B.getLayoutByName)(Q.type);this.layoutInstance=new q(Q)}return H.prototype.layout=function(Q){return this.layoutInstance.layout(Q)},H.prototype.updateCfg=function(Q){this.layoutInstance.updateCfg(Q)},H.prototype.init=function(Q){this.correctLayers(Q.nodes),this.layoutInstance.init(Q)},H.prototype.correctLayers=function(Q){if(!!(Q==null?void 0:Q.length)){var q=Infinity,J=[];if(Q.forEach(function(fe){(0,W.isString)(fe.layer)&&(fe.layer=parseInt(fe.layer,10)),!(fe.layer===void 0||isNaN(fe.layer))&&(J.push(fe),fe.layerk[0]?k[0]:te-k[0],Te=fe-k[1]>k[1]?k[1]:fe-k[1];de===0&&(de=te/2),Te===0&&(Te=fe/2);var Se=Te>de?de:Te,Ie=Math.max.apply(Math,J),be=[];J.forEach(function(Ct,_t){E.unitRadius||(E.unitRadius=Se/Ie),be[_t]=Ct*E.unitRadius}),E.radii=be;var pe=E.eIdealDisMatrix();E.eIdealDistances=pe;var Me=y(pe);E.weights=Me;var De=new N.default({linkDistance:b,distances:pe}),Ue=De.layout();Ue.forEach(function(Ct){(0,R.isNaN)(Ct[0])&&(Ct[0]=Math.random()*b),(0,R.isNaN)(Ct[1])&&(Ct[1]=Math.random()*b)}),E.positions=Ue,Ue.forEach(function(Ct,_t){w[_t].x=Ct[0]+k[0],w[_t].y=Ct[1]+k[1]}),Ue.forEach(function(Ct){Ct[0]-=Ue[X][0],Ct[1]-=Ue[X][1]}),E.run();var nt=E.preventOverlap,Ze=E.nodeSize,ht,Rt=E.strictRadial;if(nt){var tr=E.nodeSpacing,Qe;(0,R.isNumber)(tr)?Qe=function(){return tr}:(0,R.isFunction)(tr)?Qe=tr:Qe=function(){return 0},Ze?(0,R.isArray)(Ze)?ht=function(Ct){var _t=Ze[0]>Ze[1]?Ze[0]:Ze[1];return _t+Qe(Ct)}:ht=function(Ct){return Ze+Qe(Ct)}:ht=function(Ct){if(Ct.size){if((0,R.isArray)(Ct.size)){var _t=Ct.size[0]>Ct.size[1]?Ct.size[0]:Ct.size[1];return _t+Qe(Ct)}if((0,R.isObject)(Ct.size)){var _t=Ct.size.width>Ct.size.height?Ct.size.width:Ct.size.height;return _t+Qe(Ct)}return Ct.size+Qe(Ct)}return 10+Qe(Ct)};var lt={nodes:w,nodeSizeFunc:ht,adjMatrix:H,positions:Ue,radii:be,height:fe,width:te,strictRadial:Rt,focusID:X,iterations:E.maxPreventOverlapIteration||200,k:Ue.length/4.5},St=new L.default(lt);Ue=St.layout()}return Ue.forEach(function(Ct,_t){w[_t].x=Ct[0]+k[0],w[_t].y=Ct[1]+k[1]}),E.onLayoutEnd&&E.onLayoutEnd(),{nodes:w,edges:T}},_.prototype.run=function(){for(var E=this,w=E.maxIteration,T=E.positions||[],k=E.weights||[],b=E.eIdealDistances||[],m=E.radii||[],$=0;$<=w;$++){var W=$/w;E.oneIteration(W,T,m,b,k)}},_.prototype.oneIteration=function(E,w,T,k,b){var m=this,$=1-E,W=m.focusIndex;w.forEach(function(X,H){var Q=v(X,[0,0]),q=Q===0?0:1/Q;if(H!==W){var J=0,te=0,fe=0;w.forEach(function(Te,Se){if(H!==Se){var Ie=v(X,Te),be=Ie===0?0:1/Ie,pe=k[Se][H];fe+=b[H][Se],J+=b[H][Se]*(Te[0]+pe*(X[0]-Te[0])*be),te+=b[H][Se]*(Te[1]+pe*(X[1]-Te[1])*be)}});var de=T[H]===0?0:1/T[H];fe*=$,fe+=E*de*de,J*=$,J+=E*de*X[0]*q,X[0]=J/fe,te*=$,te+=E*de*X[1]*q,X[1]=te/fe}})},_.prototype.eIdealDisMatrix=function(){var E=this,w=E.nodes;if(!w)return[];var T=E.distances,k=E.linkDistance,b=E.radii||[],m=E.unitRadius||50,$=[];return T&&T.forEach(function(W,X){var H=[];W.forEach(function(Q,q){if(X===q)H.push(0);else if(b[X]===b[q])if(E.sortBy==="data")H.push(Q*(Math.abs(X-q)*E.sortStrength)/(b[X]/m));else if(E.sortBy){var J=w[X][E.sortBy]||0,te=w[q][E.sortBy]||0;(0,R.isString)(J)&&(J=J.charCodeAt(0)),(0,R.isString)(te)&&(te=te.charCodeAt(0)),H.push(Q*(Math.abs(J-te)*E.sortStrength)/(b[X]/m))}else H.push(Q*k/(b[X]/m));else{var fe=(k+m)/2;H.push(Q*fe)}}),$.push(H)}),$},_.prototype.handleInfinity=function(E,w,T){for(var k=E.length,b=0;bT?E[w][k]:T);return T},_.prototype.getType=function(){return"radial"},_}(A.Base);U.RadialLayout=g},78614:function(or,U){"use strict";Object.defineProperty(U,"__esModule",{value:!0});var z=800,B=function(){function j(R){this.disp=[],this.positions=R.positions,this.adjMatrix=R.adjMatrix,this.focusID=R.focusID,this.radii=R.radii,this.iterations=R.iterations||10,this.height=R.height||10,this.width=R.width||10,this.speed=R.speed||100,this.gravity=R.gravity||10,this.nodeSizeFunc=R.nodeSizeFunc,this.k=R.k||5,this.strictRadial=R.strictRadial,this.nodes=R.nodes}return j.prototype.layout=function(){var R=this,A=R.positions,N=[],L=R.iterations,y=R.width/10;R.maxDisplace=y,R.disp=N;for(var x=0;x_?1:-1;E=.01*k,w=.01*k}if(TMath.PI/2&&($-=Math.PI/2,k*=-1,b*=-1);var W=Math.cos($)*m;d.x=k*W,d.y=b*W});var g=R.radii;A.forEach(function(d,_){if(_!==x){var E=Math.sqrt(N[_].x*N[_].x+N[_].y*N[_].y);if(E>0&&_!==x){var w=Math.min(v*(L/z),E);if(d[0]+=N[_].x/E*w,d[1]+=N[_].y/E*w,y){var T=d[0]-A[x][0],k=d[1]-A[x][1],b=Math.sqrt(T*T+k*k);T=T/b*g[_],k=k/b*g[_],d[0]=A[x][0]+T,d[1]=A[x][1]+k}}}})},j}();U.default=B},26729:function(or,U,z){"use strict";var B=this&&this.__extends||function(){var A=function(N,L){return A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,x){y.__proto__=x}||function(y,x){for(var v in x)Object.prototype.hasOwnProperty.call(x,v)&&(y[v]=x[v])},A(N,L)};return function(N,L){if(typeof L!="function"&&L!==null)throw new TypeError("Class extends value "+String(L)+" is not a constructor or null");A(N,L);function y(){this.constructor=N}N.prototype=L===null?Object.create(L):(y.prototype=L.prototype,new y)}}();Object.defineProperty(U,"__esModule",{value:!0}),U.RandomLayout=void 0;var j=z(46253),R=function(A){B(N,A);function N(L){var y=A.call(this)||this;return y.center=[0,0],y.width=300,y.height=300,y.nodes=[],y.edges=[],y.onLayoutEnd=function(){},y.updateCfg(L),y}return N.prototype.getDefaultCfg=function(){return{center:[0,0],width:300,height:300}},N.prototype.execute=function(){var L=this,y=L.nodes,x=.9,v=L.center;return!L.width&&typeof window!="undefined"&&(L.width=window.innerWidth),!L.height&&typeof window!="undefined"&&(L.height=window.innerHeight),y&&y.forEach(function(g){g.x=(Math.random()-.5)*x*L.width+v[0],g.y=(Math.random()-.5)*x*L.height+v[1]}),L.onLayoutEnd&&L.onLayoutEnd(),{nodes:y,edges:this.edges}},N.prototype.getType=function(){return"random"},N}(j.Base);U.RandomLayout=R},2230:function(or,U){"use strict";Object.defineProperty(U,"__esModule",{value:!0})},39464:function(or,U,z){"use strict";var B=this&&this.__extends||function(){var x=function(v,g){return x=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,_){d.__proto__=_}||function(d,_){for(var E in _)Object.prototype.hasOwnProperty.call(_,E)&&(d[E]=_[E])},x(v,g)};return function(v,g){if(typeof g!="function"&&g!==null)throw new TypeError("Class extends value "+String(g)+" is not a constructor or null");x(v,g);function d(){this.constructor=v}v.prototype=g===null?Object.create(g):(d.prototype=g.prototype,new d)}}();Object.defineProperty(U,"__esModule",{value:!0}),U.getLayoutByName=U.unRegisterLayout=U.registerLayout=void 0;var j=z(46253),R=z(8273),A=new Map,N=function(x,v){if(A.get(x)&&console.warn("The layout with the name ".concat(x," exists already, it will be overridden")),(0,R.isObject)(v)){var g=function(d){B(_,d);function _(E){var w=this,T;w=d.call(this)||this;var k=w,b={},m=Object.assign({},k.getDefaultCfg(),((T=v.getDefaultCfg)===null||T===void 0?void 0:T.call(v))||{});return Object.assign(b,m,v,E),Object.keys(b).forEach(function($){var W=b[$];k[$]=W}),w}return _}(j.Base);A.set(x,g)}else A.set(x,v);return A.get(x)};U.registerLayout=N;var L=function(x){A.has(x)&&A.delete(x)};U.unRegisterLayout=L;var y=function(x){return A.has(x)?A.get(x):null};U.getLayoutByName=y},92272:function(or,U){"use strict";Object.defineProperty(U,"__esModule",{value:!0}),U.isArray=void 0,U.isArray=Array.isArray},72612:function(or,U,z){"use strict";Object.defineProperty(U,"__esModule",{value:!0}),U.getFuncByUnknownType=U.getFunc=U.isFunction=void 0;var B=z(8273),j=z(5049),R=function(L){return typeof L=="function"};U.isFunction=R;var A=function(L,y,x){var v;return x?v=x:(0,j.isNumber)(L)?v=function(){return L}:v=function(){return y},v};U.getFunc=A;var N=function(L,y,x){return x===void 0&&(x=!0),!y&&y!==0?function(v){return v.size?(0,B.isArray)(v.size)?v.size[0]>v.size[1]?v.size[0]:v.size[1]:(0,B.isObject)(v.size)?v.size.width>v.size.height?v.size.width:v.size.height:v.size:L}:(0,U.isFunction)(y)?y:(0,j.isNumber)(y)?function(){return y}:(0,B.isArray)(y)?function(){if(x){var v=Math.max.apply(Math,y);return isNaN(v)?L:v}return y}:(0,B.isObject)(y)?function(){if(x){var v=Math.max(y.width,y.height);return isNaN(v)?L:v}return[y.width,y.height]}:function(){return L}};U.getFuncByUnknownType=N},38342:function(or,U,z){"use strict";Object.defineProperty(U,"__esModule",{value:!0}),U.arrayToTextureData=U.attributesToTextureData=U.buildTextureDataWithTwoEdgeAttr=U.buildTextureData=U.proccessToFunc=void 0;var B=z(8273),j=z(64446),R=function(x,v){var g;return x?(0,B.isNumber)(x)?g=function(){return x}:g=x:g=function(){return v||1},g};U.proccessToFunc=R;var A=function(x,v){var g=[],d=[],_={},E=0;for(E=0;E$[X][Q]+$[Q][H]&&($[X][H]=$[X][Q]+$[Q][H]);return $};U.floydWarshall=y;var x=function(m,$){var W=m.nodes,X=m.edges,H=[],Q={};if(!W)throw new Error("invalid nodes data!");return W&&W.forEach(function(q,J){Q[q.id]=J;var te=[];H.push(te)}),X==null||X.forEach(function(q){var J=(0,U.getEdgeTerminal)(q,"source"),te=(0,U.getEdgeTerminal)(q,"target"),fe=Q[J],de=Q[te];fe===void 0||de===void 0||(H[fe][de]=1,$||(H[de][fe]=1))}),H};U.getAdjMatrix=x;var v=function(m,$){var W=[];return m.forEach(function(X){var H=[];X.forEach(function(Q){H.push(Q*$)}),W.push(H)}),W};U.scaleMatrix=v;var g=function(m,$){if(m&&m.children){for(var W=m.children.length-1;W>=0;W--)if(!g(m.children[W],$))return}return!!$(m)},d=function(m,$){typeof $=="function"&&g(m,$)};U.traverseTreeUp=d;var _=function(m){var $=Infinity,W=Infinity,X=-Infinity,H=-Infinity;return m.forEach(function(Q){var q=Q.size;(0,B.isArray)(q)?q.length===1&&(q=[q[0],q[0]]):(0,j.isNumber)(q)?q=[q,q]:(q===void 0||isNaN(q))&&(q=[30,30]);var J=[q[0]/2,q[1]/2],te=Q.x-J[0],fe=Q.x+J[0],de=Q.y-J[1],Te=Q.y+J[1];$>te&&($=te),W>de&&(W=de),X0?je.set(Ce,Xe):je.delete(Ce))}function x(je,Ce,Xe,ut){var ot=String(Ce),bt=String(Xe);if(!je&&ot>bt){var Xt=ot;ot=bt,bt=Xt}return ot+N.EDGE_KEY_DELIM+bt+N.EDGE_KEY_DELIM+(ut===void 0?N.DEFAULT_EDGE_NAME:ut)}function v(je,Ce,Xe,ut){var ot=String(Ce),bt=String(Xe),Xt={v:Ce,w:Xe};if(!je&&ot>bt){var wr=Xt.v;Xt.v=Xt.w,Xt.w=wr}return ut!==void 0&&(Xt.name=ut),Xt}function g(je,Ce){return x(je,Ce.v,Ce.w,Ce.name)}function d(je){return typeof je=="function"}var _=function(Ce){return Ce.nodes().map(function(Xe){var ut=Ce.node(Xe),ot=Ce.parent(Xe),bt={id:Xe,value:ut,parent:ot};return bt.value===void 0&&delete bt.value,bt.parent===void 0&&delete bt.parent,bt})},E=function(Ce){return Ce.edges().map(function(Xe){var ut=Ce.edge(Xe),ot={v:Xe.v,w:Xe.w,value:ut,name:Xe.name};return ot.name===void 0&&delete ot.name,ot.value===void 0&&delete ot.value,ot})},w=function(Ce){var Xe={options:{directed:Ce.isDirected(),multigraph:Ce.isMultigraph(),compound:Ce.isCompound()},nodes:_(Ce),edges:E(Ce),value:Ce.graph()};return Xe.value===void 0&&delete Xe.value,Xe},T=function(Ce){var Xe=new Q(Ce.options);return Ce.value!==void 0&&Xe.setGraph(Ce.value),Ce.nodes.forEach(function(ut){Xe.setNode(ut.id,ut.value),ut.parent&&Xe.setParent(ut.id,ut.parent)}),Ce.edges.forEach(function(ut){Xe.setEdge(ut.v,ut.w,ut.value,ut.name)}),Xe};function k(je,Ce){var Xe=Object.keys(je);if(Object.getOwnPropertySymbols){var ut=Object.getOwnPropertySymbols(je);Ce&&(ut=ut.filter(function(ot){return Object.getOwnPropertyDescriptor(je,ot).enumerable})),Xe.push.apply(Xe,ut)}return Xe}function b(je){for(var Ce=1;Ce0&&arguments[0]!==void 0?arguments[0]:{};$(this,je),this.directed=!0,this.multigraph=!1,this.compound=!1,this.GRAPH_NODE=N.GRAPH_NODE,this.label=void 0,this.nodeCountNum=0,this.edgeCountNum=0,this.defaultNodeLabelFn=function(){},this.defaultEdgeLabelFn=function(){},this.parentMap=void 0,this.childrenMap=void 0,this.nodesLabelMap=new Map,this.inEdgesMap=new Map,this.outEdgesMap=new Map,this.predecessorsMap=new Map,this.successorsMap=new Map,this.edgesMap=new Map,this.edgesLabelsMap=new Map,this.isDirected=function(){return Ce.directed},this.isMultigraph=function(){return Ce.multigraph},this.isCompound=function(){return Ce.compound},this.setGraph=function(ot){return Ce.label=ot,Ce},this.graph=function(){return Ce.label},this.setDefaultNodeLabel=function(ot){return d(ot)?Ce.defaultNodeLabelFn=ot:Ce.defaultNodeLabelFn=function(){return ot},Ce},this.nodeCount=function(){return Ce.nodeCountNum},this.node=function(ot){return Ce.nodesLabelMap.get(ot)},this.nodes=function(){return Array.from(Ce.nodesLabelMap.keys())},this.sources=function(){return Ce.nodes().filter(function(ot){var bt;return!((bt=Ce.inEdgesMap.get(ot))===null||bt===void 0?void 0:bt.size)})},this.sinks=function(){return Ce.nodes().filter(function(ot){var bt;return!((bt=Ce.outEdgesMap.get(ot))===null||bt===void 0?void 0:bt.size)})},this.setNodes=function(ot,bt){return ot.map(function(Xt){return Ce.setNode(Xt,bt)}),Ce},this.hasNode=function(ot){return Ce.nodesLabelMap.has(ot)},this.checkCompound=function(){if(!Ce.isCompound())throw new Error("Cannot construct parent-children relations in a non-compound graph")},this.parent=function(ot){if(Ce.isCompound()){var bt,Xt=(bt=Ce.parentMap)===null||bt===void 0?void 0:bt.get(ot);if(Xt!==Ce.GRAPH_NODE)return Xt}},this.removeFromParentsChildList=function(ot){var bt=Ce.parentMap.get(ot);Ce.childrenMap.get(bt).delete(ot)},this.setParent=function(ot,bt){var Xt,wr;Ce.checkCompound();for(var Wr=bt===void 0?Ce.GRAPH_NODE:bt,on=Ce.parent(Wr);on;){if(ot===on)throw new Error("Setting "+bt+" as parent of "+ot+" would create a cycle");on=Ce.parent(on)}bt&&Ce.setNode(bt),Ce.setNode(ot),Ce.removeFromParentsChildList(ot),(Xt=Ce.parentMap)===null||Xt===void 0||Xt.set(ot,Wr);var xn=Ce.childrenMap.get(Wr);return xn.set(ot,!0),(wr=Ce.childrenMap)===null||wr===void 0||wr.set(Wr,xn),Ce},this.children=function(ot){var bt=ot===void 0?Ce.GRAPH_NODE:ot;if(Ce.isCompound()){var Xt,wr=(Xt=Ce.childrenMap)===null||Xt===void 0?void 0:Xt.get(bt);return wr?Array.from(wr.keys()):void 0}if(bt===Ce.GRAPH_NODE)return Ce.nodes();if(ot&&Ce.hasNode(ot))return[]},this.predecessors=function(ot){var bt=Ce.predecessorsMap.get(ot);return bt?Array.from(bt.keys()):void 0},this.successors=function(ot){var bt=Ce.successorsMap.get(ot);return bt?Array.from(bt.keys()):void 0},this.neighbors=function(ot){var bt;if(!!Ce.hasNode(ot))return Array.from(new Set((bt=Ce.predecessors(ot))===null||bt===void 0?void 0:bt.concat(Ce.successors(ot))))},this.isLeaf=function(ot){var bt;if(Ce.isDirected()){var Xt;return!((Xt=Ce.successors(ot))===null||Xt===void 0?void 0:Xt.length)}return!((bt=Ce.neighbors(ot))===null||bt===void 0?void 0:bt.length)},this.filterNodes=function(ot){var bt=Ce.directed,Xt=Ce.multigraph,wr=Ce.compound,Wr=new je({directed:bt,multigraph:Xt,compound:wr});if(Wr.setGraph(Ce.graph()),Ce.nodes().forEach(function(xn){ot(xn)&&Wr.setNode(xn,Ce.node(xn))}),Ce.edges().forEach(function(xn){Wr.hasNode(xn.v)&&Wr.hasNode(xn.w)&&Wr.setEdgeObj(xn,Ce.edge(xn))}),wr){var on=function(zn){for(var Qn=Ce.parent(zn);Qn!==void 0&&!Wr.hasNode(Qn);)Qn=Ce.parent(Qn);return Qn};Wr.nodes().forEach(function(xn){Wr.setParent(xn,on(xn))})}return Wr},this.setDefaultEdgeLabel=function(ot){return d(ot)?Ce.defaultEdgeLabelFn=ot:Ce.defaultEdgeLabelFn=function(){return ot},Ce},this.edgeCount=function(){return Ce.edgeCountNum},this.setEdgeObj=function(ot,bt){return Ce.setEdge(ot.v,ot.w,bt,ot.name)},this.setPath=function(ot,bt){return ot.reduce(function(Xt,wr){return Ce.setEdge(Xt,wr,bt),wr}),Ce},this.edgeFromArgs=function(ot,bt,Xt){return Ce.edge({v:ot,w:bt,name:Xt})},this.edge=function(ot){return Ce.edgesLabelsMap.get(g(Ce.isDirected(),ot))},this.hasEdge=function(ot,bt,Xt){return Ce.edgesLabelsMap.has(g(Ce.isDirected(),{v:ot,w:bt,name:Xt}))},this.removeEdgeObj=function(ot){var bt=ot.v,Xt=ot.w,wr=ot.name;return Ce.removeEdge(bt,Xt,wr)},this.edges=function(){return Array.from(Ce.edgesMap.values())},this.inEdges=function(ot,bt){var Xt=Ce.inEdgesMap.get(ot);if(Xt)return Array.from(Xt.values()).filter(function(wr){return!bt||wr.v===bt})},this.outEdges=function(ot,bt){var Xt=Ce.outEdgesMap.get(ot);if(Xt)return Array.from(Xt.values()).filter(function(wr){return!bt||wr.w===bt})},this.nodeEdges=function(ot,bt){var Xt;if(!!Ce.hasNode(ot))return(Xt=Ce.inEdges(ot,bt))===null||Xt===void 0?void 0:Xt.concat(Ce.outEdges(ot,bt))},this.toJSON=function(){return w(Ce)},this.nodeInDegree=function(ot){var bt=Ce.inEdgesMap.get(ot);return bt?bt.size:0},this.nodeOutDegree=function(ot){var bt=Ce.outEdgesMap.get(ot);return bt?bt.size:0},this.nodeDegree=function(ot){return Ce.nodeInDegree(ot)+Ce.nodeOutDegree(ot)},this.source=function(ot){return ot.v},this.target=function(ot){return ot.w};var ut=b(b({},H),Xe);this.compound=ut.compound,this.directed=ut.directed,this.multigraph=ut.multigraph,this.compound&&(this.parentMap=new Map,this.childrenMap=new Map)}return X(je,[{key:"setNode",value:function(Xe,ut){var ot=this.nodesLabelMap,bt=this.defaultNodeLabelFn,Xt=this.isCompound,wr=this.parentMap,Wr=this.childrenMap,on=this.inEdgesMap,xn=this.outEdgesMap,zn=this.predecessorsMap,Qn=this.successorsMap;if(ot.has(Xe))return ut!==void 0&&ot.set(Xe,ut),this;if(ot.set(Xe,ut||bt(Xe)),Xt()){var ia;wr==null||wr.set(Xe,this.GRAPH_NODE),Wr==null||Wr.set(Xe,new Map),(Wr==null?void 0:Wr.has(this.GRAPH_NODE))||Wr==null||Wr.set(this.GRAPH_NODE,new Map),Wr==null||(ia=Wr.get(this.GRAPH_NODE))===null||ia===void 0||ia.set(Xe,!0)}return[on,xn,zn,Qn].forEach(function(Wa){return Wa.set(Xe,new Map)}),this.nodeCountNum+=1,this}},{key:"removeNode",value:function(Xe){var ut=this;if(this.hasNode(Xe)){var ot=function(Ba){ut.removeEdge(Ba.v,Ba.w,Ba.name)},bt=this.inEdgesMap,Xt=this.outEdgesMap,wr=this.predecessorsMap,Wr=this.successorsMap,on=this.nodesLabelMap;if(this.isCompound()){var xn,zn,Qn;this.removeFromParentsChildList(Xe),(xn=this.parentMap)===null||xn===void 0||xn.delete(Xe),(zn=this.children(Xe))===null||zn===void 0||zn.forEach(function(Ia){return ut.setParent(Ia)}),(Qn=this.childrenMap)===null||Qn===void 0||Qn.delete(Xe)}var ia=bt.get(Xe),Wa=Xt.get(Xe);Array.from(ia.values()).forEach(function(Ia){return ot(Ia)}),Array.from(Wa.values()).forEach(function(Ia){return ot(Ia)}),on.delete(Xe),bt.delete(Xe),Xt.delete(Xe),wr.delete(Xe),Wr.delete(Xe),this.nodeCountNum-=1}return this}},{key:"setEdge",value:function(Xe,ut,ot,bt){var Xt,wr,Wr=v(this.isDirected(),Xe,ut,bt),on=g(this.isDirected(),Wr),xn=Wr.v,zn=Wr.w;if(this.edgesLabelsMap.has(on))return this.edgesLabelsMap.set(on,ot),this;if(bt!==void 0&&!this.isMultigraph())throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(xn),this.setNode(zn),this.edgesLabelsMap.set(on,ot||this.defaultEdgeLabelFn(xn,zn,bt)),Object.freeze(Wr),this.edgesMap.set(on,Wr);var Qn=this.predecessorsMap.get(zn),ia=this.successorsMap.get(xn);return L(Qn,xn),L(ia,zn),(Xt=this.inEdgesMap.get(zn))===null||Xt===void 0||Xt.set(on,Wr),(wr=this.outEdgesMap.get(xn))===null||wr===void 0||wr.set(on,Wr),this.edgeCountNum+=1,this}},{key:"removeEdge",value:function(Xe,ut,ot){var bt=x(this.isDirected(),Xe,ut,ot),Xt=this.edgesMap.get(bt);if(Xt){var wr=v(this.isDirected(),Xe,ut,ot),Wr=wr.v,on=wr.w;this.edgesLabelsMap.delete(bt),this.edgesMap.delete(bt);var xn=this.predecessorsMap.get(on),zn=this.successorsMap.get(Wr);y(xn,Wr),y(zn,on),this.inEdgesMap.get(on).delete(bt),this.outEdgesMap.get(Wr).delete(bt),this.edgeCountNum-=1}return this}}]),je}();Q.fromJSON=T;function q(je){return q=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Ce){return typeof Ce}:function(Ce){return Ce&&typeof Symbol=="function"&&Ce.constructor===Symbol&&Ce!==Symbol.prototype?"symbol":typeof Ce},q(je)}function J(je,Ce){if(!(je instanceof Ce))throw new TypeError("Cannot call a class as a function")}function te(je,Ce){for(var Xe=0;Xe-1&&this.eventPool[ot].splice(Xt,1)}}},{key:"emitEvent",value:function(ot){for(var bt=arguments.length,Xt=new Array(bt>1?bt-1:0),wr=1;wr>1,((wr=ut[bt])===null||wr===void 0?void 0:wr.priority)Ce.arr[ot].priority)throw new Error("New priority is greater than current priority.Key: ".concat(Xe," Old: + ").concat(Ce.arr[ot].priority," New: ").concat(ut));Ce.arr[ot].priority=ut,Ce.innerDecrease(ot)}}),Qe=function(Ce,Xe){var ut=new Q,ot=new Map,bt=new tr,Xt;function wr(xn){var zn=xn.v===Xt?xn.w:xn.v,Qn=bt.priority(zn);if(Qn!==void 0){var ia=Xe(xn);ia0;){var on;if(Xt=bt.removeMin(),ot.has(Xt))ut.setEdge(Xt,ot.get(Xt));else{if(Wr)throw new Error("Input graph is not connected: "+Ce.graph());Wr=!0}(on=Ce.nodeEdges(Xt))===null||on===void 0||on.forEach(wr)}return ut},lt=Qe,St=function(Ce){var Xe=new Set,ut=[],ot=Ce.nodes();return ot.forEach(function(bt){for(var Xt=[],wr=[bt];wr.length>0;){var Wr=wr.pop();if(!Xe.has(Wr)){var on,xn;Xe.add(Wr),Xt.push(Wr),(on=Ce.successors(Wr))===null||on===void 0||on.forEach(function(zn){return wr.push(zn)}),(xn=Ce.predecessors(Wr))===null||xn===void 0||xn.forEach(function(zn){return wr.push(zn)})}}Xt.length&&ut.push(Xt)}),ut},Ct=St,_t=function je(Ce,Xe,ut,ot,bt,Xt){ot.includes(Xe)||(ot.push(Xe),ut||Xt.push(Xe),bt(Xe).forEach(function(wr){return je(Ce,wr,ut,ot,bt,Xt)}),ut&&Xt.push(Xe))},pt=function(Ce,Xe,ut){var ot=Array.isArray(Xe)?Xe:[Xe],bt=function(on){return Ce.isDirected()?Ce.successors(on):Ce.neighbors(on)},Xt=[],wr=[];return ot.forEach(function(Wr){if(Ce.hasNode(Wr))_t(Ce,Wr,ut==="post",wr,bt,Xt);else throw new Error("Graph does not have node: "+Wr)}),Xt},rr=pt;function xr(je,Ce){return br(je)||qt(je,Ce)||ft(je,Ce)||Vt()}function Vt(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ft(je,Ce){if(!!je){if(typeof je=="string")return Bt(je,Ce);var Xe=Object.prototype.toString.call(je).slice(8,-1);if(Xe==="Object"&&je.constructor&&(Xe=je.constructor.name),Xe==="Map"||Xe==="Set")return Array.from(je);if(Xe==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Xe))return Bt(je,Ce)}}function Bt(je,Ce){(Ce==null||Ce>je.length)&&(Ce=je.length);for(var Xe=0,ut=new Array(Ce);Xe0&&(wr=Xt.removeMin(),Wr=bt.get(wr),!(Wr&&Wr.distance===Number.POSITIVE_INFINITY));)ot(wr).forEach(on);var xn={};return Array.from(bt.entries()).forEach(function(zn){var Qn=xr(zn,2),ia=Qn[0],Wa=Qn[1];return xn[String(ia)]=Wa,xn}),xn},Sr=Ae,qr=function(Ce,Xe,ut){var ot={};return Ce.nodes().forEach(function(bt){return ot[String(bt)]=Sr(Ce,bt,Xe,ut),ot}),ot},Gr=qr,vn=function(Ce){var Xe=0,ut=[],ot=new Map,bt=[];function Xt(wr){var Wr,on={onStack:!0,lowlink:Xe,index:Xe};if(ot.set(wr,on),Xe+=1,ut.push(wr),(Wr=Ce.successors(wr))===null||Wr===void 0||Wr.forEach(function(ia){var Wa;if(ot.has(ia)){if((Wa=ot.get(ia))===null||Wa===void 0?void 0:Wa.onStack){var Ba=ot.get(ia);on.lowlink=Math.min(on.lowlink,Ba.index)}}else{Xt(ia);var Ia=ot.get(ia);on.lowlink=Math.min(on.lowlink,Ia.lowlink)}}),on.lowlink===on.index){var xn=[],zn;do{zn=ut.pop();var Qn=ot.get(zn);Qn.onStack=!1,xn.push(zn)}while(wr!==zn);bt.push(xn)}}return Ce.nodes().forEach(function(wr){ot.has(wr)||Xt(wr)}),bt},Gn=vn,mn=function(Ce){return Gn(Ce).filter(function(Xe){return Xe.length>1||Xe.length===1&&Ce.hasEdge(Xe[0],Xe[0])})},$r=mn;function gn(je){return gn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Ce){return typeof Ce}:function(Ce){return Ce&&typeof Symbol=="function"&&Ce.constructor===Symbol&&Ce!==Symbol.prototype?"symbol":typeof Ce},gn(je)}function Rr(je,Ce){for(var Xe=0;Xeje.length)&&(Ce=je.length);for(var Xe=0,ut=new Array(Ce);Xe-1:!1};z.a=R},function(U,z,B){"use strict";var j=function(R){return typeof R=="object"&&R!==null};z.a=j},function(U,z,B){"use strict";var j=B(8),R=B(2),A=Object.values?function(N){return Object.values(N)}:function(N){var L=[];return Object(j.a)(N,function(y,x){Object(R.a)(N)&&x==="prototype"||L.push(y)}),L};z.a=A},function(U,z,B){"use strict";z.a=R;function j(A,N){for(var L in N)N.hasOwnProperty(L)&&L!=="constructor"&&N[L]!==void 0&&(A[L]=N[L])}function R(A,N,L,y){return N&&j(A,N),L&&j(A,L),y&&j(A,y),A}},function(U,z,B){var j=B(35),R=["LR","RL","TB","BT","H","V"],A=["LR","RL","H"],N=function(x){return A.indexOf(x)>-1},L=R[0];U.exports=function(y,x,v){var g=x.direction||L;if(x.isHorizontal=N(g),g&&R.indexOf(g)===-1)throw new TypeError("Invalid direction: "+g);if(g===R[0])v(y,x);else if(g===R[1])v(y,x),y.right2left();else if(g===R[2])v(y,x);else if(g===R[3])v(y,x),y.bottom2top();else if(g===R[4]||g===R[5]){var d=j(y,x),_=d.left,E=d.right;v(_,x),v(E,x),x.isHorizontal?_.right2left():_.bottom2top(),E.translate(_.x-E.x,_.y-E.y),y.x=_.x,y.y=E.y;var w=y.getBoundingBox();x.isHorizontal?w.top<0&&y.translate(0,-w.top):w.left<0&&y.translate(-w.left,0)}var T=x.fixedRoot;return T===void 0&&(T=!0),T&&y.translate(-(y.x+y.width/2+y.hgap),-(y.y+y.height/2+y.vgap)),y}},function(U,z,B){var j=B(6),R=18,A=R*2,N=R,L={getId:function(g){return g.id||g.name},getPreH:function(g){return g.preH||0},getPreV:function(g){return g.preV||0},getHGap:function(g){return g.hgap||N},getVGap:function(g){return g.vgap||N},getChildren:function(g){return g.children},getHeight:function(g){return g.height||A},getWidth:function(g){var d=g.label||" ";return g.width||d.split("").length*R}};function y(v,g){var d=this;if(d.vgap=d.hgap=0,v instanceof y)return v;d.data=v;var _=g.getHGap(v),E=g.getVGap(v);return d.preH=g.getPreH(v),d.preV=g.getPreV(v),d.width=g.getWidth(v),d.height=g.getHeight(v),d.width+=d.preH,d.height+=d.preV,d.id=g.getId(v),d.x=d.y=0,d.depth=0,d.children||(d.children=[]),d.addGap(_,E),d}j.assign(y.prototype,{isRoot:function(){return this.depth===0},isLeaf:function(){return this.children.length===0},addGap:function(g,d){var _=this;_.hgap+=g,_.vgap+=d,_.width+=2*g,_.height+=2*d},eachNode:function(g){for(var d=this,_=[d],E;E=_.shift();)g(E),_=E.children.concat(_)},DFTraverse:function(g){this.eachNode(g)},BFTraverse:function(g){for(var d=this,_=[d],E;E=_.shift();)g(E),_=_.concat(E.children)},getBoundingBox:function(){var g={left:Number.MAX_VALUE,top:Number.MAX_VALUE,width:0,height:0};return this.eachNode(function(d){g.left=Math.min(g.left,d.x),g.top=Math.min(g.top,d.y),g.width=Math.max(g.width,d.x+d.width),g.height=Math.max(g.height,d.y+d.height)}),g},translate:function(g,d){g===void 0&&(g=0),d===void 0&&(d=0),this.eachNode(function(_){_.x+=g,_.y+=d,_.x+=_.preH,_.y+=_.preV})},right2left:function(){var g=this,d=g.getBoundingBox();g.eachNode(function(_){_.x=_.x-(_.x-d.left)*2-_.width}),g.translate(d.width,0)},bottom2top:function(){var g=this,d=g.getBoundingBox();g.eachNode(function(_){_.y=_.y-(_.y-d.top)*2-_.height}),g.translate(0,d.height)}});function x(v,g,d){g===void 0&&(g={}),g=j.assign({},L,g);var _=new y(v,g),E=[_],w;if(!d&&!v.collapsed){for(;w=E.shift();)if(!w.data.collapsed){var T=g.getChildren(w.data),k=T?T.length:0;if(w.children=new Array(k),T&&k)for(var b=0;b-1;)R.call(L,d,1);return L};z.a=N},function(U,z,B){"use strict";var j=B(1),R=B(24),A=function(N,L){var y=[];if(!Object(j.a)(N))return y;for(var x=-1,v=[],g=N.length;++xd[E])return 1;if(g[E]N?N:R};z.a=j},function(U,z,B){"use strict";var j=function(R,A){var N=A.toString(),L=N.indexOf(".");if(L===-1)return Math.round(R);var y=N.substr(L+1).length;return y>20&&(y=20),parseFloat(R.toFixed(y))};z.a=j},function(U,z,B){"use strict";var j=B(5),R=function(A){return Object(j.a)(A)&&A%1!=0};z.a=R},function(U,z,B){"use strict";var j=B(5),R=function(A){return Object(j.a)(A)&&A%2==0};z.a=R},function(U,z,B){"use strict";var j=B(5),R=Number.isInteger?Number.isInteger:function(A){return Object(j.a)(A)&&A%1==0};z.a=R},function(U,z,B){"use strict";var j=B(5),R=function(A){return Object(j.a)(A)&&A<0};z.a=R},function(U,z,B){"use strict";z.a=R;var j=1e-5;function R(A,N,L){return L===void 0&&(L=j),Math.abs(A-N)0};z.a=R},function(U,z,B){"use strict";var j=B(0),R=B(2);z.a=function(A,N){if(!!Object(j.a)(A)){for(var L,y=-Infinity,x=0;xy&&(L=v,y=g)}return L}}},function(U,z,B){"use strict";var j=B(0),R=B(2);z.a=function(A,N){if(!!Object(j.a)(A)){for(var L,y=Infinity,x=0;xR?(N&&(clearTimeout(N),N=null),v=_,x=j.apply(L,y),N||(L=y=null)):!N&&A.trailing!==!1&&(N=setTimeout(g,E)),x};return d.cancel=function(){clearTimeout(N),v=0,N=L=y=null},d}},function(U,z,B){"use strict";var j=B(1);z.a=function(R){return Object(j.a)(R)?Array.prototype.slice.call(R):[]}},function(U,z,B){"use strict";var j={};z.a=function(R){return R=R||"g",j[R]?j[R]+=1:j[R]=1,R+j[R]}},function(U,z,B){"use strict";z.a=function(){}},function(U,z,B){"use strict";z.a=function(j){return j}},function(U,z,B){"use strict";z.a=A;var j=B(7),R=B(1);function A(N){return Object(j.a)(N)?0:Object(R.a)(N)?N.length:Object.keys(N).length}},function(U,z,B){"use strict";z.a=W;var j=function(pe,Me){return j=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(De,Ue){De.__proto__=Ue}||function(De,Ue){for(var nt in Ue)Object.prototype.hasOwnProperty.call(Ue,nt)&&(De[nt]=Ue[nt])},j(pe,Me)};function R(pe,Me){if(typeof Me!="function"&&Me!==null)throw new TypeError("Class extends value "+String(Me)+" is not a constructor or null");j(pe,Me);function De(){this.constructor=pe}pe.prototype=Me===null?Object.create(Me):(De.prototype=Me.prototype,new De)}var A=function(){return A=Object.assign||function(Me){for(var De,Ue=1,nt=arguments.length;Ue=0;Rt--)(ht=pe[Rt])&&(Ze=(nt<3?ht(Ze):nt>3?ht(Me,De,Ze):ht(Me,De))||Ze);return nt>3&&Ze&&Object.defineProperty(Me,De,Ze),Ze}function y(pe,Me){return function(De,Ue){Me(De,Ue,pe)}}function x(pe,Me,De,Ue,nt,Ze){function ht(Vt){if(Vt!==void 0&&typeof Vt!="function")throw new TypeError("Function expected");return Vt}for(var Rt=Ue.kind,tr=Rt==="getter"?"get":Rt==="setter"?"set":"value",Qe=!Me&&pe?Ue.static?pe:pe.prototype:null,lt=Me||(Qe?Object.getOwnPropertyDescriptor(Qe,Ue.name):{}),St,Ct=!1,_t=De.length-1;_t>=0;_t--){var pt={};for(var rr in Ue)pt[rr]=rr==="access"?{}:Ue[rr];for(var rr in Ue.access)pt.access[rr]=Ue.access[rr];pt.addInitializer=function(Vt){if(Ct)throw new TypeError("Cannot add initializers after decoration has completed");Ze.push(ht(Vt||null))};var xr=(0,De[_t])(Rt==="accessor"?{get:lt.get,set:lt.set}:lt[tr],pt);if(Rt==="accessor"){if(xr===void 0)continue;if(xr===null||typeof xr!="object")throw new TypeError("Object expected");(St=ht(xr.get))&&(lt.get=St),(St=ht(xr.set))&&(lt.set=St),(St=ht(xr.init))&&nt.push(St)}else(St=ht(xr))&&(Rt==="field"?nt.push(St):lt[tr]=St)}Qe&&Object.defineProperty(Qe,Ue.name,lt),Ct=!0}function v(pe,Me,De){for(var Ue=arguments.length>2,nt=0;nt0&&Ze[Ze.length-1])&&(Qe[0]===6||Qe[0]===2)){De=0;continue}if(Qe[0]===3&&(!Ze||Qe[1]>Ze[0]&&Qe[1]=pe.length&&(pe=void 0),{value:pe&&pe[Ue++],done:!pe}}};throw new TypeError(Me?"Object is not iterable.":"Symbol.iterator is not defined.")}function m(pe,Me){var De=typeof Symbol=="function"&&pe[Symbol.iterator];if(!De)return pe;var Ue=De.call(pe),nt,Ze=[],ht;try{for(;(Me===void 0||Me-- >0)&&!(nt=Ue.next()).done;)Ze.push(nt.value)}catch(Rt){ht={error:Rt}}finally{try{nt&&!nt.done&&(De=Ue.return)&&De.call(Ue)}finally{if(ht)throw ht.error}}return Ze}function $(){for(var pe=[],Me=0;Me1||Rt(Ct,_t)})})}function Rt(Ct,_t){try{tr(Ue[Ct](_t))}catch(pt){St(Ze[0][3],pt)}}function tr(Ct){Ct.value instanceof H?Promise.resolve(Ct.value.v).then(Qe,lt):St(Ze[0][2],Ct)}function Qe(Ct){Rt("next",Ct)}function lt(Ct){Rt("throw",Ct)}function St(Ct,_t){Ct(_t),Ze.shift(),Ze.length&&Rt(Ze[0][0],Ze[0][1])}}function q(pe){var Me,De;return Me={},Ue("next"),Ue("throw",function(nt){throw nt}),Ue("return"),Me[Symbol.iterator]=function(){return this},Me;function Ue(nt,Ze){Me[nt]=pe[nt]?function(ht){return(De=!De)?{value:H(pe[nt](ht)),done:!1}:Ze?Ze(ht):ht}:Ze}}function J(pe){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var Me=pe[Symbol.asyncIterator],De;return Me?Me.call(pe):(pe=typeof b=="function"?b(pe):pe[Symbol.iterator](),De={},Ue("next"),Ue("throw"),Ue("return"),De[Symbol.asyncIterator]=function(){return this},De);function Ue(Ze){De[Ze]=pe[Ze]&&function(ht){return new Promise(function(Rt,tr){ht=pe[Ze](ht),nt(Rt,tr,ht.done,ht.value)})}}function nt(Ze,ht,Rt,tr){Promise.resolve(tr).then(function(Qe){Ze({value:Qe,done:Rt})},ht)}}function te(pe,Me){return Object.defineProperty?Object.defineProperty(pe,"raw",{value:Me}):pe.raw=Me,pe}var fe=Object.create?function(pe,Me){Object.defineProperty(pe,"default",{enumerable:!0,value:Me})}:function(pe,Me){pe.default=Me};function de(pe){if(pe&&pe.__esModule)return pe;var Me={};if(pe!=null)for(var De in pe)De!=="default"&&Object.prototype.hasOwnProperty.call(pe,De)&&T(Me,pe,De);return fe(Me,pe),Me}function Te(pe){return pe&&pe.__esModule?pe:{default:pe}}function Se(pe,Me,De,Ue){if(De==="a"&&!Ue)throw new TypeError("Private accessor was defined without a getter");if(typeof Me=="function"?pe!==Me||!Ue:!Me.has(pe))throw new TypeError("Cannot read private member from an object whose class did not declare it");return De==="m"?Ue:De==="a"?Ue.call(pe):Ue?Ue.value:Me.get(pe)}function Ie(pe,Me,De,Ue,nt){if(Ue==="m")throw new TypeError("Private method is not writable");if(Ue==="a"&&!nt)throw new TypeError("Private accessor was defined without a setter");if(typeof Me=="function"?pe!==Me||!nt:!Me.has(pe))throw new TypeError("Cannot write private member to an object whose class did not declare it");return Ue==="a"?nt.call(pe,De):nt?nt.value=De:Me.set(pe,De),De}function be(pe,Me){if(Me===null||typeof Me!="object"&&typeof Me!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof pe=="function"?Me===pe:pe.has(Me)}},function(U,z,B){"use strict";var j=B(4),R=B(9),A=B(34);z.a=function(N,L,y,x){x===void 0&&(x="...");var v=16,g=Object(A.a)(x,y),d=Object(j.a)(N)?N:Object(R.a)(N),_=L,E=[],w,T;if(Object(A.a)(N,y)<=L)return N;for(;w=d.substr(0,v),T=Object(A.a)(w,y),!(T+g>_&&T>_);)if(E.push(w),_-=T,d=d.substr(v),!d)return E.join("");for(;w=d.substr(0,1),T=Object(A.a)(w,y),!(T+g>_);)if(E.push(w),_-=T,d=d.substr(1),!d)return E.join("");return""+E.join("")+x}},function(U,z,B){"use strict";var j=function(){function R(){this.map={}}return R.prototype.has=function(A){return this.map[A]!==void 0},R.prototype.get=function(A,N){var L=this.map[A];return L===void 0?N:L},R.prototype.set=function(A,N){this.map[A]=N},R.prototype.clear=function(){this.map={}},R.prototype.delete=function(A){delete this.map[A]},R.prototype.size=function(){return Object.keys(this.map).length},R}();z.a=j},function(U,z){function B(y,x,v,g){g===void 0&&(g=[]);var d=this;d.w=y||0,d.h=x||0,d.y=v||0,d.x=0,d.c=g||[],d.cs=g.length,d.prelim=0,d.mod=0,d.shift=0,d.change=0,d.tl=null,d.tr=null,d.el=null,d.er=null,d.msel=0,d.mser=0}B.fromNode=function(y,x){if(!y)return null;var v=[];return y.children.forEach(function(g){v.push(B.fromNode(g,x))}),x?new B(y.height,y.width,y.x,v):new B(y.width,y.height,y.y,v)};function j(y,x,v){v?y.y+=x:y.x+=x,y.children.forEach(function(g){j(g,x,v)})}function R(y,x){var v=x?y.y:y.x;return y.children.forEach(function(g){v=Math.min(R(g,x),v)}),v}function A(y,x){var v=R(y,x);j(y,-v,x)}function N(y,x,v){v?x.y=y.x:x.x=y.x,y.c.forEach(function(g,d){N(g,x.children[d],v)})}function L(y,x,v){v===void 0&&(v=0),x?(y.x=v,v+=y.width):(y.y=v,v+=y.height),y.children.forEach(function(g){L(g,x,v)})}U.exports=function(y,x){x===void 0&&(x={});var v=x.isHorizontal;function g(J){if(J.cs===0){d(J);return}g(J.c[0]);for(var te=Q(k(J.c[0].el),0,null),fe=1;fefe.low&&(fe=fe.nxt);var be=Te+de.prelim+de.w-(Ie+Se.prelim);be>0&&(Ie+=be,E(J,te,fe.index,be));var pe=k(de),Me=k(Se);pe<=Me&&(de=T(de),de!==null&&(Te+=de.mod)),pe>=Me&&(Se=w(Se),Se!==null&&(Ie+=Se.mod))}!de&&!!Se?b(J,te,Se,Ie):!!de&&!Se&&m(J,te,de,Te)}function E(J,te,fe,de){J.c[te].mod+=de,J.c[te].msel+=de,J.c[te].mser+=de,X(J,te,fe,de)}function w(J){return J.cs===0?J.tl:J.c[0]}function T(J){return J.cs===0?J.tr:J.c[J.cs-1]}function k(J){return J.y+J.h}function b(J,te,fe,de){var Te=J.c[0].el;Te.tl=fe;var Se=de-fe.mod-J.c[0].msel;Te.mod+=Se,Te.prelim-=Se,J.c[0].el=J.c[te].el,J.c[0].msel=J.c[te].msel}function m(J,te,fe,de){var Te=J.c[te].er;Te.tr=fe;var Se=de-fe.mod-J.c[te].mser;Te.mod+=Se,Te.prelim-=Se,J.c[te].er=J.c[te-1].er,J.c[te].mser=J.c[te-1].mser}function $(J){J.prelim=(J.c[0].prelim+J.c[0].mod+J.c[J.cs-1].mod+J.c[J.cs-1].prelim+J.c[J.cs-1].w)/2-J.w/2}function W(J,te){te+=J.mod,J.x=J.prelim+te,H(J);for(var fe=0;fe=fe.low;)fe=fe.nxt;return{low:J,index:te,nxt:fe}}L(y,v);var q=B.fromNode(y,v);return g(q),W(q,0),N(q,y,v),A(y,v),y}},function(U,z,B){function j(d,_){d.prototype=Object.create(_.prototype),d.prototype.constructor=d,R(d,_)}function R(d,_){return R=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(w,T){return w.__proto__=T,w},R(d,_)}var A=B(11),N=B(121),L=B(17),y=B(6),x=function(d){j(_,d);function _(){return d.apply(this,arguments)||this}var E=_.prototype;return E.execute=function(){var T=this;return T.rootNode.width=0,L(T.rootNode,T.options,N)},_}(A),v={};function g(d,_){return _=y.assign({},v,_),new x(d,_).execute()}U.exports=g},function(U,z,B){var j=B(6);function R(L,y){L===void 0&&(L=0),y===void 0&&(y=[]);var x=this;x.x=x.y=0,x.leftChild=x.rightChild=null,x.height=0,x.children=y}var A={isHorizontal:!0,nodeSep:20,nodeSize:20,rankSep:200,subTreeSep:10};function N(L,y,x){x?(y.x=L.x,y.y=L.y):(y.x=L.y,y.y=L.x),L.children.forEach(function(v,g){N(v,y.children[g],x)})}U.exports=function(L,y){y===void 0&&(y={}),y=j.assign({},A,y);var x=0;function v(w){if(!w)return null;w.width=0,w.depth&&w.depth>x&&(x=w.depth);var T=w.children,k=T.length,b=new R(w.height,[]);return T.forEach(function(m,$){var W=v(m);b.children.push(W),$===0&&(b.leftChild=W),$===k-1&&(b.rightChild=W)}),b.originNode=w,b.isLeaf=w.isLeaf(),b}function g(w){if(w.isLeaf||w.children.length===0)w.drawingDepth=x;else{var T=w.children.map(function(b){return g(b)}),k=Math.min.apply(null,T);w.drawingDepth=k-1}return w.drawingDepth}var d;function _(w){w.x=w.drawingDepth*y.rankSep,w.isLeaf?(w.y=0,d&&(w.y=d.y+d.height+y.nodeSep,w.originNode.parent!==d.originNode.parent&&(w.y+=y.subTreeSep)),d=w):(w.children.forEach(function(T){_(T)}),w.y=(w.leftChild.y+w.rightChild.y)/2)}var E=v(L);return g(E),_(E),N(E,L,y.isHorizontal),L}},function(U,z,B){function j(E,w){E.prototype=Object.create(w.prototype),E.prototype.constructor=E,R(E,w)}function R(E,w){return R=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(k,b){return k.__proto__=b,k},R(E,w)}var A=B(11),N=B(123),L=B(35),y=B(6),x=["LR","RL","H"],v=x[0],g=function(E){j(w,E);function w(){return E.apply(this,arguments)||this}var T=w.prototype;return T.execute=function(){var b=this,m=b.options,$=b.rootNode;m.isHorizontal=!0;var W=m.indent,X=W===void 0?20:W,H=m.dropCap,Q=H===void 0?!0:H,q=m.direction,J=q===void 0?v:q,te=m.align;if(J&&x.indexOf(J)===-1)throw new TypeError("Invalid direction: "+J);if(J===x[0])N($,X,Q,te);else if(J===x[1])N($,X,Q,te),$.right2left();else if(J===x[2]){var fe=L($,m),de=fe.left,Te=fe.right;N(de,X,Q,te),de.right2left(),N(Te,X,Q,te);var Se=de.getBoundingBox();Te.translate(Se.width,0),$.x=Te.x-$.width/2}return $},w}(A),d={};function _(E,w){return w=y.assign({},d,w),new g(E,w).execute()}U.exports=_},function(U,z,B){var j=B(6);function R(A,N,L,y,x){var v=typeof L=="function"?L(A):L*A.depth;if(!y)try{if(A.id===A.parent.children[0].id){A.x+=v,A.y=N?N.y:0;return}}catch(_){}if(A.x+=v,N){if(A.y=N.y+j.getHeight(N,A,x),N.parent&&A.parent.id!==N.parent.id){var g=N.parent,d=g.y+j.getHeight(g,A,x);A.y=d>A.y?d:A.y}}else A.y=0}U.exports=function(A,N,L,y){var x=null;A.eachNode(function(v){R(v,x,N,L,y),x=v})}},function(U,z,B){function j(d,_){d.prototype=Object.create(_.prototype),d.prototype.constructor=d,R(d,_)}function R(d,_){return R=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(w,T){return w.__proto__=T,w},R(d,_)}var A=B(11),N=B(125),L=B(17),y=B(6),x=function(d){j(_,d);function _(){return d.apply(this,arguments)||this}var E=_.prototype;return E.execute=function(){var T=this;return L(T.rootNode,T.options,N)},_}(A),v={};function g(d,_){return _=y.assign({},v,_),new x(d,_).execute()}U.exports=g},function(U,z,B){var j=B(6);function R(L,y){var x=0;return L.children.length?L.children.forEach(function(v){x+=R(v,y)}):x=L.height,L._subTreeSep=y.getSubTreeSep(L.data),L.totalHeight=Math.max(L.height,x)+2*L._subTreeSep,L.totalHeight}function A(L){var y=L.children,x=y.length;if(x){y.forEach(function(w){A(w)});var v=y[0],g=y[x-1],d=g.y-v.y+g.height,_=0;if(y.forEach(function(w){_+=w.totalHeight}),d>L.height)L.y=v.y+d/2-L.height/2;else if(y.length!==1||L.height>_){var E=L.y+(L.height-d)/2-v.y;y.forEach(function(w){w.translate(0,E)})}else L.y=(v.y+v.height/2+g.y+g.height/2)/2-L.height/2}}var N={getSubTreeSep:function(){return 0}};U.exports=function(L,y){y===void 0&&(y={}),y=j.assign({},N,y),L.parent={x:0,width:0,height:0,y:0},L.BFTraverse(function(x){x.x=x.parent.x+x.parent.width}),L.parent=null,R(L,y),L.startY=0,L.y=L.totalHeight/2-L.height/2,L.eachNode(function(x){var v=x.children,g=v.length;if(g){var d=v[0];if(d.startY=x.startY+x._subTreeSep,g===1)d.y=x.y+x.height/2-d.height/2;else{d.y=d.startY+d.totalHeight/2-d.height/2;for(var _=1;_=0;return E?T?Math.PI*2-w:w:T?w:Math.PI*2-w}B=v;function g(d,_,E){return E?(d[0]=_[1],d[1]=-1*_[0]):(d[0]=-1*_[1],d[1]=_[0]),d}B=g},59591:function(or,U,z){var B=z(50008).default;function j(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */or.exports=j=function(){return R},or.exports.__esModule=!0,or.exports.default=or.exports;var R={},A=Object.prototype,N=A.hasOwnProperty,L=Object.defineProperty||function(Ie,be,pe){Ie[be]=pe.value},y=typeof Symbol=="function"?Symbol:{},x=y.iterator||"@@iterator",v=y.asyncIterator||"@@asyncIterator",g=y.toStringTag||"@@toStringTag";function d(Ie,be,pe){return Object.defineProperty(Ie,be,{value:pe,enumerable:!0,configurable:!0,writable:!0}),Ie[be]}try{d({},"")}catch(Ie){d=function(pe,Me,De){return pe[Me]=De}}function _(Ie,be,pe,Me){var De=be&&be.prototype instanceof T?be:T,Ue=Object.create(De.prototype),nt=new de(Me||[]);return L(Ue,"_invoke",{value:q(Ie,pe,nt)}),Ue}function E(Ie,be,pe){try{return{type:"normal",arg:Ie.call(be,pe)}}catch(Me){return{type:"throw",arg:Me}}}R.wrap=_;var w={};function T(){}function k(){}function b(){}var m={};d(m,x,function(){return this});var $=Object.getPrototypeOf,W=$&&$($(Te([])));W&&W!==A&&N.call(W,x)&&(m=W);var X=b.prototype=T.prototype=Object.create(m);function H(Ie){["next","throw","return"].forEach(function(be){d(Ie,be,function(pe){return this._invoke(be,pe)})})}function Q(Ie,be){function pe(De,Ue,nt,Ze){var ht=E(Ie[De],Ie,Ue);if(ht.type!=="throw"){var Rt=ht.arg,tr=Rt.value;return tr&&B(tr)=="object"&&N.call(tr,"__await")?be.resolve(tr.__await).then(function(Qe){pe("next",Qe,nt,Ze)},function(Qe){pe("throw",Qe,nt,Ze)}):be.resolve(tr).then(function(Qe){Rt.value=Qe,nt(Rt)},function(Qe){return pe("throw",Qe,nt,Ze)})}Ze(ht.arg)}var Me;L(this,"_invoke",{value:function(Ue,nt){function Ze(){return new be(function(ht,Rt){pe(Ue,nt,ht,Rt)})}return Me=Me?Me.then(Ze,Ze):Ze()}})}function q(Ie,be,pe){var Me="suspendedStart";return function(De,Ue){if(Me==="executing")throw new Error("Generator is already running");if(Me==="completed"){if(De==="throw")throw Ue;return Se()}for(pe.method=De,pe.arg=Ue;;){var nt=pe.delegate;if(nt){var Ze=J(nt,pe);if(Ze){if(Ze===w)continue;return Ze}}if(pe.method==="next")pe.sent=pe._sent=pe.arg;else if(pe.method==="throw"){if(Me==="suspendedStart")throw Me="completed",pe.arg;pe.dispatchException(pe.arg)}else pe.method==="return"&&pe.abrupt("return",pe.arg);Me="executing";var ht=E(Ie,be,pe);if(ht.type==="normal"){if(Me=pe.done?"completed":"suspendedYield",ht.arg===w)continue;return{value:ht.arg,done:pe.done}}ht.type==="throw"&&(Me="completed",pe.method="throw",pe.arg=ht.arg)}}}function J(Ie,be){var pe=be.method,Me=Ie.iterator[pe];if(Me===void 0)return be.delegate=null,pe==="throw"&&Ie.iterator.return&&(be.method="return",be.arg=void 0,J(Ie,be),be.method==="throw")||pe!=="return"&&(be.method="throw",be.arg=new TypeError("The iterator does not provide a '"+pe+"' method")),w;var De=E(Me,Ie.iterator,be.arg);if(De.type==="throw")return be.method="throw",be.arg=De.arg,be.delegate=null,w;var Ue=De.arg;return Ue?Ue.done?(be[Ie.resultName]=Ue.value,be.next=Ie.nextLoc,be.method!=="return"&&(be.method="next",be.arg=void 0),be.delegate=null,w):Ue:(be.method="throw",be.arg=new TypeError("iterator result is not an object"),be.delegate=null,w)}function te(Ie){var be={tryLoc:Ie[0]};1 in Ie&&(be.catchLoc=Ie[1]),2 in Ie&&(be.finallyLoc=Ie[2],be.afterLoc=Ie[3]),this.tryEntries.push(be)}function fe(Ie){var be=Ie.completion||{};be.type="normal",delete be.arg,Ie.completion=be}function de(Ie){this.tryEntries=[{tryLoc:"root"}],Ie.forEach(te,this),this.reset(!0)}function Te(Ie){if(Ie){var be=Ie[x];if(be)return be.call(Ie);if(typeof Ie.next=="function")return Ie;if(!isNaN(Ie.length)){var pe=-1,Me=function De(){for(;++pe=0;--De){var Ue=this.tryEntries[De],nt=Ue.completion;if(Ue.tryLoc==="root")return Me("end");if(Ue.tryLoc<=this.prev){var Ze=N.call(Ue,"catchLoc"),ht=N.call(Ue,"finallyLoc");if(Ze&&ht){if(this.prev=0;--Me){var De=this.tryEntries[Me];if(De.tryLoc<=this.prev&&N.call(De,"finallyLoc")&&this.prev=0;--pe){var Me=this.tryEntries[pe];if(Me.finallyLoc===be)return this.complete(Me.completion,Me.afterLoc),fe(Me),w}},catch:function(be){for(var pe=this.tryEntries.length-1;pe>=0;--pe){var Me=this.tryEntries[pe];if(Me.tryLoc===be){var De=Me.completion;if(De.type==="throw"){var Ue=De.arg;fe(Me)}return Ue}}throw new Error("illegal catch attempt")},delegateYield:function(be,pe,Me){return this.delegate={iterator:Te(be),resultName:pe,nextLoc:Me},this.method==="next"&&(this.arg=void 0),w}},R}or.exports=j,or.exports.__esModule=!0,or.exports.default=or.exports},87757:function(or,U,z){var B=z(59591)();or.exports=B;try{regeneratorRuntime=B}catch(j){typeof globalThis=="object"?globalThis.regeneratorRuntime=B:Function("r","regeneratorRuntime = r")(B)}},41685:function(or,U,z){"use strict";z.r(U),z.d(U,{forceCenter:function(){return B},forceCollide:function(){return y},forceLink:function(){return g},forceManyBody:function(){return pt},forceRadial:function(){return rr},forceSimulation:function(){return _t},forceX:function(){return xr},forceY:function(){return Vt}});function B(ft,Bt){var qt,br=1;ft==null&&(ft=0),Bt==null&&(Bt=0);function Ur(){var Ae,Hr=qt.length,Sr,qr=0,Gr=0;for(Ae=0;Aemn.index){var Pn=$r-In.x-In.vx,An=gn-In.y-In.vy,ln=Pn*Pn+An*An;ln$r+Zr||wn<$r-Zr||pn>gn+Zr||SnGr.r&&(Gr.r=Gr[vn].r)}function qr(){if(!!Bt){var Gr,vn=Bt.length,Gn;for(qt=new Array(vn),Gr=0;Gr=0&&(br=qt.slice(Ur+1),qt=qt.slice(0,Ur)),qt&&!Bt.hasOwnProperty(qt))throw new Error("unknown type: "+qt);return{type:qt,name:br}})}E.prototype=_.prototype={constructor:E,on:function(Bt,qt){var br=this._,Ur=w(Bt+"",br),Ae,Hr=-1,Sr=Ur.length;if(arguments.length<2){for(;++Hr0)for(var br=new Array(Ae),Ur=0,Ae,Hr;Ur=0&&ft._call.call(null,Bt),ft=ft._next;--m}function Me(){J=(q=fe.now())+te,m=$=0;try{pe()}finally{m=0,Ue(),J=0}}function De(){var ft=fe.now(),Bt=ft-q;Bt>X&&(te-=Bt,q=ft)}function Ue(){for(var ft,Bt=H,qt,br=Infinity;Bt;)Bt._call?(br>Bt._time&&(br=Bt._time),ft=Bt,Bt=Bt._next):(qt=Bt._next,Bt._next=null,Bt=ft?ft._next=qt:H=qt);Q=ft,nt(br)}function nt(ft){if(!m){$&&($=clearTimeout($));var Bt=ft-J;Bt>24?(ft1?(Wt==null?Sr.delete(ct):Sr.set(ct,gn(Wt)),Bt):Sr.get(ct)},find:function(ct,Wt,Er){var Dr=0,Vr=ft.length,pn,wn,Sn,In,$n;for(Er==null?Er=Infinity:Er*=Er,Dr=0;Dr1?(Gr.on(ct,Wt),Bt):Gr.on(ct)}}}function pt(){var ft,Bt,qt,br,Ur=R(-30),Ae,Hr=1,Sr=Infinity,qr=.81;function Gr($r){var gn,Rr=ft.length,ct=(0,j.Z)(ft,Qe,lt).visitAfter(Gn);for(br=$r,gn=0;gn=Sr)return;($r.data!==Bt||$r.next)&&(Wt===0&&(Wt=A(qt),Vr+=Wt*Wt),Er===0&&(Er=A(qt),Vr+=Er*Er),Vr1&&arguments[1]!==void 0?arguments[1]:{};if(!y(ne))throw new TypeError("input must be an array");if(ne.length===0)throw new TypeError("input must not be empty");var P=ae.fromIndex,S=P===void 0?0:P,C=ae.toIndex,V=C===void 0?ne.length:C;if(S<0||S>=ne.length||!Number.isInteger(S))throw new Error("fromIndex must be a positive integer smaller than length");if(V<=S||V>ne.length||!Number.isInteger(V))throw new Error("toIndex must be an integer greater than fromIndex and at most equal to length");for(var he=ne[S],xe=S+1;xehe&&(he=ne[xe]);return he}function v(ne){var ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!y(ne))throw new TypeError("input must be an array");if(ne.length===0)throw new TypeError("input must not be empty");var P=ae.fromIndex,S=P===void 0?0:P,C=ae.toIndex,V=C===void 0?ne.length:C;if(S<0||S>=ne.length||!Number.isInteger(S))throw new Error("fromIndex must be a positive integer smaller than length");if(V<=S||V>ne.length||!Number.isInteger(V))throw new Error("toIndex must be an integer greater than fromIndex and at most equal to length");for(var he=ne[S],xe=S+1;xe1&&arguments[1]!==void 0?arguments[1]:{};if(y(ne)){if(ne.length===0)throw new TypeError("input must not be empty")}else throw new TypeError("input must be an array");var P;if(ae.output!==void 0){if(!y(ae.output))throw new TypeError("output option must be an array if specified");P=ae.output}else P=new Array(ne.length);var S=v(ne),C=x(ne);if(S===C)throw new RangeError("minimum and maximum input values are equal. Cannot rescale a constant array");var V=ae.min,he=V===void 0?ae.autoMinMax?S:0:V,xe=ae.max,Ee=xe===void 0?ae.autoMinMax?C:1:xe;if(he>=Ee)throw new RangeError("min option must be smaller than max option");for(var Ne=(Ee-he)/(C-S),Et=0;Et1&&arguments[1]!==void 0?arguments[1]:{},P=ae.maxRows,S=P===void 0?15:P,C=ae.maxColumns,V=C===void 0?10:C,he=ae.maxNumSize,xe=he===void 0?8:he,Ee=ae.padMinus,Ne=Ee===void 0?"auto":Ee;return"".concat(ne.constructor.name,` { -`).concat(d,`[ -`).concat(_).concat(T(ne,S,V,xe,Ne),` -`).concat(d,`] -`).concat(d,"rows: ").concat(ne.rows,` -`).concat(d,"columns: ").concat(ne.columns,` -}`)}function T(ne,ae,P,S,C){var V=ne.rows,he=ne.columns,xe=Math.min(V,ae),Ee=Math.min(he,P),Ne=[];if(C==="auto"){C=!1;e:for(var Et=0;Et=0&&P?" ".concat(b(ne,ae-1)):b(ne,ae)).padEnd(ae)}function b(ne,ae){var P=ne.toString();if(P.length<=ae)return P;var S=ne.toFixed(ae);if(S.length>ae&&(S=ne.toFixed(Math.max(0,ae-(S.length-ae)))),S.length<=ae&&!S.startsWith("0.000")&&!S.startsWith("-0.000"))return S;var C=ne.toExponential(ae);return C.length>ae&&(C=ne.toExponential(Math.max(0,ae-(C.length-ae)))),C.slice(0)}function m(ne,ae){ne.prototype.add=function(S){return typeof S=="number"?this.addS(S):this.addM(S)},ne.prototype.addS=function(S){for(var C=0;C>S);return this},ne.prototype.signPropagatingRightShiftM=function(S){if(S=ae.checkMatrix(S),this.rows!==S.rows||this.columns!==S.columns)throw new RangeError("Matrices dimensions must be equal");for(var C=0;C>S.get(C,V));return this},ne.signPropagatingRightShift=function(S,C){var V=new ae(S);return V.signPropagatingRightShift(C)},ne.prototype.rightShift=function(S){return typeof S=="number"?this.rightShiftS(S):this.rightShiftM(S)},ne.prototype.rightShiftS=function(S){for(var C=0;C>>S);return this},ne.prototype.rightShiftM=function(S){if(S=ae.checkMatrix(S),this.rows!==S.rows||this.columns!==S.columns)throw new RangeError("Matrices dimensions must be equal");for(var C=0;C>>S.get(C,V));return this},ne.rightShift=function(S,C){var V=new ae(S);return V.rightShift(C)},ne.prototype.zeroFillRightShift=ne.prototype.rightShift,ne.prototype.zeroFillRightShiftS=ne.prototype.rightShiftS,ne.prototype.zeroFillRightShiftM=ne.prototype.rightShiftM,ne.zeroFillRightShift=ne.rightShift,ne.prototype.not=function(){for(var S=0;SS)throw new RangeError("Row index out of range")}function W(ne,ae,P){var S=P?ne.columns:ne.columns-1;if(ae<0||ae>S)throw new RangeError("Column index out of range")}function X(ne,ae){if(ae.to1DArray&&(ae=ae.to1DArray()),ae.length!==ne.columns)throw new RangeError("vector size must be the same as the number of columns");return ae}function H(ne,ae){if(ae.to1DArray&&(ae=ae.to1DArray()),ae.length!==ne.rows)throw new RangeError("vector size must be the same as the number of rows");return ae}function Q(ne,ae){if(!y(ae))throw new TypeError("row indices must be an array");for(var P=0;P=ne.rows)throw new RangeError("row indices are out of range")}function q(ne,ae){if(!y(ae))throw new TypeError("column indices must be an array");for(var P=0;P=ne.columns)throw new RangeError("column indices are out of range")}function J(ne,ae,P,S,C){if(arguments.length!==5)throw new RangeError("expected 4 arguments");if(fe("startRow",ae),fe("endRow",P),fe("startColumn",S),fe("endColumn",C),ae>P||S>C||ae<0||ae>=ne.rows||P<0||P>=ne.rows||S<0||S>=ne.columns||C<0||C>=ne.columns)throw new RangeError("Submatrix indices are out of range")}function te(ne){for(var ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,P=[],S=0;SC?(he=!0,C=S):(V=!1,he=!0);P++}return V}},{key:"isReducedEchelonForm",value:function(){for(var P=0,S=0,C=-1,V=!0,he=!1;PC?(he=!0,C=S):(V=!1,he=!0);for(var xe=S+1;xeP.get(V,C)&&(V=he);if(P.get(V,C)===0)C++;else{P.swapRows(S,V);for(var xe=P.get(S,C),Ee=C;Ee=0;)if(P.maxRow(V)===0)V--;else{for(var he=0,xe=!1;he0&&arguments[0]!==void 0?arguments[0]:{};if(typeof P!="object")throw new TypeError("options must be an object");var S=P.rows,C=S===void 0?1:S,V=P.columns,he=V===void 0?1:V;if(!Number.isInteger(C)||C<=0)throw new TypeError("rows must be a positive integer");if(!Number.isInteger(he)||he<=0)throw new TypeError("columns must be a positive integer");for(var xe=new Vt(this.rows*C,this.columns*he),Ee=0;EeS[C]&&(S[C]=this.get(C,V));return S}case"column":{for(var he=new Array(this.columns).fill(Number.NEGATIVE_INFINITY),xe=0;xehe[Ee]&&(he[Ee]=this.get(xe,Ee));return he}case void 0:{for(var Ne=this.get(0,0),Et=0;EtNe&&(Ne=this.get(Et,st));return Ne}default:throw new Error("invalid option: ".concat(P))}}},{key:"maxIndex",value:function(){de(this);for(var P=this.get(0,0),S=[0,0],C=0;CP&&(P=this.get(C,V),S[0]=C,S[1]=V);return S}},{key:"min",value:function(P){if(this.isEmpty())return NaN;switch(P){case"row":{for(var S=new Array(this.rows).fill(Number.POSITIVE_INFINITY),C=0;CS&&(S=this.get(P,C));return S}},{key:"maxRowIndex",value:function(P){$(this,P),de(this);for(var S=this.get(P,0),C=[P,0],V=1;VS&&(S=this.get(P,V),C[1]=V);return C}},{key:"minRow",value:function(P){if($(this,P),this.isEmpty())return NaN;for(var S=this.get(P,0),C=1;CS&&(S=this.get(C,P));return S}},{key:"maxColumnIndex",value:function(P){W(this,P),de(this);for(var S=this.get(0,P),C=[0,P],V=1;VS&&(S=this.get(V,P),C[0]=V);return C}},{key:"minColumn",value:function(P){if(W(this,P),this.isEmpty())return NaN;for(var S=this.get(0,P),C=1;C0&&arguments[0]!==void 0?arguments[0]:"frobenius",S=0;if(P==="max")return this.max();if(P==="frobenius"){for(var C=0;C0&&arguments[0]!==void 0?arguments[0]:{};if(typeof P!="object")throw new TypeError("options must be an object");var S=P.min,C=S===void 0?0:S,V=P.max,he=V===void 0?1:V;if(!Number.isFinite(C))throw new TypeError("min must be a number");if(!Number.isFinite(he))throw new TypeError("max must be a number");if(C>=he)throw new RangeError("min must be smaller than max");for(var xe=new Vt(this.rows,this.columns),Ee=0;Ee0&&g(Ne,{min:C,max:he,output:Ne}),xe.setRow(Ee,Ne)}return xe}},{key:"scaleColumns",value:function(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(typeof P!="object")throw new TypeError("options must be an object");var S=P.min,C=S===void 0?0:S,V=P.max,he=V===void 0?1:V;if(!Number.isFinite(C))throw new TypeError("min must be a number");if(!Number.isFinite(he))throw new TypeError("max must be a number");if(C>=he)throw new RangeError("min must be smaller than max");for(var xe=new Vt(this.rows,this.columns),Ee=0;Ee0&&arguments[0]!==void 0?arguments[0]:rr,S=0;S0&&arguments[0]!==void 0?arguments[0]:rr,S=0;SC||S<0||S>=this.columns||C<0||C>=this.columns)throw new RangeError("Argument out of range");for(var V=new Vt(P.length,C-S+1),he=0;he=this.rows)throw new RangeError("Row index out of range: ".concat(P[he]));V.set(he,xe-S,this.get(P[he],xe))}return V}},{key:"subMatrixColumn",value:function(P,S,C){if(S===void 0&&(S=0),C===void 0&&(C=this.rows-1),S>C||S<0||S>=this.rows||C<0||C>=this.rows)throw new RangeError("Argument out of range");for(var V=new Vt(C-S+1,P.length),he=0;he=this.columns)throw new RangeError("Column index out of range: ".concat(P[he]));V.set(xe-S,he,this.get(xe,P[he]))}return V}},{key:"setSubMatrix",value:function(P,S,C){if(P=Vt.checkMatrix(P),P.isEmpty())return this;var V=S+P.rows-1,he=C+P.columns-1;J(this,S,V,C,he);for(var xe=0;xe1&&arguments[1]!==void 0?arguments[1]:{};if(typeof P=="object"&&(S=P,P=void 0),typeof S!="object")throw new TypeError("options must be an object");var C=S,V=C.unbiased,he=V===void 0?!0:V,xe=C.mean,Ee=xe===void 0?this.mean(P):xe;if(typeof he!="boolean")throw new TypeError("unbiased must be a boolean");switch(P){case"row":{if(!y(Ee))throw new TypeError("mean must be an array");return De(this,he,Ee)}case"column":{if(!y(Ee))throw new TypeError("mean must be an array");return Ue(this,he,Ee)}case void 0:{if(typeof Ee!="number")throw new TypeError("mean must be a number");return nt(this,he,Ee)}default:throw new Error("invalid option: ".concat(P))}}},{key:"standardDeviation",value:function(P,S){typeof P=="object"&&(S=P,P=void 0);var C=this.variance(P,S);if(P===void 0)return Math.sqrt(C);for(var V=0;V1&&arguments[1]!==void 0?arguments[1]:{};if(typeof P=="object"&&(S=P,P=void 0),typeof S!="object")throw new TypeError("options must be an object");var C=S,V=C.center,he=V===void 0?this.mean(P):V;switch(P){case"row":{if(!y(he))throw new TypeError("center must be an array");return Ze(this,he),this}case"column":{if(!y(he))throw new TypeError("center must be an array");return ht(this,he),this}case void 0:{if(typeof he!="number")throw new TypeError("center must be a number");return Rt(this,he),this}default:throw new Error("invalid option: ".concat(P))}}},{key:"scale",value:function(P){var S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(typeof P=="object"&&(S=P,P=void 0),typeof S!="object")throw new TypeError("options must be an object");var C=S.scale;switch(P){case"row":{if(C===void 0)C=tr(this);else if(!y(C))throw new TypeError("scale must be an array");return Qe(this,C),this}case"column":{if(C===void 0)C=lt(this);else if(!y(C))throw new TypeError("scale must be an array");return St(this,C),this}case void 0:{if(C===void 0)C=Ct(this);else if(typeof C!="number")throw new TypeError("scale must be a number");return _t(this,C),this}default:throw new Error("invalid option: ".concat(P))}}},{key:"toString",value:function(P){return w(this,P)}}],[{key:"from1DArray",value:function(P,S,C){var V=P*S;if(V!==C.length)throw new RangeError("data length does not match given dimensions");for(var he=new Vt(P,S),xe=0;xe2&&arguments[2]!==void 0?arguments[2]:{};if(typeof C!="object")throw new TypeError("options must be an object");for(var V=C.random,he=V===void 0?Math.random:V,xe=new Vt(P,S),Ee=0;Ee2&&arguments[2]!==void 0?arguments[2]:{};if(typeof C!="object")throw new TypeError("options must be an object");var V=C.min,he=V===void 0?0:V,xe=C.max,Ee=xe===void 0?1e3:xe,Ne=C.random,Et=Ne===void 0?Math.random:Ne;if(!Number.isInteger(he))throw new TypeError("min must be an integer");if(!Number.isInteger(Ee))throw new TypeError("max must be an integer");if(he>=Ee)throw new RangeError("min must be smaller than max");for(var st=Ee-he,Pt=new Vt(P,S),$t=0;$t=0)if(V.data=[],Number.isInteger(C)&&C>=0)for(var he=0;he1&&arguments[1]!==void 0?arguments[1]:{};(0,A.Z)(this,P);var he=V.rows,xe=he===void 0?1:he;if(S.length%xe!=0)throw new Error("the data length is not divisible by the number of rows");return C=ae.call(this),C.rows=xe,C.columns=S.length/xe,C.data=S,C}return(0,N.Z)(P,[{key:"set",value:function(C,V,he){var xe=this._calculateIndex(C,V);return this.data[xe]=he,this}},{key:"get",value:function(C,V){var he=this._calculateIndex(C,V);return this.data[he]}},{key:"_calculateIndex",value:function(C,V){return C*this.columns+V}}]),P}(pt),Gn=function(ne){(0,j.Z)(P,ne);var ae=(0,R.Z)(P);function P(S){var C;return(0,A.Z)(this,P),C=ae.call(this),C.data=S,C.rows=S.length,C.columns=S[0].length,C}return(0,N.Z)(P,[{key:"set",value:function(C,V,he){return this.data[C][V]=he,this}},{key:"get",value:function(C,V){return this.data[C][V]}}]),P}(pt);function mn(ne,ae){if(y(ne))return ne[0]&&y(ne[0])?new Gn(ne):new vn(ne,ae);throw new Error("the argument is not an array")}var $r=function(){function ne(ae){(0,A.Z)(this,ne),ae=Gn.checkMatrix(ae);var P=ae.clone(),S=P.rows,C=P.columns,V=new Float64Array(S),he=1,xe,Ee,Ne,Et,st,Pt,$t,Ht,Br;for(xe=0;xeMath.abs(Ht[Et])&&(Et=xe);if(Et!==Ee){for(Ne=0;Ne=0;Et--){for(Ne=0;Nexe?V.set(he,xe,P.get(he,xe)):he===xe?V.set(he,xe,1):V.set(he,xe,0);return V}},{key:"upperTriangularMatrix",get:function(){for(var P=this.LU,S=P.rows,C=P.columns,V=new Vt(S,C),he=0;heMath.abs(ae)?(P=ae/ne,Math.abs(ne)*Math.sqrt(1+P*P)):ae!==0?(P=ne/ae,Math.abs(ae)*Math.sqrt(1+P*P)):0}var Rr=function(){function ne(ae){(0,A.Z)(this,ne),ae=Gn.checkMatrix(ae);var P=ae.clone(),S=ae.rows,C=ae.columns,V=new Float64Array(C),he,xe,Ee,Ne;for(Ee=0;Ee=0;Et--){for(Ne=0;Ne=0;Ee--){for(he=0;he1&&arguments[1]!==void 0?arguments[1]:{};if((0,A.Z)(this,ne),ae=Gn.checkMatrix(ae),ae.isEmpty())throw new Error("Matrix must be non-empty");var S=ae.rows,C=ae.columns,V=P.computeLeftSingularVectors,he=V===void 0?!0:V,xe=P.computeRightSingularVectors,Ee=xe===void 0?!0:xe,Ne=P.autoTranspose,Et=Ne===void 0?!1:Ne,st=Boolean(he),Pt=Boolean(Ee),$t=!1,Ht;if(S=0;_a--)if(Qt[_a]!==0){for(var So=_a+1;So=0;mi--){if(mi0;){var _n=void 0,Fo=void 0;for(_n=Ea-2;_n>=-1&&_n!==-1;_n--){var Go=Number.MIN_VALUE+Hi*Math.abs(Qt[_n]+Math.abs(Qt[_n+1]));if(Math.abs(Nr[_n])<=Go||Number.isNaN(Nr[_n])){Nr[_n]=0;break}}if(_n===Ea-2)Fo=4;else{var Va=void 0;for(Va=Ea-1;Va>=_n&&Va!==_n;Va--){var Ms=(Va!==Ea?Math.abs(Nr[Va]):0)+(Va!==_n+1?Math.abs(Nr[Va-1]):0);if(Math.abs(Qt[Va])<=Hi*Ms){Qt[Va]=0;break}}Va===_n?Fo=3:Va===Ea-1?Fo=1:(Fo=2,_n=Va)}switch(_n++,Fo){case 1:{var Ko=Nr[Ea-2];Nr[Ea-2]=0;for(var Li=Ea-2;Li>=_n;Li--){var Mo=gn(Qt[Li],Ko),ho=Qt[Li]/Mo,Gi=Ko/Mo;if(Qt[Li]=Mo,Li!==_n&&(Ko=-Gi*Nr[Li-1],Nr[Li-1]=ho*Nr[Li-1]),Pt)for(var Di=0;Di=Qt[_n+1]);){var po=Qt[_n];if(Qt[_n]=Qt[_n+1],Qt[_n+1]=po,Pt&&_nS&&he.set(xe,Ee,P.get(xe,Ee)/this.s[Ee]);for(var Ne=this.U,Et=Ne.rows,st=Ne.columns,Pt=new Vt(C,Et),$t=0;$tP&&S++;return S}},{key:"diagonal",get:function(){return Array.from(this.s)}},{key:"threshold",get:function(){return Number.EPSILON/2*Math.max(this.m,this.n)*this.s[0]}},{key:"leftSingularVectors",get:function(){return this.U}},{key:"rightSingularVectors",get:function(){return this.V}},{key:"diagonalMatrix",get:function(){return Vt.diag(this.s)}}]),ne}();function Wt(ne){var ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return ne=Gn.checkMatrix(ne),ae?new ct(ne).inverse():Er(ne,Vt.eye(ne.rows))}function Er(ne,ae){var P=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return ne=Gn.checkMatrix(ne),ae=Gn.checkMatrix(ae),P?new ct(ne).solve(ae):ne.isSquare()?new $r(ne).solve(ae):new Rr(ne).solve(ae)}function Dr(ne){if(ne=Vt.checkMatrix(ne),ne.isSquare()){if(ne.columns===0)return 1;var ae,P,S,C;if(ne.columns===2)return ae=ne.get(0,0),P=ne.get(0,1),S=ne.get(1,0),C=ne.get(1,1),ae*C-P*S;if(ne.columns===3){var V,he,xe;return V=new Sr(ne,[1,2],[1,2]),he=new Sr(ne,[1,2],[0,2]),xe=new Sr(ne,[1,2],[0,1]),ae=ne.get(0,0),P=ne.get(0,1),S=ne.get(0,2),ae*Dr(V)-P*Dr(he)+S*Dr(xe)}else return new $r(ne).determinant}else throw Error("determinant can only be calculated for a square matrix")}function Vr(ne,ae){for(var P=[],S=0;S3&&arguments[3]!==void 0?arguments[3]:1e-9,C=arguments.length>4&&arguments[4]!==void 0?arguments[4]:1e-9;if(ne>C)return new Array(ae.rows+1).fill(0);for(var V=ae.addRow(P,[0]),he=0;he1&&arguments[1]!==void 0?arguments[1]:{},P=ae.thresholdValue,S=P===void 0?1e-9:P,C=ae.thresholdError,V=C===void 0?1e-9:C;ne=Vt.checkMatrix(ne);for(var he=ne.rows,xe=new Vt(he,he),Ee=0;Ee1&&arguments[1]!==void 0?arguments[1]:Number.EPSILON;if(ne=Vt.checkMatrix(ne),ne.isEmpty())return ne.transpose();for(var P=new ct(ne,{autoTranspose:!0}),S=P.leftSingularVectors,C=P.rightSingularVectors,V=P.diagonal,he=0;heae?V[he]=1/V[he]:V[he]=0;return C.mmul(Vt.diag(V).mmul(S.transpose()))}function In(ne){var ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ne,P=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};ne=new Vt(ne);var S=!1;if(typeof ae=="object"&&!Vt.isMatrix(ae)&&!y(ae)?(P=ae,ae=ne,S=!0):ae=new Vt(ae),ne.rows!==ae.rows)throw new TypeError("Both matrices must have the same number of rows");var C=P,V=C.center,he=V===void 0?!0:V;he&&(ne=ne.center("column"),S||(ae=ae.center("column")));for(var xe=ne.transpose().mmul(ae),Ee=0;Ee1&&arguments[1]!==void 0?arguments[1]:ne,P=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};ne=new Vt(ne);var S=!1;if(typeof ae=="object"&&!Vt.isMatrix(ae)&&!y(ae)?(P=ae,ae=ne,S=!0):ae=new Vt(ae),ne.rows!==ae.rows)throw new TypeError("Both matrices must have the same number of rows");var C=P,V=C.center,he=V===void 0?!0:V,xe=C.scale,Ee=xe===void 0?!0:xe;he&&(ne.center("column"),S||ae.center("column")),Ee&&(ne.scale("column"),S||ae.scale("column"));for(var Ne=ne.standardDeviation("column",{unbiased:!0}),Et=S?Ne:ae.standardDeviation("column",{unbiased:!0}),st=ne.transpose().mmul(ae),Pt=0;Pt1&&arguments[1]!==void 0?arguments[1]:{};(0,A.Z)(this,ne);var S=P.assumeSymmetric,C=S===void 0?!1:S;if(ae=Gn.checkMatrix(ae),!ae.isSquare())throw new Error("Matrix is not a square matrix");if(ae.isEmpty())throw new Error("Matrix must be non-empty");var V=ae.columns,he=new Vt(V,V),xe=new Float64Array(V),Ee=new Float64Array(V),Ne=ae,Et,st,Pt=!1;if(C?Pt=!0:Pt=ae.isSymmetric(),Pt){for(Et=0;Et0?V.set(he,he+1,S[he]):S[he]<0&&V.set(he,he-1,S[he])}return V}}]),ne}();function Pn(ne,ae,P,S){var C,V,he,xe,Ee,Ne,Et,st;for(Ee=0;Ee0;xe--){for(st=0,he=0,Ne=0;Ne0&&(V=-V),ae[xe]=st*V,he=he-C*V,P[xe-1]=C-V,Ee=0;EeNe){en=0;do{for(en=en+1,C=P[Ne],st=(P[Ne+1]-C)/(2*ae[Ne]),Pt=gn(st,1),st<0&&(Pt=-Pt),P[Ne]=ae[Ne]/(st+Pt),P[Ne+1]=ae[Ne]*(st+Pt),$t=P[Ne+1],V=C-P[Ne],he=Ne+2;he=Ne;he--)for(hn=Br,Br=Ht,pr=Qt,C=Ht*ae[he],V=Ht*st,Pt=gn(st,ae[he]),ae[he+1]=Qt*Pt,Qt=ae[he]/Pt,Ht=st/Pt,st=Ht*P[he]-Qt*C,P[he+1]=V+Qt*(Ht*C+Qt*P[he]),Ee=0;Eekn*ta)}P[Ne]=P[Ne]+Nr,ae[Ne]=0}for(he=0;he=st;Ne--)P[Ne]=ae.get(Ne,st-1)/Pt,Ee+=P[Ne]*P[Ne];for(xe=Math.sqrt(Ee),P[st]>0&&(xe=-xe),Ee=Ee-P[st]*xe,P[st]=P[st]-xe,Et=st;Et=st;Ne--)he+=P[Ne]*ae.get(Ne,Et);for(he=he/Ee,Ne=st;Ne<=V;Ne++)ae.set(Ne,Et,ae.get(Ne,Et)-he*P[Ne])}for(Ne=0;Ne<=V;Ne++){for(he=0,Et=V;Et>=st;Et--)he+=P[Et]*ae.get(Ne,Et);for(he=he/Ee,Et=st;Et<=V;Et++)ae.set(Ne,Et,ae.get(Ne,Et)-he*P[Et])}P[st]=Pt*P[st],ae.set(st,st-1,Pt*xe)}}for(Ne=0;Ne=C+1;st--)if(ae.get(st,st-1)!==0){for(Ne=st+1;Ne<=V;Ne++)P[Ne]=ae.get(Ne,st-1);for(Et=st;Et<=V;Et++){for(xe=0,Ne=st;Ne<=V;Ne++)xe+=P[Ne]*S.get(Ne,Et);for(xe=xe/P[st]/ae.get(st,st-1),Ne=st;Ne<=V;Ne++)S.set(Ne,Et,S.get(Ne,Et)+xe*P[Ne])}}}function va(ne,ae,P,S,C){var V=ne-1,he=0,xe=ne-1,Ee=Number.EPSILON,Ne=0,Et=0,st=0,Pt=0,$t=0,Ht=0,Br=0,hn=0,Ot,Qt,pr,en,Nr,ta,kn,En,Rn,Yn,bn,je,Ce,Xe,ut;for(Ot=0;Otxe)&&(P[Ot]=C.get(Ot,Ot),ae[Ot]=0),Qt=Math.max(Ot-1,0);Qt=he;){for(en=V;en>he&&(Ht=Math.abs(C.get(en-1,en-1))+Math.abs(C.get(en,en)),Ht===0&&(Ht=Et),!(Math.abs(C.get(en,en-1))=0){for(Br=st>=0?st+Br:st-Br,P[V-1]=En+Br,P[V]=P[V-1],Br!==0&&(P[V]=En-kn/Br),ae[V-1]=0,ae[V]=0,En=C.get(V,V-1),Ht=Math.abs(En)+Math.abs(Br),st=En/Ht,Pt=Br/Ht,$t=Math.sqrt(st*st+Pt*Pt),st=st/$t,Pt=Pt/$t,Qt=V-1;Qt0)){for(Ht=Math.sqrt(Ht),Rn=en&&(Br=C.get(Nr,Nr),$t=En-Br,Ht=Rn-Br,st=($t*Ht-kn)/C.get(Nr+1,Nr)+C.get(Nr,Nr+1),Pt=C.get(Nr+1,Nr+1)-Br-$t-Ht,$t=C.get(Nr+2,Nr+1),Ht=Math.abs(st)+Math.abs(Pt)+Math.abs($t),st=st/Ht,Pt=Pt/Ht,$t=$t/Ht,!(Nr===en||Math.abs(C.get(Nr,Nr-1))*(Math.abs(Pt)+Math.abs($t))Nr+2&&C.set(Ot,Ot-3,0);for(pr=Nr;pr<=V-1&&(Xe=pr!==V-1,pr!==Nr&&(st=C.get(pr,pr-1),Pt=C.get(pr+1,pr-1),$t=Xe?C.get(pr+2,pr-1):0,En=Math.abs(st)+Math.abs(Pt)+Math.abs($t),En!==0&&(st=st/En,Pt=Pt/En,$t=$t/En)),En!==0);pr++)if(Ht=Math.sqrt(st*st+Pt*Pt+$t*$t),st<0&&(Ht=-Ht),Ht!==0){for(pr!==Nr?C.set(pr,pr-1,-Ht*En):en!==Nr&&C.set(pr,pr-1,-C.get(pr,pr-1)),st=st+Ht,En=st/Ht,Rn=Pt/Ht,Br=$t/Ht,Pt=Pt/st,$t=$t/st,Qt=pr;Qt=0;V--)if(st=P[V],Pt=ae[V],Pt===0)for(en=V,C.set(V,V,1),Ot=V-1;Ot>=0;Ot--){for(kn=C.get(Ot,Ot)-st,$t=0,Qt=en;Qt<=V;Qt++)$t=$t+C.get(Ot,Qt)*C.get(Qt,V);if(ae[Ot]<0)Br=kn,Ht=$t;else if(en=Ot,ae[Ot]===0?C.set(Ot,V,kn!==0?-$t/kn:-$t/(Ee*Et)):(En=C.get(Ot,Ot+1),Rn=C.get(Ot+1,Ot),Pt=(P[Ot]-st)*(P[Ot]-st)+ae[Ot]*ae[Ot],ta=(En*Ht-Br*$t)/Pt,C.set(Ot,V,ta),C.set(Ot+1,V,Math.abs(En)>Math.abs(Br)?(-$t-kn*ta)/En:(-Ht-Rn*ta)/Br)),ta=Math.abs(C.get(Ot,V)),Ee*ta*ta>1)for(Qt=Ot;Qt<=V;Qt++)C.set(Qt,V,C.get(Qt,V)/ta)}else if(Pt<0)for(en=V-1,Math.abs(C.get(V,V-1))>Math.abs(C.get(V-1,V))?(C.set(V-1,V-1,Pt/C.get(V,V-1)),C.set(V-1,V,-(C.get(V,V)-st)/C.get(V,V-1))):(ut=K(0,-C.get(V-1,V),C.get(V-1,V-1)-st,Pt),C.set(V-1,V-1,ut[0]),C.set(V-1,V,ut[1])),C.set(V,V-1,0),C.set(V,V,1),Ot=V-2;Ot>=0;Ot--){for(Yn=0,bn=0,Qt=en;Qt<=V;Qt++)Yn=Yn+C.get(Ot,Qt)*C.get(Qt,V-1),bn=bn+C.get(Ot,Qt)*C.get(Qt,V);if(kn=C.get(Ot,Ot)-st,ae[Ot]<0)Br=kn,$t=Yn,Ht=bn;else if(en=Ot,ae[Ot]===0?(ut=K(-Yn,-bn,kn,Pt),C.set(Ot,V-1,ut[0]),C.set(Ot,V,ut[1])):(En=C.get(Ot,Ot+1),Rn=C.get(Ot+1,Ot),je=(P[Ot]-st)*(P[Ot]-st)+ae[Ot]*ae[Ot]-Pt*Pt,Ce=(P[Ot]-st)*2*Pt,je===0&&Ce===0&&(je=Ee*Et*(Math.abs(kn)+Math.abs(Pt)+Math.abs(En)+Math.abs(Rn)+Math.abs(Br))),ut=K(En*$t-Br*Yn+Pt*bn,En*Ht-Br*bn-Pt*Yn,je,Ce),C.set(Ot,V-1,ut[0]),C.set(Ot,V,ut[1]),Math.abs(En)>Math.abs(Br)+Math.abs(Pt)?(C.set(Ot+1,V-1,(-Yn-kn*C.get(Ot,V-1)+Pt*C.get(Ot,V))/En),C.set(Ot+1,V,(-bn-kn*C.get(Ot,V)-Pt*C.get(Ot,V-1))/En)):(ut=K(-$t-Rn*C.get(Ot,V-1),-Ht-Rn*C.get(Ot,V),Br,Pt),C.set(Ot+1,V-1,ut[0]),C.set(Ot+1,V,ut[1]))),ta=Math.max(Math.abs(C.get(Ot,V-1)),Math.abs(C.get(Ot,V))),Ee*ta*ta>1)for(Qt=Ot;Qt<=V;Qt++)C.set(Qt,V-1,C.get(Qt,V-1)/ta),C.set(Qt,V,C.get(Qt,V)/ta)}for(Ot=0;Otxe)for(Qt=Ot;Qt=he;Qt--)for(Ot=he;Ot<=xe;Ot++){for(Br=0,pr=he;pr<=Math.min(Qt,xe);pr++)Br=Br+S.get(Ot,pr)*C.get(pr,Qt);S.set(Ot,Qt,Br)}}}function K(ne,ae,P,S){var C,V;return Math.abs(P)>Math.abs(S)?(C=S/P,V=P+C*S,[(ne+C*ae)/V,(ae-C*ne)/V]):(C=P/S,V=S+C*P,[(C*ne+ae)/V,(C*ae-ne)/V])}var Dt=function(){function ne(ae){if((0,A.Z)(this,ne),ae=Gn.checkMatrix(ae),!ae.isSymmetric())throw new Error("Matrix is not symmetric");var P=ae,S=P.rows,C=new Vt(S,S),V=!0,he,xe,Ee;for(xe=0;xe0,C.set(xe,xe,Math.sqrt(Math.max(Ne,0))),Ee=xe+1;Ee=0;Ne--)for(Ee=0;Ee1&&arguments[1]!==void 0?arguments[1]:{};(0,A.Z)(this,ne),ae=Gn.checkMatrix(ae);var S=P.Y,C=P.scaleScores,V=C===void 0?!1:C,he=P.maxIterations,xe=he===void 0?1e3:he,Ee=P.terminationCriteria,Ne=Ee===void 0?1e-10:Ee,Et;if(S){if(y(S)&&typeof S[0]=="number"?S=Vt.columnVector(S):S=Gn.checkMatrix(S),S.rows!==ae.rows)throw new Error("Y should have the same number of rows as X");Et=S.getColumnVector(0)}else Et=ae.getColumnVector(0);for(var st=1,Pt,$t,Ht,Br,hn=0;hnNe;hn++)Ht=ae.transpose().mmul(Et).div(Et.transpose().mmul(Et).get(0,0)),Ht=Ht.div(Ht.norm()),Pt=ae.mmul(Ht).div(Ht.transpose().mmul(Ht).get(0,0)),hn>0&&(st=Pt.clone().sub(Br).pow(2).sum()),Br=Pt.clone(),S?($t=S.transpose().mmul(Pt).div(Pt.transpose().mmul(Pt).get(0,0)),$t=$t.div($t.norm()),Et=S.mmul($t).div($t.transpose().mmul($t).get(0,0))):Et=Pt;if(S){var Ot=ae.transpose().mmul(Pt).div(Pt.transpose().mmul(Pt).get(0,0));Ot=Ot.div(Ot.norm());var Qt=ae.clone().sub(Pt.clone().mmul(Ot.transpose())),pr=Et.transpose().mmul(Pt).div(Pt.transpose().mmul(Pt).get(0,0)),en=S.clone().sub(Pt.clone().mulS(pr.get(0,0)).mmul($t.transpose()));this.t=Pt,this.p=Ot.transpose(),this.w=Ht.transpose(),this.q=$t,this.u=Et,this.s=Pt.transpose().mmul(Pt),this.xResidual=Qt,this.yResidual=en,this.betas=pr}else this.w=Ht.transpose(),this.s=Pt.transpose().mmul(Pt).sqrt(),V?this.t=Pt.clone().div(this.s.get(0,0)):this.t=Pt,this.xResidual=ae.sub(Pt.mmul(Ht.transpose()))})},48168:function(or,U,z){var B=z(39092),j={};for(var R in B)B.hasOwnProperty(R)&&(j[B[R]]=R);var A=or.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var N in A)if(A.hasOwnProperty(N)){if(!("channels"in A[N]))throw new Error("missing channels property: "+N);if(!("labels"in A[N]))throw new Error("missing channel labels property: "+N);if(A[N].labels.length!==A[N].channels)throw new Error("channel and label counts mismatch: "+N);var L=A[N].channels,y=A[N].labels;delete A[N].channels,delete A[N].labels,Object.defineProperty(A[N],"channels",{value:L}),Object.defineProperty(A[N],"labels",{value:y})}A.rgb.hsl=function(v){var g=v[0]/255,d=v[1]/255,_=v[2]/255,E=Math.min(g,d,_),w=Math.max(g,d,_),T=w-E,k,b,m;return w===E?k=0:g===w?k=(d-_)/T:d===w?k=2+(_-g)/T:_===w&&(k=4+(g-d)/T),k=Math.min(k*60,360),k<0&&(k+=360),m=(E+w)/2,w===E?b=0:m<=.5?b=T/(w+E):b=T/(2-w-E),[k,b*100,m*100]},A.rgb.hsv=function(v){var g,d,_,E,w,T=v[0]/255,k=v[1]/255,b=v[2]/255,m=Math.max(T,k,b),$=m-Math.min(T,k,b),W=function(X){return(m-X)/6/$+1/2};return $===0?E=w=0:(w=$/m,g=W(T),d=W(k),_=W(b),T===m?E=_-d:k===m?E=1/3+g-_:b===m&&(E=2/3+d-g),E<0?E+=1:E>1&&(E-=1)),[E*360,w*100,m*100]},A.rgb.hwb=function(v){var g=v[0],d=v[1],_=v[2],E=A.rgb.hsl(v)[0],w=1/255*Math.min(g,Math.min(d,_));return _=1-1/255*Math.max(g,Math.max(d,_)),[E,w*100,_*100]},A.rgb.cmyk=function(v){var g=v[0]/255,d=v[1]/255,_=v[2]/255,E,w,T,k;return k=Math.min(1-g,1-d,1-_),E=(1-g-k)/(1-k)||0,w=(1-d-k)/(1-k)||0,T=(1-_-k)/(1-k)||0,[E*100,w*100,T*100,k*100]};function x(v,g){return Math.pow(v[0]-g[0],2)+Math.pow(v[1]-g[1],2)+Math.pow(v[2]-g[2],2)}A.rgb.keyword=function(v){var g=j[v];if(g)return g;var d=Infinity,_;for(var E in B)if(B.hasOwnProperty(E)){var w=B[E],T=x(v,w);T.04045?Math.pow((g+.055)/1.055,2.4):g/12.92,d=d>.04045?Math.pow((d+.055)/1.055,2.4):d/12.92,_=_>.04045?Math.pow((_+.055)/1.055,2.4):_/12.92;var E=g*.4124+d*.3576+_*.1805,w=g*.2126+d*.7152+_*.0722,T=g*.0193+d*.1192+_*.9505;return[E*100,w*100,T*100]},A.rgb.lab=function(v){var g=A.rgb.xyz(v),d=g[0],_=g[1],E=g[2],w,T,k;return d/=95.047,_/=100,E/=108.883,d=d>.008856?Math.pow(d,1/3):7.787*d+16/116,_=_>.008856?Math.pow(_,1/3):7.787*_+16/116,E=E>.008856?Math.pow(E,1/3):7.787*E+16/116,w=116*_-16,T=500*(d-_),k=200*(_-E),[w,T,k]},A.hsl.rgb=function(v){var g=v[0]/360,d=v[1]/100,_=v[2]/100,E,w,T,k,b;if(d===0)return b=_*255,[b,b,b];_<.5?w=_*(1+d):w=_+d-_*d,E=2*_-w,k=[0,0,0];for(var m=0;m<3;m++)T=g+1/3*-(m-1),T<0&&T++,T>1&&T--,6*T<1?b=E+(w-E)*6*T:2*T<1?b=w:3*T<2?b=E+(w-E)*(2/3-T)*6:b=E,k[m]=b*255;return k},A.hsl.hsv=function(v){var g=v[0],d=v[1]/100,_=v[2]/100,E=d,w=Math.max(_,.01),T,k;return _*=2,d*=_<=1?_:2-_,E*=w<=1?w:2-w,k=(_+d)/2,T=_===0?2*E/(w+E):2*d/(_+d),[g,T*100,k*100]},A.hsv.rgb=function(v){var g=v[0]/60,d=v[1]/100,_=v[2]/100,E=Math.floor(g)%6,w=g-Math.floor(g),T=255*_*(1-d),k=255*_*(1-d*w),b=255*_*(1-d*(1-w));switch(_*=255,E){case 0:return[_,b,T];case 1:return[k,_,T];case 2:return[T,_,b];case 3:return[T,k,_];case 4:return[b,T,_];case 5:return[_,T,k]}},A.hsv.hsl=function(v){var g=v[0],d=v[1]/100,_=v[2]/100,E=Math.max(_,.01),w,T,k;return k=(2-d)*_,w=(2-d)*E,T=d*E,T/=w<=1?w:2-w,T=T||0,k/=2,[g,T*100,k*100]},A.hwb.rgb=function(v){var g=v[0]/360,d=v[1]/100,_=v[2]/100,E=d+_,w,T,k,b;E>1&&(d/=E,_/=E),w=Math.floor(6*g),T=1-_,k=6*g-w,(w&1)!=0&&(k=1-k),b=d+k*(T-d);var m,$,W;switch(w){default:case 6:case 0:m=T,$=b,W=d;break;case 1:m=b,$=T,W=d;break;case 2:m=d,$=T,W=b;break;case 3:m=d,$=b,W=T;break;case 4:m=b,$=d,W=T;break;case 5:m=T,$=d,W=b;break}return[m*255,$*255,W*255]},A.cmyk.rgb=function(v){var g=v[0]/100,d=v[1]/100,_=v[2]/100,E=v[3]/100,w,T,k;return w=1-Math.min(1,g*(1-E)+E),T=1-Math.min(1,d*(1-E)+E),k=1-Math.min(1,_*(1-E)+E),[w*255,T*255,k*255]},A.xyz.rgb=function(v){var g=v[0]/100,d=v[1]/100,_=v[2]/100,E,w,T;return E=g*3.2406+d*-1.5372+_*-.4986,w=g*-.9689+d*1.8758+_*.0415,T=g*.0557+d*-.204+_*1.057,E=E>.0031308?1.055*Math.pow(E,1/2.4)-.055:E*12.92,w=w>.0031308?1.055*Math.pow(w,1/2.4)-.055:w*12.92,T=T>.0031308?1.055*Math.pow(T,1/2.4)-.055:T*12.92,E=Math.min(Math.max(0,E),1),w=Math.min(Math.max(0,w),1),T=Math.min(Math.max(0,T),1),[E*255,w*255,T*255]},A.xyz.lab=function(v){var g=v[0],d=v[1],_=v[2],E,w,T;return g/=95.047,d/=100,_/=108.883,g=g>.008856?Math.pow(g,1/3):7.787*g+16/116,d=d>.008856?Math.pow(d,1/3):7.787*d+16/116,_=_>.008856?Math.pow(_,1/3):7.787*_+16/116,E=116*d-16,w=500*(g-d),T=200*(d-_),[E,w,T]},A.lab.xyz=function(v){var g=v[0],d=v[1],_=v[2],E,w,T;w=(g+16)/116,E=d/500+w,T=w-_/200;var k=Math.pow(w,3),b=Math.pow(E,3),m=Math.pow(T,3);return w=k>.008856?k:(w-16/116)/7.787,E=b>.008856?b:(E-16/116)/7.787,T=m>.008856?m:(T-16/116)/7.787,E*=95.047,w*=100,T*=108.883,[E,w,T]},A.lab.lch=function(v){var g=v[0],d=v[1],_=v[2],E,w,T;return E=Math.atan2(_,d),w=E*360/2/Math.PI,w<0&&(w+=360),T=Math.sqrt(d*d+_*_),[g,T,w]},A.lch.lab=function(v){var g=v[0],d=v[1],_=v[2],E,w,T;return T=_/360*2*Math.PI,E=d*Math.cos(T),w=d*Math.sin(T),[g,E,w]},A.rgb.ansi16=function(v){var g=v[0],d=v[1],_=v[2],E=1 in arguments?arguments[1]:A.rgb.hsv(v)[2];if(E=Math.round(E/50),E===0)return 30;var w=30+(Math.round(_/255)<<2|Math.round(d/255)<<1|Math.round(g/255));return E===2&&(w+=60),w},A.hsv.ansi16=function(v){return A.rgb.ansi16(A.hsv.rgb(v),v[2])},A.rgb.ansi256=function(v){var g=v[0],d=v[1],_=v[2];if(g===d&&d===_)return g<8?16:g>248?231:Math.round((g-8)/247*24)+232;var E=16+36*Math.round(g/255*5)+6*Math.round(d/255*5)+Math.round(_/255*5);return E},A.ansi16.rgb=function(v){var g=v%10;if(g===0||g===7)return v>50&&(g+=3.5),g=g/10.5*255,[g,g,g];var d=(~~(v>50)+1)*.5,_=(g&1)*d*255,E=(g>>1&1)*d*255,w=(g>>2&1)*d*255;return[_,E,w]},A.ansi256.rgb=function(v){if(v>=232){var g=(v-232)*10+8;return[g,g,g]}v-=16;var d,_=Math.floor(v/36)/5*255,E=Math.floor((d=v%36)/6)/5*255,w=d%6/5*255;return[_,E,w]},A.rgb.hex=function(v){var g=((Math.round(v[0])&255)<<16)+((Math.round(v[1])&255)<<8)+(Math.round(v[2])&255),d=g.toString(16).toUpperCase();return"000000".substring(d.length)+d},A.hex.rgb=function(v){var g=v.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!g)return[0,0,0];var d=g[0];g[0].length===3&&(d=d.split("").map(function(k){return k+k}).join(""));var _=parseInt(d,16),E=_>>16&255,w=_>>8&255,T=_&255;return[E,w,T]},A.rgb.hcg=function(v){var g=v[0]/255,d=v[1]/255,_=v[2]/255,E=Math.max(Math.max(g,d),_),w=Math.min(Math.min(g,d),_),T=E-w,k,b;return T<1?k=w/(1-T):k=0,T<=0?b=0:E===g?b=(d-_)/T%6:E===d?b=2+(_-g)/T:b=4+(g-d)/T+4,b/=6,b%=1,[b*360,T*100,k*100]},A.hsl.hcg=function(v){var g=v[1]/100,d=v[2]/100,_=1,E=0;return d<.5?_=2*g*d:_=2*g*(1-d),_<1&&(E=(d-.5*_)/(1-_)),[v[0],_*100,E*100]},A.hsv.hcg=function(v){var g=v[1]/100,d=v[2]/100,_=g*d,E=0;return _<1&&(E=(d-_)/(1-_)),[v[0],_*100,E*100]},A.hcg.rgb=function(v){var g=v[0]/360,d=v[1]/100,_=v[2]/100;if(d===0)return[_*255,_*255,_*255];var E=[0,0,0],w=g%1*6,T=w%1,k=1-T,b=0;switch(Math.floor(w)){case 0:E[0]=1,E[1]=T,E[2]=0;break;case 1:E[0]=k,E[1]=1,E[2]=0;break;case 2:E[0]=0,E[1]=1,E[2]=T;break;case 3:E[0]=0,E[1]=k,E[2]=1;break;case 4:E[0]=T,E[1]=0,E[2]=1;break;default:E[0]=1,E[1]=0,E[2]=k}return b=(1-d)*_,[(d*E[0]+b)*255,(d*E[1]+b)*255,(d*E[2]+b)*255]},A.hcg.hsv=function(v){var g=v[1]/100,d=v[2]/100,_=g+d*(1-g),E=0;return _>0&&(E=g/_),[v[0],E*100,_*100]},A.hcg.hsl=function(v){var g=v[1]/100,d=v[2]/100,_=d*(1-g)+.5*g,E=0;return _>0&&_<.5?E=g/(2*_):_>=.5&&_<1&&(E=g/(2*(1-_))),[v[0],E*100,_*100]},A.hcg.hwb=function(v){var g=v[1]/100,d=v[2]/100,_=g+d*(1-g);return[v[0],(_-g)*100,(1-_)*100]},A.hwb.hcg=function(v){var g=v[1]/100,d=v[2]/100,_=1-d,E=_-g,w=0;return E<1&&(w=(_-E)/(1-E)),[v[0],E*100,w*100]},A.apple.rgb=function(v){return[v[0]/65535*255,v[1]/65535*255,v[2]/65535*255]},A.rgb.apple=function(v){return[v[0]/255*65535,v[1]/255*65535,v[2]/255*65535]},A.gray.rgb=function(v){return[v[0]/100*255,v[0]/100*255,v[0]/100*255]},A.gray.hsl=A.gray.hsv=function(v){return[0,0,v[0]]},A.gray.hwb=function(v){return[0,100,v[0]]},A.gray.cmyk=function(v){return[0,0,0,v[0]]},A.gray.lab=function(v){return[v[0],0,0]},A.gray.hex=function(v){var g=Math.round(v[0]/100*255)&255,d=(g<<16)+(g<<8)+g,_=d.toString(16).toUpperCase();return"000000".substring(_.length)+_},A.rgb.gray=function(v){var g=(v[0]+v[1]+v[2])/3;return[g/255*100]}},12085:function(or,U,z){var B=z(48168),j=z(4111),R={},A=Object.keys(B);function N(y){var x=function(v){return v==null?v:(arguments.length>1&&(v=Array.prototype.slice.call(arguments)),y(v))};return"conversion"in y&&(x.conversion=y.conversion),x}function L(y){var x=function(v){if(v==null)return v;arguments.length>1&&(v=Array.prototype.slice.call(arguments));var g=y(v);if(typeof g=="object")for(var d=g.length,_=0;_=4&&v[3]!==1&&(g=", "+v[3]),"hwb("+v[0]+", "+v[1]+"%, "+v[2]+"%"+g+")"},L.to.keyword=function(v){return A[v.slice(0,3)]};function y(v,g,d){return Math.min(Math.max(g,v),d)}function x(v){var g=Math.round(v).toString(16).toUpperCase();return g.length<2?"0"+g:g}},6767:function(or,U,z){"use strict";var B=z(19818),j=z(12085),R=[].slice,A=["keyword","gray","hex"],N={};Object.keys(j).forEach(function(w){N[R.call(j[w].labels).sort().join("")]=w});var L={};function y(w,T){if(!(this instanceof y))return new y(w,T);if(T&&T in A&&(T=null),T&&!(T in j))throw new Error("Unknown model: "+T);var k,b;if(w==null)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(w instanceof y)this.model=w.model,this.color=w.color.slice(),this.valpha=w.valpha;else if(typeof w=="string"){var m=B.get(w);if(m===null)throw new Error("Unable to parse color from string: "+w);this.model=m.model,b=j[this.model].channels,this.color=m.value.slice(0,b),this.valpha=typeof m.value[b]=="number"?m.value[b]:1}else if(w.length){this.model=T||"rgb",b=j[this.model].channels;var $=R.call(w,0,b);this.color=E($,b),this.valpha=typeof w[b]=="number"?w[b]:1}else if(typeof w=="number")w&=16777215,this.model="rgb",this.color=[w>>16&255,w>>8&255,w&255],this.valpha=1;else{this.valpha=1;var W=Object.keys(w);"alpha"in w&&(W.splice(W.indexOf("alpha"),1),this.valpha=typeof w.alpha=="number"?w.alpha:0);var X=W.sort().join("");if(!(X in N))throw new Error("Unable to parse color from object: "+JSON.stringify(w));this.model=N[X];var H=j[this.model].labels,Q=[];for(k=0;kk?(T+.05)/(k+.05):(k+.05)/(T+.05)},level:function(w){var T=this.contrast(w);return T>=7.1?"AAA":T>=4.5?"AA":""},isDark:function(){var w=this.rgb().color,T=(w[0]*299+w[1]*587+w[2]*114)/1e3;return T<128},isLight:function(){return!this.isDark()},negate:function(){for(var w=this.rgb(),T=0;T<3;T++)w.color[T]=255-w.color[T];return w},lighten:function(w){var T=this.hsl();return T.color[2]+=T.color[2]*w,T},darken:function(w){var T=this.hsl();return T.color[2]-=T.color[2]*w,T},saturate:function(w){var T=this.hsl();return T.color[1]+=T.color[1]*w,T},desaturate:function(w){var T=this.hsl();return T.color[1]-=T.color[1]*w,T},whiten:function(w){var T=this.hwb();return T.color[1]+=T.color[1]*w,T},blacken:function(w){var T=this.hwb();return T.color[2]+=T.color[2]*w,T},grayscale:function(){var w=this.rgb().color,T=w[0]*.3+w[1]*.59+w[2]*.11;return y.rgb(T,T,T)},fade:function(w){return this.alpha(this.valpha-this.valpha*w)},opaquer:function(w){return this.alpha(this.valpha+this.valpha*w)},rotate:function(w){var T=this.hsl(),k=T.color[0];return k=(k+w)%360,k=k<0?360+k:k,T.color[0]=k,T},mix:function(w,T){if(!w||!w.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof w);var k=w.rgb(),b=this.rgb(),m=T===void 0?.5:T,$=2*m-1,W=k.alpha()-b.alpha(),X=(($*W==-1?$:($+W)/(1+$*W))+1)/2,H=1-X;return y.rgb(X*k.red()+H*b.red(),X*k.green()+H*b.green(),X*k.blue()+H*b.blue(),k.alpha()*m+b.alpha()*(1-m))}},Object.keys(j).forEach(function(w){if(A.indexOf(w)===-1){var T=j[w].channels;y.prototype[w]=function(){if(this.model===w)return new y(this);if(arguments.length)return new y(arguments,w);var k=typeof arguments[T]=="number"?T:this.valpha;return new y(_(j[this.model][w].raw(this.color)).concat(k),w)},y[w]=function(k){return typeof k=="number"&&(k=E(R.call(arguments),T)),new y(k,w)}}});function x(w,T){return Number(w.toFixed(T))}function v(w){return function(T){return x(T,w)}}function g(w,T,k){return w=Array.isArray(w)?w:[w],w.forEach(function(b){(L[b]||(L[b]=[]))[T]=k}),w=w[0],function(b){var m;return arguments.length?(k&&(b=k(b)),m=this[w](),m.color[T]=b,m):(m=this[w]().color[T],k&&(m=k(m)),m)}}function d(w){return function(T){return Math.max(0,Math.min(w,T))}}function _(w){return Array.isArray(w)?w:[w]}function E(w,T){for(var k=0;k=(Me=(Se+be)/2))?Se=Me:be=Me,(ht=J>=(De=(Ie+pe)/2))?Ie=De:pe=De,fe=de,!(de=de[Rt=ht<<1|Ze]))return fe[Rt]=Te,Q;if(Ue=+Q._x.call(null,de.data),nt=+Q._y.call(null,de.data),q===Ue&&J===nt)return Te.next=de,fe?fe[Rt]=Te:Q._root=Te,Q;do fe=fe?fe[Rt]=new Array(4):Q._root=new Array(4),(Ze=q>=(Me=(Se+be)/2))?Se=Me:be=Me,(ht=J>=(De=(Ie+pe)/2))?Ie=De:pe=De;while((Rt=ht<<1|Ze)==(tr=(nt>=De)<<1|Ue>=Me));return fe[tr]=de,fe[Rt]=Te,Q}function R(Q){var q,J,te=Q.length,fe,de,Te=new Array(te),Se=new Array(te),Ie=Infinity,be=Infinity,pe=-Infinity,Me=-Infinity;for(J=0;Jpe&&(pe=fe),deMe&&(Me=de));if(Ie>pe||be>Me)return this;for(this.cover(Ie,be).cover(pe,Me),J=0;JQ||Q>=fe||te>q||q>=de;)switch(be=(qpe||(Se=nt.y0)>Me||(Ie=nt.x1)=Rt)<<1|Q>=ht)&&(nt=De[De.length-1],De[De.length-1]=De[De.length-1-Ze],De[De.length-1-Ze]=nt)}else{var tr=Q-+this._x.call(null,Ue.data),Qe=q-+this._y.call(null,Ue.data),lt=tr*tr+Qe*Qe;if(lt=(De=(Te+Ie)/2))?Te=De:Ie=De,(Ze=Me>=(Ue=(Se+be)/2))?Se=Ue:be=Ue,q=J,!(J=J[ht=Ze<<1|nt]))return this;if(!J.length)break;(q[ht+1&3]||q[ht+2&3]||q[ht+3&3])&&(te=q,Rt=ht)}for(;J.data!==Q;)if(fe=J,!(J=J.next))return this;return(de=J.next)&&delete J.next,fe?(de?fe.next=de:delete fe.next,this):q?(de?q[ht]=de:delete q[ht],(J=q[0]||q[1]||q[2]||q[3])&&J===(q[3]||q[2]||q[1]||q[0])&&!J.length&&(te?te[Rt]=J:this._root=J),this):(this._root=de,this)}function g(Q){for(var q=0,J=Q.length;q-1},$=function(f,M){var G=this.__data__,Y=w(G,f);return Y<0?(++this.size,G.push([f,M])):G[Y][1]=M,this};function W(f){var M=-1,G=f==null?0:f.length;for(this.clear();++M-1&&f%1==0&&f-1&&f%1==0&&f<=9007199254740991},$t={};$t["[object Float32Array]"]=$t["[object Float64Array]"]=$t["[object Int8Array]"]=$t["[object Int16Array]"]=$t["[object Int32Array]"]=$t["[object Uint8Array]"]=$t["[object Uint8ClampedArray]"]=$t["[object Uint16Array]"]=$t["[object Uint32Array]"]=!0,$t["[object Arguments]"]=$t["[object Array]"]=$t["[object ArrayBuffer]"]=$t["[object Boolean]"]=$t["[object DataView]"]=$t["[object Date]"]=$t["[object Error]"]=$t["[object Function]"]=$t["[object Map]"]=$t["[object Number]"]=$t["[object Object]"]=$t["[object RegExp]"]=$t["[object Set]"]=$t["[object String]"]=$t["[object WeakMap]"]=!1;var Ht=function(f){return ae(f)&&Pt(f.length)&&!!$t[Ze(f)]},Br=function(f){return function(M){return f(M)}},hn=d(function(f,M){var G=M&&!M.nodeType&&M,Y=G&&f&&!f.nodeType&&f,re=Y&&Y.exports===G&&te.process,ie=function(){try{var le=Y&&Y.require&&Y.require("util").types;return le||re&&re.binding&&re.binding("util")}catch(ge){}}();f.exports=ie}),Ot=hn&&hn.isTypedArray,Qt=Ot?Br(Ot):Ht,pr=Object.prototype.hasOwnProperty,en=function(f,M){var G=xe(f),Y=!G&&he(f),re=!G&&!Y&&Ne(f),ie=!G&&!Y&&!re&&Qt(f),le=G||Y||re||ie,ge=le?ne(f.length,String):[],me=ge.length;for(var Le in f)!M&&!pr.call(f,Le)||le&&(Le=="length"||re&&(Le=="offset"||Le=="parent")||ie&&(Le=="buffer"||Le=="byteLength"||Le=="byteOffset")||st(Le,me))||ge.push(Le);return ge},Nr=Object.prototype,ta=function(f){var M=f&&f.constructor;return f===(typeof M=="function"&&M.prototype||Nr)},kn=function(f,M){return function(G){return f(M(G))}},En=kn(Object.keys,Object),Rn=Object.prototype.hasOwnProperty,Yn=function(f){if(!ta(f))return En(f);var M=[];for(var G in Object(f))Rn.call(f,G)&&G!="constructor"&&M.push(G);return M},bn=function(f){return f!=null&&Pt(f.length)&&!tr(f)},je=function(f){return bn(f)?en(f):Yn(f)},Ce=function(f,M){return f&&rt(M,je(M),f)},Xe=function(f){var M=[];if(f!=null)for(var G in Object(f))M.push(G);return M},ut=Object.prototype.hasOwnProperty,ot=function(f){if(!ht(f))return Xe(f);var M=ta(f),G=[];for(var Y in f)(Y!="constructor"||!M&&ut.call(f,Y))&&G.push(Y);return G},bt=function(f){return bn(f)?en(f,!0):ot(f)},Xt=function(f,M){return f&&rt(M,bt(M),f)},wr=d(function(f,M){var G=M&&!M.nodeType&&M,Y=G&&f&&!f.nodeType&&f,re=Y&&Y.exports===G?de.Buffer:void 0,ie=re?re.allocUnsafe:void 0;f.exports=function(le,ge){if(ge)return le.slice();var me=le.length,Le=ie?ie(me):new le.constructor(me);return le.copy(Le),Le}}),Wr=function(f,M){var G=-1,Y=f.length;for(M||(M=Array(Y));++Gge))return!1;var Le=ie.get(f),ze=ie.get(M);if(Le&&ze)return Le==M&&ze==f;var Fe=-1,tt=!0,Mt=2&G?new Wi:void 0;for(ie.set(f,M),ie.set(M,f);++Fe0&&Y(me)?G>1?f(me,G-1,Y,re,ie):Ia(ie,me):re||(ie[ie.length]=me)}return ie},fi=function(f,M,G){switch(G.length){case 0:return f.call(M);case 1:return f.call(M,G[0]);case 2:return f.call(M,G[0],G[1]);case 3:return f.call(M,G[0],G[1],G[2])}return f.apply(M,G)},bi=Math.max,ha=function(f,M,G){return M=bi(M===void 0?f.length-1:M,0),function(){for(var Y=arguments,re=-1,ie=bi(Y.length-M,0),le=Array(ie);++re0){if(++M>=800)return arguments[0]}else M=0;return f.apply(void 0,arguments)}}(Oa),oo=function(f,M){return Wo(ha(f,M,Zi),f+"")},Qs=function(f,M,G,Y){for(var re=f.length,ie=G+(Y?1:-1);Y?ie--:++ie-1},yu=function(f,M,G){for(var Y=-1,re=f==null?0:f.length;++Y=200){var Le=M?null:Of(f);if(Le)return ji(Le);le=!1,re=go,me=new Wi}else me=M?[]:ge;e:for(;++Yie){var le=re;re=ie,ie=le}return re+""+ie+""+(Qr.isUndefined(Y)?"\0":Y)}function Df(f,M,G,Y){var re=""+M,ie=""+G;if(!f&&re>ie){var le=re;re=ie,ie=le}var ge={v:re,w:ie};return Y&&(ge.name=Y),ge}function bu(f,M){return ls(f,M.v,M.w,M.name)}ca.prototype._nodeCount=0,ca.prototype._edgeCount=0,ca.prototype.isDirected=function(){return this._isDirected},ca.prototype.isMultigraph=function(){return this._isMultigraph},ca.prototype.isCompound=function(){return this._isCompound},ca.prototype.setGraph=function(f){return this._label=f,this},ca.prototype.graph=function(){return this._label},ca.prototype.setDefaultNodeLabel=function(f){return Qr.isFunction(f)||(f=Qr.constant(f)),this._defaultNodeLabelFn=f,this},ca.prototype.nodeCount=function(){return this._nodeCount},ca.prototype.nodes=function(){return Qr.keys(this._nodes)},ca.prototype.sources=function(){var f=this;return Qr.filter(this.nodes(),function(M){return Qr.isEmpty(f._in[M])})},ca.prototype.sinks=function(){var f=this;return Qr.filter(this.nodes(),function(M){return Qr.isEmpty(f._out[M])})},ca.prototype.setNodes=function(f,M){var G=arguments,Y=this;return Qr.each(f,function(re){G.length>1?Y.setNode(re,M):Y.setNode(re)}),this},ca.prototype.setNode=function(f,M){return Qr.has(this._nodes,f)?(arguments.length>1&&(this._nodes[f]=M),this):(this._nodes[f]=arguments.length>1?M:this._defaultNodeLabelFn(f),this._isCompound&&(this._parent[f]="\0",this._children[f]={},this._children["\0"][f]=!0),this._in[f]={},this._preds[f]={},this._out[f]={},this._sucs[f]={},++this._nodeCount,this)},ca.prototype.node=function(f){return this._nodes[f]},ca.prototype.hasNode=function(f){return Qr.has(this._nodes,f)},ca.prototype.removeNode=function(f){var M=this;if(Qr.has(this._nodes,f)){var G=function(Y){M.removeEdge(M._edgeObjs[Y])};delete this._nodes[f],this._isCompound&&(this._removeFromParentsChildList(f),delete this._parent[f],Qr.each(this.children(f),function(Y){M.setParent(Y)}),delete this._children[f]),Qr.each(Qr.keys(this._in[f]),G),delete this._in[f],delete this._preds[f],Qr.each(Qr.keys(this._out[f]),G),delete this._out[f],delete this._sucs[f],--this._nodeCount}return this},ca.prototype.setParent=function(f,M){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(Qr.isUndefined(M))M="\0";else{for(var G=M+="";!Qr.isUndefined(G);G=this.parent(G))if(G===f)throw new Error("Setting "+M+" as parent of "+f+" would create a cycle");this.setNode(M)}return this.setNode(f),this._removeFromParentsChildList(f),this._parent[f]=M,this._children[M][f]=!0,this},ca.prototype._removeFromParentsChildList=function(f){delete this._children[this._parent[f]][f]},ca.prototype.parent=function(f){if(this._isCompound){var M=this._parent[f];if(M!=="\0")return M}},ca.prototype.children=function(f){if(Qr.isUndefined(f)&&(f="\0"),this._isCompound){var M=this._children[f];if(M)return Qr.keys(M)}else{if(f==="\0")return this.nodes();if(this.hasNode(f))return[]}},ca.prototype.predecessors=function(f){var M=this._preds[f];if(M)return Qr.keys(M)},ca.prototype.successors=function(f){var M=this._sucs[f];if(M)return Qr.keys(M)},ca.prototype.neighbors=function(f){var M=this.predecessors(f);if(M)return Qr.union(M,this.successors(f))},ca.prototype.isLeaf=function(f){return(this.isDirected()?this.successors(f):this.neighbors(f)).length===0},ca.prototype.filterNodes=function(f){var M=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});M.setGraph(this.graph());var G=this;Qr.each(this._nodes,function(ie,le){f(le)&&M.setNode(le,ie)}),Qr.each(this._edgeObjs,function(ie){M.hasNode(ie.v)&&M.hasNode(ie.w)&&M.setEdge(ie,G.edge(ie))});var Y={};function re(ie){var le=G.parent(ie);return le===void 0||M.hasNode(le)?(Y[ie]=le,le):le in Y?Y[le]:re(le)}return this._isCompound&&Qr.each(M.nodes(),function(ie){M.setParent(ie,re(ie))}),M},ca.prototype.setDefaultEdgeLabel=function(f){return Qr.isFunction(f)||(f=Qr.constant(f)),this._defaultEdgeLabelFn=f,this},ca.prototype.edgeCount=function(){return this._edgeCount},ca.prototype.edges=function(){return Qr.values(this._edgeObjs)},ca.prototype.setPath=function(f,M){var G=this,Y=arguments;return Qr.reduce(f,function(re,ie){return Y.length>1?G.setEdge(re,ie,M):G.setEdge(re,ie),ie}),this},ca.prototype.setEdge=function(){var f,M,G,Y,re=!1,ie=arguments[0];typeof ie=="object"&&ie!==null&&"v"in ie?(f=ie.v,M=ie.w,G=ie.name,arguments.length===2&&(Y=arguments[1],re=!0)):(f=ie,M=arguments[1],G=arguments[3],arguments.length>2&&(Y=arguments[2],re=!0)),f=""+f,M=""+M,Qr.isUndefined(G)||(G=""+G);var le=ls(this._isDirected,f,M,G);if(Qr.has(this._edgeLabels,le))return re&&(this._edgeLabels[le]=Y),this;if(!Qr.isUndefined(G)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(f),this.setNode(M),this._edgeLabels[le]=re?Y:this._defaultEdgeLabelFn(f,M,G);var ge=Df(this._isDirected,f,M,G);return f=ge.v,M=ge.w,Object.freeze(ge),this._edgeObjs[le]=ge,Lf(this._preds[M],f),Lf(this._sucs[f],M),this._in[M][le]=ge,this._out[f][le]=ge,this._edgeCount++,this},ca.prototype.edge=function(f,M,G){var Y=arguments.length===1?bu(this._isDirected,arguments[0]):ls(this._isDirected,f,M,G);return this._edgeLabels[Y]},ca.prototype.hasEdge=function(f,M,G){var Y=arguments.length===1?bu(this._isDirected,arguments[0]):ls(this._isDirected,f,M,G);return Qr.has(this._edgeLabels,Y)},ca.prototype.removeEdge=function(f,M,G){var Y=arguments.length===1?bu(this._isDirected,arguments[0]):ls(this._isDirected,f,M,G),re=this._edgeObjs[Y];return re&&(f=re.v,M=re.w,delete this._edgeLabels[Y],delete this._edgeObjs[Y],Eu(this._preds[M],f),Eu(this._sucs[f],M),delete this._in[M][Y],delete this._out[f][Y],this._edgeCount--),this},ca.prototype.inEdges=function(f,M){var G=this._in[f];if(G){var Y=Qr.values(G);return M?Qr.filter(Y,function(re){return re.v===M}):Y}},ca.prototype.outEdges=function(f,M){var G=this._out[f];if(G){var Y=Qr.values(G);return M?Qr.filter(Y,function(re){return re.w===M}):Y}},ca.prototype.nodeEdges=function(f,M){var G=this.inEdges(f,M);if(G)return G.concat(this.outEdges(f,M))};var qu={Graph:Os,version:"2.1.8"},ef={write:function(f){var M={options:{directed:f.isDirected(),multigraph:f.isMultigraph(),compound:f.isCompound()},nodes:Nf(f),edges:Lo(f)};return Qr.isUndefined(f.graph())||(M.value=Qr.clone(f.graph())),M},read:function(f){var M=new Os(f.options).setGraph(f.value);return Qr.each(f.nodes,function(G){M.setNode(G.v,G.value),G.parent&&M.setParent(G.v,G.parent)}),Qr.each(f.edges,function(G){M.setEdge({v:G.v,w:G.w,name:G.name},G.value)}),M}};function Nf(f){return Qr.map(f.nodes(),function(M){var G=f.node(M),Y=f.parent(M),re={v:M};return Qr.isUndefined(G)||(re.value=G),Qr.isUndefined(Y)||(re.parent=Y),re})}function Lo(f){return Qr.map(f.edges(),function(M){var G=f.edge(M),Y={v:M.v,w:M.w};return Qr.isUndefined(M.name)||(Y.name=M.name),Qr.isUndefined(G)||(Y.value=G),Y})}var Pf=function(f){var M,G={},Y=[];function re(ie){Qr.has(G,ie)||(G[ie]=!0,M.push(ie),Qr.each(f.successors(ie),re),Qr.each(f.predecessors(ie),re))}return Qr.each(f.nodes(),function(ie){M=[],re(ie),M.length&&Y.push(M)}),Y},kf=xi;function xi(){this._arr=[],this._keyIndices={}}xi.prototype.size=function(){return this._arr.length},xi.prototype.keys=function(){return this._arr.map(function(f){return f.key})},xi.prototype.has=function(f){return Qr.has(this._keyIndices,f)},xi.prototype.priority=function(f){var M=this._keyIndices[f];if(M!==void 0)return this._arr[M].priority},xi.prototype.min=function(){if(this.size()===0)throw new Error("Queue underflow");return this._arr[0].key},xi.prototype.add=function(f,M){var G=this._keyIndices;if(f=String(f),!Qr.has(G,f)){var Y=this._arr,re=Y.length;return G[f]=re,Y.push({key:f,priority:M}),this._decrease(re),!0}return!1},xi.prototype.removeMin=function(){this._swap(0,this._arr.length-1);var f=this._arr.pop();return delete this._keyIndices[f.key],this._heapify(0),f.key},xi.prototype.decrease=function(f,M){var G=this._keyIndices[f];if(M>this._arr[G].priority)throw new Error("New priority is greater than current priority. Key: "+f+" Old: "+this._arr[G].priority+" New: "+M);this._arr[G].priority=M,this._decrease(G)},xi.prototype._heapify=function(f){var M=this._arr,G=2*f,Y=G+1,re=f;G>1].priority0&&(me=Fe.removeMin(),(Le=ze[me]).distance!==Number.POSITIVE_INFINITY);)ge(me).forEach(tt);return ze}(f,String(M),G||As,Y||function(re){return f.outEdges(re)})},As=Qr.constant(1),rf=function(f,M,G){return Qr.transform(f.nodes(),function(Y,re){Y[re]=tf(f,re,M,G)},{})},nf=function(f){var M=0,G=[],Y={},re=[];function ie(le){var ge=Y[le]={onStack:!0,lowlink:M,index:M++};if(G.push(le),f.successors(le).forEach(function(ze){Qr.has(Y,ze)?Y[ze].onStack&&(ge.lowlink=Math.min(ge.lowlink,Y[ze].index)):(ie(ze),ge.lowlink=Math.min(ge.lowlink,Y[ze].lowlink))}),ge.lowlink===ge.index){var me,Le=[];do me=G.pop(),Y[me].onStack=!1,Le.push(me);while(le!==me);re.push(Le)}}return f.nodes().forEach(function(le){Qr.has(Y,le)||ie(le)}),re},dc=function(f){return Qr.filter(nf(f),function(M){return M.length>1||M.length===1&&f.hasEdge(M[0],M[0])})},hc=function(f,M,G){return function(Y,re,ie){var le={},ge=Y.nodes();return ge.forEach(function(me){le[me]={},le[me][me]={distance:0},ge.forEach(function(Le){me!==Le&&(le[me][Le]={distance:Number.POSITIVE_INFINITY})}),ie(me).forEach(function(Le){var ze=Le.v===me?Le.w:Le.v,Fe=re(Le);le[me][ze]={distance:Fe,predecessor:me}})}),ge.forEach(function(me){var Le=le[me];ge.forEach(function(ze){var Fe=le[ze];ge.forEach(function(tt){var Mt=Fe[me],sr=Le[tt],Tt=Fe[tt],Nt=Mt.distance+sr.distance;Nt0;){if(G=ie.removeMin(),Qr.has(re,G))Y.setEdge(G,re[G]);else{if(ge)throw new Error("Input graph is not connected: "+f);ge=!0}f.nodeEdges(G).forEach(le)}return Y},tarjan:nf,topsort:af},version:qu.version};try{ds=tl}catch(f){}ds||(ds=window.graphlib);var Do=ds,Bf=function(f){return vo(f,5)},hs=function(f,M,G){if(!ht(G))return!1;var Y=typeof M;return!!(Y=="number"?bn(G)&&st(M,G.length):Y=="string"&&M in G)&&E(G[M],f)},Ls=Object.prototype,yc=Ls.hasOwnProperty,wu=oo(function(f,M){f=Object(f);var G=-1,Y=M.length,re=Y>2?M[2]:void 0;for(re&&hs(M[0],M[1],re)&&(Y=1);++G-1?re[ie?M[le]:le]:void 0}},mc=/^\s+|\s+$/g,rl=/^[-+]0x[0-9a-f]+$/i,of=/^0b[01]+$/i,Ff=/^0o[0-7]+$/i,Gf=parseInt,Ec=function(f){if(typeof f=="number")return f;if(Eo(f))return NaN;if(ht(f)){var M=typeof f.valueOf=="function"?f.valueOf():f;f=ht(M)?M+"":M}if(typeof f!="string")return f===0?f:+f;f=f.replace(mc,"");var G=of.test(f);return G||Ff.test(f)?Gf(f.slice(2),G?2:8):rl.test(f)?NaN:+f},sf=function(f){return f?(f=Ec(f))===Infinity||f===-Infinity?17976931348623157e292*(f<0?-1:1):f==f?f:0:f===0?f:0},uf=function(f){var M=sf(f),G=M%1;return M==M?G?M-G:M:0},nl=Math.max,al=Ds(function(f,M,G){var Y=f==null?0:f.length;if(!Y)return-1;var re=G==null?0:uf(G);return re<0&&(re=nl(Y+re,0)),Qs(f,$i(M),re)}),bc=function(f){return(f==null?0:f.length)?Ha(f,1):[]},Js=function(f,M){return f==null?f:Ao(f,_i(M),bt)},il=function(f){var M=f==null?0:f.length;return M?f[M-1]:void 0},xc=function(f,M){var G={};return M=$i(M),as(f,function(Y,re,ie){va(G,re,M(Y,re,ie))}),G},Su=function(f,M,G){for(var Y=-1,re=f.length;++YM},ol=function(f){return f&&f.length?Su(f,Zi,jo):void 0},_u=function(f,M,G){(G!==void 0&&!E(f[M],G)||G===void 0&&!(M in f))&&va(f,M,G)},sl=Function.prototype,ul=Object.prototype,ki=sl.toString,fl=ul.hasOwnProperty,wc=ki.call(Object),Mu=function(f){if(!ae(f)||Ze(f)!="[object Object]")return!1;var M=Ba(f);if(M===null)return!0;var G=fl.call(M,"constructor")&&M.constructor;return typeof G=="function"&&G instanceof G&&ki.call(G)==wc},ff=function(f,M){if((M!=="constructor"||typeof f[M]!="function")&&M!="__proto__")return f[M]},To=function(f){return rt(f,bt(f))},Sc=function(f,M,G,Y,re,ie,le){var ge=ff(f,G),me=ff(M,G),Le=le.get(me);if(Le)_u(f,G,Le);else{var ze=ie?ie(ge,me,G+"",f,M,le):void 0,Fe=ze===void 0;if(Fe){var tt=xe(me),Mt=!tt&&Ne(me),sr=!tt&&!Mt&&Qt(me);ze=me,tt||Mt||sr?xe(ge)?ze=ge:Af(ge)?ze=Wr(ge):Mt?(Fe=!1,ze=wr(me,!0)):sr?(Fe=!1,ze=Li(me,!0)):ze=[]:Mu(me)||he(me)?(ze=ge,he(ge)?ze=To(ge):ht(ge)&&!tr(ge)||(ze=Di(me))):Fe=!1}Fe&&(le.set(me,ze),re(ze,me,Y,ie,le),le.delete(me)),_u(f,G,ze)}},qs=function f(M,G,Y,re,ie){M!==G&&Ao(G,function(le,ge){if(ie||(ie=new Pn),ht(le))Sc(M,G,ge,Y,f,re,ie);else{var me=re?re(ff(M,ge),le,ge+"",M,G,ie):void 0;me===void 0&&(me=le),_u(M,ge,me)}},bt)},Ns=function(f){return oo(function(M,G){var Y=-1,re=G.length,ie=re>1?G[re-1]:void 0,le=re>2?G[2]:void 0;for(ie=f.length>3&&typeof ie=="function"?(re--,ie):void 0,le&&hs(G[0],G[1],le)&&(ie=re<3?void 0:ie,re=1),M=Object(M);++YM||ie&&le&&me&&!ge&&!Le||Y&&le&&me||!G&&me||!re)return 1;if(!Y&&!ie&&!Le&&f=ge?me:me*(G[Y]=="desc"?-1:1)}return f.index-M.index},jf=function(f,M,G){M=M.length?io(M,function(ie){return xe(ie)?function(le){return fs(le,ie.length===1?ie[0]:ie)}:ie}):[Zi];var Y=-1;M=io(M,Br($i));var re=ue(f,function(ie,le,ge){return{criteria:io(M,function(me){return me(ie)}),index:++Y,value:ie}});return Tc(re,function(ie,le){return Wf(ie,le,G)})},cf=oo(function(f,M){if(f==null)return[];var G=M.length;return G>1&&hs(f,M[0],M[1])?M=[]:G>2&&hs(M[0],M[1],M[2])&&(M=[M[0]]),jf(f,Ha(M,1),[])}),Xf=0,Vf=function(f){var M=++Xf;return $s(f)+M},Iu=function(f,M,G){for(var Y=-1,re=f.length,ie=M.length,le={};++Y0;--Fe)if(ge=ie[Fe].dequeue()){me=me.concat(lf(re,ie,le,ge,!0));break}}}return me}(G.graph,G.buckets,G.zeroIdx);return gt.flatten(gt.map(Y,function(re){return f.outEdges(re.v,re.w)}),!0)},hl=gt.constant(1);function lf(f,M,G,Y,re){var ie=re?[]:void 0;return gt.forEach(f.inEdges(Y.v),function(le){var ge=f.edge(le),me=f.node(le.v);re&&ie.push({v:le.v,w:le.w}),me.out-=ge,Hf(M,G,me)}),gt.forEach(f.outEdges(Y.v),function(le){var ge=f.edge(le),me=le.w,Le=f.node(me);Le.in-=ge,Hf(M,G,Le)}),f.removeNode(Y.v),ie}function Hf(f,M,G){G.out?G.in?f[G.out-G.in+M].enqueue(G):f[f.length-1].enqueue(G):f[0].enqueue(G)}var Oc={run:function(f){var M=f.graph().acyclicer==="greedy"?dl(f,function(G){return function(Y){return G.edge(Y).weight}}(f)):function(G){var Y=[],re={},ie={};function le(ge){gt.has(ie,ge)||(ie[ge]=!0,re[ge]=!0,gt.forEach(G.outEdges(ge),function(me){gt.has(re,me.w)?Y.push(me):le(me.w)}),delete re[ge])}return gt.forEach(G.nodes(),le),Y}(f);gt.forEach(M,function(G){var Y=f.edge(G);f.removeEdge(G),Y.forwardName=G.name,Y.reversed=!0,f.setEdge(G.w,G.v,Y,gt.uniqueId("rev"))})},undo:function(f){gt.forEach(f.edges(),function(M){var G=f.edge(M);if(G.reversed){f.removeEdge(M);var Y=G.forwardName;delete G.reversed,delete G.forwardName,f.setEdge(M.w,M.v,G,Y)}})}},Zf=Do.Graph,Mi={addDummyNode:Au,simplify:function(f){var M=new Zf().setGraph(f.graph());return gt.forEach(f.nodes(),function(G){M.setNode(G,f.node(G))}),gt.forEach(f.edges(),function(G){var Y=M.edge(G.v,G.w)||{weight:0,minlen:1},re=f.edge(G);M.setEdge(G.v,G.w,{weight:Y.weight+re.weight,minlen:Math.max(Y.minlen,re.minlen)})}),M},asNonCompoundGraph:function(f){var M=new Zf({multigraph:f.isMultigraph()}).setGraph(f.graph());return gt.forEach(f.nodes(),function(G){f.children(G).length||M.setNode(G,f.node(G))}),gt.forEach(f.edges(),function(G){M.setEdge(G,f.edge(G))}),M},successorWeights:function(f){var M=gt.map(f.nodes(),function(G){var Y={};return gt.forEach(f.outEdges(G),function(re){Y[re.w]=(Y[re.w]||0)+f.edge(re).weight}),Y});return gt.zipObject(f.nodes(),M)},predecessorWeights:function(f){var M=gt.map(f.nodes(),function(G){var Y={};return gt.forEach(f.inEdges(G),function(re){Y[re.v]=(Y[re.v]||0)+f.edge(re).weight}),Y});return gt.zipObject(f.nodes(),M)},intersectRect:function(f,M){var G,Y,re=f.x,ie=f.y,le=M.x-re,ge=M.y-ie,me=f.width/2,Le=f.height/2;if(!le&&!ge)throw new Error("Not possible to find intersection inside of the rectangle");return Math.abs(ge)*me>Math.abs(le)*Le?(ge<0&&(Le=-Le),G=Le*le/ge,Y=Le):(le<0&&(me=-me),G=me,Y=me*ge/le),{x:re+G,y:ie+Y}},buildLayerMatrix:function(f){var M=gt.map(gt.range(gi(f)+1),function(){return[]});return gt.forEach(f.nodes(),function(G){var Y=f.node(G),re=Y.rank;gt.isUndefined(re)||(M[re][Y.order]=G)}),M},normalizeRanks:function(f){var M=gt.min(gt.map(f.nodes(),function(G){return f.node(G).rank}));gt.forEach(f.nodes(),function(G){var Y=f.node(G);gt.has(Y,"rank")&&(Y.rank-=M)})},removeEmptyRanks:function(f){var M=gt.min(gt.map(f.nodes(),function(ie){return f.node(ie).rank})),G=[];gt.forEach(f.nodes(),function(ie){var le=f.node(ie).rank-M;G[le]||(G[le]=[]),G[le].push(ie)});var Y=0,re=f.graph().nodeRankFactor;gt.forEach(G,function(ie,le){gt.isUndefined(ie)&&le%re!=0?--Y:Y&>.forEach(ie,function(ge){f.node(ge).rank+=Y})})},addBorderNode:function(f,M,G,Y){var re={width:0,height:0};return arguments.length>=4&&(re.rank=G,re.order=Y),Au(f,"border",re,M)},maxRank:gi,partition:function(f,M){var G={lhs:[],rhs:[]};return gt.forEach(f,function(Y){M(Y)?G.lhs.push(Y):G.rhs.push(Y)}),G},time:function(f,M){var G=gt.now();try{return M()}finally{console.log(f+" time: "+(gt.now()-G)+"ms")}},notime:function(f,M){return M()}};function Au(f,M,G,Y){var re;do re=gt.uniqueId(Y);while(f.hasNode(re));return G.dummy=M,f.setNode(re,G),re}function gi(f){return gt.max(gt.map(f.nodes(),function(M){var G=f.node(M).rank;if(!gt.isUndefined(G))return G}))}var Lu={run:function(f){f.graph().dummyChains=[],gt.forEach(f.edges(),function(M){(function(G,Y){var re,ie,le,ge=Y.v,me=G.node(ge).rank,Le=Y.w,ze=G.node(Le).rank,Fe=Y.name,tt=G.edge(Y),Mt=tt.labelRank;if(ze!==me+1){for(G.removeEdge(Y),le=0,++me;mele.lim&&(ge=le,me=!0);var Le=gt.filter(M.edges(),function(ze){return me===Lc(f,f.node(ze.v),ge)&&me!==Lc(f,f.node(ze.w),ge)});return gt.minBy(Le,function(ze){return Fs(M,ze)})}function Gs(f,M,G,Y){var re=G.v,ie=G.w;f.removeEdge(re,ie),f.setEdge(Y.v,Y.w,{}),hf(f),nu(f,M),function(le,ge){var me=gt.find(le.nodes(),function(ze){return!ge.node(ze).parent}),Le=Du(le,me);Le=Le.slice(1),gt.forEach(Le,function(ze){var Fe=le.node(ze).parent,tt=ge.edge(ze,Fe),Mt=!1;tt||(tt=ge.edge(Fe,ze),Mt=!0),ge.node(ze).rank=ge.node(Fe).rank+(Mt?tt.minlen:-tt.minlen)})}(f,M)}function Lc(f,M,G){return G.low<=M.lim&&M.lim<=G.lim}Io.initLowLimValues=hf,Io.initCutValues=nu,Io.calcCutValue=Qf,Io.leaveEdge=qf,Io.enterEdge=Ac,Io.exchangeEdges=Gs;var Dc=Xo,Nc=function(f){switch(f.graph().ranker){case"network-simplex":Vo(f);break;case"tight-tree":(function(M){Dc(M),ru(M)})(f);break;case"longest-path":Pc(f);break;default:Vo(f)}},Pc=Dc;function Vo(f){ea(f)}var vl=function(f){var M=function(G){var Y={},re=0;function ie(le){var ge=re;gt.forEach(G.children(le),ie),Y[le]={low:ge,lim:re++}}return gt.forEach(G.children(),ie),Y}(f);gt.forEach(f.graph().dummyChains,function(G){for(var Y=f.node(G),re=Y.edgeObj,ie=function(Fe,tt,Mt,sr){var Tt,Nt,Lt=[],_r=[],Yr=Math.min(tt[Mt].low,tt[sr].low),Pr=Math.max(tt[Mt].lim,tt[sr].lim);Tt=Mt;do Tt=Fe.parent(Tt),Lt.push(Tt);while(Tt&&(tt[Tt].low>Yr||Pr>tt[Tt].lim));for(Nt=Tt,Tt=sr;(Tt=Fe.parent(Tt))!==Nt;)_r.push(Tt);return{path:Lt.concat(_r.reverse()),lca:Nt}}(f,M,re.v,re.w),le=ie.path,ge=ie.lca,me=0,Le=le[me],ze=!0;G!==re.w;){if(Y=f.node(G),ze){for(;(Le=le[me])!==ge&&f.node(Le).maxRank0;)ze%2&&(Fe+=ge[ze+1]),ge[ze=ze-1>>1]+=Le.weight;me+=Le.weight*Fe})),me}var ec=function(f,M){return gt.map(M,function(G){var Y=f.inEdges(G);if(Y.length){var re=gt.reduce(Y,function(ie,le){var ge=f.edge(le),me=f.node(le.v);return{sum:ie.sum+ge.weight*me.order,weight:ie.weight+ge.weight}},{sum:0,weight:0});return{v:G,barycenter:re.sum/re.weight,weight:re.weight}}return{v:G}})},gf=function(f,M){var G={};return gt.forEach(f,function(Y,re){var ie=G[Y.v]={indegree:0,in:[],out:[],vs:[Y.v],i:re};gt.isUndefined(Y.barycenter)||(ie.barycenter=Y.barycenter,ie.weight=Y.weight)}),gt.forEach(M.edges(),function(Y){var re=G[Y.v],ie=G[Y.w];gt.isUndefined(re)||gt.isUndefined(ie)||(ie.indegree++,re.out.push(G[Y.w]))}),function(Y){var re=[];function ie(me){return function(Le){Le.merged||(gt.isUndefined(Le.barycenter)||gt.isUndefined(me.barycenter)||Le.barycenter>=me.barycenter)&&function(ze,Fe){var tt=0,Mt=0;ze.weight&&(tt+=ze.barycenter*ze.weight,Mt+=ze.weight),Fe.weight&&(tt+=Fe.barycenter*Fe.weight,Mt+=Fe.weight),ze.vs=Fe.vs.concat(ze.vs),ze.barycenter=tt/Mt,ze.weight=Mt,ze.i=Math.min(Fe.i,ze.i),Fe.merged=!0}(me,Le)}}function le(me){return function(Le){Le.in.push(me),--Le.indegree==0&&Y.push(Le)}}for(;Y.length;){var ge=Y.pop();re.push(ge),gt.forEach(ge.in.reverse(),ie(ge)),gt.forEach(ge.out,le(ge))}return gt.map(gt.filter(re,function(me){return!me.merged}),function(me){return gt.pick(me,["vs","i","barycenter","weight"])})}(gt.filter(G,function(Y){return!Y.indegree}))},pf=function(f,M){var G=Mi.partition(f,function(Fe){return gt.has(Fe,"barycenter")}),Y=G.lhs,re=gt.sortBy(G.rhs,function(Fe){return-Fe.i}),ie=[],le=0,ge=0,me=0;Y.sort((Le=!!M,function(Fe,tt){return Fe.barycentertt.barycenter?1:Le?tt.i-Fe.i:Fe.i-tt.i})),me=Ws(ie,re,me),gt.forEach(Y,function(Fe){me+=Fe.vs.length,ie.push(Fe.vs),le+=Fe.barycenter*Fe.weight,ge+=Fe.weight,me=Ws(ie,re,me)});var Le,ze={vs:gt.flatten(ie,!0)};return ge&&(ze.barycenter=le/ge,ze.weight=ge),ze};function Ws(f,M,G){for(var Y;M.length&&(Y=gt.last(M)).i<=G;)M.pop(),f.push(Y.vs),G++;return G}var tc=function f(M,G,Y,re){var ie=M.children(G),le=M.node(G),ge=le?le.borderLeft:void 0,me=le?le.borderRight:void 0,Le={};ge&&(ie=gt.filter(ie,function(Tt){return Tt!==ge&&Tt!==me}));var ze=ec(M,ie);gt.forEach(ze,function(Tt){if(M.children(Tt.v).length){var Nt=f(M,Tt.v,Y,re);Le[Tt.v]=Nt,gt.has(Nt,"barycenter")&&(Lt=Tt,_r=Nt,gt.isUndefined(Lt.barycenter)?(Lt.barycenter=_r.barycenter,Lt.weight=_r.weight):(Lt.barycenter=(Lt.barycenter*Lt.weight+_r.barycenter*_r.weight)/(Lt.weight+_r.weight),Lt.weight+=_r.weight))}var Lt,_r});var Fe=gf(ze,Y);(function(Tt,Nt){gt.forEach(Tt,function(Lt){Lt.vs=gt.flatten(Lt.vs.map(function(_r){return Nt[_r]?Nt[_r].vs:_r}),!0)})})(Fe,Le);var tt=pf(Fe,re);if(ge&&(tt.vs=gt.flatten([ge,tt.vs,me],!0),M.predecessors(ge).length)){var Mt=M.node(M.predecessors(ge)[0]),sr=M.node(M.predecessors(me)[0]);gt.has(tt,"barycenter")||(tt.barycenter=0,tt.weight=0),tt.barycenter=(tt.barycenter*tt.weight+Mt.order+sr.order)/(tt.weight+2),tt.weight+=2}return tt},yf=Do.Graph,mf=function(f,M,G){var Y=function(ie){for(var le;ie.hasNode(le=gt.uniqueId("_root")););return le}(f),re=new yf({compound:!0}).setGraph({root:Y}).setDefaultNodeLabel(function(ie){return f.node(ie)});return gt.forEach(f.nodes(),function(ie){var le=f.node(ie),ge=f.parent(ie);(le.rank===M||le.minRank<=M&&M<=le.maxRank)&&(re.setNode(ie),re.setParent(ie,ge||Y),gt.forEach(f[G](ie),function(me){var Le=me.v===ie?me.w:me.v,ze=re.edge(Le,ie),Fe=gt.isUndefined(ze)?0:ze.weight;re.setEdge(Le,ie,{weight:f.edge(me).weight+Fe})}),gt.has(le,"minRank")&&re.setNode(ie,{borderLeft:le.borderLeft[M],borderRight:le.borderRight[M]}))}),re},ku=function(f,M,G){var Y,re={};gt.forEach(G,function(ie){for(var le,ge,me=f.parent(ie);me;){if((le=f.parent(me))?(ge=re[le],re[le]=me):(ge=Y,Y=me),ge&&ge!==me)return void M.setEdge(ge,me);me=le}})},iu=Do.Graph,Aa=function(f){var M=Mi.maxRank(f),G=ou(f,gt.range(1,M+1),"inEdges"),Y=ou(f,gt.range(M-1,-1,-1),"outEdges"),re=Pu(f);js(f,re);for(var ie,le=Number.POSITIVE_INFINITY,ge=0,me=0;me<4;++ge,++me){Ru(ge%2?G:Y,ge%4>=2),re=Mi.buildLayerMatrix(f);var Le=Us(f,re);Leme)&&su(G,Fe,Le)})})}return gt.reduce(M,function(re,ie){var le,ge=-1,me=0;return gt.forEach(ie,function(Le,ze){if(f.node(Le).dummy==="border"){var Fe=f.predecessors(Le);Fe.length&&(le=f.node(Fe[0]).order,Y(ie,me,ze,ge,le),me=ze,ge=le)}Y(ie,me,ie.length,le,re.length)}),ie}),G}function su(f,M,G){if(M>G){var Y=M;M=G,G=Y}var re=f[M];re||(f[M]=re={}),re[G]=!0}function pl(f,M,G){if(M>G){var Y=M;M=G,G=Y}return gt.has(f[M],G)}function yl(f,M,G,Y){var re={},ie={},le={};return gt.forEach(M,function(ge){gt.forEach(ge,function(me,Le){re[me]=me,ie[me]=me,le[me]=Le})}),gt.forEach(M,function(ge){var me=-1;gt.forEach(ge,function(Le){var ze=Y(Le);if(ze.length)for(var Fe=((ze=gt.sortBy(ze,function(Tt){return le[Tt]})).length-1)/2,tt=Math.floor(Fe),Mt=Math.ceil(Fe);tt<=Mt;++tt){var sr=ze[tt];ie[Le]===Le&&menew nc(G)).forEach(G=>{M.nodes[G.name]=G,G.inputs.forEach(Y=>{(function(re,ie,le){le.name!==ie.name&&re.edges.push(Object.assign(Object.assign({},le.attr),{v:le.name,w:ie.name}))})(M,G,Y)})}),M}class _l{constructor(M,G={}){this.attr=null,this.bridgeGraph=null,this.cardinality=0,this.depth=1,this.include=y.UNSPECIFIED,this.isGroupNode=!0,this.parentNode=null,this.type=L.META,this.path=[],this.name=M,this.metaGraph=xf(M,x.META,G)}getFirstChild(){return this.metaGraph.node(this.metaGraph.nodes()[0])}getChildren(){return this.metaGraph.nodes().map(M=>this.metaGraph.node(M))}leaves(){let M,G=[],Y=[this];for(;Y.length;){let re=Y.shift();re.isGroupNode?(M=re.metaGraph,M.nodes().forEach(ie=>Y.push(M.node(ie)))):G.push(re.name)}return G}}class ac{constructor(M,G){this.v=M,this.w=G,this.baseEdgeList=[],this.inbound=null,this.name=null}addBaseEdge(M,G){this.baseEdgeList.push(M)}}function zu(f,M={}){return new _l(f,M)}function bf(f,M){return new ac(f,M)}function xf(f,M,G){const Y=G||{},re=new Yo.Graph(Y);return re.setGraph({name:f,rankdir:Y.rankdir,type:M,align:Y.align}),re}class Zc{constructor(M={}){this.graphOptions=M,this.index={},this.graphOptions.compound=!0,this.root=zu(A,this.graphOptions),this.index[A]=this.root}getNodeMap(){return this.index}node(M){return this.index[M]}setNode(M,G){this.index[M]=G}getBridgeGraph(M){const G=this.index[M];if(!G)throw Error("Could not find node in hierarchy: "+M);if(!("metaGraph"in G))return null;const Y=G;if(Y.bridgeGraph)return Y.bridgeGraph;const re=xf(N,x.BRIDGE,this.graphOptions);if(Y.bridgeGraph=re,!G.parentNode||!("metaGraph"in G.parentNode))return re;const ie=G.parentNode;return[ie.metaGraph,this.getBridgeGraph(ie.name)].forEach(le=>{le.edges().filter(ge=>ge.v===M||ge.w===M).forEach(ge=>{const me=ge.w===M;le.edge(ge).baseEdgeList.forEach(Le=>{const[ze,Fe]=me?[Le.w,ge.v]:[Le.v,ge.w],tt=this.getChildName(M,ze),Mt={v:me?Fe:tt,w:me?tt:Fe};let sr=re.edge(Mt);sr||(sr=bf(Mt.v,Mt.w),sr.inbound=me,re.setEdge(Mt.v,Mt.w,sr)),sr.addBaseEdge(Le,this)})})}),re}getChildName(M,G){let Y=this.index[G];for(;Y;){if(Y.parentNode&&Y.parentNode.name===M)return Y.name;Y=Y.parentNode}throw Error("Could not find immediate child for descendant: "+G)}getPredecessors(M){const G=this.index[M];if(!G)throw Error("Could not find node with name: "+M);return this.getOneWayEdges(G,!0)}getSuccessors(M){const G=this.index[M];if(!G)throw Error("Could not find node with name: "+M);return this.getOneWayEdges(G,!1)}getOneWayEdges(M,G){const Y=[];if(!M.parentNode||!M.parentNode.isGroupNode)return Y;const re=M.parentNode,ie=re.metaGraph,le=this.getBridgeGraph(re.name);return ic(ie,M,G,Y),ic(le,M,G,Y),Y}}function Ml(f,M){const{rankDirection:G,align:Y}=M,re=new Zc({rankdir:G,align:Y});return function(ie,le){Object.keys(le.nodes).forEach(ge=>{const me=le.nodes[ge],Le=me.path;let ze=ie.root;ze.depth=Math.max(Le.length,ze.depth);for(let Fe=0;Fe{let Mt=0;for(;Fe;)tt[Mt++]=Fe.name,Fe=Fe.parentNode;return Mt-1};le.edges.forEach(Fe=>{me=[],Le=[];let tt=ze(le.nodes[Fe.v],me),Mt=ze(le.nodes[Fe.w],Le);for(;me[tt]===Le[Mt];)if(tt--,Mt--,tt<0||Mt<0)throw Error("No difference found between ancestor paths.");const sr=ge[me[tt+1]],Tt=me[tt],Nt=Le[Mt];let Lt=sr.metaGraph.edge(Tt,Nt);Lt||(Lt=bf(Tt,Nt),sr.metaGraph.setEdge(Tt,Nt,Lt)),Lt.addBaseEdge(Fe,ie)})}(re,f),re}function ic(f,M,G,Y){(G?f.inEdges(M.name):f.outEdges(M.name)).forEach(re=>{const ie=f.edge(re);Y.push(ie)})}class Kc{constructor(M){this.hierarchy=M,this.index={},this.hasSubHierarchy={},this.root=new We(this.hierarchy.root,this.hierarchy.graphOptions),this.index[M.root.name]=this.root,this.buildSubHierarchy(M.root.name),this.root.expanded=!0}getRenderInfoNodes(){return Object.values(this.index)}getSubHierarchy(){return this.hasSubHierarchy}buildSubHierarchy(M){if(M in this.hasSubHierarchy)return;this.hasSubHierarchy[M]=!0;const G=this.index[M];if(G.node.type!==L.META)return;const Y=G,re=Y.node.metaGraph,ie=Y.coreGraph;re.nodes().forEach(ze=>{const Fe=this.getOrCreateRenderNodeByName(ze);ie.setNode(ze,Fe)}),re.edges().forEach(ze=>{const Fe=re.edge(ze),tt=new ve(Fe);ie.setEdge(ze.v,ze.w,tt)});const le=Y.node.parentNode;if(!le)return;const ge=this.getRenderNodeByName(le.name),me=(ze,...Fe)=>Fe.concat([ze?"IN":"OUT"]).join("~~"),Le=this.hierarchy.getBridgeGraph(M);Le.edges().forEach(ze=>{const Fe=Le.edge(ze),tt=!!re.node(ze.w),[Mt,sr]=tt?[ze.w,ze.v]:[ze.v,ze.w],Tt=dn=>{const sn=tt?{v:dn,w:M}:{v:M,w:dn};return ge.coreGraph.edge(sn)};let Nt=Tt(sr);Nt||(Nt=Tt(me(tt,sr,le.name)));const Lt=me(tt,M),_r=me(tt,sr,M);let Yr=ie.node(_r);if(!Yr){let dn=ie.node(Lt);if(!dn){const tn={name:Lt,type:L.BRIDGE,isGroupNode:!1,cardinality:0,parentNode:null,include:y.UNSPECIFIED,inbound:tt,attr:{}};dn=new wf(tn),this.index[Lt]=dn,ie.setNode(Lt,dn)}const sn={name:_r,type:L.BRIDGE,isGroupNode:!1,cardinality:1,parentNode:null,include:y.UNSPECIFIED,inbound:tt,attr:{}};Yr=new wf(sn),this.index[_r]=Yr,ie.setNode(_r,Yr),ie.setParent(_r,Lt),dn.node.cardinality++}const Pr=new ve(Fe);Pr.adjoiningMetaEdge=Nt,tt?ie.setEdge(_r,Mt,Pr):ie.setEdge(Mt,_r,Pr)})}getOrCreateRenderNodeByName(M){if(!M)return null;if(M in this.index)return this.index[M];const G=this.getNodeByName(M);return G?(this.index[M]=G.isGroupNode?new We(G,this.hierarchy.graphOptions):new wf(G),this.index[M]):null}getRenderNodeByName(M){return this.index[M]}getNodeByName(M){return this.hierarchy.node(M)}}class wf{constructor(M){this.node=M,this.expanded=!1,this.x=0,this.y=0,this.coreBox={width:0,height:0},this.outboxWidth=0,this.labelOffset=0,this.radius=0,this.labelHeight=0,this.paddingTop=0,this.paddingLeft=0,this.paddingRight=0,this.paddingBottom=0,this.width=M.width||0,this.height=M.height||0,this.displayName=M.name,this.attr=M.attr}}class ve{constructor(M){this.metaEdge=M,this.adjoiningMetaEdge=null,this.weight=1,this.points=[]}}class We extends wf{constructor(M,G){super(M);const Y=M.metaGraph.graph();G.compound=!0,this.coreGraph=xf(Y.name,x.CORE,G)}}function it(f,M){f.node.isGroupNode&&function(G,Y){const re=j(Y);G.coreGraph.nodes().map(ie=>G.coreGraph.node(ie)).forEach(ie=>{var le,ge,me,Le,ze,Fe;const{height:tt,width:Mt}=ie;switch(ie.node.type){case L.NODE:Object.assign(ie,re.nodeSize.node),ie.height=tt||re.nodeSize.node.height,ie.width=Mt||re.nodeSize.node.width;break;case L.BRIDGE:Object.assign(ie,re.nodeSize.bridge);break;case L.META:ie.expanded?it(ie,Y):(Object.assign(ie,re.nodeSize.meta),ie.height=re.nodeSize.meta.height,ie.width=re.nodeSize.meta.width);break;default:throw Error("Unrecognized node type: "+ie.node.type)}if(!ie.expanded){const sr=ie.attr;(function(Tt,Nt=!1){if(Tt.coreBox.width=Tt.width,Tt.coreBox.height=Tt.height,!Nt){const Lt=`${Tt.displayName}`.length,_r=3;Tt.width=Math.max(Tt.coreBox.width,Lt*_r)}})(ie,Y&&(ie.node.type===0&&!!((ge=(le=Y==null?void 0:Y.nodeSize)===null||le===void 0?void 0:le.meta)===null||ge===void 0?void 0:ge.width)||ie.node.type===1&&(!!((Le=(me=Y==null?void 0:Y.nodeSize)===null||me===void 0?void 0:me.node)===null||Le===void 0?void 0:Le.width)||!!sr.width)||ie.node.type===2&&!!((Fe=(ze=Y==null?void 0:Y.nodeSize)===null||ze===void 0?void 0:ze.bridge)===null||Fe===void 0?void 0:Fe.width)))}})}(f,M),f.node.type===L.META&&function(G,Y){const re=j(Y),ie=re.subScene.meta;Object.assign(G,ie);const{nodeSep:le,rankSep:ge,edgeSep:me,align:Le}=re.graph.meta,ze={nodesep:le,ranksep:ge,edgesep:me,align:Le};Object.assign(G.coreBox,function(Mt,sr){const{ranksep:Tt,nodesep:Nt,edgesep:Lt,align:_r}=sr;Object.assign(Mt.graph(),{ranksep:Tt,nodesep:Nt,edgesep:Lt,align:_r});const Yr=[];if(Mt.nodes().forEach(Bn=>{Mt.node(Bn).node.type!==L.BRIDGE&&Yr.push(Bn)}),!Yr.length)return{width:0,height:0};xl(Mt);let Pr=1/0,dn=1/0,sn=-1/0,tn=-1/0;return Yr.forEach(Bn=>{const Fn=Mt.node(Bn),za=.5*Fn.width,Wn=Fn.x-za,ti=Fn.x+za;Pr=Wnsn?ti:sn;const La=.5*Fn.height,oa=Fn.y-La,Za=Fn.y+La;dn=oatn?Za:tn}),Mt.edges().forEach(Bn=>{const Fn=Mt.edge(Bn),za=Mt.node(Fn.metaEdge.v),Wn=Mt.node(Fn.metaEdge.w);if(Fn.points.length===3&&function(oa){let Za=Zt(oa[0],oa[1]);for(let ri=1;ri1)return!1;Za=li}return!0}(Fn.points)){if(za!=null){const oa=za.expanded?za.x:dr(za);Fn.points[0].x=oa}if(Wn!=null){const oa=Wn.expanded?Wn.x:dr(Wn);Fn.points[2].x=oa}Fn.points=[Fn.points[0],Fn.points[1]]}const ti=Fn.points[Fn.points.length-2];Wn!=null&&(Fn.points[Fn.points.length-1]=Yt(ti,Wn));const La=Fn.points[1];za!=null&&(Fn.points[0]=Yt(La,za)),Fn.points.forEach(oa=>{Pr=oa.xsn?oa.x:sn,dn=oa.ytn?oa.y:tn})}),Mt.nodes().forEach(Bn=>{const Fn=Mt.node(Bn);Fn.x-=Pr,Fn.y-=dn}),Mt.edges().forEach(Bn=>{Mt.edge(Bn).points.forEach(Fn=>{Fn.x-=Pr,Fn.y-=dn})}),{width:sn-Pr,height:tn-dn}}(G.coreGraph,ze));let Fe=0;G.coreGraph.nodeCount()>0&&Fe++;const tt=Fe<=1?0:Fe;G.coreBox.width+=tt+tt,G.coreBox.height=ie.labelHeight+G.coreBox.height,G.width=G.coreBox.width+ie.paddingLeft+ie.paddingRight,G.height=G.paddingTop+G.coreBox.height+G.paddingBottom}(f,M)}function Zt(f,M){const G=M.x-f.x,Y=M.y-f.y;return 180*Math.atan(Y/G)/Math.PI}function dr(f){return f.expanded?f.x:f.x-f.width/2+0+f.coreBox.width/2}function Yt(f,M){const G=M.expanded?M.x:dr(M),Y=M.y,re=f.x-G,ie=f.y-Y;let le,ge,me=M.expanded?M.width:M.coreBox.width,Le=M.expanded?M.height:M.coreBox.height;return Math.abs(ie)*me/2>Math.abs(re)*Le/2?(ie<0&&(Le=-Le),le=ie===0?0:Le/2*re/ie,ge=Le/2):(re<0&&(me=-me),le=me/2,ge=re===0?0:me/2*ie/re),{x:G+le,y:Y+ge}}function ar(f,M,G){var Y,re,ie,le;const ge=f.nodes.filter((Fe,tt,Mt)=>Mt.findIndex(sr=>sr.id===Fe.id)!==tt).map(Fe=>Fe.id);if(ge.length)throw new Error(`Duplicated ids found: ${ge.join(", ")}`);const me=function(Fe){const tt={nodes:[]},Mt=Fe.compound,sr=Object.keys(Mt||{}),Tt=new Map,Nt=(_r,Yr=[])=>{if(Tt.has(_r))return Tt.get(_r);for(let Pr=0;PrFe.edges.filter(Yr=>Yr.w===_r).map(Yr=>({name:Yr.v}));return Fe.nodes.forEach(_r=>{const Yr=_r.id,Pr=[...Nt(Yr),Yr];let dn=Lt(Yr);tt.nodes.push({name:Yr,path:Pr,inputs:dn,width:_r.width,height:_r.height,attr:Object.assign({},_r)})}),tt}(f),Le=function(Fe,tt){const Mt=(Tt,Nt)=>{for(let Lt of Nt.values())if(Lt.includes(Tt))return!0;return!1},sr=(Tt,Nt=[])=>{if(Object.keys(Tt).length===0)return[...new Set(Nt)];const Lt=new Map(Object.keys(Tt).map(Yr=>[Yr,Tt[Yr]])),_r={};for(let[Yr,Pr]of Lt)Mt(Yr,Lt)?_r[Yr]=Pr:Nt=Nt.concat(Yr,Pr);return sr(_r,Nt)};return sr(Fe).filter(Tt=>tt.includes(Tt))}(f.compound||{},(M==null?void 0:M.expanded)||[]),ze=function(Fe,tt){return function(Mt){return new Kc(Mt)}(Ml(Sl(Fe),tt))}(me,{rankDirection:((re=(Y=G==null?void 0:G.graph)===null||Y===void 0?void 0:Y.meta)===null||re===void 0?void 0:re.rankDir)||(M==null?void 0:M.rankDirection)||B.graph.meta.rankDir,align:((le=(ie=G==null?void 0:G.graph)===null||ie===void 0?void 0:ie.meta)===null||le===void 0?void 0:le.align)||B.graph.meta.align});return function(Fe,tt){tt.forEach(Mt=>{const sr=Fe.getRenderInfoNodes().find(Lt=>Lt.displayName===Mt);let Tt=sr&&sr.node&&sr.node.name||"";const Nt=Fe.getRenderNodeByName(Tt);if(!Nt)throw new Error(`No nodes found: ${Tt}`);Nt.expanded=!0,Fe.buildSubHierarchy(Tt)})}(ze,Le),it(ze.root,G),Ar(ze.root)}function Mr(f,M=!1){const G=JSON.parse(JSON.stringify(f)),Y={nodes:[G],edges:[...G.edges]};return G.nodes.forEach(function re(ie){(ie.type===0||ie.type===1)&&Y.nodes.push(ie),ie.type===0&&(Y.edges=Y.edges.concat(ie.edges)),Array.isArray(ie.nodes)&&ie.nodes.forEach(re)}),M&&Y.nodes.forEach(re=>{const ie=Y.nodes.find(le=>le.id===re.parentNodeName);if(ie){const le=ie.x-ie.width/2+ie.paddingLeft,ge=ie.y-ie.height/2+ie.labelHeight+ie.paddingTop;ie.id!==A&&(re.x+=le,re.y+=ge),re.type===0&&re.edges.forEach(me=>{me.points.forEach(Le=>{Le.x+=re.x-re.width/2+re.paddingLeft,Le.y+=re.y-re.height/2+re.labelHeight+re.paddingTop})})}}),Y}function Ir(f,M,G,Y){var re,ie;let le=[];const ge=((re=G.find(Fe=>Fe.id===f))===null||re===void 0?void 0:re.path)||[],me=((ie=G.find(Fe=>Fe.id===M))===null||ie===void 0?void 0:ie.path)||[],Le=[A,...ge].slice(0,ge.length).reverse(),ze=[A,...me].slice(0,me.length);return Le.forEach(Fe=>{const tt=G.find(Mt=>Mt.id===Fe);le=le.concat(tt.edges.filter(Mt=>Mt.baseEdgeList.some(sr=>sr.v===((Y==null?void 0:Y.v)||f)&&sr.w===((Y==null?void 0:Y.w)||M))))}),ze.filter(Fe=>!Le.includes(Fe)).forEach(Fe=>{const tt=G.find(Mt=>Mt.id===Fe);le=le.concat(tt.edges.filter(Mt=>Mt.baseEdgeList.some(sr=>sr.v===((Y==null?void 0:Y.v)||f)&&sr.w===((Y==null?void 0:Y.w)||M))))}),le}function Ar(f){const M=f.coreGraph.nodes().map(Y=>f.coreGraph.node(Y));return Object.assign(Object.assign({},Tr(f)),{expanded:f.expanded,nodes:f.expanded?(G=M,G.map(Y=>Y.node.type===L.META?Ar(Y):Tr(Y))):[],edges:f.expanded?zr(f):[]});var G}function Tr(f){return{id:f.node.name,name:f.node.name,type:f.node.type,cardinality:f.node.cardinality,attr:f.attr,parentNodeName:f.node.parentNode?f.node.parentNode.name:null,coreBox:Object.assign({},f.coreBox),x:f.x,y:f.y,width:f.width,height:f.height,radius:f.radius,labelHeight:f.labelHeight,labelOffset:f.labelOffset,outboxWidth:f.outboxWidth,paddingLeft:f.paddingLeft,paddingTop:f.paddingTop,paddingRight:f.paddingRight,paddingBottom:f.paddingBottom,path:f.node.path}}function zr(f){return f.coreGraph.edges().map(M=>({renderInfoEdge:f.coreGraph.edge(M),edge:M})).filter(({renderInfoEdge:M})=>M.metaEdge).map(({edge:M,renderInfoEdge:G})=>{const Y=function(re,ie){const le=ie.points.map(ge=>Object.assign({},ge));if(ie.adjoiningMetaEdge){const ge=ie.adjoiningMetaEdge.points,me=ie.metaEdge.inbound,Le=me?ge[ge.length-1]:ge[0],ze=le[me?0:le.length-1],Fe=re.x-re.width/2,tt=re.y-re.height/2,Mt=Le.x-Fe,sr=Le.y-tt,Tt=-re.paddingLeft,Nt=-(re.paddingTop+re.labelHeight);ze.x=Mt+Tt,ze.y=sr+Nt}return le}(f,G);return{adjoiningEdge:G.adjoiningMetaEdge?{w:G.adjoiningMetaEdge.metaEdge.w,v:G.adjoiningMetaEdge.metaEdge.v}:null,inbound:G.metaEdge.inbound,w:M.w,v:M.v,points:Y,weight:G.weight,baseEdgeList:G.metaEdge.baseEdgeList,parentNodeName:f.node.name}})}},64530:function(or,U,z){"use strict";z.r(U),z.d(U,{glMatrix:function(){return y},mat2:function(){return B},mat2d:function(){return j},mat3:function(){return qr},mat4:function(){return R},quat:function(){return N},quat2:function(){return L},vec2:function(){return Cf},vec3:function(){return Yn},vec4:function(){return A}});var B={};z.r(B),z.d(B,{LDU:function(){return J},add:function(){return te},adjoint:function(){return k},clone:function(){return v},copy:function(){return g},create:function(){return x},determinant:function(){return b},equals:function(){return Te},exactEquals:function(){return de},frob:function(){return q},fromRotation:function(){return X},fromScaling:function(){return H},fromValues:function(){return _},identity:function(){return d},invert:function(){return T},mul:function(){return be},multiply:function(){return m},multiplyScalar:function(){return Se},multiplyScalarAndAdd:function(){return Ie},rotate:function(){return $},scale:function(){return W},set:function(){return E},str:function(){return Q},sub:function(){return pe},subtract:function(){return fe},transpose:function(){return w}});var j={};z.r(j),z.d(j,{add:function(){return ft},clone:function(){return De},copy:function(){return Ue},create:function(){return Me},determinant:function(){return tr},equals:function(){return Ae},exactEquals:function(){return Ur},frob:function(){return Vt},fromRotation:function(){return _t},fromScaling:function(){return pt},fromTranslation:function(){return rr},fromValues:function(){return Ze},identity:function(){return nt},invert:function(){return Rt},mul:function(){return Hr},multiply:function(){return Qe},multiplyScalar:function(){return qt},multiplyScalarAndAdd:function(){return br},rotate:function(){return lt},scale:function(){return St},set:function(){return ht},str:function(){return xr},sub:function(){return Sr},subtract:function(){return Bt},translate:function(){return Ct}});var R={};z.r(R),z.d(R,{add:function(){return Qt},adjoint:function(){return Wt},clone:function(){return vn},copy:function(){return Gn},create:function(){return Gr},determinant:function(){return Er},equals:function(){return kn},exactEquals:function(){return ta},frob:function(){return Ot},fromQuat:function(){return V},fromQuat2:function(){return rt},fromRotation:function(){return An},fromRotationTranslation:function(){return Dt},fromRotationTranslationScale:function(){return S},fromRotationTranslationScaleOrigin:function(){return C},fromScaling:function(){return Pn},fromTranslation:function(){return Zr},fromValues:function(){return mn},fromXRotation:function(){return ln},fromYRotation:function(){return va},fromZRotation:function(){return K},frustum:function(){return he},getRotation:function(){return P},getScaling:function(){return ae},getTranslation:function(){return ne},identity:function(){return gn},invert:function(){return ct},lookAt:function(){return Ht},mul:function(){return En},multiply:function(){return Dr},multiplyScalar:function(){return en},multiplyScalarAndAdd:function(){return Nr},ortho:function(){return Pt},orthoNO:function(){return st},orthoZO:function(){return $t},perspective:function(){return Ee},perspectiveFromFieldOfView:function(){return Et},perspectiveNO:function(){return xe},perspectiveZO:function(){return Ne},rotate:function(){return wn},rotateX:function(){return Sn},rotateY:function(){return In},rotateZ:function(){return $n},scale:function(){return pn},set:function(){return $r},str:function(){return hn},sub:function(){return Rn},subtract:function(){return pr},targetTo:function(){return Br},translate:function(){return Vr},transpose:function(){return Rr}});var A={};z.r(A),z.d(A,{add:function(){return ot},ceil:function(){return Wr},clone:function(){return je},copy:function(){return Xe},create:function(){return bn},cross:function(){return co},dist:function(){return Oo},distance:function(){return Ia},div:function(){return _s},divide:function(){return wr},dot:function(){return to},equals:function(){return Yi},exactEquals:function(){return _o},floor:function(){return on},forEach:function(){return Go},fromValues:function(){return Ce},inverse:function(){return _a},len:function(){return _n},length:function(){return Ea},lerp:function(){return ni},max:function(){return zn},min:function(){return xn},mul:function(){return Bo},multiply:function(){return Xt},negate:function(){return si},normalize:function(){return So},random:function(){return lo},round:function(){return Qn},scale:function(){return ia},scaleAndAdd:function(){return Wa},set:function(){return ut},sqrDist:function(){return Hi},sqrLen:function(){return Fo},squaredDistance:function(){return Ba},squaredLength:function(){return qa},str:function(){return ya},sub:function(){return Fi},subtract:function(){return bt},transformMat4:function(){return Ss},transformQuat:function(){return Ro},zero:function(){return mi}});var N={};z.r(N),z.d(N,{add:function(){return Ui},calculateW:function(){return Ni},clone:function(){return vi},conjugate:function(){return Vs},copy:function(){return _i},create:function(){return Va},dot:function(){return Ya},equals:function(){return ka},exactEquals:function(){return ji},exp:function(){return ro},fromEuler:function(){return Ao},fromMat3:function(){return Pi},fromValues:function(){return Zi},getAngle:function(){return Mo},getAxisAngle:function(){return Li},identity:function(){return Ms},invert:function(){return vo},len:function(){return ao},length:function(){return Wi},lerp:function(){return Ii},ln:function(){return Qo},mul:function(){return da},multiply:function(){return ho},normalize:function(){return yo},pow:function(){return ns},random:function(){return ga},rotateX:function(){return Gi},rotateY:function(){return Di},rotateZ:function(){return $o},rotationTo:function(){return Ys},scale:function(){return Fa},set:function(){return no},setAxes:function(){return mo},setAxisAngle:function(){return Ko},slerp:function(){return zi},sqlerp:function(){return _f},sqrLen:function(){return po},squaredLength:function(){return go},str:function(){return as}});var L={};z.r(L),z.d(L,{add:function(){return Uo},clone:function(){return na},conjugate:function(){return Ku},copy:function(){return ai},create:function(){return lu},dot:function(){return vu},equals:function(){return Ts},exactEquals:function(){return Mf},fromMat4:function(){return ui},fromRotation:function(){return is},fromRotationTranslation:function(){return Xi},fromRotationTranslationValues:function(){return Hs},fromTranslation:function(){return zo},fromValues:function(){return an},getDual:function(){return du},getReal:function(){return Hu},getTranslation:function(){return Ki},identity:function(){return Eo},invert:function(){return pu},len:function(){return Cs},length:function(){return Co},lerp:function(){return gu},mul:function(){return fs},multiply:function(){return bo},normalize:function(){return xo},rotateAroundAxis:function(){return $s},rotateByQuatAppend:function(){return ss},rotateByQuatPrepend:function(){return us},rotateX:function(){return Ks},rotateY:function(){return io},rotateZ:function(){return os},scale:function(){return Zu},set:function(){return Yu},setDual:function(){return Ei},setReal:function(){return hu},sqrLen:function(){return $i},squaredLength:function(){return cs},str:function(){return $u},translate:function(){return Zs}});var y=z(49685);function x(){var u=new y.ARRAY_TYPE(4);return y.ARRAY_TYPE!=Float32Array&&(u[1]=0,u[2]=0),u[0]=1,u[3]=1,u}function v(u){var O=new y.ARRAY_TYPE(4);return O[0]=u[0],O[1]=u[1],O[2]=u[2],O[3]=u[3],O}function g(u,O){return u[0]=O[0],u[1]=O[1],u[2]=O[2],u[3]=O[3],u}function d(u){return u[0]=1,u[1]=0,u[2]=0,u[3]=1,u}function _(u,O,ue,ye){var _e=new y.ARRAY_TYPE(4);return _e[0]=u,_e[1]=O,_e[2]=ue,_e[3]=ye,_e}function E(u,O,ue,ye,_e){return u[0]=O,u[1]=ue,u[2]=ye,u[3]=_e,u}function w(u,O){if(u===O){var ue=O[1];u[1]=O[2],u[2]=ue}else u[0]=O[0],u[1]=O[2],u[2]=O[1],u[3]=O[3];return u}function T(u,O){var ue=O[0],ye=O[1],_e=O[2],ke=O[3],Be=ue*ke-_e*ye;return Be?(Be=1/Be,u[0]=ke*Be,u[1]=-ye*Be,u[2]=-_e*Be,u[3]=ue*Be,u):null}function k(u,O){var ue=O[0];return u[0]=O[3],u[1]=-O[1],u[2]=-O[2],u[3]=ue,u}function b(u){return u[0]*u[3]-u[2]*u[1]}function m(u,O,ue){var ye=O[0],_e=O[1],ke=O[2],Be=O[3],Ye=ue[0],Je=ue[1],dt=ue[2],It=ue[3];return u[0]=ye*Ye+ke*Je,u[1]=_e*Ye+Be*Je,u[2]=ye*dt+ke*It,u[3]=_e*dt+Be*It,u}function $(u,O,ue){var ye=O[0],_e=O[1],ke=O[2],Be=O[3],Ye=Math.sin(ue),Je=Math.cos(ue);return u[0]=ye*Je+ke*Ye,u[1]=_e*Je+Be*Ye,u[2]=ye*-Ye+ke*Je,u[3]=_e*-Ye+Be*Je,u}function W(u,O,ue){var ye=O[0],_e=O[1],ke=O[2],Be=O[3],Ye=ue[0],Je=ue[1];return u[0]=ye*Ye,u[1]=_e*Ye,u[2]=ke*Je,u[3]=Be*Je,u}function X(u,O){var ue=Math.sin(O),ye=Math.cos(O);return u[0]=ye,u[1]=ue,u[2]=-ue,u[3]=ye,u}function H(u,O){return u[0]=O[0],u[1]=0,u[2]=0,u[3]=O[1],u}function Q(u){return"mat2("+u[0]+", "+u[1]+", "+u[2]+", "+u[3]+")"}function q(u){return Math.hypot(u[0],u[1],u[2],u[3])}function J(u,O,ue,ye){return u[2]=ye[2]/ye[0],ue[0]=ye[0],ue[1]=ye[1],ue[3]=ye[3]-u[2]*ue[1],[u,O,ue]}function te(u,O,ue){return u[0]=O[0]+ue[0],u[1]=O[1]+ue[1],u[2]=O[2]+ue[2],u[3]=O[3]+ue[3],u}function fe(u,O,ue){return u[0]=O[0]-ue[0],u[1]=O[1]-ue[1],u[2]=O[2]-ue[2],u[3]=O[3]-ue[3],u}function de(u,O){return u[0]===O[0]&&u[1]===O[1]&&u[2]===O[2]&&u[3]===O[3]}function Te(u,O){var ue=u[0],ye=u[1],_e=u[2],ke=u[3],Be=O[0],Ye=O[1],Je=O[2],dt=O[3];return Math.abs(ue-Be)<=y.EPSILON*Math.max(1,Math.abs(ue),Math.abs(Be))&&Math.abs(ye-Ye)<=y.EPSILON*Math.max(1,Math.abs(ye),Math.abs(Ye))&&Math.abs(_e-Je)<=y.EPSILON*Math.max(1,Math.abs(_e),Math.abs(Je))&&Math.abs(ke-dt)<=y.EPSILON*Math.max(1,Math.abs(ke),Math.abs(dt))}function Se(u,O,ue){return u[0]=O[0]*ue,u[1]=O[1]*ue,u[2]=O[2]*ue,u[3]=O[3]*ue,u}function Ie(u,O,ue,ye){return u[0]=O[0]+ue[0]*ye,u[1]=O[1]+ue[1]*ye,u[2]=O[2]+ue[2]*ye,u[3]=O[3]+ue[3]*ye,u}var be=m,pe=fe;function Me(){var u=new y.ARRAY_TYPE(6);return y.ARRAY_TYPE!=Float32Array&&(u[1]=0,u[2]=0,u[4]=0,u[5]=0),u[0]=1,u[3]=1,u}function De(u){var O=new y.ARRAY_TYPE(6);return O[0]=u[0],O[1]=u[1],O[2]=u[2],O[3]=u[3],O[4]=u[4],O[5]=u[5],O}function Ue(u,O){return u[0]=O[0],u[1]=O[1],u[2]=O[2],u[3]=O[3],u[4]=O[4],u[5]=O[5],u}function nt(u){return u[0]=1,u[1]=0,u[2]=0,u[3]=1,u[4]=0,u[5]=0,u}function Ze(u,O,ue,ye,_e,ke){var Be=new y.ARRAY_TYPE(6);return Be[0]=u,Be[1]=O,Be[2]=ue,Be[3]=ye,Be[4]=_e,Be[5]=ke,Be}function ht(u,O,ue,ye,_e,ke,Be){return u[0]=O,u[1]=ue,u[2]=ye,u[3]=_e,u[4]=ke,u[5]=Be,u}function Rt(u,O){var ue=O[0],ye=O[1],_e=O[2],ke=O[3],Be=O[4],Ye=O[5],Je=ue*ke-ye*_e;return Je?(Je=1/Je,u[0]=ke*Je,u[1]=-ye*Je,u[2]=-_e*Je,u[3]=ue*Je,u[4]=(_e*Ye-ke*Be)*Je,u[5]=(ye*Be-ue*Ye)*Je,u):null}function tr(u){return u[0]*u[3]-u[1]*u[2]}function Qe(u,O,ue){var ye=O[0],_e=O[1],ke=O[2],Be=O[3],Ye=O[4],Je=O[5],dt=ue[0],It=ue[1],ir=ue[2],cr=ue[3],nr=ue[4],Or=ue[5];return u[0]=ye*dt+ke*It,u[1]=_e*dt+Be*It,u[2]=ye*ir+ke*cr,u[3]=_e*ir+Be*cr,u[4]=ye*nr+ke*Or+Ye,u[5]=_e*nr+Be*Or+Je,u}function lt(u,O,ue){var ye=O[0],_e=O[1],ke=O[2],Be=O[3],Ye=O[4],Je=O[5],dt=Math.sin(ue),It=Math.cos(ue);return u[0]=ye*It+ke*dt,u[1]=_e*It+Be*dt,u[2]=ye*-dt+ke*It,u[3]=_e*-dt+Be*It,u[4]=Ye,u[5]=Je,u}function St(u,O,ue){var ye=O[0],_e=O[1],ke=O[2],Be=O[3],Ye=O[4],Je=O[5],dt=ue[0],It=ue[1];return u[0]=ye*dt,u[1]=_e*dt,u[2]=ke*It,u[3]=Be*It,u[4]=Ye,u[5]=Je,u}function Ct(u,O,ue){var ye=O[0],_e=O[1],ke=O[2],Be=O[3],Ye=O[4],Je=O[5],dt=ue[0],It=ue[1];return u[0]=ye,u[1]=_e,u[2]=ke,u[3]=Be,u[4]=ye*dt+ke*It+Ye,u[5]=_e*dt+Be*It+Je,u}function _t(u,O){var ue=Math.sin(O),ye=Math.cos(O);return u[0]=ye,u[1]=ue,u[2]=-ue,u[3]=ye,u[4]=0,u[5]=0,u}function pt(u,O){return u[0]=O[0],u[1]=0,u[2]=0,u[3]=O[1],u[4]=0,u[5]=0,u}function rr(u,O){return u[0]=1,u[1]=0,u[2]=0,u[3]=1,u[4]=O[0],u[5]=O[1],u}function xr(u){return"mat2d("+u[0]+", "+u[1]+", "+u[2]+", "+u[3]+", "+u[4]+", "+u[5]+")"}function Vt(u){return Math.hypot(u[0],u[1],u[2],u[3],u[4],u[5],1)}function ft(u,O,ue){return u[0]=O[0]+ue[0],u[1]=O[1]+ue[1],u[2]=O[2]+ue[2],u[3]=O[3]+ue[3],u[4]=O[4]+ue[4],u[5]=O[5]+ue[5],u}function Bt(u,O,ue){return u[0]=O[0]-ue[0],u[1]=O[1]-ue[1],u[2]=O[2]-ue[2],u[3]=O[3]-ue[3],u[4]=O[4]-ue[4],u[5]=O[5]-ue[5],u}function qt(u,O,ue){return u[0]=O[0]*ue,u[1]=O[1]*ue,u[2]=O[2]*ue,u[3]=O[3]*ue,u[4]=O[4]*ue,u[5]=O[5]*ue,u}function br(u,O,ue,ye){return u[0]=O[0]+ue[0]*ye,u[1]=O[1]+ue[1]*ye,u[2]=O[2]+ue[2]*ye,u[3]=O[3]+ue[3]*ye,u[4]=O[4]+ue[4]*ye,u[5]=O[5]+ue[5]*ye,u}function Ur(u,O){return u[0]===O[0]&&u[1]===O[1]&&u[2]===O[2]&&u[3]===O[3]&&u[4]===O[4]&&u[5]===O[5]}function Ae(u,O){var ue=u[0],ye=u[1],_e=u[2],ke=u[3],Be=u[4],Ye=u[5],Je=O[0],dt=O[1],It=O[2],ir=O[3],cr=O[4],nr=O[5];return Math.abs(ue-Je)<=y.EPSILON*Math.max(1,Math.abs(ue),Math.abs(Je))&&Math.abs(ye-dt)<=y.EPSILON*Math.max(1,Math.abs(ye),Math.abs(dt))&&Math.abs(_e-It)<=y.EPSILON*Math.max(1,Math.abs(_e),Math.abs(It))&&Math.abs(ke-ir)<=y.EPSILON*Math.max(1,Math.abs(ke),Math.abs(ir))&&Math.abs(Be-cr)<=y.EPSILON*Math.max(1,Math.abs(Be),Math.abs(cr))&&Math.abs(Ye-nr)<=y.EPSILON*Math.max(1,Math.abs(Ye),Math.abs(nr))}var Hr=Qe,Sr=Bt,qr=z(35600);function Gr(){var u=new y.ARRAY_TYPE(16);return y.ARRAY_TYPE!=Float32Array&&(u[1]=0,u[2]=0,u[3]=0,u[4]=0,u[6]=0,u[7]=0,u[8]=0,u[9]=0,u[11]=0,u[12]=0,u[13]=0,u[14]=0),u[0]=1,u[5]=1,u[10]=1,u[15]=1,u}function vn(u){var O=new y.ARRAY_TYPE(16);return O[0]=u[0],O[1]=u[1],O[2]=u[2],O[3]=u[3],O[4]=u[4],O[5]=u[5],O[6]=u[6],O[7]=u[7],O[8]=u[8],O[9]=u[9],O[10]=u[10],O[11]=u[11],O[12]=u[12],O[13]=u[13],O[14]=u[14],O[15]=u[15],O}function Gn(u,O){return u[0]=O[0],u[1]=O[1],u[2]=O[2],u[3]=O[3],u[4]=O[4],u[5]=O[5],u[6]=O[6],u[7]=O[7],u[8]=O[8],u[9]=O[9],u[10]=O[10],u[11]=O[11],u[12]=O[12],u[13]=O[13],u[14]=O[14],u[15]=O[15],u}function mn(u,O,ue,ye,_e,ke,Be,Ye,Je,dt,It,ir,cr,nr,Or,Cr){var hr=new y.ARRAY_TYPE(16);return hr[0]=u,hr[1]=O,hr[2]=ue,hr[3]=ye,hr[4]=_e,hr[5]=ke,hr[6]=Be,hr[7]=Ye,hr[8]=Je,hr[9]=dt,hr[10]=It,hr[11]=ir,hr[12]=cr,hr[13]=nr,hr[14]=Or,hr[15]=Cr,hr}function $r(u,O,ue,ye,_e,ke,Be,Ye,Je,dt,It,ir,cr,nr,Or,Cr,hr){return u[0]=O,u[1]=ue,u[2]=ye,u[3]=_e,u[4]=ke,u[5]=Be,u[6]=Ye,u[7]=Je,u[8]=dt,u[9]=It,u[10]=ir,u[11]=cr,u[12]=nr,u[13]=Or,u[14]=Cr,u[15]=hr,u}function gn(u){return u[0]=1,u[1]=0,u[2]=0,u[3]=0,u[4]=0,u[5]=1,u[6]=0,u[7]=0,u[8]=0,u[9]=0,u[10]=1,u[11]=0,u[12]=0,u[13]=0,u[14]=0,u[15]=1,u}function Rr(u,O){if(u===O){var ue=O[1],ye=O[2],_e=O[3],ke=O[6],Be=O[7],Ye=O[11];u[1]=O[4],u[2]=O[8],u[3]=O[12],u[4]=ue,u[6]=O[9],u[7]=O[13],u[8]=ye,u[9]=ke,u[11]=O[14],u[12]=_e,u[13]=Be,u[14]=Ye}else u[0]=O[0],u[1]=O[4],u[2]=O[8],u[3]=O[12],u[4]=O[1],u[5]=O[5],u[6]=O[9],u[7]=O[13],u[8]=O[2],u[9]=O[6],u[10]=O[10],u[11]=O[14],u[12]=O[3],u[13]=O[7],u[14]=O[11],u[15]=O[15];return u}function ct(u,O){var ue=O[0],ye=O[1],_e=O[2],ke=O[3],Be=O[4],Ye=O[5],Je=O[6],dt=O[7],It=O[8],ir=O[9],cr=O[10],nr=O[11],Or=O[12],Cr=O[13],hr=O[14],rn=O[15],Jn=ue*Ye-ye*Be,qn=ue*Je-_e*Be,Un=ue*dt-ke*Be,Mn=ye*Je-_e*Ye,Cn=ye*dt-ke*Ye,Ga=_e*dt-ke*Je,ei=It*Cr-ir*Or,Ka=It*hr-cr*Or,$a=It*rn-nr*Or,Ha=ir*hr-cr*Cr,fi=ir*rn-nr*Cr,bi=cr*rn-nr*hr,ha=Jn*bi-qn*fi+Un*Ha+Mn*$a-Cn*Ka+Ga*ei;return ha?(ha=1/ha,u[0]=(Ye*bi-Je*fi+dt*Ha)*ha,u[1]=(_e*fi-ye*bi-ke*Ha)*ha,u[2]=(Cr*Ga-hr*Cn+rn*Mn)*ha,u[3]=(cr*Cn-ir*Ga-nr*Mn)*ha,u[4]=(Je*$a-Be*bi-dt*Ka)*ha,u[5]=(ue*bi-_e*$a+ke*Ka)*ha,u[6]=(hr*Un-Or*Ga-rn*qn)*ha,u[7]=(It*Ga-cr*Un+nr*qn)*ha,u[8]=(Be*fi-Ye*$a+dt*ei)*ha,u[9]=(ye*$a-ue*fi-ke*ei)*ha,u[10]=(Or*Cn-Cr*Un+rn*Jn)*ha,u[11]=(ir*Un-It*Cn-nr*Jn)*ha,u[12]=(Ye*Ka-Be*Ha-Je*ei)*ha,u[13]=(ue*Ha-ye*Ka+_e*ei)*ha,u[14]=(Cr*qn-Or*Mn-hr*Jn)*ha,u[15]=(It*Mn-ir*qn+cr*Jn)*ha,u):null}function Wt(u,O){var ue=O[0],ye=O[1],_e=O[2],ke=O[3],Be=O[4],Ye=O[5],Je=O[6],dt=O[7],It=O[8],ir=O[9],cr=O[10],nr=O[11],Or=O[12],Cr=O[13],hr=O[14],rn=O[15];return u[0]=Ye*(cr*rn-nr*hr)-ir*(Je*rn-dt*hr)+Cr*(Je*nr-dt*cr),u[1]=-(ye*(cr*rn-nr*hr)-ir*(_e*rn-ke*hr)+Cr*(_e*nr-ke*cr)),u[2]=ye*(Je*rn-dt*hr)-Ye*(_e*rn-ke*hr)+Cr*(_e*dt-ke*Je),u[3]=-(ye*(Je*nr-dt*cr)-Ye*(_e*nr-ke*cr)+ir*(_e*dt-ke*Je)),u[4]=-(Be*(cr*rn-nr*hr)-It*(Je*rn-dt*hr)+Or*(Je*nr-dt*cr)),u[5]=ue*(cr*rn-nr*hr)-It*(_e*rn-ke*hr)+Or*(_e*nr-ke*cr),u[6]=-(ue*(Je*rn-dt*hr)-Be*(_e*rn-ke*hr)+Or*(_e*dt-ke*Je)),u[7]=ue*(Je*nr-dt*cr)-Be*(_e*nr-ke*cr)+It*(_e*dt-ke*Je),u[8]=Be*(ir*rn-nr*Cr)-It*(Ye*rn-dt*Cr)+Or*(Ye*nr-dt*ir),u[9]=-(ue*(ir*rn-nr*Cr)-It*(ye*rn-ke*Cr)+Or*(ye*nr-ke*ir)),u[10]=ue*(Ye*rn-dt*Cr)-Be*(ye*rn-ke*Cr)+Or*(ye*dt-ke*Ye),u[11]=-(ue*(Ye*nr-dt*ir)-Be*(ye*nr-ke*ir)+It*(ye*dt-ke*Ye)),u[12]=-(Be*(ir*hr-cr*Cr)-It*(Ye*hr-Je*Cr)+Or*(Ye*cr-Je*ir)),u[13]=ue*(ir*hr-cr*Cr)-It*(ye*hr-_e*Cr)+Or*(ye*cr-_e*ir),u[14]=-(ue*(Ye*hr-Je*Cr)-Be*(ye*hr-_e*Cr)+Or*(ye*Je-_e*Ye)),u[15]=ue*(Ye*cr-Je*ir)-Be*(ye*cr-_e*ir)+It*(ye*Je-_e*Ye),u}function Er(u){var O=u[0],ue=u[1],ye=u[2],_e=u[3],ke=u[4],Be=u[5],Ye=u[6],Je=u[7],dt=u[8],It=u[9],ir=u[10],cr=u[11],nr=u[12],Or=u[13],Cr=u[14],hr=u[15],rn=O*Be-ue*ke,Jn=O*Ye-ye*ke,qn=O*Je-_e*ke,Un=ue*Ye-ye*Be,Mn=ue*Je-_e*Be,Cn=ye*Je-_e*Ye,Ga=dt*Or-It*nr,ei=dt*Cr-ir*nr,Ka=dt*hr-cr*nr,$a=It*Cr-ir*Or,Ha=It*hr-cr*Or,fi=ir*hr-cr*Cr;return rn*fi-Jn*Ha+qn*$a+Un*Ka-Mn*ei+Cn*Ga}function Dr(u,O,ue){var ye=O[0],_e=O[1],ke=O[2],Be=O[3],Ye=O[4],Je=O[5],dt=O[6],It=O[7],ir=O[8],cr=O[9],nr=O[10],Or=O[11],Cr=O[12],hr=O[13],rn=O[14],Jn=O[15],qn=ue[0],Un=ue[1],Mn=ue[2],Cn=ue[3];return u[0]=qn*ye+Un*Ye+Mn*ir+Cn*Cr,u[1]=qn*_e+Un*Je+Mn*cr+Cn*hr,u[2]=qn*ke+Un*dt+Mn*nr+Cn*rn,u[3]=qn*Be+Un*It+Mn*Or+Cn*Jn,qn=ue[4],Un=ue[5],Mn=ue[6],Cn=ue[7],u[4]=qn*ye+Un*Ye+Mn*ir+Cn*Cr,u[5]=qn*_e+Un*Je+Mn*cr+Cn*hr,u[6]=qn*ke+Un*dt+Mn*nr+Cn*rn,u[7]=qn*Be+Un*It+Mn*Or+Cn*Jn,qn=ue[8],Un=ue[9],Mn=ue[10],Cn=ue[11],u[8]=qn*ye+Un*Ye+Mn*ir+Cn*Cr,u[9]=qn*_e+Un*Je+Mn*cr+Cn*hr,u[10]=qn*ke+Un*dt+Mn*nr+Cn*rn,u[11]=qn*Be+Un*It+Mn*Or+Cn*Jn,qn=ue[12],Un=ue[13],Mn=ue[14],Cn=ue[15],u[12]=qn*ye+Un*Ye+Mn*ir+Cn*Cr,u[13]=qn*_e+Un*Je+Mn*cr+Cn*hr,u[14]=qn*ke+Un*dt+Mn*nr+Cn*rn,u[15]=qn*Be+Un*It+Mn*Or+Cn*Jn,u}function Vr(u,O,ue){var ye=ue[0],_e=ue[1],ke=ue[2],Be,Ye,Je,dt,It,ir,cr,nr,Or,Cr,hr,rn;return O===u?(u[12]=O[0]*ye+O[4]*_e+O[8]*ke+O[12],u[13]=O[1]*ye+O[5]*_e+O[9]*ke+O[13],u[14]=O[2]*ye+O[6]*_e+O[10]*ke+O[14],u[15]=O[3]*ye+O[7]*_e+O[11]*ke+O[15]):(Be=O[0],Ye=O[1],Je=O[2],dt=O[3],It=O[4],ir=O[5],cr=O[6],nr=O[7],Or=O[8],Cr=O[9],hr=O[10],rn=O[11],u[0]=Be,u[1]=Ye,u[2]=Je,u[3]=dt,u[4]=It,u[5]=ir,u[6]=cr,u[7]=nr,u[8]=Or,u[9]=Cr,u[10]=hr,u[11]=rn,u[12]=Be*ye+It*_e+Or*ke+O[12],u[13]=Ye*ye+ir*_e+Cr*ke+O[13],u[14]=Je*ye+cr*_e+hr*ke+O[14],u[15]=dt*ye+nr*_e+rn*ke+O[15]),u}function pn(u,O,ue){var ye=ue[0],_e=ue[1],ke=ue[2];return u[0]=O[0]*ye,u[1]=O[1]*ye,u[2]=O[2]*ye,u[3]=O[3]*ye,u[4]=O[4]*_e,u[5]=O[5]*_e,u[6]=O[6]*_e,u[7]=O[7]*_e,u[8]=O[8]*ke,u[9]=O[9]*ke,u[10]=O[10]*ke,u[11]=O[11]*ke,u[12]=O[12],u[13]=O[13],u[14]=O[14],u[15]=O[15],u}function wn(u,O,ue,ye){var _e=ye[0],ke=ye[1],Be=ye[2],Ye=Math.hypot(_e,ke,Be),Je,dt,It,ir,cr,nr,Or,Cr,hr,rn,Jn,qn,Un,Mn,Cn,Ga,ei,Ka,$a,Ha,fi,bi,ha,Oa;return Ye0?(ue[0]=(Ye*Be+It*ye+Je*ke-dt*_e)*2/ir,ue[1]=(Je*Be+It*_e+dt*ye-Ye*ke)*2/ir,ue[2]=(dt*Be+It*ke+Ye*_e-Je*ye)*2/ir):(ue[0]=(Ye*Be+It*ye+Je*ke-dt*_e)*2,ue[1]=(Je*Be+It*_e+dt*ye-Ye*ke)*2,ue[2]=(dt*Be+It*ke+Ye*_e-Je*ye)*2),Dt(u,O,ue),u}function ne(u,O){return u[0]=O[12],u[1]=O[13],u[2]=O[14],u}function ae(u,O){var ue=O[0],ye=O[1],_e=O[2],ke=O[4],Be=O[5],Ye=O[6],Je=O[8],dt=O[9],It=O[10];return u[0]=Math.hypot(ue,ye,_e),u[1]=Math.hypot(ke,Be,Ye),u[2]=Math.hypot(Je,dt,It),u}function P(u,O){var ue=new y.ARRAY_TYPE(3);ae(ue,O);var ye=1/ue[0],_e=1/ue[1],ke=1/ue[2],Be=O[0]*ye,Ye=O[1]*_e,Je=O[2]*ke,dt=O[4]*ye,It=O[5]*_e,ir=O[6]*ke,cr=O[8]*ye,nr=O[9]*_e,Or=O[10]*ke,Cr=Be+It+Or,hr=0;return Cr>0?(hr=Math.sqrt(Cr+1)*2,u[3]=.25*hr,u[0]=(ir-nr)/hr,u[1]=(cr-Je)/hr,u[2]=(Ye-dt)/hr):Be>It&&Be>Or?(hr=Math.sqrt(1+Be-It-Or)*2,u[3]=(ir-nr)/hr,u[0]=.25*hr,u[1]=(Ye+dt)/hr,u[2]=(cr+Je)/hr):It>Or?(hr=Math.sqrt(1+It-Be-Or)*2,u[3]=(cr-Je)/hr,u[0]=(Ye+dt)/hr,u[1]=.25*hr,u[2]=(ir+nr)/hr):(hr=Math.sqrt(1+Or-Be-It)*2,u[3]=(Ye-dt)/hr,u[0]=(cr+Je)/hr,u[1]=(ir+nr)/hr,u[2]=.25*hr),u}function S(u,O,ue,ye){var _e=O[0],ke=O[1],Be=O[2],Ye=O[3],Je=_e+_e,dt=ke+ke,It=Be+Be,ir=_e*Je,cr=_e*dt,nr=_e*It,Or=ke*dt,Cr=ke*It,hr=Be*It,rn=Ye*Je,Jn=Ye*dt,qn=Ye*It,Un=ye[0],Mn=ye[1],Cn=ye[2];return u[0]=(1-(Or+hr))*Un,u[1]=(cr+qn)*Un,u[2]=(nr-Jn)*Un,u[3]=0,u[4]=(cr-qn)*Mn,u[5]=(1-(ir+hr))*Mn,u[6]=(Cr+rn)*Mn,u[7]=0,u[8]=(nr+Jn)*Cn,u[9]=(Cr-rn)*Cn,u[10]=(1-(ir+Or))*Cn,u[11]=0,u[12]=ue[0],u[13]=ue[1],u[14]=ue[2],u[15]=1,u}function C(u,O,ue,ye,_e){var ke=O[0],Be=O[1],Ye=O[2],Je=O[3],dt=ke+ke,It=Be+Be,ir=Ye+Ye,cr=ke*dt,nr=ke*It,Or=ke*ir,Cr=Be*It,hr=Be*ir,rn=Ye*ir,Jn=Je*dt,qn=Je*It,Un=Je*ir,Mn=ye[0],Cn=ye[1],Ga=ye[2],ei=_e[0],Ka=_e[1],$a=_e[2],Ha=(1-(Cr+rn))*Mn,fi=(nr+Un)*Mn,bi=(Or-qn)*Mn,ha=(nr-Un)*Cn,Oa=(1-(cr+rn))*Cn,Jo=(hr+Jn)*Cn,Wo=(Or+qn)*Ga,oo=(hr-Jn)*Ga,Qs=(1-(cr+Cr))*Ga;return u[0]=Ha,u[1]=fi,u[2]=bi,u[3]=0,u[4]=ha,u[5]=Oa,u[6]=Jo,u[7]=0,u[8]=Wo,u[9]=oo,u[10]=Qs,u[11]=0,u[12]=ue[0]+ei-(Ha*ei+ha*Ka+Wo*$a),u[13]=ue[1]+Ka-(fi*ei+Oa*Ka+oo*$a),u[14]=ue[2]+$a-(bi*ei+Jo*Ka+Qs*$a),u[15]=1,u}function V(u,O){var ue=O[0],ye=O[1],_e=O[2],ke=O[3],Be=ue+ue,Ye=ye+ye,Je=_e+_e,dt=ue*Be,It=ye*Be,ir=ye*Ye,cr=_e*Be,nr=_e*Ye,Or=_e*Je,Cr=ke*Be,hr=ke*Ye,rn=ke*Je;return u[0]=1-ir-Or,u[1]=It+rn,u[2]=cr-hr,u[3]=0,u[4]=It-rn,u[5]=1-dt-Or,u[6]=nr+Cr,u[7]=0,u[8]=cr+hr,u[9]=nr-Cr,u[10]=1-dt-ir,u[11]=0,u[12]=0,u[13]=0,u[14]=0,u[15]=1,u}function he(u,O,ue,ye,_e,ke,Be){var Ye=1/(ue-O),Je=1/(_e-ye),dt=1/(ke-Be);return u[0]=ke*2*Ye,u[1]=0,u[2]=0,u[3]=0,u[4]=0,u[5]=ke*2*Je,u[6]=0,u[7]=0,u[8]=(ue+O)*Ye,u[9]=(_e+ye)*Je,u[10]=(Be+ke)*dt,u[11]=-1,u[12]=0,u[13]=0,u[14]=Be*ke*2*dt,u[15]=0,u}function xe(u,O,ue,ye,_e){var ke=1/Math.tan(O/2),Be;return u[0]=ke/ue,u[1]=0,u[2]=0,u[3]=0,u[4]=0,u[5]=ke,u[6]=0,u[7]=0,u[8]=0,u[9]=0,u[11]=-1,u[12]=0,u[13]=0,u[15]=0,_e!=null&&_e!==Infinity?(Be=1/(ye-_e),u[10]=(_e+ye)*Be,u[14]=2*_e*ye*Be):(u[10]=-1,u[14]=-2*ye),u}var Ee=xe;function Ne(u,O,ue,ye,_e){var ke=1/Math.tan(O/2),Be;return u[0]=ke/ue,u[1]=0,u[2]=0,u[3]=0,u[4]=0,u[5]=ke,u[6]=0,u[7]=0,u[8]=0,u[9]=0,u[11]=-1,u[12]=0,u[13]=0,u[15]=0,_e!=null&&_e!==Infinity?(Be=1/(ye-_e),u[10]=_e*Be,u[14]=_e*ye*Be):(u[10]=-1,u[14]=-ye),u}function Et(u,O,ue,ye){var _e=Math.tan(O.upDegrees*Math.PI/180),ke=Math.tan(O.downDegrees*Math.PI/180),Be=Math.tan(O.leftDegrees*Math.PI/180),Ye=Math.tan(O.rightDegrees*Math.PI/180),Je=2/(Be+Ye),dt=2/(_e+ke);return u[0]=Je,u[1]=0,u[2]=0,u[3]=0,u[4]=0,u[5]=dt,u[6]=0,u[7]=0,u[8]=-((Be-Ye)*Je*.5),u[9]=(_e-ke)*dt*.5,u[10]=ye/(ue-ye),u[11]=-1,u[12]=0,u[13]=0,u[14]=ye*ue/(ue-ye),u[15]=0,u}function st(u,O,ue,ye,_e,ke,Be){var Ye=1/(O-ue),Je=1/(ye-_e),dt=1/(ke-Be);return u[0]=-2*Ye,u[1]=0,u[2]=0,u[3]=0,u[4]=0,u[5]=-2*Je,u[6]=0,u[7]=0,u[8]=0,u[9]=0,u[10]=2*dt,u[11]=0,u[12]=(O+ue)*Ye,u[13]=(_e+ye)*Je,u[14]=(Be+ke)*dt,u[15]=1,u}var Pt=st;function $t(u,O,ue,ye,_e,ke,Be){var Ye=1/(O-ue),Je=1/(ye-_e),dt=1/(ke-Be);return u[0]=-2*Ye,u[1]=0,u[2]=0,u[3]=0,u[4]=0,u[5]=-2*Je,u[6]=0,u[7]=0,u[8]=0,u[9]=0,u[10]=dt,u[11]=0,u[12]=(O+ue)*Ye,u[13]=(_e+ye)*Je,u[14]=ke*dt,u[15]=1,u}function Ht(u,O,ue,ye){var _e,ke,Be,Ye,Je,dt,It,ir,cr,nr,Or=O[0],Cr=O[1],hr=O[2],rn=ye[0],Jn=ye[1],qn=ye[2],Un=ue[0],Mn=ue[1],Cn=ue[2];return Math.abs(Or-Un)0&&(nr=1/Math.sqrt(nr),It*=nr,ir*=nr,cr*=nr);var Or=Je*cr-dt*ir,Cr=dt*It-Ye*cr,hr=Ye*ir-Je*It;return nr=Or*Or+Cr*Cr+hr*hr,nr>0&&(nr=1/Math.sqrt(nr),Or*=nr,Cr*=nr,hr*=nr),u[0]=Or,u[1]=Cr,u[2]=hr,u[3]=0,u[4]=ir*hr-cr*Cr,u[5]=cr*Or-It*hr,u[6]=It*Cr-ir*Or,u[7]=0,u[8]=It,u[9]=ir,u[10]=cr,u[11]=0,u[12]=_e,u[13]=ke,u[14]=Be,u[15]=1,u}function hn(u){return"mat4("+u[0]+", "+u[1]+", "+u[2]+", "+u[3]+", "+u[4]+", "+u[5]+", "+u[6]+", "+u[7]+", "+u[8]+", "+u[9]+", "+u[10]+", "+u[11]+", "+u[12]+", "+u[13]+", "+u[14]+", "+u[15]+")"}function Ot(u){return Math.hypot(u[0],u[1],u[2],u[3],u[4],u[5],u[6],u[7],u[8],u[9],u[10],u[11],u[12],u[13],u[14],u[15])}function Qt(u,O,ue){return u[0]=O[0]+ue[0],u[1]=O[1]+ue[1],u[2]=O[2]+ue[2],u[3]=O[3]+ue[3],u[4]=O[4]+ue[4],u[5]=O[5]+ue[5],u[6]=O[6]+ue[6],u[7]=O[7]+ue[7],u[8]=O[8]+ue[8],u[9]=O[9]+ue[9],u[10]=O[10]+ue[10],u[11]=O[11]+ue[11],u[12]=O[12]+ue[12],u[13]=O[13]+ue[13],u[14]=O[14]+ue[14],u[15]=O[15]+ue[15],u}function pr(u,O,ue){return u[0]=O[0]-ue[0],u[1]=O[1]-ue[1],u[2]=O[2]-ue[2],u[3]=O[3]-ue[3],u[4]=O[4]-ue[4],u[5]=O[5]-ue[5],u[6]=O[6]-ue[6],u[7]=O[7]-ue[7],u[8]=O[8]-ue[8],u[9]=O[9]-ue[9],u[10]=O[10]-ue[10],u[11]=O[11]-ue[11],u[12]=O[12]-ue[12],u[13]=O[13]-ue[13],u[14]=O[14]-ue[14],u[15]=O[15]-ue[15],u}function en(u,O,ue){return u[0]=O[0]*ue,u[1]=O[1]*ue,u[2]=O[2]*ue,u[3]=O[3]*ue,u[4]=O[4]*ue,u[5]=O[5]*ue,u[6]=O[6]*ue,u[7]=O[7]*ue,u[8]=O[8]*ue,u[9]=O[9]*ue,u[10]=O[10]*ue,u[11]=O[11]*ue,u[12]=O[12]*ue,u[13]=O[13]*ue,u[14]=O[14]*ue,u[15]=O[15]*ue,u}function Nr(u,O,ue,ye){return u[0]=O[0]+ue[0]*ye,u[1]=O[1]+ue[1]*ye,u[2]=O[2]+ue[2]*ye,u[3]=O[3]+ue[3]*ye,u[4]=O[4]+ue[4]*ye,u[5]=O[5]+ue[5]*ye,u[6]=O[6]+ue[6]*ye,u[7]=O[7]+ue[7]*ye,u[8]=O[8]+ue[8]*ye,u[9]=O[9]+ue[9]*ye,u[10]=O[10]+ue[10]*ye,u[11]=O[11]+ue[11]*ye,u[12]=O[12]+ue[12]*ye,u[13]=O[13]+ue[13]*ye,u[14]=O[14]+ue[14]*ye,u[15]=O[15]+ue[15]*ye,u}function ta(u,O){return u[0]===O[0]&&u[1]===O[1]&&u[2]===O[2]&&u[3]===O[3]&&u[4]===O[4]&&u[5]===O[5]&&u[6]===O[6]&&u[7]===O[7]&&u[8]===O[8]&&u[9]===O[9]&&u[10]===O[10]&&u[11]===O[11]&&u[12]===O[12]&&u[13]===O[13]&&u[14]===O[14]&&u[15]===O[15]}function kn(u,O){var ue=u[0],ye=u[1],_e=u[2],ke=u[3],Be=u[4],Ye=u[5],Je=u[6],dt=u[7],It=u[8],ir=u[9],cr=u[10],nr=u[11],Or=u[12],Cr=u[13],hr=u[14],rn=u[15],Jn=O[0],qn=O[1],Un=O[2],Mn=O[3],Cn=O[4],Ga=O[5],ei=O[6],Ka=O[7],$a=O[8],Ha=O[9],fi=O[10],bi=O[11],ha=O[12],Oa=O[13],Jo=O[14],Wo=O[15];return Math.abs(ue-Jn)<=y.EPSILON*Math.max(1,Math.abs(ue),Math.abs(Jn))&&Math.abs(ye-qn)<=y.EPSILON*Math.max(1,Math.abs(ye),Math.abs(qn))&&Math.abs(_e-Un)<=y.EPSILON*Math.max(1,Math.abs(_e),Math.abs(Un))&&Math.abs(ke-Mn)<=y.EPSILON*Math.max(1,Math.abs(ke),Math.abs(Mn))&&Math.abs(Be-Cn)<=y.EPSILON*Math.max(1,Math.abs(Be),Math.abs(Cn))&&Math.abs(Ye-Ga)<=y.EPSILON*Math.max(1,Math.abs(Ye),Math.abs(Ga))&&Math.abs(Je-ei)<=y.EPSILON*Math.max(1,Math.abs(Je),Math.abs(ei))&&Math.abs(dt-Ka)<=y.EPSILON*Math.max(1,Math.abs(dt),Math.abs(Ka))&&Math.abs(It-$a)<=y.EPSILON*Math.max(1,Math.abs(It),Math.abs($a))&&Math.abs(ir-Ha)<=y.EPSILON*Math.max(1,Math.abs(ir),Math.abs(Ha))&&Math.abs(cr-fi)<=y.EPSILON*Math.max(1,Math.abs(cr),Math.abs(fi))&&Math.abs(nr-bi)<=y.EPSILON*Math.max(1,Math.abs(nr),Math.abs(bi))&&Math.abs(Or-ha)<=y.EPSILON*Math.max(1,Math.abs(Or),Math.abs(ha))&&Math.abs(Cr-Oa)<=y.EPSILON*Math.max(1,Math.abs(Cr),Math.abs(Oa))&&Math.abs(hr-Jo)<=y.EPSILON*Math.max(1,Math.abs(hr),Math.abs(Jo))&&Math.abs(rn-Wo)<=y.EPSILON*Math.max(1,Math.abs(rn),Math.abs(Wo))}var En=Dr,Rn=pr,Yn=z(77160);function bn(){var u=new y.ARRAY_TYPE(4);return y.ARRAY_TYPE!=Float32Array&&(u[0]=0,u[1]=0,u[2]=0,u[3]=0),u}function je(u){var O=new y.ARRAY_TYPE(4);return O[0]=u[0],O[1]=u[1],O[2]=u[2],O[3]=u[3],O}function Ce(u,O,ue,ye){var _e=new y.ARRAY_TYPE(4);return _e[0]=u,_e[1]=O,_e[2]=ue,_e[3]=ye,_e}function Xe(u,O){return u[0]=O[0],u[1]=O[1],u[2]=O[2],u[3]=O[3],u}function ut(u,O,ue,ye,_e){return u[0]=O,u[1]=ue,u[2]=ye,u[3]=_e,u}function ot(u,O,ue){return u[0]=O[0]+ue[0],u[1]=O[1]+ue[1],u[2]=O[2]+ue[2],u[3]=O[3]+ue[3],u}function bt(u,O,ue){return u[0]=O[0]-ue[0],u[1]=O[1]-ue[1],u[2]=O[2]-ue[2],u[3]=O[3]-ue[3],u}function Xt(u,O,ue){return u[0]=O[0]*ue[0],u[1]=O[1]*ue[1],u[2]=O[2]*ue[2],u[3]=O[3]*ue[3],u}function wr(u,O,ue){return u[0]=O[0]/ue[0],u[1]=O[1]/ue[1],u[2]=O[2]/ue[2],u[3]=O[3]/ue[3],u}function Wr(u,O){return u[0]=Math.ceil(O[0]),u[1]=Math.ceil(O[1]),u[2]=Math.ceil(O[2]),u[3]=Math.ceil(O[3]),u}function on(u,O){return u[0]=Math.floor(O[0]),u[1]=Math.floor(O[1]),u[2]=Math.floor(O[2]),u[3]=Math.floor(O[3]),u}function xn(u,O,ue){return u[0]=Math.min(O[0],ue[0]),u[1]=Math.min(O[1],ue[1]),u[2]=Math.min(O[2],ue[2]),u[3]=Math.min(O[3],ue[3]),u}function zn(u,O,ue){return u[0]=Math.max(O[0],ue[0]),u[1]=Math.max(O[1],ue[1]),u[2]=Math.max(O[2],ue[2]),u[3]=Math.max(O[3],ue[3]),u}function Qn(u,O){return u[0]=Math.round(O[0]),u[1]=Math.round(O[1]),u[2]=Math.round(O[2]),u[3]=Math.round(O[3]),u}function ia(u,O,ue){return u[0]=O[0]*ue,u[1]=O[1]*ue,u[2]=O[2]*ue,u[3]=O[3]*ue,u}function Wa(u,O,ue,ye){return u[0]=O[0]+ue[0]*ye,u[1]=O[1]+ue[1]*ye,u[2]=O[2]+ue[2]*ye,u[3]=O[3]+ue[3]*ye,u}function Ia(u,O){var ue=O[0]-u[0],ye=O[1]-u[1],_e=O[2]-u[2],ke=O[3]-u[3];return Math.hypot(ue,ye,_e,ke)}function Ba(u,O){var ue=O[0]-u[0],ye=O[1]-u[1],_e=O[2]-u[2],ke=O[3]-u[3];return ue*ue+ye*ye+_e*_e+ke*ke}function Ea(u){var O=u[0],ue=u[1],ye=u[2],_e=u[3];return Math.hypot(O,ue,ye,_e)}function qa(u){var O=u[0],ue=u[1],ye=u[2],_e=u[3];return O*O+ue*ue+ye*ye+_e*_e}function si(u,O){return u[0]=-O[0],u[1]=-O[1],u[2]=-O[2],u[3]=-O[3],u}function _a(u,O){return u[0]=1/O[0],u[1]=1/O[1],u[2]=1/O[2],u[3]=1/O[3],u}function So(u,O){var ue=O[0],ye=O[1],_e=O[2],ke=O[3],Be=ue*ue+ye*ye+_e*_e+ke*ke;return Be>0&&(Be=1/Math.sqrt(Be)),u[0]=ue*Be,u[1]=ye*Be,u[2]=_e*Be,u[3]=ke*Be,u}function to(u,O){return u[0]*O[0]+u[1]*O[1]+u[2]*O[2]+u[3]*O[3]}function co(u,O,ue,ye){var _e=ue[0]*ye[1]-ue[1]*ye[0],ke=ue[0]*ye[2]-ue[2]*ye[0],Be=ue[0]*ye[3]-ue[3]*ye[0],Ye=ue[1]*ye[2]-ue[2]*ye[1],Je=ue[1]*ye[3]-ue[3]*ye[1],dt=ue[2]*ye[3]-ue[3]*ye[2],It=O[0],ir=O[1],cr=O[2],nr=O[3];return u[0]=ir*dt-cr*Je+nr*Ye,u[1]=-(It*dt)+cr*Be-nr*ke,u[2]=It*Je-ir*Be+nr*_e,u[3]=-(It*Ye)+ir*ke-cr*_e,u}function ni(u,O,ue,ye){var _e=O[0],ke=O[1],Be=O[2],Ye=O[3];return u[0]=_e+ye*(ue[0]-_e),u[1]=ke+ye*(ue[1]-ke),u[2]=Be+ye*(ue[2]-Be),u[3]=Ye+ye*(ue[3]-Ye),u}function lo(u,O){O=O||1;var ue,ye,_e,ke,Be,Ye;do ue=y.RANDOM()*2-1,ye=y.RANDOM()*2-1,Be=ue*ue+ye*ye;while(Be>=1);do _e=y.RANDOM()*2-1,ke=y.RANDOM()*2-1,Ye=_e*_e+ke*ke;while(Ye>=1);var Je=Math.sqrt((1-Be)/Ye);return u[0]=O*ue,u[1]=O*ye,u[2]=O*_e*Je,u[3]=O*ke*Je,u}function Ss(u,O,ue){var ye=O[0],_e=O[1],ke=O[2],Be=O[3];return u[0]=ue[0]*ye+ue[4]*_e+ue[8]*ke+ue[12]*Be,u[1]=ue[1]*ye+ue[5]*_e+ue[9]*ke+ue[13]*Be,u[2]=ue[2]*ye+ue[6]*_e+ue[10]*ke+ue[14]*Be,u[3]=ue[3]*ye+ue[7]*_e+ue[11]*ke+ue[15]*Be,u}function Ro(u,O,ue){var ye=O[0],_e=O[1],ke=O[2],Be=ue[0],Ye=ue[1],Je=ue[2],dt=ue[3],It=dt*ye+Ye*ke-Je*_e,ir=dt*_e+Je*ye-Be*ke,cr=dt*ke+Be*_e-Ye*ye,nr=-Be*ye-Ye*_e-Je*ke;return u[0]=It*dt+nr*-Be+ir*-Je-cr*-Ye,u[1]=ir*dt+nr*-Ye+cr*-Be-It*-Je,u[2]=cr*dt+nr*-Je+It*-Ye-ir*-Be,u[3]=O[3],u}function mi(u){return u[0]=0,u[1]=0,u[2]=0,u[3]=0,u}function ya(u){return"vec4("+u[0]+", "+u[1]+", "+u[2]+", "+u[3]+")"}function _o(u,O){return u[0]===O[0]&&u[1]===O[1]&&u[2]===O[2]&&u[3]===O[3]}function Yi(u,O){var ue=u[0],ye=u[1],_e=u[2],ke=u[3],Be=O[0],Ye=O[1],Je=O[2],dt=O[3];return Math.abs(ue-Be)<=y.EPSILON*Math.max(1,Math.abs(ue),Math.abs(Be))&&Math.abs(ye-Ye)<=y.EPSILON*Math.max(1,Math.abs(ye),Math.abs(Ye))&&Math.abs(_e-Je)<=y.EPSILON*Math.max(1,Math.abs(_e),Math.abs(Je))&&Math.abs(ke-dt)<=y.EPSILON*Math.max(1,Math.abs(ke),Math.abs(dt))}var Fi=bt,Bo=Xt,_s=wr,Oo=Ia,Hi=Ba,_n=Ea,Fo=qa,Go=function(){var u=bn();return function(O,ue,ye,_e,ke,Be){var Ye,Je;for(ue||(ue=4),ye||(ye=0),_e?Je=Math.min(_e*ue+ye,O.length):Je=O.length,Ye=ye;Yey.EPSILON?(u[0]=O[0]/ye,u[1]=O[1]/ye,u[2]=O[2]/ye):(u[0]=1,u[1]=0,u[2]=0),ue}function Mo(u,O){var ue=Ya(u,O);return Math.acos(2*ue*ue-1)}function ho(u,O,ue){var ye=O[0],_e=O[1],ke=O[2],Be=O[3],Ye=ue[0],Je=ue[1],dt=ue[2],It=ue[3];return u[0]=ye*It+Be*Ye+_e*dt-ke*Je,u[1]=_e*It+Be*Je+ke*Ye-ye*dt,u[2]=ke*It+Be*dt+ye*Je-_e*Ye,u[3]=Be*It-ye*Ye-_e*Je-ke*dt,u}function Gi(u,O,ue){ue*=.5;var ye=O[0],_e=O[1],ke=O[2],Be=O[3],Ye=Math.sin(ue),Je=Math.cos(ue);return u[0]=ye*Je+Be*Ye,u[1]=_e*Je+ke*Ye,u[2]=ke*Je-_e*Ye,u[3]=Be*Je-ye*Ye,u}function Di(u,O,ue){ue*=.5;var ye=O[0],_e=O[1],ke=O[2],Be=O[3],Ye=Math.sin(ue),Je=Math.cos(ue);return u[0]=ye*Je-ke*Ye,u[1]=_e*Je+Be*Ye,u[2]=ke*Je+ye*Ye,u[3]=Be*Je-_e*Ye,u}function $o(u,O,ue){ue*=.5;var ye=O[0],_e=O[1],ke=O[2],Be=O[3],Ye=Math.sin(ue),Je=Math.cos(ue);return u[0]=ye*Je+_e*Ye,u[1]=_e*Je-ye*Ye,u[2]=ke*Je+Be*Ye,u[3]=Be*Je-ke*Ye,u}function Ni(u,O){var ue=O[0],ye=O[1],_e=O[2];return u[0]=ue,u[1]=ye,u[2]=_e,u[3]=Math.sqrt(Math.abs(1-ue*ue-ye*ye-_e*_e)),u}function ro(u,O){var ue=O[0],ye=O[1],_e=O[2],ke=O[3],Be=Math.sqrt(ue*ue+ye*ye+_e*_e),Ye=Math.exp(ke),Je=Be>0?Ye*Math.sin(Be)/Be:0;return u[0]=ue*Je,u[1]=ye*Je,u[2]=_e*Je,u[3]=Ye*Math.cos(Be),u}function Qo(u,O){var ue=O[0],ye=O[1],_e=O[2],ke=O[3],Be=Math.sqrt(ue*ue+ye*ye+_e*_e),Ye=Be>0?Math.atan2(Be,ke)/Be:0;return u[0]=ue*Ye,u[1]=ye*Ye,u[2]=_e*Ye,u[3]=.5*Math.log(ue*ue+ye*ye+_e*_e+ke*ke),u}function ns(u,O,ue){return Qo(u,O),Fa(u,u,ue),ro(u,u),u}function zi(u,O,ue,ye){var _e=O[0],ke=O[1],Be=O[2],Ye=O[3],Je=ue[0],dt=ue[1],It=ue[2],ir=ue[3],cr,nr,Or,Cr,hr;return nr=_e*Je+ke*dt+Be*It+Ye*ir,nr<0&&(nr=-nr,Je=-Je,dt=-dt,It=-It,ir=-ir),1-nr>y.EPSILON?(cr=Math.acos(nr),Or=Math.sin(cr),Cr=Math.sin((1-ye)*cr)/Or,hr=Math.sin(ye*cr)/Or):(Cr=1-ye,hr=ye),u[0]=Cr*_e+hr*Je,u[1]=Cr*ke+hr*dt,u[2]=Cr*Be+hr*It,u[3]=Cr*Ye+hr*ir,u}function ga(u){var O=y.RANDOM(),ue=y.RANDOM(),ye=y.RANDOM(),_e=Math.sqrt(1-O),ke=Math.sqrt(O);return u[0]=_e*Math.sin(2*Math.PI*ue),u[1]=_e*Math.cos(2*Math.PI*ue),u[2]=ke*Math.sin(2*Math.PI*ye),u[3]=ke*Math.cos(2*Math.PI*ye),u}function vo(u,O){var ue=O[0],ye=O[1],_e=O[2],ke=O[3],Be=ue*ue+ye*ye+_e*_e+ke*ke,Ye=Be?1/Be:0;return u[0]=-ue*Ye,u[1]=-ye*Ye,u[2]=-_e*Ye,u[3]=ke*Ye,u}function Vs(u,O){return u[0]=-O[0],u[1]=-O[1],u[2]=-O[2],u[3]=O[3],u}function Pi(u,O){var ue=O[0]+O[4]+O[8],ye;if(ue>0)ye=Math.sqrt(ue+1),u[3]=.5*ye,ye=.5/ye,u[0]=(O[5]-O[7])*ye,u[1]=(O[6]-O[2])*ye,u[2]=(O[1]-O[3])*ye;else{var _e=0;O[4]>O[0]&&(_e=1),O[8]>O[_e*3+_e]&&(_e=2);var ke=(_e+1)%3,Be=(_e+2)%3;ye=Math.sqrt(O[_e*3+_e]-O[ke*3+ke]-O[Be*3+Be]+1),u[_e]=.5*ye,ye=.5/ye,u[3]=(O[ke*3+Be]-O[Be*3+ke])*ye,u[ke]=(O[ke*3+_e]+O[_e*3+ke])*ye,u[Be]=(O[Be*3+_e]+O[_e*3+Be])*ye}return u}function Ao(u,O,ue,ye){var _e=.5*Math.PI/180;O*=_e,ue*=_e,ye*=_e;var ke=Math.sin(O),Be=Math.cos(O),Ye=Math.sin(ue),Je=Math.cos(ue),dt=Math.sin(ye),It=Math.cos(ye);return u[0]=ke*Je*It-Be*Ye*dt,u[1]=Be*Ye*It+ke*Je*dt,u[2]=Be*Je*dt-ke*Ye*It,u[3]=Be*Je*It+ke*Ye*dt,u}function as(u){return"quat("+u[0]+", "+u[1]+", "+u[2]+", "+u[3]+")"}var vi=je,Zi=Ce,_i=Xe,no=ut,Ui=ot,da=ho,Fa=ia,Ya=to,Ii=ni,Wi=Ea,ao=Wi,go=qa,po=go,yo=So,ji=_o,ka=Yi,Ys=function(){var u=Yn.create(),O=Yn.fromValues(1,0,0),ue=Yn.fromValues(0,1,0);return function(ye,_e,ke){var Be=Yn.dot(_e,ke);return Be<-.999999?(Yn.cross(u,O,_e),Yn.len(u)<1e-6&&Yn.cross(u,ue,_e),Yn.normalize(u,u),Ko(ye,u,Math.PI),ye):Be>.999999?(ye[0]=0,ye[1]=0,ye[2]=0,ye[3]=1,ye):(Yn.cross(u,_e,ke),ye[0]=u[0],ye[1]=u[1],ye[2]=u[2],ye[3]=1+Be,yo(ye,ye))}}(),_f=function(){var u=Va(),O=Va();return function(ue,ye,_e,ke,Be,Ye){return zi(u,ye,Be,Ye),zi(O,_e,ke,Ye),zi(ue,u,O,2*Ye*(1-Ye)),ue}}(),mo=function(){var u=qr.create();return function(O,ue,ye,_e){return u[0]=ye[0],u[3]=ye[1],u[6]=ye[2],u[1]=_e[0],u[4]=_e[1],u[7]=_e[2],u[2]=-ue[0],u[5]=-ue[1],u[8]=-ue[2],yo(O,Pi(O,u))}}();function lu(){var u=new y.ARRAY_TYPE(8);return y.ARRAY_TYPE!=Float32Array&&(u[0]=0,u[1]=0,u[2]=0,u[4]=0,u[5]=0,u[6]=0,u[7]=0),u[3]=1,u}function na(u){var O=new y.ARRAY_TYPE(8);return O[0]=u[0],O[1]=u[1],O[2]=u[2],O[3]=u[3],O[4]=u[4],O[5]=u[5],O[6]=u[6],O[7]=u[7],O}function an(u,O,ue,ye,_e,ke,Be,Ye){var Je=new y.ARRAY_TYPE(8);return Je[0]=u,Je[1]=O,Je[2]=ue,Je[3]=ye,Je[4]=_e,Je[5]=ke,Je[6]=Be,Je[7]=Ye,Je}function Hs(u,O,ue,ye,_e,ke,Be){var Ye=new y.ARRAY_TYPE(8);Ye[0]=u,Ye[1]=O,Ye[2]=ue,Ye[3]=ye;var Je=_e*.5,dt=ke*.5,It=Be*.5;return Ye[4]=Je*ye+dt*ue-It*O,Ye[5]=dt*ye+It*u-Je*ue,Ye[6]=It*ye+Je*O-dt*u,Ye[7]=-Je*u-dt*O-It*ue,Ye}function Xi(u,O,ue){var ye=ue[0]*.5,_e=ue[1]*.5,ke=ue[2]*.5,Be=O[0],Ye=O[1],Je=O[2],dt=O[3];return u[0]=Be,u[1]=Ye,u[2]=Je,u[3]=dt,u[4]=ye*dt+_e*Je-ke*Ye,u[5]=_e*dt+ke*Be-ye*Je,u[6]=ke*dt+ye*Ye-_e*Be,u[7]=-ye*Be-_e*Ye-ke*Je,u}function zo(u,O){return u[0]=0,u[1]=0,u[2]=0,u[3]=1,u[4]=O[0]*.5,u[5]=O[1]*.5,u[6]=O[2]*.5,u[7]=0,u}function is(u,O){return u[0]=O[0],u[1]=O[1],u[2]=O[2],u[3]=O[3],u[4]=0,u[5]=0,u[6]=0,u[7]=0,u}function ui(u,O){var ue=Va();P(ue,O);var ye=new y.ARRAY_TYPE(3);return ne(ye,O),Xi(u,ue,ye),u}function ai(u,O){return u[0]=O[0],u[1]=O[1],u[2]=O[2],u[3]=O[3],u[4]=O[4],u[5]=O[5],u[6]=O[6],u[7]=O[7],u}function Eo(u){return u[0]=0,u[1]=0,u[2]=0,u[3]=1,u[4]=0,u[5]=0,u[6]=0,u[7]=0,u}function Yu(u,O,ue,ye,_e,ke,Be,Ye,Je){return u[0]=O,u[1]=ue,u[2]=ye,u[3]=_e,u[4]=ke,u[5]=Be,u[6]=Ye,u[7]=Je,u}var Hu=_i;function du(u,O){return u[0]=O[4],u[1]=O[5],u[2]=O[6],u[3]=O[7],u}var hu=_i;function Ei(u,O){return u[4]=O[0],u[5]=O[1],u[6]=O[2],u[7]=O[3],u}function Ki(u,O){var ue=O[4],ye=O[5],_e=O[6],ke=O[7],Be=-O[0],Ye=-O[1],Je=-O[2],dt=O[3];return u[0]=(ue*dt+ke*Be+ye*Je-_e*Ye)*2,u[1]=(ye*dt+ke*Ye+_e*Be-ue*Je)*2,u[2]=(_e*dt+ke*Je+ue*Ye-ye*Be)*2,u}function Zs(u,O,ue){var ye=O[0],_e=O[1],ke=O[2],Be=O[3],Ye=ue[0]*.5,Je=ue[1]*.5,dt=ue[2]*.5,It=O[4],ir=O[5],cr=O[6],nr=O[7];return u[0]=ye,u[1]=_e,u[2]=ke,u[3]=Be,u[4]=Be*Ye+_e*dt-ke*Je+It,u[5]=Be*Je+ke*Ye-ye*dt+ir,u[6]=Be*dt+ye*Je-_e*Ye+cr,u[7]=-ye*Ye-_e*Je-ke*dt+nr,u}function Ks(u,O,ue){var ye=-O[0],_e=-O[1],ke=-O[2],Be=O[3],Ye=O[4],Je=O[5],dt=O[6],It=O[7],ir=Ye*Be+It*ye+Je*ke-dt*_e,cr=Je*Be+It*_e+dt*ye-Ye*ke,nr=dt*Be+It*ke+Ye*_e-Je*ye,Or=It*Be-Ye*ye-Je*_e-dt*ke;return Gi(u,O,ue),ye=u[0],_e=u[1],ke=u[2],Be=u[3],u[4]=ir*Be+Or*ye+cr*ke-nr*_e,u[5]=cr*Be+Or*_e+nr*ye-ir*ke,u[6]=nr*Be+Or*ke+ir*_e-cr*ye,u[7]=Or*Be-ir*ye-cr*_e-nr*ke,u}function io(u,O,ue){var ye=-O[0],_e=-O[1],ke=-O[2],Be=O[3],Ye=O[4],Je=O[5],dt=O[6],It=O[7],ir=Ye*Be+It*ye+Je*ke-dt*_e,cr=Je*Be+It*_e+dt*ye-Ye*ke,nr=dt*Be+It*ke+Ye*_e-Je*ye,Or=It*Be-Ye*ye-Je*_e-dt*ke;return Di(u,O,ue),ye=u[0],_e=u[1],ke=u[2],Be=u[3],u[4]=ir*Be+Or*ye+cr*ke-nr*_e,u[5]=cr*Be+Or*_e+nr*ye-ir*ke,u[6]=nr*Be+Or*ke+ir*_e-cr*ye,u[7]=Or*Be-ir*ye-cr*_e-nr*ke,u}function os(u,O,ue){var ye=-O[0],_e=-O[1],ke=-O[2],Be=O[3],Ye=O[4],Je=O[5],dt=O[6],It=O[7],ir=Ye*Be+It*ye+Je*ke-dt*_e,cr=Je*Be+It*_e+dt*ye-Ye*ke,nr=dt*Be+It*ke+Ye*_e-Je*ye,Or=It*Be-Ye*ye-Je*_e-dt*ke;return $o(u,O,ue),ye=u[0],_e=u[1],ke=u[2],Be=u[3],u[4]=ir*Be+Or*ye+cr*ke-nr*_e,u[5]=cr*Be+Or*_e+nr*ye-ir*ke,u[6]=nr*Be+Or*ke+ir*_e-cr*ye,u[7]=Or*Be-ir*ye-cr*_e-nr*ke,u}function ss(u,O,ue){var ye=ue[0],_e=ue[1],ke=ue[2],Be=ue[3],Ye=O[0],Je=O[1],dt=O[2],It=O[3];return u[0]=Ye*Be+It*ye+Je*ke-dt*_e,u[1]=Je*Be+It*_e+dt*ye-Ye*ke,u[2]=dt*Be+It*ke+Ye*_e-Je*ye,u[3]=It*Be-Ye*ye-Je*_e-dt*ke,Ye=O[4],Je=O[5],dt=O[6],It=O[7],u[4]=Ye*Be+It*ye+Je*ke-dt*_e,u[5]=Je*Be+It*_e+dt*ye-Ye*ke,u[6]=dt*Be+It*ke+Ye*_e-Je*ye,u[7]=It*Be-Ye*ye-Je*_e-dt*ke,u}function us(u,O,ue){var ye=O[0],_e=O[1],ke=O[2],Be=O[3],Ye=ue[0],Je=ue[1],dt=ue[2],It=ue[3];return u[0]=ye*It+Be*Ye+_e*dt-ke*Je,u[1]=_e*It+Be*Je+ke*Ye-ye*dt,u[2]=ke*It+Be*dt+ye*Je-_e*Ye,u[3]=Be*It-ye*Ye-_e*Je-ke*dt,Ye=ue[4],Je=ue[5],dt=ue[6],It=ue[7],u[4]=ye*It+Be*Ye+_e*dt-ke*Je,u[5]=_e*It+Be*Je+ke*Ye-ye*dt,u[6]=ke*It+Be*dt+ye*Je-_e*Ye,u[7]=Be*It-ye*Ye-_e*Je-ke*dt,u}function $s(u,O,ue,ye){if(Math.abs(ye)0){ue=Math.sqrt(ue);var ye=O[0]/ue,_e=O[1]/ue,ke=O[2]/ue,Be=O[3]/ue,Ye=O[4],Je=O[5],dt=O[6],It=O[7],ir=ye*Ye+_e*Je+ke*dt+Be*It;u[0]=ye,u[1]=_e,u[2]=ke,u[3]=Be,u[4]=(Ye-ye*ir)/ue,u[5]=(Je-_e*ir)/ue,u[6]=(dt-ke*ir)/ue,u[7]=(It-Be*ir)/ue}return u}function $u(u){return"quat2("+u[0]+", "+u[1]+", "+u[2]+", "+u[3]+", "+u[4]+", "+u[5]+", "+u[6]+", "+u[7]+")"}function Mf(u,O){return u[0]===O[0]&&u[1]===O[1]&&u[2]===O[2]&&u[3]===O[3]&&u[4]===O[4]&&u[5]===O[5]&&u[6]===O[6]&&u[7]===O[7]}function Ts(u,O){var ue=u[0],ye=u[1],_e=u[2],ke=u[3],Be=u[4],Ye=u[5],Je=u[6],dt=u[7],It=O[0],ir=O[1],cr=O[2],nr=O[3],Or=O[4],Cr=O[5],hr=O[6],rn=O[7];return Math.abs(ue-It)<=y.EPSILON*Math.max(1,Math.abs(ue),Math.abs(It))&&Math.abs(ye-ir)<=y.EPSILON*Math.max(1,Math.abs(ye),Math.abs(ir))&&Math.abs(_e-cr)<=y.EPSILON*Math.max(1,Math.abs(_e),Math.abs(cr))&&Math.abs(ke-nr)<=y.EPSILON*Math.max(1,Math.abs(ke),Math.abs(nr))&&Math.abs(Be-Or)<=y.EPSILON*Math.max(1,Math.abs(Be),Math.abs(Or))&&Math.abs(Ye-Cr)<=y.EPSILON*Math.max(1,Math.abs(Ye),Math.abs(Cr))&&Math.abs(Je-hr)<=y.EPSILON*Math.max(1,Math.abs(Je),Math.abs(hr))&&Math.abs(dt-rn)<=y.EPSILON*Math.max(1,Math.abs(dt),Math.abs(rn))}var Cf=z(31437)},38186:function(or){var U=[],z=[],B="insert-css: You need to provide a CSS string. Usage: insertCss(cssString[, options]).";function j(A,N){if(N=N||{},A===void 0)throw new Error(B);var L=N.prepend===!0?"prepend":"append",y=N.container!==void 0?N.container:document.querySelector("head"),x=U.indexOf(y);x===-1&&(x=U.push(y)-1,z[x]={});var v;return z[x]!==void 0&&z[x][L]!==void 0?v=z[x][L]:(v=z[x][L]=R(),L==="prepend"?y.insertBefore(v,y.childNodes[0]):y.appendChild(v)),A.charCodeAt(0)===65279&&(A=A.substr(1,A.length)),v.styleSheet?v.styleSheet.cssText+=A:v.textContent+=A,v}function R(){var A=document.createElement("style");return A.setAttribute("type","text/css"),A}or.exports=j,or.exports.insertCss=j},81763:function(or,U,z){var B=z(44239),j=z(37005),R="[object Number]";function A(N){return typeof N=="number"||j(N)&&B(N)==R}or.exports=A},51496:function(or,U,z){"use strict";z.d(U,{x0:function(){return A}});let B=N=>crypto.getRandomValues(new Uint8Array(N)),j=(N,L,y)=>{let x=(2<{let d="";for(;;){let _=y(v),E=v;for(;E--;)if(d+=N[_[E]&x]||"",d.length===g)return d}}},R=(N,L=21)=>j(N,L,B),A=(N=21)=>crypto.getRandomValues(new Uint8Array(N)).reduce((L,y)=>(y&=63,y<36?L+=y.toString(36):y<62?L+=(y-26).toString(36).toUpperCase():y>62?L+="-":L+="_",L),"")},81550:function(or){(function(U,z){or.exports=z()})(this,function(){"use strict";var U=function(ve){return ve instanceof Uint8Array||ve instanceof Uint16Array||ve instanceof Uint32Array||ve instanceof Int8Array||ve instanceof Int16Array||ve instanceof Int32Array||ve instanceof Float32Array||ve instanceof Float64Array||ve instanceof Uint8ClampedArray},z=function(ve,We){for(var it=Object.keys(We),Zt=0;Zt=0&&(ve|0)===ve||R("invalid parameter type, ("+ve+")"+N(We)+". must be a nonnegative integer")}function d(ve,We,it){We.indexOf(ve)<0&&R("invalid value"+N(it)+". must be one of: "+We)}var _=["gl","canvas","container","attributes","pixelRatio","extensions","optionalExtensions","profile","onDone"];function E(ve){Object.keys(ve).forEach(function(We){_.indexOf(We)<0&&R('invalid regl constructor argument "'+We+'". must be one of '+_)})}function w(ve,We){for(ve=ve+"";ve.length0&&We.push(new b("unknown",0,it))}}),We}function H(ve,We){We.forEach(function(it){var Zt=ve[it.file];if(Zt){var dr=Zt.index[it.line];if(dr){dr.errors.push(it),Zt.hasErrors=!0;return}}ve.unknown.hasErrors=!0,ve.unknown.lines[0].errors.push(it)})}function Q(ve,We,it,Zt,dr){if(!ve.getShaderParameter(We,ve.COMPILE_STATUS)){var Yt=ve.getShaderInfoLog(We),ar=Zt===ve.FRAGMENT_SHADER?"fragment":"vertex";Se(it,"string",ar+" shader source must be a string",dr);var Mr=W(it,dr),Ir=X(Yt);H(Mr,Ir),Object.keys(Mr).forEach(function(Ar){var Tr=Mr[Ar];if(!Tr.hasErrors)return;var zr=[""],f=[""];function M(G,Y){zr.push(G),f.push(Y||"")}M("file number "+Ar+": "+Tr.name+` -`,"color:red;text-decoration:underline;font-weight:bold"),Tr.lines.forEach(function(G){if(G.errors.length>0){M(w(G.number,4)+"| ","background-color:yellow; font-weight:bold"),M(G.line+B,"color:red; background-color:yellow; font-weight:bold");var Y=0;G.errors.forEach(function(re){var ie=re.message,le=/^\s*'(.*)'\s*:\s*(.*)$/.exec(ie);if(le){var ge=le[1];switch(ie=le[2],ge){case"assign":ge="=";break}Y=Math.max(G.line.indexOf(ge,Y),0)}else Y=0;M(w("| ",6)),M(w("^^^",Y+3)+B,"font-weight:bold"),M(w("| ",6)),M(ie+B,"font-weight:bold")}),M(w("| ",6)+B)}else M(w(G.number,4)+"| "),M(G.line+B,"color:red")}),typeof document!="undefined"&&!window.chrome?(f[0]=zr.join("%c"),console.log.apply(console,f)):console.log(zr.join(""))}),A.raise("Error compiling "+ar+" shader, "+Mr[0].name)}}function q(ve,We,it,Zt,dr){if(!ve.getProgramParameter(We,ve.LINK_STATUS)){var Yt=ve.getProgramInfoLog(We),ar=W(it,dr),Mr=W(Zt,dr),Ir='Error linking program with vertex shader, "'+Mr[0].name+'", and fragment shader "'+ar[0].name+'"';typeof document!="undefined"?console.log("%c"+Ir+B+"%c"+Yt,"color:red;text-decoration:underline;font-weight:bold","color:red"):console.log(Ir+B+Yt),A.raise(Ir)}}function J(ve){ve._commandRef=m()}function te(ve,We,it,Zt){J(ve);function dr(Ir){return Ir?Zt.id(Ir):0}ve._fragId=dr(ve.static.frag),ve._vertId=dr(ve.static.vert);function Yt(Ir,Ar){Object.keys(Ar).forEach(function(Tr){Ir[Zt.id(Tr)]=!0})}var ar=ve._uniformSet={};Yt(ar,We.static),Yt(ar,We.dynamic);var Mr=ve._attributeSet={};Yt(Mr,it.static),Yt(Mr,it.dynamic),ve._hasCount="count"in ve.static||"count"in ve.dynamic||"elements"in ve.static||"elements"in ve.dynamic}function fe(ve,We){var it=$();R(ve+" in command "+(We||m())+(it==="unknown"?"":" called from "+it))}function de(ve,We,it){ve||fe(We,it||m())}function Te(ve,We,it,Zt){ve in We||fe("unknown parameter ("+ve+")"+N(it)+". possible values: "+Object.keys(We).join(),Zt||m())}function Se(ve,We,it,Zt){x(ve,We)||fe("invalid parameter type"+N(it)+". expected "+We+", got "+typeof ve,Zt||m())}function Ie(ve){ve()}function be(ve,We,it){ve.texture?d(ve.texture._texture.internalformat,We,"unsupported texture format for attachment"):d(ve.renderbuffer._renderbuffer.format,it,"unsupported renderbuffer format for attachment")}var pe=33071,Me=9728,De=9984,Ue=9985,nt=9986,Ze=9987,ht=5120,Rt=5121,tr=5122,Qe=5123,lt=5124,St=5125,Ct=5126,_t=32819,pt=32820,rr=33635,xr=34042,Vt=36193,ft={};ft[ht]=ft[Rt]=1,ft[tr]=ft[Qe]=ft[Vt]=ft[rr]=ft[_t]=ft[pt]=2,ft[lt]=ft[St]=ft[Ct]=ft[xr]=4;function Bt(ve,We){return ve===pt||ve===_t||ve===rr?2:ve===xr?4:ft[ve]*We}function qt(ve){return!(ve&ve-1)&&!!ve}function br(ve,We,it){var Zt,dr=We.width,Yt=We.height,ar=We.channels;A(dr>0&&dr<=it.maxTextureSize&&Yt>0&&Yt<=it.maxTextureSize,"invalid texture shape"),(ve.wrapS!==pe||ve.wrapT!==pe)&&A(qt(dr)&&qt(Yt),"incompatible wrap mode for texture, both width and height must be power of 2"),We.mipmask===1?dr!==1&&Yt!==1&&A(ve.minFilter!==De&&ve.minFilter!==nt&&ve.minFilter!==Ue&&ve.minFilter!==Ze,"min filter requires mipmap"):(A(qt(dr)&&qt(Yt),"texture must be a square power of 2 to support mipmapping"),A(We.mipmask===(dr<<1)-1,"missing or incomplete mipmap data")),We.type===Ct&&(it.extensions.indexOf("oes_texture_float_linear")<0&&A(ve.minFilter===Me&&ve.magFilter===Me,"filter not supported, must enable oes_texture_float_linear"),A(!ve.genMipmaps,"mipmap generation not supported with float textures"));var Mr=We.images;for(Zt=0;Zt<16;++Zt)if(Mr[Zt]){var Ir=dr>>Zt,Ar=Yt>>Zt;A(We.mipmask&1<0&&dr<=Zt.maxTextureSize&&Yt>0&&Yt<=Zt.maxTextureSize,"invalid texture shape"),A(dr===Yt,"cube map must be square"),A(We.wrapS===pe&&We.wrapT===pe,"wrap mode not supported by cube map");for(var Mr=0;Mr>Tr,M=Yt>>Tr;A(Ir.mipmask&1<1&&We===it&&(We==='"'||We==="'"))return['"'+Gn(ve.substr(1,ve.length-2))+'"'];var Zt=/\[(false|true|null|\d+|'[^']*'|"[^"]*")\]/.exec(ve);if(Zt)return mn(ve.substr(0,Zt.index)).concat(mn(Zt[1])).concat(mn(ve.substr(Zt.index+Zt[0].length)));var dr=ve.split(".");if(dr.length===1)return['"'+Gn(ve)+'"'];for(var Yt=[],ar=0;arct(it,We+"["+Zt+"]")));if(ve instanceof vn)return ve;Ae(!1,"invalid option type in uniform "+We)}var Wt={DynamicVariable:vn,define:gn,isDynamic:Rr,unbox:ct,accessor:$r},Er={next:typeof requestAnimationFrame=="function"?function(ve){return requestAnimationFrame(ve)}:function(ve){return setTimeout(ve,16)},cancel:typeof cancelAnimationFrame=="function"?function(ve){return cancelAnimationFrame(ve)}:clearTimeout},Dr=typeof performance!="undefined"&&performance.now?function(){return performance.now()}:function(){return+new Date};function Vr(){var ve={"":0},We=[""];return{id:function(it){var Zt=ve[it];return Zt||(Zt=ve[it]=We.length,We.push(it),Zt)},str:function(it){return We[it]}}}function pn(ve,We,it){var Zt=document.createElement("canvas");z(Zt.style,{border:0,margin:0,padding:0,top:0,left:0}),ve.appendChild(Zt),ve===document.body&&(Zt.style.position="absolute",z(ve.style,{margin:0,padding:0}));function dr(){var Mr=window.innerWidth,Ir=window.innerHeight;if(ve!==document.body){var Ar=ve.getBoundingClientRect();Mr=Ar.right-Ar.left,Ir=Ar.bottom-Ar.top}Zt.width=it*Mr,Zt.height=it*Ir,z(Zt.style,{width:Mr+"px",height:Ir+"px"})}var Yt;ve!==document.body&&typeof ResizeObserver=="function"?(Yt=new ResizeObserver(function(){setTimeout(dr)}),Yt.observe(ve)):window.addEventListener("resize",dr,!1);function ar(){Yt?Yt.disconnect():window.removeEventListener("resize",dr),ve.removeChild(Zt)}return dr(),{canvas:Zt,onDestroy:ar}}function wn(ve,We){function it(Zt){try{return ve.getContext(Zt,We)}catch(dr){return null}}return it("webgl")||it("experimental-webgl")||it("webgl-experimental")}function Sn(ve){return typeof ve.nodeName=="string"&&typeof ve.appendChild=="function"&&typeof ve.getBoundingClientRect=="function"}function In(ve){return typeof ve.drawArrays=="function"||typeof ve.drawElements=="function"}function $n(ve){return typeof ve=="string"?ve.split():(Ae(Array.isArray(ve),"invalid extension array"),ve)}function Zr(ve){return typeof ve=="string"?(Ae(typeof document!="undefined","not supported outside of DOM"),document.querySelector(ve)):ve}function Pn(ve){var We=ve||{},it,Zt,dr,Yt,ar={},Mr=[],Ir=[],Ar=typeof window=="undefined"?1:window.devicePixelRatio,Tr=!1,zr=function(G){G&&Ae.raise(G)},f=function(){};if(typeof We=="string"?(Ae(typeof document!="undefined","selector queries only supported in DOM enviroments"),it=document.querySelector(We),Ae(it,"invalid query string for element")):typeof We=="object"?Sn(We)?it=We:In(We)?(Yt=We,dr=Yt.canvas):(Ae.constructor(We),"gl"in We?Yt=We.gl:"canvas"in We?dr=Zr(We.canvas):"container"in We&&(Zt=Zr(We.container)),"attributes"in We&&(ar=We.attributes,Ae.type(ar,"object","invalid context attributes")),"extensions"in We&&(Mr=$n(We.extensions)),"optionalExtensions"in We&&(Ir=$n(We.optionalExtensions)),"onDone"in We&&(Ae.type(We.onDone,"function","invalid or missing onDone callback"),zr=We.onDone),"profile"in We&&(Tr=!!We.profile),"pixelRatio"in We&&(Ar=+We.pixelRatio,Ae(Ar>0,"invalid pixel ratio"))):Ae.raise("invalid arguments to regl"),it&&(it.nodeName.toLowerCase()==="canvas"?dr=it:Zt=it),!Yt){if(!dr){Ae(typeof document!="undefined","must manually specify webgl context outside of DOM environments");var M=pn(Zt||document.body,zr,Ar);if(!M)return null;dr=M.canvas,f=M.onDestroy}ar.premultipliedAlpha===void 0&&(ar.premultipliedAlpha=!0),Yt=wn(dr,ar)}return Yt?{gl:Yt,canvas:dr,container:Zt,extensions:Mr,optionalExtensions:Ir,pixelRatio:Ar,profile:Tr,onDone:zr,onDestroy:f}:(f(),zr("webgl not supported, try upgrading your browser or graphics drivers http://get.webgl.org"),null)}function An(ve,We){var it={};function Zt(ar){Ae.type(ar,"string","extension name must be string");var Mr=ar.toLowerCase(),Ir;try{Ir=it[Mr]=ve.getExtension(Mr)}catch(Ar){}return!!Ir}for(var dr=0;dr65535)<<4,ve>>>=We,it=(ve>255)<<3,ve>>>=it,We|=it,it=(ve>15)<<2,ve>>>=it,We|=it,it=(ve>3)<<1,ve>>>=it,We|=it,We|ve>>1}function V(){var ve=ln(8,function(){return[]});function We(Yt){var ar=S(Yt),Mr=ve[C(ar)>>2];return Mr.length>0?Mr.pop():new ArrayBuffer(ar)}function it(Yt){ve[C(Yt.byteLength)>>2].push(Yt)}function Zt(Yt,ar){var Mr=null;switch(Yt){case va:Mr=new Int8Array(We(ar),0,ar);break;case K:Mr=new Uint8Array(We(ar),0,ar);break;case Dt:Mr=new Int16Array(We(2*ar),0,ar);break;case rt:Mr=new Uint16Array(We(2*ar),0,ar);break;case ne:Mr=new Int32Array(We(4*ar),0,ar);break;case ae:Mr=new Uint32Array(We(4*ar),0,ar);break;case P:Mr=new Float32Array(We(4*ar),0,ar);break;default:return null}return Mr.length!==ar?Mr.subarray(0,ar):Mr}function dr(Yt){it(Yt.buffer)}return{alloc:We,free:it,allocType:Zt,freeType:dr}}var he=V();he.zero=V();var xe=3408,Ee=3410,Ne=3411,Et=3412,st=3413,Pt=3414,$t=3415,Ht=33901,Br=33902,hn=3379,Ot=3386,Qt=34921,pr=36347,en=36348,Nr=35661,ta=35660,kn=34930,En=36349,Rn=34076,Yn=34024,bn=7936,je=7937,Ce=7938,Xe=35724,ut=34047,ot=36063,bt=34852,Xt=3553,wr=34067,Wr=34069,on=33984,xn=6408,zn=5126,Qn=5121,ia=36160,Wa=36053,Ia=36064,Ba=16384,Ea=function(ve,We){var it=1;We.ext_texture_filter_anisotropic&&(it=ve.getParameter(ut));var Zt=1,dr=1;We.webgl_draw_buffers&&(Zt=ve.getParameter(bt),dr=ve.getParameter(ot));var Yt=!!We.oes_texture_float;if(Yt){var ar=ve.createTexture();ve.bindTexture(Xt,ar),ve.texImage2D(Xt,0,xn,1,1,0,xn,zn,null);var Mr=ve.createFramebuffer();if(ve.bindFramebuffer(ia,Mr),ve.framebufferTexture2D(ia,Ia,Xt,ar,0),ve.bindTexture(Xt,null),ve.checkFramebufferStatus(ia)!==Wa)Yt=!1;else{ve.viewport(0,0,1,1),ve.clearColor(1,0,0,1),ve.clear(Ba);var Ir=he.allocType(zn,4);ve.readPixels(0,0,1,1,xn,zn,Ir),ve.getError()?Yt=!1:(ve.deleteFramebuffer(Mr),ve.deleteTexture(ar),Yt=Ir[0]===1),he.freeType(Ir)}}var Ar=typeof navigator!="undefined"&&(/MSIE/.test(navigator.userAgent)||/Trident\//.test(navigator.appVersion)||/Edge/.test(navigator.userAgent)),Tr=!0;if(!Ar){var zr=ve.createTexture(),f=he.allocType(Qn,36);ve.activeTexture(on),ve.bindTexture(wr,zr),ve.texImage2D(Wr,0,xn,3,3,0,xn,Qn,f),he.freeType(f),ve.bindTexture(wr,null),ve.deleteTexture(zr),Tr=!ve.getError()}return{colorBits:[ve.getParameter(Ee),ve.getParameter(Ne),ve.getParameter(Et),ve.getParameter(st)],depthBits:ve.getParameter(Pt),stencilBits:ve.getParameter($t),subpixelBits:ve.getParameter(xe),extensions:Object.keys(We).filter(function(M){return!!We[M]}),maxAnisotropic:it,maxDrawbuffers:Zt,maxColorAttachments:dr,pointSizeDims:ve.getParameter(Ht),lineWidthDims:ve.getParameter(Br),maxViewportDims:ve.getParameter(Ot),maxCombinedTextureUnits:ve.getParameter(Nr),maxCubeMapSize:ve.getParameter(Rn),maxRenderbufferSize:ve.getParameter(Yn),maxTextureUnits:ve.getParameter(kn),maxTextureSize:ve.getParameter(hn),maxAttributes:ve.getParameter(Qt),maxVertexUniforms:ve.getParameter(pr),maxVertexTextureUnits:ve.getParameter(ta),maxVaryingVectors:ve.getParameter(en),maxFragmentUniforms:ve.getParameter(En),glsl:ve.getParameter(Xe),renderer:ve.getParameter(je),vendor:ve.getParameter(bn),version:ve.getParameter(Ce),readFloat:Yt,npotTextureCube:Tr}};function qa(ve){return!!ve&&typeof ve=="object"&&Array.isArray(ve.shape)&&Array.isArray(ve.stride)&&typeof ve.offset=="number"&&ve.shape.length===ve.stride.length&&(Array.isArray(ve.data)||U(ve.data))}var si=function(ve){return Object.keys(ve).map(function(We){return ve[We]})},_a={shape:Ss,flatten:lo};function So(ve,We,it){for(var Zt=0;Zt0){var ze;if(Array.isArray(re[0])){Le=Ms(re);for(var Fe=1,tt=1;tt0)if(typeof Fe[0]=="number"){var Tt=he.allocType(ge.dtype,Fe.length);$o(Tt,Fe),Le(Tt,Mt),he.freeType(Tt)}else if(Array.isArray(Fe[0])||U(Fe[0])){sr=Ms(Fe);var Nt=Va(Fe,sr,ge.dtype);Le(Nt,Mt),he.freeType(Nt)}else Ae.raise("invalid buffer data")}else if(qa(Fe)){sr=Fe.shape;var Lt=Fe.stride,_r=0,Yr=0,Pr=0,dn=0;sr.length===1?(_r=sr[0],Yr=1,Pr=Lt[0],dn=0):sr.length===2?(_r=sr[0],Yr=sr[1],Pr=Lt[0],dn=Lt[1]):Ae.raise("invalid shape");var sn=Array.isArray(Fe.data)?ge.dtype:Di(Fe.data),tn=he.allocType(sn,_r*Yr);Ni(tn,Fe.data,_r,Yr,Pr,dn,Fe.offset),Le(tn,Mt),he.freeType(tn)}else Ae.raise("invalid data for buffer subdata");return me}return ie||me(Y),me._reglType="buffer",me._buffer=ge,me.subdata=ze,it.profile&&(me.stats=ge.stats),me.destroy=function(){f(ge)},me}function G(){si(Yt).forEach(function(Y){Y.buffer=ve.createBuffer(),ve.bindBuffer(Y.type,Y.buffer),ve.bufferData(Y.type,Y.persistentData||Y.byteLength,Y.usage)})}return it.profile&&(We.getTotalBufferSize=function(){var Y=0;return Object.keys(Yt).forEach(function(re){Y+=Yt[re].stats.size}),Y}),{create:M,createStream:Ir,destroyStream:Ar,clear:function(){si(Yt).forEach(f),Mr.forEach(f)},getBuffer:function(Y){return Y&&Y._buffer instanceof ar?Y._buffer:null},restore:G,_initBuffer:zr}}var Qo=0,ns=0,zi=1,ga=1,vo=4,Vs=4,Pi={points:Qo,point:ns,lines:zi,line:ga,triangles:vo,triangle:Vs,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},Ao=0,as=1,vi=4,Zi=5120,_i=5121,no=5122,Ui=5123,da=5124,Fa=5125,Ya=34963,Ii=35040,Wi=35044;function ao(ve,We,it,Zt){var dr={},Yt=0,ar={uint8:_i,uint16:Ui};We.oes_element_index_uint&&(ar.uint32=Fa);function Mr(G){this.id=Yt++,dr[this.id]=this,this.buffer=G,this.primType=vi,this.vertCount=0,this.type=0}Mr.prototype.bind=function(){this.buffer.bind()};var Ir=[];function Ar(G){var Y=Ir.pop();return Y||(Y=new Mr(it.create(null,Ya,!0,!1)._buffer)),zr(Y,G,Ii,-1,-1,0,0),Y}function Tr(G){Ir.push(G)}function zr(G,Y,re,ie,le,ge,me){G.buffer.bind();var Le;if(Y){var ze=me;!me&&(!U(Y)||qa(Y)&&!U(Y.data))&&(ze=We.oes_element_index_uint?Fa:Ui),it._initBuffer(G.buffer,Y,re,ze,3)}else ve.bufferData(Ya,ge,re),G.buffer.dtype=Le||_i,G.buffer.usage=re,G.buffer.dimension=3,G.buffer.byteLength=ge;if(Le=me,!me){switch(G.buffer.dtype){case _i:case Zi:Le=_i;break;case Ui:case no:Le=Ui;break;case Fa:case da:Le=Fa;break;default:Ae.raise("unsupported type for element array")}G.buffer.dtype=Le}G.type=Le,Ae(Le!==Fa||!!We.oes_element_index_uint,"32 bit element buffers not supported, enable oes_element_index_uint first");var Fe=le;Fe<0&&(Fe=G.buffer.byteLength,Le===Ui?Fe>>=1:Le===Fa&&(Fe>>=2)),G.vertCount=Fe;var tt=ie;if(ie<0){tt=vi;var Mt=G.buffer.dimension;Mt===1&&(tt=Ao),Mt===2&&(tt=as),Mt===3&&(tt=vi)}G.primType=tt}function f(G){Zt.elementsCount--,Ae(G.buffer!==null,"must not double destroy elements"),delete dr[G.id],G.buffer.destroy(),G.buffer=null}function M(G,Y){var re=it.create(null,Ya,!0),ie=new Mr(re._buffer);Zt.elementsCount++;function le(ge){if(!ge)re(),ie.primType=vi,ie.vertCount=0,ie.type=_i;else if(typeof ge=="number")re(ge),ie.primType=vi,ie.vertCount=ge|0,ie.type=_i;else{var me=null,Le=Wi,ze=-1,Fe=-1,tt=0,Mt=0;Array.isArray(ge)||U(ge)||qa(ge)?me=ge:(Ae.type(ge,"object","invalid arguments for elements"),"data"in ge&&(me=ge.data,Ae(Array.isArray(me)||U(me)||qa(me),"invalid data for element buffer")),"usage"in ge&&(Ae.parameter(ge.usage,Go,"invalid element buffer usage"),Le=Go[ge.usage]),"primitive"in ge&&(Ae.parameter(ge.primitive,Pi,"invalid element buffer primitive"),ze=Pi[ge.primitive]),"count"in ge&&(Ae(typeof ge.count=="number"&&ge.count>=0,"invalid vertex count for elements"),Fe=ge.count|0),"type"in ge&&(Ae.parameter(ge.type,ar,"invalid buffer type"),Mt=ar[ge.type]),"length"in ge?tt=ge.length|0:(tt=Fe,Mt===Ui||Mt===no?tt*=2:(Mt===Fa||Mt===da)&&(tt*=4))),zr(ie,me,Le,ze,Fe,tt,Mt)}return le}return le(G),le._reglType="elements",le._elements=ie,le.subdata=function(ge,me){return re.subdata(ge,me),le},le.destroy=function(){f(ie)},le}return{create:M,createStream:Ar,destroyStream:Tr,getElements:function(G){return typeof G=="function"&&G._elements instanceof Mr?G._elements:null},clear:function(){si(dr).forEach(f)}}}var go=new Float32Array(1),po=new Uint32Array(go.buffer),yo=5123;function ji(ve){for(var We=he.allocType(yo,ve.length),it=0;it>>31<<15,Yt=(Zt<<1>>>24)-127,ar=Zt>>13&(1<<10)-1;if(Yt<-24)We[it]=dr;else if(Yt<-14){var Mr=-14-Yt;We[it]=dr+(ar+(1<<10)>>Mr)}else Yt>15?We[it]=dr+31744:We[it]=dr+(Yt+15<<10)+ar}return We}function ka(ve){return Array.isArray(ve)||U(ve)}var Ys=function(ve){return!(ve&ve-1)&&!!ve},_f=34467,mo=3553,lu=34067,na=34069,an=6408,Hs=6406,Xi=6407,zo=6409,is=6410,ui=32854,ai=32855,Eo=36194,Yu=32819,Hu=32820,du=33635,hu=34042,Ei=6402,Ki=34041,Zs=35904,Ks=35906,io=36193,os=33776,ss=33777,us=33778,$s=33779,Uo=35986,bo=35987,fs=34798,Zu=35840,vu=35841,gu=35842,pu=35843,Ku=36196,Co=5121,Cs=5123,cs=5125,$i=5126,xo=10242,$u=10243,Mf=10497,Ts=33071,Cf=33648,u=10240,O=10241,ue=9728,ye=9729,_e=9984,ke=9985,Be=9986,Ye=9987,Je=33170,dt=4352,It=4353,ir=4354,cr=34046,nr=3317,Or=37440,Cr=37441,hr=37443,rn=37444,Jn=33984,qn=[_e,Be,ke,Ye],Un=[0,zo,is,Xi,an],Mn={};Mn[zo]=Mn[Hs]=Mn[Ei]=1,Mn[Ki]=Mn[is]=2,Mn[Xi]=Mn[Zs]=3,Mn[an]=Mn[Ks]=4;function Cn(ve){return"[object "+ve+"]"}var Ga=Cn("HTMLCanvasElement"),ei=Cn("OffscreenCanvas"),Ka=Cn("CanvasRenderingContext2D"),$a=Cn("ImageBitmap"),Ha=Cn("HTMLImageElement"),fi=Cn("HTMLVideoElement"),bi=Object.keys(Ro).concat([Ga,ei,Ka,$a,Ha,fi]),ha=[];ha[Co]=1,ha[$i]=4,ha[io]=2,ha[Cs]=2,ha[cs]=4;var Oa=[];Oa[ui]=2,Oa[ai]=2,Oa[Eo]=2,Oa[Ki]=4,Oa[os]=.5,Oa[ss]=.5,Oa[us]=1,Oa[$s]=1,Oa[Uo]=.5,Oa[bo]=1,Oa[fs]=1,Oa[Zu]=.5,Oa[vu]=.25,Oa[gu]=.5,Oa[pu]=.25,Oa[Ku]=.5;function Jo(ve){return Array.isArray(ve)&&(ve.length===0||typeof ve[0]=="number")}function Wo(ve){if(!Array.isArray(ve))return!1;var We=ve.length;return!(We===0||!ka(ve[0]))}function oo(ve){return Object.prototype.toString.call(ve)}function Qs(ve){return oo(ve)===Ga}function Tf(ve){return oo(ve)===ei}function Qu(ve){return oo(ve)===Ka}function Ju(ve){return oo(ve)===$a}function cc(ve){return oo(ve)===Ha}function yu(ve){return oo(ve)===fi}function If(ve){if(!ve)return!1;var We=oo(ve);return bi.indexOf(We)>=0?!0:Jo(ve)||Wo(ve)||qa(ve)}function Of(ve){return Ro[Object.prototype.toString.call(ve)]|0}function qo(ve,We){var it=We.length;switch(ve.type){case Co:case Cs:case cs:case $i:var Zt=he.allocType(ve.type,it);Zt.set(We),ve.data=Zt;break;case io:ve.data=ji(We);break;default:Ae.raise("unsupported texture type, must specify a typed array")}}function Af(ve,We){return he.allocType(ve.type===io?$i:ve.type,We)}function lc(ve,We){ve.type===io?(ve.data=ji(We),he.freeType(We)):ve.data=We}function el(ve,We,it,Zt,dr,Yt){for(var ar=ve.width,Mr=ve.height,Ir=ve.channels,Ar=ar*Mr*Ir,Tr=Af(ve,Ar),zr=0,f=0;f=1;)Mr+=ar*Ir*Ir,Ir/=2;return Mr}else return ar*it*Zt}function mu(ve,We,it,Zt,dr,Yt,ar){var Mr={"don't care":dt,"dont care":dt,nice:ir,fast:It},Ir={repeat:Mf,clamp:Ts,mirror:Cf},Ar={nearest:ue,linear:ye},Tr=z({mipmap:Ye,"nearest mipmap nearest":_e,"linear mipmap nearest":ke,"nearest mipmap linear":Be,"linear mipmap linear":Ye},Ar),zr={none:0,browser:rn},f={uint8:Co,rgba4:Yu,rgb565:du,"rgb5 a1":Hu},M={alpha:Hs,luminance:zo,"luminance alpha":is,rgb:Xi,rgba:an,rgba4:ui,"rgb5 a1":ai,rgb565:Eo},G={};We.ext_srgb&&(M.srgb=Zs,M.srgba=Ks),We.oes_texture_float&&(f.float32=f.float=$i),We.oes_texture_half_float&&(f.float16=f["half float"]=io),We.webgl_depth_texture&&(z(M,{depth:Ei,"depth stencil":Ki}),z(f,{uint16:Cs,uint32:cs,"depth stencil":hu})),We.webgl_compressed_texture_s3tc&&z(G,{"rgb s3tc dxt1":os,"rgba s3tc dxt1":ss,"rgba s3tc dxt3":us,"rgba s3tc dxt5":$s}),We.webgl_compressed_texture_atc&&z(G,{"rgb atc":Uo,"rgba atc explicit alpha":bo,"rgba atc interpolated alpha":fs}),We.webgl_compressed_texture_pvrtc&&z(G,{"rgb pvrtc 4bppv1":Zu,"rgb pvrtc 2bppv1":vu,"rgba pvrtc 4bppv1":gu,"rgba pvrtc 2bppv1":pu}),We.webgl_compressed_texture_etc1&&(G["rgb etc1"]=Ku);var Y=Array.prototype.slice.call(ve.getParameter(_f));Object.keys(G).forEach(function(et){var Jt=G[et];Y.indexOf(Jt)>=0&&(M[et]=Jt)});var re=Object.keys(M);it.textureFormats=re;var ie=[];Object.keys(M).forEach(function(et){var Jt=M[et];ie[Jt]=et});var le=[];Object.keys(f).forEach(function(et){var Jt=f[et];le[Jt]=et});var ge=[];Object.keys(Ar).forEach(function(et){var Jt=Ar[et];ge[Jt]=et});var me=[];Object.keys(Tr).forEach(function(et){var Jt=Tr[et];me[Jt]=et});var Le=[];Object.keys(Ir).forEach(function(et){var Jt=Ir[et];Le[Jt]=et});var ze=re.reduce(function(et,Jt){var jt=M[Jt];return jt===zo||jt===Hs||jt===zo||jt===is||jt===Ei||jt===Ki||We.ext_srgb&&(jt===Zs||jt===Ks)?et[jt]=jt:jt===ai||Jt.indexOf("rgba")>=0?et[jt]=an:et[jt]=Xi,et},{});function Fe(){this.internalformat=an,this.format=an,this.type=Co,this.compressed=!1,this.premultiplyAlpha=!1,this.flipY=!1,this.unpackAlignment=1,this.colorSpace=rn,this.width=0,this.height=0,this.channels=0}function tt(et,Jt){et.internalformat=Jt.internalformat,et.format=Jt.format,et.type=Jt.type,et.compressed=Jt.compressed,et.premultiplyAlpha=Jt.premultiplyAlpha,et.flipY=Jt.flipY,et.unpackAlignment=Jt.unpackAlignment,et.colorSpace=Jt.colorSpace,et.width=Jt.width,et.height=Jt.height,et.channels=Jt.channels}function Mt(et,Jt){if(!(typeof Jt!="object"||!Jt)){if("premultiplyAlpha"in Jt&&(Ae.type(Jt.premultiplyAlpha,"boolean","invalid premultiplyAlpha"),et.premultiplyAlpha=Jt.premultiplyAlpha),"flipY"in Jt&&(Ae.type(Jt.flipY,"boolean","invalid texture flip"),et.flipY=Jt.flipY),"alignment"in Jt&&(Ae.oneOf(Jt.alignment,[1,2,4,8],"invalid texture unpack alignment"),et.unpackAlignment=Jt.alignment),"colorSpace"in Jt&&(Ae.parameter(Jt.colorSpace,zr,"invalid colorSpace"),et.colorSpace=zr[Jt.colorSpace]),"type"in Jt){var jt=Jt.type;Ae(We.oes_texture_float||!(jt==="float"||jt==="float32"),"you must enable the OES_texture_float extension in order to use floating point textures."),Ae(We.oes_texture_half_float||!(jt==="half float"||jt==="float16"),"you must enable the OES_texture_half_float extension in order to use 16-bit floating point textures."),Ae(We.webgl_depth_texture||!(jt==="uint16"||jt==="uint32"||jt==="depth stencil"),"you must enable the WEBGL_depth_texture extension in order to use depth/stencil textures."),Ae.parameter(jt,f,"invalid texture type"),et.type=f[jt]}var nn=et.width,aa=et.height,$e=et.channels,Ge=!1;"shape"in Jt?(Ae(Array.isArray(Jt.shape)&&Jt.shape.length>=2,"shape must be an array"),nn=Jt.shape[0],aa=Jt.shape[1],Jt.shape.length===3&&($e=Jt.shape[2],Ae($e>0&&$e<=4,"invalid number of channels"),Ge=!0),Ae(nn>=0&&nn<=it.maxTextureSize,"invalid width"),Ae(aa>=0&&aa<=it.maxTextureSize,"invalid height")):("radius"in Jt&&(nn=aa=Jt.radius,Ae(nn>=0&&nn<=it.maxTextureSize,"invalid radius")),"width"in Jt&&(nn=Jt.width,Ae(nn>=0&&nn<=it.maxTextureSize,"invalid width")),"height"in Jt&&(aa=Jt.height,Ae(aa>=0&&aa<=it.maxTextureSize,"invalid height")),"channels"in Jt&&($e=Jt.channels,Ae($e>0&&$e<=4,"invalid number of channels"),Ge=!0)),et.width=nn|0,et.height=aa|0,et.channels=$e|0;var mt=!1;if("format"in Jt){var Gt=Jt.format;Ae(We.webgl_depth_texture||!(Gt==="depth"||Gt==="depth stencil"),"you must enable the WEBGL_depth_texture extension in order to use depth/stencil textures."),Ae.parameter(Gt,M,"invalid texture format");var Ut=et.internalformat=M[Gt];et.format=ze[Ut],Gt in f&&("type"in Jt||(et.type=f[Gt])),Gt in G&&(et.compressed=!0),mt=!0}!Ge&&mt?et.channels=Mn[et.format]:Ge&&!mt?et.channels!==Un[et.format]&&(et.format=et.internalformat=Un[et.channels]):mt&&Ge&&Ae(et.channels===Mn[et.format],"number of channels inconsistent with specified format")}}function sr(et){ve.pixelStorei(Or,et.flipY),ve.pixelStorei(Cr,et.premultiplyAlpha),ve.pixelStorei(hr,et.colorSpace),ve.pixelStorei(nr,et.unpackAlignment)}function Tt(){Fe.call(this),this.xOffset=0,this.yOffset=0,this.data=null,this.needsFree=!1,this.element=null,this.needsCopy=!1}function Nt(et,Jt){var jt=null;if(If(Jt)?jt=Jt:Jt&&(Ae.type(Jt,"object","invalid pixel data type"),Mt(et,Jt),"x"in Jt&&(et.xOffset=Jt.x|0),"y"in Jt&&(et.yOffset=Jt.y|0),If(Jt.data)&&(jt=Jt.data)),Ae(!et.compressed||jt instanceof Uint8Array,"compressed texture data must be stored in a uint8array"),Jt.copy){Ae(!jt,"can not specify copy and data field for the same texture");var nn=dr.viewportWidth,aa=dr.viewportHeight;et.width=et.width||nn-et.xOffset,et.height=et.height||aa-et.yOffset,et.needsCopy=!0,Ae(et.xOffset>=0&&et.xOffset=0&&et.yOffset0&&et.width<=nn&&et.height>0&&et.height<=aa,"copy texture read out of bounds")}else if(!jt)et.width=et.width||1,et.height=et.height||1,et.channels=et.channels||4;else if(U(jt))et.channels=et.channels||4,et.data=jt,!("type"in Jt)&&et.type===Co&&(et.type=Of(jt));else if(Jo(jt))et.channels=et.channels||4,qo(et,jt),et.alignment=1,et.needsFree=!0;else if(qa(jt)){var $e=jt.data;!Array.isArray($e)&&et.type===Co&&(et.type=Of($e));var Ge=jt.shape,mt=jt.stride,Gt,Ut,wt,xt,At,Ke;Ge.length===3?(wt=Ge[2],Ke=mt[2]):(Ae(Ge.length===2,"invalid ndarray pixel data, must be 2 or 3D"),wt=1,Ke=1),Gt=Ge[0],Ut=Ge[1],xt=mt[0],At=mt[1],et.alignment=1,et.width=Gt,et.height=Ut,et.channels=wt,et.format=et.internalformat=Un[wt],et.needsFree=!0,el(et,$e,xt,At,Ke,jt.offset)}else if(Qs(jt)||Tf(jt)||Qu(jt))Qs(jt)||Tf(jt)?et.element=jt:et.element=jt.canvas,et.width=et.element.width,et.height=et.element.height,et.channels=4;else if(Ju(jt))et.element=jt,et.width=jt.width,et.height=jt.height,et.channels=4;else if(cc(jt))et.element=jt,et.width=jt.naturalWidth,et.height=jt.naturalHeight,et.channels=4;else if(yu(jt))et.element=jt,et.width=jt.videoWidth,et.height=jt.videoHeight,et.channels=4;else if(Wo(jt)){var vt=et.width||jt[0].length,Ve=et.height||jt.length,kt=et.channels;ka(jt[0][0])?kt=kt||jt[0][0].length:kt=kt||1;for(var zt=_a.shape(jt),vr=1,gr=0;gr=0,"oes_texture_float extension not enabled"):et.type===io&&Ae(it.extensions.indexOf("oes_texture_half_float")>=0,"oes_texture_half_float extension not enabled")}function Lt(et,Jt,jt){var nn=et.element,aa=et.data,$e=et.internalformat,Ge=et.format,mt=et.type,Gt=et.width,Ut=et.height;sr(et),nn?ve.texImage2D(Jt,jt,Ge,Ge,mt,nn):et.compressed?ve.compressedTexImage2D(Jt,jt,$e,Gt,Ut,0,aa):et.needsCopy?(Zt(),ve.copyTexImage2D(Jt,jt,Ge,et.xOffset,et.yOffset,Gt,Ut,0)):ve.texImage2D(Jt,jt,Ge,Gt,Ut,0,Ge,mt,aa||null)}function _r(et,Jt,jt,nn,aa){var $e=et.element,Ge=et.data,mt=et.internalformat,Gt=et.format,Ut=et.type,wt=et.width,xt=et.height;sr(et),$e?ve.texSubImage2D(Jt,aa,jt,nn,Gt,Ut,$e):et.compressed?ve.compressedTexSubImage2D(Jt,aa,jt,nn,mt,wt,xt,Ge):et.needsCopy?(Zt(),ve.copyTexSubImage2D(Jt,aa,jt,nn,et.xOffset,et.yOffset,wt,xt)):ve.texSubImage2D(Jt,aa,jt,nn,wt,xt,Gt,Ut,Ge)}var Yr=[];function Pr(){return Yr.pop()||new Tt}function dn(et){et.needsFree&&he.freeType(et.data),Tt.call(et),Yr.push(et)}function sn(){Fe.call(this),this.genMipmaps=!1,this.mipmapHint=dt,this.mipmask=0,this.images=Array(16)}function tn(et,Jt,jt){var nn=et.images[0]=Pr();et.mipmask=1,nn.width=et.width=Jt,nn.height=et.height=jt,nn.channels=et.channels=4}function Bn(et,Jt){var jt=null;if(If(Jt))jt=et.images[0]=Pr(),tt(jt,et),Nt(jt,Jt),et.mipmask=1;else if(Mt(et,Jt),Array.isArray(Jt.mipmap))for(var nn=Jt.mipmap,aa=0;aa>=aa,jt.height>>=aa,Nt(jt,nn[aa]),et.mipmask|=1<=0&&!("faces"in Jt)&&(et.genMipmaps=!0)}if("mag"in Jt){var nn=Jt.mag;Ae.parameter(nn,Ar),et.magFilter=Ar[nn]}var aa=et.wrapS,$e=et.wrapT;if("wrap"in Jt){var Ge=Jt.wrap;typeof Ge=="string"?(Ae.parameter(Ge,Ir),aa=$e=Ir[Ge]):Array.isArray(Ge)&&(Ae.parameter(Ge[0],Ir),Ae.parameter(Ge[1],Ir),aa=Ir[Ge[0]],$e=Ir[Ge[1]])}else{if("wrapS"in Jt){var mt=Jt.wrapS;Ae.parameter(mt,Ir),aa=Ir[mt]}if("wrapT"in Jt){var Gt=Jt.wrapT;Ae.parameter(Gt,Ir),$e=Ir[Gt]}}if(et.wrapS=aa,et.wrapT=$e,"anisotropic"in Jt){var Ut=Jt.anisotropic;Ae(typeof Ut=="number"&&Ut>=1&&Ut<=it.maxAnisotropic,"aniso samples must be between 1 and "),et.anisotropic=Jt.anisotropic}if("mipmap"in Jt){var wt=!1;switch(typeof Jt.mipmap){case"string":Ae.parameter(Jt.mipmap,Mr,"invalid mipmap hint"),et.mipmapHint=Mr[Jt.mipmap],et.genMipmaps=!0,wt=!0;break;case"boolean":wt=et.genMipmaps=Jt.mipmap;break;case"object":Ae(Array.isArray(Jt.mipmap),"invalid mipmap type"),et.genMipmaps=!1,wt=!0;break;default:Ae.raise("invalid mipmap type")}wt&&!("min"in Jt)&&(et.minFilter=_e)}}function Za(et,Jt){ve.texParameteri(Jt,O,et.minFilter),ve.texParameteri(Jt,u,et.magFilter),ve.texParameteri(Jt,xo,et.wrapS),ve.texParameteri(Jt,$u,et.wrapT),We.ext_texture_filter_anisotropic&&ve.texParameteri(Jt,cr,et.anisotropic),et.genMipmaps&&(ve.hint(Je,et.mipmapHint),ve.generateMipmap(Jt))}var ri=0,li={},ii=it.maxTextureUnits,Pa=Array(ii).map(function(){return null});function Hn(et){Fe.call(this),this.mipmask=0,this.internalformat=an,this.id=ri++,this.refCount=1,this.target=et,this.texture=ve.createTexture(),this.unit=-1,this.bindCount=0,this.texInfo=new La,ar.profile&&(this.stats={size:0})}function Bi(et){ve.activeTexture(Jn),ve.bindTexture(et.target,et.texture)}function Ln(){var et=Pa[0];et?ve.bindTexture(et.target,et.texture):ve.bindTexture(mo,null)}function On(et){var Jt=et.texture;Ae(Jt,"must not double destroy texture");var jt=et.unit,nn=et.target;jt>=0&&(ve.activeTexture(Jn+jt),ve.bindTexture(nn,null),Pa[jt]=null),ve.deleteTexture(Jt),et.texture=null,et.params=null,et.pixels=null,et.refCount=0,delete li[et.id],Yt.textureCount--}z(Hn.prototype,{bind:function(){var et=this;et.bindCount+=1;var Jt=et.unit;if(Jt<0){for(var jt=0;jt0)continue;nn.unit=-1}Pa[jt]=et,Jt=jt;break}Jt>=ii&&Ae.raise("insufficient number of texture units"),ar.profile&&Yt.maxTextureUnits>At)-wt,Ke.height=Ke.height||(jt.height>>At)-xt,Ae(jt.type===Ke.type&&jt.format===Ke.format&&jt.internalformat===Ke.internalformat,"incompatible format for texture.subimage"),Ae(wt>=0&&xt>=0&&wt+Ke.width<=jt.width&&xt+Ke.height<=jt.height,"texture.subimage write out of bounds"),Ae(jt.mipmask&1<>wt;++wt){var xt=Gt>>wt,At=Ut>>wt;if(!xt||!At)break;ve.texImage2D(mo,wt,jt.format,xt,At,0,jt.format,jt.type,null)}return Ln(),ar.profile&&(jt.stats.size=Is(jt.internalformat,jt.type,Gt,Ut,!1,!1)),nn}return nn(et,Jt),nn.subimage=aa,nn.resize=$e,nn._reglType="texture2d",nn._texture=jt,ar.profile&&(nn.stats=jt.stats),nn.destroy=function(){jt.decRef()},nn}function ba(et,Jt,jt,nn,aa,$e){var Ge=new Hn(lu);li[Ge.id]=Ge,Yt.cubeCount++;var mt=new Array(6);function Gt(xt,At,Ke,vt,Ve,kt){var zt,vr=Ge.texInfo;for(La.call(vr),zt=0;zt<6;++zt)mt[zt]=Wn();if(typeof xt=="number"||!xt){var gr=xt|0||1;for(zt=0;zt<6;++zt)tn(mt[zt],gr,gr)}else if(typeof xt=="object")if(At)Bn(mt[0],xt),Bn(mt[1],At),Bn(mt[2],Ke),Bn(mt[3],vt),Bn(mt[4],Ve),Bn(mt[5],kt);else if(oa(vr,xt),Mt(Ge,xt),"faces"in xt){var ur=xt.faces;for(Ae(Array.isArray(ur)&&ur.length===6,"cube faces must be a length 6 array"),zt=0;zt<6;++zt)Ae(typeof ur[zt]=="object"&&!!ur[zt],"invalid input for cube map face"),tt(mt[zt],Ge),Bn(mt[zt],ur[zt])}else for(zt=0;zt<6;++zt)Bn(mt[zt],xt);else Ae.raise("invalid arguments to cube map");for(tt(Ge,mt[0]),it.npotTextureCube||Ae(Ys(Ge.width)&&Ys(Ge.height),"your browser does not support non power or two texture dimensions"),vr.genMipmaps?Ge.mipmask=(mt[0].width<<1)-1:Ge.mipmask=mt[0].mipmask,Ae.textureCube(Ge,vr,mt,it),Ge.internalformat=mt[0].internalformat,Gt.width=mt[0].width,Gt.height=mt[0].height,Bi(Ge),zt=0;zt<6;++zt)Fn(mt[zt],na+zt);for(Za(vr,lu),Ln(),ar.profile&&(Ge.stats.size=Is(Ge.internalformat,Ge.type,Gt.width,Gt.height,vr.genMipmaps,!0)),Gt.format=ie[Ge.internalformat],Gt.type=le[Ge.type],Gt.mag=ge[vr.magFilter],Gt.min=me[vr.minFilter],Gt.wrapS=Le[vr.wrapS],Gt.wrapT=Le[vr.wrapT],zt=0;zt<6;++zt)ti(mt[zt]);return Gt}function Ut(xt,At,Ke,vt,Ve){Ae(!!At,"must specify image data"),Ae(typeof xt=="number"&&xt===(xt|0)&&xt>=0&&xt<6,"invalid face");var kt=Ke|0,zt=vt|0,vr=Ve|0,gr=Pr();return tt(gr,Ge),gr.width=0,gr.height=0,Nt(gr,At),gr.width=gr.width||(Ge.width>>vr)-kt,gr.height=gr.height||(Ge.height>>vr)-zt,Ae(Ge.type===gr.type&&Ge.format===gr.format&&Ge.internalformat===gr.internalformat,"incompatible format for texture.subimage"),Ae(kt>=0&&zt>=0&&kt+gr.width<=Ge.width&&zt+gr.height<=Ge.height,"texture.subimage write out of bounds"),Ae(Ge.mipmask&1<>vt;++vt)ve.texImage2D(na+Ke,vt,Ge.format,At>>vt,At>>vt,0,Ge.format,Ge.type,null);return Ln(),ar.profile&&(Ge.stats.size=Is(Ge.internalformat,Ge.type,Gt.width,Gt.height,!1,!0)),Gt}}return Gt(et,Jt,jt,nn,aa,$e),Gt.subimage=Ut,Gt.resize=wt,Gt._reglType="textureCube",Gt._texture=Ge,ar.profile&&(Gt.stats=Ge.stats),Gt.destroy=function(){Ge.decRef()},Gt}function yi(){for(var et=0;et>nn,jt.height>>nn,0,jt.internalformat,jt.type,null);else for(var aa=0;aa<6;++aa)ve.texImage2D(na+aa,nn,jt.internalformat,jt.width>>nn,jt.height>>nn,0,jt.internalformat,jt.type,null);Za(jt.texInfo,jt.target)})}function Uu(){for(var et=0;et=2,"invalid renderbuffer shape"),me=tt[0]|0,Le=tt[1]|0}else"radius"in Fe&&(me=Le=Fe.radius|0),"width"in Fe&&(me=Fe.width|0),"height"in Fe&&(Le=Fe.height|0);"format"in Fe&&(Ae.parameter(Fe.format,Yt,"invalid renderbuffer format"),ze=Yt[Fe.format])}else typeof le=="number"?(me=le|0,typeof ge=="number"?Le=ge|0:Le=me):le?Ae.raise("invalid arguments to renderbuffer constructor"):me=Le=1;if(Ae(me>0&&Le>0&&me<=it.maxRenderbufferSize&&Le<=it.maxRenderbufferSize,"invalid renderbuffer size"),!(me===Y.width&&Le===Y.height&&ze===Y.format))return re.width=Y.width=me,re.height=Y.height=Le,Y.format=ze,ve.bindRenderbuffer(Qr,Y.renderbuffer),ve.renderbufferStorage(Qr,ze,me,Le),Ae(ve.getError()===0,"invalid render buffer format"),dr.profile&&(Y.stats.size=Pf(Y.format,Y.width,Y.height)),re.format=ar[Y.format],re}function ie(le,ge){var me=le|0,Le=ge|0||me;return me===Y.width&&Le===Y.height||(Ae(me>0&&Le>0&&me<=it.maxRenderbufferSize&&Le<=it.maxRenderbufferSize,"invalid renderbuffer size"),re.width=Y.width=me,re.height=Y.height=Le,ve.bindRenderbuffer(Qr,Y.renderbuffer),ve.renderbufferStorage(Qr,Y.format,me,Le),Ae(ve.getError()===0,"invalid render buffer format"),dr.profile&&(Y.stats.size=Pf(Y.format,Y.width,Y.height))),re}return re(M,G),re.resize=ie,re._reglType="renderbuffer",re._renderbuffer=Y,dr.profile&&(re.stats=Y.stats),re.destroy=function(){Y.decRef()},re}dr.profile&&(Zt.getTotalRenderbufferSize=function(){var M=0;return Object.keys(Ir).forEach(function(G){M+=Ir[G].stats.size}),M});function f(){si(Ir).forEach(function(M){M.renderbuffer=ve.createRenderbuffer(),ve.bindRenderbuffer(Qr,M.renderbuffer),ve.renderbufferStorage(Qr,M.format,M.width,M.height)}),ve.bindRenderbuffer(Qr,null)}return{create:zr,clear:function(){si(Ir).forEach(Tr)},restore:f}},xi=36160,tf=36161,As=3553,rf=34069,nf=36064,dc=36096,hc=36128,vc=33306,af=36053,gc=36054,xu=36055,pc=36057,Rf=36061,ds=36193,tl=5121,Do=5126,Bf=6407,hs=6408,Ls=6402,yc=[Bf,hs],wu=[];wu[hs]=4,wu[Bf]=3;var Ds=[];Ds[tl]=1,Ds[Do]=4,Ds[ds]=2;var mc=32854,rl=32855,of=36194,Ff=33189,Gf=36168,Ec=34041,sf=35907,uf=34836,nl=34842,al=34843,bc=[mc,rl,of,sf,nl,al,uf],Js={};Js[af]="complete",Js[gc]="incomplete attachment",Js[pc]="incomplete dimensions",Js[xu]="incomplete, missing attachment",Js[Rf]="unsupported";function il(ve,We,it,Zt,dr,Yt){var ar={cur:null,next:null,dirty:!1,setFBO:null},Mr=["rgba"],Ir=["rgba4","rgb565","rgb5 a1"];We.ext_srgb&&Ir.push("srgba"),We.ext_color_buffer_half_float&&Ir.push("rgba16f","rgb16f"),We.webgl_color_buffer_float&&Ir.push("rgba32f");var Ar=["uint8"];We.oes_texture_half_float&&Ar.push("half float","float16"),We.oes_texture_float&&Ar.push("float","float32");function Tr(Tt,Nt,Lt){this.target=Tt,this.texture=Nt,this.renderbuffer=Lt;var _r=0,Yr=0;Nt?(_r=Nt.width,Yr=Nt.height):Lt&&(_r=Lt.width,Yr=Lt.height),this.width=_r,this.height=Yr}function zr(Tt){Tt&&(Tt.texture&&Tt.texture._texture.decRef(),Tt.renderbuffer&&Tt.renderbuffer._renderbuffer.decRef())}function f(Tt,Nt,Lt){if(!!Tt)if(Tt.texture){var _r=Tt.texture._texture,Yr=Math.max(1,_r.width),Pr=Math.max(1,_r.height);Ae(Yr===Nt&&Pr===Lt,"inconsistent width/height for supplied texture"),_r.refCount+=1}else{var dn=Tt.renderbuffer._renderbuffer;Ae(dn.width===Nt&&dn.height===Lt,"inconsistent width/height for renderbuffer"),dn.refCount+=1}}function M(Tt,Nt){Nt&&(Nt.texture?ve.framebufferTexture2D(xi,Tt,Nt.target,Nt.texture._texture.texture,0):ve.framebufferRenderbuffer(xi,Tt,tf,Nt.renderbuffer._renderbuffer.renderbuffer))}function G(Tt){var Nt=As,Lt=null,_r=null,Yr=Tt;typeof Tt=="object"&&(Yr=Tt.data,"target"in Tt&&(Nt=Tt.target|0)),Ae.type(Yr,"function","invalid attachment data");var Pr=Yr._reglType;return Pr==="texture2d"?(Lt=Yr,Ae(Nt===As)):Pr==="textureCube"?(Lt=Yr,Ae(Nt>=rf&&Nt=2,"invalid shape for framebuffer"),tn=Bi[0],Bn=Bi[1]}else"radius"in Hn&&(tn=Bn=Hn.radius),"width"in Hn&&(tn=Hn.width),"height"in Hn&&(Bn=Hn.height);("color"in Hn||"colors"in Hn)&&(Wn=Hn.color||Hn.colors,Array.isArray(Wn)&&Ae(Wn.length===1||We.webgl_draw_buffers,"multiple render targets not supported")),Wn||("colorCount"in Hn&&(Za=Hn.colorCount|0,Ae(Za>0,"invalid color buffer count")),"colorTexture"in Hn&&(ti=!!Hn.colorTexture,La="rgba4"),"colorType"in Hn&&(oa=Hn.colorType,ti?(Ae(We.oes_texture_float||!(oa==="float"||oa==="float32"),"you must enable OES_texture_float in order to use floating point framebuffer objects"),Ae(We.oes_texture_half_float||!(oa==="half float"||oa==="float16"),"you must enable OES_texture_half_float in order to use 16-bit floating point framebuffer objects")):oa==="half float"||oa==="float16"?(Ae(We.ext_color_buffer_half_float,"you must enable EXT_color_buffer_half_float to use 16-bit render buffers"),La="rgba16f"):(oa==="float"||oa==="float32")&&(Ae(We.webgl_color_buffer_float,"you must enable WEBGL_color_buffer_float in order to use 32-bit floating point renderbuffers"),La="rgba32f"),Ae.oneOf(oa,Ar,"invalid color type")),"colorFormat"in Hn&&(La=Hn.colorFormat,Mr.indexOf(La)>=0?ti=!0:Ir.indexOf(La)>=0?ti=!1:ti?Ae.oneOf(Hn.colorFormat,Mr,"invalid color format for texture"):Ae.oneOf(Hn.colorFormat,Ir,"invalid color format for renderbuffer"))),("depthTexture"in Hn||"depthStencilTexture"in Hn)&&(Pa=!!(Hn.depthTexture||Hn.depthStencilTexture),Ae(!Pa||We.webgl_depth_texture,"webgl_depth_texture extension not supported")),"depth"in Hn&&(typeof Hn.depth=="boolean"?Fn=Hn.depth:(ri=Hn.depth,za=!1)),"stencil"in Hn&&(typeof Hn.stencil=="boolean"?za=Hn.stencil:(li=Hn.stencil,Fn=!1)),"depthStencil"in Hn&&(typeof Hn.depthStencil=="boolean"?Fn=za=Hn.depthStencil:(ii=Hn.depthStencil,Fn=!1,za=!1))}var Ln=null,On=null,sa=null,ba=null;if(Array.isArray(Wn))Ln=Wn.map(G);else if(Wn)Ln=[G(Wn)];else for(Ln=new Array(Za),sn=0;sn=0||Ln[sn].renderbuffer&&bc.indexOf(Ln[sn].renderbuffer._renderbuffer.format)>=0,"framebuffer color attachment "+sn+" is invalid"),Ln[sn]&&Ln[sn].texture){var Ho=wu[Ln[sn].texture._texture.format]*Ds[Ln[sn].texture._texture.type];yi===null?yi=Ho:Ae(yi===Ho,"all color attachments much have the same number of bits per pixel.")}return f(On,tn,Bn),Ae(!On||On.texture&&On.texture._texture.format===Ls||On.renderbuffer&&On.renderbuffer._renderbuffer.format===Ff,"invalid depth attachment for framebuffer object"),f(sa,tn,Bn),Ae(!sa||sa.renderbuffer&&sa.renderbuffer._renderbuffer.format===Gf,"invalid stencil attachment for framebuffer object"),f(ba,tn,Bn),Ae(!ba||ba.texture&&ba.texture._texture.format===Ec||ba.renderbuffer&&ba.renderbuffer._renderbuffer.format===Ec,"invalid depth-stencil attachment for framebuffer object"),Le(Lt),Lt.width=tn,Lt.height=Bn,Lt.colorAttachments=Ln,Lt.depthAttachment=On,Lt.stencilAttachment=sa,Lt.depthStencilAttachment=ba,_r.color=Ln.map(re),_r.depth=re(On),_r.stencil=re(sa),_r.depthStencil=re(ba),_r.width=Lt.width,_r.height=Lt.height,Fe(Lt),_r}function Yr(Pr,dn){Ae(ar.next!==Lt,"can not resize a framebuffer which is currently in use");var sn=Math.max(Pr|0,1),tn=Math.max(dn|0||sn,1);if(sn===Lt.width&&tn===Lt.height)return _r;for(var Bn=Lt.colorAttachments,Fn=0;Fn=2,"invalid shape for framebuffer"),Ae(ti[0]===ti[1],"cube framebuffer must be square"),sn=ti[0]}else"radius"in Wn&&(sn=Wn.radius|0),"width"in Wn?(sn=Wn.width|0,"height"in Wn&&Ae(Wn.height===sn,"must be square")):"height"in Wn&&(sn=Wn.height|0);("color"in Wn||"colors"in Wn)&&(tn=Wn.color||Wn.colors,Array.isArray(tn)&&Ae(tn.length===1||We.webgl_draw_buffers,"multiple render targets not supported")),tn||("colorCount"in Wn&&(za=Wn.colorCount|0,Ae(za>0,"invalid color buffer count")),"colorType"in Wn&&(Ae.oneOf(Wn.colorType,Ar,"invalid color type"),Fn=Wn.colorType),"colorFormat"in Wn&&(Bn=Wn.colorFormat,Ae.oneOf(Wn.colorFormat,Mr,"invalid color format for texture"))),"depth"in Wn&&(dn.depth=Wn.depth),"stencil"in Wn&&(dn.stencil=Wn.stencil),"depthStencil"in Wn&&(dn.depthStencil=Wn.depthStencil)}var La;if(tn)if(Array.isArray(tn))for(La=[],Pr=0;Pr0&&(dn.depth=Nt[0].depth,dn.stencil=Nt[0].stencil,dn.depthStencil=Nt[0].depthStencil),Nt[Pr]?Nt[Pr](dn):Nt[Pr]=tt(dn)}return z(Lt,{width:sn,height:sn,color:La})}function _r(Yr){var Pr,dn=Yr|0;if(Ae(dn>0&&dn<=it.maxCubeMapSize,"invalid radius for cube fbo"),dn===Lt.width)return Lt;var sn=Lt.color;for(Pr=0;Pr0,"must specify at least one attribute");var Mt={},sr=ze.attributes;sr.length=tt.length;for(var Tt=0;Tt=_r.byteLength?Yr.subdata(_r):(Yr.destroy(),ze.buffers[Tt]=null)),ze.buffers[Tt]||(Yr=ze.buffers[Tt]=dr.create(Nt,Su,!1,!0)),Lt.buffer=dr.getBuffer(Yr),Lt.size=Lt.buffer.dimension|0,Lt.normalized=!1,Lt.type=Lt.buffer.dtype,Lt.offset=0,Lt.stride=0,Lt.divisor=0,Lt.state=1,Mt[Tt]=1}else dr.getBuffer(Nt)?(Lt.buffer=dr.getBuffer(Nt),Lt.size=Lt.buffer.dimension|0,Lt.normalized=!1,Lt.type=Lt.buffer.dtype,Lt.offset=0,Lt.stride=0,Lt.divisor=0,Lt.state=1):dr.getBuffer(Nt.buffer)?(Lt.buffer=dr.getBuffer(Nt.buffer),Lt.size=(+Nt.size||Lt.buffer.dimension)|0,Lt.normalized=!!Nt.normalized||!1,"type"in Nt?(Ae.parameter(Nt.type,Hi,"invalid buffer type"),Lt.type=Hi[Nt.type]):Lt.type=Lt.buffer.dtype,Lt.offset=(Nt.offset||0)|0,Lt.stride=(Nt.stride||0)|0,Lt.divisor=(Nt.divisor||0)|0,Lt.state=1,Ae(Lt.size>=1&&Lt.size<=4,"size must be between 1 and 4"),Ae(Lt.offset>=0,"invalid offset"),Ae(Lt.stride>=0&&Lt.stride<=255,"stride must be between 0 and 255"),Ae(Lt.divisor>=0,"divisor must be positive"),Ae(!Lt.divisor||!!We.angle_instanced_arrays,"ANGLE_instanced_arrays must be enabled to use divisor")):"x"in Nt?(Ae(Tt>0,"first attribute must not be a constant"),Lt.x=+Nt.x||0,Lt.y=+Nt.y||0,Lt.z=+Nt.z||0,Lt.w=+Nt.w||0,Lt.state=2):Ae(!1,"invalid attribute spec for location "+Tt)}for(var Pr=0;Pr1)for(var sr=0;srY&&(Y=re.stats.uniformsCount)}),Y},it.getMaxAttributesCount=function(){var Y=0;return Tr.forEach(function(re){re.stats.attributesCount>Y&&(Y=re.stats.attributesCount)}),Y});function G(){dr={},Yt={};for(var Y=0;Y=0,"missing vertex shader",ie),Ae.command(re>=0,"missing fragment shader",ie);var ge=Ar[re];ge||(ge=Ar[re]={});var me=ge[Y];if(me&&(me.refCount++,!le))return me;var Le=new f(re,Y);return it.shaderCount++,M(Le,ie,le),me||(ge[Y]=Le),Tr.push(Le),z(Le,{destroy:function(){if(Le.refCount--,Le.refCount<=0){ve.deleteProgram(Le.program);var ze=Tr.indexOf(Le);Tr.splice(ze,1),it.shaderCount--}ge[Le.vertId].refCount<=0&&(ve.deleteShader(Yt[Le.vertId]),delete Yt[Le.vertId],delete Ar[Le.fragId][Le.vertId]),Object.keys(Ar[Le.fragId]).length||(ve.deleteShader(dr[Le.fragId]),delete dr[Le.fragId],delete Ar[Le.fragId])}})},restore:G,shader:Ir,frag:-1,vert:-1}}var wc=6408,Mu=5121,ff=3333,To=5126;function Sc(ve,We,it,Zt,dr,Yt,ar){function Mr(Tr){var zr;We.next===null?(Ae(dr.preserveDrawingBuffer,'you must create a webgl context with "preserveDrawingBuffer":true in order to read pixels from the drawing buffer'),zr=Mu):(Ae(We.next.colorAttachments[0].texture!==null,"You cannot read from a renderbuffer"),zr=We.next.colorAttachments[0].texture._texture.type,Yt.oes_texture_float?(Ae(zr===Mu||zr===To,"Reading from a framebuffer is only allowed for the types 'uint8' and 'float'"),zr===To&&Ae(ar.readFloat,"Reading 'float' values is not permitted in your browser. For a fallback, please see: https://www.npmjs.com/package/glsl-read-float")):Ae(zr===Mu,"Reading from a framebuffer is only allowed for the type 'uint8'"));var f=0,M=0,G=Zt.framebufferWidth,Y=Zt.framebufferHeight,re=null;U(Tr)?re=Tr:Tr&&(Ae.type(Tr,"object","invalid arguments to regl.read()"),f=Tr.x|0,M=Tr.y|0,Ae(f>=0&&f=0&&M0&&G+f<=Zt.framebufferWidth,"invalid width for read pixels"),Ae(Y>0&&Y+M<=Zt.framebufferHeight,"invalid height for read pixels"),it();var ie=G*Y*4;return re||(zr===Mu?re=new Uint8Array(ie):zr===To&&(re=re||new Float32Array(ie))),Ae.isTypedArray(re,"data buffer for regl.read() must be a typedarray"),Ae(re.byteLength>=ie,"data buffer for regl.read() too small"),ve.pixelStorei(ff,4),ve.readPixels(f,M,G,Y,wc,zr,re),re}function Ir(Tr){var zr;return We.setFBO({framebuffer:Tr.framebuffer},function(){zr=Mr(Tr)}),zr}function Ar(Tr){return!Tr||!("framebuffer"in Tr)?Mr(Tr):Ir(Tr)}return Ar}function qs(ve){return Array.prototype.slice.call(ve)}function Ns(ve){return qs(ve).join("")}function Kr(){var ve=0,We=[],it=[];function Zt(zr){for(var f=0;f0&&(zr.push(Y,"="),zr.push.apply(zr,qs(arguments)),zr.push(";")),Y}return z(f,{def:G,toString:function(){return Ns([M.length>0?"var "+M.join(",")+";":"",Ns(zr)])}})}function Yt(){var zr=dr(),f=dr(),M=zr.toString,G=f.toString;function Y(re,ie){f(re,ie,"=",zr.def(re,ie),";")}return z(function(){zr.apply(zr,qs(arguments))},{def:zr.def,entry:zr,exit:f,save:Y,set:function(re,ie,le){Y(re,ie),zr(re,ie,"=",le,";")},toString:function(){return M()+G()}})}function ar(){var zr=Ns(arguments),f=Yt(),M=Yt(),G=f.toString,Y=M.toString;return z(f,{then:function(){return f.apply(f,qs(arguments)),this},else:function(){return M.apply(M,qs(arguments)),this},toString:function(){var re=Y();return re&&(re="else{"+re+"}"),Ns(["if(",zr,"){",G(),"}",re])}})}var Mr=dr(),Ir={};function Ar(zr,f){var M=[];function G(){var ge="a"+M.length;return M.push(ge),ge}f=f||0;for(var Y=0;Y":516,notequal:517,"!=":517,"!==":517,gequal:518,">=":518,always:519},Es={"0":0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},Vc={frag:Dc,vert:Nc},Fu={cw:Uc,ccw:su};function Gu(ve){return Array.isArray(ve)||U(ve)||qa(ve)}function Yc(ve){return ve.sort(function(We,it){return We===Xo?-1:it===Xo?1:We=1,Zt>=2,We)}else if(it===Tu){var dr=ve.data;return new Ji(dr.thisDep,dr.contextDep,dr.propDep,We)}else{if(it===Mc)return new Ji(!1,!1,!1,We);if(it===Cc){for(var Yt=!1,ar=!1,Mr=!1,Ir=0;Ir=1&&(ar=!0),Tr>=2&&(Mr=!0)}else Ar.type===Tu&&(Yt=Yt||Ar.data.thisDep,ar=ar||Ar.data.contextDep,Mr=Mr||Ar.data.propDep)}return new Ji(Yt,ar,Mr,We)}else return new Ji(it===tu,it===eu,it===ks,We)}}var Ef=new Ji(!1,!1,!1,function(){});function bl(ve,We,it,Zt,dr,Yt,ar,Mr,Ir,Ar,Tr,zr,f,M,G){var Y=Ar.Record,re={add:32774,subtract:32778,"reverse subtract":32779};it.ext_blend_minmax&&(re.min=pl,re.max=yl);var ie=it.angle_instanced_arrays,le=it.webgl_draw_buffers,ge={dirty:!0,profile:G.profile},me={},Le=[],ze={},Fe={};function tt($e){return $e.replace(".","_")}function Mt($e,Ge,mt){var Gt=tt($e);Le.push($e),me[Gt]=ge[Gt]=!!mt,ze[Gt]=Ge}function sr($e,Ge,mt){var Gt=tt($e);Le.push($e),Array.isArray(mt)?(ge[Gt]=mt.slice(),me[Gt]=mt.slice()):ge[Gt]=me[Gt]=mt,Fe[Gt]=Ge}Mt(Tc,Rc),Mt(Uf,kc),sr(Wf,"blendColor",[0,0,0,0]),sr(jf,"blendEquationSeparate",[rc,rc]),sr(cf,"blendFuncSeparate",[Wc,Qi,Wc,Qi]),Mt(Xf,Bc,!0),sr(Vf,"depthFunc",ml),sr(Iu,"depthRange",[0,1]),sr(Rs,"depthMask",!0),sr(Oi,Oi,[!0,!0,!0,!0]),Mt(gt,vl),sr(cl,"cullFace",ys),sr(Ou,Ou,su),sr(Yf,Yf,1),Mt(ll,Gc),sr(Ic,"polygonOffset",[0,0]),Mt(dl,zs),Mt(hl,Nu),sr(lf,"sampleCoverage",[1,!1]),Mt(Hf,gl),sr(Oc,"stencilMask",-1),sr(Zf,"stencilFunc",[Kn,0,-1]),sr(Mi,"stencilOpSeparate",[Bu,ms,ms,ms]),sr(Au,"stencilOpSeparate",[ys,ms,ms,ms]),Mt(gi,Fc),sr(Lu,"scissor",[0,0,ve.drawingBufferWidth,ve.drawingBufferHeight]),sr(Xo,Xo,[0,0,ve.drawingBufferWidth,ve.drawingBufferHeight]);var Tt={gl:ve,context:f,strings:We,next:me,current:ge,draw:zr,elements:Yt,buffer:dr,shader:Tr,attributes:Ar.state,vao:Ar,uniforms:Ir,framebuffer:Mr,extensions:it,timer:M,isBufferArgs:Gu},Nt={primTypes:Pi,compareFuncs:uu,blendFuncs:pi,blendEquations:re,stencilOps:Es,glTypes:Hi,orientationType:Fu};Ae.optional(function(){Tt.isArrayLike=ka}),le&&(Nt.backBuffer=[ys],Nt.drawBuffer=ln(Zt.maxDrawbuffers,function($e){return $e===0?[0]:ln($e,function(Ge){return El+Ge})}));var Lt=0;function _r(){var $e=Kr(),Ge=$e.link,mt=$e.global;$e.id=Lt++,$e.batchId="0";var Gt=Ge(Tt),Ut=$e.shared={props:"a0"};Object.keys(Tt).forEach(function(vt){Ut[vt]=mt.def(Gt,".",vt)}),Ae.optional(function(){$e.CHECK=Ge(Ae),$e.commandStr=Ae.guessCommand(),$e.command=Ge($e.commandStr),$e.assert=function(vt,Ve,kt){vt("if(!(",Ve,"))",this.CHECK,".commandRaise(",Ge(kt),",",this.command,");")},Nt.invalidBlendCombinations=Xc});var wt=$e.next={},xt=$e.current={};Object.keys(Fe).forEach(function(vt){Array.isArray(ge[vt])&&(wt[vt]=mt.def(Ut.next,".",vt),xt[vt]=mt.def(Ut.current,".",vt))});var At=$e.constants={};Object.keys(Nt).forEach(function(vt){At[vt]=mt.def(JSON.stringify(Nt[vt]))}),$e.invoke=function(vt,Ve){switch(Ve.type){case zf:var kt=["this",Ut.context,Ut.props,$e.batchId];return vt.def(Ge(Ve.data),".call(",kt.slice(0,Math.max(Ve.data.length+1,4)),")");case ks:return vt.def(Ut.props,Ve.data);case eu:return vt.def(Ut.context,Ve.data);case tu:return vt.def("this",Ve.data);case Tu:return Ve.data.append($e,vt),Ve.data.ref;case Mc:return Ve.data.toString();case Cc:return Ve.data.map(function(zt){return $e.invoke(vt,zt)})}},$e.attribCache={};var Ke={};return $e.scopeAttrib=function(vt){var Ve=We.id(vt);if(Ve in Ke)return Ke[Ve];var kt=Ar.scope[Ve];kt||(kt=Ar.scope[Ve]=new Y);var zt=Ke[Ve]=Ge(kt);return zt},$e}function Yr($e){var Ge=$e.static,mt=$e.dynamic,Gt;if(vs in Ge){var Ut=!!Ge[vs];Gt=ci(function(xt,At){return Ut}),Gt.enable=Ut}else if(vs in mt){var wt=mt[vs];Gt=Ri(wt,function(xt,At){return xt.invoke(At,wt)})}return Gt}function Pr($e,Ge){var mt=$e.static,Gt=$e.dynamic;if(Bs in mt){var Ut=mt[Bs];return Ut?(Ut=Mr.getFramebuffer(Ut),Ae.command(Ut,"invalid framebuffer object"),ci(function(xt,At){var Ke=xt.link(Ut),vt=xt.shared;At.set(vt.framebuffer,".next",Ke);var Ve=vt.context;return At.set(Ve,"."+ea,Ke+".width"),At.set(Ve,"."+Io,Ke+".height"),Ke})):ci(function(xt,At){var Ke=xt.shared;At.set(Ke.framebuffer,".next","null");var vt=Ke.context;return At.set(vt,"."+ea,vt+"."+Jf),At.set(vt,"."+Io,vt+"."+qf),"null"})}else if(Bs in Gt){var wt=Gt[Bs];return Ri(wt,function(xt,At){var Ke=xt.invoke(At,wt),vt=xt.shared,Ve=vt.framebuffer,kt=At.def(Ve,".getFramebuffer(",Ke,")");Ae.optional(function(){xt.assert(At,"!"+Ke+"||"+kt,"invalid framebuffer object")}),At.set(Ve,".next",kt);var zt=vt.context;return At.set(zt,"."+ea,kt+"?"+kt+".width:"+zt+"."+Jf),At.set(zt,"."+Io,kt+"?"+kt+".height:"+zt+"."+qf),kt})}else return null}function dn($e,Ge,mt){var Gt=$e.static,Ut=$e.dynamic;function wt(Ke){if(Ke in Gt){var vt=Gt[Ke];Ae.commandType(vt,"object","invalid "+Ke,mt.commandStr);var Ve=!0,kt=vt.x|0,zt=vt.y|0,vr,gr;return"width"in vt?(vr=vt.width|0,Ae.command(vr>=0,"invalid "+Ke,mt.commandStr)):Ve=!1,"height"in vt?(gr=vt.height|0,Ae.command(gr>=0,"invalid "+Ke,mt.commandStr)):Ve=!1,new Ji(!Ve&&Ge&&Ge.thisDep,!Ve&&Ge&&Ge.contextDep,!Ve&&Ge&&Ge.propDep,function(yn,Zn){var un=yn.shared.context,Dn=vr;"width"in vt||(Dn=Zn.def(un,".",ea,"-",kt));var jn=gr;return"height"in vt||(jn=Zn.def(un,".",Io,"-",zt)),[kt,zt,Dn,jn]})}else if(Ke in Ut){var ur=Ut[Ke],Lr=Ri(ur,function(yn,Zn){var un=yn.invoke(Zn,ur);Ae.optional(function(){yn.assert(Zn,un+"&&typeof "+un+'==="object"',"invalid "+Ke)});var Dn=yn.shared.context,jn=Zn.def(un,".x|0"),Sa=Zn.def(un,".y|0"),di=Zn.def('"width" in ',un,"?",un,".width|0:","(",Dn,".",ea,"-",jn,")"),qi=Zn.def('"height" in ',un,"?",un,".height|0:","(",Dn,".",Io,"-",Sa,")");return Ae.optional(function(){yn.assert(Zn,di+">=0&&"+qi+">=0","invalid "+Ke)}),[jn,Sa,di,qi]});return Ge&&(Lr.thisDep=Lr.thisDep||Ge.thisDep,Lr.contextDep=Lr.contextDep||Ge.contextDep,Lr.propDep=Lr.propDep||Ge.propDep),Lr}else return Ge?new Ji(Ge.thisDep,Ge.contextDep,Ge.propDep,function(yn,Zn){var un=yn.shared.context;return[0,0,Zn.def(un,".",ea),Zn.def(un,".",Io)]}):null}var xt=wt(Xo);if(xt){var At=xt;xt=new Ji(xt.thisDep,xt.contextDep,xt.propDep,function(Ke,vt){var Ve=At.append(Ke,vt),kt=Ke.shared.context;return vt.set(kt,"."+nu,Ve[2]),vt.set(kt,"."+Qf,Ve[3]),Ve})}return{viewport:xt,scissor_box:wt(Lu)}}function sn($e,Ge){var mt=$e.static,Gt=typeof mt[ru]=="string"&&typeof mt[gs]=="string";if(Gt){if(Object.keys(Ge.dynamic).length>0)return null;var Ut=Ge.static,wt=Object.keys(Ut);if(wt.length>0&&typeof Ut[wt[0]]=="number"){for(var xt=[],At=0;At=0,"invalid "+Ve,Ge.commandStr),ci(function(gr,ur){return kt&&(gr.OFFSET=zt),zt})}else if(Ve in Gt){var vr=Gt[Ve];return Ri(vr,function(gr,ur){var Lr=gr.invoke(ur,vr);return kt&&(gr.OFFSET=Lr,Ae.optional(function(){gr.assert(ur,Lr+">=0","invalid "+Ve)})),Lr})}else if(kt&&wt)return ci(function(gr,ur){return gr.OFFSET="0",0});return null}var Ke=At(Fs,!0);function vt(){if(wo in mt){var Ve=mt[wo]|0;return Ae.command(typeof Ve=="number"&&Ve>=0,"invalid vertex count",Ge.commandStr),ci(function(){return Ve})}else if(wo in Gt){var kt=Gt[wo];return Ri(kt,function(gr,ur){var Lr=gr.invoke(ur,kt);return Ae.optional(function(){gr.assert(ur,"typeof "+Lr+'==="number"&&'+Lr+">=0&&"+Lr+"===("+Lr+"|0)","invalid vertex count")}),Lr})}else if(wt)if(bs(wt)){if(wt)return Ke?new Ji(Ke.thisDep,Ke.contextDep,Ke.propDep,function(gr,ur){var Lr=ur.def(gr.ELEMENTS,".vertCount-",gr.OFFSET);return Ae.optional(function(){gr.assert(ur,Lr+">=0","invalid vertex offset/element buffer too small")}),Lr}):ci(function(gr,ur){return ur.def(gr.ELEMENTS,".vertCount")});var zt=ci(function(){return-1});return Ae.optional(function(){zt.MISSING=!0}),zt}else{var vr=new Ji(wt.thisDep||Ke.thisDep,wt.contextDep||Ke.contextDep,wt.propDep||Ke.propDep,function(gr,ur){var Lr=gr.ELEMENTS;return gr.OFFSET?ur.def(Lr,"?",Lr,".vertCount-",gr.OFFSET,":-1"):ur.def(Lr,"?",Lr,".vertCount:-1")});return Ae.optional(function(){vr.DYNAMIC=!0}),vr}return null}return{elements:wt,primitive:xt(),count:vt(),instances:At(df,!1),offset:Ke}}function Fn($e,Ge){var mt=$e.static,Gt=$e.dynamic,Ut={};return Le.forEach(function(wt){var xt=tt(wt);function At(Ke,vt){if(wt in mt){var Ve=Ke(mt[wt]);Ut[xt]=ci(function(){return Ve})}else if(wt in Gt){var kt=Gt[wt];Ut[xt]=Ri(kt,function(zt,vr){return vt(zt,vr,zt.invoke(vr,kt))})}}switch(wt){case gt:case Uf:case Tc:case Hf:case Xf:case gi:case ll:case dl:case hl:case Rs:return At(function(Ke){return Ae.commandType(Ke,"boolean",wt,Ge.commandStr),Ke},function(Ke,vt,Ve){return Ae.optional(function(){Ke.assert(vt,"typeof "+Ve+'==="boolean"',"invalid flag "+wt,Ke.commandStr)}),Ve});case Vf:return At(function(Ke){return Ae.commandParameter(Ke,uu,"invalid "+wt,Ge.commandStr),uu[Ke]},function(Ke,vt,Ve){var kt=Ke.constants.compareFuncs;return Ae.optional(function(){Ke.assert(vt,Ve+" in "+kt,"invalid "+wt+", must be one of "+Object.keys(uu))}),vt.def(kt,"[",Ve,"]")});case Iu:return At(function(Ke){return Ae.command(ka(Ke)&&Ke.length===2&&typeof Ke[0]=="number"&&typeof Ke[1]=="number"&&Ke[0]<=Ke[1],"depth range is 2d array",Ge.commandStr),Ke},function(Ke,vt,Ve){Ae.optional(function(){Ke.assert(vt,Ke.shared.isArrayLike+"("+Ve+")&&"+Ve+".length===2&&typeof "+Ve+'[0]==="number"&&typeof '+Ve+'[1]==="number"&&'+Ve+"[0]<="+Ve+"[1]","depth range must be a 2d array")});var kt=vt.def("+",Ve,"[0]"),zt=vt.def("+",Ve,"[1]");return[kt,zt]});case cf:return At(function(Ke){Ae.commandType(Ke,"object","blend.func",Ge.commandStr);var vt="srcRGB"in Ke?Ke.srcRGB:Ke.src,Ve="srcAlpha"in Ke?Ke.srcAlpha:Ke.src,kt="dstRGB"in Ke?Ke.dstRGB:Ke.dst,zt="dstAlpha"in Ke?Ke.dstAlpha:Ke.dst;return Ae.commandParameter(vt,pi,xt+".srcRGB",Ge.commandStr),Ae.commandParameter(Ve,pi,xt+".srcAlpha",Ge.commandStr),Ae.commandParameter(kt,pi,xt+".dstRGB",Ge.commandStr),Ae.commandParameter(zt,pi,xt+".dstAlpha",Ge.commandStr),Ae.command(Xc.indexOf(vt+", "+kt)===-1,"unallowed blending combination (srcRGB, dstRGB) = ("+vt+", "+kt+")",Ge.commandStr),[pi[vt],pi[kt],pi[Ve],pi[zt]]},function(Ke,vt,Ve){var kt=Ke.constants.blendFuncs;Ae.optional(function(){Ke.assert(vt,Ve+"&&typeof "+Ve+'==="object"',"invalid blend func, must be an object")});function zt(un,Dn){var jn=vt.def('"',un,Dn,'" in ',Ve,"?",Ve,".",un,Dn,":",Ve,".",un);return Ae.optional(function(){Ke.assert(vt,jn+" in "+kt,"invalid "+wt+"."+un+Dn+", must be one of "+Object.keys(pi))}),jn}var vr=zt("src","RGB"),gr=zt("dst","RGB");Ae.optional(function(){var un=Ke.constants.invalidBlendCombinations;Ke.assert(vt,un+".indexOf("+vr+'+", "+'+gr+") === -1 ","unallowed blending combination for (srcRGB, dstRGB)")});var ur=vt.def(kt,"[",vr,"]"),Lr=vt.def(kt,"[",zt("src","Alpha"),"]"),yn=vt.def(kt,"[",gr,"]"),Zn=vt.def(kt,"[",zt("dst","Alpha"),"]");return[ur,yn,Lr,Zn]});case jf:return At(function(Ke){if(typeof Ke=="string")return Ae.commandParameter(Ke,re,"invalid "+wt,Ge.commandStr),[re[Ke],re[Ke]];if(typeof Ke=="object")return Ae.commandParameter(Ke.rgb,re,wt+".rgb",Ge.commandStr),Ae.commandParameter(Ke.alpha,re,wt+".alpha",Ge.commandStr),[re[Ke.rgb],re[Ke.alpha]];Ae.commandRaise("invalid blend.equation",Ge.commandStr)},function(Ke,vt,Ve){var kt=Ke.constants.blendEquations,zt=vt.def(),vr=vt.def(),gr=Ke.cond("typeof ",Ve,'==="string"');return Ae.optional(function(){function ur(Lr,yn,Zn){Ke.assert(Lr,Zn+" in "+kt,"invalid "+yn+", must be one of "+Object.keys(re))}ur(gr.then,wt,Ve),Ke.assert(gr.else,Ve+"&&typeof "+Ve+'==="object"',"invalid "+wt),ur(gr.else,wt+".rgb",Ve+".rgb"),ur(gr.else,wt+".alpha",Ve+".alpha")}),gr.then(zt,"=",vr,"=",kt,"[",Ve,"];"),gr.else(zt,"=",kt,"[",Ve,".rgb];",vr,"=",kt,"[",Ve,".alpha];"),vt(gr),[zt,vr]});case Wf:return At(function(Ke){return Ae.command(ka(Ke)&&Ke.length===4,"blend.color must be a 4d array",Ge.commandStr),ln(4,function(vt){return+Ke[vt]})},function(Ke,vt,Ve){return Ae.optional(function(){Ke.assert(vt,Ke.shared.isArrayLike+"("+Ve+")&&"+Ve+".length===4","blend.color must be a 4d array")}),ln(4,function(kt){return vt.def("+",Ve,"[",kt,"]")})});case Oc:return At(function(Ke){return Ae.commandType(Ke,"number",xt,Ge.commandStr),Ke|0},function(Ke,vt,Ve){return Ae.optional(function(){Ke.assert(vt,"typeof "+Ve+'==="number"',"invalid stencil.mask")}),vt.def(Ve,"|0")});case Zf:return At(function(Ke){Ae.commandType(Ke,"object",xt,Ge.commandStr);var vt=Ke.cmp||"keep",Ve=Ke.ref||0,kt="mask"in Ke?Ke.mask:-1;return Ae.commandParameter(vt,uu,wt+".cmp",Ge.commandStr),Ae.commandType(Ve,"number",wt+".ref",Ge.commandStr),Ae.commandType(kt,"number",wt+".mask",Ge.commandStr),[uu[vt],Ve,kt]},function(Ke,vt,Ve){var kt=Ke.constants.compareFuncs;Ae.optional(function(){function ur(){Ke.assert(vt,Array.prototype.join.call(arguments,""),"invalid stencil.func")}ur(Ve+"&&typeof ",Ve,'==="object"'),ur('!("cmp" in ',Ve,")||(",Ve,".cmp in ",kt,")")});var zt=vt.def('"cmp" in ',Ve,"?",kt,"[",Ve,".cmp]",":",ms),vr=vt.def(Ve,".ref|0"),gr=vt.def('"mask" in ',Ve,"?",Ve,".mask|0:-1");return[zt,vr,gr]});case Mi:case Au:return At(function(Ke){Ae.commandType(Ke,"object",xt,Ge.commandStr);var vt=Ke.fail||"keep",Ve=Ke.zfail||"keep",kt=Ke.zpass||"keep";return Ae.commandParameter(vt,Es,wt+".fail",Ge.commandStr),Ae.commandParameter(Ve,Es,wt+".zfail",Ge.commandStr),Ae.commandParameter(kt,Es,wt+".zpass",Ge.commandStr),[wt===Au?ys:Bu,Es[vt],Es[Ve],Es[kt]]},function(Ke,vt,Ve){var kt=Ke.constants.stencilOps;Ae.optional(function(){Ke.assert(vt,Ve+"&&typeof "+Ve+'==="object"',"invalid "+wt)});function zt(vr){return Ae.optional(function(){Ke.assert(vt,'!("'+vr+'" in '+Ve+")||("+Ve+"."+vr+" in "+kt+")","invalid "+wt+"."+vr+", must be one of "+Object.keys(Es))}),vt.def('"',vr,'" in ',Ve,"?",kt,"[",Ve,".",vr,"]:",ms)}return[wt===Au?ys:Bu,zt("fail"),zt("zfail"),zt("zpass")]});case Ic:return At(function(Ke){Ae.commandType(Ke,"object",xt,Ge.commandStr);var vt=Ke.factor|0,Ve=Ke.units|0;return Ae.commandType(vt,"number",xt+".factor",Ge.commandStr),Ae.commandType(Ve,"number",xt+".units",Ge.commandStr),[vt,Ve]},function(Ke,vt,Ve){Ae.optional(function(){Ke.assert(vt,Ve+"&&typeof "+Ve+'==="object"',"invalid "+wt)});var kt=vt.def(Ve,".factor|0"),zt=vt.def(Ve,".units|0");return[kt,zt]});case cl:return At(function(Ke){var vt=0;return Ke==="front"?vt=Bu:Ke==="back"&&(vt=ys),Ae.command(!!vt,xt,Ge.commandStr),vt},function(Ke,vt,Ve){return Ae.optional(function(){Ke.assert(vt,Ve+'==="front"||'+Ve+'==="back"',"invalid cull.face")}),vt.def(Ve,'==="front"?',Bu,":",ys)});case Yf:return At(function(Ke){return Ae.command(typeof Ke=="number"&&Ke>=Zt.lineWidthDims[0]&&Ke<=Zt.lineWidthDims[1],"invalid line width, must be a positive number between "+Zt.lineWidthDims[0]+" and "+Zt.lineWidthDims[1],Ge.commandStr),Ke},function(Ke,vt,Ve){return Ae.optional(function(){Ke.assert(vt,"typeof "+Ve+'==="number"&&'+Ve+">="+Zt.lineWidthDims[0]+"&&"+Ve+"<="+Zt.lineWidthDims[1],"invalid line width")}),Ve});case Ou:return At(function(Ke){return Ae.commandParameter(Ke,Fu,xt,Ge.commandStr),Fu[Ke]},function(Ke,vt,Ve){return Ae.optional(function(){Ke.assert(vt,Ve+'==="cw"||'+Ve+'==="ccw"',"invalid frontFace, must be one of cw,ccw")}),vt.def(Ve+'==="cw"?'+Uc+":"+su)});case Oi:return At(function(Ke){return Ae.command(ka(Ke)&&Ke.length===4,"color.mask must be length 4 array",Ge.commandStr),Ke.map(function(vt){return!!vt})},function(Ke,vt,Ve){return Ae.optional(function(){Ke.assert(vt,Ke.shared.isArrayLike+"("+Ve+")&&"+Ve+".length===4","invalid color.mask")}),ln(4,function(kt){return"!!"+Ve+"["+kt+"]"})});case lf:return At(function(Ke){Ae.command(typeof Ke=="object"&&Ke,xt,Ge.commandStr);var vt="value"in Ke?Ke.value:1,Ve=!!Ke.invert;return Ae.command(typeof vt=="number"&&vt>=0&&vt<=1,"sample.coverage.value must be a number between 0 and 1",Ge.commandStr),[vt,Ve]},function(Ke,vt,Ve){Ae.optional(function(){Ke.assert(vt,Ve+"&&typeof "+Ve+'==="object"',"invalid sample.coverage")});var kt=vt.def('"value" in ',Ve,"?+",Ve,".value:1"),zt=vt.def("!!",Ve,".invert");return[kt,zt]})}}),Ut}function za($e,Ge){var mt=$e.static,Gt=$e.dynamic,Ut={};return Object.keys(mt).forEach(function(wt){var xt=mt[wt],At;if(typeof xt=="number"||typeof xt=="boolean")At=ci(function(){return xt});else if(typeof xt=="function"){var Ke=xt._reglType;Ke==="texture2d"||Ke==="textureCube"?At=ci(function(vt){return vt.link(xt)}):Ke==="framebuffer"||Ke==="framebufferCube"?(Ae.command(xt.color.length>0,'missing color attachment for framebuffer sent to uniform "'+wt+'"',Ge.commandStr),At=ci(function(vt){return vt.link(xt.color[0])})):Ae.commandRaise('invalid data for uniform "'+wt+'"',Ge.commandStr)}else ka(xt)?At=ci(function(vt){var Ve=vt.global.def("[",ln(xt.length,function(kt){return Ae.command(typeof xt[kt]=="number"||typeof xt[kt]=="boolean","invalid uniform "+wt,vt.commandStr),xt[kt]}),"]");return Ve}):Ae.commandRaise('invalid or missing data for uniform "'+wt+'"',Ge.commandStr);At.value=xt,Ut[wt]=At}),Object.keys(Gt).forEach(function(wt){var xt=Gt[wt];Ut[wt]=Ri(xt,function(At,Ke){return At.invoke(Ke,xt)})}),Ut}function Wn($e,Ge){var mt=$e.static,Gt=$e.dynamic,Ut={};return Object.keys(mt).forEach(function(wt){var xt=mt[wt],At=We.id(wt),Ke=new Y;if(Gu(xt))Ke.state=so,Ke.buffer=dr.getBuffer(dr.create(xt,Gs,!1,!0)),Ke.type=0;else{var vt=dr.getBuffer(xt);if(vt)Ke.state=so,Ke.buffer=vt,Ke.type=0;else if(Ae.command(typeof xt=="object"&&xt,"invalid data for attribute "+wt,Ge.commandStr),"constant"in xt){var Ve=xt.constant;Ke.buffer="null",Ke.state=Ps,typeof Ve=="number"?Ke.x=Ve:(Ae.command(ka(Ve)&&Ve.length>0&&Ve.length<=4,"invalid constant for attribute "+wt,Ge.commandStr),Cu.forEach(function(yn,Zn){Zn=0,'invalid offset for attribute "'+wt+'"',Ge.commandStr);var zt=xt.stride|0;Ae.command(zt>=0&&zt<256,'invalid stride for attribute "'+wt+'", must be integer betweeen [0, 255]',Ge.commandStr);var vr=xt.size|0;Ae.command(!("size"in xt)||vr>0&&vr<=4,'invalid size for attribute "'+wt+'", must be 1,2,3,4',Ge.commandStr);var gr=!!xt.normalized,ur=0;"type"in xt&&(Ae.commandParameter(xt.type,Hi,"invalid type for attribute "+wt,Ge.commandStr),ur=Hi[xt.type]);var Lr=xt.divisor|0;"divisor"in xt&&(Ae.command(Lr===0||ie,'cannot specify divisor for attribute "'+wt+'", instancing not supported',Ge.commandStr),Ae.command(Lr>=0,'invalid divisor for attribute "'+wt+'"',Ge.commandStr)),Ae.optional(function(){var yn=Ge.commandStr,Zn=["buffer","offset","divisor","normalized","type","size","stride"];Object.keys(xt).forEach(function(un){Ae.command(Zn.indexOf(un)>=0,'unknown parameter "'+un+'" for attribute pointer "'+wt+'" (valid parameters are '+Zn+")",yn)})}),Ke.buffer=vt,Ke.state=so,Ke.size=vr,Ke.normalized=gr,Ke.type=ur||vt.dtype,Ke.offset=kt,Ke.stride=zt,Ke.divisor=Lr}}Ut[wt]=ci(function(yn,Zn){var un=yn.attribCache;if(At in un)return un[At];var Dn={isStream:!1};return Object.keys(Ke).forEach(function(jn){Dn[jn]=Ke[jn]}),Ke.buffer&&(Dn.buffer=yn.link(Ke.buffer),Dn.type=Dn.type||Dn.buffer+".dtype"),un[At]=Dn,Dn})}),Object.keys(Gt).forEach(function(wt){var xt=Gt[wt];function At(Ke,vt){var Ve=Ke.invoke(vt,xt),kt=Ke.shared,zt=Ke.constants,vr=kt.isBufferArgs,gr=kt.buffer;Ae.optional(function(){Ke.assert(vt,Ve+"&&(typeof "+Ve+'==="object"||typeof '+Ve+'==="function")&&('+vr+"("+Ve+")||"+gr+".getBuffer("+Ve+")||"+gr+".getBuffer("+Ve+".buffer)||"+vr+"("+Ve+'.buffer)||("constant" in '+Ve+"&&(typeof "+Ve+'.constant==="number"||'+kt.isArrayLike+"("+Ve+".constant))))",'invalid dynamic attribute "'+wt+'"')});var ur={isStream:vt.def(!1)},Lr=new Y;Lr.state=so,Object.keys(Lr).forEach(function(Dn){ur[Dn]=vt.def(""+Lr[Dn])});var yn=ur.buffer,Zn=ur.type;vt("if(",vr,"(",Ve,")){",ur.isStream,"=true;",yn,"=",gr,".createStream(",Gs,",",Ve,");",Zn,"=",yn,".dtype;","}else{",yn,"=",gr,".getBuffer(",Ve,");","if(",yn,"){",Zn,"=",yn,".dtype;",'}else if("constant" in ',Ve,"){",ur.state,"=",Ps,";","if(typeof "+Ve+'.constant === "number"){',ur[Cu[0]],"=",Ve,".constant;",Cu.slice(1).map(function(Dn){return ur[Dn]}).join("="),"=0;","}else{",Cu.map(function(Dn,jn){return ur[Dn]+"="+Ve+".constant.length>"+jn+"?"+Ve+".constant["+jn+"]:0;"}).join(""),"}}else{","if(",vr,"(",Ve,".buffer)){",yn,"=",gr,".createStream(",Gs,",",Ve,".buffer);","}else{",yn,"=",gr,".getBuffer(",Ve,".buffer);","}",Zn,'="type" in ',Ve,"?",zt.glTypes,"[",Ve,".type]:",yn,".dtype;",ur.normalized,"=!!",Ve,".normalized;");function un(Dn){vt(ur[Dn],"=",Ve,".",Dn,"|0;")}return un("size"),un("offset"),un("stride"),un("divisor"),vt("}}"),vt.exit("if(",ur.isStream,"){",gr,".destroyStream(",yn,");","}"),ur}Ut[wt]=Ri(xt,At)}),Ut}function ti($e,Ge){var mt=$e.static,Gt=$e.dynamic;if(Du in mt){var Ut=mt[Du];return Ut!==null&&Ar.getVAO(Ut)===null&&(Ut=Ar.createVAO(Ut)),ci(function(xt){return xt.link(Ar.getVAO(Ut))})}else if(Du in Gt){var wt=Gt[Du];return Ri(wt,function(xt,At){var Ke=xt.invoke(At,wt);return At.def(xt.shared.vao+".getVAO("+Ke+")")})}return null}function La($e){var Ge=$e.static,mt=$e.dynamic,Gt={};return Object.keys(Ge).forEach(function(Ut){var wt=Ge[Ut];Gt[Ut]=ci(function(xt,At){return typeof wt=="number"||typeof wt=="boolean"?""+wt:xt.link(wt)})}),Object.keys(mt).forEach(function(Ut){var wt=mt[Ut];Gt[Ut]=Ri(wt,function(xt,At){return xt.invoke(At,wt)})}),Gt}function oa($e,Ge,mt,Gt,Ut){var wt=$e.static,xt=$e.dynamic;Ae.optional(function(){var un=[Bs,gs,ru,ps,ra,Fs,wo,df,vs,Du].concat(Le);function Dn(jn){Object.keys(jn).forEach(function(Sa){Ae.command(un.indexOf(Sa)>=0,'unknown parameter "'+Sa+'"',Ut.commandStr)})}Dn(wt),Dn(xt)});var At=sn($e,Ge),Ke=Pr($e,Ut),vt=dn($e,Ke,Ut),Ve=Bn($e,Ut),kt=Fn($e,Ut),zt=tn($e,Ut,At);function vr(un){var Dn=vt[un];Dn&&(kt[un]=Dn)}vr(Xo),vr(tt(Lu));var gr=Object.keys(kt).length>0,ur={framebuffer:Ke,draw:Ve,shader:zt,state:kt,dirty:gr,scopeVAO:null,drawVAO:null,useVAO:!1,attributes:{}};if(ur.profile=Yr($e,Ut),ur.uniforms=za(mt,Ut),ur.drawVAO=ur.scopeVAO=ti($e,Ut),!ur.drawVAO&&zt.program&&!At&&it.angle_instanced_arrays){var Lr=!0,yn=zt.program.attributes.map(function(un){var Dn=Ge.static[un];return Lr=Lr&&!!Dn,Dn});if(Lr&&yn.length>0){var Zn=Ar.getVAO(Ar.createVAO(yn));ur.drawVAO=new Ji(null,null,null,function(un,Dn){return un.link(Zn)}),ur.useVAO=!0}}return At?ur.useVAO=!0:ur.attributes=Wn(Ge,Ut),ur.context=La(Gt,Ut),ur}function Za($e,Ge,mt){var Gt=$e.shared,Ut=Gt.context,wt=$e.scope();Object.keys(mt).forEach(function(xt){Ge.save(Ut,"."+xt);var At=mt[xt],Ke=At.append($e,Ge);Array.isArray(Ke)?wt(Ut,".",xt,"=[",Ke.join(),"];"):wt(Ut,".",xt,"=",Ke,";")}),Ge(wt)}function ri($e,Ge,mt,Gt){var Ut=$e.shared,wt=Ut.gl,xt=Ut.framebuffer,At;le&&(At=Ge.def(Ut.extensions,".webgl_draw_buffers"));var Ke=$e.constants,vt=Ke.drawBuffer,Ve=Ke.backBuffer,kt;mt?kt=mt.append($e,Ge):kt=Ge.def(xt,".next"),Gt||Ge("if(",kt,"!==",xt,".cur){"),Ge("if(",kt,"){",wt,".bindFramebuffer(",jc,",",kt,".framebuffer);"),le&&Ge(At,".drawBuffersWEBGL(",vt,"[",kt,".colorAttachments.length]);"),Ge("}else{",wt,".bindFramebuffer(",jc,",null);"),le&&Ge(At,".drawBuffersWEBGL(",Ve,");"),Ge("}",xt,".cur=",kt,";"),Gt||Ge("}")}function li($e,Ge,mt){var Gt=$e.shared,Ut=Gt.gl,wt=$e.current,xt=$e.next,At=Gt.current,Ke=Gt.next,vt=$e.cond(At,".dirty");Le.forEach(function(Ve){var kt=tt(Ve);if(!(kt in mt.state)){var zt,vr;if(kt in xt){zt=xt[kt],vr=wt[kt];var gr=ln(ge[kt].length,function(Lr){return vt.def(zt,"[",Lr,"]")});vt($e.cond(gr.map(function(Lr,yn){return Lr+"!=="+vr+"["+yn+"]"}).join("||")).then(Ut,".",Fe[kt],"(",gr,");",gr.map(function(Lr,yn){return vr+"["+yn+"]="+Lr}).join(";"),";"))}else{zt=vt.def(Ke,".",kt);var ur=$e.cond(zt,"!==",At,".",kt);vt(ur),kt in ze?ur($e.cond(zt).then(Ut,".enable(",ze[kt],");").else(Ut,".disable(",ze[kt],");"),At,".",kt,"=",zt,";"):ur(Ut,".",Fe[kt],"(",zt,");",At,".",kt,"=",zt,";")}}}),Object.keys(mt.state).length===0&&vt(At,".dirty=false;"),Ge(vt)}function ii($e,Ge,mt,Gt){var Ut=$e.shared,wt=$e.current,xt=Ut.current,At=Ut.gl;Yc(Object.keys(mt)).forEach(function(Ke){var vt=mt[Ke];if(!(Gt&&!Gt(vt))){var Ve=vt.append($e,Ge);if(ze[Ke]){var kt=ze[Ke];bs(vt)?Ve?Ge(At,".enable(",kt,");"):Ge(At,".disable(",kt,");"):Ge($e.cond(Ve).then(At,".enable(",kt,");").else(At,".disable(",kt,");")),Ge(xt,".",Ke,"=",Ve,";")}else if(ka(Ve)){var zt=wt[Ke];Ge(At,".",Fe[Ke],"(",Ve,");",Ve.map(function(vr,gr){return zt+"["+gr+"]="+vr}).join(";"),";")}else Ge(At,".",Fe[Ke],"(",Ve,");",xt,".",Ke,"=",Ve,";")}})}function Pa($e,Ge){ie&&($e.instancing=Ge.def($e.shared.extensions,".angle_instanced_arrays"))}function Hn($e,Ge,mt,Gt,Ut){var wt=$e.shared,xt=$e.stats,At=wt.current,Ke=wt.timer,vt=mt.profile;function Ve(){return typeof performance=="undefined"?"Date.now()":"performance.now()"}var kt,zt;function vr(un){kt=Ge.def(),un(kt,"=",Ve(),";"),typeof Ut=="string"?un(xt,".count+=",Ut,";"):un(xt,".count++;"),M&&(Gt?(zt=Ge.def(),un(zt,"=",Ke,".getNumPendingQueries();")):un(Ke,".beginQuery(",xt,");"))}function gr(un){un(xt,".cpuTime+=",Ve(),"-",kt,";"),M&&(Gt?un(Ke,".pushScopeStats(",zt,",",Ke,".getNumPendingQueries(),",xt,");"):un(Ke,".endQuery();"))}function ur(un){var Dn=Ge.def(At,".profile");Ge(At,".profile=",un,";"),Ge.exit(At,".profile=",Dn,";")}var Lr;if(vt){if(bs(vt)){vt.enable?(vr(Ge),gr(Ge.exit),ur("true")):ur("false");return}Lr=vt.append($e,Ge),ur(Lr)}else Lr=Ge.def(At,".profile");var yn=$e.block();vr(yn),Ge("if(",Lr,"){",yn,"}");var Zn=$e.block();gr(Zn),Ge.exit("if(",Lr,"){",Zn,"}")}function Bi($e,Ge,mt,Gt,Ut){var wt=$e.shared;function xt(Ke){switch(Ke){case Pu:case gf:case yf:return 2;case Us:case pf:case mf:return 3;case vf:case Ws:case ku:return 4;default:return 1}}function At(Ke,vt,Ve){var kt=wt.gl,zt=Ge.def(Ke,".location"),vr=Ge.def(wt.attributes,"[",zt,"]"),gr=Ve.state,ur=Ve.buffer,Lr=[Ve.x,Ve.y,Ve.z,Ve.w],yn=["buffer","normalized","offset","stride"];function Zn(){Ge("if(!",vr,".buffer){",kt,".enableVertexAttribArray(",zt,");}");var Dn=Ve.type,jn;if(Ve.size?jn=Ge.def(Ve.size,"||",vt):jn=vt,Ge("if(",vr,".type!==",Dn,"||",vr,".size!==",jn,"||",yn.map(function(di){return vr+"."+di+"!=="+Ve[di]}).join("||"),"){",kt,".bindBuffer(",Gs,",",ur,".buffer);",kt,".vertexAttribPointer(",[zt,jn,Dn,Ve.normalized,Ve.stride,Ve.offset],");",vr,".type=",Dn,";",vr,".size=",jn,";",yn.map(function(di){return vr+"."+di+"="+Ve[di]+";"}).join(""),"}"),ie){var Sa=Ve.divisor;Ge("if(",vr,".divisor!==",Sa,"){",$e.instancing,".vertexAttribDivisorANGLE(",[zt,Sa],");",vr,".divisor=",Sa,";}")}}function un(){Ge("if(",vr,".buffer){",kt,".disableVertexAttribArray(",zt,");",vr,".buffer=null;","}if(",Cu.map(function(Dn,jn){return vr+"."+Dn+"!=="+Lr[jn]}).join("||"),"){",kt,".vertexAttrib4f(",zt,",",Lr,");",Cu.map(function(Dn,jn){return vr+"."+Dn+"="+Lr[jn]+";"}).join(""),"}")}gr===so?Zn():gr===Ps?un():(Ge("if(",gr,"===",so,"){"),Zn(),Ge("}else{"),un(),Ge("}"))}Gt.forEach(function(Ke){var vt=Ke.name,Ve=mt.attributes[vt],kt;if(Ve){if(!Ut(Ve))return;kt=Ve.append($e,Ge)}else{if(!Ut(Ef))return;var zt=$e.scopeAttrib(vt);Ae.optional(function(){$e.assert(Ge,zt+".state","missing attribute "+vt)}),kt={},Object.keys(new Y).forEach(function(vr){kt[vr]=Ge.def(zt,".",vr)})}At($e.link(Ke),xt(Ke.info.type),kt)})}function Ln($e,Ge,mt,Gt,Ut){for(var wt=$e.shared,xt=wt.gl,At,Ke=0;Ke1?Ge(ln(Dn,function(qi){return Array.isArray(ur)?ur[qi]:ur+"["+qi+"]"})):(Ae(!Array.isArray(ur),"uniform value must not be an array"),Ge(ur));Ge(");")}}function On($e,Ge,mt,Gt){var Ut=$e.shared,wt=Ut.gl,xt=Ut.draw,At=Gt.draw;function Ke(){var jn=At.elements,Sa,di=Ge;return jn?((jn.contextDep&&Gt.contextDynamic||jn.propDep)&&(di=mt),Sa=jn.append($e,di)):Sa=di.def(xt,".",ps),Sa&&di("if("+Sa+")"+wt+".bindBuffer("+Lc+","+Sa+".buffer.buffer);"),Sa}function vt(){var jn=At.count,Sa,di=Ge;return jn?((jn.contextDep&&Gt.contextDynamic||jn.propDep)&&(di=mt),Sa=jn.append($e,di),Ae.optional(function(){jn.MISSING&&$e.assert(Ge,"false","missing vertex count"),jn.DYNAMIC&&$e.assert(di,Sa+">=0","missing vertex count")})):(Sa=di.def(xt,".",wo),Ae.optional(function(){$e.assert(di,Sa+">=0","missing vertex count")})),Sa}var Ve=Ke();function kt(jn){var Sa=At[jn];return Sa?Sa.contextDep&&Gt.contextDynamic||Sa.propDep?Sa.append($e,mt):Sa.append($e,Ge):Ge.def(xt,".",jn)}var zt=kt(ra),vr=kt(Fs),gr=vt();if(typeof gr=="number"){if(gr===0)return}else mt("if(",gr,"){"),mt.exit("}");var ur,Lr;ie&&(ur=kt(df),Lr=$e.instancing);var yn=Ve+".type",Zn=At.elements&&bs(At.elements);function un(){function jn(){mt(Lr,".drawElementsInstancedANGLE(",[zt,gr,yn,vr+"<<(("+yn+"-"+_c+")>>1)",ur],");")}function Sa(){mt(Lr,".drawArraysInstancedANGLE(",[zt,vr,gr,ur],");")}Ve?Zn?jn():(mt("if(",Ve,"){"),jn(),mt("}else{"),Sa(),mt("}")):Sa()}function Dn(){function jn(){mt(wt+".drawElements("+[zt,gr,yn,vr+"<<(("+yn+"-"+_c+")>>1)"]+");")}function Sa(){mt(wt+".drawArrays("+[zt,vr,gr]+");")}Ve?Zn?jn():(mt("if(",Ve,"){"),jn(),mt("}else{"),Sa(),mt("}")):Sa()}ie&&(typeof ur!="number"||ur>=0)?typeof ur=="string"?(mt("if(",ur,">0){"),un(),mt("}else if(",ur,"<0){"),Dn(),mt("}")):un():Dn()}function sa($e,Ge,mt,Gt,Ut){var wt=_r(),xt=wt.proc("body",Ut);return Ae.optional(function(){wt.commandStr=Ge.commandStr,wt.command=wt.link(Ge.commandStr)}),ie&&(wt.instancing=xt.def(wt.shared.extensions,".angle_instanced_arrays")),$e(wt,xt,mt,Gt),wt.compile().body}function ba($e,Ge,mt,Gt){Pa($e,Ge),mt.useVAO?mt.drawVAO?Ge($e.shared.vao,".setVAO(",mt.drawVAO.append($e,Ge),");"):Ge($e.shared.vao,".setVAO(",$e.shared.vao,".targetVAO);"):(Ge($e.shared.vao,".setVAO(null);"),Bi($e,Ge,mt,Gt.attributes,function(){return!0})),Ln($e,Ge,mt,Gt.uniforms,function(){return!0}),On($e,Ge,Ge,mt)}function yi($e,Ge){var mt=$e.proc("draw",1);Pa($e,mt),Za($e,mt,Ge.context),ri($e,mt,Ge.framebuffer),li($e,mt,Ge),ii($e,mt,Ge.state),Hn($e,mt,Ge,!1,!0);var Gt=Ge.shader.progVar.append($e,mt);if(mt($e.shared.gl,".useProgram(",Gt,".program);"),Ge.shader.program)ba($e,mt,Ge,Ge.shader.program);else{mt($e.shared.vao,".setVAO(null);");var Ut=$e.global.def("{}"),wt=mt.def(Gt,".id"),xt=mt.def(Ut,"[",wt,"]");mt($e.cond(xt).then(xt,".call(this,a0);").else(xt,"=",Ut,"[",wt,"]=",$e.link(function(At){return sa(ba,$e,Ge,At,1)}),"(",Gt,");",xt,".call(this,a0);"))}Object.keys(Ge.state).length>0&&mt($e.shared.current,".dirty=true;")}function Ho($e,Ge,mt,Gt){$e.batchId="a1",Pa($e,Ge);function Ut(){return!0}Bi($e,Ge,mt,Gt.attributes,Ut),Ln($e,Ge,mt,Gt.uniforms,Ut),On($e,Ge,Ge,mt)}function Uu($e,Ge,mt,Gt){Pa($e,Ge);var Ut=mt.contextDep,wt=Ge.def(),xt="a0",At="a1",Ke=Ge.def();$e.shared.props=Ke,$e.batchId=wt;var vt=$e.scope(),Ve=$e.scope();Ge(vt.entry,"for(",wt,"=0;",wt,"<",At,";++",wt,"){",Ke,"=",xt,"[",wt,"];",Ve,"}",vt.exit);function kt(yn){return yn.contextDep&&Ut||yn.propDep}function zt(yn){return!kt(yn)}if(mt.needsContext&&Za($e,Ve,mt.context),mt.needsFramebuffer&&ri($e,Ve,mt.framebuffer),ii($e,Ve,mt.state,kt),mt.profile&&kt(mt.profile)&&Hn($e,Ve,mt,!1,!0),Gt)mt.useVAO?mt.drawVAO?kt(mt.drawVAO)?Ve($e.shared.vao,".setVAO(",mt.drawVAO.append($e,Ve),");"):vt($e.shared.vao,".setVAO(",mt.drawVAO.append($e,vt),");"):vt($e.shared.vao,".setVAO(",$e.shared.vao,".targetVAO);"):(vt($e.shared.vao,".setVAO(null);"),Bi($e,vt,mt,Gt.attributes,zt),Bi($e,Ve,mt,Gt.attributes,kt)),Ln($e,vt,mt,Gt.uniforms,zt),Ln($e,Ve,mt,Gt.uniforms,kt),On($e,vt,Ve,mt);else{var vr=$e.global.def("{}"),gr=mt.shader.progVar.append($e,Ve),ur=Ve.def(gr,".id"),Lr=Ve.def(vr,"[",ur,"]");Ve($e.shared.gl,".useProgram(",gr,".program);","if(!",Lr,"){",Lr,"=",vr,"[",ur,"]=",$e.link(function(yn){return sa(Ho,$e,mt,yn,2)}),"(",gr,");}",Lr,".call(this,a0[",wt,"],",wt,");")}}function et($e,Ge){var mt=$e.proc("batch",2);$e.batchId="0",Pa($e,mt);var Gt=!1,Ut=!0;Object.keys(Ge.context).forEach(function(vr){Gt=Gt||Ge.context[vr].propDep}),Gt||(Za($e,mt,Ge.context),Ut=!1);var wt=Ge.framebuffer,xt=!1;wt?(wt.propDep?Gt=xt=!0:wt.contextDep&&Gt&&(xt=!0),xt||ri($e,mt,wt)):ri($e,mt,null),Ge.state.viewport&&Ge.state.viewport.propDep&&(Gt=!0);function At(vr){return vr.contextDep&&Gt||vr.propDep}li($e,mt,Ge),ii($e,mt,Ge.state,function(vr){return!At(vr)}),(!Ge.profile||!At(Ge.profile))&&Hn($e,mt,Ge,!1,"a1"),Ge.contextDep=Gt,Ge.needsContext=Ut,Ge.needsFramebuffer=xt;var Ke=Ge.shader.progVar;if(Ke.contextDep&&Gt||Ke.propDep)Uu($e,mt,Ge,null);else{var vt=Ke.append($e,mt);if(mt($e.shared.gl,".useProgram(",vt,".program);"),Ge.shader.program)Uu($e,mt,Ge,Ge.shader.program);else{mt($e.shared.vao,".setVAO(null);");var Ve=$e.global.def("{}"),kt=mt.def(vt,".id"),zt=mt.def(Ve,"[",kt,"]");mt($e.cond(zt).then(zt,".call(this,a0,a1);").else(zt,"=",Ve,"[",kt,"]=",$e.link(function(vr){return sa(Uu,$e,Ge,vr,2)}),"(",vt,");",zt,".call(this,a0,a1);"))}}Object.keys(Ge.state).length>0&&mt($e.shared.current,".dirty=true;")}function Jt($e,Ge){var mt=$e.proc("scope",3);$e.batchId="a2";var Gt=$e.shared,Ut=Gt.current;Za($e,mt,Ge.context),Ge.framebuffer&&Ge.framebuffer.append($e,mt),Yc(Object.keys(Ge.state)).forEach(function(xt){var At=Ge.state[xt],Ke=At.append($e,mt);ka(Ke)?Ke.forEach(function(vt,Ve){mt.set($e.next[xt],"["+Ve+"]",vt)}):mt.set(Gt.next,"."+xt,Ke)}),Hn($e,mt,Ge,!0,!0),[ps,Fs,wo,df,ra].forEach(function(xt){var At=Ge.draw[xt];!At||mt.set(Gt.draw,"."+xt,""+At.append($e,mt))}),Object.keys(Ge.uniforms).forEach(function(xt){var At=Ge.uniforms[xt].append($e,mt);Array.isArray(At)&&(At="["+At.join()+"]"),mt.set(Gt.uniforms,"["+We.id(xt)+"]",At)}),Object.keys(Ge.attributes).forEach(function(xt){var At=Ge.attributes[xt].append($e,mt),Ke=$e.scopeAttrib(xt);Object.keys(new Y).forEach(function(vt){mt.set(Ke,"."+vt,At[vt])})}),Ge.scopeVAO&&mt.set(Gt.vao,".targetVAO",Ge.scopeVAO.append($e,mt));function wt(xt){var At=Ge.shader[xt];At&&mt.set(Gt.shader,"."+xt,At.append($e,mt))}wt(gs),wt(ru),Object.keys(Ge.state).length>0&&(mt(Ut,".dirty=true;"),mt.exit(Ut,".dirty=true;")),mt("a1(",$e.shared.context,",a0,",$e.batchId,");")}function jt($e){if(!(typeof $e!="object"||ka($e))){for(var Ge=Object.keys($e),mt=0;mt=0;--On){var sa=Lt[On];sa&&sa(M,null,0)}it.flush(),Ar&&Ar.update()}function tn(){!dn&&Lt.length>0&&(dn=Er.next(sn))}function Bn(){dn&&(Er.cancel(sn),dn=null)}function Fn(On){On.preventDefault(),dr=!0,Bn(),_r.forEach(function(sa){sa()})}function za(On){it.getError(),dr=!1,Yt.restore(),Le.restore(),ie.restore(),ze.restore(),Fe.restore(),tt.restore(),le.restore(),Ar&&Ar.restore(),Mt.procs.refresh(),tn(),Yr.forEach(function(sa){sa()})}Nt&&(Nt.addEventListener(bf,Fn,!1),Nt.addEventListener(xf,za,!1));function Wn(){Lt.length=0,Bn(),Nt&&(Nt.removeEventListener(bf,Fn),Nt.removeEventListener(xf,za)),Le.clear(),tt.clear(),Fe.clear(),ze.clear(),me.clear(),ie.clear(),le.clear(),Ar&&Ar.clear(),Pr.forEach(function(On){On()})}function ti(On){Ae(!!On,"invalid args to regl({...})"),Ae.type(On,"object","invalid args to regl({...})");function sa(Ut){var wt=z({},Ut);delete wt.uniforms,delete wt.attributes,delete wt.context,delete wt.vao,"stencil"in wt&&wt.stencil.op&&(wt.stencil.opBack=wt.stencil.opFront=wt.stencil.op,delete wt.stencil.op);function xt(At){if(At in wt){var Ke=wt[At];delete wt[At],Object.keys(Ke).forEach(function(vt){wt[At+"."+vt]=Ke[vt]})}}return xt("blend"),xt("depth"),xt("cull"),xt("stencil"),xt("polygonOffset"),xt("scissor"),xt("sample"),"vao"in Ut&&(wt.vao=Ut.vao),wt}function ba(Ut,wt){var xt={},At={};return Object.keys(Ut).forEach(function(Ke){var vt=Ut[Ke];if(Wt.isDynamic(vt)){At[Ke]=Wt.unbox(vt,Ke);return}else if(wt&&Array.isArray(vt)){for(var Ve=0;Ve0)return aa.call(this,mt(Ut|0),Ut|0)}else if(Array.isArray(Ut)){if(Ut.length)return aa.call(this,Ut,Ut.length)}else return nn.call(this,Ut)}return z(Gt,{stats:Jt,destroy:function(){jt.destroy()}})}var La=tt.setFBO=ti({framebuffer:Wt.define.call(null,Zc,"framebuffer")});function oa(On,sa){var ba=0;Mt.procs.poll();var yi=sa.color;yi&&(it.clearColor(+yi[0]||0,+yi[1]||0,+yi[2]||0,+yi[3]||0),ba|=Sl),"depth"in sa&&(it.clearDepth(+sa.depth),ba|=_l),"stencil"in sa&&(it.clearStencil(sa.stencil|0),ba|=ac),Ae(!!ba,"called regl.clear with no buffer specified"),it.clear(ba)}function Za(On){if(Ae(typeof On=="object"&&On,"regl.clear() takes an object as input"),"framebuffer"in On)if(On.framebuffer&&On.framebuffer_reglType==="framebufferCube")for(var sa=0;sa<6;++sa)La(z({framebuffer:On.framebuffer.faces[sa]},On),oa);else La(On,oa);else oa(null,On)}function ri(On){Ae.type(On,"function","regl.frame() callback must be a function"),Lt.push(On);function sa(){var ba=Kc(Lt,On);Ae(ba>=0,"cannot cancel a frame twice");function yi(){var Ho=Kc(Lt,yi);Lt[Ho]=Lt[Lt.length-1],Lt.length-=1,Lt.length<=0&&Bn()}Lt[ba]=yi}return tn(),{cancel:sa}}function li(){var On=Tt.viewport,sa=Tt.scissor_box;On[0]=On[1]=sa[0]=sa[1]=0,M.viewportWidth=M.framebufferWidth=M.drawingBufferWidth=On[2]=sa[2]=it.drawingBufferWidth,M.viewportHeight=M.framebufferHeight=M.drawingBufferHeight=On[3]=sa[3]=it.drawingBufferHeight}function ii(){M.tick+=1,M.time=Hn(),li(),Mt.procs.poll()}function Pa(){ze.refresh(),li(),Mt.procs.refresh(),Ar&&Ar.update()}function Hn(){return(Dr()-Tr)/1e3}Pa();function Bi(On,sa){Ae.type(sa,"function","listener callback must be a function");var ba;switch(On){case"frame":return ri(sa);case"lost":ba=_r;break;case"restore":ba=Yr;break;case"destroy":ba=Pr;break;default:Ae.raise("invalid event, must be one of frame,lost,restore,destroy")}return ba.push(sa),{cancel:function(){for(var yi=0;yi=0},read:sr,destroy:Wn,_gl:it,_refresh:Pa,poll:function(){ii(),Ar&&Ar.update()},now:Hn,stats:Mr});return We.onDone(null,Ln),Ln}return wf})},86851:function(or,U,z){"use strict";var B=z(89594),j=Array.prototype.concat,R=Array.prototype.slice,A=or.exports=function(L){for(var y=[],x=0,v=L.length;x=0&&(z.splice instanceof Function||Object.getOwnPropertyDescriptor(z,z.length-1)&&z.constructor.name!=="String")}}}]); diff --git a/dist/activity/activityInfo/index.html b/dist/activity/activityInfo/index.html index 8e46604..18263c9 100644 --- a/dist/activity/activityInfo/index.html +++ b/dist/activity/activityInfo/index.html @@ -24,12 +24,12 @@ Ant Design Pro - + @@ -221,6 +221,6 @@
        - + diff --git a/dist/activity/activityRecord/index.html b/dist/activity/activityRecord/index.html index 8e46604..18263c9 100644 --- a/dist/activity/activityRecord/index.html +++ b/dist/activity/activityRecord/index.html @@ -24,12 +24,12 @@ Ant Design Pro - + @@ -221,6 +221,6 @@ - + diff --git a/dist/activity/activityStart/index.html b/dist/activity/activityStart/index.html index 8e46604..18263c9 100644 --- a/dist/activity/activityStart/index.html +++ b/dist/activity/activityStart/index.html @@ -24,12 +24,12 @@ Ant Design Pro - + @@ -221,6 +221,6 @@ - + diff --git a/dist/activity/index.html b/dist/activity/index.html index 8e46604..18263c9 100644 --- a/dist/activity/index.html +++ b/dist/activity/index.html @@ -24,12 +24,12 @@ Ant Design Pro - + @@ -221,6 +221,6 @@ - + diff --git a/dist/activity/rechargeactivity/index.html b/dist/activity/rechargeactivity/index.html index 8e46604..18263c9 100644 --- a/dist/activity/rechargeactivity/index.html +++ b/dist/activity/rechargeactivity/index.html @@ -24,12 +24,12 @@ Ant Design Pro - + @@ -221,6 +221,6 @@ - + diff --git a/dist/applet/index.html b/dist/applet/index.html index 8e46604..18263c9 100644 --- a/dist/applet/index.html +++ b/dist/applet/index.html @@ -24,12 +24,12 @@ Ant Design Pro - + @@ -221,6 +221,6 @@ - + diff --git a/dist/applet/material/index.html b/dist/applet/material/index.html index 8e46604..18263c9 100644 --- a/dist/applet/material/index.html +++ b/dist/applet/material/index.html @@ -24,12 +24,12 @@ Ant Design Pro - + @@ -221,6 +221,6 @@ - + diff --git a/dist/applet/pageManage/index.html b/dist/applet/pageManage/index.html index 8e46604..18263c9 100644 --- a/dist/applet/pageManage/index.html +++ b/dist/applet/pageManage/index.html @@ -24,12 +24,12 @@ Ant Design Pro - + @@ -221,6 +221,6 @@ - + diff --git a/dist/asset-manifest.json b/dist/asset-manifest.json index 5384b8a..ff5fa9a 100644 --- a/dist/asset-manifest.json +++ b/dist/asset-manifest.json @@ -1,21 +1,21 @@ { - "/umi.css": "/umi.ed4fa1d0.css", - "/umi.js": "/umi.a286743b.js", + "/umi.css": "/umi.c7eb3729.css", + "/umi.js": "/umi.19d6b0c1.js", "/t__plugin-layout__Layout.css": "/t__plugin-layout__Layout.e1129705.chunk.css", - "/t__plugin-layout__Layout.js": "/t__plugin-layout__Layout.5d0197aa.async.js", + "/t__plugin-layout__Layout.js": "/t__plugin-layout__Layout.6a3c99f6.async.js", "/p__user__login.css": "/p__user__login.86a3eff2.chunk.css", - "/p__user__login.js": "/p__user__login.742db7c5.async.js", + "/p__user__login.js": "/p__user__login.18377057.async.js", "/p__card__gateAdmin.css": "/p__card__gateAdmin.124832a5.chunk.css", - "/p__card__gateAdmin.js": "/p__card__gateAdmin.5e0d045d.async.js", + "/p__card__gateAdmin.js": "/p__card__gateAdmin.1cea148c.async.js", "/p__quickStart.css": "/p__quickStart.057b9e7c.chunk.css", - "/p__quickStart.js": "/p__quickStart.e382da4e.async.js", + "/p__quickStart.js": "/p__quickStart.c405abce.async.js", "/p__sys__company.js": "/p__sys__company.fe8172e2.async.js", "/p__sys__companyApply.css": "/p__sys__companyApply.80ddd79c.chunk.css", "/p__sys__companyApply.js": "/p__sys__companyApply.038a080b.async.js", "/p__sys__paytemplate.css": "/p__sys__paytemplate.80ddd79c.chunk.css", "/p__sys__paytemplate.js": "/p__sys__paytemplate.febede08.async.js", "/p__sys__org.css": "/p__sys__org.907fcb3a.chunk.css", - "/p__sys__org.js": "/p__sys__org.93ff6838.async.js", + "/p__sys__org.js": "/p__sys__org.aef7ec07.async.js", "/p__sys__log.css": "/p__sys__log.b245b872.chunk.css", "/p__sys__log.js": "/p__sys__log.7851143a.async.js", "/p__sys__user.css": "/p__sys__user.80ddd79c.chunk.css", @@ -30,25 +30,25 @@ "/p__sys__sysSettings.css": "/p__sys__sysSettings.a7e001bb.chunk.css", "/p__sys__sysSettings.js": "/p__sys__sysSettings.32067def.async.js", "/p__sys__storemanage.css": "/p__sys__storemanage.11fa480c.chunk.css", - "/p__sys__storemanage.js": "/p__sys__storemanage.046969cf.async.js", + "/p__sys__storemanage.js": "/p__sys__storemanage.2484d8d8.async.js", "/p__applet__pageManage.css": "/p__applet__pageManage.ab14847b.chunk.css", - "/p__applet__pageManage.js": "/p__applet__pageManage.b92e901e.async.js", + "/p__applet__pageManage.js": "/p__applet__pageManage.69355ea0.async.js", "/p__applet__material.css": "/p__applet__material.8f885168.chunk.css", - "/p__applet__material.js": "/p__applet__material.26df2b73.async.js", + "/p__applet__material.js": "/p__applet__material.cccae0c9.async.js", "/p__card__memberAccount.css": "/p__card__memberAccount.fde7eb30.chunk.css", - "/p__card__memberAccount.js": "/p__card__memberAccount.dfc17160.async.js", + "/p__card__memberAccount.js": "/p__card__memberAccount.b5fbec50.async.js", "/p__card__storedValueCard.css": "/p__card__storedValueCard.80ddd79c.chunk.css", - "/p__card__storedValueCard.js": "/p__card__storedValueCard.9cfd13a3.async.js", + "/p__card__storedValueCard.js": "/p__card__storedValueCard.93ac20da.async.js", "/p__card__gate.css": "/p__card__gate.db80797a.chunk.css", - "/p__card__gate.js": "/p__card__gate.e558c3c3.async.js", + "/p__card__gate.js": "/p__card__gate.dd9a60c7.async.js", "/p__card__machine.css": "/p__card__machine.277eff6a.chunk.css", - "/p__card__machine.js": "/p__card__machine.b7955b89.async.js", + "/p__card__machine.js": "/p__card__machine.ce748e74.async.js", "/p__card__checkgoods.css": "/p__card__checkgoods.80ddd79c.chunk.css", - "/p__card__checkgoods.js": "/p__card__checkgoods.2562b360.async.js", + "/p__card__checkgoods.js": "/p__card__checkgoods.b3349124.async.js", "/p__card__reservation.css": "/p__card__reservation.46405ca6.chunk.css", - "/p__card__reservation.js": "/p__card__reservation.302f5d46.async.js", + "/p__card__reservation.js": "/p__card__reservation.d29bc772.async.js", "/p__card__reservationReport.css": "/p__card__reservationReport.a1100fd8.chunk.css", - "/p__card__reservationReport.js": "/p__card__reservationReport.b0995e46.async.js", + "/p__card__reservationReport.js": "/p__card__reservationReport.25ab5628.async.js", "/p__card__enterpriseReservation.css": "/p__card__enterpriseReservation.80ddd79c.chunk.css", "/p__card__enterpriseReservation.js": "/p__card__enterpriseReservation.a1fcdfae.async.js", "/p__erp__basic__product.css": "/p__erp__basic__product.0306ba64.chunk.css", @@ -56,55 +56,55 @@ "/p__erp__basic__unit.js": "/p__erp__basic__unit.3a26c5d0.async.js", "/p__erp__basic__productType.js": "/p__erp__basic__productType.86e9548d.async.js", "/p__erp__bill__receivingNote.css": "/p__erp__bill__receivingNote.80ddd79c.chunk.css", - "/p__erp__bill__receivingNote.js": "/p__erp__bill__receivingNote.5f83b47a.async.js", + "/p__erp__bill__receivingNote.js": "/p__erp__bill__receivingNote.488abe37.async.js", "/p__erp__bill__purchaseOrder.css": "/p__erp__bill__purchaseOrder.80ddd79c.chunk.css", "/p__erp__bill__purchaseOrder.js": "/p__erp__bill__purchaseOrder.f52c430b.async.js", "/p__erp__stock.css": "/p__erp__stock.80ddd79c.chunk.css", - "/p__erp__stock.js": "/p__erp__stock.e7ae1c4a.async.js", + "/p__erp__stock.js": "/p__erp__stock.a4420aff.async.js", "/p__bom__manage.css": "/p__bom__manage.af57affb.chunk.css", - "/p__bom__manage.js": "/p__bom__manage.e7349553.async.js", + "/p__bom__manage.js": "/p__bom__manage.069e90fa.async.js", "/p__bom__bomtype.css": "/p__bom__bomtype.80ddd79c.chunk.css", - "/p__bom__bomtype.js": "/p__bom__bomtype.51cd5d02.async.js", + "/p__bom__bomtype.js": "/p__bom__bomtype.49cebc6c.async.js", "/p__bom__cookingentry.css": "/p__bom__cookingentry.80ddd79c.chunk.css", "/p__bom__cookingentry.js": "/p__bom__cookingentry.4b0a6b2f.async.js", "/p__goods__goods-manage.js": "/p__goods__goods-manage.8c4ea063.async.js", - "/p__goods__newgoods.js": "/p__goods__newgoods.f183aca2.async.js", + "/p__goods__newgoods.js": "/p__goods__newgoods.84c3e622.async.js", "/p__goods__goods-taste.css": "/p__goods__goods-taste.b20b12da.chunk.css", - "/p__goods__goods-taste.js": "/p__goods__goods-taste.472ffe88.async.js", - "/p__goods__goods-type-manage.js": "/p__goods__goods-type-manage.a65e29cf.async.js", - "/p__goods__goodsParentTypemanage.js": "/p__goods__goodsParentTypemanage.4aa292c9.async.js", + "/p__goods__goods-taste.js": "/p__goods__goods-taste.b1c1e302.async.js", + "/p__goods__goods-type-manage.js": "/p__goods__goods-type-manage.b16288ec.async.js", + "/p__goods__goodsParentTypemanage.js": "/p__goods__goodsParentTypemanage.945a22b8.async.js", "/p__goods__unit.js": "/p__goods__unit.59f70a8c.async.js", - "/p__goods__goodsInfo.js": "/p__goods__goodsInfo.fc6f7810.async.js", - "/p__goods__goodsPractice.js": "/p__goods__goodsPractice.bad5ced0.async.js", + "/p__goods__goodsInfo.js": "/p__goods__goodsInfo.f217b907.async.js", + "/p__goods__goodsPractice.js": "/p__goods__goodsPractice.18c39f95.async.js", "/p__goods__goodsPracticeType.css": "/p__goods__goodsPracticeType.80ddd79c.chunk.css", - "/p__goods__goodsPracticeType.js": "/p__goods__goodsPracticeType.85dfb1c5.async.js", + "/p__goods__goodsPracticeType.js": "/p__goods__goodsPracticeType.22be953e.async.js", "/p__goods__goodsPracticeInfo.css": "/p__goods__goodsPracticeInfo.80ddd79c.chunk.css", - "/p__goods__goodsPracticeInfo.js": "/p__goods__goodsPracticeInfo.ff340517.async.js", + "/p__goods__goodsPracticeInfo.js": "/p__goods__goodsPracticeInfo.92021054.async.js", "/p__goods__goodstechnology.css": "/p__goods__goodstechnology.80ddd79c.chunk.css", - "/p__goods__goodstechnology.js": "/p__goods__goodstechnology.25b9830e.async.js", + "/p__goods__goodstechnology.js": "/p__goods__goodstechnology.cedbcd2a.async.js", "/p__store__storeType.css": "/p__store__storeType.80ddd79c.chunk.css", - "/p__store__storeType.js": "/p__store__storeType.60c12a0e.async.js", + "/p__store__storeType.js": "/p__store__storeType.4725c004.async.js", "/p__store__storeStaff.css": "/p__store__storeStaff.80ddd79c.chunk.css", - "/p__store__storeStaff.js": "/p__store__storeStaff.a161860a.async.js", + "/p__store__storeStaff.js": "/p__store__storeStaff.418b42e0.async.js", "/p__store__printer__Printer.css": "/p__store__printer__Printer.80ddd79c.chunk.css", "/p__store__printer__Printer.js": "/p__store__printer__Printer.0a3c4e39.async.js", "/p__store__printer__printerTemplate.css": "/p__store__printer__printerTemplate.3ce60723.chunk.css", - "/p__store__printer__printerTemplate.js": "/p__store__printer__printerTemplate.85273370.async.js", + "/p__store__printer__printerTemplate.js": "/p__store__printer__printerTemplate.e625f119.async.js", "/p__store__storeDesktopNumber.js": "/p__store__storeDesktopNumber.47d7c57b.async.js", "/p__store__storeLevel.css": "/p__store__storeLevel.80ddd79c.chunk.css", - "/p__store__storeLevel.js": "/p__store__storeLevel.e47d1ec2.async.js", + "/p__store__storeLevel.js": "/p__store__storeLevel.4f76ebc9.async.js", "/p__store__storeInfo.css": "/p__store__storeInfo.80ddd79c.chunk.css", - "/p__store__storeInfo.js": "/p__store__storeInfo.807b8347.async.js", + "/p__store__storeInfo.js": "/p__store__storeInfo.e71eddc6.async.js", "/p__store__storeAddGoodsInfo.css": "/p__store__storeAddGoodsInfo.80ddd79c.chunk.css", "/p__store__storeAddGoodsInfo.js": "/p__store__storeAddGoodsInfo.7695fd4f.async.js", "/p__store__storeGoodsInfo.css": "/p__store__storeGoodsInfo.b245b872.chunk.css", - "/p__store__storeGoodsInfo.js": "/p__store__storeGoodsInfo.240cfce6.async.js", + "/p__store__storeGoodsInfo.js": "/p__store__storeGoodsInfo.124a2f9a.async.js", "/p__store__storeAdvertisement.css": "/p__store__storeAdvertisement.63cc2960.chunk.css", "/p__store__storeAdvertisement.js": "/p__store__storeAdvertisement.b07b0e9c.async.js", "/p__device__deviceType.css": "/p__device__deviceType.80ddd79c.chunk.css", "/p__device__deviceType.js": "/p__device__deviceType.efac2a47.async.js", "/p__device__deviceInfo.css": "/p__device__deviceInfo.80ddd79c.chunk.css", - "/p__device__deviceInfo.js": "/p__device__deviceInfo.ea5e9087.async.js", + "/p__device__deviceInfo.js": "/p__device__deviceInfo.ba02bdba.async.js", "/p__device__deviceStirFryTime.js": "/p__device__deviceStirFryTime.8419737b.async.js", "/p__device__deviceBom.js": "/p__device__deviceBom.c2c93196.async.js", "/p__device__deviceStock.css": "/p__device__deviceStock.80ddd79c.chunk.css", @@ -112,14 +112,14 @@ "/p__device__deviceRecipeStock.css": "/p__device__deviceRecipeStock.80ddd79c.chunk.css", "/p__device__devicemorkmwpush.js": "/p__device__devicemorkmwpush.9b7ff245.async.js", "/p__integral__integralConfigure.css": "/p__integral__integralConfigure.80ddd79c.chunk.css", - "/p__integral__integralConfigure.js": "/p__integral__integralConfigure.ff7adb78.async.js", + "/p__integral__integralConfigure.js": "/p__integral__integralConfigure.39c4b349.async.js", "/p__integral__integralDistribute.js": "/p__integral__integralDistribute.14f54272.async.js", "/p__foodMenu__foodMenuInfo.css": "/p__foodMenu__foodMenuInfo.80ddd79c.chunk.css", "/p__foodMenu__foodMenuInfo.js": "/p__foodMenu__foodMenuInfo.dac902c0.async.js", "/p__foodMenu__storeFoodMenu.css": "/p__foodMenu__storeFoodMenu.80ddd79c.chunk.css", - "/p__foodMenu__storeFoodMenu.js": "/p__foodMenu__storeFoodMenu.3baedcd8.async.js", + "/p__foodMenu__storeFoodMenu.js": "/p__foodMenu__storeFoodMenu.7e1aebae.async.js", "/p__member__memberInfo.css": "/p__member__memberInfo.80ddd79c.chunk.css", - "/p__member__memberInfo.js": "/p__member__memberInfo.453940cc.async.js", + "/p__member__memberInfo.js": "/p__member__memberInfo.0c37ae63.async.js", "/p__member__membertag.js": "/p__member__membertag.4b39848a.async.js", "/p__member__memberAnalysis.css": "/p__member__memberAnalysis.cc76a03c.chunk.css", "/p__member__memberAnalysis.js": "/p__member__memberAnalysis.7f1765d7.async.js", @@ -132,42 +132,42 @@ "/p__activity__activityStart.js": "/p__activity__activityStart.03142722.async.js", "/p__crm__coupon__couponInfo.css": "/p__crm__coupon__couponInfo.80ddd79c.chunk.css", "/p__crm__coupon__couponInfo.js": "/p__crm__coupon__couponInfo.5eb627bf.async.js", - "/p__crm__coupon__coupon-Batch.js": "/p__crm__coupon__coupon-Batch.47f0d255.async.js", + "/p__crm__coupon__coupon-Batch.js": "/p__crm__coupon__coupon-Batch.b8a7f94e.async.js", "/p__crm__coupon__customerCoupon.css": "/p__crm__coupon__customerCoupon.80ddd79c.chunk.css", "/p__crm__coupon__customerCoupon.js": "/p__crm__coupon__customerCoupon.8194594d.async.js", "/p__crm__coupon__paperCoupon.css": "/p__crm__coupon__paperCoupon.80ddd79c.chunk.css", "/p__crm__coupon__paperCoupon.js": "/p__crm__coupon__paperCoupon.738d2533.async.js", - "/p__crm__coupon__goodsCoupon.js": "/p__crm__coupon__goodsCoupon.d1a90272.async.js", + "/p__crm__coupon__goodsCoupon.js": "/p__crm__coupon__goodsCoupon.52e05d13.async.js", "/p__crm__coupon__paperCouponReport.css": "/p__crm__coupon__paperCouponReport.80ddd79c.chunk.css", "/p__crm__coupon__paperCouponReport.js": "/p__crm__coupon__paperCouponReport.c147a3a2.async.js", "/p__crm__coupon__goodsCouponReport.css": "/p__crm__coupon__goodsCouponReport.80ddd79c.chunk.css", "/p__crm__coupon__goodsCouponReport.js": "/p__crm__coupon__goodsCouponReport.0d2a615b.async.js", - "/p__split__account.js": "/p__split__account.7df24ef1.async.js", + "/p__split__account.js": "/p__split__account.54887287.async.js", "/p__split__FranchiseePlan.js": "/p__split__FranchiseePlan.b4984030.async.js", - "/p__split__plan.js": "/p__split__plan.9bd63172.async.js", + "/p__split__plan.js": "/p__split__plan.6a2d8f94.async.js", "/p__split__splitOrders.css": "/p__split__splitOrders.80ddd79c.chunk.css", "/p__split__splitOrders.js": "/p__split__splitOrders.3c5e62ee.async.js", "/p__refundment__orderAfterSales.css": "/p__refundment__orderAfterSales.80ddd79c.chunk.css", "/p__refundment__orderAfterSales.js": "/p__refundment__orderAfterSales.f21980e3.async.js", "/p__order__order-summary-manage.css": "/p__order__order-summary-manage.80ddd79c.chunk.css", - "/p__order__order-summary-manage.js": "/p__order__order-summary-manage.181ee0f4.async.js", - "/p__order__order-flow-manage.js": "/p__order__order-flow-manage.44faa7f5.async.js", - "/p__order__order-nopay-detail.js": "/p__order__order-nopay-detail.338fbc17.async.js", + "/p__order__order-summary-manage.js": "/p__order__order-summary-manage.2e400c45.async.js", + "/p__order__order-flow-manage.js": "/p__order__order-flow-manage.9b534953.async.js", + "/p__order__order-nopay-detail.js": "/p__order__order-nopay-detail.ae52fbfc.async.js", "/p__order__orderDetail.css": "/p__order__orderDetail.80ddd79c.chunk.css", "/p__order__orderDetail.js": "/p__order__orderDetail.baaedf6a.async.js", "/p__order__refundOrder.js": "/p__order__refundOrder.ed5b6c83.async.js", "/p__order__salesReport.css": "/p__order__salesReport.d09dbc64.chunk.css", - "/p__order__salesReport.js": "/p__order__salesReport.53d415d3.async.js", + "/p__order__salesReport.js": "/p__order__salesReport.201a26cc.async.js", "/p__order__ordersalescountbyday.css": "/p__order__ordersalescountbyday.80ddd79c.chunk.css", "/p__order__ordersalescountbyday.js": "/p__order__ordersalescountbyday.e4f8a6a7.async.js", "/p__order__DailyReport.css": "/p__order__DailyReport.fd36690c.chunk.css", - "/p__order__DailyReport.js": "/p__order__DailyReport.3051486a.async.js", + "/p__order__DailyReport.js": "/p__order__DailyReport.6172e159.async.js", "/p__order__exOrder.css": "/p__order__exOrder.80ddd79c.chunk.css", "/p__order__exOrder.js": "/p__order__exOrder.4a1907cd.async.js", "/p__order__order-market-report.css": "/p__order__order-market-report.62bb373c.chunk.css", - "/p__order__order-market-report.js": "/p__order__order-market-report.2f35f064.async.js", + "/p__order__order-market-report.js": "/p__order__order-market-report.7ce1f6c9.async.js", "/p__order__order-report.css": "/p__order__order-report.f8901448.chunk.css", - "/p__order__order-report.js": "/p__order__order-report.dbb42468.async.js", + "/p__order__order-report.js": "/p__order__order-report.708b5dd7.async.js", "/p__order__order-report-detail.css": "/p__order__order-report-detail.8f08249b.chunk.css", "/p__order__order-report-detail.js": "/p__order__order-report-detail.3b03f124.async.js", "/p__order__order-revenue-statement.css": "/p__order__order-revenue-statement.85dfd643.chunk.css", @@ -177,85 +177,85 @@ "/p__order__order-member-statement.css": "/p__order__order-member-statement.2238a84a.chunk.css", "/p__order__order-member-statement.js": "/p__order__order-member-statement.172548ce.async.js", "/p__order__cost-of-sales.css": "/p__order__cost-of-sales.a555d269.chunk.css", - "/p__order__cost-of-sales.js": "/p__order__cost-of-sales.de68d12b.async.js", + "/p__order__cost-of-sales.js": "/p__order__cost-of-sales.e75bd719.async.js", "/p__order__sales-gross-profit.css": "/p__order__sales-gross-profit.31cffa42.chunk.css", - "/p__order__sales-gross-profit.js": "/p__order__sales-gross-profit.296849ec.async.js", + "/p__order__sales-gross-profit.js": "/p__order__sales-gross-profit.5eb70b0d.async.js", "/p__order__gross-profit-store-sales.css": "/p__order__gross-profit-store-sales.fe0363be.chunk.css", - "/p__order__gross-profit-store-sales.js": "/p__order__gross-profit-store-sales.c6196cd7.async.js", + "/p__order__gross-profit-store-sales.js": "/p__order__gross-profit-store-sales.45c43365.async.js", "/p__stockManager__stockItem.js": "/p__stockManager__stockItem.217721f3.async.js", "/p__stockManager__stockInventory.css": "/p__stockManager__stockInventory.80ddd79c.chunk.css", "/p__stockManager__stockInventory.js": "/p__stockManager__stockInventory.0dbc23fb.async.js", "/p__stockManager__stockReports.css": "/p__stockManager__stockReports.80ddd79c.chunk.css", "/p__stockManager__stockReports.js": "/p__stockManager__stockReports.54bddf71.async.js", "/p__financereport__finance.css": "/p__financereport__finance.ea072017.chunk.css", - "/p__financereport__finance.js": "/p__financereport__finance.9e245f57.async.js", + "/p__financereport__finance.js": "/p__financereport__finance.588489c0.async.js", "/p__Welcome.css": "/p__Welcome.a2d4086e.chunk.css", - "/p__Welcome.js": "/p__Welcome.aa5c9713.async.js", + "/p__Welcome.js": "/p__Welcome.bb9f7d28.async.js", "/p__test__update.css": "/p__test__update.5b491966.chunk.css", "/p__test__update.js": "/p__test__update.4360eb9b.async.js", "/p__test.css": "/p__test.2fe21f78.chunk.css", - "/p__test.js": "/p__test.d3c03b9b.async.js", + "/p__test.js": "/p__test.1b7ebf62.async.js", "/p__404.css": "/p__404.b74445fb.chunk.css", "/p__404.js": "/p__404.7bdbd081.async.js", - "/2664.a0296ac4.chunk.css": "/2664.a0296ac4.chunk.css", - "/2664.f9ceb3c1.async.js": "/2664.f9ceb3c1.async.js", + "/6342.a0296ac4.chunk.css": "/6342.a0296ac4.chunk.css", + "/6342.a4678b64.async.js": "/6342.a4678b64.async.js", "/5429.54d3a3f3.chunk.css": "/5429.54d3a3f3.chunk.css", - "/5429.0c280e31.async.js": "/5429.0c280e31.async.js", - "/2339.bdbfbaf3.async.js": "/2339.bdbfbaf3.async.js", - "/6487.89416762.chunk.css": "/6487.89416762.chunk.css", - "/8009.d8e56eb7.async.js": "/8009.d8e56eb7.async.js", - "/8928.26563c15.async.js": "/8928.26563c15.async.js", - "/4107.373c2fd8.async.js": "/4107.373c2fd8.async.js", - "/2323.f0e18d96.async.js": "/2323.f0e18d96.async.js", - "/4332.e34c6631.async.js": "/4332.e34c6631.async.js", + "/5429.fe2f82c1.async.js": "/5429.fe2f82c1.async.js", + "/2339.ed2cbc1e.async.js": "/2339.ed2cbc1e.async.js", + "/2107.89416762.chunk.css": "/2107.89416762.chunk.css", + "/8009.ee093a69.async.js": "/8009.ee093a69.async.js", + "/6048.29142da8.async.js": "/6048.29142da8.async.js", + "/4107.824739af.async.js": "/4107.824739af.async.js", + "/2323.227e9752.async.js": "/2323.227e9752.async.js", + "/4332.f72c890c.async.js": "/4332.f72c890c.async.js", "/7866.5de37fd0.async.js": "/7866.5de37fd0.async.js", - "/7335.1df1d163.chunk.css": "/7335.1df1d163.chunk.css", - "/7335.e519791a.async.js": "/7335.e519791a.async.js", - "/9597.3aaf12cb.async.js": "/9597.3aaf12cb.async.js", - "/6358.93252bf8.async.js": "/6358.93252bf8.async.js", - "/6587.f2bc03f5.chunk.css": "/6587.f2bc03f5.chunk.css", - "/6587.92ad04ea.async.js": "/6587.92ad04ea.async.js", + "/2548.1df1d163.chunk.css": "/2548.1df1d163.chunk.css", + "/2548.8d7de023.async.js": "/2548.8d7de023.async.js", + "/9597.008ab1f9.async.js": "/9597.008ab1f9.async.js", + "/6358.968394e0.async.js": "/6358.968394e0.async.js", + "/438.f2bc03f5.chunk.css": "/438.f2bc03f5.chunk.css", + "/438.81aa4fa1.async.js": "/438.81aa4fa1.async.js", "/4480.e92c4184.async.js": "/4480.e92c4184.async.js", "/8151.e344b23c.async.js": "/8151.e344b23c.async.js", - "/3390.a23d1d23.chunk.css": "/3390.a23d1d23.chunk.css", - "/3390.9366325d.async.js": "/3390.9366325d.async.js", - "/7751.8d3970bf.async.js": "/7751.8d3970bf.async.js", - "/7921.0f9d6341.async.js": "/7921.0f9d6341.async.js", + "/5758.a23d1d23.chunk.css": "/5758.a23d1d23.chunk.css", + "/5758.b93a35fe.async.js": "/5758.b93a35fe.async.js", + "/7751.9861f868.async.js": "/7751.9861f868.async.js", + "/7921.3352a50f.async.js": "/7921.3352a50f.async.js", "/9567.307506ed.async.js": "/9567.307506ed.async.js", - "/7068.fefb1cfc.chunk.css": "/7068.fefb1cfc.chunk.css", - "/4374.84c7764e.chunk.css": "/4374.84c7764e.chunk.css", - "/4374.c59ab6d9.async.js": "/4374.c59ab6d9.async.js", - "/9396.82d7aca4.async.js": "/9396.82d7aca4.async.js", - "/3315.09f1def5.chunk.css": "/3315.09f1def5.chunk.css", - "/3315.1cf70445.async.js": "/3315.1cf70445.async.js", + "/7013.fefb1cfc.chunk.css": "/7013.fefb1cfc.chunk.css", + "/4884.84c7764e.chunk.css": "/4884.84c7764e.chunk.css", + "/4884.07feb423.async.js": "/4884.07feb423.async.js", + "/9396.a3667fc5.async.js": "/9396.a3667fc5.async.js", + "/8676.09f1def5.chunk.css": "/8676.09f1def5.chunk.css", + "/8676.5ef744b4.async.js": "/8676.5ef744b4.async.js", "/3667.a51bb1c9.async.js": "/3667.a51bb1c9.async.js", - "/1791.3d891c89.async.js": "/1791.3d891c89.async.js", + "/1791.de3f426f.async.js": "/1791.de3f426f.async.js", "/9669.75110ec8.async.js": "/9669.75110ec8.async.js", "/9361.2681a014.async.js": "/9361.2681a014.async.js", "/2255.a25b6bb8.async.js": "/2255.a25b6bb8.async.js", "/8764.93d0bdf6.async.js": "/8764.93d0bdf6.async.js", - "/7118.e3693903.chunk.css": "/7118.e3693903.chunk.css", - "/7118.2a4ee98d.async.js": "/7118.2a4ee98d.async.js", - "/8321.6607b2ea.async.js": "/8321.6607b2ea.async.js", + "/74.e3693903.chunk.css": "/74.e3693903.chunk.css", + "/74.8bf69b52.async.js": "/74.8bf69b52.async.js", + "/8321.985f5731.async.js": "/8321.985f5731.async.js", "/6486.837492aa.async.js": "/6486.837492aa.async.js", "/983.d8608375.async.js": "/983.d8608375.async.js", - "/7679.f79a9ae6.async.js": "/7679.f79a9ae6.async.js", + "/7679.55f904c1.async.js": "/7679.55f904c1.async.js", "/9199.d840247c.async.js": "/9199.d840247c.async.js", "/8691.53033a17.async.js": "/8691.53033a17.async.js", - "/9464.11fa480c.chunk.css": "/9464.11fa480c.chunk.css", - "/9645.697e668e.async.js": "/9645.697e668e.async.js", + "/1279.11fa480c.chunk.css": "/1279.11fa480c.chunk.css", + "/2342.f93c94c8.async.js": "/2342.f93c94c8.async.js", "/9357.609d4c87.async.js": "/9357.609d4c87.async.js", - "/3888.c8d267bf.chunk.css": "/3888.c8d267bf.chunk.css", - "/242.77baa42a.chunk.css": "/242.77baa42a.chunk.css", - "/5329.502268b7.chunk.css": "/5329.502268b7.chunk.css", - "/1981.11fa480c.chunk.css": "/1981.11fa480c.chunk.css", - "/2869.11fa480c.chunk.css": "/2869.11fa480c.chunk.css", - "/7013.11fa480c.chunk.css": "/7013.11fa480c.chunk.css", - "/9719.11fa480c.chunk.css": "/9719.11fa480c.chunk.css", - "/2383.11fa480c.chunk.css": "/2383.11fa480c.chunk.css", - "/4670.1902a3a9.chunk.css": "/4670.1902a3a9.chunk.css", - "/3453.fd105af1.chunk.css": "/3453.fd105af1.chunk.css", - "/5754.629f22ea.async.js": "/5754.629f22ea.async.js", + "/5878.c8d267bf.chunk.css": "/5878.c8d267bf.chunk.css", + "/8922.77baa42a.chunk.css": "/8922.77baa42a.chunk.css", + "/2221.502268b7.chunk.css": "/2221.502268b7.chunk.css", + "/7800.11fa480c.chunk.css": "/7800.11fa480c.chunk.css", + "/6398.11fa480c.chunk.css": "/6398.11fa480c.chunk.css", + "/6794.11fa480c.chunk.css": "/6794.11fa480c.chunk.css", + "/944.11fa480c.chunk.css": "/944.11fa480c.chunk.css", + "/8208.11fa480c.chunk.css": "/8208.11fa480c.chunk.css", + "/7128.1902a3a9.chunk.css": "/7128.1902a3a9.chunk.css", + "/3100.fd105af1.chunk.css": "/3100.fd105af1.chunk.css", + "/5754.f1111397.async.js": "/5754.f1111397.async.js", "/8267.48813cc4.async.js": "/8267.48813cc4.async.js", "/4658.1c951f72.async.js": "/4658.1c951f72.async.js", "/public/logo.png": "/logo.png", diff --git a/dist/bom/bomtype/index.html b/dist/bom/bomtype/index.html index 8e46604..18263c9 100644 --- a/dist/bom/bomtype/index.html +++ b/dist/bom/bomtype/index.html @@ -24,12 +24,12 @@ Ant Design Pro - + @@ -221,6 +221,6 @@ - + diff --git a/dist/bom/cookingentry/index.html b/dist/bom/cookingentry/index.html index 8e46604..18263c9 100644 --- a/dist/bom/cookingentry/index.html +++ b/dist/bom/cookingentry/index.html @@ -24,12 +24,12 @@ Ant Design Pro - + @@ -221,6 +221,6 @@ - + diff --git a/dist/bom/index.html b/dist/bom/index.html index 8e46604..18263c9 100644 --- a/dist/bom/index.html +++ b/dist/bom/index.html @@ -24,12 +24,12 @@ Ant Design Pro - + @@ -221,6 +221,6 @@ - + diff --git a/dist/bom/manage/index.html b/dist/bom/manage/index.html index 8e46604..18263c9 100644 --- a/dist/bom/manage/index.html +++ b/dist/bom/manage/index.html @@ -24,12 +24,12 @@ Ant Design Pro - + @@ -221,6 +221,6 @@ - + diff --git a/dist/card/checkgoods/index.html b/dist/card/checkgoods/index.html index 8e46604..18263c9 100644 --- a/dist/card/checkgoods/index.html +++ b/dist/card/checkgoods/index.html @@ -24,12 +24,12 @@ Ant Design Pro - + @@ -221,6 +221,6 @@ - + diff --git a/dist/card/enterpriseReservation/index.html b/dist/card/enterpriseReservation/index.html index 8e46604..18263c9 100644 --- a/dist/card/enterpriseReservation/index.html +++ b/dist/card/enterpriseReservation/index.html @@ -24,12 +24,12 @@ Ant Design Pro - + @@ -221,6 +221,6 @@ - + diff --git a/dist/card/gate/index.html b/dist/card/gate/index.html index 8e46604..18263c9 100644 --- a/dist/card/gate/index.html +++ b/dist/card/gate/index.html @@ -24,12 +24,12 @@ Ant Design Pro - + @@ -221,6 +221,6 @@ - + diff --git a/dist/card/index.html b/dist/card/index.html index 8e46604..18263c9 100644 --- a/dist/card/index.html +++ b/dist/card/index.html @@ -24,12 +24,12 @@ Ant Design Pro - + @@ -221,6 +221,6 @@ - + diff --git a/dist/card/machine/index.html b/dist/card/machine/index.html index 8e46604..18263c9 100644 --- a/dist/card/machine/index.html +++ b/dist/card/machine/index.html @@ -24,12 +24,12 @@ Ant Design Pro - + @@ -221,6 +221,6 @@ - + diff --git a/dist/card/memberAccount/index.html b/dist/card/memberAccount/index.html index 8e46604..18263c9 100644 --- a/dist/card/memberAccount/index.html +++ b/dist/card/memberAccount/index.html @@ -24,12 +24,12 @@ Ant Design Pro - + @@ -221,6 +221,6 @@ - + diff --git a/dist/card/reservation/index.html b/dist/card/reservation/index.html index 8e46604..18263c9 100644 --- a/dist/card/reservation/index.html +++ b/dist/card/reservation/index.html @@ -24,12 +24,12 @@ Ant Design Pro - + @@ -221,6 +221,6 @@ - + diff --git a/dist/card/reservationReport/index.html b/dist/card/reservationReport/index.html index 8e46604..18263c9 100644 --- a/dist/card/reservationReport/index.html +++ b/dist/card/reservationReport/index.html @@ -24,12 +24,12 @@ Ant Design Pro - + @@ -221,6 +221,6 @@ - + diff --git a/dist/card/storedValueCard/index.html b/dist/card/storedValueCard/index.html index 8e46604..18263c9 100644 --- a/dist/card/storedValueCard/index.html +++ b/dist/card/storedValueCard/index.html @@ -24,12 +24,12 @@ Ant Design Pro - + @@ -221,6 +221,6 @@ - + diff --git a/dist/crm/coupon/coupon-Batch/index.html b/dist/crm/coupon/coupon-Batch/index.html index 8e46604..18263c9 100644 --- a/dist/crm/coupon/coupon-Batch/index.html +++ b/dist/crm/coupon/coupon-Batch/index.html @@ -24,12 +24,12 @@ Ant Design Pro - + @@ -221,6 +221,6 @@ - + diff --git a/dist/crm/coupon/couponInfo/index.html b/dist/crm/coupon/couponInfo/index.html index 8e46604..18263c9 100644 --- a/dist/crm/coupon/couponInfo/index.html +++ b/dist/crm/coupon/couponInfo/index.html @@ -24,12 +24,12 @@ Ant Design Pro - + @@ -221,6 +221,6 @@ - + diff --git a/dist/crm/coupon/customerCoupon/index.html b/dist/crm/coupon/customerCoupon/index.html index 8e46604..18263c9 100644 --- a/dist/crm/coupon/customerCoupon/index.html +++ b/dist/crm/coupon/customerCoupon/index.html @@ -24,12 +24,12 @@ Ant Design Pro - + @@ -221,6 +221,6 @@ - + diff --git a/dist/crm/coupon/goodsCoupon/index.html b/dist/crm/coupon/goodsCoupon/index.html index 8e46604..18263c9 100644 --- a/dist/crm/coupon/goodsCoupon/index.html +++ b/dist/crm/coupon/goodsCoupon/index.html @@ -24,12 +24,12 @@ Ant Design Pro - + @@ -221,6 +221,6 @@ - + diff --git a/dist/crm/coupon/goodsCouponReport/index.html b/dist/crm/coupon/goodsCouponReport/index.html index 8e46604..18263c9 100644 --- a/dist/crm/coupon/goodsCouponReport/index.html +++ b/dist/crm/coupon/goodsCouponReport/index.html @@ -24,12 +24,12 @@ Ant Design Pro - + @@ -221,6 +221,6 @@ - + diff --git a/dist/crm/coupon/paperCoupon/index.html b/dist/crm/coupon/paperCoupon/index.html index 8e46604..18263c9 100644 --- a/dist/crm/coupon/paperCoupon/index.html +++ b/dist/crm/coupon/paperCoupon/index.html @@ -24,12 +24,12 @@ Ant Design Pro - + @@ -221,6 +221,6 @@ - + diff --git a/dist/crm/coupon/paperCouponReport/index.html b/dist/crm/coupon/paperCouponReport/index.html index 8e46604..18263c9 100644 --- a/dist/crm/coupon/paperCouponReport/index.html +++ b/dist/crm/coupon/paperCouponReport/index.html @@ -24,12 +24,12 @@ Ant Design Pro - + @@ -221,6 +221,6 @@ - + diff --git a/dist/crm/index.html b/dist/crm/index.html index 8e46604..18263c9 100644 --- a/dist/crm/index.html +++ b/dist/crm/index.html @@ -24,12 +24,12 @@ Ant Design Pro - + @@ -221,6 +221,6 @@ - + diff --git a/dist/device/deviceBom/index.html b/dist/device/deviceBom/index.html index 8e46604..18263c9 100644 --- a/dist/device/deviceBom/index.html +++ b/dist/device/deviceBom/index.html @@ -24,12 +24,12 @@ Ant Design Pro - + @@ -221,6 +221,6 @@ - + diff --git a/dist/device/deviceInfo/index.html b/dist/device/deviceInfo/index.html index 8e46604..18263c9 100644 --- a/dist/device/deviceInfo/index.html +++ b/dist/device/deviceInfo/index.html @@ -24,12 +24,12 @@ Ant Design Pro - + @@ -221,6 +221,6 @@ - + diff --git a/dist/device/deviceRecipeStock/index.html b/dist/device/deviceRecipeStock/index.html index 8e46604..18263c9 100644 --- a/dist/device/deviceRecipeStock/index.html +++ b/dist/device/deviceRecipeStock/index.html @@ -24,12 +24,12 @@ Ant Design Pro - + @@ -221,6 +221,6 @@ - + diff --git a/dist/device/deviceStirFryTime/index.html b/dist/device/deviceStirFryTime/index.html index 8e46604..18263c9 100644 --- a/dist/device/deviceStirFryTime/index.html +++ b/dist/device/deviceStirFryTime/index.html @@ -24,12 +24,12 @@ Ant Design Pro - + @@ -221,6 +221,6 @@ - + diff --git a/dist/device/deviceStock/index.html b/dist/device/deviceStock/index.html index 8e46604..18263c9 100644 --- a/dist/device/deviceStock/index.html +++ b/dist/device/deviceStock/index.html @@ -24,12 +24,12 @@ Ant Design Pro - + @@ -221,6 +221,6 @@ - + diff --git a/dist/device/deviceType/index.html b/dist/device/deviceType/index.html index 8e46604..18263c9 100644 --- a/dist/device/deviceType/index.html +++ b/dist/device/deviceType/index.html @@ -24,12 +24,12 @@ Ant Design Pro - + @@ -221,6 +221,6 @@ - + diff --git a/dist/device/devicemorkmwpush/index.html b/dist/device/devicemorkmwpush/index.html index 8e46604..18263c9 100644 --- a/dist/device/devicemorkmwpush/index.html +++ b/dist/device/devicemorkmwpush/index.html @@ -24,12 +24,12 @@ Ant Design Pro - + @@ -221,6 +221,6 @@ - + diff --git a/dist/device/index.html b/dist/device/index.html index 8e46604..18263c9 100644 --- a/dist/device/index.html +++ b/dist/device/index.html @@ -24,12 +24,12 @@ Ant Design Pro - + @@ -221,6 +221,6 @@ - + diff --git a/dist/erp/basic/product/index.html b/dist/erp/basic/product/index.html index 8e46604..18263c9 100644 --- a/dist/erp/basic/product/index.html +++ b/dist/erp/basic/product/index.html @@ -24,12 +24,12 @@ Ant Design Pro - + @@ -221,6 +221,6 @@ - + diff --git a/dist/erp/basic/productType/index.html b/dist/erp/basic/productType/index.html index 8e46604..18263c9 100644 --- a/dist/erp/basic/productType/index.html +++ b/dist/erp/basic/productType/index.html @@ -24,12 +24,12 @@ Ant Design Pro - + @@ -221,6 +221,6 @@ - + diff --git a/dist/erp/basic/unit/index.html b/dist/erp/basic/unit/index.html index 8e46604..18263c9 100644 --- a/dist/erp/basic/unit/index.html +++ b/dist/erp/basic/unit/index.html @@ -24,12 +24,12 @@ Ant Design Pro - + @@ -221,6 +221,6 @@ - + diff --git a/dist/erp/bill/purchaseOrder/index.html b/dist/erp/bill/purchaseOrder/index.html index 8e46604..18263c9 100644 --- a/dist/erp/bill/purchaseOrder/index.html +++ b/dist/erp/bill/purchaseOrder/index.html @@ -24,12 +24,12 @@ Ant Design Pro - + @@ -221,6 +221,6 @@ - + diff --git a/dist/erp/bill/receivingNote/index.html b/dist/erp/bill/receivingNote/index.html index 8e46604..18263c9 100644 --- a/dist/erp/bill/receivingNote/index.html +++ b/dist/erp/bill/receivingNote/index.html @@ -24,12 +24,12 @@ Ant Design Pro - + @@ -221,6 +221,6 @@ - + diff --git a/dist/erp/index.html b/dist/erp/index.html index 8e46604..18263c9 100644 --- a/dist/erp/index.html +++ b/dist/erp/index.html @@ -24,12 +24,12 @@ Ant Design Pro - + @@ -221,6 +221,6 @@ - + diff --git a/dist/erp/stock/index.html b/dist/erp/stock/index.html index 8e46604..18263c9 100644 --- a/dist/erp/stock/index.html +++ b/dist/erp/stock/index.html @@ -24,12 +24,12 @@ Ant Design Pro - + @@ -221,6 +221,6 @@ - + diff --git a/dist/financereport/finance/index.html b/dist/financereport/finance/index.html index 8e46604..18263c9 100644 --- a/dist/financereport/finance/index.html +++ b/dist/financereport/finance/index.html @@ -24,12 +24,12 @@ Ant Design Pro - + @@ -221,6 +221,6 @@ - + diff --git a/dist/financereport/index.html b/dist/financereport/index.html index 8e46604..18263c9 100644 --- a/dist/financereport/index.html +++ b/dist/financereport/index.html @@ -24,12 +24,12 @@ Ant Design Pro - + @@ -221,6 +221,6 @@ - + diff --git a/dist/foodMenu/foodMenuInfo/index.html b/dist/foodMenu/foodMenuInfo/index.html index 8e46604..18263c9 100644 --- a/dist/foodMenu/foodMenuInfo/index.html +++ b/dist/foodMenu/foodMenuInfo/index.html @@ -24,12 +24,12 @@ Ant Design Pro - + @@ -221,6 +221,6 @@ - + diff --git a/dist/foodMenu/index.html b/dist/foodMenu/index.html index 8e46604..18263c9 100644 --- a/dist/foodMenu/index.html +++ b/dist/foodMenu/index.html @@ -24,12 +24,12 @@ Ant Design Pro - + @@ -221,6 +221,6 @@ - + diff --git a/dist/foodMenu/storeFoodMenu/index.html b/dist/foodMenu/storeFoodMenu/index.html index 8e46604..18263c9 100644 --- a/dist/foodMenu/storeFoodMenu/index.html +++ b/dist/foodMenu/storeFoodMenu/index.html @@ -24,12 +24,12 @@ Ant Design Pro - + @@ -221,6 +221,6 @@ - + diff --git a/dist/gateAdmin/index.html b/dist/gateAdmin/index.html index 8e46604..18263c9 100644 --- a/dist/gateAdmin/index.html +++ b/dist/gateAdmin/index.html @@ -24,12 +24,12 @@ Ant Design Pro - + @@ -221,6 +221,6 @@ - + diff --git a/dist/goods/goods-manage/index.html b/dist/goods/goods-manage/index.html index 8e46604..18263c9 100644 --- a/dist/goods/goods-manage/index.html +++ b/dist/goods/goods-manage/index.html @@ -24,12 +24,12 @@ Ant Design Pro - + @@ -221,6 +221,6 @@ - + diff --git a/dist/goods/goods-taste/index.html b/dist/goods/goods-taste/index.html index 8e46604..18263c9 100644 --- a/dist/goods/goods-taste/index.html +++ b/dist/goods/goods-taste/index.html @@ -24,12 +24,12 @@ Ant Design Pro - + @@ -221,6 +221,6 @@ - + diff --git a/dist/goods/goods-type-manage/index.html b/dist/goods/goods-type-manage/index.html index 8e46604..18263c9 100644 --- a/dist/goods/goods-type-manage/index.html +++ b/dist/goods/goods-type-manage/index.html @@ -24,12 +24,12 @@ Ant Design Pro - + @@ -221,6 +221,6 @@ - + diff --git a/dist/goods/goodsInfo/index.html b/dist/goods/goodsInfo/index.html index 8e46604..18263c9 100644 --- a/dist/goods/goodsInfo/index.html +++ b/dist/goods/goodsInfo/index.html @@ -24,12 +24,12 @@ Ant Design Pro - + @@ -221,6 +221,6 @@ - + diff --git a/dist/goods/goodsParentTypemanage/index.html b/dist/goods/goodsParentTypemanage/index.html index 8e46604..18263c9 100644 --- a/dist/goods/goodsParentTypemanage/index.html +++ b/dist/goods/goodsParentTypemanage/index.html @@ -24,12 +24,12 @@ Ant Design Pro - + @@ -221,6 +221,6 @@ - + diff --git a/dist/goods/goodsPractice/index.html b/dist/goods/goodsPractice/index.html index 8e46604..18263c9 100644 --- a/dist/goods/goodsPractice/index.html +++ b/dist/goods/goodsPractice/index.html @@ -24,12 +24,12 @@ Ant Design Pro - + @@ -221,6 +221,6 @@ - + diff --git a/dist/goods/goodsPracticeInfo/index.html b/dist/goods/goodsPracticeInfo/index.html index 8e46604..18263c9 100644 --- a/dist/goods/goodsPracticeInfo/index.html +++ b/dist/goods/goodsPracticeInfo/index.html @@ -24,12 +24,12 @@ Ant Design Pro - + @@ -221,6 +221,6 @@ - + diff --git a/dist/goods/goodsPracticeType/index.html b/dist/goods/goodsPracticeType/index.html index 8e46604..18263c9 100644 --- a/dist/goods/goodsPracticeType/index.html +++ b/dist/goods/goodsPracticeType/index.html @@ -24,12 +24,12 @@ Ant Design Pro - + @@ -221,6 +221,6 @@ - + diff --git a/dist/goods/goodstechnology/index.html b/dist/goods/goodstechnology/index.html index 8e46604..18263c9 100644 --- a/dist/goods/goodstechnology/index.html +++ b/dist/goods/goodstechnology/index.html @@ -24,12 +24,12 @@ Ant Design Pro - + @@ -221,6 +221,6 @@ - + diff --git a/dist/goods/index.html b/dist/goods/index.html index 8e46604..18263c9 100644 --- a/dist/goods/index.html +++ b/dist/goods/index.html @@ -24,12 +24,12 @@ Ant Design Pro - + @@ -221,6 +221,6 @@ - + diff --git a/dist/goods/newgoods/index.html b/dist/goods/newgoods/index.html index 8e46604..18263c9 100644 --- a/dist/goods/newgoods/index.html +++ b/dist/goods/newgoods/index.html @@ -24,12 +24,12 @@ Ant Design Pro - + @@ -221,6 +221,6 @@ - + diff --git a/dist/goods/unit/index.html b/dist/goods/unit/index.html index 8e46604..18263c9 100644 --- a/dist/goods/unit/index.html +++ b/dist/goods/unit/index.html @@ -24,12 +24,12 @@ Ant Design Pro - + @@ -221,6 +221,6 @@ - + diff --git a/dist/index.html b/dist/index.html index 8e46604..18263c9 100644 --- a/dist/index.html +++ b/dist/index.html @@ -24,12 +24,12 @@ Ant Design Pro - + @@ -221,6 +221,6 @@ - + diff --git a/dist/integral/index.html b/dist/integral/index.html index 8e46604..18263c9 100644 --- a/dist/integral/index.html +++ b/dist/integral/index.html @@ -24,12 +24,12 @@ Ant Design Pro - + @@ -221,6 +221,6 @@ - + diff --git a/dist/integral/integralConfigure/index.html b/dist/integral/integralConfigure/index.html index 8e46604..18263c9 100644 --- a/dist/integral/integralConfigure/index.html +++ b/dist/integral/integralConfigure/index.html @@ -24,12 +24,12 @@ Ant Design Pro - + @@ -221,6 +221,6 @@ - + diff --git a/dist/integral/integralDistribute/index.html b/dist/integral/integralDistribute/index.html index 8e46604..18263c9 100644 --- a/dist/integral/integralDistribute/index.html +++ b/dist/integral/integralDistribute/index.html @@ -24,12 +24,12 @@ Ant Design Pro - + @@ -221,6 +221,6 @@ - + diff --git a/dist/member/index.html b/dist/member/index.html index 8e46604..18263c9 100644 --- a/dist/member/index.html +++ b/dist/member/index.html @@ -24,12 +24,12 @@ Ant Design Pro - + @@ -221,6 +221,6 @@ - + diff --git a/dist/member/memberAnalysis/index.html b/dist/member/memberAnalysis/index.html index 8e46604..18263c9 100644 --- a/dist/member/memberAnalysis/index.html +++ b/dist/member/memberAnalysis/index.html @@ -24,12 +24,12 @@ Ant Design Pro - + @@ -221,6 +221,6 @@ - + diff --git a/dist/member/memberInfo/index.html b/dist/member/memberInfo/index.html index 8e46604..18263c9 100644 --- a/dist/member/memberInfo/index.html +++ b/dist/member/memberInfo/index.html @@ -24,12 +24,12 @@ Ant Design Pro - + @@ -221,6 +221,6 @@ - + diff --git a/dist/member/membertag/index.html b/dist/member/membertag/index.html index 8e46604..18263c9 100644 --- a/dist/member/membertag/index.html +++ b/dist/member/membertag/index.html @@ -24,12 +24,12 @@ Ant Design Pro - + @@ -221,6 +221,6 @@ - + diff --git a/dist/order/DailyReport/index.html b/dist/order/DailyReport/index.html index 8e46604..18263c9 100644 --- a/dist/order/DailyReport/index.html +++ b/dist/order/DailyReport/index.html @@ -24,12 +24,12 @@ Ant Design Pro - + @@ -221,6 +221,6 @@ - + diff --git a/dist/order/cost-of-sales/index.html b/dist/order/cost-of-sales/index.html index 8e46604..18263c9 100644 --- a/dist/order/cost-of-sales/index.html +++ b/dist/order/cost-of-sales/index.html @@ -24,12 +24,12 @@ Ant Design Pro - + @@ -221,6 +221,6 @@ - + diff --git a/dist/order/exOrder/index.html b/dist/order/exOrder/index.html index 8e46604..18263c9 100644 --- a/dist/order/exOrder/index.html +++ b/dist/order/exOrder/index.html @@ -24,12 +24,12 @@ Ant Design Pro - + @@ -221,6 +221,6 @@ - + diff --git a/dist/order/gross-profit-store-sales/index.html b/dist/order/gross-profit-store-sales/index.html index 8e46604..18263c9 100644 --- a/dist/order/gross-profit-store-sales/index.html +++ b/dist/order/gross-profit-store-sales/index.html @@ -24,12 +24,12 @@ Ant Design Pro - + @@ -221,6 +221,6 @@ - + diff --git a/dist/order/index.html b/dist/order/index.html index 8e46604..18263c9 100644 --- a/dist/order/index.html +++ b/dist/order/index.html @@ -24,12 +24,12 @@ Ant Design Pro - + @@ -221,6 +221,6 @@ - + diff --git a/dist/order/order-flow-manage/index.html b/dist/order/order-flow-manage/index.html index 8e46604..18263c9 100644 --- a/dist/order/order-flow-manage/index.html +++ b/dist/order/order-flow-manage/index.html @@ -24,12 +24,12 @@ Ant Design Pro - + @@ -221,6 +221,6 @@ - + diff --git a/dist/order/order-market-report/index.html b/dist/order/order-market-report/index.html index 8e46604..18263c9 100644 --- a/dist/order/order-market-report/index.html +++ b/dist/order/order-market-report/index.html @@ -24,12 +24,12 @@ Ant Design Pro - + @@ -221,6 +221,6 @@ - + diff --git a/dist/order/order-member-statement/index.html b/dist/order/order-member-statement/index.html index 8e46604..18263c9 100644 --- a/dist/order/order-member-statement/index.html +++ b/dist/order/order-member-statement/index.html @@ -24,12 +24,12 @@ Ant Design Pro - + @@ -221,6 +221,6 @@ - + diff --git a/dist/order/order-nopay-detail/index.html b/dist/order/order-nopay-detail/index.html index 8e46604..18263c9 100644 --- a/dist/order/order-nopay-detail/index.html +++ b/dist/order/order-nopay-detail/index.html @@ -24,12 +24,12 @@ Ant Design Pro - + @@ -221,6 +221,6 @@ - + diff --git a/dist/order/order-product-report/index.html b/dist/order/order-product-report/index.html index 8e46604..18263c9 100644 --- a/dist/order/order-product-report/index.html +++ b/dist/order/order-product-report/index.html @@ -24,12 +24,12 @@ Ant Design Pro - + @@ -221,6 +221,6 @@ - + diff --git a/dist/order/order-report/index.html b/dist/order/order-report/index.html index 8e46604..18263c9 100644 --- a/dist/order/order-report/index.html +++ b/dist/order/order-report/index.html @@ -24,12 +24,12 @@ Ant Design Pro - + @@ -221,6 +221,6 @@ - + diff --git a/dist/order/order-report/order-report-detail/index.html b/dist/order/order-report/order-report-detail/index.html index 8e46604..18263c9 100644 --- a/dist/order/order-report/order-report-detail/index.html +++ b/dist/order/order-report/order-report-detail/index.html @@ -24,12 +24,12 @@ Ant Design Pro - + @@ -221,6 +221,6 @@ - + diff --git a/dist/order/order-revenue-statement/index.html b/dist/order/order-revenue-statement/index.html index 8e46604..18263c9 100644 --- a/dist/order/order-revenue-statement/index.html +++ b/dist/order/order-revenue-statement/index.html @@ -24,12 +24,12 @@ Ant Design Pro - + @@ -221,6 +221,6 @@ - + diff --git a/dist/order/order-summary-manage/index.html b/dist/order/order-summary-manage/index.html index 8e46604..18263c9 100644 --- a/dist/order/order-summary-manage/index.html +++ b/dist/order/order-summary-manage/index.html @@ -24,12 +24,12 @@ Ant Design Pro - + @@ -221,6 +221,6 @@ - + diff --git a/dist/order/orderDetail/index.html b/dist/order/orderDetail/index.html index 8e46604..18263c9 100644 --- a/dist/order/orderDetail/index.html +++ b/dist/order/orderDetail/index.html @@ -24,12 +24,12 @@ Ant Design Pro - + @@ -221,6 +221,6 @@ - + diff --git a/dist/order/ordersalescountbyday/index.html b/dist/order/ordersalescountbyday/index.html index 8e46604..18263c9 100644 --- a/dist/order/ordersalescountbyday/index.html +++ b/dist/order/ordersalescountbyday/index.html @@ -24,12 +24,12 @@ Ant Design Pro - + @@ -221,6 +221,6 @@ - + diff --git a/dist/order/refundOrder/index.html b/dist/order/refundOrder/index.html index 8e46604..18263c9 100644 --- a/dist/order/refundOrder/index.html +++ b/dist/order/refundOrder/index.html @@ -24,12 +24,12 @@ Ant Design Pro - + @@ -221,6 +221,6 @@ - + diff --git a/dist/order/sales-gross-profit/index.html b/dist/order/sales-gross-profit/index.html index 8e46604..18263c9 100644 --- a/dist/order/sales-gross-profit/index.html +++ b/dist/order/sales-gross-profit/index.html @@ -24,12 +24,12 @@ Ant Design Pro - + @@ -221,6 +221,6 @@ - + diff --git a/dist/order/salesReport/index.html b/dist/order/salesReport/index.html index 8e46604..18263c9 100644 --- a/dist/order/salesReport/index.html +++ b/dist/order/salesReport/index.html @@ -24,12 +24,12 @@ Ant Design Pro - + @@ -221,6 +221,6 @@ - + diff --git a/dist/p__Welcome.aa5c9713.async.js b/dist/p__Welcome.aa5c9713.async.js deleted file mode 100644 index fcfbef4..0000000 --- a/dist/p__Welcome.aa5c9713.async.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[8185,1322,9464,1981,2869,7013,9719,2383],{8668:function(e){e.exports={pre:"pre___3fTUI"}},47828:function(){},41496:function(e,n,_){"use strict";_.r(n);var l=_(402),E=_(67294),s=_(78009),t=_(48971),a=_(8668),d=_.n(a),P=_(54658),o=_(85893),D=function(u){var O=u.children;return _jsx("pre",{className:styles.pre,children:_jsx("code",{children:_jsx(_Typography.Text,{copyable:!0,children:O})})})};n.default=function(){var r=(0,t.YB)();return(0,o.jsx)(s.ZP,{children:(0,o.jsx)(P.default,{})})}},402:function(e,n,_){"use strict";var l=_(38663),E=_.n(l),s=_(47828),t=_.n(s),a=_(47673),d=_(22385)},97435:function(e,n){"use strict";function _(l,E){for(var s=Object.assign({},l),t=0;t1?r.materialType=1:r.materialType=0;var s=[];e.forEach(function(d,l){s.push({uid:l,name:d.split("/applet/")[1]||"\u56FE\u7247.jpg",status:"done",url:d})}),T(s),v(r),B(!0)},Ye=function(){var i=(0,C.Z)((0,c.Z)().mark(function a(e){var r;return(0,c.Z)().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return d.next=2,p.Z.DeleteMiniMaterial(e.id);case 2:r=d.sent,r.statusCode===200?(P.current.reload(),m.default.success("\u5220\u9664\u6210\u529F")):m.default.error(r.errors||"\u5220\u9664\u5931\u8D25");case 4:case"end":return d.stop()}},a)}));return function(e){return i.apply(this,arguments)}}(),ke=function(){var i=(0,C.Z)((0,c.Z)().mark(function a(){var e;return(0,c.Z)().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,p.Z.MiniPageList({current:1,pageSize:999,storeId:f});case 2:e=s.sent,e.statusCode===200?Ne(e.data.items):m.default.error(e.errors||"\u83B7\u53D6\u9875\u9762\u5217\u8868\u5931\u8D25");case 4:case"end":return s.stop()}},a)}));return function(){return i.apply(this,arguments)}}(),we=function(){T([]),v({pageId:"",materialName:"",materialCode:"",materialPath:[],materialType:0})};return(0,A.useEffect)(function(){Je()},[]),(0,A.useEffect)(function(){!f||(ke(),P.current.reload())},[f]),(0,t.jsxs)(se.ZP,{children:[(0,t.jsx)(te.Z,{style:{marginBottom:"10px"},children:(0,t.jsxs)("div",{className:_().table_search_item,children:[(0,t.jsx)("div",{children:"\u5F53\u524D\u95E8\u5E97\uFF1A"}),(0,t.jsx)(R.Z,{style:{width:300},value:f,onChange:function(a){I(a)},children:me.map(function(i){return(0,t.jsx)(Option,{value:i.id,children:i.store_Name},i.id)})})]})}),(0,t.jsx)(re.ZP,{search:!1,columns:Fe,actionRef:P,cardBordered:!0,editable:{type:"multiple"},request:(0,C.Z)((0,c.Z)().mark(function i(){var a,e,r;return(0,c.Z)().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:if(f){d.next=2;break}return d.abrupt("return");case 2:return a={current:je,pageSize:Ke,storeId:f},d.next=5,p.Z.MinimaterialListByStore(a);case 5:return e=d.sent,r=[],e.data.forEach(function(l){r.push.apply(r,(0,ae.Z)(l.list))}),d.abrupt("return",{data:r,success:!0,total:10});case 9:case"end":return d.stop()}},i)})),columnsState:{persistenceKey:"pro-table-singe-demos",persistenceType:"localStorage",onChange:function(a){}},rowKey:"id",options:{setting:{listsHeight:400}},pagination:{pageSize:5,onChange:function(a){return console.log(a)}},dateFormatter:"string",headerTitle:"\u56FE\u7247\u7BA1\u7406",toolBarRender:function(){return[(0,t.jsx)(ee.Z,{icon:(0,t.jsx)(U.Z,{}),type:"primary",onClick:function(){B(!0),we()},children:"\u65B0\u5EFA"},"button")]}}),(0,t.jsx)(E.Z,{title:"\u7F16\u8F91\u7D20\u6750",visible:he,onOk:xe,onCancel:function(){return B(!1)},children:(0,t.jsxs)("div",{className:_().edit_image_card,children:[(0,t.jsxs)("div",{className:_().edit_image_item,children:[(0,t.jsx)("div",{className:_().edit_image_prev,children:"\u7D20\u6750\u540D\u79F0\uFF1A"}),(0,t.jsx)("div",{className:_().edit_image_suffix,children:(0,t.jsx)(L.Z,{placeholder:"\u8BF7\u8F93\u5165\u7D20\u6750\u540D\u79F0",value:u.materialName,onChange:function(a){var e=JSON.parse(JSON.stringify(u));e.materialName=a.target.value,v(e)}})})]}),(0,t.jsxs)("div",{className:_().edit_image_item,children:[(0,t.jsx)("div",{className:_().edit_image_prev,children:"\u7D20\u6750\u7F16\u7801\uFF1A"}),(0,t.jsx)("div",{className:_().edit_image_suffix,children:(0,t.jsx)(L.Z,{placeholder:"\u8BF7\u8F93\u5165\u7D20\u6750\u7F16\u7801",value:u.materialCode,onChange:function(a){var e=JSON.parse(JSON.stringify(u));e.materialCode=a.target.value,v(e)}})})]}),(0,t.jsxs)("div",{className:_().edit_image_item,children:[(0,t.jsx)("div",{className:_().edit_image_prev,children:"\u6240\u5C5E\u9875\u9762\uFF1A"}),(0,t.jsx)("div",{className:_().edit_image_suffix,children:(0,t.jsx)(R.Z,{placeholder:"\u8BF7\u9009\u62E9\u6240\u5728\u9875\u9762",style:{width:"100%"},value:u.pageId,onChange:function(a){var e=JSON.parse(JSON.stringify(u));e.pageId=a,v(e)},children:Oe.map(function(i){return(0,t.jsx)(Option,{value:i.id,children:i.pageName},i.id)})})})]}),(0,t.jsxs)("div",{className:_().edit_image_item,children:[(0,t.jsx)("div",{className:_().edit_image_prev,children:"\u6570\u91CF\uFF1A"}),(0,t.jsx)("div",{className:_().edit_image_suffix,children:(0,t.jsxs)(R.Z,{placeholder:"\u8BF7\u9009\u62E9\u7D20\u6750\u6570\u91CF",style:{width:"100%"},value:u.materialType,onChange:function(a){var e=JSON.parse(JSON.stringify(u));e.materialType=a,v(e)},children:[(0,t.jsx)(Option,{value:0,children:"\u5355\u5F20"},0),(0,t.jsx)(Option,{value:1,children:"\u591A\u5F20"},1)]})})]}),(0,t.jsx)($.Z,(0,g.Z)((0,g.Z)({listType:"picture-card",fileList:O,onPreview:Ue,onChange:Ze,onRemove:function(a){var e=O.findIndex(function(s){return s.uid===a.uid});if(e>-1){var r=JSON.parse(JSON.stringify(u));r.materialPath.splice(e,1),v(r)}}},be),{},{children:function(){return u.materialType===0?O.length>=1?null:X:(0,t.jsx)(t.Fragment,{children:O.length>=9?null:X})}()}))]})}),(0,t.jsx)(E.Z,{visible:pe,title:Qe,footer:null,onCancel:Le,children:(0,t.jsx)("img",{alt:"example",style:{width:"100%"},src:Ce})})]})};Q.default=Ae},73999:function(N,Q,n){"use strict";var S=n(11849),E=n(48971);Q.Z={GetAllStore:function(){return(0,E.WY)("/kitchen/api/StoreHelper/GetAllStore",{method:"GET"})},GetCosRequestURL:function(o){return(0,E.WY)("/kitchen/api/systemconfig/GetCosRequestSignURL",{method:"POST",data:o})},AddMinimaterial:function(o){return(0,E.WY)("/kitchen/api/minimaterial/add",{method:"POST",data:o})},UpdateMiniMaterial:function(o){return(0,E.WY)("/kitchen/api/minimaterial/update",{method:"POST",data:o})},MinimaterialListByStore:function(o){return(0,E.WY)("/kitchen/api/minimaterial/store",{method:"POST",data:o})},DeleteMiniMaterial:function(o){return(0,E.WY)("/kitchen/api/minimaterial/del",{method:"POST",data:{id:o}})},MiniPageAdd:function(o){return(0,E.WY)("/kitchen/api/minipage/add",{method:"POST",data:(0,S.Z)({},o)})},MiniPageDelete:function(o){return(0,E.WY)("/kitchen/api/minipage/del",{method:"POST",data:{id:o}})},MiniPageUpdate:function(o){return(0,E.WY)("/kitchen/api/minipage/update",{method:"POST",data:(0,S.Z)({},o)})},MiniPageList:function(o){return(0,E.WY)("/kitchen/api/minipage/page",{method:"POST",data:(0,S.Z)({},o)})}}}}]); +(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[7350],{47848:function(N){N.exports={table_search_item:"table_search_item___Js49t",edit_image_item:"edit_image_item___HRulD",edit_image_prev:"edit_image_prev___3DVAW"}},61969:function(N,Q,n){"use strict";n.r(Q);var S=n(71194),E=n(50146),g=n(11849),d=n(43185),$=n(93009),$e=n(47673),y=n(4107),ea=n(57663),ee=n(71577),ae=n(86582),aa=n(58024),te=n(91894),ta=n(43358),R=n(34041),na=n(34792),m=n(48086),ia=n(62350),ne=n(24565),ra=n(12968),ie=n(6122),c=n(39428),P=n(3182),h=n(2824),L=n(49101),re=n(16894),se=n(78009),A=n(67294),p=n(73999),le=n(47848),_=n.n(le),ue=n(9669),oe=n.n(ue),t=n(85893),de=function(C){return new Promise(function(j,D){var f=new FileReader;f.readAsDataURL(C),f.onload=function(){return j(f.result)},f.onerror=function(I){return D(I)}})},Ae=function(){var C=(0,A.useRef)(),j=(0,A.useState)(""),D=(0,h.Z)(j,2),f=D[0],I=D[1],Ee=(0,A.useState)([]),Z=(0,h.Z)(Ee,2),me=Z[0],ge=Z[1],ce=(0,A.useState)(!1),F=(0,h.Z)(ce,2),he=F[0],B=F[1],fe=(0,A.useState)({id:"",pageId:"",materialName:"",materialCode:"",materialPath:[],materialType:0}),J=(0,h.Z)(fe,2),u=J[0],v=J[1],ve=(0,A.useState)(!1),b=(0,h.Z)(ve,2),pe=b[0],x=b[1],Ce=(0,A.useState)(""),W=(0,h.Z)(Ce,2),Pe=W[0],Be=W[1],Me=(0,A.useState)(""),k=(0,h.Z)(Me,2),Qe=k[0],Se=k[1],De=(0,A.useState)([]),Y=(0,h.Z)(De,2),O=Y[0],T=Y[1],Ie=(0,A.useState)([]),w=(0,h.Z)(Ie,2),Oe=w[0],Ne=w[1],Re=(0,A.useState)(1),z=(0,h.Z)(Re,2),je=z[0],sa=z[1],Te=(0,A.useState)(10),G=(0,h.Z)(Te,2),Ue=G[0],la=G[1],Ke=(0,A.useState)(0),H=(0,h.Z)(Ke,2),ua=H[0],oa=H[1],ye=function(){return x(!1)},Le=function(){var i=(0,P.Z)((0,c.Z)().mark(function a(e){return(0,c.Z)().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:if(!(!e.url&&!e.preview)){s.next=4;break}return s.next=3,de(e.originFileObj);case 3:e.preview=s.sent;case 4:Be(e.url||e.preview),x(!0),Se(e.name||e.url.substring(e.url.lastIndexOf("/")+1));case 7:case"end":return s.stop()}},a)}));return function(e){return i.apply(this,arguments)}}(),Ze=function(a){var e=a.fileList;e.forEach(function(r){r.status="done"}),T(e)},Fe=[{title:"\u7D20\u6750\u540D\u79F0",dataIndex:"materialName",ellipsis:!0},{title:"\u7D20\u6750\u7F16\u7801",dataIndex:"materialCode",ellipsis:!0},{title:"\u7D20\u6750\u56FE\u7247",dataIndex:"materialPath",render:function(a,e){return(0,t.jsx)(ie.Z,{style:{width:"50%",height:"50%"},src:JSON.parse(e.materialPath)[0],fallback:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMIAAADDCAYAAADQvc6UAAABRWlDQ1BJQ0MgUHJvZmlsZQAAKJFjYGASSSwoyGFhYGDIzSspCnJ3UoiIjFJgf8LAwSDCIMogwMCcmFxc4BgQ4ANUwgCjUcG3awyMIPqyLsis7PPOq3QdDFcvjV3jOD1boQVTPQrgSkktTgbSf4A4LbmgqISBgTEFyFYuLykAsTuAbJEioKOA7DkgdjqEvQHEToKwj4DVhAQ5A9k3gGyB5IxEoBmML4BsnSQk8XQkNtReEOBxcfXxUQg1Mjc0dyHgXNJBSWpFCYh2zi+oLMpMzyhRcASGUqqCZ16yno6CkYGRAQMDKMwhqj/fAIcloxgHQqxAjIHBEugw5sUIsSQpBobtQPdLciLEVJYzMPBHMDBsayhILEqEO4DxG0txmrERhM29nYGBddr//5/DGRjYNRkY/l7////39v///y4Dmn+LgeHANwDrkl1AuO+pmgAAADhlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAAqACAAQAAAABAAAAwqADAAQAAAABAAAAwwAAAAD9b/HnAAAHlklEQVR4Ae3dP3PTWBSGcbGzM6GCKqlIBRV0dHRJFarQ0eUT8LH4BnRU0NHR0UEFVdIlFRV7TzRksomPY8uykTk/zewQfKw/9znv4yvJynLv4uLiV2dBoDiBf4qP3/ARuCRABEFAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghgg0Aj8i0JO4OzsrPv69Wv+hi2qPHr0qNvf39+iI97soRIh4f3z58/u7du3SXX7Xt7Z2enevHmzfQe+oSN2apSAPj09TSrb+XKI/f379+08+A0cNRE2ANkupk+ACNPvkSPcAAEibACyXUyfABGm3yNHuAECRNgAZLuYPgEirKlHu7u7XdyytGwHAd8jjNyng4OD7vnz51dbPT8/7z58+NB9+/bt6jU/TI+AGWHEnrx48eJ/EsSmHzx40L18+fLyzxF3ZVMjEyDCiEDjMYZZS5wiPXnyZFbJaxMhQIQRGzHvWR7XCyOCXsOmiDAi1HmPMMQjDpbpEiDCiL358eNHurW/5SnWdIBbXiDCiA38/Pnzrce2YyZ4//59F3ePLNMl4PbpiL2J0L979+7yDtHDhw8vtzzvdGnEXdvUigSIsCLAWavHp/+qM0BcXMd/q25n1vF57TYBp0a3mUzilePj4+7k5KSLb6gt6ydAhPUzXnoPR0dHl79WGTNCfBnn1uvSCJdegQhLI1vvCk+fPu2ePXt2tZOYEV6/fn31dz+shwAR1sP1cqvLntbEN9MxA9xcYjsxS1jWR4AIa2Ibzx0tc44fYX/16lV6NDFLXH+YL32jwiACRBiEbf5KcXoTIsQSpzXx4N28Ja4BQoK7rgXiydbHjx/P25TaQAJEGAguWy0+2Q8PD6/Ki4R8EVl+bzBOnZY95fq9rj9zAkTI2SxdidBHqG9+skdw43borCXO/ZcJdraPWdv22uIEiLA4q7nvvCug8WTqzQveOH26fodo7g6uFe/a17W3+nFBAkRYENRdb1vkkz1CH9cPsVy/jrhr27PqMYvENYNlHAIesRiBYwRy0V+8iXP8+/fvX11Mr7L7ECueb/r48eMqm7FuI2BGWDEG8cm+7G3NEOfmdcTQw4h9/55lhm7DekRYKQPZF2ArbXTAyu4kDYB2YxUzwg0gi/41ztHnfQG26HbGel/crVrm7tNY+/1btkOEAZ2M05r4FB7r9GbAIdxaZYrHdOsgJ/wCEQY0J74TmOKnbxxT9n3FgGGWWsVdowHtjt9Nnvf7yQM2aZU/TIAIAxrw6dOnAWtZZcoEnBpNuTuObWMEiLAx1HY0ZQJEmHJ3HNvGCBBhY6jtaMoEiJB0Z29vL6ls58vxPcO8/zfrdo5qvKO+d3Fx8Wu8zf1dW4p/cPzLly/dtv9Ts/EbcvGAHhHyfBIhZ6NSiIBTo0LNNtScABFyNiqFCBChULMNNSdAhJyNSiECRCjUbEPNCRAhZ6NSiAARCjXbUHMCRMjZqBQiQIRCzTbUnAARcjYqhQgQoVCzDTUnQIScjUohAkQo1GxDzQkQIWejUogAEQo121BzAkTI2agUIkCEQs021JwAEXI2KoUIEKFQsw01J0CEnI1KIQJEKNRsQ80JECFno1KIABEKNdtQcwJEyNmoFCJAhELNNtScABFyNiqFCBChULMNNSdAhJyNSiECRCjUbEPNCRAhZ6NSiAARCjXbUHMCRMjZqBQiQIRCzTbUnAARcjYqhQgQoVCzDTUnQIScjUohAkQo1GxDzQkQIWejUogAEQo121BzAkTI2agUIkCEQs021JwAEXI2KoUIEKFQsw01J0CEnI1KIQJEKNRsQ80JECFno1KIABEKNdtQcwJEyNmoFCJAhELNNtScABFyNiqFCBChULMNNSdAhJyNSiECRCjUbEPNCRAhZ6NSiAARCjXbUHMCRMjZqBQiQIRCzTbUnAARcjYqhQgQoVCzDTUnQIScjUohAkQo1GxDzQkQIWejUogAEQo121BzAkTI2agUIkCEQs021JwAEXI2KoUIEKFQsw01J0CEnI1KIQJEKNRsQ80JECFno1KIABEKNdtQcwJEyNmoFCJAhELNNtScABFyNiqFCBChULMNNSdAhJyNSiEC/wGgKKC4YMA4TAAAAABJRU5ErkJggg=="})}},{title:"\u64CD\u4F5C",valueType:"option",key:"option",render:function(a,e){return[(0,t.jsx)("a",{onClick:function(){return We(e)},children:"\u7F16\u8F91"}),(0,t.jsx)(ne.Z,{title:"\u786E\u5B9A\u8981\u5220\u9664\u6B64\u7D20\u6750\u5417\uFF1F",onConfirm:function(){return ke(e)},okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",children:(0,t.jsx)("a",{href:"#",children:"\u5220\u9664"})})]}}],X=(0,t.jsxs)("div",{children:[(0,t.jsx)(L.Z,{}),(0,t.jsx)("div",{style:{marginTop:8},children:"Upload"})]}),Je=function(){var i=(0,P.Z)((0,c.Z)().mark(function a(){var e;return(0,c.Z)().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,p.Z.GetAllStore();case 2:e=s.sent,e.isSuccess?(ge(e.data),I(e.data[0].id)):m.default.error(e.msg||"\u83B7\u53D6\u5E97\u94FA\u5217\u8868\u5931\u8D25");case 4:case"end":return s.stop()}},a)}));return function(){return i.apply(this,arguments)}}(),be={name:"file",showUploadList:!0,multiple:!1,accept:".png, .jpg, .jpeg, .gif",headers:{"Content-Type":"application/octet-stream"},customRequest:function(a){var e=a.action,r=a.file,s=a.headers,o=a.onError,l=a.onProgress,ze=a.withCredentials,Ge=r.name.lastIndexOf("."),He=r.name.substr(Ge+1),V=null;return p.Z.GetCosRequestURL({directory:"applet",fileExtension:He,method:"PUT"}).then(function(U){e=U.allUrl;var q=new FileReader;q.readAsArrayBuffer(r),q.onload=function(Xe){V=Xe.target.result,oe().put(e,V,{withCredentials:ze,headers:s,onUploadProgress:function(M){var Ve=M.total,qe=M.loaded;l({percent:Math.round(qe/Ve*100).toFixed(2)},r)}}).then(function(K){if(K.status==200||K.statusText=="OK"){var M=JSON.parse(JSON.stringify(u));M.materialPath.push(U.seeUrl),v(M),m.default.success("\u4E0A\u4F20\u6210\u529F\uFF01")}}).catch(o)}}),{abort:function(){console.log("upload progress is aborted.")}}}},xe=function(){var i=(0,P.Z)((0,c.Z)().mark(function a(){var e,r,s;return(0,c.Z)().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:if(u.pageId){l.next=5;break}return m.default.info("\u8BF7\u9009\u62E9\u6240\u5C5E\u9875\u9762"),l.abrupt("return");case 5:if(u.materialName){l.next=10;break}return m.default.info("\u8BF7\u586B\u5199\u7D20\u6750\u540D\u79F0"),l.abrupt("return");case 10:if(u.materialCode){l.next=15;break}return m.default.info("\u8BF7\u586B\u5199\u7D20\u6750\u7F16\u7801"),l.abrupt("return");case 15:if(u.materialPath.length!==0){l.next=18;break}return m.default.info("\u8BF7\u9009\u62E9\u81F3\u5C11\u4E0A\u4F20\u4E00\u5F20\u7D20\u6750\u56FE\u7247"),l.abrupt("return");case 18:if(e={pageId:u.pageId,materialName:u.materialName,materialCode:u.materialCode,materialPath:JSON.stringify(u.materialPath),materialType:u.materialType},!u.id){l.next=27;break}return e.id=u.id,l.next=23,p.Z.UpdateMiniMaterial(e);case 23:r=l.sent,r.statusCode===200?(m.default.success("\u66F4\u65B0\u6210\u529F"),B(!1),C.current.reload()):m.default.error("\u66F4\u65B0\u5931\u8D25"),l.next=31;break;case 27:return l.next=29,p.Z.AddMinimaterial(e);case 29:s=l.sent,s.statusCode===200?(m.default.success("\u6DFB\u52A0\u6210\u529F"),B(!1),C.current.reload()):m.default.error("\u6DFB\u52A0\u5931\u8D25");case 31:case"end":return l.stop()}},a)}));return function(){return i.apply(this,arguments)}}(),We=function(a){var e=JSON.parse(a.materialPath),r={id:a.id,pageId:a.pageId,materialName:a.materialName,materialCode:a.materialCode,materialPath:e};e.length>1?r.materialType=1:r.materialType=0;var s=[];e.forEach(function(o,l){s.push({uid:l,name:o.split("/applet/")[1]||"\u56FE\u7247.jpg",status:"done",url:o})}),T(s),v(r),B(!0)},ke=function(){var i=(0,P.Z)((0,c.Z)().mark(function a(e){var r;return(0,c.Z)().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,p.Z.DeleteMiniMaterial(e.id);case 2:r=o.sent,r.statusCode===200?(C.current.reload(),m.default.success("\u5220\u9664\u6210\u529F")):m.default.error(r.errors||"\u5220\u9664\u5931\u8D25");case 4:case"end":return o.stop()}},a)}));return function(e){return i.apply(this,arguments)}}(),Ye=function(){var i=(0,P.Z)((0,c.Z)().mark(function a(){var e;return(0,c.Z)().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,p.Z.MiniPageList({current:1,pageSize:999,storeId:f});case 2:e=s.sent,e.statusCode===200?Ne(e.data.items):m.default.error(e.errors||"\u83B7\u53D6\u9875\u9762\u5217\u8868\u5931\u8D25");case 4:case"end":return s.stop()}},a)}));return function(){return i.apply(this,arguments)}}(),we=function(){T([]),v({pageId:"",materialName:"",materialCode:"",materialPath:[],materialType:0})};return(0,A.useEffect)(function(){Je()},[]),(0,A.useEffect)(function(){!f||(Ye(),C.current.reload())},[f]),(0,t.jsxs)(se.ZP,{children:[(0,t.jsx)(te.Z,{style:{marginBottom:"10px"},children:(0,t.jsxs)("div",{className:_().table_search_item,children:[(0,t.jsx)("div",{children:"\u5F53\u524D\u95E8\u5E97\uFF1A"}),(0,t.jsx)(R.Z,{style:{width:300},value:f,onChange:function(a){I(a)},children:me.map(function(i){return(0,t.jsx)(Option,{value:i.id,children:i.store_Name},i.id)})})]})}),(0,t.jsx)(re.ZP,{search:!1,columns:Fe,actionRef:C,cardBordered:!0,editable:{type:"multiple"},request:(0,P.Z)((0,c.Z)().mark(function i(){var a,e,r;return(0,c.Z)().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:if(f){o.next=2;break}return o.abrupt("return");case 2:return a={current:je,pageSize:Ue,storeId:f},o.next=5,p.Z.MinimaterialListByStore(a);case 5:return e=o.sent,r=[],e.data.forEach(function(l){r.push.apply(r,(0,ae.Z)(l.list))}),o.abrupt("return",{data:r,success:!0,total:10});case 9:case"end":return o.stop()}},i)})),columnsState:{persistenceKey:"pro-table-singe-demos",persistenceType:"localStorage",onChange:function(a){}},rowKey:"id",options:{setting:{listsHeight:400}},pagination:{pageSize:5,onChange:function(a){return console.log(a)}},dateFormatter:"string",headerTitle:"\u56FE\u7247\u7BA1\u7406",toolBarRender:function(){return[(0,t.jsx)(ee.Z,{icon:(0,t.jsx)(L.Z,{}),type:"primary",onClick:function(){B(!0),we()},children:"\u65B0\u5EFA"},"button")]}}),(0,t.jsx)(E.Z,{title:"\u7F16\u8F91\u7D20\u6750",visible:he,onOk:xe,onCancel:function(){return B(!1)},children:(0,t.jsxs)("div",{className:_().edit_image_card,children:[(0,t.jsxs)("div",{className:_().edit_image_item,children:[(0,t.jsx)("div",{className:_().edit_image_prev,children:"\u7D20\u6750\u540D\u79F0\uFF1A"}),(0,t.jsx)("div",{className:_().edit_image_suffix,children:(0,t.jsx)(y.Z,{placeholder:"\u8BF7\u8F93\u5165\u7D20\u6750\u540D\u79F0",value:u.materialName,onChange:function(a){var e=JSON.parse(JSON.stringify(u));e.materialName=a.target.value,v(e)}})})]}),(0,t.jsxs)("div",{className:_().edit_image_item,children:[(0,t.jsx)("div",{className:_().edit_image_prev,children:"\u7D20\u6750\u7F16\u7801\uFF1A"}),(0,t.jsx)("div",{className:_().edit_image_suffix,children:(0,t.jsx)(y.Z,{placeholder:"\u8BF7\u8F93\u5165\u7D20\u6750\u7F16\u7801",value:u.materialCode,onChange:function(a){var e=JSON.parse(JSON.stringify(u));e.materialCode=a.target.value,v(e)}})})]}),(0,t.jsxs)("div",{className:_().edit_image_item,children:[(0,t.jsx)("div",{className:_().edit_image_prev,children:"\u6240\u5C5E\u9875\u9762\uFF1A"}),(0,t.jsx)("div",{className:_().edit_image_suffix,children:(0,t.jsx)(R.Z,{placeholder:"\u8BF7\u9009\u62E9\u6240\u5728\u9875\u9762",style:{width:"100%"},value:u.pageId,onChange:function(a){var e=JSON.parse(JSON.stringify(u));e.pageId=a,v(e)},children:Oe.map(function(i){return(0,t.jsx)(Option,{value:i.id,children:i.pageName},i.id)})})})]}),(0,t.jsxs)("div",{className:_().edit_image_item,children:[(0,t.jsx)("div",{className:_().edit_image_prev,children:"\u6570\u91CF\uFF1A"}),(0,t.jsx)("div",{className:_().edit_image_suffix,children:(0,t.jsxs)(R.Z,{placeholder:"\u8BF7\u9009\u62E9\u7D20\u6750\u6570\u91CF",style:{width:"100%"},value:u.materialType,onChange:function(a){var e=JSON.parse(JSON.stringify(u));e.materialType=a,v(e)},children:[(0,t.jsx)(Option,{value:0,children:"\u5355\u5F20"},0),(0,t.jsx)(Option,{value:1,children:"\u591A\u5F20"},1)]})})]}),(0,t.jsx)($.Z,(0,g.Z)((0,g.Z)({listType:"picture-card",fileList:O,onPreview:Le,onChange:Ze,onRemove:function(a){var e=O.findIndex(function(s){return s.uid===a.uid});if(e>-1){var r=JSON.parse(JSON.stringify(u));r.materialPath.splice(e,1),v(r)}}},be),{},{children:function(){return u.materialType===0?O.length>=1?null:X:(0,t.jsx)(t.Fragment,{children:O.length>=9?null:X})}()}))]})}),(0,t.jsx)(E.Z,{visible:pe,title:Qe,footer:null,onCancel:ye,children:(0,t.jsx)("img",{alt:"example",style:{width:"100%"},src:Pe})})]})};Q.default=Ae},73999:function(N,Q,n){"use strict";var S=n(11849),E=n(48971);Q.Z={GetAllStore:function(){return(0,E.WY)("/kitchen/api/StoreHelper/GetAllStore",{method:"GET"})},GetCosRequestURL:function(d){return(0,E.WY)("/kitchen/api/systemconfig/GetCosRequestSignURL",{method:"POST",data:d})},AddMinimaterial:function(d){return(0,E.WY)("/kitchen/api/minimaterial/add",{method:"POST",data:d})},UpdateMiniMaterial:function(d){return(0,E.WY)("/kitchen/api/minimaterial/update",{method:"POST",data:d})},MinimaterialListByStore:function(d){return(0,E.WY)("/kitchen/api/minimaterial/store",{method:"POST",data:d})},DeleteMiniMaterial:function(d){return(0,E.WY)("/kitchen/api/minimaterial/del",{method:"POST",data:{id:d}})},MiniPageAdd:function(d){return(0,E.WY)("/kitchen/api/minipage/add",{method:"POST",data:(0,S.Z)({},d)})},MiniPageDelete:function(d){return(0,E.WY)("/kitchen/api/minipage/del",{method:"POST",data:{id:d}})},MiniPageUpdate:function(d){return(0,E.WY)("/kitchen/api/minipage/update",{method:"POST",data:(0,S.Z)({},d)})},MiniPageList:function(d){return(0,E.WY)("/kitchen/api/minipage/page",{method:"POST",data:(0,S.Z)({},d)})}}}}]); diff --git a/dist/p__applet__pageManage.b92e901e.async.js b/dist/p__applet__pageManage.69355ea0.async.js similarity index 50% rename from dist/p__applet__pageManage.b92e901e.async.js rename to dist/p__applet__pageManage.69355ea0.async.js index dc18e2d..3730f3a 100644 --- a/dist/p__applet__pageManage.b92e901e.async.js +++ b/dist/p__applet__pageManage.69355ea0.async.js @@ -1 +1 @@ -(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[9076],{93352:function(C){C.exports={table_search_item:"table_search_item___1QRWt",edit_image_item:"edit_image_item___3Iyih",edit_image_prev:"edit_image_prev___2n7ta"}},18319:function(C,D,e){"use strict";e.r(D);var O=e(71194),u=e(50146),l=e(47673),n=e(4107),ue=e(57663),B=e(71577),_e=e(58024),K=e(91894),le=e(43358),Z=e(34041),m=e(39428),de=e(34792),c=e(48086),g=e(3182),oe=e(62350),y=e(24565),me=e(9715),E=e(55843),P=e(2824),F=e(16894),x=e(78009),b=e(49101),d=e(67294),h=e(73999),Y=e(93352),G=e.n(Y),t=e(85893),$=function(){var p=(0,d.useRef)(),N=(0,d.useState)(!1),S=(0,P.Z)(N,2),z=S[0],f=S[1],V=E.Z.useForm(),k=(0,P.Z)(V,1),A=k[0],H=(0,d.useState)([]),T=(0,P.Z)(H,2),R=T[0],Q=T[1],J=(0,d.useState)(1),W=(0,P.Z)(J,2),X=W[0],Ee=W[1],w=(0,d.useState)(10),I=(0,P.Z)(w,2),q=I[0],Pe=I[1],ee=(0,d.useState)(0),L=(0,P.Z)(ee,2),fe=L[0],Me=L[1],te=(0,d.useState)(""),U=(0,P.Z)(te,2),v=U[0],j=U[1],ae=[{title:"\u9875\u9762\u540D\u79F0",dataIndex:"pageName",ellipsis:!0},{title:"\u9875\u9762\u8DEF\u5F84",dataIndex:"pageRoute",ellipsis:!0},{title:"\u6240\u5C5E\u95E8\u5E97",dataIndex:"storeId",ellipsis:!0},{title:"\u64CD\u4F5C",valueType:"option",key:"option",render:function(i,r){return[(0,t.jsx)("a",{onClick:function(){A.setFieldsValue(r),f(!0)},children:"\u7F16\u8F91"}),(0,t.jsx)(y.Z,{title:"\u786E\u5B9A\u8981\u5220\u9664\u6B64\u9875\u9762\u5417\uFF1F",onConfirm:function(){return se(r)},okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",children:(0,t.jsx)("a",{href:"#",children:"\u5220\u9664"})})]}}],ne=function(){f(!0),A.resetFields()},re=function(){var a=(0,g.Z)((0,m.Z)().mark(function i(r){var _,s;return(0,m.Z)().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:if(!r.id){o.next=7;break}return o.next=3,h.Z.MiniPageUpdate(r);case 3:_=o.sent,_.statusCode===200?(c.default.success("\u4FEE\u6539\u6210\u529F"),f(!1),p.current.reload()):c.default.error(_.errors),o.next=11;break;case 7:return o.next=9,h.Z.MiniPageAdd(r);case 9:s=o.sent,s.statusCode===200?(c.default.success("\u6DFB\u52A0\u6210\u529F"),f(!1),p.current.reload()):c.default.error(s.errors);case 11:case"end":return o.stop()}},i)}));return function(r){return a.apply(this,arguments)}}(),se=function(){var a=(0,g.Z)((0,m.Z)().mark(function i(r){var _;return(0,m.Z)().wrap(function(M){for(;;)switch(M.prev=M.next){case 0:return M.next=2,h.Z.MiniPageDelete(r.id);case 2:_=M.sent,_.statusCode===200?(c.default.success("\u5220\u9664\u6210\u529F"),p.current.reload()):c.default.error(_.errors);case 4:case"end":return M.stop()}},i)}));return function(r){return a.apply(this,arguments)}}(),ie=function(){var a=(0,g.Z)((0,m.Z)().mark(function i(){var r;return(0,m.Z)().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,h.Z.GetAllStore();case 2:r=s.sent,r.isSuccess?(Q(r.data),j(r.data[0].id)):c.default.error(r.msg||"\u83B7\u53D6\u5E97\u94FA\u5217\u8868\u5931\u8D25");case 4:case"end":return s.stop()}},i)}));return function(){return a.apply(this,arguments)}}();return(0,d.useEffect)(function(){ie()},[]),(0,d.useEffect)(function(){p.current.reload()},[v]),(0,t.jsxs)(x.ZP,{children:[(0,t.jsx)(K.Z,{style:{marginBottom:"10px"},children:(0,t.jsxs)("div",{className:G().table_search_item,children:[(0,t.jsx)("div",{children:"\u5F53\u524D\u95E8\u5E97\uFF1A"}),(0,t.jsx)(Z.Z,{style:{width:300},value:v,onChange:function(i){j(i)},children:R.map(function(a){return(0,t.jsx)(Option,{value:a.id,children:a.store_Name},a.id)})})]})}),(0,t.jsx)(F.ZP,{columns:ae,actionRef:p,cardBordered:!0,editable:{type:"multiple"},request:(0,g.Z)((0,m.Z)().mark(function a(){var i,r;return(0,m.Z)().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:if(v){s.next=2;break}return s.abrupt("return");case 2:return i={current:X,pageSize:q,storeId:v},s.next=5,h.Z.MiniPageList(i);case 5:return r=s.sent,s.abrupt("return",{data:r.data.items,success:!0,total:r.data.totalCount});case 7:case"end":return s.stop()}},a)})),rowKey:"id",search:!1,pagination:{pageSize:5,onChange:function(i){return console.log(i)}},dateFormatter:"string",headerTitle:"\u9875\u9762\u7BA1\u7406",toolBarRender:function(){return[(0,t.jsx)(B.Z,{icon:(0,t.jsx)(b.Z,{}),type:"primary",onClick:ne,children:"\u65B0\u5EFA"},"button")]}}),(0,t.jsx)(u.Z,{title:"\u7F16\u8F91\u9875\u9762",footer:!1,visible:z,onOk:function(){return f(!1)},onCancel:function(){return f(!1)},children:(0,t.jsxs)(E.Z,{name:"basic",form:A,onFinish:re,children:[(0,t.jsx)(E.Z.Item,{name:"id",hidden:!0,children:(0,t.jsx)(n.Z,{})}),(0,t.jsx)(E.Z.Item,{label:"\u9875\u9762\u540D\u79F0",name:"pageName",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u9875\u9762\u540D\u79F0\uFF01"}],children:(0,t.jsx)(n.Z,{})}),(0,t.jsx)(E.Z.Item,{label:"\u9875\u9762\u8DEF\u5F84",name:"pageRoute",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u9875\u9762\u8DEF\u5F84\uFF01"}],children:(0,t.jsx)(n.Z,{})}),(0,t.jsx)(E.Z.Item,{label:"\u6240\u5C5E\u95E8\u5E97",name:"storeId",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u95E8\u5E97\uFF01"}],children:(0,t.jsx)(Z.Z,{allowClear:!0,placeholder:"\u8BF7\u9009\u62E9\u95E8\u5E97",style:{width:"100%"},children:R.map(function(a){return(0,t.jsx)(Option,{value:a.id,children:a.store_Name},a.id)})})}),(0,t.jsx)(E.Z.Item,{children:(0,t.jsx)(B.Z,{type:"primary",htmlType:"submit",children:"\u786E\u5B9A"})})]})})]})};D.default=$},73999:function(C,D,e){"use strict";var O=e(11849),u=e(48971);D.Z={GetAllStore:function(){return(0,u.WY)("/kitchen/api/StoreHelper/GetAllStore",{method:"GET"})},GetCosRequestURL:function(n){return(0,u.WY)("/kitchen/api/systemconfig/GetCosRequestSignURL",{method:"POST",data:n})},AddMinimaterial:function(n){return(0,u.WY)("/kitchen/api/minimaterial/add",{method:"POST",data:n})},UpdateMiniMaterial:function(n){return(0,u.WY)("/kitchen/api/minimaterial/update",{method:"POST",data:n})},MinimaterialListByStore:function(n){return(0,u.WY)("/kitchen/api/minimaterial/store",{method:"POST",data:n})},DeleteMiniMaterial:function(n){return(0,u.WY)("/kitchen/api/minimaterial/del",{method:"POST",data:{id:n}})},MiniPageAdd:function(n){return(0,u.WY)("/kitchen/api/minipage/add",{method:"POST",data:(0,O.Z)({},n)})},MiniPageDelete:function(n){return(0,u.WY)("/kitchen/api/minipage/del",{method:"POST",data:{id:n}})},MiniPageUpdate:function(n){return(0,u.WY)("/kitchen/api/minipage/update",{method:"POST",data:(0,O.Z)({},n)})},MiniPageList:function(n){return(0,u.WY)("/kitchen/api/minipage/page",{method:"POST",data:(0,O.Z)({},n)})}}}}]); +(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[9076],{93352:function(C){C.exports={table_search_item:"table_search_item___1QRWt",edit_image_item:"edit_image_item___3Iyih",edit_image_prev:"edit_image_prev___2n7ta"}},18319:function(C,D,e){"use strict";e.r(D);var O=e(71194),_=e(50146),l=e(47673),n=e(4107),_e=e(57663),B=e(71577),ue=e(58024),K=e(91894),le=e(43358),Z=e(34041),m=e(39428),oe=e(34792),c=e(48086),g=e(3182),de=e(62350),y=e(24565),me=e(9715),E=e(55843),P=e(2824),F=e(16894),x=e(78009),b=e(49101),o=e(67294),h=e(73999),Y=e(93352),G=e.n(Y),t=e(85893),$=function(){var p=(0,o.useRef)(),k=(0,o.useState)(!1),S=(0,P.Z)(k,2),N=S[0],f=S[1],z=E.Z.useForm(),V=(0,P.Z)(z,1),A=V[0],H=(0,o.useState)([]),T=(0,P.Z)(H,2),R=T[0],Q=T[1],J=(0,o.useState)(1),W=(0,P.Z)(J,2),X=W[0],Ee=W[1],w=(0,o.useState)(10),I=(0,P.Z)(w,2),q=I[0],Pe=I[1],ee=(0,o.useState)(0),L=(0,P.Z)(ee,2),fe=L[0],Me=L[1],te=(0,o.useState)(""),U=(0,P.Z)(te,2),v=U[0],j=U[1],ae=[{title:"\u9875\u9762\u540D\u79F0",dataIndex:"pageName",ellipsis:!0},{title:"\u9875\u9762\u8DEF\u5F84",dataIndex:"pageRoute",ellipsis:!0},{title:"\u6240\u5C5E\u95E8\u5E97",dataIndex:"storeId",ellipsis:!0},{title:"\u64CD\u4F5C",valueType:"option",key:"option",render:function(i,s){return[(0,t.jsx)("a",{onClick:function(){A.setFieldsValue(s),f(!0)},children:"\u7F16\u8F91"}),(0,t.jsx)(y.Z,{title:"\u786E\u5B9A\u8981\u5220\u9664\u6B64\u9875\u9762\u5417\uFF1F",onConfirm:function(){return re(s)},okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",children:(0,t.jsx)("a",{href:"#",children:"\u5220\u9664"})})]}}],ne=function(){f(!0),A.resetFields()},se=function(){var a=(0,g.Z)((0,m.Z)().mark(function i(s){var u,r;return(0,m.Z)().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:if(!s.id){d.next=7;break}return d.next=3,h.Z.MiniPageUpdate(s);case 3:u=d.sent,u.statusCode===200?(c.default.success("\u4FEE\u6539\u6210\u529F"),f(!1),p.current.reload()):c.default.error(u.errors),d.next=11;break;case 7:return d.next=9,h.Z.MiniPageAdd(s);case 9:r=d.sent,r.statusCode===200?(c.default.success("\u6DFB\u52A0\u6210\u529F"),f(!1),p.current.reload()):c.default.error(r.errors);case 11:case"end":return d.stop()}},i)}));return function(s){return a.apply(this,arguments)}}(),re=function(){var a=(0,g.Z)((0,m.Z)().mark(function i(s){var u;return(0,m.Z)().wrap(function(M){for(;;)switch(M.prev=M.next){case 0:return M.next=2,h.Z.MiniPageDelete(s.id);case 2:u=M.sent,u.statusCode===200?(c.default.success("\u5220\u9664\u6210\u529F"),p.current.reload()):c.default.error(u.errors);case 4:case"end":return M.stop()}},i)}));return function(s){return a.apply(this,arguments)}}(),ie=function(){var a=(0,g.Z)((0,m.Z)().mark(function i(){var s;return(0,m.Z)().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,h.Z.GetAllStore();case 2:s=r.sent,s.isSuccess?(Q(s.data),j(s.data[0].id)):c.default.error(s.msg||"\u83B7\u53D6\u5E97\u94FA\u5217\u8868\u5931\u8D25");case 4:case"end":return r.stop()}},i)}));return function(){return a.apply(this,arguments)}}();return(0,o.useEffect)(function(){ie()},[]),(0,o.useEffect)(function(){p.current.reload()},[v]),(0,t.jsxs)(x.ZP,{children:[(0,t.jsx)(K.Z,{style:{marginBottom:"10px"},children:(0,t.jsxs)("div",{className:G().table_search_item,children:[(0,t.jsx)("div",{children:"\u5F53\u524D\u95E8\u5E97\uFF1A"}),(0,t.jsx)(Z.Z,{style:{width:300},value:v,onChange:function(i){j(i)},children:R.map(function(a){return(0,t.jsx)(Option,{value:a.id,children:a.store_Name},a.id)})})]})}),(0,t.jsx)(F.ZP,{columns:ae,actionRef:p,cardBordered:!0,editable:{type:"multiple"},request:(0,g.Z)((0,m.Z)().mark(function a(){var i,s;return(0,m.Z)().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(v){r.next=2;break}return r.abrupt("return");case 2:return i={current:X,pageSize:q,storeId:v},r.next=5,h.Z.MiniPageList(i);case 5:return s=r.sent,r.abrupt("return",{data:s.data.items,success:!0,total:s.data.totalCount});case 7:case"end":return r.stop()}},a)})),rowKey:"id",search:!1,pagination:{pageSize:5,onChange:function(i){return console.log(i)}},dateFormatter:"string",headerTitle:"\u9875\u9762\u7BA1\u7406",toolBarRender:function(){return[(0,t.jsx)(B.Z,{icon:(0,t.jsx)(b.Z,{}),type:"primary",onClick:ne,children:"\u65B0\u5EFA"},"button")]}}),(0,t.jsx)(_.Z,{title:"\u7F16\u8F91\u9875\u9762",footer:!1,visible:N,onOk:function(){return f(!1)},onCancel:function(){return f(!1)},children:(0,t.jsxs)(E.Z,{name:"basic",form:A,onFinish:se,children:[(0,t.jsx)(E.Z.Item,{name:"id",hidden:!0,children:(0,t.jsx)(n.Z,{})}),(0,t.jsx)(E.Z.Item,{label:"\u9875\u9762\u540D\u79F0",name:"pageName",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u9875\u9762\u540D\u79F0\uFF01"}],children:(0,t.jsx)(n.Z,{})}),(0,t.jsx)(E.Z.Item,{label:"\u9875\u9762\u8DEF\u5F84",name:"pageRoute",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u9875\u9762\u8DEF\u5F84\uFF01"}],children:(0,t.jsx)(n.Z,{})}),(0,t.jsx)(E.Z.Item,{label:"\u6240\u5C5E\u95E8\u5E97",name:"storeId",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u95E8\u5E97\uFF01"}],children:(0,t.jsx)(Z.Z,{allowClear:!0,placeholder:"\u8BF7\u9009\u62E9\u95E8\u5E97",style:{width:"100%"},children:R.map(function(a){return(0,t.jsx)(Option,{value:a.id,children:a.store_Name},a.id)})})}),(0,t.jsx)(E.Z.Item,{children:(0,t.jsx)(B.Z,{type:"primary",htmlType:"submit",children:"\u786E\u5B9A"})})]})})]})};D.default=$},73999:function(C,D,e){"use strict";var O=e(11849),_=e(48971);D.Z={GetAllStore:function(){return(0,_.WY)("/kitchen/api/StoreHelper/GetAllStore",{method:"GET"})},GetCosRequestURL:function(n){return(0,_.WY)("/kitchen/api/systemconfig/GetCosRequestSignURL",{method:"POST",data:n})},AddMinimaterial:function(n){return(0,_.WY)("/kitchen/api/minimaterial/add",{method:"POST",data:n})},UpdateMiniMaterial:function(n){return(0,_.WY)("/kitchen/api/minimaterial/update",{method:"POST",data:n})},MinimaterialListByStore:function(n){return(0,_.WY)("/kitchen/api/minimaterial/store",{method:"POST",data:n})},DeleteMiniMaterial:function(n){return(0,_.WY)("/kitchen/api/minimaterial/del",{method:"POST",data:{id:n}})},MiniPageAdd:function(n){return(0,_.WY)("/kitchen/api/minipage/add",{method:"POST",data:(0,O.Z)({},n)})},MiniPageDelete:function(n){return(0,_.WY)("/kitchen/api/minipage/del",{method:"POST",data:{id:n}})},MiniPageUpdate:function(n){return(0,_.WY)("/kitchen/api/minipage/update",{method:"POST",data:(0,O.Z)({},n)})},MiniPageList:function(n){return(0,_.WY)("/kitchen/api/minipage/page",{method:"POST",data:(0,O.Z)({},n)})}}}}]); diff --git a/dist/p__bom__bomtype.49cebc6c.async.js b/dist/p__bom__bomtype.49cebc6c.async.js new file mode 100644 index 0000000..a767615 --- /dev/null +++ b/dist/p__bom__bomtype.49cebc6c.async.js @@ -0,0 +1 @@ +(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[106,1322],{50042:function(le,T,r){"use strict";r.r(T),r.d(T,{default:function(){return q}});var se=r(57663),E=r(71577),ie=r(62350),V=r(24565),j=r(2824),u=r(39428),de=r(34792),m=r(48086),h=r(3182),k=r(49101),Z=r(67294),W=r(78009),Y=r(16894),ce=r(71194),G=r(50146),oe=r(9715),y=r(55843),fe=r(47673),P=r(4107),he=r(43358),S=r(34041),n=r(85893),U=function(e){var s,a,t,f=S.Z.Option,I=S.Z.OptGroup;return(0,n.jsx)(G.Z,{title:e!=null&&(s=e.values)!==null&&s!==void 0&&s.id?"\u7F16\u8F91":"\u65B0\u5EFA",width:640,visible:e==null?void 0:e.createModalVisible,bodyStyle:{padding:"32px 40px 48px"},footer:null,onCancel:function(){e==null||e.onCancel()},destroyOnClose:!0,maskClosable:!1,children:(0,n.jsxs)(y.Z,{layout:"vertical",preserve:!1,initialValues:e==null?void 0:e.values,onFinish:e==null?void 0:e.onFinish,children:[(0,n.jsx)(y.Z.Item,{name:"id",hidden:!0,children:(0,n.jsx)(P.Z,{})}),(0,n.jsx)(y.Z.Item,{name:"name",label:"\u914D\u65B9\u7C7B\u578B\u540D\u79F0",rules:[{required:!0,max:64,whitespace:!0}],children:(0,n.jsx)(P.Z,{placeholder:"\u8BF7\u8F93\u5165\u914D\u65B9\u7C7B\u578B\u540D\u79F0"})}),(0,n.jsx)(y.Z.Item,{name:"pertain",label:"\u5F52\u5C5E",defaultValue:e==null||(a=e.values)===null||a===void 0?void 0:a.pertain,rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u7C7B\u578B\u5F52\u5C5E"}],children:(0,n.jsxs)(S.Z,{placeholder:"\u8BF7\u9009\u62E9\u7C7B\u578B\u5F52\u5C5E",children:[(0,n.jsx)(f,{value:"1",children:"\u65E0"}),(0,n.jsx)(f,{value:"2",children:"TMC "})]})}),(0,n.jsx)(y.Z.Item,{name:"status",label:"\u72B6\u6001",defaultValue:e==null||(t=e.values)===null||t===void 0?void 0:t.status,rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u72B6\u6001"}],children:(0,n.jsxs)(S.Z,{placeholder:"\u8BF7\u9009\u62E9\u72B6\u6001",children:[(0,n.jsx)(f,{value:"0",children:"\u6B63\u5E38"}),(0,n.jsx)(f,{value:"1",children:"\u505C\u7528"})]})}),(0,n.jsx)(y.Z.Item,{children:(0,n.jsx)(E.Z,{type:"primary",htmlType:"submit",children:"\u4FDD\u5B58"})})]})})},J=U,F=r(48971);function K(l){return w.apply(this,arguments)}function w(){return w=(0,h.Z)((0,u.Z)().mark(function l(e){return(0,u.Z)().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,F.WY)("/kitchen/api/bom/getbomtypepage",{method:"Post",data:e}));case 1:case"end":return a.stop()}},l)})),w.apply(this,arguments)}function N(l){return R.apply(this,arguments)}function R(){return R=(0,h.Z)((0,u.Z)().mark(function l(e){return(0,u.Z)().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,F.WY)("/kitchen/api/bom/deletebomtype",{method:"Post",data:e}));case 1:case"end":return a.stop()}},l)})),R.apply(this,arguments)}function z(l){return $.apply(this,arguments)}function $(){return $=(0,h.Z)((0,u.Z)().mark(function l(e){return(0,u.Z)().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,F.WY)("/kitchen/api/bom/updatebomtype",{method:"Post",data:e}));case 1:case"end":return a.stop()}},l)})),$.apply(this,arguments)}function H(l){return x.apply(this,arguments)}function x(){return x=(0,h.Z)((0,u.Z)().mark(function l(e){return(0,u.Z)().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,F.WY)("/kitchen/api/bom/addbomtype",{method:"Post",data:e}));case 1:case"end":return a.stop()}},l)})),x.apply(this,arguments)}var L=function(){var l=(0,h.Z)((0,u.Z)().mark(function e(s){return(0,u.Z)().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,H(JSON.stringify(s)).then(function(f){f.data?m.default.success("\u6DFB\u52A0\u6210\u529F"):m.default.error("\u6DFB\u52A0\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01")});case 3:return t.abrupt("return",!0);case 6:return t.prev=6,t.t0=t.catch(0),m.default.error("\u6DFB\u52A0\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),t.abrupt("return",!1);case 10:case"end":return t.stop()}},e,null,[[0,6]])}));return function(s){return l.apply(this,arguments)}}(),Q=function(){var l=(0,h.Z)((0,u.Z)().mark(function e(s){return(0,u.Z)().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,N(s).then(function(f){f.data?m.default.success("\u5220\u9664\u6210\u529F\uFF0C\u5373\u5C06\u5237\u65B0"):m.default.error("\u5220\u9664\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5")}),t.abrupt("return",!0);case 5:t.prev=5,t.t0=t.catch(0),m.default.error("\u5220\u9664\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5");case 8:case"end":return t.stop()}},e,null,[[0,5]])}));return function(s){return l.apply(this,arguments)}}(),A=function(){var l=(0,h.Z)((0,u.Z)().mark(function e(s){return(0,u.Z)().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,z(s).then(function(f){f.data?m.default.success("\u4FEE\u6539\u6210\u529F"):m.default.error("\u4FEE\u6539\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01")}),t.abrupt("return",!0);case 5:return t.prev=5,t.t0=t.catch(0),m.default.error("\u4FEE\u6539\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),t.abrupt("return",!1);case 9:case"end":return t.stop()}},e,null,[[0,5]])}));return function(s){return l.apply(this,arguments)}}(),X=function(){var e=(0,Z.useState)(!1),s=(0,j.Z)(e,2),a=s[0],t=s[1],f=(0,Z.useState)(!1),I=(0,j.Z)(f,2),_=I[0],ee=I[1],g=(0,Z.useRef)(),te=(0,Z.useState)(),D=(0,j.Z)(te,2),ae=D[0],b=D[1],ne=(0,Z.useState)([]),M=(0,j.Z)(ne,2),ve=M[0],re=M[1],ue=[{title:"\u4E3B\u952E",dataIndex:"id",tip:"\u89C4\u5219\u540D\u79F0\u662F\u552F\u4E00\u7684 key",hideInSearch:!0,hideInTable:!0,render:function(v,d){return(0,n.jsx)("a",{onClick:function(){b(d),ee(!0)},children:v})}},{title:"\u540D\u79F0",dataIndex:"name",valueType:"textarea",ellipsis:!0,search:!0},{title:"\u5F52\u5C5E",dataIndex:"pertain",search:!0,valueEnum:{1:{text:"\u65E0",status:"Processing"},2:{text:"TMC",status:"Success"}}},{title:"\u72B6\u6001",dataIndex:"status",hideInForm:!0,search:!1,valueEnum:{0:{text:"\u6B63\u5E38",status:"Processing"},1:{text:"\u505C\u7528",status:"Success"}}},{title:"\u521B\u5EFA\u65F6\u95F4",dataIndex:"createAt",valueType:"date",hideInSearch:!0},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(v,d){return[(0,n.jsx)("a",{onClick:(0,h.Z)((0,u.Z)().mark(function c(){return(0,u.Z)().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return d.status=d.status?0:1,i.next=3,A(d);case 3:case"end":return i.stop()}},c)})),children:d.status==0?"\u505C\u7528":"\u4F7F\u7528"},"state"),(0,n.jsx)("a",{onClick:function(){var o,i;t(!0),b(d),(o=g.current)===null||o===void 0||(i=o.reloadAndRest)===null||i===void 0||i.call(o)},children:"\u66F4\u65B0"},"config"),(0,n.jsx)(V.Z,{type:"primary",title:"\u786E\u8BA4\u5220\u9664\u5417\uFF1F",okText:"\u662F",cancelText:"\u5426",onConfirm:function(){var o;Q([d.id]),(o=g.current)===null||o===void 0||o.reloadAndRest()},onCancel:function(){},children:(0,n.jsx)("a",{href:"#",children:"\u5220\u9664"})},"primary")]}}];return(0,n.jsxs)(W.ZP,{children:[(0,n.jsx)(Y.ZP,{headerTitle:"\u7269\u6599\u5206\u7C7B",actionRef:g,rowKey:"id",search:{labelWidth:120},columns:ue,toolBarRender:function(){return[(0,n.jsxs)(E.Z,{type:"primary",onClick:function(){t(!0),b({})},children:[(0,n.jsx)(k.Z,{})," \u65B0\u5EFA"]},"primary")]},request:function(){var p=(0,h.Z)((0,u.Z)().mark(function v(d){var c,o;return(0,u.Z)().wrap(function(C){for(;;)switch(C.prev=C.next){case 0:return console.log("fsa","gfdsgfd"),c=[],o=0,C.next=5,K(d).then(function(O){c=O.data.data,c.forEach(function(B){B.pertain=B.pertain.toString(),B.status=B.status.toString()}),o=O.data.total});case 5:return C.abrupt("return",{data:c,success:!0,total:o});case 6:case"end":return C.stop()}},v)}));return function(v){return p.apply(this,arguments)}}(),rowSelection:{onChange:function(v,d){re(d)}}}),(0,n.jsx)(J,{onFinish:function(){var p=(0,h.Z)((0,u.Z)().mark(function v(d){var c;return(0,u.Z)().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:if(c=!1,!d.id){i.next=7;break}return i.next=4,A(d);case 4:c=i.sent,i.next=10;break;case 7:return i.next=9,L(d);case 9:c=i.sent;case 10:c&&(t(!1),g.current&&g.current.reload());case 11:case"end":return i.stop()}},v)}));return function(v){return p.apply(this,arguments)}}(),onCancel:function(){b(void 0),t(!1)},createModalVisible:a,values:ae||{}})]})},q=X}}]); diff --git a/dist/p__bom__bomtype.51cd5d02.async.js b/dist/p__bom__bomtype.51cd5d02.async.js deleted file mode 100644 index cc1591e..0000000 --- a/dist/p__bom__bomtype.51cd5d02.async.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[106,1322],{50042:function(le,T,r){"use strict";r.r(T),r.d(T,{default:function(){return q}});var se=r(57663),E=r(71577),ie=r(62350),O=r(24565),j=r(2824),s=r(39428),de=r(34792),v=r(48086),m=r(3182),V=r(49101),Z=r(67294),W=r(78009),k=r(16894),oe=r(71194),Y=r(50146),ce=r(9715),y=r(55843),fe=r(47673),P=r(4107),he=r(43358),S=r(34041),n=r(85893),G=function(e){var l,a,t,c=S.Z.Option,I=S.Z.OptGroup;return(0,n.jsx)(Y.Z,{title:e!=null&&(l=e.values)!==null&&l!==void 0&&l.id?"\u7F16\u8F91":"\u65B0\u5EFA",width:640,visible:e==null?void 0:e.createModalVisible,bodyStyle:{padding:"32px 40px 48px"},footer:null,onCancel:function(){e==null||e.onCancel()},destroyOnClose:!0,maskClosable:!1,children:(0,n.jsxs)(y.Z,{layout:"vertical",preserve:!1,initialValues:e==null?void 0:e.values,onFinish:e==null?void 0:e.onFinish,children:[(0,n.jsx)(y.Z.Item,{name:"id",hidden:!0,children:(0,n.jsx)(P.Z,{})}),(0,n.jsx)(y.Z.Item,{name:"name",label:"\u914D\u65B9\u7C7B\u578B\u540D\u79F0",rules:[{required:!0,max:64,whitespace:!0}],children:(0,n.jsx)(P.Z,{placeholder:"\u8BF7\u8F93\u5165\u914D\u65B9\u7C7B\u578B\u540D\u79F0"})}),(0,n.jsx)(y.Z.Item,{name:"pertain",label:"\u5F52\u5C5E",defaultValue:e==null||(a=e.values)===null||a===void 0?void 0:a.pertain,rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u7C7B\u578B\u5F52\u5C5E"}],children:(0,n.jsxs)(S.Z,{placeholder:"\u8BF7\u9009\u62E9\u7C7B\u578B\u5F52\u5C5E",children:[(0,n.jsx)(c,{value:"1",children:"\u65E0"}),(0,n.jsx)(c,{value:"2",children:"TMC "})]})}),(0,n.jsx)(y.Z.Item,{name:"status",label:"\u72B6\u6001",defaultValue:e==null||(t=e.values)===null||t===void 0?void 0:t.status,rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u72B6\u6001"}],children:(0,n.jsxs)(S.Z,{placeholder:"\u8BF7\u9009\u62E9\u72B6\u6001",children:[(0,n.jsx)(c,{value:"0",children:"\u6B63\u5E38"}),(0,n.jsx)(c,{value:"1",children:"\u505C\u7528"})]})}),(0,n.jsx)(y.Z.Item,{children:(0,n.jsx)(E.Z,{type:"primary",htmlType:"submit",children:"\u4FDD\u5B58"})})]})})},U=G,F=r(48971);function J(u){return R.apply(this,arguments)}function R(){return R=(0,m.Z)((0,s.Z)().mark(function u(e){return(0,s.Z)().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,F.WY)("/kitchen/api/bom/getbomtypepage",{method:"Post",data:e}));case 1:case"end":return a.stop()}},u)})),R.apply(this,arguments)}function K(u){return x.apply(this,arguments)}function x(){return x=(0,m.Z)((0,s.Z)().mark(function u(e){return(0,s.Z)().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,F.WY)("/kitchen/api/bom/deletebomtype",{method:"Post",data:e}));case 1:case"end":return a.stop()}},u)})),x.apply(this,arguments)}function N(u){return $.apply(this,arguments)}function $(){return $=(0,m.Z)((0,s.Z)().mark(function u(e){return(0,s.Z)().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,F.WY)("/kitchen/api/bom/updatebomtype",{method:"Post",data:e}));case 1:case"end":return a.stop()}},u)})),$.apply(this,arguments)}function z(u){return w.apply(this,arguments)}function w(){return w=(0,m.Z)((0,s.Z)().mark(function u(e){return(0,s.Z)().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,F.WY)("/kitchen/api/bom/addbomtype",{method:"Post",data:e}));case 1:case"end":return a.stop()}},u)})),w.apply(this,arguments)}var H=function(){var u=(0,m.Z)((0,s.Z)().mark(function e(l){return(0,s.Z)().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,z(JSON.stringify(l)).then(function(c){c.data?v.default.success("\u6DFB\u52A0\u6210\u529F"):v.default.error("\u6DFB\u52A0\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01")});case 3:return t.abrupt("return",!0);case 6:return t.prev=6,t.t0=t.catch(0),v.default.error("\u6DFB\u52A0\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),t.abrupt("return",!1);case 10:case"end":return t.stop()}},e,null,[[0,6]])}));return function(l){return u.apply(this,arguments)}}(),L=function(){var u=(0,m.Z)((0,s.Z)().mark(function e(l){return(0,s.Z)().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,K(l).then(function(c){c.data?v.default.success("\u5220\u9664\u6210\u529F\uFF0C\u5373\u5C06\u5237\u65B0"):v.default.error("\u5220\u9664\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5")}),t.abrupt("return",!0);case 5:t.prev=5,t.t0=t.catch(0),v.default.error("\u5220\u9664\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5");case 8:case"end":return t.stop()}},e,null,[[0,5]])}));return function(l){return u.apply(this,arguments)}}(),Q=function(){var u=(0,m.Z)((0,s.Z)().mark(function e(l){return(0,s.Z)().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,N(l).then(function(c){c.data?v.default.success("\u4FEE\u6539\u6210\u529F"):v.default.error("\u4FEE\u6539\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01")}),t.abrupt("return",!0);case 5:return t.prev=5,t.t0=t.catch(0),v.default.error("\u4FEE\u6539\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),t.abrupt("return",!1);case 9:case"end":return t.stop()}},e,null,[[0,5]])}));return function(l){return u.apply(this,arguments)}}(),X=function(){var e=(0,Z.useState)(!1),l=(0,j.Z)(e,2),a=l[0],t=l[1],c=(0,Z.useState)(!1),I=(0,j.Z)(c,2),_=I[0],ee=I[1],g=(0,Z.useRef)(),te=(0,Z.useState)(),A=(0,j.Z)(te,2),ae=A[0],b=A[1],re=(0,Z.useState)([]),D=(0,j.Z)(re,2),ve=D[0],ne=D[1],ue=[{title:"\u4E3B\u952E",dataIndex:"id",tip:"\u89C4\u5219\u540D\u79F0\u662F\u552F\u4E00\u7684 key",hideInSearch:!0,hideInTable:!0,render:function(h,f){return(0,n.jsx)("a",{onClick:function(){b(f),ee(!0)},children:h})}},{title:"\u540D\u79F0",dataIndex:"name",valueType:"textarea",ellipsis:!0,search:!1},{title:"\u5F52\u5C5E",dataIndex:"pertain",search:!1,valueEnum:{1:{text:"\u65E0",status:"Processing"},2:{text:"TMC",status:"Success"}}},{title:"\u72B6\u6001",dataIndex:"status",hideInForm:!0,search:!1,valueEnum:{0:{text:"\u6B63\u5E38",status:"Processing"},1:{text:"\u505C\u7528",status:"Success"}}},{title:"\u521B\u5EFA\u65F6\u95F4",dataIndex:"createAt",valueType:"date",hideInSearch:!0},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(h,f){return[(0,n.jsx)("a",{onClick:function(){var o,i;t(!0),b(f),(o=g.current)===null||o===void 0||(i=o.reloadAndRest)===null||i===void 0||i.call(o)},children:"\u66F4\u65B0"},"config"),(0,n.jsx)(O.Z,{type:"primary",title:"\u786E\u8BA4\u5220\u9664\u5417\uFF1F",okText:"\u662F",cancelText:"\u5426",onConfirm:function(){var o;L([f.id]),(o=g.current)===null||o===void 0||o.reloadAndRest()},onCancel:function(){},children:(0,n.jsx)("a",{href:"#",children:"\u5220\u9664"})},"primary")]}}];return(0,n.jsxs)(W.ZP,{children:[(0,n.jsx)(k.ZP,{headerTitle:"\u7269\u6599\u5206\u7C7B",actionRef:g,rowKey:"id",search:{labelWidth:120},columns:ue,toolBarRender:function(){return[(0,n.jsxs)(E.Z,{type:"primary",onClick:function(){t(!0),b({})},children:[(0,n.jsx)(V.Z,{})," \u65B0\u5EFA"]},"primary")]},request:function(){var p=(0,m.Z)((0,s.Z)().mark(function h(f){var d,o;return(0,s.Z)().wrap(function(C){for(;;)switch(C.prev=C.next){case 0:return console.log("fsa","gfdsgfd"),d=[],o=0,C.next=5,J(f).then(function(M){d=M.data.data,d.forEach(function(B){B.pertain=B.pertain.toString(),B.status=B.status.toString()}),o=M.data.total});case 5:return C.abrupt("return",{data:d,success:!0,total:o});case 6:case"end":return C.stop()}},h)}));return function(h){return p.apply(this,arguments)}}(),rowSelection:{onChange:function(h,f){ne(f)}}}),(0,n.jsx)(U,{onFinish:function(){var p=(0,m.Z)((0,s.Z)().mark(function h(f){var d;return(0,s.Z)().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:if(d=!1,!f.id){i.next=7;break}return i.next=4,Q(f);case 4:d=i.sent,i.next=10;break;case 7:return i.next=9,H(f);case 9:d=i.sent;case 10:d&&(t(!1),g.current&&g.current.reload());case 11:case"end":return i.stop()}},h)}));return function(h){return p.apply(this,arguments)}}(),onCancel:function(){b(void 0),t(!1)},createModalVisible:a,values:ae||{}})]})},q=X}}]); diff --git a/dist/p__bom__manage.e7349553.async.js b/dist/p__bom__manage.069e90fa.async.js similarity index 99% rename from dist/p__bom__manage.e7349553.async.js rename to dist/p__bom__manage.069e90fa.async.js index 339c0e5..185e269 100644 --- a/dist/p__bom__manage.e7349553.async.js +++ b/dist/p__bom__manage.069e90fa.async.js @@ -1 +1 @@ -(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[1633,1322],{47511:function(He,pe,o){"use strict";o.r(pe),o.d(pe,{default:function(){return Je}});var C=o(39428),$=o(3182),Xe=o(57663),J=o(71577),qe=o(49111),Se=o(19650),_e=o(71153),be=o(60331),et=o(34792),n=o(48086),v=o(2824),fe=o(49101),a=o(67294),ye=o(78009),he=o(16894),tt=o(71194),ne=o(50146),nt=o(77883),me=o(85986),at=o(77576),ge=o(12028),rt=o(9715),Z=o(55843),ot=o(47673),ae=o(4107),ut=o(43358),P=o(34041),t=o(85893),Be=function(e){var b,V=P.Z.Option,d=P.Z.OptGroup;return(0,t.jsx)(ne.Z,{title:e.values.id?"\u7F16\u8F91":"\u65B0\u5EFA",width:640,visible:e.createModalVisible,bodyStyle:{padding:"32px 40px 48px"},footer:null,onCancel:function(){e.onCancel()},destroyOnClose:!0,children:(0,t.jsxs)(Z.Z,{layout:"vertical",preserve:!1,initialValues:e.values,onFinish:e.onFinish,children:[(0,t.jsx)(Z.Z.Item,{name:"id",hidden:!0,children:(0,t.jsx)(ae.Z,{})}),(0,t.jsx)(Z.Z.Item,{name:"code",label:"\u914D\u65B9\u7F16\u7801",children:(0,t.jsx)(ae.Z,{placeholder:"\u914D\u65B9\u7F16\u7801"})}),(0,t.jsx)(Z.Z.Item,{name:"name",label:"\u914D\u65B9\u540D\u79F0",children:(0,t.jsx)(ae.Z,{placeholder:"\u914D\u65B9\u540D\u79F0"})}),(0,t.jsx)(Z.Z.Item,{name:"bomTypeList",label:"\u914D\u65B9\u7C7B\u578B",children:(0,t.jsx)(P.Z,{mode:"multiple",allowClear:!0,children:e==null||(b=e.bomtype)===null||b===void 0?void 0:b.map(function(r,u){return(0,t.jsx)(P.Z.Option,{index:r.id,value:r.id,children:r.name},r.id)})})}),(0,t.jsx)(Z.Z.Item,{name:"isMain",label:"\u914D\u65B9\u7C7B\u578B",children:(0,t.jsx)(ge.Z,{checkedChildren:"\u4E3B\u6599",unCheckedChildren:"\u8F85\u6599"})}),(0,t.jsx)(Z.Z.Item,{name:"sort",label:"\u6392\u5E8F",children:(0,t.jsx)(me.Z,{placeholder:"\u6392\u5E8F",min:1})}),(0,t.jsx)(Z.Z.Item,{children:(0,t.jsx)(J.Z,{type:"primary",htmlType:"submit",children:"\u4FDD\u5B58"})})]})})},je=Be,Fe=o(73171),ke=function(e){var b=function(u){var B=JSON.parse(JSON.stringify(e.values));B.push(B[u]),e.onUpdateBom(B)},V=function(u){var B=JSON.parse(JSON.stringify(e.values));B.splice(u,1),e.onUpdateBom(B)},d=function(){e.onFinish(e.values)};return(0,t.jsxs)(ne.Z,{width:540,visible:e.visible,bodyStyle:{padding:"32px 40px 48px"},footer:null,onCancel:function(){e.onCancel()},title:"\u914D\u65B9\u7528\u91CF",children:[(0,t.jsx)("div",{className:"formual-form-card",children:e.values.map(function(r,u){return(0,t.jsxs)("div",{className:"formual-form-list",children:[(0,t.jsxs)("div",{className:"form-list-copy",children:[(0,t.jsx)(J.Z,{onClick:function(){return b(u)},children:"\u590D\u5236\u4E00\u4EFD\u914D\u65B9\u7528\u91CF"}),(0,t.jsx)(J.Z,{style:{marginLeft:"10px"},danger:!0,onClick:function(){return V(u)},children:"\u5220\u9664\u914D\u65B9\u7528\u91CF"})]}),(0,t.jsxs)("div",{className:"form-list-item form-list-total",children:[(0,t.jsx)("span",{className:"form-input-label",children:"\u603B\u91CF"}),(0,t.jsx)(ae.Z,{placeholder:"\u8BF7\u8F93\u5165\u603B\u91CF",value:r.bomWeight,onChange:function(W){var L=JSON.parse(JSON.stringify(e.values));L[u].bomWeight=W.target.value,e.onUpdateBom(L)}})]}),r.bomMaterials.map(function(B,W){return(0,t.jsx)("div",{className:"form-list-detail",children:(0,t.jsxs)("div",{className:"form-detail-card",children:[(0,t.jsxs)("div",{className:"form-list-item formmual-name",children:[(0,t.jsx)("span",{className:"form-input-label",children:"\u540D\u79F0"}),(0,t.jsx)(ae.Z,{placeholder:"\u7269\u6599\u540D\u79F0",value:B.name,onChange:function(T){var Y=JSON.parse(JSON.stringify(e.values));Y[u].bomMaterials[W].name=T.target.value,e.onUpdateBom(Y)}})]}),(0,t.jsxs)("div",{className:"form-list-item formmual-company",children:[(0,t.jsx)("span",{className:"form-input-label",children:"\u6570\u91CF"}),(0,t.jsx)(ae.Z,{placeholder:"\u7269\u6599\u6570\u91CF",value:B.num,onChange:function(T){var Y=JSON.parse(JSON.stringify(e.values));Y[u].bomMaterials[W].num=T.target.value,e.onUpdateBom(Y)}})]}),(0,t.jsx)(J.Z,{onClick:function(){return e.onDeleteMate(B,u)},type:"link",danger:!0,icon:(0,t.jsx)(Fe.Z,{}),style:{marginLeft:"10px"}})]})},B.id)})]},u)})}),(0,t.jsx)(J.Z,{type:"primary",onClick:d,style:{float:"right"},children:"\u4FDD\u5B58"})]})},Ie=ke,F=o(48971),w={add:function(e){return(0,F.WY)("/kitchen/api/bom/add",{method:"Post",data:e})},update:function(e){return(0,F.WY)("/kitchen/api/bom/update",{method:"Post",data:e})},delete:function(e){return(0,F.WY)("/kitchen/api/bom/delete",{method:"Post",data:e})},getpage:function(e){return(0,F.WY)("/kitchen/api/bom/getpage",{method:"Post",data:e})},postStockGoods:function(){return(0,F.WY)("/kitchen/api/frachisee-stock-adjust/product-list",{method:"Get"})},addentry:function(e){return(0,F.WY)("/kitchen/api/bom/addentry",{method:"Post",data:e})},deleteentry:function(e){return(0,F.WY)("/kitchen/api/bom/deleteentry",{method:"Post",data:e})},Enable:function(e){return(0,F.WY)("/kitchen/api/GoodsBom/enable",{method:"Post",data:e})},getentrypage:function(e){return(0,F.WY)("/kitchen/api/bom/getentrypage",{method:"Post",data:e})},getbomtypepage:function(e){return(0,F.WY)("/kitchen/api/bom/getbomtypepage",{method:"Post",data:e})},addBomConsumptionInfo:function(e){return(0,F.WY)("/kitchen/api/bom/addBomConsumptionInfo",{method:"Post",data:e})},getomConsumptionInfo:function(e){return(0,F.WY)("/kitchen/api/bom/getomConsumptionInfo?bomId=".concat(e),{method:"get",data:e})},GetBomTechnologypage:function(e){return(0,F.WY)("/kitchen/api/goodstechnology/getbomtechnologypage",{method:"POST",data:e})},GetGoodstechnologypage:function(e){return(0,F.WY)("/kitchen/api/goodstechnology/getGoodstechnologypage",{method:"Post",data:e})},addBomtechnology:function(e){return(0,F.WY)("/kitchen/api/goodstechnology/addBomtechnology",{method:"Post",data:e})},updatebomtechnology:function(e){return(0,F.WY)("/kitchen/api/goodstechnology/updatebomtechnology",{method:"Post",data:e})},deletebomtechnology:function(e){return(0,F.WY)("/kitchen/api/goodstechnology/deletebomtechnology",{method:"Post",data:e})}},De=function(e){var b=P.Z.Option,V=P.Z.OptGroup;return(0,t.jsx)(ne.Z,{title:e.values.id?"\u7F16\u8F91":"\u65B0\u5EFA",width:640,visible:e.createModalVisible,bodyStyle:{padding:"32px 40px 48px"},footer:null,onCancel:function(){e.onCancel()},destroyOnClose:!0,children:(0,t.jsxs)(Z.Z,{layout:"vertical",preserve:!1,initialValues:e.values,onFinish:e.onFinish,children:[(0,t.jsx)(Z.Z.Item,{name:"id",hidden:!0,children:(0,t.jsx)(ae.Z,{})}),(0,t.jsx)(Z.Z.Item,{name:"itemId",label:"\u539F\u6599\u540D\u79F0",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u539F\u6599\u540D\u79F0"}],children:(0,t.jsx)(P.Z,{disabled:!!e.values.id,placeholder:"\u8BF7\u9009\u62E9\u539F\u6599\u540D\u79F0",children:e.stockGoodsData.map(function(d,r){return(0,t.jsx)(P.Z.Option,{index:r,value:d.id,children:d.name},d.id)})})}),(0,t.jsx)(Z.Z.Item,{name:"price",label:"\u4EF7\u683C",defaultValue:e.values.price,children:(0,t.jsx)(me.Z,{placeholder:"\u4EF7\u683C",min:0})}),(0,t.jsx)(Z.Z.Item,{children:(0,t.jsx)(J.Z,{type:"primary",htmlType:"submit",children:"\u4FDD\u5B58"})})]})})},Ge=De,de={goodsBoms:function(e){return(0,F.WY)("/kitchen/api/GoodsBom/GetBomReplac",{method:"Post",data:e})},updateGoodsBom:function(e){return(0,F.WY)("/kitchen/api/GoodsBom/EditReplac",{method:"PUT",data:e})},addGoodsBom:function(e){return(0,F.WY)("/kitchen/api/GoodsBom/AddReplac",{method:"POST",data:e})},goodList:function(e){return(0,F.WY)("/kitchen/api/goods/goodss",{method:"Post",data:e})},postStockGoods:function(){return(0,F.WY)("/kitchen/api/frachisee-stock-adjust/product-list",{method:"Get"})}},Oe=function(e){var b=(0,a.useState)(!1),V=(0,v.Z)(b,2),d=V[0],r=V[1],u=(0,a.useRef)(),B=(0,a.useState)(),W=(0,v.Z)(B,2),L=W[0],T=W[1],Y=(0,a.useState)([]),K=(0,v.Z)(Y,2),q=K[0],U=K[1],oe=(0,a.useState)([]),Q=(0,v.Z)(oe,2),ve=Q[0],ie=Q[1],ue=(0,a.useState)([]),H=(0,v.Z)(ue,2),_=H[0],z=H[1];(0,a.useEffect)(function(){function i(){de.postStockGoods().then(function(c){var l=c.data;l.forEach(function(y){y.text=y.name,y.stockGoodsId=y.id}),z(l)})}i()},[]);function j(i){try{return de.addGoodsBom({itemId:i.itemId,price:i.price,goodsbomId:e.values.id,replaceId:e.values.batchingId}).then(function(c){c.data?(n.default.success("\u6DFB\u52A0\u6210\u529F"),u.current.reload()):n.default.error("\u6DFB\u52A0\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01")}),!0}catch(c){return n.default.error("\u6DFB\u52A0\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),!1}}function h(i){console.log("\u4F20\u53C2\u6570\u636E",i);try{return de.updateGoodsBom({id:i.id,status:i.status,itemId:i.itemId,price:i.price,goodsbomId:e.values.id,replaceId:e.values.stockGoodsCode}).then(function(c){c.data?n.default.success("\u914D\u7F6E\u6210\u529F"):n.default.error("\u914D\u7F6E\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),u.current.reload()}),!0}catch(c){return n.default.error("\u914D\u7F6E\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),!1}}function p(){if(!q)return!0;try{return de.removeGoodsBom(q.map(function(i){return i.id})).then(function(i){i.data?n.default.success("\u5220\u9664\u6210\u529F\uFF0C\u5373\u5C06\u5237\u65B0"):n.default.error("\u5220\u9664\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5"),u.current.reload()}),!0}catch(i){return n.default.error("\u5220\u9664\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5"),!1}}var S=[{title:"\u4E3B\u952E",dataIndex:"id",hideInTable:!0,hideInSearch:!0,tip:"\u89C4\u5219\u540D\u79F0\u662F\u552F\u4E00\u7684 key",render:function(c,l){return(0,t.jsx)("a",{onClick:function(){T(l),setShowDetail(!0)},children:c})}},{title:"\u539F\u6599\u540D\u79F0",dataIndex:"name",hideInForm:!0,hideInSearch:!0},{title:"\u5546\u54C1\u4EF7\u683C",dataIndex:"price",valueType:"money"},{title:"\u72B6\u6001",dataIndex:"status",hideInForm:!0,valueEnum:{0:{text:"\u6B63\u5E38",status:"Processing"},1:{text:"\u505C\u7528",status:"Error"},2:{text:"\u5220\u9664",status:"Error"}}},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(c,l){return[l.status===0&&(0,t.jsx)("a",{onClick:function(){l.status="1",h(l)},children:"\u505C\u7528"},"link"),(l.status===1||l.status===2)&&(0,t.jsx)("a",{onClick:function(){l.status="0",h(l)},children:"\u542F\u7528"},"warn"),(0,t.jsx)("a",{type:"primary",onClick:function(){T(l),r(!0)},children:"\u66F4\u65B0"},"primary")]}}];return(0,t.jsxs)(ne.Z,{width:1200,bodyStyle:{padding:"32px 40px 48px"},destroyOnClose:!0,title:"\u914D\u65B9\u7269\u6599\u66FF\u6362",visible:e.createModalVisible,footer:!1,onCancel:function(){return e.onCancel()},maskClosable:!1,children:[(0,t.jsx)(he.ZP,{headerTitle:"\u66FF\u6362\u7269\u6599\u5217\u8868",actionRef:u,rowKey:"id",pagination:{defaultPageSize:20},search:!1,toolBarRender:function(){return[(0,t.jsxs)(J.Z,{type:"primary",onClick:function(){return r(!0)},children:[(0,t.jsx)(fe.Z,{})," \u65B0\u589E\u914D\u65B9\u66FF\u6362\u7269\u6599"]},"create")]},request:function(){var i=(0,$.Z)((0,C.Z)().mark(function c(l){var y,re;return(0,C.Z)().wrap(function(X){for(;;)switch(X.prev=X.next){case 0:return y=[],re=0,e.values.id!=null&&(l.goodsbomId=e.values.id,l.replaceId=e.values.stockGoodsCode),X.next=5,de.goodsBoms(l).then(function(le){y=le.data.data,re=le.data.total});case 5:return X.abrupt("return",{data:y,success:!0,total:re});case 6:case"end":return X.stop()}},c)}));return function(c){return i.apply(this,arguments)}}(),columns:S}),(0,t.jsx)(Ge,{stockGoodsData:_,onFinish:function(){var i=(0,$.Z)((0,C.Z)().mark(function c(l){var y;return(0,C.Z)().wrap(function(N){for(;;)switch(N.prev=N.next){case 0:if(y=!1,!l.id){N.next=7;break}return N.next=4,h(l);case 4:y=N.sent,N.next=10;break;case 7:return N.next=9,j(l);case 9:y=N.sent;case 10:y&&(r(!1),T(void 0),u.current&&u.current.reload());case 11:case"end":return N.stop()}},c)}));return function(c){return i.apply(this,arguments)}}(),onCancel:function(){r(!1),T(void 0)},createModalVisible:d,values:L||{}})]})},Te=Oe,Re=function(e){var b=P.Z.Option,V=P.Z.OptGroup;return(0,t.jsx)(ne.Z,{title:"\u6DFB\u52A0\u914D\u65B9\u539F\u6599",width:640,visible:e.createModalVisible,bodyStyle:{padding:"32px 40px 48px"},footer:null,onCancel:function(){e.onCancel()},destroyOnClose:!0,children:(0,t.jsxs)(Z.Z,{layout:"vertical",preserve:!1,initialValues:e.values,onFinish:e.onFinish,children:[(0,t.jsx)(Z.Z.Item,{name:"BatchingId",label:"\u539F\u6599\u540D\u79F0",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u539F\u6599\u540D\u79F0"}],children:(0,t.jsx)(P.Z,{placeholder:"\u8BF7\u9009\u62E9\u539F\u6599\u540D\u79F0",showSearch:!0,optionFilterProp:"children",filterOption:function(r,u){return u.children.toLowerCase().indexOf(r.toLowerCase())>=0},children:e.stockGoodsData.map(function(d,r){return(0,t.jsx)(b,{index:r,value:d.id,children:d.name},d.id)})})}),(0,t.jsx)(Z.Z.Item,{name:"bomQty",label:"\u914D\u65B9\u7528\u91CF",children:(0,t.jsx)(me.Z,{placeholder:"\u914D\u65B9\u7528\u91CF",min:0})}),(0,t.jsx)(Z.Z.Item,{name:"isReplace",label:"\u662F\u5426\u53EF\u4EE5\u66FF\u6362",children:(0,t.jsx)(ge.Z,{checkedChildren:"\u5426",unCheckedChildren:"\u662F"})}),(0,t.jsx)(Z.Z.Item,{children:(0,t.jsx)(J.Z,{type:"primary",htmlType:"submit",children:"\u4FDD\u5B58"})})]})})},Ee=Re,we=function(e){var b=(0,a.useRef)(),V=(0,a.useState)(!1),d=(0,v.Z)(V,2),r=d[0],u=d[1],B=(0,a.useState)(!1),W=(0,v.Z)(B,2),L=W[0],T=W[1],Y=(0,a.useState)(),K=(0,v.Z)(Y,2),q=K[0],U=K[1],oe=(0,a.useState)([]),Q=(0,v.Z)(oe,2),ve=Q[0],ie=Q[1];(0,a.useEffect)(function(){function j(){w.postStockGoods().then(function(h){var p=h.data;console.log(p),p.forEach(function(S){S.text=S.name,S.stockGoodsId=S.value}),ie(p)})}j()},[]);function ue(j){try{return w.deleteentry({id:j.id}).then(function(h){h.data?n.default.success("\u914D\u7F6E\u6210\u529F"):n.default.error("\u914D\u7F6E\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),b.current.reload()}),!0}catch(h){return n.default.error("\u914D\u7F6E\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),!1}}function H(j,h){try{return w.Enable({id:j.id,IsReplace:h}).then(function(p){p.data?n.default.success("\u64CD\u4F5C\u6210\u529F"):n.default.error("\u64CD\u4F5C\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),b.current.reload()}),!0}catch(p){return n.default.error("\u64CD\u4F5C\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),!1}}function _(j){try{return w.addentry(JSON.stringify(j)).then(function(h){h.data?(n.default.success("\u6DFB\u52A0\u6210\u529F"),b.current.reload()):n.default.error("\u6DFB\u52A0\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01")}),!0}catch(h){return n.default.error("\u6DFB\u52A0\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),!1}}var z=[{title:"\u4E3B\u952E",dataIndex:"id",hideInTable:!0,hideInSearch:!0,tip:"\u89C4\u5219\u540D\u79F0\u662F\u552F\u4E00\u7684 key",render:function(h,p){return(0,t.jsx)("a",{onClick:function(){U(p),setShowDetail(!0)},children:h})}},{title:"\u539F\u6599\u540D\u79F0",dataIndex:"batchingName",hideInForm:!0,hideInSearch:!0},{title:"\u914D\u65B9\u7528\u91CF",dataIndex:"bomQty",hideInSearch:!0,width:120},{title:"\u662F\u5426\u53EF\u4EE5\u66FF\u6362",dataIndex:"isReplace",hideInForm:!0,valueEnum:{false:{text:"\u4E0D\u53EF\u66FF\u6362",status:"Processing"},true:{text:"\u53EF\u66FF\u6362",status:"Success"}}},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(h,p){return[p.isReplace&&(0,t.jsx)("a",{onClick:function(){u(!0),U(p)},children:"\u66FF\u6362\u7269\u6599"},"link1"),p.isReplace&&(0,t.jsx)("a",{onClick:function(){H(p,0)},children:"\u7981\u7528\u66FF\u6362"},"link2"),!p.isReplace&&(0,t.jsx)("a",{onClick:function(){H(p,1)},children:"\u542F\u7528\u66FF\u6362"},"link3"),(0,t.jsx)("a",{onClick:function(){ue(p)},children:"\u5220\u9664"},"link4")]}}];return(0,t.jsxs)(ne.Z,{title:"\u67E5\u770B"+e.values.name+"\u914D\u65B9\u539F\u6599",width:640,visible:e.createModalVisible,bodyStyle:{padding:"32px 40px 48px"},footer:null,onCancel:function(){e.onCancel()},destroyOnClose:!0,children:[(0,t.jsx)(he.ZP,{headerTitle:"\u5546\u54C1\u914D\u65B9\u4FE1\u606F\u67E5\u8BE2",actionRef:b,rowKey:"id",pagination:{defaultPageSize:20},search:!1,toolBarRender:function(){return[(0,t.jsxs)(J.Z,{type:"primary",onClick:function(){return T(!0)},children:[(0,t.jsx)(fe.Z,{})," \u6DFB\u52A0\u914D\u65B9\u539F\u6599"]},"create")]},request:function(){var j=(0,$.Z)((0,C.Z)().mark(function h(p){var S,i;return(0,C.Z)().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return S=[],i=0,e.values.id!=null&&(p.bomId=e.values.id),l.next=5,w.getentrypage(p).then(function(y){S=y.data.data,i=y.data.total});case 5:return l.abrupt("return",{data:S,success:!0,total:i});case 6:case"end":return l.stop()}},h)}));return function(h){return j.apply(this,arguments)}}(),columns:z}),(0,t.jsx)(Te,{onCancel:function(){u(!1),U(void 0)},createModalVisible:r,values:q||{}}),(0,t.jsx)(Ee,{onFinish:function(){var j=(0,$.Z)((0,C.Z)().mark(function h(p){var S;return(0,C.Z)().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return p.bomId=e.values.id,S=!1,c.next=4,_(p);case 4:S=c.sent,S&&T(!1),b.current.reload();case 7:case"end":return c.stop()}},h)}));return function(h){return j.apply(this,arguments)}}(),onCancel:function(){T(!1)},createModalVisible:L,stockGoodsData:ve})]})},Me=we,it=o(62350),Ve=o(24565),Pe=function(e){var b=P.Z.Option,V=P.Z.OptGroup;return(0,t.jsx)(ne.Z,{title:"\u6DFB\u52A0\u914D\u65B9\u5DE5\u827A",width:640,visible:e.bomtechnoVisible,bodyStyle:{padding:"32px 40px 1px 48px"},footer:null,onCancel:function(){e.onCancel()},destroyOnClose:!0,children:(0,t.jsxs)(Z.Z,{layout:"vertical",preserve:!1,initialValues:e.values,onFinish:e.onFinish,children:[(0,t.jsx)(Z.Z.Item,{name:"id",hidden:!0,children:(0,t.jsx)(ae.Z,{})}),(0,t.jsx)(Z.Z.Item,{name:"batchingId",label:"\u539F\u6599\u540D\u79F0",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u539F\u6599\u540D\u79F0"}],children:(0,t.jsx)(P.Z,{placeholder:"\u8BF7\u9009\u62E9\u539F\u6599\u540D\u79F0",showSearch:!0,children:e.stockGoods.map(function(d,r){return(0,t.jsx)(b,{index:r,value:d.id,children:d.batchingName},d.id)})})}),(0,t.jsx)(Z.Z.Item,{name:"chnologyId",label:"\u5DE5\u827A",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u5DE5\u827A\u540D\u79F0"}],children:(0,t.jsx)(P.Z,{placeholder:"\u8BF7\u9009\u62E9\u5DE5\u827A\u540D\u79F0",showSearch:!0,children:e.technologydata.map(function(d,r){return(0,t.jsx)(b,{index:r,value:d.id,children:d.name},d.id)})})}),(0,t.jsx)(Z.Z.Item,{name:"sort",label:"\u6392\u5E8F",rules:[{required:!0,message:"\u8BF7\u6392\u5E8F"}],children:(0,t.jsx)(me.Z,{placeholder:"\u6392\u5E8F",min:0})}),(0,t.jsxs)(Z.Z.Item,{children:[(0,t.jsx)(J.Z,{htmlType:"button",style:{float:"right",left:10},onClick:e.onCancel,children:"\u53D6\u6D88"}),(0,t.jsx)(J.Z,{type:"primary",htmlType:"submit",style:{float:"right"},children:"\u4FDD\u5B58"})]})]})})},Ne=Pe,xe="message",Ae=function(e){var b=(0,a.useState)(!1),V=(0,v.Z)(b,2),d=V[0],r=V[1],u=(0,a.useRef)(),B=(0,a.useState)(),W=(0,v.Z)(B,2),L=W[0],T=W[1],Y=(0,a.useState)([]),K=(0,v.Z)(Y,2),q=K[0],U=K[1],oe=(0,a.useState)(0),Q=(0,v.Z)(oe,2),ve=Q[0],ie=Q[1],ue=(0,a.useState)(!1),H=(0,v.Z)(ue,2),_=H[0],z=H[1],j=(0,a.useState)([]),h=(0,v.Z)(j,2),p=h[0],S=h[1],i=(0,a.useState)([]),c=(0,v.Z)(i,2),l=c[0],y=c[1];(0,a.useEffect)(function(){function M(){return g.apply(this,arguments)}function g(){return g=(0,$.Z)((0,C.Z)().mark(function O(){var I;return(0,C.Z)().wrap(function(A){for(;;)switch(A.prev=A.next){case 0:return I={},e.values.id!=null&&(I.bomId=e.values.id,I.current=1,I.pageSize=100),A.next=4,w.getentrypage(I).then(function(ce){var se=ce.data.data;S(se)});case 4:case"end":return A.stop()}},O)})),g.apply(this,arguments)}function k(){return R.apply(this,arguments)}function R(){return R=(0,$.Z)((0,C.Z)().mark(function O(){var I;return(0,C.Z)().wrap(function(A){for(;;)switch(A.prev=A.next){case 0:return I={},I.current=1,I.pageSize=100,A.next=5,w.GetGoodstechnologypage(I).then(function(ce){var se=ce.data.data;y(se)});case 5:case"end":return A.stop()}},O)})),R.apply(this,arguments)}e.bomTechnologyModalVisible&&(M(),k())},[e.bomTechnologyModalVisible]);var re=function(g){try{g.DeviceId=e.values.key,n.default.loading("\u6B63\u5728\u6DFB\u52A0",xe),w.addBomtechnology(JSON.stringify(g)).then(function(k){return n.default.destroy(xe),k.data?(n.default.success("\u6DFB\u52A0\u6210\u529F"),u.current.reload(),!0):(n.default.error(k.errors),u.current.reload(),!1)})}catch(k){return n.default.error("\u6DFB\u52A0\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),u.current.reload(),!1}};function N(M){try{return w.updatebomtechnology(JSON.stringify(M)).then(function(g){g.data?n.default.success("\u4FEE\u6539\u6210\u529F"):n.default.error(g.errors),u.current.reload()}),!0}catch(g){return n.default.error("\u4FEE\u6539\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),!1}}var X=function(){var M=(0,$.Z)((0,C.Z)().mark(function g(k){return(0,C.Z)().wrap(function(O){for(;;)switch(O.prev=O.next){case 0:return O.prev=0,w.deletebomtechnology([k]).then(function(I){I.data?n.default.success("\u5220\u9664\u6210\u529F"):n.default.error(I.errors),u.current.reload()}),O.abrupt("return",!0);case 5:O.prev=5,O.t0=O.catch(0),n.default.error("\u5220\u9664\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5");case 8:case"end":return O.stop()}},g,null,[[0,5]])}));return function(k){return M.apply(this,arguments)}}(),le=[{title:"\u4E3B\u952E",dataIndex:"id",hideInSearch:!0,hideInTable:!0,tip:"\u89C4\u5219\u540D\u79F0\u662F\u552F\u4E00\u7684 key"},{title:"\u7269\u6599",dataIndex:"batchingName",valueType:"textarea"},{title:"\u5DE5\u827A",dataIndex:"technologyName",valueType:"textarea"},{title:"\u6B65\u9AA4",dataIndex:"sort"},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(g,k){return[(0,t.jsxs)("a",{onClick:function(){z(!0),T(k)},children:[" ","\u4FEE\u6539"]},"config"),(0,t.jsx)(Ve.Z,{type:"primary",title:"\u786E\u8BA4\u5220\u9664\u5417\uFF1F",okText:"\u662F",cancelText:"\u5426",onConfirm:function(){X(k.id)},onCancel:function(){},children:(0,t.jsx)("a",{href:"#",children:"\u5220\u9664"})},"primary")]}}];return(0,t.jsx)(ne.Z,{title:"\u6DFB\u52A0\u914D\u65B9\u5DE5\u827A",width:940,visible:e.bomTechnologyModalVisible,bodyStyle:{padding:"32px 40px 48px"},footer:null,onCancel:function(){e.onCancel()},destroyOnClose:!0,children:(0,t.jsxs)(ye.ZP,{header:{title:"",breadcrumb:{}},children:[(0,t.jsx)(he.ZP,{headerTitle:"",actionRef:u,rowKey:"id",search:!1,toolBarRender:function(){return[(0,t.jsxs)(J.Z,{type:"primary",onClick:function(){T(void 0),z(!0)},children:[(0,t.jsx)(fe.Z,{})," \u65B0\u5EFA"]},"primary")]},request:function(){var M=(0,$.Z)((0,C.Z)().mark(function g(k){var R,O;return(0,C.Z)().wrap(function(ee){for(;;)switch(ee.prev=ee.next){case 0:return R=[],O=0,console.log(e.values),k.bomId=e.values.id,ee.next=6,w.GetBomTechnologypage(k).then(function(A){R=A.data.data,O=A.data.total,ie(O)});case 6:return ee.abrupt("return",{data:R,success:!0,total:O});case 7:case"end":return ee.stop()}},g)}));return function(g){return M.apply(this,arguments)}}(),columns:le,rowSelection:{onChange:function(g,k){U(k)}}}),(0,t.jsx)(Ne,{isbom:e.isbom,bomIds:e.bomIds,deviceKey:e.values==null?"":e.values.deviceTypeKey,DeviceId:e.values==null?"":e.values.key,onFinish:function(){var M=(0,$.Z)((0,C.Z)().mark(function g(k){var R;return(0,C.Z)().wrap(function(I){for(;;)switch(I.prev=I.next){case 0:console.log(k),R=!1,k.id?R=N(k):R=re(k),R&&(T(void 0),u.current.reload()),z(!1);case 5:case"end":return I.stop()}},g)}));return function(g){return M.apply(this,arguments)}}(),onCancel:function(){z(!1),T(void 0)},stockGoods:p,bomtechnoVisible:_,technologydata:l,values:L||{}})]})})},We=Ae,Ye=function(e){var b=(0,a.useState)(!1),V=(0,v.Z)(b,2),d=V[0],r=V[1],u=(0,a.useState)(!1),B=(0,v.Z)(u,2),W=B[0],L=B[1],T=(0,a.useState)(),Y=(0,v.Z)(T,2),K=Y[0],q=Y[1],U=(0,a.useRef)(),oe=(0,a.useState)([]),Q=(0,v.Z)(oe,2),ve=Q[0],ie=Q[1],ue=(0,a.useState)(),H=(0,v.Z)(ue,2),_=H[0],z=H[1],j=(0,a.useState)(),h=(0,v.Z)(j,2),p=h[0],S=h[1],i=(0,a.useState)(!1),c=(0,v.Z)(i,2),l=c[0],y=c[1],re=(0,a.useState)([]),N=(0,v.Z)(re,2),X=N[0],le=N[1],M=(0,a.useState)({}),g=(0,v.Z)(M,2),k=g[0],R=g[1],O=(0,a.useState)([]),I=(0,v.Z)(O,2),ee=I[0],A=I[1],ce=(0,a.useState)(!1),se=(0,v.Z)(ce,2),Ue=se[0],Ce=se[1];(0,a.useEffect)(function(){function D(){w.postStockGoods().then(function(m){var x=m.data;x.forEach(function(f){f.text=f.name,f.stockGoodsId=f.value}),ie(x)}),w.getbomtypepage({current:1,pagesize:1e3}).then(function(m){le(m.data.data);var x={};f(m.data.data);function f(E){for(var G in E)x[E[G].id]={text:E[G].name},E[G].children&&f(E[G].children)}R(x)})}D()},[]);function $e(D){try{return w.add(JSON.stringify(D)).then(function(m){m.data?(n.default.success("\u6DFB\u52A0\u6210\u529F"),U.current.reload()):n.default.error("\u6DFB\u52A0\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01")}),!0}catch(m){return n.default.error("\u6DFB\u52A0\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),!1}}function Le(D){try{return w.update(JSON.stringify(D)).then(function(m){m.data?n.default.success("\u4FEE\u6539\u6210\u529F"):n.default.error("\u4FEE\u6539\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),U.current.reload()}),!0}catch(m){return n.default.error("\u4FEE\u6539\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),!1}}var ze=[{title:"\u4E3B\u952E",dataIndex:"id",hideInTable:!0,hideInSearch:!0,tip:"\u89C4\u5219\u540D\u79F0\u662F\u552F\u4E00\u7684 key",render:function(m,x){return(0,t.jsx)("a",{onClick:function(){q(x),setShowDetail(!0)},children:m})}},{title:"\u914D\u65B9\u7F16\u7801",dataIndex:"code",hideInForm:!0,hideInSearch:!0},{title:"\u914D\u65B9\u540D\u79F0",dataIndex:"name",hideInForm:!0,hideInSearch:!0},{title:"\u6392\u5E8F",dataIndex:"sort",hideInForm:!0,hideInSearch:!0},{title:"\u914D\u65B9\u5206\u7C7B",dataIndex:"bomTypeList",search:!1,width:450,render:function(m,x){return(0,t.jsx)(Se.Z,{children:X.filter(function(f){var E=x.bomTypeList.find(function(te){return te===f.id}),G=X.find(function(te){return te.id===E});return G!=null||void 0}).map(function(f){return(0,t.jsx)(be.Z,{color:"#87d068",children:f.name},f.id)})})}},{title:"\u914D\u65B9\u7C7B\u578B",dataIndex:"isMain",hideInForm:!0,valueEnum:{false:{text:"\u8F85\u6599\u914D\u65B9",status:"Processing"},true:{text:"\u4E3B\u6599\u914D\u65B9",status:"Success"}}},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(m,x){return[(0,t.jsx)("a",{type:"primary",onClick:function(){z(x),S(!0)},children:"\u6DFB\u52A0\u914D\u65B9\u539F\u6599"},"primary1"),(0,t.jsx)("a",{type:"primary",onClick:function(){z(x),Ce(!0)},children:"\u6DFB\u52A0\u914D\u65B9\u5DE5\u827A"},"primary1"),(0,t.jsx)("a",{type:"primary",onClick:function(){r(!0),q(x)},children:"\u66F4\u65B0"},"primary3")]}}],Ke=function(m){A(m)},Qe=function(m,x){var f=JSON.parse(JSON.stringify(ee)),E=f[x].bomMaterials.findIndex(function(G){return m.id===G.id});f[x].bomMaterials.splice(E,1),A(f)};return(0,t.jsxs)(ye.ZP,{children:[(0,t.jsx)(he.ZP,{headerTitle:"\u914D\u65B9\u5217\u8868",actionRef:U,rowKey:"id",pagination:{defaultPageSize:20},search:!1,toolBarRender:function(){return[(0,t.jsxs)(J.Z,{type:"primary",onClick:function(){return r(!0)},children:[(0,t.jsx)(fe.Z,{})," \u65B0\u589E\u914D\u65B9"]},"create")]},request:function(){var D=(0,$.Z)((0,C.Z)().mark(function m(x){var f,E;return(0,C.Z)().wrap(function(te){for(;;)switch(te.prev=te.next){case 0:return f=[],E=0,te.next=4,w.getpage(x).then(function(Ze){f=Ze.data.data,E=Ze.data.total});case 4:return te.abrupt("return",{data:f,success:!0,total:E});case 5:case"end":return te.stop()}},m)}));return function(m){return D.apply(this,arguments)}}(),columns:ze}),_&&Object.keys(_).length?(0,t.jsx)(Me,{onCancel:function(){S(!1),z({})},createModalVisible:p,values:_}):null,(0,t.jsx)(je,{bomtype:X,onFinish:function(){var D=(0,$.Z)((0,C.Z)().mark(function m(x){var f;return(0,C.Z)().wrap(function(G){for(;;)switch(G.prev=G.next){case 0:if(f=!1,!x.id){G.next=7;break}return G.next=4,Le(x);case 4:f=G.sent,G.next=10;break;case 7:return G.next=9,$e(x);case 9:f=G.sent;case 10:f&&(r(!1),q(void 0),U.current&&U.current.reload()),U.current.reload();case 12:case"end":return G.stop()}},m)}));return function(m){return D.apply(this,arguments)}}(),onCancel:function(){r(!1),q(void 0)},createModalVisible:d,values:K||{}}),(0,t.jsx)(Ie,{onFinish:function(){var D=(0,$.Z)((0,C.Z)().mark(function m(x){return(0,C.Z)().wrap(function(E){for(;;)switch(E.prev=E.next){case 0:w.addBomConsumptionInfo({bomId:K.id,bomConsumptionInfo:x}).then(function(G){G.data?(y(!1),n.default.success("\u6210\u529F")):n.default.error("\u6DFB\u52A0\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01")}),console.log(x);case 2:case"end":return E.stop()}},m)}));return function(m){return D.apply(this,arguments)}}(),visible:l,values:ee,onUpdateBom:Ke,onCancel:function(){y(!1)},onDeleteMate:Qe}),(0,t.jsx)(We,{bomTechnologyModalVisible:Ue,onCancel:function(){Ce(!1)},values:_||{}})]})},Je=Ye}}]); +(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[1633,1322],{47511:function(He,pe,o){"use strict";o.r(pe),o.d(pe,{default:function(){return Je}});var C=o(39428),$=o(3182),Xe=o(57663),J=o(71577),qe=o(49111),Se=o(19650),_e=o(71153),be=o(60331),et=o(34792),n=o(48086),v=o(2824),fe=o(49101),a=o(67294),ye=o(78009),he=o(16894),tt=o(71194),ne=o(50146),nt=o(77883),me=o(85986),at=o(77576),ge=o(12028),rt=o(9715),Z=o(55843),ot=o(47673),ae=o(4107),ut=o(43358),P=o(34041),t=o(85893),Be=function(e){var b,V=P.Z.Option,d=P.Z.OptGroup;return(0,t.jsx)(ne.Z,{title:e.values.id?"\u7F16\u8F91":"\u65B0\u5EFA",width:640,visible:e.createModalVisible,bodyStyle:{padding:"32px 40px 48px"},footer:null,onCancel:function(){e.onCancel()},destroyOnClose:!0,children:(0,t.jsxs)(Z.Z,{layout:"vertical",preserve:!1,initialValues:e.values,onFinish:e.onFinish,children:[(0,t.jsx)(Z.Z.Item,{name:"id",hidden:!0,children:(0,t.jsx)(ae.Z,{})}),(0,t.jsx)(Z.Z.Item,{name:"code",label:"\u914D\u65B9\u7F16\u7801",children:(0,t.jsx)(ae.Z,{placeholder:"\u914D\u65B9\u7F16\u7801"})}),(0,t.jsx)(Z.Z.Item,{name:"name",label:"\u914D\u65B9\u540D\u79F0",children:(0,t.jsx)(ae.Z,{placeholder:"\u914D\u65B9\u540D\u79F0"})}),(0,t.jsx)(Z.Z.Item,{name:"bomTypeList",label:"\u914D\u65B9\u7C7B\u578B",children:(0,t.jsx)(P.Z,{mode:"multiple",allowClear:!0,children:e==null||(b=e.bomtype)===null||b===void 0?void 0:b.map(function(r,u){return(0,t.jsx)(P.Z.Option,{index:r.id,value:r.id,children:r.name},r.id)})})}),(0,t.jsx)(Z.Z.Item,{name:"isMain",label:"\u914D\u65B9\u7C7B\u578B",children:(0,t.jsx)(ge.Z,{checkedChildren:"\u4E3B\u6599",unCheckedChildren:"\u8F85\u6599"})}),(0,t.jsx)(Z.Z.Item,{name:"sort",label:"\u6392\u5E8F",children:(0,t.jsx)(me.Z,{placeholder:"\u6392\u5E8F",min:1})}),(0,t.jsx)(Z.Z.Item,{children:(0,t.jsx)(J.Z,{type:"primary",htmlType:"submit",children:"\u4FDD\u5B58"})})]})})},je=Be,Fe=o(73171),ke=function(e){var b=function(u){var B=JSON.parse(JSON.stringify(e.values));B.push(B[u]),e.onUpdateBom(B)},V=function(u){var B=JSON.parse(JSON.stringify(e.values));B.splice(u,1),e.onUpdateBom(B)},d=function(){e.onFinish(e.values)};return(0,t.jsxs)(ne.Z,{width:540,visible:e.visible,bodyStyle:{padding:"32px 40px 48px"},footer:null,onCancel:function(){e.onCancel()},title:"\u914D\u65B9\u7528\u91CF",children:[(0,t.jsx)("div",{className:"formual-form-card",children:e.values.map(function(r,u){return(0,t.jsxs)("div",{className:"formual-form-list",children:[(0,t.jsxs)("div",{className:"form-list-copy",children:[(0,t.jsx)(J.Z,{onClick:function(){return b(u)},children:"\u590D\u5236\u4E00\u4EFD\u914D\u65B9\u7528\u91CF"}),(0,t.jsx)(J.Z,{style:{marginLeft:"10px"},danger:!0,onClick:function(){return V(u)},children:"\u5220\u9664\u914D\u65B9\u7528\u91CF"})]}),(0,t.jsxs)("div",{className:"form-list-item form-list-total",children:[(0,t.jsx)("span",{className:"form-input-label",children:"\u603B\u91CF"}),(0,t.jsx)(ae.Z,{placeholder:"\u8BF7\u8F93\u5165\u603B\u91CF",value:r.bomWeight,onChange:function(W){var L=JSON.parse(JSON.stringify(e.values));L[u].bomWeight=W.target.value,e.onUpdateBom(L)}})]}),r.bomMaterials.map(function(B,W){return(0,t.jsx)("div",{className:"form-list-detail",children:(0,t.jsxs)("div",{className:"form-detail-card",children:[(0,t.jsxs)("div",{className:"form-list-item formmual-name",children:[(0,t.jsx)("span",{className:"form-input-label",children:"\u540D\u79F0"}),(0,t.jsx)(ae.Z,{placeholder:"\u7269\u6599\u540D\u79F0",value:B.name,onChange:function(T){var Y=JSON.parse(JSON.stringify(e.values));Y[u].bomMaterials[W].name=T.target.value,e.onUpdateBom(Y)}})]}),(0,t.jsxs)("div",{className:"form-list-item formmual-company",children:[(0,t.jsx)("span",{className:"form-input-label",children:"\u6570\u91CF"}),(0,t.jsx)(ae.Z,{placeholder:"\u7269\u6599\u6570\u91CF",value:B.num,onChange:function(T){var Y=JSON.parse(JSON.stringify(e.values));Y[u].bomMaterials[W].num=T.target.value,e.onUpdateBom(Y)}})]}),(0,t.jsx)(J.Z,{onClick:function(){return e.onDeleteMate(B,u)},type:"link",danger:!0,icon:(0,t.jsx)(Fe.Z,{}),style:{marginLeft:"10px"}})]})},B.id)})]},u)})}),(0,t.jsx)(J.Z,{type:"primary",onClick:d,style:{float:"right"},children:"\u4FDD\u5B58"})]})},Ie=ke,F=o(48971),w={add:function(e){return(0,F.WY)("/kitchen/api/bom/add",{method:"Post",data:e})},update:function(e){return(0,F.WY)("/kitchen/api/bom/update",{method:"Post",data:e})},delete:function(e){return(0,F.WY)("/kitchen/api/bom/delete",{method:"Post",data:e})},getpage:function(e){return(0,F.WY)("/kitchen/api/bom/getpage",{method:"Post",data:e})},postStockGoods:function(){return(0,F.WY)("/kitchen/api/frachisee-stock-adjust/product-list",{method:"Get"})},addentry:function(e){return(0,F.WY)("/kitchen/api/bom/addentry",{method:"Post",data:e})},deleteentry:function(e){return(0,F.WY)("/kitchen/api/bom/deleteentry",{method:"Post",data:e})},Enable:function(e){return(0,F.WY)("/kitchen/api/GoodsBom/enable",{method:"Post",data:e})},getentrypage:function(e){return(0,F.WY)("/kitchen/api/bom/getentrypage",{method:"Post",data:e})},getbomtypepage:function(e){return(0,F.WY)("/kitchen/api/bom/getbomtypepage",{method:"Post",data:e})},addBomConsumptionInfo:function(e){return(0,F.WY)("/kitchen/api/bom/addBomConsumptionInfo",{method:"Post",data:e})},getomConsumptionInfo:function(e){return(0,F.WY)("/kitchen/api/bom/getomConsumptionInfo?bomId=".concat(e),{method:"get",data:e})},GetBomTechnologypage:function(e){return(0,F.WY)("/kitchen/api/goodstechnology/getbomtechnologypage",{method:"POST",data:e})},GetGoodstechnologypage:function(e){return(0,F.WY)("/kitchen/api/goodstechnology/getGoodstechnologypage",{method:"Post",data:e})},addBomtechnology:function(e){return(0,F.WY)("/kitchen/api/goodstechnology/addBomtechnology",{method:"Post",data:e})},updatebomtechnology:function(e){return(0,F.WY)("/kitchen/api/goodstechnology/updatebomtechnology",{method:"Post",data:e})},deletebomtechnology:function(e){return(0,F.WY)("/kitchen/api/goodstechnology/deletebomtechnology",{method:"Post",data:e})}},De=function(e){var b=P.Z.Option,V=P.Z.OptGroup;return(0,t.jsx)(ne.Z,{title:e.values.id?"\u7F16\u8F91":"\u65B0\u5EFA",width:640,visible:e.createModalVisible,bodyStyle:{padding:"32px 40px 48px"},footer:null,onCancel:function(){e.onCancel()},destroyOnClose:!0,children:(0,t.jsxs)(Z.Z,{layout:"vertical",preserve:!1,initialValues:e.values,onFinish:e.onFinish,children:[(0,t.jsx)(Z.Z.Item,{name:"id",hidden:!0,children:(0,t.jsx)(ae.Z,{})}),(0,t.jsx)(Z.Z.Item,{name:"itemId",label:"\u539F\u6599\u540D\u79F0",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u539F\u6599\u540D\u79F0"}],children:(0,t.jsx)(P.Z,{disabled:!!e.values.id,placeholder:"\u8BF7\u9009\u62E9\u539F\u6599\u540D\u79F0",children:e.stockGoodsData.map(function(d,r){return(0,t.jsx)(P.Z.Option,{index:r,value:d.id,children:d.name},d.id)})})}),(0,t.jsx)(Z.Z.Item,{name:"price",label:"\u4EF7\u683C",defaultValue:e.values.price,children:(0,t.jsx)(me.Z,{placeholder:"\u4EF7\u683C",min:0})}),(0,t.jsx)(Z.Z.Item,{children:(0,t.jsx)(J.Z,{type:"primary",htmlType:"submit",children:"\u4FDD\u5B58"})})]})})},Ge=De,de={goodsBoms:function(e){return(0,F.WY)("/kitchen/api/GoodsBom/GetBomReplac",{method:"Post",data:e})},updateGoodsBom:function(e){return(0,F.WY)("/kitchen/api/GoodsBom/EditReplac",{method:"PUT",data:e})},addGoodsBom:function(e){return(0,F.WY)("/kitchen/api/GoodsBom/AddReplac",{method:"POST",data:e})},goodList:function(e){return(0,F.WY)("/kitchen/api/goods/goodss",{method:"Post",data:e})},postStockGoods:function(){return(0,F.WY)("/kitchen/api/frachisee-stock-adjust/product-list",{method:"Get"})}},Oe=function(e){var b=(0,a.useState)(!1),V=(0,v.Z)(b,2),d=V[0],r=V[1],u=(0,a.useRef)(),B=(0,a.useState)(),W=(0,v.Z)(B,2),L=W[0],T=W[1],Y=(0,a.useState)([]),K=(0,v.Z)(Y,2),q=K[0],U=K[1],oe=(0,a.useState)([]),Q=(0,v.Z)(oe,2),ve=Q[0],ie=Q[1],ue=(0,a.useState)([]),H=(0,v.Z)(ue,2),_=H[0],z=H[1];(0,a.useEffect)(function(){function i(){de.postStockGoods().then(function(c){var l=c.data;l.forEach(function(y){y.text=y.name,y.stockGoodsId=y.id}),z(l)})}i()},[]);function j(i){try{return de.addGoodsBom({itemId:i.itemId,price:i.price,goodsbomId:e.values.id,replaceId:e.values.batchingId}).then(function(c){c.data?(n.default.success("\u6DFB\u52A0\u6210\u529F"),u.current.reload()):n.default.error("\u6DFB\u52A0\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01")}),!0}catch(c){return n.default.error("\u6DFB\u52A0\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),!1}}function h(i){console.log("\u4F20\u53C2\u6570\u636E",i);try{return de.updateGoodsBom({id:i.id,status:i.status,itemId:i.itemId,price:i.price,goodsbomId:e.values.id,replaceId:e.values.stockGoodsCode}).then(function(c){c.data?n.default.success("\u914D\u7F6E\u6210\u529F"):n.default.error("\u914D\u7F6E\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),u.current.reload()}),!0}catch(c){return n.default.error("\u914D\u7F6E\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),!1}}function p(){if(!q)return!0;try{return de.removeGoodsBom(q.map(function(i){return i.id})).then(function(i){i.data?n.default.success("\u5220\u9664\u6210\u529F\uFF0C\u5373\u5C06\u5237\u65B0"):n.default.error("\u5220\u9664\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5"),u.current.reload()}),!0}catch(i){return n.default.error("\u5220\u9664\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5"),!1}}var S=[{title:"\u4E3B\u952E",dataIndex:"id",hideInTable:!0,hideInSearch:!0,tip:"\u89C4\u5219\u540D\u79F0\u662F\u552F\u4E00\u7684 key",render:function(c,l){return(0,t.jsx)("a",{onClick:function(){T(l),setShowDetail(!0)},children:c})}},{title:"\u539F\u6599\u540D\u79F0",dataIndex:"name",hideInForm:!0,hideInSearch:!0},{title:"\u5546\u54C1\u4EF7\u683C",dataIndex:"price",valueType:"money"},{title:"\u72B6\u6001",dataIndex:"status",hideInForm:!0,valueEnum:{0:{text:"\u6B63\u5E38",status:"Processing"},1:{text:"\u505C\u7528",status:"Error"},2:{text:"\u5220\u9664",status:"Error"}}},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(c,l){return[l.status===0&&(0,t.jsx)("a",{onClick:function(){l.status="1",h(l)},children:"\u505C\u7528"},"link"),(l.status===1||l.status===2)&&(0,t.jsx)("a",{onClick:function(){l.status="0",h(l)},children:"\u542F\u7528"},"warn"),(0,t.jsx)("a",{type:"primary",onClick:function(){T(l),r(!0)},children:"\u66F4\u65B0"},"primary")]}}];return(0,t.jsxs)(ne.Z,{width:1200,bodyStyle:{padding:"32px 40px 48px"},destroyOnClose:!0,title:"\u914D\u65B9\u7269\u6599\u66FF\u6362",visible:e.createModalVisible,footer:!1,onCancel:function(){return e.onCancel()},maskClosable:!1,children:[(0,t.jsx)(he.ZP,{headerTitle:"\u66FF\u6362\u7269\u6599\u5217\u8868",actionRef:u,rowKey:"id",pagination:{defaultPageSize:20},search:!1,toolBarRender:function(){return[(0,t.jsxs)(J.Z,{type:"primary",onClick:function(){return r(!0)},children:[(0,t.jsx)(fe.Z,{})," \u65B0\u589E\u914D\u65B9\u66FF\u6362\u7269\u6599"]},"create")]},request:function(){var i=(0,$.Z)((0,C.Z)().mark(function c(l){var y,re;return(0,C.Z)().wrap(function(X){for(;;)switch(X.prev=X.next){case 0:return y=[],re=0,e.values.id!=null&&(l.goodsbomId=e.values.id,l.replaceId=e.values.stockGoodsCode),X.next=5,de.goodsBoms(l).then(function(le){y=le.data.data,re=le.data.total});case 5:return X.abrupt("return",{data:y,success:!0,total:re});case 6:case"end":return X.stop()}},c)}));return function(c){return i.apply(this,arguments)}}(),columns:S}),(0,t.jsx)(Ge,{stockGoodsData:_,onFinish:function(){var i=(0,$.Z)((0,C.Z)().mark(function c(l){var y;return(0,C.Z)().wrap(function(N){for(;;)switch(N.prev=N.next){case 0:if(y=!1,!l.id){N.next=7;break}return N.next=4,h(l);case 4:y=N.sent,N.next=10;break;case 7:return N.next=9,j(l);case 9:y=N.sent;case 10:y&&(r(!1),T(void 0),u.current&&u.current.reload());case 11:case"end":return N.stop()}},c)}));return function(c){return i.apply(this,arguments)}}(),onCancel:function(){r(!1),T(void 0)},createModalVisible:d,values:L||{}})]})},Te=Oe,Re=function(e){var b=P.Z.Option,V=P.Z.OptGroup;return(0,t.jsx)(ne.Z,{title:"\u6DFB\u52A0\u914D\u65B9\u539F\u6599",width:640,visible:e.createModalVisible,bodyStyle:{padding:"32px 40px 48px"},footer:null,onCancel:function(){e.onCancel()},destroyOnClose:!0,children:(0,t.jsxs)(Z.Z,{layout:"vertical",preserve:!1,initialValues:e.values,onFinish:e.onFinish,children:[(0,t.jsx)(Z.Z.Item,{name:"BatchingId",label:"\u539F\u6599\u540D\u79F0",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u539F\u6599\u540D\u79F0"}],children:(0,t.jsx)(P.Z,{placeholder:"\u8BF7\u9009\u62E9\u539F\u6599\u540D\u79F0",showSearch:!0,optionFilterProp:"children",filterOption:function(r,u){return u.children.toLowerCase().indexOf(r.toLowerCase())>=0},children:e.stockGoodsData.map(function(d,r){return(0,t.jsx)(b,{index:r,value:d.id,children:d.name},d.id)})})}),(0,t.jsx)(Z.Z.Item,{name:"bomQty",label:"\u914D\u65B9\u7528\u91CF",children:(0,t.jsx)(me.Z,{placeholder:"\u914D\u65B9\u7528\u91CF",min:0})}),(0,t.jsx)(Z.Z.Item,{name:"isReplace",label:"\u662F\u5426\u53EF\u4EE5\u66FF\u6362",children:(0,t.jsx)(ge.Z,{checkedChildren:"\u5426",unCheckedChildren:"\u662F"})}),(0,t.jsx)(Z.Z.Item,{children:(0,t.jsx)(J.Z,{type:"primary",htmlType:"submit",children:"\u4FDD\u5B58"})})]})})},Ee=Re,we=function(e){var b=(0,a.useRef)(),V=(0,a.useState)(!1),d=(0,v.Z)(V,2),r=d[0],u=d[1],B=(0,a.useState)(!1),W=(0,v.Z)(B,2),L=W[0],T=W[1],Y=(0,a.useState)(),K=(0,v.Z)(Y,2),q=K[0],U=K[1],oe=(0,a.useState)([]),Q=(0,v.Z)(oe,2),ve=Q[0],ie=Q[1];(0,a.useEffect)(function(){function j(){w.postStockGoods().then(function(h){var p=h.data;console.log(p),p.forEach(function(S){S.text=S.name,S.stockGoodsId=S.value}),ie(p)})}j()},[]);function ue(j){try{return w.deleteentry({id:j.id}).then(function(h){h.data?n.default.success("\u914D\u7F6E\u6210\u529F"):n.default.error("\u914D\u7F6E\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),b.current.reload()}),!0}catch(h){return n.default.error("\u914D\u7F6E\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),!1}}function H(j,h){try{return w.Enable({id:j.id,IsReplace:h}).then(function(p){p.data?n.default.success("\u64CD\u4F5C\u6210\u529F"):n.default.error("\u64CD\u4F5C\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),b.current.reload()}),!0}catch(p){return n.default.error("\u64CD\u4F5C\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),!1}}function _(j){try{return w.addentry(JSON.stringify(j)).then(function(h){h.data?(n.default.success("\u6DFB\u52A0\u6210\u529F"),b.current.reload()):n.default.error("\u6DFB\u52A0\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01")}),!0}catch(h){return n.default.error("\u6DFB\u52A0\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),!1}}var z=[{title:"\u4E3B\u952E",dataIndex:"id",hideInTable:!0,hideInSearch:!0,tip:"\u89C4\u5219\u540D\u79F0\u662F\u552F\u4E00\u7684 key",render:function(h,p){return(0,t.jsx)("a",{onClick:function(){U(p),setShowDetail(!0)},children:h})}},{title:"\u539F\u6599\u540D\u79F0",dataIndex:"batchingName",hideInForm:!0,hideInSearch:!0},{title:"\u914D\u65B9\u7528\u91CF",dataIndex:"bomQty",hideInSearch:!0,width:120},{title:"\u662F\u5426\u53EF\u4EE5\u66FF\u6362",dataIndex:"isReplace",hideInForm:!0,valueEnum:{false:{text:"\u4E0D\u53EF\u66FF\u6362",status:"Processing"},true:{text:"\u53EF\u66FF\u6362",status:"Success"}}},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(h,p){return[p.isReplace&&(0,t.jsx)("a",{onClick:function(){u(!0),U(p)},children:"\u66FF\u6362\u7269\u6599"},"link1"),p.isReplace&&(0,t.jsx)("a",{onClick:function(){H(p,0)},children:"\u7981\u7528\u66FF\u6362"},"link2"),!p.isReplace&&(0,t.jsx)("a",{onClick:function(){H(p,1)},children:"\u542F\u7528\u66FF\u6362"},"link3"),(0,t.jsx)("a",{onClick:function(){ue(p)},children:"\u5220\u9664"},"link4")]}}];return(0,t.jsxs)(ne.Z,{title:"\u67E5\u770B"+e.values.name+"\u914D\u65B9\u539F\u6599",width:640,visible:e.createModalVisible,bodyStyle:{padding:"32px 40px 48px"},footer:null,onCancel:function(){e.onCancel()},destroyOnClose:!0,children:[(0,t.jsx)(he.ZP,{headerTitle:"\u5546\u54C1\u914D\u65B9\u4FE1\u606F\u67E5\u8BE2",actionRef:b,rowKey:"id",pagination:{defaultPageSize:20},search:!1,toolBarRender:function(){return[(0,t.jsxs)(J.Z,{type:"primary",onClick:function(){return T(!0)},children:[(0,t.jsx)(fe.Z,{})," \u6DFB\u52A0\u914D\u65B9\u539F\u6599"]},"create")]},request:function(){var j=(0,$.Z)((0,C.Z)().mark(function h(p){var S,i;return(0,C.Z)().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return S=[],i=0,e.values.id!=null&&(p.bomId=e.values.id),l.next=5,w.getentrypage(p).then(function(y){S=y.data.data,i=y.data.total});case 5:return l.abrupt("return",{data:S,success:!0,total:i});case 6:case"end":return l.stop()}},h)}));return function(h){return j.apply(this,arguments)}}(),columns:z}),(0,t.jsx)(Te,{onCancel:function(){u(!1),U(void 0)},createModalVisible:r,values:q||{}}),(0,t.jsx)(Ee,{onFinish:function(){var j=(0,$.Z)((0,C.Z)().mark(function h(p){var S;return(0,C.Z)().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return p.bomId=e.values.id,S=!1,c.next=4,_(p);case 4:S=c.sent,S&&T(!1),b.current.reload();case 7:case"end":return c.stop()}},h)}));return function(h){return j.apply(this,arguments)}}(),onCancel:function(){T(!1)},createModalVisible:L,stockGoodsData:ve})]})},Me=we,it=o(62350),Ve=o(24565),Pe=function(e){var b=P.Z.Option,V=P.Z.OptGroup;return(0,t.jsx)(ne.Z,{title:"\u6DFB\u52A0\u914D\u65B9\u5DE5\u827A",width:640,visible:e.bomtechnoVisible,bodyStyle:{padding:"32px 40px 1px 48px"},footer:null,onCancel:function(){e.onCancel()},destroyOnClose:!0,children:(0,t.jsxs)(Z.Z,{layout:"vertical",preserve:!1,initialValues:e.values,onFinish:e.onFinish,children:[(0,t.jsx)(Z.Z.Item,{name:"id",hidden:!0,children:(0,t.jsx)(ae.Z,{})}),(0,t.jsx)(Z.Z.Item,{name:"batchingId",label:"\u539F\u6599\u540D\u79F0",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u539F\u6599\u540D\u79F0"}],children:(0,t.jsx)(P.Z,{placeholder:"\u8BF7\u9009\u62E9\u539F\u6599\u540D\u79F0",showSearch:!0,children:e.stockGoods.map(function(d,r){return(0,t.jsx)(b,{index:r,value:d.id,children:d.batchingName},d.id)})})}),(0,t.jsx)(Z.Z.Item,{name:"chnologyId",label:"\u5DE5\u827A",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u5DE5\u827A\u540D\u79F0"}],children:(0,t.jsx)(P.Z,{placeholder:"\u8BF7\u9009\u62E9\u5DE5\u827A\u540D\u79F0",showSearch:!0,children:e.technologydata.map(function(d,r){return(0,t.jsx)(b,{index:r,value:d.id,children:d.name},d.id)})})}),(0,t.jsx)(Z.Z.Item,{name:"sort",label:"\u6392\u5E8F",rules:[{required:!0,message:"\u8BF7\u6392\u5E8F"}],children:(0,t.jsx)(me.Z,{placeholder:"\u6392\u5E8F",min:0})}),(0,t.jsxs)(Z.Z.Item,{children:[(0,t.jsx)(J.Z,{htmlType:"button",style:{float:"right",left:10},onClick:e.onCancel,children:"\u53D6\u6D88"}),(0,t.jsx)(J.Z,{type:"primary",htmlType:"submit",style:{float:"right"},children:"\u4FDD\u5B58"})]})]})})},Ne=Pe,xe="message",Ae=function(e){var b=(0,a.useState)(!1),V=(0,v.Z)(b,2),d=V[0],r=V[1],u=(0,a.useRef)(),B=(0,a.useState)(),W=(0,v.Z)(B,2),L=W[0],T=W[1],Y=(0,a.useState)([]),K=(0,v.Z)(Y,2),q=K[0],U=K[1],oe=(0,a.useState)(0),Q=(0,v.Z)(oe,2),ve=Q[0],ie=Q[1],ue=(0,a.useState)(!1),H=(0,v.Z)(ue,2),_=H[0],z=H[1],j=(0,a.useState)([]),h=(0,v.Z)(j,2),p=h[0],S=h[1],i=(0,a.useState)([]),c=(0,v.Z)(i,2),l=c[0],y=c[1];(0,a.useEffect)(function(){function M(){return g.apply(this,arguments)}function g(){return g=(0,$.Z)((0,C.Z)().mark(function O(){var I;return(0,C.Z)().wrap(function(A){for(;;)switch(A.prev=A.next){case 0:return I={},e.values.id!=null&&(I.bomId=e.values.id,I.current=1,I.pageSize=100),A.next=4,w.getentrypage(I).then(function(ce){var se=ce.data.data;S(se)});case 4:case"end":return A.stop()}},O)})),g.apply(this,arguments)}function k(){return R.apply(this,arguments)}function R(){return R=(0,$.Z)((0,C.Z)().mark(function O(){var I;return(0,C.Z)().wrap(function(A){for(;;)switch(A.prev=A.next){case 0:return I={},I.current=1,I.pageSize=100,A.next=5,w.GetGoodstechnologypage(I).then(function(ce){var se=ce.data.data;y(se)});case 5:case"end":return A.stop()}},O)})),R.apply(this,arguments)}e.bomTechnologyModalVisible&&(M(),k())},[e.bomTechnologyModalVisible]);var re=function(g){try{g.DeviceId=e.values.key,n.default.loading("\u6B63\u5728\u6DFB\u52A0",xe),w.addBomtechnology(JSON.stringify(g)).then(function(k){return n.default.destroy(xe),k.data?(n.default.success("\u6DFB\u52A0\u6210\u529F"),u.current.reload(),!0):(n.default.error(k.errors),u.current.reload(),!1)})}catch(k){return n.default.error("\u6DFB\u52A0\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),u.current.reload(),!1}};function N(M){try{return w.updatebomtechnology(JSON.stringify(M)).then(function(g){g.data?n.default.success("\u4FEE\u6539\u6210\u529F"):n.default.error(g.errors),u.current.reload()}),!0}catch(g){return n.default.error("\u4FEE\u6539\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),!1}}var X=function(){var M=(0,$.Z)((0,C.Z)().mark(function g(k){return(0,C.Z)().wrap(function(O){for(;;)switch(O.prev=O.next){case 0:return O.prev=0,w.deletebomtechnology([k]).then(function(I){I.data?n.default.success("\u5220\u9664\u6210\u529F"):n.default.error(I.errors),u.current.reload()}),O.abrupt("return",!0);case 5:O.prev=5,O.t0=O.catch(0),n.default.error("\u5220\u9664\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5");case 8:case"end":return O.stop()}},g,null,[[0,5]])}));return function(k){return M.apply(this,arguments)}}(),le=[{title:"\u4E3B\u952E",dataIndex:"id",hideInSearch:!0,hideInTable:!0,tip:"\u89C4\u5219\u540D\u79F0\u662F\u552F\u4E00\u7684 key"},{title:"\u7269\u6599",dataIndex:"batchingName",valueType:"textarea"},{title:"\u5DE5\u827A",dataIndex:"technologyName",valueType:"textarea"},{title:"\u6B65\u9AA4",dataIndex:"sort"},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(g,k){return[(0,t.jsxs)("a",{onClick:function(){z(!0),T(k)},children:[" ","\u4FEE\u6539"]},"config"),(0,t.jsx)(Ve.Z,{type:"primary",title:"\u786E\u8BA4\u5220\u9664\u5417\uFF1F",okText:"\u662F",cancelText:"\u5426",onConfirm:function(){X(k.id)},onCancel:function(){},children:(0,t.jsx)("a",{href:"#",children:"\u5220\u9664"})},"primary")]}}];return(0,t.jsx)(ne.Z,{title:"\u6DFB\u52A0\u914D\u65B9\u5DE5\u827A",width:940,visible:e.bomTechnologyModalVisible,bodyStyle:{padding:"32px 40px 48px"},footer:null,onCancel:function(){e.onCancel()},destroyOnClose:!0,children:(0,t.jsxs)(ye.ZP,{header:{title:"",breadcrumb:{}},children:[(0,t.jsx)(he.ZP,{headerTitle:"",actionRef:u,rowKey:"id",search:!1,toolBarRender:function(){return[(0,t.jsxs)(J.Z,{type:"primary",onClick:function(){T(void 0),z(!0)},children:[(0,t.jsx)(fe.Z,{})," \u65B0\u5EFA"]},"primary")]},request:function(){var M=(0,$.Z)((0,C.Z)().mark(function g(k){var R,O;return(0,C.Z)().wrap(function(ee){for(;;)switch(ee.prev=ee.next){case 0:return R=[],O=0,console.log(e.values),k.bomId=e.values.id,ee.next=6,w.GetBomTechnologypage(k).then(function(A){R=A.data.data,O=A.data.total,ie(O)});case 6:return ee.abrupt("return",{data:R,success:!0,total:O});case 7:case"end":return ee.stop()}},g)}));return function(g){return M.apply(this,arguments)}}(),columns:le,rowSelection:{onChange:function(g,k){U(k)}}}),(0,t.jsx)(Ne,{isbom:e.isbom,bomIds:e.bomIds,deviceKey:e.values==null?"":e.values.deviceTypeKey,DeviceId:e.values==null?"":e.values.key,onFinish:function(){var M=(0,$.Z)((0,C.Z)().mark(function g(k){var R;return(0,C.Z)().wrap(function(I){for(;;)switch(I.prev=I.next){case 0:console.log(k),R=!1,k.id?R=N(k):R=re(k),R&&(T(void 0),u.current.reload()),z(!1);case 5:case"end":return I.stop()}},g)}));return function(g){return M.apply(this,arguments)}}(),onCancel:function(){z(!1),T(void 0)},stockGoods:p,bomtechnoVisible:_,technologydata:l,values:L||{}})]})})},We=Ae,Ye=function(e){var b=(0,a.useState)(!1),V=(0,v.Z)(b,2),d=V[0],r=V[1],u=(0,a.useState)(!1),B=(0,v.Z)(u,2),W=B[0],L=B[1],T=(0,a.useState)(),Y=(0,v.Z)(T,2),K=Y[0],q=Y[1],U=(0,a.useRef)(),oe=(0,a.useState)([]),Q=(0,v.Z)(oe,2),ve=Q[0],ie=Q[1],ue=(0,a.useState)(),H=(0,v.Z)(ue,2),_=H[0],z=H[1],j=(0,a.useState)(),h=(0,v.Z)(j,2),p=h[0],S=h[1],i=(0,a.useState)(!1),c=(0,v.Z)(i,2),l=c[0],y=c[1],re=(0,a.useState)([]),N=(0,v.Z)(re,2),X=N[0],le=N[1],M=(0,a.useState)({}),g=(0,v.Z)(M,2),k=g[0],R=g[1],O=(0,a.useState)([]),I=(0,v.Z)(O,2),ee=I[0],A=I[1],ce=(0,a.useState)(!1),se=(0,v.Z)(ce,2),Ue=se[0],Ce=se[1];(0,a.useEffect)(function(){function D(){w.postStockGoods().then(function(m){var x=m.data;x.forEach(function(f){f.text=f.name,f.stockGoodsId=f.value}),ie(x)}),w.getbomtypepage({current:1,pagesize:1e3}).then(function(m){le(m.data.data);var x={};f(m.data.data);function f(E){for(var G in E)x[E[G].id]={text:E[G].name},E[G].children&&f(E[G].children)}R(x)})}D()},[]);function $e(D){try{return w.add(JSON.stringify(D)).then(function(m){m.data?(n.default.success("\u6DFB\u52A0\u6210\u529F"),U.current.reload()):n.default.error("\u6DFB\u52A0\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01")}),!0}catch(m){return n.default.error("\u6DFB\u52A0\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),!1}}function Le(D){try{return w.update(JSON.stringify(D)).then(function(m){m.data?n.default.success("\u4FEE\u6539\u6210\u529F"):n.default.error("\u4FEE\u6539\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),U.current.reload()}),!0}catch(m){return n.default.error("\u4FEE\u6539\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),!1}}var ze=[{title:"\u4E3B\u952E",dataIndex:"id",hideInTable:!0,hideInSearch:!0,tip:"\u89C4\u5219\u540D\u79F0\u662F\u552F\u4E00\u7684 key",render:function(m,x){return(0,t.jsx)("a",{onClick:function(){q(x),setShowDetail(!0)},children:m})}},{title:"\u914D\u65B9\u7F16\u7801",dataIndex:"code",hideInForm:!0,hideInSearch:!0},{title:"\u914D\u65B9\u540D\u79F0",dataIndex:"name",hideInForm:!0,hideInSearch:!1},{title:"\u6392\u5E8F",dataIndex:"sort",hideInForm:!0,hideInSearch:!0},{title:"\u914D\u65B9\u5206\u7C7B",dataIndex:"bomTypeList",search:!1,width:450,render:function(m,x){return(0,t.jsx)(Se.Z,{children:X.filter(function(f){var E=x.bomTypeList.find(function(te){return te===f.id}),G=X.find(function(te){return te.id===E});return G!=null||void 0}).map(function(f){return(0,t.jsx)(be.Z,{color:"#87d068",children:f.name},f.id)})})}},{title:"\u914D\u65B9\u7C7B\u578B",dataIndex:"isMain",hideInForm:!0,valueEnum:{false:{text:"\u8F85\u6599\u914D\u65B9",status:"Processing"},true:{text:"\u4E3B\u6599\u914D\u65B9",status:"Success"}}},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(m,x){return[(0,t.jsx)("a",{type:"primary",onClick:function(){z(x),S(!0)},children:"\u67E5\u770B\u914D\u65B9\u539F\u6599"},"primary1"),(0,t.jsx)("a",{type:"primary",onClick:function(){z(x),Ce(!0)},children:"\u6DFB\u52A0\u914D\u65B9\u5DE5\u827A"},"primary1"),(0,t.jsx)("a",{type:"primary",onClick:function(){r(!0),q(x)},children:"\u66F4\u65B0"},"primary3")]}}],Ke=function(m){A(m)},Qe=function(m,x){var f=JSON.parse(JSON.stringify(ee)),E=f[x].bomMaterials.findIndex(function(G){return m.id===G.id});f[x].bomMaterials.splice(E,1),A(f)};return(0,t.jsxs)(ye.ZP,{children:[(0,t.jsx)(he.ZP,{headerTitle:"\u914D\u65B9\u5217\u8868",actionRef:U,rowKey:"id",pagination:{defaultPageSize:20},search:!0,toolBarRender:function(){return[(0,t.jsxs)(J.Z,{type:"primary",onClick:function(){return r(!0)},children:[(0,t.jsx)(fe.Z,{})," \u65B0\u589E\u914D\u65B9"]},"create")]},request:function(){var D=(0,$.Z)((0,C.Z)().mark(function m(x){var f,E;return(0,C.Z)().wrap(function(te){for(;;)switch(te.prev=te.next){case 0:return f=[],E=0,te.next=4,w.getpage(x).then(function(Ze){f=Ze.data.data,E=Ze.data.total});case 4:return te.abrupt("return",{data:f,success:!0,total:E});case 5:case"end":return te.stop()}},m)}));return function(m){return D.apply(this,arguments)}}(),columns:ze}),_&&Object.keys(_).length?(0,t.jsx)(Me,{onCancel:function(){S(!1),z({})},createModalVisible:p,values:_}):null,(0,t.jsx)(je,{bomtype:X,onFinish:function(){var D=(0,$.Z)((0,C.Z)().mark(function m(x){var f;return(0,C.Z)().wrap(function(G){for(;;)switch(G.prev=G.next){case 0:if(f=!1,!x.id){G.next=7;break}return G.next=4,Le(x);case 4:f=G.sent,G.next=10;break;case 7:return G.next=9,$e(x);case 9:f=G.sent;case 10:f&&(r(!1),q(void 0),U.current&&U.current.reload()),U.current.reload();case 12:case"end":return G.stop()}},m)}));return function(m){return D.apply(this,arguments)}}(),onCancel:function(){r(!1),q(void 0)},createModalVisible:d,values:K||{}}),(0,t.jsx)(Ie,{onFinish:function(){var D=(0,$.Z)((0,C.Z)().mark(function m(x){return(0,C.Z)().wrap(function(E){for(;;)switch(E.prev=E.next){case 0:w.addBomConsumptionInfo({bomId:K.id,bomConsumptionInfo:x}).then(function(G){G.data?(y(!1),n.default.success("\u6210\u529F")):n.default.error("\u6DFB\u52A0\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01")}),console.log(x);case 2:case"end":return E.stop()}},m)}));return function(m){return D.apply(this,arguments)}}(),visible:l,values:ee,onUpdateBom:Ke,onCancel:function(){y(!1)},onDeleteMate:Qe}),(0,t.jsx)(We,{bomTechnologyModalVisible:Ue,onCancel:function(){Ce(!1)},values:_||{}})]})},Je=Ye}}]); diff --git a/dist/p__card__checkgoods.2562b360.async.js b/dist/p__card__checkgoods.b3349124.async.js similarity index 66% rename from dist/p__card__checkgoods.2562b360.async.js rename to dist/p__card__checkgoods.b3349124.async.js index 74b5976..30bf800 100644 --- a/dist/p__card__checkgoods.2562b360.async.js +++ b/dist/p__card__checkgoods.b3349124.async.js @@ -1 +1 @@ -(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[510,1322],{7701:function(J,k,u){"use strict";u.r(k),u.d(k,{default:function(){return W}});var F=u(2824),S=u(39428),H=u(34792),x=u(48086),p=u(3182),D=u(67294),O=u(78009),I=u(16894),_=u(71194),L=u(50146),G=u(57663),K=u(71577),ae=u(63185),Q=u(9676),ie=u(77883),N=u(85986),se=u(9715),C=u(55843),A=u(47673),U=u(4107),V=u(43358),M=u(34041),d=u(14965),E=u(91774),ee=u(33852),r=u(85893),n=E.Z.RangePicker,e=function(v){console.log("props",v);var Y=M.Z.Option,h=M.Z.OptGroup;return(0,r.jsx)(L.Z,{title:"\u8BBE\u7F6E\u53EF\u9884\u8BA2\u6570\u91CF",width:640,visible:v.createModalVisible,bodyStyle:{padding:"32px 40px 48px"},footer:null,onCancel:function(){v.onCancel()},destroyOnClose:!0,children:(0,r.jsxs)(C.Z,{labelCol:{span:4},layout:"horizontal",preserve:!1,initialValues:v.values,onFinish:v.onFinish,children:[(0,r.jsx)(C.Z.Item,{name:"id",hidden:!0,children:(0,r.jsx)(U.Z,{})}),(0,r.jsx)(C.Z.Item,{name:"qty",label:"\u9884\u8BA2\u6570\u91CF",rules:[{required:!0}],children:(0,r.jsx)(N.Z,{min:0,placeholder:"\u9884\u8BA2\u6570\u91CF"})}),(0,r.jsx)(C.Z.Item,{name:"mealType",label:"\u7528\u9910\u65F6\u6BB5",rules:[{required:!0}],children:(0,r.jsx)(Q.Z.Group,{options:[{label:"\u65E9\u9910",value:"1"},{label:"\u5348\u9910",value:"2"},{label:"\u665A\u9910",value:"3"}]})}),(0,r.jsx)(C.Z.Item,{name:"week",label:"\u661F\u671F",rules:[{required:!0}],children:(0,r.jsx)(Q.Z.Group,{options:[{label:"\u4E00",value:"1"},{label:"\u4E8C",value:"2"},{label:"\u4E09",value:"3"},{label:"\u56DB",value:"4"},{label:"\u4E94",value:"5"},{label:"\u516D",value:"6"},{label:"\u65E5",value:"0"}]})}),(0,r.jsx)(C.Z.Item,{children:(0,r.jsx)(K.Z,{type:"primary",htmlType:"submit",children:"\u4FDD\u5B58"})})]})})},i=e,t=u(48971);function s(c){return a.apply(this,arguments)}function a(){return a=(0,p.Z)((0,S.Z)().mark(function c(v){return(0,S.Z)().wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return h.abrupt("return",(0,t.WY)("/kitchen/api/Reservation/GetPage",{method:"Post",data:v}));case 1:case"end":return h.stop()}},c)})),a.apply(this,arguments)}function o(c){return y.apply(this,arguments)}function y(){return y=(0,p.Z)((0,S.Z)().mark(function c(v){return(0,S.Z)().wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return h.abrupt("return",(0,t.WY)("/kitchen/api/Reservation/add",{method:"POST",data:v}));case 1:case"end":return h.stop()}},c)})),y.apply(this,arguments)}function $(c){return T.apply(this,arguments)}function T(){return T=(0,p.Z)((0,S.Z)().mark(function c(v){return(0,S.Z)().wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return h.abrupt("return",(0,t.WY)("/kitchen/api/goods-type/goods-types",{method:"POST",data:v}));case 1:case"end":return h.stop()}},c)})),T.apply(this,arguments)}var R=u(30381),w=u.n(R),P=function(){var c=(0,p.Z)((0,S.Z)().mark(function v(Y){var h;return(0,S.Z)().wrap(function(j){for(;;)switch(j.prev=j.next){case 0:return console.log("fields",Y),h=x.default.loading("\u6B63\u5728\u8BBE\u7F6E\u53EF\u9884\u8BA2\u6570\u91CF"),j.prev=2,j.next=5,o({goodsId:Y.id,qty:Y.qty,mealType:Y.mealType,week:Y.week}).then(function(X){X.data?x.default.success("\u8BBE\u7F6E\u53EF\u9884\u8BA2\u6570\u91CF\u6210\u529F"):x.default.error("\u8BBE\u7F6E\u53EF\u9884\u8BA2\u6570\u91CF\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01")});case 5:return j.abrupt("return",!0);case 8:return j.prev=8,j.t0=j.catch(2),h(),j.abrupt("return",!1);case 12:case"end":return j.stop()}},v,null,[[2,8]])}));return function(Y){return c.apply(this,arguments)}}(),B=function(){var v=(0,D.useState)([]),Y=(0,F.Z)(v,2),h=Y[0],te=Y[1],j=(0,D.useState)(!1),X=(0,F.Z)(j,2),de=X[0],ne=X[1],q=(0,D.useRef)(),ce=(0,D.useState)(),ue=(0,F.Z)(ce,2),fe=ue[0],re=ue[1],he=(0,D.useState)([]),oe=(0,F.Z)(he,2),pe=oe[0],me=oe[1];(0,D.useEffect)(function(){function b(){$({current:1,pageSize:1e3}).then(function(Z){var m=Z.data.data;m.forEach(function(f){f.text=f.goodsType_Name,f.goodsTypeId=f.id}),te(m)})}b()},[]);var ve=[{title:"\u4E3B\u952E",dataIndex:"id",hideInTable:!0,hideInSearch:!0},{title:"\u56FE\u7247\u5730\u5740",dataIndex:"imgUrl",hideInTable:!0,hideInSearch:!0},{title:"\u7F16\u7801",dataIndex:"code",valueType:"textarea"},{title:"\u540D\u79F0",dataIndex:"name",valueType:"textarea"},{title:"\u57FA\u7840\u4EF7\u683C",dataIndex:"price",hideInForm:!0,renderText:function(Z){return"".concat(Z,"\xA5")},hideInSearch:!0},{title:"\u4F1A\u5458\u4EF7",dataIndex:"vipPrice",hideInForm:!0,renderText:function(Z){return"".concat(Z,"\xA5")},hideInSearch:!0},{title:"\u5546\u54C1\u5C0F\u7C7B",dataIndex:"goodsTypeName",hideInForm:!0,hideInSearch:!0},{title:"\u5546\u54C1\u7C7B\u578B",dataIndex:"goodsTypeId",hideInForm:!0,hideInTable:!0,valueEnum:h},{title:"\u9884\u8BA2\u6570\u91CF",dataIndex:"qty"},{title:"\u7528\u9910\u65F6\u6BB5",dataIndex:"mealType",render:function(Z,m){var f="";if(m.mealType)for(var l=m.mealType.split(","),g=0;g=n?r:""+Array(n+1-i.length).join(e)+r},se={s:N,z:function(r){var n=-r.utcOffset(),e=Math.abs(n),i=Math.floor(e/60),t=e%60;return(n<=0?"+":"-")+N(i,2,"0")+":"+N(t,2,"0")},m:function r(n,e){if(n.date()1)return r(a[0])}else{var o=n.name;A[o]=n,t=o}return!i&&t&&(C=t),t||!i&&C},M=function(r,n){if(U(r))return r.clone();var e=typeof n=="object"?n:{};return e.date=r,e.args=arguments,new E(e)},d=se;d.l=V,d.i=U,d.w=function(r,n){return M(r,{locale:n.$L,utc:n.$u,x:n.$x,$offset:n.$offset})};var E=function(){function r(e){this.$L=V(e.locale,null,!0),this.parse(e)}var n=r.prototype;return n.parse=function(e){this.$d=function(i){var t=i.date,s=i.utc;if(t===null)return new Date(NaN);if(d.u(t))return new Date;if(t instanceof Date)return new Date(t);if(typeof t=="string"&&!/Z$/i.test(t)){var a=t.match(ae);if(a){var o=a[2]-1||0,y=(a[7]||"0").substring(0,3);return s?new Date(Date.UTC(a[1],o,a[3]||1,a[4]||0,a[5]||0,a[6]||0,y)):new Date(a[1],o,a[3]||1,a[4]||0,a[5]||0,a[6]||0,y)}}return new Date(t)}(e),this.$x=e.x||{},this.init()},n.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},n.$utils=function(){return d},n.isValid=function(){return this.$d.toString()!==K},n.isSame=function(e,i){var t=M(e);return this.startOf(i)<=t&&t<=this.endOf(i)},n.isAfter=function(e,i){return M(e)=n?r:""+Array(n+1-i.length).join(e)+r},se={s:N,z:function(r){var n=-r.utcOffset(),e=Math.abs(n),i=Math.floor(e/60),t=e%60;return(n<=0?"+":"-")+N(i,2,"0")+":"+N(t,2,"0")},m:function r(n,e){if(n.date()1)return r(a[0])}else{var o=n.name;A[o]=n,t=o}return!i&&t&&(C=t),t||!i&&C},M=function(r,n){if(U(r))return r.clone();var e=typeof n=="object"?n:{};return e.date=r,e.args=arguments,new E(e)},l=se;l.l=V,l.i=U,l.w=function(r,n){return M(r,{locale:n.$L,utc:n.$u,x:n.$x,$offset:n.$offset})};var E=function(){function r(e){this.$L=V(e.locale,null,!0),this.parse(e)}var n=r.prototype;return n.parse=function(e){this.$d=function(i){var t=i.date,s=i.utc;if(t===null)return new Date(NaN);if(l.u(t))return new Date;if(t instanceof Date)return new Date(t);if(typeof t=="string"&&!/Z$/i.test(t)){var a=t.match(ae);if(a){var o=a[2]-1||0,y=(a[7]||"0").substring(0,3);return s?new Date(Date.UTC(a[1],o,a[3]||1,a[4]||0,a[5]||0,a[6]||0,y)):new Date(a[1],o,a[3]||1,a[4]||0,a[5]||0,a[6]||0,y)}}return new Date(t)}(e),this.$x=e.x||{},this.init()},n.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},n.$utils=function(){return l},n.isValid=function(){return this.$d.toString()!==K},n.isSame=function(e,i){var t=M(e);return this.startOf(i)<=t&&t<=this.endOf(i)},n.isAfter=function(e,i){return M(e)1&&arguments[1]!==void 0?arguments[1]:"";return(0,u.WY)("/kitchen/api/GateInfo/Enable",{method:"POST",data:e,headers:{TenantId:G}})},GetGateListByStorePage:function(e,G,b){var se=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"";return(0,u.WY)("/kitchen/api/GateInfo/gatelist?StoreId=".concat(e,"&Current=").concat(G,"&PageSize=").concat(b),{method:"GET",headers:{TenantId:se}})},GetGateListByStorePageNew:function(e,G,b){var se=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"";return(0,u.WY)("/kitchen/api/one-card/gate-list?StoreId=".concat(e,"&Current=").concat(G,"&PageSize=").concat(b),{method:"GET",headers:{TenantId:se}})},GetGateListByStoreList:function(e){return(0,u.WY)("/kitchen/api/GateInfo/gatealllist?StoreId=".concat(e),{method:"GET"})},UpdateGateInfo:function(e){var G=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return(0,u.WY)("/kitchen/api/GateInfo/Update",{method:"POST",data:e,headers:{TenantId:G}})},UpdateGateInfoNew:function(e){var G=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return(0,u.WY)("/kitchen/api/one-card",{method:"PUT",data:e,headers:{TenantId:G}})},PayCardAdd:function(e){return(0,u.WY)("/kitchen/api/PayCard/add",{method:"POST",data:e})},PayCardEnable:function(e){return(0,u.WY)("/kitchenapi/PayCard/enable",{method:"POST",data:e})},PayCardByGateId:function(e,G,b){return(0,u.WY)("/kitchen/api/PayCard/gateList?GateId=".concat(e,"&Current=").concat(G,"&PageSize=").concat(b),{method:"GET"})},UpdatePayCardInfo:function(e){return(0,u.WY)("/kitchen/api/PayCard/update",{method:"POST",data:e})},GetCosRequestURL:function(e){return(0,u.WY)("/kitchen/api/systemconfig/GetCosRequestSignURL",{method:"POST",data:e})},GetMemberAccountPageList:function(e){return(0,u.WY)("/kitchen/api/member/member-account-page-list",{method:"POST",data:e})},UpdateMemberAccountStatus:function(e){return(0,u.WY)("/kitchen/api/member/member-account-status",{method:"POST",data:e})},GetMemberCardPageList:function(e){return(0,u.WY)("/kitchen/api/member/mmenber-card-page",{method:"POST",data:e})},AddMemberCard:function(e){return(0,u.WY)("/kitchen/api/member/mmenber-card",{method:"POST",data:e})},UpdateMemberCardState:function(e){return(0,u.WY)("/kitchen/api/member/mmenber-card-state",{method:"PUT",data:e})},GetDicList:function(e){return(0,u.WY)("/kitchen/api/dict-data/dic-list/".concat(e),{method:"Get"})},AddGateSetUp:function(e){return(0,u.WY)("/kitchen/api/GateInfo/AddGateSetUp",{method:"POST",data:e})},GetFoodList:function(e){return(0,u.WY)("/kitchen/api/dict-data/dic-list/".concat(e),{method:"Get"})},AddGateFood:function(e){return(0,u.WY)("/kitchen/api/GateInfo/AddGateFood",{method:"POST",data:e})},GetGoodsByMenuIdPage:function(e){return(0,u.WY)("/kitchen/api/FoodMenu/GetGoodsByMenuIdPage",{method:"POST",data:(0,pe.Z)({},e)})}}}}]); +(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[4769,1322],{41287:function(le){le.exports={table_search_item:"table_search_item___2mgJV"}},5697:function(le,re,n){"use strict";n.r(re),n.d(re,{default:function(){return Re}});var pe=n(57338),u=n(273),i=n(13062),e=n(71230),G=n(89032),b=n(15746),se=n(47673),ce=n(4107),Xe=n(57663),ge=n(71577),qe=n(43358),B=n(34041),S=n(39428),_e=n(34792),v=n(48086),I=n(3182),et=n(9715),P=n(55843),m=n(2824),d=n(67294),fe=n(78009),Te=n(49101),Ee=n(16894),Ae=n(41287),Ce=n.n(Ae),ye=n(3996),Oe=n(9669),Fe=n.n(Oe),T=n(66050),tt=n(71194),Ze=n(50146),at=n(58996),Ge=n(77933),ue=n(86582),t=n(85893),ke=function(g){var me=(0,d.useRef)(),_=(0,d.useState)(!0),E=(0,m.Z)(_,2),ee=E[0],oe=E[1],A="sendCoupon",O=(0,d.useState)(),W=(0,m.Z)(O,2),x=W[0],F=W[1],M=(0,d.useState)([]),R=(0,m.Z)(M,2),z=R[0],L=R[1],N=(0,d.useState)([]),Y=(0,m.Z)(N,2),$=Y[0],te=Y[1],V=(0,d.useState)([]),w=(0,m.Z)(V,2),H=w[0],k=w[1];(0,d.useEffect)(function(){var c=function(){var s=(0,I.Z)((0,S.Z)().mark(function o(h){return(0,S.Z)().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:T.Z.GetDicList("GateSetUp").then(function(C){var ie=C.data,U=[];C.succeeded&&ie.forEach(function(j){U.push({key:j.value,title:j.value,description:h,disabled:!1,tag:j.value})}),k(U),te(U)});case 1:case"end":return a.stop()}},o)}));return function(h){return s.apply(this,arguments)}}();c()},[]);var ae=function(s,o,h){F(s)},ne=function(s,o){L([].concat((0,ue.Z)(s),(0,ue.Z)(o)))},J=function(s,o){},D=function(){var c=(0,I.Z)((0,S.Z)().mark(function s(o,h){return(0,S.Z)().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:if(o!="right"){a.next=2;break}return a.abrupt("return");case 2:case"end":return a.stop()}},s)}));return function(o,h){return c.apply(this,arguments)}}(),Q=function(){var c=(0,I.Z)((0,S.Z)().mark(function s(o){var h;return(0,S.Z)().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:if(!(x==null||x.length<=0)){a.next=3;break}return v.default.error("\u8BF7\u9009\u62E9\u663E\u793A\u533A\u57DF"),a.abrupt("return");case 3:return v.default.loading("\u6B63\u5728\u6DFB\u52A0...",A),a.prev=4,h=[],x.forEach(function(C){h.push({Key:C,GateId:o.values.id,IsShow:!0})}),T.Z.AddGateSetUp(h).then(function(C){v.default.destroy(A),C.data?(v.default.success("\u6DFB\u52A0\u6210\u529F"),F([]),L([]),o.onCancel()):v.default.error("\u6DFB\u52A0\u5931\u8D25")}),a.abrupt("return",!0);case 11:return a.prev=11,a.t0=a.catch(4),console.log(a.t0),v.default.destroy(A),v.default.error("\u6DFB\u52A0\u8BF7\u91CD\u8BD5\uFF01"),a.abrupt("return",!1);case 17:case"end":return a.stop()}},s,null,[[4,11]])}));return function(o){return c.apply(this,arguments)}}();return(0,t.jsx)(Ze.Z,{destroyOnClose:!0,visible:g.shows,width:700,onCancel:function(){k($),g.onCancel()},onOk:function(){Q(g),g.actionRef.current.reload()},children:(0,t.jsx)(fe.ZP,{header:{title:"\u8BBE\u7F6E\u5C4F\u5E55\u663E\u793A",breadcrumb:{}},children:(0,t.jsx)(Ge.Z,{oneWay:ee,showSearch:!0,showSelectAll:!0,onSearch:D,dataSource:H,titles:["\u672A\u9009\u62E9","\u5DF2\u9009\u4E2D"],targetKeys:x,selectedKeys:z,onChange:ae,onSelectChange:ne,onScroll:J,render:function(s){return s.title},pagination:{pageSize:8},listStyle:{width:500,height:400}})})})},Ue=ke,Be=function(g){var me=(0,d.useRef)(),_=(0,d.useState)(!0),E=(0,m.Z)(_,2),ee=E[0],oe=E[1],A="setGateFood",O=(0,d.useState)(),W=(0,m.Z)(O,2),x=W[0],F=W[1],M=(0,d.useState)([]),R=(0,m.Z)(M,2),z=R[0],L=R[1],N=(0,d.useState)([]),Y=(0,m.Z)(N,2),$=Y[0],te=Y[1],V=(0,d.useState)([]),w=(0,m.Z)(V,2),H=w[0],k=w[1];(0,d.useEffect)(function(){var c=function(){var s=(0,I.Z)((0,S.Z)().mark(function o(h){return(0,S.Z)().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:T.Z.GetGoodsByMenuIdPage({current:1,pageSize:5e3}).then(function(C){var ie=C.data.data,U=[];C.succeeded&&ie.forEach(function(j){U.push({key:j.id,title:j.name,description:h,disabled:!1,tag:j.name})}),k(U),te(U)});case 1:case"end":return a.stop()}},o)}));return function(h){return s.apply(this,arguments)}}();c()},[]);var ae=function(s,o,h){F(s)},ne=function(s,o){L([].concat((0,ue.Z)(s),(0,ue.Z)(o)))},J=function(s,o){},D=function(){var c=(0,I.Z)((0,S.Z)().mark(function s(o,h){return(0,S.Z)().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:if(o!="right"){a.next=2;break}return a.abrupt("return");case 2:case"end":return a.stop()}},s)}));return function(o,h){return c.apply(this,arguments)}}(),Q=function(){var c=(0,I.Z)((0,S.Z)().mark(function s(o){var h;return(0,S.Z)().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:if(!(x==null||x.length<=0)){a.next=3;break}return v.default.error("\u8BF7\u9009\u62E9\u83DC\u54C1"),a.abrupt("return");case 3:return v.default.loading("\u6B63\u5728\u6DFB\u52A0...",A),a.prev=4,h=[],x.forEach(function(C){h.push({FoodId:C,GateId:o.values.id,FoodName:""})}),T.Z.AddGateFood(h).then(function(C){v.default.destroy(A),C.data?(v.default.success("\u6DFB\u52A0\u6210\u529F"),F([]),L([]),o.onCancel()):v.default.error("\u6DFB\u52A0\u5931\u8D25")}),a.abrupt("return",!0);case 11:return a.prev=11,a.t0=a.catch(4),console.log(a.t0),v.default.destroy(A),v.default.error("\u6DFB\u52A0\u8BF7\u91CD\u8BD5\uFF01"),a.abrupt("return",!1);case 17:case"end":return a.stop()}},s,null,[[4,11]])}));return function(o){return c.apply(this,arguments)}}();return(0,t.jsx)(Ze.Z,{destroyOnClose:!0,visible:g.shows,width:700,onCancel:function(){k($),g.onCancel()},onOk:function(){Q(g),g.actionRef.current.reload()},children:(0,t.jsx)(fe.ZP,{header:{title:"\u8BBE\u7F6E\u5C4F\u5E55\u663E\u793A\u83DC\u54C1",breadcrumb:{}},children:(0,t.jsx)(Ge.Z,{oneWay:ee,showSearch:!0,showSelectAll:!0,onSearch:D,dataSource:H,titles:["\u672A\u9009\u62E9","\u5DF2\u9009\u4E2D"],targetKeys:x,selectedKeys:z,onChange:ae,onSelectChange:ne,onScroll:J,render:function(s){return s.title},pagination:{pageSize:8},listStyle:{width:500,height:400}})})})},We=Be,Me=function(){var g=(0,d.useRef)(),me=P.Z.useForm(),_=(0,m.Z)(me,1),E=_[0],ee=(0,d.useState)(!1),oe=(0,m.Z)(ee,2),A=oe[0],O=oe[1],W=(0,d.useState)({id:""}),x=(0,m.Z)(W,2),F=x[0],M=x[1],R=(0,d.useState)(!1),z=(0,m.Z)(R,2),L=z[0],N=z[1],Y=(0,d.useState)(!1),$=(0,m.Z)(Y,2),te=$[0],V=$[1],w=(0,d.useState)([]),H=(0,m.Z)(w,2),k=H[0],ae=H[1],ne=(0,d.useState)(""),J=(0,m.Z)(ne,2),D=J[0],Q=J[1],c=(0,d.useState)(1),s=(0,m.Z)(c,2),o=s[0],h=s[1],K=(0,d.useState)(10),a=(0,m.Z)(K,2),C=a[0],ie=a[1],U=(0,d.useState)(null),j=(0,m.Z)(U,2),X=j[0],be=j[1],Le=(0,d.useState)(""),Ie=(0,m.Z)(Le,2),he=Ie[0],Se=Ie[1],Ye={},we={placeholder:"\u8BF7\u8F93\u5165\u5927\u5C4F\u6A2A\u5E45...",MENU_CONF:{fontSize:{fontSizeList:["10px","20px","40px","60px","80px","100px","150px","180px","200px"]},uploadImage:{customUpload:function(r,l){return(0,I.Z)((0,S.Z)().mark(function p(){var y,q,Z;return(0,S.Z)().wrap(function(ve){for(;;)switch(ve.prev=ve.next){case 0:y=r.name.lastIndexOf("."),q=r.name.substr(y+1),Z=null,T.Z.GetCosRequestURL({directory:"kitchen",fileExtension:q,method:"PUT"}).then(function(de){var Je=de.allUrl,Pe=new FileReader;Pe.readAsArrayBuffer(r),Pe.onload=function(Qe){Z=Qe.target.result,Fe().put(Je,Z).then(function(je){(je.status==200||je.statusText=="OK")&&(l(de.seeUrl,de.seeUrl,de.seeUrl),v.default.success("\u4E0A\u4F20\u6210\u529F\uFF01"))})}});case 4:case"end":return ve.stop()}},p)}))()}}}};(0,d.useEffect)(function(){return function(){X!=null&&(X.destroy(),be(null))}},[X]);var De=function(r){M(r),O(!0),Se(r.remaek),E.setFieldsValue(r)},Ke=function(r){M(r),N(!0)},ze=function(r){M(r),V(!0)},Ne=function(){O(!0),X&&X.setHtml(""),Se(""),E.resetFields()},$e=function(){var f=(0,I.Z)((0,S.Z)().mark(function r(l){var p,y;return(0,S.Z)().wrap(function(Z){for(;;)switch(Z.prev=Z.next){case 0:if(!l.id){Z.next=8;break}return l.remaek=he,Z.next=4,T.Z.UpdateGateInfo(l);case 4:p=Z.sent,p.statusCode===200?(v.default.success("\u66F4\u65B0\u6863\u53E3\u6210\u529F\uFF01"),O(!1),g.current.reload()):v.default.error(p.errors||"\u66F4\u65B0\u6863\u53E3\u5931\u8D25"),Z.next=13;break;case 8:return l.remaek=he,Z.next=11,T.Z.AddGate(l);case 11:y=Z.sent,y.statusCode===200?(v.default.success("\u65B0\u589E\u6863\u53E3\u6210\u529F\uFF01"),O(!1),g.current.reload()):v.default.error(y.errors||"\u65B0\u589E\u6863\u53E3\u5931\u8D25");case 13:case"end":return Z.stop()}},r)}));return function(l){return f.apply(this,arguments)}}(),Ve=[{title:"\u6863\u53E3\u540D\u79F0",dataIndex:"name",ellipsis:!0},{title:"\u5F52\u5C5E\u95E8\u5E97",dataIndex:"storeId",render:function(r,l){var p=k.find(function(y){return y.id===l.storeId});if(p)return(0,t.jsx)("div",{children:p.store_Name})}},{title:"\u5C5E\u6027",dataIndex:"mode",valueType:"select",valueEnum:{1:{text:"\u56FA\u5B9A",status:"Success"},2:{text:"\u81EA\u7531\u8BBE\u5B9A",status:"Success"}}},{title:"\u91D1\u989D",dataIndex:"price"},{title:"\u72B6\u6001",dataIndex:"status",valueType:"select",valueEnum:{0:{text:"\u6B63\u5E38",status:"Success"},1:{text:"\u7981\u7528",status:"Error"},2:{text:"\u5220\u9664",status:"Error"}}},{title:"\u64CD\u4F5C",valueType:"option",key:"option",render:function(r,l,p,y){return[(0,t.jsx)("a",{onClick:function(){return De(l)},children:"\u66F4\u65B0"}),(0,t.jsx)("a",{onClick:function(){return ze(l)},children:"\u8BBE\u7F6E\u83DC\u54C1"}),(0,t.jsx)("a",{onClick:function(){return Ke(l)},children:"\u8BBE\u7F6E\u5C4F\u5E55\u663E\u793A"})]}}],He=function(){var f=(0,I.Z)((0,S.Z)().mark(function r(){var l;return(0,S.Z)().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:return y.next=2,T.Z.GetAllStore();case 2:l=y.sent,l.isSuccess?(ae(l.data),Q(l.data[0].id),g.current.reload()):v.default.error(l.msg||"\u83B7\u53D6\u5E97\u94FA\u5217\u8868\u5931\u8D25");case 4:case"end":return y.stop()}},r)}));return function(){return f.apply(this,arguments)}}();return(0,d.useEffect)(function(){He()},[]),(0,t.jsx)(fe.ZP,{children:(0,t.jsxs)("div",{className:Ce().member_card_container,children:[(0,t.jsx)(Ee.ZP,{columns:Ve,actionRef:g,request:(0,I.Z)((0,S.Z)().mark(function f(){var r;return(0,S.Z)().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:if(!D){p.next=6;break}return p.next=3,T.Z.GetGateListByStorePage(D,o,C);case 3:if(r=p.sent,r.statusCode!==200){p.next=6;break}return p.abrupt("return",{data:r.data.data,success:!0,total:r.data.total});case 6:case"end":return p.stop()}},f)})),cardBordered:!0,editable:{type:"multiple"},rowKey:"id",search:!1,options:{setting:{listsHeight:400}},pagination:{pageSize:C,onChange:function(r){return h(r)}},dateFormatter:"string",headerTitle:"\u6863\u53E3\u7BA1\u7406",toolBarRender:function(){return[(0,t.jsxs)("div",{className:Ce().table_search_item,children:[(0,t.jsx)("div",{children:"\u5F53\u524D\u95E8\u5E97\uFF1A"}),(0,t.jsx)(B.Z,{style:{width:300},value:D,onChange:function(l){Q(l),g.current.reload()},children:k.map(function(r){return(0,t.jsx)(Option,{value:r.id,children:r.store_Name},r.id)})})]}),(0,t.jsx)(ge.Z,{icon:(0,t.jsx)(Te.Z,{}),type:"primary",onClick:Ne,children:"\u65B0\u5EFA"},"button")]}}),(0,t.jsx)(u.Z,{destroyOnClose:!0,width:"100%",title:F.id?"\u7F16\u8F91\u6863\u53E3":"\u6DFB\u52A0\u6863\u53E3",visible:A,onClose:function(){return O(!1)},children:(0,t.jsxs)(P.Z,{name:"basic",onFinish:$e,form:E,labelCol:{span:4},children:[(0,t.jsx)(P.Z.Item,{label:"id",name:"id",hidden:!0,children:(0,t.jsx)(ce.Z,{size:"large"})}),(0,t.jsxs)(e.Z,{children:[(0,t.jsx)(b.Z,{xs:12,sm:12,md:12,lg:12,xl:12,children:(0,t.jsx)(P.Z.Item,{label:"\u6863\u53E3\u540D\u79F0",name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6863\u53E3\u540D\u79F0\uFF01"}],children:(0,t.jsx)(ce.Z,{size:"large"})})}),(0,t.jsx)(b.Z,{xs:12,sm:12,md:12,lg:12,xl:12,children:(0,t.jsx)(P.Z.Item,{label:"\u5F52\u5C5E\u95E8\u5E97",name:"storeId",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5F52\u5C5E\u95E8\u5E97\uFF01"}],children:(0,t.jsx)(B.Z,{size:"large",children:k.map(function(f){return(0,t.jsx)(B.Z.Option,{value:f.id,children:f.store_Name},f.id)})})})}),(0,t.jsx)(b.Z,{xs:12,sm:12,md:12,lg:12,xl:12,children:(0,t.jsx)(P.Z.Item,{label:"\u5C5E\u6027",name:"mode",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u9009\u62E9\u5C5E\u6027\uFF01"}],children:(0,t.jsxs)(B.Z,{size:"large",children:[(0,t.jsx)(B.Z.Option,{value:1,children:"\u56FA\u5B9A\u91D1\u989D"}),(0,t.jsx)(B.Z.Option,{value:2,children:"\u81EA\u7531\u8BBE\u5B9A"})]})})}),(0,t.jsx)(b.Z,{xs:12,sm:12,md:12,lg:12,xl:12,children:(0,t.jsx)(P.Z.Item,{noStyle:!0,shouldUpdate:function(r,l){return r.mode!==l.mode},children:function(r){var l=r.getFieldValue;return l("mode")=="1"?(0,t.jsx)(P.Z.Item,{label:"\u91D1\u989D",name:"price",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u91D1\u989D\uFF01"}],children:(0,t.jsx)(ce.Z,{size:"large"})}):null}})}),(0,t.jsx)(b.Z,{xs:12,sm:12,md:12,lg:12,xl:12,children:(0,t.jsx)(P.Z.Item,{label:"\u72B6\u6001",name:"status",children:(0,t.jsxs)(B.Z,{size:"large",defaultValue:1,children:[(0,t.jsx)(Option,{value:0,children:"\u6B63\u5E38"}),(0,t.jsx)(Option,{value:1,children:"\u7981\u7528"})]})})})]}),(0,t.jsxs)("div",{style:{border:"1px solid #ccc",zIndex:100},children:[(0,t.jsx)(ye.o,{editor:X,defaultConfig:Ye,mode:"default",style:{borderBottom:"1px solid #ccc"}}),(0,t.jsx)(ye.M,{defaultConfig:we,value:he,onCreated:be,onChange:function(r){return Se(r.getHtml())},mode:"default",style:{height:"500px",overflowY:"hidden"}})]}),(0,t.jsx)(P.Z.Item,{children:(0,t.jsx)(ge.Z,{type:"primary",htmlType:"submit",style:{marginTop:"10px"},children:"\u786E\u5B9A"})})]})}),(0,t.jsx)(Ue,{shows:L,values:F,actionRef:g,onCancel:function(){N(!1)}}),(0,t.jsx)(We,{shows:te,values:F,actionRef:g,onCancel:function(){V(!1)}})]})})},Re=Me},66050:function(le,re,n){"use strict";var pe=n(11849),u=n(48971);re.Z={GetAllStore:function(){return(0,u.WY)("/kitchen/api/StoreHelper/GetAllStore",{method:"GET",headers:{TenantId:""}})},GetMemberListByPage:function(e){return(0,u.WY)("/kitchen/api/member/member-page-query",{method:"POST",data:e})},OnBindMember:function(e){return(0,u.WY)("/kitchen/api/member/member-binding-cards",{method:"POST",data:e})},GetMemberAccountCardConsRecord:function(e){return(0,u.WY)("/kitchen/api/member/member-account-amount-page",{method:"POST",data:e})},GetMemberAccountRecordTotal:function(e){return(0,u.WY)("/kitchen/api/member/member-account-record-total",{method:"POST",data:e})},AddGate:function(e){return(0,u.WY)("/kitchen/api/GateInfo/add",{method:"POST",data:e})},EnableGate:function(e){var G=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return(0,u.WY)("/kitchen/api/GateInfo/Enable",{method:"POST",data:e,headers:{TenantId:G}})},GetGateListByStorePage:function(e,G,b){var se=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"";return(0,u.WY)("/kitchen/api/GateInfo/gatelist?StoreId=".concat(e,"&Current=").concat(G,"&PageSize=").concat(b),{method:"GET",headers:{TenantId:se}})},GetGateListByStorePageNew:function(e,G,b){var se=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"";return(0,u.WY)("/kitchen/api/one-card/gate-list?StoreId=".concat(e,"&Current=").concat(G,"&PageSize=").concat(b),{method:"GET",headers:{TenantId:se}})},GetGateListByStoreList:function(e){return(0,u.WY)("/kitchen/api/GateInfo/gatealllist?StoreId=".concat(e),{method:"GET"})},UpdateGateInfo:function(e){var G=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return(0,u.WY)("/kitchen/api/GateInfo/Update",{method:"POST",data:e,headers:{TenantId:G}})},UpdateGateInfoNew:function(e){var G=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return(0,u.WY)("/kitchen/api/one-card",{method:"PUT",data:e,headers:{TenantId:G}})},PayCardAdd:function(e){return(0,u.WY)("/kitchen/api/PayCard/add",{method:"POST",data:e})},PayCardEnable:function(e){return(0,u.WY)("/kitchenapi/PayCard/enable",{method:"POST",data:e})},PayCardByGateId:function(e,G,b){return(0,u.WY)("/kitchen/api/PayCard/gateList?GateId=".concat(e,"&Current=").concat(G,"&PageSize=").concat(b),{method:"GET"})},UpdatePayCardInfo:function(e){return(0,u.WY)("/kitchen/api/PayCard/update",{method:"POST",data:e})},GetCosRequestURL:function(e){return(0,u.WY)("/kitchen/api/systemconfig/GetCosRequestSignURL",{method:"POST",data:e})},GetMemberAccountPageList:function(e){return(0,u.WY)("/kitchen/api/member/member-account-page-list",{method:"POST",data:e})},UpdateMemberAccountStatus:function(e){return(0,u.WY)("/kitchen/api/member/member-account-status",{method:"POST",data:e})},GetMemberCardPageList:function(e){return(0,u.WY)("/kitchen/api/member/mmenber-card-page",{method:"POST",data:e})},AddMemberCard:function(e){return(0,u.WY)("/kitchen/api/member/mmenber-card",{method:"POST",data:e})},UpdateMemberCardState:function(e){return(0,u.WY)("/kitchen/api/member/mmenber-card-state",{method:"PUT",data:e})},GetDicList:function(e){return(0,u.WY)("/kitchen/api/dict-data/dic-list/".concat(e),{method:"Get"})},AddGateSetUp:function(e){return(0,u.WY)("/kitchen/api/GateInfo/AddGateSetUp",{method:"POST",data:e})},GetFoodList:function(e){return(0,u.WY)("/kitchen/api/dict-data/dic-list/".concat(e),{method:"Get"})},AddGateFood:function(e){return(0,u.WY)("/kitchen/api/GateInfo/AddGateFood",{method:"POST",data:e})},GetGoodsByMenuIdPage:function(e){return(0,u.WY)("/kitchen/api/FoodMenu/GetGoodsByMenuIdPage",{method:"POST",data:(0,pe.Z)({},e)})}}}}]); diff --git a/dist/p__card__gateAdmin.5e0d045d.async.js b/dist/p__card__gateAdmin.1cea148c.async.js similarity index 89% rename from dist/p__card__gateAdmin.5e0d045d.async.js rename to dist/p__card__gateAdmin.1cea148c.async.js index 45bec92..4ccc6c8 100644 --- a/dist/p__card__gateAdmin.5e0d045d.async.js +++ b/dist/p__card__gateAdmin.1cea148c.async.js @@ -1 +1 @@ -(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[579],{40335:function(j,M,n){"use strict";n.r(M);var y=n(57338),a=n(273),s=n(57663),e=n(71577),_=n(13062),p=n(71230),i=n(89032),E=n(15746),S=n(47673),c=n(4107),O=n(57106),G=n(6129),K=n(43358),v=n(34041),m=n(39428),F=n(34792),g=n(48086),I=n(3182),U=n(9715),P=n(55843),C=n(2824),h=n(67294),se=n(16894),Y=n(3996),de=n(9669),ue=n.n(de),b=n(66050),oe=n(48971),t=n(85893),ie=function(){var L=(0,h.useRef)(),le=P.Z.useForm(),ce=(0,C.Z)(le,1),k=ce[0],_e=(0,h.useState)([]),z=(0,C.Z)(_e,2),W=z[0],me=z[1],fe=(0,h.useState)(""),N=(0,C.Z)(fe,2),T=N[0],he=N[1],Ee=(0,h.useState)(""),w=(0,C.Z)(Ee,2),x=w[0],Pe=w[1],pe=(0,h.useState)(1),$=(0,C.Z)(pe,2),Oe=$[0],ve=$[1],ge=(0,h.useState)(100),H=(0,C.Z)(ge,2),V=H[0],Le=H[1],Ce=(0,h.useState)(!1),J=(0,C.Z)(Ce,2),Ie=J[0],Z=J[1],ye=[{title:"\u6863\u53E3\u540D\u79F0",dataIndex:"name",ellipsis:!0},{title:"\u5F52\u5C5E\u95E8\u5E97",dataIndex:"storeId",render:function(r,o){var d=W.find(function(f){return f.id===o.storeId});if(d)return(0,t.jsx)("div",{children:d.store_Name})}},{title:"\u5C5E\u6027",dataIndex:"mode",valueType:"select",valueEnum:{1:{text:"\u56FA\u5B9A",status:"Success"},2:{text:"\u81EA\u7531\u8BBE\u5B9A",status:"Success"}}},{title:"\u91D1\u989D",dataIndex:"price"},{title:"\u72B6\u6001",dataIndex:"status",valueType:"select",valueEnum:{0:{text:"\u6B63\u5E38",status:"Success"},1:{text:"\u7981\u7528",status:"Error"},2:{text:"\u5220\u9664",status:"Error"}}},{title:"\u64CD\u4F5C",valueType:"option",key:"option",render:function(r,o,d,f){return[(0,t.jsx)("a",{onClick:function(){return Me(o)},children:"\u66F4\u65B0"})]}}],Me=function(r){Z(!0),te(r.remaek),k.setFieldsValue(r)},Se=(0,h.useState)(null),Q=(0,C.Z)(Se,2),A=Q[0],X=Q[1],Te=(0,h.useState)(""),q=(0,C.Z)(Te,2),ee=q[0],te=q[1],De={},be={placeholder:"\u8BF7\u8F93\u5165\u5927\u5C4F\u6A2A\u5E45...",MENU_CONF:{fontSize:{fontSizeList:["10px","20px","40px","60px","80px","100px","150px","180px","200px"]},uploadImage:{customUpload:function(r,o){return(0,I.Z)((0,m.Z)().mark(function d(){var f,D,l;return(0,m.Z)().wrap(function(R){for(;;)switch(R.prev=R.next){case 0:f=r.name.lastIndexOf("."),D=r.name.substr(f+1),l=null,b.Z.GetCosRequestURL({directory:"kitchen",fileExtension:D,method:"PUT"}).then(function(B){var Be=B.allUrl,ae=new FileReader;ae.readAsArrayBuffer(r),ae.onload=function(Ge){l=Ge.target.result,ue().put(Be,l).then(function(re){(re.status==200||re.statusText=="OK")&&(o(B.seeUrl,B.seeUrl,B.seeUrl),g.default.success("\u4E0A\u4F20\u6210\u529F\uFF01"))})}});case 4:case"end":return R.stop()}},d)}))()}}}},xe=function(){var u=(0,I.Z)((0,m.Z)().mark(function r(){var o,d,f;return(0,m.Z)().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:if(o=oe.m8.location.query.storeId,!o){l.next=6;break}return l.next=4,b.Z.GetAllStore();case 4:d=l.sent,d.isSuccess?(me(d.data),f=d.data.find(function(ne){return ne.id===o}),f&&(Pe(f.companyId),he(f.id))):g.default.error(d.msg||"\u83B7\u53D6\u5E97\u94FA\u5217\u8868\u5931\u8D25");case 6:case"end":return l.stop()}},r)}));return function(){return u.apply(this,arguments)}}(),Ae=function(){var u=(0,I.Z)((0,m.Z)().mark(function r(o){var d,f;return(0,m.Z)().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:if(!o.id){l.next=6;break}return o.remaek=ee,l.next=4,b.Z.UpdateGateInfoNew(o,x);case 4:d=l.sent,d.statusCode===200?(g.default.success("\u66F4\u65B0\u6863\u53E3\u6210\u529F\uFF01"),Z(!1),(f=L.current)===null||f===void 0||f.reload()):g.default.error(d.errors||"\u66F4\u65B0\u6863\u53E3\u5931\u8D25");case 6:case"end":return l.stop()}},r)}));return function(o){return u.apply(this,arguments)}}();return(0,h.useEffect)(function(){return function(){A!=null&&(A.destroy(),X(null))}},[A]),(0,h.useEffect)(function(){xe()},[T]),(0,h.useEffect)(function(){var u;(u=L.current)===null||u===void 0||u.reload()},[x]),(0,t.jsxs)("div",{children:[T?(0,t.jsx)(se.ZP,{columns:ye,actionRef:L,request:(0,I.Z)((0,m.Z)().mark(function u(){var r;return(0,m.Z)().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:if(!(T&&x)){d.next=6;break}return d.next=3,b.Z.GetGateListByStorePageNew(T,Oe,V,x);case 3:if(r=d.sent,r.statusCode!==200){d.next=6;break}return d.abrupt("return",{data:r.data.data.data,success:!0,total:r.data.total});case 6:case"end":return d.stop()}},u)})),cardBordered:!0,editable:{type:"multiple"},rowKey:"id",search:!1,options:{setting:{listsHeight:400}},pagination:{pageSize:V,onChange:function(r){return ve(r)}},dateFormatter:"string",headerTitle:"\u6863\u53E3\u7BA1\u7406",toolBarRender:function(){return[(0,t.jsxs)("div",{style:{display:"flex",alignItems:"center"},children:[(0,t.jsx)("div",{children:"\u5F53\u524D\u95E8\u5E97\uFF1A"}),(0,t.jsx)(v.Z,{style:{width:300},value:T,disabled:!0,children:W.map(function(r){return(0,t.jsx)(Option,{value:r.id,children:r.store_Name},r.id)})})]})]}}):(0,t.jsx)(G.ZP,{status:"404",title:"\u95E8\u5E97ID\u9519\u8BEF",subTitle:"\u8BF7\u68C0\u67E5URL\u4E2D storeId\u662F\u5426\u6B63\u786E"}),(0,t.jsx)(a.Z,{destroyOnClose:!0,width:"100%",title:"\u7F16\u8F91\u6863\u53E3",visible:Ie,onClose:function(){return Z(!1)},children:(0,t.jsxs)(P.Z,{name:"basic",onFinish:Ae,form:k,labelCol:{span:4},children:[(0,t.jsx)(P.Z.Item,{label:"id",name:"id",hidden:!0,children:(0,t.jsx)(c.Z,{size:"large"})}),(0,t.jsxs)("div",{style:{border:"1px solid #ccc",zIndex:100,marginBottom:"10px"},children:[(0,t.jsx)(Y.o,{editor:A,defaultConfig:De,mode:"default",style:{borderBottom:"1px solid #ccc"}}),(0,t.jsx)(Y.M,{defaultConfig:be,value:ee,onCreated:X,onChange:function(r){return te(r.getHtml())},mode:"default",style:{height:"700px"}})]}),(0,t.jsxs)(p.Z,{children:[(0,t.jsx)(E.Z,{xs:12,sm:12,md:12,lg:12,xl:12,children:(0,t.jsx)(P.Z.Item,{label:"\u6863\u53E3\u540D\u79F0",name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6863\u53E3\u540D\u79F0\uFF01"}],children:(0,t.jsx)(c.Z,{size:"large"})})}),(0,t.jsx)(E.Z,{xs:12,sm:12,md:12,lg:12,xl:12,children:(0,t.jsx)(P.Z.Item,{label:"\u5F52\u5C5E\u95E8\u5E97",name:"storeId",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5F52\u5C5E\u95E8\u5E97\uFF01"}],children:(0,t.jsx)(v.Z,{size:"large",disabled:!0,children:W.map(function(u){return(0,t.jsx)(v.Z.Option,{value:u.id,children:u.store_Name},u.id)})})})}),(0,t.jsx)(E.Z,{xs:12,sm:12,md:12,lg:12,xl:12,children:(0,t.jsx)(P.Z.Item,{label:"\u5C5E\u6027",name:"mode",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u9009\u62E9\u5C5E\u6027\uFF01"}],children:(0,t.jsxs)(v.Z,{size:"large",children:[(0,t.jsx)(v.Z.Option,{value:1,children:"\u56FA\u5B9A\u91D1\u989D"}),(0,t.jsx)(v.Z.Option,{value:2,children:"\u81EA\u7531\u8BBE\u5B9A"})]})})}),(0,t.jsx)(E.Z,{xs:12,sm:12,md:12,lg:12,xl:12,children:(0,t.jsx)(P.Z.Item,{noStyle:!0,shouldUpdate:function(r,o){return r.mode!==o.mode},children:function(r){var o=r.getFieldValue;return o("mode")=="1"?(0,t.jsx)(P.Z.Item,{label:"\u91D1\u989D",name:"price",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u91D1\u989D\uFF01"}],children:(0,t.jsx)(c.Z,{size:"large"})}):null}})}),(0,t.jsx)(E.Z,{xs:12,sm:12,md:12,lg:12,xl:12,children:(0,t.jsx)(P.Z.Item,{label:"\u72B6\u6001",name:"status",children:(0,t.jsxs)(v.Z,{size:"large",defaultValue:1,children:[(0,t.jsx)(Option,{value:0,children:"\u6B63\u5E38"}),(0,t.jsx)(Option,{value:1,children:"\u7981\u7528"})]})})})]}),(0,t.jsx)(P.Z.Item,{children:(0,t.jsx)(e.Z,{type:"primary",htmlType:"submit",style:{marginTop:"10px",marginLeft:"auto"},children:"\u786E\u5B9A"})})]})})]})};M.default=ie},66050:function(j,M,n){"use strict";var y=n(11849),a=n(48971);M.Z={GetAllStore:function(){return(0,a.WY)("/kitchen/api/StoreHelper/GetAllStore",{method:"GET",headers:{TenantId:""}})},GetMemberListByPage:function(e){return(0,a.WY)("/kitchen/api/member/member-page-query",{method:"POST",data:e})},OnBindMember:function(e){return(0,a.WY)("/kitchen/api/member/member-binding-cards",{method:"POST",data:e})},GetMemberAccountCardConsRecord:function(e){return(0,a.WY)("/kitchen/api/member/member-account-amount-page",{method:"POST",data:e})},GetMemberAccountRecordTotal:function(e){return(0,a.WY)("/kitchen/api/member/member-account-record-total",{method:"POST",data:e})},AddGate:function(e){return(0,a.WY)("/kitchen/api/GateInfo/add",{method:"POST",data:e})},EnableGate:function(e){var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return(0,a.WY)("/kitchen/api/GateInfo/Enable",{method:"POST",data:e,headers:{TenantId:_}})},GetGateListByStorePage:function(e,_,p){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"";return(0,a.WY)("/kitchen/api/GateInfo/gatelist?StoreId=".concat(e,"&Current=").concat(_,"&PageSize=").concat(p),{method:"GET",headers:{TenantId:i}})},GetGateListByStorePageNew:function(e,_,p){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"";return(0,a.WY)("/kitchen/api/one-card/gate-list?StoreId=".concat(e,"&Current=").concat(_,"&PageSize=").concat(p),{method:"GET",headers:{TenantId:i}})},GetGateListByStoreList:function(e){return(0,a.WY)("/kitchen/api/GateInfo/gatealllist?StoreId=".concat(e),{method:"GET"})},UpdateGateInfo:function(e){var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return(0,a.WY)("/kitchen/api/GateInfo/Update",{method:"POST",data:e,headers:{TenantId:_}})},UpdateGateInfoNew:function(e){var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return(0,a.WY)("/kitchen/api/one-card",{method:"PUT",data:e,headers:{TenantId:_}})},PayCardAdd:function(e){return(0,a.WY)("/kitchen/api/PayCard/add",{method:"POST",data:e})},PayCardEnable:function(e){return(0,a.WY)("/kitchenapi/PayCard/enable",{method:"POST",data:e})},PayCardByGateId:function(e,_,p){return(0,a.WY)("/kitchen/api/PayCard/gateList?GateId=".concat(e,"&Current=").concat(_,"&PageSize=").concat(p),{method:"GET"})},UpdatePayCardInfo:function(e){return(0,a.WY)("/kitchen/api/PayCard/update",{method:"POST",data:e})},GetCosRequestURL:function(e){return(0,a.WY)("/kitchen/api/systemconfig/GetCosRequestSignURL",{method:"POST",data:e})},GetMemberAccountPageList:function(e){return(0,a.WY)("/kitchen/api/member/member-account-page-list",{method:"POST",data:e})},UpdateMemberAccountStatus:function(e){return(0,a.WY)("/kitchen/api/member/member-account-status",{method:"POST",data:e})},GetMemberCardPageList:function(e){return(0,a.WY)("/kitchen/api/member/mmenber-card-page",{method:"POST",data:e})},AddMemberCard:function(e){return(0,a.WY)("/kitchen/api/member/mmenber-card",{method:"POST",data:e})},UpdateMemberCardState:function(e){return(0,a.WY)("/kitchen/api/member/mmenber-card-state",{method:"PUT",data:e})},GetDicList:function(e){return(0,a.WY)("/kitchen/api/dict-data/dic-list/".concat(e),{method:"Get"})},AddGateSetUp:function(e){return(0,a.WY)("/kitchen/api/GateInfo/AddGateSetUp",{method:"POST",data:e})},GetFoodList:function(e){return(0,a.WY)("/kitchen/api/dict-data/dic-list/".concat(e),{method:"Get"})},AddGateFood:function(e){return(0,a.WY)("/kitchen/api/GateInfo/AddGateFood",{method:"POST",data:e})},GetGoodsByMenuIdPage:function(e){return(0,a.WY)("/kitchen/api/FoodMenu/GetGoodsByMenuIdPage",{method:"POST",data:(0,y.Z)({},e)})}}},34952:function(j,M,n){"use strict";var y=n(22122),a=n(15105),s=n(67294),e=function(i,E){var S={};for(var c in i)Object.prototype.hasOwnProperty.call(i,c)&&E.indexOf(c)<0&&(S[c]=i[c]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var O=0,c=Object.getOwnPropertySymbols(i);O1&&arguments[1]!==void 0?arguments[1]:"";return(0,a.WY)("/kitchen/api/GateInfo/Enable",{method:"POST",data:e,headers:{TenantId:_}})},GetGateListByStorePage:function(e,_,p){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"";return(0,a.WY)("/kitchen/api/GateInfo/gatelist?StoreId=".concat(e,"&Current=").concat(_,"&PageSize=").concat(p),{method:"GET",headers:{TenantId:i}})},GetGateListByStorePageNew:function(e,_,p){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"";return(0,a.WY)("/kitchen/api/one-card/gate-list?StoreId=".concat(e,"&Current=").concat(_,"&PageSize=").concat(p),{method:"GET",headers:{TenantId:i}})},GetGateListByStoreList:function(e){return(0,a.WY)("/kitchen/api/GateInfo/gatealllist?StoreId=".concat(e),{method:"GET"})},UpdateGateInfo:function(e){var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return(0,a.WY)("/kitchen/api/GateInfo/Update",{method:"POST",data:e,headers:{TenantId:_}})},UpdateGateInfoNew:function(e){var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return(0,a.WY)("/kitchen/api/one-card",{method:"PUT",data:e,headers:{TenantId:_}})},PayCardAdd:function(e){return(0,a.WY)("/kitchen/api/PayCard/add",{method:"POST",data:e})},PayCardEnable:function(e){return(0,a.WY)("/kitchenapi/PayCard/enable",{method:"POST",data:e})},PayCardByGateId:function(e,_,p){return(0,a.WY)("/kitchen/api/PayCard/gateList?GateId=".concat(e,"&Current=").concat(_,"&PageSize=").concat(p),{method:"GET"})},UpdatePayCardInfo:function(e){return(0,a.WY)("/kitchen/api/PayCard/update",{method:"POST",data:e})},GetCosRequestURL:function(e){return(0,a.WY)("/kitchen/api/systemconfig/GetCosRequestSignURL",{method:"POST",data:e})},GetMemberAccountPageList:function(e){return(0,a.WY)("/kitchen/api/member/member-account-page-list",{method:"POST",data:e})},UpdateMemberAccountStatus:function(e){return(0,a.WY)("/kitchen/api/member/member-account-status",{method:"POST",data:e})},GetMemberCardPageList:function(e){return(0,a.WY)("/kitchen/api/member/mmenber-card-page",{method:"POST",data:e})},AddMemberCard:function(e){return(0,a.WY)("/kitchen/api/member/mmenber-card",{method:"POST",data:e})},UpdateMemberCardState:function(e){return(0,a.WY)("/kitchen/api/member/mmenber-card-state",{method:"PUT",data:e})},GetDicList:function(e){return(0,a.WY)("/kitchen/api/dict-data/dic-list/".concat(e),{method:"Get"})},AddGateSetUp:function(e){return(0,a.WY)("/kitchen/api/GateInfo/AddGateSetUp",{method:"POST",data:e})},GetFoodList:function(e){return(0,a.WY)("/kitchen/api/dict-data/dic-list/".concat(e),{method:"Get"})},AddGateFood:function(e){return(0,a.WY)("/kitchen/api/GateInfo/AddGateFood",{method:"POST",data:e})},GetGoodsByMenuIdPage:function(e){return(0,a.WY)("/kitchen/api/FoodMenu/GetGoodsByMenuIdPage",{method:"POST",data:(0,y.Z)({},e)})}}},34952:function(j,M,n){"use strict";var y=n(22122),a=n(15105),s=n(67294),e=function(i,E){var S={};for(var c in i)Object.prototype.hasOwnProperty.call(i,c)&&E.indexOf(c)<0&&(S[c]=i[c]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var O=0,c=Object.getOwnPropertySymbols(i);O0&&(oe(u.data),B(u.data[0].id)),O.current.reload()):p.default.error(u.error||"\u83B7\u53D6\u6863\u53E3\u5217\u8868\u5931\u8D25");case 4:case"end":return E.stop()}},a)}));return function(d){return i.apply(this,arguments)}}();return(0,c.useEffect)(function(){ge()},[]),(0,t.jsx)($.ZP,{children:(0,t.jsxs)("div",{className:A().member_card_container,children:[(0,t.jsx)(V.ZP,{columns:pe,actionRef:O,request:(0,I.Z)((0,P.Z)().mark(function i(){var a;return(0,P.Z)().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:if(console.log("selectedGate",v),!v){u.next=7;break}return u.next=4,C.Z.PayCardByGateId(v,_e,k);case 4:if(a=u.sent,a.statusCode!==200){u.next=7;break}return u.abrupt("return",{data:a.data.data,success:!0,total:a.data.total});case 7:case"end":return u.stop()}},i)})),cardBordered:!0,editable:{type:"multiple"},rowKey:"id",search:!1,options:{setting:{listsHeight:400}},pagination:{pageSize:k,onChange:function(a){return me(a)}},dateFormatter:"string",headerTitle:"\u5237\u5361\u673A\u7BA1\u7406",toolBarRender:function(){return[(0,t.jsxs)("div",{className:A().table_search_item,children:[(0,t.jsx)("div",{children:"\u5F53\u524D\u95E8\u5E97\uFF1A"}),(0,t.jsx)(g.Z,{style:{width:300},value:ue,onChange:function(d){j(d),N(d),B({})},children:re.map(function(a){return(0,t.jsx)(Option,{value:a.id,children:a.store_Name},a.id)})})]}),(0,t.jsxs)("div",{className:A().table_search_item,children:[(0,t.jsx)("div",{children:"\u5F53\u524D\u6863\u53E3\uFF1A"}),(0,t.jsx)(g.Z,{style:{width:300},value:v,onChange:function(d){B(d),O.current.reload()},children:D.map(function(a){return(0,t.jsx)(Option,{value:a.id,children:a.name},a.id)})})]}),(0,t.jsx)(y.Z,{icon:(0,t.jsx)(w.Z,{}),type:"primary",onClick:Pe,children:"\u65B0\u5EFA"},"button")]}}),(0,t.jsx)(r.Z,{width:600,title:te.id?"\u7F16\u8F91\u5237\u5361\u673A":"\u6DFB\u52A0\u5237\u5361\u673A",visible:q,footer:!1,onCancel:function(){return S(!1)},children:(0,t.jsxs)(m.Z,{name:"basic",onFinish:Ee,form:G,labelCol:{span:4},children:[(0,t.jsx)(m.Z.Item,{label:"id",name:"id",hidden:!0,children:(0,t.jsx)(_.Z,{})}),(0,t.jsx)(m.Z.Item,{label:"\u8BBE\u5907\u540D\u79F0",name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6863\u53E3\u540D\u79F0\uFF01"}],children:(0,t.jsx)(_.Z,{})}),(0,t.jsx)(m.Z.Item,{label:"\u5F52\u5C5E\u6863\u53E3",name:"gateId",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5F52\u5C5E\u95E8\u5E97\uFF01"}],children:(0,t.jsx)(g.Z,{children:D.map(function(i){return(0,t.jsx)(g.Z.Option,{value:i.id,children:i.name},i.id)})})}),(0,t.jsx)(m.Z.Item,{label:"\u72B6\u6001",name:"status",children:(0,t.jsxs)(g.Z,{size:"large",defaultValue:1,children:[(0,t.jsx)(Option,{value:0,children:"\u6B63\u5E38"}),(0,t.jsx)(Option,{value:1,children:"\u7981\u7528"})]})}),(0,t.jsx)(m.Z.Item,{label:"\u95F4\u9694\u65F6\u95F4",name:"sleepTime",children:(0,t.jsx)(e.Z,{min:0})}),(0,t.jsx)(m.Z.Item,{label:"\u8BBE\u5907\u5730\u5740",name:"address",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6863\u53E3\u540D\u79F0\uFF01"},{pattern:new RegExp(/[0-9A-Fa-f]{2}/,"g"),message:"\u8BF7\u8F93\u516516\u8FDB\u5236\uFF01"}],children:(0,t.jsx)(_.Z,{})}),(0,t.jsx)(m.Z.Item,{children:(0,t.jsx)(y.Z,{type:"primary",htmlType:"submit",children:"\u786E\u5B9A"})})]})})]})})};M.default=H},66050:function(b,M,n){"use strict";var L=n(11849),r=n(48971);M.Z={GetAllStore:function(){return(0,r.WY)("/kitchen/api/StoreHelper/GetAllStore",{method:"GET",headers:{TenantId:""}})},GetMemberListByPage:function(e){return(0,r.WY)("/kitchen/api/member/member-page-query",{method:"POST",data:e})},OnBindMember:function(e){return(0,r.WY)("/kitchen/api/member/member-binding-cards",{method:"POST",data:e})},GetMemberAccountCardConsRecord:function(e){return(0,r.WY)("/kitchen/api/member/member-account-amount-page",{method:"POST",data:e})},GetMemberAccountRecordTotal:function(e){return(0,r.WY)("/kitchen/api/member/member-account-record-total",{method:"POST",data:e})},AddGate:function(e){return(0,r.WY)("/kitchen/api/GateInfo/add",{method:"POST",data:e})},EnableGate:function(e){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return(0,r.WY)("/kitchen/api/GateInfo/Enable",{method:"POST",data:e,headers:{TenantId:l}})},GetGateListByStorePage:function(e,l,_){var T=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"";return(0,r.WY)("/kitchen/api/GateInfo/gatelist?StoreId=".concat(e,"&Current=").concat(l,"&PageSize=").concat(_),{method:"GET",headers:{TenantId:T}})},GetGateListByStorePageNew:function(e,l,_){var T=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"";return(0,r.WY)("/kitchen/api/one-card/gate-list?StoreId=".concat(e,"&Current=").concat(l,"&PageSize=").concat(_),{method:"GET",headers:{TenantId:T}})},GetGateListByStoreList:function(e){return(0,r.WY)("/kitchen/api/GateInfo/gatealllist?StoreId=".concat(e),{method:"GET"})},UpdateGateInfo:function(e){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return(0,r.WY)("/kitchen/api/GateInfo/Update",{method:"POST",data:e,headers:{TenantId:l}})},UpdateGateInfoNew:function(e){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return(0,r.WY)("/kitchen/api/one-card",{method:"PUT",data:e,headers:{TenantId:l}})},PayCardAdd:function(e){return(0,r.WY)("/kitchen/api/PayCard/add",{method:"POST",data:e})},PayCardEnable:function(e){return(0,r.WY)("/kitchenapi/PayCard/enable",{method:"POST",data:e})},PayCardByGateId:function(e,l,_){return(0,r.WY)("/kitchen/api/PayCard/gateList?GateId=".concat(e,"&Current=").concat(l,"&PageSize=").concat(_),{method:"GET"})},UpdatePayCardInfo:function(e){return(0,r.WY)("/kitchen/api/PayCard/update",{method:"POST",data:e})},GetCosRequestURL:function(e){return(0,r.WY)("/kitchen/api/systemconfig/GetCosRequestSignURL",{method:"POST",data:e})},GetMemberAccountPageList:function(e){return(0,r.WY)("/kitchen/api/member/member-account-page-list",{method:"POST",data:e})},UpdateMemberAccountStatus:function(e){return(0,r.WY)("/kitchen/api/member/member-account-status",{method:"POST",data:e})},GetMemberCardPageList:function(e){return(0,r.WY)("/kitchen/api/member/mmenber-card-page",{method:"POST",data:e})},AddMemberCard:function(e){return(0,r.WY)("/kitchen/api/member/mmenber-card",{method:"POST",data:e})},UpdateMemberCardState:function(e){return(0,r.WY)("/kitchen/api/member/mmenber-card-state",{method:"PUT",data:e})},GetDicList:function(e){return(0,r.WY)("/kitchen/api/dict-data/dic-list/".concat(e),{method:"Get"})},AddGateSetUp:function(e){return(0,r.WY)("/kitchen/api/GateInfo/AddGateSetUp",{method:"POST",data:e})},GetFoodList:function(e){return(0,r.WY)("/kitchen/api/dict-data/dic-list/".concat(e),{method:"Get"})},AddGateFood:function(e){return(0,r.WY)("/kitchen/api/GateInfo/AddGateFood",{method:"POST",data:e})},GetGoodsByMenuIdPage:function(e){return(0,r.WY)("/kitchen/api/FoodMenu/GetGoodsByMenuIdPage",{method:"POST",data:(0,L.Z)({},e)})}}}}]); +(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[7578,1322],{94339:function(b){b.exports={table_search_item:"table_search_item___3IyYw"}},54581:function(b,M,n){"use strict";n.r(M);var L=n(71194),r=n(50146),s=n(77883),e=n(85986),l=n(47673),_=n(4107),T=n(57663),y=n(71577),ge=n(43358),C=n(34041),P=n(39428),Oe=n(34792),p=n(48086),I=n(3182),Ge=n(9715),m=n(55843),h=n(2824),c=n(67294),z=n(94339),D=n.n(z),$=n(78009),w=n(49101),V=n(16894),g=n(66050),t=n(85893),H=function(){var O=(0,c.useRef)(),J=m.Z.useForm(),Q=(0,h.Z)(J,1),G=Q[0],X=(0,c.useState)(!1),W=(0,h.Z)(X,2),q=W[0],S=W[1],ee=(0,c.useState)({id:""}),Z=(0,h.Z)(ee,2),te=Z[0],ae=Z[1],ne=(0,c.useState)([]),U=(0,h.Z)(ne,2),re=U[0],se=U[1],de=(0,c.useState)(""),R=(0,h.Z)(de,2),ue=R[0],j=R[1],ie=(0,c.useState)([]),x=(0,h.Z)(ie,2),A=x[0],oe=x[1],le=(0,c.useState)(""),F=(0,h.Z)(le,2),v=F[0],B=F[1],ce=(0,c.useState)(1),K=(0,h.Z)(ce,2),_e=K[0],me=K[1],he=(0,c.useState)(10),Y=(0,h.Z)(he,2),k=Y[0],Me=Y[1],fe=function(a){ae(a),S(!0),G.setFieldsValue(a)},Pe=function(){S(!0),G.resetFields(),G.setFieldValue("sleepTime",10),G.setFieldValue("status",1)},Te=function(a){console.log("\u5220\u9664",a)},Ee=function(){var i=(0,I.Z)((0,P.Z)().mark(function a(d){var u,o;return(0,P.Z)().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:if(!d.id){f.next=7;break}return f.next=3,g.Z.UpdatePayCardInfo(d);case 3:u=f.sent,u.statusCode===200?(S(!1),p.default.success("\u66F4\u65B0\u6210\u529F\uFF01"),O.current.reload()):p.default.error(u.error||"\u66F4\u65B0\u8BBE\u5907\u5931\u8D25"),f.next=11;break;case 7:return f.next=9,g.Z.PayCardAdd(d);case 9:o=f.sent,o.statusCode===200?(S(!1),p.default.success("\u65B0\u589E\u6210\u529F\uFF01"),O.current.reload()):p.default.error(o.error||"\u65B0\u589E\u8BBE\u5907\u5931\u8D25");case 11:case"end":return f.stop()}},a)}));return function(d){return i.apply(this,arguments)}}(),pe=[{title:"\u8BBE\u5907\u540D\u79F0",dataIndex:"name",ellipsis:!0},{title:"\u5F52\u5C5E\u6863\u53E3",dataIndex:"gateId",render:function(a,d){var u=A.find(function(o){return o.id===d.gateId});return(0,t.jsx)("div",{children:u?u.name:"\u9ED8\u8BA4\u6863\u53E3"})}},{title:"\u8BBE\u5907\u5730\u5740",dataIndex:"address",ellipsis:!0},{title:"\u72B6\u6001",dataIndex:"status",valueType:"select",valueEnum:{0:{text:"\u6B63\u5E38",status:"Success"},1:{text:"\u7981\u7528",status:"Error"},2:{text:"\u5220\u9664",status:"Error"}}},{title:"\u95F4\u9694\u65F6\u95F4",dataIndex:"sleepTime"},{title:"\u64CD\u4F5C",valueType:"option",key:"option",render:function(a,d,u,o){return[(0,t.jsx)("a",{onClick:function(){return fe(d)},children:"\u7F16\u8F91"})]}}],Ce=function(){var i=(0,I.Z)((0,P.Z)().mark(function a(){var d;return(0,P.Z)().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,g.Z.GetAllStore();case 2:d=o.sent,d.isSuccess?(se(d.data),j(d.data[0].id),N(d.data[0].id)):p.default.error(d.msg||"\u83B7\u53D6\u5E97\u94FA\u5217\u8868\u5931\u8D25");case 4:case"end":return o.stop()}},a)}));return function(){return i.apply(this,arguments)}}(),N=function(){var i=(0,I.Z)((0,P.Z)().mark(function a(d){var u;return(0,P.Z)().wrap(function(E){for(;;)switch(E.prev=E.next){case 0:return E.next=2,g.Z.GetGateListByStoreList(d);case 2:u=E.sent,u.statusCode===200?(u.data.length>0&&(oe(u.data),B(u.data[0].id)),O.current.reload()):p.default.error(u.error||"\u83B7\u53D6\u6863\u53E3\u5217\u8868\u5931\u8D25");case 4:case"end":return E.stop()}},a)}));return function(d){return i.apply(this,arguments)}}();return(0,c.useEffect)(function(){Ce()},[]),(0,t.jsx)($.ZP,{children:(0,t.jsxs)("div",{className:D().member_card_container,children:[(0,t.jsx)(V.ZP,{columns:pe,actionRef:O,request:(0,I.Z)((0,P.Z)().mark(function i(){var a;return(0,P.Z)().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:if(console.log("selectedGate",v),!v){u.next=7;break}return u.next=4,g.Z.PayCardByGateId(v,_e,k);case 4:if(a=u.sent,a.statusCode!==200){u.next=7;break}return u.abrupt("return",{data:a.data.data,success:!0,total:a.data.total});case 7:case"end":return u.stop()}},i)})),cardBordered:!0,editable:{type:"multiple"},rowKey:"id",search:!1,options:{setting:{listsHeight:400}},pagination:{pageSize:k,onChange:function(a){return me(a)}},dateFormatter:"string",headerTitle:"\u5237\u5361\u673A\u7BA1\u7406",toolBarRender:function(){return[(0,t.jsxs)("div",{className:D().table_search_item,children:[(0,t.jsx)("div",{children:"\u5F53\u524D\u95E8\u5E97\uFF1A"}),(0,t.jsx)(C.Z,{style:{width:300},value:ue,onChange:function(d){j(d),N(d),B({})},children:re.map(function(a){return(0,t.jsx)(Option,{value:a.id,children:a.store_Name},a.id)})})]}),(0,t.jsxs)("div",{className:D().table_search_item,children:[(0,t.jsx)("div",{children:"\u5F53\u524D\u6863\u53E3\uFF1A"}),(0,t.jsx)(C.Z,{style:{width:300},value:v,onChange:function(d){B(d),O.current.reload()},children:A.map(function(a){return(0,t.jsx)(Option,{value:a.id,children:a.name},a.id)})})]}),(0,t.jsx)(y.Z,{icon:(0,t.jsx)(w.Z,{}),type:"primary",onClick:Pe,children:"\u65B0\u5EFA"},"button")]}}),(0,t.jsx)(r.Z,{width:600,title:te.id?"\u7F16\u8F91\u5237\u5361\u673A":"\u6DFB\u52A0\u5237\u5361\u673A",visible:q,footer:!1,onCancel:function(){return S(!1)},children:(0,t.jsxs)(m.Z,{name:"basic",onFinish:Ee,form:G,labelCol:{span:4},children:[(0,t.jsx)(m.Z.Item,{label:"id",name:"id",hidden:!0,children:(0,t.jsx)(_.Z,{})}),(0,t.jsx)(m.Z.Item,{label:"\u8BBE\u5907\u540D\u79F0",name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6863\u53E3\u540D\u79F0\uFF01"}],children:(0,t.jsx)(_.Z,{})}),(0,t.jsx)(m.Z.Item,{label:"\u5F52\u5C5E\u6863\u53E3",name:"gateId",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5F52\u5C5E\u95E8\u5E97\uFF01"}],children:(0,t.jsx)(C.Z,{children:A.map(function(i){return(0,t.jsx)(C.Z.Option,{value:i.id,children:i.name},i.id)})})}),(0,t.jsx)(m.Z.Item,{label:"\u72B6\u6001",name:"status",children:(0,t.jsxs)(C.Z,{size:"large",defaultValue:1,children:[(0,t.jsx)(Option,{value:0,children:"\u6B63\u5E38"}),(0,t.jsx)(Option,{value:1,children:"\u7981\u7528"})]})}),(0,t.jsx)(m.Z.Item,{label:"\u95F4\u9694\u65F6\u95F4",name:"sleepTime",children:(0,t.jsx)(e.Z,{min:0})}),(0,t.jsx)(m.Z.Item,{label:"\u8BBE\u5907\u5730\u5740",name:"address",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6863\u53E3\u540D\u79F0\uFF01"},{pattern:new RegExp(/[0-9A-Fa-f]{2}/,"g"),message:"\u8BF7\u8F93\u516516\u8FDB\u5236\uFF01"}],children:(0,t.jsx)(_.Z,{})}),(0,t.jsx)(m.Z.Item,{children:(0,t.jsx)(y.Z,{type:"primary",htmlType:"submit",children:"\u786E\u5B9A"})})]})})]})})};M.default=H},66050:function(b,M,n){"use strict";var L=n(11849),r=n(48971);M.Z={GetAllStore:function(){return(0,r.WY)("/kitchen/api/StoreHelper/GetAllStore",{method:"GET",headers:{TenantId:""}})},GetMemberListByPage:function(e){return(0,r.WY)("/kitchen/api/member/member-page-query",{method:"POST",data:e})},OnBindMember:function(e){return(0,r.WY)("/kitchen/api/member/member-binding-cards",{method:"POST",data:e})},GetMemberAccountCardConsRecord:function(e){return(0,r.WY)("/kitchen/api/member/member-account-amount-page",{method:"POST",data:e})},GetMemberAccountRecordTotal:function(e){return(0,r.WY)("/kitchen/api/member/member-account-record-total",{method:"POST",data:e})},AddGate:function(e){return(0,r.WY)("/kitchen/api/GateInfo/add",{method:"POST",data:e})},EnableGate:function(e){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return(0,r.WY)("/kitchen/api/GateInfo/Enable",{method:"POST",data:e,headers:{TenantId:l}})},GetGateListByStorePage:function(e,l,_){var T=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"";return(0,r.WY)("/kitchen/api/GateInfo/gatelist?StoreId=".concat(e,"&Current=").concat(l,"&PageSize=").concat(_),{method:"GET",headers:{TenantId:T}})},GetGateListByStorePageNew:function(e,l,_){var T=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"";return(0,r.WY)("/kitchen/api/one-card/gate-list?StoreId=".concat(e,"&Current=").concat(l,"&PageSize=").concat(_),{method:"GET",headers:{TenantId:T}})},GetGateListByStoreList:function(e){return(0,r.WY)("/kitchen/api/GateInfo/gatealllist?StoreId=".concat(e),{method:"GET"})},UpdateGateInfo:function(e){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return(0,r.WY)("/kitchen/api/GateInfo/Update",{method:"POST",data:e,headers:{TenantId:l}})},UpdateGateInfoNew:function(e){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return(0,r.WY)("/kitchen/api/one-card",{method:"PUT",data:e,headers:{TenantId:l}})},PayCardAdd:function(e){return(0,r.WY)("/kitchen/api/PayCard/add",{method:"POST",data:e})},PayCardEnable:function(e){return(0,r.WY)("/kitchenapi/PayCard/enable",{method:"POST",data:e})},PayCardByGateId:function(e,l,_){return(0,r.WY)("/kitchen/api/PayCard/gateList?GateId=".concat(e,"&Current=").concat(l,"&PageSize=").concat(_),{method:"GET"})},UpdatePayCardInfo:function(e){return(0,r.WY)("/kitchen/api/PayCard/update",{method:"POST",data:e})},GetCosRequestURL:function(e){return(0,r.WY)("/kitchen/api/systemconfig/GetCosRequestSignURL",{method:"POST",data:e})},GetMemberAccountPageList:function(e){return(0,r.WY)("/kitchen/api/member/member-account-page-list",{method:"POST",data:e})},UpdateMemberAccountStatus:function(e){return(0,r.WY)("/kitchen/api/member/member-account-status",{method:"POST",data:e})},GetMemberCardPageList:function(e){return(0,r.WY)("/kitchen/api/member/mmenber-card-page",{method:"POST",data:e})},AddMemberCard:function(e){return(0,r.WY)("/kitchen/api/member/mmenber-card",{method:"POST",data:e})},UpdateMemberCardState:function(e){return(0,r.WY)("/kitchen/api/member/mmenber-card-state",{method:"PUT",data:e})},GetDicList:function(e){return(0,r.WY)("/kitchen/api/dict-data/dic-list/".concat(e),{method:"Get"})},AddGateSetUp:function(e){return(0,r.WY)("/kitchen/api/GateInfo/AddGateSetUp",{method:"POST",data:e})},GetFoodList:function(e){return(0,r.WY)("/kitchen/api/dict-data/dic-list/".concat(e),{method:"Get"})},AddGateFood:function(e){return(0,r.WY)("/kitchen/api/GateInfo/AddGateFood",{method:"POST",data:e})},GetGoodsByMenuIdPage:function(e){return(0,r.WY)("/kitchen/api/FoodMenu/GetGoodsByMenuIdPage",{method:"POST",data:(0,L.Z)({},e)})}}}}]); diff --git a/dist/p__card__memberAccount.dfc17160.async.js b/dist/p__card__memberAccount.b5fbec50.async.js similarity index 60% rename from dist/p__card__memberAccount.dfc17160.async.js rename to dist/p__card__memberAccount.b5fbec50.async.js index 7d99783..5bfa0d0 100644 --- a/dist/p__card__memberAccount.dfc17160.async.js +++ b/dist/p__card__memberAccount.b5fbec50.async.js @@ -1 +1 @@ -(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[6377,1322],{73382:function(E){E.exports={expend_total_count:"expend_total_count___tKNS_"}},21717:function(E,T,r){"use strict";r.r(T);var O=r(71194),t=r(50146),n=r(66456),e=r(64411),_=r(94233),C=r(51890),f=r(39428),Oe=r(34792),A=r(48086),b=r(3182),l=r(2824),s=r(67294),X=r(73382),R=r.n(X),q=r(78009),ee=r(89366),D=r(16894),I=r(66050),h=r(85893),te=function(){var ae=(0,s.useRef)(),ne=(0,s.useState)(!1),v=(0,l.Z)(ne,2),re=v[0],G=v[1],de=(0,s.useState)({functionName:"",record:{},type:0}),y=(0,l.Z)(de,2),P=y[0],B=y[1],oe=(0,s.useState)(1),W=(0,l.Z)(oe,2),Re=W[0],se=W[1],ue=(0,s.useState)(10),L=(0,l.Z)(ue,2),ie=L[0],De=L[1],ce=(0,s.useState)(0),x=(0,l.Z)(ce,2),ve=x[0],me=x[1],_e=(0,s.useState)(),U=(0,l.Z)(_e,2),le=U[0],Z=U[1],he=(0,s.useState)(1),K=(0,l.Z)(he,2),g=K[0],Y=K[1],pe=(0,s.useState)(10),j=(0,l.Z)(pe,2),M=j[0],fe=j[1],Ce=(0,s.useState)(0),k=(0,l.Z)(Ce,2),Pe=k[0],N=k[1],Se=(0,s.useState)(0),F=(0,l.Z)(Se,2),ge=F[0],z=F[1],Te=(0,s.useState)(0),w=(0,l.Z)(Te,2),Ie=w[0],J=w[1],Ee=(0,s.useState)(),$=(0,l.Z)(Ee,2),S=$[0],H=$[1],Q=function(){var u=(0,b.Z)((0,f.Z)().mark(function d(a,i){var o,c;return(0,f.Z)().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:return o={current:g,pageSize:M,memberInfoId:a.memberInfoId,memberCardId:"",type:i},S&&(o.startTime=S[0],o.endTime=S[1]),p.next=4,I.Z.GetMemberAccountCardConsRecord(o);case 4:c=p.sent,B({functionName:"onFetchAccountConsRecord",record:JSON.parse(JSON.stringify(a)),type:i}),c.statusCode===200?(Z(c.data.data),N(c.data.total),G(!0)):A.default.error(c.errors);case 7:case"end":return p.stop()}},d)}));return function(a,i){return u.apply(this,arguments)}}(),V=function(){var u=(0,b.Z)((0,f.Z)().mark(function d(a,i){var o,c;return(0,f.Z)().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:return o={current:g,pageSize:M,memberInfoId:a.memberInfoId,memberCardId:a.id,type:i},S&&(o.startTime=S[0],o.endTime=S[1]),p.next=4,I.Z.GetMemberAccountCardConsRecord(o);case 4:c=p.sent,B({functionName:"onFetchCardConsRecord",record:JSON.parse(JSON.stringify(a)),type:i}),c.statusCode===200?(Z(c.data.data),N(c.data.total),G(!0)):A.default.error(c.errors);case 7:case"end":return p.stop()}},d)}));return function(a,i){return u.apply(this,arguments)}}(),be=[{title:"\u8D77\u6B62\u65F6\u95F4",dataIndex:"dateRange",hideInTable:!0,valueType:"dateRange"},{title:"\u5934\u50CF",dataIndex:"headImgUrl",ellipsis:!0,width:100,hideInSearch:!0,align:"center",render:function(d,a){return(0,h.jsx)(C.C,{size:64,shape:"square",icon:(0,h.jsx)(ee.Z,{}),src:a.headImgUrl})}},{title:"\u59D3\u540D",dataIndex:"name",ellipsis:!0},{title:"\u5361\u53F7",dataIndex:"memberCardNum",ellipsis:!0},{title:"\u8054\u7CFB\u65B9\u5F0F",dataIndex:"memberPhone",ellipsis:!0,hideInSearch:!0},{title:"\u4F59\u989D",dataIndex:"money",hideInSearch:!0},{title:"\u64CD\u4F5C",valueType:"option",key:"option",render:function(d,a){return[(0,h.jsx)("a",{onClick:function(){return Q(a,-1)},children:"\u8D26\u6237\u6D88\u8D39\u8BB0\u5F55"})]}}],Ge=function(d){var a=[{title:"\u5361\u53F7",dataIndex:"cardNum",key:"cardNum"},{title:"\u72B6\u6001",dataIndex:"state",valueType:"select",valueEnum:{0:{text:"\u7981\u7528",status:"Error"},1:{text:"\u6B63\u5E38",status:"Success"},2:{text:"\u6302\u5931",status:"Error"},3:{text:"\u4F5C\u5E9F",status:"Error"}}},{title:"\u7C7B\u578B",dataIndex:"type",valueType:"select",valueEnum:{1:{text:"\u4EBA\u8138",status:"Success"},2:{text:"\u5B9E\u4F53\u5361",status:"Success"},3:{text:"\u6307\u7EB9",status:"Success"}}},{title:"\u64CD\u4F5C",valueType:"option",key:"option",render:function(o,c){return[(0,h.jsx)("a",{onClick:function(){return V(c,-1)},children:"\u4F1A\u5458\u5361\u6D88\u8D39\u8BB0\u5F55"})]}}];return(0,h.jsx)(D.ZP,{toolBarRender:!1,search:!1,rowKey:"id",columns:a,dataSource:d.cards,pagination:!1})},Me=[{title:"\u65F6\u95F4",dataIndex:"createAt",width:200},{title:"\u7C7B\u578B",dataIndex:"type",ellipsis:!0,render:function(d,a){return(0,h.jsx)("div",{children:a.type=="-1"?"\u6D88\u8D39":"\u5145\u503C"})}}];return(0,s.useEffect)(function(){g!==1&&(P.functionName==="onFetchAccountConsRecord"?Q(P.record,P.type):P.functionName==="onFetchCardConsRecord"&&V(P.record,P.type))},[g]),(0,h.jsx)(q.ZP,{children:(0,h.jsxs)("div",{className:R().member_card_container,children:[(0,h.jsx)(D.ZP,{title:function(){return(0,h.jsxs)("div",{className:R().expend_total_count,children:["\u6D88\u8D39\u6B21\u6570",ge,"\uFF0C\u6D88\u8D39\u4EBA\u6570",Ie]})},columns:be,actionRef:ae,expandable:{expandedRowRender:function(d){return Ge(d)}},request:function(){var u=(0,b.Z)((0,f.Z)().mark(function d(a){var i,o;return(0,f.Z)().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:if(a.memberCardNum&&(a.cardNum=a.memberCardNum),!a.dateRange){m.next=9;break}return H(a.dateRange),m.next=5,I.Z.GetMemberAccountRecordTotal({startTime:a.dateRange[0],endTime:a.dateRange[1]});case 5:i=m.sent,i.statusCode===200&&(z(i.data.expendTotalCount),J(i.data.personTotalcCount)),m.next=12;break;case 9:H(null),z(0),J(0);case 12:return delete a.dateRange,delete a.memberCardNum,m.next=16,I.Z.GetMemberAccountPageList(a);case 16:return o=m.sent,me(o.data.data),m.abrupt("return",{data:o.data.data,success:!0,total:o.data.total});case 19:case"end":return m.stop()}},d)}));return function(d){return u.apply(this,arguments)}}(),cardBordered:!0,editable:{type:"multiple"},rowKey:"id",options:{setting:{listsHeight:400}},pagination:{pageSize:ie,onChange:function(d){return se(d)}},dateFormatter:"string",headerTitle:"\u50A8\u503C\u5361\u8D26\u6237\u7BA1\u7406"}),(0,h.jsx)(t.Z,{width:800,title:"\u6D88\u8D39\u8BB0\u5F55",visible:re,footer:!1,onCancel:function(){G(!1),Y(1)},children:(0,h.jsx)(e.Z,{columns:Me,dataSource:le,pagination:{current:g,pageSize:M,total:Pe,onChange:function(d,a){Y(d),fe(a)}}})})]})})};T.default=te},66050:function(E,T,r){"use strict";var O=r(11849),t=r(48971);T.Z={GetAllStore:function(){return(0,t.WY)("/kitchen/api/StoreHelper/GetAllStore",{method:"GET",headers:{TenantId:""}})},GetMemberListByPage:function(e){return(0,t.WY)("/kitchen/api/member/member-page-query",{method:"POST",data:e})},OnBindMember:function(e){return(0,t.WY)("/kitchen/api/member/member-binding-cards",{method:"POST",data:e})},GetMemberAccountCardConsRecord:function(e){return(0,t.WY)("/kitchen/api/member/member-account-amount-page",{method:"POST",data:e})},GetMemberAccountRecordTotal:function(e){return(0,t.WY)("/kitchen/api/member/member-account-record-total",{method:"POST",data:e})},AddGate:function(e){return(0,t.WY)("/kitchen/api/GateInfo/add",{method:"POST",data:e})},EnableGate:function(e){var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return(0,t.WY)("/kitchen/api/GateInfo/Enable",{method:"POST",data:e,headers:{TenantId:_}})},GetGateListByStorePage:function(e,_,C){var f=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"";return(0,t.WY)("/kitchen/api/GateInfo/gatelist?StoreId=".concat(e,"&Current=").concat(_,"&PageSize=").concat(C),{method:"GET",headers:{TenantId:f}})},GetGateListByStorePageNew:function(e,_,C){var f=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"";return(0,t.WY)("/kitchen/api/one-card/gate-list?StoreId=".concat(e,"&Current=").concat(_,"&PageSize=").concat(C),{method:"GET",headers:{TenantId:f}})},GetGateListByStoreList:function(e){return(0,t.WY)("/kitchen/api/GateInfo/gatealllist?StoreId=".concat(e),{method:"GET"})},UpdateGateInfo:function(e){var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return(0,t.WY)("/kitchen/api/GateInfo/Update",{method:"POST",data:e,headers:{TenantId:_}})},UpdateGateInfoNew:function(e){var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return(0,t.WY)("/kitchen/api/one-card",{method:"PUT",data:e,headers:{TenantId:_}})},PayCardAdd:function(e){return(0,t.WY)("/kitchen/api/PayCard/add",{method:"POST",data:e})},PayCardEnable:function(e){return(0,t.WY)("/kitchenapi/PayCard/enable",{method:"POST",data:e})},PayCardByGateId:function(e,_,C){return(0,t.WY)("/kitchen/api/PayCard/gateList?GateId=".concat(e,"&Current=").concat(_,"&PageSize=").concat(C),{method:"GET"})},UpdatePayCardInfo:function(e){return(0,t.WY)("/kitchen/api/PayCard/update",{method:"POST",data:e})},GetCosRequestURL:function(e){return(0,t.WY)("/kitchen/api/systemconfig/GetCosRequestSignURL",{method:"POST",data:e})},GetMemberAccountPageList:function(e){return(0,t.WY)("/kitchen/api/member/member-account-page-list",{method:"POST",data:e})},UpdateMemberAccountStatus:function(e){return(0,t.WY)("/kitchen/api/member/member-account-status",{method:"POST",data:e})},GetMemberCardPageList:function(e){return(0,t.WY)("/kitchen/api/member/mmenber-card-page",{method:"POST",data:e})},AddMemberCard:function(e){return(0,t.WY)("/kitchen/api/member/mmenber-card",{method:"POST",data:e})},UpdateMemberCardState:function(e){return(0,t.WY)("/kitchen/api/member/mmenber-card-state",{method:"PUT",data:e})},GetDicList:function(e){return(0,t.WY)("/kitchen/api/dict-data/dic-list/".concat(e),{method:"Get"})},AddGateSetUp:function(e){return(0,t.WY)("/kitchen/api/GateInfo/AddGateSetUp",{method:"POST",data:e})},GetFoodList:function(e){return(0,t.WY)("/kitchen/api/dict-data/dic-list/".concat(e),{method:"Get"})},AddGateFood:function(e){return(0,t.WY)("/kitchen/api/GateInfo/AddGateFood",{method:"POST",data:e})},GetGoodsByMenuIdPage:function(e){return(0,t.WY)("/kitchen/api/FoodMenu/GetGoodsByMenuIdPage",{method:"POST",data:(0,O.Z)({},e)})}}}}]); +(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[6377,1322],{73382:function(E){E.exports={expend_total_count:"expend_total_count___tKNS_"}},21717:function(E,T,r){"use strict";r.r(T);var O=r(71194),t=r(50146),n=r(66456),e=r(64411),m=r(94233),C=r(51890),f=r(39428),Oe=r(34792),A=r(48086),b=r(3182),l=r(2824),o=r(67294),X=r(73382),R=r.n(X),q=r(78009),ee=r(89366),D=r(16894),I=r(66050),p=r(85893),te=function(){var ae=(0,o.useRef)(),ne=(0,o.useState)(!1),v=(0,l.Z)(ne,2),re=v[0],G=v[1],de=(0,o.useState)({functionName:"",record:{},type:0}),y=(0,l.Z)(de,2),P=y[0],W=y[1],se=(0,o.useState)(1),B=(0,l.Z)(se,2),Re=B[0],oe=B[1],ue=(0,o.useState)(10),L=(0,l.Z)(ue,2),ie=L[0],De=L[1],ce=(0,o.useState)(0),U=(0,l.Z)(ce,2),ve=U[0],_e=U[1],me=(0,o.useState)(),x=(0,l.Z)(me,2),le=x[0],Z=x[1],pe=(0,o.useState)(1),k=(0,l.Z)(pe,2),g=k[0],K=k[1],he=(0,o.useState)(10),Y=(0,l.Z)(he,2),M=Y[0],fe=Y[1],Ce=(0,o.useState)(0),j=(0,l.Z)(Ce,2),Pe=j[0],N=j[1],Se=(0,o.useState)(0),F=(0,l.Z)(Se,2),ge=F[0],z=F[1],Te=(0,o.useState)(0),w=(0,l.Z)(Te,2),Ie=w[0],J=w[1],Ee=(0,o.useState)(),$=(0,l.Z)(Ee,2),S=$[0],H=$[1],Q=function(){var u=(0,b.Z)((0,f.Z)().mark(function d(a,i){var s,c;return(0,f.Z)().wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return s={current:g,pageSize:M,memberInfoId:a.memberInfoId,memberCardId:"",type:i},S&&(s.startTime=S[0],s.endTime=S[1]),h.next=4,I.Z.GetMemberAccountCardConsRecord(s);case 4:c=h.sent,W({functionName:"onFetchAccountConsRecord",record:JSON.parse(JSON.stringify(a)),type:i}),c.statusCode===200?(Z(c.data.data),N(c.data.total),G(!0)):A.default.error(c.errors);case 7:case"end":return h.stop()}},d)}));return function(a,i){return u.apply(this,arguments)}}(),V=function(){var u=(0,b.Z)((0,f.Z)().mark(function d(a,i){var s,c;return(0,f.Z)().wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return s={current:g,pageSize:M,memberInfoId:a.memberInfoId,memberCardId:a.id,type:i},S&&(s.startTime=S[0],s.endTime=S[1]),h.next=4,I.Z.GetMemberAccountCardConsRecord(s);case 4:c=h.sent,W({functionName:"onFetchCardConsRecord",record:JSON.parse(JSON.stringify(a)),type:i}),c.statusCode===200?(Z(c.data.data),N(c.data.total),G(!0)):A.default.error(c.errors);case 7:case"end":return h.stop()}},d)}));return function(a,i){return u.apply(this,arguments)}}(),be=[{title:"\u8D77\u6B62\u65F6\u95F4",dataIndex:"dateRange",hideInTable:!0,valueType:"dateRange"},{title:"\u5934\u50CF",dataIndex:"headImgUrl",ellipsis:!0,width:100,hideInSearch:!0,align:"center",render:function(d,a){return(0,p.jsx)(C.C,{size:64,shape:"square",icon:(0,p.jsx)(ee.Z,{}),src:a.headImgUrl})}},{title:"\u59D3\u540D",dataIndex:"name",ellipsis:!0},{title:"\u5361\u53F7",dataIndex:"memberCardNum",ellipsis:!0},{title:"\u8054\u7CFB\u65B9\u5F0F",dataIndex:"memberPhone",ellipsis:!0,hideInSearch:!0},{title:"\u4F59\u989D",dataIndex:"money",hideInSearch:!0},{title:"\u64CD\u4F5C",valueType:"option",key:"option",render:function(d,a){return[(0,p.jsx)("a",{onClick:function(){return Q(a,-1)},children:"\u8D26\u6237\u6D88\u8D39\u8BB0\u5F55"})]}}],Ge=function(d){var a=[{title:"\u5361\u53F7",dataIndex:"cardNum",key:"cardNum"},{title:"\u72B6\u6001",dataIndex:"state",valueType:"select",valueEnum:{0:{text:"\u7981\u7528",status:"Error"},1:{text:"\u6B63\u5E38",status:"Success"},2:{text:"\u6302\u5931",status:"Error"},3:{text:"\u4F5C\u5E9F",status:"Error"}}},{title:"\u7C7B\u578B",dataIndex:"type",valueType:"select",valueEnum:{1:{text:"\u4EBA\u8138",status:"Success"},2:{text:"\u5B9E\u4F53\u5361",status:"Success"},3:{text:"\u6307\u7EB9",status:"Success"}}},{title:"\u64CD\u4F5C",valueType:"option",key:"option",render:function(s,c){return[(0,p.jsx)("a",{onClick:function(){return V(c,-1)},children:"\u4F1A\u5458\u5361\u6D88\u8D39\u8BB0\u5F55"})]}}];return(0,p.jsx)(D.ZP,{toolBarRender:!1,search:!1,rowKey:"id",columns:a,dataSource:d.cards,pagination:!1})},Me=[{title:"\u65F6\u95F4",dataIndex:"createAt",width:200},{title:"\u7C7B\u578B",dataIndex:"type",ellipsis:!0,render:function(d,a){return(0,p.jsx)("div",{children:a.type=="-1"?"\u6D88\u8D39":"\u5145\u503C"})}}];return(0,o.useEffect)(function(){g!==1&&(P.functionName==="onFetchAccountConsRecord"?Q(P.record,P.type):P.functionName==="onFetchCardConsRecord"&&V(P.record,P.type))},[g]),(0,p.jsx)(q.ZP,{children:(0,p.jsxs)("div",{className:R().member_card_container,children:[(0,p.jsx)(D.ZP,{title:function(){return(0,p.jsxs)("div",{className:R().expend_total_count,children:["\u6D88\u8D39\u6B21\u6570",ge,"\uFF0C\u6D88\u8D39\u4EBA\u6570",Ie]})},columns:be,actionRef:ae,expandable:{expandedRowRender:function(d){return Ge(d)}},request:function(){var u=(0,b.Z)((0,f.Z)().mark(function d(a){var i,s;return(0,f.Z)().wrap(function(_){for(;;)switch(_.prev=_.next){case 0:if(a.memberCardNum&&(a.cardNum=a.memberCardNum),!a.dateRange){_.next=9;break}return H(a.dateRange),_.next=5,I.Z.GetMemberAccountRecordTotal({startTime:a.dateRange[0],endTime:a.dateRange[1]});case 5:i=_.sent,i.statusCode===200&&(z(i.data.expendTotalCount),J(i.data.personTotalcCount)),_.next=12;break;case 9:H(null),z(0),J(0);case 12:return delete a.dateRange,delete a.memberCardNum,_.next=16,I.Z.GetMemberAccountPageList(a);case 16:return s=_.sent,_e(s.data.data),_.abrupt("return",{data:s.data.data,success:!0,total:s.data.total});case 19:case"end":return _.stop()}},d)}));return function(d){return u.apply(this,arguments)}}(),cardBordered:!0,editable:{type:"multiple"},rowKey:"id",options:{setting:{listsHeight:400}},pagination:{pageSize:ie,onChange:function(d){return oe(d)}},dateFormatter:"string",headerTitle:"\u50A8\u503C\u5361\u8D26\u6237\u7BA1\u7406"}),(0,p.jsx)(t.Z,{width:800,title:"\u6D88\u8D39\u8BB0\u5F55",visible:re,footer:!1,onCancel:function(){G(!1),K(1)},children:(0,p.jsx)(e.Z,{columns:Me,dataSource:le,pagination:{current:g,pageSize:M,total:Pe,onChange:function(d,a){K(d),fe(a)}}})})]})})};T.default=te},66050:function(E,T,r){"use strict";var O=r(11849),t=r(48971);T.Z={GetAllStore:function(){return(0,t.WY)("/kitchen/api/StoreHelper/GetAllStore",{method:"GET",headers:{TenantId:""}})},GetMemberListByPage:function(e){return(0,t.WY)("/kitchen/api/member/member-page-query",{method:"POST",data:e})},OnBindMember:function(e){return(0,t.WY)("/kitchen/api/member/member-binding-cards",{method:"POST",data:e})},GetMemberAccountCardConsRecord:function(e){return(0,t.WY)("/kitchen/api/member/member-account-amount-page",{method:"POST",data:e})},GetMemberAccountRecordTotal:function(e){return(0,t.WY)("/kitchen/api/member/member-account-record-total",{method:"POST",data:e})},AddGate:function(e){return(0,t.WY)("/kitchen/api/GateInfo/add",{method:"POST",data:e})},EnableGate:function(e){var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return(0,t.WY)("/kitchen/api/GateInfo/Enable",{method:"POST",data:e,headers:{TenantId:m}})},GetGateListByStorePage:function(e,m,C){var f=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"";return(0,t.WY)("/kitchen/api/GateInfo/gatelist?StoreId=".concat(e,"&Current=").concat(m,"&PageSize=").concat(C),{method:"GET",headers:{TenantId:f}})},GetGateListByStorePageNew:function(e,m,C){var f=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"";return(0,t.WY)("/kitchen/api/one-card/gate-list?StoreId=".concat(e,"&Current=").concat(m,"&PageSize=").concat(C),{method:"GET",headers:{TenantId:f}})},GetGateListByStoreList:function(e){return(0,t.WY)("/kitchen/api/GateInfo/gatealllist?StoreId=".concat(e),{method:"GET"})},UpdateGateInfo:function(e){var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return(0,t.WY)("/kitchen/api/GateInfo/Update",{method:"POST",data:e,headers:{TenantId:m}})},UpdateGateInfoNew:function(e){var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return(0,t.WY)("/kitchen/api/one-card",{method:"PUT",data:e,headers:{TenantId:m}})},PayCardAdd:function(e){return(0,t.WY)("/kitchen/api/PayCard/add",{method:"POST",data:e})},PayCardEnable:function(e){return(0,t.WY)("/kitchenapi/PayCard/enable",{method:"POST",data:e})},PayCardByGateId:function(e,m,C){return(0,t.WY)("/kitchen/api/PayCard/gateList?GateId=".concat(e,"&Current=").concat(m,"&PageSize=").concat(C),{method:"GET"})},UpdatePayCardInfo:function(e){return(0,t.WY)("/kitchen/api/PayCard/update",{method:"POST",data:e})},GetCosRequestURL:function(e){return(0,t.WY)("/kitchen/api/systemconfig/GetCosRequestSignURL",{method:"POST",data:e})},GetMemberAccountPageList:function(e){return(0,t.WY)("/kitchen/api/member/member-account-page-list",{method:"POST",data:e})},UpdateMemberAccountStatus:function(e){return(0,t.WY)("/kitchen/api/member/member-account-status",{method:"POST",data:e})},GetMemberCardPageList:function(e){return(0,t.WY)("/kitchen/api/member/mmenber-card-page",{method:"POST",data:e})},AddMemberCard:function(e){return(0,t.WY)("/kitchen/api/member/mmenber-card",{method:"POST",data:e})},UpdateMemberCardState:function(e){return(0,t.WY)("/kitchen/api/member/mmenber-card-state",{method:"PUT",data:e})},GetDicList:function(e){return(0,t.WY)("/kitchen/api/dict-data/dic-list/".concat(e),{method:"Get"})},AddGateSetUp:function(e){return(0,t.WY)("/kitchen/api/GateInfo/AddGateSetUp",{method:"POST",data:e})},GetFoodList:function(e){return(0,t.WY)("/kitchen/api/dict-data/dic-list/".concat(e),{method:"Get"})},AddGateFood:function(e){return(0,t.WY)("/kitchen/api/GateInfo/AddGateFood",{method:"POST",data:e})},GetGoodsByMenuIdPage:function(e){return(0,t.WY)("/kitchen/api/FoodMenu/GetGoodsByMenuIdPage",{method:"POST",data:(0,O.Z)({},e)})}}}}]); diff --git a/dist/p__card__reservation.302f5d46.async.js b/dist/p__card__reservation.302f5d46.async.js deleted file mode 100644 index d19c481..0000000 --- a/dist/p__card__reservation.302f5d46.async.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[3991,1322,9464,1981,2869,7013,9719,2383],{32141:function($){$.exports={"welcome-head":"welcome-head___2KkzI","welcome-head-org":"welcome-head-org___1csW8","echarts-card-choose":"echarts-card-choose___3MUZE","my-loading":"my-loading___13xim","device-list":"device-list___2yRMk","my-range-picker":"my-range-picker___3_gNJ","tabs-title":"tabs-title___qUM48"}},10370:function($,W,s){"use strict";s.r(W),s.d(W,{default:function(){return je}});var mt=s(66456),M=s(64411),ft=s(49111),A=s(19650),ht=s(58024),V=s(91894),xt=s(13062),he=s(71230),gt=s(57663),w=s(71577),pt=s(43358),K=s(34041),yt=s(89032),N=s(15746),St=s(20228),xe=s(11382),d=s(39428),Z=s(3182),f=s(2824),Rt=s(18106),J=s(95562),Dt=s(14965),ge=s(91774),v=s(67294),L=s(90631),pe=s(30381),y=s.n(pe),E=s(48971),j={GetReservationUser:function(o){return(0,E.WY)("/kitchen/api/Reservation/GetReservationUser",{method:"POST",data:o})},GetReservationGoods:function(o){return(0,E.WY)("/kitchen/api/Reservation/GetReservationGoods",{method:"POST",data:o})},GetReservationGoodsDetailed:function(o){return(0,E.WY)("/kitchen/api/Reservation/GetReservationGoodsDetailed",{method:"POST",data:o})},GetReservationUserGoods:function(o){return(0,E.WY)("/kitchen/api/Reservation/GetReservationUserGoods",{method:"POST",data:o})},GetDeparent:function(o){return(0,E.WY)("/kitchen/api/member-tag/member-tag",{method:"POST",data:o})},GetReservationGoodsExcel:function(o){return(0,E.WY)("/kitchen/api/Reservation/GetReservationGoodsExcel",{method:"POST",responseType:"blob",data:o})},GetReservationUserExcel:function(o){return(0,E.WY)("/kitchen/api/Reservation/GetReservationUserExcel",{method:"POST",responseType:"blob",data:o})},GetReservationOrgExcel:function(o){return(0,E.WY)("/kitchen/api/Reservation/GetReservationOrgExcel",{method:"POST",responseType:"blob",data:o})},GetReservationGoodsDetailedExcel:function(o){return(0,E.WY)("/kitchen/api/Reservation/GetReservationGoodsDetailedExcel",{method:"POST",responseType:"blob",data:o})},GetReservationOrg:function(o){return(0,E.WY)("/kitchen/api/Reservation/GetReservationOrg",{method:"POST",data:o})}},ye=s(32141),h=s.n(ye),Se=s(78009),Gt=s(71194),Re=s(50146),De=s(16894),t=s(85893),Ge=function(o){console.log("\u8C03\u8BD51",o);var R=[{title:"\u4E3B\u952E",dataIndex:"id",hideInTable:!0,hideInSearch:!0},{title:"\u5546\u54C1",dataIndex:"name"},{title:"\u7528\u9910\u65F6\u6BB5",dataIndex:"mealType",render:function(U,p){if(p.mealType==="1")return"\u65E9\u9910";if(p.mealType==="2")return"\u5348\u9910";if(p.mealType==="3")return"\u665A\u9910"}},{title:"\u9884\u5B9A\u6570\u91CF",dataIndex:"qty",sortDirections:["ascend","descend"],sorter:function(U,p){return U.value-p.value}},{title:"\u9884\u5B9A\u65F6\u95F4",dataIndex:"reservationTime"}];return(0,t.jsx)(Re.Z,{title:"\u67E5\u770B\u9884\u5B9A\u8BE6\u60C5",width:640,visible:o.createModalVisible,bodyStyle:{padding:"32px 40px 48px"},footer:null,onCancel:function(){o.onCancel()},destroyOnClose:!0,children:(0,t.jsx)(De.ZP,{headerTitle:"\u67E5\u770B\u9884\u5B9A\u8BE6\u60C5",rowKey:"id",search:!1,request:function(){var O=(0,Z.Z)((0,d.Z)().mark(function U(p){var g,T;return(0,d.Z)().wrap(function(C){for(;;)switch(C.prev=C.next){case 0:return g=[],T=0,o.values.id!=null&&(p.UserId=o.values.id,p.beginTime=o.timeRange[0]._i,p.endTime=o.timeRange[1]._i),C.next=5,j.GetReservationUserGoods(p).then(function(D){g=D.data.data,T=D.data.total});case 5:return C.abrupt("return",{data:g,success:!0,total:T});case 6:case"end":return C.stop()}},U)}));return function(U){return O.apply(this,arguments)}}(),columns:R})})},Ze=Ge,Ee=ge.Z.RangePicker,P=J.Z.TabPane,je=function(){var S=(0,v.useState)(1),o=(0,f.Z)(S,2),R=o[0],O=o[1],U=(0,v.useState)(1),p=(0,f.Z)(U,2),g=p[0],T=p[1],H=(0,v.useState)(10),C=(0,f.Z)(H,2),D=C[0],F=C[1],Te=(0,v.useState)(0),Q=(0,f.Z)(Te,2),k=Q[0],z=Q[1],Ce=(0,v.useState)([]),X=(0,f.Z)(Ce,2),Be=X[0],Ue=X[1],we=(0,v.useState)([]),q=(0,f.Z)(we,2),Oe=q[0],Ie=q[1],Ye=(0,v.useState)([]),_=(0,f.Z)(Ye,2),be=_[0],Fe=_[1],ze=(0,v.useState)([]),ee=(0,f.Z)(ze,2),Me=ee[0],Ae=ee[1],Ne=(0,v.useState)(!1),te=(0,f.Z)(Ne,2),Le=te[0],B=te[1],Pe=(0,v.useState)(!1),ae=(0,f.Z)(Pe,2),ke=ae[0],ne=ae[1],$e=(0,v.useState)(),re=(0,f.Z)($e,2),We=re[0],se=re[1],Ve=(0,v.useState)([y()(y()(new Date(Date.now()+24*60*60*1e3)).format("YYYY-MM-DD 00:00:00")),y()(y()(new Date(Date.now()+24*60*60*1e3)).format("YYYY-MM-DD 23:59:59"))]),ie=(0,f.Z)(Ve,2),G=ie[0],oe=ie[1],Ke=[{title:"\u5546\u54C1",dataIndex:"name"},{title:"\u7528\u9910\u65F6\u6BB5",dataIndex:"mealType",render:function(a,e){if(e.mealType==="1")return"\u65E9\u9910";if(e.mealType==="2")return"\u5348\u9910";if(e.mealType==="3")return"\u665A\u9910"}},{title:"\u9884\u5B9A\u6570\u91CF",dataIndex:"qty",sortDirections:["ascend","descend"],sorter:function(a,e){return a.value-e.value}},{title:"\u9884\u5B9A\u65F6\u95F4",dataIndex:"createAt"}],Je=[{title:"\u5546\u54C1",dataIndex:"name"},{title:"\u9884\u5B9A\u90E8\u95E8",dataIndex:"orgName"},{title:"\u9884\u5B9A\u4EBA\u59D3\u540D",dataIndex:"realName"},{title:"\u7528\u9910\u65F6\u6BB5",dataIndex:"mealType",render:function(a,e){if(e.mealType==="1")return"\u65E9\u9910";if(e.mealType==="2")return"\u5348\u9910";if(e.mealType==="3")return"\u665A\u9910"}},{title:"\u9884\u5B9A\u6570\u91CF",dataIndex:"qty",sortDirections:["ascend","descend"],sorter:function(a,e){return a.value-e.value}},{title:"\u662F\u5426\u7EDF\u4E00\u9884\u5B9A",dataIndex:"qty",render:function(a,e){return e.qty>1?"\u662F":"\u5426"}},{title:"\u9884\u5B9A\u65F6\u95F4",dataIndex:"createAt"}],He=[{title:"\u90E8\u95E8\u540D\u79F0",dataIndex:"orgName"},{title:"\u7528\u9910\u65F6\u6BB5",dataIndex:"mealType",render:function(a,e){if(e.mealType==="1")return"\u65E9\u9910";if(e.mealType==="2")return"\u5348\u9910";if(e.mealType==="3")return"\u665A\u9910"}},{title:"\u9884\u5B9A\u6570\u91CF",dataIndex:"qty",sortDirections:["ascend","descend"],sorter:function(a,e){return a.value-e.value}}],Qe=[{title:"\u9884\u5B9A\u4EBA\u5458\u540D\u79F0",dataIndex:"name"},{title:"\u90E8\u95E8",dataIndex:"orgName"},{title:"\u9884\u5B9A\u6570\u91CF",dataIndex:"qty",sortDirections:["ascend","descend"],sorter:function(a,e){return a.value-e.value}},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(a,e){return(0,t.jsx)(t.Fragment,{children:(0,t.jsx)("a",{onClick:function(){ne(!0),se(e)},children:"\u67E5\u770B\u8BE6\u60C5"})})}}],Xe=(0,v.useState)([]),le=(0,f.Z)(Xe,2),I=le[0],qe=le[1],_e=(0,v.useState)(),ue=(0,f.Z)(_e,2),Y=ue[0],de=ue[1],et=(0,v.useState)([{value:1,label:"\u65E9\u9910"},{value:2,label:"\u4E2D\u9910"},{value:3,label:"\u665A\u9910"}]),ce=(0,f.Z)(et,2),tt=ce[0],Zt=ce[1],at=(0,v.useState)(),ve=(0,f.Z)(at,2),b=ve[0],me=ve[1],nt=function(){var i=(0,Z.Z)((0,d.Z)().mark(function a(){var e,n,c,u;return(0,d.Z)().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.next=2,j.GetDeparent({current:1,pageSize:9999,platformType:"4"});case 2:e=l.sent,e.statusCode===200&&(u=[],(n=e.data)===null||n===void 0||(c=n.data)===null||c===void 0||c.forEach(function(m){u.push({label:m.name,value:m.id})}),qe(u));case 4:case"end":return l.stop()}},a)}));return function(){return i.apply(this,arguments)}}(),fe=function(){var a=I.find(function(n){return n.value===Y}),e={beginTime:G[0]._i,endTime:G[1]._i,orgName:(a==null?void 0:a.label)||"",mealType:b||"",current:g,pageSize:D};R==1?rt(e):R==2?it(e):R==3?st(e):R==4&&ot(e)},rt=function(){var i=(0,Z.Z)((0,d.Z)().mark(function a(e){var n,c;return(0,d.Z)().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return B(!0),r.next=3,j.GetReservationGoods(e);case 3:n=r.sent,B(!1),n.succeeded?(c=n.data.data.sort(function(l,m){return m.value-l.value}),z(n.data.total),Ue(c)):console.log("Message:",n.msg||"\u83B7\u53D6\u9884\u5B9A\u5546\u54C1\u5931\u8D25");case 6:case"end":return r.stop()}},a)}));return function(e){return i.apply(this,arguments)}}(),st=function(){var i=(0,Z.Z)((0,d.Z)().mark(function a(e){var n,c;return(0,d.Z)().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return B(!0),r.next=3,j.GetReservationOrg(e);case 3:n=r.sent,B(!1),n.succeeded?(c=n.data.data.sort(function(l,m){return m.value-l.value}),z(n.data.total),Ie(c)):console.log("Message:",n.msg||"\u83B7\u53D6\u9884\u5B9A\u5546\u54C1\u5931\u8D25");case 6:case"end":return r.stop()}},a)}));return function(e){return i.apply(this,arguments)}}(),it=function(){var i=(0,Z.Z)((0,d.Z)().mark(function a(e){var n,c;return(0,d.Z)().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return B(!0),r.next=3,j.GetReservationUser(e);case 3:n=r.sent,B(!1),n.succeeded?(c=n.data.data.sort(function(l,m){return m.value-l.value}),z(n.data.total),Fe(c)):console.log("Message:",n.msg||"\u83B7\u53D6\u9884\u5B9A\u4EBA\u5458\u5931\u8D25");case 6:case"end":return r.stop()}},a)}));return function(e){return i.apply(this,arguments)}}(),ot=function(){var i=(0,Z.Z)((0,d.Z)().mark(function a(e){var n,c;return(0,d.Z)().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return B(!0),r.next=3,j.GetReservationGoodsDetailed(e);case 3:n=r.sent,B(!1),n.succeeded?(c=n.data.data.sort(function(l,m){return m.value-l.value}),z(n.data.total),Ae(c)):console.log("Message:",n.msg||"\u83B7\u53D6\u9884\u5B9A\u4EBA\u5458\u5931\u8D25");case 6:case"end":return r.stop()}},a)}));return function(e){return i.apply(this,arguments)}}(),lt=function(){return(0,t.jsx)(xe.Z,{className:h()["my-loading"],size:"large"})},ut=function(){var i=(0,Z.Z)((0,d.Z)().mark(function a(){var e,n;return(0,d.Z)().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:e=I.find(function(r){return r.value===Y}),n={beginTime:G[0]._i,endTime:G[1]._i,orgName:(e==null?void 0:e.label)||"",mealType:b||"",current:g,pageSize:D},j.GetReservationGoodsExcel(n).then(function(r){var l=URL.createObjectURL(new Blob([r])),m="\u9884\u5B9A\u5546\u54C1\u6C47\u603B.xlsx",x=document.createElement("a");x.href=l,x.download=m,x.click(),URL.revokeObjectURL(l)});case 3:case"end":return u.stop()}},a)}));return function(){return i.apply(this,arguments)}}(),dt=function(){var i=(0,Z.Z)((0,d.Z)().mark(function a(){var e,n;return(0,d.Z)().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:e=I.find(function(r){return r.value===Y}),n={beginTime:G[0]._i,endTime:G[1]._i,orgName:(e==null?void 0:e.label)||"",mealType:b||"",current:g,pageSize:D},j.GetReservationUserExcel(n).then(function(r){var l=URL.createObjectURL(new Blob([r])),m="\u83B7\u53D6\u9884\u5B9A\u4EBA\u5458\u660E\u7EC6.xlsx",x=document.createElement("a");x.href=l,x.download=m,x.click(),URL.revokeObjectURL(l)});case 3:case"end":return u.stop()}},a)}));return function(){return i.apply(this,arguments)}}(),ct=function(){var i=(0,Z.Z)((0,d.Z)().mark(function a(){var e,n;return(0,d.Z)().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:e=I.find(function(r){return r.value===Y}),n={beginTime:G[0]._i,endTime:G[1]._i,orgName:(e==null?void 0:e.label)||"",mealType:b||"",current:g,pageSize:D},j.GetReservationOrgExcel(n).then(function(r){var l=URL.createObjectURL(new Blob([r])),m="\u9884\u5B9A\u90E8\u95E8\u6C47\u603B.xlsx",x=document.createElement("a");x.href=l,x.download=m,x.click(),URL.revokeObjectURL(l)});case 3:case"end":return u.stop()}},a)}));return function(){return i.apply(this,arguments)}}(),vt=function(){var i=(0,Z.Z)((0,d.Z)().mark(function a(){var e,n;return(0,d.Z)().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:e=I.find(function(r){return r.value===Y}),n={beginTime:G[0]._i,endTime:G[1]._i,orgName:(e==null?void 0:e.label)||"",mealType:b||"",current:g,pageSize:D},j.GetReservationGoodsDetailedExcel(n).then(function(r){var l=URL.createObjectURL(new Blob([r])),m="\u9884\u5B9A\u5546\u54C1\u660E\u7EC6.xlsx",x=document.createElement("a");x.href=l,x.download=m,x.click(),URL.revokeObjectURL(l)});case 3:case"end":return u.stop()}},a)}));return function(){return i.apply(this,arguments)}}();return(0,v.useEffect)(function(){nt()},[]),(0,v.useEffect)(function(){fe()},[R,g]),(0,t.jsxs)(Se.ZP,{children:[(0,t.jsxs)("div",{className:h()["welcome-container"],children:[Le?(0,t.jsx)(lt,{}):null,(0,t.jsx)(V.Z,{style:{marginBottom:"30px"},children:(0,t.jsxs)(he.Z,{children:[(0,t.jsx)(N.Z,{xs:24,sm:12,md:12,lg:12,xl:6,style:{margin:"10px 0"},children:(0,t.jsxs)("div",{className:h()["echarts-card-choose"],children:[(0,t.jsx)("div",{className:h()["echarts-card-choose-text"],children:"\u8D77\u6B62\u65F6\u95F4\uFF1A"}),(0,t.jsx)(Ee,{style:{width:"70%"},className:h()["my-range-picker"],value:G,onChange:function(a,e){var n=[y()(y()(new Date(e[0])).format("YYYY-MM-DD 00:00:00")),y()(y()(new Date(e[1])).format("YYYY-MM-DD 23:59:59"))];oe(n)}})]})}),(0,t.jsx)(N.Z,{xs:24,sm:12,md:12,lg:12,xl:6,style:{margin:"10px 0"},children:(0,t.jsxs)("div",{className:h()["echarts-card-choose"],children:[(0,t.jsx)("div",{className:h()["echarts-card-choose-text"],children:"\u6240\u5C5E\u90E8\u95E8\uFF1A"}),(0,t.jsx)(K.Z,{placeholder:"\u8BF7\u9009\u62E9\u90E8\u95E8\uFF01",style:{width:"70%"},value:Y,onChange:de,options:I})]})}),(0,t.jsx)(N.Z,{xs:24,sm:12,md:12,lg:12,xl:6,style:{margin:"10px 0"},children:(0,t.jsxs)("div",{className:h()["echarts-card-choose"],children:[(0,t.jsx)("div",{className:h()["echarts-card-choose-text"],children:"\u7528\u9910\u65F6\u6BB5\uFF1A"}),(0,t.jsx)(K.Z,{placeholder:"\u8BF7\u9009\u62E9\u7528\u9910\u65F6\u6BB5\uFF01",style:{width:"70%"},value:b,onChange:me,options:tt})]})}),(0,t.jsxs)(N.Z,{xs:24,sm:12,md:12,lg:12,xl:6,style:{margin:"10px 0"},children:[(0,t.jsx)(w.Z,{className:h()["echarts-card-btn"],type:"primary",style:{width:"100px",marginRight:"10px"},onClick:function(){return fe()},children:"\u67E5\u8BE2"}),(0,t.jsx)(w.Z,{className:h()["echarts-card-btn"],style:{width:"100px"},onClick:function(){oe([y()(y()(new Date(Date.now()+24*60*60*1e3)).format("YYYY-MM-DD 00:00:00")),y()(y()(new Date(Date.now()+24*60*60*1e3)).format("YYYY-MM-DD 23:59:59"))]),de(),me(),T(1),F(10)},children:"\u91CD\u7F6E"})]})]})}),(0,t.jsx)(V.Z,{children:(0,t.jsxs)(J.Z,{tabPosition:"left",value:R,onChange:function(a){O(a),z(0),T(1)},children:[(0,t.jsx)(P,{tab:"\u9884\u5B9A\u83DC\u54C1\u6C47\u603B",children:R==1&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(A.Z,{style:{display:"flex",alignItems:"center",marginBottom:"10px"},children:[(0,t.jsx)("div",{className:h()["tabs-title"],children:"\u9884\u5B9A\u83DC\u54C1\u6C47\u603B"}),(0,t.jsx)(w.Z,{type:"primary",icon:(0,t.jsx)(L.Z,{}),size:"middle",onClick:ut,children:"\u62A5\u8868\u4E0B\u8F7D"})]}),(0,t.jsx)(M.Z,{columns:Ke,dataSource:Be,pagination:{current:g,pageSize:D,total:k,onChange:T,onShowSizeChange:function(a,e){return F(e)}}})]})},1),(0,t.jsx)(P,{tab:"\u90E8\u95E8\u9884\u5B9A\u6C47\u603B",children:R==3&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(A.Z,{style:{display:"flex",alignItems:"center",marginBottom:"10px"},children:[(0,t.jsx)("div",{className:h()["tabs-title"],children:"\u90E8\u95E8\u9884\u5B9A\u6C47\u603B"}),(0,t.jsx)(w.Z,{type:"primary",icon:(0,t.jsx)(L.Z,{}),size:"middle",onClick:ct,children:"\u62A5\u8868\u4E0B\u8F7D"})]}),(0,t.jsx)(M.Z,{columns:He,dataSource:Oe,pagination:{current:g,pageSize:D,total:k,onChange:T,onShowSizeChange:function(a,e){return F(e)}}})]})},3),(0,t.jsx)(P,{tab:"\u9884\u5B9A\u4EBA\u5458\u660E\u7EC6",children:R==2&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(A.Z,{style:{display:"flex",alignItems:"center",marginBottom:"10px"},children:[(0,t.jsx)("div",{className:h()["tabs-title"],children:"\u9884\u5B9A\u4EBA\u5458\u660E\u7EC6"}),(0,t.jsx)(w.Z,{type:"primary",icon:(0,t.jsx)(L.Z,{}),size:"middle",onClick:dt,children:"\u62A5\u8868\u4E0B\u8F7D"})]}),(0,t.jsx)(M.Z,{columns:Qe,dataSource:be,pagination:{current:g,pageSize:D,onChange:T,onShowSizeChange:function(a,e){return F(e)}}})]})},2)," ",(0,t.jsx)(P,{tab:"\u9884\u5B9A\u5546\u54C1\u660E\u7EC6",children:R==4&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(A.Z,{style:{display:"flex",alignItems:"center",marginBottom:"10px"},children:[(0,t.jsx)("div",{className:h()["tabs-title"],children:"\u9884\u5B9A\u5546\u54C1\u660E\u7EC6"}),(0,t.jsx)(w.Z,{type:"primary",icon:(0,t.jsx)(L.Z,{}),size:"middle",onClick:vt,children:"\u62A5\u8868\u4E0B\u8F7D"})]}),(0,t.jsx)(M.Z,{columns:Je,dataSource:Me,pagination:{current:g,pageSize:D,total:k,onChange:T,onShowSizeChange:function(a,e){return F(e)}}})]})},4)]})})]}),ke&&(0,t.jsx)(Ze,{createModalVisible:!0,values:We||{},timeRange:G,onCancel:function(){ne(!1),se(void 0)}})]})}}}]); diff --git a/dist/p__card__reservation.d29bc772.async.js b/dist/p__card__reservation.d29bc772.async.js new file mode 100644 index 0000000..74ea1d1 --- /dev/null +++ b/dist/p__card__reservation.d29bc772.async.js @@ -0,0 +1 @@ +(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[3991,1322,1279,7800,6398,6794,944,8208],{32141:function($){$.exports={"welcome-head":"welcome-head___2KkzI","welcome-head-org":"welcome-head-org___1csW8","echarts-card-choose":"echarts-card-choose___3MUZE","my-loading":"my-loading___13xim","device-list":"device-list___2yRMk","my-range-picker":"my-range-picker___3_gNJ","tabs-title":"tabs-title___qUM48"}},10370:function($,W,s){"use strict";s.r(W),s.d(W,{default:function(){return je}});var mt=s(66456),M=s(64411),ft=s(49111),A=s(19650),ht=s(58024),V=s(91894),xt=s(13062),he=s(71230),gt=s(57663),w=s(71577),pt=s(43358),K=s(34041),yt=s(89032),N=s(15746),St=s(20228),xe=s(11382),d=s(39428),Z=s(3182),f=s(2824),Rt=s(18106),J=s(36166),Dt=s(14965),ge=s(91774),v=s(67294),L=s(90631),pe=s(30381),y=s.n(pe),E=s(48971),j={GetReservationUser:function(o){return(0,E.WY)("/kitchen/api/Reservation/GetReservationUser",{method:"POST",data:o})},GetReservationGoods:function(o){return(0,E.WY)("/kitchen/api/Reservation/GetReservationGoods",{method:"POST",data:o})},GetReservationGoodsDetailed:function(o){return(0,E.WY)("/kitchen/api/Reservation/GetReservationGoodsDetailed",{method:"POST",data:o})},GetReservationUserGoods:function(o){return(0,E.WY)("/kitchen/api/Reservation/GetReservationUserGoods",{method:"POST",data:o})},GetDeparent:function(o){return(0,E.WY)("/kitchen/api/member-tag/member-tag",{method:"POST",data:o})},GetReservationGoodsExcel:function(o){return(0,E.WY)("/kitchen/api/Reservation/GetReservationGoodsExcel",{method:"POST",responseType:"blob",data:o})},GetReservationUserExcel:function(o){return(0,E.WY)("/kitchen/api/Reservation/GetReservationUserExcel",{method:"POST",responseType:"blob",data:o})},GetReservationOrgExcel:function(o){return(0,E.WY)("/kitchen/api/Reservation/GetReservationOrgExcel",{method:"POST",responseType:"blob",data:o})},GetReservationGoodsDetailedExcel:function(o){return(0,E.WY)("/kitchen/api/Reservation/GetReservationGoodsDetailedExcel",{method:"POST",responseType:"blob",data:o})},GetReservationOrg:function(o){return(0,E.WY)("/kitchen/api/Reservation/GetReservationOrg",{method:"POST",data:o})}},ye=s(32141),h=s.n(ye),Se=s(78009),Gt=s(71194),Re=s(50146),De=s(16894),t=s(85893),Ge=function(o){console.log("\u8C03\u8BD51",o);var R=[{title:"\u4E3B\u952E",dataIndex:"id",hideInTable:!0,hideInSearch:!0},{title:"\u5546\u54C1",dataIndex:"name"},{title:"\u7528\u9910\u65F6\u6BB5",dataIndex:"mealType",render:function(U,p){if(p.mealType==="1")return"\u65E9\u9910";if(p.mealType==="2")return"\u5348\u9910";if(p.mealType==="3")return"\u665A\u9910"}},{title:"\u9884\u5B9A\u6570\u91CF",dataIndex:"qty",sortDirections:["ascend","descend"],sorter:function(U,p){return U.value-p.value}},{title:"\u9884\u5B9A\u65F6\u95F4",dataIndex:"reservationTime"}];return(0,t.jsx)(Re.Z,{title:"\u67E5\u770B\u9884\u5B9A\u8BE6\u60C5",width:640,visible:o.createModalVisible,bodyStyle:{padding:"32px 40px 48px"},footer:null,onCancel:function(){o.onCancel()},destroyOnClose:!0,children:(0,t.jsx)(De.ZP,{headerTitle:"\u67E5\u770B\u9884\u5B9A\u8BE6\u60C5",rowKey:"id",search:!1,request:function(){var O=(0,Z.Z)((0,d.Z)().mark(function U(p){var g,T;return(0,d.Z)().wrap(function(C){for(;;)switch(C.prev=C.next){case 0:return g=[],T=0,o.values.id!=null&&(p.UserId=o.values.id,p.beginTime=o.timeRange[0]._i,p.endTime=o.timeRange[1]._i),C.next=5,j.GetReservationUserGoods(p).then(function(D){g=D.data.data,T=D.data.total});case 5:return C.abrupt("return",{data:g,success:!0,total:T});case 6:case"end":return C.stop()}},U)}));return function(U){return O.apply(this,arguments)}}(),columns:R})})},Ze=Ge,Ee=ge.Z.RangePicker,P=J.Z.TabPane,je=function(){var S=(0,v.useState)(1),o=(0,f.Z)(S,2),R=o[0],O=o[1],U=(0,v.useState)(1),p=(0,f.Z)(U,2),g=p[0],T=p[1],H=(0,v.useState)(10),C=(0,f.Z)(H,2),D=C[0],F=C[1],Te=(0,v.useState)(0),Q=(0,f.Z)(Te,2),k=Q[0],z=Q[1],Ce=(0,v.useState)([]),X=(0,f.Z)(Ce,2),Be=X[0],Ue=X[1],we=(0,v.useState)([]),q=(0,f.Z)(we,2),Oe=q[0],Ie=q[1],Ye=(0,v.useState)([]),_=(0,f.Z)(Ye,2),be=_[0],Fe=_[1],ze=(0,v.useState)([]),ee=(0,f.Z)(ze,2),Me=ee[0],Ae=ee[1],Ne=(0,v.useState)(!1),te=(0,f.Z)(Ne,2),Le=te[0],B=te[1],Pe=(0,v.useState)(!1),ae=(0,f.Z)(Pe,2),ke=ae[0],ne=ae[1],$e=(0,v.useState)(),re=(0,f.Z)($e,2),We=re[0],se=re[1],Ve=(0,v.useState)([y()(y()(new Date(Date.now()+24*60*60*1e3)).format("YYYY-MM-DD 00:00:00")),y()(y()(new Date(Date.now()+24*60*60*1e3)).format("YYYY-MM-DD 23:59:59"))]),ie=(0,f.Z)(Ve,2),G=ie[0],oe=ie[1],Ke=[{title:"\u5546\u54C1",dataIndex:"name"},{title:"\u7528\u9910\u65F6\u6BB5",dataIndex:"mealType",render:function(a,e){if(e.mealType==="1")return"\u65E9\u9910";if(e.mealType==="2")return"\u5348\u9910";if(e.mealType==="3")return"\u665A\u9910"}},{title:"\u9884\u5B9A\u6570\u91CF",dataIndex:"qty",sortDirections:["ascend","descend"],sorter:function(a,e){return a.value-e.value}},{title:"\u9884\u5B9A\u65F6\u95F4",dataIndex:"createAt"}],Je=[{title:"\u5546\u54C1",dataIndex:"name"},{title:"\u9884\u5B9A\u90E8\u95E8",dataIndex:"orgName"},{title:"\u9884\u5B9A\u4EBA\u59D3\u540D",dataIndex:"realName"},{title:"\u7528\u9910\u65F6\u6BB5",dataIndex:"mealType",render:function(a,e){if(e.mealType==="1")return"\u65E9\u9910";if(e.mealType==="2")return"\u5348\u9910";if(e.mealType==="3")return"\u665A\u9910"}},{title:"\u9884\u5B9A\u6570\u91CF",dataIndex:"qty",sortDirections:["ascend","descend"],sorter:function(a,e){return a.value-e.value}},{title:"\u662F\u5426\u7EDF\u4E00\u9884\u5B9A",dataIndex:"qty",render:function(a,e){return e.qty>1?"\u662F":"\u5426"}},{title:"\u9884\u5B9A\u65F6\u95F4",dataIndex:"createAt"}],He=[{title:"\u90E8\u95E8\u540D\u79F0",dataIndex:"orgName"},{title:"\u7528\u9910\u65F6\u6BB5",dataIndex:"mealType",render:function(a,e){if(e.mealType==="1")return"\u65E9\u9910";if(e.mealType==="2")return"\u5348\u9910";if(e.mealType==="3")return"\u665A\u9910"}},{title:"\u9884\u5B9A\u6570\u91CF",dataIndex:"qty",sortDirections:["ascend","descend"],sorter:function(a,e){return a.value-e.value}}],Qe=[{title:"\u9884\u5B9A\u4EBA\u5458\u540D\u79F0",dataIndex:"name"},{title:"\u90E8\u95E8",dataIndex:"orgName"},{title:"\u9884\u5B9A\u6570\u91CF",dataIndex:"qty",sortDirections:["ascend","descend"],sorter:function(a,e){return a.value-e.value}},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(a,e){return(0,t.jsx)(t.Fragment,{children:(0,t.jsx)("a",{onClick:function(){ne(!0),se(e)},children:"\u67E5\u770B\u8BE6\u60C5"})})}}],Xe=(0,v.useState)([]),le=(0,f.Z)(Xe,2),I=le[0],qe=le[1],_e=(0,v.useState)(),ue=(0,f.Z)(_e,2),Y=ue[0],de=ue[1],et=(0,v.useState)([{value:1,label:"\u65E9\u9910"},{value:2,label:"\u4E2D\u9910"},{value:3,label:"\u665A\u9910"}]),ce=(0,f.Z)(et,2),tt=ce[0],Zt=ce[1],at=(0,v.useState)(),ve=(0,f.Z)(at,2),b=ve[0],me=ve[1],nt=function(){var i=(0,Z.Z)((0,d.Z)().mark(function a(){var e,n,c,u;return(0,d.Z)().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.next=2,j.GetDeparent({current:1,pageSize:9999,platformType:"4"});case 2:e=l.sent,e.statusCode===200&&(u=[],(n=e.data)===null||n===void 0||(c=n.data)===null||c===void 0||c.forEach(function(m){u.push({label:m.name,value:m.id})}),qe(u));case 4:case"end":return l.stop()}},a)}));return function(){return i.apply(this,arguments)}}(),fe=function(){var a=I.find(function(n){return n.value===Y}),e={beginTime:G[0]._i,endTime:G[1]._i,orgName:(a==null?void 0:a.label)||"",mealType:b||"",current:g,pageSize:D};R==1?rt(e):R==2?it(e):R==3?st(e):R==4&&ot(e)},rt=function(){var i=(0,Z.Z)((0,d.Z)().mark(function a(e){var n,c;return(0,d.Z)().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return B(!0),r.next=3,j.GetReservationGoods(e);case 3:n=r.sent,B(!1),n.succeeded?(c=n.data.data.sort(function(l,m){return m.value-l.value}),z(n.data.total),Ue(c)):console.log("Message:",n.msg||"\u83B7\u53D6\u9884\u5B9A\u5546\u54C1\u5931\u8D25");case 6:case"end":return r.stop()}},a)}));return function(e){return i.apply(this,arguments)}}(),st=function(){var i=(0,Z.Z)((0,d.Z)().mark(function a(e){var n,c;return(0,d.Z)().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return B(!0),r.next=3,j.GetReservationOrg(e);case 3:n=r.sent,B(!1),n.succeeded?(c=n.data.data.sort(function(l,m){return m.value-l.value}),z(n.data.total),Ie(c)):console.log("Message:",n.msg||"\u83B7\u53D6\u9884\u5B9A\u5546\u54C1\u5931\u8D25");case 6:case"end":return r.stop()}},a)}));return function(e){return i.apply(this,arguments)}}(),it=function(){var i=(0,Z.Z)((0,d.Z)().mark(function a(e){var n,c;return(0,d.Z)().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return B(!0),r.next=3,j.GetReservationUser(e);case 3:n=r.sent,B(!1),n.succeeded?(c=n.data.data.sort(function(l,m){return m.value-l.value}),z(n.data.total),Fe(c)):console.log("Message:",n.msg||"\u83B7\u53D6\u9884\u5B9A\u4EBA\u5458\u5931\u8D25");case 6:case"end":return r.stop()}},a)}));return function(e){return i.apply(this,arguments)}}(),ot=function(){var i=(0,Z.Z)((0,d.Z)().mark(function a(e){var n,c;return(0,d.Z)().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return B(!0),r.next=3,j.GetReservationGoodsDetailed(e);case 3:n=r.sent,B(!1),n.succeeded?(c=n.data.data.sort(function(l,m){return m.value-l.value}),z(n.data.total),Ae(c)):console.log("Message:",n.msg||"\u83B7\u53D6\u9884\u5B9A\u4EBA\u5458\u5931\u8D25");case 6:case"end":return r.stop()}},a)}));return function(e){return i.apply(this,arguments)}}(),lt=function(){return(0,t.jsx)(xe.Z,{className:h()["my-loading"],size:"large"})},ut=function(){var i=(0,Z.Z)((0,d.Z)().mark(function a(){var e,n;return(0,d.Z)().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:e=I.find(function(r){return r.value===Y}),n={beginTime:G[0]._i,endTime:G[1]._i,orgName:(e==null?void 0:e.label)||"",mealType:b||"",current:g,pageSize:D},j.GetReservationGoodsExcel(n).then(function(r){var l=URL.createObjectURL(new Blob([r])),m="\u9884\u5B9A\u5546\u54C1\u6C47\u603B.xlsx",x=document.createElement("a");x.href=l,x.download=m,x.click(),URL.revokeObjectURL(l)});case 3:case"end":return u.stop()}},a)}));return function(){return i.apply(this,arguments)}}(),dt=function(){var i=(0,Z.Z)((0,d.Z)().mark(function a(){var e,n;return(0,d.Z)().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:e=I.find(function(r){return r.value===Y}),n={beginTime:G[0]._i,endTime:G[1]._i,orgName:(e==null?void 0:e.label)||"",mealType:b||"",current:g,pageSize:D},j.GetReservationUserExcel(n).then(function(r){var l=URL.createObjectURL(new Blob([r])),m="\u83B7\u53D6\u9884\u5B9A\u4EBA\u5458\u660E\u7EC6.xlsx",x=document.createElement("a");x.href=l,x.download=m,x.click(),URL.revokeObjectURL(l)});case 3:case"end":return u.stop()}},a)}));return function(){return i.apply(this,arguments)}}(),ct=function(){var i=(0,Z.Z)((0,d.Z)().mark(function a(){var e,n;return(0,d.Z)().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:e=I.find(function(r){return r.value===Y}),n={beginTime:G[0]._i,endTime:G[1]._i,orgName:(e==null?void 0:e.label)||"",mealType:b||"",current:g,pageSize:D},j.GetReservationOrgExcel(n).then(function(r){var l=URL.createObjectURL(new Blob([r])),m="\u9884\u5B9A\u90E8\u95E8\u6C47\u603B.xlsx",x=document.createElement("a");x.href=l,x.download=m,x.click(),URL.revokeObjectURL(l)});case 3:case"end":return u.stop()}},a)}));return function(){return i.apply(this,arguments)}}(),vt=function(){var i=(0,Z.Z)((0,d.Z)().mark(function a(){var e,n;return(0,d.Z)().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:e=I.find(function(r){return r.value===Y}),n={beginTime:G[0]._i,endTime:G[1]._i,orgName:(e==null?void 0:e.label)||"",mealType:b||"",current:g,pageSize:D},j.GetReservationGoodsDetailedExcel(n).then(function(r){var l=URL.createObjectURL(new Blob([r])),m="\u9884\u5B9A\u5546\u54C1\u660E\u7EC6.xlsx",x=document.createElement("a");x.href=l,x.download=m,x.click(),URL.revokeObjectURL(l)});case 3:case"end":return u.stop()}},a)}));return function(){return i.apply(this,arguments)}}();return(0,v.useEffect)(function(){nt()},[]),(0,v.useEffect)(function(){fe()},[R,g]),(0,t.jsxs)(Se.ZP,{children:[(0,t.jsxs)("div",{className:h()["welcome-container"],children:[Le?(0,t.jsx)(lt,{}):null,(0,t.jsx)(V.Z,{style:{marginBottom:"30px"},children:(0,t.jsxs)(he.Z,{children:[(0,t.jsx)(N.Z,{xs:24,sm:12,md:12,lg:12,xl:6,style:{margin:"10px 0"},children:(0,t.jsxs)("div",{className:h()["echarts-card-choose"],children:[(0,t.jsx)("div",{className:h()["echarts-card-choose-text"],children:"\u8D77\u6B62\u65F6\u95F4\uFF1A"}),(0,t.jsx)(Ee,{style:{width:"70%"},className:h()["my-range-picker"],value:G,onChange:function(a,e){var n=[y()(y()(new Date(e[0])).format("YYYY-MM-DD 00:00:00")),y()(y()(new Date(e[1])).format("YYYY-MM-DD 23:59:59"))];oe(n)}})]})}),(0,t.jsx)(N.Z,{xs:24,sm:12,md:12,lg:12,xl:6,style:{margin:"10px 0"},children:(0,t.jsxs)("div",{className:h()["echarts-card-choose"],children:[(0,t.jsx)("div",{className:h()["echarts-card-choose-text"],children:"\u6240\u5C5E\u90E8\u95E8\uFF1A"}),(0,t.jsx)(K.Z,{placeholder:"\u8BF7\u9009\u62E9\u90E8\u95E8\uFF01",style:{width:"70%"},value:Y,onChange:de,options:I})]})}),(0,t.jsx)(N.Z,{xs:24,sm:12,md:12,lg:12,xl:6,style:{margin:"10px 0"},children:(0,t.jsxs)("div",{className:h()["echarts-card-choose"],children:[(0,t.jsx)("div",{className:h()["echarts-card-choose-text"],children:"\u7528\u9910\u65F6\u6BB5\uFF1A"}),(0,t.jsx)(K.Z,{placeholder:"\u8BF7\u9009\u62E9\u7528\u9910\u65F6\u6BB5\uFF01",style:{width:"70%"},value:b,onChange:me,options:tt})]})}),(0,t.jsxs)(N.Z,{xs:24,sm:12,md:12,lg:12,xl:6,style:{margin:"10px 0"},children:[(0,t.jsx)(w.Z,{className:h()["echarts-card-btn"],type:"primary",style:{width:"100px",marginRight:"10px"},onClick:function(){return fe()},children:"\u67E5\u8BE2"}),(0,t.jsx)(w.Z,{className:h()["echarts-card-btn"],style:{width:"100px"},onClick:function(){oe([y()(y()(new Date(Date.now()+24*60*60*1e3)).format("YYYY-MM-DD 00:00:00")),y()(y()(new Date(Date.now()+24*60*60*1e3)).format("YYYY-MM-DD 23:59:59"))]),de(),me(),T(1),F(10)},children:"\u91CD\u7F6E"})]})]})}),(0,t.jsx)(V.Z,{children:(0,t.jsxs)(J.Z,{tabPosition:"left",value:R,onChange:function(a){O(a),z(0),T(1)},children:[(0,t.jsx)(P,{tab:"\u9884\u5B9A\u83DC\u54C1\u6C47\u603B",children:R==1&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(A.Z,{style:{display:"flex",alignItems:"center",marginBottom:"10px"},children:[(0,t.jsx)("div",{className:h()["tabs-title"],children:"\u9884\u5B9A\u83DC\u54C1\u6C47\u603B"}),(0,t.jsx)(w.Z,{type:"primary",icon:(0,t.jsx)(L.Z,{}),size:"middle",onClick:ut,children:"\u62A5\u8868\u4E0B\u8F7D"})]}),(0,t.jsx)(M.Z,{columns:Ke,dataSource:Be,pagination:{current:g,pageSize:D,total:k,onChange:T,onShowSizeChange:function(a,e){return F(e)}}})]})},1),(0,t.jsx)(P,{tab:"\u90E8\u95E8\u9884\u5B9A\u6C47\u603B",children:R==3&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(A.Z,{style:{display:"flex",alignItems:"center",marginBottom:"10px"},children:[(0,t.jsx)("div",{className:h()["tabs-title"],children:"\u90E8\u95E8\u9884\u5B9A\u6C47\u603B"}),(0,t.jsx)(w.Z,{type:"primary",icon:(0,t.jsx)(L.Z,{}),size:"middle",onClick:ct,children:"\u62A5\u8868\u4E0B\u8F7D"})]}),(0,t.jsx)(M.Z,{columns:He,dataSource:Oe,pagination:{current:g,pageSize:D,total:k,onChange:T,onShowSizeChange:function(a,e){return F(e)}}})]})},3),(0,t.jsx)(P,{tab:"\u9884\u5B9A\u4EBA\u5458\u660E\u7EC6",children:R==2&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(A.Z,{style:{display:"flex",alignItems:"center",marginBottom:"10px"},children:[(0,t.jsx)("div",{className:h()["tabs-title"],children:"\u9884\u5B9A\u4EBA\u5458\u660E\u7EC6"}),(0,t.jsx)(w.Z,{type:"primary",icon:(0,t.jsx)(L.Z,{}),size:"middle",onClick:dt,children:"\u62A5\u8868\u4E0B\u8F7D"})]}),(0,t.jsx)(M.Z,{columns:Qe,dataSource:be,pagination:{current:g,pageSize:D,onChange:T,onShowSizeChange:function(a,e){return F(e)}}})]})},2)," ",(0,t.jsx)(P,{tab:"\u9884\u5B9A\u5546\u54C1\u660E\u7EC6",children:R==4&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(A.Z,{style:{display:"flex",alignItems:"center",marginBottom:"10px"},children:[(0,t.jsx)("div",{className:h()["tabs-title"],children:"\u9884\u5B9A\u5546\u54C1\u660E\u7EC6"}),(0,t.jsx)(w.Z,{type:"primary",icon:(0,t.jsx)(L.Z,{}),size:"middle",onClick:vt,children:"\u62A5\u8868\u4E0B\u8F7D"})]}),(0,t.jsx)(M.Z,{columns:Je,dataSource:Me,pagination:{current:g,pageSize:D,total:k,onChange:T,onShowSizeChange:function(a,e){return F(e)}}})]})},4)]})})]}),ke&&(0,t.jsx)(Ze,{createModalVisible:!0,values:We||{},timeRange:G,onCancel:function(){ne(!1),se(void 0)}})]})}}}]); diff --git a/dist/p__card__reservationReport.25ab5628.async.js b/dist/p__card__reservationReport.25ab5628.async.js new file mode 100644 index 0000000..18d9c95 --- /dev/null +++ b/dist/p__card__reservationReport.25ab5628.async.js @@ -0,0 +1 @@ +(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[2522,1322,1279,7800,6398,6794,944,8208],{59314:function(P){P.exports={"welcome-head":"welcome-head___sqI6D","welcome-head-org":"welcome-head-org___2svCy","echarts-card-choose":"echarts-card-choose___1Ygxt","my-loading":"my-loading___1lMfA","device-list":"device-list___3WSGp","my-range-picker":"my-range-picker___1EI6E","tabs-title":"tabs-title___1-qjz"}},73397:function(P,R,e){"use strict";e.r(R),e.d(R,{default:function(){return fe}});var Ve=e(66456),ee=e(64411),We=e(49111),te=e(19650),we=e(58024),E=e(91894),Ke=e(13062),ae=e(71230),He=e(57663),N=e(71577),Je=e(89032),z=e(15746),Qe=e(20228),ne=e(11382),g=e(39428),T=e(3182),o=e(2824),Ue=e(18106),B=e(36166),Xe=e(14965),re=e(91774),s=e(67294),se=e(30381),u=e.n(se),M=e(48971),G={GetDayConsumeInfo:function(i){return(0,M.WY)("/kitchen/api/Reservation/GetDayConsumeInfo",{method:"POST",data:i})},GetDayConsumeDetailed:function(i){return(0,M.WY)("/kitchen/api/Reservation/GetDayConsumeDetailed",{method:"POST",data:i})},GetDeparent:function(i){return(0,M.WY)("/kitchen/api/member-tag/member-tag",{method:"POST",data:i})}},ie=e(59314),c=e.n(ie),le=e(78009),be=e(71194),oe=e(50146),ue=e(16894),t=e(85893),de=function(i){var D=[{title:"\u7528\u9910\u90E8\u95E8",dataIndex:"mname"},{title:"\u7528\u9910\u4EBA\u5458",dataIndex:"nickName"},{title:"\u7528\u9910\u65F6\u6BB5",dataIndex:"timeInterval",render:function(p,d){if(d.timeInterval==="1")return"\u65E9\u9910";if(d.timeInterval==="2")return"\u5348\u9910";if(d.timeInterval==="3")return"\u665A\u9910"}},{title:"\u7528\u9910\u65F6\u95F4",dataIndex:"createAt"}];return(0,t.jsx)(oe.Z,{title:"\u67E5\u770B\u7528\u9910\u8BE6\u60C5",width:640,visible:i.createModalVisible,bodyStyle:{padding:"32px 40px 48px"},footer:null,onCancel:function(){i.onCancel()},destroyOnClose:!0,children:(0,t.jsx)(ue.ZP,{headerTitle:"\u67E5\u770B\u7528\u9910\u8BE6\u60C5",rowKey:"id",pag:!0,search:!1,request:function(){var C=(0,T.Z)((0,g.Z)().mark(function p(d){var v,f;return(0,g.Z)().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:return v=[],f=0,d.startTime=i.timeRange[0]._i,d.endTime=i.timeRange[1]._i,d.orgName=i.values.mname,d.timeInterval=i.values.timeInterval,m.next=8,G.GetDayConsumeDetailed(d).then(function(Z){v=Z.data.data,f=Z.data.total});case 8:return m.abrupt("return",{data:v,success:!0,total:f});case 9:case"end":return m.stop()}},p)}));return function(p){return C.apply(this,arguments)}}(),columns:D,pagination:{defaultPageSize:9e3,showSizeChanger:!0}})})},ce=de,me=re.Z.RangePicker,ve=B.Z.TabPane,fe=function(){var x=(0,s.useState)(1),i=(0,o.Z)(x,2),D=i[0],C=i[1],p=(0,s.useState)(1),d=(0,o.Z)(p,2),v=d[0],f=d[1],F=(0,s.useState)(50),m=(0,o.Z)(F,2),Z=m[0],L=m[1],he=(0,s.useState)(0),$=(0,o.Z)(he,2),ge=$[0],A=$[1],De=(0,s.useState)([]),O=(0,o.Z)(De,2),ye=O[0],Se=O[1],xe=(0,s.useState)(!1),V=(0,o.Z)(xe,2),Ce=V[0],W=V[1],pe=(0,s.useState)(),w=(0,o.Z)(pe,2),Ze=w[0],K=w[1],Ie=(0,s.useState)(!1),H=(0,o.Z)(Ie,2),je=H[0],J=H[1],Ye=(0,s.useState)([u()(u()(new Date(Date.now()+24*60*60*1e3)).format("YYYY-MM-DD 00:00:00")),u()(u()(new Date(Date.now()+24*60*60*1e3)).format("YYYY-MM-DD 23:59:59"))]),Q=(0,o.Z)(Ye,2),I=Q[0],U=Q[1],Te=[{title:"\u7528\u9910\u90E8\u95E8",dataIndex:"mname"},{title:"\u7528\u9910\u65F6\u6BB5",dataIndex:"timeInterval",render:function(n,a){if(a.timeInterval==="1")return"\u65E9\u9910";if(a.timeInterval==="2")return"\u5348\u9910";if(a.timeInterval==="3")return"\u665A\u9910"}},{title:"\u7528\u9910\u6570\u91CF",dataIndex:"sumqty",sortDirections:["ascend","descend"],sorter:function(n,a){return n.value-a.value}},{title:"\u9884\u5B9A\u90E8\u95E8",dataIndex:"orgName"},{title:"\u9884\u5B9A\u4EBA\u5458",dataIndex:"nickName"},{title:"\u9884\u5B9A\u7528\u9910\u65F6\u6BB5",dataIndex:"mealType",render:function(n,a){if(a.mealType==="1")return"\u65E9\u9910";if(a.mealType==="2")return"\u5348\u9910";if(a.mealType==="3")return"\u665A\u9910"}},{title:"\u9884\u5B9A\u6570\u91CF",dataIndex:"rqty",sortDirections:["ascend","descend"],sorter:function(n,a){return n.value-a.value}},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(n,a){return(0,t.jsx)(t.Fragment,{children:(0,t.jsx)("a",{onClick:function(){J(!0),K(a)},children:"\u67E5\u770B\u8BE6\u60C5"})})}}];(0,s.useEffect)(function(){X()},[D,v]);var X=function(){var n=Pe.find(function(l){return l.value===Ne}),a={startTime:I[0]._i,endTime:I[1]._i,orgName:(n==null?void 0:n.label)||"",mealType:Le||"",current:v,pageSize:Z};D==1&&Me(a)},Me=function(){var r=(0,T.Z)((0,g.Z)().mark(function n(a){var l,y;return(0,g.Z)().wrap(function(S){for(;;)switch(S.prev=S.next){case 0:return W(!0),S.next=3,G.GetDayConsumeInfo(a);case 3:l=S.sent,W(!1),l.succeeded?(y=l.data.data.sort(function(h,Y){return Y.value-h.value}),A(l.data.total),Se(y)):console.log("Message:",l.msg||"\u83B7\u53D6\u9884\u5B9A\u5546\u54C1\u5931\u8D25");case 6:case"end":return S.stop()}},n)}));return function(a){return r.apply(this,arguments)}}(),Ge=(0,s.useState)([]),b=(0,o.Z)(Ge,2),Pe=b[0],Re=b[1],Ee=(0,s.useState)(),k=(0,o.Z)(Ee,2),Ne=k[0],ze=k[1],Be=(0,s.useState)([{value:1,label:"\u65E9\u9910"},{value:2,label:"\u4E2D\u9910"},{value:3,label:"\u665A\u9910"}]),q=(0,o.Z)(Be,2),ke=q[0],qe=q[1],Fe=(0,s.useState)(),_=(0,o.Z)(Fe,2),Le=_[0],$e=_[1],Ae=function(){var r=(0,T.Z)((0,g.Z)().mark(function n(){var a,l,y,j;return(0,g.Z)().wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return h.next=2,G.GetDeparent({current:1,pageSize:9999,platformType:"4"});case 2:a=h.sent,a.statusCode===200&&(j=[],(l=a.data)===null||l===void 0||(y=l.data)===null||y===void 0||y.forEach(function(Y){j.push({label:Y.name,value:Y.id})}),Re(j));case 4:case"end":return h.stop()}},n)}));return function(){return r.apply(this,arguments)}}(),Oe=function(){return(0,t.jsx)(ne.Z,{className:c()["my-loading"],size:"large"})};return(0,s.useEffect)(function(){Ae()},[]),(0,t.jsxs)(le.ZP,{children:[(0,t.jsxs)("div",{className:c()["welcome-container"],children:[Ce?(0,t.jsx)(Oe,{}):null,(0,t.jsx)(E.Z,{style:{marginBottom:"30px"},children:(0,t.jsxs)(ae.Z,{children:[(0,t.jsx)(z.Z,{xs:24,sm:12,md:12,lg:12,xl:6,style:{margin:"10px 0"},children:(0,t.jsxs)("div",{className:c()["echarts-card-choose"],children:[(0,t.jsx)("div",{className:c()["echarts-card-choose-text"],children:"\u8D77\u6B62\u65F6\u95F4\uFF1A"}),(0,t.jsx)(me,{style:{width:"70%"},className:c()["my-range-picker"],value:I,onChange:function(n,a){var l=[u()(u()(new Date(a[0])).format("YYYY-MM-DD 00:00:00")),u()(u()(new Date(a[1])).format("YYYY-MM-DD 23:59:59"))];U(l)}})]})}),(0,t.jsxs)(z.Z,{xs:24,sm:12,md:12,lg:12,xl:6,style:{margin:"10px 0"},children:[(0,t.jsx)(N.Z,{className:c()["echarts-card-btn"],type:"primary",style:{width:"100px",marginRight:"10px"},onClick:function(){return X()},children:"\u67E5\u8BE2"}),(0,t.jsx)(N.Z,{className:c()["echarts-card-btn"],style:{width:"100px"},onClick:function(){U([u()(u()(new Date(Date.now()+24*60*60*1e3)).format("YYYY-MM-DD 00:00:00")),u()(u()(new Date(Date.now()+24*60*60*1e3)).format("YYYY-MM-DD 23:59:59"))]),ze(),$e(),f(1),L(10)},children:"\u91CD\u7F6E"})]})]})}),(0,t.jsx)(E.Z,{children:(0,t.jsx)(B.Z,{tabPosition:"left",value:D,onChange:function(n){C(n),A(0),f(1)},children:(0,t.jsx)(ve,{tab:"\u7528\u9910\u60C5\u51B5",children:D==1&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(te.Z,{style:{display:"flex",alignItems:"center",marginBottom:"10px"},children:(0,t.jsx)("div",{className:c()["tabs-title"],children:"\u7528\u9910\u60C5\u51B5"})}),(0,t.jsx)(ee.Z,{columns:Te,dataSource:ye,pagination:{current:v,pageSize:Z,total:ge,onChange:f,onShowSizeChange:function(n,a){return L(a)}}})]})},1)})})]}),je&&(0,t.jsx)(ce,{createModalVisible:!0,values:Ze||{},timeRange:I,onCancel:function(){J(!1),K(void 0)}})]})}}}]); diff --git a/dist/p__card__reservationReport.b0995e46.async.js b/dist/p__card__reservationReport.b0995e46.async.js deleted file mode 100644 index 4fa0ba3..0000000 --- a/dist/p__card__reservationReport.b0995e46.async.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[2522,1322,9464,1981,2869,7013,9719,2383],{59314:function(P){P.exports={"welcome-head":"welcome-head___sqI6D","welcome-head-org":"welcome-head-org___2svCy","echarts-card-choose":"echarts-card-choose___1Ygxt","my-loading":"my-loading___1lMfA","device-list":"device-list___3WSGp","my-range-picker":"my-range-picker___1EI6E","tabs-title":"tabs-title___1-qjz"}},73397:function(P,R,e){"use strict";e.r(R),e.d(R,{default:function(){return fe}});var Ve=e(66456),ee=e(64411),We=e(49111),te=e(19650),we=e(58024),E=e(91894),Ke=e(13062),ae=e(71230),He=e(57663),N=e(71577),Je=e(89032),z=e(15746),Qe=e(20228),ne=e(11382),g=e(39428),T=e(3182),o=e(2824),Ue=e(18106),B=e(95562),Xe=e(14965),re=e(91774),s=e(67294),se=e(30381),u=e.n(se),M=e(48971),G={GetDayConsumeInfo:function(i){return(0,M.WY)("/kitchen/api/Reservation/GetDayConsumeInfo",{method:"POST",data:i})},GetDayConsumeDetailed:function(i){return(0,M.WY)("/kitchen/api/Reservation/GetDayConsumeDetailed",{method:"POST",data:i})},GetDeparent:function(i){return(0,M.WY)("/kitchen/api/member-tag/member-tag",{method:"POST",data:i})}},ie=e(59314),c=e.n(ie),le=e(78009),be=e(71194),oe=e(50146),ue=e(16894),t=e(85893),de=function(i){var D=[{title:"\u7528\u9910\u90E8\u95E8",dataIndex:"mname"},{title:"\u7528\u9910\u4EBA\u5458",dataIndex:"nickName"},{title:"\u7528\u9910\u65F6\u6BB5",dataIndex:"timeInterval",render:function(p,d){if(d.timeInterval==="1")return"\u65E9\u9910";if(d.timeInterval==="2")return"\u5348\u9910";if(d.timeInterval==="3")return"\u665A\u9910"}},{title:"\u7528\u9910\u65F6\u95F4",dataIndex:"createAt"}];return(0,t.jsx)(oe.Z,{title:"\u67E5\u770B\u7528\u9910\u8BE6\u60C5",width:640,visible:i.createModalVisible,bodyStyle:{padding:"32px 40px 48px"},footer:null,onCancel:function(){i.onCancel()},destroyOnClose:!0,children:(0,t.jsx)(ue.ZP,{headerTitle:"\u67E5\u770B\u7528\u9910\u8BE6\u60C5",rowKey:"id",pag:!0,search:!1,request:function(){var C=(0,T.Z)((0,g.Z)().mark(function p(d){var v,f;return(0,g.Z)().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:return v=[],f=0,d.startTime=i.timeRange[0]._i,d.endTime=i.timeRange[1]._i,d.orgName=i.values.mname,d.timeInterval=i.values.timeInterval,m.next=8,G.GetDayConsumeDetailed(d).then(function(Z){v=Z.data.data,f=Z.data.total});case 8:return m.abrupt("return",{data:v,success:!0,total:f});case 9:case"end":return m.stop()}},p)}));return function(p){return C.apply(this,arguments)}}(),columns:D,pagination:{defaultPageSize:9e3,showSizeChanger:!0}})})},ce=de,me=re.Z.RangePicker,ve=B.Z.TabPane,fe=function(){var x=(0,s.useState)(1),i=(0,o.Z)(x,2),D=i[0],C=i[1],p=(0,s.useState)(1),d=(0,o.Z)(p,2),v=d[0],f=d[1],F=(0,s.useState)(50),m=(0,o.Z)(F,2),Z=m[0],L=m[1],he=(0,s.useState)(0),$=(0,o.Z)(he,2),ge=$[0],A=$[1],De=(0,s.useState)([]),O=(0,o.Z)(De,2),ye=O[0],Se=O[1],xe=(0,s.useState)(!1),V=(0,o.Z)(xe,2),Ce=V[0],W=V[1],pe=(0,s.useState)(),w=(0,o.Z)(pe,2),Ze=w[0],K=w[1],Ie=(0,s.useState)(!1),H=(0,o.Z)(Ie,2),je=H[0],J=H[1],Ye=(0,s.useState)([u()(u()(new Date(Date.now()+24*60*60*1e3)).format("YYYY-MM-DD 00:00:00")),u()(u()(new Date(Date.now()+24*60*60*1e3)).format("YYYY-MM-DD 23:59:59"))]),Q=(0,o.Z)(Ye,2),I=Q[0],U=Q[1],Te=[{title:"\u7528\u9910\u90E8\u95E8",dataIndex:"mname"},{title:"\u7528\u9910\u65F6\u6BB5",dataIndex:"timeInterval",render:function(n,a){if(a.timeInterval==="1")return"\u65E9\u9910";if(a.timeInterval==="2")return"\u5348\u9910";if(a.timeInterval==="3")return"\u665A\u9910"}},{title:"\u7528\u9910\u6570\u91CF",dataIndex:"sumqty",sortDirections:["ascend","descend"],sorter:function(n,a){return n.value-a.value}},{title:"\u9884\u5B9A\u90E8\u95E8",dataIndex:"orgName"},{title:"\u9884\u5B9A\u4EBA\u5458",dataIndex:"nickName"},{title:"\u9884\u5B9A\u7528\u9910\u65F6\u6BB5",dataIndex:"mealType",render:function(n,a){if(a.mealType==="1")return"\u65E9\u9910";if(a.mealType==="2")return"\u5348\u9910";if(a.mealType==="3")return"\u665A\u9910"}},{title:"\u9884\u5B9A\u6570\u91CF",dataIndex:"rqty",sortDirections:["ascend","descend"],sorter:function(n,a){return n.value-a.value}},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(n,a){return(0,t.jsx)(t.Fragment,{children:(0,t.jsx)("a",{onClick:function(){J(!0),K(a)},children:"\u67E5\u770B\u8BE6\u60C5"})})}}];(0,s.useEffect)(function(){X()},[D,v]);var X=function(){var n=Pe.find(function(l){return l.value===Ne}),a={startTime:I[0]._i,endTime:I[1]._i,orgName:(n==null?void 0:n.label)||"",mealType:Le||"",current:v,pageSize:Z};D==1&&Me(a)},Me=function(){var r=(0,T.Z)((0,g.Z)().mark(function n(a){var l,y;return(0,g.Z)().wrap(function(S){for(;;)switch(S.prev=S.next){case 0:return W(!0),S.next=3,G.GetDayConsumeInfo(a);case 3:l=S.sent,W(!1),l.succeeded?(y=l.data.data.sort(function(h,Y){return Y.value-h.value}),A(l.data.total),Se(y)):console.log("Message:",l.msg||"\u83B7\u53D6\u9884\u5B9A\u5546\u54C1\u5931\u8D25");case 6:case"end":return S.stop()}},n)}));return function(a){return r.apply(this,arguments)}}(),Ge=(0,s.useState)([]),b=(0,o.Z)(Ge,2),Pe=b[0],Re=b[1],Ee=(0,s.useState)(),k=(0,o.Z)(Ee,2),Ne=k[0],ze=k[1],Be=(0,s.useState)([{value:1,label:"\u65E9\u9910"},{value:2,label:"\u4E2D\u9910"},{value:3,label:"\u665A\u9910"}]),q=(0,o.Z)(Be,2),ke=q[0],qe=q[1],Fe=(0,s.useState)(),_=(0,o.Z)(Fe,2),Le=_[0],$e=_[1],Ae=function(){var r=(0,T.Z)((0,g.Z)().mark(function n(){var a,l,y,j;return(0,g.Z)().wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return h.next=2,G.GetDeparent({current:1,pageSize:9999,platformType:"4"});case 2:a=h.sent,a.statusCode===200&&(j=[],(l=a.data)===null||l===void 0||(y=l.data)===null||y===void 0||y.forEach(function(Y){j.push({label:Y.name,value:Y.id})}),Re(j));case 4:case"end":return h.stop()}},n)}));return function(){return r.apply(this,arguments)}}(),Oe=function(){return(0,t.jsx)(ne.Z,{className:c()["my-loading"],size:"large"})};return(0,s.useEffect)(function(){Ae()},[]),(0,t.jsxs)(le.ZP,{children:[(0,t.jsxs)("div",{className:c()["welcome-container"],children:[Ce?(0,t.jsx)(Oe,{}):null,(0,t.jsx)(E.Z,{style:{marginBottom:"30px"},children:(0,t.jsxs)(ae.Z,{children:[(0,t.jsx)(z.Z,{xs:24,sm:12,md:12,lg:12,xl:6,style:{margin:"10px 0"},children:(0,t.jsxs)("div",{className:c()["echarts-card-choose"],children:[(0,t.jsx)("div",{className:c()["echarts-card-choose-text"],children:"\u8D77\u6B62\u65F6\u95F4\uFF1A"}),(0,t.jsx)(me,{style:{width:"70%"},className:c()["my-range-picker"],value:I,onChange:function(n,a){var l=[u()(u()(new Date(a[0])).format("YYYY-MM-DD 00:00:00")),u()(u()(new Date(a[1])).format("YYYY-MM-DD 23:59:59"))];U(l)}})]})}),(0,t.jsxs)(z.Z,{xs:24,sm:12,md:12,lg:12,xl:6,style:{margin:"10px 0"},children:[(0,t.jsx)(N.Z,{className:c()["echarts-card-btn"],type:"primary",style:{width:"100px",marginRight:"10px"},onClick:function(){return X()},children:"\u67E5\u8BE2"}),(0,t.jsx)(N.Z,{className:c()["echarts-card-btn"],style:{width:"100px"},onClick:function(){U([u()(u()(new Date(Date.now()+24*60*60*1e3)).format("YYYY-MM-DD 00:00:00")),u()(u()(new Date(Date.now()+24*60*60*1e3)).format("YYYY-MM-DD 23:59:59"))]),ze(),$e(),f(1),L(10)},children:"\u91CD\u7F6E"})]})]})}),(0,t.jsx)(E.Z,{children:(0,t.jsx)(B.Z,{tabPosition:"left",value:D,onChange:function(n){C(n),A(0),f(1)},children:(0,t.jsx)(ve,{tab:"\u7528\u9910\u60C5\u51B5",children:D==1&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(te.Z,{style:{display:"flex",alignItems:"center",marginBottom:"10px"},children:(0,t.jsx)("div",{className:c()["tabs-title"],children:"\u7528\u9910\u60C5\u51B5"})}),(0,t.jsx)(ee.Z,{columns:Te,dataSource:ye,pagination:{current:v,pageSize:Z,total:ge,onChange:f,onShowSizeChange:function(n,a){return L(a)}}})]})},1)})})]}),je&&(0,t.jsx)(ce,{createModalVisible:!0,values:Ze||{},timeRange:I,onCancel:function(){J(!1),K(void 0)}})]})}}}]); diff --git a/dist/p__card__storedValueCard.9cfd13a3.async.js b/dist/p__card__storedValueCard.93ac20da.async.js similarity index 72% rename from dist/p__card__storedValueCard.9cfd13a3.async.js rename to dist/p__card__storedValueCard.93ac20da.async.js index 3afe63d..7c3b930 100644 --- a/dist/p__card__storedValueCard.9cfd13a3.async.js +++ b/dist/p__card__storedValueCard.93ac20da.async.js @@ -1 +1 @@ -(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[478,1322],{59842:function(){},66050:function(H,I,a){"use strict";var G=a(11849),n=a(48971);I.Z={GetAllStore:function(){return(0,n.WY)("/kitchen/api/StoreHelper/GetAllStore",{method:"GET",headers:{TenantId:""}})},GetMemberListByPage:function(e){return(0,n.WY)("/kitchen/api/member/member-page-query",{method:"POST",data:e})},OnBindMember:function(e){return(0,n.WY)("/kitchen/api/member/member-binding-cards",{method:"POST",data:e})},GetMemberAccountCardConsRecord:function(e){return(0,n.WY)("/kitchen/api/member/member-account-amount-page",{method:"POST",data:e})},GetMemberAccountRecordTotal:function(e){return(0,n.WY)("/kitchen/api/member/member-account-record-total",{method:"POST",data:e})},AddGate:function(e){return(0,n.WY)("/kitchen/api/GateInfo/add",{method:"POST",data:e})},EnableGate:function(e){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return(0,n.WY)("/kitchen/api/GateInfo/Enable",{method:"POST",data:e,headers:{TenantId:l}})},GetGateListByStorePage:function(e,l,C){var _=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"";return(0,n.WY)("/kitchen/api/GateInfo/gatelist?StoreId=".concat(e,"&Current=").concat(l,"&PageSize=").concat(C),{method:"GET",headers:{TenantId:_}})},GetGateListByStorePageNew:function(e,l,C){var _=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"";return(0,n.WY)("/kitchen/api/one-card/gate-list?StoreId=".concat(e,"&Current=").concat(l,"&PageSize=").concat(C),{method:"GET",headers:{TenantId:_}})},GetGateListByStoreList:function(e){return(0,n.WY)("/kitchen/api/GateInfo/gatealllist?StoreId=".concat(e),{method:"GET"})},UpdateGateInfo:function(e){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return(0,n.WY)("/kitchen/api/GateInfo/Update",{method:"POST",data:e,headers:{TenantId:l}})},UpdateGateInfoNew:function(e){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return(0,n.WY)("/kitchen/api/one-card",{method:"PUT",data:e,headers:{TenantId:l}})},PayCardAdd:function(e){return(0,n.WY)("/kitchen/api/PayCard/add",{method:"POST",data:e})},PayCardEnable:function(e){return(0,n.WY)("/kitchenapi/PayCard/enable",{method:"POST",data:e})},PayCardByGateId:function(e,l,C){return(0,n.WY)("/kitchen/api/PayCard/gateList?GateId=".concat(e,"&Current=").concat(l,"&PageSize=").concat(C),{method:"GET"})},UpdatePayCardInfo:function(e){return(0,n.WY)("/kitchen/api/PayCard/update",{method:"POST",data:e})},GetCosRequestURL:function(e){return(0,n.WY)("/kitchen/api/systemconfig/GetCosRequestSignURL",{method:"POST",data:e})},GetMemberAccountPageList:function(e){return(0,n.WY)("/kitchen/api/member/member-account-page-list",{method:"POST",data:e})},UpdateMemberAccountStatus:function(e){return(0,n.WY)("/kitchen/api/member/member-account-status",{method:"POST",data:e})},GetMemberCardPageList:function(e){return(0,n.WY)("/kitchen/api/member/mmenber-card-page",{method:"POST",data:e})},AddMemberCard:function(e){return(0,n.WY)("/kitchen/api/member/mmenber-card",{method:"POST",data:e})},UpdateMemberCardState:function(e){return(0,n.WY)("/kitchen/api/member/mmenber-card-state",{method:"PUT",data:e})},GetDicList:function(e){return(0,n.WY)("/kitchen/api/dict-data/dic-list/".concat(e),{method:"Get"})},AddGateSetUp:function(e){return(0,n.WY)("/kitchen/api/GateInfo/AddGateSetUp",{method:"POST",data:e})},GetFoodList:function(e){return(0,n.WY)("/kitchen/api/dict-data/dic-list/".concat(e),{method:"Get"})},AddGateFood:function(e){return(0,n.WY)("/kitchen/api/GateInfo/AddGateFood",{method:"POST",data:e})},GetGoodsByMenuIdPage:function(e){return(0,n.WY)("/kitchen/api/FoodMenu/GetGoodsByMenuIdPage",{method:"POST",data:(0,G.Z)({},e)})}}},95510:function(H,I,a){"use strict";a.r(I);var G=a(57338),n=a(273),s=a(11849),e=a(71194),l=a(50146),C=a(43358),_=a(34041),Be=a(47673),y=a(4107),Te=a(57663),S=a(71577),ve=a(94233),W=a(51890),f=a(39428),Ae=a(34792),E=a(48086),g=a(3182),De=a(9715),p=a(55843),m=a(2824),h=a(67294),V=a(59842),J=a.n(V),Q=a(78009),Z=a(89366),R=a(49101),L=a(16894),b=a(66050),t=a(85893),X=function(){var O=(0,h.useRef)(),q=p.Z.useForm(),ee=(0,m.Z)(q,1),B=ee[0],te=(0,h.useState)(!1),U=(0,m.Z)(te,2),ae=U[0],M=U[1],ne=(0,h.useState)({id:""}),j=(0,m.Z)(ne,2),x=j[0],T=j[1],re=(0,h.useState)(1),K=(0,m.Z)(re,2),ye=K[0],se=K[1],de=(0,h.useState)(10),F=(0,m.Z)(de,2),ue=F[0],We=F[1],ie=(0,h.useState)(0),Y=(0,m.Z)(ie,2),Ze=Y[0],Re=Y[1],oe=(0,h.useState)(!1),k=(0,m.Z)(oe,2),le=k[0],v=k[1],_e=(0,h.useState)(1),z=(0,m.Z)(_e,2),Le=z[0],ce=z[1],me=(0,h.useState)(10),N=(0,m.Z)(me,2),he=N[0],Ue=N[1],Pe=(0,h.useState)(0),w=(0,m.Z)(Pe,2),je=w[0],fe=w[1],Ee=(0,h.useState)([]),$=(0,m.Z)(Ee,2),A=$[0],D=$[1],pe=function(r){B.setFieldsValue(r),T(r),M(!0)},Ce=function(){B.resetFields(),T({id:""}),M(!0)},be=function(r){v(!0),T(r),D([]),r.memberInfoId&&D([r.memberInfoId])},Me=function(){var u=(0,g.Z)((0,f.Z)().mark(function r(){var d;return(0,f.Z)().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:if(A.length!==0){o.next=3;break}return E.default.info("\u8BF7\u9009\u62E9\u8981\u7ED1\u5B9A\u7684\u4F1A\u5458"),o.abrupt("return");case 3:return o.next=5,b.Z.OnBindMember({memberInfoId:A[0],memberCardId:x.id});case 5:d=o.sent,d.data===!0?(E.default.success("\u7ED1\u5B9A\u6210\u529F"),O.current.reload(),v(!1)):E.default.error("\u7ED1\u5B9A\u5931\u8D25");case 7:case"end":return o.stop()}},r)}));return function(){return u.apply(this,arguments)}}(),xe=function(r){console.log("\u5220\u9664",r)},Ie=function(){var u=(0,g.Z)((0,f.Z)().mark(function r(d){var c,o;return(0,f.Z)().wrap(function(P){for(;;)switch(P.prev=P.next){case 0:if(!d.id){P.next=7;break}return P.next=3,b.Z.UpdateMemberCardState({id:d.id,type:d.type,state:d.state});case 3:c=P.sent,c.statusCode===200?(E.default.success("\u66F4\u65B0\u6210\u529F"),M(!1),O.current.reload()):E.default.error(c.errors||"\u66F4\u65B0\u50A8\u503C\u5361\u5931\u8D25"),P.next=11;break;case 7:return P.next=9,b.Z.AddMemberCard({type:d.type,state:d.state});case 9:o=P.sent,o.statusCode===200?(E.default.success("\u6DFB\u52A0\u6210\u529F"),M(!1),O.current.reload()):E.default.error(o.errors||"\u6DFB\u52A0\u50A8\u503C\u5361\u5931\u8D25");case 11:case"end":return P.stop()}},r)}));return function(d){return u.apply(this,arguments)}}(),ge=[{title:"\u5361\u53F7",dataIndex:"cardNum",ellipsis:!0},{title:"\u4F1A\u5458\u540D\u79F0",dataIndex:"memberName",ellipsis:!0,hideInSearch:!0},{title:"\u4F1A\u5458\u5934\u50CF",dataIndex:"headImgUrl",ellipsis:!0,width:100,align:"center",hideInSearch:!0,render:function(r,d){return(0,t.jsx)(W.C,{size:64,shape:"square",icon:(0,t.jsx)(Z.Z,{}),src:d.headImgUrl})}},{title:"\u4F1A\u5458\u7535\u8BDD",dataIndex:"phone",ellipsis:!0,hideInSearch:!0},{title:"\u72B6\u6001",dataIndex:"state",valueType:"select",hideInSearch:!0,valueEnum:{0:{text:"\u7981\u7528",status:"Error"},1:{text:"\u6B63\u5E38",status:"Success"},2:{text:"\u6302\u5931",status:"Error"},3:{text:"\u4F5C\u5E9F",status:"Error"}}},{title:"\u7C7B\u578B",dataIndex:"type",valueType:"select",hideInSearch:!0,valueEnum:{1:{text:"\u4EBA\u8138",status:"Success"},2:{text:"\u5B9E\u4F53\u5361",status:"Success"},3:{text:"\u6307\u7EB9",status:"Success"}}},{title:"\u64CD\u4F5C",valueType:"option",key:"option",render:function(r,d,c,o){return[(0,t.jsx)("a",{onClick:function(){return pe(d)},children:"\u7F16\u8F91"}),(0,t.jsx)("a",{onClick:function(){return be(d)},children:"\u7ED1\u5B9A\u4F1A\u5458"})]}}],Oe={onChange:function(r){D(r)},selectedRowKeys:A},Se=[{title:"\u4F1A\u5458\u5934\u50CF",dataIndex:"headImgUrl",ellipsis:!0,width:100,align:"center",hideInSearch:!0,render:function(r,d){return(0,t.jsx)(W.C,{size:64,shape:"square",icon:(0,t.jsx)(Z.Z,{}),src:d.headImgUrl})}},{title:"\u771F\u5B9E\u59D3\u540D",dataIndex:"realName",ellipsis:!0},{title:"\u8054\u7CFB\u65B9\u5F0F",dataIndex:"phone",ellipsis:!0}];return(0,t.jsx)(Q.ZP,{children:(0,t.jsxs)("div",{className:J().member_card_container,children:[(0,t.jsx)(L.ZP,{columns:ge,actionRef:O,request:function(){var u=(0,g.Z)((0,f.Z)().mark(function r(d){var c;return(0,f.Z)().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,b.Z.GetMemberCardPageList(d);case 2:return c=i.sent,i.abrupt("return",{data:c.data.data,success:!0,total:c.data.total});case 4:case"end":return i.stop()}},r)}));return function(r){return u.apply(this,arguments)}}(),cardBordered:!0,editable:{type:"multiple"},rowKey:"id",options:{setting:{listsHeight:400}},pagination:{pageSize:ue,onChange:function(r){return se(r)}},dateFormatter:"string",headerTitle:"\u50A8\u503C\u5361\u7BA1\u7406",toolBarRender:function(){return[(0,t.jsx)(S.Z,{icon:(0,t.jsx)(R.Z,{}),type:"primary",onClick:Ce,children:"\u65B0\u5EFA"},"button")]}}),(0,t.jsx)(l.Z,{width:600,title:x.id?"\u7F16\u8F91\u50A8\u503C\u5361":"\u6DFB\u52A0\u50A8\u503C\u5361",visible:ae,footer:!1,onCancel:function(){return M(!1)},children:(0,t.jsxs)(p.Z,{name:"basic",onFinish:Ie,form:B,labelCol:{span:4},children:[(0,t.jsx)(p.Z.Item,{label:"id",name:"id",hidden:!0,children:(0,t.jsx)(y.Z,{})}),(0,t.jsx)(p.Z.Item,{label:"\u5361\u53F7",name:"cardNum",children:(0,t.jsx)(y.Z,{disabled:!0})}),(0,t.jsx)(p.Z.Item,{label:"\u72B6\u6001",name:"state",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u9009\u62E9\u72B6\u6001\uFF01"}],children:(0,t.jsxs)(_.Z,{children:[(0,t.jsx)(_.Z.Option,{value:0,children:"\u7981\u7528"}),(0,t.jsx)(_.Z.Option,{value:1,children:"\u6B63\u5E38"}),(0,t.jsx)(_.Z.Option,{value:2,children:"\u6302\u5931"}),(0,t.jsx)(_.Z.Option,{value:3,children:"\u4F5C\u5E9F"})]})}),(0,t.jsx)(p.Z.Item,{label:"\u7C7B\u578B",name:"type",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u7C7B\u578B\uFF01"}],children:(0,t.jsxs)(_.Z,{children:[(0,t.jsx)(_.Z.Option,{value:1,children:"\u4EBA\u8138"}),(0,t.jsx)(_.Z.Option,{value:2,children:"\u5B9E\u4F53\u5361"}),(0,t.jsx)(_.Z.Option,{value:3,children:"\u6307\u7EB9"})]})}),(0,t.jsx)(p.Z.Item,{children:(0,t.jsx)(S.Z,{type:"primary",htmlType:"submit",children:"\u786E\u5B9A"})})]})}),(0,t.jsx)(n.Z,{width:600,title:"\u7ED1\u5B9A\u4F1A\u5458",placement:"right",onClose:function(){return v(!1)},visible:le,children:(0,t.jsx)(L.ZP,{toolBarRender:function(){return[(0,t.jsx)(S.Z,{icon:(0,t.jsx)(R.Z,{}),type:"primary",onClick:Me,children:"\u786E\u5B9A\u7ED1\u5B9A"},"button")]},rowSelection:(0,s.Z)({type:"radio"},Oe),columns:Se,cardBordered:!0,request:(0,g.Z)((0,f.Z)().mark(function u(){var r,d,c=arguments;return(0,f.Z)().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return r=c.length>0&&c[0]!==void 0?c[0]:{},i.next=3,b.Z.GetMemberListByPage(r);case 3:if(d=i.sent,d.statusCode!==200){i.next=7;break}return fe(d.data.total),i.abrupt("return",{data:d.data.data,success:!0,total:d.data.total});case 7:case"end":return i.stop()}},u)})),rowKey:"id",search:{labelWidth:"auto"},pagination:{pageSize:he,onChange:function(r){return ce(r)}},dateFormatter:"string",headerTitle:"\u4F1A\u5458\u5217\u8868"})})]})})};I.default=X}}]); +(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[478,1322],{59842:function(){},66050:function(H,I,a){"use strict";var G=a(11849),n=a(48971);I.Z={GetAllStore:function(){return(0,n.WY)("/kitchen/api/StoreHelper/GetAllStore",{method:"GET",headers:{TenantId:""}})},GetMemberListByPage:function(e){return(0,n.WY)("/kitchen/api/member/member-page-query",{method:"POST",data:e})},OnBindMember:function(e){return(0,n.WY)("/kitchen/api/member/member-binding-cards",{method:"POST",data:e})},GetMemberAccountCardConsRecord:function(e){return(0,n.WY)("/kitchen/api/member/member-account-amount-page",{method:"POST",data:e})},GetMemberAccountRecordTotal:function(e){return(0,n.WY)("/kitchen/api/member/member-account-record-total",{method:"POST",data:e})},AddGate:function(e){return(0,n.WY)("/kitchen/api/GateInfo/add",{method:"POST",data:e})},EnableGate:function(e){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return(0,n.WY)("/kitchen/api/GateInfo/Enable",{method:"POST",data:e,headers:{TenantId:l}})},GetGateListByStorePage:function(e,l,C){var _=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"";return(0,n.WY)("/kitchen/api/GateInfo/gatelist?StoreId=".concat(e,"&Current=").concat(l,"&PageSize=").concat(C),{method:"GET",headers:{TenantId:_}})},GetGateListByStorePageNew:function(e,l,C){var _=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"";return(0,n.WY)("/kitchen/api/one-card/gate-list?StoreId=".concat(e,"&Current=").concat(l,"&PageSize=").concat(C),{method:"GET",headers:{TenantId:_}})},GetGateListByStoreList:function(e){return(0,n.WY)("/kitchen/api/GateInfo/gatealllist?StoreId=".concat(e),{method:"GET"})},UpdateGateInfo:function(e){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return(0,n.WY)("/kitchen/api/GateInfo/Update",{method:"POST",data:e,headers:{TenantId:l}})},UpdateGateInfoNew:function(e){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return(0,n.WY)("/kitchen/api/one-card",{method:"PUT",data:e,headers:{TenantId:l}})},PayCardAdd:function(e){return(0,n.WY)("/kitchen/api/PayCard/add",{method:"POST",data:e})},PayCardEnable:function(e){return(0,n.WY)("/kitchenapi/PayCard/enable",{method:"POST",data:e})},PayCardByGateId:function(e,l,C){return(0,n.WY)("/kitchen/api/PayCard/gateList?GateId=".concat(e,"&Current=").concat(l,"&PageSize=").concat(C),{method:"GET"})},UpdatePayCardInfo:function(e){return(0,n.WY)("/kitchen/api/PayCard/update",{method:"POST",data:e})},GetCosRequestURL:function(e){return(0,n.WY)("/kitchen/api/systemconfig/GetCosRequestSignURL",{method:"POST",data:e})},GetMemberAccountPageList:function(e){return(0,n.WY)("/kitchen/api/member/member-account-page-list",{method:"POST",data:e})},UpdateMemberAccountStatus:function(e){return(0,n.WY)("/kitchen/api/member/member-account-status",{method:"POST",data:e})},GetMemberCardPageList:function(e){return(0,n.WY)("/kitchen/api/member/mmenber-card-page",{method:"POST",data:e})},AddMemberCard:function(e){return(0,n.WY)("/kitchen/api/member/mmenber-card",{method:"POST",data:e})},UpdateMemberCardState:function(e){return(0,n.WY)("/kitchen/api/member/mmenber-card-state",{method:"PUT",data:e})},GetDicList:function(e){return(0,n.WY)("/kitchen/api/dict-data/dic-list/".concat(e),{method:"Get"})},AddGateSetUp:function(e){return(0,n.WY)("/kitchen/api/GateInfo/AddGateSetUp",{method:"POST",data:e})},GetFoodList:function(e){return(0,n.WY)("/kitchen/api/dict-data/dic-list/".concat(e),{method:"Get"})},AddGateFood:function(e){return(0,n.WY)("/kitchen/api/GateInfo/AddGateFood",{method:"POST",data:e})},GetGoodsByMenuIdPage:function(e){return(0,n.WY)("/kitchen/api/FoodMenu/GetGoodsByMenuIdPage",{method:"POST",data:(0,G.Z)({},e)})}}},95510:function(H,I,a){"use strict";a.r(I);var G=a(57338),n=a(273),s=a(11849),e=a(71194),l=a(50146),C=a(43358),_=a(34041),Te=a(47673),y=a(4107),ve=a(57663),S=a(71577),Be=a(94233),W=a(51890),p=a(39428),De=a(34792),f=a(48086),g=a(3182),Ae=a(9715),E=a(55843),m=a(2824),h=a(67294),V=a(59842),J=a.n(V),Q=a(78009),Z=a(89366),U=a(49101),R=a(16894),b=a(66050),t=a(85893),X=function(){var O=(0,h.useRef)(),q=E.Z.useForm(),ee=(0,m.Z)(q,1),T=ee[0],te=(0,h.useState)(!1),L=(0,m.Z)(te,2),ae=L[0],M=L[1],ne=(0,h.useState)({id:""}),j=(0,m.Z)(ne,2),x=j[0],v=j[1],re=(0,h.useState)(1),K=(0,m.Z)(re,2),ye=K[0],se=K[1],de=(0,h.useState)(10),F=(0,m.Z)(de,2),ue=F[0],We=F[1],ie=(0,h.useState)(0),Y=(0,m.Z)(ie,2),Ze=Y[0],Ue=Y[1],oe=(0,h.useState)(!1),k=(0,m.Z)(oe,2),le=k[0],B=k[1],_e=(0,h.useState)(1),z=(0,m.Z)(_e,2),Re=z[0],ce=z[1],me=(0,h.useState)(10),N=(0,m.Z)(me,2),he=N[0],Le=N[1],Pe=(0,h.useState)(0),w=(0,m.Z)(Pe,2),je=w[0],pe=w[1],fe=(0,h.useState)([]),$=(0,m.Z)(fe,2),D=$[0],A=$[1],Ee=function(r){T.setFieldsValue(r),v(r),M(!0)},Ce=function(){T.resetFields(),v({id:""}),M(!0)},be=function(r){B(!0),v(r),A([]),r.memberInfoId&&A([r.memberInfoId])},Me=function(){var u=(0,g.Z)((0,p.Z)().mark(function r(){var d;return(0,p.Z)().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:if(D.length!==0){o.next=3;break}return f.default.info("\u8BF7\u9009\u62E9\u8981\u7ED1\u5B9A\u7684\u4F1A\u5458"),o.abrupt("return");case 3:return o.next=5,b.Z.OnBindMember({memberInfoId:D[0],memberCardId:x.id});case 5:d=o.sent,d.data===!0?(f.default.success("\u7ED1\u5B9A\u6210\u529F"),O.current.reload(),B(!1)):f.default.error("\u7ED1\u5B9A\u5931\u8D25");case 7:case"end":return o.stop()}},r)}));return function(){return u.apply(this,arguments)}}(),xe=function(r){console.log("\u5220\u9664",r)},Ie=function(){var u=(0,g.Z)((0,p.Z)().mark(function r(d){var c,o;return(0,p.Z)().wrap(function(P){for(;;)switch(P.prev=P.next){case 0:if(!d.id){P.next=7;break}return P.next=3,b.Z.UpdateMemberCardState({id:d.id,type:d.type,state:d.state});case 3:c=P.sent,c.statusCode===200?(f.default.success("\u66F4\u65B0\u6210\u529F"),M(!1),O.current.reload()):f.default.error(c.errors||"\u66F4\u65B0\u50A8\u503C\u5361\u5931\u8D25"),P.next=11;break;case 7:return P.next=9,b.Z.AddMemberCard({type:d.type,state:d.state});case 9:o=P.sent,o.statusCode===200?(f.default.success("\u6DFB\u52A0\u6210\u529F"),M(!1),O.current.reload()):f.default.error(o.errors||"\u6DFB\u52A0\u50A8\u503C\u5361\u5931\u8D25");case 11:case"end":return P.stop()}},r)}));return function(d){return u.apply(this,arguments)}}(),ge=[{title:"\u5361\u53F7",dataIndex:"cardNum",ellipsis:!0},{title:"\u4F1A\u5458\u540D\u79F0",dataIndex:"memberName",ellipsis:!0,hideInSearch:!0},{title:"\u4F1A\u5458\u5934\u50CF",dataIndex:"headImgUrl",ellipsis:!0,width:100,align:"center",hideInSearch:!0,render:function(r,d){return(0,t.jsx)(W.C,{size:64,shape:"square",icon:(0,t.jsx)(Z.Z,{}),src:d.headImgUrl})}},{title:"\u4F1A\u5458\u7535\u8BDD",dataIndex:"phone",ellipsis:!0,hideInSearch:!0},{title:"\u72B6\u6001",dataIndex:"state",valueType:"select",hideInSearch:!0,valueEnum:{0:{text:"\u7981\u7528",status:"Error"},1:{text:"\u6B63\u5E38",status:"Success"},2:{text:"\u6302\u5931",status:"Error"},3:{text:"\u4F5C\u5E9F",status:"Error"}}},{title:"\u7C7B\u578B",dataIndex:"type",valueType:"select",hideInSearch:!0,valueEnum:{1:{text:"\u4EBA\u8138",status:"Success"},2:{text:"\u5B9E\u4F53\u5361",status:"Success"},3:{text:"\u6307\u7EB9",status:"Success"}}},{title:"\u64CD\u4F5C",valueType:"option",key:"option",render:function(r,d,c,o){return[(0,t.jsx)("a",{onClick:function(){return Ee(d)},children:"\u7F16\u8F91"}),(0,t.jsx)("a",{onClick:function(){return be(d)},children:"\u7ED1\u5B9A\u4F1A\u5458"})]}}],Oe={onChange:function(r){A(r)},selectedRowKeys:D},Se=[{title:"\u4F1A\u5458\u5934\u50CF",dataIndex:"headImgUrl",ellipsis:!0,width:100,align:"center",hideInSearch:!0,render:function(r,d){return(0,t.jsx)(W.C,{size:64,shape:"square",icon:(0,t.jsx)(Z.Z,{}),src:d.headImgUrl})}},{title:"\u771F\u5B9E\u59D3\u540D",dataIndex:"realName",ellipsis:!0},{title:"\u8054\u7CFB\u65B9\u5F0F",dataIndex:"phone",ellipsis:!0}];return(0,t.jsx)(Q.ZP,{children:(0,t.jsxs)("div",{className:J().member_card_container,children:[(0,t.jsx)(R.ZP,{columns:ge,actionRef:O,request:function(){var u=(0,g.Z)((0,p.Z)().mark(function r(d){var c;return(0,p.Z)().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,b.Z.GetMemberCardPageList(d);case 2:return c=i.sent,i.abrupt("return",{data:c.data.data,success:!0,total:c.data.total});case 4:case"end":return i.stop()}},r)}));return function(r){return u.apply(this,arguments)}}(),cardBordered:!0,editable:{type:"multiple"},rowKey:"id",options:{setting:{listsHeight:400}},pagination:{pageSize:ue,onChange:function(r){return se(r)}},dateFormatter:"string",headerTitle:"\u50A8\u503C\u5361\u7BA1\u7406",toolBarRender:function(){return[(0,t.jsx)(S.Z,{icon:(0,t.jsx)(U.Z,{}),type:"primary",onClick:Ce,children:"\u65B0\u5EFA"},"button")]}}),(0,t.jsx)(l.Z,{width:600,title:x.id?"\u7F16\u8F91\u50A8\u503C\u5361":"\u6DFB\u52A0\u50A8\u503C\u5361",visible:ae,footer:!1,onCancel:function(){return M(!1)},children:(0,t.jsxs)(E.Z,{name:"basic",onFinish:Ie,form:T,labelCol:{span:4},children:[(0,t.jsx)(E.Z.Item,{label:"id",name:"id",hidden:!0,children:(0,t.jsx)(y.Z,{})}),(0,t.jsx)(E.Z.Item,{label:"\u5361\u53F7",name:"cardNum",children:(0,t.jsx)(y.Z,{disabled:!0})}),(0,t.jsx)(E.Z.Item,{label:"\u72B6\u6001",name:"state",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u9009\u62E9\u72B6\u6001\uFF01"}],children:(0,t.jsxs)(_.Z,{children:[(0,t.jsx)(_.Z.Option,{value:0,children:"\u7981\u7528"}),(0,t.jsx)(_.Z.Option,{value:1,children:"\u6B63\u5E38"}),(0,t.jsx)(_.Z.Option,{value:2,children:"\u6302\u5931"}),(0,t.jsx)(_.Z.Option,{value:3,children:"\u4F5C\u5E9F"})]})}),(0,t.jsx)(E.Z.Item,{label:"\u7C7B\u578B",name:"type",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u7C7B\u578B\uFF01"}],children:(0,t.jsxs)(_.Z,{children:[(0,t.jsx)(_.Z.Option,{value:1,children:"\u4EBA\u8138"}),(0,t.jsx)(_.Z.Option,{value:2,children:"\u5B9E\u4F53\u5361"}),(0,t.jsx)(_.Z.Option,{value:3,children:"\u6307\u7EB9"})]})}),(0,t.jsx)(E.Z.Item,{children:(0,t.jsx)(S.Z,{type:"primary",htmlType:"submit",children:"\u786E\u5B9A"})})]})}),(0,t.jsx)(n.Z,{width:600,title:"\u7ED1\u5B9A\u4F1A\u5458",placement:"right",onClose:function(){return B(!1)},visible:le,children:(0,t.jsx)(R.ZP,{toolBarRender:function(){return[(0,t.jsx)(S.Z,{icon:(0,t.jsx)(U.Z,{}),type:"primary",onClick:Me,children:"\u786E\u5B9A\u7ED1\u5B9A"},"button")]},rowSelection:(0,s.Z)({type:"radio"},Oe),columns:Se,cardBordered:!0,request:(0,g.Z)((0,p.Z)().mark(function u(){var r,d,c=arguments;return(0,p.Z)().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return r=c.length>0&&c[0]!==void 0?c[0]:{},i.next=3,b.Z.GetMemberListByPage(r);case 3:if(d=i.sent,d.statusCode!==200){i.next=7;break}return pe(d.data.total),i.abrupt("return",{data:d.data.data,success:!0,total:d.data.total});case 7:case"end":return i.stop()}},u)})),rowKey:"id",search:{labelWidth:"auto"},pagination:{pageSize:he,onChange:function(r){return ce(r)}},dateFormatter:"string",headerTitle:"\u4F1A\u5458\u5217\u8868"})})]})})};I.default=X}}]); diff --git a/dist/p__crm__coupon__coupon-Batch.47f0d255.async.js b/dist/p__crm__coupon__coupon-Batch.b8a7f94e.async.js similarity index 70% rename from dist/p__crm__coupon__coupon-Batch.47f0d255.async.js rename to dist/p__crm__coupon__coupon-Batch.b8a7f94e.async.js index de457e7..bf04c6e 100644 --- a/dist/p__crm__coupon__coupon-Batch.47f0d255.async.js +++ b/dist/p__crm__coupon__coupon-Batch.b8a7f94e.async.js @@ -1 +1 @@ -(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[6053],{64760:function(pe,$,e){"use strict";var l=e(71194),x=e(50146),i=e(62350),d=e(24565),Z=e(39428),R=e(3182),B=e(2824),te=e(47673),k=e(4107),L=e(67294),G=e(16894),O=e(78009),t=e(79146),T=e(85893),N=function(y){var b=(0,L.useRef)(),n=k.Z.TextArea,ae=(0,L.useState)(!1),z=(0,B.Z)(ae,2),me=z[0],U=z[1],X="",E=(0,L.useState)(),ne=(0,B.Z)(E,2),V=ne[0],re=ne[1],ue=function(){var _=(0,R.Z)((0,Z.Z)().mark(function r(f){return(0,Z.Z)().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:if(y.couponRecord.showType!=1){u.next=5;break}return u.next=3,(0,t.m$)(JSON.stringify({Id:V.id,Status:V.status==1?0:1,Remark:X})).then(function(g){U(!1),b.current.reload()});case 3:u.next=7;break;case 5:return u.next=7,(0,t.A8)(JSON.stringify({Id:V.id,Status:V.status==1?0:1,Remark:X})).then(function(g){U(!1),b.current.reload()});case 7:case"end":return u.stop()}},r)}));return function(f){return _.apply(this,arguments)}}(),se=function(){U(!1)},oe=function(r){X=r.target.value},le=[{title:"\u4E3B\u952E",dataIndex:"id",tip:"\u89C4\u5219\u540D\u79F0\u662F\u552F\u4E00\u7684 key",hideInSearch:!0,hideInTable:!0},{title:"\u9002\u7528\u8303\u56F4",dataIndex:"supplier",hideInSearch:!0,valueType:"textarea"},{title:"\u72B6\u6001",key:"status",dataIndex:"status",valueEnum:{1:{text:"\u7981\u7528",status:"Warning"},0:{text:"\u542F\u7528",status:"Success"}}},{title:"\u5907\u6CE8",dataIndex:"remark",hideInSearch:!0,valueType:"textarea"},{title:"\u53D1\u653E\u65F6\u95F4",key:"sendTime",hideInSearch:!0,dataIndex:"sendTime"},{title:"\u64CD\u4F5C",dateIndex:"option",valueType:"option",render:function(r,f){return(0,T.jsx)(d.Z,{type:"primary",title:"\u786E\u8BA4\u542F\u7528\u5417\uFF1F",okText:"\u662F",cancelText:"\u5426",onConfirm:(0,R.Z)((0,Z.Z)().mark(function S(){return(0,Z.Z)().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:n.value=f.remark,re(f),U(!0);case 3:case"end":return g.stop()}},S)})),onCancel:function(){},children:(0,T.jsx)("a",{href:"#",children:f.status==0?"\u7981\u7528":"\u542F\u7528"})},"primary")}}];return(0,T.jsxs)(x.Z,{footer:null,destroyOnClose:!0,visible:y.shows,width:1100,onCancel:function(){y.onCancel()},children:[(0,T.jsx)(O.ZP,{headerTitle:"",header:{title:"\u53D1\u653E\u8BB0\u5F55",breadcrumb:{}},children:(0,T.jsx)(G.ZP,{actionRef:b,rowKey:"id",options:!1,search:{labelWidth:120},pagination:{pageSize:5},columns:le,request:function(){var _=(0,R.Z)((0,Z.Z)().mark(function r(f){var S,u;return(0,Z.Z)().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:if(S=[],u=0,f.couponId=y.couponRecord.couponId,f.batchNo=y.couponRecord.batchNo,y.couponRecord.showType!=1){p.next=9;break}return p.next=7,(0,t.m2)(f).then(function(C){S=C.data.data,u=C.data.total});case 7:p.next=11;break;case 9:return p.next=11,(0,t.tP)(f).then(function(C){S=C.data.data,u=C.data.total});case 11:return p.abrupt("return",{data:S,success:!0,total:u});case 12:case"end":return p.stop()}},r)}));return function(r){return _.apply(this,arguments)}}()})}),(0,T.jsx)(x.Z,{title:"\u5907\u6CE8",visible:me,onOk:ue,onCancel:se,children:(0,T.jsx)(n,{onChange:function(r){return oe(r)},rows:4})})]})};$.Z=N},55099:function(pe,$,e){"use strict";e.r($),e.d($,{default:function(){return le}});var l=e(39428),x=e(3182),i=e(2824),d=e(67294),Z=e(78009),R=e(16894),B=e(64760),te=e(71194),k=e(50146),L=e(30381),G=e.n(L),O=e(79146),t=e(85893),T=function(r){var f=(0,d.useRef)(),S=[{title:"\u4E3B\u952E",dataIndex:"id",tip:"\u89C4\u5219\u540D\u79F0\u662F\u552F\u4E00\u7684 key",hideInSearch:!0,hideInTable:!0},{title:"\u5BA2\u6237\u7535\u8BDD",dataIndex:"phone",valueType:"textarea"},{title:"\u5BA2\u6237Id",dataIndex:"customerId",valueType:"textarea",search:!1},{title:"\u8BA2\u5355\u53F7",dataIndex:"orderId",valueType:"textarea"},{title:"\u4F7F\u7528\u5E97\u94FA",dataIndex:"storeName",valueType:"textarea",search:!1},{title:"\u9886\u53D6\u65B9\u5F0F",key:"receiveType",dataIndex:"receiveType",valueEnum:{1:{text:"\u5C0F\u7A0B\u5E8F\u9886\u53D6"},2:{text:"\u7EBF\u4E0B\u95E8\u5E97\u626B\u7801"},3:{text:"\u81EA\u52A8\u4E0B\u53D1"},4:{text:"\u597D\u53CB\u5206\u4EAB\u9886\u53D6"},5:{text:"\u6307\u5B9A\u53D1\u653E"},6:{text:"\u53C2\u52A0\u6D3B\u52A8"}}},{title:"\u72B6\u6001",key:"state",dataIndex:"state",valueEnum:{1:{text:"\u672A\u4F7F\u7528",status:"Warning"},2:{text:"\u5DF2\u4F7F\u7528",status:"Success"},3:{text:"\u5360\u7528\u4E2D",status:"Processing"},4:{text:"\u5931\u6548",status:"Default"}}},{title:"\u9886\u53D6\u65F6\u95F4",dataIndex:"createAt",valueType:"date"},{title:"\u6709\u6548\u65F6\u95F4",hideInSearch:!0,width:200,render:function(g,p,C){return(0,t.jsxs)("span",{children:[(0,t.jsx)("div",{children:G()(p.validStartTime).format("YYYY-MM-DD")}),(0,t.jsx)("div",{children:G()(p.validEndTime).format("YYYY-MM-DD")})]})}},{title:"\u6838\u9500\u65F6\u95F4",dataIndex:"writeOffTime",valueType:"date"}];return(0,t.jsx)(k.Z,{footer:null,destroyOnClose:!0,visible:r.shows,width:1300,onCancel:function(){r.onCancel()},children:(0,t.jsx)(Z.ZP,{header:{title:"\u9886\u53D6\u8BE6\u60C5",breadcrumb:{}},children:(0,t.jsx)(R.ZP,{actionRef:f,rowKey:"id",options:!1,search:{labelWidth:120},pagination:{pageSize:5},columns:S,request:function(){var u=(0,x.Z)((0,l.Z)().mark(function g(p){var C,A;return(0,l.Z)().wrap(function(j){for(;;)switch(j.prev=j.next){case 0:return C=[],A=0,p.batchNo=r.couponRecord.batchNo,j.next=5,(0,O.GA)(p).then(function(W){C=W.data.data,A=W.data.total});case 5:return j.abrupt("return",{data:C,success:!0,total:A});case 6:case"end":return j.stop()}},g)}));return function(g){return u.apply(this,arguments)}}()})})})},N=T,c=e(58996),y=e(77933),b=e(11849),n=e(57663),ae=e(71577),z=e(86582),me=e(43185),U=e(93009),X=e(34792),E=e(48086),ne=e(47673),V=e(4107),re=e(84391),ue=function(r){var f,S=(0,d.useRef)(),u="sendCoupon",g=V.Z.Search,p=(0,d.useState)([]),C=(0,i.Z)(p,2),A=C[0],P=C[1],j=(0,d.useState)([]),W=(0,i.Z)(j,2),q=W[0],H=W[1],ie=(0,d.useState)(!0),Q=(0,i.Z)(ie,2),ce=Q[0],de=Q[1],he=(0,d.useState)(),w=(0,i.Z)(he,2),M=w[0],m=w[1],F=(0,d.useState)([]),D=(0,i.Z)(F,2),ve=D[0],K=D[1],ee=(0,d.useState)([]),ye=(0,i.Z)(ee,2),je=ye[0],Me=ye[1],xe=(0,d.useState)([]),Ce=(0,i.Z)(xe,2),Ie=Ce[0],Ze=Ce[1],Ee=(0,d.useState)(!1),Se=(0,i.Z)(Ee,2),Te=Se[0],ge=Se[1];(0,d.useEffect)(function(){var v=function(){var a=(0,x.Z)((0,l.Z)().mark(function s(h){return(0,l.Z)().wrap(function(I){for(;;)switch(I.prev=I.next){case 0:return I.next=2,(0,O.fC)({CurrentPage:1,PageSize:7}).then(function(fe){var J=[];fe.data.forEach(function(Y){J.push({key:Y.memberId,title:Y.phone,description:h,disabled:!1,tag:Y.memberId})}),H(J),P(J)});case 2:case"end":return I.stop()}},s)}));return function(h){return a.apply(this,arguments)}}();v()},[]);var _e=[{title:"\u4E3B\u952E",dataIndex:"phone",tip:"\u89C4\u5219\u540D\u79F0\u662F\u552F\u4E00\u7684 key",hideInSearch:!0,hideInTable:!0},{title:"\u624B\u673A\u53F7",dataIndex:"phone",search:!1,valueType:"textarea",width:110},{title:"\u5BA2\u6237ID",dataIndex:"memberId",search:!1,valueType:"textarea",width:250},{title:"\u539F\u56E0",dataIndex:"msg",search:!1,valueType:"textarea",width:250}],be={beforeUpload:function(a){return a.type!=="application/vnd.ms-excel"&&a.type!=="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"&&E.default.error("".concat(a.name," \u4E0D\u662F exelce \u6587\u4EF6")),a.type=="application/vnd.ms-excel"||a.type=="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"?!0:U.Z.LIST_IGNORE},name:"file",maxCount:1,multiple:!1,action:"/kitchen/api/member/uploadcustomer/".concat((f=r.values)===null||f===void 0?void 0:f.couponId),headers:{authorization:"authorization-text"},onChange:function(a){if(a.file.status==="done"){E.default.success("".concat(a.file.name," \u4E0A\u4F20\u6210\u529F")),a.file.response.available,Ze(a.file.response.notAvailable);var s=q.filter(function(h){var o=a.file.response.available.filter(function(I){if(I.memberId==h.key)return I});if(o.length>0)return h}).map(function(h){return h.key});m(s),ge(!0)}else a.file.status==="error"&&E.default.error("".concat(a.file.name," \u4E0A\u4F20\u5931\u8D25."))}},Be=function(a){var s=(0,z.Z)(a.fileList);s=s.slice(-2),s=s.map(function(h){return h.response&&(h.url=h.response.url),h}),fileListDataState({fileList:s})},Pe=function(a,s,h){m(a)},De=function(a,s){K([].concat((0,z.Z)(a),(0,z.Z)(s)))},Re=function(a,s){},Oe=function(){var v=(0,x.Z)((0,l.Z)().mark(function a(s,h){return(0,l.Z)().wrap(function(I){for(;;)switch(I.prev=I.next){case 0:if(s!="right"){I.next=2;break}return I.abrupt("return");case 2:return I.next=4,(0,O.fC)({CurrentPage:1,PageSize:7,phone:h}).then(function(fe){var J=[];fe.data.forEach(function(Y){J.push({key:Y.memberId,title:Y.phone,description:h,disabled:!1,tag:Y.memberId})}),H(J)});case 4:case"end":return I.stop()}},a)}));return function(s,h){return v.apply(this,arguments)}}(),Ae=function(){var v=(0,x.Z)((0,l.Z)().mark(function a(s){return(0,l.Z)().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:if(!(M==null||M.length<=0)){o.next=3;break}return E.default.error("\u8BF7\u9009\u62E9\u4F1A\u5458"),o.abrupt("return");case 3:if(!(M.length>s.lastNum)){o.next=6;break}return E.default.error("\u4F18\u60E0\u5238\u6570\u91CF\u4E0D\u591F"),o.abrupt("return");case 6:return E.default.loading("\u6B63\u5728\u53D1\u9001...",u),o.prev=7,o.next=10,(0,O.aO)({memberId:M,couponId:s.couponId,couponRangeId:s.couponRangeId}).then(function(I){E.default.destroy(u),I.data?(E.default.success("\u53D1\u9001\u6210\u529F"),m([]),K([])):E.default.error("\u53D1\u9001\u5931\u8D25")});case 10:return o.abrupt("return",!0);case 13:return o.prev=13,o.t0=o.catch(7),E.default.destroy(u),E.default.error("\u53D1\u9001\u8BF7\u91CD\u8BD5\uFF01"),o.abrupt("return",!1);case 18:case"end":return o.stop()}},a,null,[[7,13]])}));return function(s){return v.apply(this,arguments)}}();return(0,t.jsxs)(k.Z,{destroyOnClose:!0,visible:r.shows,width:700,onCancel:function(){H(A),r.onCancel()},onOk:function(){Ae(r.values),r.actionRef.current.reload()},children:[(0,t.jsxs)(Z.ZP,{header:{title:"\u6307\u5B9A\u53D1\u653E",breadcrumb:{}},children:[(0,t.jsx)("div",{style:{height:"68px"},children:(0,t.jsx)("span",{children:(0,t.jsx)(U.Z,(0,b.Z)((0,b.Z)({},be),{},{nostyle:!0,children:(0,t.jsx)(ae.Z,{icon:(0,t.jsx)(re.Z,{}),children:"\u4E0A\u4F20\u6587\u4EF6"})}))})}),(0,t.jsx)(y.Z,{oneWay:ce,showSearch:!0,showSelectAll:!0,onSearch:Oe,dataSource:q,titles:["\u672A\u9009\u62E9","\u5DF2\u9009\u4E2D"],targetKeys:M,selectedKeys:ve,onChange:Pe,onSelectChange:De,onScroll:Re,render:function(a){return a.title},pagination:{pageSize:8},listStyle:{width:500,height:400}})]}),(0,t.jsx)(k.Z,{footer:null,title:"\u65E0\u6548\u4F1A\u5458",visible:Te,width:600,onCancel:function(){ge(!1)},children:(0,t.jsx)(R.ZP,{headerTitle:"\u65E0\u6548\u4F1A\u5458",actionRef:S,rowKey:"phone",columns:_e,toolBarRender:!1,search:!1,scroll:{y:450},pagination:!1,request:function(){var v=(0,x.Z)((0,l.Z)().mark(function a(s){return(0,l.Z)().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return o.abrupt("return",{data:Ie,success:!0,total:Ie.length});case 1:case"end":return o.stop()}},a)}));return function(a){return v.apply(this,arguments)}}()})})]})},se=ue,oe=function(){var r=(0,d.useRef)(),f=(0,d.useState)(!1),S=(0,i.Z)(f,2),u=S[0],g=S[1],p=(0,d.useState)(),C=(0,i.Z)(p,2),A=C[0],P=C[1],j=(0,d.useState)(!1),W=(0,i.Z)(j,2),q=W[0],H=W[1],ie=(0,d.useState)(!1),Q=(0,i.Z)(ie,2),ce=Q[0],de=Q[1],he=[{title:"\u4E3B\u952E",dataIndex:"id",tip:"\u89C4\u5219\u540D\u79F0\u662F\u552F\u4E00\u7684 key",hideInSearch:!0,hideInTable:!0},{title:"\u6279\u6B21\u53F7",dataIndex:"batchNo",valueType:"textarea"},{title:"\u4F18\u60E0\u5377",dataIndex:"couponTitle",valueType:"textarea"},{title:"\u53D1\u653E\u6570\u91CF",dataIndex:"sendNum",search:!1,valueType:"textarea"},{title:"\u9886\u53D6\u6570\u91CF",dataIndex:"totalNum",search:!1,valueType:"digit"},{title:"\u5269\u4F59\u6570\u91CF",dataIndex:"lastNum",search:!1,valueType:"digit"},{title:"\u53D1\u653E\u65F6\u95F4",dataIndex:"createAt",valueType:"date"},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(M,m){var F=[(0,t.jsx)("a",{type:"primary",onClick:function(){g(!0),P({batchNo:m.batchNo,couponId:m.couponId,showType:1})},children:"\u9002\u7528\u8303\u56F4"},"primary1"),(0,t.jsx)("a",{type:"primary",onClick:function(){g(!0),P({batchNo:m.batchNo,couponId:m.couponId,showType:2})},children:"\u9002\u7528\u5546\u54C1"},"primary2"),(0,t.jsx)("a",{type:"primary",onClick:function(){de(!0),P({batchNo:m.batchNo})},children:"\u9886\u53D6\u8BE6\u60C5"},"primary3"),(0,t.jsx)("a",{type:"primary",disabled:m.validStatus!=1||m.lastNum==0,style:{pointerEvents:m.validStatus!=1||m.lastNum==0?"none":"auto"},onClick:function(){H(!0),P({couponRangeId:m.id,couponId:m.couponId,lastNum:m.lastNum})},children:"\u53D1\u653E"},"primary")];return F}}];return(0,t.jsxs)(Z.ZP,{children:[(0,t.jsx)(R.ZP,{headerTitle:"\u4F18\u60E0\u5377",actionRef:r,rowKey:"id",search:{labelWidth:120},columns:he,request:function(){var w=(0,x.Z)((0,l.Z)().mark(function M(m){var F,D;return(0,l.Z)().wrap(function(K){for(;;)switch(K.prev=K.next){case 0:return F=[],D=0,K.next=4,(0,O.hz)(m).then(function(ee){F=ee.data.data,D=ee.data.total});case 4:return K.abrupt("return",{data:F,success:!0,total:D});case 5:case"end":return K.stop()}},M)}));return function(M){return w.apply(this,arguments)}}()}),(0,t.jsx)(B.Z,{shows:u,onCancel:function(){g(!1),P(void 0)},couponRecord:A}),(0,t.jsx)(N,{shows:ce,onCancel:function(){de(!1),P(void 0)},couponRecord:A}),(0,t.jsx)(se,{shows:q,values:A,actionRef:r,onCancel:function(){H(!1),P(void 0)}})]})},le=oe},79146:function(pe,$,e){"use strict";e.d($,{hz:function(){return d},GA:function(){return R},m$:function(){return te},m2:function(){return k},tP:function(){return L},A8:function(){return G},aO:function(){return O},fC:function(){return T}});var l=e(39428),x=e(3182),i=e(48971);function d(c){return Z.apply(this,arguments)}function Z(){return Z=(0,x.Z)((0,l.Z)().mark(function c(y){return(0,l.Z)().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",(0,i.WY)("/kitchen/api/coupon/couponrecordpage",{method:"POST",data:y}));case 1:case"end":return n.stop()}},c)})),Z.apply(this,arguments)}function R(c){return B.apply(this,arguments)}function B(){return B=(0,x.Z)((0,l.Z)().mark(function c(y){return(0,l.Z)().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",(0,i.WY)("/kitchen/api/coupon/customerpage",{method:"POST",data:y}));case 1:case"end":return n.stop()}},c)})),B.apply(this,arguments)}function te(c){return(0,i.WY)("/kitchen/api/coupon/recallcoupon",{method:"post",data:c})}function k(c){return(0,i.WY)("/kitchen/api/coupon/couponrecordbyid",{method:"post",data:c})}function L(c){return(0,i.WY)("/kitchen/api/coupon/couponrecordgoods",{method:"post",data:c})}function G(c){return(0,i.WY)("/kitchen/api/coupon/recallcoupongoods",{method:"post",data:c})}function O(c){return t.apply(this,arguments)}function t(){return t=(0,x.Z)((0,l.Z)().mark(function c(y){return(0,l.Z)().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",(0,i.WY)("/kitchen/api/coupon/receivecouponbyinput",{method:"PUT",data:y}));case 1:case"end":return n.stop()}},c)})),t.apply(this,arguments)}function T(c){return N.apply(this,arguments)}function N(){return N=(0,x.Z)((0,l.Z)().mark(function c(y){return(0,l.Z)().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",(0,i.WY)("/kitchen\u200B/api\u200B/select\u200B/customerinfo\u200B",{method:"Post",data:y}));case 1:case"end":return n.stop()}},c)})),N.apply(this,arguments)}}}]); +(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[6053],{64760:function(pe,$,e){"use strict";var l=e(71194),x=e(50146),i=e(62350),d=e(24565),Z=e(39428),R=e(3182),B=e(2824),te=e(47673),K=e(4107),U=e(67294),G=e(16894),O=e(78009),t=e(79146),E=e(85893),L=function(y){var b=(0,U.useRef)(),n=K.Z.TextArea,ae=(0,U.useState)(!1),z=(0,B.Z)(ae,2),me=z[0],N=z[1],X="",_=(0,U.useState)(),ne=(0,B.Z)(_,2),V=ne[0],re=ne[1],ue=function(){var T=(0,R.Z)((0,Z.Z)().mark(function r(f){return(0,Z.Z)().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:if(y.couponRecord.showType!=1){u.next=5;break}return u.next=3,(0,t.m$)(JSON.stringify({Id:V.id,Status:V.status==1?0:1,Remark:X})).then(function(g){N(!1),b.current.reload()});case 3:u.next=7;break;case 5:return u.next=7,(0,t.A8)(JSON.stringify({Id:V.id,Status:V.status==1?0:1,Remark:X})).then(function(g){N(!1),b.current.reload()});case 7:case"end":return u.stop()}},r)}));return function(f){return T.apply(this,arguments)}}(),se=function(){N(!1)},oe=function(r){X=r.target.value},le=[{title:"\u4E3B\u952E",dataIndex:"id",tip:"\u89C4\u5219\u540D\u79F0\u662F\u552F\u4E00\u7684 key",hideInSearch:!0,hideInTable:!0},{title:"\u9002\u7528\u8303\u56F4",dataIndex:"supplier",hideInSearch:!0,valueType:"textarea"},{title:"\u72B6\u6001",key:"status",dataIndex:"status",valueEnum:{1:{text:"\u7981\u7528",status:"Warning"},0:{text:"\u542F\u7528",status:"Success"}}},{title:"\u5907\u6CE8",dataIndex:"remark",hideInSearch:!0,valueType:"textarea"},{title:"\u53D1\u653E\u65F6\u95F4",key:"sendTime",hideInSearch:!0,dataIndex:"sendTime"},{title:"\u64CD\u4F5C",dateIndex:"option",valueType:"option",render:function(r,f){return(0,E.jsx)(d.Z,{type:"primary",title:"\u786E\u8BA4\u542F\u7528\u5417\uFF1F",okText:"\u662F",cancelText:"\u5426",onConfirm:(0,R.Z)((0,Z.Z)().mark(function S(){return(0,Z.Z)().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:n.value=f.remark,re(f),N(!0);case 3:case"end":return g.stop()}},S)})),onCancel:function(){},children:(0,E.jsx)("a",{href:"#",children:f.status==0?"\u7981\u7528":"\u542F\u7528"})},"primary")}}];return(0,E.jsxs)(x.Z,{footer:null,destroyOnClose:!0,visible:y.shows,width:1100,onCancel:function(){y.onCancel()},children:[(0,E.jsx)(O.ZP,{headerTitle:"",header:{title:"\u53D1\u653E\u8BB0\u5F55",breadcrumb:{}},children:(0,E.jsx)(G.ZP,{actionRef:b,rowKey:"id",options:!1,search:{labelWidth:120},pagination:{pageSize:5},columns:le,request:function(){var T=(0,R.Z)((0,Z.Z)().mark(function r(f){var S,u;return(0,Z.Z)().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:if(S=[],u=0,f.couponId=y.couponRecord.couponId,f.batchNo=y.couponRecord.batchNo,y.couponRecord.showType!=1){p.next=9;break}return p.next=7,(0,t.m2)(f).then(function(C){S=C.data.data,u=C.data.total});case 7:p.next=11;break;case 9:return p.next=11,(0,t.tP)(f).then(function(C){S=C.data.data,u=C.data.total});case 11:return p.abrupt("return",{data:S,success:!0,total:u});case 12:case"end":return p.stop()}},r)}));return function(r){return T.apply(this,arguments)}}()})}),(0,E.jsx)(x.Z,{title:"\u5907\u6CE8",visible:me,onOk:ue,onCancel:se,children:(0,E.jsx)(n,{onChange:function(r){return oe(r)},rows:4})})]})};$.Z=L},55099:function(pe,$,e){"use strict";e.r($),e.d($,{default:function(){return le}});var l=e(39428),x=e(3182),i=e(2824),d=e(67294),Z=e(78009),R=e(16894),B=e(64760),te=e(71194),K=e(50146),U=e(30381),G=e.n(U),O=e(79146),t=e(85893),E=function(r){var f=(0,d.useRef)(),S=[{title:"\u4E3B\u952E",dataIndex:"id",tip:"\u89C4\u5219\u540D\u79F0\u662F\u552F\u4E00\u7684 key",hideInSearch:!0,hideInTable:!0},{title:"\u5BA2\u6237\u7535\u8BDD",dataIndex:"phone",valueType:"textarea"},{title:"\u5BA2\u6237Id",dataIndex:"customerId",valueType:"textarea",search:!1},{title:"\u8BA2\u5355\u53F7",dataIndex:"orderId",valueType:"textarea"},{title:"\u4F7F\u7528\u5E97\u94FA",dataIndex:"storeName",valueType:"textarea",search:!1},{title:"\u9886\u53D6\u65B9\u5F0F",key:"receiveType",dataIndex:"receiveType",valueEnum:{1:{text:"\u5C0F\u7A0B\u5E8F\u9886\u53D6"},2:{text:"\u7EBF\u4E0B\u95E8\u5E97\u626B\u7801"},3:{text:"\u81EA\u52A8\u4E0B\u53D1"},4:{text:"\u597D\u53CB\u5206\u4EAB\u9886\u53D6"},5:{text:"\u6307\u5B9A\u53D1\u653E"},6:{text:"\u53C2\u52A0\u6D3B\u52A8"}}},{title:"\u72B6\u6001",key:"state",dataIndex:"state",valueEnum:{1:{text:"\u672A\u4F7F\u7528",status:"Warning"},2:{text:"\u5DF2\u4F7F\u7528",status:"Success"},3:{text:"\u5360\u7528\u4E2D",status:"Processing"},4:{text:"\u5931\u6548",status:"Default"}}},{title:"\u9886\u53D6\u65F6\u95F4",dataIndex:"createAt",valueType:"date"},{title:"\u6709\u6548\u65F6\u95F4",hideInSearch:!0,width:200,render:function(g,p,C){return(0,t.jsxs)("span",{children:[(0,t.jsx)("div",{children:G()(p.validStartTime).format("YYYY-MM-DD")}),(0,t.jsx)("div",{children:G()(p.validEndTime).format("YYYY-MM-DD")})]})}},{title:"\u6838\u9500\u65F6\u95F4",dataIndex:"writeOffTime",valueType:"date"}];return(0,t.jsx)(K.Z,{footer:null,destroyOnClose:!0,visible:r.shows,width:1300,onCancel:function(){r.onCancel()},children:(0,t.jsx)(Z.ZP,{header:{title:"\u9886\u53D6\u8BE6\u60C5",breadcrumb:{}},children:(0,t.jsx)(R.ZP,{actionRef:f,rowKey:"id",options:!1,search:{labelWidth:120},pagination:{pageSize:5},columns:S,request:function(){var u=(0,x.Z)((0,l.Z)().mark(function g(p){var C,j;return(0,l.Z)().wrap(function(A){for(;;)switch(A.prev=A.next){case 0:return C=[],j=0,p.batchNo=r.couponRecord.batchNo,A.next=5,(0,O.GA)(p).then(function(W){C=W.data.data,j=W.data.total});case 5:return A.abrupt("return",{data:C,success:!0,total:j});case 6:case"end":return A.stop()}},g)}));return function(g){return u.apply(this,arguments)}}()})})})},L=E,c=e(58996),y=e(77933),b=e(11849),n=e(57663),ae=e(71577),z=e(86582),me=e(43185),N=e(93009),X=e(34792),_=e(48086),ne=e(47673),V=e(4107),re=e(84391),ue=function(r){var f,S=(0,d.useRef)(),u="sendCoupon",g=V.Z.Search,p=(0,d.useState)([]),C=(0,i.Z)(p,2),j=C[0],P=C[1],A=(0,d.useState)([]),W=(0,i.Z)(A,2),q=W[0],H=W[1],ie=(0,d.useState)(!0),Q=(0,i.Z)(ie,2),ce=Q[0],de=Q[1],he=(0,d.useState)(),w=(0,i.Z)(he,2),M=w[0],m=w[1],F=(0,d.useState)([]),D=(0,i.Z)(F,2),ve=D[0],k=D[1],ee=(0,d.useState)([]),ye=(0,i.Z)(ee,2),Ae=ye[0],Me=ye[1],xe=(0,d.useState)([]),Ce=(0,i.Z)(xe,2),Ie=Ce[0],Ze=Ce[1],_e=(0,d.useState)(!1),Se=(0,i.Z)(_e,2),Ee=Se[0],ge=Se[1];(0,d.useEffect)(function(){var v=function(){var a=(0,x.Z)((0,l.Z)().mark(function s(h){return(0,l.Z)().wrap(function(I){for(;;)switch(I.prev=I.next){case 0:return I.next=2,(0,O.fC)({CurrentPage:1,PageSize:7}).then(function(fe){var J=[];fe.data.forEach(function(Y){J.push({key:Y.memberId,title:Y.phone,description:h,disabled:!1,tag:Y.memberId})}),H(J),P(J)});case 2:case"end":return I.stop()}},s)}));return function(h){return a.apply(this,arguments)}}();v()},[]);var Te=[{title:"\u4E3B\u952E",dataIndex:"phone",tip:"\u89C4\u5219\u540D\u79F0\u662F\u552F\u4E00\u7684 key",hideInSearch:!0,hideInTable:!0},{title:"\u624B\u673A\u53F7",dataIndex:"phone",search:!1,valueType:"textarea",width:110},{title:"\u5BA2\u6237ID",dataIndex:"memberId",search:!1,valueType:"textarea",width:250},{title:"\u539F\u56E0",dataIndex:"msg",search:!1,valueType:"textarea",width:250}],be={beforeUpload:function(a){return a.type!=="application/vnd.ms-excel"&&a.type!=="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"&&_.default.error("".concat(a.name," \u4E0D\u662F exelce \u6587\u4EF6")),a.type=="application/vnd.ms-excel"||a.type=="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"?!0:N.Z.LIST_IGNORE},name:"file",maxCount:1,multiple:!1,action:"/kitchen/api/member/uploadcustomer/".concat((f=r.values)===null||f===void 0?void 0:f.couponId),headers:{authorization:"authorization-text"},onChange:function(a){if(a.file.status==="done"){_.default.success("".concat(a.file.name," \u4E0A\u4F20\u6210\u529F")),a.file.response.available,Ze(a.file.response.notAvailable);var s=q.filter(function(h){var o=a.file.response.available.filter(function(I){if(I.memberId==h.key)return I});if(o.length>0)return h}).map(function(h){return h.key});m(s),ge(!0)}else a.file.status==="error"&&_.default.error("".concat(a.file.name," \u4E0A\u4F20\u5931\u8D25."))}},Be=function(a){var s=(0,z.Z)(a.fileList);s=s.slice(-2),s=s.map(function(h){return h.response&&(h.url=h.response.url),h}),fileListDataState({fileList:s})},Pe=function(a,s,h){m(a)},De=function(a,s){k([].concat((0,z.Z)(a),(0,z.Z)(s)))},Re=function(a,s){},Oe=function(){var v=(0,x.Z)((0,l.Z)().mark(function a(s,h){return(0,l.Z)().wrap(function(I){for(;;)switch(I.prev=I.next){case 0:if(s!="right"){I.next=2;break}return I.abrupt("return");case 2:return I.next=4,(0,O.fC)({CurrentPage:1,PageSize:7,phone:h}).then(function(fe){var J=[];fe.data.forEach(function(Y){J.push({key:Y.memberId,title:Y.phone,description:h,disabled:!1,tag:Y.memberId})}),H(J)});case 4:case"end":return I.stop()}},a)}));return function(s,h){return v.apply(this,arguments)}}(),je=function(){var v=(0,x.Z)((0,l.Z)().mark(function a(s){return(0,l.Z)().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:if(!(M==null||M.length<=0)){o.next=3;break}return _.default.error("\u8BF7\u9009\u62E9\u4F1A\u5458"),o.abrupt("return");case 3:if(!(M.length>s.lastNum)){o.next=6;break}return _.default.error("\u4F18\u60E0\u5238\u6570\u91CF\u4E0D\u591F"),o.abrupt("return");case 6:return _.default.loading("\u6B63\u5728\u53D1\u9001...",u),o.prev=7,o.next=10,(0,O.aO)({memberId:M,couponId:s.couponId,couponRangeId:s.couponRangeId}).then(function(I){_.default.destroy(u),I.data?(_.default.success("\u53D1\u9001\u6210\u529F"),m([]),k([])):_.default.error("\u53D1\u9001\u5931\u8D25")});case 10:return o.abrupt("return",!0);case 13:return o.prev=13,o.t0=o.catch(7),_.default.destroy(u),_.default.error("\u53D1\u9001\u8BF7\u91CD\u8BD5\uFF01"),o.abrupt("return",!1);case 18:case"end":return o.stop()}},a,null,[[7,13]])}));return function(s){return v.apply(this,arguments)}}();return(0,t.jsxs)(K.Z,{destroyOnClose:!0,visible:r.shows,width:700,onCancel:function(){H(j),r.onCancel()},onOk:function(){je(r.values),r.actionRef.current.reload()},children:[(0,t.jsxs)(Z.ZP,{header:{title:"\u6307\u5B9A\u53D1\u653E",breadcrumb:{}},children:[(0,t.jsx)("div",{style:{height:"68px"},children:(0,t.jsx)("span",{children:(0,t.jsx)(N.Z,(0,b.Z)((0,b.Z)({},be),{},{nostyle:!0,children:(0,t.jsx)(ae.Z,{icon:(0,t.jsx)(re.Z,{}),children:"\u4E0A\u4F20\u6587\u4EF6"})}))})}),(0,t.jsx)(y.Z,{oneWay:ce,showSearch:!0,showSelectAll:!0,onSearch:Oe,dataSource:q,titles:["\u672A\u9009\u62E9","\u5DF2\u9009\u4E2D"],targetKeys:M,selectedKeys:ve,onChange:Pe,onSelectChange:De,onScroll:Re,render:function(a){return a.title},pagination:{pageSize:8},listStyle:{width:500,height:400}})]}),(0,t.jsx)(K.Z,{footer:null,title:"\u65E0\u6548\u4F1A\u5458",visible:Ee,width:600,onCancel:function(){ge(!1)},children:(0,t.jsx)(R.ZP,{headerTitle:"\u65E0\u6548\u4F1A\u5458",actionRef:S,rowKey:"phone",columns:Te,toolBarRender:!1,search:!1,scroll:{y:450},pagination:!1,request:function(){var v=(0,x.Z)((0,l.Z)().mark(function a(s){return(0,l.Z)().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return o.abrupt("return",{data:Ie,success:!0,total:Ie.length});case 1:case"end":return o.stop()}},a)}));return function(a){return v.apply(this,arguments)}}()})})]})},se=ue,oe=function(){var r=(0,d.useRef)(),f=(0,d.useState)(!1),S=(0,i.Z)(f,2),u=S[0],g=S[1],p=(0,d.useState)(),C=(0,i.Z)(p,2),j=C[0],P=C[1],A=(0,d.useState)(!1),W=(0,i.Z)(A,2),q=W[0],H=W[1],ie=(0,d.useState)(!1),Q=(0,i.Z)(ie,2),ce=Q[0],de=Q[1],he=[{title:"\u4E3B\u952E",dataIndex:"id",tip:"\u89C4\u5219\u540D\u79F0\u662F\u552F\u4E00\u7684 key",hideInSearch:!0,hideInTable:!0},{title:"\u6279\u6B21\u53F7",dataIndex:"batchNo",valueType:"textarea"},{title:"\u4F18\u60E0\u5377",dataIndex:"couponTitle",valueType:"textarea"},{title:"\u53D1\u653E\u6570\u91CF",dataIndex:"sendNum",search:!1,valueType:"textarea"},{title:"\u9886\u53D6\u6570\u91CF",dataIndex:"totalNum",search:!1,valueType:"digit"},{title:"\u5269\u4F59\u6570\u91CF",dataIndex:"lastNum",search:!1,valueType:"digit"},{title:"\u53D1\u653E\u65F6\u95F4",dataIndex:"createAt",valueType:"date"},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(M,m){var F=[(0,t.jsx)("a",{type:"primary",onClick:function(){g(!0),P({batchNo:m.batchNo,couponId:m.couponId,showType:1})},children:"\u9002\u7528\u8303\u56F4"},"primary1"),(0,t.jsx)("a",{type:"primary",onClick:function(){g(!0),P({batchNo:m.batchNo,couponId:m.couponId,showType:2})},children:"\u9002\u7528\u5546\u54C1"},"primary2"),(0,t.jsx)("a",{type:"primary",onClick:function(){de(!0),P({batchNo:m.batchNo})},children:"\u9886\u53D6\u8BE6\u60C5"},"primary3"),(0,t.jsx)("a",{type:"primary",disabled:m.validStatus!=1||m.lastNum==0,style:{pointerEvents:m.validStatus!=1||m.lastNum==0?"none":"auto"},onClick:function(){H(!0),P({couponRangeId:m.id,couponId:m.couponId,lastNum:m.lastNum})},children:"\u53D1\u653E"},"primary")];return F}}];return(0,t.jsxs)(Z.ZP,{children:[(0,t.jsx)(R.ZP,{headerTitle:"\u4F18\u60E0\u5377",actionRef:r,rowKey:"id",search:{labelWidth:120},columns:he,request:function(){var w=(0,x.Z)((0,l.Z)().mark(function M(m){var F,D;return(0,l.Z)().wrap(function(k){for(;;)switch(k.prev=k.next){case 0:return F=[],D=0,k.next=4,(0,O.hz)(m).then(function(ee){F=ee.data.data,D=ee.data.total});case 4:return k.abrupt("return",{data:F,success:!0,total:D});case 5:case"end":return k.stop()}},M)}));return function(M){return w.apply(this,arguments)}}()}),(0,t.jsx)(B.Z,{shows:u,onCancel:function(){g(!1),P(void 0)},couponRecord:j}),(0,t.jsx)(L,{shows:ce,onCancel:function(){de(!1),P(void 0)},couponRecord:j}),(0,t.jsx)(se,{shows:q,values:j,actionRef:r,onCancel:function(){H(!1),P(void 0)}})]})},le=oe},79146:function(pe,$,e){"use strict";e.d($,{hz:function(){return d},GA:function(){return R},m$:function(){return te},m2:function(){return K},tP:function(){return U},A8:function(){return G},aO:function(){return O},fC:function(){return E}});var l=e(39428),x=e(3182),i=e(48971);function d(c){return Z.apply(this,arguments)}function Z(){return Z=(0,x.Z)((0,l.Z)().mark(function c(y){return(0,l.Z)().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",(0,i.WY)("/kitchen/api/coupon/couponrecordpage",{method:"POST",data:y}));case 1:case"end":return n.stop()}},c)})),Z.apply(this,arguments)}function R(c){return B.apply(this,arguments)}function B(){return B=(0,x.Z)((0,l.Z)().mark(function c(y){return(0,l.Z)().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",(0,i.WY)("/kitchen/api/coupon/customerpage",{method:"POST",data:y}));case 1:case"end":return n.stop()}},c)})),B.apply(this,arguments)}function te(c){return(0,i.WY)("/kitchen/api/coupon/recallcoupon",{method:"post",data:c})}function K(c){return(0,i.WY)("/kitchen/api/coupon/couponrecordbyid",{method:"post",data:c})}function U(c){return(0,i.WY)("/kitchen/api/coupon/couponrecordgoods",{method:"post",data:c})}function G(c){return(0,i.WY)("/kitchen/api/coupon/recallcoupongoods",{method:"post",data:c})}function O(c){return t.apply(this,arguments)}function t(){return t=(0,x.Z)((0,l.Z)().mark(function c(y){return(0,l.Z)().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",(0,i.WY)("/kitchen/api/coupon/receivecouponbyinput",{method:"PUT",data:y}));case 1:case"end":return n.stop()}},c)})),t.apply(this,arguments)}function E(c){return L.apply(this,arguments)}function L(){return L=(0,x.Z)((0,l.Z)().mark(function c(y){return(0,l.Z)().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",(0,i.WY)("/kitchen\u200B/api\u200B/select\u200B/customerinfo\u200B",{method:"Post",data:y}));case 1:case"end":return n.stop()}},c)})),L.apply(this,arguments)}}}]); diff --git a/dist/p__crm__coupon__goodsCoupon.d1a90272.async.js b/dist/p__crm__coupon__goodsCoupon.52e05d13.async.js similarity index 99% rename from dist/p__crm__coupon__goodsCoupon.d1a90272.async.js rename to dist/p__crm__coupon__goodsCoupon.52e05d13.async.js index ffdd805..f71e07e 100644 --- a/dist/p__crm__coupon__goodsCoupon.d1a90272.async.js +++ b/dist/p__crm__coupon__goodsCoupon.52e05d13.async.js @@ -1 +1 @@ -(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[1679],{68526:function($e,ne,s){"use strict";s.r(ne),s.d(ne,{default:function(){return ke}});var Be=s(57663),K=s(71577),De=s(43358),re=s(34041),Ne=s(34792),c=s(48086),l=s(39428),h=s(3182),I=s(2824),f=s(67294),Oe=s(30381),ue=s(16894),ce=s(78009),pe=s(85224),Ae=s(71194),se=s(50146),O=s(11849),We=s(77883),le=s(85986),Le=s(49111),fe=s(19650),Ye=s(48736),he=s(27049),Ve=s(47673),A=s(4107),ve=s(86582),ze=s(9715),y=s(55843),me=s(49101),P=s(48971);function ye(d){return H.apply(this,arguments)}function H(){return H=(0,h.Z)((0,l.Z)().mark(function d(o){return(0,l.Z)().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",(0,P.WY)("/kitchen/api/goodscoupon/getGoodsCouponPgage",{method:"POST",data:o}));case 1:case"end":return r.stop()}},d)})),H.apply(this,arguments)}function ge(d){return Q.apply(this,arguments)}function Q(){return Q=(0,h.Z)((0,l.Z)().mark(function d(o){return(0,l.Z)().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",(0,P.WY)("/kitchen/api/goodscoupon/addGoodsCoupon",{method:"POST",data:o}));case 1:case"end":return r.stop()}},d)})),Q.apply(this,arguments)}function Ze(d){return X.apply(this,arguments)}function X(){return X=(0,h.Z)((0,l.Z)().mark(function d(o){return(0,l.Z)().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",(0,P.WY)("/kitchen/api/goodscoupon/updateGoodsCouponEnable?Ids="+o,{method:"GET"}));case 1:case"end":return r.stop()}},d)})),X.apply(this,arguments)}function Se(d){return q.apply(this,arguments)}function q(){return q=(0,h.Z)((0,l.Z)().mark(function d(o){return(0,l.Z)().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",(0,P.WY)("/kitchen/api/goodscoupon/updateGoodsCoupon",{method:"POST",data:o}));case 1:case"end":return r.stop()}},d)})),q.apply(this,arguments)}function oe(){return _.apply(this,arguments)}function _(){return _=(0,h.Z)((0,l.Z)().mark(function d(){return(0,l.Z)().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:return m.abrupt("return",(0,P.WY)("/kitchen/api/papercoupon/getPaperCouponType",{method:"GET"}));case 1:case"end":return m.stop()}},d)})),_.apply(this,arguments)}function Ce(d){return ee.apply(this,arguments)}function ee(){return ee=(0,h.Z)((0,l.Z)().mark(function d(o){return(0,l.Z)().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",(0,P.WY)("/kitchen/api/papercoupon/addPaperCouponType",{method:"POST",data:o}));case 1:case"end":return r.stop()}},d)})),ee.apply(this,arguments)}function Ie(d){return te.apply(this,arguments)}function te(){return te=(0,h.Z)((0,l.Z)().mark(function d(o){return(0,l.Z)().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",(0,P.WY)("\u200B\u200B/kitchen/api/Store/GetStoreGoods",{method:"POST",data:o}));case 1:case"end":return r.stop()}},d)})),te.apply(this,arguments)}function Te(d){return ae.apply(this,arguments)}function ae(){return ae=(0,h.Z)((0,l.Z)().mark(function d(o){return(0,l.Z)().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",(0,P.WY)("/kitchen/api/Store/GetStoreList",{method:"POST",data:o}));case 1:case"end":return r.stop()}},d)})),ae.apply(this,arguments)}var Me=s(58024),je=s(91894),Je=s(14781),xe=s(36138),Ue=s(18106),ie=s(95562),t=s(85893),we=ie.Z.TabPane,Ke="message",Fe=function(o){var m=(0,f.useState)([]),r=(0,I.Z)(m,2),T=r[0],U=r[1],W=(0,f.useState)(0),G=(0,I.Z)(W,2),L=G[0],R=G[1],Y=(0,f.useState)(!1),b=(0,I.Z)(Y,2),k=b[0],x=b[1],Z=[{title:"\u4E3B\u952E",dataIndex:"id",hideInSearch:!0,hideInTable:!0,tip:"\u89C4\u5219\u540D\u79F0\u662F\u552F\u4E00\u7684 key"},{title:"\u5546\u54C1",dataIndex:"goods_Name",valueType:"textarea"},{title:"\u5546\u54C1\u4EF7\u683C",dataIndex:"price",valueType:"money"},{title:"\u5546\u54C1\u4F1A\u5458\u4EF7\u683C",dataIndex:"vipPrice",valueType:"money"},{title:"\u662F\u5426\u8BBE\u5907\u5236\u4F5C",dataIndex:"isDevice",valueEnum:{0:{text:"\u5E97\u94FA",status:"Processing"},1:{text:"\u8BBE\u5907",status:"Success"}}},{title:"\u72B6\u6001",dataIndex:"status",valueEnum:{0:{text:"\u4E0A\u67B6",status:"Processing"},1:{text:"\u4E0B\u67B6",status:"Success"}}},{title:"\u4F30\u6E05",dataIndex:"stopSales",valueEnum:{0:{text:"\u9500\u552E",status:"Processing"},1:{text:"\u4F30\u6E05",status:"Success"}}}],$=function(){var S=(0,h.Z)((0,l.Z)().mark(function g(C){return(0,l.Z)().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:return x(!0),v.prev=1,v.next=4,Te({current:C,pageSize:10}).then(function(w){R(1),U(w.data),x(!1)});case 4:v.next=9;break;case 6:v.prev=6,v.t0=v.catch(1),x(!1);case 9:case"end":return v.stop()}},g,null,[[1,6]])}));return function(C){return S.apply(this,arguments)}}(),B=(0,f.useRef)(),V=(0,f.useRef)();return(0,f.useEffect)(function(){$(1)},[]),(0,t.jsx)(t.Fragment,{children:(0,t.jsxs)(je.Z,{headStyle:{border:"0px "},title:"\u5E97\u94FA\u5546\u54C1",style:{marginTop:"17px"},children:[(0,t.jsx)(ie.Z,{defaultActiveKey:"1",tabPosition:"left",onChange:function(g){},children:T==null?void 0:T.map(function(S){return(0,t.jsx)(we,{tab:S.name,children:(0,t.jsx)(ue.ZP,{actionRef:V,rowKey:"id",search:!1,loading:k,bordered:!0,columns:Z,request:function(){var g=(0,h.Z)((0,l.Z)().mark(function C(j){var v,w;return(0,l.Z)().wrap(function(F){for(;;)switch(F.prev=F.next){case 0:return v=[],w=0,j.StoreId=S.id,F.next=5,Ie(j).then(function(z){var D,N;v=(D=z.data)===null||D===void 0?void 0:D.data,w=(N=z.data)===null||N===void 0?void 0:N.total});case 5:return F.abrupt("return",{data:v,success:!0,total:w});case 6:case"end":return F.stop()}},C)}));return function(C){return g.apply(this,arguments)}}(),rowSelection:{type:"radio",onChange:function(C,j){o.oncheck(j)}}},S.id)},S.id)})}),(0,t.jsx)(xe.Z,{size:"small",style:{float:"right"},total:L,onChange:function(g,C){$(g)},showTotal:function(g,C){return"\u603B\u5171 ".concat(g," \u6761")},defaultPageSize:10,defaultCurrent:1})]})})},Pe=Fe,Ge=0,Re=function(o){var m=y.Z.useForm(),r=(0,I.Z)(m,1),T=r[0],U=(0,f.useState)(),W=(0,I.Z)(U,2),G=W[0],L=W[1],R=(0,f.useState)(!1),Y=(0,I.Z)(R,2),b=Y[0],k=Y[1],x=(0,f.useRef)(null),Z=(0,f.useState)(""),$=(0,I.Z)(Z,2),B=$[0],V=$[1],S=(0,f.useState)([]),g=(0,I.Z)(S,2),C=g[0],j=g[1];(0,f.useEffect)(function(){v()},[]),(0,f.useEffect)(function(){T.setFieldsValue(o.values)},[o.values]);var v=function(){var i=(0,h.Z)((0,l.Z)().mark(function u(){var a,p;return(0,l.Z)().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,oe();case 2:a=n.sent,p=[],a.data.map(function(E){return p.push({label:E.value,value:E.key})}),L(p);case 6:case"end":return n.stop()}},u)}));return function(){return i.apply(this,arguments)}}(),w={labelCol:{sm:{span:4}},wrapperCol:{}},M={wrapperCol:{sm:{span:500,offset:1}}},F=function(u){V(u.target.value)},z=function(){var i=(0,h.Z)((0,l.Z)().mark(function u(a){return(0,l.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return a.preventDefault(),L([].concat((0,ve.Z)(G),[{label:B,value:Ge++}])),V(""),setTimeout(function(){var n;(n=x.current)===null||n===void 0||n.focus()},0),e.next=6,Ce(JSON.stringify({Name:B})).then(function(n){n.data?(c.default.success("\u6DFB\u52A0\u6210\u529F"),v()):c.default.error("\u6DFB\u52A0\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01")});case 6:case"end":return e.stop()}},u)}));return function(a){return i.apply(this,arguments)}}(),D=function(){k(!0)},N=function(u){console.log(u),j(u)};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(se.Z,{maskClosable:!1,title:o.values.id?"\u7F16\u8F91\u4F18\u60E0\u5377":"\u65B0\u5EFA\u4F18\u60E0\u5377",width:700,visible:o.createModalVisible,footer:null,onCancel:function(){o.onCancel()},destroyOnClose:!0,children:(0,t.jsxs)(y.Z,(0,O.Z)((0,O.Z)({},w),{},{layout:"Horizontal",preserve:!1,form:T,onFinish:o.onFinish,children:[(0,t.jsx)(y.Z.Item,{name:"id",hidden:!0,children:(0,t.jsx)(A.Z,{})}),(0,t.jsx)(y.Z.Item,{name:"storeId",hidden:!0,children:(0,t.jsx)(A.Z,{})}),(0,t.jsx)(y.Z.Item,{name:"goodsId",hidden:!0,children:(0,t.jsx)(A.Z,{})}),(0,t.jsx)(y.Z.Item,{name:"goodsName",label:"\u5546\u54C1",rules:[{required:!0,max:200}],children:(0,t.jsx)(A.Z,{placeholder:"\u8BF7\u9009\u62E9\u5546\u54C1\u540D\u79F0",onClick:D})}),(0,t.jsx)(y.Z.Item,{name:"title",label:"\u4F18\u60E0\u5377\u6807\u9898",rules:[{required:!0,max:200}],children:(0,t.jsx)(A.Z,{placeholder:"\u8BF7\u8F93\u5165\u4F18\u60E0\u5377\u6807\u9898"})}),(0,t.jsx)(y.Z.Item,{name:"cTypeId",label:"\u4F18\u60E0\u5377\u7C7B\u578B",defaultValue:o.values.cTypeId,rules:[{required:!0}],children:(0,t.jsx)(re.Z,{placeholder:"\u8BF7\u9009\u62E9\u4F18\u60E0\u5377\u7C7B\u578B",dropdownRender:function(u){return(0,t.jsxs)(t.Fragment,{children:[u,(0,t.jsx)(he.Z,{style:{margin:"8px 0"}}),(0,t.jsxs)(fe.Z,{style:{padding:"0 8px 4px"},children:[(0,t.jsx)(A.Z,{placeholder:"\u8BF7\u8F93\u5165\u9009\u9879",ref:x,value:B,onChange:F}),(0,t.jsx)(K.Z,{type:"text",icon:(0,t.jsx)(me.Z,{}),onClick:z,children:"\u65B0\u589E"})]})]})},options:G})}),(0,t.jsx)(y.Z.Item,(0,O.Z)((0,O.Z)({},M),{},{style:{height:32},children:(0,t.jsx)(y.Z.Item,{label:"\u539F\u59CB\u91D1\u989D",style:{float:"left"},rules:[{required:!0}],children:(0,t.jsx)(y.Z.Item,{name:"money",noStyle:!0,children:(0,t.jsx)(le.Z,{placeholder:"\u91D1\u989D",min:0,precision:2})})})})),(0,t.jsx)(y.Z.Item,(0,O.Z)((0,O.Z)({},M),{},{style:{height:32},children:(0,t.jsx)(y.Z.Item,{label:"\u5E73\u53F0\u91D1\u989D",style:{float:"left"},rules:[{required:!0}],children:(0,t.jsx)(y.Z.Item,{name:"soureMoney",noStyle:!0,children:(0,t.jsx)(le.Z,{placeholder:"\u91D1\u989D",min:0,precision:2})})})})),(0,t.jsx)(y.Z.Item,{children:(0,t.jsx)(K.Z,{type:"primary",htmlType:"submit",style:{float:"right"},children:"\u4FDD\u5B58"})})]}))}),(0,t.jsx)(se.Z,{title:"\u5546\u54C1\u5217\u8868",destroyOnClose:!0,maskClosable:!1,visible:b,width:900,onCancel:function(){k(!1)},onOk:function(){var u="",a="",p=0,e="";C.forEach(function(n,E){u=u+n.goods_Name,a=a+n.goodsId,p=n.price,e=n.storeId,E=2&&(a.validStartTime=a.dateRange[0],a.validEndTime=a.dateRange[1]),a.CTypeId=V,J.next=6,ye(a).then(function(de){e=de.data.data,n=de.data.total});case 6:return J.abrupt("return",{data:e,success:!0,total:n});case 7:case"end":return J.stop()}},u)}));return function(u,a){return i.apply(this,arguments)}}()}),(T==null?void 0:T.length)>0&&(0,t.jsx)(pe.Z,{extra:(0,t.jsxs)("div",{children:[" ","\u5DF2\u9009\u62E9 ",(0,t.jsxs)("a",{style:{fontWeight:600},children:[T.length," "]})," \u9879 \xA0\xA0"," "]})}),(0,t.jsx)(Ee,{onFinish:function(){var i=(0,h.Z)((0,l.Z)().mark(function u(a){var p;return(0,l.Z)().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if(p=!1,!a.id){n.next=7;break}return n.next=4,z(a);case 4:p=n.sent,n.next=10;break;case 7:return n.next=9,M(a);case 9:p=n.sent;case 10:p&&(R(!1),o.current&&o.current.reload());case 11:case"end":return n.stop()}},u)}));return function(u){return i.apply(this,arguments)}}(),onCancel:function(){x(void 0),R(!1)},createModalVisible:L,values:k||{}})]})},ke=be}}]); +(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[1679],{68526:function($e,ne,s){"use strict";s.r(ne),s.d(ne,{default:function(){return ke}});var Be=s(57663),K=s(71577),De=s(43358),re=s(34041),Ne=s(34792),c=s(48086),l=s(39428),h=s(3182),I=s(2824),f=s(67294),Oe=s(30381),ue=s(16894),ce=s(78009),pe=s(85224),Ae=s(71194),se=s(50146),O=s(11849),We=s(77883),le=s(85986),Le=s(49111),fe=s(19650),Ye=s(48736),he=s(27049),Ve=s(47673),A=s(4107),ve=s(86582),ze=s(9715),y=s(55843),me=s(49101),P=s(48971);function ye(d){return H.apply(this,arguments)}function H(){return H=(0,h.Z)((0,l.Z)().mark(function d(o){return(0,l.Z)().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",(0,P.WY)("/kitchen/api/goodscoupon/getGoodsCouponPgage",{method:"POST",data:o}));case 1:case"end":return r.stop()}},d)})),H.apply(this,arguments)}function ge(d){return Q.apply(this,arguments)}function Q(){return Q=(0,h.Z)((0,l.Z)().mark(function d(o){return(0,l.Z)().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",(0,P.WY)("/kitchen/api/goodscoupon/addGoodsCoupon",{method:"POST",data:o}));case 1:case"end":return r.stop()}},d)})),Q.apply(this,arguments)}function Ze(d){return X.apply(this,arguments)}function X(){return X=(0,h.Z)((0,l.Z)().mark(function d(o){return(0,l.Z)().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",(0,P.WY)("/kitchen/api/goodscoupon/updateGoodsCouponEnable?Ids="+o,{method:"GET"}));case 1:case"end":return r.stop()}},d)})),X.apply(this,arguments)}function Se(d){return q.apply(this,arguments)}function q(){return q=(0,h.Z)((0,l.Z)().mark(function d(o){return(0,l.Z)().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",(0,P.WY)("/kitchen/api/goodscoupon/updateGoodsCoupon",{method:"POST",data:o}));case 1:case"end":return r.stop()}},d)})),q.apply(this,arguments)}function oe(){return _.apply(this,arguments)}function _(){return _=(0,h.Z)((0,l.Z)().mark(function d(){return(0,l.Z)().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:return m.abrupt("return",(0,P.WY)("/kitchen/api/papercoupon/getPaperCouponType",{method:"GET"}));case 1:case"end":return m.stop()}},d)})),_.apply(this,arguments)}function Ce(d){return ee.apply(this,arguments)}function ee(){return ee=(0,h.Z)((0,l.Z)().mark(function d(o){return(0,l.Z)().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",(0,P.WY)("/kitchen/api/papercoupon/addPaperCouponType",{method:"POST",data:o}));case 1:case"end":return r.stop()}},d)})),ee.apply(this,arguments)}function Ie(d){return te.apply(this,arguments)}function te(){return te=(0,h.Z)((0,l.Z)().mark(function d(o){return(0,l.Z)().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",(0,P.WY)("\u200B\u200B/kitchen/api/Store/GetStoreGoods",{method:"POST",data:o}));case 1:case"end":return r.stop()}},d)})),te.apply(this,arguments)}function Te(d){return ae.apply(this,arguments)}function ae(){return ae=(0,h.Z)((0,l.Z)().mark(function d(o){return(0,l.Z)().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",(0,P.WY)("/kitchen/api/Store/GetStoreList",{method:"POST",data:o}));case 1:case"end":return r.stop()}},d)})),ae.apply(this,arguments)}var Me=s(58024),je=s(91894),Je=s(14781),xe=s(36138),Ue=s(18106),ie=s(36166),t=s(85893),we=ie.Z.TabPane,Ke="message",Fe=function(o){var m=(0,f.useState)([]),r=(0,I.Z)(m,2),T=r[0],U=r[1],W=(0,f.useState)(0),G=(0,I.Z)(W,2),L=G[0],R=G[1],Y=(0,f.useState)(!1),b=(0,I.Z)(Y,2),k=b[0],x=b[1],Z=[{title:"\u4E3B\u952E",dataIndex:"id",hideInSearch:!0,hideInTable:!0,tip:"\u89C4\u5219\u540D\u79F0\u662F\u552F\u4E00\u7684 key"},{title:"\u5546\u54C1",dataIndex:"goods_Name",valueType:"textarea"},{title:"\u5546\u54C1\u4EF7\u683C",dataIndex:"price",valueType:"money"},{title:"\u5546\u54C1\u4F1A\u5458\u4EF7\u683C",dataIndex:"vipPrice",valueType:"money"},{title:"\u662F\u5426\u8BBE\u5907\u5236\u4F5C",dataIndex:"isDevice",valueEnum:{0:{text:"\u5E97\u94FA",status:"Processing"},1:{text:"\u8BBE\u5907",status:"Success"}}},{title:"\u72B6\u6001",dataIndex:"status",valueEnum:{0:{text:"\u4E0A\u67B6",status:"Processing"},1:{text:"\u4E0B\u67B6",status:"Success"}}},{title:"\u4F30\u6E05",dataIndex:"stopSales",valueEnum:{0:{text:"\u9500\u552E",status:"Processing"},1:{text:"\u4F30\u6E05",status:"Success"}}}],$=function(){var S=(0,h.Z)((0,l.Z)().mark(function g(C){return(0,l.Z)().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:return x(!0),v.prev=1,v.next=4,Te({current:C,pageSize:10}).then(function(w){R(1),U(w.data),x(!1)});case 4:v.next=9;break;case 6:v.prev=6,v.t0=v.catch(1),x(!1);case 9:case"end":return v.stop()}},g,null,[[1,6]])}));return function(C){return S.apply(this,arguments)}}(),B=(0,f.useRef)(),V=(0,f.useRef)();return(0,f.useEffect)(function(){$(1)},[]),(0,t.jsx)(t.Fragment,{children:(0,t.jsxs)(je.Z,{headStyle:{border:"0px "},title:"\u5E97\u94FA\u5546\u54C1",style:{marginTop:"17px"},children:[(0,t.jsx)(ie.Z,{defaultActiveKey:"1",tabPosition:"left",onChange:function(g){},children:T==null?void 0:T.map(function(S){return(0,t.jsx)(we,{tab:S.name,children:(0,t.jsx)(ue.ZP,{actionRef:V,rowKey:"id",search:!1,loading:k,bordered:!0,columns:Z,request:function(){var g=(0,h.Z)((0,l.Z)().mark(function C(j){var v,w;return(0,l.Z)().wrap(function(F){for(;;)switch(F.prev=F.next){case 0:return v=[],w=0,j.StoreId=S.id,F.next=5,Ie(j).then(function(z){var D,N;v=(D=z.data)===null||D===void 0?void 0:D.data,w=(N=z.data)===null||N===void 0?void 0:N.total});case 5:return F.abrupt("return",{data:v,success:!0,total:w});case 6:case"end":return F.stop()}},C)}));return function(C){return g.apply(this,arguments)}}(),rowSelection:{type:"radio",onChange:function(C,j){o.oncheck(j)}}},S.id)},S.id)})}),(0,t.jsx)(xe.Z,{size:"small",style:{float:"right"},total:L,onChange:function(g,C){$(g)},showTotal:function(g,C){return"\u603B\u5171 ".concat(g," \u6761")},defaultPageSize:10,defaultCurrent:1})]})})},Pe=Fe,Ge=0,Re=function(o){var m=y.Z.useForm(),r=(0,I.Z)(m,1),T=r[0],U=(0,f.useState)(),W=(0,I.Z)(U,2),G=W[0],L=W[1],R=(0,f.useState)(!1),Y=(0,I.Z)(R,2),b=Y[0],k=Y[1],x=(0,f.useRef)(null),Z=(0,f.useState)(""),$=(0,I.Z)(Z,2),B=$[0],V=$[1],S=(0,f.useState)([]),g=(0,I.Z)(S,2),C=g[0],j=g[1];(0,f.useEffect)(function(){v()},[]),(0,f.useEffect)(function(){T.setFieldsValue(o.values)},[o.values]);var v=function(){var i=(0,h.Z)((0,l.Z)().mark(function u(){var a,p;return(0,l.Z)().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,oe();case 2:a=n.sent,p=[],a.data.map(function(E){return p.push({label:E.value,value:E.key})}),L(p);case 6:case"end":return n.stop()}},u)}));return function(){return i.apply(this,arguments)}}(),w={labelCol:{sm:{span:4}},wrapperCol:{}},M={wrapperCol:{sm:{span:500,offset:1}}},F=function(u){V(u.target.value)},z=function(){var i=(0,h.Z)((0,l.Z)().mark(function u(a){return(0,l.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return a.preventDefault(),L([].concat((0,ve.Z)(G),[{label:B,value:Ge++}])),V(""),setTimeout(function(){var n;(n=x.current)===null||n===void 0||n.focus()},0),e.next=6,Ce(JSON.stringify({Name:B})).then(function(n){n.data?(c.default.success("\u6DFB\u52A0\u6210\u529F"),v()):c.default.error("\u6DFB\u52A0\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01")});case 6:case"end":return e.stop()}},u)}));return function(a){return i.apply(this,arguments)}}(),D=function(){k(!0)},N=function(u){console.log(u),j(u)};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(se.Z,{maskClosable:!1,title:o.values.id?"\u7F16\u8F91\u4F18\u60E0\u5377":"\u65B0\u5EFA\u4F18\u60E0\u5377",width:700,visible:o.createModalVisible,footer:null,onCancel:function(){o.onCancel()},destroyOnClose:!0,children:(0,t.jsxs)(y.Z,(0,O.Z)((0,O.Z)({},w),{},{layout:"Horizontal",preserve:!1,form:T,onFinish:o.onFinish,children:[(0,t.jsx)(y.Z.Item,{name:"id",hidden:!0,children:(0,t.jsx)(A.Z,{})}),(0,t.jsx)(y.Z.Item,{name:"storeId",hidden:!0,children:(0,t.jsx)(A.Z,{})}),(0,t.jsx)(y.Z.Item,{name:"goodsId",hidden:!0,children:(0,t.jsx)(A.Z,{})}),(0,t.jsx)(y.Z.Item,{name:"goodsName",label:"\u5546\u54C1",rules:[{required:!0,max:200}],children:(0,t.jsx)(A.Z,{placeholder:"\u8BF7\u9009\u62E9\u5546\u54C1\u540D\u79F0",onClick:D})}),(0,t.jsx)(y.Z.Item,{name:"title",label:"\u4F18\u60E0\u5377\u6807\u9898",rules:[{required:!0,max:200}],children:(0,t.jsx)(A.Z,{placeholder:"\u8BF7\u8F93\u5165\u4F18\u60E0\u5377\u6807\u9898"})}),(0,t.jsx)(y.Z.Item,{name:"cTypeId",label:"\u4F18\u60E0\u5377\u7C7B\u578B",defaultValue:o.values.cTypeId,rules:[{required:!0}],children:(0,t.jsx)(re.Z,{placeholder:"\u8BF7\u9009\u62E9\u4F18\u60E0\u5377\u7C7B\u578B",dropdownRender:function(u){return(0,t.jsxs)(t.Fragment,{children:[u,(0,t.jsx)(he.Z,{style:{margin:"8px 0"}}),(0,t.jsxs)(fe.Z,{style:{padding:"0 8px 4px"},children:[(0,t.jsx)(A.Z,{placeholder:"\u8BF7\u8F93\u5165\u9009\u9879",ref:x,value:B,onChange:F}),(0,t.jsx)(K.Z,{type:"text",icon:(0,t.jsx)(me.Z,{}),onClick:z,children:"\u65B0\u589E"})]})]})},options:G})}),(0,t.jsx)(y.Z.Item,(0,O.Z)((0,O.Z)({},M),{},{style:{height:32},children:(0,t.jsx)(y.Z.Item,{label:"\u539F\u59CB\u91D1\u989D",style:{float:"left"},rules:[{required:!0}],children:(0,t.jsx)(y.Z.Item,{name:"money",noStyle:!0,children:(0,t.jsx)(le.Z,{placeholder:"\u91D1\u989D",min:0,precision:2})})})})),(0,t.jsx)(y.Z.Item,(0,O.Z)((0,O.Z)({},M),{},{style:{height:32},children:(0,t.jsx)(y.Z.Item,{label:"\u5E73\u53F0\u91D1\u989D",style:{float:"left"},rules:[{required:!0}],children:(0,t.jsx)(y.Z.Item,{name:"soureMoney",noStyle:!0,children:(0,t.jsx)(le.Z,{placeholder:"\u91D1\u989D",min:0,precision:2})})})})),(0,t.jsx)(y.Z.Item,{children:(0,t.jsx)(K.Z,{type:"primary",htmlType:"submit",style:{float:"right"},children:"\u4FDD\u5B58"})})]}))}),(0,t.jsx)(se.Z,{title:"\u5546\u54C1\u5217\u8868",destroyOnClose:!0,maskClosable:!1,visible:b,width:900,onCancel:function(){k(!1)},onOk:function(){var u="",a="",p=0,e="";C.forEach(function(n,E){u=u+n.goods_Name,a=a+n.goodsId,p=n.price,e=n.storeId,E=2&&(a.validStartTime=a.dateRange[0],a.validEndTime=a.dateRange[1]),a.CTypeId=V,J.next=6,ye(a).then(function(de){e=de.data.data,n=de.data.total});case 6:return J.abrupt("return",{data:e,success:!0,total:n});case 7:case"end":return J.stop()}},u)}));return function(u,a){return i.apply(this,arguments)}}()}),(T==null?void 0:T.length)>0&&(0,t.jsx)(pe.Z,{extra:(0,t.jsxs)("div",{children:[" ","\u5DF2\u9009\u62E9 ",(0,t.jsxs)("a",{style:{fontWeight:600},children:[T.length," "]})," \u9879 \xA0\xA0"," "]})}),(0,t.jsx)(Ee,{onFinish:function(){var i=(0,h.Z)((0,l.Z)().mark(function u(a){var p;return(0,l.Z)().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if(p=!1,!a.id){n.next=7;break}return n.next=4,z(a);case 4:p=n.sent,n.next=10;break;case 7:return n.next=9,M(a);case 9:p=n.sent;case 10:p&&(R(!1),o.current&&o.current.reload());case 11:case"end":return n.stop()}},u)}));return function(u){return i.apply(this,arguments)}}(),onCancel:function(){x(void 0),R(!1)},createModalVisible:L,values:k||{}})]})},ke=be}}]); diff --git a/dist/p__device__deviceInfo.ba02bdba.async.js b/dist/p__device__deviceInfo.ba02bdba.async.js new file mode 100644 index 0000000..32d158a --- /dev/null +++ b/dist/p__device__deviceInfo.ba02bdba.async.js @@ -0,0 +1 @@ +(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[7657,1322],{17997:function(tt,he,s){"use strict";s.r(he),s.d(he,{default:function(){return Gt}});var N=s(57663),P=s(71577),Z=s(2824),r=s(39428),Ke=s(34792),l=s(48086),c=s(3182),ne=s(49101),m=s(67294),ie=s(78009),Ze=s(85224),ee=s(16894),Ue=s(71194),Q=s(50146),rt=s(77883),ae=s(85986),Ne=s(62999),se=s(54680),j=s(9715),p=s(55843),te=s(47673),f=s(4107),ce=s(43358),M=s(34041),n=s(85893),nt=function(t){var u=M.Z.Option,e=M.Z.OptGroup;return(0,n.jsx)(Q.Z,{title:t.values.id?"\u7F16\u8F91":"\u65B0\u5EFA",width:640,visible:t.createModalVisible,bodyStyle:{padding:"32px 40px 48px"},footer:null,onCancel:function(){t.onCancel()},destroyOnClose:!0,children:(0,n.jsxs)(p.Z,{layout:"Horizontal",labelCol:{span:4},preserve:!1,initialValues:t.values,onFinish:t.onFinish,children:[(0,n.jsx)(p.Z.Item,{name:"id",hidden:!0,children:(0,n.jsx)(f.Z,{})}),(0,n.jsx)(p.Z.Item,{label:"\u8BBE\u5907\u540D\u79F0",name:"deviceName",rules:[{required:!0,max:50}],children:(0,n.jsx)(f.Z,{})}),(0,n.jsx)(p.Z.Item,{label:"\u8BBE\u5907\u7C7B\u578B",name:"deviceTypeKey",rules:[{required:!0}],children:(0,n.jsx)(M.Z,{children:t.dicData.map(function(i,o){return(0,n.jsx)(M.Z.Option,{index:o,value:i.code,children:i.value},i.code)})})}),(0,n.jsx)(p.Z.Item,{name:"orgId",label:"\u5F52\u5C5E\u95E8\u5E97",rules:[{required:!0}],children:(0,n.jsx)(se.Z,{style:{width:"100%"},dropdownStyle:{maxHeight:400,overflow:"auto"},treeData:t.OrgData,placeholder:"\u5F52\u5C5E\u95E8\u5E97",treeDefaultExpandAll:!0})}),(0,n.jsx)(p.Z.Item,{label:"\u8BBE\u5907\u5206\u7C7B",name:"deviceTypeId",rules:[{required:!0}],children:(0,n.jsx)(M.Z,{children:t.storeType.map(function(i,o){return(0,n.jsx)(M.Z.Option,{index:o,value:i.id,children:i.text},i.id)})})}),(0,n.jsx)(p.Z.Item,{noStyle:!0,shouldUpdate:function(o,D){return o.deviceTypeKey!==D.deviceTypeKey},children:function(o){var D,H=o.getFieldValue;return H("deviceTypeKey")==="TMC"?(0,n.jsx)(p.Z.Item,{name:"deviceVersion",label:"\u8BBE\u5907\u7248\u672C",initialValue:"WorryFreeEdition",children:(0,n.jsx)(M.Z,{children:(D=t.deviceVersions)===null||D===void 0?void 0:D.map(function(R,X){return(0,n.jsx)(M.Z.Option,{index:X,value:R.code,children:R.name},R.code)})})}):null}}),(0,n.jsx)(p.Z.Item,{label:"\u8BBE\u5907\u5750\u6807",name:"deviceLoc",children:(0,n.jsx)(f.Z,{placeholder:"104.070734,30.575041"})}),(0,n.jsx)(p.Z.Item,{label:"\u72B6\u6001",name:"status",rules:[{required:!0}],children:(0,n.jsx)(M.Z,{placeholder:"\u8BF7\u9009\u62E9\u72B6\u6001",children:(0,n.jsxs)(e,{children:[(0,n.jsx)(M.Z.Option,{value:0,children:"\u6B63\u5E38"}),(0,n.jsx)(M.Z.Option,{value:1,children:"\u505C\u7528"})]})})}),(0,n.jsx)(p.Z.Item,{label:"\u8BBE\u5907\u901A\u9053\u6570\u91CF",name:"materialQuantity",children:(0,n.jsx)(ae.Z,{})}),(0,n.jsx)(p.Z.Item,{label:"\u8BBE\u5907\u8BE6\u7EC6\u5730\u5740",name:"deviceAddr",children:(0,n.jsx)(f.Z,{placeholder:"\u6210\u90FD\u5E02\u6B66\u4FAF\u533A\u6842\u6EAA\u8857\u9053\u73AF\u7403\u4E2D\u5FC3N5-9111C"})}),(0,n.jsx)(p.Z.Item,{children:(0,n.jsx)(P.Z,{type:"primary",htmlType:"submit",children:"\u4FDD\u5B58"})})]})})},at=nt,le=s(11849),E=s(48971);function ut(a){return ge.apply(this,arguments)}function ge(){return ge=(0,c.Z)((0,r.Z)().mark(function a(t){return(0,r.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,E.WY)("/kitchen/api/Device/GetDeviceInfoPage",{method:"POST",data:t}));case 1:case"end":return e.stop()}},a)})),ge.apply(this,arguments)}function it(a){return Se.apply(this,arguments)}function Se(){return Se=(0,c.Z)((0,r.Z)().mark(function a(t){return(0,r.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,E.WY)("/kitchen/api/dict-data/dic-list/".concat(t),{method:"Get"}));case 1:case"end":return e.stop()}},a)})),Se.apply(this,arguments)}function st(a){return ke.apply(this,arguments)}function ke(){return ke=(0,c.Z)((0,r.Z)().mark(function a(t){return(0,r.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,E.WY)("/kitchen/api/Device/AddDeviceInfo",{method:"POST",data:t}));case 1:case"end":return e.stop()}},a)})),ke.apply(this,arguments)}function ct(a){return De.apply(this,arguments)}function De(){return De=(0,c.Z)((0,r.Z)().mark(function a(t){return(0,r.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,E.WY)("/kitchen/api/Device/PushDeviceGoods?DeviceId="+t,{method:"Get"}));case 1:case"end":return e.stop()}},a)})),De.apply(this,arguments)}function ze(a){return we.apply(this,arguments)}function we(){return we=(0,c.Z)((0,r.Z)().mark(function a(t){return(0,r.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,E.WY)("/kitchen/api/Device/UpdateDeviceInfo",{method:"POST",data:t}));case 1:case"end":return e.stop()}},a)})),we.apply(this,arguments)}function lt(a){return Ce.apply(this,arguments)}function Ce(){return Ce=(0,c.Z)((0,r.Z)().mark(function a(t){return(0,r.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,E.WY)("/kitchen/api/Device/CopyDevice",{method:"POST",data:t}));case 1:case"end":return e.stop()}},a)})),Ce.apply(this,arguments)}function ot(a){return Fe.apply(this,arguments)}function Fe(){return Fe=(0,c.Z)((0,r.Z)().mark(function a(t){return(0,r.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,E.WY)("\u200B\u200B/kitchen/api/Device/DelDeviceInfo",{method:"POST",data:t}));case 1:case"end":return e.stop()}},a)})),Fe.apply(this,arguments)}function dt(a){return je.apply(this,arguments)}function je(){return je=(0,c.Z)((0,r.Z)().mark(function a(t){return(0,r.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,E.WY)("\u200B/kitchen/api/Device/GetDeviceType",{method:"GET"}));case 1:case"end":return e.stop()}},a)})),je.apply(this,arguments)}function ft(){return Ie.apply(this,arguments)}function Ie(){return Ie=(0,c.Z)((0,r.Z)().mark(function a(){return(0,r.Z)().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.abrupt("return",(0,E.WY)("\u200B/kitchen/api/Device/GetDeviceVersions",{method:"post"}));case 1:case"end":return u.stop()}},a)})),Ie.apply(this,arguments)}function Kt(a,t){return be.apply(this,arguments)}function be(){return be=_asyncToGenerator(_regeneratorRuntime().mark(function a(t,u){return _regeneratorRuntime().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return i.abrupt("return",request("/kitchen/api/Device/GetDeviceGoods",{method:"POST",data:_objectSpread({},t)}));case 1:case"end":return i.stop()}},a)})),be.apply(this,arguments)}function pt(a){return Ee.apply(this,arguments)}function Ee(){return Ee=(0,c.Z)((0,r.Z)().mark(function a(t){return(0,r.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,E.WY)("/kitchen/api/Device/AddDeviceGood",{method:"POST",data:(0,le.Z)({},t)}));case 1:case"end":return e.stop()}},a)})),Ee.apply(this,arguments)}function Ut(a){return Oe.apply(this,arguments)}function Oe(){return Oe=_asyncToGenerator(_regeneratorRuntime().mark(function a(t){return _regeneratorRuntime().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",request("/kitchen/\u200Bapi/Device/GetGoods",{method:"POST",data:_objectSpread({},t)}));case 1:case"end":return e.stop()}},a)})),Oe.apply(this,arguments)}function ht(a){return Te.apply(this,arguments)}function Te(){return Te=(0,c.Z)((0,r.Z)().mark(function a(t){return(0,r.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,E.WY)("/kitchen/\u200Bapi/Device/GetByDeviceGoods",{method:"POST",data:(0,le.Z)({},t)}));case 1:case"end":return e.stop()}},a)})),Te.apply(this,arguments)}function vt(a){return xe.apply(this,arguments)}function xe(){return xe=(0,c.Z)((0,r.Z)().mark(function a(t){return(0,r.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,E.WY)("/kitchen/api/Device/GetDeviceStorePage",{method:"POST",data:t}));case 1:case"end":return e.stop()}},a)})),xe.apply(this,arguments)}function mt(a){return Be.apply(this,arguments)}function Be(){return Be=(0,c.Z)((0,r.Z)().mark(function a(t){return(0,r.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,E.WY)("/kitchen/api/Device/DelStockAdjust?Id=".concat(t),{method:"DELETE"}));case 1:case"end":return e.stop()}},a)})),Be.apply(this,arguments)}function yt(a){return Ae.apply(this,arguments)}function Ae(){return Ae=(0,c.Z)((0,r.Z)().mark(function a(t){return(0,r.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,E.WY)("/kitchen/api/Device/AddUpdateDeviceStocAsync",{method:"POST",data:t}));case 1:case"end":return e.stop()}},a)})),Ae.apply(this,arguments)}function Zt(a){return $e.apply(this,arguments)}function $e(){return $e=(0,c.Z)((0,r.Z)().mark(function a(t){return(0,r.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,E.WY)("/kitchen/api/Device/AddUpdateDeviceStocAsync",{method:"put",data:t}));case 1:case"end":return e.stop()}},a)})),$e.apply(this,arguments)}function gt(a){return Ge.apply(this,arguments)}function Ge(){return Ge=(0,c.Z)((0,r.Z)().mark(function a(t){return(0,r.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,E.WY)("/kitchen/api/deviceconfig/getlocs?Code=".concat(t),{method:"GET"}));case 1:case"end":return e.stop()}},a)})),Ge.apply(this,arguments)}function St(a){return Pe.apply(this,arguments)}function Pe(){return Pe=(0,c.Z)((0,r.Z)().mark(function a(t){return(0,r.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,E.WY)("/kitchen/api/Device/GetProductList",{method:"post",data:t}));case 1:case"end":return e.stop()}},a)})),Pe.apply(this,arguments)}function kt(a){return Me.apply(this,arguments)}function Me(){return Me=(0,c.Z)((0,r.Z)().mark(function a(t){return(0,r.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,E.WY)("/kitchen/\u200Bapi/FoodMenu/tree",{data:(0,le.Z)({},t)}));case 1:case"end":return e.stop()}},a)})),Me.apply(this,arguments)}function Dt(a){return Re.apply(this,arguments)}function Re(){return Re=(0,c.Z)((0,r.Z)().mark(function a(t){return(0,r.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,E.WY)("/kitchen/api/Device/PushDevice?DeviceId=".concat(t),{method:"post"}));case 1:case"end":return e.stop()}},a)})),Re.apply(this,arguments)}function wt(a){return We.apply(this,arguments)}function We(){return We=(0,c.Z)((0,r.Z)().mark(function a(t){return(0,r.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,E.WY)("/kitchen/api/Device/CheckStockAdjust?DeviceId=".concat(t),{method:"POST"}));case 1:case"end":return e.stop()}},a)})),We.apply(this,arguments)}var Ct=s(3408),Nt=s(49111),Ft=s(19650),ve=s(86582),zt=s(62350),ue=s(24565),jt=function(t){var u=(0,m.useRef)(),e=(0,m.useState)([]),i=(0,Z.Z)(e,2),o=i[0],D=i[1],H=(0,m.useState)(!0),R=(0,Z.Z)(H,2),X=R[0],_=R[1],q=(0,m.useState)([]),J=(0,Z.Z)(q,2),re=J[0],x=J[1],B=(0,m.useState)(""),C=(0,Z.Z)(B,2),d=C[0],h=C[1],y=[{title:"\u83DC\u8C31\u5217\u8868",dataIndex:"foodMenuId",valueType:"treeSelect",hideInTable:!0,fieldProps:{options:re,value:d,onChange:function(T){h(T)}}},{title:"\u5546\u54C1id",dataIndex:"goodsId",tip:"\u89C4\u5219\u540D\u79F0\u662F\u552F\u4E00\u7684 key",hideInSearch:!0,hideInTable:!0},{title:"\u5546\u54C1\u540D\u79F0",dataIndex:"goodsName"}],K=function(){var O=(0,c.Z)((0,r.Z)().mark(function T(){var F,I,v;return(0,r.Z)().wrap(function($){for(;;)switch($.prev=$.next){case 0:if((F=t.device)!==null&&F!==void 0&&F.id){$.next=2;break}return $.abrupt("return");case 2:return I=[],o.forEach(function(z){I.push({foodId:z})}),$.next=6,pt({foodss:I,deviceId:t.device.id});case 6:v=$.sent,v.data?(l.default.success("\u8BBE\u5907\u5546\u54C1\u66F4\u65B0\u6210\u529F\uFF01"),t.onOk()):l.default.error(JSON.stringify(v.errors)||"\u4E0A\u67B6\u5931\u8D25");case 8:case"end":return $.stop()}},T)}));return function(){return O.apply(this,arguments)}}(),A=function(){var O=(0,c.Z)((0,r.Z)().mark(function T(){var F;return(0,r.Z)().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:return v.next=2,kt();case 2:F=v.sent,F.statusCode===200&&F.data.length>0&&(h(F.data[0].value),x(F.data));case 4:case"end":return v.stop()}},T)}));return function(){return O.apply(this,arguments)}}();return(0,m.useEffect)(function(){A()},[]),(0,m.useEffect)(function(){u.current&&u.current.reload()},[d]),(0,n.jsx)(Q.Z,{width:900,bodyStyle:{padding:"32px 40px 48px"},destroyOnClose:!0,title:"\u3010".concat(t.device.deviceName,"\u3011\u7ED1\u5B9A\u5546\u54C1"),visible:t.open,onCancel:function(){return t.onCancel()},onOk:K,maskClosable:!1,children:(0,n.jsx)(ee.ZP,{actionRef:u,rowKey:"goodsId",pagination:{defaultPageSize:10},params:{deviceId:t.device.id},toolBarRender:function(){return[(0,n.jsx)(ue.Z,{type:"primary",title:"\u786E\u8BA4\u540C\u6B65\u5417\uFF1F",okText:"\u662F",cancelText:"\u5426",onConfirm:(0,c.Z)((0,r.Z)().mark(function T(){var F;return(0,r.Z)().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:return console.log(t.device.id),v.next=3,ct(t.device.id);case 3:F=v.sent,F.data?(l.default.success("\u540C\u6B65\u6210\u529F\uFF01"),u.current.reload()):l.default.error(F.errors||"\u540C\u6B65\u5931\u8D25\uFF01");case 5:case"end":return v.stop()}},T)})),children:(0,n.jsx)(P.Z,{type:"primary",children:"\u540C\u6B65\u5546\u54C1\u5230\u8BBE\u5907"},"primary")},"primary-async")]},request:function(){var O=(0,c.Z)((0,r.Z)().mark(function T(F){var I,v,Y,$,z;return(0,r.Z)().wrap(function(V){for(;;)switch(V.prev=V.next){case 0:if(d){V.next=2;break}return V.abrupt("return",[]);case 2:return V.next=4,ht((0,le.Z)((0,le.Z)({},F),{},{foolMenuId:d,storeId:t.device.orgId,foodName:F.goodsName||""}));case 4:if(I=V.sent,I.statusCode!==200){V.next=10;break}return I.data.total>0?($=new Set([].concat((0,ve.Z)(o),(0,ve.Z)(I.data.data.checkedIds))),z=[],$.forEach(function(oe){z.push(oe)}),D(z)):D([]),V.abrupt("return",{data:((v=I.data)===null||v===void 0||(Y=v.data)===null||Y===void 0?void 0:Y.data)||[],success:!0,total:I.data.total});case 10:return V.abrupt("return",[]);case 11:case"end":return V.stop()}},T)}));return function(T){return O.apply(this,arguments)}}(),columns:y,rowSelection:{type:"checkbox",selectedRowKeys:o,onSelect:function(T,F){var I=(0,ve.Z)(o),v=I.findIndex(function(Y){return Y===T.goodsId});F?v<0&&I.push(T.goodsId):v>-1&&I.splice(v,1),D(I)},onSelectAll:function(T,F,I){var v=(0,ve.Z)(o);T?F.forEach(function(Y){if(!!Y){var $=v.findIndex(function(z){return z===Y.goodsId});$<0&&v.push(Y.goodsId)}}):I.forEach(function(Y){var $=v.findIndex(function(z){return z===Y.goodsId});$>-1&&v.splice($,1)}),D(v)}},tableAlertOptionRender:function(){return(0,n.jsx)(Ft.Z,{size:16,children:(0,n.jsx)(ue.Z,{title:"\u6B64\u64CD\u4F5C\u4F1A\u53D6\u6D88\u6240\u6709\u9009\u4E2D\u9879\uFF0C\u786E\u5B9A\u8981\u53D6\u6D88\u5417\uFF1F",onConfirm:function(){return D([])},okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",children:(0,n.jsx)("a",{children:"\u53D6\u6D88\u9009\u62E9"})})})}})})},It=jt,He="message",bt=function(t){var u,e=p.Z.useForm(),i=(0,Z.Z)(e,1),o=i[0],D=(0,m.useState)([]),H=(0,Z.Z)(D,2),R=H[0],X=H[1],_=(0,m.useState)([]),q=(0,Z.Z)(_,2),J=q[0],re=q[1],x=function(){var d=(0,c.Z)((0,r.Z)().mark(function h(){var y;return(0,r.Z)().wrap(function(A){for(;;)switch(A.prev=A.next){case 0:return A.next=2,o.validateFields();case 2:if(y=A.sent,y.DeviceId=t.device.id,!y.id){A.next=9;break}return A.next=7,Zt(y).then(function(O){l.default.destroy(He),O.data?(l.default.success("\u4FEE\u6539\u6210\u529F"),t.onOk()):l.default.error("\u4FEE\u6539\u5931\u8D25"+O.errors)});case 7:A.next=11;break;case 9:return A.next=11,yt(y).then(function(O){l.default.destroy(He),O.data?(l.default.success("\u6DFB\u52A0\u6210\u529F"),t.onOk()):l.default.error("\u6DFB\u52A0\u5931\u8D25"+O.errors)});case 11:case"end":return A.stop()}},h)}));return function(){return d.apply(this,arguments)}}(),B=function(){var d=(0,c.Z)((0,r.Z)().mark(function h(){return(0,r.Z)().wrap(function(K){for(;;)switch(K.prev=K.next){case 0:gt(t.device.deviceTypeKey).then(function(A){X(A.data)});case 1:case"end":return K.stop()}},h)}));return function(){return d.apply(this,arguments)}}(),C=function(){var d=(0,c.Z)((0,r.Z)().mark(function h(){return(0,r.Z)().wrap(function(K){for(;;)switch(K.prev=K.next){case 0:St({DeviceId:t.device.id}).then(function(A){re(A.data)});case 1:case"end":return K.stop()}},h)}));return function(){return d.apply(this,arguments)}}();return(0,m.useEffect)(function(){var d;(d=t.stockMaterial)!==null&&d!==void 0&&d.id&&o.setFieldsValue(t.stockMaterial),B(),C()},[]),(0,n.jsx)(Q.Z,{width:700,destroyOnClose:!0,title:"".concat((u=t.stockMaterial)!==null&&u!==void 0&&u.id?"\u7F16\u8F91"+t.stockMaterial.batching_Name:"\u65B0\u589E"),visible:t.open,onCancel:t.onCancel,onOk:x,footer:[(0,n.jsx)(P.Z,{onClick:t.onCancel,children:"\u53D6\u6D88"},"back"),(0,n.jsx)(ue.Z,{title:"\u70B9\u51FB\u540C\u6B65\u5E93\u5B58\u6216\u91CD\u542F\u8BBE\u5907\u540E\u751F\u6548\uFF01\uFF01\uFF01",onConfirm:x,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",children:(0,n.jsx)(P.Z,{type:"primary",children:"\u786E\u5B9A"},"submit")})],children:(0,n.jsxs)(p.Z,{layout:"vertical",preserve:!1,form:o,children:[(0,n.jsx)(p.Z.Item,{name:"id",hidden:!0,children:(0,n.jsx)(f.Z,{})}),(0,n.jsx)(p.Z.Item,{name:"batching_Id",label:"\u539F\u6599\u540D\u79F0",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u539F\u6599\u540D\u79F0"}],children:(0,n.jsx)(M.Z,{placeholder:"\u8BF7\u9009\u62E9\u539F\u6599\u540D\u79F0",showSearch:!0,optionFilterProp:"children",filterOption:function(h,y){return y.children.toLowerCase().indexOf(h.toLowerCase())>=0},children:J==null?void 0:J.map(function(d,h){return(0,n.jsx)(M.Z.Option,{index:h,value:d.id,children:d.name},d.id)})})}),(0,n.jsx)(p.Z.Item,{name:"batching_Loc",label:"\u5E93\u5B58\u4F4D\u7F6E",rules:[{required:!0}],defaultValue:"0",children:(0,n.jsx)(M.Z,{placeholder:"\u8BF7\u9009\u62E9\u5E93\u5B58\u4F4D\u7F6E",children:R==null?void 0:R.map(function(d,h){return(0,n.jsx)(M.Z.Option,{index:h,value:d.loc,children:d.loc},d.loc)})})}),(0,n.jsx)(p.Z.Item,{name:"batching_Count",label:"\u539F\u6599\u6570\u91CF",rules:[{required:!0}],defaultValue:"0",children:(0,n.jsx)(ae.Z,{style:{width:"100%"},min:0,placeholder:"\u8BF7\u8F93\u5165\u539F\u6599\u6570\u91CF"})})]})})},Et=bt,Ot=function(t){var u=(0,m.useRef)(),e=(0,m.useState)(!1),i=(0,Z.Z)(e,2),o=i[0],D=i[1],H=(0,m.useState)(),R=(0,Z.Z)(H,2),X=R[0],_=R[1],q=[{title:"\u4E3B\u952E",dataIndex:"id",hideInSearch:!0,hideInTable:!0,tip:"\u89C4\u5219\u540D\u79F0\u662F\u552F\u4E00\u7684 key"},{title:"\u7269\u6599",dataIndex:"batching_Name",valueType:"textarea"},{title:"\u6570\u91CF",dataIndex:"batching_Count",valueType:"textarea"},{title:"\u5E93\u4F4D",dataIndex:"batching_Loc"},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(B,C){return[(0,n.jsx)("a",{onClick:function(){_(C),D(!0)},children:"\u4FEE\u6539"},"config"),(0,n.jsx)(ue.Z,{type:"primary",title:"\u786E\u8BA4\u5220\u9664\u5417\uFF1F",okText:"\u662F",cancelText:"\u5426",onConfirm:function(){return re(C)},children:(0,n.jsx)("a",{href:"#",children:"\u5220\u9664"})},"primary")]}}],J=function(){t.onOk()},re=function(){var x=(0,c.Z)((0,r.Z)().mark(function B(C){var d;return(0,r.Z)().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:return y.next=2,mt(C.id);case 2:d=y.sent,d.data?(l.default.success("\u5220\u9664\u6210\u529F"),u.current.reload()):l.default.error("\u5220\u9664\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5");case 4:case"end":return y.stop()}},B)}));return function(C){return x.apply(this,arguments)}}();return(0,m.useEffect)(function(){},[]),(0,n.jsxs)(Q.Z,{width:700,destroyOnClose:!0,title:"\u3010".concat(t.device.deviceName,"\u3011\u5E93\u5B58\u539F\u6599"),visible:t.open,onCancel:function(){return t.onCancel()},onOk:J,maskClosable:!1,children:[(0,n.jsx)(ee.ZP,{actionRef:u,rowKey:"id",search:!1,params:{deviceId:t.device.id},toolBarRender:function(){return[(0,n.jsx)(ue.Z,{type:"primary",title:"\u83B7\u53D6\u5B9E\u65F6\u5E93\u5B58\u4F1A\u8986\u76D6\u672C\u6B21\u8865\u8D27\u6570\u636E",okText:"\u662F",cancelText:"\u5426",onConfirm:(0,c.Z)((0,r.Z)().mark(function B(){var C;return(0,r.Z)().wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return h.next=2,wt(t.device.id);case 2:C=h.sent,C.data?(l.default.success("\u83B7\u53D6\u5B9E\u65F6\u5E93\u5B58\u4F1A\u6210\u529F\uFF01"),u.current.reload()):l.default.error(C.errors||"\u83B7\u53D6\u5B9E\u65F6\u5E93\u5B58\u4F1A\u5931\u8D25\uFF01");case 4:case"end":return h.stop()}},B)})),children:(0,n.jsx)(P.Z,{type:"primary",children:"\u83B7\u53D6\u5B9E\u65F6\u5E93\u5B58"},"primary")},"primary-async-time"),(0,n.jsx)(ue.Z,{type:"primary",title:"\u786E\u8BA4\u540C\u6B65\u5417\uFF1F",okText:"\u662F",cancelText:"\u5426",onConfirm:(0,c.Z)((0,r.Z)().mark(function B(){var C;return(0,r.Z)().wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return h.next=2,Dt(t.device.id);case 2:C=h.sent,C.data?(l.default.success("\u540C\u6B65\u6210\u529F\uFF01"),u.current.reload()):l.default.error(C.errors||"\u540C\u6B65\u5931\u8D25\uFF01");case 4:case"end":return h.stop()}},B)})),children:(0,n.jsx)(P.Z,{type:"primary",children:"\u540C\u6B65\u5E93\u5B58"},"primary")},"primary-async"),(0,n.jsxs)(P.Z,{type:"primary",onClick:function(){_(void 0),D(!0)},children:[(0,n.jsx)(ne.Z,{})," \u65B0\u589E\u5E93\u5B58\u539F\u6599"]},"primary")]},request:function(){var x=(0,c.Z)((0,r.Z)().mark(function B(C){var d;return(0,r.Z)().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:return y.next=2,vt(C);case 2:if(d=y.sent,d.statusCode!==200){y.next=5;break}return y.abrupt("return",{data:d.data.data,success:!0,total:d.data.total});case 5:return y.abrupt("return",[]);case 6:case"end":return y.stop()}},B)}));return function(B){return x.apply(this,arguments)}}(),columns:q}),o&&(0,n.jsx)(Et,{device:t.device,stockMaterial:X,open:o,onOk:function(){D(!1),u.current.reload()},onCancel:function(){return D(!1)}})]})},Tt=Ot,me="message",xt=function(){var a=(0,c.Z)((0,r.Z)().mark(function t(u){return(0,r.Z)().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return i.prev=0,l.default.loading("\u6B63\u5728\u6DFB\u52A0",me),i.next=4,st(JSON.stringify(u)).then(function(o){return l.default.destroy(me),o.data?(l.default.success("\u6DFB\u52A0\u6210\u529F"),!0):(l.default.error("\u6DFB\u52A0\u5931\u8D25"),!1)});case 4:i.next=10;break;case 6:return i.prev=6,i.t0=i.catch(0),l.default.error("\u6DFB\u52A0\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),i.abrupt("return",!1);case 10:case"end":return i.stop()}},t,null,[[0,6]])}));return function(u){return a.apply(this,arguments)}}(),Bt=function(){var a=(0,c.Z)((0,r.Z)().mark(function t(u){return(0,r.Z)().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return i.prev=0,l.default.loading("\u6B63\u5728\u4FEE\u6539",me),i.next=4,ze(JSON.stringify(u)).then(function(o){return l.default.destroy(me),o.data?(l.default.success("\u4FEE\u6539\u6210\u529F"),!0):(l.default.success("\u4FEE\u6539\u5931\u8D25"),!1)});case 4:i.next=10;break;case 6:return i.prev=6,i.t0=i.catch(0),l.default.error("\u4FEE\u6539\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),i.abrupt("return",!1);case 10:case"end":return i.stop()}},t,null,[[0,6]])}));return function(u){return a.apply(this,arguments)}}(),At=function(){var a=(0,c.Z)((0,r.Z)().mark(function t(u){var e;return(0,r.Z)().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return o.prev=0,l.default.loading("\u6B63\u5728\u5220\u9664"),e=[],u.forEach(function(D){e.push(D.id)}),o.next=6,ot(e).then(function(D){return D.data?(l.default.success("\u5220\u9664\u6210\u529F"),!0):(l.default.success("\u5220\u9664\u5931\u8D25"),!1)});case 6:o.next=12;break;case 8:return o.prev=8,o.t0=o.catch(0),l.default.error("\u5220\u9664\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),o.abrupt("return",!1);case 12:case"end":return o.stop()}},t,null,[[0,8]])}));return function(u){return a.apply(this,arguments)}}(),$t=function(){var t=(0,m.useState)(),u=(0,Z.Z)(t,2),e=u[0],i=u[1],o=(0,m.useState)([]),D=(0,Z.Z)(o,2),H=D[0],R=D[1],X=(0,m.useState)([]),_=(0,Z.Z)(X,2),q=_[0],J=_[1],re=(0,m.useState)([]),x=(0,Z.Z)(re,2),B=x[0],C=x[1],d=(0,m.useState)([]),h=(0,Z.Z)(d,2),y=h[0],K=h[1],A=(0,m.useState)([]),O=(0,Z.Z)(A,2),T=O[0],F=O[1],I=(0,m.useState)([]),v=(0,Z.Z)(I,2),Y=v[0],$=v[1],z=(0,m.useState)(),Le=(0,Z.Z)(z,2),V=Le[0],oe=Le[1],Pt=(0,m.useState)(!1),Je=(0,Z.Z)(Pt,2),Qe=Je[0],Ye=Je[1];(0,m.useEffect)(function(){var W=function(){dt().then(function(b){var w={},G=[];b.data.forEach(function(k){G.push({text:k.name,id:k.id}),w[k.id]={text:k.name}}),R(G),i(w)})};function L(){(0,Ct.FM)().then(function(S){b(S.data);function b(k){for(var U in k)k[U].type==2||k[U].type==3?k[U].disabled=!1:k[U].disabled=!0,k[U].children&&b(k[U].children)}J(S.data);var w={};G(S.data);function G(k){for(var U in k)w[k[U].disabled]=!0,w[k[U].value]={text:k[U].title},k[U].children&&G(k[U].children)}C(w)})}L(),W();function g(){it("DeviceClientType").then(function(S){var b=S.data,w={};if(S.succeeded){var G=[];b.forEach(function(k){w[k.code]={text:k.code},G.push({code:k.code,value:k.code})}),K(w),F(G)}})}g(),Mt()},[]);var Mt=function(){var W=(0,c.Z)((0,r.Z)().mark(function L(){var g;return(0,r.Z)().wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return b.next=2,ft();case 2:g=b.sent,g.statusCode==200?$(g.data):l.default.error("\u83B7\u53D6\u8BBE\u5907\u7248\u672C\u5931\u8D25");case 4:case"end":return b.stop()}},L)}));return function(){return W.apply(this,arguments)}}(),Rt=(0,m.useState)(!1),Xe=(0,Z.Z)(Rt,2),Wt=Xe[0],ye=Xe[1],de=(0,m.useRef)(),Lt=(0,m.useState)(),_e=(0,Z.Z)(Lt,2),Ve=_e[0],fe=_e[1],Yt=(0,m.useState)([]),qe=(0,Z.Z)(Yt,2),pe=qe[0],et=qe[1],Vt=[{title:"\u4E3B\u952E",dataIndex:"id",hideInSearch:!0,hideInTable:!0,tip:"\u89C4\u5219\u540D\u79F0\u662F\u552F\u4E00\u7684 key"},{title:"\u8BBE\u5907\u540D\u79F0",dataIndex:"deviceName",valueType:"textarea"},{title:"\u8BBE\u5907\u7C7B\u578B",dataIndex:"deviceTypeKey",valueEnum:y,hideInSearch:!0},{title:"\u5F52\u5C5E\u95E8\u5E97",dataIndex:"orgId",search:!1,valueEnum:B},{title:"\u8BBE\u5907\u5206\u7C7B",dataIndex:"deviceTypeId",valueEnum:e},{title:"\u72B6\u6001",dataIndex:"status",valueEnum:{0:{text:"\u6B63\u5E38",status:"Processing"},1:{text:"\u505C\u7528",status:"Success"}},hideInSearch:!0},{title:"\u8BBE\u5907\u901A\u9053\u6570\u91CF",dataIndex:"materialQuantity",valueType:"textarea",search:!1},{title:"\u8BBE\u5907\u552F\u4E00key",dataIndex:"autoKey",search:!1},{title:"\u5F52\u5C5E\u95E8\u5E97\u552F\u4E00key",dataIndex:"orgKey",search:!1},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",fixed:"right",width:400,render:function(L,g){return[(0,n.jsx)("a",{onClick:function(){ye(!0),fe(g)},children:"\u66F4\u65B0"},"update"),(0,n.jsx)("a",{onClick:(0,c.Z)((0,r.Z)().mark(function S(){return(0,r.Z)().wrap(function(w){for(;;)switch(w.prev=w.next){case 0:return de.current.reload(),g.status=g.status?0:1,w.next=4,ze(g).then(function(G){G.succeeded?l.default.success("\u914D\u7F6E\u6210\u529F"):l.default.error("\u914D\u7F6E\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01")});case 4:case"end":return w.stop()}},S)})),children:g.status==0?"\u505C\u7528":"\u6B63\u5E38"},"status"),(0,n.jsx)("a",{onClick:function(){lt({id:g.id}).then(function(b){b.data&&de.current.reload()})},children:"\u590D\u5236"},"copy"),(0,n.jsx)("a",{onClick:function(){fe(g),oe(!0)},children:"\u7ED1\u5B9A\u5546\u54C1"},"upload-goods"),(0,n.jsx)("a",{onClick:function(){fe(g),Ye(!0)},children:"\u5E93\u5B58\u539F\u6599"},"add")]}}];return(0,n.jsxs)(ie.ZP,{children:[(0,n.jsx)(ee.ZP,{headerTitle:"\u8BBE\u5907\u4FE1\u606F",actionRef:de,rowKey:"id",search:{labelWidth:120},scroll:{x:2e3},toolBarRender:function(){return[(0,n.jsxs)(P.Z,{type:"primary",onClick:function(){ye(!0)},children:[(0,n.jsx)(ne.Z,{})," \u65B0\u5EFA"]},"primary"),(0,n.jsx)(P.Z,{onClick:(0,c.Z)((0,r.Z)().mark(function L(){var g,S;return(0,r.Z)().wrap(function(w){for(;;)switch(w.prev=w.next){case 0:return w.next=2,At(pe);case 2:et([]),(g=de.current)===null||g===void 0||(S=g.reloadAndRest)===null||S===void 0||S.call(g);case 4:case"end":return w.stop()}},L)})),children:"\u5220\u9664"})]},request:function(){var W=(0,c.Z)((0,r.Z)().mark(function L(g){var S,b;return(0,r.Z)().wrap(function(G){for(;;)switch(G.prev=G.next){case 0:return S=[],b=0,G.next=4,ut(g).then(function(k){S=k.data.data,b=k.data.total});case 4:return G.abrupt("return",{data:S,success:!0,total:b});case 5:case"end":return G.stop()}},L)}));return function(L){return W.apply(this,arguments)}}(),columns:Vt,rowSelection:{onChange:function(L,g){et(g)}}}),(pe==null?void 0:pe.length)>0&&(0,n.jsx)(Ze.Z,{extra:(0,n.jsxs)("div",{children:["\u5DF2\u9009\u62E9"," ",(0,n.jsx)("a",{style:{fontWeight:600},children:pe.length})," ","\u9879 \xA0\xA0"]})}),(0,n.jsx)(at,{storeType:H,OrgData:q,dicData:T,onFinish:function(){var W=(0,c.Z)((0,r.Z)().mark(function L(g){var S;return(0,r.Z)().wrap(function(w){for(;;)switch(w.prev=w.next){case 0:S=!1,g.id?S=Bt(g):S=xt(g),S&&(ye(!1),fe(void 0),de.current.reload());case 3:case"end":return w.stop()}},L)}));return function(L){return W.apply(this,arguments)}}(),onCancel:function(){ye(!1),fe(void 0)},createModalVisible:Wt,deviceVersions:Y,values:Ve||{}}),V&&(0,n.jsx)(It,{open:V,device:Ve,onOk:function(){return oe(!1)},onCancel:function(){return oe(!1)}}),Qe&&(0,n.jsx)(Tt,{open:Qe,device:Ve,onOk:function(){return Ye(!1)},onCancel:function(){return Ye(!1)}})]})},Gt=$t},3408:function(tt,he,s){"use strict";s.d(he,{lM:function(){return Ke},IH:function(){return c},mm:function(){return Ze},eP:function(){return Ue},FM:function(){return Ne}});var N=s(39428),P=s(11849),Z=s(3182),r=s(48971);function Ke(j,p){return l.apply(this,arguments)}function l(){return l=(0,Z.Z)((0,N.Z)().mark(function j(p,te){return(0,N.Z)().wrap(function(ce){for(;;)switch(ce.prev=ce.next){case 0:return ce.abrupt("return",(0,r.WY)("/kitchen/api/sysOrg\u200B/page",{method:"GET",params:(0,P.Z)({},p)}));case 1:case"end":return ce.stop()}},j)})),l.apply(this,arguments)}function c(j){return ne.apply(this,arguments)}function ne(){return ne=(0,Z.Z)((0,N.Z)().mark(function j(p){return(0,N.Z)().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return f.abrupt("return",(0,r.WY)("/kitchen/api/sysOrg/add",{method:"POST",data:(0,P.Z)({},p)}));case 1:case"end":return f.stop()}},j)})),ne.apply(this,arguments)}function m(j){return ie.apply(this,arguments)}function ie(){return ie=_asyncToGenerator(_regeneratorRuntime().mark(function j(p){return _regeneratorRuntime().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return f.abrupt("return",request("\u200B/kitchen/api\u200B/sysOrg\u200B/list",{method:"POST",data:_objectSpread({},p)}));case 1:case"end":return f.stop()}},j)})),ie.apply(this,arguments)}function Ze(j){return ee.apply(this,arguments)}function ee(){return ee=(0,Z.Z)((0,N.Z)().mark(function j(p){return(0,N.Z)().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return f.abrupt("return",(0,r.WY)("\u200B/kitchen/api\u200B/sysOrg\u200B/delete",{method:"POST",data:(0,P.Z)({},p)}));case 1:case"end":return f.stop()}},j)})),ee.apply(this,arguments)}function Ue(j){return Q.apply(this,arguments)}function Q(){return Q=(0,Z.Z)((0,N.Z)().mark(function j(p){return(0,N.Z)().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return f.abrupt("return",(0,r.WY)("\u200B/kitchen/api\u200B/sysOrg\u200B/edit",{method:"POST",data:(0,P.Z)({},p)}));case 1:case"end":return f.stop()}},j)})),Q.apply(this,arguments)}function rt(j){return ae.apply(this,arguments)}function ae(){return ae=_asyncToGenerator(_regeneratorRuntime().mark(function j(p){return _regeneratorRuntime().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return f.abrupt("return",request("/kitchen\u200B/api\u200B/sysOrg\u200B/detail",{method:"POST",data:_objectSpread({},p)}));case 1:case"end":return f.stop()}},j)})),ae.apply(this,arguments)}function Ne(j){return se.apply(this,arguments)}function se(){return se=(0,Z.Z)((0,N.Z)().mark(function j(p){return(0,N.Z)().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return f.abrupt("return",(0,r.WY)("\u200B/kitchen/api\u200B/sysOrg\u200B/tree",{data:(0,P.Z)({},p)}));case 1:case"end":return f.stop()}},j)})),se.apply(this,arguments)}}}]); diff --git a/dist/p__device__deviceInfo.ea5e9087.async.js b/dist/p__device__deviceInfo.ea5e9087.async.js deleted file mode 100644 index 4b8b9ce..0000000 --- a/dist/p__device__deviceInfo.ea5e9087.async.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[7657,1322],{17997:function(tt,he,s){"use strict";s.r(he),s.d(he,{default:function(){return Gt}});var N=s(57663),G=s(71577),Z=s(2824),r=s(39428),Ke=s(34792),f=s(48086),c=s(3182),ne=s(49101),m=s(67294),ie=s(78009),Ze=s(85224),ee=s(16894),Ue=s(71194),Q=s(50146),rt=s(77883),ae=s(85986),Ne=s(62999),se=s(54680),j=s(9715),p=s(55843),te=s(47673),d=s(4107),ce=s(43358),P=s(34041),n=s(85893),nt=function(t){var u=P.Z.Option,e=P.Z.OptGroup;return(0,n.jsx)(Q.Z,{title:t.values.id?"\u7F16\u8F91":"\u65B0\u5EFA",width:640,visible:t.createModalVisible,bodyStyle:{padding:"32px 40px 48px"},footer:null,onCancel:function(){t.onCancel()},destroyOnClose:!0,children:(0,n.jsxs)(p.Z,{layout:"Horizontal",labelCol:{span:4},preserve:!1,initialValues:t.values,onFinish:t.onFinish,children:[(0,n.jsx)(p.Z.Item,{name:"id",hidden:!0,children:(0,n.jsx)(d.Z,{})}),(0,n.jsx)(p.Z.Item,{label:"\u8BBE\u5907\u540D\u79F0",name:"deviceName",rules:[{required:!0,max:50}],children:(0,n.jsx)(d.Z,{})}),(0,n.jsx)(p.Z.Item,{label:"\u8BBE\u5907\u7C7B\u578B",name:"deviceTypeKey",rules:[{required:!0}],children:(0,n.jsx)(P.Z,{children:t.dicData.map(function(i,l){return(0,n.jsx)(P.Z.Option,{index:l,value:i.code,children:i.value},i.code)})})}),(0,n.jsx)(p.Z.Item,{name:"orgId",label:"\u5F52\u5C5E\u95E8\u5E97",rules:[{required:!0}],children:(0,n.jsx)(se.Z,{style:{width:"100%"},dropdownStyle:{maxHeight:400,overflow:"auto"},treeData:t.OrgData,placeholder:"\u5F52\u5C5E\u95E8\u5E97",treeDefaultExpandAll:!0})}),(0,n.jsx)(p.Z.Item,{label:"\u8BBE\u5907\u5206\u7C7B",name:"deviceTypeId",rules:[{required:!0}],children:(0,n.jsx)(P.Z,{children:t.storeType.map(function(i,l){return(0,n.jsx)(P.Z.Option,{index:l,value:i.id,children:i.text},i.id)})})}),(0,n.jsx)(p.Z.Item,{noStyle:!0,shouldUpdate:function(l,k){return l.deviceTypeKey!==k.deviceTypeKey},children:function(l){var k,H=l.getFieldValue;return H("deviceTypeKey")==="TMC"?(0,n.jsx)(p.Z.Item,{name:"deviceVersion",label:"\u8BBE\u5907\u7248\u672C",initialValue:"WorryFreeEdition",children:(0,n.jsx)(P.Z,{children:(k=t.deviceVersions)===null||k===void 0?void 0:k.map(function(M,X){return(0,n.jsx)(P.Z.Option,{index:X,value:M.code,children:M.name},M.code)})})}):null}}),(0,n.jsx)(p.Z.Item,{label:"\u8BBE\u5907\u5750\u6807",name:"deviceLoc",children:(0,n.jsx)(d.Z,{placeholder:"104.070734,30.575041"})}),(0,n.jsx)(p.Z.Item,{label:"\u72B6\u6001",name:"status",rules:[{required:!0}],children:(0,n.jsx)(P.Z,{placeholder:"\u8BF7\u9009\u62E9\u72B6\u6001",children:(0,n.jsxs)(e,{children:[(0,n.jsx)(P.Z.Option,{value:0,children:"\u6B63\u5E38"}),(0,n.jsx)(P.Z.Option,{value:1,children:"\u505C\u7528"})]})})}),(0,n.jsx)(p.Z.Item,{label:"\u8BBE\u5907\u901A\u9053\u6570\u91CF",name:"materialQuantity",children:(0,n.jsx)(ae.Z,{})}),(0,n.jsx)(p.Z.Item,{label:"\u8BBE\u5907\u8BE6\u7EC6\u5730\u5740",name:"deviceAddr",children:(0,n.jsx)(d.Z,{placeholder:"\u6210\u90FD\u5E02\u6B66\u4FAF\u533A\u6842\u6EAA\u8857\u9053\u73AF\u7403\u4E2D\u5FC3N5-9111C"})}),(0,n.jsx)(p.Z.Item,{children:(0,n.jsx)(G.Z,{type:"primary",htmlType:"submit",children:"\u4FDD\u5B58"})})]})})},at=nt,le=s(11849),b=s(48971);function ut(a){return ge.apply(this,arguments)}function ge(){return ge=(0,c.Z)((0,r.Z)().mark(function a(t){return(0,r.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,b.WY)("/kitchen/api/Device/GetDeviceInfoPage",{method:"POST",data:t}));case 1:case"end":return e.stop()}},a)})),ge.apply(this,arguments)}function it(a){return Se.apply(this,arguments)}function Se(){return Se=(0,c.Z)((0,r.Z)().mark(function a(t){return(0,r.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,b.WY)("/kitchen/api/dict-data/dic-list/".concat(t),{method:"Get"}));case 1:case"end":return e.stop()}},a)})),Se.apply(this,arguments)}function st(a){return De.apply(this,arguments)}function De(){return De=(0,c.Z)((0,r.Z)().mark(function a(t){return(0,r.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,b.WY)("/kitchen/api/Device/AddDeviceInfo",{method:"POST",data:t}));case 1:case"end":return e.stop()}},a)})),De.apply(this,arguments)}function ct(a){return ke.apply(this,arguments)}function ke(){return ke=(0,c.Z)((0,r.Z)().mark(function a(t){return(0,r.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,b.WY)("/kitchen/api/Device/PushDeviceGoods?DeviceId="+t,{method:"Get"}));case 1:case"end":return e.stop()}},a)})),ke.apply(this,arguments)}function ze(a){return we.apply(this,arguments)}function we(){return we=(0,c.Z)((0,r.Z)().mark(function a(t){return(0,r.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,b.WY)("/kitchen/api/Device/UpdateDeviceInfo",{method:"POST",data:t}));case 1:case"end":return e.stop()}},a)})),we.apply(this,arguments)}function lt(a){return Ce.apply(this,arguments)}function Ce(){return Ce=(0,c.Z)((0,r.Z)().mark(function a(t){return(0,r.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,b.WY)("/kitchen/api/Device/CopyDevice",{method:"POST",data:t}));case 1:case"end":return e.stop()}},a)})),Ce.apply(this,arguments)}function ot(a){return Fe.apply(this,arguments)}function Fe(){return Fe=(0,c.Z)((0,r.Z)().mark(function a(t){return(0,r.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,b.WY)("\u200B\u200B/kitchen/api/Device/DelDeviceInfo",{method:"POST",data:t}));case 1:case"end":return e.stop()}},a)})),Fe.apply(this,arguments)}function dt(a){return je.apply(this,arguments)}function je(){return je=(0,c.Z)((0,r.Z)().mark(function a(t){return(0,r.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,b.WY)("\u200B/kitchen/api/Device/GetDeviceType",{method:"GET"}));case 1:case"end":return e.stop()}},a)})),je.apply(this,arguments)}function ft(){return Ie.apply(this,arguments)}function Ie(){return Ie=(0,c.Z)((0,r.Z)().mark(function a(){return(0,r.Z)().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.abrupt("return",(0,b.WY)("\u200B/kitchen/api/Device/GetDeviceVersions",{method:"post"}));case 1:case"end":return u.stop()}},a)})),Ie.apply(this,arguments)}function Kt(a,t){return be.apply(this,arguments)}function be(){return be=_asyncToGenerator(_regeneratorRuntime().mark(function a(t,u){return _regeneratorRuntime().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return i.abrupt("return",request("/kitchen/api/Device/GetDeviceGoods",{method:"POST",data:_objectSpread({},t)}));case 1:case"end":return i.stop()}},a)})),be.apply(this,arguments)}function pt(a){return Ee.apply(this,arguments)}function Ee(){return Ee=(0,c.Z)((0,r.Z)().mark(function a(t){return(0,r.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,b.WY)("/kitchen/api/Device/AddDeviceGood",{method:"POST",data:(0,le.Z)({},t)}));case 1:case"end":return e.stop()}},a)})),Ee.apply(this,arguments)}function Ut(a){return Be.apply(this,arguments)}function Be(){return Be=_asyncToGenerator(_regeneratorRuntime().mark(function a(t){return _regeneratorRuntime().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",request("/kitchen/\u200Bapi/Device/GetGoods",{method:"POST",data:_objectSpread({},t)}));case 1:case"end":return e.stop()}},a)})),Be.apply(this,arguments)}function ht(a){return Oe.apply(this,arguments)}function Oe(){return Oe=(0,c.Z)((0,r.Z)().mark(function a(t){return(0,r.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,b.WY)("/kitchen/\u200Bapi/Device/GetByDeviceGoods",{method:"POST",data:(0,le.Z)({},t)}));case 1:case"end":return e.stop()}},a)})),Oe.apply(this,arguments)}function vt(a){return Te.apply(this,arguments)}function Te(){return Te=(0,c.Z)((0,r.Z)().mark(function a(t){return(0,r.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,b.WY)("/kitchen/api/Device/GetDeviceStorePage",{method:"POST",data:t}));case 1:case"end":return e.stop()}},a)})),Te.apply(this,arguments)}function mt(a){return xe.apply(this,arguments)}function xe(){return xe=(0,c.Z)((0,r.Z)().mark(function a(t){return(0,r.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,b.WY)("/kitchen/api/Device/DelStockAdjust?Id=".concat(t),{method:"DELETE"}));case 1:case"end":return e.stop()}},a)})),xe.apply(this,arguments)}function yt(a){return Ae.apply(this,arguments)}function Ae(){return Ae=(0,c.Z)((0,r.Z)().mark(function a(t){return(0,r.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,b.WY)("/kitchen/api/Device/AddUpdateDeviceStocAsync",{method:"POST",data:t}));case 1:case"end":return e.stop()}},a)})),Ae.apply(this,arguments)}function Zt(a){return $e.apply(this,arguments)}function $e(){return $e=(0,c.Z)((0,r.Z)().mark(function a(t){return(0,r.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,b.WY)("/kitchen/api/Device/AddUpdateDeviceStocAsync",{method:"put",data:t}));case 1:case"end":return e.stop()}},a)})),$e.apply(this,arguments)}function gt(a){return Ge.apply(this,arguments)}function Ge(){return Ge=(0,c.Z)((0,r.Z)().mark(function a(t){return(0,r.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,b.WY)("/kitchen/api/deviceconfig/getlocs?Code=".concat(t),{method:"GET"}));case 1:case"end":return e.stop()}},a)})),Ge.apply(this,arguments)}function St(a){return Pe.apply(this,arguments)}function Pe(){return Pe=(0,c.Z)((0,r.Z)().mark(function a(t){return(0,r.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,b.WY)("/kitchen/api/Device/GetProductList",{method:"post",data:t}));case 1:case"end":return e.stop()}},a)})),Pe.apply(this,arguments)}function Dt(a){return Me.apply(this,arguments)}function Me(){return Me=(0,c.Z)((0,r.Z)().mark(function a(t){return(0,r.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,b.WY)("/kitchen/\u200Bapi/FoodMenu/tree",{data:(0,le.Z)({},t)}));case 1:case"end":return e.stop()}},a)})),Me.apply(this,arguments)}function kt(a){return Re.apply(this,arguments)}function Re(){return Re=(0,c.Z)((0,r.Z)().mark(function a(t){return(0,r.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,b.WY)("/kitchen/api/Device/PushDevice?DeviceId=".concat(t),{method:"post"}));case 1:case"end":return e.stop()}},a)})),Re.apply(this,arguments)}function wt(a){return We.apply(this,arguments)}function We(){return We=(0,c.Z)((0,r.Z)().mark(function a(t){return(0,r.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,b.WY)("/kitchen/api/Device/CheckStockAdjust?DeviceId=".concat(t),{method:"POST"}));case 1:case"end":return e.stop()}},a)})),We.apply(this,arguments)}var Ct=s(3408),Nt=s(49111),Ft=s(19650),ve=s(86582),zt=s(62350),ue=s(24565),jt=function(t){var u=(0,m.useRef)(),e=(0,m.useState)([]),i=(0,Z.Z)(e,2),l=i[0],k=i[1],H=(0,m.useState)(!0),M=(0,Z.Z)(H,2),X=M[0],_=M[1],q=(0,m.useState)([]),J=(0,Z.Z)(q,2),re=J[0],T=J[1],x=(0,m.useState)(""),w=(0,Z.Z)(x,2),o=w[0],h=w[1],y=[{title:"\u83DC\u8C31\u5217\u8868",dataIndex:"foodMenuId",valueType:"treeSelect",hideInTable:!0,fieldProps:{options:re,value:o,onChange:function(B){h(B)}}},{title:"\u5546\u54C1id",dataIndex:"goodsId",tip:"\u89C4\u5219\u540D\u79F0\u662F\u552F\u4E00\u7684 key",hideInSearch:!0,hideInTable:!0},{title:"\u5546\u54C1\u540D\u79F0",dataIndex:"goodsName"}],K=function(){var E=(0,c.Z)((0,r.Z)().mark(function B(){var C,I,v;return(0,r.Z)().wrap(function($){for(;;)switch($.prev=$.next){case 0:if((C=t.device)!==null&&C!==void 0&&C.id){$.next=2;break}return $.abrupt("return");case 2:return I=[],l.forEach(function(z){I.push({foodId:z})}),$.next=6,pt({foodss:I,deviceId:t.device.id});case 6:v=$.sent,v.data?(f.default.success("\u8BBE\u5907\u5546\u54C1\u66F4\u65B0\u6210\u529F\uFF01"),t.onOk()):f.default.error(JSON.stringify(v.errors)||"\u4E0A\u67B6\u5931\u8D25");case 8:case"end":return $.stop()}},B)}));return function(){return E.apply(this,arguments)}}(),A=function(){var E=(0,c.Z)((0,r.Z)().mark(function B(){var C;return(0,r.Z)().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:return v.next=2,Dt();case 2:C=v.sent,C.statusCode===200&&C.data.length>0&&(h(C.data[0].value),T(C.data));case 4:case"end":return v.stop()}},B)}));return function(){return E.apply(this,arguments)}}();return(0,m.useEffect)(function(){A()},[]),(0,m.useEffect)(function(){u.current&&u.current.reload()},[o]),(0,n.jsx)(Q.Z,{width:900,bodyStyle:{padding:"32px 40px 48px"},destroyOnClose:!0,title:"\u3010".concat(t.device.deviceName,"\u3011\u7ED1\u5B9A\u5546\u54C1"),visible:t.open,onCancel:function(){return t.onCancel()},onOk:K,maskClosable:!1,children:(0,n.jsx)(ee.ZP,{actionRef:u,rowKey:"goodsId",pagination:{defaultPageSize:10},params:{deviceId:t.device.id},toolBarRender:function(){return[(0,n.jsx)(ue.Z,{type:"primary",title:"\u786E\u8BA4\u540C\u6B65\u5417\uFF1F",okText:"\u662F",cancelText:"\u5426",onConfirm:(0,c.Z)((0,r.Z)().mark(function B(){var C;return(0,r.Z)().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:return console.log(t.device.id),v.next=3,ct(t.device.id);case 3:C=v.sent,C.data?(f.default.success("\u540C\u6B65\u6210\u529F\uFF01"),u.current.reload()):f.default.error(C.errors||"\u540C\u6B65\u5931\u8D25\uFF01");case 5:case"end":return v.stop()}},B)})),children:(0,n.jsx)(G.Z,{type:"primary",children:"\u540C\u6B65\u5546\u54C1\u5230\u8BBE\u5907"},"primary")},"primary-async")]},request:function(){var E=(0,c.Z)((0,r.Z)().mark(function B(C){var I,v,L,$,z;return(0,r.Z)().wrap(function(V){for(;;)switch(V.prev=V.next){case 0:if(o){V.next=2;break}return V.abrupt("return",[]);case 2:return V.next=4,ht((0,le.Z)((0,le.Z)({},C),{},{foolMenuId:o,storeId:t.device.orgId,foodName:C.goodsName||""}));case 4:if(I=V.sent,I.statusCode!==200){V.next=10;break}return I.data.total>0?($=new Set([].concat((0,ve.Z)(l),(0,ve.Z)(I.data.data.checkedIds))),z=[],$.forEach(function(oe){z.push(oe)}),k(z)):k([]),V.abrupt("return",{data:((v=I.data)===null||v===void 0||(L=v.data)===null||L===void 0?void 0:L.data)||[],success:!0,total:I.data.total});case 10:return V.abrupt("return",[]);case 11:case"end":return V.stop()}},B)}));return function(B){return E.apply(this,arguments)}}(),columns:y,rowSelection:{type:"checkbox",selectedRowKeys:l,onSelect:function(B,C){var I=(0,ve.Z)(l),v=I.findIndex(function(L){return L===B.goodsId});C?v<0&&I.push(B.goodsId):v>-1&&I.splice(v,1),k(I)},onSelectAll:function(B,C,I){var v=(0,ve.Z)(l);B?C.forEach(function(L){if(!!L){var $=v.findIndex(function(z){return z===L.goodsId});$<0&&v.push(L.goodsId)}}):I.forEach(function(L){var $=v.findIndex(function(z){return z===L.goodsId});$>-1&&v.splice($,1)}),k(v)}},tableAlertOptionRender:function(){return(0,n.jsx)(Ft.Z,{size:16,children:(0,n.jsx)(ue.Z,{title:"\u6B64\u64CD\u4F5C\u4F1A\u53D6\u6D88\u6240\u6709\u9009\u4E2D\u9879\uFF0C\u786E\u5B9A\u8981\u53D6\u6D88\u5417\uFF1F",onConfirm:function(){return k([])},okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",children:(0,n.jsx)("a",{children:"\u53D6\u6D88\u9009\u62E9"})})})}})})},It=jt,He="message",bt=function(t){var u,e=p.Z.useForm(),i=(0,Z.Z)(e,1),l=i[0],k=(0,m.useState)([]),H=(0,Z.Z)(k,2),M=H[0],X=H[1],_=(0,m.useState)([]),q=(0,Z.Z)(_,2),J=q[0],re=q[1],T=function(){var o=(0,c.Z)((0,r.Z)().mark(function h(){var y;return(0,r.Z)().wrap(function(A){for(;;)switch(A.prev=A.next){case 0:return A.next=2,l.validateFields();case 2:if(y=A.sent,y.DeviceId=t.device.id,!y.id){A.next=9;break}return A.next=7,Zt(y).then(function(E){f.default.destroy(He),E.data?(f.default.success("\u4FEE\u6539\u6210\u529F"),t.onOk()):f.default.error("\u4FEE\u6539\u5931\u8D25"+E.errors)});case 7:A.next=11;break;case 9:return A.next=11,yt(y).then(function(E){f.default.destroy(He),E.data?(f.default.success("\u6DFB\u52A0\u6210\u529F"),t.onOk()):f.default.error("\u6DFB\u52A0\u5931\u8D25"+E.errors)});case 11:case"end":return A.stop()}},h)}));return function(){return o.apply(this,arguments)}}(),x=function(){var o=(0,c.Z)((0,r.Z)().mark(function h(){return(0,r.Z)().wrap(function(K){for(;;)switch(K.prev=K.next){case 0:gt(t.device.deviceTypeKey).then(function(A){X(A.data)});case 1:case"end":return K.stop()}},h)}));return function(){return o.apply(this,arguments)}}(),w=function(){var o=(0,c.Z)((0,r.Z)().mark(function h(){return(0,r.Z)().wrap(function(K){for(;;)switch(K.prev=K.next){case 0:St({DeviceId:t.device.id}).then(function(A){re(A.data)});case 1:case"end":return K.stop()}},h)}));return function(){return o.apply(this,arguments)}}();return(0,m.useEffect)(function(){var o;(o=t.stockMaterial)!==null&&o!==void 0&&o.id&&l.setFieldsValue(t.stockMaterial),x(),w()},[]),(0,n.jsx)(Q.Z,{width:700,destroyOnClose:!0,title:"".concat((u=t.stockMaterial)!==null&&u!==void 0&&u.id?"\u7F16\u8F91"+t.stockMaterial.batching_Name:"\u65B0\u589E"),visible:t.open,onCancel:t.onCancel,onOk:T,footer:[(0,n.jsx)(G.Z,{onClick:t.onCancel,children:"\u53D6\u6D88"},"back"),(0,n.jsx)(ue.Z,{title:"\u70B9\u51FB\u540C\u6B65\u5E93\u5B58\u6216\u91CD\u542F\u8BBE\u5907\u540E\u751F\u6548\uFF01\uFF01\uFF01",onConfirm:T,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",children:(0,n.jsx)(G.Z,{type:"primary",children:"\u786E\u5B9A"},"submit")})],children:(0,n.jsxs)(p.Z,{layout:"vertical",preserve:!1,form:l,children:[(0,n.jsx)(p.Z.Item,{name:"id",hidden:!0,children:(0,n.jsx)(d.Z,{})}),(0,n.jsx)(p.Z.Item,{name:"batching_Id",label:"\u539F\u6599\u540D\u79F0",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u539F\u6599\u540D\u79F0"}],children:(0,n.jsx)(P.Z,{placeholder:"\u8BF7\u9009\u62E9\u539F\u6599\u540D\u79F0",showSearch:!0,optionFilterProp:"children",filterOption:function(h,y){return y.children.toLowerCase().indexOf(h.toLowerCase())>=0},children:J==null?void 0:J.map(function(o,h){return(0,n.jsx)(P.Z.Option,{index:h,value:o.id,children:o.name},o.id)})})}),(0,n.jsx)(p.Z.Item,{name:"batching_Loc",label:"\u5E93\u5B58\u4F4D\u7F6E",rules:[{required:!0}],defaultValue:"0",children:(0,n.jsx)(P.Z,{placeholder:"\u8BF7\u9009\u62E9\u5E93\u5B58\u4F4D\u7F6E",children:M==null?void 0:M.map(function(o,h){return(0,n.jsx)(P.Z.Option,{index:h,value:o.loc,children:o.loc},o.loc)})})}),(0,n.jsx)(p.Z.Item,{name:"batching_Count",label:"\u539F\u6599\u6570\u91CF",rules:[{required:!0}],defaultValue:"0",children:(0,n.jsx)(ae.Z,{style:{width:"100%"},min:0,placeholder:"\u8BF7\u8F93\u5165\u539F\u6599\u6570\u91CF"})})]})})},Et=bt,Bt=function(t){var u=(0,m.useRef)(),e=(0,m.useState)(!1),i=(0,Z.Z)(e,2),l=i[0],k=i[1],H=(0,m.useState)(),M=(0,Z.Z)(H,2),X=M[0],_=M[1],q=[{title:"\u4E3B\u952E",dataIndex:"id",hideInSearch:!0,hideInTable:!0,tip:"\u89C4\u5219\u540D\u79F0\u662F\u552F\u4E00\u7684 key"},{title:"\u7269\u6599",dataIndex:"batching_Name",valueType:"textarea"},{title:"\u6570\u91CF",dataIndex:"batching_Count",valueType:"textarea"},{title:"\u5E93\u4F4D",dataIndex:"batching_Loc"},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(x,w){return[(0,n.jsx)("a",{onClick:function(){_(w),k(!0)},children:"\u4FEE\u6539"},"config"),(0,n.jsx)(ue.Z,{type:"primary",title:"\u786E\u8BA4\u5220\u9664\u5417\uFF1F",okText:"\u662F",cancelText:"\u5426",onConfirm:function(){return re(w)},children:(0,n.jsx)("a",{href:"#",children:"\u5220\u9664"})},"primary")]}}],J=function(){t.onOk()},re=function(){var T=(0,c.Z)((0,r.Z)().mark(function x(w){var o;return(0,r.Z)().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:return y.next=2,mt(w.id);case 2:o=y.sent,o.data?(f.default.success("\u5220\u9664\u6210\u529F"),u.current.reload()):f.default.error("\u5220\u9664\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5");case 4:case"end":return y.stop()}},x)}));return function(w){return T.apply(this,arguments)}}();return(0,m.useEffect)(function(){},[]),(0,n.jsxs)(Q.Z,{width:700,destroyOnClose:!0,title:"\u3010".concat(t.device.deviceName,"\u3011\u5E93\u5B58\u539F\u6599"),visible:t.open,onCancel:function(){return t.onCancel()},onOk:J,maskClosable:!1,children:[(0,n.jsx)(ee.ZP,{actionRef:u,rowKey:"id",search:!1,params:{deviceId:t.device.id},toolBarRender:function(){return[(0,n.jsx)(ue.Z,{type:"primary",title:"\u83B7\u53D6\u5B9E\u65F6\u5E93\u5B58\u4F1A\u8986\u76D6\u672C\u6B21\u8865\u8D27\u6570\u636E",okText:"\u662F",cancelText:"\u5426",onConfirm:(0,c.Z)((0,r.Z)().mark(function x(){var w;return(0,r.Z)().wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return h.next=2,wt(t.device.id);case 2:w=h.sent,w.data?(f.default.success("\u83B7\u53D6\u5B9E\u65F6\u5E93\u5B58\u4F1A\u6210\u529F\uFF01"),u.current.reload()):f.default.error(w.errors||"\u83B7\u53D6\u5B9E\u65F6\u5E93\u5B58\u4F1A\u5931\u8D25\uFF01");case 4:case"end":return h.stop()}},x)})),children:(0,n.jsx)(G.Z,{type:"primary",children:"\u83B7\u53D6\u5B9E\u65F6\u5E93\u5B58"},"primary")},"primary-async-time"),(0,n.jsx)(ue.Z,{type:"primary",title:"\u786E\u8BA4\u540C\u6B65\u5417\uFF1F",okText:"\u662F",cancelText:"\u5426",onConfirm:(0,c.Z)((0,r.Z)().mark(function x(){var w;return(0,r.Z)().wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return h.next=2,kt(t.device.id);case 2:w=h.sent,w.data?(f.default.success("\u540C\u6B65\u6210\u529F\uFF01"),u.current.reload()):f.default.error(w.errors||"\u540C\u6B65\u5931\u8D25\uFF01");case 4:case"end":return h.stop()}},x)})),children:(0,n.jsx)(G.Z,{type:"primary",children:"\u540C\u6B65\u5E93\u5B58"},"primary")},"primary-async"),(0,n.jsxs)(G.Z,{type:"primary",onClick:function(){_(void 0),k(!0)},children:[(0,n.jsx)(ne.Z,{})," \u65B0\u589E\u5E93\u5B58\u539F\u6599"]},"primary")]},request:function(){var T=(0,c.Z)((0,r.Z)().mark(function x(w){var o;return(0,r.Z)().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:return y.next=2,vt(w);case 2:if(o=y.sent,o.statusCode!==200){y.next=5;break}return y.abrupt("return",{data:o.data.data,success:!0,total:o.data.total});case 5:return y.abrupt("return",[]);case 6:case"end":return y.stop()}},x)}));return function(x){return T.apply(this,arguments)}}(),columns:q}),l&&(0,n.jsx)(Et,{device:t.device,stockMaterial:X,open:l,onOk:function(){k(!1),u.current.reload()},onCancel:function(){return k(!1)}})]})},Ot=Bt,me="message",Tt=function(){var a=(0,c.Z)((0,r.Z)().mark(function t(u){return(0,r.Z)().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return i.prev=0,f.default.loading("\u6B63\u5728\u6DFB\u52A0",me),i.next=4,st(JSON.stringify(u)).then(function(l){return f.default.destroy(me),l.data?(f.default.success("\u6DFB\u52A0\u6210\u529F"),!0):(f.default.error("\u6DFB\u52A0\u5931\u8D25"),!1)});case 4:i.next=10;break;case 6:return i.prev=6,i.t0=i.catch(0),f.default.error("\u6DFB\u52A0\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),i.abrupt("return",!1);case 10:case"end":return i.stop()}},t,null,[[0,6]])}));return function(u){return a.apply(this,arguments)}}(),xt=function(){var a=(0,c.Z)((0,r.Z)().mark(function t(u){return(0,r.Z)().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return i.prev=0,f.default.loading("\u6B63\u5728\u4FEE\u6539",me),i.next=4,ze(JSON.stringify(u)).then(function(l){return f.default.destroy(me),l.data?(f.default.success("\u4FEE\u6539\u6210\u529F"),!0):(f.default.success("\u4FEE\u6539\u5931\u8D25"),!1)});case 4:i.next=10;break;case 6:return i.prev=6,i.t0=i.catch(0),f.default.error("\u4FEE\u6539\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),i.abrupt("return",!1);case 10:case"end":return i.stop()}},t,null,[[0,6]])}));return function(u){return a.apply(this,arguments)}}(),At=function(){var a=(0,c.Z)((0,r.Z)().mark(function t(u){var e;return(0,r.Z)().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.prev=0,f.default.loading("\u6B63\u5728\u5220\u9664"),e=[],u.forEach(function(k){e.push(k.id)}),l.next=6,ot(e).then(function(k){return k.data?(f.default.success("\u5220\u9664\u6210\u529F"),!0):(f.default.success("\u5220\u9664\u5931\u8D25"),!1)});case 6:l.next=12;break;case 8:return l.prev=8,l.t0=l.catch(0),f.default.error("\u5220\u9664\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),l.abrupt("return",!1);case 12:case"end":return l.stop()}},t,null,[[0,8]])}));return function(u){return a.apply(this,arguments)}}(),$t=function(){var t=(0,m.useState)(),u=(0,Z.Z)(t,2),e=u[0],i=u[1],l=(0,m.useState)([]),k=(0,Z.Z)(l,2),H=k[0],M=k[1],X=(0,m.useState)([]),_=(0,Z.Z)(X,2),q=_[0],J=_[1],re=(0,m.useState)([]),T=(0,Z.Z)(re,2),x=T[0],w=T[1],o=(0,m.useState)([]),h=(0,Z.Z)(o,2),y=h[0],K=h[1],A=(0,m.useState)([]),E=(0,Z.Z)(A,2),B=E[0],C=E[1],I=(0,m.useState)([]),v=(0,Z.Z)(I,2),L=v[0],$=v[1],z=(0,m.useState)(),Le=(0,Z.Z)(z,2),V=Le[0],oe=Le[1],Pt=(0,m.useState)(!1),Je=(0,Z.Z)(Pt,2),Qe=Je[0],Ye=Je[1];(0,m.useEffect)(function(){var R=function(){dt().then(function(F){var O={},Y=[];F.data.forEach(function(S){Y.push({text:S.name,id:S.id}),O[S.id]={text:S.name}}),M(Y),i(O)})};function W(){(0,Ct.FM)().then(function(D){F(D.data);function F(S){for(var U in S)S[U].type==2||S[U].type==3?S[U].disabled=!1:S[U].disabled=!0,S[U].children&&F(S[U].children)}J(D.data);var O={};Y(D.data);function Y(S){for(var U in S)O[S[U].disabled]=!0,O[S[U].value]={text:S[U].title},S[U].children&&Y(S[U].children)}w(O)})}W(),R();function g(){it("DeviceClientType").then(function(D){var F=D.data,O={};if(D.succeeded){var Y=[];F.forEach(function(S){O[S.code]={text:S.code},Y.push({code:S.code,value:S.code})}),K(O),C(Y)}})}g(),Mt()},[]);var Mt=function(){var R=(0,c.Z)((0,r.Z)().mark(function W(){var g;return(0,r.Z)().wrap(function(F){for(;;)switch(F.prev=F.next){case 0:return F.next=2,ft();case 2:g=F.sent,g.statusCode==200?$(g.data):f.default.error("\u83B7\u53D6\u8BBE\u5907\u7248\u672C\u5931\u8D25");case 4:case"end":return F.stop()}},W)}));return function(){return R.apply(this,arguments)}}(),Rt=(0,m.useState)(!1),Xe=(0,Z.Z)(Rt,2),Wt=Xe[0],ye=Xe[1],de=(0,m.useRef)(),Lt=(0,m.useState)(),_e=(0,Z.Z)(Lt,2),Ve=_e[0],fe=_e[1],Yt=(0,m.useState)([]),qe=(0,Z.Z)(Yt,2),pe=qe[0],et=qe[1],Vt=[{title:"\u4E3B\u952E",dataIndex:"id",hideInSearch:!0,hideInTable:!0,tip:"\u89C4\u5219\u540D\u79F0\u662F\u552F\u4E00\u7684 key"},{title:"\u8BBE\u5907\u540D\u79F0",dataIndex:"deviceName",valueType:"textarea"},{title:"\u8BBE\u5907\u7C7B\u578B",dataIndex:"deviceTypeKey",valueEnum:y,hideInSearch:!0},{title:"\u5F52\u5C5E\u95E8\u5E97",dataIndex:"orgId",search:!1,valueEnum:x},{title:"\u8BBE\u5907\u5206\u7C7B",dataIndex:"deviceTypeId",valueEnum:e},{title:"\u72B6\u6001",dataIndex:"status",valueEnum:{0:{text:"\u6B63\u5E38",status:"Processing"},1:{text:"\u505C\u7528",status:"Success"}},hideInSearch:!0},{title:"\u8BBE\u5907\u901A\u9053\u6570\u91CF",dataIndex:"materialQuantity",valueType:"textarea",search:!1},{title:"\u8BBE\u5907\u552F\u4E00key",dataIndex:"autoKey",search:!1},{title:"\u5F52\u5C5E\u95E8\u5E97\u552F\u4E00key",dataIndex:"orgKey",search:!1},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",fixed:"right",width:400,render:function(W,g){return[(0,n.jsx)("a",{onClick:function(){ye(!0),fe(g)},children:"\u66F4\u65B0"},"update"),(0,n.jsx)("a",{onClick:function(){g.status=g.status==0?1:0,ze(g).then(function(F){F.data&&de.current.reload()})},children:g.status==0?"\u505C\u7528":"\u6B63\u5E38"},"status"),(0,n.jsx)("a",{onClick:function(){lt({id:g.id}).then(function(F){F.data&&de.current.reload()})},children:"\u590D\u5236"},"copy"),(0,n.jsx)("a",{onClick:function(){fe(g),oe(!0)},children:"\u7ED1\u5B9A\u5546\u54C1"},"upload-goods"),(0,n.jsx)("a",{onClick:function(){fe(g),Ye(!0)},children:"\u5E93\u5B58\u539F\u6599"},"add")]}}];return(0,n.jsxs)(ie.ZP,{children:[(0,n.jsx)(ee.ZP,{headerTitle:"\u8BBE\u5907\u4FE1\u606F",actionRef:de,rowKey:"id",search:{labelWidth:120},scroll:{x:2e3},toolBarRender:function(){return[(0,n.jsxs)(G.Z,{type:"primary",onClick:function(){ye(!0)},children:[(0,n.jsx)(ne.Z,{})," \u65B0\u5EFA"]},"primary"),(0,n.jsx)(G.Z,{onClick:(0,c.Z)((0,r.Z)().mark(function W(){var g,D;return(0,r.Z)().wrap(function(O){for(;;)switch(O.prev=O.next){case 0:return O.next=2,At(pe);case 2:et([]),(g=de.current)===null||g===void 0||(D=g.reloadAndRest)===null||D===void 0||D.call(g);case 4:case"end":return O.stop()}},W)})),children:"\u5220\u9664"})]},request:function(){var R=(0,c.Z)((0,r.Z)().mark(function W(g){var D,F;return(0,r.Z)().wrap(function(Y){for(;;)switch(Y.prev=Y.next){case 0:return D=[],F=0,Y.next=4,ut(g).then(function(S){D=S.data.data,F=S.data.total});case 4:return Y.abrupt("return",{data:D,success:!0,total:F});case 5:case"end":return Y.stop()}},W)}));return function(W){return R.apply(this,arguments)}}(),columns:Vt,rowSelection:{onChange:function(W,g){et(g)}}}),(pe==null?void 0:pe.length)>0&&(0,n.jsx)(Ze.Z,{extra:(0,n.jsxs)("div",{children:["\u5DF2\u9009\u62E9"," ",(0,n.jsx)("a",{style:{fontWeight:600},children:pe.length})," ","\u9879 \xA0\xA0"]})}),(0,n.jsx)(at,{storeType:H,OrgData:q,dicData:B,onFinish:function(){var R=(0,c.Z)((0,r.Z)().mark(function W(g){var D;return(0,r.Z)().wrap(function(O){for(;;)switch(O.prev=O.next){case 0:D=!1,g.id?D=xt(g):D=Tt(g),D&&(ye(!1),fe(void 0),de.current.reload());case 3:case"end":return O.stop()}},W)}));return function(W){return R.apply(this,arguments)}}(),onCancel:function(){ye(!1),fe(void 0)},createModalVisible:Wt,deviceVersions:L,values:Ve||{}}),V&&(0,n.jsx)(It,{open:V,device:Ve,onOk:function(){return oe(!1)},onCancel:function(){return oe(!1)}}),Qe&&(0,n.jsx)(Ot,{open:Qe,device:Ve,onOk:function(){return Ye(!1)},onCancel:function(){return Ye(!1)}})]})},Gt=$t},3408:function(tt,he,s){"use strict";s.d(he,{lM:function(){return Ke},IH:function(){return c},mm:function(){return Ze},eP:function(){return Ue},FM:function(){return Ne}});var N=s(39428),G=s(11849),Z=s(3182),r=s(48971);function Ke(j,p){return f.apply(this,arguments)}function f(){return f=(0,Z.Z)((0,N.Z)().mark(function j(p,te){return(0,N.Z)().wrap(function(ce){for(;;)switch(ce.prev=ce.next){case 0:return ce.abrupt("return",(0,r.WY)("/kitchen/api/sysOrg\u200B/page",{method:"GET",params:(0,G.Z)({},p)}));case 1:case"end":return ce.stop()}},j)})),f.apply(this,arguments)}function c(j){return ne.apply(this,arguments)}function ne(){return ne=(0,Z.Z)((0,N.Z)().mark(function j(p){return(0,N.Z)().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return d.abrupt("return",(0,r.WY)("/kitchen/api/sysOrg/add",{method:"POST",data:(0,G.Z)({},p)}));case 1:case"end":return d.stop()}},j)})),ne.apply(this,arguments)}function m(j){return ie.apply(this,arguments)}function ie(){return ie=_asyncToGenerator(_regeneratorRuntime().mark(function j(p){return _regeneratorRuntime().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return d.abrupt("return",request("\u200B/kitchen/api\u200B/sysOrg\u200B/list",{method:"POST",data:_objectSpread({},p)}));case 1:case"end":return d.stop()}},j)})),ie.apply(this,arguments)}function Ze(j){return ee.apply(this,arguments)}function ee(){return ee=(0,Z.Z)((0,N.Z)().mark(function j(p){return(0,N.Z)().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return d.abrupt("return",(0,r.WY)("\u200B/kitchen/api\u200B/sysOrg\u200B/delete",{method:"POST",data:(0,G.Z)({},p)}));case 1:case"end":return d.stop()}},j)})),ee.apply(this,arguments)}function Ue(j){return Q.apply(this,arguments)}function Q(){return Q=(0,Z.Z)((0,N.Z)().mark(function j(p){return(0,N.Z)().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return d.abrupt("return",(0,r.WY)("\u200B/kitchen/api\u200B/sysOrg\u200B/edit",{method:"POST",data:(0,G.Z)({},p)}));case 1:case"end":return d.stop()}},j)})),Q.apply(this,arguments)}function rt(j){return ae.apply(this,arguments)}function ae(){return ae=_asyncToGenerator(_regeneratorRuntime().mark(function j(p){return _regeneratorRuntime().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return d.abrupt("return",request("/kitchen\u200B/api\u200B/sysOrg\u200B/detail",{method:"POST",data:_objectSpread({},p)}));case 1:case"end":return d.stop()}},j)})),ae.apply(this,arguments)}function Ne(j){return se.apply(this,arguments)}function se(){return se=(0,Z.Z)((0,N.Z)().mark(function j(p){return(0,N.Z)().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return d.abrupt("return",(0,r.WY)("\u200B/kitchen/api\u200B/sysOrg\u200B/tree",{data:(0,G.Z)({},p)}));case 1:case"end":return d.stop()}},j)})),se.apply(this,arguments)}}}]); diff --git a/dist/p__erp__bill__receivingNote.5f83b47a.async.js b/dist/p__erp__bill__receivingNote.488abe37.async.js similarity index 63% rename from dist/p__erp__bill__receivingNote.5f83b47a.async.js rename to dist/p__erp__bill__receivingNote.488abe37.async.js index bd9949c..8ad5687 100644 --- a/dist/p__erp__bill__receivingNote.5f83b47a.async.js +++ b/dist/p__erp__bill__receivingNote.488abe37.async.js @@ -1 +1 @@ -(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[3703,1322],{14206:function(Oe,X,u){"use strict";u.r(X),u.d(X,{default:function(){return Qe}});var P=u(57663),L=u(71577),M=u(62350),K=u(24565),x=u(2824),i=u(39428),v=u(11849),_=u(34792),$=u(48086),m=u(3182),q=u(49101),g=u(67294),se=u(78009),N=u(16894),De=u(71194),V=u(50146),we=u(49111),Q=u(19650),y=u(77883),S=u(85986),A=u(93224),c=u(62999),Y=u(54680),He=u(43358),B=u(34041),ze=u(9715),w=u(55843),Je=u(47673),H=u(4107),Te=u(59465),U=u(48971);function Fe(d,s){return le.apply(this,arguments)}function le(){return le=(0,m.Z)((0,i.Z)().mark(function d(s,k){return(0,i.Z)().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,U.WY)("/kitchen/api/receivingNote/getPage",{method:"POST",data:s}));case 1:case"end":return a.stop()}},d)})),le.apply(this,arguments)}function Xe(d,s){return oe.apply(this,arguments)}function oe(){return oe=_asyncToGenerator(_regeneratorRuntime().mark(function d(s,k){return _regeneratorRuntime().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:debugger;return a.abrupt("return",request("/kitchen/api/receivingNote/getEntryPage",{method:"POST",params:s}));case 2:case"end":return a.stop()}},d)})),oe.apply(this,arguments)}function je(d,s){return ce.apply(this,arguments)}function ce(){return ce=(0,m.Z)((0,i.Z)().mark(function d(s,k){return(0,i.Z)().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,U.WY)("/kitchen/api/receivingNote/getEntryPage?id=".concat(s),{method:"POST"}));case 1:case"end":return a.stop()}},d)})),ce.apply(this,arguments)}function Le(d,s){return de.apply(this,arguments)}function de(){return de=(0,m.Z)((0,i.Z)().mark(function d(s,k){return(0,i.Z)().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,U.WY)("/kitchen/api/receivingNote/approved",{method:"POST",params:s}));case 1:case"end":return a.stop()}},d)})),de.apply(this,arguments)}function $e(d,s){return pe.apply(this,arguments)}function pe(){return pe=(0,m.Z)((0,i.Z)().mark(function d(s,k){return(0,i.Z)().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,U.WY)("/kitchen/api/receivingNote/add",{method:"POST",data:s}));case 1:case"end":return a.stop()}},d)})),pe.apply(this,arguments)}function Ae(d,s){return he.apply(this,arguments)}function he(){return he=(0,m.Z)((0,i.Z)().mark(function d(s,k){return(0,i.Z)().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,U.WY)("/kitchen/api/product-type/type-list",{method:"GET",params:(0,v.Z)({},s)}));case 1:case"end":return a.stop()}},d)})),he.apply(this,arguments)}function Be(d,s){return fe.apply(this,arguments)}function fe(){return fe=(0,m.Z)((0,i.Z)().mark(function d(s,k){return(0,i.Z)().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,U.WY)("/kitchen/api/unit/uint-list",{method:"GET",params:(0,v.Z)({},s)}));case 1:case"end":return a.stop()}},d)})),fe.apply(this,arguments)}function Ue(d){return ve.apply(this,arguments)}function ve(){return ve=(0,m.Z)((0,i.Z)().mark(function d(s){return(0,i.Z)().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return f.abrupt("return",(0,U.WY)("/kitchen/api/Product/GetPage",{method:"POST",data:s}));case 1:case"end":return f.stop()}},d)})),ve.apply(this,arguments)}function We(d){return me.apply(this,arguments)}function me(){return me=(0,m.Z)((0,i.Z)().mark(function d(s){return(0,i.Z)().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return f.abrupt("return",(0,U.WY)("/kitchen/api/PurchaseOrder/delivery-entry-list/".concat(s),{method:"get"}));case 1:case"end":return f.stop()}},d)})),me.apply(this,arguments)}var e=u(85893),Re=["key","name","fieldKey"],Ke=H.Z.Search,Me=function(s){var k=w.Z.useForm(),f=(0,x.Z)(k,1),a=f[0],b=B.Z.Option,z=B.Z.OptGroup,ke=(0,g.useState)([]),ee=(0,x.Z)(ke,2),W=ee[0],ye=ee[1],te=(0,g.useState)([]),J=(0,x.Z)(te,2),G=J[0],Ze=J[1],re=(0,g.useState)([]),ne=(0,x.Z)(re,2),Ce=ne[0],xe=ne[1],ae=(0,g.useState)([]),ue=(0,x.Z)(ae,2),be=ue[0],Ee=ue[1];(0,g.useEffect)(function(){var T=function(){var F=(0,m.Z)((0,i.Z)().mark(function O(I){var D,j;return(0,i.Z)().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.next=2,Ue({current:1,pageSize:1e7});case 2:D=l.sent.data,D.data&&(j=[],D.data.forEach(function(t){j.push({key:t.code,name:t.name,id:t.id,packUnit:t.packUnit,stockUint:t.stockUint,proportion:t.proportion,code:t.code,productId:t.id})}),Ze(j),ye(j));case 4:case"end":return l.stop()}},O)}));return function(I){return F.apply(this,arguments)}}();T()},[]);var ge={labelCol:{},wrapperCol:{}},Ie=function(F){},Se=function(){var T=(0,m.Z)((0,i.Z)().mark(function F(O){var I,D,j,Z,l,t;return(0,i.Z)().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return I=[],n.next=3,We(O);case 3:if(D=n.sent,D.data){for(j=[],I=D.data.deliveryEntryList,Z=function(r){var p,R,C,E;t=W.find(function(Pe){if(Pe.key==I[r].barcode)return Pe}),j[r]=(0,v.Z)((0,v.Z)({},j[r]),{},{code:I[r].barcode,stockUint:(p=t)===null||p===void 0?void 0:p.stockUint,packUnit:(R=t)===null||R===void 0?void 0:R.packUnit,proportion:(C=t)===null||C===void 0?void 0:C.proportion,productId:(E=t)===null||E===void 0?void 0:E.productId,packQty:I[r].deliveryQty,stockQty:I[r].qty})},l=0;l0&&r.data.forEach(function(E){p.push({stockuint:E.id,text:E.name,value:E.id,label:E.name})}),Ce(p);case 6:case"end":return C.stop()}},n)}));return function(h){return o.apply(this,arguments)}}(),l=function(){var o=(0,m.Z)((0,i.Z)().mark(function n(h){var r,p;return(0,i.Z)().wrap(function(C){for(;;)switch(C.prev=C.next){case 0:return C.next=2,Ae();case 2:r=C.sent,p=[],r.data.length>0&&r.data.forEach(function(E){p.push({typeid:E.id,text:E.name,value:E.id,label:E.name})}),be(p);case 6:case"end":return C.stop()}},n)}));return function(h){return o.apply(this,arguments)}}();function t(){(0,Ge.FM)().then(function(o){Se(o.data);var n={};h(o.data);function h(r){for(var p in r)n[r[p].value]={text:r[p].title},r[p].children&&h(r[p].children)}O(n)})}t(),Z(),l()},[]);var I=function(){var Z=(0,m.Z)((0,i.Z)().mark(function l(t){var o,n;return(0,i.Z)().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,je(t);case 2:o=r.sent;debugger;n=J,n.sub=o.data,G(n);case 7:case"end":return r.stop()}},l)}));return function(t){return Z.apply(this,arguments)}}(),D=function(){var Z=(0,m.Z)((0,i.Z)().mark(function l(t){return(0,i.Z)().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:case"end":return n.stop()}},l)}));return function(t){return Z.apply(this,arguments)}}(),j=[{title:"\u4E3B\u952E",dataIndex:"id",tip:"\u89C4\u5219\u540D\u79F0\u662F\u552F\u4E00\u7684 key",hideInSearch:!0,hideInTable:!0,render:function(l,t){return(0,e.jsx)("a",{onClick:function(){G(t),ee(!0)},children:l})}},{title:"\u5355\u636E\u53F7",dataIndex:"sheetId",hideInForm:!0},{title:"\u6536\u8D27\u673A\u6784",dataIndex:"orgId",valueEnum:F},{title:"\u5236\u5355\u4EBA",dataIndex:"createByName"},{title:"\u5BA1\u6838\u4EBA",dataIndex:"approveByName"},{title:"\u5236\u5355\u65E5\u671F",sorter:!0,dataIndex:"operDate",valueType:"date"},{title:"\u5BA1\u6838\u65E5\u671F",sorter:!0,dataIndex:"approveAt",valueType:"date"},{title:"\u5907\u6CE8",dataIndex:"remark"},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(l,t){return[t.isApprove===0&&(0,e.jsx)("a",{type:"primary",onClick:(0,m.Z)((0,i.Z)().mark(function o(){var n,h;return(0,i.Z)().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:return p.next=2,je(t.id);case 2:h=p.sent,h.data.data.length>0&&(t.sub=h.data.data),G(t),t==null||(n=t.startEditable)===null||n===void 0||n.call(t,t.id),a(!0);case 7:case"end":return p.stop()}},o)})),children:"\u4FEE\u6539"},"config"),t.isApprove===0&&(0,e.jsx)("a",{type:"primary",onClick:function(){$.default.loading("\u6B63\u5728\u5BA1\u6838\uFF01");try{Le({Id:t.id}),$.default.success("\u5BA1\u6838\u5B8C\u6210\uFF01")}catch(n){console.log(n),$.default.error("\u6B63\u5728\u5BA1\u6838\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01")}W.current.reload()},children:"\u5BA1\u6838"},"config"),t.isApprove===0&&(0,e.jsx)(K.Z,{type:"primary",title:"\u786E\u8BA4\u5220\u9664\u5417\uFF1F",okText:"\u662F",cancelText:"\u5426",onConfirm:function(){D(t.id)},onCancel:function(){},children:(0,e.jsx)("a",{href:"#",children:"\u5220\u9664"})},"primary")]}}];return(0,e.jsxs)(se.ZP,{children:[(0,e.jsx)(N.ZP,{headerTitle:"\u6536\u8D27\u5355",actionRef:W,rowKey:"id",search:{labelWidth:120},toolBarRender:function(){return[(0,e.jsxs)(L.Z,{type:"primary",onClick:function(){G({}),a(!0)},children:[(0,e.jsx)(q.Z,{})," \u65B0\u589E"]},"create")]},request:function(){var Z=(0,m.Z)((0,i.Z)().mark(function l(t){var o,n;return(0,i.Z)().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return o=[],n=0,r.next=4,Fe(t).then(function(p){o=p.data.data,n=p.data.total});case 4:return r.abrupt("return",{data:o,success:!0,total:n});case 5:case"end":return r.stop()}},l)}));return function(l){return Z.apply(this,arguments)}}(),columns:j}),(0,e.jsx)(Ye,{onFinish:function(){var Z=(0,m.Z)((0,i.Z)().mark(function l(t){var o;return(0,i.Z)().wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return o=!1,h.next=3,Ne(t);case 3:o=h.sent,o&&(a(!1),W.current&&W.current.reload());case 5:case"end":return h.stop()}},l)}));return function(l){return Z.apply(this,arguments)}}(),onCancel:function(){G(void 0),a(!1)},createModalVisible:f,values:J||{},typeList:ue,uintList:ne,OrgData:Ie})]})},Qe=Ve},3408:function(Oe,X,u){"use strict";u.d(X,{lM:function(){return x},IH:function(){return v},mm:function(){return q},eP:function(){return se},FM:function(){return we}});var P=u(39428),L=u(11849),M=u(3182),K=u(48971);function x(y,S){return i.apply(this,arguments)}function i(){return i=(0,M.Z)((0,P.Z)().mark(function y(S,A){return(0,P.Z)().wrap(function(Y){for(;;)switch(Y.prev=Y.next){case 0:return Y.abrupt("return",(0,K.WY)("/kitchen/api/sysOrg\u200B/page",{method:"GET",params:(0,L.Z)({},S)}));case 1:case"end":return Y.stop()}},y)})),i.apply(this,arguments)}function v(y){return _.apply(this,arguments)}function _(){return _=(0,M.Z)((0,P.Z)().mark(function y(S){return(0,P.Z)().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.abrupt("return",(0,K.WY)("/kitchen/api/sysOrg/add",{method:"POST",data:(0,L.Z)({},S)}));case 1:case"end":return c.stop()}},y)})),_.apply(this,arguments)}function $(y){return m.apply(this,arguments)}function m(){return m=_asyncToGenerator(_regeneratorRuntime().mark(function y(S){return _regeneratorRuntime().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.abrupt("return",request("\u200B/kitchen/api\u200B/sysOrg\u200B/list",{method:"POST",data:_objectSpread({},S)}));case 1:case"end":return c.stop()}},y)})),m.apply(this,arguments)}function q(y){return g.apply(this,arguments)}function g(){return g=(0,M.Z)((0,P.Z)().mark(function y(S){return(0,P.Z)().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.abrupt("return",(0,K.WY)("\u200B/kitchen/api\u200B/sysOrg\u200B/delete",{method:"POST",data:(0,L.Z)({},S)}));case 1:case"end":return c.stop()}},y)})),g.apply(this,arguments)}function se(y){return N.apply(this,arguments)}function N(){return N=(0,M.Z)((0,P.Z)().mark(function y(S){return(0,P.Z)().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.abrupt("return",(0,K.WY)("\u200B/kitchen/api\u200B/sysOrg\u200B/edit",{method:"POST",data:(0,L.Z)({},S)}));case 1:case"end":return c.stop()}},y)})),N.apply(this,arguments)}function De(y){return V.apply(this,arguments)}function V(){return V=_asyncToGenerator(_regeneratorRuntime().mark(function y(S){return _regeneratorRuntime().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.abrupt("return",request("/kitchen\u200B/api\u200B/sysOrg\u200B/detail",{method:"POST",data:_objectSpread({},S)}));case 1:case"end":return c.stop()}},y)})),V.apply(this,arguments)}function we(y){return Q.apply(this,arguments)}function Q(){return Q=(0,M.Z)((0,P.Z)().mark(function y(S){return(0,P.Z)().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.abrupt("return",(0,K.WY)("\u200B/kitchen/api\u200B/sysOrg\u200B/tree",{data:(0,L.Z)({},S)}));case 1:case"end":return c.stop()}},y)})),Q.apply(this,arguments)}}}]); +(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[3703,1322],{14206:function(De,X,u){"use strict";u.r(X),u.d(X,{default:function(){return Qe}});var O=u(57663),L=u(71577),M=u(62350),K=u(24565),x=u(2824),i=u(39428),v=u(11849),_=u(34792),U=u(48086),m=u(3182),q=u(49101),g=u(67294),se=u(78009),N=u(16894),Pe=u(71194),V=u(50146),ke=u(49111),Q=u(19650),y=u(77883),S=u(85986),$=u(93224),c=u(62999),Y=u(54680),He=u(43358),A=u(34041),ze=u(9715),k=u(55843),Je=u(47673),H=u(4107),Te=u(59465),B=u(48971);function Fe(d,s){return le.apply(this,arguments)}function le(){return le=(0,m.Z)((0,i.Z)().mark(function d(s,j){return(0,i.Z)().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,B.WY)("/kitchen/api/receivingNote/getPage",{method:"POST",data:s}));case 1:case"end":return a.stop()}},d)})),le.apply(this,arguments)}function Xe(d,s){return oe.apply(this,arguments)}function oe(){return oe=_asyncToGenerator(_regeneratorRuntime().mark(function d(s,j){return _regeneratorRuntime().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:debugger;return a.abrupt("return",request("/kitchen/api/receivingNote/getEntryPage",{method:"POST",params:s}));case 2:case"end":return a.stop()}},d)})),oe.apply(this,arguments)}function we(d,s){return ce.apply(this,arguments)}function ce(){return ce=(0,m.Z)((0,i.Z)().mark(function d(s,j){return(0,i.Z)().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,B.WY)("/kitchen/api/receivingNote/getEntryPage?id=".concat(s),{method:"POST"}));case 1:case"end":return a.stop()}},d)})),ce.apply(this,arguments)}function Le(d,s){return de.apply(this,arguments)}function de(){return de=(0,m.Z)((0,i.Z)().mark(function d(s,j){return(0,i.Z)().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,B.WY)("/kitchen/api/receivingNote/approved",{method:"POST",params:s}));case 1:case"end":return a.stop()}},d)})),de.apply(this,arguments)}function Ue(d,s){return pe.apply(this,arguments)}function pe(){return pe=(0,m.Z)((0,i.Z)().mark(function d(s,j){return(0,i.Z)().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,B.WY)("/kitchen/api/receivingNote/add",{method:"POST",data:s}));case 1:case"end":return a.stop()}},d)})),pe.apply(this,arguments)}function $e(d,s){return he.apply(this,arguments)}function he(){return he=(0,m.Z)((0,i.Z)().mark(function d(s,j){return(0,i.Z)().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,B.WY)("/kitchen/api/product-type/type-list",{method:"GET",params:(0,v.Z)({},s)}));case 1:case"end":return a.stop()}},d)})),he.apply(this,arguments)}function Ae(d,s){return fe.apply(this,arguments)}function fe(){return fe=(0,m.Z)((0,i.Z)().mark(function d(s,j){return(0,i.Z)().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,B.WY)("/kitchen/api/unit/uint-list",{method:"GET",params:(0,v.Z)({},s)}));case 1:case"end":return a.stop()}},d)})),fe.apply(this,arguments)}function Be(d){return ve.apply(this,arguments)}function ve(){return ve=(0,m.Z)((0,i.Z)().mark(function d(s){return(0,i.Z)().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return f.abrupt("return",(0,B.WY)("/kitchen/api/Product/GetPage",{method:"POST",data:s}));case 1:case"end":return f.stop()}},d)})),ve.apply(this,arguments)}function We(d){return me.apply(this,arguments)}function me(){return me=(0,m.Z)((0,i.Z)().mark(function d(s){return(0,i.Z)().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return f.abrupt("return",(0,B.WY)("/kitchen/api/PurchaseOrder/delivery-entry-list/".concat(s),{method:"get"}));case 1:case"end":return f.stop()}},d)})),me.apply(this,arguments)}var e=u(85893),Re=["key","name","fieldKey"],Ke=H.Z.Search,Me=function(s){var j=k.Z.useForm(),f=(0,x.Z)(j,1),a=f[0],b=A.Z.Option,z=A.Z.OptGroup,je=(0,g.useState)([]),ee=(0,x.Z)(je,2),W=ee[0],ye=ee[1],te=(0,g.useState)([]),J=(0,x.Z)(te,2),G=J[0],Ze=J[1],re=(0,g.useState)([]),ne=(0,x.Z)(re,2),Ce=ne[0],xe=ne[1],ae=(0,g.useState)([]),ue=(0,x.Z)(ae,2),be=ue[0],Ee=ue[1];(0,g.useEffect)(function(){var T=function(){var F=(0,m.Z)((0,i.Z)().mark(function D(I){var P,w;return(0,i.Z)().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.next=2,Be({current:1,pageSize:1e7});case 2:P=l.sent.data,P.data&&(w=[],P.data.forEach(function(t){w.push({key:t.code,name:t.name,id:t.id,packUnit:t.packUnit,stockUint:t.stockUint,proportion:t.proportion,code:t.code,productId:t.id})}),Ze(w),ye(w));case 4:case"end":return l.stop()}},D)}));return function(I){return F.apply(this,arguments)}}();T()},[]);var ge={labelCol:{},wrapperCol:{}},Ie=function(F){},Se=function(){var T=(0,m.Z)((0,i.Z)().mark(function F(D){var I,P,w,Z,l,t;return(0,i.Z)().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return I=[],n.next=3,We(D);case 3:if(P=n.sent,P.data){for(w=[],I=P.data.deliveryEntryList,Z=function(r){var p,R,C,E;t=W.find(function(Oe){if(Oe.key==I[r].barcode)return Oe}),w[r]=(0,v.Z)((0,v.Z)({},w[r]),{},{code:I[r].barcode,stockUint:(p=t)===null||p===void 0?void 0:p.stockUint,packUnit:(R=t)===null||R===void 0?void 0:R.packUnit,proportion:(C=t)===null||C===void 0?void 0:C.proportion,productId:(E=t)===null||E===void 0?void 0:E.productId,packQty:I[r].deliveryQty,stockQty:I[r].qty})},l=0;l0&&r.data.forEach(function(E){p.push({stockuint:E.id,text:E.name,value:E.id,label:E.name})}),Ce(p);case 6:case"end":return C.stop()}},n)}));return function(h){return o.apply(this,arguments)}}(),l=function(){var o=(0,m.Z)((0,i.Z)().mark(function n(h){var r,p;return(0,i.Z)().wrap(function(C){for(;;)switch(C.prev=C.next){case 0:return C.next=2,$e();case 2:r=C.sent,p=[],r.data.length>0&&r.data.forEach(function(E){p.push({typeid:E.id,text:E.name,value:E.id,label:E.name})}),be(p);case 6:case"end":return C.stop()}},n)}));return function(h){return o.apply(this,arguments)}}();function t(){(0,Ge.FM)().then(function(o){Se(o.data);var n={};h(o.data);function h(r){for(var p in r)n[r[p].value]={text:r[p].title},r[p].children&&h(r[p].children)}D(n)})}t(),Z(),l()},[]);var I=function(){var Z=(0,m.Z)((0,i.Z)().mark(function l(t){var o,n;return(0,i.Z)().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,we(t);case 2:o=r.sent;debugger;n=J,n.sub=o.data,G(n);case 7:case"end":return r.stop()}},l)}));return function(t){return Z.apply(this,arguments)}}(),P=function(){var Z=(0,m.Z)((0,i.Z)().mark(function l(t){return(0,i.Z)().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:case"end":return n.stop()}},l)}));return function(t){return Z.apply(this,arguments)}}(),w=[{title:"\u4E3B\u952E",dataIndex:"id",tip:"\u89C4\u5219\u540D\u79F0\u662F\u552F\u4E00\u7684 key",hideInSearch:!0,hideInTable:!0,render:function(l,t){return(0,e.jsx)("a",{onClick:function(){G(t),ee(!0)},children:l})}},{title:"\u5355\u636E\u53F7",dataIndex:"sheetId",hideInForm:!0},{title:"\u6536\u8D27\u673A\u6784",dataIndex:"orgId",valueEnum:F},{title:"\u5236\u5355\u4EBA",dataIndex:"createByName"},{title:"\u5BA1\u6838\u4EBA",dataIndex:"approveByName"},{title:"\u5236\u5355\u65E5\u671F",sorter:!0,dataIndex:"operDate",valueType:"date"},{title:"\u5BA1\u6838\u65E5\u671F",sorter:!0,dataIndex:"approveAt",valueType:"date"},{title:"\u5907\u6CE8",dataIndex:"remark"},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(l,t){return[t.isApprove===0&&(0,e.jsx)("a",{type:"primary",onClick:(0,m.Z)((0,i.Z)().mark(function o(){var n,h;return(0,i.Z)().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:return p.next=2,we(t.id);case 2:h=p.sent,h.data.data.length>0&&(t.sub=h.data.data),G(t),t==null||(n=t.startEditable)===null||n===void 0||n.call(t,t.id),a(!0);case 7:case"end":return p.stop()}},o)})),children:"\u4FEE\u6539"},"config"),t.isApprove===0&&(0,e.jsx)("a",{type:"primary",onClick:function(){U.default.loading("\u6B63\u5728\u5BA1\u6838\uFF01");try{Le({Id:t.id}),U.default.success("\u5BA1\u6838\u5B8C\u6210\uFF01")}catch(n){console.log(n),U.default.error("\u6B63\u5728\u5BA1\u6838\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01")}W.current.reload()},children:"\u5BA1\u6838"},"config"),t.isApprove===0&&(0,e.jsx)(K.Z,{type:"primary",title:"\u786E\u8BA4\u5220\u9664\u5417\uFF1F",okText:"\u662F",cancelText:"\u5426",onConfirm:function(){P(t.id)},onCancel:function(){},children:(0,e.jsx)("a",{href:"#",children:"\u5220\u9664"})},"primary")]}}];return(0,e.jsxs)(se.ZP,{children:[(0,e.jsx)(N.ZP,{headerTitle:"\u6536\u8D27\u5355",actionRef:W,rowKey:"id",search:{labelWidth:120},toolBarRender:function(){return[(0,e.jsxs)(L.Z,{type:"primary",onClick:function(){G({}),a(!0)},children:[(0,e.jsx)(q.Z,{})," \u65B0\u589E"]},"create")]},request:function(){var Z=(0,m.Z)((0,i.Z)().mark(function l(t){var o,n;return(0,i.Z)().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return o=[],n=0,r.next=4,Fe(t).then(function(p){o=p.data.data,n=p.data.total});case 4:return r.abrupt("return",{data:o,success:!0,total:n});case 5:case"end":return r.stop()}},l)}));return function(l){return Z.apply(this,arguments)}}(),columns:w}),(0,e.jsx)(Ye,{onFinish:function(){var Z=(0,m.Z)((0,i.Z)().mark(function l(t){var o;return(0,i.Z)().wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return o=!1,h.next=3,Ne(t);case 3:o=h.sent,o&&(a(!1),W.current&&W.current.reload());case 5:case"end":return h.stop()}},l)}));return function(l){return Z.apply(this,arguments)}}(),onCancel:function(){G(void 0),a(!1)},createModalVisible:f,values:J||{},typeList:ue,uintList:ne,OrgData:Ie})]})},Qe=Ve},3408:function(De,X,u){"use strict";u.d(X,{lM:function(){return x},IH:function(){return v},mm:function(){return q},eP:function(){return se},FM:function(){return ke}});var O=u(39428),L=u(11849),M=u(3182),K=u(48971);function x(y,S){return i.apply(this,arguments)}function i(){return i=(0,M.Z)((0,O.Z)().mark(function y(S,$){return(0,O.Z)().wrap(function(Y){for(;;)switch(Y.prev=Y.next){case 0:return Y.abrupt("return",(0,K.WY)("/kitchen/api/sysOrg\u200B/page",{method:"GET",params:(0,L.Z)({},S)}));case 1:case"end":return Y.stop()}},y)})),i.apply(this,arguments)}function v(y){return _.apply(this,arguments)}function _(){return _=(0,M.Z)((0,O.Z)().mark(function y(S){return(0,O.Z)().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.abrupt("return",(0,K.WY)("/kitchen/api/sysOrg/add",{method:"POST",data:(0,L.Z)({},S)}));case 1:case"end":return c.stop()}},y)})),_.apply(this,arguments)}function U(y){return m.apply(this,arguments)}function m(){return m=_asyncToGenerator(_regeneratorRuntime().mark(function y(S){return _regeneratorRuntime().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.abrupt("return",request("\u200B/kitchen/api\u200B/sysOrg\u200B/list",{method:"POST",data:_objectSpread({},S)}));case 1:case"end":return c.stop()}},y)})),m.apply(this,arguments)}function q(y){return g.apply(this,arguments)}function g(){return g=(0,M.Z)((0,O.Z)().mark(function y(S){return(0,O.Z)().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.abrupt("return",(0,K.WY)("\u200B/kitchen/api\u200B/sysOrg\u200B/delete",{method:"POST",data:(0,L.Z)({},S)}));case 1:case"end":return c.stop()}},y)})),g.apply(this,arguments)}function se(y){return N.apply(this,arguments)}function N(){return N=(0,M.Z)((0,O.Z)().mark(function y(S){return(0,O.Z)().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.abrupt("return",(0,K.WY)("\u200B/kitchen/api\u200B/sysOrg\u200B/edit",{method:"POST",data:(0,L.Z)({},S)}));case 1:case"end":return c.stop()}},y)})),N.apply(this,arguments)}function Pe(y){return V.apply(this,arguments)}function V(){return V=_asyncToGenerator(_regeneratorRuntime().mark(function y(S){return _regeneratorRuntime().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.abrupt("return",request("/kitchen\u200B/api\u200B/sysOrg\u200B/detail",{method:"POST",data:_objectSpread({},S)}));case 1:case"end":return c.stop()}},y)})),V.apply(this,arguments)}function ke(y){return Q.apply(this,arguments)}function Q(){return Q=(0,M.Z)((0,O.Z)().mark(function y(S){return(0,O.Z)().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.abrupt("return",(0,K.WY)("\u200B/kitchen/api\u200B/sysOrg\u200B/tree",{data:(0,L.Z)({},S)}));case 1:case"end":return c.stop()}},y)})),Q.apply(this,arguments)}}}]); diff --git a/dist/p__erp__stock.e7ae1c4a.async.js b/dist/p__erp__stock.a4420aff.async.js similarity index 59% rename from dist/p__erp__stock.e7ae1c4a.async.js rename to dist/p__erp__stock.a4420aff.async.js index 3b74faa..70b4985 100644 --- a/dist/p__erp__stock.e7ae1c4a.async.js +++ b/dist/p__erp__stock.a4420aff.async.js @@ -1 +1 @@ -(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[212,1322],{4910:function(K,I,s){"use strict";s.r(I),s.d(I,{default:function(){return b}});var n=s(39428),o=s(3182),c=s(2824),i=s(67294),k=s(78009),O=s(16894),E=s(11849),g=s(48971);function D(t,r){return v.apply(this,arguments)}function v(){return v=(0,o.Z)((0,n.Z)().mark(function t(r,p){return(0,n.Z)().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,g.WY)("/kitchen/api/stockInfo/getPage",{method:"POST",data:r}));case 1:case"end":return a.stop()}},t)})),v.apply(this,arguments)}function L(t,r){return _.apply(this,arguments)}function _(){return _=(0,o.Z)((0,n.Z)().mark(function t(r,p){return(0,n.Z)().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,g.WY)("/kitchen/api/product-type/type-list",{method:"GET",params:(0,E.Z)({},r)}));case 1:case"end":return a.stop()}},t)})),_.apply(this,arguments)}function R(t,r){return y.apply(this,arguments)}function y(){return y=(0,o.Z)((0,n.Z)().mark(function t(r,p){return(0,n.Z)().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,g.WY)("/kitchen/api/unit/uint-list",{method:"GET",params:(0,E.Z)({},r)}));case 1:case"end":return a.stop()}},t)})),y.apply(this,arguments)}var W=s(3408),Z=s(85893),C=function(){var r=(0,i.useState)(!1),p=(0,c.Z)(r,2),e=p[0],a=p[1],Y=(0,i.useState)(!1),j=(0,c.Z)(Y,2),ae=j[0],G=j[1],x=(0,i.useRef)(),N=(0,i.useState)(),B=(0,c.Z)(N,2),ue=B[0],F=B[1],V=(0,i.useState)(),A=(0,c.Z)(V,2),se=A[0],H=A[1],Q=(0,i.useState)(),M=(0,c.Z)(Q,2),ie=M[0],z=M[1],J=(0,i.useState)([]),$=(0,c.Z)(J,2),le=$[0],X=$[1],q=(0,i.useState)([]),U=(0,c.Z)(q,2),ee=U[0],te=U[1];(0,i.useEffect)(function(){var T=function(){var h=(0,o.Z)((0,n.Z)().mark(function d(P){var u,l;return(0,n.Z)().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return f.next=2,R();case 2:u=f.sent,l=[],u.data.length>0&&u.data.forEach(function(m){l.push({stockuint:m.id,text:m.name,value:m.id,label:m.name})}),H(l);case 6:case"end":return f.stop()}},d)}));return function(P){return h.apply(this,arguments)}}(),S=function(){var h=(0,o.Z)((0,n.Z)().mark(function d(P){var u,l;return(0,n.Z)().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return f.next=2,L();case 2:u=f.sent,l=[],u.data.length>0&&u.data.forEach(function(m){l.push({typeid:m.id,text:m.name,value:m.id,label:m.name})}),z(l);case 6:case"end":return f.stop()}},d)}));return function(P){return h.apply(this,arguments)}}();function w(){(0,W.FM)().then(function(h){X(h.data);var d={};P(h.data);function P(u){for(var l in u)d[u[l].value]={text:u[l].title},u[l].children&&P(u[l].children)}te(d)})}w(),T(),S()},[]);var re=[{title:"\u4E3B\u952E",dataIndex:"id",tip:"\u89C4\u5219\u540D\u79F0\u662F\u552F\u4E00\u7684 key",hideInSearch:!0,hideInTable:!0,render:function(S,w){return(0,Z.jsx)("a",{onClick:function(){F(w),G(!0)},children:S})}},{title:"\u6536\u8D27\u673A\u6784",dataIndex:"orgId",hideInTable:!0,valueEnum:ee},{title:"\u6536\u8D27\u673A\u6784",hideInSearch:!0,dataIndex:"orgName"},{title:"\u7269\u6599\u540D\u79F0",hideInSearch:!0,dataIndex:"productName"},{title:"\u7269\u6599\u7F16\u7801",hideInSearch:!0,dataIndex:"code"},{title:"\u7269\u6599\u5355\u4F4D",hideInSearch:!0,dataIndex:"uintName"},{title:"\u5E93\u5B58\u6570\u91CF",hideInSearch:!0,dataIndex:"stockQty"},{title:"\u7269\u6599\u89C4\u683C",hideInSearch:!0,dataIndex:"specs"}];return(0,Z.jsx)(k.ZP,{children:(0,Z.jsx)(O.ZP,{headerTitle:"\u5E93\u5B58\u67E5\u8BE2",actionRef:x,rowKey:"id",search:{labelWidth:120},toolBarRender:function(){return[]},request:function(){var T=(0,o.Z)((0,n.Z)().mark(function S(w){var h,d;return(0,n.Z)().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return h=[],d=0,u.next=4,D(w).then(function(l){h=l.data.data,d=l.data.total});case 4:return u.abrupt("return",{data:h,success:!0,total:d});case 5:case"end":return u.stop()}},S)}));return function(S){return T.apply(this,arguments)}}(),columns:re,rowSelection:{onChange:function(S,w){return setSelectedRows(w)}}})})},b=C},3408:function(K,I,s){"use strict";s.d(I,{lM:function(){return k},IH:function(){return E},mm:function(){return L},eP:function(){return R},FM:function(){return C}});var n=s(39428),o=s(11849),c=s(3182),i=s(48971);function k(t,r){return O.apply(this,arguments)}function O(){return O=(0,c.Z)((0,n.Z)().mark(function t(r,p){return(0,n.Z)().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,i.WY)("/kitchen/api/sysOrg\u200B/page",{method:"GET",params:(0,o.Z)({},r)}));case 1:case"end":return a.stop()}},t)})),O.apply(this,arguments)}function E(t){return g.apply(this,arguments)}function g(){return g=(0,c.Z)((0,n.Z)().mark(function t(r){return(0,n.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,i.WY)("/kitchen/api/sysOrg/add",{method:"POST",data:(0,o.Z)({},r)}));case 1:case"end":return e.stop()}},t)})),g.apply(this,arguments)}function D(t){return v.apply(this,arguments)}function v(){return v=_asyncToGenerator(_regeneratorRuntime().mark(function t(r){return _regeneratorRuntime().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",request("\u200B/kitchen/api\u200B/sysOrg\u200B/list",{method:"POST",data:_objectSpread({},r)}));case 1:case"end":return e.stop()}},t)})),v.apply(this,arguments)}function L(t){return _.apply(this,arguments)}function _(){return _=(0,c.Z)((0,n.Z)().mark(function t(r){return(0,n.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,i.WY)("\u200B/kitchen/api\u200B/sysOrg\u200B/delete",{method:"POST",data:(0,o.Z)({},r)}));case 1:case"end":return e.stop()}},t)})),_.apply(this,arguments)}function R(t){return y.apply(this,arguments)}function y(){return y=(0,c.Z)((0,n.Z)().mark(function t(r){return(0,n.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,i.WY)("\u200B/kitchen/api\u200B/sysOrg\u200B/edit",{method:"POST",data:(0,o.Z)({},r)}));case 1:case"end":return e.stop()}},t)})),y.apply(this,arguments)}function W(t){return Z.apply(this,arguments)}function Z(){return Z=_asyncToGenerator(_regeneratorRuntime().mark(function t(r){return _regeneratorRuntime().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",request("/kitchen\u200B/api\u200B/sysOrg\u200B/detail",{method:"POST",data:_objectSpread({},r)}));case 1:case"end":return e.stop()}},t)})),Z.apply(this,arguments)}function C(t){return b.apply(this,arguments)}function b(){return b=(0,c.Z)((0,n.Z)().mark(function t(r){return(0,n.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,i.WY)("\u200B/kitchen/api\u200B/sysOrg\u200B/tree",{data:(0,o.Z)({},r)}));case 1:case"end":return e.stop()}},t)})),b.apply(this,arguments)}}}]); +(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[212,1322],{4910:function(K,I,s){"use strict";s.r(I),s.d(I,{default:function(){return k}});var n=s(39428),o=s(3182),c=s(2824),i=s(67294),E=s(78009),b=s(16894),P=s(11849),g=s(48971);function D(t,r){return _.apply(this,arguments)}function _(){return _=(0,o.Z)((0,n.Z)().mark(function t(r,p){return(0,n.Z)().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,g.WY)("/kitchen/api/stockInfo/getPage",{method:"POST",data:r}));case 1:case"end":return a.stop()}},t)})),_.apply(this,arguments)}function L(t,r){return v.apply(this,arguments)}function v(){return v=(0,o.Z)((0,n.Z)().mark(function t(r,p){return(0,n.Z)().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,g.WY)("/kitchen/api/product-type/type-list",{method:"GET",params:(0,P.Z)({},r)}));case 1:case"end":return a.stop()}},t)})),v.apply(this,arguments)}function C(t,r){return y.apply(this,arguments)}function y(){return y=(0,o.Z)((0,n.Z)().mark(function t(r,p){return(0,n.Z)().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,g.WY)("/kitchen/api/unit/uint-list",{method:"GET",params:(0,P.Z)({},r)}));case 1:case"end":return a.stop()}},t)})),y.apply(this,arguments)}var W=s(3408),Z=s(85893),R=function(){var r=(0,i.useState)(!1),p=(0,c.Z)(r,2),e=p[0],a=p[1],Y=(0,i.useState)(!1),j=(0,c.Z)(Y,2),ae=j[0],G=j[1],x=(0,i.useRef)(),N=(0,i.useState)(),M=(0,c.Z)(N,2),ue=M[0],F=M[1],V=(0,i.useState)(),U=(0,c.Z)(V,2),se=U[0],H=U[1],Q=(0,i.useState)(),$=(0,c.Z)(Q,2),ie=$[0],z=$[1],J=(0,i.useState)([]),B=(0,c.Z)(J,2),le=B[0],X=B[1],q=(0,i.useState)([]),A=(0,c.Z)(q,2),ee=A[0],te=A[1];(0,i.useEffect)(function(){var O=function(){var h=(0,o.Z)((0,n.Z)().mark(function d(T){var u,l;return(0,n.Z)().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return f.next=2,C();case 2:u=f.sent,l=[],u.data.length>0&&u.data.forEach(function(m){l.push({stockuint:m.id,text:m.name,value:m.id,label:m.name})}),H(l);case 6:case"end":return f.stop()}},d)}));return function(T){return h.apply(this,arguments)}}(),S=function(){var h=(0,o.Z)((0,n.Z)().mark(function d(T){var u,l;return(0,n.Z)().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return f.next=2,L();case 2:u=f.sent,l=[],u.data.length>0&&u.data.forEach(function(m){l.push({typeid:m.id,text:m.name,value:m.id,label:m.name})}),z(l);case 6:case"end":return f.stop()}},d)}));return function(T){return h.apply(this,arguments)}}();function w(){(0,W.FM)().then(function(h){X(h.data);var d={};T(h.data);function T(u){for(var l in u)d[u[l].value]={text:u[l].title},u[l].children&&T(u[l].children)}te(d)})}w(),O(),S()},[]);var re=[{title:"\u4E3B\u952E",dataIndex:"id",tip:"\u89C4\u5219\u540D\u79F0\u662F\u552F\u4E00\u7684 key",hideInSearch:!0,hideInTable:!0,render:function(S,w){return(0,Z.jsx)("a",{onClick:function(){F(w),G(!0)},children:S})}},{title:"\u6536\u8D27\u673A\u6784",dataIndex:"orgId",hideInTable:!0,valueEnum:ee},{title:"\u6536\u8D27\u673A\u6784",hideInSearch:!0,dataIndex:"orgName"},{title:"\u7269\u6599\u540D\u79F0",hideInSearch:!0,dataIndex:"productName"},{title:"\u7269\u6599\u7F16\u7801",hideInSearch:!0,dataIndex:"code"},{title:"\u7269\u6599\u5355\u4F4D",hideInSearch:!0,dataIndex:"uintName"},{title:"\u5E93\u5B58\u6570\u91CF",hideInSearch:!0,dataIndex:"stockQty"},{title:"\u7269\u6599\u89C4\u683C",hideInSearch:!0,dataIndex:"specs"}];return(0,Z.jsx)(E.ZP,{children:(0,Z.jsx)(b.ZP,{headerTitle:"\u5E93\u5B58\u67E5\u8BE2",actionRef:x,rowKey:"id",search:{labelWidth:120},toolBarRender:function(){return[]},request:function(){var O=(0,o.Z)((0,n.Z)().mark(function S(w){var h,d;return(0,n.Z)().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return h=[],d=0,u.next=4,D(w).then(function(l){h=l.data.data,d=l.data.total});case 4:return u.abrupt("return",{data:h,success:!0,total:d});case 5:case"end":return u.stop()}},S)}));return function(S){return O.apply(this,arguments)}}(),columns:re,rowSelection:{onChange:function(S,w){return setSelectedRows(w)}}})})},k=R},3408:function(K,I,s){"use strict";s.d(I,{lM:function(){return E},IH:function(){return P},mm:function(){return L},eP:function(){return C},FM:function(){return R}});var n=s(39428),o=s(11849),c=s(3182),i=s(48971);function E(t,r){return b.apply(this,arguments)}function b(){return b=(0,c.Z)((0,n.Z)().mark(function t(r,p){return(0,n.Z)().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,i.WY)("/kitchen/api/sysOrg\u200B/page",{method:"GET",params:(0,o.Z)({},r)}));case 1:case"end":return a.stop()}},t)})),b.apply(this,arguments)}function P(t){return g.apply(this,arguments)}function g(){return g=(0,c.Z)((0,n.Z)().mark(function t(r){return(0,n.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,i.WY)("/kitchen/api/sysOrg/add",{method:"POST",data:(0,o.Z)({},r)}));case 1:case"end":return e.stop()}},t)})),g.apply(this,arguments)}function D(t){return _.apply(this,arguments)}function _(){return _=_asyncToGenerator(_regeneratorRuntime().mark(function t(r){return _regeneratorRuntime().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",request("\u200B/kitchen/api\u200B/sysOrg\u200B/list",{method:"POST",data:_objectSpread({},r)}));case 1:case"end":return e.stop()}},t)})),_.apply(this,arguments)}function L(t){return v.apply(this,arguments)}function v(){return v=(0,c.Z)((0,n.Z)().mark(function t(r){return(0,n.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,i.WY)("\u200B/kitchen/api\u200B/sysOrg\u200B/delete",{method:"POST",data:(0,o.Z)({},r)}));case 1:case"end":return e.stop()}},t)})),v.apply(this,arguments)}function C(t){return y.apply(this,arguments)}function y(){return y=(0,c.Z)((0,n.Z)().mark(function t(r){return(0,n.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,i.WY)("\u200B/kitchen/api\u200B/sysOrg\u200B/edit",{method:"POST",data:(0,o.Z)({},r)}));case 1:case"end":return e.stop()}},t)})),y.apply(this,arguments)}function W(t){return Z.apply(this,arguments)}function Z(){return Z=_asyncToGenerator(_regeneratorRuntime().mark(function t(r){return _regeneratorRuntime().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",request("/kitchen\u200B/api\u200B/sysOrg\u200B/detail",{method:"POST",data:_objectSpread({},r)}));case 1:case"end":return e.stop()}},t)})),Z.apply(this,arguments)}function R(t){return k.apply(this,arguments)}function k(){return k=(0,c.Z)((0,n.Z)().mark(function t(r){return(0,n.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,i.WY)("\u200B/kitchen/api\u200B/sysOrg\u200B/tree",{data:(0,o.Z)({},r)}));case 1:case"end":return e.stop()}},t)})),k.apply(this,arguments)}}}]); diff --git a/dist/p__financereport__finance.588489c0.async.js b/dist/p__financereport__finance.588489c0.async.js new file mode 100644 index 0000000..a4ccfda --- /dev/null +++ b/dist/p__financereport__finance.588489c0.async.js @@ -0,0 +1 @@ +(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[8741,1322,1279,7800,6398,6794,944,8208],{31651:function(vt,Te,a){"use strict";a.r(Te),a.d(Te,{default:function(){return nt}});var O=a(39428),de=a(3182),yt=a(57663),ke=a(71577),St=a(43358),Q=a(34041),c=a(2824),$e=a(90631),s=a(67294),He=a(78009),D=a(16894),gt=a(71194),De=a(50146),mt=a(58024),o=a(91894),It=a(95300),L=a(7277),Zt=a(13062),U=a(71230),jt=a(89032),X=a(15746),At=a(49111),V=a(19650),Tt=a(14965),Je=a(91774),Dt=a(47673),P=a(4107),Et=a(402),Ee=a(56256),Fe=a(21349),R=a(48971),Z={finaceList:function(t){return(0,R.WY)("/kitchen/api/finance/finance-report",{method:"Post",data:t})},finaceDeatal:function(t){return(0,R.WY)("/kitchen/api/finance/finance-detail",{method:"Post",data:t})},sumFinance:function(t){return(0,R.WY)("\u200B\u200B/kitchen/api/finance/sum-finance",{method:"Post",data:t})},srdTypeList:function(t){return(0,R.WY)("/kitchen/api/storetype/list",{method:"Post",data:t})},srdList:function(t){return(0,R.WY)("/kitchen/api/store/list",{method:"Post",data:t})},financeSummaryList:function(t){return(0,R.WY)("/kitchen/api/finance/finance-analysis",{method:"Post",data:t})},setSettlementDetail:function(t,E,M){return(0,R.WY)("/kitchen/api/finance/settlement-detail/".concat(E,"/").concat(M),{method:"Post",data:t})},StoreList:function(t){return(0,R.WY)("/kitchen/api/select/storelist",{method:"Post",data:t})}},e=a(85893),F={width:"33%",textAlign:"center",height:"20px"},Ce={width:"100%",textAlign:"center",height:"10px",marginTop:"1"},Ke=function(t){var E=(0,s.useRef)(),M=Ee.Z.Text;return(0,e.jsx)(De.Z,{width:800,height:700,bodyStyle:{padding:"32px 40px 48px"},destroyOnClose:!0,title:"\u7ED3\u7B97\u8BE6\u60C5",visible:!0,footer:!1,onCancel:function(){return t.onCancel()},maskClosable:!1,children:(0,e.jsxs)(Fe.Z,{children:[(0,e.jsx)(o.Z,{title:"\u7ED3\u7B97\u8BE6\u60C5",type:"inner",style:{height:120},children:(0,e.jsx)("div",{style:{float:"center",height:100},children:(0,e.jsx)(L.Z,{style:{float:"center"},title:"\u7ED3\u7B97\u91D1\u989D",value:t.values.refund.settlementMoney,prefix:"\xA5"})})}),t.values.refund.refundOrderId!=""?(0,e.jsxs)(o.Z,{title:"\u9000\u6B3E\u91D1\u989D",type:"inner",extra:t.values.refund.refundMoney,children:[(0,e.jsx)(o.Z.Grid,{hoverable:!1,style:Ce,children:"\u5546\u54C1\u4FE1\u606F"}),(0,e.jsx)("br",{}),t.values.goodsList==null?"":t.values.goodsList.map(function(m,q){return(0,e.jsxs)(o.Z.Grid,{hoverable:!1,style:{width:"100%",textAlign:"center"},children:[(0,e.jsx)(P.Z,{value:m.goodsName,style:{width:"33%",textAlign:"center"},disabled:!1}),(0,e.jsx)(P.Z,{value:"".concat(m.goodsNum,"\u4EFD"),style:{width:"33%",textAlign:"center"}}),(0,e.jsx)(P.Z,{value:"\xA5 ".concat(m.goodsRealPrice),style:{width:"33%",textAlign:"center"}})]})})]}):(0,e.jsxs)(o.Z,{title:"\u5546\u54C1\u603B\u4EF7",type:"inner",extra:t.values.refund.orderOriginalMoney,children:[(0,e.jsx)(o.Z.Grid,{hoverable:!1,style:Ce,children:"\u5546\u54C1\u4FE1\u606F"}),(0,e.jsx)("br",{}),t.values.goodsList==null?"":t.values.goodsList.map(function(m,q){return(0,e.jsxs)(o.Z.Grid,{hoverable:!1,style:{width:"100%",textAlign:"center"},children:[(0,e.jsx)(P.Z,{value:m.goodsName,style:{width:"33%",textAlign:"center"},disabled:!1}),(0,e.jsx)(P.Z,{value:"".concat(m.goodsNum,"\u4EFD"),style:{width:"33%",textAlign:"center"}}),(0,e.jsx)(P.Z,{value:"\xA5 ".concat(m.goodsRealPrice),style:{width:"33%",textAlign:"center"}})]})})]}),t.values.refund.refundOrderId==""&&t.values.refund.discountMoney!=0?(0,e.jsxs)(o.Z,{style:{height:100},type:"inner",title:"\u4F18\u60E0\u652F\u51FA",extra:t.values.refund.discountMoney,children:[(0,e.jsx)(o.Z.Grid,{hoverable:!1,style:F,children:t.values.refund.couponTypeValue==""||t.values.refund.couponTypeValue==null?"\u4F18\u60E0\u652F\u51FA":t.values.refund.couponTypeValue}),(0,e.jsx)(o.Z.Grid,{hoverable:!1,style:{width:"66%",textAlign:"right",height:"20px"},children:"\xA5 ".concat(t.values.refund.discountMoney)})]}):null,t.values.refund.refundOrderId==""&&t.values.refund.businessPrice!=0?(0,e.jsxs)(o.Z,{style:{height:100},type:"inner",title:t.values.refund.refundOrderId==""?"\u5E73\u53F0\u8D39\u652F\u51FA":"\u5E73\u53F0\u9000\u6B3E",extra:t.values.refund.businessPrice,children:[(0,e.jsx)(o.Z.Grid,{hoverable:!1,style:F,children:t.values.refund.refundOrderId==""?"\u5E73\u53F0\u6280\u672F\u670D\u52A1\u8D39":"\u9000\u6B3E\u91D1\u989D"}),(0,e.jsxs)(o.Z.Grid,{hoverable:!1,style:{width:"66%",textAlign:"right",height:"20px"},children:[t.values.refund.businessPrice,"\xA5"]})]}):null,(0,e.jsxs)(o.Z,{type:"inner",title:"\u8BA2\u5355\u4FE1\u606F",children:[(0,e.jsx)(o.Z.Grid,{hoverable:!1,style:F,children:"\u8BA2\u5355\u7F16\u53F7"}),(0,e.jsx)(o.Z.Grid,{hoverable:!1,style:{width:"66%",textAlign:"left",height:"10px"},children:t.values.refund.orderId}),(0,e.jsx)(o.Z.Grid,{hoverable:!1,style:F,children:"\u8BA2\u5355\u53F7"}),(0,e.jsx)(o.Z.Grid,{hoverable:!1,style:{width:"66%",textAlign:"left",height:"10px"},children:t.values.refund.orderNumber}),(0,e.jsx)(o.Z.Grid,{hoverable:!1,style:F,children:"\u4E0B\u5355\u65F6\u95F4"}),(0,e.jsxs)(o.Z.Grid,{hoverable:!1,style:{width:"66%",textAlign:"left",height:"10px"},children:[" ",t.values.refund.createdAt]}),(0,e.jsx)(o.Z.Grid,{hoverable:!1,style:F,children:"\u8BA2\u5355\u5B8C\u6210\u65F6\u95F4"}),(0,e.jsxs)(o.Z.Grid,{hoverable:!1,style:{width:"66%",textAlign:"left",height:"10px"},children:[" ",t.values.refund.completeTakeTime]})]}),t.values.refund.refundOrderId!=""?(0,e.jsxs)(o.Z,{type:"inner",title:"\u9000\u6B3E\u8BA2\u5355\u4FE1\u606F",children:[(0,e.jsx)(o.Z.Grid,{hoverable:!1,style:F,children:"\u8BA2\u5355\u7F16\u53F7"}),(0,e.jsxs)(o.Z.Grid,{hoverable:!1,style:{width:"66%",textAlign:"left",height:"10px"},children:[" ",t.values.refund.refundOrderId]}),(0,e.jsx)(o.Z.Grid,{hoverable:!1,style:F,children:"\u8BA2\u5355\u53F7"}),(0,e.jsxs)(o.Z.Grid,{hoverable:!1,style:{width:"66%",textAlign:"left",height:"10px"},children:[" ",t.values.refund.refundOrderNumber]}),(0,e.jsx)(o.Z.Grid,{hoverable:!1,style:F,children:"\u4E0B\u5355\u65F6\u95F4"}),(0,e.jsxs)(o.Z.Grid,{hoverable:!1,style:{width:"66%",textAlign:"left",height:"10px"},children:[" ",t.values.refund.refundCreatedAt]}),(0,e.jsx)(o.Z.Grid,{hoverable:!1,style:F,children:"\u8BA2\u5355\u5B8C\u6210\u65F6\u95F4"}),(0,e.jsxs)(o.Z.Grid,{hoverable:!1,style:{width:"66%",textAlign:"left",height:"10px"},children:[" ",t.values.refund.refundTime]})]}):null]})})},Qe=Ke,Ue=a(30381),N=a.n(Ue),Xe=function(t){var E="YYYY-MM-DD",M=(0,s.useRef)(),m=Ee.Z.Text,q=P.Z.TextArea,_=Je.Z.RangePicker,oe=(0,s.useState)([]),Y=(0,c.Z)(oe,2),ce=Y[0],ee=Y[1],B=(0,s.useState)([]),b=(0,c.Z)(B,2),fe=b[0],G=b[1],W=(0,s.useState)(0),z=(0,c.Z)(W,2),he=z[0],te=z[1],xe=(0,s.useState)(0),k=(0,c.Z)(xe,2),ve=k[0],ne=k[1],Me=(0,s.useState)(0),ae=(0,c.Z)(Me,2),ye=ae[0],re=ae[1],Be=(0,s.useState)(0),ie=(0,c.Z)(Be,2),Se=ie[0],ge=ie[1],$=(0,s.useState)(0),ue=(0,c.Z)($,2),me=ue[0],le=ue[1],H=(0,s.useState)(0),J=(0,c.Z)(H,2),Ie=J[0],se=J[1],Ze=(0,s.useState)(0),I=(0,c.Z)(Ze,2),v=I[0],u=I[1],S=(0,s.useState)([]),f=(0,c.Z)(S,2),r=f[0],n=f[1],y=(0,s.useState)([]),j=(0,c.Z)(y,2),A=j[0],w=j[1],at=(0,s.useState)(""),pe=(0,c.Z)(at,2),je=pe[0],be=pe[1],rt=(0,s.useState)(""),Le=(0,c.Z)(rt,2),Ae=Le[0],Pe=Le[1],it=(0,s.useState)(""),Re=(0,c.Z)(it,2),Ge=Re[0],ut=Re[1],lt=(0,s.useState)(),we=(0,c.Z)(lt,2),Oe=we[0],Ye=we[1],st=(0,s.useState)(),Ve=(0,c.Z)(st,2),dt=Ve[0],Ne=Ve[1],ot=(0,s.useState)([]),We=(0,c.Z)(ot,2),ct=We[0],ft=We[1];(0,s.useEffect)(function(){w([t.values.storeId]),n([t.values.storeTypeId]);function x(){Z.srdTypeList().then(function(i){var l=i.data;l.forEach(function(d){d.value=d.id,d.label=d.name}),ee(l)}),t.values.storeTypeId!=""&&t.values.storeTypeId!=null?Z.StoreList([t.values.storeTypeId]).then(function(i){var l=i.data;l.forEach(function(d){d.value=d.id,d.label=d.name}),G(l)}):Z.srdList().then(function(i){var l=i.data;l.forEach(function(d){d.value=d.id,d.label=d.name}),G(l)})}x()},[]);var ht=function(){var x=(0,de.Z)((0,O.Z)().mark(function i(l){return(0,O.Z)().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:return g.next=2,Z.sumFinance(l).then(function(h){h.data&&(te(h.data.orderOriginalMoney),ne(h.data.discountMoney),re(h.data.orderRealMoney),le(h.data.refundMoney),se(h.data.settlementMoney),ut(h.data.splittingDate),u(h.data.splittingMoney))});case 2:case"end":return g.stop()}},i)}));return function(l){return x.apply(this,arguments)}}(),xt=[{title:"\u4E3B\u952E",dataIndex:"orderId",hideInTable:!0,hideInSearch:!0},{title:"\u8BA2\u5355\u65F6\u95F4",dataIndex:"createdAt",valueType:"date",hideInSearch:!0},{title:"\u8BA2\u5355\u7F16\u53F7",dataIndex:"orderNumber",hideInSearch:!0},{title:"\u8BA2\u5355\u7C7B\u578B",dataIndex:"orderType",hideInSearch:!0,valueEnum:{0:{text:"\u6B63\u5E38\u8BA2\u5355",status:"Processing"},1:{text:"\u7ACB\u5373\u5403\u9762",status:"Error"},2:{text:"\u76F2\u76D2",status:"Error"},3:{text:"\u5176\u4ED6",status:"Error"},"-1":{text:"\u9000\u6B3E",status:"Error"}}},{title:"\u6D41\u6C34\u91D1\u989D",dataIndex:"orderOriginalMoney",key:"orderOriginalMoney",renderText:function(i){return"".concat(i,"\xA5")},hideInSearch:!0},{title:"\u4F18\u60E0\u91D1\u989D",dataIndex:"discountMoney",key:"discountMoney",renderText:function(i){return"".concat(i,"\xA5")},hideInSearch:!0},{title:"\u987E\u5BA2\u5B9E\u4ED8",dataIndex:"orderRealMoney",key:"orderRealMoney",renderText:function(i){return"".concat(i,"\xA5")},hideInSearch:!0},{title:"\u5E73\u53F0\u8D39\u7528",dataIndex:"businessPrice",key:"businessPrice",renderText:function(i){return"".concat(i,"\xA5")},hideInSearch:!0},{title:"\u9000\u6B3E\u91D1\u989D",dataIndex:"refundMoney",key:"refundMoney",renderText:function(i){return"".concat(i,"\xA5")},hideInSearch:!0},{title:"\u7ED3\u7B97\u91D1\u989D",dataIndex:"settlementMoney",key:"settlementMoney",renderText:function(i){return"".concat(i,"\xA5")},hideInSearch:!0},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(i,l){var d=[(0,e.jsx)("a",{type:"primary",onClick:function(){Ne(!0),Z.setSettlementDetail(l,l.orderId,l.orderType).then(function(h){ft(h.data),Ye(l)})},children:"\u8BE6\u60C5"},"primary")];return d}}];return(0,e.jsxs)(De.Z,{width:1200,bodyStyle:{padding:"32px 40px 48px"},destroyOnClose:!0,title:"\u8D26\u5355\u8BE6\u60C5",visible:!0,footer:!1,onCancel:function(){return t.onCancel()},maskClosable:!1,children:[(0,e.jsxs)(Fe.Z,{children:[(0,e.jsxs)(s.Suspense,{children:[(0,e.jsx)(U.Z,{children:(0,e.jsxs)(X.Z,{children:[(0,e.jsxs)(V.Z,{size:"middle",children:["\u5E97\u94FA\u5206\u7C7B:",(0,e.jsx)(Q.Z,{mode:"multiple",showArrow:!0,placeholder:"\u8BF7\u9009\u62E9\u5E97\u94FA\u5206\u7C7B",label:"\u5E97\u94FA\u5206\u7C7B",defaultValue:t.values.storeTypeId!=null&&t.values.storeTypeId!=""?t.values.storeTypeId:[],name:"storeTypeId",style:{width:285},onChange:function(i){n(i),i.length>0?Z.StoreList(i).then(function(l){var d=l.data;if(d.forEach(function(h){h.value=h.id,h.label=h.name}),G(d),d.length==0)w([]);else if(d.length){var g=[];d.forEach(function(h){A.length>0&&A.forEach(function(p){p==h.id&&g.push(h.id)})}),g.length>0?w(g):w([])}A!=""&&M.current.reload()}):(w([]),n([]),Z.srdList().then(function(l){var d=l.data;d.forEach(function(g){g.value=g.id,g.label=g.name}),G(d),A!=""&&M.current.reload()}))},children:ce.map(function(x){return(0,e.jsx)(Option,{value:x.id,children:x.name})})}),"\xA0 \xA0"]}),(0,e.jsxs)(V.Z,{size:"middle",children:["\u5E97\u94FA\u540D\u79F0:",(0,e.jsx)(Q.Z,{mode:"multiple",showArrow:!0,placeholder:"\u8BF7\u9009\u62E9\u5E97\u94FA\u540D\u79F0",label:"\u5E97\u94FA\u540D\u79F0",value:A,name:"storeId",style:{width:285},onChange:function(i){w(i),M.current.reload()},onClear:function(i){w(i)},children:fe.map(function(x){return(0,e.jsx)(Option,{value:x.id,children:x.name})})})]})]})}),(0,e.jsx)("br",{}),(0,e.jsx)(U.Z,{children:(0,e.jsxs)(X.Z,{children:["\u8BA2\u5355\u65E5\u671F:",(0,e.jsx)(V.Z,{size:"small",children:(0,e.jsx)(_,{defaultValue:[N()(t.values.createdAt,E),N()(t.values.endTime,E)],size:32,style:{left:15},onChange:function(i){i!=null?(be(i[0].format("YYYY-MM-DD")),Pe(i[1].format("YYYY-MM-DD"))):(be(N()(new Date,E)),Pe(N()(new Date,E))),M.current.reload()}})}),"\xA0\xA0\xA0\xA0\xA0\xA0\xA0\xA0\xA0\xA0",(0,e.jsxs)(V.Z,{size:"middle",children:["\u9884\u8BA1\u5206\u8D26:",(0,e.jsx)(P.Z,{title:"",disabled:!1,value:"\u9884\u8BA1".concat(Ge!=null?Ge:N()(new Date,E),"\u5206\u8D26"),style:{float:"right",width:285}})]})]})}),(0,e.jsx)(U.Z,{children:(0,e.jsx)(X.Z,{children:(0,e.jsx)(o.Z,{title:"",bordered:!1,style:{width:"100%"},children:(0,e.jsxs)("div",{children:[(0,e.jsx)("div",{style:{float:"center"},children:(0,e.jsx)(L.Z,{style:{float:"center"},title:"",value:v!=0?v.toFixed(2):v,prefix:"\xA5"})}),(0,e.jsxs)(V.Z,{size:"large",children:[(0,e.jsx)(L.Z,{title:"\u6D41\u6C34\u91D1\u989D",value:he,style:{float:"left"},xl:18}),(0,e.jsx)(L.Z,{title:"\u4F18\u60E0\u91D1\u989D",value:ve,style:{float:"left"}}),(0,e.jsx)(L.Z,{title:"\u987E\u5BA2\u5B9E\u4ED8",value:ye,style:{float:"left"}}),(0,e.jsx)(L.Z,{title:"\u5E73\u53F0\u8D39\u7528",value:Se,style:{float:"left"}}),(0,e.jsx)(L.Z,{title:"\u9000\u6B3E\u91D1\u989D",value:me,style:{float:"left"}}),(0,e.jsx)(L.Z,{title:"\u7ED3\u7B97\u91D1\u989D",value:Ie,style:{float:"left"}})]})]})})})})]}),(0,e.jsx)(s.Suspense,{children:(0,e.jsx)(U.Z,{children:(0,e.jsx)(X.Z,{span:24,children:(0,e.jsx)(D.ZP,{actionRef:M,rowKey:"id",search:{optionRender:!1,collapsed:!1},pagination:{showQuickJumper:!0},toolBarRender:!1,request:function(){var x=(0,de.Z)((0,O.Z)().mark(function i(l,d,g){var h,p;return(0,O.Z)().wrap(function(T){for(;;)switch(T.prev=T.next){case 0:if(h=[],p=0,r!=""&&(l.storeTypeId=r),A!=""&&(l.storeId=A),je==null||je==""?l.createdAt=t.values.createdAt:l.createdAt=je,Ae==null||Ae==""?l.endTime=t.values.endTime:l.endTime=Ae,ht(l),A==""){T.next=10;break}return T.next=10,Z.finaceDeatal(l).then(function(ze){h=ze.data.data,p=ze.data.total});case 10:return T.abrupt("return",{data:h,success:!0,total:p});case 11:case"end":return T.stop()}},i)}));return function(i,l,d){return x.apply(this,arguments)}}(),summary:function(i){var l=0,d=0,g=0,h=0,p=0,K=0;return i.forEach(function(T){l+=T.orderOriginalMoney,d+=T.discountMoney,g+=T.orderRealMoney,p+=T.refundMoney,K+=T.settlementMoney}),(0,e.jsxs)(D.ZP.Summary.Row,{children:[(0,e.jsx)(D.ZP.Summary.Cell,{children:"\u603B\u8BA1"}),(0,e.jsx)(D.ZP.Summary.Cell,{colSpan:2,children:(0,e.jsx)(m,{type:"danger"})}),(0,e.jsx)(D.ZP.Summary.Cell,{children:(0,e.jsxs)(m,{children:[l!=0?l.toFixed(2):l,"\xA5"]})}),(0,e.jsx)(D.ZP.Summary.Cell,{children:(0,e.jsxs)(m,{children:[d!=0?d.toFixed(2):d,"\xA5"]})}),(0,e.jsx)(D.ZP.Summary.Cell,{children:(0,e.jsxs)(m,{children:[g!=0?g.toFixed(2):g,"\xA5"]})}),(0,e.jsx)(D.ZP.Summary.Cell,{children:(0,e.jsxs)(m,{children:[h!=0?h.toFixed(2):h,"\xA5"]})}),(0,e.jsx)(D.ZP.Summary.Cell,{children:(0,e.jsxs)(m,{children:[p!=0?p.toFixed(2):p,"\xA5"]})}),(0,e.jsx)(D.ZP.Summary.Cell,{colSpan:2,children:(0,e.jsxs)(m,{children:[K!=0?K.toFixed(2):K,"\xA5"]})})]})},columns:xt})})})})]}),Oe&&Object.keys(Oe).length?(0,e.jsx)(Qe,{onCancel:function(){Ne(!0),Ye({})},setsecondDetailVisible:dt,values:ct}):null]})},qe=Xe,_e=a(53667),et=a.n(_e),Ft=a(96486),tt=function(){var t=(0,s.useState)([]),E=(0,c.Z)(t,2),M=E[0],m=E[1],q=(0,s.useState)([]),_=(0,c.Z)(q,2),oe=_[0],Y=_[1],ce=(0,s.useState)([]),ee=(0,c.Z)(ce,2),B=ee[0],b=ee[1],fe=(0,s.useState)(),G=(0,c.Z)(fe,2),W=G[0],z=G[1],he=(0,s.useState)(),te=(0,c.Z)(he,2),xe=te[0],k=te[1],ve=(0,s.useState)(""),ne=(0,c.Z)(ve,2),Me=ne[0],ae=ne[1],ye=(0,s.useState)(""),re=(0,c.Z)(ye,2),Be=re[0],ie=re[1],Se=(0,s.useState)([]),ge=(0,c.Z)(Se,2),$=ge[0],ue=ge[1],me=(0,s.useState)([]),le=(0,c.Z)(me,2),H=le[0],J=le[1],Ie=(0,s.useRef)();(0,s.useEffect)(function(){function I(){Z.srdTypeList().then(function(u){var S=u.data;S.forEach(function(f){f.value=f.id,f.label=f.name}),m(S)})}function v(){Z.srdList().then(function(u){var S=u.data;S.forEach(function(f){f.value=f.id,f.label=f.name}),Y(S)})}I(),v()},[]);function se(I){var v=[{title:"\u5E97\u94FA\u5206\u7C7B",dataIndex:"storeTypeName",hideInSearch:!0},{title:"\u5E97\u94FA\u540D\u79F0",dataIndex:"storeName",hideInSearch:!0},{title:"\u8BA2\u5355\u65F6\u95F4",dataIndex:"createdAt",valueType:"date"},{title:"\u8BA2\u5355\u7F16\u53F7",dataIndex:"orderNumber",hideInSearch:!0},{title:"\u8BA2\u5355\u7C7B\u578B",dataIndex:"orderType",hideInSearch:!0},{title:"\u6D41\u6C34\u91D1\u989D",dataIndex:"orderOriginalMoney",renderText:function(n){return"".concat(n,"\xA5")},hideInSearch:!0},{title:"\u4F18\u60E0\u91D1\u989D",dataIndex:"discountMoney",renderText:function(n){return"".concat(n,"\xA5")},hideInSearch:!0},{title:"\u987E\u5BA2\u5B9E\u4ED8",dataIndex:"orderRealMoney",renderText:function(n){return"".concat(n,"\xA5")},hideInSearch:!0},{title:"\u5E73\u53F0\u8D39\u7528",dataIndex:"businessPrice",renderText:function(n){return"".concat(n,"\xA5")},hideInSearch:!0},{title:"\u9000\u6B3E\u91D1\u989D",dataIndex:"refundMoney",renderText:function(n){return"".concat(n,"\xA5")},hideInSearch:!0},{title:"\u7ED3\u7B97\u91D1\u989D",dataIndex:"settlementMoney",renderText:function(n){return"".concat(n,"\xA5")},hideInSearch:!0},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(n,y){var j=[(0,e.jsx)("a",{type:"primary",onClick:function(){},children:"\u8BE6\u60C5"},"primary")];return j}}],u={},S=[];v.map(function(r,n){n<11&&S.push(r)}),u.fileName="\u8D22\u52A1\u8D26\u5355\u8BE6\u60C5",u.datas=[{sheetData:I.map(function(r){var n={};return v.forEach(function(y,j){j<11&&(j==4?r[y.dataIndex]==0?n[y.dataIndex]="\u6B63\u5E38\u8BA2\u5355":r[y.dataIndex]=="1"?n[y.dataIndex]="\u7ACB\u5373\u5403\u9762":r[y.dataIndex]=="2"?n[y.dataIndex]="\u76F2\u76D2":r[y.dataIndex]=="3"?n[y.dataIndex]="\u5176\u4ED6":r[y.dataIndex]=="-1"?n[y.dataIndex]="\u9000\u6B3E":r[y.dataIndex]=="-2"?n[y.dataIndex]="\u5408\u8BA1":n[y.dataIndex]="\u5176\u4ED6":n[y.dataIndex]=r[y.dataIndex])}),n}),sheetName:"\u8D22\u52A1\u8D26\u5355\u8BE6\u60C5",sheetFilter:S.map(function(r){return r.dataIndex}),sheetHeader:S.map(function(r){return r.title}),columnWidths:S.map(function(){return 10})}];var f=new(et())(u);f.saveExcel()}var Ze=[{title:"\u5E97\u94FA\u5206\u7C7B",dataIndex:"storeTypeId",hideInTable:!0,width:120,renderFormItem:function(){return(0,e.jsx)(Q.Z,{mode:"multiple",showArrow:!0,placeholder:"\u8BF7\u9009\u62E9\u5E97\u94FA\u5206\u7C7B",style:{width:"100%"},options:M,onChange:function(u){J(u),u.length>0?Z.StoreList(u).then(function(S){var f=S.data;if(f.forEach(function(n){n.value=n.id,n.label=n.name}),Y(f),f.length==0)b([]);else if(f.length){var r=[];f.forEach(function(n){B.length>0&&B.forEach(function(y){y==n.id&&r.push(n.id)})}),r.length>0?b(r):b([])}}):(J([]),b([]),Z.srdList().then(function(S){var f=S.data;f.forEach(function(r){r.value=r.id,r.label=r.name}),Y(f)}))}})}},{title:"\u5E97\u94FA\u5206\u7C7B",dataIndex:"storeTypeName",hideInForm:!0,hideInSearch:!0},{title:"\u5E97\u94FA\u540D\u79F0",dataIndex:"storeId",hideInTable:!0,width:120,renderFormItem:function(){return(0,e.jsx)(Q.Z,{mode:"multiple",showArrow:!0,placeholder:"\u8BF7\u9009\u62E9\u5E97\u94FA",style:{width:"100%"},options:oe,value:B,onChange:function(u){b(u)},onClear:function(u){b(u)}})}},{title:"\u5E97\u94FA\u540D\u79F0",dataIndex:"storeName",hideInForm:!0,hideInSearch:!0},{title:"\u8BA2\u5355\u65F6\u95F4",dataIndex:"createdAt",valueType:"date",hideInForm:!0,hideInSearch:!0},{title:"\u8BA2\u5355\u65F6\u95F4",dataIndex:"createdAt",hideInTable:!0,valueType:"dateRange",search:{transform:function(v){return{createdAt:v[0],endTime:v[1]}}}},{title:"\u7ED3\u7B97\u91D1\u989D",dataIndex:"settlementMoney",renderText:function(v){return"".concat(v,"\xA5")},hideInSearch:!0},{title:"\u5206\u8D26\u91D1\u989D",dataIndex:"businessPrice",hideInSearch:!0,renderText:function(v){return"".concat(v,"\xA5")}},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(v,u){var S=[(0,e.jsx)("a",{type:"primary",onClick:function(){k(!0),z(u)},children:"\u67E5\u770B"},"primary"),(0,e.jsx)("a",{type:"primary",onClick:function(){u.storeTypeId=[u.storeTypeId]==""?null:[u.storeTypeId],u.storeId=[u.storeId],Z.financeSummaryList(u).then(function(r){r.data&&se(r.data)})},children:"\u4E0B\u8F7D"},"primary")];return S}}];return(0,e.jsxs)(He.ZP,{children:[(0,e.jsx)(D.ZP,{headerTitle:"\u8D22\u52A1\u8D26\u5355\u67E5\u8BE2",actionRef:Ie,search:{labelWidth:120},toolBarRender:function(){return[(0,e.jsxs)(ke.Z,{type:"primary",onClick:function(){$!=null&&$!=""&&Z.financeSummaryList($).then(function(u){se(u.data)})},children:[(0,e.jsx)($e.Z,{})," \u4E0B\u8F7D"]},"create")]},columns:Ze,request:function(){var I=(0,de.Z)((0,O.Z)().mark(function v(u,S,f){var r,n;return(0,O.Z)().wrap(function(j){for(;;)switch(j.prev=j.next){case 0:if(r=[],n=0,H!=null&&H.length>0&&(u.storeTypeId=H),u.createdAt!=null&&ae(u.createdAt),u.endTime!=null&&ie(u.endTime),B!=null&&B.length>0&&(u.storeId=B),ue(u),!(B!=null&&B.length>0)){j.next=10;break}return j.next=10,Z.finaceList(u).then(function(A){r=A.data.data,n=A.data.total});case 10:return j.abrupt("return",{data:r,success:!0,total:n});case 11:case"end":return j.stop()}},v)}));return function(v,u,S){return I.apply(this,arguments)}}()}),W&&Object.keys(W).length?(0,e.jsx)(qe,{onCancel:function(){k(!0),z({})},setfinanceDetailVisible:xe,values:W}):null]})},nt=tt}}]); diff --git a/dist/p__financereport__finance.9e245f57.async.js b/dist/p__financereport__finance.9e245f57.async.js deleted file mode 100644 index 42b98eb..0000000 --- a/dist/p__financereport__finance.9e245f57.async.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[8741,1322,9464,1981,2869,7013,9719,2383],{31651:function(vt,Te,a){"use strict";a.r(Te),a.d(Te,{default:function(){return nt}});var O=a(39428),de=a(3182),yt=a(57663),ke=a(71577),St=a(43358),Q=a(34041),c=a(2824),$e=a(90631),s=a(67294),He=a(78009),D=a(16894),gt=a(71194),De=a(50146),mt=a(58024),o=a(91894),It=a(95300),L=a(7277),Zt=a(13062),U=a(71230),jt=a(89032),X=a(15746),At=a(49111),V=a(19650),Tt=a(14965),Je=a(91774),Dt=a(47673),P=a(4107),Et=a(402),Ee=a(56256),Fe=a(21349),R=a(48971),Z={finaceList:function(t){return(0,R.WY)("/kitchen/api/finance/finance-report",{method:"Post",data:t})},finaceDeatal:function(t){return(0,R.WY)("/kitchen/api/finance/finance-detail",{method:"Post",data:t})},sumFinance:function(t){return(0,R.WY)("\u200B\u200B/kitchen/api/finance/sum-finance",{method:"Post",data:t})},srdTypeList:function(t){return(0,R.WY)("/kitchen/api/storetype/list",{method:"Post",data:t})},srdList:function(t){return(0,R.WY)("/kitchen/api/store/list",{method:"Post",data:t})},financeSummaryList:function(t){return(0,R.WY)("/kitchen/api/finance/finance-analysis",{method:"Post",data:t})},setSettlementDetail:function(t,E,M){return(0,R.WY)("/kitchen/api/finance/settlement-detail/".concat(E,"/").concat(M),{method:"Post",data:t})},StoreList:function(t){return(0,R.WY)("/kitchen/api/select/storelist",{method:"Post",data:t})}},e=a(85893),F={width:"33%",textAlign:"center",height:"20px"},Ce={width:"100%",textAlign:"center",height:"10px",marginTop:"1"},Ke=function(t){var E=(0,s.useRef)(),M=Ee.Z.Text;return(0,e.jsx)(De.Z,{width:800,height:700,bodyStyle:{padding:"32px 40px 48px"},destroyOnClose:!0,title:"\u7ED3\u7B97\u8BE6\u60C5",visible:!0,footer:!1,onCancel:function(){return t.onCancel()},maskClosable:!1,children:(0,e.jsxs)(Fe.Z,{children:[(0,e.jsx)(o.Z,{title:"\u7ED3\u7B97\u8BE6\u60C5",type:"inner",style:{height:120},children:(0,e.jsx)("div",{style:{float:"center",height:100},children:(0,e.jsx)(L.Z,{style:{float:"center"},title:"\u7ED3\u7B97\u91D1\u989D",value:t.values.refund.settlementMoney,prefix:"\xA5"})})}),t.values.refund.refundOrderId!=""?(0,e.jsxs)(o.Z,{title:"\u9000\u6B3E\u91D1\u989D",type:"inner",extra:t.values.refund.refundMoney,children:[(0,e.jsx)(o.Z.Grid,{hoverable:!1,style:Ce,children:"\u5546\u54C1\u4FE1\u606F"}),(0,e.jsx)("br",{}),t.values.goodsList==null?"":t.values.goodsList.map(function(m,q){return(0,e.jsxs)(o.Z.Grid,{hoverable:!1,style:{width:"100%",textAlign:"center"},children:[(0,e.jsx)(P.Z,{value:m.goodsName,style:{width:"33%",textAlign:"center"},disabled:!1}),(0,e.jsx)(P.Z,{value:"".concat(m.goodsNum,"\u4EFD"),style:{width:"33%",textAlign:"center"}}),(0,e.jsx)(P.Z,{value:"\xA5 ".concat(m.goodsRealPrice),style:{width:"33%",textAlign:"center"}})]})})]}):(0,e.jsxs)(o.Z,{title:"\u5546\u54C1\u603B\u4EF7",type:"inner",extra:t.values.refund.orderOriginalMoney,children:[(0,e.jsx)(o.Z.Grid,{hoverable:!1,style:Ce,children:"\u5546\u54C1\u4FE1\u606F"}),(0,e.jsx)("br",{}),t.values.goodsList==null?"":t.values.goodsList.map(function(m,q){return(0,e.jsxs)(o.Z.Grid,{hoverable:!1,style:{width:"100%",textAlign:"center"},children:[(0,e.jsx)(P.Z,{value:m.goodsName,style:{width:"33%",textAlign:"center"},disabled:!1}),(0,e.jsx)(P.Z,{value:"".concat(m.goodsNum,"\u4EFD"),style:{width:"33%",textAlign:"center"}}),(0,e.jsx)(P.Z,{value:"\xA5 ".concat(m.goodsRealPrice),style:{width:"33%",textAlign:"center"}})]})})]}),t.values.refund.refundOrderId==""&&t.values.refund.discountMoney!=0?(0,e.jsxs)(o.Z,{style:{height:100},type:"inner",title:"\u4F18\u60E0\u652F\u51FA",extra:t.values.refund.discountMoney,children:[(0,e.jsx)(o.Z.Grid,{hoverable:!1,style:F,children:t.values.refund.couponTypeValue==""||t.values.refund.couponTypeValue==null?"\u4F18\u60E0\u652F\u51FA":t.values.refund.couponTypeValue}),(0,e.jsx)(o.Z.Grid,{hoverable:!1,style:{width:"66%",textAlign:"right",height:"20px"},children:"\xA5 ".concat(t.values.refund.discountMoney)})]}):null,t.values.refund.refundOrderId==""&&t.values.refund.businessPrice!=0?(0,e.jsxs)(o.Z,{style:{height:100},type:"inner",title:t.values.refund.refundOrderId==""?"\u5E73\u53F0\u8D39\u652F\u51FA":"\u5E73\u53F0\u9000\u6B3E",extra:t.values.refund.businessPrice,children:[(0,e.jsx)(o.Z.Grid,{hoverable:!1,style:F,children:t.values.refund.refundOrderId==""?"\u5E73\u53F0\u6280\u672F\u670D\u52A1\u8D39":"\u9000\u6B3E\u91D1\u989D"}),(0,e.jsxs)(o.Z.Grid,{hoverable:!1,style:{width:"66%",textAlign:"right",height:"20px"},children:[t.values.refund.businessPrice,"\xA5"]})]}):null,(0,e.jsxs)(o.Z,{type:"inner",title:"\u8BA2\u5355\u4FE1\u606F",children:[(0,e.jsx)(o.Z.Grid,{hoverable:!1,style:F,children:"\u8BA2\u5355\u7F16\u53F7"}),(0,e.jsx)(o.Z.Grid,{hoverable:!1,style:{width:"66%",textAlign:"left",height:"10px"},children:t.values.refund.orderId}),(0,e.jsx)(o.Z.Grid,{hoverable:!1,style:F,children:"\u8BA2\u5355\u53F7"}),(0,e.jsx)(o.Z.Grid,{hoverable:!1,style:{width:"66%",textAlign:"left",height:"10px"},children:t.values.refund.orderNumber}),(0,e.jsx)(o.Z.Grid,{hoverable:!1,style:F,children:"\u4E0B\u5355\u65F6\u95F4"}),(0,e.jsxs)(o.Z.Grid,{hoverable:!1,style:{width:"66%",textAlign:"left",height:"10px"},children:[" ",t.values.refund.createdAt]}),(0,e.jsx)(o.Z.Grid,{hoverable:!1,style:F,children:"\u8BA2\u5355\u5B8C\u6210\u65F6\u95F4"}),(0,e.jsxs)(o.Z.Grid,{hoverable:!1,style:{width:"66%",textAlign:"left",height:"10px"},children:[" ",t.values.refund.completeTakeTime]})]}),t.values.refund.refundOrderId!=""?(0,e.jsxs)(o.Z,{type:"inner",title:"\u9000\u6B3E\u8BA2\u5355\u4FE1\u606F",children:[(0,e.jsx)(o.Z.Grid,{hoverable:!1,style:F,children:"\u8BA2\u5355\u7F16\u53F7"}),(0,e.jsxs)(o.Z.Grid,{hoverable:!1,style:{width:"66%",textAlign:"left",height:"10px"},children:[" ",t.values.refund.refundOrderId]}),(0,e.jsx)(o.Z.Grid,{hoverable:!1,style:F,children:"\u8BA2\u5355\u53F7"}),(0,e.jsxs)(o.Z.Grid,{hoverable:!1,style:{width:"66%",textAlign:"left",height:"10px"},children:[" ",t.values.refund.refundOrderNumber]}),(0,e.jsx)(o.Z.Grid,{hoverable:!1,style:F,children:"\u4E0B\u5355\u65F6\u95F4"}),(0,e.jsxs)(o.Z.Grid,{hoverable:!1,style:{width:"66%",textAlign:"left",height:"10px"},children:[" ",t.values.refund.refundCreatedAt]}),(0,e.jsx)(o.Z.Grid,{hoverable:!1,style:F,children:"\u8BA2\u5355\u5B8C\u6210\u65F6\u95F4"}),(0,e.jsxs)(o.Z.Grid,{hoverable:!1,style:{width:"66%",textAlign:"left",height:"10px"},children:[" ",t.values.refund.refundTime]})]}):null]})})},Qe=Ke,Ue=a(30381),N=a.n(Ue),Xe=function(t){var E="YYYY-MM-DD",M=(0,s.useRef)(),m=Ee.Z.Text,q=P.Z.TextArea,_=Je.Z.RangePicker,oe=(0,s.useState)([]),Y=(0,c.Z)(oe,2),ce=Y[0],ee=Y[1],B=(0,s.useState)([]),b=(0,c.Z)(B,2),fe=b[0],G=b[1],W=(0,s.useState)(0),z=(0,c.Z)(W,2),he=z[0],te=z[1],xe=(0,s.useState)(0),k=(0,c.Z)(xe,2),ve=k[0],ne=k[1],Me=(0,s.useState)(0),ae=(0,c.Z)(Me,2),ye=ae[0],re=ae[1],Be=(0,s.useState)(0),ie=(0,c.Z)(Be,2),Se=ie[0],ge=ie[1],$=(0,s.useState)(0),ue=(0,c.Z)($,2),me=ue[0],le=ue[1],H=(0,s.useState)(0),J=(0,c.Z)(H,2),Ie=J[0],se=J[1],Ze=(0,s.useState)(0),I=(0,c.Z)(Ze,2),v=I[0],u=I[1],S=(0,s.useState)([]),f=(0,c.Z)(S,2),r=f[0],n=f[1],y=(0,s.useState)([]),j=(0,c.Z)(y,2),A=j[0],w=j[1],at=(0,s.useState)(""),pe=(0,c.Z)(at,2),je=pe[0],be=pe[1],rt=(0,s.useState)(""),Le=(0,c.Z)(rt,2),Ae=Le[0],Pe=Le[1],it=(0,s.useState)(""),Re=(0,c.Z)(it,2),Ge=Re[0],ut=Re[1],lt=(0,s.useState)(),we=(0,c.Z)(lt,2),Oe=we[0],Ye=we[1],st=(0,s.useState)(),Ve=(0,c.Z)(st,2),dt=Ve[0],Ne=Ve[1],ot=(0,s.useState)([]),We=(0,c.Z)(ot,2),ct=We[0],ft=We[1];(0,s.useEffect)(function(){w([t.values.storeId]),n([t.values.storeTypeId]);function x(){Z.srdTypeList().then(function(i){var l=i.data;l.forEach(function(d){d.value=d.id,d.label=d.name}),ee(l)}),t.values.storeTypeId!=""&&t.values.storeTypeId!=null?Z.StoreList([t.values.storeTypeId]).then(function(i){var l=i.data;l.forEach(function(d){d.value=d.id,d.label=d.name}),G(l)}):Z.srdList().then(function(i){var l=i.data;l.forEach(function(d){d.value=d.id,d.label=d.name}),G(l)})}x()},[]);var ht=function(){var x=(0,de.Z)((0,O.Z)().mark(function i(l){return(0,O.Z)().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:return g.next=2,Z.sumFinance(l).then(function(h){h.data&&(te(h.data.orderOriginalMoney),ne(h.data.discountMoney),re(h.data.orderRealMoney),le(h.data.refundMoney),se(h.data.settlementMoney),ut(h.data.splittingDate),u(h.data.splittingMoney))});case 2:case"end":return g.stop()}},i)}));return function(l){return x.apply(this,arguments)}}(),xt=[{title:"\u4E3B\u952E",dataIndex:"orderId",hideInTable:!0,hideInSearch:!0},{title:"\u8BA2\u5355\u65F6\u95F4",dataIndex:"createdAt",valueType:"date",hideInSearch:!0},{title:"\u8BA2\u5355\u7F16\u53F7",dataIndex:"orderNumber",hideInSearch:!0},{title:"\u8BA2\u5355\u7C7B\u578B",dataIndex:"orderType",hideInSearch:!0,valueEnum:{0:{text:"\u6B63\u5E38\u8BA2\u5355",status:"Processing"},1:{text:"\u7ACB\u5373\u5403\u9762",status:"Error"},2:{text:"\u76F2\u76D2",status:"Error"},3:{text:"\u5176\u4ED6",status:"Error"},"-1":{text:"\u9000\u6B3E",status:"Error"}}},{title:"\u6D41\u6C34\u91D1\u989D",dataIndex:"orderOriginalMoney",key:"orderOriginalMoney",renderText:function(i){return"".concat(i,"\xA5")},hideInSearch:!0},{title:"\u4F18\u60E0\u91D1\u989D",dataIndex:"discountMoney",key:"discountMoney",renderText:function(i){return"".concat(i,"\xA5")},hideInSearch:!0},{title:"\u987E\u5BA2\u5B9E\u4ED8",dataIndex:"orderRealMoney",key:"orderRealMoney",renderText:function(i){return"".concat(i,"\xA5")},hideInSearch:!0},{title:"\u5E73\u53F0\u8D39\u7528",dataIndex:"businessPrice",key:"businessPrice",renderText:function(i){return"".concat(i,"\xA5")},hideInSearch:!0},{title:"\u9000\u6B3E\u91D1\u989D",dataIndex:"refundMoney",key:"refundMoney",renderText:function(i){return"".concat(i,"\xA5")},hideInSearch:!0},{title:"\u7ED3\u7B97\u91D1\u989D",dataIndex:"settlementMoney",key:"settlementMoney",renderText:function(i){return"".concat(i,"\xA5")},hideInSearch:!0},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(i,l){var d=[(0,e.jsx)("a",{type:"primary",onClick:function(){Ne(!0),Z.setSettlementDetail(l,l.orderId,l.orderType).then(function(h){ft(h.data),Ye(l)})},children:"\u8BE6\u60C5"},"primary")];return d}}];return(0,e.jsxs)(De.Z,{width:1200,bodyStyle:{padding:"32px 40px 48px"},destroyOnClose:!0,title:"\u8D26\u5355\u8BE6\u60C5",visible:!0,footer:!1,onCancel:function(){return t.onCancel()},maskClosable:!1,children:[(0,e.jsxs)(Fe.Z,{children:[(0,e.jsxs)(s.Suspense,{children:[(0,e.jsx)(U.Z,{children:(0,e.jsxs)(X.Z,{children:[(0,e.jsxs)(V.Z,{size:"middle",children:["\u5E97\u94FA\u5206\u7C7B:",(0,e.jsx)(Q.Z,{mode:"multiple",showArrow:!0,placeholder:"\u8BF7\u9009\u62E9\u5E97\u94FA\u5206\u7C7B",label:"\u5E97\u94FA\u5206\u7C7B",defaultValue:t.values.storeTypeId!=null&&t.values.storeTypeId!=""?t.values.storeTypeId:[],name:"storeTypeId",style:{width:285},onChange:function(i){n(i),i.length>0?Z.StoreList(i).then(function(l){var d=l.data;if(d.forEach(function(h){h.value=h.id,h.label=h.name}),G(d),d.length==0)w([]);else if(d.length){var g=[];d.forEach(function(h){A.length>0&&A.forEach(function(p){p==h.id&&g.push(h.id)})}),g.length>0?w(g):w([])}A!=""&&M.current.reload()}):(w([]),n([]),Z.srdList().then(function(l){var d=l.data;d.forEach(function(g){g.value=g.id,g.label=g.name}),G(d),A!=""&&M.current.reload()}))},children:ce.map(function(x){return(0,e.jsx)(Option,{value:x.id,children:x.name})})}),"\xA0 \xA0"]}),(0,e.jsxs)(V.Z,{size:"middle",children:["\u5E97\u94FA\u540D\u79F0:",(0,e.jsx)(Q.Z,{mode:"multiple",showArrow:!0,placeholder:"\u8BF7\u9009\u62E9\u5E97\u94FA\u540D\u79F0",label:"\u5E97\u94FA\u540D\u79F0",value:A,name:"storeId",style:{width:285},onChange:function(i){w(i),M.current.reload()},onClear:function(i){w(i)},children:fe.map(function(x){return(0,e.jsx)(Option,{value:x.id,children:x.name})})})]})]})}),(0,e.jsx)("br",{}),(0,e.jsx)(U.Z,{children:(0,e.jsxs)(X.Z,{children:["\u8BA2\u5355\u65E5\u671F:",(0,e.jsx)(V.Z,{size:"small",children:(0,e.jsx)(_,{defaultValue:[N()(t.values.createdAt,E),N()(t.values.endTime,E)],size:32,style:{left:15},onChange:function(i){i!=null?(be(i[0].format("YYYY-MM-DD")),Pe(i[1].format("YYYY-MM-DD"))):(be(N()(new Date,E)),Pe(N()(new Date,E))),M.current.reload()}})}),"\xA0\xA0\xA0\xA0\xA0\xA0\xA0\xA0\xA0\xA0",(0,e.jsxs)(V.Z,{size:"middle",children:["\u9884\u8BA1\u5206\u8D26:",(0,e.jsx)(P.Z,{title:"",disabled:!1,value:"\u9884\u8BA1".concat(Ge!=null?Ge:N()(new Date,E),"\u5206\u8D26"),style:{float:"right",width:285}})]})]})}),(0,e.jsx)(U.Z,{children:(0,e.jsx)(X.Z,{children:(0,e.jsx)(o.Z,{title:"",bordered:!1,style:{width:"100%"},children:(0,e.jsxs)("div",{children:[(0,e.jsx)("div",{style:{float:"center"},children:(0,e.jsx)(L.Z,{style:{float:"center"},title:"",value:v!=0?v.toFixed(2):v,prefix:"\xA5"})}),(0,e.jsxs)(V.Z,{size:"large",children:[(0,e.jsx)(L.Z,{title:"\u6D41\u6C34\u91D1\u989D",value:he,style:{float:"left"},xl:18}),(0,e.jsx)(L.Z,{title:"\u4F18\u60E0\u91D1\u989D",value:ve,style:{float:"left"}}),(0,e.jsx)(L.Z,{title:"\u987E\u5BA2\u5B9E\u4ED8",value:ye,style:{float:"left"}}),(0,e.jsx)(L.Z,{title:"\u5E73\u53F0\u8D39\u7528",value:Se,style:{float:"left"}}),(0,e.jsx)(L.Z,{title:"\u9000\u6B3E\u91D1\u989D",value:me,style:{float:"left"}}),(0,e.jsx)(L.Z,{title:"\u7ED3\u7B97\u91D1\u989D",value:Ie,style:{float:"left"}})]})]})})})})]}),(0,e.jsx)(s.Suspense,{children:(0,e.jsx)(U.Z,{children:(0,e.jsx)(X.Z,{span:24,children:(0,e.jsx)(D.ZP,{actionRef:M,rowKey:"id",search:{optionRender:!1,collapsed:!1},pagination:{showQuickJumper:!0},toolBarRender:!1,request:function(){var x=(0,de.Z)((0,O.Z)().mark(function i(l,d,g){var h,p;return(0,O.Z)().wrap(function(T){for(;;)switch(T.prev=T.next){case 0:if(h=[],p=0,r!=""&&(l.storeTypeId=r),A!=""&&(l.storeId=A),je==null||je==""?l.createdAt=t.values.createdAt:l.createdAt=je,Ae==null||Ae==""?l.endTime=t.values.endTime:l.endTime=Ae,ht(l),A==""){T.next=10;break}return T.next=10,Z.finaceDeatal(l).then(function(ze){h=ze.data.data,p=ze.data.total});case 10:return T.abrupt("return",{data:h,success:!0,total:p});case 11:case"end":return T.stop()}},i)}));return function(i,l,d){return x.apply(this,arguments)}}(),summary:function(i){var l=0,d=0,g=0,h=0,p=0,K=0;return i.forEach(function(T){l+=T.orderOriginalMoney,d+=T.discountMoney,g+=T.orderRealMoney,p+=T.refundMoney,K+=T.settlementMoney}),(0,e.jsxs)(D.ZP.Summary.Row,{children:[(0,e.jsx)(D.ZP.Summary.Cell,{children:"\u603B\u8BA1"}),(0,e.jsx)(D.ZP.Summary.Cell,{colSpan:2,children:(0,e.jsx)(m,{type:"danger"})}),(0,e.jsx)(D.ZP.Summary.Cell,{children:(0,e.jsxs)(m,{children:[l!=0?l.toFixed(2):l,"\xA5"]})}),(0,e.jsx)(D.ZP.Summary.Cell,{children:(0,e.jsxs)(m,{children:[d!=0?d.toFixed(2):d,"\xA5"]})}),(0,e.jsx)(D.ZP.Summary.Cell,{children:(0,e.jsxs)(m,{children:[g!=0?g.toFixed(2):g,"\xA5"]})}),(0,e.jsx)(D.ZP.Summary.Cell,{children:(0,e.jsxs)(m,{children:[h!=0?h.toFixed(2):h,"\xA5"]})}),(0,e.jsx)(D.ZP.Summary.Cell,{children:(0,e.jsxs)(m,{children:[p!=0?p.toFixed(2):p,"\xA5"]})}),(0,e.jsx)(D.ZP.Summary.Cell,{colSpan:2,children:(0,e.jsxs)(m,{children:[K!=0?K.toFixed(2):K,"\xA5"]})})]})},columns:xt})})})})]}),Oe&&Object.keys(Oe).length?(0,e.jsx)(Qe,{onCancel:function(){Ne(!0),Ye({})},setsecondDetailVisible:dt,values:ct}):null]})},qe=Xe,_e=a(53667),et=a.n(_e),Ft=a(96486),tt=function(){var t=(0,s.useState)([]),E=(0,c.Z)(t,2),M=E[0],m=E[1],q=(0,s.useState)([]),_=(0,c.Z)(q,2),oe=_[0],Y=_[1],ce=(0,s.useState)([]),ee=(0,c.Z)(ce,2),B=ee[0],b=ee[1],fe=(0,s.useState)(),G=(0,c.Z)(fe,2),W=G[0],z=G[1],he=(0,s.useState)(),te=(0,c.Z)(he,2),xe=te[0],k=te[1],ve=(0,s.useState)(""),ne=(0,c.Z)(ve,2),Me=ne[0],ae=ne[1],ye=(0,s.useState)(""),re=(0,c.Z)(ye,2),Be=re[0],ie=re[1],Se=(0,s.useState)([]),ge=(0,c.Z)(Se,2),$=ge[0],ue=ge[1],me=(0,s.useState)([]),le=(0,c.Z)(me,2),H=le[0],J=le[1],Ie=(0,s.useRef)();(0,s.useEffect)(function(){function I(){Z.srdTypeList().then(function(u){var S=u.data;S.forEach(function(f){f.value=f.id,f.label=f.name}),m(S)})}function v(){Z.srdList().then(function(u){var S=u.data;S.forEach(function(f){f.value=f.id,f.label=f.name}),Y(S)})}I(),v()},[]);function se(I){var v=[{title:"\u5E97\u94FA\u5206\u7C7B",dataIndex:"storeTypeName",hideInSearch:!0},{title:"\u5E97\u94FA\u540D\u79F0",dataIndex:"storeName",hideInSearch:!0},{title:"\u8BA2\u5355\u65F6\u95F4",dataIndex:"createdAt",valueType:"date"},{title:"\u8BA2\u5355\u7F16\u53F7",dataIndex:"orderNumber",hideInSearch:!0},{title:"\u8BA2\u5355\u7C7B\u578B",dataIndex:"orderType",hideInSearch:!0},{title:"\u6D41\u6C34\u91D1\u989D",dataIndex:"orderOriginalMoney",renderText:function(n){return"".concat(n,"\xA5")},hideInSearch:!0},{title:"\u4F18\u60E0\u91D1\u989D",dataIndex:"discountMoney",renderText:function(n){return"".concat(n,"\xA5")},hideInSearch:!0},{title:"\u987E\u5BA2\u5B9E\u4ED8",dataIndex:"orderRealMoney",renderText:function(n){return"".concat(n,"\xA5")},hideInSearch:!0},{title:"\u5E73\u53F0\u8D39\u7528",dataIndex:"businessPrice",renderText:function(n){return"".concat(n,"\xA5")},hideInSearch:!0},{title:"\u9000\u6B3E\u91D1\u989D",dataIndex:"refundMoney",renderText:function(n){return"".concat(n,"\xA5")},hideInSearch:!0},{title:"\u7ED3\u7B97\u91D1\u989D",dataIndex:"settlementMoney",renderText:function(n){return"".concat(n,"\xA5")},hideInSearch:!0},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(n,y){var j=[(0,e.jsx)("a",{type:"primary",onClick:function(){},children:"\u8BE6\u60C5"},"primary")];return j}}],u={},S=[];v.map(function(r,n){n<11&&S.push(r)}),u.fileName="\u8D22\u52A1\u8D26\u5355\u8BE6\u60C5",u.datas=[{sheetData:I.map(function(r){var n={};return v.forEach(function(y,j){j<11&&(j==4?r[y.dataIndex]==0?n[y.dataIndex]="\u6B63\u5E38\u8BA2\u5355":r[y.dataIndex]=="1"?n[y.dataIndex]="\u7ACB\u5373\u5403\u9762":r[y.dataIndex]=="2"?n[y.dataIndex]="\u76F2\u76D2":r[y.dataIndex]=="3"?n[y.dataIndex]="\u5176\u4ED6":r[y.dataIndex]=="-1"?n[y.dataIndex]="\u9000\u6B3E":r[y.dataIndex]=="-2"?n[y.dataIndex]="\u5408\u8BA1":n[y.dataIndex]="\u5176\u4ED6":n[y.dataIndex]=r[y.dataIndex])}),n}),sheetName:"\u8D22\u52A1\u8D26\u5355\u8BE6\u60C5",sheetFilter:S.map(function(r){return r.dataIndex}),sheetHeader:S.map(function(r){return r.title}),columnWidths:S.map(function(){return 10})}];var f=new(et())(u);f.saveExcel()}var Ze=[{title:"\u5E97\u94FA\u5206\u7C7B",dataIndex:"storeTypeId",hideInTable:!0,width:120,renderFormItem:function(){return(0,e.jsx)(Q.Z,{mode:"multiple",showArrow:!0,placeholder:"\u8BF7\u9009\u62E9\u5E97\u94FA\u5206\u7C7B",style:{width:"100%"},options:M,onChange:function(u){J(u),u.length>0?Z.StoreList(u).then(function(S){var f=S.data;if(f.forEach(function(n){n.value=n.id,n.label=n.name}),Y(f),f.length==0)b([]);else if(f.length){var r=[];f.forEach(function(n){B.length>0&&B.forEach(function(y){y==n.id&&r.push(n.id)})}),r.length>0?b(r):b([])}}):(J([]),b([]),Z.srdList().then(function(S){var f=S.data;f.forEach(function(r){r.value=r.id,r.label=r.name}),Y(f)}))}})}},{title:"\u5E97\u94FA\u5206\u7C7B",dataIndex:"storeTypeName",hideInForm:!0,hideInSearch:!0},{title:"\u5E97\u94FA\u540D\u79F0",dataIndex:"storeId",hideInTable:!0,width:120,renderFormItem:function(){return(0,e.jsx)(Q.Z,{mode:"multiple",showArrow:!0,placeholder:"\u8BF7\u9009\u62E9\u5E97\u94FA",style:{width:"100%"},options:oe,value:B,onChange:function(u){b(u)},onClear:function(u){b(u)}})}},{title:"\u5E97\u94FA\u540D\u79F0",dataIndex:"storeName",hideInForm:!0,hideInSearch:!0},{title:"\u8BA2\u5355\u65F6\u95F4",dataIndex:"createdAt",valueType:"date",hideInForm:!0,hideInSearch:!0},{title:"\u8BA2\u5355\u65F6\u95F4",dataIndex:"createdAt",hideInTable:!0,valueType:"dateRange",search:{transform:function(v){return{createdAt:v[0],endTime:v[1]}}}},{title:"\u7ED3\u7B97\u91D1\u989D",dataIndex:"settlementMoney",renderText:function(v){return"".concat(v,"\xA5")},hideInSearch:!0},{title:"\u5206\u8D26\u91D1\u989D",dataIndex:"businessPrice",hideInSearch:!0,renderText:function(v){return"".concat(v,"\xA5")}},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(v,u){var S=[(0,e.jsx)("a",{type:"primary",onClick:function(){k(!0),z(u)},children:"\u67E5\u770B"},"primary"),(0,e.jsx)("a",{type:"primary",onClick:function(){u.storeTypeId=[u.storeTypeId]==""?null:[u.storeTypeId],u.storeId=[u.storeId],Z.financeSummaryList(u).then(function(r){r.data&&se(r.data)})},children:"\u4E0B\u8F7D"},"primary")];return S}}];return(0,e.jsxs)(He.ZP,{children:[(0,e.jsx)(D.ZP,{headerTitle:"\u8D22\u52A1\u8D26\u5355\u67E5\u8BE2",actionRef:Ie,search:{labelWidth:120},toolBarRender:function(){return[(0,e.jsxs)(ke.Z,{type:"primary",onClick:function(){$!=null&&$!=""&&Z.financeSummaryList($).then(function(u){se(u.data)})},children:[(0,e.jsx)($e.Z,{})," \u4E0B\u8F7D"]},"create")]},columns:Ze,request:function(){var I=(0,de.Z)((0,O.Z)().mark(function v(u,S,f){var r,n;return(0,O.Z)().wrap(function(j){for(;;)switch(j.prev=j.next){case 0:if(r=[],n=0,H!=null&&H.length>0&&(u.storeTypeId=H),u.createdAt!=null&&ae(u.createdAt),u.endTime!=null&&ie(u.endTime),B!=null&&B.length>0&&(u.storeId=B),ue(u),!(B!=null&&B.length>0)){j.next=10;break}return j.next=10,Z.finaceList(u).then(function(A){r=A.data.data,n=A.data.total});case 10:return j.abrupt("return",{data:r,success:!0,total:n});case 11:case"end":return j.stop()}},v)}));return function(v,u,S){return I.apply(this,arguments)}}()}),W&&Object.keys(W).length?(0,e.jsx)(qe,{onCancel:function(){k(!0),z({})},setfinanceDetailVisible:xe,values:W}):null]})},nt=tt}}]); diff --git a/dist/p__foodMenu__storeFoodMenu.3baedcd8.async.js b/dist/p__foodMenu__storeFoodMenu.3baedcd8.async.js deleted file mode 100644 index 58f1a8f..0000000 --- a/dist/p__foodMenu__storeFoodMenu.3baedcd8.async.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[3174,1322],{1983:function(ie,W,n){"use strict";n.r(W),n.d(W,{default:function(){return te}});var oe=n(57663),K=n(71577),de=n(62350),L=n(24565),R=n(2824),t=n(39428),T=n(11849),ce=n(34792),m=n(48086),p=n(3182),x=n(49101),y=n(67294),z=n(78009),G=n(16894),fe=n(71194),U=n(50146),b=n(48971);function H(u,r){return k.apply(this,arguments)}function k(){return k=(0,p.Z)((0,t.Z)().mark(function u(r,l){return(0,t.Z)().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return o.abrupt("return",(0,b.WY)("/kitchen/api/FoodMenu/GetStoreFoodMenuPage",{method:"POST",data:(0,T.Z)({},r)}));case 1:case"end":return o.stop()}},u)})),k.apply(this,arguments)}function J(u){return j.apply(this,arguments)}function j(){return j=(0,p.Z)((0,t.Z)().mark(function u(r){return(0,t.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,b.WY)("/kitchen/api/FoodMenu/StoreAddFoodMenu",{method:"POST",data:(0,T.Z)({},r)}));case 1:case"end":return e.stop()}},u)})),j.apply(this,arguments)}function N(u){return D.apply(this,arguments)}function D(){return D=(0,p.Z)((0,t.Z)().mark(function u(r){return(0,t.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,b.WY)("\u200B/kitchen/api/FoodMenu/DelStoreFoodMenu",{method:"POST",data:r}));case 1:case"end":return e.stop()}},u)})),D.apply(this,arguments)}function Q(u){return A.apply(this,arguments)}function A(){return A=(0,p.Z)((0,t.Z)().mark(function u(r){return(0,t.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,b.WY)("/kitchen/\u200Bapi/FoodMenu/tree",{data:(0,T.Z)({},r)}));case 1:case"end":return e.stop()}},u)})),A.apply(this,arguments)}function X(u){return B.apply(this,arguments)}function B(){return B=(0,p.Z)((0,t.Z)().mark(function u(r){return(0,t.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,b.WY)("/kitchen/\u200Bapi/FoodMenu/GetStorePage",{method:"POST",data:(0,T.Z)({},r)}));case 1:case"end":return e.stop()}},u)})),B.apply(this,arguments)}var Z=n(85893),q=function(r){console.log("fdsfadsa",r.modalVisible);var l=(0,y.useState)([]),e=(0,R.Z)(l,2),o=e[0],a=e[1],F=[{title:"\u5546\u54C1id",dataIndex:"id",tip:"\u89C4\u5219\u540D\u79F0\u662F\u552F\u4E00\u7684 key",hideInSearch:!0,hideInTable:!0},{title:"\u95E8\u5E97\u540D\u79F0",dataIndex:"name"}];return(0,Z.jsx)(U.Z,{width:700,bodyStyle:{padding:"32px 40px 48px"},destroyOnClose:!0,title:"\u9009\u62E9\u95E8\u5E97",visible:r.modalVisible,onCancel:function(){return r.onCancel()},onOk:function(){return r.onSubmit(o)},maskClosable:!1,children:(0,Z.jsx)(G.ZP,{headerTitle:"\u5546\u54C1\u4FE1\u606F",rowKey:"id",pagination:{defaultPageSize:20},search:!1,toolBarRender:!1,params:{FoodMenuId:r.values},request:function(){var s=(0,p.Z)((0,t.Z)().mark(function S(I){var $,w;return(0,t.Z)().wrap(function(M){for(;;)switch(M.prev=M.next){case 0:return $=[],w=0,M.next=4,X(I).then(function(E){$=E.data.data,w=E.data.total});case 4:return M.abrupt("return",{data:$,success:!0,total:w});case 5:case"end":return M.stop()}},S)}));return function(S){return s.apply(this,arguments)}}(),columns:F,rowSelection:{onChange:function(S,I){return a(I)}}})})},_=q,ee=function(){var u=(0,p.Z)((0,t.Z)().mark(function r(l){var e;return(0,t.Z)().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:if(l.FoodMenuId!=null){a.next=3;break}return m.default.error("\u8BF7\u9009\u62E9\u83DC\u8C31"),a.abrupt("return",!1);case 3:return e=m.default.loading("\u6B63\u5728\u6DFB\u52A0"),a.prev=4,a.next=7,J((0,T.Z)({},l)).then(function(F){return F.succeeded?(e(),m.default.success("\u6DFB\u52A0\u6210\u529F"),!0):(m.default.error(F.errors),e(),!1)});case 7:return a.abrupt("return",!0);case 10:return a.prev=10,a.t0=a.catch(4),e(),m.default.error("\u6DFB\u52A0\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),a.abrupt("return",!1);case 15:case"end":return a.stop()}},r,null,[[4,10]])}));return function(l){return u.apply(this,arguments)}}(),re=function(){var u=(0,p.Z)((0,t.Z)().mark(function r(l,e){var o,a;return(0,t.Z)().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.prev=0,o=m.default.loading("\u6B63\u5728\u5220\u9664"),a=[],l.forEach(function(S){a.push(S.id)}),s.next=6,N({storeIds:a,foodMenuId:e}).then(function(S){return o(),S.data?(m.default.success("\u5220\u9664\u6210\u529F"),!0):(m.default.error("\u5220\u9664\u5931\u8D25"),!1)});case 6:s.next=12;break;case 8:return s.prev=8,s.t0=s.catch(0),m.default.error("\u5220\u9664\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),s.abrupt("return",!1);case 12:case"end":return s.stop()}},r,null,[[0,8]])}));return function(l,e){return u.apply(this,arguments)}}(),ae=function(){var r=(0,y.useState)(),l=(0,R.Z)(r,2),e=l[0],o=l[1],a=(0,y.useRef)(),F=(0,y.useState)(),s=(0,R.Z)(F,2),S=s[0],I=s[1],$=(0,y.useState)(),w=(0,R.Z)($,2),ne=w[0],M=w[1],E=(0,y.useState)(),V=(0,R.Z)(E,2),g=V[0],Y=V[1],ue=[{title:"\u83DC\u8C31\u5217\u8868",dataIndex:"menuList",valueType:"treeSelect",hideInTable:!0,fieldProps:{options:S,value:g,onChange:function(d){Y(d)}}},{title:"\u5E97\u94FA\u540D\u79F0",dataIndex:"name",search:!1},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(d,c){return[(0,Z.jsx)(L.Z,{title:"\u786E\u5B9A\u8981\u5C06\u3010".concat(c.name,"\u3011\u79FB\u51FA\u6B64\u83DC\u8C31\u5417\uFF1F"),onConfirm:function(){return se(c)},okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",children:(0,Z.jsx)("a",{children:"\u79FB\u9664\u95E8\u5E97"},"delete")})]}}],se=function(){var h=(0,p.Z)((0,t.Z)().mark(function d(c){var f,v;return(0,t.Z)().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,re([c],g);case 2:(f=a.current)===null||f===void 0||(v=f.reloadAndRest)===null||v===void 0||v.call(f);case 3:case"end":return i.stop()}},d)}));return function(c){return h.apply(this,arguments)}}();return(0,y.useEffect)(function(){function h(){Q().then(function(d){var c;Y((c=d.data[0])===null||c===void 0?void 0:c.key),I(d.data)})}h()},[]),(0,y.useEffect)(function(){g&&a.current&&a.current.reload()},[g]),(0,Z.jsxs)(z.ZP,{children:[(0,Z.jsx)(G.ZP,{headerTitle:"\u5E97\u94FA\u5217\u8868",actionRef:a,rowKey:"id",search:{labelWidth:120},toolBarRender:function(){return[(0,Z.jsxs)(K.Z,{type:"primary",onClick:function(){o(!0)},children:[(0,Z.jsx)(x.Z,{})," \u9009\u62E9\u5E97\u94FA"]},"primary")]},params:{FoodMenuId:g},request:function(){var h=(0,p.Z)((0,t.Z)().mark(function d(c){var f,v;return(0,t.Z)().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:if(g){i.next=2;break}return i.abrupt("return");case 2:return f=[],v=0,i.next=6,H(c).then(function(O){f=O.data.data,v=O.data.total});case 6:return i.abrupt("return",{data:f,success:!0,total:v});case 7:case"end":return i.stop()}},d)}));return function(d){return h.apply(this,arguments)}}(),columns:ue}),(0,Z.jsx)(_,{onSubmit:function(){var h=(0,p.Z)((0,t.Z)().mark(function d(c){var f,v,P,i;return(0,t.Z)().wrap(function(C){for(;;)switch(C.prev=C.next){case 0:if(typeof g!=null){C.next=4;break}o(!1),C.next=13;break;case 4:return v=[],c.map(function(le){v.push({StoreId:le.id})}),P={FoodMenuId:g,StoreIds:v},i=!1,C.next=10,ee(P);case 10:i=C.sent,i&&o(!1),(f=a.current)===null||f===void 0||f.reload();case 13:case"end":return C.stop()}},d)}));return function(d){return h.apply(this,arguments)}}(),onCancel:function(){o(!1)},modalVisible:e,values:g})]})},te=ae}}]); diff --git a/dist/p__foodMenu__storeFoodMenu.7e1aebae.async.js b/dist/p__foodMenu__storeFoodMenu.7e1aebae.async.js new file mode 100644 index 0000000..4e93540 --- /dev/null +++ b/dist/p__foodMenu__storeFoodMenu.7e1aebae.async.js @@ -0,0 +1 @@ +(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[3174,1322],{1983:function(ie,W,n){"use strict";n.r(W),n.d(W,{default:function(){return te}});var oe=n(57663),K=n(71577),de=n(62350),L=n(24565),T=n(2824),t=n(39428),I=n(11849),ce=n(34792),m=n(48086),f=n(3182),U=n(49101),y=n(67294),x=n(78009),G=n(16894),fe=n(71194),z=n(50146),$=n(48971);function H(u,a){return k.apply(this,arguments)}function k(){return k=(0,f.Z)((0,t.Z)().mark(function u(a,l){return(0,t.Z)().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return i.abrupt("return",(0,$.WY)("/kitchen/api/FoodMenu/GetStoreFoodMenuPage",{method:"POST",data:(0,I.Z)({},a)}));case 1:case"end":return i.stop()}},u)})),k.apply(this,arguments)}function J(u){return j.apply(this,arguments)}function j(){return j=(0,f.Z)((0,t.Z)().mark(function u(a){return(0,t.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,$.WY)("/kitchen/api/FoodMenu/StoreAddFoodMenu",{method:"POST",data:(0,I.Z)({},a)}));case 1:case"end":return e.stop()}},u)})),j.apply(this,arguments)}function N(u){return D.apply(this,arguments)}function D(){return D=(0,f.Z)((0,t.Z)().mark(function u(a){return(0,t.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,$.WY)("\u200B/kitchen/api/FoodMenu/DelStoreFoodMenu",{method:"POST",data:a}));case 1:case"end":return e.stop()}},u)})),D.apply(this,arguments)}function Q(u){return A.apply(this,arguments)}function A(){return A=(0,f.Z)((0,t.Z)().mark(function u(a){return(0,t.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,$.WY)("/kitchen/\u200Bapi/FoodMenu/tree",{data:(0,I.Z)({},a)}));case 1:case"end":return e.stop()}},u)})),A.apply(this,arguments)}function X(u){return B.apply(this,arguments)}function B(){return B=(0,f.Z)((0,t.Z)().mark(function u(a){return(0,t.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,$.WY)("/kitchen/\u200Bapi/FoodMenu/GetStorePage",{method:"POST",data:(0,I.Z)({},a)}));case 1:case"end":return e.stop()}},u)})),B.apply(this,arguments)}var Z=n(85893),q=function(a){var l=(0,y.useState)([]),e=(0,T.Z)(l,2),i=e[0],r=e[1],C=[{title:"\u5546\u54C1id",dataIndex:"id",tip:"\u89C4\u5219\u540D\u79F0\u662F\u552F\u4E00\u7684 key",hideInSearch:!0,hideInTable:!0},{title:"\u95E8\u5E97\u540D\u79F0",dataIndex:"name"}];return(0,Z.jsx)(z.Z,{width:700,bodyStyle:{padding:"32px 40px 48px"},destroyOnClose:!0,title:"\u9009\u62E9\u95E8\u5E97",visible:a.modalVisible,onCancel:function(){return a.onCancel()},onOk:function(){return a.onSubmit(i)},maskClosable:!1,children:(0,Z.jsx)(G.ZP,{headerTitle:"\u5546\u54C1\u4FE1\u606F",rowKey:"id",pagination:{defaultPageSize:20},search:!1,toolBarRender:!1,params:{FoodMenuId:a.values},request:function(){var s=(0,f.Z)((0,t.Z)().mark(function S(b){var E,M;return(0,t.Z)().wrap(function(R){for(;;)switch(R.prev=R.next){case 0:return E=[],M=0,R.next=4,X(b).then(function(P){E=P.data.data,M=P.data.total});case 4:return R.abrupt("return",{data:E,success:!0,total:M});case 5:case"end":return R.stop()}},S)}));return function(S){return s.apply(this,arguments)}}(),columns:C,rowSelection:{onChange:function(S,b){return r(b)}}})})},_=q,O=[],ee=function(){var u=(0,f.Z)((0,t.Z)().mark(function a(l){var e;return(0,t.Z)().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(l.FoodMenuId!=null){r.next=3;break}return m.default.error("\u8BF7\u9009\u62E9\u83DC\u8C31"),r.abrupt("return",!1);case 3:return e=m.default.loading("\u6B63\u5728\u6DFB\u52A0"),r.prev=4,r.next=7,J((0,I.Z)({},l)).then(function(C){return C.succeeded?(e(),m.default.success("\u6DFB\u52A0\u6210\u529F"),!0):(m.default.error(C.errors),e(),!1)});case 7:return r.abrupt("return",!0);case 10:return r.prev=10,r.t0=r.catch(4),e(),m.default.error("\u6DFB\u52A0\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),r.abrupt("return",!1);case 15:case"end":return r.stop()}},a,null,[[4,10]])}));return function(l){return u.apply(this,arguments)}}(),re=function(){var u=(0,f.Z)((0,t.Z)().mark(function a(l,e){var i,r;return(0,t.Z)().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.prev=0,i=m.default.loading("\u6B63\u5728\u5220\u9664"),r=[],l.forEach(function(S){r.push(S.id)}),s.next=6,N({storeIds:r,foodMenuId:e}).then(function(S){return i(),S.data?(m.default.success("\u5220\u9664\u6210\u529F"),!0):(m.default.error("\u5220\u9664\u5931\u8D25"),!1)});case 6:s.next=12;break;case 8:return s.prev=8,s.t0=s.catch(0),m.default.error("\u5220\u9664\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),s.abrupt("return",!1);case 12:case"end":return s.stop()}},a,null,[[0,8]])}));return function(l,e){return u.apply(this,arguments)}}(),ae=function(){var a=(0,y.useState)(),l=(0,T.Z)(a,2),e=l[0],i=l[1],r=(0,y.useRef)(),C=(0,y.useState)(),s=(0,T.Z)(C,2),S=s[0],b=s[1],E=(0,y.useState)(),M=(0,T.Z)(E,2),ne=M[0],R=M[1],P=(0,y.useState)(),Y=(0,T.Z)(P,2),g=Y[0],V=Y[1],ue=[{title:"\u83DC\u8C31\u5217\u8868",dataIndex:"menuList",valueType:"treeSelect",hideInTable:!0,fieldProps:{options:S,value:g,onChange:function(o){V(o)}}},{title:"\u5E97\u94FA\u540D\u79F0",dataIndex:"name",search:!1},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(o,d){return[(0,Z.jsx)(L.Z,{title:"\u786E\u5B9A\u8981\u5C06\u3010".concat(d.name,"\u3011\u79FB\u51FA\u6B64\u83DC\u8C31\u5417\uFF1F"),onConfirm:function(){return se(d)},okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",children:(0,Z.jsx)("a",{children:"\u79FB\u9664\u95E8\u5E97"},"delete")})]}}],se=function(){var p=(0,f.Z)((0,t.Z)().mark(function o(d){var c,F;return(0,t.Z)().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:return v.next=2,re([d],g);case 2:(c=r.current)===null||c===void 0||(F=c.reloadAndRest)===null||F===void 0||F.call(c);case 3:case"end":return v.stop()}},o)}));return function(d){return p.apply(this,arguments)}}();return(0,y.useEffect)(function(){function p(){Q().then(function(o){var d;V((d=o.data[0])===null||d===void 0?void 0:d.key),b(o.data)})}p()},[]),(0,y.useEffect)(function(){g&&r.current&&r.current.reload()},[g]),(0,Z.jsxs)(x.ZP,{children:[(0,Z.jsx)(G.ZP,{headerTitle:"\u5E97\u94FA\u5217\u8868",actionRef:r,rowKey:"id",search:{labelWidth:120},toolBarRender:function(){return[(0,Z.jsxs)(K.Z,{type:"primary",onClick:function(){i(!0)},children:[(0,Z.jsx)(U.Z,{})," \u9009\u62E9\u5E97\u94FA"]},"primary")]},params:{FoodMenuId:g},request:function(){var p=(0,f.Z)((0,t.Z)().mark(function o(d){var c;return(0,t.Z)().wrap(function(h){for(;;)switch(h.prev=h.next){case 0:if(g){h.next=2;break}return h.abrupt("return");case 2:return c=0,h.next=5,H(d).then(function(v){O=v.data.data,c=v.data.total});case 5:return h.abrupt("return",{data:O,success:!0,total:c});case 6:case"end":return h.stop()}},o)}));return function(o){return p.apply(this,arguments)}}(),columns:ue}),(0,Z.jsx)(_,{onSubmit:function(){var p=(0,f.Z)((0,t.Z)().mark(function o(d){var c,F,h,v;return(0,t.Z)().wrap(function(w){for(;;)switch(w.prev=w.next){case 0:if(typeof g!=null){w.next=4;break}i(!1),w.next=13;break;case 4:return F=[],d.map(function(le){F.push({StoreId:le.id})}),h={FoodMenuId:g,StoreIds:F},v=!1,w.next=10,ee(h);case 10:v=w.sent,v&&i(!1),(c=r.current)===null||c===void 0||c.reload();case 13:case"end":return w.stop()}},o)}));return function(o){return p.apply(this,arguments)}}(),UserData:O,onCancel:function(){i(!1)},modalVisible:e,values:g})]})},te=ae}}]); diff --git a/dist/p__goods__goods-taste.472ffe88.async.js b/dist/p__goods__goods-taste.472ffe88.async.js deleted file mode 100644 index 2f4c6ae..0000000 --- a/dist/p__goods__goods-taste.472ffe88.async.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[339,1322,9464,1981,2869,7013,9719,2383],{13277:function(){},77413:function(k,O,t){"use strict";t.r(O),t.d(O,{default:function(){return h}});var c=t(58024),E=t(91894),I=t(71153),u=t(60331),P=t(86582),d=t(39428),T=t(3182),s=t(2824),Z=t(47673),S=t(4107),C=t(67294),M=t(49101),A=t(78009),B=t(48971);function F(e){return j.apply(this,arguments)}function j(){return j=(0,T.Z)((0,d.Z)().mark(function e(i){return(0,d.Z)().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return o.abrupt("return",(0,B.WY)("/kitchen/api/goods-taste/goods-taste-list",{method:"get",data:i}));case 1:case"end":return o.stop()}},e)})),j.apply(this,arguments)}function $(e){return D.apply(this,arguments)}function D(){return D=(0,T.Z)((0,d.Z)().mark(function e(i){return(0,d.Z)().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return o.abrupt("return",(0,B.WY)("/kitchen/api/goods-taste/edit",{method:"post",data:i}));case 1:case"end":return o.stop()}},e)})),D.apply(this,arguments)}var m=t(85893),z=void 0,v=S.Z.Search,l=function(){var i=(0,C.useState)([]),R=(0,s.Z)(i,2),o=R[0],p=R[1],G=(0,C.useState)([!1]),y=(0,s.Z)(G,2),L=y[0],W=y[1],b=(0,C.useState)(""),K=(0,s.Z)(b,2),x=K[0],U=K[1];(0,C.useEffect)(function(){var g=function(){var a=(0,T.Z)((0,d.Z)().mark(function f(n){return(0,d.Z)().wrap(function(N){for(;;)switch(N.prev=N.next){case 0:return N.next=2,F().then(function(w){w.data&&p(w.data)});case 2:case"end":return N.stop()}},f)}));return function(n){return a.apply(this,arguments)}}();g()},[]);var Y=function(){var g=(0,T.Z)((0,d.Z)().mark(function a(){return(0,d.Z)().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,$(o);case 2:return n.next=4,H();case 4:case"end":return n.stop()}},a)}));return function(){return g.apply(this,arguments)}}(),H=function(){var g=(0,T.Z)((0,d.Z)().mark(function a(){return(0,d.Z)().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,F().then(function(r){r.data&&p(r.data)});case 2:case"end":return n.stop()}},a)}));return function(){return g.apply(this,arguments)}}(),J=function(a){U(a.target.value)},V=function(a){var f=(0,P.Z)(o),n=f[a].tasteClassList||[];x&&(!n||(n==null?void 0:n.indexOf(x))===-1)&&n.push(x),f[a].tasteClassList=n,p(f);var r=(0,P.Z)(L);r[a]=!1,W(r),U(""),Y()},Q=function(a,f){var n=(0,P.Z)(o),r=n[f].tasteClassList;r=r.filter(function(N){return N!==a}),n[f].tasteClassList=r,p(n),Y()};return(0,m.jsx)(A.ZP,{children:(0,m.jsx)(m.Fragment,{children:(0,m.jsx)(E.Z,{title:"\u83DC\u54C1\u53E3\u5473",extra:(0,m.jsx)("div",{children:(0,m.jsx)(v,{enterButton:"\u6DFB\u52A0",onSearch:function(a){var f=o;!f.find(function(n){return n.tasteClassName==a})&&a&&p([].concat((0,P.Z)(f),[{tasteClassName:a,tasteClassList:[]}]))}})}),children:o==null?void 0:o.map(function(g,a){var f;return(0,m.jsxs)(E.Z,{title:g.tasteClassName,extra:(0,m.jsx)("a",{onClick:function(){var r=(0,P.Z)(o);r=r.filter(function(N){return N.tasteClassName!==g.tasteClassName}),p(r),$(r),H()},children:"\u5220\u9664"}),style:{width:300,height:300,float:"left"},children:[(f=g.tasteClassList)===null||f===void 0?void 0:f.map(function(n){var r=(0,m.jsx)(u.Z,{className:"edit-tag",style:{marginTop:"3px"},closable:!0,onClose:function(){return Q(n,a)},children:(0,m.jsxs)("span",{children:[" ",n," "]})},n);return r}),L[a]?(0,m.jsx)(S.Z,{style:{marginTop:"3px"},type:"text",size:"small",className:"tag-input",value:x,onChange:J,onBlur:V.bind(z,a),onPressEnter:V.bind(z,a)}):(0,m.jsxs)(u.Z,{className:"site-tag-plus",onClick:function(){var r=(0,P.Z)(L);r[a]=!0,W(r)},children:[(0,m.jsx)(M.Z,{})," \u6DFB\u52A0"]})]},a)})})})})},h=l},9708:function(k,O,t){"use strict";t.d(O,{Z:function(){return d},F:function(){return T}});var c=t(96156),E=t(94184),I=t.n(E),u=t(93355),P=(0,u.b)("warning","error","");function d(s,Z,S){var C;return I()((C={},(0,c.Z)(C,"".concat(s,"-status-success"),Z==="success"),(0,c.Z)(C,"".concat(s,"-status-warning"),Z==="warning"),(0,c.Z)(C,"".concat(s,"-status-error"),Z==="error"),(0,c.Z)(C,"".concat(s,"-status-validating"),Z==="validating"),(0,c.Z)(C,"".concat(s,"-has-feedback"),S),C))}var T=function(Z,S){return S||Z}},65223:function(k,O,t){"use strict";t.d(O,{q3:function(){return P},qI:function(){return d},RV:function(){return T},Rk:function(){return s},aM:function(){return Z},Ux:function(){return S}});var c=t(22122),E=t(48526),I=t(98423),u=t(67294),P=u.createContext({labelAlign:"right",vertical:!1,itemRef:function(){}}),d=u.createContext(null),T=function(M){var A=(0,I.Z)(M,["prefixCls"]);return u.createElement(E.RV,(0,c.Z)({},A))},s=u.createContext({prefixCls:""}),Z=u.createContext({}),S=function(M){var A=M.children,B=M.status,F=M.override,j=(0,u.useContext)(Z),$=(0,u.useMemo)(function(){var D=(0,c.Z)({},j);return F&&delete D.isFormItemInput,B&&(delete D.status,delete D.hasFeedback,delete D.feedbackIcon),D},[B,F,j]);return u.createElement(Z.Provider,{value:$},A)}},60331:function(k,O,t){"use strict";t.d(O,{Z:function(){return z}});var c=t(96156),E=t(22122),I=t(28481),u=t(54549),P=t(94184),d=t.n(P),T=t(98423),s=t(67294),Z=t(53124),S=t(98787),C=t(21790),M=function(v,l){var h={};for(var e in v)Object.prototype.hasOwnProperty.call(v,e)&&l.indexOf(e)<0&&(h[e]=v[e]);if(v!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,e=Object.getOwnPropertySymbols(v);i0&&(0,r.jsx)(Q.Z,{extra:(0,r.jsxs)("div",{children:["\u5DF2\u9009\u62E9"," ",(0,r.jsx)("a",{style:{fontWeight:600},children:F.length})," ","\u9879 \xA0\xA0"]}),children:(0,r.jsx)(G.Z,{onClick:(0,h.Z)((0,a.Z)().mark(function p(){var d,u;return(0,a.Z)().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:return y.next=2,ge(F);case 2:V([]),(d=S.current)===null||d===void 0||(u=d.reloadAndRest)===null||u===void 0||u.call(d);case 4:case"end":return y.stop()}},p)})),children:"\u5220\u9664"})}),(0,r.jsx)(te,{dicData:he,onFinish:function(){var p=(0,h.Z)((0,a.Z)().mark(function d(u){var c;return(0,a.Z)().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:if(c=!1,!u.id){i.next=7;break}return i.next=4,de(u);case 4:c=i.sent,i.next=10;break;case 7:return i.next=9,oe(u);case 9:c=i.sent;case 10:c&&(C(!1),D(void 0),S.current&&S.current.reload());case 11:case"end":return i.stop()}},d)}));return function(d){return p.apply(this,arguments)}}(),onCancel:function(){C(!1),D(void 0)},createModalVisible:e,values:v||{}}),(0,r.jsx)(z.Z,{width:600,visible:ve,onClose:function(){D(void 0),W(!1)},closable:!1,children:(v==null?void 0:v.name)&&(0,r.jsx)(q.ZP,{column:2,title:v==null?void 0:v.name,request:(0,h.Z)((0,a.Z)().mark(function p(){return(0,a.Z)().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.abrupt("return",{data:v||{}});case 1:case"end":return u.stop()}},p)})),params:{id:v==null?void 0:v.name},columns:Y})})]})},pe=ce}}]); diff --git a/dist/p__goods__goods-type-manage.b16288ec.async.js b/dist/p__goods__goods-type-manage.b16288ec.async.js new file mode 100644 index 0000000..b3a4d80 --- /dev/null +++ b/dist/p__goods__goods-type-manage.b16288ec.async.js @@ -0,0 +1 @@ +(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[3009],{96007:function(Te,A,t){"use strict";t.r(A),t.d(A,{default:function(){return pe}});var Ce=t(57338),J=t(273),je=t(57663),G=t(71577),Se=t(62350),K=t(24565),x=t(2824),a=t(39428),we=t(34792),v=t(48086),f=t(3182),H=t(49101),g=t(67294),Q=t(78009),X=t(85224),q=t(16894),_=t(12826),xe=t(71194),ee=t(50146),De=t(77883),re=t(85986),Fe=t(9715),T=t(55843),Ge=t(47673),$=t(4107),Ie=t(43358),D=t(34041),r=t(85893),te=function(u){var o=D.Z.Option,e=D.Z.OptGroup;return(0,r.jsx)(ee.Z,{title:u.values.id?"\u7F16\u8F91":"\u65B0\u5EFA",width:640,visible:u.createModalVisible,bodyStyle:{padding:"32px 40px 1px 48px"},footer:null,onCancel:function(){u.onCancel()},destroyOnClose:!0,children:(0,r.jsxs)(T.Z,{labelCol:{span:4},layout:"horizontal",preserve:!1,initialValues:u.values,onFinish:u.onFinish,children:[(0,r.jsx)(T.Z.Item,{name:"id",hidden:!0,children:(0,r.jsx)($.Z,{})}),(0,r.jsx)(T.Z.Item,{name:"goodsType_Name",label:"\u5C0F\u7C7B\u540D\u79F0",rules:[{required:!0,max:50}],children:(0,r.jsx)($.Z,{})}),(0,r.jsx)(T.Z.Item,{name:"status",label:"\u72B6\u6001",defaultValue:u.values.status,rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u72B6\u6001"}],children:(0,r.jsx)(D.Z,{placeholder:"\u8BF7\u9009\u62E9\u72B6\u6001",children:(0,r.jsxs)(e,{children:[(0,r.jsx)(D.Z.Option,{value:"0",children:"\u6B63\u5E38"}),(0,r.jsx)(D.Z.Option,{value:"1",children:"\u505C\u7528"})]})})}),(0,r.jsx)(T.Z.Item,{name:"remark",label:"\u5907\u6CE8",children:(0,r.jsx)($.Z,{})}),(0,r.jsx)(T.Z.Item,{name:"goodsType_Sort",label:"\u6392\u5E8F",children:(0,r.jsx)(re.Z,{})}),(0,r.jsxs)(T.Z.Item,{children:[(0,r.jsx)(G.Z,{htmlType:"button",style:{float:"right",left:10},onClick:u.onCancel,children:"\u53D6\u6D88"}),(0,r.jsx)(G.Z,{type:"primary",htmlType:"submit",style:{float:"right"},children:"\u4FDD\u5B58"})]})]})})},ne=te,S=t(48971);function ae(s){return E.apply(this,arguments)}function E(){return E=(0,f.Z)((0,a.Z)().mark(function s(u){return(0,a.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,S.WY)("/kitchen/api/goods-type/goods-types",{method:"POST",data:u}));case 1:case"end":return e.stop()}},s)})),E.apply(this,arguments)}function ue(s){return R.apply(this,arguments)}function R(){return R=(0,f.Z)((0,a.Z)().mark(function s(u){return(0,a.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,S.WY)("/kitchen/api/dict-data/dic-list/".concat(u),{method:"Get"}));case 1:case"end":return e.stop()}},s)})),R.apply(this,arguments)}function se(s){return k.apply(this,arguments)}function k(){return k=(0,f.Z)((0,a.Z)().mark(function s(u){return(0,a.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,S.WY)("/kitchen/api/goods-type",{method:"POST",data:u}));case 1:case"end":return e.stop()}},s)})),k.apply(this,arguments)}function le(s){return b.apply(this,arguments)}function b(){return b=(0,f.Z)((0,a.Z)().mark(function s(u){return(0,a.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,S.WY)("/kitchen/api/goods-type",{method:"PUT",data:u}));case 1:case"end":return e.stop()}},s)})),b.apply(this,arguments)}function $e(s){return B.apply(this,arguments)}function B(){return B=_asyncToGenerator(_regeneratorRuntime().mark(function s(u){return _regeneratorRuntime().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",request("/kitchen/api/goods-type",{method:"DELETE",data:u}));case 1:case"end":return e.stop()}},s)})),B.apply(this,arguments)}function ie(s){return O.apply(this,arguments)}function O(){return O=(0,f.Z)((0,a.Z)().mark(function s(u){return(0,a.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,S.WY)("/kitchen/api/goodstype/deletebyid?id=".concat(u),{method:"Get"}));case 1:case"end":return e.stop()}},s)})),O.apply(this,arguments)}function oe(s){return P.apply(this,arguments)}function P(){return P=(0,f.Z)((0,a.Z)().mark(function s(u){return(0,a.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,S.WY)("/kitchen/api/goodstype/deletebyids",{method:"post",data:u}));case 1:case"end":return e.stop()}},s)})),P.apply(this,arguments)}var de=function(){var s=(0,f.Z)((0,a.Z)().mark(function u(o){var e;return(0,a.Z)().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return e=v.default.loading("\u6B63\u5728\u6DFB\u52A0"),o.createBy="admin",i.prev=2,i.next=5,se(JSON.stringify(o)).then(function(Z){Z.succeeded?v.default.success("\u6DFB\u52A0\u6210\u529F"):v.default.error(Z.errors)});case 5:return e(),i.abrupt("return",!0);case 9:return i.prev=9,i.t0=i.catch(2),e(),v.default.error("\u6DFB\u52A0\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),i.abrupt("return",!1);case 14:case"end":return i.stop()}},u,null,[[2,9]])}));return function(o){return s.apply(this,arguments)}}(),W=function(){var s=(0,f.Z)((0,a.Z)().mark(function u(o){var e;return(0,a.Z)().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return e=v.default.loading("\u6B63\u5728\u4FEE\u6539"),i.prev=1,i.next=4,le({id:o.id,goodsType_Name:o.goodsType_Name,goodsType_Sort:o.goodsType_Sort,remark:o.remark,notifyType:o.notifyType,status:o.status}).then(function(Z){Z.succeeded?v.default.success("\u4FEE\u6539\u6210\u529F"):v.default.error(Z.errors)});case 4:return e(),i.abrupt("return",!0);case 8:return i.prev=8,i.t0=i.catch(1),e(),v.default.error("\u4FEE\u6539\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),i.abrupt("return",!1);case 13:case"end":return i.stop()}},u,null,[[1,8]])}));return function(o){return s.apply(this,arguments)}}(),ce=function(){var u=(0,g.useState)(!1),o=(0,x.Z)(u,2),e=o[0],C=o[1],i=(0,g.useState)([]),Z=(0,x.Z)(i,2),he=Z[0],fe=Z[1],me=(0,g.useState)(!1),M=(0,x.Z)(me,2),ve=M[0],N=M[1],j=(0,g.useRef)(),ye=(0,g.useState)(),V=(0,x.Z)(ye,2),y=V[0],w=V[1],Ze=(0,g.useState)([]),Y=(0,x.Z)(Ze,2),F=Y[0],L=Y[1];(0,g.useEffect)(function(){function h(){ue("NotifyType").then(function(d){var n=d.data;fe(n)})}h()},[]);var ge=function(){var h=(0,f.Z)((0,a.Z)().mark(function d(n){var c;return(0,a.Z)().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:if(c=v.default.loading("\u6B63\u5728\u5220\u9664"),n){l.next=3;break}return l.abrupt("return",!0);case 3:return l.next=5,oe(n.map(function(p){return p.id})).then(function(p){p.succeeded?(v.default.success("\u5220\u9664\u6210\u529F"),j.current.reload()):v.default.error(p.errors)});case 5:return c(),l.abrupt("return",!0);case 7:case"end":return l.stop()}},d)}));return function(n){return h.apply(this,arguments)}}(),U=[{title:"\u4E3B\u952E",dataIndex:"id",hideInSearch:!0,hideInTable:!0,tip:"\u89C4\u5219\u540D\u79F0\u662F\u552F\u4E00\u7684 key",render:function(d,n){return(0,r.jsx)("a",{onClick:function(){w(n),N(!0)},children:d})}},{title:"\u540D\u79F0",dataIndex:"goodsType_Name",valueType:"textarea",ellipsis:!0},{title:"\u5907\u6CE8",dataIndex:"remark",ellipsis:!0,hideInForm:!0,hideInSearch:!0},{title:"\u72B6\u6001",dataIndex:"status",hideInForm:!0,hideInSearch:!0,valueEnum:{0:{text:"\u6B63\u5E38",status:"Processing"},1:{text:"\u505C\u7528",status:"Success"}}},{title:"\u6392\u5E8F",dataIndex:"goodsType_Sort",hideInSearch:!0},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(d,n){return[(0,r.jsx)("a",{onClick:(0,f.Z)((0,a.Z)().mark(function c(){var m;return(0,a.Z)().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:return m=0,n.status==0&&(m=1),w(n.status=m),p.next=5,W(n).then(function(I){I?j.current.reload():v.default.error("\u914D\u7F6E\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01")});case 5:case"end":return p.stop()}},c)})),children:n.status==0?"\u505C\u7528":"\u4F7F\u7528"},"state"),(0,r.jsx)("a",{onClick:function(){C(!0),w(n)},children:"\u66F4\u65B0"},"config"),(0,r.jsx)(K.Z,{type:"primary",title:"\u786E\u8BA4\u5220\u9664\u5417\uFF1F",okText:"\u662F",cancelText:"\u5426",onConfirm:(0,f.Z)((0,a.Z)().mark(function c(){return(0,a.Z)().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.next=2,ie(n.id).then(function(p){p.succeeded?(v.default.success("\u5220\u9664\u6210\u529F"),j.current.reload()):v.default.error(p.errors)});case 2:case"end":return l.stop()}},c)})),onCancel:function(){},children:(0,r.jsx)("a",{href:"#",children:"\u5220\u9664"})},"primary")]}}];return(0,r.jsxs)(Q.ZP,{children:[(0,r.jsx)(q.ZP,{headerTitle:"\u67E5\u8BE2\u8868\u683C",actionRef:j,rowKey:"id",search:{labelWidth:120},toolBarRender:function(){return[(0,r.jsxs)(G.Z,{type:"primary",onClick:function(){C(!0)},children:[(0,r.jsx)(H.Z,{})," \u65B0\u5EFA"]},"primary")]},request:function(){var h=(0,f.Z)((0,a.Z)().mark(function d(n){var c,m;return(0,a.Z)().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:return c=[],m=0,p.next=4,ae(n).then(function(I){c=I.data.data,c.forEach(function(z){z.status=z.status.toString()}),m=I.data.total});case 4:return p.abrupt("return",{data:c,success:!0,total:m});case 5:case"end":return p.stop()}},d)}));return function(d){return h.apply(this,arguments)}}(),columns:U,rowSelection:{onChange:function(d,n){L(n)}}}),(F==null?void 0:F.length)>0&&(0,r.jsx)(X.Z,{extra:(0,r.jsxs)("div",{children:["\u5DF2\u9009\u62E9"," ",(0,r.jsx)("a",{style:{fontWeight:600},children:F.length})," ","\u9879 \xA0\xA0"]}),children:(0,r.jsx)(G.Z,{onClick:(0,f.Z)((0,a.Z)().mark(function h(){var d,n;return(0,a.Z)().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:return m.next=2,ge(F);case 2:L([]),(d=j.current)===null||d===void 0||(n=d.reloadAndRest)===null||n===void 0||n.call(d);case 4:case"end":return m.stop()}},h)})),children:"\u5220\u9664"})}),(0,r.jsx)(ne,{dicData:he,onFinish:function(){var h=(0,f.Z)((0,a.Z)().mark(function d(n){var c;return(0,a.Z)().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:if(c=!1,!n.id){l.next=7;break}return l.next=4,W(n);case 4:c=l.sent,l.next=10;break;case 7:return l.next=9,de(n);case 9:c=l.sent;case 10:c&&(C(!1),w(void 0),j.current&&j.current.reload());case 11:case"end":return l.stop()}},d)}));return function(d){return h.apply(this,arguments)}}(),onCancel:function(){C(!1),w(void 0)},createModalVisible:e,values:y||{}}),(0,r.jsx)(J.Z,{width:600,visible:ve,onClose:function(){w(void 0),N(!1)},closable:!1,children:(y==null?void 0:y.name)&&(0,r.jsx)(_.ZP,{column:2,title:y==null?void 0:y.name,request:(0,f.Z)((0,a.Z)().mark(function h(){return(0,a.Z)().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",{data:y||{}});case 1:case"end":return n.stop()}},h)})),params:{id:y==null?void 0:y.name},columns:U})})]})},pe=ce}}]); diff --git a/dist/p__goods__goodsInfo.fc6f7810.async.js b/dist/p__goods__goodsInfo.f217b907.async.js similarity index 90% rename from dist/p__goods__goodsInfo.fc6f7810.async.js rename to dist/p__goods__goodsInfo.f217b907.async.js index a928194..1628891 100644 --- a/dist/p__goods__goodsInfo.fc6f7810.async.js +++ b/dist/p__goods__goodsInfo.f217b907.async.js @@ -1 +1 @@ -(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[131],{64339:function(je,R,n){"use strict";n.r(R),n.d(R,{default:function(){return Ue}});var v=n(58024),S=n(91894),F=n(77576),N=n(12028),I=n(11849),ae=n(43185),w=n(93009),Ce=n(57663),B=n(71577),xe=n(77883),P=n(85986),ue=n(47673),T=n(4107),m=n(39428),U=n(34792),C=n(48086),b=n(3182),se=n(9715),l=n(55843),y=n(2824),$=n(43358),c=n(34041),W=n(35556),s=n(75899),h=n(84391),x=n(49101),t=n(78009),Z=n(67294),mt=n(94184),Se=n(16894),ft=n(71194),Be=n(50146),A=n(48971);function Te(f){return J.apply(this,arguments)}function J(){return J=(0,b.Z)((0,m.Z)().mark(function f(a){return(0,m.Z)().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",(0,A.WY)("/kitchen/api/goodes/GetGoodsBomPage",{method:"Post",data:a}));case 1:case"end":return r.stop()}},f)})),J.apply(this,arguments)}function Ge(f){return H.apply(this,arguments)}function H(){return H=(0,b.Z)((0,m.Z)().mark(function f(a){return(0,m.Z)().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",(0,A.WY)("/kitchen/api/bom/getpage",{method:"Post",data:a}));case 1:case"end":return r.stop()}},f)})),H.apply(this,arguments)}function Fe(f){return Q.apply(this,arguments)}function Q(){return Q=(0,b.Z)((0,m.Z)().mark(function f(a){return(0,m.Z)().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",(0,A.WY)("/kitchen/api/systemconfig/GetCosRequestSignURL",{method:"POST",data:a}));case 1:case"end":return r.stop()}},f)})),Q.apply(this,arguments)}function Ee(f){return X.apply(this,arguments)}function X(){return X=(0,b.Z)((0,m.Z)().mark(function f(a){return(0,m.Z)().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",(0,A.WY)("/kitchen/api/GoodsBom/AddBom",{method:"Post",data:a}));case 1:case"end":return r.stop()}},f)})),X.apply(this,arguments)}function Ie(f){return q.apply(this,arguments)}function q(){return q=(0,b.Z)((0,m.Z)().mark(function f(a){return(0,m.Z)().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",(0,A.WY)("/kitchen/api/goodes/DelGoodsBom?Id=".concat(a),{method:"DELETE"}));case 1:case"end":return r.stop()}},f)})),q.apply(this,arguments)}function Pe(f){return _.apply(this,arguments)}function _(){return _=(0,b.Z)((0,m.Z)().mark(function f(a){return(0,m.Z)().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",(0,A.WY)("/kitchen/api/goods-unit/type",{method:"Post",data:a}));case 1:case"end":return r.stop()}},f)})),_.apply(this,arguments)}var e=n(85893),Ae=function(a){var G=c.Z.Option,r=c.Z.OptGroup,ie=(0,Z.useState)([]),K=(0,y.Z)(ie,2),k=K[0],L=K[1];return(0,e.jsx)(Be.Z,{title:"\u5173\u8054\u5546\u54C1\u914D\u65B9",width:640,visible:a.createModalVisible,bodyStyle:{padding:"32px 40px 1px 48px"},footer:null,onCancel:function(){a.onCancel()},destroyOnClose:!0,children:(0,e.jsxs)(l.Z,{labelCol:{span:4},layout:"horizontal",preserve:!1,onFinish:a.onFinish,children:[(0,e.jsx)(l.Z.Item,{name:"BomType",label:"\u72B6\u6001",rules:[{required:!0,message:"\u914D\u65B9\u7C7B\u578B"}],children:(0,e.jsx)(c.Z,{placeholder:"\u8BF7\u9009\u914D\u65B9\u7C7B\u578B",onChange:function(O){Ge({current:1,pageSize:1e7,IsMain:O}).then(function(M){var D=M.data.data;L(D),console.log(D)})},children:(0,e.jsxs)(r,{children:[(0,e.jsx)(c.Z.Option,{value:"1",children:"\u4E3B\u6599\u914D\u65B9"}),(0,e.jsx)(c.Z.Option,{value:"0",children:"\u8F85\u6599\u914D\u65B9"})]})})}),(0,e.jsx)(l.Z.Item,{name:"bomId",label:"\u914D\u65B9\u4FE1\u606F",rules:[{required:!0,message:"\u914D\u65B9\u4FE1\u606F"}],children:(0,e.jsx)(c.Z,{showSearch:!0,optionFilterProp:"children",placeholder:"\u8BF7\u9009\u914D\u65B9\u4FE1\u606F",children:k.map(function(E,O){return(0,e.jsx)(G,{index:O,value:E.id,children:E.name},E.id)})})}),(0,e.jsxs)(l.Z.Item,{children:[(0,e.jsx)(B.Z,{htmlType:"button",style:{float:"right",left:10},onClick:a.onCancel,children:"\u53D6\u6D88"}),(0,e.jsx)(B.Z,{type:"primary",htmlType:"submit",style:{float:"right"},children:"\u4FDD\u5B58"})]})]})})},we=Ae,ee=n(4795),Oe=n(9669),De=n.n(Oe),gt=s.Z.Step,vt=c.Z.Option,oe=c.Z.OptGroup,Re=function(a){var G=l.Z.useForm(),r=(0,y.Z)(G,1),ie=r[0],K=(0,Z.useState)([]),k=(0,y.Z)(K,2),L=k[0],E=k[1],O=(0,Z.useState)([]),M=(0,y.Z)(O,2),D=M[0],$e=M[1],We=(0,Z.useState)([]),le=(0,y.Z)(We,2),de=le[0],Ke=le[1],ke=(0,Z.useState)([]),ce=(0,y.Z)(ke,2),yt=ce[0],Zt=ce[1],Le=(0,Z.useState)(),he=(0,y.Z)(Le,2),Me=he[0],te=he[1],Ye=(0,Z.useState)([]),pe=(0,y.Z)(Ye,2),bt=pe[0],Ve=pe[1],Y=(0,Z.useRef)(),ze=(0,Z.useState)("basis"),me=(0,y.Z)(ze,2),Ne=me[0],Je=me[1],He=(0,Z.useState)(a.location.query.values?a.location.query.values.imgUrl:null),fe=(0,y.Z)(He,2),V=fe[0],Qe=fe[1],Xe=(0,Z.useState)(0),ge=(0,y.Z)(Xe,2),qe=ge[0],_e=ge[1],et=function(){var o=(0,b.Z)((0,m.Z)().mark(function u(p){var d;return(0,m.Z)().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return d=C.default.loading("\u6B63\u5728\u6DFB\u52A0"),i.prev=1,a.location.query.isAdd&&(p.id=null),p.imgUrl=V||p.imgUrl,i.next=6,(0,ee.Rq)(JSON.stringify(p)).then(function(j){j.data?C.default.success("\u6DFB\u52A0\u6210\u529F"):C.default.error("\u6DFB\u52A0\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01")});case 6:return d(),i.abrupt("return",!0);case 10:return i.prev=10,i.t0=i.catch(1),d(),C.default.error("\u6DFB\u52A0\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),i.abrupt("return",!1);case 15:case"end":return i.stop()}},u,null,[[1,10]])}));return function(p){return o.apply(this,arguments)}}(),tt={name:"file",showUploadList:!1,multiple:!1,accept:".png, .jpg, .jpeg, .gif",headers:{"Content-Type":"application/octet-stream"},customRequest:function(u){var p=u.action,d=u.file,g=u.headers,i=u.onError,j=u.onProgress,jt=u.onSuccess,it=u.withCredentials;console.log("\u4E0A\u4F20\u56FE\u7247",d);var lt=d.name.lastIndexOf("."),dt=d.name.substr(lt+1),ye=null;return Fe({directory:"goods",fileExtension:dt,method:"PUT"}).then(function(re){p=re.allUrl;var Ze=new FileReader;Ze.readAsArrayBuffer(d),Ze.onload=function(ct){ye=ct.target.result,De().put(p,ye,{withCredentials:it,headers:g,onUploadProgress:function(be){var ht=be.total,pt=be.loaded;j({percent:Math.round(pt/ht*100).toFixed(2)},d)}}).then(function(z){console.log("onSuccess",z,d),(z.status==200||z.statusText=="OK")&&Qe(re.seeUrl)}).catch(i)}}),{abort:function(){console.log("upload progress is aborted.")}}}},nt=(0,Z.useState)({operationKey:a.location.query.tabStatus?a.location.query.tabStatus:"basis",tabActiveKey:a.location.query.tabStatus?a.location.query.tabStatus:"basis"}),ve=(0,y.Z)(nt,2),ne=ve[0],rt=ve[1];(0,Z.useEffect)(function(){Je(ne.tabActiveKey)},[ne]);var at=function(u){if(qe===1){C.default.info("\u5957\u9910\u4E0D\u80FD\u8BBE\u7F6E\u914D\u65B9");return}rt({operationKey:u,tabActiveKey:u})},ut=[{key:"basis",tab:"\u5546\u54C1\u57FA\u7840\u4FE1\u606F"},{key:"goodsbom",tab:"\u5546\u54C1\u914D\u65B9"}],st=[{title:"\u4E3B\u952E",dataIndex:"id",key:"id",hideInTable:!0,hideInSearch:!0,tip:"\u89C4\u5219\u540D\u79F0\u662F\u552F\u4E00\u7684 key"},{title:"\u914D\u65B9\u540D\u79F0",key:"name",dataIndex:"name",valueType:"textarea"},{title:"\u914D\u65B9\u7C7B\u578B",dataIndex:"isMain",hideInForm:!0,valueEnum:{false:{text:"\u8F85\u6599",status:"Processing"},true:{text:"\u4E3B\u6599",status:"Success"}}},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(u,p){return[(0,e.jsx)("a",{type:"primary",onClick:function(){var g=C.default.loading("\u6B63\u5728\u5220\u9664");try{return Ie(p.id),g(),C.default.success("\u5220\u9664\u6210\u529F\uFF0C\u5373\u5C06\u5237\u65B0"),Y.current.reload(),!0}catch(i){return g(),C.default.error("\u5220\u9664\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5"),Y.current.reload(),!1}},children:"\u5220\u9664"},"primary")]}}],ot={basis:(0,e.jsx)(S.Z,{title:"\u5546\u54C1\u57FA\u7840\u4FE1\u606F",style:{marginBottom:24},bordered:!1,children:(0,e.jsxs)(l.Z,{labelCol:{span:4},wrapperCol:{span:6},layout:"horizontal",preserve:!1,initialValues:a.location.query.values,onFinish:et,children:[(0,e.jsx)(l.Z.Item,{name:"id",hidden:!0,children:(0,e.jsx)(T.Z,{})}),(0,e.jsx)(l.Z.Item,{name:"code",label:"\u5546\u54C1\u7F16\u7801",hidden:!0,children:(0,e.jsx)(T.Z,{disabled:!0})}),(0,e.jsx)(l.Z.Item,{name:"name",label:"\u5546\u54C1\u540D\u79F0",rules:[{required:!0}],children:(0,e.jsx)(T.Z,{})}),(0,e.jsx)(l.Z.Item,{name:"goodsUintId",label:"\u5546\u54C1\u5355\u4F4D",rules:[{required:!0}],children:(0,e.jsx)(c.Z,{children:D==null?"":D.map(function(o,u){return(0,e.jsx)(c.Z.Option,{index:u,value:o.id,children:o.name},o.id)})})}),(0,e.jsx)(l.Z.Item,{name:"price",label:"\u5546\u54C1\u4EF7\u683C",rules:[{required:!0}],children:(0,e.jsx)(P.Z,{placeholder:"\u4EF7\u683C",min:0})}),(0,e.jsx)(l.Z.Item,{name:"vipPrice",label:"\u4F1A\u5458\u4EF7\u683C",children:(0,e.jsx)(P.Z,{placeholder:"\u4F1A\u5458\u4EF7",min:0})}),(0,e.jsx)(l.Z.Item,{name:"parentTypeID",label:"\u5546\u54C1\u5927\u7C7B",rules:[{required:!0}],children:(0,e.jsx)(c.Z,{children:de==null?"":de.map(function(o,u){return(0,e.jsx)(c.Z.Option,{index:u,value:o.id,children:o.name},o.id)})})}),(0,e.jsx)(l.Z.Item,{name:"goodsTypeId",label:"\u5546\u54C1\u5C0F\u7C7B",rules:[{required:!0}],children:(0,e.jsx)(c.Z,{children:L==null?"":L.map(function(o,u){return(0,e.jsx)(c.Z.Option,{index:u,value:o.id,children:o.goodsType_Name},o.id)})})}),(0,e.jsx)(l.Z.Item,{name:"goodsAttribute",label:"\u5546\u54C1\u5C5E\u6027",defaultValue:0,rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u5546\u54C1\u5C5E\u6027"}],children:(0,e.jsx)(c.Z,{placeholder:"\u8BF7\u9009\u62E9\u5546\u54C1\u5C5E\u6027",onChange:function(u){_e(u)},children:(0,e.jsxs)(oe,{children:[(0,e.jsx)(c.Z.Option,{value:0,children:"\u5355\u54C1"}),(0,e.jsx)(c.Z.Option,{value:1,children:"\u5957\u9910"})]})})}),(0,e.jsx)(l.Z.Item,{name:"status",label:"\u72B6\u6001",defaultValue:0,rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u72B6\u6001"}],children:(0,e.jsx)(c.Z,{placeholder:"\u8BF7\u9009\u62E9\u72B6\u6001",children:(0,e.jsxs)(oe,{children:[(0,e.jsx)(c.Z.Option,{value:0,children:"\u6B63\u5E38"}),(0,e.jsx)(c.Z.Option,{value:1,children:"\u505C\u7528"})]})})}),(0,e.jsx)(l.Z.Item,{name:"remark",label:"\u5907\u6CE8",children:(0,e.jsx)(T.Z,{})}),(0,e.jsx)(l.Z.Item,{name:"imgUrl",hidden:!0,children:(0,e.jsx)(T.Z,{})}),(0,e.jsx)(l.Z.Item,{name:"imgUrl1",label:"\u5546\u54C1\u56FE\u7247\u5730\u5740",children:(0,e.jsx)(w.Z,(0,I.Z)((0,I.Z)({},tt),{},{children:V?(0,e.jsx)("img",{src:V,alt:"avatar",style:{width:"100%"}}):(0,e.jsx)(B.Z,{icon:(0,e.jsx)(h.Z,{}),children:"\u4E0A\u4F20"})}))}),(0,e.jsx)(l.Z.Item,{label:"\u662F\u5426\u79F0\u91CD",name:"isWeigh",valuePropName:"checked",initialValue:"false",children:(0,e.jsx)(N.Z,{checkedChildren:"\u662F",unCheckedChildren:"\u5426",defaultChecked:"false"})}),(0,e.jsx)(l.Z.Item,{children:(0,e.jsx)(B.Z,{type:"primary",htmlType:"submit",children:"\u4FDD\u5B58"})})]})}),goodsbom:(0,e.jsxs)(S.Z,{title:"\u5546\u54C1\u914D\u65B9",style:{marginBottom:24},bordered:!1,children:[(0,e.jsx)(Se.ZP,{columns:st,actionRef:Y,rowKey:"id",search:!1,toolBarRender:function(){return[(0,e.jsxs)(B.Z,{type:"primary",onClick:function(){a.location.query.values.id==null||a.location.query.values.id==null?C.default.info("\u8BF7\u5148\u6DFB\u52A0\u5546\u54C1\u57FA\u7840\u4FE1\u606F!"):te(!0)},children:[(0,e.jsx)(x.Z,{})," \u9009\u62E9\u914D\u65B9"]},"primary")]},request:function(){var o=(0,b.Z)((0,m.Z)().mark(function u(p){var d,g;return(0,m.Z)().wrap(function(j){for(;;)switch(j.prev=j.next){case 0:if(!(a.location.query.values.id==null||a.location.query.values.id==null)){j.next=3;break}j.next=9;break;case 3:return p.GoodsId=a.location.query.values.id,d=0,j.next=7,Te(p);case 7:return g=j.sent,j.abrupt("return",{data:g.data.data,success:!0,total:d});case 9:case"end":return j.stop()}},u)}));return function(u){return o.apply(this,arguments)}}(),rowSelection:{onChange:function(u,p){return Ve(p)}}}),(0,e.jsx)(we,{onFinish:function(){var o=(0,b.Z)((0,m.Z)().mark(function u(p){var d;return(0,m.Z)().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return console.log("value",p),p.GoodsId=a.location.query.values.id,d=!1,i.next=5,Ee(p);case 5:d=i.sent,d&&te(!1),Y.current.reload();case 8:case"end":return i.stop()}},u)}));return function(u){return o.apply(this,arguments)}}(),onCancel:function(){te(!1)},createModalVisible:Me})]})};return(0,Z.useEffect)(function(){function o(){(0,ee.fA)({current:1,status:0,pageSize:1e3}).then(function(d){var g=d.data.data;g.forEach(function(i){i.text=i.goodsType_Name}),E(g)})}function u(){(0,ee.se)({current:1,status:0,pageSize:1e3}).then(function(d){var g=d.data.data;g.forEach(function(i){i.text=i.name}),Ke(g)})}function p(){Pe('{"current":1,"pageSize":200}').then(function(d){var g=d.data.data;$e(g)})}p(),o(),u()},[]),(0,e.jsx)(t.ZP,{title:a.location.query.isAdd?"\u5546\u54C1\u65B0\u589E":"\u8BE6\u60C5",tabActiveKey:Ne,onTabChange:at,tabList:ut,children:ot[ne.operationKey]})},Ue=Re},4795:function(je,R,n){"use strict";n.d(R,{lO:function(){return N},GT:function(){return ae},Rq:function(){return ue},e3:function(){return m},yR:function(){return C},fA:function(){return se},se:function(){return y}});var v=n(39428),S=n(3182),F=n(48971);function N(s){return I.apply(this,arguments)}function I(){return I=(0,S.Z)((0,v.Z)().mark(function s(h){return(0,v.Z)().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,F.WY)("/kitchen/api/goods/goodss",{method:"Post",data:h}));case 1:case"end":return t.stop()}},s)})),I.apply(this,arguments)}function ae(s){return w.apply(this,arguments)}function w(){return w=(0,S.Z)((0,v.Z)().mark(function s(h){return(0,v.Z)().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,F.WY)("/kitchen/api/bom/getpage",{method:"Post",data:h}));case 1:case"end":return t.stop()}},s)})),w.apply(this,arguments)}function Ce(s){return B.apply(this,arguments)}function B(){return B=_asyncToGenerator(_regeneratorRuntime().mark(function s(h){return _regeneratorRuntime().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",request("/kitchen/api/GoodsBom/AddBom",{method:"Post",data:h}));case 1:case"end":return t.stop()}},s)})),B.apply(this,arguments)}function xe(s){return P.apply(this,arguments)}function P(){return P=_asyncToGenerator(_regeneratorRuntime().mark(function s(h){return _regeneratorRuntime().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",request("/kitchen/api/GoodsBom/getBomInfo",{method:"Post",data:h}));case 1:case"end":return t.stop()}},s)})),P.apply(this,arguments)}function ue(s){return T.apply(this,arguments)}function T(){return T=(0,S.Z)((0,v.Z)().mark(function s(h){return(0,v.Z)().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,F.WY)("/kitchen/api/goods",{method:"POST",data:h}));case 1:case"end":return t.stop()}},s)})),T.apply(this,arguments)}function m(s){return U.apply(this,arguments)}function U(){return U=(0,S.Z)((0,v.Z)().mark(function s(h){return(0,v.Z)().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return console.log("\u5546\u54C1\u6570\u636E\u4FEE\u6539",h),t.abrupt("return",(0,F.WY)("/kitchen/api/goods",{method:"PUT",data:h}));case 2:case"end":return t.stop()}},s)})),U.apply(this,arguments)}function C(s){return b.apply(this,arguments)}function b(){return b=(0,S.Z)((0,v.Z)().mark(function s(h){return(0,v.Z)().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,F.WY)("/kitchen/api/goods",{method:"DELETE",data:h}));case 1:case"end":return t.stop()}},s)})),b.apply(this,arguments)}function se(s){return l.apply(this,arguments)}function l(){return l=(0,S.Z)((0,v.Z)().mark(function s(h){return(0,v.Z)().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,F.WY)("/kitchen/api/goods-type/goods-types",{method:"POST",data:h}));case 1:case"end":return t.stop()}},s)})),l.apply(this,arguments)}function y(s){return $.apply(this,arguments)}function $(){return $=(0,S.Z)((0,v.Z)().mark(function s(h){return(0,v.Z)().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,F.WY)("/kitchen/api/goods-type/big-goods-types",{method:"POST",data:h}));case 1:case"end":return t.stop()}},s)})),$.apply(this,arguments)}function c(s){return W.apply(this,arguments)}function W(){return W=_asyncToGenerator(_regeneratorRuntime().mark(function s(h){return _regeneratorRuntime().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",request("/kitchen/api/goodstaste/getlist"));case 1:case"end":return t.stop()}},s)})),W.apply(this,arguments)}}}]); +(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[131],{64339:function(je,R,n){"use strict";n.r(R),n.d(R,{default:function(){return Ue}});var v=n(58024),S=n(91894),F=n(77576),N=n(12028),I=n(11849),ae=n(43185),O=n(93009),Ce=n(57663),B=n(71577),xe=n(77883),P=n(85986),ue=n(47673),T=n(4107),m=n(39428),U=n(34792),C=n(48086),b=n(3182),se=n(9715),l=n(55843),y=n(2824),$=n(43358),c=n(34041),W=n(35556),s=n(75899),h=n(84391),x=n(49101),t=n(78009),Z=n(67294),mt=n(94184),Se=n(16894),ft=n(71194),Be=n(50146),w=n(48971);function Te(f){return J.apply(this,arguments)}function J(){return J=(0,b.Z)((0,m.Z)().mark(function f(a){return(0,m.Z)().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",(0,w.WY)("/kitchen/api/goodes/GetGoodsBomPage",{method:"Post",data:a}));case 1:case"end":return r.stop()}},f)})),J.apply(this,arguments)}function Ge(f){return H.apply(this,arguments)}function H(){return H=(0,b.Z)((0,m.Z)().mark(function f(a){return(0,m.Z)().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",(0,w.WY)("/kitchen/api/bom/getpage",{method:"Post",data:a}));case 1:case"end":return r.stop()}},f)})),H.apply(this,arguments)}function Fe(f){return Q.apply(this,arguments)}function Q(){return Q=(0,b.Z)((0,m.Z)().mark(function f(a){return(0,m.Z)().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",(0,w.WY)("/kitchen/api/systemconfig/GetCosRequestSignURL",{method:"POST",data:a}));case 1:case"end":return r.stop()}},f)})),Q.apply(this,arguments)}function Ee(f){return X.apply(this,arguments)}function X(){return X=(0,b.Z)((0,m.Z)().mark(function f(a){return(0,m.Z)().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",(0,w.WY)("/kitchen/api/GoodsBom/AddBom",{method:"Post",data:a}));case 1:case"end":return r.stop()}},f)})),X.apply(this,arguments)}function Ie(f){return q.apply(this,arguments)}function q(){return q=(0,b.Z)((0,m.Z)().mark(function f(a){return(0,m.Z)().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",(0,w.WY)("/kitchen/api/goodes/DelGoodsBom?Id=".concat(a),{method:"DELETE"}));case 1:case"end":return r.stop()}},f)})),q.apply(this,arguments)}function Pe(f){return _.apply(this,arguments)}function _(){return _=(0,b.Z)((0,m.Z)().mark(function f(a){return(0,m.Z)().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",(0,w.WY)("/kitchen/api/goods-unit/type",{method:"Post",data:a}));case 1:case"end":return r.stop()}},f)})),_.apply(this,arguments)}var e=n(85893),we=function(a){var G=c.Z.Option,r=c.Z.OptGroup,ie=(0,Z.useState)([]),k=(0,y.Z)(ie,2),K=k[0],L=k[1];return(0,e.jsx)(Be.Z,{title:"\u5173\u8054\u5546\u54C1\u914D\u65B9",width:640,visible:a.createModalVisible,bodyStyle:{padding:"32px 40px 1px 48px"},footer:null,onCancel:function(){a.onCancel()},destroyOnClose:!0,children:(0,e.jsxs)(l.Z,{labelCol:{span:4},layout:"horizontal",preserve:!1,onFinish:a.onFinish,children:[(0,e.jsx)(l.Z.Item,{name:"BomType",label:"\u72B6\u6001",rules:[{required:!0,message:"\u914D\u65B9\u7C7B\u578B"}],children:(0,e.jsx)(c.Z,{placeholder:"\u8BF7\u9009\u914D\u65B9\u7C7B\u578B",onChange:function(A){Ge({current:1,pageSize:1e7,IsMain:A}).then(function(M){var D=M.data.data;L(D),console.log(D)})},children:(0,e.jsxs)(r,{children:[(0,e.jsx)(c.Z.Option,{value:"1",children:"\u4E3B\u6599\u914D\u65B9"}),(0,e.jsx)(c.Z.Option,{value:"0",children:"\u8F85\u6599\u914D\u65B9"})]})})}),(0,e.jsx)(l.Z.Item,{name:"bomId",label:"\u914D\u65B9\u4FE1\u606F",rules:[{required:!0,message:"\u914D\u65B9\u4FE1\u606F"}],children:(0,e.jsx)(c.Z,{showSearch:!0,optionFilterProp:"children",placeholder:"\u8BF7\u9009\u914D\u65B9\u4FE1\u606F",children:K.map(function(E,A){return(0,e.jsx)(G,{index:A,value:E.id,children:E.name},E.id)})})}),(0,e.jsxs)(l.Z.Item,{children:[(0,e.jsx)(B.Z,{htmlType:"button",style:{float:"right",left:10},onClick:a.onCancel,children:"\u53D6\u6D88"}),(0,e.jsx)(B.Z,{type:"primary",htmlType:"submit",style:{float:"right"},children:"\u4FDD\u5B58"})]})]})})},Oe=we,ee=n(4795),Ae=n(9669),De=n.n(Ae),gt=s.Z.Step,vt=c.Z.Option,oe=c.Z.OptGroup,Re=function(a){var G=l.Z.useForm(),r=(0,y.Z)(G,1),ie=r[0],k=(0,Z.useState)([]),K=(0,y.Z)(k,2),L=K[0],E=K[1],A=(0,Z.useState)([]),M=(0,y.Z)(A,2),D=M[0],$e=M[1],We=(0,Z.useState)([]),le=(0,y.Z)(We,2),de=le[0],ke=le[1],Ke=(0,Z.useState)([]),ce=(0,y.Z)(Ke,2),yt=ce[0],Zt=ce[1],Le=(0,Z.useState)(),he=(0,y.Z)(Le,2),Me=he[0],te=he[1],Ye=(0,Z.useState)([]),pe=(0,y.Z)(Ye,2),bt=pe[0],Ve=pe[1],Y=(0,Z.useRef)(),ze=(0,Z.useState)("basis"),me=(0,y.Z)(ze,2),Ne=me[0],Je=me[1],He=(0,Z.useState)(a.location.query.values?a.location.query.values.imgUrl:null),fe=(0,y.Z)(He,2),V=fe[0],Qe=fe[1],Xe=(0,Z.useState)(0),ge=(0,y.Z)(Xe,2),qe=ge[0],_e=ge[1],et=function(){var o=(0,b.Z)((0,m.Z)().mark(function u(p){var d;return(0,m.Z)().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return d=C.default.loading("\u6B63\u5728\u6DFB\u52A0"),i.prev=1,a.location.query.isAdd&&(p.id=null),p.imgUrl=V||p.imgUrl,i.next=6,(0,ee.Rq)(JSON.stringify(p)).then(function(j){j.data?C.default.success("\u6DFB\u52A0\u6210\u529F"):C.default.error("\u6DFB\u52A0\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01")});case 6:return d(),i.abrupt("return",!0);case 10:return i.prev=10,i.t0=i.catch(1),d(),C.default.error("\u6DFB\u52A0\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),i.abrupt("return",!1);case 15:case"end":return i.stop()}},u,null,[[1,10]])}));return function(p){return o.apply(this,arguments)}}(),tt={name:"file",showUploadList:!1,multiple:!1,accept:".png, .jpg, .jpeg, .gif",headers:{"Content-Type":"application/octet-stream"},customRequest:function(u){var p=u.action,d=u.file,g=u.headers,i=u.onError,j=u.onProgress,jt=u.onSuccess,it=u.withCredentials;console.log("\u4E0A\u4F20\u56FE\u7247",d);var lt=d.name.lastIndexOf("."),dt=d.name.substr(lt+1),ye=null;return Fe({directory:"goods",fileExtension:dt,method:"PUT"}).then(function(re){p=re.allUrl;var Ze=new FileReader;Ze.readAsArrayBuffer(d),Ze.onload=function(ct){ye=ct.target.result,De().put(p,ye,{withCredentials:it,headers:g,onUploadProgress:function(be){var ht=be.total,pt=be.loaded;j({percent:Math.round(pt/ht*100).toFixed(2)},d)}}).then(function(z){console.log("onSuccess",z,d),(z.status==200||z.statusText=="OK")&&Qe(re.seeUrl)}).catch(i)}}),{abort:function(){console.log("upload progress is aborted.")}}}},nt=(0,Z.useState)({operationKey:a.location.query.tabStatus?a.location.query.tabStatus:"basis",tabActiveKey:a.location.query.tabStatus?a.location.query.tabStatus:"basis"}),ve=(0,y.Z)(nt,2),ne=ve[0],rt=ve[1];(0,Z.useEffect)(function(){Je(ne.tabActiveKey)},[ne]);var at=function(u){if(qe===1){C.default.info("\u5957\u9910\u4E0D\u80FD\u8BBE\u7F6E\u914D\u65B9");return}rt({operationKey:u,tabActiveKey:u})},ut=[{key:"basis",tab:"\u5546\u54C1\u57FA\u7840\u4FE1\u606F"},{key:"goodsbom",tab:"\u5546\u54C1\u914D\u65B9"}],st=[{title:"\u4E3B\u952E",dataIndex:"id",key:"id",hideInTable:!0,hideInSearch:!0,tip:"\u89C4\u5219\u540D\u79F0\u662F\u552F\u4E00\u7684 key"},{title:"\u914D\u65B9\u540D\u79F0",key:"name",dataIndex:"name",valueType:"textarea"},{title:"\u914D\u65B9\u7C7B\u578B",dataIndex:"isMain",hideInForm:!0,valueEnum:{false:{text:"\u8F85\u6599",status:"Processing"},true:{text:"\u4E3B\u6599",status:"Success"}}},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(u,p){return[(0,e.jsx)("a",{type:"primary",onClick:function(){var g=C.default.loading("\u6B63\u5728\u5220\u9664");try{return Ie(p.id),g(),C.default.success("\u5220\u9664\u6210\u529F\uFF0C\u5373\u5C06\u5237\u65B0"),Y.current.reload(),!0}catch(i){return g(),C.default.error("\u5220\u9664\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5"),Y.current.reload(),!1}},children:"\u5220\u9664"},"primary")]}}],ot={basis:(0,e.jsx)(S.Z,{title:"\u5546\u54C1\u57FA\u7840\u4FE1\u606F",style:{marginBottom:24},bordered:!1,children:(0,e.jsxs)(l.Z,{labelCol:{span:4},wrapperCol:{span:6},layout:"horizontal",preserve:!1,initialValues:a.location.query.values,onFinish:et,children:[(0,e.jsx)(l.Z.Item,{name:"id",hidden:!0,children:(0,e.jsx)(T.Z,{})}),(0,e.jsx)(l.Z.Item,{name:"code",label:"\u5546\u54C1\u7F16\u7801",hidden:!0,children:(0,e.jsx)(T.Z,{disabled:!0})}),(0,e.jsx)(l.Z.Item,{name:"name",label:"\u5546\u54C1\u540D\u79F0",rules:[{required:!0}],children:(0,e.jsx)(T.Z,{})}),(0,e.jsx)(l.Z.Item,{name:"goodsUintId",label:"\u5546\u54C1\u5355\u4F4D",rules:[{required:!0}],children:(0,e.jsx)(c.Z,{children:D==null?"":D.map(function(o,u){return(0,e.jsx)(c.Z.Option,{index:u,value:o.id,children:o.name},o.id)})})}),(0,e.jsx)(l.Z.Item,{name:"price",label:"\u5546\u54C1\u4EF7\u683C",rules:[{required:!0}],children:(0,e.jsx)(P.Z,{placeholder:"\u4EF7\u683C",min:0})}),(0,e.jsx)(l.Z.Item,{name:"vipPrice",label:"\u4F1A\u5458\u4EF7\u683C",children:(0,e.jsx)(P.Z,{placeholder:"\u4F1A\u5458\u4EF7",min:0})}),(0,e.jsx)(l.Z.Item,{name:"parentTypeID",label:"\u5546\u54C1\u5927\u7C7B",rules:[{required:!0}],children:(0,e.jsx)(c.Z,{children:de==null?"":de.map(function(o,u){return(0,e.jsx)(c.Z.Option,{index:u,value:o.id,children:o.name},o.id)})})}),(0,e.jsx)(l.Z.Item,{name:"goodsTypeId",label:"\u5546\u54C1\u5C0F\u7C7B",rules:[{required:!0}],children:(0,e.jsx)(c.Z,{children:L==null?"":L.map(function(o,u){return(0,e.jsx)(c.Z.Option,{index:u,value:o.id,children:o.goodsType_Name},o.id)})})}),(0,e.jsx)(l.Z.Item,{name:"goodsAttribute",label:"\u5546\u54C1\u5C5E\u6027",defaultValue:0,rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u5546\u54C1\u5C5E\u6027"}],children:(0,e.jsx)(c.Z,{placeholder:"\u8BF7\u9009\u62E9\u5546\u54C1\u5C5E\u6027",onChange:function(u){_e(u)},children:(0,e.jsxs)(oe,{children:[(0,e.jsx)(c.Z.Option,{value:0,children:"\u5355\u54C1"}),(0,e.jsx)(c.Z.Option,{value:1,children:"\u5957\u9910"})]})})}),(0,e.jsx)(l.Z.Item,{name:"status",label:"\u72B6\u6001",defaultValue:0,rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u72B6\u6001"}],children:(0,e.jsx)(c.Z,{placeholder:"\u8BF7\u9009\u62E9\u72B6\u6001",children:(0,e.jsxs)(oe,{children:[(0,e.jsx)(c.Z.Option,{value:0,children:"\u6B63\u5E38"}),(0,e.jsx)(c.Z.Option,{value:1,children:"\u505C\u7528"})]})})}),(0,e.jsx)(l.Z.Item,{name:"remark",label:"\u5907\u6CE8",children:(0,e.jsx)(T.Z,{})}),(0,e.jsx)(l.Z.Item,{name:"imgUrl",hidden:!0,children:(0,e.jsx)(T.Z,{})}),(0,e.jsx)(l.Z.Item,{name:"imgUrl1",label:"\u5546\u54C1\u56FE\u7247\u5730\u5740",children:(0,e.jsx)(O.Z,(0,I.Z)((0,I.Z)({},tt),{},{children:V?(0,e.jsx)("img",{src:V,alt:"avatar",style:{width:"100%"}}):(0,e.jsx)(B.Z,{icon:(0,e.jsx)(h.Z,{}),children:"\u4E0A\u4F20"})}))}),(0,e.jsx)(l.Z.Item,{label:"\u662F\u5426\u79F0\u91CD",name:"isWeigh",valuePropName:"checked",initialValue:"false",children:(0,e.jsx)(N.Z,{checkedChildren:"\u662F",unCheckedChildren:"\u5426",defaultChecked:"false"})}),(0,e.jsx)(l.Z.Item,{children:(0,e.jsx)(B.Z,{type:"primary",htmlType:"submit",children:"\u4FDD\u5B58"})})]})}),goodsbom:(0,e.jsxs)(S.Z,{title:"\u5546\u54C1\u914D\u65B9",style:{marginBottom:24},bordered:!1,children:[(0,e.jsx)(Se.ZP,{columns:st,actionRef:Y,rowKey:"id",search:!1,toolBarRender:function(){return[(0,e.jsxs)(B.Z,{type:"primary",onClick:function(){a.location.query.values.id==null||a.location.query.values.id==null?C.default.info("\u8BF7\u5148\u6DFB\u52A0\u5546\u54C1\u57FA\u7840\u4FE1\u606F!"):te(!0)},children:[(0,e.jsx)(x.Z,{})," \u9009\u62E9\u914D\u65B9"]},"primary")]},request:function(){var o=(0,b.Z)((0,m.Z)().mark(function u(p){var d,g;return(0,m.Z)().wrap(function(j){for(;;)switch(j.prev=j.next){case 0:if(!(a.location.query.values.id==null||a.location.query.values.id==null)){j.next=3;break}j.next=9;break;case 3:return p.GoodsId=a.location.query.values.id,d=0,j.next=7,Te(p);case 7:return g=j.sent,j.abrupt("return",{data:g.data.data,success:!0,total:d});case 9:case"end":return j.stop()}},u)}));return function(u){return o.apply(this,arguments)}}(),rowSelection:{onChange:function(u,p){return Ve(p)}}}),(0,e.jsx)(Oe,{onFinish:function(){var o=(0,b.Z)((0,m.Z)().mark(function u(p){var d;return(0,m.Z)().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return console.log("value",p),p.GoodsId=a.location.query.values.id,d=!1,i.next=5,Ee(p);case 5:d=i.sent,d&&te(!1),Y.current.reload();case 8:case"end":return i.stop()}},u)}));return function(u){return o.apply(this,arguments)}}(),onCancel:function(){te(!1)},createModalVisible:Me})]})};return(0,Z.useEffect)(function(){function o(){(0,ee.fA)({current:1,status:0,pageSize:1e3}).then(function(d){var g=d.data.data;g.forEach(function(i){i.text=i.goodsType_Name}),E(g)})}function u(){(0,ee.se)({current:1,status:0,pageSize:1e3}).then(function(d){var g=d.data.data;g.forEach(function(i){i.text=i.name}),ke(g)})}function p(){Pe('{"current":1,"pageSize":200}').then(function(d){var g=d.data.data;$e(g)})}p(),o(),u()},[]),(0,e.jsx)(t.ZP,{title:a.location.query.isAdd?"\u5546\u54C1\u65B0\u589E":"\u8BE6\u60C5",tabActiveKey:Ne,onTabChange:at,tabList:ut,children:ot[ne.operationKey]})},Ue=Re},4795:function(je,R,n){"use strict";n.d(R,{lO:function(){return N},GT:function(){return ae},Rq:function(){return ue},e3:function(){return m},yR:function(){return C},fA:function(){return se},se:function(){return y}});var v=n(39428),S=n(3182),F=n(48971);function N(s){return I.apply(this,arguments)}function I(){return I=(0,S.Z)((0,v.Z)().mark(function s(h){return(0,v.Z)().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,F.WY)("/kitchen/api/goods/goodss",{method:"Post",data:h}));case 1:case"end":return t.stop()}},s)})),I.apply(this,arguments)}function ae(s){return O.apply(this,arguments)}function O(){return O=(0,S.Z)((0,v.Z)().mark(function s(h){return(0,v.Z)().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,F.WY)("/kitchen/api/bom/getpage",{method:"Post",data:h}));case 1:case"end":return t.stop()}},s)})),O.apply(this,arguments)}function Ce(s){return B.apply(this,arguments)}function B(){return B=_asyncToGenerator(_regeneratorRuntime().mark(function s(h){return _regeneratorRuntime().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",request("/kitchen/api/GoodsBom/AddBom",{method:"Post",data:h}));case 1:case"end":return t.stop()}},s)})),B.apply(this,arguments)}function xe(s){return P.apply(this,arguments)}function P(){return P=_asyncToGenerator(_regeneratorRuntime().mark(function s(h){return _regeneratorRuntime().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",request("/kitchen/api/GoodsBom/getBomInfo",{method:"Post",data:h}));case 1:case"end":return t.stop()}},s)})),P.apply(this,arguments)}function ue(s){return T.apply(this,arguments)}function T(){return T=(0,S.Z)((0,v.Z)().mark(function s(h){return(0,v.Z)().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,F.WY)("/kitchen/api/goods",{method:"POST",data:h}));case 1:case"end":return t.stop()}},s)})),T.apply(this,arguments)}function m(s){return U.apply(this,arguments)}function U(){return U=(0,S.Z)((0,v.Z)().mark(function s(h){return(0,v.Z)().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return console.log("\u5546\u54C1\u6570\u636E\u4FEE\u6539",h),t.abrupt("return",(0,F.WY)("/kitchen/api/goods",{method:"PUT",data:h}));case 2:case"end":return t.stop()}},s)})),U.apply(this,arguments)}function C(s){return b.apply(this,arguments)}function b(){return b=(0,S.Z)((0,v.Z)().mark(function s(h){return(0,v.Z)().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,F.WY)("/kitchen/api/goods",{method:"DELETE",data:h}));case 1:case"end":return t.stop()}},s)})),b.apply(this,arguments)}function se(s){return l.apply(this,arguments)}function l(){return l=(0,S.Z)((0,v.Z)().mark(function s(h){return(0,v.Z)().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,F.WY)("/kitchen/api/goods-type/goods-types",{method:"POST",data:h}));case 1:case"end":return t.stop()}},s)})),l.apply(this,arguments)}function y(s){return $.apply(this,arguments)}function $(){return $=(0,S.Z)((0,v.Z)().mark(function s(h){return(0,v.Z)().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,F.WY)("/kitchen/api/goods-type/big-goods-types",{method:"POST",data:h}));case 1:case"end":return t.stop()}},s)})),$.apply(this,arguments)}function c(s){return W.apply(this,arguments)}function W(){return W=_asyncToGenerator(_regeneratorRuntime().mark(function s(h){return _regeneratorRuntime().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",request("/kitchen/api/goodstaste/getlist"));case 1:case"end":return t.stop()}},s)})),W.apply(this,arguments)}}}]); diff --git a/dist/p__goods__goodsParentTypemanage.4aa292c9.async.js b/dist/p__goods__goodsParentTypemanage.4aa292c9.async.js deleted file mode 100644 index 71629b8..0000000 --- a/dist/p__goods__goodsParentTypemanage.4aa292c9.async.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[4061],{21536:function(fe,O,t){"use strict";t.r(O),t.d(O,{default:function(){return oe}});var me=t(57338),U=t(273),ve=t(57663),F=t(71577),ye=t(62350),z=t(24565),R=t(2824),a=t(39428),Ze=t(34792),h=t(48086),f=t(3182),J=t(49101),j=t(67294),K=t(78009),H=t(85224),Q=t(16894),X=t(12826),ge=t(71194),q=t(50146),we=t(9715),w=t(55843),Ce=t(47673),$=t(4107),je=t(43358),T=t(34041),r=t(85893),_=function(n){var o=T.Z.Option,e=T.Z.OptGroup;return(0,r.jsx)(q.Z,{title:n.values.id?"\u7F16\u8F91":"\u65B0\u5EFA",width:640,visible:n.createModalVisible,bodyStyle:{padding:"32px 40px 1px 48px"},footer:null,onCancel:function(){n.onCancel()},destroyOnClose:!0,children:(0,r.jsxs)(w.Z,{labelCol:{span:4},layout:"horizontal",preserve:!1,initialValues:n.values,onFinish:n.onFinish,children:[(0,r.jsx)(w.Z.Item,{name:"id",hidden:!0,children:(0,r.jsx)($.Z,{})}),(0,r.jsx)(w.Z.Item,{name:"name",label:"\u5927\u7C7B\u540D\u79F0",rules:[{required:!0,max:50}],children:(0,r.jsx)($.Z,{})}),(0,r.jsx)(w.Z.Item,{name:"status",label:"\u72B6\u6001",defaultValue:n.values.status,rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u72B6\u6001"}],children:(0,r.jsx)(T.Z,{placeholder:"\u8BF7\u9009\u62E9\u72B6\u6001",children:(0,r.jsxs)(e,{children:[(0,r.jsx)(T.Z.Option,{value:"0",children:"\u6B63\u5E38"}),(0,r.jsx)(T.Z.Option,{value:"1",children:"\u505C\u7528"})]})})}),(0,r.jsx)(w.Z.Item,{name:"remark",label:"\u5907\u6CE8",children:(0,r.jsx)($.Z,{})}),(0,r.jsxs)(w.Z.Item,{children:[(0,r.jsx)(F.Z,{htmlType:"button",style:{float:"right",left:10},onClick:n.onCancel,children:"\u53D6\u6D88"}),(0,r.jsx)(F.Z,{type:"primary",htmlType:"submit",style:{float:"right"},children:"\u4FDD\u5B58"})]})]})})},ee=_,G=t(48971);function Te(u){return I.apply(this,arguments)}function I(){return I=_asyncToGenerator(_regeneratorRuntime().mark(function u(n){return _regeneratorRuntime().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",request("/kitchen/api/goods-type/goods-type-list-new",{method:"GET"}));case 1:case"end":return e.stop()}},u)})),I.apply(this,arguments)}function re(u){return k.apply(this,arguments)}function k(){return k=(0,f.Z)((0,a.Z)().mark(function u(n){return(0,a.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,G.WY)("/kitchen/api/goods-type/big-goods-types",{method:"POST",data:n}));case 1:case"end":return e.stop()}},u)})),k.apply(this,arguments)}function Ge(u){return D.apply(this,arguments)}function D(){return D=_asyncToGenerator(_regeneratorRuntime().mark(function u(n){return _regeneratorRuntime().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",request("/kitchen/api/dict-data/dic-list/".concat(n),{method:"Get"}));case 1:case"end":return e.stop()}},u)})),D.apply(this,arguments)}function te(u){return b.apply(this,arguments)}function b(){return b=(0,f.Z)((0,a.Z)().mark(function u(n){return(0,a.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,G.WY)("/kitchen/api/goods-type/goods-type-new",{method:"post",data:n}));case 1:case"end":return e.stop()}},u)})),b.apply(this,arguments)}function ne(u){return B.apply(this,arguments)}function B(){return B=(0,f.Z)((0,a.Z)().mark(function u(n){return(0,a.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,G.WY)("/kitchen/api/goods-type/goods-type-new",{method:"put",data:n}));case 1:case"end":return e.stop()}},u)})),B.apply(this,arguments)}function ae(u){return A.apply(this,arguments)}function A(){return A=(0,f.Z)((0,a.Z)().mark(function u(n){return(0,a.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,G.WY)("/kitchen/api/goodstype/delgoodsparenttype?id=".concat(n),{method:"Get"}));case 1:case"end":return e.stop()}},u)})),A.apply(this,arguments)}function ue(u){return E.apply(this,arguments)}function E(){return E=(0,f.Z)((0,a.Z)().mark(function u(n){return(0,a.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,G.WY)("/kitchen/api/goodstype/batchdelgoodsparenttype",{method:"post",data:n}));case 1:case"end":return e.stop()}},u)})),E.apply(this,arguments)}var se=function(){var u=(0,f.Z)((0,a.Z)().mark(function n(o){var e;return(0,a.Z)().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return e=h.default.loading("\u6B63\u5728\u6DFB\u52A0"),l.prev=1,l.next=4,te(JSON.stringify(o)).then(function(Z){Z.succeeded?h.default.success("\u6DFB\u52A0\u6210\u529F"):h.default.error(Z.errors)});case 4:return e(),l.abrupt("return",!0);case 8:return l.prev=8,l.t0=l.catch(1),e(),h.default.error("\u6DFB\u52A0\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),l.abrupt("return",!1);case 13:case"end":return l.stop()}},n,null,[[1,8]])}));return function(o){return u.apply(this,arguments)}}(),le=function(){var u=(0,f.Z)((0,a.Z)().mark(function n(o){var e;return(0,a.Z)().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return e=h.default.loading("\u6B63\u5728\u4FEE\u6539"),l.prev=1,l.next=4,ne({id:o.id,Name:o.name,remark:o.remark,status:o.status}).then(function(Z){Z.succeeded?h.default.success("\u4FEE\u6539\u6210\u529F"):h.default.error(Z.errors)});case 4:return e(),l.abrupt("return",!0);case 8:return l.prev=8,l.t0=l.catch(1),e(),h.default.error("\u4FEE\u6539\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),l.abrupt("return",!1);case 13:case"end":return l.stop()}},n,null,[[1,8]])}));return function(o){return u.apply(this,arguments)}}(),ie=function(){var n=(0,j.useState)(!1),o=(0,R.Z)(n,2),e=o[0],g=o[1],l=(0,j.useState)(!1),Z=(0,R.Z)(l,2),de=Z[0],L=Z[1],C=(0,j.useRef)(),ce=(0,j.useState)(),N=(0,R.Z)(ce,2),v=N[0],S=N[1],pe=(0,j.useState)([]),P=(0,R.Z)(pe,2),x=P[0],W=P[1],he=function(){var p=(0,f.Z)((0,a.Z)().mark(function d(s){var c;return(0,a.Z)().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:if(c=h.default.loading("\u6B63\u5728\u5220\u9664"),s){i.next=3;break}return i.abrupt("return",!0);case 3:return i.next=5,ue(s.map(function(m){return m.id})).then(function(m){m.succeeded?(h.default.success("\u5220\u9664\u6210\u529F"),C.current.reload()):h.default.error(m.errors)});case 5:return c(),i.abrupt("return",!0);case 7:case"end":return i.stop()}},d)}));return function(s){return p.apply(this,arguments)}}(),M=[{title:"\u4E3B\u952E",dataIndex:"id",hideInSearch:!0,hideInTable:!0,tip:"\u89C4\u5219\u540D\u79F0\u662F\u552F\u4E00\u7684 key",render:function(d,s){return(0,r.jsx)("a",{onClick:function(){S(s),L(!0)},children:d})}},{title:"\u540D\u79F0",dataIndex:"name",valueType:"textarea",ellipsis:!0},{title:"\u5907\u6CE8",dataIndex:"remark",ellipsis:!0,hideInForm:!0,hideInSearch:!0},{title:"\u72B6\u6001",dataIndex:"status",hideInForm:!0,hideInSearch:!0,valueEnum:{0:{text:"\u6B63\u5E38",status:"Processing"},1:{text:"\u505C\u7528",status:"Success"}}},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(d,s){return[(0,r.jsx)("a",{onClick:function(){g(!0),S(s)},children:"\u66F4\u65B0"},"config"),(0,r.jsx)(z.Z,{type:"primary",title:"\u786E\u8BA4\u5220\u9664\u5417\uFF1F",okText:"\u662F",cancelText:"\u5426",onConfirm:(0,f.Z)((0,a.Z)().mark(function c(){return(0,a.Z)().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,ae(s.id).then(function(m){m.succeeded?(h.default.success("\u5220\u9664\u6210\u529F"),C.current.reload()):h.default.error(m.errors)});case 2:case"end":return i.stop()}},c)})),onCancel:function(){},children:(0,r.jsx)("a",{href:"#",children:"\u5220\u9664"})},"primary")]}}];return(0,r.jsxs)(K.ZP,{children:[(0,r.jsx)(Q.ZP,{headerTitle:"",actionRef:C,rowKey:"id",search:{labelWidth:120},toolBarRender:function(){return[(0,r.jsxs)(F.Z,{type:"primary",onClick:function(){g(!0)},children:[(0,r.jsx)(J.Z,{})," \u65B0\u5EFA"]},"primary")]},request:function(){var p=(0,f.Z)((0,a.Z)().mark(function d(s){var c,y;return(0,a.Z)().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:return c=[],y=0,m.next=4,re(s).then(function(V){c=V.data.data,c.forEach(function(Y){Y.status=Y.status.toString()}),y=V.data.total});case 4:return m.abrupt("return",{data:c,success:!0,total:y});case 5:case"end":return m.stop()}},d)}));return function(d){return p.apply(this,arguments)}}(),columns:M,rowSelection:{onChange:function(d,s){W(s)}}}),(x==null?void 0:x.length)>0&&(0,r.jsx)(H.Z,{extra:(0,r.jsxs)("div",{children:["\u5DF2\u9009\u62E9"," ",(0,r.jsx)("a",{style:{fontWeight:600},children:x.length})," ","\u9879 \xA0\xA0"]}),children:(0,r.jsx)(F.Z,{onClick:(0,f.Z)((0,a.Z)().mark(function p(){var d,s;return(0,a.Z)().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:return y.next=2,he(x);case 2:W([]),(d=C.current)===null||d===void 0||(s=d.reloadAndRest)===null||s===void 0||s.call(d);case 4:case"end":return y.stop()}},p)})),children:"\u5220\u9664"})}),(0,r.jsx)(ee,{onFinish:function(){var p=(0,f.Z)((0,a.Z)().mark(function d(s){var c;return(0,a.Z)().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:if(c=!1,!s.id){i.next=7;break}return i.next=4,le(s);case 4:c=i.sent,i.next=10;break;case 7:return i.next=9,se(s);case 9:c=i.sent;case 10:c&&(g(!1),S(void 0),C.current&&C.current.reload());case 11:case"end":return i.stop()}},d)}));return function(d){return p.apply(this,arguments)}}(),onCancel:function(){g(!1),S(void 0)},createModalVisible:e,values:v||{}}),(0,r.jsx)(U.Z,{width:600,visible:de,onClose:function(){S(void 0),L(!1)},closable:!1,children:(v==null?void 0:v.name)&&(0,r.jsx)(X.ZP,{column:2,title:v==null?void 0:v.name,request:(0,f.Z)((0,a.Z)().mark(function p(){return(0,a.Z)().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.abrupt("return",{data:v||{}});case 1:case"end":return s.stop()}},p)})),params:{id:v==null?void 0:v.name},columns:M})})]})},oe=ie}}]); diff --git a/dist/p__goods__goodsParentTypemanage.945a22b8.async.js b/dist/p__goods__goodsParentTypemanage.945a22b8.async.js new file mode 100644 index 0000000..9778aa8 --- /dev/null +++ b/dist/p__goods__goodsParentTypemanage.945a22b8.async.js @@ -0,0 +1 @@ +(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[4061],{21536:function(fe,L,t){"use strict";t.r(L),t.d(L,{default:function(){return oe}});var me=t(57338),z=t(273),ve=t(57663),F=t(71577),ye=t(62350),J=t(24565),$=t(2824),a=t(39428),Ze=t(34792),m=t(48086),v=t(3182),K=t(49101),T=t(67294),H=t(78009),Q=t(85224),X=t(16894),q=t(12826),ge=t(71194),_=t(50146),we=t(9715),C=t(55843),Ce=t(47673),k=t(4107),je=t(43358),G=t(34041),r=t(85893),ee=function(s){var d=G.Z.Option,e=G.Z.OptGroup;return(0,r.jsx)(_.Z,{title:s.values.id?"\u7F16\u8F91":"\u65B0\u5EFA",width:640,visible:s.createModalVisible,bodyStyle:{padding:"32px 40px 1px 48px"},footer:null,onCancel:function(){s.onCancel()},destroyOnClose:!0,children:(0,r.jsxs)(C.Z,{labelCol:{span:4},layout:"horizontal",preserve:!1,initialValues:s.values,onFinish:s.onFinish,children:[(0,r.jsx)(C.Z.Item,{name:"id",hidden:!0,children:(0,r.jsx)(k.Z,{})}),(0,r.jsx)(C.Z.Item,{name:"name",label:"\u5927\u7C7B\u540D\u79F0",rules:[{required:!0,max:50}],children:(0,r.jsx)(k.Z,{})}),(0,r.jsx)(C.Z.Item,{name:"status",label:"\u72B6\u6001",defaultValue:s.values.status,rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u72B6\u6001"}],children:(0,r.jsx)(G.Z,{placeholder:"\u8BF7\u9009\u62E9\u72B6\u6001",children:(0,r.jsxs)(e,{children:[(0,r.jsx)(G.Z.Option,{value:"0",children:"\u6B63\u5E38"}),(0,r.jsx)(G.Z.Option,{value:"1",children:"\u505C\u7528"})]})})}),(0,r.jsx)(C.Z.Item,{name:"remark",label:"\u5907\u6CE8",children:(0,r.jsx)(k.Z,{})}),(0,r.jsxs)(C.Z.Item,{children:[(0,r.jsx)(F.Z,{htmlType:"button",style:{float:"right",left:10},onClick:s.onCancel,children:"\u53D6\u6D88"}),(0,r.jsx)(F.Z,{type:"primary",htmlType:"submit",style:{float:"right"},children:"\u4FDD\u5B58"})]})]})})},re=ee,S=t(48971);function Te(u){return I.apply(this,arguments)}function I(){return I=_asyncToGenerator(_regeneratorRuntime().mark(function u(s){return _regeneratorRuntime().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",request("/kitchen/api/goods-type/goods-type-list-new",{method:"GET"}));case 1:case"end":return e.stop()}},u)})),I.apply(this,arguments)}function te(u){return D.apply(this,arguments)}function D(){return D=(0,v.Z)((0,a.Z)().mark(function u(s){return(0,a.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,S.WY)("/kitchen/api/goods-type/big-goods-types",{method:"POST",data:s}));case 1:case"end":return e.stop()}},u)})),D.apply(this,arguments)}function Ge(u){return b.apply(this,arguments)}function b(){return b=_asyncToGenerator(_regeneratorRuntime().mark(function u(s){return _regeneratorRuntime().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",request("/kitchen/api/dict-data/dic-list/".concat(s),{method:"Get"}));case 1:case"end":return e.stop()}},u)})),b.apply(this,arguments)}function ne(u){return B.apply(this,arguments)}function B(){return B=(0,v.Z)((0,a.Z)().mark(function u(s){return(0,a.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,S.WY)("/kitchen/api/goods-type/goods-type-new",{method:"post",data:s}));case 1:case"end":return e.stop()}},u)})),B.apply(this,arguments)}function ae(u){return A.apply(this,arguments)}function A(){return A=(0,v.Z)((0,a.Z)().mark(function u(s){return(0,a.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,S.WY)("/kitchen/api/goods-type/goods-type-new",{method:"put",data:s}));case 1:case"end":return e.stop()}},u)})),A.apply(this,arguments)}function se(u){return E.apply(this,arguments)}function E(){return E=(0,v.Z)((0,a.Z)().mark(function u(s){return(0,a.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,S.WY)("/kitchen/api/goodstype/delgoodsparenttype?id=".concat(s),{method:"Get"}));case 1:case"end":return e.stop()}},u)})),E.apply(this,arguments)}function ue(u){return O.apply(this,arguments)}function O(){return O=(0,v.Z)((0,a.Z)().mark(function u(s){return(0,a.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,S.WY)("/kitchen/api/goodstype/batchdelgoodsparenttype",{method:"post",data:s}));case 1:case"end":return e.stop()}},u)})),O.apply(this,arguments)}var le=function(){var u=(0,v.Z)((0,a.Z)().mark(function s(d){var e;return(0,a.Z)().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return e=m.default.loading("\u6B63\u5728\u6DFB\u52A0"),i.prev=1,i.next=4,ne(JSON.stringify(d)).then(function(Z){Z.succeeded?m.default.success("\u6DFB\u52A0\u6210\u529F"):m.default.error(Z.errors)});case 4:return e(),i.abrupt("return",!0);case 8:return i.prev=8,i.t0=i.catch(1),e(),m.default.error("\u6DFB\u52A0\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),i.abrupt("return",!1);case 13:case"end":return i.stop()}},s,null,[[1,8]])}));return function(d){return u.apply(this,arguments)}}(),N=function(){var u=(0,v.Z)((0,a.Z)().mark(function s(d){var e;return(0,a.Z)().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return e=m.default.loading("\u6B63\u5728\u4FEE\u6539"),i.prev=1,i.next=4,ae({id:d.id,Name:d.name,remark:d.remark,status:d.status}).then(function(Z){Z.succeeded?m.default.success("\u4FEE\u6539\u6210\u529F"):m.default.error(Z.errors)});case 4:return e(),i.abrupt("return",!0);case 8:return i.prev=8,i.t0=i.catch(1),e(),m.default.error("\u4FEE\u6539\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),i.abrupt("return",!1);case 13:case"end":return i.stop()}},s,null,[[1,8]])}));return function(d){return u.apply(this,arguments)}}(),ie=function(){var s=(0,T.useState)(!1),d=(0,$.Z)(s,2),e=d[0],g=d[1],i=(0,T.useState)(!1),Z=(0,$.Z)(i,2),de=Z[0],P=Z[1],w=(0,T.useRef)(),ce=(0,T.useState)(),W=(0,$.Z)(ce,2),y=W[0],j=W[1],pe=(0,T.useState)([]),M=(0,$.Z)(pe,2),x=M[0],V=M[1],he=function(){var h=(0,v.Z)((0,a.Z)().mark(function c(n){var o;return(0,a.Z)().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:if(o=m.default.loading("\u6B63\u5728\u5220\u9664"),n){l.next=3;break}return l.abrupt("return",!0);case 3:return l.next=5,ue(n.map(function(p){return p.id})).then(function(p){p.succeeded?(m.default.success("\u5220\u9664\u6210\u529F"),w.current.reload()):m.default.error(p.errors)});case 5:return o(),l.abrupt("return",!0);case 7:case"end":return l.stop()}},c)}));return function(n){return h.apply(this,arguments)}}(),Y=[{title:"\u4E3B\u952E",dataIndex:"id",hideInSearch:!0,hideInTable:!0,tip:"\u89C4\u5219\u540D\u79F0\u662F\u552F\u4E00\u7684 key",render:function(c,n){return(0,r.jsx)("a",{onClick:function(){j(n),P(!0)},children:c})}},{title:"\u540D\u79F0",dataIndex:"name",valueType:"textarea",ellipsis:!0},{title:"\u5907\u6CE8",dataIndex:"remark",ellipsis:!0,hideInForm:!0,hideInSearch:!0},{title:"\u72B6\u6001",dataIndex:"status",hideInForm:!0,hideInSearch:!0,valueEnum:{0:{text:"\u6B63\u5E38",status:"Processing"},1:{text:"\u505C\u7528",status:"Success"}}},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(c,n){return[(0,r.jsx)("a",{onClick:(0,v.Z)((0,a.Z)().mark(function o(){var f;return(0,a.Z)().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:return f=0,n.status==0&&(f=1),j(n.status=f),p.next=5,N(n).then(function(R){R?w.current.reload():m.default.error("\u914D\u7F6E\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01")});case 5:case"end":return p.stop()}},o)})),children:n.status==0?"\u505C\u7528":"\u4F7F\u7528"},"state"),(0,r.jsx)("a",{onClick:function(){g(!0),j(n)},children:"\u66F4\u65B0"},"config"),(0,r.jsx)(J.Z,{type:"primary",title:"\u786E\u8BA4\u5220\u9664\u5417\uFF1F",okText:"\u662F",cancelText:"\u5426",onConfirm:(0,v.Z)((0,a.Z)().mark(function o(){return(0,a.Z)().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.next=2,se(n.id).then(function(p){p.succeeded?(m.default.success("\u5220\u9664\u6210\u529F"),w.current.reload()):m.default.error(p.errors)});case 2:case"end":return l.stop()}},o)})),onCancel:function(){},children:(0,r.jsx)("a",{href:"#",children:"\u5220\u9664"})},"primary")]}}];return(0,r.jsxs)(H.ZP,{children:[(0,r.jsx)(X.ZP,{headerTitle:"",actionRef:w,rowKey:"id",search:{labelWidth:120},toolBarRender:function(){return[(0,r.jsxs)(F.Z,{type:"primary",onClick:function(){g(!0)},children:[(0,r.jsx)(K.Z,{})," \u65B0\u5EFA"]},"primary")]},request:function(){var h=(0,v.Z)((0,a.Z)().mark(function c(n){var o,f;return(0,a.Z)().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:return o=[],f=0,p.next=4,te(n).then(function(R){o=R.data.data,o.forEach(function(U){U.status=U.status.toString()}),f=R.data.total});case 4:return p.abrupt("return",{data:o,success:!0,total:f});case 5:case"end":return p.stop()}},c)}));return function(c){return h.apply(this,arguments)}}(),columns:Y,rowSelection:{onChange:function(c,n){V(n)}}}),(x==null?void 0:x.length)>0&&(0,r.jsx)(Q.Z,{extra:(0,r.jsxs)("div",{children:["\u5DF2\u9009\u62E9"," ",(0,r.jsx)("a",{style:{fontWeight:600},children:x.length})," ","\u9879 \xA0\xA0"]}),children:(0,r.jsx)(F.Z,{onClick:(0,v.Z)((0,a.Z)().mark(function h(){var c,n;return(0,a.Z)().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return f.next=2,he(x);case 2:V([]),(c=w.current)===null||c===void 0||(n=c.reloadAndRest)===null||n===void 0||n.call(c);case 4:case"end":return f.stop()}},h)})),children:"\u5220\u9664"})}),(0,r.jsx)(re,{onFinish:function(){var h=(0,v.Z)((0,a.Z)().mark(function c(n){var o;return(0,a.Z)().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:if(o=!1,!n.id){l.next=7;break}return l.next=4,N(n);case 4:o=l.sent,l.next=10;break;case 7:return l.next=9,le(n);case 9:o=l.sent;case 10:o&&(g(!1),j(void 0),w.current&&w.current.reload());case 11:case"end":return l.stop()}},c)}));return function(c){return h.apply(this,arguments)}}(),onCancel:function(){g(!1),j(void 0)},createModalVisible:e,values:y||{}}),(0,r.jsx)(z.Z,{width:600,visible:de,onClose:function(){j(void 0),P(!1)},closable:!1,children:(y==null?void 0:y.name)&&(0,r.jsx)(q.ZP,{column:2,title:y==null?void 0:y.name,request:(0,v.Z)((0,a.Z)().mark(function h(){return(0,a.Z)().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",{data:y||{}});case 1:case"end":return n.stop()}},h)})),params:{id:y==null?void 0:y.name},columns:Y})})]})},oe=ie}}]); diff --git a/dist/p__goods__goodsPractice.bad5ced0.async.js b/dist/p__goods__goodsPractice.18c39f95.async.js similarity index 99% rename from dist/p__goods__goodsPractice.bad5ced0.async.js rename to dist/p__goods__goodsPractice.18c39f95.async.js index 9506127..e0e0dd8 100644 --- a/dist/p__goods__goodsPractice.bad5ced0.async.js +++ b/dist/p__goods__goodsPractice.18c39f95.async.js @@ -1 +1 @@ -(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[5547],{85379:function(ve,A,l){"use strict";l.r(A),l.d(A,{default:function(){return be}});var k=l(57663),w=l(71577),M=l(62350),F=l(24565),c=l(39428),h=l(3182),m=l(34792),p=l(48086),y=l(2824),v=l(18106),Z=l(95562),E=l(49101),T=l(67294),B=l(16894),x=l(30381),C=l(48971);function O(r){return P.apply(this,arguments)}function P(){return P=_asyncToGenerator(_regeneratorRuntime().mark(function r(t){return _regeneratorRuntime().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",request("/kitchen/api/goodspracticetype/add",{method:"POST",data:t}));case 1:case"end":return e.stop()}},r)})),P.apply(this,arguments)}function D(r){return W.apply(this,arguments)}function W(){return W=(0,h.Z)((0,c.Z)().mark(function r(t){return(0,c.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,C.WY)("/kitchen/api/goodspracticetype/get",{method:"POST",data:t}));case 1:case"end":return e.stop()}},r)})),W.apply(this,arguments)}function Ke(r){return K.apply(this,arguments)}function K(){return K=_asyncToGenerator(_regeneratorRuntime().mark(function r(t){return _regeneratorRuntime().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",request("/kitchen/api/goodspracticetype/edit",{method:"POST",data:t}));case 1:case"end":return e.stop()}},r)})),K.apply(this,arguments)}function Ne(r){return N.apply(this,arguments)}function N(){return N=_asyncToGenerator(_regeneratorRuntime().mark(function r(t){return _regeneratorRuntime().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",request("/kitchen/api/goodspractice/edit",{method:"POST",data:t}));case 1:case"end":return e.stop()}},r)})),N.apply(this,arguments)}function Ye(r){return Y.apply(this,arguments)}function Y(){return Y=_asyncToGenerator(_regeneratorRuntime().mark(function r(t){return _regeneratorRuntime().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",request("/kitchen/api/goodspractice/add",{method:"POST",data:t}));case 1:case"end":return e.stop()}},r)})),Y.apply(this,arguments)}function Ue(r){return U.apply(this,arguments)}function U(){return U=_asyncToGenerator(_regeneratorRuntime().mark(function r(t){return _regeneratorRuntime().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",request("/kitchen/api/goodspractice/get",{method:"POST",data:t}));case 1:case"end":return e.stop()}},r)})),U.apply(this,arguments)}function re(r){return L.apply(this,arguments)}function L(){return L=(0,h.Z)((0,c.Z)().mark(function r(t){return(0,c.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,C.WY)("/kitchen/api/goodspracticerelevance/get",{method:"POST",data:t}));case 1:case"end":return e.stop()}},r)})),L.apply(this,arguments)}function ne(r){return z.apply(this,arguments)}function z(){return z=(0,h.Z)((0,c.Z)().mark(function r(t){return(0,c.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,C.WY)("/kitchen/api/goodspracticerelevance/add",{method:"POST",data:t}));case 1:case"end":return e.stop()}},r)})),z.apply(this,arguments)}function ae(r){return H.apply(this,arguments)}function H(){return H=(0,h.Z)((0,c.Z)().mark(function r(t){return(0,c.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,C.WY)("/kitchen/api/goodspracticerelevance/edit",{method:"POST",data:t}));case 1:case"end":return e.stop()}},r)})),H.apply(this,arguments)}function ge(r){return J.apply(this,arguments)}function J(){return J=(0,h.Z)((0,c.Z)().mark(function r(t){return(0,c.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,C.WY)("/kitchen/api/goods-type/goods-types",{method:"POST",data:t}));case 1:case"end":return e.stop()}},r)})),J.apply(this,arguments)}function Ze(r){return Q.apply(this,arguments)}function Q(){return Q=(0,h.Z)((0,c.Z)().mark(function r(t){return(0,c.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,C.WY)("/kitchen/api/goodspracticetype/get",{method:"POST",data:t}));case 1:case"end":return e.stop()}},r)})),Q.apply(this,arguments)}function Te(r){return X.apply(this,arguments)}function X(){return X=(0,h.Z)((0,c.Z)().mark(function r(t){return(0,c.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,C.WY)("/kitchen/api/goods/goodss",{method:"Post",data:t}));case 1:case"end":return e.stop()}},r)})),X.apply(this,arguments)}function Ce(r){return q.apply(this,arguments)}function q(){return q=(0,h.Z)((0,c.Z)().mark(function r(t){return(0,c.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,C.WY)("/kitchen/api/goodspractice/get",{method:"POST",data:t}));case 1:case"end":return e.stop()}},r)})),q.apply(this,arguments)}function Re(r){return _.apply(this,arguments)}function _(){return _=(0,h.Z)((0,c.Z)().mark(function r(t){return(0,c.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,C.WY)("/kitchen//api/goodspracticerelevance/del",{method:"POST",data:t}));case 1:case"end":return e.stop()}},r)})),_.apply(this,arguments)}var Le=l(71194),ue=l(50146),ze=l(43358),S=l(34041),He=l(9715),R=l(55843),Je=l(47673),le=l(4107),u=l(85893),Se=function(t){return(0,u.jsx)(ue.Z,{width:800,open:t.createModalVisible,bodyStyle:{padding:"32px 40px 48px"},footer:null,onCancel:function(){t.onCancel()},destroyOnClose:!0,children:(0,u.jsxs)(R.Z,{layout:"Vertical",labelCol:{span:6},initialValues:t.values,onFinish:t.onFinish,onCancel:t.onCancel,children:[(0,u.jsx)(R.Z.Item,{name:"id",hidden:!0,children:(0,u.jsx)(le.Z,{})}),(0,u.jsx)(R.Z.Item,{label:"\u5546\u54C1",name:"goodsId",rules:[{required:!0}],initialValue:t.values.goodsId,children:(0,u.jsx)(S.Z,{showSearch:!0,style:{width:"300px"},children:(t.Support.allGoods||[]).map(function(n,e){return(0,u.jsx)(S.Z.Option,{index:e,value:n.id,children:n.name},n.id)})})}),(0,u.jsx)(R.Z.Item,{label:"\u505A\u6CD5",name:"practiceIds",rules:[{required:!0}],initialValue:t.values.practiceIds||[],children:(0,u.jsx)(S.Z,{style:{width:"300px"},mode:"multiple",children:(t.Support.allPractice||[]).map(function(n,e){return(0,u.jsx)(S.Z.Option,{index:e,value:n.id,children:n.makeName},n.id)})})}),(0,u.jsx)(R.Z.Item,{children:(0,u.jsx)(w.Z,{type:"primary",htmlType:"submit",children:"\u4FDD\u5B58"})})]})})},we=Se,Pe=function(t){return console.log("createtypeRelevanceForm >>>>>> props",t),(0,u.jsx)(ue.Z,{width:800,visible:t.createModalVisible,bodyStyle:{padding:"32px 40px 48px"},footer:null,onCancel:function(){t.onCancel()},destroyOnClose:!0,children:(0,u.jsxs)(R.Z,{layout:"Vertical",labelCol:{span:6},initialValues:t.values,onFinish:t.onFinish,onCancel:t.onCancel,children:[(0,u.jsx)(R.Z.Item,{name:"id",hidden:!0,children:(0,u.jsx)(le.Z,{})}),(0,u.jsx)(R.Z.Item,{label:"\u5546\u54C1\u7C7B\u522B",name:"goodsSmallType",rules:[{required:!0}],initialValue:t.values.goodsSmallType,children:(0,u.jsx)(S.Z,{style:{width:"300px"},children:(t.Support.allSmallType||[]).map(function(n,e){return(0,u.jsx)(S.Z.Option,{index:e,value:n.id,children:n.goodsType_Name},n.id)})})}),(0,u.jsx)(R.Z.Item,{label:"\u505A\u6CD5\u7C7B\u522B",name:"makeTypeId",rules:[{required:!0}],initialValues:t.values.practiceTypeId,children:(0,u.jsx)(S.Z,{style:{width:"300px"},children:(t.Support.allType||[]).map(function(n,e){return(0,u.jsx)(S.Z.Option,{index:e,value:n.id,children:n.typeName},n.id)})})}),function(){t.domrelevanceType==1,t.domrelevanceType==2},(0,u.jsx)(R.Z.Item,{children:(0,u.jsx)(w.Z,{type:"primary",htmlType:"submit",children:"\u4FDD\u5B58"})})]})})},xe=Pe,ie=Z.Z.TabPane,je=function(t){var n=(0,T.useRef)(),e=(0,T.useState)(!1),ce=(0,y.Z)(e,2),ee=ce[0],G=ce[1],ke=(0,T.useState)(),se=(0,y.Z)(ke,2),te=se[0],$=se[1],Oe=(0,T.useState)(),oe=(0,y.Z)(Oe,2),Qe=oe[0],V=oe[1],Ie=(0,T.useState)(),de=(0,y.Z)(Ie,2),Xe=de[0],qe=de[1],Ae=(0,T.useState)(),pe=(0,y.Z)(Ae,2),fe=pe[0],j=pe[1],Fe=(0,T.useState)([]),he=(0,y.Z)(Fe,2),_e=he[0],Ee=he[1],Be=(0,T.useState)({allType:[],allSmallType:[],allGoods:[],allPractice:[]}),me=(0,y.Z)(Be,2),b=me[0],et=me[1];function De(i){try{return ne(i).then(function(a){a.data?p.default.success("\u6DFB\u52A0\u6210\u529F"):p.default.error("\u6DFB\u52A0\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01")}),!0}catch(a){return p.default.error("\u6DFB\u52A0\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),!1}}function Ge(i){try{return ne(i).then(function(a){a.data?p.default.success("\u6DFB\u52A0\u6210\u529F"):p.default.error("\u6DFB\u52A0\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01")}),!0}catch(a){return p.default.error("\u6DFB\u52A0\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),!1}}var ye=function(){var i=(0,h.Z)((0,c.Z)().mark(function a(s){var o;return(0,c.Z)().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:if(o=p.default.loading("\u6B63\u5728\u5220\u9664"),s){d.next=3;break}return d.abrupt("return",!0);case 3:return d.prev=3,d.next=6,Re({id:s}).then(function(g){o(),g.data?p.default.success("\u5220\u9664\u6210\u529F\uFF0C\u5373\u5C06\u5237\u65B0"):p.default.error("\u5220\u9664\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5")});case 6:return d.abrupt("return",!0);case 9:return d.prev=9,d.t0=d.catch(3),o(),p.default.error("\u5220\u9664\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5"),d.abrupt("return",!1);case 14:case"end":return d.stop()}},a,null,[[3,9]])}));return function(s){return i.apply(this,arguments)}}();function $e(i){try{return ae(i).then(function(a){a.data?p.default.success("\u914D\u7F6E\u6210\u529F"):p.default.error("\u914D\u7F6E\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),V(void 0),n.current.reload()}),!0}catch(a){return p.default.error("\u914D\u7F6E\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),!1}}function Ve(i){try{return ae(i).then(function(a){a.data?p.default.success("\u914D\u7F6E\u6210\u529F"):p.default.error("\u914D\u7F6E\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),V(void 0)}),!0}catch(a){return p.default.error("\u914D\u7F6E\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),!1}}(0,T.useEffect)(function(){var i={current:1,pagesize:99999};Ze(i).then(function(a){b.allType=a.data.data}),ge(i).then(function(a){b.allSmallType=a.data.data}),Te(i).then(function(a){b.allGoods=a.data.data}),Ce(i).then(function(a){b.allPractice=a.data.data}),D(i).then(function(a){Ee(a.data.data)})},[]);var Me=[{title:"\u89C4\u5219id",dataIndex:"id",tip:"\u89C4\u5219\u540D\u79F0\u662F\u552F\u4E00\u7684 key",hideInSearch:!0,hideInTable:!0},{title:"\u5546\u54C1\u7C7B\u522B",dataIndex:"goodsTypeName"},{title:"\u505A\u6CD5\u7C7B\u522B",dataIndex:"makeTypeName"},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(a,s){return[(0,u.jsxs)("a",{onClick:function(){G(!0),j(s)},children:[" ","\u4FEE\u6539"]},"primary"),(0,u.jsx)(F.Z,{type:"primary",title:"\u786E\u8BA4\u5220\u9664\u5417\uFF1F",okText:"\u662F",cancelText:"\u5426",onConfirm:function(){var f;ye(s.id),(f=n.current)===null||f===void 0||f.reloadAndRest()},onCancel:function(){},children:(0,u.jsx)("a",{href:"#",children:"\u5220\u9664"})},"primary")]}}],We=[{title:"\u89C4\u5219id",dataIndex:"id",tip:"\u89C4\u5219\u540D\u79F0\u662F\u552F\u4E00\u7684 key",hideInSearch:!0,hideInTable:!0},{title:"\u5546\u54C1",dataIndex:"goodsName"},{title:"\u505A\u6CD5",dataIndex:"makeName"},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(a,s){return[(0,u.jsxs)("a",{onClick:function(){$(!0),j(s)},children:[" ","\u4FEE\u6539"]},"primary"),(0,u.jsx)(F.Z,{type:"primary",title:"\u786E\u8BA4\u5220\u9664\u5417\uFF1F",okText:"\u662F",cancelText:"\u5426",onConfirm:function(){var f;ye(s.id),(f=n.current)===null||f===void 0||f.reloadAndRest()},onCancel:function(){},children:(0,u.jsx)("a",{href:"#",children:"\u5220\u9664"})},"primary")]}}];return(0,u.jsxs)(Z.Z,{defaultActiveKey:"1",children:[(0,u.jsxs)(ie,{tab:"\u51FA\u54C1\u7C7B\u522B\u4E0E\u505A\u6CD5\u7C7B\u522B\u5173\u8054",children:[(0,u.jsx)(B.ZP,{actionRef:n,rowKey:"id",search:{labelWidth:120},toolBarRender:function(){return[(0,u.jsxs)(w.Z,{type:"primary",onClick:function(){console.log("\u51FA\u54C1\u7C7B\u522B\u4E0E\u505A\u6CD5\u7C7B\u522B\u5173\u8054",ee),G(!0)},children:[(0,u.jsx)(E.Z,{})," \u6DFB\u52A0"]},"primary")]},params:{relevanceType:1},request:function(){var i=(0,h.Z)((0,c.Z)().mark(function a(s){var o,f;return(0,c.Z)().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:return o=[],f=0,g.next=4,re(s).then(function(I){o=I.data.data,f=I.data.total});case 4:return g.abrupt("return",{data:o,success:!0,total:f});case 5:case"end":return g.stop()}},a)}));return function(a){return i.apply(this,arguments)}}(),modalVisible:te,columns:Me,rowSelection:{onChange:function(a,s){V(s)}}}),ee&&(0,u.jsx)(xe,{onFinish:function(){var i=(0,h.Z)((0,c.Z)().mark(function a(s){var o;return(0,c.Z)().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:s.relevanceType=1,o=!1,s.id?o=Ve(s):o=Ge(s),o&&(G(!1),j(void 0),n.current&&n.current.reload());case 4:case"end":return d.stop()}},a)}));return function(a){return i.apply(this,arguments)}}(),onCancel:function(){j(void 0),G(!1),n.current.reload()},Support:b,createModalVisible:ee,values:fe||{}})]},"1"),(0,u.jsxs)(ie,{tab:"\u51FA\u54C1\u4E0E\u505A\u6CD5\u5173\u8054",children:[(0,u.jsx)(B.ZP,{actionRef:n,rowKey:"id",search:{labelWidth:120},toolBarRender:function(){return[(0,u.jsxs)(w.Z,{type:"primary",onClick:function(){console.log("fdsew"),$(!0)},children:[(0,u.jsx)(E.Z,{})," \u6DFB\u52A0"]},"primary")]},params:{relevanceType:2},request:function(){var i=(0,h.Z)((0,c.Z)().mark(function a(s){var o,f;return(0,c.Z)().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:return o=[],f=0,g.next=4,re(s).then(function(I){o=I.data.data,f=I.data.total});case 4:return g.abrupt("return",{data:o,success:!0,total:f});case 5:case"end":return g.stop()}},a)}));return function(a){return i.apply(this,arguments)}}(),modalVisible:te,columns:We,rowSelection:{onChange:function(a,s){V(s)}}}),(0,u.jsx)(we,{onFinish:function(){var i=(0,h.Z)((0,c.Z)().mark(function a(s){var o;return(0,c.Z)().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:s.relevanceType=2,o=!1,s.id?o=$e(s):o=De(s),o&&($(!1),j(void 0),n.current&&n.current.reload());case 4:case"end":return d.stop()}},a)}));return function(a){return i.apply(this,arguments)}}(),onCancel:function(){j(void 0),$(!1),n.current.reload()},Support:b,createModalVisible:te,values:fe||{}})]},"2")]})},be=je},34952:function(ve,A,l){"use strict";var k=l(22122),w=l(15105),M=l(67294),F=function(m,p){var y={};for(var v in m)Object.prototype.hasOwnProperty.call(m,v)&&p.indexOf(v)<0&&(y[v]=m[v]);if(m!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Z=0,v=Object.getOwnPropertySymbols(m);Z>>>>> props",t),(0,u.jsx)(ue.Z,{width:800,visible:t.createModalVisible,bodyStyle:{padding:"32px 40px 48px"},footer:null,onCancel:function(){t.onCancel()},destroyOnClose:!0,children:(0,u.jsxs)(R.Z,{layout:"Vertical",labelCol:{span:6},initialValues:t.values,onFinish:t.onFinish,onCancel:t.onCancel,children:[(0,u.jsx)(R.Z.Item,{name:"id",hidden:!0,children:(0,u.jsx)(le.Z,{})}),(0,u.jsx)(R.Z.Item,{label:"\u5546\u54C1\u7C7B\u522B",name:"goodsSmallType",rules:[{required:!0}],initialValue:t.values.goodsSmallType,children:(0,u.jsx)(S.Z,{style:{width:"300px"},children:(t.Support.allSmallType||[]).map(function(n,e){return(0,u.jsx)(S.Z.Option,{index:e,value:n.id,children:n.goodsType_Name},n.id)})})}),(0,u.jsx)(R.Z.Item,{label:"\u505A\u6CD5\u7C7B\u522B",name:"makeTypeId",rules:[{required:!0}],initialValues:t.values.practiceTypeId,children:(0,u.jsx)(S.Z,{style:{width:"300px"},children:(t.Support.allType||[]).map(function(n,e){return(0,u.jsx)(S.Z.Option,{index:e,value:n.id,children:n.typeName},n.id)})})}),function(){t.domrelevanceType==1,t.domrelevanceType==2},(0,u.jsx)(R.Z.Item,{children:(0,u.jsx)(w.Z,{type:"primary",htmlType:"submit",children:"\u4FDD\u5B58"})})]})})},xe=Pe,ie=Z.Z.TabPane,je=function(t){var n=(0,T.useRef)(),e=(0,T.useState)(!1),ce=(0,y.Z)(e,2),ee=ce[0],G=ce[1],ke=(0,T.useState)(),se=(0,y.Z)(ke,2),te=se[0],$=se[1],Oe=(0,T.useState)(),oe=(0,y.Z)(Oe,2),Qe=oe[0],V=oe[1],Ie=(0,T.useState)(),de=(0,y.Z)(Ie,2),Xe=de[0],qe=de[1],Ae=(0,T.useState)(),pe=(0,y.Z)(Ae,2),fe=pe[0],j=pe[1],Fe=(0,T.useState)([]),he=(0,y.Z)(Fe,2),_e=he[0],Ee=he[1],Be=(0,T.useState)({allType:[],allSmallType:[],allGoods:[],allPractice:[]}),me=(0,y.Z)(Be,2),b=me[0],et=me[1];function De(i){try{return ne(i).then(function(a){a.data?p.default.success("\u6DFB\u52A0\u6210\u529F"):p.default.error("\u6DFB\u52A0\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01")}),!0}catch(a){return p.default.error("\u6DFB\u52A0\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),!1}}function Ge(i){try{return ne(i).then(function(a){a.data?p.default.success("\u6DFB\u52A0\u6210\u529F"):p.default.error("\u6DFB\u52A0\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01")}),!0}catch(a){return p.default.error("\u6DFB\u52A0\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),!1}}var ye=function(){var i=(0,h.Z)((0,c.Z)().mark(function a(s){var o;return(0,c.Z)().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:if(o=p.default.loading("\u6B63\u5728\u5220\u9664"),s){d.next=3;break}return d.abrupt("return",!0);case 3:return d.prev=3,d.next=6,Re({id:s}).then(function(g){o(),g.data?p.default.success("\u5220\u9664\u6210\u529F\uFF0C\u5373\u5C06\u5237\u65B0"):p.default.error("\u5220\u9664\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5")});case 6:return d.abrupt("return",!0);case 9:return d.prev=9,d.t0=d.catch(3),o(),p.default.error("\u5220\u9664\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5"),d.abrupt("return",!1);case 14:case"end":return d.stop()}},a,null,[[3,9]])}));return function(s){return i.apply(this,arguments)}}();function $e(i){try{return ae(i).then(function(a){a.data?p.default.success("\u914D\u7F6E\u6210\u529F"):p.default.error("\u914D\u7F6E\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),V(void 0),n.current.reload()}),!0}catch(a){return p.default.error("\u914D\u7F6E\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),!1}}function Ve(i){try{return ae(i).then(function(a){a.data?p.default.success("\u914D\u7F6E\u6210\u529F"):p.default.error("\u914D\u7F6E\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),V(void 0)}),!0}catch(a){return p.default.error("\u914D\u7F6E\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),!1}}(0,T.useEffect)(function(){var i={current:1,pagesize:99999};Ze(i).then(function(a){b.allType=a.data.data}),ge(i).then(function(a){b.allSmallType=a.data.data}),Te(i).then(function(a){b.allGoods=a.data.data}),Ce(i).then(function(a){b.allPractice=a.data.data}),D(i).then(function(a){Ee(a.data.data)})},[]);var Me=[{title:"\u89C4\u5219id",dataIndex:"id",tip:"\u89C4\u5219\u540D\u79F0\u662F\u552F\u4E00\u7684 key",hideInSearch:!0,hideInTable:!0},{title:"\u5546\u54C1\u7C7B\u522B",dataIndex:"goodsTypeName"},{title:"\u505A\u6CD5\u7C7B\u522B",dataIndex:"makeTypeName"},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(a,s){return[(0,u.jsxs)("a",{onClick:function(){G(!0),j(s)},children:[" ","\u4FEE\u6539"]},"primary"),(0,u.jsx)(F.Z,{type:"primary",title:"\u786E\u8BA4\u5220\u9664\u5417\uFF1F",okText:"\u662F",cancelText:"\u5426",onConfirm:function(){var f;ye(s.id),(f=n.current)===null||f===void 0||f.reloadAndRest()},onCancel:function(){},children:(0,u.jsx)("a",{href:"#",children:"\u5220\u9664"})},"primary")]}}],We=[{title:"\u89C4\u5219id",dataIndex:"id",tip:"\u89C4\u5219\u540D\u79F0\u662F\u552F\u4E00\u7684 key",hideInSearch:!0,hideInTable:!0},{title:"\u5546\u54C1",dataIndex:"goodsName"},{title:"\u505A\u6CD5",dataIndex:"makeName"},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(a,s){return[(0,u.jsxs)("a",{onClick:function(){$(!0),j(s)},children:[" ","\u4FEE\u6539"]},"primary"),(0,u.jsx)(F.Z,{type:"primary",title:"\u786E\u8BA4\u5220\u9664\u5417\uFF1F",okText:"\u662F",cancelText:"\u5426",onConfirm:function(){var f;ye(s.id),(f=n.current)===null||f===void 0||f.reloadAndRest()},onCancel:function(){},children:(0,u.jsx)("a",{href:"#",children:"\u5220\u9664"})},"primary")]}}];return(0,u.jsxs)(Z.Z,{defaultActiveKey:"1",children:[(0,u.jsxs)(ie,{tab:"\u51FA\u54C1\u7C7B\u522B\u4E0E\u505A\u6CD5\u7C7B\u522B\u5173\u8054",children:[(0,u.jsx)(B.ZP,{actionRef:n,rowKey:"id",search:{labelWidth:120},toolBarRender:function(){return[(0,u.jsxs)(w.Z,{type:"primary",onClick:function(){console.log("\u51FA\u54C1\u7C7B\u522B\u4E0E\u505A\u6CD5\u7C7B\u522B\u5173\u8054",ee),G(!0)},children:[(0,u.jsx)(E.Z,{})," \u6DFB\u52A0"]},"primary")]},params:{relevanceType:1},request:function(){var i=(0,h.Z)((0,c.Z)().mark(function a(s){var o,f;return(0,c.Z)().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:return o=[],f=0,g.next=4,re(s).then(function(I){o=I.data.data,f=I.data.total});case 4:return g.abrupt("return",{data:o,success:!0,total:f});case 5:case"end":return g.stop()}},a)}));return function(a){return i.apply(this,arguments)}}(),modalVisible:te,columns:Me,rowSelection:{onChange:function(a,s){V(s)}}}),ee&&(0,u.jsx)(xe,{onFinish:function(){var i=(0,h.Z)((0,c.Z)().mark(function a(s){var o;return(0,c.Z)().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:s.relevanceType=1,o=!1,s.id?o=Ve(s):o=Ge(s),o&&(G(!1),j(void 0),n.current&&n.current.reload());case 4:case"end":return d.stop()}},a)}));return function(a){return i.apply(this,arguments)}}(),onCancel:function(){j(void 0),G(!1),n.current.reload()},Support:b,createModalVisible:ee,values:fe||{}})]},"1"),(0,u.jsxs)(ie,{tab:"\u51FA\u54C1\u4E0E\u505A\u6CD5\u5173\u8054",children:[(0,u.jsx)(B.ZP,{actionRef:n,rowKey:"id",search:{labelWidth:120},toolBarRender:function(){return[(0,u.jsxs)(w.Z,{type:"primary",onClick:function(){console.log("fdsew"),$(!0)},children:[(0,u.jsx)(E.Z,{})," \u6DFB\u52A0"]},"primary")]},params:{relevanceType:2},request:function(){var i=(0,h.Z)((0,c.Z)().mark(function a(s){var o,f;return(0,c.Z)().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:return o=[],f=0,g.next=4,re(s).then(function(I){o=I.data.data,f=I.data.total});case 4:return g.abrupt("return",{data:o,success:!0,total:f});case 5:case"end":return g.stop()}},a)}));return function(a){return i.apply(this,arguments)}}(),modalVisible:te,columns:We,rowSelection:{onChange:function(a,s){V(s)}}}),(0,u.jsx)(we,{onFinish:function(){var i=(0,h.Z)((0,c.Z)().mark(function a(s){var o;return(0,c.Z)().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:s.relevanceType=2,o=!1,s.id?o=$e(s):o=De(s),o&&($(!1),j(void 0),n.current&&n.current.reload());case 4:case"end":return d.stop()}},a)}));return function(a){return i.apply(this,arguments)}}(),onCancel:function(){j(void 0),$(!1),n.current.reload()},Support:b,createModalVisible:te,values:fe||{}})]},"2")]})},be=je},34952:function(ve,A,l){"use strict";var k=l(22122),w=l(15105),M=l(67294),F=function(m,p){var y={};for(var v in m)Object.prototype.hasOwnProperty.call(m,v)&&p.indexOf(v)<0&&(y[v]=m[v]);if(m!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Z=0,v=Object.getOwnPropertySymbols(m);Z0&&(0,i.jsx)(B.Z,{extra:(0,i.jsxs)("div",{children:["\u5DF2\u9009\u62E9"," ",(0,i.jsx)("a",{style:{fontWeight:600},children:F.length})," ","\u9879 \xA0\xA0"]}),children:(0,i.jsx)(G.Z,{onClick:(0,T.Z)((0,g.Z)().mark(function h(){var l,r;return(0,g.Z)().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return f.next=2,e(F);case 2:N([]),(l=D.current)===null||l===void 0||(r=l.reloadAndRest)===null||r===void 0||r.call(l);case 4:case"end":return f.stop()}},h)})),children:"\u5220\u9664"})}),(0,i.jsx)(I.Z,{width:600,visible:ue,onClose:function(){ie(void 0),se(!1)},closable:!1,children:(x==null?void 0:x.name)&&(0,i.jsx)(w.ZP,{column:2,title:x==null?void 0:x.name,request:(0,T.Z)((0,g.Z)().mark(function h(){return(0,g.Z)().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",{data:x||{}});case 1:case"end":return r.stop()}},h)})),params:{id:x==null?void 0:x.name},columns:X})})]})},ne=re},4795:function(ee,A,n){"use strict";n.d(A,{lO:function(){return G},GT:function(){return g},Rq:function(){return $},e3:function(){return M},yR:function(){return U},fA:function(){return V},se:function(){return i}});var d=n(39428),I=n(3182),b=n(48971);function G(t){return m.apply(this,arguments)}function m(){return m=(0,I.Z)((0,d.Z)().mark(function t(u){return(0,d.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,b.WY)("/kitchen/api/goods/goodss",{method:"Post",data:u}));case 1:case"end":return e.stop()}},t)})),m.apply(this,arguments)}function g(t){return R.apply(this,arguments)}function R(){return R=(0,I.Z)((0,d.Z)().mark(function t(u){return(0,d.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,b.WY)("/kitchen/api/bom/getpage",{method:"Post",data:u}));case 1:case"end":return e.stop()}},t)})),R.apply(this,arguments)}function C(t){return T.apply(this,arguments)}function T(){return T=_asyncToGenerator(_regeneratorRuntime().mark(function t(u){return _regeneratorRuntime().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",request("/kitchen/api/GoodsBom/AddBom",{method:"Post",data:u}));case 1:case"end":return e.stop()}},t)})),T.apply(this,arguments)}function W(t){return c.apply(this,arguments)}function c(){return c=_asyncToGenerator(_regeneratorRuntime().mark(function t(u){return _regeneratorRuntime().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",request("/kitchen/api/GoodsBom/getBomInfo",{method:"Post",data:u}));case 1:case"end":return e.stop()}},t)})),c.apply(this,arguments)}function $(t){return B.apply(this,arguments)}function B(){return B=(0,I.Z)((0,d.Z)().mark(function t(u){return(0,d.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,b.WY)("/kitchen/api/goods",{method:"POST",data:u}));case 1:case"end":return e.stop()}},t)})),B.apply(this,arguments)}function M(t){return w.apply(this,arguments)}function w(){return w=(0,I.Z)((0,d.Z)().mark(function t(u){return(0,d.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return console.log("\u5546\u54C1\u6570\u636E\u4FEE\u6539",u),e.abrupt("return",(0,b.WY)("/kitchen/api/goods",{method:"PUT",data:u}));case 2:case"end":return e.stop()}},t)})),w.apply(this,arguments)}function U(t){return P.apply(this,arguments)}function P(){return P=(0,I.Z)((0,d.Z)().mark(function t(u){return(0,d.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,b.WY)("/kitchen/api/goods",{method:"DELETE",data:u}));case 1:case"end":return e.stop()}},t)})),P.apply(this,arguments)}function V(t){return k.apply(this,arguments)}function k(){return k=(0,I.Z)((0,d.Z)().mark(function t(u){return(0,d.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,b.WY)("/kitchen/api/goods-type/goods-types",{method:"POST",data:u}));case 1:case"end":return e.stop()}},t)})),k.apply(this,arguments)}function i(t){return O.apply(this,arguments)}function O(){return O=(0,I.Z)((0,d.Z)().mark(function t(u){return(0,d.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,b.WY)("/kitchen/api/goods-type/big-goods-types",{method:"POST",data:u}));case 1:case"end":return e.stop()}},t)})),O.apply(this,arguments)}function te(t){return _.apply(this,arguments)}function _(){return _=_asyncToGenerator(_regeneratorRuntime().mark(function t(u){return _regeneratorRuntime().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",request("/kitchen/api/goodstaste/getlist"));case 1:case"end":return e.stop()}},t)})),_.apply(this,arguments)}}}]); +(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[816],{53571:function(ee,G,n){"use strict";n.r(G),n.d(G,{default:function(){return ne}});var d=n(57338),I=n(273),_=n(57663),R=n(71577),m=n(2824),g=n(39428),A=n(34792),C=n(48086),T=n(3182),W=n(49101),c=n(67294),$=n(78009),B=n(85224),M=n(16894),w=n(12826),U=n(71194),k=n(9715),V=n(47673),P=n(43358),i=n(85893),O=function(o){var s=_Select.Option,y=_Select.OptGroup;return _jsx(_Modal,{title:o.values.id?"\u7F16\u8F91":"\u65B0\u5EFA",width:640,visible:o.createModalVisible,bodyStyle:{padding:"32px 40px 48px"},footer:null,closable:!0,onCancel:function(){o.onCancel()},destroyOnClose:!0,children:_jsxs(_Form,{labelCol:{span:4},layout:"horizontal",preserve:!1,initialValues:o.values,onFinish:o.onFinish,children:[_jsx(_Form.Item,{name:"id",hidden:!0,children:_jsx(_Input,{})}),_jsx(_Form.Item,{name:"code",label:"\u5546\u54C1\u7F16\u7801",hidden:!0,rules:[{required:!0}],children:_jsx(_Input,{})}),_jsx(_Form.Item,{name:"name",label:"\u5546\u54C1\u540D\u79F0",rules:[{required:!0}],children:_jsx(_Input,{})}),_jsx(_Form.Item,{name:"price",label:"\u5546\u54C1\u4EF7\u683C",rules:[{required:!0}],children:_jsx(_Input,{})}),_jsx(_Form.Item,{name:"imgUrl",label:"\u5546\u54C1\u56FE\u7247\u5730\u5740",rules:[{required:!0}],children:_jsx(_Input,{})}),_jsx(_Form.Item,{name:"remark",label:"\u5907\u6CE8",rules:[{required:!0}],children:_jsx(_Input,{})}),_jsx(_Form.Item,{name:"goodsTypeId",label:"\u5546\u54C1\u7C7B\u578B",rules:[{required:!0}],children:_jsx(_Select,{children:o.goodsTypaData==null?"":o.goodsTypaData.map(function(S,a){return _jsx(_Select.Option,{index:a,value:S.id,children:S.goodsType_Name},S.id)})})}),_jsx(_Form.Item,{name:"status",label:"\u72B6\u6001",defaultValue:o.values.status,rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u72B6\u6001"}],children:_jsx(_Select,{placeholder:"\u8BF7\u9009\u62E9\u72B6\u6001",children:_jsxs(y,{children:[_jsx(_Select.Option,{value:0,children:"\u6B63\u5E38"}),_jsx(_Select.Option,{value:1,children:"\u505C\u7528"})]})})}),_jsx(_Form.Item,{children:_jsx(_Button,{type:"primary",htmlType:"submit",children:"\u4FDD\u5B58"})})]})})},te=null,b=n(48971),t=n(4795),u=null,v=function(){var j=(0,T.Z)((0,g.Z)().mark(function o(s){var y;return(0,g.Z)().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return y=C.default.loading("\u6B63\u5728\u914D\u7F6E"),a.prev=1,a.next=4,(0,t.e3)({id:s.id,code:s.code,name:s.name,price:s.price,imgUrl:s.imgUrl,remark:s.remark,status:s.status,goodsTypeId:s.goodsTypeId}).then(function(Z){Z.data?C.default.success("\u914D\u7F6E\u6210\u529F"):C.default.error("\u914D\u7F6E\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01")});case 4:return a.abrupt("return",!0);case 7:return a.prev=7,a.t0=a.catch(1),y(),a.abrupt("return",!1);case 11:case"end":return a.stop()}},o,null,[[1,7]])}));return function(s){return j.apply(this,arguments)}}(),e=function(){var j=(0,T.Z)((0,g.Z)().mark(function o(s){var y;return(0,g.Z)().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:if(y=C.default.loading("\u6B63\u5728\u5220\u9664"),s){a.next=3;break}return a.abrupt("return",!0);case 3:return a.prev=3,a.next=6,(0,t.yR)(s.map(function(Z){return Z.id})).then(function(Z){y(),Z.data?C.default.success("\u5220\u9664\u6210\u529F\uFF0C\u5373\u5C06\u5237\u65B0"):C.default.error("\u5220\u9664\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5")});case 6:return a.abrupt("return",!0);case 9:return a.prev=9,a.t0=a.catch(3),y(),C.default.error("\u5220\u9664\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5"),a.abrupt("return",!1);case 14:case"end":return a.stop()}},o,null,[[3,9]])}));return function(s){return j.apply(this,arguments)}}(),re=function(){var o=(0,c.useState)([]),s=(0,m.Z)(o,2),y=s[0],S=s[1],a=(0,c.useState)(!1),Z=(0,m.Z)(a,2),fe=Z[0],ge=Z[1],ae=(0,c.useState)(!1),Y=(0,m.Z)(ae,2),ue=Y[0],se=Y[1],D=(0,c.useRef)(),oe=(0,c.useState)(),K=(0,m.Z)(oe,2),x=K[0],ie=K[1],le=(0,c.useState)([]),L=(0,m.Z)(le,2),F=L[0],N=L[1],de=(0,c.useState)(),z=(0,m.Z)(de,2),ve=z[0],ye=z[1],ce=(0,c.useState)(),J=(0,m.Z)(ce,2),xe=J[0],Ie=J[1],pe=(0,c.useState)(),H=(0,m.Z)(pe,2),Te=H[0],me=H[1],he=(0,c.useState)(),Q=(0,m.Z)(he,2),Se=Q[0],Ze=Q[1];(0,c.useEffect)(function(){function h(){(0,t.GT)({current:1,pageSize:1e7}).then(function(r){var p=r.data.data;me(p)})}h();function l(){(0,t.fA)({current:1,pageSize:1e3}).then(function(r){var p=r.data.data;p.forEach(function(f){f.text=f.goodsType_Name,f.goodsTypeId=f.id}),S(p)})}l()},[]);var X=[{title:"\u4E3B\u952E",dataIndex:"id",hideInTable:!0,hideInSearch:!0},{title:"\u56FE\u7247\u5730\u5740",dataIndex:"imgUrl",hideInTable:!0,hideInSearch:!0},{title:"\u7F16\u7801",dataIndex:"code",valueType:"textarea"},{title:"\u540D\u79F0",dataIndex:"name",valueType:"textarea"},{title:"\u57FA\u7840\u4EF7\u683C",dataIndex:"price",hideInForm:!0,renderText:function(l){return"".concat(l,"\xA5")},hideInSearch:!0},{title:"\u4F1A\u5458\u4EF7",dataIndex:"vipPrice",hideInForm:!0,renderText:function(l){return"".concat(l,"\xA5")},hideInSearch:!0},{title:"\u5546\u54C1\u5C0F\u7C7B",dataIndex:"goodsTypeName",hideInForm:!0,hideInSearch:!0},{title:"\u5546\u54C1\u7C7B\u578B",dataIndex:"goodsTypeId",hideInForm:!0,hideInTable:!0,valueEnum:y},{title:"\u5546\u54C1\u5C5E\u6027",dataIndex:"goodsAttribute",hideInForm:!0,valueEnum:{0:{text:"\u5355\u54C1"},1:{text:"\u5957\u9910"}}},{title:"\u72B6\u6001",dataIndex:"status",hideInForm:!0,valueEnum:{0:{text:"\u6B63\u5E38",status:"Processing"},1:{text:"\u505C\u7528",status:"Error"},2:{text:"\u5220\u9664",status:"Error"}}},{title:"\u521B\u5EFA\u65F6\u95F4",dataIndex:"createAt",valueType:"date"},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(l,r){return[(0,i.jsx)("a",{type:"primary",onClick:function(){b.m8.push({pathname:"/goods/goodsInfo",query:{isAdd:!1,values:r,tabStatus:"basis"}})},children:"\u66F4\u65B0"},"primary"),(0,i.jsx)("a",{type:"primary",onClick:function(){b.m8.push({pathname:"/goods/goodsInfo",query:{isAdd:!1,values:r,tabStatus:"goodsbom"}})},children:"\u5546\u54C1\u914D\u65B9\u8BBE\u7F6E"},"primary"),r.status===0&&(0,i.jsx)("a",{onClick:function(){r.status="1",v(r),D.current.reload()},children:"\u505C\u7528"},"link"),(r.status===1||r.status===2)&&(0,i.jsx)("a",{onClick:function(){r.status="0",v(r),D.current.reload()},children:"\u542F\u7528"},"warn"),(0,i.jsx)("a",{onClick:function(){b.m8.push({pathname:"/bom/cookingentry",query:{isAdd:!1,values:r}})},children:"\u5C0F\u7092\u914D\u7F6E"},"config")]}}];return(0,i.jsxs)($.ZP,{children:[(0,i.jsx)(M.ZP,{headerTitle:"",actionRef:D,rowKey:"id",search:{labelWidth:120},toolBarRender:function(){return[(0,i.jsxs)(R.Z,{type:"primary",onClick:function(){b.m8.push({pathname:"/goods/goodsInfo",query:{isAdd:!0,values:null,tabStatus:"basis"}})},children:[(0,i.jsx)(W.Z,{})," \u65B0\u5EFA"]},"primary")]},request:function(){var h=(0,T.Z)((0,g.Z)().mark(function l(r){var p,f;return(0,g.Z)().wrap(function(E){for(;;)switch(E.prev=E.next){case 0:return p=[],r.goodsTypeId!=null&&(r.goodsTypeId=y[r.goodsTypeId].goodsTypeId),f=0,E.next=5,(0,t.lO)(r).then(function(q){p=q.data.data,f=q.data.total});case 5:return E.abrupt("return",{data:p,success:!0,total:f});case 6:case"end":return E.stop()}},l)}));return function(l){return h.apply(this,arguments)}}(),columns:X,rowSelection:{onChange:function(l,r){N(r)}}}),(F==null?void 0:F.length)>0&&(0,i.jsx)(B.Z,{extra:(0,i.jsxs)("div",{children:["\u5DF2\u9009\u62E9"," ",(0,i.jsx)("a",{style:{fontWeight:600},children:F.length})," ","\u9879 \xA0\xA0"]}),children:(0,i.jsx)(R.Z,{onClick:(0,T.Z)((0,g.Z)().mark(function h(){var l,r;return(0,g.Z)().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return f.next=2,e(F);case 2:N([]),(l=D.current)===null||l===void 0||(r=l.reloadAndRest)===null||r===void 0||r.call(l);case 4:case"end":return f.stop()}},h)})),children:"\u5220\u9664"})}),(0,i.jsx)(I.Z,{width:600,visible:ue,onClose:function(){ie(void 0),se(!1)},closable:!1,children:(x==null?void 0:x.name)&&(0,i.jsx)(w.ZP,{column:2,title:x==null?void 0:x.name,request:(0,T.Z)((0,g.Z)().mark(function h(){return(0,g.Z)().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",{data:x||{}});case 1:case"end":return r.stop()}},h)})),params:{id:x==null?void 0:x.name},columns:X})})]})},ne=re},4795:function(ee,G,n){"use strict";n.d(G,{lO:function(){return R},GT:function(){return g},Rq:function(){return $},e3:function(){return M},yR:function(){return U},fA:function(){return V},se:function(){return i}});var d=n(39428),I=n(3182),_=n(48971);function R(t){return m.apply(this,arguments)}function m(){return m=(0,I.Z)((0,d.Z)().mark(function t(u){return(0,d.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,_.WY)("/kitchen/api/goods/goodss",{method:"Post",data:u}));case 1:case"end":return e.stop()}},t)})),m.apply(this,arguments)}function g(t){return A.apply(this,arguments)}function A(){return A=(0,I.Z)((0,d.Z)().mark(function t(u){return(0,d.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,_.WY)("/kitchen/api/bom/getpage",{method:"Post",data:u}));case 1:case"end":return e.stop()}},t)})),A.apply(this,arguments)}function C(t){return T.apply(this,arguments)}function T(){return T=_asyncToGenerator(_regeneratorRuntime().mark(function t(u){return _regeneratorRuntime().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",request("/kitchen/api/GoodsBom/AddBom",{method:"Post",data:u}));case 1:case"end":return e.stop()}},t)})),T.apply(this,arguments)}function W(t){return c.apply(this,arguments)}function c(){return c=_asyncToGenerator(_regeneratorRuntime().mark(function t(u){return _regeneratorRuntime().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",request("/kitchen/api/GoodsBom/getBomInfo",{method:"Post",data:u}));case 1:case"end":return e.stop()}},t)})),c.apply(this,arguments)}function $(t){return B.apply(this,arguments)}function B(){return B=(0,I.Z)((0,d.Z)().mark(function t(u){return(0,d.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,_.WY)("/kitchen/api/goods",{method:"POST",data:u}));case 1:case"end":return e.stop()}},t)})),B.apply(this,arguments)}function M(t){return w.apply(this,arguments)}function w(){return w=(0,I.Z)((0,d.Z)().mark(function t(u){return(0,d.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return console.log("\u5546\u54C1\u6570\u636E\u4FEE\u6539",u),e.abrupt("return",(0,_.WY)("/kitchen/api/goods",{method:"PUT",data:u}));case 2:case"end":return e.stop()}},t)})),w.apply(this,arguments)}function U(t){return k.apply(this,arguments)}function k(){return k=(0,I.Z)((0,d.Z)().mark(function t(u){return(0,d.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,_.WY)("/kitchen/api/goods",{method:"DELETE",data:u}));case 1:case"end":return e.stop()}},t)})),k.apply(this,arguments)}function V(t){return P.apply(this,arguments)}function P(){return P=(0,I.Z)((0,d.Z)().mark(function t(u){return(0,d.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,_.WY)("/kitchen/api/goods-type/goods-types",{method:"POST",data:u}));case 1:case"end":return e.stop()}},t)})),P.apply(this,arguments)}function i(t){return O.apply(this,arguments)}function O(){return O=(0,I.Z)((0,d.Z)().mark(function t(u){return(0,d.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,_.WY)("/kitchen/api/goods-type/big-goods-types",{method:"POST",data:u}));case 1:case"end":return e.stop()}},t)})),O.apply(this,arguments)}function te(t){return b.apply(this,arguments)}function b(){return b=_asyncToGenerator(_regeneratorRuntime().mark(function t(u){return _regeneratorRuntime().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",request("/kitchen/api/goodstaste/getlist"));case 1:case"end":return e.stop()}},t)})),b.apply(this,arguments)}}}]); diff --git a/dist/p__integral__integralConfigure.ff7adb78.async.js b/dist/p__integral__integralConfigure.39c4b349.async.js similarity index 63% rename from dist/p__integral__integralConfigure.ff7adb78.async.js rename to dist/p__integral__integralConfigure.39c4b349.async.js index be4e703..5e0bb5e 100644 --- a/dist/p__integral__integralConfigure.ff7adb78.async.js +++ b/dist/p__integral__integralConfigure.39c4b349.async.js @@ -1 +1 @@ -(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[1100,1322],{64760:function(Le,q,s){"use strict";var V=s(71194),S=s(50146),i=s(62350),x=s(24565),m=s(39428),ee=s(3182),D=s(2824),we=s(47673),te=s(4107),_=s(67294),y=s(16894),P=s(78009),W=s(79146),I=s(85893),z=function(F){var M=(0,_.useRef)(),g=te.Z.TextArea,se=(0,_.useState)(!1),ge=(0,D.Z)(se,2),ce=ge[0],ae=ge[1],J="",Re=(0,_.useState)(),ne=(0,D.Z)(Re,2),O=ne[0],de=ne[1],Ee=function(){var N=(0,ee.Z)((0,m.Z)().mark(function E(B){return(0,m.Z)().wrap(function(w){for(;;)switch(w.prev=w.next){case 0:if(F.couponRecord.showType!=1){w.next=5;break}return w.next=3,(0,W.m$)(JSON.stringify({Id:O.id,Status:O.status==1?0:1,Remark:J})).then(function(K){ae(!1),M.current.reload()});case 3:w.next=7;break;case 5:return w.next=7,(0,W.A8)(JSON.stringify({Id:O.id,Status:O.status==1?0:1,Remark:J})).then(function(K){ae(!1),M.current.reload()});case 7:case"end":return w.stop()}},E)}));return function(B){return N.apply(this,arguments)}}(),oe=function(){ae(!1)},_e=function(E){J=E.target.value},he=[{title:"\u4E3B\u952E",dataIndex:"id",tip:"\u89C4\u5219\u540D\u79F0\u662F\u552F\u4E00\u7684 key",hideInSearch:!0,hideInTable:!0},{title:"\u9002\u7528\u8303\u56F4",dataIndex:"supplier",hideInSearch:!0,valueType:"textarea"},{title:"\u72B6\u6001",key:"status",dataIndex:"status",valueEnum:{1:{text:"\u7981\u7528",status:"Warning"},0:{text:"\u542F\u7528",status:"Success"}}},{title:"\u5907\u6CE8",dataIndex:"remark",hideInSearch:!0,valueType:"textarea"},{title:"\u53D1\u653E\u65F6\u95F4",key:"sendTime",hideInSearch:!0,dataIndex:"sendTime"},{title:"\u64CD\u4F5C",dateIndex:"option",valueType:"option",render:function(E,B){return(0,I.jsx)(x.Z,{type:"primary",title:"\u786E\u8BA4\u542F\u7528\u5417\uFF1F",okText:"\u662F",cancelText:"\u5426",onConfirm:(0,ee.Z)((0,m.Z)().mark(function T(){return(0,m.Z)().wrap(function(K){for(;;)switch(K.prev=K.next){case 0:g.value=B.remark,de(B),ae(!0);case 3:case"end":return K.stop()}},T)})),onCancel:function(){},children:(0,I.jsx)("a",{href:"#",children:B.status==0?"\u7981\u7528":"\u542F\u7528"})},"primary")}}];return(0,I.jsxs)(S.Z,{footer:null,destroyOnClose:!0,visible:F.shows,width:1100,onCancel:function(){F.onCancel()},children:[(0,I.jsx)(P.ZP,{headerTitle:"",header:{title:"\u53D1\u653E\u8BB0\u5F55",breadcrumb:{}},children:(0,I.jsx)(y.ZP,{actionRef:M,rowKey:"id",options:!1,search:{labelWidth:120},pagination:{pageSize:5},columns:he,request:function(){var N=(0,ee.Z)((0,m.Z)().mark(function E(B){var T,w;return(0,m.Z)().wrap(function($){for(;;)switch($.prev=$.next){case 0:if(T=[],w=0,B.couponId=F.couponRecord.couponId,B.batchNo=F.couponRecord.batchNo,F.couponRecord.showType!=1){$.next=9;break}return $.next=7,(0,W.m2)(B).then(function(U){T=U.data.data,w=U.data.total});case 7:$.next=11;break;case 9:return $.next=11,(0,W.tP)(B).then(function(U){T=U.data.data,w=U.data.total});case 11:return $.abrupt("return",{data:T,success:!0,total:w});case 12:case"end":return $.stop()}},E)}));return function(E){return N.apply(this,arguments)}}()})}),(0,I.jsx)(S.Z,{title:"\u5907\u6CE8",visible:ce,onOk:Ee,onCancel:oe,children:(0,I.jsx)(g,{onChange:function(E){return _e(E)},rows:4})})]})};q.Z=z},79146:function(Le,q,s){"use strict";s.d(q,{hz:function(){return x},GA:function(){return ee},m$:function(){return we},m2:function(){return te},tP:function(){return _},A8:function(){return y},aO:function(){return P},fC:function(){return I}});var V=s(39428),S=s(3182),i=s(48971);function x(v){return m.apply(this,arguments)}function m(){return m=(0,S.Z)((0,V.Z)().mark(function v(F){return(0,V.Z)().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:return g.abrupt("return",(0,i.WY)("/kitchen/api/coupon/couponrecordpage",{method:"POST",data:F}));case 1:case"end":return g.stop()}},v)})),m.apply(this,arguments)}function ee(v){return D.apply(this,arguments)}function D(){return D=(0,S.Z)((0,V.Z)().mark(function v(F){return(0,V.Z)().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:return g.abrupt("return",(0,i.WY)("/kitchen/api/coupon/customerpage",{method:"POST",data:F}));case 1:case"end":return g.stop()}},v)})),D.apply(this,arguments)}function we(v){return(0,i.WY)("/kitchen/api/coupon/recallcoupon",{method:"post",data:v})}function te(v){return(0,i.WY)("/kitchen/api/coupon/couponrecordbyid",{method:"post",data:v})}function _(v){return(0,i.WY)("/kitchen/api/coupon/couponrecordgoods",{method:"post",data:v})}function y(v){return(0,i.WY)("/kitchen/api/coupon/recallcoupongoods",{method:"post",data:v})}function P(v){return W.apply(this,arguments)}function W(){return W=(0,S.Z)((0,V.Z)().mark(function v(F){return(0,V.Z)().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:return g.abrupt("return",(0,i.WY)("/kitchen/api/coupon/receivecouponbyinput",{method:"PUT",data:F}));case 1:case"end":return g.stop()}},v)})),W.apply(this,arguments)}function I(v){return z.apply(this,arguments)}function z(){return z=(0,S.Z)((0,V.Z)().mark(function v(F){return(0,V.Z)().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:return g.abrupt("return",(0,i.WY)("/kitchen\u200B/api\u200B/select\u200B/customerinfo\u200B",{method:"Post",data:F}));case 1:case"end":return g.stop()}},v)})),z.apply(this,arguments)}},59458:function(Le,q,s){"use strict";s.r(q),s.d(q,{default:function(){return Tt}});var V=s(57663),S=s(71577),i=s(39428),x=s(3182),m=s(2824),ee=s(34792),D=s(48086),we=s(18106),te=s(95562),_=s(49101),y=s(67294),P=s(16894),W=s(30381),I=s.n(W),z=s(11849),v=s(48971);function F(c){return M.apply(this,arguments)}function M(){return M=_asyncToGenerator(_regeneratorRuntime().mark(function c(n){return _regeneratorRuntime().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.abrupt("return",request("/kitchen/api/integral/add",{method:"POST",data:n}));case 1:case"end":return u.stop()}},c)})),M.apply(this,arguments)}function g(c){return se.apply(this,arguments)}function se(){return se=_asyncToGenerator(_regeneratorRuntime().mark(function c(n){return _regeneratorRuntime().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.abrupt("return",request("/kitchen/api/integral/edit",{method:"POST",data:n}));case 1:case"end":return u.stop()}},c)})),se.apply(this,arguments)}function ge(c){return ce.apply(this,arguments)}function ce(){return ce=(0,x.Z)((0,i.Z)().mark(function c(n){return(0,i.Z)().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.abrupt("return",(0,v.WY)("/kitchen/api/integral/getpage",{method:"POST",data:n}));case 1:case"end":return u.stop()}},c)})),ce.apply(this,arguments)}function ae(c){return J.apply(this,arguments)}function J(){return J=(0,x.Z)((0,i.Z)().mark(function c(n){return(0,i.Z)().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.abrupt("return",(0,v.WY)("/kitchen/api/integraltype/add",{method:"POST",data:n}));case 1:case"end":return u.stop()}},c)})),J.apply(this,arguments)}function Re(c){return ne.apply(this,arguments)}function ne(){return ne=(0,x.Z)((0,i.Z)().mark(function c(n){return(0,i.Z)().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.abrupt("return",(0,v.WY)("/kitchen/api/integraltype/edit",{method:"POST",data:n}));case 1:case"end":return u.stop()}},c)})),ne.apply(this,arguments)}function O(c){return de.apply(this,arguments)}function de(){return de=(0,x.Z)((0,i.Z)().mark(function c(n){return(0,i.Z)().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.abrupt("return",(0,v.WY)("/kitchen/api/integraltype/getpage",{method:"POST",data:n}));case 1:case"end":return u.stop()}},c)})),de.apply(this,arguments)}function Ee(c){return oe.apply(this,arguments)}function oe(){return oe=(0,x.Z)((0,i.Z)().mark(function c(n){return(0,i.Z)().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.abrupt("return",(0,v.WY)("/kitchen/api/integralrule/add",{method:"POST",data:n}));case 1:case"end":return u.stop()}},c)})),oe.apply(this,arguments)}function _e(c){return he.apply(this,arguments)}function he(){return he=(0,x.Z)((0,i.Z)().mark(function c(n){return(0,i.Z)().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.abrupt("return",(0,v.WY)("/kitchen/api/integralrule/edit",{method:"POST",data:n}));case 1:case"end":return u.stop()}},c)})),he.apply(this,arguments)}function N(c){return E.apply(this,arguments)}function E(){return E=_asyncToGenerator(_regeneratorRuntime().mark(function c(n){return _regeneratorRuntime().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.abrupt("return",request("/kitchen/api/integralrule/edit",{method:"POST",data:n}));case 1:case"end":return u.stop()}},c)})),E.apply(this,arguments)}function B(c){return T.apply(this,arguments)}function T(){return T=(0,x.Z)((0,i.Z)().mark(function c(n){return(0,i.Z)().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.abrupt("return",(0,v.WY)("/kitchen/api/integralrule/getpage",{method:"POST",data:n}));case 1:case"end":return u.stop()}},c)})),T.apply(this,arguments)}function w(c){return K.apply(this,arguments)}function K(){return K=(0,x.Z)((0,i.Z)().mark(function c(n){return(0,i.Z)().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.abrupt("return",(0,v.WY)("/kitchen/api/goods-type/goods-types",{method:"POST",data:n}));case 1:case"end":return u.stop()}},c)})),K.apply(this,arguments)}function $(c){return U.apply(this,arguments)}function U(){return U=(0,x.Z)((0,i.Z)().mark(function c(n){return(0,i.Z)().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.abrupt("return",(0,v.WY)("/kitchen/api/goods-type/big-goods-types",{method:"POST",data:n}));case 1:case"end":return u.stop()}},c)})),U.apply(this,arguments)}function Ca(c){return Be.apply(this,arguments)}function Be(){return Be=_asyncToGenerator(_regeneratorRuntime().mark(function c(n){return _regeneratorRuntime().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.abrupt("return",request("/kitchen/api/Device/StoreDeviceTree",{data:_objectSpread({},n)}));case 1:case"end":return u.stop()}},c)})),Be.apply(this,arguments)}function St(c){return Te.apply(this,arguments)}function Te(){return Te=(0,x.Z)((0,i.Z)().mark(function c(n){return(0,i.Z)().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.abrupt("return",(0,v.WY)("/kitchen/api/Device/StoreList",{data:(0,z.Z)({},n)}));case 1:case"end":return u.stop()}},c)})),Te.apply(this,arguments)}function ga(){return Ae.apply(this,arguments)}function Ae(){return Ae=_asyncToGenerator(_regeneratorRuntime().mark(function c(){return _regeneratorRuntime().wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return h.abrupt("return",request("/kitchen/api/integralrule/addinteg",{}));case 1:case"end":return h.stop()}},c)})),Ae.apply(this,arguments)}function It(){return Pe.apply(this,arguments)}function Pe(){return Pe=(0,x.Z)((0,i.Z)().mark(function c(){return(0,i.Z)().wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return h.abrupt("return",(0,v.WY)("/kitchen/api/integralrule/getall",{}));case 1:case"end":return h.stop()}},c)})),Pe.apply(this,arguments)}function ba(c){var n="";switch(c){case 1:n="priceIds";break;case 2:n="bigIds";break;case 3:n="smallIds";break;case 4:n="countIds";break;case 5:n="personsIds";break;case 6:n="numberIds";break;default:break}return n}function ka(c){var n="\u672A\u5B9A\u4E49\u89C4\u5219";switch(c){case 1:n="\u6309\u6D88\u8D39\u91D1\u989D\u79EF\u5206\u89C4\u5219";break;case 2:n="\u6309\u5927\u7C7B\u79EF\u5206\u89C4\u5219";break;case 3:n="\u6309\u5C0F\u7C7B\u79EF\u5206\u89C4\u5219";break;case 4:n="\u6309\u6D88\u8D39\u6B21\u6570\u79EF\u5206\u89C4\u5219";break;case 5:n="\u6309\u6D88\u8D39\u4EBA\u6570\u79EF\u5206\u89C4\u5219";break;case 6:n="\u6309\u51FA\u54C1\u6570\u91CF\u79EF\u5206\u89C4\u5219";break;default:break}return n}var ja=s(71194),Ne=s(50146),Da=s(48736),Me=s(27049),Sa=s(14965),Oe=s(91774),Ia=s(17462),Ue=s(76772),Fa=s(43358),Y=s(34041),wa=s(77576),L=s(12028),Ra=s(9715),d=s(55843),Ea=s(47673),k=s(4107),_a=s(96486),Ba=s(48526),e=s(85893),Ft=k.Z.TextArea,wt=function(n){var h=(0,y.useState)([]),u=(0,m.Z)(h,2),pe=u[0],be=u[1],Ve=(0,y.useState)([]),ke=(0,m.Z)(Ve,2),je=ke[0],X=ke[1],G=[{name:"Monday",value:1,label:"\u5468\u4E00"},{name:"Tuesday",value:2,label:"\u5468\u4E8C"},{name:"Wednesday",value:3,label:"\u5468\u4E09"},{name:"Thursday",value:4,label:"\u5468\u56DB"},{name:"Friday",value:5,label:"\u5468\u4E94"},{name:"Saturday",value:6,label:"\u5468\u516D"},{name:"Sunday",value:0,label:"\u5468\u65E5"}],We=[{name:"none",value:-1,label:"\u4E0D\u79EF\u5206"},{name:"common",value:0,label:"\u79EF\u5206\u4F18\u5148\u65B9\u6848"},{name:"price",value:1,label:"\u6309\u91D1\u989D\u79EF\u5206"},{name:"big",value:2,label:"\u6309\u5927\u7C7B\u79EF\u5206"},{name:"small",value:3,label:"\u6309\u5C0F\u7C7B\u79EF\u5206"},{name:"count",value:4,label:"\u6309\u6D88\u8D39\u6B21\u6570\u79EF\u5206"},{name:"persons",value:5,label:"\u6309\u6D88\u8D39\u4EBA\u6570\u79EF\u5206"},{name:"number",value:6,label:"\u6309\u51FA\u54C1\u6570\u91CF\u79EF\u5206"}];if(n.Data!=null&&n.Data.allChild&&pe.length==0&&be(n.Data.allChild),je.length==0&&(n.values.priority>0&&X((n.Data.allChild||[]).find(function(C){return C.ruleType==n.values.priority}).child),n.values.priority==0)){var R=[];(n.Data.allChild||[]).map(function(C,j){(C.child||[]).map(function(me,ue){R.push(me)})}),X(R)}function De(C){var j="\u672A\u5B9A\u4E49\u89C4\u5219";switch(C){case 1:j="\u6D88\u8D39\u91D1\u989D";break;case 2:j="\u6309\u5927\u7C7B";break;case 3:j="\u6309\u5C0F\u7C7B";break;case 4:j="\u6D88\u8D39\u6B21\u6570";break;case 5:j="\u6D88\u8D39\u4EBA\u6570";break;case 6:j="\u51FA\u54C1\u6570\u91CF";break;default:break}return j}var Ke=d.Z.useForm(),Se=(0,m.Z)(Ke,1),Ie=Se[0];return(0,e.jsx)(Ne.Z,{width:"80%",visible:n.createModalVisible,bodyStyle:{padding:"32px 40px 48px"},footer:null,onCancel:function(){n.onCancel(),be([])},destroyOnClose:!0,children:(0,e.jsxs)(d.Z,{layout:"Vertical",labelCol:{span:6},initialValues:n.values,onFinish:n.onFinish,onCancel:n.onCancel,form:Ie,children:[(0,e.jsxs)("div",{style:{float:"left"},children:[(0,e.jsx)(d.Z.Item,{name:"id",hidden:!0,children:(0,e.jsx)(k.Z,{})}),(0,e.jsx)(d.Z.Item,{label:"\u89C4\u5219\u540D\u79F0",name:"name",children:(0,e.jsx)(k.Z,{})}),(0,e.jsx)(d.Z.Item,{label:"\u7279\u4EF7\u5546\u54C1\u53C2\u4E0E\u79EF\u5206",name:"isSpecial",valuePropName:"checked",children:(0,e.jsx)(L.Z,{checkedChildren:"\u5F00\u542F",unCheckedChildren:"\u5173\u95ED"})}),(0,e.jsx)(d.Z.Item,{label:"\u79EF\u5206\u4F18\u5148\u65B9\u6848\u8BBE\u7F6E",name:"priority",initialValue:n.values.priority||[],title:"\u9ED8\u8BA4\u6309\u5C0F\u7C7B\uFF0C\u5927\u7C7B\uFF0C\u6B21\u6570\uFF0C\u4EBA\u6570\uFF0C\u6D88\u8D39\u91D1\u989D\uFF0C\u53D6\u552F\u4E00\u4E00\u79CD",children:(0,e.jsx)(Y.Z,{style:{width:"250px"},onChange:function(j,me){debugger;if(j<=0)if(j==0){var ue=[];(pe||[]).map(function(H,Ge){(H.child||[]).map(function(Fe,$e){ue.push(Fe)})}),X(ue)}else X([]);else X((pe||[]).find(function(H){return H.typeId==j}).child)},children:(We||[]).map(function(C,j){return(0,e.jsx)(Y.Z.Option,{index:j,value:C.value,children:C.label},C.name)})})}),(0,e.jsx)(Ue.Z,{message:"\u79EF\u5206\u4F18\u5148\u65B9\u6848: \u9ED8\u8BA4\u6309\u5C0F\u7C7B\uFF0C\u5927\u7C7B\uFF0C\u6B21\u6570\uFF0C\u4EBA\u6570\uFF0C\u6D88\u8D39\u91D1\u989D\uFF0C\u53D6\u552F\u4E00\u4E00\u79CD",type:"success"})]}),(0,e.jsxs)("div",{style:{float:"right",width:"58%"},children:[(0,e.jsx)(d.Z.Item,{label:"\u6D3B\u52A8\u8D77\u6B62\u65F6\u95F4",initialValues:"",name:"effectiveDate",children:(0,e.jsx)(Oe.Z.RangePicker,{showTime:!0,style:{width:"70%"}})}),(0,e.jsx)(d.Z.Item,{label:"\u79EF\u5206\u5151\u6362\u50A8\u503C",name:"isOpenIntegToPrice",valuePropName:"checked",children:(0,e.jsx)(L.Z,{checkedChildren:"\u5F00\u542F",unCheckedChildren:"\u5173\u95ED"})}),(0,e.jsxs)(d.Z.Item,{label:"\u79EF\u5206\u5151\u6362\u50A8\u503C\u6BD4\u4F8B",children:[(0,e.jsx)(d.Z.Item,{style:{display:"inline-block"},name:"integToPriceRatioHead",children:(0,e.jsx)(k.Z,{className:"site-input-right",style:{width:150,textAlign:"center"},placeholder:"\u79EF\u5206",addonAfter:"\u5151\u6362"})}),(0,e.jsx)(d.Z.Item,{style:{display:"inline-block"},name:"integToPriceRatioValue",children:(0,e.jsx)(k.Z,{className:"site-input-right",style:{width:100,textAlign:"center"},placeholder:"\u50A8\u503C"})})]}),(0,e.jsx)(d.Z.Item,{label:"\u79EF\u5206\u5151\u6362\u5546\u54C1",name:"isOpenIntegToCommodity",valuePropName:"checked",children:(0,e.jsx)(L.Z,{checkedChildren:"\u5F00\u542F",unCheckedChildren:"\u5173\u95ED"})}),(0,e.jsx)(d.Z.Item,{label:"\u79EF\u5206\u65B9\u6848\u4F7F\u7528\u7C7B\u578B\u8BBE\u7F6E",name:"ruletypelist",initialValue:n.values.ruletypelist||[],children:(0,e.jsx)(Y.Z,{mode:"multiple",style:{width:"90%"},allowClear:!0,children:(je||[]).map(function(C,j){return(0,e.jsxs)(Y.Z.Option,{index:j,value:C.id,children:[De(C.ruleType),"-",C.ruleRemark]},C.id)})})}),(0,e.jsx)(Ue.Z,{message:"\u9009\u62E9\u65B9\u6848\u7C7B\u578B\u540E,\u5C06\u4F1A\u4F7F\u7528\u5DF2\u9009\u62E9\u7684\u65B9\u6848\u7C7B\u578B\u8FDB\u884C\u79EF\u5206\u8BA1\u7B97",type:"success"}),(0,e.jsx)("br",{})]}),(0,e.jsx)(Me.Z,{}),(0,e.jsx)(d.Z.Item,{name:"ruleRemark",label:"\u89C4\u5219\u8BF4\u660E",children:(0,e.jsx)(Ft,{})}),(0,e.jsx)(Me.Z,{}),(0,e.jsxs)(d.Z.Item,{label:"\u4F1A\u5458\u751F\u65E5\u5F53\u5929\u79EF\u5206\u500D\u6570",children:[(0,e.jsx)(d.Z.Item,{name:"birthdayMultiple",style:{display:"inline-block"},children:(0,e.jsx)(k.Z,{addonAfter:"\u500D",style:{width:100}})}),"\xA0\xA0\xA0",(0,e.jsx)(d.Z.Item,{style:{display:"inline-block"},name:"birthdayMultipleOn",valuePropName:"checked",children:(0,e.jsx)(L.Z,{checkedChildren:"\u5F00\u542F",unCheckedChildren:"\u5173\u95ED"})})]}),(0,e.jsxs)(d.Z.Item,{label:"\u4F1A\u5458\u751F\u65E5\u5F53\u6708\u79EF\u5206\u500D\u6570",children:[(0,e.jsx)(d.Z.Item,{name:"birthmonthMultiple",style:{display:"inline-block"},children:(0,e.jsx)(k.Z,{addonAfter:"\u500D",style:{width:100}})}),"\xA0\xA0\xA0",(0,e.jsx)(d.Z.Item,{style:{display:"inline-block"},name:"birthmonthMultipleOn",valuePropName:"checked",children:(0,e.jsx)(L.Z,{checkedChildren:"\u5F00\u542F",unCheckedChildren:"\u5173\u95ED"})})]}),(0,e.jsxs)(d.Z.Item,{label:"\u6BCF\u6708\u56FA\u5B9A\u65E5",children:[(0,e.jsx)(d.Z.Item,{name:"monthDay",style:{display:"inline-block"},children:(0,e.jsx)(k.Z,{className:"site-input-right",name:"monthDay",style:{width:160},addonBefore:"\u6BCF\u6708",addonAfter:"\u65E5"})}),(0,e.jsx)(d.Z.Item,{style:{display:"inline-block"},name:"multipleMonthDay",children:(0,e.jsx)(k.Z,{addonAfter:"\u500D",style:{width:100}})}),"\xA0\xA0\xA0",(0,e.jsx)(d.Z.Item,{style:{display:"inline-block"},name:"multipleMonthDayOn",valuePropName:"checked",children:(0,e.jsx)(L.Z,{checkedChildren:"\u5F00\u542F",unCheckedChildren:"\u5173\u95ED"})})]}),(0,e.jsxs)(d.Z.Item,{label:"\u6BCF\u5468\u56FA\u5B9A\u65E5",children:[(0,e.jsx)(d.Z.Item,{name:"weekList",style:{display:"inline-block"},initialValue:n.values.weekList||[],children:(0,e.jsx)(Y.Z,{mode:"multiple",style:{width:"300px"},children:G.map(function(C,j){return(0,e.jsx)(Y.Z.Option,{index:j,value:C.value,children:C.label},C.name)})})}),(0,e.jsx)(d.Z.Item,{name:"weekMultiple",style:{display:"inline-block"},children:(0,e.jsx)(k.Z,{className:"site-input-right",style:{width:100},addonAfter:"\u500D",placeholder:"\u79EF\u5206\u500D\u6570"})}),"\xA0\xA0\xA0",(0,e.jsx)(d.Z.Item,{style:{display:"inline-block"},name:"weekMultipleOn",valuePropName:"checked",children:(0,e.jsx)(L.Z,{checkedChildren:"\u5F00\u542F",unCheckedChildren:"\u5173\u95ED"})})]}),(0,e.jsxs)(d.Z.Item,{label:"\u56FA\u5B9A\u65F6\u95F4\u6BB5\u79EF\u5206\u500D\u6570",children:[(0,e.jsx)(d.Z.Item,{name:"multipleDate",style:{display:"inline-block"},children:(0,e.jsx)(Oe.Z.RangePicker,{showTime:!0})}),(0,e.jsx)(d.Z.Item,{name:"dateMultiple",style:{display:"inline-block"},children:(0,e.jsx)(k.Z,{className:"site-input-right",style:{width:100},addonAfter:"\u500D",placeholder:"\u79EF\u5206\u500D\u6570"})}),"\xA0\xA0\xA0",(0,e.jsx)(d.Z.Item,{style:{display:"inline-block"},name:"dateMultipleOn",valuePropName:"checked",children:(0,e.jsx)(L.Z,{checkedChildren:"\u5F00\u542F",unCheckedChildren:"\u5173\u95ED"})})]}),(0,e.jsxs)(d.Z.Item,{label:"\u56FA\u5B9A\u65E5\u671F\u79EF\u5206\u500D\u6570",children:[(0,e.jsx)(d.Z.Item,{name:"fixedDay",style:{display:"inline-block"},children:(0,e.jsx)(Oe.Z,{showTime:!0})}),(0,e.jsx)(d.Z.Item,{name:"multipleFixedDay",style:{display:"inline-block"},children:(0,e.jsx)(k.Z,{addonAfter:"\u500D",style:{width:100}})}),"\xA0\xA0\xA0",(0,e.jsx)(d.Z.Item,{style:{display:"inline-block"},name:"multiplefixedDayOn",valuePropName:"checked",children:(0,e.jsx)(L.Z,{checkedChildren:"\u5F00\u542F",unCheckedChildren:"\u5173\u95ED"})})]}),(0,e.jsx)(Me.Z,{}),(0,e.jsx)(S.Z,{type:"primary",htmlType:"submit",children:"\u4FDD\u5B58"})]})})},Rt=wt,Ta=s(64760),Et=k.Z.TextArea,_t=function(n){return(0,e.jsx)(Ne.Z,{width:840,visible:n.createModalVisible,bodyStyle:{padding:"32px 40px 48px"},footer:null,onCancel:function(){n.onCancel()},destroyOnClose:!0,children:(0,e.jsxs)(d.Z,{layout:"Vertical",labelCol:{span:6},initialValues:n.values,onFinish:n.onFinish,onCancel:n.onCancel,children:[(0,e.jsx)(d.Z.Item,{name:"id",hidden:!0,children:(0,e.jsx)(k.Z,{})}),(0,e.jsx)(d.Z.Item,{label:"\u89C4\u5219\u7C7B\u578B",name:"ruleType",initialValue:n.Data.ruleType,hidden:!0,children:(0,e.jsx)(k.Z,{})}),(0,e.jsx)(d.Z.Item,{label:"\u6D88\u8D39\u91D1\u989D",name:"thresholdPriceKey",hidden:n.Data.type!="price",children:(0,e.jsx)(k.Z,{})}),(0,e.jsx)(d.Z.Item,{label:"\u79EF\u5206\u53D6\u6574",name:"OpenUnFloor",initialValue:n.values.isUnFloor==1,hidden:n.Data.type!="price",valuePropName:"checked",children:(0,e.jsx)(L.Z,{})}),(0,e.jsx)(d.Z.Item,{label:"\u51FA\u54C1\u6570\u91CF",name:"thresholdNumberKey",hidden:n.Data.type!="number",children:(0,e.jsx)(k.Z,{})}),(0,e.jsx)(d.Z.Item,{label:"\u7528\u9910\u4EBA\u6570",name:"thresholdPersonsKey",hidden:n.Data.type!="persons",children:(0,e.jsx)(k.Z,{})}),(0,e.jsx)(d.Z.Item,{label:"\u6D88\u8D39\u6B21\u6570",name:"thresholdCountKey",hidden:n.Data.type!="count",children:(0,e.jsx)(k.Z,{})}),(0,e.jsx)(d.Z.Item,{label:"\u5927\u7C7B",name:"thresholdBigKey",initialValue:n.values.thresholdBigKey,hidden:n.Data.type!="big",children:(0,e.jsx)(Y.Z,{children:n.Data.Big.map(function(h,u){return(0,e.jsx)(Y.Z.Option,{typekey:h.typeKey,index:u,value:h.id,children:h.name},h.id)})})}),(0,e.jsx)(d.Z.Item,{label:"\u5C0F\u7C7B",name:"thresholdSmallKey",hidden:n.Data.type!="small",children:(0,e.jsx)(Y.Z,{children:n.Data.Small.map(function(h,u){return(0,e.jsx)(Y.Z.Option,{typekey:h.typeKey,index:u,value:h.id,children:h.goodsType_Name},h.id)})})}),(0,e.jsx)(d.Z.Item,{label:"\u79EF\u5206",name:"rulethresholdValue",children:(0,e.jsx)(k.Z,{})}),(0,e.jsx)(d.Z.Item,{label:"\u751F\u6548\u95E8\u69DB",name:"thresholds",children:(0,e.jsx)(k.Z,{})}),(0,e.jsx)(d.Z.Item,{label:"\u89C4\u5219\u63CF\u8FF0",name:"ruleRemark",children:(0,e.jsx)(Et,{})}),(0,e.jsx)(d.Z.Item,{children:(0,e.jsx)(S.Z,{type:"primary",htmlType:"submit",children:"\u4FDD\u5B58"})})]})})},re=_t,Q=te.Z.TabPane,Aa=null,Bt=function(){function n(l){var t="\u672A\u5B9A\u4E49\u89C4\u5219";switch(l){case 1:t="\u6309\u6D88\u8D39\u91D1\u989D\u79EF\u5206\u89C4\u5219";break;case 2:t="\u6309\u5927\u7C7B\u79EF\u5206\u89C4\u5219";break;case 3:t="\u6309\u5C0F\u7C7B\u79EF\u5206\u89C4\u5219";break;case 4:t="\u6309\u6D88\u8D39\u6B21\u6570\u79EF\u5206\u89C4\u5219";break;case 5:t="\u6309\u6D88\u8D39\u4EBA\u6570\u79EF\u5206\u89C4\u5219";break;case 6:t="\u6309\u51FA\u54C1\u6570\u91CF\u79EF\u5206\u89C4\u5219";break;default:break}return t}var h={price:1,big:2,small:3,count:4,persons:5,number:6},u=[{title:"\u89C4\u5219id",dataIndex:"id",tip:"\u89C4\u5219\u540D\u79F0\u662F\u552F\u4E00\u7684 key",hideInSearch:!0,hideInTable:!0},{title:"\u91D1\u989D",dataIndex:"thresholdPriceKey"},{title:"\u79EF\u5206",dataIndex:"rulethresholdValue"},{title:"\u79EF\u5206\u53D6\u6574",dataIndex:"isUnFloor",render:function(t,a){return a.isUnFloor==1?"\u5DF2\u5F00\u542F":"\u672A\u5F00\u542F"}},{title:"\u9608\u503C",dataIndex:"thresholds"},{title:"\u89C4\u5219\u63CF\u8FF0",dataIndex:"ruleRemark"},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(t,a){return[(0,e.jsxs)("a",{onClick:function(){C(!0),ut(a)},children:[" ","\u4FEE\u6539"]},"primary"),(0,e.jsxs)("a",{onClick:function(){a.status=a.status==0?1:0,R(a)},children:[" ",a.status==0?"\u505C\u7528":"\u542F\u7528"]},"primary")]}}],pe=[{title:"\u89C4\u5219id",dataIndex:"id",tip:"\u89C4\u5219\u540D\u79F0\u662F\u552F\u4E00\u7684 key",hideInSearch:!0,hideInTable:!0},{title:"\u91D1\u989D",dataIndex:"thresholds"},{title:"\u79EF\u5206",dataIndex:"rulethresholdValue"},{title:"\u5927\u7C7B\u7F16\u7801",dataIndex:"thresholdBigKey"},{title:"\u89C4\u5219\u63CF\u8FF0",dataIndex:"ruleRemark"},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(t,a){return[(0,e.jsxs)("a",{onClick:function(){H(!0),it(a)},children:[" ","\u4FEE\u6539"]},"primary"),(0,e.jsxs)("a",{onClick:function(){a.status=a.status==0?1:0,R(a)},children:[" ",a.status==0?"\u505C\u7528":"\u542F\u7528"]},"primary")]}}],be=[{title:"\u89C4\u5219id",dataIndex:"id",tip:"\u89C4\u5219\u540D\u79F0\u662F\u552F\u4E00\u7684 key",hideInSearch:!0,hideInTable:!0},{title:"\u91D1\u989D",dataIndex:"thresholds"},{title:"\u79EF\u5206",dataIndex:"rulethresholdValue"},{title:"\u5C0F\u7C7B\u7F16\u7801",dataIndex:"thresholdSmallKey"},{title:"\u89C4\u5219\u63CF\u8FF0",dataIndex:"ruleRemark"},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(t,a){return[(0,e.jsxs)("a",{onClick:function(){fe(!0),ct(a)},children:[" ","\u4FEE\u6539"]},"primary"),(0,e.jsxs)("a",{onClick:function(){a.status=a.status==0?1:0,R(a)},children:[" ",a.status==0?"\u505C\u7528":"\u542F\u7528"]},"primary")]}}],Ve=[{title:"\u89C4\u5219id",dataIndex:"id",tip:"\u89C4\u5219\u540D\u79F0\u662F\u552F\u4E00\u7684 key",hideInSearch:!0,hideInTable:!0},{title:"\u6B21\u6570",dataIndex:"thresholdCountKey"},{title:"\u79EF\u5206",dataIndex:"rulethresholdValue"},{title:"\u79EF\u5206\u9608\u503C",dataIndex:"thresholds"},{title:"\u89C4\u5219\u63CF\u8FF0",dataIndex:"ruleRemark"},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(t,a){return[(0,e.jsxs)("a",{onClick:function(){ye(!0),pt(a)},children:[" ","\u4FEE\u6539"]},"primary"),(0,e.jsxs)("a",{onClick:function(){a.status=a.status==0?1:0,R(a)},children:[" ",a.status==0?"\u505C\u7528":"\u542F\u7528"]},"primary")]}}],ke=[{title:"\u89C4\u5219id",dataIndex:"id",tip:"\u89C4\u5219\u540D\u79F0\u662F\u552F\u4E00\u7684 key",hideInSearch:!0,hideInTable:!0},{title:"\u4EBA\u6570",dataIndex:"thresholdPersonsKey"},{title:"\u79EF\u5206",dataIndex:"rulethresholdValue"},{title:"\u79EF\u5206\u9608\u503C",dataIndex:"thresholds"},{title:"\u89C4\u5219\u63CF\u8FF0",dataIndex:"ruleRemark"},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(t,a){return[(0,e.jsxs)("a",{onClick:function(){ve(!0),ot(a)},children:[" ","\u4FEE\u6539"]},"primary"),(0,e.jsxs)("a",{onClick:function(){a.status=a.status==0?1:0,R(a)},children:[" ",a.status==0?"\u505C\u7528":"\u542F\u7528"]},"primary")]}}],je=[{title:"\u89C4\u5219id",dataIndex:"id",tip:"\u89C4\u5219\u540D\u79F0\u662F\u552F\u4E00\u7684 key",hideInSearch:!0,hideInTable:!0},{title:"\u6570\u91CF",dataIndex:"thresholdNumberKey"},{title:"\u79EF\u5206",dataIndex:"rulethresholdValue"},{title:"\u79EF\u5206\u9608\u503C",dataIndex:"thresholds"},{title:"\u89C4\u5219\u63CF\u8FF0",dataIndex:"ruleRemark"},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(t,a){return[(0,e.jsxs)("a",{onClick:function(){Ze(!0),setnumberCurrentRow(a)},children:[" ","\u4FEE\u6539"]},"primary"),(0,e.jsxs)("a",{onClick:function(){a.status=a.status==0?1:0,R(a)},children:[" ",a.status==0?"\u505C\u7528":"\u542F\u7528"]},"primary")]}}],X=[{title:"\u89C4\u5219id",dataIndex:"id",tip:"\u89C4\u5219\u540D\u79F0\u662F\u552F\u4E00\u7684 key",hideInSearch:!0,hideInTable:!0},{title:"\u89C4\u5219\u540D\u79F0",dataIndex:"name"},{title:"\u89C4\u5219\u8BF4\u660E",dataIndex:"ruleRemark"},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(t,a){return[(0,e.jsxs)("a",{onClick:function(){xe(!0),Ye(a)},children:[" ","\u4FEE\u6539"]},"primary"),(0,e.jsxs)("a",{onClick:function(){a.status=a.status==0?1:0,De(a)},children:[" ",a.status==0?"\u505C\u7528":"\u542F\u7528"]},"primary")]}}];function G(l){try{return ae(l).then(function(t){t.data?(D.default.success("\u6DFB\u52A0\u6210\u529F"),Z.current.reload()):D.default.error("\u6DFB\u52A0\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01")}),!0}catch(t){return D.default.error("\u6DFB\u52A0\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),!1}}function We(l){try{return Ee(l).then(function(t){t.data?(D.default.success("\u6DFB\u52A0\u6210\u529F"),Z.current.reload()):D.default.error("\u6DFB\u52A0\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01")}),!0}catch(t){return D.default.error("\u6DFB\u52A0\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),!1}}function R(l){try{return Re(l).then(function(t){t.data?D.default.success("\u914D\u7F6E\u6210\u529F"):D.default.error("\u914D\u7F6E\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),Z.current.reload()}),!0}catch(t){return D.default.error("\u914D\u7F6E\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),!1}}function De(l){try{return _e(l).then(function(t){t.data?D.default.success("\u914D\u7F6E\u6210\u529F"):D.default.error("\u914D\u7F6E\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),Z.current.reload()}),!0}catch(t){return D.default.error("\u914D\u7F6E\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),!1}}var Ke=(0,y.useState)(),Se=(0,m.Z)(Ke,2),Ie=Se[0],C=Se[1],j=(0,y.useState)(),me=(0,m.Z)(j,2),ue=me[0],H=me[1],Ge=(0,y.useState)(),Fe=(0,m.Z)(Ge,2),$e=Fe[0],fe=Fe[1],At=(0,y.useState)(),He=(0,m.Z)(At,2),ze=He[0],ye=He[1],Pt=(0,y.useState)(),Je=(0,m.Z)(Pt,2),Qe=Je[0],ve=Je[1],Mt=(0,y.useState)(),Xe=(0,m.Z)(Mt,2),qe=Xe[0],Ze=Xe[1],Ot=(0,y.useState)(),et=(0,m.Z)(Ot,2),tt=et[0],xe=et[1],Vt=(0,y.useState)([]),at=(0,m.Z)(Vt,2),le=at[0],Wt=at[1],Kt=(0,y.useState)([]),nt=(0,m.Z)(Kt,2),ie=nt[0],$t=nt[1],Yt=(0,y.useState)(),rt=(0,m.Z)(Yt,2),Lt=rt[0],ut=rt[1],Nt=(0,y.useState)(),lt=(0,m.Z)(Nt,2),Ut=lt[0],it=lt[1],Gt=(0,y.useState)(),st=(0,m.Z)(Gt,2),Ht=st[0],ct=st[1],zt=(0,y.useState)(),dt=(0,m.Z)(zt,2),Jt=dt[0],ot=dt[1],Qt=(0,y.useState)(),ht=(0,m.Z)(Qt,2),Xt=ht[0],pt=ht[1],qt=(0,y.useState)(),mt=(0,m.Z)(qt,2),ea=mt[0],ta=mt[1],aa=(0,y.useState)(),ft=(0,m.Z)(aa,2),na=ft[0],Ye=ft[1],ra=(0,y.useState)(),yt=(0,m.Z)(ra,2),ua=yt[0],la=yt[1],ia=(0,y.useState)(),vt=(0,m.Z)(ia,2),Pa=vt[0],sa=vt[1],ca=(0,y.useState)([]),Zt=(0,m.Z)(ca,2),da=Zt[0],oa=Zt[1],ha=(0,y.useState)(),xt=(0,m.Z)(ha,2),Ma=xt[0],pa=xt[1],ma=(0,y.useState)([]),Ct=(0,m.Z)(ma,2),Oa=Ct[0],fa=Ct[1],ya=(0,y.useState)([]),gt=(0,m.Z)(ya,2),Va=gt[0],va=gt[1],Za=(0,y.useState)([]),bt=(0,m.Z)(Za,2),Wa=bt[0],Ka=bt[1],xa=(0,y.useState)([]),kt=(0,m.Z)(xa,2),$a=kt[0],Ya=kt[1],La=function(t,a){console.log(t[0]),la(t[0]),sa(a.node.type)},Z=(0,y.useRef)();return(0,y.useEffect)(function(){var l={current:1,pagesize:30};$(l).then(function(t){Wt(t.data.data)}),w(l).then(function(t){$t(t.data.data)}),St(l).then(function(t){pa(t.data)}),It({current:0,pagesize:0}).then(function(t){oa(t.data);var a=[],r=[];(t.data.allCommon||[]).map(function(o,f){r.push({title:o.name,key:o.id,parentId:0,type:0,children:[]})}),a.push({title:"\u901A\u7528\u89C4\u5219",key:0,parentId:0,type:0,children:r}),(t.data.allChild||[]).map(function(o,f){var p=n(o.typeId),b=[];o.child.map(function(Ce,A){b.push({title:Ce.ruleRemark,key:Ce.id,parentId:o.typeId,type:o.typeId,children:[]})}),a.push({title:p,key:o.typeId,parentId:0,type:o.typeId,children:b})}),fa(a)}),ge({current:0,pagesize:0}).then(function(t){va(t.data)})},[]),(0,e.jsxs)(te.Z,{defaultActiveKey:"1",children:[(0,e.jsx)(re,{onFinish:function(){var l=(0,x.Z)((0,i.Z)().mark(function t(a){var r;return(0,i.Z)().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:r=!1,a.id?r=R(a):r=G(a),r&&(C(!1),ut(void 0),Z.current&&Z.current.reload());case 3:case"end":return f.stop()}},t)}));return function(t){return l.apply(this,arguments)}}(),onCancel:function(){C(!1),Z.current.reload()},Data:{type:"price",ruleType:h.price,Big:le||[],Small:ie||[]},createModalVisible:Ie,values:Lt||{}}),(0,e.jsx)(re,{onFinish:function(){var l=(0,x.Z)((0,i.Z)().mark(function t(a){var r;return(0,i.Z)().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:r=!1,a.id?r=R(a):r=G(a),r&&(H(!1),it(void 0),Z.current&&Z.current.reload());case 3:case"end":return f.stop()}},t)}));return function(t){return l.apply(this,arguments)}}(),onCancel:function(){H(!1),Z.current.reload()},Data:{type:"big",ruleType:h.big,Big:le||[],Small:ie||[]},createModalVisible:ue,values:Ut||{}}),(0,e.jsx)(re,{onCancel:function(){fe(!1),Z.current.reload()},onFinish:function(){var l=(0,x.Z)((0,i.Z)().mark(function t(a){var r;return(0,i.Z)().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:r=!1,a.id?r=R(a):r=G(a),r&&(fe(!1),ct(void 0),Z.current&&(fe(!1),Z.current.reload()));case 3:case"end":return f.stop()}},t)}));return function(t){return l.apply(this,arguments)}}(),Data:{type:"small",ruleType:h.small,Big:le||[],Small:ie||[]},createModalVisible:$e,values:Ht||{}}),(0,e.jsx)(re,{onCancel:function(){ye(!1),Z.current.reload()},onFinish:function(){var l=(0,x.Z)((0,i.Z)().mark(function t(a){var r;return(0,i.Z)().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:r=!1,a.id?r=R(a):r=G(a),r&&(ye(!1),pt(void 0),Z.current&&(ye(!1),Z.current.reload()));case 3:case"end":return f.stop()}},t)}));return function(t){return l.apply(this,arguments)}}(),Data:{type:"count",ruleType:h.count,Big:le||[],Small:ie||[]},createModalVisible:ze,values:Xt||{}}),(0,e.jsx)(re,{onCancel:function(){ve(!1),Z.current.reload()},onFinish:function(){var l=(0,x.Z)((0,i.Z)().mark(function t(a){var r;return(0,i.Z)().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:r=!1,a.id?r=R(a):r=G(a),r&&(ve(!1),ot(void 0),Z.current&&(ve(!1),Z.current.reload()));case 3:case"end":return f.stop()}},t)}));return function(t){return l.apply(this,arguments)}}(),Data:{type:"persons",ruleType:h.persons,Big:le||[],Small:ie||[]},createModalVisible:Qe,values:Jt||{}}),(0,e.jsx)(re,{onCancel:function(){Ze(!1),Z.current.reload()},onFinish:function(){var l=(0,x.Z)((0,i.Z)().mark(function t(a){var r;return(0,i.Z)().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:r=!1,a.id?r=R(a):r=G(a),r&&(Ze(!1),ta(void 0),Z.current&&(Ze(!1),Z.current.reload()));case 3:case"end":return f.stop()}},t)}));return function(t){return l.apply(this,arguments)}}(),Data:{type:"number",ruleType:h.number,Big:le||[],Small:ie||[]},createModalVisible:qe,values:ea||{}}),(0,e.jsx)(Rt,{onCancel:function(){xe(!1),Ye(void 0),Z.current.reload()},onFinish:function(){var l=(0,x.Z)((0,i.Z)().mark(function t(a){var r;return(0,i.Z)().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:r=!1,a.id?r=De(a):r=We(a),r&&(xe(!1),Ye(void 0),Z.current&&(xe(!1),Z.current.reload()));case 3:case"end":return f.stop()}},t)}));return function(t){return l.apply(this,arguments)}}(),Data:da||{allChild:[],allCommon:[]},createModalVisible:tt,values:na||{}}),(0,e.jsx)(Q,{tab:"\u901A\u7528\u8BBE\u7F6E",style:{float:"left"},children:(0,e.jsx)(P.ZP,{actionRef:Z,rowKey:"id",search:{labelWidth:120},toolBarRender:function(){return[(0,e.jsxs)(S.Z,{type:"primary",onClick:function(){xe(!0)},children:[(0,e.jsx)(_.Z,{})," \u6DFB\u52A0"]},"primary")]},params:{thisRuleId:ua},request:function(){var l=(0,x.Z)((0,i.Z)().mark(function t(a){var r,o;return(0,i.Z)().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:return r=[],o=0,p.next=4,B(a).then(function(b){var Ce=b.data.data;Ce.map(function(A,Na){var jt=[],Dt=[];A.effectiveDate!=null&&(jt=[I()(A.effectiveDate[0],"YYYY-MM-DD HH:mm:ss"),I()(A.effectiveDate[1],"YYYY-MM-DD HH:mm:ss")],A.effectiveDate=jt),A.multipleDate!=null&&(Dt=[I()(A.multipleDate[0],"YYYY-MM-DD HH:mm:ss"),I()(A.multipleDate[1],"YYYY-MM-DD HH:mm:ss")],A.multipleDate=Dt),A.fixedDay!=null&&(A.fixedDay=I()(A.fixedDay,"YYYY-MM-DD HH:mm:ss"))}),r=Ce,o=b.data.total});case 4:return p.abrupt("return",{data:r,success:!0,total:o});case 5:case"end":return p.stop()}},t)}));return function(t){return l.apply(this,arguments)}}(),modalVisible:tt,columns:X,rowSelection:{onChange:function(t,a){}}})},"1"),(0,e.jsx)(Q,{tab:"\u6309\u91D1\u989D\u79EF\u5206",children:(0,e.jsx)(P.ZP,{actionRef:Z,rowKey:"id",search:{labelWidth:120},toolBarRender:function(){return[(0,e.jsxs)(S.Z,{type:"primary",onClick:function(){C(!0)},children:[(0,e.jsx)(_.Z,{})," \u6DFB\u52A0"]},"primary")]},params:{RuleType:1},request:function(){var l=(0,x.Z)((0,i.Z)().mark(function t(a){var r,o;return(0,i.Z)().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:return r=[],o=0,p.next=4,O(a).then(function(b){r=b.data.data,o=b.data.total});case 4:return p.abrupt("return",{data:r,success:!0,total:o});case 5:case"end":return p.stop()}},t)}));return function(t){return l.apply(this,arguments)}}(),modalVisible:Ie,columns:u,rowSelection:{onChange:function(t,a){}}})},"2"),(0,e.jsx)(Q,{tab:"\u6309\u5927\u7C7B\u79EF\u5206",children:(0,e.jsx)(P.ZP,{actionRef:Z,rowKey:"id",search:{labelWidth:120},toolBarRender:function(){return[(0,e.jsxs)(S.Z,{type:"primary",onClick:function(){H(!0)},children:[(0,e.jsx)(_.Z,{})," \u6DFB\u52A0"]},"primary")]},params:{RuleType:2},request:function(){var l=(0,x.Z)((0,i.Z)().mark(function t(a){var r,o;return(0,i.Z)().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:return r=[],o=0,p.next=4,O(a).then(function(b){r=b.data.data,o=b.data.total});case 4:return p.abrupt("return",{data:r,success:!0,total:o});case 5:case"end":return p.stop()}},t)}));return function(t){return l.apply(this,arguments)}}(),modalVisible:ue,columns:pe,rowSelection:{onChange:function(t,a){}}})},"3"),(0,e.jsx)(Q,{tab:"\u6309\u5C0F\u7C7B\u79EF\u5206",children:(0,e.jsx)(P.ZP,{actionRef:Z,rowKey:"id",search:{labelWidth:120},toolBarRender:function(){return[(0,e.jsxs)(S.Z,{type:"primary",onClick:function(){fe(!0)},children:[(0,e.jsx)(_.Z,{})," \u6DFB\u52A0"]},"primary")]},params:{RuleType:3},request:function(){var l=(0,x.Z)((0,i.Z)().mark(function t(a){var r,o;return(0,i.Z)().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:return r=[],o=0,p.next=4,O(a).then(function(b){r=b.data.data,o=b.data.total});case 4:return p.abrupt("return",{data:r,success:!0,total:o});case 5:case"end":return p.stop()}},t)}));return function(t){return l.apply(this,arguments)}}(),modalVisible:$e,columns:be,rowSelection:{onChange:function(t,a){}}})},"4"),(0,e.jsx)(Q,{tab:"\u6309\u6D88\u8D39\u6B21\u6570\u79EF\u5206",children:(0,e.jsx)(P.ZP,{actionRef:Z,rowKey:"id",search:{labelWidth:120},toolBarRender:function(){return[(0,e.jsxs)(S.Z,{type:"primary",onClick:function(){ye(!0)},children:[(0,e.jsx)(_.Z,{})," \u6DFB\u52A0"]},"primary")]},params:{RuleType:4},request:function(){var l=(0,x.Z)((0,i.Z)().mark(function t(a){var r,o;return(0,i.Z)().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:return r=[],o=0,p.next=4,O(a).then(function(b){r=b.data.data,o=b.data.total});case 4:return p.abrupt("return",{data:r,success:!0,total:o});case 5:case"end":return p.stop()}},t)}));return function(t){return l.apply(this,arguments)}}(),modalVisible:ze,columns:Ve,rowSelection:{onChange:function(t,a){}}})},"5"),(0,e.jsx)(Q,{tab:"\u6309\u6D88\u8D39\u4EBA\u6570\u79EF\u5206",children:(0,e.jsx)(P.ZP,{actionRef:Z,rowKey:"id",search:{labelWidth:120},toolBarRender:function(){return[(0,e.jsxs)(S.Z,{type:"primary",onClick:function(){ve(!0)},children:[(0,e.jsx)(_.Z,{})," \u6DFB\u52A0"]},"primary")]},params:{RuleType:5},request:function(){var l=(0,x.Z)((0,i.Z)().mark(function t(a){var r,o;return(0,i.Z)().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:return r=[],o=0,p.next=4,O(a).then(function(b){r=b.data.data,o=b.data.total});case 4:return p.abrupt("return",{data:r,success:!0,total:o});case 5:case"end":return p.stop()}},t)}));return function(t){return l.apply(this,arguments)}}(),modalVisible:Qe,columns:ke,rowSelection:{onChange:function(t,a){}}})},"6"),(0,e.jsx)(Q,{tab:"\u6309\u51FA\u54C1\u6570\u91CF\u79EF\u5206",children:(0,e.jsx)(P.ZP,{actionRef:Z,rowKey:"id",search:{labelWidth:120},toolBarRender:function(){return[(0,e.jsxs)(S.Z,{type:"primary",onClick:function(){Ze(!0)},children:[(0,e.jsx)(_.Z,{})," \u6DFB\u52A0"]},"primary")]},params:{RuleType:6},request:function(){var l=(0,x.Z)((0,i.Z)().mark(function t(a){var r,o;return(0,i.Z)().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:return r=[],o=0,p.next=4,O(a).then(function(b){r=b.data.data,o=b.data.total});case 4:return p.abrupt("return",{data:r,success:!0,total:o});case 5:case"end":return p.stop()}},t)}));return function(t){return l.apply(this,arguments)}}(),modalVisible:qe,columns:je,rowSelection:{onChange:function(t,a){}}})},"7")]})},Tt=Bt}}]); +(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[1100,1322],{64760:function(Le,q,i){"use strict";var V=i(71194),S=i(50146),s=i(62350),x=i(24565),m=i(39428),ee=i(3182),D=i(2824),we=i(47673),te=i(4107),E=i(67294),y=i(16894),P=i(78009),W=i(79146),I=i(85893),z=function(F){var M=(0,E.useRef)(),g=te.Z.TextArea,ie=(0,E.useState)(!1),ge=(0,D.Z)(ie,2),ce=ge[0],ae=ge[1],J="",_e=(0,E.useState)(),ne=(0,D.Z)(_e,2),O=ne[0],oe=ne[1],Re=function(){var U=(0,ee.Z)((0,m.Z)().mark(function R(T){return(0,m.Z)().wrap(function(w){for(;;)switch(w.prev=w.next){case 0:if(F.couponRecord.showType!=1){w.next=5;break}return w.next=3,(0,W.m$)(JSON.stringify({Id:O.id,Status:O.status==1?0:1,Remark:J})).then(function(K){ae(!1),M.current.reload()});case 3:w.next=7;break;case 5:return w.next=7,(0,W.A8)(JSON.stringify({Id:O.id,Status:O.status==1?0:1,Remark:J})).then(function(K){ae(!1),M.current.reload()});case 7:case"end":return w.stop()}},R)}));return function(T){return U.apply(this,arguments)}}(),de=function(){ae(!1)},Ee=function(R){J=R.target.value},he=[{title:"\u4E3B\u952E",dataIndex:"id",tip:"\u89C4\u5219\u540D\u79F0\u662F\u552F\u4E00\u7684 key",hideInSearch:!0,hideInTable:!0},{title:"\u9002\u7528\u8303\u56F4",dataIndex:"supplier",hideInSearch:!0,valueType:"textarea"},{title:"\u72B6\u6001",key:"status",dataIndex:"status",valueEnum:{1:{text:"\u7981\u7528",status:"Warning"},0:{text:"\u542F\u7528",status:"Success"}}},{title:"\u5907\u6CE8",dataIndex:"remark",hideInSearch:!0,valueType:"textarea"},{title:"\u53D1\u653E\u65F6\u95F4",key:"sendTime",hideInSearch:!0,dataIndex:"sendTime"},{title:"\u64CD\u4F5C",dateIndex:"option",valueType:"option",render:function(R,T){return(0,I.jsx)(x.Z,{type:"primary",title:"\u786E\u8BA4\u542F\u7528\u5417\uFF1F",okText:"\u662F",cancelText:"\u5426",onConfirm:(0,ee.Z)((0,m.Z)().mark(function B(){return(0,m.Z)().wrap(function(K){for(;;)switch(K.prev=K.next){case 0:g.value=T.remark,oe(T),ae(!0);case 3:case"end":return K.stop()}},B)})),onCancel:function(){},children:(0,I.jsx)("a",{href:"#",children:T.status==0?"\u7981\u7528":"\u542F\u7528"})},"primary")}}];return(0,I.jsxs)(S.Z,{footer:null,destroyOnClose:!0,visible:F.shows,width:1100,onCancel:function(){F.onCancel()},children:[(0,I.jsx)(P.ZP,{headerTitle:"",header:{title:"\u53D1\u653E\u8BB0\u5F55",breadcrumb:{}},children:(0,I.jsx)(y.ZP,{actionRef:M,rowKey:"id",options:!1,search:{labelWidth:120},pagination:{pageSize:5},columns:he,request:function(){var U=(0,ee.Z)((0,m.Z)().mark(function R(T){var B,w;return(0,m.Z)().wrap(function($){for(;;)switch($.prev=$.next){case 0:if(B=[],w=0,T.couponId=F.couponRecord.couponId,T.batchNo=F.couponRecord.batchNo,F.couponRecord.showType!=1){$.next=9;break}return $.next=7,(0,W.m2)(T).then(function(N){B=N.data.data,w=N.data.total});case 7:$.next=11;break;case 9:return $.next=11,(0,W.tP)(T).then(function(N){B=N.data.data,w=N.data.total});case 11:return $.abrupt("return",{data:B,success:!0,total:w});case 12:case"end":return $.stop()}},R)}));return function(R){return U.apply(this,arguments)}}()})}),(0,I.jsx)(S.Z,{title:"\u5907\u6CE8",visible:ce,onOk:Re,onCancel:de,children:(0,I.jsx)(g,{onChange:function(R){return Ee(R)},rows:4})})]})};q.Z=z},79146:function(Le,q,i){"use strict";i.d(q,{hz:function(){return x},GA:function(){return ee},m$:function(){return we},m2:function(){return te},tP:function(){return E},A8:function(){return y},aO:function(){return P},fC:function(){return I}});var V=i(39428),S=i(3182),s=i(48971);function x(v){return m.apply(this,arguments)}function m(){return m=(0,S.Z)((0,V.Z)().mark(function v(F){return(0,V.Z)().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:return g.abrupt("return",(0,s.WY)("/kitchen/api/coupon/couponrecordpage",{method:"POST",data:F}));case 1:case"end":return g.stop()}},v)})),m.apply(this,arguments)}function ee(v){return D.apply(this,arguments)}function D(){return D=(0,S.Z)((0,V.Z)().mark(function v(F){return(0,V.Z)().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:return g.abrupt("return",(0,s.WY)("/kitchen/api/coupon/customerpage",{method:"POST",data:F}));case 1:case"end":return g.stop()}},v)})),D.apply(this,arguments)}function we(v){return(0,s.WY)("/kitchen/api/coupon/recallcoupon",{method:"post",data:v})}function te(v){return(0,s.WY)("/kitchen/api/coupon/couponrecordbyid",{method:"post",data:v})}function E(v){return(0,s.WY)("/kitchen/api/coupon/couponrecordgoods",{method:"post",data:v})}function y(v){return(0,s.WY)("/kitchen/api/coupon/recallcoupongoods",{method:"post",data:v})}function P(v){return W.apply(this,arguments)}function W(){return W=(0,S.Z)((0,V.Z)().mark(function v(F){return(0,V.Z)().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:return g.abrupt("return",(0,s.WY)("/kitchen/api/coupon/receivecouponbyinput",{method:"PUT",data:F}));case 1:case"end":return g.stop()}},v)})),W.apply(this,arguments)}function I(v){return z.apply(this,arguments)}function z(){return z=(0,S.Z)((0,V.Z)().mark(function v(F){return(0,V.Z)().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:return g.abrupt("return",(0,s.WY)("/kitchen\u200B/api\u200B/select\u200B/customerinfo\u200B",{method:"Post",data:F}));case 1:case"end":return g.stop()}},v)})),z.apply(this,arguments)}},59458:function(Le,q,i){"use strict";i.r(q),i.d(q,{default:function(){return Bt}});var V=i(57663),S=i(71577),s=i(39428),x=i(3182),m=i(2824),ee=i(34792),D=i(48086),we=i(18106),te=i(36166),E=i(49101),y=i(67294),P=i(16894),W=i(30381),I=i.n(W),z=i(11849),v=i(48971);function F(c){return M.apply(this,arguments)}function M(){return M=_asyncToGenerator(_regeneratorRuntime().mark(function c(n){return _regeneratorRuntime().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.abrupt("return",request("/kitchen/api/integral/add",{method:"POST",data:n}));case 1:case"end":return u.stop()}},c)})),M.apply(this,arguments)}function g(c){return ie.apply(this,arguments)}function ie(){return ie=_asyncToGenerator(_regeneratorRuntime().mark(function c(n){return _regeneratorRuntime().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.abrupt("return",request("/kitchen/api/integral/edit",{method:"POST",data:n}));case 1:case"end":return u.stop()}},c)})),ie.apply(this,arguments)}function ge(c){return ce.apply(this,arguments)}function ce(){return ce=(0,x.Z)((0,s.Z)().mark(function c(n){return(0,s.Z)().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.abrupt("return",(0,v.WY)("/kitchen/api/integral/getpage",{method:"POST",data:n}));case 1:case"end":return u.stop()}},c)})),ce.apply(this,arguments)}function ae(c){return J.apply(this,arguments)}function J(){return J=(0,x.Z)((0,s.Z)().mark(function c(n){return(0,s.Z)().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.abrupt("return",(0,v.WY)("/kitchen/api/integraltype/add",{method:"POST",data:n}));case 1:case"end":return u.stop()}},c)})),J.apply(this,arguments)}function _e(c){return ne.apply(this,arguments)}function ne(){return ne=(0,x.Z)((0,s.Z)().mark(function c(n){return(0,s.Z)().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.abrupt("return",(0,v.WY)("/kitchen/api/integraltype/edit",{method:"POST",data:n}));case 1:case"end":return u.stop()}},c)})),ne.apply(this,arguments)}function O(c){return oe.apply(this,arguments)}function oe(){return oe=(0,x.Z)((0,s.Z)().mark(function c(n){return(0,s.Z)().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.abrupt("return",(0,v.WY)("/kitchen/api/integraltype/getpage",{method:"POST",data:n}));case 1:case"end":return u.stop()}},c)})),oe.apply(this,arguments)}function Re(c){return de.apply(this,arguments)}function de(){return de=(0,x.Z)((0,s.Z)().mark(function c(n){return(0,s.Z)().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.abrupt("return",(0,v.WY)("/kitchen/api/integralrule/add",{method:"POST",data:n}));case 1:case"end":return u.stop()}},c)})),de.apply(this,arguments)}function Ee(c){return he.apply(this,arguments)}function he(){return he=(0,x.Z)((0,s.Z)().mark(function c(n){return(0,s.Z)().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.abrupt("return",(0,v.WY)("/kitchen/api/integralrule/edit",{method:"POST",data:n}));case 1:case"end":return u.stop()}},c)})),he.apply(this,arguments)}function U(c){return R.apply(this,arguments)}function R(){return R=_asyncToGenerator(_regeneratorRuntime().mark(function c(n){return _regeneratorRuntime().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.abrupt("return",request("/kitchen/api/integralrule/edit",{method:"POST",data:n}));case 1:case"end":return u.stop()}},c)})),R.apply(this,arguments)}function T(c){return B.apply(this,arguments)}function B(){return B=(0,x.Z)((0,s.Z)().mark(function c(n){return(0,s.Z)().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.abrupt("return",(0,v.WY)("/kitchen/api/integralrule/getpage",{method:"POST",data:n}));case 1:case"end":return u.stop()}},c)})),B.apply(this,arguments)}function w(c){return K.apply(this,arguments)}function K(){return K=(0,x.Z)((0,s.Z)().mark(function c(n){return(0,s.Z)().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.abrupt("return",(0,v.WY)("/kitchen/api/goods-type/goods-types",{method:"POST",data:n}));case 1:case"end":return u.stop()}},c)})),K.apply(this,arguments)}function $(c){return N.apply(this,arguments)}function N(){return N=(0,x.Z)((0,s.Z)().mark(function c(n){return(0,s.Z)().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.abrupt("return",(0,v.WY)("/kitchen/api/goods-type/big-goods-types",{method:"POST",data:n}));case 1:case"end":return u.stop()}},c)})),N.apply(this,arguments)}function Ca(c){return Te.apply(this,arguments)}function Te(){return Te=_asyncToGenerator(_regeneratorRuntime().mark(function c(n){return _regeneratorRuntime().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.abrupt("return",request("/kitchen/api/Device/StoreDeviceTree",{data:_objectSpread({},n)}));case 1:case"end":return u.stop()}},c)})),Te.apply(this,arguments)}function St(c){return Be.apply(this,arguments)}function Be(){return Be=(0,x.Z)((0,s.Z)().mark(function c(n){return(0,s.Z)().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.abrupt("return",(0,v.WY)("/kitchen/api/Device/StoreList",{data:(0,z.Z)({},n)}));case 1:case"end":return u.stop()}},c)})),Be.apply(this,arguments)}function ga(){return Ae.apply(this,arguments)}function Ae(){return Ae=_asyncToGenerator(_regeneratorRuntime().mark(function c(){return _regeneratorRuntime().wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return h.abrupt("return",request("/kitchen/api/integralrule/addinteg",{}));case 1:case"end":return h.stop()}},c)})),Ae.apply(this,arguments)}function It(){return Pe.apply(this,arguments)}function Pe(){return Pe=(0,x.Z)((0,s.Z)().mark(function c(){return(0,s.Z)().wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return h.abrupt("return",(0,v.WY)("/kitchen/api/integralrule/getall",{}));case 1:case"end":return h.stop()}},c)})),Pe.apply(this,arguments)}function ba(c){var n="";switch(c){case 1:n="priceIds";break;case 2:n="bigIds";break;case 3:n="smallIds";break;case 4:n="countIds";break;case 5:n="personsIds";break;case 6:n="numberIds";break;default:break}return n}function ka(c){var n="\u672A\u5B9A\u4E49\u89C4\u5219";switch(c){case 1:n="\u6309\u6D88\u8D39\u91D1\u989D\u79EF\u5206\u89C4\u5219";break;case 2:n="\u6309\u5927\u7C7B\u79EF\u5206\u89C4\u5219";break;case 3:n="\u6309\u5C0F\u7C7B\u79EF\u5206\u89C4\u5219";break;case 4:n="\u6309\u6D88\u8D39\u6B21\u6570\u79EF\u5206\u89C4\u5219";break;case 5:n="\u6309\u6D88\u8D39\u4EBA\u6570\u79EF\u5206\u89C4\u5219";break;case 6:n="\u6309\u51FA\u54C1\u6570\u91CF\u79EF\u5206\u89C4\u5219";break;default:break}return n}var ja=i(71194),Ue=i(50146),Da=i(48736),Me=i(27049),Sa=i(14965),Oe=i(91774),Ia=i(17462),Ne=i(76772),Fa=i(43358),Y=i(34041),wa=i(77576),L=i(12028),_a=i(9715),o=i(55843),Ra=i(47673),k=i(4107),Ea=i(96486),Ta=i(80230),e=i(85893),Ft=k.Z.TextArea,wt=function(n){var h=(0,y.useState)([]),u=(0,m.Z)(h,2),pe=u[0],be=u[1],Ve=(0,y.useState)([]),ke=(0,m.Z)(Ve,2),je=ke[0],X=ke[1],G=[{name:"Monday",value:1,label:"\u5468\u4E00"},{name:"Tuesday",value:2,label:"\u5468\u4E8C"},{name:"Wednesday",value:3,label:"\u5468\u4E09"},{name:"Thursday",value:4,label:"\u5468\u56DB"},{name:"Friday",value:5,label:"\u5468\u4E94"},{name:"Saturday",value:6,label:"\u5468\u516D"},{name:"Sunday",value:0,label:"\u5468\u65E5"}],We=[{name:"none",value:-1,label:"\u4E0D\u79EF\u5206"},{name:"common",value:0,label:"\u79EF\u5206\u4F18\u5148\u65B9\u6848"},{name:"price",value:1,label:"\u6309\u91D1\u989D\u79EF\u5206"},{name:"big",value:2,label:"\u6309\u5927\u7C7B\u79EF\u5206"},{name:"small",value:3,label:"\u6309\u5C0F\u7C7B\u79EF\u5206"},{name:"count",value:4,label:"\u6309\u6D88\u8D39\u6B21\u6570\u79EF\u5206"},{name:"persons",value:5,label:"\u6309\u6D88\u8D39\u4EBA\u6570\u79EF\u5206"},{name:"number",value:6,label:"\u6309\u51FA\u54C1\u6570\u91CF\u79EF\u5206"}];if(n.Data!=null&&n.Data.allChild&&pe.length==0&&be(n.Data.allChild),je.length==0&&(n.values.priority>0&&X((n.Data.allChild||[]).find(function(C){return C.ruleType==n.values.priority}).child),n.values.priority==0)){var _=[];(n.Data.allChild||[]).map(function(C,j){(C.child||[]).map(function(me,ue){_.push(me)})}),X(_)}function De(C){var j="\u672A\u5B9A\u4E49\u89C4\u5219";switch(C){case 1:j="\u6D88\u8D39\u91D1\u989D";break;case 2:j="\u6309\u5927\u7C7B";break;case 3:j="\u6309\u5C0F\u7C7B";break;case 4:j="\u6D88\u8D39\u6B21\u6570";break;case 5:j="\u6D88\u8D39\u4EBA\u6570";break;case 6:j="\u51FA\u54C1\u6570\u91CF";break;default:break}return j}var Ke=o.Z.useForm(),Se=(0,m.Z)(Ke,1),Ie=Se[0];return(0,e.jsx)(Ue.Z,{width:"80%",visible:n.createModalVisible,bodyStyle:{padding:"32px 40px 48px"},footer:null,onCancel:function(){n.onCancel(),be([])},destroyOnClose:!0,children:(0,e.jsxs)(o.Z,{layout:"Vertical",labelCol:{span:6},initialValues:n.values,onFinish:n.onFinish,onCancel:n.onCancel,form:Ie,children:[(0,e.jsxs)("div",{style:{float:"left"},children:[(0,e.jsx)(o.Z.Item,{name:"id",hidden:!0,children:(0,e.jsx)(k.Z,{})}),(0,e.jsx)(o.Z.Item,{label:"\u89C4\u5219\u540D\u79F0",name:"name",children:(0,e.jsx)(k.Z,{})}),(0,e.jsx)(o.Z.Item,{label:"\u7279\u4EF7\u5546\u54C1\u53C2\u4E0E\u79EF\u5206",name:"isSpecial",valuePropName:"checked",children:(0,e.jsx)(L.Z,{checkedChildren:"\u5F00\u542F",unCheckedChildren:"\u5173\u95ED"})}),(0,e.jsx)(o.Z.Item,{label:"\u79EF\u5206\u4F18\u5148\u65B9\u6848\u8BBE\u7F6E",name:"priority",initialValue:n.values.priority||[],title:"\u9ED8\u8BA4\u6309\u5C0F\u7C7B\uFF0C\u5927\u7C7B\uFF0C\u6B21\u6570\uFF0C\u4EBA\u6570\uFF0C\u6D88\u8D39\u91D1\u989D\uFF0C\u53D6\u552F\u4E00\u4E00\u79CD",children:(0,e.jsx)(Y.Z,{style:{width:"250px"},onChange:function(j,me){debugger;if(j<=0)if(j==0){var ue=[];(pe||[]).map(function(H,Ge){(H.child||[]).map(function(Fe,$e){ue.push(Fe)})}),X(ue)}else X([]);else X((pe||[]).find(function(H){return H.typeId==j}).child)},children:(We||[]).map(function(C,j){return(0,e.jsx)(Y.Z.Option,{index:j,value:C.value,children:C.label},C.name)})})}),(0,e.jsx)(Ne.Z,{message:"\u79EF\u5206\u4F18\u5148\u65B9\u6848: \u9ED8\u8BA4\u6309\u5C0F\u7C7B\uFF0C\u5927\u7C7B\uFF0C\u6B21\u6570\uFF0C\u4EBA\u6570\uFF0C\u6D88\u8D39\u91D1\u989D\uFF0C\u53D6\u552F\u4E00\u4E00\u79CD",type:"success"})]}),(0,e.jsxs)("div",{style:{float:"right",width:"58%"},children:[(0,e.jsx)(o.Z.Item,{label:"\u6D3B\u52A8\u8D77\u6B62\u65F6\u95F4",initialValues:"",name:"effectiveDate",children:(0,e.jsx)(Oe.Z.RangePicker,{showTime:!0,style:{width:"70%"}})}),(0,e.jsx)(o.Z.Item,{label:"\u79EF\u5206\u5151\u6362\u50A8\u503C",name:"isOpenIntegToPrice",valuePropName:"checked",children:(0,e.jsx)(L.Z,{checkedChildren:"\u5F00\u542F",unCheckedChildren:"\u5173\u95ED"})}),(0,e.jsxs)(o.Z.Item,{label:"\u79EF\u5206\u5151\u6362\u50A8\u503C\u6BD4\u4F8B",children:[(0,e.jsx)(o.Z.Item,{style:{display:"inline-block"},name:"integToPriceRatioHead",children:(0,e.jsx)(k.Z,{className:"site-input-right",style:{width:150,textAlign:"center"},placeholder:"\u79EF\u5206",addonAfter:"\u5151\u6362"})}),(0,e.jsx)(o.Z.Item,{style:{display:"inline-block"},name:"integToPriceRatioValue",children:(0,e.jsx)(k.Z,{className:"site-input-right",style:{width:100,textAlign:"center"},placeholder:"\u50A8\u503C"})})]}),(0,e.jsx)(o.Z.Item,{label:"\u79EF\u5206\u5151\u6362\u5546\u54C1",name:"isOpenIntegToCommodity",valuePropName:"checked",children:(0,e.jsx)(L.Z,{checkedChildren:"\u5F00\u542F",unCheckedChildren:"\u5173\u95ED"})}),(0,e.jsx)(o.Z.Item,{label:"\u79EF\u5206\u65B9\u6848\u4F7F\u7528\u7C7B\u578B\u8BBE\u7F6E",name:"ruletypelist",initialValue:n.values.ruletypelist||[],children:(0,e.jsx)(Y.Z,{mode:"multiple",style:{width:"90%"},allowClear:!0,children:(je||[]).map(function(C,j){return(0,e.jsxs)(Y.Z.Option,{index:j,value:C.id,children:[De(C.ruleType),"-",C.ruleRemark]},C.id)})})}),(0,e.jsx)(Ne.Z,{message:"\u9009\u62E9\u65B9\u6848\u7C7B\u578B\u540E,\u5C06\u4F1A\u4F7F\u7528\u5DF2\u9009\u62E9\u7684\u65B9\u6848\u7C7B\u578B\u8FDB\u884C\u79EF\u5206\u8BA1\u7B97",type:"success"}),(0,e.jsx)("br",{})]}),(0,e.jsx)(Me.Z,{}),(0,e.jsx)(o.Z.Item,{name:"ruleRemark",label:"\u89C4\u5219\u8BF4\u660E",children:(0,e.jsx)(Ft,{})}),(0,e.jsx)(Me.Z,{}),(0,e.jsxs)(o.Z.Item,{label:"\u4F1A\u5458\u751F\u65E5\u5F53\u5929\u79EF\u5206\u500D\u6570",children:[(0,e.jsx)(o.Z.Item,{name:"birthdayMultiple",style:{display:"inline-block"},children:(0,e.jsx)(k.Z,{addonAfter:"\u500D",style:{width:100}})}),"\xA0\xA0\xA0",(0,e.jsx)(o.Z.Item,{style:{display:"inline-block"},name:"birthdayMultipleOn",valuePropName:"checked",children:(0,e.jsx)(L.Z,{checkedChildren:"\u5F00\u542F",unCheckedChildren:"\u5173\u95ED"})})]}),(0,e.jsxs)(o.Z.Item,{label:"\u4F1A\u5458\u751F\u65E5\u5F53\u6708\u79EF\u5206\u500D\u6570",children:[(0,e.jsx)(o.Z.Item,{name:"birthmonthMultiple",style:{display:"inline-block"},children:(0,e.jsx)(k.Z,{addonAfter:"\u500D",style:{width:100}})}),"\xA0\xA0\xA0",(0,e.jsx)(o.Z.Item,{style:{display:"inline-block"},name:"birthmonthMultipleOn",valuePropName:"checked",children:(0,e.jsx)(L.Z,{checkedChildren:"\u5F00\u542F",unCheckedChildren:"\u5173\u95ED"})})]}),(0,e.jsxs)(o.Z.Item,{label:"\u6BCF\u6708\u56FA\u5B9A\u65E5",children:[(0,e.jsx)(o.Z.Item,{name:"monthDay",style:{display:"inline-block"},children:(0,e.jsx)(k.Z,{className:"site-input-right",name:"monthDay",style:{width:160},addonBefore:"\u6BCF\u6708",addonAfter:"\u65E5"})}),(0,e.jsx)(o.Z.Item,{style:{display:"inline-block"},name:"multipleMonthDay",children:(0,e.jsx)(k.Z,{addonAfter:"\u500D",style:{width:100}})}),"\xA0\xA0\xA0",(0,e.jsx)(o.Z.Item,{style:{display:"inline-block"},name:"multipleMonthDayOn",valuePropName:"checked",children:(0,e.jsx)(L.Z,{checkedChildren:"\u5F00\u542F",unCheckedChildren:"\u5173\u95ED"})})]}),(0,e.jsxs)(o.Z.Item,{label:"\u6BCF\u5468\u56FA\u5B9A\u65E5",children:[(0,e.jsx)(o.Z.Item,{name:"weekList",style:{display:"inline-block"},initialValue:n.values.weekList||[],children:(0,e.jsx)(Y.Z,{mode:"multiple",style:{width:"300px"},children:G.map(function(C,j){return(0,e.jsx)(Y.Z.Option,{index:j,value:C.value,children:C.label},C.name)})})}),(0,e.jsx)(o.Z.Item,{name:"weekMultiple",style:{display:"inline-block"},children:(0,e.jsx)(k.Z,{className:"site-input-right",style:{width:100},addonAfter:"\u500D",placeholder:"\u79EF\u5206\u500D\u6570"})}),"\xA0\xA0\xA0",(0,e.jsx)(o.Z.Item,{style:{display:"inline-block"},name:"weekMultipleOn",valuePropName:"checked",children:(0,e.jsx)(L.Z,{checkedChildren:"\u5F00\u542F",unCheckedChildren:"\u5173\u95ED"})})]}),(0,e.jsxs)(o.Z.Item,{label:"\u56FA\u5B9A\u65F6\u95F4\u6BB5\u79EF\u5206\u500D\u6570",children:[(0,e.jsx)(o.Z.Item,{name:"multipleDate",style:{display:"inline-block"},children:(0,e.jsx)(Oe.Z.RangePicker,{showTime:!0})}),(0,e.jsx)(o.Z.Item,{name:"dateMultiple",style:{display:"inline-block"},children:(0,e.jsx)(k.Z,{className:"site-input-right",style:{width:100},addonAfter:"\u500D",placeholder:"\u79EF\u5206\u500D\u6570"})}),"\xA0\xA0\xA0",(0,e.jsx)(o.Z.Item,{style:{display:"inline-block"},name:"dateMultipleOn",valuePropName:"checked",children:(0,e.jsx)(L.Z,{checkedChildren:"\u5F00\u542F",unCheckedChildren:"\u5173\u95ED"})})]}),(0,e.jsxs)(o.Z.Item,{label:"\u56FA\u5B9A\u65E5\u671F\u79EF\u5206\u500D\u6570",children:[(0,e.jsx)(o.Z.Item,{name:"fixedDay",style:{display:"inline-block"},children:(0,e.jsx)(Oe.Z,{showTime:!0})}),(0,e.jsx)(o.Z.Item,{name:"multipleFixedDay",style:{display:"inline-block"},children:(0,e.jsx)(k.Z,{addonAfter:"\u500D",style:{width:100}})}),"\xA0\xA0\xA0",(0,e.jsx)(o.Z.Item,{style:{display:"inline-block"},name:"multiplefixedDayOn",valuePropName:"checked",children:(0,e.jsx)(L.Z,{checkedChildren:"\u5F00\u542F",unCheckedChildren:"\u5173\u95ED"})})]}),(0,e.jsx)(Me.Z,{}),(0,e.jsx)(S.Z,{type:"primary",htmlType:"submit",children:"\u4FDD\u5B58"})]})})},_t=wt,Ba=i(64760),Rt=k.Z.TextArea,Et=function(n){return(0,e.jsx)(Ue.Z,{width:840,visible:n.createModalVisible,bodyStyle:{padding:"32px 40px 48px"},footer:null,onCancel:function(){n.onCancel()},destroyOnClose:!0,children:(0,e.jsxs)(o.Z,{layout:"Vertical",labelCol:{span:6},initialValues:n.values,onFinish:n.onFinish,onCancel:n.onCancel,children:[(0,e.jsx)(o.Z.Item,{name:"id",hidden:!0,children:(0,e.jsx)(k.Z,{})}),(0,e.jsx)(o.Z.Item,{label:"\u89C4\u5219\u7C7B\u578B",name:"ruleType",initialValue:n.Data.ruleType,hidden:!0,children:(0,e.jsx)(k.Z,{})}),(0,e.jsx)(o.Z.Item,{label:"\u6D88\u8D39\u91D1\u989D",name:"thresholdPriceKey",hidden:n.Data.type!="price",children:(0,e.jsx)(k.Z,{})}),(0,e.jsx)(o.Z.Item,{label:"\u79EF\u5206\u53D6\u6574",name:"OpenUnFloor",initialValue:n.values.isUnFloor==1,hidden:n.Data.type!="price",valuePropName:"checked",children:(0,e.jsx)(L.Z,{})}),(0,e.jsx)(o.Z.Item,{label:"\u51FA\u54C1\u6570\u91CF",name:"thresholdNumberKey",hidden:n.Data.type!="number",children:(0,e.jsx)(k.Z,{})}),(0,e.jsx)(o.Z.Item,{label:"\u7528\u9910\u4EBA\u6570",name:"thresholdPersonsKey",hidden:n.Data.type!="persons",children:(0,e.jsx)(k.Z,{})}),(0,e.jsx)(o.Z.Item,{label:"\u6D88\u8D39\u6B21\u6570",name:"thresholdCountKey",hidden:n.Data.type!="count",children:(0,e.jsx)(k.Z,{})}),(0,e.jsx)(o.Z.Item,{label:"\u5927\u7C7B",name:"thresholdBigKey",initialValue:n.values.thresholdBigKey,hidden:n.Data.type!="big",children:(0,e.jsx)(Y.Z,{children:n.Data.Big.map(function(h,u){return(0,e.jsx)(Y.Z.Option,{typekey:h.typeKey,index:u,value:h.id,children:h.name},h.id)})})}),(0,e.jsx)(o.Z.Item,{label:"\u5C0F\u7C7B",name:"thresholdSmallKey",hidden:n.Data.type!="small",children:(0,e.jsx)(Y.Z,{children:n.Data.Small.map(function(h,u){return(0,e.jsx)(Y.Z.Option,{typekey:h.typeKey,index:u,value:h.id,children:h.goodsType_Name},h.id)})})}),(0,e.jsx)(o.Z.Item,{label:"\u79EF\u5206",name:"rulethresholdValue",children:(0,e.jsx)(k.Z,{})}),(0,e.jsx)(o.Z.Item,{label:"\u751F\u6548\u95E8\u69DB",name:"thresholds",children:(0,e.jsx)(k.Z,{})}),(0,e.jsx)(o.Z.Item,{label:"\u89C4\u5219\u63CF\u8FF0",name:"ruleRemark",children:(0,e.jsx)(Rt,{})}),(0,e.jsx)(o.Z.Item,{children:(0,e.jsx)(S.Z,{type:"primary",htmlType:"submit",children:"\u4FDD\u5B58"})})]})})},re=Et,Q=te.Z.TabPane,Aa=null,Tt=function(){function n(l){var t="\u672A\u5B9A\u4E49\u89C4\u5219";switch(l){case 1:t="\u6309\u6D88\u8D39\u91D1\u989D\u79EF\u5206\u89C4\u5219";break;case 2:t="\u6309\u5927\u7C7B\u79EF\u5206\u89C4\u5219";break;case 3:t="\u6309\u5C0F\u7C7B\u79EF\u5206\u89C4\u5219";break;case 4:t="\u6309\u6D88\u8D39\u6B21\u6570\u79EF\u5206\u89C4\u5219";break;case 5:t="\u6309\u6D88\u8D39\u4EBA\u6570\u79EF\u5206\u89C4\u5219";break;case 6:t="\u6309\u51FA\u54C1\u6570\u91CF\u79EF\u5206\u89C4\u5219";break;default:break}return t}var h={price:1,big:2,small:3,count:4,persons:5,number:6},u=[{title:"\u89C4\u5219id",dataIndex:"id",tip:"\u89C4\u5219\u540D\u79F0\u662F\u552F\u4E00\u7684 key",hideInSearch:!0,hideInTable:!0},{title:"\u91D1\u989D",dataIndex:"thresholdPriceKey"},{title:"\u79EF\u5206",dataIndex:"rulethresholdValue"},{title:"\u79EF\u5206\u53D6\u6574",dataIndex:"isUnFloor",render:function(t,a){return a.isUnFloor==1?"\u5DF2\u5F00\u542F":"\u672A\u5F00\u542F"}},{title:"\u9608\u503C",dataIndex:"thresholds"},{title:"\u89C4\u5219\u63CF\u8FF0",dataIndex:"ruleRemark"},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(t,a){return[(0,e.jsxs)("a",{onClick:function(){C(!0),ut(a)},children:[" ","\u4FEE\u6539"]},"primary"),(0,e.jsxs)("a",{onClick:function(){a.status=a.status==0?1:0,_(a)},children:[" ",a.status==0?"\u505C\u7528":"\u542F\u7528"]},"primary")]}}],pe=[{title:"\u89C4\u5219id",dataIndex:"id",tip:"\u89C4\u5219\u540D\u79F0\u662F\u552F\u4E00\u7684 key",hideInSearch:!0,hideInTable:!0},{title:"\u91D1\u989D",dataIndex:"thresholds"},{title:"\u79EF\u5206",dataIndex:"rulethresholdValue"},{title:"\u5927\u7C7B\u7F16\u7801",dataIndex:"thresholdBigKey"},{title:"\u89C4\u5219\u63CF\u8FF0",dataIndex:"ruleRemark"},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(t,a){return[(0,e.jsxs)("a",{onClick:function(){H(!0),st(a)},children:[" ","\u4FEE\u6539"]},"primary"),(0,e.jsxs)("a",{onClick:function(){a.status=a.status==0?1:0,_(a)},children:[" ",a.status==0?"\u505C\u7528":"\u542F\u7528"]},"primary")]}}],be=[{title:"\u89C4\u5219id",dataIndex:"id",tip:"\u89C4\u5219\u540D\u79F0\u662F\u552F\u4E00\u7684 key",hideInSearch:!0,hideInTable:!0},{title:"\u91D1\u989D",dataIndex:"thresholds"},{title:"\u79EF\u5206",dataIndex:"rulethresholdValue"},{title:"\u5C0F\u7C7B\u7F16\u7801",dataIndex:"thresholdSmallKey"},{title:"\u89C4\u5219\u63CF\u8FF0",dataIndex:"ruleRemark"},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(t,a){return[(0,e.jsxs)("a",{onClick:function(){fe(!0),ct(a)},children:[" ","\u4FEE\u6539"]},"primary"),(0,e.jsxs)("a",{onClick:function(){a.status=a.status==0?1:0,_(a)},children:[" ",a.status==0?"\u505C\u7528":"\u542F\u7528"]},"primary")]}}],Ve=[{title:"\u89C4\u5219id",dataIndex:"id",tip:"\u89C4\u5219\u540D\u79F0\u662F\u552F\u4E00\u7684 key",hideInSearch:!0,hideInTable:!0},{title:"\u6B21\u6570",dataIndex:"thresholdCountKey"},{title:"\u79EF\u5206",dataIndex:"rulethresholdValue"},{title:"\u79EF\u5206\u9608\u503C",dataIndex:"thresholds"},{title:"\u89C4\u5219\u63CF\u8FF0",dataIndex:"ruleRemark"},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(t,a){return[(0,e.jsxs)("a",{onClick:function(){ye(!0),pt(a)},children:[" ","\u4FEE\u6539"]},"primary"),(0,e.jsxs)("a",{onClick:function(){a.status=a.status==0?1:0,_(a)},children:[" ",a.status==0?"\u505C\u7528":"\u542F\u7528"]},"primary")]}}],ke=[{title:"\u89C4\u5219id",dataIndex:"id",tip:"\u89C4\u5219\u540D\u79F0\u662F\u552F\u4E00\u7684 key",hideInSearch:!0,hideInTable:!0},{title:"\u4EBA\u6570",dataIndex:"thresholdPersonsKey"},{title:"\u79EF\u5206",dataIndex:"rulethresholdValue"},{title:"\u79EF\u5206\u9608\u503C",dataIndex:"thresholds"},{title:"\u89C4\u5219\u63CF\u8FF0",dataIndex:"ruleRemark"},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(t,a){return[(0,e.jsxs)("a",{onClick:function(){ve(!0),dt(a)},children:[" ","\u4FEE\u6539"]},"primary"),(0,e.jsxs)("a",{onClick:function(){a.status=a.status==0?1:0,_(a)},children:[" ",a.status==0?"\u505C\u7528":"\u542F\u7528"]},"primary")]}}],je=[{title:"\u89C4\u5219id",dataIndex:"id",tip:"\u89C4\u5219\u540D\u79F0\u662F\u552F\u4E00\u7684 key",hideInSearch:!0,hideInTable:!0},{title:"\u6570\u91CF",dataIndex:"thresholdNumberKey"},{title:"\u79EF\u5206",dataIndex:"rulethresholdValue"},{title:"\u79EF\u5206\u9608\u503C",dataIndex:"thresholds"},{title:"\u89C4\u5219\u63CF\u8FF0",dataIndex:"ruleRemark"},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(t,a){return[(0,e.jsxs)("a",{onClick:function(){Ze(!0),setnumberCurrentRow(a)},children:[" ","\u4FEE\u6539"]},"primary"),(0,e.jsxs)("a",{onClick:function(){a.status=a.status==0?1:0,_(a)},children:[" ",a.status==0?"\u505C\u7528":"\u542F\u7528"]},"primary")]}}],X=[{title:"\u89C4\u5219id",dataIndex:"id",tip:"\u89C4\u5219\u540D\u79F0\u662F\u552F\u4E00\u7684 key",hideInSearch:!0,hideInTable:!0},{title:"\u89C4\u5219\u540D\u79F0",dataIndex:"name"},{title:"\u89C4\u5219\u8BF4\u660E",dataIndex:"ruleRemark"},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(t,a){return[(0,e.jsxs)("a",{onClick:function(){xe(!0),Ye(a)},children:[" ","\u4FEE\u6539"]},"primary"),(0,e.jsxs)("a",{onClick:function(){a.status=a.status==0?1:0,De(a)},children:[" ",a.status==0?"\u505C\u7528":"\u542F\u7528"]},"primary")]}}];function G(l){try{return ae(l).then(function(t){t.data?(D.default.success("\u6DFB\u52A0\u6210\u529F"),Z.current.reload()):D.default.error("\u6DFB\u52A0\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01")}),!0}catch(t){return D.default.error("\u6DFB\u52A0\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),!1}}function We(l){try{return Re(l).then(function(t){t.data?(D.default.success("\u6DFB\u52A0\u6210\u529F"),Z.current.reload()):D.default.error("\u6DFB\u52A0\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01")}),!0}catch(t){return D.default.error("\u6DFB\u52A0\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),!1}}function _(l){try{return _e(l).then(function(t){t.data?D.default.success("\u914D\u7F6E\u6210\u529F"):D.default.error("\u914D\u7F6E\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),Z.current.reload()}),!0}catch(t){return D.default.error("\u914D\u7F6E\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),!1}}function De(l){try{return Ee(l).then(function(t){t.data?D.default.success("\u914D\u7F6E\u6210\u529F"):D.default.error("\u914D\u7F6E\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),Z.current.reload()}),!0}catch(t){return D.default.error("\u914D\u7F6E\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),!1}}var Ke=(0,y.useState)(),Se=(0,m.Z)(Ke,2),Ie=Se[0],C=Se[1],j=(0,y.useState)(),me=(0,m.Z)(j,2),ue=me[0],H=me[1],Ge=(0,y.useState)(),Fe=(0,m.Z)(Ge,2),$e=Fe[0],fe=Fe[1],At=(0,y.useState)(),He=(0,m.Z)(At,2),ze=He[0],ye=He[1],Pt=(0,y.useState)(),Je=(0,m.Z)(Pt,2),Qe=Je[0],ve=Je[1],Mt=(0,y.useState)(),Xe=(0,m.Z)(Mt,2),qe=Xe[0],Ze=Xe[1],Ot=(0,y.useState)(),et=(0,m.Z)(Ot,2),tt=et[0],xe=et[1],Vt=(0,y.useState)([]),at=(0,m.Z)(Vt,2),le=at[0],Wt=at[1],Kt=(0,y.useState)([]),nt=(0,m.Z)(Kt,2),se=nt[0],$t=nt[1],Yt=(0,y.useState)(),rt=(0,m.Z)(Yt,2),Lt=rt[0],ut=rt[1],Ut=(0,y.useState)(),lt=(0,m.Z)(Ut,2),Nt=lt[0],st=lt[1],Gt=(0,y.useState)(),it=(0,m.Z)(Gt,2),Ht=it[0],ct=it[1],zt=(0,y.useState)(),ot=(0,m.Z)(zt,2),Jt=ot[0],dt=ot[1],Qt=(0,y.useState)(),ht=(0,m.Z)(Qt,2),Xt=ht[0],pt=ht[1],qt=(0,y.useState)(),mt=(0,m.Z)(qt,2),ea=mt[0],ta=mt[1],aa=(0,y.useState)(),ft=(0,m.Z)(aa,2),na=ft[0],Ye=ft[1],ra=(0,y.useState)(),yt=(0,m.Z)(ra,2),ua=yt[0],la=yt[1],sa=(0,y.useState)(),vt=(0,m.Z)(sa,2),Pa=vt[0],ia=vt[1],ca=(0,y.useState)([]),Zt=(0,m.Z)(ca,2),oa=Zt[0],da=Zt[1],ha=(0,y.useState)(),xt=(0,m.Z)(ha,2),Ma=xt[0],pa=xt[1],ma=(0,y.useState)([]),Ct=(0,m.Z)(ma,2),Oa=Ct[0],fa=Ct[1],ya=(0,y.useState)([]),gt=(0,m.Z)(ya,2),Va=gt[0],va=gt[1],Za=(0,y.useState)([]),bt=(0,m.Z)(Za,2),Wa=bt[0],Ka=bt[1],xa=(0,y.useState)([]),kt=(0,m.Z)(xa,2),$a=kt[0],Ya=kt[1],La=function(t,a){console.log(t[0]),la(t[0]),ia(a.node.type)},Z=(0,y.useRef)();return(0,y.useEffect)(function(){var l={current:1,pagesize:30};$(l).then(function(t){Wt(t.data.data)}),w(l).then(function(t){$t(t.data.data)}),St(l).then(function(t){pa(t.data)}),It({current:0,pagesize:0}).then(function(t){da(t.data);var a=[],r=[];(t.data.allCommon||[]).map(function(d,f){r.push({title:d.name,key:d.id,parentId:0,type:0,children:[]})}),a.push({title:"\u901A\u7528\u89C4\u5219",key:0,parentId:0,type:0,children:r}),(t.data.allChild||[]).map(function(d,f){var p=n(d.typeId),b=[];d.child.map(function(Ce,A){b.push({title:Ce.ruleRemark,key:Ce.id,parentId:d.typeId,type:d.typeId,children:[]})}),a.push({title:p,key:d.typeId,parentId:0,type:d.typeId,children:b})}),fa(a)}),ge({current:0,pagesize:0}).then(function(t){va(t.data)})},[]),(0,e.jsxs)(te.Z,{defaultActiveKey:"1",children:[(0,e.jsx)(re,{onFinish:function(){var l=(0,x.Z)((0,s.Z)().mark(function t(a){var r;return(0,s.Z)().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:r=!1,a.id?r=_(a):r=G(a),r&&(C(!1),ut(void 0),Z.current&&Z.current.reload());case 3:case"end":return f.stop()}},t)}));return function(t){return l.apply(this,arguments)}}(),onCancel:function(){C(!1),Z.current.reload()},Data:{type:"price",ruleType:h.price,Big:le||[],Small:se||[]},createModalVisible:Ie,values:Lt||{}}),(0,e.jsx)(re,{onFinish:function(){var l=(0,x.Z)((0,s.Z)().mark(function t(a){var r;return(0,s.Z)().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:r=!1,a.id?r=_(a):r=G(a),r&&(H(!1),st(void 0),Z.current&&Z.current.reload());case 3:case"end":return f.stop()}},t)}));return function(t){return l.apply(this,arguments)}}(),onCancel:function(){H(!1),Z.current.reload()},Data:{type:"big",ruleType:h.big,Big:le||[],Small:se||[]},createModalVisible:ue,values:Nt||{}}),(0,e.jsx)(re,{onCancel:function(){fe(!1),Z.current.reload()},onFinish:function(){var l=(0,x.Z)((0,s.Z)().mark(function t(a){var r;return(0,s.Z)().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:r=!1,a.id?r=_(a):r=G(a),r&&(fe(!1),ct(void 0),Z.current&&(fe(!1),Z.current.reload()));case 3:case"end":return f.stop()}},t)}));return function(t){return l.apply(this,arguments)}}(),Data:{type:"small",ruleType:h.small,Big:le||[],Small:se||[]},createModalVisible:$e,values:Ht||{}}),(0,e.jsx)(re,{onCancel:function(){ye(!1),Z.current.reload()},onFinish:function(){var l=(0,x.Z)((0,s.Z)().mark(function t(a){var r;return(0,s.Z)().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:r=!1,a.id?r=_(a):r=G(a),r&&(ye(!1),pt(void 0),Z.current&&(ye(!1),Z.current.reload()));case 3:case"end":return f.stop()}},t)}));return function(t){return l.apply(this,arguments)}}(),Data:{type:"count",ruleType:h.count,Big:le||[],Small:se||[]},createModalVisible:ze,values:Xt||{}}),(0,e.jsx)(re,{onCancel:function(){ve(!1),Z.current.reload()},onFinish:function(){var l=(0,x.Z)((0,s.Z)().mark(function t(a){var r;return(0,s.Z)().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:r=!1,a.id?r=_(a):r=G(a),r&&(ve(!1),dt(void 0),Z.current&&(ve(!1),Z.current.reload()));case 3:case"end":return f.stop()}},t)}));return function(t){return l.apply(this,arguments)}}(),Data:{type:"persons",ruleType:h.persons,Big:le||[],Small:se||[]},createModalVisible:Qe,values:Jt||{}}),(0,e.jsx)(re,{onCancel:function(){Ze(!1),Z.current.reload()},onFinish:function(){var l=(0,x.Z)((0,s.Z)().mark(function t(a){var r;return(0,s.Z)().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:r=!1,a.id?r=_(a):r=G(a),r&&(Ze(!1),ta(void 0),Z.current&&(Ze(!1),Z.current.reload()));case 3:case"end":return f.stop()}},t)}));return function(t){return l.apply(this,arguments)}}(),Data:{type:"number",ruleType:h.number,Big:le||[],Small:se||[]},createModalVisible:qe,values:ea||{}}),(0,e.jsx)(_t,{onCancel:function(){xe(!1),Ye(void 0),Z.current.reload()},onFinish:function(){var l=(0,x.Z)((0,s.Z)().mark(function t(a){var r;return(0,s.Z)().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:r=!1,a.id?r=De(a):r=We(a),r&&(xe(!1),Ye(void 0),Z.current&&(xe(!1),Z.current.reload()));case 3:case"end":return f.stop()}},t)}));return function(t){return l.apply(this,arguments)}}(),Data:oa||{allChild:[],allCommon:[]},createModalVisible:tt,values:na||{}}),(0,e.jsx)(Q,{tab:"\u901A\u7528\u8BBE\u7F6E",style:{float:"left"},children:(0,e.jsx)(P.ZP,{actionRef:Z,rowKey:"id",search:{labelWidth:120},toolBarRender:function(){return[(0,e.jsxs)(S.Z,{type:"primary",onClick:function(){xe(!0)},children:[(0,e.jsx)(E.Z,{})," \u6DFB\u52A0"]},"primary")]},params:{thisRuleId:ua},request:function(){var l=(0,x.Z)((0,s.Z)().mark(function t(a){var r,d;return(0,s.Z)().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:return r=[],d=0,p.next=4,T(a).then(function(b){var Ce=b.data.data;Ce.map(function(A,Ua){var jt=[],Dt=[];A.effectiveDate!=null&&(jt=[I()(A.effectiveDate[0],"YYYY-MM-DD HH:mm:ss"),I()(A.effectiveDate[1],"YYYY-MM-DD HH:mm:ss")],A.effectiveDate=jt),A.multipleDate!=null&&(Dt=[I()(A.multipleDate[0],"YYYY-MM-DD HH:mm:ss"),I()(A.multipleDate[1],"YYYY-MM-DD HH:mm:ss")],A.multipleDate=Dt),A.fixedDay!=null&&(A.fixedDay=I()(A.fixedDay,"YYYY-MM-DD HH:mm:ss"))}),r=Ce,d=b.data.total});case 4:return p.abrupt("return",{data:r,success:!0,total:d});case 5:case"end":return p.stop()}},t)}));return function(t){return l.apply(this,arguments)}}(),modalVisible:tt,columns:X,rowSelection:{onChange:function(t,a){}}})},"1"),(0,e.jsx)(Q,{tab:"\u6309\u91D1\u989D\u79EF\u5206",children:(0,e.jsx)(P.ZP,{actionRef:Z,rowKey:"id",search:{labelWidth:120},toolBarRender:function(){return[(0,e.jsxs)(S.Z,{type:"primary",onClick:function(){C(!0)},children:[(0,e.jsx)(E.Z,{})," \u6DFB\u52A0"]},"primary")]},params:{RuleType:1},request:function(){var l=(0,x.Z)((0,s.Z)().mark(function t(a){var r,d;return(0,s.Z)().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:return r=[],d=0,p.next=4,O(a).then(function(b){r=b.data.data,d=b.data.total});case 4:return p.abrupt("return",{data:r,success:!0,total:d});case 5:case"end":return p.stop()}},t)}));return function(t){return l.apply(this,arguments)}}(),modalVisible:Ie,columns:u,rowSelection:{onChange:function(t,a){}}})},"2"),(0,e.jsx)(Q,{tab:"\u6309\u5927\u7C7B\u79EF\u5206",children:(0,e.jsx)(P.ZP,{actionRef:Z,rowKey:"id",search:{labelWidth:120},toolBarRender:function(){return[(0,e.jsxs)(S.Z,{type:"primary",onClick:function(){H(!0)},children:[(0,e.jsx)(E.Z,{})," \u6DFB\u52A0"]},"primary")]},params:{RuleType:2},request:function(){var l=(0,x.Z)((0,s.Z)().mark(function t(a){var r,d;return(0,s.Z)().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:return r=[],d=0,p.next=4,O(a).then(function(b){r=b.data.data,d=b.data.total});case 4:return p.abrupt("return",{data:r,success:!0,total:d});case 5:case"end":return p.stop()}},t)}));return function(t){return l.apply(this,arguments)}}(),modalVisible:ue,columns:pe,rowSelection:{onChange:function(t,a){}}})},"3"),(0,e.jsx)(Q,{tab:"\u6309\u5C0F\u7C7B\u79EF\u5206",children:(0,e.jsx)(P.ZP,{actionRef:Z,rowKey:"id",search:{labelWidth:120},toolBarRender:function(){return[(0,e.jsxs)(S.Z,{type:"primary",onClick:function(){fe(!0)},children:[(0,e.jsx)(E.Z,{})," \u6DFB\u52A0"]},"primary")]},params:{RuleType:3},request:function(){var l=(0,x.Z)((0,s.Z)().mark(function t(a){var r,d;return(0,s.Z)().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:return r=[],d=0,p.next=4,O(a).then(function(b){r=b.data.data,d=b.data.total});case 4:return p.abrupt("return",{data:r,success:!0,total:d});case 5:case"end":return p.stop()}},t)}));return function(t){return l.apply(this,arguments)}}(),modalVisible:$e,columns:be,rowSelection:{onChange:function(t,a){}}})},"4"),(0,e.jsx)(Q,{tab:"\u6309\u6D88\u8D39\u6B21\u6570\u79EF\u5206",children:(0,e.jsx)(P.ZP,{actionRef:Z,rowKey:"id",search:{labelWidth:120},toolBarRender:function(){return[(0,e.jsxs)(S.Z,{type:"primary",onClick:function(){ye(!0)},children:[(0,e.jsx)(E.Z,{})," \u6DFB\u52A0"]},"primary")]},params:{RuleType:4},request:function(){var l=(0,x.Z)((0,s.Z)().mark(function t(a){var r,d;return(0,s.Z)().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:return r=[],d=0,p.next=4,O(a).then(function(b){r=b.data.data,d=b.data.total});case 4:return p.abrupt("return",{data:r,success:!0,total:d});case 5:case"end":return p.stop()}},t)}));return function(t){return l.apply(this,arguments)}}(),modalVisible:ze,columns:Ve,rowSelection:{onChange:function(t,a){}}})},"5"),(0,e.jsx)(Q,{tab:"\u6309\u6D88\u8D39\u4EBA\u6570\u79EF\u5206",children:(0,e.jsx)(P.ZP,{actionRef:Z,rowKey:"id",search:{labelWidth:120},toolBarRender:function(){return[(0,e.jsxs)(S.Z,{type:"primary",onClick:function(){ve(!0)},children:[(0,e.jsx)(E.Z,{})," \u6DFB\u52A0"]},"primary")]},params:{RuleType:5},request:function(){var l=(0,x.Z)((0,s.Z)().mark(function t(a){var r,d;return(0,s.Z)().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:return r=[],d=0,p.next=4,O(a).then(function(b){r=b.data.data,d=b.data.total});case 4:return p.abrupt("return",{data:r,success:!0,total:d});case 5:case"end":return p.stop()}},t)}));return function(t){return l.apply(this,arguments)}}(),modalVisible:Qe,columns:ke,rowSelection:{onChange:function(t,a){}}})},"6"),(0,e.jsx)(Q,{tab:"\u6309\u51FA\u54C1\u6570\u91CF\u79EF\u5206",children:(0,e.jsx)(P.ZP,{actionRef:Z,rowKey:"id",search:{labelWidth:120},toolBarRender:function(){return[(0,e.jsxs)(S.Z,{type:"primary",onClick:function(){Ze(!0)},children:[(0,e.jsx)(E.Z,{})," \u6DFB\u52A0"]},"primary")]},params:{RuleType:6},request:function(){var l=(0,x.Z)((0,s.Z)().mark(function t(a){var r,d;return(0,s.Z)().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:return r=[],d=0,p.next=4,O(a).then(function(b){r=b.data.data,d=b.data.total});case 4:return p.abrupt("return",{data:r,success:!0,total:d});case 5:case"end":return p.stop()}},t)}));return function(t){return l.apply(this,arguments)}}(),modalVisible:qe,columns:je,rowSelection:{onChange:function(t,a){}}})},"7")]})},Bt=Tt}}]); diff --git a/dist/p__member__memberInfo.0c37ae63.async.js b/dist/p__member__memberInfo.0c37ae63.async.js new file mode 100644 index 0000000..9b52915 --- /dev/null +++ b/dist/p__member__memberInfo.0c37ae63.async.js @@ -0,0 +1 @@ +(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[9842,1322],{91629:function(kt,re,s){"use strict";s.r(re),s.d(re,{default:function(){return vt}});var Mt=s(71194),ae=s(50146),Pt=s(57663),ne=s(71577),Dt=s(49111),ue=s(19650),Ot=s(71153),se=s(60331),Lt=s(34792),c=s(48086),m=s(39428),j=s(3182),A=s(2824),Nt=s(63185),Ve=s(9676),$e=s(49101),g=s(67294),Ge=s(78009),H=s(16894),le=s(11849),Vt=s(88983),G=s(47933),$t=s(14965),ze=s(91774),Gt=s(9715),f=s(55843),zt=s(47673),b=s(4107),Wt=s(43358),z=s(34041),t=s(85893),We=function(r){var i=z.Z.Option,p=z.Z.OptGroup,v=(0,g.useState)(),x=(0,A.Z)(v,2),Z=x[0],C=x[1],M=function(){var B=(0,j.Z)((0,m.Z)().mark(function F(){return(0,m.Z)().wrap(function(P){for(;;)switch(P.prev=P.next){case 0:case"end":return P.stop()}},F)}));return function(){return B.apply(this,arguments)}}();(0,g.useEffect)(function(){var B=function(){var F=(0,j.Z)((0,m.Z)().mark(function S(P){return(0,m.Z)().wrap(function($){for(;;)switch($.prev=$.next){case 0:case"end":return $.stop()}},S)}));return function(P){return F.apply(this,arguments)}}();B()},[]);var K={labelCol:{sm:{span:4}},wrapperCol:{}},T={wrapperCol:{sm:{offset:1}}},V=function(F){};return(0,t.jsx)(ae.Z,{title:r.values.id?"\u7F16\u8F91\u4F1A\u5458\u4FE1\u606F":"\u65B0\u5EFA\u4F1A\u5458\u4FE1\u606F",width:700,maskClosable:!1,visible:r.createModalVisible,footer:null,onCancel:function(){r.onCancel()},destroyOnClose:!0,children:(0,t.jsxs)(f.Z,(0,le.Z)((0,le.Z)({},K),{},{layout:"Horizontal",preserve:!1,initialValues:r.values,onFinish:r.onFinish,children:[(0,t.jsx)(f.Z.Item,{name:"id",hidden:!0,children:(0,t.jsx)(b.Z,{})}),(0,t.jsx)(f.Z.Item,{name:"platformType",hidden:!0,children:(0,t.jsx)(b.Z,{})}),(0,t.jsx)(f.Z.Item,{name:"memberInfo_Id",hidden:!0,children:(0,t.jsx)(b.Z,{})}),(0,t.jsx)(f.Z.Item,{name:"nickName",label:"\u4F1A\u5458\u6635\u79F0",rules:[{required:!0,max:200}],children:(0,t.jsx)(b.Z,{placeholder:"\u8BF7\u8F93\u5165\u4F1A\u5458\u6635\u79F0"})}),(0,t.jsx)(f.Z.Item,{name:"phone",label:"\u7535\u8BDD\u53F7\u7801",rules:[{required:!0,pattern:"^1[0-9]{10}$",message:"\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u7535\u8BDD\u53F7\u7801"}],children:(0,t.jsx)(b.Z,{placeholder:"",disabled:r.platformType==0})}),(0,t.jsx)(f.Z.Item,{noStyle:!0,shouldUpdate:function(F,S){return F.platformType!==S.platformType},children:function(F){var S=F.getFieldValue;return S("id")?null:(0,t.jsx)(f.Z.Item,{name:"platformType",disabled:!0,label:"\u5E73\u53F0",rules:[{required:!0}],children:(0,t.jsxs)(z.Z,{style:{width:120},children:[(0,t.jsx)(i,{value:"1",disabled:!0,children:"\u5FAE\u4FE1"}),(0,t.jsx)(i,{value:"2",disabled:!0,children:"\u652F\u4ED8\u5B9D"}),(0,t.jsx)(i,{value:"3",children:"POS"}),(0,t.jsx)(i,{value:"4",children:"\u50A8\u503C\u5361"})]})})}}),(0,t.jsx)(f.Z.Item,{name:"headImgUrl",label:"\u5934\u50CF",rules:[{max:500}],children:(0,t.jsx)(b.Z,{placeholder:"\u8BF7\u8F93\u5165\u4F1A\u5458\u6635\u79F0"})}),(0,t.jsxs)(f.Z.Item,{style:{height:32},children:[(0,t.jsx)(f.Z.Item,{rules:[{required:!0}],name:"birthday",label:"\u51FA\u751F\u65E5\u671F",style:{float:"left",marginLeft:40},children:(0,t.jsx)(ze.Z,{})}),(0,t.jsx)(f.Z.Item,{name:"sex",label:"\u6027\u522B",style:{float:"left",marginLeft:110},children:(0,t.jsxs)(G.ZP.Group,{children:[(0,t.jsx)(G.ZP,{value:0,children:"\u672A\u77E5"}),(0,t.jsx)(G.ZP,{value:1,children:"\u7537"}),(0,t.jsx)(G.ZP,{value:2,children:"\u5973"})]})})]}),(0,t.jsxs)(f.Z.Item,{label:"\u5B9E\u540D\u8BA4\u8BC1",style:{height:32},children:[(0,t.jsx)(f.Z.Item,{name:"realName",style:{float:"left",width:"145px"},children:(0,t.jsx)(b.Z,{placeholder:"\u8BF7\u8F93\u5165\u771F\u5B9E\u59D3\u540D"})}),(0,t.jsx)(f.Z.Item,{name:"cardNum",style:{float:"left",marginLeft:10,width:"300px"},children:(0,t.jsx)(b.Z,{placeholder:"\u8BF7\u8F93\u5165\u8EAB\u4EFD\u8BC1\u53F7\u7801"})})]}),(0,t.jsx)(f.Z.Item,{name:"country",label:"\u56FD\u5BB6",children:(0,t.jsx)(b.Z,{placeholder:"\u8BF7\u8F93\u5165\u56FD\u5BB6"})}),(0,t.jsxs)(f.Z.Item,{label:"\u5730\u533A",style:{height:32},children:[(0,t.jsx)(f.Z.Item,{name:"province",style:{float:"left"},children:(0,t.jsx)(b.Z,{style:{width:"150px"},placeholder:"\u8BF7\u8F93\u5165\u7701"})}),(0,t.jsx)(f.Z.Item,{name:"city",style:{float:"left",marginLeft:10},children:(0,t.jsx)(b.Z,{style:{width:"150px"},placeholder:"\u8BF7\u8F93\u5165\u5E02"})}),(0,t.jsx)(f.Z.Item,{name:"county",style:{float:"left",marginLeft:10},children:(0,t.jsx)(b.Z,{style:{width:"150px"},placeholder:"\u8BF7\u8F93\u5165\u53BF(\u533A)"})})]}),(0,t.jsx)(f.Z.Item,{name:"address",label:"\u8BE6\u7EC6\u5730\u5740",children:(0,t.jsx)(b.Z,{placeholder:""})}),(0,t.jsx)(f.Z.Item,{name:"level_Id",label:"\u7B49\u7EA7",children:(0,t.jsx)(b.Z,{placeholder:""})}),(0,t.jsx)(f.Z.Item,{name:"status",label:"\u72B6\u6001",rules:[{required:!0}],children:(0,t.jsxs)(z.Z,{placeholder:"\u72B6\u6001",children:[(0,t.jsx)(i,{value:0,children:"\u542F\u7528"}),(0,t.jsx)(i,{value:1,children:"\u505C\u7528"})]})}),(0,t.jsx)(f.Z.Item,{children:(0,t.jsx)(ne.Z,{disabled:r.isLook,type:"primary",htmlType:"submit",style:{float:"right"},children:"\u4FDD\u5B58"})})]}))})},Ye=We,Yt=s(57338),Ke=s(273),R=s(48971);function Kt(e){return request("/kitchen/api/member/customer-page-query",{method:"post",data:e})}function Je(e){return(0,R.WY)("\u200B/kitchen/api\u200B/member\u200B/member-page-query",{method:"post",data:e})}function Qe(e){return(0,R.WY)("/kitchen/api/member/member-status",{method:"put",data:e})}function He(e,r){return(0,R.WY)("/kitchen/api/member/member-tag-and-info/".concat(e,"/").concat(r),{method:"get"})}function Xe(e){return(0,R.WY)("/kitchen/api/member/member-info",{method:"put",data:e})}function qe(e){return(0,R.WY)("/kitchen/api/member/member",{method:"post",data:e})}function _e(e){return(0,R.WY)("/kitchen/api/member/member-tag",{method:"put",data:e})}function Jt(e){return request("/kitchen/api/member/syncmember/".concat(e),{method:"post"})}function et(e){return(0,R.WY)("/kitchen/api/member/platform-member-list/".concat(e),{method:"get"})}function tt(e){return(0,R.WY)("/kitchen/api/member/member-integral-record-page",{method:"post",data:e})}var rt=function(r){var i=(0,g.useRef)(),p=[{title:"\u4E3B\u952E",dataIndex:"id",tip:"\u89C4\u5219\u540D\u79F0\u662F\u552F\u4E00\u7684key",hideInSearch:!0,hideInTable:!0},{title:"\u53D8\u66F4\u524D",dataIndex:"beforeChange",valueType:"textarea",search:!1},{title:"\u53D8\u66F4\u7C7B\u578B",dataIndex:"type",valueEnum:{1:{text:"\u589E\u52A0",status:"Success"},2:{text:"\u51CF\u5C11",status:"Error"}}},{title:"\u53D8\u66F4\u79EF\u5206",dataIndex:"integral",valueType:"textarea",search:!1},{title:"\u53D8\u66F4\u540E",dataIndex:"afterChange",valueType:"textarea",search:!1},{title:"\u53D8\u66F4\u65F6\u95F4",dataIndex:"createAt",valueType:"dateTime"}];return(0,t.jsx)(Ke.Z,{title:"\u79EF\u5206\u8BB0\u5F55",onClose:function(){r.onClose()},width:720,visible:r.integralRecordVisible,placement:"right",destroyOnClose:!0,children:(0,t.jsx)(H.ZP,{actionRef:i,rowKey:"id",request:function(){var v=(0,j.Z)((0,m.Z)().mark(function x(Z){var C,M;return(0,m.Z)().wrap(function(T){for(;;)switch(T.prev=T.next){case 0:return C=[],M=0,Z.memberId=r.memberId,T.next=5,tt(JSON.stringify(Z)).then(function(V){C=V.data.data,M=V.data.total});case 5:return T.abrupt("return",{data:C,success:!0,total:M});case 6:case"end":return T.stop()}},x)}));return function(x){return v.apply(this,arguments)}}(),columns:p,pagination:{defaultPageSize:10}})})},at=rt,nt=s(30381),ie=s.n(nt),k=s(48764).Buffer;const oe="3.7.5",ut=oe,st=typeof atob=="function",lt=typeof btoa=="function",D=typeof k=="function",de=typeof TextDecoder=="function"?new TextDecoder:void 0,ce=typeof TextEncoder=="function"?new TextEncoder:void 0,it="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",L=Array.prototype.slice.call(it),W=(e=>{let r={};return e.forEach((i,p)=>r[i]=p),r})(L),ot=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,h=String.fromCharCode.bind(String),fe=typeof Uint8Array.from=="function"?Uint8Array.from.bind(Uint8Array):e=>new Uint8Array(Array.prototype.slice.call(e,0)),me=e=>e.replace(/=/g,"").replace(/[+\/]/g,r=>r=="+"?"-":"_"),he=e=>e.replace(/[^A-Za-z0-9\+\/]/g,""),pe=e=>{let r,i,p,v,x="";const Z=e.length%3;for(let C=0;C255||(p=e.charCodeAt(C++))>255||(v=e.charCodeAt(C++))>255)throw new TypeError("invalid character found");r=i<<16|p<<8|v,x+=L[r>>18&63]+L[r>>12&63]+L[r>>6&63]+L[r&63]}return Z?x.slice(0,Z-3)+"===".substring(Z):x},X=lt?e=>btoa(e):D?e=>k.from(e,"binary").toString("base64"):pe,q=D?e=>k.from(e).toString("base64"):e=>{const r=4096;let i=[];for(let p=0,v=e.length;pr?me(q(e)):q(e),dt=e=>{if(e.length<2){var r=e.charCodeAt(0);return r<128?e:r<2048?h(192|r>>>6)+h(128|r&63):h(224|r>>>12&15)+h(128|r>>>6&63)+h(128|r&63)}else{var r=65536+(e.charCodeAt(0)-55296)*1024+(e.charCodeAt(1)-56320);return h(240|r>>>18&7)+h(128|r>>>12&63)+h(128|r>>>6&63)+h(128|r&63)}},ct=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,xe=e=>e.replace(ct,dt),ye=D?e=>k.from(e,"utf8").toString("base64"):ce?e=>q(ce.encode(e)):e=>X(xe(e)),O=(e,r=!1)=>r?me(ye(e)):ye(e),ve=e=>O(e,!0),ft=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,mt=e=>{switch(e.length){case 4:var r=(7&e.charCodeAt(0))<<18|(63&e.charCodeAt(1))<<12|(63&e.charCodeAt(2))<<6|63&e.charCodeAt(3),i=r-65536;return h((i>>>10)+55296)+h((i&1023)+56320);case 3:return h((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return h((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},ge=e=>e.replace(ft,mt),be=e=>{if(e=e.replace(/\s+/g,""),!ot.test(e))throw new TypeError("malformed base64.");e+="==".slice(2-(e.length&3));let r,i="",p,v;for(let x=0;x>16&255):v===64?h(r>>16&255,r>>8&255):h(r>>16&255,r>>8&255,r&255);return i},_=st?e=>atob(he(e)):D?e=>k.from(e,"base64").toString("binary"):be,Ze=D?e=>fe(k.from(e,"base64")):e=>fe(_(e).split("").map(r=>r.charCodeAt(0))),Ie=e=>Ze(je(e)),ht=D?e=>k.from(e,"base64").toString("utf8"):de?e=>de.decode(Ze(e)):e=>ge(_(e)),je=e=>he(e.replace(/[-_]/g,r=>r=="-"?"+":"/")),N=e=>ht(je(e)),pt=e=>{if(typeof e!="string")return!1;const r=e.replace(/\s+/g,"").replace(/={0,2}$/,"");return!/[^\s0-9a-zA-Z\+/]/.test(r)||!/[^\s0-9a-zA-Z\-_]/.test(r)},Ce=e=>({value:e,enumerable:!1,writable:!0,configurable:!0}),Fe=function(){const e=(r,i)=>Object.defineProperty(String.prototype,r,Ce(i));e("fromBase64",function(){return N(this)}),e("toBase64",function(r){return O(this,r)}),e("toBase64URI",function(){return O(this,!0)}),e("toBase64URL",function(){return O(this,!0)}),e("toUint8Array",function(){return Ie(this)})},Ae=function(){const e=(r,i)=>Object.defineProperty(Uint8Array.prototype,r,Ce(i));e("toBase64",function(r){return Y(this,r)}),e("toBase64URI",function(){return Y(this,!0)}),e("toBase64URL",function(){return Y(this,!0)})},Ht={version:oe,VERSION:ut,atob:_,atobPolyfill:be,btoa:X,btoaPolyfill:pe,fromBase64:N,toBase64:O,encode:O,encodeURI:ve,encodeURL:ve,utob:xe,btou:ge,decode:N,isValid:pt,fromUint8Array:Y,toUint8Array:Ie,extendString:Fe,extendUint8Array:Ae,extendBuiltins:()=>{Fe(),Ae()}};var xt=Ve.Z.Group,Xt=null,qt=null,I="message",Be=function(r){var i=N(r);if(i.includes("BPA_BASE64"))return!0},Se=function(r){return N(r).replace("BPA_BASE64","")},yt=function(){var r=(0,g.useRef)(),i=(0,g.useRef)(),p=(0,g.useState)(!1),v=(0,A.Z)(p,2),x=v[0],Z=v[1],C=(0,g.useState)(!1),M=(0,A.Z)(C,2),K=M[0],T=M[1],V=(0,g.useState)([]),B=(0,A.Z)(V,2),F=B[0],S=B[1],P=(0,g.useState)([]),ee=(0,A.Z)(P,2),$=ee[0],Te=ee[1],gt=(0,g.useState)(),Ee=(0,A.Z)(gt,2),w=Ee[0],U=Ee[1],bt=(0,g.useState)(!1),Re=(0,A.Z)(bt,2),Zt=Re[0],J=Re[1],It=(0,g.useState)([]),we=(0,A.Z)(It,2),jt=we[0],Ct=we[1],Ft=g.useState(),Ue=(0,A.Z)(Ft,2),ke=Ue[0],Me=Ue[1],At=(0,g.useState)(!1),Pe=(0,A.Z)(At,2),Bt=Pe[0],te=Pe[1],De=function(){var o=(0,j.Z)((0,m.Z)().mark(function l(n){return(0,m.Z)().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,et(n).then(function(u){S(u.data)});case 2:case"end":return a.stop()}},l)}));return function(n){return o.apply(this,arguments)}}(),St=function(){var o=(0,j.Z)((0,m.Z)().mark(function l(n){return(0,m.Z)().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return c.default.loading("\u6B63\u5728\u6DFB\u52A0...",I),a.prev=1,a.next=4,qe(JSON.stringify(n)).then(function(u){c.default.destroy(I),u.data?c.default.success("\u6DFB\u52A0\u6210\u529F"):c.default.error("\u6DFB\u52A0\u5931\u8D25")});case 4:return r.current.reload(),a.abrupt("return",!0);case 8:return a.prev=8,a.t0=a.catch(1),c.default.destroy(I),c.default.error("\u6DFB\u52A0\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),a.abrupt("return",!1);case 13:case"end":return a.stop()}},l,null,[[1,8]])}));return function(n){return o.apply(this,arguments)}}(),Tt=function(){var o=(0,j.Z)((0,m.Z)().mark(function l(n){return(0,m.Z)().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return c.default.loading("\u6B63\u5728\u4FEE\u6539...",I),a.prev=1,a.next=4,Xe(JSON.stringify(n)).then(function(u){c.default.destroy(I),u.data?c.default.success("\u4FEE\u6539\u6210\u529F"):c.default.error("\u4FEE\u6539\u5931\u8D25"+u.errors==null?"":u.errors)});case 4:return r.current.reload(),a.abrupt("return",!0);case 8:return a.prev=8,a.t0=a.catch(1),c.default.destroy(I),c.default.error("\u4FEE\u6539\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),a.abrupt("return",!1);case 13:case"end":return a.stop()}},l,null,[[1,8]])}));return function(n){return o.apply(this,arguments)}}(),Oe=function(){var o=(0,j.Z)((0,m.Z)().mark(function l(n){return(0,m.Z)().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return c.default.loading("\u6B63\u5728\u4FEE\u6539...",I),a.prev=1,a.next=4,Qe(JSON.stringify(n)).then(function(u){c.default.destroy(I),u.data?(De(n.Id),c.default.success("\u4FEE\u6539\u6210\u529F")):c.default.error("\u4FEE\u6539\u5931\u8D25"+u.errors==null?"":u.errors)});case 4:return r.current.reload(),a.abrupt("return",!0);case 8:return a.prev=8,a.t0=a.catch(1),c.default.destroy(I),c.default.error("\u4FEE\u6539\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),a.abrupt("return",!1);case 13:case"end":return a.stop()}},l,null,[[1,8]])}));return function(n){return o.apply(this,arguments)}}(),Et=function(){var o=(0,j.Z)((0,m.Z)().mark(function l(n,d){return(0,m.Z)().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return c.default.loading("\u6B63\u5728\u4FEE\u6539...",I),u.prev=1,u.next=4,_e(JSON.stringify({platformType:n,memberInfo_Id:d,tags:ke})).then(function(y){c.default.destroy(I),y.data?c.default.success("\u4FEE\u6539\u6210\u529F"):c.default.error("\u4FEE\u6539\u5931\u8D25"+y.errors==null?"":y.errors)});case 4:return r.current.reload(),u.abrupt("return",!0);case 8:return u.prev=8,u.t0=u.catch(1),c.default.destroy(I),c.default.error("\u4FEE\u6539\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),u.abrupt("return",!1);case 13:case"end":return u.stop()}},l,null,[[1,8]])}));return function(n,d){return o.apply(this,arguments)}}(),Le=function(){var o=(0,j.Z)((0,m.Z)().mark(function l(n,d){return(0,m.Z)().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.next=2,He(n,d).then(function(y){if(y.data){var E=[],Ne=[];y.data.forEach(function(Q){Q.memberTagInfoId!=null&&Ne.push(Q.id),E.push({label:Q.name,value:Q.id})}),Ct(E),Me(Ne)}});case 2:case"end":return u.stop()}},l)}));return function(n,d){return o.apply(this,arguments)}}(),Rt=[{title:"\u4E3B\u952E",dataIndex:"id",hideInSearch:!0,hideInTable:!0,tip:"\u89C4\u5219\u540D\u79F0\u662F\u552F\u4E00\u7684 key"},{title:"\u5934\u50CF",dataIndex:"headImgUrl",search:!1,hideInForm:!0,render:function(l,n){return(0,t.jsx)("img",{src:n.headImgUrl,style:{width:"45px",height:"45px"}})}},{title:"\u6635\u79F0",dataIndex:"nickName",valueType:"textarea",hideInForm:!0,render:function(l,n){return(0,t.jsx)("a",{children:Be(n.nickName)?Se(n.nickName):n.nickName})}},{title:"\u7535\u8BDD",dataIndex:"phone",valueType:"textarea",hideInForm:!0},{title:"\u6027\u522B",dataIndex:"sex",search:!1,valueEnum:{0:{text:"\u672A\u77E5"},1:{text:"\u7537"},2:{text:"\u5973"}}},{title:"\u7B49\u7EA7",dataIndex:"level",search:!1,valueType:"textarea"},{title:"\u72B6\u6001",dataIndex:"status",valueEnum:{0:{text:"\u542F\u7528",status:"Success"},1:{text:"\u7981\u7528",status:"error"}}},{title:"\u6807\u7B7E",dataIndex:"memberTag",search:!1,width:450,render:function(l,n){return(0,t.jsx)(ue.Z,{children:n.memberTag.map(function(d){var a=d.id,u=d.name;return(0,t.jsx)(se.Z,{color:"#87d068",children:u},a)})})}},{title:"\u521B\u5EFA\u65F6\u95F4",dataIndex:"createAt",search:!1,valueType:"textarea"},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(l,n){var d=[(0,t.jsx)("a",{type:"primary",onClick:function(){Z(!0),U(function(){return n.birthday=ie()(n.birthday),te(!0),n})},children:"\u8BE6\u60C5"},"primary"),(0,t.jsx)("a",{type:"primary",onClick:function(){Z(!0),U(function(){return n.birthday=ie()(n.birthday),te(!1),n})},children:"\u66F4\u65B0"},"primary"),(0,t.jsx)("a",{type:"primary",onClick:function(){var u={Id:n.id,platformType:0,status:n.status==0?1:0};Oe(u)},children:n.status==0?"\u7981\u7528 ":"\u542F\u7528"},"primary"),(0,t.jsx)("a",{type:"primary",onClick:function(){Le(n.id,0),J(!0),U(function(){return n})},children:"\u6807\u7B7E\u7BA1\u7406"},"primary"),(0,t.jsx)("a",{type:"primary",onClick:function(){U(n),T(!0)},children:"\u79EF\u5206\u8BB0\u5F55"},"primary")];return d}}],wt=function(l,n){l?(S(n.platformMemberInfos),Te([n.id])):Te([])},Ut=function(l){return(0,t.jsx)(H.ZP,{rowKey:"id",actionRef:i,columns:[{title:"\u5E73\u53F0",dataIndex:"platformType",key:"platformType",valueEnum:{1:{text:"\u5FAE\u4FE1"},2:{text:"\u652F\u4ED8\u5B9D"},3:{text:"POS"},4:{text:"\u50A8\u503C\u5361"}}},{title:"\u5934\u50CF",dataIndex:"headImgUrl",valueType:"textarea",search:!1,hideInForm:!0,render:function(d,a){return(0,t.jsx)("img",{src:a.headImgUrl,style:{width:"45px",height:"45px"}})}},{title:"\u6635\u79F0",dataIndex:"nickName",valueType:"textarea",hideInForm:!0,render:function(d,a){return(0,t.jsx)("a",{children:Be(a.nickName)?Se(a.nickName):a.nickName})}},{title:"\u6027\u522B",dataIndex:"sex",search:!1,valueEnum:{0:{text:"\u672A\u77E5"},1:{text:"\u7537"},2:{text:"\u5973"}}},{title:"\u72B6\u6001",dataIndex:"status",valueEnum:{0:{text:"\u542F\u7528",status:"Success"},1:{text:"\u7981\u7528",status:"error"}}},{title:"\u6807\u7B7E",dataIndex:"memberTag",key:"memberTag",width:450,render:function(d,a){return(0,t.jsx)(t.Fragment,{children:(0,t.jsx)(ue.Z,{children:a.memberTag.map(function(u){var y=u.id,E=u.name;return(0,t.jsx)(se.Z,{color:"#87d068",children:E},y)})})})}},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(d,a){var u=[(0,t.jsx)("a",{type:"primary",onClick:function(){var E={Id:a.memberInfo_Id,platformType:a.platformType,status:a.status==0?1:0};Oe(E)},children:a.status==0?"\u7981\u7528 ":"\u542F\u7528"},"primary"),(0,t.jsx)("a",{type:"primary",onClick:function(){Le(a.memberInfo_Id,a.platformType),J(!0),U(function(){return a}),De(a.memberInfo_Id)},children:"\u6807\u7B7E\u7BA1\u7406"},"primary")];return u}}],headerTitle:!1,search:!1,options:!1,dataSource:F,pagination:!1})};return(0,t.jsxs)(Ge.ZP,{children:[(0,t.jsx)(H.ZP,{headerTitle:"\u4F1A\u5458\u4FE1\u606F",actionRef:r,onExpand:wt,expandedRowKeys:$,rowKey:"id",toolBarRender:function(){return[(0,t.jsxs)(ne.Z,{type:"primary",onClick:function(){te(!1),U({}),Z(!0)},children:[(0,t.jsx)($e.Z,{})," \u6DFB\u52A0\u4F1A\u5458"]},"primary")]},expandable:{expandedRowRender:Ut},request:function(){var o=(0,j.Z)((0,m.Z)().mark(function l(n){var d,a;return(0,m.Z)().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:return d=[],a=0,y.next=4,Je(n).then(function(E){d=E.data.data,a=E.data.total});case 4:return y.abrupt("return",{data:d,success:!0,total:a});case 5:case"end":return y.stop()}},l)}));return function(l){return o.apply(this,arguments)}}(),columns:Rt}),(0,t.jsx)(Ye,{isLook:Bt,onFinish:function(){var o=(0,j.Z)((0,m.Z)().mark(function l(n){var d;return(0,m.Z)().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:n.birthday=n.birthday._i,d=!1,n.MemberInfo_Id=n.id,n.id?d=Tt(n):d=St(n),d&&(Z(!1),r.current&&r.current.reload());case 5:case"end":return u.stop()}},l)}));return function(l){return o.apply(this,arguments)}}(),onCancel:function(){U(void 0),Z(!1)},createModalVisible:x,values:w||{}}),(0,t.jsx)(ae.Z,{title:"\u4F1A\u5458\u6807\u7B7E",visible:Zt,onOk:function(){Et(w.platformType,w.platformType==0?w.id:w.memberInfo_Id)&&J(!1)},onCancel:function(){U([]),J(!1)},children:(0,t.jsx)(t.Fragment,{children:(0,t.jsx)(xt,{options:jt,value:ke,onChange:function(l){Me(l)}})})}),(0,t.jsx)(at,{onClose:function(){T(!1)},memberId:w==null?void 0:w.id,integralRecordVisible:K})]})},vt=yt}}]); diff --git a/dist/p__member__memberInfo.453940cc.async.js b/dist/p__member__memberInfo.453940cc.async.js deleted file mode 100644 index b3f748f..0000000 --- a/dist/p__member__memberInfo.453940cc.async.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[9842,1322],{91629:function(kt,re,s){"use strict";s.r(re),s.d(re,{default:function(){return vt}});var Mt=s(71194),ae=s(50146),Pt=s(57663),ne=s(71577),Dt=s(49111),ue=s(19650),Ot=s(71153),se=s(60331),Lt=s(34792),c=s(48086),m=s(39428),j=s(3182),A=s(2824),Nt=s(63185),Ve=s(9676),$e=s(49101),g=s(67294),Ge=s(78009),H=s(16894),le=s(11849),Vt=s(88983),G=s(47933),$t=s(14965),ze=s(91774),Gt=s(9715),f=s(55843),zt=s(47673),b=s(4107),Wt=s(43358),z=s(34041),t=s(85893),We=function(r){var i=z.Z.Option,p=z.Z.OptGroup,v=(0,g.useState)(),x=(0,A.Z)(v,2),Z=x[0],C=x[1],M=function(){var B=(0,j.Z)((0,m.Z)().mark(function F(){return(0,m.Z)().wrap(function(P){for(;;)switch(P.prev=P.next){case 0:case"end":return P.stop()}},F)}));return function(){return B.apply(this,arguments)}}();(0,g.useEffect)(function(){var B=function(){var F=(0,j.Z)((0,m.Z)().mark(function S(P){return(0,m.Z)().wrap(function($){for(;;)switch($.prev=$.next){case 0:case"end":return $.stop()}},S)}));return function(P){return F.apply(this,arguments)}}();B()},[]);var K={labelCol:{sm:{span:4}},wrapperCol:{}},T={wrapperCol:{sm:{offset:1}}},V=function(F){};return(0,t.jsx)(ae.Z,{title:r.values.id?"\u7F16\u8F91\u4F1A\u5458\u4FE1\u606F":"\u65B0\u5EFA\u4F1A\u5458\u4FE1\u606F",width:700,maskClosable:!1,visible:r.createModalVisible,footer:null,onCancel:function(){r.onCancel()},destroyOnClose:!0,children:(0,t.jsxs)(f.Z,(0,le.Z)((0,le.Z)({},K),{},{layout:"Horizontal",preserve:!1,initialValues:r.values,onFinish:r.onFinish,children:[(0,t.jsx)(f.Z.Item,{name:"id",hidden:!0,children:(0,t.jsx)(b.Z,{})}),(0,t.jsx)(f.Z.Item,{name:"platformType",hidden:!0,children:(0,t.jsx)(b.Z,{})}),(0,t.jsx)(f.Z.Item,{name:"memberInfo_Id",hidden:!0,children:(0,t.jsx)(b.Z,{})}),(0,t.jsx)(f.Z.Item,{name:"nickName",label:"\u4F1A\u5458\u6635\u79F0",rules:[{required:!0,max:200}],children:(0,t.jsx)(b.Z,{placeholder:"\u8BF7\u8F93\u5165\u4F1A\u5458\u6635\u79F0"})}),(0,t.jsx)(f.Z.Item,{name:"phone",label:"\u7535\u8BDD\u53F7\u7801",rules:[{required:!0,pattern:"^1[0-9]{10}$",message:"\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u7535\u8BDD\u53F7\u7801"}],children:(0,t.jsx)(b.Z,{placeholder:"",disabled:r.platformType==0})}),(0,t.jsx)(f.Z.Item,{noStyle:!0,shouldUpdate:function(F,S){return F.platformType!==S.platformType},children:function(F){var S=F.getFieldValue;return S("id")?null:(0,t.jsx)(f.Z.Item,{name:"platformType",disabled:!0,label:"\u5E73\u53F0",rules:[{required:!0}],children:(0,t.jsxs)(z.Z,{style:{width:120},children:[(0,t.jsx)(i,{value:"1",disabled:!0,children:"\u5FAE\u4FE1"}),(0,t.jsx)(i,{value:"2",disabled:!0,children:"\u652F\u4ED8\u5B9D"}),(0,t.jsx)(i,{value:"3",children:"POS"}),(0,t.jsx)(i,{value:"4",children:"\u50A8\u503C\u5361"})]})})}}),(0,t.jsx)(f.Z.Item,{name:"headImgUrl",label:"\u5934\u50CF",rules:[{max:500}],children:(0,t.jsx)(b.Z,{placeholder:"\u8BF7\u8F93\u5165\u4F1A\u5458\u6635\u79F0"})}),(0,t.jsxs)(f.Z.Item,{style:{height:32},children:[(0,t.jsx)(f.Z.Item,{name:"birthday",label:"\u51FA\u751F\u65E5\u671F",style:{float:"left",marginLeft:40},children:(0,t.jsx)(ze.Z,{})}),(0,t.jsx)(f.Z.Item,{name:"sex",label:"\u6027\u522B",style:{float:"left",marginLeft:110},children:(0,t.jsxs)(G.ZP.Group,{children:[(0,t.jsx)(G.ZP,{value:0,children:"\u672A\u77E5"}),(0,t.jsx)(G.ZP,{value:1,children:"\u7537"}),(0,t.jsx)(G.ZP,{value:2,children:"\u5973"})]})})]}),(0,t.jsxs)(f.Z.Item,{label:"\u5B9E\u540D\u8BA4\u8BC1",style:{height:32},children:[(0,t.jsx)(f.Z.Item,{name:"realName",style:{float:"left",width:"145px"},children:(0,t.jsx)(b.Z,{placeholder:"\u8BF7\u8F93\u5165\u771F\u5B9E\u59D3\u540D"})}),(0,t.jsx)(f.Z.Item,{name:"cardNum",style:{float:"left",marginLeft:10,width:"300px"},children:(0,t.jsx)(b.Z,{placeholder:"\u8BF7\u8F93\u5165\u8EAB\u4EFD\u8BC1\u53F7\u7801"})})]}),(0,t.jsx)(f.Z.Item,{name:"country",label:"\u56FD\u5BB6",children:(0,t.jsx)(b.Z,{placeholder:"\u8BF7\u8F93\u5165\u56FD\u5BB6"})}),(0,t.jsxs)(f.Z.Item,{label:"\u5730\u533A",style:{height:32},children:[(0,t.jsx)(f.Z.Item,{name:"province",style:{float:"left"},children:(0,t.jsx)(b.Z,{style:{width:"150px"},placeholder:"\u8BF7\u8F93\u5165\u7701"})}),(0,t.jsx)(f.Z.Item,{name:"city",style:{float:"left",marginLeft:10},children:(0,t.jsx)(b.Z,{style:{width:"150px"},placeholder:"\u8BF7\u8F93\u5165\u5E02"})}),(0,t.jsx)(f.Z.Item,{name:"county",style:{float:"left",marginLeft:10},children:(0,t.jsx)(b.Z,{style:{width:"150px"},placeholder:"\u8BF7\u8F93\u5165\u53BF(\u533A)"})})]}),(0,t.jsx)(f.Z.Item,{name:"address",label:"\u8BE6\u7EC6\u5730\u5740",children:(0,t.jsx)(b.Z,{placeholder:""})}),(0,t.jsx)(f.Z.Item,{name:"level_Id",label:"\u7B49\u7EA7",children:(0,t.jsx)(b.Z,{placeholder:""})}),(0,t.jsx)(f.Z.Item,{name:"status",label:"\u72B6\u6001",rules:[{required:!0}],children:(0,t.jsxs)(z.Z,{placeholder:"\u72B6\u6001",children:[(0,t.jsx)(i,{value:0,children:"\u542F\u7528"}),(0,t.jsx)(i,{value:1,children:"\u505C\u7528"})]})}),(0,t.jsx)(f.Z.Item,{children:(0,t.jsx)(ne.Z,{disabled:r.isLook,type:"primary",htmlType:"submit",style:{float:"right"},children:"\u4FDD\u5B58"})})]}))})},Ye=We,Yt=s(57338),Ke=s(273),R=s(48971);function Kt(e){return request("/kitchen/api/member/customer-page-query",{method:"post",data:e})}function Je(e){return(0,R.WY)("\u200B/kitchen/api\u200B/member\u200B/member-page-query",{method:"post",data:e})}function Qe(e){return(0,R.WY)("/kitchen/api/member/member-status",{method:"put",data:e})}function He(e,r){return(0,R.WY)("/kitchen/api/member/member-tag-and-info/".concat(e,"/").concat(r),{method:"get"})}function Xe(e){return(0,R.WY)("/kitchen/api/member/member-info",{method:"put",data:e})}function qe(e){return(0,R.WY)("/kitchen/api/member/member",{method:"post",data:e})}function _e(e){return(0,R.WY)("/kitchen/api/member/member-tag",{method:"put",data:e})}function Jt(e){return request("/kitchen/api/member/syncmember/".concat(e),{method:"post"})}function et(e){return(0,R.WY)("/kitchen/api/member/platform-member-list/".concat(e),{method:"get"})}function tt(e){return(0,R.WY)("/kitchen/api/member/member-integral-record-page",{method:"post",data:e})}var rt=function(r){var i=(0,g.useRef)(),p=[{title:"\u4E3B\u952E",dataIndex:"id",tip:"\u89C4\u5219\u540D\u79F0\u662F\u552F\u4E00\u7684key",hideInSearch:!0,hideInTable:!0},{title:"\u53D8\u66F4\u524D",dataIndex:"beforeChange",valueType:"textarea",search:!1},{title:"\u53D8\u66F4\u7C7B\u578B",dataIndex:"type",valueEnum:{1:{text:"\u589E\u52A0",status:"Success"},2:{text:"\u51CF\u5C11",status:"Error"}}},{title:"\u53D8\u66F4\u79EF\u5206",dataIndex:"integral",valueType:"textarea",search:!1},{title:"\u53D8\u66F4\u540E",dataIndex:"afterChange",valueType:"textarea",search:!1},{title:"\u53D8\u66F4\u65F6\u95F4",dataIndex:"createAt",valueType:"dateTime"}];return(0,t.jsx)(Ke.Z,{title:"\u79EF\u5206\u8BB0\u5F55",onClose:function(){r.onClose()},width:720,visible:r.integralRecordVisible,placement:"right",destroyOnClose:!0,children:(0,t.jsx)(H.ZP,{actionRef:i,rowKey:"id",request:function(){var v=(0,j.Z)((0,m.Z)().mark(function x(Z){var C,M;return(0,m.Z)().wrap(function(T){for(;;)switch(T.prev=T.next){case 0:return C=[],M=0,Z.memberId=r.memberId,T.next=5,tt(JSON.stringify(Z)).then(function(V){C=V.data.data,M=V.data.total});case 5:return T.abrupt("return",{data:C,success:!0,total:M});case 6:case"end":return T.stop()}},x)}));return function(x){return v.apply(this,arguments)}}(),columns:p,pagination:{defaultPageSize:10}})})},at=rt,nt=s(30381),ie=s.n(nt),k=s(48764).Buffer;const oe="3.7.5",ut=oe,st=typeof atob=="function",lt=typeof btoa=="function",D=typeof k=="function",de=typeof TextDecoder=="function"?new TextDecoder:void 0,ce=typeof TextEncoder=="function"?new TextEncoder:void 0,it="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",L=Array.prototype.slice.call(it),W=(e=>{let r={};return e.forEach((i,p)=>r[i]=p),r})(L),ot=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,h=String.fromCharCode.bind(String),fe=typeof Uint8Array.from=="function"?Uint8Array.from.bind(Uint8Array):e=>new Uint8Array(Array.prototype.slice.call(e,0)),me=e=>e.replace(/=/g,"").replace(/[+\/]/g,r=>r=="+"?"-":"_"),he=e=>e.replace(/[^A-Za-z0-9\+\/]/g,""),pe=e=>{let r,i,p,v,x="";const Z=e.length%3;for(let C=0;C255||(p=e.charCodeAt(C++))>255||(v=e.charCodeAt(C++))>255)throw new TypeError("invalid character found");r=i<<16|p<<8|v,x+=L[r>>18&63]+L[r>>12&63]+L[r>>6&63]+L[r&63]}return Z?x.slice(0,Z-3)+"===".substring(Z):x},X=lt?e=>btoa(e):D?e=>k.from(e,"binary").toString("base64"):pe,q=D?e=>k.from(e).toString("base64"):e=>{const r=4096;let i=[];for(let p=0,v=e.length;pr?me(q(e)):q(e),dt=e=>{if(e.length<2){var r=e.charCodeAt(0);return r<128?e:r<2048?h(192|r>>>6)+h(128|r&63):h(224|r>>>12&15)+h(128|r>>>6&63)+h(128|r&63)}else{var r=65536+(e.charCodeAt(0)-55296)*1024+(e.charCodeAt(1)-56320);return h(240|r>>>18&7)+h(128|r>>>12&63)+h(128|r>>>6&63)+h(128|r&63)}},ct=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,xe=e=>e.replace(ct,dt),ye=D?e=>k.from(e,"utf8").toString("base64"):ce?e=>q(ce.encode(e)):e=>X(xe(e)),O=(e,r=!1)=>r?me(ye(e)):ye(e),ve=e=>O(e,!0),ft=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,mt=e=>{switch(e.length){case 4:var r=(7&e.charCodeAt(0))<<18|(63&e.charCodeAt(1))<<12|(63&e.charCodeAt(2))<<6|63&e.charCodeAt(3),i=r-65536;return h((i>>>10)+55296)+h((i&1023)+56320);case 3:return h((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return h((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},ge=e=>e.replace(ft,mt),be=e=>{if(e=e.replace(/\s+/g,""),!ot.test(e))throw new TypeError("malformed base64.");e+="==".slice(2-(e.length&3));let r,i="",p,v;for(let x=0;x>16&255):v===64?h(r>>16&255,r>>8&255):h(r>>16&255,r>>8&255,r&255);return i},_=st?e=>atob(he(e)):D?e=>k.from(e,"base64").toString("binary"):be,Ze=D?e=>fe(k.from(e,"base64")):e=>fe(_(e).split("").map(r=>r.charCodeAt(0))),Ie=e=>Ze(je(e)),ht=D?e=>k.from(e,"base64").toString("utf8"):de?e=>de.decode(Ze(e)):e=>ge(_(e)),je=e=>he(e.replace(/[-_]/g,r=>r=="-"?"+":"/")),N=e=>ht(je(e)),pt=e=>{if(typeof e!="string")return!1;const r=e.replace(/\s+/g,"").replace(/={0,2}$/,"");return!/[^\s0-9a-zA-Z\+/]/.test(r)||!/[^\s0-9a-zA-Z\-_]/.test(r)},Ce=e=>({value:e,enumerable:!1,writable:!0,configurable:!0}),Fe=function(){const e=(r,i)=>Object.defineProperty(String.prototype,r,Ce(i));e("fromBase64",function(){return N(this)}),e("toBase64",function(r){return O(this,r)}),e("toBase64URI",function(){return O(this,!0)}),e("toBase64URL",function(){return O(this,!0)}),e("toUint8Array",function(){return Ie(this)})},Ae=function(){const e=(r,i)=>Object.defineProperty(Uint8Array.prototype,r,Ce(i));e("toBase64",function(r){return Y(this,r)}),e("toBase64URI",function(){return Y(this,!0)}),e("toBase64URL",function(){return Y(this,!0)})},Ht={version:oe,VERSION:ut,atob:_,atobPolyfill:be,btoa:X,btoaPolyfill:pe,fromBase64:N,toBase64:O,encode:O,encodeURI:ve,encodeURL:ve,utob:xe,btou:ge,decode:N,isValid:pt,fromUint8Array:Y,toUint8Array:Ie,extendString:Fe,extendUint8Array:Ae,extendBuiltins:()=>{Fe(),Ae()}};var xt=Ve.Z.Group,Xt=null,qt=null,I="message",Be=function(r){var i=N(r);if(i.includes("BPA_BASE64"))return!0},Se=function(r){return N(r).replace("BPA_BASE64","")},yt=function(){var r=(0,g.useRef)(),i=(0,g.useRef)(),p=(0,g.useState)(!1),v=(0,A.Z)(p,2),x=v[0],Z=v[1],C=(0,g.useState)(!1),M=(0,A.Z)(C,2),K=M[0],T=M[1],V=(0,g.useState)([]),B=(0,A.Z)(V,2),F=B[0],S=B[1],P=(0,g.useState)([]),ee=(0,A.Z)(P,2),$=ee[0],Te=ee[1],gt=(0,g.useState)(),Ee=(0,A.Z)(gt,2),w=Ee[0],U=Ee[1],bt=(0,g.useState)(!1),Re=(0,A.Z)(bt,2),Zt=Re[0],J=Re[1],It=(0,g.useState)([]),we=(0,A.Z)(It,2),jt=we[0],Ct=we[1],Ft=g.useState(),Ue=(0,A.Z)(Ft,2),ke=Ue[0],Me=Ue[1],At=(0,g.useState)(!1),Pe=(0,A.Z)(At,2),Bt=Pe[0],te=Pe[1],De=function(){var o=(0,j.Z)((0,m.Z)().mark(function l(n){return(0,m.Z)().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,et(n).then(function(u){S(u.data)});case 2:case"end":return a.stop()}},l)}));return function(n){return o.apply(this,arguments)}}(),St=function(){var o=(0,j.Z)((0,m.Z)().mark(function l(n){return(0,m.Z)().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return c.default.loading("\u6B63\u5728\u6DFB\u52A0...",I),a.prev=1,a.next=4,qe(JSON.stringify(n)).then(function(u){c.default.destroy(I),u.data?c.default.success("\u6DFB\u52A0\u6210\u529F"):c.default.error("\u6DFB\u52A0\u5931\u8D25")});case 4:return r.current.reload(),a.abrupt("return",!0);case 8:return a.prev=8,a.t0=a.catch(1),c.default.destroy(I),c.default.error("\u6DFB\u52A0\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),a.abrupt("return",!1);case 13:case"end":return a.stop()}},l,null,[[1,8]])}));return function(n){return o.apply(this,arguments)}}(),Tt=function(){var o=(0,j.Z)((0,m.Z)().mark(function l(n){return(0,m.Z)().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return c.default.loading("\u6B63\u5728\u4FEE\u6539...",I),a.prev=1,a.next=4,Xe(JSON.stringify(n)).then(function(u){c.default.destroy(I),u.data?c.default.success("\u4FEE\u6539\u6210\u529F"):c.default.error("\u4FEE\u6539\u5931\u8D25"+u.errors==null?"":u.errors)});case 4:return r.current.reload(),a.abrupt("return",!0);case 8:return a.prev=8,a.t0=a.catch(1),c.default.destroy(I),c.default.error("\u4FEE\u6539\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),a.abrupt("return",!1);case 13:case"end":return a.stop()}},l,null,[[1,8]])}));return function(n){return o.apply(this,arguments)}}(),Oe=function(){var o=(0,j.Z)((0,m.Z)().mark(function l(n){return(0,m.Z)().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return c.default.loading("\u6B63\u5728\u4FEE\u6539...",I),a.prev=1,a.next=4,Qe(JSON.stringify(n)).then(function(u){c.default.destroy(I),u.data?(De(n.Id),c.default.success("\u4FEE\u6539\u6210\u529F")):c.default.error("\u4FEE\u6539\u5931\u8D25"+u.errors==null?"":u.errors)});case 4:return r.current.reload(),a.abrupt("return",!0);case 8:return a.prev=8,a.t0=a.catch(1),c.default.destroy(I),c.default.error("\u4FEE\u6539\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),a.abrupt("return",!1);case 13:case"end":return a.stop()}},l,null,[[1,8]])}));return function(n){return o.apply(this,arguments)}}(),Et=function(){var o=(0,j.Z)((0,m.Z)().mark(function l(n,d){return(0,m.Z)().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return c.default.loading("\u6B63\u5728\u4FEE\u6539...",I),u.prev=1,u.next=4,_e(JSON.stringify({platformType:n,memberInfo_Id:d,tags:ke})).then(function(y){c.default.destroy(I),y.data?c.default.success("\u4FEE\u6539\u6210\u529F"):c.default.error("\u4FEE\u6539\u5931\u8D25"+y.errors==null?"":y.errors)});case 4:return r.current.reload(),u.abrupt("return",!0);case 8:return u.prev=8,u.t0=u.catch(1),c.default.destroy(I),c.default.error("\u4FEE\u6539\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),u.abrupt("return",!1);case 13:case"end":return u.stop()}},l,null,[[1,8]])}));return function(n,d){return o.apply(this,arguments)}}(),Le=function(){var o=(0,j.Z)((0,m.Z)().mark(function l(n,d){return(0,m.Z)().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.next=2,He(n,d).then(function(y){if(y.data){var E=[],Ne=[];y.data.forEach(function(Q){Q.memberTagInfoId!=null&&Ne.push(Q.id),E.push({label:Q.name,value:Q.id})}),Ct(E),Me(Ne)}});case 2:case"end":return u.stop()}},l)}));return function(n,d){return o.apply(this,arguments)}}(),Rt=[{title:"\u4E3B\u952E",dataIndex:"id",hideInSearch:!0,hideInTable:!0,tip:"\u89C4\u5219\u540D\u79F0\u662F\u552F\u4E00\u7684 key"},{title:"\u5934\u50CF",dataIndex:"headImgUrl",search:!1,hideInForm:!0,render:function(l,n){return(0,t.jsx)("img",{src:n.headImgUrl,style:{width:"45px",height:"45px"}})}},{title:"\u6635\u79F0",dataIndex:"nickName",valueType:"textarea",hideInForm:!0,render:function(l,n){return(0,t.jsx)("a",{children:Be(n.nickName)?Se(n.nickName):n.nickName})}},{title:"\u7535\u8BDD",dataIndex:"phone",valueType:"textarea",hideInForm:!0},{title:"\u6027\u522B",dataIndex:"sex",search:!1,valueEnum:{0:{text:"\u672A\u77E5"},1:{text:"\u7537"},2:{text:"\u5973"}}},{title:"\u7B49\u7EA7",dataIndex:"level",search:!1,valueType:"textarea"},{title:"\u72B6\u6001",dataIndex:"status",valueEnum:{0:{text:"\u542F\u7528",status:"Success"},1:{text:"\u7981\u7528",status:"error"}}},{title:"\u6807\u7B7E",dataIndex:"memberTag",search:!1,width:450,render:function(l,n){return(0,t.jsx)(ue.Z,{children:n.memberTag.map(function(d){var a=d.id,u=d.name;return(0,t.jsx)(se.Z,{color:"#87d068",children:u},a)})})}},{title:"\u521B\u5EFA\u65F6\u95F4",dataIndex:"createAt",search:!1,valueType:"textarea"},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(l,n){var d=[(0,t.jsx)("a",{type:"primary",onClick:function(){Z(!0),U(function(){return n.birthday=ie()(n.birthday),te(!0),n})},children:"\u8BE6\u60C5"},"primary"),(0,t.jsx)("a",{type:"primary",onClick:function(){Z(!0),U(function(){return n.birthday=ie()(n.birthday),te(!1),n})},children:"\u66F4\u65B0"},"primary"),(0,t.jsx)("a",{type:"primary",onClick:function(){var u={Id:n.id,platformType:0,status:n.status==0?1:0};Oe(u)},children:n.status==0?"\u7981\u7528 ":"\u542F\u7528"},"primary"),(0,t.jsx)("a",{type:"primary",onClick:function(){Le(n.id,0),J(!0),U(function(){return n})},children:"\u6807\u7B7E\u7BA1\u7406"},"primary"),(0,t.jsx)("a",{type:"primary",onClick:function(){U(n),T(!0)},children:"\u79EF\u5206\u8BB0\u5F55"},"primary")];return d}}],wt=function(l,n){l?(S(n.platformMemberInfos),Te([n.id])):Te([])},Ut=function(l){return(0,t.jsx)(H.ZP,{rowKey:"id",actionRef:i,columns:[{title:"\u5E73\u53F0",dataIndex:"platformType",key:"platformType",valueEnum:{1:{text:"\u5FAE\u4FE1"},2:{text:"\u652F\u4ED8\u5B9D"},3:{text:"POS"},4:{text:"\u50A8\u503C\u5361"}}},{title:"\u5934\u50CF",dataIndex:"headImgUrl",valueType:"textarea",search:!1,hideInForm:!0,render:function(d,a){return(0,t.jsx)("img",{src:a.headImgUrl,style:{width:"45px",height:"45px"}})}},{title:"\u6635\u79F0",dataIndex:"nickName",valueType:"textarea",hideInForm:!0,render:function(d,a){return(0,t.jsx)("a",{children:Be(a.nickName)?Se(a.nickName):a.nickName})}},{title:"\u6027\u522B",dataIndex:"sex",search:!1,valueEnum:{0:{text:"\u672A\u77E5"},1:{text:"\u7537"},2:{text:"\u5973"}}},{title:"\u72B6\u6001",dataIndex:"status",valueEnum:{0:{text:"\u542F\u7528",status:"Success"},1:{text:"\u7981\u7528",status:"error"}}},{title:"\u6807\u7B7E",dataIndex:"memberTag",key:"memberTag",width:450,render:function(d,a){return(0,t.jsx)(t.Fragment,{children:(0,t.jsx)(ue.Z,{children:a.memberTag.map(function(u){var y=u.id,E=u.name;return(0,t.jsx)(se.Z,{color:"#87d068",children:E},y)})})})}},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(d,a){var u=[(0,t.jsx)("a",{type:"primary",onClick:function(){var E={Id:a.memberInfo_Id,platformType:a.platformType,status:a.status==0?1:0};Oe(E)},children:a.status==0?"\u7981\u7528 ":"\u542F\u7528"},"primary"),(0,t.jsx)("a",{type:"primary",onClick:function(){Le(a.memberInfo_Id,a.platformType),J(!0),U(function(){return a}),De(a.memberInfo_Id)},children:"\u6807\u7B7E\u7BA1\u7406"},"primary")];return u}}],headerTitle:!1,search:!1,options:!1,dataSource:F,pagination:!1})};return(0,t.jsxs)(Ge.ZP,{children:[(0,t.jsx)(H.ZP,{headerTitle:"\u4F1A\u5458\u4FE1\u606F",actionRef:r,onExpand:wt,expandedRowKeys:$,rowKey:"id",toolBarRender:function(){return[(0,t.jsxs)(ne.Z,{type:"primary",onClick:function(){te(!1),U({}),Z(!0)},children:[(0,t.jsx)($e.Z,{})," \u6DFB\u52A0\u4F1A\u5458"]},"primary")]},expandable:{expandedRowRender:Ut},request:function(){var o=(0,j.Z)((0,m.Z)().mark(function l(n){var d,a;return(0,m.Z)().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:return d=[],a=0,y.next=4,Je(n).then(function(E){d=E.data.data,a=E.data.total});case 4:return y.abrupt("return",{data:d,success:!0,total:a});case 5:case"end":return y.stop()}},l)}));return function(l){return o.apply(this,arguments)}}(),columns:Rt}),(0,t.jsx)(Ye,{isLook:Bt,onFinish:function(){var o=(0,j.Z)((0,m.Z)().mark(function l(n){var d;return(0,m.Z)().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:n.birthday=n.birthday._i,d=!1,n.MemberInfo_Id=n.id,n.id?d=Tt(n):d=St(n),d&&(Z(!1),r.current&&r.current.reload());case 5:case"end":return u.stop()}},l)}));return function(l){return o.apply(this,arguments)}}(),onCancel:function(){U(void 0),Z(!1)},createModalVisible:x,values:w||{}}),(0,t.jsx)(ae.Z,{title:"\u4F1A\u5458\u6807\u7B7E",visible:Zt,onOk:function(){Et(w.platformType,w.platformType==0?w.id:w.memberInfo_Id)&&J(!1)},onCancel:function(){U([]),J(!1)},children:(0,t.jsx)(t.Fragment,{children:(0,t.jsx)(xt,{options:jt,value:ke,onChange:function(l){Me(l)}})})}),(0,t.jsx)(at,{onClose:function(){T(!1)},memberId:w==null?void 0:w.id,integralRecordVisible:K})]})},vt=yt}}]); diff --git a/dist/p__order__DailyReport.3051486a.async.js b/dist/p__order__DailyReport.3051486a.async.js deleted file mode 100644 index 7fe509f..0000000 --- a/dist/p__order__DailyReport.3051486a.async.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[3666,1322,9464,1981,2869,7013,9719,2383],{14837:function(T){T.exports={"welcome-head":"welcome-head___2tdoO","welcome-head-org":"welcome-head-org___M_H7T","echarts-card-choose":"echarts-card-choose___XEPoy","my-loading":"my-loading___3FU_O","device-list":"device-list___hC3Qm","my-range-picker":"my-range-picker___2rgCG","tabs-title":"tabs-title___3XoKj"}},80638:function(){},31436:function(T,_,e){"use strict";e.r(_),e.d(_,{default:function(){return Q}});var a=e(20228),i=e(11382),O=e(66456),x=e(64411),D=e(58024),c=e(91894),s=e(13062),b=e(71230),$=e(57663),P=e(71577),j=e(89032),w=e(15746),t=e(39428),H=e(3182),d=e(2824),v=e(14965),C=e(91774),n=e(18106),g=e(95562),r=e(67294),f=e(78009),y=e(14837),p=e.n(y),N=e(30381),u=e.n(N),I=e(48971),B={GetSalesReport:function(L){return(0,I.WY)("/kitchen/api/Order/GetDailyReport",{method:"Post",data:L})}},R=e(51496),l=e(85893),oe=g.Z.TabPane,J=C.Z.RangePicker,ee=function(){var L=(0,r.useState)("left"),z=(0,d.Z)(L,2),Z=z[0],te=z[1],V=(0,r.useState)(1),M=(0,d.Z)(V,2),h=M[0],o=M[1],W=(0,r.useState)([]),k=(0,d.Z)(W,2),ue=k[0],ie=k[1],X=(0,r.useState)([u()(u()(new Date(Date.now())).format("YYYY-MM-DD 00:00:00")),u()(u()(new Date(Date.now())).format("YYYY-MM-DD 23:59:59"))]),S=(0,d.Z)(X,2),ae=S[0],K=S[1],ne=(0,r.useState)(!1),q=(0,d.Z)(ne,2),fe=q[0],re=q[1],ce=[{title:"\u540D\u79F0",dataIndex:"name",width:100,hideInSearch:!0},{title:"\u91D1\u989D",dataIndex:"saleMoney",hideInSearch:!0}];(0,r.useEffect)(function(){se()},[h]);var se=function(){var G=(0,H.Z)((0,t.Z)().mark(function U(){var E,A,F;return(0,t.Z)().wrap(function(Y){for(;;)switch(Y.prev=Y.next){case 0:return re(!0),E=u()(ae[0]).format("YYYY-MM-DD HH:mm:ss"),A=u()(ae[1]).format("YYYY-MM-DD HH:mm:ss"),Y.next=5,B.GetSalesReport({type:h,startTime:E,endTime:A});case 5:F=Y.sent,F.forEach(function(le){le.key=(0,R.x0)()}),ie(F),re(!1);case 9:case"end":return Y.stop()}},U)}));return function(){return G.apply(this,arguments)}}();return(0,l.jsx)(l.Fragment,{children:(0,l.jsxs)(f.ZP,{children:[(0,l.jsx)(c.Z,{style:{marginBottom:"30px"},children:(0,l.jsxs)(b.Z,{children:[(0,l.jsx)(w.Z,{xs:24,sm:12,md:12,lg:12,xl:6,style:{margin:"10px 0"},children:(0,l.jsxs)("div",{className:p()["echarts-card-choose"],children:[(0,l.jsx)("div",{className:p()["echarts-card-choose-text"],children:"\u8D77\u6B62\u65F6\u95F4\uFF1A"}),(0,l.jsx)(J,{showTime:!0,style:{width:"70%"},className:p()["my-range-picker"],value:ae,onChange:function(U,E){var A=[u()(u()(new Date(E[0])).format("YYYY-MM-DD 00:00:00")),u()(u()(new Date(E[1])).format("YYYY-MM-DD 23:59:59"))];K(A)}})]})}),(0,l.jsxs)(w.Z,{xs:24,sm:12,md:12,lg:12,xl:6,style:{margin:"10px 0"},children:[(0,l.jsx)(P.Z,{className:p()["echarts-card-btn"],type:"primary",style:{width:"100px",marginRight:"10px"},onClick:function(){return se()},children:"\u67E5\u8BE2"}),(0,l.jsx)(P.Z,{className:p()["echarts-card-btn"],style:{width:"100px"},onClick:function(){K([u()(u()(new Date(Date.now())).format("YYYY-MM-DD 00:00:00")),u()(u()(new Date(Date.now())).format("YYYY-MM-DD 23:59:59"))])},children:"\u91CD\u7F6E"})]})]})}),(0,l.jsx)(c.Z,{children:(0,l.jsx)(i.Z,{spinning:fe,delay:500,children:(0,l.jsx)(g.Z,{tabPosition:Z,value:h,onChange:function(U){o(U)},items:new Array(2).fill(null).map(function(G,U){var E=String(U+1);return{label:E==1?"\u8425\u6536\u603B\u89C8":"\u652F\u4ED8\u6E20\u9053",key:E,children:(0,l.jsx)(x.Z,{columns:ce,dataSource:ue})}})})})})]})})},Q=ee},15746:function(T,_,e){"use strict";var a=e(21584);_.Z=a.Z},89032:function(T,_,e){"use strict";var a=e(38663),i=e.n(a),O=e(6999)},99134:function(T,_,e){"use strict";var a=e(67294),i=(0,a.createContext)({});_.Z=i},21584:function(T,_,e){"use strict";var a=e(96156),i=e(22122),O=e(90484),x=e(94184),D=e.n(x),c=e(67294),s=e(53124),b=e(99134),$=function(t,H){var d={};for(var v in t)Object.prototype.hasOwnProperty.call(t,v)&&H.indexOf(v)<0&&(d[v]=t[v]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var C=0,v=Object.getOwnPropertySymbols(t);C0){var te=r[0]/2;Z.paddingLeft=te,Z.paddingRight=te}if(r&&r[1]>0&&!y){var V=r[1]/2;Z.paddingTop=V,Z.paddingBottom=V}return J&&(Z.flex=P(J),f===!1&&!Z.minWidth&&(Z.minWidth=0)),c.createElement("div",(0,i.Z)({},Q,{style:(0,i.Z)((0,i.Z)({},Z),ee),className:z,ref:H}),oe)});_.Z=w},92820:function(T,_,e){"use strict";var a=e(22122),i=e(96156),O=e(90484),x=e(28481),D=e(94184),c=e.n(D),s=e(67294),b=e(53124),$=e(98082),P=e(24308),j=e(93355),w=e(99134),t=function(n,g){var r={};for(var f in n)Object.prototype.hasOwnProperty.call(n,f)&&g.indexOf(f)<0&&(r[f]=n[f]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var y=0,f=Object.getOwnPropertySymbols(n);y0?S[0]/-2:void 0,q=S[1]!=null&&S[1]>0?S[1]/-2:void 0;if(ne&&(K.marginLeft=ne,K.marginRight=ne),k){var fe=(0,x.Z)(S,2);K.rowGap=fe[1]}else q&&(K.marginTop=q,K.marginBottom=q);var re=(0,x.Z)(S,2),ce=re[0],se=re[1],G=s.useMemo(function(){return{gutter:[ce,se],wrap:l,supportFlexGap:k}},[ce,se,l,k]);return s.createElement(w.Z.Provider,{value:G},s.createElement("div",(0,a.Z)({},oe,{className:ae,style:(0,a.Z)((0,a.Z)({},K),u),ref:g}),I))});_.Z=C},6999:function(T,_,e){"use strict";var a=e(38663),i=e.n(a),O=e(80638),x=e.n(O)},71230:function(T,_,e){"use strict";var a=e(92820);_.Z=a.Z},13062:function(T,_,e){"use strict";var a=e(38663),i=e.n(a),O=e(6999)},51496:function(T,_,e){"use strict";e.d(_,{x0:function(){return x}});let a=D=>crypto.getRandomValues(new Uint8Array(D)),i=(D,c,s)=>{let b=(2<{let j="";for(;;){let w=s($),t=$;for(;t--;)if(j+=D[w[t]&b]||"",j.length===P)return j}}},O=(D,c=21)=>i(D,c,a),x=(D=21)=>crypto.getRandomValues(new Uint8Array(D)).reduce((c,s)=>(s&=63,s<36?c+=s.toString(36):s<62?c+=(s-26).toString(36).toUpperCase():s>62?c+="-":c+="_",c),"")}}]); diff --git a/dist/p__order__DailyReport.6172e159.async.js b/dist/p__order__DailyReport.6172e159.async.js new file mode 100644 index 0000000..5fa9d90 --- /dev/null +++ b/dist/p__order__DailyReport.6172e159.async.js @@ -0,0 +1 @@ +(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[3666,1322,1279,7800,6398,6794,944,8208],{14837:function(T){T.exports={"welcome-head":"welcome-head___2tdoO","welcome-head-org":"welcome-head-org___M_H7T","echarts-card-choose":"echarts-card-choose___XEPoy","my-loading":"my-loading___3FU_O","device-list":"device-list___hC3Qm","my-range-picker":"my-range-picker___2rgCG","tabs-title":"tabs-title___3XoKj"}},80638:function(){},31436:function(T,_,e){"use strict";e.r(_),e.d(_,{default:function(){return Q}});var a=e(20228),i=e(11382),O=e(66456),x=e(64411),D=e(58024),c=e(91894),s=e(13062),b=e(71230),$=e(57663),P=e(71577),j=e(89032),w=e(15746),t=e(39428),H=e(3182),d=e(2824),v=e(14965),C=e(91774),n=e(18106),g=e(36166),r=e(67294),f=e(78009),y=e(14837),p=e.n(y),N=e(30381),u=e.n(N),I=e(48971),B={GetSalesReport:function(L){return(0,I.WY)("/kitchen/api/Order/GetDailyReport",{method:"Post",data:L})}},R=e(51496),l=e(85893),oe=g.Z.TabPane,J=C.Z.RangePicker,ee=function(){var L=(0,r.useState)("left"),z=(0,d.Z)(L,2),Z=z[0],te=z[1],V=(0,r.useState)(1),M=(0,d.Z)(V,2),h=M[0],o=M[1],W=(0,r.useState)([]),k=(0,d.Z)(W,2),ue=k[0],ie=k[1],X=(0,r.useState)([u()(u()(new Date(Date.now())).format("YYYY-MM-DD 00:00:00")),u()(u()(new Date(Date.now())).format("YYYY-MM-DD 23:59:59"))]),S=(0,d.Z)(X,2),ae=S[0],K=S[1],ne=(0,r.useState)(!1),q=(0,d.Z)(ne,2),fe=q[0],re=q[1],ce=[{title:"\u540D\u79F0",dataIndex:"name",width:100,hideInSearch:!0},{title:"\u91D1\u989D",dataIndex:"saleMoney",hideInSearch:!0}];(0,r.useEffect)(function(){se()},[h]);var se=function(){var G=(0,H.Z)((0,t.Z)().mark(function U(){var E,A,F;return(0,t.Z)().wrap(function(Y){for(;;)switch(Y.prev=Y.next){case 0:return re(!0),E=u()(ae[0]).format("YYYY-MM-DD HH:mm:ss"),A=u()(ae[1]).format("YYYY-MM-DD HH:mm:ss"),Y.next=5,B.GetSalesReport({type:h,startTime:E,endTime:A});case 5:F=Y.sent,F.forEach(function(le){le.key=(0,R.x0)()}),ie(F),re(!1);case 9:case"end":return Y.stop()}},U)}));return function(){return G.apply(this,arguments)}}();return(0,l.jsx)(l.Fragment,{children:(0,l.jsxs)(f.ZP,{children:[(0,l.jsx)(c.Z,{style:{marginBottom:"30px"},children:(0,l.jsxs)(b.Z,{children:[(0,l.jsx)(w.Z,{xs:24,sm:12,md:12,lg:12,xl:6,style:{margin:"10px 0"},children:(0,l.jsxs)("div",{className:p()["echarts-card-choose"],children:[(0,l.jsx)("div",{className:p()["echarts-card-choose-text"],children:"\u8D77\u6B62\u65F6\u95F4\uFF1A"}),(0,l.jsx)(J,{showTime:!0,style:{width:"70%"},className:p()["my-range-picker"],value:ae,onChange:function(U,E){var A=[u()(u()(new Date(E[0])).format("YYYY-MM-DD 00:00:00")),u()(u()(new Date(E[1])).format("YYYY-MM-DD 23:59:59"))];K(A)}})]})}),(0,l.jsxs)(w.Z,{xs:24,sm:12,md:12,lg:12,xl:6,style:{margin:"10px 0"},children:[(0,l.jsx)(P.Z,{className:p()["echarts-card-btn"],type:"primary",style:{width:"100px",marginRight:"10px"},onClick:function(){return se()},children:"\u67E5\u8BE2"}),(0,l.jsx)(P.Z,{className:p()["echarts-card-btn"],style:{width:"100px"},onClick:function(){K([u()(u()(new Date(Date.now())).format("YYYY-MM-DD 00:00:00")),u()(u()(new Date(Date.now())).format("YYYY-MM-DD 23:59:59"))])},children:"\u91CD\u7F6E"})]})]})}),(0,l.jsx)(c.Z,{children:(0,l.jsx)(i.Z,{spinning:fe,delay:500,children:(0,l.jsx)(g.Z,{tabPosition:Z,value:h,onChange:function(U){o(U)},items:new Array(2).fill(null).map(function(G,U){var E=String(U+1);return{label:E==1?"\u8425\u6536\u603B\u89C8":"\u652F\u4ED8\u6E20\u9053",key:E,children:(0,l.jsx)(x.Z,{columns:ce,dataSource:ue})}})})})})]})})},Q=ee},15746:function(T,_,e){"use strict";var a=e(21584);_.Z=a.Z},89032:function(T,_,e){"use strict";var a=e(38663),i=e.n(a),O=e(6999)},99134:function(T,_,e){"use strict";var a=e(67294),i=(0,a.createContext)({});_.Z=i},21584:function(T,_,e){"use strict";var a=e(96156),i=e(22122),O=e(90484),x=e(94184),D=e.n(x),c=e(67294),s=e(53124),b=e(99134),$=function(t,H){var d={};for(var v in t)Object.prototype.hasOwnProperty.call(t,v)&&H.indexOf(v)<0&&(d[v]=t[v]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var C=0,v=Object.getOwnPropertySymbols(t);C0){var te=r[0]/2;Z.paddingLeft=te,Z.paddingRight=te}if(r&&r[1]>0&&!y){var V=r[1]/2;Z.paddingTop=V,Z.paddingBottom=V}return J&&(Z.flex=P(J),f===!1&&!Z.minWidth&&(Z.minWidth=0)),c.createElement("div",(0,i.Z)({},Q,{style:(0,i.Z)((0,i.Z)({},Z),ee),className:z,ref:H}),oe)});_.Z=w},92820:function(T,_,e){"use strict";var a=e(22122),i=e(96156),O=e(90484),x=e(28481),D=e(94184),c=e.n(D),s=e(67294),b=e(53124),$=e(98082),P=e(24308),j=e(93355),w=e(99134),t=function(n,g){var r={};for(var f in n)Object.prototype.hasOwnProperty.call(n,f)&&g.indexOf(f)<0&&(r[f]=n[f]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var y=0,f=Object.getOwnPropertySymbols(n);y0?S[0]/-2:void 0,q=S[1]!=null&&S[1]>0?S[1]/-2:void 0;if(ne&&(K.marginLeft=ne,K.marginRight=ne),k){var fe=(0,x.Z)(S,2);K.rowGap=fe[1]}else q&&(K.marginTop=q,K.marginBottom=q);var re=(0,x.Z)(S,2),ce=re[0],se=re[1],G=s.useMemo(function(){return{gutter:[ce,se],wrap:l,supportFlexGap:k}},[ce,se,l,k]);return s.createElement(w.Z.Provider,{value:G},s.createElement("div",(0,a.Z)({},oe,{className:ae,style:(0,a.Z)((0,a.Z)({},K),u),ref:g}),I))});_.Z=C},6999:function(T,_,e){"use strict";var a=e(38663),i=e.n(a),O=e(80638),x=e.n(O)},71230:function(T,_,e){"use strict";var a=e(92820);_.Z=a.Z},13062:function(T,_,e){"use strict";var a=e(38663),i=e.n(a),O=e(6999)},51496:function(T,_,e){"use strict";e.d(_,{x0:function(){return x}});let a=D=>crypto.getRandomValues(new Uint8Array(D)),i=(D,c,s)=>{let b=(2<{let j="";for(;;){let w=s($),t=$;for(;t--;)if(j+=D[w[t]&b]||"",j.length===P)return j}}},O=(D,c=21)=>i(D,c,a),x=(D=21)=>crypto.getRandomValues(new Uint8Array(D)).reduce((c,s)=>(s&=63,s<36?c+=s.toString(36):s<62?c+=(s-26).toString(36).toUpperCase():s>62?c+="-":c+="_",c),"")}}]); diff --git a/dist/p__order__cost-of-sales.de68d12b.async.js b/dist/p__order__cost-of-sales.de68d12b.async.js deleted file mode 100644 index 08e4c7c..0000000 --- a/dist/p__order__cost-of-sales.de68d12b.async.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[8387,1322,9464,1981,2869,7013,9719,2383],{21151:function(j){j.exports={"data-search-card":"data-search-card___2CvcD","data-search-box":"data-search-box___1PGzZ","search-btn-item":"search-btn-item___1e0rg","table-page":"table-page___docNF","loading-card":"loading-card___3JEuH","data-search-item":"data-search-item___3N1fL","data-search-input":"data-search-input___tj-G1","data-search-prefix":"data-search-prefix___ZSSA2","data-search-sufixx":"data-search-sufixx___lh3_G","data-search-btns":"data-search-btns___8r7Ga","download-btn":"download-btn___3pXdA"}},80638:function(){},30805:function(j,x,e){"use strict";e.r(x),e.d(x,{default:function(){return A}});var n=e(14781),E=e(36138),Z=e(66456),L=e(64411),ue=e(58024),W=e(91894),D=e(57663),$=e(71577),ce=e(13062),T=e(71230),se=e(43358),re=e(34041),r=e(89032),K=e(15746),P=e(62999),h=e(54680),S=e(93224),a=e(39428),C=e(34792),c=e(48086),i=e(3182),l=e(2824),z=e(20228),G=e(11382),k=e(14965),B=e(91774),d=e(67294),M=e(78009),Q=e(21151),v=e.n(Q),J=e(11849),b=e(48971),U={getReportSalescost:function(g){return(0,b.WY)("/kitchen/api/report/salescost",{method:"Post",data:g})},goodsList:function(g){return(0,b.WY)("/kitchen/api/goodes/list",{method:"Post",data:g})},goodsTypeList:function(g){return(0,b.WY)("/kitchen/api/goodstype/list",{method:"Post",data:g})},gettree:function(g){return(0,b.WY)("\u200B/kitchen/api\u200B/sysOrg\u200B/tree",{data:(0,J.Z)({},g)})}},y=e(30381),m=e.n(y),ne=e(90631),t=e(85893),q=["children"],H=B.Z.RangePicker,R=function(){return(0,t.jsx)("div",{className:v()["loading-card"],children:(0,t.jsx)(G.Z,{size:"large"})})};function A(){var u=(0,d.useState)([]),g=(0,l.Z)(u,2),oe=g[0],_e=g[1],me=(0,d.useState)(1),w=(0,l.Z)(me,2),I=w[0],he=w[1],F=(0,d.useState)(10),ee=(0,l.Z)(F,2),te=ee[0],ge=ee[1],de=(0,d.useState)(0),le=(0,l.Z)(de,2),ie=le[0],ye=le[1],fe=(0,d.useState)(!1),N=(0,l.Z)(fe,2),Y=N[0],O=N[1],ve=(0,d.useState)([m()(m()(new Date(Date.now()-24*60*60*1e3*7)).format("YYYY-MM-DD 00:00:00")),m()(m()(new Date(Date.now())).format("YYYY-MM-DD 23:59:59"))]),ae=(0,l.Z)(ve,2),X=ae[0],pe=ae[1],Le=(0,d.useState)(""),xe=(0,l.Z)(Le,2),De=xe[0],Pe=xe[1],Te=(0,d.useState)([]),Oe=(0,l.Z)(Te,2),Be=Oe[0],We=Oe[1],Ke=(0,d.useState)([]),Ze=(0,l.Z)(Ke,2),Ue=Ze[0],Ne=Ze[1],Ye=(0,d.useState)([]),Se=(0,l.Z)(Ye,2),Ce=Se[0],Me=Se[1],Ge=(0,d.useState)([]),Re=(0,l.Z)(Ge,2),Ee=Re[0],be=Re[1],we=(0,d.useState)([]),Ae=(0,l.Z)(we,2),Fe=Ae[0],$e=Ae[1],ze=(0,d.useState)([]),Ie=(0,l.Z)(ze,2),tt=Ie[0],Qe=Ie[1],Je=function(o,s){he(o),ge(s)},He=[{title:"\u95E8\u5E97\u540D\u79F0",dataIndex:"storeId",key:"storeId",render:function(o){var s=Ue.find(function(p){return p.key===o});return s?(0,t.jsx)("span",{children:s.title}):(0,t.jsx)("span",{children:"\u6682\u65E0\u95E8\u5E97\u540D\u79F0"})}},{title:"\u5546\u54C1\u540D\u79F0",dataIndex:"goodsId",key:"goodsId",render:function(o){var s=Ee.find(function(p){return p.id===o});return console.log(">>>>",Ee,o,s),s?(0,t.jsx)("span",{children:s.name}):(0,t.jsx)("span",{children:"\u6682\u65E0\u5546\u54C1\u540D\u79F0"})}},{title:"\u9500\u552E\u6536\u5165",dataIndex:"salesPrice",key:"salesPrice"},{title:"\u9500\u552E\u6210\u672C",dataIndex:"costPrice",key:"costPrice"},{title:"\u9500\u552E\u6570\u91CF",dataIndex:"salesNum",key:"salesNum"},{title:"\u6210\u672C\u7387\uFF08%\uFF09",dataIndex:"costRate",key:"costRate"}],je=function(){var _=(0,i.Z)((0,a.Z)().mark(function o(){var s,p;return(0,a.Z)().wrap(function(V){for(;;)switch(V.prev=V.next){case 0:return s={storeId:De,goodsId:Ce[0],goodsTypeId:Fe[0],begintime:X[0],endtime:X[1],current:I,pageSize:te},O(!0),V.next=4,U.getReportSalescost(s);case 4:p=V.sent,O(!1),p.statusCode===200?_e(p.data.data):c.default.error(p.errors||"\u83B7\u53D6\u9500\u552E\u6210\u672C\u5931\u8D25");case 7:case"end":return V.stop()}},o)}));return function(){return _.apply(this,arguments)}}(),Xe=function(){var _=(0,i.Z)((0,a.Z)().mark(function o(){var s;return(0,a.Z)().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return O(!0),f.next=3,U.gettree();case 3:s=f.sent,O(!1),s.statusCode===200?(We(s.data),Ne(et(s.data))):c.default.error("\u67E5\u8BE2\u5E97\u94FA\u5217\u8868\u5931\u8D25");case 6:case"end":return f.stop()}},o)}));return function(){return _.apply(this,arguments)}}(),Ve=function(){var _=(0,i.Z)((0,a.Z)().mark(function o(){var s;return(0,a.Z)().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return O(!0),f.next=3,U.goodsList();case 3:s=f.sent,O(!1),s.statusCode===200?be(s.data):c.default.error("\u67E5\u8BE2\u5546\u54C1\u5217\u8868\u5931\u8D25");case 6:case"end":return f.stop()}},o)}));return function(){return _.apply(this,arguments)}}(),ke=function(){var _=(0,i.Z)((0,a.Z)().mark(function o(){var s;return(0,a.Z)().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return O(!0),f.next=3,U.goodsTypeList();case 3:s=f.sent,O(!1),s.statusCode===200?Qe(s.data):c.default.error("\u67E5\u8BE2\u5546\u54C1\u5206\u7C7B\u5217\u8868\u5931\u8D25");case 6:case"end":return f.stop()}},o)}));return function(){return _.apply(this,arguments)}}(),qe=function(){Me([]),Pe([]),$e([]),pe([m()(m()(new Date(Date.now()-24*60*60*1e3*7)).format("YYYY-MM-DD 00:00:00")),m()(m()(new Date(Date.now())).format("YYYY-MM-DD 23:59:59"))])},et=function _(o){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return o.forEach(function(p){var f=p.children,V=(0,S.Z)(p,q);s.push(V),f&&f.length>0&&_(f,s)}),s};return(0,d.useEffect)(function(){je(),Xe(),Ve(),ke()},[]),(0,t.jsxs)(M.ZP,{children:[Y?(0,t.jsx)(R,{}):null,(0,t.jsxs)(W.Z,{className:v()["data-search-card"],children:[(0,t.jsxs)(T.Z,{gutter:20,justify:"space-between",children:[(0,t.jsxs)(K.Z,{xs:24,sm:24,md:12,lg:12,xl:6,className:v()["data-search-item"],children:[(0,t.jsx)("div",{className:v()["data-search-prefix"],children:"\u95E8\u5E97"}),(0,t.jsx)(h.Z,{className:v()["data-search-sufixx"],value:De,dropdownStyle:{maxHeight:400,overflow:"auto"},treeData:Be,placeholder:"\u8BF7\u9009\u62E9\u95E8\u5E97",treeDefaultExpandAll:!0,onChange:function(o){return Pe(o)}})]}),(0,t.jsxs)(K.Z,{xs:24,sm:24,md:12,lg:12,xl:6,className:v()["data-search-item"],children:[(0,t.jsx)("div",{className:v()["data-search-prefix"],children:"\u5546\u54C1"}),(0,t.jsx)(re.Z,{className:v()["data-search-sufixx"],showSearch:!0,mode:"tags",size:"middle",allowClear:!0,placeholder:"\u8BF7\u9009\u62E9\u5546\u54C1",value:Ce,onChange:function(o){return Me(o)},filterOption:function(o,s){return s.children.toLowerCase().includes(o.toLowerCase())},children:Ee.map(function(_,o){return(0,t.jsx)(Option,{children:_.name},_.id)})})]}),(0,t.jsxs)(K.Z,{xs:24,sm:24,md:12,lg:12,xl:6,className:v()["data-search-item"],children:[(0,t.jsx)("div",{className:v()["data-search-prefix"],children:"\u8D77\u59CB\u65F6\u95F4"}),(0,t.jsx)(H,{size:"middle",className:v()["data-search-sufixx"],value:X,onChange:function(o,s){var p=[m()(m()(new Date(s[0])).format("YYYY-MM-DD 00:00:00")),m()(m()(new Date(s[1])).format("YYYY-MM-DD 23:59:59"))];pe(p)}})]})]}),(0,t.jsxs)("div",{className:v()["data-search-btns"],children:[(0,t.jsx)($.Z,{className:v()["search-btn-item"],onClick:qe,children:"\u91CD\u7F6E"}),(0,t.jsx)($.Z,{className:v()["search-btn-item"],type:"primary",onClick:je,children:"\u67E5\u8BE2"})]})]}),(0,t.jsxs)(W.Z,{className:v()["table-card"],children:[(0,t.jsx)("div",{className:v()["download-btn"],children:(0,t.jsx)($.Z,{type:"primary",icon:(0,t.jsx)(ne.Z,{}),size:"middle",children:"\u4E0B\u8F7D"})}),(0,t.jsx)(L.Z,{dataSource:oe,columns:He,pagination:!1}),(0,t.jsx)("div",{className:v()["table-page"],children:(0,t.jsx)(E.Z,{current:I,pageSize:te,total:ie,onChange:Je})})]})]})}},15746:function(j,x,e){"use strict";var n=e(21584);x.Z=n.Z},89032:function(j,x,e){"use strict";var n=e(38663),E=e.n(n),Z=e(6999)},99134:function(j,x,e){"use strict";var n=e(67294),E=(0,n.createContext)({});x.Z=E},21584:function(j,x,e){"use strict";var n=e(96156),E=e(22122),Z=e(90484),L=e(94184),ue=e.n(L),W=e(67294),D=e(53124),$=e(99134),ce=function(r,K){var P={};for(var h in r)Object.prototype.hasOwnProperty.call(r,h)&&K.indexOf(h)<0&&(P[h]=r[h]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var S=0,h=Object.getOwnPropertySymbols(r);S0){var q=c[0]/2;t.paddingLeft=q,t.paddingRight=q}if(c&&c[1]>0&&!l){var H=c[1]/2;t.paddingTop=H,t.paddingBottom=H}return J&&(t.flex=T(J),i===!1&&!t.minWidth&&(t.minWidth=0)),W.createElement("div",(0,E.Z)({},U,{style:(0,E.Z)((0,E.Z)({},t),b),className:ne,ref:K}),v)});x.Z=re},92820:function(j,x,e){"use strict";var n=e(22122),E=e(96156),Z=e(90484),L=e(28481),ue=e(94184),W=e.n(ue),D=e(67294),$=e(53124),ce=e(98082),T=e(24308),se=e(93355),re=e(99134),r=function(a,C){var c={};for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&C.indexOf(i)<0&&(c[i]=a[i]);if(a!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,i=Object.getOwnPropertySymbols(a);l0?I[0]/-2:void 0,te=I[1]!=null&&I[1]>0?I[1]/-2:void 0;if(ee&&(F.marginLeft=ee,F.marginRight=ee),oe){var ge=(0,L.Z)(I,2);F.rowGap=ge[1]}else te&&(F.marginTop=te,F.marginBottom=te);var de=(0,L.Z)(I,2),le=de[0],ie=de[1],ye=D.useMemo(function(){return{gutter:[le,ie],wrap:Q,supportFlexGap:oe}},[le,ie,Q,oe]);return D.createElement(re.Z.Provider,{value:ye},D.createElement("div",(0,n.Z)({},v,{className:he,style:(0,n.Z)((0,n.Z)({},F),k),ref:C}),B))});x.Z=S},6999:function(j,x,e){"use strict";var n=e(38663),E=e.n(n),Z=e(80638),L=e.n(Z)},71230:function(j,x,e){"use strict";var n=e(92820);x.Z=n.Z},13062:function(j,x,e){"use strict";var n=e(38663),E=e.n(n),Z=e(6999)}}]); diff --git a/dist/p__order__cost-of-sales.e75bd719.async.js b/dist/p__order__cost-of-sales.e75bd719.async.js new file mode 100644 index 0000000..78685a4 --- /dev/null +++ b/dist/p__order__cost-of-sales.e75bd719.async.js @@ -0,0 +1 @@ +(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[8387,1322,1279,7800,6398,6794,944,8208],{21151:function(j){j.exports={"data-search-card":"data-search-card___2CvcD","data-search-box":"data-search-box___1PGzZ","search-btn-item":"search-btn-item___1e0rg","table-page":"table-page___docNF","loading-card":"loading-card___3JEuH","data-search-item":"data-search-item___3N1fL","data-search-input":"data-search-input___tj-G1","data-search-prefix":"data-search-prefix___ZSSA2","data-search-sufixx":"data-search-sufixx___lh3_G","data-search-btns":"data-search-btns___8r7Ga","download-btn":"download-btn___3pXdA"}},80638:function(){},30805:function(j,x,e){"use strict";e.r(x),e.d(x,{default:function(){return A}});var n=e(14781),E=e(36138),Z=e(66456),L=e(64411),ue=e(58024),W=e(91894),D=e(57663),$=e(71577),ce=e(13062),T=e(71230),se=e(43358),re=e(34041),r=e(89032),K=e(15746),P=e(62999),h=e(54680),S=e(93224),a=e(39428),C=e(34792),c=e(48086),i=e(3182),l=e(2824),z=e(20228),G=e(11382),k=e(14965),B=e(91774),d=e(67294),M=e(78009),Q=e(21151),v=e.n(Q),J=e(11849),b=e(48971),U={getReportSalescost:function(g){return(0,b.WY)("/kitchen/api/report/salescost",{method:"Post",data:g})},goodsList:function(g){return(0,b.WY)("/kitchen/api/goodes/list",{method:"Post",data:g})},goodsTypeList:function(g){return(0,b.WY)("/kitchen/api/goodstype/list",{method:"Post",data:g})},gettree:function(g){return(0,b.WY)("\u200B/kitchen/api\u200B/sysOrg\u200B/tree",{data:(0,J.Z)({},g)})}},y=e(30381),m=e.n(y),ne=e(90631),t=e(85893),q=["children"],H=B.Z.RangePicker,R=function(){return(0,t.jsx)("div",{className:v()["loading-card"],children:(0,t.jsx)(G.Z,{size:"large"})})};function A(){var u=(0,d.useState)([]),g=(0,l.Z)(u,2),oe=g[0],_e=g[1],me=(0,d.useState)(1),w=(0,l.Z)(me,2),I=w[0],he=w[1],F=(0,d.useState)(10),ee=(0,l.Z)(F,2),te=ee[0],ge=ee[1],de=(0,d.useState)(0),le=(0,l.Z)(de,2),ie=le[0],ye=le[1],fe=(0,d.useState)(!1),N=(0,l.Z)(fe,2),Y=N[0],O=N[1],ve=(0,d.useState)([m()(m()(new Date(Date.now()-24*60*60*1e3*7)).format("YYYY-MM-DD 00:00:00")),m()(m()(new Date(Date.now())).format("YYYY-MM-DD 23:59:59"))]),ae=(0,l.Z)(ve,2),X=ae[0],pe=ae[1],Le=(0,d.useState)(""),xe=(0,l.Z)(Le,2),De=xe[0],Pe=xe[1],Te=(0,d.useState)([]),Oe=(0,l.Z)(Te,2),Be=Oe[0],We=Oe[1],Ke=(0,d.useState)([]),Ze=(0,l.Z)(Ke,2),Ue=Ze[0],Ne=Ze[1],Ye=(0,d.useState)([]),Se=(0,l.Z)(Ye,2),Ce=Se[0],Me=Se[1],Ge=(0,d.useState)([]),Re=(0,l.Z)(Ge,2),Ee=Re[0],be=Re[1],we=(0,d.useState)([]),Ae=(0,l.Z)(we,2),Fe=Ae[0],$e=Ae[1],ze=(0,d.useState)([]),Ie=(0,l.Z)(ze,2),tt=Ie[0],Qe=Ie[1],Je=function(o,s){he(o),ge(s)},He=[{title:"\u95E8\u5E97\u540D\u79F0",dataIndex:"storeId",key:"storeId",render:function(o){var s=Ue.find(function(p){return p.key===o});return s?(0,t.jsx)("span",{children:s.title}):(0,t.jsx)("span",{children:"\u6682\u65E0\u95E8\u5E97\u540D\u79F0"})}},{title:"\u5546\u54C1\u540D\u79F0",dataIndex:"goodsId",key:"goodsId",render:function(o){var s=Ee.find(function(p){return p.id===o});return console.log(">>>>",Ee,o,s),s?(0,t.jsx)("span",{children:s.name}):(0,t.jsx)("span",{children:"\u6682\u65E0\u5546\u54C1\u540D\u79F0"})}},{title:"\u9500\u552E\u6536\u5165",dataIndex:"salesPrice",key:"salesPrice"},{title:"\u9500\u552E\u6210\u672C",dataIndex:"costPrice",key:"costPrice"},{title:"\u9500\u552E\u6570\u91CF",dataIndex:"salesNum",key:"salesNum"},{title:"\u6210\u672C\u7387\uFF08%\uFF09",dataIndex:"costRate",key:"costRate"}],je=function(){var _=(0,i.Z)((0,a.Z)().mark(function o(){var s,p;return(0,a.Z)().wrap(function(V){for(;;)switch(V.prev=V.next){case 0:return s={storeId:De,goodsId:Ce[0],goodsTypeId:Fe[0],begintime:X[0],endtime:X[1],current:I,pageSize:te},O(!0),V.next=4,U.getReportSalescost(s);case 4:p=V.sent,O(!1),p.statusCode===200?_e(p.data.data):c.default.error(p.errors||"\u83B7\u53D6\u9500\u552E\u6210\u672C\u5931\u8D25");case 7:case"end":return V.stop()}},o)}));return function(){return _.apply(this,arguments)}}(),Xe=function(){var _=(0,i.Z)((0,a.Z)().mark(function o(){var s;return(0,a.Z)().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return O(!0),f.next=3,U.gettree();case 3:s=f.sent,O(!1),s.statusCode===200?(We(s.data),Ne(et(s.data))):c.default.error("\u67E5\u8BE2\u5E97\u94FA\u5217\u8868\u5931\u8D25");case 6:case"end":return f.stop()}},o)}));return function(){return _.apply(this,arguments)}}(),Ve=function(){var _=(0,i.Z)((0,a.Z)().mark(function o(){var s;return(0,a.Z)().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return O(!0),f.next=3,U.goodsList();case 3:s=f.sent,O(!1),s.statusCode===200?be(s.data):c.default.error("\u67E5\u8BE2\u5546\u54C1\u5217\u8868\u5931\u8D25");case 6:case"end":return f.stop()}},o)}));return function(){return _.apply(this,arguments)}}(),ke=function(){var _=(0,i.Z)((0,a.Z)().mark(function o(){var s;return(0,a.Z)().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return O(!0),f.next=3,U.goodsTypeList();case 3:s=f.sent,O(!1),s.statusCode===200?Qe(s.data):c.default.error("\u67E5\u8BE2\u5546\u54C1\u5206\u7C7B\u5217\u8868\u5931\u8D25");case 6:case"end":return f.stop()}},o)}));return function(){return _.apply(this,arguments)}}(),qe=function(){Me([]),Pe([]),$e([]),pe([m()(m()(new Date(Date.now()-24*60*60*1e3*7)).format("YYYY-MM-DD 00:00:00")),m()(m()(new Date(Date.now())).format("YYYY-MM-DD 23:59:59"))])},et=function _(o){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return o.forEach(function(p){var f=p.children,V=(0,S.Z)(p,q);s.push(V),f&&f.length>0&&_(f,s)}),s};return(0,d.useEffect)(function(){je(),Xe(),Ve(),ke()},[]),(0,t.jsxs)(M.ZP,{children:[Y?(0,t.jsx)(R,{}):null,(0,t.jsxs)(W.Z,{className:v()["data-search-card"],children:[(0,t.jsxs)(T.Z,{gutter:20,justify:"space-between",children:[(0,t.jsxs)(K.Z,{xs:24,sm:24,md:12,lg:12,xl:6,className:v()["data-search-item"],children:[(0,t.jsx)("div",{className:v()["data-search-prefix"],children:"\u95E8\u5E97"}),(0,t.jsx)(h.Z,{className:v()["data-search-sufixx"],value:De,dropdownStyle:{maxHeight:400,overflow:"auto"},treeData:Be,placeholder:"\u8BF7\u9009\u62E9\u95E8\u5E97",treeDefaultExpandAll:!0,onChange:function(o){return Pe(o)}})]}),(0,t.jsxs)(K.Z,{xs:24,sm:24,md:12,lg:12,xl:6,className:v()["data-search-item"],children:[(0,t.jsx)("div",{className:v()["data-search-prefix"],children:"\u5546\u54C1"}),(0,t.jsx)(re.Z,{className:v()["data-search-sufixx"],showSearch:!0,mode:"tags",size:"middle",allowClear:!0,placeholder:"\u8BF7\u9009\u62E9\u5546\u54C1",value:Ce,onChange:function(o){return Me(o)},filterOption:function(o,s){return s.children.toLowerCase().includes(o.toLowerCase())},children:Ee.map(function(_,o){return(0,t.jsx)(Option,{children:_.name},_.id)})})]}),(0,t.jsxs)(K.Z,{xs:24,sm:24,md:12,lg:12,xl:6,className:v()["data-search-item"],children:[(0,t.jsx)("div",{className:v()["data-search-prefix"],children:"\u8D77\u59CB\u65F6\u95F4"}),(0,t.jsx)(H,{size:"middle",className:v()["data-search-sufixx"],value:X,onChange:function(o,s){var p=[m()(m()(new Date(s[0])).format("YYYY-MM-DD 00:00:00")),m()(m()(new Date(s[1])).format("YYYY-MM-DD 23:59:59"))];pe(p)}})]})]}),(0,t.jsxs)("div",{className:v()["data-search-btns"],children:[(0,t.jsx)($.Z,{className:v()["search-btn-item"],onClick:qe,children:"\u91CD\u7F6E"}),(0,t.jsx)($.Z,{className:v()["search-btn-item"],type:"primary",onClick:je,children:"\u67E5\u8BE2"})]})]}),(0,t.jsxs)(W.Z,{className:v()["table-card"],children:[(0,t.jsx)("div",{className:v()["download-btn"],children:(0,t.jsx)($.Z,{type:"primary",icon:(0,t.jsx)(ne.Z,{}),size:"middle",children:"\u4E0B\u8F7D"})}),(0,t.jsx)(L.Z,{dataSource:oe,columns:He,pagination:!1}),(0,t.jsx)("div",{className:v()["table-page"],children:(0,t.jsx)(E.Z,{current:I,pageSize:te,total:ie,onChange:Je})})]})]})}},15746:function(j,x,e){"use strict";var n=e(21584);x.Z=n.Z},89032:function(j,x,e){"use strict";var n=e(38663),E=e.n(n),Z=e(6999)},99134:function(j,x,e){"use strict";var n=e(67294),E=(0,n.createContext)({});x.Z=E},21584:function(j,x,e){"use strict";var n=e(96156),E=e(22122),Z=e(90484),L=e(94184),ue=e.n(L),W=e(67294),D=e(53124),$=e(99134),ce=function(r,K){var P={};for(var h in r)Object.prototype.hasOwnProperty.call(r,h)&&K.indexOf(h)<0&&(P[h]=r[h]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var S=0,h=Object.getOwnPropertySymbols(r);S0){var q=c[0]/2;t.paddingLeft=q,t.paddingRight=q}if(c&&c[1]>0&&!l){var H=c[1]/2;t.paddingTop=H,t.paddingBottom=H}return J&&(t.flex=T(J),i===!1&&!t.minWidth&&(t.minWidth=0)),W.createElement("div",(0,E.Z)({},U,{style:(0,E.Z)((0,E.Z)({},t),b),className:ne,ref:K}),v)});x.Z=re},92820:function(j,x,e){"use strict";var n=e(22122),E=e(96156),Z=e(90484),L=e(28481),ue=e(94184),W=e.n(ue),D=e(67294),$=e(53124),ce=e(98082),T=e(24308),se=e(93355),re=e(99134),r=function(a,C){var c={};for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&C.indexOf(i)<0&&(c[i]=a[i]);if(a!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,i=Object.getOwnPropertySymbols(a);l0?I[0]/-2:void 0,te=I[1]!=null&&I[1]>0?I[1]/-2:void 0;if(ee&&(F.marginLeft=ee,F.marginRight=ee),oe){var ge=(0,L.Z)(I,2);F.rowGap=ge[1]}else te&&(F.marginTop=te,F.marginBottom=te);var de=(0,L.Z)(I,2),le=de[0],ie=de[1],ye=D.useMemo(function(){return{gutter:[le,ie],wrap:Q,supportFlexGap:oe}},[le,ie,Q,oe]);return D.createElement(re.Z.Provider,{value:ye},D.createElement("div",(0,n.Z)({},v,{className:he,style:(0,n.Z)((0,n.Z)({},F),k),ref:C}),B))});x.Z=S},6999:function(j,x,e){"use strict";var n=e(38663),E=e.n(n),Z=e(80638),L=e.n(Z)},71230:function(j,x,e){"use strict";var n=e(92820);x.Z=n.Z},13062:function(j,x,e){"use strict";var n=e(38663),E=e.n(n),Z=e(6999)}}]); diff --git a/dist/p__order__gross-profit-store-sales.45c43365.async.js b/dist/p__order__gross-profit-store-sales.45c43365.async.js new file mode 100644 index 0000000..aec281b --- /dev/null +++ b/dist/p__order__gross-profit-store-sales.45c43365.async.js @@ -0,0 +1 @@ +(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[5003,1322,1279,7800,6398,6794,944,8208],{1759:function(R){R.exports={"data-search-card":"data-search-card____3y2v","data-search-box":"data-search-box___18vv5","search-btn-item":"search-btn-item___1bmDV","table-page":"table-page___3xfjM","loading-card":"loading-card___dcQnu","data-search-item":"data-search-item___23DXw","data-search-input":"data-search-input___3WC5d","data-search-prefix":"data-search-prefix___Psc0s","data-search-sufixx":"data-search-sufixx___1MMan","data-search-btns":"data-search-btns___OgJ-7","download-btn":"download-btn___3uVYa"}},80638:function(){},3608:function(R,E,e){"use strict";e.r(E),e.d(E,{default:function(){return w}});var n=e(14781),i=e(36138),P=e(66456),A=e(64411),ue=e(58024),W=e(91894),h=e(13062),ee=e(71230),ce=e(57663),M=e(71577),te=e(89032),H=e(15746),a=e(62999),F=e(54680),D=e(93224),o=e(39428),Z=e(34792),r=e(48086),x=e(3182),s=e(2824),d=e(20228),y=e(11382),$=e(14965),N=e(91774),_=e(67294),j=e(78009),I=e(1759),l=e.n(I),G=e(11849),V=e(48971),b={getReportOrgsalesmargin:function(v){return(0,V.WY)("/kitchen/api/report/orgsalesmargin",{method:"Post",data:v})},gettree:function(v){return(0,V.WY)("\u200B/kitchen/api\u200B/sysOrg\u200B/tree",{data:(0,G.Z)({},v)})}},ae=e(30381),f=e.n(ae),m=e(90631),t=e(85893),re=["children"],C=N.Z.RangePicker,X=function(){return(0,t.jsx)("div",{className:l()["loading-card"],children:(0,t.jsx)(y.Z,{size:"large"})})};function w(){var g=(0,_.useState)([]),v=(0,s.Z)(g,2),u=v[0],K=v[1],se=(0,_.useState)(1),de=(0,s.Z)(se,2),ie=de[0],z=de[1],L=(0,_.useState)(10),fe=(0,s.Z)(L,2),U=fe[0],ne=fe[1],le=(0,_.useState)(0),ve=(0,s.Z)(le,2),_e=ve[0],he=ve[1],me=(0,_.useState)(!1),Ee=(0,s.Z)(me,2),ge=Ee[0],S=Ee[1],Y=(0,_.useState)([f()(f()(new Date(Date.now()-24*60*60*1e3*7)).format("YYYY-MM-DD 00:00:00")),f()(f()(new Date(Date.now())).format("YYYY-MM-DD 23:59:59"))]),J=(0,s.Z)(Y,2),k=J[0],q=J[1],oe=(0,_.useState)([]),De=(0,s.Z)(oe,2),xe=De[0],ye=De[1],Ce=(0,_.useState)([]),Oe=(0,s.Z)(Ce,2),pe=Oe[0],Ze=Oe[1],Se=(0,_.useState)([]),Pe=(0,s.Z)(Se,2),Re=Pe[0],Ae=Pe[1],je=[{title:"\u95E8\u5E97\u540D\u79F0",dataIndex:"storeId",key:"storeId",render:function(O){var c=Re.find(function(p){return p.key===O});return c?(0,t.jsx)("span",{children:c.title}):(0,t.jsx)("span",{children:"\u6682\u65E0\u95E8\u5E97\u540D\u79F0"})}},{title:"\u6BDB\u5229\u7387\uFF08%\uFF09",dataIndex:"marginRatio",key:"marginRatio"}],Ie=function(O,c){z(O),ne(c)},Me=function(){var T=(0,x.Z)((0,o.Z)().mark(function O(){var c,p;return(0,o.Z)().wrap(function(Q){for(;;)switch(Q.prev=Q.next){case 0:return c={storeId:xe[0],begintime:k[0],endtime:k[1],current:ie,pageSize:U},S(!0),Q.next=4,b.getReportOrgsalesmargin(c);case 4:p=Q.sent,S(!1),p.statusCode===200?K(p.data.data):r.default.error(p.errors||"\u83B7\u53D6\u9500\u552E\u6210\u672C\u5931\u8D25");case 7:case"end":return Q.stop()}},O)}));return function(){return T.apply(this,arguments)}}(),Le=function(){var T=(0,x.Z)((0,o.Z)().mark(function O(){var c;return(0,o.Z)().wrap(function(B){for(;;)switch(B.prev=B.next){case 0:return S(!0),B.next=3,b.gettree({});case 3:c=B.sent,S(!1),c.statusCode===200?(Ze(c.data),Ae(Be(c.data))):r.default.error("\u67E5\u8BE2\u5E97\u94FA\u5217\u8868\u5931\u8D25");case 6:case"end":return B.stop()}},O)}));return function(){return T.apply(this,arguments)}}(),Te=function(){ye([]),q([f()(f()(new Date(Date.now()-24*60*60*1e3*7)).format("YYYY-MM-DD 00:00:00")),f()(f()(new Date(Date.now())).format("YYYY-MM-DD 23:59:59"))])},Be=function T(O){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return O.forEach(function(p){var B=p.children,Q=(0,D.Z)(p,re);c.push(Q),B&&B.length>0&&T(B,c)}),c};return(0,_.useEffect)(function(){Me(),Le()},[]),(0,t.jsxs)(j.ZP,{children:[ge?(0,t.jsx)(X,{}):null,(0,t.jsx)(W.Z,{className:l()["data-search-card"],children:(0,t.jsxs)(ee.Z,{gutter:20,justify:"start",children:[(0,t.jsxs)(H.Z,{xs:24,sm:24,md:12,lg:12,xl:8,className:l()["data-search-item"],children:[(0,t.jsx)("div",{className:l()["data-search-prefix"],children:"\u95E8\u5E97"}),(0,t.jsx)(F.Z,{className:l()["data-search-sufixx"],value:xe,dropdownStyle:{maxHeight:400,overflow:"auto"},treeData:pe,placeholder:"\u8BF7\u9009\u62E9\u95E8\u5E97",treeDefaultExpandAll:!0,onChange:function(O){return ye(O)}})]}),(0,t.jsxs)(H.Z,{xs:24,sm:24,md:12,lg:12,xl:8,className:l()["data-search-item"],children:[(0,t.jsx)("div",{className:l()["data-search-prefix"],children:"\u8D77\u59CB\u65F6\u95F4"}),(0,t.jsx)(C,{size:"middle",className:l()["data-search-sufixx"],value:k,onChange:function(O,c){var p=[f()(f()(new Date(c[0])).format("YYYY-MM-DD 00:00:00")),f()(f()(new Date(c[1])).format("YYYY-MM-DD 23:59:59"))];q(p)}})]}),(0,t.jsxs)("div",{className:l()["data-search-btns"],children:[(0,t.jsx)(M.Z,{className:l()["search-btn-item"],onClick:Te,children:"\u91CD\u7F6E"}),(0,t.jsx)(M.Z,{className:l()["search-btn-item"],type:"primary",onClick:Me,children:"\u67E5\u8BE2"})]})]})}),(0,t.jsxs)(W.Z,{className:l()["table-card"],children:[(0,t.jsx)("div",{className:l()["download-btn"],children:(0,t.jsx)(M.Z,{type:"primary",icon:(0,t.jsx)(m.Z,{}),size:"middle",children:"\u4E0B\u8F7D"})}),(0,t.jsx)(A.Z,{dataSource:u,columns:je,pagination:!1}),(0,t.jsx)("div",{className:l()["table-page"],children:(0,t.jsx)(i.Z,{current:ie,pageSize:U,total:_e,onChange:Ie})})]})]})}},15746:function(R,E,e){"use strict";var n=e(21584);E.Z=n.Z},89032:function(R,E,e){"use strict";var n=e(38663),i=e.n(n),P=e(6999)},99134:function(R,E,e){"use strict";var n=e(67294),i=(0,n.createContext)({});E.Z=i},21584:function(R,E,e){"use strict";var n=e(96156),i=e(22122),P=e(90484),A=e(94184),ue=e.n(A),W=e(67294),h=e(53124),ee=e(99134),ce=function(a,F){var D={};for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&F.indexOf(o)<0&&(D[o]=a[o]);if(a!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Z=0,o=Object.getOwnPropertySymbols(a);Z0){var X=s[0]/2;C.paddingLeft=X,C.paddingRight=X}if(s&&s[1]>0&&!y){var w=s[1]/2;C.paddingTop=w,C.paddingBottom=w}return b&&(C.flex=M(b),d===!1&&!C.minWidth&&(C.minWidth=0)),W.createElement("div",(0,i.Z)({},f,{style:(0,i.Z)((0,i.Z)({},C),ae),className:re,ref:F}),V)});E.Z=H},92820:function(R,E,e){"use strict";var n=e(22122),i=e(96156),P=e(90484),A=e(28481),ue=e(94184),W=e.n(ue),h=e(67294),ee=e(53124),ce=e(98082),M=e(24308),te=e(93355),H=e(99134),a=function(r,x){var s={};for(var d in r)Object.prototype.hasOwnProperty.call(r,d)&&x.indexOf(d)<0&&(s[d]=r[d]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var y=0,d=Object.getOwnPropertySymbols(r);y0?L[0]/-2:void 0,le=L[1]!=null&&L[1]>0?L[1]/-2:void 0;if(ne&&(U.marginLeft=ne,U.marginRight=ne),se){var ve=(0,A.Z)(L,2);U.rowGap=ve[1]}else le&&(U.marginTop=le,U.marginBottom=le);var _e=(0,A.Z)(L,2),he=_e[0],me=_e[1],Ee=h.useMemo(function(){return{gutter:[he,me],wrap:G,supportFlexGap:se}},[he,me,G,se]);return h.createElement(H.Z.Provider,{value:Ee},h.createElement("div",(0,n.Z)({},V,{className:fe,style:(0,n.Z)((0,n.Z)({},U),_),ref:x}),j))});E.Z=Z},6999:function(R,E,e){"use strict";var n=e(38663),i=e.n(n),P=e(80638),A=e.n(P)},71230:function(R,E,e){"use strict";var n=e(92820);E.Z=n.Z},13062:function(R,E,e){"use strict";var n=e(38663),i=e.n(n),P=e(6999)}}]); diff --git a/dist/p__order__gross-profit-store-sales.c6196cd7.async.js b/dist/p__order__gross-profit-store-sales.c6196cd7.async.js deleted file mode 100644 index d986b90..0000000 --- a/dist/p__order__gross-profit-store-sales.c6196cd7.async.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[5003,1322,9464,1981,2869,7013,9719,2383],{1759:function(R){R.exports={"data-search-card":"data-search-card____3y2v","data-search-box":"data-search-box___18vv5","search-btn-item":"search-btn-item___1bmDV","table-page":"table-page___3xfjM","loading-card":"loading-card___dcQnu","data-search-item":"data-search-item___23DXw","data-search-input":"data-search-input___3WC5d","data-search-prefix":"data-search-prefix___Psc0s","data-search-sufixx":"data-search-sufixx___1MMan","data-search-btns":"data-search-btns___OgJ-7","download-btn":"download-btn___3uVYa"}},80638:function(){},3608:function(R,E,e){"use strict";e.r(E),e.d(E,{default:function(){return w}});var n=e(14781),i=e(36138),P=e(66456),A=e(64411),ue=e(58024),W=e(91894),h=e(13062),ee=e(71230),ce=e(57663),M=e(71577),te=e(89032),H=e(15746),a=e(62999),F=e(54680),D=e(93224),o=e(39428),Z=e(34792),r=e(48086),x=e(3182),s=e(2824),d=e(20228),y=e(11382),$=e(14965),N=e(91774),_=e(67294),j=e(78009),I=e(1759),l=e.n(I),G=e(11849),V=e(48971),b={getReportOrgsalesmargin:function(v){return(0,V.WY)("/kitchen/api/report/orgsalesmargin",{method:"Post",data:v})},gettree:function(v){return(0,V.WY)("\u200B/kitchen/api\u200B/sysOrg\u200B/tree",{data:(0,G.Z)({},v)})}},ae=e(30381),f=e.n(ae),m=e(90631),t=e(85893),re=["children"],C=N.Z.RangePicker,X=function(){return(0,t.jsx)("div",{className:l()["loading-card"],children:(0,t.jsx)(y.Z,{size:"large"})})};function w(){var g=(0,_.useState)([]),v=(0,s.Z)(g,2),u=v[0],K=v[1],se=(0,_.useState)(1),de=(0,s.Z)(se,2),ie=de[0],z=de[1],L=(0,_.useState)(10),fe=(0,s.Z)(L,2),U=fe[0],ne=fe[1],le=(0,_.useState)(0),ve=(0,s.Z)(le,2),_e=ve[0],he=ve[1],me=(0,_.useState)(!1),Ee=(0,s.Z)(me,2),ge=Ee[0],S=Ee[1],Y=(0,_.useState)([f()(f()(new Date(Date.now()-24*60*60*1e3*7)).format("YYYY-MM-DD 00:00:00")),f()(f()(new Date(Date.now())).format("YYYY-MM-DD 23:59:59"))]),J=(0,s.Z)(Y,2),k=J[0],q=J[1],oe=(0,_.useState)([]),De=(0,s.Z)(oe,2),xe=De[0],ye=De[1],Ce=(0,_.useState)([]),Oe=(0,s.Z)(Ce,2),pe=Oe[0],Ze=Oe[1],Se=(0,_.useState)([]),Pe=(0,s.Z)(Se,2),Re=Pe[0],Ae=Pe[1],je=[{title:"\u95E8\u5E97\u540D\u79F0",dataIndex:"storeId",key:"storeId",render:function(O){var c=Re.find(function(p){return p.key===O});return c?(0,t.jsx)("span",{children:c.title}):(0,t.jsx)("span",{children:"\u6682\u65E0\u95E8\u5E97\u540D\u79F0"})}},{title:"\u6BDB\u5229\u7387\uFF08%\uFF09",dataIndex:"marginRatio",key:"marginRatio"}],Ie=function(O,c){z(O),ne(c)},Me=function(){var T=(0,x.Z)((0,o.Z)().mark(function O(){var c,p;return(0,o.Z)().wrap(function(Q){for(;;)switch(Q.prev=Q.next){case 0:return c={storeId:xe[0],begintime:k[0],endtime:k[1],current:ie,pageSize:U},S(!0),Q.next=4,b.getReportOrgsalesmargin(c);case 4:p=Q.sent,S(!1),p.statusCode===200?K(p.data.data):r.default.error(p.errors||"\u83B7\u53D6\u9500\u552E\u6210\u672C\u5931\u8D25");case 7:case"end":return Q.stop()}},O)}));return function(){return T.apply(this,arguments)}}(),Le=function(){var T=(0,x.Z)((0,o.Z)().mark(function O(){var c;return(0,o.Z)().wrap(function(B){for(;;)switch(B.prev=B.next){case 0:return S(!0),B.next=3,b.gettree({});case 3:c=B.sent,S(!1),c.statusCode===200?(Ze(c.data),Ae(Be(c.data))):r.default.error("\u67E5\u8BE2\u5E97\u94FA\u5217\u8868\u5931\u8D25");case 6:case"end":return B.stop()}},O)}));return function(){return T.apply(this,arguments)}}(),Te=function(){ye([]),q([f()(f()(new Date(Date.now()-24*60*60*1e3*7)).format("YYYY-MM-DD 00:00:00")),f()(f()(new Date(Date.now())).format("YYYY-MM-DD 23:59:59"))])},Be=function T(O){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return O.forEach(function(p){var B=p.children,Q=(0,D.Z)(p,re);c.push(Q),B&&B.length>0&&T(B,c)}),c};return(0,_.useEffect)(function(){Me(),Le()},[]),(0,t.jsxs)(j.ZP,{children:[ge?(0,t.jsx)(X,{}):null,(0,t.jsx)(W.Z,{className:l()["data-search-card"],children:(0,t.jsxs)(ee.Z,{gutter:20,justify:"start",children:[(0,t.jsxs)(H.Z,{xs:24,sm:24,md:12,lg:12,xl:8,className:l()["data-search-item"],children:[(0,t.jsx)("div",{className:l()["data-search-prefix"],children:"\u95E8\u5E97"}),(0,t.jsx)(F.Z,{className:l()["data-search-sufixx"],value:xe,dropdownStyle:{maxHeight:400,overflow:"auto"},treeData:pe,placeholder:"\u8BF7\u9009\u62E9\u95E8\u5E97",treeDefaultExpandAll:!0,onChange:function(O){return ye(O)}})]}),(0,t.jsxs)(H.Z,{xs:24,sm:24,md:12,lg:12,xl:8,className:l()["data-search-item"],children:[(0,t.jsx)("div",{className:l()["data-search-prefix"],children:"\u8D77\u59CB\u65F6\u95F4"}),(0,t.jsx)(C,{size:"middle",className:l()["data-search-sufixx"],value:k,onChange:function(O,c){var p=[f()(f()(new Date(c[0])).format("YYYY-MM-DD 00:00:00")),f()(f()(new Date(c[1])).format("YYYY-MM-DD 23:59:59"))];q(p)}})]}),(0,t.jsxs)("div",{className:l()["data-search-btns"],children:[(0,t.jsx)(M.Z,{className:l()["search-btn-item"],onClick:Te,children:"\u91CD\u7F6E"}),(0,t.jsx)(M.Z,{className:l()["search-btn-item"],type:"primary",onClick:Me,children:"\u67E5\u8BE2"})]})]})}),(0,t.jsxs)(W.Z,{className:l()["table-card"],children:[(0,t.jsx)("div",{className:l()["download-btn"],children:(0,t.jsx)(M.Z,{type:"primary",icon:(0,t.jsx)(m.Z,{}),size:"middle",children:"\u4E0B\u8F7D"})}),(0,t.jsx)(A.Z,{dataSource:u,columns:je,pagination:!1}),(0,t.jsx)("div",{className:l()["table-page"],children:(0,t.jsx)(i.Z,{current:ie,pageSize:U,total:_e,onChange:Ie})})]})]})}},15746:function(R,E,e){"use strict";var n=e(21584);E.Z=n.Z},89032:function(R,E,e){"use strict";var n=e(38663),i=e.n(n),P=e(6999)},99134:function(R,E,e){"use strict";var n=e(67294),i=(0,n.createContext)({});E.Z=i},21584:function(R,E,e){"use strict";var n=e(96156),i=e(22122),P=e(90484),A=e(94184),ue=e.n(A),W=e(67294),h=e(53124),ee=e(99134),ce=function(a,F){var D={};for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&F.indexOf(o)<0&&(D[o]=a[o]);if(a!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Z=0,o=Object.getOwnPropertySymbols(a);Z0){var X=s[0]/2;C.paddingLeft=X,C.paddingRight=X}if(s&&s[1]>0&&!y){var w=s[1]/2;C.paddingTop=w,C.paddingBottom=w}return b&&(C.flex=M(b),d===!1&&!C.minWidth&&(C.minWidth=0)),W.createElement("div",(0,i.Z)({},f,{style:(0,i.Z)((0,i.Z)({},C),ae),className:re,ref:F}),V)});E.Z=H},92820:function(R,E,e){"use strict";var n=e(22122),i=e(96156),P=e(90484),A=e(28481),ue=e(94184),W=e.n(ue),h=e(67294),ee=e(53124),ce=e(98082),M=e(24308),te=e(93355),H=e(99134),a=function(r,x){var s={};for(var d in r)Object.prototype.hasOwnProperty.call(r,d)&&x.indexOf(d)<0&&(s[d]=r[d]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var y=0,d=Object.getOwnPropertySymbols(r);y0?L[0]/-2:void 0,le=L[1]!=null&&L[1]>0?L[1]/-2:void 0;if(ne&&(U.marginLeft=ne,U.marginRight=ne),se){var ve=(0,A.Z)(L,2);U.rowGap=ve[1]}else le&&(U.marginTop=le,U.marginBottom=le);var _e=(0,A.Z)(L,2),he=_e[0],me=_e[1],Ee=h.useMemo(function(){return{gutter:[he,me],wrap:G,supportFlexGap:se}},[he,me,G,se]);return h.createElement(H.Z.Provider,{value:Ee},h.createElement("div",(0,n.Z)({},V,{className:fe,style:(0,n.Z)((0,n.Z)({},U),_),ref:x}),j))});E.Z=Z},6999:function(R,E,e){"use strict";var n=e(38663),i=e.n(n),P=e(80638),A=e.n(P)},71230:function(R,E,e){"use strict";var n=e(92820);E.Z=n.Z},13062:function(R,E,e){"use strict";var n=e(38663),i=e.n(n),P=e(6999)}}]); diff --git a/dist/p__order__order-flow-manage.44faa7f5.async.js b/dist/p__order__order-flow-manage.9b534953.async.js similarity index 59% rename from dist/p__order__order-flow-manage.44faa7f5.async.js rename to dist/p__order__order-flow-manage.9b534953.async.js index 7bd18b3..6760bed 100644 --- a/dist/p__order__order-flow-manage.44faa7f5.async.js +++ b/dist/p__order__order-flow-manage.9b534953.async.js @@ -1 +1 @@ -(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[6287],{90306:function(U,v,e){"use strict";e.r(v);var c=e(57663),i=e(71577),a=e(11849),m=e(47673),F=e(4107),g=e(93224),T=e(43358),b=e(34041),P=e(2824),D=e(39428),N=e(34792),C=e(48086),x=e(3182),n=e(90631),_=e(67294),j=e(78009),k=e(16894),I=e(53667),B=e.n(I),f=e(46389),A=e(26177),u=e(85893),G=["defaultRender"],Y=null,S=function(){var W=(0,_.useState)(),y=(0,P.Z)(W,2),d=y[0],M=y[1],s=(0,_.useState)(!1),Z=(0,P.Z)(s,2),K=Z[0],w=Z[1],J=(0,_.useState)([]),V=(0,P.Z)(J,2),Q=V[0],X=V[1],q=(0,_.useState)([]),$=(0,P.Z)(q,2),oe=$[0],ee=$[1],te=(0,_.useRef)(),re=(0,_.useState)([]),H=(0,P.Z)(re,2),z=H[0],ae=H[1];(0,_.useEffect)(function(){function l(){f.Z.srdList().then(function(t){var r=t.data;r==null||r.forEach(function(o){o.value=o.id,o.label=o.name}),X(r)})}l()},[]);function se(){f.Z.GetFlowExport(z).then(function(l){var t=URL.createObjectURL(new Blob([l])),r="\u8BA2\u5355\u6D41\u6C34.xlsx",o=document.createElement("a");o.href=t,o.download=r,o.click(),URL.revokeObjectURL(t)})}var ne=[{title:"\u4E3B\u952E",dataIndex:"id",tip:"\u89C4\u5219\u540D\u79F0\u662F\u552F\u4E00\u7684 key",hideInSearch:!0,hideInTable:!0},{title:"\u8BA2\u5355\u65F6\u95F4",dataIndex:"order_CreateTime",valueType:"dateRange",hideInTable:!0,search:{transform:function(t){return{order_CreateTime:t[0],order_EndTime:t[1]}}}},{title:"\u624B\u673A\u53F7",dataIndex:"Customer_Tel",hideInTable:!0},{title:"\u5E97\u94FA\u540D\u79F0",dataIndex:"storeId",hideInTable:!0,valueType:"select",renderFormItem:function(){return(0,u.jsx)(b.Z,{mode:"multiple",showArrow:!0,optionFilterProp:"label",placeholder:"\u8BF7\u9009\u62E9\u5E97\u94FA",style:{width:"100%"},options:Q})}},{title:"\u4EA4\u6613\u5355\u53F7",dataIndex:"order_Number",hideInSearch:!0},{title:"\u5E97\u94FA\u540D\u79F0",dataIndex:"storeName",hideInSearch:!0},{title:"\u5E94\u4ED8\u91D1\u989D",dataIndex:"order_OriginalMoney",renderText:function(t){return"".concat(t,"\xA5")},hideInSearch:!0},{title:"\u5B9E\u4ED8\u91D1\u989D",dataIndex:"order_RealMoney",hideInSearch:!0,renderText:function(t){return"".concat(t,"\xA5")}},{title:"\u5E94\u4ED8\u91D1\u989D(\u9000)",dataIndex:"refundOriginalMoney",renderText:function(t){return"".concat(t,"\xA5")},hideInSearch:!0},{title:"\u5B9E\u4ED8\u91D1\u989D(\u9000)",dataIndex:"refundRealMoney",hideInSearch:!0,renderText:function(t){return"".concat(t,"\xA5")}},{title:"\u6570\u91CF",dataIndex:"order_Count",hideInSearch:!0},{title:"\u652F\u4ED8\u7C7B\u578B",dataIndex:"payMode",valueEnum:{0:{text:"\u5FAE\u4FE1\u652F\u4ED8"},1:{text:"\u652F\u4ED8\u5B9D"},2:{text:"\u4F59\u989D"},3:{text:"\u94F6\u8054"},4:{text:"\u73B0\u91D1"}}},{title:"\u521B\u5EFA\u65F6\u95F4",sorter:!0,dataIndex:"order_CreateTime",valueType:"dateTime",hideInSearch:!0,renderFormItem:function(t,r,o){var p=r.defaultRender,E=(0,g.Z)(r,G),O=o.getFieldValue("status");return"".concat(O)==="0"?!1:"".concat(O)==="3"?(0,u.jsx)(F.Z,(0,a.Z)((0,a.Z)({},E),{},{placeholder:"\u8BF7\u8F93\u5165\u5F02\u5E38\u539F\u56E0\uFF01"})):p(t)}},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(t,r){return[(0,u.jsx)("a",{onClick:function(){M(r),w(!0)},children:"\u67E5\u770B\u8BE6\u60C5"},"config"),(0,u.jsx)("a",{onClick:function(){f.Z.printsmallticket({orderId:r.id}).then(function(p){p.data?C.default.success("\u6253\u5370\u6210\u529F"):C.default.error("\u6253\u5370\u5931\u8D25")})},children:"\u6253\u5370\u5C0F\u7968"},"config")]}}],de=function(){var l=(0,x.Z)((0,D.Z)().mark(function t(){var r,o,p,E,O,h;return(0,D.Z)().wrap(function(R){for(;;)switch(R.prev=R.next){case 0:return R.next=2,f.Z.GetFlowExport(z);case 2:r=R.sent,r.isSuccess?(o={},p=new Date,E="\u8BA2\u5355\u6D41\u6C34"+p.toLocaleString().replaceAll("/","-"),o.fileName=E,O=["storeTypeName","storeName","order_Number","order_OriginalMoney","order_RealMoney","refundOriginalMoney","refundRealMoney","order_Count","order_CreateTime"],o.datas=[{sheetData:r.data,sheetName:E,sheetFilter:O,sheetHeader:["\u5E97\u94FA\u5206\u7C7B","\u5E97\u94FA\u540D\u79F0","\u4EA4\u6613\u5355\u53F7","\u5E94\u4ED8\u91D1\u989D","\u5B9E\u4ED8\u91D1\u989D","\u5E94\u4ED8\u91D1\u989D(\u9000)","\u5B9E\u4ED8\u91D1\u989D(\u9000)","\u5B50\u8BA2\u5355\u6570\u91CF","\u521B\u5EFA\u65F6\u95F4"]}],h=new(B())(o),h.saveExcel()):C.default.error(r.errors||"\u5BFC\u51FA\u5931\u8D25");case 4:case"end":return R.stop()}},t)}));return function(){return l.apply(this,arguments)}}();return(0,u.jsxs)(j.ZP,{children:[(0,u.jsx)(k.ZP,{headerTitle:"\u8BA2\u5355\u6D41\u6C34",actionRef:te,rowKey:"orderFlowId",search:{labelWidth:120},toolBarRender:function(){return[(0,u.jsxs)(i.Z,{type:"primary",onClick:de,children:[(0,u.jsx)(n.Z,{})," \u5BFC\u51FA"]},"create")]},columns:ne,request:function(){var l=(0,x.Z)((0,D.Z)().mark(function t(r,o,p){var E;return(0,D.Z)().wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return r.storeTypeId!=null&&(r.storeTypeId=srdTypeList[r.storeTypeId].storeTypeId),h.next=3,f.Z.orderList(r);case 3:return E=h.sent,ae(r),ee(E.data.data),h.abrupt("return",{data:E.data.data,success:!0,total:E.data.total});case 7:case"end":return h.stop()}},t)}));return function(t,r,o){return l.apply(this,arguments)}}()}),!!d&&(0,u.jsx)(A.Z,{onCancel:function(){M(void 0),w(!1)},createModalVisible:K,values:d||{}})]})};v.default=S},26177:function(U,v,e){"use strict";var c=e(71194),i=e(50146),a=e(98858),m=e(4914),F=e(34792),g=e(48086),T=e(39428),b=e(3182),P=e(2824),D=e(67294),N=e(16894),C=e(12826),x=e(46389),n=e(85893),_={},j=function(I){var B,f,A,u,G=I.createModalVisible,Y=I.onCancel,S=(0,D.useState)([]),L=(0,P.Z)(S,2),W=L[0],y=L[1];return(0,n.jsxs)(i.Z,{title:"\u8BA2\u5355\u8BE6\u60C5",width:1e3,visible:I.createModalVisible,bodyStyle:{padding:"32px 40px 48px"},footer:null,destroyOnClose:!0,onCancel:function(){return Y()},maskClosable:!1,children:[(0,n.jsx)(C.ZP,{title:"\u8BA2\u5355\u4FE1\u606F",request:(0,b.Z)((0,T.Z)().mark(function d(){return(0,T.Z)().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,x.Z.GetOrderDetails({id:I.values.id});case 2:return _=s.sent,y(_),s.abrupt("return",Promise.resolve({success:!0,data:_}));case 5:case"end":return s.stop()}},d)})),columns:[{title:"\u4F1A\u5458\u59D3\u540D",key:"customer_Name",dataIndex:"customer_Name"},{title:"\u624B\u673A\u53F7",key:"customer_Tel",dataIndex:"customer_Tel"},{title:"\u8BA2\u5355\u6D41\u6C34",key:"order_Number",dataIndex:"order_Number"},{title:"\u8BA2\u5355\u53F7",key:"transaction_ID",dataIndex:"transaction_ID"},{title:"\u4EA4\u6613\u5355\u53F7",key:"trade_no",dataIndex:"trade_no"},{title:"\u6392\u961F\u53F7",key:"order_SortID",dataIndex:"order_SortID"},{title:"\u6298\u6263",key:"discount",dataIndex:"discount"},{title:"\u5B9E\u4ED8\u91D1\u989D",dataIndex:"order_RealMoney",valueType:"money",fieldProps:{moneySymbol:"\xA5"}},{title:"\u5E94\u4ED8\u91D1\u989D",dataIndex:"order_OriginalMoney",valueType:"money",fieldProps:{moneySymbol:"\xA5"}},{title:"\u5B9E\u4ED8\u91D1\u989D(\u9000)",dataIndex:"refundRealMoney",valueType:"money",fieldProps:{moneySymbol:"\xA5"}},{title:"\u5E94\u4ED8\u91D1\u989D(\u9000)",dataIndex:"refundOriginalMoney",valueType:"money",fieldProps:{moneySymbol:"\xA5"}},{title:"\u6570\u91CF",dataIndex:"order_Count",hideInSearch:!0},{title:"\u652F\u4ED8\u65B9\u5F0F",dataIndex:"payMode",key:"payMode"},{title:"\u8BA2\u5355\u72B6\u6001",dataIndex:"order_Status",key:"order_Status"},{title:"\u6D88\u8D39\u91D1\u989D",dataIndex:"recharge",key:"recharge"},{title:"\u6D88\u8D39\u8D60\u9001\u91D1\u989D",dataIndex:"rechargeBalance",key:"rechargeBalance"}]}),(0,n.jsx)("h3",{style:{fontWeight:"bold",fontSize:16,marginTop:30},children:"\u5546\u54C1\u5217\u8868"}),(0,n.jsx)(N.ZP,{rowKey:"id",request:(0,b.Z)((0,T.Z)().mark(function d(){return(0,T.Z)().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,x.Z.GetOrderDetails({id:I.values.id});case 2:return _=s.sent,s.abrupt("return",{data:_.detailList,success:!0});case 4:case"end":return s.stop()}},d)})),columns:[{title:"\u5546\u54C1\u5206\u7C7B",key:"goodsTypeName",dataIndex:"goodsTypeName"},{title:"\u5546\u54C1\u540D\u79F0",key:"goodsName",dataIndex:"goodsName"},{title:"\u5E94\u4ED8\u91D1\u989D",key:"originalMoney",dataIndex:"originalMoney",valueType:"money",fieldProps:{moneySymbol:"\xA5"}},{title:"\u5B9E\u4ED8\u91D1\u989D",dataIndex:"realMoney",valueType:"money",fieldProps:{moneySymbol:"\xA5"}},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(M,s){return[(0,n.jsx)("a",{onClick:function(){x.Z.printsmallticket({orderId:I.values.id,subOrderId:s.id}).then(function(K){debugger;K.data?g.default.success("\u6253\u5370\u6210\u529F"):g.default.error("\u6253\u5370\u5931\u8D25")})},children:"\u6253\u5370\u5C0F\u7968"},"config")]}}],toolBarRender:!1,search:!1}),(0,n.jsx)(m.Z,{title:"\u4F18\u60E0\u5238",children:(B=_)===null||B===void 0||(f=B.paperCoupons)===null||f===void 0?void 0:f.map(function(d){return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(m.Z.Item,{label:"\u5E73\u53F0",children:d.platformName}),(0,n.jsx)(m.Z.Item,{label:"\u4F18\u60E0\u5238",children:d.name}),(0,n.jsx)(m.Z.Item,{label:"\u4F18\u60E0\u91D1\u989D",children:d.amount})]})})}),(0,n.jsx)(m.Z,{column:5,title:"\u62B5\u6263\u5238",children:(A=_)===null||A===void 0||(u=A.goodsCoupons)===null||u===void 0?void 0:u.map(function(d){return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(m.Z.Item,{label:"\u5E73\u53F0",children:d.platformName}),(0,n.jsx)(m.Z.Item,{label:"\u62B5\u6263\u5238",children:d.name}),(0,n.jsx)(m.Z.Item,{label:"\u5546\u54C1",children:d.goodsName}),(0,n.jsx)(m.Z.Item,{label:"\u5546\u54C1\u539F\u4EF7",children:d.goodsAmount}),(0,n.jsx)(m.Z.Item,{label:"\u5E73\u53F0\u552E\u4EF7",children:d.platformAmount})]})})})]})};v.Z=j},46389:function(U,v,e){"use strict";var c=e(48971);v.Z={orderList:function(a){return a.isreport=!0,(0,c.WY)("/kitchen/api/order/order-detail-flow",{method:"Post",data:a})},srdTypeList:function(a){return(0,c.WY)("/kitchen/api/storetype/list",{method:"Post",data:a})},srdList:function(a){return(0,c.WY)("/kitchen/api/store/list",{method:"Post",data:a})},goodsList:function(a){return(0,c.WY)("/kitchen/api/goodes/list",{method:"Post",data:a})},goodsTypeList:function(a){return(0,c.WY)("/kitchen/api/goodstype/list",{method:"Post",data:a})},StartRefund:function(a){return(0,c.WY)("/kitchen/api/refund/StartOrderRefund",{method:"Post",params:a})},GetOrderDetails:function(a){return(0,c.WY)("/kitchen/api/Order/GetOrderDetails",{method:"Post",params:a})},GetFlowExport:function(a){return(0,c.WY)("/kitchen/api/Order/GetFlowExport",{method:"Post",data:a})},printsmallticket:function(a){return(0,c.WY)("/kitchen/api/printer/print-small-ticket",{method:"Post",data:a})}}}}]); +(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[6287],{90306:function(K,D,e){"use strict";e.r(D);var c=e(57663),i=e(71577),a=e(11849),m=e(47673),F=e(4107),L=e(93224),C=e(43358),B=e(34041),I=e(2824),x=e(39428),k=e(34792),T=e(48086),P=e(3182),n=e(90631),l=e(67294),j=e(78009),N=e(16894),p=e(53667),R=e.n(p),f=e(46389),g=e(26177),u=e(85893),G=["defaultRender"],Y=null,U=function(){var W=(0,l.useState)(),y=(0,I.Z)(W,2),s=y[0],M=y[1],d=(0,l.useState)(!1),Z=(0,I.Z)(d,2),S=Z[0],w=Z[1],J=(0,l.useState)([]),V=(0,I.Z)(J,2),Q=V[0],X=V[1],q=(0,l.useState)([]),$=(0,I.Z)(q,2),oe=$[0],ee=$[1],te=(0,l.useRef)(),re=(0,l.useState)([]),H=(0,I.Z)(re,2),z=H[0],ae=H[1];(0,l.useEffect)(function(){function _(){f.Z.srdList().then(function(t){var r=t.data;r==null||r.forEach(function(o){o.value=o.id,o.label=o.name}),X(r)})}_()},[]);function de(){f.Z.GetFlowExport(z).then(function(_){var t=URL.createObjectURL(new Blob([_])),r="\u8BA2\u5355\u6D41\u6C34.xlsx",o=document.createElement("a");o.href=t,o.download=r,o.click(),URL.revokeObjectURL(t)})}var ne=[{title:"\u4E3B\u952E",dataIndex:"id",tip:"\u89C4\u5219\u540D\u79F0\u662F\u552F\u4E00\u7684 key",hideInSearch:!0,hideInTable:!0},{title:"\u8BA2\u5355\u65F6\u95F4",dataIndex:"order_CreateTime",valueType:"dateRange",hideInTable:!0,search:{transform:function(t){return{order_CreateTime:t[0],order_EndTime:t[1]}}}},{title:"\u624B\u673A\u53F7",dataIndex:"Customer_Tel",hideInTable:!0},{title:"\u5E97\u94FA\u540D\u79F0",dataIndex:"storeId",hideInTable:!0,valueType:"select",renderFormItem:function(){return(0,u.jsx)(B.Z,{mode:"multiple",showArrow:!0,optionFilterProp:"label",placeholder:"\u8BF7\u9009\u62E9\u5E97\u94FA",style:{width:"100%"},options:Q})}},{title:"\u4EA4\u6613\u5355\u53F7",dataIndex:"order_Number",hideInSearch:!0},{title:"\u5E97\u94FA\u540D\u79F0",dataIndex:"storeName",hideInSearch:!0},{title:"\u5E94\u4ED8\u91D1\u989D",dataIndex:"order_OriginalMoney",renderText:function(t){return"".concat(t,"\xA5")},hideInSearch:!0},{title:"\u5B9E\u4ED8\u91D1\u989D",dataIndex:"order_RealMoney",hideInSearch:!0,renderText:function(t){return"".concat(t,"\xA5")}},{title:"\u5E94\u4ED8\u91D1\u989D(\u9000)",dataIndex:"refundOriginalMoney",renderText:function(t){return"".concat(t,"\xA5")},hideInSearch:!0},{title:"\u5B9E\u4ED8\u91D1\u989D(\u9000)",dataIndex:"refundRealMoney",hideInSearch:!0,renderText:function(t){return"".concat(t,"\xA5")}},{title:"\u6570\u91CF",dataIndex:"order_Count",hideInSearch:!0},{title:"\u652F\u4ED8\u7C7B\u578B",dataIndex:"payMode",valueEnum:{0:{text:"\u5FAE\u4FE1\u652F\u4ED8"},1:{text:"\u652F\u4ED8\u5B9D"},2:{text:"\u4F59\u989D"},3:{text:"\u94F6\u8054"},4:{text:"\u73B0\u91D1"}}},{title:"\u521B\u5EFA\u65F6\u95F4",sorter:!0,dataIndex:"order_CreateTime",valueType:"dateTime",hideInSearch:!0,renderFormItem:function(t,r,o){var v=r.defaultRender,E=(0,L.Z)(r,G),O=o.getFieldValue("status");return"".concat(O)==="0"?!1:"".concat(O)==="3"?(0,u.jsx)(F.Z,(0,a.Z)((0,a.Z)({},E),{},{placeholder:"\u8BF7\u8F93\u5165\u5F02\u5E38\u539F\u56E0\uFF01"})):v(t)}},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(t,r){return[(0,u.jsx)("a",{onClick:function(){M(r),w(!0)},children:"\u67E5\u770B\u8BE6\u60C5"},"config"),(0,u.jsx)("a",{onClick:function(){f.Z.printsmallticket({orderId:r.id}).then(function(v){v.data?T.default.success("\u6253\u5370\u6210\u529F"):T.default.error("\u6253\u5370\u5931\u8D25")})},children:"\u6253\u5370\u5C0F\u7968"},"config")]}}],se=function(){var _=(0,P.Z)((0,x.Z)().mark(function t(){var r,o,v,E,O,h;return(0,x.Z)().wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return b.next=2,f.Z.GetFlowExport(z);case 2:r=b.sent,r.isSuccess?(o={},v=new Date,E="\u8BA2\u5355\u6D41\u6C34"+v.toLocaleString().replaceAll("/","-"),o.fileName=E,O=["storeTypeName","storeName","order_Number","order_OriginalMoney","order_RealMoney","refundOriginalMoney","refundRealMoney","order_Count","order_CreateTime"],o.datas=[{sheetData:r.data,sheetName:E,sheetFilter:O,sheetHeader:["\u5E97\u94FA\u5206\u7C7B","\u5E97\u94FA\u540D\u79F0","\u4EA4\u6613\u5355\u53F7","\u5E94\u4ED8\u91D1\u989D","\u5B9E\u4ED8\u91D1\u989D","\u5E94\u4ED8\u91D1\u989D(\u9000)","\u5B9E\u4ED8\u91D1\u989D(\u9000)","\u5B50\u8BA2\u5355\u6570\u91CF","\u521B\u5EFA\u65F6\u95F4"]}],h=new(R())(o),h.saveExcel()):T.default.error(r.errors||"\u5BFC\u51FA\u5931\u8D25");case 4:case"end":return b.stop()}},t)}));return function(){return _.apply(this,arguments)}}();return(0,u.jsxs)(j.ZP,{children:[(0,u.jsx)(N.ZP,{headerTitle:"\u8BA2\u5355\u6D41\u6C34",actionRef:te,rowKey:"orderFlowId",search:{labelWidth:120},toolBarRender:function(){return[(0,u.jsxs)(i.Z,{type:"primary",onClick:se,children:[(0,u.jsx)(n.Z,{})," \u5BFC\u51FA"]},"create")]},columns:ne,request:function(){var _=(0,P.Z)((0,x.Z)().mark(function t(r,o,v){var E;return(0,x.Z)().wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return r.storeTypeId!=null&&(r.storeTypeId=srdTypeList[r.storeTypeId].storeTypeId),h.next=3,f.Z.orderList(r);case 3:return E=h.sent,ae(r),ee(E.data.data),h.abrupt("return",{data:E.data.data,success:!0,total:E.data.total});case 7:case"end":return h.stop()}},t)}));return function(t,r,o){return _.apply(this,arguments)}}()}),!!s&&(0,u.jsx)(g.Z,{onCancel:function(){M(void 0),w(!1)},createModalVisible:S,values:s||{}})]})};D.default=U},26177:function(K,D,e){"use strict";var c=e(71194),i=e(50146),a=e(98858),m=e(4914),F=e(34792),L=e(48086),C=e(39428),B=e(3182),I=e(2824),x=e(67294),k=e(16894),T=e(12826),P=e(46389),n=e(85893),l={},j=function(p){var R,f,g,u,G=p.createModalVisible,Y=p.onCancel,U=(0,x.useState)([]),A=(0,I.Z)(U,2),W=A[0],y=A[1];return(0,n.jsxs)(i.Z,{title:"\u8BA2\u5355\u8BE6\u60C5",width:1e3,visible:p.createModalVisible,bodyStyle:{padding:"32px 40px 48px"},footer:null,destroyOnClose:!0,onCancel:function(){return Y()},maskClosable:!1,children:[(0,n.jsx)(T.ZP,{title:"\u8BA2\u5355\u4FE1\u606F",request:(0,B.Z)((0,C.Z)().mark(function s(){return(0,C.Z)().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return d.next=2,P.Z.GetOrderDetails({id:p.values.id});case 2:return l=d.sent,y(l),d.abrupt("return",Promise.resolve({success:!0,data:l}));case 5:case"end":return d.stop()}},s)})),columns:[{title:"\u4F1A\u5458\u59D3\u540D",key:"customer_Name",dataIndex:"customer_Name"},{title:"\u624B\u673A\u53F7",key:"customer_Tel",dataIndex:"customer_Tel"},{title:"\u8BA2\u5355\u6D41\u6C34",key:"order_Number",dataIndex:"order_Number"},{title:"\u8BA2\u5355\u53F7",key:"transaction_ID",dataIndex:"transaction_ID"},{title:"\u4EA4\u6613\u5355\u53F7",key:"trade_no",dataIndex:"trade_no"},{title:"\u6392\u961F\u53F7",key:"order_SortID",dataIndex:"order_SortID"},{title:"\u6298\u6263",key:"discount",dataIndex:"discount"},{title:"\u5B9E\u4ED8\u91D1\u989D",dataIndex:"order_RealMoney",valueType:"money",fieldProps:{moneySymbol:"\xA5"}},{title:"\u5E94\u4ED8\u91D1\u989D",dataIndex:"order_OriginalMoney",valueType:"money",fieldProps:{moneySymbol:"\xA5"}},{title:"\u5B9E\u4ED8\u91D1\u989D(\u9000)",dataIndex:"refundRealMoney",valueType:"money",fieldProps:{moneySymbol:"\xA5"}},{title:"\u5E94\u4ED8\u91D1\u989D(\u9000)",dataIndex:"refundOriginalMoney",valueType:"money",fieldProps:{moneySymbol:"\xA5"}},{title:"\u6570\u91CF",dataIndex:"order_Count",hideInSearch:!0},{title:"\u652F\u4ED8\u65B9\u5F0F",dataIndex:"payMode",key:"payMode"},{title:"\u8BA2\u5355\u72B6\u6001",dataIndex:"order_Status",key:"order_Status"},{title:"\u6D88\u8D39\u91D1\u989D",dataIndex:"recharge",key:"recharge"},{title:"\u6D88\u8D39\u8D60\u9001\u91D1\u989D",dataIndex:"rechargeBalance",key:"rechargeBalance"}]}),(0,n.jsx)("h3",{style:{fontWeight:"bold",fontSize:16,marginTop:30},children:"\u5546\u54C1\u5217\u8868"}),(0,n.jsx)(k.ZP,{rowKey:"id",request:(0,B.Z)((0,C.Z)().mark(function s(){return(0,C.Z)().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return d.next=2,P.Z.GetOrderDetails({id:p.values.id});case 2:return l=d.sent,d.abrupt("return",{data:l.detailList,success:!0});case 4:case"end":return d.stop()}},s)})),columns:[{title:"\u5546\u54C1\u5206\u7C7B",key:"goodsTypeName",dataIndex:"goodsTypeName"},{title:"\u5546\u54C1\u540D\u79F0",key:"goodsName",dataIndex:"goodsName"},{title:"\u5E94\u4ED8\u91D1\u989D",key:"originalMoney",dataIndex:"originalMoney",valueType:"money",fieldProps:{moneySymbol:"\xA5"}},{title:"\u5B9E\u4ED8\u91D1\u989D",dataIndex:"realMoney",valueType:"money",fieldProps:{moneySymbol:"\xA5"}},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(M,d){return[(0,n.jsx)("a",{onClick:function(){P.Z.printsmallticket({orderId:p.values.id,subOrderId:d.id}).then(function(S){debugger;S.data?L.default.success("\u6253\u5370\u6210\u529F"):L.default.error("\u6253\u5370\u5931\u8D25")})},children:"\u6253\u5370\u5C0F\u7968"},"config")]}}],toolBarRender:!1,search:!1}),(0,n.jsx)(m.Z,{title:"\u4F18\u60E0\u5238",children:(R=l)===null||R===void 0||(f=R.paperCoupons)===null||f===void 0?void 0:f.map(function(s){return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(m.Z.Item,{label:"\u5E73\u53F0",children:s.platformName}),(0,n.jsx)(m.Z.Item,{label:"\u4F18\u60E0\u5238",children:s.name}),(0,n.jsx)(m.Z.Item,{label:"\u4F18\u60E0\u91D1\u989D",children:s.amount})]})})}),(0,n.jsx)(m.Z,{column:5,title:"\u62B5\u6263\u5238",children:(g=l)===null||g===void 0||(u=g.goodsCoupons)===null||u===void 0?void 0:u.map(function(s){return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(m.Z.Item,{label:"\u5E73\u53F0",children:s.platformName}),(0,n.jsx)(m.Z.Item,{label:"\u62B5\u6263\u5238",children:s.name}),(0,n.jsx)(m.Z.Item,{label:"\u5546\u54C1",children:s.goodsName}),(0,n.jsx)(m.Z.Item,{label:"\u5546\u54C1\u539F\u4EF7",children:s.goodsAmount}),(0,n.jsx)(m.Z.Item,{label:"\u5E73\u53F0\u552E\u4EF7",children:s.platformAmount})]})})})]})};D.Z=j},46389:function(K,D,e){"use strict";var c=e(48971);D.Z={orderList:function(a){return a.isreport=!0,(0,c.WY)("/kitchen/api/order/order-detail-flow",{method:"Post",data:a})},srdTypeList:function(a){return(0,c.WY)("/kitchen/api/storetype/list",{method:"Post",data:a})},srdList:function(a){return(0,c.WY)("/kitchen/api/store/list",{method:"Post",data:a})},goodsList:function(a){return(0,c.WY)("/kitchen/api/goodes/list",{method:"Post",data:a})},goodsTypeList:function(a){return(0,c.WY)("/kitchen/api/goodstype/list",{method:"Post",data:a})},StartRefund:function(a){return(0,c.WY)("/kitchen/api/refund/StartOrderRefund",{method:"Post",params:a})},GetOrderDetails:function(a){return(0,c.WY)("/kitchen/api/Order/GetOrderDetails",{method:"Post",params:a})},GetFlowExport:function(a){return(0,c.WY)("/kitchen/api/Order/GetFlowExport",{method:"Post",data:a})},printsmallticket:function(a){return(0,c.WY)("/kitchen/api/printer/print-small-ticket",{method:"Post",data:a})}}}}]); diff --git a/dist/p__order__order-market-report.2f35f064.async.js b/dist/p__order__order-market-report.2f35f064.async.js deleted file mode 100644 index 8e89672..0000000 --- a/dist/p__order__order-market-report.2f35f064.async.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[2097,1322,9464,1981,2869,7013,9719,2383],{14633:function(Z){Z.exports={"data-search-card":"data-search-card___22tRu","data-search-box":"data-search-box___1fl3A","search-btn-item":"search-btn-item___3ufuR","table-page":"table-page___331Uq","data-search-left":"data-search-left___29FCy","loading-card":"loading-card___oU1p6"}},87385:function(Z,P,t){"use strict";t.r(P),t.d(P,{default:function(){return ne}});var we=t(14781),U=t(36138),Se=t(66456),B=t(64411),Me=t(58024),R=t(91894),De=t(57663),I=t(71577),m=t(39428),Oe=t(34792),C=t(48086),T=t(3182),u=t(2824),Ze=t(20228),$=t(11382),Pe=t(14965),J=t(91774),Re=t(62999),E=t(54680),s=t(67294),K=t(78009),Q=t(90631),V=t(14633),l=t.n(V),X=t(30381),c=t.n(X),w=t(48971),S={getMarketReportList:function(h){return(0,w.WY)("/kitchen/api/report-statistics/cash-register-report",{method:"Post",data:h})},getOrgTree:function(){return(0,w.WY)("/kitchen/api/report-statistics/org-tree",{method:"GET"})},marketingReportExport:function(h){return(0,w.WY)("/kitchen/api/report-statistics/cash-register-report-export",{method:"Post",data:h})}},q=t(53667),_=t.n(q),n=t(85893),Ee=E.Z.TreeNode,ee=J.Z.RangePicker,te=[{title:"\u65F6\u95F4",dataIndex:"date",key:"date",width:170,align:"center",fixed:"left"},{title:"\u5E97\u94FA",dataIndex:"shopName",key:"shopName",width:170,align:"center",fixed:"left",filters:[{text:"\u56DB\u5DDD\u9ED1\u83E0\u841D\u79D1\u6280",value:"\u56DB\u5DDD\u9ED1\u83E0\u841D\u79D1\u6280"},{text:"\u56DB\u5DDD\u767D\u83E0\u841D\u79D1\u6280",value:"\u56DB\u5DDD\u767D\u83E0\u841D\u79D1\u6280"}],onFilter:function(h,y){return y.shopName.indexOf(h)===0}},{title:"\u8425\u6536",dataIndex:"revenue",key:"revenue",children:[{title:"\u8425\u4E1A\u989D",dataIndex:"turnover",key:"turnover",children:[{title:"\u6D41\u6C34",dataIndex:"revenueFlow",key:"revenueFlow",width:100,align:"center"},{title:"\u5B9E\u6536",dataIndex:"paidAmount",key:"paidAmount",width:100,align:"center"}]},{title:"\u4F18\u60E0\u660E\u7EC6",dataIndex:"discountDetails",key:"discountDetails",children:[{title:"\u4F1A\u5458\u4EF7",dataIndex:"discountMember",key:"discountMember",width:100,align:"center"},{title:"\u4F18\u60E0\u5238",dataIndex:"discountCoupon",key:"discountCoupon",width:100,align:"center"},{title:"\u6D3B\u52A8",dataIndex:"discountActivity",key:"discountActivity",width:100,align:"center"}]}]},{title:"\u5206\u7C7B\u8425\u6536",dataIndex:"classifiedRevenue",key:"classifiedRevenue",children:[{title:"\u5916\u5356\u8425\u4E1A\u989D",dataIndex:"takeOutTurnover",key:"takeOutTurnover",children:[{title:"\u5916\u5356\u8425\u6536",dataIndex:"takeOutRevenue",key:"takeOutRevenue",width:100,align:"center"},{title:"\u7F8E\u56E2\u5916\u5356",dataIndex:"meituanTakeout",key:"meituanTakeout",width:100,align:"center"},{title:"\u997F\u4E86\u4E48\u5916\u5356",dataIndex:"hungryTakeOut",key:"hungryTakeOut",width:100,align:"center"}]},{title:"\u98DF\u5802\u8425\u6536",dataIndex:"canteenRevenue",key:"canteenRevenue",children:[{title:"\u5802\u98DF\u6D41\u6C34",dataIndex:"freshWaterInTheHall",key:"freshWaterInTheHall",width:100,align:"center"},{title:"\u5802\u98DF\u5B9E\u6536",dataIndex:"paidInFood",key:"paidInFood",width:100,align:"center"}]},{title:"\u7B2C\u4E09\u65B9\u5E73\u53F0\u8425\u6536",dataIndex:"thirdPartyPlatformRevenue",key:"thirdPartyPlatformRevenue",children:[{title:"\u5927\u4F17\u70B9\u8BC4",dataIndex:"publicComments",key:"publicComments",width:100,align:"center"},{title:"\u53E3\u7891",dataIndex:"wordOfMouth",key:"wordOfMouth",width:100,align:"center"},{title:"\u6296\u97F3",dataIndex:"tiktok",key:"tiktok",width:100,align:"center"}]}]},{title:"\u5802\u98DF\u5355\u4EF7",dataIndex:"unitPriceCanteenFood",key:"unitPriceCanteenFood",children:[{title:"\u5BA2\u5355\u4EF7",dataIndex:"customerUnitPrice",key:"customerUnitPrice",children:[{title:"\u6D41\u6C34\u5355\u4EF7",dataIndex:"customerRevenueFlow",key:"customerRevenueFlow",width:100,align:"center"},{title:"\u5B9E\u6536\u5355\u4EF7",dataIndex:"customerPaidAmount",key:"customerPaidAmount",width:100,align:"center"}]},{title:"\u5355\u5355\u4EF7",dataIndex:"singleUnitPrice",key:"singleUnitPrice",children:[{title:"\u6D41\u6C34\u5355\u4EF7",dataIndex:"orderRevenueFlow",key:"orderRevenueFlow",width:100,align:"center"},{title:"\u5B9E\u6536\u5355\u4EF7",dataIndex:"orderPaidAmount",key:"orderPaidAmount",width:100,align:"center"}]}]},{title:"\u4EA4\u6613\u7B14\u6570",dataIndex:"numberOfTransactions",key:"numberOfTransactions",children:[{title:"\u73B0\u91D1",dataIndex:"sourceCashCount",key:"sourceCashCount",width:100,align:"center"},{title:"\u5FAE\u4FE1\u652F\u4ED8",dataIndex:"sourceWeChatCount",key:"sourceWeChatCount",width:100,align:"center"},{title:"\u5927\u4F17\u70B9\u8BC4",dataIndex:"numPublicComments",key:"numPublicComments",width:100,align:"center"},{title:"\u53E3\u7891",dataIndex:"numWordOfMouth",key:"numWordOfMouth",width:100,align:"center"},{title:"\u6296\u97F3",dataIndex:"numTiktok",key:"numTiktok",width:100,align:"center"},{title:"\u7F8E\u56E2\u5916\u5356",dataIndex:"numMeituanTakeout",key:"numMeituanTakeout",width:100,align:"center"},{title:"\u997F\u4E86\u4E48\u5916\u5356",dataIndex:"numHungryTakeOut",key:"numHungryTakeOut",width:100,align:"center"}]},{title:"\u6536\u5165\u6784\u6210",dataIndex:"revenueComposition",key:"revenueComposition",children:[{title:"\u6536\u5165\u6765\u6E90",dataIndex:"sourceOfIncome",key:"sourceOfIncome",children:[{title:"\u4F1A\u5458",dataIndex:"memberIncomeMoney",key:"memberIncomeMoney",width:100,align:"center"},{title:"\u975E\u4F1A\u5458",dataIndex:"nonMemberIncomeMoney",key:"nonMemberIncomeMoney",width:100,align:"center"},{title:"\u5916\u5356",dataIndex:"incomeTakeOut",key:"incomeTakeOut",width:100,align:"center"},{title:"\u56E2\u8D2D",dataIndex:"incomeGroupPurchase",key:"incomeGroupPurchase",width:100,align:"center"}]},{title:"\u6536\u5165\u7ED3\u6784",dataIndex:"revenueStructure",key:"revenueStructure",children:[{title:"\u5FAE\u4FE1\u652F\u4ED8",dataIndex:"sourceWeChatMoney",key:"sourceWeChatMoney",width:100,align:"center"},{title:"\u73B0\u91D1\u652F\u4ED8",dataIndex:"sourceCashMoney",key:"sourceCashMoney",width:100,align:"center"},{title:"\u5927\u4F17\u70B9\u8BC4",dataIndex:"incomePublicComments",key:"incomePublicComments",width:100,align:"center"},{title:"\u53E3\u7891",dataIndex:"incomeWordOfMouth",key:"incomeWordOfMouth",width:100,align:"center"},{title:"\u6296\u97F3",dataIndex:"incomeTiktok",key:"incomeTiktok",width:100,align:"center"},{title:"\u7F8E\u56E2\u5916\u5356",dataIndex:"incomeMeituan",key:"incomeMeituan",width:100,align:"center"},{title:"\u997F\u4E86\u4E48\u5916\u5356",dataIndex:"incomeHungry",key:"incomeHungry",width:100,align:"center"}]}]}],ae=function(){return(0,n.jsx)("div",{className:l()["loading-card"],children:(0,n.jsx)($.Z,{size:"large"})})};function ne(){var g=(0,s.useState)([]),h=(0,u.Z)(g,2),y=h[0],N=h[1],re=(0,s.useState)(1),j=(0,u.Z)(re,2),M=j[0],ie=j[1],de=(0,s.useState)(10),Y=(0,u.Z)(de,2),D=Y[0],oe=Y[1],se=(0,s.useState)(0),F=(0,u.Z)(se,2),le=F[0],ue=F[1],ce=(0,s.useState)([]),W=(0,u.Z)(ce,2),he=W[0],me=W[1],ge=(0,s.useState)(!1),A=(0,u.Z)(ge,2),fe=A[0],f=A[1],ve=(0,s.useState)([c()(c()(new Date(Date.now()-24*60*60*1e3*7)).format("YYYY-MM-DD 00:00:00")),c()(c()(new Date(Date.now())).format("YYYY-MM-DD 23:59:59"))]),H=(0,u.Z)(ve,2),v=H[0],ye=H[1],xe=(0,s.useState)(""),L=(0,u.Z)(xe,2),k=L[0],b=L[1];(0,s.useEffect)(function(){z()},[M,D,v]),(0,s.useEffect)(function(){Ie()},[]);var Ne=function(){var i=JSON.parse(JSON.stringify(y)),e={};y.forEach(function(a){Object.keys(a).forEach(function(r){r==="date"?e.date="\u5408\u8BA1":r=="shopName"?e.shopName="":typeof a[r]=="number"?(e[r]&&typeof e[r]=="number"||(e[r]=0),e[r]+=a[r]):e[r]="\u6682\u65E0\u7EDF\u8BA1"})}),i.push(e),N(i)},z=function(){var o=(0,T.Z)((0,m.Z)().mark(function i(){var e,a;return(0,m.Z)().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return e={startTime:v[0],endTime:v[1],current:M,pageSize:D},k.key&&(e.shopId=k.key),f(!0),d.next=5,S.getMarketReportList(e);case 5:a=d.sent,f(!1),a.statusCode===200?(N(a.data.data),ue(a.data.total)):C.default.error(a.errors||"\u83B7\u53D6\u8425\u9500\u62A5\u8868\u5931\u8D25");case 8:case"end":return d.stop()}},i)}));return function(){return o.apply(this,arguments)}}(),ke=function(i,e){ie(i),oe(e)},pe=function(){var o=(0,T.Z)((0,m.Z)().mark(function i(){var e,a,r,d,O,p,G;return(0,m.Z)().wrap(function(x){for(;;)switch(x.prev=x.next){case 0:return e={startTime:v[0],endTime:v[1]},k.key&&(e.shopId=k.key),f(!0),x.next=5,S.marketingReportExport(e);case 5:a=x.sent,f(!1),a.statusCode===200?(r={},d=new Date,O="\u8425\u9500\u62A5\u8868-"+d.toLocaleString().replaceAll("/","-"),r.fileName=O,p=[],Object.keys(a.data[0]).forEach(function(Te){p.push(Te)}),console.log("sheetHeader",p),r.datas=[{sheetData:a.data,sheetName:O,sheetFilter:p,sheetHeader:["ID","\u65F6\u95F4","\u5E97\u94FA\u540D\u79F0","\u5E97\u94FAID","\u8425\u6536\u6D41\u6C34","\u5B9E\u9645\u8425\u6536","\u4F1A\u5458\u6298\u6263","\u4F18\u60E0\u5238\u6298\u6263","\u6D3B\u52A8\u6298\u6263","\u5BA2\u5355\u4EF7-\u6D41\u6C34\u5355\u4EF7","\u5BA2\u5355\u4EF7-\u5B9E\u6536\u5355\u4EF7","\u5355\u5355\u4EF7-\u603B\u6D41\u6C34","\u5355\u5355\u4EF7-\u603B\u5B9E\u6536","\u73B0\u91D1-\u4EA4\u6613\u7B14\u6570","\u73B0\u91D1\u6536\u5165","\u5FAE\u4FE1-\u4EA4\u6613\u7B14\u6570","\u5FAE\u4FE1\u6536\u5165","\u4F1A\u5458\u6536\u5165","\u975E\u4F1A\u5458\u6536\u5165"]}],G=new(_())(r),G.saveExcel()):C.default.error(a.errors||"\u5BFC\u51FA\u5931\u8D25");case 8:case"end":return x.stop()}},i)}));return function(){return o.apply(this,arguments)}}(),Ie=function(){var o=(0,T.Z)((0,m.Z)().mark(function i(){var e,a;return(0,m.Z)().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return f(!0),d.next=3,S.getOrgTree();case 3:e=d.sent,f(!1),e.statusCode===200?(a=e.data,Ce(a),me(a)):C.default.error(e.errors||"\u83B7\u53D6\u7EC4\u7EC7\u6811\u51FA\u9519");case 6:case"end":return d.stop()}},i)}));return function(){return o.apply(this,arguments)}}(),Ce=function o(i){i.forEach(function(e){e.children&&e.children.length>0?o(e.children):e.type===2||e.type===3?e.disabled=!1:e.disabled=!0})};return(0,n.jsxs)(K.ZP,{children:[fe?(0,n.jsx)(ae,{}):null,(0,n.jsx)(R.Z,{className:l()["data-search-card"],children:(0,n.jsxs)("div",{className:l()["data-search-box"],children:[(0,n.jsxs)("div",{className:l()["data-search-left"],children:[(0,n.jsx)(ee,{className:l()["my-range-picker"],value:v,onChange:function(i,e){var a=[c()(c()(new Date(e[0])).format("YYYY-MM-DD 00:00:00")),c()(c()(new Date(e[1])).format("YYYY-MM-DD 23:59:59"))];ye(a)}}),(0,n.jsx)(E.Z,{style:{width:"300px",marginLeft:"50px"},dropdownStyle:{maxHeight:400,overflow:"auto"},treeData:he,onSelect:function(i,e){e.type===2||e===3?b(e):b("")},placeholder:"\u8BF7\u9009\u62E9\u7EC4\u7EC7\u67B6\u6784",treeDefaultExpandAll:!0})]}),(0,n.jsxs)("div",{className:l()["data-search-btns"],children:[(0,n.jsx)(I.Z,{type:"primary",icon:(0,n.jsx)(Q.Z,{}),size:"middle",onClick:pe,children:"\u4E0B\u8F7D"}),(0,n.jsx)(I.Z,{className:l()["search-btn-item"],children:"\u91CD\u7F6E"}),(0,n.jsx)(I.Z,{className:l()["search-btn-item"],type:"primary",onClick:z,children:"\u67E5\u8BE2"})]})]})}),(0,n.jsxs)(R.Z,{className:l()["table-card"],children:[(0,n.jsx)(B.Z,{dataSource:y,columns:te,bordered:!0,sticky:!0,scroll:{x:1e3},pagination:!1}),(0,n.jsx)("div",{className:l()["table-page"],children:(0,n.jsx)(U.Z,{current:M,pageSize:D,total:le,onChange:ke})})]})]})}}}]); diff --git a/dist/p__order__order-market-report.7ce1f6c9.async.js b/dist/p__order__order-market-report.7ce1f6c9.async.js new file mode 100644 index 0000000..b5bb301 --- /dev/null +++ b/dist/p__order__order-market-report.7ce1f6c9.async.js @@ -0,0 +1 @@ +(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[2097,1322,1279,7800,6398,6794,944,8208],{14633:function(D){D.exports={"data-search-card":"data-search-card___22tRu","data-search-box":"data-search-box___1fl3A","search-btn-item":"search-btn-item___3ufuR","table-page":"table-page___331Uq","data-search-left":"data-search-left___29FCy","loading-card":"loading-card___oU1p6"}},87385:function(D,P,t){"use strict";t.r(P),t.d(P,{default:function(){return ne}});var we=t(14781),U=t(36138),Se=t(66456),B=t(64411),Me=t(58024),Z=t(91894),Oe=t(57663),R=t(71577),m=t(39428),De=t(34792),I=t(48086),C=t(3182),u=t(2824),Pe=t(20228),$=t(11382),Ze=t(14965),J=t(91774),Re=t(62999),E=t(54680),s=t(67294),K=t(78009),Q=t(90631),V=t(14633),l=t.n(V),X=t(30381),c=t.n(X),T=t(48971),w={getMarketReportList:function(h){return(0,T.WY)("/kitchen/api/report-statistics/cash-register-report",{method:"Post",data:h})},getOrgTree:function(){return(0,T.WY)("/kitchen/api/report-statistics/org-tree",{method:"GET"})},marketingReportExport:function(h){return(0,T.WY)("/kitchen/api/report-statistics/cash-register-report-export",{method:"Post",data:h})}},q=t(53667),_=t.n(q),r=t(85893),Ee=E.Z.TreeNode,ee=J.Z.RangePicker,te=[{title:"\u65F6\u95F4",dataIndex:"date",key:"date",width:170,align:"center",fixed:"left"},{title:"\u5E97\u94FA",dataIndex:"shopName",key:"shopName",width:170,align:"center",fixed:"left",filters:[{text:"\u56DB\u5DDD\u9ED1\u83E0\u841D\u79D1\u6280",value:"\u56DB\u5DDD\u9ED1\u83E0\u841D\u79D1\u6280"},{text:"\u56DB\u5DDD\u767D\u83E0\u841D\u79D1\u6280",value:"\u56DB\u5DDD\u767D\u83E0\u841D\u79D1\u6280"}],onFilter:function(h,y){return y.shopName.indexOf(h)===0}},{title:"\u8425\u6536",dataIndex:"revenue",key:"revenue",children:[{title:"\u8425\u4E1A\u989D",dataIndex:"turnover",key:"turnover",children:[{title:"\u6D41\u6C34",dataIndex:"revenueFlow",key:"revenueFlow",width:100,align:"center"},{title:"\u5B9E\u6536",dataIndex:"paidAmount",key:"paidAmount",width:100,align:"center"}]},{title:"\u4F18\u60E0\u660E\u7EC6",dataIndex:"discountDetails",key:"discountDetails",children:[{title:"\u4F1A\u5458\u4EF7",dataIndex:"discountMember",key:"discountMember",width:100,align:"center"},{title:"\u4F18\u60E0\u5238",dataIndex:"discountCoupon",key:"discountCoupon",width:100,align:"center"},{title:"\u6D3B\u52A8",dataIndex:"discountActivity",key:"discountActivity",width:100,align:"center"}]}]},{title:"\u5206\u7C7B\u8425\u6536",dataIndex:"classifiedRevenue",key:"classifiedRevenue",children:[{title:"\u5916\u5356\u8425\u4E1A\u989D",dataIndex:"takeOutTurnover",key:"takeOutTurnover",children:[{title:"\u5916\u5356\u8425\u6536",dataIndex:"takeOutRevenue",key:"takeOutRevenue",width:100,align:"center"},{title:"\u7F8E\u56E2\u5916\u5356",dataIndex:"meituanTakeout",key:"meituanTakeout",width:100,align:"center"},{title:"\u997F\u4E86\u4E48\u5916\u5356",dataIndex:"hungryTakeOut",key:"hungryTakeOut",width:100,align:"center"}]},{title:"\u98DF\u5802\u8425\u6536",dataIndex:"canteenRevenue",key:"canteenRevenue",children:[{title:"\u5802\u98DF\u6D41\u6C34",dataIndex:"freshWaterInTheHall",key:"freshWaterInTheHall",width:100,align:"center"},{title:"\u5802\u98DF\u5B9E\u6536",dataIndex:"paidInFood",key:"paidInFood",width:100,align:"center"}]},{title:"\u7B2C\u4E09\u65B9\u5E73\u53F0\u8425\u6536",dataIndex:"thirdPartyPlatformRevenue",key:"thirdPartyPlatformRevenue",children:[{title:"\u5927\u4F17\u70B9\u8BC4",dataIndex:"publicComments",key:"publicComments",width:100,align:"center"},{title:"\u53E3\u7891",dataIndex:"wordOfMouth",key:"wordOfMouth",width:100,align:"center"},{title:"\u6296\u97F3",dataIndex:"tiktok",key:"tiktok",width:100,align:"center"}]}]},{title:"\u5802\u98DF\u5355\u4EF7",dataIndex:"unitPriceCanteenFood",key:"unitPriceCanteenFood",children:[{title:"\u5BA2\u5355\u4EF7",dataIndex:"customerUnitPrice",key:"customerUnitPrice",children:[{title:"\u6D41\u6C34\u5355\u4EF7",dataIndex:"customerRevenueFlow",key:"customerRevenueFlow",width:100,align:"center"},{title:"\u5B9E\u6536\u5355\u4EF7",dataIndex:"customerPaidAmount",key:"customerPaidAmount",width:100,align:"center"}]},{title:"\u5355\u5355\u4EF7",dataIndex:"singleUnitPrice",key:"singleUnitPrice",children:[{title:"\u6D41\u6C34\u5355\u4EF7",dataIndex:"orderRevenueFlow",key:"orderRevenueFlow",width:100,align:"center"},{title:"\u5B9E\u6536\u5355\u4EF7",dataIndex:"orderPaidAmount",key:"orderPaidAmount",width:100,align:"center"}]}]},{title:"\u4EA4\u6613\u7B14\u6570",dataIndex:"numberOfTransactions",key:"numberOfTransactions",children:[{title:"\u73B0\u91D1",dataIndex:"sourceCashCount",key:"sourceCashCount",width:100,align:"center"},{title:"\u5FAE\u4FE1\u652F\u4ED8",dataIndex:"sourceWeChatCount",key:"sourceWeChatCount",width:100,align:"center"},{title:"\u5927\u4F17\u70B9\u8BC4",dataIndex:"numPublicComments",key:"numPublicComments",width:100,align:"center"},{title:"\u53E3\u7891",dataIndex:"numWordOfMouth",key:"numWordOfMouth",width:100,align:"center"},{title:"\u6296\u97F3",dataIndex:"numTiktok",key:"numTiktok",width:100,align:"center"},{title:"\u7F8E\u56E2\u5916\u5356",dataIndex:"numMeituanTakeout",key:"numMeituanTakeout",width:100,align:"center"},{title:"\u997F\u4E86\u4E48\u5916\u5356",dataIndex:"numHungryTakeOut",key:"numHungryTakeOut",width:100,align:"center"}]},{title:"\u6536\u5165\u6784\u6210",dataIndex:"revenueComposition",key:"revenueComposition",children:[{title:"\u6536\u5165\u6765\u6E90",dataIndex:"sourceOfIncome",key:"sourceOfIncome",children:[{title:"\u4F1A\u5458",dataIndex:"memberIncomeMoney",key:"memberIncomeMoney",width:100,align:"center"},{title:"\u975E\u4F1A\u5458",dataIndex:"nonMemberIncomeMoney",key:"nonMemberIncomeMoney",width:100,align:"center"},{title:"\u5916\u5356",dataIndex:"incomeTakeOut",key:"incomeTakeOut",width:100,align:"center"},{title:"\u56E2\u8D2D",dataIndex:"incomeGroupPurchase",key:"incomeGroupPurchase",width:100,align:"center"}]},{title:"\u6536\u5165\u7ED3\u6784",dataIndex:"revenueStructure",key:"revenueStructure",children:[{title:"\u5FAE\u4FE1\u652F\u4ED8",dataIndex:"sourceWeChatMoney",key:"sourceWeChatMoney",width:100,align:"center"},{title:"\u73B0\u91D1\u652F\u4ED8",dataIndex:"sourceCashMoney",key:"sourceCashMoney",width:100,align:"center"},{title:"\u5927\u4F17\u70B9\u8BC4",dataIndex:"incomePublicComments",key:"incomePublicComments",width:100,align:"center"},{title:"\u53E3\u7891",dataIndex:"incomeWordOfMouth",key:"incomeWordOfMouth",width:100,align:"center"},{title:"\u6296\u97F3",dataIndex:"incomeTiktok",key:"incomeTiktok",width:100,align:"center"},{title:"\u7F8E\u56E2\u5916\u5356",dataIndex:"incomeMeituan",key:"incomeMeituan",width:100,align:"center"},{title:"\u997F\u4E86\u4E48\u5916\u5356",dataIndex:"incomeHungry",key:"incomeHungry",width:100,align:"center"}]}]}],ae=function(){return(0,r.jsx)("div",{className:l()["loading-card"],children:(0,r.jsx)($.Z,{size:"large"})})};function ne(){var g=(0,s.useState)([]),h=(0,u.Z)(g,2),y=h[0],N=h[1],re=(0,s.useState)(1),j=(0,u.Z)(re,2),S=j[0],ie=j[1],de=(0,s.useState)(10),Y=(0,u.Z)(de,2),M=Y[0],oe=Y[1],se=(0,s.useState)(0),F=(0,u.Z)(se,2),le=F[0],ue=F[1],ce=(0,s.useState)([]),W=(0,u.Z)(ce,2),he=W[0],me=W[1],ge=(0,s.useState)(!1),A=(0,u.Z)(ge,2),fe=A[0],f=A[1],ve=(0,s.useState)([c()(c()(new Date(Date.now()-24*60*60*1e3*7)).format("YYYY-MM-DD 00:00:00")),c()(c()(new Date(Date.now())).format("YYYY-MM-DD 23:59:59"))]),H=(0,u.Z)(ve,2),v=H[0],ye=H[1],xe=(0,s.useState)(""),L=(0,u.Z)(xe,2),k=L[0],b=L[1];(0,s.useEffect)(function(){z()},[S,M,v]),(0,s.useEffect)(function(){Ie()},[]);var Ne=function(){var i=JSON.parse(JSON.stringify(y)),e={};y.forEach(function(a){Object.keys(a).forEach(function(n){n==="date"?e.date="\u5408\u8BA1":n=="shopName"?e.shopName="":typeof a[n]=="number"?(e[n]&&typeof e[n]=="number"||(e[n]=0),e[n]+=a[n]):e[n]="\u6682\u65E0\u7EDF\u8BA1"})}),i.push(e),N(i)},z=function(){var o=(0,C.Z)((0,m.Z)().mark(function i(){var e,a;return(0,m.Z)().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return e={startTime:v[0],endTime:v[1],current:S,pageSize:M},k.key&&(e.shopId=k.key),f(!0),d.next=5,w.getMarketReportList(e);case 5:a=d.sent,f(!1),a.statusCode===200?(N(a.data.data),ue(a.data.total)):I.default.error(a.errors||"\u83B7\u53D6\u8425\u9500\u62A5\u8868\u5931\u8D25");case 8:case"end":return d.stop()}},i)}));return function(){return o.apply(this,arguments)}}(),ke=function(i,e){ie(i),oe(e)},pe=function(){var o=(0,C.Z)((0,m.Z)().mark(function i(){var e,a,n,d,O,p,G;return(0,m.Z)().wrap(function(x){for(;;)switch(x.prev=x.next){case 0:return e={startTime:v[0],endTime:v[1]},k.key&&(e.shopId=k.key),f(!0),x.next=5,w.marketingReportExport(e);case 5:a=x.sent,f(!1),a.statusCode===200?(n={},d=new Date,O="\u8425\u9500\u62A5\u8868-"+d.toLocaleString().replaceAll("/","-"),n.fileName=O,p=[],Object.keys(a.data[0]).forEach(function(Te){p.push(Te)}),console.log("sheetHeader",p),n.datas=[{sheetData:a.data,sheetName:O,sheetFilter:p,sheetHeader:["ID","\u65F6\u95F4","\u5E97\u94FA\u540D\u79F0","\u5E97\u94FAID","\u8425\u6536\u6D41\u6C34","\u5B9E\u9645\u8425\u6536","\u4F1A\u5458\u6298\u6263","\u4F18\u60E0\u5238\u6298\u6263","\u6D3B\u52A8\u6298\u6263","\u5BA2\u5355\u4EF7-\u6D41\u6C34\u5355\u4EF7","\u5BA2\u5355\u4EF7-\u5B9E\u6536\u5355\u4EF7","\u5355\u5355\u4EF7-\u603B\u6D41\u6C34","\u5355\u5355\u4EF7-\u603B\u5B9E\u6536","\u73B0\u91D1-\u4EA4\u6613\u7B14\u6570","\u73B0\u91D1\u6536\u5165","\u5FAE\u4FE1-\u4EA4\u6613\u7B14\u6570","\u5FAE\u4FE1\u6536\u5165","\u4F1A\u5458\u6536\u5165","\u975E\u4F1A\u5458\u6536\u5165"]}],G=new(_())(n),G.saveExcel()):I.default.error(a.errors||"\u5BFC\u51FA\u5931\u8D25");case 8:case"end":return x.stop()}},i)}));return function(){return o.apply(this,arguments)}}(),Ie=function(){var o=(0,C.Z)((0,m.Z)().mark(function i(){var e,a;return(0,m.Z)().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return f(!0),d.next=3,w.getOrgTree();case 3:e=d.sent,f(!1),e.statusCode===200?(a=e.data,Ce(a),me(a)):I.default.error(e.errors||"\u83B7\u53D6\u7EC4\u7EC7\u6811\u51FA\u9519");case 6:case"end":return d.stop()}},i)}));return function(){return o.apply(this,arguments)}}(),Ce=function o(i){i.forEach(function(e){e.children&&e.children.length>0?o(e.children):e.type===2||e.type===3?e.disabled=!1:e.disabled=!0})};return(0,r.jsxs)(K.ZP,{children:[fe?(0,r.jsx)(ae,{}):null,(0,r.jsx)(Z.Z,{className:l()["data-search-card"],children:(0,r.jsxs)("div",{className:l()["data-search-box"],children:[(0,r.jsxs)("div",{className:l()["data-search-left"],children:[(0,r.jsx)(ee,{className:l()["my-range-picker"],value:v,onChange:function(i,e){var a=[c()(c()(new Date(e[0])).format("YYYY-MM-DD 00:00:00")),c()(c()(new Date(e[1])).format("YYYY-MM-DD 23:59:59"))];ye(a)}}),(0,r.jsx)(E.Z,{style:{width:"300px",marginLeft:"50px"},dropdownStyle:{maxHeight:400,overflow:"auto"},treeData:he,onSelect:function(i,e){e.type===2||e===3?b(e):b("")},placeholder:"\u8BF7\u9009\u62E9\u7EC4\u7EC7\u67B6\u6784",treeDefaultExpandAll:!0})]}),(0,r.jsxs)("div",{className:l()["data-search-btns"],children:[(0,r.jsx)(R.Z,{type:"primary",icon:(0,r.jsx)(Q.Z,{}),size:"middle",onClick:pe,children:"\u4E0B\u8F7D"}),(0,r.jsx)(R.Z,{className:l()["search-btn-item"],type:"primary",onClick:z,children:"\u67E5\u8BE2"})]})]})}),(0,r.jsxs)(Z.Z,{className:l()["table-card"],children:[(0,r.jsx)(B.Z,{dataSource:y,columns:te,bordered:!0,sticky:!0,scroll:{x:1e3},pagination:!1}),(0,r.jsx)("div",{className:l()["table-page"],children:(0,r.jsx)(U.Z,{current:S,pageSize:M,total:le,onChange:ke})})]})]})}}}]); diff --git a/dist/p__order__order-nopay-detail.338fbc17.async.js b/dist/p__order__order-nopay-detail.ae52fbfc.async.js similarity index 84% rename from dist/p__order__order-nopay-detail.338fbc17.async.js rename to dist/p__order__order-nopay-detail.ae52fbfc.async.js index f7eec6b..3daf785 100644 --- a/dist/p__order__order-nopay-detail.338fbc17.async.js +++ b/dist/p__order__order-nopay-detail.ae52fbfc.async.js @@ -1 +1 @@ -(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[2369],{26177:function(K,g,e){"use strict";var h=e(71194),f=e(50146),r=e(98858),c=e(4914),z=e(34792),D=e(48086),_=e(39428),F=e(3182),W=e(2824),j=e(67294),N=e(16894),B=e(12826),I=e(46389),n=e(85893),l={},b=function(P){var C,m,E,M,p=P.createModalVisible,A=P.onCancel,k=(0,j.useState)([]),Z=(0,W.Z)(k,2),y=Z[0],a=Z[1];return(0,n.jsxs)(f.Z,{title:"\u8BA2\u5355\u8BE6\u60C5",width:1e3,visible:P.createModalVisible,bodyStyle:{padding:"32px 40px 48px"},footer:null,destroyOnClose:!0,onCancel:function(){return A()},maskClosable:!1,children:[(0,n.jsx)(B.ZP,{title:"\u8BA2\u5355\u4FE1\u606F",request:(0,F.Z)((0,_.Z)().mark(function d(){return(0,_.Z)().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,I.Z.GetOrderDetails({id:P.values.id});case 2:return l=s.sent,a(l),s.abrupt("return",Promise.resolve({success:!0,data:l}));case 5:case"end":return s.stop()}},d)})),columns:[{title:"\u4F1A\u5458\u59D3\u540D",key:"customer_Name",dataIndex:"customer_Name"},{title:"\u624B\u673A\u53F7",key:"customer_Tel",dataIndex:"customer_Tel"},{title:"\u8BA2\u5355\u6D41\u6C34",key:"order_Number",dataIndex:"order_Number"},{title:"\u8BA2\u5355\u53F7",key:"transaction_ID",dataIndex:"transaction_ID"},{title:"\u4EA4\u6613\u5355\u53F7",key:"trade_no",dataIndex:"trade_no"},{title:"\u6392\u961F\u53F7",key:"order_SortID",dataIndex:"order_SortID"},{title:"\u6298\u6263",key:"discount",dataIndex:"discount"},{title:"\u5B9E\u4ED8\u91D1\u989D",dataIndex:"order_RealMoney",valueType:"money",fieldProps:{moneySymbol:"\xA5"}},{title:"\u5E94\u4ED8\u91D1\u989D",dataIndex:"order_OriginalMoney",valueType:"money",fieldProps:{moneySymbol:"\xA5"}},{title:"\u5B9E\u4ED8\u91D1\u989D(\u9000)",dataIndex:"refundRealMoney",valueType:"money",fieldProps:{moneySymbol:"\xA5"}},{title:"\u5E94\u4ED8\u91D1\u989D(\u9000)",dataIndex:"refundOriginalMoney",valueType:"money",fieldProps:{moneySymbol:"\xA5"}},{title:"\u6570\u91CF",dataIndex:"order_Count",hideInSearch:!0},{title:"\u652F\u4ED8\u65B9\u5F0F",dataIndex:"payMode",key:"payMode"},{title:"\u8BA2\u5355\u72B6\u6001",dataIndex:"order_Status",key:"order_Status"},{title:"\u6D88\u8D39\u91D1\u989D",dataIndex:"recharge",key:"recharge"},{title:"\u6D88\u8D39\u8D60\u9001\u91D1\u989D",dataIndex:"rechargeBalance",key:"rechargeBalance"}]}),(0,n.jsx)("h3",{style:{fontWeight:"bold",fontSize:16,marginTop:30},children:"\u5546\u54C1\u5217\u8868"}),(0,n.jsx)(N.ZP,{rowKey:"id",request:(0,F.Z)((0,_.Z)().mark(function d(){return(0,_.Z)().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,I.Z.GetOrderDetails({id:P.values.id});case 2:return l=s.sent,s.abrupt("return",{data:l.detailList,success:!0});case 4:case"end":return s.stop()}},d)})),columns:[{title:"\u5546\u54C1\u5206\u7C7B",key:"goodsTypeName",dataIndex:"goodsTypeName"},{title:"\u5546\u54C1\u540D\u79F0",key:"goodsName",dataIndex:"goodsName"},{title:"\u5E94\u4ED8\u91D1\u989D",key:"originalMoney",dataIndex:"originalMoney",valueType:"money",fieldProps:{moneySymbol:"\xA5"}},{title:"\u5B9E\u4ED8\u91D1\u989D",dataIndex:"realMoney",valueType:"money",fieldProps:{moneySymbol:"\xA5"}},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(L,s){return[(0,n.jsx)("a",{onClick:function(){I.Z.printsmallticket({orderId:P.values.id,subOrderId:s.id}).then(function(R){debugger;R.data?D.default.success("\u6253\u5370\u6210\u529F"):D.default.error("\u6253\u5370\u5931\u8D25")})},children:"\u6253\u5370\u5C0F\u7968"},"config")]}}],toolBarRender:!1,search:!1}),(0,n.jsx)(c.Z,{title:"\u4F18\u60E0\u5238",children:(C=l)===null||C===void 0||(m=C.paperCoupons)===null||m===void 0?void 0:m.map(function(d){return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(c.Z.Item,{label:"\u5E73\u53F0",children:d.platformName}),(0,n.jsx)(c.Z.Item,{label:"\u4F18\u60E0\u5238",children:d.name}),(0,n.jsx)(c.Z.Item,{label:"\u4F18\u60E0\u91D1\u989D",children:d.amount})]})})}),(0,n.jsx)(c.Z,{column:5,title:"\u62B5\u6263\u5238",children:(E=l)===null||E===void 0||(M=E.goodsCoupons)===null||M===void 0?void 0:M.map(function(d){return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(c.Z.Item,{label:"\u5E73\u53F0",children:d.platformName}),(0,n.jsx)(c.Z.Item,{label:"\u62B5\u6263\u5238",children:d.name}),(0,n.jsx)(c.Z.Item,{label:"\u5546\u54C1",children:d.goodsName}),(0,n.jsx)(c.Z.Item,{label:"\u5546\u54C1\u539F\u4EF7",children:d.goodsAmount}),(0,n.jsx)(c.Z.Item,{label:"\u5E73\u53F0\u552E\u4EF7",children:d.platformAmount})]})})})]})};g.Z=b},46389:function(K,g,e){"use strict";var h=e(48971);g.Z={orderList:function(r){return r.isreport=!0,(0,h.WY)("/kitchen/api/order/order-detail-flow",{method:"Post",data:r})},srdTypeList:function(r){return(0,h.WY)("/kitchen/api/storetype/list",{method:"Post",data:r})},srdList:function(r){return(0,h.WY)("/kitchen/api/store/list",{method:"Post",data:r})},goodsList:function(r){return(0,h.WY)("/kitchen/api/goodes/list",{method:"Post",data:r})},goodsTypeList:function(r){return(0,h.WY)("/kitchen/api/goodstype/list",{method:"Post",data:r})},StartRefund:function(r){return(0,h.WY)("/kitchen/api/refund/StartOrderRefund",{method:"Post",params:r})},GetOrderDetails:function(r){return(0,h.WY)("/kitchen/api/Order/GetOrderDetails",{method:"Post",params:r})},GetFlowExport:function(r){return(0,h.WY)("/kitchen/api/Order/GetFlowExport",{method:"Post",data:r})},printsmallticket:function(r){return(0,h.WY)("/kitchen/api/printer/print-small-ticket",{method:"Post",data:r})}}},65585:function(K,g,e){"use strict";e.r(g),e.d(g,{default:function(){return Z}});var h=e(57663),f=e(71577),r=e(39428),c=e(3182),z=e(34792),D=e(48086),_=e(11849),F=e(47673),W=e(4107),j=e(93224),N=e(43358),B=e(34041),I=e(2824),n=e(90631),l=e(67294),b=e(78009),U=e(16894),P=e(53667),C=e.n(P),m=e(48971),E={orderList:function(a){return a.isreport=!0,(0,m.WY)("/kitchen/api/order/psot-unpaid-order",{method:"Post",data:a})},srdTypeList:function(a){return(0,m.WY)("/kitchen/api/storetype/list",{method:"Post",data:a})},srdList:function(a){return(0,m.WY)("/kitchen/api/store/list",{method:"Post",data:a})},goodsList:function(a){return(0,m.WY)("/kitchen/api/goodes/list",{method:"Post",data:a})},goodsTypeList:function(a){return(0,m.WY)("/kitchen/api/goodstype/list",{method:"Post",data:a})},StartRefund:function(a){return(0,m.WY)("/kitchen/api/refund/StartOrderRefund",{method:"Post",params:a})},GetOrderDetails:function(a){return(0,m.WY)("/kitchen/api/Order/GetOrderDetails",{method:"Post",params:a})},GetFlowExport:function(a){return(0,m.WY)("/kitchen/api/Order/GetFlowExport",{method:"Post",data:a})},printsmallticket:function(a){return(0,m.WY)("/kitchen/api/printer/print-small-ticket",{method:"Post",data:a})}},M=e(26177),p=e(85893),A=["defaultRender"],k=function(){var a=(0,l.useState)(),d=(0,I.Z)(a,2),L=d[0],s=d[1],G=(0,l.useState)(!1),R=(0,I.Z)(G,2),J=R[0],Y=R[1],Q=(0,l.useState)([]),w=(0,I.Z)(Q,2),X=w[0],q=w[1],ee=(0,l.useState)([]),V=(0,I.Z)(ee,2),se=V[0],te=V[1],re=(0,l.useRef)(),ae=(0,l.useState)([]),$=(0,I.Z)(ae,2),H=$[0],ne=$[1];(0,l.useEffect)(function(){function u(){E.srdList().then(function(i){var t=i.data;console.log(t),t==null||t.forEach(function(o){o.value=o.id,o.label=o.name}),q(t)})}u()},[]);function ie(){E.GetFlowExport(H).then(function(u){var i=URL.createObjectURL(new Blob([u])),t="\u8BA2\u5355\u6D41\u6C34.xlsx",o=document.createElement("a");o.href=i,o.download=t,o.click(),URL.revokeObjectURL(i)})}var oe=[{title:"\u4E3B\u952E",dataIndex:"id",tip:"\u89C4\u5219\u540D\u79F0\u662F\u552F\u4E00\u7684 key",hideInSearch:!0,hideInTable:!0},{title:"\u8BA2\u5355\u65F6\u95F4",dataIndex:"order_CreateTime",valueType:"dateRange",hideInTable:!0,search:{transform:function(i){return{order_CreateTime:i[0],order_EndTime:i[1]}}}},{title:"\u624B\u673A\u53F7",dataIndex:"Customer_Tel",hideInTable:!0},{title:"\u5E97\u94FA\u540D\u79F0",dataIndex:"storeId",hideInTable:!0,valueType:"select",renderFormItem:function(){return(0,p.jsx)(B.Z,{mode:"multiple",showArrow:!0,optionFilterProp:"label",placeholder:"\u8BF7\u9009\u62E9\u5E97\u94FA",style:{width:"100%"},options:X})}},{title:"\u4EA4\u6613\u5355\u53F7",dataIndex:"order_Number",hideInSearch:!0},{title:"\u5E97\u94FA\u540D\u79F0",dataIndex:"storeName",hideInSearch:!0},{title:"\u5E94\u4ED8\u91D1\u989D",dataIndex:"order_OriginalMoney",renderText:function(i){return"".concat(i,"\xA5")},hideInSearch:!0},{title:"\u6570\u91CF",dataIndex:"order_Count",hideInSearch:!0},{title:"\u521B\u5EFA\u65F6\u95F4",sorter:!0,dataIndex:"order_CreateTime",valueType:"dateTime",hideInSearch:!0,renderFormItem:function(i,t,o){var T=t.defaultRender,v=(0,j.Z)(t,A),O=o.getFieldValue("status");return"".concat(O)==="0"?!1:"".concat(O)==="3"?(0,p.jsx)(W.Z,(0,_.Z)((0,_.Z)({},v),{},{placeholder:"\u8BF7\u8F93\u5165\u5F02\u5E38\u539F\u56E0\uFF01"})):T(i)}},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(i,t){return[(0,p.jsx)("a",{onClick:function(){s(t),Y(!0)},children:"\u67E5\u770B\u8BE6\u60C5"},"config"),(0,p.jsx)("a",{onClick:function(){E.printsmallticket({orderId:t.id}).then(function(T){T.data?D.default.success("\u6253\u5370\u6210\u529F"):D.default.error("\u6253\u5370\u5931\u8D25")})},children:"\u6253\u5370\u5C0F\u7968"},"config")]}}],de=function(){var u=(0,c.Z)((0,r.Z)().mark(function i(){var t,o,T,v,O,x;return(0,r.Z)().wrap(function(S){for(;;)switch(S.prev=S.next){case 0:return S.next=2,E.GetFlowExport(H);case 2:t=S.sent,t.isSuccess?(o={},T=new Date,v="\u8BA2\u5355\u6D41\u6C34"+T.toLocaleString().replaceAll("/","-"),o.fileName=v,O=["storeTypeName","storeName","order_Number","order_OriginalMoney","order_RealMoney","refundOriginalMoney","refundRealMoney","order_Count","order_CreateTime"],o.datas=[{sheetData:t.data,sheetName:v,sheetFilter:O,sheetHeader:["\u5E97\u94FA\u5206\u7C7B","\u5E97\u94FA\u540D\u79F0","\u4EA4\u6613\u5355\u53F7","\u5E94\u4ED8\u91D1\u989D","\u5B9E\u4ED8\u91D1\u989D","\u5E94\u4ED8\u91D1\u989D(\u9000)","\u5B9E\u4ED8\u91D1\u989D(\u9000)","\u5B50\u8BA2\u5355\u6570\u91CF","\u521B\u5EFA\u65F6\u95F4"]}],x=new(C())(o),x.saveExcel()):D.default.error(t.errors||"\u5BFC\u51FA\u5931\u8D25");case 4:case"end":return S.stop()}},i)}));return function(){return u.apply(this,arguments)}}();return(0,p.jsxs)(b.ZP,{children:[(0,p.jsx)(U.ZP,{headerTitle:"\u8BA2\u5355\u6D41\u6C34",actionRef:re,rowKey:"orderFlowId",search:{labelWidth:120},toolBarRender:function(){return[(0,p.jsxs)(f.Z,{type:"primary",onClick:de,children:[(0,p.jsx)(n.Z,{})," \u5BFC\u51FA"]},"create")]},columns:oe,request:function(){var u=(0,c.Z)((0,r.Z)().mark(function i(t,o,T){var v;return(0,r.Z)().wrap(function(x){for(;;)switch(x.prev=x.next){case 0:return t.storeTypeId!=null&&(t.storeTypeId=srdTypeList[t.storeTypeId].storeTypeId),t.orderStatus=0,x.next=4,E.orderList(t);case 4:return v=x.sent,ne(t),te(v.data.data),x.abrupt("return",{data:v.data.data,success:!0,total:v.data.total});case 8:case"end":return x.stop()}},i)}));return function(i,t,o){return u.apply(this,arguments)}}()}),!!L&&(0,p.jsx)(M.Z,{onCancel:function(){s(void 0),Y(!1)},createModalVisible:J,values:L||{}})]})},Z=k}}]); +(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[2369],{26177:function(U,g,e){"use strict";var h=e(71194),f=e(50146),r=e(98858),c=e(4914),z=e(34792),D=e(48086),P=e(39428),F=e(3182),W=e(2824),j=e(67294),K=e(16894),B=e(12826),I=e(46389),n=e(85893),l={},b=function(_){var O,m,E,M,p=_.createModalVisible,A=_.onCancel,k=(0,j.useState)([]),Z=(0,W.Z)(k,2),y=Z[0],a=Z[1];return(0,n.jsxs)(f.Z,{title:"\u8BA2\u5355\u8BE6\u60C5",width:1e3,visible:_.createModalVisible,bodyStyle:{padding:"32px 40px 48px"},footer:null,destroyOnClose:!0,onCancel:function(){return A()},maskClosable:!1,children:[(0,n.jsx)(B.ZP,{title:"\u8BA2\u5355\u4FE1\u606F",request:(0,F.Z)((0,P.Z)().mark(function d(){return(0,P.Z)().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,I.Z.GetOrderDetails({id:_.values.id});case 2:return l=s.sent,a(l),s.abrupt("return",Promise.resolve({success:!0,data:l}));case 5:case"end":return s.stop()}},d)})),columns:[{title:"\u4F1A\u5458\u59D3\u540D",key:"customer_Name",dataIndex:"customer_Name"},{title:"\u624B\u673A\u53F7",key:"customer_Tel",dataIndex:"customer_Tel"},{title:"\u8BA2\u5355\u6D41\u6C34",key:"order_Number",dataIndex:"order_Number"},{title:"\u8BA2\u5355\u53F7",key:"transaction_ID",dataIndex:"transaction_ID"},{title:"\u4EA4\u6613\u5355\u53F7",key:"trade_no",dataIndex:"trade_no"},{title:"\u6392\u961F\u53F7",key:"order_SortID",dataIndex:"order_SortID"},{title:"\u6298\u6263",key:"discount",dataIndex:"discount"},{title:"\u5B9E\u4ED8\u91D1\u989D",dataIndex:"order_RealMoney",valueType:"money",fieldProps:{moneySymbol:"\xA5"}},{title:"\u5E94\u4ED8\u91D1\u989D",dataIndex:"order_OriginalMoney",valueType:"money",fieldProps:{moneySymbol:"\xA5"}},{title:"\u5B9E\u4ED8\u91D1\u989D(\u9000)",dataIndex:"refundRealMoney",valueType:"money",fieldProps:{moneySymbol:"\xA5"}},{title:"\u5E94\u4ED8\u91D1\u989D(\u9000)",dataIndex:"refundOriginalMoney",valueType:"money",fieldProps:{moneySymbol:"\xA5"}},{title:"\u6570\u91CF",dataIndex:"order_Count",hideInSearch:!0},{title:"\u652F\u4ED8\u65B9\u5F0F",dataIndex:"payMode",key:"payMode"},{title:"\u8BA2\u5355\u72B6\u6001",dataIndex:"order_Status",key:"order_Status"},{title:"\u6D88\u8D39\u91D1\u989D",dataIndex:"recharge",key:"recharge"},{title:"\u6D88\u8D39\u8D60\u9001\u91D1\u989D",dataIndex:"rechargeBalance",key:"rechargeBalance"}]}),(0,n.jsx)("h3",{style:{fontWeight:"bold",fontSize:16,marginTop:30},children:"\u5546\u54C1\u5217\u8868"}),(0,n.jsx)(K.ZP,{rowKey:"id",request:(0,F.Z)((0,P.Z)().mark(function d(){return(0,P.Z)().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,I.Z.GetOrderDetails({id:_.values.id});case 2:return l=s.sent,s.abrupt("return",{data:l.detailList,success:!0});case 4:case"end":return s.stop()}},d)})),columns:[{title:"\u5546\u54C1\u5206\u7C7B",key:"goodsTypeName",dataIndex:"goodsTypeName"},{title:"\u5546\u54C1\u540D\u79F0",key:"goodsName",dataIndex:"goodsName"},{title:"\u5E94\u4ED8\u91D1\u989D",key:"originalMoney",dataIndex:"originalMoney",valueType:"money",fieldProps:{moneySymbol:"\xA5"}},{title:"\u5B9E\u4ED8\u91D1\u989D",dataIndex:"realMoney",valueType:"money",fieldProps:{moneySymbol:"\xA5"}},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(L,s){return[(0,n.jsx)("a",{onClick:function(){I.Z.printsmallticket({orderId:_.values.id,subOrderId:s.id}).then(function(R){debugger;R.data?D.default.success("\u6253\u5370\u6210\u529F"):D.default.error("\u6253\u5370\u5931\u8D25")})},children:"\u6253\u5370\u5C0F\u7968"},"config")]}}],toolBarRender:!1,search:!1}),(0,n.jsx)(c.Z,{title:"\u4F18\u60E0\u5238",children:(O=l)===null||O===void 0||(m=O.paperCoupons)===null||m===void 0?void 0:m.map(function(d){return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(c.Z.Item,{label:"\u5E73\u53F0",children:d.platformName}),(0,n.jsx)(c.Z.Item,{label:"\u4F18\u60E0\u5238",children:d.name}),(0,n.jsx)(c.Z.Item,{label:"\u4F18\u60E0\u91D1\u989D",children:d.amount})]})})}),(0,n.jsx)(c.Z,{column:5,title:"\u62B5\u6263\u5238",children:(E=l)===null||E===void 0||(M=E.goodsCoupons)===null||M===void 0?void 0:M.map(function(d){return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(c.Z.Item,{label:"\u5E73\u53F0",children:d.platformName}),(0,n.jsx)(c.Z.Item,{label:"\u62B5\u6263\u5238",children:d.name}),(0,n.jsx)(c.Z.Item,{label:"\u5546\u54C1",children:d.goodsName}),(0,n.jsx)(c.Z.Item,{label:"\u5546\u54C1\u539F\u4EF7",children:d.goodsAmount}),(0,n.jsx)(c.Z.Item,{label:"\u5E73\u53F0\u552E\u4EF7",children:d.platformAmount})]})})})]})};g.Z=b},46389:function(U,g,e){"use strict";var h=e(48971);g.Z={orderList:function(r){return r.isreport=!0,(0,h.WY)("/kitchen/api/order/order-detail-flow",{method:"Post",data:r})},srdTypeList:function(r){return(0,h.WY)("/kitchen/api/storetype/list",{method:"Post",data:r})},srdList:function(r){return(0,h.WY)("/kitchen/api/store/list",{method:"Post",data:r})},goodsList:function(r){return(0,h.WY)("/kitchen/api/goodes/list",{method:"Post",data:r})},goodsTypeList:function(r){return(0,h.WY)("/kitchen/api/goodstype/list",{method:"Post",data:r})},StartRefund:function(r){return(0,h.WY)("/kitchen/api/refund/StartOrderRefund",{method:"Post",params:r})},GetOrderDetails:function(r){return(0,h.WY)("/kitchen/api/Order/GetOrderDetails",{method:"Post",params:r})},GetFlowExport:function(r){return(0,h.WY)("/kitchen/api/Order/GetFlowExport",{method:"Post",data:r})},printsmallticket:function(r){return(0,h.WY)("/kitchen/api/printer/print-small-ticket",{method:"Post",data:r})}}},65585:function(U,g,e){"use strict";e.r(g),e.d(g,{default:function(){return Z}});var h=e(57663),f=e(71577),r=e(39428),c=e(3182),z=e(34792),D=e(48086),P=e(11849),F=e(47673),W=e(4107),j=e(93224),K=e(43358),B=e(34041),I=e(2824),n=e(90631),l=e(67294),b=e(78009),N=e(16894),_=e(53667),O=e.n(_),m=e(48971),E={orderList:function(a){return a.isreport=!0,(0,m.WY)("/kitchen/api/order/psot-unpaid-order",{method:"Post",data:a})},srdTypeList:function(a){return(0,m.WY)("/kitchen/api/storetype/list",{method:"Post",data:a})},srdList:function(a){return(0,m.WY)("/kitchen/api/store/list",{method:"Post",data:a})},goodsList:function(a){return(0,m.WY)("/kitchen/api/goodes/list",{method:"Post",data:a})},goodsTypeList:function(a){return(0,m.WY)("/kitchen/api/goodstype/list",{method:"Post",data:a})},StartRefund:function(a){return(0,m.WY)("/kitchen/api/refund/StartOrderRefund",{method:"Post",params:a})},GetOrderDetails:function(a){return(0,m.WY)("/kitchen/api/Order/GetOrderDetails",{method:"Post",params:a})},GetFlowExport:function(a){return(0,m.WY)("/kitchen/api/Order/GetFlowExport",{method:"Post",data:a})},printsmallticket:function(a){return(0,m.WY)("/kitchen/api/printer/print-small-ticket",{method:"Post",data:a})}},M=e(26177),p=e(85893),A=["defaultRender"],k=function(){var a=(0,l.useState)(),d=(0,I.Z)(a,2),L=d[0],s=d[1],G=(0,l.useState)(!1),R=(0,I.Z)(G,2),J=R[0],Y=R[1],Q=(0,l.useState)([]),w=(0,I.Z)(Q,2),X=w[0],q=w[1],ee=(0,l.useState)([]),V=(0,I.Z)(ee,2),se=V[0],te=V[1],re=(0,l.useRef)(),ae=(0,l.useState)([]),$=(0,I.Z)(ae,2),H=$[0],ne=$[1];(0,l.useEffect)(function(){function u(){E.srdList().then(function(i){var t=i.data;console.log(t),t==null||t.forEach(function(o){o.value=o.id,o.label=o.name}),q(t)})}u()},[]);function ie(){E.GetFlowExport(H).then(function(u){var i=URL.createObjectURL(new Blob([u])),t="\u8BA2\u5355\u6D41\u6C34.xlsx",o=document.createElement("a");o.href=i,o.download=t,o.click(),URL.revokeObjectURL(i)})}var oe=[{title:"\u4E3B\u952E",dataIndex:"id",tip:"\u89C4\u5219\u540D\u79F0\u662F\u552F\u4E00\u7684 key",hideInSearch:!0,hideInTable:!0},{title:"\u8BA2\u5355\u65F6\u95F4",dataIndex:"order_CreateTime",valueType:"dateRange",hideInTable:!0,search:{transform:function(i){return{order_CreateTime:i[0],order_EndTime:i[1]}}}},{title:"\u624B\u673A\u53F7",dataIndex:"Customer_Tel",hideInTable:!0},{title:"\u5E97\u94FA\u540D\u79F0",dataIndex:"storeId",hideInTable:!0,valueType:"select",renderFormItem:function(){return(0,p.jsx)(B.Z,{mode:"multiple",showArrow:!0,optionFilterProp:"label",placeholder:"\u8BF7\u9009\u62E9\u5E97\u94FA",style:{width:"100%"},options:X})}},{title:"\u4EA4\u6613\u5355\u53F7",dataIndex:"order_Number",hideInSearch:!0},{title:"\u5E97\u94FA\u540D\u79F0",dataIndex:"storeName",hideInSearch:!0},{title:"\u5E94\u4ED8\u91D1\u989D",dataIndex:"order_OriginalMoney",renderText:function(i){return"".concat(i,"\xA5")},hideInSearch:!0},{title:"\u6570\u91CF",dataIndex:"order_Count",hideInSearch:!0},{title:"\u521B\u5EFA\u65F6\u95F4",sorter:!0,dataIndex:"order_CreateTime",valueType:"dateTime",hideInSearch:!0,renderFormItem:function(i,t,o){var T=t.defaultRender,v=(0,j.Z)(t,A),C=o.getFieldValue("status");return"".concat(C)==="0"?!1:"".concat(C)==="3"?(0,p.jsx)(W.Z,(0,P.Z)((0,P.Z)({},v),{},{placeholder:"\u8BF7\u8F93\u5165\u5F02\u5E38\u539F\u56E0\uFF01"})):T(i)}},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(i,t){return[(0,p.jsx)("a",{onClick:function(){s(t),Y(!0)},children:"\u67E5\u770B\u8BE6\u60C5"},"config"),(0,p.jsx)("a",{onClick:function(){E.printsmallticket({orderId:t.id}).then(function(T){T.data?D.default.success("\u6253\u5370\u6210\u529F"):D.default.error("\u6253\u5370\u5931\u8D25")})},children:"\u6253\u5370\u5C0F\u7968"},"config")]}}],de=function(){var u=(0,c.Z)((0,r.Z)().mark(function i(){var t,o,T,v,C,x;return(0,r.Z)().wrap(function(S){for(;;)switch(S.prev=S.next){case 0:return S.next=2,E.GetFlowExport(H);case 2:t=S.sent,t.isSuccess?(o={},T=new Date,v="\u8BA2\u5355\u6D41\u6C34"+T.toLocaleString().replaceAll("/","-"),o.fileName=v,C=["storeTypeName","storeName","order_Number","order_OriginalMoney","order_RealMoney","refundOriginalMoney","refundRealMoney","order_Count","order_CreateTime"],o.datas=[{sheetData:t.data,sheetName:v,sheetFilter:C,sheetHeader:["\u5E97\u94FA\u5206\u7C7B","\u5E97\u94FA\u540D\u79F0","\u4EA4\u6613\u5355\u53F7","\u5E94\u4ED8\u91D1\u989D","\u5B9E\u4ED8\u91D1\u989D","\u5E94\u4ED8\u91D1\u989D(\u9000)","\u5B9E\u4ED8\u91D1\u989D(\u9000)","\u5B50\u8BA2\u5355\u6570\u91CF","\u521B\u5EFA\u65F6\u95F4"]}],x=new(O())(o),x.saveExcel()):D.default.error(t.errors||"\u5BFC\u51FA\u5931\u8D25");case 4:case"end":return S.stop()}},i)}));return function(){return u.apply(this,arguments)}}();return(0,p.jsxs)(b.ZP,{children:[(0,p.jsx)(N.ZP,{headerTitle:"\u8BA2\u5355\u6D41\u6C34",actionRef:re,rowKey:"orderFlowId",search:{labelWidth:120},toolBarRender:function(){return[(0,p.jsxs)(f.Z,{type:"primary",onClick:de,children:[(0,p.jsx)(n.Z,{})," \u5BFC\u51FA"]},"create")]},columns:oe,request:function(){var u=(0,c.Z)((0,r.Z)().mark(function i(t,o,T){var v;return(0,r.Z)().wrap(function(x){for(;;)switch(x.prev=x.next){case 0:return t.storeTypeId!=null&&(t.storeTypeId=srdTypeList[t.storeTypeId].storeTypeId),t.orderStatus=0,x.next=4,E.orderList(t);case 4:return v=x.sent,ne(t),te(v.data.data),x.abrupt("return",{data:v.data.data,success:!0,total:v.data.total});case 8:case"end":return x.stop()}},i)}));return function(i,t,o){return u.apply(this,arguments)}}()}),!!L&&(0,p.jsx)(M.Z,{onCancel:function(){s(void 0),Y(!1)},createModalVisible:J,values:L||{}})]})},Z=k}}]); diff --git a/dist/p__order__order-report.708b5dd7.async.js b/dist/p__order__order-report.708b5dd7.async.js new file mode 100644 index 0000000..6243a11 --- /dev/null +++ b/dist/p__order__order-report.708b5dd7.async.js @@ -0,0 +1 @@ +(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[7314,1322,1279,7800,6398,6794,944,8208],{79030:function(N){N.exports={"data-search-card":"data-search-card___3UcPL","data-search-box":"data-search-box___3letD","search-btn-item":"search-btn-item____z28A","table-page":"table-page___32bGM","loading-card":"loading-card___3l44P"}},40258:function(N,M,e){"use strict";e.r(M),e.d(M,{default:function(){return oe}});var Te=e(14781),Q=e(36138),Ye=e(66456),U=e(64411),Re=e(58024),L=e(91894),Ne=e(57663),Z=e(71577),Me=e(62999),J=e(54680),f=e(39428),Le=e(34792),j=e(48086),D=e(3182),u=e(2824),Pe=e(20228),K=e(11382),ze=e(49111),V=e(19650),Ie=e(71153),C=e(60331),Ae=e(14965),X=e(91774),l=e(67294),b=e(78009),w=e(79030),i=e.n(w),x=e(48971),E={getOrderReportList:function(d){return(0,x.WY)("/kitchen/api/report-statistics/order-report",{method:"Post",data:d})},getOrgTree:function(){return(0,x.WY)("/kitchen/api/report-statistics/org-tree",{method:"GET"})},orderReportExport:function(d){return(0,x.WY)("/kitchen/api/report-statistics/order-report-export",{method:"Post",data:d})}},q=e(30381),h=e.n(q),_=e(15873),ee=e(90631),te=e(53667),ae=e.n(te),a=e(85893),re=X.Z.RangePicker,se=[{title:"\u4EA4\u6613\u5355\u53F7",dataIndex:"transactionId",key:"transactionId"},{title:"\u5E97\u94FA\u540D\u79F0",dataIndex:"shopName",key:"shopName"},{title:"\u539F\u4EF7\uFF08\uFFE5\uFF09",dataIndex:"orderOriginalMoney",key:"orderOriginalMoney"},{title:"\u4F18\u60E0\uFF08\uFFE5\uFF09",dataIndex:"discountMoney",key:"discountMoney"},{title:"\u5B9E\u9645\u652F\u4ED8\uFF08\uFFE5\uFF09",dataIndex:"orderRealMoney",key:"orderRealMoney"},{title:"\u521B\u5EFA\u65F6\u95F4",dataIndex:"createdAt",key:"createdAt"},{title:"\u8BA2\u5355\u72B6\u6001",key:"orderStatus",render:function(d){var o="";switch(d.orderStatus){case 0:o="\u672A\u4ED8\u6B3E";break;case 1:o="\u5DF2\u4ED8\u6B3E";break;case-1:o="\u9000\u5355\u7533\u8BF7";break;case-2:o="\u9000\u5355\u4E2D";break;case-3:o="\u5DF2\u9000\u5355";break;case-4:o="\u53D6\u6D88\u4EA4\u6613";break;case-5:o="\u64A4\u9500\u7533\u8BF7";break}return(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(C.Z,{icon:(0,a.jsx)(_.Z,{}),color:"success",children:o})})}},{title:"\u552E\u540E\u4FE1\u606F",key:"orderStatus",render:function(d){return(0,a.jsx)(a.Fragment,{children:d.isRefund?(0,a.jsx)(C.Z,{color:"error",children:"\u6709"}):(0,a.jsx)(C.Z,{color:"success",children:"\u65E0"})})}},{title:"\u64CD\u4F5C",key:"action",render:function(d,o){return(0,a.jsx)(V.Z,{size:"middle",children:(0,a.jsx)("a",{onClick:function(){x.m8.push({pathname:"/order/order-report/order-report-detail",query:{orderNumber:o.orderNumber}})},children:"\u8BE6\u60C5"})})}}],ne=function(){return(0,a.jsx)("div",{className:i()["loading-card"],children:(0,a.jsx)(K.Z,{size:"large"})})};function oe(){var v=(0,l.useState)([]),d=(0,u.Z)(v,2),o=d[0],P=d[1],de=(0,l.useState)(1),z=(0,u.Z)(de,2),O=z[0],le=z[1],ie=(0,l.useState)(10),I=(0,u.Z)(ie,2),T=I[0],ce=I[1],ue=(0,l.useState)(0),A=(0,u.Z)(ue,2),he=A[0],ve=A[1],fe=(0,l.useState)(!1),F=(0,u.Z)(fe,2),ge=F[0],g=F[1],me=(0,l.useState)(""),k=(0,u.Z)(me,2),S=k[0],B=k[1],pe=(0,l.useState)([]),G=(0,u.Z)(pe,2),ye=G[0],xe=G[1],Se=(0,l.useState)([h()(h()(new Date(Date.now()-24*60*60*1e3*7)).format("YYYY-MM-DD 00:00:00")),h()(h()(new Date(Date.now())).format("YYYY-MM-DD 23:59:59"))]),H=(0,u.Z)(Se,2),p=H[0],Ze=H[1];(0,l.useEffect)(function(){W()},[O,T]),(0,l.useEffect)(function(){De()},[]);var W=function(){var c=(0,D.Z)((0,f.Z)().mark(function s(){var t,r;return(0,f.Z)().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return t={startTime:p[0],endTime:p[1],current:O,pageSize:T},S.key&&(t.shopId=S.key),g(!0),n.next=5,E.getOrderReportList(t);case 5:r=n.sent,g(!1),r.statusCode===200?(P(r.data.data),ve(r.data.total)):j.default.error(r.errors||"\u83B7\u53D6\u8BA2\u5355\u62A5\u8868\u5217\u8868\u5931\u8D25");case 8:case"end":return n.stop()}},s)}));return function(){return c.apply(this,arguments)}}(),je=function(s,t){le(s),ce(t)},De=function(){var c=(0,D.Z)((0,f.Z)().mark(function s(){var t,r;return(0,f.Z)().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return g(!0),n.next=3,E.getOrgTree();case 3:t=n.sent,g(!1),t.statusCode===200?(r=t.data,Ce(r),xe(r)):j.default.error(t.errors||"\u83B7\u53D6\u7EC4\u7EC7\u6811\u51FA\u9519");case 6:case"end":return n.stop()}},s)}));return function(){return c.apply(this,arguments)}}(),Ce=function c(s){s.forEach(function(t){t.children&&t.children.length>0?c(t.children):t.type===2||t.type===3?t.disabled=!1:t.disabled=!0})},Ee=function(){var c=(0,D.Z)((0,f.Z)().mark(function s(){var t,r,m,n,Y,R,$;return(0,f.Z)().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:return t={startTime:p[0],endTime:p[1]},S.key&&(t.shopId=S.key),g(!0),y.next=5,E.orderReportExport(t);case 5:r=y.sent,g(!1),r.statusCode===200?(m={},n=new Date,Y="\u8BA2\u5355\u62A5\u8868-"+n.toLocaleString().replaceAll("/","-"),m.fileName=Y,R=[],Object.keys(r.data[0]).forEach(function(Oe){R.push(Oe)}),m.datas=[{sheetData:r.data,sheetName:Y,sheetFilter:R,sheetHeader:["ID","\u53D6\u9910\u53F7","\u7528\u6237Id","\u4F18\u60E0\u5408\u96C6","\u8BA2\u5355\u53F7\uFF08\u672C\u7CFB\u7EDF\uFF09","\u4EA4\u6613\u53F7","\u5E97\u94FAID","\u5E97\u94FA\u540D\u5B57","\u5546\u54C1\u603B\u4EF7","\u4F18\u60E0\u91D1\u989D","\u5B9E\u4ED8\u91D1\u989D","\u521B\u5EFA\u65F6\u95F4","\u652F\u4ED8\u91D1\u989D\u5F02\u5E38","\u8BA2\u5355\u652F\u4ED8\u65F6\u95F4\u5F02\u5E38","\u8BA2\u5355\u5F02\u5E38","\u552E\u540E\u91D1\u989D\u5F02\u5E38","\u552E\u540E\u65F6\u95F4\u5F02\u5E38","\u552E\u540E\u8BA2\u5355\u5F02\u5E38"]}],$=new(ae())(m),$.saveExcel()):j.default.error(r.errors||"\u5BFC\u51FA\u5931\u8D25");case 8:case"end":return y.stop()}},s)}));return function(){return c.apply(this,arguments)}}();return(0,a.jsxs)(b.ZP,{children:[ge?(0,a.jsx)(ne,{}):null,(0,a.jsx)(L.Z,{className:i()["data-search-card"],children:(0,a.jsxs)("div",{className:i()["data-search-box"],children:[(0,a.jsxs)("div",{className:i()["data-search-left"],children:[(0,a.jsx)(re,{className:i()["my-range-picker"],value:p,onChange:function(s,t){var r=[h()(h()(new Date(t[0])).format("YYYY-MM-DD 00:00:00")),h()(h()(new Date(t[1])).format("YYYY-MM-DD 23:59:59"))];Ze(r)}}),(0,a.jsx)(J.Z,{style:{width:"300px",marginLeft:"50px"},dropdownStyle:{maxHeight:400,overflow:"auto"},treeData:ye,onSelect:function(s,t){console.log("node>>>",t),t.type===2||t===3?B(t):B("")},placeholder:"\u8BF7\u9009\u62E9\u7EC4\u7EC7\u67B6\u6784",treeDefaultExpandAll:!0})]}),(0,a.jsxs)("div",{className:i()["data-search-btns"],children:[(0,a.jsx)(Z.Z,{type:"primary",icon:(0,a.jsx)(ee.Z,{}),size:"middle",onClick:Ee,children:"\u4E0B\u8F7D"}),(0,a.jsx)(Z.Z,{className:i()["search-btn-item"],children:"\u91CD\u7F6E"}),(0,a.jsx)(Z.Z,{className:i()["search-btn-item"],type:"primary",onClick:W,children:"\u67E5\u8BE2"})]})]})}),(0,a.jsxs)(L.Z,{className:i()["table-card"],children:[(0,a.jsx)(U.Z,{dataSource:o,columns:se,pagination:!1}),(0,a.jsx)("div",{className:i()["table-page"],children:(0,a.jsx)(Q.Z,{current:O,pageSize:T,total:he,onChange:je})})]})]})}}}]); diff --git a/dist/p__order__order-report.dbb42468.async.js b/dist/p__order__order-report.dbb42468.async.js deleted file mode 100644 index 968f18e..0000000 --- a/dist/p__order__order-report.dbb42468.async.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[7314,1322,9464,1981,2869,7013,9719,2383],{79030:function(N){N.exports={"data-search-card":"data-search-card___3UcPL","data-search-box":"data-search-box___3letD","search-btn-item":"search-btn-item____z28A","table-page":"table-page___32bGM","loading-card":"loading-card___3l44P"}},40258:function(N,M,e){"use strict";e.r(M),e.d(M,{default:function(){return oe}});var Te=e(14781),Q=e(36138),Ye=e(66456),U=e(64411),Re=e(58024),L=e(91894),Ne=e(57663),Z=e(71577),Me=e(62999),J=e(54680),f=e(39428),Le=e(34792),j=e(48086),D=e(3182),u=e(2824),Pe=e(20228),K=e(11382),ze=e(49111),V=e(19650),Ie=e(71153),C=e(60331),Ae=e(14965),X=e(91774),l=e(67294),b=e(78009),w=e(79030),i=e.n(w),x=e(48971),E={getOrderReportList:function(d){return(0,x.WY)("/kitchen/api/report-statistics/order-report",{method:"Post",data:d})},getOrgTree:function(){return(0,x.WY)("/kitchen/api/report-statistics/org-tree",{method:"GET"})},orderReportExport:function(d){return(0,x.WY)("/kitchen/api/report-statistics/order-report-export",{method:"Post",data:d})}},q=e(30381),h=e.n(q),_=e(15873),ee=e(90631),te=e(53667),ae=e.n(te),a=e(85893),re=X.Z.RangePicker,se=[{title:"\u4EA4\u6613\u5355\u53F7",dataIndex:"transactionId",key:"transactionId"},{title:"\u5E97\u94FA\u540D\u79F0",dataIndex:"shopName",key:"shopName"},{title:"\u539F\u4EF7\uFF08\uFFE5\uFF09",dataIndex:"orderOriginalMoney",key:"orderOriginalMoney"},{title:"\u4F18\u60E0\uFF08\uFFE5\uFF09",dataIndex:"discountMoney",key:"discountMoney"},{title:"\u5B9E\u9645\u652F\u4ED8\uFF08\uFFE5\uFF09",dataIndex:"orderRealMoney",key:"orderRealMoney"},{title:"\u521B\u5EFA\u65F6\u95F4",dataIndex:"createdAt",key:"createdAt"},{title:"\u8BA2\u5355\u72B6\u6001",key:"orderStatus",render:function(d){var o="";switch(d.orderStatus){case 0:o="\u672A\u4ED8\u6B3E";break;case 1:o="\u5DF2\u4ED8\u6B3E";break;case-1:o="\u9000\u5355\u7533\u8BF7";break;case-2:o="\u9000\u5355\u4E2D";break;case-3:o="\u5DF2\u9000\u5355";break;case-4:o="\u53D6\u6D88\u4EA4\u6613";break;case-5:o="\u64A4\u9500\u7533\u8BF7";break}return(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(C.Z,{icon:(0,a.jsx)(_.Z,{}),color:"success",children:o})})}},{title:"\u552E\u540E\u4FE1\u606F",key:"orderStatus",render:function(d){return(0,a.jsx)(a.Fragment,{children:d.isRefund?(0,a.jsx)(C.Z,{color:"error",children:"\u6709"}):(0,a.jsx)(C.Z,{color:"success",children:"\u65E0"})})}},{title:"\u64CD\u4F5C",key:"action",render:function(d,o){return(0,a.jsx)(V.Z,{size:"middle",children:(0,a.jsx)("a",{onClick:function(){x.m8.push({pathname:"/order/order-report/order-report-detail",query:{orderNumber:o.orderNumber}})},children:"\u8BE6\u60C5"})})}}],ne=function(){return(0,a.jsx)("div",{className:i()["loading-card"],children:(0,a.jsx)(K.Z,{size:"large"})})};function oe(){var v=(0,l.useState)([]),d=(0,u.Z)(v,2),o=d[0],P=d[1],de=(0,l.useState)(1),z=(0,u.Z)(de,2),O=z[0],le=z[1],ie=(0,l.useState)(10),I=(0,u.Z)(ie,2),T=I[0],ce=I[1],ue=(0,l.useState)(0),A=(0,u.Z)(ue,2),he=A[0],ve=A[1],fe=(0,l.useState)(!1),F=(0,u.Z)(fe,2),ge=F[0],g=F[1],me=(0,l.useState)(""),k=(0,u.Z)(me,2),S=k[0],B=k[1],pe=(0,l.useState)([]),G=(0,u.Z)(pe,2),ye=G[0],xe=G[1],Se=(0,l.useState)([h()(h()(new Date(Date.now()-24*60*60*1e3*7)).format("YYYY-MM-DD 00:00:00")),h()(h()(new Date(Date.now())).format("YYYY-MM-DD 23:59:59"))]),H=(0,u.Z)(Se,2),p=H[0],Ze=H[1];(0,l.useEffect)(function(){W()},[O,T]),(0,l.useEffect)(function(){De()},[]);var W=function(){var c=(0,D.Z)((0,f.Z)().mark(function s(){var t,r;return(0,f.Z)().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return t={startTime:p[0],endTime:p[1],current:O,pageSize:T},S.key&&(t.shopId=S.key),g(!0),n.next=5,E.getOrderReportList(t);case 5:r=n.sent,g(!1),r.statusCode===200?(P(r.data.data),ve(r.data.total)):j.default.error(r.errors||"\u83B7\u53D6\u8BA2\u5355\u62A5\u8868\u5217\u8868\u5931\u8D25");case 8:case"end":return n.stop()}},s)}));return function(){return c.apply(this,arguments)}}(),je=function(s,t){le(s),ce(t)},De=function(){var c=(0,D.Z)((0,f.Z)().mark(function s(){var t,r;return(0,f.Z)().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return g(!0),n.next=3,E.getOrgTree();case 3:t=n.sent,g(!1),t.statusCode===200?(r=t.data,Ce(r),xe(r)):j.default.error(t.errors||"\u83B7\u53D6\u7EC4\u7EC7\u6811\u51FA\u9519");case 6:case"end":return n.stop()}},s)}));return function(){return c.apply(this,arguments)}}(),Ce=function c(s){s.forEach(function(t){t.children&&t.children.length>0?c(t.children):t.type===2||t.type===3?t.disabled=!1:t.disabled=!0})},Ee=function(){var c=(0,D.Z)((0,f.Z)().mark(function s(){var t,r,m,n,Y,R,$;return(0,f.Z)().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:return t={startTime:p[0],endTime:p[1]},S.key&&(t.shopId=S.key),g(!0),y.next=5,E.orderReportExport(t);case 5:r=y.sent,g(!1),r.statusCode===200?(m={},n=new Date,Y="\u8BA2\u5355\u62A5\u8868-"+n.toLocaleString().replaceAll("/","-"),m.fileName=Y,R=[],Object.keys(r.data[0]).forEach(function(Oe){R.push(Oe)}),m.datas=[{sheetData:r.data,sheetName:Y,sheetFilter:R,sheetHeader:["ID","\u53D6\u9910\u53F7","\u7528\u6237Id","\u4F18\u60E0\u5408\u96C6","\u8BA2\u5355\u53F7\uFF08\u672C\u7CFB\u7EDF\uFF09","\u4EA4\u6613\u53F7","\u5E97\u94FAID","\u5E97\u94FA\u540D\u5B57","\u5546\u54C1\u603B\u4EF7","\u4F18\u60E0\u91D1\u989D","\u5B9E\u4ED8\u91D1\u989D","\u521B\u5EFA\u65F6\u95F4","\u652F\u4ED8\u91D1\u989D\u5F02\u5E38","\u8BA2\u5355\u652F\u4ED8\u65F6\u95F4\u5F02\u5E38","\u8BA2\u5355\u5F02\u5E38","\u552E\u540E\u91D1\u989D\u5F02\u5E38","\u552E\u540E\u65F6\u95F4\u5F02\u5E38","\u552E\u540E\u8BA2\u5355\u5F02\u5E38"]}],$=new(ae())(m),$.saveExcel()):j.default.error(r.errors||"\u5BFC\u51FA\u5931\u8D25");case 8:case"end":return y.stop()}},s)}));return function(){return c.apply(this,arguments)}}();return(0,a.jsxs)(b.ZP,{children:[ge?(0,a.jsx)(ne,{}):null,(0,a.jsx)(L.Z,{className:i()["data-search-card"],children:(0,a.jsxs)("div",{className:i()["data-search-box"],children:[(0,a.jsxs)("div",{className:i()["data-search-left"],children:[(0,a.jsx)(re,{className:i()["my-range-picker"],value:p,onChange:function(s,t){var r=[h()(h()(new Date(t[0])).format("YYYY-MM-DD 00:00:00")),h()(h()(new Date(t[1])).format("YYYY-MM-DD 23:59:59"))];Ze(r)}}),(0,a.jsx)(J.Z,{style:{width:"300px",marginLeft:"50px"},dropdownStyle:{maxHeight:400,overflow:"auto"},treeData:ye,onSelect:function(s,t){console.log("node>>>",t),t.type===2||t===3?B(t):B("")},placeholder:"\u8BF7\u9009\u62E9\u7EC4\u7EC7\u67B6\u6784",treeDefaultExpandAll:!0})]}),(0,a.jsxs)("div",{className:i()["data-search-btns"],children:[(0,a.jsx)(Z.Z,{type:"primary",icon:(0,a.jsx)(ee.Z,{}),size:"middle",onClick:Ee,children:"\u4E0B\u8F7D"}),(0,a.jsx)(Z.Z,{className:i()["search-btn-item"],children:"\u91CD\u7F6E"}),(0,a.jsx)(Z.Z,{className:i()["search-btn-item"],type:"primary",onClick:W,children:"\u67E5\u8BE2"})]})]})}),(0,a.jsxs)(L.Z,{className:i()["table-card"],children:[(0,a.jsx)(U.Z,{dataSource:o,columns:se,pagination:!1}),(0,a.jsx)("div",{className:i()["table-page"],children:(0,a.jsx)(Q.Z,{current:O,pageSize:T,total:he,onChange:je})})]})]})}}}]); diff --git a/dist/p__order__order-summary-manage.181ee0f4.async.js b/dist/p__order__order-summary-manage.2e400c45.async.js similarity index 61% rename from dist/p__order__order-summary-manage.181ee0f4.async.js rename to dist/p__order__order-summary-manage.2e400c45.async.js index 71a1331..80e1e31 100644 --- a/dist/p__order__order-summary-manage.181ee0f4.async.js +++ b/dist/p__order__order-summary-manage.2e400c45.async.js @@ -1 +1 @@ -(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[8849,1322],{56036:function(G,_,r){"use strict";r.r(_),r.d(_,{default:function(){return d}});var c=r(39428),T=r(3182),x=r(57663),S=r(71577),W=r(62999),Z=r(54680),g=r(2824),E=r(90631),p=r(67294),O=r(78009),b=r(16894),P=r(53667),A=r.n(P),y=r(48971),L={orderSummaryList:function(e){return e.isreport=!0,(0,y.WY)("/kitchen/api/order/order-summary",{method:"Post",data:e})},srdTypeList:function(e){return(0,y.WY)("/kitchen/api/storetype/list",{method:"Post",data:e})},srdList:function(e){return(0,y.WY)("/kitchen/api/store/list",{method:"Post",data:e})},goodsList:function(e){return(0,y.WY)("/kitchen/api/goodes/list",{method:"Post",data:e})},goodsTypeList:function(e){return(0,y.WY)("/kitchen/api/goodstype/list",{method:"Post",data:e})}},w=r(3408),M=r(30381),v=r(85893),n=function(){var e=(0,p.useState)([]),I=(0,g.Z)(e,2),U=I[0],H=I[1],N=(0,p.useState)([]),j=(0,g.Z)(N,2),de=j[0],z=j[1],V=(0,p.useState)([]),B=(0,g.Z)(V,2),oe=B[0],J=B[1],Q=(0,p.useState)([]),Y=(0,g.Z)(Q,2),le=Y[0],X=Y[1],q=(0,p.useState)([]),F=(0,g.Z)(q,2),K=F[0],ee=F[1],te=(0,p.useRef)(),re=(0,p.useState)([]),$=(0,g.Z)(re,2),ne=$[0],ae=$[1],ie=(0,p.useState)([]),k=(0,g.Z)(ie,2),ce=k[0],ue=k[1];(0,p.useEffect)(function(){function f(){(0,w.FM)().then(function(i){a(i.data);function a(u){for(var l in u)u[l].type==2||u[l].type==3?u[l].disabled=!1:u[l].disabled=!0,u[l].children&&a(u[l].children)}ae(i.data);var t={};D(i.data);function D(u){for(var l in u)t[u[l].disabled]=!0,t[u[l].value]={text:u[l].title},u[l].children&&D(u[l].children)}ue(t)})}function s(){L.srdTypeList().then(function(i){var a=i.data;a.forEach(function(t){t.storeTypeId=t.id,t.text=t.name}),H(a)})}function o(){L.srdList().then(function(i){var a=i.data;a.forEach(function(t){t.value=t.id,t.label=t.name}),z(a)})}function R(){L.goodsList().then(function(i){var a=i.data;a.forEach(function(t){t.label=t.name,t.value=t.id}),J(a)})}function m(){L.goodsTypeList().then(function(i){var a=i.data;a.forEach(function(t){t.label=t.name,t.value=t.id}),X(a)})}o(),s(),R(),m(),f()},[]);function se(){var f=K.ReqDetailList,s={},o=[];C.map(function(m,i){i>2&&o.push(m)}),s.fileName="\u8BA2\u5355\u6C47\u603B",s.datas=[{sheetData:K.map(function(m){var i={};return C.forEach(function(a,t){t>2&&(i[a.dataIndex]=m[a.dataIndex])}),i}),sheetName:"\u8BA2\u5355\u6C47\u603B",sheetFilter:o.map(function(m){return m.dataIndex}),sheetHeader:o.map(function(m){return m.title}),columnWidths:o.map(function(){return 9})}];var R=new(A())(s);R.saveExcel()}var C=[{title:"\u4E3B\u952E",dataIndex:"id",tip:"\u89C4\u5219\u540D\u79F0\u662F\u552F\u4E00\u7684 key",hideInSearch:!0,hideInTable:!0},{title:"\u5E97\u94FA\u540D\u79F0",dataIndex:"storeId",hideInTable:!0,width:120,renderFormItem:function(){return(0,v.jsx)(Z.Z,{style:{width:"100%"},dropdownStyle:{maxHeight:400,overflow:"auto"},treeData:ne,placeholder:"\u5F52\u5C5E\u95E8\u5E97",treeDefaultExpandAll:!0})}},{title:"\u65E5\u671F\u8303\u56F4",dataIndex:"startTime",valueType:"dateRange",hideInTable:!0,initialValue:[]},{title:"\u5E97\u94FA\u540D\u79F0",dataIndex:"storeName",hideInSearch:!0,width:120},{title:"\u603B\u8BA2\u5355",dataIndex:"sumOrder",hideInSearch:!0,width:120},{title:"\u5E94\u6536\u6B3E\u91D1\u989D",dataIndex:"orderOriginalMoney",renderText:function(s){return"".concat(s,"\xA5")},hideInSearch:!0,width:160},{title:"\u6B63\u5E38\u8BA2\u5355",dataIndex:"successfulCount",hideInSearch:!0,width:120},{title:"\u5B9E\u6536\u4ED8\u6B3E\u91D1\u989D",dataIndex:"orderRealMoney",hideInSearch:!0,renderText:function(s){return"".concat(s,"\xA5")},width:160},{title:"\u4F18\u60E0\u91D1\u989D",dataIndex:"discountMoney",hideInSearch:!0,renderText:function(s){return"".concat(s,"\xA5")},width:120},{title:"\u672A\u652F\u4ED8\u8BA2\u5355",dataIndex:"noPayRealCount",hideInSearch:!0,width:120},{title:"\u672A\u652F\u4ED8\u91D1\u989D",dataIndex:"noPayRealMoney",hideInSearch:!0,renderText:function(s){return"".concat(s,"\xA5")},width:120},{title:"\u9000\u6B3E\u8BA2\u5355",dataIndex:"refundCount",hideInSearch:!0,width:120},{title:"\u9000\u6B3E\u91D1\u989D",dataIndex:"refundRealMoney",hideInSearch:!0,renderText:function(s){return"".concat(s,"\xA5")},width:120}];return(0,v.jsx)(O.ZP,{children:(0,v.jsx)(b.ZP,{headerTitle:"\u8BA2\u5355\u6C47\u603B\u67E5\u8BE2",actionRef:te,rowKey:"id",scroll:{x:1300},search:{labelWidth:120},toolBarRender:function(){return[(0,v.jsxs)(S.Z,{type:"primary",onClick:function(){return se()},children:[(0,v.jsx)(E.Z,{})," \u5BFC\u51FA"]},"create")]},columns:C,request:function(){var f=(0,T.Z)((0,c.Z)().mark(function s(o,R,m){var i,a,t;return(0,c.Z)().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return i=[],a=0,o.storeTypeId!=null&&(o.storeTypeId=U[o.storeTypeId].storeTypeId),t={current:o.current,pageSize:o.pageSize,storeId:[o.storeId],Order_CreateTime:o.startTime[0],Order_EndTime:o.startTime[1]},u.next=6,L.orderSummaryList(t).then(function(l){i=l.data.data,a=l.data.total,ee(l.data.data)});case 6:return u.abrupt("return",{data:i,success:!0,total:a});case 7:case"end":return u.stop()}},s)}));return function(s,o,R){return f.apply(this,arguments)}}()})})},d=n},3408:function(G,_,r){"use strict";r.d(_,{lM:function(){return W},IH:function(){return g},mm:function(){return b},eP:function(){return A},FM:function(){return M}});var c=r(39428),T=r(11849),x=r(3182),S=r(48971);function W(n,d){return Z.apply(this,arguments)}function Z(){return Z=(0,x.Z)((0,c.Z)().mark(function n(d,h){return(0,c.Z)().wrap(function(I){for(;;)switch(I.prev=I.next){case 0:return I.abrupt("return",(0,S.WY)("/kitchen/api/sysOrg\u200B/page",{method:"GET",params:(0,T.Z)({},d)}));case 1:case"end":return I.stop()}},n)})),Z.apply(this,arguments)}function g(n){return E.apply(this,arguments)}function E(){return E=(0,x.Z)((0,c.Z)().mark(function n(d){return(0,c.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,S.WY)("/kitchen/api/sysOrg/add",{method:"POST",data:(0,T.Z)({},d)}));case 1:case"end":return e.stop()}},n)})),E.apply(this,arguments)}function p(n){return O.apply(this,arguments)}function O(){return O=_asyncToGenerator(_regeneratorRuntime().mark(function n(d){return _regeneratorRuntime().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",request("\u200B/kitchen/api\u200B/sysOrg\u200B/list",{method:"POST",data:_objectSpread({},d)}));case 1:case"end":return e.stop()}},n)})),O.apply(this,arguments)}function b(n){return P.apply(this,arguments)}function P(){return P=(0,x.Z)((0,c.Z)().mark(function n(d){return(0,c.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,S.WY)("\u200B/kitchen/api\u200B/sysOrg\u200B/delete",{method:"POST",data:(0,T.Z)({},d)}));case 1:case"end":return e.stop()}},n)})),P.apply(this,arguments)}function A(n){return y.apply(this,arguments)}function y(){return y=(0,x.Z)((0,c.Z)().mark(function n(d){return(0,c.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,S.WY)("\u200B/kitchen/api\u200B/sysOrg\u200B/edit",{method:"POST",data:(0,T.Z)({},d)}));case 1:case"end":return e.stop()}},n)})),y.apply(this,arguments)}function L(n){return w.apply(this,arguments)}function w(){return w=_asyncToGenerator(_regeneratorRuntime().mark(function n(d){return _regeneratorRuntime().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",request("/kitchen\u200B/api\u200B/sysOrg\u200B/detail",{method:"POST",data:_objectSpread({},d)}));case 1:case"end":return e.stop()}},n)})),w.apply(this,arguments)}function M(n){return v.apply(this,arguments)}function v(){return v=(0,x.Z)((0,c.Z)().mark(function n(d){return(0,c.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,S.WY)("\u200B/kitchen/api\u200B/sysOrg\u200B/tree",{data:(0,T.Z)({},d)}));case 1:case"end":return e.stop()}},n)})),v.apply(this,arguments)}}}]); +(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[8849,1322],{56036:function(U,C,r){"use strict";r.r(C),r.d(C,{default:function(){return d}});var c=r(39428),T=r(3182),x=r(57663),S=r(71577),A=r(62999),Z=r(54680),g=r(2824),E=r(90631),p=r(67294),O=r(78009),R=r(16894),_=r(53667),b=r.n(_),y=r(48971),L={orderSummaryList:function(e){return e.isreport=!0,(0,y.WY)("/kitchen/api/order/order-summary",{method:"Post",data:e})},srdTypeList:function(e){return(0,y.WY)("/kitchen/api/storetype/list",{method:"Post",data:e})},srdList:function(e){return(0,y.WY)("/kitchen/api/store/list",{method:"Post",data:e})},goodsList:function(e){return(0,y.WY)("/kitchen/api/goodes/list",{method:"Post",data:e})},goodsTypeList:function(e){return(0,y.WY)("/kitchen/api/goodstype/list",{method:"Post",data:e})}},P=r(3408),M=r(30381),v=r(85893),n=function(){var e=(0,p.useState)([]),I=(0,g.Z)(e,2),G=I[0],H=I[1],N=(0,p.useState)([]),j=(0,g.Z)(N,2),de=j[0],z=j[1],V=(0,p.useState)([]),B=(0,g.Z)(V,2),oe=B[0],J=B[1],Q=(0,p.useState)([]),Y=(0,g.Z)(Q,2),le=Y[0],X=Y[1],q=(0,p.useState)([]),k=(0,g.Z)(q,2),F=k[0],ee=k[1],te=(0,p.useRef)(),re=(0,p.useState)([]),K=(0,g.Z)(re,2),ne=K[0],ae=K[1],ie=(0,p.useState)([]),$=(0,g.Z)(ie,2),ce=$[0],se=$[1];(0,p.useEffect)(function(){function f(){(0,P.FM)().then(function(i){a(i.data);function a(s){for(var l in s)s[l].type==2||s[l].type==3?s[l].disabled=!1:s[l].disabled=!0,s[l].children&&a(s[l].children)}ae(i.data);var t={};W(i.data);function W(s){for(var l in s)t[s[l].disabled]=!0,t[s[l].value]={text:s[l].title},s[l].children&&W(s[l].children)}se(t)})}function u(){L.srdTypeList().then(function(i){var a=i.data;a.forEach(function(t){t.storeTypeId=t.id,t.text=t.name}),H(a)})}function o(){L.srdList().then(function(i){var a=i.data;a.forEach(function(t){t.value=t.id,t.label=t.name}),z(a)})}function w(){L.goodsList().then(function(i){var a=i.data;a.forEach(function(t){t.label=t.name,t.value=t.id}),J(a)})}function m(){L.goodsTypeList().then(function(i){var a=i.data;a.forEach(function(t){t.label=t.name,t.value=t.id}),X(a)})}o(),u(),w(),m(),f()},[]);function ue(){var f=F.ReqDetailList,u={},o=[];D.map(function(m,i){i>2&&o.push(m)}),u.fileName="\u8BA2\u5355\u6C47\u603B",u.datas=[{sheetData:F.map(function(m){var i={};return D.forEach(function(a,t){t>2&&(i[a.dataIndex]=m[a.dataIndex])}),i}),sheetName:"\u8BA2\u5355\u6C47\u603B",sheetFilter:o.map(function(m){return m.dataIndex}),sheetHeader:o.map(function(m){return m.title}),columnWidths:o.map(function(){return 9})}];var w=new(b())(u);w.saveExcel()}var D=[{title:"\u4E3B\u952E",dataIndex:"id",tip:"\u89C4\u5219\u540D\u79F0\u662F\u552F\u4E00\u7684 key",hideInSearch:!0,hideInTable:!0},{title:"\u5E97\u94FA\u540D\u79F0",dataIndex:"storeId",hideInTable:!0,width:120,renderFormItem:function(){return(0,v.jsx)(Z.Z,{style:{width:"100%"},dropdownStyle:{maxHeight:400,overflow:"auto"},treeData:ne,placeholder:"\u5F52\u5C5E\u95E8\u5E97",treeDefaultExpandAll:!0})}},{title:"\u65E5\u671F\u8303\u56F4",dataIndex:"startTime",valueType:"dateRange",hideInTable:!0,initialValue:[]},{title:"\u5E97\u94FA\u540D\u79F0",dataIndex:"storeName",hideInSearch:!0,width:120},{title:"\u603B\u8BA2\u5355",dataIndex:"sumOrder",hideInSearch:!0,width:120},{title:"\u5E94\u6536\u6B3E\u91D1\u989D",dataIndex:"orderOriginalMoney",renderText:function(u){return"".concat(u,"\xA5")},hideInSearch:!0,width:160},{title:"\u6B63\u5E38\u8BA2\u5355",dataIndex:"successfulCount",hideInSearch:!0,width:120},{title:"\u5B9E\u6536\u4ED8\u6B3E\u91D1\u989D",dataIndex:"orderRealMoney",hideInSearch:!0,renderText:function(u){return"".concat(u,"\xA5")},width:160},{title:"\u4F18\u60E0\u91D1\u989D",dataIndex:"discountMoney",hideInSearch:!0,renderText:function(u){return"".concat(u,"\xA5")},width:120},{title:"\u672A\u652F\u4ED8\u8BA2\u5355",dataIndex:"noPayRealCount",hideInSearch:!0,width:120},{title:"\u672A\u652F\u4ED8\u91D1\u989D",dataIndex:"noPayRealMoney",hideInSearch:!0,renderText:function(u){return"".concat(u,"\xA5")},width:120},{title:"\u9000\u6B3E\u8BA2\u5355",dataIndex:"refundCount",hideInSearch:!0,width:120},{title:"\u9000\u6B3E\u91D1\u989D",dataIndex:"refundRealMoney",hideInSearch:!0,renderText:function(u){return"".concat(u,"\xA5")},width:120}];return(0,v.jsx)(O.ZP,{children:(0,v.jsx)(R.ZP,{headerTitle:"\u8BA2\u5355\u6C47\u603B\u67E5\u8BE2",actionRef:te,rowKey:"id",scroll:{x:1300},search:{labelWidth:120},toolBarRender:function(){return[(0,v.jsxs)(S.Z,{type:"primary",onClick:function(){return ue()},children:[(0,v.jsx)(E.Z,{})," \u5BFC\u51FA"]},"create")]},columns:D,request:function(){var f=(0,T.Z)((0,c.Z)().mark(function u(o,w,m){var i,a,t;return(0,c.Z)().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return i=[],a=0,o.storeTypeId!=null&&(o.storeTypeId=G[o.storeTypeId].storeTypeId),t={current:o.current,pageSize:o.pageSize,storeId:[o.storeId],Order_CreateTime:o.startTime[0],Order_EndTime:o.startTime[1]},s.next=6,L.orderSummaryList(t).then(function(l){i=l.data.data,a=l.data.total,ee(l.data.data)});case 6:return s.abrupt("return",{data:i,success:!0,total:a});case 7:case"end":return s.stop()}},u)}));return function(u,o,w){return f.apply(this,arguments)}}()})})},d=n},3408:function(U,C,r){"use strict";r.d(C,{lM:function(){return A},IH:function(){return g},mm:function(){return R},eP:function(){return b},FM:function(){return M}});var c=r(39428),T=r(11849),x=r(3182),S=r(48971);function A(n,d){return Z.apply(this,arguments)}function Z(){return Z=(0,x.Z)((0,c.Z)().mark(function n(d,h){return(0,c.Z)().wrap(function(I){for(;;)switch(I.prev=I.next){case 0:return I.abrupt("return",(0,S.WY)("/kitchen/api/sysOrg\u200B/page",{method:"GET",params:(0,T.Z)({},d)}));case 1:case"end":return I.stop()}},n)})),Z.apply(this,arguments)}function g(n){return E.apply(this,arguments)}function E(){return E=(0,x.Z)((0,c.Z)().mark(function n(d){return(0,c.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,S.WY)("/kitchen/api/sysOrg/add",{method:"POST",data:(0,T.Z)({},d)}));case 1:case"end":return e.stop()}},n)})),E.apply(this,arguments)}function p(n){return O.apply(this,arguments)}function O(){return O=_asyncToGenerator(_regeneratorRuntime().mark(function n(d){return _regeneratorRuntime().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",request("\u200B/kitchen/api\u200B/sysOrg\u200B/list",{method:"POST",data:_objectSpread({},d)}));case 1:case"end":return e.stop()}},n)})),O.apply(this,arguments)}function R(n){return _.apply(this,arguments)}function _(){return _=(0,x.Z)((0,c.Z)().mark(function n(d){return(0,c.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,S.WY)("\u200B/kitchen/api\u200B/sysOrg\u200B/delete",{method:"POST",data:(0,T.Z)({},d)}));case 1:case"end":return e.stop()}},n)})),_.apply(this,arguments)}function b(n){return y.apply(this,arguments)}function y(){return y=(0,x.Z)((0,c.Z)().mark(function n(d){return(0,c.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,S.WY)("\u200B/kitchen/api\u200B/sysOrg\u200B/edit",{method:"POST",data:(0,T.Z)({},d)}));case 1:case"end":return e.stop()}},n)})),y.apply(this,arguments)}function L(n){return P.apply(this,arguments)}function P(){return P=_asyncToGenerator(_regeneratorRuntime().mark(function n(d){return _regeneratorRuntime().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",request("/kitchen\u200B/api\u200B/sysOrg\u200B/detail",{method:"POST",data:_objectSpread({},d)}));case 1:case"end":return e.stop()}},n)})),P.apply(this,arguments)}function M(n){return v.apply(this,arguments)}function v(){return v=(0,x.Z)((0,c.Z)().mark(function n(d){return(0,c.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,S.WY)("\u200B/kitchen/api\u200B/sysOrg\u200B/tree",{data:(0,T.Z)({},d)}));case 1:case"end":return e.stop()}},n)})),v.apply(this,arguments)}}}]); diff --git a/dist/p__order__sales-gross-profit.296849ec.async.js b/dist/p__order__sales-gross-profit.296849ec.async.js deleted file mode 100644 index ce9608f..0000000 --- a/dist/p__order__sales-gross-profit.296849ec.async.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[6713,1322,9464,1981,2869,7013,9719,2383],{20498:function(j){j.exports={"data-search-card":"data-search-card___3kFoI","data-search-box":"data-search-box___3DFSh","search-btn-item":"search-btn-item___3Osl6","table-page":"table-page___3f6vl","loading-card":"loading-card___2D0GH","data-search-item":"data-search-item___SinMf","data-search-input":"data-search-input___3n8I5","data-search-prefix":"data-search-prefix___169Gl","data-search-sufixx":"data-search-sufixx___1KyMR","data-search-btns":"data-search-btns___1TGoh","download-btn":"download-btn___3iu0F"}},80638:function(){},51174:function(j,x,e){"use strict";e.r(x),e.d(x,{default:function(){return A}});var n=e(14781),E=e(36138),S=e(66456),L=e(64411),ue=e(58024),W=e(91894),D=e(57663),$=e(71577),ce=e(13062),T=e(71230),se=e(43358),re=e(34041),r=e(89032),K=e(15746),O=e(62999),g=e(54680),Z=e(93224),a=e(39428),C=e(34792),c=e(48086),i=e(3182),l=e(2824),z=e(20228),G=e(11382),k=e(14965),B=e(91774),d=e(67294),M=e(78009),Q=e(20498),v=e.n(Q),J=e(11849),b=e(48971),U={getReportSalesmargin:function(h){return(0,b.WY)("/kitchen/api/report/salesmargin",{method:"Post",data:h})},goodsList:function(h){return(0,b.WY)("/kitchen/api/goodes/list",{method:"Post",data:h})},goodsTypeList:function(h){return(0,b.WY)("/kitchen/api/goodstype/list",{method:"Post",data:h})},gettree:function(h){return(0,b.WY)("\u200B/kitchen/api\u200B/sysOrg\u200B/tree",{data:(0,J.Z)({},h)})}},y=e(30381),m=e.n(y),ne=e(90631),t=e(85893),q=["children"],H=B.Z.RangePicker,R=function(){return(0,t.jsx)("div",{className:v()["loading-card"],children:(0,t.jsx)(G.Z,{size:"large"})})};function A(){var u=(0,d.useState)([]),h=(0,l.Z)(u,2),oe=h[0],_e=h[1],me=(0,d.useState)(1),F=(0,l.Z)(me,2),I=F[0],ge=F[1],w=(0,d.useState)(10),ee=(0,l.Z)(w,2),te=ee[0],he=ee[1],de=(0,d.useState)(0),le=(0,l.Z)(de,2),ie=le[0],Ee=le[1],fe=(0,d.useState)(!1),N=(0,l.Z)(fe,2),Y=N[0],P=N[1],ve=(0,d.useState)([m()(m()(new Date(Date.now()-24*60*60*1e3*7)).format("YYYY-MM-DD 00:00:00")),m()(m()(new Date(Date.now())).format("YYYY-MM-DD 23:59:59"))]),ae=(0,l.Z)(ve,2),V=ae[0],ye=ae[1],Le=(0,d.useState)(""),pe=(0,l.Z)(Le,2),xe=pe[0],De=pe[1],Te=(0,d.useState)([]),Oe=(0,l.Z)(Te,2),Be=Oe[0],We=Oe[1],Ke=(0,d.useState)([]),Pe=(0,l.Z)(Ke,2),Ue=Pe[0],Ne=Pe[1],Ye=(0,d.useState)([]),Se=(0,l.Z)(Ye,2),Ze=Se[0],Ce=Se[1],Ge=(0,d.useState)([]),Me=(0,l.Z)(Ge,2),Re=Me[0],be=Me[1],Fe=(0,d.useState)([]),Ae=(0,l.Z)(Fe,2),we=Ae[0],$e=Ae[1],ze=(0,d.useState)([]),Ie=(0,l.Z)(ze,2),tt=Ie[0],Qe=Ie[1],Je=[{title:"\u95E8\u5E97\u540D\u79F0",dataIndex:"storeId",key:"storeId",render:function(o){var s=Ue.find(function(p){return p.key===o});return s?(0,t.jsx)("span",{children:s.title}):(0,t.jsx)("span",{children:"\u6682\u65E0\u95E8\u5E97\u540D\u79F0"})}},{title:"\u5546\u54C1\u540D\u79F0",dataIndex:"goodsId",key:"goodsId",render:function(o){var s=Re.find(function(p){return p.id===o});return s?(0,t.jsx)("span",{children:s.name}):(0,t.jsx)("span",{children:"\u6682\u65E0\u5546\u54C1\u540D\u79F0"})}},{title:"\u6BDB\u5229\u7387\uFF08%\uFF09",dataIndex:"marginRatio",key:"marginRatio"}],He=function(o,s){ge(o),he(s)},je=function(){var _=(0,i.Z)((0,a.Z)().mark(function o(){var s,p;return(0,a.Z)().wrap(function(X){for(;;)switch(X.prev=X.next){case 0:return s={storeId:xe,goodsId:Ze[0],goodsTypeId:we[0],begintime:V[0],endtime:V[1],current:I,pageSize:te},P(!0),X.next=4,U.getReportSalesmargin(s);case 4:p=X.sent,P(!1),p.statusCode===200?_e(p.data.data):c.default.error(p.errors||"\u83B7\u53D6\u9500\u552E\u6210\u672C\u5931\u8D25");case 7:case"end":return X.stop()}},o)}));return function(){return _.apply(this,arguments)}}(),Ve=function(){var _=(0,i.Z)((0,a.Z)().mark(function o(){var s;return(0,a.Z)().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return P(!0),f.next=3,U.gettree({});case 3:s=f.sent,P(!1),s.statusCode===200?(We(s.data),Ne(et(s.data))):c.default.error("\u67E5\u8BE2\u5E97\u94FA\u5217\u8868\u5931\u8D25");case 6:case"end":return f.stop()}},o)}));return function(){return _.apply(this,arguments)}}(),Xe=function(){var _=(0,i.Z)((0,a.Z)().mark(function o(){var s;return(0,a.Z)().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return P(!0),f.next=3,U.goodsList({});case 3:s=f.sent,P(!1),s.statusCode===200?be(s.data):c.default.error("\u67E5\u8BE2\u5546\u54C1\u5217\u8868\u5931\u8D25");case 6:case"end":return f.stop()}},o)}));return function(){return _.apply(this,arguments)}}(),ke=function(){var _=(0,i.Z)((0,a.Z)().mark(function o(){var s;return(0,a.Z)().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return P(!0),f.next=3,U.goodsTypeList({});case 3:s=f.sent,P(!1),s.statusCode===200?Qe(s.data):c.default.error("\u67E5\u8BE2\u5546\u54C1\u5206\u7C7B\u5217\u8868\u5931\u8D25");case 6:case"end":return f.stop()}},o)}));return function(){return _.apply(this,arguments)}}(),qe=function(){Ce([]),De([]),$e([]),ye([m()(m()(new Date(Date.now()-24*60*60*1e3*7)).format("YYYY-MM-DD 00:00:00")),m()(m()(new Date(Date.now())).format("YYYY-MM-DD 23:59:59"))])},et=function _(o){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return o.forEach(function(p){var f=p.children,X=(0,Z.Z)(p,q);s.push(X),f&&f.length>0&&_(f,s)}),s};return(0,d.useEffect)(function(){je(),Ve(),Xe(),ke()},[]),(0,t.jsxs)(M.ZP,{children:[Y?(0,t.jsx)(R,{}):null,(0,t.jsxs)(W.Z,{className:v()["data-search-card"],children:[(0,t.jsxs)(T.Z,{gutter:20,justify:"space-between",children:[(0,t.jsxs)(K.Z,{xs:24,sm:24,md:12,lg:12,xl:6,className:v()["data-search-item"],children:[(0,t.jsx)("div",{className:v()["data-search-prefix"],children:"\u95E8\u5E97"}),(0,t.jsx)(g.Z,{className:v()["data-search-sufixx"],value:xe,dropdownStyle:{maxHeight:400,overflow:"auto"},treeData:Be,placeholder:"\u8BF7\u9009\u62E9\u95E8\u5E97",treeDefaultExpandAll:!0,onChange:function(o){return De(o)}})]}),(0,t.jsxs)(K.Z,{xs:24,sm:24,md:12,lg:12,xl:6,className:v()["data-search-item"],children:[(0,t.jsx)("div",{className:v()["data-search-prefix"],children:"\u5546\u54C1"}),(0,t.jsx)(re.Z,{className:v()["data-search-sufixx"],showSearch:!0,mode:"tags",size:"middle",allowClear:!0,placeholder:"\u8BF7\u9009\u62E9\u5546\u54C1",value:Ze,onChange:function(o){return Ce(o)},filterOption:function(o,s){return s.children.toLowerCase().includes(o.toLowerCase())},children:Re.map(function(_,o){return(0,t.jsx)(Option,{children:_.name},_.id)})})]}),(0,t.jsxs)(K.Z,{xs:24,sm:24,md:12,lg:12,xl:6,className:v()["data-search-item"],children:[(0,t.jsx)("div",{className:v()["data-search-prefix"],children:"\u8D77\u59CB\u65F6\u95F4"}),(0,t.jsx)(H,{size:"middle",className:v()["data-search-sufixx"],value:V,onChange:function(o,s){var p=[m()(m()(new Date(s[0])).format("YYYY-MM-DD 00:00:00")),m()(m()(new Date(s[1])).format("YYYY-MM-DD 23:59:59"))];ye(p)}})]})]}),(0,t.jsxs)("div",{className:v()["data-search-btns"],children:[(0,t.jsx)($.Z,{className:v()["search-btn-item"],onClick:qe,children:"\u91CD\u7F6E"}),(0,t.jsx)($.Z,{className:v()["search-btn-item"],type:"primary",onClick:je,children:"\u67E5\u8BE2"})]})]}),(0,t.jsxs)(W.Z,{className:v()["table-card"],children:[(0,t.jsx)("div",{className:v()["download-btn"],children:(0,t.jsx)($.Z,{type:"primary",icon:(0,t.jsx)(ne.Z,{}),size:"middle",children:"\u4E0B\u8F7D"})}),(0,t.jsx)(L.Z,{dataSource:oe,columns:Je,pagination:!1}),(0,t.jsx)("div",{className:v()["table-page"],children:(0,t.jsx)(E.Z,{current:I,pageSize:te,total:ie,onChange:He})})]})]})}},15746:function(j,x,e){"use strict";var n=e(21584);x.Z=n.Z},89032:function(j,x,e){"use strict";var n=e(38663),E=e.n(n),S=e(6999)},99134:function(j,x,e){"use strict";var n=e(67294),E=(0,n.createContext)({});x.Z=E},21584:function(j,x,e){"use strict";var n=e(96156),E=e(22122),S=e(90484),L=e(94184),ue=e.n(L),W=e(67294),D=e(53124),$=e(99134),ce=function(r,K){var O={};for(var g in r)Object.prototype.hasOwnProperty.call(r,g)&&K.indexOf(g)<0&&(O[g]=r[g]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Z=0,g=Object.getOwnPropertySymbols(r);Z0){var q=c[0]/2;t.paddingLeft=q,t.paddingRight=q}if(c&&c[1]>0&&!l){var H=c[1]/2;t.paddingTop=H,t.paddingBottom=H}return J&&(t.flex=T(J),i===!1&&!t.minWidth&&(t.minWidth=0)),W.createElement("div",(0,E.Z)({},U,{style:(0,E.Z)((0,E.Z)({},t),b),className:ne,ref:K}),v)});x.Z=re},92820:function(j,x,e){"use strict";var n=e(22122),E=e(96156),S=e(90484),L=e(28481),ue=e(94184),W=e.n(ue),D=e(67294),$=e(53124),ce=e(98082),T=e(24308),se=e(93355),re=e(99134),r=function(a,C){var c={};for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&C.indexOf(i)<0&&(c[i]=a[i]);if(a!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,i=Object.getOwnPropertySymbols(a);l0?I[0]/-2:void 0,te=I[1]!=null&&I[1]>0?I[1]/-2:void 0;if(ee&&(w.marginLeft=ee,w.marginRight=ee),oe){var he=(0,L.Z)(I,2);w.rowGap=he[1]}else te&&(w.marginTop=te,w.marginBottom=te);var de=(0,L.Z)(I,2),le=de[0],ie=de[1],Ee=D.useMemo(function(){return{gutter:[le,ie],wrap:Q,supportFlexGap:oe}},[le,ie,Q,oe]);return D.createElement(re.Z.Provider,{value:Ee},D.createElement("div",(0,n.Z)({},v,{className:ge,style:(0,n.Z)((0,n.Z)({},w),k),ref:C}),B))});x.Z=Z},6999:function(j,x,e){"use strict";var n=e(38663),E=e.n(n),S=e(80638),L=e.n(S)},71230:function(j,x,e){"use strict";var n=e(92820);x.Z=n.Z},13062:function(j,x,e){"use strict";var n=e(38663),E=e.n(n),S=e(6999)}}]); diff --git a/dist/p__order__sales-gross-profit.5eb70b0d.async.js b/dist/p__order__sales-gross-profit.5eb70b0d.async.js new file mode 100644 index 0000000..757da76 --- /dev/null +++ b/dist/p__order__sales-gross-profit.5eb70b0d.async.js @@ -0,0 +1 @@ +(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[6713,1322,1279,7800,6398,6794,944,8208],{20498:function(j){j.exports={"data-search-card":"data-search-card___3kFoI","data-search-box":"data-search-box___3DFSh","search-btn-item":"search-btn-item___3Osl6","table-page":"table-page___3f6vl","loading-card":"loading-card___2D0GH","data-search-item":"data-search-item___SinMf","data-search-input":"data-search-input___3n8I5","data-search-prefix":"data-search-prefix___169Gl","data-search-sufixx":"data-search-sufixx___1KyMR","data-search-btns":"data-search-btns___1TGoh","download-btn":"download-btn___3iu0F"}},80638:function(){},51174:function(j,x,e){"use strict";e.r(x),e.d(x,{default:function(){return A}});var n=e(14781),E=e(36138),S=e(66456),L=e(64411),ue=e(58024),W=e(91894),D=e(57663),$=e(71577),ce=e(13062),T=e(71230),se=e(43358),re=e(34041),r=e(89032),K=e(15746),O=e(62999),g=e(54680),Z=e(93224),a=e(39428),C=e(34792),c=e(48086),i=e(3182),l=e(2824),z=e(20228),G=e(11382),k=e(14965),B=e(91774),d=e(67294),M=e(78009),Q=e(20498),v=e.n(Q),J=e(11849),b=e(48971),U={getReportSalesmargin:function(h){return(0,b.WY)("/kitchen/api/report/salesmargin",{method:"Post",data:h})},goodsList:function(h){return(0,b.WY)("/kitchen/api/goodes/list",{method:"Post",data:h})},goodsTypeList:function(h){return(0,b.WY)("/kitchen/api/goodstype/list",{method:"Post",data:h})},gettree:function(h){return(0,b.WY)("\u200B/kitchen/api\u200B/sysOrg\u200B/tree",{data:(0,J.Z)({},h)})}},y=e(30381),m=e.n(y),ne=e(90631),t=e(85893),q=["children"],H=B.Z.RangePicker,R=function(){return(0,t.jsx)("div",{className:v()["loading-card"],children:(0,t.jsx)(G.Z,{size:"large"})})};function A(){var u=(0,d.useState)([]),h=(0,l.Z)(u,2),oe=h[0],_e=h[1],me=(0,d.useState)(1),F=(0,l.Z)(me,2),I=F[0],ge=F[1],w=(0,d.useState)(10),ee=(0,l.Z)(w,2),te=ee[0],he=ee[1],de=(0,d.useState)(0),le=(0,l.Z)(de,2),ie=le[0],Ee=le[1],fe=(0,d.useState)(!1),N=(0,l.Z)(fe,2),Y=N[0],P=N[1],ve=(0,d.useState)([m()(m()(new Date(Date.now()-24*60*60*1e3*7)).format("YYYY-MM-DD 00:00:00")),m()(m()(new Date(Date.now())).format("YYYY-MM-DD 23:59:59"))]),ae=(0,l.Z)(ve,2),V=ae[0],ye=ae[1],Le=(0,d.useState)(""),pe=(0,l.Z)(Le,2),xe=pe[0],De=pe[1],Te=(0,d.useState)([]),Oe=(0,l.Z)(Te,2),Be=Oe[0],We=Oe[1],Ke=(0,d.useState)([]),Pe=(0,l.Z)(Ke,2),Ue=Pe[0],Ne=Pe[1],Ye=(0,d.useState)([]),Se=(0,l.Z)(Ye,2),Ze=Se[0],Ce=Se[1],Ge=(0,d.useState)([]),Me=(0,l.Z)(Ge,2),Re=Me[0],be=Me[1],Fe=(0,d.useState)([]),Ae=(0,l.Z)(Fe,2),we=Ae[0],$e=Ae[1],ze=(0,d.useState)([]),Ie=(0,l.Z)(ze,2),tt=Ie[0],Qe=Ie[1],Je=[{title:"\u95E8\u5E97\u540D\u79F0",dataIndex:"storeId",key:"storeId",render:function(o){var s=Ue.find(function(p){return p.key===o});return s?(0,t.jsx)("span",{children:s.title}):(0,t.jsx)("span",{children:"\u6682\u65E0\u95E8\u5E97\u540D\u79F0"})}},{title:"\u5546\u54C1\u540D\u79F0",dataIndex:"goodsId",key:"goodsId",render:function(o){var s=Re.find(function(p){return p.id===o});return s?(0,t.jsx)("span",{children:s.name}):(0,t.jsx)("span",{children:"\u6682\u65E0\u5546\u54C1\u540D\u79F0"})}},{title:"\u6BDB\u5229\u7387\uFF08%\uFF09",dataIndex:"marginRatio",key:"marginRatio"}],He=function(o,s){ge(o),he(s)},je=function(){var _=(0,i.Z)((0,a.Z)().mark(function o(){var s,p;return(0,a.Z)().wrap(function(X){for(;;)switch(X.prev=X.next){case 0:return s={storeId:xe,goodsId:Ze[0],goodsTypeId:we[0],begintime:V[0],endtime:V[1],current:I,pageSize:te},P(!0),X.next=4,U.getReportSalesmargin(s);case 4:p=X.sent,P(!1),p.statusCode===200?_e(p.data.data):c.default.error(p.errors||"\u83B7\u53D6\u9500\u552E\u6210\u672C\u5931\u8D25");case 7:case"end":return X.stop()}},o)}));return function(){return _.apply(this,arguments)}}(),Ve=function(){var _=(0,i.Z)((0,a.Z)().mark(function o(){var s;return(0,a.Z)().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return P(!0),f.next=3,U.gettree({});case 3:s=f.sent,P(!1),s.statusCode===200?(We(s.data),Ne(et(s.data))):c.default.error("\u67E5\u8BE2\u5E97\u94FA\u5217\u8868\u5931\u8D25");case 6:case"end":return f.stop()}},o)}));return function(){return _.apply(this,arguments)}}(),Xe=function(){var _=(0,i.Z)((0,a.Z)().mark(function o(){var s;return(0,a.Z)().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return P(!0),f.next=3,U.goodsList({});case 3:s=f.sent,P(!1),s.statusCode===200?be(s.data):c.default.error("\u67E5\u8BE2\u5546\u54C1\u5217\u8868\u5931\u8D25");case 6:case"end":return f.stop()}},o)}));return function(){return _.apply(this,arguments)}}(),ke=function(){var _=(0,i.Z)((0,a.Z)().mark(function o(){var s;return(0,a.Z)().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return P(!0),f.next=3,U.goodsTypeList({});case 3:s=f.sent,P(!1),s.statusCode===200?Qe(s.data):c.default.error("\u67E5\u8BE2\u5546\u54C1\u5206\u7C7B\u5217\u8868\u5931\u8D25");case 6:case"end":return f.stop()}},o)}));return function(){return _.apply(this,arguments)}}(),qe=function(){Ce([]),De([]),$e([]),ye([m()(m()(new Date(Date.now()-24*60*60*1e3*7)).format("YYYY-MM-DD 00:00:00")),m()(m()(new Date(Date.now())).format("YYYY-MM-DD 23:59:59"))])},et=function _(o){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return o.forEach(function(p){var f=p.children,X=(0,Z.Z)(p,q);s.push(X),f&&f.length>0&&_(f,s)}),s};return(0,d.useEffect)(function(){je(),Ve(),Xe(),ke()},[]),(0,t.jsxs)(M.ZP,{children:[Y?(0,t.jsx)(R,{}):null,(0,t.jsxs)(W.Z,{className:v()["data-search-card"],children:[(0,t.jsxs)(T.Z,{gutter:20,justify:"space-between",children:[(0,t.jsxs)(K.Z,{xs:24,sm:24,md:12,lg:12,xl:6,className:v()["data-search-item"],children:[(0,t.jsx)("div",{className:v()["data-search-prefix"],children:"\u95E8\u5E97"}),(0,t.jsx)(g.Z,{className:v()["data-search-sufixx"],value:xe,dropdownStyle:{maxHeight:400,overflow:"auto"},treeData:Be,placeholder:"\u8BF7\u9009\u62E9\u95E8\u5E97",treeDefaultExpandAll:!0,onChange:function(o){return De(o)}})]}),(0,t.jsxs)(K.Z,{xs:24,sm:24,md:12,lg:12,xl:6,className:v()["data-search-item"],children:[(0,t.jsx)("div",{className:v()["data-search-prefix"],children:"\u5546\u54C1"}),(0,t.jsx)(re.Z,{className:v()["data-search-sufixx"],showSearch:!0,mode:"tags",size:"middle",allowClear:!0,placeholder:"\u8BF7\u9009\u62E9\u5546\u54C1",value:Ze,onChange:function(o){return Ce(o)},filterOption:function(o,s){return s.children.toLowerCase().includes(o.toLowerCase())},children:Re.map(function(_,o){return(0,t.jsx)(Option,{children:_.name},_.id)})})]}),(0,t.jsxs)(K.Z,{xs:24,sm:24,md:12,lg:12,xl:6,className:v()["data-search-item"],children:[(0,t.jsx)("div",{className:v()["data-search-prefix"],children:"\u8D77\u59CB\u65F6\u95F4"}),(0,t.jsx)(H,{size:"middle",className:v()["data-search-sufixx"],value:V,onChange:function(o,s){var p=[m()(m()(new Date(s[0])).format("YYYY-MM-DD 00:00:00")),m()(m()(new Date(s[1])).format("YYYY-MM-DD 23:59:59"))];ye(p)}})]})]}),(0,t.jsxs)("div",{className:v()["data-search-btns"],children:[(0,t.jsx)($.Z,{className:v()["search-btn-item"],onClick:qe,children:"\u91CD\u7F6E"}),(0,t.jsx)($.Z,{className:v()["search-btn-item"],type:"primary",onClick:je,children:"\u67E5\u8BE2"})]})]}),(0,t.jsxs)(W.Z,{className:v()["table-card"],children:[(0,t.jsx)("div",{className:v()["download-btn"],children:(0,t.jsx)($.Z,{type:"primary",icon:(0,t.jsx)(ne.Z,{}),size:"middle",children:"\u4E0B\u8F7D"})}),(0,t.jsx)(L.Z,{dataSource:oe,columns:Je,pagination:!1}),(0,t.jsx)("div",{className:v()["table-page"],children:(0,t.jsx)(E.Z,{current:I,pageSize:te,total:ie,onChange:He})})]})]})}},15746:function(j,x,e){"use strict";var n=e(21584);x.Z=n.Z},89032:function(j,x,e){"use strict";var n=e(38663),E=e.n(n),S=e(6999)},99134:function(j,x,e){"use strict";var n=e(67294),E=(0,n.createContext)({});x.Z=E},21584:function(j,x,e){"use strict";var n=e(96156),E=e(22122),S=e(90484),L=e(94184),ue=e.n(L),W=e(67294),D=e(53124),$=e(99134),ce=function(r,K){var O={};for(var g in r)Object.prototype.hasOwnProperty.call(r,g)&&K.indexOf(g)<0&&(O[g]=r[g]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Z=0,g=Object.getOwnPropertySymbols(r);Z0){var q=c[0]/2;t.paddingLeft=q,t.paddingRight=q}if(c&&c[1]>0&&!l){var H=c[1]/2;t.paddingTop=H,t.paddingBottom=H}return J&&(t.flex=T(J),i===!1&&!t.minWidth&&(t.minWidth=0)),W.createElement("div",(0,E.Z)({},U,{style:(0,E.Z)((0,E.Z)({},t),b),className:ne,ref:K}),v)});x.Z=re},92820:function(j,x,e){"use strict";var n=e(22122),E=e(96156),S=e(90484),L=e(28481),ue=e(94184),W=e.n(ue),D=e(67294),$=e(53124),ce=e(98082),T=e(24308),se=e(93355),re=e(99134),r=function(a,C){var c={};for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&C.indexOf(i)<0&&(c[i]=a[i]);if(a!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,i=Object.getOwnPropertySymbols(a);l0?I[0]/-2:void 0,te=I[1]!=null&&I[1]>0?I[1]/-2:void 0;if(ee&&(w.marginLeft=ee,w.marginRight=ee),oe){var he=(0,L.Z)(I,2);w.rowGap=he[1]}else te&&(w.marginTop=te,w.marginBottom=te);var de=(0,L.Z)(I,2),le=de[0],ie=de[1],Ee=D.useMemo(function(){return{gutter:[le,ie],wrap:Q,supportFlexGap:oe}},[le,ie,Q,oe]);return D.createElement(re.Z.Provider,{value:Ee},D.createElement("div",(0,n.Z)({},v,{className:ge,style:(0,n.Z)((0,n.Z)({},w),k),ref:C}),B))});x.Z=Z},6999:function(j,x,e){"use strict";var n=e(38663),E=e.n(n),S=e(80638),L=e.n(S)},71230:function(j,x,e){"use strict";var n=e(92820);x.Z=n.Z},13062:function(j,x,e){"use strict";var n=e(38663),E=e.n(n),S=e(6999)}}]); diff --git a/dist/p__order__salesReport.201a26cc.async.js b/dist/p__order__salesReport.201a26cc.async.js new file mode 100644 index 0000000..37542aa --- /dev/null +++ b/dist/p__order__salesReport.201a26cc.async.js @@ -0,0 +1 @@ +(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[5679,1322,1279,7800,6398,6794,944,8208],{33388:function(T){T.exports={"welcome-head":"welcome-head___2uLA1","welcome-head-org":"welcome-head-org___TTx63","echarts-card-choose":"echarts-card-choose___2oFaE","my-loading":"my-loading___11j2H","device-list":"device-list___D-nOI","my-range-picker":"my-range-picker___3WXGc","tabs-title":"tabs-title___3n9F2"}},80638:function(){},74457:function(T,_,e){"use strict";e.r(_),e.d(_,{default:function(){return z}});var a=e(20228),i=e(11382),O=e(66456),x=e(64411),D=e(58024),c=e(91894),s=e(13062),b=e(71230),$=e(57663),P=e(71577),j=e(89032),w=e(15746),t=e(39428),H=e(3182),d=e(2824),v=e(14965),C=e(91774),n=e(18106),g=e(36166),r=e(67294),f=e(78009),h=e(33388),p=e.n(h),N=e(30381),u=e.n(N),B=e(48971),I={GetSalesReport:function(L){return(0,B.WY)("/kitchen/api/Order/GetSalesReport",{method:"Post",data:L})}},R=e(51496),l=e(85893),oe=g.Z.TabPane,J=C.Z.RangePicker,ee=function(){var L=(0,r.useState)("left"),Q=(0,d.Z)(L,2),Z=Q[0],te=Q[1],V=(0,r.useState)(1),M=(0,d.Z)(V,2),y=M[0],o=M[1],U=(0,r.useState)([]),k=(0,d.Z)(U,2),ue=k[0],ie=k[1],X=(0,r.useState)([u()(u()(new Date(Date.now())).format("YYYY-MM-DD 00:00:00")),u()(u()(new Date(Date.now())).format("YYYY-MM-DD 23:59:59"))]),S=(0,d.Z)(X,2),ae=S[0],K=S[1],ne=(0,r.useState)(!1),q=(0,d.Z)(ne,2),fe=q[0],re=q[1],ce=[{title:"\u540D\u79F0",dataIndex:"name",hideInSearch:!0},{title:"\u9500\u552E\u6570\u91CF",dataIndex:"saleCount",hideInSearch:!0}];(0,r.useEffect)(function(){se()},[y]);var se=function(){var F=(0,H.Z)((0,t.Z)().mark(function W(){var E,A,G;return(0,t.Z)().wrap(function(Y){for(;;)switch(Y.prev=Y.next){case 0:return re(!0),E=u()(ae[0]).format("YYYY-MM-DD HH:mm:ss"),A=u()(ae[1]).format("YYYY-MM-DD HH:mm:ss"),Y.next=5,I.GetSalesReport({type:y,startTime:E,endTime:A});case 5:G=Y.sent,G.forEach(function(le){le.key=(0,R.x0)()}),ie(G),re(!1);case 9:case"end":return Y.stop()}},W)}));return function(){return F.apply(this,arguments)}}();return(0,l.jsx)(l.Fragment,{children:(0,l.jsxs)(f.ZP,{children:[(0,l.jsx)(c.Z,{style:{marginBottom:"30px"},children:(0,l.jsxs)(b.Z,{children:[(0,l.jsx)(w.Z,{xs:24,sm:12,md:12,lg:12,xl:6,style:{margin:"10px 0"},children:(0,l.jsxs)("div",{className:p()["echarts-card-choose"],children:[(0,l.jsx)("div",{className:p()["echarts-card-choose-text"],children:"\u8D77\u6B62\u65F6\u95F4\uFF1A"}),(0,l.jsx)(J,{showTime:!0,style:{width:"70%"},className:p()["my-range-picker"],value:ae,onChange:function(W,E){var A=[u()(u()(new Date(E[0])).format("YYYY-MM-DD 00:00:00")),u()(u()(new Date(E[1])).format("YYYY-MM-DD 23:59:59"))];K(A)}})]})}),(0,l.jsxs)(w.Z,{xs:24,sm:12,md:12,lg:12,xl:6,style:{margin:"10px 0"},children:[(0,l.jsx)(P.Z,{className:p()["echarts-card-btn"],type:"primary",style:{width:"100px",marginRight:"10px"},onClick:function(){return se()},children:"\u67E5\u8BE2"}),(0,l.jsx)(P.Z,{className:p()["echarts-card-btn"],style:{width:"100px"},onClick:function(){K([u()(u()(new Date(Date.now())).format("YYYY-MM-DD 00:00:00")),u()(u()(new Date(Date.now())).format("YYYY-MM-DD 23:59:59"))])},children:"\u91CD\u7F6E"})]})]})}),(0,l.jsx)(c.Z,{children:(0,l.jsx)(i.Z,{spinning:fe,delay:500,children:(0,l.jsx)(g.Z,{tabPosition:Z,value:y,onChange:function(W){o(W)},items:new Array(2).fill(null).map(function(F,W){var E=String(W+1);return{label:E==1?"\u5206\u7C7B\u7EDF\u8BA1":"\u5355\u54C1\u7EDF\u8BA1",key:E,children:(0,l.jsx)(x.Z,{columns:ce,dataSource:ue})}})})})})]})})},z=ee},15746:function(T,_,e){"use strict";var a=e(21584);_.Z=a.Z},89032:function(T,_,e){"use strict";var a=e(38663),i=e.n(a),O=e(6999)},99134:function(T,_,e){"use strict";var a=e(67294),i=(0,a.createContext)({});_.Z=i},21584:function(T,_,e){"use strict";var a=e(96156),i=e(22122),O=e(90484),x=e(94184),D=e.n(x),c=e(67294),s=e(53124),b=e(99134),$=function(t,H){var d={};for(var v in t)Object.prototype.hasOwnProperty.call(t,v)&&H.indexOf(v)<0&&(d[v]=t[v]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var C=0,v=Object.getOwnPropertySymbols(t);C0){var te=r[0]/2;Z.paddingLeft=te,Z.paddingRight=te}if(r&&r[1]>0&&!h){var V=r[1]/2;Z.paddingTop=V,Z.paddingBottom=V}return J&&(Z.flex=P(J),f===!1&&!Z.minWidth&&(Z.minWidth=0)),c.createElement("div",(0,i.Z)({},z,{style:(0,i.Z)((0,i.Z)({},Z),ee),className:Q,ref:H}),oe)});_.Z=w},92820:function(T,_,e){"use strict";var a=e(22122),i=e(96156),O=e(90484),x=e(28481),D=e(94184),c=e.n(D),s=e(67294),b=e(53124),$=e(98082),P=e(24308),j=e(93355),w=e(99134),t=function(n,g){var r={};for(var f in n)Object.prototype.hasOwnProperty.call(n,f)&&g.indexOf(f)<0&&(r[f]=n[f]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var h=0,f=Object.getOwnPropertySymbols(n);h0?S[0]/-2:void 0,q=S[1]!=null&&S[1]>0?S[1]/-2:void 0;if(ne&&(K.marginLeft=ne,K.marginRight=ne),k){var fe=(0,x.Z)(S,2);K.rowGap=fe[1]}else q&&(K.marginTop=q,K.marginBottom=q);var re=(0,x.Z)(S,2),ce=re[0],se=re[1],F=s.useMemo(function(){return{gutter:[ce,se],wrap:l,supportFlexGap:k}},[ce,se,l,k]);return s.createElement(w.Z.Provider,{value:F},s.createElement("div",(0,a.Z)({},oe,{className:ae,style:(0,a.Z)((0,a.Z)({},K),u),ref:g}),B))});_.Z=C},6999:function(T,_,e){"use strict";var a=e(38663),i=e.n(a),O=e(80638),x=e.n(O)},71230:function(T,_,e){"use strict";var a=e(92820);_.Z=a.Z},13062:function(T,_,e){"use strict";var a=e(38663),i=e.n(a),O=e(6999)},51496:function(T,_,e){"use strict";e.d(_,{x0:function(){return x}});let a=D=>crypto.getRandomValues(new Uint8Array(D)),i=(D,c,s)=>{let b=(2<{let j="";for(;;){let w=s($),t=$;for(;t--;)if(j+=D[w[t]&b]||"",j.length===P)return j}}},O=(D,c=21)=>i(D,c,a),x=(D=21)=>crypto.getRandomValues(new Uint8Array(D)).reduce((c,s)=>(s&=63,s<36?c+=s.toString(36):s<62?c+=(s-26).toString(36).toUpperCase():s>62?c+="-":c+="_",c),"")}}]); diff --git a/dist/p__order__salesReport.53d415d3.async.js b/dist/p__order__salesReport.53d415d3.async.js deleted file mode 100644 index 3eae6c3..0000000 --- a/dist/p__order__salesReport.53d415d3.async.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[5679,1322,9464,1981,2869,7013,9719,2383],{33388:function(T){T.exports={"welcome-head":"welcome-head___2uLA1","welcome-head-org":"welcome-head-org___TTx63","echarts-card-choose":"echarts-card-choose___2oFaE","my-loading":"my-loading___11j2H","device-list":"device-list___D-nOI","my-range-picker":"my-range-picker___3WXGc","tabs-title":"tabs-title___3n9F2"}},80638:function(){},74457:function(T,_,e){"use strict";e.r(_),e.d(_,{default:function(){return z}});var a=e(20228),i=e(11382),O=e(66456),x=e(64411),D=e(58024),c=e(91894),s=e(13062),b=e(71230),$=e(57663),P=e(71577),j=e(89032),w=e(15746),t=e(39428),H=e(3182),d=e(2824),v=e(14965),C=e(91774),n=e(18106),g=e(95562),r=e(67294),f=e(78009),h=e(33388),p=e.n(h),N=e(30381),u=e.n(N),B=e(48971),I={GetSalesReport:function(L){return(0,B.WY)("/kitchen/api/Order/GetSalesReport",{method:"Post",data:L})}},R=e(51496),l=e(85893),oe=g.Z.TabPane,J=C.Z.RangePicker,ee=function(){var L=(0,r.useState)("left"),Q=(0,d.Z)(L,2),Z=Q[0],te=Q[1],V=(0,r.useState)(1),M=(0,d.Z)(V,2),y=M[0],o=M[1],U=(0,r.useState)([]),k=(0,d.Z)(U,2),ue=k[0],ie=k[1],X=(0,r.useState)([u()(u()(new Date(Date.now())).format("YYYY-MM-DD 00:00:00")),u()(u()(new Date(Date.now())).format("YYYY-MM-DD 23:59:59"))]),S=(0,d.Z)(X,2),ae=S[0],K=S[1],ne=(0,r.useState)(!1),q=(0,d.Z)(ne,2),fe=q[0],re=q[1],ce=[{title:"\u540D\u79F0",dataIndex:"name",hideInSearch:!0},{title:"\u9500\u552E\u6570\u91CF",dataIndex:"saleCount",hideInSearch:!0}];(0,r.useEffect)(function(){se()},[y]);var se=function(){var F=(0,H.Z)((0,t.Z)().mark(function W(){var E,A,G;return(0,t.Z)().wrap(function(Y){for(;;)switch(Y.prev=Y.next){case 0:return re(!0),E=u()(ae[0]).format("YYYY-MM-DD HH:mm:ss"),A=u()(ae[1]).format("YYYY-MM-DD HH:mm:ss"),Y.next=5,I.GetSalesReport({type:y,startTime:E,endTime:A});case 5:G=Y.sent,G.forEach(function(le){le.key=(0,R.x0)()}),ie(G),re(!1);case 9:case"end":return Y.stop()}},W)}));return function(){return F.apply(this,arguments)}}();return(0,l.jsx)(l.Fragment,{children:(0,l.jsxs)(f.ZP,{children:[(0,l.jsx)(c.Z,{style:{marginBottom:"30px"},children:(0,l.jsxs)(b.Z,{children:[(0,l.jsx)(w.Z,{xs:24,sm:12,md:12,lg:12,xl:6,style:{margin:"10px 0"},children:(0,l.jsxs)("div",{className:p()["echarts-card-choose"],children:[(0,l.jsx)("div",{className:p()["echarts-card-choose-text"],children:"\u8D77\u6B62\u65F6\u95F4\uFF1A"}),(0,l.jsx)(J,{showTime:!0,style:{width:"70%"},className:p()["my-range-picker"],value:ae,onChange:function(W,E){var A=[u()(u()(new Date(E[0])).format("YYYY-MM-DD 00:00:00")),u()(u()(new Date(E[1])).format("YYYY-MM-DD 23:59:59"))];K(A)}})]})}),(0,l.jsxs)(w.Z,{xs:24,sm:12,md:12,lg:12,xl:6,style:{margin:"10px 0"},children:[(0,l.jsx)(P.Z,{className:p()["echarts-card-btn"],type:"primary",style:{width:"100px",marginRight:"10px"},onClick:function(){return se()},children:"\u67E5\u8BE2"}),(0,l.jsx)(P.Z,{className:p()["echarts-card-btn"],style:{width:"100px"},onClick:function(){K([u()(u()(new Date(Date.now())).format("YYYY-MM-DD 00:00:00")),u()(u()(new Date(Date.now())).format("YYYY-MM-DD 23:59:59"))])},children:"\u91CD\u7F6E"})]})]})}),(0,l.jsx)(c.Z,{children:(0,l.jsx)(i.Z,{spinning:fe,delay:500,children:(0,l.jsx)(g.Z,{tabPosition:Z,value:y,onChange:function(W){o(W)},items:new Array(2).fill(null).map(function(F,W){var E=String(W+1);return{label:E==1?"\u5206\u7C7B\u7EDF\u8BA1":"\u5355\u54C1\u7EDF\u8BA1",key:E,children:(0,l.jsx)(x.Z,{columns:ce,dataSource:ue})}})})})})]})})},z=ee},15746:function(T,_,e){"use strict";var a=e(21584);_.Z=a.Z},89032:function(T,_,e){"use strict";var a=e(38663),i=e.n(a),O=e(6999)},99134:function(T,_,e){"use strict";var a=e(67294),i=(0,a.createContext)({});_.Z=i},21584:function(T,_,e){"use strict";var a=e(96156),i=e(22122),O=e(90484),x=e(94184),D=e.n(x),c=e(67294),s=e(53124),b=e(99134),$=function(t,H){var d={};for(var v in t)Object.prototype.hasOwnProperty.call(t,v)&&H.indexOf(v)<0&&(d[v]=t[v]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var C=0,v=Object.getOwnPropertySymbols(t);C0){var te=r[0]/2;Z.paddingLeft=te,Z.paddingRight=te}if(r&&r[1]>0&&!h){var V=r[1]/2;Z.paddingTop=V,Z.paddingBottom=V}return J&&(Z.flex=P(J),f===!1&&!Z.minWidth&&(Z.minWidth=0)),c.createElement("div",(0,i.Z)({},z,{style:(0,i.Z)((0,i.Z)({},Z),ee),className:Q,ref:H}),oe)});_.Z=w},92820:function(T,_,e){"use strict";var a=e(22122),i=e(96156),O=e(90484),x=e(28481),D=e(94184),c=e.n(D),s=e(67294),b=e(53124),$=e(98082),P=e(24308),j=e(93355),w=e(99134),t=function(n,g){var r={};for(var f in n)Object.prototype.hasOwnProperty.call(n,f)&&g.indexOf(f)<0&&(r[f]=n[f]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var h=0,f=Object.getOwnPropertySymbols(n);h0?S[0]/-2:void 0,q=S[1]!=null&&S[1]>0?S[1]/-2:void 0;if(ne&&(K.marginLeft=ne,K.marginRight=ne),k){var fe=(0,x.Z)(S,2);K.rowGap=fe[1]}else q&&(K.marginTop=q,K.marginBottom=q);var re=(0,x.Z)(S,2),ce=re[0],se=re[1],F=s.useMemo(function(){return{gutter:[ce,se],wrap:l,supportFlexGap:k}},[ce,se,l,k]);return s.createElement(w.Z.Provider,{value:F},s.createElement("div",(0,a.Z)({},oe,{className:ae,style:(0,a.Z)((0,a.Z)({},K),u),ref:g}),B))});_.Z=C},6999:function(T,_,e){"use strict";var a=e(38663),i=e.n(a),O=e(80638),x=e.n(O)},71230:function(T,_,e){"use strict";var a=e(92820);_.Z=a.Z},13062:function(T,_,e){"use strict";var a=e(38663),i=e.n(a),O=e(6999)},51496:function(T,_,e){"use strict";e.d(_,{x0:function(){return x}});let a=D=>crypto.getRandomValues(new Uint8Array(D)),i=(D,c,s)=>{let b=(2<{let j="";for(;;){let w=s($),t=$;for(;t--;)if(j+=D[w[t]&b]||"",j.length===P)return j}}},O=(D,c=21)=>i(D,c,a),x=(D=21)=>crypto.getRandomValues(new Uint8Array(D)).reduce((c,s)=>(s&=63,s<36?c+=s.toString(36):s<62?c+=(s-26).toString(36).toUpperCase():s>62?c+="-":c+="_",c),"")}}]); diff --git a/dist/p__quickStart.e382da4e.async.js b/dist/p__quickStart.c405abce.async.js similarity index 99% rename from dist/p__quickStart.e382da4e.async.js rename to dist/p__quickStart.c405abce.async.js index dc22d0d..6f606c7 100644 --- a/dist/p__quickStart.e382da4e.async.js +++ b/dist/p__quickStart.c405abce.async.js @@ -1 +1 @@ -(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[7825,1322,9464,242,1981,2869,7013,9719,2383,4670],{87246:function(He){He.exports={add_row_content:"add_row_content___1MhOu",add_row_btn:"add_row_btn___55ubX"}},54970:function(He){He.exports={steps_btns:"steps_btns___1fzSt"}},88307:function(He){He.exports={store_config_container:"store_config_container___3YQ4e",choose_store_state:"choose_store_state___3iWn1"}},69038:function(He){He.exports={steps_navbar:"steps_navbar___xiemh",steps_navbar_bottom:"steps_navbar_bottom___3LJIq",steps_content:"steps_content___3jwbG",common_row:"common_row___3vO0H",choose_change_state:"choose_change_state___RcNtV",add_row_content:"add_row_content___3lFj7",add_row_btn:"add_row_btn___FtgXy",ant_descriptions_row:"ant_descriptions_row___1O_JD",ant_descriptions_item_title:"ant_descriptions_item_title___2AaU8",ant_descriptions_item_label:"ant_descriptions_item_label___3bihx",ant_descriptions_item_content:"ant_descriptions_item_content___1840s",current_selected_obj:"current_selected_obj___2DxAP",current_selected_cmp:"current_selected_cmp___2T66U",sure_add_btn:"sure_add_btn___c4Fz9",add_to_some_box:"add_to_some_box___1T4b6",wait_add_list:"wait_add_list___2n8fz",success_add_list:"success_add_list___2fDeC"}},60170:function(He,Zt,d){"use strict";d.r(Zt),d.d(Zt,{default:function(){return pn}});var Sn=d(57106),Dt=d(6129),Fn=d(57663),O=d(71577),jn=d(58024),ot=d(91894),Ae=d(11849),u=d(2824),Bn=d(35556),Ct=d(75899),a=d(67294),Et=d(69038),_=d.n(Et),Mt=d(78009),wn=d(71194),Ie=d(50146),In=d(77883),nt=d(85986),Tn=d(62999),yt=d(54680),c=d(39428),bn=d(34792),f=d(48086),K=d(3182),Dn=d(9715),n=d(55843),En=d(43358),h=d(34041),Mn=d(47673),w=d(4107),Ot=d(65899),k=d(48971),j={getOrgTree:function(){return(0,k.WY)("\u200B/kitchen/api\u200B/sysOrg\u200B/tree",{method:"GET"})},AddOrg:function(t){return(0,k.WY)("/kitchen/api/sysOrg/add",{method:"POST",data:(0,Ae.Z)({},t)})},UpdateOrg:function(t){return(0,k.WY)("\u200B/kitchen/api\u200B/sysOrg\u200B/edit",{method:"POST",data:(0,Ae.Z)({},t)})},getPayTemplateList:function(){return(0,k.WY)("/kitchen/api/paytemplate/getPayTemplatePageList",{method:"post",data:{current:1,pageSize:100}})},AddDeviceInfo:function(t){return(0,k.WY)("/kitchen/api/Device/AddDeviceInfo",{method:"POST",data:t})},UpdateDeviceInfo:function(t){return(0,k.WY)("/kitchen/api/Device/UpdateDeviceInfo",{method:"POST",data:t})},GetDicList:function(t){return(0,k.WY)("/kitchen/api/dict-data/dic-list/".concat(t),{method:"Get"})},GetDeviceType:function(){return(0,k.WY)("\u200B/kitchen/api/Device/GetDeviceType",{method:"GET"})},GetDeviceVersions:function(){return(0,k.WY)("\u200B/kitchen/api/Device/GetDeviceVersions",{method:"post"})},AddDeviceType:function(t){return(0,k.WY)("/kitchen/api/Device/AddDeviceType",{method:"POST",data:t})},GetDeviceInfoPage:function(t){return(0,k.WY)("/kitchen/api/Device/GetDeviceInfoPage",{method:"POST",data:t})},getpage:function(t,xe){return(0,k.WY)("/kitchen/api/sysOrg\u200B/page",{method:"GET",params:(0,Ae.Z)({},t)})},GetFoodMenuInfoPage:function(t){return(0,k.WY)("/kitchen/api/FoodMenu/GetFoodMenuInfoPage",{method:"POST",data:t})},AddFoodMenu:function(t){return(0,k.WY)("/kitchen/api/FoodMenu/AddUpdateFoodMenu",{method:"POST",data:t})},UpdateFoodMenu:function(t){return(0,k.WY)("/kitchen/api/FoodMenu/AddUpdateFoodMenu",{method:"POST",data:t})},GetDeviceGoods:function(t){return(0,k.WY)("/kitchen/api/Device/GetDeviceGoods",{method:"POST",data:t})},AddGoods:function(t){return(0,k.WY)("/kitchen/api/goods",{method:"POST",data:t})},UpdateGoods:function(t){return(0,k.WY)("/kitchen/api/goods",{method:"PUT",data:t})},GetUnitList:function(t){return(0,k.WY)("/kitchen/api/goods-unit/type",{method:"Post",data:t})},GetGoodsbigType:function(t){return(0,k.WY)("/kitchen/api/goods-type/big-goods-types",{method:"POST",data:t})},GetGoodsSmallType:function(t){return(0,k.WY)("/kitchen/api/goods-type/goods-types",{method:"POST",data:t})},GetCosRequestURL:function(t){return(0,k.WY)("/kitchen/api/systemconfig/GetCosRequestSignURL",{method:"POST",data:t})},CreateUnit:function(t){return(0,k.WY)("/kitchen/api/goods-unit",{method:"POST",data:t})},AddGoodsTypeListNew:function(t){return(0,k.WY)("/kitchen/api/goods-type/goods-type-new",{method:"post",data:t})},AddGoodsSmallType:function(t){return(0,k.WY)("/kitchen/api/goods-type",{method:"POST",data:t})},GetgoodsList:function(t){return(0,k.WY)("/kitchen/api/goods/goodss",{method:"Post",data:t})},GetBomPage:function(t){return(0,k.WY)("/kitchen/api/bom/getpage",{method:"Post",data:t})},AddBom:function(t){return(0,k.WY)("/kitchen/api/bom/add",{method:"Post",data:t})},UpdateBom:function(t){return(0,k.WY)("/kitchen/api/bom/update",{method:"Post",data:t})},GetBomTypePage:function(t){return(0,k.WY)("/kitchen/api/bom/getbomtypepage",{method:"Post",data:t})},CreateBomType:function(t){return(0,k.WY)("/kitchen/api/bom/addbomtype",{method:"Post",data:t})},AddMaterial:function(t){return(0,k.WY)("/kitchen/api/product/",{method:"POST",data:(0,Ae.Z)({},t)})},UpdateMaterial:function(t){return(0,k.WY)("/kitchen/api/product/",{method:"PUT",data:(0,Ae.Z)({},t)})},GetMaterialPage:function(t){return(0,k.WY)("/kitchen/api/product/product-list",{method:"Post",data:t})},GetMaterialTypeList:function(t){return(0,k.WY)("/kitchen/api/product-type/type-list",{method:"GET",params:(0,Ae.Z)({},t)})},GetMaterialUintList:function(t){return(0,k.WY)("/kitchen/api/unit/uint-list",{method:"GET",params:(0,Ae.Z)({},t)})},AddMaterialUnit:function(t){return(0,k.WY)("/kitchen/api/unit",{method:"POST",data:t})},AddMaterialType:function(t){return(0,k.WY)("/kitchen/api/product-type",{method:"POST",data:t})},QuickStartAdd:function(t){return(0,k.WY)("/kitchen/api/quickstart/add",{method:"POST",data:t})}},On=d(88307),et=d(49101),Xe=d(51496),e=d(85893),kt=h.Z.Option,at,At=function(t){var xe=(0,a.useState)(null),se=(0,u.Z)(xe,2),Y=se[0],me=se[1],V=(0,a.useState)(null),R=(0,u.Z)(V,2),ee=R[0],L=R[1],X=(0,a.useState)([]),Z=(0,u.Z)(X,2),I=Z[0],$=Z[1],te=(0,a.useState)(null),Q=(0,u.Z)(te,2),re=Q[0],ge=Q[1],ce=function(){re?t.handleOk(re):f.default.error("\u8BF7\u9009\u62E9\u5E97\u94FA\u5730\u5740")},le=function(M){if(M&&Y){Y.clearOverlays();var g=I.find(function(ue){return ue.uid===M});if(g){ge(g);var T=new BMapGL.Point(g.point.lng,g.point.lat);Y.centerAndZoom(T,16);var q=new BMapGL.Marker(T);Y.addOverlay(q);var fe=new BMapGL.InfoWindow(g.address,{width:200,height:100,title:g.title,message:g.address});q.addEventListener("click",function(){Y.openInfoWindow(fe,T)})}}},H=function(M){if(at&&(clearTimeout(at),at=null),Y)if(ee===null){var g=new BMapGL.LocalSearch(Y,{onSearchComplete:function(q){q&&$(JSON.parse(JSON.stringify(q._pois)))}});at=setTimeout(function(){g.search(M)},300),L(g)}else at=setTimeout(function(){ee.search(M)},300)},pe=function(){var M=new BMapGL.Map("baidu_map_container");M.enableScrollWheelZoom(!0),M.setHeading(64.5),M.setTilt(73);var g=new BMapGL.LocalCity;g.get(function(T){T&&M.centerAndZoom(new BMapGL.Point(T.center.lng,T.center.lat),12)}),me(M)};return(0,a.useEffect)(function(){pe()},[]),(0,e.jsx)(e.Fragment,{children:(0,e.jsxs)(Ie.Z,{width:800,title:"\u9009\u62E9\u5E97\u94FA\u5750\u6807",visible:t.isShowBaiduMap,onOk:ce,onCancel:t.handleCancel,children:[(0,e.jsx)(h.Z,{showSearch:!0,placeholder:"\u8BF7\u8F93\u5165\u5730\u5740",onChange:le,onSearch:H,defaultActiveFirstOption:!1,showArrow:!1,filterOption:!1,notFoundContent:null,style:{width:"100%",marginBottom:"10px"},size:"large",children:I==null?void 0:I.map(function(B){return(0,e.jsxs)(kt,{value:B.uid,children:[B.title," \u3010",B.address,"\u3011"]},B.uid)})}),(0,e.jsx)("div",{id:"baidu_map_container",style:{width:"750px",height:"700px"}})]})})},Gt=At,St="message",Pt=function(t){var xe=(0,a.useState)(0),se=(0,u.Z)(xe,2),Y=se[0],me=se[1],V=(0,a.useState)(20),R=(0,u.Z)(V,2),ee=R[0],L=R[1],X=w.Z.TextArea,Z=h.Z.Option,I=h.Z.OptGroup,$=n.Z.useForm(),te=(0,u.Z)($,1),Q=te[0],re=(0,a.useState)([]),ge=(0,u.Z)(re,2),ce=ge[0],le=ge[1],H=(0,a.useState)([]),pe=(0,u.Z)(H,2),B=pe[0],M=pe[1],g=function(){var oe=(0,K.Z)((0,c.Z)().mark(function ne(b){var Ze,ae;return(0,c.Z)().wrap(function(Ce){for(;;)switch(Ce.prev=Ce.next){case 0:if(f.default.loading("\u6B63\u5728\u914D\u7F6E",St),!b.id){Ce.next=8;break}return Ce.next=4,j.UpdateOrg(b);case 4:Ze=Ce.sent,Ze.succeeded?(f.default.success("\u4FEE\u6539\u6210\u529F"),ye(!1),U.current.reload()):f.default.error(Ze.errors||"\u4FEE\u6539\u51FA\u9519"),Ce.next=13;break;case 8:return b.code=(0,Xe.x0)(),Ce.next=11,j.AddOrg(b);case 11:ae=Ce.sent,ae.succeeded?(f.default.success("\u6DFB\u52A0\u6210\u529F"),U.current.reload(),ye(!1)):f.default.error(JSON.stringify(ae.errors)||"\u6DFB\u52A0\u51FA\u9519");case 13:f.default.destroy(St);case 14:case"end":return Ce.stop()}},ne)}));return function(b){return oe.apply(this,arguments)}}(),T=(0,a.useState)({id:""}),q=(0,u.Z)(T,2),fe=q[0],ue=q[1],J=(0,a.useState)(!1),A=(0,u.Z)(J,2),z=A[0],ye=A[1],U=(0,a.useRef)(),we=function(){var oe=(0,K.Z)((0,c.Z)().mark(function ne(){var b,Ze;return(0,c.Z)().wrap(function(Se){for(;;)switch(Se.prev=Se.next){case 0:return Se.next=2,j.getOrgTree();case 2:b=Se.sent,b.statusCode===200?(Ze=[{key:"0",parentId:"0",title:"\u9876\u7EA7",value:"0",children:b.data||[]}],le(Ze)):f.default.error(b.errors||"\u83B7\u53D6\u95E8\u5E97\u67B6\u6784\u51FA\u9519");case 4:case"end":return Se.stop()}},ne)}));return function(){return oe.apply(this,arguments)}}(),je=function(){var oe=(0,K.Z)((0,c.Z)().mark(function ne(){var b;return(0,c.Z)().wrap(function(ae){for(;;)switch(ae.prev=ae.next){case 0:return ae.next=2,j.getPayTemplateList();case 2:b=ae.sent,b.statusCode===200?M(b.data.data):f.default.error(b.errors||"\u83B7\u53D6\u83B7\u53D6\u652F\u4ED8\u65B9\u5F0F\u51FA\u9519");case 4:case"end":return ae.stop()}},ne)}));return function(){return oe.apply(this,arguments)}}(),Te=[{title:"\u4E3B\u952E",dataIndex:"id",tip:"key",hideInSearch:!0,hideInTable:!0},{title:"\u95E8\u5E97\u540D\u79F0",dataIndex:"name"},{title:"\u95E8\u5E97\u7F16\u7801",dataIndex:"code"},{title:"\u95E8\u5E97\u7C7B\u578B",dataIndex:"type",valueEnum:{0:{text:"\u673A\u6784"},1:{text:"\u914D\u9001\u4E2D\u5FC3"},2:{text:"\u76F4\u8425\u5E97"},3:{text:"\u52A0\u76DF\u5E97"}}},{title:"\u7535\u8BDD",dataIndex:"tel",hideInSearch:!0},{title:"\u6392\u5E8F",dataIndex:"sort",valueType:"digit",hideInSearch:!0},{title:"\u63CF\u8FF0",dataIndex:"remark",valueType:"textarea",hideInSearch:!0},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(ne,b){return[(0,e.jsx)("a",{onClick:function(){ue(b),ye(!0),Q.setFieldsValue(b)},children:"\u66F4\u65B0"},"config")]}}],Ue=(0,a.useState)([]),Ge=(0,u.Z)(Ue,2),Ke=Ge[0],Pe=Ge[1],be=(0,a.useState)(!1),Be=(0,u.Z)(be,2),De=Be[0],Ne=Be[1],_e=function(ne){var b=Q.getFieldsValue(!0);b.store_Loc="".concat(ne.point.lng.toFixed(10),",").concat(ne.point.lat.toFixed(10)),b.store_Addr=ne.address,Q.setFieldsValue(b),Ne(!1),f.default.success("\u95E8\u5E97\u5750\u6807\u8BBE\u7F6E\u6210\u529F\uFF01")};return(0,a.useEffect)(function(){t.storeConfig.id&&Pe([t.storeConfig.id]),we(),je()},[]),(0,e.jsxs)(e.Fragment,{children:[De&&(0,e.jsx)(Gt,{isShowBaiduMap:De,handleOk:_e,handleCancel:function(){return Ne(!1)}}),(0,e.jsx)(Ie.Z,{width:600,title:fe.id?"\u7F16\u8F91\u95E8\u5E97\u67B6\u6784":"\u65B0\u589E\u95E8\u5E97\u67B6\u6784",visible:z,footer:!1,onCancel:function(){return ye(!1)},children:(0,e.jsxs)(n.Z,{form:Q,layout:"horizontal",preserve:!1,labelCol:{span:4},onFinish:g,children:[(0,e.jsx)(n.Z.Item,{name:"id",hidden:!0,children:(0,e.jsx)(w.Z,{})}),(0,e.jsx)(n.Z.Item,{name:"code",hidden:!0,label:"\u95E8\u5E97\u7F16\u7801",children:(0,e.jsx)(w.Z,{placeholder:"\u8BF7\u8F93\u5165\u95E8\u5E97\u7F16\u7801"})}),(0,e.jsx)(n.Z.Item,{name:"name",label:"\u95E8\u5E97\u540D\u79F0",rules:[{required:!0,max:64}],children:(0,e.jsx)(w.Z,{placeholder:"\u8BF7\u8F93\u5165\u540D\u79F0"})}),(0,e.jsx)(n.Z.Item,{name:"pid",label:"\u6240\u5C5E\u673A\u6784",rules:[{required:!0}],children:(0,e.jsx)(yt.Z,{style:{width:"100%"},dropdownStyle:{maxHeight:400,overflow:"auto"},treeData:ce,placeholder:"\u8BF7\u9009\u62E9\u6240\u5C5E\u673A\u6784",treeDefaultExpandAll:!0})}),(0,e.jsx)(n.Z.Item,{name:"type",label:"\u95E8\u5E97\u7C7B\u578B",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u95E8\u5E97\u7C7B\u578B"}],children:(0,e.jsx)(h.Z,{placeholder:"\u8BF7\u9009\u62E9\u673A\u6784\u7C7B\u578B",children:(0,e.jsxs)(I,{children:[(0,e.jsx)(h.Z.Option,{value:2,children:"\u76F4\u8425\u5E97"}),(0,e.jsx)(h.Z.Option,{value:3,children:"\u52A0\u76DF\u5E97"})]})})}),(0,e.jsx)(n.Z.Item,{name:"payTemplateId",label:"\u652F\u4ED8\u6A21\u677F",children:(0,e.jsx)(h.Z,{placeholder:"\u8BF7\u9009\u62E9\u652F\u4ED8\u6A21\u677F",children:B==null?void 0:B.map(function(oe){return(0,e.jsx)(Z,{value:oe.id,children:oe.name},oe.id)})})}),(0,e.jsx)("div",{className:_().add_row_content,children:(0,e.jsx)(n.Z.Item,{label:"\u5E97\u94FA\u5750\u6807",name:"store_Loc",rules:[{required:!0,max:100,pattern:/^[-\+]?\d+(\.\d+)\,[-\+]?\d+(\.\d+)$/,message:"\u7ECF\u7EAC\u5EA6\u683C\u5F0F\u4E0D\u5BF9"}],children:(0,e.jsx)(w.Z,{style:{width:"55%"},placeholder:"104.070734,30.575041"})})}),(0,e.jsx)(n.Z.Item,{label:"\u5E97\u94FA\u5730\u5740",name:"store_Addr",rules:[{required:!0,max:100}],children:(0,e.jsx)(w.Z,{placeholder:"\u6210\u90FD\u5E02\u6B66\u4FAF\u533A\u6842\u6EAA\u8857\u9053\u73AF\u7403\u4E2D\u5FC3N5-9111C"})}),(0,e.jsx)(n.Z.Item,{name:"tel",label:"\u7535\u8BDD",rules:[{max:20}],children:(0,e.jsx)(w.Z,{placeholder:"\u8BF7\u8F93\u5165\u8054\u7CFB\u7535\u8BDD"})}),(0,e.jsx)(n.Z.Item,{name:"sort",label:"\u6392\u5E8F",children:(0,e.jsx)(nt.Z,{min:1,step:1,precision:0})}),(0,e.jsx)(n.Z.Item,{name:"remark",label:"\u5907\u6CE8",children:(0,e.jsx)(X,{rows:4,rules:[{max:500}]})}),(0,e.jsx)(n.Z.Item,{children:(0,e.jsx)(O.Z,{type:"primary",htmlType:"submit",children:"\u786E\u5B9A"})})]})}),(0,e.jsx)(Ot.Z,{search:!1,style:{width:"100%"},headerTitle:"\u95E8\u5E97\u5217\u8868",actionRef:U,rowKey:"id",rowSelection:{type:"radio",onChange:function(ne,b){Pe(ne),t.onSelectedChange("storeConfig",b[0])},selectedRowKeys:Ke},request:function(){var oe=(0,K.Z)((0,c.Z)().mark(function ne(b){var Ze,ae,Se;return(0,c.Z)().wrap(function(Ee){for(;;)switch(Ee.prev=Ee.next){case 0:return Ze=[],ae=0,Ee.next=4,j.getpage(b).then(function(Fe){Ze=Fe.data.data,ae=Fe.data.total});case 4:return Se=Ze.filter(function(Fe){return Fe.type===2||Fe.type===3}),Ee.abrupt("return",{data:Se,success:!0,total:ae});case 6:case"end":return Ee.stop()}},ne)}));return function(ne){return oe.apply(this,arguments)}}(),columns:Te,pagination:{current:Y,pageSize:ee,onChange:function(ne,b){me(ne),L(b)}},toolBarRender:function(){return[(0,e.jsx)(O.Z,{icon:(0,e.jsx)(et.Z,{}),type:"primary",onClick:function(){Q.resetFields(),ue({id:""}),ye(!0)},children:"\u65B0\u5EFA"},"button")]}})]})},Rt=Pt,qe=d(16894),Ut=d(87246),Ft=d.n(Ut),jt="message",Nt=function(t){var xe=h.Z.Option,se=h.Z.OptGroup,Y=n.Z.useForm(),me=(0,u.Z)(Y,1),V=me[0],R=n.Z.useForm(),ee=(0,u.Z)(R,1),L=ee[0],X=(0,a.useState)([]),Z=(0,u.Z)(X,2),I=Z[0],$=Z[1],te=(0,a.useState)([]),Q=(0,u.Z)(te,2),re=Q[0],ge=Q[1],ce=(0,a.useState)({}),le=(0,u.Z)(ce,2),H=le[0],pe=le[1],B=(0,a.useState)([]),M=(0,u.Z)(B,2),g=M[0],T=M[1],q=(0,a.useState)([]),fe=(0,u.Z)(q,2),ue=fe[0],J=fe[1],A=(0,a.useState)(!1),z=(0,u.Z)(A,2),ye=z[0],U=z[1],we=(0,a.useState)({id:""}),je=(0,u.Z)(we,2),Te=je[0],Ue=je[1],Ge=(0,a.useState)(!1),Ke=(0,u.Z)(Ge,2),Pe=Ke[0],be=Ke[1],Be=function(){var F=(0,K.Z)((0,c.Z)().mark(function S(r){var i,s;return(0,c.Z)().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:if(f.default.loading("\u6B63\u5728\u914D\u7F6E",jt),!r.id){m.next=8;break}return m.next=4,j.UpdateDeviceInfo(r);case 4:i=m.sent,i.succeeded?(f.default.success("\u4FEE\u6539\u6210\u529F"),be(!1),b.current.reload()):f.default.error(i.errors||"\u4FEE\u6539\u51FA\u9519"),m.next=12;break;case 8:return m.next=10,j.AddDeviceInfo(r);case 10:s=m.sent,s.succeeded?(f.default.success("\u6DFB\u52A0\u6210\u529F"),b.current.reload(),be(!1)):f.default.error(s.errors||"\u6DFB\u52A0\u6210\u51FA\u9519");case 12:f.default.destroy(jt),b.current.reload();case 14:case"end":return m.stop()}},S)}));return function(r){return F.apply(this,arguments)}}(),De=function(){var F=(0,K.Z)((0,c.Z)().mark(function S(){var r;return(0,c.Z)().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,j.GetDicList("DeviceClientType");case 2:r=s.sent,r.statusCode===200?(r.data.forEach(function(x){x.code=x.code,x.value=x.code}),$(r.data)):f.default.error(r.errors||"\u83B7\u53D6\u8BBE\u5907\u7C7B\u578B\u51FA\u9519");case 4:case"end":return s.stop()}},S)}));return function(){return F.apply(this,arguments)}}(),Ne=function(){var F=(0,K.Z)((0,c.Z)().mark(function S(){var r;return(0,c.Z)().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,j.getOrgTree();case 2:r=s.sent,r.statusCode===200?T(r.data):f.default.error(r.errors||"\u83B7\u53D6\u7EC4\u7EC7\u67B6\u6784\u51FA\u9519");case 4:case"end":return s.stop()}},S)}));return function(){return F.apply(this,arguments)}}(),_e=function(){var F=(0,K.Z)((0,c.Z)().mark(function S(){var r,i;return(0,c.Z)().wrap(function(x){for(;;)switch(x.prev=x.next){case 0:return x.next=2,j.GetDeviceType();case 2:r=x.sent,r.statusCode===200?(i={},r.data.forEach(function(m){i[m.id]={text:m.name}}),pe(i),ge(r.data)):f.default.error(r.errors||"\u83B7\u53D6\u8BBE\u5907\u5206\u7C7B\u51FA\u9519");case 4:case"end":return x.stop()}},S)}));return function(){return F.apply(this,arguments)}}(),oe=function(){var F=(0,K.Z)((0,c.Z)().mark(function S(){var r;return(0,c.Z)().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,j.GetDeviceVersions();case 2:r=s.sent,r.statusCode===200?J(r.data):f.default.error(r.errors||"\u83B7\u53D6\u8BBE\u5907\u7248\u672C\u51FA\u9519");case 4:case"end":return s.stop()}},S)}));return function(){return F.apply(this,arguments)}}(),ne=function(){var F=(0,K.Z)((0,c.Z)().mark(function S(r){var i;return(0,c.Z)().wrap(function(x){for(;;)switch(x.prev=x.next){case 0:return x.next=2,j.AddDeviceType(r);case 2:i=x.sent,i.data?(f.default.success("\u8BBE\u5907\u5206\u7C7B\u6DFB\u52A0\u6210\u529F\uFF01"),U(!1),_e()):f.default.error(i.errors||"\u6DFB\u52A0\u8BBE\u5907\u5206\u7C7B\u51FA\u9519");case 4:case"end":return x.stop()}},S)}));return function(r){return F.apply(this,arguments)}}(),b=(0,a.useRef)(),Ze=(0,a.useState)([]),ae=(0,u.Z)(Ze,2),Se=ae[0],Ce=ae[1],Ee=[{title:"\u4E3B\u952E",dataIndex:"id",hideInSearch:!0,hideInTable:!0,tip:"\u89C4\u5219\u540D\u79F0\u662F\u552F\u4E00\u7684 key"},{title:"\u8BBE\u5907\u540D\u79F0",dataIndex:"deviceName",valueType:"textarea"},{title:"\u6240\u5C5E\u95E8\u5E97",dataIndex:"orgId",hideInSearch:!0,render:function(S,r){return(0,e.jsx)("div",{children:t.storeConfig.name})}},{title:"\u8BBE\u5907\u7C7B\u578B",dataIndex:"deviceTypeKey",valueEnum:I,hideInSearch:!0},{title:"\u8BBE\u5907\u5206\u7C7B",dataIndex:"deviceTypeId",valueEnum:H},{title:"\u72B6\u6001",dataIndex:"status",valueEnum:{0:{text:"\u6B63\u5E38",status:"Processing"},1:{text:"\u505C\u7528",status:"Success"}},hideInSearch:!0},{title:"\u8BBE\u5907\u5730\u5740",dataIndex:"deviceAddr",search:!1,valueType:"textarea"},{title:"\u5750\u6807",dataIndex:"deviceLoc",valueType:"textarea",search:!1},{title:"\u8BBE\u5907\u901A\u9053\u6570\u91CF",dataIndex:"materialQuantity",valueType:"textarea",search:!1},{title:"\u8BBE\u5907\u552F\u4E00key",dataIndex:"autoKey",search:!1},{title:"\u5F52\u5C5E\u95E8\u5E97\u552F\u4E00key",dataIndex:"orgKey",search:!1},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(S,r){return[(0,e.jsx)("a",{onClick:function(){Ue(r),be(!0),L.setFieldsValue(r)},children:"\u66F4\u65B0"},"config")]}}],Fe=(0,a.useState)(0),ze=(0,u.Z)(Fe,2),Ve=ze[0],Me=ze[1],Je=(0,a.useState)(20),Qe=(0,u.Z)(Je,2),Le=Qe[0],Oe=Qe[1];return(0,a.useEffect)(function(){var F;(F=t.deviceConfig)!==null&&F!==void 0&&F.id&&Ce([t.deviceConfig.id]),Ne(),_e(),De(),oe()},[]),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(qe.ZP,{style:{width:"100%"},headerTitle:"\u8BBE\u5907\u4FE1\u606F",actionRef:b,rowKey:"id",search:!1,pagination:{current:Ve,pageSize:Le,onChange:function(S,r){Me(S),Oe(r)}},request:function(){var F=(0,K.Z)((0,c.Z)().mark(function S(r){var i,s;return(0,c.Z)().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:return i=[],s=0,m.next=4,j.GetDeviceInfoPage(r).then(function(ie){i=ie.data.data,s=ie.data.total});case 4:return i=i.filter(function(ie){return ie.orgId===t.storeConfig.id}),m.abrupt("return",{data:i,success:!0,total:s});case 6:case"end":return m.stop()}},S)}));return function(S){return F.apply(this,arguments)}}(),columns:Ee,rowSelection:{type:"radio",onChange:function(S,r){Ce(S),t.onSelectedChange("deviceConfig",r[0])},selectedRowKeys:Se},toolBarRender:function(){return[(0,e.jsx)(O.Z,{icon:(0,e.jsx)(et.Z,{}),type:"primary",onClick:function(){L.resetFields();var r=L.getFieldsValue();r.orgId=t.storeConfig.id,r.deviceLoc=t.storeConfig.store_Loc,r.deviceAddr=t.storeConfig.store_Addr,L.setFieldsValue(r),Ue({id:""}),be(!0)},children:"\u65B0\u5EFA"},"button")]}}),(0,e.jsx)(Ie.Z,{width:600,title:Te.id?"\u7F16\u8F91\u8BBE\u5907":"\u65B0\u589E\u8BBE\u5907",visible:Pe,footer:!1,onCancel:function(){return be(!1)},children:(0,e.jsxs)(n.Z,{layout:"Horizontal",labelCol:{span:6},preserve:!1,form:L,onFinish:Be,children:[(0,e.jsx)(n.Z.Item,{name:"id",hidden:!0,children:(0,e.jsx)(w.Z,{})}),(0,e.jsx)(n.Z.Item,{label:"\u8BBE\u5907\u540D\u79F0",name:"deviceName",rules:[{required:!0,max:50}],children:(0,e.jsx)(w.Z,{})}),(0,e.jsx)(n.Z.Item,{label:"\u8BBE\u5907\u7C7B\u578B",name:"deviceTypeKey",rules:[{required:!0}],children:(0,e.jsx)(h.Z,{children:I.map(function(F,S){return(0,e.jsx)(h.Z.Option,{index:S,value:F.code,children:F.value},F.code)})})}),(0,e.jsx)(n.Z.Item,{name:"orgId",label:"\u5F52\u5C5E\u95E8\u5E97",rules:[{required:!0}],children:(0,e.jsx)(yt.Z,{disabled:!0,style:{width:"100%"},dropdownStyle:{maxHeight:400,overflow:"auto"},treeData:g,placeholder:"\u5F52\u5C5E\u95E8\u5E97",treeDefaultExpandAll:!0})}),(0,e.jsxs)("div",{className:Ft().add_row_content,children:[(0,e.jsx)(n.Z.Item,{label:"\u8BBE\u5907\u5206\u7C7B",name:"deviceTypeId",rules:[{required:!0}],children:(0,e.jsx)(h.Z,{style:{width:"75%"},children:re.map(function(F,S){return(0,e.jsx)(h.Z.Option,{index:S,value:F.id,children:F.name},F.id)})})}),(0,e.jsx)(O.Z,{type:"primary",className:Ft().add_row_btn,onClick:function(){U(!0),V.resetFields()},children:"\u6DFB\u52A0\u5206\u7C7B"})]}),(0,e.jsx)(n.Z.Item,{noStyle:!0,shouldUpdate:function(S,r){return S.deviceTypeKey!==r.deviceTypeKey},children:function(S){var r=S.getFieldValue;return r("deviceTypeKey")==="TMC"?(0,e.jsx)(n.Z.Item,{name:"deviceVersion",label:"\u8BBE\u5907\u7248\u672C",initialValue:"WorryFreeEdition",children:(0,e.jsx)(h.Z,{children:ue.map(function(i,s){return(0,e.jsx)(h.Z.Option,{index:s,value:i.code,children:i.name},i.code)})})}):null}}),(0,e.jsx)(n.Z.Item,{label:"\u8BBE\u5907\u5750\u6807",name:"deviceLoc",children:(0,e.jsx)(w.Z,{placeholder:"104.070734,30.575041"})}),(0,e.jsx)(n.Z.Item,{label:"\u72B6\u6001",name:"status",children:(0,e.jsx)(h.Z,{placeholder:"\u8BF7\u9009\u62E9\u72B6\u6001",defaultValue:0,children:(0,e.jsxs)(se,{children:[(0,e.jsx)(h.Z.Option,{value:0,children:"\u6B63\u5E38"}),(0,e.jsx)(h.Z.Option,{value:1,children:"\u505C\u7528"})]})})}),(0,e.jsx)(n.Z.Item,{noStyle:!0,shouldUpdate:function(S,r){return S.deviceTypeKey!==r.deviceTypeKey},children:function(S){var r=S.getFieldValue;return r("deviceTypeKey")==="TMC"?(0,e.jsx)(n.Z.Item,{label:"\u8BBE\u5907\u901A\u9053\u6570\u91CF",name:"materialQuantity",children:(0,e.jsx)(nt.Z,{style:{width:"100%"}})}):null}}),(0,e.jsx)(n.Z.Item,{label:"\u8BBE\u5907\u8BE6\u7EC6\u5730\u5740",name:"deviceAddr",children:(0,e.jsx)(w.Z,{placeholder:"\u6210\u90FD\u5E02\u6B66\u4FAF\u533A\u6842\u6EAA\u8857\u9053\u73AF\u7403\u4E2D\u5FC3N5-9111C"})}),(0,e.jsx)(n.Z.Item,{children:(0,e.jsx)(O.Z,{type:"primary",htmlType:"submit",children:"\u786E\u5B9A"})})]})}),(0,e.jsx)(Ie.Z,{title:"\u6DFB\u52A0\u8BBE\u5907\u5206\u7C7B",visible:ye,footer:!1,onCancel:function(){return U(!1)},children:(0,e.jsxs)(n.Z,{layout:"vertical",onFinish:ne,form:V,children:[(0,e.jsx)(n.Z.Item,{name:"id",hidden:!0,children:(0,e.jsx)(w.Z,{})}),(0,e.jsx)(n.Z.Item,{label:"\u7C7B\u578B\u540D\u79F0",name:"name",rules:[{required:!0,max:50}],children:(0,e.jsx)(w.Z,{})}),(0,e.jsx)(n.Z.Item,{children:(0,e.jsx)(O.Z,{type:"primary",htmlType:"submit",children:"\u4FDD\u5B58"})})]})})]})},_t=Nt,tt="message",Lt=function(t){var xe=n.Z.useForm(),se=(0,u.Z)(xe,1),Y=se[0],me=function(){var J=(0,K.Z)((0,c.Z)().mark(function A(z){return(0,c.Z)().wrap(function(U){for(;;)switch(U.prev=U.next){case 0:if(!z.id){U.next=13;break}return U.prev=1,f.default.loading("\u6B63\u5728\u4FEE\u6539",tt),U.next=5,j.UpdateFoodMenu(z).then(function(we){f.default.destroy(tt),we.data?(f.default.success("\u4FEE\u6539\u6210\u529F"),$(!1),te.current.reload()):f.default.error("\u4FEE\u6539\u5931\u8D25")});case 5:U.next=11;break;case 7:U.prev=7,U.t0=U.catch(1),f.default.destroy(tt),f.default.error("\u4FEE\u6539\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01");case 11:U.next=23;break;case 13:return U.prev=13,f.default.loading("\u6B63\u5728\u6DFB\u52A0",tt),U.next=17,j.AddFoodMenu(z).then(function(we){f.default.destroy(tt),we.data?(f.default.success("\u6DFB\u52A0\u6210\u529F"),$(!1),te.current.reload()):f.default.error("\u6DFB\u52A0\u5931\u8D25")});case 17:U.next=23;break;case 19:U.prev=19,U.t1=U.catch(13),f.default.destroy(tt),f.default.error("\u6DFB\u52A0\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01");case 23:case"end":return U.stop()}},A,null,[[1,7],[13,19]])}));return function(z){return J.apply(this,arguments)}}(),V=(0,a.useState)({id:""}),R=(0,u.Z)(V,2),ee=R[0],L=R[1],X=(0,a.useState)(!1),Z=(0,u.Z)(X,2),I=Z[0],$=Z[1],te=(0,a.useRef)(),Q=(0,a.useState)(1),re=(0,u.Z)(Q,2),ge=re[0],ce=re[1],le=(0,a.useState)(10),H=(0,u.Z)(le,2),pe=H[0],B=H[1],M=(0,a.useState)([]),g=(0,u.Z)(M,2),T=g[0],q=g[1],fe=[{title:"\u4E3B\u952E",dataIndex:"id",hideInSearch:!0,hideInTable:!0,tip:"\u89C4\u5219\u540D\u79F0\u662F\u552F\u4E00\u7684 key"},{title:"\u83DC\u8C31\u7F16\u7801",dataIndex:"code",valueType:"textarea"},{title:"\u83DC\u8C31\u540D\u79F0",dataIndex:"name",valueType:"textarea"},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(A,z){return[(0,e.jsx)("a",{onClick:function(){L(z),$(!0),Y.setFieldsValue(z)},children:"\u66F4\u65B0"},"config")]}}],ue=function(){if(t.foodMenuConfig.length>0){var A=[];t.foodMenuConfig.forEach(function(z){A.push(z.id)}),q(A)}};return(0,a.useEffect)(function(){ue()},[]),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(qe.ZP,{style:{width:"100%"},headerTitle:"\u83DC\u8C31\u5217\u8868",actionRef:te,rowKey:"id",search:!1,pagination:{current:ge,pageSize:pe,onChange:function(A,z){ce(A),B(z)}},request:function(){var J=(0,K.Z)((0,c.Z)().mark(function A(z){var ye,U;return(0,c.Z)().wrap(function(je){for(;;)switch(je.prev=je.next){case 0:return ye=[],U=0,je.next=4,j.GetFoodMenuInfoPage(z).then(function(Te){ye=Te.data.data,U=Te.data.total});case 4:return je.abrupt("return",{data:ye,success:!0,total:U});case 5:case"end":return je.stop()}},A)}));return function(A){return J.apply(this,arguments)}}(),columns:fe,rowSelection:{type:"checkbox",onChange:function(A,z){q(A),t.onSelectedChange("foodMenuConfig",z)},selectedRowKeys:T},toolBarRender:function(){return[(0,e.jsx)(O.Z,{icon:(0,e.jsx)(et.Z,{}),type:"primary",onClick:function(){Y.resetFields();var z=Y.getFieldsValue();z.code=(0,Xe.x0)().substring(0,20),Y.setFieldsValue(z),L({id:""}),$(!0)},children:"\u65B0\u5EFA"},"button")]}}),(0,e.jsx)(Ie.Z,{width:600,title:ee.id?"\u7F16\u8F91\u83DC\u8C31":"\u65B0\u589E\u83DC\u8C31",visible:I,footer:!1,onCancel:function(){return $(!1)},children:(0,e.jsxs)(n.Z,{form:Y,layout:"Horizontal",preserve:!1,onFinish:me,style:{width:"100%"},children:[(0,e.jsx)(n.Z.Item,{name:"id",hidden:!0,children:(0,e.jsx)(w.Z,{})}),(0,e.jsx)(n.Z.Item,{label:"\u83DC\u8C31\u7F16\u7801",name:"code",rules:[{required:!0,max:50}],children:(0,e.jsx)(w.Z,{disabled:!0})}),(0,e.jsx)(n.Z.Item,{label:"\u83DC\u8C31\u540D\u79F0",name:"name",rules:[{required:!0,max:20}],children:(0,e.jsx)(w.Z,{})}),(0,e.jsx)(n.Z.Item,{children:(0,e.jsx)(O.Z,{type:"primary",htmlType:"submit",children:"\u786E\u5B9A"})})]})})]})},$t=Lt,kn=d(57338),mt=d(273),An=d(66456),pt=d(64411),Gn=d(77576),Bt=d(12028),Pn=d(43185),Wt=d(93009),Rn=d(74379),Re=d(38648),Kt=d(84391),zt=d(9669),Yt=d.n(zt),wt="message",Vt=function(t){var xe=h.Z.Option,se=h.Z.OptGroup,Y=(0,a.useState)(),me=(0,u.Z)(Y,2),V=me[0],R=me[1],ee=(0,a.useState)([]),L=(0,u.Z)(ee,2),X=L[0],Z=L[1],I=(0,a.useState)([]),$=(0,u.Z)(I,2),te=$[0],Q=$[1],re=(0,a.useState)([]),ge=(0,u.Z)(re,2),ce=ge[0],le=ge[1],H=n.Z.useForm(),pe=(0,u.Z)(H,1),B=pe[0],M=(0,a.useState)(!1),g=(0,u.Z)(M,2),T=g[0],q=g[1],fe=(0,a.useState)(!1),ue=(0,u.Z)(fe,2),J=ue[0],A=ue[1],z=n.Z.useForm(),ye=(0,u.Z)(z,1),U=ye[0],we=(0,a.useState)(!1),je=(0,u.Z)(we,2),Te=je[0],Ue=je[1],Ge=(0,a.useState)(0),Ke=(0,u.Z)(Ge,2),Pe=Ke[0],be=Ke[1],Be=(0,a.useState)(10),De=(0,u.Z)(Be,2),Ne=De[0],_e=De[1],oe=function(){var l=(0,K.Z)((0,c.Z)().mark(function o(){var C;return(0,c.Z)().wrap(function(E){for(;;)switch(E.prev=E.next){case 0:return E.next=2,j.GetUnitList({current:1,pageSize:200});case 2:C=E.sent,C.statusCode===200&&Z(C.data.data);case 4:case"end":return E.stop()}},o)}));return function(){return l.apply(this,arguments)}}(),ne=function(){var l=(0,K.Z)((0,c.Z)().mark(function o(){var C;return(0,c.Z)().wrap(function(E){for(;;)switch(E.prev=E.next){case 0:return E.next=2,j.GetGoodsbigType({current:1,status:0,pageSize:1e3});case 2:C=E.sent,C.statusCode===200&&Q(C.data.data);case 4:case"end":return E.stop()}},o)}));return function(){return l.apply(this,arguments)}}(),b=function(){var l=(0,K.Z)((0,c.Z)().mark(function o(){var C;return(0,c.Z)().wrap(function(E){for(;;)switch(E.prev=E.next){case 0:return E.next=2,j.GetGoodsSmallType({current:1,status:0,pageSize:1e3});case 2:C=E.sent,C.statusCode===200&&le(C.data.data);case 4:case"end":return E.stop()}},o)}));return function(){return l.apply(this,arguments)}}(),Ze={name:"file",showUploadList:!1,multiple:!1,accept:".png, .jpg, .jpeg, .gif",headers:{"Content-Type":"application/octet-stream"},customRequest:function(o){var C=o.action,D=o.file,E=o.headers,he=o.onError,de=o.onProgress,Ye=o.onSuccess,vn=o.withCredentials;console.log("\u4E0A\u4F20\u56FE\u7247",D);var gn=D.name.lastIndexOf("."),xn=D.name.substr(gn+1),Tt=null;return j.GetCosRequestURL({directory:"goods",fileExtension:xn,method:"PUT"}).then(function(ht){C=ht.allUrl;var bt=new FileReader;bt.readAsArrayBuffer(D),bt.onload=function(Zn){Tt=Zn.target.result,Yt().put(C,Tt,{withCredentials:vn,headers:E,onUploadProgress:function(st){var Cn=st.total,yn=st.loaded;de({percent:Math.round(yn/Cn*100).toFixed(2)},D)}}).then(function(xt){if(xt.status==200||xt.statusText=="OK"){R(ht.seeUrl);var st=B.getFieldsValue();st.imgUrl=ht.seeUrl,B.setFieldsValue(st)}}).catch(he)}}),{abort:function(){console.log("upload progress is aborted.")}}}},ae=function(){var l=(0,K.Z)((0,c.Z)().mark(function o(C){var D,E;return(0,c.Z)().wrap(function(de){for(;;)switch(de.prev=de.next){case 0:if(delete C.imgUrl1,f.default.loading("\u6B63\u5728\u914D\u7F6E",wt),!C.id){de.next=9;break}return de.next=5,j.UpdateGoods(C);case 5:D=de.sent,D.succeeded?(f.default.success("\u4FEE\u6539\u6210\u529F"),Le(!1),Oe.current.reload()):f.default.error(D.errors||"\u4FEE\u6539\u51FA\u9519"),de.next=13;break;case 9:return de.next=11,j.AddGoods(C);case 11:E=de.sent,E.data?(f.default.success("\u6DFB\u52A0\u6210\u529F"),Oe.current.reload(),Le(!1)):f.default.error(E.errors||"\u6DFB\u52A0\u6210\u51FA\u9519");case 13:f.default.destroy(wt);case 14:case"end":return de.stop()}},o)}));return function(C){return l.apply(this,arguments)}}(),Se=[{title:"\u4E3B\u952E",dataIndex:"id",hideInTable:!0,hideInSearch:!0},{title:"\u56FE\u7247\u5730\u5740",dataIndex:"imgUrl",hideInTable:!0,hideInSearch:!0},{title:"\u7F16\u7801",dataIndex:"code",valueType:"textarea"},{title:"\u540D\u79F0",dataIndex:"name",valueType:"textarea"},{title:"\u57FA\u7840\u4EF7\u683C",dataIndex:"price",hideInForm:!0,renderText:function(o){return"".concat(o,"\xA5")},hideInSearch:!0},{title:"\u4F1A\u5458\u4EF7",dataIndex:"vipPrice",hideInForm:!0,renderText:function(o){return"".concat(o,"\xA5")},hideInSearch:!0},{title:"\u5546\u54C1\u5C0F\u7C7B",dataIndex:"goodsTypeName",hideInForm:!0,hideInSearch:!0},{title:"\u5546\u54C1\u7C7B\u578B",dataIndex:"goodsTypeId",hideInForm:!0,hideInTable:!0},{title:"\u5546\u54C1\u5C5E\u6027",dataIndex:"goodsAttribute",hideInForm:!0,valueEnum:{0:{text:"\u5355\u54C1"},1:{text:"\u5957\u9910"}}},{title:"\u72B6\u6001",dataIndex:"status",hideInForm:!0,valueEnum:{0:{text:"\u6B63\u5E38",status:"Processing"},1:{text:"\u505C\u7528",status:"Error"},2:{text:"\u5220\u9664",status:"Error"}}},{title:"\u521B\u5EFA\u65F6\u95F4",dataIndex:"createAt",valueType:"date"},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(o,C){return[(0,e.jsx)("a",{onClick:function(){Ve(C),Le(!0),B.setFieldsValue(C)},children:"\u66F4\u65B0"},"config")]}}],Ce=[{title:"\u540D\u79F0",dataIndex:"name",valueType:"textarea"}],Ee=(0,a.useState)({id:""}),Fe=(0,u.Z)(Ee,2),ze=Fe[0],Ve=Fe[1],Me=(0,a.useState)(!1),Je=(0,u.Z)(Me,2),Qe=Je[0],Le=Je[1],Oe=(0,a.useRef)(),F=(0,a.useState)([]),S=(0,u.Z)(F,2),r=S[0],i=S[1],s=(0,a.useState)([]),x=(0,u.Z)(s,2),m=x[0],ie=x[1],ve=(0,a.useState)(!1),ke=(0,u.Z)(ve,2),dt=ke[0],ct=ke[1],ut=(0,a.useState)([]),ft=(0,u.Z)(ut,2),gt=ft[0],it=ft[1],G=(0,a.useState)(t.foodMenuConfig[0].id),p=(0,u.Z)(G,2),v=p[0],W=p[1],N=[{title:"\u540D\u79F0",dataIndex:"name",valueType:"textarea"},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(o,C){return[(0,e.jsx)("a",{onClick:function(){t.onAddGoodsToFoodMenu(v,C,!1)},children:"\u79FB\u51FA\u83DC\u8C31"})]}}],P=function(){if(m.length===0){Re.default.error({message:"\u5546\u54C1\u6DFB\u52A0\u5230\u83DC\u8C31\u51FA\u9519",description:"\u8BF7\u9009\u62E9\u5546\u54C1",placement:"topRight"});return}t.onAddGoodsToFoodMenu(v,m),i([]),ie([])};return(0,a.useEffect)(function(){oe(),ne(),b()},[]),(0,a.useEffect)(function(){var l=t.foodMenuConfig.find(function(o){return o.id===v});it(l?l.goodsConfig:[])},[t.foodMenuConfig,v]),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(Ie.Z,{width:600,title:ze.id?"\u7F16\u8F91\u5546\u54C1":"\u65B0\u589E\u5546\u54C1",visible:Qe,footer:!1,onCancel:function(){return Le(!1)},children:(0,e.jsxs)(n.Z,{labelCol:{span:4},layout:"horizontal",preserve:!1,onFinish:ae,form:B,children:[(0,e.jsx)(n.Z.Item,{name:"id",hidden:!0,children:(0,e.jsx)(w.Z,{})}),(0,e.jsx)(n.Z.Item,{name:"code",label:"\u5546\u54C1\u7F16\u7801",hidden:!0,children:(0,e.jsx)(w.Z,{disabled:!0})}),(0,e.jsx)(n.Z.Item,{name:"name",label:"\u5546\u54C1\u540D\u79F0",rules:[{required:!0}],children:(0,e.jsx)(w.Z,{})}),(0,e.jsxs)("div",{className:_().add_row_content,children:[(0,e.jsx)(n.Z.Item,{name:"goodsUintId",label:"\u5546\u54C1\u5355\u4F4D",rules:[{required:!0}],children:(0,e.jsx)(h.Z,{style:{width:"75%"},children:X.map(function(l,o){return(0,e.jsx)(h.Z.Option,{index:o,value:l.id,children:l.name},l.id)})})}),(0,e.jsx)(O.Z,{type:"primary",className:_().add_row_btn,onClick:function(){return q(!0)},children:"\u6DFB\u52A0\u5355\u4F4D"})]}),(0,e.jsxs)("div",{className:_().add_row_content,children:[(0,e.jsx)(n.Z.Item,{name:"parentTypeID",label:"\u5546\u54C1\u5927\u7C7B",rules:[{required:!0}],children:(0,e.jsx)(h.Z,{style:{width:"75%"},children:te.map(function(l,o){return(0,e.jsx)(h.Z.Option,{index:o,value:l.id,children:l.name},l.id)})})}),(0,e.jsx)(O.Z,{type:"primary",className:_().add_row_btn,onClick:function(){return A(!0)},children:"\u6DFB\u52A0\u5927\u7C7B"})]}),(0,e.jsxs)("div",{className:_().add_row_content,children:[(0,e.jsx)(n.Z.Item,{name:"goodsTypeId",label:"\u5546\u54C1\u5C0F\u7C7B",rules:[{required:!0}],children:(0,e.jsx)(h.Z,{style:{width:"75%"},children:ce.map(function(l,o){return(0,e.jsx)(h.Z.Option,{index:o,value:l.id,children:l.goodsType_Name},l.id)})})}),(0,e.jsx)(O.Z,{type:"primary",className:_().add_row_btn,onClick:function(){return Ue(!0)},children:"\u6DFB\u52A0\u5C0F\u7C7B"})]}),(0,e.jsx)(n.Z.Item,{name:"price",label:"\u5546\u54C1\u4EF7\u683C",rules:[{required:!0}],children:(0,e.jsx)(nt.Z,{placeholder:"\u4EF7\u683C",min:0,style:{width:"100%"}})}),(0,e.jsx)(n.Z.Item,{name:"vipPrice",label:"\u4F1A\u5458\u4EF7\u683C",children:(0,e.jsx)(nt.Z,{placeholder:"\u4F1A\u5458\u4EF7",min:0,style:{width:"100%"}})}),(0,e.jsx)(n.Z.Item,{name:"goodsAttribute",label:"\u5546\u54C1\u5C5E\u6027",defaultValue:0,rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u5546\u54C1\u5C5E\u6027"}],children:(0,e.jsx)(h.Z,{placeholder:"\u8BF7\u9009\u62E9\u5546\u54C1\u5C5E\u6027",children:(0,e.jsxs)(se,{children:[(0,e.jsx)(h.Z.Option,{value:0,children:"\u5355\u54C1"}),(0,e.jsx)(h.Z.Option,{value:1,children:"\u5957\u9910"})]})})}),(0,e.jsx)(n.Z.Item,{name:"status",label:"\u72B6\u6001",defaultValue:0,rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u72B6\u6001"}],children:(0,e.jsx)(h.Z,{placeholder:"\u8BF7\u9009\u62E9\u72B6\u6001",children:(0,e.jsxs)(se,{children:[(0,e.jsx)(h.Z.Option,{value:0,children:"\u6B63\u5E38"}),(0,e.jsx)(h.Z.Option,{value:1,children:"\u505C\u7528"})]})})}),(0,e.jsx)(n.Z.Item,{name:"remark",label:"\u5907\u6CE8",children:(0,e.jsx)(w.Z,{})}),(0,e.jsx)(n.Z.Item,{name:"imgUrl",hidden:!0,children:(0,e.jsx)(w.Z,{})}),(0,e.jsx)(n.Z.Item,{name:"imgUrl1",label:"\u5546\u54C1\u56FE\u7247\u5730\u5740",children:(0,e.jsx)(Wt.Z,(0,Ae.Z)((0,Ae.Z)({},Ze),{},{children:ze.imgUrl?(0,e.jsx)("img",{src:ze.imgUrl,alt:"avatar",style:{width:"100%"}}):(0,e.jsx)(O.Z,{icon:(0,e.jsx)(Kt.Z,{}),children:"\u4E0A\u4F20"})}))}),(0,e.jsx)(n.Z.Item,{label:"\u662F\u5426\u79F0\u91CD",name:"isWeigh",valuePropName:"checked",initialValue:"false",children:(0,e.jsx)(Bt.Z,{checkedChildren:"\u662F",unCheckedChildren:"\u5426",defaultChecked:"false"})}),(0,e.jsx)(n.Z.Item,{children:(0,e.jsx)(O.Z,{type:"primary",htmlType:"submit",children:"\u786E\u5B9A"})})]})}),(0,e.jsx)(qe.ZP,{actionRef:Oe,style:{width:"100%"},headerTitle:"\u5546\u54C1\u5217\u8868",rowKey:"id",search:{labelWidth:120},pagination:{current:Pe,pageSize:Ne,onChange:function(o,C){be(o),_e(C)}},request:function(){var l=(0,K.Z)((0,c.Z)().mark(function o(C){var D,E;return(0,c.Z)().wrap(function(de){for(;;)switch(de.prev=de.next){case 0:return D=[],E=0,de.next=4,j.GetgoodsList(C).then(function(Ye){D=Ye.data.data,E=Ye.data.total});case 4:return de.abrupt("return",{data:D,success:!0,total:E});case 5:case"end":return de.stop()}},o)}));return function(o){return l.apply(this,arguments)}}(),columns:Se,toolBarRender:function(){return[(0,e.jsx)(O.Z,{icon:(0,e.jsx)(et.Z,{}),type:"primary",onClick:function(){B.resetFields(),Ve({id:""}),Le(!0)},children:"\u65B0\u5EFA"},"button"),(0,e.jsx)(O.Z,{type:"primary",onClick:function(){ct(!0)},children:"\u5173\u8054\u83DC\u8C31"},"button")]}}),(0,e.jsx)(Ie.Z,{title:"\u65B0\u5EFA\u5546\u54C1\u5355\u4F4D",width:640,visible:T,bodyStyle:{padding:"32px 40px 48px"},footer:null,onCancel:function(){q(!1)},destroyOnClose:!0,maskClosable:!1,children:(0,e.jsxs)(n.Z,{layout:"vertical",preserve:!1,onFinish:function(){var l=(0,K.Z)((0,c.Z)().mark(function o(C){var D;return(0,c.Z)().wrap(function(he){for(;;)switch(he.prev=he.next){case 0:return he.next=2,j.CreateUnit(C);case 2:D=he.sent,D.data?(f.default.success("\u5546\u54C1\u5355\u4F4D\u6DFB\u52A0\u6210\u529F"),q(!1),oe()):f.default.error(D.errors||"\u5546\u54C1\u5355\u4F4D\u6DFB\u52A0\u5931\u8D25");case 4:case"end":return he.stop()}},o)}));return function(o){return l.apply(this,arguments)}}(),children:[(0,e.jsx)(n.Z.Item,{name:"id",hidden:!0,children:(0,e.jsx)(w.Z,{})}),(0,e.jsx)(n.Z.Item,{name:"name",label:"\u5546\u54C1\u5355\u4F4D\u540D\u79F0",rules:[{required:!0,max:64}],children:(0,e.jsx)(w.Z,{placeholder:"\u5546\u54C1\u5355\u4F4D\u540D\u79F0"})}),(0,e.jsx)(n.Z.Item,{name:"status",label:"\u72B6\u6001",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u72B6\u6001"}],children:(0,e.jsx)(h.Z,{placeholder:"\u8BF7\u9009\u62E9\u72B6\u6001",children:(0,e.jsxs)(se,{children:[(0,e.jsx)(h.Z.Option,{value:"0",children:"\u6B63\u5E38"}),(0,e.jsx)(h.Z.Option,{value:"1",children:"\u505C\u7528"})]})})}),(0,e.jsx)(n.Z.Item,{children:(0,e.jsx)(O.Z,{type:"primary",htmlType:"submit",children:"\u4FDD\u5B58"})})]})}),(0,e.jsx)(Ie.Z,{title:"\u65B0\u5EFA\u5546\u54C1\u5927\u7C7B",width:640,visible:J,bodyStyle:{padding:"32px 40px 48px"},footer:null,onCancel:function(){A(!1)},destroyOnClose:!0,children:(0,e.jsxs)(n.Z,{form:U,labelCol:{span:6},layout:"horizontal",preserve:!1,onFinish:function(){var l=(0,K.Z)((0,c.Z)().mark(function o(C){var D;return(0,c.Z)().wrap(function(he){for(;;)switch(he.prev=he.next){case 0:return he.next=2,j.AddGoodsTypeListNew(C);case 2:D=he.sent,D.data?(f.default.success("\u5546\u54C1\u5927\u7C7B\u6DFB\u52A0\u6210\u529F"),A(!1),ne()):f.default.error(D.errors||"\u5546\u54C1\u5927\u7C7B\u6DFB\u52A0\u5931\u8D25");case 4:case"end":return he.stop()}},o)}));return function(o){return l.apply(this,arguments)}}(),children:[(0,e.jsx)(n.Z.Item,{name:"id",hidden:!0,children:(0,e.jsx)(w.Z,{})}),(0,e.jsx)(n.Z.Item,{name:"name",label:"\u5546\u54C1\u5927\u7C7B\u540D\u79F0",rules:[{required:!0,max:50}],children:(0,e.jsx)(w.Z,{})}),(0,e.jsx)(n.Z.Item,{name:"status",label:"\u72B6\u6001",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u72B6\u6001"}],children:(0,e.jsx)(h.Z,{placeholder:"\u8BF7\u9009\u62E9\u72B6\u6001",children:(0,e.jsxs)(se,{children:[(0,e.jsx)(h.Z.Option,{value:"0",children:"\u6B63\u5E38"}),(0,e.jsx)(h.Z.Option,{value:"1",children:"\u505C\u7528"})]})})}),(0,e.jsx)(n.Z.Item,{name:"remark",label:"\u5907\u6CE8",children:(0,e.jsx)(w.Z,{})}),(0,e.jsx)(n.Z.Item,{children:(0,e.jsx)(O.Z,{type:"primary",htmlType:"submit",children:"\u4FDD\u5B58"})})]})}),(0,e.jsx)(Ie.Z,{title:"\u65B0\u5EFA\u5546\u54C1\u5C0F\u7C7B",width:640,visible:Te,bodyStyle:{padding:"32px 40px 48px"},footer:null,onCancel:function(){Ue(!1)},destroyOnClose:!0,children:(0,e.jsxs)(n.Z,{labelCol:{span:6},layout:"horizontal",preserve:!1,onFinish:function(){var l=(0,K.Z)((0,c.Z)().mark(function o(C){var D;return(0,c.Z)().wrap(function(he){for(;;)switch(he.prev=he.next){case 0:return he.next=2,j.AddGoodsSmallType(C);case 2:D=he.sent,D.data?(f.default.success("\u5546\u54C1\u5C0F\u7C7B\u6DFB\u52A0\u6210\u529F"),Ue(!1),b()):f.default.error(D.errors||"\u5546\u54C1\u5C0F\u7C7B\u6DFB\u52A0\u5931\u8D25");case 4:case"end":return he.stop()}},o)}));return function(o){return l.apply(this,arguments)}}(),children:[(0,e.jsx)(n.Z.Item,{name:"id",hidden:!0,children:(0,e.jsx)(w.Z,{})}),(0,e.jsx)(n.Z.Item,{name:"goodsType_Name",label:"\u5546\u54C1\u5C0F\u7C7B\u540D\u79F0",rules:[{required:!0,max:50}],children:(0,e.jsx)(w.Z,{})}),(0,e.jsx)(n.Z.Item,{name:"status",label:"\u72B6\u6001",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u72B6\u6001"}],children:(0,e.jsx)(h.Z,{placeholder:"\u8BF7\u9009\u62E9\u72B6\u6001",children:(0,e.jsxs)(se,{children:[(0,e.jsx)(h.Z.Option,{value:"0",children:"\u6B63\u5E38"}),(0,e.jsx)(h.Z.Option,{value:"1",children:"\u505C\u7528"})]})})}),(0,e.jsx)(n.Z.Item,{name:"remark",label:"\u5907\u6CE8",children:(0,e.jsx)(w.Z,{})}),(0,e.jsx)(n.Z.Item,{children:(0,e.jsx)(O.Z,{type:"primary",htmlType:"submit",children:"\u4FDD\u5B58"})})]})}),(0,e.jsxs)(mt.Z,{width:800,title:"\u5546\u54C1\u6DFB\u52A0\u5230\u83DC\u8C31",placement:"right",onClose:function(){return ct(!1)},visible:dt,children:[(0,e.jsxs)("div",{style:{display:"flex",alignItems:"center",marginBottom:"10px"},children:[(0,e.jsx)("div",{className:_().current_selected_obj,children:"\u5F53\u524D\u83DC\u8C31\uFF1A"}),(0,e.jsx)(h.Z,{className:_().current_selected_cmp,onChange:function(o){W(o)},placeholder:"\u8BF7\u9009\u62E9\u83DC\u8C31",value:v,size:"large",children:t.foodMenuConfig.map(function(l){return(0,e.jsx)(xe,{value:l.id,children:l.name},l.id)})})]}),(0,e.jsxs)("div",{className:_().add_to_some_box,children:[(0,e.jsx)(qe.ZP,{actionRef:Oe,className:_().wait_add_list,headerTitle:"\u5F85\u6DFB\u52A0\u5546\u54C1\u5217\u8868",rowKey:"id",search:!1,pagination:{current:Pe,pageSize:Ne,onChange:function(o,C){be(o),_e(C)}},request:function(){var l=(0,K.Z)((0,c.Z)().mark(function o(C){var D,E;return(0,c.Z)().wrap(function(de){for(;;)switch(de.prev=de.next){case 0:return D=[],C.goodsTypeId!=null&&(C.goodsTypeId=goodsTypes[C.goodsTypeId].goodsTypeId),E=0,de.next=5,j.GetgoodsList(C).then(function(Ye){D=Ye.data.data,E=Ye.data.total});case 5:return de.abrupt("return",{data:D,success:!0,total:E});case 6:case"end":return de.stop()}},o)}));return function(o){return l.apply(this,arguments)}}(),columns:Ce,rowSelection:{type:"checkbox",onSelect:function(o,C){var D=JSON.parse(JSON.stringify(m)),E=JSON.parse(JSON.stringify(r)),he=D.findIndex(function(Ye){return Ye.id===o.id}),de=E.findIndex(function(Ye){return Ye===o.id});C?(he<0&&D.push(o),de<0&&E.push(o.id)):(he>-1&&D.splice(he,1),de>-1&&E.splice(de,1)),ie(D),i(E)},onChange:function(o,C){o.length===0&&i([]),C.length===0&&ie([])},selectedRowKeys:r}}),(0,e.jsx)(pt.Z,{className:_().success_add_list,rowKey:"id",columns:N,dataSource:gt})]}),(0,e.jsx)(O.Z,{className:_().sure_add_btn,type:"primary",onClick:P,children:"\u786E\u5B9A\u6DFB\u52A0"})]})]})},Jt=Vt,Un=d(49111),Qt=d(19650),Nn=d(71153),Ht=d(60331),qt=function(t){var xe,se,Y=n.Z.useForm(),me=(0,u.Z)(Y,1),V=me[0],R=function(){var r=(0,K.Z)((0,c.Z)().mark(function i(s){return(0,c.Z)().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:s.id?j.UpdateBom(s).then(function(ie){ie.data?f.default.success("\u4FEE\u6539\u6210\u529F"):f.default.error("\u4FEE\u6539\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),De.current.reload(),Be(!1)}):j.AddBom(s).then(function(ie){ie.data?(f.default.success("\u6DFB\u52A0\u6210\u529F"),De.current.reload(),Be(!1)):f.default.error("\u6DFB\u52A0\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01")});case 1:case"end":return m.stop()}},i)}));return function(s){return r.apply(this,arguments)}}(),ee=[{title:"\u4E3B\u952E",dataIndex:"id",hideInTable:!0,hideInSearch:!0},{title:"\u914D\u65B9\u7F16\u7801",dataIndex:"code",hideInForm:!0,hideInSearch:!0},{title:"\u914D\u65B9\u540D\u79F0",dataIndex:"name",hideInForm:!0,hideInSearch:!0},{title:"\u6392\u5E8F",dataIndex:"sort",hideInForm:!0,hideInSearch:!0},{title:"\u914D\u65B9\u5206\u7C7B",dataIndex:"bomTypeList",search:!1,width:450,render:function(i,s){return(0,e.jsx)(Qt.Z,{children:ue.filter(function(x){var m=s.bomTypeList.find(function(ve){return ve===x.id}),ie=ue.find(function(ve){return ve.id===m});return ie!=null||void 0}).map(function(x){return(0,e.jsx)(Ht.Z,{color:"#87d068",children:x.name},x.id)})})}},{title:"\u914D\u65B9\u7C7B\u578B",dataIndex:"isMain",hideInForm:!0,valueEnum:{false:{text:"\u8F85\u6599\u914D\u65B9",status:"Processing"},true:{text:"\u4E3B\u6599\u914D\u65B9",status:"Success"}}},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(i,s){return[(0,e.jsx)("a",{type:"primary",onClick:function(){Be(!0),Ge(s),V.setFieldsValue(s)},children:"\u66F4\u65B0"},"primary3")]}}],L=[{title:"\u914D\u65B9\u540D\u79F0",dataIndex:"name",hideInForm:!0,hideInSearch:!0}],X=(0,a.useState)(0),Z=(0,u.Z)(X,2),I=Z[0],$=Z[1],te=(0,a.useState)(5),Q=(0,u.Z)(te,2),re=Q[0],ge=Q[1],ce=(0,a.useState)([]),le=(0,u.Z)(ce,2),H=le[0],pe=le[1],B=(0,a.useState)([]),M=(0,u.Z)(B,2),g=M[0],T=M[1],q=(0,a.useState)([]),fe=(0,u.Z)(q,2),ue=fe[0],J=fe[1],A=(0,a.useState)(!1),z=(0,u.Z)(A,2),ye=z[0],U=z[1],we=function(){var r=(0,K.Z)((0,c.Z)().mark(function i(){var s;return(0,c.Z)().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:return m.next=2,j.GetBomTypePage({current:1,pagesize:1e3});case 2:s=m.sent,s.statusCode===200&&J(s.data.data);case 4:case"end":return m.stop()}},i)}));return function(){return r.apply(this,arguments)}}(),je=(0,a.useState)({id:""}),Te=(0,u.Z)(je,2),Ue=Te[0],Ge=Te[1],Ke=(0,a.useState)(!1),Pe=(0,u.Z)(Ke,2),be=Pe[0],Be=Pe[1],De=(0,a.useRef)(),Ne=(0,a.useState)(!1),_e=(0,u.Z)(Ne,2),oe=_e[0],ne=_e[1],b=(0,a.useState)(""),Ze=(0,u.Z)(b,2),ae=Ze[0],Se=Ze[1],Ce=(0,a.useState)([]),Ee=(0,u.Z)(Ce,2),Fe=Ee[0],ze=Ee[1],Ve=(0,a.useState)([]),Me=(0,u.Z)(Ve,2),Je=Me[0],Qe=Me[1],Le=[{title:"\u914D\u65B9\u540D\u79F0",dataIndex:"name",hideInForm:!0,hideInSearch:!0},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(i,s){return[(0,e.jsx)("a",{type:"primary",onClick:function(){t.onBomRelationGoods(s.goodsId,s,!1)},children:"\u79FB\u9664\u914D\u65B9"},"primary3")]}}],Oe=function(){var i=[];t.foodMenuConfig.forEach(function(s){var x=s.id;s.goodsConfig&&s.goodsConfig.forEach(function(m){m.foodMenuId=x;var ie=i.find(function(ve){return ve.id===m.id});ie||i.push(m)})}),ae||Se(i[0].id),ze(i)},F=function(){var i=Fe.find(function(s){return s.id===ae});i&&i.bomConfig?Qe(i.bomConfig):Qe([])},S=function(){if(H.length===0){Re.default.error({message:"\u914D\u65B9\u5173\u8054\u5546\u54C1\u51FA\u9519",description:"\u8BF7\u9009\u62E9\u914D\u65B9",placement:"topRight"});return}var i=Fe.find(function(s){return s.id===ae});i&&(H.forEach(function(s){s.foodMenuId=i.foodMenuId,s.goodsId=i.id}),t.onBomRelationGoods(i.id,H),T([]),pe([]))};return(0,a.useEffect)(function(){we()},[]),(0,a.useEffect)(function(){Oe()},[t.foodMenuConfig]),(0,a.useEffect)(function(){F()},[Fe,ae]),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(Ie.Z,{width:600,title:Ue.id?"\u7F16\u8F91\u914D\u65B9":"\u65B0\u589E\u914D\u65B9",visible:be,footer:!1,onCancel:function(){return Be(!1)},children:(0,e.jsxs)(n.Z,{labelCol:{span:4},layout:"horizontal",preserve:!1,onFinish:R,form:V,children:[(0,e.jsx)(n.Z.Item,{name:"id",hidden:!0,children:(0,e.jsx)(w.Z,{})}),(0,e.jsx)(n.Z.Item,{name:"code",label:"\u914D\u65B9\u7F16\u7801",rules:[{required:!0}],children:(0,e.jsx)(w.Z,{disabled:!0,placeholder:"\u914D\u65B9\u7F16\u7801"})}),(0,e.jsx)(n.Z.Item,{name:"name",label:"\u914D\u65B9\u540D\u79F0",rules:[{required:!0}],children:(0,e.jsx)(w.Z,{placeholder:"\u914D\u65B9\u540D\u79F0"})}),(0,e.jsxs)("div",{className:_().add_row_content,children:[(0,e.jsx)(n.Z.Item,{name:"bomTypeList",label:"\u914D\u65B9\u7C7B\u578B",rules:[{required:!0}],children:(0,e.jsx)(h.Z,{style:{width:"70%"},mode:"multiple",allowClear:!0,children:ue.map(function(r,i){return(0,e.jsx)(h.Z.Option,{index:r.id,value:r.id,children:r.name},r.id)})})}),(0,e.jsx)(O.Z,{type:"primary",className:_().add_row_btn,onClick:function(){return U(!0)},children:"\u6DFB\u52A0\u914D\u65B9\u7C7B\u578B"})]}),(0,e.jsx)(n.Z.Item,{name:"isMain",label:"\u914D\u65B9\u7C7B\u578B",children:(0,e.jsx)(Bt.Z,{checkedChildren:"\u4E3B\u6599",unCheckedChildren:"\u8F85\u6599"})}),(0,e.jsx)(n.Z.Item,{name:"sort",label:"\u6392\u5E8F",rules:[{required:!0}],children:(0,e.jsx)(nt.Z,{placeholder:"\u6392\u5E8F",min:1})}),(0,e.jsx)(n.Z.Item,{children:(0,e.jsx)(O.Z,{type:"primary",htmlType:"submit",children:"\u786E\u5B9A"})})]})}),(0,e.jsx)(Ie.Z,{title:"\u65B0\u5EFA\u914D\u65B9\u7C7B\u578B",width:640,bodyStyle:{padding:"32px 40px 48px"},visible:ye,footer:null,onCancel:function(){U(!1)},destroyOnClose:!0,maskClosable:!1,children:(0,e.jsxs)(n.Z,{layout:"vertical",preserve:!1,initialValues:t==null?void 0:t.values,onFinish:function(){var r=(0,K.Z)((0,c.Z)().mark(function i(s){var x;return(0,c.Z)().wrap(function(ie){for(;;)switch(ie.prev=ie.next){case 0:return ie.next=2,j.CreateBomType(s);case 2:x=ie.sent,x.data?(f.default.success("\u914D\u65B9\u7C7B\u522B\u6DFB\u52A0\u6210\u529F"),U(!1),we()):f.default.error(x.errors||"\u914D\u65B9\u7C7B\u522B\u6DFB\u52A0\u5931\u8D25");case 4:case"end":return ie.stop()}},i)}));return function(i){return r.apply(this,arguments)}}(),children:[(0,e.jsx)(n.Z.Item,{name:"id",hidden:!0,children:(0,e.jsx)(w.Z,{})}),(0,e.jsx)(n.Z.Item,{name:"name",label:"\u914D\u65B9\u7C7B\u578B\u540D\u79F0",rules:[{required:!0,max:64,whitespace:!0}],children:(0,e.jsx)(w.Z,{placeholder:"\u8BF7\u8F93\u5165\u914D\u65B9\u7C7B\u578B\u540D\u79F0"})}),(0,e.jsx)(n.Z.Item,{name:"pertain",label:"\u5F52\u5C5E",defaultValue:t==null||(xe=t.values)===null||xe===void 0?void 0:xe.pertain,rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u7C7B\u578B\u5F52\u5C5E"}],children:(0,e.jsxs)(h.Z,{placeholder:"\u8BF7\u9009\u62E9\u7C7B\u578B\u5F52\u5C5E",children:[(0,e.jsx)(Option,{value:"1",children:"\u65E0"}),(0,e.jsx)(Option,{value:"2",children:"TMC "})]})}),(0,e.jsx)(n.Z.Item,{name:"status",label:"\u72B6\u6001",defaultValue:t==null||(se=t.values)===null||se===void 0?void 0:se.status,rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u72B6\u6001"}],children:(0,e.jsxs)(h.Z,{placeholder:"\u8BF7\u9009\u62E9\u72B6\u6001",children:[(0,e.jsx)(Option,{value:"0",children:"\u6B63\u5E38"}),(0,e.jsx)(Option,{value:"1",children:"\u505C\u7528"})]})}),(0,e.jsx)(n.Z.Item,{children:(0,e.jsx)(O.Z,{type:"primary",htmlType:"submit",children:"\u4FDD\u5B58"})})]})}),(0,e.jsx)(qe.ZP,{actionRef:De,style:{width:"100%"},headerTitle:"\u914D\u65B9\u5217\u8868",rowKey:"id",pagination:{current:I,pageSize:re,onChange:function(i,s){$(i),ge(s)}},search:!1,request:function(){var r=(0,K.Z)((0,c.Z)().mark(function i(s){var x,m;return(0,c.Z)().wrap(function(ve){for(;;)switch(ve.prev=ve.next){case 0:return x=[],m=0,ve.next=4,j.GetBomPage(s).then(function(ke){x=ke.data.data,m=ke.data.total});case 4:return ve.abrupt("return",{data:x,success:!0,total:m});case 5:case"end":return ve.stop()}},i)}));return function(i){return r.apply(this,arguments)}}(),columns:ee,toolBarRender:function(){return[(0,e.jsx)(O.Z,{icon:(0,e.jsx)(et.Z,{}),type:"primary",onClick:function(){V.resetFields();var s=V.getFieldsValue();s.code=(0,Xe.x0)().substring(0,20),V.setFieldsValue(s),Ge({id:""}),Be(!0)},children:"\u65B0\u5EFA"},"button"),(0,e.jsx)(O.Z,{type:"primary",onClick:function(){ne(!0)},children:"\u5173\u8054\u5546\u54C1"},"button")]}}),(0,e.jsxs)(mt.Z,{width:800,title:"\u914D\u65B9\u5173\u8054\u5546\u54C1",placement:"right",onClose:function(){return ne(!1)},visible:oe,children:[(0,e.jsxs)("div",{style:{display:"flex",alignItems:"center",marginBottom:"10px"},children:[(0,e.jsx)("div",{className:_().current_selected_obj,children:"\u5F53\u524D\u5546\u54C1\uFF1A"}),(0,e.jsx)(h.Z,{className:_().current_selected_cmp,onChange:function(i){Se(i)},placeholder:"\u8BF7\u9009\u62E9\u5546\u54C1",value:ae,size:"large",children:Fe.map(function(r){return(0,e.jsx)(Option,{value:r.id,children:r.name},r.id)})})]}),(0,e.jsxs)("div",{className:_().add_to_some_box,children:[(0,e.jsx)(qe.ZP,{actionRef:De,className:_().wait_add_list,headerTitle:"\u914D\u65B9\u5217\u8868",rowKey:"id",pagination:{current:I,pageSize:re,onChange:function(i,s){$(i),ge(s)}},search:!1,request:function(){var r=(0,K.Z)((0,c.Z)().mark(function i(s){var x,m;return(0,c.Z)().wrap(function(ve){for(;;)switch(ve.prev=ve.next){case 0:return x=[],m=0,ve.next=4,j.GetBomPage(s).then(function(ke){x=ke.data.data,m=ke.data.total});case 4:return ve.abrupt("return",{data:x,success:!0,total:m});case 5:case"end":return ve.stop()}},i)}));return function(i){return r.apply(this,arguments)}}(),columns:L,rowSelection:{type:"checkbox",onSelect:function(i,s){var x=JSON.parse(JSON.stringify(H)),m=JSON.parse(JSON.stringify(g)),ie=x.findIndex(function(ke){return ke.id===i.id}),ve=m.findIndex(function(ke){return ke===i.id});s?(ie<0&&x.push(i),ve<0&&m.push(i.id)):(ie>-1&&x.splice(ie,1),ve>-1&&m.splice(ve,1)),pe(x),T(m)},onChange:function(i,s){i.length===0&&T([]),s.length===0&&pe([])},selectedRowKeys:g}}),(0,e.jsx)(pt.Z,{className:_().success_add_list,rowKey:"id",columns:Le,dataSource:Je})]}),(0,e.jsx)(O.Z,{className:_().sure_add_btn,type:"primary",onClick:S,children:"\u786E\u5B9A\u5173\u8054"})]})]})},Xt=qt,_n=d(13062),en=d(71230),Ln=d(89032),$e=d(15746),tn=d(952),lt=d(5966),rt=d(64317),vt=d(31199),nn=h.Z.Option,It=h.Z.OptGroup,We={name:"\u7269\u6599\u540D\u79F0",stockUint:"\u5E93\u5B58\u5355\u4F4D",specs:"\u7269\u6599\u89C4\u683C",code:"\u7269\u6599\u7F16\u7801",aittribute:"\u7269\u6599\u5C5E\u6027",typeID:"\u7269\u6599\u7C7B\u522B",status:"\u7269\u6599\u72B6\u6001",price:"\u6210\u672C\u4EF7",netrecovery:"\u51C0\u6599\u7387(%)",OutstockUint:"\u51FA\u5E93\u5355\u4F4D",proportion:"\u6362\u7B97\u6BD4\u4F8B(%)"},an=function(t){var xe=n.Z.useForm(),se=(0,u.Z)(xe,1),Y=se[0],me=(0,a.useState)(1),V=(0,u.Z)(me,2),R=V[0],ee=V[1],L=(0,a.useState)(10),X=(0,u.Z)(L,2),Z=X[0],I=X[1],$=(0,a.useState)([]),te=(0,u.Z)($,2),Q=te[0],re=te[1],ge=(0,a.useState)([]),ce=(0,u.Z)(ge,2),le=ce[0],H=ce[1],pe=(0,a.useRef)(),B=function(){var G=(0,K.Z)((0,c.Z)().mark(function p(v){return(0,c.Z)().wrap(function(N){for(;;)switch(N.prev=N.next){case 0:v.id?j.UpdateMaterial(v).then(function(P){P.data?(f.default.success("\u4FEE\u6539\u6210\u529F"),ae(!1),pe.current.reload()):f.default.error("\u4FEE\u6539\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01")}):j.AddMaterial(v).then(function(P){P.data?(f.default.success("\u6DFB\u52A0\u6210\u529F"),ae(!1),pe.current.reload()):f.default.error("\u6DFB\u52A0\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01")});case 1:case"end":return N.stop()}},p)}));return function(v){return G.apply(this,arguments)}}(),M=[{title:"\u7269\u6599\u540D\u79F0",dataIndex:"name",ellipsis:!0,formItemProps:{rules:[{required:!0,message:"\u540D\u79F0\u4E3A\u5FC5\u586B\u9879"}]}},{title:"\u7269\u6599\u5C5E\u6027",dataIndex:"aittribute",valueEnum:{0:{text:"\u6210\u54C1"},1:{text:"\u534A\u6210\u54C1"},2:{text:"\u6613\u8017\u54C1"}}},{title:"\u72B6\u6001",dataIndex:"status",hideInForm:!0,valueEnum:{0:{text:"\u6B63\u5E38",status:"Processing"},1:{text:"\u505C\u7528",status:"Success"}}},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(p,v){return[(0,e.jsx)("a",{type:"primary",onClick:function(){ae(!0),oe(v),Y.setFieldsValue(v)},children:"\u66F4\u65B0"},"primary3")]}}],g=[{title:"\u7269\u6599\u540D\u79F0",dataIndex:"name",ellipsis:!0,formItemProps:{rules:[{required:!0,message:"\u540D\u79F0\u4E3A\u5FC5\u586B\u9879"}]}}],T=(0,a.useState)([]),q=(0,u.Z)(T,2),fe=q[0],ue=q[1],J=(0,a.useState)([]),A=(0,u.Z)(J,2),z=A[0],ye=A[1],U=function(){var G=(0,K.Z)((0,c.Z)().mark(function p(){var v;return(0,c.Z)().wrap(function(N){for(;;)switch(N.prev=N.next){case 0:return N.next=2,j.GetMaterialTypeList();case 2:v=N.sent,v.statusCode===200?(v.data.forEach(function(P){P.value=P.id,P.label=P.name}),ue(v.data)):f.default.error(v.errors||"\u83B7\u53D6\u7269\u6599\u7C7B\u522B\u51FA\u9519");case 4:case"end":return N.stop()}},p)}));return function(){return G.apply(this,arguments)}}(),we=function(){var G=(0,K.Z)((0,c.Z)().mark(function p(){var v;return(0,c.Z)().wrap(function(N){for(;;)switch(N.prev=N.next){case 0:return N.next=2,j.GetMaterialUintList();case 2:v=N.sent,v.statusCode===200?(v.data.forEach(function(P){P.value=P.id,P.label=P.name}),ye(v.data)):f.default.error(v.errors||"\u83B7\u53D6\u7269\u6599\u7C7B\u522B\u51FA\u9519");case 4:case"end":return N.stop()}},p)}));return function(){return G.apply(this,arguments)}}(),je=(0,a.useState)(!1),Te=(0,u.Z)(je,2),Ue=Te[0],Ge=Te[1],Ke=(0,a.useState)(!1),Pe=(0,u.Z)(Ke,2),be=Pe[0],Be=Pe[1],De=(0,a.useState)({id:""}),Ne=(0,u.Z)(De,2),_e=Ne[0],oe=Ne[1],ne=(0,a.useState)(!1),b=(0,u.Z)(ne,2),Ze=b[0],ae=b[1],Se=(0,a.useState)(!1),Ce=(0,u.Z)(Se,2),Ee=Ce[0],Fe=Ce[1],ze=(0,a.useState)(""),Ve=(0,u.Z)(ze,2),Me=Ve[0],Je=Ve[1],Qe=(0,a.useState)([]),Le=(0,u.Z)(Qe,2),Oe=Le[0],F=Le[1],S=(0,a.useState)([]),r=(0,u.Z)(S,2),i=r[0],s=r[1],x=[{title:"\u7269\u6599\u540D\u79F0",dataIndex:"name",ellipsis:!0,formItemProps:{rules:[{required:!0,message:"\u540D\u79F0\u4E3A\u5FC5\u586B\u9879"}]}},{title:"\u7269\u6599\u6570\u91CF",dataIndex:"BomQty",width:50},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(p,v){return[(0,e.jsx)("a",{type:"primary",onClick:function(){var N=Oe.find(function(P){return P.id===Me});N&&t.onMaterialRelationBom(N.id,v,!1)},children:"\u79FB\u9664\u7269\u6599"},"primary3"),(0,e.jsx)("a",{type:"primary",style:{marginLeft:"10px"},onClick:function(){it.setFieldsValue(v),ut(!0)},children:"\u8BBE\u7F6E\u6570\u91CF"},"primary3")]}}],m=function(){var p,v=[];if((p=t.foodMenuConfig)===null||p===void 0||p.forEach(function(N){var P;(P=N.goodsConfig)===null||P===void 0||P.forEach(function(l){var o;(o=l.bomConfig)===null||o===void 0||o.forEach(function(C){var D=v.find(function(E){return E.id===C.id});D||(C.goodsId=l.id,v.push(C))})})}),!Me){var W;Je((W=v[0])===null||W===void 0?void 0:W.id)}F(v)},ie=function(){if(Q.length===0){Re.default.error({message:"\u914D\u65B9\u5173\u8054\u5546\u54C1\u51FA\u9519",description:"\u8BF7\u9009\u62E9\u914D\u65B9",placement:"topRight"});return}var p=Oe.find(function(W){return W.id===Me});if(p){var v=JSON.parse(JSON.stringify(Q));v.forEach(function(W){W.BomQty=0}),t.onMaterialRelationBom(p.id,v),H([]),re([])}},ve=function(){var p=Oe.find(function(v){return v.id===Me});p&&p.materialConfig?s(p.materialConfig):s([])},ke=(0,a.useState)(!1),dt=(0,u.Z)(ke,2),ct=dt[0],ut=dt[1],ft=n.Z.useForm(),gt=(0,u.Z)(ft,1),it=gt[0];return(0,a.useEffect)(function(){U(),we()},[]),(0,a.useEffect)(function(){m()},[t.foodMenuConfig]),(0,a.useEffect)(function(){ve()},[Oe,Me]),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(Ie.Z,{width:800,title:_e.id?"\u7F16\u8F91\u7269\u6599":"\u65B0\u589E\u7269\u6599",visible:Ze,footer:!1,onCancel:function(){return ae(!1)},children:(0,e.jsxs)(tn.ZP,{form:Y,labelCol:{span:6},layout:"horizontal",hideRequiredMark:!0,initialValues:t.materialConfig,onFinish:B,submitter:!1,children:[(0,e.jsxs)(en.Z,{gutter:16,children:[(0,e.jsx)($e.Z,{lg:12,md:12,sm:24,children:(0,e.jsx)(lt.Z,{label:We.code,name:"code",rules:[{required:!0,max:50}],placeholder:"\u8BF7\u8F93\u5165\u539F\u6599\u7F16\u7801"})}),(0,e.jsxs)($e.Z,{lg:12,md:12,sm:24,children:[(0,e.jsx)(lt.Z,{name:"id",hidden:!0}),(0,e.jsx)(lt.Z,{label:We.name,name:"name",rules:[{required:!0,max:50}],placeholder:"\u8BF7\u8F93\u5165\u539F\u6599\u540D\u79F0"})]}),(0,e.jsx)($e.Z,{lg:12,md:12,sm:24,children:(0,e.jsx)(lt.Z,{label:We.specs,name:"specs",rules:[{required:!0,max:500}],placeholder:"\u8BF7\u8F93\u5165\u89C4\u683C\u578B\u53F7"})}),(0,e.jsx)($e.Z,{lg:12,md:12,sm:24,children:(0,e.jsx)(rt.Z,{label:We.aittribute,name:"aittribute",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u7269\u6599\u5C5E\u6027"}],options:[{value:"0",label:"\u6210\u54C1"},{value:"1",label:"\u534A\u6210\u54C1"},{value:"2",label:"\u6613\u8017\u54C1"}],placeholder:"\u8BF7\u9009\u62E9\u7269\u6599\u5C5E\u6027"})}),(0,e.jsx)($e.Z,{lg:12,md:12,sm:24,children:(0,e.jsx)(vt.Z,{label:We.price,name:"price",placeholder:"\u8BF7\u8F93\u5165\u6210\u672C\u4EF7",min:1})}),(0,e.jsx)($e.Z,{lg:12,md:12,sm:24,children:(0,e.jsx)(vt.Z,{label:We.netrecovery,name:"netrecovery",min:1,max:100,placeholder:"\u8BF7\u8F93\u5165\u51C0\u6599\u7387"})}),(0,e.jsx)($e.Z,{lg:12,md:12,sm:24,children:(0,e.jsxs)("div",{className:_().add_row_content,children:[(0,e.jsx)(rt.Z,{style:{width:"65%"},label:We.typeID,name:"typeID",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u7269\u6599\u7C7B\u522B"}],options:fe,placeholder:"\u8BF7\u9009\u62E9\u7269\u6599\u7C7B\u522B"}),(0,e.jsx)(O.Z,{onClick:function(){return Ge(!0)},type:"primary",className:_().add_row_btn,children:"\u6DFB\u52A0\u7C7B\u522B"})]})}),(0,e.jsx)($e.Z,{lg:12,md:12,sm:24,children:(0,e.jsxs)("div",{className:_().add_row_content,children:[(0,e.jsx)(rt.Z,{style:{width:"65%"},label:We.stockUint,name:"stockUint",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u5355\u4F4D"}],options:z,placeholder:"\u8BF7\u9009\u62E9\u5355\u4F4D"}),(0,e.jsx)(O.Z,{onClick:function(){return Be(!0)},type:"primary",className:_().add_row_btn,children:"\u6DFB\u52A0\u5355\u4F4D"})]})}),(0,e.jsx)($e.Z,{lg:12,md:12,sm:24,children:(0,e.jsxs)("div",{className:_().add_row_content,children:[(0,e.jsx)(rt.Z,{style:{width:"65%"},label:We.OutstockUint,name:"outstockUint",options:z,rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u51FA\u5E93\u5355\u4F4D"}],placeholder:"\u8BF7\u9009\u62E9\u51FA\u5E93\u5355\u4F4D"}),(0,e.jsx)(O.Z,{onClick:function(){return Be(!0)},type:"primary",className:_().add_row_btn,children:"\u6DFB\u52A0\u5355\u4F4D"})]})}),(0,e.jsx)($e.Z,{lg:12,md:12,sm:24,children:(0,e.jsx)(vt.Z,{label:We.proportion,name:"proportion",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u51FA\u5165\u5E93\u6362\u7B97\u6BD4\u4F8B"}],placeholder:"\u8BF7\u8F93\u5165\u6362\u7B97\u6BD4\u4F8B"})}),(0,e.jsx)($e.Z,{lg:12,md:12,sm:24,children:(0,e.jsx)(rt.Z,{label:We.status,name:"status",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u72B6\u6001"}],options:[{value:"0",label:"\u6B63\u5E38"},{value:"1",label:"\u505C\u7528"}],placeholder:"\u8BF7\u9009\u62E9\u72B6\u6001"})})]}),(0,e.jsx)(n.Z.Item,{children:(0,e.jsx)(O.Z,{type:"primary",htmlType:"submit",children:"\u786E\u5B9A"})})]})}),(0,e.jsx)(qe.ZP,{actionRef:pe,headerTitle:"\u7269\u6599\u5217\u8868",rowKey:"id",search:{labelWidth:120},pagination:{current:R,pageSize:Z,onChange:function(p,v){ee(p),I(v)}},request:function(){var G=(0,K.Z)((0,c.Z)().mark(function p(v){var W,N;return(0,c.Z)().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return W=[],N=0,l.next=4,j.GetMaterialPage(v).then(function(o){W=o.data.data,N=o.data.total});case 4:return l.abrupt("return",{data:W,success:!0,total:N});case 5:case"end":return l.stop()}},p)}));return function(p){return G.apply(this,arguments)}}(),columns:M,toolBarRender:function(){return[(0,e.jsx)(O.Z,{icon:(0,e.jsx)(et.Z,{}),type:"primary",onClick:function(){Y.resetFields(),oe({id:""}),ae(!0)},children:"\u65B0\u5EFA"},"button"),(0,e.jsx)(O.Z,{type:"primary",onClick:function(){Fe(!0)},children:"\u5173\u8054\u914D\u65B9"},"button")]}}),(0,e.jsx)(Ie.Z,{title:"\u6DFB\u52A0\u7269\u6599\u5355\u4F4D",width:640,visible:be,bodyStyle:{padding:"32px 40px 48px"},footer:null,onCancel:function(){Be(!1)},destroyOnClose:!0,maskClosable:!1,children:(0,e.jsxs)(n.Z,{layout:"vertical",preserve:!1,onFinish:function(){var G=(0,K.Z)((0,c.Z)().mark(function p(v){var W;return(0,c.Z)().wrap(function(P){for(;;)switch(P.prev=P.next){case 0:return P.next=2,j.AddMaterialUnit(v);case 2:W=P.sent,W.data?(f.default.success("\u6DFB\u52A0\u6210\u529F"),Be(!1),we()):f.default.error(W.errors||"\u7269\u6599\u5355\u4F4D\u6DFB\u52A0\u5931\u8D25");case 4:case"end":return P.stop()}},p)}));return function(p){return G.apply(this,arguments)}}(),children:[(0,e.jsx)(n.Z.Item,{name:"id",hidden:!0,children:(0,e.jsx)(w.Z,{})}),(0,e.jsx)(n.Z.Item,{name:"name",label:"\u7269\u6599\u5355\u4F4D\u540D\u79F0",rules:[{required:!0,max:64}],children:(0,e.jsx)(w.Z,{placeholder:"\u7269\u6599\u5355\u4F4D\u540D\u79F0"})}),(0,e.jsx)(n.Z.Item,{name:"status",label:"\u72B6\u6001",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u72B6\u6001"}],children:(0,e.jsx)(h.Z,{placeholder:"\u8BF7\u9009\u62E9\u72B6\u6001",children:(0,e.jsxs)(It,{children:[(0,e.jsx)(h.Z.Option,{value:"0",children:"\u6B63\u5E38"}),(0,e.jsx)(h.Z.Option,{value:"1",children:"\u505C\u7528"})]})})}),(0,e.jsx)(n.Z.Item,{children:(0,e.jsx)(O.Z,{type:"primary",htmlType:"submit",children:"\u4FDD\u5B58"})})]})}),(0,e.jsx)(Ie.Z,{title:"\u6DFB\u52A0\u7269\u6599\u5206\u7C7B",width:640,visible:Ue,bodyStyle:{padding:"32px 40px 48px"},footer:null,onCancel:function(){Ge(!1)},destroyOnClose:!0,maskClosable:!1,children:(0,e.jsxs)(n.Z,{layout:"vertical",preserve:!1,onFinish:function(){var G=(0,K.Z)((0,c.Z)().mark(function p(v){var W;return(0,c.Z)().wrap(function(P){for(;;)switch(P.prev=P.next){case 0:return P.next=2,j.AddMaterialType(v);case 2:W=P.sent,W.data?(f.default.success("\u6DFB\u52A0\u6210\u529F"),Ge(!1),U()):f.default.error(W.errors||"\u7269\u6599\u5206\u7C7B\u6DFB\u52A0\u5931\u8D25");case 4:case"end":return P.stop()}},p)}));return function(p){return G.apply(this,arguments)}}(),children:[(0,e.jsx)(n.Z.Item,{name:"id",hidden:!0,children:(0,e.jsx)(w.Z,{})}),(0,e.jsx)(n.Z.Item,{name:"name",label:"\u7269\u6599\u5206\u7C7B\u540D\u79F0",rules:[{required:!0,max:64,whitespace:!0}],children:(0,e.jsx)(w.Z,{placeholder:"\u8BF7\u8F93\u5165\u7269\u7269\u6599\u5206\u7C7B\u79F0"})}),(0,e.jsx)(n.Z.Item,{name:"status",label:"\u72B6\u6001",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u7269\u6599\u5206\u7C7B\u72B6\u6001"}],children:(0,e.jsx)(h.Z,{placeholder:"\u8BF7\u9009\u62E9\u7269\u6599\u5206\u7C7B\u72B6\u6001",children:(0,e.jsxs)(It,{children:[(0,e.jsx)(h.Z.Option,{value:"0",children:"\u6B63\u5E38"}),(0,e.jsx)(h.Z.Option,{value:"1",children:"\u505C\u7528"})]})})}),(0,e.jsx)(n.Z.Item,{children:(0,e.jsx)(O.Z,{type:"primary",htmlType:"submit",children:"\u4FDD\u5B58"})})]})}),(0,e.jsxs)(mt.Z,{width:900,title:"\u7269\u6599\u5173\u8054\u914D\u65B9",placement:"right",onClose:function(){return Fe(!1)},visible:Ee,children:[(0,e.jsxs)("div",{style:{display:"flex",alignItems:"center",marginBottom:"10px"},children:[(0,e.jsx)("div",{className:_().current_selected_obj,children:"\u5F53\u524D\u914D\u65B9\uFF1A"}),(0,e.jsx)(h.Z,{className:_().current_selected_cmp,onChange:function(p){console.log("setCurrentSelectedBom",p),Je(p)},placeholder:"\u8BF7\u9009\u62E9\u914D\u65B9",value:Me,size:"large",children:Oe.map(function(G){return(0,e.jsx)(nn,{value:G.id,children:G.name},G.id)})})]}),(0,e.jsxs)("div",{className:_().add_to_some_box,children:[(0,e.jsx)(qe.ZP,{className:_().wait_add_list,actionRef:pe,headerTitle:"\u7269\u6599\u5217\u8868",rowKey:"id",search:!1,pagination:{current:R,pageSize:Z,onChange:function(p,v){ee(p),I(v)}},request:function(){var G=(0,K.Z)((0,c.Z)().mark(function p(v){var W,N;return(0,c.Z)().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return W=[],N=0,l.next=4,j.GetMaterialPage(v).then(function(o){W=o.data.data,N=o.data.total});case 4:return l.abrupt("return",{data:W,success:!0,total:N});case 5:case"end":return l.stop()}},p)}));return function(p){return G.apply(this,arguments)}}(),columns:g,rowSelection:{type:"checkbox",onSelect:function(p,v){var W=JSON.parse(JSON.stringify(Q)),N=JSON.parse(JSON.stringify(le)),P=W.findIndex(function(o){return o.id===p.id}),l=N.findIndex(function(o){return o===p.id});v?(P<0&&W.push(p),l<0&&N.push(p.id)):(P>-1&&W.splice(P,1),l>-1&&N.splice(l,1)),re(W),H(N)},onChange:function(p,v){p.length===0&&H([]),v.length===0&&re([])},selectedRowKeys:le}}),(0,e.jsx)(pt.Z,{className:_().success_add_list,rowKey:"id",columns:x,dataSource:i})]}),(0,e.jsx)(O.Z,{className:_().sure_add_btn,type:"primary",onClick:ie,children:"\u786E\u5B9A\u5173\u8054"})]}),(0,e.jsx)(Ie.Z,{title:"\u8BBE\u7F6E\u7269\u6599\u6570\u91CF",visible:ct,footer:null,onCancel:function(){return ut(!1)},children:(0,e.jsxs)(n.Z,{form:it,name:"basic",labelCol:{span:8},wrapperCol:{span:16},initialValues:{remember:!0},onFinish:function(p){t.onUpdateMaterial(Me,p),ut(!1)},autoComplete:"off",children:[(0,e.jsx)(n.Z.Item,{name:"id",hidden:!0,children:(0,e.jsx)(w.Z,{})}),(0,e.jsx)(n.Z.Item,{label:"\u7269\u6599\u540D\u79F0",name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u7269\u6599\u540D\u79F0"}],children:(0,e.jsx)(w.Z,{disabled:!0})}),(0,e.jsx)(n.Z.Item,{label:"\u7269\u6599\u6570\u91CF",name:"BomQty",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u7269\u6599\u6570\u91CF"}],children:(0,e.jsx)(w.Z,{})}),(0,e.jsx)(n.Z.Item,{wrapperCol:{offset:8,span:16},children:(0,e.jsx)(O.Z,{type:"primary",htmlType:"submit",children:"\u786E\u5B9A"})})]})})]})},rn=an,$n=d(73935),un=d(75009),sn=function(t){var xe=(0,a.useState)({id:t.storeConfig.id,value:{name:t.storeConfig.name},children:[{id:t.deviceConfig.id,value:{name:t.deviceConfig.deviceName},children:[]}]}),se=(0,u.Z)(xe,2),Y=se[0],me=se[1],V=function(){var ee=JSON.parse(JSON.stringify(Y));t.foodMenuConfig.forEach(function(L,X){ee.children[0].children[X]={id:(0,Xe.x0)(),value:{name:L.name},children:[]},L==null||L.goodsConfig.forEach(function(Z,I){ee.children[0].children[X].children[I]={id:(0,Xe.x0)(),value:{name:Z.name},children:[]},Z==null||Z.bomConfig.forEach(function($,te){ee.children[0].children[X].children[I].children[te]={id:(0,Xe.x0)(),value:{name:$.name},children:[]},$==null||$.materialConfig.forEach(function(Q,re){ee.children[0].children[X].children[I].children[te].children[re]={id:(0,Xe.x0)(),value:{name:Q.name}}})})})}),me(ee)};return(0,a.useEffect)(function(){V()},[]),(0,e.jsx)(e.Fragment,{children:(0,e.jsx)(un.Z,{style:{width:"100%",height:"auto"},data:Y,behaviors:["drag-canvas","zoom-canvas"],nodeCfg:{autoWidth:!0}})})},on=sn,ln=d(54970),dn=d.n(ln),cn=function(t){var xe=function(){var me,V,R;switch(t.current){case 0:(me=t.storeConfig)!==null&&me!==void 0&&me.id?t.next():Re.default.error({message:"\u95E8\u5E97\u914D\u7F6E\u51FA\u9519",description:"\u8BF7\u9009\u62E9\u95E8\u5E97\uFF01",placement:"topRight"});break;case 1:(V=t.deviceConfig)!==null&&V!==void 0&&V.id?t.next():Re.default.error({message:"\u8BBE\u5907\u914D\u7F6E\u51FA\u9519",description:"\u8BF7\u9009\u62E9\u8BBE\u5907\uFF01",placement:"topRight"});break;case 2:((R=t.foodMenuConfig)===null||R===void 0?void 0:R.length)>0?t.next():Re.default.error({message:"\u83DC\u8C31\u914D\u7F6E\u51FA\u9519",description:"\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u83DC\u8C31\uFF01",placement:"topRight"});break;case 3:for(var ee=0;ee0&&(0,e.jsxs)(O.Z,{style:{margin:"0 8px"},onClick:t.prev,children:["\u4E0A\u4E00\u6B65\uFF1A",t.steps[t.current-1]]}),t.current2&&arguments[2]!==void 0?arguments[2]:!0,q=JSON.parse(JSON.stringify(Z)),fe=q.foodMenuConfig.find(function(J){return J.id===M});if(T&&fe)fe.goodsConfig=g;else{var ue=fe.goodsConfig.findIndex(function(J){return J.id===g.id});ue>-1&&fe.goodsConfig.splice(ue,1)}I(q)},Q=function(M,g){var T=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,q=JSON.parse(JSON.stringify(Z));q.foodMenuConfig.forEach(function(fe){var ue=fe.goodsConfig.find(function(A){return A.id===M});if(ue){if(T)ue.bomConfig=g;else{var J=ue.bomConfig.findIndex(function(A){return A.id===g.id});J>-1&&ue.bomConfig.splice(J,1)}I(q)}})},re=function(M,g){var T=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,q=JSON.parse(JSON.stringify(Z));q.foodMenuConfig.forEach(function(fe){fe.goodsConfig.forEach(function(ue){var J=ue.bomConfig.find(function(z){return z.id===M});if(J){if(T)J.materialConfig=g;else{var A=J.materialConfig.findIndex(function(z){return z.id===g.id});A>-1&&J.materialConfig.splice(A,1)}I(q)}})})},ge=function(M,g){var T=JSON.parse(JSON.stringify(Z));T.foodMenuConfig.forEach(function(q){q.goodsConfig.forEach(function(fe){var ue=fe.bomConfig.find(function(A){return A.id===M});if(ue){var J=ue.materialConfig.find(function(A){return A.id===g.id});J&&(J.BomQty=Number.parseFloat(g.BomQty)||0,I(T))}})})},ce=function(){ee(R+1)},le=function(){ee(R-1)},H=["\u95E8\u5E97\u914D\u7F6E","\u8BBE\u5907\u914D\u7F6E","\u83DC\u8C31\u914D\u7F6E","\u5546\u54C1\u914D\u7F6E","\u914D\u65B9\u914D\u7F6E","\u7269\u6599\u914D\u7F6E","\u786E\u8BA4\u914D\u7F6E"],pe=[(0,e.jsx)(Rt,{storeConfig:Z.storeConfig,current:R,steps:H,next:ce,onSelectedChange:$}),(0,e.jsx)(_t,{storeConfig:Z.storeConfig,deviceConfig:Z.deviceConfig,current:R,steps:H,prev:le,next:ce,onSelectedChange:$}),(0,e.jsx)($t,{foodMenuConfig:Z.foodMenuConfig,current:R,steps:H,prev:le,next:ce,onSelectedChange:$}),(0,e.jsx)(Jt,{deviceConfig:Z.deviceConfig,foodMenuConfig:Z.foodMenuConfig,current:R,steps:H,onAddGoodsToFoodMenu:te,prev:le,next:ce}),(0,e.jsx)(Xt,{foodMenuConfig:Z.foodMenuConfig,current:R,steps:H,prev:le,next:ce,onBomRelationGoods:Q}),(0,e.jsx)(rn,{foodMenuConfig:Z.foodMenuConfig,current:R,steps:H,onMaterialRelationBom:re,onUpdateMaterial:ge,prev:le,next:ce}),(0,e.jsx)(on,(0,Ae.Z)((0,Ae.Z)({},Z),{},{current:R,steps:H,prev:le}))];return(0,a.useEffect)(function(){console.log("\u5BF9\u8C61\u66F4\u65B0",Z)},[Z]),(0,e.jsxs)(Mt.ZP,{children:[(0,e.jsx)("div",{className:_().steps_navbar,children:(0,e.jsx)(ot.Z,{children:(0,e.jsx)(Ct.Z,{current:R,children:H.map(function(B){return(0,e.jsx)(hn,{title:B},B)})})})}),se?(0,e.jsx)(ot.Z,{children:(0,e.jsx)(Dt.ZP,{status:"success",title:"\u6210\u529F\u914D\u7F6E\u6240\u6709\u4FE1\u606F\uFF01",subTitle:"\u6B22\u8FCE\u518D\u6B21\u4F7F\u7528\uFF01",extra:[(0,e.jsx)(O.Z,{type:"primary",onClick:function(){I({storeConfig:{},deviceConfig:{},foodMenuConfig:[]}),ee(0),Y(!1)},children:"\u5FEB\u901F\u5F00\u59CB"},"console")]})}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(ot.Z,{children:(0,e.jsx)("div",{className:_().steps_content,children:pe[R]})}),(0,e.jsx)("div",{className:_().steps_navbar_bottom,children:(0,e.jsx)(ot.Z,{children:(0,e.jsx)(fn,(0,Ae.Z)((0,Ae.Z)({},Z),{},{current:R,steps:H,prev:le,next:ce,success:function(){return Y(!0)}}))})})]})]})},pn=mn}}]); +(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[7825,1322,1279,8922,7800,6398,6794,944,8208,7128],{87246:function(He){He.exports={add_row_content:"add_row_content___1MhOu",add_row_btn:"add_row_btn___55ubX"}},54970:function(He){He.exports={steps_btns:"steps_btns___1fzSt"}},88307:function(He){He.exports={store_config_container:"store_config_container___3YQ4e",choose_store_state:"choose_store_state___3iWn1"}},69038:function(He){He.exports={steps_navbar:"steps_navbar___xiemh",steps_navbar_bottom:"steps_navbar_bottom___3LJIq",steps_content:"steps_content___3jwbG",common_row:"common_row___3vO0H",choose_change_state:"choose_change_state___RcNtV",add_row_content:"add_row_content___3lFj7",add_row_btn:"add_row_btn___FtgXy",ant_descriptions_row:"ant_descriptions_row___1O_JD",ant_descriptions_item_title:"ant_descriptions_item_title___2AaU8",ant_descriptions_item_label:"ant_descriptions_item_label___3bihx",ant_descriptions_item_content:"ant_descriptions_item_content___1840s",current_selected_obj:"current_selected_obj___2DxAP",current_selected_cmp:"current_selected_cmp___2T66U",sure_add_btn:"sure_add_btn___c4Fz9",add_to_some_box:"add_to_some_box___1T4b6",wait_add_list:"wait_add_list___2n8fz",success_add_list:"success_add_list___2fDeC"}},60170:function(He,Zt,d){"use strict";d.r(Zt),d.d(Zt,{default:function(){return pn}});var Sn=d(57106),Dt=d(6129),Fn=d(57663),O=d(71577),jn=d(58024),ot=d(91894),Ae=d(11849),u=d(2824),Bn=d(35556),Ct=d(75899),a=d(67294),Et=d(69038),_=d.n(Et),Mt=d(78009),wn=d(71194),Ie=d(50146),In=d(77883),nt=d(85986),Tn=d(62999),yt=d(54680),c=d(39428),bn=d(34792),f=d(48086),K=d(3182),Dn=d(9715),n=d(55843),En=d(43358),h=d(34041),Mn=d(47673),w=d(4107),Ot=d(65899),k=d(48971),j={getOrgTree:function(){return(0,k.WY)("\u200B/kitchen/api\u200B/sysOrg\u200B/tree",{method:"GET"})},AddOrg:function(t){return(0,k.WY)("/kitchen/api/sysOrg/add",{method:"POST",data:(0,Ae.Z)({},t)})},UpdateOrg:function(t){return(0,k.WY)("\u200B/kitchen/api\u200B/sysOrg\u200B/edit",{method:"POST",data:(0,Ae.Z)({},t)})},getPayTemplateList:function(){return(0,k.WY)("/kitchen/api/paytemplate/getPayTemplatePageList",{method:"post",data:{current:1,pageSize:100}})},AddDeviceInfo:function(t){return(0,k.WY)("/kitchen/api/Device/AddDeviceInfo",{method:"POST",data:t})},UpdateDeviceInfo:function(t){return(0,k.WY)("/kitchen/api/Device/UpdateDeviceInfo",{method:"POST",data:t})},GetDicList:function(t){return(0,k.WY)("/kitchen/api/dict-data/dic-list/".concat(t),{method:"Get"})},GetDeviceType:function(){return(0,k.WY)("\u200B/kitchen/api/Device/GetDeviceType",{method:"GET"})},GetDeviceVersions:function(){return(0,k.WY)("\u200B/kitchen/api/Device/GetDeviceVersions",{method:"post"})},AddDeviceType:function(t){return(0,k.WY)("/kitchen/api/Device/AddDeviceType",{method:"POST",data:t})},GetDeviceInfoPage:function(t){return(0,k.WY)("/kitchen/api/Device/GetDeviceInfoPage",{method:"POST",data:t})},getpage:function(t,xe){return(0,k.WY)("/kitchen/api/sysOrg\u200B/page",{method:"GET",params:(0,Ae.Z)({},t)})},GetFoodMenuInfoPage:function(t){return(0,k.WY)("/kitchen/api/FoodMenu/GetFoodMenuInfoPage",{method:"POST",data:t})},AddFoodMenu:function(t){return(0,k.WY)("/kitchen/api/FoodMenu/AddUpdateFoodMenu",{method:"POST",data:t})},UpdateFoodMenu:function(t){return(0,k.WY)("/kitchen/api/FoodMenu/AddUpdateFoodMenu",{method:"POST",data:t})},GetDeviceGoods:function(t){return(0,k.WY)("/kitchen/api/Device/GetDeviceGoods",{method:"POST",data:t})},AddGoods:function(t){return(0,k.WY)("/kitchen/api/goods",{method:"POST",data:t})},UpdateGoods:function(t){return(0,k.WY)("/kitchen/api/goods",{method:"PUT",data:t})},GetUnitList:function(t){return(0,k.WY)("/kitchen/api/goods-unit/type",{method:"Post",data:t})},GetGoodsbigType:function(t){return(0,k.WY)("/kitchen/api/goods-type/big-goods-types",{method:"POST",data:t})},GetGoodsSmallType:function(t){return(0,k.WY)("/kitchen/api/goods-type/goods-types",{method:"POST",data:t})},GetCosRequestURL:function(t){return(0,k.WY)("/kitchen/api/systemconfig/GetCosRequestSignURL",{method:"POST",data:t})},CreateUnit:function(t){return(0,k.WY)("/kitchen/api/goods-unit",{method:"POST",data:t})},AddGoodsTypeListNew:function(t){return(0,k.WY)("/kitchen/api/goods-type/goods-type-new",{method:"post",data:t})},AddGoodsSmallType:function(t){return(0,k.WY)("/kitchen/api/goods-type",{method:"POST",data:t})},GetgoodsList:function(t){return(0,k.WY)("/kitchen/api/goods/goodss",{method:"Post",data:t})},GetBomPage:function(t){return(0,k.WY)("/kitchen/api/bom/getpage",{method:"Post",data:t})},AddBom:function(t){return(0,k.WY)("/kitchen/api/bom/add",{method:"Post",data:t})},UpdateBom:function(t){return(0,k.WY)("/kitchen/api/bom/update",{method:"Post",data:t})},GetBomTypePage:function(t){return(0,k.WY)("/kitchen/api/bom/getbomtypepage",{method:"Post",data:t})},CreateBomType:function(t){return(0,k.WY)("/kitchen/api/bom/addbomtype",{method:"Post",data:t})},AddMaterial:function(t){return(0,k.WY)("/kitchen/api/product/",{method:"POST",data:(0,Ae.Z)({},t)})},UpdateMaterial:function(t){return(0,k.WY)("/kitchen/api/product/",{method:"PUT",data:(0,Ae.Z)({},t)})},GetMaterialPage:function(t){return(0,k.WY)("/kitchen/api/product/product-list",{method:"Post",data:t})},GetMaterialTypeList:function(t){return(0,k.WY)("/kitchen/api/product-type/type-list",{method:"GET",params:(0,Ae.Z)({},t)})},GetMaterialUintList:function(t){return(0,k.WY)("/kitchen/api/unit/uint-list",{method:"GET",params:(0,Ae.Z)({},t)})},AddMaterialUnit:function(t){return(0,k.WY)("/kitchen/api/unit",{method:"POST",data:t})},AddMaterialType:function(t){return(0,k.WY)("/kitchen/api/product-type",{method:"POST",data:t})},QuickStartAdd:function(t){return(0,k.WY)("/kitchen/api/quickstart/add",{method:"POST",data:t})}},On=d(88307),et=d(49101),Xe=d(51496),e=d(85893),kt=h.Z.Option,at,At=function(t){var xe=(0,a.useState)(null),se=(0,u.Z)(xe,2),Y=se[0],me=se[1],V=(0,a.useState)(null),R=(0,u.Z)(V,2),ee=R[0],L=R[1],X=(0,a.useState)([]),Z=(0,u.Z)(X,2),I=Z[0],$=Z[1],te=(0,a.useState)(null),Q=(0,u.Z)(te,2),re=Q[0],ge=Q[1],ce=function(){re?t.handleOk(re):f.default.error("\u8BF7\u9009\u62E9\u5E97\u94FA\u5730\u5740")},le=function(M){if(M&&Y){Y.clearOverlays();var g=I.find(function(ue){return ue.uid===M});if(g){ge(g);var T=new BMapGL.Point(g.point.lng,g.point.lat);Y.centerAndZoom(T,16);var q=new BMapGL.Marker(T);Y.addOverlay(q);var fe=new BMapGL.InfoWindow(g.address,{width:200,height:100,title:g.title,message:g.address});q.addEventListener("click",function(){Y.openInfoWindow(fe,T)})}}},H=function(M){if(at&&(clearTimeout(at),at=null),Y)if(ee===null){var g=new BMapGL.LocalSearch(Y,{onSearchComplete:function(q){q&&$(JSON.parse(JSON.stringify(q._pois)))}});at=setTimeout(function(){g.search(M)},300),L(g)}else at=setTimeout(function(){ee.search(M)},300)},pe=function(){var M=new BMapGL.Map("baidu_map_container");M.enableScrollWheelZoom(!0),M.setHeading(64.5),M.setTilt(73);var g=new BMapGL.LocalCity;g.get(function(T){T&&M.centerAndZoom(new BMapGL.Point(T.center.lng,T.center.lat),12)}),me(M)};return(0,a.useEffect)(function(){pe()},[]),(0,e.jsx)(e.Fragment,{children:(0,e.jsxs)(Ie.Z,{width:800,title:"\u9009\u62E9\u5E97\u94FA\u5750\u6807",visible:t.isShowBaiduMap,onOk:ce,onCancel:t.handleCancel,children:[(0,e.jsx)(h.Z,{showSearch:!0,placeholder:"\u8BF7\u8F93\u5165\u5730\u5740",onChange:le,onSearch:H,defaultActiveFirstOption:!1,showArrow:!1,filterOption:!1,notFoundContent:null,style:{width:"100%",marginBottom:"10px"},size:"large",children:I==null?void 0:I.map(function(B){return(0,e.jsxs)(kt,{value:B.uid,children:[B.title," \u3010",B.address,"\u3011"]},B.uid)})}),(0,e.jsx)("div",{id:"baidu_map_container",style:{width:"750px",height:"700px"}})]})})},Gt=At,St="message",Pt=function(t){var xe=(0,a.useState)(0),se=(0,u.Z)(xe,2),Y=se[0],me=se[1],V=(0,a.useState)(20),R=(0,u.Z)(V,2),ee=R[0],L=R[1],X=w.Z.TextArea,Z=h.Z.Option,I=h.Z.OptGroup,$=n.Z.useForm(),te=(0,u.Z)($,1),Q=te[0],re=(0,a.useState)([]),ge=(0,u.Z)(re,2),ce=ge[0],le=ge[1],H=(0,a.useState)([]),pe=(0,u.Z)(H,2),B=pe[0],M=pe[1],g=function(){var oe=(0,K.Z)((0,c.Z)().mark(function ne(b){var Ze,ae;return(0,c.Z)().wrap(function(Ce){for(;;)switch(Ce.prev=Ce.next){case 0:if(f.default.loading("\u6B63\u5728\u914D\u7F6E",St),!b.id){Ce.next=8;break}return Ce.next=4,j.UpdateOrg(b);case 4:Ze=Ce.sent,Ze.succeeded?(f.default.success("\u4FEE\u6539\u6210\u529F"),ye(!1),U.current.reload()):f.default.error(Ze.errors||"\u4FEE\u6539\u51FA\u9519"),Ce.next=13;break;case 8:return b.code=(0,Xe.x0)(),Ce.next=11,j.AddOrg(b);case 11:ae=Ce.sent,ae.succeeded?(f.default.success("\u6DFB\u52A0\u6210\u529F"),U.current.reload(),ye(!1)):f.default.error(JSON.stringify(ae.errors)||"\u6DFB\u52A0\u51FA\u9519");case 13:f.default.destroy(St);case 14:case"end":return Ce.stop()}},ne)}));return function(b){return oe.apply(this,arguments)}}(),T=(0,a.useState)({id:""}),q=(0,u.Z)(T,2),fe=q[0],ue=q[1],J=(0,a.useState)(!1),A=(0,u.Z)(J,2),z=A[0],ye=A[1],U=(0,a.useRef)(),we=function(){var oe=(0,K.Z)((0,c.Z)().mark(function ne(){var b,Ze;return(0,c.Z)().wrap(function(Se){for(;;)switch(Se.prev=Se.next){case 0:return Se.next=2,j.getOrgTree();case 2:b=Se.sent,b.statusCode===200?(Ze=[{key:"0",parentId:"0",title:"\u9876\u7EA7",value:"0",children:b.data||[]}],le(Ze)):f.default.error(b.errors||"\u83B7\u53D6\u95E8\u5E97\u67B6\u6784\u51FA\u9519");case 4:case"end":return Se.stop()}},ne)}));return function(){return oe.apply(this,arguments)}}(),je=function(){var oe=(0,K.Z)((0,c.Z)().mark(function ne(){var b;return(0,c.Z)().wrap(function(ae){for(;;)switch(ae.prev=ae.next){case 0:return ae.next=2,j.getPayTemplateList();case 2:b=ae.sent,b.statusCode===200?M(b.data.data):f.default.error(b.errors||"\u83B7\u53D6\u83B7\u53D6\u652F\u4ED8\u65B9\u5F0F\u51FA\u9519");case 4:case"end":return ae.stop()}},ne)}));return function(){return oe.apply(this,arguments)}}(),Te=[{title:"\u4E3B\u952E",dataIndex:"id",tip:"key",hideInSearch:!0,hideInTable:!0},{title:"\u95E8\u5E97\u540D\u79F0",dataIndex:"name"},{title:"\u95E8\u5E97\u7F16\u7801",dataIndex:"code"},{title:"\u95E8\u5E97\u7C7B\u578B",dataIndex:"type",valueEnum:{0:{text:"\u673A\u6784"},1:{text:"\u914D\u9001\u4E2D\u5FC3"},2:{text:"\u76F4\u8425\u5E97"},3:{text:"\u52A0\u76DF\u5E97"}}},{title:"\u7535\u8BDD",dataIndex:"tel",hideInSearch:!0},{title:"\u6392\u5E8F",dataIndex:"sort",valueType:"digit",hideInSearch:!0},{title:"\u63CF\u8FF0",dataIndex:"remark",valueType:"textarea",hideInSearch:!0},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(ne,b){return[(0,e.jsx)("a",{onClick:function(){ue(b),ye(!0),Q.setFieldsValue(b)},children:"\u66F4\u65B0"},"config")]}}],Ue=(0,a.useState)([]),Ge=(0,u.Z)(Ue,2),Ke=Ge[0],Pe=Ge[1],be=(0,a.useState)(!1),Be=(0,u.Z)(be,2),De=Be[0],Ne=Be[1],_e=function(ne){var b=Q.getFieldsValue(!0);b.store_Loc="".concat(ne.point.lng.toFixed(10),",").concat(ne.point.lat.toFixed(10)),b.store_Addr=ne.address,Q.setFieldsValue(b),Ne(!1),f.default.success("\u95E8\u5E97\u5750\u6807\u8BBE\u7F6E\u6210\u529F\uFF01")};return(0,a.useEffect)(function(){t.storeConfig.id&&Pe([t.storeConfig.id]),we(),je()},[]),(0,e.jsxs)(e.Fragment,{children:[De&&(0,e.jsx)(Gt,{isShowBaiduMap:De,handleOk:_e,handleCancel:function(){return Ne(!1)}}),(0,e.jsx)(Ie.Z,{width:600,title:fe.id?"\u7F16\u8F91\u95E8\u5E97\u67B6\u6784":"\u65B0\u589E\u95E8\u5E97\u67B6\u6784",visible:z,footer:!1,onCancel:function(){return ye(!1)},children:(0,e.jsxs)(n.Z,{form:Q,layout:"horizontal",preserve:!1,labelCol:{span:4},onFinish:g,children:[(0,e.jsx)(n.Z.Item,{name:"id",hidden:!0,children:(0,e.jsx)(w.Z,{})}),(0,e.jsx)(n.Z.Item,{name:"code",hidden:!0,label:"\u95E8\u5E97\u7F16\u7801",children:(0,e.jsx)(w.Z,{placeholder:"\u8BF7\u8F93\u5165\u95E8\u5E97\u7F16\u7801"})}),(0,e.jsx)(n.Z.Item,{name:"name",label:"\u95E8\u5E97\u540D\u79F0",rules:[{required:!0,max:64}],children:(0,e.jsx)(w.Z,{placeholder:"\u8BF7\u8F93\u5165\u540D\u79F0"})}),(0,e.jsx)(n.Z.Item,{name:"pid",label:"\u6240\u5C5E\u673A\u6784",rules:[{required:!0}],children:(0,e.jsx)(yt.Z,{style:{width:"100%"},dropdownStyle:{maxHeight:400,overflow:"auto"},treeData:ce,placeholder:"\u8BF7\u9009\u62E9\u6240\u5C5E\u673A\u6784",treeDefaultExpandAll:!0})}),(0,e.jsx)(n.Z.Item,{name:"type",label:"\u95E8\u5E97\u7C7B\u578B",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u95E8\u5E97\u7C7B\u578B"}],children:(0,e.jsx)(h.Z,{placeholder:"\u8BF7\u9009\u62E9\u673A\u6784\u7C7B\u578B",children:(0,e.jsxs)(I,{children:[(0,e.jsx)(h.Z.Option,{value:2,children:"\u76F4\u8425\u5E97"}),(0,e.jsx)(h.Z.Option,{value:3,children:"\u52A0\u76DF\u5E97"})]})})}),(0,e.jsx)(n.Z.Item,{name:"payTemplateId",label:"\u652F\u4ED8\u6A21\u677F",children:(0,e.jsx)(h.Z,{placeholder:"\u8BF7\u9009\u62E9\u652F\u4ED8\u6A21\u677F",children:B==null?void 0:B.map(function(oe){return(0,e.jsx)(Z,{value:oe.id,children:oe.name},oe.id)})})}),(0,e.jsx)("div",{className:_().add_row_content,children:(0,e.jsx)(n.Z.Item,{label:"\u5E97\u94FA\u5750\u6807",name:"store_Loc",rules:[{required:!0,max:100,pattern:/^[-\+]?\d+(\.\d+)\,[-\+]?\d+(\.\d+)$/,message:"\u7ECF\u7EAC\u5EA6\u683C\u5F0F\u4E0D\u5BF9"}],children:(0,e.jsx)(w.Z,{style:{width:"55%"},placeholder:"104.070734,30.575041"})})}),(0,e.jsx)(n.Z.Item,{label:"\u5E97\u94FA\u5730\u5740",name:"store_Addr",rules:[{required:!0,max:100}],children:(0,e.jsx)(w.Z,{placeholder:"\u6210\u90FD\u5E02\u6B66\u4FAF\u533A\u6842\u6EAA\u8857\u9053\u73AF\u7403\u4E2D\u5FC3N5-9111C"})}),(0,e.jsx)(n.Z.Item,{name:"tel",label:"\u7535\u8BDD",rules:[{max:20}],children:(0,e.jsx)(w.Z,{placeholder:"\u8BF7\u8F93\u5165\u8054\u7CFB\u7535\u8BDD"})}),(0,e.jsx)(n.Z.Item,{name:"sort",label:"\u6392\u5E8F",children:(0,e.jsx)(nt.Z,{min:1,step:1,precision:0})}),(0,e.jsx)(n.Z.Item,{name:"remark",label:"\u5907\u6CE8",children:(0,e.jsx)(X,{rows:4,rules:[{max:500}]})}),(0,e.jsx)(n.Z.Item,{children:(0,e.jsx)(O.Z,{type:"primary",htmlType:"submit",children:"\u786E\u5B9A"})})]})}),(0,e.jsx)(Ot.Z,{search:!1,style:{width:"100%"},headerTitle:"\u95E8\u5E97\u5217\u8868",actionRef:U,rowKey:"id",rowSelection:{type:"radio",onChange:function(ne,b){Pe(ne),t.onSelectedChange("storeConfig",b[0])},selectedRowKeys:Ke},request:function(){var oe=(0,K.Z)((0,c.Z)().mark(function ne(b){var Ze,ae,Se;return(0,c.Z)().wrap(function(Ee){for(;;)switch(Ee.prev=Ee.next){case 0:return Ze=[],ae=0,Ee.next=4,j.getpage(b).then(function(Fe){Ze=Fe.data.data,ae=Fe.data.total});case 4:return Se=Ze.filter(function(Fe){return Fe.type===2||Fe.type===3}),Ee.abrupt("return",{data:Se,success:!0,total:ae});case 6:case"end":return Ee.stop()}},ne)}));return function(ne){return oe.apply(this,arguments)}}(),columns:Te,pagination:{current:Y,pageSize:ee,onChange:function(ne,b){me(ne),L(b)}},toolBarRender:function(){return[(0,e.jsx)(O.Z,{icon:(0,e.jsx)(et.Z,{}),type:"primary",onClick:function(){Q.resetFields(),ue({id:""}),ye(!0)},children:"\u65B0\u5EFA"},"button")]}})]})},Rt=Pt,qe=d(16894),Ut=d(87246),Ft=d.n(Ut),jt="message",Nt=function(t){var xe=h.Z.Option,se=h.Z.OptGroup,Y=n.Z.useForm(),me=(0,u.Z)(Y,1),V=me[0],R=n.Z.useForm(),ee=(0,u.Z)(R,1),L=ee[0],X=(0,a.useState)([]),Z=(0,u.Z)(X,2),I=Z[0],$=Z[1],te=(0,a.useState)([]),Q=(0,u.Z)(te,2),re=Q[0],ge=Q[1],ce=(0,a.useState)({}),le=(0,u.Z)(ce,2),H=le[0],pe=le[1],B=(0,a.useState)([]),M=(0,u.Z)(B,2),g=M[0],T=M[1],q=(0,a.useState)([]),fe=(0,u.Z)(q,2),ue=fe[0],J=fe[1],A=(0,a.useState)(!1),z=(0,u.Z)(A,2),ye=z[0],U=z[1],we=(0,a.useState)({id:""}),je=(0,u.Z)(we,2),Te=je[0],Ue=je[1],Ge=(0,a.useState)(!1),Ke=(0,u.Z)(Ge,2),Pe=Ke[0],be=Ke[1],Be=function(){var F=(0,K.Z)((0,c.Z)().mark(function S(r){var i,s;return(0,c.Z)().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:if(f.default.loading("\u6B63\u5728\u914D\u7F6E",jt),!r.id){m.next=8;break}return m.next=4,j.UpdateDeviceInfo(r);case 4:i=m.sent,i.succeeded?(f.default.success("\u4FEE\u6539\u6210\u529F"),be(!1),b.current.reload()):f.default.error(i.errors||"\u4FEE\u6539\u51FA\u9519"),m.next=12;break;case 8:return m.next=10,j.AddDeviceInfo(r);case 10:s=m.sent,s.succeeded?(f.default.success("\u6DFB\u52A0\u6210\u529F"),b.current.reload(),be(!1)):f.default.error(s.errors||"\u6DFB\u52A0\u6210\u51FA\u9519");case 12:f.default.destroy(jt),b.current.reload();case 14:case"end":return m.stop()}},S)}));return function(r){return F.apply(this,arguments)}}(),De=function(){var F=(0,K.Z)((0,c.Z)().mark(function S(){var r;return(0,c.Z)().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,j.GetDicList("DeviceClientType");case 2:r=s.sent,r.statusCode===200?(r.data.forEach(function(x){x.code=x.code,x.value=x.code}),$(r.data)):f.default.error(r.errors||"\u83B7\u53D6\u8BBE\u5907\u7C7B\u578B\u51FA\u9519");case 4:case"end":return s.stop()}},S)}));return function(){return F.apply(this,arguments)}}(),Ne=function(){var F=(0,K.Z)((0,c.Z)().mark(function S(){var r;return(0,c.Z)().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,j.getOrgTree();case 2:r=s.sent,r.statusCode===200?T(r.data):f.default.error(r.errors||"\u83B7\u53D6\u7EC4\u7EC7\u67B6\u6784\u51FA\u9519");case 4:case"end":return s.stop()}},S)}));return function(){return F.apply(this,arguments)}}(),_e=function(){var F=(0,K.Z)((0,c.Z)().mark(function S(){var r,i;return(0,c.Z)().wrap(function(x){for(;;)switch(x.prev=x.next){case 0:return x.next=2,j.GetDeviceType();case 2:r=x.sent,r.statusCode===200?(i={},r.data.forEach(function(m){i[m.id]={text:m.name}}),pe(i),ge(r.data)):f.default.error(r.errors||"\u83B7\u53D6\u8BBE\u5907\u5206\u7C7B\u51FA\u9519");case 4:case"end":return x.stop()}},S)}));return function(){return F.apply(this,arguments)}}(),oe=function(){var F=(0,K.Z)((0,c.Z)().mark(function S(){var r;return(0,c.Z)().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,j.GetDeviceVersions();case 2:r=s.sent,r.statusCode===200?J(r.data):f.default.error(r.errors||"\u83B7\u53D6\u8BBE\u5907\u7248\u672C\u51FA\u9519");case 4:case"end":return s.stop()}},S)}));return function(){return F.apply(this,arguments)}}(),ne=function(){var F=(0,K.Z)((0,c.Z)().mark(function S(r){var i;return(0,c.Z)().wrap(function(x){for(;;)switch(x.prev=x.next){case 0:return x.next=2,j.AddDeviceType(r);case 2:i=x.sent,i.data?(f.default.success("\u8BBE\u5907\u5206\u7C7B\u6DFB\u52A0\u6210\u529F\uFF01"),U(!1),_e()):f.default.error(i.errors||"\u6DFB\u52A0\u8BBE\u5907\u5206\u7C7B\u51FA\u9519");case 4:case"end":return x.stop()}},S)}));return function(r){return F.apply(this,arguments)}}(),b=(0,a.useRef)(),Ze=(0,a.useState)([]),ae=(0,u.Z)(Ze,2),Se=ae[0],Ce=ae[1],Ee=[{title:"\u4E3B\u952E",dataIndex:"id",hideInSearch:!0,hideInTable:!0,tip:"\u89C4\u5219\u540D\u79F0\u662F\u552F\u4E00\u7684 key"},{title:"\u8BBE\u5907\u540D\u79F0",dataIndex:"deviceName",valueType:"textarea"},{title:"\u6240\u5C5E\u95E8\u5E97",dataIndex:"orgId",hideInSearch:!0,render:function(S,r){return(0,e.jsx)("div",{children:t.storeConfig.name})}},{title:"\u8BBE\u5907\u7C7B\u578B",dataIndex:"deviceTypeKey",valueEnum:I,hideInSearch:!0},{title:"\u8BBE\u5907\u5206\u7C7B",dataIndex:"deviceTypeId",valueEnum:H},{title:"\u72B6\u6001",dataIndex:"status",valueEnum:{0:{text:"\u6B63\u5E38",status:"Processing"},1:{text:"\u505C\u7528",status:"Success"}},hideInSearch:!0},{title:"\u8BBE\u5907\u5730\u5740",dataIndex:"deviceAddr",search:!1,valueType:"textarea"},{title:"\u5750\u6807",dataIndex:"deviceLoc",valueType:"textarea",search:!1},{title:"\u8BBE\u5907\u901A\u9053\u6570\u91CF",dataIndex:"materialQuantity",valueType:"textarea",search:!1},{title:"\u8BBE\u5907\u552F\u4E00key",dataIndex:"autoKey",search:!1},{title:"\u5F52\u5C5E\u95E8\u5E97\u552F\u4E00key",dataIndex:"orgKey",search:!1},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(S,r){return[(0,e.jsx)("a",{onClick:function(){Ue(r),be(!0),L.setFieldsValue(r)},children:"\u66F4\u65B0"},"config")]}}],Fe=(0,a.useState)(0),ze=(0,u.Z)(Fe,2),Ve=ze[0],Me=ze[1],Je=(0,a.useState)(20),Qe=(0,u.Z)(Je,2),Le=Qe[0],Oe=Qe[1];return(0,a.useEffect)(function(){var F;(F=t.deviceConfig)!==null&&F!==void 0&&F.id&&Ce([t.deviceConfig.id]),Ne(),_e(),De(),oe()},[]),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(qe.ZP,{style:{width:"100%"},headerTitle:"\u8BBE\u5907\u4FE1\u606F",actionRef:b,rowKey:"id",search:!1,pagination:{current:Ve,pageSize:Le,onChange:function(S,r){Me(S),Oe(r)}},request:function(){var F=(0,K.Z)((0,c.Z)().mark(function S(r){var i,s;return(0,c.Z)().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:return i=[],s=0,m.next=4,j.GetDeviceInfoPage(r).then(function(ie){i=ie.data.data,s=ie.data.total});case 4:return i=i.filter(function(ie){return ie.orgId===t.storeConfig.id}),m.abrupt("return",{data:i,success:!0,total:s});case 6:case"end":return m.stop()}},S)}));return function(S){return F.apply(this,arguments)}}(),columns:Ee,rowSelection:{type:"radio",onChange:function(S,r){Ce(S),t.onSelectedChange("deviceConfig",r[0])},selectedRowKeys:Se},toolBarRender:function(){return[(0,e.jsx)(O.Z,{icon:(0,e.jsx)(et.Z,{}),type:"primary",onClick:function(){L.resetFields();var r=L.getFieldsValue();r.orgId=t.storeConfig.id,r.deviceLoc=t.storeConfig.store_Loc,r.deviceAddr=t.storeConfig.store_Addr,L.setFieldsValue(r),Ue({id:""}),be(!0)},children:"\u65B0\u5EFA"},"button")]}}),(0,e.jsx)(Ie.Z,{width:600,title:Te.id?"\u7F16\u8F91\u8BBE\u5907":"\u65B0\u589E\u8BBE\u5907",visible:Pe,footer:!1,onCancel:function(){return be(!1)},children:(0,e.jsxs)(n.Z,{layout:"Horizontal",labelCol:{span:6},preserve:!1,form:L,onFinish:Be,children:[(0,e.jsx)(n.Z.Item,{name:"id",hidden:!0,children:(0,e.jsx)(w.Z,{})}),(0,e.jsx)(n.Z.Item,{label:"\u8BBE\u5907\u540D\u79F0",name:"deviceName",rules:[{required:!0,max:50}],children:(0,e.jsx)(w.Z,{})}),(0,e.jsx)(n.Z.Item,{label:"\u8BBE\u5907\u7C7B\u578B",name:"deviceTypeKey",rules:[{required:!0}],children:(0,e.jsx)(h.Z,{children:I.map(function(F,S){return(0,e.jsx)(h.Z.Option,{index:S,value:F.code,children:F.value},F.code)})})}),(0,e.jsx)(n.Z.Item,{name:"orgId",label:"\u5F52\u5C5E\u95E8\u5E97",rules:[{required:!0}],children:(0,e.jsx)(yt.Z,{disabled:!0,style:{width:"100%"},dropdownStyle:{maxHeight:400,overflow:"auto"},treeData:g,placeholder:"\u5F52\u5C5E\u95E8\u5E97",treeDefaultExpandAll:!0})}),(0,e.jsxs)("div",{className:Ft().add_row_content,children:[(0,e.jsx)(n.Z.Item,{label:"\u8BBE\u5907\u5206\u7C7B",name:"deviceTypeId",rules:[{required:!0}],children:(0,e.jsx)(h.Z,{style:{width:"75%"},children:re.map(function(F,S){return(0,e.jsx)(h.Z.Option,{index:S,value:F.id,children:F.name},F.id)})})}),(0,e.jsx)(O.Z,{type:"primary",className:Ft().add_row_btn,onClick:function(){U(!0),V.resetFields()},children:"\u6DFB\u52A0\u5206\u7C7B"})]}),(0,e.jsx)(n.Z.Item,{noStyle:!0,shouldUpdate:function(S,r){return S.deviceTypeKey!==r.deviceTypeKey},children:function(S){var r=S.getFieldValue;return r("deviceTypeKey")==="TMC"?(0,e.jsx)(n.Z.Item,{name:"deviceVersion",label:"\u8BBE\u5907\u7248\u672C",initialValue:"WorryFreeEdition",children:(0,e.jsx)(h.Z,{children:ue.map(function(i,s){return(0,e.jsx)(h.Z.Option,{index:s,value:i.code,children:i.name},i.code)})})}):null}}),(0,e.jsx)(n.Z.Item,{label:"\u8BBE\u5907\u5750\u6807",name:"deviceLoc",children:(0,e.jsx)(w.Z,{placeholder:"104.070734,30.575041"})}),(0,e.jsx)(n.Z.Item,{label:"\u72B6\u6001",name:"status",children:(0,e.jsx)(h.Z,{placeholder:"\u8BF7\u9009\u62E9\u72B6\u6001",defaultValue:0,children:(0,e.jsxs)(se,{children:[(0,e.jsx)(h.Z.Option,{value:0,children:"\u6B63\u5E38"}),(0,e.jsx)(h.Z.Option,{value:1,children:"\u505C\u7528"})]})})}),(0,e.jsx)(n.Z.Item,{noStyle:!0,shouldUpdate:function(S,r){return S.deviceTypeKey!==r.deviceTypeKey},children:function(S){var r=S.getFieldValue;return r("deviceTypeKey")==="TMC"?(0,e.jsx)(n.Z.Item,{label:"\u8BBE\u5907\u901A\u9053\u6570\u91CF",name:"materialQuantity",children:(0,e.jsx)(nt.Z,{style:{width:"100%"}})}):null}}),(0,e.jsx)(n.Z.Item,{label:"\u8BBE\u5907\u8BE6\u7EC6\u5730\u5740",name:"deviceAddr",children:(0,e.jsx)(w.Z,{placeholder:"\u6210\u90FD\u5E02\u6B66\u4FAF\u533A\u6842\u6EAA\u8857\u9053\u73AF\u7403\u4E2D\u5FC3N5-9111C"})}),(0,e.jsx)(n.Z.Item,{children:(0,e.jsx)(O.Z,{type:"primary",htmlType:"submit",children:"\u786E\u5B9A"})})]})}),(0,e.jsx)(Ie.Z,{title:"\u6DFB\u52A0\u8BBE\u5907\u5206\u7C7B",visible:ye,footer:!1,onCancel:function(){return U(!1)},children:(0,e.jsxs)(n.Z,{layout:"vertical",onFinish:ne,form:V,children:[(0,e.jsx)(n.Z.Item,{name:"id",hidden:!0,children:(0,e.jsx)(w.Z,{})}),(0,e.jsx)(n.Z.Item,{label:"\u7C7B\u578B\u540D\u79F0",name:"name",rules:[{required:!0,max:50}],children:(0,e.jsx)(w.Z,{})}),(0,e.jsx)(n.Z.Item,{children:(0,e.jsx)(O.Z,{type:"primary",htmlType:"submit",children:"\u4FDD\u5B58"})})]})})]})},_t=Nt,tt="message",Lt=function(t){var xe=n.Z.useForm(),se=(0,u.Z)(xe,1),Y=se[0],me=function(){var J=(0,K.Z)((0,c.Z)().mark(function A(z){return(0,c.Z)().wrap(function(U){for(;;)switch(U.prev=U.next){case 0:if(!z.id){U.next=13;break}return U.prev=1,f.default.loading("\u6B63\u5728\u4FEE\u6539",tt),U.next=5,j.UpdateFoodMenu(z).then(function(we){f.default.destroy(tt),we.data?(f.default.success("\u4FEE\u6539\u6210\u529F"),$(!1),te.current.reload()):f.default.error("\u4FEE\u6539\u5931\u8D25")});case 5:U.next=11;break;case 7:U.prev=7,U.t0=U.catch(1),f.default.destroy(tt),f.default.error("\u4FEE\u6539\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01");case 11:U.next=23;break;case 13:return U.prev=13,f.default.loading("\u6B63\u5728\u6DFB\u52A0",tt),U.next=17,j.AddFoodMenu(z).then(function(we){f.default.destroy(tt),we.data?(f.default.success("\u6DFB\u52A0\u6210\u529F"),$(!1),te.current.reload()):f.default.error("\u6DFB\u52A0\u5931\u8D25")});case 17:U.next=23;break;case 19:U.prev=19,U.t1=U.catch(13),f.default.destroy(tt),f.default.error("\u6DFB\u52A0\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01");case 23:case"end":return U.stop()}},A,null,[[1,7],[13,19]])}));return function(z){return J.apply(this,arguments)}}(),V=(0,a.useState)({id:""}),R=(0,u.Z)(V,2),ee=R[0],L=R[1],X=(0,a.useState)(!1),Z=(0,u.Z)(X,2),I=Z[0],$=Z[1],te=(0,a.useRef)(),Q=(0,a.useState)(1),re=(0,u.Z)(Q,2),ge=re[0],ce=re[1],le=(0,a.useState)(10),H=(0,u.Z)(le,2),pe=H[0],B=H[1],M=(0,a.useState)([]),g=(0,u.Z)(M,2),T=g[0],q=g[1],fe=[{title:"\u4E3B\u952E",dataIndex:"id",hideInSearch:!0,hideInTable:!0,tip:"\u89C4\u5219\u540D\u79F0\u662F\u552F\u4E00\u7684 key"},{title:"\u83DC\u8C31\u7F16\u7801",dataIndex:"code",valueType:"textarea"},{title:"\u83DC\u8C31\u540D\u79F0",dataIndex:"name",valueType:"textarea"},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(A,z){return[(0,e.jsx)("a",{onClick:function(){L(z),$(!0),Y.setFieldsValue(z)},children:"\u66F4\u65B0"},"config")]}}],ue=function(){if(t.foodMenuConfig.length>0){var A=[];t.foodMenuConfig.forEach(function(z){A.push(z.id)}),q(A)}};return(0,a.useEffect)(function(){ue()},[]),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(qe.ZP,{style:{width:"100%"},headerTitle:"\u83DC\u8C31\u5217\u8868",actionRef:te,rowKey:"id",search:!1,pagination:{current:ge,pageSize:pe,onChange:function(A,z){ce(A),B(z)}},request:function(){var J=(0,K.Z)((0,c.Z)().mark(function A(z){var ye,U;return(0,c.Z)().wrap(function(je){for(;;)switch(je.prev=je.next){case 0:return ye=[],U=0,je.next=4,j.GetFoodMenuInfoPage(z).then(function(Te){ye=Te.data.data,U=Te.data.total});case 4:return je.abrupt("return",{data:ye,success:!0,total:U});case 5:case"end":return je.stop()}},A)}));return function(A){return J.apply(this,arguments)}}(),columns:fe,rowSelection:{type:"checkbox",onChange:function(A,z){q(A),t.onSelectedChange("foodMenuConfig",z)},selectedRowKeys:T},toolBarRender:function(){return[(0,e.jsx)(O.Z,{icon:(0,e.jsx)(et.Z,{}),type:"primary",onClick:function(){Y.resetFields();var z=Y.getFieldsValue();z.code=(0,Xe.x0)().substring(0,20),Y.setFieldsValue(z),L({id:""}),$(!0)},children:"\u65B0\u5EFA"},"button")]}}),(0,e.jsx)(Ie.Z,{width:600,title:ee.id?"\u7F16\u8F91\u83DC\u8C31":"\u65B0\u589E\u83DC\u8C31",visible:I,footer:!1,onCancel:function(){return $(!1)},children:(0,e.jsxs)(n.Z,{form:Y,layout:"Horizontal",preserve:!1,onFinish:me,style:{width:"100%"},children:[(0,e.jsx)(n.Z.Item,{name:"id",hidden:!0,children:(0,e.jsx)(w.Z,{})}),(0,e.jsx)(n.Z.Item,{label:"\u83DC\u8C31\u7F16\u7801",name:"code",rules:[{required:!0,max:50}],children:(0,e.jsx)(w.Z,{disabled:!0})}),(0,e.jsx)(n.Z.Item,{label:"\u83DC\u8C31\u540D\u79F0",name:"name",rules:[{required:!0,max:20}],children:(0,e.jsx)(w.Z,{})}),(0,e.jsx)(n.Z.Item,{children:(0,e.jsx)(O.Z,{type:"primary",htmlType:"submit",children:"\u786E\u5B9A"})})]})})]})},$t=Lt,kn=d(57338),mt=d(273),An=d(66456),pt=d(64411),Gn=d(77576),Bt=d(12028),Pn=d(43185),Wt=d(93009),Rn=d(74379),Re=d(38648),Kt=d(84391),zt=d(9669),Yt=d.n(zt),wt="message",Vt=function(t){var xe=h.Z.Option,se=h.Z.OptGroup,Y=(0,a.useState)(),me=(0,u.Z)(Y,2),V=me[0],R=me[1],ee=(0,a.useState)([]),L=(0,u.Z)(ee,2),X=L[0],Z=L[1],I=(0,a.useState)([]),$=(0,u.Z)(I,2),te=$[0],Q=$[1],re=(0,a.useState)([]),ge=(0,u.Z)(re,2),ce=ge[0],le=ge[1],H=n.Z.useForm(),pe=(0,u.Z)(H,1),B=pe[0],M=(0,a.useState)(!1),g=(0,u.Z)(M,2),T=g[0],q=g[1],fe=(0,a.useState)(!1),ue=(0,u.Z)(fe,2),J=ue[0],A=ue[1],z=n.Z.useForm(),ye=(0,u.Z)(z,1),U=ye[0],we=(0,a.useState)(!1),je=(0,u.Z)(we,2),Te=je[0],Ue=je[1],Ge=(0,a.useState)(0),Ke=(0,u.Z)(Ge,2),Pe=Ke[0],be=Ke[1],Be=(0,a.useState)(10),De=(0,u.Z)(Be,2),Ne=De[0],_e=De[1],oe=function(){var l=(0,K.Z)((0,c.Z)().mark(function o(){var C;return(0,c.Z)().wrap(function(E){for(;;)switch(E.prev=E.next){case 0:return E.next=2,j.GetUnitList({current:1,pageSize:200});case 2:C=E.sent,C.statusCode===200&&Z(C.data.data);case 4:case"end":return E.stop()}},o)}));return function(){return l.apply(this,arguments)}}(),ne=function(){var l=(0,K.Z)((0,c.Z)().mark(function o(){var C;return(0,c.Z)().wrap(function(E){for(;;)switch(E.prev=E.next){case 0:return E.next=2,j.GetGoodsbigType({current:1,status:0,pageSize:1e3});case 2:C=E.sent,C.statusCode===200&&Q(C.data.data);case 4:case"end":return E.stop()}},o)}));return function(){return l.apply(this,arguments)}}(),b=function(){var l=(0,K.Z)((0,c.Z)().mark(function o(){var C;return(0,c.Z)().wrap(function(E){for(;;)switch(E.prev=E.next){case 0:return E.next=2,j.GetGoodsSmallType({current:1,status:0,pageSize:1e3});case 2:C=E.sent,C.statusCode===200&&le(C.data.data);case 4:case"end":return E.stop()}},o)}));return function(){return l.apply(this,arguments)}}(),Ze={name:"file",showUploadList:!1,multiple:!1,accept:".png, .jpg, .jpeg, .gif",headers:{"Content-Type":"application/octet-stream"},customRequest:function(o){var C=o.action,D=o.file,E=o.headers,he=o.onError,de=o.onProgress,Ye=o.onSuccess,vn=o.withCredentials;console.log("\u4E0A\u4F20\u56FE\u7247",D);var gn=D.name.lastIndexOf("."),xn=D.name.substr(gn+1),Tt=null;return j.GetCosRequestURL({directory:"goods",fileExtension:xn,method:"PUT"}).then(function(ht){C=ht.allUrl;var bt=new FileReader;bt.readAsArrayBuffer(D),bt.onload=function(Zn){Tt=Zn.target.result,Yt().put(C,Tt,{withCredentials:vn,headers:E,onUploadProgress:function(st){var Cn=st.total,yn=st.loaded;de({percent:Math.round(yn/Cn*100).toFixed(2)},D)}}).then(function(xt){if(xt.status==200||xt.statusText=="OK"){R(ht.seeUrl);var st=B.getFieldsValue();st.imgUrl=ht.seeUrl,B.setFieldsValue(st)}}).catch(he)}}),{abort:function(){console.log("upload progress is aborted.")}}}},ae=function(){var l=(0,K.Z)((0,c.Z)().mark(function o(C){var D,E;return(0,c.Z)().wrap(function(de){for(;;)switch(de.prev=de.next){case 0:if(delete C.imgUrl1,f.default.loading("\u6B63\u5728\u914D\u7F6E",wt),!C.id){de.next=9;break}return de.next=5,j.UpdateGoods(C);case 5:D=de.sent,D.succeeded?(f.default.success("\u4FEE\u6539\u6210\u529F"),Le(!1),Oe.current.reload()):f.default.error(D.errors||"\u4FEE\u6539\u51FA\u9519"),de.next=13;break;case 9:return de.next=11,j.AddGoods(C);case 11:E=de.sent,E.data?(f.default.success("\u6DFB\u52A0\u6210\u529F"),Oe.current.reload(),Le(!1)):f.default.error(E.errors||"\u6DFB\u52A0\u6210\u51FA\u9519");case 13:f.default.destroy(wt);case 14:case"end":return de.stop()}},o)}));return function(C){return l.apply(this,arguments)}}(),Se=[{title:"\u4E3B\u952E",dataIndex:"id",hideInTable:!0,hideInSearch:!0},{title:"\u56FE\u7247\u5730\u5740",dataIndex:"imgUrl",hideInTable:!0,hideInSearch:!0},{title:"\u7F16\u7801",dataIndex:"code",valueType:"textarea"},{title:"\u540D\u79F0",dataIndex:"name",valueType:"textarea"},{title:"\u57FA\u7840\u4EF7\u683C",dataIndex:"price",hideInForm:!0,renderText:function(o){return"".concat(o,"\xA5")},hideInSearch:!0},{title:"\u4F1A\u5458\u4EF7",dataIndex:"vipPrice",hideInForm:!0,renderText:function(o){return"".concat(o,"\xA5")},hideInSearch:!0},{title:"\u5546\u54C1\u5C0F\u7C7B",dataIndex:"goodsTypeName",hideInForm:!0,hideInSearch:!0},{title:"\u5546\u54C1\u7C7B\u578B",dataIndex:"goodsTypeId",hideInForm:!0,hideInTable:!0},{title:"\u5546\u54C1\u5C5E\u6027",dataIndex:"goodsAttribute",hideInForm:!0,valueEnum:{0:{text:"\u5355\u54C1"},1:{text:"\u5957\u9910"}}},{title:"\u72B6\u6001",dataIndex:"status",hideInForm:!0,valueEnum:{0:{text:"\u6B63\u5E38",status:"Processing"},1:{text:"\u505C\u7528",status:"Error"},2:{text:"\u5220\u9664",status:"Error"}}},{title:"\u521B\u5EFA\u65F6\u95F4",dataIndex:"createAt",valueType:"date"},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(o,C){return[(0,e.jsx)("a",{onClick:function(){Ve(C),Le(!0),B.setFieldsValue(C)},children:"\u66F4\u65B0"},"config")]}}],Ce=[{title:"\u540D\u79F0",dataIndex:"name",valueType:"textarea"}],Ee=(0,a.useState)({id:""}),Fe=(0,u.Z)(Ee,2),ze=Fe[0],Ve=Fe[1],Me=(0,a.useState)(!1),Je=(0,u.Z)(Me,2),Qe=Je[0],Le=Je[1],Oe=(0,a.useRef)(),F=(0,a.useState)([]),S=(0,u.Z)(F,2),r=S[0],i=S[1],s=(0,a.useState)([]),x=(0,u.Z)(s,2),m=x[0],ie=x[1],ve=(0,a.useState)(!1),ke=(0,u.Z)(ve,2),dt=ke[0],ct=ke[1],ut=(0,a.useState)([]),ft=(0,u.Z)(ut,2),gt=ft[0],it=ft[1],G=(0,a.useState)(t.foodMenuConfig[0].id),p=(0,u.Z)(G,2),v=p[0],W=p[1],N=[{title:"\u540D\u79F0",dataIndex:"name",valueType:"textarea"},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(o,C){return[(0,e.jsx)("a",{onClick:function(){t.onAddGoodsToFoodMenu(v,C,!1)},children:"\u79FB\u51FA\u83DC\u8C31"})]}}],P=function(){if(m.length===0){Re.default.error({message:"\u5546\u54C1\u6DFB\u52A0\u5230\u83DC\u8C31\u51FA\u9519",description:"\u8BF7\u9009\u62E9\u5546\u54C1",placement:"topRight"});return}t.onAddGoodsToFoodMenu(v,m),i([]),ie([])};return(0,a.useEffect)(function(){oe(),ne(),b()},[]),(0,a.useEffect)(function(){var l=t.foodMenuConfig.find(function(o){return o.id===v});it(l?l.goodsConfig:[])},[t.foodMenuConfig,v]),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(Ie.Z,{width:600,title:ze.id?"\u7F16\u8F91\u5546\u54C1":"\u65B0\u589E\u5546\u54C1",visible:Qe,footer:!1,onCancel:function(){return Le(!1)},children:(0,e.jsxs)(n.Z,{labelCol:{span:4},layout:"horizontal",preserve:!1,onFinish:ae,form:B,children:[(0,e.jsx)(n.Z.Item,{name:"id",hidden:!0,children:(0,e.jsx)(w.Z,{})}),(0,e.jsx)(n.Z.Item,{name:"code",label:"\u5546\u54C1\u7F16\u7801",hidden:!0,children:(0,e.jsx)(w.Z,{disabled:!0})}),(0,e.jsx)(n.Z.Item,{name:"name",label:"\u5546\u54C1\u540D\u79F0",rules:[{required:!0}],children:(0,e.jsx)(w.Z,{})}),(0,e.jsxs)("div",{className:_().add_row_content,children:[(0,e.jsx)(n.Z.Item,{name:"goodsUintId",label:"\u5546\u54C1\u5355\u4F4D",rules:[{required:!0}],children:(0,e.jsx)(h.Z,{style:{width:"75%"},children:X.map(function(l,o){return(0,e.jsx)(h.Z.Option,{index:o,value:l.id,children:l.name},l.id)})})}),(0,e.jsx)(O.Z,{type:"primary",className:_().add_row_btn,onClick:function(){return q(!0)},children:"\u6DFB\u52A0\u5355\u4F4D"})]}),(0,e.jsxs)("div",{className:_().add_row_content,children:[(0,e.jsx)(n.Z.Item,{name:"parentTypeID",label:"\u5546\u54C1\u5927\u7C7B",rules:[{required:!0}],children:(0,e.jsx)(h.Z,{style:{width:"75%"},children:te.map(function(l,o){return(0,e.jsx)(h.Z.Option,{index:o,value:l.id,children:l.name},l.id)})})}),(0,e.jsx)(O.Z,{type:"primary",className:_().add_row_btn,onClick:function(){return A(!0)},children:"\u6DFB\u52A0\u5927\u7C7B"})]}),(0,e.jsxs)("div",{className:_().add_row_content,children:[(0,e.jsx)(n.Z.Item,{name:"goodsTypeId",label:"\u5546\u54C1\u5C0F\u7C7B",rules:[{required:!0}],children:(0,e.jsx)(h.Z,{style:{width:"75%"},children:ce.map(function(l,o){return(0,e.jsx)(h.Z.Option,{index:o,value:l.id,children:l.goodsType_Name},l.id)})})}),(0,e.jsx)(O.Z,{type:"primary",className:_().add_row_btn,onClick:function(){return Ue(!0)},children:"\u6DFB\u52A0\u5C0F\u7C7B"})]}),(0,e.jsx)(n.Z.Item,{name:"price",label:"\u5546\u54C1\u4EF7\u683C",rules:[{required:!0}],children:(0,e.jsx)(nt.Z,{placeholder:"\u4EF7\u683C",min:0,style:{width:"100%"}})}),(0,e.jsx)(n.Z.Item,{name:"vipPrice",label:"\u4F1A\u5458\u4EF7\u683C",children:(0,e.jsx)(nt.Z,{placeholder:"\u4F1A\u5458\u4EF7",min:0,style:{width:"100%"}})}),(0,e.jsx)(n.Z.Item,{name:"goodsAttribute",label:"\u5546\u54C1\u5C5E\u6027",defaultValue:0,rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u5546\u54C1\u5C5E\u6027"}],children:(0,e.jsx)(h.Z,{placeholder:"\u8BF7\u9009\u62E9\u5546\u54C1\u5C5E\u6027",children:(0,e.jsxs)(se,{children:[(0,e.jsx)(h.Z.Option,{value:0,children:"\u5355\u54C1"}),(0,e.jsx)(h.Z.Option,{value:1,children:"\u5957\u9910"})]})})}),(0,e.jsx)(n.Z.Item,{name:"status",label:"\u72B6\u6001",defaultValue:0,rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u72B6\u6001"}],children:(0,e.jsx)(h.Z,{placeholder:"\u8BF7\u9009\u62E9\u72B6\u6001",children:(0,e.jsxs)(se,{children:[(0,e.jsx)(h.Z.Option,{value:0,children:"\u6B63\u5E38"}),(0,e.jsx)(h.Z.Option,{value:1,children:"\u505C\u7528"})]})})}),(0,e.jsx)(n.Z.Item,{name:"remark",label:"\u5907\u6CE8",children:(0,e.jsx)(w.Z,{})}),(0,e.jsx)(n.Z.Item,{name:"imgUrl",hidden:!0,children:(0,e.jsx)(w.Z,{})}),(0,e.jsx)(n.Z.Item,{name:"imgUrl1",label:"\u5546\u54C1\u56FE\u7247\u5730\u5740",children:(0,e.jsx)(Wt.Z,(0,Ae.Z)((0,Ae.Z)({},Ze),{},{children:ze.imgUrl?(0,e.jsx)("img",{src:ze.imgUrl,alt:"avatar",style:{width:"100%"}}):(0,e.jsx)(O.Z,{icon:(0,e.jsx)(Kt.Z,{}),children:"\u4E0A\u4F20"})}))}),(0,e.jsx)(n.Z.Item,{label:"\u662F\u5426\u79F0\u91CD",name:"isWeigh",valuePropName:"checked",initialValue:"false",children:(0,e.jsx)(Bt.Z,{checkedChildren:"\u662F",unCheckedChildren:"\u5426",defaultChecked:"false"})}),(0,e.jsx)(n.Z.Item,{children:(0,e.jsx)(O.Z,{type:"primary",htmlType:"submit",children:"\u786E\u5B9A"})})]})}),(0,e.jsx)(qe.ZP,{actionRef:Oe,style:{width:"100%"},headerTitle:"\u5546\u54C1\u5217\u8868",rowKey:"id",search:{labelWidth:120},pagination:{current:Pe,pageSize:Ne,onChange:function(o,C){be(o),_e(C)}},request:function(){var l=(0,K.Z)((0,c.Z)().mark(function o(C){var D,E;return(0,c.Z)().wrap(function(de){for(;;)switch(de.prev=de.next){case 0:return D=[],E=0,de.next=4,j.GetgoodsList(C).then(function(Ye){D=Ye.data.data,E=Ye.data.total});case 4:return de.abrupt("return",{data:D,success:!0,total:E});case 5:case"end":return de.stop()}},o)}));return function(o){return l.apply(this,arguments)}}(),columns:Se,toolBarRender:function(){return[(0,e.jsx)(O.Z,{icon:(0,e.jsx)(et.Z,{}),type:"primary",onClick:function(){B.resetFields(),Ve({id:""}),Le(!0)},children:"\u65B0\u5EFA"},"button"),(0,e.jsx)(O.Z,{type:"primary",onClick:function(){ct(!0)},children:"\u5173\u8054\u83DC\u8C31"},"button")]}}),(0,e.jsx)(Ie.Z,{title:"\u65B0\u5EFA\u5546\u54C1\u5355\u4F4D",width:640,visible:T,bodyStyle:{padding:"32px 40px 48px"},footer:null,onCancel:function(){q(!1)},destroyOnClose:!0,maskClosable:!1,children:(0,e.jsxs)(n.Z,{layout:"vertical",preserve:!1,onFinish:function(){var l=(0,K.Z)((0,c.Z)().mark(function o(C){var D;return(0,c.Z)().wrap(function(he){for(;;)switch(he.prev=he.next){case 0:return he.next=2,j.CreateUnit(C);case 2:D=he.sent,D.data?(f.default.success("\u5546\u54C1\u5355\u4F4D\u6DFB\u52A0\u6210\u529F"),q(!1),oe()):f.default.error(D.errors||"\u5546\u54C1\u5355\u4F4D\u6DFB\u52A0\u5931\u8D25");case 4:case"end":return he.stop()}},o)}));return function(o){return l.apply(this,arguments)}}(),children:[(0,e.jsx)(n.Z.Item,{name:"id",hidden:!0,children:(0,e.jsx)(w.Z,{})}),(0,e.jsx)(n.Z.Item,{name:"name",label:"\u5546\u54C1\u5355\u4F4D\u540D\u79F0",rules:[{required:!0,max:64}],children:(0,e.jsx)(w.Z,{placeholder:"\u5546\u54C1\u5355\u4F4D\u540D\u79F0"})}),(0,e.jsx)(n.Z.Item,{name:"status",label:"\u72B6\u6001",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u72B6\u6001"}],children:(0,e.jsx)(h.Z,{placeholder:"\u8BF7\u9009\u62E9\u72B6\u6001",children:(0,e.jsxs)(se,{children:[(0,e.jsx)(h.Z.Option,{value:"0",children:"\u6B63\u5E38"}),(0,e.jsx)(h.Z.Option,{value:"1",children:"\u505C\u7528"})]})})}),(0,e.jsx)(n.Z.Item,{children:(0,e.jsx)(O.Z,{type:"primary",htmlType:"submit",children:"\u4FDD\u5B58"})})]})}),(0,e.jsx)(Ie.Z,{title:"\u65B0\u5EFA\u5546\u54C1\u5927\u7C7B",width:640,visible:J,bodyStyle:{padding:"32px 40px 48px"},footer:null,onCancel:function(){A(!1)},destroyOnClose:!0,children:(0,e.jsxs)(n.Z,{form:U,labelCol:{span:6},layout:"horizontal",preserve:!1,onFinish:function(){var l=(0,K.Z)((0,c.Z)().mark(function o(C){var D;return(0,c.Z)().wrap(function(he){for(;;)switch(he.prev=he.next){case 0:return he.next=2,j.AddGoodsTypeListNew(C);case 2:D=he.sent,D.data?(f.default.success("\u5546\u54C1\u5927\u7C7B\u6DFB\u52A0\u6210\u529F"),A(!1),ne()):f.default.error(D.errors||"\u5546\u54C1\u5927\u7C7B\u6DFB\u52A0\u5931\u8D25");case 4:case"end":return he.stop()}},o)}));return function(o){return l.apply(this,arguments)}}(),children:[(0,e.jsx)(n.Z.Item,{name:"id",hidden:!0,children:(0,e.jsx)(w.Z,{})}),(0,e.jsx)(n.Z.Item,{name:"name",label:"\u5546\u54C1\u5927\u7C7B\u540D\u79F0",rules:[{required:!0,max:50}],children:(0,e.jsx)(w.Z,{})}),(0,e.jsx)(n.Z.Item,{name:"status",label:"\u72B6\u6001",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u72B6\u6001"}],children:(0,e.jsx)(h.Z,{placeholder:"\u8BF7\u9009\u62E9\u72B6\u6001",children:(0,e.jsxs)(se,{children:[(0,e.jsx)(h.Z.Option,{value:"0",children:"\u6B63\u5E38"}),(0,e.jsx)(h.Z.Option,{value:"1",children:"\u505C\u7528"})]})})}),(0,e.jsx)(n.Z.Item,{name:"remark",label:"\u5907\u6CE8",children:(0,e.jsx)(w.Z,{})}),(0,e.jsx)(n.Z.Item,{children:(0,e.jsx)(O.Z,{type:"primary",htmlType:"submit",children:"\u4FDD\u5B58"})})]})}),(0,e.jsx)(Ie.Z,{title:"\u65B0\u5EFA\u5546\u54C1\u5C0F\u7C7B",width:640,visible:Te,bodyStyle:{padding:"32px 40px 48px"},footer:null,onCancel:function(){Ue(!1)},destroyOnClose:!0,children:(0,e.jsxs)(n.Z,{labelCol:{span:6},layout:"horizontal",preserve:!1,onFinish:function(){var l=(0,K.Z)((0,c.Z)().mark(function o(C){var D;return(0,c.Z)().wrap(function(he){for(;;)switch(he.prev=he.next){case 0:return he.next=2,j.AddGoodsSmallType(C);case 2:D=he.sent,D.data?(f.default.success("\u5546\u54C1\u5C0F\u7C7B\u6DFB\u52A0\u6210\u529F"),Ue(!1),b()):f.default.error(D.errors||"\u5546\u54C1\u5C0F\u7C7B\u6DFB\u52A0\u5931\u8D25");case 4:case"end":return he.stop()}},o)}));return function(o){return l.apply(this,arguments)}}(),children:[(0,e.jsx)(n.Z.Item,{name:"id",hidden:!0,children:(0,e.jsx)(w.Z,{})}),(0,e.jsx)(n.Z.Item,{name:"goodsType_Name",label:"\u5546\u54C1\u5C0F\u7C7B\u540D\u79F0",rules:[{required:!0,max:50}],children:(0,e.jsx)(w.Z,{})}),(0,e.jsx)(n.Z.Item,{name:"status",label:"\u72B6\u6001",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u72B6\u6001"}],children:(0,e.jsx)(h.Z,{placeholder:"\u8BF7\u9009\u62E9\u72B6\u6001",children:(0,e.jsxs)(se,{children:[(0,e.jsx)(h.Z.Option,{value:"0",children:"\u6B63\u5E38"}),(0,e.jsx)(h.Z.Option,{value:"1",children:"\u505C\u7528"})]})})}),(0,e.jsx)(n.Z.Item,{name:"remark",label:"\u5907\u6CE8",children:(0,e.jsx)(w.Z,{})}),(0,e.jsx)(n.Z.Item,{children:(0,e.jsx)(O.Z,{type:"primary",htmlType:"submit",children:"\u4FDD\u5B58"})})]})}),(0,e.jsxs)(mt.Z,{width:800,title:"\u5546\u54C1\u6DFB\u52A0\u5230\u83DC\u8C31",placement:"right",onClose:function(){return ct(!1)},visible:dt,children:[(0,e.jsxs)("div",{style:{display:"flex",alignItems:"center",marginBottom:"10px"},children:[(0,e.jsx)("div",{className:_().current_selected_obj,children:"\u5F53\u524D\u83DC\u8C31\uFF1A"}),(0,e.jsx)(h.Z,{className:_().current_selected_cmp,onChange:function(o){W(o)},placeholder:"\u8BF7\u9009\u62E9\u83DC\u8C31",value:v,size:"large",children:t.foodMenuConfig.map(function(l){return(0,e.jsx)(xe,{value:l.id,children:l.name},l.id)})})]}),(0,e.jsxs)("div",{className:_().add_to_some_box,children:[(0,e.jsx)(qe.ZP,{actionRef:Oe,className:_().wait_add_list,headerTitle:"\u5F85\u6DFB\u52A0\u5546\u54C1\u5217\u8868",rowKey:"id",search:!1,pagination:{current:Pe,pageSize:Ne,onChange:function(o,C){be(o),_e(C)}},request:function(){var l=(0,K.Z)((0,c.Z)().mark(function o(C){var D,E;return(0,c.Z)().wrap(function(de){for(;;)switch(de.prev=de.next){case 0:return D=[],C.goodsTypeId!=null&&(C.goodsTypeId=goodsTypes[C.goodsTypeId].goodsTypeId),E=0,de.next=5,j.GetgoodsList(C).then(function(Ye){D=Ye.data.data,E=Ye.data.total});case 5:return de.abrupt("return",{data:D,success:!0,total:E});case 6:case"end":return de.stop()}},o)}));return function(o){return l.apply(this,arguments)}}(),columns:Ce,rowSelection:{type:"checkbox",onSelect:function(o,C){var D=JSON.parse(JSON.stringify(m)),E=JSON.parse(JSON.stringify(r)),he=D.findIndex(function(Ye){return Ye.id===o.id}),de=E.findIndex(function(Ye){return Ye===o.id});C?(he<0&&D.push(o),de<0&&E.push(o.id)):(he>-1&&D.splice(he,1),de>-1&&E.splice(de,1)),ie(D),i(E)},onChange:function(o,C){o.length===0&&i([]),C.length===0&&ie([])},selectedRowKeys:r}}),(0,e.jsx)(pt.Z,{className:_().success_add_list,rowKey:"id",columns:N,dataSource:gt})]}),(0,e.jsx)(O.Z,{className:_().sure_add_btn,type:"primary",onClick:P,children:"\u786E\u5B9A\u6DFB\u52A0"})]})]})},Jt=Vt,Un=d(49111),Qt=d(19650),Nn=d(71153),Ht=d(60331),qt=function(t){var xe,se,Y=n.Z.useForm(),me=(0,u.Z)(Y,1),V=me[0],R=function(){var r=(0,K.Z)((0,c.Z)().mark(function i(s){return(0,c.Z)().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:s.id?j.UpdateBom(s).then(function(ie){ie.data?f.default.success("\u4FEE\u6539\u6210\u529F"):f.default.error("\u4FEE\u6539\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),De.current.reload(),Be(!1)}):j.AddBom(s).then(function(ie){ie.data?(f.default.success("\u6DFB\u52A0\u6210\u529F"),De.current.reload(),Be(!1)):f.default.error("\u6DFB\u52A0\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01")});case 1:case"end":return m.stop()}},i)}));return function(s){return r.apply(this,arguments)}}(),ee=[{title:"\u4E3B\u952E",dataIndex:"id",hideInTable:!0,hideInSearch:!0},{title:"\u914D\u65B9\u7F16\u7801",dataIndex:"code",hideInForm:!0,hideInSearch:!0},{title:"\u914D\u65B9\u540D\u79F0",dataIndex:"name",hideInForm:!0,hideInSearch:!0},{title:"\u6392\u5E8F",dataIndex:"sort",hideInForm:!0,hideInSearch:!0},{title:"\u914D\u65B9\u5206\u7C7B",dataIndex:"bomTypeList",search:!1,width:450,render:function(i,s){return(0,e.jsx)(Qt.Z,{children:ue.filter(function(x){var m=s.bomTypeList.find(function(ve){return ve===x.id}),ie=ue.find(function(ve){return ve.id===m});return ie!=null||void 0}).map(function(x){return(0,e.jsx)(Ht.Z,{color:"#87d068",children:x.name},x.id)})})}},{title:"\u914D\u65B9\u7C7B\u578B",dataIndex:"isMain",hideInForm:!0,valueEnum:{false:{text:"\u8F85\u6599\u914D\u65B9",status:"Processing"},true:{text:"\u4E3B\u6599\u914D\u65B9",status:"Success"}}},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(i,s){return[(0,e.jsx)("a",{type:"primary",onClick:function(){Be(!0),Ge(s),V.setFieldsValue(s)},children:"\u66F4\u65B0"},"primary3")]}}],L=[{title:"\u914D\u65B9\u540D\u79F0",dataIndex:"name",hideInForm:!0,hideInSearch:!0}],X=(0,a.useState)(0),Z=(0,u.Z)(X,2),I=Z[0],$=Z[1],te=(0,a.useState)(5),Q=(0,u.Z)(te,2),re=Q[0],ge=Q[1],ce=(0,a.useState)([]),le=(0,u.Z)(ce,2),H=le[0],pe=le[1],B=(0,a.useState)([]),M=(0,u.Z)(B,2),g=M[0],T=M[1],q=(0,a.useState)([]),fe=(0,u.Z)(q,2),ue=fe[0],J=fe[1],A=(0,a.useState)(!1),z=(0,u.Z)(A,2),ye=z[0],U=z[1],we=function(){var r=(0,K.Z)((0,c.Z)().mark(function i(){var s;return(0,c.Z)().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:return m.next=2,j.GetBomTypePage({current:1,pagesize:1e3});case 2:s=m.sent,s.statusCode===200&&J(s.data.data);case 4:case"end":return m.stop()}},i)}));return function(){return r.apply(this,arguments)}}(),je=(0,a.useState)({id:""}),Te=(0,u.Z)(je,2),Ue=Te[0],Ge=Te[1],Ke=(0,a.useState)(!1),Pe=(0,u.Z)(Ke,2),be=Pe[0],Be=Pe[1],De=(0,a.useRef)(),Ne=(0,a.useState)(!1),_e=(0,u.Z)(Ne,2),oe=_e[0],ne=_e[1],b=(0,a.useState)(""),Ze=(0,u.Z)(b,2),ae=Ze[0],Se=Ze[1],Ce=(0,a.useState)([]),Ee=(0,u.Z)(Ce,2),Fe=Ee[0],ze=Ee[1],Ve=(0,a.useState)([]),Me=(0,u.Z)(Ve,2),Je=Me[0],Qe=Me[1],Le=[{title:"\u914D\u65B9\u540D\u79F0",dataIndex:"name",hideInForm:!0,hideInSearch:!0},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(i,s){return[(0,e.jsx)("a",{type:"primary",onClick:function(){t.onBomRelationGoods(s.goodsId,s,!1)},children:"\u79FB\u9664\u914D\u65B9"},"primary3")]}}],Oe=function(){var i=[];t.foodMenuConfig.forEach(function(s){var x=s.id;s.goodsConfig&&s.goodsConfig.forEach(function(m){m.foodMenuId=x;var ie=i.find(function(ve){return ve.id===m.id});ie||i.push(m)})}),ae||Se(i[0].id),ze(i)},F=function(){var i=Fe.find(function(s){return s.id===ae});i&&i.bomConfig?Qe(i.bomConfig):Qe([])},S=function(){if(H.length===0){Re.default.error({message:"\u914D\u65B9\u5173\u8054\u5546\u54C1\u51FA\u9519",description:"\u8BF7\u9009\u62E9\u914D\u65B9",placement:"topRight"});return}var i=Fe.find(function(s){return s.id===ae});i&&(H.forEach(function(s){s.foodMenuId=i.foodMenuId,s.goodsId=i.id}),t.onBomRelationGoods(i.id,H),T([]),pe([]))};return(0,a.useEffect)(function(){we()},[]),(0,a.useEffect)(function(){Oe()},[t.foodMenuConfig]),(0,a.useEffect)(function(){F()},[Fe,ae]),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(Ie.Z,{width:600,title:Ue.id?"\u7F16\u8F91\u914D\u65B9":"\u65B0\u589E\u914D\u65B9",visible:be,footer:!1,onCancel:function(){return Be(!1)},children:(0,e.jsxs)(n.Z,{labelCol:{span:4},layout:"horizontal",preserve:!1,onFinish:R,form:V,children:[(0,e.jsx)(n.Z.Item,{name:"id",hidden:!0,children:(0,e.jsx)(w.Z,{})}),(0,e.jsx)(n.Z.Item,{name:"code",label:"\u914D\u65B9\u7F16\u7801",rules:[{required:!0}],children:(0,e.jsx)(w.Z,{disabled:!0,placeholder:"\u914D\u65B9\u7F16\u7801"})}),(0,e.jsx)(n.Z.Item,{name:"name",label:"\u914D\u65B9\u540D\u79F0",rules:[{required:!0}],children:(0,e.jsx)(w.Z,{placeholder:"\u914D\u65B9\u540D\u79F0"})}),(0,e.jsxs)("div",{className:_().add_row_content,children:[(0,e.jsx)(n.Z.Item,{name:"bomTypeList",label:"\u914D\u65B9\u7C7B\u578B",rules:[{required:!0}],children:(0,e.jsx)(h.Z,{style:{width:"70%"},mode:"multiple",allowClear:!0,children:ue.map(function(r,i){return(0,e.jsx)(h.Z.Option,{index:r.id,value:r.id,children:r.name},r.id)})})}),(0,e.jsx)(O.Z,{type:"primary",className:_().add_row_btn,onClick:function(){return U(!0)},children:"\u6DFB\u52A0\u914D\u65B9\u7C7B\u578B"})]}),(0,e.jsx)(n.Z.Item,{name:"isMain",label:"\u914D\u65B9\u7C7B\u578B",children:(0,e.jsx)(Bt.Z,{checkedChildren:"\u4E3B\u6599",unCheckedChildren:"\u8F85\u6599"})}),(0,e.jsx)(n.Z.Item,{name:"sort",label:"\u6392\u5E8F",rules:[{required:!0}],children:(0,e.jsx)(nt.Z,{placeholder:"\u6392\u5E8F",min:1})}),(0,e.jsx)(n.Z.Item,{children:(0,e.jsx)(O.Z,{type:"primary",htmlType:"submit",children:"\u786E\u5B9A"})})]})}),(0,e.jsx)(Ie.Z,{title:"\u65B0\u5EFA\u914D\u65B9\u7C7B\u578B",width:640,bodyStyle:{padding:"32px 40px 48px"},visible:ye,footer:null,onCancel:function(){U(!1)},destroyOnClose:!0,maskClosable:!1,children:(0,e.jsxs)(n.Z,{layout:"vertical",preserve:!1,initialValues:t==null?void 0:t.values,onFinish:function(){var r=(0,K.Z)((0,c.Z)().mark(function i(s){var x;return(0,c.Z)().wrap(function(ie){for(;;)switch(ie.prev=ie.next){case 0:return ie.next=2,j.CreateBomType(s);case 2:x=ie.sent,x.data?(f.default.success("\u914D\u65B9\u7C7B\u522B\u6DFB\u52A0\u6210\u529F"),U(!1),we()):f.default.error(x.errors||"\u914D\u65B9\u7C7B\u522B\u6DFB\u52A0\u5931\u8D25");case 4:case"end":return ie.stop()}},i)}));return function(i){return r.apply(this,arguments)}}(),children:[(0,e.jsx)(n.Z.Item,{name:"id",hidden:!0,children:(0,e.jsx)(w.Z,{})}),(0,e.jsx)(n.Z.Item,{name:"name",label:"\u914D\u65B9\u7C7B\u578B\u540D\u79F0",rules:[{required:!0,max:64,whitespace:!0}],children:(0,e.jsx)(w.Z,{placeholder:"\u8BF7\u8F93\u5165\u914D\u65B9\u7C7B\u578B\u540D\u79F0"})}),(0,e.jsx)(n.Z.Item,{name:"pertain",label:"\u5F52\u5C5E",defaultValue:t==null||(xe=t.values)===null||xe===void 0?void 0:xe.pertain,rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u7C7B\u578B\u5F52\u5C5E"}],children:(0,e.jsxs)(h.Z,{placeholder:"\u8BF7\u9009\u62E9\u7C7B\u578B\u5F52\u5C5E",children:[(0,e.jsx)(Option,{value:"1",children:"\u65E0"}),(0,e.jsx)(Option,{value:"2",children:"TMC "})]})}),(0,e.jsx)(n.Z.Item,{name:"status",label:"\u72B6\u6001",defaultValue:t==null||(se=t.values)===null||se===void 0?void 0:se.status,rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u72B6\u6001"}],children:(0,e.jsxs)(h.Z,{placeholder:"\u8BF7\u9009\u62E9\u72B6\u6001",children:[(0,e.jsx)(Option,{value:"0",children:"\u6B63\u5E38"}),(0,e.jsx)(Option,{value:"1",children:"\u505C\u7528"})]})}),(0,e.jsx)(n.Z.Item,{children:(0,e.jsx)(O.Z,{type:"primary",htmlType:"submit",children:"\u4FDD\u5B58"})})]})}),(0,e.jsx)(qe.ZP,{actionRef:De,style:{width:"100%"},headerTitle:"\u914D\u65B9\u5217\u8868",rowKey:"id",pagination:{current:I,pageSize:re,onChange:function(i,s){$(i),ge(s)}},search:!1,request:function(){var r=(0,K.Z)((0,c.Z)().mark(function i(s){var x,m;return(0,c.Z)().wrap(function(ve){for(;;)switch(ve.prev=ve.next){case 0:return x=[],m=0,ve.next=4,j.GetBomPage(s).then(function(ke){x=ke.data.data,m=ke.data.total});case 4:return ve.abrupt("return",{data:x,success:!0,total:m});case 5:case"end":return ve.stop()}},i)}));return function(i){return r.apply(this,arguments)}}(),columns:ee,toolBarRender:function(){return[(0,e.jsx)(O.Z,{icon:(0,e.jsx)(et.Z,{}),type:"primary",onClick:function(){V.resetFields();var s=V.getFieldsValue();s.code=(0,Xe.x0)().substring(0,20),V.setFieldsValue(s),Ge({id:""}),Be(!0)},children:"\u65B0\u5EFA"},"button"),(0,e.jsx)(O.Z,{type:"primary",onClick:function(){ne(!0)},children:"\u5173\u8054\u5546\u54C1"},"button")]}}),(0,e.jsxs)(mt.Z,{width:800,title:"\u914D\u65B9\u5173\u8054\u5546\u54C1",placement:"right",onClose:function(){return ne(!1)},visible:oe,children:[(0,e.jsxs)("div",{style:{display:"flex",alignItems:"center",marginBottom:"10px"},children:[(0,e.jsx)("div",{className:_().current_selected_obj,children:"\u5F53\u524D\u5546\u54C1\uFF1A"}),(0,e.jsx)(h.Z,{className:_().current_selected_cmp,onChange:function(i){Se(i)},placeholder:"\u8BF7\u9009\u62E9\u5546\u54C1",value:ae,size:"large",children:Fe.map(function(r){return(0,e.jsx)(Option,{value:r.id,children:r.name},r.id)})})]}),(0,e.jsxs)("div",{className:_().add_to_some_box,children:[(0,e.jsx)(qe.ZP,{actionRef:De,className:_().wait_add_list,headerTitle:"\u914D\u65B9\u5217\u8868",rowKey:"id",pagination:{current:I,pageSize:re,onChange:function(i,s){$(i),ge(s)}},search:!1,request:function(){var r=(0,K.Z)((0,c.Z)().mark(function i(s){var x,m;return(0,c.Z)().wrap(function(ve){for(;;)switch(ve.prev=ve.next){case 0:return x=[],m=0,ve.next=4,j.GetBomPage(s).then(function(ke){x=ke.data.data,m=ke.data.total});case 4:return ve.abrupt("return",{data:x,success:!0,total:m});case 5:case"end":return ve.stop()}},i)}));return function(i){return r.apply(this,arguments)}}(),columns:L,rowSelection:{type:"checkbox",onSelect:function(i,s){var x=JSON.parse(JSON.stringify(H)),m=JSON.parse(JSON.stringify(g)),ie=x.findIndex(function(ke){return ke.id===i.id}),ve=m.findIndex(function(ke){return ke===i.id});s?(ie<0&&x.push(i),ve<0&&m.push(i.id)):(ie>-1&&x.splice(ie,1),ve>-1&&m.splice(ve,1)),pe(x),T(m)},onChange:function(i,s){i.length===0&&T([]),s.length===0&&pe([])},selectedRowKeys:g}}),(0,e.jsx)(pt.Z,{className:_().success_add_list,rowKey:"id",columns:Le,dataSource:Je})]}),(0,e.jsx)(O.Z,{className:_().sure_add_btn,type:"primary",onClick:S,children:"\u786E\u5B9A\u5173\u8054"})]})]})},Xt=qt,_n=d(13062),en=d(71230),Ln=d(89032),$e=d(15746),tn=d(952),lt=d(5966),rt=d(64317),vt=d(31199),nn=h.Z.Option,It=h.Z.OptGroup,We={name:"\u7269\u6599\u540D\u79F0",stockUint:"\u5E93\u5B58\u5355\u4F4D",specs:"\u7269\u6599\u89C4\u683C",code:"\u7269\u6599\u7F16\u7801",aittribute:"\u7269\u6599\u5C5E\u6027",typeID:"\u7269\u6599\u7C7B\u522B",status:"\u7269\u6599\u72B6\u6001",price:"\u6210\u672C\u4EF7",netrecovery:"\u51C0\u6599\u7387(%)",OutstockUint:"\u51FA\u5E93\u5355\u4F4D",proportion:"\u6362\u7B97\u6BD4\u4F8B(%)"},an=function(t){var xe=n.Z.useForm(),se=(0,u.Z)(xe,1),Y=se[0],me=(0,a.useState)(1),V=(0,u.Z)(me,2),R=V[0],ee=V[1],L=(0,a.useState)(10),X=(0,u.Z)(L,2),Z=X[0],I=X[1],$=(0,a.useState)([]),te=(0,u.Z)($,2),Q=te[0],re=te[1],ge=(0,a.useState)([]),ce=(0,u.Z)(ge,2),le=ce[0],H=ce[1],pe=(0,a.useRef)(),B=function(){var G=(0,K.Z)((0,c.Z)().mark(function p(v){return(0,c.Z)().wrap(function(N){for(;;)switch(N.prev=N.next){case 0:v.id?j.UpdateMaterial(v).then(function(P){P.data?(f.default.success("\u4FEE\u6539\u6210\u529F"),ae(!1),pe.current.reload()):f.default.error("\u4FEE\u6539\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01")}):j.AddMaterial(v).then(function(P){P.data?(f.default.success("\u6DFB\u52A0\u6210\u529F"),ae(!1),pe.current.reload()):f.default.error("\u6DFB\u52A0\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01")});case 1:case"end":return N.stop()}},p)}));return function(v){return G.apply(this,arguments)}}(),M=[{title:"\u7269\u6599\u540D\u79F0",dataIndex:"name",ellipsis:!0,formItemProps:{rules:[{required:!0,message:"\u540D\u79F0\u4E3A\u5FC5\u586B\u9879"}]}},{title:"\u7269\u6599\u5C5E\u6027",dataIndex:"aittribute",valueEnum:{0:{text:"\u6210\u54C1"},1:{text:"\u534A\u6210\u54C1"},2:{text:"\u6613\u8017\u54C1"}}},{title:"\u72B6\u6001",dataIndex:"status",hideInForm:!0,valueEnum:{0:{text:"\u6B63\u5E38",status:"Processing"},1:{text:"\u505C\u7528",status:"Success"}}},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(p,v){return[(0,e.jsx)("a",{type:"primary",onClick:function(){ae(!0),oe(v),Y.setFieldsValue(v)},children:"\u66F4\u65B0"},"primary3")]}}],g=[{title:"\u7269\u6599\u540D\u79F0",dataIndex:"name",ellipsis:!0,formItemProps:{rules:[{required:!0,message:"\u540D\u79F0\u4E3A\u5FC5\u586B\u9879"}]}}],T=(0,a.useState)([]),q=(0,u.Z)(T,2),fe=q[0],ue=q[1],J=(0,a.useState)([]),A=(0,u.Z)(J,2),z=A[0],ye=A[1],U=function(){var G=(0,K.Z)((0,c.Z)().mark(function p(){var v;return(0,c.Z)().wrap(function(N){for(;;)switch(N.prev=N.next){case 0:return N.next=2,j.GetMaterialTypeList();case 2:v=N.sent,v.statusCode===200?(v.data.forEach(function(P){P.value=P.id,P.label=P.name}),ue(v.data)):f.default.error(v.errors||"\u83B7\u53D6\u7269\u6599\u7C7B\u522B\u51FA\u9519");case 4:case"end":return N.stop()}},p)}));return function(){return G.apply(this,arguments)}}(),we=function(){var G=(0,K.Z)((0,c.Z)().mark(function p(){var v;return(0,c.Z)().wrap(function(N){for(;;)switch(N.prev=N.next){case 0:return N.next=2,j.GetMaterialUintList();case 2:v=N.sent,v.statusCode===200?(v.data.forEach(function(P){P.value=P.id,P.label=P.name}),ye(v.data)):f.default.error(v.errors||"\u83B7\u53D6\u7269\u6599\u7C7B\u522B\u51FA\u9519");case 4:case"end":return N.stop()}},p)}));return function(){return G.apply(this,arguments)}}(),je=(0,a.useState)(!1),Te=(0,u.Z)(je,2),Ue=Te[0],Ge=Te[1],Ke=(0,a.useState)(!1),Pe=(0,u.Z)(Ke,2),be=Pe[0],Be=Pe[1],De=(0,a.useState)({id:""}),Ne=(0,u.Z)(De,2),_e=Ne[0],oe=Ne[1],ne=(0,a.useState)(!1),b=(0,u.Z)(ne,2),Ze=b[0],ae=b[1],Se=(0,a.useState)(!1),Ce=(0,u.Z)(Se,2),Ee=Ce[0],Fe=Ce[1],ze=(0,a.useState)(""),Ve=(0,u.Z)(ze,2),Me=Ve[0],Je=Ve[1],Qe=(0,a.useState)([]),Le=(0,u.Z)(Qe,2),Oe=Le[0],F=Le[1],S=(0,a.useState)([]),r=(0,u.Z)(S,2),i=r[0],s=r[1],x=[{title:"\u7269\u6599\u540D\u79F0",dataIndex:"name",ellipsis:!0,formItemProps:{rules:[{required:!0,message:"\u540D\u79F0\u4E3A\u5FC5\u586B\u9879"}]}},{title:"\u7269\u6599\u6570\u91CF",dataIndex:"BomQty",width:50},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(p,v){return[(0,e.jsx)("a",{type:"primary",onClick:function(){var N=Oe.find(function(P){return P.id===Me});N&&t.onMaterialRelationBom(N.id,v,!1)},children:"\u79FB\u9664\u7269\u6599"},"primary3"),(0,e.jsx)("a",{type:"primary",style:{marginLeft:"10px"},onClick:function(){it.setFieldsValue(v),ut(!0)},children:"\u8BBE\u7F6E\u6570\u91CF"},"primary3")]}}],m=function(){var p,v=[];if((p=t.foodMenuConfig)===null||p===void 0||p.forEach(function(N){var P;(P=N.goodsConfig)===null||P===void 0||P.forEach(function(l){var o;(o=l.bomConfig)===null||o===void 0||o.forEach(function(C){var D=v.find(function(E){return E.id===C.id});D||(C.goodsId=l.id,v.push(C))})})}),!Me){var W;Je((W=v[0])===null||W===void 0?void 0:W.id)}F(v)},ie=function(){if(Q.length===0){Re.default.error({message:"\u914D\u65B9\u5173\u8054\u5546\u54C1\u51FA\u9519",description:"\u8BF7\u9009\u62E9\u914D\u65B9",placement:"topRight"});return}var p=Oe.find(function(W){return W.id===Me});if(p){var v=JSON.parse(JSON.stringify(Q));v.forEach(function(W){W.BomQty=0}),t.onMaterialRelationBom(p.id,v),H([]),re([])}},ve=function(){var p=Oe.find(function(v){return v.id===Me});p&&p.materialConfig?s(p.materialConfig):s([])},ke=(0,a.useState)(!1),dt=(0,u.Z)(ke,2),ct=dt[0],ut=dt[1],ft=n.Z.useForm(),gt=(0,u.Z)(ft,1),it=gt[0];return(0,a.useEffect)(function(){U(),we()},[]),(0,a.useEffect)(function(){m()},[t.foodMenuConfig]),(0,a.useEffect)(function(){ve()},[Oe,Me]),(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(Ie.Z,{width:800,title:_e.id?"\u7F16\u8F91\u7269\u6599":"\u65B0\u589E\u7269\u6599",visible:Ze,footer:!1,onCancel:function(){return ae(!1)},children:(0,e.jsxs)(tn.ZP,{form:Y,labelCol:{span:6},layout:"horizontal",hideRequiredMark:!0,initialValues:t.materialConfig,onFinish:B,submitter:!1,children:[(0,e.jsxs)(en.Z,{gutter:16,children:[(0,e.jsx)($e.Z,{lg:12,md:12,sm:24,children:(0,e.jsx)(lt.Z,{label:We.code,name:"code",rules:[{required:!0,max:50}],placeholder:"\u8BF7\u8F93\u5165\u539F\u6599\u7F16\u7801"})}),(0,e.jsxs)($e.Z,{lg:12,md:12,sm:24,children:[(0,e.jsx)(lt.Z,{name:"id",hidden:!0}),(0,e.jsx)(lt.Z,{label:We.name,name:"name",rules:[{required:!0,max:50}],placeholder:"\u8BF7\u8F93\u5165\u539F\u6599\u540D\u79F0"})]}),(0,e.jsx)($e.Z,{lg:12,md:12,sm:24,children:(0,e.jsx)(lt.Z,{label:We.specs,name:"specs",rules:[{required:!0,max:500}],placeholder:"\u8BF7\u8F93\u5165\u89C4\u683C\u578B\u53F7"})}),(0,e.jsx)($e.Z,{lg:12,md:12,sm:24,children:(0,e.jsx)(rt.Z,{label:We.aittribute,name:"aittribute",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u7269\u6599\u5C5E\u6027"}],options:[{value:"0",label:"\u6210\u54C1"},{value:"1",label:"\u534A\u6210\u54C1"},{value:"2",label:"\u6613\u8017\u54C1"}],placeholder:"\u8BF7\u9009\u62E9\u7269\u6599\u5C5E\u6027"})}),(0,e.jsx)($e.Z,{lg:12,md:12,sm:24,children:(0,e.jsx)(vt.Z,{label:We.price,name:"price",placeholder:"\u8BF7\u8F93\u5165\u6210\u672C\u4EF7",min:1})}),(0,e.jsx)($e.Z,{lg:12,md:12,sm:24,children:(0,e.jsx)(vt.Z,{label:We.netrecovery,name:"netrecovery",min:1,max:100,placeholder:"\u8BF7\u8F93\u5165\u51C0\u6599\u7387"})}),(0,e.jsx)($e.Z,{lg:12,md:12,sm:24,children:(0,e.jsxs)("div",{className:_().add_row_content,children:[(0,e.jsx)(rt.Z,{style:{width:"65%"},label:We.typeID,name:"typeID",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u7269\u6599\u7C7B\u522B"}],options:fe,placeholder:"\u8BF7\u9009\u62E9\u7269\u6599\u7C7B\u522B"}),(0,e.jsx)(O.Z,{onClick:function(){return Ge(!0)},type:"primary",className:_().add_row_btn,children:"\u6DFB\u52A0\u7C7B\u522B"})]})}),(0,e.jsx)($e.Z,{lg:12,md:12,sm:24,children:(0,e.jsxs)("div",{className:_().add_row_content,children:[(0,e.jsx)(rt.Z,{style:{width:"65%"},label:We.stockUint,name:"stockUint",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u5355\u4F4D"}],options:z,placeholder:"\u8BF7\u9009\u62E9\u5355\u4F4D"}),(0,e.jsx)(O.Z,{onClick:function(){return Be(!0)},type:"primary",className:_().add_row_btn,children:"\u6DFB\u52A0\u5355\u4F4D"})]})}),(0,e.jsx)($e.Z,{lg:12,md:12,sm:24,children:(0,e.jsxs)("div",{className:_().add_row_content,children:[(0,e.jsx)(rt.Z,{style:{width:"65%"},label:We.OutstockUint,name:"outstockUint",options:z,rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u51FA\u5E93\u5355\u4F4D"}],placeholder:"\u8BF7\u9009\u62E9\u51FA\u5E93\u5355\u4F4D"}),(0,e.jsx)(O.Z,{onClick:function(){return Be(!0)},type:"primary",className:_().add_row_btn,children:"\u6DFB\u52A0\u5355\u4F4D"})]})}),(0,e.jsx)($e.Z,{lg:12,md:12,sm:24,children:(0,e.jsx)(vt.Z,{label:We.proportion,name:"proportion",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u51FA\u5165\u5E93\u6362\u7B97\u6BD4\u4F8B"}],placeholder:"\u8BF7\u8F93\u5165\u6362\u7B97\u6BD4\u4F8B"})}),(0,e.jsx)($e.Z,{lg:12,md:12,sm:24,children:(0,e.jsx)(rt.Z,{label:We.status,name:"status",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u72B6\u6001"}],options:[{value:"0",label:"\u6B63\u5E38"},{value:"1",label:"\u505C\u7528"}],placeholder:"\u8BF7\u9009\u62E9\u72B6\u6001"})})]}),(0,e.jsx)(n.Z.Item,{children:(0,e.jsx)(O.Z,{type:"primary",htmlType:"submit",children:"\u786E\u5B9A"})})]})}),(0,e.jsx)(qe.ZP,{actionRef:pe,headerTitle:"\u7269\u6599\u5217\u8868",rowKey:"id",search:{labelWidth:120},pagination:{current:R,pageSize:Z,onChange:function(p,v){ee(p),I(v)}},request:function(){var G=(0,K.Z)((0,c.Z)().mark(function p(v){var W,N;return(0,c.Z)().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return W=[],N=0,l.next=4,j.GetMaterialPage(v).then(function(o){W=o.data.data,N=o.data.total});case 4:return l.abrupt("return",{data:W,success:!0,total:N});case 5:case"end":return l.stop()}},p)}));return function(p){return G.apply(this,arguments)}}(),columns:M,toolBarRender:function(){return[(0,e.jsx)(O.Z,{icon:(0,e.jsx)(et.Z,{}),type:"primary",onClick:function(){Y.resetFields(),oe({id:""}),ae(!0)},children:"\u65B0\u5EFA"},"button"),(0,e.jsx)(O.Z,{type:"primary",onClick:function(){Fe(!0)},children:"\u5173\u8054\u914D\u65B9"},"button")]}}),(0,e.jsx)(Ie.Z,{title:"\u6DFB\u52A0\u7269\u6599\u5355\u4F4D",width:640,visible:be,bodyStyle:{padding:"32px 40px 48px"},footer:null,onCancel:function(){Be(!1)},destroyOnClose:!0,maskClosable:!1,children:(0,e.jsxs)(n.Z,{layout:"vertical",preserve:!1,onFinish:function(){var G=(0,K.Z)((0,c.Z)().mark(function p(v){var W;return(0,c.Z)().wrap(function(P){for(;;)switch(P.prev=P.next){case 0:return P.next=2,j.AddMaterialUnit(v);case 2:W=P.sent,W.data?(f.default.success("\u6DFB\u52A0\u6210\u529F"),Be(!1),we()):f.default.error(W.errors||"\u7269\u6599\u5355\u4F4D\u6DFB\u52A0\u5931\u8D25");case 4:case"end":return P.stop()}},p)}));return function(p){return G.apply(this,arguments)}}(),children:[(0,e.jsx)(n.Z.Item,{name:"id",hidden:!0,children:(0,e.jsx)(w.Z,{})}),(0,e.jsx)(n.Z.Item,{name:"name",label:"\u7269\u6599\u5355\u4F4D\u540D\u79F0",rules:[{required:!0,max:64}],children:(0,e.jsx)(w.Z,{placeholder:"\u7269\u6599\u5355\u4F4D\u540D\u79F0"})}),(0,e.jsx)(n.Z.Item,{name:"status",label:"\u72B6\u6001",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u72B6\u6001"}],children:(0,e.jsx)(h.Z,{placeholder:"\u8BF7\u9009\u62E9\u72B6\u6001",children:(0,e.jsxs)(It,{children:[(0,e.jsx)(h.Z.Option,{value:"0",children:"\u6B63\u5E38"}),(0,e.jsx)(h.Z.Option,{value:"1",children:"\u505C\u7528"})]})})}),(0,e.jsx)(n.Z.Item,{children:(0,e.jsx)(O.Z,{type:"primary",htmlType:"submit",children:"\u4FDD\u5B58"})})]})}),(0,e.jsx)(Ie.Z,{title:"\u6DFB\u52A0\u7269\u6599\u5206\u7C7B",width:640,visible:Ue,bodyStyle:{padding:"32px 40px 48px"},footer:null,onCancel:function(){Ge(!1)},destroyOnClose:!0,maskClosable:!1,children:(0,e.jsxs)(n.Z,{layout:"vertical",preserve:!1,onFinish:function(){var G=(0,K.Z)((0,c.Z)().mark(function p(v){var W;return(0,c.Z)().wrap(function(P){for(;;)switch(P.prev=P.next){case 0:return P.next=2,j.AddMaterialType(v);case 2:W=P.sent,W.data?(f.default.success("\u6DFB\u52A0\u6210\u529F"),Ge(!1),U()):f.default.error(W.errors||"\u7269\u6599\u5206\u7C7B\u6DFB\u52A0\u5931\u8D25");case 4:case"end":return P.stop()}},p)}));return function(p){return G.apply(this,arguments)}}(),children:[(0,e.jsx)(n.Z.Item,{name:"id",hidden:!0,children:(0,e.jsx)(w.Z,{})}),(0,e.jsx)(n.Z.Item,{name:"name",label:"\u7269\u6599\u5206\u7C7B\u540D\u79F0",rules:[{required:!0,max:64,whitespace:!0}],children:(0,e.jsx)(w.Z,{placeholder:"\u8BF7\u8F93\u5165\u7269\u7269\u6599\u5206\u7C7B\u79F0"})}),(0,e.jsx)(n.Z.Item,{name:"status",label:"\u72B6\u6001",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u7269\u6599\u5206\u7C7B\u72B6\u6001"}],children:(0,e.jsx)(h.Z,{placeholder:"\u8BF7\u9009\u62E9\u7269\u6599\u5206\u7C7B\u72B6\u6001",children:(0,e.jsxs)(It,{children:[(0,e.jsx)(h.Z.Option,{value:"0",children:"\u6B63\u5E38"}),(0,e.jsx)(h.Z.Option,{value:"1",children:"\u505C\u7528"})]})})}),(0,e.jsx)(n.Z.Item,{children:(0,e.jsx)(O.Z,{type:"primary",htmlType:"submit",children:"\u4FDD\u5B58"})})]})}),(0,e.jsxs)(mt.Z,{width:900,title:"\u7269\u6599\u5173\u8054\u914D\u65B9",placement:"right",onClose:function(){return Fe(!1)},visible:Ee,children:[(0,e.jsxs)("div",{style:{display:"flex",alignItems:"center",marginBottom:"10px"},children:[(0,e.jsx)("div",{className:_().current_selected_obj,children:"\u5F53\u524D\u914D\u65B9\uFF1A"}),(0,e.jsx)(h.Z,{className:_().current_selected_cmp,onChange:function(p){console.log("setCurrentSelectedBom",p),Je(p)},placeholder:"\u8BF7\u9009\u62E9\u914D\u65B9",value:Me,size:"large",children:Oe.map(function(G){return(0,e.jsx)(nn,{value:G.id,children:G.name},G.id)})})]}),(0,e.jsxs)("div",{className:_().add_to_some_box,children:[(0,e.jsx)(qe.ZP,{className:_().wait_add_list,actionRef:pe,headerTitle:"\u7269\u6599\u5217\u8868",rowKey:"id",search:!1,pagination:{current:R,pageSize:Z,onChange:function(p,v){ee(p),I(v)}},request:function(){var G=(0,K.Z)((0,c.Z)().mark(function p(v){var W,N;return(0,c.Z)().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return W=[],N=0,l.next=4,j.GetMaterialPage(v).then(function(o){W=o.data.data,N=o.data.total});case 4:return l.abrupt("return",{data:W,success:!0,total:N});case 5:case"end":return l.stop()}},p)}));return function(p){return G.apply(this,arguments)}}(),columns:g,rowSelection:{type:"checkbox",onSelect:function(p,v){var W=JSON.parse(JSON.stringify(Q)),N=JSON.parse(JSON.stringify(le)),P=W.findIndex(function(o){return o.id===p.id}),l=N.findIndex(function(o){return o===p.id});v?(P<0&&W.push(p),l<0&&N.push(p.id)):(P>-1&&W.splice(P,1),l>-1&&N.splice(l,1)),re(W),H(N)},onChange:function(p,v){p.length===0&&H([]),v.length===0&&re([])},selectedRowKeys:le}}),(0,e.jsx)(pt.Z,{className:_().success_add_list,rowKey:"id",columns:x,dataSource:i})]}),(0,e.jsx)(O.Z,{className:_().sure_add_btn,type:"primary",onClick:ie,children:"\u786E\u5B9A\u5173\u8054"})]}),(0,e.jsx)(Ie.Z,{title:"\u8BBE\u7F6E\u7269\u6599\u6570\u91CF",visible:ct,footer:null,onCancel:function(){return ut(!1)},children:(0,e.jsxs)(n.Z,{form:it,name:"basic",labelCol:{span:8},wrapperCol:{span:16},initialValues:{remember:!0},onFinish:function(p){t.onUpdateMaterial(Me,p),ut(!1)},autoComplete:"off",children:[(0,e.jsx)(n.Z.Item,{name:"id",hidden:!0,children:(0,e.jsx)(w.Z,{})}),(0,e.jsx)(n.Z.Item,{label:"\u7269\u6599\u540D\u79F0",name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u7269\u6599\u540D\u79F0"}],children:(0,e.jsx)(w.Z,{disabled:!0})}),(0,e.jsx)(n.Z.Item,{label:"\u7269\u6599\u6570\u91CF",name:"BomQty",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u7269\u6599\u6570\u91CF"}],children:(0,e.jsx)(w.Z,{})}),(0,e.jsx)(n.Z.Item,{wrapperCol:{offset:8,span:16},children:(0,e.jsx)(O.Z,{type:"primary",htmlType:"submit",children:"\u786E\u5B9A"})})]})})]})},rn=an,$n=d(73935),un=d(89913),sn=function(t){var xe=(0,a.useState)({id:t.storeConfig.id,value:{name:t.storeConfig.name},children:[{id:t.deviceConfig.id,value:{name:t.deviceConfig.deviceName},children:[]}]}),se=(0,u.Z)(xe,2),Y=se[0],me=se[1],V=function(){var ee=JSON.parse(JSON.stringify(Y));t.foodMenuConfig.forEach(function(L,X){ee.children[0].children[X]={id:(0,Xe.x0)(),value:{name:L.name},children:[]},L==null||L.goodsConfig.forEach(function(Z,I){ee.children[0].children[X].children[I]={id:(0,Xe.x0)(),value:{name:Z.name},children:[]},Z==null||Z.bomConfig.forEach(function($,te){ee.children[0].children[X].children[I].children[te]={id:(0,Xe.x0)(),value:{name:$.name},children:[]},$==null||$.materialConfig.forEach(function(Q,re){ee.children[0].children[X].children[I].children[te].children[re]={id:(0,Xe.x0)(),value:{name:Q.name}}})})})}),me(ee)};return(0,a.useEffect)(function(){V()},[]),(0,e.jsx)(e.Fragment,{children:(0,e.jsx)(un.Z,{style:{width:"100%",height:"auto"},data:Y,behaviors:["drag-canvas","zoom-canvas"],nodeCfg:{autoWidth:!0}})})},on=sn,ln=d(54970),dn=d.n(ln),cn=function(t){var xe=function(){var me,V,R;switch(t.current){case 0:(me=t.storeConfig)!==null&&me!==void 0&&me.id?t.next():Re.default.error({message:"\u95E8\u5E97\u914D\u7F6E\u51FA\u9519",description:"\u8BF7\u9009\u62E9\u95E8\u5E97\uFF01",placement:"topRight"});break;case 1:(V=t.deviceConfig)!==null&&V!==void 0&&V.id?t.next():Re.default.error({message:"\u8BBE\u5907\u914D\u7F6E\u51FA\u9519",description:"\u8BF7\u9009\u62E9\u8BBE\u5907\uFF01",placement:"topRight"});break;case 2:((R=t.foodMenuConfig)===null||R===void 0?void 0:R.length)>0?t.next():Re.default.error({message:"\u83DC\u8C31\u914D\u7F6E\u51FA\u9519",description:"\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u83DC\u8C31\uFF01",placement:"topRight"});break;case 3:for(var ee=0;ee0&&(0,e.jsxs)(O.Z,{style:{margin:"0 8px"},onClick:t.prev,children:["\u4E0A\u4E00\u6B65\uFF1A",t.steps[t.current-1]]}),t.current2&&arguments[2]!==void 0?arguments[2]:!0,q=JSON.parse(JSON.stringify(Z)),fe=q.foodMenuConfig.find(function(J){return J.id===M});if(T&&fe)fe.goodsConfig=g;else{var ue=fe.goodsConfig.findIndex(function(J){return J.id===g.id});ue>-1&&fe.goodsConfig.splice(ue,1)}I(q)},Q=function(M,g){var T=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,q=JSON.parse(JSON.stringify(Z));q.foodMenuConfig.forEach(function(fe){var ue=fe.goodsConfig.find(function(A){return A.id===M});if(ue){if(T)ue.bomConfig=g;else{var J=ue.bomConfig.findIndex(function(A){return A.id===g.id});J>-1&&ue.bomConfig.splice(J,1)}I(q)}})},re=function(M,g){var T=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,q=JSON.parse(JSON.stringify(Z));q.foodMenuConfig.forEach(function(fe){fe.goodsConfig.forEach(function(ue){var J=ue.bomConfig.find(function(z){return z.id===M});if(J){if(T)J.materialConfig=g;else{var A=J.materialConfig.findIndex(function(z){return z.id===g.id});A>-1&&J.materialConfig.splice(A,1)}I(q)}})})},ge=function(M,g){var T=JSON.parse(JSON.stringify(Z));T.foodMenuConfig.forEach(function(q){q.goodsConfig.forEach(function(fe){var ue=fe.bomConfig.find(function(A){return A.id===M});if(ue){var J=ue.materialConfig.find(function(A){return A.id===g.id});J&&(J.BomQty=Number.parseFloat(g.BomQty)||0,I(T))}})})},ce=function(){ee(R+1)},le=function(){ee(R-1)},H=["\u95E8\u5E97\u914D\u7F6E","\u8BBE\u5907\u914D\u7F6E","\u83DC\u8C31\u914D\u7F6E","\u5546\u54C1\u914D\u7F6E","\u914D\u65B9\u914D\u7F6E","\u7269\u6599\u914D\u7F6E","\u786E\u8BA4\u914D\u7F6E"],pe=[(0,e.jsx)(Rt,{storeConfig:Z.storeConfig,current:R,steps:H,next:ce,onSelectedChange:$}),(0,e.jsx)(_t,{storeConfig:Z.storeConfig,deviceConfig:Z.deviceConfig,current:R,steps:H,prev:le,next:ce,onSelectedChange:$}),(0,e.jsx)($t,{foodMenuConfig:Z.foodMenuConfig,current:R,steps:H,prev:le,next:ce,onSelectedChange:$}),(0,e.jsx)(Jt,{deviceConfig:Z.deviceConfig,foodMenuConfig:Z.foodMenuConfig,current:R,steps:H,onAddGoodsToFoodMenu:te,prev:le,next:ce}),(0,e.jsx)(Xt,{foodMenuConfig:Z.foodMenuConfig,current:R,steps:H,prev:le,next:ce,onBomRelationGoods:Q}),(0,e.jsx)(rn,{foodMenuConfig:Z.foodMenuConfig,current:R,steps:H,onMaterialRelationBom:re,onUpdateMaterial:ge,prev:le,next:ce}),(0,e.jsx)(on,(0,Ae.Z)((0,Ae.Z)({},Z),{},{current:R,steps:H,prev:le}))];return(0,a.useEffect)(function(){console.log("\u5BF9\u8C61\u66F4\u65B0",Z)},[Z]),(0,e.jsxs)(Mt.ZP,{children:[(0,e.jsx)("div",{className:_().steps_navbar,children:(0,e.jsx)(ot.Z,{children:(0,e.jsx)(Ct.Z,{current:R,children:H.map(function(B){return(0,e.jsx)(hn,{title:B},B)})})})}),se?(0,e.jsx)(ot.Z,{children:(0,e.jsx)(Dt.ZP,{status:"success",title:"\u6210\u529F\u914D\u7F6E\u6240\u6709\u4FE1\u606F\uFF01",subTitle:"\u6B22\u8FCE\u518D\u6B21\u4F7F\u7528\uFF01",extra:[(0,e.jsx)(O.Z,{type:"primary",onClick:function(){I({storeConfig:{},deviceConfig:{},foodMenuConfig:[]}),ee(0),Y(!1)},children:"\u5FEB\u901F\u5F00\u59CB"},"console")]})}):(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(ot.Z,{children:(0,e.jsx)("div",{className:_().steps_content,children:pe[R]})}),(0,e.jsx)("div",{className:_().steps_navbar_bottom,children:(0,e.jsx)(ot.Z,{children:(0,e.jsx)(fn,(0,Ae.Z)((0,Ae.Z)({},Z),{},{current:R,steps:H,prev:le,next:ce,success:function(){return Y(!0)}}))})})]})]})},pn=mn}}]); diff --git a/dist/p__split__account.7df24ef1.async.js b/dist/p__split__account.54887287.async.js similarity index 85% rename from dist/p__split__account.7df24ef1.async.js rename to dist/p__split__account.54887287.async.js index bf4b0c3..7413811 100644 --- a/dist/p__split__account.7df24ef1.async.js +++ b/dist/p__split__account.54887287.async.js @@ -1 +1 @@ -(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[7633],{91884:function(xe,Q,t){"use strict";t.r(Q),t.d(Q,{default:function(){return Ge}});var b=t(57338),M=t(273),G=t(62350),_=t(24565),i=t(39428),x=t(3182),X=t(57663),N=t(71577),o=t(11849),ce=t(47673),D=t(4107),y=t(93224),T=t(34792),v=t(48086),r=t(2824),de=t(49101),j=t(67294),je=t(78009),Se=t(85224),De=t(16894),Ae=t(12826),nt=t(71194),Fe=t(50146),rt=t(49111),Ce=t(19650),at=t(77883),Ee=t(85986),ut=t(88983),ee=t(47933),st=t(62999),Ie=t(54680),lt=t(9715),p=t(55843),it=t(43358),E=t(34041),Be=t(59465),e=t(85893),Pe=["key","name","fieldKey"],be=function(l){var A=E.Z.Option,n=E.Z.OptGroup;return(0,e.jsx)(Fe.Z,{title:l.values.id?"\u7F16\u8F91":"\u65B0\u5EFA",width:1400,visible:l.createModalVisible,bodyStyle:{padding:"32px 40px 48px"},footer:null,onCancel:function(){l.onCancel()},destroyOnClose:!0,maskClosable:!1,children:(0,e.jsxs)(p.Z,{layout:"vertical",preserve:!1,initialValues:l.values,onFinish:l.onFinish,children:[(0,e.jsx)(p.Z.Item,{name:"id",hidden:!0,children:(0,e.jsx)(D.Z,{})}),(0,e.jsx)(p.Z.Item,{name:"storeId",label:"\u9009\u62E9\u5E97\u94FA",rules:[{required:!0}],children:(0,e.jsx)(Ie.Z,{style:{width:"100%"},dropdownStyle:{maxHeight:400,overflow:"auto"},treeData:l.OrgData,placeholder:"\u5F52\u5C5E\u95E8\u5E97",treeDefaultExpandAll:!0})}),(0,e.jsx)(p.Z.Item,{label:"\u5206\u8D26\u8D26\u6237",children:(0,e.jsx)(p.Z.List,{name:"businessList",children:function(U,V){var ie=V.add,oe=V.remove;return(0,e.jsxs)(e.Fragment,{children:[U.map(function(W){var R=W.key,F=W.name,I=W.fieldKey,B=(0,y.Z)(W,Pe);return(0,e.jsxs)(Ce.Z,{style:{display:"flex",marginBottom:8},align:"baseline",children:[(0,e.jsx)(p.Z.Item,(0,o.Z)((0,o.Z)({},B),{},{label:"\u5206\u8D26\u8D26\u6237\u7C7B\u522B",name:[F,"accountType"],fieldKey:[I,"accountType"],rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u5206\u8D26\u8D26\u6237\u7C7B\u522B"}],children:(0,e.jsxs)(ee.ZP.Group,{children:[(0,e.jsx)(ee.ZP,{value:0,children:"\u5546\u6237"}),(0,e.jsx)(ee.ZP,{value:1,children:"\u4E2A\u4EBA"})]})})),(0,e.jsx)(p.Z.Item,(0,o.Z)((0,o.Z)({},B),{},{label:"\u5206\u8D26\u8D26\u6237\u540D\u79F0",name:[F,"businessName"],fieldKey:[I,"businessName"],rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5206\u8D26\u8D26\u6237\u540D\u79F0"}],children:(0,e.jsx)(D.Z,{placeholder:"\u5206\u8D26\u8D26\u6237\u540D\u79F0"})})),(0,e.jsx)(p.Z.Item,(0,o.Z)((0,o.Z)({},B),{},{label:"\u5206\u8D26\u8D26\u6237\u53F7",name:[F,"businessId"],fieldKey:[I,"businessId"],rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5206\u8D26\u8D26\u6237\u53F7"}],children:(0,e.jsx)(D.Z,{placeholder:"\u5206\u8D26\u8D26\u6237\u53F7",style:{width:250}})})),(0,e.jsx)(p.Z.Item,(0,o.Z)((0,o.Z)({},B),{},{name:[F,"orderType"],fieldKey:[I,"orderType"],label:"\u8BA2\u5355\u7C7B\u578B",rules:[{required:!0}],children:(0,e.jsx)(E.Z,{style:{width:120},children:(0,e.jsxs)(n,{children:[(0,e.jsx)(E.Z.Option,{value:0,children:"\u4E3B\u8BA2\u5355"}),(0,e.jsx)(E.Z.Option,{value:1,children:"\u5B50\u8BA2\u5355"})]})})})),(0,e.jsx)(p.Z.Item,(0,o.Z)((0,o.Z)({},B),{},{name:[F,"splitType"],fieldKey:[I,"splitType"],label:"\u5206\u8D26\u7C7B\u578B",rules:[{required:!0}],children:(0,e.jsx)(E.Z,{style:{width:120},children:(0,e.jsxs)(n,{children:[(0,e.jsx)(E.Z.Option,{value:0,children:"\u6BD4\u4F8B\u5206\u8D26"}),(0,e.jsx)(E.Z.Option,{value:1,children:"\u56FA\u5B9A\u91D1\u989D"})]})})})),(0,e.jsx)(p.Z.Item,{noStyle:!0,shouldUpdate:function(P,O){var K,k,J;return(P==null||(K=P.businessList[R])===null||K===void 0?void 0:K.splitType)!=null||(P==null||(k=P.businessList[R])===null||k===void 0?void 0:k.splitType)!==(O==null||(J=O.businessList[R])===null||J===void 0?void 0:J.splitType)},children:function(P){var O,K=P.getFieldValue;return((O=K("businessList")[R])===null||O===void 0?void 0:O.splitType)!="1"?(0,e.jsx)(p.Z.Item,(0,o.Z)((0,o.Z)({},B),{},{label:"\u5206\u8D26\u6BD4\u4F8B",name:[F,"proportion"],fieldKey:[I,"proportion"],rules:[{required:!1,message:"\u8BF7\u8F93\u5165\u5206\u8D26\u6BD4\u4F8B"}],children:(0,e.jsx)(Ee.Z,{step:.1,min:0,max:1,precision:2,style:{width:150}})})):(0,e.jsx)(p.Z.Item,(0,o.Z)((0,o.Z)({},B),{},{label:"\u56FA\u5B9A\u91D1\u989D",name:[F,"fixedMoney"],fieldKey:[I,"fixedMoney"],rules:[{required:!1,message:"\u8BF7\u8F93\u5165\u56FA\u5B9A\u91D1\u989D"}],children:(0,e.jsx)(D.Z,{placeholder:"\u56FA\u5B9A\u91D1\u989D",style:{width:150}})}))}}),(0,e.jsx)(p.Z.Item,(0,o.Z)((0,o.Z)({},B),{},{label:"\u5206\u8D26\u63CF\u8FF0",name:[F,"remark"],fieldKey:[I,"remark"],rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5206\u8D26\u63CF\u8FF0"}],children:(0,e.jsx)(D.Z,{placeholder:"\u5206\u8D26\u63CF\u8FF0"})})),(0,e.jsx)(Be.Z,{onClick:function(){return oe(F)}})]},R)}),(0,e.jsx)(p.Z.Item,{children:(0,e.jsx)(N.Z,{type:"dashed",onClick:function(){return ie()},block:!0,icon:(0,e.jsx)(de.Z,{}),children:"\u6DFB\u52A0"})})]})}})}),(0,e.jsx)(p.Z.Item,{name:"planId",label:"\u5206\u8D26\u65B9\u6848",rules:[{required:!0}],children:(0,e.jsx)(E.Z,{children:l.planArray.map(function(S,U){return(0,e.jsx)(E.Z.Option,{index:U,value:S.id,children:S.text},S.id)})})}),(0,e.jsx)(p.Z.Item,{name:"remark",label:"\u5907\u6CE8",rules:[{required:!1,max:64}],children:(0,e.jsx)(D.Z,{placeholder:"\u5907\u6CE8"})}),(0,e.jsx)(p.Z.Item,{children:(0,e.jsx)(N.Z,{type:"primary",htmlType:"submit",children:"\u4FDD\u5B58"})})]})})},Te=be,$=t(48971);function Oe(d){return te.apply(this,arguments)}function te(){return te=(0,x.Z)((0,i.Z)().mark(function d(l){return(0,i.Z)().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",(0,$.WY)("/kitchen/api/split-account/account-details-page",{method:"Post",data:l}));case 1:case"end":return n.stop()}},d)})),te.apply(this,arguments)}function Le(d){return ne.apply(this,arguments)}function ne(){return ne=(0,x.Z)((0,i.Z)().mark(function d(l){return(0,i.Z)().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",(0,$.WY)("/kitchen/api/split-account/split-account-detail",{method:"POST",data:l}));case 1:case"end":return n.stop()}},d)})),ne.apply(this,arguments)}function Re(d){return re.apply(this,arguments)}function re(){return re=(0,x.Z)((0,i.Z)().mark(function d(l){return(0,i.Z)().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",(0,$.WY)("/kitchen/api/split-account/account-details",{method:"PUT",data:l}));case 1:case"end":return n.stop()}},d)})),re.apply(this,arguments)}function we(d){return ae.apply(this,arguments)}function ae(){return ae=(0,x.Z)((0,i.Z)().mark(function d(l){return(0,i.Z)().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return console.log(l),n.abrupt("return",(0,$.WY)("/kitchen/api/split-account/account-detail",{method:"DELETE",data:l}));case 2:case"end":return n.stop()}},d)})),ae.apply(this,arguments)}function $e(d){return ue.apply(this,arguments)}function ue(){return ue=(0,x.Z)((0,i.Z)().mark(function d(l){return(0,i.Z)().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",(0,$.WY)("\u200B/kitchen/api\u200B/store-info\u200B/store-info-page",{method:"POST",data:l}));case 1:case"end":return n.stop()}},d)})),ue.apply(this,arguments)}function We(d,l){return se.apply(this,arguments)}function se(){return se=(0,x.Z)((0,i.Z)().mark(function d(l,A){return(0,i.Z)().wrap(function(S){for(;;)switch(S.prev=S.next){case 0:return S.abrupt("return",(0,$.WY)("/kitchen/api/split-business/business/".concat(l,"/").concat(A),{method:"GET"}));case 1:case"end":return S.stop()}},d)})),se.apply(this,arguments)}function Ke(d){return le.apply(this,arguments)}function le(){return le=(0,x.Z)((0,i.Z)().mark(function d(l){return(0,i.Z)().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",(0,$.WY)("\u200B/kitchen/api\u200B/sysOrg\u200B/tree",{data:(0,o.Z)({},l)}));case 1:case"end":return n.stop()}},d)})),le.apply(this,arguments)}var Me=t(69918),ke=["defaultRender"],Ye=function(){var l=(0,j.useState)(),A=(0,r.Z)(l,2),n=A[0],S=A[1],U=(0,j.useState)([]),V=(0,r.Z)(U,2),ie=V[0],oe=V[1],W=(0,j.useState)(),R=(0,r.Z)(W,2),F=R[0],I=R[1],B=(0,j.useState)([]),z=(0,r.Z)(B,2),P=z[0],O=z[1],K=(0,j.useState)([]),k=(0,r.Z)(K,2),J=k[0],Ne=k[1],Ue=(0,j.useState)([]),pe=(0,r.Z)(Ue,2),ot=pe[0],Ve=pe[1];(0,j.useEffect)(function(){var s=function(g){var f=(0,Me.t1)({current:1,pageSize:1e3}).then(function(Z){var c={},m=[];Z.data.data.forEach(function(L){m.push({text:L.planName,id:L.id}),c[L.id]={text:L.planName}}),oe(m),S(c)})},a=function(g){var f=$e({current:1,pageSize:1e3}).then(function(Z){var c={},m=[];Z.data.data.forEach(function(L){m.push({text:L.store_Name,id:L.id}),c[L.id]={text:L.store_Name}}),O(m),I(c)})};function u(){Ke().then(function(h){g(h.data);function g(c){for(var m in c)c[m].type==2||c[m].type==3?c[m].disabled=!1:c[m].disabled=!0,c[m].children&&g(c[m].children)}Ne(h.data);var f={};Z(h.data);function Z(c){for(var m in c)f[c[m].disabled]=!0,f[c[m].value]={text:c[m].title},c[m].children&&Z(c[m].children)}Ve(f)})}u(),s(),a()},[]);var ze=(0,j.useState)(!1),he=(0,r.Z)(ze,2),Je=he[0],q=he[1],He=(0,j.useState)(!1),fe=(0,r.Z)(He,2),Qe=fe[0],me=fe[1],w=(0,j.useRef)(),Xe=(0,j.useState)(),ve=(0,r.Z)(Xe,2),C=ve[0],H=ve[1],qe=(0,j.useState)([]),Ze=(0,r.Z)(qe,2),Y=Ze[0],ye=Ze[1];function _e(s){try{return Le(JSON.stringify(s)),v.default.success("\u6DFB\u52A0\u6210\u529F"),w.current.reload(),!0}catch(a){return v.default.error("\u6DFB\u52A0\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),!1}}function et(s){try{return Re(JSON.stringify(s)).then(function(a){a.data?(v.default.success("\u4FEE\u6539\u6210\u529F"),w.current.reload()):v.default.error("\u4FEE\u6539\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01")}),!0}catch(a){return v.default.error("\u4FEE\u6539\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),!1}}function tt(){try{return we(Y.map(function(s,a){return s.id})).then(function(s){s.data?v.default.success("\u5220\u9664\u6210\u529F\uFF0C\u5373\u5C06\u5237\u65B0"):v.default.error("\u5220\u9664\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5")}),w.current.reload(),!0}catch(s){v.default.error("\u5220\u9664\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5")}}function ct(s){try{return removeSingleAccount(s).then(function(a){a.data?(v.default.success("\u5220\u9664\u6210\u529F\uFF0C\u5373\u5C06\u5237\u65B0"),w.current.reload()):v.default.error("\u5220\u9664\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5")}),!0}catch(a){v.default.error("\u5220\u9664\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5")}}var ge=[{title:"\u4E3B\u952E",dataIndex:"id",tip:"\u89C4\u5219\u540D\u79F0\u662F\u552F\u4E00\u7684 key",hideInSearch:!0,hideInTable:!0,render:function(a,u){return(0,e.jsx)("a",{onClick:function(){H(u),me(!0)},children:a})}},{title:"\u5E97\u94FA",dataIndex:"storeId",valueEnum:F},{title:"\u5206\u8D26\u65B9\u6848",dataIndex:"planId",valueEnum:n},{title:"\u5907\u6CE8",dataIndex:"remark",valueType:"textarea",hideInSearch:!0},{title:"\u521B\u5EFA\u65F6\u95F4",dataIndex:"createAt",valueType:"dateTime",hideInSearch:!0,renderFormItem:function(a,u,h){var g=u.defaultRender,f=(0,y.Z)(u,ke),Z=h.getFieldValue("state");return"".concat(Z)==="0"?!1:"".concat(Z)==="3"?(0,e.jsx)(D.Z,(0,o.Z)((0,o.Z)({},f),{},{placeholder:"\u8BF7\u8F93\u5165\u5F02\u5E38\u539F\u56E0\uFF01"})):g(a)}},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(a,u){return[(0,e.jsx)("a",{onClick:function(){We(u.storeId,u.planId).then(function(g){g.data&&(q(!0),H(function(){return u.businessList=g.data,u}))})},children:"\u66F4\u65B0"},"config")]}}];return(0,e.jsxs)(je.ZP,{children:[(0,e.jsx)(De.ZP,{headerTitle:"\u5206\u8D26\u8D26\u6237",actionRef:w,rowKey:"id",search:{labelWidth:120},columns:ge,toolBarRender:function(){return[(0,e.jsxs)(N.Z,{type:"primary",onClick:function(){q(!0),H({})},children:[(0,e.jsx)(de.Z,{})," \u65B0\u5EFA"]},"primary")]},request:function(){var s=(0,x.Z)((0,i.Z)().mark(function a(u){var h,g;return(0,i.Z)().wrap(function(Z){for(;;)switch(Z.prev=Z.next){case 0:return h=[],g=0,Z.next=4,Oe(u).then(function(c){h=c.data.data,g=c.data.total});case 4:return Z.abrupt("return",{data:h,success:!0,total:g});case 5:case"end":return Z.stop()}},a)}));return function(a){return s.apply(this,arguments)}}(),rowSelection:{onChange:function(a,u){ye(u)}}}),(Y==null?void 0:Y.length)>0&&(0,e.jsx)(Se.Z,{extra:(0,e.jsxs)("div",{children:["\u5DF2\u9009\u62E9"," ",(0,e.jsx)("a",{style:{fontWeight:600},children:Y.length})," ","\u9879 \xA0\xA0"]}),children:(0,e.jsx)(_.Z,{type:"primary",title:"\u786E\u8BA4\u662F\u5426\u5220\u9664\u9009\u4E2D\u9879\uFF1F",okText:"\u662F",cancelText:"\u5426",onConfirm:function(){var a,u;tt(Y),ye([]),(a=w.current)===null||a===void 0||(u=a.reloadAndRest)===null||u===void 0||u.call(a)},onCancel:function(){},children:(0,e.jsx)("a",{href:"#",children:"\u6279\u91CF\u5220\u9664"})},"primary")}),(0,e.jsx)(Te,{OrgData:J,planArray:ie,storeArray:P,onFinish:function(){var s=(0,x.Z)((0,i.Z)().mark(function a(u){var h;return(0,i.Z)().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:if(h=!1,!u.id){f.next=7;break}return f.next=4,et(u);case 4:h=f.sent,f.next=10;break;case 7:return f.next=9,_e(u);case 9:h=f.sent;case 10:h&&(q(!1),w.current&&w.current.reload());case 11:case"end":return f.stop()}},a)}));return function(a){return s.apply(this,arguments)}}(),onCancel:function(){H(void 0),q(!1)},createModalVisible:Je,values:C||{}}),(0,e.jsx)(M.Z,{width:600,visible:Qe,onClose:function(){H(void 0),me(!1)},closable:!1,children:(C==null?void 0:C.name)&&(0,e.jsx)(Ae.ZP,{column:2,title:C==null?void 0:C.name,request:(0,x.Z)((0,i.Z)().mark(function s(){return(0,i.Z)().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.abrupt("return",{data:C||{}});case 1:case"end":return u.stop()}},s)})),params:{id:C==null?void 0:C.name},columns:ge})})]})},Ge=Ye},69918:function(xe,Q,t){"use strict";t.d(Q,{t1:function(){return _},n4:function(){return x},Vs:function(){return N},Wt:function(){return ce}});var b=t(39428),M=t(3182),G=t(48971);function _(y){return i.apply(this,arguments)}function i(){return i=(0,M.Z)((0,b.Z)().mark(function y(T){return(0,b.Z)().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",(0,G.WY)("/kitchen/api/split-plan/split-plan-page",{method:"Post",data:T}));case 1:case"end":return r.stop()}},y)})),i.apply(this,arguments)}function x(y){return X.apply(this,arguments)}function X(){return X=(0,M.Z)((0,b.Z)().mark(function y(T){return(0,b.Z)().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",(0,G.WY)("/kitchen/api/split-plan/split-plan",{method:"POST",data:T}));case 1:case"end":return r.stop()}},y)})),X.apply(this,arguments)}function N(y){return o.apply(this,arguments)}function o(){return o=(0,M.Z)((0,b.Z)().mark(function y(T){return(0,b.Z)().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",(0,G.WY)("/kitchen/api/split-plan/split-plan",{method:"PUT",data:T}));case 1:case"end":return r.stop()}},y)})),o.apply(this,arguments)}function ce(y){return D.apply(this,arguments)}function D(){return D=(0,M.Z)((0,b.Z)().mark(function y(T){return(0,b.Z)().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return console.log(T),r.abrupt("return",(0,G.WY)("/kitchen/api/split-plan/split-plan",{method:"DELETE",data:T}));case 2:case"end":return r.stop()}},y)})),D.apply(this,arguments)}}}]); +(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[7633],{91884:function(xe,Q,t){"use strict";t.r(Q),t.d(Q,{default:function(){return Ge}});var b=t(57338),M=t(273),G=t(62350),_=t(24565),i=t(39428),x=t(3182),X=t(57663),U=t(71577),o=t(11849),ce=t(47673),D=t(4107),y=t(93224),T=t(34792),v=t(48086),r=t(2824),de=t(49101),j=t(67294),je=t(78009),Se=t(85224),De=t(16894),Ae=t(12826),nt=t(71194),Ce=t(50146),rt=t(49111),Fe=t(19650),at=t(77883),Ee=t(85986),ut=t(88983),ee=t(47933),st=t(62999),Ie=t(54680),lt=t(9715),p=t(55843),it=t(43358),E=t(34041),Be=t(59465),e=t(85893),Pe=["key","name","fieldKey"],be=function(l){var A=E.Z.Option,n=E.Z.OptGroup;return(0,e.jsx)(Ce.Z,{title:l.values.id?"\u7F16\u8F91":"\u65B0\u5EFA",width:1400,visible:l.createModalVisible,bodyStyle:{padding:"32px 40px 48px"},footer:null,onCancel:function(){l.onCancel()},destroyOnClose:!0,maskClosable:!1,children:(0,e.jsxs)(p.Z,{layout:"vertical",preserve:!1,initialValues:l.values,onFinish:l.onFinish,children:[(0,e.jsx)(p.Z.Item,{name:"id",hidden:!0,children:(0,e.jsx)(D.Z,{})}),(0,e.jsx)(p.Z.Item,{name:"storeId",label:"\u9009\u62E9\u5E97\u94FA",rules:[{required:!0}],children:(0,e.jsx)(Ie.Z,{style:{width:"100%"},dropdownStyle:{maxHeight:400,overflow:"auto"},treeData:l.OrgData,placeholder:"\u5F52\u5C5E\u95E8\u5E97",treeDefaultExpandAll:!0})}),(0,e.jsx)(p.Z.Item,{label:"\u5206\u8D26\u8D26\u6237",children:(0,e.jsx)(p.Z.List,{name:"businessList",children:function(N,V){var ie=V.add,oe=V.remove;return(0,e.jsxs)(e.Fragment,{children:[N.map(function(W){var R=W.key,C=W.name,I=W.fieldKey,B=(0,y.Z)(W,Pe);return(0,e.jsxs)(Fe.Z,{style:{display:"flex",marginBottom:8},align:"baseline",children:[(0,e.jsx)(p.Z.Item,(0,o.Z)((0,o.Z)({},B),{},{label:"\u5206\u8D26\u8D26\u6237\u7C7B\u522B",name:[C,"accountType"],fieldKey:[I,"accountType"],rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u5206\u8D26\u8D26\u6237\u7C7B\u522B"}],children:(0,e.jsxs)(ee.ZP.Group,{children:[(0,e.jsx)(ee.ZP,{value:0,children:"\u5546\u6237"}),(0,e.jsx)(ee.ZP,{value:1,children:"\u4E2A\u4EBA"})]})})),(0,e.jsx)(p.Z.Item,(0,o.Z)((0,o.Z)({},B),{},{label:"\u5206\u8D26\u8D26\u6237\u540D\u79F0",name:[C,"businessName"],fieldKey:[I,"businessName"],rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5206\u8D26\u8D26\u6237\u540D\u79F0"}],children:(0,e.jsx)(D.Z,{placeholder:"\u5206\u8D26\u8D26\u6237\u540D\u79F0"})})),(0,e.jsx)(p.Z.Item,(0,o.Z)((0,o.Z)({},B),{},{label:"\u5206\u8D26\u8D26\u6237\u53F7",name:[C,"businessId"],fieldKey:[I,"businessId"],rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5206\u8D26\u8D26\u6237\u53F7"}],children:(0,e.jsx)(D.Z,{placeholder:"\u5206\u8D26\u8D26\u6237\u53F7",style:{width:250}})})),(0,e.jsx)(p.Z.Item,(0,o.Z)((0,o.Z)({},B),{},{name:[C,"orderType"],fieldKey:[I,"orderType"],label:"\u8BA2\u5355\u7C7B\u578B",rules:[{required:!0}],children:(0,e.jsx)(E.Z,{style:{width:120},children:(0,e.jsxs)(n,{children:[(0,e.jsx)(E.Z.Option,{value:0,children:"\u4E3B\u8BA2\u5355"}),(0,e.jsx)(E.Z.Option,{value:1,children:"\u5B50\u8BA2\u5355"})]})})})),(0,e.jsx)(p.Z.Item,(0,o.Z)((0,o.Z)({},B),{},{name:[C,"splitType"],fieldKey:[I,"splitType"],label:"\u5206\u8D26\u7C7B\u578B",rules:[{required:!0}],children:(0,e.jsx)(E.Z,{style:{width:120},children:(0,e.jsxs)(n,{children:[(0,e.jsx)(E.Z.Option,{value:0,children:"\u6BD4\u4F8B\u5206\u8D26"}),(0,e.jsx)(E.Z.Option,{value:1,children:"\u56FA\u5B9A\u91D1\u989D"})]})})})),(0,e.jsx)(p.Z.Item,{noStyle:!0,shouldUpdate:function(P,O){var K,k,J;return(P==null||(K=P.businessList[R])===null||K===void 0?void 0:K.splitType)!=null||(P==null||(k=P.businessList[R])===null||k===void 0?void 0:k.splitType)!==(O==null||(J=O.businessList[R])===null||J===void 0?void 0:J.splitType)},children:function(P){var O,K=P.getFieldValue;return((O=K("businessList")[R])===null||O===void 0?void 0:O.splitType)!="1"?(0,e.jsx)(p.Z.Item,(0,o.Z)((0,o.Z)({},B),{},{label:"\u5206\u8D26\u6BD4\u4F8B",name:[C,"proportion"],fieldKey:[I,"proportion"],rules:[{required:!1,message:"\u8BF7\u8F93\u5165\u5206\u8D26\u6BD4\u4F8B"}],children:(0,e.jsx)(Ee.Z,{step:.1,min:0,max:1,precision:2,style:{width:150}})})):(0,e.jsx)(p.Z.Item,(0,o.Z)((0,o.Z)({},B),{},{label:"\u56FA\u5B9A\u91D1\u989D",name:[C,"fixedMoney"],fieldKey:[I,"fixedMoney"],rules:[{required:!1,message:"\u8BF7\u8F93\u5165\u56FA\u5B9A\u91D1\u989D"}],children:(0,e.jsx)(D.Z,{placeholder:"\u56FA\u5B9A\u91D1\u989D",style:{width:150}})}))}}),(0,e.jsx)(p.Z.Item,(0,o.Z)((0,o.Z)({},B),{},{label:"\u5206\u8D26\u63CF\u8FF0",name:[C,"remark"],fieldKey:[I,"remark"],rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5206\u8D26\u63CF\u8FF0"}],children:(0,e.jsx)(D.Z,{placeholder:"\u5206\u8D26\u63CF\u8FF0"})})),(0,e.jsx)(Be.Z,{onClick:function(){return oe(C)}})]},R)}),(0,e.jsx)(p.Z.Item,{children:(0,e.jsx)(U.Z,{type:"dashed",onClick:function(){return ie()},block:!0,icon:(0,e.jsx)(de.Z,{}),children:"\u6DFB\u52A0"})})]})}})}),(0,e.jsx)(p.Z.Item,{name:"planId",label:"\u5206\u8D26\u65B9\u6848",rules:[{required:!0}],children:(0,e.jsx)(E.Z,{children:l.planArray.map(function(S,N){return(0,e.jsx)(E.Z.Option,{index:N,value:S.id,children:S.text},S.id)})})}),(0,e.jsx)(p.Z.Item,{name:"remark",label:"\u5907\u6CE8",rules:[{required:!1,max:64}],children:(0,e.jsx)(D.Z,{placeholder:"\u5907\u6CE8"})}),(0,e.jsx)(p.Z.Item,{children:(0,e.jsx)(U.Z,{type:"primary",htmlType:"submit",children:"\u4FDD\u5B58"})})]})})},Te=be,$=t(48971);function Oe(d){return te.apply(this,arguments)}function te(){return te=(0,x.Z)((0,i.Z)().mark(function d(l){return(0,i.Z)().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",(0,$.WY)("/kitchen/api/split-account/account-details-page",{method:"Post",data:l}));case 1:case"end":return n.stop()}},d)})),te.apply(this,arguments)}function Le(d){return ne.apply(this,arguments)}function ne(){return ne=(0,x.Z)((0,i.Z)().mark(function d(l){return(0,i.Z)().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",(0,$.WY)("/kitchen/api/split-account/split-account-detail",{method:"POST",data:l}));case 1:case"end":return n.stop()}},d)})),ne.apply(this,arguments)}function Re(d){return re.apply(this,arguments)}function re(){return re=(0,x.Z)((0,i.Z)().mark(function d(l){return(0,i.Z)().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",(0,$.WY)("/kitchen/api/split-account/account-details",{method:"PUT",data:l}));case 1:case"end":return n.stop()}},d)})),re.apply(this,arguments)}function we(d){return ae.apply(this,arguments)}function ae(){return ae=(0,x.Z)((0,i.Z)().mark(function d(l){return(0,i.Z)().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return console.log(l),n.abrupt("return",(0,$.WY)("/kitchen/api/split-account/account-detail",{method:"DELETE",data:l}));case 2:case"end":return n.stop()}},d)})),ae.apply(this,arguments)}function $e(d){return ue.apply(this,arguments)}function ue(){return ue=(0,x.Z)((0,i.Z)().mark(function d(l){return(0,i.Z)().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",(0,$.WY)("\u200B/kitchen/api\u200B/store-info\u200B/store-info-page",{method:"POST",data:l}));case 1:case"end":return n.stop()}},d)})),ue.apply(this,arguments)}function We(d,l){return se.apply(this,arguments)}function se(){return se=(0,x.Z)((0,i.Z)().mark(function d(l,A){return(0,i.Z)().wrap(function(S){for(;;)switch(S.prev=S.next){case 0:return S.abrupt("return",(0,$.WY)("/kitchen/api/split-business/business/".concat(l,"/").concat(A),{method:"GET"}));case 1:case"end":return S.stop()}},d)})),se.apply(this,arguments)}function Ke(d){return le.apply(this,arguments)}function le(){return le=(0,x.Z)((0,i.Z)().mark(function d(l){return(0,i.Z)().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",(0,$.WY)("\u200B/kitchen/api\u200B/sysOrg\u200B/tree",{data:(0,o.Z)({},l)}));case 1:case"end":return n.stop()}},d)})),le.apply(this,arguments)}var Me=t(69918),ke=["defaultRender"],Ye=function(){var l=(0,j.useState)(),A=(0,r.Z)(l,2),n=A[0],S=A[1],N=(0,j.useState)([]),V=(0,r.Z)(N,2),ie=V[0],oe=V[1],W=(0,j.useState)(),R=(0,r.Z)(W,2),C=R[0],I=R[1],B=(0,j.useState)([]),z=(0,r.Z)(B,2),P=z[0],O=z[1],K=(0,j.useState)([]),k=(0,r.Z)(K,2),J=k[0],Ue=k[1],Ne=(0,j.useState)([]),pe=(0,r.Z)(Ne,2),ot=pe[0],Ve=pe[1];(0,j.useEffect)(function(){var s=function(g){var f=(0,Me.t1)({current:1,pageSize:1e3}).then(function(Z){var c={},m=[];Z.data.data.forEach(function(L){m.push({text:L.planName,id:L.id}),c[L.id]={text:L.planName}}),oe(m),S(c)})},a=function(g){var f=$e({current:1,pageSize:1e3}).then(function(Z){var c={},m=[];Z.data.data.forEach(function(L){m.push({text:L.store_Name,id:L.id}),c[L.id]={text:L.store_Name}}),O(m),I(c)})};function u(){Ke().then(function(h){g(h.data);function g(c){for(var m in c)c[m].type==2||c[m].type==3?c[m].disabled=!1:c[m].disabled=!0,c[m].children&&g(c[m].children)}Ue(h.data);var f={};Z(h.data);function Z(c){for(var m in c)f[c[m].disabled]=!0,f[c[m].value]={text:c[m].title},c[m].children&&Z(c[m].children)}Ve(f)})}u(),s(),a()},[]);var ze=(0,j.useState)(!1),he=(0,r.Z)(ze,2),Je=he[0],q=he[1],He=(0,j.useState)(!1),fe=(0,r.Z)(He,2),Qe=fe[0],me=fe[1],w=(0,j.useRef)(),Xe=(0,j.useState)(),ve=(0,r.Z)(Xe,2),F=ve[0],H=ve[1],qe=(0,j.useState)([]),Ze=(0,r.Z)(qe,2),Y=Ze[0],ye=Ze[1];function _e(s){try{return Le(JSON.stringify(s)),v.default.success("\u6DFB\u52A0\u6210\u529F"),w.current.reload(),!0}catch(a){return v.default.error("\u6DFB\u52A0\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),!1}}function et(s){try{return Re(JSON.stringify(s)).then(function(a){a.data?(v.default.success("\u4FEE\u6539\u6210\u529F"),w.current.reload()):v.default.error("\u4FEE\u6539\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01")}),!0}catch(a){return v.default.error("\u4FEE\u6539\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),!1}}function tt(){try{return we(Y.map(function(s,a){return s.id})).then(function(s){s.data?v.default.success("\u5220\u9664\u6210\u529F\uFF0C\u5373\u5C06\u5237\u65B0"):v.default.error("\u5220\u9664\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5")}),w.current.reload(),!0}catch(s){v.default.error("\u5220\u9664\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5")}}function ct(s){try{return removeSingleAccount(s).then(function(a){a.data?(v.default.success("\u5220\u9664\u6210\u529F\uFF0C\u5373\u5C06\u5237\u65B0"),w.current.reload()):v.default.error("\u5220\u9664\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5")}),!0}catch(a){v.default.error("\u5220\u9664\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5")}}var ge=[{title:"\u4E3B\u952E",dataIndex:"id",tip:"\u89C4\u5219\u540D\u79F0\u662F\u552F\u4E00\u7684 key",hideInSearch:!0,hideInTable:!0,render:function(a,u){return(0,e.jsx)("a",{onClick:function(){H(u),me(!0)},children:a})}},{title:"\u5E97\u94FA",dataIndex:"storeId",valueEnum:C},{title:"\u5206\u8D26\u65B9\u6848",dataIndex:"planId",valueEnum:n},{title:"\u5907\u6CE8",dataIndex:"remark",valueType:"textarea",hideInSearch:!0},{title:"\u521B\u5EFA\u65F6\u95F4",dataIndex:"createAt",valueType:"dateTime",hideInSearch:!0,renderFormItem:function(a,u,h){var g=u.defaultRender,f=(0,y.Z)(u,ke),Z=h.getFieldValue("state");return"".concat(Z)==="0"?!1:"".concat(Z)==="3"?(0,e.jsx)(D.Z,(0,o.Z)((0,o.Z)({},f),{},{placeholder:"\u8BF7\u8F93\u5165\u5F02\u5E38\u539F\u56E0\uFF01"})):g(a)}},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(a,u){return[(0,e.jsx)("a",{onClick:function(){We(u.storeId,u.planId).then(function(g){g.data&&(q(!0),H(function(){return u.businessList=g.data,u}))})},children:"\u66F4\u65B0"},"config")]}}];return(0,e.jsxs)(je.ZP,{children:[(0,e.jsx)(De.ZP,{headerTitle:"\u5206\u8D26\u8D26\u6237",actionRef:w,rowKey:"id",search:{labelWidth:120},columns:ge,toolBarRender:function(){return[(0,e.jsxs)(U.Z,{type:"primary",onClick:function(){q(!0),H({})},children:[(0,e.jsx)(de.Z,{})," \u65B0\u5EFA"]},"primary")]},request:function(){var s=(0,x.Z)((0,i.Z)().mark(function a(u){var h,g;return(0,i.Z)().wrap(function(Z){for(;;)switch(Z.prev=Z.next){case 0:return h=[],g=0,Z.next=4,Oe(u).then(function(c){h=c.data.data,g=c.data.total});case 4:return Z.abrupt("return",{data:h,success:!0,total:g});case 5:case"end":return Z.stop()}},a)}));return function(a){return s.apply(this,arguments)}}(),rowSelection:{onChange:function(a,u){ye(u)}}}),(Y==null?void 0:Y.length)>0&&(0,e.jsx)(Se.Z,{extra:(0,e.jsxs)("div",{children:["\u5DF2\u9009\u62E9"," ",(0,e.jsx)("a",{style:{fontWeight:600},children:Y.length})," ","\u9879 \xA0\xA0"]}),children:(0,e.jsx)(_.Z,{type:"primary",title:"\u786E\u8BA4\u662F\u5426\u5220\u9664\u9009\u4E2D\u9879\uFF1F",okText:"\u662F",cancelText:"\u5426",onConfirm:function(){var a,u;tt(Y),ye([]),(a=w.current)===null||a===void 0||(u=a.reloadAndRest)===null||u===void 0||u.call(a)},onCancel:function(){},children:(0,e.jsx)("a",{href:"#",children:"\u6279\u91CF\u5220\u9664"})},"primary")}),(0,e.jsx)(Te,{OrgData:J,planArray:ie,storeArray:P,onFinish:function(){var s=(0,x.Z)((0,i.Z)().mark(function a(u){var h;return(0,i.Z)().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:if(h=!1,!u.id){f.next=7;break}return f.next=4,et(u);case 4:h=f.sent,f.next=10;break;case 7:return f.next=9,_e(u);case 9:h=f.sent;case 10:h&&(q(!1),w.current&&w.current.reload());case 11:case"end":return f.stop()}},a)}));return function(a){return s.apply(this,arguments)}}(),onCancel:function(){H(void 0),q(!1)},createModalVisible:Je,values:F||{}}),(0,e.jsx)(M.Z,{width:600,visible:Qe,onClose:function(){H(void 0),me(!1)},closable:!1,children:(F==null?void 0:F.name)&&(0,e.jsx)(Ae.ZP,{column:2,title:F==null?void 0:F.name,request:(0,x.Z)((0,i.Z)().mark(function s(){return(0,i.Z)().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.abrupt("return",{data:F||{}});case 1:case"end":return u.stop()}},s)})),params:{id:F==null?void 0:F.name},columns:ge})})]})},Ge=Ye},69918:function(xe,Q,t){"use strict";t.d(Q,{t1:function(){return _},n4:function(){return x},Vs:function(){return U},Wt:function(){return ce}});var b=t(39428),M=t(3182),G=t(48971);function _(y){return i.apply(this,arguments)}function i(){return i=(0,M.Z)((0,b.Z)().mark(function y(T){return(0,b.Z)().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",(0,G.WY)("/kitchen/api/split-plan/split-plan-page",{method:"Post",data:T}));case 1:case"end":return r.stop()}},y)})),i.apply(this,arguments)}function x(y){return X.apply(this,arguments)}function X(){return X=(0,M.Z)((0,b.Z)().mark(function y(T){return(0,b.Z)().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",(0,G.WY)("/kitchen/api/split-plan/split-plan",{method:"POST",data:T}));case 1:case"end":return r.stop()}},y)})),X.apply(this,arguments)}function U(y){return o.apply(this,arguments)}function o(){return o=(0,M.Z)((0,b.Z)().mark(function y(T){return(0,b.Z)().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",(0,G.WY)("/kitchen/api/split-plan/split-plan",{method:"PUT",data:T}));case 1:case"end":return r.stop()}},y)})),o.apply(this,arguments)}function ce(y){return D.apply(this,arguments)}function D(){return D=(0,M.Z)((0,b.Z)().mark(function y(T){return(0,b.Z)().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return console.log(T),r.abrupt("return",(0,G.WY)("/kitchen/api/split-plan/split-plan",{method:"DELETE",data:T}));case 2:case"end":return r.stop()}},y)})),D.apply(this,arguments)}}}]); diff --git a/dist/p__split__plan.9bd63172.async.js b/dist/p__split__plan.6a2d8f94.async.js similarity index 81% rename from dist/p__split__plan.9bd63172.async.js rename to dist/p__split__plan.6a2d8f94.async.js index 41217ab..c7b2666 100644 --- a/dist/p__split__plan.9bd63172.async.js +++ b/dist/p__split__plan.6a2d8f94.async.js @@ -1 +1 @@ -(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[4728],{63088:function(H,P,e){"use strict";e.r(P),e.d(P,{default:function(){return ne}});var h=e(57338),x=e(273),g=e(62350),M=e(24565),c=e(39428),C=e(3182),F=e(57663),E=e(71577),I=e(34792),s=e(48086),p=e(2824),i=e(49101),u=e(67294),S=e(78009),l=e(85224),G=e(16894),J=e(12826),oe=e(71194),z=e(50146),de=e(77883),Q=e(85986),ce=e(9715),Z=e(55843),me=e(47673),W=e(4107),fe=e(14965),X=e(91774),k=e(30381),$=e.n(k),t=e(85893),q=function(o){var A=X.Z.RangePicker,O=W.Z.TextArea,v=[];return o.values&&(v.push(o.values.planStartTime),v.push(o.values.planEndTime)),o.values.planDate=v,(0,t.jsx)(z.Z,{title:o.values.id?"\u7F16\u8F91":"\u65B0\u5EFA",width:700,visible:o.createModalVisible,bodyStyle:{padding:"32px 40px 48px"},footer:null,onCancel:function(){o.onCancel()},destroyOnClose:!0,maskClosable:!1,children:(0,t.jsxs)(Z.Z,{layout:"Horizontal",preserve:!1,initialValues:o.values,onFinish:o.onFinish,children:[(0,t.jsx)(Z.Z.Item,{name:"id",hidden:!0,children:(0,t.jsx)(W.Z,{})}),(0,t.jsx)(Z.Z.Item,{name:"planName",label:"\u65B9\u6848\u540D\u79F0",rules:[{required:!0,max:20,whitespace:!0}],children:(0,t.jsx)(W.Z,{placeholder:"\u65B9\u6848\u540D\u79F0"})}),(0,t.jsx)(Z.Z.Item,{name:"planDate",label:"\u9009\u62E9\u65F6\u95F4",rules:[{required:!0}],children:(0,t.jsx)(A,{showTime:!0,format:"YYYY-MM-DD HH:mm:ss"})}),(0,t.jsx)(Z.Z.Item,{name:"serviceFee",label:"\u670D\u52A1\u8D39\u6BD4\u4F8B",rules:[{required:!0}],children:(0,t.jsx)(Q.Z,{step:.01,min:0,max:1,defaultValue:0,precision:2})}),(0,t.jsx)(Z.Z.Item,{name:"remark",label:"\u5907\u6CE8",rules:[{required:!1,max:255}],children:(0,t.jsx)(O,{rows:4,placeholder:"\u8BF7\u8F93\u5165\u5907\u6CE8"})}),(0,t.jsx)(Z.Z.Item,{children:(0,t.jsx)(E.Z,{type:"primary",htmlType:"submit",style:{float:"right"},children:"\u4FDD\u5B58"})})]})})},_=q,R=e(69918),ee=function(){var o=(0,u.useState)(!1),A=(0,p.Z)(o,2),O=A[0],v=A[1],V=(0,u.useState)(!1),Y=(0,p.Z)(V,2),ae=Y[0],b=Y[1],y=(0,u.useRef)(),re=(0,u.useState)(),K=(0,p.Z)(re,2),d=K[0],j=K[1],le=(0,u.useState)([]),L=(0,p.Z)(le,2),T=L[0],w=L[1];function ue(a){try{return(0,R.n4)(JSON.stringify(a)),s.default.success("\u6DFB\u52A0\u6210\u529F"),y.current.reload(),!0}catch(r){return s.default.error("\u6DFB\u52A0\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),!1}}function se(a){try{return(0,R.Vs)(JSON.stringify(a)).then(function(r){r.data?(s.default.success("\u4FEE\u6539\u6210\u529F"),y.current.reload()):s.default.error("\u4FEE\u6539\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01")}),!0}catch(r){return s.default.error("\u4FEE\u6539\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),!1}}function ie(){try{return(0,R.Wt)(T.map(function(a,r){return a.id})).then(function(a){a.data?s.default.success("\u5220\u9664\u6210\u529F\uFF0C\u5373\u5C06\u5237\u65B0"):s.default.error("\u5220\u9664\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5")}),y.current.reload(),!0}catch(a){s.default.error("\u5220\u9664\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5")}}function he(a){try{return removeSingleAccount(a).then(function(r){r.data?(s.default.success("\u5220\u9664\u6210\u529F\uFF0C\u5373\u5C06\u5237\u65B0"),y.current.reload()):s.default.error("\u5220\u9664\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5")}),!0}catch(r){s.default.error("\u5220\u9664\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5")}}var U=[{title:"\u4E3B\u952E",dataIndex:"id",tip:"\u89C4\u5219\u540D\u79F0\u662F\u552F\u4E00\u7684 key",hideInSearch:!0,hideInTable:!0,render:function(r,n){return(0,t.jsx)("a",{onClick:function(){j(n),b(!0)},children:r})}},{title:"\u5206\u8D26\u65B9\u6848\u540D\u79F0",dataIndex:"planName",valueType:"textarea"},{title:"\u5F00\u59CB\u65F6\u95F4",hideInSearch:!0,dataIndex:"planStartTime",valueType:"dateTime"},{title:"\u7ED3\u675F\u65F6\u95F4",hideInSearch:!0,dataIndex:"planEndTime",valueType:"dateTime"},{title:"\u670D\u52A1\u8D39\u6BD4\u4F8B",dataIndex:"serviceFee",valueType:"textarea",hideInSearch:!0},{title:"\u5907\u6CE8",dataIndex:"remark",valueType:"textarea",hideInSearch:!0},{title:"\u521B\u5EFA\u65F6\u95F4",dataIndex:"createAt",valueType:"textarea",hideInSearch:!0},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(r,n){return[(0,t.jsx)("a",{onClick:function(){v(!0),j(function(){return n.planStartTime!=null&&(n.planStartTime=$()(n.planStartTime),n.planEndTime=$()(n.planEndTime)),n})},children:"\u66F4\u65B0"},"config")]}}];return(0,t.jsxs)(S.ZP,{children:[(0,t.jsx)(G.ZP,{headerTitle:"\u5206\u8D26\u65B9\u6848",actionRef:y,rowKey:"id",search:{labelWidth:120},columns:U,toolBarRender:function(){return[(0,t.jsxs)(E.Z,{type:"primary",onClick:function(){v(!0),j({})},children:[(0,t.jsx)(i.Z,{})," \u65B0\u5EFA"]},"primary")]},request:function(){var a=(0,C.Z)((0,c.Z)().mark(function r(n){var m,B;return(0,c.Z)().wrap(function(D){for(;;)switch(D.prev=D.next){case 0:return m=[],B=0,D.next=4,(0,R.t1)(n).then(function(N){m=N.data.data,B=N.data.total});case 4:return D.abrupt("return",{data:m,success:!0,total:B});case 5:case"end":return D.stop()}},r)}));return function(r){return a.apply(this,arguments)}}(),rowSelection:{onChange:function(r,n){w(n)}}}),(T==null?void 0:T.length)>0&&(0,t.jsx)(l.Z,{extra:(0,t.jsxs)("div",{children:["\u5DF2\u9009\u62E9"," ",(0,t.jsx)("a",{style:{fontWeight:600},children:T.length})," ","\u9879 \xA0\xA0"]}),children:(0,t.jsx)(M.Z,{type:"primary",title:"\u786E\u8BA4\u662F\u5426\u5220\u9664\u9009\u4E2D\u9879\uFF1F",okText:"\u662F",cancelText:"\u5426",onConfirm:function(){var r,n;ie(T),w([]),(r=y.current)===null||r===void 0||(n=r.reloadAndRest)===null||n===void 0||n.call(r)},onCancel:function(){},children:(0,t.jsx)("a",{href:"#",children:"\u6279\u91CF\u5220\u9664"})},"primary")}),(0,t.jsx)(_,{onFinish:function(){var a=(0,C.Z)((0,c.Z)().mark(function r(n){var m;return(0,c.Z)().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:if(m=!1,n.planStartTime=new Date(n.planDate[0]),n.planEndTime=new Date(n.planDate[1]),!n.id){f.next=9;break}return f.next=6,se(n);case 6:m=f.sent,f.next=12;break;case 9:return f.next=11,ue(n);case 11:m=f.sent;case 12:m&&(v(!1),y.current&&y.current.reload());case 13:case"end":return f.stop()}},r)}));return function(r){return a.apply(this,arguments)}}(),onCancel:function(){j(void 0),v(!1)},createModalVisible:O,values:d||{}}),(0,t.jsx)(x.Z,{width:600,visible:ae,onClose:function(){j(void 0),b(!1)},closable:!1,children:(d==null?void 0:d.name)&&(0,t.jsx)(J.ZP,{column:2,title:d==null?void 0:d.name,request:(0,C.Z)((0,c.Z)().mark(function a(){return(0,c.Z)().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",{data:d||{}});case 1:case"end":return n.stop()}},a)})),params:{id:d==null?void 0:d.name},columns:U})})]})},ne=ee},69918:function(H,P,e){"use strict";e.d(P,{t1:function(){return M},n4:function(){return C},Vs:function(){return E},Wt:function(){return s}});var h=e(39428),x=e(3182),g=e(48971);function M(i){return c.apply(this,arguments)}function c(){return c=(0,x.Z)((0,h.Z)().mark(function i(u){return(0,h.Z)().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.abrupt("return",(0,g.WY)("/kitchen/api/split-plan/split-plan-page",{method:"Post",data:u}));case 1:case"end":return l.stop()}},i)})),c.apply(this,arguments)}function C(i){return F.apply(this,arguments)}function F(){return F=(0,x.Z)((0,h.Z)().mark(function i(u){return(0,h.Z)().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.abrupt("return",(0,g.WY)("/kitchen/api/split-plan/split-plan",{method:"POST",data:u}));case 1:case"end":return l.stop()}},i)})),F.apply(this,arguments)}function E(i){return I.apply(this,arguments)}function I(){return I=(0,x.Z)((0,h.Z)().mark(function i(u){return(0,h.Z)().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.abrupt("return",(0,g.WY)("/kitchen/api/split-plan/split-plan",{method:"PUT",data:u}));case 1:case"end":return l.stop()}},i)})),I.apply(this,arguments)}function s(i){return p.apply(this,arguments)}function p(){return p=(0,x.Z)((0,h.Z)().mark(function i(u){return(0,h.Z)().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return console.log(u),l.abrupt("return",(0,g.WY)("/kitchen/api/split-plan/split-plan",{method:"DELETE",data:u}));case 2:case"end":return l.stop()}},i)})),p.apply(this,arguments)}}}]); +(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[4728],{63088:function(H,P,e){"use strict";e.r(P),e.d(P,{default:function(){return ne}});var h=e(57338),x=e(273),C=e(62350),M=e(24565),c=e(39428),g=e(3182),F=e(57663),E=e(71577),I=e(34792),s=e(48086),p=e(2824),i=e(49101),u=e(67294),S=e(78009),l=e(85224),G=e(16894),J=e(12826),oe=e(71194),z=e(50146),de=e(77883),k=e(85986),ce=e(9715),Z=e(55843),me=e(47673),W=e(4107),fe=e(14965),Q=e(91774),X=e(30381),$=e.n(X),t=e(85893),q=function(o){var A=Q.Z.RangePicker,O=W.Z.TextArea,v=[];return o.values&&(v.push(o.values.planStartTime),v.push(o.values.planEndTime)),o.values.planDate=v,(0,t.jsx)(z.Z,{title:o.values.id?"\u7F16\u8F91":"\u65B0\u5EFA",width:700,visible:o.createModalVisible,bodyStyle:{padding:"32px 40px 48px"},footer:null,onCancel:function(){o.onCancel()},destroyOnClose:!0,maskClosable:!1,children:(0,t.jsxs)(Z.Z,{layout:"Horizontal",preserve:!1,initialValues:o.values,onFinish:o.onFinish,children:[(0,t.jsx)(Z.Z.Item,{name:"id",hidden:!0,children:(0,t.jsx)(W.Z,{})}),(0,t.jsx)(Z.Z.Item,{name:"planName",label:"\u65B9\u6848\u540D\u79F0",rules:[{required:!0,max:20,whitespace:!0}],children:(0,t.jsx)(W.Z,{placeholder:"\u65B9\u6848\u540D\u79F0"})}),(0,t.jsx)(Z.Z.Item,{name:"planDate",label:"\u9009\u62E9\u65F6\u95F4",rules:[{required:!0}],children:(0,t.jsx)(A,{showTime:!0,format:"YYYY-MM-DD HH:mm:ss"})}),(0,t.jsx)(Z.Z.Item,{name:"serviceFee",label:"\u670D\u52A1\u8D39\u6BD4\u4F8B",rules:[{required:!0}],children:(0,t.jsx)(k.Z,{step:.01,min:0,max:1,defaultValue:0,precision:2})}),(0,t.jsx)(Z.Z.Item,{name:"remark",label:"\u5907\u6CE8",rules:[{required:!1,max:255}],children:(0,t.jsx)(O,{rows:4,placeholder:"\u8BF7\u8F93\u5165\u5907\u6CE8"})}),(0,t.jsx)(Z.Z.Item,{children:(0,t.jsx)(E.Z,{type:"primary",htmlType:"submit",style:{float:"right"},children:"\u4FDD\u5B58"})})]})})},_=q,R=e(69918),ee=function(){var o=(0,u.useState)(!1),A=(0,p.Z)(o,2),O=A[0],v=A[1],V=(0,u.useState)(!1),Y=(0,p.Z)(V,2),ae=Y[0],b=Y[1],y=(0,u.useRef)(),re=(0,u.useState)(),U=(0,p.Z)(re,2),d=U[0],j=U[1],le=(0,u.useState)([]),K=(0,p.Z)(le,2),T=K[0],L=K[1];function ue(a){try{return(0,R.n4)(JSON.stringify(a)),s.default.success("\u6DFB\u52A0\u6210\u529F"),y.current.reload(),!0}catch(r){return s.default.error("\u6DFB\u52A0\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),!1}}function se(a){try{return(0,R.Vs)(JSON.stringify(a)).then(function(r){r.data?(s.default.success("\u4FEE\u6539\u6210\u529F"),y.current.reload()):s.default.error("\u4FEE\u6539\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01")}),!0}catch(r){return s.default.error("\u4FEE\u6539\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),!1}}function ie(){try{return(0,R.Wt)(T.map(function(a,r){return a.id})).then(function(a){a.data?s.default.success("\u5220\u9664\u6210\u529F\uFF0C\u5373\u5C06\u5237\u65B0"):s.default.error("\u5220\u9664\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5")}),y.current.reload(),!0}catch(a){s.default.error("\u5220\u9664\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5")}}function he(a){try{return removeSingleAccount(a).then(function(r){r.data?(s.default.success("\u5220\u9664\u6210\u529F\uFF0C\u5373\u5C06\u5237\u65B0"),y.current.reload()):s.default.error("\u5220\u9664\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5")}),!0}catch(r){s.default.error("\u5220\u9664\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5")}}var w=[{title:"\u4E3B\u952E",dataIndex:"id",tip:"\u89C4\u5219\u540D\u79F0\u662F\u552F\u4E00\u7684 key",hideInSearch:!0,hideInTable:!0,render:function(r,n){return(0,t.jsx)("a",{onClick:function(){j(n),b(!0)},children:r})}},{title:"\u5206\u8D26\u65B9\u6848\u540D\u79F0",dataIndex:"planName",valueType:"textarea"},{title:"\u5F00\u59CB\u65F6\u95F4",hideInSearch:!0,dataIndex:"planStartTime",valueType:"dateTime"},{title:"\u7ED3\u675F\u65F6\u95F4",hideInSearch:!0,dataIndex:"planEndTime",valueType:"dateTime"},{title:"\u670D\u52A1\u8D39\u6BD4\u4F8B",dataIndex:"serviceFee",valueType:"textarea",hideInSearch:!0},{title:"\u5907\u6CE8",dataIndex:"remark",valueType:"textarea",hideInSearch:!0},{title:"\u521B\u5EFA\u65F6\u95F4",dataIndex:"createAt",valueType:"textarea",hideInSearch:!0},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(r,n){return[(0,t.jsx)("a",{onClick:function(){v(!0),j(function(){return n.planStartTime!=null&&(n.planStartTime=$()(n.planStartTime),n.planEndTime=$()(n.planEndTime)),n})},children:"\u66F4\u65B0"},"config")]}}];return(0,t.jsxs)(S.ZP,{children:[(0,t.jsx)(G.ZP,{headerTitle:"\u5206\u8D26\u65B9\u6848",actionRef:y,rowKey:"id",search:{labelWidth:120},columns:w,toolBarRender:function(){return[(0,t.jsxs)(E.Z,{type:"primary",onClick:function(){v(!0),j({})},children:[(0,t.jsx)(i.Z,{})," \u65B0\u5EFA"]},"primary")]},request:function(){var a=(0,g.Z)((0,c.Z)().mark(function r(n){var m,B;return(0,c.Z)().wrap(function(D){for(;;)switch(D.prev=D.next){case 0:return m=[],B=0,D.next=4,(0,R.t1)(n).then(function(N){m=N.data.data,B=N.data.total});case 4:return D.abrupt("return",{data:m,success:!0,total:B});case 5:case"end":return D.stop()}},r)}));return function(r){return a.apply(this,arguments)}}(),rowSelection:{onChange:function(r,n){L(n)}}}),(T==null?void 0:T.length)>0&&(0,t.jsx)(l.Z,{extra:(0,t.jsxs)("div",{children:["\u5DF2\u9009\u62E9"," ",(0,t.jsx)("a",{style:{fontWeight:600},children:T.length})," ","\u9879 \xA0\xA0"]}),children:(0,t.jsx)(M.Z,{type:"primary",title:"\u786E\u8BA4\u662F\u5426\u5220\u9664\u9009\u4E2D\u9879\uFF1F",okText:"\u662F",cancelText:"\u5426",onConfirm:function(){var r,n;ie(T),L([]),(r=y.current)===null||r===void 0||(n=r.reloadAndRest)===null||n===void 0||n.call(r)},onCancel:function(){},children:(0,t.jsx)("a",{href:"#",children:"\u6279\u91CF\u5220\u9664"})},"primary")}),(0,t.jsx)(_,{onFinish:function(){var a=(0,g.Z)((0,c.Z)().mark(function r(n){var m;return(0,c.Z)().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:if(m=!1,n.planStartTime=new Date(n.planDate[0]),n.planEndTime=new Date(n.planDate[1]),!n.id){f.next=9;break}return f.next=6,se(n);case 6:m=f.sent,f.next=12;break;case 9:return f.next=11,ue(n);case 11:m=f.sent;case 12:m&&(v(!1),y.current&&y.current.reload());case 13:case"end":return f.stop()}},r)}));return function(r){return a.apply(this,arguments)}}(),onCancel:function(){j(void 0),v(!1)},createModalVisible:O,values:d||{}}),(0,t.jsx)(x.Z,{width:600,visible:ae,onClose:function(){j(void 0),b(!1)},closable:!1,children:(d==null?void 0:d.name)&&(0,t.jsx)(J.ZP,{column:2,title:d==null?void 0:d.name,request:(0,g.Z)((0,c.Z)().mark(function a(){return(0,c.Z)().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",{data:d||{}});case 1:case"end":return n.stop()}},a)})),params:{id:d==null?void 0:d.name},columns:w})})]})},ne=ee},69918:function(H,P,e){"use strict";e.d(P,{t1:function(){return M},n4:function(){return g},Vs:function(){return E},Wt:function(){return s}});var h=e(39428),x=e(3182),C=e(48971);function M(i){return c.apply(this,arguments)}function c(){return c=(0,x.Z)((0,h.Z)().mark(function i(u){return(0,h.Z)().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.abrupt("return",(0,C.WY)("/kitchen/api/split-plan/split-plan-page",{method:"Post",data:u}));case 1:case"end":return l.stop()}},i)})),c.apply(this,arguments)}function g(i){return F.apply(this,arguments)}function F(){return F=(0,x.Z)((0,h.Z)().mark(function i(u){return(0,h.Z)().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.abrupt("return",(0,C.WY)("/kitchen/api/split-plan/split-plan",{method:"POST",data:u}));case 1:case"end":return l.stop()}},i)})),F.apply(this,arguments)}function E(i){return I.apply(this,arguments)}function I(){return I=(0,x.Z)((0,h.Z)().mark(function i(u){return(0,h.Z)().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.abrupt("return",(0,C.WY)("/kitchen/api/split-plan/split-plan",{method:"PUT",data:u}));case 1:case"end":return l.stop()}},i)})),I.apply(this,arguments)}function s(i){return p.apply(this,arguments)}function p(){return p=(0,x.Z)((0,h.Z)().mark(function i(u){return(0,h.Z)().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return console.log(u),l.abrupt("return",(0,C.WY)("/kitchen/api/split-plan/split-plan",{method:"DELETE",data:u}));case 2:case"end":return l.stop()}},i)})),p.apply(this,arguments)}}}]); diff --git a/dist/p__store__printer__printerTemplate.85273370.async.js b/dist/p__store__printer__printerTemplate.85273370.async.js deleted file mode 100644 index e28bcfb..0000000 --- a/dist/p__store__printer__printerTemplate.85273370.async.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[9999,1322,9464,1981,2869,7013,9719,2383],{1958:function(te,E,t){"use strict";t.r(E),t.d(E,{default:function(){return M}});var re=t(13062),W=t(71230),ne=t(89032),A=t(15746),ae=t(58024),C=t(91894),Y=t(86582),se=t(88983),F=t(47933),u=t(39428),ue=t(34792),I=t(48086),c=t(3182),y=t(2824),ie=t(18106),B=t(95562),N=t(78009),h=t(67294),l=t(952),p=t(1705),Z=t(48971);function L(a){return P.apply(this,arguments)}function P(){return P=(0,c.Z)((0,u.Z)().mark(function a(d){return(0,u.Z)().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",(0,Z.WY)("/kitchen/api/printer/printer-templater",{method:"get",data:d}));case 1:case"end":return r.stop()}},a)})),P.apply(this,arguments)}function U(a){return j.apply(this,arguments)}function j(){return j=(0,c.Z)((0,u.Z)().mark(function a(d){return(0,u.Z)().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",(0,Z.WY)("/kitchen/api/printer/printer-template",{method:"post",data:d}));case 1:case"end":return r.stop()}},a)})),j.apply(this,arguments)}function z(a){return x.apply(this,arguments)}function x(){return x=(0,c.Z)((0,u.Z)().mark(function a(d){return(0,u.Z)().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",(0,Z.WY)("/kitchen/api/printer/printer-template",{method:"put",data:d}));case 1:case"end":return r.stop()}},a)})),x.apply(this,arguments)}function V(a){return T.apply(this,arguments)}function T(){return T=(0,c.Z)((0,u.Z)().mark(function a(d){return(0,u.Z)().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",(0,Z.WY)("/kitchen/api/printer/del-printer-templater",{method:"post",data:d}));case 1:case"end":return r.stop()}},a)})),T.apply(this,arguments)}var e=t(85893),H=B.Z.TabPane,J=function(){var d=(0,h.useRef)(),f=(0,h.useState)([]),r=(0,y.Z)(f,2),v=r[0],G=r[1],O=(0,h.useState)(),$=(0,y.Z)(O,2),b=$[0],g=$[1],Q=(0,h.useState)(!1),D=(0,y.Z)(Q,2),X=D[0],w=D[1];(0,h.useEffect)(function(){S()},[]),(0,h.useEffect)(function(){},[b]);var S=function(){L().then(function(n){var i;G(n.data),g((i=n.data[0])===null||i===void 0?void 0:i.id)})},k=function(n){return(0,e.jsxs)(l.ZP,{onFinish:function(){var i=(0,c.Z)((0,u.Z)().mark(function m(K){var R;return(0,u.Z)().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:if(X){s.next=6;break}return s.next=3,z(K);case 3:s.t0=s.sent,s.next=9;break;case 6:return s.next=8,U(K);case 8:s.t0=s.sent;case 9:R=s.t0,R.data?(S(),I.default.success("\u6210\u529F")):I.default.success("\u5931\u8D25");case 11:case"end":return s.stop()}},m)}));return function(m){return i.apply(this,arguments)}}(),labelCol:{span:4},formRef:d,layout:"horizontal",initialValues:{id:n.id,title:n.title,subtitle:n.subtitle,explain:n.explain,isShowPrintTime:n.isShowPrintTime,isShowNumber:n.isShowNumber,Footer:n.Footer,type:n.type},autoFocusFirstInput:!0,children:[(0,e.jsx)(l.ZP.Item,{name:"id",hidden:!0,children:(0,e.jsx)(p.ZP,{mode:"edit"})}),(0,e.jsx)(l.ZP.Item,{name:"type",label:"\u5C0F\u7968\u7C7B\u578B",rules:[{required:!0}],children:(0,e.jsxs)(F.ZP.Group,{children:[(0,e.jsx)(F.ZP,{value:1,children:"\u6536\u94F6(\u51FA\u9910)\u5C0F\u7968"}),(0,e.jsx)(F.ZP,{value:2,children:"\u8D34\u7EB8\u5C0F\u7968"})]})}),(0,e.jsx)(l.ZP.Item,{name:"title",label:"\u6807\u9898",placeholder:"\u6807\u9898",children:(0,e.jsx)(p.ZP,{mode:"edit"})}),(0,e.jsx)(l.ZP.Item,{style:{marginTop:"-10px"},name:"subtitle",label:"\u526F\u6807\u9898",placeholder:"\u526F\u6807\u9898",children:(0,e.jsx)(p.ZP,{mode:"edit"})}),(0,e.jsx)(l.ZP.Item,{style:{marginTop:"-10px"},name:"explain",label:"\u8BF4\u660E\uFF08\u6B22\u8FCE\u8BED\uFF09",placeholder:"\u8BF4\u660E\uFF08\u6B22\u8FCE\u8BED\uFF09",children:(0,e.jsx)(p.ZP,{mode:"edit"})}),(0,e.jsx)(l.ZP.Item,{style:{marginTop:"-10px"},name:"isShowPrintTime",label:"\u662F\u5426\u663E\u793A\u65F6\u95F4",placeholder:"",children:(0,e.jsx)(p.ZP,{mode:"edit",valueType:"switch"})}),(0,e.jsx)(l.ZP.Item,{style:{marginTop:"-10px"},name:"isShowNumber",label:"\u662F\u5426\u663E\u793A\u8BA2\u5355\u53F7",placeholder:"",children:(0,e.jsx)(p.ZP,{mode:"edit",valueType:"switch"})}),(0,e.jsx)(l.ZP.Item,{style:{marginTop:"-10px"},name:"Footer",label:"\u9875\u811A",placeholder:"\u9875\u811A",children:(0,e.jsx)(p.ZP,{mode:"edit"})})]})},q=function(n){g(n)},_=function(n,i){i=="remove"?(w(!1),V([n]).then(function(m){S()})):(w(!0),ee(n))},ee=function(n){var i="\u6A21\u677F"+v.length,m=(0,Y.Z)(v);m.push({title:"\u6A21\u677F"+m.length,content:(0,e.jsx)("div",{children:" "}),id:i}),g(i),G(m)};return(0,e.jsx)(N.ZP,{children:(0,e.jsx)(B.Z,{type:"editable-card",onChange:q,activeKey:b,onEdit:_,children:v==null?void 0:v.map(function(o){return(0,e.jsx)(H,{tab:o.title,children:(0,e.jsxs)(W.Z,{children:[(0,e.jsx)(A.Z,{span:12,push:12,children:(0,e.jsx)(C.Z,{children:k(o)})}),(0,e.jsx)(A.Z,{span:12,pull:12,children:(0,e.jsx)(C.Z,{children:"\u6A21\u677F\u6837\u5F0F"})})]})},o.id)})})})},M=J}}]); diff --git a/dist/p__store__printer__printerTemplate.e625f119.async.js b/dist/p__store__printer__printerTemplate.e625f119.async.js new file mode 100644 index 0000000..e96e18c --- /dev/null +++ b/dist/p__store__printer__printerTemplate.e625f119.async.js @@ -0,0 +1 @@ +(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[9999,1322,1279,7800,6398,6794,944,8208],{1958:function(te,E,t){"use strict";t.r(E),t.d(E,{default:function(){return M}});var re=t(13062),W=t(71230),ne=t(89032),A=t(15746),ae=t(58024),C=t(91894),Y=t(86582),se=t(88983),F=t(47933),u=t(39428),ue=t(34792),I=t(48086),c=t(3182),y=t(2824),ie=t(18106),B=t(36166),N=t(78009),h=t(67294),l=t(952),p=t(1705),Z=t(48971);function L(a){return P.apply(this,arguments)}function P(){return P=(0,c.Z)((0,u.Z)().mark(function a(d){return(0,u.Z)().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",(0,Z.WY)("/kitchen/api/printer/printer-templater",{method:"get",data:d}));case 1:case"end":return r.stop()}},a)})),P.apply(this,arguments)}function U(a){return j.apply(this,arguments)}function j(){return j=(0,c.Z)((0,u.Z)().mark(function a(d){return(0,u.Z)().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",(0,Z.WY)("/kitchen/api/printer/printer-template",{method:"post",data:d}));case 1:case"end":return r.stop()}},a)})),j.apply(this,arguments)}function z(a){return x.apply(this,arguments)}function x(){return x=(0,c.Z)((0,u.Z)().mark(function a(d){return(0,u.Z)().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",(0,Z.WY)("/kitchen/api/printer/printer-template",{method:"put",data:d}));case 1:case"end":return r.stop()}},a)})),x.apply(this,arguments)}function V(a){return T.apply(this,arguments)}function T(){return T=(0,c.Z)((0,u.Z)().mark(function a(d){return(0,u.Z)().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",(0,Z.WY)("/kitchen/api/printer/del-printer-templater",{method:"post",data:d}));case 1:case"end":return r.stop()}},a)})),T.apply(this,arguments)}var e=t(85893),H=B.Z.TabPane,J=function(){var d=(0,h.useRef)(),f=(0,h.useState)([]),r=(0,y.Z)(f,2),v=r[0],G=r[1],O=(0,h.useState)(),$=(0,y.Z)(O,2),b=$[0],g=$[1],Q=(0,h.useState)(!1),D=(0,y.Z)(Q,2),X=D[0],w=D[1];(0,h.useEffect)(function(){S()},[]),(0,h.useEffect)(function(){},[b]);var S=function(){L().then(function(n){var i;G(n.data),g((i=n.data[0])===null||i===void 0?void 0:i.id)})},k=function(n){return(0,e.jsxs)(l.ZP,{onFinish:function(){var i=(0,c.Z)((0,u.Z)().mark(function m(K){var R;return(0,u.Z)().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:if(X){s.next=6;break}return s.next=3,z(K);case 3:s.t0=s.sent,s.next=9;break;case 6:return s.next=8,U(K);case 8:s.t0=s.sent;case 9:R=s.t0,R.data?(S(),I.default.success("\u6210\u529F")):I.default.success("\u5931\u8D25");case 11:case"end":return s.stop()}},m)}));return function(m){return i.apply(this,arguments)}}(),labelCol:{span:4},formRef:d,layout:"horizontal",initialValues:{id:n.id,title:n.title,subtitle:n.subtitle,explain:n.explain,isShowPrintTime:n.isShowPrintTime,isShowNumber:n.isShowNumber,Footer:n.Footer,type:n.type},autoFocusFirstInput:!0,children:[(0,e.jsx)(l.ZP.Item,{name:"id",hidden:!0,children:(0,e.jsx)(p.ZP,{mode:"edit"})}),(0,e.jsx)(l.ZP.Item,{name:"type",label:"\u5C0F\u7968\u7C7B\u578B",rules:[{required:!0}],children:(0,e.jsxs)(F.ZP.Group,{children:[(0,e.jsx)(F.ZP,{value:1,children:"\u6536\u94F6(\u51FA\u9910)\u5C0F\u7968"}),(0,e.jsx)(F.ZP,{value:2,children:"\u8D34\u7EB8\u5C0F\u7968"})]})}),(0,e.jsx)(l.ZP.Item,{name:"title",label:"\u6807\u9898",placeholder:"\u6807\u9898",children:(0,e.jsx)(p.ZP,{mode:"edit"})}),(0,e.jsx)(l.ZP.Item,{style:{marginTop:"-10px"},name:"subtitle",label:"\u526F\u6807\u9898",placeholder:"\u526F\u6807\u9898",children:(0,e.jsx)(p.ZP,{mode:"edit"})}),(0,e.jsx)(l.ZP.Item,{style:{marginTop:"-10px"},name:"explain",label:"\u8BF4\u660E\uFF08\u6B22\u8FCE\u8BED\uFF09",placeholder:"\u8BF4\u660E\uFF08\u6B22\u8FCE\u8BED\uFF09",children:(0,e.jsx)(p.ZP,{mode:"edit"})}),(0,e.jsx)(l.ZP.Item,{style:{marginTop:"-10px"},name:"isShowPrintTime",label:"\u662F\u5426\u663E\u793A\u65F6\u95F4",placeholder:"",children:(0,e.jsx)(p.ZP,{mode:"edit",valueType:"switch"})}),(0,e.jsx)(l.ZP.Item,{style:{marginTop:"-10px"},name:"isShowNumber",label:"\u662F\u5426\u663E\u793A\u8BA2\u5355\u53F7",placeholder:"",children:(0,e.jsx)(p.ZP,{mode:"edit",valueType:"switch"})}),(0,e.jsx)(l.ZP.Item,{style:{marginTop:"-10px"},name:"Footer",label:"\u9875\u811A",placeholder:"\u9875\u811A",children:(0,e.jsx)(p.ZP,{mode:"edit"})})]})},q=function(n){g(n)},_=function(n,i){i=="remove"?(w(!1),V([n]).then(function(m){S()})):(w(!0),ee(n))},ee=function(n){var i="\u6A21\u677F"+v.length,m=(0,Y.Z)(v);m.push({title:"\u6A21\u677F"+m.length,content:(0,e.jsx)("div",{children:" "}),id:i}),g(i),G(m)};return(0,e.jsx)(N.ZP,{children:(0,e.jsx)(B.Z,{type:"editable-card",onChange:q,activeKey:b,onEdit:_,children:v==null?void 0:v.map(function(o){return(0,e.jsx)(H,{tab:o.title,children:(0,e.jsxs)(W.Z,{children:[(0,e.jsx)(A.Z,{span:12,push:12,children:(0,e.jsx)(C.Z,{children:k(o)})}),(0,e.jsx)(A.Z,{span:12,pull:12,children:(0,e.jsx)(C.Z,{children:"\u6A21\u677F\u6837\u5F0F"})})]})},o.id)})})})},M=J}}]); diff --git a/dist/p__store__storeGoodsInfo.240cfce6.async.js b/dist/p__store__storeGoodsInfo.124a2f9a.async.js similarity index 99% rename from dist/p__store__storeGoodsInfo.240cfce6.async.js rename to dist/p__store__storeGoodsInfo.124a2f9a.async.js index ddcf612..96ea596 100644 --- a/dist/p__store__storeGoodsInfo.240cfce6.async.js +++ b/dist/p__store__storeGoodsInfo.124a2f9a.async.js @@ -1 +1 @@ -(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[8099,1322],{52953:function(){},98712:function(ye,K,u){"use strict";u.r(K),u.d(K,{default:function(){return Ue}});var fe=u(57663),pe=u(71577),B=u(11849),n=u(39428),Ke=u(34792),x=u(48086),y=u(3182),M=u(2824),Ye=u(18106),Ce=u(95562),Ze=u(49101),w=u(67294),Ie=u(78009),P=u(48971);function we(r){return Y.apply(this,arguments)}function Y(){return Y=(0,y.Z)((0,n.Z)().mark(function r(t){return(0,n.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,P.WY)("/kitchen/api/Store/GetStoreList",{method:"POST",data:t}));case 1:case"end":return e.stop()}},r)})),Y.apply(this,arguments)}function ze(r){return z.apply(this,arguments)}function z(){return z=_asyncToGenerator(_regeneratorRuntime().mark(function r(t){return _regeneratorRuntime().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",request("/kitchen/api/select/GetCokingWorkList"));case 1:case"end":return e.stop()}},r)})),z.apply(this,arguments)}function ke(r){return _.apply(this,arguments)}function _(){return _=(0,y.Z)((0,n.Z)().mark(function r(t){return(0,n.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,P.WY)("\u200B\u200B/kitchen/api/Store/GetStoreGoods",{method:"POST",data:t}));case 1:case"end":return e.stop()}},r)})),_.apply(this,arguments)}function Fe(r){return J.apply(this,arguments)}function J(){return J=(0,y.Z)((0,n.Z)().mark(function r(t){return(0,n.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,P.WY)("/kitchen/api/Store/UpdateStoreGood",{method:"put",data:t}));case 1:case"end":return e.stop()}},r)})),J.apply(this,arguments)}function De(r){return V.apply(this,arguments)}function V(){return V=(0,y.Z)((0,n.Z)().mark(function r(t){return(0,n.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,P.WY)("/kitchen/api/goods/stopgoods",{method:"POST",data:t}));case 1:case"end":return e.stop()}},r)})),V.apply(this,arguments)}function je(r){return X.apply(this,arguments)}function X(){return X=(0,y.Z)((0,n.Z)().mark(function r(t){return(0,n.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,P.WY)("/kitchen/api/Store/UpdateStoreGood",{method:"put",data:t}));case 1:case"end":return e.stop()}},r)})),X.apply(this,arguments)}function _e(r){return H.apply(this,arguments)}function H(){return H=_asyncToGenerator(_regeneratorRuntime().mark(function r(t){return _regeneratorRuntime().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",request("/kitchen/api/store-info/store-good",{method:"POST",data:t}));case 1:case"end":return e.stop()}},r)})),H.apply(this,arguments)}function Je(r){return Q.apply(this,arguments)}function Q(){return Q=_asyncToGenerator(_regeneratorRuntime().mark(function r(t){return _regeneratorRuntime().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",request("/kitchen/api/store-info/del-store-good",{method:"POST",data:t}));case 1:case"end":return e.stop()}},r)})),Q.apply(this,arguments)}function Ve(){return q.apply(this,arguments)}function q(){return q=_asyncToGenerator(_regeneratorRuntime().mark(function r(){var t;return _regeneratorRuntime().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t={current:1,pageSize:1e3,goods_Enable:0},e.abrupt("return",request("/kitchen/api/goods/goodss",{method:"Post",data:t}));case 2:case"end":return e.stop()}},r)})),q.apply(this,arguments)}function Xe(r){return request("/kitchen//api/Store/StoreGoodsAllUpdate",{method:"post",data:r})}function He(r){return request("/kitchen/api/log/request-log-page",{method:"post",data:r})}function he(r){return ee.apply(this,arguments)}function ee(){return ee=(0,y.Z)((0,n.Z)().mark(function r(t){return(0,n.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,P.WY)("/kitchen/api/FoodMenu/GetShopFoodMenuPage",{method:"POST",data:t}));case 1:case"end":return e.stop()}},r)})),ee.apply(this,arguments)}function Qe(r){return te.apply(this,arguments)}function te(){return te=_asyncToGenerator(_regeneratorRuntime().mark(function r(t){return _regeneratorRuntime().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",request("/kitchen/api/FoodMenu/GetFoodMenuGoodsPage_V2",{method:"POST",data:_objectSpread({},t)}));case 1:case"end":return e.stop()}},r)})),te.apply(this,arguments)}function Ge(r){return re.apply(this,arguments)}function re(){return re=(0,y.Z)((0,n.Z)().mark(function r(t){return(0,n.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,P.WY)("/kitchen/api/Device/GetDeviceInfoPage",{method:"POST",data:t}));case 1:case"end":return e.stop()}},r)})),re.apply(this,arguments)}function ve(r){return ne.apply(this,arguments)}function ne(){return ne=(0,y.Z)((0,n.Z)().mark(function r(t){return(0,n.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,P.WY)("/kitchen/api/goodes/AddGoodDevice",{method:"POST",data:t}));case 1:case"end":return e.stop()}},r)})),ne.apply(this,arguments)}function xe(r,t){return ae.apply(this,arguments)}function ae(){return ae=(0,y.Z)((0,n.Z)().mark(function r(t,l){return(0,n.Z)().wrap(function(k){for(;;)switch(k.prev=k.next){case 0:return k.abrupt("return",(0,P.WY)("/kitchen/api/goodes/GetGoodDevice?foodId=".concat(t,"&storeId=").concat(l),{method:"GET"}));case 1:case"end":return k.stop()}},r)})),ae.apply(this,arguments)}function Oe(r){return se.apply(this,arguments)}function se(){return se=(0,y.Z)((0,n.Z)().mark(function r(t){return(0,n.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,P.WY)("/kitchen/api/FoodMenu/GetFoodMenuInfoPage",{method:"POST",data:t}));case 1:case"end":return e.stop()}},r)})),se.apply(this,arguments)}function Ee(r){return ue.apply(this,arguments)}function ue(){return ue=(0,y.Z)((0,n.Z)().mark(function r(t){return(0,n.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,P.WY)("/kitchen/api/FoodMenu/StoreAddFoodMenuNew",{method:"POST",data:t}));case 1:case"end":return e.stop()}},r)})),ue.apply(this,arguments)}var oe=u(16894),qe=u(71194),et=u(77883),tt=u(9715),rt=u(47673),nt=u(43358),c=u(85893),at=function(t){var l=_Select.Option,e=_Select.OptGroup,k=useState([]),m=_slicedToArray(k,2),E=m[0],b=m[1],O=useState([]),h=_slicedToArray(O,2),I=h[0],g=h[1];return _jsx(_Modal,{title:t.values.id?"\u7F16\u8F91":"\u65B0\u5EFA",width:640,visible:t.createModalVisible,bodyStyle:{padding:"32px 40px 48px"},footer:null,onCancel:function(){t.onCancel()},destroyOnClose:!0,children:_jsxs(_Form,{layout:"vertical",preserve:!1,initialValues:t.values,onFinish:t.onFinish,children:[_jsx(_Form.Item,{name:"id",hidden:!0,children:_jsx(_Input,{})}),_jsx(_Form.Item,{label:"\u4EF7\u683C",name:"price",rules:[{required:!0}],children:_jsx(_InputNumber,{placeholder:"\u4EF7\u683C",min:0})}),_jsx(_Form.Item,{label:"\u4F1A\u5458\u4EF7\u683C",name:"vipPrice",rules:[{required:!0}],children:_jsx(_InputNumber,{placeholder:"\u4EF7\u683C",min:0})}),_jsx(_Form.Item,{label:"\u72B6\u6001",name:"status",rules:[{required:!0}],children:_jsxs(_Select,{placeholder:"\u72B6\u6001",children:[_jsx(l,{value:1,children:"\u4E0B\u67B6"}),_jsx(l,{value:0,children:"\u4E0A\u67B6"})]})}),_jsx(_Form.Item,{children:_jsx(_Button,{type:"primary",htmlType:"submit",children:"\u4FDD\u5B58"})})]})})},st=null,ut=u(57338),ot=u(98858),it=function(t){var l=useRef(),e=useState({}),k=_slicedToArray(e,2),m=k[0],E=k[1],b=useState(!1),O=_slicedToArray(b,2),h=O[0],I=O[1],g=function(){var s=_asyncToGenerator(_regeneratorRuntime().mark(function i(a){return _regeneratorRuntime().wrap(function(j){for(;;)switch(j.prev=j.next){case 0:E({ip:a.ip,refererUrl:a.refererUrl,requestUrl:a.requestURL,parameters:a.requestData,returnResult:a.resultData});case 1:case"end":return j.stop()}},i)}));return function(a){return s.apply(this,arguments)}}(),S=new Map;S.set(!0,{text:"\u5F02\u5E38",status:"Error"}),S.set(!1,{text:"\u6B63\u5E38",status:"Success"});var d=[{title:"\u4E3B\u952E",dataIndex:"id",tip:"\u89C4\u5219\u540D\u79F0\u662F\u552F\u4E00\u7684key",hideInSearch:!0,hideInTable:!0},{title:"\u64CD\u4F5C\u4EBA",dataIndex:"name",valueType:"textarea"},{title:"\u64CD\u4F5C\u8BF4\u660E",dataIndex:"methodName",valueType:"textarea",hideInSearch:!0},{title:"\u521B\u5EFA\u65F6\u95F4",dataIndex:"createAt",valueType:"date",hideInForm:!0},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(i,a){return[_jsx("a",{onClick:_asyncToGenerator(_regeneratorRuntime().mark(function C(){return _regeneratorRuntime().wrap(function(A){for(;;)switch(A.prev=A.next){case 0:return A.next=2,g(a);case 2:I(!0);case 3:case"end":return A.stop()}},C)})),children:"\u8BE6\u60C5"},a.id)]}}],o=useIntl();return _jsxs(PageContainer,{children:[_jsx(ProTable,{search:!1,headerTitle:"\u64CD\u4F5C\u65E5\u5FD7",actionRef:l,rowKey:"id",request:function(){var s=_asyncToGenerator(_regeneratorRuntime().mark(function i(a){var C,j;return _regeneratorRuntime().wrap(function($){for(;;)switch($.prev=$.next){case 0:return C=[],j=0,a.value=t.storeId,a.method=["AddStoreGoodAsync","DelStoreGoodAsync","UpdateStoreGoodsAsync"],$.next=6,GetRequestLogPageAsync(JSON.stringify(a)).then(function(L){C=L.data.data,j=L.data.total});case 6:return $.abrupt("return",{data:C,success:!0,total:j});case 7:case"end":return $.stop()}},i)}));return function(i){return s.apply(this,arguments)}}(),columns:d,pagination:{defaultPageSize:10}}),_jsxs(_Drawer,{title:"\u8BE6\u60C5",placement:"right",size:"large",onClose:function(){I(!1)},visible:h,children:[_jsxs(_Descriptions,{column:1,children:[_jsx(_Descriptions.Item,{label:"\u64CD\u4F5CIP",children:_jsx(Field,{text:m.ip})}),_jsx(_Descriptions.Item,{label:"\u53C2\u8003\u5730\u5740",children:_jsx(Field,{text:m.refererUrl})}),_jsx(_Descriptions.Item,{label:"\u8BF7\u6C42\u5730\u5740",children:_jsx(Field,{text:m.requestUrl})})]}),_jsxs(_Descriptions,{children:[_jsxs(_Descriptions.Item,{label:"\u8BF7\u6C42\u6570\u636E",children:[_jsx("a",{onClick:function(){var i=document.createElement("input");i.value=m.parameters,document.body.appendChild(i),i.select(),document.execCommand("Copy"),_message.success("\u590D\u5236\u6210\u529F"),i.remove()},children:_jsx(CopyOutlined,{})}),_jsx("div",{style:{width:"220px",overflow:"scroll",overflowX:"auto"},children:_jsx(Field,{text:m.parameters,valueType:"jsonCode"})})]}),_jsxs(_Descriptions.Item,{label:"\u8FD4\u56DE\u6570\u636E",children:[_jsx("a",{onClick:function(){var i=document.createElement("input");i.value=m.returnResult,document.body.appendChild(i),i.select(),document.execCommand("Copy"),_message.success("\u590D\u5236\u6210\u529F"),i.remove()},children:_jsx(CopyOutlined,{})}),_jsx("div",{style:{width:"400px",overflow:"scroll",overflowX:"auto"},children:_jsx(Field,{text:m.returnResult,valueType:"jsonCode"})})]})]})]},"1")]})},lt=null,N=u(50146),dt=u(59250),Te=u(13013),ct=u(49111),me=u(19650),ft=u(62350),ie=u(24565),ge=u(85986),Me=u(4107),W=u(55843),le=u(34041),de="message",be=function(t){var l=le.Z.Option,e=W.Z.useForm(),k=(0,M.Z)(e,1),m=k[0],E=function(){t.goods&&m.setFieldsValue(t.goods)},b=function(){var O=(0,y.Z)((0,n.Z)().mark(function h(){var I,g;return(0,n.Z)().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return d.next=2,m.validateFields();case 2:return I=d.sent,d.prev=3,x.default.loading("\u6B63\u5728\u4FEE\u6539",de),x.default.destroy(de),d.next=8,je((0,B.Z)((0,B.Z)({},t.goods),I));case 8:g=d.sent,x.default.destroy(de),g.statusCode===200?(x.default.success("\u4FEE\u6539\u6210\u529F"),t.onOk()):x.default.success("\u4FEE\u6539\u5931\u8D25"),d.next=16;break;case 13:d.prev=13,d.t0=d.catch(3),x.default.error("\u4FEE\u6539\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01");case 16:case"end":return d.stop()}},h,null,[[3,13]])}));return function(){return O.apply(this,arguments)}}();return(0,w.useEffect)(function(){E()},[]),(0,c.jsx)(N.Z,{title:"\u7F16\u8F91\u3010".concat(t.goods.goods_Name,"\u3011"),width:640,visible:t.open,onOk:b,onCancel:t.onCancel,destroyOnClose:!0,children:(0,c.jsxs)(W.Z,{layout:"vertical",form:m,children:[(0,c.jsx)(W.Z.Item,{name:"id",hidden:!0,children:(0,c.jsx)(Me.Z,{})}),(0,c.jsx)(W.Z.Item,{label:"\u4EF7\u683C",name:"price",rules:[{required:!0}],children:(0,c.jsx)(ge.Z,{placeholder:"\u4EF7\u683C",min:0})}),(0,c.jsx)(W.Z.Item,{label:"\u4F1A\u5458\u4EF7\u683C",name:"vipPrice",rules:[{required:!0}],children:(0,c.jsx)(ge.Z,{placeholder:"\u4EF7\u683C",min:0})}),(0,c.jsx)(W.Z.Item,{label:"\u72B6\u6001",name:"status",rules:[{required:!0}],children:(0,c.jsxs)(le.Z,{placeholder:"\u72B6\u6001",children:[(0,c.jsx)(l,{value:1,children:"\u4E0B\u67B6"}),(0,c.jsx)(l,{value:0,children:"\u4E0A\u67B6"})]})})]})})},Pe=be,pt="message",Re=function(t){var l=(0,w.useState)([]),e=(0,M.Z)(l,2),k=e[0],m=e[1],E=(0,w.useState)([]),b=(0,M.Z)(E,2),O=b[0],h=b[1],I=function(){var d=(0,y.Z)((0,n.Z)().mark(function o(){var s,i;return(0,n.Z)().wrap(function(C){for(;;)switch(C.prev=C.next){case 0:return s=[],O.forEach(function(j){s.push({deviceId:j})}),C.next=4,ve({foodMenuId:t.foodMenu.id,foods:t.goods.goodsId,isDevice:t.isDevice,deviceIds:s});case 4:i=C.sent,i.statusCode===200?(x.default.success("\u7ED1\u5B9A\u6210\u529F\uFF01"),t.onOk()):x.default.error(JSON.stringify(i.errors)||"\u5546\u54C1\u7ED1\u5B9A\u8BBE\u5907\u5931\u8D25");case 6:case"end":return C.stop()}},o)}));return function(){return d.apply(this,arguments)}}(),g=function(){var d=(0,y.Z)((0,n.Z)().mark(function o(){var s,i;return(0,n.Z)().wrap(function(C){for(;;)switch(C.prev=C.next){case 0:return C.next=2,Ge({current:1,pageSize:999,storeId:t.storeId});case 2:i=C.sent,i.statusCode===200&&(s=i.data)!==null&&s!==void 0&&s.data?(i.data.data.forEach(function(j){j.label=j.deviceName,j.value=j.id}),m(i.data.data)):x.default.error(JSON.stringify(i.errors)||"\u83B7\u53D6\u8BBE\u5907\u5217\u8868\u5931\u8D25");case 4:case"end":return C.stop()}},o)}));return function(){return d.apply(this,arguments)}}(),S=function(){var d=(0,y.Z)((0,n.Z)().mark(function o(){var s;return(0,n.Z)().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:if(!(t.goods&&t.storeId)){a.next=5;break}return a.next=3,xe(t.goods.goodsId,t.storeId);case 3:s=a.sent,s.statusCode===200&&h(s.data);case 5:case"end":return a.stop()}},o)}));return function(){return d.apply(this,arguments)}}();return(0,w.useEffect)(function(){g(),S()},[]),(0,c.jsx)(N.Z,{title:"\u3010".concat(t.goods.goods_Name,"\u3011\u7ED1\u5B9A\u8BBE\u5907"),width:640,bodyStyle:{height:"300px"},visible:t.open,onOk:I,onCancel:t.onCancel,destroyOnClose:!0,children:(0,c.jsx)(le.Z,{mode:"multiple",allowClear:!0,style:{width:"100%"},placeholder:"\u8BF7\u9009\u62E9\u8BBE\u5907\uFF01",onChange:h,options:k,value:O})})},Ae=Re,$e=function(t){var l=(0,w.useRef)(),e=(0,w.useState)(!1),k=(0,M.Z)(e,2),m=k[0],E=k[1],b=(0,w.useState)(),O=(0,M.Z)(b,2),h=O[0],I=O[1],g=(0,w.useState)(!1),S=(0,M.Z)(g,2),d=S[0],o=S[1],s=(0,w.useState)([]),i=(0,M.Z)(s,2),a=i[0],C=i[1],j=(0,w.useState)(0),A=(0,M.Z)(j,2),$=A[0],L=A[1],U=function(){var G=(0,y.Z)((0,n.Z)().mark(function F(f,D){var Z;return(0,n.Z)().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:if(!(f.key=="1"||f.key=="2")){p.next=5;break}L(f.key),o(!0),p.next=13;break;case 5:if(I(D),f.key!="0"){p.next=13;break}return console.log(h),p.next=10,ve({foodMenuId:h.foodMenuId,foods:h.goodsId,deviceIds:[],isDevice:f.key});case 10:Z=p.sent,console.log(Z),Z.statusCode===200?(x.default.success("\u4FEE\u6539\u6210\u529F\uFF01"),l.current.reload()):x.default.error(JSON.stringify(Z.errors)||"\u4FEE\u6539\u5931\u8D25");case 13:case"end":return p.stop()}},F)}));return function(f,D){return G.apply(this,arguments)}}(),ce=[{title:"\u4E3B\u952E",dataIndex:"id",hideInSearch:!0,hideInTable:!0,tip:"\u89C4\u5219\u540D\u79F0\u662F\u552F\u4E00\u7684 key"},{title:"\u5546\u54C1",dataIndex:"goods_Name",valueType:"textarea"},{title:"\u5546\u54C1\u4EF7\u683C",dataIndex:"price",valueType:"money",hideInSearch:!0},{title:"\u5546\u54C1\u4F1A\u5458\u4EF7\u683C",dataIndex:"vipPrice",valueType:"money",hideInSearch:!0},{title:"\u5236\u4F5C\u65B9\u5F0F",dataIndex:"isDevice",valueEnum:{0:{text:"\u5E97\u94FA",status:"Processing"},1:{text:"\u8BBE\u5907",status:"Success"},2:{text:"\u8BBE\u5907\u626B\u7801",status:"Warning"}}},{title:"\u72B6\u6001",dataIndex:"status",valueEnum:{0:{text:"\u4E0A\u67B6",status:"Processing"},1:{text:"\u4E0B\u67B6",status:"Success"}}},{title:"\u4F30\u6E05",dataIndex:"stopSales",valueEnum:{0:{text:"\u9500\u552E",status:"Processing"},1:{text:"\u4F30\u6E05",status:"Success"}}},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(F,f){return[(0,c.jsx)("a",{onClick:function(){I(f),E(!0)},children:"\u7F16\u8F91"},"update"),(0,c.jsx)(ie.Z,{title:"\u786E\u5B9A\u8981".concat(f.stopSales==0?"\u4F30\u6E05":"\u9500\u552E","\u5417\uFF1F"),onConfirm:(0,y.Z)((0,n.Z)().mark(function D(){var Z,v,p;return(0,n.Z)().wrap(function(T){for(;;)switch(T.prev=T.next){case 0:return Z=0,f.stopSales==0?Z=1:Z=0,v=[{goodsId:f.foodId,storeId:f.storeId,StopSales:Z}],T.next=5,De(v);case 5:p=T.sent,p.statusCode===200&&p.data?(x.default.success("\u64CD\u4F5C\u6210\u529F\uFF01"),l.current.reload()):x.default.error(JSON.stringify(p.errors)||"\u64CD\u4F5C\u5931\u8D25");case 7:case"end":return T.stop()}},D)})),okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",children:(0,c.jsx)("a",{onClick:(0,y.Z)((0,n.Z)().mark(function D(){return(0,n.Z)().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:case"end":return v.stop()}},D)})),children:f.stopSales==0?"\u4F30\u6E05":"\u9500\u552E"})},"stopSales"),(0,c.jsx)(ie.Z,{title:"\u786E\u5B9A\u8981".concat(f.status==0?"\u4E0B\u67B6":"\u4E0A\u67B6","\u5417\uFF1F"),onConfirm:(0,y.Z)((0,n.Z)().mark(function D(){var Z;return(0,n.Z)().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:return f.status=f.status==0?1:0,p.next=3,Fe(f);case 3:Z=p.sent,Z.data?(l.current.reload(),x.default.success("\u64CD\u4F5C\u6210\u529F\uFF01")):x.default.error(JSON.stringify(Z.errors)||"\u64CD\u4F5C\u5931\u8D25");case 5:case"end":return p.stop()}},D)})),okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",children:(0,c.jsx)("a",{children:f.status==0?"\u4E0B\u67B6":"\u4E0A\u67B6"})},"status"),(0,c.jsx)(Te.Z,{menu:{items:a,selectable:!0,onClick:U,defaultSelectedKeys:[]},trigger:["click"],children:(0,c.jsx)("a",{onClick:function(Z){U(Z,f)},children:(0,c.jsx)(me.Z,{children:"\u5236\u4F5C\u65B9\u5F0F"})})}),(0,c.jsx)("a",{onClick:function(){P.m8.push({pathname:"/store/storeAddGoodsInfo",query:{isAdd:!1,values:f,storeId:t.storeId}})},children:"\u52A0\u8D2D\u5546\u54C1"},"config")]}}];return(0,w.useEffect)(function(){C([{key:"1",label:"\u8BBE\u5907\u5236\u4F5C"},{key:"0",label:"\u5E97\u94FA\u5236\u4F5C"},{key:"2",label:"\u8BBE\u5907\u626B\u7801\u5236\u4F5C"}])},[]),(0,c.jsxs)(N.Z,{destroyOnClose:!0,footer:null,width:1200,title:t.foodMenu.name,visible:t.open,onCancel:t.onCancel,children:[(0,c.jsx)(oe.ZP,{columns:ce,actionRef:l,pagination:{pageSize:10},request:(0,y.Z)((0,n.Z)().mark(function G(){var F,f,D,Z,v,p=arguments;return(0,n.Z)().wrap(function(T){for(;;)switch(T.prev=T.next){case 0:if(f=p.length>0&&p[0]!==void 0?p[0]:{},D=p.length>1?p[1]:void 0,Z=p.length>2?p[2]:void 0,!(t.storeId&&(F=t.foodMenu)!==null&&F!==void 0&&F.id)){T.next=12;break}return T.next=6,ke((0,B.Z)((0,B.Z)({},f),{},{goodsName:f.goods_Name,storeId:t.storeId,foodMenuId:t.foodMenu.id}));case 6:if(v=T.sent,v.statusCode!==200){T.next=11;break}return T.abrupt("return",{data:v.data.data,success:!0,total:v.data.total});case 11:return T.abrupt("return",[]);case 12:return T.abrupt("return",[]);case 13:case"end":return T.stop()}},G)})),rowKey:"id",headerTitle:"\u5546\u54C1\u5217\u8868"}),m&&h&&(0,c.jsx)(Pe,{open:m,goods:h,onCancel:function(){return E(!1)},onOk:function(){l.current.reload(),E(!1)}}),d&&(0,c.jsx)(Ae,{open:d,goods:h,foodMenu:t.foodMenu,storeId:t.storeId,isDevice:$,onCancel:function(){return o(!1)},onOk:function(){l.current.reload(),o(!1)}})]})},Be=$e,Se=u(86582),Le=function(t){var l=(0,w.useRef)(),e=(0,w.useState)([]),k=(0,M.Z)(e,2),m=k[0],E=k[1],b=[{title:"\u83DC\u8C31\u540D\u79F0",dataIndex:"name"},{title:"\u83DC\u8C31\u7F16\u7801",dataIndex:"code",hideInSearch:!0},{title:"\u83DC\u8C31\u6392\u5E8F",dataIndex:"sort",hideInSearch:!0}],O=function(){var I=(0,y.Z)((0,n.Z)().mark(function g(){var S;return(0,n.Z)().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,Ee({foodMenuIds:m,storeId:t.storeId});case 2:S=o.sent,S.statusCode===200?(x.default.success("\u7ED1\u5B9A\u6210\u529F\uFF01"),t.onOk()):x.default.error(S.errors||"\u7ED1\u5B9A\u83DC\u8C31\u5931\u8D25");case 4:case"end":return o.stop()}},g)}));return function(){return I.apply(this,arguments)}}(),h=function(){var I=(0,y.Z)((0,n.Z)().mark(function g(){var S,d,o,s;return(0,n.Z)().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:if(t.storeId){a.next=2;break}return a.abrupt("return",[]);case 2:return a.next=4,he({current:1,pageSize:999,storeId:t.storeId});case 4:S=a.sent,S.statusCode===200&&(s=[],(d=S.data)===null||d===void 0||(o=d.data)===null||o===void 0||o.forEach(function(C){s.push(C.id)}),E(s));case 6:case"end":return a.stop()}},g)}));return function(){return I.apply(this,arguments)}}();return(0,w.useEffect)(function(){h()},[]),(0,c.jsx)(N.Z,{destroyOnClose:!0,width:1200,title:"\u7ED1\u5B9A\u83DC\u8C31",visible:t.open,onOk:O,onCancel:t.onCancel,children:(0,c.jsx)(oe.ZP,{columns:b,actionRef:l,pagination:{pageSize:10},request:(0,y.Z)((0,n.Z)().mark(function I(){var g,S,d,o,s=arguments;return(0,n.Z)().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:if(g=s.length>0&&s[0]!==void 0?s[0]:{},S=s.length>1?s[1]:void 0,d=s.length>2?s[2]:void 0,!t.storeId){a.next=12;break}return a.next=6,Oe((0,B.Z)({},g));case 6:if(o=a.sent,o.statusCode!==200){a.next=11;break}return a.abrupt("return",{data:o.data.data,success:!0,total:o.data.total});case 11:return a.abrupt("return",[]);case 12:return a.abrupt("return",[]);case 13:case"end":return a.stop()}},I)})),rowSelection:{type:"checkbox",selectedRowKeys:m,onSelect:function(g,S){var d=(0,Se.Z)(m),o=d.findIndex(function(s){return s===g.id});S?o<0&&d.push(g.id):o>-1&&d.splice(o,1),E(d)},onSelectAll:function(g,S,d){var o=(0,Se.Z)(m);g?S.forEach(function(s){if(!!s){var i=o.findIndex(function(a){return a===s.id});i<0&&o.push(s.id)}}):d.forEach(function(s){var i=o.findIndex(function(a){return a===s.id});i>-1&&o.splice(i,1)}),E(o)}},tableAlertOptionRender:function(){return(0,c.jsx)(me.Z,{size:16,children:(0,c.jsx)(ie.Z,{title:"\u6B64\u64CD\u4F5C\u4F1A\u53D6\u6D88\u6240\u6709\u9009\u4E2D\u9879\uFF0C\u786E\u5B9A\u8981\u53D6\u6D88\u5417\uFF1F",onConfirm:function(){return E([])},okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",children:(0,c.jsx)("a",{children:"\u53D6\u6D88\u9009\u62E9"})})})},rowKey:"id",headerTitle:"\u83DC\u8C31\u5217\u8868"})})},We=Le,ht=Ce.Z.TabPane,vt="message",Ne=function(t){var l=(0,w.useRef)(),e=(0,w.useState)([]),k=(0,M.Z)(e,2),m=k[0],E=k[1],b=(0,w.useState)(),O=(0,M.Z)(b,2),h=O[0],I=O[1],g=(0,w.useState)(!1),S=(0,M.Z)(g,2),d=S[0],o=S[1],s=(0,w.useState)(),i=(0,M.Z)(s,2),a=i[0],C=i[1],j=(0,w.useState)(!1),A=(0,M.Z)(j,2),$=A[0],L=A[1],U=function(){var G=(0,y.Z)((0,n.Z)().mark(function F(){var f,D;return(0,n.Z)().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:return v.next=2,we({current:1,pageSize:999});case 2:f=v.sent,f.statusCode===200?((D=f.data)===null||D===void 0||D.forEach(function(p){p.value=p.id,p.label=p.name}),f.data.length>0&&I(f.data[0].id),E(f.data)):x.default.error(JSON.stringify(f.errors)||"\u83B7\u53D6\u95E8\u5E97\u5217\u8868\u5931\u8D25\uFF01");case 4:case"end":return v.stop()}},F)}));return function(){return G.apply(this,arguments)}}(),ce=[{title:"\u5E97\u94FA",dataIndex:"storeId",valueType:"select",hideInTable:!0,fieldProps:{options:m,value:h,onChange:function(F){I(F)}}},{title:"\u83DC\u8C31\u540D\u79F0",dataIndex:"name",hideInSearch:!0},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(F,f){return[(0,c.jsx)("a",{onClick:function(){C(f),o(!0)},children:"\u83DC\u8C31\u5546\u54C1"},"food-menu-list")]}}];return(0,w.useEffect)(function(){U()},[]),(0,w.useEffect)(function(){h&&l.current&&l.current.reload()},[h]),(0,c.jsxs)(Ie.ZP,{children:[(0,c.jsx)(oe.ZP,{columns:ce,actionRef:l,pagination:{pageSize:10},request:(0,y.Z)((0,n.Z)().mark(function G(){var F,f,D,Z,v=arguments;return(0,n.Z)().wrap(function(R){for(;;)switch(R.prev=R.next){case 0:if(F=v.length>0&&v[0]!==void 0?v[0]:{},f=v.length>1?v[1]:void 0,D=v.length>2?v[2]:void 0,h){R.next=5;break}return R.abrupt("return",[]);case 5:return R.next=7,he((0,B.Z)((0,B.Z)({},F),{},{storeId:h}));case 7:if(Z=R.sent,Z.statusCode!==200){R.next=10;break}return R.abrupt("return",{data:Z.data.data,success:!0,total:Z.data.total});case 10:return R.abrupt("return",[]);case 11:case"end":return R.stop()}},G)})),rowKey:"id",headerTitle:"\u83DC\u8C31\u5217\u8868",toolBarRender:function(){return[(0,c.jsx)(pe.Z,{icon:(0,c.jsx)(Ze.Z,{}),onClick:function(){L(!0)},type:"primary",children:"\u5173\u8054\u52A0\u76DF\u5546\u83DC\u8C31"},"button")]}}),d&&h&&a&&(0,c.jsx)(Be,{foodMenu:a,open:d,storeId:h,onCancel:function(){return o(!1)},onOk:function(){return o(!1)}}),$&&h&&(0,c.jsx)(We,{open:$,storeId:h,onCancel:function(){return L(!1)},onOk:function(){var F;L(!1),(F=l.current)===null||F===void 0||F.reload()}})]})},Ue=Ne},98858:function(ye,K,u){"use strict";var fe=u(38663),pe=u.n(fe),B=u(52953),n=u.n(B)}}]); +(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[8099,1322],{52953:function(){},98712:function(ye,K,u){"use strict";u.r(K),u.d(K,{default:function(){return Ue}});var fe=u(57663),pe=u(71577),B=u(11849),n=u(39428),Ke=u(34792),x=u(48086),y=u(3182),M=u(2824),Ye=u(18106),Ce=u(36166),Ze=u(49101),w=u(67294),Ie=u(78009),P=u(48971);function we(r){return Y.apply(this,arguments)}function Y(){return Y=(0,y.Z)((0,n.Z)().mark(function r(t){return(0,n.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,P.WY)("/kitchen/api/Store/GetStoreList",{method:"POST",data:t}));case 1:case"end":return e.stop()}},r)})),Y.apply(this,arguments)}function ze(r){return z.apply(this,arguments)}function z(){return z=_asyncToGenerator(_regeneratorRuntime().mark(function r(t){return _regeneratorRuntime().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",request("/kitchen/api/select/GetCokingWorkList"));case 1:case"end":return e.stop()}},r)})),z.apply(this,arguments)}function ke(r){return _.apply(this,arguments)}function _(){return _=(0,y.Z)((0,n.Z)().mark(function r(t){return(0,n.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,P.WY)("\u200B\u200B/kitchen/api/Store/GetStoreGoods",{method:"POST",data:t}));case 1:case"end":return e.stop()}},r)})),_.apply(this,arguments)}function Fe(r){return J.apply(this,arguments)}function J(){return J=(0,y.Z)((0,n.Z)().mark(function r(t){return(0,n.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,P.WY)("/kitchen/api/Store/UpdateStoreGood",{method:"put",data:t}));case 1:case"end":return e.stop()}},r)})),J.apply(this,arguments)}function De(r){return V.apply(this,arguments)}function V(){return V=(0,y.Z)((0,n.Z)().mark(function r(t){return(0,n.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,P.WY)("/kitchen/api/goods/stopgoods",{method:"POST",data:t}));case 1:case"end":return e.stop()}},r)})),V.apply(this,arguments)}function je(r){return X.apply(this,arguments)}function X(){return X=(0,y.Z)((0,n.Z)().mark(function r(t){return(0,n.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,P.WY)("/kitchen/api/Store/UpdateStoreGood",{method:"put",data:t}));case 1:case"end":return e.stop()}},r)})),X.apply(this,arguments)}function _e(r){return H.apply(this,arguments)}function H(){return H=_asyncToGenerator(_regeneratorRuntime().mark(function r(t){return _regeneratorRuntime().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",request("/kitchen/api/store-info/store-good",{method:"POST",data:t}));case 1:case"end":return e.stop()}},r)})),H.apply(this,arguments)}function Je(r){return Q.apply(this,arguments)}function Q(){return Q=_asyncToGenerator(_regeneratorRuntime().mark(function r(t){return _regeneratorRuntime().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",request("/kitchen/api/store-info/del-store-good",{method:"POST",data:t}));case 1:case"end":return e.stop()}},r)})),Q.apply(this,arguments)}function Ve(){return q.apply(this,arguments)}function q(){return q=_asyncToGenerator(_regeneratorRuntime().mark(function r(){var t;return _regeneratorRuntime().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t={current:1,pageSize:1e3,goods_Enable:0},e.abrupt("return",request("/kitchen/api/goods/goodss",{method:"Post",data:t}));case 2:case"end":return e.stop()}},r)})),q.apply(this,arguments)}function Xe(r){return request("/kitchen//api/Store/StoreGoodsAllUpdate",{method:"post",data:r})}function He(r){return request("/kitchen/api/log/request-log-page",{method:"post",data:r})}function he(r){return ee.apply(this,arguments)}function ee(){return ee=(0,y.Z)((0,n.Z)().mark(function r(t){return(0,n.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,P.WY)("/kitchen/api/FoodMenu/GetShopFoodMenuPage",{method:"POST",data:t}));case 1:case"end":return e.stop()}},r)})),ee.apply(this,arguments)}function Qe(r){return te.apply(this,arguments)}function te(){return te=_asyncToGenerator(_regeneratorRuntime().mark(function r(t){return _regeneratorRuntime().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",request("/kitchen/api/FoodMenu/GetFoodMenuGoodsPage_V2",{method:"POST",data:_objectSpread({},t)}));case 1:case"end":return e.stop()}},r)})),te.apply(this,arguments)}function Ge(r){return re.apply(this,arguments)}function re(){return re=(0,y.Z)((0,n.Z)().mark(function r(t){return(0,n.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,P.WY)("/kitchen/api/Device/GetDeviceInfoPage",{method:"POST",data:t}));case 1:case"end":return e.stop()}},r)})),re.apply(this,arguments)}function ve(r){return ne.apply(this,arguments)}function ne(){return ne=(0,y.Z)((0,n.Z)().mark(function r(t){return(0,n.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,P.WY)("/kitchen/api/goodes/AddGoodDevice",{method:"POST",data:t}));case 1:case"end":return e.stop()}},r)})),ne.apply(this,arguments)}function xe(r,t){return ae.apply(this,arguments)}function ae(){return ae=(0,y.Z)((0,n.Z)().mark(function r(t,l){return(0,n.Z)().wrap(function(k){for(;;)switch(k.prev=k.next){case 0:return k.abrupt("return",(0,P.WY)("/kitchen/api/goodes/GetGoodDevice?foodId=".concat(t,"&storeId=").concat(l),{method:"GET"}));case 1:case"end":return k.stop()}},r)})),ae.apply(this,arguments)}function Oe(r){return se.apply(this,arguments)}function se(){return se=(0,y.Z)((0,n.Z)().mark(function r(t){return(0,n.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,P.WY)("/kitchen/api/FoodMenu/GetFoodMenuInfoPage",{method:"POST",data:t}));case 1:case"end":return e.stop()}},r)})),se.apply(this,arguments)}function Ee(r){return ue.apply(this,arguments)}function ue(){return ue=(0,y.Z)((0,n.Z)().mark(function r(t){return(0,n.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,P.WY)("/kitchen/api/FoodMenu/StoreAddFoodMenuNew",{method:"POST",data:t}));case 1:case"end":return e.stop()}},r)})),ue.apply(this,arguments)}var oe=u(16894),qe=u(71194),et=u(77883),tt=u(9715),rt=u(47673),nt=u(43358),c=u(85893),at=function(t){var l=_Select.Option,e=_Select.OptGroup,k=useState([]),m=_slicedToArray(k,2),E=m[0],b=m[1],O=useState([]),h=_slicedToArray(O,2),I=h[0],g=h[1];return _jsx(_Modal,{title:t.values.id?"\u7F16\u8F91":"\u65B0\u5EFA",width:640,visible:t.createModalVisible,bodyStyle:{padding:"32px 40px 48px"},footer:null,onCancel:function(){t.onCancel()},destroyOnClose:!0,children:_jsxs(_Form,{layout:"vertical",preserve:!1,initialValues:t.values,onFinish:t.onFinish,children:[_jsx(_Form.Item,{name:"id",hidden:!0,children:_jsx(_Input,{})}),_jsx(_Form.Item,{label:"\u4EF7\u683C",name:"price",rules:[{required:!0}],children:_jsx(_InputNumber,{placeholder:"\u4EF7\u683C",min:0})}),_jsx(_Form.Item,{label:"\u4F1A\u5458\u4EF7\u683C",name:"vipPrice",rules:[{required:!0}],children:_jsx(_InputNumber,{placeholder:"\u4EF7\u683C",min:0})}),_jsx(_Form.Item,{label:"\u72B6\u6001",name:"status",rules:[{required:!0}],children:_jsxs(_Select,{placeholder:"\u72B6\u6001",children:[_jsx(l,{value:1,children:"\u4E0B\u67B6"}),_jsx(l,{value:0,children:"\u4E0A\u67B6"})]})}),_jsx(_Form.Item,{children:_jsx(_Button,{type:"primary",htmlType:"submit",children:"\u4FDD\u5B58"})})]})})},st=null,ut=u(57338),ot=u(98858),it=function(t){var l=useRef(),e=useState({}),k=_slicedToArray(e,2),m=k[0],E=k[1],b=useState(!1),O=_slicedToArray(b,2),h=O[0],I=O[1],g=function(){var s=_asyncToGenerator(_regeneratorRuntime().mark(function i(a){return _regeneratorRuntime().wrap(function(j){for(;;)switch(j.prev=j.next){case 0:E({ip:a.ip,refererUrl:a.refererUrl,requestUrl:a.requestURL,parameters:a.requestData,returnResult:a.resultData});case 1:case"end":return j.stop()}},i)}));return function(a){return s.apply(this,arguments)}}(),S=new Map;S.set(!0,{text:"\u5F02\u5E38",status:"Error"}),S.set(!1,{text:"\u6B63\u5E38",status:"Success"});var d=[{title:"\u4E3B\u952E",dataIndex:"id",tip:"\u89C4\u5219\u540D\u79F0\u662F\u552F\u4E00\u7684key",hideInSearch:!0,hideInTable:!0},{title:"\u64CD\u4F5C\u4EBA",dataIndex:"name",valueType:"textarea"},{title:"\u64CD\u4F5C\u8BF4\u660E",dataIndex:"methodName",valueType:"textarea",hideInSearch:!0},{title:"\u521B\u5EFA\u65F6\u95F4",dataIndex:"createAt",valueType:"date",hideInForm:!0},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(i,a){return[_jsx("a",{onClick:_asyncToGenerator(_regeneratorRuntime().mark(function C(){return _regeneratorRuntime().wrap(function(A){for(;;)switch(A.prev=A.next){case 0:return A.next=2,g(a);case 2:I(!0);case 3:case"end":return A.stop()}},C)})),children:"\u8BE6\u60C5"},a.id)]}}],o=useIntl();return _jsxs(PageContainer,{children:[_jsx(ProTable,{search:!1,headerTitle:"\u64CD\u4F5C\u65E5\u5FD7",actionRef:l,rowKey:"id",request:function(){var s=_asyncToGenerator(_regeneratorRuntime().mark(function i(a){var C,j;return _regeneratorRuntime().wrap(function($){for(;;)switch($.prev=$.next){case 0:return C=[],j=0,a.value=t.storeId,a.method=["AddStoreGoodAsync","DelStoreGoodAsync","UpdateStoreGoodsAsync"],$.next=6,GetRequestLogPageAsync(JSON.stringify(a)).then(function(L){C=L.data.data,j=L.data.total});case 6:return $.abrupt("return",{data:C,success:!0,total:j});case 7:case"end":return $.stop()}},i)}));return function(i){return s.apply(this,arguments)}}(),columns:d,pagination:{defaultPageSize:10}}),_jsxs(_Drawer,{title:"\u8BE6\u60C5",placement:"right",size:"large",onClose:function(){I(!1)},visible:h,children:[_jsxs(_Descriptions,{column:1,children:[_jsx(_Descriptions.Item,{label:"\u64CD\u4F5CIP",children:_jsx(Field,{text:m.ip})}),_jsx(_Descriptions.Item,{label:"\u53C2\u8003\u5730\u5740",children:_jsx(Field,{text:m.refererUrl})}),_jsx(_Descriptions.Item,{label:"\u8BF7\u6C42\u5730\u5740",children:_jsx(Field,{text:m.requestUrl})})]}),_jsxs(_Descriptions,{children:[_jsxs(_Descriptions.Item,{label:"\u8BF7\u6C42\u6570\u636E",children:[_jsx("a",{onClick:function(){var i=document.createElement("input");i.value=m.parameters,document.body.appendChild(i),i.select(),document.execCommand("Copy"),_message.success("\u590D\u5236\u6210\u529F"),i.remove()},children:_jsx(CopyOutlined,{})}),_jsx("div",{style:{width:"220px",overflow:"scroll",overflowX:"auto"},children:_jsx(Field,{text:m.parameters,valueType:"jsonCode"})})]}),_jsxs(_Descriptions.Item,{label:"\u8FD4\u56DE\u6570\u636E",children:[_jsx("a",{onClick:function(){var i=document.createElement("input");i.value=m.returnResult,document.body.appendChild(i),i.select(),document.execCommand("Copy"),_message.success("\u590D\u5236\u6210\u529F"),i.remove()},children:_jsx(CopyOutlined,{})}),_jsx("div",{style:{width:"400px",overflow:"scroll",overflowX:"auto"},children:_jsx(Field,{text:m.returnResult,valueType:"jsonCode"})})]})]})]},"1")]})},lt=null,N=u(50146),dt=u(59250),Te=u(13013),ct=u(49111),me=u(19650),ft=u(62350),ie=u(24565),ge=u(85986),Me=u(4107),W=u(55843),le=u(34041),de="message",be=function(t){var l=le.Z.Option,e=W.Z.useForm(),k=(0,M.Z)(e,1),m=k[0],E=function(){t.goods&&m.setFieldsValue(t.goods)},b=function(){var O=(0,y.Z)((0,n.Z)().mark(function h(){var I,g;return(0,n.Z)().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return d.next=2,m.validateFields();case 2:return I=d.sent,d.prev=3,x.default.loading("\u6B63\u5728\u4FEE\u6539",de),x.default.destroy(de),d.next=8,je((0,B.Z)((0,B.Z)({},t.goods),I));case 8:g=d.sent,x.default.destroy(de),g.statusCode===200?(x.default.success("\u4FEE\u6539\u6210\u529F"),t.onOk()):x.default.success("\u4FEE\u6539\u5931\u8D25"),d.next=16;break;case 13:d.prev=13,d.t0=d.catch(3),x.default.error("\u4FEE\u6539\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01");case 16:case"end":return d.stop()}},h,null,[[3,13]])}));return function(){return O.apply(this,arguments)}}();return(0,w.useEffect)(function(){E()},[]),(0,c.jsx)(N.Z,{title:"\u7F16\u8F91\u3010".concat(t.goods.goods_Name,"\u3011"),width:640,visible:t.open,onOk:b,onCancel:t.onCancel,destroyOnClose:!0,children:(0,c.jsxs)(W.Z,{layout:"vertical",form:m,children:[(0,c.jsx)(W.Z.Item,{name:"id",hidden:!0,children:(0,c.jsx)(Me.Z,{})}),(0,c.jsx)(W.Z.Item,{label:"\u4EF7\u683C",name:"price",rules:[{required:!0}],children:(0,c.jsx)(ge.Z,{placeholder:"\u4EF7\u683C",min:0})}),(0,c.jsx)(W.Z.Item,{label:"\u4F1A\u5458\u4EF7\u683C",name:"vipPrice",rules:[{required:!0}],children:(0,c.jsx)(ge.Z,{placeholder:"\u4EF7\u683C",min:0})}),(0,c.jsx)(W.Z.Item,{label:"\u72B6\u6001",name:"status",rules:[{required:!0}],children:(0,c.jsxs)(le.Z,{placeholder:"\u72B6\u6001",children:[(0,c.jsx)(l,{value:1,children:"\u4E0B\u67B6"}),(0,c.jsx)(l,{value:0,children:"\u4E0A\u67B6"})]})})]})})},Pe=be,pt="message",Re=function(t){var l=(0,w.useState)([]),e=(0,M.Z)(l,2),k=e[0],m=e[1],E=(0,w.useState)([]),b=(0,M.Z)(E,2),O=b[0],h=b[1],I=function(){var d=(0,y.Z)((0,n.Z)().mark(function o(){var s,i;return(0,n.Z)().wrap(function(C){for(;;)switch(C.prev=C.next){case 0:return s=[],O.forEach(function(j){s.push({deviceId:j})}),C.next=4,ve({foodMenuId:t.foodMenu.id,foods:t.goods.goodsId,isDevice:t.isDevice,deviceIds:s});case 4:i=C.sent,i.statusCode===200?(x.default.success("\u7ED1\u5B9A\u6210\u529F\uFF01"),t.onOk()):x.default.error(JSON.stringify(i.errors)||"\u5546\u54C1\u7ED1\u5B9A\u8BBE\u5907\u5931\u8D25");case 6:case"end":return C.stop()}},o)}));return function(){return d.apply(this,arguments)}}(),g=function(){var d=(0,y.Z)((0,n.Z)().mark(function o(){var s,i;return(0,n.Z)().wrap(function(C){for(;;)switch(C.prev=C.next){case 0:return C.next=2,Ge({current:1,pageSize:999,storeId:t.storeId});case 2:i=C.sent,i.statusCode===200&&(s=i.data)!==null&&s!==void 0&&s.data?(i.data.data.forEach(function(j){j.label=j.deviceName,j.value=j.id}),m(i.data.data)):x.default.error(JSON.stringify(i.errors)||"\u83B7\u53D6\u8BBE\u5907\u5217\u8868\u5931\u8D25");case 4:case"end":return C.stop()}},o)}));return function(){return d.apply(this,arguments)}}(),S=function(){var d=(0,y.Z)((0,n.Z)().mark(function o(){var s;return(0,n.Z)().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:if(!(t.goods&&t.storeId)){a.next=5;break}return a.next=3,xe(t.goods.goodsId,t.storeId);case 3:s=a.sent,s.statusCode===200&&h(s.data);case 5:case"end":return a.stop()}},o)}));return function(){return d.apply(this,arguments)}}();return(0,w.useEffect)(function(){g(),S()},[]),(0,c.jsx)(N.Z,{title:"\u3010".concat(t.goods.goods_Name,"\u3011\u7ED1\u5B9A\u8BBE\u5907"),width:640,bodyStyle:{height:"300px"},visible:t.open,onOk:I,onCancel:t.onCancel,destroyOnClose:!0,children:(0,c.jsx)(le.Z,{mode:"multiple",allowClear:!0,style:{width:"100%"},placeholder:"\u8BF7\u9009\u62E9\u8BBE\u5907\uFF01",onChange:h,options:k,value:O})})},Ae=Re,$e=function(t){var l=(0,w.useRef)(),e=(0,w.useState)(!1),k=(0,M.Z)(e,2),m=k[0],E=k[1],b=(0,w.useState)(),O=(0,M.Z)(b,2),h=O[0],I=O[1],g=(0,w.useState)(!1),S=(0,M.Z)(g,2),d=S[0],o=S[1],s=(0,w.useState)([]),i=(0,M.Z)(s,2),a=i[0],C=i[1],j=(0,w.useState)(0),A=(0,M.Z)(j,2),$=A[0],L=A[1],U=function(){var G=(0,y.Z)((0,n.Z)().mark(function F(f,D){var Z;return(0,n.Z)().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:if(!(f.key=="1"||f.key=="2")){p.next=5;break}L(f.key),o(!0),p.next=13;break;case 5:if(I(D),f.key!="0"){p.next=13;break}return console.log(h),p.next=10,ve({foodMenuId:h.foodMenuId,foods:h.goodsId,deviceIds:[],isDevice:f.key});case 10:Z=p.sent,console.log(Z),Z.statusCode===200?(x.default.success("\u4FEE\u6539\u6210\u529F\uFF01"),l.current.reload()):x.default.error(JSON.stringify(Z.errors)||"\u4FEE\u6539\u5931\u8D25");case 13:case"end":return p.stop()}},F)}));return function(f,D){return G.apply(this,arguments)}}(),ce=[{title:"\u4E3B\u952E",dataIndex:"id",hideInSearch:!0,hideInTable:!0,tip:"\u89C4\u5219\u540D\u79F0\u662F\u552F\u4E00\u7684 key"},{title:"\u5546\u54C1",dataIndex:"goods_Name",valueType:"textarea"},{title:"\u5546\u54C1\u4EF7\u683C",dataIndex:"price",valueType:"money",hideInSearch:!0},{title:"\u5546\u54C1\u4F1A\u5458\u4EF7\u683C",dataIndex:"vipPrice",valueType:"money",hideInSearch:!0},{title:"\u5236\u4F5C\u65B9\u5F0F",dataIndex:"isDevice",valueEnum:{0:{text:"\u5E97\u94FA",status:"Processing"},1:{text:"\u8BBE\u5907",status:"Success"},2:{text:"\u8BBE\u5907\u626B\u7801",status:"Warning"}}},{title:"\u72B6\u6001",dataIndex:"status",valueEnum:{0:{text:"\u4E0A\u67B6",status:"Processing"},1:{text:"\u4E0B\u67B6",status:"Success"}}},{title:"\u4F30\u6E05",dataIndex:"stopSales",valueEnum:{0:{text:"\u9500\u552E",status:"Processing"},1:{text:"\u4F30\u6E05",status:"Success"}}},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(F,f){return[(0,c.jsx)("a",{onClick:function(){I(f),E(!0)},children:"\u7F16\u8F91"},"update"),(0,c.jsx)(ie.Z,{title:"\u786E\u5B9A\u8981".concat(f.stopSales==0?"\u4F30\u6E05":"\u9500\u552E","\u5417\uFF1F"),onConfirm:(0,y.Z)((0,n.Z)().mark(function D(){var Z,v,p;return(0,n.Z)().wrap(function(T){for(;;)switch(T.prev=T.next){case 0:return Z=0,f.stopSales==0?Z=1:Z=0,v=[{goodsId:f.foodId,storeId:f.storeId,StopSales:Z}],T.next=5,De(v);case 5:p=T.sent,p.statusCode===200&&p.data?(x.default.success("\u64CD\u4F5C\u6210\u529F\uFF01"),l.current.reload()):x.default.error(JSON.stringify(p.errors)||"\u64CD\u4F5C\u5931\u8D25");case 7:case"end":return T.stop()}},D)})),okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",children:(0,c.jsx)("a",{onClick:(0,y.Z)((0,n.Z)().mark(function D(){return(0,n.Z)().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:case"end":return v.stop()}},D)})),children:f.stopSales==0?"\u4F30\u6E05":"\u9500\u552E"})},"stopSales"),(0,c.jsx)(ie.Z,{title:"\u786E\u5B9A\u8981".concat(f.status==0?"\u4E0B\u67B6":"\u4E0A\u67B6","\u5417\uFF1F"),onConfirm:(0,y.Z)((0,n.Z)().mark(function D(){var Z;return(0,n.Z)().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:return f.status=f.status==0?1:0,p.next=3,Fe(f);case 3:Z=p.sent,Z.data?(l.current.reload(),x.default.success("\u64CD\u4F5C\u6210\u529F\uFF01")):x.default.error(JSON.stringify(Z.errors)||"\u64CD\u4F5C\u5931\u8D25");case 5:case"end":return p.stop()}},D)})),okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",children:(0,c.jsx)("a",{children:f.status==0?"\u4E0B\u67B6":"\u4E0A\u67B6"})},"status"),(0,c.jsx)(Te.Z,{menu:{items:a,selectable:!0,onClick:U,defaultSelectedKeys:[]},trigger:["click"],children:(0,c.jsx)("a",{onClick:function(Z){U(Z,f)},children:(0,c.jsx)(me.Z,{children:"\u5236\u4F5C\u65B9\u5F0F"})})}),(0,c.jsx)("a",{onClick:function(){P.m8.push({pathname:"/store/storeAddGoodsInfo",query:{isAdd:!1,values:f,storeId:t.storeId}})},children:"\u52A0\u8D2D\u5546\u54C1"},"config")]}}];return(0,w.useEffect)(function(){C([{key:"1",label:"\u8BBE\u5907\u5236\u4F5C"},{key:"0",label:"\u5E97\u94FA\u5236\u4F5C"},{key:"2",label:"\u8BBE\u5907\u626B\u7801\u5236\u4F5C"}])},[]),(0,c.jsxs)(N.Z,{destroyOnClose:!0,footer:null,width:1200,title:t.foodMenu.name,visible:t.open,onCancel:t.onCancel,children:[(0,c.jsx)(oe.ZP,{columns:ce,actionRef:l,pagination:{pageSize:10},request:(0,y.Z)((0,n.Z)().mark(function G(){var F,f,D,Z,v,p=arguments;return(0,n.Z)().wrap(function(T){for(;;)switch(T.prev=T.next){case 0:if(f=p.length>0&&p[0]!==void 0?p[0]:{},D=p.length>1?p[1]:void 0,Z=p.length>2?p[2]:void 0,!(t.storeId&&(F=t.foodMenu)!==null&&F!==void 0&&F.id)){T.next=12;break}return T.next=6,ke((0,B.Z)((0,B.Z)({},f),{},{goodsName:f.goods_Name,storeId:t.storeId,foodMenuId:t.foodMenu.id}));case 6:if(v=T.sent,v.statusCode!==200){T.next=11;break}return T.abrupt("return",{data:v.data.data,success:!0,total:v.data.total});case 11:return T.abrupt("return",[]);case 12:return T.abrupt("return",[]);case 13:case"end":return T.stop()}},G)})),rowKey:"id",headerTitle:"\u5546\u54C1\u5217\u8868"}),m&&h&&(0,c.jsx)(Pe,{open:m,goods:h,onCancel:function(){return E(!1)},onOk:function(){l.current.reload(),E(!1)}}),d&&(0,c.jsx)(Ae,{open:d,goods:h,foodMenu:t.foodMenu,storeId:t.storeId,isDevice:$,onCancel:function(){return o(!1)},onOk:function(){l.current.reload(),o(!1)}})]})},Be=$e,Se=u(86582),Le=function(t){var l=(0,w.useRef)(),e=(0,w.useState)([]),k=(0,M.Z)(e,2),m=k[0],E=k[1],b=[{title:"\u83DC\u8C31\u540D\u79F0",dataIndex:"name"},{title:"\u83DC\u8C31\u7F16\u7801",dataIndex:"code",hideInSearch:!0},{title:"\u83DC\u8C31\u6392\u5E8F",dataIndex:"sort",hideInSearch:!0}],O=function(){var I=(0,y.Z)((0,n.Z)().mark(function g(){var S;return(0,n.Z)().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,Ee({foodMenuIds:m,storeId:t.storeId});case 2:S=o.sent,S.statusCode===200?(x.default.success("\u7ED1\u5B9A\u6210\u529F\uFF01"),t.onOk()):x.default.error(S.errors||"\u7ED1\u5B9A\u83DC\u8C31\u5931\u8D25");case 4:case"end":return o.stop()}},g)}));return function(){return I.apply(this,arguments)}}(),h=function(){var I=(0,y.Z)((0,n.Z)().mark(function g(){var S,d,o,s;return(0,n.Z)().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:if(t.storeId){a.next=2;break}return a.abrupt("return",[]);case 2:return a.next=4,he({current:1,pageSize:999,storeId:t.storeId});case 4:S=a.sent,S.statusCode===200&&(s=[],(d=S.data)===null||d===void 0||(o=d.data)===null||o===void 0||o.forEach(function(C){s.push(C.id)}),E(s));case 6:case"end":return a.stop()}},g)}));return function(){return I.apply(this,arguments)}}();return(0,w.useEffect)(function(){h()},[]),(0,c.jsx)(N.Z,{destroyOnClose:!0,width:1200,title:"\u7ED1\u5B9A\u83DC\u8C31",visible:t.open,onOk:O,onCancel:t.onCancel,children:(0,c.jsx)(oe.ZP,{columns:b,actionRef:l,pagination:{pageSize:10},request:(0,y.Z)((0,n.Z)().mark(function I(){var g,S,d,o,s=arguments;return(0,n.Z)().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:if(g=s.length>0&&s[0]!==void 0?s[0]:{},S=s.length>1?s[1]:void 0,d=s.length>2?s[2]:void 0,!t.storeId){a.next=12;break}return a.next=6,Oe((0,B.Z)({},g));case 6:if(o=a.sent,o.statusCode!==200){a.next=11;break}return a.abrupt("return",{data:o.data.data,success:!0,total:o.data.total});case 11:return a.abrupt("return",[]);case 12:return a.abrupt("return",[]);case 13:case"end":return a.stop()}},I)})),rowSelection:{type:"checkbox",selectedRowKeys:m,onSelect:function(g,S){var d=(0,Se.Z)(m),o=d.findIndex(function(s){return s===g.id});S?o<0&&d.push(g.id):o>-1&&d.splice(o,1),E(d)},onSelectAll:function(g,S,d){var o=(0,Se.Z)(m);g?S.forEach(function(s){if(!!s){var i=o.findIndex(function(a){return a===s.id});i<0&&o.push(s.id)}}):d.forEach(function(s){var i=o.findIndex(function(a){return a===s.id});i>-1&&o.splice(i,1)}),E(o)}},tableAlertOptionRender:function(){return(0,c.jsx)(me.Z,{size:16,children:(0,c.jsx)(ie.Z,{title:"\u6B64\u64CD\u4F5C\u4F1A\u53D6\u6D88\u6240\u6709\u9009\u4E2D\u9879\uFF0C\u786E\u5B9A\u8981\u53D6\u6D88\u5417\uFF1F",onConfirm:function(){return E([])},okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",children:(0,c.jsx)("a",{children:"\u53D6\u6D88\u9009\u62E9"})})})},rowKey:"id",headerTitle:"\u83DC\u8C31\u5217\u8868"})})},We=Le,ht=Ce.Z.TabPane,vt="message",Ne=function(t){var l=(0,w.useRef)(),e=(0,w.useState)([]),k=(0,M.Z)(e,2),m=k[0],E=k[1],b=(0,w.useState)(),O=(0,M.Z)(b,2),h=O[0],I=O[1],g=(0,w.useState)(!1),S=(0,M.Z)(g,2),d=S[0],o=S[1],s=(0,w.useState)(),i=(0,M.Z)(s,2),a=i[0],C=i[1],j=(0,w.useState)(!1),A=(0,M.Z)(j,2),$=A[0],L=A[1],U=function(){var G=(0,y.Z)((0,n.Z)().mark(function F(){var f,D;return(0,n.Z)().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:return v.next=2,we({current:1,pageSize:999});case 2:f=v.sent,f.statusCode===200?((D=f.data)===null||D===void 0||D.forEach(function(p){p.value=p.id,p.label=p.name}),f.data.length>0&&I(f.data[0].id),E(f.data)):x.default.error(JSON.stringify(f.errors)||"\u83B7\u53D6\u95E8\u5E97\u5217\u8868\u5931\u8D25\uFF01");case 4:case"end":return v.stop()}},F)}));return function(){return G.apply(this,arguments)}}(),ce=[{title:"\u5E97\u94FA",dataIndex:"storeId",valueType:"select",hideInTable:!0,fieldProps:{options:m,value:h,onChange:function(F){I(F)}}},{title:"\u83DC\u8C31\u540D\u79F0",dataIndex:"name",hideInSearch:!0},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(F,f){return[(0,c.jsx)("a",{onClick:function(){C(f),o(!0)},children:"\u83DC\u8C31\u5546\u54C1"},"food-menu-list")]}}];return(0,w.useEffect)(function(){U()},[]),(0,w.useEffect)(function(){h&&l.current&&l.current.reload()},[h]),(0,c.jsxs)(Ie.ZP,{children:[(0,c.jsx)(oe.ZP,{columns:ce,actionRef:l,pagination:{pageSize:10},request:(0,y.Z)((0,n.Z)().mark(function G(){var F,f,D,Z,v=arguments;return(0,n.Z)().wrap(function(R){for(;;)switch(R.prev=R.next){case 0:if(F=v.length>0&&v[0]!==void 0?v[0]:{},f=v.length>1?v[1]:void 0,D=v.length>2?v[2]:void 0,h){R.next=5;break}return R.abrupt("return",[]);case 5:return R.next=7,he((0,B.Z)((0,B.Z)({},F),{},{storeId:h}));case 7:if(Z=R.sent,Z.statusCode!==200){R.next=10;break}return R.abrupt("return",{data:Z.data.data,success:!0,total:Z.data.total});case 10:return R.abrupt("return",[]);case 11:case"end":return R.stop()}},G)})),rowKey:"id",headerTitle:"\u83DC\u8C31\u5217\u8868",toolBarRender:function(){return[(0,c.jsx)(pe.Z,{icon:(0,c.jsx)(Ze.Z,{}),onClick:function(){L(!0)},type:"primary",children:"\u5173\u8054\u52A0\u76DF\u5546\u83DC\u8C31"},"button")]}}),d&&h&&a&&(0,c.jsx)(Be,{foodMenu:a,open:d,storeId:h,onCancel:function(){return o(!1)},onOk:function(){return o(!1)}}),$&&h&&(0,c.jsx)(We,{open:$,storeId:h,onCancel:function(){return L(!1)},onOk:function(){var F;L(!1),(F=l.current)===null||F===void 0||F.reload()}})]})},Ue=Ne},98858:function(ye,K,u){"use strict";var fe=u(38663),pe=u.n(fe),B=u(52953),n=u.n(B)}}]); diff --git a/dist/p__store__storeInfo.807b8347.async.js b/dist/p__store__storeInfo.e71eddc6.async.js similarity index 70% rename from dist/p__store__storeInfo.807b8347.async.js rename to dist/p__store__storeInfo.e71eddc6.async.js index ae376f3..75baf3b 100644 --- a/dist/p__store__storeInfo.807b8347.async.js +++ b/dist/p__store__storeInfo.e71eddc6.async.js @@ -1 +1 @@ -(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[1262,1322],{94075:function(ge,X,o){"use strict";o.r(X),o.d(X,{default:function(){return Wt}});var k=o(57663),j=o(71577),P=o(71194),D=o(50146),g=o(2824),n=o(39428),K=o(34792),s=o(48086),d=o(3182),V=o(49101),y=o(67294),w=o(78009),E=o(85224),W=o(16894),f=o(79361),se=o.n(f),Le=o(62999),le=o(54680),_=o(9715),m=o(55843),ee=o(47673),v=o(4107),ie=o(43358),I=o(34041),r=o(85893),tt=function(t){var p=I.Z.Option,e=I.Z.OptGroup;return(0,r.jsx)(D.Z,{title:t.values.id?"\u7F16\u8F91":"\u65B0\u5EFA",width:640,visible:t.createModalVisible,bodyStyle:{padding:"32px 40px 48px"},footer:null,onCancel:function(){t.onCancel()},destroyOnClose:!0,children:(0,r.jsxs)(m.Z,{layout:"Horizontal",labelCol:{span:4},preserve:!1,initialValues:t.values,onFinish:t.onFinish,children:[(0,r.jsx)(m.Z.Item,{name:"id",hidden:!0,children:(0,r.jsx)(v.Z,{})}),(0,r.jsx)(m.Z.Item,{label:"\u5E97\u94FA\u540D\u79F0",name:"store_Name",rules:[{required:!0}],children:(0,r.jsx)(v.Z,{})}),(0,r.jsx)(m.Z.Item,{label:"\u5E97\u94FA\u5730\u5740",name:"store_Addr",rules:[{required:!0}],children:(0,r.jsx)(v.Z,{})}),(0,r.jsx)(m.Z.Item,{label:"\u8054\u7CFB\u7535\u8BDD",name:"store_Tel",rules:[{required:!0}],children:(0,r.jsx)(v.Z,{placeholder:"\u591A\u4E2A\u624B\u673A\u53F7\u7528,\u5206\u9694"})}),(0,r.jsx)(m.Z.Item,{label:"\u72B6\u6001",name:"store_Status",rules:[{required:!0}],children:(0,r.jsx)(I.Z,{placeholder:"\u8BF7\u9009\u62E9\u72B6\u6001",children:(0,r.jsxs)(e,{children:[(0,r.jsx)(I.Z.Option,{value:0,children:"\u6B63\u5E38"}),(0,r.jsx)(I.Z.Option,{value:1,children:"\u505C\u7528"})]})})}),(0,r.jsx)(m.Z.Item,{label:"\u8BBE\u5907\u5206\u7C7B",name:"storeTypeKey",rules:[{required:!0}],children:(0,r.jsx)(I.Z,{children:t.dicData.map(function(l,c){return(0,r.jsx)(I.Z.Option,{index:c,value:l.id,children:l.text},l.id)})})}),(0,r.jsx)(m.Z.Item,{label:"\u56FE\u6807",name:"store_ImgUrl",rules:[{required:!0}],children:(0,r.jsx)(v.Z,{})}),(0,r.jsx)(m.Z.Item,{label:"\u5750\u6807",name:"store_Loc",rules:[{required:!0}],children:(0,r.jsx)(v.Z,{})}),(0,r.jsx)(m.Z.Item,{label:"\u7C7B\u578B",name:"store_TypeId",rules:[{required:!0}],children:(0,r.jsx)(I.Z,{children:t.storeType.map(function(l,c){return(0,r.jsx)(I.Z.Option,{index:c,value:l.id,children:l.text},l.id)})})}),(0,r.jsx)(m.Z.Item,{name:"orgId",label:"\u6240\u5C5E\u673A\u6784",rules:[{required:!0}],children:(0,r.jsx)(le.Z,{style:{width:"100%"},dropdownStyle:{maxHeight:400,overflow:"auto"},treeData:t.OrgData,placeholder:"\u8BF7\u9009\u62E9\u6240\u5C5E\u673A\u6784",treeDefaultExpandAll:!0})}),(0,r.jsx)(m.Z.Item,{label:"\u7B49\u7EA7",name:"store_LevelId",rules:[{required:!0}],children:(0,r.jsx)(I.Z,{children:t.storeLevel.map(function(l,c){return(0,r.jsx)(I.Z.Option,{index:c,value:l.id,children:l.text},l.id)})})}),(0,r.jsx)(m.Z.Item,{children:(0,r.jsx)(j.Z,{type:"primary",htmlType:"submit",children:"\u4FDD\u5B58"})})]})})},rt=tt,qt=o(77883),Ue=o(85986),T=o(48971);function nt(u){return Se.apply(this,arguments)}function Se(){return Se=(0,d.Z)((0,n.Z)().mark(function u(t){return(0,n.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,T.WY)("\u200B\u200B/kitchen/api/store-info/store-goods",{method:"POST",data:t}));case 1:case"end":return e.stop()}},u)})),Se.apply(this,arguments)}function at(){return we.apply(this,arguments)}function we(){return we=(0,d.Z)((0,n.Z)().mark(function u(){var t;return(0,n.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t={current:1,pageSize:1e3,goods_Enable:0},e.abrupt("return",(0,T.WY)("/kitchen/api/goods/goodss",{method:"Post",data:t}));case 2:case"end":return e.stop()}},u)})),we.apply(this,arguments)}function ut(u){return be.apply(this,arguments)}function be(){return be=(0,d.Z)((0,n.Z)().mark(function u(t){return(0,n.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,T.WY)("/kitchen/api/store-info/store-goods",{method:"put",data:t}));case 1:case"end":return e.stop()}},u)})),be.apply(this,arguments)}function st(u){return ke.apply(this,arguments)}function ke(){return ke=(0,d.Z)((0,n.Z)().mark(function u(t){return(0,n.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,T.WY)("/kitchen/api/store-info/store-goods-status",{method:"put",data:t}));case 1:case"end":return e.stop()}},u)})),ke.apply(this,arguments)}function lt(u){return Ce.apply(this,arguments)}function Ce(){return Ce=(0,d.Z)((0,n.Z)().mark(function u(t){return(0,n.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,T.WY)("/kitchen/api/store-info/store-good",{method:"POST",data:t}));case 1:case"end":return e.stop()}},u)})),Ce.apply(this,arguments)}function it(u){return je.apply(this,arguments)}function je(){return je=(0,d.Z)((0,n.Z)().mark(function u(t){return(0,n.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,T.WY)("/kitchen/api/store-info/del-store-good",{method:"POST",data:t}));case 1:case"end":return e.stop()}},u)})),je.apply(this,arguments)}var ot=function(t){var p=I.Z.Option,e=I.Z.OptGroup,l=(0,y.useState)([]),c=(0,g.Z)(l,2),S=c[0],z=c[1];return(0,y.useEffect)(function(){var x=function(){at().then(function($){var q=[];$.data.data.forEach(function(H){q.push({text:H.name,id:H.id})}),z(q)})};x()},[]),(0,r.jsx)(D.Z,{title:t.values.id?"\u7F16\u8F91":"\u65B0\u5EFA",width:640,visible:t.createModalVisible,bodyStyle:{padding:"32px 40px 48px"},footer:null,onCancel:function(){t.onCancel()},destroyOnClose:!0,children:(0,r.jsxs)(m.Z,{layout:"vertical",preserve:!1,initialValues:t.values,onFinish:t.onFinish,children:[(0,r.jsx)(m.Z.Item,{name:"id",hidden:!0,children:(0,r.jsx)(v.Z,{})}),(0,r.jsx)(m.Z.Item,{label:"\u5546\u54C1",name:"goods_Id",rules:[{required:!0}],children:(0,r.jsx)(I.Z,{children:S.map(function(x,J){return(0,r.jsx)(I.Z.Option,{index:J,value:x.id,children:x.text},x.id)})})}),(0,r.jsx)(m.Z.Item,{label:"\u4EF7\u683C",name:"price",rules:[{required:!0}],children:(0,r.jsx)(Ue.Z,{placeholder:"\u4EF7\u683C",min:0})}),(0,r.jsx)(m.Z.Item,{label:"\u72B6\u6001",name:"goods_Enable",rules:[{required:!0}],children:(0,r.jsxs)(I.Z,{placeholder:"\u72B6\u6001",children:[(0,r.jsx)(p,{value:1,children:"\u6B63\u5E38"}),(0,r.jsx)(p,{value:0,children:"\u505C\u7528"})]})}),(0,r.jsx)(m.Z.Item,{children:(0,r.jsx)(j.Z,{type:"primary",htmlType:"submit",children:"\u4FDD\u5B58"})})]})})},ct=ot,te="message",dt=function(){var u=(0,d.Z)((0,n.Z)().mark(function t(p){return(0,n.Z)().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.prev=0,s.default.loading("\u6B63\u5728\u4FEE\u6539",te),s.default.destroy(te),l.next=5,ut(JSON.stringify(p)).then(function(c){return s.default.destroy(te),c.data?(s.default.success("\u4FEE\u6539\u6210\u529F"),!0):(s.default.success("\u4FEE\u6539\u5931\u8D25"),!1)});case 5:l.next=11;break;case 7:return l.prev=7,l.t0=l.catch(0),s.default.error("\u4FEE\u6539\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),l.abrupt("return",!1);case 11:case"end":return l.stop()}},t,null,[[0,7]])}));return function(p){return u.apply(this,arguments)}}(),pt=function(){var u=(0,d.Z)((0,n.Z)().mark(function t(p){var e;return(0,n.Z)().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.prev=0,s.default.loading("\u6B63\u5728\u5220\u9664",te),e=[],p.forEach(function(S){e.push(S.id)}),c.next=6,it(e).then(function(S){return s.default.destroy(te),S.data?(s.default.success("\u5220\u9664\u6210\u529F"),!0):(s.default.success("\u5220\u9664\u5931\u8D25"),!1)});case 6:c.next=12;break;case 8:return c.prev=8,c.t0=c.catch(0),s.default.error("\u5220\u9664\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),c.abrupt("return",!1);case 12:case"end":return c.stop()}},t,null,[[0,8]])}));return function(p){return u.apply(this,arguments)}}(),ft=function(t){var p=(0,y.useState)(!1),e=(0,g.Z)(p,2),l=e[0],c=e[1],S=(0,y.useState)(!1),z=(0,g.Z)(S,2),x=z[0],J=z[1],$=(0,y.useRef)(),q=(0,y.useState)(),H=(0,g.Z)(q,2),ce=H[0],Q=H[1],de=(0,y.useState)([]),ae=(0,g.Z)(de,2),me=ae[0],ue=ae[1],pe=function(){var b=(0,d.Z)((0,n.Z)().mark(function h(i){return(0,n.Z)().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.prev=0,i.store_Id=t.values.id,s.default.loading("\u6B63\u5728\u6DFB\u52A0",te),a.next=5,lt(JSON.stringify(i)).then(function(C){return s.default.destroy(te),C.data?(s.default.success("\u6DFB\u52A0\u6210\u529F"),!0):(s.default.error("\u6DFB\u52A0\u5931\u8D25"),!1)});case 5:a.next=11;break;case 7:return a.prev=7,a.t0=a.catch(0),s.default.error("\u6DFB\u52A0\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),a.abrupt("return",!1);case 11:case"end":return a.stop()}},h,null,[[0,7]])}));return function(i){return b.apply(this,arguments)}}(),fe=[{title:"\u4E3B\u952E",dataIndex:"id",hideInSearch:!0,hideInTable:!0,tip:"\u89C4\u5219\u540D\u79F0\u662F\u552F\u4E00\u7684 key"},{title:"\u5546\u54C1",dataIndex:"goods_Name",valueType:"textarea"},{title:"\u5546\u54C1\u4EF7\u683C",dataIndex:"price",valueType:"money"},{title:"\u72B6\u6001",dataIndex:"goods_Enable",valueEnum:{1:{text:"\u6B63\u5E38",status:"Processing"},0:{text:"\u505C\u7528",status:"Success"}}},{title:"\u521B\u5EFA\u65F6\u95F4",dataIndex:"createAt",hideInForm:!0,search:!1},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(h,i){return[(0,r.jsxs)("a",{onClick:function(){c(!0),Q(i)},children:[" ","\u66F4\u65B0"]},"config"),(0,r.jsxs)("a",{onClick:function(){i.goods_Enable=i.goods_Enable==0?1:0,st(i).then(function(a){a.data&&$.current.reload()})},children:[" ",i.goods_Enable==0?"\u505C\u7528":"\u6B63\u5E38"]},"primary"),,(0,r.jsx)("a",{onClick:function(){pt([i]),$.current.reload()},children:"\u5220\u9664"},"config")]}}];return(0,r.jsx)(D.Z,{width:1200,bodyStyle:{padding:"32px 40px 48px"},destroyOnClose:!0,title:"\u5546\u54C1\u4E0A\u67B6",visible:t.storeGoodsModalVisible,footer:!1,onCancel:function(){return t.onCancel()},maskClosable:!1,children:(0,r.jsxs)(w.ZP,{header:{title:"",breadcrumb:{}},children:[(0,r.jsx)(W.ZP,{headerTitle:"",actionRef:$,rowKey:"id",search:!1,toolBarRender:function(){return[(0,r.jsxs)(j.Z,{type:"primary",onClick:function(){c(!0)},children:[(0,r.jsx)(V.Z,{})," \u65B0\u589E\u4E0A\u67B6\u5546\u54C1"]},"primary")]},request:function(){var b=(0,d.Z)((0,n.Z)().mark(function h(i){var Z,a;return(0,n.Z)().wrap(function(U){for(;;)switch(U.prev=U.next){case 0:return Z=[],a=0,i.StoreId=t.values.id,U.next=5,nt(i).then(function(re){Z=re.data.data,a=re.data.total});case 5:return U.abrupt("return",{data:Z,success:!0,total:a});case 6:case"end":return U.stop()}},h)}));return function(h){return b.apply(this,arguments)}}(),columns:fe,rowSelection:{onChange:function(h,i){ue(i)}}}),(0,r.jsx)(ct,{onFinish:function(){var b=(0,d.Z)((0,n.Z)().mark(function h(i){var Z;return(0,n.Z)().wrap(function(C){for(;;)switch(C.prev=C.next){case 0:Z=!1,i.id?Z=dt(i):Z=pe(i),Z&&(c(!1),Q(void 0),$.current.reload());case 3:case"end":return C.stop()}},h)}));return function(h){return b.apply(this,arguments)}}(),onCancel:function(){c(!1),Q(void 0)},createModalVisible:l,values:ce||{}})]})})},ht=ft,er=o(62350),Ye=o(24565);function mt(u){return Ae.apply(this,arguments)}function Ae(){return Ae=(0,d.Z)((0,n.Z)().mark(function u(t){return(0,n.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,T.WY)("/kitchen/api/store-info/store-batching-stock-page",{method:"POST",data:t}));case 1:case"end":return e.stop()}},u)})),Ae.apply(this,arguments)}function vt(u){return _e.apply(this,arguments)}function _e(){return _e=(0,d.Z)((0,n.Z)().mark(function u(t){return(0,n.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,T.WY)("/kitchen/api/store-info/store-batching-stoc",{method:"POST",data:t}));case 1:case"end":return e.stop()}},u)})),_e.apply(this,arguments)}function yt(u){return Be.apply(this,arguments)}function Be(){return Be=(0,d.Z)((0,n.Z)().mark(function u(t){return(0,n.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,T.WY)("/kitchen/api/store-info/store-batching-stoc",{method:"put",data:t}));case 1:case"end":return e.stop()}},u)})),Be.apply(this,arguments)}function tr(u){return Ie.apply(this,arguments)}function Ie(){return Ie=_asyncToGenerator(_regeneratorRuntime().mark(function u(t){return _regeneratorRuntime().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t={current:1,pageSize:1e3},e.abrupt("return",request("/kitchen/api/goods/goodss",{method:"post",data:t}));case 2:case"end":return e.stop()}},u)})),Ie.apply(this,arguments)}function Zt(u){return Ee.apply(this,arguments)}function Ee(){return Ee=(0,d.Z)((0,n.Z)().mark(function u(t){return(0,n.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,T.WY)("/kitchen/api/frachisee-stock-adjust/product-lists",{method:"post",data:t}));case 1:case"end":return e.stop()}},u)})),Ee.apply(this,arguments)}function gt(u){return Te.apply(this,arguments)}function Te(){return Te=(0,d.Z)((0,n.Z)().mark(function u(t){return(0,n.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,T.WY)("/kitchen/api/store-info/push-stock/".concat(t),{method:"post"}));case 1:case"end":return e.stop()}},u)})),Te.apply(this,arguments)}function St(u){return xe.apply(this,arguments)}function xe(){return xe=(0,d.Z)((0,n.Z)().mark(function u(t){return(0,n.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,T.WY)("/kitchen/api/frachisee-stock-adjust/check-stock-adjust/".concat(t),{method:"POST"}));case 1:case"end":return e.stop()}},u)})),xe.apply(this,arguments)}function wt(u){return Oe.apply(this,arguments)}function Oe(){return Oe=(0,d.Z)((0,n.Z)().mark(function u(t){return(0,n.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,T.WY)("/kitchen/api/store-info/".concat(t),{method:"DELETE"}));case 1:case"end":return e.stop()}},u)})),Oe.apply(this,arguments)}var bt=function(t){var p=I.Z.Option,e=I.Z.OptGroup,l=(0,y.useState)([]),c=(0,g.Z)(l,2),S=c[0],z=c[1];return console.log("ffgbvc",t.Store_Id),(0,y.useEffect)(function(){var x=function(){Zt({Store_Id:t.Store_Id}).then(function($){z($.data)})};x()},[]),(0,r.jsx)(D.Z,{title:t.values.id?"\u7F16\u8F91":"\u65B0\u5EFA",width:640,visible:t.createModalVisible,bodyStyle:{padding:"32px 40px 48px"},footer:null,onCancel:function(){t.onCancel()},destroyOnClose:!0,children:(0,r.jsxs)(m.Z,{layout:"vertical",preserve:!1,initialValues:t.values,onFinish:t.onFinish,children:[(0,r.jsx)(m.Z.Item,{name:"id",hidden:!0,children:(0,r.jsx)(v.Z,{})}),(0,r.jsx)(m.Z.Item,{name:"batching_Id",label:"\u539F\u6599\u540D\u79F0",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u539F\u6599\u540D\u79F0"}],children:(0,r.jsx)(I.Z,{placeholder:"\u8BF7\u9009\u62E9\u539F\u6599\u540D\u79F0",children:S.map(function(x,J){return(0,r.jsx)(I.Z.Option,{index:J,value:x.id,children:x.name},x.id)})})}),(0,r.jsx)(m.Z.Item,{name:"batching_Loc",label:"\u5E93\u5B58\u4F4D\u7F6E",rules:[{required:!0}],defaultValue:"0",children:(0,r.jsx)(v.Z,{placeholder:"\u8F93\u5165\u5E93\u5B58\u4F4D\u7F6E\u7F16\u7801"})}),(0,r.jsx)(m.Z.Item,{name:"batching_Count",label:"\u539F\u6599\u6570\u91CF",rules:[{required:!0}],defaultValue:"0",children:(0,r.jsx)(Ue.Z,{min:0,placeholder:"\u8BF7\u8F93\u5165\u539F\u6599\u6570\u91CF"})}),(0,r.jsx)(m.Z.Item,{children:(0,r.jsx)(j.Z,{type:"primary",htmlType:"submit",children:"\u4FDD\u5B58"})})]})})},kt=bt,N="message",Ct=function(t){var p=(0,y.useState)(!1),e=(0,g.Z)(p,2),l=e[0],c=e[1],S=(0,y.useRef)(),z=(0,y.useState)(),x=(0,g.Z)(z,2),J=x[0],$=x[1],q=(0,y.useState)([]),H=(0,g.Z)(q,2),ce=H[0],Q=H[1],de=function(){var b=(0,d.Z)((0,n.Z)().mark(function h(i){return(0,n.Z)().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.prev=0,i.store_Id=t.values.id,s.default.loading("\u6B63\u5728\u6DFB\u52A0",N),a.next=5,vt(JSON.stringify(i)).then(function(C){return s.default.destroy(N),C.data?(s.default.success("\u6DFB\u52A0\u6210\u529F"),S.current.reload(),!0):(s.default.error("\u6DFB\u52A0\u5931\u8D25"+C.errors),S.current.reload(),!1)});case 5:a.next=12;break;case 7:return a.prev=7,a.t0=a.catch(0),s.default.error("\u6DFB\u52A0\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),S.current.reload(),a.abrupt("return",!1);case 12:case"end":return a.stop()}},h,null,[[0,7]])}));return function(i){return b.apply(this,arguments)}}(),ae=function(){var b=(0,d.Z)((0,n.Z)().mark(function h(i){return(0,n.Z)().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.prev=0,s.default.loading("\u6B63\u5728\u540C\u6B65",N),a.next=4,gt(i).then(function(C){return s.default.destroy(N),C.data?(Q([]),s.default.success("\u540C\u6B65\u6210\u529F"),S.current.reload(),!0):(s.default.success("\u540C\u6B65\u5931\u8D25"),S.current.reload(),!1)});case 4:a.next=11;break;case 6:return a.prev=6,a.t0=a.catch(0),s.default.error("\u540C\u6B65\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),S.current.reload(),a.abrupt("return",!1);case 11:case"end":return a.stop()}},h,null,[[0,6]])}));return function(i){return b.apply(this,arguments)}}(),me=function(){var b=(0,d.Z)((0,n.Z)().mark(function h(i){return(0,n.Z)().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.prev=0,s.default.loading("\u6B63\u5728\u83B7\u53D6",N),s.default.destroy(N),a.next=5,St(i).then(function(C){return s.default.destroy(N),C.data?(s.default.success("\u83B7\u53D6\u6210\u529F"),S.current.reload(),!0):(s.default.error("\u83B7\u53D6\u5931\u8D25"+C.errors),S.current.reload(),!1)});case 5:a.next=12;break;case 7:return a.prev=7,a.t0=a.catch(0),s.default.error("\u83B7\u53D6\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),S.current.reload(),a.abrupt("return",!1);case 12:case"end":return a.stop()}},h,null,[[0,7]])}));return function(i){return b.apply(this,arguments)}}(),ue=function(){var b=(0,d.Z)((0,n.Z)().mark(function h(i){return(0,n.Z)().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.prev=0,a.next=3,wt(i).then(function(C){C.data?(s.default.success("\u5220\u9664\u6210\u529F\uFF0C\u5373\u5C06\u5237\u65B0"),S.current.reload()):(s.default.error("\u5220\u9664\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5"),S.current.reload())});case 3:return a.abrupt("return",!0);case 6:a.prev=6,a.t0=a.catch(0),s.default.error("\u5220\u9664\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5"),S.current.reload();case 10:case"end":return a.stop()}},h,null,[[0,6]])}));return function(i){return b.apply(this,arguments)}}(),pe=function(){var b=(0,d.Z)((0,n.Z)().mark(function h(i){return(0,n.Z)().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.prev=0,s.default.loading("\u6B63\u5728\u4FEE\u6539",N),s.default.destroy(N),i.store_Id=t.values.id,a.next=6,yt(JSON.stringify(i)).then(function(C){return s.default.destroy(N),C.data?(s.default.success("\u4FEE\u6539\u6210\u529F"),!0):(s.default.error("\u4FEE\u6539\u5931\u8D25"+C.errors),!1)});case 6:a.next=12;break;case 8:return a.prev=8,a.t0=a.catch(0),s.default.error("\u4FEE\u6539\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),a.abrupt("return",!1);case 12:case"end":return a.stop()}},h,null,[[0,8]])}));return function(i){return b.apply(this,arguments)}}(),fe=[{title:"\u4E3B\u952E",dataIndex:"id",hideInSearch:!0,hideInTable:!0,tip:"\u89C4\u5219\u540D\u79F0\u662F\u552F\u4E00\u7684 key"},{title:"\u7269\u6599",dataIndex:"batching_Name",valueType:"textarea"},{title:"\u6570\u91CF",dataIndex:"batching_Count",valueType:"textarea"},{title:"\u5E93\u4F4D",dataIndex:"batching_Loc",valueEnum:{1:{text:"1"},2:{text:"2"},3:{text:"3"},4:{text:"4"},5:{text:"5"},6:{text:"6"}}},{title:"\u540C\u6B65",dataIndex:"synchronize",valueEnum:{0:{text:"\u672A\u540C\u6B65",status:"Processing"},1:{text:"\u5DF2\u540C\u6B65",status:"Success"}}},{title:"\u521B\u5EFA\u65F6\u95F4",dataIndex:"createAt",hideInForm:!0,search:!1},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(h,i){return[(0,r.jsxs)("a",{onClick:function(){c(!0),$(i)},children:[" ","\u4FEE\u6539"]},"config"),(0,r.jsx)(Ye.Z,{type:"primary",title:"\u786E\u8BA4\u5220\u9664\u5417\uFF1F",okText:"\u662F",cancelText:"\u5426",onConfirm:function(){ue(i.id)},onCancel:function(){},children:(0,r.jsx)("a",{href:"#",children:"\u5220\u9664"})},"primary")]}}];return(0,r.jsx)(D.Z,{width:1200,bodyStyle:{padding:"32px 40px 48px"},destroyOnClose:!0,title:(t.values==null?"":t.values.store_Name)+"\u5E93\u5B58\u539F\u6599\u8C03\u6574",search:!1,visible:t.stockModalVisible,footer:!1,onCancel:function(){return t.onCancel()},maskClosable:!1,children:(0,r.jsxs)(w.ZP,{header:{title:"",breadcrumb:{}},children:[(0,r.jsx)(W.ZP,{headerTitle:"",actionRef:S,rowKey:"id",search:!1,toolBarRender:function(){return[(0,r.jsx)(Ye.Z,{type:"primary",title:"\u83B7\u53D6\u5B9E\u65F6\u5E93\u5B58\u4F1A\u8986\u76D6\u672C\u6B21\u8865\u8D27\u6570\u636E",okText:"\u662F",cancelText:"\u5426",onConfirm:function(){me(t.values.id)},onCancel:function(){},children:(0,r.jsx)(j.Z,{type:"primary",children:"\u83B7\u53D6\u5B9E\u65F6\u5E93\u5B58"},"primary")},"primary"),(0,r.jsx)(j.Z,{type:"primary",onClick:function(){if(ce.length==0)s.default.error("\u8BF7\u9009\u62E9\u9700\u8981\u540C\u6B65\u7684\u6570\u636E\uFF01\uFF01");else{var i,Z;ae(t.values.id),(i=S.current)===null||i===void 0||(Z=i.reloadAndRest)===null||Z===void 0||Z.call(i)}},children:"\u540C\u6B65\u5E93\u5B58\u539F\u6599"},"primary"),(0,r.jsxs)(j.Z,{type:"primary",onClick:function(){c(!0)},children:[(0,r.jsx)(V.Z,{})," \u65B0\u589E\u5E93\u5B58\u539F\u6599"]},"primary")]},request:function(){var b=(0,d.Z)((0,n.Z)().mark(function h(i){var Z,a;return(0,n.Z)().wrap(function(U){for(;;)switch(U.prev=U.next){case 0:return Z=[],a=0,i.store_Id=t.values.id,U.next=5,mt(i).then(function(re){Z=re.data.data,a=re.data.total});case 5:return U.abrupt("return",{data:Z,success:!0,total:a});case 6:case"end":return U.stop()}},h)}));return function(h){return b.apply(this,arguments)}}(),columns:fe,rowSelection:{onChange:function(h,i){Q(i)}}}),(0,r.jsx)(kt,{Store_Id:t.values==null?"":t.values.id,onFinish:function(){var b=(0,d.Z)((0,n.Z)().mark(function h(i){var Z;return(0,n.Z)().wrap(function(C){for(;;)switch(C.prev=C.next){case 0:Z=!1,i.id?Z=pe(i):Z=de(i),Z&&(c(!1),$(void 0),S.current.reload());case 3:case"end":return C.stop()}},h)}));return function(h){return b.apply(this,arguments)}}(),onCancel:function(){c(!1),$(void 0)},createModalVisible:l,values:J||{}})]})})},jt=Ct;function At(u){return Pe.apply(this,arguments)}function Pe(){return Pe=(0,d.Z)((0,n.Z)().mark(function u(t){return(0,n.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,T.WY)("\u200B/kitchen/api\u200B/store-info\u200B/store-info-page",{method:"POST",data:t}));case 1:case"end":return e.stop()}},u)})),Pe.apply(this,arguments)}function _t(u){return De.apply(this,arguments)}function De(){return De=(0,d.Z)((0,n.Z)().mark(function u(t){return(0,n.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,T.WY)("/kitchen/api/dict-data/dic-list/".concat(t),{method:"Get"}));case 1:case"end":return e.stop()}},u)})),De.apply(this,arguments)}function Bt(u){return Fe.apply(this,arguments)}function Fe(){return Fe=(0,d.Z)((0,n.Z)().mark(function u(t){return(0,n.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,T.WY)("/kitchen/api\u200B/store-info\u200B/store-info",{method:"POST",data:t}));case 1:case"end":return e.stop()}},u)})),Fe.apply(this,arguments)}function It(u){return Ge.apply(this,arguments)}function Ge(){return Ge=(0,d.Z)((0,n.Z)().mark(function u(t){return(0,n.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,T.WY)("/kitchen/api/store-info/store-infofo",{method:"put",data:t}));case 1:case"end":return e.stop()}},u)})),Ge.apply(this,arguments)}function Et(u){return Re.apply(this,arguments)}function Re(){return Re=(0,d.Z)((0,n.Z)().mark(function u(t){return(0,n.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,T.WY)("/kitchen/api/store-info/store-status",{method:"put",data:t}));case 1:case"end":return e.stop()}},u)})),Re.apply(this,arguments)}function Tt(u){return We.apply(this,arguments)}function We(){return We=(0,d.Z)((0,n.Z)().mark(function u(t){return(0,n.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,T.WY)("\u200B\u200B/kitchen/api/store-info/del-store-info",{method:"POST",data:t}));case 1:case"end":return e.stop()}},u)})),We.apply(this,arguments)}var xt=o(41877),Ot=o(94595),Pt=o(3408),oe="message",Dt=function(){var u=(0,d.Z)((0,n.Z)().mark(function t(p){return(0,n.Z)().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.prev=0,s.default.loading("\u6B63\u5728\u6DFB\u52A0",oe),l.next=4,Bt(JSON.stringify(p)).then(function(c){return s.default.destroy(oe),c.data?(s.default.success("\u6DFB\u52A0\u6210\u529F"),!0):(s.default.error("\u6DFB\u52A0\u5931\u8D25"),!1)});case 4:l.next=10;break;case 6:return l.prev=6,l.t0=l.catch(0),s.default.error("\u6DFB\u52A0\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),l.abrupt("return",!1);case 10:case"end":return l.stop()}},t,null,[[0,6]])}));return function(p){return u.apply(this,arguments)}}(),Ft=function(){var u=(0,d.Z)((0,n.Z)().mark(function t(p){return(0,n.Z)().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.prev=0,s.default.loading("\u6B63\u5728\u4FEE\u6539",oe),s.default.destroy(oe),l.next=5,It(JSON.stringify(p)).then(function(c){return s.default.destroy(oe),c.data?(s.default.success("\u4FEE\u6539\u6210\u529F"),!0):(s.default.success("\u4FEE\u6539\u5931\u8D25"),!1)});case 5:l.next=11;break;case 7:return l.prev=7,l.t0=l.catch(0),s.default.error("\u4FEE\u6539\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),l.abrupt("return",!1);case 11:case"end":return l.stop()}},t,null,[[0,7]])}));return function(p){return u.apply(this,arguments)}}(),Gt=function(){var u=(0,d.Z)((0,n.Z)().mark(function t(p){var e;return(0,n.Z)().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.prev=0,s.default.loading("\u6B63\u5728\u5220\u9664"),e=[],p.forEach(function(S){e.push(S.id)}),c.next=6,Tt(e).then(function(S){return S.data?(s.default.success("\u5220\u9664\u6210\u529F"),!0):(s.default.success("\u5220\u9664\u5931\u8D25"),!1)});case 6:c.next=12;break;case 8:return c.prev=8,c.t0=c.catch(0),s.default.error("\u5220\u9664\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),c.abrupt("return",!1);case 12:case"end":return c.stop()}},t,null,[[0,8]])}));return function(p){return u.apply(this,arguments)}}(),Rt=function(){var t=(0,y.useState)(),p=(0,g.Z)(t,2),e=p[0],l=p[1],c=(0,y.useState)(),S=(0,g.Z)(c,2),z=S[0],x=S[1],J=(0,y.useState)([]),$=(0,g.Z)(J,2),q=$[0],H=$[1],ce=(0,y.useState)([]),Q=(0,g.Z)(ce,2),de=Q[0],ae=Q[1],me=(0,y.useState)([]),ue=(0,g.Z)(me,2),pe=ue[0],fe=ue[1],b=(0,y.useState)([]),h=(0,g.Z)(b,2),i=h[0],Z=h[1],a=(0,y.useState)([]),C=(0,g.Z)(a,2),U=C[0],re=C[1],$t=(0,y.useState)([]),Ve=(0,g.Z)($t,2),Mt=Ve[0],Lt=Ve[1];(0,y.useEffect)(function(){var L=function(){(0,xt.ow)({current:1,pageSize:1e3}).then(function(Y){var G={},R=[];Y.data.data.forEach(function(O){R.push({text:O.storeType_Name,id:O.id}),G[O.id]={text:O.storeType_Name}}),console.log(G),ae(R),x(G)})},M=function(Y){var G=(0,Ot.k3)({current:1,pageSize:1e3}).then(function(R){var O={},et=[];R.data.data.forEach(function(Ze){et.push({text:Ze.storeLevel_Name,id:Ze.id}),O[Ze.id]={text:Ze.storeLevel_Name}}),l(O),H(et)})};function A(){(0,Pt.FM)().then(function(B){fe(B.data);var Y={};G(B.data);function G(R){for(var O in R)Y[R[O].value]={text:R[O].title},R[O].children&&G(R[O].children)}Z(Y)})}A(),L(),M();function F(){_t("DeviceClientType").then(function(B){var Y=B.data,G={};if(B.succeeded){var R=[];Y.forEach(function(O){G[O.code]={text:O.remark},R.push({batchingType:O.code,text:O.remark,value:O.code,label:O.remark})}),re(G),Lt(R)}})}F()},[]);var Ut=(0,y.useState)(!1),Ke=(0,g.Z)(Ut,2),Yt=Ke[0],ve=Ke[1],Vt=(0,y.useState)(!1),Ne=(0,g.Z)(Vt,2),Kt=Ne[0],$e=Ne[1],Nt=(0,y.useState)(!1),ze=(0,g.Z)(Nt,2),zt=ze[0],Je=ze[1],Jt=(0,y.useState)(!1),He=(0,g.Z)(Jt,2),rr=He[0],nr=He[1],ye=(0,y.useRef)(),Ht=(0,y.useState)(),Qe=(0,g.Z)(Ht,2),Me=Qe[0],ne=Qe[1],Qt=(0,y.useState)([]),Xe=(0,g.Z)(Qt,2),he=Xe[0],qe=Xe[1],ar=function(){$e(!1)},Xt=[{title:"\u4E3B\u952E",dataIndex:"id",hideInSearch:!0,hideInTable:!0,tip:"\u89C4\u5219\u540D\u79F0\u662F\u552F\u4E00\u7684 key"},{title:"\u5E97\u94FA\u540D\u79F0",dataIndex:"store_Name",valueType:"textarea"},{title:"\u8054\u7CFB\u7535\u8BDD",dataIndex:"store_Tel",valueType:"textarea"},{title:"\u5E97\u94FA\u5730\u5740",dataIndex:"store_Addr",search:!1,valueType:"textarea"},{title:"\u56FE\u6807",dataIndex:"store_ImgUrl",search:!1,valueType:"textarea"},{title:"\u5E97\u94FA\u7C7B\u578B",dataIndex:"store_TypeId",valueEnum:z},{title:"\u5F52\u5C5E\u673A\u6784",dataIndex:"orgId",search:!1,valueEnum:i},{title:"\u5E97\u94FA\u7B49\u7EA7",dataIndex:"store_LevelId",search:!1,valueEnum:e},{title:"\u5750\u6807",dataIndex:"store_Loc",valueType:"textarea",search:!1},{title:"\u8D1F\u8D23\u4EBA",dataIndex:"store_Cadre",valueType:"textarea",search:!1},{title:"\u72B6\u6001",dataIndex:"store_Status",valueEnum:{0:{text:"\u6B63\u5E38",status:"Processing"},1:{text:"\u505C\u7528",status:"Success"}}},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(M,A){return[(0,r.jsxs)("a",{onClick:function(){ve(!0),ne(A)},children:[" ","\u66F4\u65B0"]},"primary"),(0,r.jsxs)("a",{onClick:function(){A.store_Status=A.store_Status==0?1:0,Et(A).then(function(B){B.data&&ye.current.reload()})},children:[" ",A.store_Status==0?"\u505C\u7528":"\u6B63\u5E38"]},"primary"),(0,r.jsxs)("a",{onClick:function(){ne(A),$e(!0)},children:[" ","\u5546\u54C1\u4E0A\u67B6"]},"primary"),(0,r.jsxs)("a",{onClick:function(){ne(A),Je(!0)},children:[" ","\u5E93\u5B58\u8C03\u62E8"]},"primary"),(0,r.jsxs)("a",{onClick:function(){var B={title:"\u5E97\u94FA\u4E8C\u7EF4\u7801",content:(0,r.jsx)(se(),{id:"qrCode",value:"https://black-pa.com:5443/lead?StoreId=".concat(A.id,"&StoreType="),size:200,fgColor:"#000000",style:{margin:"auto"}})};D.Z.info(B)},children:[" ","\u5E97\u94FA\u4E8C\u7EF4\u7801"]},"primary")]}}];return(0,r.jsxs)(w.ZP,{children:[(0,r.jsx)(W.ZP,{headerTitle:"\u5E97\u94FA\u7C7B\u578B",actionRef:ye,rowKey:"id",search:{labelWidth:120},scroll:{x:2e3},toolBarRender:function(){return[(0,r.jsxs)(j.Z,{type:"primary",onClick:function(){ve(!0)},children:[(0,r.jsx)(V.Z,{})," \u65B0\u5EFA"]},"primary")]},request:function(){var L=(0,d.Z)((0,n.Z)().mark(function M(A){var F,B;return(0,n.Z)().wrap(function(G){for(;;)switch(G.prev=G.next){case 0:return F=[],B=0,G.next=4,At(A).then(function(R){F=R.data.data,B=R.data.total});case 4:return G.abrupt("return",{data:F,success:!0,total:B});case 5:case"end":return G.stop()}},M)}));return function(M){return L.apply(this,arguments)}}(),columns:Xt,rowSelection:{onChange:function(M,A){qe(A)}}}),(he==null?void 0:he.length)>0&&(0,r.jsx)(E.Z,{extra:(0,r.jsxs)("div",{children:["\u5DF2\u9009\u62E9"," ",(0,r.jsx)("a",{style:{fontWeight:600},children:he.length})," ","\u9879 \xA0\xA0"]}),children:(0,r.jsx)(j.Z,{onClick:(0,d.Z)((0,n.Z)().mark(function L(){var M,A;return(0,n.Z)().wrap(function(B){for(;;)switch(B.prev=B.next){case 0:return B.next=2,Gt(he);case 2:qe([]),(M=ye.current)===null||M===void 0||(A=M.reloadAndRest)===null||A===void 0||A.call(M);case 4:case"end":return B.stop()}},L)})),children:"\u5220\u9664"})}),(0,r.jsx)(rt,{storeLevel:q,storeType:de,OrgData:pe,dicData:Mt,onFinish:function(){var L=(0,d.Z)((0,n.Z)().mark(function M(A){var F;return(0,n.Z)().wrap(function(Y){for(;;)switch(Y.prev=Y.next){case 0:F=!1,A.id?F=Ft(A):F=Dt(A),F&&(ve(!1),ne(void 0),ye.current.reload());case 3:case"end":return Y.stop()}},M)}));return function(M){return L.apply(this,arguments)}}(),onCancel:function(){ve(!1),ne(void 0)},createModalVisible:Yt,values:Me||{}}),(0,r.jsx)(ht,{onCancel:function(){$e(!1),ne({})},storeGoodsModalVisible:Kt,values:Me}),(0,r.jsx)(jt,{onCancel:function(){Je(!1),ne({})},stockModalVisible:zt,values:Me})]})},Wt=Rt},94595:function(ge,X,o){"use strict";o.d(X,{k3:function(){return D},ef:function(){return n},EQ:function(){return s},mv:function(){return V}});var k=o(39428),j=o(3182),P=o(48971);function D(w){return g.apply(this,arguments)}function g(){return g=(0,j.Z)((0,k.Z)().mark(function w(E){return(0,k.Z)().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return f.abrupt("return",(0,P.WY)("/kitchen/api/store/store-level-page",{method:"POST",data:E}));case 1:case"end":return f.stop()}},w)})),g.apply(this,arguments)}function n(w){return K.apply(this,arguments)}function K(){return K=(0,j.Z)((0,k.Z)().mark(function w(E){return(0,k.Z)().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return f.abrupt("return",(0,P.WY)("/kitchen/api\u200B/store\u200B/store-level",{method:"POST",data:E}));case 1:case"end":return f.stop()}},w)})),K.apply(this,arguments)}function s(w){return d.apply(this,arguments)}function d(){return d=(0,j.Z)((0,k.Z)().mark(function w(E){return(0,k.Z)().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return f.abrupt("return",(0,P.WY)("/kitchen/api/store/store-level",{method:"put",data:E}));case 1:case"end":return f.stop()}},w)})),d.apply(this,arguments)}function V(w){return y.apply(this,arguments)}function y(){return y=(0,j.Z)((0,k.Z)().mark(function w(E){return(0,k.Z)().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return f.abrupt("return",(0,P.WY)("/kitchen/api\u200B/store\u200B/del-store-level",{method:"POST",data:E}));case 1:case"end":return f.stop()}},w)})),y.apply(this,arguments)}},41877:function(ge,X,o){"use strict";o.d(X,{ow:function(){return D},U7:function(){return n},z7:function(){return s},Ym:function(){return V}});var k=o(39428),j=o(3182),P=o(48971);function D(w){return g.apply(this,arguments)}function g(){return g=(0,j.Z)((0,k.Z)().mark(function w(E){return(0,k.Z)().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return f.abrupt("return",(0,P.WY)("/kitchen/api/store/store-type-page",{method:"POST",data:E}));case 1:case"end":return f.stop()}},w)})),g.apply(this,arguments)}function n(w){return K.apply(this,arguments)}function K(){return K=(0,j.Z)((0,k.Z)().mark(function w(E){return(0,k.Z)().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return f.abrupt("return",(0,P.WY)("/kitchen/api\u200B/store\u200B/store-type",{method:"POST",data:E}));case 1:case"end":return f.stop()}},w)})),K.apply(this,arguments)}function s(w){return d.apply(this,arguments)}function d(){return d=(0,j.Z)((0,k.Z)().mark(function w(E){return(0,k.Z)().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return f.abrupt("return",(0,P.WY)("/kitchen\u200B/api\u200B/store\u200B/store-type",{method:"put",data:E}));case 1:case"end":return f.stop()}},w)})),d.apply(this,arguments)}function V(w){return y.apply(this,arguments)}function y(){return y=(0,j.Z)((0,k.Z)().mark(function w(E){return(0,k.Z)().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return f.abrupt("return",(0,P.WY)("\u200B/kitchen/api/store/del-store-type",{method:"POST",data:E}));case 1:case"end":return f.stop()}},w)})),y.apply(this,arguments)}},3408:function(ge,X,o){"use strict";o.d(X,{lM:function(){return g},IH:function(){return K},mm:function(){return y},eP:function(){return E},FM:function(){return Le}});var k=o(39428),j=o(11849),P=o(3182),D=o(48971);function g(_,m){return n.apply(this,arguments)}function n(){return n=(0,P.Z)((0,k.Z)().mark(function _(m,ee){return(0,k.Z)().wrap(function(ie){for(;;)switch(ie.prev=ie.next){case 0:return ie.abrupt("return",(0,D.WY)("/kitchen/api/sysOrg\u200B/page",{method:"GET",params:(0,j.Z)({},m)}));case 1:case"end":return ie.stop()}},_)})),n.apply(this,arguments)}function K(_){return s.apply(this,arguments)}function s(){return s=(0,P.Z)((0,k.Z)().mark(function _(m){return(0,k.Z)().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:return v.abrupt("return",(0,D.WY)("/kitchen/api/sysOrg/add",{method:"POST",data:(0,j.Z)({},m)}));case 1:case"end":return v.stop()}},_)})),s.apply(this,arguments)}function d(_){return V.apply(this,arguments)}function V(){return V=_asyncToGenerator(_regeneratorRuntime().mark(function _(m){return _regeneratorRuntime().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:return v.abrupt("return",request("\u200B/kitchen/api\u200B/sysOrg\u200B/list",{method:"POST",data:_objectSpread({},m)}));case 1:case"end":return v.stop()}},_)})),V.apply(this,arguments)}function y(_){return w.apply(this,arguments)}function w(){return w=(0,P.Z)((0,k.Z)().mark(function _(m){return(0,k.Z)().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:return v.abrupt("return",(0,D.WY)("\u200B/kitchen/api\u200B/sysOrg\u200B/delete",{method:"POST",data:(0,j.Z)({},m)}));case 1:case"end":return v.stop()}},_)})),w.apply(this,arguments)}function E(_){return W.apply(this,arguments)}function W(){return W=(0,P.Z)((0,k.Z)().mark(function _(m){return(0,k.Z)().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:return v.abrupt("return",(0,D.WY)("\u200B/kitchen/api\u200B/sysOrg\u200B/edit",{method:"POST",data:(0,j.Z)({},m)}));case 1:case"end":return v.stop()}},_)})),W.apply(this,arguments)}function f(_){return se.apply(this,arguments)}function se(){return se=_asyncToGenerator(_regeneratorRuntime().mark(function _(m){return _regeneratorRuntime().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:return v.abrupt("return",request("/kitchen\u200B/api\u200B/sysOrg\u200B/detail",{method:"POST",data:_objectSpread({},m)}));case 1:case"end":return v.stop()}},_)})),se.apply(this,arguments)}function Le(_){return le.apply(this,arguments)}function le(){return le=(0,P.Z)((0,k.Z)().mark(function _(m){return(0,k.Z)().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:return v.abrupt("return",(0,D.WY)("\u200B/kitchen/api\u200B/sysOrg\u200B/tree",{data:(0,j.Z)({},m)}));case 1:case"end":return v.stop()}},_)})),le.apply(this,arguments)}}}]); +(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[1262,1322],{94075:function(ge,X,o){"use strict";o.r(X),o.d(X,{default:function(){return Wt}});var k=o(57663),_=o(71577),D=o(71194),P=o(50146),g=o(2824),n=o(39428),K=o(34792),s=o(48086),d=o(3182),V=o(49101),y=o(67294),w=o(78009),T=o(85224),W=o(16894),f=o(79361),se=o.n(f),Le=o(62999),le=o(54680),A=o(9715),m=o(55843),ee=o(47673),v=o(4107),ie=o(43358),E=o(34041),r=o(85893),tt=function(t){var p=E.Z.Option,e=E.Z.OptGroup;return(0,r.jsx)(P.Z,{title:t.values.id?"\u7F16\u8F91":"\u65B0\u5EFA",width:640,visible:t.createModalVisible,bodyStyle:{padding:"32px 40px 48px"},footer:null,onCancel:function(){t.onCancel()},destroyOnClose:!0,children:(0,r.jsxs)(m.Z,{layout:"Horizontal",labelCol:{span:4},preserve:!1,initialValues:t.values,onFinish:t.onFinish,children:[(0,r.jsx)(m.Z.Item,{name:"id",hidden:!0,children:(0,r.jsx)(v.Z,{})}),(0,r.jsx)(m.Z.Item,{label:"\u5E97\u94FA\u540D\u79F0",name:"store_Name",rules:[{required:!0}],children:(0,r.jsx)(v.Z,{})}),(0,r.jsx)(m.Z.Item,{label:"\u5E97\u94FA\u5730\u5740",name:"store_Addr",rules:[{required:!0}],children:(0,r.jsx)(v.Z,{})}),(0,r.jsx)(m.Z.Item,{label:"\u8054\u7CFB\u7535\u8BDD",name:"store_Tel",rules:[{required:!0}],children:(0,r.jsx)(v.Z,{placeholder:"\u591A\u4E2A\u624B\u673A\u53F7\u7528,\u5206\u9694"})}),(0,r.jsx)(m.Z.Item,{label:"\u72B6\u6001",name:"store_Status",rules:[{required:!0}],children:(0,r.jsx)(E.Z,{placeholder:"\u8BF7\u9009\u62E9\u72B6\u6001",children:(0,r.jsxs)(e,{children:[(0,r.jsx)(E.Z.Option,{value:0,children:"\u6B63\u5E38"}),(0,r.jsx)(E.Z.Option,{value:1,children:"\u505C\u7528"})]})})}),(0,r.jsx)(m.Z.Item,{label:"\u8BBE\u5907\u5206\u7C7B",name:"storeTypeKey",rules:[{required:!0}],children:(0,r.jsx)(E.Z,{children:t.dicData.map(function(l,c){return(0,r.jsx)(E.Z.Option,{index:c,value:l.id,children:l.text},l.id)})})}),(0,r.jsx)(m.Z.Item,{label:"\u56FE\u6807",name:"store_ImgUrl",rules:[{required:!0}],children:(0,r.jsx)(v.Z,{})}),(0,r.jsx)(m.Z.Item,{label:"\u5750\u6807",name:"store_Loc",rules:[{required:!0}],children:(0,r.jsx)(v.Z,{})}),(0,r.jsx)(m.Z.Item,{label:"\u7C7B\u578B",name:"store_TypeId",rules:[{required:!0}],children:(0,r.jsx)(E.Z,{children:t.storeType.map(function(l,c){return(0,r.jsx)(E.Z.Option,{index:c,value:l.id,children:l.text},l.id)})})}),(0,r.jsx)(m.Z.Item,{name:"orgId",label:"\u6240\u5C5E\u673A\u6784",rules:[{required:!0}],children:(0,r.jsx)(le.Z,{style:{width:"100%"},dropdownStyle:{maxHeight:400,overflow:"auto"},treeData:t.OrgData,placeholder:"\u8BF7\u9009\u62E9\u6240\u5C5E\u673A\u6784",treeDefaultExpandAll:!0})}),(0,r.jsx)(m.Z.Item,{label:"\u7B49\u7EA7",name:"store_LevelId",rules:[{required:!0}],children:(0,r.jsx)(E.Z,{children:t.storeLevel.map(function(l,c){return(0,r.jsx)(E.Z.Option,{index:c,value:l.id,children:l.text},l.id)})})}),(0,r.jsx)(m.Z.Item,{children:(0,r.jsx)(_.Z,{type:"primary",htmlType:"submit",children:"\u4FDD\u5B58"})})]})})},rt=tt,qt=o(77883),Ue=o(85986),B=o(48971);function nt(u){return Se.apply(this,arguments)}function Se(){return Se=(0,d.Z)((0,n.Z)().mark(function u(t){return(0,n.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,B.WY)("\u200B\u200B/kitchen/api/store-info/store-goods",{method:"POST",data:t}));case 1:case"end":return e.stop()}},u)})),Se.apply(this,arguments)}function at(){return we.apply(this,arguments)}function we(){return we=(0,d.Z)((0,n.Z)().mark(function u(){var t;return(0,n.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t={current:1,pageSize:1e3,goods_Enable:0},e.abrupt("return",(0,B.WY)("/kitchen/api/goods/goodss",{method:"Post",data:t}));case 2:case"end":return e.stop()}},u)})),we.apply(this,arguments)}function ut(u){return be.apply(this,arguments)}function be(){return be=(0,d.Z)((0,n.Z)().mark(function u(t){return(0,n.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,B.WY)("/kitchen/api/store-info/store-goods",{method:"put",data:t}));case 1:case"end":return e.stop()}},u)})),be.apply(this,arguments)}function st(u){return ke.apply(this,arguments)}function ke(){return ke=(0,d.Z)((0,n.Z)().mark(function u(t){return(0,n.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,B.WY)("/kitchen/api/store-info/store-goods-status",{method:"put",data:t}));case 1:case"end":return e.stop()}},u)})),ke.apply(this,arguments)}function lt(u){return Ce.apply(this,arguments)}function Ce(){return Ce=(0,d.Z)((0,n.Z)().mark(function u(t){return(0,n.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,B.WY)("/kitchen/api/store-info/store-good",{method:"POST",data:t}));case 1:case"end":return e.stop()}},u)})),Ce.apply(this,arguments)}function it(u){return _e.apply(this,arguments)}function _e(){return _e=(0,d.Z)((0,n.Z)().mark(function u(t){return(0,n.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,B.WY)("/kitchen/api/store-info/del-store-good",{method:"POST",data:t}));case 1:case"end":return e.stop()}},u)})),_e.apply(this,arguments)}var ot=function(t){var p=E.Z.Option,e=E.Z.OptGroup,l=(0,y.useState)([]),c=(0,g.Z)(l,2),S=c[0],z=c[1];return(0,y.useEffect)(function(){var x=function(){at().then(function($){var q=[];$.data.data.forEach(function(H){q.push({text:H.name,id:H.id})}),z(q)})};x()},[]),(0,r.jsx)(P.Z,{title:t.values.id?"\u7F16\u8F91":"\u65B0\u5EFA",width:640,visible:t.createModalVisible,bodyStyle:{padding:"32px 40px 48px"},footer:null,onCancel:function(){t.onCancel()},destroyOnClose:!0,children:(0,r.jsxs)(m.Z,{layout:"vertical",preserve:!1,initialValues:t.values,onFinish:t.onFinish,children:[(0,r.jsx)(m.Z.Item,{name:"id",hidden:!0,children:(0,r.jsx)(v.Z,{})}),(0,r.jsx)(m.Z.Item,{label:"\u5546\u54C1",name:"goods_Id",rules:[{required:!0}],children:(0,r.jsx)(E.Z,{children:S.map(function(x,J){return(0,r.jsx)(E.Z.Option,{index:J,value:x.id,children:x.text},x.id)})})}),(0,r.jsx)(m.Z.Item,{label:"\u4EF7\u683C",name:"price",rules:[{required:!0}],children:(0,r.jsx)(Ue.Z,{placeholder:"\u4EF7\u683C",min:0})}),(0,r.jsx)(m.Z.Item,{label:"\u72B6\u6001",name:"goods_Enable",rules:[{required:!0}],children:(0,r.jsxs)(E.Z,{placeholder:"\u72B6\u6001",children:[(0,r.jsx)(p,{value:1,children:"\u6B63\u5E38"}),(0,r.jsx)(p,{value:0,children:"\u505C\u7528"})]})}),(0,r.jsx)(m.Z.Item,{children:(0,r.jsx)(_.Z,{type:"primary",htmlType:"submit",children:"\u4FDD\u5B58"})})]})})},ct=ot,te="message",dt=function(){var u=(0,d.Z)((0,n.Z)().mark(function t(p){return(0,n.Z)().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.prev=0,s.default.loading("\u6B63\u5728\u4FEE\u6539",te),s.default.destroy(te),l.next=5,ut(JSON.stringify(p)).then(function(c){return s.default.destroy(te),c.data?(s.default.success("\u4FEE\u6539\u6210\u529F"),!0):(s.default.success("\u4FEE\u6539\u5931\u8D25"),!1)});case 5:l.next=11;break;case 7:return l.prev=7,l.t0=l.catch(0),s.default.error("\u4FEE\u6539\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),l.abrupt("return",!1);case 11:case"end":return l.stop()}},t,null,[[0,7]])}));return function(p){return u.apply(this,arguments)}}(),pt=function(){var u=(0,d.Z)((0,n.Z)().mark(function t(p){var e;return(0,n.Z)().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.prev=0,s.default.loading("\u6B63\u5728\u5220\u9664",te),e=[],p.forEach(function(S){e.push(S.id)}),c.next=6,it(e).then(function(S){return s.default.destroy(te),S.data?(s.default.success("\u5220\u9664\u6210\u529F"),!0):(s.default.success("\u5220\u9664\u5931\u8D25"),!1)});case 6:c.next=12;break;case 8:return c.prev=8,c.t0=c.catch(0),s.default.error("\u5220\u9664\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),c.abrupt("return",!1);case 12:case"end":return c.stop()}},t,null,[[0,8]])}));return function(p){return u.apply(this,arguments)}}(),ft=function(t){var p=(0,y.useState)(!1),e=(0,g.Z)(p,2),l=e[0],c=e[1],S=(0,y.useState)(!1),z=(0,g.Z)(S,2),x=z[0],J=z[1],$=(0,y.useRef)(),q=(0,y.useState)(),H=(0,g.Z)(q,2),ce=H[0],Q=H[1],de=(0,y.useState)([]),ae=(0,g.Z)(de,2),me=ae[0],ue=ae[1],pe=function(){var b=(0,d.Z)((0,n.Z)().mark(function h(i){return(0,n.Z)().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.prev=0,i.store_Id=t.values.id,s.default.loading("\u6B63\u5728\u6DFB\u52A0",te),a.next=5,lt(JSON.stringify(i)).then(function(C){return s.default.destroy(te),C.data?(s.default.success("\u6DFB\u52A0\u6210\u529F"),!0):(s.default.error("\u6DFB\u52A0\u5931\u8D25"),!1)});case 5:a.next=11;break;case 7:return a.prev=7,a.t0=a.catch(0),s.default.error("\u6DFB\u52A0\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),a.abrupt("return",!1);case 11:case"end":return a.stop()}},h,null,[[0,7]])}));return function(i){return b.apply(this,arguments)}}(),fe=[{title:"\u4E3B\u952E",dataIndex:"id",hideInSearch:!0,hideInTable:!0,tip:"\u89C4\u5219\u540D\u79F0\u662F\u552F\u4E00\u7684 key"},{title:"\u5546\u54C1",dataIndex:"goods_Name",valueType:"textarea"},{title:"\u5546\u54C1\u4EF7\u683C",dataIndex:"price",valueType:"money"},{title:"\u72B6\u6001",dataIndex:"goods_Enable",valueEnum:{1:{text:"\u6B63\u5E38",status:"Processing"},0:{text:"\u505C\u7528",status:"Success"}}},{title:"\u521B\u5EFA\u65F6\u95F4",dataIndex:"createAt",hideInForm:!0,search:!1},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(h,i){return[(0,r.jsxs)("a",{onClick:function(){c(!0),Q(i)},children:[" ","\u66F4\u65B0"]},"config"),(0,r.jsxs)("a",{onClick:function(){i.goods_Enable=i.goods_Enable==0?1:0,st(i).then(function(a){a.data&&$.current.reload()})},children:[" ",i.goods_Enable==0?"\u505C\u7528":"\u6B63\u5E38"]},"primary"),,(0,r.jsx)("a",{onClick:function(){pt([i]),$.current.reload()},children:"\u5220\u9664"},"config")]}}];return(0,r.jsx)(P.Z,{width:1200,bodyStyle:{padding:"32px 40px 48px"},destroyOnClose:!0,title:"\u5546\u54C1\u4E0A\u67B6",visible:t.storeGoodsModalVisible,footer:!1,onCancel:function(){return t.onCancel()},maskClosable:!1,children:(0,r.jsxs)(w.ZP,{header:{title:"",breadcrumb:{}},children:[(0,r.jsx)(W.ZP,{headerTitle:"",actionRef:$,rowKey:"id",search:!1,toolBarRender:function(){return[(0,r.jsxs)(_.Z,{type:"primary",onClick:function(){c(!0)},children:[(0,r.jsx)(V.Z,{})," \u65B0\u589E\u4E0A\u67B6\u5546\u54C1"]},"primary")]},request:function(){var b=(0,d.Z)((0,n.Z)().mark(function h(i){var Z,a;return(0,n.Z)().wrap(function(U){for(;;)switch(U.prev=U.next){case 0:return Z=[],a=0,i.StoreId=t.values.id,U.next=5,nt(i).then(function(re){Z=re.data.data,a=re.data.total});case 5:return U.abrupt("return",{data:Z,success:!0,total:a});case 6:case"end":return U.stop()}},h)}));return function(h){return b.apply(this,arguments)}}(),columns:fe,rowSelection:{onChange:function(h,i){ue(i)}}}),(0,r.jsx)(ct,{onFinish:function(){var b=(0,d.Z)((0,n.Z)().mark(function h(i){var Z;return(0,n.Z)().wrap(function(C){for(;;)switch(C.prev=C.next){case 0:Z=!1,i.id?Z=dt(i):Z=pe(i),Z&&(c(!1),Q(void 0),$.current.reload());case 3:case"end":return C.stop()}},h)}));return function(h){return b.apply(this,arguments)}}(),onCancel:function(){c(!1),Q(void 0)},createModalVisible:l,values:ce||{}})]})})},ht=ft,er=o(62350),Ye=o(24565);function mt(u){return je.apply(this,arguments)}function je(){return je=(0,d.Z)((0,n.Z)().mark(function u(t){return(0,n.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,B.WY)("/kitchen/api/store-info/store-batching-stock-page",{method:"POST",data:t}));case 1:case"end":return e.stop()}},u)})),je.apply(this,arguments)}function vt(u){return Ae.apply(this,arguments)}function Ae(){return Ae=(0,d.Z)((0,n.Z)().mark(function u(t){return(0,n.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,B.WY)("/kitchen/api/store-info/store-batching-stoc",{method:"POST",data:t}));case 1:case"end":return e.stop()}},u)})),Ae.apply(this,arguments)}function yt(u){return Ie.apply(this,arguments)}function Ie(){return Ie=(0,d.Z)((0,n.Z)().mark(function u(t){return(0,n.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,B.WY)("/kitchen/api/store-info/store-batching-stoc",{method:"put",data:t}));case 1:case"end":return e.stop()}},u)})),Ie.apply(this,arguments)}function tr(u){return Ee.apply(this,arguments)}function Ee(){return Ee=_asyncToGenerator(_regeneratorRuntime().mark(function u(t){return _regeneratorRuntime().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t={current:1,pageSize:1e3},e.abrupt("return",request("/kitchen/api/goods/goodss",{method:"post",data:t}));case 2:case"end":return e.stop()}},u)})),Ee.apply(this,arguments)}function Zt(u){return Te.apply(this,arguments)}function Te(){return Te=(0,d.Z)((0,n.Z)().mark(function u(t){return(0,n.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,B.WY)("/kitchen/api/frachisee-stock-adjust/product-lists",{method:"post",data:t}));case 1:case"end":return e.stop()}},u)})),Te.apply(this,arguments)}function gt(u){return Be.apply(this,arguments)}function Be(){return Be=(0,d.Z)((0,n.Z)().mark(function u(t){return(0,n.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,B.WY)("/kitchen/api/store-info/push-stock/".concat(t),{method:"post"}));case 1:case"end":return e.stop()}},u)})),Be.apply(this,arguments)}function St(u){return xe.apply(this,arguments)}function xe(){return xe=(0,d.Z)((0,n.Z)().mark(function u(t){return(0,n.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,B.WY)("/kitchen/api/frachisee-stock-adjust/check-stock-adjust/".concat(t),{method:"POST"}));case 1:case"end":return e.stop()}},u)})),xe.apply(this,arguments)}function wt(u){return Oe.apply(this,arguments)}function Oe(){return Oe=(0,d.Z)((0,n.Z)().mark(function u(t){return(0,n.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,B.WY)("/kitchen/api/store-info/".concat(t),{method:"DELETE"}));case 1:case"end":return e.stop()}},u)})),Oe.apply(this,arguments)}var bt=function(t){var p=E.Z.Option,e=E.Z.OptGroup,l=(0,y.useState)([]),c=(0,g.Z)(l,2),S=c[0],z=c[1];return console.log("ffgbvc",t.Store_Id),(0,y.useEffect)(function(){var x=function(){Zt({Store_Id:t.Store_Id}).then(function($){z($.data)})};x()},[]),(0,r.jsx)(P.Z,{title:t.values.id?"\u7F16\u8F91":"\u65B0\u5EFA",width:640,visible:t.createModalVisible,bodyStyle:{padding:"32px 40px 48px"},footer:null,onCancel:function(){t.onCancel()},destroyOnClose:!0,children:(0,r.jsxs)(m.Z,{layout:"vertical",preserve:!1,initialValues:t.values,onFinish:t.onFinish,children:[(0,r.jsx)(m.Z.Item,{name:"id",hidden:!0,children:(0,r.jsx)(v.Z,{})}),(0,r.jsx)(m.Z.Item,{name:"batching_Id",label:"\u539F\u6599\u540D\u79F0",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u539F\u6599\u540D\u79F0"}],children:(0,r.jsx)(E.Z,{placeholder:"\u8BF7\u9009\u62E9\u539F\u6599\u540D\u79F0",children:S.map(function(x,J){return(0,r.jsx)(E.Z.Option,{index:J,value:x.id,children:x.name},x.id)})})}),(0,r.jsx)(m.Z.Item,{name:"batching_Loc",label:"\u5E93\u5B58\u4F4D\u7F6E",rules:[{required:!0}],defaultValue:"0",children:(0,r.jsx)(v.Z,{placeholder:"\u8F93\u5165\u5E93\u5B58\u4F4D\u7F6E\u7F16\u7801"})}),(0,r.jsx)(m.Z.Item,{name:"batching_Count",label:"\u539F\u6599\u6570\u91CF",rules:[{required:!0}],defaultValue:"0",children:(0,r.jsx)(Ue.Z,{min:0,placeholder:"\u8BF7\u8F93\u5165\u539F\u6599\u6570\u91CF"})}),(0,r.jsx)(m.Z.Item,{children:(0,r.jsx)(_.Z,{type:"primary",htmlType:"submit",children:"\u4FDD\u5B58"})})]})})},kt=bt,N="message",Ct=function(t){var p=(0,y.useState)(!1),e=(0,g.Z)(p,2),l=e[0],c=e[1],S=(0,y.useRef)(),z=(0,y.useState)(),x=(0,g.Z)(z,2),J=x[0],$=x[1],q=(0,y.useState)([]),H=(0,g.Z)(q,2),ce=H[0],Q=H[1],de=function(){var b=(0,d.Z)((0,n.Z)().mark(function h(i){return(0,n.Z)().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.prev=0,i.store_Id=t.values.id,s.default.loading("\u6B63\u5728\u6DFB\u52A0",N),a.next=5,vt(JSON.stringify(i)).then(function(C){return s.default.destroy(N),C.data?(s.default.success("\u6DFB\u52A0\u6210\u529F"),S.current.reload(),!0):(s.default.error("\u6DFB\u52A0\u5931\u8D25"+C.errors),S.current.reload(),!1)});case 5:a.next=12;break;case 7:return a.prev=7,a.t0=a.catch(0),s.default.error("\u6DFB\u52A0\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),S.current.reload(),a.abrupt("return",!1);case 12:case"end":return a.stop()}},h,null,[[0,7]])}));return function(i){return b.apply(this,arguments)}}(),ae=function(){var b=(0,d.Z)((0,n.Z)().mark(function h(i){return(0,n.Z)().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.prev=0,s.default.loading("\u6B63\u5728\u540C\u6B65",N),a.next=4,gt(i).then(function(C){return s.default.destroy(N),C.data?(Q([]),s.default.success("\u540C\u6B65\u6210\u529F"),S.current.reload(),!0):(s.default.success("\u540C\u6B65\u5931\u8D25"),S.current.reload(),!1)});case 4:a.next=11;break;case 6:return a.prev=6,a.t0=a.catch(0),s.default.error("\u540C\u6B65\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),S.current.reload(),a.abrupt("return",!1);case 11:case"end":return a.stop()}},h,null,[[0,6]])}));return function(i){return b.apply(this,arguments)}}(),me=function(){var b=(0,d.Z)((0,n.Z)().mark(function h(i){return(0,n.Z)().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.prev=0,s.default.loading("\u6B63\u5728\u83B7\u53D6",N),s.default.destroy(N),a.next=5,St(i).then(function(C){return s.default.destroy(N),C.data?(s.default.success("\u83B7\u53D6\u6210\u529F"),S.current.reload(),!0):(s.default.error("\u83B7\u53D6\u5931\u8D25"+C.errors),S.current.reload(),!1)});case 5:a.next=12;break;case 7:return a.prev=7,a.t0=a.catch(0),s.default.error("\u83B7\u53D6\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),S.current.reload(),a.abrupt("return",!1);case 12:case"end":return a.stop()}},h,null,[[0,7]])}));return function(i){return b.apply(this,arguments)}}(),ue=function(){var b=(0,d.Z)((0,n.Z)().mark(function h(i){return(0,n.Z)().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.prev=0,a.next=3,wt(i).then(function(C){C.data?(s.default.success("\u5220\u9664\u6210\u529F\uFF0C\u5373\u5C06\u5237\u65B0"),S.current.reload()):(s.default.error("\u5220\u9664\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5"),S.current.reload())});case 3:return a.abrupt("return",!0);case 6:a.prev=6,a.t0=a.catch(0),s.default.error("\u5220\u9664\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5"),S.current.reload();case 10:case"end":return a.stop()}},h,null,[[0,6]])}));return function(i){return b.apply(this,arguments)}}(),pe=function(){var b=(0,d.Z)((0,n.Z)().mark(function h(i){return(0,n.Z)().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.prev=0,s.default.loading("\u6B63\u5728\u4FEE\u6539",N),s.default.destroy(N),i.store_Id=t.values.id,a.next=6,yt(JSON.stringify(i)).then(function(C){return s.default.destroy(N),C.data?(s.default.success("\u4FEE\u6539\u6210\u529F"),!0):(s.default.error("\u4FEE\u6539\u5931\u8D25"+C.errors),!1)});case 6:a.next=12;break;case 8:return a.prev=8,a.t0=a.catch(0),s.default.error("\u4FEE\u6539\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),a.abrupt("return",!1);case 12:case"end":return a.stop()}},h,null,[[0,8]])}));return function(i){return b.apply(this,arguments)}}(),fe=[{title:"\u4E3B\u952E",dataIndex:"id",hideInSearch:!0,hideInTable:!0,tip:"\u89C4\u5219\u540D\u79F0\u662F\u552F\u4E00\u7684 key"},{title:"\u7269\u6599",dataIndex:"batching_Name",valueType:"textarea"},{title:"\u6570\u91CF",dataIndex:"batching_Count",valueType:"textarea"},{title:"\u5E93\u4F4D",dataIndex:"batching_Loc",valueEnum:{1:{text:"1"},2:{text:"2"},3:{text:"3"},4:{text:"4"},5:{text:"5"},6:{text:"6"}}},{title:"\u540C\u6B65",dataIndex:"synchronize",valueEnum:{0:{text:"\u672A\u540C\u6B65",status:"Processing"},1:{text:"\u5DF2\u540C\u6B65",status:"Success"}}},{title:"\u521B\u5EFA\u65F6\u95F4",dataIndex:"createAt",hideInForm:!0,search:!1},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(h,i){return[(0,r.jsxs)("a",{onClick:function(){c(!0),$(i)},children:[" ","\u4FEE\u6539"]},"config"),(0,r.jsx)(Ye.Z,{type:"primary",title:"\u786E\u8BA4\u5220\u9664\u5417\uFF1F",okText:"\u662F",cancelText:"\u5426",onConfirm:function(){ue(i.id)},onCancel:function(){},children:(0,r.jsx)("a",{href:"#",children:"\u5220\u9664"})},"primary")]}}];return(0,r.jsx)(P.Z,{width:1200,bodyStyle:{padding:"32px 40px 48px"},destroyOnClose:!0,title:(t.values==null?"":t.values.store_Name)+"\u5E93\u5B58\u539F\u6599\u8C03\u6574",search:!1,visible:t.stockModalVisible,footer:!1,onCancel:function(){return t.onCancel()},maskClosable:!1,children:(0,r.jsxs)(w.ZP,{header:{title:"",breadcrumb:{}},children:[(0,r.jsx)(W.ZP,{headerTitle:"",actionRef:S,rowKey:"id",search:!1,toolBarRender:function(){return[(0,r.jsx)(Ye.Z,{type:"primary",title:"\u83B7\u53D6\u5B9E\u65F6\u5E93\u5B58\u4F1A\u8986\u76D6\u672C\u6B21\u8865\u8D27\u6570\u636E",okText:"\u662F",cancelText:"\u5426",onConfirm:function(){me(t.values.id)},onCancel:function(){},children:(0,r.jsx)(_.Z,{type:"primary",children:"\u83B7\u53D6\u5B9E\u65F6\u5E93\u5B58"},"primary")},"primary"),(0,r.jsx)(_.Z,{type:"primary",onClick:function(){if(ce.length==0)s.default.error("\u8BF7\u9009\u62E9\u9700\u8981\u540C\u6B65\u7684\u6570\u636E\uFF01\uFF01");else{var i,Z;ae(t.values.id),(i=S.current)===null||i===void 0||(Z=i.reloadAndRest)===null||Z===void 0||Z.call(i)}},children:"\u540C\u6B65\u5E93\u5B58\u539F\u6599"},"primary"),(0,r.jsxs)(_.Z,{type:"primary",onClick:function(){c(!0)},children:[(0,r.jsx)(V.Z,{})," \u65B0\u589E\u5E93\u5B58\u539F\u6599"]},"primary")]},request:function(){var b=(0,d.Z)((0,n.Z)().mark(function h(i){var Z,a;return(0,n.Z)().wrap(function(U){for(;;)switch(U.prev=U.next){case 0:return Z=[],a=0,i.store_Id=t.values.id,U.next=5,mt(i).then(function(re){Z=re.data.data,a=re.data.total});case 5:return U.abrupt("return",{data:Z,success:!0,total:a});case 6:case"end":return U.stop()}},h)}));return function(h){return b.apply(this,arguments)}}(),columns:fe,rowSelection:{onChange:function(h,i){Q(i)}}}),(0,r.jsx)(kt,{Store_Id:t.values==null?"":t.values.id,onFinish:function(){var b=(0,d.Z)((0,n.Z)().mark(function h(i){var Z;return(0,n.Z)().wrap(function(C){for(;;)switch(C.prev=C.next){case 0:Z=!1,i.id?Z=pe(i):Z=de(i),Z&&(c(!1),$(void 0),S.current.reload());case 3:case"end":return C.stop()}},h)}));return function(h){return b.apply(this,arguments)}}(),onCancel:function(){c(!1),$(void 0)},createModalVisible:l,values:J||{}})]})})},_t=Ct;function jt(u){return De.apply(this,arguments)}function De(){return De=(0,d.Z)((0,n.Z)().mark(function u(t){return(0,n.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,B.WY)("\u200B/kitchen/api\u200B/store-info\u200B/store-info-page",{method:"POST",data:t}));case 1:case"end":return e.stop()}},u)})),De.apply(this,arguments)}function At(u){return Pe.apply(this,arguments)}function Pe(){return Pe=(0,d.Z)((0,n.Z)().mark(function u(t){return(0,n.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,B.WY)("/kitchen/api/dict-data/dic-list/".concat(t),{method:"Get"}));case 1:case"end":return e.stop()}},u)})),Pe.apply(this,arguments)}function It(u){return Fe.apply(this,arguments)}function Fe(){return Fe=(0,d.Z)((0,n.Z)().mark(function u(t){return(0,n.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,B.WY)("/kitchen/api\u200B/store-info\u200B/store-info",{method:"POST",data:t}));case 1:case"end":return e.stop()}},u)})),Fe.apply(this,arguments)}function Et(u){return Ge.apply(this,arguments)}function Ge(){return Ge=(0,d.Z)((0,n.Z)().mark(function u(t){return(0,n.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,B.WY)("/kitchen/api/store-info/store-infofo",{method:"put",data:t}));case 1:case"end":return e.stop()}},u)})),Ge.apply(this,arguments)}function Tt(u){return Re.apply(this,arguments)}function Re(){return Re=(0,d.Z)((0,n.Z)().mark(function u(t){return(0,n.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,B.WY)("/kitchen/api/store-info/store-status",{method:"put",data:t}));case 1:case"end":return e.stop()}},u)})),Re.apply(this,arguments)}function Bt(u){return We.apply(this,arguments)}function We(){return We=(0,d.Z)((0,n.Z)().mark(function u(t){return(0,n.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,B.WY)("\u200B\u200B/kitchen/api/store-info/del-store-info",{method:"POST",data:t}));case 1:case"end":return e.stop()}},u)})),We.apply(this,arguments)}var xt=o(41877),Ot=o(94595),Dt=o(3408),oe="message",Pt=function(){var u=(0,d.Z)((0,n.Z)().mark(function t(p){return(0,n.Z)().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.prev=0,s.default.loading("\u6B63\u5728\u6DFB\u52A0",oe),l.next=4,It(JSON.stringify(p)).then(function(c){return s.default.destroy(oe),c.data?(s.default.success("\u6DFB\u52A0\u6210\u529F"),!0):(s.default.error("\u6DFB\u52A0\u5931\u8D25"),!1)});case 4:l.next=10;break;case 6:return l.prev=6,l.t0=l.catch(0),s.default.error("\u6DFB\u52A0\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),l.abrupt("return",!1);case 10:case"end":return l.stop()}},t,null,[[0,6]])}));return function(p){return u.apply(this,arguments)}}(),Ft=function(){var u=(0,d.Z)((0,n.Z)().mark(function t(p){return(0,n.Z)().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.prev=0,s.default.loading("\u6B63\u5728\u4FEE\u6539",oe),s.default.destroy(oe),l.next=5,Et(JSON.stringify(p)).then(function(c){return s.default.destroy(oe),c.data?(s.default.success("\u4FEE\u6539\u6210\u529F"),!0):(s.default.success("\u4FEE\u6539\u5931\u8D25"),!1)});case 5:l.next=11;break;case 7:return l.prev=7,l.t0=l.catch(0),s.default.error("\u4FEE\u6539\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),l.abrupt("return",!1);case 11:case"end":return l.stop()}},t,null,[[0,7]])}));return function(p){return u.apply(this,arguments)}}(),Gt=function(){var u=(0,d.Z)((0,n.Z)().mark(function t(p){var e;return(0,n.Z)().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.prev=0,s.default.loading("\u6B63\u5728\u5220\u9664"),e=[],p.forEach(function(S){e.push(S.id)}),c.next=6,Bt(e).then(function(S){return S.data?(s.default.success("\u5220\u9664\u6210\u529F"),!0):(s.default.success("\u5220\u9664\u5931\u8D25"),!1)});case 6:c.next=12;break;case 8:return c.prev=8,c.t0=c.catch(0),s.default.error("\u5220\u9664\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),c.abrupt("return",!1);case 12:case"end":return c.stop()}},t,null,[[0,8]])}));return function(p){return u.apply(this,arguments)}}(),Rt=function(){var t=(0,y.useState)(),p=(0,g.Z)(t,2),e=p[0],l=p[1],c=(0,y.useState)(),S=(0,g.Z)(c,2),z=S[0],x=S[1],J=(0,y.useState)([]),$=(0,g.Z)(J,2),q=$[0],H=$[1],ce=(0,y.useState)([]),Q=(0,g.Z)(ce,2),de=Q[0],ae=Q[1],me=(0,y.useState)([]),ue=(0,g.Z)(me,2),pe=ue[0],fe=ue[1],b=(0,y.useState)([]),h=(0,g.Z)(b,2),i=h[0],Z=h[1],a=(0,y.useState)([]),C=(0,g.Z)(a,2),U=C[0],re=C[1],$t=(0,y.useState)([]),Ve=(0,g.Z)($t,2),Mt=Ve[0],Lt=Ve[1];(0,y.useEffect)(function(){var L=function(){(0,xt.ow)({current:1,pageSize:1e3}).then(function(Y){var G={},R=[];Y.data.data.forEach(function(O){R.push({text:O.storeType_Name,id:O.id}),G[O.id]={text:O.storeType_Name}}),console.log(G),ae(R),x(G)})},M=function(Y){var G=(0,Ot.k3)({current:1,pageSize:1e3}).then(function(R){var O={},et=[];R.data.data.forEach(function(Ze){et.push({text:Ze.storeLevel_Name,id:Ze.id}),O[Ze.id]={text:Ze.storeLevel_Name}}),l(O),H(et)})};function j(){(0,Dt.FM)().then(function(I){fe(I.data);var Y={};G(I.data);function G(R){for(var O in R)Y[R[O].value]={text:R[O].title},R[O].children&&G(R[O].children)}Z(Y)})}j(),L(),M();function F(){At("DeviceClientType").then(function(I){var Y=I.data,G={};if(I.succeeded){var R=[];Y.forEach(function(O){G[O.code]={text:O.remark},R.push({batchingType:O.code,text:O.remark,value:O.code,label:O.remark})}),re(G),Lt(R)}})}F()},[]);var Ut=(0,y.useState)(!1),Ke=(0,g.Z)(Ut,2),Yt=Ke[0],ve=Ke[1],Vt=(0,y.useState)(!1),Ne=(0,g.Z)(Vt,2),Kt=Ne[0],$e=Ne[1],Nt=(0,y.useState)(!1),ze=(0,g.Z)(Nt,2),zt=ze[0],Je=ze[1],Jt=(0,y.useState)(!1),He=(0,g.Z)(Jt,2),rr=He[0],nr=He[1],ye=(0,y.useRef)(),Ht=(0,y.useState)(),Qe=(0,g.Z)(Ht,2),Me=Qe[0],ne=Qe[1],Qt=(0,y.useState)([]),Xe=(0,g.Z)(Qt,2),he=Xe[0],qe=Xe[1],ar=function(){$e(!1)},Xt=[{title:"\u4E3B\u952E",dataIndex:"id",hideInSearch:!0,hideInTable:!0,tip:"\u89C4\u5219\u540D\u79F0\u662F\u552F\u4E00\u7684 key"},{title:"\u5E97\u94FA\u540D\u79F0",dataIndex:"store_Name",valueType:"textarea"},{title:"\u8054\u7CFB\u7535\u8BDD",dataIndex:"store_Tel",valueType:"textarea"},{title:"\u5E97\u94FA\u5730\u5740",dataIndex:"store_Addr",search:!1,valueType:"textarea"},{title:"\u56FE\u6807",dataIndex:"store_ImgUrl",search:!1,valueType:"textarea"},{title:"\u5E97\u94FA\u7C7B\u578B",dataIndex:"store_TypeId",valueEnum:z},{title:"\u5F52\u5C5E\u673A\u6784",dataIndex:"orgId",search:!1,valueEnum:i},{title:"\u5E97\u94FA\u7B49\u7EA7",dataIndex:"store_LevelId",search:!1,valueEnum:e},{title:"\u5750\u6807",dataIndex:"store_Loc",valueType:"textarea",search:!1},{title:"\u8D1F\u8D23\u4EBA",dataIndex:"store_Cadre",valueType:"textarea",search:!1},{title:"\u72B6\u6001",dataIndex:"store_Status",valueEnum:{0:{text:"\u6B63\u5E38",status:"Processing"},1:{text:"\u505C\u7528",status:"Success"}}},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(M,j){return[(0,r.jsxs)("a",{onClick:function(){ve(!0),ne(j)},children:[" ","\u66F4\u65B0"]},"primary"),(0,r.jsxs)("a",{onClick:function(){j.store_Status=j.store_Status==0?1:0,Tt(j).then(function(I){I.data&&ye.current.reload()})},children:[" ",j.store_Status==0?"\u505C\u7528":"\u6B63\u5E38"]},"primary"),(0,r.jsxs)("a",{onClick:function(){ne(j),$e(!0)},children:[" ","\u5546\u54C1\u4E0A\u67B6"]},"primary"),(0,r.jsxs)("a",{onClick:function(){ne(j),Je(!0)},children:[" ","\u5E93\u5B58\u8C03\u62E8"]},"primary"),(0,r.jsxs)("a",{onClick:function(){var I={title:"\u5E97\u94FA\u4E8C\u7EF4\u7801",content:(0,r.jsx)(se(),{id:"qrCode",value:"https://black-pa.com:5443/lead?StoreId=".concat(j.id,"&StoreType="),size:200,fgColor:"#000000",style:{margin:"auto"}})};P.Z.info(I)},children:[" ","\u5E97\u94FA\u4E8C\u7EF4\u7801"]},"primary")]}}];return(0,r.jsxs)(w.ZP,{children:[(0,r.jsx)(W.ZP,{headerTitle:"\u5E97\u94FA\u7C7B\u578B",actionRef:ye,rowKey:"id",search:{labelWidth:120},scroll:{x:2e3},toolBarRender:function(){return[(0,r.jsxs)(_.Z,{type:"primary",onClick:function(){ve(!0)},children:[(0,r.jsx)(V.Z,{})," \u65B0\u5EFA"]},"primary")]},request:function(){var L=(0,d.Z)((0,n.Z)().mark(function M(j){var F,I;return(0,n.Z)().wrap(function(G){for(;;)switch(G.prev=G.next){case 0:return F=[],I=0,G.next=4,jt(j).then(function(R){F=R.data.data,I=R.data.total});case 4:return G.abrupt("return",{data:F,success:!0,total:I});case 5:case"end":return G.stop()}},M)}));return function(M){return L.apply(this,arguments)}}(),columns:Xt,rowSelection:{onChange:function(M,j){qe(j)}}}),(he==null?void 0:he.length)>0&&(0,r.jsx)(T.Z,{extra:(0,r.jsxs)("div",{children:["\u5DF2\u9009\u62E9"," ",(0,r.jsx)("a",{style:{fontWeight:600},children:he.length})," ","\u9879 \xA0\xA0"]}),children:(0,r.jsx)(_.Z,{onClick:(0,d.Z)((0,n.Z)().mark(function L(){var M,j;return(0,n.Z)().wrap(function(I){for(;;)switch(I.prev=I.next){case 0:return I.next=2,Gt(he);case 2:qe([]),(M=ye.current)===null||M===void 0||(j=M.reloadAndRest)===null||j===void 0||j.call(M);case 4:case"end":return I.stop()}},L)})),children:"\u5220\u9664"})}),(0,r.jsx)(rt,{storeLevel:q,storeType:de,OrgData:pe,dicData:Mt,onFinish:function(){var L=(0,d.Z)((0,n.Z)().mark(function M(j){var F;return(0,n.Z)().wrap(function(Y){for(;;)switch(Y.prev=Y.next){case 0:F=!1,j.id?F=Ft(j):F=Pt(j),F&&(ve(!1),ne(void 0),ye.current.reload());case 3:case"end":return Y.stop()}},M)}));return function(M){return L.apply(this,arguments)}}(),onCancel:function(){ve(!1),ne(void 0)},createModalVisible:Yt,values:Me||{}}),(0,r.jsx)(ht,{onCancel:function(){$e(!1),ne({})},storeGoodsModalVisible:Kt,values:Me}),(0,r.jsx)(_t,{onCancel:function(){Je(!1),ne({})},stockModalVisible:zt,values:Me})]})},Wt=Rt},94595:function(ge,X,o){"use strict";o.d(X,{k3:function(){return P},ef:function(){return n},EQ:function(){return s},mv:function(){return V}});var k=o(39428),_=o(3182),D=o(48971);function P(w){return g.apply(this,arguments)}function g(){return g=(0,_.Z)((0,k.Z)().mark(function w(T){return(0,k.Z)().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return f.abrupt("return",(0,D.WY)("/kitchen/api/store/store-level-page",{method:"POST",data:T}));case 1:case"end":return f.stop()}},w)})),g.apply(this,arguments)}function n(w){return K.apply(this,arguments)}function K(){return K=(0,_.Z)((0,k.Z)().mark(function w(T){return(0,k.Z)().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return f.abrupt("return",(0,D.WY)("/kitchen/api\u200B/store\u200B/store-level",{method:"POST",data:T}));case 1:case"end":return f.stop()}},w)})),K.apply(this,arguments)}function s(w){return d.apply(this,arguments)}function d(){return d=(0,_.Z)((0,k.Z)().mark(function w(T){return(0,k.Z)().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return f.abrupt("return",(0,D.WY)("/kitchen/api/store/store-level",{method:"put",data:T}));case 1:case"end":return f.stop()}},w)})),d.apply(this,arguments)}function V(w){return y.apply(this,arguments)}function y(){return y=(0,_.Z)((0,k.Z)().mark(function w(T){return(0,k.Z)().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return f.abrupt("return",(0,D.WY)("/kitchen/api\u200B/store\u200B/del-store-level",{method:"POST",data:T}));case 1:case"end":return f.stop()}},w)})),y.apply(this,arguments)}},41877:function(ge,X,o){"use strict";o.d(X,{ow:function(){return P},U7:function(){return n},z7:function(){return s},Ym:function(){return V}});var k=o(39428),_=o(3182),D=o(48971);function P(w){return g.apply(this,arguments)}function g(){return g=(0,_.Z)((0,k.Z)().mark(function w(T){return(0,k.Z)().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return f.abrupt("return",(0,D.WY)("/kitchen/api/store/store-type-page",{method:"POST",data:T}));case 1:case"end":return f.stop()}},w)})),g.apply(this,arguments)}function n(w){return K.apply(this,arguments)}function K(){return K=(0,_.Z)((0,k.Z)().mark(function w(T){return(0,k.Z)().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return f.abrupt("return",(0,D.WY)("/kitchen/api\u200B/store\u200B/store-type",{method:"POST",data:T}));case 1:case"end":return f.stop()}},w)})),K.apply(this,arguments)}function s(w){return d.apply(this,arguments)}function d(){return d=(0,_.Z)((0,k.Z)().mark(function w(T){return(0,k.Z)().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return f.abrupt("return",(0,D.WY)("/kitchen\u200B/api\u200B/store\u200B/store-type",{method:"put",data:T}));case 1:case"end":return f.stop()}},w)})),d.apply(this,arguments)}function V(w){return y.apply(this,arguments)}function y(){return y=(0,_.Z)((0,k.Z)().mark(function w(T){return(0,k.Z)().wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return f.abrupt("return",(0,D.WY)("\u200B/kitchen/api/store/del-store-type",{method:"POST",data:T}));case 1:case"end":return f.stop()}},w)})),y.apply(this,arguments)}},3408:function(ge,X,o){"use strict";o.d(X,{lM:function(){return g},IH:function(){return K},mm:function(){return y},eP:function(){return T},FM:function(){return Le}});var k=o(39428),_=o(11849),D=o(3182),P=o(48971);function g(A,m){return n.apply(this,arguments)}function n(){return n=(0,D.Z)((0,k.Z)().mark(function A(m,ee){return(0,k.Z)().wrap(function(ie){for(;;)switch(ie.prev=ie.next){case 0:return ie.abrupt("return",(0,P.WY)("/kitchen/api/sysOrg\u200B/page",{method:"GET",params:(0,_.Z)({},m)}));case 1:case"end":return ie.stop()}},A)})),n.apply(this,arguments)}function K(A){return s.apply(this,arguments)}function s(){return s=(0,D.Z)((0,k.Z)().mark(function A(m){return(0,k.Z)().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:return v.abrupt("return",(0,P.WY)("/kitchen/api/sysOrg/add",{method:"POST",data:(0,_.Z)({},m)}));case 1:case"end":return v.stop()}},A)})),s.apply(this,arguments)}function d(A){return V.apply(this,arguments)}function V(){return V=_asyncToGenerator(_regeneratorRuntime().mark(function A(m){return _regeneratorRuntime().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:return v.abrupt("return",request("\u200B/kitchen/api\u200B/sysOrg\u200B/list",{method:"POST",data:_objectSpread({},m)}));case 1:case"end":return v.stop()}},A)})),V.apply(this,arguments)}function y(A){return w.apply(this,arguments)}function w(){return w=(0,D.Z)((0,k.Z)().mark(function A(m){return(0,k.Z)().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:return v.abrupt("return",(0,P.WY)("\u200B/kitchen/api\u200B/sysOrg\u200B/delete",{method:"POST",data:(0,_.Z)({},m)}));case 1:case"end":return v.stop()}},A)})),w.apply(this,arguments)}function T(A){return W.apply(this,arguments)}function W(){return W=(0,D.Z)((0,k.Z)().mark(function A(m){return(0,k.Z)().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:return v.abrupt("return",(0,P.WY)("\u200B/kitchen/api\u200B/sysOrg\u200B/edit",{method:"POST",data:(0,_.Z)({},m)}));case 1:case"end":return v.stop()}},A)})),W.apply(this,arguments)}function f(A){return se.apply(this,arguments)}function se(){return se=_asyncToGenerator(_regeneratorRuntime().mark(function A(m){return _regeneratorRuntime().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:return v.abrupt("return",request("/kitchen\u200B/api\u200B/sysOrg\u200B/detail",{method:"POST",data:_objectSpread({},m)}));case 1:case"end":return v.stop()}},A)})),se.apply(this,arguments)}function Le(A){return le.apply(this,arguments)}function le(){return le=(0,D.Z)((0,k.Z)().mark(function A(m){return(0,k.Z)().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:return v.abrupt("return",(0,P.WY)("\u200B/kitchen/api\u200B/sysOrg\u200B/tree",{data:(0,_.Z)({},m)}));case 1:case"end":return v.stop()}},A)})),le.apply(this,arguments)}}}]); diff --git a/dist/p__store__storeLevel.e47d1ec2.async.js b/dist/p__store__storeLevel.4f76ebc9.async.js similarity index 66% rename from dist/p__store__storeLevel.e47d1ec2.async.js rename to dist/p__store__storeLevel.4f76ebc9.async.js index be39324..d540dbf 100644 --- a/dist/p__store__storeLevel.e47d1ec2.async.js +++ b/dist/p__store__storeLevel.4f76ebc9.async.js @@ -1 +1 @@ -(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[5815,1322],{73937:function(V,w,e){"use strict";e.r(w),e.d(w,{default:function(){return X}});var v=e(57663),g=e(71577),p=e(2824),l=e(39428),D=e(34792),a=e(48086),f=e(3182),L=e(49101),m=e(67294),$=e(78009),P=e(85224),i=e(16894),S=e(71194),R=e(50146),t=e(9715),E=e(55843),te=e(47673),b=e(4107),ne=e(43358),x=e(34041),n=e(85893),N=function(s){var c=x.Z.Option,A=x.Z.OptGroup;return(0,n.jsx)(R.Z,{title:s.values.id?"\u7F16\u8F91":"\u65B0\u5EFA",width:640,visible:s.createModalVisible,bodyStyle:{padding:"32px 40px 48px"},footer:null,onCancel:function(){s.onCancel()},destroyOnClose:!0,children:(0,n.jsxs)(E.Z,{layout:"vertical",preserve:!1,initialValues:s.values,onFinish:s.onFinish,children:[(0,n.jsx)(E.Z.Item,{name:"id",hidden:!0,children:(0,n.jsx)(b.Z,{})}),(0,n.jsx)(E.Z.Item,{label:"\u7B49\u7EA7",name:"storeLevel_Name",rules:[{required:!0}],children:(0,n.jsx)(b.Z,{})}),(0,n.jsx)(E.Z.Item,{children:(0,n.jsx)(g.Z,{type:"primary",htmlType:"submit",children:"\u4FDD\u5B58"})})]})})},Y=N,I=e(94595),B="message",J=function(){var C=(0,f.Z)((0,l.Z)().mark(function s(c){return(0,l.Z)().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.prev=0,a.default.loading("\u6B63\u5728\u6DFB\u52A0",B),r.next=4,(0,I.ef)(JSON.stringify(c)).then(function(u){return a.default.destroy(B),u.data?(a.default.success("\u6DFB\u52A0\u6210\u529F"),!0):(a.default.error("\u6DFB\u52A0\u5931\u8D25"),!1)});case 4:r.next=10;break;case 6:return r.prev=6,r.t0=r.catch(0),a.default.error("\u6DFB\u52A0\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),r.abrupt("return",!1);case 10:case"end":return r.stop()}},s,null,[[0,6]])}));return function(c){return C.apply(this,arguments)}}(),Q=function(){var C=(0,f.Z)((0,l.Z)().mark(function s(c){return(0,l.Z)().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.prev=0,a.default.loading("\u6B63\u5728\u4FEE\u6539",B),a.default.destroy(B),r.next=5,(0,I.EQ)(JSON.stringify(c)).then(function(u){return a.default.destroy(B),u.data?(a.default.success("\u4FEE\u6539\u6210\u529F"),!0):(a.default.success("\u4FEE\u6539\u5931\u8D25"),!1)});case 5:r.next=11;break;case 7:return r.prev=7,r.t0=r.catch(0),a.default.error("\u4FEE\u6539\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),r.abrupt("return",!1);case 11:case"end":return r.stop()}},s,null,[[0,7]])}));return function(c){return C.apply(this,arguments)}}(),z=function(){var C=(0,f.Z)((0,l.Z)().mark(function s(c){var A;return(0,l.Z)().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.prev=0,a.default.loading("\u6B63\u5728\u5220\u9664"),A=[],c.forEach(function(j){A.push(j.id)}),u.next=6,(0,I.mv)(A).then(function(j){return j.data?(a.default.success("\u5220\u9664\u6210\u529F"),!0):(a.default.success("\u5220\u9664\u5931\u8D25"),!1)});case 6:u.next=12;break;case 8:return u.prev=8,u.t0=u.catch(0),a.default.error("\u5220\u9664\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),u.abrupt("return",!1);case 12:case"end":return u.stop()}},s,null,[[0,8]])}));return function(c){return C.apply(this,arguments)}}(),H=function(){var s=(0,m.useState)(!1),c=(0,p.Z)(s,2),A=c[0],r=c[1],u=(0,m.useState)(!1),j=(0,p.Z)(u,2),ae=j[0],se=j[1],M=(0,m.useRef)(),q=(0,m.useState)(),G=(0,p.Z)(q,2),_=G[0],W=G[1],ee=(0,m.useState)([]),U=(0,p.Z)(ee,2),O=U[0],K=U[1],re=[{title:"\u4E3B\u952E",dataIndex:"id",hideInSearch:!0,hideInTable:!0,tip:"\u89C4\u5219\u540D\u79F0\u662F\u552F\u4E00\u7684 key"},{title:"\u7B49\u7EA7",dataIndex:"storeLevel_Name",valueType:"textarea",ellipsis:!0},{title:"\u521B\u5EFA\u65F6\u95F4",dataIndex:"createAt",hideInForm:!0,search:!1},{title:"\u4FEE\u6539\u65F6\u95F4",dataIndex:"updateAt",hideInForm:!0,search:!1},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(d,o){return[(0,n.jsx)("a",{onClick:function(){r(!0),W(o)},children:" \u66F4\u65B0"},"config")]}}];return(0,n.jsxs)($.ZP,{children:[(0,n.jsx)(i.ZP,{headerTitle:"\u5E97\u94FA\u7C7B\u578B",actionRef:M,rowKey:"id",search:{labelWidth:120},toolBarRender:function(){return[(0,n.jsxs)(g.Z,{type:"primary",onClick:function(){r(!0)},children:[(0,n.jsx)(L.Z,{})," \u65B0\u5EFA"]},"primary")]},request:function(){var y=(0,f.Z)((0,l.Z)().mark(function d(o){var h,Z;return(0,l.Z)().wrap(function(T){for(;;)switch(T.prev=T.next){case 0:return h=[],Z=0,T.next=4,(0,I.k3)(o).then(function(k){h=k.data.data,Z=k.data.total});case 4:return T.abrupt("return",{data:h,success:!0,total:Z});case 5:case"end":return T.stop()}},d)}));return function(d){return y.apply(this,arguments)}}(),columns:re,rowSelection:{onChange:function(d,o){K(o)}}}),(O==null?void 0:O.length)>0&&(0,n.jsx)(P.Z,{extra:(0,n.jsxs)("div",{children:["\u5DF2\u9009\u62E9"," ",(0,n.jsx)("a",{style:{fontWeight:600},children:O.length})," ","\u9879 \xA0\xA0"]}),children:(0,n.jsx)(g.Z,{onClick:(0,f.Z)((0,l.Z)().mark(function y(){var d,o;return(0,l.Z)().wrap(function(Z){for(;;)switch(Z.prev=Z.next){case 0:return Z.next=2,z(O);case 2:K([]),(d=M.current)===null||d===void 0||(o=d.reloadAndRest)===null||o===void 0||o.call(d);case 4:case"end":return Z.stop()}},y)})),children:"\u5220\u9664"})}),(0,n.jsx)(Y,{onFinish:function(){var y=(0,f.Z)((0,l.Z)().mark(function d(o){var h;return(0,l.Z)().wrap(function(F){for(;;)switch(F.prev=F.next){case 0:h=!1,o.id?h=Q(o):h=J(o),h&&(r(!1),W(void 0),M.current.reload());case 3:case"end":return F.stop()}},d)}));return function(d){return y.apply(this,arguments)}}(),onCancel:function(){r(!1),W(void 0)},createModalVisible:A,values:_||{}})]})},X=H},94595:function(V,w,e){"use strict";e.d(w,{k3:function(){return l},ef:function(){return a},EQ:function(){return L},mv:function(){return $}});var v=e(39428),g=e(3182),p=e(48971);function l(i){return D.apply(this,arguments)}function D(){return D=(0,g.Z)((0,v.Z)().mark(function i(S){return(0,v.Z)().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,p.WY)("/kitchen/api/store/store-level-page",{method:"POST",data:S}));case 1:case"end":return t.stop()}},i)})),D.apply(this,arguments)}function a(i){return f.apply(this,arguments)}function f(){return f=(0,g.Z)((0,v.Z)().mark(function i(S){return(0,v.Z)().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,p.WY)("/kitchen/api\u200B/store\u200B/store-level",{method:"POST",data:S}));case 1:case"end":return t.stop()}},i)})),f.apply(this,arguments)}function L(i){return m.apply(this,arguments)}function m(){return m=(0,g.Z)((0,v.Z)().mark(function i(S){return(0,v.Z)().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,p.WY)("/kitchen/api/store/store-level",{method:"put",data:S}));case 1:case"end":return t.stop()}},i)})),m.apply(this,arguments)}function $(i){return P.apply(this,arguments)}function P(){return P=(0,g.Z)((0,v.Z)().mark(function i(S){return(0,v.Z)().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,p.WY)("/kitchen/api\u200B/store\u200B/del-store-level",{method:"POST",data:S}));case 1:case"end":return t.stop()}},i)})),P.apply(this,arguments)}}}]); +(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[5815,1322],{73937:function(V,B,e){"use strict";e.r(B),e.d(B,{default:function(){return X}});var v=e(57663),g=e(71577),p=e(2824),l=e(39428),D=e(34792),a=e(48086),f=e(3182),L=e(49101),m=e(67294),$=e(78009),R=e(85224),i=e(16894),S=e(71194),O=e(50146),t=e(9715),E=e(55843),te=e(47673),b=e(4107),ne=e(43358),x=e(34041),n=e(85893),N=function(s){var c=x.Z.Option,C=x.Z.OptGroup;return(0,n.jsx)(O.Z,{title:s.values.id?"\u7F16\u8F91":"\u65B0\u5EFA",width:640,visible:s.createModalVisible,bodyStyle:{padding:"32px 40px 48px"},footer:null,onCancel:function(){s.onCancel()},destroyOnClose:!0,children:(0,n.jsxs)(E.Z,{layout:"vertical",preserve:!1,initialValues:s.values,onFinish:s.onFinish,children:[(0,n.jsx)(E.Z.Item,{name:"id",hidden:!0,children:(0,n.jsx)(b.Z,{})}),(0,n.jsx)(E.Z.Item,{label:"\u7B49\u7EA7",name:"storeLevel_Name",rules:[{required:!0}],children:(0,n.jsx)(b.Z,{})}),(0,n.jsx)(E.Z.Item,{children:(0,n.jsx)(g.Z,{type:"primary",htmlType:"submit",children:"\u4FDD\u5B58"})})]})})},Y=N,I=e(94595),P="message",J=function(){var A=(0,f.Z)((0,l.Z)().mark(function s(c){return(0,l.Z)().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.prev=0,a.default.loading("\u6B63\u5728\u6DFB\u52A0",P),r.next=4,(0,I.ef)(JSON.stringify(c)).then(function(u){return a.default.destroy(P),u.data?(a.default.success("\u6DFB\u52A0\u6210\u529F"),!0):(a.default.error("\u6DFB\u52A0\u5931\u8D25"),!1)});case 4:r.next=10;break;case 6:return r.prev=6,r.t0=r.catch(0),a.default.error("\u6DFB\u52A0\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),r.abrupt("return",!1);case 10:case"end":return r.stop()}},s,null,[[0,6]])}));return function(c){return A.apply(this,arguments)}}(),Q=function(){var A=(0,f.Z)((0,l.Z)().mark(function s(c){return(0,l.Z)().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.prev=0,a.default.loading("\u6B63\u5728\u4FEE\u6539",P),a.default.destroy(P),r.next=5,(0,I.EQ)(JSON.stringify(c)).then(function(u){return a.default.destroy(P),u.data?(a.default.success("\u4FEE\u6539\u6210\u529F"),!0):(a.default.success("\u4FEE\u6539\u5931\u8D25"),!1)});case 5:r.next=11;break;case 7:return r.prev=7,r.t0=r.catch(0),a.default.error("\u4FEE\u6539\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),r.abrupt("return",!1);case 11:case"end":return r.stop()}},s,null,[[0,7]])}));return function(c){return A.apply(this,arguments)}}(),z=function(){var A=(0,f.Z)((0,l.Z)().mark(function s(c){var C;return(0,l.Z)().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.prev=0,a.default.loading("\u6B63\u5728\u5220\u9664"),C=[],c.forEach(function(j){C.push(j.id)}),u.next=6,(0,I.mv)(C).then(function(j){return j.data?(a.default.success("\u5220\u9664\u6210\u529F"),!0):(a.default.success("\u5220\u9664\u5931\u8D25"),!1)});case 6:u.next=12;break;case 8:return u.prev=8,u.t0=u.catch(0),a.default.error("\u5220\u9664\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),u.abrupt("return",!1);case 12:case"end":return u.stop()}},s,null,[[0,8]])}));return function(c){return A.apply(this,arguments)}}(),H=function(){var s=(0,m.useState)(!1),c=(0,p.Z)(s,2),C=c[0],r=c[1],u=(0,m.useState)(!1),j=(0,p.Z)(u,2),ae=j[0],se=j[1],M=(0,m.useRef)(),q=(0,m.useState)(),U=(0,p.Z)(q,2),_=U[0],W=U[1],ee=(0,m.useState)([]),G=(0,p.Z)(ee,2),T=G[0],k=G[1],re=[{title:"\u4E3B\u952E",dataIndex:"id",hideInSearch:!0,hideInTable:!0,tip:"\u89C4\u5219\u540D\u79F0\u662F\u552F\u4E00\u7684 key"},{title:"\u7B49\u7EA7",dataIndex:"storeLevel_Name",valueType:"textarea",ellipsis:!0},{title:"\u521B\u5EFA\u65F6\u95F4",dataIndex:"createAt",hideInForm:!0,search:!1},{title:"\u4FEE\u6539\u65F6\u95F4",dataIndex:"updateAt",hideInForm:!0,search:!1},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(d,o){return[(0,n.jsx)("a",{onClick:function(){r(!0),W(o)},children:" \u66F4\u65B0"},"config")]}}];return(0,n.jsxs)($.ZP,{children:[(0,n.jsx)(i.ZP,{headerTitle:"\u5E97\u94FA\u7C7B\u578B",actionRef:M,rowKey:"id",search:{labelWidth:120},toolBarRender:function(){return[(0,n.jsxs)(g.Z,{type:"primary",onClick:function(){r(!0)},children:[(0,n.jsx)(L.Z,{})," \u65B0\u5EFA"]},"primary")]},request:function(){var y=(0,f.Z)((0,l.Z)().mark(function d(o){var h,Z;return(0,l.Z)().wrap(function(w){for(;;)switch(w.prev=w.next){case 0:return h=[],Z=0,w.next=4,(0,I.k3)(o).then(function(K){h=K.data.data,Z=K.data.total});case 4:return w.abrupt("return",{data:h,success:!0,total:Z});case 5:case"end":return w.stop()}},d)}));return function(d){return y.apply(this,arguments)}}(),columns:re,rowSelection:{onChange:function(d,o){k(o)}}}),(T==null?void 0:T.length)>0&&(0,n.jsx)(R.Z,{extra:(0,n.jsxs)("div",{children:["\u5DF2\u9009\u62E9"," ",(0,n.jsx)("a",{style:{fontWeight:600},children:T.length})," ","\u9879 \xA0\xA0"]}),children:(0,n.jsx)(g.Z,{onClick:(0,f.Z)((0,l.Z)().mark(function y(){var d,o;return(0,l.Z)().wrap(function(Z){for(;;)switch(Z.prev=Z.next){case 0:return Z.next=2,z(T);case 2:k([]),(d=M.current)===null||d===void 0||(o=d.reloadAndRest)===null||o===void 0||o.call(d);case 4:case"end":return Z.stop()}},y)})),children:"\u5220\u9664"})}),(0,n.jsx)(Y,{onFinish:function(){var y=(0,f.Z)((0,l.Z)().mark(function d(o){var h;return(0,l.Z)().wrap(function(F){for(;;)switch(F.prev=F.next){case 0:h=!1,o.id?h=Q(o):h=J(o),h&&(r(!1),W(void 0),M.current.reload());case 3:case"end":return F.stop()}},d)}));return function(d){return y.apply(this,arguments)}}(),onCancel:function(){r(!1),W(void 0)},createModalVisible:C,values:_||{}})]})},X=H},94595:function(V,B,e){"use strict";e.d(B,{k3:function(){return l},ef:function(){return a},EQ:function(){return L},mv:function(){return $}});var v=e(39428),g=e(3182),p=e(48971);function l(i){return D.apply(this,arguments)}function D(){return D=(0,g.Z)((0,v.Z)().mark(function i(S){return(0,v.Z)().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,p.WY)("/kitchen/api/store/store-level-page",{method:"POST",data:S}));case 1:case"end":return t.stop()}},i)})),D.apply(this,arguments)}function a(i){return f.apply(this,arguments)}function f(){return f=(0,g.Z)((0,v.Z)().mark(function i(S){return(0,v.Z)().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,p.WY)("/kitchen/api\u200B/store\u200B/store-level",{method:"POST",data:S}));case 1:case"end":return t.stop()}},i)})),f.apply(this,arguments)}function L(i){return m.apply(this,arguments)}function m(){return m=(0,g.Z)((0,v.Z)().mark(function i(S){return(0,v.Z)().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,p.WY)("/kitchen/api/store/store-level",{method:"put",data:S}));case 1:case"end":return t.stop()}},i)})),m.apply(this,arguments)}function $(i){return R.apply(this,arguments)}function R(){return R=(0,g.Z)((0,v.Z)().mark(function i(S){return(0,v.Z)().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,p.WY)("/kitchen/api\u200B/store\u200B/del-store-level",{method:"POST",data:S}));case 1:case"end":return t.stop()}},i)})),R.apply(this,arguments)}}}]); diff --git a/dist/p__store__storeStaff.a161860a.async.js b/dist/p__store__storeStaff.418b42e0.async.js similarity index 72% rename from dist/p__store__storeStaff.a161860a.async.js rename to dist/p__store__storeStaff.418b42e0.async.js index 75e15b5..7833493 100644 --- a/dist/p__store__storeStaff.a161860a.async.js +++ b/dist/p__store__storeStaff.418b42e0.async.js @@ -1 +1 @@ -(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[7025,1322],{77287:function(se,W,t){"use strict";t.r(W),t.d(W,{default:function(){return ge}});var S=t(71194),x=t(50146),T=t(9715),f=t(55843),z=t(47673),C=t(4107),Q=t(57663),E=t(71577),P=t(2824),n=t(39428),X=t(34792),d=t(48086),y=t(3182),D=t(49101),b=t(67294),A=t(78009),G=t(85224),R=t(16894),c=t(79361),g=t(62999),I=t(54680),a=t(43358),O=t(34041),e=t(85893),ue=function(u){var m=O.Z.Option,r=O.Z.OptGroup;return(0,e.jsx)(x.Z,{title:u.values.id?"\u7F16\u8F91":"\u65B0\u5EFA",width:640,visible:u.createModalVisible,bodyStyle:{padding:"32px 40px 48px"},footer:null,onCancel:function(){u.onCancel()},destroyOnClose:!0,children:(0,e.jsxs)(f.Z,{preserve:!1,initialValues:u.values,onFinish:u.onFinish,children:[(0,e.jsx)(f.Z.Item,{name:"id",hidden:!0,children:(0,e.jsx)(C.Z,{})}),(0,e.jsx)(f.Z.Item,{label:"\u540D\u79F0",name:"name",rules:[{required:!0}],children:(0,e.jsx)(C.Z,{})}),(0,e.jsx)(f.Z.Item,{label:"\u7535\u8BDD",name:"phone",rules:[{required:!0}],children:(0,e.jsx)(C.Z,{})}),(0,e.jsx)(f.Z.Item,{label:"\u5DE5\u53F7",name:"number",rules:[{required:!0}],children:(0,e.jsx)(C.Z,{})}),(0,e.jsx)(f.Z.Item,{name:"shopId",label:"\u95E8\u5E97",rules:[{required:!0}],children:(0,e.jsx)(I.Z,{style:{width:"100%"},dropdownStyle:{maxHeight:400,overflow:"auto"},treeData:u.OrgData,placeholder:"\u95E8\u5E97",treeDefaultExpandAll:!0})}),(0,e.jsx)(f.Z.Item,{name:"status",label:"\u72B6\u6001",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u72B6\u6001"}],children:(0,e.jsx)(O.Z,{placeholder:"\u8BF7\u9009\u62E9\u72B6\u6001",children:(0,e.jsxs)(r,{children:[(0,e.jsx)(O.Z.Option,{value:0,children:"\u6B63\u5E38"}),(0,e.jsx)(O.Z.Option,{value:1,children:"\u505C\u7528"}),(0,e.jsx)(O.Z.Option,{value:2,children:"\u5220\u9664"})]})})}),(0,e.jsx)(f.Z.Item,{children:(0,e.jsx)(E.Z,{type:"primary",htmlType:"submit",children:"\u4FDD\u5B58"})})]})})},le=ue,$=t(48971);function ie(i){return U.apply(this,arguments)}function U(){return U=(0,y.Z)((0,n.Z)().mark(function i(u){return(0,n.Z)().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",(0,$.WY)("/kitchen/api/store-staff/store-staff-page",{method:"POST",data:u}));case 1:case"end":return r.stop()}},i)})),U.apply(this,arguments)}function de(i){return Y.apply(this,arguments)}function Y(){return Y=(0,y.Z)((0,n.Z)().mark(function i(u){return(0,n.Z)().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",(0,$.WY)("/kitchen/api/store-staff/store-staff",{method:"POST",data:u}));case 1:case"end":return r.stop()}},i)})),Y.apply(this,arguments)}function ce(i){return L.apply(this,arguments)}function L(){return L=(0,y.Z)((0,n.Z)().mark(function i(u){return(0,n.Z)().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",(0,$.WY)("/kitchen\u200B/api/store-staff/store-staff",{method:"put",data:u}));case 1:case"end":return r.stop()}},i)})),L.apply(this,arguments)}function oe(i){return K.apply(this,arguments)}function K(){return K=(0,y.Z)((0,n.Z)().mark(function i(u){return(0,n.Z)().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",(0,$.WY)("\u200B/kitchen/api/store-staff/del-store-staff",{method:"POST",data:u}));case 1:case"end":return r.stop()}},i)})),K.apply(this,arguments)}function fe(i){return V.apply(this,arguments)}function V(){return V=(0,y.Z)((0,n.Z)().mark(function i(u){return(0,n.Z)().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",(0,$.WY)("/kitchen\u200B//api/cashierplatformapplication/storestaffpwd",{method:"put",data:u}));case 1:case"end":return r.stop()}},i)})),V.apply(this,arguments)}var pe=t(3408),F="message",he=function(){var i=(0,y.Z)((0,n.Z)().mark(function u(m){return(0,n.Z)().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.prev=0,d.default.loading("\u6B63\u5728\u6DFB\u52A0",F),s.next=4,de(JSON.stringify(m)).then(function(Z){return d.default.destroy(F),Z.data?(d.default.success("\u6DFB\u52A0\u6210\u529F"),!0):(d.default.error("\u6DFB\u52A0\u5931\u8D25"),!1)});case 4:s.next=10;break;case 6:return s.prev=6,s.t0=s.catch(0),d.default.error("\u6DFB\u52A0\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),s.abrupt("return",!1);case 10:case"end":return s.stop()}},u,null,[[0,6]])}));return function(m){return i.apply(this,arguments)}}(),me=function(){var i=(0,y.Z)((0,n.Z)().mark(function u(m){return(0,n.Z)().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.prev=0,d.default.loading("\u6B63\u5728\u4FEE\u6539",F),d.default.destroy(F),s.next=5,ce(JSON.stringify(m)).then(function(Z){return d.default.destroy(F),Z.data?(d.default.success("\u4FEE\u6539\u6210\u529F"),!0):(d.default.error("\u4FEE\u6539\u5931\u8D25"),!1)});case 5:s.next=11;break;case 7:return s.prev=7,s.t0=s.catch(0),d.default.error("\u4FEE\u6539\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),s.abrupt("return",!1);case 11:case"end":return s.stop()}},u,null,[[0,7]])}));return function(m){return i.apply(this,arguments)}}(),ve=function(){var i=(0,y.Z)((0,n.Z)().mark(function u(m){var r;return(0,n.Z)().wrap(function(Z){for(;;)switch(Z.prev=Z.next){case 0:return Z.prev=0,d.default.loading("\u6B63\u5728\u5220\u9664"),r=[],m.forEach(function(B){r.push(B.id)}),Z.next=6,oe(r).then(function(B){return B.data?(d.default.success("\u5220\u9664\u6210\u529F"),!0):(d.default.error("\u5220\u9664\u5931\u8D25"),!1)});case 6:Z.next=12;break;case 8:return Z.prev=8,Z.t0=Z.catch(0),d.default.error("\u5220\u9664\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),Z.abrupt("return",!1);case 12:case"end":return Z.stop()}},u,null,[[0,8]])}));return function(m){return i.apply(this,arguments)}}(),Ze=function(){var u=(0,b.useState)(!1),m=(0,P.Z)(u,2),r=m[0],s=m[1],Z=(0,b.useState)(!1),B=(0,P.Z)(Z,2),ye=B[0],J=B[1],je=(0,b.useState)(!1),q=(0,P.Z)(je,2),Te=q[0],Be=q[1],N=(0,b.useRef)(),we=(0,b.useState)(),_=(0,P.Z)(we,2),H=_[0],k=_[1],Se=(0,b.useState)([]),ee=(0,P.Z)(Se,2),M=ee[0],te=ee[1],Oe=(0,b.useState)([]),re=(0,P.Z)(Oe,2),Ce=re[0],be=re[1],xe=(0,b.useState)([]),ae=(0,P.Z)(xe,2),Ee=ae[0],Pe=ae[1];(0,b.useEffect)(function(){function j(){(0,pe.FM)().then(function(p){l(p.data);function l(o){for(var h in o)o[h].type==2||o[h].type==3?o[h].disabled=!1:o[h].disabled=!0,o[h].children&&l(o[h].children)}be(p.data);var v={};w(p.data);function w(o){for(var h in o)v[o[h].disabled]=!0,v[o[h].value]={text:o[h].title},o[h].children&&w(o[h].children)}Pe(v)})}j()},[]);var Ie=[{title:"\u4E3B\u952E",dataIndex:"id",hideInSearch:!0,hideInTable:!0,tip:"\u89C4\u5219\u540D\u79F0\u662F\u552F\u4E00\u7684 key"},{title:"\u540D\u79F0",dataIndex:"name",valueType:"textarea",search:!1},{title:"\u7535\u8BDD",dataIndex:"phone",valueType:"textarea",search:!1},{title:"\u804C\u5DE5\u7F16\u53F7",dataIndex:"number",valueType:"textarea",search:!1},{title:"\u5F52\u5C5E\u95E8\u5E97",dataIndex:"shopId",search:!1,valueEnum:Ee},{title:"\u72B6\u6001",dataIndex:"status",hideInForm:!0,search:!1,valueEnum:{0:{text:"\u6B63\u5E38",status:"Processing"},1:{text:"\u505C\u7528",status:"Success"},2:{text:"\u5220\u9664",status:"Error"}}},{title:"\u521B\u5EFA\u65F6\u95F4",dataIndex:"createAt",hideInForm:!0,search:!1},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(p,l){return[(0,e.jsx)("a",{onClick:function(){s(!0),k(l)},children:" \u66F4\u65B0"},"config"),(0,e.jsx)("a",{onClick:function(){J(!0),l.pwd="",k(l)},children:" \u4FEE\u6539\u5BC6\u7801"},"config")]}}];return(0,e.jsxs)(A.ZP,{children:[(0,e.jsx)(R.ZP,{headerTitle:"\u5E97\u94FA\u7C7B\u578B",actionRef:N,rowKey:"id",search:{labelWidth:120},toolBarRender:function(){return[(0,e.jsxs)(E.Z,{type:"primary",onClick:function(){s(!0)},children:[(0,e.jsx)(D.Z,{})," \u65B0\u5EFA"]},"primary")]},request:function(){var j=(0,y.Z)((0,n.Z)().mark(function p(l){var v,w;return(0,n.Z)().wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return v=[],w=0,h.next=4,ie(l).then(function(ne){v=ne.data.data,w=ne.data.total});case 4:return h.abrupt("return",{data:v,success:!0,total:w});case 5:case"end":return h.stop()}},p)}));return function(p){return j.apply(this,arguments)}}(),columns:Ie,rowSelection:{onChange:function(p,l){te(l)}}}),(M==null?void 0:M.length)>0&&(0,e.jsx)(G.Z,{extra:(0,e.jsxs)("div",{children:["\u5DF2\u9009\u62E9"," ",(0,e.jsx)("a",{style:{fontWeight:600},children:M.length})," ","\u9879 \xA0\xA0"]}),children:(0,e.jsx)(E.Z,{onClick:(0,y.Z)((0,n.Z)().mark(function j(){var p,l;return(0,n.Z)().wrap(function(w){for(;;)switch(w.prev=w.next){case 0:return w.next=2,ve(M);case 2:te([]),(p=N.current)===null||p===void 0||(l=p.reloadAndRest)===null||l===void 0||l.call(p);case 4:case"end":return w.stop()}},j)})),children:"\u5220\u9664"})}),(0,e.jsx)(le,{onFinish:function(){var j=(0,y.Z)((0,n.Z)().mark(function p(l){var v;return(0,n.Z)().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:v=!1,l.id?v=me(l):v=he(l),v&&(s(!1),k(void 0),N.current.reload());case 3:case"end":return o.stop()}},p)}));return function(p){return j.apply(this,arguments)}}(),onCancel:function(){s(!1),k(void 0)},createModalVisible:r,OrgData:Ce,values:H||{}}),(0,e.jsx)(x.Z,{title:"\u4FEE\u6539\u5BC6\u7801",open:ye,footer:null,onCancel:function(){J(!1)},children:(0,e.jsxs)(f.Z,{preserve:!1,onFinish:(0,y.Z)((0,n.Z)().mark(function j(){return(0,n.Z)().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.next=2,fe(JSON.stringify(H)).then(function(v){v.data?(d.default.success("\u4FEE\u6539\u6210\u529F"),J(!1)):d.default.error("\u4FEE\u6539\u5931\u8D25")});case 2:case"end":return l.stop()}},j)})),initialValues:H,children:[(0,e.jsx)(f.Z.Item,{name:"id",hidden:!0,children:(0,e.jsx)(C.Z,{})}),(0,e.jsx)(f.Z.Item,{label:"\u5BC6\u7801",name:"pwd",rules:[{required:!0}],children:(0,e.jsx)(C.Z,{})}),(0,e.jsx)(f.Z.Item,{children:(0,e.jsx)(E.Z,{type:"primary",htmlType:"submit",children:"\u4FDD\u5B58"})})]})})]})},ge=Ze},3408:function(se,W,t){"use strict";t.d(W,{lM:function(){return z},IH:function(){return Q},mm:function(){return X},eP:function(){return y},FM:function(){return G}});var S=t(39428),x=t(11849),T=t(3182),f=t(48971);function z(c,g){return C.apply(this,arguments)}function C(){return C=(0,T.Z)((0,S.Z)().mark(function c(g,I){return(0,S.Z)().wrap(function(O){for(;;)switch(O.prev=O.next){case 0:return O.abrupt("return",(0,f.WY)("/kitchen/api/sysOrg\u200B/page",{method:"GET",params:(0,x.Z)({},g)}));case 1:case"end":return O.stop()}},c)})),C.apply(this,arguments)}function Q(c){return E.apply(this,arguments)}function E(){return E=(0,T.Z)((0,S.Z)().mark(function c(g){return(0,S.Z)().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,f.WY)("/kitchen/api/sysOrg/add",{method:"POST",data:(0,x.Z)({},g)}));case 1:case"end":return a.stop()}},c)})),E.apply(this,arguments)}function P(c){return n.apply(this,arguments)}function n(){return n=_asyncToGenerator(_regeneratorRuntime().mark(function c(g){return _regeneratorRuntime().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",request("\u200B/kitchen/api\u200B/sysOrg\u200B/list",{method:"POST",data:_objectSpread({},g)}));case 1:case"end":return a.stop()}},c)})),n.apply(this,arguments)}function X(c){return d.apply(this,arguments)}function d(){return d=(0,T.Z)((0,S.Z)().mark(function c(g){return(0,S.Z)().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,f.WY)("\u200B/kitchen/api\u200B/sysOrg\u200B/delete",{method:"POST",data:(0,x.Z)({},g)}));case 1:case"end":return a.stop()}},c)})),d.apply(this,arguments)}function y(c){return D.apply(this,arguments)}function D(){return D=(0,T.Z)((0,S.Z)().mark(function c(g){return(0,S.Z)().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,f.WY)("\u200B/kitchen/api\u200B/sysOrg\u200B/edit",{method:"POST",data:(0,x.Z)({},g)}));case 1:case"end":return a.stop()}},c)})),D.apply(this,arguments)}function b(c){return A.apply(this,arguments)}function A(){return A=_asyncToGenerator(_regeneratorRuntime().mark(function c(g){return _regeneratorRuntime().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",request("/kitchen\u200B/api\u200B/sysOrg\u200B/detail",{method:"POST",data:_objectSpread({},g)}));case 1:case"end":return a.stop()}},c)})),A.apply(this,arguments)}function G(c){return R.apply(this,arguments)}function R(){return R=(0,T.Z)((0,S.Z)().mark(function c(g){return(0,S.Z)().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,f.WY)("\u200B/kitchen/api\u200B/sysOrg\u200B/tree",{data:(0,x.Z)({},g)}));case 1:case"end":return a.stop()}},c)})),R.apply(this,arguments)}}}]); +(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[7025,1322],{77287:function(se,M,t){"use strict";t.r(M),t.d(M,{default:function(){return ge}});var S=t(71194),x=t(50146),P=t(9715),f=t(55843),z=t(47673),C=t(4107),Q=t(57663),E=t(71577),I=t(2824),n=t(39428),X=t(34792),d=t(48086),y=t(3182),B=t(49101),b=t(67294),R=t(78009),U=t(85224),$=t(16894),c=t(79361),g=t(62999),T=t(54680),a=t(43358),O=t(34041),e=t(85893),ue=function(u){var m=O.Z.Option,r=O.Z.OptGroup;return(0,e.jsx)(x.Z,{title:u.values.id?"\u7F16\u8F91":"\u65B0\u5EFA",width:640,visible:u.createModalVisible,bodyStyle:{padding:"32px 40px 48px"},footer:null,onCancel:function(){u.onCancel()},destroyOnClose:!0,children:(0,e.jsxs)(f.Z,{preserve:!1,initialValues:u.values,onFinish:u.onFinish,children:[(0,e.jsx)(f.Z.Item,{name:"id",hidden:!0,children:(0,e.jsx)(C.Z,{})}),(0,e.jsx)(f.Z.Item,{label:"\u540D\u79F0",name:"name",rules:[{required:!0}],children:(0,e.jsx)(C.Z,{})}),(0,e.jsx)(f.Z.Item,{label:"\u7535\u8BDD",name:"phone",rules:[{required:!0}],children:(0,e.jsx)(C.Z,{})}),(0,e.jsx)(f.Z.Item,{label:"\u5DE5\u53F7",name:"number",rules:[{required:!0}],children:(0,e.jsx)(C.Z,{})}),(0,e.jsx)(f.Z.Item,{name:"shopId",label:"\u95E8\u5E97",rules:[{required:!0}],children:(0,e.jsx)(T.Z,{style:{width:"100%"},dropdownStyle:{maxHeight:400,overflow:"auto"},treeData:u.OrgData,placeholder:"\u95E8\u5E97",treeDefaultExpandAll:!0})}),(0,e.jsx)(f.Z.Item,{name:"status",label:"\u72B6\u6001",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u72B6\u6001"}],children:(0,e.jsx)(O.Z,{placeholder:"\u8BF7\u9009\u62E9\u72B6\u6001",children:(0,e.jsxs)(r,{children:[(0,e.jsx)(O.Z.Option,{value:0,children:"\u6B63\u5E38"}),(0,e.jsx)(O.Z.Option,{value:1,children:"\u505C\u7528"}),(0,e.jsx)(O.Z.Option,{value:2,children:"\u5220\u9664"})]})})}),(0,e.jsx)(f.Z.Item,{children:(0,e.jsx)(E.Z,{type:"primary",htmlType:"submit",children:"\u4FDD\u5B58"})})]})})},le=ue,A=t(48971);function ie(i){return G.apply(this,arguments)}function G(){return G=(0,y.Z)((0,n.Z)().mark(function i(u){return(0,n.Z)().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",(0,A.WY)("/kitchen/api/store-staff/store-staff-page",{method:"POST",data:u}));case 1:case"end":return r.stop()}},i)})),G.apply(this,arguments)}function de(i){return Y.apply(this,arguments)}function Y(){return Y=(0,y.Z)((0,n.Z)().mark(function i(u){return(0,n.Z)().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",(0,A.WY)("/kitchen/api/store-staff/store-staff",{method:"POST",data:u}));case 1:case"end":return r.stop()}},i)})),Y.apply(this,arguments)}function ce(i){return L.apply(this,arguments)}function L(){return L=(0,y.Z)((0,n.Z)().mark(function i(u){return(0,n.Z)().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",(0,A.WY)("/kitchen\u200B/api/store-staff/store-staff",{method:"put",data:u}));case 1:case"end":return r.stop()}},i)})),L.apply(this,arguments)}function oe(i){return K.apply(this,arguments)}function K(){return K=(0,y.Z)((0,n.Z)().mark(function i(u){return(0,n.Z)().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",(0,A.WY)("\u200B/kitchen/api/store-staff/del-store-staff",{method:"POST",data:u}));case 1:case"end":return r.stop()}},i)})),K.apply(this,arguments)}function fe(i){return V.apply(this,arguments)}function V(){return V=(0,y.Z)((0,n.Z)().mark(function i(u){return(0,n.Z)().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",(0,A.WY)("/kitchen\u200B//api/cashierplatformapplication/storestaffpwd",{method:"put",data:u}));case 1:case"end":return r.stop()}},i)})),V.apply(this,arguments)}var pe=t(3408),F="message",he=function(){var i=(0,y.Z)((0,n.Z)().mark(function u(m){return(0,n.Z)().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.prev=0,d.default.loading("\u6B63\u5728\u6DFB\u52A0",F),s.next=4,de(JSON.stringify(m)).then(function(Z){return d.default.destroy(F),Z.data?(d.default.success("\u6DFB\u52A0\u6210\u529F"),!0):(d.default.error("\u6DFB\u52A0\u5931\u8D25"),!1)});case 4:s.next=10;break;case 6:return s.prev=6,s.t0=s.catch(0),d.default.error("\u6DFB\u52A0\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),s.abrupt("return",!1);case 10:case"end":return s.stop()}},u,null,[[0,6]])}));return function(m){return i.apply(this,arguments)}}(),me=function(){var i=(0,y.Z)((0,n.Z)().mark(function u(m){return(0,n.Z)().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.prev=0,d.default.loading("\u6B63\u5728\u4FEE\u6539",F),d.default.destroy(F),s.next=5,ce(JSON.stringify(m)).then(function(Z){return d.default.destroy(F),Z.data?(d.default.success("\u4FEE\u6539\u6210\u529F"),!0):(d.default.error("\u4FEE\u6539\u5931\u8D25"),!1)});case 5:s.next=11;break;case 7:return s.prev=7,s.t0=s.catch(0),d.default.error("\u4FEE\u6539\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),s.abrupt("return",!1);case 11:case"end":return s.stop()}},u,null,[[0,7]])}));return function(m){return i.apply(this,arguments)}}(),ve=function(){var i=(0,y.Z)((0,n.Z)().mark(function u(m){var r;return(0,n.Z)().wrap(function(Z){for(;;)switch(Z.prev=Z.next){case 0:return Z.prev=0,d.default.loading("\u6B63\u5728\u5220\u9664"),r=[],m.forEach(function(D){r.push(D.id)}),Z.next=6,oe(r).then(function(D){return D.data?(d.default.success("\u5220\u9664\u6210\u529F"),!0):(d.default.error("\u5220\u9664\u5931\u8D25"),!1)});case 6:Z.next=12;break;case 8:return Z.prev=8,Z.t0=Z.catch(0),d.default.error("\u5220\u9664\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),Z.abrupt("return",!1);case 12:case"end":return Z.stop()}},u,null,[[0,8]])}));return function(m){return i.apply(this,arguments)}}(),Ze=function(){var u=(0,b.useState)(!1),m=(0,I.Z)(u,2),r=m[0],s=m[1],Z=(0,b.useState)(!1),D=(0,I.Z)(Z,2),ye=D[0],J=D[1],je=(0,b.useState)(!1),q=(0,I.Z)(je,2),Pe=q[0],De=q[1],N=(0,b.useRef)(),we=(0,b.useState)(),_=(0,I.Z)(we,2),H=_[0],W=_[1],Se=(0,b.useState)([]),ee=(0,I.Z)(Se,2),k=ee[0],te=ee[1],Oe=(0,b.useState)([]),re=(0,I.Z)(Oe,2),Ce=re[0],be=re[1],xe=(0,b.useState)([]),ae=(0,I.Z)(xe,2),Ee=ae[0],Ie=ae[1];(0,b.useEffect)(function(){function j(){(0,pe.FM)().then(function(p){l(p.data);function l(o){for(var h in o)o[h].type==2||o[h].type==3?o[h].disabled=!1:o[h].disabled=!0,o[h].children&&l(o[h].children)}be(p.data);var v={};w(p.data);function w(o){for(var h in o)v[o[h].disabled]=!0,v[o[h].value]={text:o[h].title},o[h].children&&w(o[h].children)}Ie(v)})}j()},[]);var Te=[{title:"\u4E3B\u952E",dataIndex:"id",hideInSearch:!0,hideInTable:!0,tip:"\u89C4\u5219\u540D\u79F0\u662F\u552F\u4E00\u7684 key"},{title:"\u540D\u79F0",dataIndex:"name",valueType:"textarea",search:!1},{title:"\u7535\u8BDD",dataIndex:"phone",valueType:"textarea",search:!1},{title:"\u804C\u5DE5\u7F16\u53F7",dataIndex:"number",valueType:"textarea",search:!1},{title:"\u5F52\u5C5E\u95E8\u5E97",dataIndex:"shopId",search:!1,valueEnum:Ee},{title:"\u72B6\u6001",dataIndex:"status",hideInForm:!0,search:!1,valueEnum:{0:{text:"\u6B63\u5E38",status:"Processing"},1:{text:"\u505C\u7528",status:"Success"},2:{text:"\u5220\u9664",status:"Error"}}},{title:"\u521B\u5EFA\u65F6\u95F4",dataIndex:"createAt",hideInForm:!0,search:!1},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(p,l){return[(0,e.jsx)("a",{onClick:function(){s(!0),W(l)},children:" \u66F4\u65B0"},"config"),(0,e.jsx)("a",{onClick:function(){J(!0),l.pwd="",W(l)},children:" \u4FEE\u6539\u5BC6\u7801"},"config")]}}];return(0,e.jsxs)(R.ZP,{children:[(0,e.jsx)($.ZP,{headerTitle:"\u5E97\u94FA\u7C7B\u578B",actionRef:N,rowKey:"id",search:{labelWidth:120},toolBarRender:function(){return[(0,e.jsxs)(E.Z,{type:"primary",onClick:function(){s(!0)},children:[(0,e.jsx)(B.Z,{})," \u65B0\u5EFA"]},"primary")]},request:function(){var j=(0,y.Z)((0,n.Z)().mark(function p(l){var v,w;return(0,n.Z)().wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return v=[],w=0,h.next=4,ie(l).then(function(ne){v=ne.data.data,w=ne.data.total});case 4:return h.abrupt("return",{data:v,success:!0,total:w});case 5:case"end":return h.stop()}},p)}));return function(p){return j.apply(this,arguments)}}(),columns:Te,rowSelection:{onChange:function(p,l){te(l)}}}),(k==null?void 0:k.length)>0&&(0,e.jsx)(U.Z,{extra:(0,e.jsxs)("div",{children:["\u5DF2\u9009\u62E9"," ",(0,e.jsx)("a",{style:{fontWeight:600},children:k.length})," ","\u9879 \xA0\xA0"]}),children:(0,e.jsx)(E.Z,{onClick:(0,y.Z)((0,n.Z)().mark(function j(){var p,l;return(0,n.Z)().wrap(function(w){for(;;)switch(w.prev=w.next){case 0:return w.next=2,ve(k);case 2:te([]),(p=N.current)===null||p===void 0||(l=p.reloadAndRest)===null||l===void 0||l.call(p);case 4:case"end":return w.stop()}},j)})),children:"\u5220\u9664"})}),(0,e.jsx)(le,{onFinish:function(){var j=(0,y.Z)((0,n.Z)().mark(function p(l){var v;return(0,n.Z)().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:v=!1,l.id?v=me(l):v=he(l),v&&(s(!1),W(void 0),N.current.reload());case 3:case"end":return o.stop()}},p)}));return function(p){return j.apply(this,arguments)}}(),onCancel:function(){s(!1),W(void 0)},createModalVisible:r,OrgData:Ce,values:H||{}}),(0,e.jsx)(x.Z,{title:"\u4FEE\u6539\u5BC6\u7801",open:ye,footer:null,onCancel:function(){J(!1)},children:(0,e.jsxs)(f.Z,{preserve:!1,onFinish:(0,y.Z)((0,n.Z)().mark(function j(){return(0,n.Z)().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.next=2,fe(JSON.stringify(H)).then(function(v){v.data?(d.default.success("\u4FEE\u6539\u6210\u529F"),J(!1)):d.default.error("\u4FEE\u6539\u5931\u8D25")});case 2:case"end":return l.stop()}},j)})),initialValues:H,children:[(0,e.jsx)(f.Z.Item,{name:"id",hidden:!0,children:(0,e.jsx)(C.Z,{})}),(0,e.jsx)(f.Z.Item,{label:"\u5BC6\u7801",name:"pwd",rules:[{required:!0}],children:(0,e.jsx)(C.Z,{})}),(0,e.jsx)(f.Z.Item,{children:(0,e.jsx)(E.Z,{type:"primary",htmlType:"submit",children:"\u4FDD\u5B58"})})]})})]})},ge=Ze},3408:function(se,M,t){"use strict";t.d(M,{lM:function(){return z},IH:function(){return Q},mm:function(){return X},eP:function(){return y},FM:function(){return U}});var S=t(39428),x=t(11849),P=t(3182),f=t(48971);function z(c,g){return C.apply(this,arguments)}function C(){return C=(0,P.Z)((0,S.Z)().mark(function c(g,T){return(0,S.Z)().wrap(function(O){for(;;)switch(O.prev=O.next){case 0:return O.abrupt("return",(0,f.WY)("/kitchen/api/sysOrg\u200B/page",{method:"GET",params:(0,x.Z)({},g)}));case 1:case"end":return O.stop()}},c)})),C.apply(this,arguments)}function Q(c){return E.apply(this,arguments)}function E(){return E=(0,P.Z)((0,S.Z)().mark(function c(g){return(0,S.Z)().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,f.WY)("/kitchen/api/sysOrg/add",{method:"POST",data:(0,x.Z)({},g)}));case 1:case"end":return a.stop()}},c)})),E.apply(this,arguments)}function I(c){return n.apply(this,arguments)}function n(){return n=_asyncToGenerator(_regeneratorRuntime().mark(function c(g){return _regeneratorRuntime().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",request("\u200B/kitchen/api\u200B/sysOrg\u200B/list",{method:"POST",data:_objectSpread({},g)}));case 1:case"end":return a.stop()}},c)})),n.apply(this,arguments)}function X(c){return d.apply(this,arguments)}function d(){return d=(0,P.Z)((0,S.Z)().mark(function c(g){return(0,S.Z)().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,f.WY)("\u200B/kitchen/api\u200B/sysOrg\u200B/delete",{method:"POST",data:(0,x.Z)({},g)}));case 1:case"end":return a.stop()}},c)})),d.apply(this,arguments)}function y(c){return B.apply(this,arguments)}function B(){return B=(0,P.Z)((0,S.Z)().mark(function c(g){return(0,S.Z)().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,f.WY)("\u200B/kitchen/api\u200B/sysOrg\u200B/edit",{method:"POST",data:(0,x.Z)({},g)}));case 1:case"end":return a.stop()}},c)})),B.apply(this,arguments)}function b(c){return R.apply(this,arguments)}function R(){return R=_asyncToGenerator(_regeneratorRuntime().mark(function c(g){return _regeneratorRuntime().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",request("/kitchen\u200B/api\u200B/sysOrg\u200B/detail",{method:"POST",data:_objectSpread({},g)}));case 1:case"end":return a.stop()}},c)})),R.apply(this,arguments)}function U(c){return $.apply(this,arguments)}function $(){return $=(0,P.Z)((0,S.Z)().mark(function c(g){return(0,S.Z)().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,f.WY)("\u200B/kitchen/api\u200B/sysOrg\u200B/tree",{data:(0,x.Z)({},g)}));case 1:case"end":return a.stop()}},c)})),$.apply(this,arguments)}}}]); diff --git a/dist/p__store__storeType.60c12a0e.async.js b/dist/p__store__storeType.4725c004.async.js similarity index 60% rename from dist/p__store__storeType.60c12a0e.async.js rename to dist/p__store__storeType.4725c004.async.js index b4a5013..edcca57 100644 --- a/dist/p__store__storeType.60c12a0e.async.js +++ b/dist/p__store__storeType.4725c004.async.js @@ -1 +1 @@ -(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[6956,1322],{44499:function(k,R,e){"use strict";e.r(R),e.d(R,{default:function(){return q}});var v=e(57663),S=e(71577),B=e(71194),F=e(50146),C=e(2824),l=e(39428),w=e(34792),a=e(48086),p=e(3182),b=e(49101),m=e(67294),o=e(78009),y=e(85224),x=e(16894),n=e(79361),N=e.n(n),ne=e(9715),E=e(55843),ae=e(47673),U=e(4107),ue=e(43358),T=e(34041),r=e(85893),z=function(u){var c=T.Z.Option,Z=T.Z.OptGroup;return(0,r.jsx)(F.Z,{title:u.values.id?"\u7F16\u8F91":"\u65B0\u5EFA",width:640,visible:u.createModalVisible,bodyStyle:{padding:"32px 40px 48px"},footer:null,onCancel:function(){u.onCancel()},destroyOnClose:!0,children:(0,r.jsxs)(E.Z,{layout:"vertical",preserve:!1,initialValues:u.values,onFinish:u.onFinish,children:[(0,r.jsx)(E.Z.Item,{name:"id",hidden:!0,children:(0,r.jsx)(U.Z,{})}),(0,r.jsx)(E.Z.Item,{label:"\u7C7B\u578B\u540D\u79F0",name:"storeType_Name",rules:[{required:!0}],children:(0,r.jsx)(U.Z,{})}),(0,r.jsx)(E.Z.Item,{name:"status",label:"\u72B6\u6001",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u72B6\u6001"}],children:(0,r.jsx)(T.Z,{placeholder:"\u8BF7\u9009\u62E9\u72B6\u6001",children:(0,r.jsxs)(Z,{children:[(0,r.jsx)(T.Z.Option,{value:0,children:"\u6B63\u5E38"}),(0,r.jsx)(T.Z.Option,{value:1,children:"\u505C\u7528"}),(0,r.jsx)(T.Z.Option,{value:2,children:"\u5220\u9664"})]})})}),(0,r.jsx)(E.Z.Item,{children:(0,r.jsx)(S.Z,{type:"primary",htmlType:"submit",children:"\u4FDD\u5B58"})})]})})},L=z,D=e(41877),O="message",J=function(){var j=(0,p.Z)((0,l.Z)().mark(function u(c){return(0,l.Z)().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,a.default.loading("\u6B63\u5728\u6DFB\u52A0",O),t.next=4,(0,D.U7)(JSON.stringify(c)).then(function(s){return a.default.destroy(O),s.data?(a.default.success("\u6DFB\u52A0\u6210\u529F"),!0):(a.default.error("\u6DFB\u52A0\u5931\u8D25"),!1)});case 4:t.next=10;break;case 6:return t.prev=6,t.t0=t.catch(0),a.default.error("\u6DFB\u52A0\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),t.abrupt("return",!1);case 10:case"end":return t.stop()}},u,null,[[0,6]])}));return function(c){return j.apply(this,arguments)}}(),H=function(){var j=(0,p.Z)((0,l.Z)().mark(function u(c){return(0,l.Z)().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,a.default.loading("\u6B63\u5728\u4FEE\u6539",O),a.default.destroy(O),t.next=5,(0,D.z7)(JSON.stringify(c)).then(function(s){return a.default.destroy(O),s.data?(a.default.success("\u4FEE\u6539\u6210\u529F"),!0):(a.default.success("\u4FEE\u6539\u5931\u8D25"),!1)});case 5:t.next=11;break;case 7:return t.prev=7,t.t0=t.catch(0),a.default.error("\u4FEE\u6539\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),t.abrupt("return",!1);case 11:case"end":return t.stop()}},u,null,[[0,7]])}));return function(c){return j.apply(this,arguments)}}(),Q=function(){var j=(0,p.Z)((0,l.Z)().mark(function u(c){var Z;return(0,l.Z)().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.prev=0,a.default.loading("\u6B63\u5728\u5220\u9664"),Z=[],c.forEach(function(A){Z.push(A.id)}),s.next=6,(0,D.Ym)(Z).then(function(A){return A.data?(a.default.success("\u5220\u9664\u6210\u529F"),!0):(a.default.success("\u5220\u9664\u5931\u8D25"),!1)});case 6:s.next=12;break;case 8:return s.prev=8,s.t0=s.catch(0),a.default.error("\u5220\u9664\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),s.abrupt("return",!1);case 12:case"end":return s.stop()}},u,null,[[0,8]])}));return function(c){return j.apply(this,arguments)}}(),X=function(){var u=(0,m.useState)(!1),c=(0,C.Z)(u,2),Z=c[0],t=c[1],s=(0,m.useState)(!1),A=(0,C.Z)(s,2),se=A[0],le=A[1],M=(0,m.useRef)(),_=(0,m.useState)(),G=(0,C.Z)(_,2),ee=G[0],W=G[1],te=(0,m.useState)([]),K=(0,C.Z)(te,2),P=K[0],Y=K[1],re=[{title:"\u4E3B\u952E",dataIndex:"id",hideInSearch:!0,hideInTable:!0,tip:"\u89C4\u5219\u540D\u79F0\u662F\u552F\u4E00\u7684 key"},{title:"\u7C7B\u578B\u540D\u79F0",dataIndex:"storeType_Name",valueType:"textarea"},{title:"\u72B6\u6001",dataIndex:"status",hideInForm:!0,valueEnum:{0:{text:"\u6B63\u5E38",status:"Processing"},1:{text:"\u505C\u7528",status:"Success"},2:{text:"\u5220\u9664",status:"Error"}}},{title:"\u521B\u5EFA\u65F6\u95F4",dataIndex:"createAt",hideInForm:!0,search:!1},{title:"\u4FEE\u6539\u65F6\u95F4",dataIndex:"updateAt",hideInForm:!0,search:!1},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(d,i){return[(0,r.jsx)("a",{onClick:function(){t(!0),W(i)},children:" \u66F4\u65B0"},"config"),(0,r.jsxs)("a",{onClick:function(){var h={title:"\u5E97\u94FA\u4E8C\u7EF4\u7801",content:(0,r.jsx)(N(),{id:"qrCode",value:"https://black-pa.com:5444/lead?StoreId=&StoreType=".concat(i.id),size:200,fgColor:"#000000",style:{margin:"auto"}})};F.Z.info(h)},children:[" ","\u5E97\u94FA\u4E8C\u7EF4\u7801"]},"primary")]}}];return(0,r.jsxs)(o.ZP,{children:[(0,r.jsx)(x.ZP,{headerTitle:"\u5E97\u94FA\u7C7B\u578B",actionRef:M,rowKey:"id",search:{labelWidth:120},toolBarRender:function(){return[(0,r.jsxs)(S.Z,{type:"primary",onClick:function(){t(!0)},children:[(0,r.jsx)(b.Z,{})," \u65B0\u5EFA"]},"primary")]},request:function(){var g=(0,p.Z)((0,l.Z)().mark(function d(i){var f,h;return(0,l.Z)().wrap(function(I){for(;;)switch(I.prev=I.next){case 0:return f=[],h=0,I.next=4,(0,D.ow)(i).then(function(V){f=V.data.data,h=V.data.total});case 4:return I.abrupt("return",{data:f,success:!0,total:h});case 5:case"end":return I.stop()}},d)}));return function(d){return g.apply(this,arguments)}}(),columns:re,rowSelection:{onChange:function(d,i){Y(i)}}}),(P==null?void 0:P.length)>0&&(0,r.jsx)(y.Z,{extra:(0,r.jsxs)("div",{children:["\u5DF2\u9009\u62E9"," ",(0,r.jsx)("a",{style:{fontWeight:600},children:P.length})," ","\u9879 \xA0\xA0"]}),children:(0,r.jsx)(S.Z,{onClick:(0,p.Z)((0,l.Z)().mark(function g(){var d,i;return(0,l.Z)().wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return h.next=2,Q(P);case 2:Y([]),(d=M.current)===null||d===void 0||(i=d.reloadAndRest)===null||i===void 0||i.call(d);case 4:case"end":return h.stop()}},g)})),children:"\u5220\u9664"})}),(0,r.jsx)(L,{onFinish:function(){var g=(0,p.Z)((0,l.Z)().mark(function d(i){var f;return(0,l.Z)().wrap(function($){for(;;)switch($.prev=$.next){case 0:f=!1,i.id?f=H(i):f=J(i),f&&(t(!1),W(void 0),M.current.reload());case 3:case"end":return $.stop()}},d)}));return function(d){return g.apply(this,arguments)}}(),onCancel:function(){t(!1),W(void 0)},createModalVisible:Z,values:ee||{}})]})},q=X},41877:function(k,R,e){"use strict";e.d(R,{ow:function(){return F},U7:function(){return l},z7:function(){return a},Ym:function(){return b}});var v=e(39428),S=e(3182),B=e(48971);function F(o){return C.apply(this,arguments)}function C(){return C=(0,S.Z)((0,v.Z)().mark(function o(y){return(0,v.Z)().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",(0,B.WY)("/kitchen/api/store/store-type-page",{method:"POST",data:y}));case 1:case"end":return n.stop()}},o)})),C.apply(this,arguments)}function l(o){return w.apply(this,arguments)}function w(){return w=(0,S.Z)((0,v.Z)().mark(function o(y){return(0,v.Z)().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",(0,B.WY)("/kitchen/api\u200B/store\u200B/store-type",{method:"POST",data:y}));case 1:case"end":return n.stop()}},o)})),w.apply(this,arguments)}function a(o){return p.apply(this,arguments)}function p(){return p=(0,S.Z)((0,v.Z)().mark(function o(y){return(0,v.Z)().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",(0,B.WY)("/kitchen\u200B/api\u200B/store\u200B/store-type",{method:"put",data:y}));case 1:case"end":return n.stop()}},o)})),p.apply(this,arguments)}function b(o){return m.apply(this,arguments)}function m(){return m=(0,S.Z)((0,v.Z)().mark(function o(y){return(0,v.Z)().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",(0,B.WY)("\u200B/kitchen/api/store/del-store-type",{method:"POST",data:y}));case 1:case"end":return n.stop()}},o)})),m.apply(this,arguments)}}}]); +(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[6956,1322],{44499:function(V,F,e){"use strict";e.r(F),e.d(F,{default:function(){return q}});var v=e(57663),C=e(71577),B=e(71194),P=e(50146),S=e(2824),l=e(39428),w=e(34792),a=e(48086),p=e(3182),b=e(49101),m=e(67294),o=e(78009),y=e(85224),x=e(16894),n=e(79361),N=e.n(n),ne=e(9715),E=e(55843),ae=e(47673),W=e(4107),se=e(43358),T=e(34041),r=e(85893),z=function(s){var c=T.Z.Option,Z=T.Z.OptGroup;return(0,r.jsx)(P.Z,{title:s.values.id?"\u7F16\u8F91":"\u65B0\u5EFA",width:640,visible:s.createModalVisible,bodyStyle:{padding:"32px 40px 48px"},footer:null,onCancel:function(){s.onCancel()},destroyOnClose:!0,children:(0,r.jsxs)(E.Z,{layout:"vertical",preserve:!1,initialValues:s.values,onFinish:s.onFinish,children:[(0,r.jsx)(E.Z.Item,{name:"id",hidden:!0,children:(0,r.jsx)(W.Z,{})}),(0,r.jsx)(E.Z.Item,{label:"\u7C7B\u578B\u540D\u79F0",name:"storeType_Name",rules:[{required:!0}],children:(0,r.jsx)(W.Z,{})}),(0,r.jsx)(E.Z.Item,{name:"status",label:"\u72B6\u6001",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u72B6\u6001"}],children:(0,r.jsx)(T.Z,{placeholder:"\u8BF7\u9009\u62E9\u72B6\u6001",children:(0,r.jsxs)(Z,{children:[(0,r.jsx)(T.Z.Option,{value:0,children:"\u6B63\u5E38"}),(0,r.jsx)(T.Z.Option,{value:1,children:"\u505C\u7528"}),(0,r.jsx)(T.Z.Option,{value:2,children:"\u5220\u9664"})]})})}),(0,r.jsx)(E.Z.Item,{children:(0,r.jsx)(C.Z,{type:"primary",htmlType:"submit",children:"\u4FDD\u5B58"})})]})})},L=z,D=e(41877),O="message",J=function(){var j=(0,p.Z)((0,l.Z)().mark(function s(c){return(0,l.Z)().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,a.default.loading("\u6B63\u5728\u6DFB\u52A0",O),t.next=4,(0,D.U7)(JSON.stringify(c)).then(function(u){return a.default.destroy(O),u.data?(a.default.success("\u6DFB\u52A0\u6210\u529F"),!0):(a.default.error("\u6DFB\u52A0\u5931\u8D25"),!1)});case 4:t.next=10;break;case 6:return t.prev=6,t.t0=t.catch(0),a.default.error("\u6DFB\u52A0\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),t.abrupt("return",!1);case 10:case"end":return t.stop()}},s,null,[[0,6]])}));return function(c){return j.apply(this,arguments)}}(),H=function(){var j=(0,p.Z)((0,l.Z)().mark(function s(c){return(0,l.Z)().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,a.default.loading("\u6B63\u5728\u4FEE\u6539",O),a.default.destroy(O),t.next=5,(0,D.z7)(JSON.stringify(c)).then(function(u){return a.default.destroy(O),u.data?(a.default.success("\u4FEE\u6539\u6210\u529F"),!0):(a.default.success("\u4FEE\u6539\u5931\u8D25"),!1)});case 5:t.next=11;break;case 7:return t.prev=7,t.t0=t.catch(0),a.default.error("\u4FEE\u6539\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),t.abrupt("return",!1);case 11:case"end":return t.stop()}},s,null,[[0,7]])}));return function(c){return j.apply(this,arguments)}}(),Q=function(){var j=(0,p.Z)((0,l.Z)().mark(function s(c){var Z;return(0,l.Z)().wrap(function(u){for(;;)switch(u.prev=u.next){case 0:return u.prev=0,a.default.loading("\u6B63\u5728\u5220\u9664"),Z=[],c.forEach(function(A){Z.push(A.id)}),u.next=6,(0,D.Ym)(Z).then(function(A){return A.data?(a.default.success("\u5220\u9664\u6210\u529F"),!0):(a.default.success("\u5220\u9664\u5931\u8D25"),!1)});case 6:u.next=12;break;case 8:return u.prev=8,u.t0=u.catch(0),a.default.error("\u5220\u9664\u5931\u8D25\u8BF7\u91CD\u8BD5\uFF01"),u.abrupt("return",!1);case 12:case"end":return u.stop()}},s,null,[[0,8]])}));return function(c){return j.apply(this,arguments)}}(),X=function(){var s=(0,m.useState)(!1),c=(0,S.Z)(s,2),Z=c[0],t=c[1],u=(0,m.useState)(!1),A=(0,S.Z)(u,2),ue=A[0],le=A[1],M=(0,m.useRef)(),_=(0,m.useState)(),G=(0,S.Z)(_,2),ee=G[0],U=G[1],te=(0,m.useState)([]),k=(0,S.Z)(te,2),I=k[0],K=k[1],re=[{title:"\u4E3B\u952E",dataIndex:"id",hideInSearch:!0,hideInTable:!0,tip:"\u89C4\u5219\u540D\u79F0\u662F\u552F\u4E00\u7684 key"},{title:"\u7C7B\u578B\u540D\u79F0",dataIndex:"storeType_Name",valueType:"textarea"},{title:"\u72B6\u6001",dataIndex:"status",hideInForm:!0,valueEnum:{0:{text:"\u6B63\u5E38",status:"Processing"},1:{text:"\u505C\u7528",status:"Success"},2:{text:"\u5220\u9664",status:"Error"}}},{title:"\u521B\u5EFA\u65F6\u95F4",dataIndex:"createAt",hideInForm:!0,search:!1},{title:"\u4FEE\u6539\u65F6\u95F4",dataIndex:"updateAt",hideInForm:!0,search:!1},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(d,i){return[(0,r.jsx)("a",{onClick:function(){t(!0),U(i)},children:" \u66F4\u65B0"},"config"),(0,r.jsxs)("a",{onClick:function(){var h={title:"\u5E97\u94FA\u4E8C\u7EF4\u7801",content:(0,r.jsx)(N(),{id:"qrCode",value:"https://black-pa.com:5444/lead?StoreId=&StoreType=".concat(i.id),size:200,fgColor:"#000000",style:{margin:"auto"}})};P.Z.info(h)},children:[" ","\u5E97\u94FA\u4E8C\u7EF4\u7801"]},"primary")]}}];return(0,r.jsxs)(o.ZP,{children:[(0,r.jsx)(x.ZP,{headerTitle:"\u5E97\u94FA\u7C7B\u578B",actionRef:M,rowKey:"id",search:{labelWidth:120},toolBarRender:function(){return[(0,r.jsxs)(C.Z,{type:"primary",onClick:function(){t(!0)},children:[(0,r.jsx)(b.Z,{})," \u65B0\u5EFA"]},"primary")]},request:function(){var g=(0,p.Z)((0,l.Z)().mark(function d(i){var f,h;return(0,l.Z)().wrap(function(R){for(;;)switch(R.prev=R.next){case 0:return f=[],h=0,R.next=4,(0,D.ow)(i).then(function(Y){f=Y.data.data,h=Y.data.total});case 4:return R.abrupt("return",{data:f,success:!0,total:h});case 5:case"end":return R.stop()}},d)}));return function(d){return g.apply(this,arguments)}}(),columns:re,rowSelection:{onChange:function(d,i){K(i)}}}),(I==null?void 0:I.length)>0&&(0,r.jsx)(y.Z,{extra:(0,r.jsxs)("div",{children:["\u5DF2\u9009\u62E9"," ",(0,r.jsx)("a",{style:{fontWeight:600},children:I.length})," ","\u9879 \xA0\xA0"]}),children:(0,r.jsx)(C.Z,{onClick:(0,p.Z)((0,l.Z)().mark(function g(){var d,i;return(0,l.Z)().wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return h.next=2,Q(I);case 2:K([]),(d=M.current)===null||d===void 0||(i=d.reloadAndRest)===null||i===void 0||i.call(d);case 4:case"end":return h.stop()}},g)})),children:"\u5220\u9664"})}),(0,r.jsx)(L,{onFinish:function(){var g=(0,p.Z)((0,l.Z)().mark(function d(i){var f;return(0,l.Z)().wrap(function($){for(;;)switch($.prev=$.next){case 0:f=!1,i.id?f=H(i):f=J(i),f&&(t(!1),U(void 0),M.current.reload());case 3:case"end":return $.stop()}},d)}));return function(d){return g.apply(this,arguments)}}(),onCancel:function(){t(!1),U(void 0)},createModalVisible:Z,values:ee||{}})]})},q=X},41877:function(V,F,e){"use strict";e.d(F,{ow:function(){return P},U7:function(){return l},z7:function(){return a},Ym:function(){return b}});var v=e(39428),C=e(3182),B=e(48971);function P(o){return S.apply(this,arguments)}function S(){return S=(0,C.Z)((0,v.Z)().mark(function o(y){return(0,v.Z)().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",(0,B.WY)("/kitchen/api/store/store-type-page",{method:"POST",data:y}));case 1:case"end":return n.stop()}},o)})),S.apply(this,arguments)}function l(o){return w.apply(this,arguments)}function w(){return w=(0,C.Z)((0,v.Z)().mark(function o(y){return(0,v.Z)().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",(0,B.WY)("/kitchen/api\u200B/store\u200B/store-type",{method:"POST",data:y}));case 1:case"end":return n.stop()}},o)})),w.apply(this,arguments)}function a(o){return p.apply(this,arguments)}function p(){return p=(0,C.Z)((0,v.Z)().mark(function o(y){return(0,v.Z)().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",(0,B.WY)("/kitchen\u200B/api\u200B/store\u200B/store-type",{method:"put",data:y}));case 1:case"end":return n.stop()}},o)})),p.apply(this,arguments)}function b(o){return m.apply(this,arguments)}function m(){return m=(0,C.Z)((0,v.Z)().mark(function o(y){return(0,v.Z)().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",(0,B.WY)("\u200B/kitchen/api/store/del-store-type",{method:"POST",data:y}));case 1:case"end":return n.stop()}},o)})),m.apply(this,arguments)}}}]); diff --git a/dist/p__sys__org.93ff6838.async.js b/dist/p__sys__org.93ff6838.async.js deleted file mode 100644 index b0cce3c..0000000 --- a/dist/p__sys__org.93ff6838.async.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[6442],{97742:function(ee){ee.exports={store_config_container:"store_config_container___2LSwE",choose_store_state:"choose_store_state___36VpX",add_row_content:"add_row_content___LoP14",add_row_btn:"add_row_btn___3o2fm"}},83341:function(ee,V,t){"use strict";t.d(V,{O:function(){return g}});function g(F){F=F||32;for(var M="ABCDEFGHJKMNPQRSTWXYZabcdefhijkmnprstwxyz",S=M.length,H="012345678",R=H.length,k="",O=0;O=2&&(x=(0,e.jsx)("a",{onClick:function(){Fe.m8.push({pathname:"/sys/storemanage",query:{isAdd:!1,values:i.id}})},children:"\u5E97\u94FA\u7BA1\u7406"},"primary2")),[(0,e.jsxs)("a",{onClick:function(){w(i),u(!0)},children:[" ","\u4FEE\u6539"]},"primary3"),x]}}];return(0,p.useEffect)(function(){function v(){(0,K.FM)().then(function(h){ve(h.data)})}v()},[]),(0,e.jsxs)(se.ZP,{children:[(0,e.jsx)(l.ZP,{headerTitle:"\u7EC4\u7EC7\u5217\u8868",actionRef:Y,rowKey:"id",search:{labelWidth:120},tableRender:function(h,i){return(0,e.jsxs)("div",{style:{display:"flex",width:"100%"},children:[(0,e.jsx)(R.Z,{title:"\u673A\u6784\u90E8\u95E8",children:(0,e.jsx)(O.Z,{defaultExpandAll:!0,onSelect:function(E){return Re(E[0])},treeData:me})}),(0,e.jsx)("div",{style:{flex:1},children:i})]})},toolBarRender:function(){return[(0,e.jsxs)(S.Z,{type:"primary",onClick:function(){var i={code:(0,Ae.O)(4)};w(i),u(!0)},children:[(0,e.jsx)(pe.Z,{})," \u65B0\u5EFA"]},"primary1")]},params:{Pid:Pe},request:function(){var v=(0,A.Z)((0,c.Z)().mark(function h(i){var x,E;return(0,c.Z)().wrap(function(G){for(;;)switch(G.prev=G.next){case 0:return x=[],E=0,G.next=4,(0,K.lM)(i).then(function(ge){x=ge.data.data,E=ge.data.total});case 4:return G.abrupt("return",{data:x,success:!0,total:E});case 5:case"end":return G.stop()}},h)}));return function(h){return v.apply(this,arguments)}}(),columns:ye}),(P==null?void 0:P.length)>0&&(0,e.jsxs)(N.Z,{extra:(0,e.jsxs)("div",{children:["\u5DF2\u9009\u62E9"," ",(0,e.jsx)("a",{style:{fontWeight:600},children:P.length})," ","\u9879 \xA0\xA0",(0,e.jsxs)("span",{children:["\u670D\u52A1\u8C03\u7528\u6B21\u6570\u603B\u8BA1 ",P.reduce(function(v,h){return v+h.callNo},0)," \u4E07"]})]}),children:[(0,e.jsx)(S.Z,{onClick:(0,A.Z)((0,c.Z)().mark(function v(){var h,i;return(0,c.Z)().wrap(function(E){for(;;)switch(E.prev=E.next){case 0:return E.next=2,De(P);case 2:Oe([]),(h=Y.current)===null||h===void 0||(i=h.reloadAndRest)===null||i===void 0||i.call(h);case 4:case"end":return E.stop()}},v)})),children:"\u6279\u91CF\u5220\u9664"}),(0,e.jsx)(S.Z,{type:"primary",children:"\u6279\u91CF\u5BA1\u6279"})]}),d&&(0,e.jsx)(Ee,{treeDatas:[{key:"0",parentId:"0",title:"\u9876\u7EA7",value:"0",children:me}],onFinish:function(){var v=(0,A.Z)((0,c.Z)().mark(function h(i){var x;return(0,c.Z)().wrap(function(D){for(;;)switch(D.prev=D.next){case 0:if(x=!1,!i.id){D.next=7;break}return D.next=4,be(i);case 4:x=D.sent,D.next=10;break;case 7:return D.next=9,Be(i);case 9:x=D.sent;case 10:x&&(u(!1),Y.current&&((0,K.FM)().then(function(G){ve(G.data)}),Y.current.reload()));case 11:case"end":return D.stop()}},h)}));return function(h){return v.apply(this,arguments)}}(),onCancel:function(){u(!1),w({})},modalVisible:d,values:q||{}}),(0,e.jsx)(F.Z,{width:600,visible:ce,onClose:function(){b(void 0),he(!1)},closable:!1,children:(s==null?void 0:s.name)&&(0,e.jsx)(f.ZP,{column:2,title:s==null?void 0:s.name,request:(0,A.Z)((0,c.Z)().mark(function v(){return(0,c.Z)().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return i.abrupt("return",{data:s||{}});case 1:case"end":return i.stop()}},v)})),params:{id:s==null?void 0:s.name},columns:ye})})]})},we=Me},3408:function(ee,V,t){"use strict";t.d(V,{lM:function(){return H},IH:function(){return k},mm:function(){return te},eP:function(){return j},FM:function(){return se}});var g=t(39428),F=t(11849),M=t(3182),S=t(48971);function H(l,f){return R.apply(this,arguments)}function R(){return R=(0,M.Z)((0,g.Z)().mark(function l(f,L){return(0,g.Z)().wrap(function(z){for(;;)switch(z.prev=z.next){case 0:return z.abrupt("return",(0,S.WY)("/kitchen/api/sysOrg\u200B/page",{method:"GET",params:(0,F.Z)({},f)}));case 1:case"end":return z.stop()}},l)})),R.apply(this,arguments)}function k(l){return O.apply(this,arguments)}function O(){return O=(0,M.Z)((0,g.Z)().mark(function l(f){return(0,g.Z)().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,S.WY)("/kitchen/api/sysOrg/add",{method:"POST",data:(0,F.Z)({},f)}));case 1:case"end":return a.stop()}},l)})),O.apply(this,arguments)}function Z(l){return c.apply(this,arguments)}function c(){return c=_asyncToGenerator(_regeneratorRuntime().mark(function l(f){return _regeneratorRuntime().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",request("\u200B/kitchen/api\u200B/sysOrg\u200B/list",{method:"POST",data:_objectSpread({},f)}));case 1:case"end":return a.stop()}},l)})),c.apply(this,arguments)}function te(l){return re.apply(this,arguments)}function re(){return re=(0,M.Z)((0,g.Z)().mark(function l(f){return(0,g.Z)().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,S.WY)("\u200B/kitchen/api\u200B/sysOrg\u200B/delete",{method:"POST",data:(0,F.Z)({},f)}));case 1:case"end":return a.stop()}},l)})),re.apply(this,arguments)}function j(l){return A.apply(this,arguments)}function A(){return A=(0,M.Z)((0,g.Z)().mark(function l(f){return(0,g.Z)().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,S.WY)("\u200B/kitchen/api\u200B/sysOrg\u200B/edit",{method:"POST",data:(0,F.Z)({},f)}));case 1:case"end":return a.stop()}},l)})),A.apply(this,arguments)}function pe(l){return p.apply(this,arguments)}function p(){return p=_asyncToGenerator(_regeneratorRuntime().mark(function l(f){return _regeneratorRuntime().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",request("/kitchen\u200B/api\u200B/sysOrg\u200B/detail",{method:"POST",data:_objectSpread({},f)}));case 1:case"end":return a.stop()}},l)})),p.apply(this,arguments)}function se(l){return N.apply(this,arguments)}function N(){return N=(0,M.Z)((0,g.Z)().mark(function l(f){return(0,g.Z)().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,S.WY)("\u200B/kitchen/api\u200B/sysOrg\u200B/tree",{data:(0,F.Z)({},f)}));case 1:case"end":return a.stop()}},l)})),N.apply(this,arguments)}}}]); diff --git a/dist/p__sys__org.aef7ec07.async.js b/dist/p__sys__org.aef7ec07.async.js new file mode 100644 index 0000000..5a50581 --- /dev/null +++ b/dist/p__sys__org.aef7ec07.async.js @@ -0,0 +1 @@ +(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[6442],{97742:function(ee){ee.exports={store_config_container:"store_config_container___2LSwE",choose_store_state:"choose_store_state___36VpX",add_row_content:"add_row_content___LoP14",add_row_btn:"add_row_btn___3o2fm"}},83341:function(ee,k,t){"use strict";t.d(k,{O:function(){return g}});function g(F){F=F||32;for(var M="ABCDEFGHJKMNPQRSTWXYZabcdefhijkmnprstwxyz",S=M.length,H="012345678",R=H.length,U="",O=0;O=2&&(x=(0,e.jsx)("a",{onClick:function(){Fe.m8.push({pathname:"/sys/storemanage",query:{isAdd:!1,values:i.id}})},children:"\u5E97\u94FA\u7BA1\u7406"},"primary2")),[(0,e.jsxs)("a",{onClick:function(){w(i),u(!0)},children:[" ","\u4FEE\u6539"]},"primary3"),x]}}];return(0,p.useEffect)(function(){function v(){(0,V.FM)().then(function(h){ve(h.data)})}v()},[]),(0,e.jsxs)(se.ZP,{children:[(0,e.jsx)(l.ZP,{headerTitle:"\u7EC4\u7EC7\u5217\u8868",actionRef:Y,rowKey:"id",search:{labelWidth:120},tableRender:function(h,i){return(0,e.jsxs)("div",{style:{display:"flex",width:"100%"},children:[(0,e.jsx)(R.Z,{title:"\u673A\u6784\u90E8\u95E8",children:(0,e.jsx)(O.Z,{defaultExpandAll:!0,onSelect:function(E){return Re(E[0])},treeData:fe})}),(0,e.jsx)("div",{style:{flex:1},children:i})]})},toolBarRender:function(){return[(0,e.jsxs)(S.Z,{type:"primary",onClick:function(){var i={code:(0,Be.O)(4)};w(i),u(!0)},children:[(0,e.jsx)(pe.Z,{})," \u65B0\u5EFA"]},"primary1")]},params:{Pid:Pe},request:function(){var v=(0,B.Z)((0,c.Z)().mark(function h(i){var x,E;return(0,c.Z)().wrap(function(G){for(;;)switch(G.prev=G.next){case 0:return x=[],E=0,G.next=4,(0,V.lM)(i).then(function(ge){x=ge.data.data,E=ge.data.total});case 4:return G.abrupt("return",{data:x,success:!0,total:E});case 5:case"end":return G.stop()}},h)}));return function(h){return v.apply(this,arguments)}}(),columns:ye}),(P==null?void 0:P.length)>0&&(0,e.jsxs)(N.Z,{extra:(0,e.jsxs)("div",{children:["\u5DF2\u9009\u62E9"," ",(0,e.jsx)("a",{style:{fontWeight:600},children:P.length})," ","\u9879 \xA0\xA0",(0,e.jsxs)("span",{children:["\u670D\u52A1\u8C03\u7528\u6B21\u6570\u603B\u8BA1 ",P.reduce(function(v,h){return v+h.callNo},0)," \u4E07"]})]}),children:[(0,e.jsx)(S.Z,{onClick:(0,B.Z)((0,c.Z)().mark(function v(){var h,i;return(0,c.Z)().wrap(function(E){for(;;)switch(E.prev=E.next){case 0:return E.next=2,De(P);case 2:Oe([]),(h=Y.current)===null||h===void 0||(i=h.reloadAndRest)===null||i===void 0||i.call(h);case 4:case"end":return E.stop()}},v)})),children:"\u6279\u91CF\u5220\u9664"}),(0,e.jsx)(S.Z,{type:"primary",children:"\u6279\u91CF\u5BA1\u6279"})]}),d&&(0,e.jsx)(Ee,{treeDatas:[{key:"0",parentId:"0",title:"\u9876\u7EA7",value:"0",children:fe}],onFinish:function(){var v=(0,B.Z)((0,c.Z)().mark(function h(i){var x;return(0,c.Z)().wrap(function(D){for(;;)switch(D.prev=D.next){case 0:if(x=!1,!i.id){D.next=7;break}return D.next=4,be(i);case 4:x=D.sent,D.next=10;break;case 7:return D.next=9,Ae(i);case 9:x=D.sent;case 10:x&&(u(!1),Y.current&&((0,V.FM)().then(function(G){ve(G.data)}),Y.current.reload()));case 11:case"end":return D.stop()}},h)}));return function(h){return v.apply(this,arguments)}}(),onCancel:function(){u(!1),w({})},modalVisible:d,values:q||{}}),(0,e.jsx)(F.Z,{width:600,visible:ce,onClose:function(){b(void 0),he(!1)},closable:!1,children:(s==null?void 0:s.name)&&(0,e.jsx)(m.ZP,{column:2,title:s==null?void 0:s.name,request:(0,B.Z)((0,c.Z)().mark(function v(){return(0,c.Z)().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return i.abrupt("return",{data:s||{}});case 1:case"end":return i.stop()}},v)})),params:{id:s==null?void 0:s.name},columns:ye})})]})},we=Me},3408:function(ee,k,t){"use strict";t.d(k,{lM:function(){return H},IH:function(){return U},mm:function(){return te},eP:function(){return j},FM:function(){return se}});var g=t(39428),F=t(11849),M=t(3182),S=t(48971);function H(l,m){return R.apply(this,arguments)}function R(){return R=(0,M.Z)((0,g.Z)().mark(function l(m,L){return(0,g.Z)().wrap(function(z){for(;;)switch(z.prev=z.next){case 0:return z.abrupt("return",(0,S.WY)("/kitchen/api/sysOrg\u200B/page",{method:"GET",params:(0,F.Z)({},m)}));case 1:case"end":return z.stop()}},l)})),R.apply(this,arguments)}function U(l){return O.apply(this,arguments)}function O(){return O=(0,M.Z)((0,g.Z)().mark(function l(m){return(0,g.Z)().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,S.WY)("/kitchen/api/sysOrg/add",{method:"POST",data:(0,F.Z)({},m)}));case 1:case"end":return a.stop()}},l)})),O.apply(this,arguments)}function Z(l){return c.apply(this,arguments)}function c(){return c=_asyncToGenerator(_regeneratorRuntime().mark(function l(m){return _regeneratorRuntime().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",request("\u200B/kitchen/api\u200B/sysOrg\u200B/list",{method:"POST",data:_objectSpread({},m)}));case 1:case"end":return a.stop()}},l)})),c.apply(this,arguments)}function te(l){return re.apply(this,arguments)}function re(){return re=(0,M.Z)((0,g.Z)().mark(function l(m){return(0,g.Z)().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,S.WY)("\u200B/kitchen/api\u200B/sysOrg\u200B/delete",{method:"POST",data:(0,F.Z)({},m)}));case 1:case"end":return a.stop()}},l)})),re.apply(this,arguments)}function j(l){return B.apply(this,arguments)}function B(){return B=(0,M.Z)((0,g.Z)().mark(function l(m){return(0,g.Z)().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,S.WY)("\u200B/kitchen/api\u200B/sysOrg\u200B/edit",{method:"POST",data:(0,F.Z)({},m)}));case 1:case"end":return a.stop()}},l)})),B.apply(this,arguments)}function pe(l){return p.apply(this,arguments)}function p(){return p=_asyncToGenerator(_regeneratorRuntime().mark(function l(m){return _regeneratorRuntime().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",request("/kitchen\u200B/api\u200B/sysOrg\u200B/detail",{method:"POST",data:_objectSpread({},m)}));case 1:case"end":return a.stop()}},l)})),p.apply(this,arguments)}function se(l){return N.apply(this,arguments)}function N(){return N=(0,M.Z)((0,g.Z)().mark(function l(m){return(0,g.Z)().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",(0,S.WY)("\u200B/kitchen/api\u200B/sysOrg\u200B/tree",{data:(0,F.Z)({},m)}));case 1:case"end":return a.stop()}},l)})),N.apply(this,arguments)}}}]); diff --git a/dist/p__sys__storemanage.046969cf.async.js b/dist/p__sys__storemanage.046969cf.async.js deleted file mode 100644 index 031d3cb..0000000 --- a/dist/p__sys__storemanage.046969cf.async.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[4978,1322,9464,1981,2869,7013,9719,2383],{3408:function(N,I,t){"use strict";t.d(I,{lM:function(){return k},IH:function(){return A},mm:function(){return W},eP:function(){return j},FM:function(){return L}});var h=t(39428),D=t(11849),i=t(3182),f=t(48971);function k(a,u){return E.apply(this,arguments)}function E(){return E=(0,i.Z)((0,h.Z)().mark(function a(u,P){return(0,h.Z)().wrap(function(w){for(;;)switch(w.prev=w.next){case 0:return w.abrupt("return",(0,f.WY)("/kitchen/api/sysOrg\u200B/page",{method:"GET",params:(0,D.Z)({},u)}));case 1:case"end":return w.stop()}},a)})),E.apply(this,arguments)}function A(a){return v.apply(this,arguments)}function v(){return v=(0,i.Z)((0,h.Z)().mark(function a(u){return(0,h.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,f.WY)("/kitchen/api/sysOrg/add",{method:"POST",data:(0,D.Z)({},u)}));case 1:case"end":return e.stop()}},a)})),v.apply(this,arguments)}function Q(a){return _.apply(this,arguments)}function _(){return _=_asyncToGenerator(_regeneratorRuntime().mark(function a(u){return _regeneratorRuntime().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",request("\u200B/kitchen/api\u200B/sysOrg\u200B/list",{method:"POST",data:_objectSpread({},u)}));case 1:case"end":return e.stop()}},a)})),_.apply(this,arguments)}function W(a){return p.apply(this,arguments)}function p(){return p=(0,i.Z)((0,h.Z)().mark(function a(u){return(0,h.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,f.WY)("\u200B/kitchen/api\u200B/sysOrg\u200B/delete",{method:"POST",data:(0,D.Z)({},u)}));case 1:case"end":return e.stop()}},a)})),p.apply(this,arguments)}function j(a){return T.apply(this,arguments)}function T(){return T=(0,i.Z)((0,h.Z)().mark(function a(u){return(0,h.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,f.WY)("\u200B/kitchen/api\u200B/sysOrg\u200B/edit",{method:"POST",data:(0,D.Z)({},u)}));case 1:case"end":return e.stop()}},a)})),T.apply(this,arguments)}function B(a){return O.apply(this,arguments)}function O(){return O=_asyncToGenerator(_regeneratorRuntime().mark(function a(u){return _regeneratorRuntime().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",request("/kitchen\u200B/api\u200B/sysOrg\u200B/detail",{method:"POST",data:_objectSpread({},u)}));case 1:case"end":return e.stop()}},a)})),O.apply(this,arguments)}function L(a){return b.apply(this,arguments)}function b(){return b=(0,i.Z)((0,h.Z)().mark(function a(u){return(0,h.Z)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,f.WY)("\u200B/kitchen/api\u200B/sysOrg\u200B/tree",{data:(0,D.Z)({},u)}));case 1:case"end":return e.stop()}},a)})),b.apply(this,arguments)}},6025:function(N,I,t){"use strict";t.r(I),t.d(I,{default:function(){return J}});var h=t(58024),D=t(91894),i=t(39428),f=t(3182),k=t(34792),E=t(48086),A=t(11849),v=t(2824),Q=t(43358),_=t(34041),W=t(78009),p=t(67294),j=t(16894),T=t(48971);function B(o){return O.apply(this,arguments)}function O(){return O=(0,f.Z)((0,i.Z)().mark(function o(Z){return(0,i.Z)().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",(0,T.WY)("/kitchen/api/Device/GetDeviceInfoPage",{method:"POST",data:Z}));case 1:case"end":return r.stop()}},o)})),O.apply(this,arguments)}function L(o){return b.apply(this,arguments)}function b(){return b=(0,f.Z)((0,i.Z)().mark(function o(Z){return(0,i.Z)().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",(0,T.WY)("/kitchen/api/dict-data/dic-list/".concat(Z),{method:"Get"}));case 1:case"end":return r.stop()}},o)})),b.apply(this,arguments)}function a(o){return u.apply(this,arguments)}function u(){return u=(0,f.Z)((0,i.Z)().mark(function o(Z){return(0,i.Z)().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",(0,T.WY)("\u200B/kitchen/api/Device/GetDeviceType",{method:"GET"}));case 1:case"end":return r.stop()}},o)})),u.apply(this,arguments)}function P(){return e.apply(this,arguments)}function e(){return e=_asyncToGenerator(_regeneratorRuntime().mark(function o(){return _regeneratorRuntime().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:return m.abrupt("return",request("/kitchen/api/Device/StoreDeviceTree",{method:"GET"}));case 1:case"end":return m.stop()}},o)})),e.apply(this,arguments)}function w(o){return R.apply(this,arguments)}function R(){return R=(0,f.Z)((0,i.Z)().mark(function o(Z){return(0,i.Z)().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",(0,T.WY)("/kitchen/api/Device/UpdateDeviceInfo",{method:"POST",data:Z}));case 1:case"end":return r.stop()}},o)})),R.apply(this,arguments)}var V=t(3408),G=t(85893),Se=_.Z.Option,De=_.Z.OptGroup,z=function(Z){console.log(1),console.log(Z);var m=(0,p.useRef)(),r=(0,p.useState)(),K=(0,v.Z)(r,2),X=K[0],q=K[1],ee=(0,p.useState)([]),$=(0,v.Z)(ee,2),Oe=$[0],te=$[1],ae=(0,p.useState)([]),M=(0,v.Z)(ae,2),be=M[0],re=M[1],ne=(0,p.useState)([]),x=(0,v.Z)(ne,2),ue=x[0],se=x[1],ie=(0,p.useState)([]),Y=(0,v.Z)(ie,2),ce=Y[0],le=Y[1],oe=(0,p.useState)([]),U=(0,v.Z)(oe,2),Pe=U[0],pe=U[1];(0,p.useEffect)(function(){var S=function(){a().then(function(s){var l={},d=[];s.data.forEach(function(n){d.push({text:n.name,id:n.id}),l[n.id]={text:n.name}}),te(d),q(l)})};function g(){(0,V.FM)().then(function(c){re(c.data);var s={};l(c.data);function l(d){for(var n in d)s[d[n].value]={text:d[n].title},d[n].children&&l(d[n].children)}se(s)})}g(),S();function y(){L("DeviceClientType").then(function(c){var s=c.data,l={};if(c.succeeded){var d=[];s.forEach(function(n){l[n.code]={text:n.code},d.push({code:n.code,value:n.code})}),le(l),pe(d)}})}y()},[]);var de=(0,p.useState)({operationKey:"basis",tabActiveKey:"basis"}),F=(0,v.Z)(de,2),H=F[0],he=F[1],fe=function(g){he((0,A.Z)((0,A.Z)({},H),{},{operationKey:g}))},ve=[{key:"basis",tab:"\u5E97\u94FA\u7BA1\u7406"}],me=[{title:"\u4E3B\u952E",dataIndex:"id",hideInSearch:!0,hideInTable:!0,tip:"\u89C4\u5219\u540D\u79F0\u662F\u552F\u4E00\u7684 key"},{title:"\u8BBE\u5907\u540D\u79F0",dataIndex:"deviceName",valueType:"textarea"},{title:"\u8BBE\u5907\u7C7B\u578B",dataIndex:"deviceTypeKey",valueEnum:ce},{title:"\u5F52\u5C5E\u95E8\u5E97",dataIndex:"orgId",search:!1,valueEnum:ue},{title:"\u8BBE\u5907\u5730\u5740",dataIndex:"deviceAddr",search:!1,valueType:"textarea"},{title:"\u8BBE\u5907\u5206\u7C7B",dataIndex:"deviceTypeId",valueEnum:X},{title:"\u5750\u6807",dataIndex:"deviceLoc",valueType:"textarea",search:!1},{title:"\u72B6\u6001",dataIndex:"status",valueEnum:{0:{text:"\u6B63\u5E38",status:"Processing"},1:{text:"\u505C\u7528",status:"Success"}}},{title:"\u64CD\u4F5C",dataIndex:"option",valueType:"option",render:function(g,y){return[(0,G.jsx)("a",{type:"primary",onClick:function(){y.status=y.status==0?1:0,w(y).then(function(s){s.data?m.current.reload():E.default.error("\u66F4\u65B0\u5931\u8D25")})},children:y.status==1?"\u542F\u7528":"\u7981\u7528"},"primary")]}}],ge={basis:(0,G.jsx)(D.Z,{title:"\u5E97\u94FA\u7BA1\u7406",style:{marginBottom:24},bordered:!1,children:(0,G.jsx)(j.ZP,{actionRef:m,rowKey:"id",search:!1,request:function(){var S=(0,f.Z)((0,i.Z)().mark(function g(y){var c,s,l;return(0,i.Z)().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return c=[],s=[],l=0,n.next=5,B(y).then(function(Ze){var Te=ye(window.location.search,"values");c=Ze.data.data;for(var C=0;CAnt Design Pro - + @@ -221,6 +221,6 @@ - + diff --git a/dist/refundment/index.html b/dist/refundment/index.html index 8e46604..18263c9 100644 --- a/dist/refundment/index.html +++ b/dist/refundment/index.html @@ -24,12 +24,12 @@ Ant Design Pro - + @@ -221,6 +221,6 @@ - + diff --git a/dist/refundment/orderAfterSales/index.html b/dist/refundment/orderAfterSales/index.html index 8e46604..18263c9 100644 --- a/dist/refundment/orderAfterSales/index.html +++ b/dist/refundment/orderAfterSales/index.html @@ -24,12 +24,12 @@ Ant Design Pro - + @@ -221,6 +221,6 @@ - + diff --git a/dist/split/FranchiseePlan/index.html b/dist/split/FranchiseePlan/index.html index 8e46604..18263c9 100644 --- a/dist/split/FranchiseePlan/index.html +++ b/dist/split/FranchiseePlan/index.html @@ -24,12 +24,12 @@ Ant Design Pro - + @@ -221,6 +221,6 @@ - + diff --git a/dist/split/account/index.html b/dist/split/account/index.html index 8e46604..18263c9 100644 --- a/dist/split/account/index.html +++ b/dist/split/account/index.html @@ -24,12 +24,12 @@ Ant Design Pro - + @@ -221,6 +221,6 @@ - + diff --git a/dist/split/index.html b/dist/split/index.html index 8e46604..18263c9 100644 --- a/dist/split/index.html +++ b/dist/split/index.html @@ -24,12 +24,12 @@ Ant Design Pro - + @@ -221,6 +221,6 @@ - + diff --git a/dist/split/plan/index.html b/dist/split/plan/index.html index 8e46604..18263c9 100644 --- a/dist/split/plan/index.html +++ b/dist/split/plan/index.html @@ -24,12 +24,12 @@ Ant Design Pro - + @@ -221,6 +221,6 @@ - + diff --git a/dist/split/splitOrders/index.html b/dist/split/splitOrders/index.html index 8e46604..18263c9 100644 --- a/dist/split/splitOrders/index.html +++ b/dist/split/splitOrders/index.html @@ -24,12 +24,12 @@ Ant Design Pro - + @@ -221,6 +221,6 @@ - + diff --git a/dist/stockManager/index.html b/dist/stockManager/index.html index 8e46604..18263c9 100644 --- a/dist/stockManager/index.html +++ b/dist/stockManager/index.html @@ -24,12 +24,12 @@ Ant Design Pro - + @@ -221,6 +221,6 @@ - + diff --git a/dist/stockManager/stockInventory/index.html b/dist/stockManager/stockInventory/index.html index 8e46604..18263c9 100644 --- a/dist/stockManager/stockInventory/index.html +++ b/dist/stockManager/stockInventory/index.html @@ -24,12 +24,12 @@ Ant Design Pro - + @@ -221,6 +221,6 @@ - + diff --git a/dist/stockManager/stockItem/index.html b/dist/stockManager/stockItem/index.html index 8e46604..18263c9 100644 --- a/dist/stockManager/stockItem/index.html +++ b/dist/stockManager/stockItem/index.html @@ -24,12 +24,12 @@ Ant Design Pro - + @@ -221,6 +221,6 @@ - + diff --git a/dist/stockManager/stockReports/index.html b/dist/stockManager/stockReports/index.html index 8e46604..18263c9 100644 --- a/dist/stockManager/stockReports/index.html +++ b/dist/stockManager/stockReports/index.html @@ -24,12 +24,12 @@ Ant Design Pro - + @@ -221,6 +221,6 @@ - + diff --git a/dist/store/index.html b/dist/store/index.html index 8e46604..18263c9 100644 --- a/dist/store/index.html +++ b/dist/store/index.html @@ -24,12 +24,12 @@ Ant Design Pro - + @@ -221,6 +221,6 @@ - + diff --git a/dist/store/printer/Printer/index.html b/dist/store/printer/Printer/index.html index 8e46604..18263c9 100644 --- a/dist/store/printer/Printer/index.html +++ b/dist/store/printer/Printer/index.html @@ -24,12 +24,12 @@ Ant Design Pro - + @@ -221,6 +221,6 @@ - + diff --git a/dist/store/printer/printerTemplate/index.html b/dist/store/printer/printerTemplate/index.html index 8e46604..18263c9 100644 --- a/dist/store/printer/printerTemplate/index.html +++ b/dist/store/printer/printerTemplate/index.html @@ -24,12 +24,12 @@ Ant Design Pro - + @@ -221,6 +221,6 @@ - + diff --git a/dist/store/storeAddGoodsInfo/index.html b/dist/store/storeAddGoodsInfo/index.html index 8e46604..18263c9 100644 --- a/dist/store/storeAddGoodsInfo/index.html +++ b/dist/store/storeAddGoodsInfo/index.html @@ -24,12 +24,12 @@ Ant Design Pro - + @@ -221,6 +221,6 @@ - + diff --git a/dist/store/storeAdvertisement/index.html b/dist/store/storeAdvertisement/index.html index 8e46604..18263c9 100644 --- a/dist/store/storeAdvertisement/index.html +++ b/dist/store/storeAdvertisement/index.html @@ -24,12 +24,12 @@ Ant Design Pro - + @@ -221,6 +221,6 @@ - + diff --git a/dist/store/storeDesktopNumber/index.html b/dist/store/storeDesktopNumber/index.html index 8e46604..18263c9 100644 --- a/dist/store/storeDesktopNumber/index.html +++ b/dist/store/storeDesktopNumber/index.html @@ -24,12 +24,12 @@ Ant Design Pro - + @@ -221,6 +221,6 @@ - + diff --git a/dist/store/storeGoodsInfo/index.html b/dist/store/storeGoodsInfo/index.html index 8e46604..18263c9 100644 --- a/dist/store/storeGoodsInfo/index.html +++ b/dist/store/storeGoodsInfo/index.html @@ -24,12 +24,12 @@ Ant Design Pro - + @@ -221,6 +221,6 @@ - + diff --git a/dist/store/storeInfo/index.html b/dist/store/storeInfo/index.html index 8e46604..18263c9 100644 --- a/dist/store/storeInfo/index.html +++ b/dist/store/storeInfo/index.html @@ -24,12 +24,12 @@ Ant Design Pro - + @@ -221,6 +221,6 @@ - + diff --git a/dist/store/storeLevel/index.html b/dist/store/storeLevel/index.html index 8e46604..18263c9 100644 --- a/dist/store/storeLevel/index.html +++ b/dist/store/storeLevel/index.html @@ -24,12 +24,12 @@ Ant Design Pro - + @@ -221,6 +221,6 @@ - + diff --git a/dist/store/storeStaff/index.html b/dist/store/storeStaff/index.html index 8e46604..18263c9 100644 --- a/dist/store/storeStaff/index.html +++ b/dist/store/storeStaff/index.html @@ -24,12 +24,12 @@ Ant Design Pro - + @@ -221,6 +221,6 @@ - + diff --git a/dist/store/storeType/index.html b/dist/store/storeType/index.html index 8e46604..18263c9 100644 --- a/dist/store/storeType/index.html +++ b/dist/store/storeType/index.html @@ -24,12 +24,12 @@ Ant Design Pro - + @@ -221,6 +221,6 @@ - + diff --git a/dist/sys/company/index.html b/dist/sys/company/index.html index 8e46604..18263c9 100644 --- a/dist/sys/company/index.html +++ b/dist/sys/company/index.html @@ -24,12 +24,12 @@ Ant Design Pro - + @@ -221,6 +221,6 @@ - + diff --git a/dist/sys/companyApply/index.html b/dist/sys/companyApply/index.html index 8e46604..18263c9 100644 --- a/dist/sys/companyApply/index.html +++ b/dist/sys/companyApply/index.html @@ -24,12 +24,12 @@ Ant Design Pro - + @@ -221,6 +221,6 @@ - + diff --git a/dist/sys/deviceTypeConfig/index.html b/dist/sys/deviceTypeConfig/index.html index 8e46604..18263c9 100644 --- a/dist/sys/deviceTypeConfig/index.html +++ b/dist/sys/deviceTypeConfig/index.html @@ -24,12 +24,12 @@ Ant Design Pro - + @@ -221,6 +221,6 @@ - + diff --git a/dist/sys/dictionary/dictdata/index.html b/dist/sys/dictionary/dictdata/index.html index 8e46604..18263c9 100644 --- a/dist/sys/dictionary/dictdata/index.html +++ b/dist/sys/dictionary/dictdata/index.html @@ -24,12 +24,12 @@ Ant Design Pro - + @@ -221,6 +221,6 @@ - + diff --git a/dist/sys/dictionary/dicttype/index.html b/dist/sys/dictionary/dicttype/index.html index 8e46604..18263c9 100644 --- a/dist/sys/dictionary/dicttype/index.html +++ b/dist/sys/dictionary/dicttype/index.html @@ -24,12 +24,12 @@ Ant Design Pro - + @@ -221,6 +221,6 @@ - + diff --git a/dist/sys/index.html b/dist/sys/index.html index 8e46604..18263c9 100644 --- a/dist/sys/index.html +++ b/dist/sys/index.html @@ -24,12 +24,12 @@ Ant Design Pro - + @@ -221,6 +221,6 @@ - + diff --git a/dist/sys/log/index.html b/dist/sys/log/index.html index 8e46604..18263c9 100644 --- a/dist/sys/log/index.html +++ b/dist/sys/log/index.html @@ -24,12 +24,12 @@ Ant Design Pro - + @@ -221,6 +221,6 @@ - + diff --git a/dist/sys/menus/index.html b/dist/sys/menus/index.html index 8e46604..18263c9 100644 --- a/dist/sys/menus/index.html +++ b/dist/sys/menus/index.html @@ -24,12 +24,12 @@ Ant Design Pro - + @@ -221,6 +221,6 @@ - + diff --git a/dist/sys/org/index.html b/dist/sys/org/index.html index 8e46604..18263c9 100644 --- a/dist/sys/org/index.html +++ b/dist/sys/org/index.html @@ -24,12 +24,12 @@ Ant Design Pro - + @@ -221,6 +221,6 @@ - + diff --git a/dist/sys/paytemplate/index.html b/dist/sys/paytemplate/index.html index 8e46604..18263c9 100644 --- a/dist/sys/paytemplate/index.html +++ b/dist/sys/paytemplate/index.html @@ -24,12 +24,12 @@ Ant Design Pro - + @@ -221,6 +221,6 @@ - + diff --git a/dist/sys/roles/index.html b/dist/sys/roles/index.html index 8e46604..18263c9 100644 --- a/dist/sys/roles/index.html +++ b/dist/sys/roles/index.html @@ -24,12 +24,12 @@ Ant Design Pro - + @@ -221,6 +221,6 @@ - + diff --git a/dist/sys/storemanage/index.html b/dist/sys/storemanage/index.html index 8e46604..18263c9 100644 --- a/dist/sys/storemanage/index.html +++ b/dist/sys/storemanage/index.html @@ -24,12 +24,12 @@ Ant Design Pro - + @@ -221,6 +221,6 @@ - + diff --git a/dist/sys/sysSettings/index.html b/dist/sys/sysSettings/index.html index 8e46604..18263c9 100644 --- a/dist/sys/sysSettings/index.html +++ b/dist/sys/sysSettings/index.html @@ -24,12 +24,12 @@ Ant Design Pro - + @@ -221,6 +221,6 @@ - + diff --git a/dist/sys/user/index.html b/dist/sys/user/index.html index 8e46604..18263c9 100644 --- a/dist/sys/user/index.html +++ b/dist/sys/user/index.html @@ -24,12 +24,12 @@ Ant Design Pro - + @@ -221,6 +221,6 @@ - + diff --git a/dist/t__plugin-layout__Layout.5d0197aa.async.js b/dist/t__plugin-layout__Layout.6a3c99f6.async.js similarity index 51% rename from dist/t__plugin-layout__Layout.5d0197aa.async.js rename to dist/t__plugin-layout__Layout.6a3c99f6.async.js index 5705cf7..55154fb 100644 --- a/dist/t__plugin-layout__Layout.5d0197aa.async.js +++ b/dist/t__plugin-layout__Layout.6a3c99f6.async.js @@ -1,8 +1,8 @@ -(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[6301],{64335:function(me,ae,c){"use strict";var h=c(67294),C=(0,h.createContext)({});ae.Z=C},16254:function(me){me.exports=Ce,me.exports.parse=C,me.exports.compile=Z,me.exports.tokensToFunction=y,me.exports.tokensToRegExp=xe;var ae="/",c="./",h=new RegExp(["(\\\\.)","(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?"].join("|"),"g");function C(S,W){for(var T=[],B=0,m=0,l="",ye=W&&W.delimiter||ae,ce=W&&W.delimiters||c,D=!1,z;(z=h.exec(S))!==null;){var de=z[0],fe=z[1],A=z.index;if(l+=S.slice(m,A),m=A+de.length,fe){l+=fe[1],D=!0;continue}var U="",ge=S[m],Ee=z[2],se=z[3],Ze=z[4],he=z[5];if(!D&&l.length){var ve=l.length-1;ce.indexOf(l[ve])>-1&&(U=l[ve],l=l.slice(0,ve))}l&&(T.push(l),l="",D=!1);var Se=U!==""&&ge!==void 0&&ge!==U,we=he==="+"||he==="*",G=he==="?"||he==="*",x=U||ye,N=se||Ze;T.push({name:Ee||B++,prefix:U,delimiter:x,optional:G,repeat:we,partial:Se,pattern:N?M(N):"[^"+P(x)+"]+?"})}return(l||m-1;else{var U=A.repeat?"(?:"+A.pattern+")(?:"+P(A.delimiter)+"(?:"+A.pattern+"))*":A.pattern;W&&W.push(A),A.optional?A.partial?z+=P(A.prefix)+"("+U+")?":z+="(?:"+P(A.prefix)+"("+U+"))?":z+=P(A.prefix)+"("+U+")"}}return l?(B||(z+="(?:"+ye+")?"),z+=D==="$"?"$":"(?="+D+")"):(B||(z+="(?:"+ye+"(?="+D+"))?"),de||(z+="(?="+ye+"|"+D+")")),new RegExp(z,K(T))}function Ce(S,W,T){return S instanceof RegExp?k(S,W):Array.isArray(S)?ue(S,W,T):F(S,W,T)}},80430:function(me){"use strict";var ae=!1,c=function(){};if(ae){var h=function(Z,y){var P=arguments.length;y=new Array(P>1?P-1:0);for(var M=1;M2?P-2:0);for(var M=2;M(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var B="rc-util-locker-".concat(Date.now()),m=0;function l(A){var U=!!A,ge=C.useState(function(){return m+=1,"".concat(B,"_").concat(m)}),Ee=(0,h.Z)(ge,1),se=Ee[0];(0,F.Z)(function(){if(U){var Ze=(0,W.Z)(),he=T();(0,S.hq)(` +(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[6301],{64335:function(ye,le,c){"use strict";var p=c(67294),C=(0,p.createContext)({});le.Z=C},38475:function(ye,le,c){"use strict";c.d(le,{Z:function(){return fe}});var p=c(28481),C=c(67294),Z=c(73935),b=c(98924),T=c(80334),E=c(42550),Q=C.createContext(null),re=Q,se=c(85061),A=c(8410),xe=[];function Ce(F,K){var me=C.useState(function(){if(!(0,b.Z)())return null;var L=document.createElement("div");return L}),Ee=(0,p.Z)(me,1),ue=Ee[0],Ze=C.useRef(!1),ge=C.useContext(re),ve=C.useState(xe),Se=(0,p.Z)(ve,2),Oe=Se[0],U=Se[1],y=ge||(Ze.current?void 0:function(L){U(function(J){var G=[L].concat((0,se.Z)(J));return G})});function P(){ue.parentElement||document.body.appendChild(ue),Ze.current=!0}function H(){var L;(L=ue.parentElement)===null||L===void 0||L.removeChild(ue),Ze.current=!1}return(0,A.Z)(function(){return F?ge?ge(P):P():H(),H},[F]),(0,A.Z)(function(){Oe.length&&(Oe.forEach(function(L){return L()}),U(xe))},[Oe]),[ue,y]}var S=c(44958),W=c(74204);function w(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var B="rc-util-locker-".concat(Date.now()),m=0;function l(F){var K=!!F,me=C.useState(function(){return m+=1,"".concat(B,"_").concat(m)}),Ee=(0,p.Z)(me,1),ue=Ee[0];(0,A.Z)(function(){if(K){var Ze=(0,W.Z)(),ge=w();(0,S.hq)(` html body { overflow-y: hidden; - `.concat(he?"width: calc(100% - ".concat(Ze,"px);"):"",` -}`),se)}else(0,S.jL)(se);return function(){(0,S.jL)(se)}},[U,se])}var ye=!1;function ce(A){return typeof A=="boolean"&&(ye=A),ye}var D=function(U){return U===!1?!1:!(0,y.Z)()||!U?null:typeof U=="string"?document.querySelector(U):typeof U=="function"?U():U},z=C.forwardRef(function(A,U){var ge=A.open,Ee=A.autoLock,se=A.getContainer,Ze=A.debug,he=A.autoDestroy,ve=he===void 0?!0:he,Se=A.children,we=C.useState(ge),G=(0,h.Z)(we,2),x=G[0],N=G[1],H=x||ge;C.useEffect(function(){(ve||ge)&&N(ge)},[ge,ve]);var L=C.useState(function(){return D(se)}),q=(0,h.Z)(L,2),V=q[0],Y=q[1];C.useEffect(function(){var O=D(se);Y(O!=null?O:null)});var $=Ce(H&&!V,Ze),I=(0,h.Z)($,2),ie=I[0],J=I[1],oe=V!=null?V:ie;l(Ee&&ge&&(0,y.Z)()&&(oe===ie||oe===document.body));var Pe=null;if(Se&&(0,M.Yr)(Se)&&U){var ze=Se;Pe=ze.ref}var Ke=(0,M.x1)(Pe,U);if(!H||!(0,y.Z)()||V===void 0)return null;var _e=oe===!1||ce(),He=Se;return U&&(He=C.cloneElement(Se,{ref:Ke})),C.createElement(k.Provider,{value:J},_e?He:(0,Z.createPortal)(He,oe))}),de=z,fe=de},7700:function(){},2828:function(){},17124:function(){},43361:function(){},17212:function(){},18067:function(){},50799:function(me,ae,c){"use strict";c.r(ae),c.d(ae,{default:function(){return ti}});var h=c(11849),C=c(2824),Z=c(67294),y=c(48971),P=c(79004),M=c(93224),K=c(73727),k=c(24793),ue=c(97183),F=c(96156),xe=c(55507),Ce=c(92137),S=c(81253),W=c(84305),T=c(39559),B=c(28481),m=c(28991),l=c(85893),ye=c(78775),ce=c(56725),D=c(12044);function z(n,e){var t=typeof n.pageName=="string"?n.title:e;(0,Z.useEffect)(function(){(0,D.Z)()&&t&&(document.title=t)},[n.title,t])}var de=z,fe=c(21879),A=c.n(fe),U=Number.isNaN||function(e){return typeof e=="number"&&e!==e};function ge(n,e){return!!(n===e||U(n)&&U(e))}function Ee(n,e){if(n.length!==e.length)return!1;for(var t=0;t=48&&o<=57||o>=65&&o<=90||o>=97&&o<=122||o===95){i+=n[a++];continue}break}if(!i)throw new TypeError("Missing parameter name at "+t);e.push({type:"NAME",index:t,value:i}),t=a;continue}if(r==="("){var u=1,s="",a=t+1;if(n[a]==="?")throw new TypeError('Pattern cannot start with "?" at '+a);for(;a-1:_===void 0;i||(b+="(?:"+v+"(?="+f+"))?"),re||(b+="(?="+v+"|"+f+")")}return new RegExp(b,H(t))}function $(n,e,t){return n instanceof RegExp?L(n,e):Array.isArray(n)?q(n,e,t):V(n,e,t)}function I(n,e){return e>>>n|e<<32-n}function ie(n,e,t){return n&e^~n&t}function J(n,e,t){return n&e^n&t^e&t}function oe(n){return I(2,n)^I(13,n)^I(22,n)}function Pe(n){return I(6,n)^I(11,n)^I(25,n)}function ze(n){return I(7,n)^I(18,n)^n>>>3}function Ke(n){return I(17,n)^I(19,n)^n>>>10}function _e(n,e){return n[e&15]+=Ke(n[e+14&15])+n[e+9&15]+ze(n[e+1&15])}var He=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],O,ne,ee,Ue="0123456789abcdef";function $e(n,e){var t=(n&65535)+(e&65535),r=(n>>16)+(e>>16)+(t>>16);return r<<16|t&65535}function dt(){O=new Array(8),ne=new Array(2),ee=new Array(64),ne[0]=ne[1]=0,O[0]=1779033703,O[1]=3144134277,O[2]=1013904242,O[3]=2773480762,O[4]=1359893119,O[5]=2600822924,O[6]=528734635,O[7]=1541459225}function et(){var n,e,t,r,i,a,o,u,s,d,g=new Array(16);n=O[0],e=O[1],t=O[2],r=O[3],i=O[4],a=O[5],o=O[6],u=O[7];for(var f=0;f<16;f++)g[f]=ee[(f<<2)+3]|ee[(f<<2)+2]<<8|ee[(f<<2)+1]<<16|ee[f<<2]<<24;for(var v=0;v<64;v++)s=u+Pe(i)+ie(i,a,o)+He[v],v<16?s+=g[v]:s+=_e(g,v),d=oe(n)+J(n,e,t),u=o,o=a,a=i,i=$e(r,s),r=t,t=e,e=n,n=$e(s,d);O[0]+=n,O[1]+=e,O[2]+=t,O[3]+=r,O[4]+=i,O[5]+=a,O[6]+=o,O[7]+=u}function ft(n,e){var t,r,i=0;r=ne[0]>>3&63;var a=e&63;for((ne[0]+=e<<3)>29,t=0;t+63>3&63;if(ee[n++]=128,n<=56)for(var e=n;e<56;e++)ee[e]=0;else{for(var t=n;t<64;t++)ee[t]=0;et();for(var r=0;r<56;r++)ee[r]=0}ee[56]=ne[1]>>>24&255,ee[57]=ne[1]>>>16&255,ee[58]=ne[1]>>>8&255,ee[59]=ne[1]&255,ee[60]=ne[0]>>>24&255,ee[61]=ne[0]>>>16&255,ee[62]=ne[0]>>>8&255,ee[63]=ne[0]&255,et()}function $t(){for(var n=0,e=new Array(32),t=0;t<8;t++)e[n++]=O[t]>>>24&255,e[n++]=O[t]>>>16&255,e[n++]=O[t]>>>8&255,e[n++]=O[t]&255;return e}function mt(){for(var n=new String,e=0;e<8;e++)for(var t=28;t>=0;t-=4)n+=Ue.charAt(O[e]>>>t&15);return n}function Mt(n){return dt(),ft(n,n.length),vt(),mt()}var Zt=Mt;function Rt(n){return Rt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Rt(n)}var Ln=["pro_layout_parentKeys","children","icon","flatMenu","indexRoute","routes"];function Bn(n,e){return $n(n)||Hn(n,e)||St(n,e)||zn()}function zn(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. + `.concat(ge?"width: calc(100% - ".concat(Ze,"px);"):"",` +}`),ue)}else(0,S.jL)(ue);return function(){(0,S.jL)(ue)}},[K,ue])}var pe=!1;function ce(F){return typeof F=="boolean"&&(pe=F),pe}var D=function(K){return K===!1?!1:!(0,b.Z)()||!K?null:typeof K=="string"?document.querySelector(K):typeof K=="function"?K():K},z=C.forwardRef(function(F,K){var me=F.open,Ee=F.autoLock,ue=F.getContainer,Ze=F.debug,ge=F.autoDestroy,ve=ge===void 0?!0:ge,Se=F.children,Oe=C.useState(me),U=(0,p.Z)(Oe,2),y=U[0],P=U[1],H=y||me;C.useEffect(function(){(ve||me)&&P(me)},[me,ve]);var L=C.useState(function(){return D(ue)}),J=(0,p.Z)(L,2),G=J[0],Y=J[1];C.useEffect(function(){var O=D(ue);Y(O!=null?O:null)});var $=Ce(H&&!G,Ze),I=(0,p.Z)($,2),ae=I[0],k=I[1],ie=G!=null?G:ae;l(Ee&&me&&(0,b.Z)()&&(ie===ae||ie===document.body));var Pe=null;if(Se&&(0,E.Yr)(Se)&&K){var ze=Se;Pe=ze.ref}var Ke=(0,E.x1)(Pe,K);if(!H||!(0,b.Z)()||G===void 0)return null;var _e=ie===!1||ce(),He=Se;return K&&(He=C.cloneElement(Se,{ref:Ke})),C.createElement(re.Provider,{value:k},_e?He:(0,Z.createPortal)(He,ie))}),de=z,fe=de},7700:function(){},2828:function(){},17124:function(){},43361:function(){},17212:function(){},18067:function(){},50799:function(ye,le,c){"use strict";c.r(le),c.d(le,{default:function(){return ti}});var p=c(11849),C=c(2824),Z=c(67294),b=c(48971),T=c(99222),E=c(93224),Q=c(73727),re=c(24793),se=c(97183),A=c(96156),xe=c(55507),Ce=c(92137),S=c(81253),W=c(84305),w=c(39559),B=c(28481),m=c(28991),l=c(85893),pe=c(78775),ce=c(56725),D=c(12044);function z(n,e){var t=typeof n.pageName=="string"?n.title:e;(0,Z.useEffect)(function(){(0,D.Z)()&&t&&(document.title=t)},[n.title,t])}var de=z,fe=c(6234),F=c.n(fe),K=Number.isNaN||function(e){return typeof e=="number"&&e!==e};function me(n,e){return!!(n===e||K(n)&&K(e))}function Ee(n,e){if(n.length!==e.length)return!1;for(var t=0;t=48&&o<=57||o>=65&&o<=90||o>=97&&o<=122||o===95){i+=n[a++];continue}break}if(!i)throw new TypeError("Missing parameter name at "+t);e.push({type:"NAME",index:t,value:i}),t=a;continue}if(r==="("){var u=1,s="",a=t+1;if(n[a]==="?")throw new TypeError('Pattern cannot start with "?" at '+a);for(;a-1:q===void 0;i||(x+="(?:"+v+"(?="+f+"))?"),ne||(x+="(?="+v+"|"+f+")")}return new RegExp(x,H(t))}function $(n,e,t){return n instanceof RegExp?L(n,e):Array.isArray(n)?J(n,e,t):G(n,e,t)}function I(n,e){return e>>>n|e<<32-n}function ae(n,e,t){return n&e^~n&t}function k(n,e,t){return n&e^n&t^e&t}function ie(n){return I(2,n)^I(13,n)^I(22,n)}function Pe(n){return I(6,n)^I(11,n)^I(25,n)}function ze(n){return I(7,n)^I(18,n)^n>>>3}function Ke(n){return I(17,n)^I(19,n)^n>>>10}function _e(n,e){return n[e&15]+=Ke(n[e+14&15])+n[e+9&15]+ze(n[e+1&15])}var He=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],O,te,_,Ue="0123456789abcdef";function $e(n,e){var t=(n&65535)+(e&65535),r=(n>>16)+(e>>16)+(t>>16);return r<<16|t&65535}function dt(){O=new Array(8),te=new Array(2),_=new Array(64),te[0]=te[1]=0,O[0]=1779033703,O[1]=3144134277,O[2]=1013904242,O[3]=2773480762,O[4]=1359893119,O[5]=2600822924,O[6]=528734635,O[7]=1541459225}function et(){var n,e,t,r,i,a,o,u,s,d,g=new Array(16);n=O[0],e=O[1],t=O[2],r=O[3],i=O[4],a=O[5],o=O[6],u=O[7];for(var f=0;f<16;f++)g[f]=_[(f<<2)+3]|_[(f<<2)+2]<<8|_[(f<<2)+1]<<16|_[f<<2]<<24;for(var v=0;v<64;v++)s=u+Pe(i)+ae(i,a,o)+He[v],v<16?s+=g[v]:s+=_e(g,v),d=ie(n)+k(n,e,t),u=o,o=a,a=i,i=$e(r,s),r=t,t=e,e=n,n=$e(s,d);O[0]+=n,O[1]+=e,O[2]+=t,O[3]+=r,O[4]+=i,O[5]+=a,O[6]+=o,O[7]+=u}function ft(n,e){var t,r,i=0;r=te[0]>>3&63;var a=e&63;for((te[0]+=e<<3)>29,t=0;t+63>3&63;if(_[n++]=128,n<=56)for(var e=n;e<56;e++)_[e]=0;else{for(var t=n;t<64;t++)_[t]=0;et();for(var r=0;r<56;r++)_[r]=0}_[56]=te[1]>>>24&255,_[57]=te[1]>>>16&255,_[58]=te[1]>>>8&255,_[59]=te[1]&255,_[60]=te[0]>>>24&255,_[61]=te[0]>>>16&255,_[62]=te[0]>>>8&255,_[63]=te[0]&255,et()}function $t(){for(var n=0,e=new Array(32),t=0;t<8;t++)e[n++]=O[t]>>>24&255,e[n++]=O[t]>>>16&255,e[n++]=O[t]>>>8&255,e[n++]=O[t]&255;return e}function mt(){for(var n=new String,e=0;e<8;e++)for(var t=28;t>=0;t-=4)n+=Ue.charAt(O[e]>>>t&15);return n}function Mt(n){return dt(),ft(n,n.length),vt(),mt()}var Zt=Mt;function Rt(n){return Rt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Rt(n)}var Ln=["pro_layout_parentKeys","children","icon","flatMenu","indexRoute","routes"];function Bn(n,e){return $n(n)||Hn(n,e)||St(n,e)||zn()}function zn(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Hn(n,e){var t=n==null?null:typeof Symbol!="undefined"&&n[Symbol.iterator]||n["@@iterator"];if(t!=null){var r=[],i=!0,a=!1,o,u;try{for(t=t.call(n);!(i=(o=t.next()).done)&&(r.push(o.value),!(e&&r.length===e));i=!0);}catch(s){a=!0,u=s}finally{try{!i&&t.return!=null&&t.return()}finally{if(a)throw u}}return r}}function $n(n){if(Array.isArray(n))return n}function Wn(n,e){var t=typeof Symbol!="undefined"&&n[Symbol.iterator]||n["@@iterator"];if(!t){if(Array.isArray(n)||(t=St(n))||e&&n&&typeof n.length=="number"){t&&(n=t);var r=0,i=function(){};return{s:i,n:function(){return r>=n.length?{done:!0}:{done:!1,value:n[r++]}},e:function(d){throw d},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a=!0,o=!1,u;return{s:function(){t=t.call(n)},n:function(){var d=t.next();return a=d.done,d},e:function(d){o=!0,u=d},f:function(){try{!a&&t.return!=null&&t.return()}finally{if(o)throw u}}}}function Kn(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function Wt(n,e){for(var t=0;tn.length)&&(e=n.length);for(var t=0,r=new Array(e);t=0)&&(!Object.prototype.propertyIsEnumerable.call(n,r)||(t[r]=n[r]))}return t}function er(n,e){if(n==null)return{};var t={},r=Object.keys(n),i,a;for(a=0;a=0)&&(t[i]=n[i]);return t}function Gt(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable})),t.push.apply(t,r)}return t}function le(n){for(var e=1;e0&&arguments[0]!==void 0?arguments[0]:"",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"/";return e.endsWith("/*")?e.replace("/*","/"):(e||t).startsWith("/")||Pt(e)?e:"/".concat(t,"/").concat(e).replace(/\/\//g,"/").replace(/\/\//g,"/")},rr=function(e,t){var r=e.menu,i=r===void 0?{}:r,a=e.indexRoute,o=e.path,u=o===void 0?"":o,s=e.children||e[be],d=i.name,g=d===void 0?e.name:d,f=i.icon,v=f===void 0?e.icon:f,b=i.hideChildren,R=b===void 0?e.hideChildren:b,w=i.flatMenu,p=w===void 0?e.flatMenu:w,j=a&&Object.keys(a).join(",")!=="redirect"?[le({path:u,menu:i},a)].concat(s||[]):s,E=le({},e);if(g&&(E.name=g),v&&(E.icon=v),j&&j.length){if(R)return delete E[be],delete E.children,E;var te=Nt(le(le({},t),{},{data:j}),e);if(p)return te;E[be]=te}return E},Te=function(e){return Array.isArray(e)&&e.length>0};function Nt(n){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{path:"/"},t=n.data,r=n.formatMessage,i=n.parentName,a=n.locale;return!t||!Array.isArray(t)?[]:t.filter(function(o){return o?Te(o[be])||Te(o.children)||o.path||o.originPath||o.layout?!0:(o.redirect||o.unaccessible,!1):!1}).filter(function(o){var u,s;return(o==null||(u=o.menu)===null||u===void 0?void 0:u.name)||(o==null?void 0:o.flatMenu)||(o==null||(s=o.menu)===null||s===void 0?void 0:s.flatMenu)?!0:o.menu!==!1}).map(function(o){var u=le({},o);return u.unaccessible&&delete u.name,u.path==="*"&&(u.path="."),u.path==="/*"&&(u.path="."),!u.path&&u.originPath&&(u.path=u.originPath),u}).map(function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{path:"/"},u=o.children||o[be],s=Vt(o.path,e?e.path:"/"),d=o.name,g=nr(o,i||"menu"),f=g!==!1&&a!==!1&&r&&g?r({id:g,defaultMessage:d}):d,v=e.pro_layout_parentKeys,b=v===void 0?[]:v,R=e.children,w=e.icon,p=e.flatMenu,j=e.indexRoute,E=e.routes,te=_n(e,Ln),_=new Set([].concat(Ut(b),Ut(o.parentKeys||[])));e.key&&_.add(e.key);var re=le(le(le({},te),{},{menu:void 0},o),{},{path:s,locale:g,key:o.key||tr(le(le({},o),{},{path:s})),pro_layout_parentKeys:Array.from(_).filter(function(pe){return pe&&pe!=="/"})});if(f?re.name=f:delete re.name,re.menu===void 0&&delete re.menu,Te(u)){var Q=Nt(le(le({},n),{},{data:u,parentName:g||""}),re);Te(Q)&&(re[be]=Q,re.children=Q)}return rr(re,n)}).flat(1)}var ar=Ze(Nt,A()),ir=function n(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.filter(function(t){return t&&(t.name||Te(t[be])||Te(t.children))&&!t.hideInMenu&&!t.redirect}).map(function(t){var r=le({},t),i=r.children||r[be];if(Te(i)&&!r.hideChildrenInMenu&&i.some(function(u){return u&&!!u.name})){var a,o=n(i);if(o.length)return le(le({},r),{},(a={},rt(a,be,o),rt(a,"children",o),a))}return le(le({},t),{},rt({},be,void 0))}).filter(function(t){return t})},or=function(n){Gn(t,n);var e=Vn(t);function t(){return Kn(this,t),e.apply(this,arguments)}return Un(t,[{key:"get",value:function(i){var a;try{var o=Wn(this.entries()),u;try{for(o.s();!(u=o.n()).done;){var s=Bn(u.value,2),d=s[0],g=s[1],f=at(d);if(!Pt(d)&&$(f,[]).test(i)){a=g;break}}}catch(v){o.e(v)}finally{o.f()}}catch(v){a=void 0}return a}}]),t}(Et(Map)),lr=function(e){var t=new or,r=function i(a,o){a.forEach(function(u){var s=u.children||u[be];Te(s)&&i(s,u);var d=Vt(u.path,o?o.path:"/");t.set(at(d),u)})};return r(e),t},ur=Ze(lr,A()),sr=function n(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(function(t){var r=t.children||t[be];if(Te(r)){var i=n(r);if(i.length)return le(le({},t),{},rt({},be,i))}var a=le({},t);return delete a[be],delete a.children,a}).filter(function(t){return t})},cr=function(e,t,r,i){var a=ar({data:e,formatMessage:r,locale:t}),o=i?sr(a):ir(a),u=ur(a);return{breadcrumb:u,menuData:o}},Qt=cr;function Yt(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable})),t.push.apply(t,r)}return t}function ht(n){for(var e=1;e0&&arguments[0]!==void 0?arguments[0]:[],t={};return e.forEach(function(r){if(!(!r||!r.key)){var i=r.children||r[be];t[at(r.path||r.key||"/")]=ht({},r),t[r.key||r.path||"/"]=ht({},r),i&&(t=ht(ht({},t),n(i)))}}),t},Xt=fr,vr=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0;return e.filter(function(i){if(i==="/"&&t==="/")return!0;if(i!=="/"&&i!=="/*"&&i&&!Pt(i)){var a=at(i);try{if(r&&$("".concat(a)).test(t)||$("".concat(a),[]).test(t)||$("".concat(a,"/(.*)")).test(t))return!0}catch(o){}}return!1}).sort(function(i,a){return i===t?10:a===t?-10:i.substr(1).split("/").length-a.substr(1).split("/").length})},mr=function(e,t,r,i){var a=Xt(t),o=Object.keys(a),u=vr(o,e||"/",i);return!u||u.length<1?[]:(r||(u=[u[u.length-1]]),u.map(function(s){var d=a[s]||{pro_layout_parentKeys:"",key:""},g=new Map,f=(d.pro_layout_parentKeys||[]).map(function(v){return g.has(v)?null:(g.set(v,!0),a[v])}).filter(function(v){return v});return d.key&&f.push(d),f}).flat(1))},Jt=mr,gr=c(94184),Re=c.n(gr),kt=c(97435),hr=c(21770),qt=c(29405),pr=c(38069),yr=c(80430),xr=c.n(yr),xi=c(7700),Cr=c(83832),Ci=c(57338),br=c(273),Mr=c(57186);function Zr(){var n=(0,Z.useState)([]),e=(0,B.Z)(n,2),t=e[0],r=e[1];return{flatMenuKeys:t,setFlatMenuKeys:r}}var Rr=(0,Mr.f)(Zr),pt=Rr,bi=c(30887),yt=c(28682),Er=c(1351),Sr=c(76629),Mi=c(18446),jr=c(19586),xt=c(85061),_t=c(5991),en=c(6610),tn=c(91321),Pr=c(16165),Nr=function(e){if(!e||!e.startsWith("http"))return!1;try{var t=new URL(e);return!!t}catch(r){return!1}},wt=Nr;function wr(n){return/\w.(png|jpg|jpeg|svg|webp|gif|bmp)$/i.test(n)}var Or=wr,Tr={navTheme:"dark",layout:"side",contentWidth:"Fluid",fixedHeader:!1,fixSiderbar:!1,headerHeight:48,iconfontUrl:"",primaryColor:"#1890ff",splitMenus:!1},nn=Tr,rn=function n(e){return(e||[]).reduce(function(t,r){if(r.key&&t.push(r.key),r.routes){var i=t.concat(n(r.routes)||[]);return i}return t},[])},an={daybreak:"#1890ff",dust:"#F5222D",volcano:"#FA541C",sunset:"#FAAD14",cyan:"#13C2C2",green:"#52C41A",geekblue:"#2F54EB",purple:"#722ED1"};function Zi(n){return n&&an[n]?an[n]:n}function it(n){return n.map(function(e){var t=e.children||e.routes,r=(0,m.Z)({},e);if(!r.name||r.hideInMenu)return null;if(r&&(r==null?void 0:r.routes)){if(!r.hideChildrenInMenu&&t.some(function(i){return i&&i.name&&!i.hideInMenu}))return(0,m.Z)((0,m.Z)({},e),{},{children:it(t),routes:it(t)});delete r.routes,delete r.children}return r}).filter(function(e){return e})}var Ri=c(43361),on=(0,tn.Z)({scriptUrl:nn.iconfontUrl}),ln=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"icon-";if(typeof e=="string"&&e!==""){if(wt(e)||Or(e))return(0,l.jsx)(Pr.Z,{component:function(){return(0,l.jsx)("img",{src:e,alt:"icon",className:"ant-pro-sider-menu-icon"})}});if(e.startsWith(t))return(0,l.jsx)(on,{type:e})}return e},Dr=(0,_t.Z)(function n(e){var t=this;(0,en.Z)(this,n),this.props=void 0,this.getNavMenuItems=function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],i=arguments.length>1?arguments[1]:void 0;return r.map(function(a){return t.getSubMenuOrItem(a,i)}).filter(function(a){return a})},this.getSubMenuOrItem=function(r,i){var a=(r==null?void 0:r.children)||(r==null?void 0:r.routes);if(Array.isArray(a)&&a.length>0){var o=t.getIntlName(r),u=t.props,s=u.subMenuItemRender,d=u.prefixCls,g=u.menu,f=u.iconPrefixes,v=r.icon?(0,l.jsxs)("span",{className:"".concat(d,"-menu-item"),title:o,children:[!i&&ln(r.icon,f),(0,l.jsx)("span",{className:"".concat(d,"-menu-item-title"),children:o})]}):(0,l.jsx)("span",{className:"".concat(d,"-menu-item"),title:o,children:o}),b=s?s((0,m.Z)((0,m.Z)({},r),{},{isUrl:!1}),v,t.props):v;return{type:(g==null?void 0:g.type)==="group"?"group":void 0,label:b,children:t.getNavMenuItems(a,!0),onTitleClick:r.onTitleClick,key:r.key||r.path}}return{label:t.getMenuItemPath(r,i),title:t.getIntlName(r),key:r.key||r.path,disabled:r.disabled,onClick:function(w){var p;wt(r==null?void 0:r.path)&&window.open(r.path,"_blank"),(p=r.onTitleClick)===null||p===void 0||p.call(r,w)}}},this.getIntlName=function(r){var i=r.name,a=r.locale,o=t.props,u=o.menu,s=o.formatMessage;return a&&(u==null?void 0:u.locale)!==!1?s==null?void 0:s({id:a,defaultMessage:i}):i},this.getMenuItemPath=function(r,i){var a=t.conversionPath(r.path||"/"),o=t.props,u=o.location,s=u===void 0?{pathname:"/"}:u,d=o.isMobile,g=o.onCollapse,f=o.menuItemRender,v=o.iconPrefixes,b=t.getIntlName(r),R=t.props.prefixCls,w=i?null:ln(r.icon,v),p=wt(a),j=(0,l.jsxs)("span",{className:Re()("".concat(R,"-menu-item"),(0,F.Z)({},"".concat(R,"-menu-item-link"),p)),children:[w,(0,l.jsx)("span",{className:"".concat(R,"-menu-item-title"),children:b})]});if(f){var E=(0,m.Z)((0,m.Z)({},r),{},{isUrl:p,itemPath:a,isMobile:d,replace:a===s.pathname,onClick:function(){p&&window.open(a,"_blank"),g&&g(!0)},children:void 0});return f(E,j,t.props)}return j},this.conversionPath=function(r){return r&&r.indexOf("http")===0?r:"/".concat(r||"").replace(/\/+/g,"/")},this.props=e}),Ar=function(e,t){var r=t.layout,i=t.collapsed,a={};return e&&!i&&["side","mix"].includes(r||"mix")&&(a={openKeys:e}),a},un=function(e){var t=e.theme,r=e.mode,i=e.className,a=e.handleOpenChange,o=e.style,u=e.menuData,s=e.menu,d=e.matchMenuKeys,g=e.iconfontUrl,f=e.collapsed,v=e.selectedKeys,b=e.onSelect,R=e.openKeys,w=(0,Z.useRef)([]),p=pt.useContainer(),j=p.flatMenuKeys,E=(0,ce.Z)(s==null?void 0:s.defaultOpenAll),te=(0,B.Z)(E,2),_=te[0],re=te[1],Q=(0,ce.Z)(function(){return(s==null?void 0:s.defaultOpenAll)?rn(u)||[]:R===!1?!1:[]},{value:R===!1?void 0:R,onChange:a}),pe=(0,B.Z)(Q,2),Me=pe[0],X=pe[1],Oe=(0,ce.Z)([],{value:v,onChange:b?function(We){b&&We&&b(We)}:void 0}),De=(0,B.Z)(Oe,2),Ae=De[0],Ie=De[1];(0,Z.useEffect)(function(){(s==null?void 0:s.defaultOpenAll)||R===!1||j.length||d&&(X(d),Ie(d))},[d.join("-")]),(0,Z.useEffect)(function(){g&&(on=(0,tn.Z)({scriptUrl:g}))},[g]),(0,Z.useEffect)(function(){if(d.join("-")!==(Ae||[]).join("-")&&Ie(d),!_&&R!==!1&&d.join("-")!==(Me||[]).join("-")){var We=d;(s==null?void 0:s.autoClose)===!1&&(We=Array.from(new Set([].concat((0,xt.Z)(d),(0,xt.Z)(Me||[]))))),X(We)}else(s==null?void 0:s.ignoreFlatMenu)&&_?X(rn(u)):j.length>0&&re(!1)},[d.join("-"),f]);var Ge=(0,Z.useMemo)(function(){return Ar(Me,e)},[Me&&Me.join(","),e.layout,e.collapsed]),Ve=(0,Z.useState)(function(){return new Dr(e)}),Qe=(0,B.Z)(Ve,1),Fe=Qe[0];if(s==null?void 0:s.loading)return(0,l.jsx)("div",{style:(r==null?void 0:r.includes("inline"))?{padding:24}:{marginTop:16},children:(0,l.jsx)(jr.Z,{active:!0,title:!1,paragraph:{rows:(r==null?void 0:r.includes("inline"))?6:1}})});var Le=Re()(i,{"top-nav-menu":r==="horizontal"});Fe.props=e,e.openKeys===!1&&!e.handleOpenChange&&(w.current=d);var Ne=e.postMenuData?e.postMenuData(u):u;return Ne&&(Ne==null?void 0:Ne.length)<1?null:(0,Z.createElement)(yt.Z,(0,m.Z)((0,m.Z)({},Ge),{},{key:"Menu",mode:r,items:Fe.getNavMenuItems(Ne,!1),inlineIndent:16,defaultOpenKeys:w.current,theme:t,selectedKeys:Ae,style:o,className:Le,onOpenChange:X},e.menuProps))};un.defaultProps={postMenuData:function(e){return e||[]}};var sn=un,Ir=ue.Z.Sider,cn=function(e){return typeof e=="string"?(0,l.jsx)("img",{src:e,alt:"logo"}):typeof e=="function"?e():e},Ot=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"menuHeaderRender",r=e.logo,i=e.title,a=e.layout,o=e[t||""];if(o===!1)return null;var u=cn(r),s=(0,l.jsx)("h1",{children:i!=null?i:"Ant Design Pro"});return o?o(u,e.collapsed?null:s,e):a==="mix"&&t==="menuHeaderRender"?null:(0,l.jsxs)("a",{children:[u,e.collapsed?null:s]})},dn=function(e){return e?(0,l.jsx)(Er.Z,{}):(0,l.jsx)(Sr.Z,{})},Fr=function(e){var t,r=e.collapsed,i=e.fixSiderbar,a=e.menuFooterRender,o=e.onCollapse,u=e.theme,s=e.siderWidth,d=e.isMobile,g=e.onMenuHeaderClick,f=e.breakpoint,v=f===void 0?"lg":f,b=e.style,R=e.layout,w=e.menuExtraRender,p=w===void 0?!1:w,j=e.collapsedButtonRender,E=j===void 0?dn:j,te=e.links,_=e.menuContentRender,re=e.prefixCls,Q=e.onOpenChange,pe=e.headerHeight,Me=e.logoStyle,X="".concat(re,"-sider"),Oe=pt.useContainer(),De=Oe.flatMenuKeys,Ae=Re()("".concat(X),(t={},(0,F.Z)(t,"".concat(X,"-fixed"),i),(0,F.Z)(t,"".concat(X,"-layout-").concat(R),R&&!d),(0,F.Z)(t,"".concat(X,"-light"),u!=="dark"),t)),Ie=Ot(e),Ge=p&&p(e),Ve=_!==!1&&De&&(0,Z.createElement)(sn,(0,m.Z)((0,m.Z)({},e),{},{key:"base-menu",mode:"inline",handleOpenChange:Q,style:{width:"100%"},className:"".concat(X,"-menu")})),Qe=_?_(e,Ve):Ve,Fe=(te||[]).map(function(Le,Ne){return{className:"".concat(X,"-link"),label:Le,key:Ne}});return E&&!d&&Fe.push({className:"".concat(X,"-collapsed-button"),title:!1,key:"collapsed",onClick:function(){o&&o(!r)},label:E(r)}),(0,l.jsxs)(l.Fragment,{children:[i&&(0,l.jsx)("div",{style:(0,m.Z)({width:r?48:s,overflow:"hidden",flex:"0 0 ".concat(r?48:s,"px"),maxWidth:r?48:s,minWidth:r?48:s,transition:"background-color 0.3s, min-width 0.3s, max-width 0.3s cubic-bezier(0.645, 0.045, 0.355, 1)"},b)}),(0,l.jsxs)(Ir,{collapsible:!0,trigger:null,collapsed:r,breakpoint:v===!1?void 0:v,onCollapse:function(Ne){d||o==null||o(Ne)},collapsedWidth:48,style:(0,m.Z)({overflow:"hidden",paddingTop:R==="mix"&&!d?pe:void 0},b),width:s,theme:u,className:Ae,children:[Ie&&(0,l.jsx)("div",{className:Re()("".concat(X,"-logo"),(0,F.Z)({},"".concat(X,"-collapsed"),r)),onClick:R!=="mix"?g:void 0,id:"logo",style:Me,children:Ie}),Ge&&(0,l.jsx)("div",{className:"".concat(X,"-extra ").concat(!Ie&&"".concat(X,"-extra-no-logo")),children:Ge}),(0,l.jsx)("div",{style:{flex:1,overflowY:"auto",overflowX:"hidden"},children:Qe}),(0,l.jsx)("div",{className:"".concat(X,"-links"),children:(0,l.jsx)(yt.Z,{theme:u,inlineIndent:16,className:"".concat(X,"-link-menu"),selectedKeys:[],openKeys:[],mode:"inline",items:Fe})}),a&&(0,l.jsx)("div",{className:Re()("".concat(X,"-footer"),(0,F.Z)({},"".concat(X,"-footer-collapsed"),!r)),children:a(e)})]})]})},fn=Fr,Lr=function(e){var t=e.isMobile,r=e.menuData,i=e.siderWidth,a=e.collapsed,o=e.onCollapse,u=e.style,s=e.className,d=e.hide,g=e.getContainer,f=e.prefixCls,v=e.matchMenuKeys,b=pt.useContainer(),R=b.setFlatMenuKeys;(0,Z.useEffect)(function(){if(!(!r||r.length<1)){var p=Xt(r);R(Object.keys(p))}},[v.join("-")]),(0,Z.useEffect)(function(){t===!0&&(o==null||o(!0))},[t]);var w=(0,kt.Z)(e,["className","style"]);return d?null:t?(0,l.jsx)(br.Z,{visible:!a,placement:"left",className:Re()("".concat(f,"-drawer-sider"),s),onClose:function(){return o==null?void 0:o(!0)},style:(0,m.Z)({padding:0,height:"100vh"},u),getContainer:g,width:i,bodyStyle:{height:"100vh",padding:0,display:"flex",flexDirection:"row"},children:(0,l.jsx)(fn,(0,m.Z)((0,m.Z)({},w),{},{className:Re()("".concat(f,"-sider"),s),collapsed:t?!1:a,splitMenus:!1}))}):(0,l.jsx)(fn,(0,m.Z)((0,m.Z)({className:Re()("".concat(f,"-sider"),s)},w),{},{style:u}))},vn=Lr,Br=c(63485),zr=c(16254),Tt=c.n(zr),Hr=function(e,t,r){if(r){var i=(0,xt.Z)(r.keys()).find(function(o){return Tt()(o).test(e)});if(i)return r.get(i)}if(t){var a=Object.keys(t).find(function(o){return Tt()(o).test(e)});if(a)return t[a]}return{path:""}},mn=function(e,t){var r=e.pathname,i=r===void 0?"/":r,a=e.breadcrumb,o=e.breadcrumbMap,u=e.formatMessage,s=e.title,d=e.menu,g=d===void 0?{locale:!1}:d,f=t?"":s||"",v=Hr(i,a,o);if(!v)return{title:f,id:"",pageName:f};var b=v.name;return g.locale!==!1&&v.locale&&u&&(b=u({id:v.locale||"",defaultMessage:v.name})),b?t||!s?{title:b,id:v.locale||"",pageName:b}:{title:"".concat(b," - ").concat(s),id:v.locale||"",pageName:b}:{title:f,id:v.locale||"",pageName:f}},Ei=function(e,t){return mn(e,t).title},Si=null,$r=c(10379),Wr=c(44144),Kr=c(10178),Ur=c(48717),ji=c(17212),Gr=["rightContentRender","prefixCls"],Vr=function(e){var t=e.rightContentRender,r=e.prefixCls,i=(0,S.Z)(e,Gr),a=(0,Z.useState)("auto"),o=(0,B.Z)(a,2),u=o[0],s=o[1],d=(0,Kr.Z)(function(){var g=(0,Ce.Z)((0,xe.Z)().mark(function f(v){return(0,xe.Z)().wrap(function(R){for(;;)switch(R.prev=R.next){case 0:s(v);case 1:case"end":return R.stop()}},f)}));return function(f){return g.apply(this,arguments)}}(),160);return(0,l.jsx)("div",{className:"".concat(r,"-right-content"),style:{minWidth:u},children:(0,l.jsx)("div",{style:{paddingRight:8},children:(0,l.jsx)(Ur.Z,{onResize:function(f){var v=f.width;d.run(v)},children:t&&(0,l.jsx)("div",{className:"".concat(r,"-right-content-resize"),children:t((0,m.Z)((0,m.Z)({},i),{},{rightContentSize:u}))})})})})},Qr=function(e){var t=(0,Z.useRef)(null),r=e.theme,i=e.onMenuHeaderClick,a=e.contentWidth,o=e.rightContentRender,u=e.className,s=e.style,d=e.headerContentRender,g=e.layout,f="".concat(e.prefixCls||"ant-pro","-top-nav-header"),v=Ot((0,m.Z)((0,m.Z)({},e),{},{collapsed:!1}),g==="mix"?"headerTitleRender":void 0),b=Re()(f,u,{light:r==="light"}),R=(0,l.jsx)(sn,(0,m.Z)((0,m.Z)({},e),e.menuProps)),w=d?d==null?void 0:d(e,R):R;return(0,l.jsx)("div",{className:b,style:s,children:(0,l.jsxs)("div",{ref:t,className:"".concat(f,"-main ").concat(a==="Fixed"?"wide":""),children:[v&&(0,l.jsx)("div",{className:"".concat(f,"-main-left"),onClick:i,children:(0,l.jsx)("div",{className:"".concat(f,"-logo"),id:"logo",children:v},"logo")}),(0,l.jsx)("div",{style:{flex:1},className:"".concat(f,"-menu"),children:w}),o&&(0,l.jsx)(Vr,(0,m.Z)({rightContentRender:o,prefixCls:f},e))]})})},gn=Qr,Pi=c(17124),Yr=function(e,t){return e===!1?null:e?e(t,null):t},Xr=function(e){var t=e.isMobile,r=e.logo,i=e.collapsed,a=e.onCollapse,o=e.collapsedButtonRender,u=o===void 0?dn:o,s=e.rightContentRender,d=e.menuHeaderRender,g=e.onMenuHeaderClick,f=e.className,v=e.style,b=e.layout,R=e.children,w=e.headerTheme,p=w===void 0?"dark":w,j=e.splitMenus,E=e.menuData,te=e.prefixCls,_=(0,Z.useContext)(T.ZP.ConfigContext),re=_.direction,Q="".concat(te,"-global-header"),pe=Re()(f,Q,(0,F.Z)({},"".concat(Q,"-layout-").concat(b),b&&p==="dark"));if(b==="mix"&&!t&&j){var Me=(E||[]).map(function(Ae){return(0,m.Z)((0,m.Z)({},Ae),{},{children:void 0,routes:void 0})}),X=it(Me);return(0,l.jsx)(gn,(0,m.Z)((0,m.Z)({mode:"horizontal"},e),{},{splitMenus:!1,menuData:X,theme:p}))}var Oe=Re()("".concat(Q,"-logo"),(0,F.Z)({},"".concat(Q,"-logo-rtl"),re==="rtl")),De=(0,l.jsx)("span",{className:Oe,children:(0,l.jsx)("a",{children:cn(r)})},"logo");return(0,l.jsxs)("div",{className:pe,style:(0,m.Z)({},v),children:[t&&Yr(d,De),t&&u&&(0,l.jsx)("span",{className:"".concat(Q,"-collapsed-button"),onClick:function(){a&&a(!i)},children:u(i)}),b==="mix"&&!t&&(0,l.jsx)(l.Fragment,{children:(0,l.jsx)("div",{className:Oe,onClick:g,children:Ot((0,m.Z)((0,m.Z)({},e),{},{collapsed:!1}),"headerTitleRender")})}),(0,l.jsx)("div",{style:{flex:1},children:R}),s&&s(e)]})},Jr=Xr,Ni=c(2828),hn=ue.Z.Header,kr=function(n){(0,$r.Z)(t,n);var e=(0,Wr.Z)(t);function t(){var r;(0,en.Z)(this,t);for(var i=arguments.length,a=new Array(i),o=0;o