@swiftcast/clip-editor-react 0.0.1-alpha.4 → 0.0.1-alpha.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.html +1 -1
- package/dist/mf-manifest.json +37 -1200
- package/dist/mf-stats.json +38 -1566
- package/dist/remoteEntry.js +5 -5
- package/dist/static/js/{8094.03bf5edc.js → 94.955b8fbb.js} +3 -3
- package/dist/static/js/async/194.fb5067a8.js +1 -0
- package/dist/static/js/async/216.512fc3b8.js +3 -0
- package/dist/static/js/async/216.512fc3b8.js.LICENSE.txt +38 -0
- package/dist/static/js/async/353.5233ade4.js +175 -0
- package/dist/static/js/async/353.5233ade4.js.LICENSE.txt +144 -0
- package/dist/static/js/async/355.58550f0f.js +3 -0
- package/dist/static/js/async/{5128.27f2ad05.js.LICENSE.txt → 355.58550f0f.js.LICENSE.txt} +14 -2
- package/dist/static/js/async/375.444c8914.js +1 -0
- package/dist/static/js/async/491.179841c1.js +1 -0
- package/dist/static/js/async/510.09d21b18.js +36 -0
- package/dist/static/js/async/{1690.28cd4402.js.LICENSE.txt → 510.09d21b18.js.LICENSE.txt} +36 -0
- package/dist/static/js/async/525.9c60477e.js +1 -0
- package/dist/static/js/async/661.4302c83b.js +8 -0
- package/dist/static/js/async/{5285.fe1791d9.js.LICENSE.txt → 661.4302c83b.js.LICENSE.txt} +8 -1
- package/dist/static/js/async/682.f9ec3784.js +2 -0
- package/dist/static/js/async/852.5fbbde64.js +6 -0
- package/dist/static/js/async/929.8efefefe.js +1 -0
- package/dist/static/js/async/__federation_expose_ProjectsPage.e597d172.js +2 -0
- package/dist/static/js/async/{6452.a2c7f164.js.LICENSE.txt → __federation_expose_ProjectsPage.e597d172.js.LICENSE.txt} +1 -1
- package/dist/static/js/async/__federation_expose_SniffingPage.b7d88010.js +1 -0
- package/dist/static/js/async/__federation_expose_WorkFlow.e18339ec.js +11 -0
- package/dist/static/js/async/lib-axios.64c3f6d8.js +1 -0
- package/dist/static/js/index.c98d9791.js +1 -0
- package/package.json +1 -1
- package/dist/static/js/async/109.256a32bd.js +0 -2
- package/dist/static/js/async/109.256a32bd.js.LICENSE.txt +0 -9
- package/dist/static/js/async/1099.7ec4a1d4.js +0 -1
- package/dist/static/js/async/1167.eafb458c.js +0 -1
- package/dist/static/js/async/1229.3824b191.js +0 -1
- package/dist/static/js/async/1358.c5623f2c.js +0 -2
- package/dist/static/js/async/1358.c5623f2c.js.LICENSE.txt +0 -9
- package/dist/static/js/async/1359.c78c33cc.js +0 -1
- package/dist/static/js/async/1408.45dd942f.js +0 -1
- package/dist/static/js/async/1475.ca68a958.js +0 -2
- package/dist/static/js/async/1475.ca68a958.js.LICENSE.txt +0 -9
- package/dist/static/js/async/1491.afc05a88.js +0 -1
- package/dist/static/js/async/1536.acd44187.js +0 -2
- package/dist/static/js/async/1536.acd44187.js.LICENSE.txt +0 -9
- package/dist/static/js/async/1545.339b9e4a.js +0 -1
- package/dist/static/js/async/1663.0a34b1a6.js +0 -2
- package/dist/static/js/async/1663.0a34b1a6.js.LICENSE.txt +0 -9
- package/dist/static/js/async/1677.4c84f733.js +0 -2
- package/dist/static/js/async/1677.4c84f733.js.LICENSE.txt +0 -9
- package/dist/static/js/async/1690.28cd4402.js +0 -2
- package/dist/static/js/async/1855.dc79d72c.js +0 -1
- package/dist/static/js/async/1921.7437e362.js +0 -1
- package/dist/static/js/async/2068.600661ee.js +0 -1
- package/dist/static/js/async/2111.5db2cfc1.js +0 -2
- package/dist/static/js/async/2111.5db2cfc1.js.LICENSE.txt +0 -9
- package/dist/static/js/async/213.94b97063.js +0 -1
- package/dist/static/js/async/2199.65d29190.js +0 -1
- package/dist/static/js/async/2305.9e6f32d6.js +0 -2
- package/dist/static/js/async/2305.9e6f32d6.js.LICENSE.txt +0 -8
- package/dist/static/js/async/2375.042f6260.js +0 -1
- package/dist/static/js/async/2469.fc8a042e.js +0 -1
- package/dist/static/js/async/2746.01a51768.js +0 -2
- package/dist/static/js/async/2746.01a51768.js.LICENSE.txt +0 -1
- package/dist/static/js/async/2790.ff501683.js +0 -5
- package/dist/static/js/async/2900.6ab855e9.js +0 -1
- package/dist/static/js/async/2927.6711b41c.js +0 -2
- package/dist/static/js/async/2927.6711b41c.js.LICENSE.txt +0 -45
- package/dist/static/js/async/3126.500697e8.js +0 -1
- package/dist/static/js/async/3145.6d46bb3e.js +0 -1
- package/dist/static/js/async/3328.3edb2c5f.js +0 -7
- package/dist/static/js/async/3328.3edb2c5f.js.LICENSE.txt +0 -9
- package/dist/static/js/async/3357.3cc4b057.js +0 -1
- package/dist/static/js/async/3358.f439fe77.js +0 -3
- package/dist/static/js/async/3436.02b7dced.js +0 -2
- package/dist/static/js/async/3436.02b7dced.js.LICENSE.txt +0 -9
- package/dist/static/js/async/35.63ec382c.js +0 -2
- package/dist/static/js/async/35.63ec382c.js.LICENSE.txt +0 -9
- package/dist/static/js/async/3500.2a5e861e.js +0 -2
- package/dist/static/js/async/3500.2a5e861e.js.LICENSE.txt +0 -5
- package/dist/static/js/async/3714.3de0cc07.js +0 -1
- package/dist/static/js/async/3761.30e06c21.js +0 -2
- package/dist/static/js/async/4437.c013a47e.js +0 -1
- package/dist/static/js/async/4516.86f759b3.js +0 -1
- package/dist/static/js/async/4588.381756a4.js +0 -4
- package/dist/static/js/async/4617.3c1cb2e1.js +0 -1
- package/dist/static/js/async/4804.4b5a6c4b.js +0 -1
- package/dist/static/js/async/4964.31141e42.js +0 -1
- package/dist/static/js/async/5040.ad9e108f.js +0 -2
- package/dist/static/js/async/5040.ad9e108f.js.LICENSE.txt +0 -9
- package/dist/static/js/async/5058.6c88d364.js +0 -2
- package/dist/static/js/async/5058.6c88d364.js.LICENSE.txt +0 -62
- package/dist/static/js/async/5083.a594c3b4.js +0 -2
- package/dist/static/js/async/5083.a594c3b4.js.LICENSE.txt +0 -9
- package/dist/static/js/async/5127.095785dd.js +0 -2
- package/dist/static/js/async/5127.095785dd.js.LICENSE.txt +0 -9
- package/dist/static/js/async/5128.27f2ad05.js +0 -2
- package/dist/static/js/async/5184.c393a127.js +0 -1
- package/dist/static/js/async/5218.87494e0c.js +0 -1
- package/dist/static/js/async/5285.fe1791d9.js +0 -5
- package/dist/static/js/async/5408.253200ee.js +0 -1
- package/dist/static/js/async/5450.359d95c3.js +0 -1
- package/dist/static/js/async/5469.f0179be1.js +0 -1
- package/dist/static/js/async/5522.cc016a92.js +0 -1
- package/dist/static/js/async/5770.c3d8277f.js +0 -1
- package/dist/static/js/async/5876.36f8e85a.js +0 -2
- package/dist/static/js/async/5876.36f8e85a.js.LICENSE.txt +0 -9
- package/dist/static/js/async/5921.bfb648cb.js +0 -1
- package/dist/static/js/async/6127.1257e70c.js +0 -1
- package/dist/static/js/async/6140.5479e7b9.js +0 -2
- package/dist/static/js/async/6140.5479e7b9.js.LICENSE.txt +0 -9
- package/dist/static/js/async/6297.336e7ffc.js +0 -2
- package/dist/static/js/async/6297.336e7ffc.js.LICENSE.txt +0 -9
- package/dist/static/js/async/6452.a2c7f164.js +0 -2
- package/dist/static/js/async/6504.53e9c9c5.js +0 -1
- package/dist/static/js/async/6678.fe09eab0.js +0 -1
- package/dist/static/js/async/6682.e0084aeb.js +0 -2
- package/dist/static/js/async/6703.f8fca121.js +0 -1
- package/dist/static/js/async/6716.50326c01.js +0 -2
- package/dist/static/js/async/6716.50326c01.js.LICENSE.txt +0 -8
- package/dist/static/js/async/6734.4a52d73f.js +0 -6
- package/dist/static/js/async/6964.d244eb15.js +0 -7
- package/dist/static/js/async/7300.69a06cf8.js +0 -1
- package/dist/static/js/async/7420.4846bd05.js +0 -2
- package/dist/static/js/async/7420.4846bd05.js.LICENSE.txt +0 -9
- package/dist/static/js/async/7426.2ccadab1.js +0 -1
- package/dist/static/js/async/747.3568c169.js +0 -2
- package/dist/static/js/async/747.3568c169.js.LICENSE.txt +0 -9
- package/dist/static/js/async/753.c9fb4bb6.js +0 -2
- package/dist/static/js/async/753.c9fb4bb6.js.LICENSE.txt +0 -8
- package/dist/static/js/async/7560.cfdf6fc1.js +0 -3
- package/dist/static/js/async/7560.cfdf6fc1.js.LICENSE.txt +0 -19
- package/dist/static/js/async/7693.99348793.js +0 -2
- package/dist/static/js/async/7693.99348793.js.LICENSE.txt +0 -6
- package/dist/static/js/async/7785.4146afc2.js +0 -1
- package/dist/static/js/async/7855.3a70056f.js +0 -1
- package/dist/static/js/async/787.fe3d07c6.js +0 -1
- package/dist/static/js/async/7889.09b20686.js +0 -1
- package/dist/static/js/async/7961.5d19744b.js +0 -1
- package/dist/static/js/async/8062.09a6fdbd.js +0 -2
- package/dist/static/js/async/8062.09a6fdbd.js.LICENSE.txt +0 -9
- package/dist/static/js/async/8112.26771b29.js +0 -1
- package/dist/static/js/async/8145.7711418b.js +0 -1
- package/dist/static/js/async/8194.e3680a0e.js +0 -1
- package/dist/static/js/async/8247.71ad8780.js +0 -1
- package/dist/static/js/async/8314.4fbcc580.js +0 -2
- package/dist/static/js/async/8314.4fbcc580.js.LICENSE.txt +0 -9
- package/dist/static/js/async/8327.d70b6d2b.js +0 -2
- package/dist/static/js/async/8327.d70b6d2b.js.LICENSE.txt +0 -9
- package/dist/static/js/async/8377.491112d2.js +0 -1
- package/dist/static/js/async/8430.cc4ab0b0.js +0 -2
- package/dist/static/js/async/8430.cc4ab0b0.js.LICENSE.txt +0 -9
- package/dist/static/js/async/8512.ae31acae.js +0 -2
- package/dist/static/js/async/8512.ae31acae.js.LICENSE.txt +0 -9
- package/dist/static/js/async/8522.7b59f26a.js +0 -17
- package/dist/static/js/async/8572.889a2f0f.js +0 -1
- package/dist/static/js/async/8636.3a0609ce.js +0 -4
- package/dist/static/js/async/8652.231efd09.js +0 -1
- package/dist/static/js/async/8719.d5d23e80.js +0 -1
- package/dist/static/js/async/8865.2104211d.js +0 -8
- package/dist/static/js/async/8895.153ddc5f.js +0 -2
- package/dist/static/js/async/8895.153ddc5f.js.LICENSE.txt +0 -19
- package/dist/static/js/async/8913.64eea008.js +0 -1
- package/dist/static/js/async/8964.196834ba.js +0 -1
- package/dist/static/js/async/9047.c6fa7623.js +0 -452
- package/dist/static/js/async/9047.c6fa7623.js.LICENSE.txt +0 -117
- package/dist/static/js/async/905.4340e6d5.js +0 -2
- package/dist/static/js/async/905.4340e6d5.js.LICENSE.txt +0 -5
- package/dist/static/js/async/9146.efbecec7.js +0 -1
- package/dist/static/js/async/9149.82308d8f.js +0 -1
- package/dist/static/js/async/9249.622a286f.js +0 -2
- package/dist/static/js/async/9249.622a286f.js.LICENSE.txt +0 -5
- package/dist/static/js/async/9525.2192486e.js +0 -1
- package/dist/static/js/async/9594.516654c9.js +0 -2
- package/dist/static/js/async/9594.516654c9.js.LICENSE.txt +0 -9
- package/dist/static/js/async/9630.c795adce.js +0 -1
- package/dist/static/js/async/9669.dc59da89.js +0 -75
- package/dist/static/js/async/9798.20a5011c.js +0 -2
- package/dist/static/js/async/9798.20a5011c.js.LICENSE.txt +0 -9
- package/dist/static/js/async/9854.c86b795e.js +0 -1
- package/dist/static/js/async/9905.e5456d13.js +0 -2
- package/dist/static/js/async/9905.e5456d13.js.LICENSE.txt +0 -9
- package/dist/static/js/async/9973.04e09e35.js +0 -1
- package/dist/static/js/async/__federation_expose_ProjectsPage.d61a8a68.js +0 -1
- package/dist/static/js/async/__federation_expose_SniffingPage.79823a67.js +0 -1
- package/dist/static/js/async/__federation_expose_WorkFlow.39bd1b8e.js +0 -11
- package/dist/static/js/index.03348712.js +0 -1
- /package/dist/static/css/async/{9139.ecec5306.css → 139.ecec5306.css} +0 -0
- /package/dist/static/js/async/{6682.e0084aeb.js.LICENSE.txt → 682.f9ec3784.js.LICENSE.txt} +0 -0
- /package/dist/static/js/async/{3761.30e06c21.js.LICENSE.txt → 852.5fbbde64.js.LICENSE.txt} +0 -0
@@ -1,3 +1,39 @@
|
|
1
|
+
/**
|
2
|
+
* @license
|
3
|
+
* Lodash <https://lodash.com/>
|
4
|
+
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
5
|
+
* Released under MIT license <https://lodash.com/license>
|
6
|
+
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
7
|
+
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
8
|
+
*/
|
9
|
+
|
10
|
+
/**
|
11
|
+
* @license React
|
12
|
+
* react-jsx-runtime.production.min.js
|
13
|
+
*
|
14
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
15
|
+
*
|
16
|
+
* This source code is licensed under the MIT license found in the
|
17
|
+
* LICENSE file in the root directory of this source tree.
|
18
|
+
*/
|
19
|
+
|
20
|
+
/**
|
21
|
+
* @license React
|
22
|
+
* use-sync-external-store-shim.production.js
|
23
|
+
*
|
24
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
25
|
+
*
|
26
|
+
* This source code is licensed under the MIT license found in the
|
27
|
+
* LICENSE file in the root directory of this source tree.
|
28
|
+
*/
|
29
|
+
|
30
|
+
/**
|
31
|
+
* @license lucide-react v0.488.0 - ISC
|
32
|
+
*
|
33
|
+
* This source code is licensed under the ISC license.
|
34
|
+
* See the LICENSE file in the root directory of this source tree.
|
35
|
+
*/
|
36
|
+
|
1
37
|
//! Burak Yiğit Kaya: https://github.com/BYK
|
2
38
|
|
3
39
|
//! Sigurd Gartmann : https://github.com/sigurdga
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";(self.webpackChunkremote=self.webpackChunkremote||[]).push([["525"],{85079:function(e,s,t){t.d(s,{z:()=>i});var a=t(31549),n=t(37067),r=t(71553);let i=e=>{let{className:s}=e;return(0,a.jsx)("div",{className:(0,r.cn)("bg-[#EFF2F9] rounded-lg m-2 inline-flex items-center justify-center",s),children:(0,a.jsx)(n.Z,{className:"text-gray-400"})})}},19813:function(e,s,t){t.d(s,{Z:()=>Q});var a=t(31549),n=t(41857),r=t(30059),i=t(8491),l=t(29055),c=t(56896),d=t(30157),o=t(61455),h=t(95851),m=t(48898),x=t(20858),u=t(30929),j=t(23942),p=t(93585),f=t(53589),v=t(57282),y=t(93330);async function N(e){try{return await f.hi.get(`/studio_manager/generate-share-link/${e}`)}catch(e){console.error("该项目共享链接生成失败:",e),(0,p.S3)("共享链接生成失败")}}async function g(e){try{let s=new URL(e).pathname.split("/").pop();return await f.hi.get(`/studio_manager/share-content/${s}`)}catch(e){console.error("使用共享链接失败:",e),(0,p.S3)("共享链接使用失败")}}function _(e){let{projectId:s,disabled:t=!1}=e,[n,r]=(0,i.useState)(!1),[l,c]=(0,i.useState)(""),[f,_]=(0,i.useState)(""),[w,b]=(0,i.useState)(!1),[S,C]=(0,i.useState)(!1),[k,z]=(0,i.useState)(!1),{t:$}=(0,y.$)();(0,i.useEffect)(()=>{let e=!0;return n&&(b(!0),(async()=>{try{let t=await N(s);e&&t&&(c(t),z(!1))}catch(e){console.error("获取分享链接失败:",e)}finally{e&&b(!1)}})()),()=>{e=!1}},[n]);let Z=async()=>{try{await navigator.clipboard.writeText(l),z(!0),(0,p.x9)("分享链接已复制到剪贴板")}catch(e){console.error(`复制失败 ${e}`),(0,p.S3)("复制失败,请手动复制")}},R=async()=>{if(!f.trim())return void(0,p.L$)("请输入共享链接");try{C(!0);let e=await g(f);e.used_flag?(_(""),(0,p.x9)("共享链接使用成功,Team 已在新窗口打开"),r(!1),window.open(`/?${e}`,"_blank")):(0,p.L$)("你已经在这个 Team 中了")}catch(e){console.error(`共享链接使用失败 ${e}`),(0,p.S3)("使用共享链接失败")}finally{C(!1)}};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(d.z,{variant:"outline",size:"default",onClick:()=>{r(!0),c(""),z(!1)},disabled:t,children:[(0,a.jsx)(o.Z,{className:"mr-2 h-4 w-4"}),$("home.share.title")]}),(0,a.jsx)(u.Vq,{open:n,onOpenChange:e=>r(e),children:(0,a.jsxs)(u.cZ,{className:"sm:max-w-md",children:[(0,a.jsx)(u.fK,{children:(0,a.jsxs)(u.$N,{children:[" ",$("home.share.title")]})}),(0,a.jsxs)("div",{className:"space-y-4 mb-6",children:[(0,a.jsxs)("h3",{className:"text-sm font-medium",children:[" ",$("home.share.link")]}),(0,a.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,a.jsx)(j.I,{value:l,readOnly:!0,placeholder:"点击生成按钮获取共享链接",className:"flex-1"}),(0,a.jsxs)(d.z,{size:"sm",onClick:Z,variant:"secondary",children:[k?(0,a.jsx)(h.Z,{className:"h-4 w-4 mr-2"}):(0,a.jsx)(m.Z,{className:"h-4 w-4 mr-2"}),$(k?"home.share.copied":"home.share.copy")]})]})]}),(0,a.jsx)(v.Z,{}),(0,a.jsxs)("div",{className:"space-y-4 mt-6",children:[(0,a.jsxs)("h3",{className:"text-sm font-medium",children:[" ",$("home.share.use_share_link_content")]}),(0,a.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,a.jsx)(j.I,{value:f,onChange:e=>_(e.target.value),placeholder:"粘贴共享链接",className:"flex-1"}),(0,a.jsxs)(d.z,{size:"sm",onClick:R,disabled:S||!f.trim(),variant:"secondary",children:[(0,a.jsx)(x.Z,{className:"h-4 w-4 mr-2"}),S?"处理中...":"共享"]})]})]})]})})]})}var w=t(17511),b=t(46041),S=t(7132),C=t(94455),k=t(76497),z=t(79530),$=t(78271),Z=t(57077),R=t(12786),F=t(35731),O=t(57972),E=t(65535),q=t(85079);function A(e){let{isOpen:s,onClose:t,onConfirm:n,projectName:r}=e;return(0,a.jsx)(u.Vq,{open:s,onOpenChange:t,children:(0,a.jsxs)(u.cZ,{className:"sm:max-w-[425px]",children:[(0,a.jsxs)(u.fK,{children:[(0,a.jsx)(u.$N,{children:"确认克隆"}),(0,a.jsxs)(u.Be,{children:['你确定要克隆项目 "',r,'" 吗?']})]}),(0,a.jsxs)(u.cN,{children:[(0,a.jsx)(d.z,{type:"button",variant:"outline",onClick:t,children:"取消"}),(0,a.jsx)(d.z,{type:"button",variant:"default",onClick:n,children:"克隆"})]})]})})}var T=t(53701);function I(e){let{isOpen:s,onClose:t,onConfirm:n,projectName:r}=e;return(0,a.jsx)(u.Vq,{open:s,onOpenChange:t,children:(0,a.jsxs)(u.cZ,{className:"sm:max-w-[425px]",children:[(0,a.jsxs)(u.fK,{children:[(0,a.jsx)(u.$N,{children:"确认删除"}),(0,a.jsxs)(u.Be,{children:['你确定要删除项目 "',r,'" 吗?此操作不可逆。']})]}),(0,a.jsxs)(u.cN,{children:[(0,a.jsx)(d.z,{type:"button",variant:"secondary",onClick:t,children:"取消"}),(0,a.jsx)(d.z,{type:"button",variant:"destructive",onClick:n,children:"删除"})]})]})})}var D=t(66264);function K(e){let{isOpen:s,onClose:t,onRename:n,currentName:r}=e,[l,c]=(0,i.useState)(r);return(0,a.jsx)(u.Vq,{open:s,onOpenChange:t,children:(0,a.jsxs)(u.cZ,{className:"sm:max-w-[425px]",children:[(0,a.jsxs)(u.fK,{children:[(0,a.jsx)(u.$N,{children:"重命名项目"}),(0,a.jsx)(u.Be,{children:"输入新的项目名称"})]}),(0,a.jsx)("div",{className:"grid gap-4 py-4",children:(0,a.jsxs)("div",{className:"grid grid-cols-4 items-center gap-4",children:[(0,a.jsx)(D._,{htmlFor:"name",className:"text-right",children:"名称"}),(0,a.jsx)(j.I,{id:"name",value:l,onChange:e=>c(e.target.value),className:"col-span-3"})]})}),(0,a.jsxs)(u.cN,{children:[(0,a.jsx)(d.z,{type:"button",variant:"secondary",onClick:t,children:"取消"}),(0,a.jsx)(d.z,{type:"button",onClick:()=>{n(l),t()},children:"确认"})]})]})})}function V(e){let{project:s,onRename:t,onClone:n,onDelete:r}=e,[l,c]=(0,i.useState)(!1),[o,h]=(0,i.useState)(!1),[m,x]=(0,i.useState)(!1),u=(0,C.s)({from:"/"}),{t:j}=(0,y.$)();return(0,a.jsxs)("div",{children:[(0,a.jsx)(T.Zb,{className:"hover:shadow-lg hover:cursor-pointer p-4",onClick:()=>{u({to:"/editor?project="+s.short_url_id})},children:(0,a.jsx)("div",{className:"aspect-video relative overflow-hidden rounded-md",children:(0,a.jsx)(q.z,{className:"w-full h-full m-0"})})}),(0,a.jsxs)("div",{className:"flex flex-row items-center justify-between space-y-0 pb-2 pt-4",children:[(0,a.jsx)("h3",{className:"font-medium text-xl text-gray-600 truncate w-[70%]",children:s.title}),(0,a.jsxs)(w.h_,{children:[(0,a.jsx)(w.$F,{asChild:!0,children:(0,a.jsxs)(d.z,{variant:"ghost",size:"icon",className:"h-8 w-8 p-0",children:[(0,a.jsx)("span",{className:"sr-only",children:"Open menu"}),(0,a.jsx)(E.Z,{})]})}),(0,a.jsxs)(w.AW,{align:"end",children:[(0,a.jsx)(w.Xi,{onSelect:()=>c(!0),children:j("home.project.rename")}),(0,a.jsx)(w.Xi,{onSelect:()=>h(!0),children:j("home.project.clone")}),(0,a.jsx)(w.Xi,{onSelect:()=>x(!0),className:"text-red-600",children:j("home.project.delete")})]})]})]}),(0,a.jsx)("div",{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:(0,a.jsxs)("span",{className:"text-sm",children:[" ",s.createdAt]})}),(0,a.jsx)(K,{isOpen:l,onClose:()=>c(!1),onRename:e=>t(s.short_url_id,e),currentName:s.title}),(0,a.jsx)(A,{isOpen:o,onClose:()=>h(!1),onConfirm:()=>{n(s.short_url_id),h(!1)},projectName:s.title}),(0,a.jsx)(I,{isOpen:m,onClose:()=>x(!1),onConfirm:()=>{console.info(555,s),r(s.short_url_id)},projectName:s.title})]})}function X(e){let{teamId:s}=e,{t}=(0,y.$)(),n=(0,R.D)({mutationFn:async e=>await c.R.POST("/studio_manager/projects/",{body:{name:"工作流"+(0,$.Vj)(),create_at:(0,$.Ux)(),update_at:(0,$.Ux)(),team_id:e}}),onSuccess:async e=>{window.open(`/editor?project=${e.data.data.short_url_id}`,"_blank")}});return(0,a.jsx)("div",{children:(0,a.jsx)(d.z,{disabled:-1==s,onClick:()=>{n.mutate(s)},children:t("home.create_project")})})}var L=t(44153);function P(e){let{projects:s,onRename:t,onDelete:n}=e,[r,l]=(0,i.useState)(null),[c,o]=(0,i.useState)(!1),[h,m]=(0,i.useState)(!1),x=(e,s)=>{t(e,s),l(null),o(!1)},u=e=>{n(e),l(null),m(!1)};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"rounded-md border",children:(0,a.jsxs)(L.iA,{children:[(0,a.jsx)(L.xD,{children:(0,a.jsxs)(L.SC,{children:[(0,a.jsx)(L.ss,{className:"w-[100px]",children:"缩略图"}),(0,a.jsx)(L.ss,{children:"项目名称"}),(0,a.jsx)(L.ss,{children:"创建时间"}),(0,a.jsx)(L.ss,{className:"w-[100px]",children:"操作"})]})}),(0,a.jsx)(L.RM,{children:s.map(e=>(0,a.jsxs)(L.SC,{children:[(0,a.jsx)(L.pj,{children:(0,a.jsx)("div",{className:"relative w-16 h-16 rounded-md overflow-hidden",children:(0,a.jsx)("img",{src:e.thumbnail||"/placeholder.svg",alt:e.title,className:"object-cover"})})}),(0,a.jsx)(L.pj,{className:"font-medium",children:e.title}),(0,a.jsx)(L.pj,{children:e.createdAt}),(0,a.jsx)(L.pj,{children:(0,a.jsxs)(w.h_,{children:[(0,a.jsx)(w.$F,{asChild:!0,children:(0,a.jsxs)(d.z,{variant:"ghost",className:"h-8 w-8 p-0",children:[(0,a.jsx)("span",{className:"sr-only",children:"Open menu"}),(0,a.jsx)(E.Z,{className:"h-4 w-4"})]})}),(0,a.jsxs)(w.AW,{align:"end",children:[(0,a.jsx)(w.Xi,{onSelect:()=>{l(e),o(!0)},children:"重命名"}),(0,a.jsx)(w.Xi,{onSelect:()=>{l(e),m(!0)},className:"text-red-600",children:"删除"})]})]})})]},e.id))})]})}),r&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(K,{isOpen:c,onClose:()=>{o(!1),l(null)},onRename:e=>x(r.short_url_id,e),currentName:r.title}),(0,a.jsx)(I,{isOpen:h,onClose:()=>{m(!1),l(null)},onConfirm:()=>u(r.id),projectName:r.title})]})]})}function Q(){let[e,s]=(0,i.useState)("grid"),t=(0,S.T)(),[o,h]=function(e,s){let t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};(0,b.t)();let a=(0,S.T)(),n=(0,C.s)(),[r,l]=(0,i.useState)(s);return(0,i.useEffect)(()=>{let n=a.search[e];n?t.validate?t.validate(n)&&l(n):l(n):l(s)},[a,e,s,t.validate]),[r,s=>{l(s);let r=new URLSearchParams(a.searchStr);r.set(e,s),t.replace,n({to:`?${r.toString()}`})}]}("teamId","-1"),{t:m}=(0,y.$)(),{isPending:x,error:u,data:j}=(0,Z.a)({queryKey:["teams"],queryFn:async()=>{let e=await c.R.GET("/studio_manager/teams/",{params:{query:{user_id:(0,l.rc)()}}}),s=await c.R.GET("/studio_manager/projects/",{params:{query:{user_id:(0,l.rc)()}}});return(0,$.yV)({teams:[],projects:[]},e,s)}});(0,k.Z)(async()=>{j&&"-1"===o&&!t.search.teamId&&h(j.teams.find(e=>e.name.startsWith("我的")).short_url_id)},[j]);let p=(0,R.D)({mutationFn:async e=>await c.R.DELETE("/studio_manager/projects/{project_id}/",{params:{path:{project_id:e}}}),onSuccess:e=>z.E.invalidateQueries({queryKey:["teams"]})}),f=(0,R.D)({mutationFn:async e=>await c.R.POST("/studio_manager/projects/clone/",{body:{project_id:e}}),onSuccess:async e=>{console.info(444,e),window.open(`/editor?project=${e.data.data.short_url_id}`,"_blank")}}),v=(0,R.D)({mutationKey:["update_project_name"],mutationFn:async e=>await c.R.PUT("/studio_manager/projects/{project_id}/",{params:{path:{project_id:e.project_id}},body:{name:e.name}}),onSuccess:e=>z.E.invalidateQueries({queryKey:["teams"]})}),N=(e,s)=>{v.mutate({project_id:e,name:s})},g=e=>{f.mutate(e)},E=e=>{p.mutate(e)},q=null==j?void 0:j.teams.find(e=>e.short_url_id===o),A=null==j?void 0:j.projects.map(e=>({id:e.id,short_url_id:e.short_url_id,team_id:e.team_id,title:e.name,thumbnail:"",createdAt:e.update_at})).filter(e=>"-1"!==o&&String(e.team_id)===String(null==q?void 0:q.id));return(0,a.jsx)(F.Z,{spinning:x,children:(0,a.jsx)("div",{className:"w-full h-full flex-1 flex-col space-y-8 p-8 flex ",children:(0,a.jsxs)("div",{className:"space-y-4",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between",children:[(0,a.jsx)("div",{className:"flex items-end space-x-2",children:(0,a.jsx)("h2",{className:"text-xl font-semibold",children:m("home.title")})}),(0,a.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,a.jsxs)(w.h_,{children:[(0,a.jsx)(w.$F,{asChild:!0,children:(0,a.jsx)(d.z,{size:"icon",variant:"outline",children:"grid"===e?(0,a.jsx)(n.Z,{className:"h-4 w-4"}):(0,a.jsx)(r.Z,{className:"h-4 w-4"})})}),(0,a.jsxs)(w.AW,{align:"end",children:[(0,a.jsxs)(w.Xi,{onClick:()=>s("grid"),children:[(0,a.jsx)(n.Z,{className:"mr-2 h-4 w-4"})," Grid view"]}),(0,a.jsxs)(w.Xi,{onClick:()=>s("list"),children:[(0,a.jsx)(r.Z,{className:"mr-2 h-4 w-4"})," List view"]})]})]}),(0,a.jsx)(_,{projectId:o}),(0,a.jsxs)(O.Ph,{value:o,onValueChange:e=>{z.E.invalidateQueries({queryKey:["teams"]}),h(e)},children:[(0,a.jsx)(O.i4,{className:"w-[180px]",children:(0,a.jsx)(O.ki,{placeholder:"Select a fruit"})}),(0,a.jsx)(O.Bw,{children:(0,a.jsx)(O.DI,{children:null==j?void 0:j.teams.map((e,s)=>(0,a.jsx)(O.Ql,{value:String(e.short_url_id),children:e.name},e.short_url_id))})})]}),(0,a.jsx)(X,{teamId:o})]})]}),"grid"===e?(0,a.jsx)("div",{className:"grid grid-cols-5 gap-14",children:null==A?void 0:A.map(e=>(0,a.jsx)(V,{project:e,onRename:N,onClone:g,onDelete:E},e.id))}):(0,a.jsx)(P,{projects:A,onRename:N,onDelete:E})]})})})}},23942:function(e,s,t){t.d(s,{I:()=>i});var a=t(31549),n=t(8491),r=t(71553);let i=n.forwardRef((e,s)=>{let{className:t,type:n,...i}=e;return(0,a.jsx)("input",{type:n,className:(0,r.cn)("flex h-9 w-full rounded-md border border-zinc-200 bg-transparent px-3 py-1 text-base shadow-xs transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-zinc-950 placeholder:text-zinc-500 focus-visible:outline-hidden focus-visible:ring-1 focus-visible:ring-zinc-950 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm dark:border-zinc-800 dark:file:text-zinc-50 dark:placeholder:text-zinc-400 dark:focus-visible:ring-zinc-300",t),ref:s,...i})});i.displayName="Input"},66264:function(e,s,t){t.d(s,{_:()=>d});var a=t(31549),n=t(99947),r=t(68621),i=t(8491),l=t(71553);let c=(0,r.j)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),d=i.forwardRef((e,s)=>{let{className:t,...r}=e;return(0,a.jsx)(n.f,{ref:s,className:(0,l.cn)(c(),t),...r})});d.displayName=n.f.displayName},93330:function(e,s,t){t.d(s,{$:()=>n});var a=t(91299);function n(){let{language:e,setLanguage:s,languages:t,dictionary:n}=(0,a.Qg)();return{t:(e,s)=>{let t=(Array.isArray(e)?e:e.split(".")).reduce((e,s)=>null==e?void 0:e[s],n);return t?(s&&"string"==typeof t&&Object.entries(s).forEach(e=>{let[s,a]=e;t=t.replace(RegExp(`{{${s}}}`,"g"),a)}),t):Array.isArray(e)?e[e.length-1]:e.split(".").pop()||e},language:e,setLanguage:s,languages:t}}}}]);
|
@@ -0,0 +1,8 @@
|
|
1
|
+
/*! For license information please see 661.4302c83b.js.LICENSE.txt */
|
2
|
+
"use strict";(self.webpackChunkremote=self.webpackChunkremote||[]).push([["661"],{84811:function(e,t,l){l.d(t,{Z:()=>n});let n=(0,l(14115).Z)("arrow-down-wide-narrow",[["path",{d:"m3 16 4 4 4-4",key:"1co6wj"}],["path",{d:"M7 20V4",key:"1yoxec"}],["path",{d:"M11 4h10",key:"1w87gc"}],["path",{d:"M11 8h7",key:"djye34"}],["path",{d:"M11 12h4",key:"q8tih4"}]])},14303:function(e,t,l){l.d(t,{Z:()=>n});let n=(0,l(14115).Z)("arrow-up-down",[["path",{d:"m21 16-4 4-4-4",key:"f6ql7i"}],["path",{d:"M17 20V4",key:"1ejh1v"}],["path",{d:"m3 8 4-4 4 4",key:"11wl7u"}],["path",{d:"M7 4v16",key:"1glfcx"}]])},34270:function(e,t,l){l.d(t,{Z:()=>n});let n=(0,l(14115).Z)("arrow-up-from-line",[["path",{d:"m18 9-6-6-6 6",key:"kcunyi"}],["path",{d:"M12 3v14",key:"7cf3v8"}],["path",{d:"M5 21h14",key:"11awu3"}]])},97042:function(e,t,l){l.d(t,{Z:()=>n});let n=(0,l(14115).Z)("arrow-up-wide-narrow",[["path",{d:"m3 8 4-4 4 4",key:"11wl7u"}],["path",{d:"M7 4v16",key:"1glfcx"}],["path",{d:"M11 12h10",key:"1438ji"}],["path",{d:"M11 16h7",key:"uosisv"}],["path",{d:"M11 20h4",key:"1krc32"}]])},90464:function(e,t,l){l.d(t,{Z:()=>n});let n=(0,l(14115).Z)("chevron-left",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]])},34778:function(e,t,l){l.d(t,{Z:()=>n});let n=(0,l(14115).Z)("circle-help",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]])},82986:function(e,t,l){l.d(t,{Z:()=>n});let n=(0,l(14115).Z)("download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]])},4783:function(e,t,l){l.d(t,{Z:()=>n});let n=(0,l(14115).Z)("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]])},95747:function(e,t,l){l.d(t,{Ee:()=>b,NY:()=>F,fC:()=>R});var n=l(8491),o=l(76418),r=l(81820),i=l(82836),a=l(78737),u=l(31549),s="Avatar",[g,d]=(0,o.b)(s),[p,c]=g(s),f=n.forwardRef((e,t)=>{let{__scopeAvatar:l,...o}=e,[r,i]=n.useState("idle");return(0,u.jsx)(p,{scope:l,imageLoadingStatus:r,onImageLoadingStatusChange:i,children:(0,u.jsx)(a.WV.span,{...o,ref:t})})});f.displayName=s;var m="AvatarImage",h=n.forwardRef((e,t)=>{let{__scopeAvatar:l,src:o,onLoadingStatusChange:s=()=>{},...g}=e,d=c(m,l),p=function(e,{referrerPolicy:t,crossOrigin:l}){let o=n.useSyncExternalStore(S,()=>!0,()=>!1),r=n.useRef(null),a=o?(r.current||(r.current=new window.Image),r.current):null,[u,s]=n.useState(()=>C(a,e));return(0,i.b)(()=>{s(C(a,e))},[a,e]),(0,i.b)(()=>{let e=e=>()=>{s(e)};if(!a)return;let n=e("loaded"),o=e("error");return a.addEventListener("load",n),a.addEventListener("error",o),t&&(a.referrerPolicy=t),"string"==typeof l&&(a.crossOrigin=l),()=>{a.removeEventListener("load",n),a.removeEventListener("error",o)}},[a,l,t]),u}(o,g),f=(0,r.W)(e=>{s(e),d.onImageLoadingStatusChange(e)});return(0,i.b)(()=>{"idle"!==p&&f(p)},[p,f]),"loaded"===p?(0,u.jsx)(a.WV.img,{...g,ref:t,src:o}):null});h.displayName=m;var v="AvatarFallback",w=n.forwardRef((e,t)=>{let{__scopeAvatar:l,delayMs:o,...r}=e,i=c(v,l),[s,g]=n.useState(void 0===o);return n.useEffect(()=>{if(void 0!==o){let e=window.setTimeout(()=>g(!0),o);return()=>window.clearTimeout(e)}},[o]),s&&"loaded"!==i.imageLoadingStatus?(0,u.jsx)(a.WV.span,{...r,ref:t}):null});function C(e,t){return e?t?(e.src!==t&&(e.src=t),e.complete&&e.naturalWidth>0?"loaded":"loading"):"error":"idle"}function S(){return()=>{}}w.displayName=v;var R=f,b=h,F=w},51845:function(e,t,l){l.d(t,{VY:()=>$,ee:()=>N,fC:()=>q,h_:()=>Z,xz:()=>U});var n=l(8491),o=l(71115),r=l(88905),i=l(76418),a=l(46938),u=l(49319),s=l(55568),g=l(1563),d=l(51603),p=l(36278),c=l(36387),f=l(78737),m=l(40349),h=l(81183),v=l(50726),w=l(47319),C=l(31549),S="Popover",[R,b]=(0,i.b)(S,[d.D7]),F=(0,d.D7)(),[M,x]=R(S),y=e=>{let{__scopePopover:t,children:l,open:o,defaultOpen:r,onOpenChange:i,modal:a=!1}=e,u=F(t),s=n.useRef(null),[p,c]=n.useState(!1),[f=!1,m]=(0,h.T)({prop:o,defaultProp:r,onChange:i});return(0,C.jsx)(d.fC,{...u,children:(0,C.jsx)(M,{scope:t,contentId:(0,g.M)(),triggerRef:s,open:f,onOpenChange:m,onOpenToggle:n.useCallback(()=>m(e=>!e),[m]),hasCustomAnchor:p,onCustomAnchorAdd:n.useCallback(()=>c(!0),[]),onCustomAnchorRemove:n.useCallback(()=>c(!1),[]),modal:a,children:l})})};y.displayName=S;var P="PopoverAnchor",V=n.forwardRef((e,t)=>{let{__scopePopover:l,...o}=e,r=x(P,l),i=F(l),{onCustomAnchorAdd:a,onCustomAnchorRemove:u}=r;return n.useEffect(()=>(a(),()=>u()),[a,u]),(0,C.jsx)(d.ee,{...i,...o,ref:t})});V.displayName=P;var I="PopoverTrigger",_=n.forwardRef((e,t)=>{let{__scopePopover:l,...n}=e,i=x(I,l),a=F(l),u=(0,r.e)(t,i.triggerRef),s=(0,C.jsx)(f.WV.button,{type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":B(i.open),...n,ref:u,onClick:(0,o.M)(e.onClick,i.onOpenToggle)});return i.hasCustomAnchor?s:(0,C.jsx)(d.ee,{asChild:!0,...a,children:s})});_.displayName=I;var E="PopoverPortal",[L,A]=R(E,{forceMount:void 0}),G=e=>{let{__scopePopover:t,forceMount:l,children:n,container:o}=e,r=x(E,t);return(0,C.jsx)(L,{scope:t,forceMount:l,children:(0,C.jsx)(c.z,{present:l||r.open,children:(0,C.jsx)(p.h,{asChild:!0,container:o,children:n})})})};G.displayName=E;var D="PopoverContent",H=n.forwardRef((e,t)=>{let l=A(D,e.__scopePopover),{forceMount:n=l.forceMount,...o}=e,r=x(D,e.__scopePopover);return(0,C.jsx)(c.z,{present:n||r.open,children:r.modal?(0,C.jsx)(z,{...o,ref:t}):(0,C.jsx)(k,{...o,ref:t})})});H.displayName=D;var O=(0,m.Z8)("PopoverContent.RemoveScroll"),z=n.forwardRef((e,t)=>{let l=x(D,e.__scopePopover),i=n.useRef(null),a=(0,r.e)(t,i),u=n.useRef(!1);return n.useEffect(()=>{let e=i.current;if(e)return(0,v.Ry)(e)},[]),(0,C.jsx)(w.Z,{as:O,allowPinchZoom:!0,children:(0,C.jsx)(j,{...e,ref:a,trapFocus:l.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,o.M)(e.onCloseAutoFocus,e=>{e.preventDefault(),u.current||l.triggerRef.current?.focus()}),onPointerDownOutside:(0,o.M)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,l=0===t.button&&!0===t.ctrlKey;u.current=2===t.button||l},{checkForDefaultPrevented:!1}),onFocusOutside:(0,o.M)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})})}),k=n.forwardRef((e,t)=>{let l=x(D,e.__scopePopover),o=n.useRef(!1),r=n.useRef(!1);return(0,C.jsx)(j,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(o.current||l.triggerRef.current?.focus(),t.preventDefault()),o.current=!1,r.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(o.current=!0,"pointerdown"===t.detail.originalEvent.type&&(r.current=!0));let n=t.target;l.triggerRef.current?.contains(n)&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&r.current&&t.preventDefault()}})}),j=n.forwardRef((e,t)=>{let{__scopePopover:l,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:r,disableOutsidePointerEvents:i,onEscapeKeyDown:g,onPointerDownOutside:p,onFocusOutside:c,onInteractOutside:f,...m}=e,h=x(D,l),v=F(l);return(0,u.EW)(),(0,C.jsx)(s.M,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:r,children:(0,C.jsx)(a.XB,{asChild:!0,disableOutsidePointerEvents:i,onInteractOutside:f,onEscapeKeyDown:g,onPointerDownOutside:p,onFocusOutside:c,onDismiss:()=>h.onOpenChange(!1),children:(0,C.jsx)(d.VY,{"data-state":B(h.open),role:"dialog",id:h.contentId,...v,...m,ref:t,style:{...m.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),T="PopoverClose";function B(e){return e?"open":"closed"}n.forwardRef((e,t)=>{let{__scopePopover:l,...n}=e,r=x(T,l);return(0,C.jsx)(f.WV.button,{type:"button",...n,ref:t,onClick:(0,o.M)(e.onClick,()=>r.onOpenChange(!1))})}).displayName=T,n.forwardRef((e,t)=>{let{__scopePopover:l,...n}=e,o=F(l);return(0,C.jsx)(d.Eh,{...o,...n,ref:t})}).displayName="PopoverArrow";var q=y,N=V,U=_,Z=G,$=H},90164:function(e,t,l){l.d(t,{b7:()=>i,ie:()=>r});var n=l(8491),o=l(31421);function r(e,t){var l,o,r;return e?"function"==typeof(o=l=e)&&(()=>{let e=Object.getPrototypeOf(o);return e.prototype&&e.prototype.isReactComponent})()||"function"==typeof l||"object"==typeof(r=l)&&"symbol"==typeof r.$$typeof&&["react.memo","react.forward_ref"].includes(r.$$typeof.description)?n.createElement(e,t):e:null}function i(e){let t={state:{},onStateChange:()=>{},renderFallbackValue:null,...e},[l]=n.useState(()=>({current:(0,o.W_)(t)})),[r,i]=n.useState(()=>l.current.initialState);return l.current.setOptions(t=>({...t,...e,state:{...r,...e.state},onStateChange:t=>{i(t),null==e.onStateChange||e.onStateChange(t)}})),l.current}},31421:function(e,t,l){function n(e,t){return"function"==typeof e?e(t):e}function o(e,t){return l=>{t.setState(t=>({...t,[e]:n(l,t[e])}))}}function r(e){return e instanceof Function}function i(e,t,l){let n,o=[];return r=>{let i,a;l.key&&l.debug&&(i=Date.now());let u=e(r);if(!(u.length!==o.length||u.some((e,t)=>o[t]!==e)))return n;if(o=u,l.key&&l.debug&&(a=Date.now()),n=t(...u),null==l||null==l.onChange||l.onChange(n),l.key&&l.debug&&null!=l&&l.debug()){let e=Math.round((Date.now()-i)*100)/100,t=Math.round((Date.now()-a)*100)/100,n=t/16,o=(e,t)=>{for(e=String(e);e.length<t;)e=" "+e;return e};console.info(`%c⏱ ${o(t,5)} /${o(e,5)} ms`,`
|
3
|
+
font-size: .6rem;
|
4
|
+
font-weight: bold;
|
5
|
+
color: hsl(${Math.max(0,Math.min(120-120*n,120))}deg 100% 31%);`,null==l?void 0:l.key)}return n}}function a(e,t,l,n){return{debug:()=>{var l;return null!=(l=null==e?void 0:e.debugAll)?l:e[t]},key:!1,onChange:n}}l.d(t,{G_:()=>Z,W_:()=>q,sC:()=>N,tj:()=>$,vL:()=>U});let u="debugHeaders";function s(e,t,l){var n;let o={id:null!=(n=l.id)?n:t.id,column:t,index:l.index,isPlaceholder:!!l.isPlaceholder,placeholderId:l.placeholderId,depth:l.depth,subHeaders:[],colSpan:0,rowSpan:0,headerGroup:null,getLeafHeaders:()=>{let e=[],t=l=>{l.subHeaders&&l.subHeaders.length&&l.subHeaders.map(t),e.push(l)};return t(o),e},getContext:()=>({table:e,header:o,column:t})};return e._features.forEach(t=>{null==t.createHeader||t.createHeader(o,e)}),o}function g(e,t,l,n){var o,r;let i=0,a=function(e,t){void 0===t&&(t=1),i=Math.max(i,t),e.filter(e=>e.getIsVisible()).forEach(e=>{var l;null!=(l=e.columns)&&l.length&&a(e.columns,t+1)},0)};a(e);let u=[],g=(e,t)=>{let o={depth:t,id:[n,`${t}`].filter(Boolean).join("_"),headers:[]},r=[];e.forEach(e=>{let i,a=[...r].reverse()[0],u=e.column.depth===o.depth,g=!1;if(u&&e.column.parent?i=e.column.parent:(i=e.column,g=!0),a&&(null==a?void 0:a.column)===i)a.subHeaders.push(e);else{let o=s(l,i,{id:[n,t,i.id,null==e?void 0:e.id].filter(Boolean).join("_"),isPlaceholder:g,placeholderId:g?`${r.filter(e=>e.column===i).length}`:void 0,depth:t,index:r.length});o.subHeaders.push(e),r.push(o)}o.headers.push(e),e.headerGroup=o}),u.push(o),t>0&&g(r,t-1)};g(t.map((e,t)=>s(l,e,{depth:i,index:t})),i-1),u.reverse();let d=e=>e.filter(e=>e.column.getIsVisible()).map(e=>{let t=0,l=0,n=[0];return e.subHeaders&&e.subHeaders.length?(n=[],d(e.subHeaders).forEach(e=>{let{colSpan:l,rowSpan:o}=e;t+=l,n.push(o)})):t=1,l+=Math.min(...n),e.colSpan=t,e.rowSpan=l,{colSpan:t,rowSpan:l}});return d(null!=(o=null==(r=u[0])?void 0:r.headers)?o:[]),u}let d=(e,t,l,n,o,r,u)=>{let s={id:t,index:n,original:l,depth:o,parentId:u,_valuesCache:{},_uniqueValuesCache:{},getValue:t=>{if(s._valuesCache.hasOwnProperty(t))return s._valuesCache[t];let l=e.getColumn(t);if(null!=l&&l.accessorFn)return s._valuesCache[t]=l.accessorFn(s.original,n),s._valuesCache[t]},getUniqueValues:t=>{if(s._uniqueValuesCache.hasOwnProperty(t))return s._uniqueValuesCache[t];let l=e.getColumn(t);if(null!=l&&l.accessorFn)return l.columnDef.getUniqueValues?s._uniqueValuesCache[t]=l.columnDef.getUniqueValues(s.original,n):s._uniqueValuesCache[t]=[s.getValue(t)],s._uniqueValuesCache[t]},renderValue:t=>{var l;return null!=(l=s.getValue(t))?l:e.options.renderFallbackValue},subRows:null!=r?r:[],getLeafRows:()=>(function(e,t){let l=[],n=e=>{e.forEach(e=>{l.push(e);let o=t(e);null!=o&&o.length&&n(o)})};return n(e),l})(s.subRows,e=>e.subRows),getParentRow:()=>s.parentId?e.getRow(s.parentId,!0):void 0,getParentRows:()=>{let e=[],t=s;for(;;){let l=t.getParentRow();if(!l)break;e.push(l),t=l}return e.reverse()},getAllCells:i(()=>[e.getAllLeafColumns()],t=>t.map(t=>(function(e,t,l,n){let o={id:`${t.id}_${l.id}`,row:t,column:l,getValue:()=>t.getValue(n),renderValue:()=>{var t;return null!=(t=o.getValue())?t:e.options.renderFallbackValue},getContext:i(()=>[e,l,t,o],(e,t,l,n)=>({table:e,column:t,row:l,cell:n,getValue:n.getValue,renderValue:n.renderValue}),a(e.options,"debugCells","cell.getContext"))};return e._features.forEach(n=>{null==n.createCell||n.createCell(o,l,t,e)},{}),o})(e,s,t,t.id)),a(e.options,"debugRows","getAllCells")),_getAllCellsByColumnId:i(()=>[s.getAllCells()],e=>e.reduce((e,t)=>(e[t.column.id]=t,e),{}),a(e.options,"debugRows","getAllCellsByColumnId"))};for(let t=0;t<e._features.length;t++){let l=e._features[t];null==l||null==l.createRow||l.createRow(s,e)}return s},p=(e,t,l)=>{var n,o;let r=null==l||null==(n=l.toString())?void 0:n.toLowerCase();return!!(null==(o=e.getValue(t))||null==(o=o.toString())||null==(o=o.toLowerCase())?void 0:o.includes(r))};p.autoRemove=e=>b(e);let c=(e,t,l)=>{var n;return!!(null==(n=e.getValue(t))||null==(n=n.toString())?void 0:n.includes(l))};c.autoRemove=e=>b(e);let f=(e,t,l)=>{var n;return(null==(n=e.getValue(t))||null==(n=n.toString())?void 0:n.toLowerCase())===(null==l?void 0:l.toLowerCase())};f.autoRemove=e=>b(e);let m=(e,t,l)=>{var n;return null==(n=e.getValue(t))?void 0:n.includes(l)};m.autoRemove=e=>b(e);let h=(e,t,l)=>!l.some(l=>{var n;return!(null!=(n=e.getValue(t))&&n.includes(l))});h.autoRemove=e=>b(e)||!(null!=e&&e.length);let v=(e,t,l)=>l.some(l=>{var n;return null==(n=e.getValue(t))?void 0:n.includes(l)});v.autoRemove=e=>b(e)||!(null!=e&&e.length);let w=(e,t,l)=>e.getValue(t)===l;w.autoRemove=e=>b(e);let C=(e,t,l)=>e.getValue(t)==l;C.autoRemove=e=>b(e);let S=(e,t,l)=>{let[n,o]=l,r=e.getValue(t);return r>=n&&r<=o};S.resolveFilterValue=e=>{let[t,l]=e,n="number"!=typeof t?parseFloat(t):t,o="number"!=typeof l?parseFloat(l):l,r=null===t||Number.isNaN(n)?-1/0:n,i=null===l||Number.isNaN(o)?1/0:o;if(r>i){let e=r;r=i,i=e}return[r,i]},S.autoRemove=e=>b(e)||b(e[0])&&b(e[1]);let R={includesString:p,includesStringSensitive:c,equalsString:f,arrIncludes:m,arrIncludesAll:h,arrIncludesSome:v,equals:w,weakEquals:C,inNumberRange:S};function b(e){return null==e||""===e}function F(e,t,l){return!!e&&!!e.autoRemove&&e.autoRemove(t,l)||void 0===t||"string"==typeof t&&!t}let M={sum:(e,t,l)=>l.reduce((t,l)=>{let n=l.getValue(e);return t+("number"==typeof n?n:0)},0),min:(e,t,l)=>{let n;return l.forEach(t=>{let l=t.getValue(e);null!=l&&(n>l||void 0===n&&l>=l)&&(n=l)}),n},max:(e,t,l)=>{let n;return l.forEach(t=>{let l=t.getValue(e);null!=l&&(n<l||void 0===n&&l>=l)&&(n=l)}),n},extent:(e,t,l)=>{let n,o;return l.forEach(t=>{let l=t.getValue(e);null!=l&&(void 0===n?l>=l&&(n=o=l):(n>l&&(n=l),o<l&&(o=l)))}),[n,o]},mean:(e,t)=>{let l=0,n=0;if(t.forEach(t=>{let o=t.getValue(e);null!=o&&(o*=1)>=o&&(++l,n+=o)}),l)return n/l},median:(e,t)=>{if(!t.length)return;let l=t.map(t=>t.getValue(e));if(!(Array.isArray(l)&&l.every(e=>"number"==typeof e)))return;if(1===l.length)return l[0];let n=Math.floor(l.length/2),o=l.sort((e,t)=>e-t);return l.length%2!=0?o[n]:(o[n-1]+o[n])/2},unique:(e,t)=>Array.from(new Set(t.map(t=>t.getValue(e))).values()),uniqueCount:(e,t)=>new Set(t.map(t=>t.getValue(e))).size,count:(e,t)=>t.length},x=()=>({left:[],right:[]}),y={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},P=()=>({startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}),V=null;function I(e){return"touchstart"===e.type}function _(e,t){return t?"center"===t?e.getCenterVisibleLeafColumns():"left"===t?e.getLeftVisibleLeafColumns():e.getRightVisibleLeafColumns():e.getVisibleLeafColumns()}let E=()=>({pageIndex:0,pageSize:10}),L=()=>({top:[],bottom:[]}),A=(e,t,l,n,o)=>{var r;let i=o.getRow(t,!0);l?(i.getCanMultiSelect()||Object.keys(e).forEach(t=>delete e[t]),i.getCanSelect()&&(e[t]=!0)):delete e[t],n&&null!=(r=i.subRows)&&r.length&&i.getCanSelectSubRows()&&i.subRows.forEach(t=>A(e,t.id,l,n,o))};function G(e,t){let l=e.getState().rowSelection,n=[],o={},r=function(e,t){return e.map(e=>{var t;let i=D(e,l);if(i&&(n.push(e),o[e.id]=e),null!=(t=e.subRows)&&t.length&&(e={...e,subRows:r(e.subRows)}),i)return e}).filter(Boolean)};return{rows:r(t.rows),flatRows:n,rowsById:o}}function D(e,t){var l;return null!=(l=t[e.id])&&l}function H(e,t,l){var n;if(!(null!=(n=e.subRows)&&n.length))return!1;let o=!0,r=!1;return e.subRows.forEach(e=>{if((!r||o)&&(e.getCanSelect()&&(D(e,t)?r=!0:o=!1),e.subRows&&e.subRows.length)){let l=H(e,t);"all"===l?r=!0:("some"===l&&(r=!0),o=!1)}}),o?"all":!!r&&"some"}let O=/([0-9]+)/gm;function z(e,t){return e===t?0:e>t?1:-1}function k(e){return"number"==typeof e?isNaN(e)||e===1/0||e===-1/0?"":String(e):"string"==typeof e?e:""}function j(e,t){let l=e.split(O).filter(Boolean),n=t.split(O).filter(Boolean);for(;l.length&&n.length;){let e=l.shift(),t=n.shift(),o=parseInt(e,10),r=parseInt(t,10),i=[o,r].sort();if(isNaN(i[0])){if(e>t)return 1;if(t>e)return -1;continue}if(isNaN(i[1]))return isNaN(o)?-1:1;if(o>r)return 1;if(r>o)return -1}return l.length-n.length}let T={alphanumeric:(e,t,l)=>j(k(e.getValue(l)).toLowerCase(),k(t.getValue(l)).toLowerCase()),alphanumericCaseSensitive:(e,t,l)=>j(k(e.getValue(l)),k(t.getValue(l))),text:(e,t,l)=>z(k(e.getValue(l)).toLowerCase(),k(t.getValue(l)).toLowerCase()),textCaseSensitive:(e,t,l)=>z(k(e.getValue(l)),k(t.getValue(l))),datetime:(e,t,l)=>{let n=e.getValue(l),o=t.getValue(l);return n>o?1:n<o?-1:0},basic:(e,t,l)=>z(e.getValue(l),t.getValue(l))},B=[{createTable:e=>{e.getHeaderGroups=i(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,l,n,o)=>{var r,i;let a=null!=(r=null==n?void 0:n.map(e=>l.find(t=>t.id===e)).filter(Boolean))?r:[],u=null!=(i=null==o?void 0:o.map(e=>l.find(t=>t.id===e)).filter(Boolean))?i:[];return g(t,[...a,...l.filter(e=>!(null!=n&&n.includes(e.id))&&!(null!=o&&o.includes(e.id))),...u],e)},a(e.options,u,"getHeaderGroups")),e.getCenterHeaderGroups=i(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,l,n,o)=>g(t,l=l.filter(e=>!(null!=n&&n.includes(e.id))&&!(null!=o&&o.includes(e.id))),e,"center"),a(e.options,u,"getCenterHeaderGroups")),e.getLeftHeaderGroups=i(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left],(t,l,n)=>{var o;return g(t,null!=(o=null==n?void 0:n.map(e=>l.find(t=>t.id===e)).filter(Boolean))?o:[],e,"left")},a(e.options,u,"getLeftHeaderGroups")),e.getRightHeaderGroups=i(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.right],(t,l,n)=>{var o;return g(t,null!=(o=null==n?void 0:n.map(e=>l.find(t=>t.id===e)).filter(Boolean))?o:[],e,"right")},a(e.options,u,"getRightHeaderGroups")),e.getFooterGroups=i(()=>[e.getHeaderGroups()],e=>[...e].reverse(),a(e.options,u,"getFooterGroups")),e.getLeftFooterGroups=i(()=>[e.getLeftHeaderGroups()],e=>[...e].reverse(),a(e.options,u,"getLeftFooterGroups")),e.getCenterFooterGroups=i(()=>[e.getCenterHeaderGroups()],e=>[...e].reverse(),a(e.options,u,"getCenterFooterGroups")),e.getRightFooterGroups=i(()=>[e.getRightHeaderGroups()],e=>[...e].reverse(),a(e.options,u,"getRightFooterGroups")),e.getFlatHeaders=i(()=>[e.getHeaderGroups()],e=>e.map(e=>e.headers).flat(),a(e.options,u,"getFlatHeaders")),e.getLeftFlatHeaders=i(()=>[e.getLeftHeaderGroups()],e=>e.map(e=>e.headers).flat(),a(e.options,u,"getLeftFlatHeaders")),e.getCenterFlatHeaders=i(()=>[e.getCenterHeaderGroups()],e=>e.map(e=>e.headers).flat(),a(e.options,u,"getCenterFlatHeaders")),e.getRightFlatHeaders=i(()=>[e.getRightHeaderGroups()],e=>e.map(e=>e.headers).flat(),a(e.options,u,"getRightFlatHeaders")),e.getCenterLeafHeaders=i(()=>[e.getCenterFlatHeaders()],e=>e.filter(e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}),a(e.options,u,"getCenterLeafHeaders")),e.getLeftLeafHeaders=i(()=>[e.getLeftFlatHeaders()],e=>e.filter(e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}),a(e.options,u,"getLeftLeafHeaders")),e.getRightLeafHeaders=i(()=>[e.getRightFlatHeaders()],e=>e.filter(e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}),a(e.options,u,"getRightLeafHeaders")),e.getLeafHeaders=i(()=>[e.getLeftHeaderGroups(),e.getCenterHeaderGroups(),e.getRightHeaderGroups()],(e,t,l)=>{var n,o,r,i,a,u;return[...null!=(n=null==(o=e[0])?void 0:o.headers)?n:[],...null!=(r=null==(i=t[0])?void 0:i.headers)?r:[],...null!=(a=null==(u=l[0])?void 0:u.headers)?a:[]].map(e=>e.getLeafHeaders()).flat()},a(e.options,u,"getLeafHeaders"))}},{getInitialState:e=>({columnVisibility:{},...e}),getDefaultOptions:e=>({onColumnVisibilityChange:o("columnVisibility",e)}),createColumn:(e,t)=>{e.toggleVisibility=l=>{e.getCanHide()&&t.setColumnVisibility(t=>({...t,[e.id]:null!=l?l:!e.getIsVisible()}))},e.getIsVisible=()=>{var l,n;let o=e.columns;return null==(l=o.length?o.some(e=>e.getIsVisible()):null==(n=t.getState().columnVisibility)?void 0:n[e.id])||l},e.getCanHide=()=>{var l,n;return(null==(l=e.columnDef.enableHiding)||l)&&(null==(n=t.options.enableHiding)||n)},e.getToggleVisibilityHandler=()=>t=>{null==e.toggleVisibility||e.toggleVisibility(t.target.checked)}},createRow:(e,t)=>{e._getAllVisibleCells=i(()=>[e.getAllCells(),t.getState().columnVisibility],e=>e.filter(e=>e.column.getIsVisible()),a(t.options,"debugRows","_getAllVisibleCells")),e.getVisibleCells=i(()=>[e.getLeftVisibleCells(),e.getCenterVisibleCells(),e.getRightVisibleCells()],(e,t,l)=>[...e,...t,...l],a(t.options,"debugRows","getVisibleCells"))},createTable:e=>{let t=(t,l)=>i(()=>[l(),l().filter(e=>e.getIsVisible()).map(e=>e.id).join("_")],e=>e.filter(e=>null==e.getIsVisible?void 0:e.getIsVisible()),a(e.options,"debugColumns",t));e.getVisibleFlatColumns=t("getVisibleFlatColumns",()=>e.getAllFlatColumns()),e.getVisibleLeafColumns=t("getVisibleLeafColumns",()=>e.getAllLeafColumns()),e.getLeftVisibleLeafColumns=t("getLeftVisibleLeafColumns",()=>e.getLeftLeafColumns()),e.getRightVisibleLeafColumns=t("getRightVisibleLeafColumns",()=>e.getRightLeafColumns()),e.getCenterVisibleLeafColumns=t("getCenterVisibleLeafColumns",()=>e.getCenterLeafColumns()),e.setColumnVisibility=t=>null==e.options.onColumnVisibilityChange?void 0:e.options.onColumnVisibilityChange(t),e.resetColumnVisibility=t=>{var l;e.setColumnVisibility(t?{}:null!=(l=e.initialState.columnVisibility)?l:{})},e.toggleAllColumnsVisible=t=>{var l;t=null!=(l=t)?l:!e.getIsAllColumnsVisible(),e.setColumnVisibility(e.getAllLeafColumns().reduce((e,l)=>({...e,[l.id]:t||!(null!=l.getCanHide&&l.getCanHide())}),{}))},e.getIsAllColumnsVisible=()=>!e.getAllLeafColumns().some(e=>!(null!=e.getIsVisible&&e.getIsVisible())),e.getIsSomeColumnsVisible=()=>e.getAllLeafColumns().some(e=>null==e.getIsVisible?void 0:e.getIsVisible()),e.getToggleAllColumnsVisibilityHandler=()=>t=>{var l;e.toggleAllColumnsVisible(null==(l=t.target)?void 0:l.checked)}}},{getInitialState:e=>({columnOrder:[],...e}),getDefaultOptions:e=>({onColumnOrderChange:o("columnOrder",e)}),createColumn:(e,t)=>{e.getIndex=i(e=>[_(t,e)],t=>t.findIndex(t=>t.id===e.id),a(t.options,"debugColumns","getIndex")),e.getIsFirstColumn=l=>{var n;return(null==(n=_(t,l)[0])?void 0:n.id)===e.id},e.getIsLastColumn=l=>{var n;let o=_(t,l);return(null==(n=o[o.length-1])?void 0:n.id)===e.id}},createTable:e=>{e.setColumnOrder=t=>null==e.options.onColumnOrderChange?void 0:e.options.onColumnOrderChange(t),e.resetColumnOrder=t=>{var l;e.setColumnOrder(t?[]:null!=(l=e.initialState.columnOrder)?l:[])},e._getOrderColumnsFn=i(()=>[e.getState().columnOrder,e.getState().grouping,e.options.groupedColumnMode],(e,t,l)=>n=>{let o=[];if(null!=e&&e.length){let t=[...e],l=[...n];for(;l.length&&t.length;){let e=t.shift(),n=l.findIndex(t=>t.id===e);n>-1&&o.push(l.splice(n,1)[0])}o=[...o,...l]}else o=n;var r=o;if(!(null!=t&&t.length)||!l)return r;let i=r.filter(e=>!t.includes(e.id));return"remove"===l?i:[...t.map(e=>r.find(t=>t.id===e)).filter(Boolean),...i]},a(e.options,"debugTable","_getOrderColumnsFn"))}},{getInitialState:e=>({columnPinning:x(),...e}),getDefaultOptions:e=>({onColumnPinningChange:o("columnPinning",e)}),createColumn:(e,t)=>{e.pin=l=>{let n=e.getLeafColumns().map(e=>e.id).filter(Boolean);t.setColumnPinning(e=>{var t,o,r,i,a,u;return"right"===l?{left:(null!=(r=null==e?void 0:e.left)?r:[]).filter(e=>!(null!=n&&n.includes(e))),right:[...(null!=(i=null==e?void 0:e.right)?i:[]).filter(e=>!(null!=n&&n.includes(e))),...n]}:"left"===l?{left:[...(null!=(a=null==e?void 0:e.left)?a:[]).filter(e=>!(null!=n&&n.includes(e))),...n],right:(null!=(u=null==e?void 0:e.right)?u:[]).filter(e=>!(null!=n&&n.includes(e)))}:{left:(null!=(t=null==e?void 0:e.left)?t:[]).filter(e=>!(null!=n&&n.includes(e))),right:(null!=(o=null==e?void 0:e.right)?o:[]).filter(e=>!(null!=n&&n.includes(e)))}})},e.getCanPin=()=>e.getLeafColumns().some(e=>{var l,n,o;return(null==(l=e.columnDef.enablePinning)||l)&&(null==(n=null!=(o=t.options.enableColumnPinning)?o:t.options.enablePinning)||n)}),e.getIsPinned=()=>{let l=e.getLeafColumns().map(e=>e.id),{left:n,right:o}=t.getState().columnPinning,r=l.some(e=>null==n?void 0:n.includes(e)),i=l.some(e=>null==o?void 0:o.includes(e));return r?"left":!!i&&"right"},e.getPinnedIndex=()=>{var l,n;let o=e.getIsPinned();return o?null!=(l=null==(n=t.getState().columnPinning)||null==(n=n[o])?void 0:n.indexOf(e.id))?l:-1:0}},createRow:(e,t)=>{e.getCenterVisibleCells=i(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,t.getState().columnPinning.right],(e,t,l)=>{let n=[...null!=t?t:[],...null!=l?l:[]];return e.filter(e=>!n.includes(e.column.id))},a(t.options,"debugRows","getCenterVisibleCells")),e.getLeftVisibleCells=i(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left],(e,t)=>(null!=t?t:[]).map(t=>e.find(e=>e.column.id===t)).filter(Boolean).map(e=>({...e,position:"left"})),a(t.options,"debugRows","getLeftVisibleCells")),e.getRightVisibleCells=i(()=>[e._getAllVisibleCells(),t.getState().columnPinning.right],(e,t)=>(null!=t?t:[]).map(t=>e.find(e=>e.column.id===t)).filter(Boolean).map(e=>({...e,position:"right"})),a(t.options,"debugRows","getRightVisibleCells"))},createTable:e=>{e.setColumnPinning=t=>null==e.options.onColumnPinningChange?void 0:e.options.onColumnPinningChange(t),e.resetColumnPinning=t=>{var l,n;return e.setColumnPinning(t?x():null!=(l=null==(n=e.initialState)?void 0:n.columnPinning)?l:x())},e.getIsSomeColumnsPinned=t=>{var l,n,o;let r=e.getState().columnPinning;return t?!!(null==(l=r[t])?void 0:l.length):!!((null==(n=r.left)?void 0:n.length)||(null==(o=r.right)?void 0:o.length))},e.getLeftLeafColumns=i(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left],(e,t)=>(null!=t?t:[]).map(t=>e.find(e=>e.id===t)).filter(Boolean),a(e.options,"debugColumns","getLeftLeafColumns")),e.getRightLeafColumns=i(()=>[e.getAllLeafColumns(),e.getState().columnPinning.right],(e,t)=>(null!=t?t:[]).map(t=>e.find(e=>e.id===t)).filter(Boolean),a(e.options,"debugColumns","getRightLeafColumns")),e.getCenterLeafColumns=i(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(e,t,l)=>{let n=[...null!=t?t:[],...null!=l?l:[]];return e.filter(e=>!n.includes(e.id))},a(e.options,"debugColumns","getCenterLeafColumns"))}},{createColumn:(e,t)=>{e._getFacetedRowModel=t.options.getFacetedRowModel&&t.options.getFacetedRowModel(t,e.id),e.getFacetedRowModel=()=>e._getFacetedRowModel?e._getFacetedRowModel():t.getPreFilteredRowModel(),e._getFacetedUniqueValues=t.options.getFacetedUniqueValues&&t.options.getFacetedUniqueValues(t,e.id),e.getFacetedUniqueValues=()=>e._getFacetedUniqueValues?e._getFacetedUniqueValues():new Map,e._getFacetedMinMaxValues=t.options.getFacetedMinMaxValues&&t.options.getFacetedMinMaxValues(t,e.id),e.getFacetedMinMaxValues=()=>{if(e._getFacetedMinMaxValues)return e._getFacetedMinMaxValues()}}},{getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:e=>({columnFilters:[],...e}),getDefaultOptions:e=>({onColumnFiltersChange:o("columnFilters",e),filterFromLeafRows:!1,maxLeafRowFilterDepth:100}),createColumn:(e,t)=>{e.getAutoFilterFn=()=>{let l=t.getCoreRowModel().flatRows[0],n=null==l?void 0:l.getValue(e.id);return"string"==typeof n?R.includesString:"number"==typeof n?R.inNumberRange:"boolean"==typeof n||null!==n&&"object"==typeof n?R.equals:Array.isArray(n)?R.arrIncludes:R.weakEquals},e.getFilterFn=()=>{var l,n;return r(e.columnDef.filterFn)?e.columnDef.filterFn:"auto"===e.columnDef.filterFn?e.getAutoFilterFn():null!=(l=null==(n=t.options.filterFns)?void 0:n[e.columnDef.filterFn])?l:R[e.columnDef.filterFn]},e.getCanFilter=()=>{var l,n,o;return(null==(l=e.columnDef.enableColumnFilter)||l)&&(null==(n=t.options.enableColumnFilters)||n)&&(null==(o=t.options.enableFilters)||o)&&!!e.accessorFn},e.getIsFiltered=()=>e.getFilterIndex()>-1,e.getFilterValue=()=>{var l;return null==(l=t.getState().columnFilters)||null==(l=l.find(t=>t.id===e.id))?void 0:l.value},e.getFilterIndex=()=>{var l,n;return null!=(l=null==(n=t.getState().columnFilters)?void 0:n.findIndex(t=>t.id===e.id))?l:-1},e.setFilterValue=l=>{t.setColumnFilters(t=>{var o,r;let i=e.getFilterFn(),a=null==t?void 0:t.find(t=>t.id===e.id),u=n(l,a?a.value:void 0);if(F(i,u,e))return null!=(o=null==t?void 0:t.filter(t=>t.id!==e.id))?o:[];let s={id:e.id,value:u};return a?null!=(r=null==t?void 0:t.map(t=>t.id===e.id?s:t))?r:[]:null!=t&&t.length?[...t,s]:[s]})}},createRow:(e,t)=>{e.columnFilters={},e.columnFiltersMeta={}},createTable:e=>{e.setColumnFilters=t=>{let l=e.getAllLeafColumns();null==e.options.onColumnFiltersChange||e.options.onColumnFiltersChange(e=>{var o;return null==(o=n(t,e))?void 0:o.filter(e=>{let t=l.find(t=>t.id===e.id);return!(t&&F(t.getFilterFn(),e.value,t))&&!0})})},e.resetColumnFilters=t=>{var l,n;e.setColumnFilters(t?[]:null!=(l=null==(n=e.initialState)?void 0:n.columnFilters)?l:[])},e.getPreFilteredRowModel=()=>e.getCoreRowModel(),e.getFilteredRowModel=()=>(!e._getFilteredRowModel&&e.options.getFilteredRowModel&&(e._getFilteredRowModel=e.options.getFilteredRowModel(e)),e.options.manualFiltering||!e._getFilteredRowModel)?e.getPreFilteredRowModel():e._getFilteredRowModel()}},{createTable:e=>{e._getGlobalFacetedRowModel=e.options.getFacetedRowModel&&e.options.getFacetedRowModel(e,"__global__"),e.getGlobalFacetedRowModel=()=>e.options.manualFiltering||!e._getGlobalFacetedRowModel?e.getPreFilteredRowModel():e._getGlobalFacetedRowModel(),e._getGlobalFacetedUniqueValues=e.options.getFacetedUniqueValues&&e.options.getFacetedUniqueValues(e,"__global__"),e.getGlobalFacetedUniqueValues=()=>e._getGlobalFacetedUniqueValues?e._getGlobalFacetedUniqueValues():new Map,e._getGlobalFacetedMinMaxValues=e.options.getFacetedMinMaxValues&&e.options.getFacetedMinMaxValues(e,"__global__"),e.getGlobalFacetedMinMaxValues=()=>{if(e._getGlobalFacetedMinMaxValues)return e._getGlobalFacetedMinMaxValues()}}},{getInitialState:e=>({globalFilter:void 0,...e}),getDefaultOptions:e=>({onGlobalFilterChange:o("globalFilter",e),globalFilterFn:"auto",getColumnCanGlobalFilter:t=>{var l;let n=null==(l=e.getCoreRowModel().flatRows[0])||null==(l=l._getAllCellsByColumnId()[t.id])?void 0:l.getValue();return"string"==typeof n||"number"==typeof n}}),createColumn:(e,t)=>{e.getCanGlobalFilter=()=>{var l,n,o,r;return(null==(l=e.columnDef.enableGlobalFilter)||l)&&(null==(n=t.options.enableGlobalFilter)||n)&&(null==(o=t.options.enableFilters)||o)&&(null==(r=null==t.options.getColumnCanGlobalFilter?void 0:t.options.getColumnCanGlobalFilter(e))||r)&&!!e.accessorFn}},createTable:e=>{e.getGlobalAutoFilterFn=()=>R.includesString,e.getGlobalFilterFn=()=>{var t,l;let{globalFilterFn:n}=e.options;return r(n)?n:"auto"===n?e.getGlobalAutoFilterFn():null!=(t=null==(l=e.options.filterFns)?void 0:l[n])?t:R[n]},e.setGlobalFilter=t=>{null==e.options.onGlobalFilterChange||e.options.onGlobalFilterChange(t)},e.resetGlobalFilter=t=>{e.setGlobalFilter(t?void 0:e.initialState.globalFilter)}}},{getInitialState:e=>({sorting:[],...e}),getDefaultColumnDef:()=>({sortingFn:"auto",sortUndefined:1}),getDefaultOptions:e=>({onSortingChange:o("sorting",e),isMultiSortEvent:e=>e.shiftKey}),createColumn:(e,t)=>{e.getAutoSortingFn=()=>{let l=t.getFilteredRowModel().flatRows.slice(10),n=!1;for(let t of l){let l=null==t?void 0:t.getValue(e.id);if("[object Date]"===Object.prototype.toString.call(l))return T.datetime;if("string"==typeof l&&(n=!0,l.split(O).length>1))return T.alphanumeric}return n?T.text:T.basic},e.getAutoSortDir=()=>{let l=t.getFilteredRowModel().flatRows[0];return"string"==typeof(null==l?void 0:l.getValue(e.id))?"asc":"desc"},e.getSortingFn=()=>{var l,n;if(!e)throw Error();return r(e.columnDef.sortingFn)?e.columnDef.sortingFn:"auto"===e.columnDef.sortingFn?e.getAutoSortingFn():null!=(l=null==(n=t.options.sortingFns)?void 0:n[e.columnDef.sortingFn])?l:T[e.columnDef.sortingFn]},e.toggleSorting=(l,n)=>{let o=e.getNextSortingOrder(),r=null!=l;t.setSorting(i=>{let a,u=null==i?void 0:i.find(t=>t.id===e.id),s=null==i?void 0:i.findIndex(t=>t.id===e.id),g=[],d=r?l:"desc"===o;if("toggle"!=(a=null!=i&&i.length&&e.getCanMultiSort()&&n?u?"toggle":"add":null!=i&&i.length&&s!==i.length-1?"replace":u?"toggle":"replace")||r||o||(a="remove"),"add"===a){var p;(g=[...i,{id:e.id,desc:d}]).splice(0,g.length-(null!=(p=t.options.maxMultiSortColCount)?p:Number.MAX_SAFE_INTEGER))}else g="toggle"===a?i.map(t=>t.id===e.id?{...t,desc:d}:t):"remove"===a?i.filter(t=>t.id!==e.id):[{id:e.id,desc:d}];return g})},e.getFirstSortDir=()=>{var l,n;return(null!=(l=null!=(n=e.columnDef.sortDescFirst)?n:t.options.sortDescFirst)?l:"desc"===e.getAutoSortDir())?"desc":"asc"},e.getNextSortingOrder=l=>{var n,o;let r=e.getFirstSortDir(),i=e.getIsSorted();return i?(i===r||null!=(n=t.options.enableSortingRemoval)&&!n||!!l&&null!=(o=t.options.enableMultiRemove)&&!o)&&("desc"===i?"asc":"desc"):r},e.getCanSort=()=>{var l,n;return(null==(l=e.columnDef.enableSorting)||l)&&(null==(n=t.options.enableSorting)||n)&&!!e.accessorFn},e.getCanMultiSort=()=>{var l,n;return null!=(l=null!=(n=e.columnDef.enableMultiSort)?n:t.options.enableMultiSort)?l:!!e.accessorFn},e.getIsSorted=()=>{var l;let n=null==(l=t.getState().sorting)?void 0:l.find(t=>t.id===e.id);return!!n&&(n.desc?"desc":"asc")},e.getSortIndex=()=>{var l,n;return null!=(l=null==(n=t.getState().sorting)?void 0:n.findIndex(t=>t.id===e.id))?l:-1},e.clearSorting=()=>{t.setSorting(t=>null!=t&&t.length?t.filter(t=>t.id!==e.id):[])},e.getToggleSortingHandler=()=>{let l=e.getCanSort();return n=>{l&&(null==n.persist||n.persist(),null==e.toggleSorting||e.toggleSorting(void 0,!!e.getCanMultiSort()&&(null==t.options.isMultiSortEvent?void 0:t.options.isMultiSortEvent(n))))}}},createTable:e=>{e.setSorting=t=>null==e.options.onSortingChange?void 0:e.options.onSortingChange(t),e.resetSorting=t=>{var l,n;e.setSorting(t?[]:null!=(l=null==(n=e.initialState)?void 0:n.sorting)?l:[])},e.getPreSortedRowModel=()=>e.getGroupedRowModel(),e.getSortedRowModel=()=>(!e._getSortedRowModel&&e.options.getSortedRowModel&&(e._getSortedRowModel=e.options.getSortedRowModel(e)),e.options.manualSorting||!e._getSortedRowModel)?e.getPreSortedRowModel():e._getSortedRowModel()}},{getDefaultColumnDef:()=>({aggregatedCell:e=>{var t,l;return null!=(t=null==(l=e.getValue())||null==l.toString?void 0:l.toString())?t:null},aggregationFn:"auto"}),getInitialState:e=>({grouping:[],...e}),getDefaultOptions:e=>({onGroupingChange:o("grouping",e),groupedColumnMode:"reorder"}),createColumn:(e,t)=>{e.toggleGrouping=()=>{t.setGrouping(t=>null!=t&&t.includes(e.id)?t.filter(t=>t!==e.id):[...null!=t?t:[],e.id])},e.getCanGroup=()=>{var l,n;return(null==(l=e.columnDef.enableGrouping)||l)&&(null==(n=t.options.enableGrouping)||n)&&(!!e.accessorFn||!!e.columnDef.getGroupingValue)},e.getIsGrouped=()=>{var l;return null==(l=t.getState().grouping)?void 0:l.includes(e.id)},e.getGroupedIndex=()=>{var l;return null==(l=t.getState().grouping)?void 0:l.indexOf(e.id)},e.getToggleGroupingHandler=()=>{let t=e.getCanGroup();return()=>{t&&e.toggleGrouping()}},e.getAutoAggregationFn=()=>{let l=t.getCoreRowModel().flatRows[0],n=null==l?void 0:l.getValue(e.id);return"number"==typeof n?M.sum:"[object Date]"===Object.prototype.toString.call(n)?M.extent:void 0},e.getAggregationFn=()=>{var l,n;if(!e)throw Error();return r(e.columnDef.aggregationFn)?e.columnDef.aggregationFn:"auto"===e.columnDef.aggregationFn?e.getAutoAggregationFn():null!=(l=null==(n=t.options.aggregationFns)?void 0:n[e.columnDef.aggregationFn])?l:M[e.columnDef.aggregationFn]}},createTable:e=>{e.setGrouping=t=>null==e.options.onGroupingChange?void 0:e.options.onGroupingChange(t),e.resetGrouping=t=>{var l,n;e.setGrouping(t?[]:null!=(l=null==(n=e.initialState)?void 0:n.grouping)?l:[])},e.getPreGroupedRowModel=()=>e.getFilteredRowModel(),e.getGroupedRowModel=()=>(!e._getGroupedRowModel&&e.options.getGroupedRowModel&&(e._getGroupedRowModel=e.options.getGroupedRowModel(e)),e.options.manualGrouping||!e._getGroupedRowModel)?e.getPreGroupedRowModel():e._getGroupedRowModel()},createRow:(e,t)=>{e.getIsGrouped=()=>!!e.groupingColumnId,e.getGroupingValue=l=>{if(e._groupingValuesCache.hasOwnProperty(l))return e._groupingValuesCache[l];let n=t.getColumn(l);return null!=n&&n.columnDef.getGroupingValue?(e._groupingValuesCache[l]=n.columnDef.getGroupingValue(e.original),e._groupingValuesCache[l]):e.getValue(l)},e._groupingValuesCache={}},createCell:(e,t,l,n)=>{e.getIsGrouped=()=>t.getIsGrouped()&&t.id===l.groupingColumnId,e.getIsPlaceholder=()=>!e.getIsGrouped()&&t.getIsGrouped(),e.getIsAggregated=()=>{var t;return!e.getIsGrouped()&&!e.getIsPlaceholder()&&!!(null!=(t=l.subRows)&&t.length)}}},{getInitialState:e=>({expanded:{},...e}),getDefaultOptions:e=>({onExpandedChange:o("expanded",e),paginateExpandedRows:!0}),createTable:e=>{let t=!1,l=!1;e._autoResetExpanded=()=>{var n,o;if(!t)return void e._queue(()=>{t=!0});if(null!=(n=null!=(o=e.options.autoResetAll)?o:e.options.autoResetExpanded)?n:!e.options.manualExpanding){if(l)return;l=!0,e._queue(()=>{e.resetExpanded(),l=!1})}},e.setExpanded=t=>null==e.options.onExpandedChange?void 0:e.options.onExpandedChange(t),e.toggleAllRowsExpanded=t=>{(null!=t?t:!e.getIsAllRowsExpanded())?e.setExpanded(!0):e.setExpanded({})},e.resetExpanded=t=>{var l,n;e.setExpanded(t?{}:null!=(l=null==(n=e.initialState)?void 0:n.expanded)?l:{})},e.getCanSomeRowsExpand=()=>e.getPrePaginationRowModel().flatRows.some(e=>e.getCanExpand()),e.getToggleAllRowsExpandedHandler=()=>t=>{null==t.persist||t.persist(),e.toggleAllRowsExpanded()},e.getIsSomeRowsExpanded=()=>{let t=e.getState().expanded;return!0===t||Object.values(t).some(Boolean)},e.getIsAllRowsExpanded=()=>{let t=e.getState().expanded;return"boolean"==typeof t?!0===t:!(!Object.keys(t).length||e.getRowModel().flatRows.some(e=>!e.getIsExpanded()))},e.getExpandedDepth=()=>{let t=0;return(!0===e.getState().expanded?Object.keys(e.getRowModel().rowsById):Object.keys(e.getState().expanded)).forEach(e=>{let l=e.split(".");t=Math.max(t,l.length)}),t},e.getPreExpandedRowModel=()=>e.getSortedRowModel(),e.getExpandedRowModel=()=>(!e._getExpandedRowModel&&e.options.getExpandedRowModel&&(e._getExpandedRowModel=e.options.getExpandedRowModel(e)),e.options.manualExpanding||!e._getExpandedRowModel)?e.getPreExpandedRowModel():e._getExpandedRowModel()},createRow:(e,t)=>{e.toggleExpanded=l=>{t.setExpanded(n=>{var o;let r=!0===n||!!(null!=n&&n[e.id]),i={};if(!0===n?Object.keys(t.getRowModel().rowsById).forEach(e=>{i[e]=!0}):i=n,l=null!=(o=l)?o:!r,!r&&l)return{...i,[e.id]:!0};if(r&&!l){let{[e.id]:t,...l}=i;return l}return n})},e.getIsExpanded=()=>{var l;let n=t.getState().expanded;return!!(null!=(l=null==t.options.getIsRowExpanded?void 0:t.options.getIsRowExpanded(e))?l:!0===n||(null==n?void 0:n[e.id]))},e.getCanExpand=()=>{var l,n,o;return null!=(l=null==t.options.getRowCanExpand?void 0:t.options.getRowCanExpand(e))?l:(null==(n=t.options.enableExpanding)||n)&&!!(null!=(o=e.subRows)&&o.length)},e.getIsAllParentsExpanded=()=>{let l=!0,n=e;for(;l&&n.parentId;)l=(n=t.getRow(n.parentId,!0)).getIsExpanded();return l},e.getToggleExpandedHandler=()=>{let t=e.getCanExpand();return()=>{t&&e.toggleExpanded()}}}},{getInitialState:e=>({...e,pagination:{...E(),...null==e?void 0:e.pagination}}),getDefaultOptions:e=>({onPaginationChange:o("pagination",e)}),createTable:e=>{let t=!1,l=!1;e._autoResetPageIndex=()=>{var n,o;if(!t)return void e._queue(()=>{t=!0});if(null!=(n=null!=(o=e.options.autoResetAll)?o:e.options.autoResetPageIndex)?n:!e.options.manualPagination){if(l)return;l=!0,e._queue(()=>{e.resetPageIndex(),l=!1})}},e.setPagination=t=>null==e.options.onPaginationChange?void 0:e.options.onPaginationChange(e=>n(t,e)),e.resetPagination=t=>{var l;e.setPagination(t?E():null!=(l=e.initialState.pagination)?l:E())},e.setPageIndex=t=>{e.setPagination(l=>{let o=n(t,l.pageIndex);return o=Math.max(0,Math.min(o,void 0===e.options.pageCount||-1===e.options.pageCount?Number.MAX_SAFE_INTEGER:e.options.pageCount-1)),{...l,pageIndex:o}})},e.resetPageIndex=t=>{var l,n;e.setPageIndex(t?0:null!=(l=null==(n=e.initialState)||null==(n=n.pagination)?void 0:n.pageIndex)?l:0)},e.resetPageSize=t=>{var l,n;e.setPageSize(t?10:null!=(l=null==(n=e.initialState)||null==(n=n.pagination)?void 0:n.pageSize)?l:10)},e.setPageSize=t=>{e.setPagination(e=>{let l=Math.max(1,n(t,e.pageSize)),o=Math.floor(e.pageSize*e.pageIndex/l);return{...e,pageIndex:o,pageSize:l}})},e.setPageCount=t=>e.setPagination(l=>{var o;let r=n(t,null!=(o=e.options.pageCount)?o:-1);return"number"==typeof r&&(r=Math.max(-1,r)),{...l,pageCount:r}}),e.getPageOptions=i(()=>[e.getPageCount()],e=>{let t=[];return e&&e>0&&(t=[...Array(e)].fill(null).map((e,t)=>t)),t},a(e.options,"debugTable","getPageOptions")),e.getCanPreviousPage=()=>e.getState().pagination.pageIndex>0,e.getCanNextPage=()=>{let{pageIndex:t}=e.getState().pagination,l=e.getPageCount();return -1===l||0!==l&&t<l-1},e.previousPage=()=>e.setPageIndex(e=>e-1),e.nextPage=()=>e.setPageIndex(e=>e+1),e.firstPage=()=>e.setPageIndex(0),e.lastPage=()=>e.setPageIndex(e.getPageCount()-1),e.getPrePaginationRowModel=()=>e.getExpandedRowModel(),e.getPaginationRowModel=()=>(!e._getPaginationRowModel&&e.options.getPaginationRowModel&&(e._getPaginationRowModel=e.options.getPaginationRowModel(e)),e.options.manualPagination||!e._getPaginationRowModel)?e.getPrePaginationRowModel():e._getPaginationRowModel(),e.getPageCount=()=>{var t;return null!=(t=e.options.pageCount)?t:Math.ceil(e.getRowCount()/e.getState().pagination.pageSize)},e.getRowCount=()=>{var t;return null!=(t=e.options.rowCount)?t:e.getPrePaginationRowModel().rows.length}}},{getInitialState:e=>({rowPinning:L(),...e}),getDefaultOptions:e=>({onRowPinningChange:o("rowPinning",e)}),createRow:(e,t)=>{e.pin=(l,n,o)=>{let r=n?e.getLeafRows().map(e=>{let{id:t}=e;return t}):[],i=new Set([...o?e.getParentRows().map(e=>{let{id:t}=e;return t}):[],e.id,...r]);t.setRowPinning(e=>{var t,n,o,r,a,u;return"bottom"===l?{top:(null!=(o=null==e?void 0:e.top)?o:[]).filter(e=>!(null!=i&&i.has(e))),bottom:[...(null!=(r=null==e?void 0:e.bottom)?r:[]).filter(e=>!(null!=i&&i.has(e))),...Array.from(i)]}:"top"===l?{top:[...(null!=(a=null==e?void 0:e.top)?a:[]).filter(e=>!(null!=i&&i.has(e))),...Array.from(i)],bottom:(null!=(u=null==e?void 0:e.bottom)?u:[]).filter(e=>!(null!=i&&i.has(e)))}:{top:(null!=(t=null==e?void 0:e.top)?t:[]).filter(e=>!(null!=i&&i.has(e))),bottom:(null!=(n=null==e?void 0:e.bottom)?n:[]).filter(e=>!(null!=i&&i.has(e)))}})},e.getCanPin=()=>{var l;let{enableRowPinning:n,enablePinning:o}=t.options;return"function"==typeof n?n(e):null==(l=null!=n?n:o)||l},e.getIsPinned=()=>{let l=[e.id],{top:n,bottom:o}=t.getState().rowPinning,r=l.some(e=>null==n?void 0:n.includes(e)),i=l.some(e=>null==o?void 0:o.includes(e));return r?"top":!!i&&"bottom"},e.getPinnedIndex=()=>{var l,n;let o=e.getIsPinned();if(!o)return -1;let r=null==(l="top"===o?t.getTopRows():t.getBottomRows())?void 0:l.map(e=>{let{id:t}=e;return t});return null!=(n=null==r?void 0:r.indexOf(e.id))?n:-1}},createTable:e=>{e.setRowPinning=t=>null==e.options.onRowPinningChange?void 0:e.options.onRowPinningChange(t),e.resetRowPinning=t=>{var l,n;return e.setRowPinning(t?L():null!=(l=null==(n=e.initialState)?void 0:n.rowPinning)?l:L())},e.getIsSomeRowsPinned=t=>{var l,n,o;let r=e.getState().rowPinning;return t?!!(null==(l=r[t])?void 0:l.length):!!((null==(n=r.top)?void 0:n.length)||(null==(o=r.bottom)?void 0:o.length))},e._getPinnedRows=(t,l,n)=>{var o;return(null==(o=e.options.keepPinnedRows)||o?(null!=l?l:[]).map(t=>{let l=e.getRow(t,!0);return l.getIsAllParentsExpanded()?l:null}):(null!=l?l:[]).map(e=>t.find(t=>t.id===e))).filter(Boolean).map(e=>({...e,position:n}))},e.getTopRows=i(()=>[e.getRowModel().rows,e.getState().rowPinning.top],(t,l)=>e._getPinnedRows(t,l,"top"),a(e.options,"debugRows","getTopRows")),e.getBottomRows=i(()=>[e.getRowModel().rows,e.getState().rowPinning.bottom],(t,l)=>e._getPinnedRows(t,l,"bottom"),a(e.options,"debugRows","getBottomRows")),e.getCenterRows=i(()=>[e.getRowModel().rows,e.getState().rowPinning.top,e.getState().rowPinning.bottom],(e,t,l)=>{let n=new Set([...null!=t?t:[],...null!=l?l:[]]);return e.filter(e=>!n.has(e.id))},a(e.options,"debugRows","getCenterRows"))}},{getInitialState:e=>({rowSelection:{},...e}),getDefaultOptions:e=>({onRowSelectionChange:o("rowSelection",e),enableRowSelection:!0,enableMultiRowSelection:!0,enableSubRowSelection:!0}),createTable:e=>{e.setRowSelection=t=>null==e.options.onRowSelectionChange?void 0:e.options.onRowSelectionChange(t),e.resetRowSelection=t=>{var l;return e.setRowSelection(t?{}:null!=(l=e.initialState.rowSelection)?l:{})},e.toggleAllRowsSelected=t=>{e.setRowSelection(l=>{t=void 0!==t?t:!e.getIsAllRowsSelected();let n={...l},o=e.getPreGroupedRowModel().flatRows;return t?o.forEach(e=>{e.getCanSelect()&&(n[e.id]=!0)}):o.forEach(e=>{delete n[e.id]}),n})},e.toggleAllPageRowsSelected=t=>e.setRowSelection(l=>{let n=void 0!==t?t:!e.getIsAllPageRowsSelected(),o={...l};return e.getRowModel().rows.forEach(t=>{A(o,t.id,n,!0,e)}),o}),e.getPreSelectedRowModel=()=>e.getCoreRowModel(),e.getSelectedRowModel=i(()=>[e.getState().rowSelection,e.getCoreRowModel()],(t,l)=>Object.keys(t).length?G(e,l):{rows:[],flatRows:[],rowsById:{}},a(e.options,"debugTable","getSelectedRowModel")),e.getFilteredSelectedRowModel=i(()=>[e.getState().rowSelection,e.getFilteredRowModel()],(t,l)=>Object.keys(t).length?G(e,l):{rows:[],flatRows:[],rowsById:{}},a(e.options,"debugTable","getFilteredSelectedRowModel")),e.getGroupedSelectedRowModel=i(()=>[e.getState().rowSelection,e.getSortedRowModel()],(t,l)=>Object.keys(t).length?G(e,l):{rows:[],flatRows:[],rowsById:{}},a(e.options,"debugTable","getGroupedSelectedRowModel")),e.getIsAllRowsSelected=()=>{let t=e.getFilteredRowModel().flatRows,{rowSelection:l}=e.getState(),n=!!(t.length&&Object.keys(l).length);return n&&t.some(e=>e.getCanSelect()&&!l[e.id])&&(n=!1),n},e.getIsAllPageRowsSelected=()=>{let t=e.getPaginationRowModel().flatRows.filter(e=>e.getCanSelect()),{rowSelection:l}=e.getState(),n=!!t.length;return n&&t.some(e=>!l[e.id])&&(n=!1),n},e.getIsSomeRowsSelected=()=>{var t;let l=Object.keys(null!=(t=e.getState().rowSelection)?t:{}).length;return l>0&&l<e.getFilteredRowModel().flatRows.length},e.getIsSomePageRowsSelected=()=>{let t=e.getPaginationRowModel().flatRows;return!e.getIsAllPageRowsSelected()&&t.filter(e=>e.getCanSelect()).some(e=>e.getIsSelected()||e.getIsSomeSelected())},e.getToggleAllRowsSelectedHandler=()=>t=>{e.toggleAllRowsSelected(t.target.checked)},e.getToggleAllPageRowsSelectedHandler=()=>t=>{e.toggleAllPageRowsSelected(t.target.checked)}},createRow:(e,t)=>{e.toggleSelected=(l,n)=>{let o=e.getIsSelected();t.setRowSelection(r=>{var i;if(l=void 0!==l?l:!o,e.getCanSelect()&&o===l)return r;let a={...r};return A(a,e.id,l,null==(i=null==n?void 0:n.selectChildren)||i,t),a})},e.getIsSelected=()=>{let{rowSelection:l}=t.getState();return D(e,l)},e.getIsSomeSelected=()=>{let{rowSelection:l}=t.getState();return"some"===H(e,l)},e.getIsAllSubRowsSelected=()=>{let{rowSelection:l}=t.getState();return"all"===H(e,l)},e.getCanSelect=()=>{var l;return"function"==typeof t.options.enableRowSelection?t.options.enableRowSelection(e):null==(l=t.options.enableRowSelection)||l},e.getCanSelectSubRows=()=>{var l;return"function"==typeof t.options.enableSubRowSelection?t.options.enableSubRowSelection(e):null==(l=t.options.enableSubRowSelection)||l},e.getCanMultiSelect=()=>{var l;return"function"==typeof t.options.enableMultiRowSelection?t.options.enableMultiRowSelection(e):null==(l=t.options.enableMultiRowSelection)||l},e.getToggleSelectedHandler=()=>{let t=e.getCanSelect();return l=>{var n;t&&e.toggleSelected(null==(n=l.target)?void 0:n.checked)}}}},{getDefaultColumnDef:()=>y,getInitialState:e=>({columnSizing:{},columnSizingInfo:P(),...e}),getDefaultOptions:e=>({columnResizeMode:"onEnd",columnResizeDirection:"ltr",onColumnSizingChange:o("columnSizing",e),onColumnSizingInfoChange:o("columnSizingInfo",e)}),createColumn:(e,t)=>{e.getSize=()=>{var l,n,o;let r=t.getState().columnSizing[e.id];return Math.min(Math.max(null!=(l=e.columnDef.minSize)?l:y.minSize,null!=(n=null!=r?r:e.columnDef.size)?n:y.size),null!=(o=e.columnDef.maxSize)?o:y.maxSize)},e.getStart=i(e=>[e,_(t,e),t.getState().columnSizing],(t,l)=>l.slice(0,e.getIndex(t)).reduce((e,t)=>e+t.getSize(),0),a(t.options,"debugColumns","getStart")),e.getAfter=i(e=>[e,_(t,e),t.getState().columnSizing],(t,l)=>l.slice(e.getIndex(t)+1).reduce((e,t)=>e+t.getSize(),0),a(t.options,"debugColumns","getAfter")),e.resetSize=()=>{t.setColumnSizing(t=>{let{[e.id]:l,...n}=t;return n})},e.getCanResize=()=>{var l,n;return(null==(l=e.columnDef.enableResizing)||l)&&(null==(n=t.options.enableColumnResizing)||n)},e.getIsResizing=()=>t.getState().columnSizingInfo.isResizingColumn===e.id},createHeader:(e,t)=>{e.getSize=()=>{let t=0,l=e=>{if(e.subHeaders.length)e.subHeaders.forEach(l);else{var n;t+=null!=(n=e.column.getSize())?n:0}};return l(e),t},e.getStart=()=>{if(e.index>0){let t=e.headerGroup.headers[e.index-1];return t.getStart()+t.getSize()}return 0},e.getResizeHandler=l=>{let n=t.getColumn(e.column.id),o=null==n?void 0:n.getCanResize();return r=>{if(!n||!o||(null==r.persist||r.persist(),I(r)&&r.touches&&r.touches.length>1))return;let i=e.getSize(),a=e?e.getLeafHeaders().map(e=>[e.column.id,e.column.getSize()]):[[n.id,n.getSize()]],u=I(r)?Math.round(r.touches[0].clientX):r.clientX,s={},g=(e,l)=>{"number"==typeof l&&(t.setColumnSizingInfo(e=>{var n,o;let r="rtl"===t.options.columnResizeDirection?-1:1,i=(l-(null!=(n=null==e?void 0:e.startOffset)?n:0))*r,a=Math.max(i/(null!=(o=null==e?void 0:e.startSize)?o:0),-.999999);return e.columnSizingStart.forEach(e=>{let[t,l]=e;s[t]=Math.round(100*Math.max(l+l*a,0))/100}),{...e,deltaOffset:i,deltaPercentage:a}}),("onChange"===t.options.columnResizeMode||"end"===e)&&t.setColumnSizing(e=>({...e,...s})))},d=e=>g("move",e),p=e=>{g("end",e),t.setColumnSizingInfo(e=>({...e,isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]}))},c=l||("undefined"!=typeof document?document:null),f={moveHandler:e=>d(e.clientX),upHandler:e=>{null==c||c.removeEventListener("mousemove",f.moveHandler),null==c||c.removeEventListener("mouseup",f.upHandler),p(e.clientX)}},m={moveHandler:e=>(e.cancelable&&(e.preventDefault(),e.stopPropagation()),d(e.touches[0].clientX),!1),upHandler:e=>{var t;null==c||c.removeEventListener("touchmove",m.moveHandler),null==c||c.removeEventListener("touchend",m.upHandler),e.cancelable&&(e.preventDefault(),e.stopPropagation()),p(null==(t=e.touches[0])?void 0:t.clientX)}},h=!!function(){if("boolean"==typeof V)return V;let e=!1;try{let t=()=>{};window.addEventListener("test",t,{get passive(){return e=!0,!1}}),window.removeEventListener("test",t)}catch(t){e=!1}return V=e}()&&{passive:!1};I(r)?(null==c||c.addEventListener("touchmove",m.moveHandler,h),null==c||c.addEventListener("touchend",m.upHandler,h)):(null==c||c.addEventListener("mousemove",f.moveHandler,h),null==c||c.addEventListener("mouseup",f.upHandler,h)),t.setColumnSizingInfo(e=>({...e,startOffset:u,startSize:i,deltaOffset:0,deltaPercentage:0,columnSizingStart:a,isResizingColumn:n.id}))}}},createTable:e=>{e.setColumnSizing=t=>null==e.options.onColumnSizingChange?void 0:e.options.onColumnSizingChange(t),e.setColumnSizingInfo=t=>null==e.options.onColumnSizingInfoChange?void 0:e.options.onColumnSizingInfoChange(t),e.resetColumnSizing=t=>{var l;e.setColumnSizing(t?{}:null!=(l=e.initialState.columnSizing)?l:{})},e.resetHeaderSizeInfo=t=>{var l;e.setColumnSizingInfo(t?P():null!=(l=e.initialState.columnSizingInfo)?l:P())},e.getTotalSize=()=>{var t,l;return null!=(t=null==(l=e.getHeaderGroups()[0])?void 0:l.headers.reduce((e,t)=>e+t.getSize(),0))?t:0},e.getLeftTotalSize=()=>{var t,l;return null!=(t=null==(l=e.getLeftHeaderGroups()[0])?void 0:l.headers.reduce((e,t)=>e+t.getSize(),0))?t:0},e.getCenterTotalSize=()=>{var t,l;return null!=(t=null==(l=e.getCenterHeaderGroups()[0])?void 0:l.headers.reduce((e,t)=>e+t.getSize(),0))?t:0},e.getRightTotalSize=()=>{var t,l;return null!=(t=null==(l=e.getRightHeaderGroups()[0])?void 0:l.headers.reduce((e,t)=>e+t.getSize(),0))?t:0}}}];function q(e){var t,l;let o=[...B,...null!=(t=e._features)?t:[]],r={_features:o},u=r._features.reduce((e,t)=>Object.assign(e,null==t.getDefaultOptions?void 0:t.getDefaultOptions(r)),{}),s=e=>r.options.mergeOptions?r.options.mergeOptions(u,e):{...u,...e},g={...null!=(l=e.initialState)?l:{}};r._features.forEach(e=>{var t;g=null!=(t=null==e.getInitialState?void 0:e.getInitialState(g))?t:g});let d=[],p=!1,c={_features:o,options:{...u,...e},initialState:g,_queue:e=>{d.push(e),p||(p=!0,Promise.resolve().then(()=>{for(;d.length;)d.shift()();p=!1}).catch(e=>setTimeout(()=>{throw e})))},reset:()=>{r.setState(r.initialState)},setOptions:e=>{let t=n(e,r.options);r.options=s(t)},getState:()=>r.options.state,setState:e=>{null==r.options.onStateChange||r.options.onStateChange(e)},_getRowId:(e,t,l)=>{var n;return null!=(n=null==r.options.getRowId?void 0:r.options.getRowId(e,t,l))?n:`${l?[l.id,t].join("."):t}`},getCoreRowModel:()=>(r._getCoreRowModel||(r._getCoreRowModel=r.options.getCoreRowModel(r)),r._getCoreRowModel()),getRowModel:()=>r.getPaginationRowModel(),getRow:(e,t)=>{let l=(t?r.getPrePaginationRowModel():r.getRowModel()).rowsById[e];if(!l&&!(l=r.getCoreRowModel().rowsById[e]))throw Error();return l},_getDefaultColumnDef:i(()=>[r.options.defaultColumn],e=>{var t;return e=null!=(t=e)?t:{},{header:e=>{let t=e.header.column.columnDef;return t.accessorKey?t.accessorKey:t.accessorFn?t.id:null},cell:e=>{var t,l;return null!=(t=null==(l=e.renderValue())||null==l.toString?void 0:l.toString())?t:null},...r._features.reduce((e,t)=>Object.assign(e,null==t.getDefaultColumnDef?void 0:t.getDefaultColumnDef()),{}),...e}},a(e,"debugColumns","_getDefaultColumnDef")),_getColumnDefs:()=>r.options.columns,getAllColumns:i(()=>[r._getColumnDefs()],e=>{let t=function(e,l,n){return void 0===n&&(n=0),e.map(e=>{let o=function(e,t,l,n){var o,r;let u,s={...e._getDefaultColumnDef(),...t},g=s.accessorKey,d=null!=(o=null!=(r=s.id)?r:g?"function"==typeof String.prototype.replaceAll?g.replaceAll(".","_"):g.replace(/\./g,"_"):void 0)?o:"string"==typeof s.header?s.header:void 0;if(s.accessorFn?u=s.accessorFn:g&&(u=g.includes(".")?e=>{let t=e;for(let e of g.split(".")){var l;t=null==(l=t)?void 0:l[e]}return t}:e=>e[s.accessorKey]),!d)throw Error();let p={id:`${String(d)}`,accessorFn:u,parent:n,depth:l,columnDef:s,columns:[],getFlatColumns:i(()=>[!0],()=>{var e;return[p,...null==(e=p.columns)?void 0:e.flatMap(e=>e.getFlatColumns())]},a(e.options,"debugColumns","column.getFlatColumns")),getLeafColumns:i(()=>[e._getOrderColumnsFn()],e=>{var t;return null!=(t=p.columns)&&t.length?e(p.columns.flatMap(e=>e.getLeafColumns())):[p]},a(e.options,"debugColumns","column.getLeafColumns"))};for(let t of e._features)null==t.createColumn||t.createColumn(p,e);return p}(r,e,n,l);return o.columns=e.columns?t(e.columns,o,n+1):[],o})};return t(e)},a(e,"debugColumns","getAllColumns")),getAllFlatColumns:i(()=>[r.getAllColumns()],e=>e.flatMap(e=>e.getFlatColumns()),a(e,"debugColumns","getAllFlatColumns")),_getAllFlatColumnsById:i(()=>[r.getAllFlatColumns()],e=>e.reduce((e,t)=>(e[t.id]=t,e),{}),a(e,"debugColumns","getAllFlatColumnsById")),getAllLeafColumns:i(()=>[r.getAllColumns(),r._getOrderColumnsFn()],(e,t)=>t(e.flatMap(e=>e.getLeafColumns())),a(e,"debugColumns","getAllLeafColumns")),getColumn:e=>r._getAllFlatColumnsById()[e]};Object.assign(r,c);for(let e=0;e<r._features.length;e++){let t=r._features[e];null==t||null==t.createTable||t.createTable(r)}return r}function N(){return e=>i(()=>[e.options.data],t=>{let l={rows:[],flatRows:[],rowsById:{}},n=function(t,o,r){void 0===o&&(o=0);let i=[];for(let u=0;u<t.length;u++){let s=d(e,e._getRowId(t[u],u,r),t[u],u,o,void 0,null==r?void 0:r.id);if(l.flatRows.push(s),l.rowsById[s.id]=s,i.push(s),e.options.getSubRows){var a;s.originalSubRows=e.options.getSubRows(t[u],u),null!=(a=s.originalSubRows)&&a.length&&(s.subRows=n(s.originalSubRows,o+1,s))}}return i};return l.rows=n(t),l},a(e.options,"debugTable","getRowModel",()=>e._autoResetPageIndex()))}function U(){return e=>i(()=>[e.getPreFilteredRowModel(),e.getState().columnFilters,e.getState().globalFilter],(t,l,n)=>{var o,r;let i,a;if(!t.rows.length||!(null!=l&&l.length)&&!n){for(let e=0;e<t.flatRows.length;e++)t.flatRows[e].columnFilters={},t.flatRows[e].columnFiltersMeta={};return t}let u=[],s=[];(null!=l?l:[]).forEach(t=>{var l;let n=e.getColumn(t.id);if(!n)return;let o=n.getFilterFn();o&&u.push({id:t.id,filterFn:o,resolvedValue:null!=(l=null==o.resolveFilterValue?void 0:o.resolveFilterValue(t.value))?l:t.value})});let g=(null!=l?l:[]).map(e=>e.id),p=e.getGlobalFilterFn(),c=e.getAllLeafColumns().filter(e=>e.getCanGlobalFilter());n&&p&&c.length&&(g.push("__global__"),c.forEach(e=>{var t;s.push({id:e.id,filterFn:p,resolvedValue:null!=(t=null==p.resolveFilterValue?void 0:p.resolveFilterValue(n))?t:n})}));for(let e=0;e<t.flatRows.length;e++){let l=t.flatRows[e];if(l.columnFilters={},u.length)for(let e=0;e<u.length;e++){let t=(i=u[e]).id;l.columnFilters[t]=i.filterFn(l,t,i.resolvedValue,e=>{l.columnFiltersMeta[t]=e})}if(s.length){for(let e=0;e<s.length;e++){let t=(a=s[e]).id;if(a.filterFn(l,t,a.resolvedValue,e=>{l.columnFiltersMeta[t]=e})){l.columnFilters.__global__=!0;break}}!0!==l.columnFilters.__global__&&(l.columnFilters.__global__=!1)}}return o=t.rows,r=e=>{for(let t=0;t<g.length;t++)if(!1===e.columnFilters[g[t]])return!1;return!0},e.options.filterFromLeafRows?function(e,t,l){var n;let o=[],r={},i=null!=(n=l.options.maxLeafRowFilterDepth)?n:100,a=function(e,n){void 0===n&&(n=0);let u=[];for(let g=0;g<e.length;g++){var s;let p=e[g],c=d(l,p.id,p.original,p.index,p.depth,void 0,p.parentId);if(c.columnFilters=p.columnFilters,null!=(s=p.subRows)&&s.length&&n<i){if(c.subRows=a(p.subRows,n+1),t(p=c)&&!c.subRows.length||t(p)||c.subRows.length){u.push(p),r[p.id]=p,o.push(p);continue}}else t(p=c)&&(u.push(p),r[p.id]=p,o.push(p))}return u};return{rows:a(e),flatRows:o,rowsById:r}}(o,r,e):function(e,t,l){var n;let o=[],r={},i=null!=(n=l.options.maxLeafRowFilterDepth)?n:100,a=function(e,n){void 0===n&&(n=0);let u=[];for(let g=0;g<e.length;g++){let p=e[g];if(t(p)){var s;if(null!=(s=p.subRows)&&s.length&&n<i){let e=d(l,p.id,p.original,p.index,p.depth,void 0,p.parentId);e.subRows=a(p.subRows,n+1),p=e}u.push(p),o.push(p),r[p.id]=p}}return u};return{rows:a(e),flatRows:o,rowsById:r}}(o,r,e)},a(e.options,"debugTable","getFilteredRowModel",()=>e._autoResetPageIndex()))}function Z(e){return e=>i(()=>[e.getState().pagination,e.getPrePaginationRowModel(),e.options.paginateExpandedRows?void 0:e.getState().expanded],(t,l)=>{let n;if(!l.rows.length)return l;let{pageSize:o,pageIndex:r}=t,{rows:i,flatRows:a,rowsById:u}=l,s=o*r;i=i.slice(s,s+o),(n=e.options.paginateExpandedRows?{rows:i,flatRows:a,rowsById:u}:function(e){let t=[],l=e=>{var n;t.push(e),null!=(n=e.subRows)&&n.length&&e.getIsExpanded()&&e.subRows.forEach(l)};return e.rows.forEach(l),{rows:t,flatRows:e.flatRows,rowsById:e.rowsById}}({rows:i,flatRows:a,rowsById:u})).flatRows=[];let g=e=>{n.flatRows.push(e),e.subRows.length&&e.subRows.forEach(g)};return n.rows.forEach(g),n},a(e.options,"debugTable","getPaginationRowModel"))}function $(){return e=>i(()=>[e.getState().sorting,e.getPreSortedRowModel()],(t,l)=>{if(!l.rows.length||!(null!=t&&t.length))return l;let n=e.getState().sorting,o=[],r=n.filter(t=>{var l;return null==(l=e.getColumn(t.id))?void 0:l.getCanSort()}),i={};r.forEach(t=>{let l=e.getColumn(t.id);l&&(i[t.id]={sortUndefined:l.columnDef.sortUndefined,invertSorting:l.columnDef.invertSorting,sortingFn:l.getSortingFn()})});let a=e=>{let t=e.map(e=>({...e}));return t.sort((e,t)=>{for(let n=0;n<r.length;n+=1){var l;let o=r[n],a=i[o.id],u=a.sortUndefined,s=null!=(l=null==o?void 0:o.desc)&&l,g=0;if(u){let l=e.getValue(o.id),n=t.getValue(o.id),r=void 0===l,i=void 0===n;if(r||i){if("first"===u)return r?-1:1;if("last"===u)return r?1:-1;g=r&&i?0:r?u:-u}}if(0===g&&(g=a.sortingFn(e,t,o.id)),0!==g)return s&&(g*=-1),a.invertSorting&&(g*=-1),g}return e.index-t.index}),t.forEach(e=>{var t;o.push(e),null!=(t=e.subRows)&&t.length&&(e.subRows=a(e.subRows))}),t};return{rows:a(l.rows),flatRows:o,rowsById:l.rowsById}},a(e.options,"debugTable","getSortedRowModel",()=>e._autoResetPageIndex()))}},48959:function(e,t,l){l.d(t,{LR:()=>E,gB:()=>I,iL:()=>u}),(n=o||(o={})).csv="text/csv",n.tsv="text/tab-separated-values",n.plain="text/plain";var n,o,r=e=>e,i=e=>e,a={fieldSeparator:",",decimalSeparator:".",quoteStrings:!0,quoteCharacter:'"',showTitle:!1,title:"My Generated Report",filename:"generated",showColumnHeaders:!0,useTextFile:!1,fileExtension:"csv",mediaType:o.csv,useBom:!0,columnHeaders:[],useKeysAsHeaders:!1,boolDisplay:{true:"TRUE",false:"FALSE"},replaceUndefinedWith:""},u=e=>Object.assign({},a,e);class s extends Error{constructor(e){super(e),this.name="CsvGenerationError"}}class g extends Error{constructor(e){super(e),this.name="EmptyHeadersError"}}class d extends Error{constructor(e){super(e),this.name="CsvDownloadEnvironmentError"}}class p extends Error{constructor(e){super(e),this.name="UnsupportedDataFormatError"}}var c=e=>"object"==typeof e?r(e.key):r(e),f=e=>"object"==typeof e?r(e.displayLabel):r(e),m=(e,...t)=>t.reduce((e,t)=>t(e),e),h=e=>t=>e.useBom?r(i(t)+"\uFEFF"):t,v=e=>t=>e.showTitle?w(r(i(t)+e.title))(r("")):t,w=e=>t=>r(i(e)+i(t)+"\r\n"),C=e=>(t,l)=>S(e)(r(i(t)+i(l))),S=e=>t=>r(i(t)+e.fieldSeparator),R=(e,t)=>l=>{if(!e.showColumnHeaders)return l;if(t.length<1)throw new g("Option to show headers but none supplied. Make sure there are keys in your collection or that you've supplied headers through the config options.");let n=r("");for(let l=0;l<t.length;l++){let o=f(t[l]);n=C(e)(n,V(e,i(o)))}return n=r(i(n).slice(0,-1)),w(l)(n)},b=(e,t,l)=>n=>{let o=n;for(var a=0;a<l.length;a++){let n=r("");for(let o=0;o<t.length;o++){let r=c(t[o]),u=l[a][i(r)];n=C(e)(n,V(e,u))}n=r(i(n).slice(0,-1)),o=w(o)(n)}return o},F=e=>+e===e&&(!isFinite(e)||!!(e%1)),M=(e,t)=>{if(F(t)){if("locale"===e.decimalSeparator)return r(t.toLocaleString());if(e.decimalSeparator)return r(t.toString().replace(".",e.decimalSeparator))}return r(t.toString())},x=(e,t)=>{let l=t;return(e.quoteStrings||e.fieldSeparator&&t.indexOf(e.fieldSeparator)>-1||e.quoteCharacter&&t.indexOf(e.quoteCharacter)>-1||t.indexOf("\n")>-1||t.indexOf("\r")>-1)&&(l=e.quoteCharacter+('"'==e.quoteCharacter&&t.indexOf('"')>-1?t.replace(/"/g,'""'):t)+e.quoteCharacter),r(l)},y=(e,t)=>r(e.boolDisplay[t?"true":"false"]),P=(e,t)=>void 0===t&&void 0!==e.replaceUndefinedWith?x(e,e.replaceUndefinedWith+""):null===t?x(e,"null"):x(e,""),V=(e,t)=>{if("number"==typeof t)return M(e,t);if("string"==typeof t)return x(e,t);if("boolean"==typeof t&&e.boolDisplay)return y(e,t);if(null==t)return P(e,t);throw new p(`
|
6
|
+
typeof ${typeof t} isn't supported. Only number, string, boolean, null and undefined are supported.
|
7
|
+
Please convert the data in your object to one of those before generating the CSV.
|
8
|
+
`)},I=e=>t=>{let l=u(e),n=l.useKeysAsHeaders?Object.keys(t[0]):l.columnHeaders,o=m(r(""),h(l),v(l),R(l,n),b(l,n,t));if(i(o).length<1)throw new s("Output is empty. Is your data formatted correctly?");return o},_=e=>t=>{let l=u(e),n=i(t),o=l.useTextFile?"text/plain":l.mediaType;return new Blob([n],{type:`${o};charset=utf8;`})},E=e=>t=>{if(!window)throw new d("Downloading only supported in a browser environment.");let l=_(e)(t),n=u(e),o=n.useTextFile?"txt":n.fileExtension,r=`${n.filename}.${o}`,i=document.createElement("a");i.download=r,i.href=URL.createObjectURL(l),i.setAttribute("visibility","hidden"),document.body.appendChild(i),i.click(),document.body.removeChild(i)}}}]);
|
@@ -18,4 +18,11 @@
|
|
18
18
|
* LICENSE.md file in the root directory of this source tree.
|
19
19
|
*
|
20
20
|
* @license MIT
|
21
|
-
*/
|
21
|
+
*/
|
22
|
+
|
23
|
+
/**
|
24
|
+
* @license lucide-react v0.488.0 - ISC
|
25
|
+
*
|
26
|
+
* This source code is licensed under the ISC license.
|
27
|
+
* See the LICENSE file in the root directory of this source tree.
|
28
|
+
*/
|
@@ -0,0 +1,2 @@
|
|
1
|
+
/*! For license information please see 682.f9ec3784.js.LICENSE.txt */
|
2
|
+
"use strict";(self.webpackChunkremote=self.webpackChunkremote||[]).push([["682"],{53032:function(e,t){var r=Symbol.for("react.element"),n=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),c=Symbol.for("react.provider"),i=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),s=Symbol.for("react.suspense"),l=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),y=Symbol.iterator,d={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},h=Object.assign,_={};function m(e,t,r){this.props=e,this.context=t,this.refs=_,this.updater=r||d}function b(){}function v(e,t,r){this.props=e,this.context=t,this.refs=_,this.updater=r||d}m.prototype.isReactComponent={},m.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},m.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},b.prototype=m.prototype;var S=v.prototype=new b;S.constructor=v,h(S,m.prototype),S.isPureReactComponent=!0;var k=Array.isArray,w=Object.prototype.hasOwnProperty,E={current:null},$={key:!0,ref:!0,__self:!0,__source:!0};function R(e,t,n){var o,u={},a=null,c=null;if(null!=t)for(o in void 0!==t.ref&&(c=t.ref),void 0!==t.key&&(a=""+t.key),t)w.call(t,o)&&!$.hasOwnProperty(o)&&(u[o]=t[o]);var i=arguments.length-2;if(1===i)u.children=n;else if(1<i){for(var f=Array(i),s=0;s<i;s++)f[s]=arguments[s+2];u.children=f}if(e&&e.defaultProps)for(o in i=e.defaultProps)void 0===u[o]&&(u[o]=i[o]);return{$$typeof:r,type:e,key:a,ref:c,props:u,_owner:E.current}}function C(e){return"object"==typeof e&&null!==e&&e.$$typeof===r}var g=/\/+/g;function j(e,t){var r,n;return"object"==typeof e&&null!==e&&null!=e.key?(r=""+e.key,n={"=":"=0",":":"=2"},"$"+r.replace(/[=:]/g,function(e){return n[e]})):t.toString(36)}function O(e,t,o){if(null==e)return e;var u=[],a=0;return!function e(t,o,u,a,c){var i,f,s,l=typeof t;("undefined"===l||"boolean"===l)&&(t=null);var p=!1;if(null===t)p=!0;else switch(l){case"string":case"number":p=!0;break;case"object":switch(t.$$typeof){case r:case n:p=!0}}if(p)return c=c(p=t),t=""===a?"."+j(p,0):a,k(c)?(u="",null!=t&&(u=t.replace(g,"$&/")+"/"),e(c,o,u,"",function(e){return e})):null!=c&&(C(c)&&(i=c,f=u+(!c.key||p&&p.key===c.key?"":(""+c.key).replace(g,"$&/")+"/")+t,c={$$typeof:r,type:i.type,key:f,ref:i.ref,props:i.props,_owner:i._owner}),o.push(c)),1;if(p=0,a=""===a?".":a+":",k(t))for(var d=0;d<t.length;d++){var h=a+j(l=t[d],d);p+=e(l,o,u,h,c)}else if("function"==typeof(h=null===(s=t)||"object"!=typeof s?null:"function"==typeof(s=y&&s[y]||s["@@iterator"])?s:null))for(t=h.call(t),d=0;!(l=t.next()).done;)h=a+j(l=l.value,d++),p+=e(l,o,u,h,c);else if("object"===l)throw Error("Objects are not valid as a React child (found: "+("[object Object]"===(o=String(t))?"object with keys {"+Object.keys(t).join(", ")+"}":o)+"). If you meant to render a collection of children, use an array instead.");return p}(e,u,"","",function(e){return t.call(o,e,a++)}),u}function x(e){if(-1===e._status){var t=e._result;(t=t()).then(function(t){(0===e._status||-1===e._status)&&(e._status=1,e._result=t)},function(t){(0===e._status||-1===e._status)&&(e._status=2,e._result=t)}),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var P={current:null},I={transition:null};function T(){throw Error("act(...) is not supported in production builds of React.")}t.Children={map:O,forEach:function(e,t,r){O(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return O(e,function(){t++}),t},toArray:function(e){return O(e,function(e){return e})||[]},only:function(e){if(!C(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=m,t.Fragment=o,t.Profiler=a,t.PureComponent=v,t.StrictMode=u,t.Suspense=s,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED={ReactCurrentDispatcher:P,ReactCurrentBatchConfig:I,ReactCurrentOwner:E},t.act=T,t.cloneElement=function(e,t,n){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var o=h({},e.props),u=e.key,a=e.ref,c=e._owner;if(null!=t){if(void 0!==t.ref&&(a=t.ref,c=E.current),void 0!==t.key&&(u=""+t.key),e.type&&e.type.defaultProps)var i=e.type.defaultProps;for(f in t)w.call(t,f)&&!$.hasOwnProperty(f)&&(o[f]=void 0===t[f]&&void 0!==i?i[f]:t[f])}var f=arguments.length-2;if(1===f)o.children=n;else if(1<f){i=Array(f);for(var s=0;s<f;s++)i[s]=arguments[s+2];o.children=i}return{$$typeof:r,type:e.type,key:u,ref:a,props:o,_owner:c}},t.createContext=function(e){return(e={$$typeof:i,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:c,_context:e},e.Consumer=e},t.createElement=R,t.createFactory=function(e){var t=R.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:f,render:e}},t.isValidElement=C,t.lazy=function(e){return{$$typeof:p,_payload:{_status:-1,_result:e},_init:x}},t.memo=function(e,t){return{$$typeof:l,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=I.transition;I.transition={};try{e()}finally{I.transition=t}},t.unstable_act=T,t.useCallback=function(e,t){return P.current.useCallback(e,t)},t.useContext=function(e){return P.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return P.current.useDeferredValue(e)},t.useEffect=function(e,t){return P.current.useEffect(e,t)},t.useId=function(){return P.current.useId()},t.useImperativeHandle=function(e,t,r){return P.current.useImperativeHandle(e,t,r)},t.useInsertionEffect=function(e,t){return P.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return P.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return P.current.useMemo(e,t)},t.useReducer=function(e,t,r){return P.current.useReducer(e,t,r)},t.useRef=function(e){return P.current.useRef(e)},t.useState=function(e){return P.current.useState(e)},t.useSyncExternalStore=function(e,t,r){return P.current.useSyncExternalStore(e,t,r)},t.useTransition=function(){return P.current.useTransition()},t.version="18.3.1"},44194:function(e,t,r){e.exports=r(53032)}}]);
|
@@ -0,0 +1,6 @@
|
|
1
|
+
/*! For license information please see 852.5fbbde64.js.LICENSE.txt */
|
2
|
+
"use strict";(self.webpackChunkremote=self.webpackChunkremote||[]).push([["852"],{48898:function(e,t,r){r.d(t,{Z:()=>s});let s=(0,r(14115).Z)("copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]])},20858:function(e,t,r){r.d(t,{Z:()=>s});let s=(0,r(14115).Z)("external-link",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]])},37067:function(e,t,r){r.d(t,{Z:()=>s});let s=(0,r(14115).Z)("eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]])},30059:function(e,t,r){r.d(t,{Z:()=>s});let s=(0,r(14115).Z)("list",[["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M3 18h.01",key:"1tta3j"}],["path",{d:"M3 6h.01",key:"1rqtza"}],["path",{d:"M8 12h13",key:"1za7za"}],["path",{d:"M8 18h13",key:"1lx6n3"}],["path",{d:"M8 6h13",key:"ik3vkj"}]])},73752:function(e,t,r){r.d(t,{Dx:()=>es,VY:()=>er,aV:()=>et,dk:()=>ei,fC:()=>G,h_:()=>ee,x8:()=>en,xz:()=>J});var s=r(8491),i=r(71115),n=r(88905),a=r(76418),o=r(1563),u=r(81183),l=r(46938),c=r(55568),h=r(36278),d=r(36387),p=r(78737),f=r(49319),y=r(47319),R=r(50726),m=r(40349),v=r(31549),b="Dialog",[g,O]=(0,a.b)(b),[I,C]=g(b),x=e=>{let{__scopeDialog:t,children:r,open:i,defaultOpen:n,onOpenChange:a,modal:l=!0}=e,c=s.useRef(null),h=s.useRef(null),[d=!1,p]=(0,u.T)({prop:i,defaultProp:n,onChange:a});return(0,v.jsx)(I,{scope:t,triggerRef:c,contentRef:h,contentId:(0,o.M)(),titleId:(0,o.M)(),descriptionId:(0,o.M)(),open:d,onOpenChange:p,onOpenToggle:s.useCallback(()=>p(e=>!e),[p]),modal:l,children:r})};x.displayName=b;var Q="DialogTrigger",M=s.forwardRef((e,t)=>{let{__scopeDialog:r,...s}=e,a=C(Q,r),o=(0,n.e)(t,a.triggerRef);return(0,v.jsx)(p.WV.button,{type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":K(a.open),...s,ref:o,onClick:(0,i.M)(e.onClick,a.onOpenToggle)})});M.displayName=Q;var D="DialogPortal",[k,w]=g(D,{forceMount:void 0}),S=e=>{let{__scopeDialog:t,forceMount:r,children:i,container:n}=e,a=C(D,t);return(0,v.jsx)(k,{scope:t,forceMount:r,children:s.Children.map(i,e=>(0,v.jsx)(d.z,{present:r||a.open,children:(0,v.jsx)(h.h,{asChild:!0,container:n,children:e})}))})};S.displayName=D;var E="DialogOverlay",T=s.forwardRef((e,t)=>{let r=w(E,e.__scopeDialog),{forceMount:s=r.forceMount,...i}=e,n=C(E,e.__scopeDialog);return n.modal?(0,v.jsx)(d.z,{present:s||n.open,children:(0,v.jsx)(F,{...i,ref:t})}):null});T.displayName=E;var j=(0,m.Z8)("DialogOverlay.RemoveScroll"),F=s.forwardRef((e,t)=>{let{__scopeDialog:r,...s}=e,i=C(E,r);return(0,v.jsx)(y.Z,{as:j,allowPinchZoom:!0,shards:[i.contentRef],children:(0,v.jsx)(p.WV.div,{"data-state":K(i.open),...s,ref:t,style:{pointerEvents:"auto",...s.style}})})}),N="DialogContent",_=s.forwardRef((e,t)=>{let r=w(N,e.__scopeDialog),{forceMount:s=r.forceMount,...i}=e,n=C(N,e.__scopeDialog);return(0,v.jsx)(d.z,{present:s||n.open,children:n.modal?(0,v.jsx)(P,{...i,ref:t}):(0,v.jsx)(U,{...i,ref:t})})});_.displayName=N;var P=s.forwardRef((e,t)=>{let r=C(N,e.__scopeDialog),a=s.useRef(null),o=(0,n.e)(t,r.contentRef,a);return s.useEffect(()=>{let e=a.current;if(e)return(0,R.Ry)(e)},[]),(0,v.jsx)(V,{...e,ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,i.M)(e.onCloseAutoFocus,e=>{e.preventDefault(),r.triggerRef.current?.focus()}),onPointerDownOutside:(0,i.M)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,r=0===t.button&&!0===t.ctrlKey;(2===t.button||r)&&e.preventDefault()}),onFocusOutside:(0,i.M)(e.onFocusOutside,e=>e.preventDefault())})}),U=s.forwardRef((e,t)=>{let r=C(N,e.__scopeDialog),i=s.useRef(!1),n=s.useRef(!1);return(0,v.jsx)(V,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(i.current||r.triggerRef.current?.focus(),t.preventDefault()),i.current=!1,n.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(i.current=!0,"pointerdown"===t.detail.originalEvent.type&&(n.current=!0));let s=t.target;r.triggerRef.current?.contains(s)&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&n.current&&t.preventDefault()}})}),V=s.forwardRef((e,t)=>{let{__scopeDialog:r,trapFocus:i,onOpenAutoFocus:a,onCloseAutoFocus:o,...u}=e,h=C(N,r),d=s.useRef(null),p=(0,n.e)(t,d);return(0,f.EW)(),(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(c.M,{asChild:!0,loop:!0,trapped:i,onMountAutoFocus:a,onUnmountAutoFocus:o,children:(0,v.jsx)(l.XB,{role:"dialog",id:h.contentId,"aria-describedby":h.descriptionId,"aria-labelledby":h.titleId,"data-state":K(h.open),...u,ref:p,onDismiss:()=>h.onOpenChange(!1)})}),(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(Y,{titleId:h.titleId}),(0,v.jsx)(X,{contentRef:d,descriptionId:h.descriptionId})]})]})}),L="DialogTitle",W=s.forwardRef((e,t)=>{let{__scopeDialog:r,...s}=e,i=C(L,r);return(0,v.jsx)(p.WV.h2,{id:i.titleId,...s,ref:t})});W.displayName=L;var Z="DialogDescription",q=s.forwardRef((e,t)=>{let{__scopeDialog:r,...s}=e,i=C(Z,r);return(0,v.jsx)(p.WV.p,{id:i.descriptionId,...s,ref:t})});q.displayName=Z;var z="DialogClose",A=s.forwardRef((e,t)=>{let{__scopeDialog:r,...s}=e,n=C(z,r);return(0,v.jsx)(p.WV.button,{type:"button",...s,ref:t,onClick:(0,i.M)(e.onClick,()=>n.onOpenChange(!1))})});function K(e){return e?"open":"closed"}A.displayName=z;var H="DialogTitleWarning",[B,$]=(0,a.k)(H,{contentName:N,titleName:L,docsSlug:"dialog"}),Y=({titleId:e})=>{let t=$(H),r=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
3
|
+
|
4
|
+
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
|
5
|
+
|
6
|
+
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return s.useEffect(()=>{e&&(document.getElementById(e)||console.error(r))},[r,e]),null},X=({contentRef:e,descriptionId:t})=>{let r=$("DialogDescriptionWarning"),i=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${r.contentName}}.`;return s.useEffect(()=>{let r=e.current?.getAttribute("aria-describedby");t&&r&&(document.getElementById(t)||console.warn(i))},[i,e,t]),null},G=x,J=M,ee=S,et=T,er=_,es=W,ei=q,en=A},99947:function(e,t,r){r.d(t,{f:()=>o});var s=r(8491),i=r(78737),n=r(31549),a=s.forwardRef((e,t)=>(0,n.jsx)(i.WV.label,{...e,ref:t,onMouseDown:t=>{t.target.closest("button, input, select, textarea")||(e.onMouseDown?.(t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}}));a.displayName="Label";var o=a},12786:function(e,t,r){r.d(t,{D:()=>h});var s=r(8491),i=r(86482),n=r(88730),a=r(22838),o=r(76269),u=class extends a.l{#e;#t=void 0;#r;#s;constructor(e,t){super(),this.#e=e,this.setOptions(t),this.bindMethods(),this.#i()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){let t=this.options;this.options=this.#e.defaultMutationOptions(e),(0,o.VS)(this.options,t)||this.#e.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#r,observer:this}),t?.mutationKey&&this.options.mutationKey&&(0,o.Ym)(t.mutationKey)!==(0,o.Ym)(this.options.mutationKey)?this.reset():this.#r?.state.status==="pending"&&this.#r.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#r?.removeObserver(this)}onMutationUpdate(e){this.#i(),this.#n(e)}getCurrentResult(){return this.#t}reset(){this.#r?.removeObserver(this),this.#r=void 0,this.#i(),this.#n()}mutate(e,t){return this.#s=t,this.#r?.removeObserver(this),this.#r=this.#e.getMutationCache().build(this.#e,this.options),this.#r.addObserver(this),this.#r.execute(e)}#i(){let e=this.#r?.state??(0,i.R)();this.#t={...e,isPending:"pending"===e.status,isSuccess:"success"===e.status,isError:"error"===e.status,isIdle:"idle"===e.status,mutate:this.mutate,reset:this.reset}}#n(e){n.Vr.batch(()=>{if(this.#s&&this.hasListeners()){let t=this.#t.variables,r=this.#t.context;e?.type==="success"?(this.#s.onSuccess?.(e.data,t,r),this.#s.onSettled?.(e.data,null,t,r)):e?.type==="error"&&(this.#s.onError?.(e.error,t,r),this.#s.onSettled?.(void 0,e.error,t,r))}this.listeners.forEach(e=>{e(this.#t)})})}},l=r(58026),c=r(89073);function h(e,t){let r=(0,l.NL)(t),[i]=s.useState(()=>new u(r,e));s.useEffect(()=>{i.setOptions(e)},[i,e]);let a=s.useSyncExternalStore(s.useCallback(e=>i.subscribe(n.Vr.batchCalls(e)),[i]),()=>i.getCurrentResult(),()=>i.getCurrentResult()),o=s.useCallback((e,t)=>{i.mutate(e,t).catch(c.Z)},[i]);if(a.error&&(0,c.L)(i.options.throwOnError,[a.error]))throw a.error;return{...a,mutate:o,mutateAsync:a.mutate}}},57077:function(e,t,r){let s;r.d(t,{a:()=>w});var i=r(29241),n=r(88730),a=r(15239),o=r(22838),u=r(90260),l=r(76269),c=class extends o.l{constructor(e,t){super(),this.options=t,this.#e=e,this.#a=null,this.#o=(0,u.O)(),this.options.experimental_prefetchInRender||this.#o.reject(Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(t)}#e;#u=void 0;#l=void 0;#t=void 0;#c;#h;#o;#a;#d;#p;#f;#y;#R;#m;#v=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(this.#u.addObserver(this),h(this.#u,this.options)?this.#b():this.updateResult(),this.#g())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return d(this.#u,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return d(this.#u,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#O(),this.#I(),this.#u.removeObserver(this)}setOptions(e){let t=this.options,r=this.#u;if(this.options=this.#e.defaultQueryOptions(e),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled&&"function"!=typeof this.options.enabled&&"boolean"!=typeof(0,l.Nc)(this.options.enabled,this.#u))throw Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#C(),this.#u.setOptions(this.options),t._defaulted&&!(0,l.VS)(this.options,t)&&this.#e.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#u,observer:this});let s=this.hasListeners();s&&p(this.#u,r,this.options,t)&&this.#b(),this.updateResult(),s&&(this.#u!==r||(0,l.Nc)(this.options.enabled,this.#u)!==(0,l.Nc)(t.enabled,this.#u)||(0,l.KC)(this.options.staleTime,this.#u)!==(0,l.KC)(t.staleTime,this.#u))&&this.#x();let i=this.#Q();s&&(this.#u!==r||(0,l.Nc)(this.options.enabled,this.#u)!==(0,l.Nc)(t.enabled,this.#u)||i!==this.#m)&&this.#M(i)}getOptimisticResult(e){var t,r;let s=this.#e.getQueryCache().build(this.#e,e),i=this.createResult(s,e);return t=this,r=i,(0,l.VS)(t.getCurrentResult(),r)||(this.#t=i,this.#h=this.options,this.#c=this.#u.state),i}getCurrentResult(){return this.#t}trackResult(e,t){let r={};return Object.keys(e).forEach(s=>{Object.defineProperty(r,s,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(s),t?.(s),e[s])})}),r}trackProp(e){this.#v.add(e)}getCurrentQuery(){return this.#u}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){let t=this.#e.defaultQueryOptions(e),r=this.#e.getQueryCache().build(this.#e,t);return r.fetch().then(()=>this.createResult(r,t))}fetch(e){return this.#b({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#t))}#b(e){this.#C();let t=this.#u.fetch(this.options,e);return e?.throwOnError||(t=t.catch(l.ZT)),t}#x(){this.#O();let e=(0,l.KC)(this.options.staleTime,this.#u);if(l.sk||this.#t.isStale||!(0,l.PN)(e))return;let t=(0,l.Kp)(this.#t.dataUpdatedAt,e);this.#y=setTimeout(()=>{this.#t.isStale||this.updateResult()},t+1)}#Q(){return("function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.#u):this.options.refetchInterval)??!1}#M(e){this.#I(),this.#m=e,!l.sk&&!1!==(0,l.Nc)(this.options.enabled,this.#u)&&(0,l.PN)(this.#m)&&0!==this.#m&&(this.#R=setInterval(()=>{(this.options.refetchIntervalInBackground||i.j.isFocused())&&this.#b()},this.#m))}#g(){this.#x(),this.#M(this.#Q())}#O(){this.#y&&(clearTimeout(this.#y),this.#y=void 0)}#I(){this.#R&&(clearInterval(this.#R),this.#R=void 0)}createResult(e,t){let r,s=this.#u,i=this.options,n=this.#t,o=this.#c,c=this.#h,d=e!==s?e.state:this.#l,{state:y}=e,R={...y},m=!1;if(t._optimisticResults){let r=this.hasListeners(),n=!r&&h(e,t),o=r&&p(e,s,t,i);(n||o)&&(R={...R,...(0,a.z)(y.data,e.options)}),"isRestoring"===t._optimisticResults&&(R.fetchStatus="idle")}let{error:v,errorUpdatedAt:b,status:g}=R;r=R.data;let O=!1;if(void 0!==t.placeholderData&&void 0===r&&"pending"===g){let e;n?.isPlaceholderData&&t.placeholderData===c?.placeholderData?(e=n.data,O=!0):e="function"==typeof t.placeholderData?t.placeholderData(this.#f?.state.data,this.#f):t.placeholderData,void 0!==e&&(g="success",r=(0,l.oE)(n?.data,e,t),m=!0)}if(t.select&&void 0!==r&&!O)if(n&&r===o?.data&&t.select===this.#d)r=this.#p;else try{this.#d=t.select,r=t.select(r),r=(0,l.oE)(n?.data,r,t),this.#p=r,this.#a=null}catch(e){this.#a=e}this.#a&&(v=this.#a,r=this.#p,b=Date.now(),g="error");let I="fetching"===R.fetchStatus,C="pending"===g,x="error"===g,Q=C&&I,M=void 0!==r,D={status:g,fetchStatus:R.fetchStatus,isPending:C,isSuccess:"success"===g,isError:x,isInitialLoading:Q,isLoading:Q,data:r,dataUpdatedAt:R.dataUpdatedAt,error:v,errorUpdatedAt:b,failureCount:R.fetchFailureCount,failureReason:R.fetchFailureReason,errorUpdateCount:R.errorUpdateCount,isFetched:R.dataUpdateCount>0||R.errorUpdateCount>0,isFetchedAfterMount:R.dataUpdateCount>d.dataUpdateCount||R.errorUpdateCount>d.errorUpdateCount,isFetching:I,isRefetching:I&&!C,isLoadingError:x&&!M,isPaused:"paused"===R.fetchStatus,isPlaceholderData:m,isRefetchError:x&&M,isStale:f(e,t),refetch:this.refetch,promise:this.#o};if(this.options.experimental_prefetchInRender){let t=e=>{"error"===D.status?e.reject(D.error):void 0!==D.data&&e.resolve(D.data)},r=()=>{t(this.#o=D.promise=(0,u.O)())},i=this.#o;switch(i.status){case"pending":e.queryHash===s.queryHash&&t(i);break;case"fulfilled":("error"===D.status||D.data!==i.value)&&r();break;case"rejected":("error"!==D.status||D.error!==i.reason)&&r()}}return D}updateResult(){let e=this.#t,t=this.createResult(this.#u,this.options);this.#c=this.#u.state,this.#h=this.options,void 0!==this.#c.data&&(this.#f=this.#u),(0,l.VS)(t,e)||(this.#t=t,this.#n({listeners:(()=>{if(!e)return!0;let{notifyOnChangeProps:t}=this.options,r="function"==typeof t?t():t;if("all"===r||!r&&!this.#v.size)return!0;let s=new Set(r??this.#v);return this.options.throwOnError&&s.add("error"),Object.keys(this.#t).some(t=>this.#t[t]!==e[t]&&s.has(t))})()}))}#C(){let e=this.#e.getQueryCache().build(this.#e,this.options);if(e===this.#u)return;let t=this.#u;this.#u=e,this.#l=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#g()}#n(e){n.Vr.batch(()=>{e.listeners&&this.listeners.forEach(e=>{e(this.#t)}),this.#e.getQueryCache().notify({query:this.#u,type:"observerResultsUpdated"})})}};function h(e,t){return!1!==(0,l.Nc)(t.enabled,e)&&void 0===e.state.data&&("error"!==e.state.status||!1!==t.retryOnMount)||void 0!==e.state.data&&d(e,t,t.refetchOnMount)}function d(e,t,r){if(!1!==(0,l.Nc)(t.enabled,e)){let s="function"==typeof r?r(e):r;return"always"===s||!1!==s&&f(e,t)}return!1}function p(e,t,r,s){return(e!==t||!1===(0,l.Nc)(s.enabled,e))&&(!r.suspense||"error"!==e.state.status)&&f(e,r)}function f(e,t){return!1!==(0,l.Nc)(t.enabled,e)&&e.isStaleByTime((0,l.KC)(t.staleTime,e))}var y=r(8491),R=r(58026);r(31549);var m=y.createContext((s=!1,{clearReset:()=>{s=!1},reset:()=>{s=!0},isReset:()=>s})),v=()=>y.useContext(m),b=r(89073),g=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&!t.isReset()&&(e.retryOnMount=!1)},O=e=>{y.useEffect(()=>{e.clearReset()},[e])},I=({result:e,errorResetBoundary:t,throwOnError:r,query:s,suspense:i})=>e.isError&&!t.isReset()&&!e.isFetching&&s&&(i&&void 0===e.data||(0,b.L)(r,[e.error,s])),C=y.createContext(!1),x=()=>y.useContext(C);C.Provider;var Q=e=>{let t=e.staleTime;e.suspense&&(e.staleTime="function"==typeof t?(...e)=>Math.max(t(...e),1e3):Math.max(t??1e3,1e3),"number"==typeof e.gcTime&&(e.gcTime=Math.max(e.gcTime,1e3)))},M=(e,t)=>e.isLoading&&e.isFetching&&!t,D=(e,t)=>e?.suspense&&t.isPending,k=(e,t,r)=>t.fetchOptimistic(e).catch(()=>{r.clearReset()});function w(e,t){return function(e,t,r){let s=(0,R.NL)(r),i=x(),a=v(),o=s.defaultQueryOptions(e);s.getDefaultOptions().queries?._experimental_beforeQuery?.(o),o._optimisticResults=i?"isRestoring":"optimistic",Q(o),g(o,a),O(a);let u=!s.getQueryCache().get(o.queryHash),[c]=y.useState(()=>new t(s,o)),h=c.getOptimisticResult(o),d=!i&&!1!==e.subscribed;if(y.useSyncExternalStore(y.useCallback(e=>{let t=d?c.subscribe(n.Vr.batchCalls(e)):b.Z;return c.updateResult(),t},[c,d]),()=>c.getCurrentResult(),()=>c.getCurrentResult()),y.useEffect(()=>{c.setOptions(o)},[o,c]),D(o,h))throw k(o,c,a);if(I({result:h,errorResetBoundary:a,throwOnError:o.throwOnError,query:s.getQueryCache().get(o.queryHash),suspense:o.suspense}))throw h.error;if(s.getDefaultOptions().queries?._experimental_afterQuery?.(o,h),o.experimental_prefetchInRender&&!l.sk&&M(h,i)){let e=u?k(o,c,a):s.getQueryCache().get(o.queryHash)?.promise;e?.catch(b.Z).finally(()=>{c.updateResult()})}return o.notifyOnChangeProps?h:c.trackResult(h)}(e,c,t)}},89073:function(e,t,r){function s(e,t){return"function"==typeof e?e(...t):!!e}function i(){}r.d(t,{L:()=>s,Z:()=>i})},94455:function(e,t,r){r.d(t,{s:()=>n});var s=r(8491),i=r(46041);function n(e){let{navigate:t}=(0,i.t)();return s.useCallback(r=>t({from:null==e?void 0:e.from,...r}),[null==e?void 0:e.from,t])}}}]);
|
@@ -0,0 +1 @@
|
|
1
|
+
(self.webpackChunkremote=self.webpackChunkremote||[]).push([["929"],{59922:function(e,t,a){var s={"./af":"85610","./af.js":"85610","./ar":"26352","./ar-dz":"83744","./ar-dz.js":"83744","./ar-kw":"44287","./ar-kw.js":"44287","./ar-ly":"8407","./ar-ly.js":"8407","./ar-ma":"50089","./ar-ma.js":"50089","./ar-ps":"97198","./ar-ps.js":"97198","./ar-sa":"47317","./ar-sa.js":"47317","./ar-tn":"5791","./ar-tn.js":"5791","./ar.js":"26352","./az":"62827","./az.js":"62827","./be":"58481","./be.js":"58481","./bg":"92593","./bg.js":"92593","./bm":"62298","./bm.js":"62298","./bn":"52645","./bn-bd":"5311","./bn-bd.js":"5311","./bn.js":"52645","./bo":"60610","./bo.js":"60610","./br":"60175","./br.js":"60175","./bs":"39229","./bs.js":"39229","./ca":"74592","./ca.js":"74592","./cs":"14502","./cs.js":"14502","./cv":"48342","./cv.js":"48342","./cy":"78263","./cy.js":"78263","./da":"30027","./da.js":"30027","./de":"22795","./de-at":"56449","./de-at.js":"56449","./de-ch":"81678","./de-ch.js":"81678","./de.js":"22795","./dv":"86635","./dv.js":"86635","./el":"25988","./el.js":"25988","./en-au":"30166","./en-au.js":"30166","./en-ca":"83753","./en-ca.js":"83753","./en-gb":"17987","./en-gb.js":"17987","./en-ie":"40272","./en-ie.js":"40272","./en-il":"36439","./en-il.js":"36439","./en-in":"75246","./en-in.js":"75246","./en-nz":"80039","./en-nz.js":"80039","./en-sg":"82080","./en-sg.js":"82080","./eo":"73638","./eo.js":"73638","./es":"84573","./es-do":"9490","./es-do.js":"9490","./es-mx":"17238","./es-mx.js":"17238","./es-us":"35567","./es-us.js":"35567","./es.js":"84573","./et":"67383","./et.js":"67383","./eu":"34847","./eu.js":"34847","./fa":"79712","./fa.js":"79712","./fi":"3664","./fi.js":"3664","./fil":"8029","./fil.js":"8029","./fo":"77589","./fo.js":"77589","./fr":"16946","./fr-ca":"35878","./fr-ca.js":"35878","./fr-ch":"61916","./fr-ch.js":"61916","./fr.js":"16946","./fy":"90582","./fy.js":"90582","./ga":"95715","./ga.js":"95715","./gd":"44302","./gd.js":"44302","./gl":"69231","./gl.js":"69231","./gom-deva":"49657","./gom-deva.js":"49657","./gom-latn":"67895","./gom-latn.js":"67895","./gu":"40288","./gu.js":"40288","./he":"53640","./he.js":"53640","./hi":"40424","./hi.js":"40424","./hr":"8747","./hr.js":"8747","./hu":"68209","./hu.js":"68209","./hy-am":"13663","./hy-am.js":"13663","./id":"56532","./id.js":"56532","./is":"1957","./is.js":"1957","./it":"36130","./it-ch":"54790","./it-ch.js":"54790","./it.js":"36130","./ja":"26383","./ja.js":"26383","./jv":"11451","./jv.js":"11451","./ka":"8264","./ka.js":"8264","./kk":"49628","./kk.js":"49628","./km":"10870","./km.js":"10870","./kn":"79694","./kn.js":"79694","./ko":"20249","./ko.js":"20249","./ku":"86703","./ku-kmr":"48254","./ku-kmr.js":"48254","./ku.js":"86703","./ky":"20159","./ky.js":"20159","./lb":"66473","./lb.js":"66473","./lo":"85180","./lo.js":"85180","./lt":"37154","./lt.js":"37154","./lv":"52691","./lv.js":"52691","./me":"71909","./me.js":"71909","./mi":"82387","./mi.js":"82387","./mk":"57026","./mk.js":"57026","./ml":"26576","./ml.js":"26576","./mn":"95111","./mn.js":"95111","./mr":"96316","./mr.js":"96316","./ms":"24265","./ms-my":"57452","./ms-my.js":"57452","./ms.js":"24265","./mt":"40809","./mt.js":"40809","./my":"28422","./my.js":"28422","./nb":"57895","./nb.js":"57895","./ne":"77417","./ne.js":"77417","./nl":"26826","./nl-be":"48055","./nl-be.js":"48055","./nl.js":"26826","./nn":"35617","./nn.js":"35617","./oc-lnc":"4623","./oc-lnc.js":"4623","./pa-in":"60210","./pa-in.js":"60210","./pl":"48449","./pl.js":"48449","./pt":"11943","./pt-br":"28655","./pt-br.js":"28655","./pt.js":"11943","./ro":"81320","./ro.js":"81320","./ru":"77115","./ru.js":"77115","./sd":"33464","./sd.js":"33464","./se":"31269","./se.js":"31269","./si":"31034","./si.js":"31034","./sk":"72210","./sk.js":"72210","./sl":"85341","./sl.js":"85341","./sq":"16470","./sq.js":"16470","./sr":"32393","./sr-cyrl":"72135","./sr-cyrl.js":"72135","./sr.js":"32393","./ss":"63302","./ss.js":"63302","./sv":"90639","./sv.js":"90639","./sw":"89962","./sw.js":"89962","./ta":"58622","./ta.js":"58622","./te":"36189","./te.js":"36189","./tet":"28800","./tet.js":"28800","./tg":"81402","./tg.js":"81402","./th":"12836","./th.js":"12836","./tk":"18212","./tk.js":"18212","./tl-ph":"85362","./tl-ph.js":"85362","./tlh":"94149","./tlh.js":"94149","./tr":"87191","./tr.js":"87191","./tzl":"27204","./tzl.js":"27204","./tzm":"80618","./tzm-latn":"69431","./tzm-latn.js":"69431","./tzm.js":"80618","./ug-cn":"98384","./ug-cn.js":"98384","./uk":"22262","./uk.js":"22262","./ur":"39303","./ur.js":"39303","./uz":"52794","./uz-latn":"75967","./uz-latn.js":"75967","./uz.js":"52794","./vi":"36749","./vi.js":"36749","./x-pseudo":"59276","./x-pseudo.js":"59276","./yo":"11317","./yo.js":"11317","./zh-cn":"48165","./zh-cn.js":"48165","./zh-hk":"25653","./zh-hk.js":"25653","./zh-mo":"95058","./zh-mo.js":"95058","./zh-tw":"11094","./zh-tw.js":"11094"};function i(e){return a(n(e))}function n(e){if(!a.o(s,e)){var t=Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return s[e]}i.keys=function(){return Object.keys(s)},i.resolve=n,e.exports=i,i.id=59922},29055:function(e,t,a){"use strict";a.d(t,{_V:()=>i,rc:()=>s});let s=()=>{let e=localStorage.getItem("current_user"),t=e?JSON.parse(e):null;return t?t.sub:""},i=()=>localStorage.getItem("access_token")},56896:function(e,t,a){"use strict";a.d(t,{R:()=>s});let s=(0,a(19221).ZP)({baseUrl:"https://dev.clip.api.8600800.com",headers:{access_token:"undefined"!=typeof window&&localStorage.getItem("access_token")}})},57972:function(e,t,a){"use strict";a.d(t,{Bw:()=>h,DI:()=>m,Ph:()=>d,Ql:()=>g,i4:()=>u,ki:()=>_});var s=a(31549),i=a(79815),n=a(39841),o=a(85626),r=a(95851),l=a(8491),c=a(71553);let d=i.fC,m=i.ZA,_=i.B4,u=l.forwardRef((e,t)=>{let{className:a,children:o,...r}=e;return(0,s.jsxs)(i.xz,{ref:t,className:(0,c.cn)("flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-zinc-200 bg-transparent px-3 py-2 text-sm shadow-xs ring-offset-white placeholder:text-zinc-500 focus:outline-hidden focus:ring-1 focus:ring-zinc-950 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1 dark:border-zinc-800 dark:ring-offset-zinc-950 dark:placeholder:text-zinc-400 dark:focus:ring-zinc-300",a),...r,children:[o,(0,s.jsx)(i.JO,{asChild:!0,children:(0,s.jsx)(n.Z,{className:"h-4 w-4 opacity-50"})})]})});u.displayName=i.xz.displayName;let p=l.forwardRef((e,t)=>{let{className:a,...n}=e;return(0,s.jsx)(i.u_,{ref:t,className:(0,c.cn)("flex cursor-default items-center justify-center py-1",a),...n,children:(0,s.jsx)(o.Z,{className:"h-4 w-4"})})});p.displayName=i.u_.displayName;let f=l.forwardRef((e,t)=>{let{className:a,...o}=e;return(0,s.jsx)(i.$G,{ref:t,className:(0,c.cn)("flex cursor-default items-center justify-center py-1",a),...o,children:(0,s.jsx)(n.Z,{className:"h-4 w-4"})})});f.displayName=i.$G.displayName;let h=l.forwardRef((e,t)=>{let{className:a,children:n,position:o="popper",...r}=e;return(0,s.jsx)(i.h_,{children:(0,s.jsxs)(i.VY,{ref:t,className:(0,c.cn)("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border border-zinc-200 bg-white text-zinc-950 shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 dark:border-zinc-800 dark:bg-zinc-950 dark:text-zinc-50","popper"===o&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",a),position:o,...r,children:[(0,s.jsx)(p,{}),(0,s.jsx)(i.l_,{className:(0,c.cn)("p-1","popper"===o&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:n}),(0,s.jsx)(f,{})]})})});h.displayName=i.VY.displayName,l.forwardRef((e,t)=>{let{className:a,...n}=e;return(0,s.jsx)(i.__,{ref:t,className:(0,c.cn)("px-2 py-1.5 text-sm font-semibold",a),...n})}).displayName=i.__.displayName;let g=l.forwardRef((e,t)=>{let{className:a,children:n,...o}=e;return(0,s.jsxs)(i.ck,{ref:t,className:(0,c.cn)("relative flex w-full cursor-default select-none items-center rounded-xs py-1.5 pl-2 pr-8 text-sm outline-hidden focus:bg-zinc-100 focus:text-zinc-900 data-disabled:pointer-events-none data-disabled:opacity-50 dark:focus:bg-zinc-800 dark:focus:text-zinc-50",a),...o,children:[(0,s.jsx)("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,s.jsx)(i.wU,{children:(0,s.jsx)(r.Z,{className:"h-4 w-4"})})}),(0,s.jsx)(i.eT,{children:n})]})});g.displayName=i.ck.displayName,l.forwardRef((e,t)=>{let{className:a,...n}=e;return(0,s.jsx)(i.Z0,{ref:t,className:(0,c.cn)("-mx-1 my-1 h-px bg-zinc-100 dark:bg-zinc-800",a),...n})}).displayName=i.Z0.displayName},57282:function(e,t,a){"use strict";a.d(t,{Z:()=>r});var s=a(31549),i=a(11188),n=a(8491),o=a(71553);let r=n.forwardRef((e,t)=>{let{className:a,orientation:n="horizontal",decorative:r=!0,...l}=e;return(0,s.jsx)(i.f,{ref:t,decorative:r,orientation:n,className:(0,o.cn)("shrink-0 bg-zinc-200 dark:bg-zinc-800","horizontal"===n?"h-[1px] w-full":"h-full w-[1px]",a),...l})});r.displayName=i.f.displayName},44153:function(e,t,a){"use strict";a.d(t,{RM:()=>l,SC:()=>c,iA:()=>o,pj:()=>m,ss:()=>d,xD:()=>r});var s=a(31549),i=a(8491),n=a(71553);let o=i.forwardRef((e,t)=>{let{className:a,...i}=e;return(0,s.jsx)("div",{className:"relative w-full overflow-auto",children:(0,s.jsx)("table",{ref:t,className:(0,n.cn)("w-full caption-bottom text-sm",a),...i})})});o.displayName="Table";let r=i.forwardRef((e,t)=>{let{className:a,...i}=e;return(0,s.jsx)("thead",{ref:t,className:(0,n.cn)("[&_tr]:border-b",a),...i})});r.displayName="TableHeader";let l=i.forwardRef((e,t)=>{let{className:a,...i}=e;return(0,s.jsx)("tbody",{ref:t,className:(0,n.cn)("[&_tr:last-child]:border-0",a),...i})});l.displayName="TableBody",i.forwardRef((e,t)=>{let{className:a,...i}=e;return(0,s.jsx)("tfoot",{ref:t,className:(0,n.cn)("border-t bg-zinc-100/50 font-medium last:[&>tr]:border-b-0 dark:bg-zinc-800/50",a),...i})}).displayName="TableFooter";let c=i.forwardRef((e,t)=>{let{className:a,...i}=e;return(0,s.jsx)("tr",{ref:t,className:(0,n.cn)("border-b transition-colors hover:bg-zinc-100/50 data-[state=selected]:bg-zinc-100 dark:hover:bg-zinc-800/50 dark:data-[state=selected]:bg-zinc-800",a),...i})});c.displayName="TableRow";let d=i.forwardRef((e,t)=>{let{className:a,...i}=e;return(0,s.jsx)("th",{ref:t,className:(0,n.cn)("h-10 px-2 text-left align-middle font-medium text-zinc-500 [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px] dark:text-zinc-400",a),...i})});d.displayName="TableHead";let m=i.forwardRef((e,t)=>{let{className:a,...i}=e;return(0,s.jsx)("td",{ref:t,className:(0,n.cn)("p-2 align-middle [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",a),...i})});m.displayName="TableCell",i.forwardRef((e,t)=>{let{className:a,...i}=e;return(0,s.jsx)("caption",{ref:t,className:(0,n.cn)("mt-4 text-sm text-zinc-500 dark:text-zinc-400",a),...i})}).displayName="TableCaption"},91299:function(e,t,a){"use strict";a.d(t,{Qg:()=>d,iL:()=>c});var s=a(31549),i=a(8491),n=a(5898);let o=[{code:"en",name:"English",flag:"\uD83C\uDDFA\uD83C\uDDF8"},{code:"zh",name:"中文",flag:"\uD83C\uDDE8\uD83C\uDDF3"}],r={en:{home:{title:"Creative",share:{title:"Share",link:"Generate share link",copy:"Copy",copied:"Copied",share:"Copy",use_share_link_content:"Use share link"},project:{rename:"Rename",clone:"Clone",delete:"Delete"},create_project:"Create project",header_menu:{charge:"Recharge",invite_link:"Invite link",sign_out:"Sign out"}},nav:{logo:"SwiftcastAI",hot:"Trending",build:"Create",publish:"Publish",analysis:"Analysis",modal_space:"ComfyUI Store",admin:"Platform Monitoring"},editor:{menu:{import:"Import",refer:"Reference",script:"Script",publish:"Publish",clip:"Clip",templates:"Templates",cui:"ComfyUI"},menu_item:{subtitle_synthesis:"Subtitle Cutter",audio_synthesis:"Audio Cutter",shot_synthesis:"Shot Cutter",shot_text_synthesis:"Text Splitter",fabric_synthesis:"Fabric Cutter",text_to_image:"Text to Image",image_to_video:"Image to Video",image_to_static_video:"Image to Static Video",image_replication:"Image Replication",image_hd_zoom:"Image HD Zoom",image_to_video_prompt_enhancement:"Image to Video Prompt Enhancement",intelligent_matting:"Intelligent Matting",image_to_description:"Image to Description",get_audio:"Get Audio",get_first_frame:"Get First Frame",get_last_frame:"Get Last Frame",sound_effect_generation:"Sound Effect Generation",voice_generation_tts:"Voice Generation TTS",text:"Text",image:"Image",music:"Music",image_tail:"Image Tail",video:"Video",data_source:"Lark Table Data Source",video_download:"Download Video",underlay_image:"Underlay Image",image_mark:"Mask Editor",aspect_ratio:"Aspect Ratio",ai_assistant:"AI Assistant",ai_translation_en:"AI Translation (Chinese to English)",default_video_template:"Default Video Template",all_components_demo:"All Components Demo",publish_to_tiktok:"Publish to TikTok"},menu_action:{convert:"Convert",handle:"Process",clone:"Clone",delete:"Delete",run:"Run",running:"Running",sync_workflow:"Sync [Workflow] Task",sync_checkpoint:"Sync [Checkpoint] Task",clean_canvas:"Clear Current Canvas",clean_canvas_confirm:"Clear All Content on Current Canvas",clean_current_project:"Delete Current Project",clean_current_project_confirm:"The current pipeline will be permanently deleted",workflow_content:"Will synchronously update a pipeline, periodically pushing the output video of the current workflow to [Pending Review]",confirm:"Confirm",confirm_content:"Confirmation Window",project_name_placeholder:"Project Name",template_cleaned_confirm:"After this operation, an automated pipeline (with four review nodes) will be synchronized in the automation pipeline. Are you sure you want to add it?",template_applied_confirm:"Adding a template will clear the current canvas. Are you sure?"},canvas_toolbar:{task_id:"Task ID",task_name:"Task Name",task_status:"Status",task_time:"Task Time",task_duration:"Task Duration",task_progress:"Task Progress",task_estimated_time:"Estimated Time",task_not_found:"No tasks found."}},keyboard_shortcuts:{unknown_platform:"Unknown Platform",help:"Keyboard Shortcuts Help",title:"Keyboard Shortcuts",tip:"Tip: Shortcuts based on",platform_display:"Platform Display",cmd_v:"Select Mode",cmd_h:"Drag Mode",cmd_d:"Toggle Developer Mode",cmd_b:"Auto Fit",cmd_s:"Save",cmd_w:"Close Tab",cmd_z:"Undo",cmd_y:"Redo"},nodes:{audio2clip:{form_1:"Music Loop",form_2:"Video Loop",form_3:"Clip Method",form_4:"Music Starting Point"},audio_generate:{input_placeholder:"Describe the sound effect you want, such as: cat meow, wind sound, gunshot.",input_audio_length:"Audio Length (s)"},audio:{},combo_source_node:{},feature_node:{},image2image:{placeholder:"Video Manual Prompt Enhancement"},image2video:{input_select_items_1:"Wanxiang 2.1 480P",input_select_items_2:"Wanxiang 2.1 720P",input_select_items_3:"Cog VideoX 1.5",input_select_items_4:"Keling 1.6",input_select_items_8:"Keling 2.0",input_select_items_5:"Keling 1.0",input_select_items_6:"Keling 1.6 AceCloud",input_select_items_7:"hailuo AceCloud",keling_option_1:"Standard",keling_option_2:"High Quality",placeholder:"(Optional) Prompt instructions."},llm_translate:{gpt4omini:"GPT 4o Mini",claude37:"Claude 3.7"},image:{},image_mat:{options_1:"Image Reference",options_2:"Style Reference",options_3:"Character Reference"},publish_node:{item_button:"Auto-fill Title, Tags",account:"Account",title:"Title",tags:"Tags",plan:"Plan",type_from_video:"Content Type",publish_time:"Publish Date"},resource_node:{},screen_node:{},script_master:{},story_diffusion:{},subtitle:{form_1:"Vertical Alignment",form_2:"Vertical Offset",form_3:"Horizontal Alignment",form_4:"Size",form_5:"Font",form_6:"Color"},text2image:{option_1:"Underlay Image",option_2:"Underlay Reference",option_3:"Size Settings",placeholder:"Describe the image you want to generate."},text:{},tts:{placeholder:"Please enter the text you want to be read aloud"},video2clip:{},video:{tip:"Jump to Address"}},pagination:{previous:"Previous",next:"Next"}},zh:{home:{title:"创意",share:{title:"共享",link:"生成共享链接",copy:"复制",copied:"已复制",share:"复制",use_share_link_content:"使用共享链接"},project:{rename:"重命名",clone:"复刻",delete:"删除"},create_project:"创建项目",header_menu:{charge:"充值",invite_link:"邀请链接",sign_out:"登出"}},nav:{logo:"旷野群星",hot:"热播",build:"制作",publish:"发布",analysis:"分析",modal_space:"ComfyUI 工作流管理",admin:"平台监控"},editor:{menu:{import:"导入",refer:"参考",script:"脚本",publish:"发布",clip:"剪辑",templates:"模板",cui:"ComfyUI"},menu_item:{subtitle_synthesis:"字幕合成",audio_synthesis:"音频合成",shot_synthesis:"镜头合成",shot_text_synthesis:"文本合成",fabric_synthesis:"贴纸合成",text_to_image:"文生图",image_to_video:"图生视频",image_to_static_video:"图生静态视频",image_replication:"图片复刻",image_hd_zoom:"图片高清放大",image_to_video_prompt_enhancement:"图生视频提示词增强",intelligent_matting:"智能抠图",image_to_description:"图转描述",get_audio:"获取音频",get_first_frame:"获取首帧",get_last_frame:"获取尾帧",sound_effect_generation:"音效生成",voice_generation_tts:"语音生成 TTS",text:"文本",image:"图片",music:"音乐",video:"视频",data_source:"多维表格数据源",video_download:"下载视频",underlay_image:"垫图",image_tail:"尾图",aspect_ratio:"画面比例",image_mark:"遮罩编辑器",ai_assistant:"AI 助理",ai_translation_en:"翻译",default_video_template:"默认视频模板",all_components_demo:"所有组件展示",publish_to_tiktok:"发布到抖音"},menu_action:{convert:"转换",handle:"处理",clone:"复刻",delete:"删除",run:"运行",running:"运行中",sync_workflow:"同步【工作流】任务",sync_checkpoint:"同步【checkpoint】任务",clean_canvas:"清除当前画布",clean_canvas_confirm:"清除当前画布的所有内容",clean_current_project:"删除当前项目",clean_current_project_confirm:"当前流水线将永久删除",workflow_content:"会同步更新一条流水线,对当前工作流的输出视频定时推送到【待审核】",confirm:"确认",confirm_content:"确认窗口",project_name_placeholder:"项目名称",template_cleaned_confirm:"此操作后会在自动化流水线里同步自动化管道(四个审查节点),确认要加入嘛?",template_applied_confirm:"添加模板会清空当前画布,确定吗?"},canvas_toolbar:{task_id:"任务 ID",task_name:"任务类型",task_status:"状态",task_time:"任务耗时",task_duration:"任务时长",task_progress:"任务进度",task_estimated_time:"预计完成时间",task_not_found:"目前暂无任务"}},keyboard_shortcuts:{unknown_platform:"未知平台",help:"键盘快捷键帮助",title:"键盘快捷键",tip:"提示: 快捷键基于",platform_display:"平台显示",cmd_v:"选择模式",cmd_h:"拖拽模式",cmd_d:"切换 Developer 模式",cmd_b:"自动适应",cmd_s:"保存",cmd_w:"关闭标签页",cmd_z:"撤销",cmd_y:"重做"},nodes:{audio2clip:{form_1:"音乐循环",form_2:"视频循环",form_3:"合成方式",form_4:"音乐起点"},audio_generate:{input_placeholder:"描述想要的音效,比如:猫叫、风声、枪响。",input_audio_length:"音频长度s"},audio:{},combo_source_node:{},feature_node:{},image2image:{placeholder:"视频手动提示词增强"},image2video:{input_select_items_1:"万相2.1 480P",input_select_items_2:"万相2.1 720P",input_select_items_3:"Cog VideoX 1.5",input_select_items_4:"可灵 1.6",input_select_items_8:"可灵 2.0",input_select_items_5:"可灵 1.0",input_select_items_6:"可灵 1.6 AceCloud",input_select_items_7:"海螺 AceCloud",keling_option_1:"标准",keling_option_2:"高品质",placeholder:"(可选)Prompt 指令。"},llm_translate:{gpt4omini:"GPT 4o Mini",claude37:"Claude 3.7"},image:{},image_mat:{options_1:"图片参考",options_2:"风格参考",options_3:"人物参考"},publish_node:{item_button:"自动填充标题、标签",account:"账号",title:'"标题"',tags:'"标签"',plan:"计划",type_from_video:"内容类型",publish_time:"发布日期"},resource_node:{},screen_node:{},script_master:{},story_diffusion:{},subtitle:{form_1:"垂直对齐",form_2:"垂直偏移量",form_3:"水平对齐",form_4:"大小",form_5:"字体",form_6:"颜色"},text2image:{option_1:"垫图",option_2:"垫图参考",option_3:"尺寸设置",placeholder:"描述你想生成的图。"},text:{},tts:{placeholder:"请输入需要朗读的文字"},video2clip:{},video:{tip:"跳转到地址"}},pagination:{previous:"上一页",next:"下一页"}}},l=(0,i.createContext)({language:"zh",setLanguage:()=>{},languages:[],dictionary:{}});function c(e){let{children:t,initialLang:a="zh",initialDictionary:c}=e,[d,m]=(0,i.useState)("zh"),[_,u]=(0,i.useState)(c||r[a]||r.en),p=e=>{if(d!==e)try{let t=r[e];t?(u(t),m(e)):console.error(`Dictionary not found for language: ${e}`)}catch(t){console.error(`Failed to load dictionary for language: ${e}`,t)}};return(0,i.useEffect)(()=>{p((0,n.Wx)())},[]),(0,s.jsx)(l.Provider,{value:{language:d,setLanguage:p,languages:o,dictionary:_},children:t})}function d(){let e=(0,i.useContext)(l);if(void 0===e)throw Error("useLanguageContext must be used within a LanguageProvider");return e}},76497:function(e,t,a){"use strict";a.d(t,{Z:()=>i});var s=a(8491);function i(e,t){(0,s.useEffect)(()=>{e()},t)}},79530:function(e,t,a){"use strict";a.d(t,{E:()=>s});let s=new(a(88529)).S},78271:function(e,t,a){"use strict";a.d(t,{Ux:()=>d,Vj:()=>c,yV:()=>m});var s=a(84025),i=a.n(s),n=a(39378),o=a.n(n),r=a(79552),l=a(59658);function c(){let e=Array(36);for(let t=0;t<36;t++)e[t]=Math.floor(16*Math.random());return e[14]=4,e[19]=e[19]&=-5,e[19]=e[19]|=8,e[8]=e[13]=e[18]=e[23]="-",e.map(e=>e.toString(16)).join("")}let d=()=>i()().format("YYYY-MM-DD HH:mm:ss");function m(e,t,a){let s=o().cloneDeep(e);for(let e of t.data.data)s.teams.push({id:e.id,short_url_id:e.short_url_id,name:e.name,logo:r.Z,plan:e.description});for(let e of a.data.data)s.projects.push({id:e.id,team_id:e.team_id,name:e.name,short_url_id:e.short_url_id,create_at:e.create_at,update_at:e.update_at,url:"#",icon:l.Z});return s}}}]);
|
@@ -0,0 +1,2 @@
|
|
1
|
+
/*! For license information please see __federation_expose_ProjectsPage.e597d172.js.LICENSE.txt */
|
2
|
+
"use strict";(self.webpackChunkremote=self.webpackChunkremote||[]).push([["97"],{41857:function(e,a,t){t.d(a,{Z:()=>s});let s=(0,t(14115).Z)("grid-2x2",[["path",{d:"M12 3v18",key:"108xh3"}],["path",{d:"M3 12h18",key:"1i2n21"}],["rect",{x:"3",y:"3",width:"18",height:"18",rx:"2",key:"h1oib"}]])},61455:function(e,a,t){t.d(a,{Z:()=>s});let s=(0,t(14115).Z)("share",[["path",{d:"M4 12v8a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8",key:"1b2hhj"}],["polyline",{points:"16 6 12 2 8 6",key:"m901s6"}],["line",{x1:"12",x2:"12",y1:"2",y2:"15",key:"1p0rca"}]])},53701:function(e,a,t){t.d(a,{Ol:()=>i,Zb:()=>n,aY:()=>o,ll:()=>l});var s=t(31549),r=t(8491),d=t(71553);let n=r.forwardRef((e,a)=>{let{className:t,...r}=e;return(0,s.jsx)("div",{ref:a,className:(0,d.cn)("rounded-xl border border-zinc-200 bg-white text-zinc-950 shadow-sm dark:border-zinc-800 dark:bg-zinc-950 dark:text-zinc-50",t),...r})});n.displayName="Card";let i=r.forwardRef((e,a)=>{let{className:t,...r}=e;return(0,s.jsx)("div",{ref:a,className:(0,d.cn)("flex flex-col space-y-1.5 p-6",t),...r})});i.displayName="CardHeader";let l=r.forwardRef((e,a)=>{let{className:t,...r}=e;return(0,s.jsx)("div",{ref:a,className:(0,d.cn)("font-semibold leading-none tracking-tight",t),...r})});l.displayName="CardTitle",r.forwardRef((e,a)=>{let{className:t,...r}=e;return(0,s.jsx)("div",{ref:a,className:(0,d.cn)("text-sm text-zinc-500 dark:text-zinc-400",t),...r})}).displayName="CardDescription";let o=r.forwardRef((e,a)=>{let{className:t,...r}=e;return(0,s.jsx)("div",{ref:a,className:(0,d.cn)("p-6 pt-0",t),...r})});o.displayName="CardContent",r.forwardRef((e,a)=>{let{className:t,...r}=e;return(0,s.jsx)("div",{ref:a,className:(0,d.cn)("flex items-center p-6 pt-0",t),...r})}).displayName="CardFooter"},30929:function(e,a,t){t.d(a,{$N:()=>u,Be:()=>h,Vq:()=>l,cN:()=>m,cZ:()=>x,fK:()=>p,hg:()=>o});var s=t(31549),r=t(73752),d=t(5533),n=t(8491),i=t(71553);let l=r.fC,o=r.xz,c=r.h_;r.x8;let f=n.forwardRef((e,a)=>{let{className:t,...d}=e;return(0,s.jsx)(r.aV,{ref:a,className:(0,i.cn)("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",t),...d})});f.displayName=r.aV.displayName;let x=n.forwardRef((e,a)=>{let{className:t,children:n,...l}=e;return(0,s.jsxs)(c,{children:[(0,s.jsx)(f,{}),(0,s.jsxs)(r.VY,{ref:a,className:(0,i.cn)("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border border-zinc-200 bg-white p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg dark:border-zinc-800 dark:bg-zinc-950",t),...l,children:[n,(0,s.jsxs)(r.x8,{className:"absolute right-4 top-4 rounded-xs opacity-70 ring-offset-white transition-opacity hover:opacity-100 focus:outline-hidden focus:ring-2 focus:ring-zinc-950 focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-zinc-100 data-[state=open]:text-zinc-500 dark:ring-offset-zinc-950 dark:focus:ring-zinc-300 dark:data-[state=open]:bg-zinc-800 dark:data-[state=open]:text-zinc-400",children:[(0,s.jsx)(d.Z,{className:"h-4 w-4"}),(0,s.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})});x.displayName=r.VY.displayName;let p=e=>{let{className:a,...t}=e;return(0,s.jsx)("div",{className:(0,i.cn)("flex flex-col space-y-1.5 text-center sm:text-left",a),...t})};p.displayName="DialogHeader";let m=e=>{let{className:a,...t}=e;return(0,s.jsx)("div",{className:(0,i.cn)("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",a),...t})};m.displayName="DialogFooter";let u=n.forwardRef((e,a)=>{let{className:t,...d}=e;return(0,s.jsx)(r.Dx,{ref:a,className:(0,i.cn)("text-lg font-semibold leading-none tracking-tight",t),...d})});u.displayName=r.Dx.displayName;let h=n.forwardRef((e,a)=>{let{className:t,...d}=e;return(0,s.jsx)(r.dk,{ref:a,className:(0,i.cn)("text-sm text-zinc-500 dark:text-zinc-400",t),...d})});h.displayName=r.dk.displayName},53310:function(e,a,t){t.r(a),t.d(a,{default:()=>l});var s=t(31549),r=t(19813),d=t(91299),n=t(79530),i=t(58026);function l(e){return(0,s.jsx)(d.iL,{children:(0,s.jsx)(i.aH,{client:n.E,children:(0,s.jsx)(r.Z,{...e})})})}}}]);
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";(self.webpackChunkremote=self.webpackChunkremote||[]).push([["949"],{77164:function(e,t,r){r.r(t),r.d(t,{default:()=>s});var n=r(31549),o=r(38137),i=r(91299),l=r(79530),a=r(58026);function s(e){return(0,n.jsx)(i.iL,{children:(0,n.jsx)(a.aH,{client:l.E,children:(0,n.jsx)(o.Z,{...e})})})}},91866:function(e,t,r){r.d(t,{VY:()=>q,fC:()=>S,h_:()=>Z,pn:()=>E,xz:()=>W,zt:()=>X});var n=r(8491),o=r(71115),i=r(88905),l=r(76418),a=r(46938),s=r(1563),u=r(51603),c=r(36278),p=r(36387),d=r(78737),f=r(40349),x=r(81183),h=r(76770),g=r(31549),[v,y]=(0,l.b)("Tooltip",[u.D7]),b=(0,u.D7)(),m="TooltipProvider",w="tooltip.open",[C,T]=v(m),E=e=>{let{__scopeTooltip:t,delayDuration:r=700,skipDelayDuration:o=300,disableHoverableContent:i=!1,children:l}=e,a=n.useRef(!0),s=n.useRef(!1),u=n.useRef(0);return n.useEffect(()=>{let e=u.current;return()=>window.clearTimeout(e)},[]),(0,g.jsx)(C,{scope:t,isOpenDelayedRef:a,delayDuration:r,onOpen:n.useCallback(()=>{window.clearTimeout(u.current),a.current=!1},[]),onClose:n.useCallback(()=>{window.clearTimeout(u.current),u.current=window.setTimeout(()=>a.current=!0,o)},[o]),isPointerInTransitRef:s,onPointerInTransitChange:n.useCallback(e=>{s.current=e},[]),disableHoverableContent:i,children:l})};E.displayName=m;var k="Tooltip",[j,R]=v(k),L=e=>{let{__scopeTooltip:t,children:r,open:o,defaultOpen:i=!1,onOpenChange:l,disableHoverableContent:a,delayDuration:c}=e,p=T(k,e.__scopeTooltip),d=b(t),[f,h]=n.useState(null),v=(0,s.M)(),y=n.useRef(0),m=a??p.disableHoverableContent,C=c??p.delayDuration,E=n.useRef(!1),[R=!1,L]=(0,x.T)({prop:o,defaultProp:i,onChange:e=>{e?(p.onOpen(),document.dispatchEvent(new CustomEvent(w))):p.onClose(),l?.(e)}}),M=n.useMemo(()=>R?E.current?"delayed-open":"instant-open":"closed",[R]),P=n.useCallback(()=>{window.clearTimeout(y.current),y.current=0,E.current=!1,L(!0)},[L]),_=n.useCallback(()=>{window.clearTimeout(y.current),y.current=0,L(!1)},[L]),D=n.useCallback(()=>{window.clearTimeout(y.current),y.current=window.setTimeout(()=>{E.current=!0,L(!0),y.current=0},C)},[C,L]);return n.useEffect(()=>()=>{y.current&&(window.clearTimeout(y.current),y.current=0)},[]),(0,g.jsx)(u.fC,{...d,children:(0,g.jsx)(j,{scope:t,contentId:v,open:R,stateAttribute:M,trigger:f,onTriggerChange:h,onTriggerEnter:n.useCallback(()=>{p.isOpenDelayedRef.current?D():P()},[p.isOpenDelayedRef,D,P]),onTriggerLeave:n.useCallback(()=>{m?_():(window.clearTimeout(y.current),y.current=0)},[_,m]),onOpen:P,onClose:_,disableHoverableContent:m,children:r})})};L.displayName=k;var M="TooltipTrigger",P=n.forwardRef((e,t)=>{let{__scopeTooltip:r,...l}=e,a=R(M,r),s=T(M,r),c=b(r),p=n.useRef(null),f=(0,i.e)(t,p,a.onTriggerChange),x=n.useRef(!1),h=n.useRef(!1),v=n.useCallback(()=>x.current=!1,[]);return n.useEffect(()=>()=>document.removeEventListener("pointerup",v),[v]),(0,g.jsx)(u.ee,{asChild:!0,...c,children:(0,g.jsx)(d.WV.button,{"aria-describedby":a.open?a.contentId:void 0,"data-state":a.stateAttribute,...l,ref:f,onPointerMove:(0,o.M)(e.onPointerMove,e=>{"touch"!==e.pointerType&&(h.current||s.isPointerInTransitRef.current||(a.onTriggerEnter(),h.current=!0))}),onPointerLeave:(0,o.M)(e.onPointerLeave,()=>{a.onTriggerLeave(),h.current=!1}),onPointerDown:(0,o.M)(e.onPointerDown,()=>{a.open&&a.onClose(),x.current=!0,document.addEventListener("pointerup",v,{once:!0})}),onFocus:(0,o.M)(e.onFocus,()=>{x.current||a.onOpen()}),onBlur:(0,o.M)(e.onBlur,a.onClose),onClick:(0,o.M)(e.onClick,a.onClose)})})});P.displayName=M;var _="TooltipPortal",[D,O]=v(_,{forceMount:void 0}),I=e=>{let{__scopeTooltip:t,forceMount:r,children:n,container:o}=e,i=R(_,t);return(0,g.jsx)(D,{scope:t,forceMount:r,children:(0,g.jsx)(p.z,{present:r||i.open,children:(0,g.jsx)(c.h,{asChild:!0,container:o,children:n})})})};I.displayName=_;var N="TooltipContent",B=n.forwardRef((e,t)=>{let r=O(N,e.__scopeTooltip),{forceMount:n=r.forceMount,side:o="top",...i}=e,l=R(N,e.__scopeTooltip);return(0,g.jsx)(p.z,{present:n||l.open,children:l.disableHoverableContent?(0,g.jsx)(F,{side:o,...i,ref:t}):(0,g.jsx)(z,{side:o,...i,ref:t})})}),z=n.forwardRef((e,t)=>{let r=R(N,e.__scopeTooltip),o=T(N,e.__scopeTooltip),l=n.useRef(null),a=(0,i.e)(t,l),[s,u]=n.useState(null),{trigger:c,onClose:p}=r,d=l.current,{onPointerInTransitChange:f}=o,x=n.useCallback(()=>{u(null),f(!1)},[f]),h=n.useCallback((e,t)=>{let r=e.currentTarget,n={x:e.clientX,y:e.clientY},o=function(e,t){let r=Math.abs(t.top-e.y),n=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(r,n,o,i)){case i:return"left";case o:return"right";case r:return"top";case n:return"bottom";default:throw Error("unreachable")}}(n,r.getBoundingClientRect());u(function(e){let t=e.slice();return t.sort((e,t)=>e.x<t.x?-1:e.x>t.x?1:e.y<t.y?-1:1*!!(e.y>t.y)),function(e){if(e.length<=1)return e.slice();let t=[];for(let r=0;r<e.length;r++){let n=e[r];for(;t.length>=2;){let e=t[t.length-1],r=t[t.length-2];if((e.x-r.x)*(n.y-r.y)>=(e.y-r.y)*(n.x-r.x))t.pop();else break}t.push(n)}t.pop();let r=[];for(let t=e.length-1;t>=0;t--){let n=e[t];for(;r.length>=2;){let e=r[r.length-1],t=r[r.length-2];if((e.x-t.x)*(n.y-t.y)>=(e.y-t.y)*(n.x-t.x))r.pop();else break}r.push(n)}return(r.pop(),1===t.length&&1===r.length&&t[0].x===r[0].x&&t[0].y===r[0].y)?t:t.concat(r)}(t)}([...function(e,t,r=5){let n=[];switch(t){case"top":n.push({x:e.x-r,y:e.y+r},{x:e.x+r,y:e.y+r});break;case"bottom":n.push({x:e.x-r,y:e.y-r},{x:e.x+r,y:e.y-r});break;case"left":n.push({x:e.x+r,y:e.y-r},{x:e.x+r,y:e.y+r});break;case"right":n.push({x:e.x-r,y:e.y-r},{x:e.x-r,y:e.y+r})}return n}(n,o),...function(e){let{top:t,right:r,bottom:n,left:o}=e;return[{x:o,y:t},{x:r,y:t},{x:r,y:n},{x:o,y:n}]}(t.getBoundingClientRect())])),f(!0)},[f]);return n.useEffect(()=>()=>x(),[x]),n.useEffect(()=>{if(c&&d){let e=e=>h(e,d),t=e=>h(e,c);return c.addEventListener("pointerleave",e),d.addEventListener("pointerleave",t),()=>{c.removeEventListener("pointerleave",e),d.removeEventListener("pointerleave",t)}}},[c,d,h,x]),n.useEffect(()=>{if(s){let e=e=>{let t=e.target,r={x:e.clientX,y:e.clientY},n=c?.contains(t)||d?.contains(t),o=!function(e,t){let{x:r,y:n}=e,o=!1;for(let e=0,i=t.length-1;e<t.length;i=e++){let l=t[e].x,a=t[e].y,s=t[i].x,u=t[i].y;a>n!=u>n&&r<(s-l)*(n-a)/(u-a)+l&&(o=!o)}return o}(r,s);n?x():o&&(x(),p())};return document.addEventListener("pointermove",e),()=>document.removeEventListener("pointermove",e)}},[c,d,s,p,x]),(0,g.jsx)(F,{...e,ref:a})}),[A,H]=v(k,{isInside:!1}),Y=(0,f.sA)("TooltipContent"),F=n.forwardRef((e,t)=>{let{__scopeTooltip:r,children:o,"aria-label":i,onEscapeKeyDown:l,onPointerDownOutside:s,...c}=e,p=R(N,r),d=b(r),{onClose:f}=p;return n.useEffect(()=>(document.addEventListener(w,f),()=>document.removeEventListener(w,f)),[f]),n.useEffect(()=>{if(p.trigger){let e=e=>{let t=e.target;t?.contains(p.trigger)&&f()};return window.addEventListener("scroll",e,{capture:!0}),()=>window.removeEventListener("scroll",e,{capture:!0})}},[p.trigger,f]),(0,g.jsx)(a.XB,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:l,onPointerDownOutside:s,onFocusOutside:e=>e.preventDefault(),onDismiss:f,children:(0,g.jsxs)(u.VY,{"data-state":p.stateAttribute,...d,...c,ref:t,style:{...c.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[(0,g.jsx)(Y,{children:o}),(0,g.jsx)(A,{scope:r,isInside:!0,children:(0,g.jsx)(h.f,{id:p.contentId,role:"tooltip",children:i||o})})]})})});B.displayName=N;var V="TooltipArrow";n.forwardRef((e,t)=>{let{__scopeTooltip:r,...n}=e,o=b(r);return H(V,r).isInside?null:(0,g.jsx)(u.Eh,{...o,...n,ref:t})}).displayName=V;var X=E,S=L,W=P,Z=I,q=B}}]);
|